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 |
|---|---|---|---|---|---|---|
Write frontal_images as tf.Summaries. | def djGU(gkDH, YHZU, wytA=(6, 4)):
mAfu = fYbH(YHZU)
def LKv9(LZpg, MPlV, LBBR, Tw7v):
"""Draw camera image for image summary."""
kj9G.AddImage(fig=LZpg, axes=MPlV, data=LBBR / 256.0, show_colorbar=False, suppress_xticks=True, suppress_yticks=True)
FUjE = MPlV.text(x=0.5, y=0.01, s=Tw7v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jtfl(N6Z1, PxNv, cVyJ):\n if not N6Z1 or not isinstance(N6Z1, dict):\n return\n if 'orig_images' not in N6Z1:\n G9jH.info('Missing orig_images in predictions: %s', N6Z1.keys())\n return\n N6Z1['orig_images'] = N6Z1['orig_images'] * 255\n N6Z1['orig_images'] = N6Z1['orig_images'... | [
"0.692699",
"0.6892853",
"0.67670166",
"0.671571",
"0.66676754",
"0.6667277",
"0.6667277",
"0.6667277",
"0.6667277",
"0.66648966",
"0.6552053",
"0.6532827",
"0.6532423",
"0.6526682",
"0.6524829",
"0.63934594",
"0.63516676",
"0.6348679",
"0.6333902",
"0.6286537",
"0.62807566",... | 0.0 | -1 |
Method to determine if a number is odd | def XHAY(YKHO, BWXx):
return BWXx % 2 == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYZq(FGW3):\n return FGW3 % 2 != 0",
"def kYZq(WKvO):\n return WKvO % 2",
"def C_CQ(WKvO):\n return not int(WKvO) % 2 == 0",
"def kYZq(FGW3):\n return not ubP8(FGW3)",
"def C_CQ(mLGw):\n return mLGw % 2 != 0",
"def XHAY(WKvO):\n return WKvO % 2 != 0",
"def kYZq(WKvO):\n if WKvO... | [
"0.90174115",
"0.8773653",
"0.8749921",
"0.8738402",
"0.8719694",
"0.868557",
"0.86702394",
"0.86626214",
"0.8614803",
"0.86142254",
"0.8551178",
"0.8531685",
"0.8516328",
"0.8482322",
"0.8461278",
"0.845259",
"0.84260386",
"0.8422257",
"0.8403698",
"0.8400398",
"0.8392672",
... | 0.840176 | 19 |
Given a string, returns a string with the order of the vowels reversed but all other chars unchanged | def N6Ne(Jkv0):
jbXL = list(Jkv0)
p4HE = [(d6pt, hcXw) for d6pt, hcXw in enumerate(jbXL) if hcXw in 'aeiouyAEIOUY']
FBNX, lzi6 = ([WKvO[0] for WKvO in p4HE], [WKvO[1] for WKvO in p4HE])
lzi6.reverse()
for d6pt, hcXw in zip(FBNX, lzi6):
jbXL[d6pt] = hcXw
return ''.join(jbXL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N6Ne(KCHu):\n gLiZ = list(KCHu)\n or8S = []\n XR5e = []\n lzi6 = 'aeiou'\n for YRbF in range(len(gLiZ)):\n if gLiZ[YRbF].lower() in lzi6:\n XR5e.append(gLiZ[YRbF])\n or8S.append(YRbF)\n GaBO = XR5e[::-1]\n hlel = []\n QyVM = 0\n for YRbF in range(len(gLiZ... | [
"0.8280769",
"0.81115514",
"0.80744493",
"0.80367893",
"0.79104096",
"0.77487004",
"0.73679674",
"0.7185901",
"0.7022107",
"0.7016518",
"0.69901437",
"0.69378215",
"0.693463",
"0.6918906",
"0.6877022",
"0.68414384",
"0.6821892",
"0.6818808",
"0.675278",
"0.67405206",
"0.67368... | 0.8354693 | 0 |
Creates and saves a User with the given email, username and password. | def lYUQ(YKHO, D3lj, jTXt=None):
if not D3lj:
raise ValueError('Users must have an email address')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj))
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kI0b(Emd4, NtEF, D3lj, jTXt):\n kz9X = B8ni.generate_password_hash(jTXt).decode('UTF-8')\n CBIr = mv1M(username=NtEF, email=D3lj, password=kz9X)\n NCls.session.add(CBIr)\n return CBIr",
"def kI0b(Emd4, NtEF, D3lj, jTXt):\n kz9X = B8ni.generate_password_hash(jTXt).decode('UTF-8')\n CBIr = mv... | [
"0.8500439",
"0.84765714",
"0.8470014",
"0.8444606",
"0.84318256",
"0.8426323",
"0.84069467",
"0.84064656",
"0.83955073",
"0.83948183",
"0.83942676",
"0.8391023",
"0.8365547",
"0.8354268",
"0.83337736",
"0.8331889",
"0.83238655",
"0.8318895",
"0.83056134",
"0.8299851",
"0.829... | 0.0 | -1 |
Creates and saves a superuser with the given email, date of birth and password. | def Zp54(YKHO, D3lj, NtEF, jTXt):
CBIr = YKHO.create_user(D3lj, username=NtEF, password=jTXt)
CBIr.is_admin = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr",
"def Zp54(YKHO, D3lj, jTXt, **w... | [
"0.81671333",
"0.8164093",
"0.81593335",
"0.8156993",
"0.81498826",
"0.8132065",
"0.8128264",
"0.8117085",
"0.80782586",
"0.80778635",
"0.80744994",
"0.80744994",
"0.8074489",
"0.8040652",
"0.8031792",
"0.8018299",
"0.80025905",
"0.79983455",
"0.7989842",
"0.7988782",
"0.7986... | 0.0 | -1 |
Get if the server is running under UNIX or NT return True if running under UNIX, otherwise False | def nGzJ():
return True if Hy7s.name == 'posix' else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ei1M():\n return jmo5() or ADYC()",
"def GNOP(YKHO):\n if YKHO._system_name == 'Linux':\n return True\n else:\n return False",
"def EGZI(YKHO):\n return YKHO.IsMac() or YKHO.IsLinux()",
"def r5rD():\n return Hy7s.name == 'nt'",
"def DOhZ():\n return HwRy.platform in {'wi... | [
"0.7230284",
"0.7017643",
"0.7014788",
"0.7007999",
"0.7006378",
"0.6942739",
"0.6854175",
"0.68428165",
"0.68406224",
"0.68186724",
"0.68079513",
"0.6789849",
"0.6786384",
"0.6783301",
"0.678138",
"0.6752297",
"0.6750738",
"0.6743603",
"0.67239034",
"0.6723262",
"0.6712351",... | 0.8140997 | 0 |
A profile is valid if it is a tuple where each entry is a valid strategy for the corresponding player. | def L7Xl(YKHO, OGqV: Tuple[int, ...]) -> bool:
return len(OGqV) == YKHO.num_players and all(list(map(lambda WKvO: 0 <= WKvO[1] <= YKHO.num_strategies[WKvO[0]] - 1, enumerate(OGqV)))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jRE4(YKHO, z39Z):\n return True",
"def kHBM(z39Z):\n from Login_Registration.models import Profile\n if isinstance(z39Z, Profile):\n return z39Z\n else:\n raise TypeError('_validate_profile() must be a valid Profile object.')",
"def j53l(MTKo, rpLa, BWXx, wvEv):\n afc2 = nqEK.g... | [
"0.73911136",
"0.67055696",
"0.63112795",
"0.6193538",
"0.60255545",
"0.60083073",
"0.5879383",
"0.5651958",
"0.5634589",
"0.5589672",
"0.5580458",
"0.5529073",
"0.55257183",
"0.5522656",
"0.5484606",
"0.5484291",
"0.5455418",
"0.5450923",
"0.5440577",
"0.5439239",
"0.5425067... | 0.7791553 | 0 |
Given a strategy profile, it returns "the next" profile, which is defined as the profile where the strategy of the first player is incremented by one accounting for any "carry" over | def l9A6(DJ58, gitN):
if len(DJ58) == 0:
raise Exception(f'overflow, no more strategies after {DJ58}')
if (DJ58[0] + 1) % gitN[0] == 0:
return [0] + HUwP.add_one_to_profile(DJ58[1:], gitN[1:])
else:
DJ58[0] = DJ58[0] + 1
return DJ58 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MkVU(YKHO):\n if YKHO.current.strategy == 0:\n Ayfi = YKHO.current.get_feeding_heuristic(YKHO.next_goal)\n if Ayfi == 0:\n YKHO.open_states[:] = []\n YKHO.open_states_positions[:] = []\n hKnD = YKHO.current.state.getPacmanPosition()\n YKHO.goals = so... | [
"0.61042404",
"0.597349",
"0.5930299",
"0.59180415",
"0.5902794",
"0.58569056",
"0.58407754",
"0.5750021",
"0.5737263",
"0.5716408",
"0.5701153",
"0.57000566",
"0.56962836",
"0.56648594",
"0.56624204",
"0.5646332",
"0.56288415",
"0.56140506",
"0.55914706",
"0.55837727",
"0.55... | 0.736995 | 0 |
Determines whether the strategy of a given player at a given strategy profile is epsilon dominated or not. | def xes8(YKHO, OGqV: Tuple[int, ...], oyg0: int, SGf8: float) -> bool:
assert 0 <= oyg0 <= YKHO.num_players and SGf8 >= 0
gIRJ = list(filter(lambda z39Z: YKHO.is_profile_active(z39Z), YKHO.get_neighbours(OGqV, oyg0)))
return any([YKHO.estimated_payoffs[_Wdu][0][oyg0] - SGf8 >= YKHO.estimated_payoffs[OGqV][0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SSv0(YKHO, OGqV: Tuple[int, ...], SGf8: float):\n assert SGf8 >= 0\n return all([YKHO.is_strategy_eps_dominated(OGqV, oyg0, SGf8) for oyg0 in range(0, YKHO.num_players)])",
"def Hbm5(YKHO):\n return any([qGyE in WKvO for WKvO in iter(YKHO.delta.values())])",
"def cAfu(TkHw, v3uF, _hZ2):\n for Y... | [
"0.7876122",
"0.62792027",
"0.6173424",
"0.6005122",
"0.6003247",
"0.59512657",
"0.590326",
"0.5700239",
"0.56380683",
"0.5588073",
"0.5525081",
"0.5499661",
"0.54874045",
"0.5477273",
"0.54692245",
"0.5460955",
"0.5455659",
"0.54489696",
"0.54479575",
"0.54479575",
"0.540463... | 0.82017535 | 0 |
Determines if a template matches or not. | def zbEX(YKHO, rPXJ):
jNOo = YKHO.get_coords(rPXJ)
return True if all(jNOo) and jNOo[0] < jNOo[1] else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSaV(A97Q):\n return NMoC(VBgC.template, A97Q) is not ''",
"def NS0j(elux, XxSi, MbY6):\n if elux.charge != MbY6.charge or elux.mult != MbY6.mult:\n return False\n if elux.solvent != MbY6.solvent:\n return False\n if gk07(XxSi, MbY6.graph):\n bo34.info('Found matching TS temp... | [
"0.71281207",
"0.7068077",
"0.70439583",
"0.69482476",
"0.69050735",
"0.6806727",
"0.6710443",
"0.6708626",
"0.6539804",
"0.65271217",
"0.6518144",
"0.6518144",
"0.64851826",
"0.6400573",
"0.6394965",
"0.63907325",
"0.6322767",
"0.63153017",
"0.62957245",
"0.6274282",
"0.6217... | 0.69620895 | 3 |
Check if the given django User is authorised to edit this event. They need to have the events.change_event permission AND be in the event's editors_set, or be a superuser | def FAbd(YKHO, CBIr):
return YKHO.editor_set.filter(id=CBIr.id).exists() or CBIr.is_superuser | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V2TE(YKHO, CBIr):\n return CBIr.is_superuser or (hasattr(CBIr, 'author') and CBIr.author == YKHO)",
"def FAbd(YKHO, CBIr):\n hO62 = YKHO.editor_set.filter(id=CBIr.id).exists() or CBIr.is_superuser\n if YKHO.group:\n hO62 = hO62 or YKHO.group.user_can_edit(CBIr)\n return hO62",
"def hO62(... | [
"0.79689676",
"0.79292136",
"0.7877614",
"0.7776121",
"0.7771418",
"0.7771418",
"0.7771418",
"0.7771418",
"0.7724304",
"0.7681086",
"0.7565192",
"0.7517184",
"0.74761015",
"0.7419452",
"0.7305577",
"0.71486294",
"0.70606154",
"0.7028251",
"0.70151514",
"0.7008379",
"0.6961752... | 0.79434276 | 1 |
Check if the given django User is authorised to edit this event. They need to be in the event's editors_set, or be a superuser Users can also edit an event if they are an editor of the series it belongs to | def FAbd(YKHO, CBIr):
hO62 = YKHO.editor_set.filter(id=CBIr.id).exists() or CBIr.is_superuser
if YKHO.group:
hO62 = hO62 or YKHO.group.user_can_edit(CBIr)
return hO62 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FAbd(YKHO, CBIr):\n return YKHO.editor_set.filter(id=CBIr.id).exists() or CBIr.is_superuser",
"def V2TE(YKHO, CBIr):\n return CBIr.is_superuser or (hasattr(CBIr, 'author') and CBIr.author == YKHO)",
"def zUuR(YKHO, YEnM):\n CBIr = YKHO.context['request'].user\n return YEnM.creator == CBIr or CB... | [
"0.82748973",
"0.81237036",
"0.78922915",
"0.78922915",
"0.78922915",
"0.78922915",
"0.7851443",
"0.7807469",
"0.773623",
"0.76212525",
"0.7527731",
"0.74797744",
"0.7417084",
"0.7230183",
"0.7135926",
"0.7128332",
"0.7112686",
"0.7085997",
"0.69818735",
"0.69818735",
"0.6981... | 0.81888777 | 1 |
ECPayProvider.get_hidden_fields() returns a dictionary | def QbG6(YKHO):
kT1P = PhZx(merchand_id=_LQr, merchand_name=gKg6, hash_key=Ii8F, hash_iv=Q9Wx)
YKHO.assertEqual(type(kT1P.get_hidden_fields(YKHO.payment)), dict) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cErx(YKHO):\n Ylbp = ''\n for ZfUD in YKHO._sess._request.form.keys():\n if ZfUD[:5] == 'auth_':\n pass\n elif type(YKHO._sess._request[ZfUD]) == type(()):\n for rKtI in YKHO._sess._request[ZfUD]:\n Ylbp = Ylbp + '<input type=\"hidden\" name=\"' + vR3g.h... | [
"0.6249473",
"0.6207678",
"0.6069754",
"0.5971834",
"0.5962471",
"0.59222966",
"0.59198403",
"0.5873749",
"0.58258647",
"0.58067304",
"0.5796218",
"0.57701725",
"0.5769304",
"0.5757365",
"0.5749438",
"0.5749438",
"0.5709037",
"0.56612813",
"0.56575626",
"0.56413114",
"0.56378... | 0.817863 | 0 |
Constructor for the BackProp class. Takes the number of inputs, outputs, and hidden untis as parameters. | def FIMM(YKHO, exwG, r8hN, MKlR, yzQ0=1.0):
YKHO.inp = exwG
YKHO.out = r8hN
YKHO.h = MKlR
YKHO.Wih = oyIN.random.randn(exwG + 1, MKlR) * yzQ0
YKHO.Who = oyIN.random.randn(MKlR + 1, r8hN) * yzQ0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, qepc, V06R, TFPw):\n YKHO.n_inputs = qepc\n YKHO.n_hidden = V06R\n YKHO.num_of_hidden = len(YKHO.n_hidden)\n YKHO.n_classes = TFPw\n ycBG = hPO2(qepc, YKHO.n_hidden[0])\n YKHO.hiddenlayers = [ycBG]\n for YRbF in range(YKHO.num_of_hidden - 1):\n ycBG = hPO2(YKHO.n_hidden[Y... | [
"0.6949498",
"0.68696684",
"0.6844648",
"0.67485404",
"0.66759634",
"0.6673189",
"0.66575813",
"0.66514254",
"0.6573188",
"0.6526384",
"0.65214986",
"0.6494443",
"0.6491083",
"0.6483747",
"0.6481566",
"0.64738363",
"0.64273506",
"0.6418665",
"0.6418008",
"0.6350765",
"0.63481... | 0.0 | -1 |
Returns the string representation of the BackProp object | def zAg0(YKHO):
return 'This is a perceptron with %d input(s),%d output(s), and %d hidden units.' % (YKHO.inp, YKHO.out, YKHO.h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.props)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wH... | [
"0.71220547",
"0.6794875",
"0.6794875",
"0.6794875",
"0.6794875",
"0.6794875",
"0.6794875",
"0.67553127",
"0.6732765",
"0.6723506",
"0.67114365",
"0.6703742",
"0.66696507",
"0.66404974",
"0.6638415",
"0.6636585",
"0.66253275",
"0.66253275",
"0.6614765",
"0.66075456",
"0.66065... | 0.0 | -1 |
Define config for loguru logger here. | def bo34():
return bo34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lWLw(bo34):\n pass",
"def wmdW():\n G9jH.config.dictConfig(GPtr['logging_dict'])",
"def n5Ao(YKHO):\n if YKHO.logger is None:\n YKHO.logger = bo34.getDefault(YKHO.app.name)",
"def JWaN() -> None:\n GPtr.fileConfig(EgvD)",
"def VyeJ(GPtr):\n Kt95(GPtr)\n aQ22(GPtr)\n mmcf(GPt... | [
"0.75741",
"0.7405069",
"0.72322404",
"0.7227107",
"0.718177",
"0.71344244",
"0.7109977",
"0.71077865",
"0.709451",
"0.70285213",
"0.7017948",
"0.6989021",
"0.6987429",
"0.6981352",
"0.698074",
"0.69777995",
"0.6960922",
"0.6927656",
"0.6905914",
"0.6901634",
"0.68716335",
... | 0.0 | -1 |
Decorate routes to require login. | def uKii(eHNT):
@zaGL(eHNT)
def SzLu(*qIxc, **B2fa):
if cuiw.get('user_id') is None:
return vKnz('/login')
return eHNT(*qIxc, **B2fa)
return SzLu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if not 'logged_in' in cuiw:\n return vKnz(nKyW('index', next=QePW.url))\n return JfyU(*qIxc, **B2fa)\n return WS4m",
"def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if Oa1e.user i... | [
"0.7088456",
"0.69661",
"0.69525415",
"0.6949141",
"0.6931404",
"0.69277924",
"0.69114035",
"0.6908829",
"0.68492377",
"0.68424016",
"0.68367666",
"0.68357086",
"0.6820801",
"0.6820801",
"0.6820801",
"0.6820801",
"0.6806658",
"0.68059635",
"0.67959154",
"0.6781016",
"0.677388... | 0.656372 | 57 |
Takes in a Dataframe data containing information about the population, educational attainment, and internet access for U.S. counties. Plots a grouped bar chart visualization comparing 5 urban and 5 rural counties, and the relationship between attaining a Bachelor's Degree and lacking internet access for these counties. | def kj9G(nPrm):
nDeK = ['New York County', 'Los Angeles County', 'Cook County', 'Harris County', 'Maricopa County', 'Chaves County', 'Aroostook County', 'Clallam County', 'McCracken County', 'St. Landry Parish']
nPrm = x0SS(nPrm, nDeK)
nPrm = U7MR(nPrm)
Yoj9 = Zc6P.Chart(nPrm).mark_bar().encode(x=Zc6P.X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WA90():\n Oa1e = jQ3Z.groupby(['city']).count()['business_id'].nlargest(13)\n aNZO = Oa1e.plot(kind='bar')\n aNZO.set_ylabel('Number of Businesses')\n aNZO.set_xlabel('City')\n aNZO.set_title('Top 13 Cities by Number of Businesses', fontsize=14, fontweight='bold')",
"def rM_K(jQ3Z, vxW9=None):... | [
"0.6776631",
"0.66883415",
"0.6617874",
"0.66067994",
"0.65268075",
"0.6520106",
"0.6434427",
"0.6427175",
"0.63886803",
"0.63873076",
"0.637958",
"0.63785416",
"0.6361249",
"0.63533896",
"0.6352613",
"0.63484496",
"0.62833685",
"0.6280882",
"0.6253732",
"0.6250604",
"0.62410... | 0.64964044 | 6 |
Get a list of column indices for which the column has more than one class. This is necessary when computing BAC or AUC which involves true positive and true negative in the denominator. When some class is missing, these scores don't make sense (or you have to add an epsilon to remedy the situation). | def DW_O(GERS):
paGB = GERS.shape[0]
so0r = oyIN.sum(GERS, axis=0)
j_CH = oyIN.where(1 - oyIN.isclose(so0r, 0) - oyIN.isclose(so0r, paGB))[0]
return j_CH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s4qe(EcVT, Xt6n, gwAu=0.995):\n Aofo = []\n for fvDH in Xt6n:\n wEf2, BWz1 = oyIN.unique(EcVT[fvDH], return_counts=True)\n Ty9i = BWz1[0] / BWz1.sum()\n if Ty9i > gwAu:\n Aofo.append(fvDH)\n return Aofo",
"def q0IH(jQ3Z):\n lZVd = list()\n for fvDH in jQ3Z:\n ... | [
"0.61361504",
"0.6083033",
"0.60616654",
"0.600319",
"0.59610045",
"0.5959929",
"0.59384644",
"0.5932709",
"0.5902169",
"0.589478",
"0.58604264",
"0.58565414",
"0.58474696",
"0.58179945",
"0.58125776",
"0.5798026",
"0.57925195",
"0.57761353",
"0.57760835",
"0.57472754",
"0.57... | 0.59406835 | 6 |
Compute normarlized Area under ROC curve (AUC). Return Gini index = 2AUC1 for binary classification problems. Should work for a vector of binary 0/1 (or 1/1)"solution" and any discriminant values for the predictions. If solution and prediction are not vectors, the AUC of the columns of the matrices are computed and ave... | def Aezt(GERS, o3Uj, p9qw=True):
if p9qw:
j_CH = DW_O(GERS)
if len(j_CH) < GERS.shape[-1]:
POZG('Some columns in solution have only one class, ' + 'ignoring these columns for evaluation.')
GERS = GERS[:, j_CH].copy()
o3Uj = o3Uj[:, j_CH].copy()
v3sF = GERS.shape[1]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qq_d(YKHO):\n zUeS = oyIN.zeros(len(YKHO.labels))\n for YRbF, UXqs in enumerate(YKHO.labels):\n zUeS[YRbF] = Qq_d(YKHO.true[:, YRbF], YKHO.pred[:, YRbF])\n return zUeS",
"def hzm0(YKHO):\n Crrw = oyIN.concatenate(YKHO.total_labels, axis=0)\n KeL5 = oyIN.concatenate(YKHO.total_logits, ax... | [
"0.69224423",
"0.66743696",
"0.64842594",
"0.6482891",
"0.6476002",
"0.64659846",
"0.6405209",
"0.6352395",
"0.62456095",
"0.62456095",
"0.62001306",
"0.61735564",
"0.61720955",
"0.6162622",
"0.61545914",
"0.615337",
"0.6132728",
"0.61215025",
"0.61181617",
"0.6108489",
"0.61... | 0.757161 | 0 |
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context. | def uCwR():
Qn9j = GPtr.get_section(GPtr.config_ini_section)
L_qe = GPtr.get_section(wnys)
for H5ew in L_qe:
Qn9j[H5ew] = L_qe[H5ew]
y1ep = lDAd(Qn9j, prefix='sqlalchemy.', poolclass=dBuj.NullPool)
with y1ep.connect() as UzPC:
QpfX.configure(connection=UzPC, target_metadata=sa00)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uCwR():\n raise NotImplementedError('Please specify engine connectivity here')\n if isinstance(eHpk, cGGv):\n UzPC = eHpk.connect()\n else:\n raise Exception('Expected engine instance got %s instead' % type(eHpk))\n QpfX.configure(connection=UzPC, target_metadata=sa00)\n try:\n ... | [
"0.85393137",
"0.8352685",
"0.82875574",
"0.81836516",
"0.80910105",
"0.7981153",
"0.7926447",
"0.7873363",
"0.7865963",
"0.78584015",
"0.78449583",
"0.78449583",
"0.78260684",
"0.7762706",
"0.77623695",
"0.77414614",
"0.7729494",
"0.7714918",
"0.77109504",
"0.7470594",
"0.74... | 0.7583183 | 19 |
Create a line builder from a stripping version and a line builder instance name. The instance name must be registered in the database. | def bNJT(e7Xi, W3i4, rZRz=None):
if isinstance(e7Xi, exCv):
viqz = IP9U(e7Xi, W3i4)
from StrippingArchive import strippingArchive
rZRz = strippingArchive(e7Xi)
else:
viqz = e7Xi[W3i4]
return rZRz.lineBuilders()[viqz['BUILDERTYPE']](W3i4, viqz['CONFIG']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bNJT(e7Xi, W3i4):\n from StrippingSelections import lineBuilders\n if isinstance(e7Xi, exCv):\n viqz = akSj(e7Xi, W3i4)\n else:\n viqz = e7Xi[W3i4]\n return lineBuilders()[viqz['BUILDERTYPE']](W3i4, viqz['CONFIG'])",
"def B3RL(e7Xi, W3i4, rZRz=None):\n if isinstance(e7Xi, exCv):\... | [
"0.7324768",
"0.5980515",
"0.5428417",
"0.54268104",
"0.53875464",
"0.522405",
"0.52173775",
"0.5204224",
"0.5197033",
"0.51389045",
"0.5109394",
"0.5093586",
"0.5090157",
"0.5083977",
"0.5065673",
"0.50646406",
"0.50221646",
"0.50215596",
"0.5013715",
"0.5009875",
"0.4996332... | 0.7051597 | 1 |
Getter method for half_life, mapped from YANG variable /rbridge_id/route_map/content/set/dampening/half_life (uint32) | def wtGb(YKHO):
return YKHO.__half_life | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jKUc(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 .. 45']}), is_leaf=True, yang_name='half-li... | [
"0.7968992",
"0.5988982",
"0.5870841",
"0.5672684",
"0.5492377",
"0.5437922",
"0.5436862",
"0.5166981",
"0.4920404",
"0.4907534",
"0.49048203",
"0.49036115",
"0.4901038",
"0.48976043",
"0.48964968",
"0.48899916",
"0.4889427",
"0.4885096",
"0.48847762",
"0.48806924",
"0.487909... | 0.65427226 | 1 |
Setter method for half_life, mapped from YANG variable /rbridge_id/route_map/content/set/dampening/half_life (uint32) | def jKUc(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1 .. 45']}), is_leaf=True, yang_name='half-life', rest... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wtGb(YKHO):\n return YKHO.__half_life",
"def nihb(YKHO, lO1O):\n for YRbF in Ni9Y(len(lO1O)):\n dQgj = lO1O[YRbF][0]\n C3ap = lO1O[YRbF][1]\n if dQgj >= YKHO._leftBound and dQgj <= YKHO._rightBound and (C3ap == YKHO._orientation):\n YKHO._probeHalfLife.append(lO1O[YRbF])... | [
"0.6123049",
"0.5927677",
"0.5719907",
"0.5621432",
"0.55756426",
"0.54308516",
"0.5409985",
"0.53842896",
"0.53719145",
"0.5370524",
"0.53594947",
"0.5357206",
"0.5356502",
"0.5354422",
"0.53518945",
"0.5349346",
"0.53470576",
"0.5338413",
"0.5307596",
"0.52975214",
"0.52886... | 0.8446772 | 0 |
Getter method for reuse, mapped from YANG variable /rbridge_id/route_map/content/set/dampening/reuse (uint32) | def nnsr(YKHO):
return YKHO.__reuse | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4kF(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 .. 20000']}), is_leaf=True, yang_name='reus... | [
"0.7151068",
"0.5549899",
"0.47983792",
"0.4723199",
"0.46415034",
"0.4521514",
"0.45073515",
"0.4483078",
"0.4443809",
"0.44332397",
"0.44327486",
"0.44199437",
"0.44096723",
"0.44009686",
"0.4343459",
"0.43361098",
"0.43262547",
"0.43172476",
"0.4314831",
"0.42887148",
"0.4... | 0.63270146 | 1 |
Getter method for max_suppress_time, mapped from YANG variable /rbridge_id/route_map/content/set/dampening/max_suppress_time (uint32) | def l2oU(YKHO):
return YKHO.__max_suppress_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dLMs(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 .. 255']}), is_leaf=True, yang_name='max-su... | [
"0.79989135",
"0.5628037",
"0.5498897",
"0.5488226",
"0.5473898",
"0.5468076",
"0.5450768",
"0.54462546",
"0.54371715",
"0.54236656",
"0.5408442",
"0.5387406",
"0.5377259",
"0.5270706",
"0.52309716",
"0.521446",
"0.51955384",
"0.5193204",
"0.5184724",
"0.5183704",
"0.5172349"... | 0.7349607 | 1 |
Setter method for max_suppress_time, mapped from YANG variable /rbridge_id/route_map/content/set/dampening/max_suppress_time (uint32) | def dLMs(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1 .. 255']}), is_leaf=True, yang_name='max-suppress-ti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l2oU(YKHO):\n return YKHO.__max_suppress_time",
"def fWIf(YKHO, gNly):\n YKHO._mcts.max_time = gNly",
"def GfZq(YKHO, GfZq):\n if GfZq is None:\n raise ValueError('Invalid value for `time_max`, must not be `None`')\n YKHO._time_max = GfZq",
"def gNly(YKHO, gNly):\n if gNly is None:\... | [
"0.7030337",
"0.63585275",
"0.610767",
"0.61058885",
"0.5787881",
"0.5763481",
"0.56427664",
"0.5623387",
"0.5564083",
"0.55195755",
"0.5496754",
"0.54601794",
"0.5412596",
"0.5371244",
"0.534383",
"0.5330977",
"0.53272545",
"0.5325466",
"0.5316332",
"0.5283814",
"0.5279998",... | 0.84437513 | 0 |
prompts user for input from keyboard, returns that input | def _OGd(lLSt):
PcHS.echo()
Vjhr.clear()
Vjhr.border(0)
Vjhr.addstr(2, 2, lLSt)
Vjhr.refresh()
input = Vjhr.getstr(10, 10, 150)
PcHS.noecho()
return input | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x5_I(idDS):\n return _G0M(idDS)",
"def QRiV():\n return input()",
"def e9ln(idDS):\n return kno8(idDS)",
"def gErK(Ol8d=''):\n return _G0M(Ol8d)",
"def Uuo7(bAls):\n fZOT = idDS.string(bAls)\n return fZOT",
"def QRiV(idDS):\n if HwRy.hexversion > 50331648:\n return input(i... | [
"0.83120465",
"0.81269",
"0.7994345",
"0.7830496",
"0.7805641",
"0.7764337",
"0.7716847",
"0.765831",
"0.7649108",
"0.7614112",
"0.7612205",
"0.7565723",
"0.75633943",
"0.756062",
"0.7545884",
"0.7529056",
"0.75263083",
"0.74995816",
"0.74995816",
"0.748772",
"0.7473342",
"... | 0.0 | -1 |
Pad the string to be terminal width. | def bSA2(str, TVTK):
u54L = len(str)
FIL5 = 0
if u54L < TVTK:
FIL5 = TVTK - u54L
return str + ' ' * FIL5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zt95(vIwR):\n return vIwR.ljust(512)",
"def hVLt(vIwR, u54L):\n return '\\n'.join([(' ' * u54L if p6S0 else '') + zFiD for p6S0, zFiD in enumerate(vIwR.split('\\n'))])",
"def hVLt(wEf2: str, oi6k: int=2) -> str:\n yMXD = ' ' * oi6k\n return '{0}{1}{0}'.format(yMXD, wEf2)",
"def AeBf(KCHu, vC9... | [
"0.77416253",
"0.7606769",
"0.7545117",
"0.7358737",
"0.7320521",
"0.7296456",
"0.727893",
"0.7269093",
"0.72520894",
"0.7208965",
"0.7153895",
"0.71356505",
"0.7113265",
"0.7113265",
"0.702531",
"0.70241195",
"0.69924974",
"0.6988288",
"0.6985123",
"0.69439936",
"0.6941987",... | 0.8007989 | 0 |
Return a cleaned up headline s. | def YxXR(YKHO, KCHu: str) -> str:
KCHu = KCHu.strip()
for TZ9E in ('local', 'function'):
if KCHu.startswith(TZ9E):
KCHu = KCHu[len(TZ9E):]
YRbF = KCHu.find('(')
if YRbF > -1:
KCHu = KCHu[:YRbF]
return KCHu.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YxXR(YKHO, KCHu: str) -> str:\n r8hN = YKHO.pascal_clean_pattern.match(KCHu)\n return '%s %s' % (r8hN.group(1), r8hN.group(2)) if r8hN else KCHu.strip()",
"def YxXR(YKHO, KCHu: str) -> str:\n for Npgh in '{(=;':\n YRbF = KCHu.find(Npgh)\n if YRbF > -1:\n KCHu = KCHu[:YRbF]\n... | [
"0.82391924",
"0.7699873",
"0.736903",
"0.7070589",
"0.7065284",
"0.69045985",
"0.6880844",
"0.67671335",
"0.66974264",
"0.6675278",
"0.6675058",
"0.6661436",
"0.66079456",
"0.6517902",
"0.6492608",
"0.64830583",
"0.6417451",
"0.64047194",
"0.64028233",
"0.64028233",
"0.63565... | 0.74464333 | 2 |
All horses who ran for awarded distance get one point. | def aBQM(vIda, KsB_):
for WKvO in vIda:
if WKvO.km == KsB_:
WKvO.award() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKlR(YKHO, xi3E):\n return Ayfi((YKHO.x, YKHO.y), (xi3E.x, xi3E.y))",
"def y_oG(YKHO, AU8u):\n Ayfi = 0.0\n dcxj = 0.0\n for YRbF in range(len(AU8u)):\n for YRbF in range(len(AU8u)):\n Ayfi += abs(YKHO.goal[YRbF] - AU8u[YRbF])\n for YRbF in range(len(AU8u)):\n dcxj += ... | [
"0.62462574",
"0.6123236",
"0.5959612",
"0.574453",
"0.5686445",
"0.56807417",
"0.5628571",
"0.56254804",
"0.55761176",
"0.55761176",
"0.55761176",
"0.5511784",
"0.54982585",
"0.5484614",
"0.54841155",
"0.5464237",
"0.5437721",
"0.54348713",
"0.5427772",
"0.54233897",
"0.5403... | 0.6797774 | 0 |
Perspective projection matrix parameters for transforming to a normalized cube between Negative one to One (NO) | def G7lO(_e1V, Ir38, Qh4y, Dfjx):
T8QC = oyIN.tan(_e1V / 2.0)
wMNx = 1 / (Ir38 * T8QC)
ptAv = 1 / T8QC
l632 = (Qh4y + Dfjx) / (Dfjx - Qh4y)
bjYM = -2 * Qh4y * Dfjx / (Dfjx - Qh4y)
return (wMNx, ptAv, l632, bjYM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ouT2(YKHO):\n ...",
"def YhPc(YKHO):\n BxRI = oyIN.tan(YKHO.fov_deg / 2.0 / 180.0 * oyIN.pi)\n OsfI = YKHO.near_plane * BxRI\n if YKHO.vport_wd_px < YKHO.vport_ht_px:\n u6RH = 2.0 * OsfI\n AYdK = u6RH * YKHO.vport_ht_px / float(YKHO.vport_wd_px)\n else:\n AYdK = 2.0 * OsfI... | [
"0.7602848",
"0.66442734",
"0.66179913",
"0.6606746",
"0.65671426",
"0.65435076",
"0.653851",
"0.65077734",
"0.6489856",
"0.64752734",
"0.64659846",
"0.644282",
"0.6372453",
"0.6311647",
"0.6309442",
"0.629094",
"0.6285411",
"0.6284475",
"0.6259405",
"0.62060595",
"0.6200911"... | 0.70556366 | 1 |
Inverse perspective for righthanded camera with all coords mapped from [1, 1] | def imQq(_e1V, Ir38, Qh4y, Dfjx):
wMNx, ptAv, l632, bjYM = G7lO(_e1V, Ir38, Qh4y, Dfjx)
return C6va([[1 / wMNx, 0, 0, 0], [0, 1 / ptAv, 0, 0], [0, 0, 0, -1], [0, 0, 1 / bjYM, -l632 / bjYM]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YA67(YKHO, LNo8):\n Nx4U = oyIN.array(YKHO.__front_view_ctrl_point).astype(dtype=oyIN.float32)\n NBVR = oyIN.array(YKHO.__top_view_ctrl_point).astype(dtype=oyIN.float32)\n iRvX = XC5k.getPerspectiveTransform(src=Nx4U, dst=NBVR)\n BKWy = XC5k.warpPerspective(src=LNo8, M=iRvX, dsize=YKHO.__warped_siz... | [
"0.720979",
"0.71622044",
"0.71076703",
"0.6626394",
"0.658823",
"0.6546325",
"0.65236825",
"0.6511183",
"0.649625",
"0.64495534",
"0.6358302",
"0.63416094",
"0.6294973",
"0.6289326",
"0.62860954",
"0.6284978",
"0.6284033",
"0.6281527",
"0.6262402",
"0.62375313",
"0.6195662",... | 0.6092294 | 28 |
Finds closest index to the left of an item in arr. | def jUbz(ezWE, ZfUD):
gqRb = 0
ODP9 = len(ezWE) - 1
x1fj = 0
while gqRb <= ODP9:
x1fj = (ODP9 + gqRb) // 2
if ezWE[x1fj] < ZfUD:
gqRb = x1fj
elif ezWE[x1fj] > ZfUD:
ODP9 = x1fj
else:
return x1fj
if ezWE[ODP9] <= ZfUD:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SnHv(YKHO, ezWE, kAne):\n from bisect import bisect_left\n assert oyIN.all(ezWE[1:] >= ezWE[:-1])\n oeNL = bisect_left(ezWE, kAne)\n if oeNL == 0:\n return ezWE[0]\n if oeNL == len(ezWE):\n return ezWE[-1]\n return ezWE[oeNL - 1]",
"def hRs7(Q6uT, LihS):\n ezF6 = oyIN.abs(o... | [
"0.8165086",
"0.7344724",
"0.7205448",
"0.71949613",
"0.71285045",
"0.7114302",
"0.7069257",
"0.70368356",
"0.70220596",
"0.70113045",
"0.6897917",
"0.68960434",
"0.6868262",
"0.68531203",
"0.68243796",
"0.67604303",
"0.6742243",
"0.67351204",
"0.673093",
"0.6729706",
"0.6725... | 0.0 | -1 |
Get the client id needed to send data to the websocket | def zb3C(YKHO):
pimP = qQXR.dumps([{'advice': {'timeout': 60000, 'interval': 0}, 'channel': '/meta/handshake', 'ext': {'subscriptionId': YKHO.token}, 'id': YKHO.id_, 'minimumVersion': '1.0', 'supportedConnectionTypes': ['websocket', 'long-polling', 'callback-polling'], 'version': '1.0'}])
nPrm = YKHO.socket_dat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UJQp(YKHO):\n pass",
"def znFQ(YKHO):\n return YKHO.__client_id",
"def RTzd(YKHO):\n return YKHO.rs.my_clients[0]['id']",
"def zb3C(YKHO) -> str:\n return YKHO._client_id",
"def zb3C(YKHO) -> str:\n return YKHO._client_id",
"def zb3C(YKHO) -> str:\n return YKHO.database.client.id",
... | [
"0.75822496",
"0.7356525",
"0.7319349",
"0.7302382",
"0.7302382",
"0.72827977",
"0.72388196",
"0.72388196",
"0.72388196",
"0.72388196",
"0.72341263",
"0.7188118",
"0.7181556",
"0.7158896",
"0.7156055",
"0.71477586",
"0.71477586",
"0.71477586",
"0.71477586",
"0.71477586",
"0.7... | 0.8281975 | 0 |
`image` should be the output of a Canny transform. Returns hough lines (not the image with lines) | def ukXH(LNo8):
return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=10, maxLineGap=5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ukXH(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=20, maxLineGap=300)",
"def ukXH(LNo8):\n KQs3 = XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=20, maxLineGap=300)\n return KQs3",
"def CM3h(LNo8):\n return XC5k.H... | [
"0.8316552",
"0.8204066",
"0.81055856",
"0.8016823",
"0.78564143",
"0.77030706",
"0.75132823",
"0.73487437",
"0.7334149",
"0.72976416",
"0.7279419",
"0.72768027",
"0.72730607",
"0.7266367",
"0.7258259",
"0.7257311",
"0.72036386",
"0.72014797",
"0.720048",
"0.71959186",
"0.719... | 0.8376377 | 0 |
Get the conditional probability of word included given it is a spam | def COn2(nPrm, pan_, fvDH, RfQb):
ewCu = 0
for YRbF in RfQb:
if pan_[0][YRbF] == 1 and nPrm[fvDH][YRbF] == 1:
ewCu += 1
iYfc = ewCu / sum(pan_[0])
return iYfc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOh8(AfdW):\n GIN8, Oy9G, SdDv = AfdW\n return Oy9G / (Oy9G + SdDv)",
"def NN34(GIN8):\n if GIN8 in t4v1 and GIN8 in wPE4:\n Yer6 = t4v1[GIN8]\n ran3 = wPE4[GIN8]\n XIsB = Yer6 / float(Yer6 + ran3)\n elif GIN8 in t4v1 and GIN8 not in wPE4:\n Yer6 = t4v1[GIN8]\n ... | [
"0.8188606",
"0.79332334",
"0.75620437",
"0.74110687",
"0.73813355",
"0.71893704",
"0.7139144",
"0.70726407",
"0.7068924",
"0.7055546",
"0.70161164",
"0.69581485",
"0.693498",
"0.692704",
"0.6926299",
"0.68712294",
"0.6841047",
"0.68407273",
"0.683402",
"0.67288697",
"0.67216... | 0.7330706 | 5 |
Get the predicted target | def jySw(eWwl, avy2, JQIt, AicQ, BVAm, mvNX, rYrh, rdlD):
uua_ = fq5Q(eWwl, avy2, JQIt, rYrh, rdlD)
FJu4 = S9ir(AicQ, BVAm, mvNX, rYrh, rdlD)
if uua_ > FJu4:
return 1
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jHee(YKHO, pKvt):\n return YKHO.target_model.predict(pKvt)",
"def YEmv(YKHO, pan_):\n return oyIN.argmax(YKHO.feedforward_computation(pan_))",
"def PjQx(YKHO):\n return YKHO.x.dot(YKHO.solution)",
"def YEmv(YKHO):\n return YKHO._trainSet.label[oyIN.argmax(YKHO._layer[-1].output, axis=1)]",
... | [
"0.7886953",
"0.78849405",
"0.75661546",
"0.75000834",
"0.73102313",
"0.72980404",
"0.72096586",
"0.7170621",
"0.7158731",
"0.71534723",
"0.7139753",
"0.70636314",
"0.70636314",
"0.7060401",
"0.7031796",
"0.70141053",
"0.7008159",
"0.69965047",
"0.69796914",
"0.69615066",
"0.... | 0.0 | -1 |
Returns parsed program arguments. | def rwTO():
wvEv = j1Jz.ArgumentParser()
wvEv.add_argument('--input_dir', help='Ignored.')
wvEv.add_argument('--output_dir', help='Directory for writing testcases.', required=True)
wvEv.add_argument('--no_of_files', type=int, help='Ignored.')
return wvEv.parse_args() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dCXb(YKHO):\n return YKHO.main_parser.parse_args()",
"def qElm(YPqY):\n if YPqY == 'species':\n qIxc = Jz66()\n elif YPqY == 'genes':\n qIxc = uo4r()\n elif YPqY == 'snps':\n qIxc = wL6f()\n else:\n HwRy.exit(\"\\nError: Unrecognized program: '%s'\\n\" % YPqY)\n ... | [
"0.769559",
"0.76107836",
"0.75901115",
"0.7556772",
"0.7529873",
"0.7391377",
"0.73809946",
"0.7368836",
"0.73520434",
"0.7348176",
"0.73013324",
"0.72888213",
"0.72858196",
"0.7271225",
"0.72628504",
"0.72628504",
"0.72617835",
"0.7254854",
"0.7232504",
"0.721454",
"0.72124... | 0.0 | -1 |
was_published_recently returns False for a question in the future | def GoiU(YKHO):
vS5o = Y4Gy(pub_date=rIAI.now() + qcWV.timedelta(days=30))
vS5o.was_published_recently()
YKHO.assertIs(vS5o.was_published_recently(), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GoiU(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=30)\n vS5o = Y4Gy(pub_date=ITS7)\n YKHO.assertEqual(vS5o.was_published_recently(), False)",
"def GoiU(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=30)\n vS5o = Y4Gy(pub_date=ITS7)\n YKHO.assertIs(vS5o.was_published_recently(), False)... | [
"0.85017866",
"0.8494061",
"0.84927744",
"0.84912974",
"0.8481016",
"0.84749955",
"0.84749955",
"0.84749955",
"0.8465717",
"0.8461316",
"0.8459894",
"0.8455536",
"0.8437779",
"0.8437779",
"0.8437779",
"0.8437779",
"0.8437779",
"0.8437779",
"0.8437779",
"0.8437779",
"0.8437779... | 0.8524344 | 0 |
was_published_recently returns False for a question older than 1 day | def QPdK(YKHO):
lPNG = Y4Gy(pub_date=rIAI.now() + qcWV.timedelta(days=1, seconds=1))
YKHO.assertIs(lPNG.was_published_recently(), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eC1B(YKHO):\n m5xt = Y4Gy(pub_date=rIAI.now() - qcWV.timedelta(hours=23, minutes=59, seconds=59))\n YKHO.assertIs(m5xt.was_published_recently(), True)",
"def QPdK(YKHO):\n ITS7 = rIAI.now() - qcWV.timedelta(days=1, seconds=1)\n lPNG = Y4Gy(pub_date=ITS7)\n YKHO.assertIs(lPNG.was_published_rece... | [
"0.84884125",
"0.84521866",
"0.84473056",
"0.84310925",
"0.84307534",
"0.8423061",
"0.84154946",
"0.8379243",
"0.8374102",
"0.8372513",
"0.8372513",
"0.8372513",
"0.8372513",
"0.8372513",
"0.8372513",
"0.8372513",
"0.8372513",
"0.8372513",
"0.8372513",
"0.8372513",
"0.8372513... | 0.84212804 | 6 |
was_published_recently returns True for a question within 1 day | def eC1B(YKHO):
m5xt = Y4Gy(pub_date=rIAI.now() - qcWV.timedelta(hours=23, minutes=59, seconds=59))
YKHO.assertIs(m5xt.was_published_recently(), True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eC1B(YKHO):\n ITS7 = rIAI.now() - qcWV.timedelta(hours=1)\n m5xt = Y4Gy(pub_date=ITS7)\n YKHO.assertEqual(m5xt.was_published_recently(), True)",
"def eC1B(YKHO):\n ITS7 = rIAI.now() - qcWV.timedelta(hours=1)\n m5xt = Y4Gy(pub_date=ITS7)\n YKHO.assertIs(m5xt.was_published_recently(), True)",... | [
"0.847787",
"0.84609693",
"0.8460723",
"0.8456147",
"0.8448956",
"0.84342164",
"0.8425415",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418869",
"0.8418828",
... | 0.85134685 | 0 |
if no appropriate questions exist, show a message | def oK9x(YKHO):
geh0 = YKHO.client.get(gxEw('polls:index'))
YKHO.assertEqual(geh0.status_code, 200)
YKHO.assertContains(geh0, YKHO.no_polls_text) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAls():\n return 'Sure.'",
"def E4sG(YKHO):\n XNC8 = YKHO.answer.get()\n if XNC8 in YKHO.question['answers']:\n XW6u.messagebox.showinfo('Correct!', 'You are correct!')\n YKHO.score += YKHO.question['difficulty'] * 2\n else:\n XW6u.messagebox.showerror('Incorrect!', 'Sorry, t... | [
"0.752183",
"0.6943598",
"0.6849347",
"0.68230885",
"0.6815093",
"0.67846435",
"0.6751693",
"0.67044705",
"0.6657967",
"0.6656354",
"0.6611148",
"0.6585118",
"0.6564158",
"0.65556526",
"0.65539396",
"0.6531129",
"0.6530283",
"0.65168166",
"0.64970994",
"0.6480363",
"0.6476708... | 0.64505804 | 22 |
questions with a pub_date in the past are displayed on the index page | def JSeU(YKHO):
II0Q('do we show past questions?', days=-30)
geh0 = YKHO.client.get(gxEw('polls:index'))
YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: do we show past questions?>']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lrPw(YKHO):\n II0Q(question_text='Past question.', days=-1)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question.>'])",
"def hOEG(YKHO):\n II0Q(question_text='Past question.', days=-1)\n II0Q(question_text='Fu... | [
"0.7102561",
"0.70903915",
"0.70842177",
"0.70842177",
"0.706549",
"0.70627636",
"0.7056261",
"0.7038569",
"0.702944",
"0.70013523",
"0.6997177",
"0.69733447",
"0.69733447",
"0.6950041",
"0.69081646",
"0.69081646",
"0.690302",
"0.6888117",
"0.6888117",
"0.6888117",
"0.6888117... | 0.69181633 | 14 |
even if both future and past questions exist, only past questinos show | def Xb9Y(YKHO):
II0Q('do we show past questions?', days=-30)
II0Q('do we show future questions?', days=1)
geh0 = YKHO.client.get(gxEw('polls:index'))
YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: do we show past questions?>']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tDUO(YKHO):\n II0Q(question_text='Future Question Example', days=30)\n II0Q(question_text='Past Question Example', days=-30)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past Question Example>'])",
"def fV9N(YKHO):\n ... | [
"0.74611753",
"0.73507667",
"0.7349425",
"0.7339471",
"0.73270714",
"0.7307799",
"0.7307799",
"0.7307799",
"0.7307799",
"0.7304813",
"0.728383",
"0.72008276",
"0.71840084",
"0.7152736",
"0.7096835",
"0.7088132",
"0.7085615",
"0.7078459",
"0.7069408",
"0.70565903",
"0.70518124... | 0.74962604 | 0 |
Returns the system path (a path recognised by the OS) if present. If the path does not map to a system path (and allow_none is False) then a NoSysPathError exception is thrown. path A path within the filesystem allow_none If True, this method should return None if there is no system path, rather than raising NoSysPathE... | def Qiwz(YKHO, pmON, L8u5=False):
if not L8u5:
raise tECB(path=pmON)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiwz(YKHO, pmON, L8u5=False):\n tk5Y = YKHO.rootfs.getsyspath('/', allow_none=L8u5)\n if tk5Y:\n return gzes(tk5Y, pmON.lstrip('/'))",
"def JK0O(pmON, L8u5=True):\n if L8u5 and (not pmON):\n return None\n else:\n assert pmON and GkAb(pmON).exists(), V3xq.path_invalid(pmON, '_... | [
"0.72761875",
"0.6358317",
"0.62518686",
"0.6036766",
"0.6035956",
"0.60068464",
"0.5996626",
"0.59803796",
"0.59757936",
"0.5901719",
"0.5885454",
"0.5885454",
"0.5873559",
"0.5870101",
"0.57659006",
"0.57309556",
"0.5706404",
"0.56779224",
"0.5628543",
"0.56170976",
"0.5603... | 0.8234681 | 0 |
Return True if the path maps to a system path. path Pach to check | def TGj6(YKHO, pmON):
return YKHO.getsyspath(pmON, None) is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dplw(Ux0P: typing.Union[os.PathLike[str], str]) -> bool:\n return p__f.util.in_system_path(Hy7s.fspath(Ux0P))",
"def Vry0(pmON):\n vh_t = 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment'\n zOGz = xWWu(path=vh_t, name='Path')\n return pmON + ';' in zOGz or zOGz.endswith(p... | [
"0.76857126",
"0.6889934",
"0.67841554",
"0.675875",
"0.67489594",
"0.67146605",
"0.65913546",
"0.6522281",
"0.64861864",
"0.647786",
"0.64678",
"0.64398575",
"0.6418436",
"0.63829625",
"0.6373715",
"0.6365354",
"0.6363505",
"0.6353041",
"0.63524026",
"0.63522077",
"0.6342163... | 0.78897655 | 0 |
Set the characters health | def ZnpV(YKHO, ZnpV):
YKHO._health = ZnpV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ehpv(YKHO, wEf2: int) -> None:\n if wEf2 <= 0:\n YKHO.health = 0\n elif wEf2 >= 100:\n YKHO.health = 100\n else:\n YKHO.health = wEf2",
"def Ehpv(YKHO, a033):\n YKHO._health += a033",
"def dPDD(YKHO, ZnpV):\n YKHO.health = ZnpV",
"def Ehpv(YKHO, WKvO):\n YKHO._healt... | [
"0.7243447",
"0.7211353",
"0.71815246",
"0.7028925",
"0.6977312",
"0.6857009",
"0.67489845",
"0.67353016",
"0.66906524",
"0.6683536",
"0.66018146",
"0.65695184",
"0.6555369",
"0.63545537",
"0.6328599",
"0.6286548",
"0.62264097",
"0.61872023",
"0.61679035",
"0.61557955",
"0.61... | 0.69683474 | 5 |
The attribute name as a string. | def mWFP(YKHO):
return YKHO._definition.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._attr_name",
"def mWFP(YKHO) -> str | None:\n return YKHO._attr_name",
"def hQ8z(YKHO):\n return YKHO.getAttribute('name')",
"def mWFP(YKHO):\n return YKHO.attribute.Name",
"def jjMm(mWFP):\n return '_%s' % mWFP",
"def _j8X(YKHO) -> h8nf[str]:\n return YKHO... | [
"0.82760924",
"0.8067391",
"0.80304897",
"0.79591304",
"0.7880378",
"0.78768015",
"0.7617077",
"0.75942534",
"0.75547326",
"0.7497574",
"0.7344166",
"0.7332857",
"0.731988",
"0.7309475",
"0.72817",
"0.72814363",
"0.72651124",
"0.72606725",
"0.7257862",
"0.7241858",
"0.7222433... | 0.0 | -1 |
The value that this attribute has. | def BWXx(YKHO):
return YKHO._value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO):\n return YKHO.attributes['value']",
"def BWXx(YKHO) -> str:\n return YKHO.get_attribute('value')",
"def BWXx(YKHO) -> CTAP:\n return YKHO._value or ''",
"def BWXx(YKHO):\n return YKHO['value']",
"def qxcP(YKHO):\n return YKHO.get_attribute(s6Cf.AttributeIds.Value)",
"def BW... | [
"0.8575138",
"0.8347304",
"0.8236449",
"0.8215434",
"0.8173524",
"0.80834407",
"0.8078049",
"0.8069789",
"0.8069789",
"0.8069789",
"0.8069789",
"0.8069789",
"0.8063059",
"0.8062668",
"0.8059032",
"0.8055762",
"0.80532956",
"0.80532956",
"0.80532956",
"0.8026163",
"0.8026163",... | 0.80046564 | 31 |
Gets the object_qnode_key of this OperationOverlayFisherExactTestParameters. | def j2wt(YKHO):
return YKHO._object_qnode_key | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lxpp(YKHO):\n return YKHO._subject_qnode_key",
"def j2wt(YKHO, j2wt):\n if j2wt is None:\n raise ValueError('Invalid value for `object_qnode_key`, must not be `None`')\n YKHO._object_qnode_key = j2wt",
"def t8nS(YKHO) -> laHg.Optional[lTJ4.core.CfnParameter]:\n return YKHO._values.get('o... | [
"0.6405624",
"0.6364868",
"0.5645036",
"0.55368066",
"0.54502493",
"0.5370522",
"0.5370522",
"0.5370522",
"0.5286645",
"0.52384186",
"0.52182114",
"0.5216412",
"0.5206223",
"0.51906097",
"0.5171449",
"0.51010156",
"0.50965214",
"0.50926584",
"0.5082044",
"0.50708187",
"0.5070... | 0.7562141 | 0 |
Method creates OAuth2 session providing the token, state, and scope. Returns OAuth 2 Session Object | def ccIC(eOtH=None, QTBn=None, rrBf=None):
return mfaf(client_id=dwNi, token=eOtH, state=QTBn, scope=rrBf, redirect_uri=jx32, auto_refresh_kwargs={'client_id': dwNi, 'client_secret': iZBT}, auto_refresh_url=pEkX, token_updater=D3oe) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QYeG(YKHO):\n return mfaf(client_id=YKHO.client_id, token=YKHO.token, token_updater=YKHO.token_updater, auto_refresh_url=YKHO.token_url, auto_refresh_kwargs={'client_id': YKHO.client_id, 'client_secret': YKHO.client_secret})",
"def QYeG(YKHO):\n return YKHO._get_session(mfaf(client_id=YKHO.client_id, t... | [
"0.75125027",
"0.7244582",
"0.67365605",
"0.670962",
"0.65765893",
"0.6498088",
"0.64510965",
"0.6445634",
"0.6419879",
"0.6388331",
"0.62988806",
"0.62984437",
"0.62894475",
"0.62696594",
"0.6236868",
"0.6236868",
"0.6230767",
"0.6174291",
"0.6171504",
"0.61711365",
"0.61147... | 0.87403256 | 0 |
The number of playlists available. | def i865(YKHO):
return YKHO.get('PlaylistCount') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Awq9(YKHO):\n return len(YKHO.song_list)",
"def EWtE(YKHO):\n return len(YKHO.pl['tracks']['items'])",
"def L7yh():\n return DMju.objects(state='show_playlist').count()",
"def BJch(YKHO):\n Aofo = len(YKHO.tournament_data.tournament.playerList)\n return Aofo",
"def zNig(YKHO):\n retur... | [
"0.7229916",
"0.7205305",
"0.70472383",
"0.7026826",
"0.6956393",
"0.68952626",
"0.6887286",
"0.68577254",
"0.6843394",
"0.68305755",
"0.6830037",
"0.68172127",
"0.6815881",
"0.6799431",
"0.67943823",
"0.6778767",
"0.67464626",
"0.6738663",
"0.6733659",
"0.67302203",
"0.67302... | 0.8177594 | 0 |
The available orderings. At least one must be offered. | def IBxW(YKHO):
return YKHO.get('Orderings') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ymb4(BgK2: List[Order]) -> x1iM[str]:\n return [T4Wy.show() for T4Wy in BgK2 if not getattr(T4Wy, 'taken')]",
"def xKHE(oyg0):\n IvBD = [poFK(L9Jq, oyg0) for L9Jq in GHEq]\n IvBD = sorted(IvBD, key=lambda xypE: xypE['type'].ORDER)\n return IvBD",
"def XlNo(YKHO):\n return YKHO.exchange_api.s... | [
"0.71241593",
"0.6500146",
"0.6444265",
"0.64038926",
"0.6216915",
"0.61437696",
"0.60264283",
"0.5993691",
"0.59891284",
"0.5972224",
"0.59371376",
"0.59334",
"0.58749336",
"0.5852876",
"0.58219516",
"0.58168674",
"0.58168674",
"0.5796497",
"0.5760736",
"0.57433933",
"0.5736... | 0.70241904 | 1 |
Iteratively walk a flat mapping with namespaced keys, as found in a FrozenFlat or Flat instance. | def ADAR(J8oL):
for cpsB in J8oL.keys():
H5ew, Dl0U = tMc6(cpsB)
yield (Dl0U + [H5ew, J8oL[cpsB]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsY7(YKHO):\n for H5ew, BWXx in TKau(YKHO):\n yield H5ew",
"def _eKd():\n JYNz = {}\n for qNCK in Ildr(qN2u()):\n *Dl0U, H5ew, BWXx = qNCK\n cpsB = TFh0(H5ew, *Dl0U)\n JYNz[cpsB] = BWXx\n assert JYNz == tBwP()\n TLbF = KxVu(JYNz)\n IYFj = TLbF.freeze()\n asser... | [
"0.6423571",
"0.64168584",
"0.61811703",
"0.61691236",
"0.60086566",
"0.59950364",
"0.59616536",
"0.5942487",
"0.5877825",
"0.57876414",
"0.57746494",
"0.5766739",
"0.5766739",
"0.57471037",
"0.56104684",
"0.5588265",
"0.5588265",
"0.5587488",
"0.5584752",
"0.554516",
"0.5535... | 0.7717439 | 0 |
Return a flattened dict containing only the namespaced items. | def hu2a(YKHO, *Dl0U, UGEr=False):
if UGEr:
return {H5ew: BWXx for H5ew, BWXx in YKHO.tree.items() if not tx2V(BWXx)}
if not Dl0U:
return dict(YKHO)
if not t7hF(*Dl0U) in YKHO.namespaces():
return {}
Csk6 = YKHO.tree
for _63S in Dl0U:
Csk6 = Csk6[_63S]
return {TFh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PWgb(YKHO):\n I1iR = dict([(H5ew, YKHO[H5ew]) for H5ew in YKHO.keys()])\n PWgb(I1iR)\n return I1iR",
"def qnkS(YKHO):\n\n def MKPt(xPYE, m07n):\n \"\"\"\n Flatten the object if possible, else just add the object to the dict.\n\n :param k_:\n :param v_:\n ... | [
"0.67622524",
"0.6728394",
"0.6386937",
"0.63217604",
"0.62575865",
"0.62021154",
"0.6162124",
"0.61601245",
"0.61179155",
"0.6099648",
"0.6093071",
"0.60787624",
"0.6038676",
"0.60086966",
"0.60079813",
"0.5952721",
"0.59294015",
"0.5917304",
"0.58866113",
"0.588437",
"0.587... | 0.6232984 | 5 |
Human readeable representation of the Project object. Might need to update when we add more attributes. Maybe something like, return u'%s %s' % (self.course, self.title) | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '{0}'.format(YKHO.project_title)",
"def zAg0(YKHO):\n return '{0}'.format(YKHO.project_title)",
"def wHJl(YKHO):\n return '<Project id={id} title={title}>'.format(id=YKHO.id, title=YKHO.title)",
"def zAg0(YKHO):\n return YKHO.project_title",
"def zAg0(YKHO):\n return... | [
"0.7890843",
"0.784386",
"0.770627",
"0.75954807",
"0.75954807",
"0.75954807",
"0.75954807",
"0.75954807",
"0.75954807",
"0.72784907",
"0.7228966",
"0.72190565",
"0.71442384",
"0.7096358",
"0.7096358",
"0.70498234",
"0.69592994",
"0.6941587",
"0.69076353",
"0.6825262",
"0.679... | 0.0 | -1 |
Initialize the game settings. | def FIMM(YKHO):
YKHO.screen_width = 1600
YKHO.screen_height = 1200
YKHO.bg_color = (0, 0, 0)
YKHO.ship_speed_factor = 10
YKHO.bullet_speed_factor = 4.5
YKHO.bullet_width = 6
YKHO.bullet_height = 10
YKHO.bullet_color = (70, 110, 255)
YKHO.bullets_allowed = 20
YKHO.alien_speed_fact... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ks3f(YKHO):\n pass",
"def Ks3f(YKHO):\n pass",
"def Ks3f(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.game_settings = {'WINDOW_HEIGHT': 700, 'WINDOW_WIDTH': 1200, 'Theme': 'Theme_orig', 'Difficulty': 'Normal', 'Sound Volume': 0.3, 'Mode': 'Regular', 'Speed': 'Normal'}",
"def Ks3f(YKHO):\n pas... | [
"0.84369075",
"0.8432192",
"0.82210153",
"0.8097442",
"0.7973119",
"0.7973119",
"0.7973119",
"0.7973119",
"0.7973119",
"0.7973119",
"0.723495",
"0.7209109",
"0.7208865",
"0.71609914",
"0.71557146",
"0.7103232",
"0.70987254",
"0.7092871",
"0.70906776",
"0.70759773",
"0.6984700... | 0.0 | -1 |
Updates the sprite's position, velocity, rotation, etc. | def QdZT(YKHO, AzK3: float):
Vb5F = YKHO.configuration['wheels']['static_friction']
if YKHO.acceleration > 0 or YKHO.velocity < 0:
Mkmy = YKHO.configuration['wheels']['radius']
vuvg = YKHO.get_torque() / Mkmy
else:
vuvg = Vb5F * YKHO.mass * z8aC
vuvg *= YKHO.acceleration
if Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.animate()\n YKHO.acc = iArr(0, 0)\n H5ew = g74T.key.get_pressed()\n if H5ew[g74T.K_RIGHT]:\n YKHO.acc.x = JfOK\n if H5ew[g74T.K_LEFT]:\n YKHO.acc.x = -JfOK\n if H5ew[g74T.K_UP]:\n YKHO.acc.y = -JfOK\n if H5ew[g74T.K_DOWN]:\n YKHO.acc.y = JfOK\... | [
"0.77623075",
"0.7754336",
"0.74461645",
"0.74358505",
"0.737089",
"0.7324445",
"0.7282272",
"0.72696805",
"0.72538567",
"0.7242574",
"0.72347677",
"0.72250223",
"0.7206368",
"0.7176394",
"0.714534",
"0.7115129",
"0.71023107",
"0.71023107",
"0.71023107",
"0.7092532",
"0.70740... | 0.0 | -1 |
Gets the name of the events file currently being written to. | def E544(YKHO):
return ZylS.compat.as_text(YKHO._events_writer.FileName()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dk_N(YKHO):\n return YKHO._log_file_name",
"def N_e1(YKHO):\n return YKHO.event_writer.full_file_name",
"def gIsw(YKHO):\n return YKHO.output_file",
"def gIsw(YKHO):\n return YKHO.output_file",
"def gIsw(YKHO):\n return YKHO.output_file",
"def gIsw(YKHO):\n return YKHO.output_file",... | [
"0.7368482",
"0.73439085",
"0.7327111",
"0.7327111",
"0.7327111",
"0.7327111",
"0.722353",
"0.7205106",
"0.7190212",
"0.714568",
"0.7124521",
"0.709056",
"0.708433",
"0.7049892",
"0.7049892",
"0.70035136",
"0.6997317",
"0.69812995",
"0.69779325",
"0.6973759",
"0.6953878",
"... | 0.78578585 | 0 |
Sieve of Eratosthenes up to a maximum range of n | def KwQv(exwG):
T1qg = [True] * exwG
T1qg[0] = False
T1qg[1] = False
T1qg[2] = True
for YRbF in range(3, int(exwG ** 0.5 + 1), 2):
d6pt = YRbF * 2
while d6pt < exwG:
T1qg[d6pt] = False
d6pt = d6pt + YRbF
ffYW = [2]
for YRbF in range(3, exwG, 2):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zdaV(br9u):\n pass",
"def cq3c(exwG: int) -> list[int]:\n assert exwG > 1\n k0lF = [True] * (exwG + 1)\n k0lF[0] = k0lF[1] = False\n for YRbF in range(2, int(PZyS(exwG) + 1)):\n if k0lF[YRbF]:\n for r845 in range(YRbF ** 2, exwG, YRbF):\n k0lF[r845] = False\n ... | [
"0.8533798",
"0.8330282",
"0.8294736",
"0.8285976",
"0.8176362",
"0.8123794",
"0.81028277",
"0.8084022",
"0.80510783",
"0.80285126",
"0.80153495",
"0.8014794",
"0.7964984",
"0.7962071",
"0.7959856",
"0.7959856",
"0.7959856",
"0.795967",
"0.7958845",
"0.794643",
"0.79344237",
... | 0.7806805 | 46 |
turn something like "000000" into 0,0,0 or "FFFFFF into "255,255,255" | def H4Yk(YKHO, qfpW):
if len(qfpW) == 4:
A3Vt = 2 * qfpW[1]
yvY1 = 2 * qfpW[2]
tjUW = 2 * qfpW[3]
else:
A3Vt = qfpW[1:3]
yvY1 = qfpW[3:5]
tjUW = qfpW[5:7]
A3Vt = int(A3Vt, 16)
yvY1 = int(yvY1, 16)
tjUW = int(tjUW, 16)
return (A3Vt, yvY1, tjUW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XbT4(BWXx):\n if BWXx.count(',') != 3:\n return\n try:\n Mkmy, Oa1e, Fg_i, jzdc = (float(YRbF) for YRbF in BWXx.split(','))\n except ValueError:\n return\n if any((WKvO < 0 or WKvO > 1 for WKvO in (Mkmy, Oa1e, Fg_i, jzdc))):\n return\n qfpW = (mELm(YRbF) for YRbF in (... | [
"0.6994681",
"0.678031",
"0.6657292",
"0.6500255",
"0.6246475",
"0.6231688",
"0.6178892",
"0.6177577",
"0.6159161",
"0.6158308",
"0.6158308",
"0.6158308",
"0.61478156",
"0.61337465",
"0.6124894",
"0.6116451",
"0.6116336",
"0.6088894",
"0.60589457",
"0.60562116",
"0.6053254",
... | 0.0 | -1 |
GET /inscricao/1/ must return status code 200 | def ykgQ(YKHO):
YKHO.assertTrue(200, YKHO.resp.status_code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n return ({'status': \"I'm sexy and i know it\"}, 200)",
"def NMoC(YKHO, QePW, QhXx, format=None):\n return oGir({'mensaje': 'Hola Mundo'})",
"def jGRS():\n if QePW.method == 'GET':\n return pz3A({'status': 'OK'})",
"def NMoC(YKHO):\n return ('', 200)",
"def NMoC(YKHO, Qe... | [
"0.6614714",
"0.65652543",
"0.6428595",
"0.64049697",
"0.64026487",
"0.638939",
"0.63427174",
"0.6333496",
"0.6286717",
"0.6286717",
"0.62778556",
"0.62661403",
"0.6228037",
"0.62056017",
"0.6158167",
"0.6129366",
"0.6128257",
"0.61245674",
"0.61210126",
"0.61114055",
"0.6110... | 0.6096649 | 21 |
The folder id from the name "folders/{folder_id}" | def fsnd(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'folder_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fsnd(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'folder_id')",
"def fsnd(YKHO):\n return YKHO._folder_id",
"def fsnd(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'folder_id')",
"def VqGr(b_kJ):\n xtX7 = [WKvO for WKvO in G6Ig() if WKvO['name'] == b_kJ][0]\n return xtX7['i... | [
"0.85661453",
"0.84646565",
"0.8340557",
"0.82382214",
"0.7999356",
"0.7655587",
"0.7579691",
"0.7579691",
"0.73921156",
"0.7385113",
"0.7317558",
"0.7224358",
"0.7133553",
"0.7133553",
"0.71318424",
"0.70686126",
"0.70109856",
"0.696525",
"0.69505316",
"0.6946186",
"0.686384... | 0.84569556 | 2 |
The lifecycle state of the folder such as `ACTIVE` or `DELETE_REQUESTED`. | def pwxl(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'lifecycle_state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwxl(YKHO):\n return YKHO._lifecycle_state",
"def pwxl(YKHO):\n return YKHO._lifecycle_state",
"def pwxl(YKHO):\n return YKHO._lifecycle_state",
"def pwxl(YKHO):\n return YKHO._lifecycle_state",
"def pwxl(YKHO):\n return YKHO._lifecycle_state",
"def pwxl(YKHO):\n return YKHO._lifecy... | [
"0.7216138",
"0.7216138",
"0.7216138",
"0.7216138",
"0.7216138",
"0.7216138",
"0.6873909",
"0.65655345",
"0.6445702",
"0.6308075",
"0.6308075",
"0.62116194",
"0.6191501",
"0.61592877",
"0.6082216",
"0.6069658",
"0.6037227",
"0.6030643",
"0.60026544",
"0.5956432",
"0.5947474",... | 0.6656986 | 7 |
Wrap layers with residual, normalization and dropout. | def _mnB(mWFP, vHnr, d3Q8, lo24=0.0, XJsN=True):
fvc7 = d3Q8(vHnr)
if lo24 > 0.0:
PrhD = bdPE.layers.Dropout(rate=lo24, name='%s-Dropout' % mWFP)(fvc7)
else:
PrhD = fvc7
if isinstance(vHnr, list):
vHnr = vHnr[0]
dwyS = bdPE.layers.Add(name='%s-Add' % mWFP)([vHnr, PrhD])
E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QufS(oubr, KUnM):\n Csk6 = yHwh(KUnM, kernel_size=3, strides=1, padding='same')(oubr)\n Csk6 = MroH('relu')(Csk6)\n Csk6 = GVKG(momentum=0.8)(Csk6)\n Csk6 = yHwh(KUnM, kernel_size=3, strides=1, padding='same')(Csk6)\n Csk6 = GVKG(momentum=0.8)(Csk6)\n Csk6 = XVRe()([Csk6, oubr])\n return C... | [
"0.66379255",
"0.66379255",
"0.6637066",
"0.6633669",
"0.65545815",
"0.6518106",
"0.6511272",
"0.6382047",
"0.63704306",
"0.6279399",
"0.62617767",
"0.62539923",
"0.6230818",
"0.6212741",
"0.6176347",
"0.6175638",
"0.6165881",
"0.61410534",
"0.61328626",
"0.61249626",
"0.6124... | 0.63031393 | 9 |
Multihead selfattention and feedforward layer. | def DhdY(mWFP, vHnr, oAFo, Norb, iY1L=None, OusB=Vmco, lo24=0.0, XJsN=True):
N6GW = '%s-MultiHeadSelfAttention' % mWFP
b_S1 = '%s-FeedForward' % mWFP
UEL3 = _mnB(name=N6GW, input_layer=vHnr, build_func=Hrjr(name=N6GW, head_num=oAFo, activation=iY1L, history_only=False, trainable=XJsN), dropout_rate=lo24, tr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, g4y1):\n yvT9 = YKHO.attention_layer(g4y1)\n yvT9 = yvT9.permute(0, 2, 1)\n yvT9 = yvT9.matmul(YKHO.W)\n return yvT9.squeeze(2)",
"def KVH6(YKHO, BzZE, BHdn, nyv1, bAls, NgLN, K5j2, OaeV, r3lw, UfwV, RyIN, o8tq=None, Md0b=None):\n Ep8u, rPxP, iQSw = BzZE.size()\n V5p_ = [len(kS1Y... | [
"0.6948051",
"0.69386935",
"0.6824829",
"0.68179303",
"0.6756296",
"0.6749092",
"0.67181164",
"0.6708559",
"0.6708287",
"0.6697589",
"0.664009",
"0.66239995",
"0.65985394",
"0.65934885",
"0.65912026",
"0.65418994",
"0.652174",
"0.65063167",
"0.6458229",
"0.6439474",
"0.642501... | 0.0 | -1 |
Sets the full_name of this Player. | def eHMM(YKHO, eHMM):
YKHO._full_name = eHMM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def viI5(YKHO, viI5):\n YKHO._name_full = viI5",
"def viI5(YKHO, viI5):\n YKHO._name_full = viI5",
"def WZrJ(YKHO, eHMM):\n YKHO.full_name = eHMM\n YKHO.add_alias(eHMM)",
"def eHMM(YKHO, eHMM: str):\n if eHMM is None:\n raise ValueError('Invalid value for `full_name`, must not be `None`... | [
"0.8056276",
"0.8056276",
"0.76970166",
"0.7604855",
"0.7432436",
"0.7202679",
"0.71620214",
"0.67135257",
"0.6638805",
"0.66329867",
"0.657496",
"0.6563871",
"0.65336263",
"0.6501844",
"0.6464919",
"0.6448996",
"0.644116",
"0.64259326",
"0.64238894",
"0.64238894",
"0.6413901... | 0.8375248 | 0 |
Sets the first_name of this Player. | def c9ua(YKHO, c9ua):
YKHO._first_name = c9ua | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lnj8(YKHO, c9ua):\n YKHO._first_name = c9ua",
"def Lnj8(YKHO, mWFP):\n YKHO._first_name = mWFP",
"def Lnj8(YKHO, c9ua):\n YKHO.first_name = c9ua",
"def c9ua(YKHO, c9ua):\n YKHO.__first_name = c9ua",
"def c9ua(YKHO, c9ua: str):\n YKHO._first_name = c9ua",
"def c9ua(YKHO, c9ua):\n YKH... | [
"0.88264316",
"0.8804439",
"0.8799427",
"0.8567665",
"0.85641855",
"0.8542952",
"0.85265094",
"0.85265094",
"0.85265094",
"0.85265094",
"0.85265094",
"0.85015243",
"0.8202551",
"0.8184035",
"0.80178195",
"0.7937902",
"0.7905334",
"0.7905334",
"0.7893342",
"0.7746389",
"0.7646... | 0.8507361 | 11 |
Sets the last_name of this Player. | def zp3f(YKHO, zp3f):
YKHO._last_name = zp3f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zsQz(YKHO, zp3f):\n YKHO._last_name = zp3f",
"def zsQz(YKHO, zp3f):\n YKHO._last_name = zp3f",
"def zp3f(YKHO, zp3f: str):\n YKHO._last_name = zp3f",
"def zp3f(YKHO, zp3f):\n YKHO.__last_name = zp3f",
"def zp3f(YKHO, zp3f):\n YKHO._last_name = zp3f",
"def zp3f(YKHO, zp3f: str):\n YK... | [
"0.8726945",
"0.8699154",
"0.8573048",
"0.8569178",
"0.85543674",
"0.8531086",
"0.8531086",
"0.8531086",
"0.8531086",
"0.83742964",
"0.8356618",
"0.8102147",
"0.8045389",
"0.80078095",
"0.7983142",
"0.79285306",
"0.79285306",
"0.79186314",
"0.7852116",
"0.7833635",
"0.782814"... | 0.8502848 | 9 |
Sets the current_age of this Player. | def QZj0(YKHO, QZj0):
YKHO._current_age = QZj0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kjC_(YKHO, ZJe_):\n YKHO.age = ZJe_",
"def HaIk(YKHO, ZJe_):\n YKHO.__age = ZJe_",
"def T7EQ(YKHO, ZJe_):\n YKHO.age = ZJe_",
"def kjC_(YKHO, ZJe_):\n pass",
"def ZJe_(YKHO, ZJe_):\n YKHO._age = ZJe_",
"def ZJe_(YKHO, ZJe_):\n YKHO._age = ZJe_",
"def ZJe_(YKHO, ZJe_):\n YKHO._a... | [
"0.7469412",
"0.74416465",
"0.743915",
"0.73928696",
"0.7322624",
"0.7322624",
"0.7322624",
"0.69234437",
"0.68927693",
"0.6763367",
"0.638482",
"0.61677665",
"0.6119518",
"0.608108",
"0.607006",
"0.6052325",
"0.6017883",
"0.6005167",
"0.5999612",
"0.5959683",
"0.59382206",
... | 0.8581326 | 0 |
Sets the active of this Player. | def WZHJ(YKHO, WZHJ):
YKHO._active = WZHJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLjN(YKHO, WZHJ):\n YKHO.active = WZHJ",
"def eLjN(YKHO, WZHJ):\n YKHO.active = WZHJ",
"def j6OK(YKHO, WZHJ):\n YKHO._active = WZHJ",
"def eLjN(YKHO, WZHJ):\n YKHO.active = WZHJ",
"def eLjN(YKHO, WZHJ=True):\n YKHO.active = WZHJ\n YKHO.set_state()",
"def WZHJ(YKHO, WZHJ: bool):\n ... | [
"0.8026486",
"0.8026486",
"0.7958322",
"0.7862209",
"0.78576726",
"0.77716887",
"0.7757003",
"0.77537715",
"0.7746852",
"0.7724365",
"0.76457363",
"0.7642896",
"0.76016694",
"0.7540458",
"0.7505927",
"0.7441287",
"0.7441287",
"0.73772496",
"0.7321901",
"0.73105365",
"0.727118... | 0.77696687 | 8 |
Sets the current_team of this Player. | def dZqE(YKHO, dZqE):
YKHO._current_team = dZqE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NFLS(YKHO, iTbJ):\n YKHO.team = iTbJ",
"def dZPi(YKHO, dZPi):\n YKHO._team = dZPi",
"def dZPi(YKHO, dZPi):\n YKHO._team = dZPi",
"def dZPi(YKHO, dZPi):\n YKHO._team = dZPi",
"def dZPi(YKHO, dZPi):\n YKHO._team = dZPi",
"def dZPi(YKHO, dZPi):\n YKHO._team = dZPi",
"def dZPi(YKHO, d... | [
"0.6869231",
"0.68127257",
"0.68127257",
"0.68127257",
"0.68127257",
"0.68127257",
"0.68127257",
"0.68127257",
"0.67333484",
"0.67228305",
"0.65943587",
"0.6485212",
"0.64005506",
"0.6305028",
"0.6239591",
"0.6239591",
"0.61696",
"0.6125237",
"0.6122093",
"0.604745",
"0.60153... | 0.8500655 | 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.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):
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.0 | -1 |
Define your own custom queryset for list view | def kxYr(Emd4, QePW, **B2fa):
nRSa = XQ1y.objects.all()
return nRSa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gBiD(YKHO, QTBn, SR0I):\n return SR0I",
"def k66M(YKHO):\n return super().get_queryset()",
"def k66M(YKHO):\n return Y4Gy.objects.filter(pub_date__lte=rIAI.now()).order_by('-pub_date')[:5]",
"def k66M(YKHO):\n if YKHO.defer and (not YKHO.request.is_ajax()):\n return YKHO.model.objects.... | [
"0.77189964",
"0.74414665",
"0.741858",
"0.7395741",
"0.73611337",
"0.7232714",
"0.7232714",
"0.7185753",
"0.7144081",
"0.7125791",
"0.7122232",
"0.71147436",
"0.7110445",
"0.7108798",
"0.70766604",
"0.704564",
"0.7034511",
"0.7034511",
"0.7034511",
"0.69911176",
"0.69911176"... | 0.68967843 | 36 |
Clears the terminal screen wherever required(called) | def R0zR():
def QrM1():
from platform import system
from platform import release
return (system(), release())
from os import system
if QrM1()[0] == 'Linux':
system('clear')
elif QrM1()[0] == 'Windows':
system('cls') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yPVe():\n Hy7s.system('cls')",
"def yPVe():\n Hy7s.system('clear')",
"def yPVe():\n Hy7s.system('clear')",
"def DWiR():\n Hy7s.system('clear')",
"def yPVe() -> None:\n pass",
"def yPVe():\n print('\\x1b[H\\x1b[J')",
"def yPVe() -> None:\n Hy7s.system('cls' if Hy7s.name == 'nt' ... | [
"0.9058339",
"0.90180445",
"0.90104246",
"0.90036607",
"0.8970379",
"0.8948792",
"0.8900078",
"0.8891623",
"0.88844675",
"0.8865054",
"0.8859206",
"0.88584733",
"0.88279885",
"0.88279885",
"0.88279885",
"0.88279885",
"0.8827458",
"0.8823349",
"0.8795631",
"0.8783219",
"0.8766... | 0.0 | -1 |
Return a random character between ASCII 32 and 126 (i.e. spaces, symbols, letters, and digits). All characters returned will be nicely printable. | def g92x():
return float(epAf.cos(tuKI.randrange(0, 3))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R71E():\n return chr(tuKI.randint(97, 123))",
"def CbOq():\n mLGw = tuKI.randint(0, 26 + 26 + 10)\n if mLGw < 26:\n return chr(mLGw + 65)\n mLGw -= 26\n if mLGw < 26:\n return chr(mLGw + 97)\n return chr(mLGw + 48)",
"def fuJz():\n return tuKI.choice(list(u'ABCDEFGHIJKLMN... | [
"0.82793736",
"0.8122016",
"0.80092967",
"0.7908702",
"0.78952163",
"0.78952163",
"0.77185744",
"0.7619732",
"0.7470063",
"0.73322445",
"0.7322768",
"0.73086804",
"0.7184547",
"0.71747565",
"0.71697193",
"0.71425325",
"0.7131505",
"0.7125285",
"0.7064258",
"0.70366544",
"0.70... | 0.0 | -1 |
Return a list of POP_SIZE individuals, each randomly generated via iterating DNA_SIZE times to generate a string of random characters with random_char(). | def Vurp():
BEuN = []
for YRbF in range(EwB9):
ytkQ = []
for Z9rn in range(mFR6):
ytkQ.append(float((fDjo[Z9rn] + g92x() / 2) / 2))
BEuN.append(ytkQ)
return BEuN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bZYR(YKHO, zNig, u54L):\n ftCw = []\n for YRbF in range(0, zNig):\n while len(ftCw) < 50:\n ftCw.append('0')\n while len(ftCw) < 100:\n ftCw.append('1')\n tuKI.shuffle(ftCw)\n wBoo = ''.join(ftCw)\n YKHO.population.append(wBoo)\n ftCw = []\n... | [
"0.7033481",
"0.6967244",
"0.69167703",
"0.68579715",
"0.68579715",
"0.6755618",
"0.6740494",
"0.67357075",
"0.6733188",
"0.6722483",
"0.6714054",
"0.6706453",
"0.6682548",
"0.6682548",
"0.6682548",
"0.66534233",
"0.66457915",
"0.6620887",
"0.6597086",
"0.65747523",
"0.656269... | 0.76730144 | 0 |
Generator function that reads a flie and returns one line at a time. | def zBp5(YKHO, pmON, V_D6, VWe_, WBPg=False):
try:
ytgA = open(pmON, 'r')
except FileNotFoundError:
raise FileNotFoundError('Unable to open the file path provided')
else:
with ytgA:
if WBPg:
riln = next(ytgA)
if len(riln.split(VWe_)) != V_D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mlU7(eHNT):\n rQn3 = False\n while True:\n zFiD = eHNT.readline()\n if not zFiD:\n if rQn3:\n yield ''\n return\n if zFiD.endswith('\\n'):\n rQn3 = True\n else:\n rQn3 = False\n yield zFiD",
"def Hiuq(eHNT):\n... | [
"0.7207026",
"0.71156836",
"0.71004206",
"0.7018384",
"0.69995296",
"0.68234885",
"0.6790989",
"0.67600214",
"0.6740899",
"0.6713964",
"0.6675872",
"0.6640128",
"0.6630645",
"0.6630645",
"0.65940917",
"0.6584745",
"0.6579449",
"0.65708077",
"0.6569646",
"0.6561803",
"0.652745... | 0.0 | -1 |
Creates each new turtle | def oyg0(YKHO):
YRbF = 0
for oyg0 in range(YKHO.num_of_players):
oyg0 = ZbiO.Turtle()
oyg0.shape('turtle')
oyg0.color(YKHO.colors[YRbF])
oyg0.pensize(YKHO.pen_size)
YKHO.players.append(oyg0)
YRbF += 1
return YKHO.players | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X5WS():\n dGOV = ZbiO.Turtle()\n dGOV.shape('circle')\n dGOV.color('green')\n dGOV.penup()\n return dGOV",
"def ZdYF(qfpW, zNig):\n io6K = ZbiO.Turtle()\n io6K.color(qfpW)\n io6K.pensize(zNig)\n return io6K",
"def sTZH(Xd0k, Cozn, Fg_i):\n Xd0k.shape('turtle')\n Xd0k.color(... | [
"0.7056042",
"0.70425344",
"0.6971034",
"0.67688626",
"0.6689966",
"0.65807337",
"0.64692175",
"0.6456078",
"0.644802",
"0.64326376",
"0.6405517",
"0.6394463",
"0.6392556",
"0.6390862",
"0.63778144",
"0.63390803",
"0.63018763",
"0.6259701",
"0.6251701",
"0.6230595",
"0.621442... | 0.0 | -1 |
Updates turtle position each frame. | def QdZT(YKHO):
for oyg0 in YKHO.players:
oyg0.fd(tuKI.randrange(20)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t5nO(a1PO, WKvO, LVAh):\n a1PO.up()\n a1PO.goto(WKvO, LVAh)\n a1PO.down()",
"def BZN_(YKHO):\n ZbiO.goto(YKHO.location)\n YylR = ZbiO.towards(YKHO.destination)\n ZbiO.setheading(YylR)\n ZbiO.forward(YKHO.radius / 2)\n YKHO.location = ZbiO.position()",
"def DbxN():\n ZbiO.up()\n ... | [
"0.7064284",
"0.7034397",
"0.70158595",
"0.6814761",
"0.67122865",
"0.65521055",
"0.6505907",
"0.65006727",
"0.6387405",
"0.6358264",
"0.6306332",
"0.63010633",
"0.62472486",
"0.6235684",
"0.62089336",
"0.62089336",
"0.6192214",
"0.6149492",
"0.6140429",
"0.6129909",
"0.61234... | 0.0 | -1 |
Checks location of each turtle for a winner. | def ufJO(YKHO):
for oyg0 in YKHO.players:
if oyg0.xcor() > 290:
YKHO.winner = f'{oyg0.color()[0].title()} wins!!!'
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ucxl(YKHO, iBIi, ZUyI, pFXy):\n for Rci7 in pFXy:\n Mkmy = Rci7[0]\n Z9rn = Rci7[1]\n return YKHO.is_horizontal_win(iBIi, ZUyI, Mkmy, Z9rn) or YKHO.is_vertical_win(iBIi, ZUyI, Mkmy, Z9rn) or YKHO.is_diagonal1_win(iBIi, ZUyI, Mkmy, Z9rn) or YKHO.is_diagonal2_win(iBIi, ZUyI, Mkmy, Z9rn)",... | [
"0.674408",
"0.67312974",
"0.6620525",
"0.66084856",
"0.655312",
"0.65516406",
"0.6461827",
"0.645729",
"0.6437627",
"0.6424642",
"0.6422108",
"0.6420366",
"0.6408919",
"0.6363298",
"0.6356514",
"0.63532656",
"0.6337453",
"0.6336775",
"0.6326591",
"0.6323317",
"0.6283519",
... | 0.58528024 | 91 |
Construct a generator to yield a list of IBDAncestryMatch objects from the given directory of ancestry data and list of handles. An optional filter can be provided to restrict which entries are read in from the ibd file. All operations are performed with generators, which should result in overall improved data fusion. | def YNv5(upba, zyIo, VXBZ, bYji=False, q0nq=False):
def hs_Z(upba, NsTd):
""" Construct a generator to yield all the IBD entries for the
African-American HRS dataset. We are pulling Soheil's MergedData
dataset, so the GERMLINE output files need to be filtered to remove
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_uj(YKHO, AGPF):\n pmON = Hy7s.path.join(YKHO.db_dir, AGPF)\n print(f' Scanning {AGPF}')\n if AGPF not in YKHO.count:\n YKHO.count[AGPF] = 0\n try:\n eQqJ = []\n for d8j_ in Hy7s.scandir(pmON):\n if d8j_.name == '.directory':\n continue\n ... | [
"0.58863634",
"0.56995547",
"0.5545041",
"0.5503488",
"0.5494134",
"0.5479745",
"0.54504645",
"0.544412",
"0.54159784",
"0.5414998",
"0.54141396",
"0.5413725",
"0.5360194",
"0.5328059",
"0.5323684",
"0.53100455",
"0.52682316",
"0.5253442",
"0.5245674",
"0.52318597",
"0.521643... | 0.60287786 | 0 |
Whether the match is empty. A match is empty if there are no match segments. | def FBfn(YKHO):
return len(YKHO.shared_segments) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n for YRbF in range(0, len(YKHO.segments)):\n if not YKHO.segments[YRbF].is_empty():\n return False\n return True",
"def FBfn(YKHO):\n return YKHO.parsed_data == YKHO.empty_value",
"def FBfn(YKHO):\n return YKHO._len == 0",
"def FBfn(YKHO):\n return YKHO.len =... | [
"0.7380464",
"0.72821647",
"0.7275065",
"0.72544974",
"0.72544974",
"0.7253438",
"0.7198543",
"0.7192415",
"0.7188436",
"0.71800184",
"0.7178503",
"0.71634316",
"0.71541625",
"0.71469975",
"0.7139607",
"0.7127639",
"0.71167904",
"0.71069276",
"0.71057135",
"0.71057135",
"0.71... | 0.7134539 | 15 |
Compare this IBDAncestryMatch with another on the basis of their IBD segments. IBD segments are compared on the basis of their lengths. Therefore, the default ordering for IBDAncestryMatch instances is from smallest to largest. | def JWbp(YKHO, Elif):
return YKHO.ibd_segment < Elif.ibd_segment | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aicm(YKHO, Elif):\n return eHkp(YKHO.get_edges_tuple(), Elif.get_edges_tuple())",
"def Aicm(YKHO, Elif):\n if not isinstance(Elif, type(YKHO)):\n return -1\n return eHkp(YKHO.boundaries, Elif.boundaries)",
"def Aicm(YKHO, Elif):\n return eHkp(YKHO.tagname.encode('utf-8'), Elif.tagname.en... | [
"0.5937417",
"0.5936496",
"0.5924183",
"0.58829945",
"0.58708036",
"0.58510125",
"0.5776409",
"0.5730491",
"0.5689987",
"0.567938",
"0.56251734",
"0.56128603",
"0.5578593",
"0.55677813",
"0.5565141",
"0.55378115",
"0.55181223",
"0.5512316",
"0.5495258",
"0.54736316",
"0.54682... | 0.5783881 | 6 |
Compare this IBDAncestryMatch with another on the basis of their IBD segments. IBD segments are compared on the basis of their lengths. Therefore, the default ordering for IBDAncestryMatch instances is from smallest to largest. | def jmxi(YKHO, Elif):
return YKHO.ibd_segment > Elif.ibd_segment | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aicm(YKHO, Elif):\n return eHkp(YKHO.get_edges_tuple(), Elif.get_edges_tuple())",
"def Aicm(YKHO, Elif):\n if not isinstance(Elif, type(YKHO)):\n return -1\n return eHkp(YKHO.boundaries, Elif.boundaries)",
"def Aicm(YKHO, Elif):\n return eHkp(YKHO.tagname.encode('utf-8'), Elif.tagname.en... | [
"0.5936872",
"0.593587",
"0.59237856",
"0.5882766",
"0.58702105",
"0.5850399",
"0.5784005",
"0.57760614",
"0.57303274",
"0.569054",
"0.5678781",
"0.56136745",
"0.5578757",
"0.5567657",
"0.5564541",
"0.55383503",
"0.551855",
"0.551305",
"0.5494531",
"0.5473839",
"0.546841",
... | 0.5625661 | 11 |
Add a value to the front of the deque. | def k5lc(YKHO, nPrm):
YKHO.dll.push(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wyW2(YKHO, BWXx):\n if YKHO.size == YKHO.capacity:\n raise ValueError('the array is full')\n if YKHO.size == 0:\n YKHO.addToBack(BWXx)\n else:\n YKHO.startIndex = YKHO._correctIndex(YKHO.startIndex - 1)\n YKHO.store[YKHO.startIndex] = BWXx\n YKHO.size += 1",
"def Z... | [
"0.79405314",
"0.78533435",
"0.7851495",
"0.7815526",
"0.77319515",
"0.7723454",
"0.7593579",
"0.75279987",
"0.7501115",
"0.7445882",
"0.7444095",
"0.7444095",
"0.73302686",
"0.7308175",
"0.7308175",
"0.7297299",
"0.7291492",
"0.7265729",
"0.72237873",
"0.7221803",
"0.721398"... | 0.0 | -1 |
Remove a value from the tail of the deque and returns it. | def BEuN(YKHO):
J_uh = YKHO.dll.shift()
if J_uh is None:
raise IndexError('Deque is Empty')
return J_uh.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO):\n try:\n oMb8 = YKHO.tail.data\n YKHO.tail = YKHO.tail.prev\n YKHO.count -= 1\n return oMb8\n except AttributeError:\n raise AttributeError\n print('AttributeError, no items in deque')",
"def BEuN(YKHO):\n wEf2 = None\n if YKHO.head is not Non... | [
"0.8038961",
"0.77275467",
"0.7625007",
"0.76114607",
"0.75984573",
"0.7566994",
"0.7514885",
"0.74605644",
"0.74548614",
"0.7434591",
"0.7392151",
"0.7392151",
"0.73787344",
"0.7373704",
"0.73630124",
"0.7351074",
"0.7327421",
"0.72964394",
"0.7288471",
"0.7287186",
"0.72866... | 0.76797754 | 2 |
Remove a value from the front of the deque and returns. | def GgZC(YKHO):
iEoW = YKHO.dll.pop()
if iEoW is None:
raise IndexError('Deque is Empty')
return iEoW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None",
"def WvVJ(YKHO):\n BWXx = YKHO._values[YKHO._front]\n YKHO.remove(BWXx)\n return BWXx",... | [
"0.8146039",
"0.8109422",
"0.792573",
"0.79033333",
"0.77907455",
"0.7711286",
"0.76806444",
"0.76378435",
"0.7546555",
"0.7546555",
"0.7501038",
"0.7478044",
"0.7473398",
"0.7451532",
"0.74512357",
"0.74434197",
"0.7390313",
"0.73586524",
"0.7349252",
"0.7346336",
"0.7309565... | 0.6847653 | 80 |
Return the value of the tail node. | def T7C_(YKHO):
if YKHO.dll.tail is None:
return
return YKHO.dll.tail.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fEPq(YKHO):\n return YKHO.tail.data",
"def fEPq(YKHO):\n return YKHO.tail",
"def fEPq(YKHO):\n return YKHO.tail",
"def fEPq(YKHO):\n return YKHO.tail",
"def FrVQ(YKHO):\n nIdV = YKHO._tail.data\n YKHO._cur = YKHO._tail\n return nIdV",
"def A_2I(YKHO):\n if YKHO.head_node == No... | [
"0.75720346",
"0.7465016",
"0.7340532",
"0.7340532",
"0.73402256",
"0.7277021",
"0.71874106",
"0.71477956",
"0.700152",
"0.6947376",
"0.693916",
"0.68914753",
"0.6846041",
"0.68368834",
"0.6825371",
"0.6715793",
"0.67019504",
"0.6672818",
"0.665262",
"0.66500854",
"0.65758336... | 0.0 | -1 |
Size of the deque returning zero. | def zNig(YKHO):
UHFx = 0
jvSB = YKHO.dll.head
while jvSB is not None:
UHFx += 1
jvSB = jvSB.next_node
return UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return YKHO.size",
"def szAg(YKHO):\n return len(YKHO.deque)",
"def zNig(YKHO):\n raise 'DequeInterface.size is not implemented'",
"def _DOA(YKHO, yDQN):\n MUE7 = yDQN(size=0)\n assert 0 == MUE7.size()",
"def kvDV(TUzH):\n assert TUzH.size() == 0",
"def szAg(YKHO):\n ... | [
"0.8589054",
"0.8503293",
"0.84447086",
"0.8420097",
"0.82741153",
"0.81603646",
"0.80161804",
"0.7533349",
"0.74970764",
"0.7477111",
"0.74680793",
"0.74557817",
"0.74504864",
"0.7401111",
"0.73973405",
"0.73973405",
"0.73838836",
"0.73716736",
"0.7362825",
"0.7351365",
"0.7... | 0.0 | -1 |
Lets a logged in user to create a new ingredient to the Community Sandwich | def mmFT(QePW):
L03z = H6V6.IngredientForm()
SUPg = Iofl(HACm, pk=2)
if QePW.method == 'POST':
L03z = H6V6.IngredientForm(QePW.POST, QePW.FILES)
if L03z.is_valid():
uBMr = L03z.save(commit=False)
uBMr.Sandwich = SUPg
uBMr.save()
return Yd7Q(gxE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zwdw():\n eOtH = QePW.headers.get('Authorization')\n eOtH = eOtH.split(' ')\n eOtH = eOtH[1]\n if not eOtH:\n return pz3A({'message': 'Token is missing'})\n try:\n nPrm = DvJO.decode(eOtH, xINX, algorithms='HS256')\n CBIr = mv1M.query.get(nPrm['user']['id'])\n likN = ... | [
"0.7725714",
"0.7382449",
"0.73340553",
"0.73271316",
"0.7323893",
"0.7322182",
"0.7312131",
"0.7295771",
"0.7258847",
"0.7258847",
"0.7258847",
"0.7258847",
"0.7242737",
"0.72185487",
"0.71573114",
"0.7156456",
"0.7144516",
"0.7142397",
"0.7080239",
"0.7073884",
"0.69240654"... | 0.769367 | 1 |
Initialise a Totals object. | def as4H(YKHO):
tO9_ = 'Object is not an top.Totals'
YKHO.assertIsInstance(YKHO._c, tlxW.Totals, tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, **B2fa):\n YKHO.total = []",
"def FIMM(YKHO):\n super().__init__()\n YKHO.total = dict()\n YKHO.counts = dict()",
"def FIMM(YKHO, wjRY=10):\n YKHO.total = wjRY\n YKHO.context = None",
"def FIMM(YKHO, kLRn=0):\n YKHO.total = kLRn\n pass",
"def FIMM(YKHO):\n YKHO._up... | [
"0.7362503",
"0.7182689",
"0.696042",
"0.67818",
"0.66392815",
"0.63865095",
"0.63771904",
"0.63680285",
"0.62348306",
"0.61383903",
"0.61171114",
"0.6033235",
"0.6014351",
"0.59981716",
"0.5987625",
"0.59726906",
"0.59329253",
"0.59290284",
"0.5924856",
"0.59041834",
"0.5810... | 0.58635 | 20 |
Delete a product from the store | def pXMW(QePW, r8m5):
if not QePW.user.is_superuser:
yEHD.error(QePW, 'Sorry, only store owners can do that.')
return vKnz(gxEw('home'))
LNo8 = Iofl(hnIv, pk=r8m5)
LNo8.delete()
yEHD.success(QePW, 'Image successfully deleted!')
return vKnz(gxEw('gallery')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(Mc9N):\n Lx3t = NMoC(Mc9N)\n NCls.session.delete(Lx3t)\n NCls.session.commit()",
"def wL2u(QePW, Mc9N):\n if not QePW.user.is_superuser:\n yEHD.error(QePW, 'Sorry, only store owners can do that.')\n return vKnz(gxEw('home'))\n Lx3t = Iofl(msfn, pk=Mc9N)\n Lx3t.delete()\n ... | [
"0.83055526",
"0.8085745",
"0.8052908",
"0.8027032",
"0.8021017",
"0.7918575",
"0.78619266",
"0.786019",
"0.78178996",
"0.77837086",
"0.7782625",
"0.77742875",
"0.77440405",
"0.77429307",
"0.76977885",
"0.76881593",
"0.7682733",
"0.7680423",
"0.7645175",
"0.76359785",
"0.7632... | 0.0 | -1 |
Load trained cnn model | def lELY():
dMYj = 0.9
iPhB = 7
mHeg = 'models/single_models/ratio_0.900000_nlags_7_hidden_nodes_14_epochs_200_cnn_model.h5'
fZf9, WgbM = Qf5f.trained_cnn_model(dMYj, iPhB, mHeg)
for YRbF in range(len(fZf9)):
P1dF = abs(fZf9[YRbF] - WgbM[YRbF]) / WgbM[YRbF] * 100
print('predicted = %... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, pmON='./nnmodel.tflearn'):\n YKHO.model.load(pmON)",
"def uyMl():\n Zxma = TpEL.SegNet(n_classes=1, in_channels=3, is_unpooling=True, pretrained=False)\n Zxma.cuda()\n jbXL = ht2j.load(uqvc)\n Zxma.load_state_dict(jbXL['net'])\n aMlA = jbXL['epoch'] + 1\n N77f = jbXL['loss']\n... | [
"0.76431763",
"0.75570554",
"0.7450125",
"0.73976874",
"0.7371827",
"0.7349185",
"0.73193645",
"0.72767305",
"0.7238254",
"0.71920806",
"0.71764755",
"0.7171279",
"0.7171279",
"0.71678966",
"0.71548885",
"0.71546215",
"0.7148761",
"0.714874",
"0.71335757",
"0.71294194",
"0.71... | 0.7183777 | 10 |
Load trained lstm model | def zkjv():
dMYj = 0.9
N3UE = 1
FFPa = 'models/single_models/ratio_0.900000_nlags_1_hidden_nodes_100_epochs_10_lstm_model.h5'
Q_Kz, Y07v = iHrl.trained_lstm_model(dMYj, N3UE, FFPa)
for YRbF in range(len(Q_Kz)):
P1dF = abs(Q_Kz[YRbF] - Y07v[YRbF]) / Y07v[YRbF] * 100
print('predicted =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zkjv(pmON):\n return bdPE.models.load_model(pmON)",
"def sQPz(jQ3Z, aaq_):\n Y5YY, PYfD = MpCW(jQ3Z)\n bGrB, qby3, bGrB, bGrB = IFVy(PYfD, aaq_)\n C3ST = uyMl('{}/models/saved_models/lstm_model.h5'.format(KfRp))\n return (C3ST, Y5YY, qby3)",
"def uyMl(YKHO, Ux0P):\n YKHO.tokenizer = LK4N.... | [
"0.83686125",
"0.78545195",
"0.77332115",
"0.76989555",
"0.745012",
"0.72359073",
"0.7222221",
"0.71707654",
"0.71670604",
"0.71388435",
"0.7108581",
"0.7060879",
"0.703411",
"0.7012172",
"0.7012172",
"0.7012172",
"0.6996756",
"0.6987799",
"0.698687",
"0.6986597",
"0.6986597"... | 0.78970337 | 1 |
Load trained svr model | def DPii():
dMYj = 0.9
M2to = 4
twbW = 'models/single_models/ratio_0.900000_nlags_4_kernel_rbf_svr_model.sav'
NEdo, Ovb9 = Fsk0.trained_svr_model(dMYj, M2to, twbW)
for YRbF in range(len(NEdo)):
P1dF = abs(NEdo[YRbF] - Ovb9[YRbF]) / Ovb9[YRbF] * 100
print('predicted = %f, expected =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMdJ(YKHO, oTvY, cb_Q):\n pass",
"def O5RJ():\n return k6eJ.load('models/sentiment/_model.pkl')",
"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.7838705",
"0.7743143",
"0.77236277",
"0.77236277",
"0.77236277",
"0.76979005",
"0.76831824",
"0.76831824",
"0.7651007",
"0.76284134",
"0.75908446",
"0.7566209",
"0.7531934",
"0.74995846",
"0.74693745",
"0.7448941",
"0.74290794",
"0.74201113",
"0.74162424",
"0.74132377",
"0... | 0.0 | -1 |
Return list of files to delete, do not delete them here. | def iTvt(YKHO):
return [YKHO.filename] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TtQR(YKHO):\n return [WKvO.strip() for WKvO in YKHO.get('do_not_delete_files', '').split(',')]",
"def ZBO9(YKHO):\n PGGS, klql = Hy7s.path.split(YKHO.baseFilename)\n e649 = Hy7s.listdir(PGGS)\n Aofo = []\n y0cW = klql + '.'\n NJAn = len(y0cW)\n for uRP3 in e649:\n if uRP3[:NJAn] =... | [
"0.77795535",
"0.7554029",
"0.7458482",
"0.7075378",
"0.7041983",
"0.7039858",
"0.703819",
"0.69503516",
"0.683958",
"0.6838147",
"0.6833047",
"0.6746843",
"0.67210346",
"0.6679456",
"0.6664872",
"0.6651633",
"0.66396743",
"0.6637139",
"0.6591765",
"0.6539238",
"0.65379906",
... | 0.7968076 | 0 |
Returns and sets the communication mode. | def iE0l(YKHO, i5CY=False):
if i5CY:
w6vw = YKHO.comm('CMO ,1')
else:
w6vw = YKHO.comm('CMO')
Sz9p = w6vw
if w6vw == '0':
Sz9p = 'Console Keybord'
if w6vw == '1':
Sz9p = 'ASCII'
if w6vw == '2':
Sz9p = 'BIN'
if w6vw == '3':
Sz9p = 'Modem'
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tuqy(YKHO):\n b9M1 = YKHO._settings['mode']\n if YKHO.caching and YKHO._settings['mode'] is not None:\n return b9M1\n try:\n YKHO._settings['mode'] = YKHO.__get_command('CONF:MOD?').replace('\"', '')\n except ValueError:\n YKHO.logger.error('Received mode was faulty. Set defaul... | [
"0.69810885",
"0.67963535",
"0.67105854",
"0.6700281",
"0.6692328",
"0.6673523",
"0.6642036",
"0.6637766",
"0.6624835",
"0.6621283",
"0.66063684",
"0.6540641",
"0.65195554",
"0.6502121",
"0.6469765",
"0.6391249",
"0.63765097",
"0.63691604",
"0.6367746",
"0.63607776",
"0.63574... | 0.7554273 | 0 |