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 |
|---|---|---|---|---|---|---|
Preprocess image. `im` is a numpy array with shape [H, W, 3], e.g. the result of matplotlib.pyplot.imread(some_im_path), or numpy.asarray(PIL.Image.open(some_im_path)). | def _fxp(Xn71, _Fei):
Xn71 = XC5k.resize(Xn71, _Fei.resize_h_w[::-1], interpolation=XC5k.INTER_LINEAR)
Xn71 = Xn71 / 255.0
Xn71 = Xn71 - oyIN.array(_Fei.im_mean)
Xn71 = Xn71 / oyIN.array(_Fei.im_std).astype(float)
Xn71 = Xn71.transpose(2, 0, 1)[oyIN.newaxis]
return Xn71 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j9DC(Xn71):\n assert Xn71.shape[2] == 3\n assert len(Xn71.shape) == 3\n if Xn71.dtype == oyIN.uint8:\n Xn71 = Xn71.astype(oyIN.float32) / 255\n Xn71 = oyIN.asarray(Xn71, dtype=oyIN.float32)\n Xn71 = XC5k.resize(Xn71, (299, 299))\n Xn71 = oyIN.rollaxis(Xn71, axis=2)\n Xn71 = (Xn71 - ... | [
"0.7423403",
"0.73502564",
"0.72921234",
"0.72884685",
"0.72665054",
"0.72515607",
"0.70996284",
"0.70873797",
"0.7059362",
"0.7042766",
"0.70400685",
"0.70187837",
"0.700999",
"0.70065683",
"0.6971213",
"0.6964913",
"0.69604605",
"0.6864108",
"0.68210006",
"0.6814663",
"0.68... | 0.7394233 | 1 |
Format 'now' datetime and create file name | def SoXa(Fst3):
return '{}.{}'.format(qcWV.now().replace(microsecond=0), Fst3).replace(':', '_') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWx2():\n return qcWV.datetime.strftime(qcWV.datetime.utcnow(), '%Y-%m-%d_%H%M%S')",
"def FtQi():\n return qcWV.utcnow().strftime('%Y%m%d_%H%M%S')",
"def NU2T(wzkt, KAOR, Ux0P):\n return '{username}-{date}-{microsecond}{extension}'.format(username=KAOR.username, date=str(wzkt.date()), microsecond=... | [
"0.8067409",
"0.7689389",
"0.7467643",
"0.7406667",
"0.7402621",
"0.73376703",
"0.7304112",
"0.71921617",
"0.71395594",
"0.71306676",
"0.7126302",
"0.7009845",
"0.6987878",
"0.6946519",
"0.6940747",
"0.69404304",
"0.6908632",
"0.6848235",
"0.68472075",
"0.6833913",
"0.6831676... | 0.0 | -1 |
Initializes the Dirichlet priors. Copied from gensim. | def B3to(YKHO, f2rf, mWFP):
if f2rf is None:
f2rf = 'symmetric'
if mWFP == 'alpha':
jUJF = YKHO.num_topics
elif mWFP == 'beta':
jUJF = YKHO.num_terms
else:
raise ValueError("'name' must be 'alpha' or 'beta'")
x4QB = False
if isinstance(f2rf, jKi7.string_types):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, f0BO):\n YKHO.priors = f0BO\n YKHO.names = [mWFP for mWFP in YKHO.priors.keys()]\n YKHO._priors = {}\n for H5ew in YKHO.names:\n YKHO._priors[H5ew] = YKHO.priors[H5ew]['prior']\n YKHO.constraint = None\n YKHO._nevolve_steps = 20\n YKHO._required_steps = 5\n YKHO._propo... | [
"0.6874861",
"0.6873478",
"0.6656064",
"0.66486216",
"0.6588555",
"0.654589",
"0.65351003",
"0.6493969",
"0.64727503",
"0.6469542",
"0.63353336",
"0.6317134",
"0.62881607",
"0.6286458",
"0.6265516",
"0.62628037",
"0.6250965",
"0.6240957",
"0.6232244",
"0.62136",
"0.6211615",
... | 0.0 | -1 |
Calculate the Pearson r correlation between `x` and `y`, ignoring data above the saturation limit `saturate`. | def foWl(WKvO, LVAh, RgfG):
QyVM = oyIN.where(LVAh < RgfG)
Mkmy, XP5J = pRq9(WKvO[QyVM], LVAh[QyVM])
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VaRB(WKvO, LVAh):\n import scipy.stats as eQSh\n return eQSh.pearsonr(WKvO, LVAh)",
"def X7lU(WKvO, LVAh):\n return WLTp(WKvO, LVAh)",
"def Zc_z(WKvO, LVAh):\n zTvC = WKvO - ht2j.mean(WKvO)\n YtJp = LVAh - ht2j.mean(LVAh)\n return ht2j.sum(zTvC * YtJp) / (ht2j.sqrt(ht2j.sum(zTvC ** 2)) * ... | [
"0.6950459",
"0.6792155",
"0.67331403",
"0.6719385",
"0.66724086",
"0.6654983",
"0.66541964",
"0.6647475",
"0.6603543",
"0.66028386",
"0.6593977",
"0.6583281",
"0.6536007",
"0.6439998",
"0.6341512",
"0.6317546",
"0.62984276",
"0.629783",
"0.62958765",
"0.6261204",
"0.62536424... | 0.7887137 | 0 |
Apply 'pearson_r_single' for every pixel in `y` (twodimensional). Use this for RAW data. | def KSlj(WKvO, LVAh, **B2fa):
fM22 = []
Mkmy = oyIN.zeros(LVAh.shape[1:])
for YRbF in range(LVAh.shape[1]):
for r845 in range(LVAh.shape[2]):
try:
Mkmy[YRbF, r845] = foWl(WKvO, LVAh[:, YRbF, r845], **B2fa)
except TypeError:
Mkmy[YRbF, r845] = o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f_nu(WKvO, LVAh, **B2fa):\n Mkmy, fM22 = ([[], [], []], [[], [], []])\n for r845 in range(3):\n Mkmy[r845], fM22[r845] = KSlj(WKvO, LVAh[..., r845], saturate=240)\n Mkmy = oyIN.stack(Mkmy)\n return (Mkmy, fM22)",
"def foWl(WKvO, LVAh, RgfG):\n QyVM = oyIN.where(LVAh < RgfG)\n Mkmy, X... | [
"0.76555175",
"0.73710936",
"0.71338594",
"0.6952257",
"0.67462647",
"0.66657376",
"0.666498",
"0.65884715",
"0.65884715",
"0.65518165",
"0.65372306",
"0.65370995",
"0.649794",
"0.6486193",
"0.6457102",
"0.64359903",
"0.6409527",
"0.63865215",
"0.63124144",
"0.6189391",
"0.61... | 0.7365146 | 2 |
Apply 'pearson_r_single' for every pixel in `y` (threedimensional). Use this for JPEG data. | def f_nu(WKvO, LVAh, **B2fa):
Mkmy, fM22 = ([[], [], []], [[], [], []])
for r845 in range(3):
Mkmy[r845], fM22[r845] = KSlj(WKvO, LVAh[..., r845], saturate=240)
Mkmy = oyIN.stack(Mkmy)
return (Mkmy, fM22) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KSlj(WKvO, LVAh, **B2fa):\n fM22 = []\n Mkmy = oyIN.zeros(LVAh.shape[1:])\n for YRbF in range(LVAh.shape[1]):\n for r845 in range(LVAh.shape[2]):\n try:\n Mkmy[YRbF, r845] = foWl(WKvO, LVAh[:, YRbF, r845], **B2fa)\n except TypeError:\n Mkmy[YR... | [
"0.70707065",
"0.6955622",
"0.6931501",
"0.6654115",
"0.65433013",
"0.64771456",
"0.6354871",
"0.6354871",
"0.63512295",
"0.63133097",
"0.6308238",
"0.6299158",
"0.62958115",
"0.62553465",
"0.6234282",
"0.62054425",
"0.61858493",
"0.6140284",
"0.61255056",
"0.60766166",
"0.59... | 0.7980045 | 0 |
The primary test. The issue column, which was always null for training, is now having a string values for testing. | def gqnb(YKHO):
oxOY = h7Cg.create_dataset({'id': 'test_string_over_null_ds', 'type': 'sparse.mutable'})
for or8S in range(10):
oxOY.record_row('row{}'.format(or8S), [['line', or8S, 0], ['label', 0, 0], ['feature', tuKI.random() + 0.6, 0], ['noise', tuKI.random(), 0], ['issue', 'STRING', 0]])
oxOY.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SuIi(YKHO):\n pWv_ = (('id', 'id'), ('[id]', 'id'), ('`id`', 'id'), ('\"id\"', 'id'), ('[id col]', 'id col'), ('`id col`', 'id col'), ('\"id col\"', 'id col'))\n with UzPC.cursor() as N1p7:\n for iVRZ, H1go in pWv_:\n Pe9W = 'CREATE TABLE test_primary (%s int PRIMARY KEY NOT NULL)' % iV... | [
"0.5894101",
"0.5777491",
"0.5700794",
"0.5643464",
"0.54791766",
"0.545675",
"0.5405476",
"0.538604",
"0.5379275",
"0.53579247",
"0.5340149",
"0.53289276",
"0.53146505",
"0.5289728",
"0.52445626",
"0.5240361",
"0.523261",
"0.522396",
"0.5222998",
"0.52228034",
"0.52168804",
... | 0.54977554 | 4 |
Returns a hexdigest string of SHA256 hash of list. | def D5nm(DMbc):
o9EA = XQ0m(DMbc)
cXYN = e0Ol(o9EA)
return cXYN.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qCV1(hkxX):\n Nzyw = HBct.md5()\n for Ty9i in hkxX:\n Nzyw.update(str(Ty9i).encode())\n return Nzyw.hexdigest()",
"def Sfmh(fQa0):\n return [HBct.sha256(Fg_i).hexdigest() for Fg_i in fQa0]",
"def vFhS(YKHO):\n return ''.join(['%02x' % Wc20(WKvO) for WKvO in tuple(YKHO.digest())])",
... | [
"0.7864107",
"0.758319",
"0.7444688",
"0.72733134",
"0.72733134",
"0.72561836",
"0.71476036",
"0.71343625",
"0.71343625",
"0.71206",
"0.70041203",
"0.69615334",
"0.69337016",
"0.6932544",
"0.68205273",
"0.6818645",
"0.68080723",
"0.6793299",
"0.6791027",
"0.6776408",
"0.67758... | 0.8702955 | 0 |
Sends request for vegetables csv data of HTML table row. | def BUGu(YKHO):
m6_J = G4JS.post('https://www.seisen.maff.go.jp/seisen/bs04b040md001/BS04B040UC010SC001-Evt004.do', data={'s004.chohyoKanriNo': YKHO.veg_data_id})
return m6_J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def td1Y(YKHO):\n m6_J = G4JS.post('https://www.seisen.maff.go.jp/seisen/bs04b040md001/BS04B040UC010SC001-Evt004.do', data={'s004.chohyoKanriNo': YKHO.fruit_data_id})\n return m6_J",
"def MgJa(YKHO, BnIw, aqR5):\n global sensor_names\n qIxc = BnIw.split('/')\n XT48, WXkz, Rf07 = YKHO.ParseTimeFiel... | [
"0.6440257",
"0.6396325",
"0.5855222",
"0.5787861",
"0.5777652",
"0.577079",
"0.5762893",
"0.56806505",
"0.5665951",
"0.5665254",
"0.5637348",
"0.56363577",
"0.56258184",
"0.5598316",
"0.558564",
"0.5562221",
"0.5558503",
"0.55527043",
"0.55260247",
"0.5509281",
"0.5494051",
... | 0.6585394 | 0 |
checks persons gender and increments it`s tribe`s gender counter | def DYIs(YKHO, a70H, Mrpo):
if a70H % 2 == 1:
YKHO.boys_counter_list[Mrpo - 1] += 1
elif a70H % 2 == 0:
YKHO.girls_counter_list[Mrpo - 1] += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKmm(YKHO):\n return int(YKHO.gender_code) % 2 != 0",
"def ut9L(YKHO) -> int:\n vSL1 = [WKvO for WKvO in YKHO.people_dict if YKHO.people_dict[WKvO].gender == qNDU.MALE.value]\n return len(vSL1)",
"def ggkf(YKHO, EE3v):\n if 'gender:' + EE3v not in YKHO.properties:\n return\n DrTd = YK... | [
"0.6790557",
"0.67549205",
"0.65653574",
"0.643845",
"0.64120764",
"0.6278223",
"0.6269378",
"0.6268833",
"0.62320364",
"0.62268066",
"0.6225167",
"0.6210695",
"0.6109605",
"0.6097117",
"0.6097117",
"0.6097117",
"0.607395",
"0.6062552",
"0.60544586",
"0.6019743",
"0.60161066"... | 0.82114834 | 0 |
Load all the examples from a given directory. | def nU_h(tk5Y: Path, f2Tp: bool=True, sBGs: bool=False) -> None:
kGys: cuzp[str, str] = {}
gGq6 = [tk5Y]
while gGq6:
Pf49 = gGq6.pop()
if Pf49.is_dir():
gGq6.extend(Pf49.glob('*'))
elif Pf49.suffix.lower() in j8IB:
with open(Pf49) as ytgA:
kGys... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Japz(YKHO):\n _73Q = Hy7s.listdir(YKHO.examples_path)\n for tTpl in _73Q:\n Nsam = Hy7s.path.join(YKHO.examples_path, tTpl)\n if Hy7s.path.isfile(Nsam):\n J_Es = M73q(Nsam, using_file=True)",
"def X2wT(YKHO, h_xa):\n raise NotImplementedError()",
"def ZFGD(pmON):\n NL1j... | [
"0.7330039",
"0.6876576",
"0.6776434",
"0.6743281",
"0.6743281",
"0.6743281",
"0.6743281",
"0.67087865",
"0.67031235",
"0.66519946",
"0.6648225",
"0.6648225",
"0.6648225",
"0.6648225",
"0.6648225",
"0.6648225",
"0.6648225",
"0.6648225",
"0.6648225",
"0.6648225",
"0.6648225",
... | 0.62170106 | 48 |
Registers an output converter to the list of global output converters. An output converter transforms the output of the Java side to an instance on the Python side. For example, you could transform a java.util.ArrayList to a Python list. See ``py4j.java_collections`` for examples. | def Mi5Z(nSMW, aDxC):
global OUTPUT_CONVERTER
UP9s[nSMW] = aDxC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lb2i(YKHO, aDxC, JfyU):\n ...",
"def Lb2i(YKHO, aDxC, JfyU):\n YKHO.converter_mapping[aDxC] = JfyU",
"def Di8I(BOKa):\n global converter, py2rpy, rpy2py\n aDxC = BOKa\n mCjz = aDxC.py2rpy\n DbEl = aDxC.rpy2py",
"def SVyP(YKHO, xkJ7: int, JfyU: Optional[Callable], /) -> None:\n ...",
... | [
"0.6652367",
"0.6467605",
"0.6410003",
"0.635015",
"0.6343188",
"0.63382757",
"0.6217561",
"0.61092556",
"0.60580486",
"0.59722924",
"0.5923109",
"0.56466407",
"0.55723083",
"0.55502915",
"0.5469728",
"0.5456897",
"0.53818536",
"0.5364054",
"0.5364054",
"0.5348275",
"0.533155... | 0.81939113 | 0 |
Returns a 2D grid of coordinates from 2 1D arrays. | def yGgQ(jzdc, Fg_i):
Mkup = oyIN.meshgrid(jzdc, Fg_i)
return oyIN.transpose(oyIN.array([r8hN.flatten(order='F') for r8hN in Mkup])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _MC5(mSn1: torch.Tensor, IP77: torch.Tensor) -> ht2j.Tensor:\n EcVT = ht2j.cat((mSn1[None], IP77[None]), 0)\n pKiF, AjzU = (EcVT.shape[0], EcVT.shape[1] * EcVT.shape[2])\n EcVT = EcVT.reshape(pKiF, AjzU).T\n return EcVT",
"def lONB(jHsn, pvd3):\n WKvO = oyIN.arange(0, jHsn, 1)\n LVAh = oyIN... | [
"0.7396561",
"0.7207743",
"0.71486336",
"0.7123812",
"0.68741983",
"0.68371564",
"0.6768018",
"0.6743366",
"0.6565133",
"0.6525156",
"0.6524521",
"0.6447459",
"0.63982624",
"0.63921225",
"0.63577217",
"0.633498",
"0.6331372",
"0.63235515",
"0.6319962",
"0.6319132",
"0.6292866... | 0.6870231 | 5 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Ep8u = pan_.size(0)
Gq8e = max(hz5a)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True)
Ylbp.append(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
Returns the distance between this genome and the other. | def Ayfi(YKHO, Elif):
if len(YKHO.conn_genes) > len(Elif.conn_genes):
ut8I = YKHO
UPFq = Elif
else:
ut8I = Elif
UPFq = YKHO
EtjK = sum((1 for LEev in ut8I.node_genes if LEev not in UPFq.node_genes))
kg0i = sum((1 for Xyq7 in UPFq.node_genes if Xyq7 not in ut8I.node_genes)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(YKHO, Elif):\n return (Elif - YKHO).length()",
"def Ayfi(YKHO, Elif):\n return epAf.sqrt((YKHO.longitude - Elif.longitude) ** 2 + (YKHO.latitude - Elif.latitude) ** 2)",
"def Ayfi(YKHO, Elif):\n return YKHO._coordinates.distance(Elif._coordinates)",
"def Ayfi(YKHO, Elif):\n return CkYf(E... | [
"0.8293184",
"0.82433224",
"0.82299745",
"0.8223281",
"0.8141474",
"0.8107282",
"0.8088937",
"0.80511135",
"0.80198544",
"0.7974111",
"0.7951967",
"0.7917696",
"0.79044735",
"0.78624487",
"0.78205717",
"0.77942806",
"0.77728474",
"0.7741479",
"0.77309954",
"0.77134913",
"0.77... | 0.7493219 | 43 |
Test that environment variable has been read correctly. | def mDXf(YKHO):
FYKK = Hy7s.path.basename(YKHO.auth.creds_subdir)
YKHO.assertEqual(FYKK, Hy7s.environ['TWITTER']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V2r8(YKHO):\n pass",
"def vuG9(YKHO, bGrB):\n YKHO.assertEqual(Hy7s.environ.get('db_username'), None)\n YKHO.secrets.load_if_toml_exists()\n YKHO.assertEqual(Hy7s.environ['db_username'], 'Jane')\n YKHO.assertEqual(Hy7s.environ['db_password'], '12345qwerty')\n YKHO.assertEqual(Hy7s.environ.g... | [
"0.7819469",
"0.7446789",
"0.7417656",
"0.7365267",
"0.73078144",
"0.7297381",
"0.727276",
"0.7257081",
"0.72473",
"0.72149",
"0.72141796",
"0.7207717",
"0.7178638",
"0.71709836",
"0.7149397",
"0.7133214",
"0.713127",
"0.7110819",
"0.71079016",
"0.7104665",
"0.71024597",
"0... | 0.6734903 | 41 |
Bias of mean temporal state. | def k1qg(YKHO, Y8eF, aMgO):
return oyIN.mean(aMgO) - oyIN.mean(Y8eF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zjSS(W061, TBxD):\n return round(oyIN.mean(TBxD - W061), 2)",
"def oug5(YKHO) -> int:\n return YKHO._bias",
"def oug5(YKHO):\n return YKHO._bias",
"def oug5(YKHO):\n return YKHO.loaded[YKHO.model_name]['elmo_softmax_b']",
"def Yo5a(YKHO):\n R9Vg = YKHO.m ** 2 * YKHO.dndm * YKHO.bias\n ... | [
"0.69219404",
"0.67583644",
"0.6706861",
"0.666156",
"0.6599834",
"0.65803504",
"0.65711373",
"0.6557117",
"0.65406513",
"0.6528979",
"0.65174264",
"0.650555",
"0.64820415",
"0.6466475",
"0.6439615",
"0.6439615",
"0.6400383",
"0.6379771",
"0.63566107",
"0.63444823",
"0.633903... | 0.6259395 | 27 |
Mean value over space of RMSE score. | def TsBx(YKHO, Y8eF, aMgO):
return YKHO.score(func=YKHO._cal_score_rmse, y_true=Y8eF, y_pred=aMgO, mass_weight=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iAxY(ngF3, OXiB):\n Oih3 = []\n for PN4h, OU5i in zip(ngF3, OXiB):\n iAxY = cneY(PN4h, OU5i)\n Oih3.append(iAxY)\n return oyIN.mean(Oih3)",
"def hkHB(N77f, p1kx):\n return oyIN.mean(oyIN.power(N77f - p1kx, 2))",
"def hkHB(N77f, AIKr):\n return ((N77f - AIKr) ** 2).mean()",
"d... | [
"0.7461373",
"0.7386778",
"0.7355554",
"0.7338824",
"0.72421485",
"0.7144279",
"0.71031076",
"0.7061148",
"0.7049992",
"0.7049992",
"0.7049992",
"0.7027328",
"0.7013875",
"0.7008362",
"0.6964735",
"0.6945038",
"0.6931742",
"0.6923934",
"0.6913256",
"0.688864",
"0.6882824",
... | 0.0 | -1 |
Method returning the flattened algebra's multiplication table. | def pYeA(YKHO) -> oyIN.ndarray:
return FGRq(YKHO._n_var, YKHO._order) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZPE(YKHO, ZWCE='letters', UqER=None):\n from sage.matrix.operation_table import OperationTable\n import operator\n return OperationTable(YKHO, operation=operator.mul, names=ZWCE, elements=UqER)",
"def E_tF(YKHO, Elif):\n Lx3t = []\n fdOb = YKHO.g\n rlJB = Elif.T().g\n for XGFC in range(... | [
"0.7014362",
"0.64383763",
"0.6383477",
"0.6346007",
"0.6068227",
"0.6029783",
"0.6018063",
"0.5976019",
"0.59639436",
"0.5895985",
"0.58912396",
"0.58885014",
"0.5850067",
"0.5849437",
"0.5831689",
"0.5830185",
"0.58115965",
"0.57979715",
"0.5779392",
"0.57769144",
"0.577479... | 0.79270935 | 0 |
Method for the addition of a new variable. Output lives in another algebra, of higher dimension. All its terms associated with the new variable are zero and the other ones are identical to original expansion. | def HMXX(YKHO, ZIft: int, lGz0: Optional[str]=None) -> 'ComplexMultivarTaylor':
if lGz0 is None:
lGz0 = Lhro + str(YKHO._n_var + 1)
if lGz0 in YKHO.var_names:
raise ValueError('Proposed name of new variable already exists.')
Eq4v = list(YKHO._var_names)
Eq4v.append(lGz0)
XCdj = YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif):\n return wihE(YKHO.value + Elif.value)",
"def FOdN(YKHO, Elif):\n return YKHO._two_var_op(Elif, '+')",
"def FOdN(YKHO, Elif) -> 'ComplexMultivarTaylor':\n if isinstance(Elif, b5iR):\n if YKHO.is_in_same_algebra(Elif):\n return YKHO.create_expansion_with_coeff(YK... | [
"0.6806328",
"0.6803651",
"0.67539084",
"0.6704525",
"0.66219914",
"0.6583714",
"0.6549932",
"0.6518665",
"0.64674276",
"0.6449572",
"0.6448508",
"0.64286304",
"0.64243513",
"0.6389153",
"0.6381113",
"0.6380596",
"0.6368738",
"0.63625884",
"0.6356766",
"0.6354104",
"0.6340316... | 0.6329871 | 22 |
Method returning the norm of the Taylor expansion as defined by M. Berz. This quantity depends on the order. | def CkYf(YKHO) -> float:
return oyIN.max(oyIN.abs(YKHO._coeff)) * YKHO._dim_alg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkYf(YKHO):\n Aofo = 0.0\n for ZfUD in YKHO.values:\n Aofo += ZfUD * ZfUD\n return PZyS(Aofo)",
"def zn0E(T8ck: np.array) -> oyIN.float64:\n if T8ck.shape[2] != 4:\n raise ValueError('Wrong tensor shape')\n else:\n return oyIN.sqrt(oyIN.power(T8ck, 2).sum())",
"def CkYf(... | [
"0.67009586",
"0.6585897",
"0.65401924",
"0.6370034",
"0.63634074",
"0.63415706",
"0.6337339",
"0.6335775",
"0.6298761",
"0.62776476",
"0.6276182",
"0.62438214",
"0.6215401",
"0.6212189",
"0.620067",
"0.61869425",
"0.6175893",
"0.6165434",
"0.61653054",
"0.6150279",
"0.614197... | 0.58369654 | 59 |
This method utilizes random.randint to assign a new colour to the code list for a length of 4. it randomly selects the index of the allowable_colours list. | def x1DU(YKHO):
for u54L in range(0, 4):
YKHO.input_code = YKHO.input_code + YKHO.allowable_colours[tuKI.randint(0, 5)]
return YKHO.input_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pph3():\n return tuKI.choice(F4JO)",
"def AnuC(YKHO, u54L, Jw9H, vCRY=1):\n if len(Jw9H) < 2:\n return\n if vCRY == 1:\n Q7Be = tuKI.randint(0, 100)\n if Q7Be <= 49:\n mLGw = 1\n uJWI = tuKI.sample(Jw9H, k=mLGw)\n elif Q7Be <= 74:\n mLGw =... | [
"0.7082856",
"0.69582427",
"0.6858712",
"0.6807765",
"0.67909604",
"0.6707741",
"0.66688806",
"0.66271275",
"0.66175914",
"0.6600123",
"0.657333",
"0.6560327",
"0.6523806",
"0.6497227",
"0.64941776",
"0.6479426",
"0.6461217",
"0.6458332",
"0.6448702",
"0.63858294",
"0.6381607... | 0.5837859 | 54 |
Converts an image to gray scale | def ITiw(LNo8) -> oyIN.ndarray:
return dJJ0(LNo8, hNb0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pl9M(VXjJ, UFp3):\n LNo8 = hnIv.open(VXjJ).convert('L')\n LNo8.save(UFp3)",
"def IeP5(VXjJ):\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_RGB2GRAY)",
"def oh1W(LNo8):\n return XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2GRAY)",
"def oh1W(LNo8):\n return XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2GRAY)",
"def ... | [
"0.87218654",
"0.85597616",
"0.851646",
"0.851646",
"0.8460345",
"0.8351009",
"0.83122885",
"0.83029634",
"0.814019",
"0.81008637",
"0.80489135",
"0.802239",
"0.8008748",
"0.79995716",
"0.7971904",
"0.7948619",
"0.79313326",
"0.7897605",
"0.7896806",
"0.78828377",
"0.7878064"... | 0.74204725 | 62 |
Test whether the component matrices of two AffineOperator objects are numerically equal. The coefficient functions are NOT compared. | def xa14(YKHO, Elif):
if not isinstance(Elif, H0vI):
return False
if len(YKHO) != len(Elif):
return False
return all((oyIN.allclose(LFlW, _tIi) for LFlW, _tIi in zip(YKHO.matrices, Elif.matrices))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NnIc(yLHq, RKYb):\n if yLHq.shape != RKYb.shape:\n return False\n return (yLHq - RKYb).is_zero_matrix",
"def xa14(YKHO, Elif):\n return oyIN.array_equal(YKHO.sparse_mat_unclip.data, Elif.sparse_mat_unclip.data)",
"def xa14(YKHO, HpuQ):\n return oyIN.all(YKHO.matrix == HpuQ.matrix)",
"d... | [
"0.65638286",
"0.65298593",
"0.6429253",
"0.6416029",
"0.6375695",
"0.6303454",
"0.62904954",
"0.6256423",
"0.6255652",
"0.62511957",
"0.62203693",
"0.6213309",
"0.6200095",
"0.61883694",
"0.6164453",
"0.61638844",
"0.6129407",
"0.6116036",
"0.61119187",
"0.6100929",
"0.60956... | 0.75953823 | 0 |
Creates and saves a superuser with the given username, date of birth and password. | def Zp54(YKHO, i0Q8, leZN, jTXt):
CBIr = YKHO.create_user(i0Q8, leZN, password=jTXt)
CBIr.is_admin = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, NtEF, R4fi, dfEM, y14Y, jTXt):\n CBIr = YKHO.create_user(NtEF, password=jTXt, year_of_birth=R4fi, month_of_birth=dfEM, day_of_birth=y14Y)\n CBIr.is_superuser = True\n CBIr.save(using=YKHO._db)\n return CBIr",
"def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is ... | [
"0.823369",
"0.8165367",
"0.8156686",
"0.81324893",
"0.8040314",
"0.7953003",
"0.7852298",
"0.7848276",
"0.7805279",
"0.7776167",
"0.77756864",
"0.7772005",
"0.77705675",
"0.7770383",
"0.7741321",
"0.7741321",
"0.7726295",
"0.7719877",
"0.77141666",
"0.7701036",
"0.76904595",... | 0.0 | -1 |
Returns True if the status is not incomplete. | def eRwN(YKHO):
return YKHO.value != ' ' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZQq(YKHO):\n return YKHO.status == YKHO.COMPLETE",
"def Fd4y(YKHO):\n return isinstance(YKHO.status, str) and YKHO.status[:3].isdigit() and (YKHO.status[3:4] == ' ') and isinstance(YKHO.headers, zHVF(ANrH(str, str))) and isinstance(YKHO.body, bytes) and (YKHO.exc_info is None)",
"def ZZQq(YKHO):\n ... | [
"0.76696885",
"0.7631842",
"0.73975784",
"0.72748",
"0.72230124",
"0.72200596",
"0.71510506",
"0.71510506",
"0.7129275",
"0.7112472",
"0.710349",
"0.7083225",
"0.70727545",
"0.70646095",
"0.704695",
"0.704695",
"0.7019267",
"0.7008125",
"0.7002328",
"0.7000529",
"0.6990419",
... | 0.0 | -1 |
Returns true if the task is completed. | def eRwN(YKHO):
return YKHO.status == EloR.done | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MGJC(YKHO):\n return YKHO.task is not None and YKHO.task.done()",
"def ZZQq(YKHO):\n for D5gV in YKHO.tasks:\n if not D5gV.is_complete():\n return False\n return True",
"def IXlb(YKHO) -> bool:\n return YKHO.result.get('done', False)",
"def Fd4y(YKHO):\n return YKHO.task_... | [
"0.8921811",
"0.8216073",
"0.8106668",
"0.80608124",
"0.80608124",
"0.80608124",
"0.80608124",
"0.80608124",
"0.80608124",
"0.80608124",
"0.80608124",
"0.80410886",
"0.7943065",
"0.7940075",
"0.7933322",
"0.7873558",
"0.7861903",
"0.78591084",
"0.78528684",
"0.78528684",
"0.7... | 0.0 | -1 |
Returns a Markdown representation of the session. | def zAg0(YKHO):
xCjU = '\n'.join(map(str, YKHO.tasks))
return '## {}\n\n{}'.format(YKHO.name, xCjU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSjq(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'markdown')",
"def WyGk(YKHO) -> str:\n return YKHO.render('markdown')",
"def WyGk(YKHO):\n return YKHO.render(renderer='markdown')",
"def cP16(YKHO) -> str:\n return YKHO.render('markdown')",
"def cP16(YKHO) -> str:\n Fv2L = YKHO.t... | [
"0.73147",
"0.718451",
"0.7158486",
"0.71114963",
"0.69112146",
"0.667245",
"0.6648585",
"0.6580499",
"0.64594346",
"0.64594346",
"0.6453476",
"0.64136827",
"0.6398879",
"0.6293944",
"0.62718296",
"0.6264289",
"0.6251593",
"0.6177143",
"0.61068213",
"0.604896",
"0.598298",
... | 0.0 | -1 |
Returns the number of tasks in this session. | def szAg(YKHO):
return len(YKHO.tasks) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Koa2(YKHO):\n return len(YKHO.tasks)",
"def Koa2(YKHO):\n return len(YKHO.tasks)",
"def Koa2(YKHO):\n return YKHO._task_count",
"def cQOW(YKHO):\n return sum((len(YRbF) for YRbF in YKHO._tasks))",
"def _A3H(YKHO) -> int:\n return len(YKHO)",
"def cQOW(YKHO):\n return len(list(YKHO.i... | [
"0.855834",
"0.855834",
"0.84466946",
"0.81083",
"0.80921113",
"0.80834013",
"0.80403113",
"0.80403113",
"0.79599875",
"0.7840322",
"0.7827559",
"0.7798734",
"0.77062684",
"0.7674489",
"0.7564678",
"0.7554617",
"0.75343513",
"0.7482638",
"0.74782753",
"0.7452366",
"0.73226494... | 0.6797687 | 51 |
Returns a string representation of the user and their email. | def zAg0(YKHO):
return '{} <{}>'.format(YKHO.name, YKHO.email or '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return YKHO.user.email",
"def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')",
"def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')",
"def D3lj(YKHO, YEnM):\n CBIr = YEnM.user\n return CBIr.email",
"def D3lj(YKHO):\n return YKHO.user_email",
"... | [
"0.75347084",
"0.7457912",
"0.7457912",
"0.7344643",
"0.72631365",
"0.72615147",
"0.7252141",
"0.72388303",
"0.72072387",
"0.71653783",
"0.71653783",
"0.71653783",
"0.7159982",
"0.71346825",
"0.7118745",
"0.71022475",
"0.70929414",
"0.70781875",
"0.7075129",
"0.7049512",
"0.7... | 0.0 | -1 |
Finds a session by date. | def KfiN(YKHO, _c1T):
if isinstance(_c1T, str) and _c1T.lower() == 'goals':
return YKHO.goals
elif isinstance(_c1T, str) and _c1T.lower() == 'recurring':
return YKHO.recurring
for cuiw in YKHO.sessions:
if _c1T == cuiw.date:
return cuiw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JSiQ(_c1T):\n kUBT = neBz(0, _c1T)\n return kUBT",
"def kgfR(YKHO, JkXK, *qIxc, **B2fa):\n if isinstance(JkXK, str):\n JkXK = kLdZ.ObjectId(JkXK)\n return YKHO.find({'_ts_meta.session': JkXK}, *qIxc, **B2fa)",
"def JSiQ(Emd4, _c1T, uJjO):\n return Emd4._find(query={'start_date': _c1T,... | [
"0.6529717",
"0.6333525",
"0.62263614",
"0.58340853",
"0.5788936",
"0.5788198",
"0.5783358",
"0.5778779",
"0.57323724",
"0.5729512",
"0.5665174",
"0.5659809",
"0.56125194",
"0.5606809",
"0.56057036",
"0.5585353",
"0.5579478",
"0.55501395",
"0.55267036",
"0.54933167",
"0.54538... | 0.746831 | 0 |
Test the ``_store_columns`` method when passed a missing column. When the passed column does not exist in the dataframe, it should raise a ``KeyError``. | def Sdit(YKHO):
nPrm = rLdf.DataFrame()
ZLJ_ = ['a', 'b']
kekV = IIvq()
v3uw = set(ZLJ_) - set(nPrm.columns)
tf1m = f'Columns {v3uw} were not present in the data.'
with trZe.raises(KeyError, match=tf1m):
kekV._store_columns(ZLJ_, nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vRsx(YKHO):\n rYO3 = {'A': 'm/s', 'B': 'kg/s', 'C': 'Pa', 'cheetah': 's'}\n nPrm = jQ3Z.Dataframe([QyXt.a, QyXt.b, QyXt.c], units_dict=rYO3)\n YKHO.assertRaises(jQ3Z.NoColumnError, nPrm.val_units, 'mouse')",
"def vRsx(YKHO):\n k0lF = oyIN.array([1.2, 3.1, 1.1])\n tjUW = oyIN.array([4.6, 7.0, 7... | [
"0.7197268",
"0.7151224",
"0.711858",
"0.7110162",
"0.70786923",
"0.7072329",
"0.7018203",
"0.6898914",
"0.68732476",
"0.68514097",
"0.6744788",
"0.6631536",
"0.6561013",
"0.65513945",
"0.6533913",
"0.6527849",
"0.6515743",
"0.649427",
"0.64777195",
"0.6428285",
"0.6423544",
... | 0.81435984 | 0 |
Test the ``transform`` method when the columns are not in the data. When at least one of the passed columns are not present in the data, the method should return the data without doing any transformations. | def KOXx(YKHO):
nPrm = rLdf.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6], 'c': [7, 8, 9]})
class Dummy(IIvq):
ZLJ_ = ['a', 'b', 'd']
WVpW = GaJO()
sXdH = WVpW.transform(nPrm)
rLdf.testing.assert_frame_equal(sXdH, nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXNg(YKHO, PBfK):\n if PBfK is not None:\n PBfK = rjcp(PBfK)\n xzr3 = set(YKHO.X.columns)\n T4M1 = set(PBfK)\n if not T4M1 <= xzr3:\n raise ValueError('Provided transformed_columns: {transformed} are not a subset of columns in data: {columns}'.format(transformed=T4M1, ... | [
"0.7094796",
"0.6863561",
"0.67500603",
"0.6717557",
"0.67000234",
"0.6693578",
"0.66153175",
"0.6563177",
"0.6537853",
"0.65210634",
"0.65149236",
"0.64672196",
"0.6388861",
"0.6245882",
"0.6244725",
"0.62229204",
"0.6205038",
"0.61841935",
"0.6151986",
"0.6138025",
"0.61246... | 0.69930106 | 1 |
Computes the accuracy over the k top predictions for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(... | [
"0.8317406",
"0.8285652",
"0.82828414",
"0.8281149",
"0.82362676",
"0.82337403",
"0.822514",
"0.82245225",
"0.82118344",
"0.81912935",
"0.81870127",
"0.818126",
"0.8180909",
"0.8179992",
"0.81788236",
"0.81788236",
"0.8178704",
"0.81778836",
"0.8177197",
"0.81756",
"0.8173057... | 0.0 | -1 |
Convert effective areas into sensitivities. | def emPf(qbnw, ZqPW, rESK=rYO3.yr, v9QV=2.44):
dx8R = oyIN.log10(qbnw)
FBvk = oyIN.diff(dx8R)
for nt60 in FBvk:
if not oyIN.isclose(nt60, FBvk[0]):
raise ValueError('Energies should be evenly spaced in log-10-space')
_v2o = 1 / FBvk[0]
Llmz = v9QV / rESK * _v2o / oyIN.log(10) / o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qy6w(YKHO):\n return YKHO._collect_as_array('sarea')",
"def yTYb(YKHO):\n raise NotImplementedError",
"def ZqPW(B9Vp, JUqJ, f0tD):\n return B9Vp / JUqJ * f0tD",
"def i0Hj(YKHO, JZXy=False):\n Weup = hKEQ(43200)\n Qawe = hKEQ(43200)\n oshg = hKEQ(28800)\n f8ai = hKEQ(28800)\n nPrm ... | [
"0.5696803",
"0.56641227",
"0.5646999",
"0.52910024",
"0.52209115",
"0.5186218",
"0.5162097",
"0.51393414",
"0.509992",
"0.5069256",
"0.506374",
"0.5054857",
"0.5051321",
"0.5035464",
"0.5025678",
"0.5015536",
"0.50015277",
"0.49872777",
"0.49856818",
"0.49856818",
"0.4983597... | 0.0 | -1 |
Stop the reading process. | async def async_stop(YKHO):
YKHO._continue = False
await YKHO._record_queue.put(None)
await V7ok.sleep(0.01) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.__reading = False",
"def OXXe(YKHO):\n YKHO._read_thread.stop()",
"def JCyR(YKHO):\n YKHO._stop_event.set()\n ITS7.sleep(1)\n YKHO._next_reader = None",
"def JCyR(YKHO):\n if YKHO.thread:\n YKHO.running = False\n if isinstance(YKHO.stream, MMbI):\n ... | [
"0.7879027",
"0.7784825",
"0.7719312",
"0.74199134",
"0.73582375",
"0.732464",
"0.7230268",
"0.7193715",
"0.7179864",
"0.71640897",
"0.71457875",
"0.7096349",
"0.7055217",
"0.7055217",
"0.7041103",
"0.69912565",
"0.6987828",
"0.6987828",
"0.69565225",
"0.69542783",
"0.6954278... | 0.0 | -1 |
Listen for status changes and stop the read if needed. | async def _aldb_status_changed(YKHO, jGRS):
if YKHO._continue and jGRS == eFQm.LOADED:
YKHO._continue = False
await YKHO._record_queue.put(None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w9g6(YKHO):\n while YKHO.serial is not None or YKHO.thread_end:\n try:\n dogc = YKHO.serial.readline()\n if not dogc:\n return False\n YKHO.status = dogc.splitlines()[0]\n YKHO.request_done = True\n except Pt6R.SerialException:\n ... | [
"0.73384523",
"0.6494963",
"0.63317275",
"0.6265905",
"0.6250828",
"0.61454314",
"0.6105711",
"0.6105711",
"0.60882443",
"0.6051974",
"0.6047508",
"0.5969293",
"0.59425753",
"0.59361017",
"0.59361017",
"0.59279364",
"0.58509874",
"0.5849685",
"0.5831633",
"0.58297104",
"0.581... | 0.0 | -1 |
Sets the random seed of the environment to the given value (current time, if seed=None). Naturally deterministic Environments don't have to implement this method. | def yokr(YKHO, yokr):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e3of(YKHO, yokr):\n Yg1o.env_config_game(YKHO.game, b'seed', gk2W.byref(gk2W.c_int(yokr)))",
"def e3of(YKHO, BWXx=None):\n if BWXx is None:\n YKHO._native_state.set_random_seed()\n else:\n YKHO._native_state.set_seed(BWXx)",
"def yokr(YKHO, mqFR: int):\n tuKI.seed(mqFR)",
"def e... | [
"0.7854785",
"0.7682798",
"0.7664958",
"0.7609306",
"0.7585226",
"0.75499064",
"0.752893",
"0.74860847",
"0.7482572",
"0.743531",
"0.73788494",
"0.7371148",
"0.7366969",
"0.73046196",
"0.73022395",
"0.72735137",
"0.72321117",
"0.72160786",
"0.7213591",
"0.71993935",
"0.719566... | 0.0 | -1 |
Reset environment and setup for new episode. | def SiRx(YKHO):
ZI3J = tuKI.random()
esgR = 0.2
if ZI3J < esgR:
YKHO.initialize_flow(complete_reset=True)
else:
YKHO.initialize_flow(complete_reset=False)
rxHc = oyIN.transpose(YKHO.probes_values)
YKHO.episode_number += 1
if YKHO.episode_number > 1 and YKHO.episode_number % Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnkt(YKHO):\n KCHu = YKHO._env.reset()\n return KCHu",
"def b5my(YKHO):\n QTBn = YKHO.env.reset()",
"def SiRx(YKHO):\n Cyum = YKHO.config.scenes\n YKHO.client.setup_scene(Cyum[0])",
"def SiRx(YKHO):\n sQC5.loginfo('Resetting environment...')\n YKHO._pre_reset()\n YKHO.sim_handler.... | [
"0.8224313",
"0.77382666",
"0.73898345",
"0.7338001",
"0.7311308",
"0.73066205",
"0.7280506",
"0.7162399",
"0.7090867",
"0.7078314",
"0.695378",
"0.68911517",
"0.6856674",
"0.6821529",
"0.681184",
"0.6810339",
"0.6752108",
"0.6725573",
"0.67230076",
"0.67107266",
"0.6620314",... | 0.0 | -1 |
Add Brother entities from a config_entry. | async def async_setup_entry(ajET, PhL6, QEEk):
Yk_K = ajET.data[Sugg][PhL6.entry_id]
oB5g = []
mWFP = Yk_K.model
GWuV = {'identifiers': {(Sugg, Yk_K.serial)}, 'name': Yk_K.model, 'manufacturer': VPmp, 'model': Yk_K.model, 'sw_version': Yk_K.firmware}
for XtFw in lc9R:
if XtFw in Yk_K.data:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, PhL6: ConfigEntry) -> None:\n super().__init__(PhL6)\n GPtr = PhL6.options\n YKHO._entities = GPtr.get(AmwT, [])",
"async def async_setup_entry(ajET: HomeAssistant, PhL6: ConfigEntry, QEEk: AddEntitiesCallback) -> None:\n MMe4 = []\n for I4sF in PhL6.data[AmwT]:\n if I4sF[jFL... | [
"0.6236362",
"0.5926395",
"0.59061795",
"0.58470005",
"0.5846653",
"0.5829932",
"0.5800505",
"0.57549894",
"0.57323056",
"0.57078886",
"0.5689056",
"0.56568694",
"0.5598833",
"0.55823",
"0.5574392",
"0.5567093",
"0.55576545",
"0.55504596",
"0.5536596",
"0.5510627",
"0.5500539... | 0.5458318 | 29 |
Return the state attributes. | def R1i3(YKHO):
if YKHO.kind == nh2I:
YKHO._attrs['remaining_pages'] = YKHO.printer.data.get(EzqH)
YKHO._attrs['counter'] = YKHO.printer.data.get(GvFG)
return YKHO._attrs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.0 | -1 |
Return a unique_id for this entity. | def ShR8(YKHO):
return YKHO._unique_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')",
"def ShR8(YKHO):\n return YKHO._carson_entity.unique_entity_id",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YK... | [
"0.8720458",
"0.8476537",
"0.84150267",
"0.84150267",
"0.8327703",
"0.8327703",
"0.8327703",
"0.8327703",
"0.8327703",
"0.8237663",
"0.8237663",
"0.8237663",
"0.8237663",
"0.8237663",
"0.8237663",
"0.8237663",
"0.8237663",
"0.8237663",
"0.8175289",
"0.8065098",
"0.8065098",
... | 0.8211222 | 18 |
Return the unit the value is expressed in. | def b82i(YKHO):
return lc9R[YKHO.kind][znBy] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82... | [
"0.84137076",
"0.8299376",
"0.8299376",
"0.8299376",
"0.8299376",
"0.8299376",
"0.8299376",
"0.8299376",
"0.8299376",
"0.8299376",
"0.8299376",
"0.82590276",
"0.8214496",
"0.8192878",
"0.8180198",
"0.81793565",
"0.8151953",
"0.8094752",
"0.8094752",
"0.8061112",
"0.80569327",... | 0.80445987 | 48 |
Return the device info. | def GWuV(YKHO):
return YKHO._device_info | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWuV(YKHO):\n return YKHO._device.device_info",
"def GWuV(YKHO):\n return YKHO._api.device_info",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def A_Rj(YKHO):\n _hkX = YKHO._writeCmd('DEVICEINFO')\n hRiq = _hkX[0].strip... | [
"0.8863439",
"0.8860873",
"0.88422513",
"0.88422513",
"0.8667184",
"0.8620427",
"0.85729885",
"0.8472082",
"0.84417117",
"0.8430408",
"0.8414165",
"0.84125847",
"0.8402571",
"0.8400361",
"0.8366213",
"0.83601284",
"0.8329811",
"0.83260775",
"0.8319017",
"0.8303236",
"0.829602... | 0.87083894 | 4 |
The player ids from this leaderboard in rank order. | def A07C(YKHO):
return [XP5J['id'] for XP5J in YKHO.response['data']['relationships']['players']['data']] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELxn(YKHO):\n return [WKvO[0] for WKvO in YKHO.players]",
"def z4tM(YKHO) -> list:\n A07C = cw6N.objects.filter(match=YKHO.match).values_list('player', flat=True)\n return A07C or []",
"def H8T2(Emd4):\n return [oyg0.creator_id for oyg0 in Emd4.active_players.values()]",
"def Bwa6(YKHO):\n ... | [
"0.7712405",
"0.70952773",
"0.69254136",
"0.6916129",
"0.6910386",
"0.68983424",
"0.6862171",
"0.68358064",
"0.6693046",
"0.66226625",
"0.66014963",
"0.6554721",
"0.65449595",
"0.65388966",
"0.6524949",
"0.6524949",
"0.6524949",
"0.6524949",
"0.6522441",
"0.65213996",
"0.6516... | 0.71778065 | 1 |
A URL for this leaderboard resource. | def bD7m(YKHO):
return YKHO.response['links']['self'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bD7m(YKHO):\n return uwaB.URL",
"def bD7m(YKHO):\n return f'http://{YKHO.address}:{YKHO.port}/{YKHO.path.name}'",
"def bD7m(YKHO) -> str:\n return YKHO._url",
"def bD7m(YKHO) -> str:\n return YKHO._url",
"def bD7m(YKHO) -> str:\n return YKHO._url",
"def bD7m(YKHO) -> str:\n return Y... | [
"0.6939201",
"0.68359065",
"0.6829944",
"0.6829944",
"0.6829944",
"0.6829944",
"0.6829944",
"0.6829944",
"0.6829944",
"0.6829944",
"0.6829944",
"0.6829944",
"0.6829944",
"0.67928517",
"0.67184454",
"0.67184454",
"0.670873",
"0.670873",
"0.670873",
"0.670873",
"0.670873",
"0... | 0.0 | -1 |
The player_id of the player at the given rank. | def id(YKHO, fdMZ):
return YKHO.response['data']['relationships']['players']['data'][fdMZ - 1]['id'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yztK(oyg0):\n return mVZ4.query.filter_by(username=oyg0).first().id",
"def LZbL(YKHO):\n return YKHO._attributes.get('player_id', None)",
"def LZbL(YKHO):\n return YKHO._id",
"def LZbL(YKHO):\n return YKHO.playerID",
"def oMnU():\n Sxdu = Hy7s.getenv('RANK_ID', '0')\n return int(Sxdu)... | [
"0.7329658",
"0.6884394",
"0.6883032",
"0.6815585",
"0.67844296",
"0.67269796",
"0.6595366",
"0.65519553",
"0.6428991",
"0.63892454",
"0.6351449",
"0.62360007",
"0.62326866",
"0.6232218",
"0.622608",
"0.6203245",
"0.60978824",
"0.60904074",
"0.6046759",
"0.60465544",
"0.60395... | 0.8607424 | 0 |
Create a string representing the leaderboard and stats. | def ox5g(YKHO, vaWC=None):
if vaWC is None:
vaWC = []
nPrm = []
for oyg0 in YKHO.response['included']:
cdKq = {'rank': oyg0['attributes']['rank'], 'id': oyg0['id'], 'name': oyg0['attributes']['name']}
for G1Hx, Ty9i in oyg0['attributes']['stats'].items():
cdKq[Ee9n(G1Hx)]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fJdZ(u0bc: typing.Dict[str, dict]) -> str:\n JCS8 = [LPpG]\n for fdMZ, nPrm in enumerate(u0bc.values(), start=1):\n JCS8.append(A2Ym.format(rank=fdMZ, name=nPrm['name'], score=str(nPrm['score']), stars=f'({nPrm['star_1']}, {nPrm['star_2']})'))\n return '\\n'.join(JCS8)",
"def RMEP(YKHO, OaeV,... | [
"0.7394007",
"0.7193678",
"0.7016469",
"0.69958645",
"0.6945742",
"0.6884971",
"0.680753",
"0.6778821",
"0.6778821",
"0.6767791",
"0.6749637",
"0.6743818",
"0.6692387",
"0.66429883",
"0.6597395",
"0.6522119",
"0.6513267",
"0.6502748",
"0.6476102",
"0.6370297",
"0.63614345",
... | 0.0 | -1 |
Get a player object for the player at the given rank. | def nAM4(YKHO, fdMZ):
return mVZ4(YKHO._pubg, YKHO.id(fdMZ), shard=YKHO._shard) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmpL(YKHO, OzkW):\n U5bT = xx3J()\n HRrY = uwaB.RANKS[uwaB.PLAYERS_LIST_DATABASES[YKHO.database]['ranks_country']]\n if str(OzkW) not in HRrY:\n return U5bT\n U5bT.id = OzkW\n U5bT.name = HRrY[str(OzkW)]['name']\n U5bT.xp = HRrY[str(OzkW)]['xp']\n if wk5E:\n U5bT.set_images_a... | [
"0.72240025",
"0.70609814",
"0.689934",
"0.6768089",
"0.67335767",
"0.6528474",
"0.65140563",
"0.63951623",
"0.63770807",
"0.637559",
"0.6345034",
"0.6305387",
"0.6261413",
"0.625712",
"0.625712",
"0.625712",
"0.6224923",
"0.6218549",
"0.6208295",
"0.62045807",
"0.61993945",
... | 0.8800784 | 0 |
Plot the frequency histogram. | def _cxO(YKHO) -> QrM1.figure:
JKdx = QrM1.figure(figsize=(9, 6))
aNZO = JKdx.add_subplot(111)
KUqA = ['CV', 'Pulsar', 'X-ray binary', 'SN', 'GRB', 'Stellar', 'Quasar (RADIO Sel.)', 'Quasar (OPTICAL Sel.)']
KUqA.reverse()
Crrw = ['CV', 'Radio Pulsar', 'X-ray binary', 'SN', 'GRB', 'Stellar', 'Quasar ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rgm6(YKHO):\n QrM1.axvline(YKHO.mean(), color='r', linestyle='dotted', label='Mean')\n hgl7, RsfQ = (YKHO.data.min(), YKHO.data.max())\n J1c0, WXkz = XTiz.histogram(YKHO.data, bins=int(1 + RsfQ - hgl7), range=(hgl7 - 0.5, RsfQ + 0.5))\n QrM1.bar(WXkz[:-1] + 0.5, J1c0, label='Histogram')\n QrM1.l... | [
"0.7905132",
"0.7666543",
"0.7594593",
"0.74588734",
"0.7380961",
"0.7321064",
"0.7304265",
"0.7168073",
"0.71571565",
"0.70892763",
"0.6864268",
"0.68560296",
"0.6784581",
"0.67192787",
"0.67119944",
"0.6675662",
"0.66733116",
"0.6667294",
"0.6660111",
"0.6646472",
"0.664317... | 0.7053385 | 10 |
Plot the optical band magnitudes. | def jOXW(YKHO) -> QrM1.figure:
ible = QrM1.figure(figsize=(9, 6))
aNZO = ible.add_subplot(111)
KUqA = ['CV', 'Pulsar', 'X-ray binary', 'SN', 'GRB', 'Stellar', 'Quasar (RADIO Sel.)', 'Quasar (OPTICAL Sel.)']
KUqA.reverse()
Crrw = ['CV', 'Radio Pulsar', 'X-ray binary', 'SN', 'GRB', 'Stellar', 'Quasar ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d3ZW(YKHO, pKvt, yvT9, aNZO=None, rYO3='m', **B2fa):\n if aNZO is None:\n aNZO = QrM1.gca()\n DlgW = YKHO.frequency_range\n FOSW = YKHO.magnitude\n aNZO.plot(DlgW, FOSW[pKvt, yvT9, :], **B2fa)\n aNZO.set_xlim(0, max(DlgW))\n aNZO.yaxis.set_major_locator(x5MY.ticker.MaxNLocator(prune='l... | [
"0.73339856",
"0.72673035",
"0.64726436",
"0.6469648",
"0.6326732",
"0.6287978",
"0.61672765",
"0.61375064",
"0.610074",
"0.6080151",
"0.60729027",
"0.6028646",
"0.602309",
"0.5995412",
"0.59727263",
"0.59661126",
"0.5963899",
"0.5949462",
"0.5925229",
"0.5891757",
"0.5867988... | 0.5865826 | 21 |
Plot the stellar distance histogram. | def KLd9(YKHO) -> QrM1.figure:
if not YKHO.group_stellar:
raise ValueError("RadioOpticalPlot must be initialised with 'group_stellar=True' to create the stellar distance histogram.")
QutU = YKHO._load_stellar_distances()
QutU['distance_conv'] = QutU['distance'] / 1000.0
xHT4 = YKHO.base_data_df.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hhjs(YKHO):\n Csk6 = YKHO.calcGridDeltaList()\n QrM1.hist(Csk6)\n QrM1.title('Histogram of Distortion')\n QrM1.show()",
"def YS1e(TaUL, UHFx, wdOU=1, XbGD='Pixels'):\n import pandas as rLdf\n if wdOU:\n TaUL = [WKvO * wdOU for WKvO in TaUL]\n if XbGD == 'um':\n XbGD = 'μm'\... | [
"0.7221966",
"0.71005327",
"0.6582052",
"0.65505826",
"0.65404516",
"0.64093107",
"0.63832456",
"0.637682",
"0.6333829",
"0.63267636",
"0.63201106",
"0.6310566",
"0.63066155",
"0.62958115",
"0.62418413",
"0.6228024",
"0.6182628",
"0.6141986",
"0.6115091",
"0.60917",
"0.609104... | 0.80209255 | 0 |
load model from checkpoint or pretrained_model | def fPO8(GPtr, Zxma, K0do=None):
deXY = GPtr.get('checkpoints')
if deXY and K0do is not None:
assert Hy7s.path.exists(deXY + '.pdparams'), 'Given dir {}.pdparams not exist.'.format(deXY)
assert Hy7s.path.exists(deXY + '.pdopt'), 'Given dir {}.pdopt not exist.'.format(deXY)
ecnw = CbyH.lo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, V1C0):\n YKHO.checkpoint.restore(ZylS.train.latest_checkpoint(V1C0))",
"def uyMl(YKHO, V1C0):\n YKHO.checkpoint.restore(ZylS.train.latest_checkpoint(V1C0))",
"def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ad8h = t2lc.load(pan_)\n return ad8h",
"def uyMl():... | [
"0.8179657",
"0.8179657",
"0.8088282",
"0.8088282",
"0.8088282",
"0.8030803",
"0.799945",
"0.7947454",
"0.7939906",
"0.7936261",
"0.79083073",
"0.79082716",
"0.7891361",
"0.7891361",
"0.78633684",
"0.7862535",
"0.7858887",
"0.78553015",
"0.78427404",
"0.78395677",
"0.78325045... | 0.0 | -1 |
The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'reso... | [
"0.6893805",
"0.6893805",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"0.6418663",
"... | 0.6465237 | 18 |
The ID of the Log Analytics Workspace that will contain the Log Analytics Linked Service resource. | def NPt0(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'workspace_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'log_analytics_workspace_id')",
"def Qjbq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'log_analytics_workspace_id')",
"def Qjbq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'log_analytics_workspace_id')",
"def ... | [
"0.728492",
"0.728492",
"0.72329754",
"0.72329754",
"0.6758682",
"0.6758682",
"0.6758682",
"0.6683436",
"0.6583703",
"0.64917713",
"0.64270985",
"0.63849646",
"0.6348214",
"0.633077",
"0.633077",
"0.63019043",
"0.63019043",
"0.6266558",
"0.62551296",
"0.6227292",
"0.6166003",... | 0.6074578 | 33 |
The ID of the readable Resource that will be linked to the workspace. This should be used for linking to an Automation Account resource. | def yiD6(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'read_access_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Adb4(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_resource_id')",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def id(YKHO):\n return YKHO._resource_id",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'reso... | [
"0.76748747",
"0.75784844",
"0.74397606",
"0.7302793",
"0.7302793",
"0.7302793",
"0.728156",
"0.7266724",
"0.7246561",
"0.72066766",
"0.72066766",
"0.71444046",
"0.7076289",
"0.7061908",
"0.69508165",
"0.69508165",
"0.69508165",
"0.69508165",
"0.69508165",
"0.6943846",
"0.694... | 0.0 | -1 |
The ID of the writable Resource that will be linked to the workspace. This should be used for linking to a Log Analytics Cluster resource. | def Oz_B(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'write_access_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Adb4(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_resource_id')",
"def PcW4(YKHO):\n raise NotImplementedError()",
"def PcW4(YKHO) -> str:\n return YKHO.__resource_id",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def id(YKHO):\n return YKHO._resource_id",
"def Adb4(YKH... | [
"0.73590195",
"0.70759916",
"0.6985314",
"0.69733745",
"0.69617766",
"0.6895323",
"0.6895323",
"0.6876583",
"0.6876583",
"0.6876583",
"0.686197",
"0.684969",
"0.6788614",
"0.6774487",
"0.6774487",
"0.67181957",
"0.6714456",
"0.67022794",
"0.67022794",
"0.67022794",
"0.6702279... | 0.0 | -1 |
The ID of the readable Resource that will be linked to the workspace. This should be used for linking to an Automation Account resource. | def yiD6(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'read_access_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Adb4(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_resource_id')",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def id(YKHO):\n return YKHO._resource_id",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'reso... | [
"0.76748747",
"0.75784844",
"0.74397606",
"0.7302793",
"0.7302793",
"0.7302793",
"0.728156",
"0.7266724",
"0.7246561",
"0.72066766",
"0.72066766",
"0.71444046",
"0.7076289",
"0.7061908",
"0.69508165",
"0.69508165",
"0.69508165",
"0.69508165",
"0.69508165",
"0.6943846",
"0.694... | 0.0 | -1 |
The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created. | def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resour... | [
"0.68934083",
"0.68934083",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
... | 0.0 | -1 |
The ID of the Log Analytics Workspace that will contain the Log Analytics Linked Service resource. | def NPt0(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'workspace_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'log_analytics_workspace_id')",
"def Qjbq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'log_analytics_workspace_id')",
"def Qjbq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'log_analytics_workspace_id')",
"def ... | [
"0.7286229",
"0.7286229",
"0.72342",
"0.72342",
"0.6759397",
"0.6759397",
"0.6759397",
"0.6685583",
"0.65843344",
"0.6492761",
"0.6427382",
"0.6385543",
"0.6347456",
"0.63315344",
"0.63315344",
"0.6302769",
"0.6302769",
"0.62672395",
"0.6255373",
"0.62274545",
"0.61659384",
... | 0.5972048 | 36 |
The ID of the writable Resource that will be linked to the workspace. This should be used for linking to a Log Analytics Cluster resource. | def Oz_B(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'write_access_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Adb4(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_resource_id')",
"def PcW4(YKHO):\n raise NotImplementedError()",
"def PcW4(YKHO) -> str:\n return YKHO.__resource_id",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def id(YKHO):\n return YKHO._resource_id",
"def Adb4(YKH... | [
"0.7356028",
"0.7074721",
"0.69829243",
"0.69707984",
"0.6959556",
"0.6892051",
"0.6892051",
"0.6873516",
"0.6873516",
"0.6873516",
"0.6859475",
"0.68465406",
"0.67852503",
"0.6771714",
"0.6771714",
"0.6715709",
"0.6712378",
"0.6699353",
"0.6699353",
"0.6699353",
"0.6699353",... | 0.0 | -1 |
Get an existing LinkedService resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, mWFP: Optional[pulumi.Input[str]]=None, yiD6: Optional[pulumi.Input[str]]=None, TRLE: Optional[pulumi.Input[str]]=None, NPt0: Optional[pulumi.Input[str]]=None, Oz_B: Optional[pulumi.Input[str]]=None) -> 'LinkedService':
VKhi = q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, zkAN: Optional[pulumi.Input[str]]=None, tZ3A: Optional[pulumi.Input[str]]=None, OHiI: Optional[pulumi.Input[str]]=None, afYW: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType[... | [
"0.61952215",
"0.6099572",
"0.5793546",
"0.57005024",
"0.5672286",
"0.5661617",
"0.5625388",
"0.5568513",
"0.54892844",
"0.54841536",
"0.5477626",
"0.5429791",
"0.5421487",
"0.540488",
"0.53843623",
"0.5383987",
"0.5360548",
"0.53126615",
"0.5287826",
"0.5258949",
"0.5241959"... | 0.73916143 | 0 |
The ID of the readable Resource that will be linked to the workspace. This should be used for linking to an Automation Account resource. | def yiD6(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'read_access_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Adb4(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_resource_id')",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def id(YKHO):\n return YKHO._resource_id",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'reso... | [
"0.76748747",
"0.75784844",
"0.74397606",
"0.7302793",
"0.7302793",
"0.7302793",
"0.728156",
"0.7266724",
"0.7246561",
"0.72066766",
"0.72066766",
"0.71444046",
"0.7076289",
"0.7061908",
"0.69508165",
"0.69508165",
"0.69508165",
"0.69508165",
"0.69508165",
"0.6943846",
"0.694... | 0.0 | -1 |
The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created. | def TRLE(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resour... | [
"0.68934083",
"0.68934083",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
"0.6464321",
... | 0.64180124 | 77 |
The ID of the Log Analytics Workspace that will contain the Log Analytics Linked Service resource. | def NPt0(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'workspace_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'log_analytics_workspace_id')",
"def Qjbq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'log_analytics_workspace_id')",
"def Qjbq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'log_analytics_workspace_id')",
"def ... | [
"0.7286229",
"0.7286229",
"0.72342",
"0.72342",
"0.6759397",
"0.6759397",
"0.6759397",
"0.6685583",
"0.65843344",
"0.6492761",
"0.6427382",
"0.6385543",
"0.6347456",
"0.63315344",
"0.63315344",
"0.62672395",
"0.6255373",
"0.62274545",
"0.61659384",
"0.6158721",
"0.6158721",
... | 0.6302769 | 15 |
The ID of the writable Resource that will be linked to the workspace. This should be used for linking to a Log Analytics Cluster resource. | def Oz_B(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'write_access_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Adb4(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_resource_id')",
"def PcW4(YKHO):\n raise NotImplementedError()",
"def PcW4(YKHO) -> str:\n return YKHO.__resource_id",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def id(YKHO):\n return YKHO._resource_id",
"def Adb4(YKH... | [
"0.7356028",
"0.7074721",
"0.69829243",
"0.69707984",
"0.6959556",
"0.6892051",
"0.6892051",
"0.6873516",
"0.6873516",
"0.6873516",
"0.6859475",
"0.68465406",
"0.67852503",
"0.6771714",
"0.6771714",
"0.6715709",
"0.6712378",
"0.6699353",
"0.6699353",
"0.6699353",
"0.6699353",... | 0.6030213 | 96 |
returns average of list elements | def qqgr(YKHO):
return sum(list(YKHO)) / float(len(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qqgr(BDwY):\n return sum(BDwY) / float(len(BDwY))",
"def qqgr(yv6U):\n assert len(yv6U) > 0, 'List must contain something'\n return sum(yv6U) / len(yv6U)",
"def WUEZ(BDwY):\n return float(sTKP(BDwY)) / len(BDwY)",
"def S8vG(vC9B):\n MCOv = sum(vC9B, 0.0)\n return MCOv / len(vC9B)",
"d... | [
"0.871525",
"0.86143863",
"0.86116844",
"0.86038834",
"0.85522586",
"0.8536557",
"0.8467042",
"0.8464113",
"0.84215647",
"0.8371506",
"0.83706504",
"0.83706504",
"0.8370237",
"0.83645314",
"0.8362843",
"0.83490866",
"0.83218604",
"0.82886875",
"0.8273303",
"0.82724303",
"0.82... | 0.75962555 | 71 |
Generate a random color | def mzyi(bFGn=0, t53J=1.0, w6Ju=0, GsOG=1.0, T6DM=0, TIiZ=1.0):
Mkmy = bFGn + (t53J - bFGn) * tuKI()
Oa1e = w6Ju + (GsOG - w6Ju) * tuKI()
Fg_i = T6DM + (TIiZ - T6DM) * tuKI()
return (Mkmy, Oa1e, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pph3():\n Mkmy = ajWY(0, 255)\n Oa1e = ajWY(0, 255)\n Fg_i = ajWY(0, 255)\n return (Mkmy, Oa1e, Fg_i)",
"def Q1j8():\n return ajWY(0, oIn1 - 1)",
"def Q5jr():\n Mkmy = tuKI.randint(0, 255)\n Oa1e = tuKI.randint(0, 255)\n Fg_i = tuKI.randint(0, 255)\n return (Mkmy, Oa1e, Fg_i)",
... | [
"0.8742832",
"0.86633515",
"0.8639498",
"0.8633454",
"0.8547885",
"0.85295904",
"0.85145986",
"0.84791815",
"0.8463675",
"0.8409855",
"0.8359533",
"0.83410865",
"0.8291369",
"0.8289915",
"0.82057947",
"0.8202629",
"0.81919426",
"0.8184332",
"0.81177264",
"0.81121314",
"0.8106... | 0.7585384 | 47 |
Generate a random point in a sphere | def WAJ6(Mkmy=1.0, Rci7=(0, 0, 0)):
Mkmy = tuKI() * Mkmy
q7In = tuKI() * 360.0
rVnq = tuKI() * 180.0
WKvO = Mkmy * nfhs(q7In) * L3sN(rVnq) + Rci7[0]
LVAh = Mkmy * L3sN(q7In) * L3sN(rVnq) + Rci7[1]
epBp = Mkmy * nfhs(rVnq) + Rci7[2]
return (WKvO, LVAh, epBp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDZP():\n\n def NkkI(Ty9i):\n CkYf = XTiz.linalg.norm(Ty9i)\n if CkYf == 0:\n return Ty9i\n else:\n return Ty9i / CkYf\n Ty9i = XTiz.zeros(3)\n for YRbF in range(3):\n G1Hx = 15\n XTiz.random.seed()\n H6nk = XTiz.random.standard_normal(si... | [
"0.83769983",
"0.8240859",
"0.8155127",
"0.8138936",
"0.80118114",
"0.79561377",
"0.781562",
"0.7684975",
"0.7658501",
"0.7592732",
"0.74965346",
"0.7294787",
"0.7259212",
"0.7258569",
"0.71267015",
"0.71210986",
"0.71210986",
"0.7097755",
"0.707359",
"0.7071104",
"0.7062565"... | 0.79321605 | 6 |
Generate a random point in a rectangular prism | def iRMU(WKvO=1, LVAh=2, epBp=3, Rci7=(0, 0, 0)):
WKvO = float(WKvO)
LVAh = float(LVAh)
epBp = float(epBp)
ydZk = tuKI() * WKvO - WKvO / 2.0 + Rci7[0]
OhBR = tuKI() * LVAh - LVAh / 2.0 + Rci7[1]
dnz0 = tuKI() * epBp - epBp / 2.0 + Rci7[2]
return (ydZk, OhBR, dnz0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _A_N(YKHO):\n gT7o = 2.0 * oyIN.pi * oyIN.random.random_sample()\n WKvO = YKHO.mid + (YKHO.particle_radius * YKHO.r_max + 2) * oyIN.cos(gT7o)\n LVAh = YKHO.mid + (YKHO.particle_radius * YKHO.r_max + 2) * oyIN.sin(gT7o)\n return (WKvO, LVAh)",
"def qRtf():\n return (ajWY(0, 4), 2)",
"def AU8u... | [
"0.7620713",
"0.7592728",
"0.7561772",
"0.73968744",
"0.73834085",
"0.7321001",
"0.72147346",
"0.71515733",
"0.71316653",
"0.7055552",
"0.7055287",
"0.703024",
"0.703024",
"0.703024",
"0.7003845",
"0.6995234",
"0.69933254",
"0.6945021",
"0.6943508",
"0.6943508",
"0.6914376",
... | 0.7857564 | 0 |
Show all objects Adjust the Blender viewport to contain all objects, filling the frame with them. | def IGqf():
if kZw_.context.screen is not None:
for f0tD in kZw_.context.screen.areas:
if f0tD.type == 'VIEW_3D':
for zn0c in f0tD.regions:
if zn0c.type == 'WINDOW':
jRxN = {'area': f0tD, 'region': zn0c}
kZw_.ops... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ugtd(YKHO):\n FlUN = [0, 0, YKHO.__width, YKHO.__height]\n for ZRQR in YKHO.__Blocks:\n FlUN = p4Db.union(FlUN, ZRQR.bbox)\n pass\n for ZRQR in YKHO.__Nodes:\n FlUN = p4Db.union(FlUN, ZRQR.bbox)\n pass\n for ZRQR in YKHO.__Connectors:\n FlUN = p4Db.union(FlUN, ZRQ... | [
"0.7033628",
"0.6937988",
"0.6913054",
"0.68934",
"0.68537396",
"0.6828046",
"0.6738685",
"0.66241413",
"0.655209",
"0.65280616",
"0.65101415",
"0.64735645",
"0.6466993",
"0.64400893",
"0.6399839",
"0.638059",
"0.6342038",
"0.6337759",
"0.63347554",
"0.63202053",
"0.6318903",... | 0.7055565 | 0 |
Return the cosine of an angle | def nfhs(q7In):
return epAf.cos(Efpd(q7In)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dzI3(YylR):\n assert type(YylR) == int or type(YylR) == float\n return epAf.cos(epAf.radians(YylR))",
"def dzI3(YylR):\n Ylbp = oyIN.cos(oyIN.radians(YylR))\n return Ylbp",
"def dzI3(YylR):\n Ylbp = oyIN.cos(oyIN.radians(YylR))\n return Ylbp",
"def YhSR(BWXx):\n return epAf.cos(BWXx)... | [
"0.8471668",
"0.8325578",
"0.8325578",
"0.7921686",
"0.7915928",
"0.787843",
"0.7810362",
"0.78056604",
"0.77533937",
"0.7719319",
"0.7711374",
"0.7710252",
"0.7681866",
"0.76556504",
"0.75845873",
"0.7570061",
"0.752292",
"0.74936926",
"0.73740494",
"0.7368858",
"0.73574007"... | 0.79669034 | 3 |
Return the cross product between vector 1 and vector 2 | def BMZ6(o4D3, si3g, Rtnc, ajwV, skBL, mPai):
return (si3g * mPai - Rtnc * skBL, Rtnc * ajwV - o4D3 * mPai, o4D3 * skBL - si3g * ajwV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHx2(lSjb, v8Fa):\n Aofo = VNqG(3)\n return hmBT(lSjb, v8Fa, Aofo)",
"def rBKU(ENWa, ZoT5):\n Aofo = [ENWa[1] * ZoT5[2] - ENWa[2] * ZoT5[1], ENWa[2] * ZoT5[0] - ENWa[0] * ZoT5[2], ENWa[0] * ZoT5[1] - ENWa[1] * ZoT5[0]]\n return Aofo",
"def WHx2(hQHm, jlSq):\n return hQHm[0] * jlSq[1] - hQHm[... | [
"0.8540449",
"0.8515785",
"0.8502694",
"0.848468",
"0.8453789",
"0.8384808",
"0.8371179",
"0.8250467",
"0.81988376",
"0.8172608",
"0.8046211",
"0.8007834",
"0.80003047",
"0.7996211",
"0.79283583",
"0.79174805",
"0.7904421",
"0.7901166",
"0.7871979",
"0.7860818",
"0.7857343",
... | 0.7289007 | 46 |
Return the cross product between vector 1 and vector 2 | def TX8c(hQHm=(0, 0, 0), jlSq=(0, 0, 1.0)):
return BMZ6(hQHm[0], hQHm[1], hQHm[2], jlSq[0], jlSq[1], jlSq[2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHx2(lSjb, v8Fa):\n Aofo = VNqG(3)\n return hmBT(lSjb, v8Fa, Aofo)",
"def rBKU(ENWa, ZoT5):\n Aofo = [ENWa[1] * ZoT5[2] - ENWa[2] * ZoT5[1], ENWa[2] * ZoT5[0] - ENWa[0] * ZoT5[2], ENWa[0] * ZoT5[1] - ENWa[1] * ZoT5[0]]\n return Aofo",
"def WHx2(hQHm, jlSq):\n return hQHm[0] * jlSq[1] - hQHm[... | [
"0.8538632",
"0.8516361",
"0.8502021",
"0.84838617",
"0.8453462",
"0.83840734",
"0.8372337",
"0.82492036",
"0.81979334",
"0.81712425",
"0.8045448",
"0.7999884",
"0.7995337",
"0.79262173",
"0.7915969",
"0.79030234",
"0.7901043",
"0.78695655",
"0.78589416",
"0.78550977",
"0.784... | 0.8006857 | 11 |
Return the cross vector from p1 to p2 | def lNLu(EBgd=(0, 0, 0), HpuQ=(1, 1, 1)):
return (HpuQ[0] - EBgd[0], HpuQ[1] - EBgd[1], HpuQ[2] - EBgd[2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHx2(EBgd, HpuQ):\n WKvO = EBgd[1] * HpuQ[2] - EBgd[2] * HpuQ[1]\n LVAh = EBgd[2] * HpuQ[0] - EBgd[0] * HpuQ[2]\n epBp = EBgd[0] * HpuQ[1] - EBgd[1] * HpuQ[0]\n return (WKvO, LVAh, epBp)",
"def WHx2(hQHm, jlSq):\n return hQHm[0] * jlSq[1] - hQHm[1] * jlSq[0]",
"def IdBT(YKHO, jlSq: Vector) -... | [
"0.84365535",
"0.80923265",
"0.80720234",
"0.7844911",
"0.7731331",
"0.7722792",
"0.76933056",
"0.7676536",
"0.7647926",
"0.7590041",
"0.75846565",
"0.7540771",
"0.74340135",
"0.74243355",
"0.74091065",
"0.7388192",
"0.73817456",
"0.7375778",
"0.7367546",
"0.7341706",
"0.7305... | 0.6744525 | 66 |
Add one vector to another | def HBcq(hQHm=(0, 0, 0), jlSq=(1, 1, 1)):
return (jlSq[0] + hQHm[0], jlSq[1] + hQHm[1], jlSq[2] + hQHm[2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wzyp(ENWa, ZoT5):\n Kt9y = hkxX(ENWa)\n I_KI = hkxX(ZoT5)\n cCPj = list(Kt9y)\n Y6v1 = list(I_KI)\n ZySs = []\n if len(cCPj) >= len(Y6v1):\n M62B = ENWa(0)\n else:\n M62B = ZoT5(0)\n for YRbF in range(M62B):\n ZySs.append(cCPj[YRbF] + Y6v1[YRbF])\n return Q_4j(M6... | [
"0.83562994",
"0.813794",
"0.8002248",
"0.79793847",
"0.79546773",
"0.79137117",
"0.791222",
"0.7905875",
"0.78214157",
"0.78132147",
"0.780167",
"0.7784608",
"0.7755743",
"0.7730188",
"0.7717853",
"0.77150947",
"0.77070874",
"0.7690334",
"0.7688608",
"0.7629777",
"0.7600715"... | 0.69333273 | 87 |
Return the number of edges in the object | def U9pj(NZQz):
return len(NZQz.data.edges) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vi4d(YKHO):\n return YKHO._n",
"def n8F9():\n return len(mC4V())",
"def n8F9(YKHO):\n return len(tuple(YKHO.edges()))",
"def n8F9(YKHO):\n return len(tuple(YKHO.edges()))",
"def U6jt(YKHO):\n apzJ.abstract()",
"def fOCg(YKHO) -> int:\n pass",
"def fOCg(YKHO) -> int:\n pass",
... | [
"0.83044326",
"0.829636",
"0.8229112",
"0.8229112",
"0.82151157",
"0.8189529",
"0.8189529",
"0.8171865",
"0.81305647",
"0.81136364",
"0.81005144",
"0.81005144",
"0.80717087",
"0.8008548",
"0.7997906",
"0.7992327",
"0.7986747",
"0.7961082",
"0.7947782",
"0.7936402",
"0.7935333... | 0.87720186 | 0 |
Return the cumulative hazard function of each sample | def _CJ2(YKHO, EcVT):
eHNY = oyIN.tile(YKHO.unique_event_times, (EcVT.shape[0], 1))
return rLdf.DataFrame(oyIN.log(1.0 + (eHNY.T * YKHO.predict_hazards(EcVT)) ** YKHO._rho), index=YKHO.unique_event_times) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FQed(YKHO):\n wjRY = 0.0\n for YRbF in range(0, YKHO.tick_count):\n Yqag = YKHO.get_x_value_from_index(YRbF)\n Q7Be = YKHO.shape_function(Yqag)\n zgiu.validate_real_number_is_positive_or_zero(Q7Be)\n wjRY += Q7Be\n YKHO.cumulative_function.append(wjRY)",
"def FarL(YKH... | [
"0.66209924",
"0.6252673",
"0.6122864",
"0.60220855",
"0.5928181",
"0.589847",
"0.5885093",
"0.5825691",
"0.5825591",
"0.57989603",
"0.5789701",
"0.57789874",
"0.5692806",
"0.5682207",
"0.5678065",
"0.56428635",
"0.56175286",
"0.5613408",
"0.56030774",
"0.554513",
"0.55092657... | 0.6516965 | 1 |
Returns the title of the talk. | def Upwb(Z9JV):
leAC = Z9JV.find('h1', class_='mat-tit').contents[0]
return leAC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PsfD(oFlS):\n leAC = oFlS.title.strip()\n return go5S(leAC)",
"def Upwb(YKHO) -> str:\n return YKHO._title",
"def Upwb(YKHO) -> str:\n return YKHO.title",
"def Upwb(YKHO) -> str:\n return YKHO.title",
"def Upwb(YKHO):\n return YKHO._payload.get_title()",
"def Upwb(YKHO):\n return... | [
"0.84209967",
"0.78568953",
"0.78503346",
"0.78503346",
"0.77727723",
"0.7763395",
"0.7763395",
"0.7763395",
"0.77528435",
"0.77528435",
"0.7749259",
"0.7749259",
"0.7749259",
"0.774595",
"0.7742017",
"0.7742017",
"0.7742017",
"0.7742017",
"0.7742017",
"0.7742017",
"0.7742017... | 0.0 | -1 |
Return the specific permission necessary to perform the requested action on an object. | def qmGt(YKHO):
raise NotImplementedError(f'{YKHO.__class__.__name__} must implement get_required_permission()') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _JiD(YKHO, YEnM):\n iSMD = YKHO.context['request'].QUERY_PARAMS.get('hash', None)\n return YEnM.get_permission_for_user(YKHO.context['request'].user, view_hash=iSMD)",
"def m4il(YKHO, QePW, tTee, YEnM):\n pNRJ = YEnM.get_abilities(QePW.user)\n return pNRJ.get(QePW.method.lower(), False)",
"def ... | [
"0.7582358",
"0.72597426",
"0.71996254",
"0.7158204",
"0.6876963",
"0.68290114",
"0.6807847",
"0.6776618",
"0.6683466",
"0.66754484",
"0.6655357",
"0.6642881",
"0.663248",
"0.6625553",
"0.662156",
"0.65829134",
"0.65766025",
"0.6575365",
"0.6575365",
"0.6574436",
"0.65720254"... | 0.6957037 | 5 |
Return the specific permission necessary to perform the requested action on an object. | def qmGt(YKHO):
raise NotImplementedError(f'{YKHO.__class__.__name__} must implement get_required_permission()') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _JiD(YKHO, YEnM):\n iSMD = YKHO.context['request'].QUERY_PARAMS.get('hash', None)\n return YEnM.get_permission_for_user(YKHO.context['request'].user, view_hash=iSMD)",
"def m4il(YKHO, QePW, tTee, YEnM):\n pNRJ = YEnM.get_abilities(QePW.user)\n return pNRJ.get(QePW.method.lower(), False)",
"def ... | [
"0.75822234",
"0.72601235",
"0.72012347",
"0.7160151",
"0.687749",
"0.6829379",
"0.6808665",
"0.6776223",
"0.6685924",
"0.66753197",
"0.6655163",
"0.6643796",
"0.66314507",
"0.66252923",
"0.66218644",
"0.6585595",
"0.6577355",
"0.6575423",
"0.6575423",
"0.6575204",
"0.6573173... | 0.6957557 | 4 |
Get the Corner RA, DEC based on tract's WCS [NOT WORKING]. | def gRV6(IydQ, gC_4, sLHp):
r6A0 = [1, 1, gC_4, gC_4]
L5c7 = [1, sLHp, sLHp, 1]
HjHK = []
for WKvO, LVAh in zip(r6A0, L5c7):
HjHK.append(j3yn(IydQ, WKvO, LVAh))
return HjHK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j3yn(NUr_, QzhK, qyH4):\n IyRy, BS1y = NUr_.pixelToSky(QzhK, qyH4)\n return (IyRy.asDegrees(), BS1y.asDegrees())",
"def wILU(EaEd, aIdf, XGfG, rFtG, YylR, YPaw):\n return dict(CRVAL1=EaEd, CRVAL2=aIdf, CRPIX1=XGfG, CRPIX2=rFtG, CD1_1=oyIN.cos(YylR) * YPaw, CD2_2=oyIN.cos(YylR) * YPaw, CD1_2=-oyIN.si... | [
"0.64396614",
"0.5923037",
"0.5849471",
"0.57921064",
"0.5777428",
"0.57199794",
"0.57104534",
"0.5709567",
"0.5675966",
"0.5648162",
"0.5632553",
"0.5571638",
"0.5569601",
"0.556179",
"0.5560801",
"0.5558105",
"0.55445707",
"0.5530723",
"0.5527172",
"0.55241567",
"0.5520988"... | 0.6167016 | 1 |
Merge information from two dataframes. If the dataframe has a `_metadata` field, containing a list of attribute names that contain metadata, then this is copied from `df` to the new dataframe. | def r5Y1(jQ3Z: pd.DataFrame, GSOv: pd.DataFrame, VKrl: str, LpaZ=False, QdgY='id', qIuc='', qx_G=False, tDF5=True, ZLJ_=None, ThS1=None) -> rLdf.DataFrame | None:
if ZLJ_:
GSOv = GSOv.drop(set(GSOv.columns) - (set(ZLJ_) | {QdgY}), axis=1)
if ThS1:
GSOv = GSOv.drop(set(ThS1) - {QdgY}, axis=1)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMCw(jMJ3: pd.DataFrame, wQyO: pd.DataFrame) -> None:\n if hasattr(wQyO, '_metadata'):\n for H5ew in wQyO._metadata:\n BWXx = getattr(wQyO, H5ew)\n RKD7.debug('Setting metadata attribute %s to %s', H5ew, BWXx)\n setattr(jMJ3, H5ew, BWXx)",
"def YFLU(gpRq, E43s):\n ... | [
"0.70718235",
"0.6769778",
"0.67282325",
"0.6569739",
"0.65157324",
"0.63510287",
"0.62410367",
"0.6233313",
"0.62167525",
"0.615127",
"0.60061723",
"0.597194",
"0.5904257",
"0.5904257",
"0.58978903",
"0.5853346",
"0.5838533",
"0.58270895",
"0.5818954",
"0.5690612",
"0.567559... | 0.0 | -1 |
Compute 2x in GF(2^FIELD_BITS) | def QeEp(WKvO):
return WKvO << 1 ^ (M1De if WKvO.bit_length() >= F69U else 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RqDx(WKvO):\n return GYhQ.b2NextPowerOfTwo(WKvO)",
"def bFpn(WKvO):\n return GYhQ.b2IsPowerOfTwo(WKvO)",
"def xBap(WKvO: int) -> int:\n return 1 if WKvO == 0 else 2 ** (WKvO - 1).bit_length()",
"def ZrnK(WKvO, G1Hx):\n return WKvO & (1 << G1Hx) - 1",
"def KGA7(exwG):\n exwG &= 65535\n ... | [
"0.679398",
"0.6451622",
"0.641663",
"0.63636804",
"0.6314596",
"0.6296884",
"0.61792165",
"0.6120974",
"0.611436",
"0.6085193",
"0.6068094",
"0.59778225",
"0.5950889",
"0.594035",
"0.592333",
"0.5905324",
"0.5904833",
"0.5894239",
"0.58897346",
"0.5833813",
"0.58098805",
"... | 0.68911266 | 0 |
Get all the tiles adjacent to the given coordinates. | def gNig(i8N4, jNOo):
eL5z = i8N4[jNOo]
eQUr = []
for Jw7X, eUWA in E55R.values():
o4D3, si3g = eL5z.coords
ajwV, skBL = (o4D3 + Jw7X, si3g + eUWA)
XFf3 = (ajwV, skBL)
if XFf3 in i8N4:
eQUr.append(i8N4[XFf3])
return eQUr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMCC(YKHO):\n NL70 = [eL5z for rdlD in YKHO.board.board for eL5z in rdlD if eL5z.explored]\n b3L9 = [YKHO.getSurroundingTiles(eL5z) for eL5z in NL70]\n b3L9 = set(eNCK.from_iterable(b3L9))\n return b3L9",
"def BTfj(YKHO, WKvO, LVAh):\n H2v2 = len(YKHO.map)\n TVTK = len(YKHO.map[0])\n Ptt... | [
"0.70783263",
"0.6941605",
"0.6909634",
"0.68334866",
"0.67912674",
"0.6737475",
"0.6721439",
"0.67196923",
"0.66969746",
"0.6690484",
"0.66408837",
"0.6622374",
"0.6620598",
"0.6613014",
"0.65926385",
"0.65883535",
"0.65721786",
"0.65477335",
"0.65403455",
"0.6513194",
"0.65... | 0.7957756 | 0 |
Verification for unique email | def YBiq(YKHO):
D3lj = YKHO.cleaned_data['email']
print('Cleaning email {}'.format(D3lj))
if Fv2L.AUTH_UNIQUE_EMAIL:
try:
OJiS.User.objects.get(email=D3lj)
except OJiS.User.DoesNotExist:
return D3lj
raise H6V6.ValidationError(Fv2L.AUTH_DUPLICATED_EMAIL_ERROR_M... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjgg(L03z, Jyyj):\n CBIr = G4JS.get('http://127.0.0.1:5000/api/user/email/' + Jyyj.data).json()\n if CBIr:\n raise sUXu('Eamil used by another account')",
"def YBiq(YKHO):\n D3lj = YKHO.cleaned_data['email']\n KzWC = mv1M.objects.filter(email=D3lj).exists()\n if KzWC:\n raise H6V... | [
"0.76080924",
"0.76030207",
"0.75896233",
"0.75367796",
"0.7525676",
"0.7509867",
"0.7504285",
"0.7503579",
"0.74937725",
"0.74753857",
"0.7446588",
"0.74450326",
"0.74389434",
"0.74336696",
"0.74305",
"0.7425441",
"0.7409009",
"0.7401715",
"0.7398083",
"0.7378756",
"0.737654... | 0.7268054 | 39 |
Custom save method for determine active and unactive users | def xkzz(YKHO, jSYO=True):
CBIr = super(hHvF, YKHO).save(commit=False)
CBIr.email = YKHO.cleaned_data['email']
if jSYO:
if Fv2L.AUTH_VERIFY_EMAIL:
CBIr.is_active = False
CBIr.save()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO, *qIxc, **B2fa):\n if not YKHO.id and YKHO.is_superuser:\n YKHO.is_active = True\n super(mv1M, YKHO).save(*qIxc, **B2fa)",
"def xkzz(YKHO):\n pB3N = YKHO.context['payload']\n CBIr = SYRW.objects.get(pk=pB3N['user'])\n CBIr.is_active = True\n CBIr.save()",
"def xkzz(YKHO, ... | [
"0.7371112",
"0.72386706",
"0.70390064",
"0.69513935",
"0.6784983",
"0.67652506",
"0.6737258",
"0.65718293",
"0.649747",
"0.6470925",
"0.64218915",
"0.6394226",
"0.63505393",
"0.63075936",
"0.6248144",
"0.6205016",
"0.6188934",
"0.6174622",
"0.61686295",
"0.6142061",
"0.61266... | 0.60837597 | 21 |
Custom save method for determine active and unactive users | def xkzz(YKHO, jSYO=True):
CBIr = super(hHvF, YKHO).save(commit=False)
CBIr.username = YKHO.cleaned_data['email']
if jSYO:
if Fv2L.AUTH_VERIFY_EMAIL:
CBIr.is_active = False
CBIr.save()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO, *qIxc, **B2fa):\n if not YKHO.id and YKHO.is_superuser:\n YKHO.is_active = True\n super(mv1M, YKHO).save(*qIxc, **B2fa)",
"def xkzz(YKHO):\n pB3N = YKHO.context['payload']\n CBIr = SYRW.objects.get(pk=pB3N['user'])\n CBIr.is_active = True\n CBIr.save()",
"def xkzz(YKHO, ... | [
"0.73703676",
"0.7237976",
"0.7038593",
"0.69501996",
"0.6784754",
"0.6764929",
"0.67372274",
"0.65722066",
"0.6498032",
"0.64706624",
"0.6421615",
"0.639376",
"0.6350123",
"0.6307135",
"0.62474793",
"0.6204952",
"0.6189921",
"0.61741567",
"0.61686206",
"0.6142022",
"0.612694... | 0.60256743 | 24 |
Split a string into a set of word tokens. Returns a set of distinct, lowercase tokens, with stopwords removed. | def wr3U(vIwR):
s2mk = set([yzQ0 for yzQ0 in vIwR.lower().split() if yzQ0.isalpha() and yzQ0 not in JCyR])
return s2mk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(vIwR):\n return [eOtH for eOtH in VKfn(vIwR) if eOtH not in di0c]",
"def NMzd(vIwR):\n dixj = set()\n for finE in I3lj(vIwR):\n if not ZbWC.match('[a-z]+', finE):\n continue\n odDj = X1AK.synsets(finE)\n if odDj:\n for WKvO in odDj:\n di... | [
"0.788176",
"0.7761453",
"0.7656648",
"0.76390266",
"0.7550406",
"0.72288686",
"0.7224254",
"0.72169954",
"0.7202234",
"0.7092997",
"0.70825523",
"0.70824724",
"0.7073666",
"0.70571375",
"0.7042451",
"0.6995092",
"0.6966099",
"0.6905618",
"0.68535286",
"0.685131",
"0.68494344... | 0.80704784 | 0 |
r""" equivalent to iter_window(iterable, 2, 1, wrap) | def k2Rp(OxJJ, GDMi=False):
x39A, deyf = WhY1.tee(OxJJ, 2)
if GDMi:
deyf = WhY1.cycle(deyf)
try:
jKi7.next(deyf)
except StopIteration:
return iter(())
else:
return zip(x39A, deyf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_pS(OxJJ, zNig=2, YPaw=1, GDMi=False):\n fAHJ = WhY1.tee(OxJJ, zNig)\n if GDMi:\n fAHJ = [fAHJ[0]] + list(map(WhY1.cycle, fAHJ[1:]))\n try:\n for UHFx, LcyE in enumerate(fAHJ[1:], start=1):\n for bGrB in range(UHFx):\n jKi7.next(LcyE)\n except StopIteration:... | [
"0.76544565",
"0.7178981",
"0.7158455",
"0.7039981",
"0.7039981",
"0.69967735",
"0.6987967",
"0.69722134",
"0.69002557",
"0.69002557",
"0.68834406",
"0.6836369",
"0.68292767",
"0.6810556",
"0.6801267",
"0.66399264",
"0.65624243",
"0.65177715",
"0.6458343",
"0.63472915",
"0.62... | 0.61867696 | 22 |
Yields `num` combinations of length `size` from items in random order | def J3vM(DumB, zNig, mLGw=None, xlLU=None):
import scipy
try:
from scipy.special import comb
except Exception:
from scipy.misc import comb
import numpy as oyIN
import utool as Oa8f
xlLU = Oa8f.ensure_rng(xlLU, impl='python')
tWD2 = oyIN.inf if mLGw is None else mLGw
nVS2 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J3vM(OxJJ, xAPG, exwG):\n EBrW = list(OxJJ)\n if xAPG > len(EBrW):\n raise ValueError(\"combination size 'csize' can't exceed the length of 'iterable'\")\n for YRbF in range(exwG):\n ap9_ = []\n for r845 in range(xAPG):\n if not EBrW:\n EBrW = list(OxJJ)\... | [
"0.74369246",
"0.70989734",
"0.7077727",
"0.69029254",
"0.6862506",
"0.67863667",
"0.6752058",
"0.6716802",
"0.66985434",
"0.6673119",
"0.6652015",
"0.6617453",
"0.6522967",
"0.64938545",
"0.6488034",
"0.64804244",
"0.6392714",
"0.6390181",
"0.6389609",
"0.6377775",
"0.630815... | 0.8211945 | 0 |
Returns all related nodes. | def all(YKHO):
Ziit = super().all()
if Ziit:
return Ziit
raise R_06(YKHO, 'none') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F_aU(YKHO):\n Ziit = dict(((wvau.start_node.name, wvau.start_node) for wvau in YKHO._rels))\n Ziit.update(dict(((wvau.end_node.name, wvau.end_node) for wvau in YKHO._rels)))\n return Ziit",
"def wzcE(YKHO, XSoh=LgK1.BOTH, *SnBA):\n if SnBA:\n j8eK = YKHO._lookup(XSoh + '_typed_relationship... | [
"0.7412178",
"0.72232306",
"0.7204989",
"0.71989596",
"0.71145177",
"0.70296717",
"0.70074016",
"0.6963515",
"0.69245493",
"0.69245493",
"0.69245493",
"0.69245493",
"0.69245493",
"0.69245493",
"0.69245493",
"0.69245493",
"0.68852633",
"0.6881707",
"0.6881418",
"0.68766505",
"... | 0.0 | -1 |
Sets the auto_order_cost of this ItemPricing. | def rUy8(YKHO, rUy8):
YKHO._auto_order_cost = rUy8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Do9e(YKHO, BTV3):\n YKHO.item_cost = BTV3",
"def G4Jf(YKHO, G4Jf):\n YKHO._cost_price = G4Jf",
"def Do9e(YKHO, sSN_):\n YKHO.cost = sSN_",
"def A_0A(YKHO, sSN_):\n YKHO.proto.auto_parallel_wait_time = sSN_",
"def sSN_(YKHO, sSN_):\n YKHO._cost = sSN_",
"def sSN_(YKHO, sSN_):\n YKHO.... | [
"0.67183566",
"0.6107263",
"0.608382",
"0.5836388",
"0.5698414",
"0.5698414",
"0.5698414",
"0.5698414",
"0.5698414",
"0.5697533",
"0.5571048",
"0.5548289",
"0.55397046",
"0.5517498",
"0.54806244",
"0.54647845",
"0.54291934",
"0.5425248",
"0.5411031",
"0.53719026",
"0.535142",... | 0.83413225 | 0 |
Sets the cogs of this ItemPricing. | def uJcn(YKHO, uJcn):
YKHO._cogs = uJcn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hi3n(YKHO, BWXx):\n YKHO._pizza.cheese = BWXx\n return YKHO",
"def gKSi(YKHO, gKSi):\n try:\n assert gKSi.shape == (3,)\n YKHO._cog = gKSi\n except AssertionError:\n raise 'Shape of COG vector is incorrect'",
"def Pk5_(YKHO, BWXx):\n YKHO._pizza.crust = BWXx\n return ... | [
"0.5620316",
"0.5418432",
"0.53926194",
"0.52924645",
"0.50756943",
"0.5035419",
"0.4929054",
"0.48935246",
"0.48863214",
"0.4875978",
"0.48753673",
"0.48254806",
"0.48054874",
"0.48025694",
"0.47897124",
"0.47458467",
"0.4740838",
"0.4726681",
"0.4711969",
"0.47110704",
"0.4... | 0.76161504 | 0 |
Sets the currency_code of this ItemPricing. | def uvmn(YKHO, uvmn):
if uvmn is not None and len(uvmn) > 3:
raise ValueError('Invalid value for `currency_code`, length must be less than or equal to `3`')
YKHO._currency_code = uvmn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvmn(YKHO, uvmn: str):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn: str):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(Y... | [
"0.83754855",
"0.83754855",
"0.83745676",
"0.83745676",
"0.83745676",
"0.83745676",
"0.83745676",
"0.83745676",
"0.83745676",
"0.83745676",
"0.77123445",
"0.762434",
"0.7205513",
"0.67266494",
"0.67153156",
"0.6693341",
"0.6660415",
"0.6660415",
"0.6660415",
"0.6660415",
"0.6... | 0.7555639 | 13 |
Sets the sale_cost of this ItemPricing. | def _Ohm(YKHO, _Ohm):
YKHO._sale_cost = _Ohm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Do9e(YKHO, BTV3):\n YKHO.item_cost = BTV3",
"def G4Jf(YKHO, G4Jf):\n YKHO._cost_price = G4Jf",
"def Do9e(YKHO, sSN_):\n YKHO.cost = sSN_",
"def RsIL(YKHO, RsIL):\n YKHO._sale = RsIL",
"def sSN_(YKHO, sSN_):\n YKHO._cost = sSN_",
"def sSN_(YKHO, sSN_):\n YKHO._cost = sSN_",
"def sS... | [
"0.72711045",
"0.6960057",
"0.6809682",
"0.6479585",
"0.6442915",
"0.6442915",
"0.6442915",
"0.6442915",
"0.6442915",
"0.64141285",
"0.63882685",
"0.632489",
"0.6301022",
"0.6292176",
"0.61511135",
"0.6091669",
"0.60734177",
"0.6064476",
"0.5989505",
"0.5989505",
"0.5881008",... | 0.8436366 | 0 |
Sets the sale_end of this ItemPricing. | def E7FE(YKHO, E7FE):
YKHO._sale_end = E7FE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ncwN(YKHO, ncwN):\n YKHO._sale_start = ncwN",
"def upfR(YKHO, upfR):\n YKHO._sell_start = upfR",
"def RsIL(YKHO, RsIL):\n YKHO._sale = RsIL",
"def W1X_(YKHO, W1X_):\n YKHO._end_market = W1X_",
"def ddKN(YKHO, ddKN):\n YKHO._date_end = ddKN",
"def ddKN(YKHO, ddKN):\n YKHO._date_end =... | [
"0.6626174",
"0.6485769",
"0.6425039",
"0.63583475",
"0.61091053",
"0.61091053",
"0.61091053",
"0.6105349",
"0.60402006",
"0.60402006",
"0.60402006",
"0.60402006",
"0.60402006",
"0.60402006",
"0.60402006",
"0.60402006",
"0.60402006",
"0.60402006",
"0.60402006",
"0.60402006",
... | 0.8684579 | 0 |
Sets the sale_start of this ItemPricing. | def ncwN(YKHO, ncwN):
YKHO._sale_start = ncwN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upfR(YKHO, upfR):\n YKHO._sell_start = upfR",
"def gRE6(YKHO, gRE6):\n YKHO._buy_start = gRE6",
"def FQgL(YKHO, GP7O):\n YKHO.sales = GP7O",
"def AVeu(YKHO, VWKG):\n YKHO.actual_start = VWKG",
"def v9zl(YKHO, yKcO):\n YKHO.start = yKcO",
"def E7FE(YKHO, E7FE):\n YKHO._sale_end = E7F... | [
"0.73252696",
"0.6479853",
"0.6152143",
"0.6099806",
"0.6058545",
"0.605151",
"0.6017607",
"0.60127",
"0.60122114",
"0.5999315",
"0.5928948",
"0.5928948",
"0.5928948",
"0.5928948",
"0.5928948",
"0.5928948",
"0.5928948",
"0.5928948",
"0.5928948",
"0.5928948",
"0.5928948",
"0... | 0.8445084 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |