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 |
|---|---|---|---|---|---|---|
A helper method that creates a mock configuration object. | def WzYB():
ItMU = '\nproject: "fake_project"\nzone: "fake_zone"\nstorage_bucket_name: "fake_bucket"\nclient_id: "fake_client_id"\nclient_secret: "fake_client_secret"\n'
return ItMU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mcdd(nzu_):\n rGlQ = FM6F()\n GPtr = vPjB()\n GPtr['skills']['priority_skills'] = ['foobar']\n GPtr['data_dir'] = str(nzu_)\n GPtr['server']['metrics'] = False\n GPtr['enclosure'] = {}\n rGlQ.return_value = GPtr\n return rGlQ",
"def cXh4():\n cXh4 = TMAJ.create_autospec(PSrQ)\n ... | [
"0.83300275",
"0.79019153",
"0.7663585",
"0.73585534",
"0.7228637",
"0.7177661",
"0.7060326",
"0.6977861",
"0.6875879",
"0.67590564",
"0.6731166",
"0.67184633",
"0.67069995",
"0.66998863",
"0.6687071",
"0.66632867",
"0.6652876",
"0.6588377",
"0.65834653",
"0.65613943",
"0.651... | 0.5926887 | 70 |
fully split a path | def KkWy(pmON):
SQ3m = []
pmON, Os4s = Hy7s.path.split(pmON)
while Os4s:
SQ3m.append(Os4s)
pmON, Os4s = Hy7s.path.split(pmON)
if pmON:
SQ3m.append(pmON)
SQ3m.reverse()
return SQ3m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCKq(YKHO, pmON):\n return Hy7s.path.split(pmON)",
"def ToLc(pmON):\n pmON = ZbWC.split('/|\\\\\\\\', pmON)\n return pmON",
"def _wv_(pmON):\n KCHu = []\n while True:\n cntZ, CsFy = khtY.split(pmON)\n KCHu.append(CsFy)\n if cntZ == '':\n break\n else:\n... | [
"0.85145605",
"0.8443035",
"0.8307688",
"0.81965554",
"0.8132231",
"0.791151",
"0.7856488",
"0.7833808",
"0.78279066",
"0.7721323",
"0.76692003",
"0.7644375",
"0.7619345",
"0.7612388",
"0.7584699",
"0.75667703",
"0.75554156",
"0.742971",
"0.7403719",
"0.7392738",
"0.73839384"... | 0.77260405 | 9 |
Get all files from an os.walk | def Cthh(xtX7):
RRlC = []
for tk5Y, AQSv, iumf in Hy7s.walk(xtX7):
RRlC.extend((Hy7s.path.join(tk5Y, eHNT) for eHNT in iumf))
return RRlC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dgSh(YKHO):\n NmfV = []\n for pmON, eQqJ, RRlC in Hy7s.walk(YKHO.root):\n for mWFP in RRlC:\n NmfV.append(Hy7s.path.join(YKHO.root, mWFP))\n return NmfV[0:-1]",
"def KEx4(eHKs):\n for tk5Y, bGrB, iumf in Hy7s.walk(eHKs):\n for mWFP in iumf:\n pan_ = Hy7s.path.j... | [
"0.7757519",
"0.74959517",
"0.7400449",
"0.73527074",
"0.7340954",
"0.7326075",
"0.72684574",
"0.7251959",
"0.7223948",
"0.7194878",
"0.71899074",
"0.7164098",
"0.7162436",
"0.71581405",
"0.71524096",
"0.7151809",
"0.7083325",
"0.70642424",
"0.70615923",
"0.7060801",
"0.70445... | 0.80884844 | 0 |
PyTest fixture mocking AuthConfigurationClient's store_auth method | def agpn(AZgw):
Y5vb = AZgw.patch.object(Z_sZ, 'store_auth')
return Y5vb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aMM3(AZgw):\n dDTs = AZgw.patch.object(Z_sZ, '__init__')\n dDTs.return_value = None\n return dDTs",
"def MkUO(AZgw):\n cQFz = AZgw.patch.object(Z_sZ, 'read_auth')\n cQFz.return_value = IbQK\n return cQFz",
"def Vt6_():\n x0hE = _jFL()\n assert x0hE.auth_client",
"def Oo2l(iyf9):\n... | [
"0.7310336",
"0.7184177",
"0.71282893",
"0.70946616",
"0.68613935",
"0.6778075",
"0.6717134",
"0.6629978",
"0.6563945",
"0.65219104",
"0.64986926",
"0.64868724",
"0.64765",
"0.6465363",
"0.6423758",
"0.6404253",
"0.6397233",
"0.63839257",
"0.63521296",
"0.6301509",
"0.6263771... | 0.8303084 | 0 |
PyTest fixture mocking AuthConfigurationClient's read_auth method | def MkUO(AZgw):
cQFz = AZgw.patch.object(Z_sZ, 'read_auth')
cQFz.return_value = IbQK
return cQFz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d5Wn(YKHO):\n pass",
"def aMM3(AZgw):\n dDTs = AZgw.patch.object(Z_sZ, '__init__')\n dDTs.return_value = None\n return dDTs",
"def agpn(AZgw):\n Y5vb = AZgw.patch.object(Z_sZ, 'store_auth')\n return Y5vb",
"def lyoK(YKHO):\n pass",
"def wj45(YKHO, XCZX):\n EWTI, aOxl = XCZX\n ... | [
"0.75143063",
"0.7133742",
"0.70398563",
"0.7005522",
"0.6944447",
"0.6896602",
"0.68484026",
"0.68209654",
"0.68131113",
"0.6537355",
"0.64645994",
"0.6459147",
"0.6428474",
"0.63774",
"0.6366588",
"0.6341574",
"0.62811583",
"0.6279178",
"0.62392133",
"0.6233753",
"0.6207716... | 0.8448462 | 0 |
List subscriptions (with account ID filter) Given The Account Client returns a successful response When User executes the 'show_user' commaned Then The command returns a successful response The subscription client is passed the account id filter | def lGkk(YKHO, AZgw):
ZG9D = {'foo': 'bar'}
ioER = AZgw.patch.object(ovuz, 'list', return_value=ZG9D)
Aofo = YKHO.runner.invoke(GSyo, ['subscription', 'list', '--account-id-filter', 'foo'])
assert Aofo.output == qQXR.dumps(ZG9D, indent=4, sort_keys=True) + '\n'
bGrB, B2fa = ioER.call_args
assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYkv(x0hE: KeyVaultClient) -> lLRR:\n geh0 = x0hE.list_subscriptions_request()\n l2LW = k5Fh('Subscriptions List', geh0, ['subscriptionId', 'tenantId', 'state', 'displayName'], removeNull=True, headerTransform=ouV3)\n return lLRR(outputs_prefix='AzureKeyVault.Subscription', outputs_key_field='id', out... | [
"0.7600631",
"0.6939009",
"0.6638764",
"0.6634741",
"0.6586916",
"0.6537482",
"0.6496745",
"0.6496721",
"0.646792",
"0.64417166",
"0.63978404",
"0.63942504",
"0.63908255",
"0.6378392",
"0.6298848",
"0.6272877",
"0.627263",
"0.62577367",
"0.62451327",
"0.62226814",
"0.6154752"... | 0.68078667 | 2 |
Set the north (xi) and east (eta) deflection of the vertical (in degrees) | def Jt2W(YKHO, PK0R):
YKHO._xieta = [0.0, 0.0] if PK0R is None else PK0R
if YKHO._xyz is not None:
YKHO.setXYZ(YKHO._xyz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u4bk(YKHO):\n YKHO.horizontal = (YKHO.horizontal * 2)[3:7]\n YKHO.vertical[0] = YKHO.horizontal[1]\n YKHO.vertical[2] = YKHO.horizontal[3]",
"def bErh(YKHO):\n YKHO.vertical = (YKHO.vertical * 2)[1:5]\n YKHO.horizontal[1] = YKHO.vertical[0]\n YKHO.horizontal[3] = YKHO.vertical[2]",
"def x... | [
"0.6215656",
"0.60356414",
"0.5972984",
"0.5883604",
"0.5869915",
"0.57361203",
"0.5731377",
"0.5677374",
"0.55153596",
"0.5459994",
"0.5449871",
"0.5441533",
"0.5399441",
"0.5390598",
"0.53740585",
"0.53667575",
"0.5363681",
"0.5362914",
"0.53421354",
"0.5338363",
"0.5332458... | 0.0 | -1 |
Calculate height difference between trgtstn point and this and optionally its differentials wrt X,Y,Z coordinates of base point and target point. | def MyvU(YKHO, hs2v=None, knlI=None, dHwQ=None, CD7z=None, U59G=False, Aa1e=None):
abCJ = hs2v._llh[2] - hs2v._geoidhgt - (YKHO._llh[2] - YKHO._geoidhgt)
if knlI is not None or dHwQ is not None:
if Aa1e is None:
Aa1e = njvh.OFFSET_H
if Aa1e == njvh.OFFSET_H:
abCJ += (dHwQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def trIM(YKHO, Kt_s):\n return YKHO._h(oyIN.diff(Kt_s)) * YKHO._a / YKHO._m / YKHO._c * oyIN.diff(Kt_s) * oyIN.array([1, -1])",
"def AhF0(YKHO, pan_):\n YKHO.deltas[-1] = YKHO.zetas[-1] - pan_\n for YRbF in reversed(range(YKHO.n_layers - 1)):\n YKHO.deltas[YRbF] = oyIN.multiply(oyIN.dot(YKHO.delt... | [
"0.6089625",
"0.57509667",
"0.56950426",
"0.5651719",
"0.5646768",
"0.5619889",
"0.557872",
"0.5504935",
"0.55014163",
"0.5487891",
"0.54377615",
"0.53903145",
"0.5390271",
"0.5376583",
"0.53755546",
"0.53755546",
"0.53675157",
"0.5347038",
"0.52808726",
"0.52390474",
"0.5228... | 0.70714825 | 0 |
Set displayed character (or string) for empty progress part of the bar. | def Fcgx(YKHO, hcXw):
YKHO.empty_char = hcXw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZSmD(YKHO, hcXw):\n YKHO.progress_char = hcXw",
"def fccZ(YKHO):\n YKHO._calculate_bar_width()\n print(' ' * YKHO._tw, end='\\r')",
"def sZ3R(YKHO):\n A6b2 = 0\n PqW4 = [' ' for YRbF in range(YKHO.width)]\n HwRy.stdout.write('{}'.format(''.join(PqW4)) + '\\r')\n while YKHO.spin_on == T... | [
"0.7186504",
"0.7039228",
"0.6920368",
"0.67724967",
"0.66369915",
"0.63869584",
"0.6246566",
"0.6199103",
"0.6177723",
"0.61463594",
"0.61375356",
"0.6133351",
"0.61318344",
"0.6058751",
"0.6018981",
"0.6003371",
"0.59883434",
"0.59799993",
"0.5941426",
"0.593891",
"0.593243... | 0.6442505 | 5 |
Serializes this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict... | [
"0.8420823",
"0.8404479",
"0.8361814",
"0.83085257",
"0.8282424",
"0.8282424",
"0.8282424",
"0.8282424",
"0.8282424",
"0.8282424",
"0.8235543",
"0.8217555",
"0.8213202",
"0.82027507",
"0.8181267",
"0.81790775",
"0.81728435",
"0.81534296",
"0.8117203",
"0.80905306",
"0.8072701... | 0.0 | -1 |
Serializes this instance to a JSON string. | def IZ3T(YKHO):
return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d... | [
"0.88999254",
"0.8837045",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.87147456",
"0.8637419",
"0.8619328",
"0.8598524",
"0.8572258",
"0.8568808",
"0.8568808",
"0.8446259",
"0.8446259",
"0.8446259",
... | 0.0 | -1 |
Serializes this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict... | [
"0.8420897",
"0.8404607",
"0.8361561",
"0.83086824",
"0.8282538",
"0.8282538",
"0.8282538",
"0.8282538",
"0.8282538",
"0.8282538",
"0.82356167",
"0.8217511",
"0.8212117",
"0.82026136",
"0.81813276",
"0.8179324",
"0.81729376",
"0.81534904",
"0.81175905",
"0.8089913",
"0.807217... | 0.0 | -1 |
Serializes this instance to a JSON string. | def IZ3T(YKHO):
return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d... | [
"0.88999254",
"0.8837045",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.87147456",
"0.8637419",
"0.8619328",
"0.8598524",
"0.8572258",
"0.8568808",
"0.8568808",
"0.8446259",
"0.8446259",
"0.8446259",
... | 0.0 | -1 |
multiplies weights by best position vectors (local, global) to get new direction also somehow calculates and sets new velocity magnitude RETUNS(void) | def zhkC(YKHO, SC2F, xfLA):
wW3z = 0.4
_v3Z = 0.3
zZFr = 0.3
DaM3 = 0.01 * tuKI.randrange(-100, 100, 1)
mKpN = 0.01 * tuKI.randrange(-100, 100, 1)
YKHO.velocity = (wW3z * YKHO.velocity + _v3Z * (YKHO.bestXYZ[0:2] - YKHO.position) * DaM3 + zZFr * (oyIN.array(SC2F.overBestPos) - YKHO.position) * m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bymY(YKHO):\n YKHO.pos = YKHO.pair[1].position - YKHO.pair[0].position\n YKHO.vel = YKHO.pair[1].velocity - YKHO.pair[0].velocity\n YKHO.r = YKHO.pos.length()\n YKHO.v = YKHO.vel.length()\n YKHO.inv_r = 1.0 / YKHO.r\n YKHO.rvec = YKHO.pos * YKHO.inv_r\n YKHO.rdot = (YKHO.rvec * YKHO.vel).s... | [
"0.67127395",
"0.66834754",
"0.65985256",
"0.6483789",
"0.6338442",
"0.6327866",
"0.6289658",
"0.62894166",
"0.6264754",
"0.61280584",
"0.61272955",
"0.60779405",
"0.60706735",
"0.6047755",
"0.6006723",
"0.6002695",
"0.59625036",
"0.5949647",
"0.5937763",
"0.59367377",
"0.591... | 0.69510984 | 0 |
checks if new position is feasible, getRandomWeights, updateVelocity and updatePosition if not feasible RETURNS(void) | def NtPK(YKHO):
if YKHO.function.constraints(YKHO.position[0], YKHO.position[1]) == False:
YKHO.position = oyIN.array([tuKI.uniform(-50, 50), tuKI.uniform(-50, 50)])
YKHO.velocity = oyIN.array([tuKI.uniform(-1, 1), tuKI.uniform(-1, 1)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n global _get_fitness\n assert YKHO._swarm_best is not None\n J1b4, CYjz = (tuKI(), tuKI())\n Micv = YKHO._w * YKHO._velocity + YKHO._c1 * J1b4 * (YKHO._personal_best - YKHO._position) + YKHO._c2 * CYjz * (YKHO._swarm_best - YKHO._position)\n YKHO._position = YKHO._position + Micv\n ... | [
"0.6869343",
"0.61285526",
"0.6027862",
"0.60259265",
"0.59939045",
"0.5887435",
"0.5846226",
"0.5841519",
"0.5824093",
"0.5815559",
"0.57615846",
"0.5759277",
"0.57358223",
"0.5719358",
"0.571358",
"0.5686925",
"0.56809187",
"0.5671033",
"0.5624541",
"0.56220275",
"0.5583638... | 0.7340947 | 0 |
Update x and ylim extremes with current xlim and ylim values. | def z0Vl(roaI, mqmO):
r2gD, Qzoi = (QrM1.xlim(), QrM1.ylim())
roaI = [min(r2gD[0], roaI[0]), max(r2gD[1], roaI[1])]
mqmO = [min(Qzoi[0], mqmO[0]), max(Qzoi[1], mqmO[1])]
return (roaI, mqmO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vxX5(YKHO):\n TKGt, wmQo = YKHO._get_extremes()\n YKHO.y_axis.min = TKGt\n YKHO.y_axis.max = wmQo\n YKHO.y_axis._max_min()\n if not None in [KCHu.xvalues for KCHu in YKHO]:\n TKGt, wmQo = YKHO._get_extremes('xvalues')\n YKHO.x_axis.min = TKGt\n YKHO.x_axis.max = wmQo\n ... | [
"0.7144225",
"0.69320184",
"0.6818554",
"0.6685721",
"0.65998405",
"0.6582446",
"0.64301735",
"0.62382925",
"0.6190698",
"0.61901164",
"0.6169072",
"0.61437035",
"0.6124548",
"0.6111638",
"0.6031989",
"0.60291296",
"0.6027146",
"0.6016598",
"0.59881705",
"0.5959873",
"0.59079... | 0.82579446 | 0 |
Generates a random character in [AZaz09]. | def WgJ4():
mLGw = tuKI.randint(0, 26 + 26 + 10)
if mLGw < 26:
return chr(mLGw + 65)
mLGw -= 26
if mLGw < 26:
return chr(mLGw + 97)
return chr(mLGw + 48) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VR0L() -> chr:\n return chr(int(tuKI.randrange(32, 126, 1)))",
"def R71E(ASFv):\n hcXw = ASFv[icr8.randrange(len(ASFv))]\n return hcXw",
"def R71E():\n return chr(tuKI.randrange(32, 126, 1))",
"def CbOq():\n mLGw = tuKI.randint(0, 26 + 26 + 10)\n if mLGw < 26:\n return chr(mLGw +... | [
"0.7927985",
"0.79179096",
"0.78053504",
"0.77989227",
"0.7693868",
"0.7666537",
"0.7624199",
"0.7483066",
"0.7399742",
"0.73987985",
"0.73835564",
"0.73753226",
"0.7268345",
"0.72070974",
"0.7206695",
"0.718114",
"0.713891",
"0.7099082",
"0.7097231",
"0.7079096",
"0.7075379"... | 0.75228137 | 7 |
Generates a random word with the specified length. Uses characters from the set [AZaz09]. | def PVYb(u54L):
return ''.join([WgJ4() for bGrB in range(0, u54L)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TqfU(u54L):\n return ''.join([CbOq() for bGrB in range(0, u54L)])",
"def FjP9():\n KoG3 = [chr(YRbF) for YRbF in range(ord('a'), ord('z') + 1)] + [chr(YRbF) for YRbF in range(ord('A'), ord('Z') + 1)]\n u54L = 4 + tuKI.randint(0, 4)\n str = ''\n for YRbF in range(u54L):\n str = str + tuK... | [
"0.84952474",
"0.82300705",
"0.7641217",
"0.7621799",
"0.75693935",
"0.75121194",
"0.75042564",
"0.7495294",
"0.7491513",
"0.74791205",
"0.7471113",
"0.7459112",
"0.74588704",
"0.7454624",
"0.7444072",
"0.744096",
"0.74356383",
"0.743445",
"0.74263954",
"0.7411768",
"0.739474... | 0.83133733 | 1 |
Adds a left margin to a given text block. | def tEv9(l5Ny, MVIL):
Nqlg = l5Ny.split('\n')
Nqlg = map(lambda zFiD: MVIL + zFiD, Nqlg)
return '\n'.join(Nqlg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pf6j(YKHO, pf6j=10):\n if not 0 <= pf6j <= 65535 or type(pf6j) is not int:\n raise ValueError('leftMargin must be a int between 0 and 65535')\n else:\n ZXIx = pf6j >> 8\n fX91 = pf6j - (ZXIx << 8)\n YKHO._write(YKHO.__class__.__GS + 'L' + chr(fX91) + chr(ZXIx))",
"def NTBX(Y... | [
"0.676402",
"0.58867985",
"0.58325106",
"0.57632035",
"0.564995",
"0.55590236",
"0.55512166",
"0.55457246",
"0.5529933",
"0.5529933",
"0.5499101",
"0.5439962",
"0.53545773",
"0.5349345",
"0.53170526",
"0.5305471",
"0.52631193",
"0.5254272",
"0.5235352",
"0.51805156",
"0.51784... | 0.6399678 | 1 |
Camelcases a given character sequence. E.g. 'this_string' becomes 'ThisString'. | def c3S0(l5Ny, g8rx='_'):
return ''.join(map(str.capitalize, l5Ny.split(g8rx))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uhRd(KCHu):\n return KCHu[0].upper() + KCHu[1:]",
"def hr_R(GIN8):\n return ''.join((WKvO.capitalize() or '_' for WKvO in GIN8.split('_')))",
"def hr_R(GIN8):\n return ''.join((WKvO.capitalize() or '_' for WKvO in GIN8.split('_')))",
"def hr_R(vIwR):\n return ''.join((GIN8.title() for GIN8 in... | [
"0.8092585",
"0.7674005",
"0.7674005",
"0.74586356",
"0.744835",
"0.74220484",
"0.7410334",
"0.7398983",
"0.7305898",
"0.7292607",
"0.72743505",
"0.72171223",
"0.72071016",
"0.7181978",
"0.7181339",
"0.7149593",
"0.7133927",
"0.7120746",
"0.7099033",
"0.7096239",
"0.7086894",... | 0.7093054 | 20 |
Retrieves the content of a resource file. | def HeD1(hxGQ, Eorv):
Cui_ = hxGQ.replace('.', '/')
JFat = Hy7s.path.join(Cui_, Eorv)
try:
B5hb = ANWz.import_module(hxGQ)
except ImportError:
G9jH.debug('Resource %r from package %r not found', Eorv, hxGQ)
return None
for pmON in B5hb.__path__:
G9jH.debug('Attempting... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAfx(YKHO, pmON):\n return open(Hy7s.path.join(YKHO.resource_path, pmON)).read()",
"def E4cL(YKHO, gIsw):\n pmON = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resource', gIsw)\n return open(pmON)",
"def Nwr9(XNWQ, *qIxc, **B2fa):\n pmON = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources', XNWQ)\... | [
"0.74730295",
"0.74068445",
"0.7114789",
"0.70584434",
"0.69991714",
"0.6987704",
"0.69795215",
"0.6973494",
"0.6907918",
"0.68844575",
"0.68690777",
"0.6831381",
"0.68180287",
"0.6813109",
"0.68019295",
"0.67889786",
"0.6775626",
"0.6774269",
"0.6763575",
"0.6759445",
"0.674... | 0.0 | -1 |
Formats a log statement timestamp. It includes the time zone. This is used for the prefix on lines in logging. | def bFOe(AIu6, Bjmr=None):
Z2iF = ITS7.localtime(AIu6.created)
gwzY = ITS7.tzname[Z2iF.tm_isdst]
return '%(date_time)s-%(millis)03d-%(tz_name)s' % dict(date_time=ITS7.strftime('%Y%m%d-%H%M%S', Z2iF), millis=AIu6.msecs, tz_name=gwzY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rrvb(YKHO, E3oo):\n return ITS7.strftime('%Y%m%d-%H%M%S-%Z', ITS7.localtime(E3oo))",
"def bpfo(Emd4, E3oo):\n return FdZ9(E3oo).strftime('%Y-%m-%d %H:%M:%S')",
"def Zb98(E3oo):\n return f'<!date^{int(E3oo)}^{{date_pretty}} at {{time}}| >'",
"def dd_C(E3oo: float) -> str:\n JRYC = qcWV.utcfrom... | [
"0.77781034",
"0.77444065",
"0.7076052",
"0.6984701",
"0.6950889",
"0.68832934",
"0.68676627",
"0.6862459",
"0.68368",
"0.68368",
"0.68368",
"0.6799731",
"0.65720934",
"0.6560033",
"0.65205204",
"0.6433337",
"0.64275664",
"0.64054847",
"0.6395806",
"0.6392148",
"0.6378766",
... | 0.6622533 | 12 |
Gets the most recent transactions for an account, or those within a period specified. | def gQVK(YKHO, Yrqt=0, xcsj='recent'):
Aofo = oRi_(list)
c0pk = EmOd.utils.to_list(Yrqt)
for pQ4c in c0pk:
xAU6 = {'PayLoadText': YKHO.client.transactions_request_xml(card_index=0, billing_period=pQ4c, transaction_type=xcsj)}
geh0 = G4JS.get(YKHO.client.url, xAU6).content
Wpud = QToG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VrNu(YKHO):\n awiv = False\n if not YKHO._transactions:\n awiv = True\n gQVK = []\n for ZrNc in YKHO.accounts:\n YKHO._logger.debug('Getting transactions for account \"%s\"', ZrNc.ynab_account.name)\n for Kh6j in ZrNc.get_latest_transactions():\n if not YKHO._filter_... | [
"0.63335335",
"0.63090706",
"0.6064165",
"0.59611374",
"0.5853222",
"0.5820472",
"0.58100945",
"0.5747064",
"0.5705081",
"0.5662855",
"0.56550056",
"0.5647355",
"0.56108904",
"0.5572522",
"0.55590206",
"0.55572724",
"0.5555578",
"0.55409485",
"0.55358976",
"0.5509147",
"0.550... | 0.5858498 | 4 |
Deals with all page requests different than the homepage. | def B2Dn(**B2fa):
R86S = {'path': QePW.path, 'query': QePW.query_string, 'referrer': QePW.headers.get('Referer')}
jbn3 = {'city': QePW.headers.get('X-AppEngine-City'), 'region': QePW.headers.get('X-AppEngine-Region'), 'country': QePW.headers.get('X-AppEngine-Country'), 'latlang': QePW.headers.get('X-AppEngine-C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)",
"def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)",
"def ilF4(YKHO):\n with YKHO.client.get('/home', catch_response=True) as geh0:\n for d6yW in geh0.history:\n if d6yW.status_code > 200 and d6... | [
"0.65784836",
"0.65784836",
"0.65316767",
"0.6529072",
"0.65217674",
"0.6482626",
"0.6481567",
"0.64376765",
"0.6375688",
"0.63752186",
"0.63685983",
"0.6366985",
"0.6339134",
"0.63233286",
"0.62750906",
"0.62710875",
"0.62693673",
"0.62558246",
"0.62553",
"0.6232329",
"0.617... | 0.0 | -1 |
Function to create the estimator. Can be overridden by extended classes | def OJmN(YKHO, Lh1F, WaDF, U9dU, eG0V, **B2fa):
return ZylS.estimator.DNNClassifier(Lh1F, WaDF, n_classes=U9dU, model_dir=eG0V, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AJAU(YKHO, SStx=True, t3eI=None):\n BHCt = i3ak(YKHO.base_estimator_)\n BHCt.set_params(**dict(((XP5J, getattr(YKHO, XP5J)) for XP5J in YKHO.estimator_params)))\n if t3eI is not None:\n hHTI(BHCt, t3eI)\n if SStx:\n YKHO.estimators_.append(BHCt)\n return BHCt",
"def Frq5(YKHO):\n... | [
"0.7616235",
"0.7536179",
"0.7399023",
"0.7212526",
"0.71146923",
"0.6947094",
"0.6878534",
"0.6840343",
"0.6804465",
"0.6740863",
"0.6715139",
"0.66211677",
"0.65934306",
"0.6518936",
"0.65176916",
"0.6430524",
"0.6397301",
"0.6350301",
"0.63394296",
"0.63310885",
"0.6294852... | 0.6656082 | 11 |
Load YAML from a file object or path with useful parser errors | def UEZb(zZcM):
if not isinstance(zZcM, str):
try:
IcOY = zZcM.name
except AttributeError:
IcOY = '<yaml stringio>'
zZcM = zZcM.read()
else:
IcOY = '<yaml string>'
try:
return eJb6.safe_load(zZcM)
except eJb6.YAMLError:
G9jH.error('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9B0(VqRE):\n with open(VqRE, 'r') as wOb_:\n try:\n return eJb6.safe_load(wOb_)\n except eJb6.YAMLError as exc:\n print(BQDi)",
"def tyeH(l5Ny: str, xAU6: Dict[str, str]) -> object:\n raise Pt2x('Yaml is not installed on the system') from tTpl",
"def M_9t(Emd4, pm... | [
"0.7648273",
"0.7503321",
"0.744825",
"0.73827696",
"0.73117244",
"0.7281031",
"0.71300495",
"0.7104288",
"0.70694286",
"0.7060576",
"0.6974146",
"0.6973486",
"0.69609356",
"0.69601506",
"0.6954229",
"0.6946586",
"0.6946322",
"0.6946314",
"0.69230694",
"0.6889858",
"0.687392"... | 0.7377658 | 4 |
Override copy method so that it returns an AttrDict | def jth9(YKHO):
return gRy7(dict(YKHO).copy()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b2hA(Csk6):\n if isinstance(Csk6, g760.Iterable):\n return gRy7(dict(Csk6))\n else:\n return gRy7(vars(Csk6))",
"def jth9(YKHO):\n return WY2F(dict.copy(YKHO))",
"def FzJk(YKHO):\n Csk6 = dict()\n Csk6.update(YKHO.items())\n return Csk6",
"def jth9(YKHO):\n return YKHO.... | [
"0.79777104",
"0.7526261",
"0.7489917",
"0.7322689",
"0.72928905",
"0.7133423",
"0.711386",
"0.708995",
"0.7079859",
"0.70214087",
"0.6966675",
"0.6856763",
"0.6846907",
"0.6842643",
"0.6838639",
"0.68050075",
"0.6800587",
"0.675476",
"0.6722806",
"0.66779095",
"0.66634566",
... | 0.86251104 | 0 |
Initialize a new AttrDict from the given dict. Handles any | def Ih3S(YKHO, Csk6):
for G1Hx, Ty9i in Csk6.items():
if isinstance(G1Hx, int):
G1Hx = str(G1Hx)
if isinstance(Ty9i, dict):
YKHO.set_key(G1Hx, gRy7(Ty9i))
elif isinstance(Ty9i, list):
YKHO.set_key(G1Hx, [YRbF if not isinstance(YRbF, dict) else gRy7(YRbF) f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n super(gRy7, YKHO).__init__(*qIxc, **B2fa)\n YKHO.__dict__ = YKHO",
"def jG8h(Emd4, tbx9: Dict) -> 'Attribute':\n qIxc = {}\n if 'name' in tbx9:\n qIxc['name'] = tbx9.get('name')\n if 'value' in tbx9:\n qIxc['value'] = tbx9.get('value')\n return Emd... | [
"0.75459564",
"0.7444945",
"0.7418551",
"0.7398543",
"0.7346569",
"0.7252801",
"0.71336734",
"0.70824724",
"0.7020124",
"0.69852185",
"0.6985134",
"0.6952535",
"0.6952535",
"0.6952535",
"0.6952535",
"0.6952535",
"0.6952535",
"0.6952535",
"0.6952535",
"0.6952535",
"0.6952535",... | 0.7886951 | 0 |
Returns an AttrDict initialized from the given path or file object ``f``, which must point to a YAML file. | def OXMy(Emd4, eHNT, zJe3=True):
if isinstance(eHNT, str):
with open(eHNT, 'r') as zZcM:
sAYn = Emd4(UEZb(zZcM))
else:
sAYn = Emd4(UEZb(eHNT))
if zJe3 and 'import' in sAYn:
for G1Hx in sAYn['import']:
mUAo = Emd4.from_yaml(t_yv(eHNT, G1Hx))
mUAo.un... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tIj1(eHNT: Union[str, TextIO]) -> cuzp:\n Cmrg = ZbWC.compile('.*\\\\$\\\\{([^}^{]+)\\\\}.*')\n\n def p9cP(DWkG, Q6kx):\n IH1p = Cmrg.match(Q6kx.value).group(1)\n if IH1p not in Hy7s.environ:\n raise EnvironmentError('Undefined environment variable in config')\n return FbS... | [
"0.73471355",
"0.66860604",
"0.64514816",
"0.64021313",
"0.62549525",
"0.6208135",
"0.61334",
"0.6092819",
"0.6066201",
"0.6009584",
"0.59892386",
"0.59335345",
"0.5927186",
"0.5855141",
"0.58475816",
"0.5842424",
"0.5826795",
"0.58163255",
"0.5783369",
"0.5779617",
"0.576674... | 0.59967065 | 10 |
Returns an AttrDict initialized from the given string, which must be valid YAML. | def InB_(Emd4, vIwR):
return Emd4(UEZb(vIwR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YxX6(Ul2G: str) -> dict:\n uPxI = tyeH(Ul2G, GbpP())\n h0FP(uPxI)\n return uPxI.data",
"def D_M9(Muml):\n try:\n return qQXR.loads(Muml, object_pairs_hook=U8Lr)\n except ValueError:\n DWkG = v1rv\n DWkG.add_constructor(eJb6.resolver.BaseResolver.DEFAULT_MAPPING_TAG, kVn0)\... | [
"0.7009143",
"0.67562217",
"0.6405139",
"0.6305777",
"0.62666273",
"0.62409043",
"0.6218634",
"0.6179979",
"0.6167477",
"0.6124283",
"0.6116092",
"0.6068145",
"0.6045965",
"0.6042264",
"0.6036413",
"0.59939337",
"0.5890634",
"0.5751374",
"0.570014",
"0.56383514",
"0.5636676",... | 0.7230302 | 0 |
Return the AttrDict as a pure dict (with nested dicts if necessary). | def _fYl(YKHO, TLbF=False):
if not TLbF:
return YKHO.as_dict_nested()
else:
return YKHO.as_dict_flat() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return {G1Hx: Ty9i.to_dict() if isinstance(Ty9i, gRy7) else Ty9i for G1Hx, Ty9i in YKHO.__dict__.items() if not G1Hx.startswith('_')}",
"def MNRr(YKHO):\n return {G1Hx: Ty9i.to_dict() if isinstance(Ty9i, gRy7) else Ty9i for G1Hx, Ty9i in YKHO.__dict__.items() if not G1Hx.startswith('_')}"... | [
"0.78846216",
"0.7778278",
"0.763931",
"0.76153415",
"0.7542497",
"0.7531587",
"0.74054295",
"0.72719944",
"0.7161319",
"0.71285415",
"0.71259487",
"0.6991994",
"0.6867699",
"0.6848551",
"0.68380505",
"0.6813786",
"0.67976344",
"0.67659664",
"0.6738724",
"0.6733309",
"0.67333... | 0.0 | -1 |
Returns the number of candidates not yet queued or relaxed. | def QdX9(YKHO):
return len(YKHO.__get_ids_of_all_unrelaxed_candidates__()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKZI(YKHO) -> int:\n return YKHO._nmines - YKHO._nfound",
"def AEYu(YKHO) -> int:\n return YKHO.n_tasks() - YKHO.qsize()",
"def THz7(YKHO):\n return len(YKHO._ballots) * YKHO._number_of_votes_pr_voter - YKHO._number_of_blank_votes",
"def brMI(YKHO):\n return YKHO.first_entry_count + YKHO.subs... | [
"0.68944716",
"0.68242097",
"0.6713488",
"0.6690104",
"0.6636058",
"0.6636058",
"0.6605452",
"0.65308154",
"0.65308154",
"0.6484425",
"0.64629424",
"0.6435021",
"0.63590056",
"0.63156974",
"0.63056195",
"0.6272395",
"0.6225996",
"0.61922437",
"0.61673373",
"0.61670864",
"0.61... | 0.7796681 | 0 |
Returns a candidate ready for relaxation. | def Bqgu(YKHO):
JWP5 = YKHO.__get_ids_of_all_unrelaxed_candidates__()
if len(JWP5) == 0:
raise ValueError('No unrelaxed candidate to return')
jzdc = YKHO.__get_latest_traj_for_confid__(JWP5[0])
jzdc.info['confid'] = JWP5[0]
if 'data' not in jzdc.info:
jzdc.info['data'] = {}
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SkC9(YKHO):\n return N3tN(YKHO.lan_address, YKHO.tunnel)",
"def fMMg(YKHO):\n for GERS in YKHO.solutions:\n if YKHO.fitting_function.is_legal_solution(GERS):\n return GERS\n return None",
"def djC5(YKHO, HeI2=None):\n assert all((not Or34 in YKHO._candidates for Or34 in YKHO._... | [
"0.61733824",
"0.5955021",
"0.5785094",
"0.5719447",
"0.57172066",
"0.5702437",
"0.565701",
"0.56285524",
"0.5567466",
"0.5554344",
"0.5464879",
"0.54475105",
"0.5405179",
"0.5376829",
"0.5315734",
"0.53112525",
"0.5272255",
"0.5268241",
"0.5236074",
"0.52033925",
"0.5200782"... | 0.6672598 | 0 |
Marks a configuration as queued for relaxation. | def nVaU(YKHO, jzdc):
e1Zo = jzdc.info['confid']
YKHO.c.write(None, gaid=e1Zo, queued=1, key_value_pairs=jzdc.info['key_value_pairs']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbiK(YKHO, lbiK):\n YKHO._relaxed = lbiK",
"def KEkS(YKHO):\n bD7m = T0lh + '/set_config'\n pB3N = {YKHO._pattern: qQXR.dumps(YKHO._response_dict)}\n geh0 = G4JS.put(bD7m, data=pB3N)\n if not geh0.ok:\n raise eQpt(\"Could not configure XQueue stub for queue '{1}'. Status code: {2}\".fo... | [
"0.5636644",
"0.54379946",
"0.52646136",
"0.5235014",
"0.51989406",
"0.51568085",
"0.50561696",
"0.50463223",
"0.50284195",
"0.5013441",
"0.5000572",
"0.49717903",
"0.49534714",
"0.48578596",
"0.48423442",
"0.4795844",
"0.4795844",
"0.4795844",
"0.47904685",
"0.4785795",
"0.4... | 0.6424074 | 0 |
Get the super cell, including stationary atoms, in which the structure is being optimized. | def E9pL(YKHO):
return YKHO.c.get_atoms(simulation_cell=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U0OP(YKHO, gmdD):\n P4d7 = YKHO.Unit_AtomsCoord()\n rkoI = gmdD\n 'calculate array of atoms positions in supercell'\n oeNL = P4d7\n for YRbF in range(1, rkoI[0] + 1):\n for r845 in range(1, rkoI[1] + 1):\n for G1Hx in range(1, rkoI[2] + 1):\n if YRbF == r845 == G... | [
"0.72212136",
"0.68591684",
"0.68143797",
"0.65963036",
"0.6583755",
"0.6333237",
"0.6127307",
"0.607807",
"0.5990546",
"0.5971452",
"0.5939301",
"0.5925428",
"0.58936745",
"0.5861603",
"0.5833158",
"0.5766818",
"0.57193285",
"0.5700143",
"0.5606969",
"0.5592925",
"0.5581571"... | 0.5268315 | 49 |
Add a relaxed starting candidate. | def JWUL(YKHO, SkC9, **B2fa):
Dl1G(SkC9)
if 'data' in SkC9.info:
nPrm = SkC9.info['data']
else:
nPrm = {}
e1Zo = YKHO.c.write(SkC9, origin='StartingCandidateRelaxed', relaxed=1, generation=0, extinct=0, key_value_pairs=SkC9.info['key_value_pairs'], data=nPrm, **B2fa)
YKHO.c.update(e1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gT_L(YKHO, SkC9, **B2fa):\n e1Zo = YKHO.c.write(SkC9, origin='StartingCandidateUnrelaxed', relaxed=0, generation=0, extinct=0, **B2fa)\n YKHO.c.update(e1Zo, gaid=e1Zo)\n SkC9.info['confid'] = e1Zo",
"def JWUL(YKHO, jzdc, VW36=None, pjzD=None):\n Dl1G(jzdc)\n if 'generation' not in jzdc.info['k... | [
"0.6866932",
"0.6119542",
"0.6029522",
"0.5744808",
"0.5718855",
"0.55474615",
"0.52559465",
"0.51909405",
"0.51124346",
"0.5105831",
"0.5099032",
"0.50673676",
"0.5055622",
"0.4921122",
"0.48766643",
"0.48568106",
"0.48405752",
"0.4797193",
"0.4797169",
"0.47903067",
"0.4716... | 0.7127685 | 0 |
Finds a user with the given ID from the database | def T_NJ(YKHO, uJjO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UH_v(id: str) -> mv1M:\n return mv1M.query.get(int(id))",
"def ggdo(Emd4, _eu6):\n CBIr = Emd4.query.filter_by(id=_eu6).first()\n return CBIr",
"def ggdo(Emd4, _eu6):\n UzPC, N1p7 = FfT0.connect_to_db()\n xDcj = 'SELECT * FROM {table} WHERE id=?'.format(table=Emd4.TABLE_NAME)\n Aofo = N1p... | [
"0.8479443",
"0.83984274",
"0.8327433",
"0.8061639",
"0.8004181",
"0.7984403",
"0.7977362",
"0.79523057",
"0.79426914",
"0.7918539",
"0.7908099",
"0.7907589",
"0.7904321",
"0.78996575",
"0.7845483",
"0.7843915",
"0.7807513",
"0.7807513",
"0.7807513",
"0.7807513",
"0.7805806",... | 0.7427244 | 47 |
Raise the entire fleet and change the fleet's direction. | def ez7i(YKHO):
for bVA9 in YKHO.autos.sprites():
bVA9.rect.y -= YKHO.settings.fleet_rise_speed
YKHO.settings.fleet_direction *= -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ez7i(YKHO):\n for oeTy in YKHO.aliens.sprites():\n oeTy.rect.x -= YKHO.settings.fleet_approach_speed\n YKHO.settings.fleet_direction *= -1",
"def ez7i(YKHO):\n for oeTy in YKHO.aliens.sprites():\n oeTy.rect.y += YKHO.settings.fleet_drop_speed\n YKHO.settings.fleet_direction *= -1",
... | [
"0.6956296",
"0.67858756",
"0.6705932",
"0.6705932",
"0.66921836",
"0.6272063",
"0.61195123",
"0.61195123",
"0.611865",
"0.6084587",
"0.59729075",
"0.59725595",
"0.59555143",
"0.5951545",
"0.59253466",
"0.58942163",
"0.58496314",
"0.5846775",
"0.5843246",
"0.583448",
"0.58330... | 0.6898745 | 1 |
get the max disparity | def vGoo(d2rm, tXDO):
HCKC = oyIN.inf
QwO3 = XC5k.ORB_create(nfeatures=100000, edgeThreshold=5)
D9Ga = XC5k.BFMatcher(XC5k.NORM_HAMMING, crossCheck=True)
oqj7, yzMz = QwO3.detectAndCompute(image=d2rm, mask=None)
P1A0, FlOV = QwO3.detectAndCompute(image=tXDO, mask=None)
hHld = D9Ga.match(queryDes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qfB5(YKHO):\n return YKHO.serie.max()",
"def I1to():\n nPrm = v_rS(True)\n return max([nPrm[0][YRbF][-1].flatten().item() for YRbF in range(len(nPrm))])",
"def SsUV(YKHO):\n return YKHO.rmax",
"def MUXS(YKHO):\n IznC = '%s::%s' % (YKHO.__class__.__name__, YKHO.getImageMax.__name__)\n if... | [
"0.6474737",
"0.6453953",
"0.6417665",
"0.6386365",
"0.6354075",
"0.6279357",
"0.6279357",
"0.6275388",
"0.6228926",
"0.6219197",
"0.618019",
"0.61727595",
"0.61581266",
"0.615772",
"0.61333597",
"0.6132122",
"0.6098971",
"0.6084657",
"0.6074895",
"0.60713226",
"0.6067054",
... | 0.0 | -1 |
Returns whether the action should be defined in the user interface. | def kx80(YKHO, XeOP):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eRwN(YKHO):\n return bool(YKHO._actions)",
"def HcgH(YKHO) -> bool:\n return YKHO.is_action_str(YKHO.content)",
"def m5Vd(YKHO, XeOP):\n return hasattr(YKHO, YKHO._action_handler_name(XeOP))",
"def KzJa(YKHO):\n kRSM = YKHO.request.user.may\n return not YKHO.__class__.__name__ in YKHO.requ... | [
"0.74789727",
"0.73193073",
"0.69726133",
"0.6874099",
"0.66990554",
"0.66666627",
"0.66638565",
"0.66514057",
"0.6528778",
"0.6475449",
"0.64073265",
"0.64001405",
"0.6376883",
"0.6376883",
"0.6376883",
"0.6376883",
"0.63444954",
"0.63323605",
"0.6305414",
"0.6273049",
"0.62... | 0.6758552 | 4 |
Returns an estimate density from the composition using the pure element density and this equation. | def s61C(pDQF):
InLe = 0.0
for epBp, wA3x in pDQF.items():
InLe += wA3x / cfQG.mass_density_kg_m3(epBp)
return 1.0 / InLe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p6EJ(YKHO):\n wA3x = oyIN.array([0.0] + [r8hN.value for r8hN in YKHO.fraction])\n wA3x[0] = 100 - sum(wA3x)\n if (wA3x < 0).any():\n return uIGg\n akib = YKHO._volume(wA3x)\n InLe = oyIN.array([r8hN.density() for r8hN in [YKHO.base] + YKHO.material])\n return oyIN.sum(akib * InLe)",
... | [
"0.7187182",
"0.70602435",
"0.7004154",
"0.69785357",
"0.69785357",
"0.69785357",
"0.6950296",
"0.68152124",
"0.65642124",
"0.6547703",
"0.6545218",
"0.65017605",
"0.6487486",
"0.64783704",
"0.6445813",
"0.64030546",
"0.6388768",
"0.63642126",
"0.63642126",
"0.6362881",
"0.63... | 0.7209633 | 0 |
Returns the material for the specified pure element. | def Ot59(Emd4, epBp, uhPB=None):
mWFP = cfQG.name(epBp)
pDQF = {epBp: 1.0}
CmwO = cfQG.mass_density_kg_m3(epBp)
return Emd4(pDQF, mWFP, CmwO, uhPB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h9jv(YKHO, *qIxc):\n return EdJ_.XCAFDoc_MaterialTool_GetMaterial(YKHO, *qIxc)",
"def Mx95(YKHO):\n return YKHO._F_Mstr",
"def ZCUo():\n LSZ7 = qrl6(974)\n return (LSZ7, 200)",
"def P9lS():\n return aHGw(QCJy.__path__[0] + '/materials/au.dat')",
"def yXkg(mWFP, zM4g, Cwt5):\n vb7U = k... | [
"0.62898844",
"0.6061054",
"0.58216566",
"0.5777283",
"0.5520524",
"0.54839283",
"0.5478171",
"0.5429484",
"0.54288715",
"0.5384885",
"0.5379901",
"0.53296757",
"0.5200612",
"0.5194836",
"0.51001596",
"0.5097264",
"0.5092299",
"0.5075247",
"0.50688744",
"0.5049481",
"0.504656... | 0.4867194 | 33 |
Density of material in kg/m3. Immutable cannot be modified. | def CmwO(YKHO):
return YKHO._density_kg_m3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InLe(YKHO):\n return 0.001 * YKHO.molar_mass * YKHO.pressure / (K6Rf * YKHO.temperature)",
"def M92e(YKHO):\n return YKHO._density_kg_m3 / 1000.0",
"def wYgR(YKHO):\n return YKHO.electron_density * 1000000.0",
"def MPRT(Mx95):\n if Mx95 == 'mild':\n return 7850.0\n elif Mx95 == 'al'... | [
"0.76019555",
"0.75566584",
"0.75042987",
"0.69745874",
"0.68528277",
"0.68326294",
"0.68326294",
"0.68326294",
"0.6809655",
"0.6690825",
"0.66695786",
"0.65824467",
"0.64694947",
"0.64607",
"0.64440095",
"0.6432363",
"0.6429484",
"0.64139694",
"0.6393082",
"0.6287069",
"0.62... | 0.7805884 | 0 |
Density of material in g/cm3. Immutable cannot be modified. | def M92e(YKHO):
return YKHO._density_kg_m3 / 1000.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wYgR(YKHO):\n return YKHO.electron_density * 1000000.0",
"def CmwO(YKHO):\n return YKHO._density_kg_m3",
"def InLe(YKHO):\n return 0.001 * YKHO.molar_mass * YKHO.pressure / (K6Rf * YKHO.temperature)",
"def MPRT(Mx95):\n if Mx95 == 'mild':\n return 7850.0\n elif Mx95 == 'al':\n ... | [
"0.7830923",
"0.75957865",
"0.7594146",
"0.71916604",
"0.7083939",
"0.7054858",
"0.7043591",
"0.7043591",
"0.7043591",
"0.6958933",
"0.6840344",
"0.6744098",
"0.6734313",
"0.666878",
"0.6620056",
"0.65137464",
"0.65114945",
"0.64739513",
"0.64122254",
"0.63720477",
"0.6352155... | 0.77267176 | 1 |
Returns a random position inside the map. | def X8CE():
pmON = Hy7s.path.dirname(xAKo) + Hy7s.sep + 'templates' + Hy7s.sep + 'data' + Hy7s.sep + 'taxi_stations.json'
with open(pmON) as eHNT:
Oj45 = qQXR.load(eHNT)['features']
oeNL = tuKI.choice(Oj45)
jNOo = [oeNL['geometry']['coordinates'][1], oeNL['geometry']['coordinates'][0]]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l6LO(TlMr):\n if TlMr.sum() <= 0:\n raise ValueError('There is no available space in the map.')\n s6oR = len(TlMr.shape)\n oeNL = oyIN.zeros(s6oR, dtype=oyIN.int32)\n while True:\n Aofo = TlMr\n for YRbF in range(s6oR):\n oeNL[YRbF] = oyIN.random.randint(TlMr.shape[Y... | [
"0.78322154",
"0.7758838",
"0.7703466",
"0.7531028",
"0.7520918",
"0.749802",
"0.74798745",
"0.74081016",
"0.733624",
"0.7246872",
"0.7162052",
"0.71178144",
"0.7101729",
"0.70998716",
"0.7072934",
"0.70385563",
"0.69941044",
"0.69776344",
"0.69722825",
"0.6915979",
"0.687626... | 0.75570405 | 3 |
Returns the distance between two coordinates in meters. | def _Sbn(mAYH, pks6):
return CgaZ(mAYH, pks6).meters | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FoD6(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5",
"def FoD6(Bz2B, WDnu):\n n_9K = WDnu.lat - Bz2B.lat\n fOkK = WDnu.lon - Bz2B.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5",
"def LhCJ(YKHO... | [
"0.8117228",
"0.80217755",
"0.7804001",
"0.7738809",
"0.7730546",
"0.76826996",
"0.76040953",
"0.7601301",
"0.7601301",
"0.7601301",
"0.7601301",
"0.7601301",
"0.7590113",
"0.7588026",
"0.7586656",
"0.7579564",
"0.7563654",
"0.75163054",
"0.7515529",
"0.7508974",
"0.7487664",... | 0.831811 | 0 |
Convert kilometers/hour to meters/second. | def b6ID(JRLl):
y701 = JRLl * 1000 / 3600
return y701 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K2sP(q5XV):\n return q5XV * 1000",
"def xi49(YKHO) -> None:\n if YKHO.units == 'm/s':\n YKHO.units = 'km/h'\n YKHO.value = (YKHO.value * 360 / 100).__round__(2)\n else:\n tO9_ = \"Not a valid unit conversion, expected units to be in 'm/s' but instead \" + f'units were in {YKHO.u... | [
"0.7543693",
"0.7246486",
"0.71331525",
"0.70926064",
"0.7016913",
"0.69333595",
"0.6929353",
"0.691435",
"0.6908693",
"0.6840822",
"0.6759349",
"0.6759223",
"0.67085826",
"0.66510725",
"0.6637791",
"0.65913737",
"0.65846854",
"0.6499448",
"0.6493615",
"0.64695203",
"0.642390... | 0.7602267 | 0 |
Render the main page | def d6pt() -> object:
return TvZl('ue_bootstrap.j2', title='UENERGO TAGS') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ozko():\n return TvZl('main_page.html')",
"def Ozko():\n return TvZl('index.html')",
"def b8V_():\n return TvZl('main.html')",
"def b8V_():\n return TvZl('main.html')",
"def b8V_():\n B2Dn = xhTS()\n DumB = UlWi(B2Dn)\n SV4W = CDCC()\n QpfX = {'current_page': B2Dn, 'total_pages'... | [
"0.82781464",
"0.8103563",
"0.7775523",
"0.7775523",
"0.7712574",
"0.7690664",
"0.7571747",
"0.7568287",
"0.75666183",
"0.7554107",
"0.75477314",
"0.7508612",
"0.74583364",
"0.7413243",
"0.7413243",
"0.73617375",
"0.732339",
"0.732339",
"0.7316146",
"0.72481865",
"0.7230807",... | 0.0 | -1 |
Get one random word from database | def a0GJ(YKHO):
UHFx = YKHO.aggregate(count=kbH2('id'))['count']
if UHFx < 2:
raise ValueError('not enough words')
or8S = ajWY(0, UHFx - 1)
return YKHO.all()[or8S] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a2WA(YKHO):\n pass",
"def uway():\n cfuW = G8sL()\n GIN8 = tuKI.choice(cfuW)\n return GIN8",
"def eIcJ():\n GIN8 = bovJ[qukk(0, len(bovJ))]\n return GIN8",
"def eIcJ():\n GIN8 = bovJ[qukk(0, len(bovJ))]\n return GIN8",
"def eIcJ():\n GIN8 = bovJ[qukk(0, len(bovJ))]\n retur... | [
"0.8173143",
"0.8077595",
"0.79319006",
"0.79319006",
"0.79319006",
"0.7807293",
"0.76921344",
"0.76070523",
"0.75696456",
"0.75696456",
"0.75696456",
"0.752449",
"0.7507971",
"0.74932486",
"0.7476709",
"0.74404925",
"0.74378777",
"0.74279106",
"0.74075335",
"0.7371424",
"0.7... | 0.6994051 | 28 |
Renders the home page. | def kZiy():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
returns a 1d gaussian on a 2d array of shape 'shape' | def OyV_(ROpF, yzQ0, UV8M=0, vHO5=0, q7In=0, tAX0=0.05, CkYf=False):
WKvO = oyIN.arange(0, ROpF[0])
LVAh = oyIN.arange(0, ROpF[1])
CAzz, Jd40 = oyIN.meshgrid(WKvO, LVAh, indexing='ij')
M_DK = oyIN.cos(q7In) * (CAzz - UV8M) + oyIN.sin(q7In) * (Jd40 - vHO5)
MKlR = oyIN.exp(-(M_DK * M_DK) / (2 * yzQ0 *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IeI1(ROpF=(3, 3), WTkW=0.5):\n r8hN, exwG = [(KG9w - 1.0) / 2.0 for KG9w in ROpF]\n LVAh, WKvO = oyIN.ogrid[-r8hN:r8hN + 1, -exwG:exwG + 1]\n MKlR = oyIN.exp(-(WKvO * WKvO + LVAh * LVAh) / (2.0 * WTkW * WTkW))\n MKlR[MKlR < oyIN.finfo(MKlR.dtype).eps * MKlR.max()] = 0\n MjEv = MKlR.sum()\n if... | [
"0.6801258",
"0.6757049",
"0.6755298",
"0.6754183",
"0.6690282",
"0.6553932",
"0.6553932",
"0.65327436",
"0.65327436",
"0.65199935",
"0.6505064",
"0.64217603",
"0.63755614",
"0.6374978",
"0.6361427",
"0.6317734",
"0.6293023",
"0.6215579",
"0.614452",
"0.6084037",
"0.6053269",... | 0.0 | -1 |
Compute an apparent magnitude in a given system | def wqfO(YKHO, Ebru, FOSW='Vega', z9BD=0.0):
Mkmy = YKHO._waverange(Ebru.wavelength, YKHO.wavelength)
q9mE = YKHO.wavelength[Mkmy]
aF0O = YKHO.flux[Mkmy]
if FOSW == 'AB':
eHNT = oyIN.trapz(aF0O * Ebru(q9mE) * q9mE, x=q9mE) / oyIN.trapz(Ebru(q9mE) * Z9rn / q9mE, x=q9mE)
return -2.5 * oyIN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return YKHO.real ** 2 + XTiz.inner(YKHO.pure, YKHO.pure)",
"def QEDN(YKHO, Ebru, Oz1B='AB'):\n if Oz1B not in ('AB', 'Vega'):\n raise ValueError('`system` must be one of `AB` or `Vega`')\n Dyub = YKHO.calculate_flux(Ebru)\n if Dyub > 0:\n YXbZ = -2.5 * PCK9(Dyub / Ebru... | [
"0.7292758",
"0.7171404",
"0.7113403",
"0.7058138",
"0.7041713",
"0.69590485",
"0.68035406",
"0.680234",
"0.679456",
"0.6692383",
"0.6634181",
"0.6630849",
"0.6565087",
"0.6533371",
"0.648787",
"0.64606863",
"0.6459848",
"0.6455786",
"0.6425589",
"0.6422468",
"0.6419634",
"... | 0.0 | -1 |
Run registered sideeffects functions, or suppress as appropriate. If TEST_MODE is on, or the _suppress attr is True, then the sideeffects are not run, but the `suppressed_side_effect` signal is sent this is primarily used by the disable_side_effects context manager to register which sideeffects events were suppressed (... | def yLfs(YKHO, UXqs, *qIxc, **B2fa):
if YKHO._suppress or gCuF.TEST_MODE:
YKHO.suppressed_side_effect.send(RMGy, label=UXqs)
else:
YKHO._run_side_effects(UXqs, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLfs(UXqs, *qIxc, **B2fa):\n bgK6.run_side_effects(UXqs, *qIxc, **B2fa)",
"def yLfs(YKHO, UXqs: str, *qIxc: Any, en4D: Any | None=None, **B2fa: Any) -> None:\n YKHO.try_bind_all(UXqs, *qIxc, return_value=en4D, **B2fa)\n if YKHO.is_suppressed:\n YKHO.suppressed_side_effect.send(RMGy, label=UXq... | [
"0.6412087",
"0.62416357",
"0.59964097",
"0.56458133",
"0.54883534",
"0.53686225",
"0.51898587",
"0.5124166",
"0.5112381",
"0.5048021",
"0.5034321",
"0.5019686",
"0.5009155",
"0.5005497",
"0.4990661",
"0.49792472",
"0.49790695",
"0.4954967",
"0.4928962",
"0.48964596",
"0.4896... | 0.797989 | 0 |
sets the DCC name | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOqP(YKHO, Z31E):\n q9zX = YKHO.pool.get('account.account').browse(YKHO.cr, YKHO.uid, Z31E).company_id\n YKHO.caddress = YKHO._cadd(q9zX)\n return q9zX.name",
"def oSgC(YKHO, *qIxc):\n return _VfD.Compartment_setName(YKHO, *qIxc)",
"def oSgC(YKHO, *qIxc):\n return _VfD.CompartmentReference_s... | [
"0.662083",
"0.65048045",
"0.63297886",
"0.63084394",
"0.6285737",
"0.6280893",
"0.6269647",
"0.62543106",
"0.6171647",
"0.6141098",
"0.6084774",
"0.6055118",
"0.6044105",
"0.60393894",
"0.5990857",
"0.5981757",
"0.5961525",
"0.5955938",
"0.5947456",
"0.59470284",
"0.58897567... | 0.565332 | 65 |
Returns the frame rate of this current DCC | def kgix(YKHO):
raise NotImplementedError('get_fps is not implemented') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def abR5(YKHO):\n return YKHO._frame_rate",
"def qnal(YKHO):\n if not YKHO.proxy:\n YKHO.proxy = YKHO.session.service('ALVideoRecorder')\n return YKHO.proxy.getFrameRate()",
"def JMzH(YKHO):\n return YKHO._framerate",
"def mVUw(YKHO):\n if YKHO._rate:\n return YKHO._rate\n els... | [
"0.8199084",
"0.7609545",
"0.7584592",
"0.7429174",
"0.73208266",
"0.7106402",
"0.7096785",
"0.70617723",
"0.7022254",
"0.69991726",
"0.6994234",
"0.69582385",
"0.6914659",
"0.6902799",
"0.6894614",
"0.6889496",
"0.6867951",
"0.6867051",
"0.6839382",
"0.6797281",
"0.67895395"... | 0.64540166 | 40 |
Returns True if the given file names extension is in the extensions list false otherwise. | def zc6t(YKHO, Ux0P):
if Ux0P is None:
return False
return Ux0P.split('.')[-1].lower() in YKHO.extensions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QCpd(Ux0P):\n return any((Ux0P.endswith(tTpl) for tTpl in CBZq))",
"def DVFM(Ux0P, CBZq):\n GzHq = Ux0P.lower()\n return any((GzHq.endswith(YBcr) for YBcr in CBZq))",
"def DVFM(Ux0P, CBZq):\n GzHq = Ux0P.lower()\n return any((GzHq.endswith(YBcr) for YBcr in CBZq))",
"def DVFM(Ux0P, CBZq):\... | [
"0.8621119",
"0.85567933",
"0.85567933",
"0.8480691",
"0.8480691",
"0.83640915",
"0.83498454",
"0.820233",
"0.8076915",
"0.7933924",
"0.7922959",
"0.78942746",
"0.7779565",
"0.7667508",
"0.76460284",
"0.76384634",
"0.7628203",
"0.7627468",
"0.75605035",
"0.7546966",
"0.751873... | 0.79659414 | 9 |
Create a onehot encoding of x of size k. | def N9CW(WKvO, G1Hx, yDqo=oyIN.float32):
return oyIN.array(WKvO[:, None] == oyIN.arange(G1Hx), yDqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N9CW(epBp, nMvt):\n O50u = oyIN.zeros((epBp.size, nMvt))\n O50u[oyIN.arange(epBp.size), epBp] = 1\n return O50u",
"def KLLm(WKvO, G1Hx, yDqo=oyIN.float32):\n return oyIN.array(WKvO[:, None] == oyIN.arange(G1Hx), yDqo)",
"def KLLm(WKvO, G1Hx, yDqo=oyIN.float32):\n return oyIN.array(WKvO[:, No... | [
"0.8044289",
"0.80100906",
"0.79744345",
"0.7889798",
"0.780032",
"0.7714973",
"0.75707066",
"0.7565854",
"0.74275184",
"0.7418034",
"0.7357682",
"0.73555213",
"0.7347697",
"0.73436314",
"0.7291793",
"0.7286153",
"0.7206058",
"0.72044945",
"0.71902776",
"0.71643984",
"0.71621... | 0.78977203 | 3 |
Split provided dataset into minibatches of set batch size for a set number of epochs. | def A4Kf(cC56, VJv0, Ep8u, ONBE):
qtWj = 0
yKcO = 0
H5ew = tuKI.PRNGKey(0)
while qtWj < ONBE:
Os4s = yKcO + Ep8u
if Os4s > cC56.shape[0]:
H5ew, lpha = tuKI.split(H5ew)
cZDQ = tuKI.permutation(lpha, oyIN.arange(cC56.shape[0], dtype=oyIN.int64))
cC56 = c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HC_i(__n6: List[T], Ep8u: int, hXNa: bool=True) -> bDy6[x1iM[Kt_s]]:\n D6c9 = [yKcO for yKcO in range(0, len(__n6), Ep8u)]\n if hXNa:\n tuKI.shuffle(D6c9)\n for yKcO in D6c9:\n Os4s = yKcO + Ep8u\n yield __n6[yKcO:Os4s]",
"def FJfc(__n6, NI2E):\n ppBc = __n6.skip(NI2E).shuffl... | [
"0.72677934",
"0.7168722",
"0.7158432",
"0.71082956",
"0.69468933",
"0.6936872",
"0.68887174",
"0.68543094",
"0.68411726",
"0.67549133",
"0.6648747",
"0.66101724",
"0.66047585",
"0.6596188",
"0.6596188",
"0.6596188",
"0.658694",
"0.658694",
"0.6572224",
"0.6572221",
"0.654420... | 0.6449067 | 27 |
Jinja function to modify a query URL by replacing query string parameters with keyword arguments. | def Wb_U(**hkxX):
qIxc = QePW.args.copy()
for hkS8, Qj8D in hkxX.items():
if Qj8D is not None:
qIxc[hkS8] = Qj8D
elif hkS8 in qIxc:
del qIxc[hkS8]
if qIxc:
return QePW.base_url + '?' + fNXF(qIxc)
else:
return QePW.base_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AsB1(QpfX, **B2fa):\n xDcj = QpfX['request'].GET.dict()\n xDcj.update(B2fa)\n return QIYp(xDcj)",
"def AsB1(QpfX, **B2fa):\n xDcj = QpfX['request'].GET.dict()\n xDcj.update(B2fa)\n return QIYp(xDcj)",
"def sDvk(QpfX, **B2fa):\n Xvcc = QpfX['request'].GET.copy()\n for H5ew, wEf2 in B... | [
"0.73549724",
"0.73549724",
"0.7000192",
"0.69190556",
"0.69038314",
"0.6655814",
"0.6580238",
"0.64521825",
"0.64398634",
"0.64398634",
"0.6377257",
"0.63423216",
"0.6238349",
"0.61751354",
"0.61704403",
"0.613704",
"0.6126076",
"0.612524",
"0.6090522",
"0.6087221",
"0.60512... | 0.6865226 | 5 |
Returns all playlists that match the name or an empty list | def wjdW(YKHO, mWFP):
return [XP5J for XP5J in YKHO.playlists if XP5J.title == mWFP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u6Nl(YKHO):\n hkxX = {'action': 'playlists'}\n tk5Y = YKHO.__call_api(hkxX)\n Ziit = tk5Y.getElementsByTagName('playlist')\n if not Ziit:\n return None\n vC9B = []\n try:\n for aUGN in Ziit:\n id = int(aUGN.getAttribute('id'))\n mWFP = aUGN.getElementsByTag... | [
"0.682519",
"0.68201596",
"0.6751294",
"0.6709319",
"0.66537863",
"0.66514975",
"0.6618348",
"0.65986043",
"0.6566129",
"0.6342476",
"0.63369375",
"0.62810504",
"0.6162734",
"0.6148298",
"0.61147445",
"0.6102107",
"0.59544355",
"0.5939108",
"0.58674866",
"0.5850564",
"0.58477... | 0.86612093 | 0 |
Returns a possible internal representation of this object | def wHJl(YKHO):
return str(YKHO.__dict__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])",
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def Napc(YKHO) -> laHg.Any:\n return YKHO._serialize(YKHO.__dict__)",
"def wHJl(YKHO):\n return '{}({})'.format(YKHO.__class__.__name__, YKHO._data)",
"def wHJl(YKHO):\n return YKH... | [
"0.7204943",
"0.6987548",
"0.69345546",
"0.6916779",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
... | 0.6890789 | 7 |
returns the number of items stored in this playlist | def szAg(YKHO):
return len(YKHO.items) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T8Am(YKHO):\n return len(YKHO.playlist)",
"def GADp(YKHO):\n return len(YKHO.items)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def u54L(YKHO):\n ... | [
"0.84270746",
"0.79823476",
"0.7960365",
"0.78872377",
"0.78872377",
"0.78418005",
"0.7702756",
"0.76489824",
"0.7614725",
"0.75921047",
"0.74537665",
"0.7450116",
"0.74077356",
"0.7356713",
"0.73212796",
"0.73212796",
"0.73056525",
"0.73011845",
"0.7287761",
"0.7278011",
"0.... | 0.6862828 | 63 |
Returns a possible internal representation of this object | def wHJl(YKHO):
return str(YKHO.__dict__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])",
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def Napc(YKHO) -> laHg.Any:\n return YKHO._serialize(YKHO.__dict__)",
"def wHJl(YKHO):\n return '{}({})'.format(YKHO.__class__.__name__, YKHO._data)",
"def wHJl(YKHO):\n return YKH... | [
"0.7204943",
"0.6987548",
"0.69345546",
"0.6916779",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
"0.6872479",
... | 0.6890789 | 8 |
determines the surface area of a cube with a 'side' input | def cPLc(HEZd):
return HEZd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fEMe(LyOL: float) -> float:\n if LyOL < 0:\n raise ValueError('surface_area_cube() only accepts non-negative values')\n return 6 * LyOL ** 2",
"def Q3Hq(LyOL):\n f0tD = LyOL ** 3\n return f0tD",
"def Q3Hq(D70y: number) -> FGW3:\n f0tD = 6 * D70y * D70y\n return f0tD",
"def FmDM(H... | [
"0.805144",
"0.7986797",
"0.731187",
"0.718725",
"0.71836185",
"0.6744901",
"0.66973734",
"0.6569654",
"0.6526181",
"0.6512296",
"0.6496231",
"0.64133763",
"0.6308537",
"0.6276802",
"0.6241804",
"0.62364215",
"0.6188366",
"0.61737096",
"0.6146036",
"0.6087329",
"0.6080187",
... | 0.9202969 | 0 |
Split train and test split by percentage | def T8RM(YKHO, DuZT):
DuZT = float(DuZT)
TpoY, dRms = YKHO.getXY(YKHO.data.sample(frac=(100.0 - DuZT) / 100.0, random_state=200))
s9Ci, Y5wa = YKHO.getXY(YKHO.data.drop(TpoY.index))
return (TpoY.as_matrix(), s9Ci.as_matrix(), YKHO.getCategoricalY(dRms), YKHO.getCategoricalY(Y5wa)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vtzv(__n6, LoCj=0.8):\n YA22 = int(len(__n6) * LoCj)\n return ht2j.utils.data.random_split(__n6, (YA22, len(__n6) - YA22))",
"def hhTY(jQ3Z, LkJf=50):\n return (jQ3Z.loc[jQ3Z.index.values % 100 < LkJf].reset_index().copy(), jQ3Z.loc[~(jQ3Z.index.values % 100 < LkJf)].reset_index().copy())",
"def b... | [
"0.82748425",
"0.8120937",
"0.8089938",
"0.8014541",
"0.780956",
"0.76712316",
"0.7558654",
"0.74698806",
"0.7456384",
"0.7456384",
"0.74478644",
"0.7446495",
"0.74335027",
"0.7356279",
"0.73494875",
"0.73485255",
"0.7323469",
"0.7323469",
"0.729911",
"0.7273047",
"0.72416395... | 0.7803372 | 5 |
Constructor for Input Attention Encoder | def FIMM(YKHO, Gzv5=6, Norb=128, Kt_s=10, PhLZ=2 * 128 + 16, CLda=1, uK2T=1):
super(R7vi, YKHO).__init__()
YKHO.input_dim = Gzv5
YKHO.hidden_dim = Norb
YKHO.T = Kt_s
PhLZ = Norb * 2 + Kt_s - 1
YKHO.lstm_unit = U78l.LSTM(input_size=Gzv5, hidden_size=Norb, num_layers=CLda)
YKHO.attn_linear = U... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MnDN(YKHO, g4y1):\n pass",
"def FIMM(YKHO, input=None, lUK_=None, qbr2=False, eajG=False):\n YKHO.input = input\n YKHO.signal, YKHO.noise = h3Pv(input)\n YKHO.bandwidth = lUK_\n YKHO.adaptive = qbr2\n YKHO.low_bias = eajG",
"def FIMM(YKHO, input=None, lUK_=None, qbr2=False, eajG=False):\n... | [
"0.6661585",
"0.64263797",
"0.64200747",
"0.6364351",
"0.63325757",
"0.62153625",
"0.6106124",
"0.60871387",
"0.60739964",
"0.60216635",
"0.60214394",
"0.60156465",
"0.601161",
"0.6004771",
"0.60010016",
"0.59797907",
"0.59795856",
"0.5975842",
"0.59674346",
"0.5965174",
"0.5... | 0.6640629 | 1 |
Test that Student class constructor works | def VDVO(YKHO):
mWFP = 'Mathew'
ZJe_ = 13
FjAN = 14
YEnM = FYrf.Student(name=mWFP, age=ZJe_, grade=FjAN)
YKHO.assertIsNotNone(YEnM)
YKHO.assertEqual(YEnM.name, mWFP)
YKHO.assertEqual(YEnM.grade, FjAN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, g3Gt):\n pass",
"def VDVO(YKHO):\n pass",
"def VaWJ():\n assert _rYg.first_name == 'Roman'",
"def LoQL():\n JRtB = IBqh()\n g3Gt = G8qb('Andrew Tsukuda')\n JRtB.add_student(g3Gt)\n assert len(JRtB.student_dir) == 1\n assert JRtB.student_dir[0].ID == 1",
"def VDVO(Emd4... | [
"0.7982966",
"0.7307828",
"0.72471935",
"0.71484935",
"0.70021945",
"0.6958297",
"0.69263786",
"0.67756337",
"0.67748475",
"0.6774524",
"0.6731666",
"0.6696951",
"0.6688961",
"0.66339296",
"0.66135466",
"0.658905",
"0.65427613",
"0.6502664",
"0.6471068",
"0.6405618",
"0.64055... | 0.8193032 | 0 |
Handle the not found error | def w9Bq(tf1m):
return pz3A(error=str(tf1m)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf(P1dF):\n pass",
"def EEM3(YKHO):\n RKD7.err('HTTP Error 404')",
"def o3cf():\n return c1Bu(404)",
"def Ouod(PNq_):\n return (404, [], zGZ6('Not Found', PNq_['PATH_INFO']))",
"def o3cf():\n raise CnSx.HTTPError(404, 'Not Found.')",
"def kfnF(P1dF):\n return ('No page here, dood.... | [
"0.8317496",
"0.7795668",
"0.74596083",
"0.7443178",
"0.74247843",
"0.7306098",
"0.7287073",
"0.727461",
"0.72421145",
"0.7143863",
"0.71227247",
"0.70941484",
"0.7079318",
"0.7068825",
"0.7054094",
"0.70532537",
"0.70527107",
"0.7011235",
"0.70090216",
"0.6982825",
"0.698282... | 0.0 | -1 |
Resolve a path that might be relative to this script | def aBZm(pmON):
if Hy7s.path.isabs(pmON):
return Hy7s.path.abspath(pmON)
else:
return Hy7s.path.join(sWux, pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dX4Q(VqRE: str):\n if not VqRE:\n return None\n dQB7 = Hy7s.path.join(Hy7s.path.dirname(xAKo), VqRE)\n return dQB7",
"def s2ni(NJ4L):\n return RUFc(WQbV(NJ4L))",
"def ssrL(pmON):\n if Hy7s.path.isabs(pmON):\n return pmON\n jNha = Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path... | [
"0.78298426",
"0.7733977",
"0.7699496",
"0.76036334",
"0.75168794",
"0.7358698",
"0.7288517",
"0.7198403",
"0.7141043",
"0.71294045",
"0.7050964",
"0.6934841",
"0.6863448",
"0.6813791",
"0.680175",
"0.6793247",
"0.67868644",
"0.673634",
"0.67108536",
"0.6703139",
"0.6693178",... | 0.8219571 | 0 |
Initialize the dependency object with a name (which is used as a convenience to identify these objects, but not actually used anywhere in the check_dependencies algorithm) | def FIMM(YKHO):
YKHO.dependsOn = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP: str, aeQa: List[str], e5kH: dict):\n YKHO.name = mWFP\n YKHO.deps = aeQa\n YKHO.meta = e5kH",
"def FIMM(YKHO, mWFP=None):\n YKHO._name = mWFP",
"def FIMM(YKHO, mWFP):\n YKHO._name = mWFP\n pass",
"def FIMM(YKHO, mWFP):\n YKHO.__name = mWFP\n return",
"def FIMM(Y... | [
"0.7500776",
"0.68109864",
"0.6729634",
"0.67202646",
"0.67193097",
"0.6710924",
"0.6700921",
"0.6700921",
"0.6594058",
"0.65429467",
"0.6491371",
"0.64818853",
"0.6479465",
"0.6456963",
"0.6456963",
"0.6456963",
"0.6456963",
"0.6456963",
"0.6456963",
"0.6456963",
"0.6456963"... | 0.6796081 | 2 |
Filenames are usually rejected if they contain funky characters, blocking execution | def DZlC(YKHO, KLk8=1024, LsaM=False):
if LsaM:
jZeW = KLk8
else:
jZeW = tuKI.randint(1, KLk8)
gZgb = vIwR.ascii_letters + vIwR.digits
KCHu = ''.join((tuKI.choice(gZgb) for bGrB in range(jZeW)))
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QjXG(Ux0P: str) -> str:\n if V1Lg['download']['ascii']:\n return ''.join((YRbF for YRbF in Ux0P if YRbF in IgE1))\n else:\n return ''.join((YRbF for YRbF in Ux0P if YRbF not in tcEL))",
"def LQO4(O0bm: unicode) -> QMSQ:\n ...",
"def VGqT(Ux0P):\n r3_g = [' ', ',', '+', '$', '_', '... | [
"0.72040284",
"0.69636357",
"0.6962052",
"0.679788",
"0.676156",
"0.67046124",
"0.66217357",
"0.66023",
"0.65875065",
"0.64913845",
"0.6481828",
"0.64439493",
"0.63789254",
"0.63687015",
"0.6352777",
"0.6344653",
"0.6329471",
"0.63185716",
"0.63060516",
"0.63000476",
"0.62493... | 0.0 | -1 |
Returns a random string, UTF8 encoded | def BWvy(YKHO, KLk8=1024):
jZeW = tuKI.randint(1, KLk8)
gZgb = vIwR.ascii_letters + vIwR.digits + vIwR.punctuation
KCHu = ''.join((tuKI.choice(gZgb) for bGrB in range(jZeW)))
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KpEQ():\n return ''.join(QMfv(rU7A(32)).decode('utf-8'))",
"def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')",
"def BWvy() -> str:\n KoG3 = vIwR.ascii_lowercase\n return ''.join((tuKI.choice(KoG3) ... | [
"0.7601585",
"0.73281187",
"0.72921443",
"0.7276776",
"0.7177859",
"0.71604323",
"0.7090298",
"0.70680887",
"0.7036748",
"0.6969862",
"0.69410926",
"0.6864863",
"0.6861202",
"0.68288845",
"0.6769082",
"0.67520565",
"0.6736104",
"0.66968936",
"0.6691693",
"0.66832757",
"0.6681... | 0.6437578 | 47 |
Returns a string of random bytes (excluding zero) | def tHRP(YKHO, KLk8=1024):
KCHu = ''.join((chr(tuKI.randint(1, 255)) for bGrB in range(KLk8)))
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KpEQ():\n return ''.join(QMfv(rU7A(32)).decode('utf-8'))",
"def iy0C(exwG):\n return ''.join(map(chr, (tuKI.randrange(256) for YRbF in Ni9Y(exwG))))",
"def LHkZ() -> str:\n Mkmy = tuKI.randrange(0, 255)\n Mkmy = hex(Mkmy)[2:]\n if len(Mkmy) == 1:\n return f'0{Mkmy}'\n return Mkmy",... | [
"0.7747011",
"0.76955765",
"0.76094633",
"0.74770635",
"0.7456409",
"0.74316096",
"0.74011415",
"0.73557895",
"0.7344226",
"0.73241365",
"0.7322825",
"0.7259816",
"0.72478074",
"0.72133297",
"0.72051495",
"0.71339023",
"0.70703316",
"0.70254254",
"0.7004267",
"0.70023495",
"0... | 0.72751373 | 11 |
Visits all neighbours and marks them as visited (resets) their connection | def XpBj(epBp, YRbF):
exwG = len(epBp)
vexM = [YRbF]
EmMj = False
while len(vexM) > 0:
YRbF = vexM.pop()
for r845 in range(exwG):
if epBp[YRbF][r845] == 1:
epBp[YRbF][r845] = 0
epBp[r845][YRbF] = 0
EmMj = True
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HO7a(YKHO):\n YKHO.__visited = True",
"def aJwu(YKHO):\n YKHO.__visited = False",
"def fI6g(YKHO):\n for THkp in YKHO.unvisited:\n for next in YKHO.unvisited:\n if next[0] == THkp[0] and next[1] == THkp[1] + 1 or (next[0] == THkp[0] + 1 and next[1] == THkp[1]):\n Y... | [
"0.70737803",
"0.7029681",
"0.7007848",
"0.67545897",
"0.66621304",
"0.6634973",
"0.6622531",
"0.656594",
"0.64846784",
"0.6424204",
"0.64052665",
"0.6395346",
"0.6392347",
"0.638834",
"0.6288091",
"0.6282154",
"0.6278304",
"0.62593436",
"0.6259231",
"0.62420213",
"0.6231719"... | 0.5849109 | 42 |
Unicode representation of UserRegistration. | def zAg0(YKHO):
return f'{YKHO.adm_no}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ku9n(YKHO):\n return QMSQ(YKHO.user)",
"def SiCf(YKHO):\n return '%s/%s' % (YKHO.token.id, YKHO.type)",
"def Ku9n(YKHO):\n return '{1} registration request by user {0}'.format(YKHO.user.username, YKHO.project.short_name)",
"def Ku9n(YKHO):\n return QMSQ(YKHO).encode('utf-8')",
"def Ku9n(YKH... | [
"0.6628955",
"0.62826604",
"0.6265881",
"0.60908914",
"0.59932166",
"0.5946944",
"0.5934924",
"0.5934924",
"0.59023094",
"0.5897887",
"0.5894131",
"0.5892475",
"0.58804566",
"0.58537847",
"0.584507",
"0.5786632",
"0.57735384",
"0.5717349",
"0.5711476",
"0.57079613",
"0.570641... | 0.0 | -1 |
Determines direction to move in order to reach destination, updates position. | def BZN_(YKHO):
""" Responsible for transformations """
oeNL, zJeG, nyyK = YKHO.perception
if YKHO.destination is None:
return qw7D([0, 0])
if not YKHO.awake:
return qw7D([0, 0])
if YKHO.phase == 4 and YKHO.proper_formation is not None:
Hijq = []
for YRbF in range(0, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NRcg(YKHO, BZN_: np.ndarray, XSoh: np.ndarray):\n oeNL = BZN_.copy()\n oeNL += XSoh\n while YKHO.in_board(oeNL):\n if YKHO.board[oeNL[0], oeNL[1]] == YKHO.turn:\n oeNL -= XSoh\n while (oeNL != BZN_).any():\n YKHO.board[oeNL[0], oeNL[1]] = YKHO.turn\n ... | [
"0.71950465",
"0.7120677",
"0.7004255",
"0.69608396",
"0.69205225",
"0.6896144",
"0.6867089",
"0.68539006",
"0.68121046",
"0.67883736",
"0.67783445",
"0.6771105",
"0.67290074",
"0.6710701",
"0.6701133",
"0.66757804",
"0.66708946",
"0.66695404",
"0.6656035",
"0.6645383",
"0.66... | 0.0 | -1 |
Compute dot product between two 3D vectors | def BJ1H(XP5J, vexM):
return XP5J[0] * vexM[0] + XP5J[1] * vexM[1] + XP5J[2] * vexM[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QLUs(hQHm, jlSq):\n return hQHm.x * jlSq.x + hQHm.y * jlSq.y + hQHm.z * jlSq.z",
"def pxL1(cntZ, Elif):\n if isinstance(cntZ, j6_a.Vector) and isinstance(Elif, j6_a.Vector):\n return cntZ.x * Elif.x + cntZ.y * Elif.y + cntZ.z * Elif.z",
"def BJ1H(ENWa, ZoT5):\n return sum((XOOk * pHXX for X... | [
"0.8090836",
"0.78475004",
"0.77645427",
"0.77461874",
"0.7721537",
"0.76976633",
"0.7608635",
"0.7601",
"0.7558272",
"0.7531837",
"0.7516731",
"0.75085145",
"0.74894524",
"0.74887145",
"0.7469851",
"0.7425101",
"0.74227047",
"0.7348428",
"0.7340784",
"0.72996944",
"0.7295128... | 0.64720166 | 99 |
Compute cross product between two 3D vectors | def WHx2(XP5J, vexM):
UqpO = oyIN.zeros(3)
UqpO[0] = XP5J[1] * vexM[2] - XP5J[2] * vexM[1]
UqpO[1] = XP5J[2] * vexM[0] - XP5J[0] * vexM[2]
UqpO[2] = XP5J[0] * vexM[1] - XP5J[1] * vexM[0]
return UqpO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wnaF(hQHm, jlSq):\n return _J6W.CG3dVector(hQHm[1] * jlSq[2] - jlSq[1] * hQHm[2], hQHm[2] * jlSq[0] - jlSq[2] * hQHm[0], hQHm[0] * jlSq[1] - jlSq[0] * hQHm[1])",
"def dcUW(WKvO, LVAh):\n if len(WKvO) != len(LVAh):\n raise ValueError('vector lengths differ')\n elif len(WKvO) > 3:\n rais... | [
"0.8103337",
"0.79027957",
"0.7885802",
"0.7813807",
"0.7719637",
"0.77042264",
"0.7577648",
"0.75723106",
"0.7515589",
"0.7497018",
"0.7470461",
"0.73870635",
"0.73757094",
"0.73615724",
"0.7352729",
"0.7265235",
"0.72434634",
"0.7240499",
"0.72029793",
"0.71904427",
"0.7161... | 0.6824485 | 37 |
Compute a normalized 3D vector | def NkkI(XP5J):
return XP5J / VlDb(XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MgLU(jzdc: Vector, Fg_i: Vector, Z9rn: Vector) -> lNLu:\n return (Fg_i - jzdc).cross(Z9rn - jzdc).normalize()",
"def olus(o4D3, si3g, Rtnc, ajwV, skBL, mPai, rNcn, Sb1k, Exmq):\n EBgd = oyIN.array([o4D3, si3g, Rtnc])\n HpuQ = oyIN.array([ajwV, skBL, mPai])\n Lq8X = oyIN.array([rNcn, Sb1k, Exmq])\... | [
"0.77412444",
"0.74230975",
"0.73903817",
"0.7362954",
"0.72049993",
"0.7191469",
"0.718338",
"0.7117203",
"0.7055314",
"0.7007513",
"0.69718647",
"0.69698656",
"0.6939706",
"0.6921109",
"0.6877194",
"0.6866537",
"0.6835702",
"0.68306947",
"0.6830219",
"0.67800635",
"0.677693... | 0.0 | -1 |
Return current day as number. | def JEuV() -> int:
return qcWV.now().day | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z6yu(YKHO):\n CjKC = qcWV.datetime.today().day\n return CjKC",
"def dMDr():\n wzkt = FXGE.timezone('America/Los_Angeles').localize(qcWV.now())\n return wzkt.strftime('%m/%d')",
"def JEuV():\n dMDr = qcWV.now().strftime('%A').lower()\n return dMDr",
"def CjKC(YKHO) -> int:\n return qe... | [
"0.7832025",
"0.7698246",
"0.7563939",
"0.7450216",
"0.72606057",
"0.7248932",
"0.7248932",
"0.69822186",
"0.696409",
"0.69034994",
"0.69034994",
"0.69034994",
"0.6853649",
"0.6768469",
"0.6725069",
"0.6667248",
"0.6647424",
"0.65954626",
"0.6574029",
"0.65510964",
"0.6523883... | 0.8539054 | 0 |
Return current month as number. | def u9r8() -> int:
return qcWV.now().month | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MRC9(YKHO):\n return epAf.ceil(YKHO.wcount % 48 / 4)",
"def x0eS(YKHO) -> int:\n if YKHO.is_old_style:\n return int(YKHO.split('/', 1)[1][2:4])\n return int(YKHO[2:4])",
"def x0eS(YKHO):\n return 0",
"def x0eS(YKHO):\n return 0",
"def cpvk(YKHO):\n return '%02d' % YKHO._month",... | [
"0.78995097",
"0.78582907",
"0.75367856",
"0.75367856",
"0.75338036",
"0.74623626",
"0.743875",
"0.74336714",
"0.74295276",
"0.7406147",
"0.73941314",
"0.7309636",
"0.7309636",
"0.7286668",
"0.70591694",
"0.7013933",
"0.699946",
"0.6975091",
"0.6952701",
"0.6941629",
"0.69406... | 0.88991773 | 0 |
Return string date in 'yyyymmdd' e.g. (20201130) format. | def DeyU() -> str:
return qcWV.now().strftime('%Y-%m-%d') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvEs(_c1T):\n CjKC = _c1T.day\n x0eS = _c1T.month\n lO87 = _c1T.year\n quSE = str(x0eS) + '/'\n quSE += str(CjKC) + '/'\n quSE += str(lO87)\n return quSE",
"def FStF(cICj, lO87):\n return cICj + '/' + str(lO87)",
"def NmBo(_c1T):\n Csk6 = str(_c1T).split('-')\n FStF = ''\n ... | [
"0.76417637",
"0.7372379",
"0.7328484",
"0.7010401",
"0.69705087",
"0.69670033",
"0.69419545",
"0.692285",
"0.69198996",
"0.68915015",
"0.6808143",
"0.6796693",
"0.6796693",
"0.67710483",
"0.674828",
"0.6694817",
"0.667185",
"0.665758",
"0.6634531",
"0.66313154",
"0.6588007",... | 0.0 | -1 |
Return string date in 'yyyymmddTH' e.g. (20201130T16) format. | def O0LM() -> str:
return qcWV.now().strftime('%Y-%m-%dT%H') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Net5(_c1T):\n return qcWV.strftime(_c1T, '%Y-%m-%dT%H:%M:%S.%fZ')",
"def JvEs(_c1T):\n CjKC = _c1T.day\n x0eS = _c1T.month\n lO87 = _c1T.year\n quSE = str(x0eS) + '/'\n quSE += str(CjKC) + '/'\n quSE += str(lO87)\n return quSE",
"def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC... | [
"0.70045054",
"0.6882798",
"0.6876578",
"0.6876578",
"0.6826644",
"0.6754797",
"0.6682447",
"0.6567862",
"0.65463924",
"0.6528986",
"0.64985466",
"0.6461824",
"0.64501816",
"0.64395046",
"0.64333284",
"0.6410861",
"0.6402744",
"0.63686323",
"0.63595337",
"0.63001245",
"0.6299... | 0.0 | -1 |
Return string date in 'H' e.g. (06) format. | def pfpY() -> str:
return qcWV.now().strftime('%H') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROt1(YKHO):\n return '%s:00:00' % YKHO.timestamp[:13]",
"def D0Qi(_c1T):\n return _c1T.hour",
"def O0LM() -> str:\n return qcWV.now().strftime('%Y-%m-%dT%H')",
"def JeXA(_c1T, vUzi):\n if vUzi == uwaB.str_padded:\n return _c1T.strftime('%H')\n elif vUzi == uwaB.str_unpadded:\n ... | [
"0.7201951",
"0.71303594",
"0.7073183",
"0.68254966",
"0.6661948",
"0.66102904",
"0.65942734",
"0.65611005",
"0.6519982",
"0.64330316",
"0.6351658",
"0.6327947",
"0.63234544",
"0.6298525",
"0.62935674",
"0.6293257",
"0.6200631",
"0.6200403",
"0.61484385",
"0.6144774",
"0.6138... | 0.73707604 | 0 |
Returns document completion perplexity. | def qnH0(JZXy):
C3ST.eval()
with ht2j.no_grad():
Cwt5 = C3ST.mu_q_alpha
if JZXy == 'val':
_0VL = ht2j.split(ht2j.tensor(range(qIxc.num_docs_valid)), qIxc.eval_batch_size)
s2mk = qRol
BWz1 = CS3i
WXkz = t_Mz
c7pe = BPq5
Crrw ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y189(YKHO):\n return s2p1.perplexity_comp(YKHO.docid, YKHO.tokens, YKHO.tt, YKHO.dt, YKHO.N, YKHO.K, YKHO.samples)",
"def Y189(YKHO):\n return s2p1.perplexity_comp(YKHO.docid, YKHO.tokens, YKHO.tt, YKHO.dt, YKHO.N, YKHO.K, YKHO.samples)",
"def JxU2(YKHO):\n return YKHO._prob",
"def ZmjQ(YKHO):\n... | [
"0.72221684",
"0.72221684",
"0.64251393",
"0.63527524",
"0.6301057",
"0.62804747",
"0.62099826",
"0.6185874",
"0.6162379",
"0.60987735",
"0.6092864",
"0.6059738",
"0.59754694",
"0.59229374",
"0.5863914",
"0.58484244",
"0.57992524",
"0.57937574",
"0.57577825",
"0.5757623",
"0.... | 0.5608711 | 25 |
Adds missing information to a list. This can be used to add missing job information fields to the results of job querying tool. | def q1Uv(IZVi, rFkT):
Nneu = IZVi
_0VL = sorted(list(rFkT.keys()), reverse=True)
for YRbF in _0VL:
if isinstance(rFkT[YRbF], list):
for Ty9i in reversed(rFkT[YRbF]):
Nneu.insert(YRbF, Ty9i)
else:
Nneu.insert(YRbF, rFkT[YRbF])
return Nneu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wKho(yVA2, V_D6=None):\n S06t = []\n Ltot = ['type', 'id', 'view_href', 'login']\n if V_D6 and V_D6 != '*':\n LhC7 = V_D6.split(',')\n for Jyyj in LhC7:\n if Jyyj not in Ltot:\n Ltot.append(Jyyj)\n for CBIr in yVA2:\n for fvDH in Ltot:\n if ... | [
"0.61569077",
"0.5763466",
"0.552023",
"0.5510023",
"0.5504416",
"0.54474604",
"0.54248095",
"0.5398749",
"0.5391871",
"0.53909117",
"0.5379395",
"0.53590536",
"0.5347512",
"0.53119934",
"0.52795744",
"0.524543",
"0.5217593",
"0.5217417",
"0.5203157",
"0.51984453",
"0.5162059... | 0.58193237 | 1 |
Close the connection, if possible. | def DDI8(YKHO):
RKD7.debug('Closing device: {0}'.format(YKHO.name))
if YKHO.driver in [GbXM.pyvisa, GbXM.pyvisa_usb]:
YKHO.device.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngVb(YKHO):\n YKHO.connection.close()",
"def ngVb(YKHO):\n YKHO.connection.close()",
"def ngVb(YKHO):\n if YKHO.connection is not None:\n YKHO.connection.close()",
"def ngVb(YKHO):\n YKHO.conn.close()",
"def ngVb(YKHO):\n YKHO._conn.close()",
"def ngVb(YKHO) -> None:\n YKHO.c... | [
"0.85302645",
"0.85302645",
"0.85160613",
"0.84996635",
"0.8480493",
"0.84741545",
"0.84672797",
"0.84468865",
"0.83166665",
"0.831423",
"0.831423",
"0.831423",
"0.831423",
"0.831423",
"0.831423",
"0.831423",
"0.8288402",
"0.8286382",
"0.82851845",
"0.8282252",
"0.8278086",
... | 0.0 | -1 |
Retruns the yaml of the data | def eJb6(YKHO):
return str(YKHO.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJb6(YKHO):\n raise NotImplementedError",
"def hjKN(nPrm):\n import yaml\n l5Ny = yaml.safe_dump(nPrm)\n return l5Ny",
"def x8I_(YKHO, nPrm):\n import yaml\n return yaml.load(nPrm.decode('utf-8'))",
"def WbAn(YKHO):\n return xRMc(YKHO.file_path)",
"def TDvd(YKHO):\n l5Ny = ''.jo... | [
"0.7206403",
"0.7046547",
"0.70099366",
"0.6988719",
"0.69616944",
"0.69011605",
"0.6765352",
"0.66901034",
"0.66821486",
"0.66179407",
"0.6606902",
"0.6557288",
"0.64570737",
"0.64274263",
"0.634616",
"0.63180554",
"0.62997705",
"0.62422305",
"0.6241031",
"0.62246627",
"0.62... | 0.76356715 | 0 |
Tensorflow using the RMSProp optimization algorithm | def Z9du(N77f, Cwt5, znmT, _hZ2):
return ZylS.train.RMSPropOptimizer(learning_rate=Cwt5, decay=znmT, epsilon=_hZ2).minimize(N77f) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z9du(N77f, Cwt5, znmT, _hZ2):\n return ZylS.train.RMSPropOptimizer(Cwt5, znmT, epsilon=_hZ2).minimize(N77f)",
"def Mm4K(GPtr=None, Aak1=None):\n b0Ix = GPtr['learning_rate']\n WMj5 = GPtr.get('decay', 0.9)\n H0zq = GPtr.get('momentum', 0.99)\n _hZ2 = GPtr.get('epsilon', 1e-08)\n _U64 = ZylS... | [
"0.70355904",
"0.6935636",
"0.66741586",
"0.6454449",
"0.6373871",
"0.62997806",
"0.62768584",
"0.6254815",
"0.624555",
"0.6234791",
"0.622137",
"0.61497647",
"0.61417866",
"0.61307657",
"0.6124849",
"0.61246353",
"0.61232775",
"0.61048067",
"0.6093293",
"0.6085184",
"0.60820... | 0.68741876 | 2 |
Returns all grid models of the current grid. If modeldirs is not ` Assumes that I am already in the grid directory. | def Q1Af(F2Ll):
if F2Ll is None:
F2Ll = SC2F.glob('model*/')
return F2Ll | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _2YH(kuHn):\n Cfvm = SC2F.glob(Hy7s.path.join(kuHn, '*'), recursive=False)\n return None if len(Cfvm) == 0 else Cfvm",
"def qSpX():\n eG0V = '/phoenix/S7/js2625/SIGGRAPH_InsertHuman/desktopmini/'\n mjHf = {'self_shading_net': eG0V + 'models/self_shading.pth', 'shading_net': eG0V + 'models/shading... | [
"0.7053075",
"0.68980974",
"0.67919797",
"0.66318244",
"0.62806666",
"0.62711096",
"0.621682",
"0.6151818",
"0.6007908",
"0.5958469",
"0.595824",
"0.58985054",
"0.58618265",
"0.58461744",
"0.57800126",
"0.5763753",
"0.5742071",
"0.57213265",
"0.57123715",
"0.5709536",
"0.5692... | 0.7442874 | 0 |
A view to render the shopping bag | def E7Bf(QePW):
rPXJ = 'bag/bag.html'
return _1tc(QePW, rPXJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XfwO(QePW):\n return _1tc(QePW, 'shoppingbag/shoppingbag.html')",
"def E7Bf(QePW):\n return _1tc(QePW, 'bag/bag.html')",
"def E7Bf(QePW):\n return _1tc(QePW, 'bag/bag.html')",
"def Qpy0(QePW):\n return _1tc(QePW, 'basket/basket.html')",
"def E7Bf(QePW):\n return _1tc(QePW, 'bag/bag.html'... | [
"0.83766514",
"0.8092587",
"0.8092587",
"0.8082786",
"0.807134",
"0.73823965",
"0.73307675",
"0.7145757",
"0.7088831",
"0.6972061",
"0.6972061",
"0.6972061",
"0.6945152",
"0.6945152",
"0.6714977",
"0.6689123",
"0.660397",
"0.6504932",
"0.64909273",
"0.6476028",
"0.6456895",
... | 0.7978012 | 5 |
Given a list of state action pairs, use the learned model to predict the next state | def rI7x(YKHO, wspz, xASv):
jzdc = oyIN.tile(xASv, (6, 1, 1)).transpose(1, 0, 2)
return YKHO.model.main(oyIN.concatenate((wspz, jzdc), axis=2).reshape(-1, 10), None, train_mode=False).reshape(YKHO.popsize, YKHO.num_particles, YKHO.state_dim) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEmv(YKHO, QTBn, XeOP):\n assert oyIN.shape(QTBn) == (YKHO._state_dim,)\n assert oyIN.shape(XeOP) == (YKHO._action_dim,)\n lqtd = YKHO._sess.run(YKHO._next_state_pred, feed_dict={YKHO._state_ph: oyIN.atleast_2d(QTBn), YKHO._action_ph: oyIN.atleast_2d(XeOP)})\n lqtd = lqtd[0]\n assert oyIN.shape(... | [
"0.7334729",
"0.71136075",
"0.6919382",
"0.6916469",
"0.6891851",
"0.687725",
"0.66881096",
"0.6644882",
"0.6641771",
"0.66334605",
"0.6452135",
"0.64520305",
"0.64473796",
"0.64385146",
"0.63713205",
"0.63209873",
"0.63184106",
"0.6266997",
"0.62402624",
"0.62192816",
"0.620... | 0.739503 | 0 |
separated with ',' if it is a list | def xe6T(wEf2):
if isinstance(wEf2, list):
return ','.join(wEf2)
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G8UU(yv6U):\n if isinstance(yv6U, exCv):\n return yv6U\n else:\n return ', '.join(yv6U)",
"def aRD2(KCHu):\n return KCHu.split(',')",
"def YYDj(ZfUD, mte6=False):\n if not ZfUD:\n return []\n elif isinstance(ZfUD, list):\n return ZfUD\n elif isinstance(ZfUD, jU... | [
"0.6970004",
"0.6920827",
"0.6884871",
"0.68636996",
"0.67801833",
"0.6758223",
"0.664391",
"0.6633456",
"0.6537686",
"0.65375674",
"0.6444197",
"0.6434299",
"0.64318687",
"0.63757527",
"0.63571537",
"0.63571537",
"0.63470566",
"0.63334095",
"0.62992203",
"0.6261018",
"0.6216... | 0.66022795 | 8 |
Return value from loaded config parse object | def Zmkp(YKHO, ZRa1=str(), ez4r=str()) -> ImMB:
if ZRa1 in YKHO.__return_map.keys():
if ez4r in YKHO.__return_map.get(ZRa1).keys():
return YKHO.__return_map.get(ZRa1).get(ez4r)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tL1h(YKHO, SQJw, WmM4=None):\n return YKHO.cfg_root.find(SQJw).text",
"def tgzD(YKHO, GPtr):\n return YKHO.parser.get('main', GPtr)",
"def ge7L(YKHO, XLMv, H5ew):\n return GPtr.get(XLMv, H5ew)",
"def ASJs(YKHO, xCu_, M8YW, SQJw):\n try:\n return xCu_.get(M8YW, SQJw).decode('utf-8')\n ... | [
"0.7074828",
"0.69428384",
"0.6898915",
"0.6835497",
"0.6824046",
"0.6686376",
"0.6649829",
"0.6547928",
"0.64402115",
"0.6425939",
"0.6374655",
"0.6357684",
"0.6324625",
"0.63201064",
"0.62858766",
"0.62801355",
"0.6252276",
"0.62328666",
"0.6224163",
"0.6204692",
"0.6195150... | 0.0 | -1 |
Pack an integer value to a given bit size, endianness. | def tMMy(BWXx: int, zNig: int=None, dmhX: str='little') -> bytes:
zNig = ((zNig or BWXx.bit_length()) + 7) // 8
return BWXx.to_bytes(zNig, NxV4.get(dmhX, dmhX), signed=BWXx < 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hQzo(exwG, u54L, dmhX='big'):\n if u54L == 0:\n return ''\n MKlR = '%x' % exwG\n KCHu = pNrF(str.zfill('0' * (len(MKlR) % 2) + MKlR, u54L * 2))\n if dmhX == 'big':\n return KCHu\n else:\n return int.to_bytes(exwG, u54L, 'little')\n return exwG",
"def tMMy(Emd4, q_Jn, zN... | [
"0.7280908",
"0.70621485",
"0.68198967",
"0.6758098",
"0.66834956",
"0.6658649",
"0.6631593",
"0.66045964",
"0.65491796",
"0.6494534",
"0.6466401",
"0.64182144",
"0.6377249",
"0.6277731",
"0.62065744",
"0.62065744",
"0.62030053",
"0.6160807",
"0.6155434",
"0.6138563",
"0.6130... | 0.7982378 | 0 |
Unpack an integer value from a given bit size, endianness and sign. | def MZ6z(BWXx: bytes, zNig: int=None, dmhX: str='little', Zihr: bool=False) -> int:
if zNig and len(BWXx) != zNig // 8:
raise ValueError(f'Invalid byte value, expected {zNig // 8} bytes, got {len(BWXx)} bytes')
return int.from_bytes(BWXx, NxV4.get(dmhX, dmhX), signed=Zihr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xssf(mLGw: int, zNig: int) -> int:\n if mLGw & 1 << zNig - 1 != 0:\n mLGw = mLGw - (1 << zNig)\n return mLGw",
"def K3A2(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n return MZ6z(BWXx, 32, dmhX, Zihr)",
"def XgwF(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n ... | [
"0.6857343",
"0.680659",
"0.68064445",
"0.65228003",
"0.6518913",
"0.6509395",
"0.646576",
"0.6419733",
"0.6406119",
"0.63564014",
"0.6354006",
"0.6299672",
"0.6299672",
"0.62629414",
"0.62267625",
"0.62167794",
"0.62075686",
"0.61945957",
"0.61538756",
"0.61486495",
"0.61023... | 0.810238 | 0 |
Pack an 8 bit integer. | def bJFi(BWXx: int, dmhX: str='little') -> bytes:
return tMMy(BWXx, 8, dmhX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tMMy(Emd4, q_Jn, zNig):\n hlel = bytes()\n for YRbF in range(zNig):\n hlel += chr(q_Jn >> YRbF * 8 & 255)\n return hlel",
"def YSyd(YKHO, BWXx):\n YKHO._check_int_type(BWXx, Jiq6)\n YKHO._data += BWXx.to_bytes(1, byteorder='little')",
"def IEvT(YKHO, EDCT, dQSj, miyH):\n YKHO.Trans... | [
"0.7046584",
"0.6897851",
"0.68792325",
"0.6824422",
"0.67807204",
"0.67671525",
"0.66727024",
"0.6659027",
"0.66280055",
"0.64931417",
"0.6465225",
"0.6465225",
"0.64620644",
"0.64312667",
"0.63673884",
"0.63534534",
"0.6345154",
"0.63389945",
"0.6318693",
"0.6279374",
"0.61... | 0.72705007 | 0 |
Pack a 32 bit integer. | def Fh76(BWXx: int, dmhX: str='little') -> bytes:
return tMMy(BWXx, 32, dmhX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fh76(Csk6):\n return tMMy('<I', Csk6)",
"def yWcp(YRbF):\n if not isinstance(YRbF, int):\n raise TypeError('Must be an int')\n elif YRbF.bit_length() > 32:\n raise ValueError('Must be a 32bit value.')\n return BlNT.pack('>I', YRbF)",
"def qJsb(exwG):\n return int(exwG).to_bytes... | [
"0.7592303",
"0.7567268",
"0.71953094",
"0.70938027",
"0.70248276",
"0.6998517",
"0.6885194",
"0.6862962",
"0.6834466",
"0.6683471",
"0.6512142",
"0.6453835",
"0.64421433",
"0.64307445",
"0.6412586",
"0.6406492",
"0.6399777",
"0.6363492",
"0.6296119",
"0.6284684",
"0.62777126... | 0.7446849 | 2 |
Pack a 64 bit integer. | def TsfL(BWXx: int, dmhX: str='little') -> bytes:
return tMMy(BWXx, 64, dmhX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s5SG(YRbF):\n if not isinstance(YRbF, int):\n raise TypeError('Must be an int')\n elif YRbF.bit_length() > 64:\n raise ValueError('Must be a 64bit value.')\n return BlNT.pack('>Q', YRbF)",
"def QX98(nPrm: int) -> bytes:\n return BlNT.pack('>Q', nPrm)",
"def QX98(nPrm: int) -> byte... | [
"0.782995",
"0.75985986",
"0.75985986",
"0.6882611",
"0.687953",
"0.6686652",
"0.6666189",
"0.6591661",
"0.64130855",
"0.6355326",
"0.629442",
"0.6260369",
"0.62123847",
"0.61003375",
"0.60895044",
"0.6087873",
"0.60762006",
"0.6039183",
"0.6010608",
"0.5993446",
"0.59870344"... | 0.74698687 | 3 |
Unpack an 8 bit integer. | def XgwF(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:
return MZ6z(BWXx, 8, dmhX, Zihr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZdU2(nPrm):\n BWXx = MZ6z(vqOS.INT8_BYTE_FORMAT, nPrm[:1])[0]\n return (BWXx, 1)",
"def etTt(nPrm):\n BWXx = MZ6z(vqOS.UINT8_BYTE_FORMAT, nPrm[:1])[0]\n return (BWXx, 1)",
"def w8m8(YKHO, dmhX='<'):\n return YKHO.unpack('%sb' % dmhX)",
"def MZ6z(Emd4, TL2b):\n BWXx = Swre()\n for YRb... | [
"0.7935619",
"0.7624533",
"0.69614124",
"0.6757723",
"0.6754148",
"0.6754148",
"0.67517203",
"0.6714144",
"0.6571568",
"0.64756215",
"0.64684594",
"0.6415871",
"0.6414337",
"0.64",
"0.63875854",
"0.63492674",
"0.62968296",
"0.62938625",
"0.6200666",
"0.61871505",
"0.6161569",... | 0.71732724 | 2 |