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 |
|---|---|---|---|---|---|---|
eq method that perform __ne__ method | def xa14(YKHO, Elif):
return super().__ne__(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, RKYb):\n return not YKHO.__eq__(RKYb)",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif)... | [
"0.88770354",
"0.88742405",
"0.8809184",
"0.8761984",
"0.8761984",
"0.8761984",
"0.8761984",
"0.87541413",
"0.8751499",
"0.87397474",
"0.87127596",
"0.8711894",
"0.8711894",
"0.8711894",
"0.8711894",
"0.8711894",
"0.8711894",
"0.8711894",
"0.8711894",
"0.8711894",
"0.8711894"... | 0.0 | -1 |
ne method that perform __eq__ method | def Vdqg(YKHO, Elif):
return super().__eq__(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return super().__eq__(Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n ... | [
"0.8786585",
"0.8695068",
"0.8662148",
"0.86311805",
"0.8631078",
"0.86138344",
"0.8609828",
"0.8609828",
"0.8609828",
"0.8609828",
"0.8574487",
"0.8574215",
"0.8574215",
"0.8574215",
"0.85555977",
"0.85373557",
"0.8534955",
"0.8534955",
"0.8534955",
"0.8534955",
"0.8534955",... | 0.85802174 | 10 |
Return the name of the sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91896784",
"0.9168378",
"0.890185",
"0.8770976",
"0.8511273",
"0.8479953",
"0.844435",
"0.8299758",
"0.8186503",
"0.8105667",
"0.8079737",
"0.8066149",
"0.8049647",
"0.7700968",
"0.7612295",
"0.7611456",
"0.7600605",
"0.7600605",
"0.7600605",
"0.75392073",
"0.75166553",
... | 0.0 | -1 |
Return the name of the sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91896784",
"0.9168378",
"0.890185",
"0.8770976",
"0.8511273",
"0.8479953",
"0.844435",
"0.8299758",
"0.8186503",
"0.8105667",
"0.8079737",
"0.8066149",
"0.8049647",
"0.7700968",
"0.7612295",
"0.7611456",
"0.7600605",
"0.7600605",
"0.7600605",
"0.75392073",
"0.75166553",
... | 0.0 | -1 |
Returns energy of signals Input | def VYvU(nPrm):
return oyIN.real(oyIN.mean(oyIN.abs(nPrm) ** 2, axis=1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(nPrm):\n return sum(pow(nPrm, 2))",
"def MI1C(YKHO):\n YRbF = YKHO.inl[0].to_flow()\n z1Rg = YKHO.outl[0].to_flow()\n epEI = (rHlu(YRbF, T0=YKHO.inl[0].T.val_SI) + rHlu(z1Rg, T0=YKHO.outl[0].T.val_SI)) / 2\n return YRbF[0] * (z1Rg[2] - YRbF[2]) - YKHO.A.val * (YKHO.E.val * YKHO.eta_opt.va... | [
"0.74539125",
"0.73668975",
"0.734908",
"0.7330229",
"0.70691025",
"0.69918275",
"0.6969906",
"0.6968526",
"0.6925305",
"0.6924448",
"0.6916342",
"0.6916342",
"0.6878967",
"0.6873875",
"0.6851967",
"0.68502253",
"0.6778989",
"0.67653644",
"0.67576635",
"0.67346144",
"0.671166... | 0.71532893 | 4 |
Returns value of time delayed correlation divided by the autocorrelation value at index 0 Input | def O5F6(nPrm):
NkkI = [YRbF for YRbF in range(1, len(nPrm[0]) + 1)]
NkkI += NkkI[-2::-1]
or8S = len(nPrm[0]) // 4
def ufJO(wEsz):
Ylbp = cxpp(wEsz, oyIN.conj(wEsz)[::-1]) / NkkI
Ylbp[len(Ylbp) // 2] = 0
return Ylbp[or8S:or8S * 7]
GyCZ = oyIN.apply_along_axis(ufJO, 1, nPrm)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fSQ5(jQ3Z, OvuC, YPaw, fCa7, Q3fL, nakY):\n OvuC = int(OvuC / Q3fL)\n YPaw = int(YPaw / Q3fL)\n jQ3Z = Zmrc(jQ3Z, fCa7)\n return (oyIN.vstack([dNGY(jQ3Z, OwV_, fCa7) for OwV_ in oyIN.arange(0, OvuC, YPaw)]), oyIN.arange(0, OvuC, YPaw) * Q3fL / nakY)",
"def fSQ5(WKvO):\n WKvO = (WKvO - oyIN.mea... | [
"0.75204104",
"0.72201633",
"0.72201633",
"0.68258625",
"0.6763687",
"0.67410463",
"0.67043513",
"0.6569533",
"0.6553229",
"0.65011364",
"0.64482677",
"0.63403153",
"0.6335327",
"0.6311573",
"0.6292571",
"0.62570536",
"0.61131376",
"0.6104567",
"0.60987854",
"0.60646856",
"0.... | 0.58983386 | 30 |
Initializes and loads pretrained weights into keras model to be used for predictions | def uyMl():
with open(FZKc, 'r') as wM3v:
jlS7 = wM3v.read()
o_0e = oPz_(jlS7)
o_0e.load_weights(VAdw)
return o_0e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(YKHO):\n if isinstance(YKHO.pretrained, str):\n bo34 = UKxV()\n bo34.info(f'load model from: {YKHO.pretrained}')\n Nh79(YKHO, YKHO.pretrained, strict=False, logger=bo34)\n elif YKHO.pretrained is None:\n pass\n else:\n raise TypeError('pretrained must be a str o... | [
"0.7807636",
"0.7653893",
"0.7606445",
"0.75633806",
"0.75384676",
"0.74907386",
"0.74720407",
"0.7401177",
"0.73937416",
"0.7373611",
"0.73517513",
"0.7344743",
"0.731559",
"0.7271702",
"0.71496797",
"0.7135254",
"0.7094846",
"0.7069883",
"0.7056611",
"0.7049634",
"0.7014838... | 0.0 | -1 |
Assumes email has already been run through normalize_email to strip bad chars | def Hhdg(D3lj):
SQ3m = D3lj.split('@')
if len(SQ3m) == 2:
return SQ3m[1]
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YBiq(YKHO, D3lj):\n return D3lj",
"def YBiq(D3lj: str):\n return D3lj.lower()",
"def oWsw(Hxmi: str) -> str:\n HBfW = Hxmi.strip().lower()\n if not HBfW or ' ' in HBfW or '@' not in HBfW:\n raise ValueError(f\"Invalid email address: '{Hxmi}'\")\n return HBfW",
"def lyHo(YKHO, D3lj):... | [
"0.80541974",
"0.78632313",
"0.7704175",
"0.76417613",
"0.73922247",
"0.7377972",
"0.7285892",
"0.7260525",
"0.7222684",
"0.721462",
"0.70276254",
"0.69777447",
"0.6966539",
"0.6951345",
"0.69241154",
"0.68350315",
"0.6834116",
"0.67052376",
"0.6663346",
"0.6617018",
"0.65281... | 0.0 | -1 |
Set up a course to be used for testing. | def Baw8(Emd4):
with Emd4.setUpClassAndTestData():
with Emd4.store.default_store(i28P.Type.split):
Emd4.course = W10k.create(org='edX', number='test', display_name='Test Course', start=wzkt() - fCoM(days=30), metadata={'invitation_only': False})
Emd4.private_course = W10k.create(org=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cr7I(YKHO):\n GQfX = W10k(start=qcWV(2013, 9, 16, 7, 17, 28))\n GQfX = OE_C().get_course(GQfX.id)\n return GQfX",
"def FCbF(YKHO):\n YKHO.uname = 'testuser'\n YKHO.email = 'test+courses@edx.org'\n YKHO.password = 'foo'\n YKHO.user = mv1M.objects.create_user(YKHO.uname, YKHO.email, YKHO.p... | [
"0.7543318",
"0.74609995",
"0.74453825",
"0.74381506",
"0.73233366",
"0.73011017",
"0.7278321",
"0.7246862",
"0.72162974",
"0.72162974",
"0.7191703",
"0.71299064",
"0.71258765",
"0.7067824",
"0.70447737",
"0.70252365",
"0.70240486",
"0.7020997",
"0.7017215",
"0.69380724",
"0.... | 0.69766504 | 19 |
Set up and enroll our fake user in the course. | def izSt(Emd4):
super().setUpTestData()
Emd4.staff_user = Ncb9(course_key=Emd4.course.id, password=o3Wp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ucvb(YKHO):\n YKHO.email = 'foo@test.com'\n YKHO.password = 'bar'\n YKHO.username = 'test'\n YKHO.create_account(YKHO.username, YKHO.email, YKHO.password)\n YKHO.activate_user(YKHO.email)\n YKHO.login(YKHO.email, YKHO.password)",
"def FCbF(YKHO):\n YKHO.new_user = mv1M('JosphatOtieno', '... | [
"0.73771185",
"0.7309003",
"0.73002857",
"0.7293236",
"0.7274657",
"0.7257481",
"0.7236017",
"0.7222674",
"0.71984",
"0.7178885",
"0.7119808",
"0.71079326",
"0.7103533",
"0.7090852",
"0.70875585",
"0.70875585",
"0.70763123",
"0.70687085",
"0.70587665",
"0.7045516",
"0.7044884... | 0.0 | -1 |
Ensure that a user accessing a nonlive course sees a redirect to the student dashboard, not a 404. | def jJoC(YKHO):
TaW5 = YKHO.create_future_course()
YKHO.create_user_for_course(TaW5, FrLu.ENROLLED)
bD7m = dMZU(TaW5)
geh0 = YKHO.client.get(bD7m)
kepv = Kcnc(TaW5.start, 'SHORT_DATE')
q2q2 = GLng(mutable=True)
q2q2['notlive'] = kepv
NRhD = '{url}?{params}'.format(url=gxEw('dashboard'), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBEL(YKHO, GQfX):\n pzVU = [gxEw('about_course', kwargs={'course_id': GQfX.id.to_deprecated_string()}), gxEw('courses')]\n for bD7m in pzVU:\n EGjj(YKHO, 200, bD7m)",
"def gkYe(YKHO, GQfX):\n ZWCE = ['about_course', 'instructor_dashboard', 'progress']\n pzVU = YKHO._reverse_urls(ZWCE, GQfX... | [
"0.72274464",
"0.72018546",
"0.71529496",
"0.7152203",
"0.687942",
"0.6872075",
"0.6864527",
"0.68441504",
"0.68354946",
"0.6781809",
"0.6769826",
"0.6757323",
"0.6723594",
"0.672075",
"0.66942954",
"0.66787547",
"0.66766423",
"0.66756266",
"0.6652672",
"0.65802264",
"0.64811... | 0.61532295 | 46 |
Test that users with the above roles for a course do not lose access | def uSdW(YKHO, h1Ur):
GQfX = W10k.create(start=B61l)
bD7m = dMZU(GQfX)
CBIr = NqOl.create()
LmAn = tIdx(name=h1Ur, course_id=GQfX.id)
LmAn.users.add(CBIr)
YKHO.client.login(username=CBIr.username, password=YKHO.TEST_PASSWORD)
geh0 = YKHO.client.get(bD7m)
assert geh0.status_code == 200, '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uhnC(YKHO):\n L9DM(YKHO.course_key.org).add_users(YKHO.student)\n _Lqq(YKHO.course_key).add_users(YKHO.student)\n YKHO.assertTrue(L9DM(YKHO.course_key.org).has_user(YKHO.student), \"Student doesn't have access to {}\".format(QMSQ(YKHO.course_key.org)))\n YKHO.assertTrue(_Lqq(YKHO.course_key).has_us... | [
"0.773638",
"0.745564",
"0.744626",
"0.7214766",
"0.71743405",
"0.7137396",
"0.7109235",
"0.7108579",
"0.7100365",
"0.7085288",
"0.6937759",
"0.6914626",
"0.6903327",
"0.6866411",
"0.66702443",
"0.663672",
"0.66278666",
"0.66277665",
"0.6626024",
"0.6607813",
"0.66031235",
... | 0.7542466 | 1 |
Ensure that a user accessing an expired course sees a redirect to the student dashboard, not a 404. | def u1OH(YKHO):
x3gL.objects.create(enabled=True, enabled_as_of=qcWV(2010, 1, 1, tzinfo=wyKz))
GQfX = W10k.create(start=B61l)
bD7m = dMZU(GQfX)
for Tuqy in [YDl1.AUDIT, YDl1.VERIFIED]:
SnYx.create(course_id=GQfX.id, mode_slug=Tuqy)
m0HJ = NqOl(password=YKHO.TEST_PASSWORD)
YKHO.client.log... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M6Tn(YKHO):\n YKHO.login(YKHO.unenrolled_user)\n geh0 = YKHO.client.get(gxEw('courseware', kwargs={'course_id': YKHO.course.id.to_deprecated_string()}))\n YKHO.assertRedirects(geh0, gxEw('about_course', args=[YKHO.course.id.to_deprecated_string()]))",
"def gkYe(YKHO, GQfX):\n ZWCE = ['about_cours... | [
"0.69984317",
"0.6886888",
"0.67871356",
"0.6735313",
"0.67191654",
"0.6698633",
"0.65927035",
"0.6569288",
"0.6520944",
"0.6494992",
"0.6464499",
"0.6417957",
"0.6414027",
"0.6375892",
"0.6362667",
"0.6362265",
"0.63492113",
"0.6347341",
"0.6346042",
"0.632864",
"0.6306145",... | 0.66247153 | 6 |
Ensure that a user accessing a course with an expired upgrade deadline will still see the course expiration banner without the upgrade related text. | def N8tT(YKHO):
SDIR = qcWV(2010, 1, 1, tzinfo=wyKz)
x3gL.objects.create(enabled=True, enabled_as_of=SDIR)
GQfX = W10k.create(start=wzkt() - fCoM(days=10))
SnYx.create(course_id=GQfX.id, mode_slug=YDl1.AUDIT)
SnYx.create(course_id=GQfX.id, mode_slug=YDl1.VERIFIED, expiration_datetime=SDIR)
CBIr ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u1OH(YKHO):\n x3gL.objects.create(enabled=True, enabled_as_of=qcWV(2010, 1, 1, tzinfo=wyKz))\n GQfX = W10k.create(start=B61l)\n bD7m = dMZU(GQfX)\n for Tuqy in [YDl1.AUDIT, YDl1.VERIFIED]:\n SnYx.create(course_id=GQfX.id, mode_slug=Tuqy)\n m0HJ = NqOl(password=YKHO.TEST_PASSWORD)\n YKH... | [
"0.70549315",
"0.7037028",
"0.69530153",
"0.678557",
"0.6493238",
"0.6158982",
"0.6044835",
"0.5925833",
"0.5909538",
"0.589503",
"0.5868578",
"0.5843426",
"0.5760653",
"0.57305783",
"0.568584",
"0.56354064",
"0.5613627",
"0.5600847",
"0.5599188",
"0.55946547",
"0.5562692",
... | 0.7827058 | 0 |
Verify that enrolled users are NOT shown the course expiration banner and can access the course home page if course audit only | def d8dg(YKHO):
x3gL.objects.create(enabled=True, enabled_as_of=qcWV(2010, 1, 1, tzinfo=wyKz))
hCYf = W10k.create()
YKHO.create_user_for_course(hCYf, FrLu.ENROLLED)
geh0 = YKHO.client.get(dMZU(hCYf))
assert geh0.status_code == 200
YKHO.assertContains(geh0, J4hS)
YKHO.assertNotContains(geh0, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nf75(YKHO):\n GQfX = W10k.create(start=B61l)\n bD7m = dMZU(GQfX)\n CBIr = NqOl.create(password=YKHO.TEST_PASSWORD)\n BTFJ.enroll(CBIr, YKHO.course.id, mode=YDl1.VERIFIED)\n HwIj.objects.update(start_date=B61l)\n YKHO.client.login(username=CBIr.username, password=YKHO.TEST_PASSWORD)\n geh0 ... | [
"0.7282275",
"0.70456076",
"0.6942318",
"0.6898005",
"0.6897454",
"0.68026537",
"0.6783163",
"0.6685061",
"0.66487503",
"0.66321903",
"0.66314936",
"0.66267633",
"0.6583222",
"0.6577972",
"0.6559998",
"0.65554726",
"0.65512407",
"0.6549875",
"0.6517782",
"0.65137273",
"0.6504... | 0.7860571 | 0 |
Ensure that a user accessing an expired course that is in the holdback does not get redirected to the student dashboard, not a 404. | def xk2d(YKHO):
x3gL.objects.create(enabled=True, enabled_as_of=qcWV(2010, 1, 1, tzinfo=wyKz))
GQfX = W10k.create(start=B61l)
bD7m = dMZU(GQfX)
for Tuqy in [YDl1.AUDIT, YDl1.VERIFIED]:
SnYx.create(course_id=GQfX.id, mode_slug=Tuqy)
m0HJ = NqOl(password=YKHO.TEST_PASSWORD)
YKHO.client.log... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M6Tn(YKHO):\n YKHO.login(YKHO.unenrolled_user)\n geh0 = YKHO.client.get(gxEw('courseware', kwargs={'course_id': YKHO.course.id.to_deprecated_string()}))\n YKHO.assertRedirects(geh0, gxEw('about_course', args=[YKHO.course.id.to_deprecated_string()]))",
"def fBEL(YKHO, GQfX):\n pzVU = [gxEw('about_... | [
"0.71588475",
"0.6951009",
"0.68979967",
"0.68744254",
"0.68110615",
"0.6723449",
"0.66910064",
"0.6596273",
"0.65558255",
"0.6538769",
"0.6525786",
"0.65024704",
"0.649321",
"0.6466169",
"0.6466029",
"0.6457578",
"0.64539844",
"0.64404774",
"0.6431558",
"0.642494",
"0.641806... | 0.6862092 | 4 |
Ensure that a user accessing a nonlive course sees a redirect to the student dashboard, not a 404, even if the localized date is unicode | def PJ7m(YKHO, xGgb):
TaW5 = YKHO.create_future_course()
YKHO.create_user_for_course(TaW5, FrLu.ENROLLED)
fm7a = 'üñîçø∂é_ßtå®t_tîµé'
xGgb.return_value = fm7a
bD7m = dMZU(TaW5)
geh0 = YKHO.client.get(bD7m)
q2q2 = GLng(mutable=True)
q2q2['notlive'] = fm7a
NRhD = '{url}?{params}'.forma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KnnT(YKHO):\n QePW = YKHO.factory.get('/')\n QePW.user = fCU0()\n g3Gt.views.index(QePW)",
"def RIk5(YKHO):\n TaW5 = YKHO.create_future_course(qcWV(2030, 1, 1, tzinfo=wyKz))\n bD7m = dMZU(TaW5)\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertRedirects(geh0, '/dashboard?notlive=Jan+01%2C+2030... | [
"0.63017917",
"0.61992204",
"0.6144457",
"0.61263895",
"0.608192",
"0.60813487",
"0.6058384",
"0.6055026",
"0.58574253",
"0.5835727",
"0.58272356",
"0.57967734",
"0.5771061",
"0.5691562",
"0.5624477",
"0.56204987",
"0.56090266",
"0.5551723",
"0.5550364",
"0.5540801",
"0.55328... | 0.6401521 | 0 |
Ensure a nonexistent course results in a 404. | def VTr9(YKHO):
YKHO.create_user_for_course(YKHO.course, FrLu.ANONYMOUS)
bD7m = LZOH('not/a/course')
geh0 = YKHO.client.get(bD7m)
assert geh0.status_code == 404 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RmkX(YKHO):\n YKHO.client.login(username=YKHO.student.username, password=YKHO.password)\n NKRf = gxEw(YKHO.namespaced_url, kwargs={'course_id': 'course-v1:MITx+8.MechCX+2014_T1'})\n bD7m = f'{NKRf}?username={YKHO.student.username}'\n _hkX = YKHO.client.get(bD7m)\n assert _hkX.status_code == jGRS... | [
"0.82550013",
"0.82004195",
"0.81973284",
"0.8084267",
"0.7920346",
"0.77130467",
"0.7471071",
"0.7455274",
"0.73526365",
"0.7308986",
"0.7066356",
"0.70101947",
"0.69967324",
"0.6933393",
"0.68987554",
"0.679313",
"0.67680156",
"0.67572755",
"0.6739305",
"0.67033225",
"0.660... | 0.843812 | 0 |
Ensure that the following five use cases work as expected. 1) Unenrolled users are not shown the update goal selection field. 2) Enrolled users are not shown the update goal selection field if they have not yet set a course goal. 3) Enrolled users are shown the update goal selection field if they have set a course goal... | def dYZH(YKHO):
Iu6i = W10k.create()
BElN(Iu6i, upgrade_deadline_expired=False)
CBIr = YKHO.create_user_for_course(Iu6i, FrLu.UNENROLLED)
geh0 = YKHO.client.get(dMZU(Iu6i))
YKHO.assertNotContains(geh0, lcKc)
h21A = BTFJ.enroll(CBIr, Iu6i.id)
geh0 = YKHO.client.get(dMZU(Iu6i))
YKHO.assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GL10(YKHO):\n Iu6i = W10k.create()\n BElN(Iu6i, upgrade_deadline_expired=False)\n CBIr = YKHO.create_user_for_course(Iu6i, FrLu.UNENROLLED)\n geh0 = YKHO.client.get(dMZU(Iu6i))\n YKHO.assertNotContains(geh0, dYmU)\n BTFJ.enroll(CBIr, Iu6i.id)\n geh0 = YKHO.client.get(dMZU(Iu6i))\n YKHO.... | [
"0.61162734",
"0.60500157",
"0.5862605",
"0.5819683",
"0.57155794",
"0.57096505",
"0.570498",
"0.56325775",
"0.5628115",
"0.56022304",
"0.55599767",
"0.5535152",
"0.55170715",
"0.55148154",
"0.55023074",
"0.5500509",
"0.5497572",
"0.54873794",
"0.54870325",
"0.54865664",
"0.5... | 0.70880234 | 0 |
Gets information about a specified resolver rule, such as the domain name that the rule forwards DNS queries for and the ID of the outbound resolver endpoint that the rule is associated with. | def N4I0(cdyH=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mOrl(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resolver_rule_id')",
"def m1XE(i9kZ=None):\n pass",
"def OfWG(KqHs=None):\n pass",
"def NMoC(YKHO, QePW, CIKM):\n seET = s5xN()\n try:\n J8oL = seET.get_plugin_mapping_by_docrule_id(CIKM)\n except nphX:\n RKD7.error(... | [
"0.66598713",
"0.63115674",
"0.5940835",
"0.5804203",
"0.56889963",
"0.55630994",
"0.55615026",
"0.54959",
"0.5488592",
"0.548049",
"0.54780525",
"0.5471152",
"0.52932155",
"0.52744585",
"0.5209656",
"0.5195144",
"0.5160051",
"0.5155589",
"0.51304007",
"0.51199746",
"0.511852... | 0.75601524 | 0 |
Gets information about a resolver rule policy. A resolver rule policy specifies the Resolver operations and resources that you want to allow another AWS account to be able to use. | def OfWG(KqHs=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def USpq(YKHO) -> 'outputs.PolicyInfoResponse':\n return qe4Y.get(YKHO, 'policy_info')",
"def qFaa(x0hE, CX3n):\n geh0 = x0hE.describe_firewall_policy(FirewallPolicyName=CX3n)\n return geh0",
"def BUmX(YKHO) -> bdIy[ImMB]:\n return qe4Y.get(YKHO, 'policy_rules')",
"def L0Qz(YKHO, QpfX, id):\n ... | [
"0.63734883",
"0.6212245",
"0.6182957",
"0.6095137",
"0.5914357",
"0.58854",
"0.5811441",
"0.57905704",
"0.5756436",
"0.5756436",
"0.5756436",
"0.57122034",
"0.56845725",
"0.55569136",
"0.5523748",
"0.5480657",
"0.5476058",
"0.5387759",
"0.5387759",
"0.53782386",
"0.5334994",... | 0.7668693 | 0 |
Return the URL from the checkout URL for cart | def QJey(QePW):
return fDGo.reverse('checkout_show') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oj97(YKHO):\n if YKHO.settings['LIVE']:\n P8oC = 'https://checkout.google.com/api/checkout/v2/merchantCheckout/Merchant/%s'\n else:\n P8oC = 'https://sandbox.google.com/checkout/api/checkout/v2/merchantCheckout/Merchant/%s'\n return P8oC % YKHO.settings['MERCHANT_ID']",
"def uz1l(YKHO)... | [
"0.8255255",
"0.72140896",
"0.6362759",
"0.62617844",
"0.6225975",
"0.6071169",
"0.604239",
"0.5938563",
"0.5922205",
"0.58993495",
"0.58876735",
"0.58804446",
"0.5831495",
"0.5825609",
"0.5819463",
"0.58012265",
"0.57886815",
"0.5730025",
"0.5725324",
"0.5693044",
"0.5612978... | 0.74933445 | 1 |
Mock darksky forecast loading. | def Zhgw(H5ew, QnmL, FDPT, rYO3, DuqQ):
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def INkk(YKHO, IJMG, cRJA):\n j8eK = 'https://api.(darksky.net|forecast.io)\\\\/forecast\\\\/(\\\\w+)\\\\/(-?\\\\d+\\\\.?\\\\d*),(-?\\\\d+\\\\.?\\\\d*)'\n IJMG.get(ZbWC.compile(j8eK), text=dMy2('darksky.json'))\n assert d_3h(YKHO.hass, 'sensor', kJwZ)\n YKHO.hass.block_till_done()\n assert cRJA.call... | [
"0.66724104",
"0.64576423",
"0.6375792",
"0.62206465",
"0.59658825",
"0.5956589",
"0.58672225",
"0.5811662",
"0.57559365",
"0.5750003",
"0.5736049",
"0.57055634",
"0.5664596",
"0.562356",
"0.56039673",
"0.5531112",
"0.5494356",
"0.54522026",
"0.5448444",
"0.5431577",
"0.54262... | 0.66016436 | 1 |
Test the platform setup with language configuration. | def rCdT(YKHO):
d_3h(YKHO.hass, 'sensor', NjXc)
YKHO.hass.block_till_done()
QTBn = YKHO.hass.states.get('sensor.dark_sky_summary')
assert QTBn is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QSph(YKHO):\n if YKHO.language in bWeC.LANGUAGES:\n YKHO.assertEqual(YKHO.language, YKHO.config.language)\n else:\n YKHO.assertNotEqual(YKHO.language, YKHO.config.language)\n YKHO.assertEqual(bWeC.LANGUAGE_DEFAULT, YKHO.config.language)",
"def YlYZ(YKHO):\n YKHO._api.Init(lang='... | [
"0.7163424",
"0.71388316",
"0.68419224",
"0.6686336",
"0.66743535",
"0.66651946",
"0.6650484",
"0.6614353",
"0.65010756",
"0.6498431",
"0.64593446",
"0.62890476",
"0.6275258",
"0.6275258",
"0.6272785",
"0.6270573",
"0.62701976",
"0.62175596",
"0.61904246",
"0.61732084",
"0.61... | 0.71539915 | 1 |
Test the platform setup with language configuration. | def Jwk8(YKHO):
d_3h(YKHO.hass, 'sensor', tbjd)
YKHO.hass.block_till_done()
QTBn = YKHO.hass.states.get('sensor.dark_sky_summary')
assert QTBn is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QSph(YKHO):\n if YKHO.language in bWeC.LANGUAGES:\n YKHO.assertEqual(YKHO.language, YKHO.config.language)\n else:\n YKHO.assertNotEqual(YKHO.language, YKHO.config.language)\n YKHO.assertEqual(bWeC.LANGUAGE_DEFAULT, YKHO.config.language)",
"def rCdT(YKHO):\n d_3h(YKHO.hass, 'sens... | [
"0.7163424",
"0.71539915",
"0.71388316",
"0.68419224",
"0.6686336",
"0.66743535",
"0.66651946",
"0.6650484",
"0.6614353",
"0.65010756",
"0.6498431",
"0.64593446",
"0.6275258",
"0.6275258",
"0.6272785",
"0.6270573",
"0.62701976",
"0.62175596",
"0.61904246",
"0.61732084",
"0.61... | 0.62890476 | 12 |
Test for handling a bad API key. | def Dqdl(YKHO, cRJA):
bD7m = 'https://api.darksky.net/forecast/{}/{},{}?units=auto'.format(YKHO.key, str(YKHO.lat), str(YKHO.lon))
tO9_ = f'400 Client Error: Bad Request for url: {bD7m}'
cRJA.side_effect = VrQA(tO9_)
geh0 = _jmv.setup_platform(YKHO.hass, kJwZ['sensor'], CFMy())
assert not geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V7R4(R_du: str=LvNm(iK6s)):\n if R_du != WXSU:\n raise pgG1(status_code=jGRS.HTTP_401_UNAUTHORIZED, detail='Invalid API Key')",
"def NeLG(YKHO):\n with YKHO.subTest('Missing API key'):\n geh0 = YKHO.client.get(YKHO.url, HTTP_AUTHORIZATION=f'ApiKey {YKHO.web_user.username}:')\n YKHO... | [
"0.7995882",
"0.7873856",
"0.7698261",
"0.7691335",
"0.7440945",
"0.7400383",
"0.73843676",
"0.73843676",
"0.7351226",
"0.7308071",
"0.7277661",
"0.72344774",
"0.7224452",
"0.7182379",
"0.70462185",
"0.70272976",
"0.70122564",
"0.69514686",
"0.6939561",
"0.69393253",
"0.69240... | 0.71603364 | 14 |
padding each sentence to the right | def dvgN(mTBh):
wzH_ = max([yAmx.size(0) for yAmx in mTBh])
jo51 = [vb0a.tolist() + [KeVS] * max(0, wzH_ - len(vb0a)) for vb0a in mTBh]
return ht2j.LongTensor(jo51).transpose(0, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HThn(YKHO, l5Ny):\n for GIN8 in l5Ny.split(' '):\n if len(GIN8) == 5:\n YKHO.output += GIN8 + ' '\n elif len(GIN8) < 5:\n YKHO._helper(GIN8)\n elif len(GIN8) > 5:\n XkN1 = ''\n for sZqf in GIN8:\n XkN1 += sZqf\n i... | [
"0.72890365",
"0.7062323",
"0.6936306",
"0.6913675",
"0.68591684",
"0.68588907",
"0.67253613",
"0.6692744",
"0.66767424",
"0.6667846",
"0.6666633",
"0.6631432",
"0.657273",
"0.65120065",
"0.64736766",
"0.64541376",
"0.64253974",
"0.6402162",
"0.6392293",
"0.6372132",
"0.63509... | 0.59928536 | 44 |
Takes an OverpassResult object as returned by the OSMPythonTools query function.\n Converts OverpassResult result object into a Pandas Geodataframe with initialised geometry attribute. Also returns dict with OSM tags for each way.\n Currently only supports queries for OSM ways (e.g. elementType=['way']). | def oBTB(H9MC):
ggUO = H9MC.toJSON()
jQ3Z = rLdf.DataFrame.from_records(ggUO['elements'])
jQ3Z.rename(columns={'nodes': 'node_IDs'}, inplace=True)
jQ3Z['geometry'] = jQ3Z['geometry'].astype(str)
jQ3Z['geometry'].replace({"{'lat': ": '(', "'lon': ": '', '}': ')'}, inplace=True, regex=True)
jQ3Z['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FgXO(BOjq):\n fg6W = []\n for YRbF in range(len(BOjq)):\n QnmL = BOjq[YRbF]['geometry']['location']['lat']\n jz6R = BOjq[YRbF]['geometry']['location']['lng']\n if not Udzg(QnmL, jz6R, VrYd, f1MF, jxce, ux_n):\n continue\n if 'bounds' in BOjq[YRbF]['geometry'].keys()... | [
"0.62037593",
"0.5813783",
"0.5812336",
"0.5795229",
"0.5656649",
"0.5620962",
"0.5428042",
"0.5373831",
"0.53113693",
"0.52659386",
"0.52373546",
"0.5229478",
"0.521595",
"0.52154374",
"0.5173139",
"0.51397485",
"0.513952",
"0.51170295",
"0.5108736",
"0.5060382",
"0.5042025"... | 0.7199077 | 0 |
Get the key name to use for matching in model merge. This includes resolving any variables, and removing delete notation if present. | def l8Ty(H5ew, mlxI):
GnFh = kc1W.substitute_key(H5ew, mlxI)
if toDr.is_delete_name(GnFh):
GnFh = toDr.get_delete_item_name(GnFh)
return GnFh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAat(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'key_name')",
"def E7ix(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'key_object_name')",
"def zAat(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'key_name')",
"def zAat(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_name')",
... | [
"0.6558347",
"0.65340745",
"0.6531424",
"0.65219176",
"0.6464862",
"0.6422357",
"0.6415516",
"0.64004606",
"0.63922155",
"0.63732755",
"0.6370809",
"0.6359784",
"0.62608254",
"0.6235889",
"0.6207047",
"0.6190208",
"0.6178143",
"0.6173859",
"0.6158821",
"0.6158821",
"0.6148363... | 0.7798121 | 0 |
Add a new vertex(s). | def ohmD(YKHO, SLBp):
if SLBp not in YKHO.graph_dict:
YKHO.graph_dict[SLBp] = []
return SLBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, oqUi):\n pass",
"def ohmD(YKHO, SLBp):\n raise NotImplementedError",
"def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)\n YKHO.vertex_edge[SLBp] = []",
"def ohmD(YKHO, SLBp):\n if SLBp.id not in YKHO.vertices.keys():\n YKHO.vertices[SLBp.id] = SLBp",
"def FOdN(YKHO, SL... | [
"0.86618626",
"0.8403357",
"0.82957166",
"0.827803",
"0.81245637",
"0.81168026",
"0.8044007",
"0.8041567",
"0.8021555",
"0.79641473",
"0.7930101",
"0.7897346",
"0.7896317",
"0.78611237",
"0.7833308",
"0.78320616",
"0.78000385",
"0.77344024",
"0.77344024",
"0.77095807",
"0.770... | 0.7563125 | 35 |
Check if this context is initialized. | def kLeO(YKHO):
return YKHO.workspace == Xcf7(YKHO.workspace) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G96d(YKHO) -> bool:\n return len(YKHO) > 0",
"def KeU_(YKHO) -> bool:\n return YKHO._exchange_params_by_currency_id is not None and YKHO._utility_params_by_good_id is not None and (YKHO._transaction_fees is not None)",
"def kLeO(YKHO):\n with YKHO.sess.as_default():\n with YKHO.sess.graph.a... | [
"0.7720945",
"0.73905146",
"0.730771",
"0.7266745",
"0.7236389",
"0.7154899",
"0.7089603",
"0.70302486",
"0.70302486",
"0.69997096",
"0.69040513",
"0.69000155",
"0.68230176",
"0.68132967",
"0.67775667",
"0.67672",
"0.6737759",
"0.67078215",
"0.6703509",
"0.66740406",
"0.66738... | 0.6461503 | 26 |
Get the devel directory for a specific package. This is the root of the FHS layout where products are generated. | def zdK8(YKHO, B5hb):
if YKHO.merge_devel:
return YKHO.devel_space_abs
elif YKHO.isolate_devel:
return Hy7s.path.join(YKHO.devel_space_abs, B5hb.name)
elif YKHO.link_devel:
return Hy7s.path.join(YKHO.private_devel_path, B5hb.name)
else:
raise ValueError('Unknown devel spa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cYu8(YKHO):\n return '.'",
"def p3ri():\n return Hy7s.path.dirname(xAKo)",
"def iaCj(YKHO):\n if YKHO.desdir == None:\n sWmO = Hy7s.getcwd()\n YKHO.desdir = Hy7s.path.join(sWmO, YKHO.args.dest)\n return YKHO.desdir",
"def D0Qi(cYu8):\n return Hy7s.path.split(mfrE(['--packagel... | [
"0.69888246",
"0.6977047",
"0.6956069",
"0.688974",
"0.688759",
"0.68670887",
"0.6775931",
"0.663923",
"0.66227126",
"0.65438884",
"0.6518432",
"0.6451958",
"0.6349539",
"0.6345322",
"0.63430315",
"0.6336755",
"0.629729",
"0.6279772",
"0.61844087",
"0.61740106",
"0.61667234",... | 0.70503414 | 0 |
Get the install directory for a specific package. This is the root of the FHS layout where products are installed. | def JzEb(YKHO, B5hb):
if YKHO.merge_install:
return YKHO.install_space_abs
elif YKHO.isolate_install:
return Hy7s.path.join(YKHO.install_space_abs, B5hb.name)
else:
raise ValueError('Unknown install space layout: {}'.format(YKHO.devel_layout)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sP2q(YKHO):\n return QMOX.get_install_dir(YKHO) + '/madgraph4/src'",
"def sP2q(YKHO):\n return QMOX.get_install_dir(YKHO) + '/madgraph5/src'",
"def B8u3(YKHO):\n return YKHO.mainmanager.Folders['mods'].path / YKHO._install_dirname",
"def p3ri():\n return Hy7s.path.dirname(xAKo)",
"def rBl9(... | [
"0.7664463",
"0.76436055",
"0.7471542",
"0.7369365",
"0.729247",
"0.71910924",
"0.7093502",
"0.7087768",
"0.7063836",
"0.7031152",
"0.7008558",
"0.6877116",
"0.6876912",
"0.6870798",
"0.68573636",
"0.6794905",
"0.6786159",
"0.6637505",
"0.6634177",
"0.6629106",
"0.66087675",
... | 0.71108294 | 6 |
Get the intermediate destination into which a specific package is built. | def uwEO(YKHO, B5hb):
if YKHO.destdir is None:
return YKHO.package_final_path(B5hb)
else:
return Hy7s.path.join(YKHO.destdir, YKHO.package_install_space(B5hb).lstrip(Hy7s.sep)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AfJR(YKHO):\n return YKHO.destination",
"def AfJR(YKHO):\n return YKHO._destination",
"def B8u3(YKHO):\n return YKHO.mainmanager.Folders['mods'].path / YKHO._install_dirname",
"def rory(YKHO):\n return YKHO.__destination",
"def yFgu(YKHO) -> qe4Y.Input['DestinationArgs']:\n return qe4Y.g... | [
"0.61533856",
"0.610433",
"0.6102882",
"0.60122347",
"0.59520066",
"0.5950027",
"0.58902633",
"0.58902633",
"0.5881567",
"0.58524525",
"0.58199453",
"0.58085597",
"0.5787328",
"0.57809746",
"0.5773693",
"0.57661676",
"0.57621104",
"0.57556427",
"0.5734313",
"0.5715866",
"0.57... | 0.6649821 | 0 |
Get the final destination into which a specific package is deployed. | def Gdkv(YKHO, B5hb):
if YKHO.install:
return YKHO.package_install_space(B5hb)
elif YKHO.link_devel:
return YKHO.devel_space_abs
else:
return YKHO.package_devel_space(B5hb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uwEO(YKHO, B5hb):\n if YKHO.destdir is None:\n return YKHO.package_final_path(B5hb)\n else:\n return Hy7s.path.join(YKHO.destdir, YKHO.package_install_space(B5hb).lstrip(Hy7s.sep))",
"def B8u3(YKHO):\n return YKHO.mainmanager.Folders['mods'].path / YKHO._install_dirname",
"def AfJR(Y... | [
"0.7036929",
"0.64513725",
"0.64431083",
"0.6412256",
"0.6409819",
"0.6386109",
"0.6364942",
"0.61416215",
"0.60698146",
"0.60427296",
"0.60335505",
"0.60251904",
"0.5974511",
"0.5974511",
"0.59743",
"0.59653676",
"0.59420544",
"0.5929635",
"0.58860004",
"0.5809605",
"0.57692... | 0.6796177 | 1 |
Get the path to the metadata directory for this profile. | def zte3(YKHO):
q8pK, bGrB = yIVm.get_paths(YKHO.workspace, YKHO.profile)
return q8pK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zte3(YKHO):\n return Hy7s.path.join(YKHO.path, 'metadata.txt')",
"def Btjn(YKHO):\n gA7P = BfDw.sha1hash(YKHO.guid)\n return str(GkAb('Metadata') / 'Movies' / gA7P[0] / f'{gA7P[1:]}.bundle')",
"def Btjn(YKHO):\n gA7P = BfDw.sha1hash(YKHO.guid)\n return str(GkAb('Metadata') / 'Movies' / gA7P[... | [
"0.7822971",
"0.7339891",
"0.7339891",
"0.73235637",
"0.7314918",
"0.72894084",
"0.71822673",
"0.7089777",
"0.7020728",
"0.70020103",
"0.69667876",
"0.6844684",
"0.67879033",
"0.67232054",
"0.65928996",
"0.6546555",
"0.6516536",
"0.6509581",
"0.6492533",
"0.64481723",
"0.6414... | 0.8718554 | 0 |
Find a large common divisor of the list of integers. | def pKYF(exwG: int, xYvp=[77410, 23223, 54187], IDsK=2):
return all((YRbF % exwG == 0 for YRbF in xYvp)) and exwG >= IDsK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsJX(mSrU: List[int]) -> int:\n M5u5 = 1\n psoJ = 1\n for mLGw in mSrU:\n psoJ = ML2l(psoJ, mLGw)\n M5u5 *= mLGw\n return M5u5 // psoJ",
"def BsJX(DcNY):\n Ylbp = 1\n for exwG in DcNY:\n if Ylbp % exwG != 0:\n Ylbp *= exwG // nN76.gcd(Ylbp, exwG)\n return ... | [
"0.73146087",
"0.7296845",
"0.7200875",
"0.7198929",
"0.7198929",
"0.71223444",
"0.70849836",
"0.7009902",
"0.698745",
"0.6974941",
"0.69705564",
"0.6960719",
"0.6953718",
"0.6952888",
"0.69310397",
"0.69310397",
"0.69310397",
"0.69310397",
"0.69310397",
"0.69310397",
"0.6931... | 0.0 | -1 |
Find a small common multiple of two integers. | def pKYF(exwG: int, jzdc=15, Fg_i=27, A2Fp=150):
return exwG % jzdc == 0 and exwG % Fg_i == 0 and (0 < exwG <= A2Fp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vwzu(gdXy, DWMs):\n return gdXy * DWMs // epAf.gcd(gdXy, DWMs)",
"def h9pL(jzdc, Fg_i):\n return jzdc * Fg_i // ML2l(jzdc, Fg_i)",
"def BsJX(jzdc: int, Fg_i: int):\n return jzdc * Fg_i // bJun(jzdc, Fg_i)",
"def BsJX(jzdc: int, Fg_i: int) -> int:\n return jzdc * Fg_i // ML2l(jzdc, Fg_i)",
"... | [
"0.78962135",
"0.7786683",
"0.7533495",
"0.7474799",
"0.7464257",
"0.7464257",
"0.73205143",
"0.72881365",
"0.7243867",
"0.7243867",
"0.72217757",
"0.72217757",
"0.72217757",
"0.72217757",
"0.72217757",
"0.72217757",
"0.72217757",
"0.72217757",
"0.72217757",
"0.7161139",
"0.7... | 0.0 | -1 |
Return a LayerView of this NodeFlow. | def fhcK(YKHO):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gEmA(YKHO):\n return YKHO._layer",
"def gEmA(YKHO):\n return YKHO._layer",
"def V3v5(YKHO) -> FNYZ:\n return gEmA.from_geom(YKHO)",
"def gEmA(YKHO):\n return YKHO.GetLayer()",
"def sxE_(YKHO):\n return YKHO.__layers",
"def vKhw(YKHO):\n return YKHO._layers",
"def RY3r(YKHO, vC9B):... | [
"0.6752776",
"0.67126197",
"0.65346366",
"0.64155483",
"0.62422377",
"0.6049727",
"0.59717375",
"0.58832246",
"0.58396524",
"0.581675",
"0.58117384",
"0.58000493",
"0.57264656",
"0.5573093",
"0.5563839",
"0.5514726",
"0.55140877",
"0.5506697",
"0.55055636",
"0.55005324",
"0.5... | 0.64009523 | 4 |
Return a BlockView of this NodeFlow. | def rmyT(YKHO):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gyco(YKHO):\n return Jr3l.gumtree.getBlock()",
"def Lm_X(YKHO):\n return YKHO._block",
"def GFeb(YKHO):\n return gqHs.PoetTransactionBlock()",
"def gR8w(YKHO) -> RnTg.program.model.correlate.Block:\n ...",
"def gR8w(YKHO):\n return YKHO.block.getWorld().getWorld().getBlockAt(YKHO.block.g... | [
"0.6765791",
"0.6748652",
"0.66444206",
"0.6621105",
"0.658768",
"0.6407824",
"0.6201701",
"0.61511534",
"0.6146277",
"0.61397326",
"0.613095",
"0.5981459",
"0.59251577",
"0.58640814",
"0.58202165",
"0.5788691",
"0.57818985",
"0.57752204",
"0.57750696",
"0.575852",
"0.5750347... | 0.620677 | 6 |
Return the number of edges in a specified block. | def Z1S6(YKHO, yetk):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L1_y(YKHO):\n return int(sum((YKHO.degree(Q6kx) for Q6kx in range(YKHO.size))) / 2)",
"def zk7j(YKHO):\n raise NotImplementedError",
"def ann4(pNZh):\n return sum([len(pNZh[J078].keys()) for J078 in pNZh.keys()]) / 2",
"def i7QW(YKHO):\n j93S = YKHO.DBcurs.execute('SELECT count(*) FROM edges'... | [
"0.68550444",
"0.67415774",
"0.6699996",
"0.66928583",
"0.66501164",
"0.6574408",
"0.65685886",
"0.65530425",
"0.6517499",
"0.64391804",
"0.6430085",
"0.642132",
"0.64183086",
"0.63867885",
"0.6376979",
"0.63734704",
"0.63711846",
"0.62919533",
"0.62856835",
"0.62591493",
"0.... | 0.59212065 | 34 |
Return the outdegree of the nodes in the specified layer. | def Y8gm(YKHO, rZh3):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NeYy(YKHO, eEku, uECy=None):\n if uECy is None:\n return oyIN.sum(YKHO.internal_adjacency(eEku), axis=1)\n else:\n return oyIN.sum(YKHO.internal_link_attribute(uECy, eEku), axis=1)",
"def yDbM(YKHO, rZh3):\n ...",
"def pnEe(YKHO, eEku, uECy=None):\n if YKHO.directed:\n retu... | [
"0.6594684",
"0.631304",
"0.5910271",
"0.563393",
"0.55488783",
"0.553327",
"0.553214",
"0.54905975",
"0.5466325",
"0.54417586",
"0.5435821",
"0.5361457",
"0.5361457",
"0.5361457",
"0.53519875",
"0.533623",
"0.5327829",
"0.5313681",
"0.5270652",
"0.52364135",
"0.513633",
"0... | 0.8003074 | 0 |
Get the node Ids of the parent graph in the specified layer layer_parent_nid(1) returns seed vertices for this NodeFlow. | def N5P6(YKHO, rZh3):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ym5H(YKHO):\n return YKHO._parent_ids",
"def vPxf(YKHO) -> x1iM[str]:\n return YKHO._parent_node_edge_point",
"def ACnF(YKHO):\n if YKHO._pedigree is None:\n raise Exception('Pedigree is not defined')\n return [YKHO._pedigree.individual(Ii1o) for Ii1o in YKHO._parent_ids]",
"def vPxf(Y... | [
"0.62657636",
"0.62486947",
"0.588495",
"0.5883371",
"0.5851109",
"0.5785815",
"0.578378",
"0.5753566",
"0.57462525",
"0.57260984",
"0.5719478",
"0.5715445",
"0.5701215",
"0.5701215",
"0.5692417",
"0.5692417",
"0.5685808",
"0.56582195",
"0.56145746",
"0.5584146",
"0.5574761",... | 0.5958711 | 2 |
Get the edge Ids of the parent graph in the specified block. | def va5H(YKHO, yetk):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oeGc(YKHO):\n return YKHO._edges_parent",
"def Ym5H(YKHO):\n return YKHO._parent_ids",
"def vPxf(YKHO) -> x1iM[str]:\n return YKHO._parent_node_edge_point",
"def siLd(YKHO):\n r3r7 = YKHO.node_ids\n return [(r3r7[0], r3r7[1])]",
"def B8UN(YKHO, yetk, g8x2):\n DumB = []\n for H7rZ, ... | [
"0.6561591",
"0.6538719",
"0.64541155",
"0.61687964",
"0.6165813",
"0.58587015",
"0.58370656",
"0.5822928",
"0.581507",
"0.581507",
"0.5809355",
"0.5789875",
"0.5787184",
"0.5751505",
"0.5745166",
"0.5745166",
"0.5745166",
"0.5745166",
"0.57159805",
"0.57107157",
"0.5684461",... | 0.7249309 | 0 |
Return the edges in a block. If remap_local is True, returned indices u, v, eid will be remapped to local Ids (i.e. starting from 0) in the block or in the layer. Otherwise, u, v, eid are unique in the NodeFlow. | def gvhI(YKHO, yetk, cqjr=...):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def siLd(YKHO):\n r3r7 = YKHO.node_ids\n return [(r3r7[0], r3r7[1])]",
"def s2zA(YKHO):\n return YKHO.__edgeMap",
"def xC8f(YKHO):\n return [(VmPb, GtKe) for VmPb in YKHO.adjacent.keys() for GtKe in YKHO.adjacent[VmPb]]",
"def FRPZ(YKHO):\n nYIM = YKHO.base_g.new_edge_property('vector<int>')\n... | [
"0.5595605",
"0.5527225",
"0.55258846",
"0.5450906",
"0.536565",
"0.53302234",
"0.5321791",
"0.5320251",
"0.5295422",
"0.52908915",
"0.5290661",
"0.5261692",
"0.52575165",
"0.52516407",
"0.5250357",
"0.51820534",
"0.5154297",
"0.5147765",
"0.5140925",
"0.5132946",
"0.51213133... | 0.70787126 | 0 |
Set the initializer for empty edge features. Initializer is a callable that returns a tensor given the shape, data type and device context. When a subset of the edges are assigned a new feature, initializer is used to create feature for rest of the edges. | def tN0o(YKHO, MuED, yetk=..., Jyyj=...):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8kA(YKHO, q0pV, ROpF, yDqo, OaeV=vuvg.cpu()):\n if OaeV != vuvg.cpu():\n raise Exception('graph store only supports CPU context for edge data')\n DbxN = YKHO._edge_frame.get_initializer(q0pV)\n if DbxN is None:\n YKHO._edge_frame._frame._set_zero_default_initializer()\n DbxN = YKHO._... | [
"0.5862424",
"0.56873363",
"0.54693145",
"0.5448502",
"0.5411525",
"0.52650493",
"0.5249449",
"0.52175957",
"0.5213767",
"0.51867455",
"0.5180195",
"0.516818",
"0.51441216",
"0.51001483",
"0.5091208",
"0.50694305",
"0.5056928",
"0.5053097",
"0.5053097",
"0.50328076",
"0.50126... | 0.52292883 | 7 |
(str) > str Return a reversed version of s. >>> reverse('hello') 'olleh' >>> reverse('a') 'a' | def gxEw(KCHu):
o5Dc = ''
for Npgh in KCHu:
o5Dc = Npgh + o5Dc
return o5Dc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GoVQ(KCHu):\n KCHu.reverse()",
"def gxEw(KCHu):\n return KCHu[::-1]",
"def Zke2(KCHu):\n return KCHu[::-1]",
"def GoVQ(str):\n return str[::-1]",
"def GoVQ(KCHu):\n return ''.join(reversed(list(KCHu)))",
"def GoVQ(vb0a):\n return vb0a[::-1]",
"def gxEw(vIwR):\n return vIwR[::-1... | [
"0.82888746",
"0.8105809",
"0.78994036",
"0.7774885",
"0.77133656",
"0.7681458",
"0.7626759",
"0.7533365",
"0.750329",
"0.7476622",
"0.74672276",
"0.7441812",
"0.7428979",
"0.73968756",
"0.7390938",
"0.7381109",
"0.73525107",
"0.7338485",
"0.73262244",
"0.7313811",
"0.7312111... | 0.750698 | 8 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, ysF_):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Create a schedule with a learning rate that decreases following the values of the cosine function between 0 and `pi cycles` after a warmup period during which it increases linearly between 0 and 1. | def MIxn(K0do, USzt, aNjR, rabA=0.5, IKjI=-1):
def EAQd(cVyJ):
if cVyJ < USzt:
return float(cVyJ) / float(max(1, USzt))
Eb4t = float(cVyJ - USzt) / float(max(1, aNjR - USzt))
return max(0.0, 0.5 * (1.0 + epAf.cos(epAf.pi * float(rabA) * 2.0 * Eb4t)))
return y31S(K0do, EAQd, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FvGu(uH9w):\n b0Ix = Seb7.cosine_decay_with_warmup(global_step=ZylS.train.get_or_create_global_step(), learning_rate_base=0.04, total_steps=uH9w, warmup_learning_rate=0.0133, warmup_steps=100)\n return b0Ix",
"def ZT_s(Zbwy):\n return lambda qtWj: 1.0",
"def MIxn(K0do, USzt, aNjR, rabA=0.5, IKjI=-... | [
"0.7111079",
"0.6900339",
"0.6750259",
"0.6750259",
"0.66459167",
"0.6641998",
"0.6588088",
"0.6562708",
"0.65526444",
"0.65367407",
"0.65335447",
"0.64722043",
"0.64450043",
"0.64015716",
"0.63534755",
"0.6331366",
"0.6331366",
"0.6308364",
"0.62266725",
"0.62171793",
"0.621... | 0.66403264 | 6 |
Return d packed as 32bit unsigned integer (little endian). | def Fh76(Csk6):
return tMMy('<I', Csk6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3A2(Csk6):\n return MZ6z('<I', Csk6)[0]",
"def K3A2(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n return MZ6z(BWXx, 32, dmhX, Zihr)",
"def JDXO(nPrm):\n return BlNT.unpack('<I', nPrm)[0]",
"def Fbhp(nPrm):\n BWXx = MZ6z(vqOS.UINT32_BYTE_FORMAT, nPrm[:4])[0]\n return (BWXx, ... | [
"0.8458485",
"0.71315116",
"0.7124784",
"0.6802786",
"0.6790899",
"0.67507106",
"0.6631099",
"0.6417889",
"0.6378093",
"0.63006026",
"0.62821305",
"0.62821305",
"0.6250482",
"0.6240768",
"0.62299967",
"0.6221898",
"0.62057257",
"0.6168162",
"0.6167356",
"0.6149424",
"0.602687... | 0.7734232 | 1 |
Return d packed as 64bit unsigned integer (little endian). | def TsfL(Csk6):
return tMMy('<Q', Csk6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WhIS(Csk6):\n return MZ6z('<Q', Csk6)[0]",
"def WhIS(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n return MZ6z(BWXx, 64, dmhX, Zihr)",
"def QX98(nPrm: int) -> bytes:\n return BlNT.pack('>Q', nPrm)",
"def QX98(nPrm: int) -> bytes:\n return BlNT.pack('>Q', nPrm)",
"def nZT2(exw... | [
"0.8080498",
"0.7718023",
"0.7296026",
"0.7296026",
"0.71874493",
"0.7162767",
"0.7147503",
"0.68385816",
"0.68070984",
"0.67252725",
"0.66534895",
"0.6599219",
"0.65887624",
"0.64893615",
"0.6442953",
"0.6399468",
"0.63327706",
"0.61840695",
"0.6181534",
"0.61501896",
"0.614... | 0.7589983 | 2 |
Return the number represented by d when interpreted as a 64bit unsigned integer (little endian). | def WhIS(Csk6):
return MZ6z('<Q', Csk6)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WhIS(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n return MZ6z(BWXx, 64, dmhX, Zihr)",
"def nZT2(exwG):\n return int(exwG).to_bytes(8, byteorder='little', signed=False)",
"def bDih(YKHO, dmhX='<'):\n return YKHO.unpack('%sQ' % dmhX, 8)",
"def TsfL(Csk6):\n return tMMy('<Q', Csk... | [
"0.7721167",
"0.73888075",
"0.720838",
"0.71961963",
"0.70348424",
"0.70095813",
"0.6868349",
"0.6858462",
"0.6858462",
"0.6755599",
"0.67403",
"0.66654736",
"0.6631011",
"0.6532378",
"0.6527128",
"0.643332",
"0.6432193",
"0.6416337",
"0.6295023",
"0.62777114",
"0.62065077",
... | 0.8080936 | 0 |
Return true if the given byte is a printable ASCII character. | def oFu_(Fg_i):
return Fg_i in tTpl(vIwR.printable) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oFu_(Z9rn):\n return ord(Z9rn) >= 32 or Z9rn in ['\\r', '\\n', '\\t']",
"def MzFm(KCHu: str) -> bool:\n return frozenset(KCHu).issubset(Ws4l)",
"def oFu_(KCHu):\n for Z9rn in KCHu:\n if Z9rn not in tFU7:\n return False\n return True",
"def YUOx(eOtH):\n BrKl = set(vIwR.pr... | [
"0.8063285",
"0.7428942",
"0.7384203",
"0.72409034",
"0.7160824",
"0.7160824",
"0.7055795",
"0.7021248",
"0.69952625",
"0.6969861",
"0.6846586",
"0.6836922",
"0.678393",
"0.672706",
"0.67178553",
"0.6713574",
"0.66913164",
"0.66913164",
"0.66250706",
"0.6498613",
"0.6466205",... | 0.79354054 | 1 |
Construct an ANSI terminal escape code. | def r0qx(*qIxc):
Wxnj = aw0m.ESCAPE_START
Wxnj += ';'.join(qIxc)
Wxnj += aw0m.ESCAPE_END
return Wxnj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aaFK(mLGw):\n return '\\x1b[%sm' % mLGw",
"def GOFG(l5Ny: object) -> str:\n return str(l5Ny).replace('\\x1b', '?').replace('\\x08', '?')",
"def Vwq8(qfpW='black', _Cnz='normal'):\n a1M3 = prEg[qfpW]\n tSVk = Kw8z[_Cnz]\n return '\\x1b[' + tSVk + a1M3 + 'm'",
"def qv0A(idDS, yKcO='\\x01', O... | [
"0.6722756",
"0.6653756",
"0.64397824",
"0.6352434",
"0.62843865",
"0.61813813",
"0.6142702",
"0.60265326",
"0.59757423",
"0.59424394",
"0.5856099",
"0.58553594",
"0.58508587",
"0.5785551",
"0.5756168",
"0.5690514",
"0.5681752",
"0.5672013",
"0.5640468",
"0.5494562",
"0.54860... | 0.75485194 | 0 |
makes 4 Boxplots that show the first component of the dataframe (mean, median, etc) of the 4 classes | def SFdk(YKHO, leAC: str, HmAy: str='mean activity over all neurons', X84m: str='D:\\Dataframes\\double_skip_mean', nUHY: bool=True, kal_: str=None, rk5f: bool=False):
nPrm = []
ewCu = 0
for BEuN in YKHO.populations:
jQ3Z = rLdf.read_csv(YKHO.path + '\\{}.csv'.format(BEuN))
beOw = jQ3Z['labe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rTZ_(YKHO, moMn, HN6s, co3n, type):\n LZpg, FgGO = QrM1.subplots(nrows=HN6s, ncols=co3n, figsize=(6, 9.3), sharey='row')\n LZpg.subplots_adjust(left=0.03, right=0.97, hspace=0.3, wspace=0.05)\n for aNZO, (tSTk, BkYD) in zip(FgGO, moMn):\n aNZO[0].boxplot(BkYD['perm'])\n aNZO[1].boxplot(B... | [
"0.7076751",
"0.67842495",
"0.67558223",
"0.6616856",
"0.65577877",
"0.6433188",
"0.63394195",
"0.6275727",
"0.62616676",
"0.60996395",
"0.6091878",
"0.6075363",
"0.6007542",
"0.59308016",
"0.58823246",
"0.58548385",
"0.5837253",
"0.5832396",
"0.5831901",
"0.5808949",
"0.5805... | 0.6560889 | 4 |
Before each test, set up a blank database | def X40X():
Gcbu, dg6P.app.config['DATABASE'] = gbPf.mkstemp()
dg6P.init_db()
try:
yield
finally:
Hy7s.close(Gcbu)
Hy7s.unlink(dg6P.app.config['DATABASE']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n NCls.create_all()",
"def FCbF(YKHO):\n wzrQ = 'test_device_parameters'\n MrT5.client.create_database(wzrQ)\n MrT5.client.drop_database(wzrQ)\n MrT5.client.create_database(wzrQ)",
"def FCbF(YKHO):\n NCls.drop_all()\n NCls.create_all()",
"def FCbF(YKHO):\n NCls.drop_al... | [
"0.84847945",
"0.8479566",
"0.84005684",
"0.8322551",
"0.83078533",
"0.8287008",
"0.82728577",
"0.8267613",
"0.81266093",
"0.80993634",
"0.8042919",
"0.80200016",
"0.79937464",
"0.79836535",
"0.7974095",
"0.79731756",
"0.79731756",
"0.79731756",
"0.796644",
"0.7962328",
"0.79... | 0.0 | -1 |
Tests the GetAttributeContainerByIndex function. | def FgUL(YKHO):
eoas = YKHO._CreateRedisClient()
R7AP = YTVa.EventDataStream()
Wdsz = RmCX.RedisStore(storage_type=xHrl.STORAGE_TYPE_TASK)
Wdsz.Open(redis_client=eoas)
zGKt = Wdsz.GetAttributeContainerByIndex(R7AP.CONTAINER_TYPE, 0)
YKHO.assertIsNone(zGKt)
Wdsz.AddAttributeContainer(R7AP)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kWjq(YKHO):\n YKHO.add_pool()\n YKHO.add_container(YKHO.pool)\n YKHO.container.open()\n YKHO.daos_cmd = IsWz(YKHO.bin)\n J3gO = []\n mWFP = YKHO.params.get('name', '/run/attrtests/name_handles/*/')\n J3gO.append(mWFP[1])\n BWXx = YKHO.params.get('value', '/run/attrtests/value_handles/*/... | [
"0.6377996",
"0.635342",
"0.5984155",
"0.5975023",
"0.5823141",
"0.5801416",
"0.5759074",
"0.5659412",
"0.56261283",
"0.56100166",
"0.55499303",
"0.54374903",
"0.54043674",
"0.5327528",
"0.53003913",
"0.528377",
"0.52760684",
"0.52712744",
"0.5260165",
"0.5241577",
"0.5230366... | 0.75789773 | 0 |
Tests the GetAttributeContainers method. | def xRyj(YKHO):
eoas = YKHO._CreateRedisClient()
Wdsz = RmCX.RedisStore(storage_type=xHrl.STORAGE_TYPE_TASK)
Wdsz.Open(redis_client=eoas)
for bGrB, Ehzw, bGrB in tDRp.CreateEventsFromValues(YKHO._TEST_EVENTS):
Wdsz.AddAttributeContainer(Ehzw)
yqYz = list(Wdsz.GetAttributeContainers(Wdsz._CON... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kWjq(YKHO):\n YKHO.add_pool()\n YKHO.add_container(YKHO.pool)\n YKHO.container.open()\n YKHO.daos_cmd = IsWz(YKHO.bin)\n J3gO = []\n mWFP = YKHO.params.get('name', '/run/attrtests/name_handles/*/')\n J3gO.append(mWFP[1])\n BWXx = YKHO.params.get('value', '/run/attrtests/value_handles/*/... | [
"0.73791873",
"0.69798714",
"0.69262904",
"0.6801142",
"0.67491823",
"0.64485687",
"0.64399344",
"0.63582736",
"0.6355032",
"0.621487",
"0.61887103",
"0.61625737",
"0.6157284",
"0.61449665",
"0.59200144",
"0.58607996",
"0.5858989",
"0.58264047",
"0.5790608",
"0.574462",
"0.57... | 0.7875106 | 0 |
Tests the GetSerializedAttributeContainers method. | def k_GC(YKHO):
eoas = YKHO._CreateRedisClient()
Wdsz = RmCX.RedisStore(storage_type=xHrl.STORAGE_TYPE_TASK)
Wdsz.Open(redis_client=eoas)
for bGrB, Ehzw, bGrB in tDRp.CreateEventsFromValues(YKHO._TEST_EVENTS):
Wdsz.AddAttributeContainer(Ehzw)
N1p7, qMr3 = Wdsz.GetSerializedAttributeContainer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xRyj(YKHO):\n eoas = YKHO._CreateRedisClient()\n Wdsz = RmCX.RedisStore(storage_type=xHrl.STORAGE_TYPE_TASK)\n Wdsz.Open(redis_client=eoas)\n for bGrB, Ehzw, bGrB in tDRp.CreateEventsFromValues(YKHO._TEST_EVENTS):\n Wdsz.AddAttributeContainer(Ehzw)\n yqYz = list(Wdsz.GetAttributeContainer... | [
"0.71963716",
"0.6659312",
"0.63484555",
"0.63049203",
"0.60766137",
"0.60342824",
"0.6009412",
"0.5942492",
"0.58824474",
"0.5870336",
"0.5811853",
"0.5733358",
"0.5661414",
"0.5610872",
"0.55950135",
"0.5562966",
"0.55600244",
"0.555705",
"0.5550118",
"0.5533333",
"0.553244... | 0.82739806 | 0 |
Tests the UpdateAttributeContainer function. | def i4md(YKHO):
eoas = YKHO._CreateRedisClient()
R7AP = YTVa.EventDataStream()
Wdsz = RmCX.RedisStore(storage_type=xHrl.STORAGE_TYPE_TASK)
Wdsz.Open(redis_client=eoas)
gEzX = Wdsz.GetNumberOfAttributeContainers(R7AP.CONTAINER_TYPE)
YKHO.assertEqual(gEzX, 0)
with YKHO.assertRaises(IOError):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fP6T(YKHO):\n pass",
"def mB5X(YKHO):\n pass",
"def aeFJ(YKHO):\n pass",
"def d0IS(YKHO):\n pass",
"def kWjq(YKHO):\n YKHO.add_pool()\n YKHO.add_container(YKHO.pool)\n YKHO.container.open()\n YKHO.daos_cmd = IsWz(YKHO.bin)\n J3gO = []\n mWFP = YKHO.params.get('name', '/run... | [
"0.7612595",
"0.73633355",
"0.71287155",
"0.69922054",
"0.6607932",
"0.641185",
"0.6409671",
"0.63782984",
"0.63782984",
"0.63782984",
"0.6346146",
"0.62607443",
"0.6211011",
"0.61506295",
"0.61331815",
"0.6078399",
"0.6072202",
"0.6068954",
"0.60475475",
"0.60034466",
"0.596... | 0.7492601 | 1 |
Set an empty deque as an attribute of the instantiation | def FIMM(YKHO):
YKHO.deque = MUE7() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.elements = MUE7()",
"def FIMM(YKHO):\n YKHO._deque = []",
"def FIMM(YKHO):\n YKHO.deque = []",
"def FIMM(YKHO):\n YKHO.container = g760.deque()",
"def FIMM(YKHO):\n YKHO.queue = MUE7()",
"def FIMM(YKHO):\n YKHO.queue = MUE7()",
"def FIMM(YKHO):\n YKHO.queue =... | [
"0.78118587",
"0.77857304",
"0.77634585",
"0.76884",
"0.73265195",
"0.73265195",
"0.73265195",
"0.73265195",
"0.73098433",
"0.7292202",
"0.7260001",
"0.7187403",
"0.7183288",
"0.71644115",
"0.7104485",
"0.7100994",
"0.7079904",
"0.7021223",
"0.69949406",
"0.69566166",
"0.6953... | 0.7583522 | 4 |
Checks to make sure that the other is the same class | def qk0I(Emd4, Elif):
return isinstance(Elif, Emd4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l_QA(YKHO, Elif):\n return True",
"def xa14(YKHO, Elif) -> bool:\n if not isinstance(Elif, type(YKHO)):\n return False\n for xC3W in YKHO.classes:\n if getattr(YKHO, xC3W) != getattr(Elif, xC3W):\n return False\n return True",
"def plAK(YEnM, J9Xy):\n return type(YEn... | [
"0.7329382",
"0.7142863",
"0.70382947",
"0.70382947",
"0.70239526",
"0.7010973",
"0.70050365",
"0.6961176",
"0.6939133",
"0.6939133",
"0.6937196",
"0.6911721",
"0.6896603",
"0.6885087",
"0.686873",
"0.6832603",
"0.6830648",
"0.68212044",
"0.68130165",
"0.673939",
"0.6689765",... | 0.73825145 | 0 |
Determines whether or not the deque contained by this object is the same as the other | def xa14(YKHO, Elif):
if not YKHO.is_same_type_as_other(Elif):
return False
elif len(YKHO) != len(Elif):
return False
else:
for _TMt, qM_D in zip(YKHO, Elif):
if _TMt != qM_D:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n try:\n if not YKHO.size == Elif.size and YKHO.reference == Elif.reference:\n return False\n except:\n return False\n prxm, UsAE = (YKHO.reference, Elif.reference)\n for YRbF in range(YKHO.size):\n prxm, UsAE = (prxm.next, UsAE.next)\n if pr... | [
"0.72361267",
"0.7057272",
"0.69936764",
"0.6993099",
"0.6899336",
"0.6895459",
"0.6859485",
"0.6847174",
"0.68294036",
"0.68143535",
"0.681406",
"0.6812435",
"0.6804756",
"0.6766587",
"0.67661124",
"0.6755633",
"0.67409253",
"0.67409253",
"0.67409253",
"0.67409253",
"0.67409... | 0.74573594 | 0 |
Define not being equal as the negation of being equal | def Vdqg(YKHO, Elif):
return not YKHO.__eq__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kUu4(yLHq, RKYb):\n return sfxH.not_equal(yLHq, RKYb)",
"def wU_U(YKHO, Elif):\n return not YKHO == Elif",
"def d_5N(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, RKYb):\n return not YKHO.__eq__(RKYb)",
"def Vdqg(YKHO, hkxX):\n YKHO = YKHO.__eq__(hkxX)\n return YKHO.__inver... | [
"0.7901489",
"0.78702813",
"0.78586507",
"0.7800149",
"0.7792607",
"0.7753081",
"0.77438134",
"0.77145195",
"0.75878143",
"0.7542512",
"0.75332236",
"0.75332236",
"0.75293326",
"0.75293326",
"0.75227624",
"0.7500692",
"0.7487239",
"0.7481469",
"0.74795693",
"0.74795693",
"0.7... | 0.75308937 | 15 |
Return the itag for this object. This is an ID code identifying the media type. | def R6uJ(YKHO):
return YKHO.__itag | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hghu(YKHO):\n return YKHO._id[1]",
"def tGci(YKHO) -> str:\n return YKHO._media_type",
"def KEs8(YKHO) -> int:\n return YKHO._ot",
"def tGci(YKHO):\n return YKHO._media_type",
"def QZXZ(YKHO) -> int:\n ...",
"def GInC(YKHO):\n raise Exception('Not implemented!' + YKHO.__class__)",
... | [
"0.66211104",
"0.65449053",
"0.654305",
"0.649046",
"0.6287158",
"0.62864566",
"0.6250159",
"0.62316674",
"0.62061214",
"0.61764157",
"0.6149461",
"0.61458725",
"0.6104053",
"0.6099607",
"0.6083735",
"0.60329694",
"0.6026799",
"0.60114104",
"0.60099953",
"0.6008445",
"0.60020... | 0.7107075 | 0 |
Return the resolution of the video. This is a pair width, height. | def B1Wx(YKHO):
assert YKHO.has_video
return YKHO.__resolution | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uPRw(YKHO):\n a2Be = YKHO.drawingarea.get_allocation()\n return (a2Be.width, a2Be.height)",
"def H6Ee(YKHO):\n glYd = YKHO.imagesink.sinkpad.get_current_caps()\n if glYd is None:\n return None\n BlNT = glYd.get_structure(0)\n return (BlNT.get_int('width')[1], BlNT.get_int('height')[1... | [
"0.7719169",
"0.77020586",
"0.76141137",
"0.7611579",
"0.7574462",
"0.74399185",
"0.74152625",
"0.73286045",
"0.72063863",
"0.7107743",
"0.7080699",
"0.70789635",
"0.70789635",
"0.7067001",
"0.70639503",
"0.69653153",
"0.69606704",
"0.685394",
"0.6754326",
"0.67188704",
"0.67... | 0.79534537 | 0 |
Return a base filename for a YouTube feed item. This is returned in the format _ | def g7Ee(S5On):
return '{}_{}'.format(int(Cg8z(S5On.upload_time)), S5On.video_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yFjF(YKHO) -> str:\n IznC = YKHO.url.split('/')[-1]\n if ',' in IznC:\n tz35, WFmf = IznC.split(',')\n oRM1 = tz35.split('.')\n XWXe = oRM1[0]\n F78_ = oRM1[-1]\n return XWXe + WFmf + '.' + F78_\n else:\n return IznC",
"def Ux0P(YKHO):\n return '%s%s' % (... | [
"0.67675644",
"0.66538197",
"0.6611807",
"0.6544529",
"0.6500045",
"0.64375883",
"0.64337116",
"0.6419721",
"0.64094496",
"0.6398533",
"0.6365141",
"0.63421315",
"0.6316608",
"0.62886417",
"0.62428266",
"0.6235728",
"0.621773",
"0.62164116",
"0.6207857",
"0.62005097",
"0.6191... | 0.8637209 | 0 |
Write a json file. | def bFLq(bpNo, nPrm):
nMY2 = qQXR.dumps(nPrm, indent=2)
with bpNo.open('w') as CAYp:
CAYp.write(nMY2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lsrz(YKHO, Mu0k=None):\n HeoJ = qQXR.dumps(YKHO.json_dict, indent=2)\n YKHO._write_json_text(HeoJ, Mu0k)",
"def uP8n(X4Oj, pmON, gIsw):\n with open(pmON + '/' + gIsw + '.json', 'w') as ytgA:\n qQXR.dump(X4Oj, ytgA)\n return None",
"def bFLq(YKHO, IznC, hGN5):\n pass",
"def bFLq(YKHO... | [
"0.82896584",
"0.82350725",
"0.82150507",
"0.82150507",
"0.82082295",
"0.8202183",
"0.8038919",
"0.80205274",
"0.8003454",
"0.798986",
"0.7983297",
"0.79825854",
"0.79825467",
"0.7908652",
"0.79006904",
"0.78946656",
"0.78827",
"0.787163",
"0.7858913",
"0.78541845",
"0.782733... | 0.8173332 | 6 |
Read a json file and return a dict. | def dftL(bpNo):
with bpNo.open('r') as ZAOV:
return qQXR.loads(ZAOV.read()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dftL(gIsw: str) -> cuzp[str, ImMB]:\n with open(gIsw) as nUeQ:\n return qQXR.load(nUeQ)",
"def Nw5e(wM3v: str) -> dict:\n zgjV = {}\n if not Hy7s.path.isfile(wM3v):\n UtPW(Hy7s.path.basename(wM3v) + ' does not exist.')\n HwRy.exit(1)\n with open(wM3v) as eHNT:\n zgjV =... | [
"0.85493284",
"0.83970827",
"0.8297555",
"0.8292413",
"0.8237224",
"0.82232034",
"0.8182804",
"0.81584173",
"0.812069",
"0.81202406",
"0.8116486",
"0.80639005",
"0.80398357",
"0.8036172",
"0.80145735",
"0.80101484",
"0.7991269",
"0.7990517",
"0.7975514",
"0.7973933",
"0.79627... | 0.79611737 | 21 |
Returns `True` iff on the current index of the parser's token stream a token exists on the `HIDDEN` channel which either is a line terminator, or is a multi line comment that contains a line terminator. | def Qx3g(YKHO):
pp8j = YKHO.getCurrentToken().tokenIndex - 1
JvpJ = YKHO._input.get(pp8j)
if JvpJ.channel != gUYg.HIDDEN:
return False
if JvpJ.type == QVY9.LineTerminator:
return True
if JvpJ.type == QVY9.WhiteSpaces:
pp8j = YKHO.getCurrentToken().tokenIndex - 2
JvpJ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O6gR(YKHO):\n mXDZ = ZbWC.compile('^(\\\\s)*(//)+')\n return mXDZ.search(YKHO._line)",
"def VN7o(YKHO):\n return YKHO.pos == len(YKHO.tokens)",
"def vMWX(zFiD):\n return ZbWC.sub('#.*', '', zFiD).rstrip() == ''",
"def p_9N(YKHO, type):\n pp8j = YKHO.getCurrentToken().tokenIndex - 1\n Jv... | [
"0.6327187",
"0.63020664",
"0.60913473",
"0.59002215",
"0.5880648",
"0.5834091",
"0.58242476",
"0.577776",
"0.57172185",
"0.56223494",
"0.5609715",
"0.55721027",
"0.5543537",
"0.5543537",
"0.5540172",
"0.55089307",
"0.54948086",
"0.54750824",
"0.5439183",
"0.54104865",
"0.540... | 0.67523986 | 0 |
get min row of sheet | def z8Ti(YKHO, khdS):
return YKHO.wb[khdS].min_row | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vyp0(YKHO):\n return None if YKHO.is_raw() else YKHO.structure.min_row",
"def sdCG(YKHO, khdS):\n rnfv = YKHO.excel_min_row(khdS)\n sdCG = tuple(YKHO.wb[khdS].iter_rows(max_row=rnfv, values_only=True))[0]\n return sdCG",
"def peR5(YKHO):\n return sorted(YKHO.open_cells, key=lambda VmPb: VmPb... | [
"0.7487987",
"0.7386636",
"0.6983382",
"0.67109907",
"0.6683393",
"0.6683393",
"0.66611224",
"0.6612868",
"0.659789",
"0.6571903",
"0.64858645",
"0.64563805",
"0.63541013",
"0.63443124",
"0.6337312",
"0.63193953",
"0.6307747",
"0.6288673",
"0.624963",
"0.62395746",
"0.6234239... | 0.8722036 | 0 |
get max column of sheet | def xv6s(YKHO, khdS):
return YKHO.wb[khdS].max_column | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x5AE(YKHO):\n return YKHO.screen.getmaxyx()[1]",
"def qfB5(YKHO):\n bQ6z = YKHO.df[YKHO.col_name].max()\n return bQ6z",
"def IC1Y(YKHO, cCrA):\n r8hN = max(cCrA)\n z5la = []\n for YRbF in range(len(cCrA)):\n if cCrA[YRbF] == r8hN:\n z5la += [YRbF]\n if len(z5la) > 1:\... | [
"0.7676402",
"0.73684686",
"0.7255744",
"0.72384435",
"0.7004572",
"0.6961094",
"0.67676896",
"0.66737276",
"0.6654263",
"0.6616",
"0.6504985",
"0.64982283",
"0.6490829",
"0.6361453",
"0.633034",
"0.63010895",
"0.6274748",
"0.6269162",
"0.6267467",
"0.62645787",
"0.62556183",... | 0.8548476 | 0 |
get min column of sheet | def YAco(YKHO, khdS):
return YKHO.wb[khdS].min_column | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J5tp(YKHO):\n YmRM = YKHO.root.right\n p7Ik = YmRM.right\n while p7Ik != YKHO.root:\n if p7Ik.sum < YmRM.sum:\n YmRM = p7Ik\n p7Ik = p7Ik.right\n return YmRM",
"def ohV5(YKHO):\n dgIT = YKHO.df[YKHO.col_name].min()\n return dgIT",
"def XcNI(YKHO):\n JRC0 = 1000... | [
"0.7353189",
"0.70566094",
"0.6811838",
"0.6794458",
"0.6774065",
"0.6720852",
"0.6606467",
"0.6590865",
"0.64798427",
"0.64098257",
"0.6387989",
"0.6248376",
"0.6181982",
"0.6149169",
"0.61238635",
"0.6117936",
"0.61054873",
"0.60898334",
"0.60898334",
"0.6052726",
"0.604995... | 0.86467814 | 0 |
add_samplewise_zero_center. Zero center each sample by subtracting it by its mean. | def VITh(YKHO):
YKHO.methods.append(YKHO._samplewise_zero_center)
YKHO.args.append(None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VITh(YKHO, l4TY=False):\n YKHO.methods.append(YKHO._samplewise_zero_center)\n YKHO.args.append([l4TY])",
"def nmzO(YKHO, JBMS=None):\n YKHO.global_mean.is_required = True\n YKHO.global_mean.value = JBMS\n YKHO.methods.append(YKHO._featurewise_zero_center)\n YKHO.args.append(None)",
"def n... | [
"0.7766185",
"0.6866753",
"0.6626346",
"0.62702847",
"0.58323604",
"0.54206717",
"0.5345598",
"0.5312956",
"0.5230514",
"0.50782096",
"0.5036646",
"0.5033816",
"0.50322515",
"0.50114244",
"0.49635583",
"0.49539846",
"0.49211645",
"0.4911382",
"0.4908928",
"0.48937753",
"0.487... | 0.85039115 | 0 |
Compute std of a dataset. A limit can be specified for faster computation, considering only 'limit' first elements. | def fOUn(YKHO, __n6, cuiw, qoqK=None):
SeVZ = __n6
M1Jx = 0.0
if isinstance(qoqK, int):
SeVZ = SeVZ[:qoqK]
if isinstance(SeVZ, oyIN.ndarray):
M1Jx = oyIN.std(SeVZ)
else:
for YRbF in range(len(__n6)):
M1Jx += oyIN.std(__n6[YRbF]) / len(__n6)
YKHO.global_std.ass... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fOUn(YKHO, __n6, cuiw, qoqK=None):\n SeVZ = __n6\n M1Jx = 0.0\n if isinstance(qoqK, int):\n SeVZ = SeVZ[:qoqK]\n if isinstance(SeVZ, oyIN.ndarray) and (not YKHO.global_std_pc):\n M1Jx = oyIN.std(SeVZ)\n else:\n for YRbF in range(len(__n6)):\n if not YKHO.global_st... | [
"0.7543515",
"0.72513413",
"0.6976131",
"0.69385237",
"0.6901091",
"0.6898209",
"0.68910617",
"0.6861914",
"0.6831042",
"0.6762018",
"0.67585737",
"0.6750885",
"0.675071",
"0.6681826",
"0.66782653",
"0.66713285",
"0.66689706",
"0.6664979",
"0.6606886",
"0.65836686",
"0.655864... | 0.76335365 | 0 |
add_samplewise_zero_center. Zero center each sample by subtracting it by its mean. | def VITh(YKHO, l4TY=False):
YKHO.methods.append(YKHO._samplewise_zero_center)
YKHO.args.append([l4TY]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VITh(YKHO):\n YKHO.methods.append(YKHO._samplewise_zero_center)\n YKHO.args.append(None)",
"def nmzO(YKHO, JBMS=None):\n YKHO.global_mean.is_required = True\n YKHO.global_mean.value = JBMS\n YKHO.methods.append(YKHO._featurewise_zero_center)\n YKHO.args.append(None)",
"def nmzO(YKHO, JBMS... | [
"0.85042584",
"0.68662345",
"0.66264266",
"0.62691146",
"0.5832283",
"0.54198456",
"0.5347357",
"0.5312225",
"0.5230079",
"0.50776285",
"0.5037255",
"0.5033309",
"0.50314224",
"0.5011614",
"0.49651495",
"0.49557716",
"0.4920939",
"0.49111465",
"0.49092337",
"0.48961127",
"0.4... | 0.7766816 | 1 |
Compute std of a dataset. A limit can be specified for faster computation, considering only 'limit' first elements. | def fOUn(YKHO, __n6, cuiw, qoqK=None):
SeVZ = __n6
M1Jx = 0.0
if isinstance(qoqK, int):
SeVZ = SeVZ[:qoqK]
if isinstance(SeVZ, oyIN.ndarray) and (not YKHO.global_std_pc):
M1Jx = oyIN.std(SeVZ)
else:
for YRbF in range(len(__n6)):
if not YKHO.global_std_pc:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fOUn(YKHO, __n6, cuiw, qoqK=None):\n SeVZ = __n6\n M1Jx = 0.0\n if isinstance(qoqK, int):\n SeVZ = SeVZ[:qoqK]\n if isinstance(SeVZ, oyIN.ndarray):\n M1Jx = oyIN.std(SeVZ)\n else:\n for YRbF in range(len(__n6)):\n M1Jx += oyIN.std(__n6[YRbF]) / len(__n6)\n YKHO... | [
"0.7632736",
"0.72524333",
"0.6976694",
"0.6938957",
"0.6901595",
"0.6897955",
"0.6892295",
"0.6862798",
"0.68318427",
"0.6762627",
"0.67598206",
"0.6751128",
"0.6749657",
"0.6682415",
"0.66788936",
"0.66715616",
"0.6669228",
"0.66649157",
"0.6607939",
"0.6584401",
"0.6558742... | 0.7542912 | 1 |
Update provided default values. | def XGxM(YKHO, HyJ9):
if YKHO.type == 'uri_folder' or YKHO.type == 'uri_file':
YKHO.default = HyJ9
return
else:
if isinstance(HyJ9, float) and (not epAf.isfinite(HyJ9)):
return
'Update provided default values.\n Here we need to make sure the type of default... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NAhG(**B2fa):\n with open(dhAc, 'r') as eHNT:\n muwo = qQXR.load(eHNT)\n return sUFK(B2fa, muwo)",
"def icks(YKHO):\n if YKHO.verbose:\n k8wH.echo('Updating required default values')\n for Jyyj in pc3W:\n if YKHO.__class__.__name__ in pc3W[Jyyj][1]:\n YKHO.data[Jyy... | [
"0.7525808",
"0.7474591",
"0.6905548",
"0.67220205",
"0.6606448",
"0.6593377",
"0.6593377",
"0.657461",
"0.657461",
"0.64384013",
"0.63829714",
"0.638256",
"0.6313892",
"0.63086975",
"0.6294777",
"0.6255455",
"0.62498176",
"0.6232411",
"0.62255615",
"0.62123764",
"0.6148428",... | 0.7066509 | 2 |
Check whether the enum is valid and return the values of the enum. | def BAr1(Emd4, qQ1Y):
if isinstance(qQ1Y, gyVE):
x7oU = [str(MTKo.value) for MTKo in qQ1Y]
elif isinstance(qQ1Y, iu5r):
x7oU = list(qQ1Y)
else:
tO9_ = 'enum must be a subclass of Enum or an iterable.'
raise LxX6(message=tO9_, no_personal_data_message=tO9_, error_category=lmBB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iLX_(YKHO):\n return [WKvO.name for WKvO in YKHO._field.enum_type.values]",
"def BAr1(Emd4, qQ1Y: Type):\n if isinstance(qQ1Y, gyVE):\n x7oU = [str(MTKo.value) for MTKo in qQ1Y]\n elif isinstance(qQ1Y, iu5r):\n x7oU = list(qQ1Y)\n else:\n tO9_ = 'enum must be a subclass of En... | [
"0.7362305",
"0.6796512",
"0.65609664",
"0.6545454",
"0.63113946",
"0.6263624",
"0.62445295",
"0.6234288",
"0.62187",
"0.62126726",
"0.621075",
"0.6066409",
"0.6063317",
"0.6051494",
"0.60372716",
"0.60307807",
"0.60129493",
"0.5993756",
"0.594691",
"0.5916411",
"0.57821494",... | 0.68541235 | 1 |
Merge field keys from annotations and cls dict to get all fields in class. | def kSsn(DB2d, Spt3):
BC2u = list(DB2d.keys())
SmrQ = Spt3.keys()
if not SmrQ:
return BC2u
wqEJ = []
n4Xh = False
for H5ew in BC2u:
if H5ew in SmrQ:
n4Xh = True
else:
if n4Xh:
raise oXZl(f'Non-default argument {H5ew!r} follows defau... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H196(dSmw, rV9y, Leb6, mEP7, xIAp):\n VKhi = rV9y.opts\n QXkI = VKhi.model_converter\n aDxC = QXkI(schema_cls=rV9y)\n ERRh = super(RAaH, dSmw).get_declared_fields(rV9y, Leb6, mEP7, xIAp)\n V_D6 = dSmw.get_fields(aDxC, VKhi, ERRh, xIAp)\n V_D6.update(ERRh)\n return V_D6",
"def VSbD(YKHO) ... | [
"0.6685666",
"0.64662904",
"0.64032733",
"0.63022685",
"0.6253286",
"0.6240337",
"0.6235441",
"0.62293345",
"0.62007964",
"0.61014855",
"0.60974395",
"0.6083527",
"0.60407984",
"0.5988987",
"0.5785129",
"0.57410014",
"0.5734831",
"0.5703273",
"0.5700501",
"0.5686906",
"0.5663... | 0.60819465 | 12 |
Get the timestamp of the specified key and time | def kMp9(YKHO, H5ew, ITS7):
return YKHO.get('timestamp', H5ew, ITS7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zPJh(YKHO, d6pt, nqqG, tTee) -> float:\n ...",
"def kMp9(YKHO):\n return YKHO.pair.data['timestamp']",
"def E3oo():\n return ITS7.time()",
"def ItX3():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S')",
"def ItX3():\n return int(ITS7.time())",
"def ItX3():\n wzkt, KCHu = slWZ()\n retu... | [
"0.68067765",
"0.6517463",
"0.65090746",
"0.6479973",
"0.6473025",
"0.64701426",
"0.64549804",
"0.6353315",
"0.6323875",
"0.6320996",
"0.628207",
"0.62733644",
"0.6272486",
"0.6145687",
"0.613244",
"0.6120174",
"0.6102125",
"0.60762984",
"0.60748947",
"0.6073392",
"0.60721284... | 0.8337492 | 0 |
Resets the score for players. Will be called whenever the player changes the gamemode. | def NLKW(YKHO):
YKHO.x_score = 0
YKHO.o_score = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sJN7(YKHO):\n for r845, oyg0 in enumerate(YKHO._players_list):\n YKHO._players_list[r845].reset_all_scores()",
"def NLKW(YKHO):\n YKHO._score = XP5J.params['initial_score']",
"def PG2b(YKHO):\n YKHO.shot_bullets = 0\n YKHO.number_of_mega_bullets = YKHO.settings.number_of_mega_bullets\n ... | [
"0.7751881",
"0.7495091",
"0.735892",
"0.73229796",
"0.72997475",
"0.7260959",
"0.71807325",
"0.7132584",
"0.7120904",
"0.7040615",
"0.6889424",
"0.68061036",
"0.67745614",
"0.67414445",
"0.67102915",
"0.6709723",
"0.6688626",
"0.66612864",
"0.6608987",
"0.65861654",
"0.65837... | 0.7357734 | 3 |
r""" Create scaled integer polynomial with respect to prime ``p``. Given an integral polynomial ``c``, we can write `c = p^ic'`, where ``p`` does not divide ``c``. Returns ``c'`` and `v i` where `i` is the smallest valuation of the coefficients of `c`. | def NXpY(Z9rn, Ty9i, XP5J):
ZTXg = min([lk9W.valuation(XP5J) for lk9W in Z9rn.coefficients()])
if ZTXg > 0:
Z9rn = Z9rn / XP5J ** ZTXg
Ty9i = Ty9i - ZTXg
if Ty9i <= 0:
I1mm = False
else:
I1mm = True
return [I1mm, Z9rn, Ty9i] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EKTs(eHNT):\n v9Lt = eHNT.content()\n x9nG = eHNT.primitive_part()\n vuvg = [x9nG]\n yvY1 = x9nG\n Z9rn = 0\n a0GJ = yvY1.getRing().one\n while yvY1.differentiate() and vuvg[Z9rn] != a0GJ:\n BXW4 = yvY1.differentiate()\n vuvg.append(vuvg[Z9rn].subresultant_gcd(BXW4))\n ... | [
"0.6149162",
"0.5929646",
"0.58255297",
"0.5785284",
"0.5711117",
"0.57079804",
"0.570709",
"0.56368804",
"0.5630318",
"0.56215453",
"0.55755943",
"0.5573291",
"0.5566123",
"0.55292475",
"0.54912364",
"0.5452024",
"0.54478467",
"0.5402359",
"0.5396747",
"0.538684",
"0.5372848... | 0.56856984 | 7 |
r""" Determine if given map is affine minimal. Given vp a scheme morphisms on the projective line over the rationals, this procedure determines if `\phi` is minimal. In particular, it determines if the map is affine minimal, which is enough to decide if it is minimal or not. See Proposition 2.10 in [BruinMolnar]_. | def sWbC(vuA2, Ydyu=False, lWPh=None, M5HS=False):
Qoow = vuA2.domain().base_ring()
_tTC = SppC(Qoow, 2, 2, 1)
I1mm = True
Csk6 = vuA2.degree()
vuA2.normalize_coordinates()
pjZT = vuA2.dehomogenize(1)
A3Vt = pjZT.coordinate_ring()
if A3Vt.is_field():
A3Vt = A3Vt.ring()
vuvg =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TUBE(YKHO, r8hN):\n n8ox = YKHO._get_render_area_size()\n k1qp = r8hN.envelope().width() / r8hN.envelope().height()\n xNEL = n8ox[0] / n8ox[1]\n return k1qp > xNEL",
"def pgR0(YKHO):\n E3D9 = YKHO.rep\n for YRbF in range(YKHO.rows):\n for r845 in range(YRbF + 1, YKHO.cols):\n ... | [
"0.509496",
"0.5083823",
"0.49298248",
"0.4909595",
"0.49056163",
"0.48246107",
"0.48185727",
"0.47816676",
"0.47234157",
"0.47230712",
"0.4717085",
"0.4703497",
"0.46632418",
"0.46525338",
"0.4638692",
"0.4621058",
"0.46113315",
"0.45416078",
"0.45252818",
"0.45076373",
"0.4... | 0.63180494 | 0 |
updates bit[idx] += x | def QdZT(YKHO, or8S, WKvO):
while or8S < len(YKHO.bit):
YKHO.bit[or8S] += WKvO
or8S |= or8S + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, or8S, H2v5):\n or8S += 1\n while or8S < len(YKHO.array):\n YKHO.array[or8S] += H2v5\n or8S += or8S & -or8S",
"def FIMM(YKHO, WKvO):\n YKHO.bit = WKvO\n for YRbF in range(len(WKvO)):\n r845 = YRbF | YRbF + 1\n if r845 < len(WKvO):\n WKvO[r845] += W... | [
"0.81440353",
"0.7164437",
"0.7037175",
"0.6825663",
"0.6755222",
"0.66548693",
"0.6643246",
"0.65694606",
"0.64788926",
"0.6365865",
"0.63008875",
"0.62780505",
"0.6252346",
"0.6180964",
"0.6084746",
"0.60828376",
"0.6072919",
"0.60236037",
"0.60177165",
"0.5937351",
"0.5894... | 0.92334026 | 0 |
Calculate the sigmoid for the give inputs (array) | def m1Hg(g4y1):
eHWz = [1 / float(1 + oyIN.exp(-WKvO)) for WKvO in g4y1]
return eHWz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(WKvO: np.ndarray) -> oyIN.ndarray:\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(EcVT):\n if isinstance(EcVT, (list, tuple)):\n EcVT = oyIN.array(EcVT)\n return 1 / (1 + oyIN.exp(-EcVT))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(EcVT):\n return 1 / (1 +... | [
"0.8376034",
"0.83122724",
"0.80985767",
"0.80895185",
"0.80895185",
"0.8053431",
"0.8053431",
"0.8053431",
"0.8053431",
"0.8053431",
"0.8053431",
"0.80432314",
"0.8030513",
"0.80283993",
"0.8002724",
"0.7961807",
"0.7944575",
"0.7943942",
"0.7928192",
"0.7924972",
"0.7924384... | 0.76400137 | 43 |
Calculate the softmax for the give inputs (array) | def N93T(g4y1):
return oyIN.exp(g4y1) / float(sum(oyIN.exp(g4y1))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(g4y1):\n BFeB = oyIN.exp(g4y1)\n BFeB /= oyIN.sum(BFeB, axis=0)[oyIN.newaxis, :]\n return BFeB",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n \"\"\"\"\"... | [
"0.8418574",
"0.84092134",
"0.84068877",
"0.84053314",
"0.83708495",
"0.83661324",
"0.83660907",
"0.83629894",
"0.83629894",
"0.8347957",
"0.8342697",
"0.83423424",
"0.8325401",
"0.83090335",
"0.83090335",
"0.83090335",
"0.83090335",
"0.83090335",
"0.83090335",
"0.83090335",
... | 0.84293765 | 1 |
Regenerates this corridor. New values are drawn from the `corridor_width` and `corridor_height` distributions specified in `_build`. The corridor resized accordingly, and new sets of obstructing walls are created according to values drawn from the `wall_gap`, `wall_width`, `wall_height`, and `wall_rgba` distributions s... | def W5lS(YKHO, t3eI):
super(ZjEu, YKHO).regenerate(t3eI)
Sk4j = gFIc.evaluate(YKHO._wall_gap, random_state=t3eI) - _1zP
DB9V = 0
BO7K = 0
while Sk4j < YKHO._current_corridor_length:
U8gL = gFIc.evaluate(YKHO._wall_width, random_state=t3eI)
F0wx = gFIc.evaluate(YKHO._wall_height, rand... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W5lS(YKHO, t3eI):\n super(YSyA, YKHO).regenerate(t3eI)\n YKHO._ground_plane.pos = [YKHO._current_corridor_length / 2, 0, -10]\n YKHO._ground_plane.rgba = [0, 0, 0, 0]\n YKHO._ground_body.geom.clear()\n UYHT = 3.0 * _1zP\n _oWQ = [UYHT / 2, 0, -IwqG]\n r75S = [UYHT / 2, YKHO._current_corrid... | [
"0.7158215",
"0.6916643",
"0.5969294",
"0.5832664",
"0.55596715",
"0.5186313",
"0.51725626",
"0.5136404",
"0.51347834",
"0.5109342",
"0.509041",
"0.5076304",
"0.50454664",
"0.50352633",
"0.50305325",
"0.50128245",
"0.5010999",
"0.50021213",
"0.49959674",
"0.49950147",
"0.4970... | 0.7437008 | 0 |
Devuelve verdadero si el usuario se ha inscrito a un congreso y falso en caso contrario. | def eZf0(wvEv, eOtH):
UOVU = eOtH.contents.split()
if len(UOVU) == 5 and UOVU[3] == 'as':
return nYbG(UOVU[1], UOVU[2], UOVU[4])
else:
return rPXJ.TemplateSyntaxError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jjss(YKHO):\n try:\n if YKHO.get_customer()[0][0] == YKHO.dni:\n return True\n else:\n return False\n except:\n return False",
"def nrbP(YKHO, nPrm):\n CBIr = Pbfu.objects.filter(usuario=nPrm)\n if not YKHO.instance and len(CBIr) != 0:\n raise sUX... | [
"0.67371446",
"0.6650247",
"0.6567982",
"0.6404022",
"0.6350396",
"0.62846154",
"0.62336314",
"0.6230998",
"0.61440814",
"0.6136602",
"0.6136602",
"0.6100215",
"0.60647005",
"0.60523343",
"0.6027024",
"0.59779286",
"0.59779286",
"0.59779286",
"0.59675306",
"0.5933827",
"0.590... | 0.0 | -1 |
it validates other object we want to compare to object must be of type MachineLearningExperimentResults and have the same name | def OSTP(YKHO, Elif: 'MachineLearningExperimentResults'):
if type(Elif) != type(YKHO):
raise TypeError(f'Comparison makes sense only for "{YKHO.__class__.__name__}" type')
if YKHO.name != Elif.name:
raise ValueError(f'Comparison makes sense only for results for the same experiments. Comparing "{... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nr9I(YKHO, TJHJ, T6cD):\n if not isinstance(TJHJ, VDRD.BenchmarkATEResult) or not isinstance(T6cD, VDRD.BenchmarkATEResult):\n YKHO.fail('object was not a BenchmarkATEResult')\n YKHO.assertEqual(TJHJ.identifier, T6cD.identifier)\n YKHO.assertEqual(TJHJ.success, T6cD.success)\n YKHO.assertEqu... | [
"0.6730554",
"0.64330214",
"0.6423065",
"0.62028956",
"0.6143106",
"0.61314774",
"0.6111404",
"0.610992",
"0.607744",
"0.6041725",
"0.6019648",
"0.60136884",
"0.5990979",
"0.59469795",
"0.59462446",
"0.59371",
"0.5891297",
"0.5877175",
"0.5866717",
"0.58603776",
"0.58580303",... | 0.77577823 | 0 |
method to save this class as a JSON file | def oD7C(YKHO, t6ue: str):
with open(t6ue, 'w') as ECmi:
qQXR.dump(YKHO.data, ECmi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO, Ux0P):\n hGN5 = YKHO.to_dict()\n with open(Ux0P, 'w') as eHNT:\n qQXR.dump(hGN5, eHNT)",
"def wiPd(YKHO):\n with open(YKHO.file_path, 'w') as hOYR:\n qQXR.dump(YKHO.data, hOYR, indent=4, sort_keys=True)",
"def grzT(YKHO):\n with open(YKHO.savefile, 'w') as eHNT:\n ... | [
"0.8294183",
"0.8205693",
"0.80813426",
"0.8050925",
"0.8002092",
"0.79825723",
"0.7883684",
"0.7854155",
"0.7854155",
"0.7854155",
"0.78537285",
"0.78255206",
"0.77965754",
"0.77888334",
"0.77751166",
"0.7741886",
"0.7716145",
"0.76650107",
"0.76298714",
"0.7584407",
"0.7569... | 0.0 | -1 |
method to setup ADA classifier. you can override classifier_name to compare different sets of kwargs all the kwargs will be provided to the scikitlearn classifier constructor | def TIRY(YKHO, HNWp='ADA', **B2fa):
if not HNWp in YKHO.classifiers:
M_NZ = F843(**B2fa)
M_NZ.fit(YKHO.X_train, YKHO.y_train)
YKHO.classifiers[HNWp] = M_NZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, AmnI, EcVT, LVAh, uo6F, HI29, G1Hx, ioaL, Tuqy):\n super().__init__(AmnI, EcVT, LVAh, uo6F, HI29, G1Hx, ioaL)\n YKHO.type_ = 'naive bayes'",
"def FIMM(YKHO, M_NZ, **B2fa):\n YKHO.__clf = M_NZ\n 'Store the classifier to use.'\n VAZI.__init__(YKHO, **B2fa)\n YKHO.__tags__ = YKHO.__... | [
"0.6290978",
"0.6212142",
"0.61258507",
"0.6071785",
"0.6046671",
"0.593124",
"0.5920679",
"0.5889093",
"0.5870537",
"0.5847244",
"0.5716073",
"0.5650463",
"0.5596349",
"0.5588999",
"0.5584441",
"0.5565967",
"0.5550611",
"0.55152",
"0.5512434",
"0.55089635",
"0.54947525",
"... | 0.8347859 | 0 |
Return monochrome image with doubled(scale) selected color minus half of the other two colors(/fraction) added together. Where color is Blue (0), Green (1default), or Red (2) | def vpdM(YKHO, VXjJ, NXpY=2, wA3x=0.5):
return XC5k.subtract(XC5k.multiply(VXjJ[:, :, YKHO.color], NXpY), XC5k.multiply(XC5k.add(VXjJ[:, :, (YKHO.color + 1) % 3], VXjJ[:, :, (YKHO.color + 2) % 3]), wA3x)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gxEw(qfpW):\n return 255 - qfpW",
"def wegO(Z9rn: float, jzdc: float) -> float:\n return 255 + (Z9rn - 255) * jzdc",
"def KcW0(Z9rn):\n return yQmU(Z9rn, 1)",
"def tbib(VXjJ):\n for e3Fk in VXjJ:\n WKvO, LVAh, fvDH = e3Fk\n Mkmy, Oa1e, Fg_i = fvDH\n gsW2 = egIk(255 - Mkmy... | [
"0.64198655",
"0.6400547",
"0.63976747",
"0.6326675",
"0.62678677",
"0.6265407",
"0.62574065",
"0.62114024",
"0.61314505",
"0.60954577",
"0.60629565",
"0.6059655",
"0.59547377",
"0.5924679",
"0.5921512",
"0.5898028",
"0.5896281",
"0.5886589",
"0.5882595",
"0.58771574",
"0.587... | 0.5481402 | 73 |
return array of browser command line arguments from config_section [Chrome] browser_arguments=enableexperimentalwebplatformfeatures unlimitedstorage ... | def gCg9(YKHO, GhIg):
if GhIg is None:
return []
try:
DBC9 = YKHO.shishito_support.get_opt(GhIg, 'browser_arguments')
except enR0.NoOptionError:
return []
if DBC9:
Ltpw = [YRbF for YRbF in ZbWC.split('\\s+', DBC9) if YRbF != '']
return Ltpw
else:
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kR4Z():\n VKhi = lE6K()\n VKhi.add_argument('--disable-dev-shm-usage')\n if gCuF.SELENIUM_DEBUG:\n VKhi.add_argument('--auto-open-devtools-for-tabs')\n if gCuF.USER_AGENT != 'default':\n VKhi.add_argument(f'user-agent={gCuF.USER_AGENT}')\n if gCuF.CHROME_PATH:\n VKhi.binary_... | [
"0.70940334",
"0.66641027",
"0.64358586",
"0.6359367",
"0.63571846",
"0.60843676",
"0.60441506",
"0.58515286",
"0.5656138",
"0.56438345",
"0.5581591",
"0.5565579",
"0.5563207",
"0.55478483",
"0.54750407",
"0.54376984",
"0.54106665",
"0.54055953",
"0.5399551",
"0.53704447",
"0... | 0.77858526 | 0 |
Return browser profile ready to be passed to driver. | def fBGl(YKHO, Wy9G, AViC, GhIg=None):
Wy9G = Wy9G.lower()
z39Z = None
if Wy9G == 'firefox':
z39Z = cSpz.FirefoxProfile()
try:
YjUR = YKHO.shishito_support.get_opt('download_path')
if YjUR:
z39Z.set_preference('browser.download.folderList', 2)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bgf_(YKHO):\n w2IS = '/profile'\n return YKHO.get_request(w2IS)",
"def JKwB(YKHO):\n G9jH.info('# Setting up chrome profile.')\n VBaM = '../drivers/chromedriver'\n return VBaM",
"def JKwB(YKHO):\n G9jH.info('# Setting up chrome profile.')\n VBaM = '../drivers/chromedriver'\n return ... | [
"0.6978005",
"0.6928539",
"0.6928539",
"0.6866122",
"0.67833185",
"0.65746945",
"0.65342957",
"0.64967644",
"0.64967644",
"0.64924467",
"0.64356273",
"0.6363064",
"0.63366324",
"0.6284175",
"0.62463605",
"0.6242935",
"0.61901397",
"0.61740077",
"0.61598533",
"0.61598533",
"0.... | 0.669233 | 5 |
Each __getitem__ call yields a list of self.samples_per_instance observations of a single scene (each a dict), as well as a list of groundtruths for each observation (also a dict). | def OP2O(YKHO, or8S):
Haaa, EyBf = YKHO.get_instance_idx(or8S)
pR3T = []
pR3T.append(YKHO.all_instances[Haaa][EyBf])
for YRbF in range(YKHO.samples_per_instance - 1):
pR3T.append(YKHO.all_instances[Haaa][oyIN.random.randint(len(YKHO.all_instances[Haaa]))])
yLaY = [{'rgb': Q30J['rgb']} for Q3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, or8S):\n Haaa, EyBf = YKHO.get_instance_idx(or8S)\n pR3T = []\n pR3T.append(YKHO.all_instances[Haaa][EyBf])\n if YKHO.load_depth:\n yLaY = [{'rgb': Q30J['rgb'], 'depth': Q30J['depth']} for Q30J in pR3T]\n else:\n yLaY = [{'rgb': Q30J['rgb']} for Q30J in pR3T]\n return... | [
"0.7864449",
"0.76773065",
"0.6841382",
"0.6420116",
"0.6305259",
"0.6030545",
"0.6000444",
"0.5958141",
"0.5937155",
"0.58990186",
"0.5890973",
"0.5881616",
"0.58649594",
"0.5839009",
"0.5833697",
"0.5803065",
"0.57591385",
"0.5743175",
"0.5737527",
"0.5691412",
"0.5669703",... | 0.7952802 | 0 |
Each __getitem__ call yields a list of self.samples_per_instance observations of a single scene (each a dict), as well as a list of groundtruths for each observation (also a dict). | def OP2O(YKHO, or8S):
Haaa, EyBf = YKHO.get_instance_idx(or8S)
pR3T = []
pR3T.append(YKHO.all_instances[Haaa][EyBf])
yLaY = [{'rgb': Q30J['rgb']} for Q30J in pR3T]
return (pR3T, yLaY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, or8S):\n Haaa, EyBf = YKHO.get_instance_idx(or8S)\n pR3T = []\n pR3T.append(YKHO.all_instances[Haaa][EyBf])\n for YRbF in range(YKHO.samples_per_instance - 1):\n pR3T.append(YKHO.all_instances[Haaa][oyIN.random.randint(len(YKHO.all_instances[Haaa]))])\n yLaY = [{'rgb': Q30J['rg... | [
"0.7952309",
"0.78633666",
"0.6841431",
"0.64203453",
"0.63039815",
"0.6032739",
"0.59996927",
"0.5956884",
"0.5939113",
"0.58993036",
"0.58931214",
"0.58798444",
"0.58632505",
"0.5838321",
"0.58327913",
"0.58014464",
"0.57576954",
"0.5742789",
"0.5736073",
"0.568955",
"0.567... | 0.7676358 | 2 |
Each __getitem__ call yields a list of self.samples_per_instance observations of a single scene (each a dict), as well as a list of groundtruths for each observation (also a dict). | def OP2O(YKHO, or8S):
Haaa, EyBf = YKHO.get_instance_idx(or8S)
pR3T = []
pR3T.append(YKHO.all_instances[Haaa][EyBf])
if YKHO.load_depth:
yLaY = [{'rgb': Q30J['rgb'], 'depth': Q30J['depth']} for Q30J in pR3T]
else:
yLaY = [{'rgb': Q30J['rgb']} for Q30J in pR3T]
return (pR3T, yLaY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, or8S):\n Haaa, EyBf = YKHO.get_instance_idx(or8S)\n pR3T = []\n pR3T.append(YKHO.all_instances[Haaa][EyBf])\n for YRbF in range(YKHO.samples_per_instance - 1):\n pR3T.append(YKHO.all_instances[Haaa][oyIN.random.randint(len(YKHO.all_instances[Haaa]))])\n yLaY = [{'rgb': Q30J['rg... | [
"0.7952802",
"0.76773065",
"0.6841382",
"0.6420116",
"0.6305259",
"0.6030545",
"0.6000444",
"0.5958141",
"0.5937155",
"0.58990186",
"0.5890973",
"0.5881616",
"0.58649594",
"0.5839009",
"0.5833697",
"0.5803065",
"0.57591385",
"0.5743175",
"0.5737527",
"0.5691412",
"0.5669703",... | 0.7864449 | 1 |
Returns a human friendly time statement | def LMZF(yKcO, Os4s):
GDRv = Os4s - yKcO
O66n = GDRv / 60
C6wh = GDRv % 60
return '\nTime spent : %s minutes and %s seconds' % (int(O66n), round(C6wh, 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def scnb(YKHO):\n return f'{YKHO.year} {YKHO.month:02} {YKHO.start_day:02} {YKHO.start_hour:02} 00 {YKHO.get_duration():6}'",
"def zU5u(ITS7=None):\n if ITS7 is None:\n ITS7 = qIe0()\n return ITS7.strftime(GPtr.TIME_PRINT_FORMAT)",
"def EgnU():\n return ITS7.strftime('%A, %H:%M')",
"def m7... | [
"0.74643034",
"0.74427",
"0.73872733",
"0.7374944",
"0.73232436",
"0.72643906",
"0.72527343",
"0.7195245",
"0.71504444",
"0.7096231",
"0.7038637",
"0.7034044",
"0.7033334",
"0.702201",
"0.70152014",
"0.70122015",
"0.6996821",
"0.69855076",
"0.690553",
"0.68989956",
"0.6895217... | 0.0 | -1 |