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 |
|---|---|---|---|---|---|---|
Returns torch.utils.data.DataLoader for test dataset | def GaHJ(kvra, VvAY, CtWL, uShO, Ep8u=100, I7Gy=2, rR_R=2, JMQx=None):
tgCD = {'test': zGPN(kvra['test'], VvAY['test'], uShO, CtWL, rR_R, video2frames=JMQx['test'])}
CcDS = {WKvO: ht2j.utils.data.DataLoader(dataset=tgCD[WKvO], batch_size=Ep8u, shuffle=False, pin_memory=True, num_workers=I7Gy, collate_fn=bjrq) f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M_QP(YKHO) -> ht2j.utils.data.DataLoader:\n return ht2j.utils.data.DataLoader(YKHO.dataset_test, **YKHO.dl_kwargs)",
"def t1Gb(qby3, Ep8u, I7Gy=4, oiT4=False):\n zQKy = CUkz.DataLoader(qby3, batch_size=Ep8u, shuffle=True, num_workers=I7Gy, pin_memory=oiT4)\n return zQKy",
"def M_QP(YKHO) -> nPrm.D... | [
"0.892942",
"0.8561808",
"0.84053403",
"0.8336456",
"0.82766837",
"0.8276276",
"0.7904253",
"0.7898874",
"0.7791975",
"0.77733445",
"0.77315015",
"0.7718101",
"0.7604569",
"0.7572384",
"0.75618887",
"0.7448701",
"0.7448583",
"0.7412788",
"0.7385015",
"0.73724735",
"0.73699397... | 0.0 | -1 |
Tests what happens when df has a name. | def ykR1() -> None:
jQ3Z = thbb()
jQ3Z.name = 'Named dataframe'
qqyh(jQ3Z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H3D8(YKHO):\n YKHO.insert()\n nPrm = YKHO.tbl['name']\n assert YKHO.check(YKHO.idata[:, [0, 1]], nPrm)",
"def aFyX(ZWCE, pVAQ, Dmme):\n\n @UDMK(names=ZWCE)\n def wOdm(jQ3Z, *qIxc, **B2fa):\n return jQ3Z\n Dmme.pipe(wOdm)\n vbGs = pVAQ.readouterr()\n assert ('names=' in vbGs.out... | [
"0.6618273",
"0.6615118",
"0.6449738",
"0.6409146",
"0.63291734",
"0.6324979",
"0.6260462",
"0.6222949",
"0.6202707",
"0.6190321",
"0.61280036",
"0.60812736",
"0.605781",
"0.5976045",
"0.597216",
"0.5946071",
"0.59046507",
"0.59026575",
"0.5901728",
"0.58165526",
"0.5808646",... | 0.77494466 | 0 |
Return True if sprite is touching any sprite in geometry | def dQ9E(Jqc7: arcade.Sprite, Fw8z: arcade.SpriteList, *, LiA1: bool=True, ZJUk: Tuple[int, int]=(5, 5)) -> bool:
AQSv = [(-1, 0), (+1, 0), (0, -1)]
if LiA1:
AQSv.append((0, +1))
for dir in AQSv:
if izXg(Jqc7, Fw8z, *map(lambda WKvO, LVAh: WKvO * LVAh, dir, ZJUk)):
return True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMlP(YKHO, Jqc7):\n return not (YKHO.left > Jqc7.right or YKHO.right < Jqc7.left or YKHO.top < Jqc7.bottom or (YKHO.bottom > Jqc7.top))",
"def gtW0(YKHO):\n for bVn3 in YKHO.overlapping_sprites:\n bVn3.handle_collide()",
"def gtW0(YKHO):\n for nnTT in YKHO.overlapping_sprites:\n nnTT... | [
"0.71044695",
"0.6765573",
"0.65148145",
"0.64601254",
"0.6407479",
"0.63434964",
"0.63165826",
"0.6300353",
"0.6270968",
"0.6262671",
"0.6204516",
"0.6204306",
"0.6185195",
"0.61756194",
"0.61678344",
"0.6068088",
"0.60657084",
"0.6047504",
"0.60418826",
"0.6037236",
"0.6002... | 0.69199556 | 1 |
Yield, as lists, permutations of range(n) that respect parts. | def eOEd(SQ3m, exwG):
if not SQ3m:
yield list(range(exwG))
return
DGp8 = SQ3m[0]
if len(DGp8) <= 1:
for XP5J in eOEd(SQ3m[1:], exwG):
yield XP5J
return
for O0KZ in eOEd(SQ3m[1:], exwG):
for FaUZ in Hs6x.permutations(DGp8):
XP5J = O0KZ[:]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X8Lz():\n return Hs6x.permutations(range(5, 10))",
"def XOh9(exwG):\n for jzdc in range(2, exwG // 2 + 1):\n yield (jzdc, exwG - jzdc)",
"def fEaH():\n return Hs6x.permutations(range(5))",
"def WpWS(exwG, YPaw):\n\n def eK5b(XP5J):\n for YRbF in range(0, G70Z - exwG, YPaw):\n ... | [
"0.7673727",
"0.73109347",
"0.7304291",
"0.72319645",
"0.7226306",
"0.7200097",
"0.71706617",
"0.7124495",
"0.710067",
"0.7088146",
"0.70836574",
"0.7021219",
"0.69707274",
"0.6951192",
"0.692426",
"0.6899019",
"0.6898932",
"0.6897408",
"0.6843629",
"0.6843629",
"0.683761",
... | 0.80717975 | 0 |
Borrow a docker widget from Krita's existing list of dockers and returns True. Returns False if invalid widget was passed. | def PXhI(YKHO, O2Ii):
if isinstance(O2Ii, XsKJ) and O2Ii.widget():
YKHO.returnDocker()
YKHO.widgetDocker = O2Ii
YKHO.widget = O2Ii.widget()
YKHO.container = zn4X()
YKHO.container.layout().addWidget(YKHO.widget)
YKHO.layout().addWidget(YKHO.container, 0, uaAZ.AlignRigh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f1VK(YKHO):\n if YKHO.widget:\n YKHO.widgetDocker.setWidget(YKHO.widget)\n YKHO.widget = None\n YKHO.widgetDocker = None",
"def g1LX():\n return bool(k_AZ())",
"def OcXo(YKHO) -> bool:\n from hubble.executor.helper import is_valid_docker_uri\n DFkc = getattr(YKHO.args, 'use... | [
"0.631959",
"0.60172135",
"0.59079784",
"0.5552849",
"0.5532445",
"0.5374137",
"0.5307119",
"0.53005993",
"0.52816594",
"0.52227587",
"0.51291066",
"0.51088923",
"0.51063114",
"0.5038037",
"0.499391",
"0.49931163",
"0.49577045",
"0.49294376",
"0.49280307",
"0.48862693",
"0.48... | 0.761889 | 0 |
Adjust the position and size of the Pad to that of the active View. | def uRpr(YKHO):
tTee = YKHO.activeView()
if tTee:
YKHO.resizeToView()
oeNL = YKHO.parentWidget().mapFromGlobal(tTee.mapToGlobal(kSCb(tTee.width() - YKHO.width(), 0)))
YKHO.move(oeNL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUkq(YKHO):\n tTee = YKHO.activeView()\n if tTee and YKHO.widget.isVisible():\n ONWh = YKHO.widget.widget().sizeHint()\n if tTee.height() < ONWh.height() + YKHO.btnHide.height() + 14:\n ONWh.setHeight(tTee.height() - YKHO.btnHide.height() - 14)\n if tTee.width() < ONWh.wid... | [
"0.6125446",
"0.5846994",
"0.584446",
"0.5788828",
"0.5756493",
"0.5744157",
"0.57009524",
"0.5666064",
"0.5652958",
"0.56485355",
"0.56057",
"0.55552614",
"0.55135983",
"0.549873",
"0.5486038",
"0.5479174",
"0.54651165",
"0.5453882",
"0.5432328",
"0.5421478",
"0.5390611",
... | 0.7132964 | 0 |
Generate planetary mass values in units of Earth mass. The prototype provides a loguniform distribution between the minimum and maximum values. | def _4ax(YKHO, exwG):
exwG = YKHO.gen_input_check(exwG)
hZVc = YKHO.Mprange.to('earthMass').value
kLzl = oyIN.exp(oyIN.random.uniform(low=oyIN.log(hZVc[0]), high=oyIN.log(hZVc[1]), size=exwG)) * P6bq.earthMass
return kLzl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nkrZ(A3Vt):\n Sf8h = oyIN.log10(A3Vt)\n vexM = oyIN.random.random()\n dLhF = ItPH(Sf8h, vexM)[0][0]\n return 10.0 ** dLhF",
"def NyZK(n9SV, **UN4V):\n if not 'mass_min' in UN4V:\n UN4V['mass_min'] = 0.1 | xLlF.mass\n if not 'mass_max' in UN4V:\n UN4V['mass_max'] = 125.0 | xLlF... | [
"0.66249394",
"0.61890584",
"0.60942155",
"0.60834646",
"0.60287446",
"0.60258204",
"0.5921546",
"0.5888827",
"0.57942003",
"0.5789091",
"0.568885",
"0.56754345",
"0.5675429",
"0.56574",
"0.5647803",
"0.56421876",
"0.5619946",
"0.5604251",
"0.5575307",
"0.5521068",
"0.5502638... | 0.74400866 | 0 |
Probability density function for eccentricity constrained by semimajor axis, such that orbital radius always falls within the provided sma range. The prototype provides a uniform distribution between the minimum and maximum allowable values. | def lMe6(YKHO, tTpl, jzdc):
tTpl = oyIN.array(tTpl, ndmin=1, copy=False)
jzdc = oyIN.array(jzdc, ndmin=1, copy=False)
if jzdc.ndim == 1 and len(jzdc) == 1:
jzdc = jzdc * oyIN.ones(tTpl.shape)
wc14 = YKHO.arange.to('AU').value
W92r = oyIN.array([wc14[0] / (1.0 - YKHO.erange[0]), wc14[1] / (1.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TLky(WKvO: float, yGTL: float=0, WTkW: float=1) -> float:\n return (1 + epAf.erf((WKvO - yGTL) / epAf.sqrt(2) / WTkW)) / 2",
"def _Ttn(yGTL, WTkW, WKvO):\n return 0.5 * (1 + epAf.erf((WKvO - yGTL) / (WTkW * epAf.sqrt(2.0))))",
"def fPTa(Cwt5):\n AS5r = 0.59999\n jIMl = 0.6\n XTiz.where(Cwt5 ... | [
"0.6520501",
"0.6312787",
"0.62137073",
"0.6127275",
"0.60802734",
"0.6047804",
"0.6017441",
"0.5979422",
"0.59518844",
"0.59444994",
"0.59266937",
"0.5925302",
"0.592447",
"0.59236187",
"0.59179354",
"0.5902549",
"0.5902183",
"0.5901249",
"0.58904696",
"0.58630085",
"0.58533... | 0.0 | -1 |
Probability density function for eccentricity The prototype provides a uniform distribution between the minimum and maximum values. | def btL5(YKHO, tTpl):
return YKHO.uniform(tTpl, YKHO.erange) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7fw(WKvO, z2bo):\n return 0.5 * (1.0 + ZylS.erf(WKvO / (epAf.sqrt(2) * z2bo + 1e-20)))",
"def Mncx(Mkmy):\n return oyIN.exp(dnoB(Mkmy))",
"def kz4l(WKvO):\n if WKvO < 0:\n return 0\n elif WKvO < 1:\n return WKvO\n else:\n return 1",
"def GHxw(WKvO):\n return 0.5 + ... | [
"0.68117684",
"0.66976607",
"0.6621948",
"0.6583343",
"0.65655243",
"0.6528212",
"0.6527223",
"0.65139514",
"0.65120125",
"0.65116286",
"0.6508886",
"0.6471776",
"0.639284",
"0.63607097",
"0.6321234",
"0.62662196",
"0.62636805",
"0.62365544",
"0.6231074",
"0.6226588",
"0.6220... | 0.59767747 | 39 |
Probability density function for albedo The prototype provides a uniform distribution between the minimum and maximum values. | def eehI(YKHO, XP5J):
return YKHO.uniform(XP5J, YKHO.prange) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXCA(YKHO):\n g2VT = kuG0(C77I)\n g2VT.fit(YKHO.data)\n EcVT = oyIN.array([2000.0, 200.0, 0.0])\n Ggta = 0.032245296420409846\n Aofo = g2VT.probability_density(EcVT)\n assert Ggta - 1e-16 < Aofo < Ggta + 1e-16",
"def Eo2K(YKHO, EcVT):\n raise NotImplementedError",
"def fPTa(Cwt5):\n ... | [
"0.68134224",
"0.67888397",
"0.6787017",
"0.6748713",
"0.6647758",
"0.6645709",
"0.66312516",
"0.6597787",
"0.659528",
"0.6565072",
"0.64986473",
"0.6481216",
"0.6468703",
"0.64539945",
"0.6432069",
"0.63125473",
"0.62983245",
"0.62929326",
"0.6270323",
"0.62409246",
"0.62404... | 0.6043138 | 40 |
Probability density function for planetary mass in Earth mass The prototype provides an unbounded power law distribution. Note that this should really be a function of a density model and the radius distribution for all implementations that use it. | def ka1l(YKHO, kLzl):
IUAZ = oyIN.array(kLzl, ndmin=1) * P6bq.earthMass
jbXL = ((IUAZ >= YKHO.Mprange[0]) & (IUAZ <= YKHO.Mprange[1])).astype(float)
vptS = IUAZ.to('jupiterMass').value
return jbXL * vptS ** (-1.3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTFw(Z42X, bMbF):\n return oyIN.sqrt(4 * oyIN.pi * Z42X * hEBN.e ** 2 / bMbF)",
"def InLe(YKHO):\n return 0.001 * YKHO.molar_mass * YKHO.pressure / (K6Rf * YKHO.temperature)",
"def Mncx(Mkmy):\n return oyIN.exp(dnoB(Mkmy))",
"def InLe(ycBG, By5j):\n FxxR = mV9l(0, 1, ycBG, By5j)\n ljtd = F... | [
"0.6600993",
"0.6358704",
"0.6146763",
"0.61380917",
"0.6054088",
"0.60407364",
"0.5999023",
"0.59850943",
"0.5982486",
"0.59662855",
"0.594824",
"0.5935826",
"0.592153",
"0.5910607",
"0.58995277",
"0.58980834",
"0.5886013",
"0.5871225",
"0.58650285",
"0.5861288",
"0.5849253"... | 0.57653666 | 27 |
function to calculate haversine distance between two coordinates | def GeVo(igSk, iT5T, TGuP, JSDM):
igSk, iT5T, TGuP, JSDM = map(oyIN.radians, (igSk, iT5T, TGuP, JSDM))
O6Vz = 6371
QnmL = TGuP - igSk
jz6R = JSDM - iT5T
Csk6 = oyIN.sin(QnmL * 0.5) ** 2 + oyIN.cos(igSk) * oyIN.cos(TGuP) * oyIN.sin(jz6R * 0.5) ** 2
MKlR = 2 * O6Vz * oyIN.arcsin(oyIN.sqrt(Csk6))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UVU1(mAYH, pks6):\n igSk, GgQG = mAYH\n TGuP, tk0B = pks6\n A3Vt = 6373.0\n igSk = Y_1E(igSk)\n GgQG = Y_1E(GgQG)\n TGuP = Y_1E(TGuP)\n tk0B = Y_1E(tk0B)\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2\n Z9r... | [
"0.81799287",
"0.81478584",
"0.81337464",
"0.8093445",
"0.79182065",
"0.7866355",
"0.785832",
"0.7855717",
"0.7848234",
"0.78135306",
"0.7813489",
"0.78016865",
"0.78012383",
"0.77976793",
"0.77960604",
"0.77947104",
"0.7792573",
"0.77740586",
"0.7773124",
"0.77619845",
"0.77... | 0.7759811 | 20 |
Convert a segmentation image label array to onehot format by replacing each pixel value with a vector of length num_classes Arguments | def zGX0(UXqs, sHi5):
rfeA = []
for OfK8 in sHi5:
b0wT = oyIN.equal(UXqs, OfK8)
gbC8 = oyIN.all(b0wT, axis=-1)
rfeA.append(gbC8)
rfeA = oyIN.stack(rfeA, axis=-1)
return rfeA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7UO(UXqs, bTu0=2):\n import numpy as oyIN\n KLLm = oyIN.zeros((len(UXqs), bTu0), dtype=oyIN.uint8)\n for YRbF in range(len(UXqs)):\n KLLm[YRbF, int(UXqs[YRbF] - 1)] = 1\n return KLLm",
"def FTxd(kNaq, jTqs):\n Ep8u = kNaq.size(0)\n Jj9R = kNaq.new_zeros((Ep8u, jTqs))\n for YRbF i... | [
"0.81069267",
"0.8085033",
"0.8003013",
"0.78574216",
"0.78474563",
"0.7822191",
"0.7784274",
"0.77800703",
"0.7753589",
"0.77504784",
"0.7733223",
"0.772966",
"0.772966",
"0.7702978",
"0.7702978",
"0.76638746",
"0.76505363",
"0.76505363",
"0.76505363",
"0.7649278",
"0.764593... | 0.72269046 | 76 |
Transform a 2D array in onehot format (depth is num_classes), to a 2D array with only 1 channel, where each pixel value is the classified class key. Arguments | def ymiX(LNo8):
WKvO = oyIN.argmax(LNo8, axis=-1)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj8B(ezWE, jTqs):\n ezWE = ezWE.data.astype(int)\n jzdc = oyIN.zeros((ezWE.shape[0], jTqs))\n jzdc[oyIN.arange(len(jzdc)), ezWE] = 1\n return vhpA.Tensor(jzdc, requires_grad=True)",
"def kj8B(ezWE, jTqs):\n ezWE = ezWE.data.astype(int)\n jzdc = oyIN.zeros((ezWE.shape[0], jTqs))\n jzdc[oy... | [
"0.8407353",
"0.8407353",
"0.8314588",
"0.80671155",
"0.79580903",
"0.7928642",
"0.78764963",
"0.7865731",
"0.7865731",
"0.7865731",
"0.7865731",
"0.78627324",
"0.7861825",
"0.7859157",
"0.78558487",
"0.7804347",
"0.7755625",
"0.77133626",
"0.7672838",
"0.7671969",
"0.7656193... | 0.0 | -1 |
Convert datetime to string. This format is specific to the 42API responses. | def hLAQ(ppPa):
return ppPa.strftime('%Y-%m-%dT%H:%M:%S.%fZ') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QK8D(pdbK):\n if pdbK is None:\n return 'None'\n return pdbK.strftime('%Y-%m-%dT%H:%M:%S.%f')[0:-3]",
"def hLAQ(YEnM):\n return YEnM.strftime('%Y-%m-%d %H:%M:%S')",
"def KhZx(YKHO):\n return YKHO.at.strftime('%Y-%m-%dT%H:%M:%S.000Z')",
"def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(... | [
"0.7604059",
"0.75213706",
"0.74777484",
"0.7472459",
"0.7472459",
"0.74433047",
"0.73942304",
"0.73628324",
"0.73344004",
"0.7230595",
"0.7188497",
"0.71679205",
"0.7146225",
"0.7130487",
"0.7124028",
"0.7089322",
"0.70852363",
"0.7068547",
"0.7004259",
"0.69412184",
"0.6925... | 0.7485813 | 2 |
Returns the rolling mean difference of two columns from two different dataframes | def z9t8(_lYe, EBgd, qaAi, HpuQ, ufJO):
ufJO = ufJO * 60 * 24
_lYe = _lYe.resample('1Min').mean()
_lYe = _lYe.interpolate(method='time')
qaAi = qaAi.resample('1Min').mean()
qaAi = qaAi.interpolate(method='time')
_lYe['rm' + EBgd] = _lYe[EBgd].rolling(window=ufJO, center=True).mean()
qaAi['rm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qrjn(WKvO, LVAh):\n return oyIN.mean(WKvO) - oyIN.mean(LVAh)",
"def VBBt(jQ3Z, KnxT):\n m1pa = rLdf.DataFrame(index=jQ3Z.index)\n for aDi_ in jQ3Z.columns:\n wjL_ = rLdf.Series.rolling(jQ3Z[aDi_], window=KnxT).mean().to_frame()\n m1pa = m1pa.join(wjL_)\n m1pa.ix[:KnxT, :] = 0\n r... | [
"0.6507714",
"0.6106984",
"0.5859848",
"0.58319014",
"0.580875",
"0.5745259",
"0.57277775",
"0.5712647",
"0.5695073",
"0.5626577",
"0.5623458",
"0.56131816",
"0.55884475",
"0.5587288",
"0.55855405",
"0.55855405",
"0.552472",
"0.54642403",
"0.5422263",
"0.5353996",
"0.5312572"... | 0.68950415 | 0 |
This function extracts the file name without file path or extension | def Ooqe(pmON):
return pmON.split('\\').pop().split('/').pop().rsplit('.', 1)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PJbf(qaEx):\n gIsw = qaEx.split('/')[-1]\n return gIsw.split('.')[0]",
"def g_2H(pmON: str) -> str:\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0]",
"def gIsw(pmON):\n return Hy7s.path.basename(pmON).split('.')[0]",
"def g_2H(nUeQ):\n return Hy7s.path.splitext(Hy7s.path.basename(... | [
"0.827043",
"0.79685843",
"0.79280597",
"0.7903983",
"0.79027706",
"0.7851801",
"0.78515226",
"0.78462726",
"0.7832843",
"0.7832684",
"0.7721276",
"0.7719551",
"0.7718403",
"0.7673163",
"0.7671674",
"0.7671674",
"0.767003",
"0.76509094",
"0.76422113",
"0.76402074",
"0.7631596... | 0.7618766 | 22 |
Finds closest date index in a dataframe to a date object | def mTZX(jQ3Z, WU8q):
return jQ3Z.iloc[oyIN.argmin(oyIN.abs(rLdf.to_datetime(jQ3Z.index) - WU8q))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w9iz(dy_H, _c1T=rLdf.to_datetime('today'), pQ4c='future'):\n WKvO = dy_H.copy()\n WKvO = WKvO.append(rLdf.Series(_c1T, index=[len(WKvO.index)]))\n WKvO = WKvO.ix[rLdf.to_datetime(WKvO).sort_values().index]\n WKvO = WKvO.reset_index(drop=True)\n M8J9 = WKvO[WKvO == _c1T].head(1)\n if pQ4c == '... | [
"0.68794584",
"0.614806",
"0.61420214",
"0.60998404",
"0.59301",
"0.583425",
"0.5743214",
"0.56506276",
"0.5585261",
"0.5572064",
"0.5552598",
"0.55510914",
"0.54534477",
"0.54406565",
"0.5436556",
"0.54239976",
"0.5420138",
"0.5404564",
"0.53924257",
"0.53915596",
"0.5363325... | 0.7609274 | 0 |
For compatibility with untyped UserProfile. This constructor can be deleted once all profiles in the UserProfile collection have the type information in the _t field | def FIMM(YKHO, nPrm=None, **YSA3):
def j_F6(O4Fb):
from solariat_bottle.db.user_profiles.social_profile import DELIMITER, TwitterProfile, FacebookProfile
oeNL = QMSQ(O4Fb).rfind(DELIMITER) + 1
if oeNL == 0:
return YKHO.__class__
a9EH = None
try:
d6pt ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, dFwL, q8pK):\n super(BFpK, YKHO).__init__()\n YKHO.profile_path = q8pK\n YKHO.security_identifier = dFwL",
"def VTY1(YKHO):\n YKHO.assertTrue(hasattr(YKHO.user, 'profile'), 'User profile does not exist.')\n YKHO.assertTrue(isinstance(YKHO.user.profile, BFpK), 'User profile is of typ... | [
"0.6021644",
"0.6002194",
"0.5867527",
"0.5800564",
"0.5718362",
"0.5573651",
"0.5489613",
"0.54343003",
"0.53477186",
"0.5347246",
"0.5298277",
"0.5281695",
"0.52621394",
"0.525421",
"0.5253119",
"0.52517766",
"0.5250549",
"0.5230383",
"0.5224366",
"0.52037984",
"0.5165553",... | 0.66719407 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
print(Bcwd)
QrM1.imshow(Bcwd, interp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.791787... | 0.78289187 | 79 |
The string representation of the progress bar displayed in the console. Almost identical as the one provided by plumbum, but adjusted in the width of the progress bar. | def zAg0(YKHO):
TVTK = YKHO.width
if YKHO.length == 0:
DuZT = 1
else:
DuZT = max(YKHO.value, 0) / YKHO.length
z6ze = YKHO.pg_char
cp89 = ' ' + (YKHO.str_time_remaining() if YKHO.timer else '{0} of {1} complete'.format(YKHO.value, YKHO.length))
if TVTK - len(cp89) < 10 or YKHO.has... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def em5n(YKHO, DuZT: int) -> str:\n IGme = DuZT // 5\n S6Fl = '▓' * IGme\n S6Fl += '░' * (20 - IGme)\n return S6Fl",
"def format(YKHO):\n return YKHO.__progressBar.format()",
"def zAg0(YKHO):\n y0cW = ''\n if YKHO._prefix_expression and len(YKHO._prefix_kwargs):\n y0cW = YKHO._prefi... | [
"0.76053405",
"0.7505548",
"0.7367014",
"0.72575825",
"0.7248245",
"0.7233354",
"0.71540153",
"0.71267337",
"0.71089846",
"0.7070246",
"0.69361645",
"0.6922082",
"0.6912905",
"0.6909906",
"0.69072807",
"0.6904508",
"0.68774915",
"0.68068063",
"0.6771885",
"0.669723",
"0.66647... | 0.7839979 | 0 |
Initialize the Updates class. `fromTime` is the epoch time to start your date range to search for. You can set `toTime` to set the epoch time to end your date range. Must be one week from `fromTime`. You can also set `language` with a language id to get the result in the specific language. | def FIMM(YKHO, LYAV, KxbC='', rQow=''):
YKHO.update_filters(LYAV, KxbC, rQow) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, ifCF, Br5Q):\n Mkmy = G4JS.get('https://tw.rter.info/capi.php?api=HIeh22KXrDg')\n YKHO.data = Mkmy.json()\n YKHO.set_locations(ifCF, Br5Q)",
"def FIMM(YKHO, SWox, C7pn, YTVa, **sCMs):\n YKHO._start_time = SWox\n YKHO._end_time = C7pn\n YKHO._events = YTVa",
"def FIMM(YKHO, SWox... | [
"0.59230524",
"0.52097017",
"0.52085394",
"0.52049863",
"0.5204521",
"0.51908046",
"0.5154689",
"0.5154689",
"0.5154689",
"0.5154689",
"0.5153686",
"0.51261073",
"0.5089626",
"0.5074976",
"0.5029114",
"0.5026765",
"0.49787825",
"0.49749735",
"0.4894832",
"0.48864323",
"0.4864... | 0.6656485 | 0 |
For readability, this example uses 0based event times in milliseconds => timestamp values are between 0 and 10000 if we run it for 10 seconds. But kafka needs real 1970based timestamps, among other things to handle event retention in the topics. | def oQch(r04X):
return r04X + SWox | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a1kK():\n return (qcWV.utcnow() - qcWV(1970, 1, 1)).total_seconds()",
"def dhMC():\n B80K = qcWV.datetime(2017, 1, 15)\n I0AZ = (B80K - qcWV.datetime(1970, 1, 1)).total_seconds() * 1000.0\n wuN1.timestamp = FM6F(return_value=(1, I0AZ))\n E3oo = YtHY(wuN1)\n assert E3oo == I0AZ\n assert i... | [
"0.59547764",
"0.59526",
"0.58434176",
"0.58217335",
"0.58158016",
"0.5689694",
"0.56637734",
"0.5659834",
"0.5644939",
"0.563312",
"0.56171453",
"0.5605041",
"0.55734926",
"0.5539446",
"0.5508994",
"0.55055386",
"0.5489431",
"0.54744864",
"0.544524",
"0.5440625",
"0.5433861"... | 0.61820066 | 0 |
Returns the next runs for the queue. Note that this call is NOT safe across multiple queue instances. Use `safe_next_run` to ensure that multiple queues use proper locking. | def _h4g(QTBn):
Tf7d = LuuW(QTBn)
iMwS = BaVH()
s2O5(Tf7d, QTBn)
PhdI(iMwS, QTBn)
if QTBn.sync_state_cb:
QTBn.sync_state_cb(QTBn, blocking=Tf7d, staged=iMwS)
zn53 = [iXC1 for iXC1 in iMwS if SrWt(iXC1, Tf7d, QTBn)]
qErA = el0t(zn53, QTBn)
for iXC1 in qErA:
W3Xi.set_run_pe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7Kz(YKHO):\n for iXC1 in YKHO._runs:\n if iXC1.is_next_run(YKHO._now):\n return iXC1\n return None",
"def heIW(QTBn):\n try:\n QTBn.run_status_lock.acquire()\n except tgms.Timeout as e:\n RKD7.warning('could not acquire lock for reading staged runs\\nIf this error... | [
"0.6888489",
"0.6534599",
"0.61039776",
"0.597678",
"0.591212",
"0.5871271",
"0.58382994",
"0.5775463",
"0.5684589",
"0.5661192",
"0.5612328",
"0.55899966",
"0.55881333",
"0.5583479",
"0.5441215",
"0.5430594",
"0.53594023",
"0.5340618",
"0.5330885",
"0.52788",
"0.5248667",
... | 0.6550606 | 1 |
Returns the path of the top level directory for tests. | def lp6m() -> str:
DJlJ = Hy7s.path.abspath(xAKo)
return Hy7s.path.dirname(DJlJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l_jd():\n return Hy7s.path.abspath(Hy7s.path.dirname(xAKo))",
"def Togj():\n WFPA = Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(tq_1.currentframe())))\n return Hy7s.path.join(WFPA, 'tests')",
"def wBA9():\n pmON, mWFP = Hy7s.path.split(xAKo)\n return Hy7s.path.join(pmON, '..', 'test-dat... | [
"0.81215745",
"0.8015675",
"0.7870933",
"0.7540341",
"0.7535322",
"0.75181365",
"0.74075913",
"0.7307251",
"0.7289853",
"0.72832763",
"0.7244071",
"0.71973234",
"0.71973234",
"0.71876824",
"0.7177795",
"0.7165948",
"0.71262175",
"0.70827174",
"0.70801693",
"0.70398545",
"0.70... | 0.79457223 | 2 |
Return the name of the max thermostat, if any. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_k2(YKHO):\n try:\n return str(YKHO.connect()['main']['temp_max'])\n except:\n return '@weather_high_temperature'",
"def mWFP(YKHO):\n return 'Softmax. T=' + str(YKHO.temperature)",
"def V7cA(YKHO):\n return YKHO.__maxth",
"def V7cA(YKHO):\n return YKHO.__maxth",
"def V7cA... | [
"0.6425143",
"0.62399065",
"0.6208031",
"0.6208031",
"0.6208031",
"0.6208031",
"0.6208031",
"0.6208031",
"0.5950074",
"0.594597",
"0.5898861",
"0.58735156",
"0.5872104",
"0.5857352",
"0.58537436",
"0.58022255",
"0.57585126",
"0.5746295",
"0.56489754",
"0.5646148",
"0.5633524"... | 0.0 | -1 |
Obtain a a list of switches or DPID detected by this controller | def IRzk(YKHO):
try:
d3Av = G4JS.get(YKHO.url + 'restconf/operational/opendaylight-inventory:nodes', headers=YKHO.headers)
lYY4 = 'Openflow response {}: {}'.format(d3Av.status_code, d3Av.text)
if d3Av.status_code != 200:
YKHO.logger.warning('get_of_switches ' + lYY4)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i6nG(YKHO):\n return [WKvO for WKvO, LVAh in YKHO.devices.items() if LVAh.device_type == 'Switch']",
"def x2Fh():\n IoiQ = []\n bD7m = 'https://' + jP3P + '/network-device'\n WBPg = {'accept': 'application/json', 'X-Auth-Token': MKbN}\n MMCD = G4JS.get(bD7m, headers=WBPg, verify=False)\n dw... | [
"0.7138114",
"0.68955404",
"0.6731312",
"0.66347605",
"0.635237",
"0.6301039",
"0.60537493",
"0.6020206",
"0.6009499",
"0.6002091",
"0.6000891",
"0.5991667",
"0.59631324",
"0.59576833",
"0.59524524",
"0.5945641",
"0.58473474",
"0.5802822",
"0.5802769",
"0.5797686",
"0.5787094... | 0.5597906 | 39 |
Insert a new static rule | def Y9aM(YKHO, nPrm):
try:
YKHO.logger.debug('new_flow data: {}'.format(nPrm))
if len(YKHO.pp2ofi) == 0:
YKHO.obtain_port_correspondence()
_uqo = {'id': nPrm['name'], 'flow-name': nPrm['name'], 'idle-timeout': 0, 'hard-timeout': 0, 'table_id': 0, 'priority': nPrm.get('priority'),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0cO(YKHO, eD8c):\n YKHO.rule.append(eD8c)",
"def a0cO(YKHO, eD8c):\n YKHO.rules.append(eD8c)",
"def a0cO(YKHO, eD8c) -> None:\n YKHO.add_rules([eD8c])",
"def a0cO(YKHO, eD8c: Rule):\n YKHO.rules.append(eD8c)",
"def JPHp(YKHO, eD8c, vEq1=None):\n if vEq1 is None:\n YKHO.rules.appe... | [
"0.7218155",
"0.7102035",
"0.69493747",
"0.69324464",
"0.6780685",
"0.6764265",
"0.6672618",
"0.66470325",
"0.6567027",
"0.6545793",
"0.6545217",
"0.64527535",
"0.64166754",
"0.64141387",
"0.6343296",
"0.62875783",
"0.6239138",
"0.61966234",
"0.6114479",
"0.6108734",
"0.60939... | 0.0 | -1 |
This function adds a directed edge in the graph. | def rz7z(YKHO, zZcM, zr3f, sSN_):
YKHO.E = YKHO.E + 1
YKHO.adjacency_list[zZcM].append((zr3f, sSN_)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKHO.edges and e1vZ in YKHO.edges):\n raise ValueError('Node not in graph')\n YKHO.edges[zZcM].append(e1vZ)",
"def WYRu(YKHO, hQHm, jlSq):\n if hQHm in YKHO.vertices:\n YKHO.vertices[hQ... | [
"0.79517686",
"0.78506327",
"0.78417563",
"0.7782719",
"0.77156013",
"0.7635785",
"0.75246453",
"0.7524335",
"0.7522489",
"0.7518157",
"0.75078475",
"0.7492549",
"0.7461275",
"0.7374444",
"0.7371732",
"0.7360301",
"0.7341315",
"0.7331023",
"0.7323595",
"0.7316847",
"0.7316172... | 0.7251364 | 27 |
This function adds a vertex in the graph. | def ohmD(YKHO):
YKHO.visited_node += [False]
YKHO.V = YKHO.V + 1
YKHO.adjacency_list.append(list()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, SLBp):\n raise NotImplementedError",
"def ohmD(YKHO, oqUi):\n pass",
"def ohmD(YKHO, SLBp):\n if SLBp.id not in YKHO.vertices.keys():\n YKHO.vertices[SLBp.id] = SLBp",
"def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)\n YKHO.vertex_edge[SLBp] = []",
"def ohmD(YKHO, ni... | [
"0.875103",
"0.8608016",
"0.8415082",
"0.8367331",
"0.83450633",
"0.828421",
"0.82081264",
"0.8164498",
"0.8113748",
"0.8113748",
"0.80491287",
"0.8013405",
"0.8009619",
"0.7969831",
"0.79670084",
"0.79648036",
"0.79360276",
"0.7923973",
"0.7911282",
"0.79079545",
"0.7897201"... | 0.8122187 | 8 |
Determine unit vector based on 1 or 2dimensional array. | def j8U8(iArr):
j8U8 = oyIN.zeros((len(iArr), iArr.shape[1]))
CkYf = oyIN.linalg.norm(iArr, axis=1)
qC1Y = iArr.ndim
if qC1Y == 1:
j8U8 = iArr / CkYf
elif qC1Y == 2:
for YRbF in range(0, iArr.shape[1]):
j8U8[:, YRbF] = iArr[:, YRbF] / CkYf
else:
RKD7.fatal(f'D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXGI(iArr: np.array) -> oyIN.array:\n return oyIN.array([*iArr]) / oyIN.sqrt((iArr * iArr).sum(axis=0))",
"def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def PXGI():\n return DKJk(0, 1)",
"def j8U8(s9pG):\n if s9pG.ndim == 1:\n yvT9 = NyLz(s9pG)\n elif s9pG.ndim == 2:\n ... | [
"0.7321731",
"0.7304217",
"0.70687604",
"0.6950046",
"0.6926619",
"0.69215703",
"0.68931806",
"0.68458885",
"0.6845351",
"0.6845351",
"0.6845351",
"0.6832249",
"0.67858595",
"0.6781421",
"0.67530936",
"0.67530936",
"0.67530936",
"0.67530936",
"0.67530936",
"0.67530936",
"0.67... | 0.72651064 | 2 |
initialize Binary Heap to given number of elements | def FIMM(YKHO, zNig):
YKHO.size = zNig
YKHO.n = 0
YKHO.elements = [[0, None] for YRbF in range(zNig + 1)]
YKHO.positions = [0 for YRbF in range(zNig + 1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npt8(YKHO):\n exwG = int(len(YKHO.array) / 2 - 1)\n while exwG >= 0:\n YKHO.heapify_top_down(exwG)\n exwG -= 1",
"def Npt8(YKHO, ezWE):\n YRbF = len(ezWE) // 2\n YKHO.size = len(ezWE)\n YKHO.heap_list = [-1] + ezWE[:]\n while YRbF > 0:\n YKHO.percolate_down(YRbF)\n ... | [
"0.7082389",
"0.7030181",
"0.7023462",
"0.70082486",
"0.6881547",
"0.6849785",
"0.6783698",
"0.67486805",
"0.67057675",
"0.6696159",
"0.6689873",
"0.66707385",
"0.66586155",
"0.6636275",
"0.6628902",
"0.6588499",
"0.6579911",
"0.65409565",
"0.65363944",
"0.6530506",
"0.652090... | 0.5953304 | 65 |
Insert item into heap with given priority | def JPHp(YKHO, id, Ey19):
YKHO.n += 1
YRbF = YKHO.n
while YRbF > 1:
r4_3 = int(YRbF / 2)
XP5J = YKHO.elements[r4_3]
if Ey19 > XP5J[_d8Z]:
break
YKHO.elements[YRbF] = list(XP5J)
YKHO.positions[XP5J[yHil]] = 1
YRbF = r4_3
YKHO.elements[YRbF][yHil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jvNa(YKHO, ZfUD, Ey19):\n ...",
"def _jXH(YKHO, Ey19: float, ZfUD):\n jGbP(YKHO._heap, (-1 * Ey19, ZfUD))",
"def _jXH(YKHO, Ey19, H5ew):\n d6pt = len(YKHO.__heap)\n YKHO.__position[H5ew] = d6pt\n YKHO.__heap.append([Ey19, H5ew])\n YKHO.__bubble_up(d6pt)",
"def H2v5(YKHO, ZfUD, Ey19=0):\... | [
"0.84859186",
"0.82513833",
"0.7681949",
"0.7636521",
"0.760399",
"0.7563727",
"0.75615716",
"0.7494399",
"0.7446312",
"0.73691",
"0.7359239",
"0.72964066",
"0.728436",
"0.7279581",
"0.7213292",
"0.72044617",
"0.71409315",
"0.7133108",
"0.7101555",
"0.7049353",
"0.70385575",
... | 0.73821056 | 9 |
Given a Linear or Convolutional module, this method checks if the module if followed by either BatchNormalization and/or a nonlinearity. In this case, returns the last of these modules as better location to compute attributions on. | def kGHg(C3ST, yR_P):
KZ52 = list(C3ST.modules())
try:
d1p7 = KZ52.index(yR_P)
NodU = yR_P
for yl8y in KZ52[d1p7 + 1:]:
if isinstance(yl8y, _bh1):
print(f'BatchNorm detected: shifting evaluation after {yl8y}')
NodU = yl8y
elif any([... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X053(VlDb: nn.Module) -> h8nf[str]:\n LXca = None\n for lzjZ, r8hN in VlDb.named_modules():\n if isinstance(r8hN, U78l.Linear):\n LXca = lzjZ\n break\n return LXca",
"def j8ex(YKHO, yR_P: Module, uGHv: Tensor, pwN3: Tensor) -> llWB:\n MWMU = YKHO.satisfies_attribute_c... | [
"0.5874164",
"0.5598617",
"0.5475953",
"0.53826606",
"0.53732294",
"0.53249496",
"0.5290964",
"0.5246238",
"0.5246238",
"0.5218593",
"0.5208148",
"0.5115701",
"0.5114278",
"0.510309",
"0.5066047",
"0.49855718",
"0.49227604",
"0.49223298",
"0.48979035",
"0.4873188",
"0.4872289... | 0.6586325 | 0 |
Apply a function to a list of datasets and either a list of axes or labels. Applies a user provided function fn to produce a matrix with columns for each dataset and rows either given by axes or label. Both axes and label cannot both be lists. | def jplH(gMbG, FYKK, MPlV=None, UXqs=None):
if isinstance(MPlV, list) and isinstance(UXqs, list):
raise NotImplementedError('Only one of label or axes can be a list')
if MPlV is None and UXqs is None:
MPlV = gMbG[0].columns
if MPlV is None:
if isinstance(UXqs, str):
UXqs ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ulrm(gMbG, MPlV=None, UXqs=None):\n FYKK = lambda Gcbu, jDK_: Gcbu[jDK_].mean()\n return jplH(gMbG, FYKK, MPlV, UXqs)",
"def InN6(gMbG, Crrw):\n FYKK = lambda Gcbu, jDK_: Gcbu.shape[0]\n return jplH(gMbG, FYKK, axes=None, label=Crrw)",
"def vaaw(Crrw: np.ndarray, N6Z1: np.ndarray, CKsC: List[Li... | [
"0.5955386",
"0.56479764",
"0.5482249",
"0.54413867",
"0.5401203",
"0.5300341",
"0.52632874",
"0.5218866",
"0.51119584",
"0.50693494",
"0.50569195",
"0.5056438",
"0.50430274",
"0.49997213",
"0.49914658",
"0.4979323",
"0.49406937",
"0.4913134",
"0.49078846",
"0.49071428",
"0.4... | 0.8217464 | 0 |
Function for initializing the fuzzy pendulum class. | def FIMM(YKHO, CyuL=False, u0ND=None, w0Wp=None, QcC5=None):
YKHO.theta_points = YKHO.get_points(u0ND)
YKHO.omega_points = YKHO.get_points(w0Wp)
YKHO.alpha_points = YKHO.get_points(QcC5)
EaPJ = [[2, 1, 0], [1, 0, -1], [0, -1, -2]]
YKHO.theta_omega_to_alpha_map = EaPJ[0] + EaPJ[1] + EaPJ[2]
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, t_XE, mWFP='Pendulum', JRYC=0.01):\n super().__init__(name=mWFP)\n YKHO.pendulum = t_XE\n YKHO.dt = JRYC",
"def FIMM(YKHO, u54L: np.float64, bMbF: np.float64, tePu: np.float64, QOOm: np.float64):\n YKHO._angular_freq = oyIN.sqrt(bMbF * goTM / u54L)\n YKHO._initial_conditions = oyIN.... | [
"0.6580058",
"0.6232801",
"0.57611996",
"0.57340485",
"0.57340485",
"0.568568",
"0.56852555",
"0.5659422",
"0.563699",
"0.5633517",
"0.5607624",
"0.55901617",
"0.5586766",
"0.5576254",
"0.55694586",
"0.5530696",
"0.5492463",
"0.5492463",
"0.5489224",
"0.5474302",
"0.5432902",... | 0.50708425 | 79 |
Return a string of the permutation in cycle notation. Example ======= >>> a = perm((1, 2), (5, 4, 3, 7)) >>> str(a) '(1 2)(3 7 5 4)' | def zAg0(YKHO):
L2MH = []
for n2fR in YKHO._getcycles():
L2MH.append(' '.join((str(WKvO) for WKvO in n2fR)).join('()'))
return ''.join(L2MH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n wAVY = ', '.join((str(tuple(n2fR)) for n2fR in YKHO._getcycles()))\n return 'perm({})'.format(wAVY)",
"def BLFq(YKHO, IuXB):\n nGTB = ''\n for YRbF in range(1, 55):\n nGTB += str(IuXB(YRbF)) + ' '\n return nGTB",
"def N0xi(XP5J: List[int]):\n npHX(XP5J)\n Nq1b = L2... | [
"0.81117016",
"0.76367056",
"0.7612344",
"0.6316861",
"0.61902285",
"0.6088137",
"0.6028935",
"0.59004784",
"0.5899719",
"0.58704484",
"0.5727235",
"0.5706823",
"0.5696822",
"0.56769",
"0.56361127",
"0.5595891",
"0.55855685",
"0.558396",
"0.5576018",
"0.5573765",
"0.55716044"... | 0.6693856 | 3 |
Return the parity of the permutation. The sign of a permutation is 1 for an odd permutation, and +1 for an even permutation. Examples ======== >>> a = perm((4,)) >>> a.sgn 1 >>> b = perm((1, 3)) >>> b.sgn 1 >>> (a2).sgn 1 >>> (a b).sgn 1 | def yy40(YKHO):
NJoR = filter(lambda WKvO: not len(WKvO) % 2, YKHO._getcycles())
return -2 * (len(NJoR) % 2) + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TMBZ(Emd4, yv6U: Iterable) -> int:\n tUub = 1\n yv6U = list(yv6U)\n for YRbF in range(0, len(yv6U) - 1):\n if yv6U[YRbF] != YRbF:\n tUub *= -1\n hgl7 = m94f.__idx_of_minimum(yv6U[YRbF:]) + YRbF\n yv6U[YRbF], yv6U[hgl7] = (yv6U[hgl7], yv6U[YRbF])\n return tUub... | [
"0.67443085",
"0.6573884",
"0.6413994",
"0.6355099",
"0.6279781",
"0.6098381",
"0.6094549",
"0.5789514",
"0.5786472",
"0.55890405",
"0.557011",
"0.5478953",
"0.5435841",
"0.54098403",
"0.5306557",
"0.5283011",
"0.5219643",
"0.5187517",
"0.5169027",
"0.5127967",
"0.50901866",
... | 0.0 | -1 |
Testing the GET reviewrequests//diffs//files//originalfile/ API with draft diff | def Omc_(YKHO):
F3jJ = YKHO.create_repository(tool_name='Test')
lnN1 = YKHO.create_review_request(repository=F3jJ, submitter=YKHO.user, publish=True)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
A5j5 = YKHO.create_filediff(OIkQ)
uDyx = YKHO.api_get(WZaA(lnN1, OIkQ, A5j5), expected_status=404)
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6yr(YKHO, Slbv):\n return YKHO.http_request('/r/%s/diff/raw/' % Slbv, {})",
"def Jo0z(YKHO):\n F3jJ = YKHO.create_repository(tool_name='Test')\n lnN1 = YKHO.create_review_request(repository=F3jJ, submitter=YKHO.user, publish=True)\n OIkQ = YKHO.create_diffset(lnN1)\n A5j5 = YKHO.create_filedi... | [
"0.7140718",
"0.7050583",
"0.66038525",
"0.65402764",
"0.65055305",
"0.64403284",
"0.63579106",
"0.6202091",
"0.6169201",
"0.6140135",
"0.61215425",
"0.6032468",
"0.6017773",
"0.6004842",
"0.5996947",
"0.595759",
"0.59457797",
"0.5944064",
"0.5917977",
"0.5907243",
"0.5869171... | 0.86453414 | 0 |
Heuristic function for state value, returns a score(int) | def b7La(YKHO, QTBn):
l7uB = QTBn.board.transpose()
UHFx = []
l6TS = []
for rdlD, iVRZ in zip(QTBn.board, l7uB):
X04P = g760.Counter(rdlD)
xD3Q = g760.Counter(iVRZ)
UHFx.append(X04P.get(QTBn.current_player, 0))
UHFx.append(xD3Q.get(QTBn.current_player, 0))
l6TS.ap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(QTBn):\n if rKmC(QTBn, TlFv):\n p1kx = -1\n elif rKmC(QTBn, z_fD):\n p1kx = 1\n else:\n p1kx = 0\n return p1kx",
"def b7La(QTBn):\n if rKmC(QTBn, TlFv):\n p1kx = +1\n elif rKmC(QTBn, z_fD):\n p1kx = -1\n else:\n p1kx = 0\n return p1kx",
... | [
"0.78882146",
"0.784043",
"0.7345457",
"0.7157743",
"0.7139524",
"0.7114301",
"0.69793195",
"0.69246036",
"0.684755",
"0.6846288",
"0.6827858",
"0.6793",
"0.67383766",
"0.672263",
"0.67144525",
"0.669461",
"0.6675759",
"0.6610985",
"0.6583729",
"0.65820086",
"0.6579002",
"0... | 0.0 | -1 |
Renders the index page. | def d6pt():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO):\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt(YKHO):\n re... | [
"0.85183567",
"0.8432923",
"0.8432657",
"0.8416253",
"0.8416253",
"0.8386969",
"0.82956177",
"0.82400775",
"0.8239558",
"0.8239558",
"0.8122614",
"0.8122614",
"0.8122614",
"0.81219",
"0.81049687",
"0.8094918",
"0.80905485",
"0.80903816",
"0.8078912",
"0.8058271",
"0.8058271",... | 0.8077632 | 33 |
Get all tasks in the inbox that are not done and that belong to the specified user. | def tsMI(CBIr):
return o2Vr.objects.select_related('project').filter(user=CBIr, folder='inbox', done=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TzBh(CBIr):\n return o2Vr.objects.filter(user=CBIr, done=False).exclude(folder='trash')",
"def DS7b(CBIr):\n return o2Vr.incomplete.filter(assigned=CBIr)",
"def qH4M(C3nE, CBIr):\n xCjU = Lhsx.objects.all()\n wR3a = [a1PO for a1PO in xCjU if a1PO in CBIr.done_tasks.all()]\n ISYg = [a1PO for ... | [
"0.82049286",
"0.7706857",
"0.7463678",
"0.69252944",
"0.6806922",
"0.6736634",
"0.6635358",
"0.65539414",
"0.64536655",
"0.6424899",
"0.63940686",
"0.6285065",
"0.6187246",
"0.6129116",
"0.60526174",
"0.6032426",
"0.6010052",
"0.599861",
"0.59704995",
"0.59421873",
"0.590338... | 0.8560268 | 0 |
Get all tasks that are not done and that belong to the specified user. | def TzBh(CBIr):
return o2Vr.objects.filter(user=CBIr, done=False).exclude(folder='trash') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DS7b(CBIr):\n return o2Vr.incomplete.filter(assigned=CBIr)",
"def tsMI(CBIr):\n return o2Vr.objects.select_related('project').filter(user=CBIr, folder='inbox', done=False)",
"def qH4M(C3nE, CBIr):\n xCjU = Lhsx.objects.all()\n wR3a = [a1PO for a1PO in xCjU if a1PO in CBIr.done_tasks.all()]\n ... | [
"0.8089866",
"0.78783625",
"0.77489686",
"0.72304434",
"0.677555",
"0.6740717",
"0.6708064",
"0.6651819",
"0.64525056",
"0.6360377",
"0.6315772",
"0.6309367",
"0.62835956",
"0.6203606",
"0.6168234",
"0.6152748",
"0.6097131",
"0.602229",
"0.6010326",
"0.5934783",
"0.59046227",... | 0.8372574 | 0 |
Get all projects with a tag that belong to the current user. | def GaF3(QePW, TZ9E):
return TZ9E.project_set.filter(user=QePW.user) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ayXM(CBIr):\n llaM = oPx1.get_for(CBIr)\n return OhYN.objects.filter(project__in=list(llaM))",
"def ayXM(CBIr):\n return oPx1.objects.filter(user_group__members=CBIr).distinct()",
"def bDA_(YKHO, uJjO):\n Ylbp = YKHO.conn.cursor().execute('SELECT * FROM projects p JOIN users_projects up \\n ... | [
"0.792653",
"0.656235",
"0.65059346",
"0.64130145",
"0.6383067",
"0.62712926",
"0.6190738",
"0.6176322",
"0.6139101",
"0.6036447",
"0.60219395",
"0.596392",
"0.5944466",
"0.59329563",
"0.5826548",
"0.5818838",
"0.5790577",
"0.57863843",
"0.57661813",
"0.5763478",
"0.57343364"... | 0.8496658 | 0 |
Get all tasks with a tag that belong to the current user. | def doJG(QePW, TZ9E):
return TZ9E.task_set.filter(user=QePW.user).exclude(folder='trash') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uISt(YKHO, TZ9E, NArs={}, **xAU6):\n pmON = '/tags/%s/tasks' % TZ9E\n return YKHO.client.get_collection(pmON, NArs, **xAU6)",
"def fTkm(YKHO, TZ9E=None):\n DpUl = YKHO.conn.cursor()\n if TZ9E == None:\n return None\n else:\n DpUl.execute(\"SELECT * FROM tangerine WHERE '\" + str(... | [
"0.8071348",
"0.7656431",
"0.6827161",
"0.6622916",
"0.6433297",
"0.63607097",
"0.630221",
"0.6290128",
"0.6274648",
"0.62427753",
"0.61241746",
"0.6057698",
"0.6055371",
"0.6047118",
"0.6012956",
"0.59085476",
"0.5871621",
"0.5871621",
"0.58119506",
"0.58027416",
"0.5796941"... | 0.73029834 | 2 |
Get all tasks in the trash that belong to the current user. | def EdQg(QePW):
return o2Vr.objects.select_related('project').filter(user=QePW.user, folder='trash') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eOYc(CBIr):\n return o2Vr.objects.select_related('project').filter(user=CBIr, folder='trash')",
"def ruP6(QePW):\n return o2Vr.objects.select_related('project').filter(user=QePW.user).exclude(folder='trash')",
"def ltTF(YKHO):\n return YKHO.tasks.all()",
"def NMoC(YKHO):\n c5ow = lm8r.get_cur... | [
"0.7427179",
"0.7185722",
"0.7101083",
"0.70496583",
"0.69196063",
"0.6835596",
"0.66913146",
"0.6642428",
"0.66018",
"0.6515386",
"0.65151095",
"0.6511336",
"0.650035",
"0.63794744",
"0.6363064",
"0.6290313",
"0.62643033",
"0.6246829",
"0.6192291",
"0.6169369",
"0.611715",
... | 0.690771 | 5 |
Get all tasks in the trash that belong to the specified user. | def eOYc(CBIr):
return o2Vr.objects.select_related('project').filter(user=CBIr, folder='trash') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TzBh(CBIr):\n return o2Vr.objects.filter(user=CBIr, done=False).exclude(folder='trash')",
"def x1iM(YKHO, CBIr=None):\n with YKHO.acc_lock:\n YKHO._load()\n Aofo = []\n if CBIr:\n for G1Hx, Ty9i in YKHO.tasks.iteritems():\n if Ty9i['user'] != CBIr:\n contin... | [
"0.69775087",
"0.68069696",
"0.67699724",
"0.6760868",
"0.6738564",
"0.66116315",
"0.6606868",
"0.65669215",
"0.6454341",
"0.64496624",
"0.6445537",
"0.6438018",
"0.6417957",
"0.63501453",
"0.63219404",
"0.6218223",
"0.61527145",
"0.60759014",
"0.603698",
"0.59355927",
"0.591... | 0.7860092 | 0 |
Get all tags that belong to the current user. | def dJ1p(QePW):
return OhYN.objects.filter(user=QePW.user) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VuzP(CBIr):\n return OhYN.objects.all().filter(owner=CBIr)",
"def ayXM(CBIr):\n llaM = oPx1.get_for(CBIr)\n return OhYN.objects.filter(project__in=list(llaM))",
"def Rq8j(uJjO):\n Aofo = NCls.session.query(OhYN).filter(TwsL.user_id == uJjO, TwsL.tag_id == OhYN.id).all()\n return Aofo if Aofo... | [
"0.7770027",
"0.7167589",
"0.6774995",
"0.66879195",
"0.6644451",
"0.6644451",
"0.6601105",
"0.6545425",
"0.65307975",
"0.6454482",
"0.64482707",
"0.644693",
"0.6423923",
"0.6391455",
"0.6347909",
"0.6283487",
"0.623402",
"0.62259024",
"0.6221772",
"0.6184805",
"0.61619717",
... | 0.7161054 | 2 |
Get all open projects that belong to the current user. | def RUe2(QePW):
return oPx1.objects.prefetch_related('task_set').filter(user=QePW.user, open=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ag7H(CBIr):\n return oPx1.objects.prefetch_related('task_set').filter(user=CBIr, open=True)",
"def PKRp():\n if c5ow.get_id() is None:\n return\n with p9bx.engine.begin() as UzPC:\n Aofo = UzPC.execute(EfUA([FYrf.projects.c.project_id, FYrf.projects.c.name, FYrf.projects.c.path, FYrf.p... | [
"0.8149598",
"0.7258314",
"0.69690424",
"0.6893914",
"0.68613523",
"0.6788141",
"0.67876947",
"0.6759775",
"0.675115",
"0.6711831",
"0.6680222",
"0.66205317",
"0.66006476",
"0.6543333",
"0.64915854",
"0.6482727",
"0.64806795",
"0.64352983",
"0.6390567",
"0.63835585",
"0.63735... | 0.75008255 | 1 |
Get all open projects that belong to the specified user. | def Ag7H(CBIr):
return oPx1.objects.prefetch_related('task_set').filter(user=CBIr, open=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bDA_(YKHO, uJjO):\n Ylbp = YKHO.conn.cursor().execute('SELECT * FROM projects p JOIN users_projects up \\n ON p.id = up.project_id \\n WHERE owner=? OR up.user_id=?\\n GROUP BY p.id\\n ORDER BY last_update DESC', (uJjO, uJjO))\n return Ylbp.fetchall()",
"def ayXM(CBIr):\n ... | [
"0.76115316",
"0.75172126",
"0.7335415",
"0.71012306",
"0.6991892",
"0.6943037",
"0.6861453",
"0.6625245",
"0.6596967",
"0.6473751",
"0.64701456",
"0.63082844",
"0.6244381",
"0.61578655",
"0.61360407",
"0.61117095",
"0.61083376",
"0.60057664",
"0.6003162",
"0.5893403",
"0.586... | 0.83851707 | 0 |
Get all projects that belong to the current user. | def llaM(QePW):
return oPx1.objects.prefetch_related('task_set').filter(user=QePW.user) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKRp():\n if c5ow.get_id() is None:\n return\n with p9bx.engine.begin() as UzPC:\n Aofo = UzPC.execute(EfUA([FYrf.projects.c.project_id, FYrf.projects.c.name, FYrf.projects.c.path, FYrf.projects.c.creation_date, FYrf.projects.c.user_id, JfyU.count(FYrf.objects.c.object_id).label('object_cou... | [
"0.8107182",
"0.7744434",
"0.743277",
"0.7331056",
"0.7233015",
"0.7207158",
"0.7135796",
"0.7135061",
"0.71338266",
"0.71055907",
"0.7097772",
"0.7054735",
"0.7041527",
"0.6992611",
"0.69875383",
"0.6971294",
"0.6959246",
"0.6942202",
"0.69079036",
"0.68687904",
"0.6858285",... | 0.6995249 | 13 |
Get all tasks that have reminders due within 2 days. | def V7R_(QePW):
wzkt = rIAI.now()
ygfY = wzkt + fCoM(days=2)
return o2Vr.objects.filter(user=QePW.user, reminder__lt=ygfY, reminder_seen=False, done=False).exclude(folder='trash') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iwrJ(YKHO):\n if YKHO.able:\n ivf7 = []\n for D5gV in YKHO.tasks.all():\n if D5gV.deadline is not None:\n if YKHO._get_delta(D5gV.deadline) < rIAI.localtime():\n YKHO.tasks.remove(D5gV)\n ivf7.append(JbaM(title=NR6e.REMIND, info=f... | [
"0.60868067",
"0.5778199",
"0.5490895",
"0.54786587",
"0.54597944",
"0.54487723",
"0.5419434",
"0.54187286",
"0.54074603",
"0.5398042",
"0.5357788",
"0.5313726",
"0.5270403",
"0.5181551",
"0.5167565",
"0.51510733",
"0.51324815",
"0.51028377",
"0.5100843",
"0.5059059",
"0.5017... | 0.6968844 | 0 |
Get all pinned tasks of the current user that are not in the Trash. | def zurg(QePW):
return o2Vr.objects.filter(pinned=True, user=QePW.user).exclude(folder='trash') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WEzA(QePW):\n return o2Vr.objects.select_related('project').filter(pinned=True, user=QePW.user).exclude(folder='trash')",
"def dGrt(QePW, bNKA):\n return bNKA.task_set.filter(user=QePW.user).exclude(folder='trash')",
"def tsMI(CBIr):\n return o2Vr.objects.select_related('project').filter(user=CBIr... | [
"0.7495725",
"0.6647854",
"0.6567567",
"0.6487442",
"0.6422287",
"0.6223839",
"0.62028295",
"0.6156449",
"0.6070902",
"0.6010718",
"0.5994",
"0.5989363",
"0.58836126",
"0.58729947",
"0.58417964",
"0.5832912",
"0.57969844",
"0.57758147",
"0.5748211",
"0.57470936",
"0.57338744"... | 0.8015453 | 0 |
Get all pinned tasks of the current user that are not in the Trash (with Project data). | def WEzA(QePW):
return o2Vr.objects.select_related('project').filter(pinned=True, user=QePW.user).exclude(folder='trash') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zurg(QePW):\n return o2Vr.objects.filter(pinned=True, user=QePW.user).exclude(folder='trash')",
"def dGrt(QePW, bNKA):\n return bNKA.task_set.filter(user=QePW.user).exclude(folder='trash')",
"def tsMI(CBIr):\n return o2Vr.objects.select_related('project').filter(user=CBIr, folder='inbox', done=Fal... | [
"0.8124406",
"0.7317948",
"0.69276667",
"0.69040227",
"0.65500796",
"0.64234847",
"0.63849545",
"0.619029",
"0.61190313",
"0.60669607",
"0.6053313",
"0.60026866",
"0.59531176",
"0.59410614",
"0.59409153",
"0.59241927",
"0.586358",
"0.57827556",
"0.57419086",
"0.5734217",
"0.5... | 0.7990339 | 1 |
Parse a numering value from a query string value | def Z9Xp(xDcj, mWFP, WmM4):
try:
if len(xDcj) > 0:
umWR = uRlK.parse.parse_qs(xDcj)
if mWFP in umWR:
return int(umWR[mWFP][0])
except ValueError:
pass
return WmM4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfK9(BWXx):\n return int(BWXx)",
"def oNf4(YKHO, str):\n if str.count('.') == 0:\n return int(str)\n if str.count('.') == 1:\n return float(str)\n return str",
"def xuS7(FUjE):\n return int(FUjE)",
"def FbE9(QePW, o2VW, _N6A):\n xqoZ = o2VW.get(_N6A)\n if not xqoZ:\n ... | [
"0.66910136",
"0.61299455",
"0.5986598",
"0.5925569",
"0.5802936",
"0.579991",
"0.57957184",
"0.5784198",
"0.5775909",
"0.5775909",
"0.57698905",
"0.5740466",
"0.5733255",
"0.57221687",
"0.5709728",
"0.564221",
"0.563953",
"0.56303036",
"0.56107944",
"0.5604608",
"0.55634034"... | 0.6875365 | 0 |
Set default parameters for reductions. | def GVmf(YKHO):
Mzf9 = oPAQ.PypeItPar()
Mzf9['rdx']['spectrograph'] = 'not_alfosc'
Mzf9['calibrations']['slitedges']['sync_predict'] = 'nearest'
Mzf9['calibrations']['pixelflatframe']['process']['combine'] = 'median'
Mzf9['calibrations']['pixelflatframe']['process']['sig_lohi'] = [10.0, 10.0]
Mz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kP1P(YKHO):\n super().set_default_parameters()",
"def FIMM(YKHO, WmM4=None):\n YKHO.current = []\n YKHO.stepnames = []\n YKHO.default = {}\n if WmM4 is not None:\n for YPaw in WmM4:\n WY2F = lskj()\n for xqoZ in WmM4[YPaw]:\n WY2F.set_param(**xqoZ)\n... | [
"0.7263637",
"0.6981142",
"0.6731152",
"0.6729822",
"0.66492987",
"0.659682",
"0.65311843",
"0.6520106",
"0.6513136",
"0.6449649",
"0.6422568",
"0.6422568",
"0.64129347",
"0.63989174",
"0.63939035",
"0.6335946",
"0.63204956",
"0.6306268",
"0.61620575",
"0.61432475",
"0.614169... | 0.0 | -1 |
Generate the meta data dict Note that the children can add to this | def gMed(YKHO):
e5kH = {}
e5kH['ra'] = dict(ext=0, card='OBJRA')
e5kH['dec'] = dict(ext=0, card='OBJDEC')
e5kH['target'] = dict(ext=0, card='OBJECT')
e5kH['decker'] = dict(ext=0, card='ALAPRTNM')
e5kH['binning'] = dict(card=None, compound=True)
e5kH['mjd'] = dict(ext=0, card=None, compound=T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nalj(YKHO) -> cuzp:\n pass",
"def yIVm(YKHO) -> dict:\n e5kH = {}\n e5kH['name'] = YKHO.name\n e5kH['potential_key'] = YKHO.potential_key\n e5kH['potential_id'] = YKHO.potential_id\n e5kH['potential_LAMMPS_key'] = YKHO.potential_LAMMPS_key\n e5kH['potential_LAMMPS_id'] = YKHO.potential_L... | [
"0.7611825",
"0.6926708",
"0.6916665",
"0.6855819",
"0.6794806",
"0.6757867",
"0.67008656",
"0.6652285",
"0.6644393",
"0.6615971",
"0.66074073",
"0.65457475",
"0.65456355",
"0.65314656",
"0.6498004",
"0.64959383",
"0.6454346",
"0.64204746",
"0.6410104",
"0.64076114",
"0.63988... | 0.6578848 | 11 |
Returns the latest date to be used when purging the cache. So we do not purge files being downloaded. | def oMAw(YKHO):
with YKHO.connection as NCls:
fsbt = NCls.execute('SELECT MIN(creation_date) FROM cache WHERE size IS NULL').fetchone()[0]
if fsbt is None:
fsbt = NCls.execute('SELECT MAX(creation_date) FROM cache WHERE size IS NOT NULL').fetchone()[0]
if fsbt is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x7F_(YKHO) -> str:\n return qe4Y.get(YKHO, 'scheduled_purge_date')",
"def YArw(Emd4):\n return Emd4.query.order_by(QoB4(Emd4.date)).first().date",
"def HptQ(pmON: str) -> qcWV:\n _c1T: qcWV\n if not Hy7s.path.exists(pmON):\n raise FileNotFoundError('Path does not exist: ' + pmON)\n tr... | [
"0.6641179",
"0.6475996",
"0.64081967",
"0.6280654",
"0.6280654",
"0.62096757",
"0.61870086",
"0.61750185",
"0.61464685",
"0.61163247",
"0.6110284",
"0.60400814",
"0.60400814",
"0.5969421",
"0.59318787",
"0.5919777",
"0.5917915",
"0.5917459",
"0.59077066",
"0.5905694",
"0.586... | 0.74889517 | 0 |
Saves the underlying tensor back to an image | def DzGz(YKHO, pmON, NArs=None):
assert isinstance(pmON, str)
assert len(pmON) > 0
if NArs is not None:
assert isinstance(NArs, dict)
return XC5k.imwrite(pmON, YKHO.to_numpy(), **NArs)
return XC5k.imwrite(pmON, YKHO.to_numpy()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dutc(vhpA, pmON, leAC='NONAME'):\n LNo8 = zy6L(vhpA)\n LNo8.save(Hy7s.path.join(pmON, '{}.jpg'.format(leAC)))",
"def t7Mi(VXjJ, tTee, i8WE, kmfe):\n VXjJ = ZylS.image.decode_jpeg(VXjJ, channels=3)\n VXjJ = hnIv.fromarray(VXjJ.numpy(), 'RGB')\n VXjJ.save(Hy7s.path.join(kmfe, f'{i8WE}_{tTee}.jpe... | [
"0.7091996",
"0.70323",
"0.69713795",
"0.68567044",
"0.6663866",
"0.66332036",
"0.66163987",
"0.66046757",
"0.66001266",
"0.6559787",
"0.65589726",
"0.6558608",
"0.6553429",
"0.6505368",
"0.64516026",
"0.6440218",
"0.6433763",
"0.64279425",
"0.6409107",
"0.63667023",
"0.63548... | 0.0 | -1 |
Setup data for tests. | def FCbF(YKHO):
C3ST.db.create_all()
YKHO.conversation, YKHO.users, YKHO.msgs = C3ST.seed(N5z6.app) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def izSt(Emd4):\n BJsk.initialize_empty_volunteer()",
"def FCbF(YKHO):\n YKHO.dataset = eis1()",
"def FCbF(YKHO):\n YKHO.test_data_path = 'testing/test_data/'",
"def izSt(Emd4):\n tOFR.run()",
"def izSt(Emd4):\n tOFR.run()",
"def izSt(Emd4):\n tOFR.run()",
"def izSt(Emd4):\n tOFR.r... | [
"0.81038857",
"0.79905665",
"0.7946954",
"0.7944548",
"0.7944548",
"0.7944548",
"0.7944548",
"0.7861665",
"0.78557146",
"0.78193986",
"0.7770159",
"0.7720192",
"0.7610491",
"0.7560285",
"0.75358725",
"0.7534758",
"0.74406785",
"0.7417068",
"0.74125254",
"0.7403374",
"0.740129... | 0.0 | -1 |
Select each batch with the given positions. Once advanced indexing can be hybridized, we can revise the implementation. out[i, j, ...] = data[i, positions[i, j], ...] | def CFPG(nPrm, FBNX):
FBNX = FBNX.astype(oyIN.int32)
I7JW = oyIN.expand_dims(W3EA.arange_like(FBNX, axis=0), axis=1).astype(oyIN.int32)
I7JW = I7JW + oyIN.zeros_like(FBNX)
_0VL = oyIN.stack([I7JW, FBNX])
yvT9 = W3EA.gather_nd(nPrm, _0VL)
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FG1T(nPrm, wEf2, FBNX):\n FBNX = FBNX.astype(oyIN.int32)\n I7JW = oyIN.expand_dims(W3EA.arange_like(FBNX, axis=0), axis=1).astype(oyIN.int32)\n I7JW = I7JW + oyIN.zeros_like(FBNX)\n _0VL = oyIN.stack([I7JW.reshape((-1,)), FBNX.reshape((-1,))])\n yvT9 = W3EA.index_update(nPrm, _0VL, W3EA.reshape(... | [
"0.5949324",
"0.58777654",
"0.5870559",
"0.5824906",
"0.5739889",
"0.57125914",
"0.57125914",
"0.57125914",
"0.56358397",
"0.55459386",
"0.5514342",
"0.5503351",
"0.54621744",
"0.535052",
"0.53470194",
"0.5330549",
"0.53224784",
"0.5298508",
"0.5295236",
"0.5295236",
"0.52816... | 0.77109927 | 0 |
Update each batch with the given positions. Considered as a reversed process of "select_vectors_by_position", this is an operator similar to "add_vectors_by_position" that updates the results instead of adding. | def FG1T(nPrm, wEf2, FBNX):
FBNX = FBNX.astype(oyIN.int32)
I7JW = oyIN.expand_dims(W3EA.arange_like(FBNX, axis=0), axis=1).astype(oyIN.int32)
I7JW = I7JW + oyIN.zeros_like(FBNX)
_0VL = oyIN.stack([I7JW.reshape((-1,)), FBNX.reshape((-1,))])
yvT9 = W3EA.index_update(nPrm, _0VL, W3EA.reshape(wEf2, (-5,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hLqz(YKHO, hIdy):\n YKHO.positions.update(hIdy)",
"def LLgn(nPrm, EAdr, FBNX):\n FBNX = FBNX.astype(oyIN.int32)\n I7JW = oyIN.expand_dims(W3EA.arange_like(FBNX, axis=0), axis=1).astype(oyIN.int32)\n I7JW = I7JW + oyIN.zeros_like(FBNX)\n _0VL = oyIN.stack([I7JW.reshape((-1,)), FBNX.reshape((-1,... | [
"0.65305287",
"0.6406578",
"0.64017546",
"0.62563574",
"0.6032919",
"0.60107887",
"0.59604865",
"0.5860675",
"0.5686449",
"0.5626992",
"0.56116253",
"0.55663425",
"0.5551926",
"0.5540829",
"0.5478529",
"0.5472426",
"0.5467219",
"0.5467219",
"0.5463622",
"0.5451387",
"0.544924... | 0.7790306 | 0 |
Handler retrieves all gates associated with a given feature. | def mgfH(YKHO, Nfky):
Nfky.return_value = ['reviewer1@example.com']
with fkN9.test_request_context(YKHO.request_path):
n5sN = YKHO.handler.do_get(feature_id=YKHO.feature_id)
aEqx = {'gates': [{'id': 1, 'feature_id': YKHO.feature_id, 'stage_id': 1, 'gate_type': 1, 'team_name': 'API Owners', 'gate_nam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aK3A(YKHO):\n return YKHO.gates",
"def QCHN(YKHO, **B2fa) -> dict[str, ImMB]:\n iSqf = B2fa.get('feature_id', None)\n IXCZ: list[kLP0] = kLP0.query(kLP0.feature_id == iSqf).fetch()\n if len(IXCZ) == 0:\n return {'gates': [], 'possible_owners': {}}\n fgcx = [y3OZ.gate_value_to_json_dict(... | [
"0.6369732",
"0.59681505",
"0.5587192",
"0.5543859",
"0.55134237",
"0.54941064",
"0.54710376",
"0.54528755",
"0.54528755",
"0.54528755",
"0.5265893",
"0.5259671",
"0.5189443",
"0.51069033",
"0.50960445",
"0.50883573",
"0.5007887",
"0.4956129",
"0.49462032",
"0.492067",
"0.490... | 0.0 | -1 |
Gets the message_uris of this Operations. | def U2kG(YKHO):
return YKHO._message_uris | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yEHD(YKHO):\n return YKHO._messages",
"def yEHD(YKHO):\n return YKHO._messages",
"def yEHD(YKHO):\n return YKHO._messages",
"def yEHD(YKHO):\n return dSGQ.messages",
"def oHNC(YKHO):\n tO9_ = YKHO.get_message()\n return tO9_.split()",
"def LnrL(YKHO):\n return YKHO.addresses",
... | [
"0.5953097",
"0.5953097",
"0.5953097",
"0.59343493",
"0.56942403",
"0.56044215",
"0.55547917",
"0.5545718",
"0.5545718",
"0.5545718",
"0.5464977",
"0.5460213",
"0.5458392",
"0.5444083",
"0.54419035",
"0.5439234",
"0.54106987",
"0.54048944",
"0.54048944",
"0.53961825",
"0.5347... | 0.84862775 | 0 |
Sets the message_uris of this Operations. | def U2kG(YKHO, U2kG):
YKHO._message_uris = U2kG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U2kG(YKHO):\n return YKHO._message_uris",
"def yEHD(YKHO, yEHD):\n YKHO._messages = yEHD",
"def yEHD(YKHO, yEHD):\n YKHO._messages = yEHD",
"def yEHD(YKHO, yEHD):\n YKHO._messages = yEHD",
"def yEHD(YKHO, yEHD):\n YKHO._messages = yEHD",
"def yEHD(YKHO, yEHD):\n YKHO._messages = yEH... | [
"0.5986909",
"0.584561",
"0.584561",
"0.584561",
"0.5802213",
"0.5631539",
"0.5564232",
"0.5247202",
"0.51873374",
"0.51599824",
"0.5149855",
"0.51197743",
"0.5019313",
"0.4973826",
"0.4967919",
"0.48751172",
"0.48226613",
"0.47167608",
"0.46721545",
"0.46629313",
"0.46483377... | 0.82470834 | 0 |
Sets the messages of this Operations. | 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 IzQR(YKHO, BWXx):\n YKHO.__message = BWXx",
"def V0Ud(YKHO, SGPK):\n return",
"def V0Ud(YKHO, SGPK):\n return",
"def V0Ud(YKHO, SGPK):\n return",
"def V0Ud(YKHO, SGPK):\n return",
... | [
"0.8014013",
"0.79535276",
"0.6556355",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
"0.6436502",
... | 0.7911829 | 4 |
Gets the actions of this Operations. | def xASv(YKHO):
return YKHO._actions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xASv(YKHO):\n return YKHO._actions.getSlice(0)",
"def xASv(YKHO):\n return YKHO._actions.getSlice(0)",
"def qaYX(YKHO):\n xASv = YKHO.actions[:]\n return xASv",
"def xASv(YKHO):\n return YKHO._action_list",
"def Q6sW(YKHO):\n return YKHO.agent.get_actions()",
"def eqLF(YKHO):\n r... | [
"0.8242834",
"0.8242834",
"0.8213049",
"0.81740016",
"0.8167719",
"0.8138019",
"0.78985786",
"0.78384584",
"0.77870494",
"0.7659093",
"0.7621263",
"0.7621263",
"0.7621263",
"0.7568886",
"0.75611556",
"0.75556266",
"0.75449073",
"0.7506917",
"0.7506917",
"0.728141",
"0.7253792... | 0.82548857 | 0 |
Push new node to priority queue | def WeXa(YKHO, Q6kx):
if YKHO.priority == 'bin':
jGbP(YKHO.unvisited, Q6kx)
elif YKHO.priority == 'fib':
xJOA(YKHO.unvisited, Q6kx)
else:
YKHO.unvisited.append(Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jvNa(YKHO, ZfUD, Ey19):\n ...",
"def _jXH(YKHO, OZkM, Ey19):\n Ey19 = Ey19 * 10000\n Ey19 = YKHO._clip_p(Ey19)\n Ey19 = int(Ey19)\n if YKHO.size == YKHO.capacity:\n YKHO.queue[YKHO.to_write % YKHO.capacity] = OZkM\n YKHO.sum_tree.update(YKHO.to_write % YKHO.capacity, Ey19)\n e... | [
"0.7484956",
"0.71449536",
"0.71334535",
"0.70161366",
"0.6942078",
"0.6931039",
"0.68956727",
"0.6844681",
"0.6830522",
"0.6796128",
"0.6773003",
"0.67547184",
"0.6739763",
"0.6718525",
"0.67164814",
"0.669749",
"0.669749",
"0.66956466",
"0.66913855",
"0.66742855",
"0.667388... | 0.7895078 | 0 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in range(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.7448925 | 76 |
Updates product property values. | def xuXg(QePW, jX25):
GrNT = ivMe(aYiL, pk=jX25)
P_zT = QePW.POST.getlist('product-id')
Ldyl = msfn.objects.filter(pk__in=P_zT)
for Lx3t in Ldyl:
for property in GrNT.properties.all():
BWXx = QePW.POST.get('property-%s-%s' % (Lx3t.id, property.id), '')
if BWXx != '':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rE0_(YKHO):\n YKHO.manage_changeProperties(title=YKHO.getTitle(), description=YKHO.getDescription(), basepath=YKHO.getPath())",
"def rPc5(Lx3t):\n if Lx3t['properties']:\n for XP5J in Lx3t['properties']:\n Lx3t[XP5J['name']] = XP5J['value']\n return Lx3t",
"def Oud5(YKHO, C9U5, q... | [
"0.6657335",
"0.6611141",
"0.653149",
"0.6509591",
"0.6412747",
"0.6363334",
"0.63390166",
"0.62904555",
"0.62843716",
"0.6239701",
"0.6186918",
"0.61564195",
"0.61431366",
"0.6128051",
"0.6114813",
"0.6054787",
"0.60273755",
"0.60148674",
"0.5928027",
"0.59201825",
"0.590318... | 0.74405664 | 0 |
Get absolute assets directory using sqlite database path as a reference. | def YG4W(YKHO, p9bx):
if not p9bx:
return 'assets'
pmON = Hy7s.path.dirname(p9bx)
return Hy7s.path.join(pmON, 'assets') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wz0P(mWFP):\n return Hy7s.path.join(uwaB.ROOT_DIR, 'assets', mWFP)",
"def Uri0():\n return SEGf.db_abs_path",
"def pof_():\n z_es = str(gbPf.mkdtemp())\n WQbV = Hy7s.path.abspath(Hy7s.path.join(z_es, 'sqlite_db' + ''.join([tuKI.choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(8)]) + '... | [
"0.68366194",
"0.66038924",
"0.65854824",
"0.6567497",
"0.6551408",
"0.653602",
"0.6420977",
"0.6269323",
"0.6231511",
"0.62173945",
"0.607654",
"0.60459805",
"0.60380095",
"0.59839976",
"0.59738487",
"0.5959194",
"0.5936903",
"0.5915608",
"0.59102046",
"0.5904048",
"0.589010... | 0.8476665 | 0 |
Creates a matrix filled with zeros. | def fmpe(YKHO, usx6, WfCS):
E3D9 = []
while len(E3D9) < usx6:
E3D9.append([])
while len(E3D9[-1]) < WfCS:
E3D9[-1].append(0.0)
return E3D9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZnYu(H2v2, TVTK):\n Oa1e = [[0.0 for bGrB in range(TVTK)] for IaaG in range(H2v2)]\n return aLMY(Oa1e)",
"def GEcs(TVTK, H2v2):\n GyLV = aLMY()\n for YRbF in range(TVTK):\n yH_n = [0] * H2v2\n GyLV.addRow(*yH_n)\n return GyLV",
"def ZnYu(H2v2, TVTK):\n Oa1e = [[0.0 for bGrB ... | [
"0.83105844",
"0.82251585",
"0.8177624",
"0.80738527",
"0.8053129",
"0.7960837",
"0.7950135",
"0.7950135",
"0.7792159",
"0.7705187",
"0.7678834",
"0.76101226",
"0.7580145",
"0.74690133",
"0.7464018",
"0.7462307",
"0.74617356",
"0.7240482",
"0.7231481",
"0.718796",
"0.71302176... | 0.814171 | 3 |
Checks the equality of two matrices. | def MV7f(YKHO, mzgq, qWHF, yJiH=None):
if len(mzgq) != len(qWHF) or len(mzgq[0]) != len(qWHF[0]):
return False
for YRbF in range(len(mzgq)):
for r845 in range(len(mzgq[0])):
if yJiH is None:
if mzgq[YRbF][r845] != qWHF[YRbF][r845]:
return False
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTRD(*qIxc, **B2fa):\n return nAU3.GraphicsMatrix_IsEqual(*qIxc, **B2fa)",
"def k7E2(U6D_, pKgL):\n by6d = FCE9.N(FCE9.expand(U6D_) - FCE9.expand(pKgL))\n try:\n return oyIN.allclose(float(FCE9.re(by6d)) + 1j * float(FCE9.im(by6d)), 0)\n except TypeError:\n return False",
"def MV7... | [
"0.7714554",
"0.740203",
"0.7398573",
"0.7387387",
"0.73428464",
"0.73169017",
"0.7311009",
"0.7276583",
"0.7269618",
"0.7231773",
"0.71865493",
"0.71372896",
"0.7098439",
"0.7072754",
"0.7070013",
"0.7067749",
"0.70479655",
"0.69766957",
"0.69462913",
"0.6940412",
"0.693163"... | 0.7137955 | 11 |
converts dense tensor x to sparse format | def zXM_(WKvO):
zHeZ = ht2j.typename(WKvO).split('.')[-1]
UX5J = getattr(ht2j.sparse, zHeZ)
_0VL = ht2j.nonzero(WKvO)
if len(_0VL.shape) == 0:
return UX5J(*WKvO.shape)
_0VL = _0VL.t()
hkxX = WKvO[tuple((_0VL[YRbF] for YRbF in range(_0VL.shape[0])))]
return UX5J(_0VL, hkxX, WKvO.size(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t9Ww(WKvO):\n _HTG = []\n rfpI = []\n for a2Ls, Wc9F in enumerate(WKvO):\n for ITS7, wEf2 in enumerate(Wc9F):\n _HTG.append([a2Ls, ITS7])\n rfpI.append(wEf2)\n OOcW = [len(WKvO), oyIN.asarray(_HTG).max(0)[1] + 1]\n _HTG = ZylS.constant(_HTG, ZylS.int64)\n rfpI = Z... | [
"0.7648397",
"0.7599587",
"0.7598531",
"0.75391126",
"0.73031443",
"0.73001194",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72935396",
"0.72800845",
... | 0.8253765 | 0 |
automatically assign symbols to different clusters, start with '!' | def j5V4(qC6E):
gZgb = ['A', 'a', 'B', 'b', 'C', 'c', 'D', 'd', 'E', 'e', 'F', 'f', 'G', 'g', 'H', 'h', 'I', 'i', 'J', 'j', 'K', 'k', 'L', 'l', 'M', 'm', 'N', 'n', 'O', 'o', 'P', 'p', 'Q', 'q', 'R', 'r', 'S', 's', 'T', 't', 'U', 'u', 'V', 'v', 'W', 'w', 'X', 'x', 'Y', 'y', 'Z', 'z']
qC6E = rLdf.Series(qC6E)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JbEd(YKHO):\n YKHO.add_labels()\n upwc = 16\n for YRbF in range(len(YKHO.commands)):\n oUZx = YKHO.commands[YRbF]\n if oUZx.startswith('@'):\n BWXx = oUZx.split('@')[1]\n if not BWXx.isdigit():\n if BWXx not in YKHO.symbol_table:\n ... | [
"0.57611203",
"0.56967247",
"0.5549534",
"0.5420195",
"0.53969574",
"0.5377274",
"0.5376027",
"0.53635615",
"0.5308677",
"0.530028",
"0.5273284",
"0.5243025",
"0.5210544",
"0.5198164",
"0.5182084",
"0.5175294",
"0.5164498",
"0.5142797",
"0.5134589",
"0.5123554",
"0.5113748",
... | 0.60405517 | 0 |
Initializes an edge between vertices v and w of the given weight. | def FIMM(YKHO, Ty9i, yzQ0, upAO):
if Ty9i < 0:
raise OI89('vertex index must be a nonnegative integer')
if yzQ0 < 0:
raise OI89('vertex index must be a nonnegative integer')
if epAf.isnan(upAO):
raise OI89('Weight is NaN')
YKHO._v = Ty9i
YKHO._w = yzQ0
YKHO._weight = upAO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i7WW(yzQ0):\n ROpF = yzQ0.shape\n if len(ROpF) == 4:\n YRbF, z1Rg, P6bq, Ty9i = ROpF\n G1Hx = oyIN.sqrt(6 / (YRbF * P6bq * Ty9i + z1Rg * P6bq * Ty9i))\n yzQ0.data.uniform_(-G1Hx, G1Hx)\n elif len(ROpF) == 2:\n G1Hx = oyIN.sqrt(6 / sum(ROpF))\n yzQ0.data.uniform_(-G1H... | [
"0.7059962",
"0.6985204",
"0.6741537",
"0.67109",
"0.6605743",
"0.6535024",
"0.6383154",
"0.6337379",
"0.62953526",
"0.62523234",
"0.6142419",
"0.609523",
"0.6093473",
"0.60727596",
"0.60598975",
"0.6058051",
"0.60504174",
"0.60291606",
"0.59892726",
"0.5980371",
"0.59776914"... | 0.7653025 | 0 |
Returns either endpoint of this edge. | def ZrMx(YKHO):
return YKHO._v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w2IS(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'endpoint')",
"def w2IS(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'endpoint')",
"def w2IS(YKHO):\n return YKHO.Endpoint",
"def lMZ5(GfQJ, a_7t, XSoh, _vrr):\n if XSoh == 'start' and (not _vrr) or (XSoh == 'end' and _vr... | [
"0.6749542",
"0.6749542",
"0.6695471",
"0.66825694",
"0.66606414",
"0.665726",
"0.66341835",
"0.6627366",
"0.6603337",
"0.65539706",
"0.65478814",
"0.65270776",
"0.64598405",
"0.63791895",
"0.6352825",
"0.6341761",
"0.6341761",
"0.63368154",
"0.6252958",
"0.6249637",
"0.62495... | 0.0 | -1 |
Checks if this edge has smaller weight than other edge | def JWbp(YKHO, Elif):
return YKHO.weight() < Elif.weight() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWbp(YKHO, Elif):\n return YKHO.weight < Elif.weight",
"def Zcf_(YKHO, Elif):\n if YKHO.head_vertex < Elif.head_vertex:\n return False\n elif YKHO.tail_vertex < Elif.tail_vertex:\n return False\n elif YKHO.weight < Elif.weight:\n return False\n return True",
"def Zcf_(YK... | [
"0.7408439",
"0.717427",
"0.717427",
"0.71102875",
"0.7014654",
"0.67417485",
"0.67417485",
"0.66068983",
"0.66068983",
"0.6588866",
"0.6588866",
"0.6411511",
"0.63798916",
"0.6275046",
"0.62529576",
"0.6252676",
"0.6228883",
"0.6222635",
"0.61763614",
"0.6157413",
"0.6133057... | 0.7314293 | 1 |
Checks if this edge has greater weight than other edge | def jmxi(YKHO, Elif):
return YKHO.weight() > Elif.weight() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif):\n return YKHO.weight > Elif.weight",
"def jmxi(YKHO, Elif):\n if YKHO.head_vertex <= Elif.head_vertex:\n return False\n elif YKHO.tail_vertex <= Elif.tail_vertex:\n return False\n elif YKHO.weight <= Elif.weight:\n return False\n return True",
"def jmxi... | [
"0.7963535",
"0.7318416",
"0.7318416",
"0.7129417",
"0.7129417",
"0.68948746",
"0.68125826",
"0.6747067",
"0.6747067",
"0.6555964",
"0.6505616",
"0.64786625",
"0.64471745",
"0.6431947",
"0.6394534",
"0.6393306",
"0.6285698",
"0.62731266",
"0.623691",
"0.623691",
"0.62277573",... | 0.78941107 | 1 |
Returns a string representation of this edge. | def wHJl(YKHO):
return '{}-{} {:.5f}'.format(YKHO._v, YKHO._w, YKHO._weight) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'Edge Weight: ' + str(YKHO.weight) + '\\n' + 'Edge Attributes: ' + str(YKHO.attributes) + '\\n' + 'First Incident Node: \\n' + str(YKHO.first_incident_node.get_name()) + '\\n' + 'Second Incident Node: \\n' + str(YKHO.second_incident_node.get_name()) + '\\n'",
"def zAg0(YKHO):\n KCH... | [
"0.83645093",
"0.82307255",
"0.817626",
"0.783757",
"0.7708114",
"0.7678149",
"0.7678149",
"0.75732565",
"0.75467056",
"0.74453324",
"0.7422453",
"0.7406451",
"0.7398116",
"0.7396412",
"0.73224294",
"0.727886",
"0.727727",
"0.727727",
"0.7249402",
"0.72165906",
"0.71373504",
... | 0.0 | -1 |
Create an empty linkedlist. | def FIMM(YKHO):
YKHO._head = YKHO._Node(None, None, None)
YKHO._tail = YKHO._Node(None, None, None)
YKHO._head._next = YKHO._tail
YKHO._tail._prev = YKHO._head
YKHO._size = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c4ic():\n from linked_list import Linked_List\n wnLx = Linked_List()\n return wnLx",
"def nuIp():\n from linked_list import Node\n return Node()",
"def FIMM(YKHO):\n Q6kx = Msxl(0)\n YKHO.head = Q6kx\n YKHO.tail = Q6kx\n YKHO.len = 0",
"def FIMM(YKHO):\n YKHO.size = 0\n Y... | [
"0.79805195",
"0.791627",
"0.7225095",
"0.70803684",
"0.6935301",
"0.6820973",
"0.67908347",
"0.6772688",
"0.6715047",
"0.6715047",
"0.66754013",
"0.6664002",
"0.66501695",
"0.6630796",
"0.6607086",
"0.65998125",
"0.6582175",
"0.6582175",
"0.6582175",
"0.6578814",
"0.65773267... | 0.70088804 | 4 |
Return (but do not remove) the element at the front of the list. Raise Empty exception if the list is empty. | def cntZ(YKHO):
if YKHO.is_empty():
raise rWmY('list is empty')
return YKHO._head._next._element | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('list is empty')\n return YKHO._head._element",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def vYJ5(YKHO):\n if YKHO.items:\n return YKHO.items[0]\n return None",... | [
"0.7752586",
"0.74099046",
"0.7282146",
"0.72793466",
"0.7206405",
"0.71876144",
"0.7164988",
"0.70447963",
"0.69901526",
"0.69766706",
"0.6973059",
"0.68946236",
"0.6859805",
"0.6850732",
"0.6834931",
"0.67847836",
"0.6758627",
"0.6758318",
"0.6750658",
"0.672823",
"0.670278... | 0.7707012 | 1 |
Return (but do not remove) the element at the end of the list. Raise Empty exception if the list is empty. | def XVAW(YKHO):
if YKHO.is_empty():
raise rWmY('list is empty')
return YKHO._tail._prev._element | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('list is empty')\n return YKHO._tail._element",
"def T7C_(YKHO):\n if YKHO.is_empty():\n return None\n OeLM = len(YKHO.list) - 1\n return YKHO.list[OeLM]",
"def T7C_(YKHO):\n print('self.list P', YKHO.list)\n print('length', ... | [
"0.74378264",
"0.71719545",
"0.7125959",
"0.71155465",
"0.6989195",
"0.69059515",
"0.6636301",
"0.6633014",
"0.66323364",
"0.65883636",
"0.6557477",
"0.65439236",
"0.6501861",
"0.6498579",
"0.64924735",
"0.64650846",
"0.64434916",
"0.6442915",
"0.64238566",
"0.6406884",
"0.63... | 0.7323044 | 1 |
Remove and return the first element of the list. Raise Empty exception if the list is empty. | def Ksvm(YKHO):
if YKHO.is_empty():
raise rWmY('list is empty')
return YKHO._delete_node(YKHO._head._next) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bJiA(YKHO):\n if YKHO.__nelems == 0:\n raise BaseException('Empty List')\n ycBG = YKHO.__head\n if YKHO.__nelems == 1:\n YKHO.__head = YKHO.__tail = None\n else:\n YKHO.__head = ycBG.getNext()\n ycBG.setNext(None)\n YKHO.__nelems -= 1\n return ycBG.getData()",
"d... | [
"0.78991073",
"0.75871634",
"0.72870994",
"0.72291464",
"0.7227498",
"0.71314",
"0.7059464",
"0.7025865",
"0.68990326",
"0.6868407",
"0.68648756",
"0.67826676",
"0.67779195",
"0.6756591",
"0.67530614",
"0.67460805",
"0.6603666",
"0.6589892",
"0.6575842",
"0.6547908",
"0.65375... | 0.7575001 | 2 |
Remove and return the last element of the list. Raise Empty exception if the list is empty. | def BIls(YKHO):
if YKHO.is_empty():
raise rWmY('list is empty')
return YKHO._delete_node(YKHO._head._next) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('list is empty')\n return YKHO._tail._element",
"def O40u(YKHO):\n if YKHO.__nelems == 0:\n raise BaseException('Empty List')\n ycBG = YKHO.__tail\n if YKHO.__nelems == 1:\n YKHO.__head = YKHO.__tail = None\n else:\n ... | [
"0.7952911",
"0.78545207",
"0.7734324",
"0.76807016",
"0.75608784",
"0.75423265",
"0.7471553",
"0.74297446",
"0.74237794",
"0.73801297",
"0.73182845",
"0.7303615",
"0.71922785",
"0.7168534",
"0.71666306",
"0.7153403",
"0.7095375",
"0.70027524",
"0.6975392",
"0.69069004",
"0.6... | 0.77929187 | 2 |
Add an element to the front of list. | def rMGb(YKHO, tTpl):
YKHO._insert_between(tTpl, YKHO._head, YKHO._head._next) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dZVG(YKHO, ZfUD):\n YKHO.items.insert(0, ZfUD)",
"def j5ff(YKHO, ZfUD):\n YKHO.front = o7DN(ZfUD, YKHO.front)",
"def byB9(YKHO, ZfUD):\n Esd_ = o7DN(ZfUD)\n if YKHO.head is None:\n YKHO.head = Esd_\n else:\n Esd_.next = YKHO.head\n YKHO.head = Esd_\n YKHO.n += 1",
"... | [
"0.79423994",
"0.74610764",
"0.73641574",
"0.73481613",
"0.72543836",
"0.7247341",
"0.72420067",
"0.7226393",
"0.7208336",
"0.7124624",
"0.7069336",
"0.702636",
"0.69689316",
"0.68480355",
"0.68480355",
"0.6838375",
"0.6817686",
"0.6788466",
"0.67804295",
"0.6752576",
"0.6709... | 0.6809373 | 17 |
gets the file, converts into a dictionary, converts the dict to df and returns the dataframe | def zyP0(pmON):
jQ3Z = rLdf.DataFrame(columns=['eyr', 'byr', 'iyr', 'hgt', 'hcl', 'ecl', 'pid', 'cid'])
with open(pmON, 'r') as eHNT:
G6Ug = eHNT.read().split('\n\n')
for or8S in range(len(G6Ug)):
GIN8 = G6Ug[or8S].split('\n')
DmbV = t1S4(GIN8)
DmbV = js81(':', DmbV)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _OdL(VqRE):\n I1iR = [qQXR.loads(eHNT) for eHNT in open(VqRE).readlines()]\n return rLdf.DataFrame(I1iR)",
"def Nwr9(IznC: str) -> rLdf.DataFrame:\n WPdU = rLdf.read_hdf(IznC).to_frame().reset_index(level=[0, 1]).loc[jNhW]\n WPdU['date'] = WPdU.index\n return WPdU",
"def bhfD(l309):\n jQ3... | [
"0.7090648",
"0.68936205",
"0.68233174",
"0.68092513",
"0.6763396",
"0.67625344",
"0.65999454",
"0.659917",
"0.6573855",
"0.6566392",
"0.6560054",
"0.6549813",
"0.65459555",
"0.652101",
"0.647713",
"0.64649713",
"0.6432914",
"0.6427686",
"0.64103186",
"0.6371364",
"0.6334442"... | 0.58499676 | 94 |
Get current config list located in pareto front. | def PaSB(YKHO):
if YKHO.total_propose == 0:
or8S = tuKI.randint(0, len(YKHO.config_list))
Aofo = {'config_id': or8S, 'score': -1 * float('inf'), 'configs': YKHO.config_list[or8S]}
return [Aofo]
else:
CZtx = YKHO.sieve_board.copy()
CZtx = CZtx.dropna()
G77O = q1li.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLY2(YKHO):\n return YKHO.stage.active_configs",
"def TFzX(YKHO):\n if YKHO.degree(YKHO.id) in [0, 1, 2]:\n return YKHO.get_config_j(YKHO.id)\n else:\n return list(set(YKHO.get_config_j(YKHO.id)) | set(YKHO.get_prp_j(YKHO.id)[1]))",
"def PNI3(YKHO):\n b32v = []\n for RcQu in YK... | [
"0.63654137",
"0.6180223",
"0.61520773",
"0.60510564",
"0.60289204",
"0.60077065",
"0.59973365",
"0.59450805",
"0.59295607",
"0.59282494",
"0.5903441",
"0.5851795",
"0.58506054",
"0.5846849",
"0.5841717",
"0.58347124",
"0.58102137",
"0.57993484",
"0.5792543",
"0.5792492",
"0.... | 0.0 | -1 |
Indicates whether the file type is not permitted Returns False if no extension is found | def AIyd(eHNT):
d6pt = eHNT.find('.')
if d6pt < 0:
return False
YBcr = eHNT[d6pt:]
return YBcr in nCYd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tSZB(YKHO):\n if YKHO._allowed_ext:\n if YKHO.get_ext() not in YKHO._allowed_ext:\n return False\n return True",
"def BkLD(YKHO):\n Ux0P = 'somename'\n F4VP = BfDw.is_allowed_file(Ux0P)\n YKHO.assertFalse(F4VP)",
"def P25J(gIsw):\n return gIsw.lower().endswith(Q7AW)",
... | [
"0.83240396",
"0.77942693",
"0.76151675",
"0.7530704",
"0.75259846",
"0.7524645",
"0.7352044",
"0.73514414",
"0.73280877",
"0.7302475",
"0.7295002",
"0.7291362",
"0.7291362",
"0.72735536",
"0.72735536",
"0.72735536",
"0.72735536",
"0.72735536",
"0.72735536",
"0.7272168",
"0.7... | 0.71753895 | 31 |
Returns the delivery count for a message from the rabbit queue. The value is autoset by rabbitmq. | def Ipsu(C9U5):
ev1J = 0
if C9U5.headers and 'x-delivery-count' in C9U5.headers:
ev1J = C9U5.headers['x-delivery-count']
return ev1J + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LiCz(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'max_delivery_count')",
"def FmPT(YKHO, Q64Y):\n T5hu = YKHO.__session.getObjects(_class='queue', _name=Q64Y)\n if len(T5hu):\n return T5hu[0].msgDepth",
"def Vh81(YKHO):\n return YKHO._message_count",
"def HZNe(YKHO):\n ... | [
"0.6709223",
"0.66982794",
"0.66167665",
"0.6444206",
"0.6311343",
"0.6303713",
"0.6274923",
"0.62372905",
"0.6234774",
"0.6212053",
"0.6185387",
"0.6179889",
"0.6149624",
"0.610546",
"0.60466397",
"0.60238516",
"0.59542876",
"0.5885226",
"0.58820045",
"0.58453333",
"0.583301... | 0.6469772 | 3 |
Set the value of the AWSAccessKeyId input for this Choreo. ((required, string) The Access Key ID provided by Amazon Web Services.) | def I8O8(YKHO, BWXx):
super(B3mr, YKHO)._set_input('AWSAccessKeyId', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8O8(YKHO, BWXx):\n super(wy2T, YKHO)._set_input('AWSAccessKeyId', BWXx)",
"def I8O8(YKHO, BWXx):\n super(pPpf, YKHO)._set_input('AWSAccessKeyId', BWXx)",
"def uGYF(YKHO, BWXx):\n super(B3mr, YKHO)._set_input('AWSSecretKeyId', BWXx)",
"def ZluZ(TiI2, xL6j, CGqc=None):\n if TiI2 is None:\n ... | [
"0.7270082",
"0.6704517",
"0.5431787",
"0.4765893",
"0.46070117",
"0.46001327",
"0.45747438",
"0.44713902",
"0.42492792",
"0.4188816",
"0.4122087",
"0.41139",
"0.41126734",
"0.41098735",
"0.40647092",
"0.39668",
"0.39527822",
"0.3917529",
"0.38755238",
"0.38383633",
"0.380253... | 0.71043444 | 1 |
Set the value of the AWSSecretKeyId input for this Choreo. ((required, string) The Secret Key ID provided by Amazon Web Services.) | def uGYF(YKHO, BWXx):
super(B3mr, YKHO)._set_input('AWSSecretKeyId', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uGYF(YKHO, BWXx):\n super(wy2T, YKHO)._set_input('AWSSecretKeyId', BWXx)",
"def uGYF(YKHO, BWXx):\n super(pPpf, YKHO)._set_input('AWSSecretKeyId', BWXx)",
"def xOeT(YKHO, xOeT):\n YKHO._vpc_id = xOeT",
"def I8O8(YKHO, BWXx):\n super(wy2T, YKHO)._set_input('AWSAccessKeyId', BWXx)",
"def I8O8... | [
"0.70131356",
"0.64643115",
"0.546943",
"0.5330544",
"0.51882875",
"0.48380002",
"0.48380002",
"0.48380002",
"0.48380002",
"0.48380002",
"0.48380002",
"0.4723722",
"0.4640567",
"0.4640567",
"0.4640567",
"0.4640567",
"0.4640567",
"0.4640567",
"0.4640567",
"0.4640567",
"0.46405... | 0.7062842 | 0 |
It calculates the energy of the unit cell. | def Nndf(YKHO, SpQe):
if SpQe:
try:
hzm0 = iP1Y(keywords=YKHO.params['gulp_keywords_calculate_energy']['value'], library=YKHO.params['gulp_library']['value'])
YKHO.structure.set_calculator(hzm0)
YKHO.energy = YKHO.structure.get_potential_energy()
YKHO.numberOf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(YKHO):\n YKHO.E = -oyIN.sum(YKHO.phi) + 0.5 * YKHO.mass * oyIN.sqrt(YKHO.v_x ** 2 + YKHO.v_y ** 2)",
"def cVQZ(YKHO):\n qjRn = YKHO.Gmo\n tTpl = YKHO.e\n YKHO.Ec = 0.0\n for YRbF in range(YKHO.nocc):\n for r845 in range(YKHO.nocc):\n for jzdc in range(YKHO.nocc, YKHO.nor... | [
"0.7788216",
"0.7442665",
"0.739711",
"0.73937464",
"0.7345643",
"0.7271584",
"0.7242835",
"0.7219529",
"0.72008675",
"0.71812636",
"0.7119352",
"0.70640564",
"0.7032864",
"0.7003838",
"0.69992054",
"0.6998398",
"0.69614077",
"0.69602054",
"0.6937596",
"0.6913324",
"0.6892815... | 0.0 | -1 |
Return a dictionary of axis specs vars is the list of variables to specify vardict is a variable dictionary object | def T6mf(vars, f2UU):
fg2d = 'SCALE: linear(dim(1), min(%(themin)s), max(%(themax)s))'
Kgpq = 'SCALE: cat(dim(1), include(%s))'
x5NN = {}
As9e = {}
hHDU = [Ty9i for Ty9i in vars if f2UU[Ty9i].VariableLevel == 'scale']
jRCi = [Ty9i for Ty9i in vars if f2UU[Ty9i].VariableLevel != 'scale']
if h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U8Yw(YKHO, vars):\n vars = list(vars)\n hkxX = YKHO.get_variable_values(vars)\n U5bT = U8Lr()\n for SRYB, BWXx in zip(vars, hkxX):\n U5bT[SRYB] = BWXx\n return U5bT",
"def _s6d(YKHO):\n return {WKvO.name: WKvO for WKvO in YKHO.variables}",
"def lWuN(YKHO, kc1W=None):\n if kc1W i... | [
"0.6238873",
"0.62217146",
"0.6213855",
"0.60766494",
"0.6053211",
"0.60239667",
"0.5972697",
"0.594253",
"0.59311473",
"0.5906865",
"0.5894809",
"0.58656734",
"0.5848857",
"0.5814869",
"0.5781686",
"0.5773028",
"0.57529366",
"0.57319224",
"0.57212204",
"0.57167083",
"0.57124... | 0.0 | -1 |
Return list of current split variables and splitmode If no splits, return is [], None | def AM0r():
KALA = m9wj.GetSplitVariableNames()
if len(KALA) == 0:
return ([], None)
else:
SBfM = t_4p.getShow('split', olang='english')
if SBfM.lower().startswith('layer'):
SBfM = 'layered'
else:
SBfM = 'separate'
return (KALA, SBfM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RYsB(YKHO) -> x1iM[int]:\n if YKHO._splits is None:\n YKHO.RefreshStats()\n return YKHO._splits",
"def Bkzl(YKHO) -> x1iM[int]:\n for YRbF in range(0, YKHO._n_features):\n if YKHO._splittable_variables[YRbF] is None:\n YKHO._splittable_variables[YRbF] = Akqa(YKHO.get_column(... | [
"0.6435344",
"0.63009703",
"0.6277274",
"0.6189077",
"0.61751056",
"0.5983746",
"0.59805334",
"0.58524466",
"0.579001",
"0.5751952",
"0.57246643",
"0.5707878",
"0.56781507",
"0.56420803",
"0.56128216",
"0.5612438",
"0.5592472",
"0.55600035",
"0.55032307",
"0.54625386",
"0.544... | 0.77714163 | 0 |
build self attributes from a dictionary d. | def _7Z9(Csk6):
YKHO = Csk6.pop('self')
for mWFP, BWXx in Csk6.items():
setattr(YKHO, mWFP, BWXx)
'Manage a log file'
def FIMM(YKHO, ojRq):
"""logfile is the file name or None"""
YKHO.logfile = ojRq
if YKHO.logfile:
YKHO.file = open(ojRq, 'w')
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ih3S(YKHO, Csk6):\n for G1Hx, Ty9i in Csk6.items():\n if isinstance(G1Hx, int):\n G1Hx = str(G1Hx)\n if isinstance(Ty9i, dict):\n YKHO.set_key(G1Hx, gRy7(Ty9i))\n elif isinstance(Ty9i, list):\n YKHO.set_key(G1Hx, [YRbF if not isinstance(YRbF, dict) else ... | [
"0.735037",
"0.7038443",
"0.6853879",
"0.6852573",
"0.67283714",
"0.6691564",
"0.66080815",
"0.65285236",
"0.65113527",
"0.6495476",
"0.646025",
"0.64567804",
"0.6348805",
"0.6264283",
"0.62199086",
"0.6208103",
"0.6198838",
"0.61819416",
"0.6143907",
"0.6136911",
"0.61367005... | 0.0 | -1 |
Updates the camera location to that which is in the currently activated view unless a vtkOpenGLCamera is specified. | def QdZT(YKHO, WpIo=None):
if WpIo is None:
WpIo = IU4V()
YKHO.orientation = WpIo.GetOrientation()
YKHO.position = WpIo.GetPosition()
YKHO.focus = WpIo.GetFocalPoint()
YKHO.viewup = WpIo.GetViewUp() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nssa(YKHO, _1tc=False):\n YKHO._renderer.set_camera(distance=YKHO._renderer.plotter.camera.distance * 0.9, focalpoint=tuple(YKHO._ras), reset_camera=False)",
"def ml5B(YKHO) -> None:\n YKHO.world.camera.update(cam_base_pos=(0, -3, 0), cam_dist=1.2 * YKHO.world.env_dim, cam_yaw=0, cam_pitch=-60)",
"de... | [
"0.7213129",
"0.70466304",
"0.69922227",
"0.6894294",
"0.6867658",
"0.6810971",
"0.65627605",
"0.6557848",
"0.6522619",
"0.65115494",
"0.65044063",
"0.64349824",
"0.64078206",
"0.6363573",
"0.63012123",
"0.6270064",
"0.6268989",
"0.62382203",
"0.6235302",
"0.6221746",
"0.6177... | 0.6319437 | 14 |
Make an InputLayer for specified data. This method will construct the input layer, as well as the placeholder inside the input layer for specified data. The placeholder will have the shape | def sJUR(mWFP, nPrm, yDqo=None, **dJ1p):
from ..utils import make_placeholder_for
ypOY = make_placeholder_for(mWFP, nPrm, dtype=yDqo, **dJ1p)
vHnr = J9Qm(ypOY, shape=(None,) + nPrm.shape[1:])
return (vHnr, ypOY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I4YG(nPrm):\n KDwe = nPrm.feature_shape()\n with ZylS.name_scope('input'):\n input = ZylS.placeholder(ZylS.float32, [None, *KDwe], name='image')\n UXqs = ZylS.placeholder(ZylS.int32, [None], name='label')\n UVOF = ZylS.constant(1.0, ZylS.float32)\n qzrr = ZylS.placeholder_with... | [
"0.65807885",
"0.64615226",
"0.6299417",
"0.62185526",
"0.6193083",
"0.60677046",
"0.60083956",
"0.5999986",
"0.5987832",
"0.5959069",
"0.593917",
"0.5901465",
"0.5837989",
"0.58227926",
"0.5805698",
"0.58007395",
"0.5784859",
"0.5752199",
"0.57337534",
"0.5709357",
"0.570315... | 0.81865895 | 0 |
Separate a comma or space separated list. | def yCQ4(CK9p: str) -> x1iM[str]:
ljAb = CK9p.replace(',', ' ')
return [str(vIwR) for vIwR in ljAb.split()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aRD2(KCHu):\n return KCHu.split(',')",
"def YYDj(ZfUD, mte6=False):\n if not ZfUD:\n return []\n elif isinstance(ZfUD, list):\n return ZfUD\n elif isinstance(ZfUD, jUrF) and ZfUD.count(','):\n if mte6:\n return [eOtH.strip() for eOtH in ZfUD.split(',')]\n el... | [
"0.7227408",
"0.7016272",
"0.6702853",
"0.66007435",
"0.660072",
"0.65889245",
"0.65438014",
"0.6532363",
"0.6527039",
"0.61547697",
"0.6139123",
"0.6132996",
"0.61135685",
"0.6108641",
"0.6071673",
"0.6064285",
"0.6044566",
"0.604434",
"0.6010855",
"0.6003237",
"0.59881717",... | 0.65598553 | 6 |
Delete pods by `name` or `label_selector` in the namespace `ns`. This action has been deprecated in favor of `terminate_pods`. | def EFE2(mWFP: str=None, PCpl: str='default', TjzQ: str=None, FXSn: Secrets=None):
DshQ('delete_pods', 'terminate_pods')
return KuiE(name_pattern=mWFP, label_selector=TjzQ, ns=PCpl, secrets=FXSn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NvOb(YKHO, _63S, mWFP, TjzQ=''):\n eqVi = None\n try:\n eqVi = YKHO.ocp_pods.delete(namespace=_63S, name=mWFP, label_selector=TjzQ)\n except wrr3 as e:\n bo34.error('Exception deleting pod: %s\\n', tTpl)\n return eqVi",
"def KuiE(TjzQ: str=None, mFdJ: str=None, all: bool=False, ADdS... | [
"0.7676201",
"0.68533",
"0.6325147",
"0.6236356",
"0.6189598",
"0.6068535",
"0.5982249",
"0.59286475",
"0.56464803",
"0.56101894",
"0.5605845",
"0.555608",
"0.5537296",
"0.55309385",
"0.54871714",
"0.54690784",
"0.54166883",
"0.5376403",
"0.53360814",
"0.5322185",
"0.5302754"... | 0.86658823 | 0 |