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 |
|---|---|---|---|---|---|---|
Return dtypes of data returned by `self._iter_data`. | def O31i(YKHO) -> AzJI[cuzp[str, ZylS.DType], cuzp[str, ZylS.DType]]:
g4y1 = {'input_cnn': ZylS.float32, 'input_side': ZylS.float32}
Crrw = {'label_event': ZylS.int32, 'label_time': ZylS.float32, 'label_riskset': ZylS.bool}
return (g4y1, Crrw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1c7(YKHO) -> oFUf:\n return YKHO.dtype",
"def m1c7(YKHO) -> zDof[eA6S, oyIN.dtype]:\n return YKHO._dataset.dtypes",
"def m1c7(YKHO):\n return rLdf.Series([Z9rn.dtype for Z9rn in YKHO.columns], index=YKHO.column_names)",
"def qxps(YKHO):\n pass",
"def yDqo(YKHO):\n return YKHO.data.dtype... | [
"0.7685653",
"0.7659008",
"0.73788655",
"0.73735",
"0.7330484",
"0.7330484",
"0.7330484",
"0.7330484",
"0.7311246",
"0.7285277",
"0.72732866",
"0.7272352",
"0.7186476",
"0.71701115",
"0.71287227",
"0.71174663",
"0.7046362",
"0.703371",
"0.70102036",
"0.69953245",
"0.69953245"... | 0.0 | -1 |
Normalize risk scores to avoid exp underflowing. Note that only risk scores relative to each other matter. If minimum risk score is negative, we shift scores so minimum is at zero. | def awzh(WKvO: tf.Tensor) -> ZylS.Tensor:
wBZN = ZylS.reduce_min(WKvO, axis=0)
Z9rn = ZylS.zeros_like(wBZN)
CkYf = ZylS.where(wBZN < 0, -wBZN, Z9rn)
return WKvO + CkYf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mn09(cCrA):\n AjsF = cCrA.min()\n jB5X = cCrA.max()\n eTaW = (cCrA - AjsF) / float(jB5X - AjsF)\n return eTaW",
"def Mn09(gtI8, cCrA):\n ycBG = oyIN.append(cCrA, gtI8)\n dgIT = oyIN.min(ycBG)\n bQ6z = oyIN.max(ycBG)\n yk4i = bQ6z - dgIT\n rWE5 = (gtI8 - dgIT) / yk4i\n exwG = len... | [
"0.77364033",
"0.70573634",
"0.7020957",
"0.6908064",
"0.6811276",
"0.67906946",
"0.6632433",
"0.6602017",
"0.65331954",
"0.65290695",
"0.65101874",
"0.65101874",
"0.6494324",
"0.6481823",
"0.6457769",
"0.6317852",
"0.6311629",
"0.6311629",
"0.6289503",
"0.6263586",
"0.625253... | 0.0 | -1 |
Create new User and SocialConnection based on social data. | def y8Hv(YwNN: dict) -> h8nf[DW23.models.User]:
D3lj = YwNN.get('email')
if not D3lj:
return
CBIr = DW23.models.User(email=YwNN['email'], first_name=YwNN['first_name'], last_name=YwNN['last_name'])
if YwNN.get('confirm_email'):
CBIr.email_confirmation_token = CBIr.generate_token()
CB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5YQ(YKHO, QePW, TfkJ):\n return Mlnt().new_user(QePW)",
"def eLpg(YKHO, QePW):\n ZMzz = YKHO.serializer_class(data=QePW.data)\n ZMzz.is_valid(raise_exception=True)\n kT1P = ZMzz.data.get('provider')\n SSsP = QePW.user if not QePW.user.is_anonymous else None\n OuMq = Dz7_(QePW)\n try:\n ... | [
"0.7190043",
"0.6898124",
"0.6810674",
"0.6742051",
"0.6738768",
"0.66648316",
"0.6652931",
"0.6634461",
"0.6634461",
"0.66329354",
"0.656292",
"0.6521334",
"0.6521334",
"0.6521334",
"0.6497124",
"0.6491375",
"0.6485889",
"0.6461108",
"0.64346844",
"0.6411028",
"0.639177",
... | 0.6614759 | 10 |
The batch count in the current epoch (resets at 0 at the beginning of every epoch). | def NV2d(YKHO) -> Kmii[int]:
return YKHO._batch_in_epoch | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tLd1(YKHO) -> int:\n return YKHO.epoch_loop.total_batch_idx",
"def I7JW(YKHO) -> int:\n return YKHO.epoch_loop.batch_idx",
"def qtWj(YKHO):\n return len(YKHO.loss_G[0])",
"def UAEB(YKHO):\n return int(YKHO.get_samples_count() / YKHO.batch_size)",
"def r4pH(YKHO):\n return ZylS.math.floor... | [
"0.81497335",
"0.7907557",
"0.7725926",
"0.77253056",
"0.76682454",
"0.7640465",
"0.7627024",
"0.7516252",
"0.7508702",
"0.75013727",
"0.7416031",
"0.73915917",
"0.73568875",
"0.73368096",
"0.725067",
"0.725067",
"0.7246725",
"0.7208688",
"0.7195517",
"0.7189597",
"0.718001",... | 0.76456267 | 5 |
The sample count in the current epoch (resets at 0 at the beginning of every epoch). | def NcXU(YKHO) -> Kmii[int]:
return YKHO._sample_in_epoch | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AV8x(YKHO):\n return YKHO._tex_info['sample_count']",
"def AV8x(YKHO):\n return YKHO.data.shape[0]",
"def _PBJ():\n gGnb = 2\n return gGnb",
"def _PBJ(YKHO):\n return YKHO.numSamples",
"def EkGt(YKHO):\n if YKHO.subset == 'train':\n return 4741\n if YKHO.subset == 'validatio... | [
"0.74693584",
"0.7244748",
"0.7237673",
"0.7197131",
"0.7182778",
"0.7172781",
"0.7153409",
"0.7031268",
"0.7013606",
"0.698773",
"0.698773",
"0.6984224",
"0.6884215",
"0.68625474",
"0.68555784",
"0.6823391",
"0.6818631",
"0.6764291",
"0.6725501",
"0.6698886",
"0.66762143",
... | 0.74019957 | 1 |
The wallclock duration (in seconds) for the last batch. | def uwLf(YKHO) -> qcWV.timedelta:
return YKHO._batch_wct | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BeO2(YKHO):\n return YKHO._get_variable('lrun')[2]",
"def WbTE(YKHO):\n Q4cP = ITS7.process_time()\n return Q4cP - YKHO.wallclock_start",
"def oVHJ(YKHO):\n return YKHO._elapsed",
"def H5mu(YKHO):\n return YKHO._timestamp_to_utc(YKHO._get_variable('lrun')[3])",
"def WbTE(YKHO) -> int:\n ... | [
"0.7694909",
"0.75908476",
"0.7219087",
"0.70830405",
"0.7061787",
"0.7041433",
"0.6948678",
"0.69266313",
"0.69260174",
"0.6889416",
"0.6868236",
"0.6863366",
"0.6860113",
"0.68552965",
"0.6820455",
"0.6815988",
"0.67999774",
"0.6798971",
"0.67729074",
"0.67666304",
"0.67520... | 0.6762058 | 20 |
Returns the current time in the specified unit. | def NMoC(YKHO, PXGI: Union[str, TimeUnit]) -> Kmii[int]:
PXGI = r5MW(PXGI)
if PXGI == r5MW.EPOCH:
return YKHO.epoch
if PXGI == r5MW.BATCH:
return YKHO.batch
if PXGI == r5MW.SAMPLE:
return YKHO.sample
if PXGI == r5MW.TOKEN:
return YKHO.token
raise ValueError(f'Inva... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ITS7(YKHO, mWFP, PXGI='s', WmM4=None):\n Ty9i = YKHO.get(mWFP)\n if Ty9i:\n return Ty9i.time(PXGI)\n else:\n return WmM4",
"def HCFz(YKHO) -> str:\n return YKHO._time_unit_name",
"def vHj7(YKHO):\n return Kmii(qcWV.datetime.utcnow(), location=YKHO.location)",
"def vHj7(YKHO) ... | [
"0.72929305",
"0.71317244",
"0.7102207",
"0.70676243",
"0.70265037",
"0.69969696",
"0.69825244",
"0.6802514",
"0.6733487",
"0.6727775",
"0.6717029",
"0.6717029",
"0.6717029",
"0.6717029",
"0.6717029",
"0.67127997",
"0.6709074",
"0.6700871",
"0.66928315",
"0.66920024",
"0.6678... | 0.66321653 | 24 |
Returns the euclidean distance between a linestring and other geometry | def t0eR(SKxV, Elif, ya19):
Csk6 = SKxV.distance(Elif)
return Csk6 / ya19.distance | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZSt1(xgfQ, tLib):\n _Gwp, Sa65 = xgfQ\n dJFQ, DBwT = tLib\n Aofo = _Gwp ** 2 + dJFQ ** 2\n Aofo -= 2 * dJFQ * _Gwp * oyIN.cos(Sa65 - DBwT)\n return oyIN.sqrt(Aofo)",
"def PrBF(MC8u: LineString) -> float:\n pTny = PZ77.WGS84\n u54L = 0\n for UA1B, VW_L in Zu14(MC8u.coords):\n vC... | [
"0.7064997",
"0.69972855",
"0.69897664",
"0.6974104",
"0.6928643",
"0.6928643",
"0.6792943",
"0.6748463",
"0.67455214",
"0.6693107",
"0.6689597",
"0.66882193",
"0.66690916",
"0.6667644",
"0.6665615",
"0.66567814",
"0.6655572",
"0.66238856",
"0.66176766",
"0.6616317",
"0.66049... | 0.77648073 | 0 |
Adds a word to a custom voice model. Adds a single word and its translation to the custom voice model with the specified `customization_id`. Adding a new translation for a word that already exists in a custom model overwrites the word's existing translation. A custom model can contain no more than 20,000 entries. You m... | def NrOU(YKHO, Jz8Y, GIN8, y_o0, Q4Og=None):
if Jz8Y is None:
raise ValueError('customization_id must be provided')
if GIN8 is None:
raise ValueError('word must be provided')
if y_o0 is None:
raise ValueError('translation must be provided')
nPrm = {'translation': y_o0, 'part_of_s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JTTa(YKHO, Jz8Y, V22M):\n if Jz8Y is None:\n raise ValueError('customization_id must be provided')\n if V22M is None:\n raise ValueError('words must be provided')\n V22M = [YKHO._convert_model(WKvO, KLCG) for WKvO in V22M]\n nPrm = {'words': V22M}\n bD7m = '/v1/customizations/{0}/w... | [
"0.7481395",
"0.6608956",
"0.63478595",
"0.62014604",
"0.61885655",
"0.6023293",
"0.5931681",
"0.5925272",
"0.584806",
"0.5835861",
"0.5797716",
"0.5795923",
"0.5755814",
"0.57256836",
"0.5725319",
"0.56832373",
"0.56629336",
"0.565027",
"0.5609419",
"0.5606379",
"0.56027246"... | 0.78099656 | 0 |
Return a `str` version of this Pronunciation object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTzM(YKHO):\n return EyO9(YKHO.__dict__)",
"def gTzM(YKHO):\n return EyO9(YKHO.__dict__)",
"def gTzM(YKHO):\n return EyO9(YKHO.__dict__)",
"def gTzM(YKHO):\n return EyO9(YKHO.__dict__)",
"def zAg0(YKHO):\n yvT9 = '('\n yvT9 += '\"' + YKHO.stringRepr + '\" '\n yvT9 += ' '.join(YKHO.... | [
"0.7451593",
"0.7451593",
"0.7451593",
"0.7451593",
"0.7440859",
"0.7353883",
"0.7328396",
"0.7297485",
"0.7285108",
"0.72707844",
"0.72319835",
"0.7230795",
"0.7205001",
"0.7204157",
"0.71881217",
"0.71881217",
"0.71881217",
"0.71881217",
"0.71881217",
"0.71881217",
"0.71881... | 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 | 68 |
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.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 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.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 63 |
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 |
Initialize a Translation object from a json dictionary. | def CCiu(Emd4, tbx9):
qIxc = {}
if 'translation' in tbx9:
qIxc['translation'] = tbx9['translation']
else:
raise ValueError("Required property 'translation' not present in Translation JSON")
if 'part_of_speech' in tbx9:
qIxc['part_of_speech'] = tbx9['part_of_speech']
return Em... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pktP(Emd4, zgjV: dict):\n return Emd4(zgjV['id'], zgjV['description']['pl'], zgjV['description']['en'])",
"def CCiu(Emd4, tbx9):\n qIxc = {}\n if 'word' in tbx9:\n qIxc['word'] = tbx9['word']\n else:\n raise ValueError(\"Required property 'word' not present in Word JSON\")\n if '... | [
"0.74983615",
"0.7434172",
"0.7187856",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
"0.6970023",
... | 0.85882795 | 0 |
Return a `str` version of this Translation object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTzM(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def SnfU(YKHO):\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def rIkN(YKHO) -> str:\... | [
"0.77484834",
"0.7745441",
"0.771164",
"0.77106535",
"0.7605181",
"0.75957674",
"0.758434",
"0.75630176",
"0.75104046",
"0.75104046",
"0.7456116",
"0.74549663",
"0.7445862",
"0.74239403",
"0.7376184",
"0.7376184",
"0.73603535",
"0.73576844",
"0.73402107",
"0.73402107",
"0.734... | 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 | 62 |
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.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.0 | -1 |
Return a `str` version of this Voice object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n KCHu = YKHO.pitch + str(YKHO.octave)\n if YKHO.accidental is not None:\n KCHu += YK... | [
"0.7454457",
"0.74071175",
"0.74008834",
"0.7396677",
"0.7366628",
"0.7344344",
"0.73238975",
"0.73189086",
"0.7309408",
"0.7309408",
"0.7303978",
"0.73013294",
"0.72946966",
"0.72873205",
"0.72853905",
"0.7282107",
"0.72810805",
"0.7258895",
"0.7257906",
"0.72530586",
"0.725... | 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.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 64 |
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 VoiceModel object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n WhvP = pE1d.get_str(YKHO)\n return WhvP",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def wHJl(YKHO):\n KCHu = '\\nModel name: ... | [
"0.77635616",
"0.77366567",
"0.7701877",
"0.7697199",
"0.769243",
"0.7687792",
"0.76760334",
"0.76594037",
"0.76565725",
"0.7638756",
"0.76173556",
"0.75846297",
"0.7583777",
"0.7583777",
"0.752655",
"0.7526207",
"0.75239575",
"0.75212336",
"0.7515054",
"0.7491942",
"0.748095... | 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 | 66 |
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.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.0 | -1 |
Return a `str` version of this VoiceModels object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n KCHu = '\\nModel name: ' + str(YKHO.name) + '\\n'\n KCHu += ' n. of words: ' + str(len(YKHO.words)) + '\\n'\n KCHu += ' n. of word lengths: ' + str(len(YKHO.wordlengths)) + '\\n'\n KCHu += ' n. of sentence lengths: ' + str(len(YKHO.sentencelengths)) + '\\n'\n KCHu += ' ... | [
"0.7581481",
"0.75598913",
"0.7556005",
"0.7539437",
"0.7517534",
"0.7515049",
"0.75040954",
"0.7500107",
"0.74932593",
"0.74932593",
"0.74863416",
"0.7486206",
"0.7477088",
"0.74589944",
"0.7426245",
"0.74034405",
"0.7394299",
"0.7381978",
"0.73640496",
"0.73574746",
"0.7356... | 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.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.0 | -1 |
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 Voices object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n raise NotImplementedError",
"def gTzM(YKHO) -> str:\n raise NotImplementedError",
"def yLCI(YKHO) -> str:\n tPJg = YKHO.info.get_info_str()\n return f'Id: {YKHO.vehicle_id}. License plate: {YKHO.license_plate}. Info: {tPJg}.'",
"def zAg0(YKHO):\n return ' Name:' + YKHO... | [
"0.74588954",
"0.7382979",
"0.7380653",
"0.7367593",
"0.73660177",
"0.7354485",
"0.7353204",
"0.73454976",
"0.7330933",
"0.73299116",
"0.73299116",
"0.73258924",
"0.73258924",
"0.7297915",
"0.7297346",
"0.7292632",
"0.729136",
"0.729136",
"0.7283557",
"0.7258982",
"0.7258982"... | 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 | 71 |
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.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.0 | -1 |
Initialize a Word object from a json dictionary. | def CCiu(Emd4, tbx9):
qIxc = {}
if 'word' in tbx9:
qIxc['word'] = tbx9['word']
else:
raise ValueError("Required property 'word' not present in Word JSON")
if 'translation' in tbx9:
qIxc['translation'] = tbx9['translation']
else:
raise ValueError("Required property 'tr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCiu(Emd4, tbx9):\n qIxc = {}\n if 'words' in tbx9:\n qIxc['words'] = [KLCG._from_dict(WKvO) for WKvO in tbx9['words']]\n else:\n raise ValueError(\"Required property 'words' not present in Words JSON\")\n return Emd4(**qIxc)",
"def jG8h(Emd4, tbx9: Dict) -> 'WordSettings':\n qIx... | [
"0.82142675",
"0.7257716",
"0.69680625",
"0.69306755",
"0.6893356",
"0.67687666",
"0.6679097",
"0.66644794",
"0.65898174",
"0.6583915",
"0.6535463",
"0.65189147",
"0.6494325",
"0.6493843",
"0.6447276",
"0.6442183",
"0.6433836",
"0.6429262",
"0.6421928",
"0.6405894",
"0.637959... | 0.8349061 | 0 |
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.87371325",
"0.8501334",
"0.8474355",
"0.8459273",
"0.8452805",
"0.83500654",
"0.83371586",
"0.8321182",
"0.83089197",
"0.8307465",
"0.8284255",
"0.8284255",
"0.8277331",
"0.8277331",
"0.82759523",
"0.82759523",
"0.82757044",
"0.82738006",
"0.82664746",
"0.82664746",
"0.825... | 0.8170882 | 73 |
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 Words object. | def zAg0(YKHO):
return qQXR.dumps(YKHO._to_dict(), indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return f'WordFinder object with {len(YKHO.words)} words'",
"def zAg0(YKHO):\n PrQl = u''\n PrQl = zH25.join([QMSQ(yzQ0) for yzQ0 in YKHO.words]) + UZ_3\n return PrQl",
"def wHJl(YKHO) -> str:\n return f'Word({YKHO[0]!r}, {YKHO[1]!r})'",
"def wHJl(YKHO):\n if _BxY:\n ... | [
"0.80638963",
"0.80333215",
"0.78402805",
"0.76141757",
"0.7574851",
"0.7445474",
"0.7399895",
"0.73926467",
"0.73335415",
"0.7328455",
"0.732213",
"0.7188411",
"0.7162571",
"0.71601367",
"0.7153676",
"0.713",
"0.7111496",
"0.7094664",
"0.7092462",
"0.70264643",
"0.70072377",... | 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 | 72 |
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.86511236",
"0.8642601",
"0.85641104",
"0.85641104",
"0.85408515",
"0.8455601",
"0.84398836",
"0.84398836"
] | 0.0 | -1 |
Get the kind label for this log entry. This emulates the behavior Django would have for fields that have the ``choices`` kwarg. | def vEBK(YKHO):
return nkiM.get(YKHO.kind, YKHO.kind) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ(YKHO):\n return YKHO.raw.get('type')",
"def DeTJ(Emd4) -> str:\n return Emd4._meta.label_lower.split('.')[-1]",
"def xZZ2(YKHO):\n return YKHO.key_to_kind(YKHO.key)",
"def xZZ2(YKHO):\n return YKHO.key_to_kind(YKHO.key)",
"def xZZ2(YKHO):\n return YKHO.key_to_kind(YKHO.key())",
"d... | [
"0.6667717",
"0.65738225",
"0.6504841",
"0.6504841",
"0.6481282",
"0.6481282",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
"0.6480807",
... | 0.6938918 | 0 |
Convert a list of probabilities, into a cumulative distribution function | def UN9F(XP5J: list) -> list:
j93S = sum(XP5J)
if j93S < 0.999 or j93S > 1.001:
print(XP5J)
raise ValueError('You cannot give a list, p, that does not sum to 1.')
YzER = list()
YzER.append(XP5J[0])
for YRbF in range(1, len(XP5J)):
YzER.append(YzER[-1] + XP5J[YRbF])
YzER[l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PloU(YKHO, WErR):\n M3Yz = []\n zPgw = 0.0\n for KCHu, XP5J in WErR:\n zPgw += XP5J\n M3Yz += [(KCHu, zPgw)]\n return M3Yz",
"def EE2Q(XP5J: list) -> list:\n wjRY = sum(XP5J)\n XP5J = [ZfUD / wjRY for ZfUD in XP5J]\n return UN9F(XP5J)",
"def cW_V(VE0R):\n VE0R = gDU6(V... | [
"0.7332204",
"0.689006",
"0.66228646",
"0.6549713",
"0.63059443",
"0.6243606",
"0.6212919",
"0.6189723",
"0.6183121",
"0.6158275",
"0.6144269",
"0.61353403",
"0.612744",
"0.61271167",
"0.61270434",
"0.6106017",
"0.59372365",
"0.59281844",
"0.58613265",
"0.5840493",
"0.5820522... | 0.64644986 | 4 |
Normalize a list of probabilities and create the cdf for them | def EE2Q(XP5J: list) -> list:
wjRY = sum(XP5J)
XP5J = [ZfUD / wjRY for ZfUD in XP5J]
return UN9F(XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(WErR):\n for a70H in WErR:\n for Rr8h in WErR[a70H]:\n jQVb = 0\n for Ghho in WErR[a70H][Rr8h]:\n jQVb = jQVb + WErR[a70H][Rr8h][Ghho]\n for Ghho in WErR[a70H][Rr8h]:\n WErR[a70H][Rr8h][Ghho] = float(WErR[a70H][Rr8h][Ghho]) / jQVb",
... | [
"0.71330786",
"0.6916135",
"0.6803197",
"0.6803008",
"0.6794786",
"0.6723308",
"0.6723065",
"0.6664992",
"0.66045135",
"0.6530589",
"0.63760066",
"0.634917",
"0.6206689",
"0.6202129",
"0.61920786",
"0.61620575",
"0.6153867",
"0.61223286",
"0.60693765",
"0.6053171",
"0.6022206... | 0.73057145 | 0 |
Convert a dictionary of values into an array. Dictionaries do not have all values, so fill with 0s | def hYkL(sGJ5, cmPJ: dict, A07C: list=None) -> oyIN.array:
if A07C:
VosJ = oyIN.zeros(len(A07C))
for YRbF, ShR8 in enumerate(A07C):
if ShR8 in cmPJ:
VosJ[YRbF] = cmPJ[ShR8]
else:
VosJ = oyIN.zeros(len(sGJ5.unique_ids))
for G1Hx, Ty9i in cmPJ.items():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jMH_(T6S7):\n return oyIN.array(list(T6S7.values()))",
"def qUht(Csk6: Dict[str, List[float]]) -> cuzp[str, oyIN.ndarray]:\n return {G1Hx: oyIN.array(Ty9i) for G1Hx, Ty9i in Csk6.items()}",
"def zfgT(Csk6):\n assert len(Csk6), 'Dictionary passed to dict_to_ndarray() must not be empty.'\n noZV =... | [
"0.7693327",
"0.72528046",
"0.7072163",
"0.6825627",
"0.68119496",
"0.6794815",
"0.6789803",
"0.66502905",
"0.662339",
"0.65964866",
"0.6560834",
"0.6390515",
"0.6359463",
"0.63192594",
"0.6289178",
"0.6284048",
"0.6204451",
"0.61743873",
"0.61741644",
"0.61675346",
"0.615035... | 0.65107113 | 11 |
Convert an array of integers to their category | def yceT(JbSN, VosJ: np.array) -> list:
return [JbSN.convert_int(ZfUD, 'category') for ZfUD in VosJ] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O4ib(nPrm):\n ACia = oyIN.zeros((nPrm.shape[0], 4))\n for YRbF in range(len(ACia)):\n ACia[YRbF][int(nPrm[YRbF])] = 1\n return ACia",
"def GPaG(YKHO, LVAh):\n mL9q = LVAh.shape\n LVAh = rLdf.cut(LVAh.reshape(-1), YKHO.cat_bins, labels=False, include_lowest=True).reshape(mL9q)\n retur... | [
"0.70763415",
"0.6816005",
"0.6711698",
"0.65390235",
"0.65311027",
"0.65247077",
"0.6489144",
"0.6339579",
"0.62835974",
"0.6248539",
"0.62276113",
"0.619921",
"0.6186653",
"0.612265",
"0.6121244",
"0.61090046",
"0.6053268",
"0.6042019",
"0.60124016",
"0.60124016",
"0.600363... | 0.8265242 | 0 |
Get a list of deployment objects. Returns a list of deployment objects in the given namespace. The results can be filtered by providing a full or partial deployment name. | def OILH(YKHO, _63S=None, yFa8=None):
y6oW = YKHO._get_wrapper('Deployment', namespace=_63S, name_filter_string=yFa8)
return y6oW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JXUO(_63S):\n print('Retrieving all deployments for the namespace {}'.format(_63S))\n try:\n tITC = eJb6.load(zt4Y('get', 'deployments', '--namespace', _63S, '--output', 'yaml').stdout)['items']\n return tITC\n except Exception:\n print('Error happened while retrieving deployments... | [
"0.6776516",
"0.66058725",
"0.6530562",
"0.6467785",
"0.6408177",
"0.6254181",
"0.6218686",
"0.60164845",
"0.5980616",
"0.59098715",
"0.59070784",
"0.57976437",
"0.5748774",
"0.5730838",
"0.5691858",
"0.56833696",
"0.5671163",
"0.5592575",
"0.55817926",
"0.5568732",
"0.555046... | 0.73383015 | 0 |
Get a list of running pods. Returns a list of running pods in the given namespace. If a filter name is provided only the pods that contain that string will be returned. If you ask for a filtered list then you will get a list of dict objects; otherwise you get a `kubernetes.client.models.v1_pod_list.V1PodList` object. | def PPOw(YKHO, _63S=None, cAx9=None):
if not _63S:
_63S = YKHO.namespace
uvbf = YKHO.corev1api.list_namespaced_pod(_63S)
if cAx9:
cDVj = uvbf.to_dict()['items']
USsa = list()
for g2Vd in cDVj:
if cAx9 in g2Vd['metadata']['name']:
USsa.append(g2Vd)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k0XH(YKHO, _63S):\n U5bT = YKHO.v1.list_namespaced_pod(_63S, watch=False)\n return [ZfUD.metadata.name for ZfUD in U5bT.items]",
"def v0os(YKHO, _63S, **B2fa):\n if _63S is None:\n raise ValueError('Missing the required parameter `namespace` when calling `list_namespaced_pod`')\n HhGF = ['... | [
"0.6735522",
"0.6328219",
"0.63068634",
"0.6295527",
"0.6243958",
"0.6125784",
"0.60829103",
"0.59435976",
"0.5918649",
"0.5871038",
"0.587062",
"0.58620363",
"0.58414775",
"0.5814176",
"0.57986933",
"0.5749624",
"0.57147956",
"0.56968266",
"0.56965095",
"0.56739295",
"0.5647... | 0.78900945 | 0 |
Get a list of services. Returns a list of the services in the given namespace. The results can be filtered by providing a full or partial service name. | def ttkl(YKHO, _63S=None, bSEa=None):
return YKHO._get_wrapper('Service', namespace=_63S, name_filter_string=bSEa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gftv(YKHO, _63S):\n U5bT = YKHO.v1.list_namespaced_service(_63S, watch=False)\n return [ZfUD.metadata.name for ZfUD in U5bT.items]",
"def udCm(YKHO, _63S, **B2fa):\n if _63S is None:\n raise ValueError('Missing the required parameter `namespace` when calling `list_namespaced_service`')\n H... | [
"0.83207357",
"0.69100064",
"0.6692643",
"0.66675186",
"0.6628435",
"0.6606582",
"0.6550874",
"0.6550657",
"0.65333563",
"0.65085214",
"0.6483773",
"0.64453065",
"0.64394283",
"0.64335644",
"0.64284736",
"0.6419069",
"0.63507104",
"0.63227665",
"0.63178194",
"0.6316629",
"0.6... | 0.8027768 | 1 |
Gets the product id. | def Mc9N(YKHO):
return YKHO._product_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mc9N(YKHO):\n return YKHO.get_product_id()",
"def Mc9N(YKHO) -> int:\n return getattr(YKHO, '_product_id', None)",
"def Trci(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'product_id')",
"def Trci():\n return vWtU",
"def Mc9N(YKHO) -> i... | [
"0.90928435",
"0.8947938",
"0.8926689",
"0.8812633",
"0.8745913",
"0.87023944",
"0.86301464",
"0.84657955",
"0.84657955",
"0.8439885",
"0.8435894",
"0.842383",
"0.8362408",
"0.82851994",
"0.81628805",
"0.7860925",
"0.77765584",
"0.7774604",
"0.773432",
"0.77182466",
"0.771648... | 0.86918604 | 6 |
Gets the item name. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zDRZ(YKHO):\n return YKHO._item_name",
"def zDRZ(YKHO):\n return YKHO._item_name",
"def mWFP(YKHO):\n return YKHO._item.name",
"def mWFP(YKHO):\n return YKHO._name if YKHO._name is not None else YKHO._item.name",
"def FBQU(YKHO):\n return YKHO.itemName",
"def dvRm(ht7m, DpZH='v1.2'):\n... | [
"0.9080716",
"0.9080716",
"0.8892619",
"0.8886543",
"0.8750807",
"0.8388878",
"0.829227",
"0.7847992",
"0.77715987",
"0.77415985",
"0.77415985",
"0.77415985",
"0.77213925",
"0.7699801",
"0.76480097",
"0.7639725",
"0.76383704",
"0.76137805",
"0.76110667",
"0.7602855",
"0.76028... | 0.0 | -1 |
Print something on stderr and flush | def na1r(*qIxc):
for tO9_ in qIxc:
HwRy.stderr.write(str(tO9_))
HwRy.stderr.write(' ')
HwRy.stderr.flush() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sZGp(tO9_):\n HwRy.stderr.write(tO9_)\n HwRy.stderr.flush()",
"def dLLz(YKHO):\n HwRy.stdout.flush()\n HwRy.stderr.flush()",
"def dLLz(YKHO):\n HwRy.stdout.flush()\n HwRy.stderr.flush()",
"def RFOL(YKHO):\n YKHO.level(HwRy.stderr)",
"def TIp2():\n HwRy.stdout.flush()\n HwRy.s... | [
"0.77555704",
"0.7674985",
"0.7674985",
"0.75765145",
"0.7487442",
"0.72978204",
"0.7225697",
"0.7220341",
"0.7145594",
"0.7128027",
"0.7122344",
"0.70780337",
"0.7067612",
"0.7026965",
"0.70203215",
"0.701919",
"0.70059085",
"0.6992653",
"0.69809294",
"0.6980848",
"0.6973204... | 0.64281577 | 59 |
Identifies red lights in the incoming camera image and publishes the index of the waypoint closest to the red light's stop line to /traffic_waypoint | def u69M(YKHO, tO9_):
YKHO.has_image = True
YKHO.camera_image = tO9_
zhpB, QTBn = YKHO.process_traffic_lights()
'\n Publish upcoming red lights at camera frequency.\n Each predicted state has to occur `STATE_COUNT_THRESHOLD` number\n of times till we start using it. Otherwise the pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X83s(YKHO):\n agxD = None\n v8uu = GPtr.light_positions\n if YKHO.pose is not None and YKHO.waypoints is not None:\n zhpB = YKHO.get_closest_waypoint(YKHO.pose.pose)\n pImw = -1\n VXjJ = YKHO.bridge.imgmsg_to_cv2(YKHO.camera_image, 'passthrough')\n ZHfW = YKHO.red_select(VXjJ)\n WfT... | [
"0.782805",
"0.7262128",
"0.69890815",
"0.6981706",
"0.6980065",
"0.6900591",
"0.6825096",
"0.6824151",
"0.6809363",
"0.6778344",
"0.67634004",
"0.6716712",
"0.66468376",
"0.6646052",
"0.6621187",
"0.66198653",
"0.65953094",
"0.6569965",
"0.65675944",
"0.64806",
"0.6441052",
... | 0.55639297 | 52 |
downsample a dataframe of shape (n_cells, n_features) to total n_cells using cluster membership. finds proportion of cells in each cluster (DR.clu.membership attribute) and maintains each percentage. return RNA_counts object with reduced data. counts_obj = RNA_counts object to use as template for new, subsetted RNA_cou... | def Qpti(Emd4, WY6b, abJR, sB1G='counts', yokr=None):
oyIN.random.seed(yokr)
EYTZ, HPX_ = oyIN.unique(WY6b.clu[sB1G].membership, return_counts=True)
NmyP = oyIN.array([])
for yHil, UHFx in zip(EYTZ, HPX_):
OE7F = int(UHFx / HPX_.sum() * abJR) + 1
NmyP = oyIN.append(NmyP, oyIN.random.choi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tSJP(Emd4, WY6b, abJR, sB1G='counts', yokr=None):\n oyIN.random.seed(yokr)\n NmyP = oyIN.random.choice(WY6b.data[sB1G].shape[0], abJR, replace=False)\n if WY6b.barcodes is not None:\n cwhV = rLdf.DataFrame(WY6b.barcodes)\n cwhV['Cell Barcode'] = cwhV.index\n else:\n cwhV = None... | [
"0.70877635",
"0.64182025",
"0.57406515",
"0.52926505",
"0.52439153",
"0.52166516",
"0.5202638",
"0.516914",
"0.50854295",
"0.50840765",
"0.5044305",
"0.5002204",
"0.49144742",
"0.48990592",
"0.48969898",
"0.48902324",
"0.48823377",
"0.486367",
"0.48447132",
"0.48408914",
"0.... | 0.7788565 | 0 |
Initialize with error message | def FIMM(YKHO, BWXx):
YKHO.value = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, rhwM=None):\n super().__init__(rhwM)",
"def FIMM(YKHO, rhwM=None):\n super().__init__(rhwM)",
"def FIMM(YKHO, rhwM=None):\n super().__init__(rhwM)",
"def FIMM(YKHO, APFA, rhwM=None):\n YKHO.error_code = APFA\n if rhwM:\n YKHO.error_message = rhwM\n else:\n YKHO.... | [
"0.81395096",
"0.81395096",
"0.81395096",
"0.797013",
"0.7966477",
"0.78893256",
"0.7863548",
"0.78233576",
"0.7787604",
"0.7673795",
"0.7666221",
"0.7662523",
"0.763146",
"0.76070476",
"0.76002383",
"0.7517677",
"0.75110507",
"0.7393183",
"0.73713017",
"0.7369233",
"0.731905... | 0.0 | -1 |
Get the unit conversion from kT to kJ/mol Returns | def _5gs(YKHO):
ycBG = 298.15
aM8h = ZFIl / 1000.0 * ycBG * k8Sc
return aM8h | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7Cd(o3wf):\n return o3wf * 1.0550559",
"def iz9l():\n EntB = 10000\n return EntB",
"def iPRD(zWpg):\n return zWpg * 3.6",
"def _Kup(YKHO, BWXx, PXGI):\n if 'K' in PXGI:\n return (BWXx - 273.15, 'C')\n return (None, None)",
"def LU18():\n return '1.0E-6{kind}*{var}'",
"def... | [
"0.7095029",
"0.70948094",
"0.6838571",
"0.680721",
"0.67876405",
"0.6730465",
"0.67026424",
"0.66757363",
"0.6654818",
"0.6629278",
"0.6624683",
"0.65096617",
"0.64946103",
"0.6490734",
"0.64789313",
"0.6453894",
"0.6453894",
"0.64477146",
"0.6443123",
"0.6440853",
"0.641289... | 0.6748325 | 5 |
Initialize the validation exception. Exception.message is assigned a concatenation of all the validation errors passed to the constructor | def FIMM(YKHO, UAju):
Exception.__init__(YKHO, ''.join(str(UAju))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, gRIU: List[Tuple[str, str, str]]):\n UOGH = f'{len(gRIU)} validation error{('s' if len(gRIU) > 1 else '')} detected: '\n YPtW = []\n for WLRG, tDK8, oVM8 in gRIU:\n YPtW.append(f\"Value '{tDK8}' at '{WLRG}' failed to satisfy constraint: Member must {oVM8}\")\n super().__init__('Va... | [
"0.7498124",
"0.740061",
"0.73080325",
"0.7061074",
"0.6989583",
"0.6987668",
"0.68688685",
"0.68688685",
"0.68688685",
"0.6862349",
"0.68551207",
"0.6787162",
"0.676921",
"0.6748494",
"0.670891",
"0.67085695",
"0.6690852",
"0.667651",
"0.66698694",
"0.66577274",
"0.6630965",... | 0.73675567 | 2 |
Multiply a vector by an scalar. | def FsyA(iArr, hAEw):
return [Ty9i * hAEw for Ty9i in iArr] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i6vy(Z9rn: float, Ty9i: Vector) -> lNLu:\n return [Z9rn * nFf2 for nFf2 in Ty9i]",
"def E_tF(YKHO, hAEw: Number) -> lNLu:\n return lNLu(YKHO._x * hAEw, YKHO._y * hAEw)",
"def okxh(iArr: Vector3, hAEw: float) -> SZ2k:\n return SZ2k(x=iArr.x * hAEw, y=iArr.y * hAEw, z=iArr.z * hAEw)",
"def E_tF(YK... | [
"0.8025881",
"0.80237764",
"0.79848576",
"0.7937113",
"0.7896722",
"0.78893816",
"0.78794634",
"0.7843857",
"0.7808488",
"0.7768284",
"0.77298766",
"0.77169216",
"0.7615785",
"0.75468886",
"0.7505002",
"0.74525964",
"0.7412677",
"0.73766625",
"0.73336494",
"0.7327336",
"0.730... | 0.75173676 | 14 |
Coefficient of Variation in rise rate. | def OzKa(dy_H: Series, NkkI: bool=False) -> float:
if NkkI:
dy_H = jnV4(dy_H)
by6d = dy_H.diff()
Pwf9 = by6d[by6d > 0]
return Pwf9.std() / Pwf9.mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mVUw(YKHO):\n return wj6P((YKHO + YKHO.T) / 2)",
"def X74i(YKHO):\n B9Au = 0\n GUUu = YKHO.average_fit\n return (1 + (2 * GUUu[0] * B9Au + GUUu[1]) ** 2) ** 1.5 / oyIN.absolute(2 * GUUu[0])",
"def yV82(dy_H: Series, NkkI: bool=False) -> float:\n if NkkI:\n dy_H = jnV4(dy_H)\n by6d ... | [
"0.6641169",
"0.6502001",
"0.6434245",
"0.6345739",
"0.6340944",
"0.6332886",
"0.6289577",
"0.623962",
"0.62136436",
"0.61800677",
"0.6152386",
"0.61506",
"0.6135183",
"0.6110156",
"0.6106813",
"0.6091312",
"0.6075876",
"0.6075783",
"0.6069208",
"0.60655165",
"0.6062197",
"... | 0.6429473 | 3 |
Average annual number of rises and falls in daily head. | def a72Q(dy_H: Series) -> float:
vqLr = (dy_H.diff() > 0).astype(int).diff().replace(-1, 1)
return vqLr.resample('A').sum().mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aDRv(YKHO) -> float:\n kRhD = YKHO.inflate(amount=1, formatted=False)\n K1nB = (kRhD - 1) * 100\n pQ4c = abs(YKHO.end_year - YKHO.start_year)\n S8vG = K1nB / (pQ4c + 1) if YKHO._inclusive else K1nB / pQ4c\n return round(S8vG, 2)",
"def Q3N4():\n return 2",
"def Sq91(YKHO):\n if len(YKH... | [
"0.703279",
"0.66567546",
"0.65649396",
"0.649879",
"0.649067",
"0.649067",
"0.6450995",
"0.6406879",
"0.6276631",
"0.62635106",
"0.62338734",
"0.62303466",
"0.6221232",
"0.6185393",
"0.6178986",
"0.6175437",
"0.61720574",
"0.61687297",
"0.6131915",
"0.6123194",
"0.6108941",
... | 0.5710725 | 71 |
Coefficient of Variation in annual number of rises and falls. | def dtLb(dy_H: Series) -> float:
vqLr = (dy_H.diff() > 0).astype(int).diff().replace(-1, 1).resample('A').sum()
return vqLr.std() / vqLr.mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CgAc(WLPn):\n OoDJ = WLPn.tolist()\n swFR = [oyIN.abs(OoDJ[YRbF + 1] - OoDJ[YRbF]) / OoDJ[YRbF] for YRbF in range(len(OoDJ) - 1)]\n print(oyIN.std(swFR))\n print(oyIN.mean(swFR))\n return oyIN.std(swFR) / oyIN.mean(swFR)",
"def PK0u(YKHO):\n return YKHO.sigma_f ** 2",
"def jBcH(__n6, CHNM... | [
"0.654172",
"0.6365075",
"0.63502616",
"0.6303379",
"0.62834865",
"0.6235559",
"0.62339413",
"0.6221318",
"0.6220296",
"0.61797804",
"0.61517984",
"0.61388844",
"0.61388844",
"0.6137354",
"0.61323047",
"0.6127233",
"0.610977",
"0.609257",
"0.6080927",
"0.6075448",
"0.6065583"... | 0.0 | -1 |
Looks up all currently loaded kernels and returns a list | def XzEX():
KYtE = oPf3.ktotal('all')
q5m6 = []
[q5m6.append(oPf3.kdata(or8S, 'all', 80, 4, 80)) for or8S in range(KYtE)]
return q5m6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oGBw(YKHO):\n return [Mkmy.kernel for Mkmy in YKHO.kernels.select()]",
"def u_Zh(YKHO):\n return list(YKHO.kernelDict.keys())",
"def LpYq():\n return {'status': 'OK', 'message': 'Loading kernels…', 'calculationId': '824e983c-f75f-4f49-89bd-b487a77da65c', 'result': {'phase': 'LOADING_KERNELS', 'pro... | [
"0.76706415",
"0.76322013",
"0.68860495",
"0.6753613",
"0.67338467",
"0.67237324",
"0.66587865",
"0.66260105",
"0.65968853",
"0.65764165",
"0.6528918",
"0.6191587",
"0.6181683",
"0.6175469",
"0.6006471",
"0.59406286",
"0.59298813",
"0.5843318",
"0.5787711",
"0.5769429",
"0.57... | 0.72538334 | 2 |
Build a grid of EntityId that represents the current board state. | def hgS8(YKHO):
YKHO.board = [[Jyk4.EMPTY for bGrB in range(YKHO.width)] for bGrB in range(YKHO.height)]
for VmPb in YKHO.food:
YKHO._set_entity_at_cell(VmPb, Jyk4.FOOD)
for bGrB, EX77 in YKHO.snakes.items():
for VmPb in EX77.body:
YKHO._set_entity_at_cell(VmPb, Jyk4.BODY)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DtfB(YKHO):\n YKHO.idToPos = {}\n YKHO.posToId = {}\n P5aS = YKHO.maze.getStartPos()\n aw7B = YKHO.maze.getGoalPos()\n uBFe = YKHO.maze.getNumRows()\n HpHR = YKHO.maze.getNumCols()\n TcEB = max(uBFe, HpHR)\n if TcEB * 50 < YKHO.canvasSize:\n YKHO.cellSize = 50\n else:\n ... | [
"0.65236247",
"0.64786756",
"0.6350909",
"0.6263739",
"0.6191298",
"0.61330163",
"0.6019112",
"0.59752077",
"0.59255445",
"0.5922719",
"0.59122866",
"0.58945996",
"0.58823735",
"0.5872714",
"0.58711743",
"0.58533716",
"0.5845635",
"0.5839031",
"0.5818173",
"0.58045477",
"0.57... | 0.7688383 | 0 |
Return True if Cell is within bounds of the game grid. | def uT5F(YKHO, VmPb):
return YKHO.pos_within_bounds(VmPb.x, VmPb.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufiu(YKHO, rdlD, fvDH):\n if 0 <= rdlD < YKHO.rows and 0 <= fvDH < YKHO.cols:\n return True\n else:\n return False",
"def lIyO(YKHO, VmPb):\n Mkmy, Z9rn = VmPb\n return Mkmy < YKHO.rows + YKHO.offset and Mkmy >= -YKHO.offset and (Z9rn < YKHO.cols + YKHO.offset) and (Z9rn >= -YKHO.of... | [
"0.8174058",
"0.81257594",
"0.80469406",
"0.78766423",
"0.78766423",
"0.7852915",
"0.77998453",
"0.77359784",
"0.75038695",
"0.74981326",
"0.74635476",
"0.7448688",
"0.7448688",
"0.7448688",
"0.7421401",
"0.73961747",
"0.73961747",
"0.7389536",
"0.733324",
"0.7331788",
"0.724... | 0.78793937 | 3 |
>>> vrepr(([3, 4], [3, 2])) ['3.4', '3.2'] >>> vrepr(('2.6', '3.1')) ['2.6', '3.1'] >>> vrepr('3.2') '3.2' >>> vrepr((3, 2)) '3.2' | def cGoW(BWXx):
if isinstance(BWXx, str):
return BWXx
elif not isinstance(BWXx, (YJiN, set)) and isinstance(BWXx[0], int):
return '.'.join((str(YRbF) for YRbF in BWXx))
Aofo = []
for DpZH in BWXx:
if isinstance(DpZH, str):
Aofo.append(DpZH)
else:
A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BgrP(XdhG):\n return '.'.join((str(WKvO) for WKvO in XdhG))",
"def BgrP(XdhG):\n return '.'.join((str(WKvO) for WKvO in XdhG))",
"def wHJl(YKHO):\n return '(%s, %s)' % (repr(YKHO[0]), repr(YKHO[1]))",
"def Pp3y(DumB, KI0p=False, EoLs=True):\n KCQU = tuple(DumB)\n if KI0p:\n yvT9 = '... | [
"0.65392977",
"0.6462379",
"0.5927314",
"0.58565384",
"0.56616294",
"0.5632478",
"0.56181014",
"0.5591991",
"0.5588925",
"0.5578823",
"0.5535768",
"0.5509453",
"0.5496655",
"0.54540485",
"0.5452957",
"0.54501617",
"0.5436956",
"0.54335654",
"0.5407998",
"0.53918475",
"0.53768... | 0.6709459 | 0 |
Turn a positive integer into a string. | def aioF(wEf2, zlZB):
assert wEf2 >= 0
yvT9 = ''
while wEf2 > 0:
wEf2, Ko6S = divmod(wEf2, len(zlZB))
yvT9 += zlZB[Ko6S]
return yvT9[::-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HaUO(mLGw):\n Aofo = ''\n E5BI = []\n if mLGw < 0:\n Aofo += '-'\n mLGw *= -1\n while mLGw > 0:\n K0A_ = mLGw % 10\n E5BI.append(chr(ord('0') + K0A_))\n mLGw //= 10\n while len(E5BI) > 0:\n Aofo += E5BI.pop()\n return Aofo",
"def O3te(kAne):\n dS... | [
"0.80963236",
"0.80293566",
"0.7934836",
"0.789855",
"0.78644115",
"0.773658",
"0.7673967",
"0.76382744",
"0.76245105",
"0.75110173",
"0.74944836",
"0.74447304",
"0.73324186",
"0.71592754",
"0.7079453",
"0.70335364",
"0.70335364",
"0.6977382",
"0.6968792",
"0.68915206",
"0.68... | 0.6690263 | 24 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
if 'Start Time' in jQ3Z.columns:
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month_name()
print('Most common month is {}'.forma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
if 'Start Station' in jQ3Z.columns:
print('The Most Commonly Used Start Station is {}'.format(jQ3Z['Start Station'].mode().loc[0]))
if 'End Station' in jQ3Z.columns:
print('The Most Commonly... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.71746796 | 84 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
if 'Trip Duration' in jQ3Z.columns:
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
print('Total travel time is {}'.format(jQ3Z['Trip Duration'].sum()))
print('Avg travel time is {}'.format(jQ3Z['Trip Duration'].mean()))
print('\nThis took %s seco... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.78276986 | 77 |
Given response has status_code 200 | def FdGr(YKHO, geh0=None, tO9_=None):
YKHO._assert_response_code(200, geh0, tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j1x8(_hkX):\n return _hkX.status_code == 200",
"def GfdN(geh0):\n if geh0.code != 200:\n raise Exception('Call to \"{}\" yielded error code \"{}\"'.format(bD7m, geh0.code))\n return geh0",
"def yQRe(_hkX):\n return _hkX.status_code == 200",
"def TTz0(_hkX) -> bool:\n if _hkX.status_... | [
"0.80976444",
"0.7922652",
"0.7906161",
"0.7837507",
"0.7791301",
"0.7768294",
"0.7680528",
"0.7637839",
"0.75441027",
"0.75441027",
"0.7496719",
"0.7496719",
"0.74870205",
"0.74587613",
"0.7448917",
"0.74413025",
"0.74328834",
"0.74328834",
"0.7406393",
"0.7375217",
"0.73448... | 0.72194594 | 27 |
Given response has status_code 400 | def bC4h(YKHO, geh0=None, tO9_=None):
YKHO._assert_response_code(400, geh0, tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y1ZN(tTpl):\n return geh0('failed', 'Bad Request', 400)",
"def yA8I(YKHO):\n _hkX = pz3A()\n _hkX.content_type = 'application/json'\n _hkX.status_code = 400\n return _hkX",
"def M7ri(YKHO, geh0):\n YKHO.assertStatus(geh0, 400)",
"def M7ri(YKHO, geh0):\n YKHO.assertStatus(geh0, 400)",... | [
"0.8397037",
"0.80202687",
"0.79237556",
"0.79237556",
"0.7745967",
"0.76917714",
"0.76867473",
"0.76726997",
"0.7479347",
"0.74756515",
"0.74449885",
"0.739392",
"0.73862743",
"0.7334063",
"0.7295307",
"0.72904253",
"0.72577655",
"0.7233295",
"0.7217123",
"0.7217123",
"0.721... | 0.7507244 | 8 |
Given response has status_code 401 | def KgRE(YKHO, geh0=None, tO9_=None):
YKHO._assert_response_code(401, geh0, tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bc40(YKHO, Mkmy, **B2fa):\n ...",
"def FSPR():\n return p5oO()",
"def iNWZ(Wehb):\n return Yxsy(pz3A({'error': 'Unauthorised'}), 401)",
"def DHwi():\n return oGir('What the hell. .\\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"... | [
"0.79622537",
"0.79402965",
"0.7733623",
"0.7634323",
"0.7616583",
"0.75918466",
"0.7574372",
"0.7574372",
"0.75700593",
"0.7561352",
"0.75600487",
"0.7550982",
"0.7550982",
"0.7531647",
"0.75170964",
"0.7500472",
"0.74696374",
"0.7446554",
"0.7426917",
"0.7369972",
"0.730403... | 0.7330825 | 20 |
Given response has status_code 405 | def uusE(YKHO, geh0=None, tO9_=None):
YKHO._assert_response_code(405, geh0, tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PLnz(tTpl):\n return geh0(QePW, status=405)",
"def L8AH(YKHO, geh0):\n YKHO.assertStatus(geh0, 405)",
"def L8AH(YKHO, geh0):\n YKHO.assertStatus(geh0, 405)",
"def m8z6(YKHO):\n YKHO.error(405)",
"def fo0Y(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 405)",
"def fo0Y(YKHO, _... | [
"0.782206",
"0.7807647",
"0.7807647",
"0.7709789",
"0.77031493",
"0.76393527",
"0.7471116",
"0.73736924",
"0.73676723",
"0.7205527",
"0.71958184",
"0.71476144",
"0.71476144",
"0.71476144",
"0.7147585",
"0.71417826",
"0.70287395",
"0.69598264",
"0.6911963",
"0.6895829",
"0.689... | 0.75709677 | 6 |
Test that we can GET a page and it returns a 200 | def GjxN(YKHO, bD7m, *qIxc, **B2fa):
geh0 = YKHO.get(bD7m, *qIxc, **B2fa)
YKHO.response_200(geh0)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykgQ(YKHO):\n geh0 = YKHO.client.get(YKHO.path)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.try_page(geh0)",
"def k685(vja_):\n im04 = x0hE.get(vja_.url)\n assert im04.status_code == 200",
"def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.response.status_code)",
"def ykgQ(YKHO):\n Y... | [
"0.81842786",
"0.8138149",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80859894",
"0.80294335",
"0.8016736",
"0.800025",
"0.800025",
"0.7967081",
"0.7946615",
"0.7946615",
"0.79... | 0.7502496 | 54 |
Build a user with and password of 'password' for testing purposes. | def vbsz(Emd4, NtEF='testuser', jTXt='password', awnO=None):
if Emd4.user_factory:
mv1M = Emd4.user_factory._meta.model
k6sM = Emd4.user_factory
else:
mv1M = egNl()
k6sM = mv1M.objects.create_user
DonY = getattr(mv1M, 'USERNAME_FIELD', 'username')
gFsc = {DonY: NtEF}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MITz(YKHO):\n CBIr = {'username': YKHO.username, 'password': YKHO.password}\n return CBIr",
"def r2rw(NtEF=None, jTXt=None):\n nonlocal user\n CBIr = FYrf.User(username=NtEF or 'mock-user', password=XN37.encrypt_password(jTXt or 'mock-user')).save()\n return CBIr",
"def Cc7Y(Emd4, mWFP: str,... | [
"0.7444065",
"0.7403153",
"0.73969376",
"0.7236426",
"0.7160444",
"0.71422404",
"0.70636165",
"0.6967497",
"0.6966961",
"0.6922978",
"0.69191766",
"0.6896762",
"0.68781006",
"0.68781006",
"0.68729615",
"0.68669647",
"0.68416977",
"0.6838031",
"0.6824498",
"0.682118",
"0.68030... | 0.0 | -1 |
Calls view_cls.get() method after instantiating view class. Renders view templates and sets context if appropriate. | def NMoC(YKHO, Xysk, *qIxc, **B2fa):
nPrm = B2fa.pop('data', None)
KAOR = YKHO.get_instance(Xysk, *qIxc, **B2fa)
if not KAOR.request:
KAOR.request = b9AL().get('/', nPrm)
YKHO.last_response = YKHO.get_response(KAOR.request, KAOR.get)
YKHO.context = YKHO.last_response.context
return YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n if YKHO.__class__.view:\n YKHO.view.handler = YKHO\n YKHO.view.request = YKHO.request\n return\n with qVy8.imports():\n from views.index import View\n YKHO.__class__.view = View(company=L0CQ, request=YKHO.request, handler=YKHO)",
"def nrOS(YKHO, QePW):\n ... | [
"0.6808761",
"0.64422077",
"0.6339122",
"0.63180625",
"0.625297",
"0.6200587",
"0.6171895",
"0.6123024",
"0.61154515",
"0.611328",
"0.61027",
"0.6097409",
"0.60506284",
"0.5982493",
"0.59736526",
"0.59583294",
"0.5919127",
"0.590484",
"0.59029543",
"0.5899227",
"0.5883181",
... | 0.60271966 | 13 |
Test that we can GET a page and it returns a 200 | def GjxN(YKHO, bD7m, *qIxc, **B2fa):
geh0 = super(Xe_x, YKHO).get(bD7m, *qIxc, **B2fa)
YKHO.response_200(geh0)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykgQ(YKHO):\n geh0 = YKHO.client.get(YKHO.path)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.try_page(geh0)",
"def k685(vja_):\n im04 = x0hE.get(vja_.url)\n assert im04.status_code == 200",
"def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.response.status_code)",
"def ykgQ(YKHO):\n Y... | [
"0.81842786",
"0.8138149",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80911326",
"0.80859894",
"0.80294335",
"0.8016736",
"0.800025",
"0.800025",
"0.7967081",
"0.7946615",
"0.7946615",
"0.79... | 0.7617336 | 37 |
Get parameters related to this simulation run | def uj9C(Pgw_=1):
q7In = None
PcsU = None
j5P3 = None
VAx8 = None
if Pgw_ == 1:
q7In = 2
PcsU = 6
j5P3 = 3
VAx8 = 'central'
elif Pgw_ == 2:
q7In = 3
PcsU = 6
j5P3 = 3
VAx8 = 'central'
elif Pgw_ == 3:
q7In = 3
Pcs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W6RH(YKHO):\n mUx0 = YKHO.get_fullstep_per_rev()\n Y2Qz = YKHO.get_step_mode()\n tjFB = YKHO.get_oc_threshold()\n k3Qg = YKHO.get_jog_mode_params()\n fP5V = YKHO.get_max_mode_params()\n KP3i = YKHO.get_kval_params()\n NArs = {'fullstep_per_rev': mUx0, 'step_mode': Y2Qz, 'oc_threshold': tjF... | [
"0.751879",
"0.7515955",
"0.7479954",
"0.7476864",
"0.7414902",
"0.7292109",
"0.7286631",
"0.7283093",
"0.7226479",
"0.7203312",
"0.72006303",
"0.72006303",
"0.7197796",
"0.71776783",
"0.71701086",
"0.71650696",
"0.716182",
"0.716182",
"0.716182",
"0.716182",
"0.716182",
"0... | 0.0 | -1 |
Calculate the positive side power spectrum of a fourier signal. References .. [1] P. Welch, "The use of the fast Fourier transform for the | def CjVr(Emd4, fIWP: np.ndarray, KnxT: str='hamming', X6rE: str='spectrum', rvTs: bool=False) -> a1PO.Union[oyIN.ndarray, a1PO.Tuple[oyIN.ndarray, oyIN.ndarray]]:
J1c0, hnFq = Zxt2.signal.periodogram(fIWP, detrend=None, window=KnxT, scaling=X6rE, return_onesided=True)
hnFq = oyIN.asfarray(hnFq)
if rvTs:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e4fp(YKHO, naF9=True, DkWr=False):\n yvT9 = oyIN.fft.fft(YKHO.data)\n lGE9 = 0\n if naF9:\n yvT9 = oyIN.square(oyIN.abs(yvT9))\n if DkWr:\n yvT9 = oyIN.fft.fftshift(yvT9)\n lGE9 = -0.5 / float(YKHO.dt)\n return l2i4(yvT9, 1 / float(len(YKHO) * YKHO.dt), t0=lGE9)",
"def cbt... | [
"0.7657029",
"0.74675363",
"0.7282133",
"0.7239587",
"0.7170401",
"0.7153074",
"0.70219237",
"0.6950405",
"0.69227004",
"0.6858251",
"0.68274635",
"0.68270797",
"0.67710835",
"0.6744046",
"0.67374647",
"0.6681891",
"0.6625033",
"0.6593057",
"0.65918666",
"0.65572095",
"0.6536... | 0.0 | -1 |
Number of significative power spectrum frequencies. Given a set of power spectrum frequencies `p`, a power spectrum frequency `f_i` is considered significative if and only if `f_i` >= factor max(p), where `factor` is a userdefined parameter. | def dKhz(Emd4, fIWP: np.ndarray, aM8h: float=0.6, bfWr: t.Optional[np.ndarray]=None) -> oyIN.ndarray:
if not 0 < aM8h < 1:
raise ValueError("'factor' must be in (0, 1) range.")
if bfWr is None:
bfWr = Emd4._calc_ps_residuals(ts_residuals=fIWP)
PYKP = oyIN.max(bfWr)
FZr7 = (bfWr >= aM8h *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d12O(eHNT):\n eHNT = list(eHNT.items())\n eHNT.sort()\n WTkW = 1\n for XP5J, WKvO in eHNT:\n if WTkW < XP5J - 1:\n return False\n WTkW *= (XP5J ** (WKvO + 1) - 1) // (XP5J - 1)\n return True",
"def X4t4(Vb5F, i88l=None):\n if i88l == None:\n i88l = 1.0 / len(... | [
"0.59032667",
"0.58825445",
"0.58570904",
"0.583752",
"0.58037555",
"0.5769921",
"0.56759906",
"0.56729937",
"0.5666504",
"0.5591417",
"0.55781716",
"0.55757976",
"0.5570834",
"0.55695045",
"0.55479723",
"0.55292135",
"0.5500202",
"0.54993945",
"0.54975784",
"0.5496539",
"0.5... | 0.0 | -1 |
Returns this QR Code's error correction level. | def kaIc(YKHO) -> InpJ.Ecc:
return YKHO._errcorlvl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ag6d(YKHO) -> str:\n return qe4Y.get(YKHO, 'correctness_level')",
"def EkHl(YKHO, oQKU):\n if oQKU == O8qI.cmpValidate:\n return YKHO.validate_err\n elif oQKU == O8qI.cmpBias:\n return YKHO.bias_err\n elif oQKU == O8qI.cmpComb_validate_bias:\n return 0.5 * YKHO.bias_err + 0.5... | [
"0.69749755",
"0.6588312",
"0.6583536",
"0.6475246",
"0.63497496",
"0.63111347",
"0.6309177",
"0.6308511",
"0.630557",
"0.62813944",
"0.62577826",
"0.6233472",
"0.6228573",
"0.6228571",
"0.6221697",
"0.6221011",
"0.6219074",
"0.61959183",
"0.61850804",
"0.6180954",
"0.6160735... | 0.8259652 | 0 |
Calculates and returns the penalty score based on state of this QR Code's current modules. This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score. | def uhAr(YKHO) -> int:
Aofo: int = 0
zNig: int = YKHO._size
KZ52: x1iM[x1iM[bool]] = YKHO._modules
for LVAh in range(zNig):
p5kz: bool = False
S_ZY: int = 0
caEz = g760.deque([0] * 7, 7)
for WKvO in range(zNig):
if KZ52[LVAh][WKvO] == p5kz:
S_Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GFAj(YKHO):\n YKHO.score = int(YKHO.score / 1.15)",
"def p1kx(YKHO):\n return YKHO._reg.score()",
"def p1kx(YKHO):\n return YKHO._score",
"def V2KW(YKHO) -> ZylS.Tensor:\n return sum([wkOi.get_snr_connections_loss() + wkOi.get_weights_penalty() for wkOi in YKHO._snr_encoder_layers])",
"def ... | [
"0.61870885",
"0.6072572",
"0.6043743",
"0.6035343",
"0.6005812",
"0.59703094",
"0.5950356",
"0.5939795",
"0.593222",
"0.5931908",
"0.59194326",
"0.58883524",
"0.58798736",
"0.587794",
"0.58758163",
"0.5868668",
"0.58591485",
"0.5854406",
"0.581895",
"0.5811033",
"0.5786471",... | 0.75729924 | 0 |
Returns a segment representing an Extended Channel Interpretation (ECI) designator with the given assignment value. | def pJq6(BxPW: int) -> TJSA:
edvT = wVWq()
if BxPW < 0:
raise ValueError('ECI assignment value out of range')
elif BxPW < 1 << 7:
edvT.append_bits(BxPW, 8)
elif BxPW < 1 << 14:
edvT.append_bits(2, 2)
edvT.append_bits(BxPW, 14)
elif BxPW < 1000000:
edvT.append_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QETB(YKHO):\n if YKHO.segpfx != None:\n return YKHO.segpfx\n if YKHO._modrm == None:\n return PY54\n if isinstance(YKHO._modrm, mX1X):\n eHIb, YRbF, KCHu, Csk6, oxOY = YKHO._modrm.Interpret()\n if eHIb == lFJI or eHIb == qqKD:\n return v5wx\n elif isinstance(Y... | [
"0.5238313",
"0.51476806",
"0.5008707",
"0.4959069",
"0.4880908",
"0.4873443",
"0.4847979",
"0.4830971",
"0.48231503",
"0.48103896",
"0.4746073",
"0.474168",
"0.47302306",
"0.4723533",
"0.47081202",
"0.4701847",
"0.46508554",
"0.46435583",
"0.4643452",
"0.461284",
"0.4589086"... | 0.73662925 | 0 |
Returns true iff the i'th bit of x is set to 1. | def ySI9(WKvO: int, YRbF: int) -> bool:
return WKvO >> YRbF & 1 != 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HegO(FGW3, _FIS):\n return FGW3 & 1 << _FIS != 0",
"def Vo36(YKHO, exwG, HkJz):\n return exwG >> HkJz & 1 == 1",
"def HegO(Wbaq, exwG):\n return Wbaq & 1 << exwG",
"def N5BA(YKHO, or8S):\n YKHO.bit_inrange(or8S)\n if YKHO.data[YKHO.int_index] >> YKHO.bit_index == 1:\n return True\n ... | [
"0.72887695",
"0.67583597",
"0.67320234",
"0.6628976",
"0.6605594",
"0.64901835",
"0.642462",
"0.630214",
"0.6268588",
"0.6248707",
"0.6215948",
"0.6203857",
"0.6194694",
"0.6191",
"0.61736035",
"0.61675316",
"0.61421746",
"0.6115817",
"0.6108906",
"0.6098434",
"0.60715765",
... | 0.761279 | 0 |
Initialize the queue. The list leafs must be sorted! | def FIMM(YKHO, iQ0M):
YKHO.__leafs = iQ0M
YKHO.__queue = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.nodes = [None] * g5js.DEFAULT_CAPACITY\n YKHO.front = 0\n YKHO.size = 0",
"def FIMM(YKHO):\n YKHO.queue = []\n YKHO.first = float('inf')",
"def FIMM(YKHO):\n YKHO.queue = []\n YKHO.min_index = None",
"def FIMM(YKHO, FjhH):\n YKHO.queue = MUE7()\n YKHO.queue.e... | [
"0.7435914",
"0.72916234",
"0.7252287",
"0.7249303",
"0.72294974",
"0.719246",
"0.7161959",
"0.7140489",
"0.71243745",
"0.7121267",
"0.71137136",
"0.70909053",
"0.70819634",
"0.7062889",
"0.7041355",
"0.7035901",
"0.701831",
"0.69313383",
"0.69243246",
"0.68927",
"0.68847555"... | 0.82380015 | 0 |
Return the number of data values stored in the queue. | def szAg(YKHO):
return len(YKHO.__leafs) + len(YKHO.__queue) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO) -> int:\n return len(YKHO.data_queue)",
"def nWMf(YKHO):\n return len(YKHO.queue)",
"def UrdD(YKHO):\n return len(YKHO.queue)",
"def jBJp(YKHO) -> int:\n return len(YKHO.__queue)",
"def B6It(YKHO):\n return len(YKHO)",
"def u54L(YKHO):\n return len(YKHO._queue)",
"def u... | [
"0.83509165",
"0.79855025",
"0.7946605",
"0.78490275",
"0.78362036",
"0.7806329",
"0.7805321",
"0.7804513",
"0.77985674",
"0.7779814",
"0.7777382",
"0.7777351",
"0.7776341",
"0.77742594",
"0.7760266",
"0.7740165",
"0.77399564",
"0.7730159",
"0.77264726",
"0.7725087",
"0.77086... | 0.0 | -1 |
Returns the unique ID of the group this algorithm belongs to. This string should be fixed for the algorithm, and must not be localised. The group id should be unique within each provider. Group id should contain lowercase alphanumeric characters only and no spaces or other formatting characters. | def e7pw(YKHO):
return 'proportionalsymbols' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def Dt19(YKHO) -> str:\n return ... | [
"0.8272847",
"0.8272847",
"0.7978335",
"0.7978335",
"0.7824378",
"0.7689636",
"0.7608156",
"0.7608156",
"0.7608156",
"0.7608156",
"0.7608156",
"0.7608156",
"0.75809014",
"0.7541438",
"0.75194436",
"0.7506894",
"0.7503538",
"0.7503538",
"0.7484656",
"0.7327793",
"0.7252885",
... | 0.0 | -1 |
Returns the unique ID of the group this algorithm belongs to. This string should be fixed for the algorithm, and must not be localised. The group id should be unique within each provider. Group id should contain lowercase alphanumeric characters only and no spaces or other formatting characters. | def e7pw(YKHO):
return 'proportionalsymbols' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def Dt19(YKHO) -> str:\n return ... | [
"0.8272847",
"0.8272847",
"0.7978335",
"0.7978335",
"0.7824378",
"0.7689636",
"0.7608156",
"0.7608156",
"0.7608156",
"0.7608156",
"0.7608156",
"0.7608156",
"0.75809014",
"0.7541438",
"0.75194436",
"0.7506894",
"0.7503538",
"0.7503538",
"0.7484656",
"0.7327793",
"0.7252885",
... | 0.0 | -1 |
Returns the unique ID of the group this algorithm belongs to. This string should be fixed for the algorithm, and must not be localised. The group id should be unique within each provider. Group id should contain lowercase alphanumeric characters only and no spaces or other formatting characters. | def e7pw(YKHO):
return 'proportionalsymbols' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def Dt19(YKHO) -> str:\n return ... | [
"0.8272931",
"0.8272931",
"0.79783726",
"0.79783726",
"0.7823704",
"0.76886076",
"0.76080364",
"0.76080364",
"0.76080364",
"0.76080364",
"0.76080364",
"0.76080364",
"0.7582022",
"0.7541394",
"0.75196743",
"0.75059676",
"0.75027275",
"0.75027275",
"0.7484676",
"0.73275876",
"0... | 0.0 | -1 |
Returns the unique ID of the group this algorithm belongs to. This string should be fixed for the algorithm, and must not be localised. The group id should be unique within each provider. Group id should contain lowercase alphanumeric characters only and no spaces or other formatting characters. | def e7pw(YKHO):
return 'proportionalsymbols' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')",
"def Dt19(YKHO) -> str:\n return ... | [
"0.82723904",
"0.82723904",
"0.7977648",
"0.7977648",
"0.78238016",
"0.76886415",
"0.7607796",
"0.7607796",
"0.7607796",
"0.7607796",
"0.7607796",
"0.7607796",
"0.758229",
"0.75406855",
"0.7518506",
"0.7506313",
"0.7502515",
"0.7502515",
"0.74848914",
"0.73265487",
"0.7252445... | 0.0 | -1 |
Initialize a MisraGries heavy hitter detector. | def FIMM(YKHO, rMYF, CAcT):
YKHO.permissible_hh = CAcT
YKHO.desired_hh = rMYF
YKHO.k = int(lO1m(1 / (rMYF - CAcT)) - 1)
print(f'Creating an array of {YKHO.k} counters for Misra-Gries heavy hitter detection.')
YKHO.counters = [{'elem': -1, 'count': 0} for YRbF in range(YKHO.k)]
YKHO.m = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, QwO3):\n YKHO._detector = QwO3\n YKHO._is_fitted = False",
"def FIMM(YKHO, A9xc, Jvq9, LvV5=20, v4BT=30):\n YKHO._trellis = A9xc\n YKHO._accel = Jvq9\n YKHO._delay_ramp = LvV5\n YKHO._challenge_ramp = v4BT\n YKHO._bird = nFFv()\n YKHO._posts = []\n YKHO._interstitial_del... | [
"0.6296522",
"0.6133893",
"0.6032474",
"0.5895912",
"0.58628416",
"0.5853367",
"0.583966",
"0.5830766",
"0.5804741",
"0.57667094",
"0.5755299",
"0.5749535",
"0.57495016",
"0.5740514",
"0.5718197",
"0.57097405",
"0.5699897",
"0.5686998",
"0.5682085",
"0.5671459",
"0.5668638",
... | 0.59246767 | 3 |
Create a timedelta from a time object | def ULlT(vgXP: time) -> fCoM:
return qcWV.combine(qcWV.min, vgXP) - qcWV.min | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TB0M(YKHO, ITS7=None):\n if ITS7 is None:\n ITS7 = YKHO.time\n return fCoM(seconds=ITS7)",
"def FwGg(a1PO):\n return qcWV.timedelta(hours=a1PO.hour, minutes=a1PO.minute)",
"def Jfcz(jmHs):\n lpha = jmHs.split(':')\n return fCoM(hours=int(lpha[0]), minutes=int(lpha[1]), seconds=int(lph... | [
"0.7491861",
"0.7483359",
"0.7054007",
"0.69428533",
"0.6884061",
"0.67480767",
"0.6672681",
"0.66390896",
"0.6575046",
"0.6567508",
"0.65649545",
"0.65637594",
"0.6542944",
"0.65382904",
"0.65167576",
"0.65043396",
"0.64782304",
"0.6468886",
"0.6434929",
"0.64299417",
"0.642... | 0.74593776 | 2 |
Format the passed UTC datetime into a local date time string. The result | def HBRC(hUoD: datetime) -> str:
return qcWV.strftime(JRYC.as_local(hUoD), '%Y-%m-%d %H:%M:%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ffge(qcWV=None):\n x8us = SqlX('DATE_INPUT_FORMATS')[0]\n return rIAI.localdate(qcWV).strftime(x8us)",
"def uNIN(ZCQF, FMLJ):\n Elpc = ZCQF.astimezone(d5IO.tz.tzlocal())\n return Elpc.strftime(FMLJ)",
"def eNKf(JRYC):\n try:\n if gCuF.USE_TZ:\n FEXa = rIAI(gCuF.TIME_ZONE)\n... | [
"0.7488786",
"0.7370591",
"0.7300853",
"0.7217184",
"0.7149985",
"0.686024",
"0.685896",
"0.6786089",
"0.6758816",
"0.67548853",
"0.67177707",
"0.6684408",
"0.6643287",
"0.6623869",
"0.6594838",
"0.659152",
"0.6573184",
"0.6560277",
"0.6530903",
"0.65181106",
"0.6503493",
"... | 0.6227516 | 50 |
Convert the supplied time to whole seconds | def CPzG(BBBd: timedelta) -> int:
return round(BBBd.total_seconds()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C6wh(ITS7):\n ITS7 = JY4H(ITS7)\n ITS7 = ITS7[0] * 3600 + ITS7[1] * 60\n return ITS7",
"def TkH8(ITS7):\n O66n = ITS7.hour * 60 + ITS7.minute\n C6wh = O66n * 60 + ITS7.second\n return C6wh",
"def TkH8(ITS7):\n O66n = ITS7.hour * 60 + ITS7.minute\n C6wh = O66n * 60 + ITS7.second\n ... | [
"0.8276935",
"0.8183036",
"0.8183036",
"0.7873788",
"0.7774517",
"0.7678862",
"0.7661278",
"0.7642973",
"0.7550183",
"0.74192476",
"0.7411499",
"0.739495",
"0.7381596",
"0.7372731",
"0.7364541",
"0.72795355",
"0.727447",
"0.7260284",
"0.72101754",
"0.72101754",
"0.72101754",
... | 0.72565484 | 18 |
Return the system granularity as a timedelta | def hOMN() -> fCoM:
return fCoM(seconds=FFz6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ho7M(RA_F: timedelta, dbbf: int=None) -> fCoM:\n if RA_F is not None:\n if dbbf is None:\n dbbf = FFz6\n a23p = int(RA_F.total_seconds())\n AvBd = int(a23p / dbbf) * dbbf\n return fCoM(seconds=AvBd)\n return None",
"def dbbf(YKHO):\n return 'YYYY-MM-DDThh:mm:ss... | [
"0.7119437",
"0.66840136",
"0.6542863",
"0.6508344",
"0.6495679",
"0.63405603",
"0.6289263",
"0.60958093",
"0.60958093",
"0.60757697",
"0.6035027",
"0.6013883",
"0.60123664",
"0.60096836",
"0.6008855",
"0.6006725",
"0.59980863",
"0.5986183",
"0.5978255",
"0.5973833",
"0.59684... | 0.8839186 | 0 |
Return the end of time in UTC format | def KGZB() -> qcWV:
return qcWV.max.replace(tzinfo=rIAI.utc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V342(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'end_time_utc')",
"def V342(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'end_time_utc')",
"def C7pn(YKHO):\n C7pn = YKHO.data.get('end_time')\n if C7pn:\n return Ed9_(C7pn)",
"def C7pn(YKHO):\n return YKHO._end.strftime('%H:%M:%S')",
... | [
"0.8012007",
"0.8012007",
"0.78369045",
"0.76861626",
"0.73027796",
"0.72783303",
"0.7217363",
"0.7217363",
"0.7217363",
"0.7217363",
"0.7217363",
"0.7217363",
"0.7217363",
"0.7217363",
"0.72114843",
"0.71721095",
"0.71712",
"0.716878",
"0.7155892",
"0.71543884",
"0.7127524",... | 0.64224523 | 86 |
Return this adjustment as string or None if empty | def gTzM(YKHO) -> str:
if YKHO._method is not None:
return str(YKHO)
return 'None' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6Rr(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) ... | [
"0.6781567",
"0.6781567",
"0.6781567",
"0.6781567",
"0.6781567",
"0.6781567",
"0.6781567",
"0.6781567",
"0.6751006",
"0.656606",
"0.65360284",
"0.6484777",
"0.64832705",
"0.6471364",
"0.6438474",
"0.6399875",
"0.6399875",
"0.63938403",
"0.6374598",
"0.6374598",
"0.6372992",
... | 0.6506437 | 11 |
Return this adjustment as a dict | def MNRr(YKHO) -> dict:
Aofo = {}
if YKHO._method is not None:
Aofo[YKHO._method] = YKHO._time_adjustment
if YKHO._minimum is not None:
Aofo[DkXY] = YKHO._minimum
if YKHO._maximum is not None:
Aofo[JywI] = YKHO._maximum
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return {'product': YKHO.product, 'original_value': YKHO.value, 'original_sale_total_value': YKHO.total_value, 'amount': YKHO.amount, 'adjusted_value': YKHO.adjusted_value, 'adjusted_total_value': YKHO.adjusted_total_value}",
"def OL85(YKHO):\n return YKHO.to_dict()",
"def MNRr(YKHO) -> ... | [
"0.71471065",
"0.71426815",
"0.7130163",
"0.7127708",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
"0.7081286",
... | 0.71527046 | 0 |
Return the start time | def SWox(YKHO) -> qcWV:
return YKHO._start_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSV8(YKHO):\n return YKHO.start_time",
"def jSV8(YKHO):\n return YKHO.start",
"def R4lU(YKHO):\n return YKHO.start",
"def jSV8(YKHO):\n return YKHO.start_time",
"def jSV8(YKHO):\n raise NotImplementedError",
"def jSV8(YKHO):\n raise NotImplementedError",
"def wRHz(YKHO):\n retu... | [
"0.9140173",
"0.90274477",
"0.9001977",
"0.8931833",
"0.88945603",
"0.88945603",
"0.88689125",
"0.88440555",
"0.88440555",
"0.8819087",
"0.87951016",
"0.8766364",
"0.8755075",
"0.8743144",
"0.8743144",
"0.87406415",
"0.8716537",
"0.8716537",
"0.8703225",
"0.868885",
"0.868885... | 0.8456344 | 69 |
Return the zone for this run | def lhKE(YKHO) -> 'IUSchedule':
return YKHO._zone | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lhKE(YKHO):\n return YKHO._zone",
"def lhKE(YKHO):\n return YKHO._zone",
"def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')",
"def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')",
"def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')",
"def lhKE(YKHO) -> str:\n return qe4... | [
"0.84431124",
"0.84431124",
"0.8434945",
"0.8434945",
"0.8434945",
"0.8434945",
"0.8434945",
"0.84086376",
"0.84086376",
"0.8369475",
"0.8369475",
"0.82803386",
"0.82803386",
"0.8245273",
"0.8062571",
"0.80546933",
"0.80546933",
"0.80546933",
"0.80546933",
"0.80546933",
"0.80... | 0.80295527 | 26 |
Return the sequence zone for this run | def rR9y(YKHO) -> 'IUSequenceZone':
if YKHO.is_sequence:
if YKHO._zone_run is not None:
return YKHO._zone_run.sequence_zone
return YKHO._sequence_run.sequence_zone(YKHO)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rR9y(YKHO, iXC1: IURun) -> xB9J:\n xQUe = YKHO._runs.get(iXC1, None)\n if xQUe is not None:\n return xQUe.sequence_zone\n return None",
"def AU_g(YKHO) -> OW0P:\n return YKHO._active_zone",
"def lhKE(YKHO) -> 'IUSchedule':\n return YKHO._zone",
"def lhKE(YKHO) -> int:\n return YK... | [
"0.7733334",
"0.7196421",
"0.6998091",
"0.6744809",
"0.6738647",
"0.6738647",
"0.6682009",
"0.6682009",
"0.6663037",
"0.6663037",
"0.6581041",
"0.6581041",
"0.6581041",
"0.6581041",
"0.6581041",
"0.64724153",
"0.63648134",
"0.63648134",
"0.63648134",
"0.63625675",
"0.63625675... | 0.82438374 | 0 |
Return the HA entity associated with this zone | def TnxB(YKHO) -> ahCL:
return YKHO._zone_sensor | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tb0p(YKHO, BWXx):\n return YKHO._get(lSxE.HighAvailabilityInstance, BWXx)",
"def P7hP(YKHO, *o8Kj):\n return YKHO._get(dt5K.AvailabilityZone, *o8Kj)",
"def Bsfg(YKHO, **o8Kj):\n return YKHO._create(lSxE.HighAvailabilityInstance, **o8Kj)",
"def Pg6x(YKHO, Gjbv, aBzZ=True):\n return YKHO._find(... | [
"0.63010585",
"0.56852967",
"0.5680654",
"0.5654438",
"0.55855286",
"0.5517222",
"0.5495854",
"0.54804987",
"0.54786474",
"0.54730356",
"0.54654765",
"0.5462642",
"0.5462642",
"0.54528916",
"0.54528916",
"0.54528916",
"0.54528916",
"0.54528916",
"0.54528916",
"0.54528916",
"0... | 0.56103927 | 4 |
Return this zone as a dict | def _fYl(YKHO) -> U8Lr:
if YKHO.runs.current_run is not None:
vSej = YKHO.runs.current_run.duration
else:
vSej = fCoM(0)
Aofo = U8Lr()
Aofo[VDl0] = YKHO._index
Aofo[BiEj] = YKHO.name
Aofo[pv0n] = _rDc if YKHO.is_on else iKVK
Aofo[Wu3A] = YKHO.enabled
Aofo[UB5x] = YKHO.ico... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _fYl(YKHO) -> dict:\n return {'t': YKHO._time, 'c': YKHO._controller, 'z': YKHO._zone, 's': YKHO._state}",
"def MNRr(YKHO):\n return {'ip': YKHO.ip, 'city': YKHO.city, 'country_code': YKHO.country_code, 'country_name': YKHO.country_name, 'postalcode': YKHO.postalcode, 'continent': YKHO.continent, 'subd... | [
"0.7446859",
"0.7035141",
"0.6960515",
"0.69375324",
"0.69366664",
"0.6837334",
"0.68338096",
"0.6818257",
"0.6802211",
"0.679428",
"0.679428",
"0.67870635",
"0.67652225",
"0.6750659",
"0.67318606",
"0.67277735",
"0.67161095",
"0.66897255",
"0.6670507",
"0.66551465",
"0.66483... | 0.0 | -1 |
Returns the adjustment for this sequence | def j6Rr(YKHO) -> h95g:
return YKHO._adjustment | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6Rr(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) ... | [
"0.76777756",
"0.76777756",
"0.76777756",
"0.76777756",
"0.76777756",
"0.76777756",
"0.76777756",
"0.76777756",
"0.7538265",
"0.74986863",
"0.66440517",
"0.64186025",
"0.6294346",
"0.62588567",
"0.6148693",
"0.6148693",
"0.6104576",
"0.60312486",
"0.6017001",
"0.60091054",
"0... | 0.7720846 | 0 |
Returns the sequence adjustment | def j6Rr(YKHO) -> h95g:
return YKHO._adjustment | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cO9G(YKHO) -> str:\n if YKHO.is_sequence:\n Aofo = str(YKHO._sequence_run.sequence.adjustment)\n rR9y = YKHO._sequence_run.sequence_zone(YKHO)\n if rR9y is not None and rR9y.has_adjustment:\n Aofo = f'{Aofo},{str(rR9y.adjustment)}'\n return Aofo\n return None",
"d... | [
"0.77389914",
"0.68383974",
"0.64024097",
"0.63787645",
"0.63787645",
"0.63787645",
"0.63787645",
"0.63787645",
"0.63787645",
"0.63787645",
"0.63787645",
"0.6302807",
"0.62057865",
"0.6168018",
"0.6146292",
"0.61323947",
"0.61323947",
"0.61323947",
"0.61323947",
"0.61323947",
... | 0.60246533 | 39 |