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 |
|---|---|---|---|---|---|---|
Add an iterator to the scheduler. | def H2v5(YKHO, l8Nb):
if not YKHO.tm:
YKHO.tm = YKHO._now()
return YKHO._enqueue(l8Nb, Kmii(0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zOZq(YKHO, VvBY, THSM=None):\n if THSM is None:\n THSM = set()\n YKHO.default_dict['iterators'].append(VvBY)\n YKHO.iter_list_iterator = n2fR(list(range(len(YKHO.default_dict['iterators']))))\n AF9n = buv7\n Goyj = YKHO.return_least_keys(THSM)\n if len(Goyj) > 5:\n Goyj = Goyj[0... | [
"0.5857544",
"0.5717766",
"0.56646436",
"0.5641688",
"0.5589841",
"0.5448254",
"0.54332507",
"0.54236865",
"0.53901005",
"0.5381826",
"0.5361284",
"0.532146",
"0.52987945",
"0.52723515",
"0.518757",
"0.51739174",
"0.51473904",
"0.51468354",
"0.512206",
"0.5084052",
"0.5019393... | 0.64778364 | 0 |
Yield from a generator, then yields an extra Beat. | def aPSD(rk5s, OWrw, *qIxc, **B2fa):
wjRY = 0
for h7D2 in OWrw(*qIxc, **B2fa):
wjRY += h7D2.count
yield h7D2
yield wOYS(rk5s - wjRY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n yield from YKHO.gen",
"def f76e():\n yield (yield (yield 1))",
"def nrOS(YKHO):\n yield from YKHO",
"def kInt():\n yield 'horse'\n yield 'cow'\n yield 'mouse'",
"def JqG5(YKHO):\n return YKHO._fluor_yield",
"def Vs4Q(YKHO) -> jd6F:\n yield from YKHO.sequence",
... | [
"0.623003",
"0.61388046",
"0.6097662",
"0.60695386",
"0.59670126",
"0.5955384",
"0.59386474",
"0.5937994",
"0.5934757",
"0.5875621",
"0.5812488",
"0.5800179",
"0.57920396",
"0.57903063",
"0.57847905",
"0.57584846",
"0.573116",
"0.56926155",
"0.56609154",
"0.5658048",
"0.56545... | 0.0 | -1 |
Convert points to vectors with respect to origin. | def vehy(y5bX, hLRM=None):
y5bX = oyIN.array(y5bX)
return y5bX - (hLRM or oyIN.zeros_like(y5bX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T3Hd(M8d_, hLRM=None):\n M8d_ = oyIN.array(M8d_)\n return M8d_ + (hLRM or oyIN.zeros_like(M8d_))",
"def cxLU(LTIa):\n return XTiz.hstack(LTIa)",
"def S_18(YKHO, zq5a) -> oyIN.ndarray:\n oeNL = oyIN.empty((2 * len(zq5a), 2), dtype=oyIN.float32)\n oeNL[0::2, 0] = zq5a[:, 0]\n oeNL[1::2, 0] ... | [
"0.7279037",
"0.7181686",
"0.6480365",
"0.6461387",
"0.6377752",
"0.63240445",
"0.62984496",
"0.625294",
"0.6246376",
"0.6177244",
"0.6140478",
"0.6085727",
"0.6072549",
"0.6068359",
"0.6063862",
"0.59986955",
"0.59736574",
"0.5968835",
"0.5964173",
"0.59240794",
"0.5916746",... | 0.80408895 | 0 |
Convert points to vectors with respect to origin. | def T3Hd(M8d_, hLRM=None):
M8d_ = oyIN.array(M8d_)
return M8d_ + (hLRM or oyIN.zeros_like(M8d_)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vehy(y5bX, hLRM=None):\n y5bX = oyIN.array(y5bX)\n return y5bX - (hLRM or oyIN.zeros_like(y5bX))",
"def cxLU(LTIa):\n return XTiz.hstack(LTIa)",
"def S_18(YKHO, zq5a) -> oyIN.ndarray:\n oeNL = oyIN.empty((2 * len(zq5a), 2), dtype=oyIN.float32)\n oeNL[0::2, 0] = zq5a[:, 0]\n oeNL[1::2, 0] ... | [
"0.8040917",
"0.71816397",
"0.6480457",
"0.6461564",
"0.6377839",
"0.6323915",
"0.62984294",
"0.6253044",
"0.6246448",
"0.61773616",
"0.6140706",
"0.60856843",
"0.6072838",
"0.606839",
"0.6064175",
"0.599893",
"0.5973575",
"0.596885",
"0.5964229",
"0.59240353",
"0.5917052",
... | 0.72790813 | 1 |
Convert a float returned by time.time() to a Timestamp. | def yKI9(ITS7):
C6wh = int(ITS7)
vLI5 = int((ITS7 - C6wh) * 10 ** 9)
return IjEa.Timestamp(seconds=C6wh, nanos=vLI5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DtJj(E3oo):\n return E3oo.seconds + float(E3oo.nanos) / 10 ** 9",
"def Jj31(ppPa: datetime, PXGI: TimeUnit=r5MW.SECONDS) -> float:\n return ppPa.replace(tzinfo=rIAI.utc).timestamp() * 1000 ** int(PXGI)",
"def PynT(RCGI):\n G3uA = int(RCGI * 24 * 60 * 60 * 1000.0)\n return (qcWV.datetime.min + q... | [
"0.7091272",
"0.6970927",
"0.67656",
"0.6736811",
"0.6570321",
"0.64772624",
"0.6433413",
"0.63894194",
"0.6310766",
"0.62458706",
"0.6195516",
"0.61046326",
"0.6091296",
"0.6068229",
"0.60519564",
"0.60447913",
"0.60322297",
"0.5941902",
"0.59417284",
"0.5940961",
"0.5918196... | 0.6937482 | 2 |
Convert a Timestamp to a float expressed as seconds since the epoch. | def DtJj(E3oo):
return E3oo.seconds + float(E3oo.nanos) / 10 ** 9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jEKs(a1PO) -> float:\n return a1PO.astype(int) / 1000000000.0",
"def lnRi(a1PO, qtWj=None):\n if qtWj is None:\n qtWj = oyIN.datetime64(0, 's')\n return (a1PO - qtWj) / oyIN.timedelta64(1, 's')",
"def xPR_(i8WE: int) -> float:\n return float(i8WE) / 1000",
"def SWek(ppPa, qtWj=None):\n... | [
"0.76476985",
"0.70599985",
"0.6822996",
"0.6810652",
"0.6677402",
"0.6539019",
"0.65201676",
"0.64337784",
"0.63623315",
"0.63037324",
"0.62800807",
"0.6275198",
"0.62700856",
"0.6257447",
"0.62532806",
"0.6175159",
"0.61186975",
"0.61176866",
"0.6032098",
"0.60160214",
"0.6... | 0.7417649 | 1 |
Takes a text, normalizes, tokenizes, removes stop words, lemmatizes, and returns a list of tokens | def wr3U(l5Ny):
s2mk = dFss(l5Ny)
LkXt = GFnk()
zKDd = []
for eOtH in s2mk:
e6Ip = LkXt.lemmatize(eOtH).lower().strip()
zKDd.append(e6Ip)
return zKDd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(l5Ny):\n s2mk = dFss(l5Ny)\n vDyF = list(set(di0c.words('english')))\n s2mk = [eOtH for eOtH in s2mk if len(eOtH) > 2]\n s2mk = [eOtH for eOtH in s2mk if eOtH not in vDyF]\n LkXt = GFnk()\n zKDd = []\n for w2fL in s2mk:\n NM_J = LkXt.lemmatize(w2fL).lower().strip()\n zKD... | [
"0.8880861",
"0.88718086",
"0.8863741",
"0.8859053",
"0.8848089",
"0.8827691",
"0.8771861",
"0.8754438",
"0.87020147",
"0.86540705",
"0.86540705",
"0.8562643",
"0.8507187",
"0.8506917",
"0.84713215",
"0.84636164",
"0.8372892",
"0.8372756",
"0.82993954",
"0.82152784",
"0.82059... | 0.8868206 | 2 |
Find schema classes that directly inherit from the given class | def yAMw(YKHO):
geh0 = Ixx7(YKHO, tq_1.stack()[0][3])
if not geh0:
return geh0
afYC = YKHO.se.full_class_only_graph.successors(YKHO.uri)
Aofo = Ctfd(YKHO, afYC, tq_1.stack()[0][3], YKHO.output_type)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kxkk(YKHO):\n KndY = list(YKHO.extended_class_only_graph.nodes())\n KndY = [siC4(yaEe, YKHO) for yaEe in KndY]\n return KndY",
"def OBau(YKHO, Emd4):\n lMDY = []\n for YRbF in YKHO.classes:\n if YKHO.InheritsFrom(Emd4, YRbF):\n lMDY.append(YRbF)\n if lMDY:\n return ... | [
"0.67787",
"0.66347706",
"0.65711945",
"0.6385068",
"0.63349605",
"0.6257887",
"0.6248021",
"0.6212487",
"0.6212487",
"0.62122655",
"0.6191026",
"0.6182615",
"0.6179116",
"0.6169857",
"0.6151207",
"0.6149352",
"0.61170167",
"0.6081054",
"0.60337293",
"0.603095",
"0.6026763",
... | 0.5389973 | 73 |
return the unicode representation of obj | def psdK(YEnM, *qIxc):
try:
return QMSQ(YEnM, *qIxc)
except UnicodeDecodeError:
iJIb = str(YEnM).encode('string_escape')
return QMSQ(iJIb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P6bq(YEnM):\n return YEnM if isinstance(YEnM, QMSQ) else QMSQ(YEnM)",
"def P6bq(YEnM):\n return YEnM if isinstance(YEnM, str) else str(YEnM)",
"def xx_o(YKHO, YEnM):\n return QMSQ(YEnM)",
"def zX3X(YEnM):\n if HwRy.version_info.major < 3 and isinstance(YEnM, str):\n YEnM = YEnM.decode(... | [
"0.8202679",
"0.7991012",
"0.79736567",
"0.791281",
"0.78867394",
"0.780464",
"0.76903355",
"0.76376015",
"0.7569767",
"0.7512156",
"0.7512156",
"0.7431973",
"0.73928916",
"0.73723996",
"0.7335776",
"0.73016804",
"0.72937953",
"0.7242186",
"0.7237758",
"0.72199875",
"0.715162... | 0.743078 | 17 |
Opens a web page. | def open(YKHO, UTX6, NKcE='get', MOPg=None, Jpbe=None, TBsA=None, BsSz=None):
MOPg = MOPg or {}
TBsA = TBsA or a6gH()
try:
NKcE = getattr(Mdwl, '%sOperation' % NKcE.capitalize())
except AttributeError:
raise Exception('Invalid http method %s' % NKcE)
QePW = jyok(WUqv(UTX6))
QePW.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def open(bD7m):\n HywK.open(bD7m)",
"def oTNk(bD7m):\n HywK.open(bD7m)",
"def QM3s(YKHO):\n HywK.open(YKHO.url)",
"def r46S(bD7m):\n import webbrowser\n webbrowser.open_new(bD7m)",
"def Q5zY(bD7m):\n import webbrowser\n webbrowser.open('http://www.' + bD7m + '.com', 2)",
"def R90Q(mW... | [
"0.84771913",
"0.81717765",
"0.80043155",
"0.7960315",
"0.7793779",
"0.77153826",
"0.77102727",
"0.7638561",
"0.76185226",
"0.74696404",
"0.74527323",
"0.73409784",
"0.7335251",
"0.73170376",
"0.72998154",
"0.72779375",
"0.72426766",
"0.72322506",
"0.72171026",
"0.71737957",
... | 0.605095 | 84 |
Retrieve a list of vehicles | async def get(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FvBs(YKHO):\n fC1M.objects.create(user=YKHO.user, type='Ambulance', license_plate='AA-123-AA')\n fC1M.objects.create(user=YKHO.user, type='VSL', license_plate='BB-123-BB')\n Ylbp = YKHO.client.get(IXbq)\n wdIo = fC1M.objects.all()\n ZMzz = yqLh(wdIo, many=True)\n YKHO.assertEqual(Ylbp.status_... | [
"0.7543337",
"0.73812944",
"0.72395086",
"0.72003675",
"0.68838125",
"0.67902404",
"0.67018306",
"0.65143114",
"0.6300367",
"0.62233746",
"0.6179688",
"0.61151135",
"0.61150056",
"0.6110019",
"0.60510814",
"0.6020869",
"0.59907234",
"0.59765357",
"0.5972661",
"0.597257",
"0.5... | 0.0 | -1 |
Test checks is user is not able to register the same email twice and asserts if email validation message is received. | def L__7(YKHO):
Ozko = Gqqd.mainpage.MainPage(YKHO.driver)
Ozko.click_sign_in_button()
ptj3 = Gqqd.signinpage.SignInPage(YKHO.driver)
ptj3.enter_create_account_email_addres('test@test.test')
ptj3.click_create_account_button()
YKHO.assertTrue(ptj3.check_if_account_create_error_is_visible(), 'Emai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y_i8(YKHO):\n geh0 = YKHO.signup_a_user(YKHO.user_invalid_email)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertEqual(geh0.data['errors']['email'], ['Enter a valid email address.'])\n YKHO.assertNotIn('token', geh0.data)",
"def BNAB(YKHO):\n YKHO.signup_a_user(YKH... | [
"0.80271155",
"0.8017307",
"0.8006958",
"0.7909201",
"0.78807163",
"0.78034794",
"0.771716",
"0.7697668",
"0.76950425",
"0.766892",
"0.7658171",
"0.7621606",
"0.7616331",
"0.76113194",
"0.75984687",
"0.7574882",
"0.75368726",
"0.7535076",
"0.7523863",
"0.75028586",
"0.7467668... | 0.84831756 | 0 |
Test the generated values are stopping at the bottom of the range | def ewcr(iTVS):
with Po4F('random.randint', side_effect=lambda jzdc, Fg_i: -1):
doEt, XWbt = iTVS
for tO9_ in WhY1.islice(HSmc(doEt, XWbt), 0, 5):
pass
naF9 = LuKW.parse(tO9_).power
assert naF9 == doEt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _B0L():\n Oa1e = z5ZA.larger_random()\n assert 0 <= next(Oa1e) <= 1",
"def W7mA(YKHO):\n CK9p = [YKHO.indicator_record(date=qcWV.date(2000, 2, 1), value=0.13), YKHO.indicator_record(date=qcWV.date(2000, 3, 1), value=0.22)]\n hlel = YKHO.expander._ipca_from_15_expander(CK9p)\n aEqx = YKHO.indic... | [
"0.6774707",
"0.672971",
"0.65376085",
"0.64734113",
"0.64634174",
"0.6373937",
"0.63686466",
"0.6325752",
"0.62904257",
"0.619089",
"0.61635673",
"0.61374617",
"0.6096412",
"0.6086861",
"0.60331875",
"0.59954566",
"0.59430116",
"0.5938593",
"0.59290916",
"0.5925981",
"0.5909... | 0.648905 | 3 |
Resize a face image to the proper size for training and detection. | def Einh(LNo8):
return XC5k.resize(LNo8, (TtVx, j0c_), interpolation=XC5k.INTER_LANCZOS4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cjsw(LNo8: Image, RpU_):\n LVAh, WKvO, MKlR, yzQ0 = RpU_['box']\n lIqZ = LNo8[WKvO:WKvO + yzQ0, LVAh:LVAh + MKlR]\n vCIi = RpU_['keypoints']['left_eye']\n YWIO = RpU_['keypoints']['right_eye']\n u_JG = mIJV(lIqZ, vCIi, YWIO)\n u_JG = XC5k.resize(u_JG, (160, 160))\n return oyIN.expand_dims(... | [
"0.6494418",
"0.64226705",
"0.63477206",
"0.62940675",
"0.62889427",
"0.6211562",
"0.6189234",
"0.61869866",
"0.61501527",
"0.6126207",
"0.6117579",
"0.60776395",
"0.60661775",
"0.6044011",
"0.60382354",
"0.60379624",
"0.6021614",
"0.60077566",
"0.60058826",
"0.6003356",
"0.5... | 0.7539469 | 0 |
Instantiates the ResNeXt50 architecture. | def APBm(ao6X=True, _mSQ='imagenet', FRUf=None, GhuM=None, wDQ7=None, KndY=1000, aKNe=False, **B2fa):
def nr4F(WKvO):
WKvO = Xuzf(WKvO, 64, 3, stride1=1, groups=32, base_width=4, name='conv2')
if aKNe:
WKvO = wHgY(p=0.5, alpha=0.1, name='conv2_mixstyle')(WKvO)
WKvO = Xuzf(WKvO, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CzrQ(jTqs: int) -> U78l.Module:\n C3ST = FYrf.resnet50(pretrained=True)\n HhVR = C3ST.fc.in_features\n C3ST.fc = U78l.Linear(HhVR, jTqs)\n return C3ST",
"def HUdF(**B2fa):\n C3ST = eWLN(MF6R, [3, 4, 6, 3], **B2fa)\n return C3ST",
"def FIMM(YKHO):\n YKHO.device = ht2j.device('cuda') if ... | [
"0.6452079",
"0.6326047",
"0.62945724",
"0.61543065",
"0.61452574",
"0.60441744",
"0.6009424",
"0.5961785",
"0.5953016",
"0.5953016",
"0.5926561",
"0.5905063",
"0.5904158",
"0.5895198",
"0.5857563",
"0.58541715",
"0.58398294",
"0.5820878",
"0.5800037",
"0.5775248",
"0.5775248... | 0.5764962 | 23 |
Instantiates the ResNeXt101 architecture. | def ousX(ao6X=True, _mSQ='imagenet', FRUf=None, GhuM=None, wDQ7=None, KndY=1000, aKNe=False, **B2fa):
def nr4F(WKvO):
WKvO = Xuzf(WKvO, 64, 3, stride1=1, groups=32, base_width=8, name='conv2')
if aKNe:
WKvO = wHgY(p=0.5, alpha=0.1, name='conv2_mixstyle')(WKvO)
WKvO = Xuzf(WKvO, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.device = ht2j.device('cuda') if ht2j.cuda.is_available() else ht2j.device('cpu')\n YKHO.model = FYrf.resnet101()\n YKHO.model.load_state_dict(ht2j.load(NiGd))\n YKHO.model.to(YKHO.device)\n YKHO.model.eval()\n with open(pG1w, 'r') as eHNT:\n YKHO.labels = jZ4I.litera... | [
"0.650877",
"0.6452939",
"0.63198304",
"0.62908334",
"0.62391293",
"0.62391293",
"0.6136111",
"0.612876",
"0.612876",
"0.612876",
"0.612876",
"0.6125899",
"0.6113061",
"0.6103419",
"0.60791",
"0.6042972",
"0.6022252",
"0.5943431",
"0.5930061",
"0.5888006",
"0.58871007",
"0.... | 0.5813597 | 27 |
Overriding formatTime to add milliseconds parsing | def n2Ei(YKHO, AIu6, Bjmr=None):
lY0q = YKHO.converter(AIu6.created)
VPot = Bjmr or YKHO.default_time_format
KCHu = lY0q.strftime(VPot)
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ct8j(YKHO, nPrm):\n if YKHO.datetime_formatting == 'rfc-2822':\n return ct8j(nPrm)\n return nPrm.isoformat()",
"def gyYJ(YKHO):\n for C6wh, sGEu in [(0, '0:00:00'), (1, '0:00:01'), (1.337, '0:00:01.337'), (2.9, '0:00:02.900'), (123456.78901234, '1 day, 10:17:36.789')]:\n with YKHO.subT... | [
"0.6643678",
"0.6631879",
"0.65980744",
"0.65456975",
"0.64786726",
"0.64368325",
"0.64322895",
"0.64187175",
"0.6407697",
"0.6399003",
"0.6356267",
"0.63393575",
"0.6323309",
"0.62726957",
"0.62404954",
"0.6239472",
"0.6224243",
"0.6217381",
"0.61946875",
"0.61870706",
"0.61... | 0.6010655 | 36 |
Validate if a user is admin approver | def MEcc(YKHO, QePW):
if not DCgT.dataHelper.check_admin_approver(QePW.session['id']):
DCgT.logHelper.log_it_visit(QePW, __name__ + '.validate_approver', authorized=False)
raise wPvU('You cannot access this page!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jo_v(CBIr):\n return CBIr in PDtd",
"def MtA2(YKHO, YEnM):\n try:\n CBIr = YKHO.context.get('request').user\n except Exception:\n return False\n if CBIr == YEnM.admin:\n return True\n else:\n return False",
"def gmaE(QpfX):\n DbxN()\n Vt89 = QpfX.to_policy_v... | [
"0.7343811",
"0.7280713",
"0.72587657",
"0.7233173",
"0.7212742",
"0.7202139",
"0.72017366",
"0.72017366",
"0.716209",
"0.715174",
"0.7142367",
"0.7133783",
"0.7126629",
"0.7104559",
"0.705934",
"0.7050312",
"0.70352775",
"0.70339596",
"0.703263",
"0.7014971",
"0.7005256",
... | 0.7331095 | 1 |
Set the API key on the client. This is called by `mailgun.initialize()`. | def Dma5(YKHO, rJDA):
YKHO.api_key = rJDA
YKHO.session.auth = ('api', rJDA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def rJDA(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def TqtU(YKHO, rJDA):\n YKHO.request('/v1.1/auth_key', 'POST', body={'auth_key': rJDA})",
"def yElH(YKHO, rJDA):\n YKHO._analyzer.SetAPIKey(rJDA)",
... | [
"0.80788827",
"0.80788827",
"0.75358075",
"0.7387178",
"0.7364855",
"0.7167141",
"0.71619916",
"0.70561785",
"0.6943225",
"0.69115114",
"0.6748287",
"0.6632716",
"0.66156375",
"0.6595295",
"0.6583848",
"0.65817964",
"0.6568781",
"0.65456975",
"0.6542169",
"0.6521806",
"0.6473... | 0.7415496 | 3 |
Returns numpy 3L ndarray to represent the rgb image. | def cMYb():
j3Lh = oyIN.frombuffer(wOb_.read_frame().get_buffer_as_uint8(), dtype=oyIN.uint8).reshape(wSpr, qILF, 3)
d7Eb = XC5k.cvtColor(j3Lh, XC5k.COLOR_BGR2RGB)
return d7Eb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S3yE(LNo8, PJWX=False):\n H2v2, TVTK = LNo8.size\n ezWE = oyIN.array(LNo8.getdata())\n ezWE = ezWE.reshape(3, H2v2, TVTK)\n Mkmy = ezWE[0]\n Oa1e = ezWE[1]\n Fg_i = ezWE[2]\n return (Mkmy, Oa1e, Fg_i)",
"def Ft1z(LNo8: carla.Image) -> oyIN.ndarray:\n LNo8.convert(CRxp.ColorConverter.R... | [
"0.75838524",
"0.7516015",
"0.73026794",
"0.7285404",
"0.6906746",
"0.66959107",
"0.6663701",
"0.66299367",
"0.66216075",
"0.65953135",
"0.6589506",
"0.65549886",
"0.6515875",
"0.65000916",
"0.6467254",
"0.6461241",
"0.6444572",
"0.64122206",
"0.63171595",
"0.6316792",
"0.630... | 0.0 | -1 |
Transform from the sampling variable `z` to the constrained variable `Theta`. I.e., this is the function g s.t. Theta = g(z) This uses the sigmoid function | def SZFh(YKHO, epBp):
LVAh = m1Hg(epBp)
uF0K = YKHO.lower + LVAh * YKHO.range
return uF0K | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(WKvO, q7In):\n epBp = WKvO @ q7In\n MKlR = 1 / (1 + oyIN.exp(-epBp))\n return (MKlR, epBp)",
"def m1Hg(epBp):\n Oa1e = (1 + oyIN.exp(-epBp)) ** (-1)\n return Oa1e",
"def YDYE(epBp):\n return 1 / (1 + oyIN.exp(-epBp))",
"def m1Hg(epBp):\n Oa1e = 1 / (1 + oyIN.exp(-epBp))\n ret... | [
"0.65609765",
"0.64471066",
"0.64213264",
"0.6411414",
"0.6397644",
"0.6355635",
"0.63372713",
"0.6335278",
"0.63330626",
"0.63283205",
"0.63005805",
"0.62937176",
"0.6286193",
"0.628362",
"0.6280163",
"0.6272361",
"0.62667996",
"0.623872",
"0.6230573",
"0.62182564",
"0.62162... | 0.6669576 | 0 |
Returns the class of a known agent given its name. | def vNFQ(lfCk):
if lfCk == 'PPORND':
return fTff.PPORNDAgent
else:
return ZINc.get_agent_class(lfCk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xbW9(bgEq, MBUi):\n if not isinstance(MBUi, cFqH):\n raise nFNf(\"Unknown solving agent '\" + bgEq + \"'. Check config.context.solver.agent parameter.\")\n zgGa = MBUi.class_name\n if zgGa is None:\n raise sFzP(\"Solving agent '\" + bgEq + \"' context does not contain attribute 'class_na... | [
"0.7246576",
"0.68631124",
"0.67594624",
"0.62658536",
"0.5996586",
"0.5988717",
"0.59041923",
"0.58803797",
"0.57611984",
"0.5756276",
"0.5739658",
"0.5727094",
"0.5713569",
"0.5691428",
"0.56868",
"0.56513464",
"0.5610456",
"0.5580588",
"0.55570257",
"0.5547508",
"0.5517348... | 0.6848864 | 2 |
Test that a token is created for the user | def Ss3i(YKHO):
pB3N = {'email': 'test@test.com', 'password': 'testpass'}
lYUQ(**pB3N)
Ylbp = YKHO.client.post(pEkX, pB3N)
YKHO.assertIn('token', Ylbp.data)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Grn6(YKHO):\n EIMJ(**YKHO.mock_user)\n Ylbp = YKHO.client.post(pEkX, YKHO.mock_user)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.assertIn('token', Ylbp.data)",
"def Ss3i(YKHO):\n pB3N = {'email': 'test1@test1.ri', 'password': 'testPassWord', 'time_zone': 'Europe/Dublin'}\n ... | [
"0.8524954",
"0.8461728",
"0.84151304",
"0.8412818",
"0.8412537",
"0.8401617",
"0.825214",
"0.8243027",
"0.82033753",
"0.8139369",
"0.7937181",
"0.79370046",
"0.79301524",
"0.78969824",
"0.7844167",
"0.78259856",
"0.7804769",
"0.7752505",
"0.77294105",
"0.7720604",
"0.7707844... | 0.8460548 | 2 |
Test if token cannot be created for non existing user | def ktd4(YKHO):
pB3N = {'email': 'test@test.com', 'password': 'testpass'}
Ylbp = YKHO.client.post(pEkX, pB3N)
YKHO.assertNotIn('token', Ylbp.data)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i_2a(YKHO):\n Ylbp = YKHO.client.post(pEkX, YKHO.mock_user)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertNotIn('token', Ylbp.data)",
"def Icv8(YKHO):\n lYUQ(email='test@test1.com', password='testpass')\n pB3N = {'email': 'test@test2.com', 'password': 'wrong'}\n ... | [
"0.7681337",
"0.7662509",
"0.76268595",
"0.76023793",
"0.7488713",
"0.7454086",
"0.73918617",
"0.73558986",
"0.73449874",
"0.73345476",
"0.7280788",
"0.7273546",
"0.7269564",
"0.7238822",
"0.7208064",
"0.71697235",
"0.71632683",
"0.71516407",
"0.7148836",
"0.7099057",
"0.7077... | 0.7412932 | 6 |
unit vector of direction | def XSoh(YKHO):
len = YKHO.length()
if len == 0.0:
nHaT = oeNL.Pos(oyIN.transpose(oyIN.array([0, 0, 0])))
else:
nHaT = oeNL.Pos(oyIN.transpose(oyIN.array([(YKHO.end.x - YKHO.start.x) / len, (YKHO.end.y - YKHO.start.y) / len, (YKHO.end.z - YKHO.start.z) / len])))
return nHaT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXGI(XSoh):\n return lNLu(0, -1).rotate(XSoh)",
"def PXGI(YKHO):\n return lNLu(YKHO.x / YKHO.length(), YKHO.y / YKHO.length())",
"def siQz(YKHO):\n return lNLu.createFromPolar(1, YKHO.angle)",
"def PXGI():\n return DKJk(0, 1)",
"def j8U8(YKHO, iArr):\n return iArr / oyIN.linalg.norm(iArr... | [
"0.78144944",
"0.7513425",
"0.7506202",
"0.7472759",
"0.7374162",
"0.7308719",
"0.72919494",
"0.72745925",
"0.72745925",
"0.72745925",
"0.7254689",
"0.72480965",
"0.72426075",
"0.7224638",
"0.720472",
"0.7155619",
"0.7155619",
"0.7155619",
"0.7155619",
"0.7155619",
"0.7155619... | 0.81711584 | 0 |
Initializes statistics of the quantization configuration. | def FIMM(YKHO, nFo9: int, b6GC: int):
YKHO.quantized_edges_in_cfg = nFo9
YKHO.total_edges_in_cfg = b6GC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wIMl(YKHO):\n eQSh = super()._initialise_sufficient_statistics()\n eQSh['B'] = {'numer': [oyIN.zeros((YKHO.n_states, YKHO.n_features[YRbF])) for YRbF in range(YKHO.n_emissions)], 'denom': [oyIN.zeros((YKHO.n_states, YKHO.n_features[YRbF])) for YRbF in range(YKHO.n_emissions)]}\n return eQSh",
"def S... | [
"0.6642968",
"0.66331184",
"0.6396733",
"0.6393765",
"0.6314768",
"0.63113195",
"0.62071943",
"0.61641467",
"0.61519825",
"0.6052036",
"0.6037014",
"0.5988868",
"0.5968318",
"0.59603447",
"0.59549534",
"0.59546906",
"0.59225476",
"0.5905849",
"0.589714",
"0.5869006",
"0.58610... | 0.6265865 | 6 |
Open up the firefox browser with the changed settings | def Hswf():
E_qD = lr5D(Z5i_, WvqK)
E_qD.get(KXCI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gGib(YKHO):\n ytgA = cSpz.firefox.firefox_profile.FirefoxProfile('/Users/robertvesco/Library/Application Support/Firefox/Profiles/j2rjfnw0.default')\n ytgA.set_preference('pdfjs.disabled', True)\n E_qD = cSpz.Firefox(firefox_profile=ytgA)\n return E_qD",
"def QM3s(Ux0P):\n Yn3K.call(['firefox'... | [
"0.74291867",
"0.72324246",
"0.71067905",
"0.6956668",
"0.6875938",
"0.68615866",
"0.67650497",
"0.6663033",
"0.6617198",
"0.66035146",
"0.6580904",
"0.6445877",
"0.64290655",
"0.63920945",
"0.63766664",
"0.63761926",
"0.63313526",
"0.62975186",
"0.6294422",
"0.6277276",
"0.6... | 0.7570395 | 0 |
Take file path as string; return text as string. Takes a string that is a file path, opens the file, and turns the file's contents as one string of text. | def OcVp(qaEx):
return open(qaEx).read() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcVp(qaEx):\n OwN0 = open(qaEx)\n LFxn = OwN0.read()\n OwN0.close()\n return LFxn",
"def OcVp(qaEx):\n OwN0 = open(qaEx)\n SFw1 = OwN0.read()\n return SFw1",
"def cHUw(VqRE):\n assert JC7M(VqRE), 'filepath does not exist'\n with open(VqRE, 'r', encoding='utf-8') as eHNT:\n ... | [
"0.8070401",
"0.8048571",
"0.8014242",
"0.7991605",
"0.79222405",
"0.7865305",
"0.7799686",
"0.76798695",
"0.76596016",
"0.76136386",
"0.7608241",
"0.7570674",
"0.75405407",
"0.75296026",
"0.75042003",
"0.75040174",
"0.75001454",
"0.7413869",
"0.7371218",
"0.7360526",
"0.7329... | 0.70130706 | 31 |
Function that tests whether a number is prime or not Assumes that its argument is a nonnegative integer | def wjHP(WKvO):
if WKvO >= 2:
for LVAh in range(2, WKvO):
if not WKvO % LVAh:
return False
else:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n return T1qg(exwG)",
"def T1qg(FGW3: int):\n for d6pt in range(2, FGW3 // 2 + 1):\n if FGW3 % d6pt == 0:\n return False\n return True",
"def T1qg(FGW3):\n for YRbF in range(2, FGW3):\n if FGW3 % YRbF == 0:\n ... | [
"0.8543114",
"0.8507734",
"0.8405594",
"0.8382795",
"0.8357778",
"0.8349601",
"0.8342153",
"0.8262349",
"0.8258146",
"0.8256443",
"0.82424873",
"0.82318836",
"0.82282084",
"0.82180285",
"0.82093054",
"0.82070726",
"0.82053334",
"0.8179067",
"0.8172",
"0.81697625",
"0.81544566... | 0.8111767 | 26 |
Set the audio source to upload | def input(YKHO, JZXy) -> None:
if JZXy is YKHO._source:
return
YKHO._source = JZXy
if YKHO._socket is not None:
YKHO._output.input = JZXy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A__a(YKHO) -> None:\n YKHO.media.set_audio_output(YKHO.audio_output_source[0])",
"def D8Si(YKHO, D8Si):\n YKHO._audio = D8Si",
"def xUuB(YKHO, JZXy):\n YKHO.data['source'] = JZXy",
"def zZcM(YKHO, zZcM):\n YKHO._src = zZcM",
"def D8Si(YKHO, zZcM=None, **YSA3):\n if zZcM:\n YSA3['s... | [
"0.68669534",
"0.6784023",
"0.62514645",
"0.6168281",
"0.6150682",
"0.6064059",
"0.6001553",
"0.59715",
"0.59715",
"0.59715",
"0.59715",
"0.59715",
"0.59715",
"0.59715",
"0.59138143",
"0.5891897",
"0.58791924",
"0.56939435",
"0.56857973",
"0.5680518",
"0.5668107",
"0.564878... | 0.52000797 | 43 |
Converts the literal string to an array of characters. | def C4dM(YKHO, Q6kx: String) -> RIrr:
hGN5 = Q6kx.value
return RIrr(cQpX(tFgz(8), len(hGN5)), bytearray(hGN5.encode('utf8'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ni1I(KCHu):\n if type(KCHu) != bytes:\n raise ValueError('Input to to_char_array function should be in bytes')\n cWgI = []\n s2mk = KCHu.split(b' ')\n for eOtH in s2mk:\n cWgI.append(ord(' '))\n if am6Y(eOtH):\n cWgI.append(eOtH)\n continue\n if eOt... | [
"0.67918444",
"0.6001077",
"0.598543",
"0.598543",
"0.5908053",
"0.5823861",
"0.5783843",
"0.5777176",
"0.5741602",
"0.5741461",
"0.56955314",
"0.56822306",
"0.545586",
"0.5440234",
"0.5349828",
"0.5343308",
"0.5337624",
"0.53268456",
"0.532029",
"0.5317174",
"0.53049827",
... | 0.5279114 | 22 |
Method for Gaussian basis functions | def BOIw(YKHO, WKvO, YRbF):
KCHu = 0.1
return oyIN.exp(-(WKvO - YKHO.mu[YRbF]) ** 2 / (2 * KCHu)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IYu9(YKHO, WKvO: ndarray, yGTL: float, WTkW: float) -> gyIm:\n return 1 / (oyIN.sqrt(2 * oyIN.pi) * WTkW) * oyIN.exp(-oyIN.power((WKvO - yGTL) / WTkW, 2) / 2)",
"def IAWS(K5WD, WKvO):\n k0lF, Fg_i, yGTL, WTkW = K5WD\n return Fg_i + k0lF * oyIN.exp(-0.5 * (WKvO - yGTL) ** 2 / WTkW ** 2)",
"def NBpo... | [
"0.73245084",
"0.7167677",
"0.7090188",
"0.70637226",
"0.7007368",
"0.69903475",
"0.69168925",
"0.6890452",
"0.6867276",
"0.6831375",
"0.6825345",
"0.67868847",
"0.6692413",
"0.66898215",
"0.66419065",
"0.65925837",
"0.6532936",
"0.65328044",
"0.6511047",
"0.64904565",
"0.645... | 0.6436608 | 22 |
Set the value of the AWSAccessKeyId input for this Choreo. ((required, string) The Access Key ID provided by Amazon Web Services.) | def I8O8(YKHO, BWXx):
super(wy2T, YKHO)._set_input('AWSAccessKeyId', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8O8(YKHO, BWXx):\n super(B3mr, YKHO)._set_input('AWSAccessKeyId', BWXx)",
"def I8O8(YKHO, BWXx):\n super(pPpf, YKHO)._set_input('AWSAccessKeyId', BWXx)",
"def uGYF(YKHO, BWXx):\n super(B3mr, YKHO)._set_input('AWSSecretKeyId', BWXx)",
"def ZluZ(TiI2, xL6j, CGqc=None):\n if TiI2 is None:\n ... | [
"0.7104365",
"0.670574",
"0.54290736",
"0.4763764",
"0.46066543",
"0.45942682",
"0.4573278",
"0.44696304",
"0.42463297",
"0.41910797",
"0.4121396",
"0.41118574",
"0.41118246",
"0.41078496",
"0.40651414",
"0.39654788",
"0.3949998",
"0.3915381",
"0.38742703",
"0.38381338",
"0.3... | 0.7271952 | 0 |
Set the value of the AWSSecretKeyId input for this Choreo. ((required, string) The Secret Key ID provided by Amazon Web Services.) | def uGYF(YKHO, BWXx):
super(wy2T, YKHO)._set_input('AWSSecretKeyId', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uGYF(YKHO, BWXx):\n super(B3mr, YKHO)._set_input('AWSSecretKeyId', BWXx)",
"def uGYF(YKHO, BWXx):\n super(pPpf, YKHO)._set_input('AWSSecretKeyId', BWXx)",
"def xOeT(YKHO, xOeT):\n YKHO._vpc_id = xOeT",
"def I8O8(YKHO, BWXx):\n super(wy2T, YKHO)._set_input('AWSAccessKeyId', BWXx)",
"def I8O8... | [
"0.70653677",
"0.64680517",
"0.5467659",
"0.53357255",
"0.519113",
"0.48395202",
"0.48395202",
"0.48395202",
"0.48395202",
"0.48395202",
"0.48395202",
"0.47276294",
"0.46416038",
"0.46416038",
"0.46416038",
"0.46416038",
"0.46416038",
"0.46416038",
"0.46416038",
"0.46416038",
... | 0.7017521 | 1 |
Set the value of the Limit input for this Choreo. ((optional, integer) The maximum number of Evaluation to include in the result.) | def DPmE(YKHO, BWXx):
super(wy2T, YKHO)._set_input('Limit', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qoqK(YKHO, qoqK):\n YKHO._evaluated = False\n YKHO._limit = qoqK\n return YKHO",
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK",
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK",
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK",
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK",
"def qoqK(YKHO,... | [
"0.756601",
"0.739913",
"0.739913",
"0.739913",
"0.73868585",
"0.7291402",
"0.7285003",
"0.7284535",
"0.7276556",
"0.7187044",
"0.71773756",
"0.6794542",
"0.67642534",
"0.67469335",
"0.67231935",
"0.6551755",
"0.65457106",
"0.65314436",
"0.65156215",
"0.65032333",
"0.64907116... | 0.8321138 | 0 |
Post the comment if a user is authenticated or register a user and send a confirmation email. On signal django.contrib.comments.signals.comment_was_posted check if the user is authenticated or if settings.COMMENTS_PLUS_CONFIRM_EMAIL is False. In both cases will post the comment. Otherwise will send a confirmation email... | def fbgj(vC92, aM_I, pan_, gFsc, QePW, **B2fa):
if aM_I.user:
if QePW.user.is_authenticated() and QePW.user.is_active:
aM_I.is_public = True
aM_I.save()
k2eI(aM_I)
else:
EJEM(user_data=gFsc, comment=aM_I, target=pan_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u2rS(YKHO):\n Z9rn.user.email_validated = False\n Z9rn.user.confirmation_code = DGOD(6)\n Z9rn.user._commit()\n MTC8.confirmation_email(Z9rn.user)",
"def Rwp1(NcAh):\n pass",
"def ikMa(vC92, **B2fa):\n D3lj = B2fa['email_address']\n D3lj.user.userprofile.member.cast().confirm_email()",... | [
"0.62738943",
"0.6217694",
"0.60081863",
"0.5912046",
"0.5910667",
"0.58530176",
"0.58312094",
"0.5827509",
"0.5782223",
"0.5732543",
"0.57109827",
"0.5667533",
"0.56669414",
"0.55942637",
"0.5580668",
"0.556979",
"0.5556668",
"0.55385983",
"0.5519171",
"0.5481538",
"0.546203... | 0.7403591 | 0 |
Helper method to fetch standard authorization headers for HTTP calls | def mw5p(YKHO):
UEUp = {**YKHO.get_headers()}
UEUp['Authorization'] = 'Bearer ' + YKHO.get_access_token()
return UEUp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def miuk(YKHO):\n if YKHO.token_str:\n return {'Authorization': 'Bearer {}'.format(YKHO.token_str)}\n else:\n return {}",
"def F71I(YKHO):\n return ['Authorization']",
"def AGNy():\n zkAN = 'Basic'\n if QePW.headers.get('UseXBasic'):\n zkAN = 'XBasic'\n return {'WWW-Authe... | [
"0.7494799",
"0.7452784",
"0.72116005",
"0.7169295",
"0.709308",
"0.70923996",
"0.70923996",
"0.6992154",
"0.698419",
"0.6981654",
"0.6935693",
"0.6933057",
"0.6920291",
"0.68945146",
"0.6883424",
"0.68617594",
"0.6818815",
"0.68151796",
"0.67909646",
"0.67704535",
"0.6744233... | 0.7085436 | 7 |
Calculate the DamerauLevenshtein distance between sequences. This method has not been modified from the original. | def xbQw(wxdF, O48g):
oInn = None
zvgq = list(range(1, len(O48g) + 1)) + [0]
for WKvO in range(len(wxdF)):
h6_P, oInn, zvgq = (oInn, zvgq, [0] * len(O48g) + [WKvO + 1])
for LVAh in range(len(O48g)):
XTbL = oInn[LVAh] + 1
hgol = zvgq[LVAh - 1] + 1
O_2T = oI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UfmV(YKHO, wxdF, O48g):\n return Kunh.damerau_levenshtein_distance(str(wxdF), str(O48g))",
"def i8SG(j93S, Nqp_):\n BfDw.check_for_none(j93S, Nqp_)\n BfDw.check_for_type(str, j93S, Nqp_)\n MxXY, cWFu = (len(j93S), len(Nqp_))\n iZKH = MxXY + cWFu\n _Mvv = oRi_(int)\n TifC = [[0] * (cWFu +... | [
"0.77456445",
"0.7482568",
"0.72803795",
"0.70616484",
"0.70351017",
"0.7000577",
"0.6948406",
"0.6945717",
"0.693348",
"0.6927695",
"0.68048203",
"0.6769492",
"0.6605301",
"0.6601379",
"0.6566778",
"0.6550859",
"0.6518887",
"0.64883065",
"0.6478665",
"0.64404523",
"0.6418025... | 0.6774849 | 12 |
Gets a collection of `InputExample`s for the train set. | def rNg5(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def rNg5(YKHO):\n raise NotImplementedError()",
"def rNg5(YKHO, eZ_W):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX... | [
"0.73520875",
"0.71751475",
"0.7129197",
"0.65614134",
"0.64212877",
"0.6405135",
"0.63425314",
"0.62901545",
"0.62817335",
"0.6251415",
"0.62492913",
"0.6234461",
"0.6223327",
"0.6223327",
"0.6207626",
"0.6207626",
"0.6207626",
"0.6207626",
"0.6207626",
"0.6207626",
"0.62076... | 0.624856 | 19 |
Gets a collection of `InputExample`s for the dev set. | def JdXm(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdXm(YKHO, eZ_W):\n raise NotImplementedError()",
"def vGUt(YKHO, PU1l):\n return PU1l",
"def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)",
"def JdXm(YKHO):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):... | [
"0.68096465",
"0.6588737",
"0.65564847",
"0.6552217",
"0.64253366",
"0.63810265",
"0.62574667",
"0.6191878",
"0.6116491",
"0.6095453",
"0.6055614",
"0.60522205",
"0.5989836",
"0.5925129",
"0.5923725",
"0.5920712",
"0.59178066",
"0.5915606",
"0.5915606",
"0.5915606",
"0.591560... | 0.5994734 | 20 |
Initialise weights of the model. | def DVZr(r8hN):
if type(r8hN) == U78l.ConvTranspose2d or type(r8hN) == U78l.Conv2d:
U78l.init.normal_(r8hN.weight.data, 0.0, 0.02)
elif type(r8hN) == U78l.BatchNorm2d:
U78l.init.normal_(r8hN.weight.data, 1.0, 0.02)
U78l.init.constant_(r8hN.bias.data, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()",
"def vB93(C3ST):\n ...",
"def C0Lv(YKHO):\n pass",
"def sTi3(YKHO):\n dIoi.WeightsInitializer.initialize_layer_or_model(YKHO._batch)",
"def vJuA(YKHO):\n raise ... | [
"0.89567375",
"0.886887",
"0.8826689",
"0.8780918",
"0.86556786",
"0.8612574",
"0.8415544",
"0.83593154",
"0.83498186",
"0.8244973",
"0.82133013",
"0.81863946",
"0.81863946",
"0.81863946",
"0.8184066",
"0.8172649",
"0.81617653",
"0.8131936",
"0.810196",
"0.80817103",
"0.80725... | 0.7174033 | 100 |
Return a random CSP nonce. | def JTzA():
IE33 = uwaB.NONCE_LENGTH
return WR89.b64encode(Hy7s.urandom(IE33 * 2))[:IE33] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bEAa():\n return tuKI.randint(0, 4294967295)",
"def bEAa():\n return tuKI.randint(0, 4294967295)",
"def TX2G():\n QwXn = 16\n return WR89.b64encode(Hy7s.urandom(QwXn))",
"def kBBd():\n return kxTZ().hex",
"def zvbt():\n hash = HBct.sha1()\n hash.update(str(ITS7.time()).encode('utf-... | [
"0.8504862",
"0.8504862",
"0.8166305",
"0.7706056",
"0.76114184",
"0.7591807",
"0.7588979",
"0.7588979",
"0.7520779",
"0.7492774",
"0.73420286",
"0.7290476",
"0.71159905",
"0.708678",
"0.6812986",
"0.6789632",
"0.67217386",
"0.6657192",
"0.63802373",
"0.6274009",
"0.62509227"... | 0.8055352 | 3 |
Tests the fetch_flow_cell method of the backup API when no flow cell requested | def Fila(PAwy, yKrH, QHYw, KTnm):
KTnm.set_level(G9jH.INFO)
_BDL = _lAH(encryption_api=TMAJ.Mock(), encrypt_dir=TMAJ.Mock(), status=PAwy, tar_api=TMAJ.Mock(), pdc_api=TMAJ.Mock(), flow_cells_dir=TMAJ.Mock())
_BDL.get_first_flow_cell.return_value = None
_BDL.check_processing.return_value = True
hhbE ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wrcw(PAwy):\n _BDL = _lAH(encryption_api=TMAJ.Mock(), encrypt_dir=TMAJ.Mock(), status=PAwy, tar_api=TMAJ.Mock(), pdc_api=TMAJ.Mock(), flow_cells_dir=TMAJ.Mock())\n PAwy.get_flow_cells_by_statuses.return_value = []\n FYwc = _BDL.get_first_flow_cell()\n assert FYwc is None",
"def TWdR(PAwy, hhbE, z... | [
"0.76466525",
"0.7073562",
"0.70720565",
"0.68131894",
"0.6754199",
"0.6731079",
"0.58012086",
"0.5638415",
"0.5635327",
"0.55462366",
"0.5517047",
"0.54374236",
"0.5432456",
"0.5406341",
"0.5390496",
"0.5378049",
"0.5334612",
"0.5334612",
"0.5334612",
"0.53073645",
"0.530337... | 0.8076312 | 0 |
Tests the fetch_flow_cell method of the backup API when given a flow cell | def TWdR(PAwy, hhbE, znN0, QHYw, yKrH, evC4, VPuG, vRDL, DxFK, zv2G, KTnm):
KTnm.set_level(G9jH.INFO)
_BDL = _lAH(encryption_api=TMAJ.Mock(), encrypt_dir=zv2G.backup.encrypt_dir.dict(), status=PAwy, tar_api=znN0, pdc_api=TMAJ.Mock(), flow_cells_dir='cg_context.flow_cells_dir')
hhbE.status = FwFf.REQUESTED
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NRwG(PAwy, hhbE, znN0, QHYw, d8Bd, PPIe, tqwe, vRDL, DxFK, zv2G, KTnm):\n KTnm.set_level(G9jH.INFO)\n _BDL = _lAH(encryption_api=TMAJ.Mock(), encrypt_dir=zv2G.backup.encrypt_dir.dict(), status=PAwy, tar_api=znN0, pdc_api=TMAJ.Mock(), flow_cells_dir='cg_context.flow_cells_dir')\n hhbE.status = FwFf.REQ... | [
"0.7662352",
"0.7575681",
"0.7461114",
"0.6768999",
"0.6736528",
"0.62814814",
"0.5912851",
"0.52316755",
"0.51894015",
"0.51874906",
"0.5157359",
"0.5153549",
"0.51255226",
"0.5124505",
"0.5096331",
"0.50845057",
"0.5076995",
"0.50703084",
"0.50535536",
"0.5011814",
"0.49884... | 0.774101 | 0 |
Read in file as DataFrame. Manipulate data using Pandas commmands | def c4KQ(nUeQ='budget.csv'):
jQ3Z = rLdf.read_csv(nUeQ)
pvZU = jQ3Z['Groceries']
jQ3Z.drop(labels=['Groceries'], axis=1, inplace=True)
jQ3Z.insert(0, 'Groceries', pvZU)
jQ3Z = jQ3Z.sort_values('Groceries', ascending=False)
jQ3Z['Rent'] = 800.0
jQ3Z[:5] = 0.0
return oyIN.array(jQ3Z)
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(YKHO) -> rLdf.DataFrame:\n with open(YKHO.file_path, 'r') as nHI3:\n MOPg = nHI3.readline()\n MOPg = MOPg.replace('\\n', '')\n if ',' in MOPg:\n MOPg = MOPg.split(',')\n else:\n MOPg = MOPg.split()\n if MOPg == YKHO.NORMAL_HEADERS:\n return YK... | [
"0.7453123",
"0.7101015",
"0.70850056",
"0.69780535",
"0.69780535",
"0.69780535",
"0.6938775",
"0.69001156",
"0.6802459",
"0.6795595",
"0.67925733",
"0.6762523",
"0.675967",
"0.6753451",
"0.6749574",
"0.67226076",
"0.6711756",
"0.6665776",
"0.66152984",
"0.66023004",
"0.65930... | 0.0 | -1 |
Displays the afcp project homepage. | def zOaj(QePW):
mWFP = 'afcp'
E05K = FoKK.get_lang_prefix(QePW)
OQqf = {'page_name': mWFP}
OQqf.update(f2BH(QePW))
bp_0 = cFqH(OQqf)
TCZ_ = DWkG.get_template('%s/project/%s/%s.html' % (PSrQ.APP_NAME, E05K, mWFP))
return igJ6(TCZ_.render(bp_0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('index.html', title='Automation Center', year=qcWV.now().year, message='Welcome to the Automation Center')",
"def kZiy():\... | [
"0.73547196",
"0.7292402",
"0.7241089",
"0.7206792",
"0.71560013",
"0.71428573",
"0.7124738",
"0.71192884",
"0.71192884",
"0.71192884",
"0.71192884",
"0.71192884",
"0.71192884",
"0.71192884",
"0.71192884",
"0.71192884",
"0.71192884",
"0.7084635",
"0.70705605",
"0.7020103",
"0... | 0.66345954 | 54 |
Displays the carto project homepage. | def Cjpw(QePW):
mWFP = 'carto'
E05K = FoKK.get_lang_prefix(QePW)
OQqf = {'page_name': mWFP}
OQqf.update(f2BH(QePW))
bp_0 = cFqH(OQqf)
TCZ_ = DWkG.get_template('%s/project/%s/%s.html' % (PSrQ.APP_NAME, E05K, mWFP))
return igJ6(TCZ_.render(bp_0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('home.html', title='Home Page', yea... | [
"0.7456514",
"0.72809756",
"0.72546417",
"0.7211395",
"0.7207757",
"0.7207757",
"0.7207757",
"0.7207757",
"0.7207757",
"0.7207757",
"0.7207757",
"0.7207757",
"0.7207757",
"0.7207757",
"0.71818304",
"0.71732986",
"0.71289843",
"0.71273565",
"0.7115241",
"0.7065476",
"0.7057485... | 0.68062073 | 40 |
Displays the mobicours project homepage. | def eJr6(QePW):
mWFP = 'mobicours'
E05K = FoKK.get_lang_prefix(QePW)
OQqf = {'page_name': mWFP}
OQqf.update(f2BH(QePW))
bp_0 = cFqH(OQqf)
TCZ_ = DWkG.get_template('%s/project/%s/%s.html' % (PSrQ.APP_NAME, E05K, mWFP))
return igJ6(TCZ_.render(bp_0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def kZiy():\n return TvZl('index.html', title='Automation Center', year=qcWV.now().year, message='Welcome to the Automation Center')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\... | [
"0.76724184",
"0.7487635",
"0.7431997",
"0.7401969",
"0.73670435",
"0.73378855",
"0.73378855",
"0.73378855",
"0.73378855",
"0.73378855",
"0.73378855",
"0.73378855",
"0.73378855",
"0.73378855",
"0.73378855",
"0.7327832",
"0.7307156",
"0.72886926",
"0.72686934",
"0.72603357",
"... | 0.0 | -1 |
Displays the html5 project homepage. | def EnJT(QePW):
mWFP = 'html5'
E05K = FoKK.get_lang_prefix(QePW)
OQqf = {'page_name': mWFP}
OQqf.update(f2BH(QePW))
bp_0 = cFqH(OQqf)
TCZ_ = DWkG.get_template('%s/project/%s/%s.html' % (PSrQ.APP_NAME, E05K, mWFP))
return igJ6(TCZ_.render(bp_0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('index.html', title='Home Page', ye... | [
"0.7686121",
"0.758568",
"0.7541412",
"0.74641067",
"0.74641067",
"0.74641067",
"0.74641067",
"0.74641067",
"0.74641067",
"0.74641067",
"0.74641067",
"0.74641067",
"0.74641067",
"0.74443954",
"0.743427",
"0.7423564",
"0.739023",
"0.7385348",
"0.738128",
"0.738128",
"0.7347604... | 0.69504786 | 90 |
Checks if the edge leads to the node. | def O53q(YKHO, Fg_i):
return Fg_i == YKHO.__node_b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qGGi(YKHO, XSoh):\n return YKHO.position <= 0 and XSoh.is_left() or (YKHO.position >= YKHO.scene.step_count - 1 and XSoh.is_right())",
"def PFTO(YKHO, Q6kx: MazeCell) -> bool:\n return Q6kx.x == 0 or Q6kx.x == YKHO._ncols - 1 or Q6kx.y == 0 or (Q6kx.y == YKHO._nrows - 1)",
"def IWu0(YKHO, kwf7):\n ... | [
"0.69692284",
"0.68357277",
"0.676105",
"0.66595846",
"0.6445428",
"0.6410767",
"0.64092326",
"0.63676697",
"0.63467574",
"0.6338903",
"0.6296717",
"0.6281144",
"0.6240963",
"0.62401104",
"0.62319493",
"0.62224686",
"0.62109953",
"0.61909854",
"0.61685145",
"0.6162262",
"0.61... | 0.0 | -1 |
Check if the edge contains a node. | def sjXf(YKHO, Q6kx):
return Q6kx == YKHO.__node_a or Q6kx == YKHO.__node_b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ierk(YKHO, Q6kx: str) -> bool:\n return YKHO.graph.has_node(Q6kx)",
"def Ierk(YKHO, mWFP):\n return YKHO.source_net.has_node(mWFP)",
"def IWu0(YKHO, kwf7):\n return kwf7 in YKHO.edges",
"def Ierk(YKHO, exwG):\n return exwG in YKHO.node_dict",
"def IWu0(YKHO, XEGX: str, w5L3: str, qfLK: Opti... | [
"0.76269287",
"0.73338515",
"0.7294742",
"0.72421235",
"0.71129614",
"0.7080761",
"0.7057409",
"0.70362866",
"0.6960561",
"0.6941918",
"0.69306356",
"0.6921623",
"0.6885248",
"0.6869267",
"0.68475395",
"0.6813294",
"0.6790347",
"0.6731187",
"0.6577797",
"0.6577797",
"0.656231... | 0.6212116 | 39 |
Return the trainer class type for this model. | def CErl(YKHO):
return YKHO._trainer | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZvYj(YKHO):\n return YKHO.meta_model.get_class()",
"def DMw4(YKHO):\n return YKHO._model_type",
"def type(YKHO):\n return YKHO.__class__.__name__",
"def type(Emd4):\n return Emd4.__name__",
"def ZvYj(YKHO):\n return YfpN.get_class(YKHO.type)",
"def type(YKHO) -> eBH2[SC_2]:\n return... | [
"0.6418248",
"0.6410044",
"0.6344989",
"0.6324669",
"0.63029313",
"0.6264835",
"0.624946",
"0.6234999",
"0.6231836",
"0.6225505",
"0.6211312",
"0.6211312",
"0.6205268",
"0.6205268",
"0.6205268",
"0.6201543",
"0.6188644",
"0.61699045",
"0.616401",
"0.6120787",
"0.6120787",
"... | 0.61909777 | 16 |
Return the loader class type for this model. | def DWkG(YKHO):
return YKHO._loader | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DWkG(YKHO):\n return YKHO.loader_class()",
"def NIay(YKHO):\n return YKHO._get_attribute('loadType')",
"def DWkG(YKHO):\n return YKHO._loader",
"def DWkG(YKHO):\n if 'loader' in YKHO.recipe:\n return YKHO.recipe['loader']\n else:\n raise ValueError('No loader defined!')",
"... | [
"0.8152848",
"0.7598738",
"0.67873484",
"0.66609",
"0.6565252",
"0.6484381",
"0.64656454",
"0.6376899",
"0.63160294",
"0.6273909",
"0.6265965",
"0.62523335",
"0.62523335",
"0.6249389",
"0.6244096",
"0.62047994",
"0.61918443",
"0.6180449",
"0.61538845",
"0.6143384",
"0.6136849... | 0.6573153 | 4 |
Only courses from the student are included. | def Qi4S(YKHO):
CBIr = YKHO.make_user()
h21A = Vyt8(grade_level__school_year__school=CBIr.school)
GQfX = W10k(grade_levels=[h21A.grade_level])
FjAN = hfVP(score=50, student=h21A.student, graded_work__course_task__course=GQfX)
ijum = hfVP(score=100, student=h21A.student, graded_work__course_task__cou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m_7d(Emd4, CBIr):\n bW1T = uagI.objects.filter(user=CBIr)\n Ybnl = bW1T.filter(type=3)\n CGJY = []\n for mS46 in Ybnl:\n if mS46.course.pk not in CGJY:\n CGJY.append(mS46.course.pk)\n return CGJY",
"def rOGy(YKHO):\n return CQpO.objects.all().exclude(id__in=YKHO.overrides.... | [
"0.6618804",
"0.64641005",
"0.6445853",
"0.6318329",
"0.6195899",
"0.6100687",
"0.60383",
"0.60066366",
"0.6003645",
"0.59513146",
"0.5943377",
"0.58665353",
"0.5839517",
"0.582441",
"0.5807285",
"0.5800824",
"0.57874686",
"0.5779561",
"0.57418174",
"0.5741107",
"0.57199305",... | 0.6853221 | 0 |
Saves all price data associated with the given symbol as a .csv file in the directory given by The .csv file shares the same name as the symbol, and if a file already exists with that name it will be overwritten | def xkzz(o61b: str, yKcO: dt.datetime, Os4s: dt.datetime, DN9V: Listener, dir: str) -> None:
jQ3Z = yLtf(o61b, yKcO, Os4s)
if jQ3Z is None:
tO9_ = LuKW()
tO9_.add_line('*****************************')
tO9_.add_line(f'KeyError fetching data for {o61b}')
tO9_.add_line('************... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G4Yb(YKHO):\n import csv\n LtY3 = open(f'Cache/{YKHO.symbol}.csv', 'w', newline='')\n WJI9 = csv.writer(LtY3, delimiter=',')\n WJI9.writerow([YKHO.symbol, YKHO.name, YKHO.market])\n WJI9.writerow(['Latest P/E Ratio:', YKHO.pe_ratio])\n WJI9.writerow(['Short Percent of Float:', YKHO.short_perc... | [
"0.6868613",
"0.6845032",
"0.6563909",
"0.65624005",
"0.6550674",
"0.6550674",
"0.6550674",
"0.6447093",
"0.6433437",
"0.6433437",
"0.6414533",
"0.6366519",
"0.63639814",
"0.6275334",
"0.6261317",
"0.62274325",
"0.6213075",
"0.616469",
"0.61559045",
"0.6151497",
"0.6122395",
... | 0.7300796 | 0 |
Sets the transactionType of this ReqMargin. | def R8_m(YKHO, R8_m):
BbPm = ['BUY', 'SELL']
if YKHO.local_vars_configuration.client_side_validation and R8_m not in BbPm:
raise ValueError('Invalid value for `transactionType` ({0}), must be one of {1}'.format(R8_m, BbPm))
YKHO._transactionType = R8_m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHmA(YKHO, fHmA):\n YKHO._marginType = fHmA",
"def xcsj(YKHO, xcsj):\n if xcsj is None:\n raise ValueError('Invalid value for `transaction_type`, must not be `None`')\n YKHO._transaction_type = xcsj",
"def bUCE(YKHO, bUCE):\n YKHO._payment_type = bUCE",
"def type(YKHO, type):\n BbPm... | [
"0.75225896",
"0.7104439",
"0.5953585",
"0.5618892",
"0.5603344",
"0.55622107",
"0.554837",
"0.548764",
"0.548764",
"0.548764",
"0.548764",
"0.5483106",
"0.5474244",
"0.547192",
"0.547192",
"0.5471074",
"0.5428332",
"0.5389023",
"0.53565896",
"0.5346712",
"0.5304005",
"0.53... | 0.70203733 | 2 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, eJsj):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, eJsj):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.84560555",
"0.83913696",
"0.8143685",
"0.81403786",
"0.8131871",
"0.8093231",
"0.80915105",
"0.80915105",
"0.80915105",
"0.8084564",
"0.8084564",
"0.8075547",
"0.8075547",
"0.8065006",
"0.80417657",
"0.80417657",
"0.80417657",
"0.80417657",
"0.80417657",
"0.80417657",
"0.8... | 0.0 | -1 |
Create and save a User with the given email and password. | def xWi2(YKHO, D3lj, jTXt, **wdCM):
if not D3lj:
raise ValueError('The given email must be set')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save(using=YKHO._db)\n return CBIr",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n ... | [
"0.85445017",
"0.8511888",
"0.850827",
"0.85025996",
"0.8502548",
"0.84896004",
"0.84896004",
"0.84888655",
"0.84888655",
"0.84888655",
"0.8486028",
"0.84772795",
"0.84767693",
"0.84570897",
"0.84570897",
"0.84570897",
"0.84544164",
"0.84484667",
"0.8445246",
"0.84436035",
"0... | 0.8475504 | 16 |
Check to see if the given table exists. | def n2Bh(YKHO, _M9w, k9X4):
if not hasattr(YKHO, 'existing_table_names'):
YKHO.cursor.execute("SELECT schemaname, tablename FROM pg_tables WHERE schemaname NOT LIKE 'pg_%';")
YKHO.existing_table_names = set()
for uPxI, tyNF in YKHO.cursor:
YKHO.existing_table_names.add((uPxI.lowe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H3yv(YKHO, tyNF):\n YKHO.__open()\n xDcj = \"SHOW TABLES LIKE '{}'\".format(tyNF)\n YKHO.__cursor.execute(xDcj)\n Aofo = YKHO.__cursor.fetchall()\n YKHO.__close()\n if Aofo:\n return True\n else:\n return False",
"def PJaC(jyYI, GTA_):\n return jyYI.execute(\"SELECT COUN... | [
"0.8648239",
"0.8514944",
"0.848032",
"0.84725845",
"0.84555036",
"0.8402358",
"0.83563274",
"0.8289422",
"0.828628",
"0.8276604",
"0.8270114",
"0.8241215",
"0.82020384",
"0.81609267",
"0.8132133",
"0.8117493",
"0.809274",
"0.8090508",
"0.8075683",
"0.8066388",
"0.8044391",
... | 0.7831848 | 30 |
Calculates the option price. | def qNIk(UR4u, nMvt, Mkmy, Kt_s, E3D9, MTKo):
if UR4u.shape[0] == 0:
return 0
if MTKo == 'Call':
hI0L = oyIN.mean(UR4u[:, -1] - nMvt) * oyIN.exp(-1 * Mkmy * Kt_s) * (UR4u.shape[0] / E3D9)
elif MTKo == 'Put':
hI0L = oyIN.mean(nMvt - UR4u[:, -1]) * oyIN.exp(-1 * Mkmy * Kt_s) * (UR4u.sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GvK6(YKHO):\n if YKHO.option_type == 'European call':\n aCJd = gmT3(YKHO.S0, YKHO.K, YKHO.T_scaled, YKHO.vola, YKHO.div_yield, r=YKHO.rf)\n elif YKHO.option_type == 'European put':\n aCJd = CUj1(YKHO.S0, YKHO.K, YKHO.T_scaled, YKHO.vola, YKHO.div_yield, r=YKHO.rf)\n elif YKHO.option_type... | [
"0.76367223",
"0.7147284",
"0.70083195",
"0.6921717",
"0.68525887",
"0.666896",
"0.6623128",
"0.65680563",
"0.65300274",
"0.65231174",
"0.65183604",
"0.65183604",
"0.65183604",
"0.6512061",
"0.6497633",
"0.6484666",
"0.64641064",
"0.64586693",
"0.63557273",
"0.63533294",
"0.6... | 0.63528895 | 20 |
makeminchart() makes the '2D array' for the minimization algorithm. Such as Array[states][states], filling at first with blanks or '.' then distinguishing final states. This function also creates a list of dictionaries for transitions at each state. | def O55D(SUWE, QkFL, gZgb, Sk5I):
m3Fx = []
u4yt = {}
for QTBn in range(SUWE):
YRbF = 0
MKtq.write('MIN: ')
while YRbF < len(gZgb):
MKtq.write(f'At {QTBn} reading {gZgb[YRbF]} -> {Sk5I[QTBn][YRbF]} ')
u4yt[gZgb[YRbF]] = Sk5I[QTBn][YRbF]
YRbF = YRb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DN6m(YKHO):\n HwGj = 2\n YKHO.transition_lists = {}\n for WKvO in range(YKHO.pond_size[0]):\n for LVAh in range(YKHO.pond_size[1]):\n DghZ = (WKvO, LVAh)\n vyiP = []\n for YRbF in range(4):\n YXbZ = int(YKHO.currents[LVAh][WKvO][YRbF])\n ... | [
"0.6132602",
"0.5847541",
"0.56529236",
"0.5524049",
"0.5510777",
"0.5477011",
"0.54291475",
"0.5412938",
"0.5335768",
"0.52950364",
"0.5279695",
"0.5173663",
"0.5122238",
"0.5120422",
"0.50890434",
"0.50758535",
"0.50477564",
"0.49832642",
"0.49818787",
"0.49799865",
"0.4978... | 0.7292627 | 0 |
Justifies floats based on longest string in column | def Zmkh(iVRZ):
jb01 = ['{:,.3f}'.format(Ty9i) for Ty9i in iVRZ]
ukmA = len(max(jb01, key=len))
IYiI = [KCHu.rjust(ukmA) for KCHu in jb01]
return (IYiI, ukmA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XXxf(WKvO):\n return '{0:f}'.format(WKvO).rstrip('0').rstrip('.')",
"def sI3h(WKvO):\n if 1.0 > abs(WKvO) > 0.0:\n ESjr = RKD7(abs(WKvO)) / RKD7(10)\n Csk6 = -int(pBSp(ESjr))\n return '%%.%df' % Csk6\n else:\n return '%.f'",
"def Fmu6(WKvO):\n return ('%f' % WKvO).rs... | [
"0.6024202",
"0.59804237",
"0.5939797",
"0.5933137",
"0.58739984",
"0.5782951",
"0.5719135",
"0.5675223",
"0.564872",
"0.56321424",
"0.5623431",
"0.56086934",
"0.55577564",
"0.5549747",
"0.5541105",
"0.5537039",
"0.5536534",
"0.5513489",
"0.5504557",
"0.54822385",
"0.54811215... | 0.72303987 | 0 |
Accumulate gradients over multiple steps. This enables training with larger effective batch sizes. Note that currently, gradient accumulation is not supported when the `model_state` is in used, e.g., for models that have batch normalization and store batch statistics in the `model_state`. | def HEnx(CvLQ: Callable[[TrainState, Dict[str, jnp.ndarray], jnp.ndarray], Tuple[Any, jnp.ndarray]], f5__: Callable[[jnp.ndarray, Dict[str, jnp.ndarray]], Dict[str, Tuple[float, int]]], nWOI: TrainState, Wc9F: Dict[str, jnp.ndarray], B7zt: jnp.ndarray, ZYjO: Optional[int]) -> AzJI[h8nf[oLG2.ndarray], cuzp[str, AzJI[flo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EQ0f(cuiw, C3ST, PJWX=True):\n SWox = ITS7.time()\n S7dm = 0\n QTBn = []\n for G1Hx in range(C3ST.gpu_num):\n QTBn.append(cuiw.run(C3ST.initial_state(G1Hx)))\n AdHn = {'ms_update': C3ST.dynamic_eval.accu_global_ms()}\n for G1Hx in range(C3ST.gpu_num):\n AdHn['final_state%d' % G1... | [
"0.6805614",
"0.6690428",
"0.6686358",
"0.6651639",
"0.6534115",
"0.64493334",
"0.63416004",
"0.6261245",
"0.622897",
"0.6204802",
"0.61994636",
"0.6156619",
"0.6136418",
"0.6132453",
"0.6130482",
"0.61278564",
"0.6110918",
"0.61008257",
"0.6080869",
"0.6072765",
"0.6060173",... | 0.68060184 | 0 |
Restores the last checkpoint. First restores the checkpoint, which is an instance of TrainState that holds the state of training. | def fFVS(V1C0: str, nWOI: Optional[TrainState]=None, D4pn: bool=False, YPaw: Optional[int]=None) -> AzJI[Ww0O, int]:
if D4pn:
i3RS = Hy7s.path.join(V1C0, 'checkpoint_*')
if not qJi5.glob(i3RS):
raise ValueError(f'No checkpoint for the pretrained model is found in: {V1C0}')
if nWOI is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BzYT(YKHO, sRHT):\n YKHO.load_state_dict(sRHT['model'])\n YKHO.optimizer.load_state_dict(sRHT['optimizer'])\n YKHO.lr_scheduler.load_state_dict(sRHT['lr_scheduler'])\n K33I = sRHT['iteration'] + 1\n if YKHO.config['verbose']:\n print(f'Restored checkpoint to iteration {K33I}.')\n if sR... | [
"0.81033087",
"0.78220725",
"0.76829267",
"0.76361626",
"0.7611152",
"0.76100844",
"0.7569638",
"0.7482326",
"0.73689926",
"0.7360784",
"0.7315668",
"0.7083321",
"0.70796275",
"0.7054261",
"0.69793594",
"0.69614524",
"0.6887874",
"0.68296915",
"0.68205667",
"0.6816287",
"0.67... | 0.6499909 | 38 |
Format time in hours/minutes/seconds. | def wzvW(KCHu):
if KCHu < 60:
return f'{KCHu:.0f}s'
r8hN, KCHu = divmod(KCHu, 60)
if r8hN < 60:
return f'{r8hN:.0f}m{KCHu:.0f}s'
MKlR, r8hN = divmod(r8hN, 60)
return f'{MKlR:.0f}h{r8hN:.0f}m' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ct8j(YKHO, ITS7):\n Wave = ITS7 // 3600\n ITS7 = ITS7 - Wave * 3600\n O66n = ITS7 // 60\n C6wh = ITS7 - O66n * 60\n return '%d:%d:%d' % (Wave, O66n, C6wh)",
"def ct8j(YKHO, ITS7):\n TKQ0 = ITS7[0:2]\n cpvk = ITS7[2:4]\n KG9w = ITS7[4:]\n return '%s:%s:%s UTC' % (TKQ0, cpvk, KG9w)",... | [
"0.876349",
"0.8126339",
"0.79132056",
"0.78442883",
"0.77146816",
"0.756667",
"0.7464062",
"0.74592304",
"0.7392785",
"0.7376773",
"0.7369484",
"0.73565865",
"0.7240116",
"0.72350097",
"0.71383935",
"0.70422465",
"0.7031393",
"0.69354814",
"0.6918944",
"0.6906704",
"0.688844... | 0.0 | -1 |
Returns the total duration for all the entries | def EdTY(YKHO):
WbTE = 0
for bTKY in YKHO.entries:
WbTE += bTKY.get_duration()
return WbTE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ONFB(YKHO):\n RcXH = [CcuX.duration for CcuX in j2k1.objects.filter(series=YKHO)]\n return Pusg(lambda WKvO, LVAh: WKvO + LVAh, RcXH) if len(RcXH) > 0 else 0",
"def V34a(YKHO):\n if YKHO.events == None:\n raise Exception('event detector has not been called for a timeseries')\n return sum([... | [
"0.72145844",
"0.7010849",
"0.7010789",
"0.6947392",
"0.6824434",
"0.67319953",
"0.67004997",
"0.66870165",
"0.6670582",
"0.6647913",
"0.65663767",
"0.6557122",
"0.64768034",
"0.6474971",
"0.6450206",
"0.64241695",
"0.6405245",
"0.6379713",
"0.6379713",
"0.6364159",
"0.634288... | 0.8360089 | 0 |
Give an Integer 'n'. Check if 'n' is Prime or Not | def _f0Y(exwG: int) -> bool:
if exwG == 1:
return False
if exwG == 2 or exwG == 3:
return True
if exwG % 2 == 0 or exwG % 3 == 0:
return False
YRbF = 5
while YRbF * YRbF <= exwG:
if exwG % YRbF == 0 or exwG % (YRbF + 2) == 0:
return False
YRbF = YR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n return T1qg(exwG)",
"def _f0Y(exwG: int):\n if exwG <= 1:\n return False\n for YRbF in range(2, exwG - 1):\n if exwG % YRbF == 0:\n return False\n return True",
"def JVAb(Emd4, exwG):\n if exwG <= 1:\n ... | [
"0.8198642",
"0.8160744",
"0.8103518",
"0.8041924",
"0.78751063",
"0.7871441",
"0.78625196",
"0.7845565",
"0.78305626",
"0.7800497",
"0.77827823",
"0.7775146",
"0.7771268",
"0.7759929",
"0.7758009",
"0.7752976",
"0.7749522",
"0.7719067",
"0.7717313",
"0.771148",
"0.77031744",... | 0.78346676 | 8 |
Returns the reversed string | def gxEw(KCHu):
I1mm = 0
exwG = len(KCHu)
for YRbF in range(len(KCHu)):
if KCHu[YRbF] != KCHu[exwG - YRbF - 1]:
I1mm = 1
return -1
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GoVQ(vb0a):\n return vb0a[::-1]",
"def bqhP(l5Ny):\n return l5Ny[::-1]",
"def XzD1(l5Ny):\n Ze94 = l5Ny[::-1]\n return Ze94",
"def gxEw(vIwR):\n return vIwR[::-1]",
"def GoVQ(str):\n return str[::-1]",
"def gxEw(KCHu):\n return KCHu[::-1]",
"def GoVQ(KCHu):\n KCHu.reverse()"... | [
"0.82443935",
"0.82277477",
"0.8134193",
"0.8049377",
"0.801654",
"0.79969287",
"0.79390687",
"0.78791577",
"0.787183",
"0.7842969",
"0.78013134",
"0.7770631",
"0.75758153",
"0.7565447",
"0.74938715",
"0.7485335",
"0.7466111",
"0.7460988",
"0.74085873",
"0.7343565",
"0.732857... | 0.0 | -1 |
Return True if the given cell forms a corridor, False otherwise. | def RmPB(VmPb: Cell) -> bool:
VwFg = list(VmPb.open_walls)
return len(VwFg) == 2 and VwFg[0].opposite == VwFg[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZhR(YKHO, Z9rn, Csk6):\n if Z9rn[0] == YKHO.nrows - 1 and Csk6 == SNOE or (Z9rn[1] == YKHO.ncols - 1 and Csk6 == iGhJ) or (Z9rn[0] == 0 and Csk6 == jENy) or (Z9rn[1] == 0 and Csk6 == vsJu):\n return False\n else:\n return True",
"def dkNH(YKHO):\n return YKHO.container['is_rectangular... | [
"0.6540174",
"0.6449871",
"0.6325526",
"0.63020104",
"0.6153835",
"0.6135756",
"0.6113616",
"0.6099736",
"0.6017621",
"0.6005863",
"0.5941391",
"0.5921235",
"0.58877885",
"0.58568686",
"0.58559203",
"0.57904273",
"0.5782265",
"0.5774573",
"0.5773795",
"0.5713921",
"0.5700616"... | 0.8533116 | 0 |
Return True if the given cell is part of the solution to the maze, False otherwise. | def J4_B(YKHO, VmPb: Cell) -> bool:
while VmPb in YKHO.prev_cells:
VmPb = YKHO.prev_cells[VmPb]
return VmPb == YKHO.maze.start_cell | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yprr(YKHO, Cs6h: list):\n for YRbF in range(9):\n if 0 in Cs6h[YRbF]:\n return False\n for r845 in range(9):\n if not YKHO.validate_cell(Cs6h, YRbF, r845):\n return False\n return True",
"def m4cx(Cs6h):\n if gfID(Cs6h):\n return True\n fo... | [
"0.70650506",
"0.69313353",
"0.69147974",
"0.69142085",
"0.6822784",
"0.6812688",
"0.6770937",
"0.6710431",
"0.66348237",
"0.66229784",
"0.66122484",
"0.65948856",
"0.6540202",
"0.6512552",
"0.6508893",
"0.65019876",
"0.6492557",
"0.64876837",
"0.6477174",
"0.6466677",
"0.646... | 0.83473915 | 0 |
Verifiy that the values entered into the two password fields match. Note that an error here will end up in ``non_field_errors()`` because it doesn't apply to a single field. | def S2Jn(YKHO):
if 'password1' in YKHO.cleaned_data and 'password2' in YKHO.cleaned_data:
if YKHO.cleaned_data['password1'] != YKHO.cleaned_data['password2']:
raise H6V6.ValidationError(bGrB("The two password fields didn't match."))
return YKHO.cleaned_data['password1'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BhJx(YKHO):\n GUUE = YKHO.cleaned_data.get('password1')\n tTya = YKHO.cleaned_data.get('password2')\n if GUUE and tTya and (GUUE != tTya):\n raise H6V6.ValidationError('Passwords do not match')\n return tTya",
"def x0SS(YKHO):\n if 'password1' in YKHO.cleaned_data and 'password2' in YKH... | [
"0.79399025",
"0.78749835",
"0.78695035",
"0.78401047",
"0.78401047",
"0.7653222",
"0.76381606",
"0.76270497",
"0.7620142",
"0.76103264",
"0.75970584",
"0.75902796",
"0.7566968",
"0.75656545",
"0.75656545",
"0.7564056",
"0.75482935",
"0.7527657",
"0.7465165",
"0.7378404",
"0.... | 0.7735471 | 5 |
Verifiy that the values entered into the two password fields match. Note that an error here will end up in ``non_field_errors()`` because it doesn't apply to a single field. | def _Rkm(YKHO):
if 'password1' in YKHO.cleaned_data and 'password2' in YKHO.cleaned_data:
if YKHO.cleaned_data['password1'] != YKHO.cleaned_data['password2']:
raise H6V6.ValidationError(bGrB("The two password fields didn't match."))
return YKHO.cleaned_data['password2'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BhJx(YKHO):\n GUUE = YKHO.cleaned_data.get('password1')\n tTya = YKHO.cleaned_data.get('password2')\n if GUUE and tTya and (GUUE != tTya):\n raise H6V6.ValidationError('Passwords do not match')\n return tTya",
"def x0SS(YKHO):\n if 'password1' in YKHO.cleaned_data and 'password2' in YKH... | [
"0.7940086",
"0.7875071",
"0.7869033",
"0.7840069",
"0.7840069",
"0.77356064",
"0.7653496",
"0.7638424",
"0.76268595",
"0.7620595",
"0.76104516",
"0.75970405",
"0.7590136",
"0.75667995",
"0.7566083",
"0.7566083",
"0.7564348",
"0.75278497",
"0.74662095",
"0.7378596",
"0.737647... | 0.75485694 | 17 |
Validate that the supplied email address is unique for the site. | def YBiq(YKHO):
if mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']):
raise H6V6.ValidationError(bGrB('This email address is already in use. Please supply a different email address.'))
return YKHO.cleaned_data['email'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gcVv(D3lj):\n if Y8oe.objects.filter(email=D3lj.lower(), is_primary_email=False):\n raise sUXu(bGrB('User with this email already exists.'), code='email_not_unique')\n if mv1M.objects.filter(email=D3lj.lower()):\n raise sUXu(bGrB('User with this email already exists.'), code='email_not_uniq... | [
"0.7853141",
"0.7655458",
"0.75150234",
"0.74791735",
"0.73846847",
"0.7384654",
"0.7372314",
"0.73539346",
"0.72824067",
"0.7252353",
"0.7246325",
"0.7239674",
"0.71946406",
"0.71906227",
"0.71826446",
"0.71657395",
"0.71555",
"0.7150741",
"0.71265936",
"0.7107152",
"0.70523... | 0.71271753 | 19 |
Get reset observation of one agent. | def dM_D(YKHO, ulZ6=0):
return YKHO.init_state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.env.reset()\n return YKHO.env.get_obs()",
"def SiRx(YKHO):\n W061 = YKHO.gym.reset()\n qBT5 = YKHO.featurize(W061[YKHO.gym.training_agent])\n return qBT5",
"def rNYq(YKHO, YWSi, EmUK):\n YKHO.steps_from_last_reset += 1",
"def SiRx(YKHO):\n YKHO.reset_agent_location... | [
"0.69305277",
"0.6889251",
"0.6642398",
"0.663601",
"0.6448351",
"0.6424154",
"0.63667905",
"0.6332754",
"0.6256444",
"0.617472",
"0.6144033",
"0.6091263",
"0.6057199",
"0.60010976",
"0.60010976",
"0.60010976",
"0.60010976",
"0.60010976",
"0.60010976",
"0.5987585",
"0.5976154... | 0.0 | -1 |
Construct from JSON serializable dictionary. | def jG8h(Emd4, Op6c: Dict[str, Any]) -> 'CircuitStatus':
qVG7 = ValueError(f'Dictionary invalid format for CircuitStatus: {Op6c}')
if 'message' not in Op6c or 'status' not in Op6c:
raise qVG7
try:
jGRS = next((KCHu for KCHu in T0r4 if Op6c['status'] == KCHu.name))
except StopIteration as... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, ... | [
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554",
"0.78353554"... | 0.0 | -1 |
Return a list of stopwords. | def di0c(YKHO):
with open(y4mr, 'r') as hGN5:
return hGN5.read().splitlines() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lx6Y(YKHO):\n return YKHO.stop_words",
"def tyNe(YKHO):\n YKHO._normalize_params()\n return YKHO.stop_words",
"def hwHU():\n return tyNe('es') + tyNe('ca') + tyNe('en')",
"def lx6Y(K8Ds):\n sFWf = di0c.stopwords('en')\n rSDZ = YLnl(xdNg, K8Ds, [])\n return Q6uT(sFWf).flat_map(rSDZ).t... | [
"0.80183303",
"0.7935059",
"0.7833137",
"0.7742285",
"0.7672211",
"0.7653882",
"0.7648324",
"0.76216197",
"0.75930315",
"0.75855726",
"0.75824696",
"0.7582171",
"0.7564129",
"0.7564129",
"0.7564129",
"0.7564129",
"0.7542082",
"0.75192523",
"0.750828",
"0.74936754",
"0.7476700... | 0.8135261 | 0 |
Return a list of stopwords regexes. | def fQcO(YKHO):
tHUN = list()
for O8cl in YKHO.stopwords():
tHUN.append('\\b' + O8cl + '\\b')
return ZbWC.compile('|'.join(tHUN), ZbWC.IGNORECASE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aUcs(z_aV):\n return [[GIN8 for GIN8 in oGub(str(A97Q)) if GIN8 not in hwHU] for A97Q in z_aV]",
"def di0c(YKHO):\n with open(y4mr, 'r') as hGN5:\n return hGN5.read().splitlines()",
"def lx6Y(K8Ds):\n sFWf = di0c.stopwords('en')\n rSDZ = YLnl(xdNg, K8Ds, [])\n return Q6uT(sFWf).flat_m... | [
"0.72328895",
"0.7009559",
"0.6998379",
"0.6984287",
"0.69771034",
"0.6937841",
"0.6913659",
"0.6911223",
"0.69025785",
"0.6847499",
"0.6834423",
"0.68144864",
"0.67818624",
"0.67697954",
"0.67694366",
"0.6762042",
"0.67602473",
"0.6753589",
"0.6725645",
"0.6709671",
"0.67076... | 0.8547441 | 0 |
Return a list of sentences extracted text. | def Rhv4(YKHO):
return ZbWC.compile('[.!?;:,\\t\\(\\)\\"\\\']|\\s-\\s').split(YKHO.text) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y2KJ(l5Ny):\n return l5Ny.split('.')",
"def Y2KJ(YKHO):\n return [KCHu for KCHu in YKHO.text.split('\\n')]",
"def Rhv4(YKHO) -> x1iM[str]:\n return [YKHO.text[yKcO:Os4s] for yKcO, Os4s in YKHO.tokenizations]",
"def Rhv4(YKHO) -> x1iM[str]:\n return [YKHO.text[yKcO:Os4s] for yKcO, Os4s in YKHO... | [
"0.8159513",
"0.81392026",
"0.811708",
"0.811708",
"0.8096535",
"0.7950198",
"0.7830358",
"0.768475",
"0.76302695",
"0.762875",
"0.7552444",
"0.75276166",
"0.75273335",
"0.7491967",
"0.7435566",
"0.7345262",
"0.73101324",
"0.72664016",
"0.71766925",
"0.7151291",
"0.7099539",
... | 0.7176672 | 19 |
Return a list of candidate phrases after removing stopwords. | def _m_B(YKHO):
fAn3 = list()
for yAmx in YKHO.sentences():
JPVd = ZbWC.sub(YKHO.stopwords_regex(), '|', yAmx)
e1T3 = JPVd.split('|')
for A0cm in e1T3:
A0cm = QZsa(A0cm).lower()
if A0cm:
fAn3.append(A0cm)
return fAn3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aUcs(V22M):\n g68O = []\n for GIN8 in V22M:\n if GIN8 not in RhrR:\n g68O.append(GIN8)\n return g68O",
"def aUcs(V22M):\n g68O = []\n for GIN8 in V22M:\n if GIN8 not in di0c.words('english'):\n g68O.append(GIN8)\n return g68O",
"def aUcs(V22M: list) -> ... | [
"0.7129888",
"0.7121099",
"0.7118686",
"0.7105003",
"0.70779693",
"0.70764947",
"0.7066196",
"0.7057191",
"0.7054901",
"0.7054066",
"0.7054066",
"0.7054066",
"0.7054066",
"0.7053666",
"0.7018846",
"0.6960813",
"0.6952573",
"0.69311273",
"0.68818533",
"0.6869682",
"0.6869543",... | 0.79372203 | 0 |
Construct a metric descriptor object. Metric descriptors specify the schema for a particular metric type. This factory method is used most often in conjunction with the metric | def gLK_(YKHO, kN9s, KbLi=Uv13.METRIC_KIND_UNSPECIFIED, fX1C=o04K.VALUE_TYPE_UNSPECIFIED, Crrw=(), PXGI='', JBZA='', qQNS=''):
return ycJr(YKHO, kN9s, metric_kind=KbLi, value_type=fX1C, labels=Crrw, unit=PXGI, description=JBZA, display_name=qQNS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, px3k, KbLi='GAUGE', fX1C='DOUBLE', JBZA='N/A'):\n jXCX = EYiZ.MetricDescriptor()\n if px3k.startswith('custom.googleapis.com/'):\n jXCX.type = px3k\n else:\n jXCX.type = 'custom.googleapis.com/%s' % px3k\n jXCX.metric_kind = getattr(EYiZ.MetricDescriptor.MetricKind, KbLi)\n... | [
"0.6902602",
"0.6316135",
"0.60902125",
"0.59332067",
"0.5791282",
"0.56261283",
"0.554669",
"0.5527022",
"0.5511639",
"0.5488757",
"0.5417418",
"0.5416267",
"0.5416267",
"0.53924924",
"0.5252333",
"0.52448076",
"0.5243567",
"0.52266634",
"0.52178025",
"0.520232",
"0.514006",... | 0.69381905 | 0 |
Extend the time dimension of a dataset. | def Jswu(SCmg, WXkz):
Csk6 = ibQA.Dataset(SCmg, 'r+')
nl7t = Csk6.dimensions['time']
a1PO = Csk6.variables['time']
_RIX = a1PO.shape[0]
assert a1PO.axis == 'T'
assert a1PO.dimensions == ('time',)
for mZ1z in Csk6.variables:
if mZ1z == 'time':
continue
SRYB = Csk6.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ohx5(nPrm, _c1T='1970-01-01'):\n if isinstance(nPrm, zuVY.DataArray):\n if 'time' in nPrm.dims:\n raise ValueError('You trying to add time dimension to the DataArray that already have it. The reason migh be that you trying to use 2d variable (e.g. `a_ice`) in a function that accepts only 3... | [
"0.70578873",
"0.6964185",
"0.67469174",
"0.6274863",
"0.6118526",
"0.61001897",
"0.59803003",
"0.59752023",
"0.5851942",
"0.5794596",
"0.57715553",
"0.56831056",
"0.5649539",
"0.562341",
"0.5599042",
"0.551403",
"0.5481535",
"0.54648775",
"0.5418445",
"0.54000306",
"0.535806... | 0.5026887 | 45 |
Returns a string with the name of the file this snapshot came from. | def lBv6(YKHO) -> str:
return YKHO._file_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_2H(YKHO):\n return str(YKHO.get_file())",
"def gIsw(YKHO):\n return YKHO.lib.file_name",
"def W0tD(YKHO):\n return YKHO._file.name",
"def gIsw(YKHO):\n return YKHO.__file_name",
"def W0tD(YKHO):\n return YKHO.file_name",
"def g_2H(YKHO):\n return YKHO.path.name[6:]",
"def gIsw(Y... | [
"0.78627145",
"0.7667334",
"0.75771815",
"0.7565735",
"0.74653196",
"0.74567014",
"0.7455653",
"0.7455653",
"0.7455653",
"0.7455653",
"0.7455653",
"0.74417967",
"0.7420556",
"0.7337409",
"0.7306227",
"0.7305571",
"0.7300885",
"0.72668666",
"0.7263516",
"0.7259557",
"0.7175466... | 0.8594554 | 0 |
Returns the UUID (Universally unique identifier) of the snapshot. | def D4CB(YKHO) -> str:
return YKHO._snapshot_uuid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TpGz(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'snapshot_id')",
"def TpGz(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'snapshot_id')",
"def ShR8(YKHO):\n return f'{Sugg}_{YKHO._cam_name}_{YKHO._obj_name}_snapshot'",
"def qxeD(YKHO):\n if YKHO._uuid is not None:\n return YKHO._uuid\n ... | [
"0.74095905",
"0.74095905",
"0.7402462",
"0.70816904",
"0.7008879",
"0.69700396",
"0.69700396",
"0.6944538",
"0.6944538",
"0.6909454",
"0.68951243",
"0.689053",
"0.6880583",
"0.685903",
"0.6854571",
"0.6854571",
"0.6854571",
"0.68290895",
"0.678117",
"0.678117",
"0.678117",
... | 0.86906743 | 0 |
Return a dictionary where the keys are KappaAgents, their names, and their value is the abundance in the snapshot of those agents. | def nH1B(YKHO) -> cuzp[Ifhg, int]:
JnLh = YKHO.get_agent_types_present()
pDQF = dict(zip(JnLh, [0] * len(JnLh)))
for Tpgu in JnLh:
for ImPe, gr_d in YKHO.get_all_complexes_and_abundances():
Q8Bu = ImPe.get_complex_composition()
WtVM = Q8Bu[Tpgu] if Tpgu in Q8Bu else 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B7q3(YKHO):\n YFPb = {}\n for mS46 in YKHO.membership.listMembers():\n if mS46.has_role('Agent'):\n ILdH = mS46.getUserName()\n YFPb[ILdH] = {}\n YFPb[ILdH]['email'] = mS46.getProperty('email')\n YFPb[ILdH]['areas'] = YKHO.__wrapAreas(mS46.getProperty('a... | [
"0.6195268",
"0.5773157",
"0.57649857",
"0.57022685",
"0.55246246",
"0.5450289",
"0.53932554",
"0.537561",
"0.52606887",
"0.5238125",
"0.5220953",
"0.5207238",
"0.51730573",
"0.5117874",
"0.50806826",
"0.50105894",
"0.5007906",
"0.4990404",
"0.49821913",
"0.49742517",
"0.4969... | 0.6564878 | 0 |
Returns a list of KappaComplexes with the smallest complexes, measured in number of constituting agents. | def uyFS(YKHO) -> x1iM[AzJI[T2GI, int]]:
inDG = min(YKHO._known_sizes)
return YKHO.get_complexes_of_size(inDG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def de7k(YKHO) -> x1iM[T2GI]:\n W7ix = min(YKHO.get_all_abundances())\n return YKHO.get_complexes_with_abundance(W7ix)",
"def Qqr3(YKHO) -> x1iM[AzJI[T2GI, int]]:\n nkqt = max(YKHO._known_sizes)\n return YKHO.get_complexes_of_size(nkqt)",
"def __oo(YKHO) -> x1iM[T2GI]:\n HCyA = max(YKHO.get_all_... | [
"0.73400503",
"0.6329653",
"0.6327066",
"0.6217808",
"0.56852955",
"0.56500447",
"0.56454617",
"0.5372324",
"0.5272733",
"0.5179536",
"0.5171102",
"0.5085684",
"0.50774664",
"0.5051941",
"0.50314397",
"0.5028969",
"0.50027126",
"0.5000677",
"0.49590215",
"0.49588647",
"0.4958... | 0.80265826 | 0 |
Creates pandas DataFrame with the columns 'title' and 'context' | def PfrI(nPrm):
if isinstance(nPrm, str):
nPrm = SsAA(nPrm)
Mjw9 = ajrt(nPrm)
Csk6 = {'title': list(Mjw9.keys()), 'context': list(Mjw9.values())}
return rLdf.DataFrame(data=Csk6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jQ3Z(YKHO) -> 'pandas.DataFrame':\n k1TJ = []\n Tj1O = []\n Yefk = []\n for ACia in YKHO.values():\n k1TJ.append(ACia.title)\n Tj1O.append(ACia.comment)\n Yefk.append(ACia.codes[1:])\n return CwDs.DataFrame(index=list(YKHO.keys()), data={'title': k1TJ, 'comment': Tj1O, 'alte... | [
"0.7308931",
"0.6816382",
"0.67639107",
"0.6571725",
"0.65596604",
"0.6310241",
"0.6217754",
"0.62006086",
"0.6145315",
"0.60660315",
"0.60385853",
"0.6029322",
"0.59674954",
"0.59593254",
"0.5956902",
"0.5934144",
"0.58981246",
"0.5888828",
"0.58634996",
"0.585971",
"0.58596... | 0.8376451 | 0 |
Load the pretrained ResNet152 and replace top fc layer. | def FIMM(YKHO):
super(uUEJ, YKHO).__init__()
YKHO.conv0 = U78l.Conv3d(1, 64, (1, 3, 3), padding=(0, 1, 1))
YKHO.bn0 = U78l.BatchNorm3d(64)
YKHO.lrelu = U78l.LeakyReLU()
YKHO.conv1 = U78l.Conv3d(64, 128, (1, 3, 3), padding=(0, 1, 1))
YKHO.bn1 = U78l.BatchNorm3d(128)
YKHO.conv2 = U78l.Conv3d(1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST",
"def hVyu(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3])\n if mL4f:\n C3ST.load_... | [
"0.7173052",
"0.6806408",
"0.67975897",
"0.67849594",
"0.67489475",
"0.67489475",
"0.67489475",
"0.67489475",
"0.67324644",
"0.6507087",
"0.6507087",
"0.64752775",
"0.63904417",
"0.62846625",
"0.62234324",
"0.61872536",
"0.6139846",
"0.61031175",
"0.6084447",
"0.60670197",
"0... | 0.0 | -1 |
Load the pretrained ResNet152 and replace top fc layer. | def FIMM(YKHO):
super(Q2wl, YKHO).__init__()
YKHO.conv0 = U78l.Conv3d(1, 1, (1, 1, 1), padding=(0, 0, 0))
YKHO.bn0 = U78l.BatchNorm3d(1)
YKHO.lrelu = U78l.LeakyReLU() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST",
"def hVyu(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3])\n if mL4f:\n C3ST.load_... | [
"0.71717614",
"0.68050086",
"0.6795982",
"0.6783461",
"0.6747499",
"0.6747499",
"0.6747499",
"0.6747499",
"0.6731696",
"0.6505926",
"0.6505926",
"0.6473903",
"0.6388989",
"0.6283384",
"0.6222945",
"0.61859405",
"0.6139957",
"0.610276",
"0.60838705",
"0.60681355",
"0.60395557"... | 0.0 | -1 |
Load the pretrained ResNet152 and replace top fc layer. | def FIMM(YKHO):
super(KmzZ, YKHO).__init__()
YKHO.off_model = Q2wl()
YKHO.sig_model = uUEJ()
YKHO.sigmoid = U78l.Sigmoid()
YKHO.W = U78l.Conv3d(1, 1, (5, 1, 1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST",
"def hVyu(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3])\n if mL4f:\n C3ST.load_... | [
"0.7173052",
"0.6806408",
"0.67975897",
"0.67849594",
"0.67489475",
"0.67489475",
"0.67489475",
"0.67489475",
"0.67324644",
"0.6507087",
"0.6507087",
"0.64752775",
"0.63904417",
"0.62846625",
"0.62234324",
"0.61872536",
"0.6139846",
"0.61031175",
"0.6084447",
"0.60670197",
"0... | 0.0 | -1 |
Returns the postfix form of the infix expression found in `expr` | def XtMr(VN2L):
IPme = S9Ut()
hEAh = []
Q4kH = VN2L.split()
def lfdS(chr):
if chr.isdigit():
hEAh.append(chr)
elif chr == '(':
IPme.push('(')
elif IPme.peek() == '(' or IPme.empty():
IPme.push(chr)
elif chr == ')':
while IP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XtMr(VN2L):\n eRdl = {'*': 2, '/': 2, '+': 1, '-': 1}\n IPme = S9Ut()\n hEAh = []\n Q4kH = VN2L.split()\n RUgX = {'*', '/', '+', '-'}\n for WKvO in Q4kH:\n if str.isdigit(WKvO):\n hEAh.append(WKvO)\n elif IPme.empty() or IPme.peek() == '(':\n IPme.push(WKvO... | [
"0.7979371",
"0.7801753",
"0.76920533",
"0.7429643",
"0.7404279",
"0.7347274",
"0.7156811",
"0.7048756",
"0.6956311",
"0.6874034",
"0.68503463",
"0.67862564",
"0.67233485",
"0.6722634",
"0.6648669",
"0.6607104",
"0.65920854",
"0.6575015",
"0.65612596",
"0.65422934",
"0.649845... | 0.81900203 | 0 |
A layer of fixed quantum gates. | def Zb3H():
B2Ja.RX(jzdc, wires=0)
B2Ja.RX(Fg_i, wires=1)
B2Ja.RX(jzdc, wires=1)
B2Ja.CNOT(wires=[0, 1])
B2Ja.CNOT(wires=[1, 2])
B2Ja.RZ(jzdc, wires=0)
B2Ja.Hadamard(wires=1)
B2Ja.CNOT(wires=[0, 1])
B2Ja.RZ(Fg_i, wires=1)
B2Ja.Hadamard(wires=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NvoU(YKHO):\n YKHO.mx_free = YKHO.my_free = YKHO.mz_free = False\n return YKHO",
"def DPNn():\n oyIN.random.seed(1967)\n for IXCZ in tEpo:\n for ewpR in IXCZ:\n B2Ja.apply(ewpR)\n return B2Ja.expval(B2Ja.PauliZ(0))",
"def RNty(YKHO):\n YKHO.fx_free = YKHO.fy_free = YKHO.... | [
"0.60187334",
"0.5921436",
"0.588638",
"0.5844476",
"0.5676609",
"0.56277174",
"0.55278414",
"0.54314363",
"0.53742474",
"0.5373335",
"0.535794",
"0.5349831",
"0.5345843",
"0.5345003",
"0.5329945",
"0.53295755",
"0.5295241",
"0.52944255",
"0.52826804",
"0.5271433",
"0.5230254... | 0.0 | -1 |
Returns the minimax action using self.depth and self.evaluationFunction | def bk5W(YKHO, Ov5A):
def lOBF(RXHj, rb7a, D50p, Cwt5, UqYS):
if RXHj.isWin() or RXHj.isLose():
return YKHO.evaluationFunction(RXHj)
if rb7a == 0:
return YKHO.evaluationFunction(RXHj)
BcNU = 9999
mZ_I = RXHj.getLegalActions(D50p)
if D50p == RXHj.getNu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\... | [
"0.7482665",
"0.7383559",
"0.71806973",
"0.7110041",
"0.70884514",
"0.70683014",
"0.7048308",
"0.70055133",
"0.69651455",
"0.69642085",
"0.69604385",
"0.6945924",
"0.68998593",
"0.6895832",
"0.688605",
"0.6826282",
"0.6767276",
"0.6758028",
"0.6751636",
"0.6705453",
"0.670453... | 0.70694935 | 5 |
Return a temporary directory to use. This is in /tmp, and is based on a hash of our path so individual installations of the therm software get distinct temp directories. | def t2cD():
return '/tmp/therm-%08X' % abs(hash(xAKo.replace('pyc', 'py'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U9hK():\n return gbPf.mkdtemp()",
"def wQf6():\n return gbPf.mkdtemp()",
"def bEIa():\n g75m = gbPf.gettempdir()\n if HwRy.platform.startswith('win'):\n return _HNg\n elif tFQc(g75m) in _V2n:\n g75m = '/var/tmp'\n try:\n if tFQc(g75m) in _V2n:\n ... | [
"0.8495071",
"0.83200717",
"0.8178644",
"0.80747664",
"0.8064805",
"0.8030486",
"0.8025406",
"0.79993594",
"0.7944096",
"0.7880901",
"0.78765285",
"0.78482145",
"0.77432275",
"0.7723845",
"0.7718095",
"0.76883525",
"0.76659167",
"0.76555634",
"0.76253504",
"0.75908023",
"0.75... | 0.7793531 | 12 |
Get the final file name for a particular stamp | def ZSt1(YKHO, VwNh):
mWFP = b4EW(str(VwNh))
return Hy7s.path.join(YKHO.path, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JeWU(TLI7, mWFP, YBcr, ObTk=False):\n LGJQ = '_' + _PtW() if ObTk else ''\n FMLJ = '/{}{}{}' if YBcr.startswith('.') else '/{}{}.{}'\n return xBs1(TLI7) + FMLJ.format(mWFP, LGJQ, YBcr)",
"def gmXJ(bTKY):\n return Hmpq(u'{name}, {year}, {title}'.format(year=bTKY['year'], name=CCKR(bTKY['author'][0... | [
"0.71959406",
"0.70504427",
"0.67456603",
"0.6679539",
"0.66736937",
"0.66631633",
"0.66526586",
"0.6651539",
"0.66300154",
"0.6582215",
"0.6574201",
"0.654179",
"0.65304476",
"0.65158415",
"0.65105104",
"0.65032816",
"0.65018743",
"0.64880764",
"0.64841837",
"0.6483245",
"0.... | 0.75780493 | 0 |
Graph a linearly interpolated color range, given the minimum and maximum data values with their corresponding color. Data outside the minimum and maximum gets clamped. | def zpS1(min, NNt_, max, oIn1, YfWR=96, id=[0]):
vC9B = yclp('-INF', min, NNt_, id=id) + yclp(max, 'INF', oIn1, id=id)
mfL5 = 0
while mfL5 < 1:
Cwt5 = mfL5 + 1.0 / YfWR
vC9B += yclp(mfL5 * (max - min) + min, Cwt5 * (max - min) + min, NNt_.hsvBlend(oIn1, (Cwt5 + mfL5) * 0.5), id=id)
m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Awsg(WKvO=oyIN.linspace(0, 1, 2), min=None, max=None):\n if min is None:\n min = WKvO.min()\n if max is None:\n max = WKvO.max() - min\n else:\n max -= min\n A3mO = WKvO - min\n A3mO /= max\n return Kebj(A3mO)",
"def qOWK(YKHO):\n n4wC = YKHO.data_matrix.max()\n M... | [
"0.68583965",
"0.67864037",
"0.6641653",
"0.65886205",
"0.6504273",
"0.6478504",
"0.6402714",
"0.6184089",
"0.61669815",
"0.61511713",
"0.6102146",
"0.60649437",
"0.60212636",
"0.60205156",
"0.6006258",
"0.60000473",
"0.5952037",
"0.5911756",
"0.5908469",
"0.5898268",
"0.5896... | 0.7914002 | 0 |
Convert period to space Split on whitespace Strip punctuation (on termini) Discard <=1 letter strings Discard <=3 letter strings that are ALL CAPS If one string remains, return | def lZes(mWFP, LSh8=False):
if CwDs.isna(mWFP):
return None
assert isinstance(mWFP, str)
LO7q = mWFP.replace('.', ' ')
V22M = LO7q.split()
for GIN8 in V22M:
GIN8 = GIN8.strip(vIwR.punctuation)
if len(GIN8) <= 1:
continue
if GIN8.upper() == GIN8 and len(GIN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QrZ9(FUjE):\n KCHu = ''\n for Z9rn in FUjE:\n if Z9rn != '.' and Z9rn != ',' and (Z9rn != '!') and (Z9rn != '?'):\n KCHu += Z9rn\n KCHu = KCHu.lower().split()\n return KCHu",
"def AIla(A0cm):\n oY8W = []\n JyQB = ZbWC.split('(\\\\W)', A0cm)\n V22M = list(filter(None, Jy... | [
"0.65916926",
"0.65460664",
"0.64216894",
"0.61216366",
"0.6110138",
"0.60285413",
"0.6018607",
"0.60054356",
"0.59966284",
"0.59271777",
"0.5897811",
"0.58950365",
"0.5892016",
"0.5865377",
"0.5840663",
"0.5838178",
"0.58330154",
"0.58330154",
"0.5832933",
"0.5829084",
"0.58... | 0.0 | -1 |
Returns the state of the PWM generators. either YPwmOutput.ENABLED_FALSE or YPwmOutput.ENABLED_TRUE, according to the state of the PWM generators On failure, throws an exception or returns YPwmOutput.ENABLED_INVALID. | def dlnD(YKHO):
if YKHO._cacheExpiration <= NA0M.GetTickCount():
if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS:
return SAiw.ENABLED_INVALID
Ylbp = YKHO._enabled
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eUgv(YKHO):\n if YKHO._cacheExpiration <= NA0M.GetTickCount():\n if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS:\n return SAiw.ENABLEDATPOWERON_INVALID\n Ylbp = YKHO._enabledAtPowerOn\n return Ylbp",
"def etR_(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKH... | [
"0.6460491",
"0.6218517",
"0.61133194",
"0.60958964",
"0.60958964",
"0.60958964",
"0.60958964",
"0.60930115",
"0.601774",
"0.57817495",
"0.5781317",
"0.57693666",
"0.5740077",
"0.57321876",
"0.5724095",
"0.5715709",
"0.568941",
"0.5675089",
"0.56743646",
"0.56711113",
"0.5655... | 0.698795 | 0 |
Stops or starts the PWM. | def zAEm(YKHO, ZIC1):
C236 = '1' if ZIC1 > 0 else '0'
return YKHO._setAttr('enabled', C236) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UjUc(YKHO, Iz2h):\n for YRbF in range(len(YKHO._pins)):\n YKHO._pi.set_PWM_dutycycle(YKHO._pins[YRbF], Iz2h[YRbF])",
"def JCyR(YKHO):\n YKHO.pwm_forward.ChangeDutyCycle(0)\n YKHO.pwm_backward.ChangeDutyCycle(0)",
"def JCyR(YKHO):\n YKHO.pwm_forward.ChangeDutyCycle(0)\n YKHO.pwm_backwa... | [
"0.6456578",
"0.63840175",
"0.6355833",
"0.62954",
"0.62623394",
"0.62459445",
"0.6218827",
"0.6144759",
"0.6095936",
"0.60519993",
"0.6028778",
"0.59527725",
"0.5910808",
"0.5908418",
"0.58276016",
"0.5799032",
"0.57789254",
"0.57457155",
"0.57240844",
"0.5722997",
"0.570177... | 0.0 | -1 |
Return humanreadable relative time string. | def RFna(YKHO):
wzkt = qcWV.now(rIAI.utc)
aJ2e = YKHO.created_at.astimezone(rIAI.utc)
RA_F = lYHg.naturaldelta(abs(aJ2e - wzkt))
uGgB = 'from now' if wzkt < aJ2e else 'ago'
return f'{RA_F} {uGgB}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EgnU():\n return ITS7.strftime('%A, %H:%M')",
"def m7L9(YKHO):\n WKvO = ITS7.localtime()\n return ''.join([str(WKvO[0]).rjust(4, '0'), '/', str(WKvO[1]).rjust(2, '0'), '/', str(WKvO[2]).rjust(2, '0'), ' ', str(WKvO[3]).rjust(2, '0'), ':', str(WKvO[4]).rjust(2, '0'), ':', str(WKvO[5]).rjust(2, '0')])... | [
"0.70410514",
"0.69390804",
"0.68644935",
"0.686331",
"0.6802071",
"0.6749616",
"0.6729886",
"0.6659623",
"0.66467756",
"0.6636499",
"0.66157746",
"0.66020143",
"0.6573047",
"0.656654",
"0.6514791",
"0.64840144",
"0.64817506",
"0.6452832",
"0.64522374",
"0.64282495",
"0.64208... | 0.6399556 | 21 |