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 |
|---|---|---|---|---|---|---|
Initialize the inference network, stream video to network, and output stats and video. | def aBLl(qIxc, x0hE):
cret = X1CD()
vCt9 = qIxc.prob_threshold
Y8q7 = 0
Bj_2 = 0
PL8p = 0
iDQb = 0
pcsc = 0
cret.load_model(qIxc.model, qIxc.device, qIxc.cpu_extension)
WlPc = cret.get_input_shape()
RKD7.info('Opening input stream...')
zbK9 = False
if qIxc.input == 'CAM':... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aBLl(qIxc, x0hE):\n cret = X1CD()\n vCt9 = qIxc.prob_threshold\n C3ST = qIxc.model\n nda8 = qIxc.device\n tYA2 = qIxc.cpu_extension\n cret.load_model(C3ST, tYA2, nda8)\n WlPc = cret.get_input_shape()\n gTi_ = 0\n if qIxc.input == 'CAM':\n zmw3 = 0\n elif qIxc.input.endswith... | [
"0.692716",
"0.6839717",
"0.6783592",
"0.66934323",
"0.66573435",
"0.6610986",
"0.63370055",
"0.63341874",
"0.63094616",
"0.62494546",
"0.6224821",
"0.6221304",
"0.61990017",
"0.61560386",
"0.6143172",
"0.6125433",
"0.61155194",
"0.611265",
"0.60937816",
"0.60650504",
"0.6064... | 0.60741615 | 19 |
Normalize the data from 0 to 1 | def NkkI(VXjJ):
return VXjJ.astype(float) / 255.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnV4(YKHO, nPrm):\n if YKHO.clip:\n return nPrm.clip(0, 1)\n return oyIN.mod(nPrm, 1)",
"def NkkI(nPrm):\n nPrm = nPrm / oyIN.max(nPrm)\n return nPrm",
"def NkkI(nPrm):\n nPrm, mhts = nPrm\n nPrm = nPrm.astype(oyIN.float32)\n nPrm -= mhts[0]\n nPrm /= mhts[1]\n return nPrm... | [
"0.86383635",
"0.81870997",
"0.8161266",
"0.7993303",
"0.79563427",
"0.791773",
"0.7903135",
"0.7851282",
"0.78310466",
"0.7823012",
"0.77612704",
"0.7731397",
"0.7718152",
"0.77100253",
"0.7703645",
"0.76631296",
"0.76587296",
"0.7642016",
"0.75748765",
"0.75454664",
"0.7529... | 0.0 | -1 |
Normalize the data from 0 to 1 | def NkkI(VXjJ):
return VXjJ.astype(float) / 255.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnV4(YKHO, nPrm):\n if YKHO.clip:\n return nPrm.clip(0, 1)\n return oyIN.mod(nPrm, 1)",
"def NkkI(nPrm):\n nPrm = nPrm / oyIN.max(nPrm)\n return nPrm",
"def NkkI(nPrm):\n nPrm, mhts = nPrm\n nPrm = nPrm.astype(oyIN.float32)\n nPrm -= mhts[0]\n nPrm /= mhts[1]\n return nPrm... | [
"0.8638196",
"0.81869864",
"0.81612",
"0.79930043",
"0.79562783",
"0.7917465",
"0.7903194",
"0.78510374",
"0.7830757",
"0.78228784",
"0.77608657",
"0.77313316",
"0.7718022",
"0.7709777",
"0.7703559",
"0.7663002",
"0.7658278",
"0.76419836",
"0.75748134",
"0.7545527",
"0.752910... | 0.0 | -1 |
Get the repr of the object | def wHJl(YKHO):
if YKHO.filename and YKHO.lineno:
return f'<LiquidLine {YKHO.line!r} (compiled from {YKHO.filename}:{YKHO.lineno})>'
return f'<LiquidLine {YKHO.line!r}>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.object_repr",
"def gtee(YKHO):\n raise NotImplementedError",
"def zAg0(YKHO):\n return repr(YKHO)",
"def zAg0(YKHO):\n return repr(YKHO)",
"def wHJl(YKHO):\n return f'{YKHO.__str__()} {object.__repr__(YKHO)}'",
"def zAg0(YKHO):\n return repr(YKHO)",
"def ... | [
"0.810029",
"0.8092916",
"0.80796933",
"0.80796933",
"0.80686617",
"0.8054976",
"0.8054976",
"0.80542254",
"0.8051474",
"0.8046755",
"0.8046755",
"0.8046755",
"0.8046755",
"0.8046755",
"0.8046755",
"0.80372864",
"0.8016862",
"0.8008695",
"0.80017024",
"0.7984541",
"0.7913577"... | 0.0 | -1 |
Inits class with df, root_dir, percent_sample, tarnsform | def FIMM(YKHO, jQ3Z, jNha, oP_C=None, SZFh=None):
YKHO.img_df = jQ3Z
YKHO.root_dir = jNha
YKHO.transform = SZFh
YKHO.percent_sample = oP_C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO._data = rLdf.DataFrame({})\n YKHO._units = {}\n YKHO._filepath = None\n YKHO._desc = ''",
"def FIMM(YKHO, jQ3Z=None):\n YKHO.df = jQ3Z",
"def FIMM(YKHO, jQ3Z):\n YKHO._df = jQ3Z",
"def FIMM(YKHO, jQ3Z):\n YKHO.df = jQ3Z",
"def FIMM(YKHO, jQ3Z):\n YKHO.df = jQ3... | [
"0.7507701",
"0.72242504",
"0.70988005",
"0.7039793",
"0.70123994",
"0.69175917",
"0.68395054",
"0.68381363",
"0.67894846",
"0.6787786",
"0.6746169",
"0.67333686",
"0.66808164",
"0.6622574",
"0.6610078",
"0.66090786",
"0.6566572",
"0.6545647",
"0.6540688",
"0.65367454",
"0.65... | 0.82611066 | 0 |
Draws the rules of the game on the splash screen as part of the initialization. | def soZT(YKHO):
l5Ny = ['You start with $100', 'Each round costs $10 to play', 'You start with a random hand and get two chances to reroll', 'At the end of the hand, you get a payout or nothing', 'Are you ready to roll?']
vgXP = 0
for eD8c in l5Ny:
Mkmy = I2jr(PvyL(WJZR / 2, em9A / 5 + vgXP), eD8c)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PtXo(YKHO):\n while True:\n TK2h = YKHO.choose([\"Let's Play\", 'Exit'])\n if TK2h == \"Let's Play\":\n for eD8c in YKHO.rules:\n eD8c.undraw()\n for oD_N in YKHO.buttons:\n oD_N.undraw()\n YKHO.buttons.clear()\n YKHO.dr... | [
"0.72407556",
"0.66373307",
"0.66010404",
"0.63698024",
"0.6327318",
"0.63211966",
"0.63211966",
"0.6310736",
"0.62414944",
"0.62010473",
"0.61696756",
"0.6158078",
"0.61499536",
"0.613775",
"0.61336124",
"0.6114898",
"0.61137503",
"0.60932076",
"0.6084784",
"0.608013",
"0.60... | 0.0 | -1 |
Initialize the Middleware class. | def FIMM(YKHO, Rdl6):
YKHO.moduleName = Rdl6
YKHO.__module = __import__('SALPY_' + Rdl6)
YKHO.salMiddleware = getattr(YKHO.__module, 'SAL_' + Rdl6)()
YKHO.retData = None
YKHO.status = None
YKHO.timeOut = -1
YKHO.timeStart = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8Zp(YKHO, C934):\n YKHO._middleware_manager.setup(C934)",
"def C934(YKHO):\n\n def mrMx(QJuq: typing.Type[BaseMiddleware]):\n YKHO.setup_middleware(QJuq())\n return mrMx",
"def FIMM(YKHO, kT1P, C934=None):\n C934 = C934 or []\n if C934 and (not isinstance(C934, list)):\n C934 ... | [
"0.7042591",
"0.69365627",
"0.68746716",
"0.6615437",
"0.66088045",
"0.65440553",
"0.6530095",
"0.64673907",
"0.6383231",
"0.63358384",
"0.6314331",
"0.6161626",
"0.6138844",
"0.6050433",
"0.6050433",
"0.60146445",
"0.60136694",
"0.6013312",
"0.5999658",
"0.5969505",
"0.59686... | 0.0 | -1 |
Get the public attribute in SAL data instance. | def IVqG(YKHO, nPrm):
MeKo = {}
ioYL = dir(nPrm)
for xC3W in ioYL:
gEsr = ZbWC.match('^_', xC3W)
if gEsr is None:
MeKo[xC3W] = None
return MeKo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oNwR(YKHO, H5ew):\n return YKHO.publicattrsrefs.get(H5ew)",
"def JgjC(YKHO, hkS8):\n if not YKHO.loaded:\n YKHO.load_from_api()\n if hkS8 in YKHO.data:\n return YKHO.data[hkS8]\n raise AttributeError('Attribute {} not available from Steam API'.format(hkS8))",
"def yLtf(YKHO, xC3W=... | [
"0.6774783",
"0.67488647",
"0.6733465",
"0.66735584",
"0.6640269",
"0.65585965",
"0.64906955",
"0.6482032",
"0.64665943",
"0.64381725",
"0.6429978",
"0.64106625",
"0.64061946",
"0.63973117",
"0.6369549",
"0.6353578",
"0.6353578",
"0.6338451",
"0.6318274",
"0.6313489",
"0.6269... | 0.59306186 | 79 |
Return largest connected component. | def YO5w(eQUr):
AdfU = beGD(eQUr)
p6S0 = oyIN.argmax([len(Z9rn) for Z9rn in AdfU])
return AdfU[p6S0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def USqM(C7Ls):\n return max(WBdH(C7Ls), key=len)",
"def yMcR(pNZh):\n return max(jHsn.weakly_connected_component_subgraphs(pNZh), key=len)",
"def YO5w(YKHO):\n YKHO.connected_components()\n if YKHO.number_of_components == 1:\n return YKHO\n else:\n kPi5 = []\n ewCu = wbK3.C... | [
"0.8707189",
"0.8054198",
"0.7992462",
"0.79196984",
"0.77504426",
"0.76596683",
"0.7351273",
"0.73426974",
"0.72938883",
"0.7188657",
"0.71746206",
"0.7120818",
"0.71082187",
"0.70685273",
"0.7060786",
"0.68810296",
"0.6862302",
"0.6805648",
"0.67823535",
"0.6742731",
"0.673... | 0.801889 | 2 |
Get the operation from the event data. If operation exists in the event data, it may be either a string or list. If it is a list, only the first element will be returned. | def zFpk(tvqc):
if 'operation' not in tvqc:
return 'unknown'
khtY = tvqc['operation']
if isinstance(khtY, str):
return khtY
elif isinstance(khtY, list) and len(khtY) > 0:
return khtY[0]
return 'unknown' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oPhP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'operation')",
"def oPhP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'operation')",
"def oPhP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'operation')",
"def oPhP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y... | [
"0.7194207",
"0.7194207",
"0.7194207",
"0.7194207",
"0.7094897",
"0.70577365",
"0.70543474",
"0.6977717",
"0.6896135",
"0.6887861",
"0.67942184",
"0.66936684",
"0.6665273",
"0.6653884",
"0.66471976",
"0.66471976",
"0.66017073",
"0.6590038",
"0.6533653",
"0.652508",
"0.6490118... | 0.82596743 | 0 |
Performs quick sort partitioning, here it uses median of three as the pivot selection process, which sorts the three so the pivot becomes the middle element of those three sorted elements. | def XZJQ(vC9B, nEeK, ekgN):
QcHC = uaDe(vC9B, nEeK, ekgN)
XCHl = nEeK + 1
MrCH = ekgN - 1
while True:
while vC9B[XCHl] < QcHC:
XCHl += 1
while vC9B[MrCH] > QcHC:
MrCH -= 1
if XCHl >= MrCH:
return MrCH
vC9B[XCHl], vC9B[MrCH] = (vC9B[MrCH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8EM(qw7D, XP5J, Mkmy):\n siNA(qw7D, XP5J, Mkmy)\n fKAR(qw7D)",
"def lguw(Q6uT, yKcO, Os4s):\n if Os4s - yKcO >= 2:\n jPVB = zLGb(Q6uT, yKcO, Os4s)\n LEev, Xyq7 = C1vd(Q6uT, yKcO, Os4s, Q6uT[jPVB])\n lguw(Q6uT, yKcO, LEev)\n lguw(Q6uT, Xyq7, Os4s)",
"def HXD_(qw7D):\n ... | [
"0.7808682",
"0.77303535",
"0.7625324",
"0.7571701",
"0.75666064",
"0.7531193",
"0.7491595",
"0.74899554",
"0.7317489",
"0.7196965",
"0.7181574",
"0.71800196",
"0.71350163",
"0.7119379",
"0.7067064",
"0.7024942",
"0.6939766",
"0.68839407",
"0.68795156",
"0.687216",
"0.6868630... | 0.7575649 | 3 |
Recursive quick sort function that uses a simple, pivot selection of just picking the middle value every time. | def VSsB(vC9B, nEeK, ekgN):
if nEeK >= ekgN:
return
HqXP = TRKU(vC9B, nEeK, ekgN)
VSsB(vC9B, nEeK, HqXP)
VSsB(vC9B, HqXP + 1, ekgN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lguw(Q6uT, yKcO, Os4s):\n if Os4s - yKcO >= 2:\n jPVB = zLGb(Q6uT, yKcO, Os4s)\n LEev, Xyq7 = C1vd(Q6uT, yKcO, Os4s, Q6uT[jPVB])\n lguw(Q6uT, yKcO, LEev)\n lguw(Q6uT, Xyq7, Os4s)",
"def vk7q(ezWE, gqRb, ODP9):\n if gqRb < ODP9:\n mM0K = Qrt_(ezWE, gqRb, ODP9)\n ... | [
"0.78599423",
"0.77430457",
"0.7735828",
"0.76896554",
"0.7658808",
"0.7652119",
"0.7647085",
"0.76347786",
"0.7596433",
"0.75734425",
"0.7572286",
"0.7565523",
"0.7565175",
"0.7554365",
"0.7526011",
"0.7519224",
"0.7515459",
"0.75141835",
"0.7495873",
"0.7482623",
"0.7479126... | 0.7104042 | 60 |
Sets up the various quick_sort algorithms to perform a quick sort. Takes a conditional argument 'algorithm' to choose which variant of quick sort to chose from, defaults to median of three | def lguw(vC9B, E91_='median3', tAX0=7):
ekgN = len(vC9B) - 1
if E91_ == 'median3':
j9ds(vC9B, 0, ekgN)
elif E91_ == 'insert':
vVcc(vC9B, 0, ekgN, tAX0)
elif E91_ == 'simple':
VSsB(vC9B, 0, ekgN)
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8EM(qw7D, XP5J, Mkmy):\n siNA(qw7D, XP5J, Mkmy)\n fKAR(qw7D)",
"def lguw(Q6uT, yKcO, Os4s):\n if Os4s - yKcO >= 2:\n jPVB = zLGb(Q6uT, yKcO, Os4s)\n LEev, Xyq7 = C1vd(Q6uT, yKcO, Os4s, Q6uT[jPVB])\n lguw(Q6uT, yKcO, LEev)\n lguw(Q6uT, Xyq7, Os4s)",
"def vdyO(qw7D, x9sQ... | [
"0.64685553",
"0.6374544",
"0.63245237",
"0.62509173",
"0.6182673",
"0.6130961",
"0.60284585",
"0.59654737",
"0.5883781",
"0.5880471",
"0.5870359",
"0.5823163",
"0.5806248",
"0.5791395",
"0.5743523",
"0.5713597",
"0.57094306",
"0.5707064",
"0.5699776",
"0.56969786",
"0.569361... | 0.7625604 | 0 |
Sets the resource of this ResourceServerFormsLoginLoginResources. | def Eorv(YKHO, Eorv):
YKHO._resource = Eorv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jx3L(YKHO):\n pass",
"def hhVd(YKHO, NtEF, jTXt):\n YKHO.username, YKHO.password = (NtEF, jTXt)\n YKHO.login_data = {'user[username]': YKHO.username, 'user[password]': YKHO.password, 'authenticity_token': YKHO._fetchtoken()}",
"def ezAV(YKHO, FRss: dict) -> None:\n YKHO.loginform.set_login_resp... | [
"0.5726853",
"0.5534594",
"0.5520234",
"0.5466673",
"0.53194505",
"0.5298862",
"0.5298862",
"0.52374977",
"0.51571685",
"0.5147987",
"0.51201785",
"0.5088939",
"0.50670385",
"0.5061171",
"0.5056822",
"0.50071824",
"0.49747118",
"0.4922286",
"0.48943496",
"0.48799577",
"0.4862... | 0.46325913 | 54 |
Sets the form_action of this ResourceServerFormsLoginLoginResources. | def eWY_(YKHO, eWY_):
YKHO._form_action = eWY_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HZoQ(L03z: LoginForm):\n pass",
"def Gckm(YKHO, QpfX):\n L03z = qnV1()\n return eoaG('user/login_form', {'form': L03z}, context_instance=QpfX)",
"def lwXz(YKHO, L03z):\n MC83(YKHO.request, L03z.get_user())\n return super(tHyA, YKHO).form_valid(L03z)",
"def MC83(YKHO, L03z):\n try:\n ... | [
"0.5696615",
"0.55544645",
"0.533941",
"0.5089433",
"0.5058975",
"0.50096405",
"0.5008099",
"0.4990221",
"0.49799854",
"0.49464712",
"0.49376437",
"0.49362403",
"0.49257612",
"0.49184042",
"0.490434",
"0.490434",
"0.4851546",
"0.48180053",
"0.48052442",
"0.47891095",
"0.47667... | 0.6593289 | 0 |
Sets the fields of this ResourceServerFormsLoginLoginResources. | def V_D6(YKHO, V_D6):
YKHO._fields = V_D6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hhVd(YKHO, NtEF, jTXt):\n YKHO.username, YKHO.password = (NtEF, jTXt)\n YKHO.login_data = {'user[username]': YKHO.username, 'user[password]': YKHO.password, 'authenticity_token': YKHO._fetchtoken()}",
"def ezAV(YKHO, FRss: dict) -> None:\n YKHO.loginform.set_login_response(FRss)\n if YKHO.wcstatu... | [
"0.6128579",
"0.57409364",
"0.57105875",
"0.5604639",
"0.5561235",
"0.54401314",
"0.53927606",
"0.53622633",
"0.5352016",
"0.5325441",
"0.5316788",
"0.5269327",
"0.5251707",
"0.52440846",
"0.52401197",
"0.52367103",
"0.52125335",
"0.52097136",
"0.5193317",
"0.5176004",
"0.516... | 0.4753272 | 77 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, YmIT):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
r"""User friendly representation of the object. | def yLCI(YKHO):
return VQ0N.to_string(YKHO).format(name=YKHO.Name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.object_repr",
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def zAg0(YKHO):\n return str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__dict__)",
"def zAg0(YK... | [
"0.84215564",
"0.82501376",
"0.8190716",
"0.80762494",
"0.80747557",
"0.80747557",
"0.80747557",
"0.80702025",
"0.80702025",
"0.8064704",
"0.8064704",
"0.8064704",
"0.8064704",
"0.8064704",
"0.8064704",
"0.8064704",
"0.8064704",
"0.8064704",
"0.8064704",
"0.8064704",
"0.80647... | 0.0 | -1 |
This will return a player entity object from the key name. If not found, will raise a PLAYER_NOT_FOUND ValueError exception | def A22B(D3lj):
LEXu = C3ST.Players.get_by_key_name(D3lj)
if not LEXu:
raise ValueError(KKL2.PLAYER_NOT_FOUND)
return LEXu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYCt(zAat, e44p):\n for LEXu in e44p:\n if LEXu['entity_name'] == zAat:\n return LEXu\n return None",
"def oB0A(YKHO, F0O1):\n return NCls.get(NCls.Key.from_path('SC2Ladder', YKHO.get_ladder_key(), 'SC2Player', F0O1))",
"def nAM4(YKHO, V_8D):\n return YKHO._players[V_8D]",
"... | [
"0.67156154",
"0.665202",
"0.66272163",
"0.6563518",
"0.65238357",
"0.6486435",
"0.64517903",
"0.64092654",
"0.630135",
"0.62966347",
"0.6230029",
"0.62060374",
"0.6185935",
"0.6141627",
"0.61299354",
"0.61073893",
"0.6080234",
"0.6064012",
"0.60569245",
"0.6032636",
"0.60326... | 0.6473635 | 6 |
Reset gradients for multitask network and optimizer | def bXMT(YKHO):
YKHO._optimizer.zero_grad()
YKHO._zero_grad(YKHO._multitask_network)
YKHO._zero_grad(YKHO._classifier) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n if YKHO._gradients:\n YKHO._accum_steps.assign(0)\n for ICX2 in YKHO._get_replica_gradients():\n ICX2.assign(ZylS.zeros_like(ICX2))",
"def YP7j(YKHO):\n YKHO.g_optimizer.zero_grad()\n YKHO.d_optimizer.zero_grad()\n YKHO.c_optimizer.zero_grad()",
"def YP7j(... | [
"0.7496072",
"0.7418698",
"0.7295027",
"0.72797227",
"0.72730476",
"0.72670656",
"0.72670656",
"0.72670656",
"0.72670656",
"0.7249947",
"0.7208778",
"0.72016984",
"0.7195073",
"0.7195073",
"0.7195073",
"0.7130749",
"0.70491725",
"0.6976618",
"0.68943",
"0.6884709",
"0.6776351... | 0.7613989 | 0 |
Average the loss over the batches of all samples created from these sentence pairs | def QIBu(auXn, u6ck, uveO, jbn3, mBtZ, YoQM):
gGnb, AV8x = mBtZ.get_all_multitask_samples(auXn, u6ck, uveO, jbn3, activations=YoQM)
N77f = []
for SlcE, kXEi in gGnb:
Ep8u = SlcE.size()[0]
tfoj = Ep8u / AV8x
fuDa = IoiV.Variable(r8hN.cuda_wrap(kXEi))
N6Z1 = mBtZ.predict(SlcE)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RGGR(YKHO, BFeB, YLQk, OEry, GxC1):\n HrK4 = YLQk\n '\\n for i,gold in enumerate(golds):\\n if self.criterion(probs, gold.contiguous().view(-1)) < ce_loss: \\n chosen = gold\\n ce_loss = self.criterion(probs, gold.contiguous().view(-1))\\n '\n Obd... | [
"0.72207004",
"0.68288535",
"0.6815354",
"0.67888093",
"0.67098355",
"0.66332656",
"0.6575279",
"0.6534902",
"0.6527488",
"0.65046716",
"0.6504094",
"0.64827746",
"0.64218634",
"0.64009464",
"0.63845396",
"0.63633555",
"0.63507235",
"0.63447076",
"0.6336437",
"0.63325745",
"0... | 0.60128045 | 57 |
Convert entries in a list to a concatenated string | def mGAa(Emd4, IqQl=None, TDw3='|'):
if not isinstance(IqQl, z_Dm) and isinstance(IqQl, iu5r):
return TDw3.join(map(str, IqQl))
return IqQl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A7xx(list):\n Aofo = ''\n for U6D_ in list:\n Aofo += str(U6D_)\n return Aofo",
"def Xb9H(list):\n return ''.join(list)",
"def Z4k6(yv6U) -> str:\n return '|'.join(yv6U)",
"def Sa1R(yv6U):\n Ylbp = ''\n for G1Hx in yv6U:\n Ylbp += ' ' + G1Hx\n return Ylbp",
"def sA... | [
"0.7882494",
"0.7674245",
"0.7648435",
"0.7538321",
"0.7522712",
"0.75196654",
"0.74921674",
"0.7475393",
"0.7467788",
"0.74522984",
"0.7388724",
"0.73721236",
"0.7369482",
"0.73149455",
"0.7303002",
"0.7302631",
"0.72465545",
"0.7241922",
"0.71444756",
"0.71426165",
"0.71398... | 0.66367584 | 88 |
Create a fully qualified URL for the API endpoint. | def l4eR(YKHO, rmsH, hLsl):
YKHO._API_BASE_URL = YKHO._build_base_url(base_url=YKHO._API_BASE_URL, host=YKHO.host, port=YKHO.port, force_user_scheme=YKHO._FORCE_SCHEME_FROM_HOST)
return YKHO._build_url_path(base_url=YKHO._API_BASE_URL, api_base_path=YKHO._API_BASE_PATH, api_namespace=rmsH, api_method=hLsl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jNi7(YKHO, w2IS: str) -> str:\n bD7m = YKHO.client.RESOURCE + YKHO.client.api_version + '/' + w2IS\n return bD7m",
"def JKqF(YKHO, w2IS):\n w2IS = w2IS.strip()\n if w2IS.startswith('/'):\n w2IS = w2IS[1:]\n return l4ys + w2IS",
"def jNi7(YKHO, w2IS):\n return '{}{}'.format(YKHO._ba... | [
"0.8225964",
"0.8038592",
"0.7900935",
"0.7871521",
"0.78527415",
"0.78468245",
"0.78450954",
"0.7830457",
"0.77838403",
"0.773942",
"0.7707199",
"0.76232934",
"0.761487",
"0.7599253",
"0.75864524",
"0.756727",
"0.75652987",
"0.7521646",
"0.74960446",
"0.7484049",
"0.7470404"... | 0.73822397 | 23 |
Create or return existing Requests session. | def aRDv(YKHO):
if YKHO._requests_session:
return YKHO._requests_session
YKHO._requests_session = DMju()
YKHO._requests_session.headers.update({'Referer': YKHO._API_BASE_URL, 'Origin': YKHO._API_BASE_URL})
YKHO._requests_session.headers.update(YKHO._EXTRA_HEADERS)
YKHO._requests_session.veri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DFdH(YKHO):\n if not YKHO.session:\n RKD7.debug('Creating new session')\n YKHO.session = G4JS.Session()\n YKHO.session.mount('https://', oln2(max_retries=YCx3(total=3, backoff_factor=1)))\n return YKHO.session",
"def gte4():\n global inst_session\n OuFc = G4JS.Session()\n ... | [
"0.83773714",
"0.81469977",
"0.77950984",
"0.77950984",
"0.77485573",
"0.76789397",
"0.7493057",
"0.74669856",
"0.7364911",
"0.7313213",
"0.7286574",
"0.72542953",
"0.72346044",
"0.7207307",
"0.72023416",
"0.7170123",
"0.7155442",
"0.7143118",
"0.70863724",
"0.7025938",
"0.69... | 0.6431951 | 73 |
Returns pwl layer regularizers defined in the model and feature configs. | def hhuO(dyeT, _3Ii):
wP4J = []
wP4J.extend(_3Ii.regularizer_configs or [])
wP4J.extend(dyeT.regularizer_configs or [])
return [(Mkmy.name.replace(pWS5, ''), Mkmy.l1, Mkmy.l2) for Mkmy in wP4J if Mkmy.name.startswith(pWS5)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yjPc(YKHO):\n return YKHO._regularizers",
"def p08i(VKhi):\n GO00 = None\n Cdxv = ZylS.contrib.layers.l2_regularizer(0.0)\n if VKhi.weight_decay <= 0 and VKhi.weight_l1_decay <= 0:\n return None\n elif VKhi.weight_decay > 0 and VKhi.weight_l1_decay <= 0:\n GO00 = lambda NAS6, DQ_... | [
"0.7411847",
"0.68279064",
"0.6676551",
"0.6322452",
"0.6186255",
"0.6092687",
"0.60054207",
"0.5919706",
"0.58779",
"0.57519877",
"0.56099045",
"0.56012267",
"0.5574993",
"0.55115885",
"0.54647326",
"0.54638404",
"0.5416495",
"0.5410204",
"0.53483224",
"0.5346372",
"0.532113... | 0.6591277 | 3 |
Returns pwl layer regularizers defined in the model config. | def sTEs(dyeT):
wP4J = []
wP4J.extend(dyeT.regularizer_configs or [])
return [(Mkmy.name.replace(pWS5, ''), Mkmy.l1, Mkmy.l2) for Mkmy in wP4J if Mkmy.name.startswith(pWS5)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yjPc(YKHO):\n return YKHO._regularizers",
"def wPzC(dyeT):\n return [(Mkmy.name.replace(yk_M, ''), Mkmy.l1, Mkmy.l2) for Mkmy in dyeT.regularizer_configs or [] if Mkmy.name.startswith(yk_M)]",
"def p08i(VKhi):\n GO00 = None\n Cdxv = ZylS.contrib.layers.l2_regularizer(0.0)\n if VKhi.weight_de... | [
"0.760009",
"0.681618",
"0.65734094",
"0.64949244",
"0.6396738",
"0.6078129",
"0.5994849",
"0.5979941",
"0.58628047",
"0.5713522",
"0.56443894",
"0.56375265",
"0.5632975",
"0.5542852",
"0.54800516",
"0.5470375",
"0.5381639",
"0.53588974",
"0.5352665",
"0.53263897",
"0.5317601... | 0.61987674 | 5 |
Creates a mapping from feature name to `tf.keras.Input`. | def w_i3(HW3i, yDqo, aF4a=False):
vHnr = {}
ROpF = (None,) if aF4a else (1,)
for _3Ii in HW3i:
lzjZ = '{}_{}'.format(E4xn, _3Ii.name)
if _3Ii.num_buckets:
vHnr[_3Ii.name] = ZylS.keras.Input(shape=ROpF, ragged=aF4a, dtype=ZylS.int32, name=lzjZ)
else:
vHnr[_3Ii.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NPeO(C3ST):\n d8UA = {}\n for pKvt in C3ST.graph.input:\n d8UA[pKvt.name] = pKvt\n return d8UA",
"def t40E(bySB: List[str]) -> AzJI[dict, ZylS.keras.layers.DenseFeatures]:\n V5XR = []\n g4y1 = {}\n for RDhP in bySB:\n gEmA = ZylS.feature_column.numeric_column(RDhP)\n V5... | [
"0.74053955",
"0.6653268",
"0.65004265",
"0.628942",
"0.62666756",
"0.61972106",
"0.616973",
"0.6157981",
"0.6135863",
"0.61284137",
"0.61230975",
"0.6081052",
"0.6066172",
"0.60268235",
"0.59648305",
"0.59600395",
"0.5927564",
"0.59084207",
"0.58689475",
"0.5855335",
"0.5849... | 0.6597996 | 2 |
Returns list of monotonicities defined in the given feature_configs. | def Pb6v(HW3i):
SGXn = []
for _3Ii in HW3i:
if not _3Ii.monotonicity:
SGXn.append(0)
elif isinstance(_3Ii.monotonicity, jKi7.string_types) and _3Ii.monotonicity.lower() == 'none':
SGXn.append(0)
else:
SGXn.append(1)
return SGXn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CcUI(HW3i):\n OeUg = [_3Ii.name for _3Ii in HW3i]\n KUkW = []\n for VsQb, HXUl in enumerate(HW3i):\n for cEmU in HXUl.dominates or []:\n if cEmU.feature_name in OeUg:\n DZ1y = OeUg.index(cEmU.feature_name)\n if cEmU.dominance_type == 'monotonic':\n ... | [
"0.6801535",
"0.67067385",
"0.50152093",
"0.49617988",
"0.4809766",
"0.48068634",
"0.47921893",
"0.47866955",
"0.4783013",
"0.47786972",
"0.47526136",
"0.4738397",
"0.4691435",
"0.468551",
"0.46448538",
"0.4633132",
"0.4615228",
"0.4594277",
"0.459156",
"0.45704862",
"0.45628... | 0.8581969 | 0 |
Creates a `tfl.layers.Linear` layer initialized to be an average. | def RbnH(jP81, HW3i, dyeT, KiTx, EAXK, yDqo):
lzjZ = '{}_{}'.format(pasD, EAXK)
jP81 = ZylS.keras.layers.Concatenate(axis=1)(jP81)
ji9M = len(HW3i)
RG9Q = ZylS.keras.initializers.Constant([1.0 / ji9M] * ji9M)
wdin = ZylS.keras.initializers.Constant(0)
if KiTx:
yfp3 = [1] * ji9M
u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z8o0(i92A, Fmaf, mWFP='linear'):\n with ZylS.name_scope(mWFP):\n MY1T = i92A.get_shape()[1].value\n XcU5 = ZylS.Variable(ZylS.truncated_normal([MY1T, Fmaf], stddev=0.1))\n Fg_i = ZylS.Variable(ZylS.constant(0.1, shape=[Fmaf]))\n yvT9 = ZylS.add(ZylS.matmul(i92A, XcU5), Fg_i)\n ... | [
"0.6626631",
"0.64154845",
"0.6330438",
"0.61581",
"0.6090729",
"0.60620624",
"0.59369445",
"0.5923646",
"0.59205925",
"0.5894563",
"0.58891404",
"0.5854575",
"0.58487624",
"0.58444846",
"0.5840347",
"0.58346856",
"0.5785521",
"0.57807434",
"0.57696736",
"0.57554275",
"0.5743... | 0.6668367 | 0 |
Creates a `tfl.layers.Lattice` layer. | def UxkY(b_YV, HW3i, dyeT, JXBS, EAXK, hbsI, yDqo):
lzjZ = '{}_{}'.format(X3Ou, EAXK)
Er4x, ZliH, h2Rv, mK03 = OKc4(JXBS, dyeT)
OeUg = [_3Ii.name for _3Ii in HW3i]
D_bg = [_3Ii.lattice_size for _3Ii in HW3i]
_LGr = Pb6v(HW3i)
kSkb = [_3Ii.unimodality for _3Ii in HW3i]
xGyJ = hMPP(dyeT, HW3i)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U9eq(*qIxc):\n iz5W = ccKF.ls(sl=True)\n QnmL = iz5W[0]\n TuoA = iz5W[1:]\n TjAx.addToLattice(QnmL, TuoA)",
"def FIMM(YKHO, aPd6, paov=None):\n aPd6 = oyIN.asarray(aPd6)\n try:\n if len(aPd6) != 3:\n raise IndexError('HOOMDLattice is 3D')\n except TypeError:\n aP... | [
"0.67883027",
"0.64213866",
"0.6360778",
"0.61449146",
"0.612664",
"0.60151345",
"0.59712774",
"0.5782976",
"0.5770858",
"0.5760683",
"0.5732532",
"0.5717551",
"0.56940544",
"0.5685637",
"0.5658579",
"0.5627653",
"0.5621424",
"0.5608306",
"0.5593993",
"0.5571237",
"0.55365443... | 0.59448475 | 7 |
Creates a `tfl.layers.Linear` layer initialized to be an average. | def WsIb(B_k4, dyeT, yDqo):
if isinstance(B_k4, list):
ji9M = len(B_k4)
jP81 = ZylS.keras.layers.Concatenate(axis=1)(B_k4)
else:
ji9M = int(B_k4.shape[1])
jP81 = B_k4
RG9Q = ZylS.keras.initializers.Constant(1.0 / ji9M)
wdin = ZylS.keras.initializers.Constant(0)
if not... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RbnH(jP81, HW3i, dyeT, KiTx, EAXK, yDqo):\n lzjZ = '{}_{}'.format(pasD, EAXK)\n jP81 = ZylS.keras.layers.Concatenate(axis=1)(jP81)\n ji9M = len(HW3i)\n RG9Q = ZylS.keras.initializers.Constant([1.0 / ji9M] * ji9M)\n wdin = ZylS.keras.initializers.Constant(0)\n if KiTx:\n yfp3 = [1] * ji... | [
"0.66689545",
"0.66265255",
"0.6415024",
"0.6330545",
"0.6158119",
"0.6090656",
"0.60615844",
"0.59375596",
"0.5923278",
"0.59195936",
"0.58952945",
"0.58898973",
"0.5855268",
"0.5848882",
"0.5845317",
"0.5840174",
"0.5834014",
"0.57846206",
"0.5781007",
"0.57691216",
"0.5755... | 0.0 | -1 |
Verifies that a kronecker_factored model_config is properly specified. | def I7IC(dyeT):
for gKih in dyeT.regularizer_configs or []:
if not gKih.name.startswith(pWS5):
raise ValueError('KroneckerFactoredLattice layer does not currently support lattice regularizers.')
for _3Ii in dyeT.feature_configs:
for gKih in _3Ii.regularizer_configs or []:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FWfk(dyeT):\n if dyeT.feature_configs is None:\n raise ValueError('Feature configs must be fully specified.')\n if isinstance(dyeT, b32v.CalibratedLatticeEnsembleConfig):\n Zu3H(dyeT)\n if (isinstance(dyeT, b32v.CalibratedLatticeEnsembleConfig) or isinstance(dyeT, b32v.CalibratedLatticeC... | [
"0.68522304",
"0.6359141",
"0.60677165",
"0.5861158",
"0.57059324",
"0.5665905",
"0.564746",
"0.56355906",
"0.5627583",
"0.5604306",
"0.5593335",
"0.5555962",
"0.5538608",
"0.54941523",
"0.54862064",
"0.5481397",
"0.54633033",
"0.5446126",
"0.54437107",
"0.54437107",
"0.54102... | 0.8349287 | 0 |
Normalizes string, converts to lowercase, removes nonalpha characters, and converts spaces to hyphens. | def eIIt(BWXx):
import unicodedata
BWXx = unicodedata.normalize('NFKD', QMSQ(BWXx)).encode('ascii', 'ignore')
BWXx = QMSQ(ZbWC.sub('[^\\w\\s-]', '', BWXx).strip().lower())
BWXx = QMSQ(ZbWC.sub('[-\\s]+', '-', BWXx))
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I3lj(vIwR):\n return vIwR.lower().replace(' ', '')",
"def nJdR(YKHO, KCHu: str) -> str:\n return ''.join([Z9rn.lower() for Z9rn in KCHu if Z9rn.isalnum()])",
"def NkkI(vIwR: str) -> str:\n return Zf5h.only_word_characters(vIwR.replace(' ', '_')).lower()",
"def I3lj(YKHO, KCHu):\n KCHu = KCHu.... | [
"0.8029218",
"0.7946074",
"0.79025424",
"0.7899442",
"0.78420377",
"0.7749496",
"0.770306",
"0.76997316",
"0.7696814",
"0.76744884",
"0.7603861",
"0.7602859",
"0.75725883",
"0.7488892",
"0.734386",
"0.73276347",
"0.73267287",
"0.7325924",
"0.7323417",
"0.72931373",
"0.7279973... | 0.6972538 | 75 |
Determine whether this context is active | def ksfB(YKHO):
return YKHO.req and YKHO.perm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO):\n pass",
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n ... | [
"0.80081",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.7955989",
"0.... | 0.0 | -1 |
Sets the value of number_served | def IACx(YKHO, qXdp):
YKHO.number_served = qXdp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IACx(YKHO, qXdp):\n YKHO.number_served = qXdp",
"def IACx(YKHO, qXdp):\n YKHO.number_served = qXdp",
"def IACx(YKHO, qXdp):\n YKHO.number_served = qXdp",
"def IACx(YKHO, qXdp):\n YKHO.number_served = qXdp",
"def IACx(YKHO, qXdp):\n YKHO.number_served = qXdp",
"def IACx(YKHO, qXdp):\n ... | [
"0.8798833",
"0.8798833",
"0.8798833",
"0.8798833",
"0.8798833",
"0.8798833",
"0.8798833",
"0.8690063",
"0.8690063",
"0.8690063",
"0.8341803",
"0.8339329",
"0.83089525",
"0.8239343",
"0.81854516",
"0.81821764",
"0.81272006",
"0.8089195",
"0.8089195",
"0.8089195",
"0.8039973",... | 0.895108 | 0 |
set up centroids with custom center values or optimized center values | def EdTo(YKHO, yHxN=None, WIl5=False):
YKHO.__k_centroids = yHxN
if WIl5:
YKHO.__k_centroids = YKHO.__initialize_k_centorids_optimize() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GVna(YKHO):\n for YRbF in range(YKHO.Nk):\n OGl8 = YKHO.cluster_list[YRbF]\n assert OGl8.numel() > 0, 'no cluser should be empty'\n YKHO.centroids[YRbF] = YKHO.vectors[OGl8][:, :5].mean(dim=0)",
"def JeLQ(YKHO, yHxN):\n for bySB in range(YKHO.X.shape[0]):\n yWWA = YKHO.Eucli... | [
"0.74935836",
"0.74738073",
"0.744764",
"0.74172044",
"0.73210603",
"0.7316323",
"0.72998124",
"0.7264447",
"0.72607964",
"0.7258028",
"0.72104543",
"0.71753764",
"0.7173962",
"0.71493053",
"0.71105224",
"0.70851463",
"0.7084111",
"0.7083718",
"0.70541555",
"0.7039569",
"0.70... | 0.75047314 | 0 |
Load a pretrained model. | def Y7RH(pmON: os.PathLike, jehQ: str='main', fGgD: bool=False, *qIxc, **B2fa) -> zIWT:
GPtr = hyWS(pmON, branch=jehQ)
Ft4A(GPtr, allow_install=fGgD)
return zIWT(GPtr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DZeY():\n C3ST = YrZb()\n C3ST = x2M3(C3ST)\n return C3ST",
"def IMdJ():\n return uyMl(bNss)",
"def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ad8h = t2lc.load(pan_)\n return ad8h",
"def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ad8h... | [
"0.83049417",
"0.8144429",
"0.81352824",
"0.81352824",
"0.81352824",
"0.81065524",
"0.8036124",
"0.80251324",
"0.80168724",
"0.8014113",
"0.7996061",
"0.79800135",
"0.79675394",
"0.79640704",
"0.7958754",
"0.79301673",
"0.7917238",
"0.79078263",
"0.78647816",
"0.7841527",
"0.... | 0.0 | -1 |
Converts a set of scalars to colors, using the specified colormap. | def Ywfd(hT1Q, MynD=None, n4wC=None, iMGt=None):
if MynD is None:
MynD = min(hT1Q)
if n4wC is None:
n4wC = max(hT1Q)
import matplotlib as x5MY
vg0C = x5MY.cm.ScalarMappable(norm=x5MY.colors.Normalize(MynD, n4wC), cmap=iMGt)
return [vg0C.to_rgba(KCHu) for KCHu in hT1Q] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b2lb(hkxX, iMGt, eVjP=False):\n if eVjP:\n CkYf = x5MY.colors.LogNorm(vmin=min(hkxX), vmax=max(hkxX))\n else:\n CkYf = x5MY.colors.Normalize(vmin=min(hkxX), vmax=max(hkxX))\n iMGt = QrM1.cm.ScalarMappable(norm=CkYf, cmap=iMGt)\n um2A = [iMGt.to_rgba(Ty9i) for Ty9i in hkxX]\n return... | [
"0.68037134",
"0.6773657",
"0.6767204",
"0.6707254",
"0.6563642",
"0.6452613",
"0.6395363",
"0.6373236",
"0.6362742",
"0.6325074",
"0.6290126",
"0.6274967",
"0.62561506",
"0.6254095",
"0.6170895",
"0.61417896",
"0.61208886",
"0.61023253",
"0.5947021",
"0.59413135",
"0.5932184... | 0.77548254 | 0 |
Render website's home page. | def kZiy():
return TvZl('home.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n ... | [
"0.8819737",
"0.87510216",
"0.8623981",
"0.85968006",
"0.85968006",
"0.8572568",
"0.8558387",
"0.8558387",
"0.85493517",
"0.8526435",
"0.8490148",
"0.84834486",
"0.8475807",
"0.84743035",
"0.8473911",
"0.8462209",
"0.8437631",
"0.84287673",
"0.84192264",
"0.8419224",
"0.83994... | 0.83395684 | 49 |
Render the website's about page. | def vsuQ():
return TvZl('about.html', name='Mario Munroe') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n bo34.info('User visited the about page.')\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n bo34.debug('In about()')\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='about')",
"def vsuQ():\n ... | [
"0.8763036",
"0.8677626",
"0.8666991",
"0.8650025",
"0.8638193",
"0.86223155",
"0.8601017",
"0.8498177",
"0.8474175",
"0.8472615",
"0.8452931",
"0.84330356",
"0.8430345",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.8424... | 0.8023519 | 89 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also tell the browser not to cache the rendered page. If we wanted to we could change maxage to 600 seconds which would be 10 minutes. | def PYz4(geh0):
geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
geh0.headers['Cache-Control'] = 'public, max-age=0'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def P... | [
"0.81212044",
"0.81212044",
"0.81212044",
"0.81212044",
"0.81212044",
"0.81212044",
"0.81212044",
"0.81212044",
"0.81212044",
"0.81212044",
"0.8095009",
"0.80372995",
"0.80372995",
"0.80372995",
"0.80220646",
"0.79491967",
"0.7919785",
"0.7806821",
"0.7772796",
"0.7732107",
"... | 0.79962736 | 16 |
Get the TypeInfo instance for discriminator (see alchemist.type_info). | def FXKx(YKHO, nfgB):
from bungeni.alchemist import type_info
return type_info._get(nfgB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xxhW(YKHO):\n return YKHO.generalized",
"def nfgB(YKHO) -> str:\n return YKHO.__class__.__name__",
"def nfgB(YKHO):\n return '/'.join([YPaw.discriminator_info() for YPaw in YKHO.steps])",
"def nfgB(YKHO):\n raise NotImplementedError()",
"def nfgB(YKHO):\n raise NotImplementedError()",
... | [
"0.72317225",
"0.64780605",
"0.64075017",
"0.626036",
"0.626036",
"0.6137828",
"0.6072278",
"0.6071228",
"0.6005576",
"0.5892459",
"0.57605267",
"0.57605267",
"0.57605267",
"0.5619416",
"0.5619416",
"0.5619416",
"0.5569508",
"0.55488497",
"0.55172855",
"0.55172855",
"0.551728... | 0.8687584 | 0 |
Calculate the divisor sum of a number. This is the sum of all numbers that divide into the original number excluding the number itself. | def NDm_(exwG):
G1Hx = 2
Csk6 = exwG / G1Hx + 1
KCHu = 1
while G1Hx < Csk6:
if exwG % G1Hx == 0:
Csk6 = exwG // G1Hx
if G1Hx == Csk6:
KCHu = KCHu + G1Hx
else:
KCHu = KCHu + G1Hx + Csk6
G1Hx = G1Hx + 1
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NDm_(mLGw):\n return sum(eNCK.from_iterable(((WKvO, mLGw / WKvO) for WKvO in Ni9Y(1, int(mLGw ** 0.5) + 1) if mLGw % WKvO == 0))) - mLGw",
"def NDm_(exwG):\n oCcr = [1]\n CN9P = int(epAf.sqrt(exwG))\n for YRbF in range(2, CN9P + 1):\n if exwG % YRbF == 0:\n oCcr.append(YRbF)\n ... | [
"0.79652005",
"0.74665743",
"0.7416669",
"0.73871225",
"0.7297614",
"0.7289407",
"0.7129319",
"0.7113458",
"0.6963864",
"0.6850159",
"0.68150246",
"0.6811847",
"0.6603288",
"0.6532243",
"0.65213346",
"0.65209955",
"0.6490602",
"0.64297664",
"0.6416119",
"0.64045805",
"0.63615... | 0.7418252 | 2 |
Computes the backward pass for an affine layer. | def Kt1o(zYcP, wyyA):
WKvO, yzQ0, Fg_i = wyyA
Jw7X = zYcP.dot(yzQ0.T)
Jw7X = Jw7X.reshape(WKvO.shape)
ncXl = WKvO.reshape(WKvO.shape[0], yzQ0.shape[0]).T.dot(zYcP)
NCls = oyIN.sum(zYcP, axis=0)
return (Jw7X, ncXl, NCls) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kt1o(zYcP, wyyA):\n WKvO, yzQ0, Fg_i = wyyA\n Jw7X, ncXl, NCls = (None, None, None)\n Jw7X = zYcP.dot(yzQ0.T).reshape(WKvO.shape)\n ncXl = WKvO.reshape(WKvO.shape[0], -1).T.dot(zYcP)\n NCls = oyIN.ones((1, zYcP.shape[0])).dot(zYcP)\n return (Jw7X, ncXl, NCls)",
"def Kt1o(zYcP, wyyA):\n W... | [
"0.7367227",
"0.736628",
"0.7323197",
"0.73159564",
"0.73159564",
"0.7301899",
"0.7301899",
"0.7301899",
"0.7301899",
"0.7301899",
"0.72943676",
"0.7286096",
"0.72494674",
"0.724204",
"0.722342",
"0.71987003",
"0.7157005",
"0.71336675",
"0.70535904",
"0.70512074",
"0.7048717"... | 0.71177804 | 18 |
Computes the forward pass for a layer of rectified linear units (ReLUs). | def wN5Y(WKvO):
yvT9 = oyIN.maximum(0, WKvO)
wyyA = WKvO
return (yvT9, wyyA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n WKvO = ht2j.from_numpy(WKvO).type(ht2j.FloatTensor).unsqueeze(0)\n WKvO = ht2j.autograd.Variable(WKvO)\n WKvO = vuvg.relu(YKHO.l1(WKvO))\n WKvO = YKHO.l2(WKvO)\n return WKvO",
"def KVH6(YKHO, WKvO: Tensor) -> llWB:\n return StA9.reglu(WKvO)",
"def drfk(YKHO):\n\n de... | [
"0.6679781",
"0.66286653",
"0.6547163",
"0.6460596",
"0.64428824",
"0.64364123",
"0.63979214",
"0.6371656",
"0.6319996",
"0.63163096",
"0.6305067",
"0.6300998",
"0.62817127",
"0.62416285",
"0.62340057",
"0.6208523",
"0.6186704",
"0.61818707",
"0.6181222",
"0.61805546",
"0.618... | 0.5905232 | 50 |
Calculate the area of a page. | def B8s9(B2Dn: tifffile.TiffPage) -> float:
return oyIN.prod(YKHO._canonical_shape(B2Dn.shape)[:2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aw0V(YKHO):\n pass",
"def sAdl(YKHO):\n return YKHO.height * YKHO.big_side",
"def f0tD(YKHO):\n return YKHO.__width * YKHO.__height",
"def f0tD(YKHO):\n return YKHO.__width * YKHO.__height",
"def f0tD(YKHO):\n return YKHO.width() * YKHO.height()",
"def f0tD(YKHO):\n f0tD = YKHO.__wi... | [
"0.7368129",
"0.68983954",
"0.68799615",
"0.68799615",
"0.68693066",
"0.6845802",
"0.683033",
"0.683033",
"0.68191135",
"0.68191135",
"0.68191135",
"0.6808925",
"0.67981625",
"0.6796637",
"0.6796637",
"0.6796637",
"0.6796637",
"0.677446",
"0.677446",
"0.677446",
"0.677446",
... | 0.7762803 | 0 |
Promotes a value from an index until the minheap invariant is maintained. | def Mhbv(ezWE, d6pt):
ICDs = farq(d6pt)
if ICDs < 0:
return
if ezWE[ICDs] <= ezWE[d6pt]:
return
ezWE[ICDs], ezWE[d6pt] = (ezWE[d6pt], ezWE[ICDs])
Mhbv(ezWE, ICDs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DXM1(YKHO, d6pt):\n Gfgs = 0\n R5fp = YKHO._leftChild(d6pt)\n yJWl = YKHO._rightChild(d6pt)\n while not R5fp >= YKHO.size and (not Gfgs):\n if yJWl >= YKHO.size or YKHO.heap[R5fp][1] < YKHO.heap[yJWl][1]:\n koms = R5fp\n else:\n koms = yJWl\n ZbOB = YKHO.h... | [
"0.64709854",
"0.64027834",
"0.63824034",
"0.637216",
"0.62997717",
"0.6198004",
"0.618164",
"0.6084911",
"0.60525364",
"0.60237765",
"0.60077715",
"0.5990478",
"0.59658307",
"0.596338",
"0.5962651",
"0.5936539",
"0.5924886",
"0.59222615",
"0.5917749",
"0.5901498",
"0.5881298... | 0.0 | -1 |
get a MD5 code of a file | def Ezgy(VwQk='/cos_person/275/1745/object_detection/test'):
Hy7s.system('md5sum ' + VwQk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sKcI(qaEx):\n return Hy7s.popen('md5sum {}'.format(qaEx)).read().split()[0]",
"def s704(Id76):\n with open(Id76, 'rb') as XR7g:\n tZKo = XR7g.read()\n NStD = HBct.md5(tZKo).hexdigest()\n return NStD",
"def vkAf(Ux0P):\n return vFhS(Ux0P, 'md5')",
"def UcYW(IBQ2: bytes) -> str:\n... | [
"0.8515452",
"0.8360945",
"0.83552694",
"0.83093697",
"0.8302083",
"0.82727414",
"0.82527137",
"0.8187167",
"0.8181111",
"0.81701607",
"0.8167596",
"0.8160878",
"0.81200945",
"0.8113529",
"0.8108516",
"0.81044847",
"0.8103567",
"0.80814564",
"0.8054924",
"0.80143595",
"0.8011... | 0.8391416 | 1 |
Convert degrees to quaternions | def Omrx(rKSe=0.0, H2HG=0.0, xTkQ=0.0):
lGE9 = epAf.cos(epAf.radians(xTkQ * 0.5))
n2Q1 = epAf.sin(epAf.radians(xTkQ * 0.5))
SpII = epAf.cos(epAf.radians(rKSe * 0.5))
WotO = epAf.sin(epAf.radians(rKSe * 0.5))
RtYL = epAf.cos(epAf.radians(H2HG * 0.5))
WfMD = epAf.sin(epAf.radians(H2HG * 0.5))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Omrx(A3Vt):\n if A3Vt[2, 2] < 0:\n if A3Vt[0, 0] > A3Vt[1, 1]:\n a1PO = 1 + A3Vt[0, 0] - A3Vt[1, 1] - A3Vt[2, 2]\n vexM = [a1PO, A3Vt[0, 1] + A3Vt[1, 0], A3Vt[2, 0] + A3Vt[0, 2], A3Vt[1, 2] - A3Vt[2, 1]]\n else:\n a1PO = 1 - A3Vt[0, 0] + A3Vt[1, 1] - A3Vt[2, 2]... | [
"0.711609",
"0.704031",
"0.7038563",
"0.7027716",
"0.70010227",
"0.6979709",
"0.6979709",
"0.6979709",
"0.6979709",
"0.69104743",
"0.6890512",
"0.6889934",
"0.68815696",
"0.68737876",
"0.6857042",
"0.68511313",
"0.68426126",
"0.6830686",
"0.68291146",
"0.68227094",
"0.6801426... | 0.0 | -1 |
Returns the Compton cooling rate. | def _Ekh(twsj, PDyU, HR9I, epEI, H0q3):
mKKX = twsj + PDyU + 2 * HR9I
return 4 * n86k.thomson_xsec * 4 * n86k.stefboltz / n86k.me * mKKX * n86k.nH * H0q3 ** 3 * (n86k.TCMB(H0q3) - epEI) * n86k.TCMB(H0q3) ** 4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EMjs(YKHO):\n return YKHO.coupon_per_year / YKHO.face_value",
"def MkT0(PXf5):\n if Fi1l == 'TICKER CURRENCY':\n print(f'Display values in {PXf5}')\n mQ3a = 1\n return mQ3a\n mQ3a = MGXH(f'{PXf5}{Fi1l}=X').get_current_price()\n print(f'Conversion Rate from {PXf5} to {Fi1l}: {... | [
"0.6938454",
"0.67341214",
"0.6410542",
"0.63993126",
"0.6367088",
"0.6344316",
"0.6305234",
"0.6299843",
"0.6282493",
"0.62515694",
"0.6246019",
"0.6239849",
"0.62052345",
"0.6195723",
"0.61918724",
"0.61818725",
"0.6173977",
"0.6163445",
"0.6158847",
"0.61490864",
"0.614273... | 0.71929383 | 0 |
Read a file and return its contents as a string. | def Nwr9(pmON):
with open(pmON, 'r') as eHNT:
return eHNT.read() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oQFW(Ux0P: str) -> str:\n with open(Ux0P, 'r', newline='') as eHNT:\n return eHNT.read()",
"def Nwr9(IznC) -> str:\n with open(IznC, 'r') as eHNT:\n hGN5 = eHNT.read()\n return hGN5",
"def Ueki(nUeQ):\n eHNT = open(str(nUeQ), 'r')\n vIwR = eHNT.read()\n eHNT.close()\n ret... | [
"0.84154207",
"0.8253077",
"0.81805223",
"0.81538624",
"0.8151872",
"0.813079",
"0.80852556",
"0.80800396",
"0.8014532",
"0.80110765",
"0.80066806",
"0.79961807",
"0.7986695",
"0.79777217",
"0.7975444",
"0.79730535",
"0.79656523",
"0.79510313",
"0.79367757",
"0.7916067",
"0.7... | 0.76208556 | 82 |
Computes average value for a list of values. average(data_list) > average | def S8vG(UrXw):
if UrXw is None:
return None
S8vG = 0.0
Od29 = len(UrXw)
for ZfUD in UrXw:
S8vG += ZfUD
return float(S8vG / Od29) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(UrXw):\n return sum(UrXw) / len(UrXw)",
"def S8vG(nPrm):\n hkxX = (BWXx.value for BWXx in nPrm)\n return sum(hkxX) / len(nPrm)",
"def cpCA(bM03):\n return sum(bM03) / len(bM03)",
"def AWoK(UrXw):\n HXjU = len(UrXw.iloc[:, 0])\n Hvvh = oyIN.zeros(HXjU)\n for YRbF in range(1, len(... | [
"0.82300764",
"0.7872508",
"0.782035",
"0.77997714",
"0.775469",
"0.7750149",
"0.773929",
"0.76054823",
"0.7564911",
"0.7543311",
"0.7461045",
"0.7456793",
"0.7450234",
"0.743728",
"0.7400392",
"0.7399172",
"0.7385992",
"0.7373491",
"0.7373491",
"0.7373491",
"0.7373491",
"0... | 0.82678413 | 0 |
Sets the object_uuid of this Permission. | def AFbJ(YKHO, AFbJ):
if AFbJ is None:
raise ValueError('Invalid value for `object_uuid`, must not be `None`')
YKHO._object_uuid = AFbJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, ... | [
"0.6468844",
"0.6468844",
"0.6468844",
"0.6468844",
"0.6468844",
"0.6468844",
"0.6468844",
"0.6468844",
"0.6468844",
"0.6468844",
"0.63889134",
"0.62956715",
"0.62956715",
"0.6259963",
"0.61880094",
"0.6164466",
"0.6134",
"0.60741055",
"0.59201944",
"0.5902244",
"0.5842807",
... | 0.6789273 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.864179",
"0.85105866",
"0.7853924",
"0.77452",
"0.7712474",
"0.76976854",
"0.76601666",
"0.7638181",
"0.7621996",
"0.76074743",
"0.76074743",
"0.76074743",
"0.7607432",
"0.7599404",
"0.75858897",
"0.7582702",
"0.75715727",
"0.75683635",
"0.7539386",
"0.7539386",
"0.7528709... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 67 |
This method is used to identify the max valued card played in the round, and the player who played that card. This method also helps identify the tie in any given round. | def bHVe(YKHO):
YKHO.show_pot()
hkxX = [dxhl.get_face_value() for dxhl in YKHO.cards]
YKHO.best = max(hkxX)
if hkxX.count(YKHO.best) == 1:
return YKHO.players[hkxX.index(YKHO.best)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aL4A(YKHO):\n bHVe = None\n CZGf = {}\n khoC = []\n print('Manilha: ', YKHO.manilha)\n it0p = {}\n for oyg0, eIGz in YKHO.cards_round.items():\n if eIGz['visible'] == True:\n khoC.append(eIGz['card'])\n it0p[eIGz['card'].name] = oyg0\n print('Jogador: {... | [
"0.7346182",
"0.70684177",
"0.697205",
"0.6858303",
"0.6748208",
"0.6700249",
"0.6643163",
"0.6632927",
"0.6617374",
"0.66011393",
"0.65494317",
"0.6541143",
"0.654003",
"0.64994335",
"0.6488664",
"0.6487101",
"0.6429061",
"0.6400535",
"0.6374134",
"0.6364206",
"0.63620317",
... | 0.72334963 | 1 |
In case of a tie this method provides player only those players that are involved in the tie and have the highest ranking card. | def ipvS(YKHO):
for dxhl, oyg0 in zip(YKHO.cards, YKHO.players):
if dxhl.get_face_value() == YKHO.best:
yield oyg0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHVe(YKHO):\n YKHO.show_pot()\n hkxX = [dxhl.get_face_value() for dxhl in YKHO.cards]\n YKHO.best = max(hkxX)\n if hkxX.count(YKHO.best) == 1:\n return YKHO.players[hkxX.index(YKHO.best)]",
"def Sa_J(Bwa6):\n sSaq = 0\n for XP5J in Bwa6:\n sSaq = max(sSaq, max(XP5J.get_cards()... | [
"0.74411213",
"0.7411492",
"0.69441783",
"0.68650424",
"0.6799415",
"0.6770343",
"0.67609817",
"0.670453",
"0.65580773",
"0.6496278",
"0.64559585",
"0.6442562",
"0.6414329",
"0.6412205",
"0.6400243",
"0.6350912",
"0.63357365",
"0.6316805",
"0.6296637",
"0.62956274",
"0.628377... | 0.6866642 | 3 |
Return a test data_store_pb2.Project. | def bNKA():
return lHIJ.Project(project_id=npPl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7Yi(YKHO):\n MCdC = zqzB.create_project()\n MCdC.put()\n geh0 = YKHO._make_api_call('get_projects')\n aEqx = {u'items': [MCdC.ToMessage()]}\n _hkX = zqzB.convert_items_to_protos(FYrf.Project, geh0.json)\n YKHO.assertEqual(aEqx, _hkX)",
"def FeZT(O0al) -> oPx1:\n yIVm = nf3z(ref_time='20... | [
"0.6676337",
"0.6614821",
"0.64257306",
"0.62103754",
"0.6173334",
"0.61308765",
"0.60099083",
"0.6005177",
"0.6005177",
"0.59979236",
"0.5969289",
"0.59667146",
"0.5959702",
"0.59457684",
"0.5922154",
"0.58999",
"0.58999",
"0.5829975",
"0.5829975",
"0.5809608",
"0.58048445",... | 0.8506612 | 0 |
Return a test data_store_pb2.Session. | def cuiw():
return lHIJ.Session(project_id=npPl, brain_id=t8JK, session_id=ZzfR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gte4(QePW, QpfX, SGXC):\n G9jH.debug('CreateSession called for project_id %s with session_spec %s.', QePW.project_id, str(QePW.spec))\n ASWP, c4uF = Gm3e(QePW.spec, SGXC)\n l7nX = None\n if c4uF:\n l7nX = SGXC.read_by_proto_ids(project_id=QePW.spec.project_id, brain_id=QePW.spec.brain_id, se... | [
"0.6682909",
"0.6431527",
"0.6431527",
"0.6431527",
"0.6431527",
"0.6365714",
"0.6345317",
"0.6345317",
"0.62268454",
"0.62268454",
"0.60646766",
"0.5957892",
"0.5927179",
"0.59225124",
"0.59191805",
"0.58728236",
"0.58298695",
"0.5826356",
"0.5809175",
"0.58068246",
"0.58019... | 0.83416086 | 0 |
Read the contents of a text file relative into a string. | def mO57(Ux0P):
with open(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), Ux0P), mode='rt') as o1P6:
return o1P6.read() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcVp(qaEx):\n LFxn = open(qaEx).read()\n return LFxn",
"def m_k2(gIsw) -> str:\n if isinstance(gIsw, str):\n gIsw = GkAb(gIsw)\n with gIsw.open('r', encoding='utf-8') as GJvs:\n return GJvs.read()",
"def LkPQ(pmON):\n with pmON.open() as eHNT:\n return eHNT.read()",
"d... | [
"0.8018903",
"0.7863969",
"0.77205014",
"0.7715354",
"0.76596236",
"0.76429176",
"0.76257455",
"0.7622294",
"0.7596484",
"0.7591958",
"0.7585442",
"0.7567516",
"0.7551522",
"0.75359994",
"0.7525267",
"0.7524812",
"0.7494454",
"0.74858415",
"0.7477213",
"0.7467884",
"0.7453037... | 0.76931024 | 4 |
9 ('theta', 1.5707963267947298), 11 10('phi', 3.917022130300791), 11 11 ('Chi', 3.141764102329608), 11 12 ('theta', 1.570796326795287), 12 13 ('phi', 3.1415926535902767), 12 14('Chi', 3.141592653591482), 12 15 ('theta', 1.570796326795087), 13 16('phi', 3.1415926535899237), 13 17 ('Chi', 3.141592653590946), 13 18('rOH5'... | def SaSQ(ZJe_, anY0, YiwH):
q7In = YiwH[6]
rVnq = YiwH[7]
Ei2p = YiwH[8]
WNpW = YNpb(q7In, rVnq, Ei2p)
J1b4 = anY0[0]
CYjz = anY0[1]
lbHk = anY0[2]
ZJe_ = NOGC(ZJe_, J1b4, CYjz, lbHk, 1, 6, 5, WNpW)
q7In = YiwH[0]
rVnq = YiwH[1]
Ei2p = YiwH[2]
WNpW = YNpb(q7In, rVnq, Ei2p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rVnq():\n rVnq = {}\n for KYXQ, BkYD in nPrm().items():\n YRSS = BkYD['oxidised']\n ZbWC = BkYD['reduced']\n gLHi = KYXQ.split('/')\n if YRSS in [gLHi[0]]:\n S9E6 = 1\n else:\n S9E6 = int(gLHi[0][0])\n if ZbWC in [gLHi[1]]:\n v4v8... | [
"0.5917082",
"0.5561643",
"0.55035293",
"0.5352966",
"0.5282912",
"0.5259856",
"0.52539355",
"0.5251593",
"0.5245637",
"0.5240968",
"0.5240961",
"0.5239904",
"0.5234107",
"0.5220706",
"0.51756144",
"0.51705676",
"0.5169977",
"0.51629794",
"0.51270366",
"0.51242584",
"0.510714... | 0.0 | -1 |
Push element x onto stack. | def _jXH(YKHO, WKvO: int) -> None:
jbXL = [WKvO]
while len(YKHO.que) > 0:
jbXL.append(YKHO.que[0])
YKHO.que = YKHO.que[1:]
while len(jbXL) > 0:
YKHO.que.append(jbXL[0])
jbXL = jbXL[1:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, WKvO):\n YKHO.in_stack.append(WKvO)",
"def _jXH(YKHO, WKvO):\n ycBG = S9Ut()\n while not YKHO.stack.empty():\n U6D_ = YKHO.stack.pop()\n ycBG.push(U6D_)\n YKHO.stack.push(WKvO)\n while not ycBG.empty():\n U6D_ = ycBG.pop()\n YKHO.stack.push(U6D_)\n ret... | [
"0.8884891",
"0.88815904",
"0.8851905",
"0.8829994",
"0.8825823",
"0.87915844",
"0.8784638",
"0.8781226",
"0.8723327",
"0.87200546",
"0.87101483",
"0.8696664",
"0.86889726",
"0.8672952",
"0.86561507",
"0.86259526",
"0.8610324",
"0.86102635",
"0.860013",
"0.860013",
"0.8581793... | 0.7547495 | 68 |
Removes the element on top of the stack and returns that element. | def BEuN(YKHO) -> int:
cntZ = YKHO.que[0]
YKHO.que.pop(0)
return cntZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN():\n global top\n if A4KR():\n return None\n U6D_ = E5BI[tlxW]\n E5BI[tlxW] = None\n BAMb[tlxW] = None\n tlxW -= 1\n return U6D_",
"def BEuN(E5BI):\n LihS = E5BI.elements[-1]\n del E5BI.elements[-1]\n return LihS",
"def BEuN(YKHO):\n ZfUD = YKHO.stack.pop()\n ... | [
"0.832716",
"0.8277988",
"0.8208074",
"0.81674314",
"0.8130376",
"0.80917484",
"0.80613667",
"0.8014944",
"0.7951298",
"0.79424894",
"0.79300785",
"0.78773177",
"0.78707695",
"0.78481823",
"0.78237176",
"0.779846",
"0.7790845",
"0.77844834",
"0.77712166",
"0.77712166",
"0.777... | 0.0 | -1 |
Returns whether the stack is empty. | def lsmZ(YKHO) -> bool:
return len(YKHO.que) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def A4K... | [
"0.9126978",
"0.9126978",
"0.90876496",
"0.90876496",
"0.90876496",
"0.9052944",
"0.9015707",
"0.9015707",
"0.9006567",
"0.8951908",
"0.89479893",
"0.89479893",
"0.893664",
"0.89354557",
"0.89204985",
"0.8882804",
"0.8874094",
"0.8868284",
"0.88425523",
"0.8795274",
"0.879193... | 0.0 | -1 |
Convert a python dict to a Max message filling a dict object | def N3km(Op6c):
str = ''
for G1Hx, Ty9i in Op6c.items():
str += ', set %s %s' % (G1Hx, pMVb(Ty9i))
return str[2:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SsDh(YKHO):\n YKHO.assertEqual(qOmX({0: -3, 1: 1.5, 2: 5}), 5)",
"def P4zA(Csk6):\n yew8 = float('-inf')\n for H5ew, wEf2 in Csk6.items():\n if wEf2 > yew8:\n yew8 = wEf2\n xCk5 = H5ew\n return (xCk5, yew8)",
"def X7jy(YKHO, kjkd):\n YW6D = ','\n for G1Hx, Ty9... | [
"0.63836783",
"0.5894115",
"0.5892577",
"0.58371884",
"0.58302355",
"0.57940984",
"0.57940984",
"0.57885325",
"0.574804",
"0.57348466",
"0.57074326",
"0.57064354",
"0.56812215",
"0.56510526",
"0.5646261",
"0.56293184",
"0.56116194",
"0.56110173",
"0.5596349",
"0.55942625",
"0... | 0.0 | -1 |
Wrapper for inserting int64 features into Example proto. | def xJYY(BWXx):
if not isinstance(BWXx, list):
BWXx = [BWXx]
return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wgnv(PU1l, BZ2A, kAne):\n PU1l.features.feature[BZ2A].int64_list.value.append(kAne)",
"def Oety(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))",
"def Oety(BWXx):\n BWXx = int(BWXx)\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))",
... | [
"0.7374892",
"0.73494405",
"0.73194486",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301704",
"0.7300591",
"0.72966045",
"0.72966045",
"0.72966045"... | 0.7075945 | 89 |
Function to convert image to a 4D tensor to supply as input for the keras model (tensorflow backend) | def KlI5(QMAG):
VXjJ = LNo8.load_img(QMAG, grayscale=True, target_size=(64, 64))
VOC_ = LNo8.img_to_array(VXjJ)
VOC_ = VOC_.astype('float32') / 255
return oyIN.expand_dims(VOC_, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jlex(YKHO, p4m8):\n VXjJ = LNo8.load_img(p4m8, target_size=(32, 32))\n WKvO = LNo8.img_to_array(VXjJ)\n return oyIN.expand_dims(WKvO, axis=0)",
"def Jlex(p4m8):\n VXjJ = LNo8.load_img(p4m8, target_size=(s3Vn, PLSm))\n WKvO = LNo8.img_to_array(VXjJ)\n return oyIN.expand_dims(WKvO, axis=0)",
... | [
"0.72438425",
"0.7225754",
"0.72080755",
"0.71086717",
"0.70275396",
"0.70015204",
"0.6922415",
"0.690661",
"0.6806557",
"0.6802061",
"0.6735887",
"0.670369",
"0.67000145",
"0.66741717",
"0.66684717",
"0.661516",
"0.66109276",
"0.65749514",
"0.6556429",
"0.6519303",
"0.649126... | 0.7006495 | 5 |
Provides a view for the profile of a logged in user. | def z39Z(QePW):
if QePW.user.is_active:
return YVbt(QePW, QePW.user.username)
else:
return igJ6('Not Authenticated') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YxIp():\n CBIr = mv1M.query.get_or_404(Oa1e.user.id)\n return TvZl('/user/profile.html', user=CBIr)",
"def z39Z():\n uJjO = cuiw['logged_in']\n c5ow = mv1M.query.get(uJjO)\n return TvZl('profile.html', current_user=c5ow)",
"def SGll(QePW):\n CBIr = QePW.user\n return _1tc(QePW, 'user_p... | [
"0.88185793",
"0.85563004",
"0.8422944",
"0.83457446",
"0.8326007",
"0.8274032",
"0.8242614",
"0.82414246",
"0.8195922",
"0.81757057",
"0.81741065",
"0.8167418",
"0.8039927",
"0.8037801",
"0.8034178",
"0.80284435",
"0.802509",
"0.802509",
"0.8015183",
"0.80135614",
"0.7955007... | 0.8313793 | 5 |
Provides a view for the profile of a logged in user. | def ZJNt(QePW):
QpfX = K1Ja(QePW, {'message': []})
if QePW.method == 'POST':
ID36 = QePW.POST['type']
if ID36 == 'SINGLE':
A9IP = t5Yq(QePW.POST['username'])
c9ua = t5Yq(QePW.POST['firstname'])
zp3f = t5Yq(QePW.POST['lastname'])
IJ4N = t5Yq(QePW.PO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YxIp():\n CBIr = mv1M.query.get_or_404(Oa1e.user.id)\n return TvZl('/user/profile.html', user=CBIr)",
"def z39Z():\n uJjO = cuiw['logged_in']\n c5ow = mv1M.query.get(uJjO)\n return TvZl('profile.html', current_user=c5ow)",
"def SGll(QePW):\n CBIr = QePW.user\n return _1tc(QePW, 'user_p... | [
"0.88184613",
"0.85565007",
"0.8423549",
"0.8346096",
"0.83263326",
"0.8314389",
"0.82745516",
"0.82432705",
"0.8241775",
"0.8196496",
"0.8175976",
"0.81747717",
"0.81681025",
"0.8040178",
"0.8037947",
"0.80348045",
"0.8028588",
"0.8025244",
"0.8025244",
"0.80150145",
"0.8013... | 0.0 | -1 |
Provides a view to edit a single user. | def Bbqu(QePW, CBIr):
Rfi3 = mv1M.objects.get(username__exact=CBIr)
if not Rfi3 == QePW.user and (not QePW.user.is_staff):
return vKnz('PubSite.views.permission_denied')
if QePW.method == 'POST':
L03z = C6oN(QePW.POST, instance=Rfi3.userinfo)
if L03z.is_valid():
L03z.save... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bbqu(uJjO):\n return TvZl('users/edit.html', user=mv1M.query.get_or_404(uJjO))",
"def GFx6(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('User_Edit_Page.html', user=CBIr)",
"def sA2_(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('edit.html', user=CBIr)",
"def Bbqu(n... | [
"0.8603212",
"0.8552152",
"0.8437537",
"0.8287785",
"0.823854",
"0.8229611",
"0.82262355",
"0.8171539",
"0.81256354",
"0.80677795",
"0.80617756",
"0.80126786",
"0.7991142",
"0.79780674",
"0.7963328",
"0.78774107",
"0.7831318",
"0.7808879",
"0.77597076",
"0.7689034",
"0.766124... | 0.7558282 | 22 |
Initialize python List with size of 10 or user given input. Python List type is a dynamic array, so we have to restrict its dynamic nature to make it work like a static array. | def FIMM(YKHO, zNig=10):
mvQt.__init__(YKHO)
YKHO.array = [None] * zNig
YKHO.front = 0
YKHO.rear = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, sL7f):\n YKHO.size = sL7f // 31 + 1\n YKHO.array = [0] * YKHO.size",
"def AHvH(zNig, a4X8=0):\n return [a4X8] * zNig",
"def FIMM(YKHO, gJ7X: int):\n YKHO.alist = list(range(gJ7X))",
"def jXVX():\n vC9B = [0] * 10\n print(vC9B)",
"def FIMM(YKHO, zNig):\n YKHO.l = []\n ... | [
"0.7514756",
"0.68858755",
"0.6802627",
"0.6797426",
"0.67372876",
"0.6710783",
"0.6705106",
"0.6668599",
"0.65862143",
"0.65650713",
"0.65475434",
"0.6529218",
"0.6521475",
"0.64393926",
"0.64255667",
"0.64255667",
"0.64195305",
"0.63961154",
"0.63905394",
"0.63827133",
"0.6... | 0.0 | -1 |
Utility property that returns the total number of parameters of NeuralModule. | def eH58(YKHO):
mLGw: int = 0
for XP5J in YKHO.parameters():
if XP5J.requires_grad:
mLGw += XP5J.numel()
return mLGw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gi2P(YKHO):\n return sum(YKHO.n_params)",
"def gi2P(YKHO):\n return sum(YKHO.n_params)",
"def M0zs(YKHO):\n return sum((XP5J.numel() for XP5J in YKHO.parameters()))",
"def M0zs(YKHO):\n return sum((XP5J.numel() for XP5J in YKHO.parameters()))",
"def M0zs(YKHO):\n return sum((xqoZ.numel()... | [
"0.8477301",
"0.8477301",
"0.84396845",
"0.84396845",
"0.84167767",
"0.836024",
"0.8356508",
"0.8356508",
"0.83199537",
"0.8271618",
"0.82257044",
"0.8199536",
"0.8135306",
"0.8135306",
"0.81287426",
"0.8070178",
"0.8050213",
"0.8033392",
"0.8031594",
"0.7984301",
"0.79760987... | 0.0 | -1 |
Checks to see if two formal complexes (reaction input or output sets) are equal. | def zlQq(dg7v, NQQZ, iYf1, S1bc):
if len(dg7v) != len(iYf1):
return False
else:
for YRbF in range(len(dg7v)):
j93S = dg7v[YRbF]
EZDW = NQQZ[YRbF]
if j93S not in iYf1 or EZDW != S1bc[iYf1.index(j93S)]:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXOS():\n oL_K = [False, False, False, True, False]\n g7uC = []\n for YRbF in range(kqZo):\n if isinstance(N_8Z[YRbF], (float, int)):\n Rtnc = mHH_(N_8Z[YRbF])\n else:\n Rtnc = mHH_(N_8Z[YRbF][0], N_8Z[YRbF][1])\n if isinstance(aZ7U[YRbF], (float, int)):\n ... | [
"0.72864336",
"0.700845",
"0.6757748",
"0.6692337",
"0.66718227",
"0.6571697",
"0.6506649",
"0.6496166",
"0.64952576",
"0.648495",
"0.6475314",
"0.6452974",
"0.63959205",
"0.6375765",
"0.6357558",
"0.6354152",
"0.63525134",
"0.63211685",
"0.6312958",
"0.6285422",
"0.62720335"... | 0.71518517 | 1 |
Creates a Wide Residual Network with specified parameters | def AIgw(Gzv5, Ybg9=100, ywwl=2, G1Hx=1, hr1G=0.0, PJWX=1):
UJgg = 1 if nMvt.image_data_format() == 'channels_first' else -1
D8Ke = X6a0(shape=Gzv5)
WKvO = mREb(D8Ke)
a5sD = 4
WKvO = YX62(WKvO, 16, G1Hx)
a5sD += 2
for YRbF in range(ywwl - 1):
WKvO = zbvx(WKvO, G1Hx, hr1G)
a5s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def naJe(**B2fa):\n return CLgi('wide_resnet101_2', **B2fa)",
"def AIgw(Gzv5, Ybg9=10, ywwl=2, G1Hx=1, hr1G=0.0, PJWX=1):\n UJgg = 1 if nMvt.image_data_format() == 'channels_first' else -1\n b6Om = X6a0(shape=Gzv5)\n WKvO = mREb(b6Om)\n a5sD = 4\n WKvO = YX62(WKvO, 16, G1Hx)\n for YRbF in ra... | [
"0.6838616",
"0.67497855",
"0.6529774",
"0.652093",
"0.6501106",
"0.6501106",
"0.6501106",
"0.65010846",
"0.6491291",
"0.6482949",
"0.64251196",
"0.6321116",
"0.6257544",
"0.62431294",
"0.6232401",
"0.61768514",
"0.6169994",
"0.6147388",
"0.60770476",
"0.60770476",
"0.6077047... | 0.70791936 | 0 |
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter. | def cfQO(ch9c: dict, QpfX) -> dict:
na1r.debug(repr(ch9c))
tvqc = CKXX.LambdaEvent(ch9c)
na1r.info('Start Lambda Event for event.session.application.applicationId=%s', tvqc.session.application.application_id)
if tvqc.session.application.application_id != ZNCf:
raise ValueError('Invalid Applicati... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])... | [
"0.6919228",
"0.6762499",
"0.65828645",
"0.6490292",
"0.645727",
"0.637779",
"0.62864256",
"0.62710816",
"0.62686974",
"0.62461996",
"0.6219076",
"0.6215725",
"0.61949486",
"0.6179929",
"0.6152384",
"0.61419386",
"0.6133499",
"0.613178",
"0.60512537",
"0.6010108",
"0.59821844... | 0.0 | -1 |
Return the kwargs used to create this element. | def wpLl(YKHO) -> laHg.Dict[str, laHg.Any]:
return {'variant': YKHO.variant} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z282(YKHO):\n return {}",
"def B2fa(YKHO):\n YSA3 = type(YKHO.__class__.__name__ + 'Kwargs', (U8Lr,), {})()\n for mWFP in aadv(YKHO.__class__).parameters:\n hkS8 = YKHO(YKHO.domain) if mWFP == 'data' else None\n hkS8 = getattr(YKHO, '_' + mWFP, hkS8)\n hkS8 = getattr(hkS8, '__na... | [
"0.74835736",
"0.73689127",
"0.7240374",
"0.7211707",
"0.7199767",
"0.7117219",
"0.7105974",
"0.70930004",
"0.7007486",
"0.7007486",
"0.6946407",
"0.6941203",
"0.69270355",
"0.6876089",
"0.68340284",
"0.6833603",
"0.68174535",
"0.6796287",
"0.67730886",
"0.6719936",
"0.669189... | 0.5981764 | 66 |
Return the kwargs used to create this element. | def wpLl(YKHO) -> laHg.Dict[str, laHg.Any]:
return {'variant': YKHO.variant} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z282(YKHO):\n return {}",
"def B2fa(YKHO):\n YSA3 = type(YKHO.__class__.__name__ + 'Kwargs', (U8Lr,), {})()\n for mWFP in aadv(YKHO.__class__).parameters:\n hkS8 = YKHO(YKHO.domain) if mWFP == 'data' else None\n hkS8 = getattr(YKHO, '_' + mWFP, hkS8)\n hkS8 = getattr(hkS8, '__na... | [
"0.74835736",
"0.73689127",
"0.7240374",
"0.7211707",
"0.7199767",
"0.7117219",
"0.7105974",
"0.70930004",
"0.7007486",
"0.7007486",
"0.6946407",
"0.6941203",
"0.69270355",
"0.6876089",
"0.68340284",
"0.6833603",
"0.68174535",
"0.6796287",
"0.67730886",
"0.6719936",
"0.669189... | 0.5981764 | 67 |
Check if user is active. | def eFgV(YKHO, K275, DC7k, o7Gr):
RKD7.log(sDym.TK_LOG_LEVEL_DEBUG, '---=== start isUserActive for "%s" ===---' % YKHO._userName)
RKD7.log(sDym.TK_LOG_LEVEL_EXTRA_DEBUG, 'supported session types: %s' % str(K275.getTimekprSessionsCtrl()))
i3o3 = str(YKHO._login1UserInterface.Get(sDym.TK_DBUS_USER_OBJECT, 'St... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def akPH(YKHO, CBIr):\n if not YKHO.require_active:\n return True\n return CBIr.is_active",
"def ksfB(YKHO, NCls: Session, *, CBIr: User) -> bool:\n if CBIr.status == 0:\n return True\n else:\n return False",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):... | [
"0.8845749",
"0.8716099",
"0.8442033",
"0.8442033",
"0.8442033",
"0.8442033",
"0.8060259",
"0.80454934",
"0.79618144",
"0.7858829",
"0.77372724",
"0.7709583",
"0.7709503",
"0.7709503",
"0.7709503",
"0.7709503",
"0.7709503",
"0.7709503",
"0.7709503",
"0.7709503",
"0.7709503",
... | 0.0 | -1 |
The Jacobian of the model defined as I_3 as given in | def VVWF(WKvO, *NArs) -> oyIN.ndarray:
return nGjf(WKvO, *NArs) + lZnu(WKvO, *NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v8WM(YKHO):\n raise NotImplementedError",
"def Oa10(WKvO):\n T2My = oyIN.array([[0, 0, 0, 1.004], [0, 0, 0, -0.004], [0, 0, 0, 0]])\n VUK5 = oyIN.array([[0, 0, -1000, 0], [0, 60, 1000, 1], [0, -60, 0, 0]])\n YvgZ = oyIN.array([[0, -1000, 0, 0], [0, 1000, 0, 0], [0, 0, 0, 1]])\n return EHzC(WKv... | [
"0.763436",
"0.760399",
"0.7424239",
"0.7285889",
"0.72794497",
"0.725338",
"0.72305757",
"0.7150123",
"0.7126506",
"0.7126506",
"0.7096122",
"0.7031791",
"0.6919348",
"0.6873319",
"0.68726534",
"0.6847195",
"0.6844121",
"0.6768016",
"0.67407763",
"0.67276764",
"0.6680797",
... | 0.71378064 | 8 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def zAg0(YKHO):\n return '[BaseModel] ({}) {}'.format(YKHO.id, YKHO.__dict__)",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def wOed(Y... | [
"0.81353843",
"0.78965",
"0.75528187",
"0.73702455",
"0.73417604",
"0.73365045",
"0.7311941",
"0.7301892",
"0.7290959",
"0.7244028",
"0.7242259",
"0.72200274",
"0.7201164",
"0.7201164",
"0.7156547",
"0.71176356",
"0.71176356",
"0.71176356",
"0.7106658",
"0.7106658",
"0.709969... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.stockname | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
Returns the url to access a detail record for this stock. | def hlzF(YKHO):
return gxEw('stock-detail', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IxeK(YKHO):\n return gxEw(YKHO._meta.db_table + '-detail', args=[YKHO.pk])",
"def iLuo(YKHO):\n raise NotImplementedError('Please define a detail_url fixture')",
"def bD7m(YKHO):\n bD7m = dDl6 + UtR2['detailed_notes'].format(version=vp8q, investor_id=YKHO._investor_id)\n return bD7m",
"def hl... | [
"0.71967787",
"0.71306247",
"0.6919365",
"0.6845753",
"0.66701305",
"0.666168",
"0.65494144",
"0.6520705",
"0.6446588",
"0.6416164",
"0.640166",
"0.6397898",
"0.6395832",
"0.6356794",
"0.630157",
"0.6264053",
"0.62630814",
"0.62549675",
"0.625118",
"0.6243256",
"0.6240616",
... | 0.7222634 | 0 |
Returns the url to access a particular company instance. | def hlzF(YKHO):
return gxEw('company-detail', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P3Kx(YKHO):\n return YKHO._companyUrl",
"def vPYC(YKHO, q9zX):\n YKHO.url = f'{YKHO.base_url}cmp/{q9zX}/'",
"def LvtP(YEnM):\n return YEnM.get_absolute_url()",
"def oKWM(YKHO, mWFP):\n VdJ4 = YKHO.soup.find('a', {'title': mWFP})\n oeSy = f'https://markets.businessinsider.com{VdJ4['href']}'... | [
"0.75480354",
"0.73659915",
"0.70091975",
"0.6996322",
"0.6937813",
"0.65238684",
"0.64559597",
"0.64559597",
"0.64559597",
"0.64559597",
"0.64559597",
"0.64559597",
"0.64559597",
"0.64559597",
"0.6390715",
"0.6390715",
"0.6385606",
"0.63797444",
"0.63769287",
"0.62755495",
"... | 0.67844385 | 5 |
String for representing the Model object. | def zAg0(YKHO):
return '{0}, {1}'.format(YKHO.ticker_symbol, YKHO.company_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.81885296",
"0.8092215",
"0.79587615",
"0.7848622",
"0.7839469",
"0.76655394",
"0.75757945",
"0.75660306",
"0.7560155",
"0.7548143",
"0.7483473",
"0.7464744",
"0.74516714",
"0.74516714",
"0.74475425",
"0.74459755",
"0.74459755",
"0.74459755",
"0.74117213",
"0.74064744",
"0.... | 0.0 | -1 |
return human readable hash also for (nested) mutable objects. This function returns a jsonlike representation of the object. The function might be a bit slow, since it iterates over all containers and hashes objects recursively. Note that this hash function tries to return the same value for equivalent objects, but it ... | def vfaA(YEnM):
if isinstance(YEnM, mSrU.Number):
return str(YEnM)
if isinstance(YEnM, (jKi7.string_types, jKi7.text_type)):
return '"' + str(YEnM).replace('\\', '\\\\').replace('"', '"') + '"'
if isinstance(YEnM, (list, tuple)):
return '[' + ', '.join((vfaA(Ty9i) for Ty9i in YEnM)) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AO_N(YEnM):\n if isinstance(YEnM, (list, tuple)):\n return aaX7((AO_N(Ty9i) for Ty9i in YEnM))\n if isinstance(YEnM, (set, frozenset)):\n return hash(frozenset((AO_N(Ty9i) for Ty9i in YEnM)))\n if isinstance(YEnM, (dict, ZrSl, g760.OrderedDict, g760.defaultdict, g760.Counter)):\n ... | [
"0.73212016",
"0.691858",
"0.6560271",
"0.6431393",
"0.63421935",
"0.63347715",
"0.6333301",
"0.63262933",
"0.62841827",
"0.6271679",
"0.62506",
"0.6225918",
"0.6217645",
"0.6195448",
"0.6167092",
"0.6156106",
"0.61515087",
"0.6144129",
"0.61314404",
"0.61181164",
"0.6101249"... | 0.7038199 | 1 |
parse the arguments for DDPG training | def dCXb():
wvEv = j1Jz.ArgumentParser(formatter_class=j1Jz.ArgumentDefaultsHelpFormatter)
wvEv.add_argument('--config', type=str, default='cfg/train_no_teachers.yaml')
wvEv.add_argument('--log-base-dir', type=str, default=None)
wvEv.add_argument('--log-dir', type=str, default=None)
wvEv.add_argumen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dCXb(qIxc):\n wvEv = j1Jz.ArgumentParser(description='Training parameters')\n wvEv.add_argument('--type', type=str, default='DDQN', help='Algorithm to train from {A2C, A3C, DDQN, DDPG}')\n wvEv.add_argument('--is_atari', dest='is_atari', action='store_true', help='Atari Environment')\n wvEv.add_arg... | [
"0.75336117",
"0.7311348",
"0.7308056",
"0.72405064",
"0.7164223",
"0.71510285",
"0.7148433",
"0.7147165",
"0.71458197",
"0.71342427",
"0.7125798",
"0.71218646",
"0.71132",
"0.70777225",
"0.70745975",
"0.7038859",
"0.7012612",
"0.70111156",
"0.7010315",
"0.7004773",
"0.699932... | 0.70517045 | 15 |
Get the detail of a document. | def NMoC(YKHO, PObu=None, pmON=None):
return super(ExMO, YKHO).get(path=YKHO._path(uid=PObu, path=pmON)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GKJL(yZn6: str) -> zaEB:\n return USyX().retrieve(yZn6)",
"def aeup(YKHO):\n try:\n return YKHO._detail\n except Exception as e:\n raise tTpl",
"def NMoC(YKHO, QePW, _sei, Jd_h):\n return BOVF.get_application_document(Jd_h)",
"def VpAz(YKHO, yZn6):\n bD7m = '/documents2/{docu... | [
"0.6956379",
"0.6934603",
"0.69108784",
"0.6848454",
"0.6772235",
"0.67699957",
"0.67618126",
"0.6719519",
"0.6699518",
"0.6697358",
"0.6677505",
"0.66667765",
"0.6662497",
"0.6637022",
"0.6596308",
"0.6509763",
"0.64865917",
"0.6472205",
"0.6464232",
"0.64564824",
"0.6455827... | 0.0 | -1 |
Check if a document has a permission. | def qHTF(YKHO, PObu, Uvf2):
qv1X = super(ExMO, YKHO).get(path=YKHO._path(uid=PObu), cls=dict, headers=YKHO.headers, enrichers=['permissions'])
return Uvf2 in qv1X['contextParameters']['permissions'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHTF(YKHO):\n pass",
"def qHTF(YKHO):\n return YKHO.perm.has_permission(YKHO.request, YKHO.view)",
"def YE54(ticV, UVqd, AKqD):\n if not ticV and str(UVqd) != str(AKqD):\n raise Exception(\"You don't have the rights to perform this action.\")",
"def qHTF(YKHO, QePW, tTee):\n if QePW.us... | [
"0.7416015",
"0.7284591",
"0.72749627",
"0.726525",
"0.72107565",
"0.71813715",
"0.71055406",
"0.70712763",
"0.70338315",
"0.70338315",
"0.70338315",
"0.70338315",
"0.70338315",
"0.703002",
"0.7022658",
"0.70168626",
"0.7012308",
"0.7012308",
"0.70059013",
"0.70031893",
"0.70... | 0.7122961 | 6 |
r""" Returns a dictionary with each customer's name served in the route as key. The value to each key is a tuple containing the sum of estimated action times until the customer is served and the time the customer has been shifted from its original etd. Arguments ========== | def ljFG(PsCT):
YCBp = {}
atC9 = 0
for XeOP in PsCT:
assert XeOP.est_action_time >= 0
atC9 += XeOP.est_action_time
if XeOP.status == 4:
if XeOP.customer != -1:
YCBp[XeOP.customer.name] = [atC9, XeOP.customer.sum_shifted]
else:
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rijG(m3Nh, qAYJ, RkCi, vHj7):\n YCBp = {}\n for rdJN in RkCi:\n PsCT = qAYJ.insertion(customer=m3Nh, restaurant=rdJN, current_time=vHj7)\n oa5b = jth9.deepcopy(PsCT)\n oa5b[8] = m3Nh\n CIef = oa5b[7]\n qAYJ.insert(*oa5b, shift_customer=False)\n if CIef is None:\n... | [
"0.608028",
"0.6013567",
"0.55235267",
"0.5472804",
"0.5466656",
"0.5432285",
"0.53948087",
"0.5346382",
"0.534508",
"0.5331062",
"0.532157",
"0.5287651",
"0.52086467",
"0.51307815",
"0.513028",
"0.51205283",
"0.5114736",
"0.5030924",
"0.50268114",
"0.50117785",
"0.5008457",
... | 0.78241086 | 0 |
Transform an array of data into colormap (array of RGBA). | def BMY9(WKvO, iMGt='inferno', UNYr=None, Cwt5=1.0, MynD=None, n4wC=None, za9M='dimgray', lT6G='darkred', GP0v=None, AUW6=False):
WKvO = oyIN.asarray(WKvO)
UNYr = (None, None) if UNYr is None else list(UNYr)
assert len(UNYr) == 2
if Cwt5 < 0 or Cwt5 > 1:
E4N8('The alpha parameter must be >= 0 an... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CKym(YKHO, nPrm):\n if isinstance(YKHO._kw['cmap'], oyIN.ndarray):\n return YKHO._data\n else:\n return BMY9(nPrm, **YKHO._kw)",
"def B84M(Ggaq):\n tu2J = l7uB(Ggaq)\n rYf7 = len(tu2J[0]) * 3\n IqKT = len(tu2J)\n DUlW = [[0] * rYf7 for LVAh in Ni9Y(IqKT)]\n for LVAh in Ni9Y... | [
"0.76570886",
"0.75709057",
"0.7484608",
"0.7319506",
"0.7244405",
"0.7242417",
"0.6991383",
"0.69766074",
"0.6813621",
"0.67350286",
"0.6697107",
"0.6697107",
"0.6584516",
"0.656541",
"0.64746225",
"0.6421113",
"0.63880855",
"0.63862354",
"0.63845307",
"0.6317784",
"0.631410... | 0.69121486 | 8 |
Delete everything in cache. | def ORNU(YKHO):
YKHO._cache.clear()
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rDz4(YKHO):\n for FhJW in YKHO.data_paths.keys():\n YKHO.delete_cache_key(FhJW)",
"def RrFH(YKHO):\n gLDJ = ypig(YKHO.dir_path, 'eq_cache')\n RDuA.rmtree(gLDJ)",
"def ORNU(YKHO):\n wyyA = YKHO.get_cache()\n for H5ew in wyyA.keys():\n del wyyA[H5ew]",
"def ORNU(YKHO):\n pas... | [
"0.84515035",
"0.82301503",
"0.81220037",
"0.7971641",
"0.7903522",
"0.7891158",
"0.78792995",
"0.78463155",
"0.78242993",
"0.7799922",
"0.7777754",
"0.77699995",
"0.7756084",
"0.77135307",
"0.7706107",
"0.7683197",
"0.76599216",
"0.7653792",
"0.7607311",
"0.75882846",
"0.758... | 0.0 | -1 |
Read configuration from a YAML file. | def trUu(YKHO, gIsw='main_config.yml', pmON=None, h_my=False):
pmON = Hy7s.path.join(YKHO.configuration_directory, gIsw) if pmON is None else pmON
if not Hy7s.path.exists(pmON):
raise FileNotFoundError
with open(pmON, 'r') as eHNT:
DWkG = Jwf_ if h_my else eJb6.Loader
YKHO._config = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kfOW():\n with open(Fm4J) as WRxi:\n GPtr = eJb6.load(WRxi)\n return GPtr",
"def v9dc(Ux0P):\n with open(Ux0P, 'r') as eHNT:\n Fv2L = eJb6.load(eHNT)",
"def R4f_():\n with open('config.yaml') as eHNT:\n GPtr = eJb6.load(eHNT)\n return GPtr",
"def v9dc(nUeQ):\n with ... | [
"0.8264619",
"0.81645936",
"0.808877",
"0.8076697",
"0.8053906",
"0.8005727",
"0.79890054",
"0.7963483",
"0.79567975",
"0.79350847",
"0.7886013",
"0.7855029",
"0.78394127",
"0.7837949",
"0.7819112",
"0.7800221",
"0.77725345",
"0.7769278",
"0.7750782",
"0.7748706",
"0.77397084... | 0.7318405 | 85 |
Updates the configuration with a 'git_rev' field with the current HEAD revision. | def J_Z0(YKHO, f2Tp=False):
try:
wt9F = ['git', 'rev-parse', '--verify', 'HEAD']
kyzY = Yn3K.check_output(wt9F).decode('latin1').strip()
except Yn3K.CalledProcessError:
kyzY = 'none'
if not f2Tp and YKHO.get('git_rev', None) is not None:
pass
else:
YKHO.set('git_r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CrTV(YKHO, aIAd):\n YKHO.head = aIAd\n with open(Hy7s.path.join(YKHO.repo_path, '.ngc/HEAD'), 'w') as ubbx:\n ubbx.write(aIAd)\n RKD7.debug('Updated HEAD to %s' % YKHO.head)",
"def XXIQ(YKHO):\n return CgxE.__git_revision__",
"def CsM5():\n try:\n try:\n Yn3K.check_c... | [
"0.61133766",
"0.5980816",
"0.5933966",
"0.58882374",
"0.58651245",
"0.58614427",
"0.5820452",
"0.5819016",
"0.58123755",
"0.5733088",
"0.56915826",
"0.5688895",
"0.5688895",
"0.5680371",
"0.56630415",
"0.5642906",
"0.5637463",
"0.5630661",
"0.5628643",
"0.56155866",
"0.56062... | 0.73095495 | 0 |
This filter applies a mask to all numerically invalid inputs on a programing side. Numbers that are usually infinite or some other nonsensical quantity serve no real usage in calculations further downstream. Therefore, they are masked here. See numpy.ma.fix_invalid for what is considered invalid. | def NbbK(Sxzb):
gULc = NJ66.getdata(Sxzb)
VGsW = NJ66.getmaskarray(NJ66.fix_invalid(gULc))
return VGsW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MpFK(YKHO):\n if not YKHO.integritycheck():\n G9jH.warning(' Masking operation not performed.')\n return\n ZHfW = oyIN.isfinite(YKHO._spec)\n YKHO._mask = oyIN.logical_or(YKHO._mask, oyIN.logical_not(ZHfW))",
"def T18O(YKHO, d4B6=0.0):\n if not YKHO.integritycheck():\n G9jH.... | [
"0.72838527",
"0.7067311",
"0.6525779",
"0.6519276",
"0.6519276",
"0.63267916",
"0.6206107",
"0.6122043",
"0.61198056",
"0.61083394",
"0.6062871",
"0.5983818",
"0.5983501",
"0.59811133",
"0.57643294",
"0.5734038",
"0.5711757",
"0.56717455",
"0.5670152",
"0.56646",
"0.565882",... | 0.65778285 | 2 |
Get a MLP model in keras. | def YrZb(jTqs):
C3ST = ileL()
C3ST.add(D2Bo())
C3ST.add(l6ZH(784, activation='relu'))
C3ST.add(l6ZH(jTqs, activation='softmax'))
C3ST.compile(loss=bdPE.losses.categorical_crossentropy, optimizer=bdPE.optimizers.Adadelta(), metrics=['accuracy'])
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XZ1I(fhcK, rYO3, lo24, GhuM, z9qi, OEm4):\n C3ST = FYrf.Sequential()\n C3ST.add(lARV(rate=lo24, input_shape=GhuM))\n for bGrB in range(fhcK - 1):\n C3ST.add(l6ZH(units=rYO3, activation='relu'))\n C3ST.add(lARV(rate=lo24))\n C3ST.add(l6ZH(units=z9qi, activation=OEm4))\n return C3ST"... | [
"0.7425043",
"0.7388142",
"0.72538716",
"0.71996844",
"0.7198773",
"0.7131992",
"0.7061394",
"0.7051691",
"0.6974152",
"0.6836866",
"0.6832407",
"0.6751669",
"0.6708245",
"0.6687577",
"0.66665316",
"0.66570646",
"0.66567385",
"0.66366",
"0.66350055",
"0.66335213",
"0.661319",... | 0.645559 | 35 |
String representation of a deck its name. | def wHJl(YKHO):
return f'Deck({YKHO.name})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n jqJM = []\n for Z9rn in YKHO.deck:\n jqJM.append(Z9rn.__str__())\n return ' '.join(jqJM)",
"def zAg0(YKHO):\n return str(YKHO.deck)",
"def zAg0(YKHO):\n return str(YKHO.deck)",
"def zAg0(YKHO):\n return str(YKHO.deck)",
"def wHJl(YKHO):\n KCHu = ''\n KCHu +=... | [
"0.793797",
"0.7888288",
"0.77979165",
"0.77979165",
"0.7699455",
"0.7685603",
"0.7638998",
"0.74643415",
"0.74443173",
"0.7433661",
"0.7411187",
"0.7411187",
"0.73949516",
"0.7365309",
"0.73007834",
"0.71797734",
"0.71762466",
"0.7139381",
"0.7133074",
"0.7115955",
"0.710386... | 0.72727764 | 15 |
Getter method for ma_name, mapped from YANG variable /protocol/cfm/domain_name/ma_name/ma_name (string) | def lbiX(YKHO):
return YKHO.__ma_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bdpa(YKHO, Ty9i, tyeH=False):\n _AKB = getattr(YKHO, '_parent', None)\n if _AKB is not None and tyeH is False:\n raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(... | [
"0.72609675",
"0.6679995",
"0.6679995",
"0.6103892",
"0.5809061",
"0.5729969",
"0.56599736",
"0.56599736",
"0.5583687",
"0.54639554",
"0.5432929",
"0.54076093",
"0.53914845",
"0.5359555",
"0.5340387",
"0.5296778",
"0.5245694",
"0.51988125",
"0.5175524",
"0.51707727",
"0.51559... | 0.71826357 | 1 |
Getter method for ma_id, mapped from YANG variable /protocol/cfm/domain_name/ma_name/ma_id (uint32) | def dV54(YKHO):
return YKHO.__ma_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cIGH(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..4090']}), is_leaf=True, yang_name='ma-id',... | [
"0.71755636",
"0.5744874",
"0.55650926",
"0.55396026",
"0.54208744",
"0.52988726",
"0.5169785",
"0.50863564",
"0.50773925",
"0.49996224",
"0.49996224",
"0.4996553",
"0.49886298",
"0.4953032",
"0.49527112",
"0.49362734",
"0.4918732",
"0.48873848",
"0.48505917",
"0.48418987",
"... | 0.6918967 | 1 |
Getter method for ma_priority, mapped from YANG variable /protocol/cfm/domain_name/ma_name/ma_priority (uint32) | def HqYb(YKHO):
return YKHO.__ma_priority | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Upnu(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'0..7']}), is_leaf=True, yang_name='ma-priorit... | [
"0.7724714",
"0.55582505",
"0.5476538",
"0.531306",
"0.51784307",
"0.5052474",
"0.49824315",
"0.49521688",
"0.49055436",
"0.49055436",
"0.49055436",
"0.49055436",
"0.49055436",
"0.49055436",
"0.49055436",
"0.49055436",
"0.49055436",
"0.49055436",
"0.48958713",
"0.48958713",
"... | 0.72855836 | 1 |