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 |
|---|---|---|---|---|---|---|
Recursively convert numeric strings suffixed with 'L' to longs, in an arbitrary python data structure. Only supports treelike structures does not support structures which contain references to parent objects. Modifies the data structure inplace. To preserve the original data structure, deepcopy it before calling this f... | def tWWY(jQ_r):
return OTjp(nTkk, jQ_r) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nTkk(jQ_r):\n if type(jQ_r) is str and len(jQ_r) > 0 and (jQ_r[-1] == 'L'):\n try:\n return Swre(jQ_r)\n except ValueError:\n return jQ_r\n else:\n return jQ_r",
"def V57u(jQ_r):\n return OTjp(uG8f, jQ_r)",
"def H3qp(WKvO):\n if isinstance(WKvO, Swre):... | [
"0.6393337",
"0.57793075",
"0.5697539",
"0.5315446",
"0.51731217",
"0.5078519",
"0.5069272",
"0.50604373",
"0.50468254",
"0.49974492",
"0.49188536",
"0.47464722",
"0.471545",
"0.4613846",
"0.45672265",
"0.45462966",
"0.45372579",
"0.45328337",
"0.45275134",
"0.45093003",
"0.4... | 0.6573038 | 0 |
Returns a tensor filled with zeros The shape of the tensor is defined by the varargs sizes. Returns FloatTensor | def pSfY(*qIxc):
Htse = list(qIxc)
assert type(Htse[0]) == int
return cHg7(HCmI, 'ones', params=Htse, return_type='FloatTensor') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VNqG(*ROpF, **B2fa):\n return llWB(oyIN.zeros(ROpF), **B2fa)",
"def VNqG(*qIxc):\n Htse = list(qIxc)\n assert type(Htse[0]) == int\n return cHg7(HCmI, 'zeros', params=Htse, return_type='FloatTensor')",
"def VNqG(ROpF, yDqo=oyIN.float32, si3H=False):\n return llWB(oyIN.zeros(ROpF, yDqo), cons... | [
"0.7842598",
"0.77164525",
"0.7565274",
"0.7219855",
"0.7152766",
"0.7091722",
"0.70162374",
"0.6989535",
"0.685939",
"0.68560123",
"0.68349093",
"0.6743648",
"0.6743648",
"0.6660959",
"0.6544985",
"0.6485042",
"0.6408218",
"0.6365994",
"0.63572747",
"0.6356642",
"0.6340731",... | 0.0 | -1 |
Returns a tensor filled with zeros The shape of the tensor is defined by the varargs sizes. Returns FloatTensor | def VNqG(*qIxc):
Htse = list(qIxc)
assert type(Htse[0]) == int
return cHg7(HCmI, 'zeros', params=Htse, return_type='FloatTensor') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VNqG(*ROpF, **B2fa):\n return llWB(oyIN.zeros(ROpF), **B2fa)",
"def VNqG(ROpF, yDqo=oyIN.float32, si3H=False):\n return llWB(oyIN.zeros(ROpF, yDqo), constant=si3H)",
"def lsmZ(*ROpF, **B2fa):\n return llWB(oyIN.empty(ROpF), **B2fa)",
"def PIEQ(vhpA):\n raise NotImplementedError",
"def VNqG(... | [
"0.7842598",
"0.7565274",
"0.7219855",
"0.7152766",
"0.7091722",
"0.70162374",
"0.6989535",
"0.685939",
"0.68560123",
"0.68349093",
"0.6743648",
"0.6743648",
"0.6660959",
"0.6544985",
"0.6485042",
"0.6408218",
"0.6365994",
"0.63572747",
"0.6356642",
"0.6340731",
"0.63303417",... | 0.77164525 | 1 |
Second derivative of the Hill(position) function which represents the hill in the car on the hill problem | def x9qr(YKHO, dQgj):
if dQgj < 0:
return 2
else:
return dQgj * (75 * dQgj ** 2 / (1 + 5 * dQgj ** 2) ** 2.5 - 5 / (1 + 5 * dQgj ** 2) ** 2.5) - 10 * dQgj / (1 + 5 * dQgj ** 2) ** 1.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xryA(YKHO, dQgj):\n if dQgj < 0:\n return 2 * dQgj + 1\n else:\n return 1 / epAf.sqrt(1 + 5 * dQgj ** 2) - 5 * dQgj ** 2 * (1 + 5 * dQgj ** 2) ** (-1.5)",
"def WH_7(a1PO=None, MKlR=None, WKvO=None, Oj1h=None, _sQW=None):\n return _sQW - Oj1h ** 2 + WKvO + 5",
"def b_LG(XP5J, WKvO):\n... | [
"0.71787125",
"0.6337476",
"0.6178819",
"0.61392814",
"0.61392814",
"0.6037158",
"0.6035797",
"0.59954983",
"0.5982176",
"0.5980169",
"0.5966511",
"0.5927131",
"0.59081066",
"0.59002376",
"0.58453137",
"0.58235",
"0.58235",
"0.57893753",
"0.578911",
"0.57782894",
"0.576464",
... | 0.6988061 | 1 |
given a number, return True if prime else False | def T1qg(mLGw):
for WKvO in range(2, mLGw + 1):
if mLGw % WKvO == 0:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GiUy(f813):\n I1mm = 0\n for hkxX in range(2, f813 // 2):\n if f813 % hkxX == 0:\n I1mm += 1\n if I1mm == 1:\n return True\n else:\n return False",
"def T1qg(FGW3):\n if FGW3 < 2:\n return False\n elif FGW3 == 2:\n return True\n elif FGW3 % 2... | [
"0.86102134",
"0.85202575",
"0.8504059",
"0.84321237",
"0.8401166",
"0.83678275",
"0.83596665",
"0.8356021",
"0.83337253",
"0.83273566",
"0.8298777",
"0.8295161",
"0.8267883",
"0.8264454",
"0.8263076",
"0.8255169",
"0.825499",
"0.82525784",
"0.82493657",
"0.8237897",
"0.82170... | 0.8259012 | 15 |
Extracts the acquisitions of each file in the dictionary files_names. The user must be careful because this function converts all files in the files_names in numpy arrays. As large the number of entries in files_names as large will be the space of memory necessary. Returns | def rbP3(YKHO):
uZPc = {}
for H5ew in YKHO.files:
if H5ew != 'OR_KA08_2_2':
print(YKHO.files[H5ew])
FAge = Zxt2.io.loadmat(YKHO.files[H5ew])
if len(YKHO.files[H5ew]) > 41:
yZ4z = FAge[YKHO.files[H5ew][19:38]]['Y'][0][0][0][6][2]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zjv5(YKHO, eko9, **B2fa):\n Fspe = []\n rtcS = YKHO.cons_names\n try:\n rtcS += YKHO.alias_map.keys()\n except:\n pass\n for H5ew in eko9:\n if H5ew in rtcS:\n try:\n R5JR = H5ew\n H5ew = YKHO.alias_map[H5ew]\n except:\n ... | [
"0.5829079",
"0.5568234",
"0.55453146",
"0.54928666",
"0.5429139",
"0.5318473",
"0.52788126",
"0.5267479",
"0.52518123",
"0.5225667",
"0.5188862",
"0.5174765",
"0.5149673",
"0.51454383",
"0.5133269",
"0.5126411",
"0.5095342",
"0.50888413",
"0.506829",
"0.506203",
"0.50595677"... | 0.6104666 | 0 |
Function to calculate the reduced learning rate after epoch | def biVQ(qtWj):
oLNr = 0.1
ReNU = 0.5
Gn2V = 10.0
fqnS = oLNr * epAf.pow(ReNU, epAf.floor((1 + qtWj) / Gn2V))
return fqnS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr",
"def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)",
"def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)",
"def cBsx(YKHO, yKTC, qtWj):\n \"\"\"\n Dan's Methos\n \"\"\"\n yj8H = yKTC * 0.001\n Z9rn = oyIN.po... | [
"0.8171031",
"0.77817154",
"0.77817154",
"0.76992744",
"0.75821906",
"0.7547952",
"0.74052113",
"0.73309565",
"0.7330828",
"0.73195606",
"0.7231433",
"0.7229917",
"0.7207195",
"0.7196197",
"0.7154837",
"0.7145247",
"0.7137893",
"0.7086035",
"0.70756614",
"0.70351243",
"0.7035... | 0.72133976 | 12 |
Test get all products. | def ltzF(YKHO):
geh0 = YKHO.get_all_products()
Aofo = qQXR.loads(geh0.data.decode('utf-8'))
YKHO.assertEqual(geh0.status_code, 200, Aofo['Available Products']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hqp0(YKHO):\n YKHO._create_products(5)\n _hkX = YKHO.app.get('/products')\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_200_OK)\n nPrm = _hkX.get_json()\n YKHO.assertEqual(len(nPrm), 5)",
"def Rwn1(YKHO):\n KeVq(supplier_id=YKHO.user)\n KeVq(supplier_id=YKHO.user)\n KeVq(supplier_id=... | [
"0.81801194",
"0.8162404",
"0.80536664",
"0.803761",
"0.80301356",
"0.7950588",
"0.791547",
"0.75464064",
"0.74857324",
"0.74658626",
"0.74582124",
"0.7397645",
"0.7393845",
"0.7391269",
"0.72226065",
"0.7208445",
"0.71760243",
"0.7133124",
"0.71063226",
"0.70965606",
"0.7085... | 0.80391955 | 3 |
Test geet unexisting products. | def oSu0(YKHO):
geh0 = YKHO.get_unexisting_products()
Aofo = qQXR.loads(geh0.data.decode('utf-8'))
YKHO.assertEqual(Aofo['message'], 'No Available products')
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ffvl(YKHO):\n BF4O = YKHO.info_list.product_buy('хлеб серый хлебозавод', 3)\n YKHO.assertFalse(BF4O)",
"def wgId(YKHO):\n _hkX = YKHO.admin_register()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)\n _hkX = ... | [
"0.7819811",
"0.74510825",
"0.74253905",
"0.7394914",
"0.7356181",
"0.7286764",
"0.72697175",
"0.72002006",
"0.7173081",
"0.7157495",
"0.7130074",
"0.70952326",
"0.70755124",
"0.70718664",
"0.70715106",
"0.7020957",
"0.6963688",
"0.69167686",
"0.6884809",
"0.68754447",
"0.683... | 0.75760007 | 1 |
Test fetch for single product [GET request]. | def _3s5(YKHO):
geh0 = YKHO.fetch_single_product()
Aofo = qQXR.loads(geh0.data.decode('utf-8'))
YKHO.assertEqual(geh0.status_code, 200, Aofo['Product']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BUWi(YKHO):\n aeVF = YKHO._create_products(1)[0]\n _hkX = YKHO.app.get('/products/{}'.format(aeVF.id), content_type='application/json')\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_200_OK)\n nPrm = _hkX.get_json()\n YKHO.assertEqual(nPrm['name'], aeVF.name)\n sWfS = '%s' % aeVF",
"def LqN... | [
"0.7694427",
"0.7685613",
"0.7486937",
"0.71763486",
"0.7136175",
"0.71222603",
"0.7051367",
"0.6947093",
"0.69322646",
"0.6931065",
"0.6820344",
"0.68118733",
"0.68020034",
"0.6794163",
"0.6771813",
"0.67257893",
"0.6672727",
"0.66668415",
"0.6629",
"0.6615486",
"0.6600097",... | 0.8597788 | 0 |
Test delete unexisting product. | def KORt(YKHO):
geh0 = YKHO.delete_unexisting_products()
Aofo = qQXR.loads(geh0.data.decode('utf-8'))
YKHO.assertEqual(Aofo['Error'], 'Product Not found')
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W_kM(YKHO):\n Lx3t = YKHO.create_product()\n Ldyl = YKHO.product_obj.search([])\n YKHO.assertIn(Lx3t, Ldyl)\n Lx3t.unlink()\n YKHO.assertNotIn(Lx3t.exists(), Ldyl)",
"def LSbE(YKHO):\n YKHO._require_login(YKHO.user1)\n geh0 = YKHO.client.delete('/api/1.0/products/1/')\n YKHO.assertEqu... | [
"0.88103545",
"0.8216854",
"0.81327945",
"0.8112992",
"0.8010153",
"0.7978975",
"0.79663366",
"0.7881493",
"0.78742707",
"0.78566515",
"0.7665377",
"0.76635945",
"0.7610452",
"0.74897164",
"0.7470664",
"0.74159336",
"0.7324988",
"0.72872734",
"0.7279195",
"0.72438973",
"0.724... | 0.7998871 | 5 |
If the parent of a UnaryOpNode is a Concat or an Aggregation (which must be done under MPC), then the Concat or Aggregate operation can be pushed beneath it's child UnaryOpNode, which allows the operation at that node to be done outside of MPC. This method tests whether such a transformation can be performed. | def WqGZ(YKHO, Q6kx: saldag.UnaryOpNode):
_AKB = next(iter(Q6kx.parents))
if _AKB.is_mpc:
if Q6kx.is_leaf():
Q6kx.is_mpc = True
return
if isinstance(_AKB, SDYu.Concat) and _AKB.is_boundary():
YBkB(_AKB, Q6kx)
elif isinstance(_AKB, SDYu.Aggregate) and Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkg3(YKHO, _AKB, Q6kx):\n if isinstance(Q6kx, (yINE, qx2M, nemW)) and isinstance(_AKB, (yINE, qx2M, nemW, _MpZ)):\n eRdl = q8f1(Q6kx)\n Wnk5 = q8f1(_AKB)\n qZJR = isinstance(_AKB, yINE) or isinstance(_AKB, _MpZ) or (isinstance(_AKB, qx2M) and Q6kx is _AKB.left) or (isinstance(_AKB, nemW... | [
"0.60450876",
"0.59072757",
"0.5813224",
"0.57676643",
"0.5746842",
"0.5659774",
"0.5641918",
"0.56324464",
"0.56120795",
"0.551892",
"0.54400456",
"0.54369676",
"0.5424817",
"0.53703517",
"0.5364401",
"0.53630674",
"0.5353329",
"0.5351572",
"0.5237913",
"0.52110857",
"0.5183... | 0.60490304 | 0 |
If a UnaryOpNode is at a lower MPC boundary, it can be computed locally. | def WqGZ(YKHO, Q6kx: saldag.UnaryOpNode):
Mzf9 = next(iter(Q6kx.parents))
if Q6kx.is_reversible() and Q6kx.is_lower_boundary() and (not Mzf9.is_root()):
print('lower boundary', Q6kx)
Q6kx.get_in_rel().stored_with = jth9.copy(Q6kx.out_rel.stored_with)
Q6kx.is_mpc = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWsp(YKHO, Q6kx):\n if Q6kx and (not GPtr.mutated):\n return YKHO.visit_node(Q6kx)\n elif Q6kx and GPtr.mutated and GPtr.recovering:\n return YKHO.recover_node(Q6kx)\n return Q6kx",
"def YiVy(Oa1e, khtY, XkN1):\n VuLw = {'isinf_v2': Bchp.isinf, 'isfinite_v2': Bchp.isfinite, 'isnan_v... | [
"0.6025578",
"0.59523624",
"0.58543664",
"0.57577854",
"0.5647349",
"0.5626641",
"0.55664444",
"0.5544538",
"0.5538449",
"0.5485339",
"0.5482243",
"0.54461956",
"0.5444908",
"0.5425926",
"0.5400196",
"0.5392844",
"0.53342915",
"0.5324928",
"0.53066015",
"0.52906716",
"0.52902... | 0.63696885 | 0 |
List of enabled sitecomps. A frontend sitecomp itself determines if it enabled or not. If the sitecomp instance have no `enabled` attribute, the sitecomp considered enabled. | def FTHQ(YKHO):
return [tn9t for tn9t in YKHO.modules() if getattr(tn9t, 'enabled', True)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXXz(YKHO):\n B373 = set()\n if YKHO.ce_collector_required_rpms_installed and YKHO.htcondor_gateway_enabled:\n B373.add('condor-ce')\n return B373",
"def etR_(Emd4):\n Emd4._check_configured()\n return sorted(Emd4._ENABLED.values(), key=lambda kT1P: kT1P.NAME)",
"def M7qi(YKHO, Z9rn):... | [
"0.6417137",
"0.6412139",
"0.61353666",
"0.61053777",
"0.6003722",
"0.5966211",
"0.5942384",
"0.5839016",
"0.57538974",
"0.5683024",
"0.5680558",
"0.566255",
"0.56361353",
"0.55511516",
"0.5514081",
"0.5436519",
"0.5434192",
"0.5373351",
"0.53717947",
"0.5356104",
"0.5343243"... | 0.7121855 | 0 |
Check is user have permission to access to the site module. | def M1EP(YKHO, CBIr):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FHsb(YKHO, QePW):\n if QePW.user.groups.filter(name__in=['Sellers', 'Supporters']).exists():\n return True\n return False",
"def kjA5(YKHO, QePW):\n QePW.needAuthType(QePW.ADMIN)\n QePW.checkArgs('perm_name', 'admin_username')\n if QePW.auth_name != QePW['admin_username']:\n QePW... | [
"0.78157455",
"0.7690332",
"0.7496568",
"0.7442057",
"0.73376673",
"0.7325706",
"0.72618127",
"0.72174263",
"0.71767086",
"0.7163697",
"0.71339834",
"0.71282077",
"0.71193045",
"0.71074855",
"0.71074855",
"0.71074855",
"0.70716923",
"0.704935",
"0.7027433",
"0.7022249",
"0.70... | 0.6994442 | 24 |
Base template for a module. If /base_module.html exists it would be used. The default is 'material/frontend/base_module.html' | def mK7M(YKHO):
return JMwD(['{}/base_module.html'.format(YKHO.label), 'site/base/base.html']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YVQM(QpfX):\n UhR0 = Hy7s.path.join(gCuF.THEME_NAME, 'theme.html')\n return {'THEME_TEMPLATE': UhR0}",
"def yR_P(YKHO) -> 'TemplateModule':\n return YKHO._get_default_module()",
"def l4O7(YKHO):\n return 'v2/soc/dashboard/base.html'",
"def P8oC(QePW):\n return _1tc(QePW, 'sett_base.html', ... | [
"0.67443323",
"0.65413743",
"0.6059715",
"0.56530476",
"0.5588554",
"0.5433725",
"0.5433395",
"0.5396736",
"0.5385626",
"0.5351731",
"0.535068",
"0.53488815",
"0.52806544",
"0.5266149",
"0.521008",
"0.5181795",
"0.5163655",
"0.5163655",
"0.51483476",
"0.51353663",
"0.51289874... | 0.8017753 | 0 |
Save list of names to a local json file | def J90s(ZWCE):
with open('names.json', 'w') as AWd4:
pu8V = list(ZWCE)
pu8V.sort()
qQXR.dump(pu8V, AWd4, indent=4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U1ai(gIsw: str, hGN5: list):\n with open(gIsw, 'w+') as rVmU:\n qQXR.dump(hGN5, rVmU)",
"def U1ai(Uqbu, qaEx):\n with open(qaEx, 'w') as ytgA:\n ytgA.write('\\n'.join((qQXR.dumps(YRbF) for YRbF in Uqbu)))",
"def AHFl(Emd4, Nkld):\n Ei1Y = Emd4.__name__ + '.json'\n A7tq = []\n i... | [
"0.7470473",
"0.74309605",
"0.72981393",
"0.72951835",
"0.72927344",
"0.7291648",
"0.72366047",
"0.71882975",
"0.7170377",
"0.71558744",
"0.7138532",
"0.7137311",
"0.71370494",
"0.7129362",
"0.7112546",
"0.7112208",
"0.70899975",
"0.70843244",
"0.70836484",
"0.7066075",
"0.70... | 0.8193219 | 0 |
Ensure a VM has a nonchanging filesystem, that is clean enough to be mounted with a straightforward journal replay. This is implemented using the 'fsfreeze' API through the Qemu guest agent. As we can't indicate the cleanliness of a nonrunning (potentially crashed) VM we do only signal a successful freeze iff the freez... | def UUL1(YKHO):
cXFM = False
try:
if YKHO.qemu.is_running():
YKHO.log.info('freeze', volume='root')
try:
YKHO.qemu.freeze()
cXFM = True
except Exception as e:
YKHO.log.error('freeze-failed', reason=str(tTpl), action='con... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FiJ9(YKHO):\n if YKHO.frozen:\n return\n YKHO.id_lock.acquire()\n YKHO._rotatelog(None, '')\n YKHO.loglocker.acquire_write()\n YKHO.frozen = True",
"def FiJ9(mWFP, **B2fa):\n Yx3N = B2fa.get('use_vt', None)\n pmON = B2fa.get('path', None)\n W_qO(mWFP, path=pmON)\n kcB2 = QTB... | [
"0.5969913",
"0.56898975",
"0.56407994",
"0.5614483",
"0.5441625",
"0.54253215",
"0.5394847",
"0.5336395",
"0.53351367",
"0.53101206",
"0.52970904",
"0.52590144",
"0.51651555",
"0.51556194",
"0.5142035",
"0.51010585",
"0.50891244",
"0.5081032",
"0.50533664",
"0.5037725",
"0.5... | 0.6590824 | 0 |
Test environments with opts_from_file. | def bAHm(YKHO, xnDV: Path, iqa8: None, F19A: YamlLoaderDeployment, vD38: MockRunwayContext) -> None:
vD38.env.root_dir = xnDV
plaN = F19A.load('environments_map_str')
ydhB = plaN.modules[0]
ydhB.environments = {'dev': ['us-east-1'], 'prod': ['us-east-1']}
VlDb = awyi(context=vD38, definition=ydhB, d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkZ2(YKHO, xnDV: Path, F19A: YamlLoaderDeployment, AZgw: MockerFixture, vD38: MockRunwayContext) -> None:\n vD38.env.root_dir = xnDV\n AZgw.patch.object(awyi, 'opts_from_file', {'environments': {'test': ['us-east-1']}})\n plaN = F19A.load('environments_map_str')\n VlDb = awyi(context=vD38, definiti... | [
"0.70948434",
"0.6223884",
"0.60205334",
"0.5950704",
"0.5867832",
"0.58461916",
"0.58098793",
"0.58017594",
"0.5798974",
"0.57645106",
"0.5713239",
"0.57124174",
"0.56775486",
"0.5644353",
"0.5644213",
"0.5642146",
"0.5614305",
"0.5580403",
"0.5571275",
"0.5562057",
"0.55115... | 0.5538817 | 20 |
Test environments with opts_from_file. | def wkZ2(YKHO, xnDV: Path, F19A: YamlLoaderDeployment, AZgw: MockerFixture, vD38: MockRunwayContext) -> None:
vD38.env.root_dir = xnDV
AZgw.patch.object(awyi, 'opts_from_file', {'environments': {'test': ['us-east-1']}})
plaN = F19A.load('environments_map_str')
VlDb = awyi(context=vD38, definition=plaN.m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L5s8(tn38, TBXe):\n ZBnK = aM69.Climate(prefix='TEST_STUFF')\n assert isinstance(ZBnK.settings, GySg)\n assert dict(ZBnK.settings) == {'testgroup': {'testvar': 7, 'test_var': 6}, 'othergroup': {'blabla': 555}, 'testgroup_test_var': 9}",
"def bz00():\n y7GR = ht58._BaseOpt()\n with trZe.raises(... | [
"0.6223884",
"0.60205334",
"0.5950704",
"0.5867832",
"0.58461916",
"0.58098793",
"0.58017594",
"0.5798974",
"0.57645106",
"0.5713239",
"0.57124174",
"0.56775486",
"0.5644353",
"0.5644213",
"0.5642146",
"0.5614305",
"0.5580403",
"0.5571275",
"0.5562057",
"0.5538817",
"0.551151... | 0.70948434 | 0 |
Initialize the dataset builder. | def FIMM(YKHO) -> None:
YKHO.hebrew_alphabet = None
YKHO.augmenter = _Bji() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.__dataset = None",
"def FIMM(YKHO):\n YKHO.args = YKHO._prepare_args(locals())\n YKHO.requires_full_dataset_in_memory = False",
"def CroE(YKHO):\n YKHO.dataset = yzDX(YKHO.dataset_config, YKHO.transform)\n return YKHO.dataset",
"def FIMM(YKHO, __n6):\n YKHO._dataset =... | [
"0.73084944",
"0.7276143",
"0.72516805",
"0.7171552",
"0.7154101",
"0.7077392",
"0.6865365",
"0.6857332",
"0.68499774",
"0.6693619",
"0.6604885",
"0.6574388",
"0.65413815",
"0.6515574",
"0.65089434",
"0.64838004",
"0.6473971",
"0.6470088",
"0.64469045",
"0.63952744",
"0.63914... | 0.0 | -1 |
Return the entity ID. | def g2g3(YKHO):
return 'switch.pocket_auto_loading' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO) -> str:\n return YKHO._entity_id",
"def V3pW(YKHO)... | [
"0.87450445",
"0.87450445",
"0.87450445",
"0.87450445",
"0.87450445",
"0.86839527",
"0.7594692",
"0.7523408",
"0.7392858",
"0.7392858",
"0.7368524",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123... | 0.0 | -1 |
Name of the device. | def mWFP(YKHO):
return 'Pocket File Auto Loading' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return f'{ueYb(YKHO._data, 0, YKHO._name)}'",
"def mWFP(YKHO):\n return YKHO.device.name()",
"def mWFP(YKHO):\n return YKHO.device.... | [
"0.90980077",
"0.90980077",
"0.90980077",
"0.9062028",
"0.9025963",
"0.88166",
"0.8686434",
"0.8569197",
"0.85582256",
"0.8555482",
"0.8555482",
"0.85317177",
"0.85317177",
"0.8468815",
"0.84063196",
"0.8375968",
"0.8366276",
"0.8347895",
"0.8282472",
"0.8153554",
"0.80649626... | 0.0 | -1 |
Turn the switch off. | def Z_rv(YKHO, **B2fa):
YKHO._is_on = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()",
"def dNOs(YKHO):\n YKHO._switch_callback = None",
"def Z_rv(YKHO):\n YKHO.handleCommand(1)\n YKHO._state = iKVK",
"def Z_rv(YKHO, **B2fa):\n hodN(YKHO._host, 'off')\n YKHO._state = False",
"def Z_rv(YKHO):\n print('Turning the light... | [
"0.870139",
"0.867637",
"0.85906535",
"0.8523712",
"0.84588856",
"0.8404447",
"0.8398465",
"0.8375364",
"0.83491224",
"0.83192796",
"0.82949907",
"0.8277566",
"0.81680954",
"0.8155346",
"0.8112255",
"0.8091075",
"0.8072859",
"0.8058921",
"0.8058517",
"0.8041678",
"0.8036265",... | 0.84180963 | 5 |
Return the state attributes of the device. | def R1i3(YKHO):
o8Kj = {}
for nsXs in YKHO._pockets:
id = nsXs[le2j]
mWFP = nsXs[Z_JQ]
o8Kj[id] = mWFP
return o8Kj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO)... | [
"0.92738223",
"0.92053986",
"0.91516256",
"0.91516256",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148746",
"0.9148746",
"0.9137698",
"0.9110632",... | 0.73110414 | 94 |
Return the entity ID. | def g2g3(YKHO):
return 'sensor.pocket_{}'.format(YKHO._id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO) -> str:\n return YKHO._entity_id",
"def V3pW(YKHO)... | [
"0.87450445",
"0.87450445",
"0.87450445",
"0.87450445",
"0.87450445",
"0.86839527",
"0.7594692",
"0.7523408",
"0.7392858",
"0.7392858",
"0.7368524",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123",
"0.7363123... | 0.0 | -1 |
Return the name of the sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91896784",
"0.9168378",
"0.890185",
"0.8770976",
"0.8511273",
"0.8479953",
"0.844435",
"0.8299758",
"0.8186503",
"0.8105667",
"0.8079737",
"0.8066149",
"0.8049647",
"0.7700968",
"0.7612295",
"0.7611456",
"0.7600605",
"0.7600605",
"0.7600605",
"0.75392073",
"0.75166553",
... | 0.0 | -1 |
Pad framewise_output to the same length as input frames. The pad value is the same as the value of the last frame. | def h5dP(MNYq: torch.Tensor, K3Do: int):
hlel = vuvg.interpolate(MNYq.unsqueeze(1), size=(K3Do, MNYq.size(2)), align_corners=True, mode='bilinear').squeeze(1)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h5dP(MNYq, K3Do):\n hVLt = MNYq[:, -1:, :].repeat(1, K3Do - MNYq.shape[1], 1)\n 'tensor for padding'\n hlel = ht2j.cat((MNYq, hVLt), dim=1)\n '(batch_size, frames_num, classes_num)'\n return hlel",
"def h5dP(MNYq, K3Do):\n hVLt = MNYq[:, -1:, :].repeat(1, K3Do - MNYq.shape[1], 1)\n 'tens... | [
"0.8229879",
"0.821293",
"0.67777383",
"0.67004776",
"0.6574267",
"0.64285785",
"0.63645834",
"0.61845154",
"0.60441667",
"0.59772074",
"0.59718066",
"0.5957475",
"0.59094816",
"0.5904415",
"0.5786226",
"0.572692",
"0.5724619",
"0.5717271",
"0.56892866",
"0.5676037",
"0.56541... | 0.7947302 | 3 |
Tests that languages are set correctly | def yxRV(YKHO):
YKHO.assertEqual(YKHO.scraper.language_original, 'jpn')
YKHO.assertEqual(YKHO.scraper.language_translated, 'eng')
YKHO.scraper.set_languages('jpn', 'eng')
YKHO.assertEqual(YKHO.scraper.language_translated, 'jpn')
YKHO.assertEqual(YKHO.scraper.language_original, 'eng')
YKHO.scrape... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YlYZ(YKHO):\n YKHO._api.Init(lang='eng')\n DuqQ = YKHO._api.GetInitLanguagesAsString()\n YKHO.assertEqual(DuqQ, 'eng')\n YgMu = YKHO._api.GetLoadedLanguages()\n YKHO.assertEqual(YgMu, ['eng'])\n YKHO.assertIn('eng', YKHO._api.GetAvailableLanguages())",
"def QSph(YKHO):\n if YKHO.language... | [
"0.82205844",
"0.81810033",
"0.81763077",
"0.799794",
"0.78460836",
"0.7663767",
"0.7654795",
"0.7654795",
"0.75624233",
"0.74955076",
"0.74933475",
"0.7261659",
"0.7165447",
"0.70093524",
"0.6997815",
"0.6950665",
"0.69268453",
"0.69231534",
"0.68817383",
"0.68645185",
"0.68... | 0.815594 | 3 |
This is a route handler/function! Helper function to handle the homepage route by returning the 'index.html' template. We don't need to pass anything to context for the index/root page. | def kZiy(PNq_):
return TvZl(template_name='index.html', context={}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n G9jH.info('Entering route: HOME')\n G9jH.info('Rendering template: main.html')\n return TvZl('main.html')",
"def C_QL():\n return TvZl('home/index.html')",
"def vja_():\n return TvZl('index.html')",
"def kZiy():\n return Yxsy(open('app/templates/index.html').read())",
"def C... | [
"0.8245871",
"0.82334006",
"0.81446964",
"0.8079188",
"0.8044673",
"0.8006411",
"0.80061173",
"0.80061173",
"0.80061173",
"0.80061173",
"0.7997146",
"0.7997146",
"0.799322",
"0.799322",
"0.799322",
"0.799322",
"0.799322",
"0.799322",
"0.7991015",
"0.7941846",
"0.7934459",
"... | 0.76254034 | 41 |
Converts a Jsonc object into a string of JSONC. | def l3eR(uoPM):
return HjBM.dumps(mn_W(uoPM)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def skXv(uoPM, c31X=2):\n return HjBM.dumps(mn_W(uoPM), indent=c31X)",
"def Xxid(object):\n return qQXR.dumps(object, ensure_ascii=False)",
"def yLCI(YKHO):\n return qQXR.dumps(YKHO.to_json(), cls=Y4Gi)",
"def mn_W(uoPM):\n if isinstance(uoPM, iBjg):\n J7UI = {}\n for H5ew, BWXx in ... | [
"0.763648",
"0.70252323",
"0.68276",
"0.66171944",
"0.657067",
"0.657067",
"0.6552616",
"0.6547848",
"0.65143585",
"0.65031725",
"0.6478948",
"0.64694464",
"0.6409248",
"0.6409248",
"0.6409248",
"0.6409248",
"0.63917047",
"0.6386451",
"0.637484",
"0.6366294",
"0.63393253",
... | 0.9049657 | 0 |
A basic tokenizer to tokenize text into tokens. Feel free to change this to suit your need. | def zQwR(zFiD, ocBH=True):
zFiD = ZbWC.sub(b'<u>', b'', zFiD)
zFiD = ZbWC.sub(b'</u>', b'', zFiD)
zFiD = ZbWC.sub(b'\\[', b'', zFiD)
zFiD = ZbWC.sub(b'\\]', b'', zFiD)
V22M = []
ZrBi = ZbWC.compile(b'([.,!?"\'-<>:;)(])')
wB2T = ZbWC.compile(b'\\d')
for vBtp in zFiD.strip().lower().split(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(l5Ny):\n yAmx = W66f(l5Ny)\n return yAmx.tokens()",
"def NfQC(l5Ny):\n return l5Ny",
"def EwIn(l5Ny):\n return N3rN(l5Ny)",
"def wr3U(l5Ny):\n ug3y = Dhdw.RegexpTokenizer(pattern='\\\\s+', gaps=True)\n s2mk = ug3y.tokenize(l5Ny)\n return s2mk",
"def wr3U(YKHO, l5Ny):\n retu... | [
"0.78429085",
"0.7834927",
"0.78222364",
"0.7794322",
"0.77724826",
"0.77575785",
"0.7694519",
"0.76823807",
"0.76819015",
"0.7665016",
"0.76151913",
"0.7614053",
"0.7604672",
"0.7602172",
"0.7560801",
"0.75304157",
"0.75261813",
"0.7496317",
"0.7494546",
"0.74887586",
"0.746... | 0.0 | -1 |
Constructs a new MeasurementSource object. | def FIMM(YKHO, RHKR='', aC0l=''):
YKHO.doi = RHKR
YKHO.reference = aC0l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP: str, JZXy: str, BWXx: np.ndarray, ITS7: np.ndarray, rYO3: str):\n YKHO.name = mWFP\n YKHO.value = BWXx\n YKHO.time = ITS7\n YKHO.units = rYO3\n super().__init__(JZXy)",
"def FIMM(YKHO, mWFP: str, JZXy: str, BWXx: np.ndarray, ITS7: np.ndarray, rYO3: str, sB1G: str, yIVm: Dict[s... | [
"0.6051371",
"0.5905823",
"0.580296",
"0.5614142",
"0.54517186",
"0.543554",
"0.53793937",
"0.5364055",
"0.5316719",
"0.5305594",
"0.529147",
"0.5258558",
"0.5245637",
"0.52359635",
"0.52341366",
"0.5232506",
"0.52248144",
"0.51953",
"0.5191575",
"0.51896065",
"0.5187835",
... | 0.0 | -1 |
Skip the next instruction on accumulator (flag) zero. If the accumulator zero_flag is True then the IP is incremented by two to execute the next instruction. The addr is ignored and can be zero. | def j4hw(YKHO, rRzo):
if YKHO.alu.zero_flag:
YKHO.reg.ip_inc()
YKHO.reg.ip_inc() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EdbX(YKHO, EdbX):\n YKHO._evaluated = False\n YKHO._offset = EdbX\n return YKHO",
"def CAlz(YKHO, xqoZ=None):\n YKHO.set_seen()\n YKHO.params['comment'][YKHO.i] = YKHO.tvar.get()\n if YKHO.i > YKHO.N - 2:\n return False\n YKHO.i += 1\n while YKHO.i < YKHO.N - 1:\n print(... | [
"0.5458491",
"0.5413596",
"0.5221934",
"0.5162113",
"0.51294976",
"0.5075789",
"0.49938282",
"0.49684665",
"0.49445987",
"0.492374",
"0.49038655",
"0.48820913",
"0.4857151",
"0.48517048",
"0.48419204",
"0.4826519",
"0.4825338",
"0.48088127",
"0.48067182",
"0.4802142",
"0.4798... | 0.47976422 | 21 |
Skip the next instruction on zerox (flag) zero. If the register zerox_flag is True then the IP is incremented by two to execute the next instruction. The addr is ignored and can be zero. | def yg5o(YKHO, rRzo):
if YKHO.reg.zerox_flag:
YKHO.reg.ip_inc()
YKHO.reg.ip_inc() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IP4j(YKHO, VGCm):\n for WKvO in range(0, 15):\n for Ty9i in range(0, 255):\n VGCm.V_register[WKvO] = Ty9i\n for ERMG in range(0, 255):\n VGCm.opcode = 16384 | WKvO << 8 | ERMG\n for IhAk in [VGCm.memory_start, VGCm.memory_size - 4]:\n ... | [
"0.55173874",
"0.54714876",
"0.5233479",
"0.5209543",
"0.5185521",
"0.5167225",
"0.51315415",
"0.5054683",
"0.50486857",
"0.5045361",
"0.49615648",
"0.4943698",
"0.49386424",
"0.4933296",
"0.49279723",
"0.49018803",
"0.48996148",
"0.4887758",
"0.48672345",
"0.48550984",
"0.47... | 0.5585013 | 0 |
Create a gaussian sampling pattern where each point is sampled from a bivariate, concatenated normal distribution. | def QQZm(lnFo, o9Bw, eAYh, aMMs=5):
LSh8 = 0
Z5ot = lnFo
H4Ar = lnFo // 2
NTJI = lnFo // aMMs
X9C2 = eQSh.truncnorm((LSh8 - H4Ar) / NTJI, (Z5ot - H4Ar) / NTJI, loc=H4Ar, scale=NTJI)
Y3W3 = o9Bw
Pks3 = o9Bw // 2
W9fC = o9Bw // aMMs
Lys_ = eQSh.truncnorm((LSh8 - Pks3) / W9fC, (Y3W3 - P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vrz7():\n Os_7 = 10 * XTiz.random.chisquare(3)\n TVTK = XTiz.random.chisquare(3)\n JBMS = XTiz.random.uniform(-10 + TVTK, 10 - TVTK)\n WKvO = XTiz.linspace(-10, 10, 500)\n LVAh = Os_7 * XTiz.exp(-(WKvO - JBMS) ** 2 / TVTK ** 2)\n r5hI(LVAh, 0.1)\n return (WKvO, LVAh)",
"def IYu9(YKHO, WK... | [
"0.7181034",
"0.6878976",
"0.67922235",
"0.6783051",
"0.66139835",
"0.6597029",
"0.6592723",
"0.656582",
"0.6475827",
"0.643301",
"0.6408713",
"0.63915306",
"0.63869435",
"0.6341883",
"0.6322929",
"0.63126004",
"0.6296769",
"0.6215988",
"0.6208004",
"0.6206198",
"0.62055683",... | 0.0 | -1 |
Given any number of dicts, shallow copy and merge into a new dict, precedence goes to key value pairs in latter dicts. | def roQF(*c974):
Aofo = {}
for cmPJ in c974:
Aofo.update(cmPJ[0])
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0j7(*qIxc):\n return Pusg(lambda Csk6, KCHu: Csk6.update(KCHu) or Csk6, qIxc)",
"def W0j7(*qIxc):\n return Pusg(lambda Csk6, KCHu: Csk6.update(KCHu) or Csk6, qIxc)",
"def cyBQ(yLHq, RKYb, jRxN=True):\n if not isinstance(yLHq, dict) or not isinstance(RKYb, dict):\n if jRxN:\n ret... | [
"0.76667774",
"0.7660147",
"0.7478514",
"0.74524105",
"0.74524105",
"0.74524105",
"0.7374645",
"0.7340503",
"0.73065865",
"0.728",
"0.7274689",
"0.7254571",
"0.7251997",
"0.7251997",
"0.7251997",
"0.7251997",
"0.7251997",
"0.7251997",
"0.7232071",
"0.72219414",
"0.7216211",
... | 0.7103071 | 41 |
Annotate barplot with pvalues. | def ZWPu(FUjE, xKrI, H2v2, WvBH, GzWn=0.05, qUFU=0.05, Vb5F=10, Ua69=None, aNZO=None):
if type(FUjE) is str:
l5Ny = FUjE
else:
l5Ny = ''
XP5J = 0.05
while FUjE < XP5J:
l5Ny += '*'
XP5J /= 10.0
if Ua69 and len(l5Ny) == Ua69:
brea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YI04(aNZO, HHea=5):\n for mawX in aNZO.patches:\n AgRN = mawX.get_height()\n Yqag = mawX.get_x() + mawX.get_width() / 2\n n294 = HHea\n b4lR = 'bottom'\n if AgRN < 0:\n n294 *= -1\n b4lR = 'top'\n UXqs = '{:.1f}'.format(AgRN)\n aNZO.anno... | [
"0.722161",
"0.6651087",
"0.6488847",
"0.64184594",
"0.6393515",
"0.6376214",
"0.6118446",
"0.6086852",
"0.5960943",
"0.59527975",
"0.5939206",
"0.5854869",
"0.57599854",
"0.574859",
"0.56947863",
"0.56891966",
"0.56863445",
"0.5686152",
"0.5666118",
"0.5646012",
"0.56211436"... | 0.56895536 | 15 |
Remove extremes outside of scope eg. Aruba for NL Tenerife is kept within the scope, PT only inland | def NtHw(jQ3Z, ttbc):
for vxW9, azoT in ttbc.items():
for ZMlM, BWXx in azoT.items():
jQ3Z.loc[jQ3Z.ISO3166A2 == vxW9, ZMlM] = BWXx
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MmMx(amup, gqRb, ODP9):\n amup.samples[:] = [mvm2 for mvm2 in amup.samples if mvm2.distance >= gqRb and mvm2.distance <= ODP9]",
"def weJV(YKHO, hkS8='values'):\n sN3Z = [0]\n Rq6T = [0]\n for KCHu in YKHO:\n if KCHu is not None:\n sN3Z.append(KCHu.max(hkS8))\n Rq6T.a... | [
"0.5920364",
"0.58428663",
"0.58332807",
"0.5781893",
"0.5607702",
"0.5563302",
"0.5553395",
"0.55192244",
"0.5501502",
"0.54916805",
"0.54845417",
"0.5465621",
"0.5422628",
"0.54032284",
"0.5392566",
"0.5370169",
"0.53650063",
"0.5344582",
"0.53361547",
"0.5326246",
"0.53082... | 0.0 | -1 |
returns true if time since start method called is greater than the current time | def GmXu(YKHO):
return ITS7.time() > YKHO.end_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def abE8(YKHO, oMjx):\n return YKHO.start_time <= oMjx < YKHO.stop_time",
"def RHzP(YKHO) -> bool:\n return YKHO.start < rIAI.now()",
"def UE04(YKHO) -> bool:\n return ITS7.time() - YKHO._start >= YKHO.seconds",
"def HVyC(YKHO):\n return YKHO._t < ITS7()",
"def wAzx(YKHO):\n if YKHO.timeout ... | [
"0.75587463",
"0.7447426",
"0.7322484",
"0.72749513",
"0.7180824",
"0.7122764",
"0.71066934",
"0.71055126",
"0.70186746",
"0.6979792",
"0.69545984",
"0.6890423",
"0.68858856",
"0.6879124",
"0.68712676",
"0.68349",
"0.68119526",
"0.68085545",
"0.67744505",
"0.67661947",
"0.676... | 0.62234664 | 73 |
Preprocess texts and return lemmatized words params | def biH0(K9NE, HzTH, KN48=2, fAzx=['ADV', 'ADJ', 'VERB', 'NOUN', 'PART', 'NUM', 'PROPN']):
HjdX = ['-', 'i\\.e\\.']
Ylbp = list()
joZU = {'call'}
for vIwR in HzTH:
l5Ny = ZbWC.sub('|'.join(HjdX), ' ', vIwR.lower())
A97Q = K9NE(l5Ny)
Ylbp += [eOtH.lemma_ for eOtH in A97Q if eOtH.p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X5wq(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = None\n if YKHO.lemmatize_method == 'wordnet':\n zLya = [YKHO.lemmatizer.lemmatize(eOtH) for eOtH in s2mk]\n else:\n zLya = [YKHO.lemmatizer.stem(eOtH) for eOtH in s2mk]\n YKHO.doc = ' '.join(zLya)",
"def ZvG6(Novh):\n IChv = ... | [
"0.76077497",
"0.7535882",
"0.7332237",
"0.7323411",
"0.7321157",
"0.72312474",
"0.72027",
"0.71990985",
"0.7191803",
"0.718809",
"0.7180629",
"0.71725553",
"0.71674454",
"0.7139645",
"0.7139337",
"0.71316224",
"0.71124774",
"0.7100935",
"0.7079784",
"0.7046905",
"0.69840753"... | 0.0 | -1 |
Returns an initializer that generates tensors with a single value. | def PmBN(BWXx=0.0, yDqo=m1c7.float32):
def dcwf(ROpF, yDqo=fA67(yDqo)):
return cACa.constant(BWXx, dtype=yDqo, shape=ROpF)
return dcwf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MuED(DbxN, ROpF):\n if DbxN == 'zero':\n return ZylS.zeros(ROpF)\n elif DbxN == 'he':\n IddF = oyIN.prod(ROpF[0:-1])\n M1Jx = 1 / oyIN.sqrt(IddF)\n return ZylS.random_uniform(ROpF, minval=-M1Jx, maxval=M1Jx)",
"def cbML(WKvO):\n return E7LX.constant_value(IPme.convert_to_... | [
"0.6627922",
"0.615838",
"0.6008107",
"0.6008107",
"0.5984663",
"0.59399194",
"0.5935742",
"0.5860273",
"0.5840129",
"0.5839089",
"0.5685631",
"0.56294525",
"0.56222284",
"0.560261",
"0.55869544",
"0.5577956",
"0.5568961",
"0.5558264",
"0.55410224",
"0.5514685",
"0.5513896",
... | 0.63778627 | 1 |
Returns an initializer that generates a truncated normal distribution. These values are similar to values from a `random_normal_initializer` except that values more than two standard deviations from the mean are discarded and redrawn. This is the recommended initializer for neural network weights and filters. | def Yj9F(JBMS=0.0, z2bo=1.0, yokr=None, yDqo=m1c7.float32):
def dcwf(ROpF, yDqo=fA67(yDqo)):
return oEXi.truncated_normal(ROpF, JBMS, z2bo, yDqo, seed=yokr)
return dcwf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nYtd(vhpA, JBMS=0, z2bo=1):\n B2mP = vhpA.numel()\n rr0Y = ht2j.randint(0, 2 ** 32 - 1, (1, 1)).view(-1).item()\n R3yv = nRUW(rr0Y)\n gGnb = pWm4.rvs(a=-2, b=2, loc=JBMS, scale=z2bo, size=B2mP, random_state=R3yv)\n gGnb = gGnb.reshape(tuple(vhpA.size()))\n jupk = ht2j.from_numpy(gGnb).type_as... | [
"0.77179456",
"0.7668178",
"0.7668178",
"0.76566315",
"0.7642495",
"0.7544176",
"0.74893165",
"0.73554987",
"0.734346",
"0.7285099",
"0.70847297",
"0.6747321",
"0.67461723",
"0.6746049",
"0.67441225",
"0.67441225",
"0.66025716",
"0.6596376",
"0.6525444",
"0.6525444",
"0.64900... | 0.854098 | 0 |
Returns an initializer that generates tensors without scaling variance. When initializing a deep network, it is in principle advantageous to keep the scale of the input variance constant, so it does not explode or diminish by reaching the final layer. If the input is `x` and the operation `x W`, and we want to initiali... | def i8WW(aM8h=1.0, yokr=None, yDqo=m1c7.float32, RfQ_=None):
def dcwf(ROpF, yDqo=fA67(yDqo)):
s4iN = RfQ_ if RfQ_ is not None else ROpF
zi3C = 1.0
for tpio in s4iN[:-1]:
zi3C *= float(tpio)
JCoA = epAf.sqrt(3 / zi3C) * aM8h
return oEXi.random_uniform(ROpF, -JCoA,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KY82(M1Jx=1.0, jDK_=0):\n\n def dcwf(ROpF, yDqo=None, TLZu=None):\n yvT9 = oyIN.random.randn(*ROpF).astype(oyIN.float32)\n yvT9 *= M1Jx / oyIN.sqrt(oyIN.square(yvT9).sum(axis=jDK_, keepdims=True))\n return ZylS.constant(yvT9)\n return dcwf",
"def MuED(DbxN, ROpF):\n if DbxN == '... | [
"0.6336408",
"0.63162714",
"0.6254378",
"0.6108202",
"0.6093799",
"0.60872686",
"0.60849917",
"0.595789",
"0.59293914",
"0.5887913",
"0.5887913",
"0.5865913",
"0.58284",
"0.58144355",
"0.576156",
"0.5744148",
"0.5726834",
"0.57254696",
"0.572306",
"0.57077867",
"0.5687445",
... | 0.63331884 | 1 |
Create a random tensor such that backprop neither vanishes nor explodes. | def j5Hi(ROpF, Kz5H, yDqo=m1c7.float32, yokr=None, mWFP='random_walk'):
assert len(ROpF) == 2, 'Random Walk initialization only supports 2D tensors.'
Sqw_ = ROpF[0]
if Kz5H == qkSJ.tanh:
oLv0 = 1.13
elif Kz5H == _WqI.identity:
oLv0 = epAf.exp(1.0 / (2.0 * Sqw_))
elif Kz5H == rXs0.rel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8la(YKHO, vhpA):\n OAAg = ZylS.cast(ZylS.floor(ZylS.random.uniform([]) + 0.5), ZylS.bool)\n KqsU = ZylS.cond(OAAg, lambda: vhpA, lambda: -vhpA)\n return KqsU",
"def IiXK(XP5J):\n return oyIN.clip(oyIN.random.normal(0, 3, XP5J), 0, None)",
"def ctXN(JxU2):\n Q7Be = ZylS.random_uniform(shape=... | [
"0.6999135",
"0.6305865",
"0.6047804",
"0.59519315",
"0.59018725",
"0.58809227",
"0.57793576",
"0.573209",
"0.5730425",
"0.5714348",
"0.57059866",
"0.5691614",
"0.5666119",
"0.5656598",
"0.5636389",
"0.5631424",
"0.5609406",
"0.5562518",
"0.555518",
"0.55262125",
"0.55052936"... | 0.0 | -1 |
Generate a tensor used to initialize a variable. | def nrOS(YKHO, ROpF, yDqo=m1c7.float32):
return oEXi._random_walk(ROpF, YKHO._nonlinearity, yDqo, seed=YKHO._seed) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MuED(DbxN, ROpF):\n if DbxN == 'zero':\n return ZylS.zeros(ROpF)\n elif DbxN == 'he':\n IddF = oyIN.prod(ROpF[0:-1])\n M1Jx = 1 / oyIN.sqrt(IddF)\n return ZylS.random_uniform(ROpF, minval=-M1Jx, maxval=M1Jx)",
"def YQk0(lJf5: np.ndarray, *qIxc, **B2fa):\n assert isinstanc... | [
"0.7069225",
"0.6859073",
"0.6498078",
"0.64272267",
"0.64219946",
"0.64098",
"0.6369168",
"0.6353301",
"0.63508284",
"0.63096964",
"0.63017136",
"0.62703353",
"0.6246332",
"0.61957157",
"0.6187092",
"0.6187092",
"0.61342996",
"0.607928",
"0.6058933",
"0.60520655",
"0.6033234... | 0.0 | -1 |
Returns whether a user is authenticated or not. The default is for this method to always return true for subclasses of UserBase and False for subclasses of AnonymousUserBase | def rts1(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO):\n return YKHO.user is not None and YKHO.state == yTCL.authenticated",
"def rts1(YKHO):\n return bool(YKHO._authenticated)",
"def rts1(YKHO) -> bool:\n return YKHO._authenticated",
"def rts1(YKHO):\n return YKHO.authenticated",
"def rts1(YKHO):\n return YKHO.authenticated",
... | [
"0.8137904",
"0.79575855",
"0.7907344",
"0.7900938",
"0.7900938",
"0.7900938",
"0.7900938",
"0.7900938",
"0.7900938",
"0.7900938",
"0.7900938",
"0.7900938",
"0.7900938",
"0.7900938",
"0.7900938",
"0.7900938",
"0.78515196",
"0.77672476",
"0.7602648",
"0.74600065",
"0.7435144",... | 0.77123046 | 21 |
Returns a boolean of whether the raw_password was correct. Handles encryption formats behind the scenes. | def EvfH(Ud05, JqyM):
vRyL, NTfD, lNLE = JqyM.split('$')
return lNLE == OMIw(vRyL, NTfD, Ud05) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvfH(YKHO, Ud05):\n return EvfH(Ud05, YKHO.password)",
"def e3F7(YKHO, jTXt):\n return axsU().check_password_hash(YKHO.password, jTXt)",
"def tg18(YKHO, jTXt):\n return YKHO._password == TDEB(jTXt, leDs(str(YKHO._salt)))",
"def sNjs(YKHO, jTXt):\n return YKHO.PASSWORD == jTXt",
"def EvfH(YK... | [
"0.7857066",
"0.737345",
"0.7331467",
"0.7231976",
"0.7169536",
"0.7167939",
"0.7099501",
"0.70844895",
"0.7061078",
"0.7013788",
"0.6930202",
"0.69245034",
"0.6905197",
"0.69042325",
"0.6874329",
"0.68688875",
"0.685561",
"0.6843229",
"0.6842834",
"0.6842375",
"0.6816546",
... | 0.7618427 | 2 |
Sets the password of the user. Alorithm | def G3s8(YKHO, Ud05):
if Ud05 is None:
YKHO.set_unusable_password()
else:
import random
vRyL = dwcj
NTfD = OMIw(vRyL, str(random.random()), str(random.random()))[:5]
lNLE = OMIw(vRyL, NTfD, Ud05)
YKHO.password = '%s$%s$%s' % (vRyL, NTfD, lNLE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zZft(YKHO, zN5h):\n pass",
"def G3s8(YKHO, jTXt):\n YKHO.password = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.PASS = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.password_hash = vT87(f'{jTXt}{YKHO.user_salt}')",
"def G3s8(YKHO, jTXt):\n YKHO.password = YKHO.hash_password(jTXt)",
"def m_qJ(YKHO, jTX... | [
"0.875472",
"0.83630127",
"0.8311807",
"0.8269209",
"0.8245993",
"0.82397026",
"0.82305145",
"0.8226256",
"0.8184368",
"0.81251776",
"0.8113186",
"0.8099338",
"0.8099338",
"0.80857646",
"0.806437",
"0.8048305",
"0.8044547",
"0.8025353",
"0.8016113",
"0.7981405",
"0.7967984",
... | 0.720649 | 69 |
Returns a boolean of whether the raw_password was correct. Handles encryption formats behind the scenes. | def EvfH(YKHO, Ud05):
return EvfH(Ud05, YKHO.password) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvfH(Ud05, JqyM):\n vRyL, NTfD, lNLE = JqyM.split('$')\n return lNLE == OMIw(vRyL, NTfD, Ud05)",
"def EvfH(Ud05, JqyM):\n vRyL, NTfD, lNLE = JqyM.split('$')\n return lNLE == OMIw(vRyL, NTfD, Ud05)",
"def e3F7(YKHO, jTXt):\n return axsU().check_password_hash(YKHO.password, jTXt)",
"def tg18... | [
"0.7619669",
"0.7619669",
"0.7372876",
"0.7331418",
"0.7230792",
"0.7168213",
"0.71667486",
"0.7099707",
"0.7084301",
"0.7061001",
"0.70148826",
"0.6929653",
"0.6923825",
"0.69043785",
"0.690359",
"0.68750536",
"0.6868129",
"0.6855925",
"0.6844144",
"0.6842196",
"0.684199",
... | 0.7856797 | 0 |
Get the user from a user_id. If a backend_name is given then the backend with that name will be used. If a backend_name is not given (default) then all backends are tried. | def TKWP(uJjO, dor7=None):
if uJjO is not None:
if dor7:
zxMY = [(dor7, V_ye(dor7))]
else:
zxMY = rB7g()
for mWFP, k0B4 in zxMY:
for DDLl in k0B4:
CBIr = DDLl.get_user(user_id=uJjO)
if CBIr:
CBIr._backend... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DjFc(NtEF, dor7):\n CBIr = FYrf.DjangoStorage.user.user_model().objects.get(username=NtEF)\n kUBT = FYrf.DjangoStorage.user.get_social_auth_for_user(CBIr, provider=dor7)\n if not kUBT:\n raise mv1M.DoesNotExist\n CBIr.backend = kT1P.Registry.get_by_backend_name(dor7).get_authentication_backe... | [
"0.7111483",
"0.6955441",
"0.6939471",
"0.68387264",
"0.6819894",
"0.6815466",
"0.68085545",
"0.6796037",
"0.67802584",
"0.6777591",
"0.6734524",
"0.67315",
"0.67286944",
"0.6726206",
"0.67216116",
"0.6705266",
"0.6702021",
"0.66796607",
"0.66796607",
"0.66796607",
"0.6679660... | 0.8500259 | 0 |
Get the axes coordinate system bounding boxes for each city. | def t1pY(YKHO, jQ3Z, OA3_, GAJY, aNZO):
LZpg = aNZO.get_figure()
tPSD, BPSJ = (LZpg.get_figwidth(), LZpg.get_figheight())
QrM1.sca(aNZO)
StJO, D7Yo, xv37, pokI = QrM1.axis()
qwPn = aNZO.get_position().bounds
A9Oy = QrM1.figure(figsize=(tPSD, BPSJ))
CB4W = A9Oy.add_axes(qwPn)
A9Oy.canvas.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1GJ(YKHO):\n JQRm = YKHO.ij_to_latlon(-1, -1)\n jjWr = YKHO.ij_to_latlon(-1, YKHO.domain_size[1] + 1)\n DtyP = YKHO.ij_to_latlon(YKHO.domain_size[0] + 1, YKHO.domain_size[1] + 1)\n Cuj6 = YKHO.ij_to_latlon(YKHO.domain_size[0] + 1, -1)\n return (JQRm, jjWr, DtyP, Cuj6)",
"def JcC1(YKHO):\n ... | [
"0.7102441",
"0.68526953",
"0.6833005",
"0.6780483",
"0.6707895",
"0.6667037",
"0.66374344",
"0.6618209",
"0.6618209",
"0.6594542",
"0.6590478",
"0.6568437",
"0.6559934",
"0.6500408",
"0.64600563",
"0.6453037",
"0.64077026",
"0.63975704",
"0.63873124",
"0.6377541",
"0.6365121... | 0.7309756 | 0 |
Returns Using the arrow time library, get_time_last_week returns the exact time from 1 week ago. | def YJLt():
vHj7 = LgWF.utcnow()
return vHj7.shift(weeks=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def to5W():\n yo7_ = qcWV.date.today()\n K6CF = yo7_ - qcWV.timedelta(days=7)\n return K6CF - qcWV.timedelta(days=K6CF.isoweekday() - 1)",
"def K6CF(yo7_: Optional[datetime]=None, yl4j: Any=None) -> AzJI[qcWV, qcWV]:\n if yo7_ is None:\n yo7_ = qcWV.utcnow()\n _9an = yo7_ - fCoM(weeks=1, da... | [
"0.72086954",
"0.68326217",
"0.66397226",
"0.6628594",
"0.6378431",
"0.6200789",
"0.6200194",
"0.61299044",
"0.6091091",
"0.6062652",
"0.6013681",
"0.5949774",
"0.59155774",
"0.59052527",
"0.5857257",
"0.58545804",
"0.5853213",
"0.5820008",
"0.57480353",
"0.57320786",
"0.5719... | 0.8797187 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(KndY))
QrM1.xticks(wIWT, K... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.81920755",
"0.8093736",
"0.8028212",
"0.8017333",
"0.79923165",
"0.7989431",
"0.79789335",
"0.7974398",
"0.795948",
"0.79555666",
"0.7935652",
"0.7932704",
"0.7932632",
"0.7929465",
"0.7924336",
"0.7922666",
"0.79221356",
"0.7921299",
"0.79209703",
"0.7920307",
"0.7916008"... | 0.0 | -1 |
Test that deleting a vendor succeeds | def OmhX(YKHO, x0hE, lYUQ, v_zk, AyaL):
V3AY = AyaL
MkeE = YKHO.authenticate_user(v_zk, nBDK)
geh0 = x0hE.delete(YKHO.vendor_url(V3AY[0].id, 'soft'), **MkeE)
TKCe = KKZo.objects.filter(id=V3AY[0].id).first()
_hkX = geh0.data
assert geh0.status_code == 200
assert _hkX['status'] == 'success'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h1zM(YKHO, x0hE, lYUQ, v_zk, AyaL):\n V3AY = AyaL\n MkeE = YKHO.authenticate_user(v_zk, nBDK)\n geh0 = x0hE.delete(YKHO.vendor_url(V3AY[0].id, 'hard'), **MkeE)\n _hkX = geh0.data\n assert geh0.status_code == 200\n assert _hkX['status'] == 'success'\n assert _hkX['message'] == iGDk['P_DELET... | [
"0.7799253",
"0.7661258",
"0.7661258",
"0.7494544",
"0.72651595",
"0.72016686",
"0.7159629",
"0.71584386",
"0.7120205",
"0.7118483",
"0.7116047",
"0.71136045",
"0.7079588",
"0.7051335",
"0.70446366",
"0.698235",
"0.695312",
"0.6908165",
"0.68940604",
"0.68648523",
"0.68387246... | 0.78644544 | 0 |
Test that deleting an already deleted vendor fails | def T6jr(YKHO, x0hE, lYUQ, v_zk, AyaL):
V3AY = AyaL
V3AY[0].deleted = True
V3AY[0].save()
MkeE = YKHO.authenticate_user(v_zk, nBDK)
geh0 = x0hE.delete(YKHO.vendor_url(V3AY[0].id, 'soft'), **MkeE)
_hkX = geh0.data
assert geh0.status_code == 404
assert _hkX['status'] == 'error'
assert ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d9az(YKHO):\n pass",
"def d9az(YKHO):\n pass",
"def W_kM(YKHO):\n Lx3t = YKHO.create_product()\n Ldyl = YKHO.product_obj.search([])\n YKHO.assertIn(Lx3t, Ldyl)\n Lx3t.unlink()\n YKHO.assertNotIn(Lx3t.exists(), Ldyl)",
"def h1zM(YKHO, x0hE, lYUQ, v_zk, AyaL):\n V3AY = AyaL\n Mke... | [
"0.75459623",
"0.75459623",
"0.7452192",
"0.74075365",
"0.7372252",
"0.72235596",
"0.72165644",
"0.71347064",
"0.71295965",
"0.7115089",
"0.7114658",
"0.7094146",
"0.7082701",
"0.70716214",
"0.6993446",
"0.69867593",
"0.69623595",
"0.6959551",
"0.6947394",
"0.69199646",
"0.68... | 0.7647993 | 0 |
Test that soft deleting an invalid vendor fails | def iwRe(YKHO, x0hE, lYUQ, v_zk, AyaL):
MkeE = YKHO.authenticate_user(v_zk, nBDK)
geh0 = x0hE.delete(YKHO.vendor_url('invalid', 'soft'), **MkeE)
_hkX = geh0.data
assert geh0.status_code == 404
assert _hkX['status'] == 'error'
assert _hkX['message'] == iGDk['NOT_FOUND'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T6jr(YKHO, x0hE, lYUQ, v_zk, AyaL):\n V3AY = AyaL\n V3AY[0].deleted = True\n V3AY[0].save()\n MkeE = YKHO.authenticate_user(v_zk, nBDK)\n geh0 = x0hE.delete(YKHO.vendor_url(V3AY[0].id, 'soft'), **MkeE)\n _hkX = geh0.data\n assert geh0.status_code == 404\n assert _hkX['status'] == 'error... | [
"0.7583298",
"0.7297901",
"0.7297901",
"0.71233684",
"0.7014351",
"0.697483",
"0.69399303",
"0.6892412",
"0.67867446",
"0.67510253",
"0.67497027",
"0.6725129",
"0.6677541",
"0.6651298",
"0.6626273",
"0.6564269",
"0.6551278",
"0.6524578",
"0.6523663",
"0.6521882",
"0.64992213"... | 0.7316185 | 1 |
Test that hard deleting a vendor succeeds | def h1zM(YKHO, x0hE, lYUQ, v_zk, AyaL):
V3AY = AyaL
MkeE = YKHO.authenticate_user(v_zk, nBDK)
geh0 = x0hE.delete(YKHO.vendor_url(V3AY[0].id, 'hard'), **MkeE)
_hkX = geh0.data
assert geh0.status_code == 200
assert _hkX['status'] == 'success'
assert _hkX['message'] == iGDk['P_DELETED'].format(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d9az(YKHO):\n pass",
"def d9az(YKHO):\n pass",
"def T6jr(YKHO, x0hE, lYUQ, v_zk, AyaL):\n V3AY = AyaL\n V3AY[0].deleted = True\n V3AY[0].save()\n MkeE = YKHO.authenticate_user(v_zk, nBDK)\n geh0 = x0hE.delete(YKHO.vendor_url(V3AY[0].id, 'soft'), **MkeE)\n _hkX = geh0.data\n asser... | [
"0.7660776",
"0.7660776",
"0.7389471",
"0.7323165",
"0.71299076",
"0.7085943",
"0.70615387",
"0.70555806",
"0.7034082",
"0.7031129",
"0.7020148",
"0.69702536",
"0.6954879",
"0.69524693",
"0.69414586",
"0.69004005",
"0.68843096",
"0.68721646",
"0.6847438",
"0.6811688",
"0.6809... | 0.7479289 | 2 |
Test that hard deleting an invalid vendor fails | def Fv8N(YKHO, x0hE, lYUQ, v_zk, AyaL):
MkeE = YKHO.authenticate_user(v_zk, nBDK)
geh0 = x0hE.delete(YKHO.vendor_url('invalid', 'hard'), **MkeE)
_hkX = geh0.data
assert geh0.status_code == 404
assert _hkX['status'] == 'error'
assert _hkX['message'] == iGDk['NOT_FOUND'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d9az(YKHO):\n pass",
"def d9az(YKHO):\n pass",
"def T6jr(YKHO, x0hE, lYUQ, v_zk, AyaL):\n V3AY = AyaL\n V3AY[0].deleted = True\n V3AY[0].save()\n MkeE = YKHO.authenticate_user(v_zk, nBDK)\n geh0 = x0hE.delete(YKHO.vendor_url(V3AY[0].id, 'soft'), **MkeE)\n _hkX = geh0.data\n asser... | [
"0.73035026",
"0.73035026",
"0.72201896",
"0.7124586",
"0.70758057",
"0.6979314",
"0.6929329",
"0.6891647",
"0.6888303",
"0.6761945",
"0.67355156",
"0.67230034",
"0.67109",
"0.6703731",
"0.66598463",
"0.6619669",
"0.6597893",
"0.6521848",
"0.6498321",
"0.6485977",
"0.6470646"... | 0.7105173 | 4 |
cosine learning rate decay cosine learning rate decay with parameters proposed FixMatch base_lr cos( (7\pi cur_step) / (16 max_warmup_iter) ) | def WPxz(aF2y, T58m, Kdv0):
return aF2y * epAf.cos(7 * epAf.pi * Kdv0 / (16 * T58m)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VrJ0(YKHO, aF2y):\n wbn8 = 10\n UTSl = 500\n Zm8p = 0.001\n if YKHO.steps < wbn8:\n tspZ = aF2y * (YKHO.steps + 1) / wbn8\n elif YKHO.steps < wbn8 + UTSl:\n YPaw = YKHO.steps - wbn8\n vexM = 0.5 * (1 + epAf.cos(epAf.pi * YPaw / UTSl))\n tspZ = aF2y * vexM + Zm8p * (1 ... | [
"0.76215017",
"0.71308315",
"0.69857293",
"0.68086326",
"0.6747723",
"0.6626933",
"0.6619074",
"0.6434229",
"0.62120056",
"0.6203357",
"0.6032085",
"0.6017297",
"0.6017297",
"0.6016436",
"0.6016436",
"0.6001032",
"0.5964419",
"0.5964419",
"0.5959927",
"0.5958887",
"0.5956513"... | 0.79123783 | 0 |
Compute precision, recall and F_beta score of the predicted labels Precision = tp / (tp+fp) where tp is the number of true positives (correctly labelled prediction) and fp is the false positives. Recall is tp (tp + fn), where fn is the number of false negatives (incorrectly labelled as another class) F_beta is a weight... | def eBGR(aMgO, ibJh, UqYS, S8vG='micro'):
Crrw = oyIN.unique(ibJh)
UVU9 = len(Crrw)
HRJ_ = aMgO == ibJh
kH7Z = ibJh[HRJ_].astype(oyIN.int64)
ibJh = ibJh.astype(oyIN.int64)
aMgO = aMgO.astype(oyIN.int64)
if len(kH7Z):
Ebo3 = oyIN.bincount(kH7Z, None, minlength=UVU9).astype(oyIN.float3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eBGR(aJu6, PjQx, UqYS=1, Crrw=None, uxJJ=None, S8vG=None):\n cZ5Z = {}\n for vC9B in Crrw:\n cZ5Z[vC9B] = {'tp': 0.0, 'fp': 0.0, 'fn': 0.0, 'support': 0.0}\n for a1PO, XP5J in zip(aJu6, PjQx):\n if a1PO == XP5J:\n cZ5Z[a1PO]['tp'] += 1\n else:\n cZ5Z[a1PO]['f... | [
"0.7605206",
"0.7575995",
"0.75451744",
"0.7531215",
"0.72964346",
"0.7291718",
"0.7131089",
"0.7008994",
"0.6963229",
"0.69260466",
"0.68862015",
"0.6874378",
"0.6859457",
"0.68544525",
"0.67534006",
"0.67511564",
"0.6750841",
"0.6718821",
"0.6715146",
"0.6712433",
"0.669633... | 0.7687375 | 0 |
Estimate n dimensional gaussian parameters for dataset X | def HFmk(EcVT):
yGTL = EcVT.mean(axis=0)
SRYB = EcVT.std(axis=0) ** 2.0
return (yGTL, SRYB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FDP0(EcVT):\n r8hN, exwG = EcVT.shape\n yGTL = JBMS(EcVT, axis=0)\n WTkW = gbZI(EcVT, yGTL)\n return (yGTL, WTkW)",
"def cEZ4(EcVT):\n yGTL = EcVT.mean(0, keepdims=True).T\n UkX0 = EcVT.var(0, keepdims=True).T\n return (yGTL, UkX0)",
"def cEZ4(EcVT):\n yGTL = oyIN.mean(EcVT, axis=0)... | [
"0.7689894",
"0.7635076",
"0.743624",
"0.7307594",
"0.72897595",
"0.70455045",
"0.70326394",
"0.6980961",
"0.68036413",
"0.67783725",
"0.6752891",
"0.67495954",
"0.6725792",
"0.6713383",
"0.6713383",
"0.669505",
"0.66663307",
"0.66610616",
"0.6656524",
"0.66255856",
"0.661270... | 0.80568403 | 0 |
Transform XML msg into dict. | def fZlY(YKHO):
def CBUc(qv1X, H5ew):
if qv1X.find(H5ew) != None:
return qv1X.find(H5ew).text
tO9_ = {}
qv1X = cGyw.fromstring(YKHO.request.body.decode('utf-8'))
tO9_['ToUserName'] = CBUc(qv1X, 'ToUserName')
tO9_['FromUserName'] = CBUc(qv1X, 'FromUserName')
tO9_['CreateTime'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dict(YKHO):\n return zFDm.parse(str(YKHO))",
"def Y0S6(QToG):\n if not QToG:\n return\n W1fk = dict(((aUGN.tag, _1DY(aUGN.text)) for aUGN in LL_W.fromstring(QToG)))\n W1fk['raw'] = QToG\n W1fk['type'] = W1fk.pop('MsgType').lower()\n Logs = a41n.get(W1fk['type'], spK6)\n return Log... | [
"0.6497989",
"0.62789243",
"0.62068594",
"0.61998916",
"0.6168027",
"0.6102012",
"0.6079798",
"0.5970177",
"0.59243935",
"0.5700769",
"0.566267",
"0.56518805",
"0.5634845",
"0.5613529",
"0.5570247",
"0.55678165",
"0.5543807",
"0.55166274",
"0.54913425",
"0.5471225",
"0.545504... | 0.66610605 | 0 |
Return true if the ride can be taken at the given start_time. | def M8Ij(YKHO, SWox):
if SWox <= YKHO.earliest_start:
return True
else:
return SWox - YKHO.earliest_start <= YKHO.buffer_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Olka(YKHO, yKcO, Os4s) -> bool:\n return YKHO.board(Os4s) == 0 and YKHO.board(yKcO) > 0 and YKHO._check_zone_locks(yKcO, Os4s) and YKHO.exists_path(yKcO, Os4s)",
"def zOG8(YKHO):\n return isinstance(YKHO._start, qcWV.datetime)",
"def ElHJ(YEnM):\n if YEnM.start_time:\n if YEnM.end_time:\n ... | [
"0.6419667",
"0.6325205",
"0.6002013",
"0.59686935",
"0.59500194",
"0.5915359",
"0.58983153",
"0.58698255",
"0.5863673",
"0.5850344",
"0.581316",
"0.57416785",
"0.57410574",
"0.5731883",
"0.57257015",
"0.57130295",
"0.5694015",
"0.56868196",
"0.56867737",
"0.5662277",
"0.5655... | 0.6158499 | 2 |
Image segmentation tf.data.Dataset constructor for batching from tfrecords. | def FIMM(YKHO, DewK: List[str], Kmi0: int, VGt2=3, Mqdy=1, yokr=0, P7jN: Optional[Augmenter]=None, oDyz: bool=True):
YKHO.tfrecord_paths = DewK
YKHO.num_shards = len(YKHO.tfrecord_paths)
YKHO.tfrecord_paths_tensor = ZylS.constant(YKHO.tfrecord_paths)
YKHO.image_width = Kmi0
YKHO.image_channels = VGt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SeVZ(YKHO, lpha, AGPF, KAfx):\n del lpha\n iumf = eveA(YKHO.name, AGPF, KAfx)\n\n def bKOT(AIu6):\n j1iA = YKHO.IMAGE_SIZE_PX\n bySB = ZylS.parse_single_example(AIu6, features={'image_raw': ZylS.FixedLenFeature([], ZylS.string), 'label': ZylS.FixedLenFeature([], ZylS.int64), 'height': Zy... | [
"0.7134502",
"0.67391247",
"0.6677995",
"0.66459924",
"0.65505475",
"0.65086603",
"0.64664376",
"0.6451773",
"0.64167744",
"0.6394336",
"0.6383612",
"0.63396984",
"0.63367414",
"0.633545",
"0.6325775",
"0.6309748",
"0.6290949",
"0.62855977",
"0.627523",
"0.62557524",
"0.62267... | 0.65276515 | 5 |
Parse a TF Example into corresponding image and mask. Positive class is assumed to be encoded as the int value 255 in tfrecords. | def m6aZ(YKHO, PU1l, wDuv: bool=False):
bySB = {'image': ZylS.FixedLenFeature([], ZylS.string), 'mask': ZylS.FixedLenFeature([], ZylS.string)}
TlBS = ZylS.parse_single_example(PU1l, bySB)
LNo8 = ZylS.decode_raw(TlBS['image'], YKHO.serialized_image_raw_dtype)
LNo8 = ZylS.reshape(LNo8, (YKHO.image_width, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wvEv(YKHO, lGjS):\n bySB = {'image/height': ZylS.FixedLenFeature([], ZylS.int64), 'image/width': ZylS.FixedLenFeature([], ZylS.int64), 'image/colorspace': ZylS.FixedLenFeature([], ZylS.string), 'image/channels': ZylS.FixedLenFeature([], ZylS.int64), 'image/class/label': ZylS.FixedLenFeature([], ZylS.int64),... | [
"0.74753284",
"0.74345124",
"0.73909676",
"0.7358628",
"0.73342675",
"0.72879314",
"0.7251159",
"0.7187995",
"0.7168596",
"0.7160668",
"0.71130675",
"0.7040652",
"0.7018271",
"0.6978618",
"0.69366145",
"0.6862786",
"0.6860476",
"0.6860038",
"0.6828324",
"0.68028533",
"0.67198... | 0.7975932 | 0 |
Parse a TF Example into corresponding image and mask. Positive class is assumed to be encoded as the int value 255 in tfrecords. | def ZT_w(PU1l, Kmi0: int=224, VGt2: int=3, Mqdy: int=1000, wDuv: bool=False, ev22=ZylS.float64):
bySB = {'image': ZylS.FixedLenFeature([], ZylS.string), 'mask': ZylS.FixedLenFeature([], ZylS.string)}
TlBS = ZylS.parse_single_example(PU1l, bySB)
LNo8 = ZylS.decode_raw(TlBS['image'], ZylS.uint8)
LNo8 = Zy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m6aZ(YKHO, PU1l, wDuv: bool=False):\n bySB = {'image': ZylS.FixedLenFeature([], ZylS.string), 'mask': ZylS.FixedLenFeature([], ZylS.string)}\n TlBS = ZylS.parse_single_example(PU1l, bySB)\n LNo8 = ZylS.decode_raw(TlBS['image'], YKHO.serialized_image_raw_dtype)\n LNo8 = ZylS.reshape(LNo8, (YKHO.imag... | [
"0.7975776",
"0.7475104",
"0.74351525",
"0.73899114",
"0.7358636",
"0.7333993",
"0.7251172",
"0.7188392",
"0.7168503",
"0.7160087",
"0.71133935",
"0.70410377",
"0.7017461",
"0.6977531",
"0.693613",
"0.6862388",
"0.68610686",
"0.68592453",
"0.68287444",
"0.68029094",
"0.671887... | 0.7288104 | 6 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(QIIL, YKHO).__init__(*qIxc, **c_sp)
if YKHO.group is None:
YKHO.group = ''
if YKHO.rand_start is None:
YKHO.rand_start = False
if YKHO.current_start is None:
YKHO.current_start = False
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.77937967",
"0.77195275",
"0.77195275",
"0.7685702",
"0.762502",
"0.7562939",
"0.74384665",
"0.7416083",
"0.73515767",
"0.73078126",
"0.7280228",
"0.723719",
"0.72265446",
"0.72230625",
"0.72230625",
"0.7218876",
"0.721051",
"0.721051",
"0.721051",
"0.721051",
"0.721051",
... | 0.0 | -1 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(UDfM, YKHO).__init__(*qIxc, **c_sp)
if YKHO.error is None:
YKHO.error = 0
if YKHO.start_pos is None:
YKHO.start_pos = []
if YKHO.target_pos is None:
YKHO.target_pos = []
if YKHO.plans is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.7794164",
"0.7721611",
"0.7721611",
"0.7687804",
"0.7626575",
"0.7565245",
"0.74406534",
"0.74182206",
"0.73521465",
"0.73088044",
"0.72807634",
"0.7238138",
"0.7227902",
"0.72254795",
"0.72254795",
"0.7219563",
"0.7212849",
"0.7212849",
"0.7212849",
"0.7212849",
"0.721284... | 0.0 | -1 |
When passed a number returns a list of all prime numbers < n | def Z1x9(exwG):
aPd6, E3D9 = ([2], [WKvO for WKvO in range(3, int(exwG), 2)])
if exwG <= 2:
print('There are no primes below 2')
return None
for YRbF in range(3, int(exwG), 2):
if E3D9[YRbF // 2 - 1] != 0 and T1qg(YRbF):
aPd6.append(YRbF)
for r845 in range(YRb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rPed(exwG):\n return [YRbF for YRbF in Ni9Y(1, exwG + 1) if kU5Q(YRbF)]",
"def _a2T(exwG):\n JscZ = []\n for YRbF in range(exwG):\n if T1qg(YRbF):\n JscZ.append(YRbF)\n return JscZ",
"def kAOJ(exwG):\n uED7 = []\n for YRbF in range(2, exwG):\n if T1qg(YRbF):\n ... | [
"0.8449782",
"0.84418297",
"0.83096576",
"0.81390417",
"0.81324494",
"0.8130169",
"0.80668473",
"0.80516845",
"0.8002192",
"0.796871",
"0.7966493",
"0.7876625",
"0.78764343",
"0.78710705",
"0.7821648",
"0.77987",
"0.7797344",
"0.779158",
"0.7774276",
"0.7772136",
"0.7770932",... | 0.7463167 | 53 |
Remove Stopwords, Form Bigrams, Trigrams and Lemmatization | def UOkE(z_aV, zHkQ, ZEzW, hwHU=hwHU, Qxrn=['NOUN', 'ADJ', 'VERB', 'ADV']):
z_aV = [[GIN8 for GIN8 in oGub(str(A97Q)) if GIN8 not in hwHU] for A97Q in z_aV]
z_aV = [zHkQ[A97Q] for A97Q in z_aV]
z_aV = [ZEzW[zHkQ[A97Q]] for A97Q in z_aV]
LRZo = []
K9NE = CNQv.load('en_core_web_sm')
for _dZy in z_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)",
"def QrZ9(l5Ny):\n Esii = GFnk()\n mkhU = wgQP.PorterStemmer()\n JCyR = di0c.words('english')\n JCyR += ['.', ',', ':', '...', '!\"', '?\"',... | [
"0.75946814",
"0.750008",
"0.7484894",
"0.7262158",
"0.7241527",
"0.72373825",
"0.7193496",
"0.7177442",
"0.7106464",
"0.71030277",
"0.7102151",
"0.70789164",
"0.7044341",
"0.69387245",
"0.6920597",
"0.6918305",
"0.6917309",
"0.6906191",
"0.6905368",
"0.6903818",
"0.68761015"... | 0.6732504 | 26 |
returns a list of parents to this domain. It is possible for a node to have multiple parents if each of the parent has made a request to the node. | def HqGg(YKHO):
return YKHO.parents | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ACnF(YKHO):\n XP5J = YKHO\n Aofo = []\n while XP5J:\n Aofo.append(XP5J)\n XP5J = XP5J.parent\n return Aofo",
"def ACnF(YKHO):\n if YKHO._pedigree is None:\n raise Exception('Pedigree is not defined')\n return [YKHO._pedigree.individual(Ii1o) for Ii1o in YKHO._parent_ids... | [
"0.83702886",
"0.8325622",
"0.8298969",
"0.8177237",
"0.7833667",
"0.78315437",
"0.78058773",
"0.7801098",
"0.7755341",
"0.7688186",
"0.7492334",
"0.74550074",
"0.7450315",
"0.74398726",
"0.74004024",
"0.73172647",
"0.7253067",
"0.7239446",
"0.72256595",
"0.72224253",
"0.7217... | 0.7012659 | 32 |
Get argparse.Namespace of parsed user arguments, with sensible defaults set. | def rwTO(r_qn):
wvEv = j1Jz.ArgumentParser(prog='PythiaPlotter', description='Convert MC event into a particle evolution diagram. Requires you to choose an input format, and an output printer.', formatter_class=j1Jz.RawTextHelpFormatter)
VPuL = wvEv.add_argument_group('Input Options')
VPuL.add_argument('inp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dCXb(YKHO, qIxc=None, _63S=None):\n _63S = j1Jz.ArgumentParser.parse_args(YKHO, args=qIxc, namespace=_63S)\n return _63S",
"def hfK9() -> j1Jz.Namespace:\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--name', type=str, default='world', help='The name to say hello to.')\n return wvEv.pars... | [
"0.6995912",
"0.65189636",
"0.6266619",
"0.6256577",
"0.61642283",
"0.6150543",
"0.6127023",
"0.60493916",
"0.6015095",
"0.600252",
"0.5996381",
"0.59579927",
"0.59063697",
"0.5889722",
"0.58722967",
"0.58713835",
"0.5851699",
"0.584528",
"0.5836211",
"0.58179045",
"0.5817024... | 0.0 | -1 |
Return a list of lines read from file. | def PyNg(VqRE):
with open(VqRE, 'r', encoding='utf-8', newline=Hy7s.linesep) as eHNT:
return eHNT.readlines() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HbNy(IznC):\n return []",
"def ZLVQ(Ux0P):\n with open(Ux0P) as apum:\n Nqlg = apum.readlines()\n return [zFiD.strip() for zFiD in Nqlg]",
"def aA6_(Ux0P):\n with open(Ux0P, 'r') as eHNT:\n Nqlg = eHNT.readlines()\n return Nqlg",
"def trZt(pmON: str) -> x1iM[str]:\n if Hy7... | [
"0.84631497",
"0.8437037",
"0.835836",
"0.829921",
"0.8285388",
"0.8251626",
"0.8129196",
"0.81015974",
"0.8096941",
"0.80671346",
"0.8004761",
"0.79964215",
"0.7986865",
"0.798173",
"0.7946105",
"0.7942578",
"0.78944546",
"0.78385884",
"0.78373736",
"0.780257",
"0.77824664",... | 0.8207441 | 6 |
Check if file extension is in given extensions. | def zc6t(VqRE, CBZq):
return any((VqRE.endswith(YBcr) for YBcr in CBZq)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVFM(Ux0P, CBZq):\n return Ux0P.lower().endswith(CBZq)",
"def DVFM(Ux0P, CBZq):\n return Ux0P.lower().endswith(CBZq)",
"def QCpd(Ux0P):\n return any((Ux0P.endswith(tTpl) for tTpl in CBZq))",
"def DVFM(Ux0P, CBZq):\n GzHq = Ux0P.lower()\n return any((GzHq.endswith(YBcr) for YBcr in CBZq))",... | [
"0.86387336",
"0.86387336",
"0.8598995",
"0.8555174",
"0.8555174",
"0.8391166",
"0.8329074",
"0.81875426",
"0.79908013",
"0.7962456",
"0.79498786",
"0.78666896",
"0.78062314",
"0.7771527",
"0.7757888",
"0.7693334",
"0.7673005",
"0.75269556",
"0.7500926",
"0.7425389",
"0.73680... | 0.84074354 | 5 |
Compute the fitness score of the ANM model in the x>y direction. | def o1k2(YKHO, WKvO, LVAh, lOgS=mudu(), upS5=U4Po):
WKvO = NXpY(WKvO).reshape((-1, 1))
LVAh = NXpY(LVAh).reshape((-1, 1))
gjpc = lOgS.estimate(WKvO, LVAh)
I1mm = upS5(LVAh - gjpc, WKvO, alpha=YKHO.alpha)
return I1mm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lb35(DM04, EcVT, LVAh):\n amiz = DM04.evaluate(EcVT)\n return ((LVAh - amiz) ** 2).sum()",
"def VhnJ(YKHO):\n pass",
"def hmlP(YKHO):\n wkbQ = (YKHO.matrix * YKHO.weight_matrix).sum()\n YKHO.fitness = wkbQ\n return wkbQ",
"def wkbQ(YKHO) -> float:\n return YKHO._fitness",
"def wkbQ... | [
"0.72466934",
"0.7141622",
"0.71325946",
"0.7007074",
"0.69479203",
"0.69086623",
"0.68808186",
"0.6879599",
"0.68689346",
"0.681692",
"0.67969614",
"0.67446846",
"0.67055374",
"0.6699242",
"0.6672816",
"0.6618265",
"0.661402",
"0.6613973",
"0.6562719",
"0.6556334",
"0.655294... | 0.0 | -1 |
Run when entity about to be added to hass. | async def async_added_to_hass(YKHO) -> None:
YKHO.async_on_remove(YKHO.hass.bus.async_listen_once(zuRn, YKHO.disconnect)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_added_to_hass(YKHO):\n YKHO.hass.data[Sugg].add_entity_id(YKHO.entity_id)\n YKHO.hass.data[Sugg].add_sensor(YKHO)",
"async def async_added_to_hass(YKHO):\n await super().async_added_to_hass()\n YKHO.coordinator.entities.append(YKHO)",
"async def async_added_to_hass(YKHO):\n\n def... | [
"0.7644598",
"0.7508649",
"0.7295819",
"0.72008663",
"0.712577",
"0.66380143",
"0.66380143",
"0.6609968",
"0.65870553",
"0.6568923",
"0.65588206",
"0.65459687",
"0.6541892",
"0.6523766",
"0.6480282",
"0.6473207",
"0.6434319",
"0.64239204",
"0.6419268",
"0.6390959",
"0.6389259... | 0.61387646 | 51 |
Return the ID of this light. | def ShR8(YKHO):
return YKHO._light.address | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLJR(YKHO):\n return YKHO.identifier",
"def KlfQ(YKHO):\n return YKHO.ID",
"def yHil(YKHO):\n return YKHO._id",
"def Sm0V(YKHO):\n return YKHO.id",
"def OyzV(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n ... | [
"0.74645543",
"0.7406181",
"0.74057865",
"0.73915154",
"0.7374486",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
"0.7370322",
... | 0.0 | -1 |
Return true if light is on. | def Debg(YKHO):
return YKHO._brightness > 0 or YKHO._white_value > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def Debg(YKHO):\n return YKHO._light_on",
"def h0Nz(YKHO) -> bool:\n return f34S.Light.value in YKHO.type_data.attributes",
"def h0Nz(YKHO) -> bool:\n return f34S.Light.value in YKHO.type_data.att... | [
"0.9035416",
"0.89275813",
"0.86664206",
"0.8008696",
"0.8008696",
"0.78880787",
"0.7866302",
"0.7610281",
"0.7415077",
"0.7345493",
"0.7335999",
"0.73116577",
"0.7303292",
"0.72991306",
"0.7243393",
"0.71792775",
"0.71722543",
"0.7157757",
"0.7157757",
"0.7157757",
"0.708972... | 0.7565963 | 8 |
Instruct the light to turn off. | def Z_rv(YKHO, **B2fa):
YKHO._light.set_color(0, 0, 0, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)",
"def fnTm(YKHO):\n YKHO._light = 'OFF'",
"def fnTm(YKHO):\n YKHO._light = 'OFF'",
"def V8X5(YKHO):\n YKHO.turnOff()",
"def Z_rv(YKHO, **B2fa: Any) -> None:\n YKHO._set_light(r7z_)",
"def Z_rv(YKHO, **B2fa: Any) -> None:\n YKHO._light.tur... | [
"0.9141917",
"0.89695406",
"0.89557284",
"0.89015293",
"0.8897358",
"0.8873913",
"0.8805522",
"0.87764317",
"0.86670524",
"0.86476165",
"0.847877",
"0.8473624",
"0.84669805",
"0.8463841",
"0.8435901",
"0.8370482",
"0.83494097",
"0.8275936",
"0.82717854",
"0.82705396",
"0.8253... | 0.87862444 | 7 |
Test that it doesn't try to decompress content that isn't compressed | def gr6_(TBXe, Uaik):
bD7m = Uaik.url + '/get'
w8vl = str(TBXe.join('noncompressed_response.yaml'))
with b84K.use_cassette(w8vl, decode_compressed_response=True):
Kf9k(bD7m)
with b84K.use_cassette(w8vl) as vm3M:
_hkX = Kf9k(bD7m).read()
pHQB(vm3M)
VOI0(_hkX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ICx2(YKHO):\n YKHO.resp.content = YKHO.incompressible_string\n Mkmy = xYVA(YKHO.get_response)(YKHO.req)\n YKHO.assertEqual(Mkmy.content, YKHO.incompressible_string)\n YKHO.assertIsNone(Mkmy.get('Content-Encoding'))",
"def wbBt(YKHO):\n YKHO.resp['Content-Encoding'] = 'deflate'\n Mkmy = xYVA... | [
"0.7677952",
"0.7587739",
"0.7388321",
"0.70077515",
"0.6985812",
"0.69692373",
"0.69509184",
"0.6918425",
"0.6792523",
"0.6715239",
"0.6599061",
"0.64616215",
"0.6390434",
"0.6389968",
"0.6383845",
"0.6370483",
"0.6267627",
"0.6235208",
"0.61647934",
"0.6161109",
"0.61600065... | 0.6851749 | 8 |
find an element in a grid | def Pi6U(YKHO, Cs6h, a70H):
for xEai in Ni9Y(len(Cs6h)):
if Cs6h[xEai].find(a70H) is not -1:
BHsk = [Cs6h[xEai].find(a70H), xEai]
return BHsk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K1EV(Cs6h, pan_):\n for Mi_s in range(len(Cs6h)):\n for X82w in range(len(Cs6h[Mi_s])):\n if Cs6h[Mi_s][X82w] == pan_:\n return (Mi_s, X82w)\n return None",
"def yvSL(YKHO, U6D_):\n for rdlD in range(YKHO.rows):\n for fvDH in range(YKHO.cols):\n if ... | [
"0.7924864",
"0.6937153",
"0.6937153",
"0.6740422",
"0.67006594",
"0.6542714",
"0.653767",
"0.64585805",
"0.64585805",
"0.64585805",
"0.6429125",
"0.6429125",
"0.6429125",
"0.6429125",
"0.6424086",
"0.6344454",
"0.6344454",
"0.6321732",
"0.6302046",
"0.6296397",
"0.6285863",
... | 0.6653444 | 5 |
Returns the value from the event. | def RZMD(YKHO):
return YKHO._value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P71a(YKHO, Mjtj):\n return Mjtj.val",
"def aQmu(*qIxc, **B2fa):\n pass",
"def BWXx(YKHO):\n return YKHO['input'].value()",
"def Zmkp(YKHO, nPrm):\n BWXx = nPrm['value']\n return BWXx",
"def umPh(YKHO):\n return YKHO._value",
"def acg8(YKHO):\n return YKHO.events[0]",
"def BWXx(... | [
"0.7985166",
"0.7292858",
"0.7034268",
"0.70213836",
"0.70147574",
"0.69983095",
"0.6995245",
"0.6977663",
"0.6949626",
"0.69414896",
"0.68907326",
"0.68798876",
"0.6873454",
"0.6873454",
"0.6854066",
"0.6830843",
"0.6810735",
"0.6809196",
"0.6809196",
"0.6809196",
"0.6802341... | 0.64827317 | 96 |
Create a Dash app from a string defining the app. | def uB7K(VVCZ, sEAN):
exec(VVCZ, sEAN)
return sEAN['app'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WEqQ(N5z6, oLS6, c2dt):\n P4t4 = x06z.Dash(name=__name__, server=N5z6, url_base_pathname=c2dt)\n hvzo(P4t4, oLS6)\n jbgU(P4t4, oLS6)\n return P4t4",
"def eLpg():\n return Z33s()",
"def P4t4():\n return LUif()",
"def Nd3k(Fv2L=None):\n if not Fv2L:\n Fv2L = 'development'\n P... | [
"0.7016987",
"0.6223058",
"0.6067492",
"0.6050905",
"0.6024386",
"0.599829",
"0.5978859",
"0.5860099",
"0.5788011",
"0.57650197",
"0.5669148",
"0.56532496",
"0.5609625",
"0.5601644",
"0.5504619",
"0.5500505",
"0.547201",
"0.54484373",
"0.5424246",
"0.5412526",
"0.54052836",
... | 0.4981473 | 94 |
Find user by user id | def ggdo(YKHO, PObu):
return YKHO.mapper.find_by_id(PObu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def neBz(uJjO):\n return F3jJ.find(uJjO)",
"def TKWP(id):\n pass",
"def T_NJ(YKHO, uJjO):\n pass",
"def ggdo(Emd4, uJjO):\n return CEKW.query.filter_by(id=uJjO).first()",
"def neBz(YKHO, uJjO: UserId) -> h8nf[KkY2]:\n ...",
"def ggdo(Emd4, _eu6):\n CBIr = Emd4.query.filter_by(id=_eu6).f... | [
"0.8248475",
"0.7975132",
"0.78396493",
"0.7832203",
"0.77757704",
"0.7771436",
"0.77627015",
"0.77208805",
"0.7698015",
"0.76762605",
"0.76543784",
"0.7646595",
"0.7602605",
"0.7560415",
"0.7546709",
"0.7501259",
"0.7491946",
"0.7478427",
"0.7470794",
"0.7469322",
"0.7469322... | 0.0 | -1 |
Converts a single HSL triplet (0360 hue, 01 sat & lightness) into an 8bit RGB triplet. | def H4zT(Hafq, pKYF, agxD):
if Hafq < 0 or Hafq > 360:
raise AssertionError('invalid hue')
if pKYF < 0 or pKYF > 1:
raise AssertionError('invalid saturation')
if agxD < 0 or agxD > 1:
raise AssertionError('invalid lightness')
if pKYF == 0:
return (int(oyIN.clip(round(agxD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MnMn(d7Eb):\n KFyH = d7Eb[2] / 255\n BjbB = d7Eb[1] / 255\n tPCf = d7Eb[0] / 255\n Iims = max(KFyH, BjbB, tPCf)\n EBKs = min(KFyH, BjbB, tPCf)\n uGwy = Iims - EBKs\n if uGwy == 0:\n giOl = 0\n elif Iims == KFyH:\n giOl = 60 * ((BjbB - tPCf) / uGwy % 6)\n elif Iims == Bj... | [
"0.64130235",
"0.62935245",
"0.62935245",
"0.6267236",
"0.6167139",
"0.6167139",
"0.60716563",
"0.5916591",
"0.58765215",
"0.5866079",
"0.5857924",
"0.5759601",
"0.57461554",
"0.57407945",
"0.57336116",
"0.57217157",
"0.569049",
"0.5674357",
"0.5655501",
"0.56361914",
"0.5577... | 0.5761526 | 11 |
Draws and returns a figure of a model input/predictions/targets using pyplot or OpenCV. | def JmFt(D5gV, input, nvEb=None, pan_=None, XkN1=False, LSZA=True, NB_y=False, gCKv=None, **B2fa):
import thelper.tasks
if not isinstance(D5gV, uz_J.tasks.Task):
raise AssertionError('invalid task object')
if isinstance(input, list) and all([isinstance(a1PO, ht2j.Tensor) for a1PO in input]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MVJ8(C3ST, EcVT, LVAh, AmnI):\n uuEx.set_context(context='notebook', font_scale=2)\n QrM1.figure(figsize=(16, 9))\n from matplotlib.colors import ListedColormap\n baHt, Qz34 = (EcVT, LVAh)\n mSn1, IP77 = oyIN.meshgrid(oyIN.arange(start=baHt[:, 0].min() - 1, stop=baHt[:, 0].max() + 1, step=0.01),... | [
"0.7159986",
"0.71269816",
"0.6979452",
"0.68343806",
"0.68152744",
"0.6794617",
"0.67555916",
"0.67039937",
"0.65746886",
"0.65040296",
"0.64691865",
"0.64689046",
"0.64656186",
"0.64492923",
"0.6446469",
"0.6445117",
"0.6440534",
"0.64348775",
"0.6432961",
"0.6425989",
"0.6... | 0.0 | -1 |
Draws and returns an a confusion matrix figure using pyplot. | def n0k3(LPyb, t2SB, RS7k=(5, 5), weqM=160, NkkI=False, OjDQ=False, nUHY=False, XkN1=False):
if not isinstance(LPyb, oyIN.ndarray) or not isinstance(t2SB, list):
raise AssertionError('invalid inputs')
if LPyb.ndim != 2:
raise AssertionError('invalid confmat shape')
if not OjDQ and '<unset>' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()",
"def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyIN.arange(len(t... | [
"0.7904794",
"0.7815336",
"0.76922554",
"0.7653424",
"0.7616082",
"0.7614464",
"0.7605565",
"0.7572041",
"0.75433517",
"0.7506052",
"0.74992496",
"0.7462104",
"0.7439486",
"0.741473",
"0.7391076",
"0.7388952",
"0.7378268",
"0.73762",
"0.7362219",
"0.7340635",
"0.73337245",
... | 0.0 | -1 |
Draws a set of bounding box prediction results on images. | def Spbp(Yw_3, aTLP=None, c8oy=None, YDzg=None, gCKv=None, XkN1=False, KDOb=0.5, gbC8=None, **B2fa):
def TNrv(bu6_):
if isinstance(gbC8, dict):
return gbC8[bu6_.class_id]
elif cviu.task is not None:
return bu6_.task.class_names[bu6_.class_id]
else:
raise ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n382(f4IJ, oUSw, JOUx, WEJA, Crrw, Jw9H):\n for YRbF in range(len(oUSw)):\n WKvO, LVAh = (oUSw[YRbF][0], oUSw[YRbF][1])\n yzQ0, MKlR = (oUSw[YRbF][2], oUSw[YRbF][3])\n qfpW = [int(Z9rn) for Z9rn in Jw9H[WEJA[YRbF]]]\n XC5k.rectangle(f4IJ, (WKvO, LVAh), (WKvO + yzQ0, LVAh + MKlR),... | [
"0.7153924",
"0.69788766",
"0.69786656",
"0.69578856",
"0.69455713",
"0.69269544",
"0.6920673",
"0.68786687",
"0.68783057",
"0.68190116",
"0.67908865",
"0.67901826",
"0.67824095",
"0.6776105",
"0.67657983",
"0.67585367",
"0.67451394",
"0.6702489",
"0.6696332",
"0.66944236",
"... | 0.7397319 | 0 |
Applies a color map to an image of 8bit color indices; works similarly to cv2.applyColorMap (v3.3.1). | def trO_(LNo8, MYQr, zr3f=None):
assert isinstance(LNo8, oyIN.ndarray) and LNo8.ndim == 2 and oyIN.issubdtype(LNo8.dtype, oyIN.integer), 'invalid input image'
assert isinstance(MYQr, oyIN.ndarray) and MYQr.shape == (256, 1, 3) and (MYQr.dtype == oyIN.uint8 or MYQr.dtype == oyIN.float32), 'invalid color map'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _odG(VXjJ, I1mm):\n if isinstance(I1mm, exCv):\n I1mm = I1mm.lower()\n ITiw = qWz7(VXjJ)\n Ylbp = XC5k.applyColorMap(ITiw, TMPW[I1mm])\n return Ylbp\n else:\n ITiw = qWz7(VXjJ)\n return XC5k.applyColorMap(ITiw, I1mm)",
"def GNMJ(or8S):\n\n def KowF(nRIr, Npg... | [
"0.6993694",
"0.64156574",
"0.6400454",
"0.60438114",
"0.60403377",
"0.6033198",
"0.6033198",
"0.6033198",
"0.6033198",
"0.5932918",
"0.5880191",
"0.58615386",
"0.5792629",
"0.57838523",
"0.57805866",
"0.5750224",
"0.57232934",
"0.5703336",
"0.56766784",
"0.5663392",
"0.56563... | 0.67385656 | 1 |
Transforms a pyplot figure into a numpycompatible RGB array. | def XN5t(LZpg):
LZpg.canvas.draw()
yzQ0, MKlR = LZpg.canvas.get_width_height()
LaVg = oyIN.frombuffer(LZpg.canvas.tostring_rgb(), dtype=oyIN.uint8)
LaVg.shape = (yzQ0, MKlR, 3)
return LaVg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmwK(roH8):\n roH8.canvas.draw()\n WKvO = oyIN.fromstring(roH8.canvas.tostring_rgb(), dtype=oyIN.uint8, sep='')\n WKvO = WKvO.reshape(roH8.canvas.get_width_height()[::-1] + (3,))\n return WKvO",
"def WkUm(LZpg):\n xCm2 = xDSY.BytesIO()\n LZpg.savefig(xCm2, format='png')\n xCm2.seek(0)\n ... | [
"0.7454621",
"0.7297256",
"0.6995081",
"0.6772931",
"0.6671485",
"0.6526642",
"0.638784",
"0.6357588",
"0.6337497",
"0.6323847",
"0.6285256",
"0.6236474",
"0.6227315",
"0.607863",
"0.607056",
"0.60128844",
"0.58512294",
"0.5810157",
"0.58070457",
"0.573863",
"0.5716739",
"0... | 0.6707854 | 4 |
A test for positive case. | def Z_lc():
assert p1CF(2016) is True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YtOc(YKHO, jzdc):\n return jzdc > 0",
"def dSua(YKHO, jzdc):\n return jzdc < 0",
"def x9Kl(YKHO):\n return True",
"def x9Kl(YKHO):\n return True",
"def x9Kl(YKHO):\n return True",
"def tm4B(WKvO):\n if WKvO < 0:\n return True\n return False",
"def eqcR(WKvO):\n assert... | [
"0.76228994",
"0.7447405",
"0.7319575",
"0.7319575",
"0.7319575",
"0.73173547",
"0.72487545",
"0.7230466",
"0.7117687",
"0.7088469",
"0.7073071",
"0.7070528",
"0.70645493",
"0.6988175",
"0.6984194",
"0.69266003",
"0.6913111",
"0.6881622",
"0.6859878",
"0.68500483",
"0.6829827... | 0.0 | -1 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(rsL_, YKHO).__init__(*qIxc, **c_sp)
if YKHO.partial_view is None:
YKHO.partial_view = False
if YKHO.resolution is None:
YKHO.resolution = 0
if YKHO.type is None:
YKHO.type = 0
if YKHO.us... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.77937967",
"0.77195275",
"0.77195275",
"0.7685702",
"0.762502",
"0.7562939",
"0.74384665",
"0.7416083",
"0.73515767",
"0.73078126",
"0.7280228",
"0.723719",
"0.72265446",
"0.72230625",
"0.72230625",
"0.7218876",
"0.721051",
"0.721051",
"0.721051",
"0.721051",
"0.721051",
... | 0.0 | -1 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(h69p, YKHO).__init__(*qIxc, **c_sp)
if YKHO.success is None:
YKHO.success = False
else:
YKHO.success = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.7794164",
"0.7721611",
"0.7721611",
"0.7687804",
"0.7626575",
"0.7565245",
"0.74406534",
"0.74182206",
"0.73521465",
"0.73088044",
"0.72807634",
"0.7238138",
"0.7227902",
"0.72254795",
"0.72254795",
"0.7219563",
"0.7212849",
"0.7212849",
"0.7212849",
"0.7212849",
"0.721284... | 0.0 | -1 |
Set the device's size. | def RN9k(YKHO, AB01):
wgkp(YKHO, YKHO.name, status=YKHO.status, size=YKHO._size, newsize=AB01)
if not isinstance(AB01, DEza):
raise ValueError('new size must of type Size')
if not YKHO.exists:
YKHO._size = AB01
YKHO.req_size = AB01
YKHO.req_base_size = AB01
if YKHO.exists... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gyWJ(YKHO, zNig):\n YKHO.__size = zNig",
"def NVrm(YKHO, zNig):\n YKHO.width = zNig[0]\n YKHO.height = zNig[1]",
"def NVrm(YKHO, zNig):\n YKHO.dtSize = zNig",
"def NVrm(YKHO, yzQ0, MKlR):\n pass",
"def zNig(YKHO, zNig):\n YKHO.width = zNig\n YKHO.height = zNig",
"def zNig(YKHO, z... | [
"0.7873566",
"0.77266103",
"0.76895547",
"0.75657886",
"0.7384356",
"0.7384356",
"0.7289012",
"0.728139",
"0.7215229",
"0.7205107",
"0.7205107",
"0.7205107",
"0.7205107",
"0.71879953",
"0.7159446",
"0.70534533",
"0.70523363",
"0.7034217",
"0.6952837",
"0.6933423",
"0.6924105"... | 0.6994651 | 18 |
The maximum size this partition can be. | def gBIt(YKHO):
wtCU = YKHO._unalignedMaxPartSize
lxH3 = YKHO.format.maxSize
KeV_ = min(lxH3, wtCU) if lxH3 else wtCU
return YKHO.alignTargetSize(KeV_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y_yk(YKHO):\n return YKHO._maximum_size",
"def ANdr(YKHO) -> int:\n return YKHO._maxsize",
"def ANdr(YKHO):\n return YKHO._maxsize",
"def TjXh():\n return nxKo(lmVf())",
"def W117(YKHO) -> str:\n return qe4Y.get(YKHO, 'max_disk_size')",
"def E0wO(YKHO):\n raise NotImplementedError()... | [
"0.8380637",
"0.8212984",
"0.8171533",
"0.8070145",
"0.7991709",
"0.7987127",
"0.78469193",
"0.7832853",
"0.77647567",
"0.77159256",
"0.7706225",
"0.7634494",
"0.75055504",
"0.75033265",
"0.7441761",
"0.74177235",
"0.7415829",
"0.7301893",
"0.7296699",
"0.7279662",
"0.7262000... | 0.7416023 | 16 |
Get ReportPortal launch name. | def OO7c():
if quJO == 'RHEL7':
Hjy3 = 'Errata-{0}_{1}_{2}_{3}_{4}_{5}CDN'.format(DbMv, quJO, pPTc, JACg, AVLs, bswK)
elif quJO == 'RHEL8':
Hjy3 = 'Errata-{0}_{1}_{2}_{3}_{4}CDN'.format(DbMv, quJO, JACg, AVLs, bswK)
return Hjy3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbtO(YKHO):\n return str(YKHO.executable.name)",
"def CCMb(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'launch_template_name')",
"def CCMb(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'launch_template_name')",
"def FUJ1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'dashboard... | [
"0.64195514",
"0.64129484",
"0.6411258",
"0.6287243",
"0.6273052",
"0.6022788",
"0.601195",
"0.6000929",
"0.5974678",
"0.59618914",
"0.59589344",
"0.5947068",
"0.59444815",
"0.5867714",
"0.5867714",
"0.5867714",
"0.5867714",
"0.5867714",
"0.5867714",
"0.5867714",
"0.5867714",... | 0.62932926 | 3 |
Initializes an event dispatcher object. | def uIcm(YKHO, N6LA):
YKHO.__eventHandlers = {}
YKHO.__simulator = N6LA
YKHO.__threads = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN(YKHO):\n YKHO.dispatcher.start()\n YKHO.replyer.start()",
"def FIMM(YKHO, *qIxc, **B2fa):\n YKHO.events = {}",
"def FIMM(YKHO, lGbz=None):\n object.__setattr__(YKHO, '_loop', lGbz or moTT())",
"def FIMM(YKHO):\n YKHO._events = {}\n YKHO.modules = {}",
"def FIMM(YKHO):\n YKHO._... | [
"0.6839209",
"0.659576",
"0.6517356",
"0.6499052",
"0.6427141",
"0.6391243",
"0.6338676",
"0.63212234",
"0.62971014",
"0.62733126",
"0.6261656",
"0.6213252",
"0.62108886",
"0.60680914",
"0.6050402",
"0.60471934",
"0.60345197",
"0.60338837",
"0.60252416",
"0.60218334",
"0.5992... | 0.6320172 | 8 |
Gets the displayed name of a user. | def y0hN(mS46):
if mS46.nick is None:
mWFP = mS46.name
else:
mWFP = mS46.nick
if mv1M.objects.get(id=mS46.id).is_ironman:
mWFP += ' (IM)'
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vZMI(YKHO):\n return YKHO.user.get_full_name() or YKHO.user.get_username()",
"def APBu(YKHO):\n return YKHO.full_name or YKHO.user.username",
"def XR0Q(YKHO):\n CBIr = mv1M.by_id(YKHO.user_id)\n return CBIr.name",
"def IQH1(CBIr: User) -> str:\n BaHi = CBIr.get('display_name')\n if not ... | [
"0.86961114",
"0.83570224",
"0.8263836",
"0.8258292",
"0.8174829",
"0.81671983",
"0.8098771",
"0.80199844",
"0.79783666",
"0.79710037",
"0.79450095",
"0.79325604",
"0.7914343",
"0.79029375",
"0.7892893",
"0.7878878",
"0.7827481",
"0.77871954",
"0.77871954",
"0.77628535",
"0.7... | 0.7292067 | 64 |
Shows the levels and stats of a user. | async def _me_stats(YKHO, OaeV):
if mkGV(OaeV.guild.id, OaeV.channel.id):
await OaeV.send(DW23.print_account(OaeV.user_object, printequipment=False)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d7Bv(YKHO):\n YKHO.getAllStats()\n YKHO.getNbTotalLevelsPlayed()\n Fiye.messageAllStats(YKHO.level_history[0].created_at)\n YKHO.showBestStats()\n YKHO.showWorstStats()\n YKHO.showAverageStats()",
"def vLxT(YKHO):\n YKHO.user_frame = on8l.LabelFrame(YKHO.stats_frame, text='User Types', p... | [
"0.81691813",
"0.7022499",
"0.6978554",
"0.6930742",
"0.65434587",
"0.65393674",
"0.65197104",
"0.6493204",
"0.6438436",
"0.64063543",
"0.64054185",
"0.6405407",
"0.6352828",
"0.6350688",
"0.63383704",
"0.6274365",
"0.6255612",
"0.6255341",
"0.6231478",
"0.62271357",
"0.62045... | 0.5969752 | 42 |