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 |
|---|---|---|---|---|---|---|
Check if hashed password matches actual password | def sNjs(YKHO, jTXt):
return z8jj(YKHO.password_hash, jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pcP9(jTXt: str, Nzyw: str) -> bool:\n return jf1V.verify(jTXt, Nzyw)",
"def k0jf(jTXt, kg40):\n return N7bY.verify(jTXt, kg40)",
"def sNjs(YKHO, jTXt):\n return z8jj(YKHO.password_hash, jTXt)",
"def sNjs(jTXt, vhgk):\n cgqW = qzFd(jTXt)\n return FXSn.compare_digest(cgqW, vhgk)",
"def Evf... | [
"0.81750333",
"0.81654465",
"0.81029165",
"0.8091229",
"0.80758476",
"0.8071933",
"0.8042396",
"0.8026053",
"0.79251105",
"0.7912885",
"0.79124117",
"0.79056114",
"0.7889633",
"0.78833985",
"0.7860269",
"0.7850504",
"0.78410155",
"0.7839047",
"0.7839047",
"0.78045964",
"0.779... | 0.76697767 | 47 |
Returns the Channels Group name that sockets should subscribe to to get sent messages as they are generated. | def IXKo(YKHO):
return 'room-%s' % YKHO.pk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXKo(YKHO):\n return 'DocumentChat-%s' % YKHO.id",
"def McjM(YKHO):\n return YKHO.__peer_group_name",
"def McjM(YKHO):\n return YKHO.__peer_group_name",
"def XZ_F(YKHO):\n return YKHO.groupname",
"def T_b0(YKHO):\n return cQ68('room-%s' % YKHO.id)",
"def T_b0(YKHO):\n return cQ68('r... | [
"0.670286",
"0.64731055",
"0.64731055",
"0.6465609",
"0.6432694",
"0.6427493",
"0.64241916",
"0.636664",
"0.63124985",
"0.6228399",
"0.6200603",
"0.6188457",
"0.61687344",
"0.61072105",
"0.6095847",
"0.6086761",
"0.6079826",
"0.60528266",
"0.6047977",
"0.6019547",
"0.60041517... | 0.5805881 | 38 |
Calculates b_hat dot n_hat dot product between B field and pfc normal | def q9Sg(YKHO, H_30, RIrd):
UqpO = H_30.centers
Mkmy, epBp, rVnq = bWeC.xyz2cyl(UqpO[:, 0], UqpO[:, 1], UqpO[:, 2])
AkGA = RIrd.Bfield_pointcloud(H_30.ep, Mkmy, epBp, rVnq, H_30.powerDir, normal=True)
H_30.bdotn = oyIN.multiply(H_30.norms, AkGA).sum(1)
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nCVg(YKHO):\n return YKHO.beta * YKHO.x ** YKHO.c",
"def t3GG(EBgd, HpuQ, LEev, MxXY, Xyq7, cWFu, BvMi, rKYz, kV90, dgWh, Pq6G, znmT):\n eHNT = KJI8(p=EBgd, k=LEev, n=MxXY, B=BvMi, alpha=kV90, beta=dgWh) * KJI8(p=HpuQ, k=Xyq7, n=cWFu, B=rKYz, alpha=Pq6G, beta=znmT)\n return eHNT",
"def zDkG(D2Wo):... | [
"0.5910099",
"0.5830607",
"0.58211243",
"0.575009",
"0.5716603",
"0.56439203",
"0.56284285",
"0.5603887",
"0.55969495",
"0.5589043",
"0.5577099",
"0.5535115",
"0.5503791",
"0.5501613",
"0.5489522",
"0.54750264",
"0.54727536",
"0.54674894",
"0.5466516",
"0.54418075",
"0.543410... | 0.0 | -1 |
Initialize layers in the model. | def ZRwK(YKHO):
YKHO.user_emb = U78l.Embedding(YKHO.n_users, YKHO.emb_dim)
YKHO.item_emb = U78l.Embedding(YKHO.n_items, YKHO.emb_dim)
rtOB = 0.1 * YKHO.emb_dim ** (-1 / 2)
YKHO.item_emb.weight.data.uniform_(-rtOB, rtOB)
YKHO.fc_u_1_mu = U78l.Linear(YKHO.user_fea_dim, YKHO.late_dim)
YKHO.fc_u_2_m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2K6(YKHO):\n YKHO._init_predictor()\n if YKHO.use_edge_fusion:\n YKHO._init_edge_module()",
"def J2K6(YKHO) -> None:\n u_2Z, zMVQ = ([], [])\n for YRbF in range(YKHO.num_layers):\n if YRbF == 0:\n u_2Z.append((YKHO.in_channels + 2) * YKHO.feat_channels)\n zMVQ... | [
"0.8239891",
"0.77453595",
"0.76929635",
"0.7691856",
"0.74083835",
"0.73160684",
"0.7300794",
"0.7298106",
"0.7215758",
"0.7089972",
"0.7072843",
"0.7029556",
"0.701253",
"0.69899577",
"0.6969085",
"0.6950599",
"0.6931002",
"0.6918065",
"0.6856529",
"0.6839336",
"0.6790947",... | 0.6933287 | 16 |
Extract some coefficients at specified time_steps, then reshape to [batch_size, 1, 1, 1, 1, ...] for broadcasting purposes. | def JRK4(YKHO, jzdc, a1PO, OOcW):
Ep8u = OOcW[0]
yvT9 = ZylS.gather(jzdc, a1PO)
return ZylS.reshape(yvT9, [Ep8u, 1, 1, 1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aQfz(aWuw, Ep8u, AIZ9):\n ThgB = Ep8u * AIZ9\n PmAP = aWuw // Ep8u\n if PmAP * ThgB > len(aWuw) - 1:\n PmAP -= 1\n EcVT = aWuw[:PmAP * ThgB]\n LVAh = aWuw[1:PmAP * ThgB + 1]\n ALcP = oyIN.split(EcVT, Ep8u)\n HWyC = oyIN.split(LVAh, Ep8u)\n EcVT = oyIN.stack(ALcP)\n LVAh = oyIN... | [
"0.5775115",
"0.5767712",
"0.574617",
"0.5652286",
"0.56421196",
"0.5548883",
"0.54388255",
"0.53910106",
"0.5365416",
"0.5365416",
"0.5360326",
"0.53039104",
"0.5275587",
"0.52648115",
"0.5253503",
"0.51831996",
"0.51735085",
"0.51520014",
"0.51246846",
"0.5121504",
"0.51215... | 0.53687954 | 8 |
Compute the mean and variance of the diffusion posterior q(x_{t1} | x_t, x_0). | def tRF6(YKHO, nIPf, REGG, a1PO):
le69 = ZylS.shape(REGG)
gggm = YKHO._extract(YKHO.posterior_mean_coef1, a1PO, le69) * nIPf + YKHO._extract(YKHO.posterior_mean_coef2, a1PO, le69) * REGG
pnmE = YKHO._extract(YKHO.posterior_variance, a1PO, le69)
rKOq = YKHO._extract(YKHO.posterior_log_variance_clipped, a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EkwR(bktb, nIPf, REGG, a1PO):\n assert nIPf.shape == REGG.shape\n a6Es = AWLP(bktb.posterior_mean_coef1_th, a1PO, REGG.shape)\n jQVG = AWLP(bktb.posterior_mean_coef2_th, a1PO, REGG.shape)\n gggm = a6Es * nIPf + jQVG * REGG\n pnmE = AWLP(bktb.posterior_variance_th, a1PO, REGG.shape)\n rKOq = A... | [
"0.76033735",
"0.6797277",
"0.5624449",
"0.5620169",
"0.5478254",
"0.5458796",
"0.5441514",
"0.54413897",
"0.5436421",
"0.5413955",
"0.54109997",
"0.5375231",
"0.5362174",
"0.53556436",
"0.53188056",
"0.53144085",
"0.5309384",
"0.5283485",
"0.5281063",
"0.52737135",
"0.527350... | 0.65202147 | 2 |
Tests for ValueError when calling train split for mismatched data. | def p38L(YKHO):
with YKHO.assertRaises(Exception):
WXht.MnliDataset(mode='mismatched', split=iJJ6.Split.TRAIN, shuffle_buffer_size=20) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K8vE():\n jQ3Z = rLdf.read_csv('test/sample_data.csv')\n Qb89 = {'test_size': 0.4, 'random_state': 0}\n with trZe.raises(KeyError) as tTpl:\n Lcqa, Z5wO, VJv0, H96n = N66D(jQ3Z, 'orange', Qb89)\n assert str(tTpl.value) == \"'Target column does not exist!'\"",
"def u5pV():\n yp6c = rLdf.... | [
"0.7742193",
"0.6907711",
"0.68839496",
"0.68365985",
"0.6836478",
"0.6819402",
"0.681931",
"0.6620565",
"0.6505697",
"0.6493751",
"0.64889",
"0.64823854",
"0.6431342",
"0.6420219",
"0.63754815",
"0.6370261",
"0.63491505",
"0.63464534",
"0.63374984",
"0.6333485",
"0.6282616",... | 0.83453494 | 0 |
Find the last index of the element in y satistying y[index] <= value | def Vn7Z(LVAh, BWXx):
for YRbF in range(len(LVAh)):
if LVAh[YRbF] <= BWXx:
continue
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(WKvO, a1PO):\n if WKvO < a1PO[0]:\n return 0\n for YRbF in range(len(a1PO) - 1):\n if a1PO[YRbF] <= WKvO < a1PO[YRbF + 1]:\n return YRbF\n return len(a1PO) - 2",
"def NAUR(WKvO, LVAh):\n LVAh = oyIN.asarray(LVAh)\n return LVAh[oyIN.argsort(WKvO)][-1]",
"def Fvbw... | [
"0.67937493",
"0.67068404",
"0.63586396",
"0.63417095",
"0.61478585",
"0.6099739",
"0.60389847",
"0.6016621",
"0.5953189",
"0.59228003",
"0.5883447",
"0.58819",
"0.58767533",
"0.5837053",
"0.58146304",
"0.57767785",
"0.5767922",
"0.5746239",
"0.57416105",
"0.57359403",
"0.572... | 0.78535086 | 1 |
Ensure fuel used for electricity is less than or equal to all fuel. | def xT5z(u19f, x7to):
if not x7to:
trZe.skip('Data validation only works with a live PUDL DB.')
NJdP = u19f.gf_eia923()
LPKV = NJdP.fuel_consumed_for_electricity_mmbtu > NJdP.fuel_consumed_mmbtu
if LPKV.any():
raise ValueError('Fuel consumed for electricity is greater than all fuel consu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FNoa(YKHO):\n return YKHO.maze.checkFuelCost(YKHO.checkpoint, currentLap=YKHO.laps) - YKHO.timeDriving",
"def b77s(YKHO):\n KX63 = YKHO.air_alias.val\n ze5_ = YKHO.fuel_alias.val + '_fg'\n BeK2 = YKHO.fuel_alias.val\n for Z9rn in YKHO.outl:\n if not Z9rn.fluid.val_set[KX63]:\n ... | [
"0.6444219",
"0.6441627",
"0.61490303",
"0.5986662",
"0.5970327",
"0.5928403",
"0.5771021",
"0.5761275",
"0.57404774",
"0.57086694",
"0.56762975",
"0.566221",
"0.56350017",
"0.5601375",
"0.55791706",
"0.55766493",
"0.5532778",
"0.5507706",
"0.55066735",
"0.55004376",
"0.54994... | 0.6567983 | 0 |
allowed_file just checks the acceptable extensions it could be extended to check the fileheader/mimetype | def XT0o(Ux0P):
return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in UWr8 | {
"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 d2kl(YKHO):\n P6bq = yYBj()\n for YBcr in P6bq.allowed_extensions:\n Ux0P = 'test.%s' % YBcr.upper()\n YXxD = 'This file: %s should be allowed, but... | [
"0.8331384",
"0.8038907",
"0.7752258",
"0.77441853",
"0.7700958",
"0.7557096",
"0.7556407",
"0.75495946",
"0.75495946",
"0.75394976",
"0.7538373",
"0.7509076",
"0.7509076",
"0.7509076",
"0.7509076",
"0.7509076",
"0.7509076",
"0.7509076",
"0.7509076",
"0.7509076",
"0.7509076",... | 0.74986845 | 30 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, TxjG):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.808826",
"0.808826",
"0.8054592",
"0.79827315",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, TxjG):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Convert Unicode to ISO885915 | def FLqr(YKHO, BWXx):
try:
BWXx = str(BWXx)
except UnicodeEncodeError:
try:
BWXx = str(BWXx.encode('ISO-8859-15'))
except UnicodeEncodeError:
BWXx = repr(BWXx)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UERS(hGN5):\n if hGN5:\n try:\n return hGN5.decode('ISO-8859-1')\n except UnicodeEncodeError:\n return hGN5",
"def nK4N(YKHO, f_Eq):\n _0SK = {192: 'A', 193: 'A', 194: 'A', 195: 'A', 196: 'A', 197: 'A', 198: 'Ae', 199: 'C', 200: 'E', 201: 'E', 202: 'E', 203: 'E', 204... | [
"0.64690053",
"0.63312465",
"0.63077825",
"0.6245502",
"0.6244205",
"0.6207816",
"0.6176179",
"0.617551",
"0.61568916",
"0.61303437",
"0.61229503",
"0.61117387",
"0.61116296",
"0.59785455",
"0.58468467",
"0.58362985",
"0.58153814",
"0.5777187",
"0.57692367",
"0.574548",
"0.57... | 0.6503412 | 0 |
test if max int is at the end | def lNt2(YKHO):
YKHO.assertEqual(qOmX([5, 3, 4, 8]), 8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def max():\n return r0hN(int.__lt__)",
"def bWsl(YKHO):\n return YKHO.total_max is not None and YKHO.counter > YKHO.total_max",
"def l5uB(YKHO, max):\n if max >= YKHO.valmax:\n if not YKHO.closedmax:\n return YKHO.val[1]\n max = YKHO.valmax\n if max <= YKHO.val[0]:\n ... | [
"0.7111778",
"0.7098122",
"0.6908275",
"0.6865015",
"0.68268317",
"0.6776732",
"0.6682427",
"0.6636053",
"0.65673196",
"0.6526603",
"0.6513317",
"0.6496788",
"0.6392386",
"0.6344829",
"0.63330215",
"0.6320136",
"0.629762",
"0.6280292",
"0.6280074",
"0.62137455",
"0.6206469",
... | 0.7391266 | 0 |
Tests retrieval of book number from a verse quotation string. | def HBN0(YKHO):
YKHO.assertTrue(nPrm.get_book_number('[1 corinthians 1:1]') == 46) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jrn4(YKHO):\n exwG = 0\n if YKHO.input_url[0:36] == 'https://www.goodreads.com/book/show/':\n exwG = 36\n ZXZj = YKHO.input_url[exwG:]\n vwCE = ZbWC.split('[.-]', ZXZj)\n if vwCE[0].isnumeric():\n YKHO.book_id = vwCE[0]\n else:\n raise lZJA('Invali... | [
"0.60786885",
"0.5984838",
"0.596947",
"0.58650225",
"0.5770612",
"0.56993467",
"0.56571424",
"0.5656231",
"0.56519765",
"0.5628832",
"0.55673116",
"0.55636305",
"0.55526054",
"0.54610115",
"0.5377127",
"0.53595996",
"0.5334091",
"0.5327755",
"0.5317583",
"0.52974564",
"0.528... | 0.74326754 | 0 |
Returns the URL for the page that has the given slug. First tries to find a page on the current site. If that fails or a request is not available in the context, then returns the URL for the first page that matches the slug on any site. | def Ejl6(QpfX, s5ru):
B2Dn = None
try:
qpDA = HAC5.find_for_request(QpfX['request'])
FyFa = qpDA
except KeyError:
pass
else:
if FyFa is not None:
B2Dn = I0sS.objects.in_site(FyFa).filter(slug=s5ru).specific().first()
if B2Dn is None:
B2Dn = I0sS.ob... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uTKL(s5ru):\n try:\n B2Dn = I0sS.objects.get(slug=s5ru)\n if B2Dn.__class__ == 'Page':\n B2Dn = B2Dn.get_content_model()\n return B2Dn\n except I0sS.DoesNotExist:\n return None",
"def NMoC(YKHO, QePW, s5ru):\n B2Dn = YKHO.get_queryset().get(slug__iexact=s5ru)\n... | [
"0.6453893",
"0.6332974",
"0.6332974",
"0.60834086",
"0.576487",
"0.56353855",
"0.5359755",
"0.53109944",
"0.5216394",
"0.52059174",
"0.5201767",
"0.51793283",
"0.5172991",
"0.5155636",
"0.51378375",
"0.5098398",
"0.50881994",
"0.50880635",
"0.50581986",
"0.50570333",
"0.5055... | 0.85473657 | 0 |
Add a new department. | def EmAB():
iQG7 = QePW.get_json()
UAju = pRDA(QePW)
if UAju:
return nvUx(400, 'Invalid {} key'.format(', '.join(UAju)))
QdlN = iQG7['department_name']
if rlaj().get_department_name(QdlN):
return nvUx(400, '{} department already exists'.format(QdlN))
geh0 = rlaj(QdlN).save()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EmAB():\n l4un()\n EmAB = True\n L03z = vYPW()\n if L03z.validate_on_submit():\n X5CZ = Mjcm(name=L03z.name.data, description=L03z.description.data)\n try:\n NCls.session.add(X5CZ)\n NCls.session.commit()\n Dwep('You have successsfully added a new depa... | [
"0.8442439",
"0.84389937",
"0.83755225",
"0.80263793",
"0.77682704",
"0.7531482",
"0.6917143",
"0.6597872",
"0.64193815",
"0.64193815",
"0.61667436",
"0.61163116",
"0.60886574",
"0.59767485",
"0.5870337",
"0.5868529",
"0.586335",
"0.58443815",
"0.58430845",
"0.58098835",
"0.5... | 0.84226304 | 2 |
Lists the models in a project. Each project can contain multiple models, and each model can have multiple versions. | def Y_zP(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O6U3(QePW):\n llaM = oPx1.objects.filter(models=1)\n return _1tc(QePW, 'screenshower/app/models_list.html', {'projects': llaM})",
"def list(YKHO, ekCf):\n w2IS = '/project/{}/model'.format(ekCf)\n return YKHO._get(w2IS, IlmE(many=True))",
"def Y_zP(YKHO, QePW, QpfX):\n QpfX.code(uZGC.StatusC... | [
"0.7519762",
"0.71476173",
"0.71187836",
"0.70026606",
"0.68067753",
"0.6618267",
"0.6570434",
"0.65086704",
"0.6296413",
"0.62556523",
"0.6193407",
"0.6188368",
"0.60968745",
"0.6094005",
"0.6039231",
"0.6020384",
"0.60106605",
"0.5959711",
"0.59574103",
"0.59380674",
"0.593... | 0.598522 | 17 |
Creates a new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not... | def er2N(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTS2(**B2fa):\n a89p = {'name': B2fa['dag_run'].conf.get('model_version'), 'description': 'Version 1', 'runtimeVersion': B2fa['dag_run'].conf.get('tf_version'), 'deploymentUri': 'gs://{}/{}'.format(q388, HTT1)}\n xTkX = B2fa['ti']\n zKx6 = Mo5X()\n ZGE9 = B2fa['dag_run'].conf.get('model_name')\n ... | [
"0.7152265",
"0.6172233",
"0.60495305",
"0.6042031",
"0.59646994",
"0.5947145",
"0.59273994",
"0.59142184",
"0.5873052",
"0.58717537",
"0.58502567",
"0.5841808",
"0.583808",
"0.58076006",
"0.58050454",
"0.5780362",
"0.5764824",
"0.57565856",
"0.57472306",
"0.57299185",
"0.571... | 0.0 | -1 |
Lists the models in a project. Each project can contain multiple models, and each model can have multiple versions. | def Y_zP(YKHO, QePW, QpfX):
QpfX.code(uZGC.StatusCode.UNIMPLEMENTED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O6U3(QePW):\n llaM = oPx1.objects.filter(models=1)\n return _1tc(QePW, 'screenshower/app/models_list.html', {'projects': llaM})",
"def list(YKHO, ekCf):\n w2IS = '/project/{}/model'.format(ekCf)\n return YKHO._get(w2IS, IlmE(many=True))",
"def mEmp(YKHO, ekCf, tsEk):\n w2IS = '/project/{}/mo... | [
"0.75202304",
"0.71476585",
"0.7004705",
"0.6806442",
"0.6618428",
"0.6571297",
"0.65108585",
"0.6295878",
"0.62580526",
"0.6195981",
"0.61889285",
"0.61001927",
"0.6094396",
"0.6040078",
"0.6021136",
"0.60127693",
"0.5986853",
"0.5961412",
"0.5958025",
"0.59400886",
"0.59386... | 0.7120121 | 2 |
Creates a new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not... | def er2N(YKHO, QePW, QpfX):
QpfX.code(uZGC.StatusCode.UNIMPLEMENTED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTS2(**B2fa):\n a89p = {'name': B2fa['dag_run'].conf.get('model_version'), 'description': 'Version 1', 'runtimeVersion': B2fa['dag_run'].conf.get('tf_version'), 'deploymentUri': 'gs://{}/{}'.format(q388, HTT1)}\n xTkX = B2fa['ti']\n zKx6 = Mo5X()\n ZGE9 = B2fa['dag_run'].conf.get('model_name')\n ... | [
"0.7152301",
"0.61733466",
"0.60498506",
"0.6042539",
"0.59660697",
"0.5948034",
"0.5927966",
"0.591429",
"0.5873354",
"0.58723736",
"0.58513075",
"0.5843086",
"0.5838488",
"0.5808301",
"0.5804945",
"0.5781222",
"0.5765405",
"0.5755975",
"0.5749772",
"0.57305455",
"0.57142377... | 0.52722883 | 59 |
Lists the models in a project. Each project can contain multiple models, and each model can have multiple versions. | def Y_zP(YKHO, QePW, vYBr, yIVm=None, yxD_=False, s1FE=None):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O6U3(QePW):\n llaM = oPx1.objects.filter(models=1)\n return _1tc(QePW, 'screenshower/app/models_list.html', {'projects': llaM})",
"def list(YKHO, ekCf):\n w2IS = '/project/{}/model'.format(ekCf)\n return YKHO._get(w2IS, IlmE(many=True))",
"def Y_zP(YKHO, QePW, QpfX):\n QpfX.code(uZGC.StatusC... | [
"0.75189304",
"0.7147621",
"0.711825",
"0.70025754",
"0.68075323",
"0.66169643",
"0.6570175",
"0.65082455",
"0.62963736",
"0.6254942",
"0.61934686",
"0.6189197",
"0.609744",
"0.60951823",
"0.6038184",
"0.60202694",
"0.6011324",
"0.5984466",
"0.5959808",
"0.5958112",
"0.593884... | 0.5718758 | 38 |
Creates a new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not... | def er2N(YKHO, QePW, vYBr, yIVm=None, yxD_=False, s1FE=None):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTS2(**B2fa):\n a89p = {'name': B2fa['dag_run'].conf.get('model_version'), 'description': 'Version 1', 'runtimeVersion': B2fa['dag_run'].conf.get('tf_version'), 'deploymentUri': 'gs://{}/{}'.format(q388, HTT1)}\n xTkX = B2fa['ti']\n zKx6 = Mo5X()\n ZGE9 = B2fa['dag_run'].conf.get('model_name')\n ... | [
"0.71513593",
"0.6172707",
"0.604947",
"0.6041613",
"0.5964844",
"0.5947694",
"0.5928091",
"0.59142816",
"0.5873486",
"0.5871111",
"0.5851061",
"0.58425707",
"0.5838233",
"0.5807074",
"0.5804636",
"0.5781103",
"0.5765102",
"0.5756095",
"0.57490045",
"0.5730249",
"0.5714058",
... | 0.0 | -1 |
Retrieves the path associated with the request, this value should be interpreted from the HTTP status line. In case the normalize flag is set a possible absolute URL value should be normalized into an absolute path. This may be required under some proxy related scenarios. | def OyQC(YKHO, NkkI=False):
lpha = YKHO.path_s.split('?', 1)
pmON = lpha[0]
if not NkkI:
return pmON
if not pmON.startswith(('http://', 'https://')):
return pmON
return Q6dV.legacy.urlparse(pmON).path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zo9H(YKHO):\n return uRlK.unquote(YKHO._environ.get('PATH_INFO', ''))",
"def Zo9H(YKHO):\n return uRlK.unquote(YKHO._environ.get('PATH_INFO', ''))",
"def rf9O(YKHO, pmON, PNq_):\n if pmON.startswith('//'):\n pmON = pmON[1:]\n elif pmON.startswith('/'):\n pmON = PNq_.get('SCRIPT_NA... | [
"0.6352182",
"0.6332861",
"0.62579083",
"0.62098044",
"0.60933477",
"0.58995795",
"0.5882821",
"0.5780844",
"0.576928",
"0.5764596",
"0.57186264",
"0.56799084",
"0.56780154",
"0.5670278",
"0.5668836",
"0.5668836",
"0.5668836",
"0.5668836",
"0.5668836",
"0.56070846",
"0.560101... | 0.72945136 | 0 |
Retrieves the (GET) query part of the path, this is considered to be the part of the path after the first question mark. This query string may be used to parse any possible (GET) arguments. | def OPRw(YKHO):
lpha = YKHO.path_s.split('?', 1)
if len(lpha) == 1:
return ''
else:
return lpha[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R7S5(YKHO):\n return YKHO.environ.get('QUERY_STRING') or ''",
"def kHU8(YKHO):\n return SwjJ.parse_qs(YKHO.query_string)",
"def R7S5(YKHO):\n return YKHO._environ.get('QUERY_STRING', '')",
"def R7S5(YKHO):\n return YKHO._environ.get('QUERY_STRING', '')",
"def yuwo(NArs: dict) -> str:\n R... | [
"0.69051117",
"0.6892309",
"0.68822426",
"0.6866961",
"0.66926265",
"0.66888833",
"0.6530996",
"0.6109797",
"0.6061842",
"0.60041565",
"0.59192395",
"0.5823964",
"0.5750093",
"0.572246",
"0.57146496",
"0.5692884",
"0.5640164",
"0.5621033",
"0.56112903",
"0.55927783",
"0.55840... | 0.7912156 | 0 |
Retrieves a new buffer associated with the currently loaded message. In case the current parsing operation is using a file like object for the handling this object it is returned instead. The call of this method is only considered to be safe after the complete message has been received and processed, otherwise and inva... | def fnIa(YKHO, jth9=False, zNig=40960):
YKHO._data_b.seek(0)
if not jth9:
return YKHO._data_b
UEU7 = YKHO.store and YKHO.content_l >= YKHO.file_limit
if UEU7:
fU2d = gbPf.NamedTemporaryFile(mode='w+b')
else:
fU2d = Q6dV.legacy.BytesIO()
try:
while True:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wlyL(YKHO):\n Ol8d = YKHO._message\n return Ol8d",
"def j7NA(YKHO):\n return YKHO.buffer",
"def Tp_g(YKHO):\n YKHO.buffer.seek(0, Hy7s.SEEK_END)\n klGB = YKHO.buffer.tell()\n if klGB < ukwg.calcsize():\n return\n YKHO.buffer.reset()\n qVR5 = None\n QHvp = ukwg()\n PDNL ... | [
"0.69138366",
"0.6224471",
"0.621904",
"0.6160806",
"0.6102108",
"0.6100464",
"0.60426503",
"0.603292",
"0.58393306",
"0.58227175",
"0.57229745",
"0.57031786",
"0.56567866",
"0.56485057",
"0.56435806",
"0.56320405",
"0.5623956",
"0.56170607",
"0.5616117",
"0.5600626",
"0.5593... | 0.58454865 | 8 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
hlel = []
p1Xs = 0
for YRbF in range(0, len(WKvO)):
p1Xs += oyIN.exp(WKvO[YRbF])
for r845 in range(0, len(WKvO)):
hlel.append(oyIN.exp(WKvO[r845]) / p1Xs)
return oyIN.asarray(hlel) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"de... | [
"0.7796294",
"0.7760558",
"0.7759004",
"0.77567077",
"0.76577055",
"0.76577055",
"0.76577055",
"0.76577055",
"0.7585655",
"0.743143",
"0.7407772",
"0.73941606",
"0.7358175",
"0.73174125",
"0.72689486",
"0.72623265",
"0.72614294",
"0.7256868",
"0.723019",
"0.7201743",
"0.72012... | 0.7214918 | 19 |
Checks if a table needs migrations. | def oI49(YKHO, tyNF: str, AyoH: int) -> bool:
sEdP = YKHO.migrations / tyNF
if not sEdP.exists():
if AyoH > 0:
raise bJbP(f'{tyNF} already has {AyoH}, but directory is missing')
else:
return False
for H7lc in sorted(sEdP.iterdir()):
ABDL = int(H7lc.name.split(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JQF6(YKHO):\n if len(YKHO.widgets) > 0:\n return True\n return False",
"def mN_J(YKHO, H7lc: str) -> bool:\n pass",
"def hspH(YKHO):\n if not YKHO.db.get_tables():\n YKHO.create_db_schema()",
"def cs7J():\n from django.db.migrations.autodetector import MigrationAutodetector\n... | [
"0.75188255",
"0.70046073",
"0.69347155",
"0.6870886",
"0.6863478",
"0.67513406",
"0.6719827",
"0.66876537",
"0.64592063",
"0.64373934",
"0.6433889",
"0.6373843",
"0.6346028",
"0.630736",
"0.6303249",
"0.6286018",
"0.62658185",
"0.62607634",
"0.6239242",
"0.62381816",
"0.6233... | 0.7818098 | 0 |
Getter for property 'x', the current estimated state. Example state = observer.x | def WKvO(YKHO):
return RieO(YKHO.particles) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cCsx(YKHO, WKvO):\n raise 'Not implemented yet'\n return BJ1H(YKHO._H, WKvO)",
"def WKvO(YKHO):\n print('getter of x called')\n return YKHO._x",
"def WKvO(YKHO):\n return YKHO.x",
"def WKvO(YKHO):\n return YKHO.__x",
"def WKvO(YKHO):\n return YKHO.__x",
"def WKvO(YKHO):\n retu... | [
"0.7437871",
"0.69751173",
"0.6974672",
"0.68929327",
"0.68929327",
"0.68929327",
"0.68929327",
"0.68929327",
"0.68929327",
"0.68929327",
"0.68929327",
"0.68929327",
"0.68929327",
"0.68929327",
"0.68597376",
"0.6811244",
"0.678111",
"0.678111",
"0.678111",
"0.678111",
"0.6781... | 0.0 | -1 |
Constructs a ResNet50 model. | def uwZX(mL4f=False, **B2fa):
C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST",
"def uwZX(**B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n return C3ST",
"def uwZX(m... | [
"0.7557751",
"0.75548905",
"0.74557495",
"0.7386862",
"0.7386862",
"0.73601955",
"0.7355623",
"0.724254",
"0.724254",
"0.7191571",
"0.7158499",
"0.7101107",
"0.70165247",
"0.69687796",
"0.68687624",
"0.6822836",
"0.6801022",
"0.67330164",
"0.6718147",
"0.67159295",
"0.657444"... | 0.74759895 | 5 |
Returns a nontrainable variable to shadow the given volatile tensor. | def dnF3(BWXx):
return ZylS.get_variable(BWXx.name.replace(':', '__') + '_materialised', shape=BWXx.shape, dtype=BWXx.dtype, trainable=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b1RI(vhpA, jaHd=False):\n if ht2j.cuda.is_available():\n vhpA = vhpA.cuda()\n with ht2j.no_grad():\n return iQnE(vhpA)",
"def LeTJ(WKvO, jaHd=False):\n vhpA = ht2j.cuda.LongTensor(WKvO) if B2eJ else ht2j.LongTensor(WKvO)\n return IoiV.Variable(vhpA, volatile=jaHd)",
"def cJcU(SGX7... | [
"0.7627308",
"0.7106574",
"0.64145434",
"0.60816234",
"0.5804701",
"0.54715586",
"0.5418249",
"0.539004",
"0.5309155",
"0.5309155",
"0.5290877",
"0.52618587",
"0.52462196",
"0.5239365",
"0.5218282",
"0.5216105",
"0.52156144",
"0.5200996",
"0.5168178",
"0.5121673",
"0.5104594"... | 0.52216184 | 14 |
Applies an ND transposeconvolution, respecting two batch dimensions. | def loc0(LVAh, WZcn, M7eq, dvgN, FEri):
Ep8u = ZylS.shape(LVAh)[1]
ZxNn = ZylS.reshape(LVAh, shape=[LVAh.shape[0].value * Ep8u] + LVAh.shape[2:].as_list())
if len(M7eq) == 3:
WKvO = ZylS.nn.conv2d_transpose(ZxNn, WZcn, output_shape=[ZylS.shape(ZxNn)[0]] + M7eq, padding=dvgN, strides=[1] + list(FEri)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8LG(nPrm, WZcn, FEri, dvgN, xaz1):\n qIIy, nrty = OKGN(nPrm, WZcn, FEri, dvgN, xaz1)\n Wc9F, PuC8, _Dqh, TVXH = qIIy.shape\n VZxY, bGrB, CIys, ft8c = nrty.shape\n hMIr, Pggg = FEri\n VZxY = MhEZ(VZxY)\n vZFX = MhEZ(_Dqh - CIys + 1)\n AFmr = MhEZ(TVXH - ft8c + 1)\n Bc4p = fnfy.reduce_ax... | [
"0.72172135",
"0.70820665",
"0.7074432",
"0.69642484",
"0.696414",
"0.68830997",
"0.68635535",
"0.678924",
"0.67143196",
"0.664616",
"0.6642601",
"0.6629471",
"0.6604043",
"0.65688795",
"0.6532393",
"0.6496391",
"0.6460851",
"0.6424462",
"0.64231765",
"0.63720965",
"0.6357736... | 0.66451615 | 10 |
Applies an ND 'transposed average pool', respecting two batch dimensions. | def dyeY(LVAh, M7eq, RndV, FEri):
if RndV is None:
return ZylS.tile(LVAh, [1, 1] + list(M7eq[:-1]) + [1]) / yD3O(M7eq[:-1])
else:
WZcn = ZylS.ones(dtype=LVAh.dtype, shape=list(RndV) + [1, 1])
xMux = M7eq[-1]
WZcn *= ZylS.eye(xMux, dtype=LVAh.dtype)
WZcn /= yD3O(RndV)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CISb(Htse, *qIxc, **B2fa):\n if Htse == 1:\n return U78l.AvgPool1D(*qIxc, **B2fa)\n elif Htse == 2:\n return U78l.AvgPool2D(*qIxc, **B2fa)\n elif Htse == 3:\n return U78l.AvgPool3D(*qIxc, **B2fa)\n raise ValueError(f'unsupported dimensions: {Htse}')",
"def AgI8(vhpA, _0VL, Vh... | [
"0.6734334",
"0.6061922",
"0.60054636",
"0.597525",
"0.5967761",
"0.5946296",
"0.5886707",
"0.588347",
"0.5838529",
"0.5833158",
"0.57395303",
"0.57260096",
"0.56989986",
"0.56856704",
"0.5683967",
"0.56553984",
"0.5620367",
"0.55981886",
"0.5595604",
"0.55709285",
"0.5555832... | 0.61943954 | 1 |
Performs an ND convolutional broadcast. Inserts dimensions into `x`, by duplicating elements with respect to the specified convolution. For example, with a kernel size of 3, padding=`VALID`, and stride of 1, then with respect to each spatial dimension of the convolution (and disregarding batch and channel dimensions fo... | def dLtw(WKvO, RndV, dvgN, FEri):
if len(RndV) == 2:
return xUEM(WKvO, RndV[0], RndV[1], dvgN, FEri)
elif len(RndV) == 1:
return jtYU(WKvO, RndV[0], dvgN, FEri[0])
else:
raise ValueError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jtYU(WKvO, L3LQ, dvgN, _0fC):\n Ep8u = ZylS.shape(WKvO)[0]\n ApQ8 = WKvO.shape[2].value\n u3bp = ZylS.transpose(WKvO, perm=[0, 2, 1])\n u3bp = ZylS.reshape(u3bp, shape=[Ep8u * ApQ8] + WKvO.shape[1:2].as_list() + [1])\n W2ok = ZylS.reshape(ZylS.eye(L3LQ, dtype=WKvO.dtype), shape=[L3LQ, 1, L3LQ])\... | [
"0.739617",
"0.7378831",
"0.67849535",
"0.64083165",
"0.6364226",
"0.63468814",
"0.6322005",
"0.6281084",
"0.6215504",
"0.6207447",
"0.62003803",
"0.6198297",
"0.6194872",
"0.61933964",
"0.6162188",
"0.6125682",
"0.6112873",
"0.6110303",
"0.6095124",
"0.6095097",
"0.6076826",... | 0.741916 | 0 |
Performs a convolutional broadcast. Inserts dimensions into `x`, by duplicating elements with respect to the specified convolution. For example, with a kernel size of 3, padding=`VALID`, and stride of 1, then with respect to the sequence dimension of the convolution (and disregarding batch and channel dimensions for th... | def jtYU(WKvO, L3LQ, dvgN, _0fC):
Ep8u = ZylS.shape(WKvO)[0]
ApQ8 = WKvO.shape[2].value
u3bp = ZylS.transpose(WKvO, perm=[0, 2, 1])
u3bp = ZylS.reshape(u3bp, shape=[Ep8u * ApQ8] + WKvO.shape[1:2].as_list() + [1])
W2ok = ZylS.reshape(ZylS.eye(L3LQ, dtype=WKvO.dtype), shape=[L3LQ, 1, L3LQ])
yIp6 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dLtw(WKvO, RndV, dvgN, FEri):\n if len(RndV) == 2:\n return xUEM(WKvO, RndV[0], RndV[1], dvgN, FEri)\n elif len(RndV) == 1:\n return jtYU(WKvO, RndV[0], dvgN, FEri[0])\n else:\n raise ValueError()",
"def xUEM(WKvO, vlvc, CS3p, dvgN, FEri):\n Ep8u = ZylS.shape(WKvO)[0]\n Ap... | [
"0.75739837",
"0.7477172",
"0.6826824",
"0.63387406",
"0.628475",
"0.6273837",
"0.62682885",
"0.61950314",
"0.61941046",
"0.6162736",
"0.61483854",
"0.61397773",
"0.612571",
"0.6113731",
"0.6099007",
"0.60912323",
"0.60889995",
"0.6087291",
"0.6075883",
"0.6064261",
"0.603419... | 0.74552524 | 2 |
Call the global process tokenizer on the input text. | def wr3U(l5Ny):
global TOK
s2mk = UX8D.tokenize(l5Ny)
hlel = {'words': s2mk.words(), 'offsets': s2mk.offsets(), 'pos': s2mk.pos(), 'lemma': s2mk.lemmas(), 'ner': s2mk.entities()}
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TdB_(l5Ny):\n global tokenizer_tree\n Eerz = mn00.tokenize(l5Ny)\n return Eerz",
"def NInT(YKHO, l5Ny: str) -> x1iM[str]:\n return YKHO.bert_model.tokenize(l5Ny.strip())",
"def EwIn(l5Ny):\n return N3rN(l5Ny)",
"def wr3U(YKHO, l5Ny):\n return YKHO._tokenize(l5Ny)",
"def NfQC(l5Ny):\n ... | [
"0.6961957",
"0.6923934",
"0.6852253",
"0.6836547",
"0.680641",
"0.6799015",
"0.6764396",
"0.67482084",
"0.6709405",
"0.665781",
"0.6634891",
"0.66287875",
"0.6598979",
"0.65882605",
"0.65812737",
"0.65644735",
"0.6561968",
"0.6557754",
"0.6539269",
"0.6502904",
"0.64861816",... | 0.62829274 | 35 |
Total number of elements in this embeddings index. | def UHFx(YKHO):
if YKHO.cluster:
return YKHO.cluster.count()
return super().count() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jND7(YKHO):\n return YKHO['main'].num_embeddings",
"def K7Nc(YKHO):\n return YKHO.__elements_count",
"def zNig(YKHO):\n return sum((LihS.size for LihS in YKHO))",
"def szAg(YKHO):\n return len(YKHO.indexes) // YKHO.batch_size",
"def szAg(YKHO):\n return len(YKHO.indexes) // YKHO.batch_si... | [
"0.77023834",
"0.7690076",
"0.74834734",
"0.74627614",
"0.74627614",
"0.742457",
"0.74203575",
"0.7398445",
"0.73847127",
"0.73847127",
"0.73847127",
"0.73595256",
"0.7356948",
"0.7351534",
"0.73045546",
"0.72687185",
"0.72465086",
"0.72355795",
"0.7231173",
"0.72201246",
"0.... | 0.0 | -1 |
Get center and scale for bounding box from openpose detections. | def BXme(SLBO, Lwtl=1.2, vIyw=0.2):
with open(SLBO, 'r') as eHNT:
BR8K = qQXR.load(eHNT)['people'][0]['pose_keypoints_2d']
BR8K = oyIN.reshape(oyIN.array(BR8K), (-1, 3))
deVW = BR8K[:, -1] > vIyw
WYmK = BR8K[deVW][:, :-1]
hgjH = WYmK.mean(axis=0)
g9dT = (WYmK.max(axis=0) - WYmK.min(axis=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZVXk(LzmR):\n h3cg, BQGg, Z3uP, bYzl = [oyIN.squeeze(YRbF) for YRbF in oyIN.split(LzmR, 4, 0)]\n TVTK = oyIN.subtract(bYzl, BQGg)\n H2v2 = oyIN.subtract(Z3uP, h3cg)\n Wjb0 = oyIN.add(h3cg, oyIN.multiply(H2v2, 0.5))\n KQji = oyIN.add(BQGg, oyIN.multiply(TVTK, 0.5))\n return (Wjb0, KQji, H2v2, ... | [
"0.73236746",
"0.6753173",
"0.66572845",
"0.6613024",
"0.6600221",
"0.65987784",
"0.65518796",
"0.654011",
"0.64218354",
"0.64218354",
"0.6413975",
"0.6408511",
"0.6398193",
"0.6388485",
"0.6388485",
"0.63749236",
"0.6360393",
"0.63589513",
"0.6344789",
"0.6300731",
"0.629925... | 0.70432717 | 2 |
Set fake env to make sure we don't hit AWS services. | def pXVu(Ehsq):
Ehsq.setenv('AWS_ACCESS_KEY_ID', 'jqt')
Ehsq.setenv('AWS_SECRET_ACCESS_KEY', 'rde')
Ehsq.delenv('AWS_PROFILE', raising=False)
Ehsq.setenv('AWS_CONFIG_FILE', '/tmp/noconfigheere')
Ehsq.setenv('AWS_SHARED_CREDENTIALS_FILE', '/tmp/noconfighereeither')
Ehsq.setenv('GDAL_DISABLE_READD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO) -> None:\n YKHO.s3 = iVGz.client('s3')\n try:\n YKHO.prod_env = Hy7s.environ['TEST_ENV'] == 'prod'\n except KeyError:\n YKHO.prod_env = True",
"def hHFa(YKHO, sEAN: yaenv.Env):\n from os import environ\n assert 'EMAIL' not in environ\n sEAN.setenv()\n assert 'EMA... | [
"0.7332453",
"0.6815627",
"0.6796376",
"0.66834646",
"0.6626177",
"0.6564563",
"0.65522265",
"0.64684373",
"0.64286023",
"0.6426695",
"0.6397237",
"0.6397237",
"0.6397237",
"0.6392945",
"0.63777405",
"0.63777405",
"0.63760763",
"0.6359781",
"0.63567847",
"0.6331096",
"0.63063... | 0.79133147 | 0 |
Should raise an error on invalid resampling method name. | def zBxw():
X7zS = [-6574807.42497772, 12210356.646387195, -6261721.357121638, 12523442.714243278]
with trZe.raises(KeyError):
with B9Vf.open(QwNi) as fY90:
N5Pj.part(fY90, X7zS, 16, 16, resampling_method='jacques') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xxtf():\n with zuVY.open_rasterio(D8Qu) as zZcM:\n try:\n XQzp.raster(zZcM, upsample_method='santaclaus', downsample_method='toothfairy')\n except ValueError:\n pass\n else:\n assert False\n try:\n XQzp.raster(zZcM, upsample_method='hon... | [
"0.62315965",
"0.61740196",
"0.60384303",
"0.5932689",
"0.5796109",
"0.5737994",
"0.5676407",
"0.55802625",
"0.5508727",
"0.54694855",
"0.54640245",
"0.541562",
"0.5394609",
"0.5378731",
"0.53738093",
"0.53629243",
"0.5358838",
"0.53530455",
"0.53521466",
"0.53516126",
"0.534... | 0.52948326 | 25 |
make tensor and pad 0 encoded = [split, batch, input_len, dim] | def ynj6(Emd4, ERVO, eF8P, g1dP):
mzTz = []
vrfv = len(ERVO)
Ep8u = len(ERVO[0])
for Fg_i in range(Ep8u):
W2k3 = []
for pI5P in range(vrfv):
W2k3.append(ERVO[pI5P][Fg_i])
W2k3 = ht2j.cat(W2k3, dim=0)
jPDU = g1dP - eF8P[Fg_i]
mzTz.append(vuvg.pad(W2k3, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xso3(input, zNig):\n nyWF = ZylS.concat([input[:, :, -zNig[1]:, :], input, input[:, :, 0:zNig[1], :]], 2)\n nyWF = ZylS.concat([nyWF[:, -zNig[0]:, :, :], nyWF, nyWF[:, 0:zNig[0], :, :]], 1)\n return nyWF",
"def YczY(Q6uT):\n Q6uT = ZylS.cast(ZylS.math.equal(Q6uT, 0), ZylS.float32)\n return Q6u... | [
"0.7168431",
"0.6933274",
"0.69023794",
"0.677489",
"0.66929907",
"0.6685743",
"0.6667171",
"0.66134125",
"0.6586869",
"0.65386343",
"0.6515577",
"0.65124947",
"0.65121406",
"0.6496977",
"0.6455757",
"0.64378685",
"0.64378685",
"0.6421731",
"0.6298301",
"0.62605935",
"0.62471... | 0.61118 | 30 |
Transform Matplotlib colormap into Plotly colormap | def v40n(YDzg: Optional[Union[str, matplotlib.colors.ListedColormap]]='tab10', xYQh: Optional[int]=10):
if isinstance(YDzg, str):
YDzg = I8kJ.cm.get_cmap(YDzg)
MKlR = 1.0 / (xYQh - 1)
j3q7 = []
for G1Hx in range(xYQh):
Nq1b = list(map(oyIN.uint8, oyIN.array(YDzg(G1Hx * MKlR)[:3]) * 255))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zbIi(RpU_, MYQr, NXpY, MynD, n4wC):\n if MynD >= n4wC:\n raise Bx6I.PlotlyError('Incorrect relation between vmin and vmax. The vmin value cannot be bigger than or equal to the value of vmax.')\n if len(MYQr) == 1:\n eNzL = MYQr[0]\n eNzL = ZfWE.convert_to_RGB_255(eNzL)\n eNzL ... | [
"0.65724",
"0.65332764",
"0.6447294",
"0.64290255",
"0.6391634",
"0.62451035",
"0.61824507",
"0.6154128",
"0.6138293",
"0.60796845",
"0.60360837",
"0.60360837",
"0.6029238",
"0.60185945",
"0.60093755",
"0.6007284",
"0.6004354",
"0.59903765",
"0.59872556",
"0.59872556",
"0.597... | 0.68485594 | 0 |
Construct maps from the given keys to the colors/markers. Used for deterministic behaviour of visualisation. | def WP0h(sjXb: List[Union[str, int]], Bcwd: Optional[str]='tab10', QR6r: Optional[int]=10, Wc5J: Optional[List[str]]=('circle', 'diamond', 'square')):
sjXb = sorted(sjXb)
YDzg = dict(zip(sjXb, uuEx.color_palette(Bcwd, QR6r) * (len(sjXb) // QR6r + 1)))
sfEn = dict(zip(sjXb, list(Hs6x.chain(*[[r8hN] * QR6r fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SRxb(YKHO):\n OrFa = oyIN.unique(YKHO.out_labels)\n YDzg = {}\n for bozA in OrFa:\n YDzg[bozA] = YKHO._random_color()\n return YDzg",
"def LnlW(amsI, H5ew):\n tn62 = amsI.uns.get(f'{H5ew}_colors', YYnn(len(amsI.obs[H5ew].unique())))\n b05n = amsI.obs[H5ew].astype('category') if amsI.... | [
"0.69599205",
"0.640423",
"0.6117686",
"0.59936094",
"0.59536654",
"0.5833786",
"0.5821252",
"0.5815777",
"0.5723985",
"0.56918645",
"0.5681657",
"0.56408405",
"0.563965",
"0.56388086",
"0.5632547",
"0.56303847",
"0.5629933",
"0.56217057",
"0.5581909",
"0.5577788",
"0.5553031... | 0.7205978 | 0 |
Applies function given by f to each element in L | def dRO0(aPd6, eHNT):
Aofo = []
for YRbF in aPd6:
Aofo.append(eHNT(YRbF))
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yH8O(aPd6, eHNT):\n for YRbF in range(len(aPd6)):\n aPd6[YRbF] = eHNT(aPd6[YRbF])",
"def j0kR(eHNT, vC9B):\n return [eHNT(ZfUD) for ZfUD in vC9B]",
"def map(YKHO, eHNT):\n if YKHO.is_empty():\n pass\n else:\n DumB = []\n DumB.append(eHNT(YKHO._first))\n map(eH... | [
"0.85692227",
"0.74327064",
"0.70718676",
"0.68481755",
"0.6778735",
"0.6759941",
"0.66112095",
"0.66100043",
"0.6410875",
"0.63832694",
"0.63762385",
"0.63760364",
"0.63733613",
"0.63573843",
"0.6321588",
"0.62920886",
"0.6284133",
"0.62467164",
"0.62180007",
"0.62067175",
"... | 0.8319075 | 1 |
Turn LEDs on or off. | def bamM(YKHO, QTBn):
if QTBn:
QTBn = b'\x01'
else:
QTBn = b'\x00'
tO9_ = b'\r' + QTBn
YKHO.__bt.write(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LciP(YKHO):\n d6Md = 0\n while d6Md != '':\n d6Md = input('Enter 0 or 1 to turn LED on or off or enter to exit.\\n')\n if d6Md == '0':\n YKHO.board.write(b'0')\n ITS7.sleep(1)\n elif d6Md == '1':\n YKHO.board.write(b'1')\n ITS7.sleep(1)\n ... | [
"0.7898586",
"0.77198344",
"0.7686523",
"0.76681954",
"0.7450158",
"0.74132526",
"0.7342205",
"0.7300674",
"0.722577",
"0.7191344",
"0.71418",
"0.7124784",
"0.7112155",
"0.7111464",
"0.70933473",
"0.7068067",
"0.7063544",
"0.70405066",
"0.70400655",
"0.7024834",
"0.6937135",
... | 0.6688635 | 40 |
Filters a DataFrame for columns that contain the given strings. | def D_iG(YKHO, a4gM=True, **B2fa):
jQ3Z = YKHO.copy()
for G1Hx, Ty9i in list(B2fa.items()):
Ty9i = [Ty9i] if type(Ty9i) != list else Ty9i
if a4gM:
jQ3Z = jQ3Z[jQ3Z[G1Hx].str.contains('|'.join(Ty9i), flags=ZbWC.IGNORECASE).fillna(False)]
else:
jQ3Z = jQ3Z[jQ3Z[G1Hx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter(YKHO, Leoh):\n if Leoh is None:\n Leoh = []\n Aofo = mOZS()\n for rdlD in YKHO.rows:\n kUBT = True\n for KCHu in Leoh:\n if not rdlD.filter(KCHu):\n kUBT = False\n break\n if kUBT:\n Aofo.append(rdlD)\n return Ao... | [
"0.61328924",
"0.6131588",
"0.60926986",
"0.603086",
"0.5966695",
"0.58889735",
"0.5872369",
"0.58189064",
"0.5778242",
"0.57670844",
"0.5731103",
"0.5667375",
"0.56571996",
"0.5652029",
"0.56039464",
"0.55994296",
"0.55754715",
"0.5506112",
"0.54598683",
"0.5448714",
"0.5423... | 0.49854007 | 50 |
Sets the primary_economic_activity of this JobDescriptionContextRequestAllOf. | def ixOx(YKHO, ixOx):
if ixOx is not None and len(ixOx) > 1024:
raise ValueError('Invalid value for `primary_economic_activity`, length must be less than or equal to `1024`')
YKHO._primary_economic_activity = ixOx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ytgm(YKHO, Ytgm):\n YKHO._primary_election = Ytgm",
"def CUVi(YKHO, CUVi):\n YKHO._primary_lead_source = CUVi",
"def Nl14(YKHO, Nl14):\n YKHO._primary_contact_phone = Nl14",
"def Mk0t(YKHO):\n YKHO._Primary_app_info = YKHO._fetch_app_info(YKHO._Primary)",
"def IhjF(YKHO, IhjF):\n YKHO._p... | [
"0.52004",
"0.49111032",
"0.48710233",
"0.48625687",
"0.47675797",
"0.47590855",
"0.47525674",
"0.4524723",
"0.4519451",
"0.44715852",
"0.4390619",
"0.4367265",
"0.42634842",
"0.42423007",
"0.4221072",
"0.41900137",
"0.4180859",
"0.41716406",
"0.41714182",
"0.4157513",
"0.414... | 0.7756644 | 0 |
Sets the assessment of this JobDescriptionContextRequestAllOf. | def jCeH(YKHO, jCeH):
if jCeH is not None and len(jCeH) > 1024:
raise ValueError('Invalid value for `assessment`, length must be less than or equal to `1024`')
YKHO._assessment = jCeH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B3Y9(YKHO):\n if not YKHO.has_assessment:\n raise bfHs()\n else:\n raise e6xC()",
"def T6en(YKHO) -> h8nf[qe4Y.Input['VulnerabilityAssessmentNoteArgs']]:\n return qe4Y.get(YKHO, 'vulnerability_assessment')",
"def fHNa(YKHO, QePW, QpfX):\n QpfX.code(uZGC.StatusCode.UNIMPLEMENTED)",... | [
"0.4775016",
"0.47305885",
"0.46765465",
"0.4601337",
"0.45842037",
"0.45837104",
"0.45837104",
"0.45413208",
"0.45093307",
"0.4468123",
"0.4346532",
"0.43303007",
"0.43201378",
"0.43128625",
"0.43118367",
"0.4302758",
"0.42991123",
"0.42991123",
"0.428888",
"0.42660096",
"0.... | 0.5692812 | 0 |
Sets the citizenship_requirement of this JobDescriptionContextRequestAllOf. | def q1st(YKHO, q1st):
if q1st is not None and len(q1st) > 1024:
raise ValueError('Invalid value for `citizenship_requirement`, length must be less than or equal to `1024`')
YKHO._citizenship_requirement = q1st | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TYoV(YKHO, TYoV):\n YKHO._defect_review_requested_by = TYoV",
"def ATR0(YKHO, ATR0):\n YKHO._agent_requirement = ATR0",
"def yeqj(YKHO, yeqj):\n YKHO._review_requested_by = yeqj",
"def AIeZ(YKHO, gGAT, h0kv, jeGQ, LlSq=True):\n tauV = 'UPDATE CurriculumListings SET required = %s WHERE curricu... | [
"0.54451734",
"0.4874467",
"0.48638797",
"0.4711454",
"0.44914392",
"0.44771138",
"0.43549186",
"0.4337436",
"0.42783397",
"0.42590123",
"0.42405516",
"0.42314374",
"0.42004254",
"0.4178589",
"0.41570076",
"0.41505945",
"0.41490912",
"0.41424403",
"0.41424403",
"0.41424403",
... | 0.71819764 | 0 |
Sets the physical_requirement of this JobDescriptionContextRequestAllOf. | def jcla(YKHO, jcla):
if jcla is not None and len(jcla) > 1024:
raise ValueError('Invalid value for `physical_requirement`, length must be less than or equal to `1024`')
YKHO._physical_requirement = jcla | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bhgc(YKHO, bhgc):\n YKHO._physical_capacity = bhgc",
"def ATR0(YKHO, ATR0):\n YKHO._agent_requirement = ATR0",
"def Lfbt(YKHO):\n for hkS8 in YKHO.parm_list:\n hkS8.physical(hkS8)",
"def M3ph(YKHO, M3ph):\n if M3ph is not None and len(M3ph) > 1024:\n raise ValueError('Invalid va... | [
"0.5401404",
"0.5027166",
"0.48533106",
"0.47448742",
"0.47442624",
"0.47410616",
"0.4720671",
"0.4521448",
"0.45031726",
"0.44827726",
"0.4472766",
"0.44715753",
"0.4449486",
"0.4449486",
"0.4449486",
"0.4449486",
"0.44318417",
"0.44022742",
"0.44022742",
"0.43669388",
"0.43... | 0.72584295 | 0 |
Sets the sensory_requirement of this JobDescriptionContextRequestAllOf. | def M3ph(YKHO, M3ph):
if M3ph is not None and len(M3ph) > 1024:
raise ValueError('Invalid value for `sensory_requirement`, length must be less than or equal to `1024`')
YKHO._sensory_requirement = M3ph | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aE0B(YKHO, aE0B):\n if aE0B is not None and len(aE0B) > 1024:\n raise ValueError('Invalid value for `security_clearance_requirement`, length must be less than or equal to `1024`')\n YKHO._security_clearance_requirement = aE0B",
"def ATR0(YKHO, ATR0):\n YKHO._agent_requirement = ATR0",
"def ... | [
"0.49938238",
"0.48687464",
"0.46444365",
"0.4167156",
"0.4165337",
"0.41506544",
"0.4145323",
"0.40677294",
"0.40638238",
"0.40523595",
"0.40035492",
"0.3987891",
"0.3944958",
"0.393707",
"0.39341837",
"0.39286506",
"0.3924443",
"0.38970298",
"0.38757434",
"0.38683814",
"0.3... | 0.70855945 | 0 |
Sets the employer_identifier of this JobDescriptionContextRequestAllOf. | def l9Di(YKHO, l9Di):
if l9Di is not None and len(l9Di) > 1024:
raise ValueError('Invalid value for `employer_identifier`, length must be less than or equal to `1024`')
YKHO._employer_identifier = l9Di | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VJtm(YKHO, VJtm):\n if VJtm is not None and len(VJtm) > 1024:\n raise ValueError('Invalid value for `employer_email`, length must be less than or equal to `1024`')\n YKHO._employer_email = VJtm",
"def w1ea(YKHO, w1ea):\n if w1ea is not None and len(w1ea) > 1024:\n raise ValueError('Inv... | [
"0.56043965",
"0.53781736",
"0.5303008",
"0.52336293",
"0.5184128",
"0.47257355",
"0.46922922",
"0.46826544",
"0.4611696",
"0.45970237",
"0.45706165",
"0.4510113",
"0.4491151",
"0.44650126",
"0.4457986",
"0.44269034",
"0.44114015",
"0.43897554",
"0.43610942",
"0.43546396",
"0... | 0.65725017 | 0 |
Sets the salary_currency of this JobDescriptionContextRequestAllOf. | def QHXb(YKHO, QHXb):
if QHXb is not None and len(QHXb) > 1024:
raise ValueError('Invalid value for `salary_currency`, length must be less than or equal to `1024`')
YKHO._salary_currency = QHXb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VIXL(YKHO, VIXL):\n if YKHO.local_vars_configuration.client_side_validation and VIXL is not None and (len(VIXL) > 6000):\n raise ValueError('Invalid value for `currency`, length must be less than or equal to `6000`')\n if YKHO.local_vars_configuration.client_side_validation and VIXL is not None an... | [
"0.52866304",
"0.5194331",
"0.510493",
"0.5103563",
"0.5103563",
"0.5103563",
"0.5103563",
"0.49985954",
"0.49877104",
"0.49812013",
"0.49699584",
"0.49583578",
"0.4922342",
"0.4811435",
"0.47699925",
"0.4745807",
"0.47293848",
"0.46842438",
"0.46046713",
"0.45230016",
"0.451... | 0.6529121 | 0 |
Sets the salary_maximum of this JobDescriptionContextRequestAllOf. | def pc7x(YKHO, pc7x):
if pc7x is not None and len(pc7x) > 1024:
raise ValueError('Invalid value for `salary_maximum`, length must be less than or equal to `1024`')
YKHO._salary_maximum = pc7x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DMy0(YKHO, jMXx):\n if jMXx <= 0:\n raise ValueError('Argument: max_empirical_loss must be greater than 0')\n YKHO.__max_empirical_loss = jMXx",
"def tpg7(YKHO, tpg7):\n if tpg7 is None:\n raise ValueError('Invalid value for `max_sale_qty`, must not be `None`')\n YKHO._max_sale_qty ... | [
"0.61574924",
"0.5879562",
"0.5703928",
"0.5677748",
"0.5623907",
"0.5497425",
"0.54710513",
"0.54564434",
"0.5405305",
"0.5383752",
"0.53431404",
"0.5313358",
"0.52686906",
"0.52686906",
"0.52686906",
"0.5264547",
"0.5256481",
"0.5256481",
"0.5236207",
"0.52206206",
"0.51594... | 0.7337637 | 0 |
Sets the job_benefits of this JobDescriptionContextRequestAllOf. | def yJqm(YKHO, yJqm):
YKHO._job_benefits = yJqm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mOHN(YKHO, mOHN):\n YKHO._beneficiaries = mOHN",
"def QUZ6(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')",
"def jDOJ(YKHO, J719, vaWC=None, wdCM=None):\n muwo = {'priority... | [
"0.50720155",
"0.45322216",
"0.42959034",
"0.4230474",
"0.4206136",
"0.41496986",
"0.41391128",
"0.4093048",
"0.4042067",
"0.40382499",
"0.40351143",
"0.4027916",
"0.39981654",
"0.39585888",
"0.39580917",
"0.39528805",
"0.39185694",
"0.38774627",
"0.38695496",
"0.38427112",
"... | 0.7750126 | 0 |
Sets the employment_agreement of this JobDescriptionContextRequestAllOf. | def f8ku(YKHO, f8ku):
if f8ku is not None and len(f8ku) > 1024:
raise ValueError('Invalid value for `employment_agreement`, length must be less than or equal to `1024`')
YKHO._employment_agreement = f8ku | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mGiU(YKHO, mGiU):\n YKHO._acquirer_industry = mGiU",
"def ndOA(YKHO, ndOA):\n YKHO._regulatory_body_approved_by = ndOA",
"def aflT(YKHO, Jm01, As7X, OPrk):\n YKHO.salary = Jm01\n YKHO.employee_contribution = As7X\n YKHO.employer_match_tier_match_list = OPrk\n YKHO.limit_salary()",
"def ... | [
"0.47415894",
"0.47089148",
"0.47043687",
"0.46605262",
"0.46447036",
"0.4637339",
"0.4449199",
"0.44440517",
"0.4437061",
"0.4372287",
"0.43295565",
"0.4282805",
"0.4271226",
"0.4249579",
"0.42450115",
"0.42335752",
"0.42131394",
"0.41512477",
"0.4144001",
"0.40996376",
"0.4... | 0.739457 | 0 |
Sets the employer_name of this JobDescriptionContextRequestAllOf. | def a17Y(YKHO, a17Y):
if a17Y is not None and len(a17Y) > 1024:
raise ValueError('Invalid value for `employer_name`, length must be less than or equal to `1024`')
YKHO._employer_name = a17Y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VJtm(YKHO, VJtm):\n if VJtm is not None and len(VJtm) > 1024:\n raise ValueError('Invalid value for `employer_email`, length must be less than or equal to `1024`')\n YKHO._employer_email = VJtm",
"def l9Di(YKHO, l9Di):\n if l9Di is not None and len(l9Di) > 1024:\n raise ValueError('Inv... | [
"0.6017268",
"0.59969676",
"0.55913675",
"0.55032134",
"0.53288186",
"0.52741915",
"0.504336",
"0.502656",
"0.4876537",
"0.48456147",
"0.4816574",
"0.4805142",
"0.47734928",
"0.47541755",
"0.47472158",
"0.46661016",
"0.46568576",
"0.46115133",
"0.4565898",
"0.45384514",
"0.45... | 0.6638817 | 0 |
Sets the employer_overview of this JobDescriptionContextRequestAllOf. | def ZAlT(YKHO, ZAlT):
if ZAlT is not None and len(ZAlT) > 1024:
raise ValueError('Invalid value for `employer_overview`, length must be less than or equal to `1024`')
YKHO._employer_overview = ZAlT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VJtm(YKHO, VJtm):\n if VJtm is not None and len(VJtm) > 1024:\n raise ValueError('Invalid value for `employer_email`, length must be less than or equal to `1024`')\n YKHO._employer_email = VJtm",
"def Q4aU(YKHO):\n print('OVERVIEW OF EMPLOYEES\\n')\n JYnW = YKHO.llapi.get_employee_overview... | [
"0.49275213",
"0.46682078",
"0.46544766",
"0.45172006",
"0.4482902",
"0.44720706",
"0.44555733",
"0.44163364",
"0.44030878",
"0.4249515",
"0.41948298",
"0.41350654",
"0.4097332",
"0.40421313",
"0.4035888",
"0.39962363",
"0.39602488",
"0.3956499",
"0.39518207",
"0.39419496",
"... | 0.7427993 | 0 |
Sets the employer_phone of this JobDescriptionContextRequestAllOf. | def mRzJ(YKHO, mRzJ):
if mRzJ is not None and len(mRzJ) > 1024:
raise ValueError('Invalid value for `employer_phone`, length must be less than or equal to `1024`')
YKHO._employer_phone = mRzJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bWtk(YKHO, bWtk):\n if YKHO.local_vars_configuration.client_side_validation and bWtk is None:\n raise ValueError('Invalid value for `phone`, must not be `None`')\n YKHO._phone = bWtk",
"def yJYn(YKHO, yJYn):\n YKHO._personal_phone = yJYn",
"def x3_F(YKHO, bWtk):\n YKHO.phone = bWtk\n ... | [
"0.5575617",
"0.5452",
"0.5418663",
"0.54066914",
"0.5392402",
"0.5316977",
"0.5316977",
"0.5316977",
"0.5316977",
"0.5316977",
"0.5306605",
"0.5219177",
"0.5205081",
"0.5156381",
"0.51536536",
"0.49455485",
"0.49455485",
"0.49455485",
"0.49455485",
"0.49125618",
"0.48797572"... | 0.71209013 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, D0DD):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Returns the first time larger or equal to the given start time where the level is at least the specified value. | def cf4N(YKHO, ITS7, ABDL):
if YKHO.get(ITS7) >= ABDL:
return ITS7
p6S0 = YKHO._trace.bisect_right(ITS7)
for a1PO, hOrn in YKHO._trace.items()[p6S0:]:
if hOrn >= ABDL:
return a1PO
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oFt5(YKHO, ITS7, ABDL):\n if YKHO.get(ITS7) <= ABDL:\n return ITS7\n p6S0 = YKHO._trace.bisect_right(ITS7)\n for a1PO, hOrn in YKHO._trace.items()[p6S0:]:\n if hOrn <= ABDL:\n return a1PO\n return None",
"def jdrB(hkxX: list[any], gqRb: int, ODP9: int, pan_: int) -> any:\... | [
"0.6188587",
"0.5776933",
"0.5651355",
"0.5577277",
"0.55742955",
"0.55452776",
"0.54344946",
"0.5434114",
"0.5393916",
"0.53711313",
"0.5356693",
"0.53378373",
"0.5319394",
"0.53176427",
"0.5288028",
"0.52819675",
"0.5280428",
"0.5277755",
"0.5275217",
"0.52566934",
"0.52445... | 0.6784723 | 0 |
Initialize the neural network base object. | def FIMM(YKHO):
YKHO.tag = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qhd5(YKHO):\n raise NotImplementedError",
"def FIMM(YKHO, Zt8E, yB6h=None, MJAh=None, **B2fa):\n assert len(Zt8E) > 1, 'At least one input layer and one output layer is needed'\n uPrp = IT1r.getSizeOfWeightVector(Zt8E)\n if yB6h is None:\n YKHO.weights = oyIN.random.uniform(-1 / oyIN.sqrt(... | [
"0.74598694",
"0.73657024",
"0.7321491",
"0.7273744",
"0.7228517",
"0.72096306",
"0.7152376",
"0.7128686",
"0.7100651",
"0.70793223",
"0.7075344",
"0.7063281",
"0.7029389",
"0.70210046",
"0.7015082",
"0.69983226",
"0.6995061",
"0.6986615",
"0.69840974",
"0.69425136",
"0.69419... | 0.0 | -1 |
return independent parameters the shared tensor variables in output {y}'s expression. | def XP5J(YKHO):
return qOWv.parms(YKHO.y(0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cjU4(YKHO):\n return YKHO._independent_variables",
"def TxP0(YKHO):\n return YKHO.x",
"def Sq9r(YKHO):\n return YKHO._independent_variable",
"def tLNv(LVAh):\n\n def DI5Q(tTpl):\n return type(tTpl) is Kt_s.TensorVariable and str(tTpl).startswith('dot')\n return gwhp(LVAh, DI5Q)",
... | [
"0.6522822",
"0.61015815",
"0.58786994",
"0.5769992",
"0.5636943",
"0.559653",
"0.5422493",
"0.540948",
"0.5399706",
"0.5384896",
"0.53472024",
"0.53472024",
"0.5332073",
"0.53269994",
"0.53194153",
"0.52976894",
"0.52823526",
"0.5266379",
"0.5264958",
"0.52520144",
"0.523183... | 0.52563226 | 19 |
Make left side empty | def nOv3(YKHO, tTpl=0):
YKHO.make_empty_side(u'left') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nsZ8(YKHO, HEZd):\n if HEZd == u'right':\n for G1Hx, Ty9i in YKHO.d.items():\n ZfUD = Ty9i[0]\n h1Xx = ''\n YKHO.d[G1Hx] = [ZfUD, h1Xx]\n if HEZd == u'left':\n for G1Hx, Ty9i in YKHO.d.items():\n ZfUD = ''\n h1Xx = Ty9i[1]\n ... | [
"0.7694751",
"0.70511174",
"0.65827656",
"0.64382553",
"0.63246334",
"0.6298448",
"0.6247285",
"0.6245814",
"0.6232546",
"0.62268543",
"0.62219054",
"0.62108165",
"0.61787665",
"0.6159617",
"0.61470133",
"0.6133733",
"0.61227196",
"0.6113509",
"0.61130035",
"0.61130035",
"0.6... | 0.8324015 | 0 |
Wraps hidden states in new Tensors, to detach them from their history. | def IOWm(MKlR):
if isinstance(MKlR, ht2j.Tensor):
return MKlR.detach()
else:
return tuple((IOWm(Ty9i) for Ty9i in MKlR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xFx6(Zode: Any) -> ImMB:\n return JkHx(Zode, llWB.detach)",
"def It5M(YKHO, Zode, qxoj):\n if YKHO.rnn_type in ['lstm', 'mylstm']:\n MKlR = iQnE(Zode[0].data)\n Z9rn = iQnE(Zode[1].data)\n Zode = (MKlR, Z9rn)\n for Fg_i, I1mm in enumerate(qxoj):\n if I1mm.data[0] ... | [
"0.6896774",
"0.6564761",
"0.6440056",
"0.63181335",
"0.62956357",
"0.61828166",
"0.61425817",
"0.61264986",
"0.61264986",
"0.6120289",
"0.6029193",
"0.60253143",
"0.6020807",
"0.5987143",
"0.5969475",
"0.5969475",
"0.5932672",
"0.5932672",
"0.591887",
"0.5889544",
"0.5871412... | 0.56539345 | 31 |
Sets the attribute_name of this ProductVariantAddAttributes. | def _j8X(YKHO, _j8X):
YKHO._attribute_name = _j8X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJ7p(YKHO, _j8X, JBov):\n YKHO.attributes[_j8X] = JBov",
"def SK8M(YKHO, mWFP, BWXx):\n pass",
"def YJ7p(YKHO, mWFP, BWXx):\n YKHO._attributes[mWFP] = BWXx",
"def YJ7p(YKHO, mWFP, BWXx):\n YKHO._attributes[mWFP] = BWXx",
"def YJ7p(YKHO, mWFP, BWXx):\n YKHO._attributes[mWFP] = BWXx",
"d... | [
"0.6554329",
"0.63863724",
"0.6242784",
"0.6242784",
"0.6242784",
"0.61310774",
"0.5988886",
"0.5852113",
"0.58285695",
"0.58009183",
"0.58007014",
"0.5743104",
"0.57368594",
"0.57368594",
"0.57368594",
"0.5660004",
"0.5641808",
"0.56358856",
"0.56340396",
"0.5512168",
"0.545... | 0.7548313 | 0 |
Sets the attribute_price of this ProductVariantAddAttributes. | def _jZq(YKHO, _jZq):
YKHO._attribute_price = _jZq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wb4o(YKHO, hI0L):\n assert isinstance(hI0L, float), 'Price must be a float'\n YKHO._price = hI0L",
"def Wb4o(YKHO, I_t4):\n YKHO.price = I_t4\n return YKHO.price",
"def hI0L(YKHO, hI0L: float):\n YKHO._price = hI0L",
"def hI0L(YKHO, hI0L):\n YKHO._price = hI0L",
"def hI0L(YKHO, hI0L):... | [
"0.66838056",
"0.6545381",
"0.64281565",
"0.64245766",
"0.64245766",
"0.64245766",
"0.64245766",
"0.621196",
"0.6100202",
"0.5871679",
"0.5835917",
"0.5708427",
"0.5625042",
"0.5540541",
"0.55138475",
"0.5491936",
"0.54434365",
"0.5422819",
"0.53630555",
"0.5349353",
"0.53472... | 0.8138506 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, RzNT):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8089204",
"0.8089204",
"0.8055265",
"0.7983358",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Return data as str (UTF8) | def rIkN(YKHO) -> str:
if isinstance(YKHO.data, str):
return YKHO.data
elif isinstance(YKHO.data, bytes):
return YKHO.data.decode()
else:
return bytes(YKHO.data).decode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(nPrm):\n if isinstance(nPrm, bytes):\n return nPrm.decode('utf-8')\n else:\n return nPrm",
"def Sa1R(nPrm):\n if ArHY(nPrm):\n return nPrm\n else:\n return nPrm.decode('latin-1')",
"def D6ho(YKHO, nPrm):\n if isinstance(nPrm, str):\n return nPrm\n r... | [
"0.80612487",
"0.80567765",
"0.8021337",
"0.7986732",
"0.7596255",
"0.7505028",
"0.727382",
"0.7140331",
"0.7061687",
"0.7058527",
"0.6916224",
"0.68987966",
"0.6886006",
"0.682081",
"0.6813797",
"0.68040353",
"0.68040353",
"0.68040353",
"0.68040353",
"0.68040353",
"0.6797292... | 0.7683728 | 4 |
Method that returns the approximated values for u(x) in a specified element. | def P6bq(YKHO, WKvO, YRbF, ycBG):
return YKHO.coeffs[YRbF] * YKHO.psi_funcs[YRbF + ycBG](WKvO) + YKHO.coeffs[YRbF + 1] * YKHO.psi_funcs[YRbF + ycBG + 1](WKvO) + YKHO.coeffs[YRbF + 2] * YKHO.psi_funcs[YRbF + ycBG + 2](WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fH0W(U6D_):\n qbnw, DUgH = V3Pn(U6D_)\n DUgH = qbnw * DUgH\n GgK8 = oyIN.log10(qbnw)\n g086 = oyIN.log10(DUgH)\n Pyrc, gGnb = hHqe(GgK8, g086, bins=10)\n eHNT = Zxt2.interpolate.interp1d(Pyrc, gGnb, kind='cubic')\n return (min(Pyrc), max(Pyrc), eHNT)",
"def rtRD(YKHO, WKvO, P6bq):\n a... | [
"0.64596003",
"0.6250087",
"0.6195584",
"0.6172564",
"0.6064059",
"0.60595405",
"0.6051387",
"0.6044437",
"0.6039406",
"0.6039406",
"0.60246885",
"0.59806204",
"0.5962265",
"0.5961685",
"0.594939",
"0.5948445",
"0.5919442",
"0.5914849",
"0.5867071",
"0.58641154",
"0.58602047"... | 0.6170534 | 4 |
Determines the interval of the cron configuration. Can only be daily or weekly. | def KF1U(okYw):
DeJU = qcWV(2017, 11, 1, 0, 0)
owQp = xSY9(okYw, DeJU)
crog = owQp.get_next(qcWV)
diuy = owQp.get_next(qcWV)
RHeI = (diuy - crog).total_seconds() / (24.0 * 60.0 * 60.0)
if RHeI == 1.0 and okYw[-5:] == '* * *':
return 1
elif RHeI == 7.0 and okYw[-5:-2] == '* *':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOlW(YKHO) -> int:\n return qe4Y.get(YKHO, 'interval')",
"def TfsW(YKHO):\n return int(YKHO.config['interval_of_checking'])",
"def VOlW(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'interval')",
"def GCQd(YKHO):\n return int(YKHO.config['period_of_monitoring_seconds'])",
"def eUH0(YKHO):\n ... | [
"0.67639196",
"0.6640107",
"0.65276986",
"0.64806736",
"0.6419283",
"0.63771355",
"0.62678117",
"0.6210845",
"0.6188529",
"0.6170977",
"0.6170977",
"0.6158478",
"0.6143813",
"0.6111292",
"0.6111292",
"0.60955995",
"0.6067862",
"0.602062",
"0.60109764",
"0.59799033",
"0.594735... | 0.58950603 | 25 |
Sends a 401 response that enables basic auth | def NLCy():
_hkX = {'status': 401, 'message': 'Could not verify your access level for that URL'}
return oGir(PjZe(_hkX), status=404, mimetype='application/json') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8095378",
"0.80943215",
"0.7960329",
"0.785324",
"0.7844362",
"0.78259075",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
... | 0.67640007 | 58 |
Check Numpy's dtype specification. | def mbjL():
assert oyIN.int != oyIN.int8
assert oyIN.int != oyIN.int16
assert oyIN.int != oyIN.int32
assert oyIN.int != oyIN.int64
assert oyIN.int == int
assert oyIN.int8 != int
assert oyIN.int16 != int
assert oyIN.int32 != int
assert oyIN.int64 != int
assert oyIN.dtype(oyIN.int)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbhX(qw7D, yDqo):\n if isinstance(yDqo, type):\n yDqo = [yDqo]\n for aJiv in yDqo:\n if qw7D.dtype == aJiv:\n return\n raise TypeError('{0} is not supported yet. Use one of those dtypes instead: {1}.'.format(qw7D.dtype, yDqo))",
"def B227(Yw_3):\n yDqo = m1c7.as_dtype(Yw_... | [
"0.80209255",
"0.75240415",
"0.7309242",
"0.7288298",
"0.72696006",
"0.7206381",
"0.7136982",
"0.7002746",
"0.6983395",
"0.69728905",
"0.6894997",
"0.6886951",
"0.67726207",
"0.6704868",
"0.6702612",
"0.6693353",
"0.66837984",
"0.66777325",
"0.6675613",
"0.66503984",
"0.66456... | 0.74419814 | 2 |
Initialize the GAN's Discriminator Loss class. | def FIMM(YKHO, pzW6, YMjq, kjSB, WYz0=1.0, Af2d=0.0, B2eJ=False):
super(LN76, YKHO).__init__()
YKHO.register_buffer('real_label', ht2j.tensor(WYz0))
YKHO.register_buffer('fake_label', ht2j.tensor(Af2d))
YKHO.loss_mode = pzW6
YKHO.which_net = YMjq
YKHO.which_D = kjSB
YKHO.gpu = B2eJ
if pz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n super(wr3B, YKHO).__init__()\n fhcK = [U78l.Conv2d(512, 1, kernel_size=4, stride=1, padding=0, bias=True), U78l.Flatten(), U78l.Sigmoid()]\n for YRbF in range(3):\n jxQU = int(512 / 2 ** YRbF)\n mNnu = int(jxQU / 2)\n fhcK.insert(0, U78l.LeakyReLU(0.2, inplace=True))... | [
"0.67797595",
"0.67116225",
"0.6704989",
"0.6666946",
"0.6632852",
"0.66256756",
"0.66242015",
"0.644879",
"0.63792324",
"0.63298756",
"0.6298595",
"0.6296737",
"0.6256949",
"0.6256949",
"0.62487686",
"0.6214453",
"0.61664593",
"0.615347",
"0.61525446",
"0.6135395",
"0.613316... | 0.6804764 | 0 |
Create label tensors with the same size as the input. | def PpUY(YKHO, o3Uj, nbSS):
if nbSS:
zvoY = YKHO.real_label
else:
zvoY = YKHO.fake_label
if YKHO.gpu:
zvoY = zvoY.cuda()
return zvoY.expand_as(o3Uj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wl12(cDK5):\n return (oyIN.ones([cDK5, 1]), oyIN.zeros([cDK5, 1]))",
"def nAMM(j9VG, XqwL, jTqs, KLLm=True, D5gV='seg'):\n with ZylS.name_scope('label_encode'):\n j9VG = ZylS.image.resize_nearest_neighbor(j9VG, XqwL)\n if D5gV == 'seg':\n j9VG = ZylS.squeeze(j9VG, squeeze_dims=... | [
"0.73354965",
"0.71426696",
"0.7118502",
"0.70904386",
"0.70179224",
"0.6934518",
"0.6848578",
"0.68442786",
"0.6792239",
"0.6772455",
"0.67472833",
"0.67066187",
"0.66958326",
"0.66799647",
"0.65043724",
"0.6463637",
"0.6436753",
"0.64249974",
"0.6408662",
"0.63744015",
"0.6... | 0.0 | -1 |
Pulls contents of file and joins, then strips, the lines. | def YkXv(VqRE):
Qex_ = open(VqRE, 'r')
m1kn = Qex_.readlines()
MPV2 = ''.join(m1kn).strip()
return MPV2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lXJo(AesY):\n with open(AesY, 'r') as eHNT:\n return [vC9B.strip() for vC9B in eHNT.readlines()]",
"def Nwr9(YKHO, nUeQ):\n NRcB = ''\n for zFiD in nUeQ.readlines():\n zFiD = zFiD.strip()\n if not zFiD.startswith('#'):\n NRcB += ' ' + zFiD\n return NRcB",
"def B8... | [
"0.62805605",
"0.6259892",
"0.62061757",
"0.6157563",
"0.609395",
"0.60830486",
"0.6071367",
"0.60593766",
"0.6008452",
"0.600285",
"0.59665203",
"0.59576106",
"0.59190077",
"0.5887321",
"0.588537",
"0.5857178",
"0.5853695",
"0.58291125",
"0.58257604",
"0.5820976",
"0.5744172... | 0.0 | -1 |
Takes an iterator and batches the individual instances into lists of the specified size. The last list may be smaller if there are instances left over. | def lqrn(oHE7: Iterator[A], BJJz: int) -> bDy6[x1iM[k0lF]]:
return iter(lambda: list(uOgj(oHE7, 0, BJJz)), []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O1rV(YKHO, Ep8u: int) -> bDy6[x1iM]:\n if Ep8u >= len(YKHO):\n yield type(YKHO)(YKHO)\n else:\n for iXC1 in range(0, len(YKHO), Ep8u):\n yield YKHO[iXC1:iXC1 + Ep8u]",
"def nJ0e(OxJJ, zNig):\n a2Fh = iter(OxJJ)\n while True:\n qmGr = uOgj(a2Fh, zNig)\n yield... | [
"0.7534931",
"0.74928457",
"0.74799687",
"0.7475956",
"0.7442233",
"0.72422206",
"0.71974444",
"0.7171998",
"0.7138168",
"0.70255065",
"0.6940768",
"0.6917977",
"0.68965507",
"0.6894869",
"0.68689764",
"0.6846113",
"0.6845332",
"0.68357426",
"0.68343765",
"0.67655605",
"0.671... | 0.6816624 | 19 |
Take a list of objects and pads it to the desired length, returning the padded list. The original list is not modified. | def YX3x(aWuw: List, Drai: int, HyJ9: Callable[[], Any]=lambda: 0, ZM2i: bool=True) -> x1iM:
if ZM2i:
NuZE = aWuw[:Drai]
else:
NuZE = aWuw[-Drai:]
for bGrB in range(Drai - len(NuZE)):
if ZM2i:
NuZE.append(HyJ9())
else:
NuZE.insert(0, HyJ9())
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RnIX(fUYa, KHPh=0.0, _C3A=False):\n lHmx = len(fUYa)\n gNly = max((WKvO.size(0) for WKvO in fUYa))\n CBXt = fUYa[0].new_zeros(lHmx, gNly, *fUYa[0].size()[1:]).fill_(KHPh)\n for Fg_i in range(lHmx):\n if len(fUYa[Fg_i]) == 0:\n continue\n if _C3A:\n CBXt[Fg_i, -fU... | [
"0.8083376",
"0.80798286",
"0.8012966",
"0.76393193",
"0.75675017",
"0.7550922",
"0.7292382",
"0.7221303",
"0.7165454",
"0.71060973",
"0.70060015",
"0.6995543",
"0.6955529",
"0.6821806",
"0.6781657",
"0.6769481",
"0.67138743",
"0.67048293",
"0.66886055",
"0.666484",
"0.659257... | 0.6768601 | 17 |
Matches a namespace pattern against a namespace string. For example, ``tags`` matches ``passage_tags`` and ``question_tags`` and ``tokens`` matches ``tokens`` but not ``stemmed_tokens``. | def GW0Z(mXDZ: str, _63S: str):
if mXDZ[0] == '*' and _63S.endswith(mXDZ[1:]):
return True
elif mXDZ == _63S:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLQ9(YKHO, *qIxc):\n return _VfD.SBase_matchesSBMLNamespaces(YKHO, *qIxc)",
"def i5IT(YKHO, _63S, *, axKS=tuple()):\n uuEx = str(_63S)\n for KCHu, XP5J, z1Rg in YKHO:\n if XP5J not in axKS:\n for tTpl in (KCHu, XP5J, z1Rg):\n if isinstance(tTpl, E5Ed.URIRef):\n ... | [
"0.57698274",
"0.5548462",
"0.5115196",
"0.49333885",
"0.49240884",
"0.489933",
"0.48974413",
"0.47916314",
"0.47487885",
"0.47404027",
"0.47176668",
"0.47159165",
"0.47115383",
"0.4706423",
"0.46930453",
"0.46929076",
"0.46851048",
"0.46770602",
"0.46671414",
"0.4570723",
"0... | 0.7085755 | 1 |
Checks if the given iterable is lazy, which here just means it's not a list. | def I_Zv(OxJJ: Iterable[A]) -> bool:
return not isinstance(OxJJ, list) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfZ5(YEnM):\n return isinstance(YEnM, (list, tuple, SnBA.GeneratorType)) or (not isinstance(YEnM, (int, str, dict)) and bool(getattr(YEnM, 'next', False)))",
"def ACiR(DlNM: Any) -> OnHT[iu5r[ImMB]]:\n return isinstance(DlNM, iu5r)",
"def GfZ5(SRYB, rm6b=EOhA):\n return isinstance(SRYB, rm6b)",
... | [
"0.69014686",
"0.679608",
"0.6786204",
"0.6786179",
"0.6756888",
"0.67494446",
"0.67343",
"0.67248106",
"0.67139125",
"0.66544956",
"0.66496515",
"0.6642773",
"0.6642136",
"0.66382277",
"0.6627492",
"0.6600342",
"0.6590524",
"0.65509105",
"0.6537714",
"0.64909416",
"0.6343363... | 0.8851489 | 0 |
an alternative method for assigning values to nested DotDict instances. It accepts keys in the form of X.Y.Z. If any nested DotDict instances don't yet exist, they will be created. | def bD1G(YKHO, H5ew, BWXx):
VE5B = H5ew.split('.')
Hqpy = YKHO
for G1Hx in VE5B[:-1]:
try:
Hqpy = Hqpy[G1Hx]
except KeyError:
Hqpy[G1Hx] = YKHO.__class__()
Hqpy = Hqpy[G1Hx]
Hqpy[VE5B[-1]] = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zKRU(nPrm: Dict[str, Any], Emd4=GYid) -> uLKX[GYid, uQkK]:\n Ylbp = Emd4()\n for G1Hx, Ty9i in nPrm.items():\n G1Hx = G1Hx.split('.')\n pan_ = Ylbp\n for YRbF in range(0, len(G1Hx) - 1):\n SpII = pan_.get(G1Hx[YRbF])\n if SpII is None:\n SpII = Em... | [
"0.7277922",
"0.6991614",
"0.68272036",
"0.6824957",
"0.67607063",
"0.66461694",
"0.6632022",
"0.6576774",
"0.6466282",
"0.6423795",
"0.6412482",
"0.6401508",
"0.63756794",
"0.6368839",
"0.63389575",
"0.62703156",
"0.6164554",
"0.6109804",
"0.6067059",
"0.6060633",
"0.5939684... | 0.6988299 | 2 |
Format a JWT and MAC it. | def b9Zp(CBIr, Pi_V, CZYT):
wzkt = int(ITS7.time())
RZVq = {'exp': wzkt + P4t4.config['AUTH_TOKEN_LIFETIME'], 'nbf': wzkt, 'iss': P4t4.config['AUTH_TOKEN_ISSUER'], 'iat': wzkt, 'user': CBIr, 'active_customer': Pi_V, 'renewable': CZYT}
return DvJO.encode(RZVq, key=P4t4.config['AUTH_JWT_SECRET'], algorithm=P4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQUb(YKHO):\n try:\n pB3N = {'exp': qcWV.utcnow() + fCoM(minutes=45), 'iat': qcWV.utcnow(), 'sub': YKHO.id}\n hYvv = DvJO.encode(pB3N, P4t4.config.get('SECRET_KEY'), algorithm='HS256')\n return hYvv\n except Exception as exception:\n return str(AJ5d)",
"def cWAO(YKHO):\n ... | [
"0.6447905",
"0.6440085",
"0.64155",
"0.6351243",
"0.6283913",
"0.6233386",
"0.62208927",
"0.6184606",
"0.6169921",
"0.61670977",
"0.61415356",
"0.6129908",
"0.6094664",
"0.60862076",
"0.60798407",
"0.6074592",
"0.6072056",
"0.60672873",
"0.60655326",
"0.60428965",
"0.6017173... | 0.6248964 | 5 |
Return a range of time spans from `start` to `end` in steps of time frame, `frame`. | def QybB(Emd4, f4IJ, yKcO, Os4s):
if not isinstance(yKcO, Emd4):
yKcO = Emd4.parse(yKcO)
if not isinstance(Os4s, Emd4):
Os4s = Emd4.parse(Os4s)
if yKcO > Os4s:
return
qdx6 = yKcO
while True:
uvMl = qdx6.span(f4IJ)
if uvMl[1] <= Os4s:
yield uvMl
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nWge(YKHO, B9Kb: Union[int, None]=None, FD0k: Union[int, None]=None):\n if B9Kb is None:\n DbxN = 0\n else:\n DbxN = oyIN.searchsorted(YKHO._spikestimes, B9Kb, side='left')\n if FD0k is None:\n AwgJ = YKHO._spikestimes.shape[0]\n else:\n AwgJ = oyIN.searchsorted(YKHO._sp... | [
"0.62072766",
"0.60052043",
"0.58614254",
"0.5799564",
"0.579601",
"0.5762472",
"0.57569575",
"0.5690625",
"0.568266",
"0.56673396",
"0.56568944",
"0.5643149",
"0.5636874",
"0.56304073",
"0.5625108",
"0.5589972",
"0.55755454",
"0.557399",
"0.5566977",
"0.5545499",
"0.54953414... | 0.76008034 | 0 |
The datetime object as a naive datetime (tzinfo=None). | def SbIN(YKHO):
return YKHO.datetime.replace(tzinfo=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yllb(YKHO):\n TXj5 = YKHO.timezoneNaive()\n if TXj5:\n TYhG = None\n else:\n TYhG = gY8B[YKHO._tz].tzinfo\n CsFy = int(YKHO._second)\n foC1 = YKHO.micros() % 1000000\n JRYC = qcWV(YKHO._year, YKHO._month, YKHO._day, YKHO._hour, YKHO._minute, CsFy, foC1, TYhG)\n return JRYC",
... | [
"0.7477166",
"0.7108129",
"0.7086402",
"0.696775",
"0.6886396",
"0.6873263",
"0.6832162",
"0.68022215",
"0.67993337",
"0.6652748",
"0.66525924",
"0.6597021",
"0.65665424",
"0.65517044",
"0.6525693",
"0.6500779",
"0.6484687",
"0.6456791",
"0.6415813",
"0.63709956",
"0.63570005... | 0.8432918 | 0 |
The Zulu object as a native datetime. | def qcWV(YKHO):
return qcWV(*tuple(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A5cH(YKHO) -> eQHC.NDArray[oyIN.object_]:\n return hP_B(YKHO.asi8, tz=YKHO.tz, reso=YKHO._creso)",
"def yllb(YKHO):\n TXj5 = YKHO.timezoneNaive()\n if TXj5:\n TYhG = None\n else:\n TYhG = gY8B[YKHO._tz].tzinfo\n CsFy = int(YKHO._second)\n foC1 = YKHO.micros() % 1000000\n JR... | [
"0.72367114",
"0.65131986",
"0.64649236",
"0.6404073",
"0.6299546",
"0.6244589",
"0.61628586",
"0.59880316",
"0.5977289",
"0.59668785",
"0.5933538",
"0.5845924",
"0.5834955",
"0.5833196",
"0.58298665",
"0.58056533",
"0.5800252",
"0.57888216",
"0.5762198",
"0.5749372",
"0.5741... | 0.57910794 | 17 |
Return the POSIX timestamp. | def E3oo(YKHO):
return wvEv.get_timestamp(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ItX3():\n return int(ITS7.time())",
"def E3oo():\n return int(ITS7.time())",
"def X2x9():\n return str(int(ITS7.time()))",
"def E3oo():\n return ITS7.time()",
"def E3oo():\n return qcWV.now().strftime('%Y%m%dT%H%M%S')",
"def ItX3():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S')",
"d... | [
"0.8048978",
"0.8031998",
"0.7937697",
"0.79355794",
"0.78981155",
"0.7851476",
"0.7846043",
"0.7844424",
"0.78056884",
"0.7801285",
"0.78012484",
"0.7716901",
"0.7679595",
"0.7533372",
"0.7491754",
"0.74713874",
"0.7461564",
"0.74609786",
"0.7459317",
"0.7446804",
"0.7377271... | 0.7108465 | 43 |
Return the number of days in the month. | def vhrV(YKHO):
return GRk0.monthrange(YKHO.year, YKHO.month)[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vhrV(lO87, x0eS):\n qE0M = wTnG(lO87, x0eS)[1]\n return qE0M",
"def Oaiy(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['DayArgs']]]]:\n return qe4Y.get(YKHO, 'days_of_month')",
"def Y6l4(lO87=2019, x0eS=1):\n return wTnG(lO87, x0eS)[1]",
"def Oaiy(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.g... | [
"0.8082928",
"0.7921937",
"0.79061",
"0.7862105",
"0.78611064",
"0.7812619",
"0.7787043",
"0.77042764",
"0.7647082",
"0.7639124",
"0.73869294",
"0.7376316",
"0.7336787",
"0.7318822",
"0.7318822",
"0.7265743",
"0.72647274",
"0.7240037",
"0.723006",
"0.7201202",
"0.7191896",
... | 0.8493492 | 0 |
Return datetime as a string using the format string `format` while optionally converting to timezone `tz` first. | def format(YKHO, format=None, yl4j=None, NCqB=Oe8G):
return wvEv.format_datetime(YKHO, format, tz=yl4j, locale=NCqB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fyo3(qcWV, O3lX='datetime', NCqB='en_US', yl4j='America/New_York'):\n rIAI = FXGE.timezone(yl4j)\n qcWV = qcWV.astimezone(rIAI)\n if O3lX == 'date':\n return YdD0.format_date(qcWV, locale=NCqB)\n elif O3lX == 'time':\n return YdD0.format_time(qcWV, locale=NCqB)\n else:\n ret... | [
"0.67109597",
"0.65509486",
"0.64781344",
"0.6352808",
"0.6200346",
"0.61938655",
"0.61103517",
"0.6106005",
"0.60977626",
"0.60743237",
"0.6073979",
"0.6064176",
"0.60132784",
"0.6008595",
"0.5984102",
"0.59778804",
"0.59718066",
"0.59707147",
"0.5966404",
"0.5957809",
"0.59... | 0.737673 | 0 |
Return "time ago" difference between this datetime and another as a humanized string. | def EUXm(YKHO, JRYC, **xAU6):
return YKHO._format_delta(YKHO - JRYC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Os8H(YKHO):\n return GH5J(YKHO.timestamp / 1000.0, precision=1, abbreviate=True)",
"def GXpB(ITS7=False):\n return LgWF.get(ITS7).humanize()",
"def RFna(YKHO):\n wzkt = qcWV.now(rIAI.utc)\n aJ2e = YKHO.created_at.astimezone(rIAI.utc)\n RA_F = lYHg.naturaldelta(abs(aJ2e - wzkt))\n uGgB = '... | [
"0.781861",
"0.7384555",
"0.7343685",
"0.6777465",
"0.67310333",
"0.6669965",
"0.6630989",
"0.6608926",
"0.64960796",
"0.64837414",
"0.64475816",
"0.63958305",
"0.6372787",
"0.63440454",
"0.6310405",
"0.62401813",
"0.6160443",
"0.612552",
"0.6082144",
"0.6075397",
"0.6064692"... | 0.61512154 | 17 |
Return "time ago" difference between this datetime and now as a humanized string. | def xd0N(YKHO, **xAU6):
return YKHO.time_from(YKHO.now()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Os8H(YKHO):\n return GH5J(YKHO.timestamp / 1000.0, precision=1, abbreviate=True)",
"def RFna(YKHO):\n wzkt = qcWV.now(rIAI.utc)\n aJ2e = YKHO.created_at.astimezone(rIAI.utc)\n RA_F = lYHg.naturaldelta(abs(aJ2e - wzkt))\n uGgB = 'from now' if wzkt < aJ2e else 'ago'\n return f'{RA_F} {uGgB}'"... | [
"0.8234057",
"0.7727537",
"0.76167774",
"0.7166003",
"0.70691097",
"0.7066027",
"0.6975064",
"0.68947387",
"0.6778661",
"0.67713696",
"0.675043",
"0.67356765",
"0.6661343",
"0.6647018",
"0.6634687",
"0.6627662",
"0.6621627",
"0.66180503",
"0.6554676",
"0.65395033",
"0.6440254... | 0.0 | -1 |
Return a humanized "time ago"/"time to" string from a timedelta. | def XvkK(YKHO, RA_F, **xAU6):
xAU6.setdefault('add_direction', True)
RA_F = uGwy(days=RA_F.days, seconds=RA_F.seconds, microseconds=RA_F.microseconds)
return RA_F.format(**xAU6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def muA6(RA_F):\n C6wh = RA_F.seconds % 60 if RA_F.seconds else 0\n O66n = RA_F.seconds // 60 % 60 if RA_F.seconds else 0\n Wave = RA_F.seconds // 3600 % 24 if RA_F.seconds else 0\n Sm0u = abs(RA_F.days) % 7 if RA_F.days else 0\n DKYA = abs(RA_F.days) // 7 if RA_F.days else 0\n SQ3m = []\n if ... | [
"0.7524893",
"0.70354563",
"0.682522",
"0.6758923",
"0.6715483",
"0.6629275",
"0.65662146",
"0.65298253",
"0.6517038",
"0.6509543",
"0.64797556",
"0.64379126",
"0.64304805",
"0.6423081",
"0.6407952",
"0.63338107",
"0.6299713",
"0.628563",
"0.62838566",
"0.6230697",
"0.6145487... | 0.0 | -1 |
Return datetime shifted to timezone `tz`. | def VeCT(YKHO, yl4j=forW):
if yl4j is None:
yl4j = forW
yl4j = wvEv.get_timezone(yl4j)
return super(YKHO.__class__, YKHO).astimezone(yl4j) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YbRF(YKHO, yl4j):\n vgXP = CHDc(yl4j)\n if NLrD.get(yl4j, {}).get('dst') and LaHl(YKHO):\n vgXP += 1\n c65z = vgXP * 3600\n return cJ1g(*ITS7.gmtime(YKHO.unixtime() + c65z))",
"def yl4j(YKHO, yl4j):\n return NKYs.maybe_get_tz('dateutil/' + yl4j)",
"def YbRF(JRYC, yl4j):\n return JR... | [
"0.7234505",
"0.6579325",
"0.6500982",
"0.63452166",
"0.61673373",
"0.61512804",
"0.61206585",
"0.6055227",
"0.6027977",
"0.5917318",
"0.5896946",
"0.5814985",
"0.57673776",
"0.576697",
"0.5750634",
"0.57281446",
"0.57252437",
"0.5725029",
"0.5712849",
"0.57041013",
"0.568424... | 0.6273529 | 4 |
Add time using a timedelta created from the supplied arguments and | def H2v5(YKHO, Elif=None, **rYO3):
if isinstance(Elif, (fCoM, enlf)):
return YKHO + Elif
rYO3 = {PXGI: rYO3.get(PXGI, 0) for PXGI in IAet}
return YKHO.shift(**rYO3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z6g6():\n JRYC = qcWV.datetime.combine(qcWV.date.today(), qcWV.time(12, 30, 5)) + qcWV.timedelta(hours=1)\n a1PO = JRYC.time()\n print(a1PO)",
"def l48t(t0fp, nEj9):\n n2Q1 = fCoM(hours=t0fp.hour, minutes=t0fp.minute, seconds=t0fp.second)\n SpII = fCoM(hours=nEj9.hour, minutes=nEj9.minute, sec... | [
"0.7212288",
"0.7049411",
"0.6976796",
"0.6904464",
"0.68789023",
"0.68632466",
"0.6835722",
"0.6747242",
"0.6549814",
"0.6502366",
"0.6458669",
"0.63663024",
"0.6321636",
"0.6250103",
"0.6224088",
"0.61866504",
"0.618428",
"0.6156903",
"0.6121585",
"0.6100182",
"0.60470253",... | 0.61540765 | 18 |
Return the start of the given time frame for this datetime. | def sL2o(YKHO, f4IJ):
iYri(f4IJ)
return getattr(YKHO, 'start_of_{0}'.format(f4IJ))() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWox(YKHO):\n return YKHO.time[0].to_pydatetime()",
"def bCOv(YKHO):\n return YKHO.get_t_sect()['datetime_start']",
"def yKcO(YKHO) -> qcWV:\n return YKHO._start",
"def yKcO(YKHO):\n HVay = YKHO.tz_match(YKHO.moment)\n r2_p = fCoM(minutes=HVay.minute % YKHO.freq_minutes, seconds=HVay.secon... | [
"0.7254739",
"0.71977925",
"0.7195644",
"0.7090988",
"0.70345175",
"0.70110923",
"0.6981144",
"0.68627393",
"0.681773",
"0.67688996",
"0.67461246",
"0.669792",
"0.6614993",
"0.65968424",
"0.6582339",
"0.65661174",
"0.65324444",
"0.6518252",
"0.6475883",
"0.6459097",
"0.645757... | 0.68785655 | 7 |
Return the end of a given time frame for this datetime. | def WVhV(YKHO, f4IJ, UHFx=1):
iYri(f4IJ)
return getattr(YKHO, 'end_of_{0}'.format(f4IJ))(UHFx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C7pn(YKHO):\n return YKHO.time[-1].to_pydatetime()",
"def Os4s(YKHO) -> qcWV:\n return YKHO._end",
"def Os4s(YKHO):\n Wave = YKHO.length // 60\n O66n = YKHO.length % 60\n return ITS7(YKHO.start.hour + Wave, YKHO.start.minute + O66n)",
"def Os4s(YKHO):\n return YKHO._end",
"def C7pn(YK... | [
"0.74428254",
"0.73248214",
"0.7163974",
"0.7123313",
"0.69753915",
"0.6918007",
"0.68740493",
"0.68424815",
"0.6837745",
"0.6808145",
"0.6771451",
"0.6771451",
"0.6771451",
"0.6771451",
"0.6771451",
"0.6771451",
"0.6708896",
"0.6693407",
"0.6657653",
"0.6642689",
"0.66188055... | 0.6111762 | 53 |
Get first unmasked value of an array along an axis. | def XVd0(qw7D, jDK_):
ZHfW = SG6Y.ma.getmaskarray(qw7D)
tS9D = SG6Y.where(ZHfW, -1.0, 1.0)
vhJw = SG6Y.argmax(tS9D, axis=jDK_)
_0VL = SG6Y.meshgrid(*[SG6Y.arange(qw7D.shape[YRbF]) for YRbF in range(qw7D.ndim) if YRbF != jDK_], indexing='ij')
_0VL.insert(jDK_, vhJw)
Tt0c = oyIN.array(qw7D)[tuple(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s7FY(ezWE, *, jDK_):\n\n def BBoA(ezWE):\n try:\n return oyIN.nonzero(ezWE)[0][0]\n except IndexError:\n return -1\n return oyIN.apply_along_axis(BBoA, jDK_, ezWE)",
"def E_E3(ZHfW, *qIxc):\n qVG7 = ~ZHfW\n gGwu = []\n for d7pR in qIxc:\n if d7pR.size... | [
"0.7064826",
"0.62727624",
"0.6099543",
"0.6087248",
"0.6032662",
"0.59447646",
"0.59035784",
"0.5872711",
"0.5819477",
"0.58154905",
"0.58139175",
"0.57594526",
"0.57439363",
"0.5735857",
"0.5690035",
"0.56682724",
"0.5655416",
"0.5648125",
"0.5615359",
"0.56074893",
"0.5604... | 0.84379154 | 0 |
Compute mole fraction of CO2 at surface. | def RHr8(GNt9):
tgAj = GNt9.extract_cube(Ty8a.Constraint(name='mole_fraction_of_carbon_dioxide_in_air'))
mJIt = GNt9.extract_cube(Ty8a.Constraint(name='surface_air_pressure'))
wN8l, = tgAj.coord_dims(tgAj.coord(axis='Z', dim_coords=True))
ZHfW = SG6Y.ma.getmaskarray(tgAj.core_data())
if ZHfW.any():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g3aq(p9De, SX4k):\n return p9De / (p9De + SX4k)",
"def Qa1X(YKHO, oMqC):\n G1Hx = YKHO.speciesIndex(oMqC)\n return bMU8.phase_molefraction(YKHO._phase_id, G1Hx)",
"def jTQR(KQB2, BT4J):\n qOuB = j0_L(KQB2)\n fGQt = j0_L(BT4J)\n w6qO = 1.0 - qOuB\n return w6qO",
"def rIB8(N9D1):\n ... | [
"0.74062234",
"0.6469451",
"0.6411467",
"0.5952915",
"0.59414726",
"0.59317875",
"0.5914392",
"0.58494836",
"0.5822355",
"0.5717526",
"0.569269",
"0.5678385",
"0.5673166",
"0.5656904",
"0.5652714",
"0.5652249",
"0.5646495",
"0.56245005",
"0.561397",
"0.5601228",
"0.5560468",
... | 0.0 | -1 |
Return a GraphicsState config from the appearance's graphicsstate applicable params. | def Vvuu(YKHO):
return bPq3(dash_array=YKHO.dash_array, line_cap=YKHO.line_cap, line_join=YKHO.line_join, miter_limit=YKHO.miter_limit, stroke_transparency=YKHO._get_stroke_transparency(), fill_transparency=YKHO._get_fill_transparency()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rYVC(YKHO, TEdI):\n y7GR = dict()\n y7GR['state'] = TEdI['state']\n y7GR['fg'] = TEdI['fg']\n y7GR['bg'] = TEdI['bg']\n return y7GR",
"def f0tb():\n return {}",
"def n4I5(YKHO):\n if YKHO.ui.active_figure_format_config_widget is None:\n return None\n else:\n Uj9l = YKH... | [
"0.60739756",
"0.5775519",
"0.5381388",
"0.5221672",
"0.5205873",
"0.52011937",
"0.5115062",
"0.5104205",
"0.5101544",
"0.5076273",
"0.50660497",
"0.5060692",
"0.50441897",
"0.5000844",
"0.49889576",
"0.49738145",
"0.49704042",
"0.4952311",
"0.49382132",
"0.4927522",
"0.49242... | 0.5370084 | 3 |