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 |
|---|---|---|---|---|---|---|
Convert some alphabetic word to a list of numbers. | def V6xH(KoG3, nCtq):
mSrU = []
y0cW = ''
ZI14 = jth9.copy(KoG3)
while ZI14:
y0cW += ZI14[0]
ZI14 = ZI14[1:]
if y0cW in nCtq:
mSrU.append(nCtq.index(y0cW) - len(nCtq) // 2)
y0cW = ''
if y0cW != '':
raise ValueError(y0cW + ' was not found in ' +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m83H(GIN8):\n return ''.join(map(lambda vC9B: sWCX[ord(vC9B) - ord('a')], GIN8))",
"def OUmP(KoG3):\n mSrU = []\n for sZqf in KoG3:\n jbXL = ord(sZqf) - 97\n mSrU.append(jbXL)\n return mSrU",
"def osZ5(GIN8):\n RBFf = [int(ord(YRbF)) for YRbF in GIN8]\n return RBFf",
"def ... | [
"0.8074127",
"0.7666629",
"0.7382626",
"0.7307182",
"0.7133793",
"0.70850843",
"0.7002474",
"0.6973359",
"0.6703035",
"0.6692946",
"0.6662037",
"0.66507363",
"0.66475904",
"0.66126084",
"0.6588628",
"0.65872514",
"0.65872514",
"0.65872514",
"0.65872514",
"0.6579712",
"0.65668... | 0.6836056 | 8 |
The highest generator appearing in wordlist. | def nFDA(*cfuW):
fdMZ = 0
for yzQ0 in cfuW:
if yzQ0.letters != []:
fdMZ = max(fdMZ, max((abs(YRbF) for YRbF in yzQ0.letters)))
return fdMZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w_M7(jWe2: list) -> tuple:\n PrcG = []\n for mWFP, aWuw in jWe2:\n gigf = _xgZ(aWuw)\n PrcG.append((mWFP, gigf))\n PrcG.sort(key=lambda WKvO: WKvO[1], reverse=True)\n return PrcG[0]",
"def ky5u(gG6Z, Yj5c):\n for Ho9u in Yj5c:\n if gG6Z == Ho9u[0].split()[0]:\n ... | [
"0.6689433",
"0.6687922",
"0.6677073",
"0.6636656",
"0.6636656",
"0.6636656",
"0.6590753",
"0.6540924",
"0.64886963",
"0.64262235",
"0.6377989",
"0.63718545",
"0.6356486",
"0.6315802",
"0.6285876",
"0.6273588",
"0.6256233",
"0.6256228",
"0.62285113",
"0.62125933",
"0.6211657"... | 0.0 | -1 |
Gets all the bindings in the given binding's origins. | def Vc9J(nA5M):
krED = set()
for hLRM in nA5M.origins:
for JaYa in hLRM.source_sets:
krED |= JaYa
return krED | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def krED(YKHO):\n Aofo = list(YKHO._bindings())\n for VN2L in YKHO.flat_subexprs():\n Aofo.extend(VN2L.bindings)\n return Aofo",
"def krED(YKHO):\n return YKHO.kb.bindings",
"def v87O(YKHO, yT1u: Union[str, List[str]]=None, kN1U: Union[str, List[str]]=None) -> x1iM[cuzp[str, str]]:\n pmnM... | [
"0.64150536",
"0.62175596",
"0.6096214",
"0.60545844",
"0.5990538",
"0.59234005",
"0.57922935",
"0.57922935",
"0.57922935",
"0.57922935",
"0.5648761",
"0.5607065",
"0.551984",
"0.54901356",
"0.54432",
"0.5424269",
"0.53688276",
"0.52644336",
"0.524519",
"0.519117",
"0.5171041... | 0.81260514 | 0 |
Two Registers are the same if they are of the same type (i.e. quantum/classical), and have the same name and size. | def xa14(YKHO, Elif):
Ylbp = False
if type(YKHO) is type(Elif) and YKHO.name == Elif.name and (YKHO.size == Elif.size):
Ylbp = True
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NwSL(YKHO):\n _ftn = vR29(1, 'q')\n O0Zx = vR29(2, 'q')\n fxEW = NCgL(1, 'q')\n YKHO.assertEqual(_ftn, _ftn)\n YKHO.assertNotEqual(_ftn, O0Zx)\n YKHO.assertNotEqual(_ftn, fxEW)",
"def FBQj(YKHO):\n _ftn = vR29(10, 'q')\n YKHO.assertEqual(_ftn.name, 'q')\n YKHO.assertEqual(_ftn.size... | [
"0.7393225",
"0.6753047",
"0.6592715",
"0.6591188",
"0.6521583",
"0.63848156",
"0.62433654",
"0.61232615",
"0.6114233",
"0.60493016",
"0.60440755",
"0.59323865",
"0.58820766",
"0.5773046",
"0.57380795",
"0.5721292",
"0.57110244",
"0.5640637",
"0.5630294",
"0.56239146",
"0.562... | 0.5554811 | 24 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj):
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = Lwm5['lr'] * (qtWj - 1) ** 0.5 / qtWj ** 0.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.7991837",
"0.7940576",
"0.78895533",
"0.78278863",
"0.7822731",
"0.78170556",
"0.7810941",
"0.78027624",
"0.77914375",
"0.7788607",
"0.7782131",
"0.7765793",
"0.77645",
"0.77609223",
"0.7749379",
"0.7739108",
"0.7731853",
"0.77242327",
"0.77121335",
"0.7708826",
"0.7704794... | 0.0 | -1 |
Getter method for af_ipv6_vrf_name, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_ipv6_vrf_name (string) | def FRj0(YKHO):
return YKHO.__af_ipv6_vrf_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKC6(YKHO, Ty9i, tyeH=False):\n _AKB = getattr(YKHO, '_parent', None)\n if _AKB is not None and tyeH is False:\n raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(... | [
"0.76179034",
"0.5255797",
"0.5255797",
"0.49641106",
"0.48810974",
"0.4847911",
"0.47367346",
"0.47115284",
"0.44470698",
"0.44470698",
"0.4374552",
"0.4264462",
"0.4236781",
"0.42283517",
"0.41885108",
"0.41279468",
"0.412157",
"0.40834033",
"0.40414676",
"0.4030368",
"0.39... | 0.69788986 | 1 |
Setter method for af_ipv6_vrf_name, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_ipv6_vrf_name (string) | def TKC6(YKHO, Ty9i, tyeH=False):
_AKB = getattr(YKHO, '_parent', None)
if _AKB is not None and tyeH is False:
raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRj0(YKHO):\n return YKHO.__af_ipv6_vrf_name",
"def Y_5m(YKHO, Ty9i, tyeH=False):\n _AKB = getattr(YKHO, '_parent', None)\n if _AKB is not None and tyeH is False:\n raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')\n if hasattr(Ty9i, '_utype'):\n ... | [
"0.66606975",
"0.5859369",
"0.5859369",
"0.49892968",
"0.49636707",
"0.48822236",
"0.4785703",
"0.46865585",
"0.46416518",
"0.44428882",
"0.44428882",
"0.44142815",
"0.44142815",
"0.44142815",
"0.44142815",
"0.42480537",
"0.41974214",
"0.41974214",
"0.41540056",
"0.41479826",
... | 0.78859425 | 0 |
Getter method for graceful_restart_status, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/graceful_restart_status (empty) | def _hva(YKHO):
return YKHO.__graceful_restart_status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnPy(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='graceful-restart-status', rest_name='graceful-restart', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_pat... | [
"0.7796084",
"0.6311005",
"0.6311005",
"0.6202199",
"0.6202199",
"0.6022978",
"0.6022978",
"0.56841135",
"0.56841135",
"0.5307372",
"0.49120787",
"0.4819619",
"0.4816765",
"0.4748835",
"0.47009817",
"0.46619385",
"0.46335304",
"0.4593581",
"0.4590452",
"0.45171615",
"0.451354... | 0.710437 | 1 |
Getter method for maximum_paths, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/maximum_paths (container) | def O0_2(YKHO):
return YKHO.__maximum_paths | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GOgH(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=DGbR.maximum_paths, is_container='container', presence=False, yang_name='maximum-paths', rest_name='maximum-paths', parent=YKHO, path_helper=YKHO._path_helper, extmethods=Y... | [
"0.7869186",
"0.7019943",
"0.61863494",
"0.60534775",
"0.5743594",
"0.56292295",
"0.5579765",
"0.5540792",
"0.5520173",
"0.533384",
"0.5315593",
"0.5302971",
"0.5175659",
"0.5173043",
"0.5105815",
"0.50625855",
"0.5035228",
"0.49995646",
"0.49907395",
"0.4988578",
"0.4984493"... | 0.68370163 | 2 |
Getter method for multipath, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/multipath (container) | def XSDT(YKHO):
return YKHO.__multipath | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x_Sl(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=oENn.multipath, is_container='container', presence=False, yang_name='multipath', rest_name='multipath', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmeth... | [
"0.71990114",
"0.55963296",
"0.4903651",
"0.47878733",
"0.47733918",
"0.46531558",
"0.44302177",
"0.43494856",
"0.4309283",
"0.42709774",
"0.4213045",
"0.41944018",
"0.41855815",
"0.41662735",
"0.41521317",
"0.4101994",
"0.4099802",
"0.40986413",
"0.4081098",
"0.40803385",
"0... | 0.5928245 | 1 |
Setter method for multipath, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/multipath (container) | def x_Sl(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=oENn.multipath, is_container='container', presence=False, yang_name='multipath', rest_name='multipath', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, regi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XSDT(YKHO):\n return YKHO.__multipath",
"def j1rq(YKHO, begE):\n FxcP = None\n YfpN = []\n yvT9 = None\n try:\n yvT9, XObx = YKHO._execute('multipath', '-l', begE, run_as_root=True, root_helper=YKHO._root_helper)\n except yc1d.ProcessExecutionError as exc:\n na1r.warn(bGrB('mu... | [
"0.5651788",
"0.5453653",
"0.53726196",
"0.51811105",
"0.4712037",
"0.4690217",
"0.45849344",
"0.4511781",
"0.44610336",
"0.44476157",
"0.44337666",
"0.4403116",
"0.4382024",
"0.43401685",
"0.4294013",
"0.42723644",
"0.42665225",
"0.4260414",
"0.4240489",
"0.4224075",
"0.4211... | 0.7695399 | 0 |
Getter method for always_propagate, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/always_propagate (empty) | def J5m9(YKHO):
return YKHO.__always_propagate | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XfdZ(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='always-propagate', rest_name='always-propagate', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True... | [
"0.76520234",
"0.45201668",
"0.4412368",
"0.4412368",
"0.44105086",
"0.43679684",
"0.43347788",
"0.43347788",
"0.43347788",
"0.43347788",
"0.43347788",
"0.43347788",
"0.43347788",
"0.43347788",
"0.43347788",
"0.43170178",
"0.4314328",
"0.42937803",
"0.42546174",
"0.4221091",
... | 0.6277967 | 1 |
Setter method for always_propagate, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/always_propagate (empty) | def XfdZ(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='always-propagate', rest_name='always-propagate', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, extensi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J5m9(YKHO):\n return YKHO.__always_propagate",
"def iMIn(YKHO, iMIn):\n YKHO._force_fw = iMIn",
"def _P7S(YKHO, Yw_3, P7jN, ACnF, WmM4):\n if YKHO.propagator is None:\n return WmM4\n return YKHO.propagator(Yw_3, P7jN, ACnF, WmM4)",
"def OzsS(YKHO, OzsS):\n if OzsS is not None:\n ... | [
"0.61602557",
"0.47870725",
"0.45469832",
"0.44823217",
"0.4386072",
"0.4386072",
"0.43708837",
"0.435011",
"0.43391436",
"0.4325517",
"0.4325517",
"0.4325517",
"0.4325517",
"0.4325517",
"0.4325517",
"0.4325517",
"0.4325517",
"0.4325517",
"0.43154633",
"0.4267891",
"0.4257743... | 0.7997636 | 0 |
Getter method for dampening, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/dampening (container) | def lsBd(YKHO):
return YKHO.__dampening | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jAz5(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=iE76.dampening, is_container='container', presence=False, yang_name='dampening', rest_name='dampening', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmeth... | [
"0.7161197",
"0.59352446",
"0.5548391",
"0.513684",
"0.41253147",
"0.41128045",
"0.40879974",
"0.4079391",
"0.40327296",
"0.40157562",
"0.40123957",
"0.400208",
"0.39827448",
"0.39791092",
"0.39732128",
"0.392619",
"0.390562",
"0.3899793",
"0.3899251",
"0.3878258",
"0.3877262... | 0.6202951 | 1 |
Setter method for dampening, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/dampening (container) | def jAz5(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=iE76.dampening, is_container='container', presence=False, yang_name='dampening', rest_name='dampening', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, regi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KXhu(YKHO, mzev):\n if mzev < 0 or mzev > 1:\n raise 'Dampening factor must be >= 0 and <= 1.'\n YKHO._dampening_factor = mzev",
"def lsBd(YKHO):\n return YKHO.__dampening",
"def iE76(YKHO):\n return YKHO._dampening",
"def KXhu(YKHO):\n return YKHO._dampening_factor",
"def rUU6(YK... | [
"0.603564",
"0.5922908",
"0.579323",
"0.5531517",
"0.44667515",
"0.435763",
"0.4323149",
"0.4271215",
"0.42120636",
"0.42003915",
"0.41951346",
"0.41900745",
"0.4158908",
"0.4143856",
"0.41342553",
"0.4127177",
"0.41227692",
"0.41093424",
"0.4104226",
"0.40891907",
"0.4086578... | 0.78336746 | 0 |
Getter method for default_metric, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/default_metric (defaultmetricnumber) | def elgB(YKHO):
return YKHO.__default_metric | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def THHY(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..4294967295']}), is_leaf=True, yang_name='d... | [
"0.7645923",
"0.69793",
"0.6115826",
"0.6017422",
"0.5952377",
"0.580782",
"0.55478144",
"0.5363395",
"0.53273815",
"0.50944597",
"0.5089344",
"0.5077447",
"0.4995934",
"0.49737954",
"0.49302793",
"0.49074045",
"0.4901978",
"0.4894023",
"0.4885524",
"0.48809877",
"0.4873859",... | 0.67095 | 2 |
Getter method for table_map, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/table_map (container) | def C0iF(YKHO):
return YKHO.__table_map | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ows4(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=WDge.table_map, is_container='container', presence=False, yang_name='table-map', rest_name='table-map', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmeth... | [
"0.698406",
"0.5532167",
"0.5162991",
"0.4859997",
"0.48155457",
"0.48094493",
"0.4702562",
"0.4675789",
"0.46001574",
"0.44110197",
"0.43836135",
"0.43630412",
"0.43578976",
"0.43497425",
"0.43422934",
"0.4328065",
"0.42730963",
"0.42464268",
"0.42242616",
"0.42205414",
"0.4... | 0.5423556 | 2 |
clean up text, transfrom 'en' column to normalize and restore them as list | def SZFh(YKHO, jQ3Z):
TWfw = [YKHO.normalize_string(KCHu) for KCHu in jQ3Z['english']]
L1ku = ['<start> ' + YKHO.normalize_string(KCHu) for KCHu in jQ3Z['spanish']]
z__R = [YKHO.normalize_string(KCHu) + ' <end>' for KCHu in jQ3Z['spanish']]
return (TWfw, L1ku, z__R) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d7Ew(YKHO):\n\n def dItW(rdlD):\n try:\n x0SS = ZbWC.sub('[^\\\\w\\\\s]', '', rdlD.lower()).split(' ')\n x0SS = [WKvO.replace('\\n', '') for WKvO in x0SS]\n return x0SS\n except:\n return ['none']\n YKHO.col_etl = YKHO.col_etl.apply(lambda WKvO: d... | [
"0.6706271",
"0.6635323",
"0.65726423",
"0.65497226",
"0.6420145",
"0.6409116",
"0.6331807",
"0.6325455",
"0.62986034",
"0.62786263",
"0.62747645",
"0.6272382",
"0.62670875",
"0.62634087",
"0.62600607",
"0.6251071",
"0.62437004",
"0.624186",
"0.6235343",
"0.6221752",
"0.62004... | 0.66100496 | 2 |
Compute the cross entropy loss given outputs and labels. | def GT2U(o4Jx, Crrw):
return U78l.CrossEntropyLoss()(o4Jx, Crrw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qN0O(o4Jx, Crrw):\n Z9rn = 0\n yvT9 = ht2j.zeros(o4Jx.size())\n for YRbF in Crrw:\n yvT9[Z9rn][YRbF] = 1.0\n Z9rn = Z9rn + 1\n ywwl = o4Jx.size(0)\n wseF = -ht2j.sum(yvT9 * ht2j.log(o4Jx)) / ywwl\n return wseF.item()",
"def tEbt(YKHO, g4y1, o4Jx):\n bGrB, Crrw = g4y1\n N... | [
"0.82797784",
"0.79093313",
"0.77584016",
"0.7651681",
"0.748503",
"0.7456234",
"0.7415907",
"0.7391384",
"0.7369723",
"0.73689294",
"0.7355483",
"0.7343257",
"0.7300752",
"0.72740585",
"0.7268549",
"0.7260334",
"0.72593945",
"0.72425854",
"0.7225592",
"0.7217672",
"0.721118"... | 0.8460295 | 0 |
Create and save a user with the given first_name, last_name, email, and password. | def xWi2(YKHO, c9ua, zp3f, D3lj, jTXt, **wdCM):
if not c9ua or not zp3f:
raise ValueError('The given first_name and last_name must be set')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(first_name=c9ua, last_name=zp3f, email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save()
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYUQ(c9ua, zp3f, D3lj, jTXt):\n NtEF = fiXC(c9ua, zp3f)\n CBIr = mv1M(username=NtEF, first_name=c9ua, last_name=zp3f)\n try:\n Bt7w(D3lj)\n CBIr.email = D3lj\n except sUXu:\n pass\n CBIr.set_password(jTXt)\n CBIr.save()\n return CBIr",
"def kI0b(Emd4, NtEF, D3lj, jTX... | [
"0.8627142",
"0.86176896",
"0.85629284",
"0.8562613",
"0.8541252",
"0.84956473",
"0.8494856",
"0.8425839",
"0.8355253",
"0.83525836",
"0.83284503",
"0.8271649",
"0.82576656",
"0.8220611",
"0.8214888",
"0.8208972",
"0.82013446",
"0.8192515",
"0.81844634",
"0.8177361",
"0.81569... | 0.8612298 | 2 |
Form an ENV variable from the name. | def Tqw4(Emd4, ZI14):
return '%s_%s' % (Emd4.name.upper(), ZI14) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i2I_(YKHO, BWXx: str):\n YKHO._env_name = BWXx",
"def dYym(mWFP, WmM4=None):\n mZ1z = (Mfgp + '-' + mWFP).upper().replace('-', '_')\n return Hy7s.environ.get(mZ1z, WmM4)",
"def sEAN(mWFP, WmM4=None):\n return Hy7s.getenv('{}_{}'.format(tW_W, mWFP), WmM4)",
"def km9q(mWFP):\n L15R = z4am(mW... | [
"0.7428876",
"0.70913744",
"0.69919586",
"0.6969365",
"0.69279283",
"0.68985367",
"0.68586856",
"0.6773433",
"0.6734328",
"0.66594887",
"0.6655202",
"0.6626803",
"0.6600388",
"0.65983766",
"0.6544428",
"0.6539516",
"0.6513933",
"0.6476923",
"0.6475495",
"0.64604115",
"0.64435... | 0.6196745 | 41 |
Get a config instance with the default files. | def Ueki(Emd4):
return Emd4(Emd4.paths()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d8Ew():\n Fv2L = kwpV(interpolation=Wst3(), converters={'path': k2IV})\n return yZuO(Fv2L, yiHd)",
"def yDgW(YKHO):\n CAYp = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'ext.conf')\n return GPtr.read(CAYp)",
"def UiCc():\n lqQH = str(JKCy.files(SfGk) / 'config.yaml')\n with open(lqQH, 'r') as... | [
"0.77656776",
"0.77551657",
"0.7401394",
"0.7307137",
"0.7233786",
"0.70917445",
"0.7083927",
"0.70678335",
"0.7013286",
"0.69355094",
"0.6930479",
"0.6928088",
"0.6900774",
"0.68962187",
"0.6886891",
"0.6869883",
"0.68377924",
"0.6805287",
"0.68048733",
"0.6795115",
"0.67425... | 0.0 | -1 |
Normalize an array so that all values fit in a given range. Symmetrical normalization means that after normalization, values equal to 0 stay equal to 0. | def NkkI(nPrm, range=(-1.0, 1.0), z_n9=False):
r8hN = nPrm.min()
E3D9 = nPrm.max()
if z_n9:
zTvC = max(oyIN.abs(r8hN), oyIN.abs(E3D9))
r8hN, E3D9 = (-zTvC, zTvC)
nPrm = range[0] + (range[1] - range[0]) * (nPrm - r8hN) * (1.0 / (E3D9 - r8hN))
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(ezWE):\n ezWE = (ezWE - oyIN.min(ezWE)) / (oyIN.max(ezWE) - oyIN.min(ezWE) + 1e-10)\n return ezWE",
"def jnV4(YKHO, qw7D, JCoA, kpLf):\n return oyIN.subtract(qw7D, kpLf) / oyIN.subtract(JCoA, kpLf)",
"def NkkI(qw7D):\n qw7D -= qw7D.min()\n qw7D /= qw7D.max()\n return qw7D",
"def Nk... | [
"0.823777",
"0.81063277",
"0.8046611",
"0.79619074",
"0.7942976",
"0.79377973",
"0.79306036",
"0.78464293",
"0.78276837",
"0.7808547",
"0.780652",
"0.7717823",
"0.7688897",
"0.7613678",
"0.7586006",
"0.7578332",
"0.75622153",
"0.7561183",
"0.7551694",
"0.750348",
"0.74941254"... | 0.69307667 | 64 |
Constructor. name The name of the flow. | def FIMM(YKHO, mWFP):
YKHO._alternatives = {}
YKHO._nodes = {}
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP: str):\n YKHO.name = mWFP",
"def FIMM(YKHO, mWFP=None):\n YKHO.name = mWFP",
"def FIMM(YKHO, mWFP=None):\n YKHO.name = mWFP",
"def FIMM(YKHO, mWFP: str) -> None:\n YKHO.name = mWFP",
"def FIMM(YKHO, mWFP: str):\n YKHO.name = mWFP",
"def FIMM(YKHO, mWFP: str):\n YKHO.... | [
"0.76704526",
"0.7636448",
"0.7636448",
"0.76331747",
"0.7624506",
"0.7624506",
"0.7594701",
"0.7582286",
"0.7576949",
"0.75732154",
"0.75732154",
"0.75732154",
"0.75732154",
"0.75732154",
"0.75732154",
"0.75732154",
"0.75732154",
"0.75732154",
"0.75732154",
"0.75732154",
"0.... | 0.7249445 | 43 |
The state of the node's flow. One of PENDING, RUNNING, BLOCKED, COMPLETED, FAILED. | def QTBn(YKHO):
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QTBn(YKHO):\n return YKHO.status",
"def QTBn(YKHO):\n QTBn = None\n for D5gV in YKHO.tasks:\n QTBn = D5gV.state\n if D5gV.desired_state == 'running':\n break\n return QTBn",
"def ja6o(YKHO):\n return YKHO.status.state",
"def jGRS(YKHO):\n return YKHO.state",
"... | [
"0.70294356",
"0.6919449",
"0.691666",
"0.69086736",
"0.69086736",
"0.68987906",
"0.6891121",
"0.6756692",
"0.6702283",
"0.6692744",
"0.66856533",
"0.6659438",
"0.6611597",
"0.6606055",
"0.6600811",
"0.6597231",
"0.65902865",
"0.65902865",
"0.6590283",
"0.6561585",
"0.6557262... | 0.6299516 | 82 |
Constructor. arg The name of the node parameter to which this argument maps. help A oneline description of the parameter that will appear in the help text. default The default value to be used in case the argument is omitted on the command line. If None (the default), the argument is mandatory. type The type of the arg... | def FIMM(YKHO, d7pR, help=None, WmM4=None, type='string', LS7Z=None, BWXx=NotImplemented):
YKHO.name = d7pR
YKHO.help = help
YKHO.default = WmM4
YKHO.type = type
YKHO.metavar = LS7Z or d7pR.upper()
YKHO.value = BWXx
assert help or BWXx != NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP, T79R, **B2fa):\n YKHO.name = mWFP\n YKHO.type = T79R\n YKHO.default = B2fa.get('default', None)\n YKHO.value = B2fa.get('default', None)\n tsJc = B2fa.get('completer', None)\n Ozm8 = B2fa.get('completer_kwargs', {})\n if tsJc:\n YKHO.completer = tsJc(argo=YKHO, **Oz... | [
"0.65850747",
"0.6457273",
"0.63136035",
"0.62449235",
"0.62326217",
"0.6142522",
"0.6140056",
"0.60990864",
"0.60827523",
"0.60207725",
"0.60106623",
"0.5992923",
"0.5973925",
"0.5971337",
"0.5943412",
"0.591846",
"0.58618945",
"0.5837921",
"0.5833492",
"0.5794223",
"0.57917... | 0.7949014 | 0 |
Parse the goal arguments as specified on the command line. arguments A list of nonoption commandline arguments following the goal name. errors.CommandLineError Unexpected arguments encountered. A dictionary of node parameters. | def hfK9(YKHO, Ltpw):
oeNL = 0
cmPJ = {}
for d7pR in YKHO.args:
oeNL += d7pR.parse(Ltpw[oeNL] if oeNL < len(Ltpw) else None, cmPJ)
if oeNL < len(Ltpw):
raise UAju.CommandLineError('Too many arguments to goal {name}'.format(name=YKHO.name))
return cmPJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gGZX():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--output', type=str, required=True, help='GCS or local directory.')\n wvEv.add_argument('--model', type=str, required=True, help='GCS path to the model which will be evaluated.')\n wvEv.add_argument('--eval', type=str, required=True, help=... | [
"0.7141466",
"0.7126676",
"0.7090722",
"0.7090722",
"0.7054445",
"0.7031712",
"0.7017921",
"0.7013313",
"0.7005995",
"0.7002908",
"0.69755065",
"0.6943452",
"0.6933588",
"0.6925468",
"0.6917979",
"0.6916584",
"0.69127923",
"0.6910253",
"0.690372",
"0.68902105",
"0.6886941",
... | 0.72972715 | 0 |
Normalizes a given array in X to a value between low and high. | def NkkI(EcVT, gqRb, ODP9, yDqo=None):
EcVT = oyIN.asarray(EcVT)
qwA9, O2Zy = (oyIN.min(EcVT), oyIN.max(EcVT))
EcVT = EcVT - float(qwA9)
EcVT = EcVT / float(O2Zy - qwA9)
EcVT = EcVT * (ODP9 - gqRb)
EcVT = EcVT + gqRb
if yDqo is None:
return oyIN.asarray(EcVT)
return oyIN.asarray(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, EcVT, gqRb, ODP9, yDqo=None):\n EcVT = oyIN.asarray(EcVT)\n qwA9, O2Zy = (oyIN.min(EcVT), oyIN.max(EcVT))\n EcVT = EcVT - float(qwA9)\n EcVT = EcVT / float(O2Zy - qwA9)\n EcVT = EcVT * (ODP9 - gqRb)\n EcVT = EcVT + gqRb\n if yDqo is None:\n return oyIN.asarray(EcVT)\n ... | [
"0.84900814",
"0.8489236",
"0.847985",
"0.7999857",
"0.76388",
"0.7629635",
"0.7608062",
"0.7600523",
"0.7583591",
"0.7549785",
"0.75073963",
"0.7479719",
"0.74670494",
"0.7430545",
"0.7415886",
"0.73848456",
"0.7369401",
"0.73257935",
"0.73211217",
"0.7268678",
"0.7233146",
... | 0.84790164 | 3 |
Return a random lowercase ASCII letter. | def Sraz():
return chr(ord('a') + tuKI.randint(0, 25)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cKm3():\n return tuKI.choice(vIwR.ascii_lowercase)",
"def fFlT():\n return chr(Acvy(range(65, 91)))",
"def iofI(YKHO):\n return tuKI.choice(vIwR.letters).upper()",
"def fFlT(YKHO):\n return YKHO.generator.random.choice(getattr(vIwR, 'letters', vIwR.ascii_letters))",
"def fuJz():\n return... | [
"0.8485957",
"0.84377116",
"0.8184215",
"0.8165804",
"0.8025985",
"0.79701644",
"0.79644674",
"0.7754401",
"0.7746073",
"0.7663781",
"0.7502689",
"0.7490502",
"0.7430956",
"0.74085635",
"0.7341374",
"0.7287799",
"0.7264131",
"0.71810347",
"0.713729",
"0.7125489",
"0.7089112",... | 0.8870916 | 0 |
Getter for all MLP layers weights (without biases) | def _mSQ(YKHO) -> x1iM[ht2j.Tensor]:
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wT46(Emd4):\n return iShw(Emd4.layers)",
"def _mSQ(YKHO):\n return oyIN.array([gEmA.weights for gEmA in YKHO.layers])",
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n return YKHO.w",
"def _mSQ(YKHO):\n _mSQ = []\n for gEmA in YKHO.layers:\n _mSQ += gEmA.get_weights()\n ... | [
"0.7973986",
"0.78840363",
"0.7810047",
"0.7810047",
"0.7791651",
"0.7783146",
"0.7752545",
"0.7733786",
"0.7733786",
"0.7724122",
"0.77086556",
"0.77086556",
"0.767205",
"0.7662864",
"0.76247317",
"0.7622797",
"0.75953364",
"0.75953364",
"0.7564382",
"0.7564382",
"0.755366",... | 0.69156694 | 77 |
Dump the template params to a numpy array. | def XpLf(YKHO):
ITTq = oyIN.zeros(1, dtype=YKHO.hdf_dtype)
ITTq['mass1'] = YKHO.m1
ITTq['mass2'] = YKHO.m2
ITTq['spin1z'] = YKHO.spin1z
ITTq['spin2z'] = YKHO.spin2z
ITTq['deltaChi1'] = YKHO.deltaChi1
ITTq['deltaChi2'] = YKHO.deltaChi2
ITTq['deltaChi3'] = YKHO.deltaChi3
ITTq['deltaChi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BT7E(YKHO):\n BT7E = oyIN.zeros(1, dtype=[('start', 'i4'), ('end', 'i4'), ('break', 'i4'), ('coef', 'float32', (YKHO.n_features, YKHO.n_series)), ('rmse', 'float32', YKHO.n_series), ('magnitude', 'float32', YKHO.n_series), ('px', 'u2'), ('py', 'u2')])\n BT7E['px'] = YKHO.px\n BT7E['py'] = YKHO.py\n ... | [
"0.5738101",
"0.56854355",
"0.5661516",
"0.56606734",
"0.56606734",
"0.5466232",
"0.5453872",
"0.54416496",
"0.543852",
"0.54016805",
"0.5332066",
"0.5319143",
"0.52719784",
"0.52649456",
"0.52537674",
"0.5249276",
"0.52194136",
"0.5210547",
"0.5193765",
"0.51874924",
"0.5171... | 0.51113427 | 26 |
Dump the template params to a numpy array. | def XpLf(YKHO):
ITTq = super(a9ng, YKHO).to_storage_arr()
ITTq['spin1x'] = YKHO.spin1x
ITTq['spin1y'] = YKHO.spin1y
ITTq['spin2x'] = YKHO.spin2x
ITTq['spin2y'] = YKHO.spin2y
ITTq['latitude'] = YKHO.theta
ITTq['longitude'] = YKHO.phi
ITTq['polarization'] = YKHO.psi
ITTq['inclination']... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BT7E(YKHO):\n BT7E = oyIN.zeros(1, dtype=[('start', 'i4'), ('end', 'i4'), ('break', 'i4'), ('coef', 'float32', (YKHO.n_features, YKHO.n_series)), ('rmse', 'float32', YKHO.n_series), ('magnitude', 'float32', YKHO.n_series), ('px', 'u2'), ('py', 'u2')])\n BT7E['px'] = YKHO.px\n BT7E['py'] = YKHO.py\n ... | [
"0.5738101",
"0.56854355",
"0.5661516",
"0.56606734",
"0.56606734",
"0.5466232",
"0.54416496",
"0.543852",
"0.54016805",
"0.5332066",
"0.5319143",
"0.52719784",
"0.52649456",
"0.52537674",
"0.5249276",
"0.52194136",
"0.5210547",
"0.5193765",
"0.51874924",
"0.5171244",
"0.5170... | 0.5453872 | 6 |
Cost of the logistic regression function. | def sSN_(q7In, WKvO, LVAh):
r8hN = WKvO.shape[0]
DI3N = 1e-20
ZcTT = wEsz(oyIN.dot(WKvO, q7In))
Z9rn = -(1 / r8hN) * (oyIN.dot(LVAh, oyIN.log(ZcTT + DI3N)) + oyIN.dot(1 - LVAh, oyIN.log(1 - ZcTT + DI3N)))
return Z9rn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SdiN(WKvO: NDArray, P7ZP: NDArray, LVAh: NDArray) -> KUXB:\n uN02 = m1Hg(WKvO.dot(P7ZP))\n KmmF = LVAh * oyIN.log(uN02) + (1 - LVAh) * oyIN.log(1 - uN02)\n return -KmmF.mean()",
"def qua8(YKHO, q7In, EcVT, LVAh):\n _hZ2 = 1e-06\n W3ev = BfDw.sigmoid(oyIN.dot(EcVT, q7In))\n DhT2 = EcVT.shape... | [
"0.79483986",
"0.7858059",
"0.7767315",
"0.7651793",
"0.7630762",
"0.7629005",
"0.7605508",
"0.7524995",
"0.7420347",
"0.7416849",
"0.73509294",
"0.7343034",
"0.7269115",
"0.7255337",
"0.7235205",
"0.71993905",
"0.7192026",
"0.71741337",
"0.71554905",
"0.7137254",
"0.7128862"... | 0.73561716 | 10 |
Compute the gradient of the cost of logistic regression | def Ro40(q7In, WKvO, LVAh):
r8hN = WKvO.shape[0]
ZcTT = wEsz(oyIN.dot(WKvO, q7In))
Oa1e = 1 / r8hN * oyIN.dot(ZcTT - LVAh, WKvO)
return Oa1e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWZO(YKHO, q7In, EcVT, LVAh):\n Ro40 = oyIN.zeros(len(q7In))\n W3ev = BfDw.sigmoid(oyIN.dot(EcVT, q7In))\n DhT2 = EcVT.shape[0]\n if 'regwgt' in YKHO.params:\n for YRbF in range(len(Ro40)):\n Ro40[YRbF] = sum((W3ev - LVAh) * EcVT[:, YRbF]) / DhT2 + YKHO.params['regwgt'] / DhT2 * q... | [
"0.8298495",
"0.80437094",
"0.8018404",
"0.7894059",
"0.78520775",
"0.78105485",
"0.775179",
"0.77329224",
"0.7721597",
"0.77013683",
"0.7649619",
"0.762989",
"0.76221484",
"0.76214653",
"0.75981516",
"0.7585897",
"0.75773907",
"0.75773203",
"0.75747496",
"0.7520901",
"0.7519... | 0.0 | -1 |
Make sure voList does indeed load up the correct VOs. | def Fgw1(YKHO):
U7YL = kwpV.ConfigParser()
U7YL.add_section('vo')
U7YL.set('vo', 'vo_blacklist', 'ilc')
U7YL.set('vo', 'vo_whitelist', 'vo1')
U7YL.set('vo', 'user_vo_map', 'test_configs/fermigrid-osg-user-vo-map.txt')
D3mM = TBHU(U7YL)
D3mM = lNWu.Set(D3mM)
yk4i = D3mM.symmetric_differen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CjJh(YKHO):\n pass",
"def t2KD(YKHO):\n raise NotImplementedError",
"def HWoX(YKHO):\n z3rX = RXZI.create(YKHO.userapiclient, YKHO.testdata['small'], templateid=YKHO.template.id, accountid=YKHO.account.name, domainid=YKHO.account.domainid, serviceofferingid=YKHO.service_offering.id, zoneid=YKHO.zo... | [
"0.6142409",
"0.60710603",
"0.5769303",
"0.5712462",
"0.571151",
"0.5564122",
"0.5543293",
"0.55276054",
"0.55164605",
"0.5490561",
"0.54682237",
"0.54072464",
"0.5353951",
"0.5342867",
"0.53356147",
"0.52901506",
"0.5287937",
"0.5279061",
"0.52749467",
"0.5269289",
"0.522408... | 0.6216587 | 0 |
Checks if a file is an allowed extension. | def DVFM(Ux0P, CBZq):
return Ux0P.lower().endswith(CBZq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XT0o(Va2z):\n return Va2z.strip('.') in UWr8",
"def kqN1(Ux0P):\n wEf2 = False\n if pmON.splitext(Ux0P)[-1].lower() in UWr8:\n wEf2 = True\n return wEf2",
"def papa(Emd4, Ux0P: str) -> bool:\n if Hy7s.path.splitext(Ux0P)[1] in Emd4.extensions:\n return True\n return False",
... | [
"0.88312244",
"0.87585557",
"0.87582815",
"0.86855346",
"0.86729777",
"0.8668283",
"0.866312",
"0.8613636",
"0.8611355",
"0.8611355",
"0.8611355",
"0.85908574",
"0.85572165",
"0.8552248",
"0.85333294",
"0.85333294",
"0.8525351",
"0.851793",
"0.851793",
"0.8514218",
"0.8494502... | 0.85923135 | 11 |
Checks if a file is an allowed image extension. | def TfuZ(Ux0P):
UcD8 = ('.jpg', '.jpeg', '.png', '.ppm', '.bmp', '.pgm', '.tif', '.tiff', '.webp')
return DVFM(Ux0P, UcD8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XT0o(Ux0P: str):\n return '.' in Ux0P and Ux0P.split('.', 1)[1].lower() in ['png', 'jpg', 'jpeg', 'gif']",
"def J_Dl(mWFP: str) -> bool:\n return mWFP.endswith('.jpg') or mWFP.endswith('.png') or mWFP.endswith('.jpeg')",
"def TfuZ(Ux0P):\n return DVFM(Ux0P, UcD8)",
"def TfuZ(Ux0P):\n return D... | [
"0.8414353",
"0.83856297",
"0.8286854",
"0.8286854",
"0.8286854",
"0.8286854",
"0.8286854",
"0.82825744",
"0.827424",
"0.82480866",
"0.8238958",
"0.8224739",
"0.8210157",
"0.8196636",
"0.8186225",
"0.80772936",
"0.8041693",
"0.80410814",
"0.8030487",
"0.8026934",
"0.8015826",... | 0.79650396 | 24 |
Get symbol of SqueezeNet | def LRuN(jTqs, DpZH, **B2fa):
assert DpZH in ['1.0', '1.1'], 'Unsupported SqueezeNet version {version}:1.0 or 1.1 expected'.format(version=DpZH)
Zxma = aDi_.Variable('data')
if DpZH == '1.0':
Zxma = aDi_.conv2d(Zxma, channels=96, kernel_size=(7, 7), strides=(2, 2), padding=(3, 3))
Zxma = aDi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o61b(YKHO):\n return YKHO.vset.symbol_for(YKHO)",
"def LRuN(YKHO):\n return o7DN.wrap(Cwi0(Ms7R(YKHO.plugin.plugin, YKHO.port)))",
"def LRuN(eVVj, KDwe, **B2fa):\n if eVVj.startswith('legacy'):\n G9jH.warn('Using legacy model.')\n return xpv6.import_module(eVVj).get_symbol(**B2fa)\n ... | [
"0.6697091",
"0.66091824",
"0.6522919",
"0.65206325",
"0.64615464",
"0.64615464",
"0.64615464",
"0.64615464",
"0.64615464",
"0.64615464",
"0.64615464",
"0.64463466",
"0.6414818",
"0.63837004",
"0.6370697",
"0.63497156",
"0.63374096",
"0.6327631",
"0.6311312",
"0.6304548",
"0.... | 0.682059 | 0 |
Returns all nonbox fields (i.e., everything not named 'boxes'). | def UQ_s(YKHO):
dDGN: x1iM[str] = []
for G1Hx in YKHO.data.keys():
if G1Hx != 'boxes':
dDGN.append(G1Hx)
return dDGN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UQ_s(YKHO):\n return [G1Hx for G1Hx in YKHO.get_all_fields() if G1Hx != 'boxes']",
"def oUSw(YKHO):\n return YKHO.get_field('boxes')",
"def h6Om(YKHO, C3ST):\n return [eHNT.name for eHNT in C3ST._meta.get_fields() if eHNT.blank]",
"def jjQU(Emd4):\n EzI1 = []\n for YRbF in range(Emd4.ROWS)... | [
"0.76502144",
"0.6064503",
"0.60361534",
"0.60196495",
"0.60103416",
"0.5961752",
"0.5955203",
"0.58906615",
"0.58515084",
"0.5849785",
"0.5834619",
"0.57493216",
"0.57455903",
"0.57408834",
"0.5723371",
"0.57009083",
"0.5692629",
"0.5649341",
"0.5638139",
"0.5635285",
"0.561... | 0.6449788 | 1 |
Find the value in an iterator satisfying f(x) | def bXX6(eHNT, iter, WmM4=None):
return next((WKvO for WKvO in iter if eHNT(WKvO)), WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def neBz(eHNT, fUYa):\n for WKvO in fUYa:\n if eHNT(WKvO):\n return WKvO\n return None",
"def neBz(eHNT, Q6uT):\n for ZfUD in Q6uT:\n if eHNT(ZfUD):\n return ZfUD",
"def neBz(eHNT, Q6uT):\n for ZfUD in Q6uT:\n if eHNT(ZfUD):\n return ZfUD",
"d... | [
"0.78597426",
"0.7600339",
"0.7600339",
"0.75458133",
"0.7540644",
"0.7311496",
"0.723935",
"0.72341937",
"0.7184794",
"0.70746166",
"0.6999101",
"0.6989745",
"0.68929785",
"0.681492",
"0.681492",
"0.67960215",
"0.67843014",
"0.6561675",
"0.64744186",
"0.6409886",
"0.6384175"... | 0.7695269 | 1 |
return a + b | def H2v5(jzdc, Fg_i):
"""没开发完的接口"""
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(jzdc, Fg_i):\n Aofo = jzdc + Fg_i\n return Aofo",
"def H2v5(jzdc, Fg_i):\n Aofo = jzdc + Fg_i\n return Aofo",
"def H2v5(jzdc, Fg_i):\n Aofo = jzdc + Fg_i\n return Aofo",
"def H2v5(jzdc, Fg_i):\n return jzdc + Fg_i",
"def BiHP(jzdc, Fg_i):\n return jzdc + Fg_i",
"def HEGj(... | [
"0.8917158",
"0.8917158",
"0.8917158",
"0.8913057",
"0.8870993",
"0.88522655",
"0.88413113",
"0.88413113",
"0.88413113",
"0.88413113",
"0.88413113",
"0.88413113",
"0.88413113",
"0.88413113",
"0.88413113",
"0.8832514",
"0.8739486",
"0.8737354",
"0.8727299",
"0.8727299",
"0.870... | 0.0 | -1 |
Returns text after lemmatization | def LkXt(l5Ny):
_dZy = []
A97Q = K9NE(l5Ny)
for GIN8 in A97Q:
_dZy.append(GIN8.lemma_)
return ' '.join(_dZy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LkXt(l5Ny):\n _dZy = []\n A97Q = f4R0(l5Ny)\n for GIN8 in A97Q:\n _dZy.append(GIN8.lemma_)\n return ' '.join(_dZy)",
"def LkXt(YKHO, l5Ny):\n Dhdw.download('wordnet', quiet=True)\n vnqU = GFnk()\n ieoI = dFss(l5Ny)\n geR_ = kdPk(ieoI)\n IatE = [YKHO.get_wordnet_pos(GIN8[1]) ... | [
"0.7859901",
"0.7642367",
"0.7577911",
"0.75711626",
"0.7470707",
"0.74674374",
"0.74552226",
"0.73884785",
"0.72809774",
"0.72617084",
"0.72301036",
"0.72222143",
"0.7158586",
"0.71158683",
"0.70866805",
"0.70690984",
"0.7054517",
"0.70434064",
"0.70163995",
"0.7014802",
"0.... | 0.76857084 | 1 |
Returns the current battery voltage. If no battery is connected, returns 4.2V which is the charge voltage This is an approximation only, but useful to detect if the charge state of the battery is getting low. | def s83U():
Yh3e = LSY_(wlsc(QmeH))
iTWQ = Yh3e.read()
iTWQ /= 8192
iTWQ *= 4.2
return round(iTWQ, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MB1v(YKHO):\n return YKHO.send(XAm6.BATTERY_VOLTAGE_COMMAND).at_value",
"def s83U(YKHO):\n jGRS = YKHO._request_status_()\n return jGRS.charge_controller.battery_voltage",
"def Bh8j(YKHO):\n try:\n Pjr8 = g4Za.SMBus(1)\n UTX6 = 72\n nPrm = Pjr8.read_word_data(UTX6, 0)\n ... | [
"0.869856",
"0.8642415",
"0.82189053",
"0.8191116",
"0.81673414",
"0.79852766",
"0.7694248",
"0.76652503",
"0.75943303",
"0.7573794",
"0.7565983",
"0.7503496",
"0.7488837",
"0.7471335",
"0.7471335",
"0.7471335",
"0.7471335",
"0.7471335",
"0.74349564",
"0.73631805",
"0.7348473... | 0.8348019 | 2 |
Color wheel to allow for cycling through the rainbow of RGB colors. | def iMHp(Cb6J):
Cb6J = Cb6J % 255
if Cb6J < 85:
return (255 - Cb6J * 3, 0, Cb6J * 3)
elif Cb6J < 170:
Cb6J -= 85
return (0, Cb6J * 3, 255 - Cb6J * 3)
else:
Cb6J -= 170
return (Cb6J * 3, 255 - Cb6J * 3, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VHbE():\n Vvlj = 15\n Vha9 = 6\n DKtI = 4\n Jxh2 = 11\n leFT = 13\n nkpd = 6\n co3n = Vvlj + Vha9 + DKtI + Jxh2 + leFT + nkpd\n a3kf = XTiz.zeros([co3n, 3])\n fvDH = 0\n a3kf[0:Vvlj, 0] = 255\n a3kf[0:Vvlj, 1] = XTiz.transpose(XTiz.floor(255 * XTiz.arange(0, Vvlj) / Vvlj))\n ... | [
"0.79139507",
"0.7905394",
"0.7905394",
"0.7876335",
"0.77428555",
"0.7641434",
"0.7613431",
"0.75746197",
"0.7548338",
"0.7537517",
"0.75362414",
"0.7527155",
"0.7523096",
"0.7523096",
"0.7523096",
"0.7499972",
"0.7499972",
"0.7499972",
"0.7499972",
"0.74905884",
"0.7484291"... | 0.7259615 | 41 |
Specify the random arguments to be generated every epoch. Images must be have same dimensions ! | def xAU6(YKHO, OOcW):
Mkmy, Z9rn, *bGrB = OOcW
return {'rand_r': -1, 'rand_c': -1} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NqMl(YKHO):\n eVVj = ['ResNet', 'LeNet5', 'AlexNet']\n K0do = ['SGD', 'Adam', 'Momentum']\n KsZl = ['SoftmaxCrossEntropyWithLogits', 'CrossEntropyLoss']\n __n6 = ['MindDataset', 'MnistDataset', 'Cifar10Datset']\n VSxB = dict()\n VSxB[H1ja.learning_rate] = tuKI.uniform(0.001, 0.005)\n VSxB[... | [
"0.66914874",
"0.66458917",
"0.6563913",
"0.64464897",
"0.6377926",
"0.6338843",
"0.6317205",
"0.63038385",
"0.621643",
"0.61577654",
"0.61337173",
"0.6132527",
"0.6128561",
"0.60840976",
"0.60526395",
"0.600696",
"0.60029346",
"0.59993654",
"0.5997106",
"0.599591",
"0.598529... | 0.0 | -1 |
Specify the random arguments to be generated every epoch. Images must be have same dimensions ! | def xAU6(YKHO, OOcW):
return {'deg': -1} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NqMl(YKHO):\n eVVj = ['ResNet', 'LeNet5', 'AlexNet']\n K0do = ['SGD', 'Adam', 'Momentum']\n KsZl = ['SoftmaxCrossEntropyWithLogits', 'CrossEntropyLoss']\n __n6 = ['MindDataset', 'MnistDataset', 'Cifar10Datset']\n VSxB = dict()\n VSxB[H1ja.learning_rate] = tuKI.uniform(0.001, 0.005)\n VSxB[... | [
"0.66914874",
"0.66458917",
"0.6563913",
"0.64464897",
"0.6377926",
"0.6338843",
"0.6317205",
"0.63038385",
"0.621643",
"0.61577654",
"0.61337173",
"0.6132527",
"0.6128561",
"0.60840976",
"0.60526395",
"0.600696",
"0.60029346",
"0.59993654",
"0.5997106",
"0.599591",
"0.598529... | 0.0 | -1 |
Specify the random arguments to be generated every epoch. Images must be have same dimensions ! | def xAU6(YKHO, OOcW):
return {'flip': -1} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NqMl(YKHO):\n eVVj = ['ResNet', 'LeNet5', 'AlexNet']\n K0do = ['SGD', 'Adam', 'Momentum']\n KsZl = ['SoftmaxCrossEntropyWithLogits', 'CrossEntropyLoss']\n __n6 = ['MindDataset', 'MnistDataset', 'Cifar10Datset']\n VSxB = dict()\n VSxB[H1ja.learning_rate] = tuKI.uniform(0.001, 0.005)\n VSxB[... | [
"0.66914874",
"0.66458917",
"0.6563913",
"0.64464897",
"0.6377926",
"0.6338843",
"0.6317205",
"0.63038385",
"0.621643",
"0.61577654",
"0.61337173",
"0.6132527",
"0.6128561",
"0.60840976",
"0.60526395",
"0.600696",
"0.60029346",
"0.59993654",
"0.5997106",
"0.599591",
"0.598529... | 0.0 | -1 |
Initializes a new decision variable (or vector of decision variables, if n_vars != 1). It is recommended that you provide an initial guess (`init_guess`) and scale (`scale`) for each variable, although these are not strictly required. | def Es0b(YKHO, WzIU: int=1, kzd0: Union[float, np.ndarray]=None, NXpY: float=None, t6fF: bool=False, Ghho: str='Uncategorized', FiJ9: bool=False) -> EKAO.MX:
if t6fF and kzd0 is not None:
if oyIN.any(kzd0 <= 0):
raise ValueError('If you are initializing a log-transformed variable, the initial gu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Es0b(YKHO, WzIU: int=1, kzd0: Union[float, np.ndarray]=None, NXpY: float=None, t6fF: bool=False, Ghho: str='Default', FiJ9: bool=False) -> EKAO.MX:\n if t6fF and kzd0 is not None:\n if oyIN.any(kzd0 <= 0):\n raise ValueError('If you are initializing a log-transformed variable, the initial ... | [
"0.68989813",
"0.62049514",
"0.5991221",
"0.5984682",
"0.59474903",
"0.5938106",
"0.5922102",
"0.59073955",
"0.59073955",
"0.5900675",
"0.58616763",
"0.5861185",
"0.5833998",
"0.58124685",
"0.579057",
"0.57671344",
"0.57522523",
"0.574865",
"0.574163",
"0.57379186",
"0.572963... | 0.7007204 | 0 |
Create a data frame of sample transactions (with all fields) between the given dates (date strings that Pandas can interpret) and at the given Pandas frequency. Each positive transaction will be assigned an credit category from the given list ``credit_categories``, and each negative transaction will be assigned an debi... | def WruZ(Ilc0, w0do, QTg7='12H', gZD4=None, Gq3d=None):
xlLU = rLdf.date_range(Ilc0, w0do, freq=QTg7, name='date')
exwG = len(xlLU)
gqRb = -100
ODP9 = 100
eHNT = rLdf.DataFrame(oyIN.random.randint(gqRb, ODP9, size=(exwG, 1)), columns=['amount'], index=xlLU)
eHNT = eHNT.reset_index()
eHNT['da... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UXBd(lJYz):\n jQ3Z = rLdf.DataFrame(lJYz)\n jQ3Z = AGZt(jQ3Z, 'date', 'my_categories', range_steps=['2018-01-31', '2018-02-03'])\n aEqx = jQ3Z.copy()\n aEqx['my_categories'] = ['Category 1', 'Category 1', 'Category 1', 'Category 1', 'Category 2', 'Category 2', 'Category 2', 'Category 3', 'Category ... | [
"0.57982624",
"0.5503701",
"0.54905486",
"0.53688526",
"0.53624415",
"0.5359097",
"0.5355291",
"0.5307333",
"0.52591336",
"0.5184384",
"0.5150378",
"0.5116932",
"0.5112557",
"0.50823575",
"0.5057235",
"0.50482535",
"0.49972445",
"0.49640667",
"0.49503928",
"0.4907979",
"0.490... | 0.81406 | 0 |
Given a data frame, try to find in it the columns that correspond those in ``COLUMNS``. Build a dictionary of this correspondance of the form key column name > column name in given data frame. Return the resulting dictionary, which might be incomplete. | def vZUU(u8xL):
eHNT = u8xL.copy()
B_Yw = {}
for Z9rn in eHNT.columns:
for H5ew in No5k:
if H5ew in Z9rn.lower():
B_Yw[H5ew] = Z9rn
return B_Yw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gJQb(ZLJ_):\n h96P = {}\n for q_DO in ZLJ_:\n z0q4 = list(q_DO.keys())[0]\n h96P[z0q4] = None\n return h96P",
"def nXn5(YKHO) -> cuzp[str, x1iM[str]]:\n if not YKHO._columns_dict:\n bGrB = YKHO.columns\n if YKHO.columns_aliases_dict:\n for H5ew, BWXx in YKHO.columns... | [
"0.6918481",
"0.6469502",
"0.6141731",
"0.59336674",
"0.59160984",
"0.5846408",
"0.57411957",
"0.57231075",
"0.5685731",
"0.56812286",
"0.56804264",
"0.56670225",
"0.5663874",
"0.5658745",
"0.56542134",
"0.5617203",
"0.5615569",
"0.560669",
"0.558771",
"0.55707103",
"0.556809... | 0.61613417 | 2 |
Return the duration of the period starting at the given date and spanning the given frequency. | def EdTY(_c1T, QTg7):
HGCR = rLdf.date_range(_c1T, freq=QTg7, periods=2)
return HGCR[1] - HGCR[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KFQD(QTg7):\n JRYC = S2rL(QTg7).delta / CvMi(1, 'D')\n return JRYC",
"def KOze(nPrm, Gjtu):\n return nPrm[1:, 0].shape[0] / Gjtu",
"def OlQs(YKHO):\n if 'm' in YKHO.frequency:\n O66n = int(YKHO.frequency.replace('m', ''))\n return qcWV.timedelta(minutes=O66n)\n elif 'h' in YKHO... | [
"0.6578361",
"0.62514627",
"0.6043569",
"0.5922536",
"0.5864413",
"0.58408064",
"0.57847506",
"0.56666833",
"0.5659851",
"0.56580985",
"0.56384504",
"0.5548909",
"0.5464059",
"0.5382315",
"0.5369512",
"0.53594697",
"0.5347192",
"0.53466636",
"0.5326817",
"0.5321197",
"0.53203... | 0.77795535 | 0 |
Return a unique id for this entity. | def ShR8(YKHO) -> str:
return f'{YKHO._inst.lower()}-{YKHO._sid_data['sid']}_button-{YKHO._data[YKHO._sid_data['sid_ref']]}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._carson_entity.unique_entity_id",
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YK... | [
"0.8805997",
"0.84132797",
"0.84132797",
"0.8364765",
"0.82060736",
"0.82060736",
"0.82060736",
"0.82060736",
"0.82060736",
"0.8202444",
"0.8166627",
"0.8129626",
"0.8129626",
"0.80905503",
"0.8084652",
"0.8084652",
"0.8084652",
"0.8084652",
"0.8084652",
"0.8084652",
"0.80846... | 0.0 | -1 |
Return the state attributes. | def TzCU(YKHO) -> cuzp[str, ImMB]:
azoT = YKHO._attrs
for Es0b in YKHO._sid_data['sid_attr']:
if Es0b in YKHO._data:
azoT[RTi1(Es0b)] = YKHO._data[Es0b]
return azoT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.0 | -1 |
Obtains the Git version of the application. Actual output from `git describe` is preferred, but this will not be available in production since we're not including Git in the Docker container. Try to read the file generated by `build_docker_container.py`, then try to run `git describe`. If both fail, return a fallback v... | def ZU8c() -> str:
VFFA = '[unknown version]'
pmON = GkAb(xAKo).parent.parent
KX0a = pmON / 'frontend/src/git-version.json'
try:
with open(KX0a) as eHNT:
VFFA = qQXR.load(eHNT)['version']
except Exception:
pass
try:
NRWD = iXC1(bqo7, cwd=str(pmON), stdout=h5ye... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv():\n try:\n with open(ahDO) as eHNT:\n return eHNT.readline().strip()\n except IOError:\n with open(ahDO, 'w') as eHNT:\n XP5J = fGmS('git describe'.split(), stdout=eHNT)\n if XP5J.wait() == 0:\n return kaPv()\n else:\n ... | [
"0.80802655",
"0.8018274",
"0.7851342",
"0.7673508",
"0.7597007",
"0.74570376",
"0.7453763",
"0.74127424",
"0.7385024",
"0.7374593",
"0.73627484",
"0.7344755",
"0.7323428",
"0.7287271",
"0.7272536",
"0.71858656",
"0.7103398",
"0.7101368",
"0.70947677",
"0.7093722",
"0.7083446... | 0.7969203 | 2 |
returns a subset of list1 that has common elements removed that were found in both lists or in other words returns a subset of list1 that has elements unique to only list1 | def WKWt(Kt9y, I_KI):
cCPj = list(set(Kt9y) - set(I_KI))
cCPj.sort()
return cCPj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nZsg(Kt9y, I_KI):\n return list(set(Kt9y) & set(I_KI))",
"def xlBj(Kt9y, I_KI):\n return list(set.intersection(set(Kt9y), set(I_KI)))",
"def XMlP(Kt9y, I_KI):\n kkYL = []\n for ZfUD in Kt9y:\n if ZfUD in I_KI:\n kkYL.append(ZfUD)\n return dDv2(kkYL)",
"def YjFQ(Kt9y, I_KI... | [
"0.8131593",
"0.7922679",
"0.784567",
"0.74896675",
"0.7474688",
"0.74219155",
"0.7373409",
"0.7367572",
"0.7348356",
"0.7289032",
"0.7282676",
"0.72807956",
"0.7268353",
"0.7234352",
"0.7226403",
"0.72074354",
"0.71876496",
"0.71442837",
"0.7142178",
"0.71355265",
"0.7123221... | 0.73541844 | 8 |
Returns `model_fn` closure for TPUEstimator. | def VPYM(dyeT, phrK, VEjW, b0Ix, H0j9, USzt, kmfe, ND3i, KxAO):
def JnVv(bySB, Crrw, Tuqy, NArs):
"""The `model_fn` for TPUEstimator."""
ZylS.logging.info('*** Features ***')
for mWFP in sorted(bySB.keys()):
ZylS.logging.info(' name = %s, shape = %s, dtype = %s' % (mWFP, bySB[m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNzv(QjBU):\n\n def Csmj(bySB, Crrw, Tuqy, NArs):\n \"\"\"Model function.\"\"\"\n del Crrw, NArs\n qqWV = C3ST.BaseModel(QjBU, mode=Tuqy, features=bySB)\n if Tuqy == QUnY.ModeKeys.INFER:\n xnXT = qqWV.predicted_ids\n xnXT = ZylS.transpose(xnXT, [2, 1, 0])\n ... | [
"0.67854756",
"0.6720958",
"0.67085665",
"0.67085665",
"0.6703045",
"0.664104",
"0.66196084",
"0.6606836",
"0.6498828",
"0.64847106",
"0.64826477",
"0.6466773",
"0.64491343",
"0.63841563",
"0.6344295",
"0.6342679",
"0.6322827",
"0.62896234",
"0.6257701",
"0.62292504",
"0.6223... | 0.6185006 | 23 |
The `model_fn` for TPUEstimator. | def JnVv(bySB, Crrw, Tuqy, NArs):
ZylS.logging.info('*** Features ***')
for mWFP in sorted(bySB.keys()):
ZylS.logging.info(' name = %s, shape = %s, dtype = %s' % (mWFP, bySB[mWFP].shape, bySB[mWFP].dtype))
Q2gu = bySB['clean_feature']
lZkD = bySB['noise_feature']
a7QJ = bySB['noise_aug_feat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZPn8(YKHO, bySB, Crrw, ND3i):\n oYbx = gnPz.fn_args(YKHO._model_fn)\n B2fa = {}\n GPtr = jth9.deepcopy(YKHO._config)\n NArs = jth9.deepcopy(YKHO._params)\n if 'labels' in oYbx:\n B2fa['labels'] = Crrw\n elif Crrw is not None:\n raise ValueError('model_fn does not take labels, bu... | [
"0.72362834",
"0.7198053",
"0.71058893",
"0.70971304",
"0.7038464",
"0.7038464",
"0.697475",
"0.69312525",
"0.6887504",
"0.67796916",
"0.66569746",
"0.6626366",
"0.66256857",
"0.6591902",
"0.65852433",
"0.65476555",
"0.6534668",
"0.6486356",
"0.6484161",
"0.64805233",
"0.6425... | 0.0 | -1 |
Decodes a record to a TensorFlow example. | def F8vC(AIu6, Q3__):
PU1l = ZylS.parse_single_example(AIu6, Q3__)
nPe0 = a7ZK.tf_read_raw_audio(PU1l['noise_audio_resample'], samples_per_second=zc55, use_tpu=ND3i)
lZkD = i857.tf_extract(nPe0)
a7QJ = WBt9.after.augment(lZkD)
ALop = a7ZK.tf_read_raw_audio(PU1l['clean_audio_resample'], samples_per_s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8vC(AIu6, Q3__=Q3__):\n print('record', AIu6)\n PU1l = ZylS.parse_single_example(AIu6, Q3__)\n for mWFP in list(PU1l.keys()):\n a1PO = PU1l[mWFP]\n if a1PO.dtype == ZylS.int64:\n a1PO = ZylS.to_int32(a1PO)\n PU1l[mWFP] = a1PO\n return PU1l",
"def F8vC(AIu6, Q3__):... | [
"0.84476423",
"0.8302177",
"0.82800674",
"0.82766104",
"0.82766104",
"0.82766104",
"0.8276019",
"0.8274276",
"0.8274276",
"0.8269405",
"0.82662725",
"0.8248779",
"0.82339126",
"0.8223867",
"0.8213503",
"0.8213503",
"0.8200598",
"0.81516314",
"0.8129979",
"0.81267464",
"0.8103... | 0.74474144 | 25 |
Get the detector's configuration dictionary. Returns The detector's configuration dictionary. | def tgzD(YKHO) -> dict:
_Fei = super().get_config()
if YKHO._detector.preprocess_at_init or YKHO._detector.preprocess_fn is None or YKHO._detector.x_ref_preprocessed:
_Fei['x_ref'] = YKHO._detector._unnormalize(_Fei['x_ref'])
return _Fei | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O2aX(YKHO):\n return YKHO.config",
"def O2aX(YKHO):\n return YKHO.config",
"def tgzD(YKHO) -> dict:\n return YKHO.config",
"def tgzD(YKHO):\n return {'config': YKHO.config}",
"def tgzD(YKHO) -> dict:\n if YKHO._config is None and YKHO.config_file_path:\n YKHO.load_config()\n re... | [
"0.7761589",
"0.7761589",
"0.7755258",
"0.7481599",
"0.74789584",
"0.7435693",
"0.7404872",
"0.74000037",
"0.73912525",
"0.73912525",
"0.73912525",
"0.7387145",
"0.7385055",
"0.7381747",
"0.7374118",
"0.7374118",
"0.7374118",
"0.73479766",
"0.73275435",
"0.73275435",
"0.73275... | 0.0 | -1 |
Randomly pick a color for jerry | def D1D_(YKHO):
lh8a.colormode(255)
lh8a.pencolor((ajWY(0, 255), ajWY(0, 255), ajWY(0, 255))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pph3():\n return tuKI.choice(F4JO)",
"def Q1j8():\n return ajWY(0, oIn1 - 1)",
"def MP1f():\n return Acvy(Y5Gw)",
"def BhKl():\n d6pt = ajWY(0, len(ngeg) - 1)\n return ngeg[d6pt]",
"def pph3():\n JWJh = ETiC[oyIN.random.randint(H3Cl)]\n while oyIN.mean(JWJh) < 64:\n JWJh = E... | [
"0.8186227",
"0.8030339",
"0.7766865",
"0.76716983",
"0.76399547",
"0.7610577",
"0.7606214",
"0.75908786",
"0.75898474",
"0.7576542",
"0.7569441",
"0.7567928",
"0.75612533",
"0.7517796",
"0.74430627",
"0.7431998",
"0.7408623",
"0.74076194",
"0.7394111",
"0.73889333",
"0.73676... | 0.7994542 | 2 |
return how many degrees the turtle will need to turn to draw the next petal | def C4BJ(YKHO, AzeM):
tjON = 360 / AzeM
assert tjON > 0, "Degree Shouldn't be negative"
return tjON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DRUf():\n ZbiO.forward(30)\n ZbiO.left(45)\n ZbiO.forward(30)\n ZbiO.left(135)\n ZbiO.forward(30)\n ZbiO.left(45)\n ZbiO.forward(30)\n ZbiO.left(135)",
"def DRUf():\n ZbiO.forward(pcd6)\n ZbiO.left(B0dh)\n ZbiO.forward(pcd6)\n ZbiO.left(_IkK)\n ZbiO.forward(pcd6)\n Z... | [
"0.69053155",
"0.68934387",
"0.63444126",
"0.61406326",
"0.6108197",
"0.60849047",
"0.5898543",
"0.58816385",
"0.58350503",
"0.5829948",
"0.57972056",
"0.57750374",
"0.5768847",
"0.57660264",
"0.57576567",
"0.5744039",
"0.5716881",
"0.5715565",
"0.5703773",
"0.5699722",
"0.56... | 0.6659281 | 2 |
undistort the input image using calibrated camera | def kdLg(YKHO, VXjJ, Gn9S=False):
pYCh = XC5k.undistort(VXjJ, YKHO.mtx, YKHO.dist, None, YKHO.mtx)
if Gn9S:
QrM1.imsave('output_images/undistort_image.jpg', pYCh, cmap='gray')
return pYCh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y0iT(VXjJ, AfS6, qrII):\n print('Undistorting image')\n ITiw = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)\n U5bT, t2_1, pImw, KbVh, TB10 = XC5k.calibrateCamera(AfS6, qrII, ITiw.shape[::-1], None, None)\n drAI = XC5k.undistort(VXjJ, t2_1, pImw, None, t2_1)\n return drAI",
"def aYjx(YKHO, VXjJ):\n... | [
"0.75010246",
"0.7452125",
"0.7401219",
"0.73515505",
"0.73493654",
"0.7348429",
"0.72583234",
"0.7217742",
"0.7180026",
"0.708838",
"0.70730644",
"0.6972577",
"0.69051975",
"0.6791311",
"0.678266",
"0.660505",
"0.6568298",
"0.65449536",
"0.6510081",
"0.64651823",
"0.6410184"... | 0.65672135 | 17 |
Perform perspective transform on the input undistorted 2D image | def xqkY(YKHO, ydZO, Gn9S=False):
MKlR, yzQ0 = ydZO.shape[:2]
zZcM = oyIN.float32([[yzQ0, MKlR - 10], [0, MKlR - 10], [546, 460], [732, 460]])
zr3f = oyIN.float32([[yzQ0, MKlR], [0, MKlR], [0, 0], [yzQ0, 0]])
YKHO.M = XC5k.getPerspectiveTransform(zZcM, zr3f)
YKHO.M_inverse = XC5k.getPerspectiveTrans... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OmYE(YKHO, VXjJ, PJWX=False):\n JCJo = oyIN.array([[480, 250], [680, 250], [809, 370], [292, 370]], oyIN.float32)\n ssk4 = oyIN.array([[292, 0], [809, 0], [809, 370], [292, 370]], oyIN.float32)\n E3D9 = XC5k.getPerspectiveTransform(JCJo, ssk4)\n xQLp = oyIN.linalg.inv(E3D9)\n Z0yq = XC5k.warpPer... | [
"0.80486447",
"0.78175557",
"0.78027886",
"0.7776048",
"0.7748696",
"0.7646156",
"0.76116806",
"0.7571941",
"0.7559332",
"0.75460106",
"0.7541365",
"0.74852395",
"0.7409249",
"0.72889614",
"0.72549576",
"0.725324",
"0.7246537",
"0.7244523",
"0.7112286",
"0.7083945",
"0.708264... | 0.794153 | 1 |
Return the full path of the jupyter notebook. References | def Yt2P() -> str:
p4AR = ZbWC.search('kernel-(.*).json', DOAK.connect.get_connection_file()).group(1)
HwSA = a29M()
for N5z6 in HwSA:
geh0 = G4JS.get(TDhU(N5z6['url'], 'api/sessions'), params={'token': N5z6.get('token', '')})
for cuiw in qQXR.loads(geh0.text):
if cuiw['kernel'][... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgG9():\n aHOg = Hy7s.path.basename(DOAK.get_connection_file())\n p4AR = aHOg.split('-', 1)[1].split('.')[0]\n for rS2x in geez.list_running_servers():\n try:\n if rS2x['token'] == '' and (not rS2x['password']):\n qv1X = uRlK.request.urlopen(rS2x['url'] + 'api/sessions... | [
"0.7321952",
"0.72799814",
"0.7086205",
"0.70530117",
"0.70530117",
"0.70530117",
"0.69586396",
"0.6865654",
"0.6826443",
"0.6791778",
"0.6759377",
"0.63514173",
"0.63035905",
"0.61130375",
"0.6089604",
"0.6083097",
"0.60710794",
"0.606389",
"0.606389",
"0.6036148",
"0.598651... | 0.6945824 | 7 |
Converts a list of integers or ranges of residues to individual residue numbers. | def cqDD(FBNX):
NuwP = oyIN.array([])
FBNX = FBNX.split(',')
for ZfUD in FBNX:
try:
ZfUD = oyIN.array(str(ZfUD).split('-'), dtype='int')
except Exception as exep:
raise ValueError('The position should be a list of integers or ranges defined as: "integer-integer"')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JsaZ(Bd0T):\n yKcO = int(Bd0T.split('-')[0])\n Os4s = int(Bd0T.split('-')[1])\n nJxq = [YRbF for YRbF in range(yKcO, Os4s + 1)]\n return nJxq",
"def TpDz(YKHO):\n nJxq = []\n for WidL in glfa.GetRefinementModel(False)['aunit']['residues']:\n try:\n nJxq.append(WidL['number... | [
"0.6859854",
"0.6243832",
"0.59991044",
"0.5861226",
"0.5773101",
"0.5753639",
"0.5753639",
"0.57376605",
"0.56961644",
"0.56475073",
"0.5644179",
"0.5632169",
"0.56281847",
"0.5617917",
"0.5616813",
"0.55706304",
"0.55637735",
"0.5553415",
"0.552429",
"0.55192655",
"0.551101... | 0.61943233 | 2 |
Size of the vocabulary. | def cAlv(YKHO):
return YKHO.vocabulary_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bV1g(YKHO):\n return len(YKHO.__vocabulary)",
"def iq72(YKHO):\n return len(YKHO.vocab.keys())",
"def awLZ(YKHO):\n return len(YKHO.word2index)",
"def jXxl(YKHO) -> int:\n pass",
"def zNig(YKHO):\n return len(YKHO.vec.vocabulary_)",
"def bV1g(YKHO) -> int:\n return 256",
"def jXxl... | [
"0.9201118",
"0.8997617",
"0.8789142",
"0.8760341",
"0.8725686",
"0.8712364",
"0.8706721",
"0.8683533",
"0.86541796",
"0.8465487",
"0.84559286",
"0.84332573",
"0.83069533",
"0.82736945",
"0.8263702",
"0.82260424",
"0.8013499",
"0.80058736",
"0.7927954",
"0.7899256",
"0.780837... | 0.8384843 | 12 |
if item is not None and Not a list returns [item] else returns item | def YYDj(ZfUD):
if ZfUD is not None and (not isinstance(ZfUD, (list, tuple))):
ZfUD = [ZfUD]
return ZfUD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MplO(ZfUD):\n if not isinstance(ZfUD, list):\n return [ZfUD]\n else:\n return ZfUD",
"def AVtx(qgK3):\n for ZfUD in qgK3:\n if ZfUD != []:\n return ZfUD\n return None",
"def YYDj(ZfUD):\n if not ZfUD:\n return []\n elif isinstance(ZfUD, list):\n ... | [
"0.77018064",
"0.75861543",
"0.7511548",
"0.7441591",
"0.74089915",
"0.72691625",
"0.7142199",
"0.71093243",
"0.69730353",
"0.6833866",
"0.6801157",
"0.67558384",
"0.6735592",
"0.6734582",
"0.6708054",
"0.66757",
"0.6648435",
"0.6648435",
"0.6593589",
"0.6586225",
"0.6586225"... | 0.7740586 | 0 |
Generator of tiles arranged in a grid. | def a6Rd(YKHO, THEQ: Slide) -> (CTtz, hsfJ):
XNCM = YKHO._grid_coordinates_generator(THEQ)
for jNOo in XNCM:
try:
eL5z = THEQ.extract_tile(jNOo, YKHO.level)
except ValueError:
continue
if not YKHO.check_tissue or eL5z.has_enough_tissue():
yield (eL5z, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQOh(YKHO):\n YKHO.tiles = []\n for WKvO in range(0, YKHO.cols + 1):\n for LVAh in range(1, YKHO.rows):\n if WKvO % 2 == LVAh % 2:\n g2Ws = YKHO.tile_radius + WKvO * YKHO.cathetus\n Av5k = LVAh * YKHO.tile_radius\n A4Ls = (g2Ws, Av5k)\n ... | [
"0.77012044",
"0.7400625",
"0.7391962",
"0.73034406",
"0.7209944",
"0.72057366",
"0.7158404",
"0.7135825",
"0.7129743",
"0.7117293",
"0.71016383",
"0.7077181",
"0.70661694",
"0.7006148",
"0.69924444",
"0.69917387",
"0.6974931",
"0.6974",
"0.69531083",
"0.69304514",
"0.6904009... | 0.7573487 | 1 |
Constructs a Darts_latency_supernet model. | def HSV8(**B2fa):
B2fa['search_space'] = WZy0(_Fei)
C3ST = UcjD(**B2fa)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Bnkd, qIxc):\n super(i9zE, YKHO).__init__(Bnkd, qIxc)\n YKHO.kl_divergence = ZylS.keras.losses.KLDivergence()\n YKHO.cross_entropy = ZylS.keras.losses.CategoricalCrossentropy()\n YKHO.init_model()",
"def FIMM(YKHO, YEi6=2048, QCuz=None, AMX6=0.0, b0Ix=0.01, Ep8u=8, jxGD=prOL, nmIj=True... | [
"0.61573684",
"0.60909045",
"0.5977341",
"0.58851033",
"0.58819723",
"0.587955",
"0.5861072",
"0.58229226",
"0.5819022",
"0.58132917",
"0.5808055",
"0.5782889",
"0.5781781",
"0.57797617",
"0.57342005",
"0.5732235",
"0.5729309",
"0.5721622",
"0.57038057",
"0.57038057",
"0.5691... | 0.8063126 | 0 |
Returns an intersection points of two lines. | def YWZe(xgfQ: 'Line', tLib: 'Line') -> oyIN.ndarray:
return AU_9[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cV3q(cnXz, Ijzj):\n (o4D3, si3g), (ajwV, skBL) = cnXz\n (rNcn, Sb1k), (SzKB, INzm) = Ijzj\n Csk6 = (ajwV - o4D3) * (INzm - Sb1k) - (SzKB - rNcn) * (skBL - si3g)\n if Csk6 != 0:\n WKvO = ((ajwV * si3g - o4D3 * skBL) * (SzKB - rNcn) - (SzKB * Sb1k - rNcn * INzm) * (ajwV - o4D3)) / Csk6\n ... | [
"0.8423271",
"0.8324712",
"0.8290422",
"0.8246973",
"0.8246973",
"0.8246973",
"0.82252073",
"0.8199929",
"0.81429255",
"0.8066266",
"0.80409366",
"0.8016682",
"0.79527754",
"0.7952078",
"0.795119",
"0.7911278",
"0.7849539",
"0.78177255",
"0.7817238",
"0.78086853",
"0.7799196"... | 0.7978726 | 12 |
Sample I.I.D. client data from MNIST dataset | def NrNJ(__n6, J9Ox, yokr):
return tN0A(__n6, J9Ox, yokr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rBZF(eAYh=60000):\n oxOY = iJJ6.load('mnist:3.*.*', split='train')\n oxOY = oxOY.batch(eAYh)\n nPrm = next(oxOY.as_numpy_iterator())\n EcVT = oyIN.reshape(nPrm['image'], (eAYh, -1)) / 255.0\n nPrm = EcVT.T\n nPrm -= oyIN.mean(nPrm, axis=1, keepdims=True)\n return oLG2.asarray(nPrm)",
"de... | [
"0.7338778",
"0.72280073",
"0.7215361",
"0.71068484",
"0.70971376",
"0.7077746",
"0.7069667",
"0.6966557",
"0.6964095",
"0.6936466",
"0.69310313",
"0.6924865",
"0.69007343",
"0.6893423",
"0.6817438",
"0.67913187",
"0.67806256",
"0.67763025",
"0.67659706",
"0.6749575",
"0.6744... | 0.6484738 | 49 |
r"""Returns the size of the adjacency matrix induced by the graph. | def zNig(YKHO, tpio: Optional[int]=None) -> uLKX[AzJI[h8nf[int], h8nf[int]], h8nf[int]]:
zNig = (YKHO.num_nodes, YKHO.num_nodes)
return zNig if tpio is None else zNig[tpio] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO._adjacency_list)",
"def zNig(YKHO):\n return len(YKHO.adj)",
"def tr3E(YKHO):\n return len(YKHO._idc_in_graph)",
"def EKkU(YKHO) -> int:\n return YKHO.adj_matrix.shape[0]",
"def Ty9i(YKHO) -> int:\n return len(YKHO._adjacency_matrix)",
"def zNig(YKHO):\n ... | [
"0.79928255",
"0.7929855",
"0.7637142",
"0.75406694",
"0.7502516",
"0.7416331",
"0.72906905",
"0.72635454",
"0.72294754",
"0.7217231",
"0.71884817",
"0.718744",
"0.71344876",
"0.7091263",
"0.7076771",
"0.7061721",
"0.70576745",
"0.7053205",
"0.70464504",
"0.7029522",
"0.70197... | 0.0 | -1 |
r"""Returns the number of edges in the graph. For undirected graphs, this will return the number of bidirectional edges, which is double the amount of unique edges. | def n8F9(YKHO) -> int:
return sum([Ty9i.num_edges for Ty9i in YKHO.edge_stores]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fOCg(YKHO):\n return YKHO.graph.number_of_edges()",
"def fOCg(YKHO):\n return YKHO._graph.number_of_edges()",
"def n8F9(YKHO) -> int:\n return YKHO.__edge_count",
"def fOCg(YKHO):\n return len(list(YKHO.graph.edges()))",
"def DY3m(YKHO):\n return len(YKHO.getEdges())",
"def gRFX(YKHO):... | [
"0.8636692",
"0.8572494",
"0.85186034",
"0.8472042",
"0.8444057",
"0.8424551",
"0.83908415",
"0.8379967",
"0.83684397",
"0.8321061",
"0.8318125",
"0.8304158",
"0.8304158",
"0.82838005",
"0.82799023",
"0.8277469",
"0.82681507",
"0.826747",
"0.82673645",
"0.82558227",
"0.825457... | 0.8183313 | 27 |
r"""Returns the number of features per edge in the graph. | def JvHd(YKHO) -> int:
return YKHO._store.num_edge_features | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvHd(YKHO):\n return YKHO[0].num_edge_features",
"def dr5e(YKHO) -> int:\n return 0",
"def St5B(YKHO):\n mC4V = YKHO.get_edges()\n return len(mC4V) / 2",
"def n8F9(YKHO) -> int:\n return YKHO.edge_index.shape[1]",
"def fOCg(yvY1):\n return yvY1.number_of_edges()",
"def L1_y(YKHO):\n... | [
"0.8625337",
"0.8578121",
"0.8132086",
"0.79267484",
"0.7925561",
"0.79234153",
"0.79107076",
"0.788588",
"0.78391457",
"0.7824218",
"0.7782",
"0.7757253",
"0.7757253",
"0.7744243",
"0.7744243",
"0.7725002",
"0.76961136",
"0.76961136",
"0.76889306",
"0.7687943",
"0.7670379",
... | 0.86958873 | 0 |
r"""Returns the number of node types in the graph. | def uyNk(YKHO) -> int:
return int(YKHO.node_type.max()) + 1 if 'node_type' in YKHO else 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kRap(pNZh):\n return len(pNZh)",
"def OtzW(YKHO, PGEZ=None):\n pass",
"def lU1W(YKHO):\n return len(YKHO.nodes.keys())",
"def Kytq(YKHO):\n return len(YKHO.graph.keys())",
"def mgOG(YKHO, dXYa=None):\n if dXYa not in YKHO._nodes_type_dict:\n raise '%s is not in valid node type' % ... | [
"0.81109893",
"0.80045754",
"0.79072833",
"0.7897388",
"0.7829483",
"0.7811891",
"0.7766419",
"0.77216274",
"0.76756054",
"0.7581671",
"0.75521857",
"0.7550867",
"0.75133336",
"0.74928504",
"0.7492829",
"0.7487694",
"0.7483701",
"0.74635726",
"0.7428459",
"0.7428381",
"0.7423... | 0.860071 | 0 |
r"""Returns the number of edge types in the graph. | def Ld53(YKHO) -> int:
return int(YKHO.edge_type.max()) + 1 if 'edge_type' in YKHO else 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fOCg(YKHO, _nJc=None):\n pass",
"def fOCg(YKHO):\n return YKHO.graph.number_of_edges()",
"def fOCg(yvY1):\n return yvY1.number_of_edges()",
"def hSVo(pNZh):\n return rrLg.numEdges(pNZh)",
"def JdQB(YKHO):\n VRwr = sum([len(jzdc) for jzdc in YKHO.graph.values()])\n if YKHO.type_ == 'un... | [
"0.8228459",
"0.8056834",
"0.7983538",
"0.7937159",
"0.7933887",
"0.7905524",
"0.7902102",
"0.78877974",
"0.7875992",
"0.7855485",
"0.7855485",
"0.78497964",
"0.784159",
"0.78106666",
"0.7808633",
"0.7808633",
"0.7799055",
"0.77882236",
"0.77869767",
"0.7750547",
"0.7749002",... | 0.871626 | 0 |
weather_effect_is_active(weather_effect_type) Determine if the specified weather effect is currently active. | def uvti(YkyS: WeatherEffectType) -> bool:
return MyoP.weather_effects_are_active((YkyS,)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvti(Emd4, YkyS: CommonWeatherEffectType) -> bool:\n return Emd4.weather_effects_are_active((YkyS,))",
"def WPyn(O9jM: Iterator[WeatherEffectType]) -> bool:\n if not hasattr(B373, 'weather_service'):\n return False\n BCtn = B373.weather_service()\n if BCtn is None:\n return False\n ... | [
"0.89832604",
"0.7343327",
"0.732782",
"0.6611108",
"0.6290327",
"0.5986075",
"0.58877546",
"0.53620255",
"0.52700067",
"0.52676547",
"0.523383",
"0.52304643",
"0.52198863",
"0.52050716",
"0.51940435",
"0.5182753",
"0.51796454",
"0.51796454",
"0.5162637",
"0.5162637",
"0.5155... | 0.9087789 | 0 |
current_temperature_is_cold_or_freezing() Determine if the current temperature is cold or freezing. | def rdzC() -> bool:
CMHP = MyoP.get_current_temperature()
return CMHP == diNy.COLD or CMHP == diNy.FREEZING | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rdzC(Emd4) -> bool:\n CMHP = Emd4.get_current_temperature()\n return CMHP == v98y.COLD or CMHP == v98y.FREEZING",
"def TbM5(begE: FritzhomeDevice) -> bool:\n return begE.has_thermostat and begE.comfort_temperature is not None",
"def QqeA(YKHO) -> bool:\n if YKHO.controller.get_setting('low_temp... | [
"0.9283678",
"0.6901545",
"0.6889125",
"0.666986",
"0.66200465",
"0.6524694",
"0.6434167",
"0.6399192",
"0.63079506",
"0.62657773",
"0.62260395",
"0.622438",
"0.62022513",
"0.6143113",
"0.6104537",
"0.6046572",
"0.6035129",
"0.5972713",
"0.59475565",
"0.59322786",
"0.59174895... | 0.9344151 | 0 |
current_weather_contains_thunder_or_lightning() Determine if the current weather contains lightning or thunder. | def DjL2() -> bool:
return MyoP.weather_effects_are_active((Pswa.LIGHTNING, Pswa.THUNDER)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DjL2(Emd4) -> bool:\n return Emd4.weather_effects_are_active((LHur.LIGHTNING, LHur.THUNDER))",
"def iOqV(YKHO):\n return YKHO.world.worldData.isThundering()",
"def ES1u(YKHO) -> bool:\n BadC = YKHO.__run_command('sun')\n if float(_yR4('alt', BadC)) >= -1.0:\n return False\n HbLB = YKH... | [
"0.8907832",
"0.6658822",
"0.63417983",
"0.6241071",
"0.60202307",
"0.5936515",
"0.5883089",
"0.5880044",
"0.5876424",
"0.5838373",
"0.5764975",
"0.5748803",
"0.573044",
"0.56571203",
"0.5646472",
"0.5599579",
"0.5592428",
"0.5591995",
"0.55797184",
"0.5563103",
"0.55472916",... | 0.9065541 | 0 |
get_current_temperature() Retrieve the current temperature. | def gVzI() -> Temperature:
from weather.weather_enums import WeatherEffectType, Temperature
BCtn = B373.weather_service()
if BCtn is not None:
return Temperature(BCtn.get_weather_element_value(WeatherEffectType.TEMPERATURE, default=Temperature.WARM))
return Temperature.WARM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CMHP(YKHO):\n return YKHO._temperature",
"def CMHP(YKHO):\n return YKHO._current_temperature",
"def CMHP(YKHO):\n return YKHO._current_temperature",
"def CMHP(YKHO):\n return YKHO._current_temperature",
"def CMHP(YKHO):\n return YKHO._current_temperature",
"def CMHP(YKHO):\n return ... | [
"0.8677068",
"0.8673886",
"0.8673886",
"0.8673886",
"0.8673886",
"0.8673886",
"0.8673886",
"0.8673886",
"0.8673886",
"0.8673886",
"0.86699665",
"0.8668139",
"0.8625566",
"0.8602435",
"0.8602435",
"0.8479858",
"0.844233",
"0.84386194",
"0.8413389",
"0.8371806",
"0.83642644",
... | 0.82341033 | 28 |
get_weather_cloud_type() Retrieve the current cloud type. | def syws() -> nEX_:
BCtn = B373.weather_service()
if BCtn is None:
return nEX_.CLEAR
for f7_s in nEX_.values:
if not BCtn.get_weather_element_value(f7_s, default=0.0):
continue
return f7_s
return nEX_.CLEAR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def syws(Emd4) -> EkRa:\n BCtn = Emd4.get_weather_service()\n if BCtn is None:\n return EkRa.CLEAR\n for f7_s in EkRa.get_all():\n f9tQ = EkRa.convert_to_vanilla(f7_s)\n if not BCtn.get_weather_element_value(f9tQ, default=0.0):\n continue\n return f7_s\n return Ek... | [
"0.85274065",
"0.7332727",
"0.71217865",
"0.63367563",
"0.62409335",
"0.61484617",
"0.60965276",
"0.59847534",
"0.59309924",
"0.5915545",
"0.5849597",
"0.5849597",
"0.58439666",
"0.5809411",
"0.57546747",
"0.5743769",
"0.5741648",
"0.5733045",
"0.5691797",
"0.5639843",
"0.563... | 0.89166594 | 0 |
Returns all the prime factors of a positive integer | def uBVK(exwG):
Csk6, Llmz = (2, [])
while exwG > 1:
while exwG % Csk6 == 0:
Llmz.append(Csk6)
exwG /= Csk6
Csk6 += 1
if Csk6 * Csk6 > exwG:
if exwG > 1:
Llmz.append(exwG)
break
return Llmz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uBVK(exwG: int) -> list:\n ZgWQ = []\n while exwG % 2 == 0:\n ZgWQ.append(2)\n exwG = int(exwG / 2)\n for YRbF in range(3, int(epAf.sqrt(exwG)) + 1, 2):\n while exwG % YRbF == 0:\n ZgWQ.append(YRbF)\n exwG = int(exwG / YRbF)\n if exwG > 2:\n ZgWQ.ap... | [
"0.8344955",
"0.821398",
"0.820775",
"0.81873024",
"0.8185039",
"0.81585824",
"0.81418306",
"0.81402606",
"0.8117796",
"0.8115476",
"0.81149673",
"0.81007606",
"0.8098441",
"0.8097519",
"0.8087952",
"0.80615395",
"0.806103",
"0.806103",
"0.806083",
"0.80596936",
"0.8057257",
... | 0.79398364 | 41 |
Adds all candidates to the end of the ranking. | def zKXJ(Wy6G: nx.DiGraph, kbGe: set) -> jHsn.DiGraph:
A9IP = kbGe.difference(set(Wy6G.nodes))
BCk_ = _Fja(Wy6G)
BCk_.append(A9IP)
return Mh4C(BCk_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5HV(YKHO, kbGe):\n kbGe = list(set(kbGe))\n YKHO.riffle(kbGe)\n for SkC9 in kbGe:\n YKHO.candidates[SkC9] = []",
"def T_pI(YKHO):\n YKHO.number_of_candidates = len(YKHO.candidates)\n for fRps in YKHO.ballots:\n QT1e = fRps['ranking'][0]\n YKHO.candidates[QT1e].append(fRps... | [
"0.6916826",
"0.64433485",
"0.6254756",
"0.610566",
"0.6032505",
"0.59189904",
"0.5899614",
"0.57627285",
"0.57167244",
"0.56940496",
"0.56206673",
"0.55649024",
"0.5534761",
"0.5502915",
"0.54780173",
"0.546109",
"0.5403206",
"0.53963304",
"0.53724474",
"0.53692174",
"0.5366... | 0.6948485 | 0 |
Split train and test data. | def iXC1(YKHO):
L_DB = '{0}/{1}'.format(YKHO.context['egs']['root'], YKHO.context['data']['dir'])
for G1Hx, Ty9i in YKHO.context['data']['split'].items():
V_1d = '{0}/{1}/{2}'.format(L_DB, G1Hx, YKHO.context['data']['text'][YKHO.__class__.__name__])
o50X = Hy7s.path.dirname(V_1d)
if not ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FJfc(__n6, NI2E=0.2, zBu_=0.7):\n pass",
"def hhTY(nPrm, NI2E=0.2):\n EvQg, QOe9 = bHtP(nPrm, test_size=NI2E, random_state=42)\n return (EvQg, QOe9)",
"def lpha(nPrm, zBu_):\n ppBc = nPrm.iloc[0:pBSp(zBu_ * len(nPrm))]\n Zwka = nPrm.iloc[pBSp(zBu_ * len(nPrm)):]\n return (ppBc, Zwka)",
... | [
"0.8553264",
"0.85144055",
"0.84478056",
"0.84115165",
"0.8369283",
"0.8343692",
"0.83374065",
"0.8286442",
"0.8280621",
"0.8246846",
"0.8241774",
"0.8201831",
"0.8197603",
"0.81367105",
"0.81243265",
"0.81211257",
"0.8108907",
"0.808243",
"0.80746156",
"0.80698794",
"0.80592... | 0.0 | -1 |
Initializes an OffPolicyEstimator instance. | def FIMM(YKHO, Qabx: Policy, KMvS: float):
YKHO.policy = Qabx
YKHO.gamma = KMvS
YKHO.new_estimates = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gyoB(Emd4, NVe2: IOContext) -> 'OffPolicyEstimator':\n KMvS = NVe2.worker.policy_config['gamma']\n sjXb = list(NVe2.worker.policy_map.keys())\n if len(sjXb) > 1:\n raise NotImplementedError('Off-policy estimation is not implemented for multi-agent. You can set `input_evaluation: []` to resolve ... | [
"0.7150207",
"0.6465656",
"0.6414448",
"0.63430405",
"0.5963013",
"0.5961469",
"0.5945953",
"0.5936421",
"0.58510333",
"0.58428323",
"0.5820469",
"0.5812787",
"0.5810653",
"0.580302",
"0.57893455",
"0.5763706",
"0.5756401",
"0.5749066",
"0.57446706",
"0.57446706",
"0.5724733"... | 0.0 | -1 |
Returns an off policy estimate for the given batch of experiences. The batch will at most only contain data from one episode, but it may also only be a fragment of an episode. | def bbTD(YKHO, Wc9F: SampleBatchType) -> y4iI:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n9JF(YKHO, sEAN, uObD=1000, jUpL=False):\n YKHO.policy = oyIN.ones((len(YKHO.values), YKHO.nactions)) * (1 / YKHO.nactions)\n YKHO.action_values = oyIN.ones((len(YKHO.values), YKHO.nactions))\n w7ez = []\n CuxP = {}\n for KCHu in range(len(YKHO.values)):\n for jzdc in range(YKHO.nactions)... | [
"0.59574187",
"0.5852413",
"0.5721912",
"0.5612161",
"0.5542489",
"0.55132365",
"0.54910296",
"0.53881824",
"0.53862804",
"0.5374966",
"0.5374966",
"0.5368826",
"0.5368826",
"0.53571033",
"0.53358245",
"0.53310776",
"0.53285587",
"0.531305",
"0.5311198",
"0.5275301",
"0.52720... | 0.71531534 | 0 |
Returns list of new episode metric estimates since the last call. | def lonc(YKHO) -> x1iM[y4iI]:
yvT9 = YKHO.new_estimates
YKHO.new_estimates = []
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S8kw(YKHO) -> cuzp[I2jr, ImMB]:\n CgsC = {}\n for AcYW in YKHO._metric_reporters.values():\n llfz(CgsC, AcYW.get_episode_metric())\n return CgsC",
"def SYl3(YKHO):\n if len(YKHO._loss_history) > 0:\n N77f = JBMS(YKHO._loss_history)\n E3hk = max(YKHO._loss_history)\n else:\... | [
"0.6807557",
"0.6799079",
"0.66862386",
"0.64894116",
"0.6348561",
"0.6202292",
"0.60959595",
"0.5998183",
"0.5998183",
"0.5939402",
"0.5933375",
"0.593167",
"0.5875417",
"0.586386",
"0.58628315",
"0.5848477",
"0.5838493",
"0.5838493",
"0.583827",
"0.5813505",
"0.57949203",
... | 0.70567524 | 0 |
Returns if this store has a node stored with the given name. | def xc3U(YKHO, AwDt: str) -> bool:
return AwDt in YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lg0q(YKHO, mWFP: str) -> bool:\n return mWFP in YKHO._node_name_to_node.keys()",
"def Ierk(YKHO, CXDR):\n return CXDR in YKHO.get_node_dict()",
"def Ierk(YKHO, CXDR):\n return CXDR in YKHO.get_node_dict()",
"def ChdS(YKHO, id, mWFP):\n if not YKHO.node_exists(id):\n raise YKHO.NodeMiss... | [
"0.79024076",
"0.7705837",
"0.7705837",
"0.7014569",
"0.7011815",
"0.6961313",
"0.6929888",
"0.68950075",
"0.68813545",
"0.68733543",
"0.686764",
"0.68498427",
"0.68495834",
"0.6836102",
"0.67962855",
"0.67683476",
"0.6762189",
"0.6761494",
"0.6740019",
"0.6728675",
"0.672693... | 0.7885753 | 1 |
Returns one element in the node store. (Useful for general checking algorithms). | def a0GJ(YKHO) -> o7DN:
Ziit = list(YKHO._nodes)
return Ziit[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xuug(YKHO):\n Ziit = super().all()\n if len(Ziit) == 1:\n return Ziit[0]\n if len(Ziit) > 1:\n raise R_06(YKHO, len(Ziit))\n return None",
"def xuug(YKHO):\n Ziit = super().all()\n if Ziit:\n return Ziit[0]\n raise R_06(YKHO, 'none')",
"def xuug(YKHO):\n Ziit = ... | [
"0.6894423",
"0.68077546",
"0.67865694",
"0.6665571",
"0.6486895",
"0.64612776",
"0.64366734",
"0.638797",
"0.6381809",
"0.6343116",
"0.6275469",
"0.6254679",
"0.6213746",
"0.621234",
"0.62012357",
"0.61874723",
"0.61728615",
"0.6165514",
"0.6136954",
"0.60932255",
"0.6090503... | 0.7108674 | 0 |
Returns if this store has a node stored with the given name. | def FYXB(YKHO, AwDt: str) -> bool:
return AwDt in YKHO.__nodes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lg0q(YKHO, mWFP: str) -> bool:\n return mWFP in YKHO._node_name_to_node.keys()",
"def xc3U(YKHO, AwDt: str) -> bool:\n return AwDt in YKHO",
"def Ierk(YKHO, CXDR):\n return CXDR in YKHO.get_node_dict()",
"def Ierk(YKHO, CXDR):\n return CXDR in YKHO.get_node_dict()",
"def ChdS(YKHO, id, mWFP... | [
"0.79021674",
"0.7884596",
"0.7704299",
"0.7704299",
"0.70147955",
"0.70121545",
"0.6929963",
"0.68925667",
"0.6880792",
"0.6873605",
"0.68670475",
"0.6849207",
"0.6848469",
"0.6836201",
"0.67938966",
"0.6766938",
"0.67611825",
"0.67597955",
"0.67399186",
"0.6727926",
"0.6725... | 0.6960301 | 6 |
Returns the amount of stored nodes in the system. | def szAg(YKHO) -> int:
return len(YKHO.__nodes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgFE(YKHO) -> int:\n kRap = len(YKHO.nodes)\n return kRap",
"def sOdV(YKHO):\n return naS9.nodes.get_total_node_count(YKHO.khoros_object)",
"def kRap(YKHO) -> int:\n return qe4Y.get(YKHO, 'node_count')",
"def zNV2(YKHO):\n return YKHO._number_of_nodes",
"def _ouZ(YKHO):\n return YKHO.... | [
"0.7860959",
"0.7835421",
"0.7739232",
"0.7660086",
"0.7639055",
"0.76299196",
"0.7619472",
"0.76156956",
"0.7576059",
"0.7567673",
"0.75505674",
"0.7538064",
"0.75059366",
"0.74741876",
"0.7459756",
"0.74537754",
"0.7436516",
"0.7435038",
"0.74301255",
"0.7415598",
"0.741452... | 0.68792486 | 62 |
Ensuring that forsome is applied correctly with a failure for a dict. | def Sjo9():
YEnM = {'x': {'a': 2, 'b': 2, 'c': 3}}
eD8c = VQ6Z.equals(2)
aBkf = k3xU(YEnM).respects(fh3O('x').forsome(eD8c, keys=['a', 'b', 'c']))
with trZe.raises(uMuY) as P1dF:
aBkf.check()
kwug(P1dF, '[x -> c] => The value is 3, expected 2.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZEGI(YKHO):\n YKHO.assertFalse(hSee.nfa_interestingness_check({}))",
"def dhWo(YKHO):\n ap9_ = YKHO.input_dict\n zYcP = YKHO.helper.check_dict(ap9_)\n YKHO.assertEqual(zYcP, ap9_)\n ap9_.update(FOO='bla')\n with YKHO.assertRaises(xdB5):\n YKHO.helper.check_dict(ap9_)\n ap9_.pop('F... | [
"0.70981556",
"0.7029277",
"0.676312",
"0.6760946",
"0.672511",
"0.67220366",
"0.6706627",
"0.66864663",
"0.664938",
"0.6630729",
"0.66127723",
"0.65916264",
"0.6588309",
"0.65003043",
"0.6475979",
"0.6473813",
"0.64015937",
"0.6338332",
"0.6325522",
"0.62977844",
"0.62864137... | 0.73192376 | 0 |
Ensuring that forsome is applied correctly with a failure for a dict. | def oFV2():
YEnM = {'x': [2, 2, 3]}
eD8c = VQ6Z.equals(2)
aBkf = k3xU(YEnM).respects(fh3O('x').forsome(eD8c, keys=[0, 1, 2]))
with trZe.raises(uMuY) as P1dF:
aBkf.check()
kwug(P1dF, '[x -> 2] => The value is 3, expected 2.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sjo9():\n YEnM = {'x': {'a': 2, 'b': 2, 'c': 3}}\n eD8c = VQ6Z.equals(2)\n aBkf = k3xU(YEnM).respects(fh3O('x').forsome(eD8c, keys=['a', 'b', 'c']))\n with trZe.raises(uMuY) as P1dF:\n aBkf.check()\n kwug(P1dF, '[x -> c] => The value is 3, expected 2.')",
"def ZEGI(YKHO):\n YKHO.asse... | [
"0.7317605",
"0.7097143",
"0.7029012",
"0.67620295",
"0.67577875",
"0.6722902",
"0.67212343",
"0.6706263",
"0.66852516",
"0.6648585",
"0.66291773",
"0.66124934",
"0.6590814",
"0.6588064",
"0.6499513",
"0.64755535",
"0.64735925",
"0.6401955",
"0.6337093",
"0.6324905",
"0.62986... | 0.5995925 | 50 |
Remove the last element of the list O(n) | def Zrbn(YKHO):
DpUl = YKHO.head
if DpUl is None:
return
if DpUl.getNext() is None:
YKHO.head = None
YKHO.length -= 1
del DpUl
return
while DpUl.getNext().getNext() is not None:
DpUl = DpUl.getNext()
ycBG = DpUl.getNext()
DpUl.setNext(None)
del... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SBf0(qFa0):\n qFa0.pop(-1)",
"def SBf0(aPd6):\n del aPd6[-1]",
"def Qeks(YKHO):\n YKHO.list.takeItem(YKHO.list.count() - 1)",
"def WNBr(qFa0):\n return qFa0[:-1]",
"def Qeks(YKHO):\n if YKHO.size == 0:\n return None\n XVAW = YKHO.last.val\n if YKHO.size == 1:\n YKHO.h... | [
"0.84215045",
"0.841279",
"0.8079996",
"0.77436453",
"0.76407135",
"0.7540614",
"0.7506489",
"0.7376022",
"0.7323411",
"0.7248953",
"0.7222281",
"0.7173838",
"0.7168012",
"0.71394426",
"0.70692194",
"0.7031662",
"0.7024611",
"0.7009243",
"0.6968979",
"0.6960436",
"0.69493365"... | 0.646064 | 48 |
Flattens a given tensor such that the channel axis is first. | def PWgb(vhpA):
Nq1b = vhpA.size(1)
iQfg = (1, 0) + tuple(range(2, vhpA.dim()))
NPTA = vhpA.permute(iQfg)
return NPTA.contiguous().view(Nq1b, -1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PWgb(vhpA):\n Nq1b = vhpA.size(1)\n iQfg = (1, 0) + tuple(range(2, vhpA.dim()))\n NPTA = vhpA.permute(iQfg).contiguous()\n return NPTA.view(Nq1b, -1)",
"def PWgb(vhpA):\n Nq1b = vhpA.size(1)\n iQfg = (1, 0) + tuple(range(2, vhpA.dim()))\n NPTA = vhpA.permute(iQfg)\n return NPTA.view(N... | [
"0.80043924",
"0.7951888",
"0.7919707",
"0.7851733",
"0.7221492",
"0.7022221",
"0.69020796",
"0.6889268",
"0.6727082",
"0.66815805",
"0.6604072",
"0.6538102",
"0.6509897",
"0.6461709",
"0.6434969",
"0.6379828",
"0.63678986",
"0.63569033",
"0.6355878",
"0.6340814",
"0.6184985"... | 0.8003622 | 2 |
for a set of vectors this returns the angle [pi, pi] of the vector with each vector in the unit othonormal basis. x should be a set of normalized vectors (NCHW) | def Mpxx(WKvO):
NZQz = ht2j.eye(WKvO.shape[1], device=WKvO.device)
return ht2j.acos(ht2j.matmul(NZQz[None, None, None], WKvO.permute(0, 2, 3, 1)[..., None])).squeeze(-1).permute(0, 3, 1, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YylR(F_On: np.ndarray) -> oyIN.ndarray:\n RonD = F_On[:-1]\n a3c6 = F_On[1:]\n w8RM = (RonD * a3c6).sum(axis=1)\n TJSr = oyIN.sqrt((RonD ** 2).sum(axis=1) * (a3c6 ** 2).sum(axis=1))\n ORQW = w8RM / TJSr\n bLm4 = oyIN.arccos(ORQW)\n return bLm4",
"def q7MD(P6bq, Ty9i):\n return epAf.ac... | [
"0.7091587",
"0.6921736",
"0.68501574",
"0.683737",
"0.68334734",
"0.67990714",
"0.6753768",
"0.6637649",
"0.66228336",
"0.6601911",
"0.6585921",
"0.65522677",
"0.65463936",
"0.6538306",
"0.6512395",
"0.64651436",
"0.6446588",
"0.6406657",
"0.63993615",
"0.6367097",
"0.636463... | 0.7400944 | 0 |
generate a random password for the user | def ikbr(F3L1):
return kjgd.generate_password(F3L1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t4Un():\n return mv1M.objects.make_random_password()",
"def ikbr(CBIr):\n return mv1M.generate_random_password()",
"def Ywt8():\n return GLL2(tuKI.randint(8, 16), 1, 1, 1)",
"def ikbr():\n nkVJ = V8yT.generate_password()\n return nkVJ",
"def ikbr():\n return ''.join((jxbx().choice(tcl... | [
"0.8871325",
"0.876138",
"0.8499439",
"0.83976924",
"0.8396947",
"0.83698076",
"0.8363506",
"0.8356515",
"0.8325235",
"0.8218521",
"0.82100904",
"0.811849",
"0.8097248",
"0.8040365",
"0.80339104",
"0.8022652",
"0.80213255",
"0.7936183",
"0.7918904",
"0.78987074",
"0.78646904"... | 0.76511806 | 35 |
Generate the hashed password required for authentication | def Nvki(jTXt):
vZyF = '0000000000000000000000000000000000000000000000000000000000000000'
ifT8 = 'xxxxxxxxxxx'
Akm_ = vZyF + jTXt + ifT8
MKlR = hqsM()
MKlR.update(Akm_.encode('utf-8'))
return MKlR.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zXim(YKHO, zN5h):\n hash = HBct.sha512()\n hash.update(zN5h.encode('utf-8'))\n return WR89.b64encode(hash.digest()).decode('utf-8')",
"def qzFd(YKHO):\n SIyd = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n NTfD = ''.join((jxbx().choice(SIyd) for YRbF in range(9)))\n Hvly = YKH... | [
"0.77599394",
"0.7722478",
"0.77184564",
"0.76543176",
"0.76331276",
"0.76331276",
"0.7617169",
"0.7613735",
"0.7610913",
"0.7571969",
"0.75715995",
"0.75558907",
"0.75503975",
"0.75395125",
"0.7527238",
"0.7525246",
"0.75232697",
"0.7523101",
"0.7486663",
"0.7484769",
"0.748... | 0.0 | -1 |
Set up the domain for each variable. This will also be a dict, but be a list or dict of all elements. | def FIMM(YKHO, chwN):
YKHO.X = chwN
YKHO.D = {}
YKHO.arcs = []
for H5ew, BWXx in YKHO.X.items():
if BWXx == 0:
YKHO.D[H5ew] = range(1, gxvY + 1)
else:
YKHO.D[H5ew] = [BWXx]
A_IW = ublM.get_neighbors(H5ew, gxvY)
for g_QQ in A_IW:
if not ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vVDF(YKHO, SNsx=None):\n if SNsx == None:\n SNsx = list(YKHO.independent_vars.values())\n try:\n YKHO.values = {sN3J.name: YKHO._createDataFramePrototype() for sN3J in SNsx}\n except:\n raise ANhq('list(Variables)')\n YKHO.is_set = True",
"def ukN7(YKHO, SRYB, hkxX):\n YKH... | [
"0.7417807",
"0.6947632",
"0.6863281",
"0.6863281",
"0.6863281",
"0.6863281",
"0.6863281",
"0.6863281",
"0.6863281",
"0.6863281",
"0.68010926",
"0.6597263",
"0.6513972",
"0.64712584",
"0.6467446",
"0.64421326",
"0.6416247",
"0.6194301",
"0.61569166",
"0.61369485",
"0.6125117"... | 0.0 | -1 |
Initialize from a long gpGridPoint string representation. An example of the long format is 10_a345_102b6, where 10 is the resolution (16 in hex), a345 is the latitude integral value, and 102b6 is the longitude integral value. | def IZ2X(YKHO, FTab):
qIxc = FTab.rsplit('_')
YKHO.Resolution = int(qIxc[0], 16)
YKHO.LattitudeInt = int(qIxc[1], 16)
YKHO.LongitudeInt = int(qIxc[2], 16)
YKHO._initLatLonFloats() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vvFM(YKHO, FTab, B1Wx):\n qIxc = FTab.rsplit('_')\n YKHO.Resolution = B1Wx\n DkWr = agQI - B1Wx\n YKHO.LattitudeInt = int(qIxc[0], 16) << DkWr\n YKHO.LongitudeInt = int(qIxc[1], 16) << DkWr\n YKHO._initLatLonFloats()",
"def laPu(b_5o):\n chr, _0VL = b_5o.split(':')\n yKcO, Os4s = _0VL... | [
"0.7635224",
"0.58140737",
"0.57699895",
"0.574261",
"0.574257",
"0.56523335",
"0.5614325",
"0.5608476",
"0.55627894",
"0.5498693",
"0.5466622",
"0.5444328",
"0.54250795",
"0.5355176",
"0.53417367",
"0.5339903",
"0.5320421",
"0.52781105",
"0.52709496",
"0.5267196",
"0.5251245... | 0.85308385 | 0 |