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 |
|---|---|---|---|---|---|---|
Right shift with public integral offset. | def m5re(YKHO, Elif):
if not isinstance(Elif, int):
return NotImplemented
return YKHO.__floordiv__(1 << Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FrPO(WKvO, LVAh):\n return _gRY.bit_right_shift(WKvO, LVAh)",
"def G8po(YKHO):\n YKHO.pointer = (YKHO.pointer + 1) % len(YKHO.data)",
"def gzEI(wEf2, exwG) -> oyIN.int64:\n return wEf2 % (1 << 64) >> exwG",
"def NhMB():\n BWXx = 42\n dwhH = xqoZ.Integer(value=BWXx)\n assert dwhH.value =... | [
"0.7279014",
"0.7240078",
"0.7054455",
"0.6930216",
"0.683616",
"0.683616",
"0.6801652",
"0.67621094",
"0.67214423",
"0.666759",
"0.6592119",
"0.6589057",
"0.6582795",
"0.6571957",
"0.6547719",
"0.653962",
"0.65293795",
"0.64895654",
"0.6363365",
"0.6218795",
"0.6206821",
"... | 0.7234058 | 2 |
Right shift (with reflected arguments). | def vAAD(YKHO, Elif):
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H_EU(yLHq, RKYb):\n return sfxH.right_shift(yLHq, RKYb)",
"def m5re(YKHO, FYKK):\n if YKHO is povx:\n return povx\n else:\n Ty9i = YKHO.right if YKHO.is_right() else YKHO.left\n FYKK = pgV8(FYKK, YKHO.__class__)\n return wxT_(FYKK(Ty9i))",
"def G8po(YKHO):\n YKHO.poi... | [
"0.7731636",
"0.7417664",
"0.73450357",
"0.73384696",
"0.716404",
"0.7117388",
"0.711274",
"0.71020246",
"0.703883",
"0.70261127",
"0.6973108",
"0.6972289",
"0.687048",
"0.6858747",
"0.680647",
"0.680647",
"0.67318946",
"0.669549",
"0.669549",
"0.66619515",
"0.6643595",
"0.... | 0.65678996 | 24 |
Internal method. Load and overwite the weights of savable layers. | def W03C(YKHO, tapr):
for mWFP, gEmA in YKHO._layers_to_save.items():
YKHO._load_layer_weights(gEmA, mWFP, tapr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s07D(YKHO, tapr):\n for mWFP, gEmA in YKHO._layers_to_save.items():\n YKHO._save_layer_weights(gEmA, mWFP, tapr)",
"def FuEk(YKHO):\n G9jH.debug('Transfer Weight!')\n YKHO.network.save_weights(YKHO._save_path)\n YKHO.target_network.load_weights(YKHO._save_path)",
"def H_1o(YKHO):\n YK... | [
"0.7112637",
"0.6886456",
"0.68030757",
"0.67139125",
"0.66837305",
"0.65610504",
"0.65234435",
"0.65043664",
"0.64603144",
"0.6424455",
"0.6416083",
"0.63992655",
"0.63778496",
"0.6374594",
"0.6349747",
"0.62888044",
"0.6262619",
"0.6246883",
"0.62425447",
"0.62310976",
"0.6... | 0.745677 | 0 |
Internal method. Load the weights of one layer from a h5py file object. | def zx7R(YKHO, gEmA, mWFP, tapr):
uOe2 = tapr[mWFP]
u54L = uOe2['length'][0]
_mSQ = [uOe2['{}'.format(or8S)] for or8S in range(u54L)]
gEmA.set_weights(_mSQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SUd8(YKHO, VqRE, NCru=False):\n if g5R2 is None:\n raise ImportError('`load_weights` requires h5py.')\n with g5R2.File(VqRE, 'r') as eHNT:\n if 'layer_names' not in eHNT.attrs and 'model_weights' in eHNT:\n eHNT = eHNT['model_weights']\n if NCru:\n JaHl(eHNT, YK... | [
"0.7762422",
"0.7741495",
"0.7162051",
"0.70875186",
"0.7042549",
"0.69837266",
"0.6980732",
"0.68744195",
"0.68642384",
"0.68527466",
"0.6803724",
"0.6780911",
"0.67803186",
"0.67626196",
"0.67356473",
"0.6702431",
"0.6684989",
"0.66833407",
"0.6679716",
"0.66557705",
"0.661... | 0.8173073 | 0 |
Initialise the dense layer providing the input. Implement any necessary initialization in the subclass. | def rFSS(YKHO, gEmA):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Gzv5: int, EDoJ: int):\n super().__init__()\n YKHO.input_dim = Gzv5\n YKHO.output_dim = EDoJ\n YKHO.batchNorm1 = fhcK.BatchNormalization()\n YKHO.dense1 = fhcK.Dense(64, input_shape=(Gzv5 + EDoJ,), kernel_initializer=Qc2B(-oyIN.sqrt(1 / Gzv5), oyIN.sqrt(1 / Gzv5)))\n YKHO.relu1 = f... | [
"0.7554496",
"0.7480992",
"0.71194774",
"0.6937145",
"0.6901332",
"0.68904847",
"0.68022543",
"0.67635393",
"0.6720167",
"0.67137855",
"0.6669927",
"0.6656371",
"0.6638359",
"0.66269267",
"0.6613141",
"0.6611152",
"0.6595971",
"0.65903264",
"0.658748",
"0.65860504",
"0.655012... | 0.84982526 | 0 |
Generate a random name of the form "export_XXXXXX" where XXXXXX are 6 random characters. | def LzkU() -> str:
jf08 = ''.join(tuKI.choices(vIwR.ascii_uppercase + vIwR.digits, k=6))
return f'exporters_{jf08}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TweX(y0cW='test'):\n jEeO = Hy7s.urandom(8)\n xORj = HBct.md5()\n xORj.update(jEeO)\n return '{}_{}'.format(y0cW, xORj.hexdigest()[:7])",
"def T8R7(P8oC):\n Q_Y4 = 10\n BWvy = ''.join(tuKI.choices(vIwR.ascii_lowercase, k=Q_Y4))\n return '%s-%s' % (P8oC, BWvy)",
"def gbOx():\n return... | [
"0.768563",
"0.76545644",
"0.75999147",
"0.7569935",
"0.7542139",
"0.7486131",
"0.7448492",
"0.7422053",
"0.73991156",
"0.7305884",
"0.72978884",
"0.7269345",
"0.72691554",
"0.7266666",
"0.72513133",
"0.72499096",
"0.72090775",
"0.7191241",
"0.7174157",
"0.71657175",
"0.71649... | 0.872831 | 0 |
Given a username provide the password hash for verification. | def kaVN(YKHO, NtEF):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sNjs(NtEF, jTXt):\n if NtEF in JL98 and z8jj(JL98.get(NtEF), jTXt):\n return NtEF",
"def qzFd(NtEF, jTXt):\n r8hN = HBct.sha512()\n r8hN.update(NtEF.encode('utf-8'))\n r8hN.update(jTXt.encode('utf-8'))\n return r8hN.hexdigest()",
"def elUN(NtEF: str, jTXt: str):\n JbAR = NtEF + jTX... | [
"0.76989436",
"0.74546",
"0.74088085",
"0.6934754",
"0.6850222",
"0.6827627",
"0.681311",
"0.67802805",
"0.6749425",
"0.67201895",
"0.67056984",
"0.6703862",
"0.6681003",
"0.66740316",
"0.6672733",
"0.66718876",
"0.6665299",
"0.66435826",
"0.66078746",
"0.6593887",
"0.6589873... | 0.8096595 | 0 |
Get the configuration that created this connection. Under certain circumstances (notably, OAuth token refreshing), fields of this configuration object are modifiable after the connection has been created; see the documentation for | def GPtr(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r1iD(YKHO):\n return YKHO.m_connection.config",
"def eMhT(YKHO) -> dict:\n return YKHO.config",
"def GPtr(YKHO) -> Sr1l:\n return YKHO._config",
"def tgzD(YKHO):\n return YKHO.config",
"def wOGa(YKHO):\n return YKHO._config",
"def GPtr(YKHO) -> dict:\n return YKHO._config",
"def t... | [
"0.77958065",
"0.7750327",
"0.76211256",
"0.7601931",
"0.7556502",
"0.74666893",
"0.7444813",
"0.7441127",
"0.74105966",
"0.74105966",
"0.740344",
"0.740344",
"0.740344",
"0.7372919",
"0.7354639",
"0.73074126",
"0.7298534",
"0.7281869",
"0.7276039",
"0.7276039",
"0.7262093",
... | 0.0 | -1 |
Takes a formula and a set of atoms (that do not necessarily appear in the formula), and returns a set of models of the formula, where each model is represented by a dictionary that maps each atom to a Boolean value, where atoms are drawn from the set of atoms that appear in ``formula`` and the set of atoms represented ... | def _O4p(l9Ur, RR8p):
if l9Ur == True:
return [C3ST for C3ST in iuRs(RR8p)]
ZNQL = [C3ST for C3ST in aPGz(l9Ur, all_models=True)]
n6nE = RR8p - l9Ur.atoms()
if not n6nE:
return ZNQL
else:
oIOM = []
for C3ST in ZNQL:
oIOM += [Jsvt for Jsvt in iuRs(n6nE, C3S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GuJE(l9Ur: Formula, FYrf: Iterable[Model]) -> iu5r[bool]:\n dzye = list()\n for jPVp in FYrf:\n dzye.append(b7La(l9Ur, jPVp))\n return dzye",
"def GuJE(l9Ur: Formula, FYrf: Iterable[Model]) -> iu5r[bool]:\n ezWE = []\n for C3ST in FYrf:\n ezWE.append(b7La(l9Ur, C3ST))\n return... | [
"0.6231055",
"0.61913365",
"0.6105409",
"0.60890245",
"0.5991903",
"0.59173256",
"0.54118824",
"0.5358695",
"0.5334758",
"0.5264302",
"0.52000153",
"0.5052022",
"0.50512755",
"0.5039385",
"0.5019679",
"0.50089824",
"0.48878434",
"0.48770222",
"0.48583898",
"0.48507598",
"0.48... | 0.76160675 | 0 |
Set password for this ConnectionParams.Builder | def jTXt(YKHO, jTXt):
YKHO._password = jTXt
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3s8(YKHO, jTXt):\n YKHO.PASSWORD = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.PASS = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.password = jTXt",
"def jTXt(YKHO, jTXt: str):\n YKHO._password = jTXt",
"def jTXt(YKHO, jTXt):\n YKHO._password = jTXt",
"def jTXt(YKHO, jTXt):\n YKHO._password = jTX... | [
"0.7413525",
"0.7361076",
"0.72716075",
"0.71548104",
"0.7055864",
"0.7055864",
"0.7055864",
"0.7055864",
"0.6945425",
"0.6945209",
"0.6943506",
"0.68906",
"0.6664701",
"0.6658458",
"0.6613256",
"0.6560402",
"0.65255666",
"0.6515033",
"0.651441",
"0.6474545",
"0.64088285",
... | 0.72465926 | 3 |
Returns a boolean of whether the raw_password was correct. Handles hashing formats behind the scenes. | def EvfH(YKHO, Ud05):
def aWgE(Ud05):
YKHO.set_password(Ud05)
YKHO.save(update_fields=['password'])
return EvfH(Ud05, YKHO.password, aWgE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvfH(YKHO, Ud05):\n return EvfH(Ud05, YKHO.password)",
"def EvfH(Ud05, JqyM):\n vRyL, NTfD, lNLE = JqyM.split('$')\n return lNLE == OMIw(vRyL, NTfD, Ud05)",
"def EvfH(Ud05, JqyM):\n vRyL, NTfD, lNLE = JqyM.split('$')\n return lNLE == OMIw(vRyL, NTfD, Ud05)",
"def e3F7(YKHO, jTXt):\n ret... | [
"0.8014878",
"0.76401216",
"0.76401216",
"0.74129486",
"0.73400986",
"0.7255763",
"0.70965827",
"0.7089921",
"0.7077994",
"0.7064628",
"0.7058551",
"0.70322514",
"0.7022479",
"0.7020057",
"0.70097",
"0.6995121",
"0.69727314",
"0.69459444",
"0.6943152",
"0.6896846",
"0.6895963... | 0.71083105 | 6 |
Divides an iterable in slices/chunks of size size | def yOAJ(fAHJ, zNig):
fAHJ = iter(fAHJ)
return iter(lambda: tuple(uOgj(fAHJ, zNig)), ()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKW0(YKHO, OxJJ, zNig):\n return BfDw.split_on_chunks(OxJJ, zNig)",
"def eHxA(OxJJ: Iterable, zNig: int) -> iu5r:\n WhY1 = iter(OxJJ)\n ZfUD = list(Hs6x.islice(WhY1, zNig))\n while ZfUD:\n yield ZfUD\n ZfUD = list(Hs6x.islice(WhY1, zNig))",
"def ChZT(OxJJ, zNig):\n for YRbF in ... | [
"0.78909814",
"0.7767243",
"0.7690632",
"0.7690632",
"0.7690632",
"0.7626673",
"0.76194537",
"0.7608236",
"0.75428337",
"0.73960936",
"0.7352128",
"0.733166",
"0.73105484",
"0.7285378",
"0.7267432",
"0.72592026",
"0.7238026",
"0.7238013",
"0.7229984",
"0.7222476",
"0.71650386... | 0.71808845 | 20 |
Close and remove any global registrations. Always call this function when finished with this instance as it ensures that it can be garbage collected. This function is defined instead of a __del__ function because Python calls the __del__ function unreliably. | def DDI8(YKHO) -> None:
nfqd.remove_record_handler(YKHO.execution_uid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZrdC(YKHO):\n YKHO.registrar.destroy()",
"def fFx9(YKHO):\n for b9Zs, tXLH in iter(YKHO._registry_files.items()):\n YKHO._registry_files[b9Zs] = None\n if tXLH:\n tXLH.Close()",
"def imCP():\n for E2Dn in RrhU._instances:\n print('\\nCleaning up:', E2Dn.name)\n ... | [
"0.75686306",
"0.7412972",
"0.7136398",
"0.7110037",
"0.70395434",
"0.685597",
"0.685597",
"0.685597",
"0.685597",
"0.685597",
"0.685597",
"0.685597",
"0.685597",
"0.6852275",
"0.68152225",
"0.6754472",
"0.67464596",
"0.6707297",
"0.67025554",
"0.67020535",
"0.66946137",
"0... | 0.0 | -1 |
Get the name of the currently running phase, or None. Note that this name is not guaranteed to still be accurate by the time this method returns, so this should only be used for log messages/user display and not for programmatic purposes. | def UXeR(YKHO) -> h8nf[I2jr]:
if YKHO.running_phase_state:
return YKHO.running_phase_state.name
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JT9N(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'phase')",
"def Q0HP(YKHO):\n return YKHO.stepDictionary[YKHO.getLocation()]",
"def JT9N(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'phase')",
"def JT9N(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'phase')",
"def JT9N... | [
"0.71856076",
"0.69921845",
"0.66996187",
"0.66996187",
"0.66996187",
"0.6474902",
"0.63779265",
"0.63779265",
"0.6363522",
"0.62794316",
"0.62593573",
"0.62593573",
"0.62593573",
"0.62593573",
"0.62593573",
"0.62593573",
"0.62593573",
"0.62593573",
"0.62593573",
"0.62593573",
... | 0.8030202 | 0 |
Set the TestRecord's start_time_millis field. | def XfZY(YKHO) -> None:
assert YKHO.test_record.start_time_millis == 0
YKHO.test_record.start_time_millis = gnPz.time_millis()
YKHO.notify_update() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWox(YKHO, BWXx):\n YKHO._start_time = BWXx",
"def I_9r():\n sEuK = qg8b()",
"def SWox(YKHO, SWox):\n YKHO._start_time = SWox",
"def SWox(YKHO, SWox):\n YKHO._start_time = SWox",
"def SWox(YKHO, SWox):\n YKHO._start_time = SWox",
"def SWox(YKHO, SWox):\n YKHO._start_time = SWox",
... | [
"0.7461097",
"0.713004",
"0.71145236",
"0.71145236",
"0.70517486",
"0.70517486",
"0.70517486",
"0.70517486",
"0.70517486",
"0.6792198",
"0.67304593",
"0.6597893",
"0.6538643",
"0.643264",
"0.6413857",
"0.6389587",
"0.6382834",
"0.63800573",
"0.633039",
"0.6307586",
"0.6255372... | 0.7052474 | 4 |
Called for a `new` instruction. | def UiNS(YKHO, mgFW, PtXs):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M_Yt(YKHO):\n pass",
"def fwuD(*qIxc, **B2fa):\n ...",
"def fwuD(*qIxc, **B2fa):\n ...",
"def fwuD(*qIxc, **B2fa):\n ...",
"def fwuD(*qIxc, **B2fa):\n ...",
"def fwuD(*qIxc, **B2fa):\n ...",
"def fwuD(*qIxc, **B2fa):\n ...",
"def fwuD(*qIxc, **B2fa):\n ...",
"def fwuD(*q... | [
"0.74818504",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
"0.7395534",
... | 0.0 | -1 |
Onehot encode integer labels y. The number of classes is assumed to be the largest value in y | def HtgE(LVAh):
return RHxJ(categories='auto', sparse=False).fit_transform(LVAh.reshape(LVAh.shape[0], 1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zfhM(LVAh, TFPw=False):\n if not TFPw:\n 'Create one-hot encoded labels.'\n TFPw = len(set(LVAh))\n yvT9 = oyIN.zeros((len(LVAh), TFPw))\n for YRbF, P2GO in enumerate(LVAh):\n yvT9[YRbF][P2GO] += 1\n mxHW = yvT9.astype(int)\n return mxHW",
"def r3xW(LVAh, nZt5):\n asser... | [
"0.8922882",
"0.8852088",
"0.8606835",
"0.8596903",
"0.8584284",
"0.84639335",
"0.84183574",
"0.837195",
"0.8359242",
"0.8348002",
"0.83127004",
"0.8293814",
"0.8278722",
"0.8263784",
"0.82605064",
"0.8256802",
"0.8183106",
"0.8183106",
"0.8076087",
"0.8067563",
"0.8013488",
... | 0.8860286 | 1 |
Compute the accuracy of predictions using onehot encoded labels | def z1fe(Crrw, aTLP):
assert Crrw.shape[0] == aTLP.shape[0]
return oyIN.sum(oyIN.argmax(aTLP, axis=1) == oyIN.argmax(Crrw, axis=1)) / float(Crrw.shape[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z1fe(aMgO, cHAw):\n return (aMgO.argmax(dim=1) == cHAw).float().mean().item()",
"def vjyh(aTLP, Crrw):\n gXXc = aTLP == Crrw\n return gXXc.sum().float() / gXXc.shape[0]",
"def vjyh(WErR: np.ndarray, Crrw: np.ndarray) -> float:\n N6Z1 = WErR.argmax(axis=1)\n Crrw = Crrw.argmax(axis=1)\n re... | [
"0.8403834",
"0.78746563",
"0.7833525",
"0.7828252",
"0.78266877",
"0.78144145",
"0.7745161",
"0.76643187",
"0.7623697",
"0.7589688",
"0.7578266",
"0.75630087",
"0.7504252",
"0.74835384",
"0.7456411",
"0.74351454",
"0.7418144",
"0.7388466",
"0.73777604",
"0.73777604",
"0.7372... | 0.856095 | 0 |
Compute the accuracy of predictions using integer labels | def vjyh(Crrw, aTLP):
assert Crrw.shape[0] == aTLP.shape[0]
return oyIN.sum(aTLP == Crrw) / float(Crrw.shape[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(Crrw, N6Z1):\n if len(Crrw) != len(N6Z1):\n return -1\n gXXc = 0\n wjRY = 0\n for YRbF, Ty9i in enumerate(N6Z1):\n if Crrw[YRbF] == str(Ty9i):\n gXXc += 1\n wjRY += 1\n return float(gXXc) / float(wjRY) * 100.0",
"def vjyh(aTLP, Crrw):\n gXXc = aTLP == Cr... | [
"0.85062397",
"0.8452206",
"0.84218514",
"0.84087497",
"0.8266391",
"0.8255349",
"0.8220492",
"0.81306535",
"0.79728043",
"0.7951841",
"0.79321593",
"0.7858775",
"0.7839066",
"0.7813306",
"0.778941",
"0.778941",
"0.7783211",
"0.7775989",
"0.7763696",
"0.77389365",
"0.77336806... | 0.8182313 | 7 |
Returns the current mean of the proposal distribution. | def JBMS(YKHO):
return YKHO.x_guessed() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(YKHO):\n return YKHO._mean",
"def JBMS(YKHO):\n return YKHO._mean",
"def JBMS(YKHO):\n return YKHO.mu",
"def JBMS(YKHO):\n return epAf.exp(YKHO.mu + YKHO.sigma ** 2 / 2)",
"def lVH4(YKHO):\n return YKHO.mean",
"def JBMS(YKHO):\n return YKHO._lift('mean')",
"def JBMS(YKHO):\n ... | [
"0.80405176",
"0.80405176",
"0.80261374",
"0.7949538",
"0.78918725",
"0.78884816",
"0.7801771",
"0.779538",
"0.77003163",
"0.7698231",
"0.76978433",
"0.7694228",
"0.76512897",
"0.76409745",
"0.7524871",
"0.75216967",
"0.749616",
"0.7481523",
"0.74699676",
"0.74551845",
"0.736... | 0.72261935 | 27 |
Removes words from valid_words based on whether or not the guess was correct | def mQUb(YKHO):
print(YKHO.best_guess)
print(YKHO.chosen_letter)
h0EV = set()
if YKHO.chosen_letter in YKHO.best_guess:
print('hit')
Lruc = [YRbF for YRbF, BWXx in enumerate(YKHO.best_guess) if BWXx == YKHO.chosen_letter]
for GIN8 in YKHO.valid_words:
for d6pt in Lruc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TxFl(YKHO) -> None:\n xcDA: bool = False\n for GIN8 in YKHO.report.get_words():\n if GIN8.text in YKHO.rules.citation_delimiters:\n xcDA = not xcDA\n continue\n if xcDA:\n continue\n for BrRr in YKHO.rules.unwanted_words:\n if GIN8.text == ... | [
"0.6978611",
"0.6823432",
"0.6815923",
"0.6780036",
"0.67796695",
"0.6741111",
"0.66481566",
"0.6629511",
"0.65828186",
"0.6519755",
"0.65046734",
"0.6459031",
"0.64308256",
"0.639935",
"0.63974833",
"0.6388123",
"0.63726896",
"0.63508546",
"0.6338871",
"0.6332879",
"0.632384... | 0.58976465 | 96 |
get_dynamic_pressure returns the dynamic pressure at a given velocity in this environment. Be careful to ensure consistant units with the model in use. | def JrA7(YKHO, p8Jz):
PF8b = 0.5 * YKHO.Density * p8Jz ** 2
return PF8b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MLFu(MHxz, rxEN, D_mm, HRrS=2.0, *qIxc, **B2fa):\n LVAh = D_mm / rxEN\n CJ2p = HRrS * oyIN.sqrt(2) / (3 * oyIN.pi ** 2) * rxEN ** 2.5 * KuNf(HJs4, LVAh, k=1.5)\n return CJ2p",
"async def get_pressure(YKHO) -> float:\n ...",
"def FYja(BZ33):\n IhAV = 16 / 3 * oyIN.pi * InLe ** 2 * (2 - RBVb *... | [
"0.6063561",
"0.5771036",
"0.56866175",
"0.5550248",
"0.54784036",
"0.5464602",
"0.5461538",
"0.5454981",
"0.5406294",
"0.53102523",
"0.5305995",
"0.525358",
"0.52433705",
"0.52364284",
"0.521001",
"0.51836723",
"0.5177972",
"0.5147309",
"0.513841",
"0.51174736",
"0.50451267"... | 0.8371995 | 0 |
Computes the sum along segments of a tensor. Analogous to tf.unsorted_segment_sum. | def tFz8(nPrm: torch.Tensor, Uszf: torch.Tensor, mXeJ: int) -> ht2j.Tensor:
if len(Uszf.shape) != 1:
raise AssertionError('segment_ids have be a 1-D tensor')
if nPrm.shape[0] != Uszf.shape[0]:
raise AssertionError('segment_ids should be the same size as dimension 0 of input.')
KCHu = ht2j.pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YyxS(hkxX, _0VL, exwG):\n Wc9F, G1Hx = ZylS.unstack(ZylS.shape(_0VL), num=2)\n SHeu = ZylS.reshape(_0VL, [-1]) + ZylS.div(ZylS.range(Wc9F * G1Hx), G1Hx) * exwG\n _nlN = ZylS.unsorted_segment_sum(ZylS.reshape(hkxX, [-1]), SHeu, Wc9F * exwG)\n return ZylS.reshape(_nlN, [Wc9F, exwG])",
"def D8IQ(nPr... | [
"0.7506605",
"0.74699783",
"0.72073925",
"0.6586497",
"0.6506094",
"0.6485964",
"0.6485964",
"0.6485964",
"0.6485964",
"0.6485964",
"0.6312732",
"0.63053745",
"0.6110864",
"0.5963782",
"0.595026",
"0.59458345",
"0.5915711",
"0.57985264",
"0.55721176",
"0.551346",
"0.5353314",... | 0.7578235 | 0 |
Visualize an image once. Used to visualize generator before training. | def U4_H(C3B2):
with ZylS.Session() as cb_Q:
cb_Q.run(ZylS.global_variables_initializer())
with rysN.QueueRunners(cb_Q):
esdR = cb_Q.run(C3B2)
QrM1.axis('off')
QrM1.imshow(oyIN.squeeze(esdR), cmap='gray') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WjA1(VXjJ):\n QrM1.figure(figsize=(10, 4))\n QrM1.imshow(VXjJ)\n QrM1.show()",
"def i5J1(YKHO):\n XC5k.imshow(YKHO.config.DISPLAY_NAME, YKHO.image)",
"def EYAw(LNo8):\n LNo8 = LNo8.cpu()\n assert type(LNo8) is ht2j.Tensor, 'Image to plot is not torch.Tensor'\n N0ky = int(oyIN.sqrt(LNo8... | [
"0.70964646",
"0.7073794",
"0.7072046",
"0.7047754",
"0.7041124",
"0.7021574",
"0.7016016",
"0.6949454",
"0.6937185",
"0.6934807",
"0.69317704",
"0.6912239",
"0.6893389",
"0.6878521",
"0.6850345",
"0.6825746",
"0.68001765",
"0.67989963",
"0.6793074",
"0.6774607",
"0.6701023",... | 0.60928327 | 88 |
Get the mosaic filename Returns | def OYbD(YKHO):
from .gsMosaic import Mosaic
BLvs = Mosaic(YKHO.mosaicFilename, 'r')
return BLvs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i1fB(G1PT):\n Gf8y = PJbf(G1PT)\n GHKn = fa__()\n return '{0}_mosaic_{1}.png'.format(Gf8y, GHKn)",
"def nUeQ(YKHO):\n lTxF = super(rDEl, YKHO).file()\n vDdU = 'DLOS_photoz_'\n gIsw = vDdU.join(lTxF.split('DLOS_'))\n return gIsw",
"def g_2H(YKHO):\n return str(YKHO.get_file())",
"d... | [
"0.7708499",
"0.6606807",
"0.64587444",
"0.64475816",
"0.6422161",
"0.64113533",
"0.63816094",
"0.63787526",
"0.6374186",
"0.6363668",
"0.636102",
"0.63525915",
"0.6346686",
"0.6340294",
"0.6334211",
"0.63274634",
"0.63243693",
"0.6322172",
"0.6318359",
"0.6304304",
"0.628762... | 0.75586784 | 1 |
Get all variables Returns list of file variables | def qiMC(YKHO):
uzQA = [YKHO[imdf] for imdf in YKHO.statVars]
Khf1 = [YKHO[imdf] for imdf in YKHO.timeVars]
return uzQA + Khf1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZyYh():\n pmON = wvEv.parse_args().path\n bo34.info('Using the file: {}'.format(pmON))\n if not Hy7s.path.exists(pmON):\n tO9_ = 'The file ({}) does not exist.'.format(pmON)\n raise RuntimeError(tO9_)\n with vW_q.open(pmON) as eHNT:\n return eHNT.variables.keys()",
"def lSnF(... | [
"0.7833039",
"0.7238103",
"0.69869554",
"0.69644547",
"0.6915969",
"0.69140524",
"0.68490237",
"0.68011314",
"0.66436243",
"0.66335595",
"0.66191787",
"0.66188616",
"0.659308",
"0.6590448",
"0.65887153",
"0.6578212",
"0.6574628",
"0.6574628",
"0.6574628",
"0.64851946",
"0.647... | 0.63103765 | 29 |
Get neighbors of hexagon at single distance | def LMRh(YKHO, Ayfi):
return YKHO.grid.get_neighbors_ring(YKHO, Ayfi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BTfj(LVAh, WKvO, C7Ls, XcU5):\n A_IW = []\n for YRbF in (LVAh - 1, LVAh, LVAh + 1):\n for r845 in (WKvO - 1, WKvO, WKvO + 1):\n if YRbF >= 0 and YRbF < C7Ls and (r845 >= 0) and (r845 < XcU5):\n if YRbF == LVAh and r845 == WKvO:\n continue\n ... | [
"0.71405435",
"0.71405435",
"0.71400833",
"0.7114397",
"0.7093709",
"0.7070817",
"0.7065186",
"0.6994093",
"0.69804674",
"0.69762784",
"0.68680763",
"0.68249947",
"0.68156403",
"0.6794492",
"0.6780366",
"0.6755422",
"0.67513496",
"0.67236304",
"0.6703036",
"0.6687287",
"0.668... | 0.6547329 | 42 |
Get mean reproductive probability | def sPgW(YKHO):
return oyIN.mean([YWSi.get_fledge_probability() for YWSi in YKHO.agents]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(YKHO):\n return sum(YKHO.sample) / len(YKHO.sample)",
"def JBMS(YKHO):\n return sum((XP5J * WKvO for WKvO, XP5J in YKHO.items()))",
"def KSG4(__n6):\n return float(sum(__n6)) / len(__n6)",
"def K3YV(WKvO, XP5J, ywwl):\n if XP5J != 0:\n lWPh = 1 / ywwl\n yvT9 = (lWPh * sum(W... | [
"0.68868256",
"0.6808948",
"0.67508686",
"0.6708355",
"0.6678046",
"0.6669184",
"0.66402876",
"0.66308576",
"0.6544661",
"0.6532276",
"0.6529878",
"0.6504319",
"0.6502189",
"0.6440113",
"0.6434963",
"0.64111936",
"0.63990843",
"0.63824254",
"0.6371108",
"0.6353391",
"0.632530... | 0.6948326 | 0 |
Check that the minikube test deployment is available. The host IP will be set automatically from `minikube ip` if the test suite is run from `make test`. | def XqGY(wIHj):
geh0 = G4JS.get(f'{wIHj}/health')
assert geh0.status_code == 200
assert geh0.text == 'ok' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VFz8(QpfX, YFQb):\n if QpfX.running_locally:\n bo34.info('Note: integration tests are running localy via docker-compose')\n if YFQb:\n b8GO('F8A_API_URL')\n b8GO('F8A_JOB_API_URL')\n b8GO('F8A_GEMINI_API_URL')\n else:\n bo34.info('Note: integration te... | [
"0.6146589",
"0.61194855",
"0.60403854",
"0.60009164",
"0.59269255",
"0.5863339",
"0.58181006",
"0.5811339",
"0.5811339",
"0.57909757",
"0.5786613",
"0.5777058",
"0.57660544",
"0.57660544",
"0.57452726",
"0.57452726",
"0.57452726",
"0.57452726",
"0.57452726",
"0.57452726",
"0... | 0.54493207 | 67 |
Create a New Quote under a PartnerID by passing the API Fields as described in the API Docs | def Nty3(YKHO, o2VW=dict(), **B2fa):
NCC9 = LX6y(partner_id=YKHO.partner, prefix=YKHO.prefix)
geh0 = NCC9._create(o2VW, **B2fa)
NCC9.set_values(geh0)
return NCC9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A4Hr(QePW: HttpRequest) -> igJ6:\n L03z = ggVN(QePW.POST or None)\n if L03z.is_valid():\n L03z.save()\n yEHD.success(QePW, 'Created quote.')\n return vKnz('quotes:quote_list')\n return _1tc(QePW, 'quotes/quote_form.html', {'form': L03z})",
"def dDka(Emd4, iQG7: dict) -> FYrf.Quo... | [
"0.6508626",
"0.6300435",
"0.60182333",
"0.5754441",
"0.55294424",
"0.5461251",
"0.5461251",
"0.54391956",
"0.54281914",
"0.5370511",
"0.536926",
"0.5358496",
"0.5356512",
"0.5340314",
"0.5337365",
"0.531263",
"0.52982354",
"0.5228273",
"0.52240545",
"0.52228206",
"0.5216454"... | 0.66437835 | 0 |
Converts a value to a numpy ndarray | def pWm4(BWXx):
if not isinstance(BWXx, oyIN.ndarray):
if isinstance(BWXx, ht2j.Tensor):
BWXx = BWXx.detach()
BWXx = BWXx.numpy()
else:
BWXx = oyIN.array(BWXx)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I4W5(nPrm):\n return oyIN.atleast_1d(getattr(nPrm, 'values', nPrm))",
"def MF4b(wEf2, yDqo=oyIN.float64):\n if not oyIN.isscalar(wEf2) and oyIN.ndim(wEf2) > 0:\n wGur = oyIN.asarray(wEf2, dtype=yDqo)\n else:\n wGur = oyIN.asarray([wEf2], dtype=yDqo)\n return wGur",
"def WTDd(WKvO)... | [
"0.7342944",
"0.73237365",
"0.7122219",
"0.71056193",
"0.7008842",
"0.69852966",
"0.6949396",
"0.69432265",
"0.6791192",
"0.6785318",
"0.67441803",
"0.6679968",
"0.66765916",
"0.66706157",
"0.6669246",
"0.6667281",
"0.6647875",
"0.6602765",
"0.6590373",
"0.6569443",
"0.656213... | 0.0 | -1 |
Perform the dot product between unitdirection vector and the S/C separation vectors | def Agvq(YKHO):
YKHO.k_dot_r = YKHO.k[0] * YKHO.rij[0, :, :, :] + YKHO.k[1] * YKHO.rij[1, :, :, :] + YKHO.k[2] * YKHO.rij[2, :, :, :]
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxL1(cntZ, Elif):\n if isinstance(cntZ, j6_a.Vector) and isinstance(Elif, j6_a.Vector):\n return cntZ.x * Elif.x + cntZ.y * Elif.y + cntZ.z * Elif.z",
"def s2vS(P6bq, Ty9i):\n return P6bq[0] * Ty9i[0] + P6bq[1] * Ty9i[1] + P6bq[2] * Ty9i[2]",
"def QLUs(hQHm, jlSq):\n return hQHm.x * jlSq.x ... | [
"0.70557386",
"0.7046572",
"0.6932845",
"0.69139516",
"0.6910045",
"0.68896127",
"0.6831115",
"0.67832065",
"0.6752343",
"0.67217207",
"0.66839135",
"0.66520125",
"0.66479564",
"0.66193724",
"0.6602823",
"0.65993774",
"0.6577685",
"0.6576553",
"0.655416",
"0.65529716",
"0.653... | 0.0 | -1 |
Return the candidate for self project | def _ko8(YKHO) -> N3tN:
return YKHO.environment.project.make_self_candidate(not YKHO.no_editable) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SkC9(YKHO):\n return N3tN(YKHO.lan_address, YKHO.tunnel)",
"def Liey(YKHO):\n nNXP = EGE4(YKHO.ssc_server, token=YKHO.token, verify_ssl=False)\n try:\n geh0 = nNXP.get_project_versions()\n if geh0.success:\n for vN0t in geh0.data['data']:\n if vN0t['project'][... | [
"0.6132052",
"0.58670956",
"0.5773933",
"0.5742885",
"0.5729504",
"0.55947673",
"0.55636394",
"0.55636394",
"0.55636394",
"0.55636394",
"0.55636394",
"0.553479",
"0.55334324",
"0.55334324",
"0.55283254",
"0.55283254",
"0.55283254",
"0.55283254",
"0.55283254",
"0.55283254",
"0... | 0.74467826 | 0 |
Check if the candidate should be updated | def jSE7(YKHO, pImw: Distribution, ldgd: Candidate) -> bool:
DDLl = YKHO.environment.project.backend
if YKHO.reinstall or ldgd.req.editable:
return True
if AM55(pImw):
return bool(YKHO.no_editable)
if not ldgd.req.is_named:
FOob = jfKu.from_dist(pImw)
if not isinstance(FO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eWZe(YKHO) -> bool:\n return False",
"def j3y5(YKHO, KAOR, **B2fa):\n return True",
"def GfdN(YKHO):\n YKHO.check_auto_update()\n assert not YKHO.empty()",
"def yWbd(YKHO):\n KHo5 = super().available\n if KHo5 and YKHO.vin not in YKHO.coordinator.data:\n return False\n return ... | [
"0.7251842",
"0.72159237",
"0.6971171",
"0.68684727",
"0.67902607",
"0.6635805",
"0.6622813",
"0.6614182",
"0.6592253",
"0.65711755",
"0.65584683",
"0.6510388",
"0.6384584",
"0.6378037",
"0.6332267",
"0.6302957",
"0.63011354",
"0.6282399",
"0.6275278",
"0.6267735",
"0.6263581... | 0.63267577 | 15 |
Get and format the current date and time | def ApjM():
BIuc = qcWV.datetime.now()
BIuc = BIuc.strftime('%m-%d-%y %H:%M:%S')
bo34.logger.debug('Getting current time: {}'.format(BIuc))
return BIuc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f1rh():\n return B72W().strftime('%Y%m%d-%H%M%S')",
"def EUP2():\n wzkt = JRYC.datetime.now()\n LLuI = wzkt.strftime('%d/%m %H:%M')\n return LLuI",
"def h_U5(YKHO):\n from datetime import date\n from datetime import datetime\n YKHO.today = date.today()\n YKHO.today_format = YKHO.tod... | [
"0.8117235",
"0.81108576",
"0.8060017",
"0.80028796",
"0.7949157",
"0.7922295",
"0.7877222",
"0.7872565",
"0.77984124",
"0.77962625",
"0.7785793",
"0.7756726",
"0.7746075",
"0.77448994",
"0.7717051",
"0.77154213",
"0.769685",
"0.76686645",
"0.7666582",
"0.7618142",
"0.7608392... | 0.74429864 | 30 |
Devuelve una lista con los partidos que se pueden jugar sin que coincida alguno que este en juego | def WldM(pCMD):
FYAl = DQaz(pCMD)
a1mp = qYH8(pCMD)
QTwD = []
for Kc5x in a1mp:
QTwD.append(Kc5x.equipo_local)
QTwD.append(Kc5x.equipo_visitante)
wOrH = FYAl.exclude(equipo_local__in=QTwD).exclude(equipo_visitante__in=QTwD)
return wOrH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bDE7(pCMD):\n FYAl = DQaz(pCMD)\n NRRv = yC1c.get_campos_para_forzar(pCMD)\n D1Dq = []\n for WKvO in range(0, len(FYAl)):\n p06G = [FYAl[WKvO], NRRv[WKvO]]\n D1Dq.append(p06G)\n return D1Dq",
"def IrAb(YKHO):\n if Hy7s.path.exists(YKHO.caminho):\n return [lu_K for lu_K ... | [
"0.6413991",
"0.6191988",
"0.60349923",
"0.60153407",
"0.5992194",
"0.59495085",
"0.588866",
"0.58527535",
"0.5836585",
"0.5836233",
"0.5734299",
"0.5733459",
"0.5731731",
"0.5705199",
"0.5682125",
"0.5680923",
"0.56652087",
"0.5656599",
"0.56458247",
"0.5629024",
"0.5614137"... | 0.6662118 | 0 |
Devuelve una lista de listas con los partidos que se pueden jugar en los campos disponibles [[partido,[campo,campo]],[partido,[campo]],[partido,[]]...] | def bDE7(pCMD):
FYAl = DQaz(pCMD)
NRRv = yC1c.get_campos_para_forzar(pCMD)
D1Dq = []
for WKvO in range(0, len(FYAl)):
p06G = [FYAl[WKvO], NRRv[WKvO]]
D1Dq.append(p06G)
return D1Dq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PQX8(YKHO):\n return [YKHO, YKHO.Nombre + ' ' + YKHO.Apellido, YKHO.ID, YKHO.Fecha, YKHO.Edad, YKHO.Test, YKHO.Posicion, YKHO.Prioridad, YKHO.Progreso, YKHO.Informe]",
"def eLpg(nPrm):\n return e9jp(list_id=nPrm['id'], name=nPrm['name'], pieces=nPrm['num_parts'])",
"def ELwj(YKHO):\n KwiM = rkbK(Y... | [
"0.57043856",
"0.556433",
"0.54877603",
"0.5456322",
"0.54476345",
"0.5342808",
"0.52981555",
"0.5272106",
"0.52518976",
"0.5249799",
"0.5224575",
"0.5204291",
"0.5182426",
"0.51744527",
"0.5125516",
"0.50919276",
"0.50887084",
"0.50761926",
"0.5071486",
"0.5049791",
"0.50497... | 0.6551099 | 0 |
Loads a file containing patient names and creates a list with this patient names. | def tyeH(YKHO, nUeQ):
with open(nUeQ) as nUeQ:
YKHO.dataset = [zFiD.strip() for zFiD in nUeQ]
return YKHO.dataset | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R0wp():\n KAfx = open('test_data.txt', 'r')\n Rbke = True\n jTaY = []\n while Rbke is True:\n dz3K = next(KAfx)\n if dz3K != 'END':\n dz3K = dz3K.split()\n IznC = dz3K[0]\n dW_5 = dz3K[1]\n ZJe_ = next(KAfx).strip()\n EE3v = next(... | [
"0.74465054",
"0.72751886",
"0.70801824",
"0.69113815",
"0.67271835",
"0.65779763",
"0.64283526",
"0.6418345",
"0.64065945",
"0.63961107",
"0.63270026",
"0.62678576",
"0.6242179",
"0.6219133",
"0.62162596",
"0.6143537",
"0.6118897",
"0.6108945",
"0.6098199",
"0.60511035",
"0.... | 0.0 | -1 |
\ Sorts a sequence naturally (alphabetically and numerically), not lexicographically. >>> a = ['num3', 'num5', 'num2'] >>> natsorted(a) [{u}'num2', {u}'num3', {u}'num5'] >>> b = [('a', 'num3'), ('b', 'num5'), ('c', 'num2')] >>> from operator import itemgetter >>> natsorted(b, key=itemgetter(1)) [({u}'c', {u}'num2'), ({... | def IGQ_(Q6uT, H5ew=lambda WKvO: WKvO, KvA9=float, i1fZ=True, kLQb=True):
try:
return sorted(Q6uT, key=lambda WKvO: g5HF(H5ew(WKvO), number_type=KvA9, signed=i1fZ, exp=kLQb))
except TypeError as e:
if 'unorderable types' in str(tTpl):
return sorted(Q6uT, key=lambda WKvO: g5HF(H5ew(WK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IGQ_(yv6U):\n return sorted(yv6U, key=g5HF)",
"def xDro(yv6U):\n yv6U.sort(key=g5HF)",
"def PjmN(fUYa):\n return sorted(fUYa, key=rWDP)",
"def yLtC(YKHO):\n KCHu = 'sample1 sample2 sample11 sample12'.split()\n YKHO.assertEqual(xDro(KCHu), 'sample1 sample2 sample11 sample12'.split())\n K... | [
"0.74952155",
"0.74768174",
"0.74548995",
"0.72836107",
"0.7272402",
"0.6909862",
"0.6882879",
"0.6769698",
"0.657235",
"0.657235",
"0.6534188",
"0.6512605",
"0.65114564",
"0.65060633",
"0.6485239",
"0.6460914",
"0.64180344",
"0.63837373",
"0.6367795",
"0.6362458",
"0.6357439... | 0.72283715 | 5 |
Return a provider for this entry, or None if none are fund | def MFBN(YKHO):
if YKHO.provided_by:
return list(YKHO.provided_by)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MFBN(YKHO) -> h8nf[uBwj]:\n if not YKHO.provider:\n return None\n return uBwj.objects.get_subclass(pk=YKHO.provider.pk)",
"def kT1P(YKHO) -> h8nf[uBwj]:\n return YKHO._provider",
"def kT1P(YKHO):\n try:\n return YKHO._db.providers[YKHO._dbattr('provider')]\n except KeyError:\n ... | [
"0.7247628",
"0.6971993",
"0.693917",
"0.6874071",
"0.6558484",
"0.64705896",
"0.634195",
"0.63254255",
"0.63254255",
"0.6318839",
"0.62664706",
"0.62477016",
"0.62474966",
"0.6197627",
"0.6098378",
"0.60772276",
"0.60581833",
"0.6009731",
"0.5994667",
"0.5939482",
"0.58209",... | 0.69177693 | 3 |
Rounds a float to the next higher, odd number and returns an int. | def O7cO(WKvO):
return int(oyIN.ceil(WKvO) // 2 * 2 + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ABP(NGUd):\n return int(round(NGUd))",
"def PLNm(WKvO: float) -> int:\n return round(WKvO * 100)",
"def pBSp(exwG: float) -> int:\n return int(exwG)",
"def w0Kp(eHNT):\n return int(oyIN.round(eHNT))",
"def Fgca(eHNT: SupportsFloat) -> int:\n return int(oyIN.ceil(eHNT))",
"def pBSp(exw... | [
"0.6515358",
"0.65141606",
"0.6482262",
"0.64531314",
"0.6435338",
"0.6423786",
"0.64132315",
"0.6332228",
"0.6300176",
"0.62954473",
"0.6271339",
"0.6220065",
"0.6179443",
"0.61396897",
"0.6044374",
"0.60331684",
"0.6007368",
"0.59475386",
"0.5904001",
"0.5889451",
"0.587316... | 0.63668364 | 7 |
Yield successive nsized chunks from l. | def AyNP(vC9B, exwG):
for YRbF in Ni9Y(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038813",
"0.79248375",
"0.7923423",
"0.7885103",
"0.78773195",
"0.7815877",
"0.77655786",
"0.77556044",
"0.77441615",
"0.7731815",
"0.77288336",
"0.772473",
"0.77028215",
"0.76889825",
"0.76889825",
"0.7664208",
"0.76570904",
"0.7655856",
"0.7655856",
"0.76458347",
"0.764... | 0.7473358 | 32 |
Yield special chunks from l. | def OnVc(vC9B, gtI8):
gtI8 = [2, 4, 8, 16, 32, 64]
yuVB = 0
xEai = 0
while True:
BDwY = xEai
if BDwY > len(vC9B) - 1:
break
xEai = BDwY + gtI8[yuVB]
yuVB = (yuVB + 1) % len(gtI8)
yield vC9B[BDwY:xEai] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def dlVb(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.7605439",
"0.74776727",
"0.74354833",
"0.7345512",
"0.73297155",
"0.72910947",
"0.7256956",
"0.7144419",
"0.713686",
"0.713686",
"0.71151924",
"0.7104219",
"0.7086884",
"0.70718455",
"0.7015892",
"0.70150197",
"0.7010776",
"0.7002283",
"0.69969225",
"0.69969225",
"0.698990... | 0.0 | -1 |
Test if this labyrinth list of nodes is equal to an other list of nodes. Return True if the lists are the same, False else. | def SMLW(YKHO, Asfd, HS39):
if len(Asfd) != len(HS39):
return False
else:
Asfd = sorted(Asfd, key=lambda WKvO: WKvO.num)
HS39 = sorted(HS39, key=lambda WKvO: WKvO.num)
for YRbF, Q6kx in enumerate(Asfd):
if len(Q6kx.connected_to) != len(HS39[YRbF].connected_to):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AP73(zznG, Wd5v):\n return len(zznG) == len(Wd5v) and all([WKvO == LVAh for WKvO, LVAh in zip(zznG, Wd5v)])",
"def xa14(YKHO, Elif: LinkedList) -> bool:\n cXbL = YKHO._first\n d1Iq = Elif._first\n p6XU = True\n while p6XU and cXbL is not None and (d1Iq is not None):\n if cXbL.item != d1... | [
"0.73232615",
"0.7302792",
"0.72638583",
"0.7238595",
"0.71936786",
"0.6982857",
"0.6915042",
"0.6912449",
"0.6912093",
"0.6910182",
"0.68487555",
"0.6829646",
"0.68256193",
"0.6825079",
"0.6809668",
"0.6764149",
"0.6756064",
"0.6748823",
"0.6730351",
"0.6709269",
"0.6703674"... | 0.7905905 | 0 |
Close connection when class object is garbage collected | def fFx9(YKHO):
YKHO.close_connection()
YKHO.close_engine() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO.conn.close()\n gigf.collect()",
"def DDI8(YKHO):\n YKHO.connection = None",
"def DDI8(YKHO):\n YKHO.connection = None",
"def DDI8(YKHO):\n YKHO.connection.close()",
"def DDI8(YKHO):\n YKHO._connection.close()",
"def mzWe(YKHO):\n if YKHO.connection:\n YK... | [
"0.8247631",
"0.82462347",
"0.79897016",
"0.79579836",
"0.7908414",
"0.7801764",
"0.77779824",
"0.77334297",
"0.7681331",
"0.7675295",
"0.7671122",
"0.76388806",
"0.76286304",
"0.76245934",
"0.7614287",
"0.7583629",
"0.7583629",
"0.75770783",
"0.7563015",
"0.7560027",
"0.7560... | 0.79511744 | 4 |
Returns starting state of the board. | def W9gz():
return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)",
"def rEkR():\n return H66R.Board()",
"def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))",
"def D3Ar(YKHO):\n gnPz.raiseNotDefined()",
"def D3Ar(YKHO):\n gnPz.raiseNotDefined()",
"def D3Ar(Y... | [
"0.8081514",
"0.7890486",
"0.7534929",
"0.72789717",
"0.72789717",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
... | 0.0 | -1 |
Returns player who has the next turn on a board. | def oyg0(iBIi):
bi9I = 0
wGlg = 0
for rdlD in iBIi:
bi9I += rdlD.count(EcVT)
wGlg += rdlD.count(LTX_)
if bi9I <= wGlg:
return EcVT
else:
return LTX_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zia_(iBIi, UwI3):\n RUgX = VlLD.opponent(UwI3)\n if VlLD.any_legal_move(RUgX, iBIi):\n return RUgX\n elif VlLD.any_legal_move(UwI3, iBIi):\n return UwI3\n return None",
"def Zia_(YKHO, iBIi, UwI3):\n RUgX = YKHO.opponent(UwI3)\n iiQJ = YKHO.any_legal_move(RUgX, iBIi)\n v5zX... | [
"0.7911148",
"0.7521969",
"0.74204457",
"0.73687756",
"0.71954805",
"0.69775087",
"0.69621766",
"0.69253695",
"0.69208723",
"0.69010353",
"0.6845991",
"0.6841043",
"0.6838282",
"0.68265843",
"0.67751175",
"0.67751175",
"0.6769739",
"0.6713109",
"0.67060393",
"0.66561204",
"0.... | 0.0 | -1 |
Returns the optimal action for the current player on the board. | def SR1K(iBIi):
if f9TP(iBIi):
return None
lrMd = -1
rKzo = 1
r8IL = None
for XeOP in xASv(iBIi):
if oyg0(iBIi) == EcVT:
Dg7R = dgIT(Aofo(iBIi, XeOP))
if Dg7R > lrMd:
r8IL = XeOP
lrMd = Dg7R
if Dg7R == 1:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction",
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0,... | [
"0.7766856",
"0.76323676",
"0.75855315",
"0.75285065",
"0.75175256",
"0.74667144",
"0.7460485",
"0.74263537",
"0.7416421",
"0.73943585",
"0.7375846",
"0.7333894",
"0.73147565",
"0.7306611",
"0.7284639",
"0.72650313",
"0.72650313",
"0.7250975",
"0.72331834",
"0.7203267",
"0.71... | 0.7032568 | 34 |
Recursive function to calculate primes up to n. Incorporates fact that it is enought to examine multiples of the prime numbers up to sqrt(n) | def rPed(exwG):
if exwG == 0 or exwG == 1:
return []
else:
XP5J = rPed(int(PZyS(exwG)))
e1xx = {r845 for YRbF in XP5J for r845 in Ni9Y(YRbF * 2, exwG + 1, YRbF)}
XP5J = {WKvO for WKvO in Ni9Y(2, exwG + 1) if WKvO not in e1xx}
return XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rPed(exwG):\n PaQH = exwG ** 0.5\n hxx9 = [2]\n hxx9 += [YRbF for YRbF in range(3, exwG) if YRbF % 2 > 0]\n for YRbF in hxx9:\n if YRbF != 0 and YRbF <= PaQH:\n for r845 in hxx9[hxx9.index(YRbF) + 1:]:\n if r845 % YRbF == 0:\n hxx9[hxx9.index(r845... | [
"0.7935951",
"0.7668389",
"0.7620961",
"0.7600138",
"0.75702995",
"0.756856",
"0.7554707",
"0.7548644",
"0.7548644",
"0.7532233",
"0.74427325",
"0.7426799",
"0.74236226",
"0.74150395",
"0.739119",
"0.7381784",
"0.7375258",
"0.737497",
"0.73526174",
"0.7323778",
"0.73236036",
... | 0.7261082 | 30 |
mag2flux is a function to convert AB magnitude to flam. | def jr9H(FOSW, BNYn, qJa9):
DCsS = 10 ** (-0.4 * (FOSW + 2.406 + 5.0 * oyIN.log10(qJa9)))
OwFD = DCsS * oyIN.log(10.0) * 0.4 * BNYn
return (DCsS, OwFD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jQPt(FOSW, ebli):\n return 10 ** (-0.4 * (FOSW - ebli))",
"def mDCN(OlCw, _eu6):\n return epAf.pow(10, -0.4 * (OlCw + zYlJ[_eu6] - 8.9))",
"def bDz6(FOSW, PXGI='maggy'):\n shSu = 10.0 ** (-0.4 * FOSW)\n if PXGI.lower().strip() == 'jy':\n return shSu * 3631.0\n if PXGI.lower().strip() ... | [
"0.7661163",
"0.76591533",
"0.7333106",
"0.72614634",
"0.7211719",
"0.70236474",
"0.6988646",
"0.69357157",
"0.6924593",
"0.683043",
"0.6827836",
"0.67973167",
"0.6711155",
"0.64483994",
"0.63337207",
"0.6265689",
"0.61794144",
"0.6156138",
"0.61506623",
"0.6146087",
"0.61387... | 0.77937734 | 0 |
The Cloud SQL collation value. | def soVO(YKHO) -> str:
return qe4Y.get(YKHO, 'collation') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def soVO(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'collation')",
"def soVO(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'collation')",
"def soVO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'collation')",
"def soVO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'colla... | [
"0.8259287",
"0.8153705",
"0.80996335",
"0.80996335",
"0.7659596",
"0.68911797",
"0.670639",
"0.64089656",
"0.60281724",
"0.59352213",
"0.57849586",
"0.5730767",
"0.5675355",
"0.5572144",
"0.5428307",
"0.5390299",
"0.5383137",
"0.5351167",
"0.53033125",
"0.5221688",
"0.521594... | 0.8421332 | 1 |
The name of the Cloud SQL instance. This does not include the project ID. | def KAOR(YKHO) -> str:
return qe4Y.get(YKHO, 'instance') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._client.project_name + '/instances/' + YKHO.instance_id",
"def phH8(YKHO):\n return YKHO._cloud_name",
"def mWFP(YKHO):\n vzeF.debug(YKHO._shelly_cloud_device_name + ' >>> ' + YKHO._shelly_cloud_entity_name + ' >>> name() >>> ' + YKHO._shelly_cloud_device_name)\n retur... | [
"0.82063854",
"0.72441554",
"0.7120339",
"0.70252013",
"0.6960602",
"0.69432664",
"0.6916303",
"0.6888547",
"0.6888547",
"0.68760103",
"0.68502605",
"0.6832102",
"0.6796444",
"0.67627484",
"0.67627484",
"0.67627484",
"0.67627484",
"0.67395926",
"0.673649",
"0.67351305",
"0.67... | 0.0 | -1 |
The URI of this resource. | def b_Ox(YKHO) -> str:
return qe4Y.get(YKHO, 'self_link') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j8eK(YKHO) -> str:\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def zFc... | [
"0.8812683",
"0.8718146",
"0.8718146",
"0.8718146",
"0.8718146",
"0.8718146",
"0.8718146",
"0.8695291",
"0.8589555",
"0.8529888",
"0.83778185",
"0.8267541",
"0.82543814",
"0.81543136",
"0.8079777",
"0.80435663",
"0.8043164",
"0.8011471",
"0.7937294",
"0.786632",
"0.786632",
... | 0.0 | -1 |
Capacity is the static size of the array. fillValue is placed at each position. | def FIMM(YKHO, b7hB, IntE=None):
YKHO._items = list()
YKHO._fillValue = IntE
YKHO._DEFAULT_CAPACITY = b7hB
YKHO._logicalSize = 0
for UHFx in Ni9Y(b7hB):
YKHO._items.append(YKHO._fillValue) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, b7hB, IntE=None):\n YKHO._items = list()\n for UHFx in range(b7hB):\n YKHO._items.append(IntE)",
"def FIMM(YKHO, b7hB, IntE=None):\n YKHO._items = list()\n YKHO._logicalSize = 0\n YKHO._capacity = b7hB\n YKHO._fillValue = IntE\n for UHFx in range(b7hB):\n YKHO._i... | [
"0.72756517",
"0.7070662",
"0.69123954",
"0.68207943",
"0.6160506",
"0.6125096",
"0.6075469",
"0.603681",
"0.6020266",
"0.5992947",
"0.5944047",
"0.5909096",
"0.5896172",
"0.58946216",
"0.5862521",
"0.58049583",
"0.57762265",
"0.5775138",
"0.57401764",
"0.5713871",
"0.5699855... | 0.7228704 | 1 |
Returns the logical size of the array. | def t_lK(YKHO):
return YKHO._logicalSize | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cn47(YKHO):\n return YKHO._array_size",
"def fI9Y(YKHO):\n return YKHO.arraySize",
"def zNig(YKHO):\n return YKHO._logicalSize",
"def u54L(YKHO):\n u54L = 0\n jzdc = YKHO.array_form\n for YRbF in Ni9Y(len(jzdc)):\n if jzdc[YRbF] != YRbF:\n u54L += 1\n return u54L",
... | [
"0.7718455",
"0.7451456",
"0.73996395",
"0.7324857",
"0.73047715",
"0.72781324",
"0.7265324",
"0.7227996",
"0.72259665",
"0.71991956",
"0.71350807",
"0.71260655",
"0.70993924",
"0.70918214",
"0.70736474",
"0.70736474",
"0.7060375",
"0.7049942",
"0.7030675",
"0.7029503",
"0.69... | 0.72903556 | 5 |
Return the self.data attribute. | def yLtf(YKHO):
return YKHO.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPrm(YKHO):\n if not hasattr(YKHO, '_data'):\n YKHO._data = YKHO._get_data()\n return YKHO._data",
"def nPrm(YKHO):\n return YKHO.__data",
"def nPrm(YKHO):\n return YKHO.__data",
"def nPrm(YKHO):\n return YKHO.__data",
"def nPrm(YKHO):\n return YKHO.__data",
"def nPrm(YKHO):\... | [
"0.9074872",
"0.90206456",
"0.90206456",
"0.90206456",
"0.90206456",
"0.90206456",
"0.90206456",
"0.90206456",
"0.90206456",
"0.90206456",
"0.89081913",
"0.89081913",
"0.89081913",
"0.89081913",
"0.88319004",
"0.88319004",
"0.88319004",
"0.88211125",
"0.8807483",
"0.8782527",
... | 0.8939653 | 12 |
Replace the existing value of the self.data attribute with new_data parameter. | def RiKd(YKHO, Cc00):
YKHO.data = Cc00 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gewE(YKHO, _Q4K):\n pass",
"def gewE(YKHO, Zoiw):\n YKHO.record(tq_1.currentframe())\n if oyIN.shape(Zoiw) == oyIN.shape(YKHO.data):\n YKHO.data = oyIN.copy(Zoiw)",
"def AdX8(YKHO, nPrm, LMAE=False):\n YKHO._data.update(dict(((H5ew, YKHO._deserialize(H5ew, BWXx)) for H5ew, BWXx in nPrm.i... | [
"0.79708254",
"0.77804124",
"0.7759733",
"0.77236235",
"0.77044475",
"0.7677274",
"0.7677114",
"0.7594061",
"0.75861555",
"0.75861555",
"0.75861555",
"0.75591713",
"0.748598",
"0.7440727",
"0.7426882",
"0.7426882",
"0.73479205",
"0.7342873",
"0.73273635",
"0.7314341",
"0.7314... | 0.86256135 | 0 |
Replace the existing value of the self.previous attribute with new_previous parameter. | def orlX(YKHO, FD1P):
YKHO.previous = FD1P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GQKu(YKHO, THkp):\n YKHO.prev = THkp",
"def THkp(YKHO, THkp):\n YKHO._prev = THkp",
"def OxtZ(YKHO, XP5J) -> None:\n YKHO.prev = XP5J",
"def THkp(YKHO, XP5J):\n assert type(XP5J) is type(YKHO)\n YKHO.__prev = XP5J",
"def AOBR(YKHO, zbF_):\n YKHO.set_val(YKHO.val - 1)",
"def AOBR(YKH... | [
"0.7485387",
"0.7345779",
"0.70232517",
"0.67961776",
"0.67961144",
"0.6632646",
"0.6509174",
"0.64484227",
"0.64224696",
"0.63190126",
"0.62682027",
"0.6267136",
"0.6227941",
"0.62051636",
"0.6194809",
"0.6149025",
"0.6143375",
"0.6099491",
"0.6030055",
"0.6028772",
"0.59858... | 0.8530623 | 0 |
Checks if group "group" contains a sprite with bottom "bottom" | def wLOC(uOe2: pygame.sprite.Group, es2x: int):
for Jqc7 in uOe2:
if Jqc7.rect.bottom == es2x:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sd4Z(uOe2: pygame.sprite.Group):\n es2x = max(map(lambda odnt: odnt.rect.bottom, uOe2), default=ZRd8[1])\n return list(filter(lambda odnt: odnt.rect.bottom == es2x, uOe2))",
"def j85K(YKHO):\n xs73 = True\n for Jqc7 in YKHO.overlapping_sprites:\n if Jqc7 not in YKHO.game.neutrinos:\n ... | [
"0.7531233",
"0.7388793",
"0.72969383",
"0.673616",
"0.66741395",
"0.66741395",
"0.6610362",
"0.6590212",
"0.6354262",
"0.63413304",
"0.6324987",
"0.61557347",
"0.61441636",
"0.6143327",
"0.6131096",
"0.611867",
"0.60630614",
"0.6060846",
"0.6043869",
"0.603344",
"0.58899593"... | 0.909547 | 0 |
Returns the bottom of the lowest (on the screen) sprite in the group | def RUyY(uOe2: pygame.sprite.Group):
return max(map(lambda odnt: odnt.rect.bottom, uOe2), default=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sd4Z(uOe2: pygame.sprite.Group):\n es2x = max(map(lambda odnt: odnt.rect.bottom, uOe2), default=ZRd8[1])\n return list(filter(lambda odnt: odnt.rect.bottom == es2x, uOe2))",
"def Nzkc(YKHO):\n return min(YKHO.y, YKHO.y + YKHO.h)",
"def nh0s(uOe2: pygame.sprite.Group, mawX: pygame.Rect):\n dBQc ... | [
"0.73001444",
"0.72404194",
"0.7028626",
"0.6935661",
"0.68792474",
"0.68075174",
"0.6570141",
"0.64901865",
"0.6404709",
"0.6368164",
"0.63623774",
"0.63623774",
"0.6303562",
"0.61939776",
"0.61793435",
"0.6111214",
"0.61104757",
"0.6104443",
"0.6100537",
"0.60762507",
"0.60... | 0.8172834 | 0 |
Returns the highest (on the screen) top of the group's sprites whose rects have the same centerx as "rect.centerx" and lower (on the screen) centery than "rect.centery" | def nh0s(uOe2: pygame.sprite.Group, mawX: pygame.Rect):
dBQc = filter(lambda odnt: odnt.rect.centerx == mawX.centerx and odnt.rect.centery >= mawX.centery, uOe2)
return min(map(lambda odnt: odnt.rect.top, dBQc), default=ZRd8[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cp3Z(YKHO):\n return max(YKHO.y, YKHO.y + YKHO.h)",
"def DFvX(YKHO):\n WKvO, LVAh = YKHO.position\n mawX = YKHO.collide_rect\n return (WKvO + mawX.width / 2, LVAh)",
"def qrkC(YKHO):\n WKvO, LVAh = YKHO.position\n mawX = YKHO.collide_rect\n return (WKvO - mawX.width / 2, LVAh - mawX.he... | [
"0.7039691",
"0.6915761",
"0.6821774",
"0.6605683",
"0.62852794",
"0.6066323",
"0.6051855",
"0.5955852",
"0.5951763",
"0.5937266",
"0.58950734",
"0.58910495",
"0.5854065",
"0.58135986",
"0.57965654",
"0.57935864",
"0.57926077",
"0.5782943",
"0.5777361",
"0.57640344",
"0.57552... | 0.82293385 | 0 |
Convert a MAC address to a readable/printable string | def Z2MB(UTX6):
print(':'.join(('%02x' % PDy8(Fg_i) for Fg_i in UTX6)))
return ':'.join(('%s' % format(PDy8(Fg_i), '0>8b') for Fg_i in UTX6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b78J(Pp4r):\n return '%.2x:%.2x:%.2x:%.2x:%.2x:%.2x' % tuple(map(ord, list(Pp4r)))",
"def wMkj(UTX6):\n return ':'.join(('%02x' % ord(Fg_i) for Fg_i in UTX6))",
"def QeBN():\n hww6 = zhLG()\n DLdL = ':'.join((('%012x' % hww6)[YRbF:YRbF + 2] for YRbF in range(0, 12, 2)))\n return DLdL",
"de... | [
"0.8274901",
"0.7819506",
"0.7799624",
"0.7411498",
"0.7411498",
"0.7411498",
"0.7411498",
"0.7393615",
"0.72612065",
"0.7243841",
"0.7214834",
"0.71748555",
"0.7040925",
"0.69946724",
"0.6982126",
"0.6982003",
"0.6913715",
"0.67323697",
"0.671812",
"0.6642322",
"0.6640873",
... | 0.78023726 | 2 |
Adds a NonLocal block for self attention to the input tensor. Input tensor can be or rank 3 (temporal), 4 (spatial) or 5 (spatiotemporal). | def CzV0(vhpA, f8Bx=None, Rrsh=2, Tuqy='embedded', r85D=True):
ivrq = vhpA.shape
if Tuqy not in ['gaussian', 'embedded', 'dot', 'concatenate']:
raise ValueError('`mode` must be one of `gaussian`, `embedded`, `dot` or `concatenate`')
if Rrsh is None:
Rrsh = 1
MFrU, fRuM, nSKI = (None, Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XkN1(pKvt, rrBf, SDIR, GPtr):\n with ZylS.variable_scope(rrBf):\n jHsn = pKvt.shape[-1].value\n CkYf = Xth3(pKvt, 'ln_1')\n Fw3A, ZaSX = v2uf(CkYf, 'attn', jHsn, past=SDIR, config=GPtr)\n yvT9 = Fw3A + pKvt\n CkYf = Xth3(yvT9, 'ln_2')\n vVET = ZcdJ(CkYf, 'mlp', jHsn... | [
"0.62141865",
"0.6140175",
"0.56112856",
"0.5536797",
"0.5524303",
"0.54469675",
"0.53028214",
"0.52685374",
"0.52312326",
"0.5201063",
"0.5178927",
"0.51200116",
"0.5079189",
"0.5038994",
"0.5023708",
"0.5018548",
"0.501318",
"0.49847504",
"0.49840927",
"0.49484515",
"0.4929... | 0.47946736 | 29 |
Retorna True se possuir as mesmas coordenadas que o outro vetor | def xa14(YKHO, Elif):
return YKHO._coords == Elif._coords | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DMG3(YKHO, Elif):\n xcc7 = M7rk(YKHO)\n X_w5 = M7rk(Elif)\n RKD7.info(' Swath 2d False Corners: ' + str(xcc7))\n RKD7.info(' Other 2d False Corners: ' + str(X_w5))\n for YRbF in xcc7:\n if oqsX(YRbF, X_w5):\n return True\n for YRbF in X_w5:\n if oqsX(YRbF, xcc7)... | [
"0.66272175",
"0.6620873",
"0.6529714",
"0.64961547",
"0.64827085",
"0.64459527",
"0.6431178",
"0.6398887",
"0.63909835",
"0.63765305",
"0.63517183",
"0.63402206",
"0.63402206",
"0.63402206",
"0.6335013",
"0.6323806",
"0.63210446",
"0.63041556",
"0.63010156",
"0.6261332",
"0.... | 0.0 | -1 |
Assert ValueError raised if unknown string passed to sample label | def toA9():
with trZe.raises(ValueError):
gnPz.get_label_indices(3, 'random_str') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RMs0():\n uZhj = 'HISTOGRAM X temperature'\n with trZe.raises(F0vO):\n unpa(uZhj)",
"def OL5e(YKHO):\n\n class NoStr:\n\n def zAg0(YKHO) -> str:\n raise NotImplementedError\n with trZe.raises(TypeError, match='The given label'):\n wHLO('water', label=hlg2())",
"d... | [
"0.76607716",
"0.7414696",
"0.72858727",
"0.7277616",
"0.72738194",
"0.72576404",
"0.7256908",
"0.7159097",
"0.6929822",
"0.6865203",
"0.68603027",
"0.67808443",
"0.67769974",
"0.67663556",
"0.67543674",
"0.6659788",
"0.66358453",
"0.6624844",
"0.661589",
"0.65718335",
"0.656... | 0.7018802 | 8 |
return min quadrant containing self. | def oUOD(YKHO):
MW8s = b28Q.empty_quadrant(2)
for AU8u in YKHO.endpoints:
MW8s.add_point(AU8u)
return MW8s | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def min(YKHO):\n return YKHO._min_coords",
"def min(YKHO):\n return min(YKHO)",
"def min(YKHO):\n return YKHO._min(YKHO.root)",
"def ohV5(YKHO):\n if YKHO.left:\n return YKHO.left.get_min()\n return YKHO.value",
"def MW8s(YKHO) -> b28Q:\n if YKHO.x > 0:\n if YKHO.y > 0:\n ... | [
"0.6570156",
"0.6567512",
"0.64077145",
"0.63673735",
"0.63671726",
"0.63096184",
"0.6303415",
"0.62699646",
"0.6267708",
"0.6267708",
"0.62233114",
"0.6182831",
"0.6164376",
"0.6160065",
"0.615448",
"0.6129046",
"0.6098565",
"0.60662574",
"0.6057143",
"0.60569054",
"0.605290... | 0.58154714 | 47 |
Sets the gift needed for a friend character. | def ABs8(YKHO, h2MS):
YKHO.gift = h2MS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lv7h():\n global character\n bseI['Damage'] = ajWY(1, 6)",
"async def _forcesetgender(YKHO, OaeV, *qIxc):\n if len(qIxc) < 2:\n await OaeV.send('Include both a name and a gender!')\n return\n XRvq = p9bx.getGodName(qIxc[0], OaeV.guild.id)\n if XRvq:\n if len(qIxc[1]) > 19:... | [
"0.5870756",
"0.5683692",
"0.54332036",
"0.54275256",
"0.5402585",
"0.5094512",
"0.5079681",
"0.50593126",
"0.50358963",
"0.5034555",
"0.50138766",
"0.5001107",
"0.49965438",
"0.49908543",
"0.4982959",
"0.49759075",
"0.49700886",
"0.4932639",
"0.49175462",
"0.4915319",
"0.491... | 0.71853125 | 0 |
Shifts the canvas to the left as many places as count. | def srge(YKHO, UHFx):
YKHO._c = YKHO._c[UHFx:] + R3u8('0') * UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BOYQ(YKHO):\n YKHO.rect.centerx -= 9",
"def jDQv(YKHO):\n if YKHO.xcor() < -230:\n YKHO.setx(-255)\n else:\n kNbz = YKHO.xcor() - 40\n YKHO.setx(kNbz)",
"def LFlW():\n global x, canvas\n g_NO.create_line(WKvO, LVAh, WKvO - 10, LVAh)\n WKvO -= 10",
"def BOYQ(YKHO):\n... | [
"0.6973135",
"0.65973675",
"0.65681225",
"0.6491277",
"0.6452235",
"0.64477813",
"0.64477813",
"0.6382884",
"0.63495415",
"0.6223446",
"0.61753625",
"0.61332804",
"0.6129764",
"0.60913485",
"0.60909826",
"0.60822546",
"0.6027661",
"0.598671",
"0.5962182",
"0.59535974",
"0.589... | 0.6103269 | 13 |
Returns a bitarray of the requested column, starting from offset. | def Osfr(YKHO, exwG, vgXP=0):
return YKHO._c[exwG * YKHO.__height + vgXP:(exwG + 1) * YKHO.__height] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mr92(YKHO, LVAh):\n D_Sx = YKHO._col_range(LVAh)\n fvDH = []\n for YRbF in D_Sx:\n fvDH.append(YKHO._read_bit(YRbF))\n return fvDH",
"def Nx62(YKHO):\n gQVb = [WKvO + YKHO.bitcell_array_inst.lx() for WKvO in YKHO.bitcell_array.get_column_offsets()]\n return gQVb",
"def Ocye(Zb5C):\... | [
"0.6265687",
"0.62398607",
"0.5663601",
"0.5645953",
"0.5600698",
"0.55636734",
"0.54829437",
"0.5459227",
"0.5454153",
"0.5450655",
"0.5450495",
"0.5449891",
"0.54187745",
"0.54068595",
"0.53789526",
"0.5348315",
"0.5333947",
"0.5326166",
"0.5322707",
"0.5305193",
"0.5281067... | 0.6364678 | 0 |
Get the URL address of the current page. | def hKhs(YKHO):
return YKHO.base_driver.current_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKhs(YKHO) -> str:\n return YKHO.__page_url",
"def GwPS(YKHO):\n return YKHO.browser.current_url",
"def bW0a():\n return GwPS",
"def hKhs(YKHO):\n bD7m = YKHO.driver.current_url\n return bD7m",
"def zk5M(YKHO):\n Aofo = YKHO.CORE.current_url\n YKHO.log_info(f'Browser.getUrl: Curren... | [
"0.78724766",
"0.7816947",
"0.75905514",
"0.75497556",
"0.75209177",
"0.7510771",
"0.71664745",
"0.7093864",
"0.7093456",
"0.70141834",
"0.6956512",
"0.6902963",
"0.68774617",
"0.6868716",
"0.6845411",
"0.6841052",
"0.68401",
"0.68181163",
"0.6793231",
"0.6751907",
"0.6703284... | 0.73895264 | 6 |
Return the nearest value to n, that's within minimum to maximum (incl) | def DZbg(vELP, exwG, PtQX):
return max(vELP, min(exwG, PtQX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UYdI(exwG, FGW3):\n return epAf.floor(exwG / FGW3 + 0.5) * FGW3",
"def hKxl(jzdc, exwG):\n oeNL = SPuy(jzdc, exwG)\n if oeNL == 0:\n return jzdc[0]\n if oeNL == len(jzdc):\n return jzdc[-1]\n h3Aq = jzdc[oeNL - 1]\n DOuq = jzdc[oeNL]\n if DOuq - exwG < exwG - h3Aq:\n ... | [
"0.80670035",
"0.7556305",
"0.74266535",
"0.6989169",
"0.695356",
"0.6940631",
"0.68467945",
"0.68275744",
"0.68275744",
"0.6813598",
"0.68054414",
"0.6789903",
"0.67638695",
"0.67372537",
"0.673462",
"0.6709242",
"0.6693157",
"0.6693157",
"0.6693157",
"0.66812485",
"0.662817... | 0.6287495 | 39 |
Returns the block object corresponding to the given block number | def fjq1(YKHO, mLGw: int) -> dict[str, ImMB]:
aKNt: tUIv = tUIv(YKHO.w3.eth.get_block(mLGw))
aKNt['hash'] = kguy(aKNt['hash'])
return dict(aKNt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gyco(YKHO, XSHN):\n nPrm = YKHO._rpc_request('eth_getBlockByNumber', [hex(XSHN), True], 'result')\n return vFEJ(nPrm)",
"def gyco(rtz6):\n return G4JS.get(V112 + f'/api/block/{rtz6}').json()",
"def gyco(YKHO, rtz6):\n return YKHO._blocks.get(rtz6)",
"def QjAC(YKHO, XSHN):\n nPrm = YKHO.get... | [
"0.8087125",
"0.7556677",
"0.75418997",
"0.7485878",
"0.73917955",
"0.73745257",
"0.7338567",
"0.7326097",
"0.721394",
"0.7193616",
"0.71194774",
"0.7058133",
"0.7023227",
"0.6988294",
"0.69521517",
"0.69308317",
"0.6920114",
"0.6916975",
"0.6859873",
"0.6843513",
"0.68090606... | 0.6629838 | 32 |
Get a specific invoice | def NMoC(YKHO, d_Cv):
IgS6 = nB5K.query.filter(nB5K.invoice_id == d_Cv).first()
if IgS6:
if c5ow.access == dEmi or c5ow == IgS6.user:
return cs4A(IgS6.directory, filename=IgS6.filename, cache_timeout=0)
return eTsH(403)
return eTsH(404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmuD(YKHO, g9KT=None, d_Cv=''):\n if g9KT is None:\n g9KT = YKHO.org_id\n return YKHO.get('{}/orgs/{}/invoices/{}'.format(gsRm.A1.value, g9KT, d_Cv))",
"def xEi_(YKHO):\n return YKHO.base.get('invoice', [])",
"def zUPl(YKHO) -> MBNZ:\n S0MI.info('Getting latest invoice from EON Romania')... | [
"0.758962",
"0.73973596",
"0.7232925",
"0.7215784",
"0.7116271",
"0.7105881",
"0.7084835",
"0.70778435",
"0.68534166",
"0.68458676",
"0.67541814",
"0.67020684",
"0.6611625",
"0.6592966",
"0.65505654",
"0.6401914",
"0.62992907",
"0.62443125",
"0.62132996",
"0.61796445",
"0.613... | 0.63232446 | 16 |
Paint a checkbox without the label. | def vhqh(YKHO, Z1Xo, MTKo, d6pt):
if YKHO.verbose:
print('myCheckBoxDelegate.paint()')
YKHO.drawCheck(Z1Xo, MTKo, MTKo.rect, wDYU.Qt.Unchecked if int(d6pt.data()) == 0 else wDYU.Qt.Checked) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nsuM(*qIxc, **B2fa):\n return nAU3.RendererNative_DrawCheckBox(*qIxc, **B2fa)",
"def iFD3(YKHO, TEdI):\n TEdI.setStateCheck(not TEdI.getStateCheck())",
"def vhqh(YKHO, Z1Xo, MTKo, d6pt):\n YKHO.drawCheck(Z1Xo, MTKo, MTKo.rect, uaAZ.Unchecked if int(d6pt.data()) == 0 else uaAZ.Checked)",
"def uKt... | [
"0.6658085",
"0.61212695",
"0.6071485",
"0.6009462",
"0.598491",
"0.57794183",
"0.57696193",
"0.56871",
"0.5511196",
"0.54637843",
"0.5397577",
"0.5356402",
"0.53238875",
"0.53046924",
"0.5289639",
"0.52892673",
"0.52746964",
"0.5273674",
"0.5241159",
"0.5222188",
"0.5207558"... | 0.5316491 | 13 |
Call this to declare a queue from Python. | def YtN8(YKHO, rlUa):
from trove.openstack.common.rpc import create_connection
with create_connection() as w2B8:
R72Z = w2B8.declare_topic_consumer(topic=rlUa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YtN8(YKHO):\n YKHO._channel.queue_declare(queue=YKHO._queue_name, durable=True)\n print('Queue declared....')",
"def ljvn(YKHO):\n YKHO.logger.info('declaring queue %s', YKHO.queue)\n if YKHO.otq:\n YKHO._channel.queue_declare(YKHO.on_queue_declareok, YKHO.queue, auto_delete=True)\n els... | [
"0.78895473",
"0.77636707",
"0.76180214",
"0.75774866",
"0.733846",
"0.7275951",
"0.7204507",
"0.7119546",
"0.69524336",
"0.6901246",
"0.6829329",
"0.6776023",
"0.67643684",
"0.6760528",
"0.6749917",
"0.6743524",
"0.6740188",
"0.6689743",
"0.66686416",
"0.66452515",
"0.664437... | 0.7023522 | 8 |
Checks valid password format | def W5z7(YKHO, jTXt):
gVaL = '^[a-zA-Z0-9@_+-.]{3,}$'
return ZbWC.match(gVaL, jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tg18(jTXt):\n return isinstance(jTXt, str) and len(jTXt) >= 8 and ZbWC.search('[A-Z]', jTXt) and ZbWC.search('[0-9]', jTXt)",
"def tg18(nPrm):\n if 'password' not in nPrm:\n return False\n jTXt = nPrm['password']\n if len(jTXt) < 4 or len(jTXt) > 16:\n return False\n return True"... | [
"0.8014377",
"0.7961472",
"0.7835832",
"0.77590317",
"0.7756984",
"0.76763004",
"0.76739216",
"0.7664568",
"0.76487744",
"0.76411885",
"0.7640014",
"0.7607594",
"0.7600007",
"0.7599284",
"0.7593639",
"0.75532585",
"0.7541393",
"0.7498413",
"0.7492344",
"0.74806035",
"0.746394... | 0.77100986 | 5 |
Return a filename within the output directory. | def a_cg(IznC):
return Hy7s.path.join(OTY2, IznC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qc3N(YKHO, Ux0P):\n return Hy7s.path.join(YKHO._output_directory, Ux0P)",
"def Bhr5(IznC):\n return Hy7s.path.join(EcEz.getOutputDir(), IznC)",
"def yFjF(ee9X, Rwn7, Fst3):\n return pmON.join(ee9X, f'CrossrefCitations_{Rwn7}.{Fst3}')",
"def Snra(YKHO, Ux0P):\n return Ux0P[:-4] + '.txt'",
"d... | [
"0.79068506",
"0.7682309",
"0.7528231",
"0.74512047",
"0.7444181",
"0.73997456",
"0.73594296",
"0.73369807",
"0.7334667",
"0.7203401",
"0.72021586",
"0.71942586",
"0.718863",
"0.7164495",
"0.71479046",
"0.7146181",
"0.71377903",
"0.7103986",
"0.7084866",
"0.70560557",
"0.7038... | 0.8252266 | 0 |
Convert a bytes type into a str type | def sh4I(v7uq):
return v7uq.decode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xrD7(wEf2):\n if isinstance(wEf2, bytes):\n return str(wEf2, 'utf8')\n else:\n return wEf2",
"def D6ho(YKHO, nPrm):\n if isinstance(nPrm, str):\n return nPrm\n return nPrm.decode('utf-8')",
"def lMhD(KCHu):\n if isinstance(KCHu, (bytes, bytearray)):\n return KCHu.... | [
"0.84038895",
"0.8048227",
"0.80108756",
"0.80036676",
"0.79327965",
"0.7768747",
"0.7710036",
"0.7669526",
"0.76199824",
"0.76076",
"0.75653654",
"0.7494964",
"0.73805976",
"0.73805976",
"0.7335101",
"0.73164606",
"0.7313014",
"0.7311498",
"0.7305442",
"0.7278219",
"0.727005... | 0.6855471 | 46 |
Gets a collection of `InputExample`s for the train set. | def rNg5(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def rNg5(YKHO):\n raise NotImplementedError()",
"def rNg5(YKHO, eZ_W):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX... | [
"0.73499966",
"0.7173421",
"0.7126833",
"0.65602446",
"0.64204013",
"0.64052176",
"0.63422555",
"0.6290186",
"0.6282746",
"0.625262",
"0.62499267",
"0.6233708",
"0.62225735",
"0.62225735",
"0.6205607",
"0.6205607",
"0.6205607",
"0.6205607",
"0.6205607",
"0.6205607",
"0.620560... | 0.62466323 | 21 |
Gets a collection of `InputExample`s for the dev set. | def JdXm(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdXm(YKHO, eZ_W):\n raise NotImplementedError()",
"def vGUt(YKHO, PU1l):\n return PU1l",
"def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)",
"def JdXm(YKHO):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):... | [
"0.68112403",
"0.6588688",
"0.655683",
"0.6552607",
"0.64272827",
"0.63816285",
"0.6255956",
"0.61930686",
"0.61160946",
"0.6094262",
"0.6054992",
"0.6051947",
"0.5989807",
"0.5927489",
"0.5922901",
"0.5920675",
"0.59200704",
"0.59155166",
"0.59155166",
"0.59155166",
"0.59155... | 0.5994604 | 22 |
Compute 2ndorder finite difference coefficients for a centered, threenode stencil. | def F7Wf(WKvO):
MKlR = WKvO[1:] - WKvO[:-1]
pTep = MKlR[:-1]
A90d = MKlR[1:]
DDBf = 2.0 / (pTep * A90d + pTep * pTep)
L1dM = -2.0 / (pTep * A90d)
VqfF = 2.0 / (pTep * A90d + A90d * A90d)
return (DDBf, L1dM, VqfF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkkC(WKvO, LVAh, plfp='central'):\n if plfp == 'central':\n LVAh = [0] + list(LVAh) + [0]\n M6pt = oyIN.array([LVAh[YRbF - 1] - 2 * LVAh[YRbF] + LVAh[YRbF + 1] for YRbF in range(1, len(LVAh) - 1)])\n UUZ1 = (WKvO[1] - WKvO[0]) ** 2\n return M6pt / UUZ1\n elif plfp == 'five poi... | [
"0.6164855",
"0.6041468",
"0.591912",
"0.59089077",
"0.57669914",
"0.5734599",
"0.56985176",
"0.5676495",
"0.55888265",
"0.5578456",
"0.5574001",
"0.55704814",
"0.55545104",
"0.55524015",
"0.5544189",
"0.5531737",
"0.5528984",
"0.54625225",
"0.5450969",
"0.5446708",
"0.542414... | 0.5608314 | 8 |
Create and configure an instance of the Flask application. | def LUif(zmu8=None):
P4t4 = L2w0(__name__, instance_relative_config=True)
P4t4.config.from_mapping(SECRET_KEY='dev')
try:
Hy7s.makedirs(P4t4.instance_path)
except OSError:
pass
@P4t4.route('/', methods=['GET'])
def wxnX():
return '<h1>This is a test route!<h1><p>Use /acc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bxQM():\n P4t4 = L2w0(import_name=__name__, template_folder='templates', static_folder='static')\n P4t4 = jPWl(P4t4)\n fRSk(P4t4)\n wyyA.init_app(P4t4)\n WWrj(P4t4.config)\n S0MI.info('Set up app & logger.')\n _wue(P4t4.config)\n ptR4(P4t4.config)\n TfOc(P4t4)\n sSY8(P4t4)\n re... | [
"0.8524236",
"0.8516853",
"0.8504485",
"0.83319825",
"0.82396483",
"0.82314265",
"0.8200104",
"0.81300336",
"0.80288595",
"0.8026753",
"0.8019436",
"0.79989535",
"0.7984679",
"0.7978355",
"0.7973289",
"0.7970172",
"0.7959833",
"0.79556865",
"0.7952428",
"0.7946338",
"0.793713... | 0.7487347 | 85 |
Sets the id of this MessageGroup. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def W2tI(YKHO, *qIxc):\n return _VfD.Group_setId(YKHO, *qIxc)",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def ekm0(YKHO, id):\n YKHO._id = id\n return YK... | [
"0.74233574",
"0.74022263",
"0.73261553",
"0.7253963",
"0.71760607",
"0.7020873",
"0.6985994",
"0.69337493",
"0.69337493",
"0.69337493",
"0.69337493",
"0.69337493",
"0.69337493",
"0.6932817",
"0.68581843",
"0.6855207",
"0.6855207",
"0.6855207",
"0.6841887",
"0.6841887",
"0.68... | 0.0 | -1 |
Sets the user_full_name of this MessageGroup. | def V_VB(YKHO, V_VB):
YKHO._user_full_name = V_VB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(YKHO, eHMM):\n YKHO._full_name = eHMM",
"def eHMM(YKHO, eHMM):\n YKHO._full_name = eHMM",
"def BaHi(YKHO, BaHi):\n YKHO._user_name = BaHi",
"def gBdT(YKHO, BWXx):\n YKHO.fullname = BWXx",
"def CXTk(YKHO, CXTk):\n YKHO._sent_by_full_name = CXTk",
"def BaHi(YKHO, BaHi):\n if YKHO... | [
"0.69892496",
"0.69892496",
"0.63426995",
"0.5873931",
"0.5870512",
"0.58664143",
"0.57916003",
"0.5769776",
"0.57607913",
"0.5697961",
"0.5589663",
"0.55581176",
"0.5533578",
"0.5505131",
"0.549579",
"0.549579",
"0.549579",
"0.549579",
"0.549579",
"0.549579",
"0.549579",
"... | 0.8340968 | 0 |
Sets the type of this MessageGroup. | def type(YKHO, type):
BbPm = ['M', 'C', 'P', 'V', '1', 'I', 'U', 'Z', 'S', 'T', 'R', 'J', 'X', 'B', 'G', 'F', 'W', 'H', 'E', 'D', 'N', 'Y', 'A', 'K', 'O', 'Q', 'L', '2', '3', '4', '5']
if type not in BbPm:
raise ValueError('Invalid value for `type` ({0}), must be one of {1}'.format(type, BbPm))
YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TG_K(YKHO, type):\n YKHO._type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def type(YKHO, type: str):\n YKHO._type = type",
"def JBZt(YKHO, JBZt):\n YKHO._item_group_type = JBZt",
"def type(YKHO, type):\n YKHO._type = type",
"d... | [
"0.73644555",
"0.7362164",
"0.7362164",
"0.706289",
"0.7052939",
"0.6881219",
"0.6881219",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"0.6860441",
"... | 0.65050435 | 46 |
Sets the status of this MessageGroup. | def jGRS(YKHO, jGRS):
BbPm = ['D', 'P', 'V', 'S', 'M', 'I', 'R', 'C']
if jGRS not in BbPm:
raise ValueError('Invalid value for `status` ({0}), must be one of {1}'.format(jGRS, BbPm))
YKHO._status = jGRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def cYSk(YKHO, jGRS):\n with YKHO.lock:\n YKHO.status = jGRS",
"def tZbN(YKHO, jGRS):\n YKHO.__status = jGRS",
"def gYPd(YKHO, jGRS):\n YKHO.s... | [
"0.7301581",
"0.7301581",
"0.7301581",
"0.7259759",
"0.72286296",
"0.71960115",
"0.70997185",
"0.7078124",
"0.6987622",
"0.6987622",
"0.6987622",
"0.6987622",
"0.6987622",
"0.6987622",
"0.6987622",
"0.6971246",
"0.69520956",
"0.6943355",
"0.6943355",
"0.6943355",
"0.6943355",... | 0.6336027 | 61 |
Sets the mail_msg_id of this MessageGroup. | def VMjZ(YKHO, VMjZ):
YKHO._mail_msg_id = VMjZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KREW(YKHO, wEf2: str):\n YKHO._message_id = wEf2",
"def kg_f(YKHO, wEf2: str):\n YKHO._mailing_id = wEf2",
"def rfWC(YKHO, rfWC):\n YKHO._pop3_msg_id = rfWC",
"def Rhla(YKHO, k9aT):\n YKHO.email_template_id = k9aT",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03)... | [
"0.6015266",
"0.58872676",
"0.56251985",
"0.5620189",
"0.54886806",
"0.54886806",
"0.54886806",
"0.54886806",
"0.54886806",
"0.54886806",
"0.532044",
"0.52057475",
"0.5202128",
"0.518962",
"0.50464046",
"0.5020832",
"0.49766263",
"0.49766263",
"0.49766263",
"0.49766263",
"0.4... | 0.86478096 | 0 |
Sets the pop3_msg_id of this MessageGroup. | def rfWC(YKHO, rfWC):
YKHO._pop3_msg_id = rfWC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMjZ(YKHO, VMjZ):\n YKHO._mail_msg_id = VMjZ",
"def KREW(YKHO, wEf2: str):\n YKHO._message_id = wEf2",
"def t9S2(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'message_group_id')",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03... | [
"0.63237476",
"0.5964633",
"0.5207801",
"0.5155486",
"0.5155486",
"0.5155486",
"0.5155486",
"0.5155486",
"0.5155486",
"0.508969",
"0.50258756",
"0.50252366",
"0.50252366",
"0.50252366",
"0.50252366",
"0.4945956",
"0.49097177",
"0.48777446",
"0.48777446",
"0.48528895",
"0.4839... | 0.871121 | 0 |
Sets the messages of this MessageGroup. | def yEHD(YKHO, yEHD):
YKHO._messages = yEHD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yEHD(YKHO, yEHD):\n YKHO._messages = yEHD",
"def yEHD(YKHO, yEHD):\n YKHO._messages = yEHD",
"def hPUI(YKHO, hPUI):\n YKHO._unread_messages = hPUI",
"def IzQR(YKHO, BWXx):\n YKHO.__message = BWXx",
"def V0Ud(YKHO, SGPK):\n return",
"def V0Ud(YKHO, SGPK):\n return",
"def V0Ud(YKHO,... | [
"0.75375044",
"0.74025875",
"0.59419316",
"0.578991",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
"0.56408775",
... | 0.75711966 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, TpnW):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Return heart rate ensemble data. | def _TAl(YKHO, OkAZ: str):
return YKHO.hr_ensemble.get(OkAZ, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a3u1(YKHO):\n D3vS = YKHO._hr_service.measurement_values\n if D3vS is None:\n i5TO = YKHO._previous_heart\n else:\n i5TO = D3vS.heart_rate\n YKHO._previous_heart = D3vS.heart_rate\n if i5TO:\n i5TO = str(i5TO)[:4]\n return i5TO",
"def IS8u(vI3v, _c1T, dbbf='1sec'):\... | [
"0.667245",
"0.5989915",
"0.5981545",
"0.5928599",
"0.58314437",
"0.570082",
"0.56978804",
"0.5626074",
"0.55555457",
"0.5519672",
"0.5459378",
"0.54582685",
"0.54388577",
"0.54160833",
"0.54139334",
"0.54016525",
"0.540147",
"0.5346398",
"0.52863216",
"0.5264556",
"0.5247471... | 0.0 | -1 |
Draw a boxplot with significance brackets, specifically designed for saliva features. | def I64G(YKHO, WKvO: str, y2W7: str, RDhP: Optional[str]=None, StOP: Optional[Dict]=None, **B2fa) -> AzJI[QrM1.Figure, QrM1.Axes]:
return kj9G.saliva_feature_boxplot(YKHO.saliva_data[y2W7], WKvO, y2W7, RDhP, StOP, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wLS1(nPrm):\n uuEx.boxplot(nPrm, width=0.5, palette='colorblind')\n uuEx.swarmplot(nPrm, color='red', alpha=0.75)",
"def LVC6():\n jQ3Z = rLdf.read_csv('./housing.csv')\n jQ3Z = jQ3Z.dropna()\n QrM1.figure(figsize=(10, 6))\n uuEx.boxplot(data=jQ3Z, x='ocean_proximity', y='median_house_value... | [
"0.684459",
"0.66147965",
"0.65949404",
"0.6565683",
"0.64441955",
"0.64235526",
"0.64079005",
"0.6400797",
"0.6376822",
"0.62469685",
"0.6212203",
"0.6173418",
"0.61095124",
"0.6087079",
"0.6052114",
"0.60235816",
"0.6008725",
"0.59160924",
"0.59078074",
"0.5885543",
"0.5885... | 0.5825925 | 27 |
Draw multiple features as boxplots with significance brackets, specifically designed for saliva features. | def GvmQ(nPrm: SalivaFeatureDataFrame, y2W7: str, bySB: Union[Sequence[str], Dict[str, Union[str, Sequence[str]]]], Hafq: Optional[str]=None, StOP: Optional[Dict]=None, **B2fa) -> AzJI[QrM1.Figure, iu5r[QrM1.Axes]]:
return kj9G.saliva_multi_feature_boxplot(nPrm, y2W7, bySB, Hafq, StOP, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJvp(YKHO):\n HhVR = len(YKHO.feature_names)\n LZpg, aNZO = QrM1.subplots(nrows=1, ncols=HhVR, figsize=(50, 2), tight_layout=True)\n LZpg.suptitle('Boxplots of 19 features', fontsize=14)\n for YRbF in range(HhVR):\n aNZO[YRbF].boxplot(YKHO.train_data[YKHO.train_data.columns[YRbF]])\n ... | [
"0.7276096",
"0.6756028",
"0.67420524",
"0.66334265",
"0.66136825",
"0.66105974",
"0.63785017",
"0.63277566",
"0.63201016",
"0.6297335",
"0.6288415",
"0.62793034",
"0.62766385",
"0.6269879",
"0.6266449",
"0.62377346",
"0.6190599",
"0.6162445",
"0.6156448",
"0.6155786",
"0.614... | 0.6806002 | 1 |
Set a slug only if the original slug is not already previously set. | def rcMo(YKHO, s5ru):
if YKHO.slug is None:
YKHO.slug = s5ru | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s5ru(YKHO, BWXx: str):\n if BWXx and YKHO.slug:\n raise Exception('Order slug should never be updated.')\n elif BWXx:\n YKHO._slug = BWXx",
"def rcMo(YKHO):\n if not YKHO.slug:\n YKHO.slug = eIIt(YKHO.name)[:50]",
"def QXWQ(YKHO):\n QXWQ(YKHO, based_on_field='name')",
"de... | [
"0.7520469",
"0.7504834",
"0.7118982",
"0.70759165",
"0.70759165",
"0.7063391",
"0.69718677",
"0.6893182",
"0.68507",
"0.68228143",
"0.68121773",
"0.67801267",
"0.6757212",
"0.66788137",
"0.63008267",
"0.62607974",
"0.6224608",
"0.6210882",
"0.6163315",
"0.61136633",
"0.60966... | 0.81769043 | 0 |
Add an episode to the buffer. | def Qh1q(YKHO):
ylK1 = YKHO._convert_episode_to_batch_major()
CX5x = len(ylK1['observation'])
or8S = YKHO._get_storage_idx(CX5x)
for H5ew in YKHO._buffer:
YKHO._buffer[H5ew][or8S] = ylK1[H5ew]
YKHO._n_transitions_stored = min(YKHO._size_in_transitions, YKHO._n_transitions_stored + YKHO._time... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EQgO(YKHO, cfQG):\n faRV = YKHO._add_season(cfQG)\n kIZU = YKHO._add_season(cfQG, dvd=True)\n YKHO._add_episode(cfQG, faRV)\n YKHO._add_episode(cfQG, kIZU, dvd=True)",
"def H2v5(YKHO, KULu: Union[List['_Episode'], '_Episode']):\n if isinstance(KULu, CNF1):\n KULu = [KULu]\n for SGf8 ... | [
"0.735657",
"0.6706511",
"0.6660055",
"0.6591364",
"0.6410487",
"0.6221398",
"0.6196031",
"0.6182731",
"0.6150623",
"0.60092854",
"0.5909298",
"0.59027225",
"0.5887077",
"0.57419723",
"0.57027376",
"0.56611764",
"0.56372035",
"0.5620019",
"0.5590021",
"0.5589109",
"0.558431",... | 0.6222137 | 5 |
Add one transition into the replay buffer. | def Nr0q(YKHO, **B2fa):
OZkM = {G1Hx: [Ty9i] for G1Hx, Ty9i in B2fa.items()}
YKHO.add_transitions(**OZkM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, OZkM: Tuple[np.ndarray, ...]) -> AzJI[ImMB, ...]:\n YKHO.n_step_buffer.append(OZkM)\n if len(YKHO.n_step_buffer) < YKHO.n_step:\n return ()\n vOGg, rxHc, _ins = AJ8j(YKHO.n_step_buffer, YKHO.gamma)\n yvGc, XeOP = YKHO.n_step_buffer[0][:2]\n TMUT = (yvGc, XeOP, vOGg, rxHc, _ins)... | [
"0.740349",
"0.7356286",
"0.72938615",
"0.72733086",
"0.72257",
"0.7169166",
"0.70568347",
"0.70209605",
"0.69462705",
"0.681859",
"0.6677153",
"0.6562752",
"0.65208566",
"0.6471675",
"0.644765",
"0.6423717",
"0.6406294",
"0.63530767",
"0.6215138",
"0.6184234",
"0.6182884",
... | 0.5403305 | 86 |
Add multiple transitions into the replay buffer. A transition contains one or multiple entries, e.g. observation, action, reward, terminal and next_observation. The same entry of all the transitions are stacked, e.g. | def D0yd(YKHO, **B2fa):
if not YKHO._initialized_buffer:
YKHO._initialize_buffer(**B2fa)
for H5ew, BWXx in B2fa.items():
YKHO._episode_buffer[H5ew].append(BWXx)
if len(YKHO._episode_buffer['observation']) == YKHO._time_horizon:
YKHO.store_episode()
for H5ew in YKHO._episode_b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FJj_(YKHO, UlCL: list):\n for OZkM in UlCL:\n YKHO.add(*OZkM)",
"def H2v5(YKHO, OZkM: Tuple[np.ndarray, ...]) -> AzJI[ImMB, ...]:\n YKHO.n_step_buffer.append(OZkM)\n if len(YKHO.n_step_buffer) < YKHO.n_step:\n return ()\n vOGg, rxHc, _ins = AJ8j(YKHO.n_step_buffer, YKHO.gamma)\n ... | [
"0.6677511",
"0.65858775",
"0.6410083",
"0.63191545",
"0.62429816",
"0.6203609",
"0.6202936",
"0.61612046",
"0.61373895",
"0.60175425",
"0.6013549",
"0.5996358",
"0.5974118",
"0.5894838",
"0.58591044",
"0.5832437",
"0.5821877",
"0.5789959",
"0.5712879",
"0.56887907",
"0.56742... | 0.6860526 | 0 |
Return the size of the replay buffer. | def ODF6(YKHO):
return YKHO._n_transitions_stored | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO.buffer)",
"def FCSY(YKHO):\n return len(YKHO._buffers) if YKHO._buffers is not None else 0",
"def klGB(YKHO):\n if not hasattr(YKHO, '_buffer_size'):\n YKHO._buffer_size = 0\n return int(YKHO._buffer_size)\n else:\n return int(YKHO._buffer_size... | [
"0.7708229",
"0.75622433",
"0.739335",
"0.7224203",
"0.7218663",
"0.7210331",
"0.71338546",
"0.71338546",
"0.7107053",
"0.7040967",
"0.702228",
"0.7016174",
"0.68591017",
"0.6839616",
"0.6815589",
"0.6810943",
"0.67780447",
"0.67733026",
"0.67710954",
"0.67578244",
"0.675195"... | 0.0 | -1 |
Male of age greater than 10 are the wanderers in the camp | def c5Ap(EE3v, ZJe_):
return oyIN.logical_and([EE3v == 1], [ZJe_ >= 10]).transpose() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dcpT(YKHO, qLEV):\n ZJe_ = YKHO.get_age()\n if ZJe_:\n if ZJe_ > qLEV.maximum_age and qLEV.maximum_age:\n return {'valid': False, 'message': bGrB(f'The patient is {ZJe_} years old, and {qLEV.name} could not be taken for ages above {qLEV.maximum_age}')}\n if ZJe_ < qLEV.minimum_ag... | [
"0.68103325",
"0.61463815",
"0.61307013",
"0.60826564",
"0.6061001",
"0.60349363",
"0.6031252",
"0.60239834",
"0.59546506",
"0.5953632",
"0.59528995",
"0.58525604",
"0.5847692",
"0.57500136",
"0.57150906",
"0.5714132",
"0.56923485",
"0.5692144",
"0.5692144",
"0.5682057",
"0.5... | 0.63310003 | 1 |