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 |
|---|---|---|---|---|---|---|
Create an ideal time series with start and end times. Match ideal datetime index with input data. Detect missing values in input data. Replace missing values with NaNs. | def pzNZ(jQ3Z, XXcz, w3IF, QTg7):
dDgP = rLdf.date_range(start=XXcz, end=w3IF, freq=str(QTg7) + 'min')
IhP2 = dDgP.isin(jQ3Z.index)
print('')
print('DETECT ' + str(len(dDgP[~IhP2])) + ' ROWS IN DATAFRAME ARE MISSING')
print('THEY ARE:')
print(dDgP[~IhP2].strftime('%Y-%m-%d %H:%M:%S').values)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o8c1(jQ3Z, Ctu7, TZwJ, anp5):\n jQ3Z[Ctu7] = rLdf.to_datetime(jQ3Z[Ctu7])\n u3tA = {}\n u3tA['name'] = TZwJ\n O9Jf = jQ3Z[jQ3Z[TZwJ].notna()]\n if len(O9Jf) <= 0:\n u3tA['num_rows'] = 0\n return (O9Jf, u3tA)\n u3tA['num_rows'] = len(O9Jf)\n XeYs = O9Jf.iloc[0][Ctu7]\n XwNZ... | [
"0.63494307",
"0.62308735",
"0.6173893",
"0.6168494",
"0.5989752",
"0.59845084",
"0.59353995",
"0.59270257",
"0.5922908",
"0.5896188",
"0.5842106",
"0.5832425",
"0.58225286",
"0.5807803",
"0.5804572",
"0.5795736",
"0.5793705",
"0.5784477",
"0.5779522",
"0.57772595",
"0.576364... | 0.68403244 | 0 |
Return the state of the entity. | def QTBn(YKHO):
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QTBn(YKHO) -> uLKX[None, str, int, float]:\n return YKHO._entity.get(N4T2)",
"def QTBn(YKHO):\n return YKHO.get_state()",
"def GBfH(YKHO):\n return YKHO.state",
"def QTBn(YKHO):\n return YKHO._get_state()",
"def GBfH(YKHO):\n return YKHO.state",
"def GBfH(YKHO):\n return YKHO.state"... | [
"0.8337619",
"0.7702563",
"0.7638512",
"0.7633944",
"0.7620094",
"0.7620094",
"0.7620094",
"0.7612864",
"0.7605297",
"0.7602402",
"0.75564414",
"0.75564414",
"0.75564414",
"0.75564414",
"0.75564414",
"0.75564414",
"0.75564414",
"0.7532665",
"0.7522079",
"0.7522079",
"0.749583... | 0.72769153 | 78 |
Show admin login form. | def Gckm():
if not cuiw.get('user_id'):
return TvZl('admin.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s0qS():\n return WsL5.render_template('admin-login.html')",
"def MC83(YKHO):\n L03z = H6V6.Login(QePW.form)\n if dp9S.helpers.validate_form_on_submit(L03z):\n MC83.login_user(L03z.user)\n if MC83.current_user.is_authenticated:\n return g10W('.index')\n YKHO._template_args['form']... | [
"0.7751804",
"0.7538151",
"0.7512456",
"0.7507022",
"0.7505897",
"0.7499123",
"0.74627995",
"0.7449234",
"0.7429861",
"0.73536557",
"0.7283035",
"0.71967244",
"0.7187523",
"0.7169215",
"0.71686095",
"0.71633476",
"0.7091787",
"0.7062925",
"0.7059587",
"0.70561296",
"0.7028276... | 0.80118626 | 0 |
Get an existing BasicAccelerator resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, DKci: Optional[pulumi.Input[bool]]=None, z2Wi: Optional[pulumi.Input[bool]]=None, n7SJ: Optional[pulumi.Input[int]]=None, qhF2: Optional[pulumi.Input[str]]=None, T47l: Optional[pulumi.Input[str]]=None, tHtw: Optional[pulumi.Input[st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, WhAq: Optional[pulumi.Input[str]]=None, hMqs: Optional[pulumi.Input[str]]=None, Lm9E: Optional[pulumi.Input[str]]=None, qfpW: Optional[pulumi.Input[str]]=None, M6zJ: Optional[pulumi.Input[str]]=None, wa6U: Optional[pulumi.Input... | [
"0.5828136",
"0.56386065",
"0.5557921",
"0.5409152",
"0.5397187",
"0.53897923",
"0.5374855",
"0.53661656",
"0.5363679",
"0.5352705",
"0.53523684",
"0.53452504",
"0.5321331",
"0.5321331",
"0.5305723",
"0.53015745",
"0.5297736",
"0.5292959",
"0.5284928",
"0.5261325",
"0.5257777... | 0.7134017 | 0 |
Returns True if and only if the job has failed, thus is not expected to be proven. | def ZHr6(YKHO, hPIU: str) -> bool:
return YKHO.service_client.get_status(hPIU) in ['INVALID', 'FAILED'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QGvq(YKHO):\n jGRS = False\n tg2u = Hy7s.path.join(Hy7s.environ['PRODAGENT_JOB_DIR'], 'FrameworkJobReport.xml')\n Dfm4 = FHRp(tg2u)\n for sWfS in Dfm4:\n if not sWfS.wasSuccess():\n jGRS = True\n return jGRS",
"def _j4m(YKHO):\n return YKHO.done and (not YKHO.succeeded)",
... | [
"0.82885474",
"0.795258",
"0.7763488",
"0.76441354",
"0.760591",
"0.75840384",
"0.75538456",
"0.7553506",
"0.75190896",
"0.745437",
"0.7409962",
"0.7333517",
"0.73016393",
"0.73016393",
"0.7277482",
"0.7248099",
"0.7248099",
"0.7248099",
"0.7248099",
"0.7248099",
"0.7248099",... | 0.80011284 | 1 |
Constructor to build all default BMD decision logic settings. | def z6t9(Emd4, jCeH):
V_D6 = []
for YRbF in Ni9Y(len(logU.default)):
eHNT = logU.build_default(YRbF)
eHNT.assessment = jCeH
eHNT.logic_id = YRbF
V_D6.append(eHNT)
logU.objects.bulk_create(V_D6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.label = 'WPDx Decision Support Toolset'\n YKHO.alias = ''\n YKHO.tools = [Gqog, IB6s, Z17Q, OF4y, tGbz, Ldji, DmWM]\n YKHO.dict_population_sources = {}",
"def FIMM(YKHO: object, **B2fa: dict):\n YKHO.defaults = {'merge_channels': True, 'bands': {'sub-bass': [20, 60], 'bass':... | [
"0.6145507",
"0.6048124",
"0.6041554",
"0.60303473",
"0.6016266",
"0.60084146",
"0.60039973",
"0.5994958",
"0.5968721",
"0.5918006",
"0.5913065",
"0.59110904",
"0.58818656",
"0.5880914",
"0.58588576",
"0.58476865",
"0.58101064",
"0.58058494",
"0.5801448",
"0.5797701",
"0.5797... | 0.0 | -1 |
Loads the model from disk | def GXJA():
return uyMl('model.h5') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(Ux0P):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def tyeH(YKHO):\n YKHO.model = wOed.load_from_file(Hy7s.path.join(YKHO.scenario.data_dir, YKHO.model_file))",
"def O5RJ(YKHO):\n pmON = YKHO._get_model_... | [
"0.84420896",
"0.84221727",
"0.84221727",
"0.84221727",
"0.84221727",
"0.83870703",
"0.8364089",
"0.83635515",
"0.83635515",
"0.8347756",
"0.833074",
"0.82950664",
"0.82587165",
"0.825566",
"0.8247558",
"0.8244519",
"0.8233563",
"0.8232676",
"0.822561",
"0.82241905",
"0.81831... | 0.7703432 | 85 |
Preprocess the image by resizing + applying YUV color schema & blur | def utqV(VXjJ):
VXjJ = VXjJ[60:135, :, :]
VXjJ = XC5k.cvtColor(VXjJ, XC5k.COLOR_RGB2YUV)
VXjJ = XC5k.GaussianBlur(VXjJ, (3, 3), 0)
VXjJ = XC5k.resize(VXjJ, (200, 66))
return VXjJ / 255 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(LNo8):\n LNo8 = HzFk(LNo8)\n return LNo8",
"def biH0(LNo8):\n ROpF = LNo8.shape\n LNo8 = LNo8[epAf.floor(ROpF[0] / 5):ROpF[0] - 25, 0:ROpF[1]]\n LNo8 = XC5k.resize(LNo8, (64, 64), interpolation=XC5k.INTER_AREA)\n LNo8 = XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2YUV)\n return LNo8",
"def ... | [
"0.8252908",
"0.78660005",
"0.77454615",
"0.72969806",
"0.7282374",
"0.72524774",
"0.7185205",
"0.7167707",
"0.7148467",
"0.7119319",
"0.7110807",
"0.7110237",
"0.7085344",
"0.70825166",
"0.7072943",
"0.705181",
"0.70418376",
"0.70412385",
"0.7039211",
"0.70352435",
"0.702920... | 0.7917219 | 1 |
Return the given string converted to a string that can be used for a clean filename. Remove leading and trailing spaces; convert other spaces to underscores; and remove anything that is not an alphanumeric, dash, underscore, or dot. >>> get_valid_filename("john's portrait in 2004.jpg") 'john_sportraitin2004.jpg' >>> ge... | def XZ66(KCHu):
KCHu = Qsf5(KCHu).strip().replace(' ', '')
return ZbWC.sub('(?u)[^-\\w.]', '_', KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XZ66(KCHu):\n KCHu = KCHu.strip().replace(' ', '_').replace(Hy7s.sep, '_')\n return ZbWC.sub('(?u)[^-\\\\w.]', '', KCHu)",
"def XZ66(KCHu):\n KCHu = str(KCHu).strip().replace(' ', '_')\n return ZbWC.sub('(?u)[^-\\\\w.]', '', KCHu)",
"def XZ66(KCHu):\n KCHu = str(KCHu).strip().lower().replace... | [
"0.861009",
"0.8542073",
"0.852649",
"0.8509186",
"0.8506312",
"0.8502319",
"0.84636676",
"0.79315746",
"0.79315746",
"0.78552806",
"0.78135",
"0.7773951",
"0.775317",
"0.7666303",
"0.75616264",
"0.7521274",
"0.75107",
"0.75017756",
"0.7495804",
"0.7495804",
"0.7495804",
"0... | 0.8422442 | 7 |
Given some data, pad it and build a feed dictionary | def rv9c(YKHO, V22M, pO1V, eHxA, Crrw=None, oMFW=None, ZDzY=None, dlvB=None, euDN=None, f7zw=None, nvF4=None, NEaV=None, Ahie=None, Ce_k=None, qPu3=None, X9kP=None, Z3gf=None, tspZ=None, hr1G=None):
if YKHO.config.chars:
EXMS, OLx9 = zip(*V22M)
OLx9, aiJ_ = S5Za(OLx9, YKHO.nwords, YKHO.max_sentence_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def igwZ(YKHO, J1hN):\n if not oyIN.all(oyIN.isfinite(J1hN[2]), axis=0):\n print('I was fed shit')\n raise Exception('DontEatShit')\n kdJa = {YRbF: Csk6 for YRbF, Csk6 in zip([YKHO.xyzs_pl] + [YKHO.Zs_pl] + [YKHO.label_pl] + [YKHO.grads_pl] + [YKHO.Radp_pl] + [YKHO.Angt_pl], [J1hN[0]] + [J1hN[1... | [
"0.6678571",
"0.6674121",
"0.6598947",
"0.6598947",
"0.6562749",
"0.65459037",
"0.6530802",
"0.6524352",
"0.6524352",
"0.6519932",
"0.6519932",
"0.6519932",
"0.6517155",
"0.64604545",
"0.64492434",
"0.64374405",
"0.63661",
"0.6328397",
"0.62560654",
"0.6242828",
"0.61314243",... | 0.5258007 | 89 |
Returns the role's representation. | def wHJl(YKHO):
return f'<{YKHO.__class__.__name__} id = {YKHO.id!r}, name = {YKHO.name!r}>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return f'<Role({YKHO.name})>'",
"def wHJl(YKHO):\n return f'<Role({YKHO.name})>'",
"def wHJl(YKHO):\n return \"<Role('%s')>\" % (YKHO.type, YKHO.character, YKHO.billing, YKHO.person_id, YKHO.title_id)",
"def wHJl(YKHO) -> str:\n return YKHO.role[:1]",
"def zAg0(YKHO):\n ret... | [
"0.8031795",
"0.8031795",
"0.78558266",
"0.7807747",
"0.7588655",
"0.71932065",
"0.71892357",
"0.71284276",
"0.6915567",
"0.6839046",
"0.6839046",
"0.6836921",
"0.67563486",
"0.6721395",
"0.6721395",
"0.6721395",
"0.6721395",
"0.6721395",
"0.6721395",
"0.6721395",
"0.6721395"... | 0.0 | -1 |
Returns true if `value` can be decoded into its builtin TypeSpec. | def C833(YKHO, BWXx):
if BWXx.HasField('type_spec_value'):
WrNS = BWXx.type_spec_value.type_spec_class
return WrNS == YKHO.type_spec_proto_enum
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C833(YKHO, BWXx):\n return BWXx.HasField('type_spec_value')",
"def ldgd(YKHO, BWXx):\n return isinstance(BWXx, YKHO.types)",
"def TSw_(BWXx):\n return True",
"def bfng(YKHO, BWXx):\n return isinstance(BWXx, YKHO._contained_type)",
"def QU3w(YKHO, CspB, BWXx):\n try:\n CspB(BWXx)\n... | [
"0.7921622",
"0.68906426",
"0.65851986",
"0.6578421",
"0.65691775",
"0.65691775",
"0.64286286",
"0.6416044",
"0.640313",
"0.63386637",
"0.631287",
"0.6129884",
"0.6094578",
"0.605013",
"0.60466045",
"0.6037115",
"0.6036271",
"0.60299116",
"0.6003778",
"0.59764045",
"0.5938247... | 0.8281464 | 0 |
Returns true if `value` can be decoded into a `tf.TypeSpec`. | def C833(YKHO, BWXx):
return BWXx.HasField('type_spec_value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C833(YKHO, BWXx):\n if BWXx.HasField('type_spec_value'):\n WrNS = BWXx.type_spec_value.type_spec_class\n return WrNS == YKHO.type_spec_proto_enum\n return False",
"def ldgd(YKHO, BWXx):\n return isinstance(BWXx, YKHO.types)",
"def QU3w(YKHO, CspB, BWXx):\n try:\n CspB(BWXx)... | [
"0.8350764",
"0.6780679",
"0.66895986",
"0.66895986",
"0.6687403",
"0.6644345",
"0.6444116",
"0.64177597",
"0.6332218",
"0.6317582",
"0.6300965",
"0.6247025",
"0.6192434",
"0.61763555",
"0.6111221",
"0.6104135",
"0.6081415",
"0.6064251",
"0.59744906",
"0.59556174",
"0.5954649... | 0.8016586 | 1 |
transforms camera coordinates into field coordinates | def lU4_(kLw8, WKvO, LVAh):
Kd41 = oyIN.array([WKvO, LVAh, 1])
bn92 = oyIN.dot(GUUu[kLw8], Kd41)
return (bn92[0], bn92[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DPUI(WKvO, LVAh):\n lZ9I = oyIN.squeeze(nM4v)\n Zbvg = z424.dot(oyIN.array([WKvO, LVAh, 0]).T) + lZ9I\n Xf84 = U1HM.dot(Zbvg)\n return [Xf84[0] / Xf84[2], Xf84[1] / Xf84[2]]",
"def _NCN(YKHO, EcVT):\n raise NotImplementedError",
"def YhPc(YKHO):\n BxRI = oyIN.tan(YKHO.fov_deg / 2.0 / 180.... | [
"0.7101947",
"0.70965564",
"0.68855995",
"0.68675447",
"0.66746885",
"0.6639391",
"0.65895456",
"0.6586629",
"0.6581375",
"0.6536803",
"0.6515546",
"0.6515035",
"0.6512805",
"0.65082085",
"0.6481598",
"0.64811385",
"0.6472792",
"0.6459051",
"0.6440241",
"0.6421856",
"0.640950... | 0.7220901 | 0 |
Extract vocabulary and build dictionary. | def sjdq(PBqP):
SUpc = g760.Counter()
for YRbF, __n6 in enumerate(PBqP):
for PU1l in __n6:
SUpc.update(wr3U(PU1l['text']))
ED_H = set([GIN8 for GIN8 in SUpc])
ED_H = list(ED_H)
ED_H = [pVtL, Sil8] + ED_H
iQmq = dict(zip(ED_H, range(len(ED_H))))
return (iQmq, len(ED_H)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OgiS(YKHO):\n print('Building vocabulary...')\n for zFiD in YKHO.text_gen():\n YKHO.__text += zFiD\n YKHO.__chars = sorted(list(set(YKHO.__text)))\n YKHO.__vocab_size = len(YKHO.__chars)\n YKHO.__ci = dict(((Z9rn, YRbF) for YRbF, Z9rn in enumerate(YKHO.__chars)))\n YKHO.__ic = dict(((Y... | [
"0.7163828",
"0.713114",
"0.71001333",
"0.7077125",
"0.70670307",
"0.6954275",
"0.6950013",
"0.68863493",
"0.68835956",
"0.68783873",
"0.6861175",
"0.68149745",
"0.6799747",
"0.67910343",
"0.6774133",
"0.6772262",
"0.67712396",
"0.6757726",
"0.6756705",
"0.673834",
"0.6713984... | 0.65155697 | 43 |
Return all factors of a passed in integer < 2 16 | def ek4l(r845, Vq7B=2 ** 16) -> jd6F[int, None, None]:
for YRbF in range(2, Vq7B):
if r845 % YRbF == 0:
yield YRbF
while r845 % YRbF == 0:
r845 = r845 // YRbF
if YRbF > r845:
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Llmz(exwG):\n return (G1Hx for G1Hx, Ty9i in S2wa(exwG))",
"def FckX(FGW3):\n Llmz = []\n for YRbF in range(2, FGW3):\n while FGW3 % YRbF == 0:\n Llmz.append(YRbF)\n FGW3 = FGW3 / YRbF\n return Llmz",
"def MOMM(exwG):\n oCcr = []\n for YRbF in range(2, int(epA... | [
"0.7454673",
"0.7452522",
"0.7385943",
"0.733426",
"0.73247707",
"0.7281313",
"0.7233714",
"0.7223166",
"0.720677",
"0.7203387",
"0.7198434",
"0.7176763",
"0.7176747",
"0.7169464",
"0.7139699",
"0.7099316",
"0.70858884",
"0.7075139",
"0.70746666",
"0.70746666",
"0.70420825",
... | 0.68242186 | 56 |
Return scorecard dictionary for this game. | def ghR_(YKHO, **B2fa):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ghR_(YKHO, **B2fa):\n DSrU = []\n for exwG, p1kx in enumerate(YKHO.scores):\n fK8P = {'player': p1kx.player}\n fK8P['in'] = p1kx.dct_gross['in']\n fK8P['out'] = p1kx.dct_gross['out']\n fK8P['total'] = p1kx.dct_gross['total']\n fK8P['esc'] = p1kx._esc\n zFiD = '{:... | [
"0.74074805",
"0.682123",
"0.6811256",
"0.67131996",
"0.6659111",
"0.6633286",
"0.65459794",
"0.65349",
"0.65206015",
"0.64145786",
"0.6395726",
"0.63055533",
"0.6271796",
"0.62354237",
"0.618987",
"0.6161733",
"0.6092006",
"0.60594064",
"0.59623027",
"0.5925424",
"0.59019333... | 0.6108852 | 16 |
Update totals in a dictionary. If a value is None it is not added. | def xlV4(YKHO, fK8P):
fK8P['out'] = sum([Sa_m for Sa_m in fK8P['holes'][:9] if Sa_m is not None])
fK8P['in'] = sum([Sa_m for Sa_m in fK8P['holes'][9:] if Sa_m is not None])
fK8P['total'] = fK8P['in'] + fK8P['out'] + fK8P.get('overall', 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SeSs(nrPf: DefaultDict[ObjectId, int], fqi8: Iterable[SummaryItem]) -> None:\n for ZfUD in fqi8:\n nrPf[ZfUD.profile] += ZfUD.summary",
"def FOQa(YKHO):\n YKHO.order_total = YKHO.orderitems.aggregate(zphJ('orderitem_total'))['orderitem_total__sum'] or 0\n YKHO.save()",
"def FOQa(YKHO):\n ... | [
"0.71629155",
"0.6395862",
"0.6250981",
"0.6153129",
"0.6133779",
"0.60684776",
"0.6058304",
"0.6050326",
"0.6006953",
"0.60042745",
"0.60032004",
"0.5976225",
"0.59639156",
"0.59284085",
"0.5917423",
"0.59086144",
"0.58938855",
"0.58867604",
"0.58812124",
"0.5879901",
"0.585... | 0.7336905 | 0 |
Calculate the sum of absolute pressure of a discrete time signal | def qUyv(nPrm):
nPrm = nPrm / bYTS.RATE
return oyIN.sum(oyIN.abs(nPrm)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fw4M(nPrm):\n nPrm = nPrm / bYTS.RATE\n return oyIN.mean(oyIN.abs(nPrm))",
"def X2Np(zTi3, QTg7='YS'):\n yvT9 = zTi3.resample(time=QTg7).sum(dim='time', keep_attrs=True)\n return BfDw.pint_multiply(yvT9, 1 * rYO3.day, 'mm')",
"def _fjM(YKHO):\n KMvS = YKHO.atmosphere.ratio_of_specific_heats(... | [
"0.61876297",
"0.5987975",
"0.5919015",
"0.5868733",
"0.58536506",
"0.58344007",
"0.5811238",
"0.5697849",
"0.567363",
"0.56729037",
"0.5666445",
"0.5620006",
"0.5608896",
"0.56008595",
"0.55954593",
"0.5593092",
"0.55822426",
"0.5560283",
"0.5543278",
"0.5535401",
"0.5531789... | 0.68120056 | 0 |
Find time difference between two checkpoints in seconds | def m752(YKHO, gfpw, B2hD, uvCJ=False):
TAxb = YKHO.timedelta_to_checkpoint(YKHO.checkpoints[gfpw], B2hD)
return TAxb if uvCJ else TAxb.total_seconds() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAxb(YKHO, n2Q1, SpII):\n yk4i = abs(YKHO.time(SpII) - YKHO.time(n2Q1))\n return yk4i.seconds",
"def C61p(YKHO, Elif):\n return (YKHO.datetime - Elif.datetime).total_seconds()",
"def C61p(YKHO, THkp, NlZ_):\n v2d1 = ITS7.mktime(NlZ_.timetuple()) + NlZ_.microsecond * 1e-06 - ITS7.mktime(THkp.tim... | [
"0.70009017",
"0.6989429",
"0.6982989",
"0.6935036",
"0.6903877",
"0.68927765",
"0.6813658",
"0.6772408",
"0.67394453",
"0.6727284",
"0.67039114",
"0.666175",
"0.6659261",
"0.66098875",
"0.65299547",
"0.65297186",
"0.6526915",
"0.6524328",
"0.6523795",
"0.6471648",
"0.6467455... | 0.7678266 | 0 |
Compute dataset mean and std, and normalize it | def ssCJ(__n6):
Kf4c = 0
D4vZ = 0
y0hj = 0
for VXjJ, bGrB in __n6:
y0hj += oyIN.mean(VXjJ[:, :, 0])
D4vZ += oyIN.mean(VXjJ[:, :, 1])
Kf4c += oyIN.mean(VXjJ[:, :, 2])
y0hj /= len(__n6)
D4vZ /= len(__n6)
Kf4c /= len(__n6)
r7hT = 0
O69i = 0
RycL = 0
ywwl ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WuUW(nPrm, JBMS, M1Jx):\n return (nPrm - JBMS) / M1Jx",
"def NkkI(nPrm, M1Jx):\n r8hN = oyIN.mean(nPrm)\n nPrm = (nPrm - r8hN) / M1Jx\n return nPrm",
"def Q7gV(WbAn, eQSh):\n return (WbAn - JBMS) / (M1Jx + 1e-07)",
"def NkkI(nPrm, go03, sb4g):\n return oyIN.divide(nPrm - go03, sb4g)",
... | [
"0.8314812",
"0.8219438",
"0.8192517",
"0.8114273",
"0.79961073",
"0.79809064",
"0.79677904",
"0.79528624",
"0.78939724",
"0.7887796",
"0.78385454",
"0.78263146",
"0.77932507",
"0.7786109",
"0.7729252",
"0.7674857",
"0.7674168",
"0.76565564",
"0.7652386",
"0.76476854",
"0.762... | 0.0 | -1 |
Returns the contours of paper | def Wkxm(pSfX):
Iowl = e9c5(pSfX)
for iLki in Iowl:
_hZ2 = 0.02 * XC5k.arcLength(iLki, True)
OS2K = XC5k.approxPolyDP(iLki, _hZ2, True)
if len(OS2K) == 4:
WU_X = OS2K
break
B2Dn = XC5k.convexHull(WU_X)
return (B2Dn, Iowl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QG_z(YKHO):\n return XC5k.findContours(YKHO.input, XC5k.RETR_CCOMP, XC5k.CHAIN_APPROX_SIMPLE)",
"def e9c5(XP5J):\n Iowl = []\n for xUwc in XP5J.collections:\n Iowl.append(xUwc.get_paths())\n return Iowl",
"def Tu62(YKHO):\n if YKHO.enable_contours:\n return YKHO.contour\n el... | [
"0.7174244",
"0.69120795",
"0.67883545",
"0.67560387",
"0.6720345",
"0.67061764",
"0.6602538",
"0.65508145",
"0.65469265",
"0.65256",
"0.6518347",
"0.64418894",
"0.6420459",
"0.6420459",
"0.6420459",
"0.6420459",
"0.6420459",
"0.6406563",
"0.64046454",
"0.6393344",
"0.6383610... | 0.0 | -1 |
The name of the role to which grant default privileges on. | def LmAn(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'role') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngPz(YKHO) -> str:\n return 'arn:aws:iam::%s:role/sfiniGenerated' % YKHO.session.account_id",
"def lU21(YKHO) -> str:\n return qe4Y.get(YKHO, 'default_iam_role_arn')",
"def h1Ur(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'role_name')",
"def lSf0(YKHO):\n return",
"def mWFP(YKHO) -> str:\n ... | [
"0.7528224",
"0.7427833",
"0.73642427",
"0.73128814",
"0.72497225",
"0.7241548",
"0.72145987",
"0.72145987",
"0.72145987",
"0.71604395",
"0.71604395",
"0.71530575",
"0.7139154",
"0.7139154",
"0.7139154",
"0.7106454",
"0.7106454",
"0.7106454",
"0.7106454",
"0.7106454",
"0.7106... | 0.6895574 | 36 |
The name of the role to which grant default privileges on. | def LmAn(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'role') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngPz(YKHO) -> str:\n return 'arn:aws:iam::%s:role/sfiniGenerated' % YKHO.session.account_id",
"def lU21(YKHO) -> str:\n return qe4Y.get(YKHO, 'default_iam_role_arn')",
"def h1Ur(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'role_name')",
"def lSf0(YKHO):\n return",
"def mWFP(YKHO) -> str:\n ... | [
"0.7528224",
"0.7427833",
"0.73642427",
"0.73128814",
"0.72497225",
"0.7241548",
"0.72145987",
"0.72145987",
"0.72145987",
"0.71604395",
"0.71604395",
"0.71530575",
"0.7139154",
"0.7139154",
"0.7139154",
"0.7106454",
"0.7106454",
"0.7106454",
"0.7106454",
"0.7106454",
"0.7106... | 0.69293654 | 28 |
The name of the role to which grant default privileges on. | def LmAn(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'role') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngPz(YKHO) -> str:\n return 'arn:aws:iam::%s:role/sfiniGenerated' % YKHO.session.account_id",
"def lU21(YKHO) -> str:\n return qe4Y.get(YKHO, 'default_iam_role_arn')",
"def h1Ur(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'role_name')",
"def lSf0(YKHO):\n return",
"def mWFP(YKHO) -> str:\n ... | [
"0.7528224",
"0.7427833",
"0.73642427",
"0.73128814",
"0.72497225",
"0.7241548",
"0.72145987",
"0.72145987",
"0.72145987",
"0.71604395",
"0.71604395",
"0.71530575",
"0.7139154",
"0.7139154",
"0.7139154",
"0.7106454",
"0.7106454",
"0.7106454",
"0.7106454",
"0.7106454",
"0.7106... | 0.68726003 | 43 |
Gets the meta of this OrderLineItem. | def e5kH(YKHO):
return YKHO._meta | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e5kH(YKHO):\n return YKHO['meta']",
"def Vl0U(YKHO):\n return YKHO._meta",
"def e5kH(YKHO):\n return YKHO['meta']",
"def uwRb(YKHO):\n return YKHO.order_data",
"def e5kH(YKHO) -> b8ub:\n return YKHO._meta",
"def nalj(YKHO):\n return YKHO._meta_data",
"def nalj(YKHO):\n return Y... | [
"0.64239794",
"0.6389793",
"0.6381963",
"0.6260279",
"0.6184057",
"0.6130439",
"0.6130439",
"0.6130439",
"0.60872704",
"0.60753417",
"0.60753417",
"0.6003151",
"0.5979343",
"0.5978639",
"0.59727204",
"0.59727204",
"0.59470797",
"0.5895083",
"0.58728445",
"0.57809687",
"0.5750... | 0.6400037 | 1 |
Gets the unit_price of this OrderLineItem. | def lMRV(YKHO):
return YKHO._unit_price | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_Zi(YKHO):\n return YKHO.unit_price",
"def EMM6(YKHO):\n return qdHh.load(YKHO.get('PerUnitPrice'))",
"def lMRV(Ltg2, zFiD):\n return zFiD.unit_effective_price",
"def lMRV(Ltg2, zFiD):\n return zFiD.unit_effective_price",
"def zu3J(YKHO):\n return YKHO._original_unit_price",
"def hI0L... | [
"0.76586074",
"0.680134",
"0.66898936",
"0.66621494",
"0.6604652",
"0.6475683",
"0.63628995",
"0.6293985",
"0.6288019",
"0.6288019",
"0.6288019",
"0.6288019",
"0.6258163",
"0.62558615",
"0.62558615",
"0.62558615",
"0.62558615",
"0.62558615",
"0.62558615",
"0.62558615",
"0.625... | 0.8007038 | 0 |
Sets the unit_price of this OrderLineItem. | def lMRV(YKHO, lMRV):
YKHO._unit_price = lMRV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HG0k(YKHO, PXGI):\n YKHO.unit = PXGI",
"def AzKP(YKHO, PXGI):\n YKHO.unit = PXGI",
"def f72s(YKHO, f72s):\n if f72s is None:\n raise ValueError('Invalid value for `price_per_unit`, must not be `None`')\n YKHO._price_per_unit = f72s",
"def zu3J(YKHO, zu3J):\n YKHO._original_unit_pric... | [
"0.653833",
"0.63639057",
"0.6336917",
"0.625253",
"0.60737586",
"0.60737586",
"0.60737586",
"0.60529613",
"0.60279083",
"0.582584",
"0.582584",
"0.58007306",
"0.5747115",
"0.57458717",
"0.5708763",
"0.56224585",
"0.5532491",
"0.55115473",
"0.55115473",
"0.5505961",
"0.550292... | 0.8109746 | 0 |
Gets the quantity of this OrderLineItem. | def cTRz(YKHO):
return YKHO._quantity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cTRz(YKHO) -> int:\n return YKHO._quantity",
"def bKF4(YKHO):\n return YKHO._order_qty",
"def M09Z(YKHO):\n return YKHO.__quantity",
"def cTRz(YKHO) -> float:\n return YKHO._quantity",
"def M09Z(YKHO):\n return YKHO.quantity",
"def Sgcx(YKHO):\n return YKHO._qty",
"def jHU6(YKHO, ... | [
"0.77379334",
"0.7734751",
"0.77277035",
"0.76598",
"0.7637314",
"0.75940055",
"0.7589001",
"0.7220722",
"0.7112502",
"0.7072707",
"0.7059684",
"0.70283645",
"0.6963508",
"0.69385517",
"0.68975216",
"0.68612593",
"0.68365175",
"0.67677844",
"0.67677844",
"0.67677844",
"0.6554... | 0.7716078 | 3 |
Sets the quantity of this OrderLineItem. | def cTRz(YKHO, cTRz):
YKHO._quantity = cTRz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oZPx(YKHO, BWXx):\n YKHO.__quantity = BWXx",
"def cTRz(YKHO, cTRz):\n YKHO._quantity = cTRz\n return YKHO",
"def cTRz(YKHO, cTRz):\n YKHO._quantity = cTRz",
"def zLxv(YKHO, zFiD):\n vexM = YKHO._get_quantity()\n zFiD.quantity = vexM\n zFiD.save()\n tO9_ = \"The quantity of '%s' ha... | [
"0.8032686",
"0.7885853",
"0.7725324",
"0.7686705",
"0.76322603",
"0.7415994",
"0.7415994",
"0.7411638",
"0.7229778",
"0.7229778",
"0.7199505",
"0.7171192",
"0.7156027",
"0.7117949",
"0.70963717",
"0.70149755",
"0.6929143",
"0.66490895",
"0.6478524",
"0.64707613",
"0.64619344... | 0.7885285 | 3 |
Gets the product of this OrderLineItem. | def Lx3t(YKHO):
return YKHO._product | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lx3t(YKHO):\n return YKHO.__product",
"def zJp1(YKHO):\n try:\n return YKHO.getRefs('orderitem_product')[0]\n except IndexError:\n return None",
"def Lx3t(YKHO) -> str:\n return YKHO.__product",
"def Lx3t(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'product')",
"def ... | [
"0.737334",
"0.7272844",
"0.6669389",
"0.6610412",
"0.65931153",
"0.65464395",
"0.6464367",
"0.6396097",
"0.6377958",
"0.62713957",
"0.62713957",
"0.6266156",
"0.62355524",
"0.62355524",
"0.6209507",
"0.6180851",
"0.6180851",
"0.61712486",
"0.61410314",
"0.6139511",
"0.610600... | 0.7676989 | 0 |
Sets the taxes of this OrderLineItem. | def MvzV(YKHO, MvzV):
YKHO._taxes = MvzV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E427(YKHO, E427):\n YKHO._tax_lines = E427",
"def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr",
"def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr",
"def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr",
"def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr",
"def DOhr(YKHO, DOhr):\n YKHO._tax... | [
"0.71889883",
"0.65298593",
"0.65298593",
"0.65298593",
"0.65298593",
"0.65298593",
"0.65298593",
"0.65298593",
"0.63335466",
"0.6303036",
"0.6010248",
"0.5941266",
"0.5869274",
"0.58117265",
"0.57532054",
"0.56345576",
"0.55687284",
"0.5533371",
"0.5533371",
"0.5508757",
"0.... | 0.7404662 | 0 |
Gets the promotions of this OrderLineItem. | def wq8Y(YKHO):
return YKHO._promotions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hd5B(YKHO):\n return YKHO.propositions",
"def z55Q(YKHO):\n return YKHO._pro.itervalues()",
"def all(Emd4):\n bo34.info('Processing all Promotions')\n return Emd4.query.order_by(fxAQ.title).all()",
"def DumB(YKHO) -> 'QuerySet[Proposition]':\n return aMiI.objects.filter(verified=True)",
... | [
"0.6301426",
"0.581046",
"0.5773354",
"0.57233953",
"0.56982154",
"0.5695958",
"0.5695958",
"0.5695958",
"0.56258774",
"0.5612211",
"0.5505426",
"0.55050224",
"0.5486564",
"0.5425097",
"0.5425097",
"0.53809196",
"0.53194714",
"0.53074",
"0.5258567",
"0.52390707",
"0.51912576"... | 0.7646139 | 0 |
Sets the promotions of this OrderLineItem. | def wq8Y(YKHO, wq8Y):
YKHO._promotions = wq8Y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wq8Y(YKHO):\n return YKHO._promotions",
"def Rr4n(YKHO):\n BmD2.put(('PROMOTE', YKHO.tree.focus()))",
"def q55K(YKHO, BWXx):\n YKHO._pizza.onions = BWXx\n return YKHO",
"def LuSh(YKHO):\n yield YM2h(tipo='2x1', producto='Dodot')\n yield YM2h(tipo='2x1', producto='Leche Pascual')\n yi... | [
"0.61531943",
"0.49588585",
"0.49466965",
"0.46935374",
"0.46410322",
"0.46361828",
"0.46289223",
"0.46154037",
"0.46017632",
"0.45864147",
"0.4576993",
"0.45731214",
"0.45657125",
"0.455555",
"0.4533089",
"0.45236155",
"0.45005658",
"0.4499253",
"0.44756934",
"0.44669983",
"... | 0.76654315 | 0 |
Gets the subtotal of this OrderLineItem. | def _Erc(YKHO):
return YKHO._subtotal | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eilr(YKHO):\n return YKHO._subtotal_price",
"def EEm7(YKHO):\n return float(YKHO.product.price) * YKHO.quantity",
"def eh7D(YKHO):\n if YKHO.receipt_template.subtotal:\n return YKHO.sale.sub_total\n return None",
"def _Erc(YKHO):\n return YKHO.json['subtotal']",
"def _Erc(YKHO):\n... | [
"0.7619787",
"0.7596981",
"0.7590467",
"0.75765043",
"0.7569646",
"0.75385845",
"0.75271",
"0.72914714",
"0.7115976",
"0.70501816",
"0.6983866",
"0.6901563",
"0.68400395",
"0.6798866",
"0.6792481",
"0.67751807",
"0.6765683",
"0.6752353",
"0.67098594",
"0.6583935",
"0.6583935"... | 0.82673204 | 0 |
Sets the subtotal of this OrderLineItem. | def _Erc(YKHO, _Erc):
YKHO._subtotal = _Erc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eh7D(YKHO, eh7D):\n YKHO._sub_total = eh7D",
"def SSRo(YKHO, SSRo):\n YKHO._price_subtotal = SSRo",
"def _Erc(YKHO):\n return YKHO._subtotal",
"def _Erc(YKHO):\n return YKHO._subtotal",
"def _Erc(YKHO):\n return YKHO._subtotal",
"def Pn9G(YKHO, Pn9G):\n YKHO._base_subtotal = Pn9G",
... | [
"0.78429264",
"0.7301293",
"0.65916693",
"0.65916693",
"0.65916693",
"0.65769166",
"0.6479872",
"0.6365449",
"0.63265556",
"0.6280825",
"0.6279156",
"0.6269221",
"0.621161",
"0.6128589",
"0.6093083",
"0.6080495",
"0.60545045",
"0.6017081",
"0.6015443",
"0.6014294",
"0.5977598... | 0.80668396 | 0 |
Gets the total of this OrderLineItem. | def wjRY(YKHO):
return YKHO._total | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h4aS(YKHO):\n wjRY = 0\n for T4Wy in YKHO.orders:\n wjRY = wjRY + T4Wy.get_total()\n return wjRY",
"def h4aS(YKHO):\n return YKHO.orderid.get_total_sum() * (1 + YKHO.servicefee.percentage / 100)",
"def h4aS(YKHO):\n return YKHO.get_sub_total() + YKHO.get_taxes() + YKHO.get_shipping_co... | [
"0.77007765",
"0.7471548",
"0.7412458",
"0.7403314",
"0.73461396",
"0.73314863",
"0.72084045",
"0.71855855",
"0.7149909",
"0.7140941",
"0.7140833",
"0.709814",
"0.709393",
"0.7043541",
"0.7002399",
"0.699858",
"0.69969964",
"0.6954559",
"0.69383615",
"0.68890357",
"0.6844094"... | 0.7158264 | 8 |
Sets the total of this OrderLineItem. | def wjRY(YKHO, wjRY):
YKHO._total = wjRY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def egzR(YKHO, egzR):\n YKHO._order_total = egzR",
"def rzoi(YKHO, wjRY):\n YKHO.__total = wjRY",
"def FOQa(YKHO):\n YKHO.order_total = YKHO.lineitems.aggregate(zphJ('lineitem_total'))['lineitem_total__sum'] or 0\n YKHO.delivery_cost = gCuF.TRANSPORT_COST\n YKHO.grand_total = YKHO.order_total + ... | [
"0.7631015",
"0.7529663",
"0.7286",
"0.71792996",
"0.71792996",
"0.71792996",
"0.71792996",
"0.7122174",
"0.7118644",
"0.7108739",
"0.7045297",
"0.7002823",
"0.6997198",
"0.69704276",
"0.69704276",
"0.6876108",
"0.6828716",
"0.66137534",
"0.64372236",
"0.6412174",
"0.6406274"... | 0.74756 | 2 |
Sets the tax_amount of this OrderLineItem. | def DOhr(YKHO, DOhr):
YKHO._tax_amount = DOhr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bmgS(YKHO, bmgS):\n YKHO._tax_amt = bmgS",
"def YdSp(YKHO, YdSp):\n YKHO._tax_rate = YdSp",
"def GWNS(YKHO, GWNS):\n YKHO._base_tax_amount = GWNS",
"def JPQl(YKHO, JPQl):\n YKHO._base_currency_tax_amount = JPQl",
"def j8ci(YKHO, j8ci):\n YKHO._tax = j8ci",
"def qBKW(YKHO, qBKW):\n Y... | [
"0.74359626",
"0.7132658",
"0.7124662",
"0.69608045",
"0.6703598",
"0.66111076",
"0.6565209",
"0.6522113",
"0.64652026",
"0.6374315",
"0.6374315",
"0.6345241",
"0.6327448",
"0.62804735",
"0.6240389",
"0.6240389",
"0.6240389",
"0.6237635",
"0.597451",
"0.59511006",
"0.58407766... | 0.82710844 | 0 |
Gets the discount_amount of this OrderLineItem. | def ZW42(YKHO):
return YKHO._discount_amount | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FMQW(YKHO):\n return YKHO._discount",
"def FMQW(YKHO):\n return YKHO._discount",
"def F5P1(YKHO) -> float:\n return YKHO._f_discount_amount",
"def YF7i(YKHO):\n return YKHO._shipping_discount_amount",
"def PmDl(YKHO):\n if YKHO.receipt_template.discount_total:\n return YKHO.sale.d... | [
"0.7500975",
"0.7500975",
"0.7388086",
"0.7369918",
"0.7162551",
"0.6963382",
"0.6938114",
"0.6935616",
"0.68914485",
"0.6869973",
"0.6839949",
"0.6707267",
"0.6659784",
"0.66032773",
"0.6535857",
"0.6454991",
"0.6450809",
"0.641998",
"0.64029324",
"0.639645",
"0.636308",
"... | 0.8235982 | 0 |
Sets the order of this OrderLineItem. | def T4Wy(YKHO, T4Wy):
YKHO._order = T4Wy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zQbk(YKHO, T4Wy):\n YKHO._order = T4Wy",
"def q09K(YKHO, T4Wy: Optional[int]):\n pass",
"def zQbk(YKHO, T4Wy):\n YKHO.order = T4Wy",
"def KWld(Emd4, T4Wy):\n Emd4._ordering = list(T4Wy)",
"def T4Wy(YKHO, T4Wy):\n if isinstance(T4Wy, y58A):\n YKHO._order = T4Wy\n else:\n ... | [
"0.82271373",
"0.7343644",
"0.726615",
"0.7081236",
"0.6973886",
"0.6825277",
"0.6809251",
"0.6785314",
"0.6701353",
"0.6701353",
"0.6701353",
"0.6701353",
"0.6701353",
"0.6655635",
"0.6637557",
"0.66266555",
"0.66266555",
"0.6596366",
"0.6548978",
"0.6522818",
"0.6521822",
... | 0.76280254 | 1 |
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 |
Returns an active user that matches the payload's user id and email. | def K2e4(YKHO, pB3N):
mv1M = egNl()
NtEF = DkSr(pB3N)
if not NtEF:
tO9_ = bGrB('Invalid payload.')
raise Bx6I.AuthenticationFailed(tO9_)
try:
CBIr = mv1M.objects.get_by_natural_key(NtEF)
except mv1M.DoesNotExist:
tO9_ = bGrB('Invalid signature.')
raise Bx6I.Au... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def atbI(YKHO, D3lj, Urat=False):\n CBIr = YKHO.users.find_one({'email': D3lj})\n if not CBIr:\n raise Exception('User not found')\n if Urat:\n return CBIr\n try:\n yo7_ = qcWV.utcnow().replace(tzinfo=CBIr['_created'].tzinfo)\n RA_F = (yo7_.date() - CBIr['_created'].date()).... | [
"0.7514856",
"0.75097454",
"0.74558693",
"0.7308307",
"0.72597086",
"0.7250959",
"0.71942514",
"0.71728665",
"0.71669465",
"0.7166468",
"0.71334505",
"0.7112367",
"0.7112084",
"0.71118134",
"0.70902157",
"0.7083313",
"0.7082216",
"0.7061471",
"0.70522046",
"0.70522046",
"0.70... | 0.0 | -1 |
Annotate barplot with pvalues. | def GO9P(_1qI, zDMu, nPrm, hgjH, H2v2, EGG0=None, GzWn=0.05, qUFU=0.05, Vb5F=None, Ua69=None):
if type(nPrm) is str:
l5Ny = nPrm
else:
l5Ny = ''
XP5J = 0.05
while nPrm < XP5J:
if len(l5Ny) >= 3:
break
l5Ny += '*'
XP5J /= 10.0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def olYc(aNZO, HHea=5, rhd_=2):\n for mawX in aNZO.patches:\n Yqag = mawX.get_width()\n AgRN = mawX.get_y() + mawX.get_height() / 2\n n294 = HHea\n fUKV = 'left'\n if Yqag < 0:\n n294 *= -1\n fUKV = 'right'\n UXqs = '{:.{prec}f}'.format(Yqag, prec=... | [
"0.71863437",
"0.7158584",
"0.7120417",
"0.7092587",
"0.69556713",
"0.6768957",
"0.6765102",
"0.655121",
"0.647908",
"0.6430688",
"0.6421991",
"0.6408934",
"0.6408934",
"0.6395275",
"0.6318725",
"0.62817496",
"0.6280688",
"0.6237737",
"0.62203515",
"0.6215421",
"0.6184484",
... | 0.5653194 | 54 |
Pad framewise_output to the same length as input frames. The pad value is the same as the value of the last frame. | def h5dP(MNYq: torch.Tensor, K3Do: int):
hlel = vuvg.interpolate(MNYq.unsqueeze(1), size=(K3Do, MNYq.size(2)), align_corners=True, mode='bilinear').squeeze(1)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h5dP(MNYq: torch.Tensor, K3Do: int):\n hVLt = MNYq[:, -1:, :].repeat(1, K3Do - MNYq.shape[1], 1)\n 'tensor for padding'\n hlel = ht2j.cat((MNYq, hVLt), dim=1)\n '(batch_size, frames_num, classes_num)'\n return hlel",
"def h5dP(MNYq, K3Do):\n hVLt = MNYq[:, -1:, :].repeat(1, K3Do - MNYq.shap... | [
"0.8281237",
"0.82352823",
"0.6685426",
"0.6304763",
"0.6257681",
"0.6213205",
"0.6167999",
"0.6049447",
"0.6008161",
"0.59760654",
"0.5966611",
"0.5958347",
"0.5920988",
"0.5912057",
"0.58968925",
"0.5874199",
"0.58731085",
"0.58661604",
"0.5847633",
"0.5843421",
"0.5830053"... | 0.79313797 | 2 |
Construct the feed_dict for a batch of edges. The duplicate flag determines whether to consider the same node more than once. | def yAlw(YKHO, rg5Q, xFUr=True):
pKnb = []
fJ4o = []
for i4Va, rUTj in rg5Q:
pKnb.append(YKHO.id2idx[i4Va])
fJ4o.append(YKHO.id2idx[rUTj])
if not xFUr:
Ziit, gsuv = oyIN.unique(pKnb, return_index=True)
zDOx = [(exwG, YRbF) for exwG, YRbF in zip(Ziit, gsuv) if exwG not in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def igwZ(NYDs, Wc9F):\n if isinstance(Wc9F, XS7K):\n HcOV = Wc9F\n Crrw = None\n else:\n HcOV, Crrw = Wc9F\n kdJa = {NYDs['node_features']: HcOV.node_features, NYDs['edge_features']: HcOV.edge_features, NYDs['from_idx']: HcOV.from_idx, NYDs['to_idx']: HcOV.to_idx, NYDs['graph_idx']: H... | [
"0.66299456",
"0.6557953",
"0.6441617",
"0.63756245",
"0.634578",
"0.6256398",
"0.6224348",
"0.62092125",
"0.62008405",
"0.6198442",
"0.6198442",
"0.6198442",
"0.61764884",
"0.61764884",
"0.6175867",
"0.6163838",
"0.61625105",
"0.6151859",
"0.6127459",
"0.6114591",
"0.6110363... | 0.8180272 | 0 |
Find and return the index of achar in astring. Return 1 if achar does not occur in astring. | def HfZZ(oWz5, OIqV, yKcO=0, Os4s=None):
p6S0 = yKcO
if Os4s == None:
Os4s = len(oWz5)
EmMj = False
while p6S0 < Os4s and (not EmMj):
if oWz5[p6S0] == OIqV:
EmMj = True
else:
p6S0 = p6S0 + 1
if EmMj:
return p6S0
else:
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zyuH(vIwR, sZqf):\n try:\n return vIwR.index(sZqf)\n except ValueError:\n return -1",
"def j8Ys(vIwR, vgXP):\n for d6pt in range(vgXP, len(vIwR)):\n if vIwR[d6pt].isalpha():\n return d6pt\n return None",
"def jore(vIwR, hcXw):\n return [dQgj for dQgj, sZqf in ... | [
"0.8004895",
"0.76050895",
"0.75831443",
"0.7297038",
"0.7295057",
"0.7222848",
"0.7216046",
"0.70603687",
"0.7058953",
"0.6948521",
"0.69279885",
"0.6903559",
"0.6835172",
"0.6834766",
"0.67889774",
"0.6778846",
"0.6760008",
"0.67574793",
"0.6724201",
"0.67138374",
"0.667310... | 0.76094556 | 1 |
Multi class version of Logarithmic Loss metric. | def TvIo(Y8eF, aMgO, SGf8=1e-15):
N6Z1 = oyIN.clip(aMgO, SGf8, 1 - SGf8)
N6Z1 /= N6Z1.sum(axis=1)[:, oyIN.newaxis]
n5sN = oyIN.zeros(aMgO.shape)
cDK5 = n5sN.shape[0]
n5sN[oyIN.arange(cDK5), Y8eF.astype(int)] = 1
os7e = oyIN.sum(n5sN * oyIN.log(N6Z1))
N77f = -1.0 / cDK5 * os7e
return N77f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wJK6(YKHO):\n SeSY = w_q1(dtype='ordered_partitions')\n SeSY.coding_matrix_ = SeSY._coding_matrix(SeSY.dtype, 5)\n N6Z1 = qw7D([[0.07495, 3e-05, 0.06861, 5e-05], [0.00017, 0.0, 0.03174, 0.00011], [0.99235, 0.04285, 0.0485, 4e-05], [0.95376, 0.16388, 0.03857, 0.00028], [0.99726, 0.20159, 0.61801, 0.000... | [
"0.7345358",
"0.72674423",
"0.7087202",
"0.6998277",
"0.68987566",
"0.68905413",
"0.68070287",
"0.6798547",
"0.6765779",
"0.67635405",
"0.6744932",
"0.66965896",
"0.6665314",
"0.6660977",
"0.6587461",
"0.6563808",
"0.6549192",
"0.6546456",
"0.6527576",
"0.6527134",
"0.6525782... | 0.6147177 | 73 |
Gets the camera's x resolution. \attention This value might be different than the previously set x resolution. Never assume the x resolution. | def wll_() -> int:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vbzY(YKHO):\n return YKHO.__resolution_x",
"def J41j(YKHO):\n return YKHO._x_resolution",
"def pWxK(YKHO):\n return YKHO._focal_plane_x_resolution",
"def EplL(hBdd: int) -> float:\n pass",
"def iN7A(YKHO, XL2R):\n assert int(XL2R) > 0\n YKHO.__resolution_x = int(XL2R)",
"def OLDG(YK... | [
"0.82749593",
"0.82224685",
"0.7338891",
"0.72664595",
"0.7072914",
"0.6788145",
"0.66456825",
"0.6640364",
"0.66388786",
"0.66069144",
"0.65547603",
"0.65318954",
"0.65289617",
"0.652756",
"0.6485576",
"0.64842063",
"0.64842063",
"0.6478671",
"0.6387539",
"0.6369878",
"0.631... | 0.6354163 | 20 |
Gets the camera's y resolution. \attention This value might be different than the previously set y resolution. Never assume the y resolution. | def Uup2() -> int:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wWM4(YKHO):\n return YKHO._y_resolution",
"def Rq2F(YKHO):\n return YKHO.__resolution_y",
"def Y7_i(YKHO):\n return YKHO._focal_plane_y_resolution",
"def LhcM(hBdd: int) -> float:\n pass",
"def Wsce(YKHO, dicm):\n assert int(dicm) > 0\n YKHO.__resolution_y = int(dicm)",
"def UbED(YK... | [
"0.8469056",
"0.8451418",
"0.7777383",
"0.7409303",
"0.72384274",
"0.7151093",
"0.7138571",
"0.7138571",
"0.7135466",
"0.70236295",
"0.69746417",
"0.6917924",
"0.6894992",
"0.6893838",
"0.68695563",
"0.68624806",
"0.6851612",
"0.67857623",
"0.6769657",
"0.67462057",
"0.673363... | 0.6420338 | 75 |
Gets the sensed x magneto value | def FtC0() -> int:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tMQP() -> float:\n pass",
"def WKvO(YKHO):\n return YKHO.accelerometer_x / 32768.0 * YKHO.range_in_g",
"def sz1A(YKHO):\n return YKHO.priv.data.magx",
"def t3ol(YKHO):\n return YKHO.sim.data.sensordata[0]",
"def t3ol(YKHO):\n return YKHO.sim.data.sensordata[0]",
"def nGdq() -> float:\n... | [
"0.7823474",
"0.7480571",
"0.727466",
"0.7092981",
"0.7092981",
"0.704534",
"0.7015661",
"0.69736993",
"0.6967298",
"0.69501173",
"0.69501173",
"0.69375765",
"0.6936339",
"0.6907685",
"0.6893069",
"0.6884373",
"0.68765235",
"0.68685925",
"0.68631357",
"0.6859417",
"0.6853057"... | 0.6323716 | 95 |
Gets the sensed x magneto value | def FRhg() -> int:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tMQP() -> float:\n pass",
"def WKvO(YKHO):\n return YKHO.accelerometer_x / 32768.0 * YKHO.range_in_g",
"def sz1A(YKHO):\n return YKHO.priv.data.magx",
"def t3ol(YKHO):\n return YKHO.sim.data.sensordata[0]",
"def t3ol(YKHO):\n return YKHO.sim.data.sensordata[0]",
"def nGdq() -> float:\n... | [
"0.7823474",
"0.7480571",
"0.727466",
"0.7092981",
"0.7092981",
"0.704534",
"0.7015661",
"0.69736993",
"0.6967298",
"0.69501173",
"0.69501173",
"0.69375765",
"0.6936339",
"0.6907685",
"0.6893069",
"0.6884373",
"0.68765235",
"0.68685925",
"0.68631357",
"0.6859417",
"0.6853057"... | 0.0 | -1 |
Mock the ``ArboristClient`` on the app, which would make requests to the arborist service for stuff like checking that some policies are valid. | def MXpm(P4t4, Ehsq):
d1k_ = CFMy(fflm)
Ehsq.setattr(P4t4, 'arborist', d1k_)
return d1k_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nf16(YKHO):\n B9G4 = INp8(YKHO.client)\n YKHO.client.client.service.Authorize = CFMy(name='MockedAuthorize')\n v13b = pd56('TEST-TOKEN')\n QyFv = jhbL(amount='100', invoice_number='1', register_number=1, merchant_transaction_id=1, card_acceptor_terminal_id=1)\n B9G4.process(v13b, QyFv)\n YKHO... | [
"0.6269538",
"0.62510234",
"0.61699444",
"0.61482346",
"0.6096276",
"0.6091561",
"0.60235345",
"0.59976447",
"0.5919249",
"0.5909639",
"0.5880362",
"0.5870006",
"0.5843533",
"0.5840818",
"0.58248436",
"0.5824542",
"0.580483",
"0.5768912",
"0.5768912",
"0.57652855",
"0.5763936... | 0.7939201 | 0 |
Calculate normalized amplitude to satisfy integral(gauss_2D_pdf) == 1 | def D9Jd(caa_, NTJI, W9fC):
return caa_ / (2 * oyIN.pi * NTJI * W9fC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t927(WKvO, LVAh, H4Ar, Pks3, NTJI, W9fC, caa_, HBfW=False):\n gqKk = caa_ if HBfW else D9Jd(amplitude=caa_, sigma_x=NTJI, sigma_y=W9fC)\n w520 = -0.5 * (oyIN.square((WKvO - H4Ar) / NTJI) + oyIN.square((LVAh - Pks3) / W9fC))\n return gqKk * oyIN.exp(w520)",
"def L1dM(YKHO):\n TVTK = YKHO.calc_nuwi... | [
"0.70513695",
"0.6780861",
"0.66457653",
"0.6629394",
"0.66209173",
"0.64982104",
"0.6479761",
"0.64697564",
"0.6450507",
"0.64035076",
"0.63804096",
"0.6363996",
"0.6332848",
"0.63123983",
"0.6307923",
"0.63046587",
"0.6303487",
"0.628932",
"0.6278853",
"0.6247955",
"0.62359... | 0.7149306 | 0 |
Login a testing user all requests of this client will be authenticated with that user | def MC83(YKHO, CBIr):
As0E = YKHO.post('/authentications', data={'email_or_username': CBIr.email, 'password': 'test'})
if As0E.status_code != 200:
raise Exception('Invalid username or password')
YKHO.csrf_token = As0E.json['csrf_token'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFF(YKHO):\n with P4t4.test_client() as Z9rn:\n YKHO.login(Z9rn)\n assert WsL5.session['user_id'] == 1",
"def hBsi(YKHO):\n mv1M.objects.create(username='admin', email='foo@example.com', password=D2Lq('admin'))\n x0hE = i9zE()\n geh0 = x0hE.post('/user/login/', YKHO.user, follow=Tr... | [
"0.7864049",
"0.7834371",
"0.7795073",
"0.77415603",
"0.7732755",
"0.77233475",
"0.7682891",
"0.7649742",
"0.7649742",
"0.76390904",
"0.76308244",
"0.7619583",
"0.7602911",
"0.7594023",
"0.7593223",
"0.7586541",
"0.7572237",
"0.7564106",
"0.75597924",
"0.75562924",
"0.7552910... | 0.73421663 | 43 |
Form to show when user signs up | def ONVH():
return TvZl('registration_form.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jDNF():\n return TvZl('sign-up.html')",
"def U1Uh():\n return TvZl('registration_form.html')",
"def ErPR():\n return TvZl('signup_form.html')",
"def UIlt():\n return TvZl('signup.html')",
"def ONVH():\n return TvZl('register.html')",
"def kI0b(QePW):\n CBIr = QePW.user\n if CBIr.... | [
"0.8215722",
"0.8040792",
"0.7917102",
"0.7739598",
"0.76840496",
"0.7561634",
"0.75384104",
"0.75331736",
"0.7512537",
"0.7484849",
"0.7460278",
"0.7438992",
"0.74348444",
"0.7419226",
"0.7359901",
"0.7340724",
"0.7298827",
"0.7292696",
"0.7261032",
"0.7256493",
"0.7245288",... | 0.686534 | 78 |
Convert from floats to ints for smaller memory footprint | def lxKI(WKvO):
return (WKvO * UX4r).round(decimals=5).astype(oyIN.uint32, copy=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cJEq(WKvO: float) -> int:\n return int(WKvO)",
"def gZAY(eHNT):\n return BlNT.unpack('=i', BlNT.pack('=f', eHNT))[0]",
"def cJEq(BWXx: float) -> int:\n assert 0.0 <= BWXx <= 1.0, 'Value: {} is out of range'.format(BWXx)\n return int(BWXx * (2 ** 16 - 1))",
"def bk0Q(dL2v, pSDG):\n return [... | [
"0.74706453",
"0.7324707",
"0.7084658",
"0.705242",
"0.70229506",
"0.6859731",
"0.680205",
"0.666474",
"0.66518456",
"0.65882903",
"0.65465516",
"0.65134335",
"0.6468967",
"0.64014626",
"0.6328219",
"0.6320837",
"0.62789506",
"0.6235561",
"0.6225501",
"0.6216374",
"0.62118053... | 0.73869324 | 1 |
Return the count of embeddings in the document store. | def wolb(YKHO, KUnM: Optional[FilterType]=None, d6pt: Optional[str]=None, GAUO: bool=False, MOPg: Optional[Dict[str, str]]=None) -> int:
if MOPg:
raise NotImplementedError('PineconeDocumentStore does not support headers.')
d6pt = YKHO._index_name(d6pt)
if d6pt not in YKHO.pinecone_indexes:
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wamU(YKHO) -> int:\n if len(YKHO.embeddings) == 0:\n return 0\n for eOtH, he6J in YKHO.embeddings.items():\n return he6J.size\n return 0",
"def UHFx(YKHO):\n return len(YKHO.document_ids)",
"def UHFx(YKHO):\n return len(YKHO._store)",
"def S21x(YKHO):\n return len(YKHO._wi... | [
"0.73523295",
"0.7138499",
"0.70831347",
"0.69531304",
"0.6912304",
"0.6907658",
"0.68912655",
"0.6879188",
"0.678275",
"0.6779908",
"0.67538625",
"0.67323345",
"0.672378",
"0.67213035",
"0.6719948",
"0.6685849",
"0.66857797",
"0.66758317",
"0.6666223",
"0.6657269",
"0.661801... | 0.64508957 | 31 |
Return the count of embeddings in the document store. | def _dny(YKHO, d6pt: Optional[str]=None, KUnM: Optional[FilterType]=None) -> int:
if KUnM:
raise NotImplementedError('Filters are not supported for get_embedding_count in PineconeDocumentStore')
d6pt = YKHO._index_name(d6pt)
if d6pt not in YKHO.pinecone_indexes:
raise Amh8(f"Index named '{d6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wamU(YKHO) -> int:\n if len(YKHO.embeddings) == 0:\n return 0\n for eOtH, he6J in YKHO.embeddings.items():\n return he6J.size\n return 0",
"def UHFx(YKHO):\n return len(YKHO.document_ids)",
"def UHFx(YKHO):\n return len(YKHO._store)",
"def S21x(YKHO):\n return len(YKHO._wi... | [
"0.73523295",
"0.7138499",
"0.70831347",
"0.69531304",
"0.6912304",
"0.6907658",
"0.68912655",
"0.678275",
"0.6779908",
"0.67538625",
"0.67323345",
"0.672378",
"0.67213035",
"0.6719948",
"0.6685849",
"0.66857797",
"0.66758317",
"0.6666223",
"0.6657269",
"0.66180176",
"0.66040... | 0.6879188 | 7 |
returns suit for card obj | def JL52(YKHO):
return YKHO.suit | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JL52(dxhl):\n return dxhl[1]",
"def JL52(YKHO):\n return YKHO.suit",
"def JL52(YKHO):\n return YKHO.suit",
"def kFis(dxhl):\n return dxhl[-1]",
"def iCfd(YKHO: Card) -> str:\n return YKHO._suit",
"def iCfd(YKHO) -> int:\n return YKHO._suit",
"def kA8M(YKHO):\n return YKHO.suit"... | [
"0.83662266",
"0.79524463",
"0.7816478",
"0.7668812",
"0.75810444",
"0.74232125",
"0.7206822",
"0.7206822",
"0.7162097",
"0.70393205",
"0.69475067",
"0.69005704",
"0.6876181",
"0.68594056",
"0.683584",
"0.6779343",
"0.6772467",
"0.6709139",
"0.65996116",
"0.6590708",
"0.65855... | 0.7972193 | 1 |
Converts a data object to array. Returns also the list of attributes needed for reconstructing it. | def iwLm(nPrm):
return (qw7D(nPrm), yNPn(nPrm)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dKR0(YKHO):\n nPrm = []\n for pan_ in YKHO.targeted_outputs:\n nPrm.append(pan_['values'])\n nPrm = list(eNCK(*nPrm))\n YKHO.data_as_array = oyIN.asarray(nPrm)",
"def f99L(YKHO):\n nPrm = hkS8.astuple(YKHO)\n return oyIN.array(nPrm, dtype=nQfy)",
"def BvAu(YEnM):\n return YEnM.t... | [
"0.6917455",
"0.6817355",
"0.66259754",
"0.6597755",
"0.6597059",
"0.65739924",
"0.6502771",
"0.6502594",
"0.6416911",
"0.6403372",
"0.6360123",
"0.63392204",
"0.63360727",
"0.63215417",
"0.63200194",
"0.63141286",
"0.6314084",
"0.63048065",
"0.6282484",
"0.6278712",
"0.62761... | 0.81792027 | 0 |
Return a jsonified dictionary of min, max, and avg temp observations for a given date | def yKcO(yKcO=None):
kepv = JRYC.datetime.strptime(yKcO, '%Y-%m-%d')
dixj = cuiw.query(JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs), JfyU.max(Ny6I.tobs)).filter(Ny6I.date >= kepv).all()
eQSh = list(oyIN.ravel(dixj))
return pz3A(eQSh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWob(yKcO):\n cuiw = DMju(eHpk)\n WQwL = cuiw.query(Ny6I.date, JfyU.max(Ny6I.tobs), JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs)).filter(Ny6I.date >= yKcO).group_by(Ny6I.date).all()\n cuiw.close\n sBkO = []\n for _c1T, TWl1, eCok, CEj2 in WQwL:\n gGiJ = {}\n gGiJ['date'] = _c1T\n ... | [
"0.77441305",
"0.77140707",
"0.7456528",
"0.7312869",
"0.7167788",
"0.7157522",
"0.7155746",
"0.71303856",
"0.71246845",
"0.71042675",
"0.706672",
"0.7045949",
"0.7036697",
"0.70345944",
"0.7008755",
"0.69932514",
"0.69750226",
"0.69704705",
"0.69541186",
"0.69414836",
"0.692... | 0.0 | -1 |
Return a jsonified dictionary of min, max, and avg temp observations for a given date range | def k57g(yKcO=None, Os4s=None):
kepv = JRYC.datetime.strptime(yKcO, '%Y-%m-%d')
KhBf = JRYC.datetime.strptime(Os4s, '%Y-%m-%d')
dixj = cuiw.query(JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs), JfyU.max(Ny6I.tobs)).filter(Ny6I.date >= kepv).filter(Ny6I.date <= KhBf).all()
eQSh = list(oyIN.ravel(dixj))
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWob(yKcO):\n cuiw = DMju(eHpk)\n WQwL = cuiw.query(Ny6I.date, JfyU.max(Ny6I.tobs), JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs)).filter(Ny6I.date >= yKcO).group_by(Ny6I.date).all()\n cuiw.close\n sBkO = []\n for _c1T, TWl1, eCok, CEj2 in WQwL:\n gGiJ = {}\n gGiJ['date'] = _c1T\n ... | [
"0.7652826",
"0.7617594",
"0.7585582",
"0.75722057",
"0.7497996",
"0.7493394",
"0.738142",
"0.7377752",
"0.7347163",
"0.7336955",
"0.7317535",
"0.7301918",
"0.72658104",
"0.7157784",
"0.7144287",
"0.7139502",
"0.7135069",
"0.71339345",
"0.71331227",
"0.7059676",
"0.70477897",... | 0.0 | -1 |
load message and categories files, merged them anad return dataframe . | def UlWi(xxT2, S6Zw):
yEHD = rLdf.read_csv(xxT2)
LeZt = rLdf.read_csv(S6Zw)
jQ3Z = rLdf.merge(yEHD, LeZt, on='id')
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(xxT2, S6Zw):\n yEHD = rLdf.read_csv(xxT2)\n LeZt = rLdf.read_csv(S6Zw)\n jQ3Z = rLdf.merge(yEHD, LeZt)\n return jQ3Z",
"def UlWi(xxT2, S6Zw):\n yEHD = rLdf.read_csv(xxT2)\n LeZt = rLdf.read_csv(S6Zw)\n jQ3Z = rLdf.merge(yEHD, LeZt, on='id')\n return jQ3Z",
"def UlWi(xxT2, S6Zw)... | [
"0.8456241",
"0.84059846",
"0.8399811",
"0.83902436",
"0.8358094",
"0.83302575",
"0.8290878",
"0.8238622",
"0.8226588",
"0.82168365",
"0.82092637",
"0.8197388",
"0.8194064",
"0.8171164",
"0.8169354",
"0.8152878",
"0.80886006",
"0.807543",
"0.8056885",
"0.80509055",
"0.8047015... | 0.8344474 | 5 |
Get pairs of word, number of occurences. | def UHFx(fUYa: List[Any]) -> x1iM[AzJI[str, int]]:
SUpc = mBkc(fUYa)
ZvuW = [(G1Hx, Ty9i) for G1Hx, Ty9i in SUpc.items()]
UzTa = sorted(ZvuW, key=lambda WKvO: 0 - WKvO[1])
return UzTa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SOlH(V22M):\n ewCu = mBkc()\n for tQh9, wSNH, onOH in zip(V22M, V22M[1:], V22M[2:]):\n ewCu[tQh9, wSNH, onOH] += 1\n return ewCu",
"def _oO2(l5Ny):\n if not hasattr(l5Ny, 'upper'):\n raise ValueError('Invalid argument')\n dixj = g760.defaultdict(int)\n for GIN8 in l5Ny.upper()... | [
"0.7612027",
"0.73171645",
"0.7206192",
"0.7201567",
"0.7027498",
"0.69920135",
"0.6966502",
"0.68676966",
"0.68073124",
"0.6715482",
"0.6715482",
"0.6711376",
"0.6705408",
"0.6700691",
"0.6658237",
"0.66397965",
"0.66397965",
"0.66325784",
"0.6628059",
"0.65816945",
"0.65673... | 0.6657616 | 15 |
Returns the protobuf type for a given field descriptor A Repeated, Map, or str object may be returned. Strings correspond to protobuf types. | def vF49(Jyyj, QpfX):
if Jyyj.label == lNNJ.LABEL_REPEATED:
Dfxc = Jyyj.message_type
bEBg = Dfxc is not None and Dfxc.GetOptions().map_entry
if bEBg:
H5ew = Tz7f(Jyyj.message_type.fields[0], QpfX)
BWXx = Tz7f(Jyyj.message_type.fields[1], QpfX)
return nkvf(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tz7f(Jyyj, QpfX):\n if Jyyj.message_type is not None:\n return sYuO(Jyyj.message_type, QpfX)\n else:\n return oQlk[Jyyj.type]",
"def z_V1(Jyyj):\n vF49 = Jyyj['type']\n if vF49 == 'string':\n return 'char *'\n if vF49 == 'integer':\n return 'int '\n if vF49 == 'o... | [
"0.732828",
"0.69069654",
"0.67431855",
"0.64801925",
"0.6300111",
"0.62308306",
"0.6201295",
"0.6200236",
"0.612775",
"0.6057813",
"0.6045063",
"0.5995742",
"0.5993142",
"0.5993142",
"0.5978134",
"0.59497917",
"0.5913601",
"0.59084916",
"0.5895435",
"0.5876436",
"0.586802",
... | 0.67641443 | 2 |
Helper that returns True if a field is a custom message type | def ODwL(Jyyj):
return isinstance(Jyyj, tuple) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HwUy(vF49: str) -> bool:\n if vF49 in lLQP.VALID_FIELDS:\n return True\n return False",
"def QXsC(Dfxc):\n return Dfxc in y86K()",
"def ODwL(YKHO):\n return YKHO.type == 'message' or YKHO.type == 'pmessage'",
"def nBIK(vF49: Any) -> bool:\n return Al_z(vF49) or wlj0(vF49) or (isinst... | [
"0.65980846",
"0.6540021",
"0.64775467",
"0.63699275",
"0.63419396",
"0.63122255",
"0.6243981",
"0.62308836",
"0.61763424",
"0.6159387",
"0.6001957",
"0.5993538",
"0.5924863",
"0.5833137",
"0.58318603",
"0.5783487",
"0.57764584",
"0.5775058",
"0.5775058",
"0.5775058",
"0.5775... | 0.6122957 | 10 |
Returns the number of primitives in the bound geometry | def szAg(YKHO):
return len(YKHO._primitives) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UoOD(Fw8z):\n return Fw8z.intrinsicValue('pointcount')",
"def poMF(Fw8z):\n return Fw8z.intrinsicValue('vertexcount')",
"def l1nT(Fw8z):\n return Fw8z.intrinsicValue('primitivecount')",
"def noFi(zLC2):\n pass",
"def vGYa(YKHO):\n return YKHO.npoints() - YKHO.ninterior_points()",
"def ... | [
"0.7663999",
"0.76517403",
"0.7466601",
"0.7204155",
"0.71457005",
"0.7110829",
"0.7109924",
"0.70990163",
"0.7040104",
"0.7037511",
"0.7014851",
"0.70060736",
"0.69860464",
"0.69784707",
"0.6968359",
"0.69589126",
"0.6905852",
"0.6896646",
"0.6861839",
"0.6809135",
"0.680267... | 0.70943487 | 8 |
Validate that the supplied email address is unique for the site. | def YBiq(YKHO):
if mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']):
raise H6V6.ValidationError(bGrB('This email address is already in use. Please supply a different email address.'))
return YKHO.cleaned_data['email'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4p5(L03z, Jyyj):\n OSYx = Nc2H.query(Nc2H.email == Jyyj.data).count()\n if OSYx >= 1:\n raise ffF6.ValidationError('This Email is already in use. Please try another one.')",
"def Bt7w(YKHO, D3lj):\n D3lj = mv1M.query.filter_by(email=D3lj.data).first()\n if D3lj:\n raise sUXu('The e... | [
"0.7767222",
"0.76632833",
"0.7633805",
"0.76163524",
"0.757249",
"0.75573915",
"0.755369",
"0.75427395",
"0.75300163",
"0.75277853",
"0.75276726",
"0.7437733",
"0.74324775",
"0.7417713",
"0.7395962",
"0.7385523",
"0.7356168",
"0.7350665",
"0.7349663",
"0.73333865",
"0.732600... | 0.71254647 | 42 |
Here we initilaze the board and the win conditions | def FIMM(YKHO):
YKHO.board = [0, 1, 2, 3, 4, 5, 6, 7, 8]
YKHO.win = ((0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 4, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (2, 4, 6))
YKHO.moves = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XnEd(YKHO):\n YKHO._gen_board()\n YKHO._place_player()",
"def FIMM(YKHO):\n YKHO._game_state = 'UNFINISHED'\n YKHO._player = 'BLACK'\n YKHO._board = [['|-|'] * 20 for exwG in range(20)]\n YKHO._board[1][2] = YKHO._board[1][4] = YKHO._board[1][6] = YKHO._board[1][7] = YKHO._board[1][8] = YKH... | [
"0.7457126",
"0.7303944",
"0.71440816",
"0.70672584",
"0.70600826",
"0.70307535",
"0.701183",
"0.6990566",
"0.6989525",
"0.6967612",
"0.69662476",
"0.6957516",
"0.6953296",
"0.6948056",
"0.69401515",
"0.6938558",
"0.69257253",
"0.6908504",
"0.68981236",
"0.6895625",
"0.689562... | 0.7380141 | 1 |
function for finding whether 2 elements in the list adds to give k or not | def l7gp(IqQl, G1Hx):
for YRbF in range(0, len(IqQl)):
E_TU = IqQl[YRbF]
for r845 in range(YRbF + 1, len(IqQl)):
OyNW = IqQl[r845]
if E_TU + OyNW == G1Hx:
return (E_TU, OyNW)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gL9L(mSrU, G1Hx):\n if len(mSrU) == 0 or len(mSrU) == 1:\n return False\n for YRbF in range(len(mSrU)):\n if G1Hx - mSrU[YRbF] in mSrU:\n return True",
"def kNl3(mSrU, G1Hx):\n if len(mSrU) == 0 or len(mSrU) == 1:\n return False\n for YRbF in range(len(mSrU)):\n ... | [
"0.73049706",
"0.7137149",
"0.70826846",
"0.7016802",
"0.6969427",
"0.6920388",
"0.6894631",
"0.67641205",
"0.67617357",
"0.6714292",
"0.6691698",
"0.6611571",
"0.6551706",
"0.6471163",
"0.6411811",
"0.6398036",
"0.63882",
"0.6351437",
"0.6347072",
"0.627033",
"0.6268379",
... | 0.6997134 | 4 |
Converts expire time to total seconds and ensures that ttl is capped at one year. | def AkZx(pg_u: Union[int, timedelta]) -> int:
if isinstance(pg_u, fCoM):
pg_u = int(pg_u.total_seconds())
return min(pg_u, kxcw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S1hc(iWzb):\n return (iWzb.replace(tzinfo=None) - qcWV.datetime.utcnow()).days",
"def p_Tc(YKHO) -> int:\n return laHg.cast(int, YKHO._properties.get('expirationSeconds'))",
"def DOLb(YKHO, C6wh=WHBf):\n return int(ITS7.time() + C6wh)",
"def CELb(sTns: int=30) -> float:\n return ITS7.time() +... | [
"0.6735018",
"0.6641953",
"0.6611674",
"0.6559122",
"0.64952993",
"0.6444167",
"0.6430737",
"0.64303493",
"0.6413188",
"0.64077675",
"0.6224324",
"0.6224324",
"0.6202142",
"0.61278087",
"0.61266947",
"0.6074914",
"0.6069399",
"0.6040923",
"0.6017094",
"0.60082686",
"0.6007874... | 0.70793074 | 0 |
Returns the pagination instance's representation. | def wHJl(YKHO):
w6K9 = ['<', YKHO.__class__.__name__, ' client = ', repr(YKHO.client), ', channel = ', repr(YKHO.channel), ', state = ']
Nk07 = YKHO._task_flag
w6K9.append(repr(Nk07))
w6K9.append(' (')
QfSU = c1dm[Nk07]
w6K9.append(QfSU)
w6K9.append(')')
w6K9.append('>')
return ''.jo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lklY(YKHO, B2Dn):\n\n class SerializerClass(YKHO.pagination_serializer_class):\n\n class Meta:\n r6At = YKHO.get_serializer_class()\n SF2e = EfPc\n QpfX = YKHO.get_serializer_context()\n return SF2e(instance=B2Dn, context=QpfX)",
"def fNWj(YKHO):\n return YKHO._pagination",
... | [
"0.7131646",
"0.67739916",
"0.67739916",
"0.6692326",
"0.65310615",
"0.64883953",
"0.6426125",
"0.64258933",
"0.64189863",
"0.64189863",
"0.64189863",
"0.64189863",
"0.64189863",
"0.63881236",
"0.6288342",
"0.6270929",
"0.62480426",
"0.6230171",
"0.6215926",
"0.61834615",
"0.... | 0.0 | -1 |
Returns whether the menu is still active. Returns | def ksfB(YKHO):
return YKHO._task_flag in (LDrh, gJpc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO):\n return bool(YKHO._stack)",
"def ksfB(YKHO):\n return bool(YKHO._stack)",
"def ksfB(YKHO):\n return bool(YKHO._stack)",
"def ksfB(YKHO):\n return YKHO.active",
"def ksfB(YKHO):\n return YKHO.active",
"def ksfB(YKHO):\n return YKHO.active",
"def ksfB(YKHO):\n return... | [
"0.72920287",
"0.72920287",
"0.72920287",
"0.72777385",
"0.72777385",
"0.72777385",
"0.72777385",
"0.72777385",
"0.72777385",
"0.7264172",
"0.7264172",
"0.72375613",
"0.7230783",
"0.7202913",
"0.7202913",
"0.7202913",
"0.7202913",
"0.7193454",
"0.71440953",
"0.71440953",
"0.7... | 0.72112554 | 13 |
Applies Sobel x or y, then takes an absolute value and applies a threshold. | def Sk6z(VXjJ, ENzu='x', knl1=(0, 255)):
VXjJ = XC5k.cvtColor(VXjJ, XC5k.COLOR_RGB2GRAY)
if ENzu == 'x':
SB9r = oyIN.absolute(XC5k.Sobel(VXjJ, XC5k.CV_64F, 1, 0))
if ENzu == 'y':
SB9r = oyIN.absolute(XC5k.Sobel(VXjJ, XC5k.CV_64F, 0, 1))
iWhD = oyIN.uint8(255 * SB9r / oyIN.max(SB9r))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ptQ8(ITiw, ENzu='x', pg7l=3, knl1=(0, 255)):\n if ENzu == 'x':\n SB9r = oyIN.absolute(XC5k.Sobel(ITiw, XC5k.CV_64F, 1, 0, ksize=pg7l))\n if ENzu == 'y':\n SB9r = oyIN.absolute(XC5k.Sobel(ITiw, XC5k.CV_64F, 0, 1, ksize=pg7l))\n iWhD = oyIN.uint8(255 * SB9r / oyIN.max(SB9r))\n dbuB = oy... | [
"0.64121795",
"0.62641",
"0.62129366",
"0.6199054",
"0.61945593",
"0.6138518",
"0.6110944",
"0.61084986",
"0.6049395",
"0.60242784",
"0.60208035",
"0.5982949",
"0.59712017",
"0.5892238",
"0.5892238",
"0.58910096",
"0.5879049",
"0.58743244",
"0.5841722",
"0.58103305",
"0.57980... | 0.59768885 | 12 |
Sets up argparse and collects arguments. | def rwTO():
wvEv = j1Jz.ArgumentParser(description='The server, run by the evaluator.')
wvEv.add_argument('--port', type=int, action='store', help='Server port', required=True)
wvEv.add_argument('--queue', type=int, action='store', help='NFQueue number to use', required=True)
wvEv.add_argument('--enviro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZDvn(YKHO, wvEv):\n for qIxc, B2fa in YKHO._arguments:\n wvEv.add_argument(*qIxc, **B2fa)",
"def ZDvn():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('-d', '--dir', required=True, help='Full path to the project directory.', action=EqIj, dest='project_directory')\n wvEv.add_argument('... | [
"0.7569643",
"0.7368948",
"0.7300187",
"0.7186088",
"0.7118537",
"0.7088023",
"0.7074813",
"0.70342886",
"0.7002351",
"0.6981849",
"0.69662416",
"0.69648254",
"0.69484925",
"0.6939834",
"0.69282687",
"0.6921995",
"0.6890575",
"0.6887429",
"0.6845072",
"0.6803756",
"0.6787475"... | 0.0 | -1 |
Test that a resource that cannot normalize an alias keep the alias. | def YqBB(YKHO):
jBhe = ISu2(YKHO.rm, 'visa_alias')
assert ZbWC.match('.* at %s' % 'visa_alias', str(jBhe)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZGLH(YKHO):\n YKHO.assert_(not YKHO.kind1.isAlias())",
"def zUMm(vbQv):\n mZ9P = ['linkr']\n return vbQv.lower() in mZ9P",
"def Ewxt(YKHO):\n YKHO.builder.add_alias(YKHO.alias_site)\n Aofo = YKHO.builder.get_result()\n YKHO.assertEqual(Aofo, '$ORIGIN example.com.\\ndemo IN ... | [
"0.68303436",
"0.6739497",
"0.6674195",
"0.65276164",
"0.6516123",
"0.65156084",
"0.62344736",
"0.5967262",
"0.59393406",
"0.59233063",
"0.59142387",
"0.58972627",
"0.5858955",
"0.58558714",
"0.58473456",
"0.58169156",
"0.58121145",
"0.57796115",
"0.5773163",
"0.5744274",
"0.... | 0.7629575 | 0 |
Store todolist into file to make them persistent | def JK66(YKHO):
YKHO.getTodolist().storeTodolist() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n eHNT = T_Uj.open(YKHO.todoPath, 'w', 'utf-8')\n for pPvV in YKHO.todos:\n eHNT.write('%s\\n' % pPvV)\n eHNT.close()",
"def mJog(YKHO):\n ytgA = nUeQ(sNgb, 'w')\n ytgA.write(YKHO.getTaskList())\n ytgA.close()",
"def eGKa(YKHO):\n QdZT = qQXR.dumps(YKHO.tasks)\n w... | [
"0.7822981",
"0.74853384",
"0.74324137",
"0.73681426",
"0.71826774",
"0.71630424",
"0.7020057",
"0.68703556",
"0.6781771",
"0.6747884",
"0.6568191",
"0.6568191",
"0.65399206",
"0.63698447",
"0.6363111",
"0.6332344",
"0.6293067",
"0.62540394",
"0.6237453",
"0.6235658",
"0.6212... | 0.8049344 | 0 |
Remove html tags from a string | def JZhs(l5Ny):
x0SS = ZbWC.compile('<.*?>')
return ZbWC.sub(x0SS, '', l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)",
"def Iw0V(vIwR):\n return ZbWC.sub('<[^>]*?>', ' ', vIwR)",
"def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', input)\n return Bopb",
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return Zb... | [
"0.86815035",
"0.85845494",
"0.8547164",
"0.8528413",
"0.84839606",
"0.84403396",
"0.84221727",
"0.84221727",
"0.84218365",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8295757",
"0.82903194",
"0.8277659",
"0.82659954",
"0.8257645",
"0.8221... | 0.83305824 | 15 |
Converti PennTreebank tags en Wordnet tags utile dans swn_polarity() | def VVrx(TZ9E):
if TZ9E.startswith('J'):
return X1AK.ADJ
elif TZ9E.startswith('N'):
return X1AK.NOUN
elif TZ9E.startswith('R'):
return X1AK.ADV
elif TZ9E.startswith('V'):
return X1AK.VERB
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVrx(TZ9E):\n if TZ9E.startswith('N'):\n return 'n'\n if TZ9E.startswith('V'):\n return 'v'\n if TZ9E.startswith('J'):\n return 'a'\n if TZ9E.startswith('R'):\n return 'r'\n return None",
"def VVrx(YKHO, TZ9E):\n if TZ9E in ['JJ', 'JJR', 'JJS']:\n return W... | [
"0.69431305",
"0.68819284",
"0.6853433",
"0.6565827",
"0.6519122",
"0.6484833",
"0.64840484",
"0.6472066",
"0.6472066",
"0.6472066",
"0.6472066",
"0.64360803",
"0.64194",
"0.64194",
"0.64194",
"0.6410123",
"0.6314043",
"0.6223642",
"0.6108306",
"0.6059164",
"0.60423213",
"0... | 0.6353896 | 16 |
Analyzes the sentiment of a given sentence | def L3g6(YKHO, yAmx):
TWpx = gmS1(yAmx).sentences[0].polarity
return (yAmx, TWpx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTlV(l5Ny):\n Aofo = K9NE(l5Ny)\n _dZy = ''\n if Aofo[0]['label'] == '1 star':\n _dZy = 'very negative'\n elif Aofo[0]['label'] == '2 star':\n _dZy = 'negative'\n elif Aofo[0]['label'] == '3 stars':\n _dZy = 'neutral'\n elif Aofo[0]['label'] == '4 stars':\n _dZy = ... | [
"0.7993021",
"0.77941287",
"0.7766922",
"0.7766922",
"0.7766922",
"0.77350444",
"0.76511407",
"0.7643442",
"0.76261395",
"0.7613502",
"0.7550916",
"0.74859256",
"0.74486315",
"0.74064",
"0.7403318",
"0.73789454",
"0.7374439",
"0.7364534",
"0.73466766",
"0.73461884",
"0.733839... | 0.0 | -1 |
required Initializes an order book data source (Either from live API or from historical database) | def m5Tx(YKHO) -> jVeZ:
if not YKHO._data_source:
YKHO._data_source = YIY5(trading_pairs=YKHO._trading_pairs)
return YKHO._data_source | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, n6xu={}, BeD_={}):\n YKHO._order_list = []\n YKHO._order_manager = ZX9F()\n YKHO.set_book(n6xu, BeD_)",
"def FIMM(YKHO, NArs):\n super(ALDT, YKHO).__init__()\n YKHO.params = NArs",
"def FIMM(YKHO, **B2fa):\n super(WrB0, YKHO).__init__()\n YKHO.instrument = B2fa.get('instrume... | [
"0.69265664",
"0.6753963",
"0.6608032",
"0.64141023",
"0.63729304",
"0.60426545",
"0.6035294",
"0.60170597",
"0.601099",
"0.5978678",
"0.59387225",
"0.5900155",
"0.5891038",
"0.58770525",
"0.5873459",
"0.5760207",
"0.5716313",
"0.56981647",
"0.56754464",
"0.5672773",
"0.56672... | 0.7063427 | 0 |
required Name of the current exchange | def cJHQ(YKHO) -> str:
return uwaB.EXCHANGE_NAME | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cJHQ(YKHO) -> str:\n return YKHO.__exchange_name",
"def cJHQ(YKHO):\n return YKHO._exchange_name",
"def cJHQ(YKHO) -> str:\n return YKHO.__exchange_parameters.exchange_name",
"def dQgO(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'exchange')",
"def tYPW(YKHO):\n pass",
"def dQgO(YKHO) -... | [
"0.7978877",
"0.79284894",
"0.7741683",
"0.69552773",
"0.69455284",
"0.6763692",
"0.6587104",
"0.63039273",
"0.6248307",
"0.6241899",
"0.62371063",
"0.62206525",
"0.61119187",
"0.6009909",
"0.6009909",
"0.6009909",
"0.5983764",
"0.5906543",
"0.59054375",
"0.5875823",
"0.58652... | 0.7708823 | 3 |
Change the firmware update password. The user is prompted for the old and the new firmware update password. Per default, the firmware update password is 12345678. | def Dp5j():
OM4o = A67l()
BfIX = idDS('Old firmware update password', default='12345678', hide_input=True)
uGpu = idDS('New firmware update password', hide_input=True, confirmation_prompt=True)
U5bT = OM4o.change_firmware_password(BfIX, uGpu)
if U5bT.ok:
Tj_v('Successfully updated the firmwa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dp5j():\n OM4o = neDO()\n try:\n OM4o.connect()\n except y3cM:\n kJoe(f'No {OM4o.friendly_name} device found', support_hint=False)\n DvSZ, cbKy = OM4o.fw_version\n if cbKy < 11:\n kJoe(f'The connected {OM4o.friendly_name} does not support firmware updates', support_hint=Fals... | [
"0.88575155",
"0.7636846",
"0.7452851",
"0.7336869",
"0.7327813",
"0.7303134",
"0.7299085",
"0.7257391",
"0.72213554",
"0.70402205",
"0.7016632",
"0.6964871",
"0.69532955",
"0.6948796",
"0.69081825",
"0.6866368",
"0.6855837",
"0.68126583",
"0.67700195",
"0.6764913",
"0.672770... | 0.9097152 | 0 |
Display all requested notifications | def n3T8(YKHO, tO9_, CK6s):
YKHO.notification.update(tO9_)
YKHO.notification.show()
YKHO.osd(tO9_)
if not CK6s:
YKHO.say(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def npCG():\n if c5ow is not None and hasattr(c5ow, 'id'):\n if c5ow.is_admin or c5ow.is_health_authority:\n return Yxsy(TvZl('error.html', error='404'), 404)\n ivf7, jGRS = EZXs().get_notifications(c5ow.id)\n return TvZl('notifications.html', notifications=ivf7, title='Notificat... | [
"0.7386895",
"0.73122835",
"0.72892624",
"0.72406113",
"0.7201016",
"0.710338",
"0.69720775",
"0.69450843",
"0.687144",
"0.6852233",
"0.6820136",
"0.6791444",
"0.6780721",
"0.67450523",
"0.6740831",
"0.67138904",
"0.66438717",
"0.6624206",
"0.6613971",
"0.6591364",
"0.6585622... | 0.0 | -1 |
Parses bool args given to argparse | def oOc6(Ty9i):
try:
return YcAF(Ty9i)
except ValueError:
raise j1Jz.ArgumentTypeError('Boolean value expected.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oFEk(qIxc: str) -> bool:\n if qIxc.lower() in ['yes', 'true', 't', 'y']:\n return True\n elif qIxc.lower() in ['no', 'false', 'f', 'n']:\n return False\n else:\n raise j1Jz.ArgumentTypeError('Please make sure to enter a boolean value i.e. True or False.')",
"def iXDU(HCmI):\n ... | [
"0.80121785",
"0.7996552",
"0.7709389",
"0.7665474",
"0.76151925",
"0.76151925",
"0.74315244",
"0.74057806",
"0.730965",
"0.7304996",
"0.730234",
"0.72643477",
"0.7236188",
"0.7236188",
"0.722236",
"0.71425635",
"0.7139593",
"0.71332836",
"0.7109263",
"0.710905",
"0.7100561",... | 0.69391423 | 45 |
Apply dense and batch norm layer | def cjoO(YKHO, jvV9, tYiq, h7Vl, QOe9, YDYE=None):
cSEP = wsLR.affine(jvV9, tYiq, base_axis=2, with_bias=False, name=h7Vl)
Yo13 = wsLR.batch_normalization(cSEP, axes=[2], batch_stat=not QOe9, name=h7Vl)
if YDYE == 'tanh':
Yo13 = vuvg.tanh(Yo13)
elif YDYE == 'relu':
Yo13 = vuvg.relu(Yo13)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r3KX(VZhH, Ymdl):\n bcOm = VZhH.get_weights()\n OgN2 = Ymdl.get_weights()\n KMvS = OgN2[0]\n UqYS = OgN2[1]\n JBMS = OgN2[2]\n I8JS = OgN2[3]\n _hZ2 = 1e-05\n GamQ = oyIN.array(bcOm)\n for YRbF in range(len(OgN2[0])):\n GamQ[:, :, :, YRbF, :] = oyIN.array(bcOm)[:, :, :, YRbF, ... | [
"0.72754675",
"0.7159627",
"0.7128358",
"0.71100354",
"0.7085967",
"0.7041694",
"0.70388776",
"0.6987629",
"0.698505",
"0.69796973",
"0.696117",
"0.6936885",
"0.692556",
"0.69212115",
"0.683304",
"0.67798156",
"0.6773482",
"0.67733",
"0.67105925",
"0.67067456",
"0.6701844",
... | 0.0 | -1 |
Return delta Z scaling term (in nanometers). | def oSGv(YKHO):
return YKHO.delta_z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VeiJ(YKHO, epBp):\n return epBp * YKHO.z_scale",
"def RjGm(YKHO) -> float:\n AjzU = YKHO.get_d1()\n _sQW = YKHO.get_d2()\n KMvS = YKHO.gamma()\n return KMvS * ((AjzU * _sQW - 1) / YKHO.sigma)",
"def BRVj(YKHO):\n return YKHO.mean_dens * (1 + YKHO.z) ** 3",
"def aUJK(YKHO):\n return Y... | [
"0.72830594",
"0.6767982",
"0.66775924",
"0.6661057",
"0.658482",
"0.65511394",
"0.6547658",
"0.6501579",
"0.6487036",
"0.6486105",
"0.6449414",
"0.6438473",
"0.6425914",
"0.641214",
"0.641214",
"0.641214",
"0.641214",
"0.63778234",
"0.6355484",
"0.63545656",
"0.63204277",
... | 0.6585235 | 4 |
Sum simulation hessians to objective hessian. | def e5d6(eRBM: Sequence[str], _OiI: Sequence[str], pVoi: Dict[str, Union[float, str]], EHh3: np.ndarray, ebn6: np.ndarray, zZRI: float=1.0):
wvBh, x1Sb = j5k8(eRBM, _OiI, pVoi)
m8yo, Pv1V = oyIN.unique(x1Sb, return_index=True)
wNkS = [or8S for or8S in range(len(x1Sb)) if or8S not in Pv1V]
ebn6[oyIN.ix_(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x4qH(YKHO, yR_P, a8Kw, gmJ6):\n YKHO._check_input_dims(yR_P)\n ywwl, lWPh = yR_P.input0.shape\n C7Ls = 2 * MUmk(lWPh, device=yR_P.input0.device)\n if yR_P.reduction == 'sum':\n C7Ls *= ywwl\n elif yR_P.reduction == 'mean':\n C7Ls /= lWPh\n return C7Ls",
"def WsEF(YKHO):\n w... | [
"0.72234106",
"0.7065226",
"0.68053275",
"0.65574384",
"0.6503897",
"0.6398368",
"0.6296954",
"0.6265364",
"0.62302613",
"0.61729413",
"0.6167064",
"0.6165919",
"0.6153764",
"0.6098213",
"0.6080647",
"0.60687953",
"0.60222024",
"0.6010079",
"0.6010079",
"0.59976774",
"0.59710... | 0.0 | -1 |
Norm of the true wavefunction over r <= c | def gikt(YKHO):
G1Hx = YKHO.k
Csk6 = YKHO.delta
Z9rn = YKHO.c
return 0.25 / G1Hx * (-oyIN.sin(2 * (Csk6 + G1Hx * Z9rn)) + oyIN.sin(2 * Csk6) + 2 * G1Hx * Z9rn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUnA(vQEd):\n k8CQ = vQEd / oyIN.sum(vQEd)\n return k8CQ",
"def gikt(YKHO):\n G1Hx = YKHO.k\n Z9rn = YKHO.c\n return 0.5 / G1Hx * (1.0 - oyIN.exp(-2 * Z9rn * G1Hx))",
"def vDHZ(XP5J: 'stdcomplexF', exwG: 'unsigned int') -> 'float':\n return QZnQ.vnl_c_vectorCF_rms_norm(XP5J, exwG)",
"de... | [
"0.69796026",
"0.68719524",
"0.6747107",
"0.6700126",
"0.6553842",
"0.6455543",
"0.6455543",
"0.64455396",
"0.64439213",
"0.6439626",
"0.6438504",
"0.6420184",
"0.6378262",
"0.63521886",
"0.62772655",
"0.6265528",
"0.62602717",
"0.6245829",
"0.62441564",
"0.6169001",
"0.61586... | 0.67818975 | 2 |
Norm of the true wavefunction over r <= c | def gikt(YKHO):
G1Hx = YKHO.k
Z9rn = YKHO.c
return 0.5 / G1Hx * (1.0 - oyIN.exp(-2 * Z9rn * G1Hx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUnA(vQEd):\n k8CQ = vQEd / oyIN.sum(vQEd)\n return k8CQ",
"def gikt(YKHO):\n G1Hx = YKHO.k\n Csk6 = YKHO.delta\n Z9rn = YKHO.c\n return 0.25 / G1Hx * (-oyIN.sin(2 * (Csk6 + G1Hx * Z9rn)) + oyIN.sin(2 * Csk6) + 2 * G1Hx * Z9rn)",
"def vDHZ(XP5J: 'stdcomplexF', exwG: 'unsigned int') -> 'fl... | [
"0.69796026",
"0.67818975",
"0.6747107",
"0.6700126",
"0.6553842",
"0.6455543",
"0.6455543",
"0.64455396",
"0.64439213",
"0.6439626",
"0.6438504",
"0.6420184",
"0.6378262",
"0.63521886",
"0.62772655",
"0.6265528",
"0.62602717",
"0.6245829",
"0.62441564",
"0.6169001",
"0.61586... | 0.68719524 | 1 |
get JSON response and convert to dict | def cw7j(MuO5):
_hkX = G4JS.get(kN84 + MuO5)
return qQXR.loads(_hkX.content) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CXY2(geh0):\n return qQXR.loads(qQXR.dumps(geh0.data))",
"def qQXR(geh0):\n return _1kr(geh0.decode())",
"def c3ht(geh0):\n if isinstance(geh0.json, dict):\n return geh0.json\n return geh0.json()",
"def T_2m(YKHO, _hkX):\n try:\n return _hkX.json()\n except tK0V:\n ... | [
"0.8089132",
"0.80726844",
"0.79604936",
"0.7827803",
"0.778785",
"0.77465767",
"0.7703878",
"0.76767236",
"0.76767236",
"0.7632325",
"0.75744385",
"0.7506605",
"0.7460699",
"0.7432361",
"0.7426045",
"0.7400118",
"0.73627067",
"0.73627067",
"0.7359655",
"0.7340256",
"0.732593... | 0.0 | -1 |
Freezes the state of a session into a pruned computation graph. Creates a new computation graph where variable nodes are replaced by constants taking their current value in the session. The new graph will be pruned so subgraphs that are not necessary to compute the requested outputs are removed. session The TensorFlow ... | def _w3s(cuiw, j1Hi=None, OnZF=None, lUZN=True):
pNZh = cuiw.graph
with pNZh.as_default():
hq9i = list(set((Ty9i.op.name for Ty9i in ZylS.global_variables())).difference(j1Hi or []))
OnZF = OnZF or []
OnZF += [Ty9i.op.name for Ty9i in ZylS.global_variables()]
uDSE = pNZh.as_graph... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _w3s(cuiw, j1Hi=None, OnZF=None, lUZN=True):\n from tensorflow.python.framework.graph_util import convert_variables_to_constants\n pNZh = cuiw.graph\n with pNZh.as_default():\n hq9i = list(set((Ty9i.op.name for Ty9i in ZylS.global_variables())).difference(j1Hi or []))\n OnZF = OnZF or []... | [
"0.8351156",
"0.8351156",
"0.83431315",
"0.8332822",
"0.8325489",
"0.8320526",
"0.8316069",
"0.8316069",
"0.8316069",
"0.8316069",
"0.83110887",
"0.83110887",
"0.83110887",
"0.83110887",
"0.83103704",
"0.8303038",
"0.8295405",
"0.77244806",
"0.63702977",
"0.6346719",
"0.62981... | 0.8244026 | 17 |
List classifiers. Returns an empty array if no classifiers are available. | def CLlE(YKHO, **B2fa):
MOPg = {}
if 'headers' in B2fa:
MOPg.update(B2fa.get('headers'))
kVod = w64J('natural_language_classifier', 'V1', 'list_classifiers')
MOPg.update(kVod)
bD7m = '/v1/classifiers'
QePW = YKHO.prepare_request(method='GET', url=bD7m, headers=MOPg, accept_json=True)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DFHl(YKHO):\n return YKHO._classifiers",
"def DFHl(YKHO) -> x1iM[fbFR]:\n return YKHO._classifiers",
"def haER():\n DFHl = [{'name': 'Linear SVM', 'id': 'LinearSVM'}, {'name': 'Gaussian Naive Bayes', 'id': 'GaussianNB'}, {'name': 'Decision Tree', 'id': 'DecisionTree'}, {'name': 'Random Forest', 'i... | [
"0.7611811",
"0.74919736",
"0.74685717",
"0.72444826",
"0.70470166",
"0.6955368",
"0.6948771",
"0.67842335",
"0.67842335",
"0.67842335",
"0.6683994",
"0.65447116",
"0.65117574",
"0.6403181",
"0.63951814",
"0.63843733",
"0.637538",
"0.63623023",
"0.635834",
"0.6357804",
"0.632... | 0.7078869 | 4 |
Return a `str` version of this Classification object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return str(YKHO.classifier)",
"def yLCI(YKHO):\n return VAZI.to_string(YKHO).format(name=YKHO.Name, args=YKHO._parameters_to_string(YKHO.__kn_classifier.get_params()))",
"def wHJl(YKHO) -> str:\n return str(YKHO.classifier)",
"def yLCI(YKHO):\n return VAZI.to_string(YKHO)... | [
"0.8175347",
"0.80964345",
"0.807253",
"0.79663163",
"0.7788123",
"0.77878416",
"0.7502504",
"0.747863",
"0.7474886",
"0.7429649",
"0.7426416",
"0.7426416",
"0.741366",
"0.74136215",
"0.7411187",
"0.740958",
"0.73951113",
"0.73930323",
"0.73832864",
"0.7359857",
"0.7359857",
... | 0.0 | -1 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.8738641",
"0.8500916",
"0.8475683",
"0.8460317",
"0.84538317",
"0.8351018",
"0.8338301",
"0.8322018",
"0.8310472",
"0.83085877",
"0.8285557",
"0.8285557",
"0.827926",
"0.827926",
"0.82772404",
"0.82772404",
"0.8277126",
"0.82756776",
"0.82674134",
"0.82674134",
"0.82569563... | 0.81717426 | 65 |
Return `true` when self and other are not equal, false otherwise. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True",
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def xa14(YKHO, Elif):\n return not YKHO != Elif",
"def Vdqg(YKHO, Elif):\n if YKHO ... | [
"0.8650175",
"0.86424744",
"0.856196",
"0.856196",
"0.8539785",
"0.84545946",
"0.84390664",
"0.84390664"
] | 0.0 | -1 |
Return a `str` version of this ClassificationCollection object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.collection)",
"def wHJl(YKHO) -> str:\n return str(YKHO.classifier)",
"def zAg0(YKHO) -> str:\n return str(YKHO.classifier)",
"def wHJl(YKHO) -> str:\n return f'Collection({YKHO.id_})'",
"def yLCI(YKHO):\n return VAZI.to_string(YKHO).format(name=YKHO.Name, a... | [
"0.7758057",
"0.75441337",
"0.748617",
"0.73190296",
"0.7251763",
"0.7236931",
"0.7143898",
"0.7136261",
"0.7080883",
"0.7080883",
"0.707957",
"0.7051387",
"0.7051387",
"0.7051387",
"0.7037162",
"0.703538",
"0.70251304",
"0.70202744",
"0.70184153",
"0.7015927",
"0.70077515",
... | 0.0 | -1 |
Return `true` when self and other are equal, false otherwise. | def xa14(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))",
"def xa14(YKHO, Elif):\n ret... | [
"0.87372637",
"0.85013497",
"0.84751153",
"0.8460018",
"0.8453634",
"0.8351786",
"0.83384866",
"0.8322394",
"0.8310281",
"0.8309107",
"0.8285674",
"0.8285674",
"0.82787365",
"0.82787365",
"0.8276745",
"0.8276745",
"0.8276232",
"0.8274811",
"0.82679266",
"0.82679266",
"0.82568... | 0.8171772 | 67 |