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 |
|---|---|---|---|---|---|---|
Sets the pos_payments of this AccountPermissions. | def ZxnU(YKHO, ZxnU):
YKHO._pos_payments = ZxnU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wh0A(YKHO, Wh0A):\n if Wh0A is None:\n raise ValueError('Invalid value for `payments`, must not be `None`')\n YKHO._payments = Wh0A",
"def yTUi(YKHO, yTUi):\n YKHO._total_payments = yTUi",
"def yTUi(YKHO, yTUi):\n YKHO._total_payments = yTUi",
"def o5pq(YKHO, o5pq):\n if YKHO._confi... | [
"0.6373168",
"0.5683783",
"0.5683783",
"0.5607878",
"0.5568239",
"0.553998",
"0.553998",
"0.5523666",
"0.5437846",
"0.543337",
"0.5349285",
"0.52287036",
"0.51929045",
"0.51555353",
"0.507795",
"0.5044174",
"0.5044174",
"0.5025575",
"0.5011639",
"0.5011639",
"0.4955985",
"0... | 0.8319127 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, F517):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Load categories with no parents. | def eBZ0():
return qZuN.query.filter(qZuN.is_parent()).all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fk2V(YKHO) -> x1iM[qZuN]:\n LeZt = NCls.fetch_all('category', list(filter(lambda AniK: not AniK.startswith('_'), qZuN.__dict__.keys())))\n LeZt = YKHO._fill_aliases(LeZt)\n return LeZt",
"def LeZt(YKHO):\n return None",
"def AXwu(YKHO):\n return YKHO.cats",
"def HCOk(YKHO):\n Xwgg.catch... | [
"0.71658766",
"0.66745144",
"0.6581389",
"0.65628153",
"0.65138966",
"0.6462035",
"0.6303903",
"0.6276873",
"0.6268699",
"0.6211227",
"0.6211227",
"0.62054837",
"0.61826324",
"0.61730474",
"0.6166486",
"0.61337095",
"0.612736",
"0.61257786",
"0.60865563",
"0.6075562",
"0.6016... | 0.57892835 | 34 |
returns rotated coordinates with x, y, and z axes aligned with principal axes | def c7vQ(oE0O, r8hN):
E0xw = h5nM(oE0O, r8hN)
MP7n, MPlV = rrUJ(E0xw)
V6cv, Jmqu, RbRp = MPlV.T
OFDL = BJ1H(oE0O.T, MPlV).T
return OFDL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N0Pp(EBgd, HpuQ, Lq8X):\n _cpR = q0Bk(EBgd)\n T2pX = q0Bk(HpuQ)\n Nl4V = map(q0Bk, Lq8X)\n wLQa = _cpR / XVcZ.norm(_cpR)\n o3uK = T2pX / XVcZ.norm(T2pX)\n xQE8 = map(lambda WKvO: WKvO / XVcZ.norm(WKvO), Nl4V)\n uFV1 = wLQa\n gb7z = o3uK - oyIN.dot(o3uK, wLQa) * wLQa\n y0D4 = gb7z / X... | [
"0.6785798",
"0.6778109",
"0.6569754",
"0.6531843",
"0.6442482",
"0.6423888",
"0.6423634",
"0.6412093",
"0.63879085",
"0.637874",
"0.63721913",
"0.6355066",
"0.63514",
"0.6334429",
"0.6327641",
"0.63001996",
"0.6299231",
"0.6275911",
"0.6264922",
"0.6249729",
"0.6248911",
"... | 0.690452 | 0 |
Remove a topology from the list of this domain. Do nothing if the topology does not exist in the list. | def kSdD(YKHO, xN0p):
B7RS = YKHO._check_topo(xN0p)
if B7RS >= 0:
YKHO.topologies.pop(B7RS)
return B7RS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uWeC(YKHO, oimG):\n AM_a = getattr(YKHO, oimG.resource_uri_name)\n for Mkmy in AM_a:\n if Mkmy.instance_tag == oimG.instance_tag:\n AM_a.remove(Mkmy)",
"def kSdD(YKHO, vMNo):\n if E5BI()[1][3] == '<module>':\n YKHO.updateTables()\n if type(vMNo) == int:\n vMNo = [v... | [
"0.5602059",
"0.54622555",
"0.5354936",
"0.5271409",
"0.51897144",
"0.5184005",
"0.5170006",
"0.5170006",
"0.5157884",
"0.5150338",
"0.5144793",
"0.5077046",
"0.50654095",
"0.50227755",
"0.5013669",
"0.5002226",
"0.5002226",
"0.50004244",
"0.4994938",
"0.4972945",
"0.49714038... | 0.60189885 | 0 |
Update a single product | def z_bY(Ii1o):
L03z = zDQO(QePW.form)
if L03z.validate():
Lx3t = msfn.query.filter_by(id=Ii1o).first()
Lx3t.name = L03z.name.data
Lx3t.price = L03z.price.data
Lx3t.quantity = L03z.quantity.data
Lx3t.description = L03z.description.data
NCls.session.commit()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, Lx3t):\n YKHO.product_repository.update(Lx3t)",
"def z_bY(YKHO, Mc9N, nPrm):\n Lx3t = YKHO.get_one(Mc9N)\n nPrm['modified_date'] = str(qcWV.now().strftime('%b-%d-%Y : %H:%M:%S'))\n Lx3t[0].update(nPrm)\n return Lx3t",
"def QdZT(YKHO, id: int, QePW: Request) -> 'Response':\n try... | [
"0.83328205",
"0.7917996",
"0.7914854",
"0.79040223",
"0.78673804",
"0.78411907",
"0.78083813",
"0.78082967",
"0.77838874",
"0.7739143",
"0.7679749",
"0.76604897",
"0.76035774",
"0.75811976",
"0.7518304",
"0.751268",
"0.74909323",
"0.74751794",
"0.74418604",
"0.74329364",
"0.... | 0.7793184 | 8 |
Create a Params tuple for BenchmarkCNN from kwargs. Default values are filled in from _DEFAULT_PARAMS. | def ATQ3(**B2fa):
jMBO = {mWFP: H3BB[mWFP].default_value for mWFP in H3BB}
return FD5x(**jMBO)._replace(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kwFM(YKHO, **B2fa):\n sjXb = B2fa.keys()\n if 'batch_size' in sjXb:\n YKHO.batch_size = B2fa['batch_size']\n if 'epochs_per_train' in sjXb:\n YKHO.ept = B2fa['epochs_per_train']\n if 'npoints' in sjXb:\n YKHO.npoints = B2fa['npoints']\n if 'al_itrs' in sjXb:\n YKHO.al... | [
"0.6571438",
"0.6430651",
"0.6309472",
"0.6257893",
"0.62561536",
"0.6249014",
"0.6241059",
"0.62147397",
"0.619755",
"0.6133921",
"0.6067801",
"0.604254",
"0.60237974",
"0.5989911",
"0.596553",
"0.5964597",
"0.5952714",
"0.5936131",
"0.5932485",
"0.5931939",
"0.5918062",
"... | 0.628521 | 3 |
Create a Params tuple for BenchmarkCNN from FLAGS. | def xfU5():
feHb = {mWFP: getattr(vPBo, mWFP) for mWFP in H3BB.keys()}
return FD5x(**feHb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jfm1(qIxc):\n eSlC = [qIxc.Y, qIxc.filter_size, qIxc.dropout, qIxc.num_filter_maps, qIxc.rnn_dim, qIxc.cell_type, qIxc.rnn_layers, qIxc.lmbda, qIxc.command, qIxc.weight_decay, qIxc.version, qIxc.data_path, qIxc.vocab, qIxc.embed_file, qIxc.lr]\n DTb0 = ['Y', 'filter_size', 'dropout', 'num_filter_maps', '... | [
"0.6425579",
"0.61363524",
"0.60401565",
"0.6008752",
"0.5979942",
"0.59798026",
"0.59039325",
"0.5903283",
"0.5838499",
"0.57784426",
"0.5764154",
"0.57276124",
"0.5690361",
"0.56884503",
"0.56834704",
"0.5677634",
"0.5661339",
"0.56443423",
"0.56279486",
"0.56196916",
"0.56... | 0.65022326 | 0 |
Parses arguments for hyperparameter optimization (includes training arguments). | def sZhX() -> jFQi:
wvEv = WDqQ()
i1eN(wvEv)
b3wc(wvEv)
qIxc = wvEv.parse_args()
dVMo(qIxc)
TJMU(qIxc)
return qIxc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dCXb(qIxc):\n NArs = IE5b(qIxc)\n lJvN = {'ratio': qIxc.ratio[0], 'top_percentage': qIxc.top_percentage[0], 'step': qIxc.step[0], 'train': True}\n NArs.update(lJvN)\n return NArs",
"def Y8nX():\n wvEv = j1Jz.ArgumentParser(description='optimization.py')\n wvEv.add_argument('--func', type=st... | [
"0.71124285",
"0.68863523",
"0.67330503",
"0.6670113",
"0.6585655",
"0.6572337",
"0.6492192",
"0.64782006",
"0.6470835",
"0.6467652",
"0.6467406",
"0.64083236",
"0.6403521",
"0.6382987",
"0.6382848",
"0.63586545",
"0.6341473",
"0.63344777",
"0.63290226",
"0.6319557",
"0.62598... | 0.7402336 | 0 |
Stop the tracking period for this garbage tracker. Must be called after the code to be tracked is run. | def JCyR(YKHO):
if YKHO.enabled:
gigf.collect()
gigf.set_debug(0)
gigf.set_threshold(*YKHO._saved_thresholds)
if YKHO._ignored:
YKHO._garbage = []
else:
PrmE = False
for YRbF in range(YKHO._garbage_index, len(gigf.garbage)):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiyV(YKHO):\n YKHO.info_tracker.stop()",
"def CvOD(YKHO):\n YKHO._is_running = False",
"def aIp1(YKHO):\n if YKHO.stop is not None and callable(YKHO.stop):\n YKHO.stop()\n if isinstance(YKHO.process, ASOO):\n YKHO.process.terminate()\n YKHO.stop, YKHO.process, YKHO.current_trac... | [
"0.8026501",
"0.794197",
"0.7503778",
"0.7310655",
"0.71168435",
"0.7055565",
"0.7046709",
"0.703474",
"0.6955151",
"0.6955151",
"0.69477075",
"0.69323605",
"0.6922164",
"0.692011",
"0.692011",
"0.692011",
"0.692011",
"0.69199914",
"0.6916353",
"0.6910408",
"0.690826",
"0.6... | 0.7473177 | 3 |
Save the final dic with the personal data as json. | def toNz(mMiU: dict, V6eb: str):
with open(V6eb, 'w') as ytgA:
qQXR.dump(mMiU, ytgA, indent=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n nPrm = {}\n nPrm['name'] = YKHO._name\n nPrm['password'] = YKHO._password\n nPrm['permission'] = YKHO._permission_level\n qQXR.dump(nPrm, open('data/user_data.json', 'w'))",
"def fFGI(YKHO) -> dict:\n return {'persons': list(YKHO.storage_data.values())}",
"def eGRE(YKHO):\n ... | [
"0.7793931",
"0.75346863",
"0.7412451",
"0.7373674",
"0.73576915",
"0.72495526",
"0.7228867",
"0.72141993",
"0.71681",
"0.7167595",
"0.7116591",
"0.7018881",
"0.7012814",
"0.69985616",
"0.69920486",
"0.69695026",
"0.6967806",
"0.69642615",
"0.69404495",
"0.69158465",
"0.69149... | 0.7708382 | 1 |
The state of the internal random number generator. In practice, it's the result of calling ``get_state()`` on a ``numpy.random.mtrand.RandomState`` object. You can try to set this property but be warned that if you do this and it fails, it will do so silently. | def t3eI(YKHO):
return YKHO._random.get_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eaiG(YKHO):\n return YKHO.random_state.get_state()",
"def eaiG(YKHO):\n pass",
"def to59(YKHO):\n yokr = YKHO._params['seed'] if 'seed' in YKHO._params else None\n t3eI = oyIN.random.RandomState(seed=yokr)\n return t3eI",
"def Olgd(YKHO):\n return YKHO.__state.value",
"def QTBn(YKHO):... | [
"0.819554",
"0.8149682",
"0.79403347",
"0.74930686",
"0.74461675",
"0.72877604",
"0.72877604",
"0.7270221",
"0.72155535",
"0.72155535",
"0.72155535",
"0.7209362",
"0.7209362",
"0.71966195",
"0.7181289",
"0.7181289",
"0.71712196",
"0.7156964",
"0.7156964",
"0.7156964",
"0.7156... | 0.8472272 | 0 |
Construct several CNN layers, several BN layers, a Maxpooling layer and a Dropout layer (optional) for a CNN block. | def yzbM(YKHO, KUnM, Ot1W, mWFP, B4Mf, EcAO, fiu3, BLUG, BVpG=None):
IN5v = []
J87D = YKHO.model_name
for YRbF in range(B4Mf):
IN5v += [yHwh(filters=KUnM, kernel_size=Ot1W, dilation_rate=fiu3, padding='same', name='%s_cnn_bl_conv_%d_%d' % (J87D, mWFP, YRbF)), GVKG(axis=-1, name='%s_cnn_bl_bn_%d_%d' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _K7y(g4y1, GPtr, Qzhb):\n Mkmy = GPtr.first_subsampling_dl * GPtr.density_parameter\n gEmA = 0\n joVu = GPtr.first_features_dim\n bySB = g4y1['features']\n vuvg = []\n Y9ns = Qzhb < 0.99\n HCFE = 0\n for SpB6, XkN1 in enumerate(GPtr.architecture):\n if oyIN.any([jbXL in XkN1 for ... | [
"0.7468146",
"0.7407047",
"0.7368623",
"0.7231172",
"0.71983945",
"0.7148297",
"0.71",
"0.708064",
"0.70033234",
"0.6978826",
"0.69766784",
"0.69643897",
"0.6954452",
"0.69528246",
"0.69456327",
"0.6918621",
"0.6886966",
"0.68781924",
"0.6858271",
"0.6856938",
"0.68552494",
... | 0.69666415 | 11 |
Construct several CNN blocks for feature encoder. | def Cwc6(YKHO):
g7rQ = YKHO.cnn_layer
KUnM = YKHO.filters
Ot1W = YKHO.kernel_size
B4Mf = YKHO.conv_num
EcAO = YKHO.pool_size
fiu3 = YKHO.dilation_rate
Rbkp = YKHO.with_dropout
BVpG = YKHO.dr_rate
IN5v = []
for YRbF in range(g7rQ):
IN5v += YKHO.cnn_block(KUnM[YRbF], Ot1W[Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, wOJr, uyvw, fOZ4=2):\n super(wEsN, YKHO).__init__()\n fhcK = [U78l.Conv2d(wOJr, uyvw, 3, 1, 1), U78l.BatchNorm2d(uyvw), U78l.ReLU()]\n if fOZ4 > 1:\n fhcK += [U78l.Conv2d(uyvw, uyvw, 3, 1, 1), U78l.BatchNorm2d(uyvw), U78l.ReLU()]\n YKHO.features = U78l.Sequential(*fhcK)",
"def _... | [
"0.7136468",
"0.71118206",
"0.7100522",
"0.6908959",
"0.6868366",
"0.68289757",
"0.68243563",
"0.6762719",
"0.6701291",
"0.66805893",
"0.6571708",
"0.6570466",
"0.65563524",
"0.6554595",
"0.65375787",
"0.6513528",
"0.65024585",
"0.64923024",
"0.6483877",
"0.6471984",
"0.64689... | 0.64262646 | 23 |
Encodes a string label into onehot encoding | def wIdQ(nuuJ, pan_, OiDk):
or8S = pan_.index(nuuJ)
return OiDk[or8S] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vzTG(S6BX):\n xfhm = []\n for G1Hx in range(len(S6BX)):\n UXqs = int(S6BX[G1Hx][0])\n ycBG = [0 for r845 in range(10)]\n ycBG[UXqs] = 1\n xfhm.append(ycBG)\n return xfhm",
"def zGX0(Q6uT):\n Q6uT = Q6uT.replace('A', '0')\n Q6uT = Q6uT.replace('C', '1')\n Q6uT = Q... | [
"0.79564464",
"0.7879545",
"0.7866851",
"0.7820411",
"0.77946967",
"0.77837646",
"0.7779272",
"0.7760194",
"0.7757464",
"0.775561",
"0.7748396",
"0.76940584",
"0.76778466",
"0.767703",
"0.7667462",
"0.76377743",
"0.7609695",
"0.7567728",
"0.75484514",
"0.7529832",
"0.752534",... | 0.82700425 | 0 |
Test a manual user flow with an invalid host. | async def test_user_flow_cannot_connect(ajET: HomeAssistant, sisH: requests_mock.Mocker) -> None:
sisH.get(bmCR, exc=GX9K())
Aofo = await ajET.config_entries.flow.async_init(Sugg, context={e4zj: L8nN}, data={sHGu: 'invalid-hostname'})
assert Aofo['type'] == _gzR.FORM
assert Aofo['errors'] == {'base': 'c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_not_pick_host_if_only_one(ajET: HomeAssistant, qpI2) -> None:\n _uqo = qoza(ajET)\n Aofo = await _uqo.async_step_user()\n assert Aofo['type'] == hLjp.FlowResultType.FORM\n assert Aofo['step_id'] == 'auth'",
"async def test_flow_user_invalid(ajET: HomeAssistant):\n GEFr = GYhv(True)\... | [
"0.7590237",
"0.74164575",
"0.6929479",
"0.69281226",
"0.68716717",
"0.6855699",
"0.6849017",
"0.682428",
"0.68218625",
"0.67438334",
"0.66432154",
"0.66262573",
"0.6604949",
"0.6539109",
"0.6517854",
"0.64649856",
"0.6419877",
"0.6405611",
"0.6391318",
"0.63871765",
"0.63850... | 0.74156475 | 2 |
Whether the user that requested this repository has admin permissions | def dp9S(YKHO):
return YKHO._admin | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Kb1(YKHO):\n return YKHO.has_permission('admin')",
"def _Kb1(YKHO):\n return True if YKHO.permission == BNML.ADMIN else False",
"def _Kb1(YKHO):\n return YKHO.role == YKHO.PermissionChoice.ADMIN or YKHO.user.is_staff",
"def MtA2(YKHO, YEnM):\n if YKHO.context.get('request'):\n return ... | [
"0.84785694",
"0.82259965",
"0.8154993",
"0.8142688",
"0.80892545",
"0.8037739",
"0.7999105",
"0.79981184",
"0.79890764",
"0.7975816",
"0.7967825",
"0.7953159",
"0.79493594",
"0.79375154",
"0.79367805",
"0.79273874",
"0.7926524",
"0.7886974",
"0.7883281",
"0.7862349",
"0.7841... | 0.0 | -1 |
Whether the user that requested this repository has push permissions | def _jXH(YKHO):
return YKHO._push | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hqn7(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'developer_can_push')",
"def qHTF(YKHO):\n IuXB = super().has_permission()\n bNKA = YKHO.get_project()\n return False if bNKA.is_remote() else IuXB",
"def l_NJ(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'can_push')",
"def Hq... | [
"0.7468056",
"0.73899657",
"0.7316889",
"0.71418756",
"0.7027176",
"0.6845833",
"0.6770703",
"0.67705286",
"0.67092115",
"0.66875696",
"0.66420984",
"0.65894675",
"0.6572808",
"0.6545001",
"0.6516694",
"0.65145266",
"0.649136",
"0.64586043",
"0.64568704",
"0.64383435",
"0.643... | 0.0 | -1 |
Function recives 3 lists Course,Test,Question and will initialize them(First start) | def zZDi(vyNo, LHnT, kRGs):
Vj4P = True
IEf1 = True
bGFM = True
K9uC = 0
vFcA = 0
SAj6 = 0
while Vj4P:
print('Creating new Course')
ycBG = rOiV(vyNo)
vyNo.append(ycBG) if ycBG is not None else None
if ycBG is None:
IEf1 = False
while IEf1:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LLpf():\n RtKw = euxl()\n Jp28 = CQpO(name='CS428', description='Continuation of CS 427. Software development, management, and maintenance. Project and configuration management, collaborative development models, software quality assurance, interoperability domain engineering and software reuse, and softw... | [
"0.6381613",
"0.6170533",
"0.6161466",
"0.61523",
"0.60862106",
"0.60515875",
"0.599411",
"0.59818244",
"0.5963804",
"0.5956706",
"0.5922602",
"0.59167373",
"0.59095013",
"0.5905606",
"0.5901139",
"0.5874316",
"0.5871122",
"0.58708775",
"0.58552545",
"0.5848041",
"0.58414274"... | 0.74514747 | 0 |
Test write healsparse MOC and read with mocpy. | def fPc3(YKHO):
try:
import mocpy
except ImportError:
return
GvQI = 32
DcX7 = 2048
YKHO.test_dir = gbPf.mkdtemp(dir='./', prefix='TestHealSparse-')
nnKY = ATya.HealSparseMap.make_empty(GvQI, DcX7, bool)
nnKY[30000:70000] = True
nnKY[80000:90000] = True
IznC = Hy7s.pat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fQ7_(YKHO):\n GvQI = 32\n DcX7 = 2048\n YKHO.test_dir = gbPf.mkdtemp(dir='./', prefix='TestHealSparse-')\n nnKY = ATya.HealSparseMap.make_empty(GvQI, DcX7, bool)\n nnKY[30000:70000] = True\n IznC = Hy7s.path.join(YKHO.test_dir, 'healsparse_moc.fits')\n nnKY.write_moc(IznC)\n V8T5 = ATya... | [
"0.7604973",
"0.7316784",
"0.62977415",
"0.62052846",
"0.61487955",
"0.61487454",
"0.5895995",
"0.58514446",
"0.5847735",
"0.5740745",
"0.5731174",
"0.57265025",
"0.5716115",
"0.56315035",
"0.55964375",
"0.55905956",
"0.557188",
"0.5548118",
"0.554032",
"0.5532053",
"0.553036... | 0.74586284 | 1 |
Test write mocpy MOC and read with healsparse. | def YSvM(YKHO):
try:
import mocpy
except ImportError:
return
GvQI = 32
DcX7 = 2048
YKHO.test_dir = gbPf.mkdtemp(dir='./', prefix='TestHealSparse-')
nnKY = ATya.HealSparseMap.make_empty(GvQI, DcX7, bool)
nnKY[30000:70000] = True
nnKY[80000:90000] = True
IznC = Hy7s.pat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fQ7_(YKHO):\n GvQI = 32\n DcX7 = 2048\n YKHO.test_dir = gbPf.mkdtemp(dir='./', prefix='TestHealSparse-')\n nnKY = ATya.HealSparseMap.make_empty(GvQI, DcX7, bool)\n nnKY[30000:70000] = True\n IznC = Hy7s.path.join(YKHO.test_dir, 'healsparse_moc.fits')\n nnKY.write_moc(IznC)\n V8T5 = ATya... | [
"0.77032435",
"0.74539715",
"0.62108433",
"0.61447257",
"0.5991059",
"0.5941531",
"0.59389555",
"0.5938939",
"0.5919281",
"0.59063464",
"0.5797229",
"0.57717127",
"0.5763328",
"0.5669872",
"0.56695896",
"0.5623109",
"0.5595523",
"0.55642635",
"0.55608046",
"0.55586195",
"0.55... | 0.73595077 | 2 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 97 |
Return the integer represented by the given array of bytes. bytes Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of builtin objects that support the buffer protocol. byteorder The byte order used to rep... | def bQ4v(YKHO, *qIxc, **B2fa):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQ4v(iCJ7, abwh):\n return int.from_bytes(iCJ7, abwh)",
"def gs1C(bytes, abwh='little', i1fZ=False):\n return int.from_bytes(bytes, byteorder=abwh, signed=i1fZ)",
"def PCNz(J83E):\n Mkmy = 0\n XP5J = 0\n for Fg_i in J83E:\n Mkmy |= Fg_i << 8 * XP5J\n XP5J += 1\n return Mkmy"... | [
"0.7733996",
"0.76504153",
"0.7494796",
"0.74759644",
"0.7398911",
"0.737474",
"0.72705",
"0.71186054",
"0.70910555",
"0.7087342",
"0.70790315",
"0.70769405",
"0.7011334",
"0.6908126",
"0.68604225",
"0.6857655",
"0.68378997",
"0.680182",
"0.6778887",
"0.67755294",
"0.677341",... | 0.0 | -1 |
Return an array of bytes representing an integer. length Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte ... | def ntSl(YKHO, *qIxc, **B2fa):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KA36(kAne, u54L, abwh, i1fZ=False):\n if u54L < 0:\n raise ValueError('length argument must be non-negative')\n if u54L == 0 and kAne == 0:\n return bytes()\n if i1fZ and kAne < 0:\n UOVU = u54L * 8\n mLGw = 2 ** UOVU + kAne\n if mLGw <= 0:\n raise Overflo... | [
"0.77890533",
"0.7431106",
"0.7347431",
"0.72583485",
"0.71052164",
"0.7038834",
"0.7034264",
"0.702012",
"0.69006056",
"0.6746243",
"0.6670121",
"0.6558606",
"0.65544677",
"0.6455052",
"0.63429767",
"0.63267946",
"0.6315088",
"0.630883",
"0.63085663",
"0.62849116",
"0.625552... | 0.0 | -1 |
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses. | def kblH(YKHO, *qIxc, **B2fa):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_(YKHO):\n print('Subclass and over-ride this method.')",
"def FIMM(YKHO):\n super().__init__(None)",
"def FIMM(YKHO):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2... | [
"0.7979661",
"0.712131",
"0.71145266",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
"0.70909053",
... | 0.0 | -1 |
Calculate the mean for a particular time period. | def LyqU(tk32, fFB2):
FNWJ = RRBJ.get_time_constraint(fFB2)
tk32 = tk32.extract(FNWJ)
BuDZ = [BHsk.name() for BHsk in tk32.dim_coords]
if 'time' in BuDZ:
tk32 = tk32.collapsed('time', Ty8a.analysis.MEAN)
tk32.remove_coord('time')
return tk32 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xVds(YKHO):\n G9jH.info('The calculation of temporal mean is finished!')",
"def elBB(YKHO, pQ4c):\n tQKO = YKHO.daily_h - YKHO.daily_l\n return tQKO.rolling(window=pQ4c).mean()",
"def IvhD(YKHO) -> float:\n return YKHO.total_time / YKHO.valid_count",
"def qqgr(YKHO):\n return sum(YKHO.time... | [
"0.74295",
"0.74101824",
"0.72234726",
"0.7127775",
"0.7106698",
"0.710468",
"0.7049869",
"0.6964044",
"0.69636714",
"0.6885541",
"0.6869428",
"0.6856955",
"0.6849392",
"0.6842443",
"0.68331313",
"0.6830551",
"0.6830551",
"0.6824509",
"0.6817736",
"0.6806287",
"0.67820424",
... | 0.7226311 | 2 |
add data at the end of the linked list | def H2v5(nPrm):
Q6kx = sdCG
while Q6kx.next:
Q6kx = Q6kx.next
Q6kx.next = o7DN(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SStx(YKHO, nPrm):\n if not YKHO.head:\n YKHO.head = Msxl(data=nPrm)\n DpUl = YKHO.head\n while DpUl.next:\n DpUl = DpUl.next\n DpUl.next = Msxl(data=nPrm)",
"def H2v5(YKHO, nPrm):\n YKHO.__Llist.addLast(nPrm)",
"def SStx(YKHO, nPrm):\n if not YKHO.head:\n YKHO.head = ... | [
"0.83565104",
"0.83394873",
"0.8313174",
"0.8313174",
"0.8313174",
"0.8307382",
"0.82021725",
"0.81703603",
"0.81478304",
"0.8105704",
"0.8050686",
"0.803542",
"0.80078995",
"0.798807",
"0.79584837",
"0.79492813",
"0.7930817",
"0.79280794",
"0.79057586",
"0.7845967",
"0.78178... | 0.7708 | 24 |
Return the unit of measurement. | def b82i(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82... | [
"0.90788347",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9013875",
"0.90051067",
"0.89462197",
"0.89462197",
"0.89366317",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.8918... | 0.8417538 | 74 |
Return the state attributes. | def R1i3(YKHO):
return YKHO._attributes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.82867026 | 25 |
Create a 64 char long randomly generated token. | def LQUb(YKHO):
YKHO.token = MRxC.hexlify(Hy7s.urandom(32)).decode('utf-8')
return YKHO.token | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w9Ho(u54L=64):\n return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(u54L)))",
"def LQUb():\n return FXSn.token_hex(8)",
"def LQUb() -> str:\n return FXSn.token_hex(16)",
"def LQUb(u54L=64):\n HLVl = 'abcdefghijklmnoprstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-_... | [
"0.82613945",
"0.81000143",
"0.8095647",
"0.80366445",
"0.7992572",
"0.79778254",
"0.7956477",
"0.7947694",
"0.7859495",
"0.78051704",
"0.77992696",
"0.77915925",
"0.77890944",
"0.7768551",
"0.7711328",
"0.7695586",
"0.76680815",
"0.7666353",
"0.7661395",
"0.76010835",
"0.748... | 0.80898345 | 3 |
Save user information to db. | def xkzz(YKHO):
NCls.session.add(YKHO)
NCls.session.commit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _TTP(YKHO):\n xDcj = '\\n INSERT INTO users (username, firstname, lastname, othernames, phoneNumber, email, password, isAdmin, registered)\\n VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s);\\n '\n nPrm = (YKHO.username, YKHO.firstname, Y... | [
"0.82692784",
"0.8197654",
"0.81584674",
"0.794334",
"0.7941337",
"0.79049385",
"0.78743213",
"0.78743213",
"0.78743213",
"0.7842187",
"0.7842187",
"0.7820476",
"0.780182",
"0.77674556",
"0.7752114",
"0.7543328",
"0.75291955",
"0.7453072",
"0.74165016",
"0.7376059",
"0.729208... | 0.0 | -1 |
Get user by user_id. | def B9Zf(PObu):
return mv1M.query.filter_by(user_id=PObu).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(uJjO):\n CBIr = mv1M.objects.get_or_404(id=uJjO)\n return CBIr",
"def bt8D(uJjO):\n return NCls.get(uJjO, None)",
"def TKWP(uJjO):\n return mv1M.query.get(uJjO)",
"def bt8D(uJjO):\n return mv1M.query.get(uJjO)",
"def bt8D(Emd4, uJjO):\n CBIr = mv1M.query.get(uJjO)\n return CBI... | [
"0.9055742",
"0.90109986",
"0.89509046",
"0.8949348",
"0.8914327",
"0.88740987",
"0.88722926",
"0.8862036",
"0.88325983",
"0.8806476",
"0.87934643",
"0.8791893",
"0.8791893",
"0.8791893",
"0.8782439",
"0.87748694",
"0.87748694",
"0.87748694",
"0.87748694",
"0.8743297",
"0.874... | 0.0 | -1 |
Loads a user from the database using their email. | def Z0Os(Emd4, D3lj):
return Emd4.query.filter_by(email=D3lj).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lyxB(D3lj):\n if V7zm(D3lj):\n return mv1M(D3lj)\n return None",
"def sIWq(Emd4, D3lj):\n wk5E.logger.debug('try to load user %s from db.' % D3lj)\n try:\n A97Q = FYrf.User.objects.get(email=D3lj)\n except:\n A97Q = None\n if A97Q:\n return Emd4(user_id=A97Q.user... | [
"0.8189539",
"0.79937553",
"0.79836726",
"0.790293",
"0.7890617",
"0.7859815",
"0.7801849",
"0.7694233",
"0.7685197",
"0.7641728",
"0.76212233",
"0.7614259",
"0.761277",
"0.7568607",
"0.7541425",
"0.75371146",
"0.7530785",
"0.75252026",
"0.75208354",
"0.7514899",
"0.75045687"... | 0.7088961 | 69 |
Loads a user from the database using their email. | def EvQG(Emd4, id):
return Emd4.query.filter_by(id=id).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lyxB(D3lj):\n if V7zm(D3lj):\n return mv1M(D3lj)\n return None",
"def sIWq(Emd4, D3lj):\n wk5E.logger.debug('try to load user %s from db.' % D3lj)\n try:\n A97Q = FYrf.User.objects.get(email=D3lj)\n except:\n A97Q = None\n if A97Q:\n return Emd4(user_id=A97Q.user... | [
"0.8188789",
"0.7994186",
"0.79827434",
"0.7902951",
"0.78902185",
"0.78595996",
"0.7800893",
"0.76936626",
"0.76852465",
"0.7640735",
"0.7621116",
"0.76140326",
"0.7612325",
"0.75686735",
"0.7541847",
"0.7537003",
"0.7530768",
"0.75242645",
"0.7520937",
"0.7515256",
"0.75047... | 0.0 | -1 |
returns a list of all teachers in the school as (id, name) tuples for use in forms | def OpM5(Emd4):
return [(LtAY.id, f'{LtAY.first_name} {LtAY.last_name}') for LtAY in Emd4.get_teachers()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Edqu(YKHO) -> x1iM[tCIG]:\n return YKHO._qualifiedTeachers",
"def pu_N(YKHO):\n z_k8 = mv1M.query.join(mv1M.groups).filter(GZKM.group_id == YKHO.id, mv1M.role_id.in_((yJnq['staff'], yJnq['admin']))).all()\n return z_k8",
"def zdS0():\n if QePW.method == 'GET':\n XKbL = NCls.execute('SELE... | [
"0.69593084",
"0.66906136",
"0.6655748",
"0.6646175",
"0.66321844",
"0.6513148",
"0.64364016",
"0.6436204",
"0.63746446",
"0.6283147",
"0.6195291",
"0.61872315",
"0.6164071",
"0.61490494",
"0.61433816",
"0.6136625",
"0.61267215",
"0.60767174",
"0.60327023",
"0.6015167",
"0.59... | 0.64565754 | 6 |
Convert an assignment name into one safe to use as a filename. This is used for template files, e.g. unit testing and source files. The primary concern is that assignment names contain hyphens, but filenames with hyphens cannot be imported in Python. | def Nqqx(mWFP):
return mWFP.replace('-', '_').strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ejL7(mWFP):\n return mWFP.replace('-', '_')",
"def ejL7(mWFP):\n return mWFP.replace('-', '_')",
"def LWVQ(mWFP):\n import string\n jUwZ = '-_.() %s%s' % (string.ascii_letters, string.digits)\n Ux0P = ''.join((Z9rn for Z9rn in mWFP if Z9rn in jUwZ))\n Ux0P = Ux0P.replace(' ', '_')\n re... | [
"0.76091677",
"0.7481616",
"0.70117134",
"0.688604",
"0.6789646",
"0.675758",
"0.6754484",
"0.6710165",
"0.66365653",
"0.65907496",
"0.65385216",
"0.65264124",
"0.6468992",
"0.6442715",
"0.64242786",
"0.6417252",
"0.6394453",
"0.63914937",
"0.63523877",
"0.63521326",
"0.63469... | 0.7597618 | 1 |
Register sys status listener. If a monitored sensor is not present or unhealthy, report. | def xUns(YKHO, FMwV):
@FMwV.on_message('SYS_STATUS')
def Oa3s(bGrB, mWFP, tO9_):
for Wswm, UOVU in YKHO._sensors.items():
ZaSX = True if tO9_.onboard_control_sensors_enabled & UOVU == UOVU else False
VQuU = True if tO9_.onboard_control_sensors_health & UOVU == UOVU else False
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rPfK(YKHO, DN9V):\n YKHO._status_listeners.append(DN9V)",
"def _kZf(YKHO):\n YKHO._device_status = XTqt.discrete('device-status', description='health status of node', params=YKHO.DEVICE_STATUSES, default='ok')\n YKHO.add_sensor(YKHO._device_status)\n YKHO._monitors['disk'] = EWb6(YKHO._config.VOL... | [
"0.6492258",
"0.59394383",
"0.5858567",
"0.5754245",
"0.5752863",
"0.5721968",
"0.5628639",
"0.56049055",
"0.5592921",
"0.5557131",
"0.55412203",
"0.54383373",
"0.54277605",
"0.5423682",
"0.5419386",
"0.5403314",
"0.53777665",
"0.53669894",
"0.5361096",
"0.5353162",
"0.534635... | 0.7283491 | 0 |
Exact value of the average plaquette calculated at `beta`. | def KUZk(UqYS):
return TPao(UqYS) / FaWX(UqYS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c84G(nPrm):\n KMvS = _LS1(nPrm)\n return g0Yg(KMvS)",
"def USKV(YKHO):\n return float(YKHO.alpha) / (YKHO.alpha + YKHO.beta)",
"def USKV(YKHO):\n return float(YKHO.alpha) / (YKHO.alpha + YKHO.beta)",
"def XjOh(UqYS):\n return Zxt2.special.gamma(1 + 1.0 / UqYS)",
"def sJpQ(nPrm):\n KMv... | [
"0.6988374",
"0.68070734",
"0.68070734",
"0.6721963",
"0.656763",
"0.6502577",
"0.64794356",
"0.6464393",
"0.6401993",
"0.6381585",
"0.6288371",
"0.6287958",
"0.6250434",
"0.62383",
"0.62352747",
"0.62242305",
"0.6213118",
"0.6200224",
"0.6189551",
"0.6156682",
"0.6153753",
... | 0.6249246 | 13 |
Access site settings, set up corresponding django configuration and return the settings module | def zp3H(TdrN, cvPk, xAU6):
gCuF = NjKn(TdrN, cvPk, xAU6)
if not gCuF:
print('Settings not found (%s)' % xAU6.configuration, file=HwRy.stderr)
return None
with R3NL(G9jH.INFO):
Hy7s.environ['DJANGO_SETTINGS_MODULE'] = gCuF.modulename
P5dF = ANWz.import_module(gCuF.modulename)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TuHQ(YKHO):\n mWFP = Hy7s.environ['DJANGO_SETTINGS_MODULE']\n B5hb, VlDb = mWFP.rsplit('.', 1)\n Gcbu, pmON, JBZA = PQrP.find_module(VlDb, [B5hb.replace('.', '/')])\n try:\n return PQrP.load_module(VlDb, Gcbu, pmON, JBZA)\n finally:\n if Gcbu:\n Gcbu.close()",
"def TuH... | [
"0.711483",
"0.70827",
"0.70519525",
"0.69930995",
"0.6965911",
"0.69307053",
"0.69253975",
"0.69119763",
"0.69114774",
"0.68805146",
"0.68675464",
"0.68317753",
"0.6815874",
"0.6781796",
"0.6748869",
"0.6747231",
"0.670061",
"0.6685359",
"0.6667026",
"0.6665263",
"0.6648816"... | 0.812048 | 0 |
Copy vm image from node images pool to selected image on storage. Image entity should be createt before calling this function | def CxNT(YKHO, z3rX, LNo8):
RKD7.debug(z3rX.user.id, 'Preparing temporary storage pool')
if not Hy7s.path.exists(Hy7s.path.dirname(LNo8.path)):
Hy7s.makedirs(Hy7s.path.dirname(LNo8.path))
RKD7.debug(z3rX.user.id, str(['ssh', z3rX.node.ssh_string, 'cp /images/%d %s' % (z3rX.id, LNo8.path)]))
if Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def evrl(YKHO, z3rX):\n Mkmy = Yn3K.call(['ssh', z3rX.node.ssh_string, 'chmod a+rw %s' % z3rX.system_image.path])\n RKD7.debug(z3rX.user.id, 'Copy image by ssh')\n RKD7.debug(z3rX.user.id, str(['ssh', z3rX.node.ssh_string, 'cp %s /images/%d' % (z3rX.system_image.path, z3rX.id)]))\n if Yn3K.call(['ssh',... | [
"0.6980093",
"0.69496727",
"0.6935189",
"0.6861225",
"0.68309116",
"0.68127275",
"0.6804756",
"0.6804756",
"0.6796589",
"0.6782704",
"0.6723421",
"0.66288346",
"0.6506697",
"0.6496535",
"0.6482396",
"0.6477242",
"0.6474929",
"0.6460743",
"0.6433343",
"0.6368054",
"0.63649166"... | 0.7749942 | 0 |
Create and configure an instance of the Flask application. | def LUif(zmu8=None):
P4t4 = L2w0(__name__, instance_relative_config=True)
P4t4.config.from_mapping(SECRET_KEY='dev', DATABASE=Hy7s.path.join(P4t4.instance_path, 'flaskr.sqlite'))
if zmu8 is None:
P4t4.config.from_pyfile('config.py', silent=True)
else:
P4t4.config.update(zmu8)
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z_uJ():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(PSrQ)\n P4t4.config.from_object(Hy7s.environ.get('APP_SETTINGS'))\n return P4t4",
"def LUif() -> L2w0:\n GPtr = R4f_()\n HEBM = L2w0(__name__)\n if 'secret_key' in GPtr:\n HEBM.secret_key = GPtr['secret_key']\n else:\n ... | [
"0.8550675",
"0.8474058",
"0.83250463",
"0.82780045",
"0.82600516",
"0.8254567",
"0.8219361",
"0.8218672",
"0.8184658",
"0.8165856",
"0.8159987",
"0.81547904",
"0.8144859",
"0.8143109",
"0.81383723",
"0.81337434",
"0.81173235",
"0.8106655",
"0.8095554",
"0.8090432",
"0.808515... | 0.0 | -1 |
Return key of map's keyvalue pair. | def H5ew(YKHO):
return YKHO.element()._key | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PiOy(byDn, BWXx):\n for H5ew, wEf2 in byDn.items():\n if wEf2 == BWXx:\n return H5ew\n return None",
"def mexE(dict, BWXx):\n return [G1Hx for G1Hx, Ty9i in dict.items() if Ty9i == BWXx][0]",
"def mexE(YKHO, BWXx):\n if type(BWXx) == type(dict()):\n DumB = [ZfUD[0] for ... | [
"0.7818418",
"0.7028722",
"0.6948173",
"0.6938983",
"0.6838259",
"0.6816429",
"0.6705003",
"0.6705003",
"0.66018385",
"0.6582377",
"0.6570437",
"0.6546616",
"0.64932555",
"0.64753985",
"0.6460765",
"0.64584863",
"0.6458004",
"0.64536",
"0.64231706",
"0.640279",
"0.6391059",
... | 0.59671474 | 90 |
Return the first Position in the tree (or None if empty). | def cntZ(YKHO):
return YKHO._subtree_first_position(YKHO.root()) if len(YKHO) > 0 else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if YKHO.root is None:\n raise KeyError\n return YKHO.root.find_min().data",
"def cntZ(YKHO):\n return YKHO._subtree_first_postion(YKHO.root()) if len(YKHO) > 0 else None",
"def bNMk(YKHO):\n YKHO.child_ptr = 0\n if len(YKHO.m_children_ordered) > 0:\n return YKHO.m... | [
"0.7365404",
"0.7364988",
"0.710662",
"0.7089047",
"0.6950269",
"0.6933038",
"0.68531895",
"0.67146724",
"0.67146724",
"0.6707369",
"0.67063314",
"0.66900945",
"0.66833407",
"0.66816986",
"0.667346",
"0.6651703",
"0.6633469",
"0.6631876",
"0.6610587",
"0.6596248",
"0.6556145"... | 0.78449637 | 0 |
Return (key, value) pair with minimum key (or None if empty). | def XcNI(YKHO):
if YKHO.is_empty():
return None
else:
XP5J = YKHO.first()
return (XP5J.key(), XP5J.value()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XcNI(YKHO):\n if YKHO.is_empty():\n return None\n else:\n XP5J = YKHO.first()\n return (XP5J.key(), XP5J.value)",
"def DQkz(Csk6):\n if len(Csk6) == 0:\n return (OGGq, [])\n else:\n Z23B, kpLf = Csk6.items()[0]\n for G1Hx, Ty9i in Csk6.items():\n ... | [
"0.7959615",
"0.7896728",
"0.7708768",
"0.7509668",
"0.74795973",
"0.74195355",
"0.7401046",
"0.7394889",
"0.7362833",
"0.7345327",
"0.73452276",
"0.7331571",
"0.7323655",
"0.73136365",
"0.7246476",
"0.72406113",
"0.7239887",
"0.72043806",
"0.7183389",
"0.71348023",
"0.713480... | 0.7924666 | 1 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))
return uw5A / uw5A.sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye",
"def N93T(WKvO):\n j1LR = oyIN.exp(o... | [
"0.80118036",
"0.77634716",
"0.77634716",
"0.76874506",
"0.76723677",
"0.76621646",
"0.7658821",
"0.7658821",
"0.7658821",
"0.7658821",
"0.7658821",
"0.7658821",
"0.7658821",
"0.7641485",
"0.7629499",
"0.7553611",
"0.7534289",
"0.74586517",
"0.73266053",
"0.7319653",
"0.73034... | 0.70956856 | 58 |
Convert JSON with lat/lon columns to geojson. | def iFtC(jQ3Z, WHTt, RmwN):
wFOJ = {'type': 'FeatureCollection', 'features': []}
for ZfUD in jQ3Z:
ZfUD = SCeK(ZfUD)
xSaS = {}
for G1Hx, Ty9i in ZfUD.items():
if G1Hx in ['id', 'id_number', 'serial_number', 'well', 'location.address.summary', 'location.address.district', 'loc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wFOJ():\n return pz3A(TdeU(cuiw))",
"def pqzU(YKHO, Catu):\n LD1b = Catu['lat']\n k_Cy = Catu['lon']\n if len(LD1b) > 0 and len(k_Cy) > 0:\n wFOJ = {'geometries': {'bbox': YKHO._gen_bbox(Catu), 'summary': YKHO._gen_coord_summary(Catu)}}\n return wFOJ\n return None",
"def oGJ6(F... | [
"0.69233704",
"0.67100024",
"0.66602427",
"0.6619599",
"0.65195805",
"0.65132123",
"0.6483493",
"0.6425468",
"0.6401575",
"0.639674",
"0.6370995",
"0.63398916",
"0.62916344",
"0.6288248",
"0.6287102",
"0.6270023",
"0.626681",
"0.61966664",
"0.6192574",
"0.6174047",
"0.6144146... | 0.72244525 | 0 |
Compute resolution limits based on the current self._params set. | def mG_o(YKHO):
if YKHO._params.rmerge:
bo34.info('Resolution rmerge: %.2f', YKHO.resolution_rmerge())
if YKHO._params.completeness:
bo34.info('Resolution completeness: %.2f', YKHO.resolution_completeness())
if YKHO._params.cc_half:
bo34.info('Resolution cc_half: %.2f', YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LY6W(YKHO) -> tuple:\n return (YKHO.m_lim, YKHO.r_lim)",
"def LY6W(YKHO) -> tuple:\n return (YKHO.m_lim, YKHO.r_lim)",
"def YNwR(YKHO):\n rApc = YKHO._rlv_beg[1].cross(YKHO._rlv_beg[2]).normalize()\n if YKHO._rlv_beg[0].dot(rApc) < 0:\n rApc = -1 * rApc\n SKuY = YKHO._rlv_end[1].cross... | [
"0.6566576",
"0.6566576",
"0.62418437",
"0.6229697",
"0.61772263",
"0.6145798",
"0.612937",
"0.6128896",
"0.61167824",
"0.61053485",
"0.6084098",
"0.6054011",
"0.6054011",
"0.6054011",
"0.6054011",
"0.60383725",
"0.60224736",
"0.6013685",
"0.6012367",
"0.5997555",
"0.59635395... | 0.0 | -1 |
Convert a Tensor to numpy image. | def psm6(pKvt):
pKvt = pKvt.numpy().transpose((1, 2, 0))
JBMS = oyIN.array([0.485, 0.456, 0.406])
M1Jx = oyIN.array([0.229, 0.224, 0.225])
pKvt = M1Jx * pKvt + JBMS
pKvt = oyIN.clip(pKvt, 0, 1)
return pKvt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaVh(vhpA):\n vhpA = vhpA.mul(255).add_(0.5).clamp_(0, 255).permute(1, 2, 0)\n NabZ = vhpA.to('cpu', ht2j.uint8).numpy()\n return NabZ",
"def uaVh(vhpA):\n vhpA = vhpA.mul(255).add_(0.5).clamp_(0, 255).permute(1, 2, 0)\n NabZ = vhpA.to('cpu', ht2j.uint8).numpy()\n return NabZ",
"def uDyX(... | [
"0.77084035",
"0.77084035",
"0.73642474",
"0.72808075",
"0.7200513",
"0.7148543",
"0.70891094",
"0.70848304",
"0.69066983",
"0.6844721",
"0.6808268",
"0.6802282",
"0.6792683",
"0.6771999",
"0.6766321",
"0.6737756",
"0.6732563",
"0.6725247",
"0.6720957",
"0.67029613",
"0.66921... | 0.0 | -1 |
Get a random element from the set. | def UIrZ(YKHO):
return Acvy(YKHO.nums_list) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8Zf(YKHO):\n try:\n return YKHO.object().random_element()\n except AttributeError:\n return Acvy(YKHO.list())",
"def UIrZ(YKHO) -> int:\n IZL_ = YKHO.randomizedSet.pop()\n YKHO.randomizedSet.add(IZL_)\n return IZL_",
"def UIrZ(YKHO):\n or8S = tuKI.randint(0, YKHO.length - 1... | [
"0.78055954",
"0.77602583",
"0.76503676",
"0.69756",
"0.6970386",
"0.69696873",
"0.69170576",
"0.6903906",
"0.68794334",
"0.6843657",
"0.68179744",
"0.68171364",
"0.6815859",
"0.6779796",
"0.6774275",
"0.6763151",
"0.6747374",
"0.67292315",
"0.6693236",
"0.6683133",
"0.666994... | 0.6180742 | 84 |
Remove an existing node from the linked list. | def DOk3(YKHO, Q6kx):
THkp = Q6kx.prev
BdN0 = Q6kx.next
THkp.next = BdN0
BdN0.prev = THkp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSdD(YKHO, Q6kx):\n if YKHO.head is None:\n raise IndexError('list is empty')\n jvSB = YKHO.head\n if jvSB == Q6kx and jvSB.next_node is not None:\n YKHO.head = jvSB.next_node\n jvSB = None\n return YKHO.head\n try:\n while jvSB.next_node != Q6kx:\n jvS... | [
"0.8291719",
"0.811467",
"0.8073504",
"0.80511796",
"0.7993792",
"0.79806525",
"0.79531085",
"0.7876447",
"0.78544617",
"0.7829479",
"0.7802914",
"0.77915996",
"0.77915996",
"0.7768842",
"0.7755929",
"0.7749612",
"0.7744097",
"0.77386326",
"0.7720769",
"0.7676047",
"0.7675369... | 0.796876 | 6 |
This function estimates the parameters of a Gaussian distribution using the data in x | def kHpo(WKvO, lFz1=False):
yGTL = oyIN.mean(WKvO, 0)
if lFz1:
WTkW = WKvO.T.dot(WKvO)
else:
WTkW = oyIN.std(WKvO, 0) ** 2
WTkW = oyIN.diag(WTkW)
return (yGTL, WTkW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / PZyS(2.0 * mM0K * WTkW ** 2)",
"def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / PZyS(2.0 * mM0K * WTkW ** 2)",
"def IAWS(YKHO, yGTL, WTkW, WKvO):\n return epAf.exp(-(yGTL - WKvO) ** 2 ... | [
"0.8101819",
"0.80736053",
"0.80014175",
"0.7835716",
"0.7769238",
"0.7734835",
"0.769012",
"0.7687625",
"0.7653906",
"0.76200527",
"0.7564118",
"0.7537351",
"0.7518372",
"0.7517125",
"0.74150395",
"0.74145746",
"0.73508495",
"0.7342915",
"0.7321719",
"0.72755754",
"0.7268188... | 0.0 | -1 |
Computes the probability density function of the multivariate gaussian distribution. | def IAWS(WKvO, yGTL, WTkW):
if WKvO.ndim == 1:
WKvO = oyIN.reshape((1, WKvO.size))
WKvO = WKvO - yGTL
G1Hx = oyIN.size(WTkW, 0)
dKc3 = oyIN.array(oyIN.mat(WTkW).I)
XP5J = (2.0 * oyIN.pi) ** (-G1Hx / 2.0) * nUPH(WTkW) ** (-0.5) * oyIN.exp(-0.5 * oyIN.sum(WKvO.dot(dKc3) * WKvO, 1))
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V5Uq(YKHO, WKvO, r7V4, ZfCB):\n return nSzW.pdf(WKvO, r7V4, ZfCB)",
"def ld4A(yGTL, WTkW):\n GOZd = oyIN.linalg.inv(WTkW)\n nUPH = oyIN.linalg.det(WTkW)\n\n def JfyU(WKvO):\n VgZN = oyIN.exp(-(1 / 2) * EnfX(WKvO - yGTL, GOZd))\n return (2 * oyIN.pi) ** (-yGTL.shape[0] / 2) * (1 / oy... | [
"0.8010563",
"0.7731531",
"0.7242818",
"0.7189135",
"0.71797264",
"0.7171165",
"0.71176493",
"0.70207345",
"0.6978854",
"0.6967852",
"0.6961995",
"0.6951319",
"0.693931",
"0.69363457",
"0.6919411",
"0.6864953",
"0.68548757",
"0.6844886",
"0.6844886",
"0.68320614",
"0.68320614... | 0.69434804 | 12 |
Return BehavioralLogEntry objects based on user, or session_key if available | def v8bT(CBIr, AcPe=None):
if not isinstance(CBIr, mv1M):
Ii5D = 'user must be a User object (LogFormatter.get_log_entries)'
return juh9(Ii5D)
NArs = dict(user=CBIr)
return Cw5d(OARA.objects.filter(**NArs)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MTrQ(YKHO, CBIr):\n g0E2 = RdPg.query.filter(RdPg.user_id == CBIr.id, RdPg.group_id == YKHO.id).all()\n return g0E2",
"def XuUT(cuiw):\n return QBDP.get(cuiw)",
"async def get_audit_log_event(YKHO, BgXn=None, lSCo=None, XeOP=None, CBIr=None):\n async for bTKY in lSCo.audit_logs(limit=1):\n ... | [
"0.6125703",
"0.61255574",
"0.54958886",
"0.53256994",
"0.5227328",
"0.52202326",
"0.5177227",
"0.50822735",
"0.50503016",
"0.5044807",
"0.5030007",
"0.50110596",
"0.496394",
"0.49568358",
"0.49555546",
"0.49497965",
"0.49460557",
"0.48923993",
"0.48831066",
"0.48740152",
"0.... | 0.7590866 | 0 |
Flag indicating whether this connection has been closed locally. | def msNV(YKHO):
return YKHO._closed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SEEh(YKHO):\n return YKHO.connection is None",
"def SEEh(YKHO):\n return YKHO.connection is None",
"def msNV(YKHO):\n return YKHO.transport.is_closing()",
"def msNV(YKHO):\n return YKHO._closed or YKHO._conn.closed",
"def SEEh(YKHO):\n return YKHO._closed",
"def SEEh(YKHO):\n return... | [
"0.7844638",
"0.7844638",
"0.7701629",
"0.76591486",
"0.7577673",
"0.7577673",
"0.7511753",
"0.7493461",
"0.74850476",
"0.7423183",
"0.74177486",
"0.7345945",
"0.7322098",
"0.7322098",
"0.7322098",
"0.7322098",
"0.7301833",
"0.7296108",
"0.7269161",
"0.7256076",
"0.7235086",
... | 0.7010708 | 33 |
Flag indicating whether this connection has been closed remotely. | def HmgC(YKHO):
return YKHO._broken | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def msNV(YKHO):\n return YKHO.transport.is_closing()",
"def SEEh(YKHO):\n return YKHO.connection is None",
"def SEEh(YKHO):\n return YKHO.connection is None",
"def msNV(YKHO):\n return YKHO._closed or YKHO._conn.closed",
"def SEEh(YKHO):\n return YKHO.status == LTBJ",
"def SEEh(YKHO):\n ... | [
"0.7633164",
"0.73453045",
"0.73453045",
"0.73322374",
"0.731559",
"0.7207056",
"0.7207056",
"0.71762455",
"0.7166007",
"0.71551466",
"0.71481",
"0.71343684",
"0.71231085",
"0.7111734",
"0.7107136",
"0.7048054",
"0.7014363",
"0.70088947",
"0.70088947",
"0.70088947",
"0.700889... | 0.0 | -1 |
Check if point is inside triangle circumcircle. Formula is taken from | def u4O2(YKHO, AU8u):
jzdc = YKHO.pt1 - AU8u
Fg_i = YKHO.pt2 - AU8u
Z9rn = YKHO.pt3 - AU8u
nUPH = jzdc * jzdc * Fg_i.cross(Z9rn) - Fg_i * Fg_i * jzdc.cross(Z9rn) + Z9rn * Z9rn * jzdc.cross(Fg_i)
if C3ap(YKHO.pt1, YKHO.pt2, YKHO.pt3) > 0:
return nUPH > 0
else:
return nUPH < 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hojg(XP5J, o4D3, si3g, ajwV, skBL, rNcn, Sb1k):\n Cwt5 = ((skBL - Sb1k) * (XP5J[0] - rNcn) + (rNcn - ajwV) * (XP5J[1] - Sb1k)) / ((skBL - Sb1k) * (o4D3 - rNcn) + (rNcn - ajwV) * (si3g - Sb1k))\n UqYS = ((Sb1k - si3g) * (XP5J[0] - rNcn) + (o4D3 - rNcn) * (XP5J[1] - Sb1k)) / ((skBL - Sb1k) * (o4D3 - rNcn) ... | [
"0.76430124",
"0.75506103",
"0.7511055",
"0.7454508",
"0.73792183",
"0.7360661",
"0.7270932",
"0.7268857",
"0.71338207",
"0.69996095",
"0.69582015",
"0.6903255",
"0.68190855",
"0.6799592",
"0.67932993",
"0.67723274",
"0.67690396",
"0.6727525",
"0.66948414",
"0.66800064",
"0.6... | 0.75476056 | 2 |
Restricting PATCH requests made to the relationship view temporarily to prevent the possibility of data corruption when PATCH requests are made to tomany related resources. This override will not be necessary once a fix is made upstream. | def Po4F(YKHO, QePW, *qIxc, **B2fa):
raise EhaT('PATCH') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HUmS(YKHO):\n pass",
"def blku(YKHO):\n pass",
"def KUcf(YKHO):\n pass",
"def CjGR(YKHO):\n pass",
"def jAXO(YKHO):\n return",
"def VL32(YKHO, QePW, **B2fa):\n return super(Xg_X, YKHO).patch_list(QePW, **B2fa)",
"def gBx9(YKHO):\n return",
"def Po4F():\n from django.db.mod... | [
"0.67017686",
"0.6690945",
"0.653719",
"0.648199",
"0.63296497",
"0.6301417",
"0.6264907",
"0.62061745",
"0.6091562",
"0.6064965",
"0.6029721",
"0.6028981",
"0.60257703",
"0.60257703",
"0.60257703",
"0.60257703",
"0.60257703",
"0.60257703",
"0.60206985",
"0.5999855",
"0.59838... | 0.57794464 | 46 |
Toggle the state of the device. If the device is currently off | def xe2L(YKHO):
YKHO._stop_blink()
YKHO.value = (1 - YKHO.value) * YKHO.on_value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xe2L(YKHO):\n if YKHO.isOn:\n YKHO.switchOff()\n else:\n YKHO.switchOn()",
"def xe2L(YKHO):\n if YKHO.state in [iKVK, h34t]:\n YKHO.turn_on()\n else:\n YKHO.turn_off()",
"def Z_rv(YKHO, **B2fa):\n QoTp = YKHO._scheme + '://' + YKHO._host + ':' + str(YKHO._port) + ... | [
"0.8086437",
"0.80384403",
"0.7965677",
"0.7942448",
"0.79286",
"0.7926508",
"0.78371805",
"0.78116757",
"0.779328",
"0.77470446",
"0.77324504",
"0.76030064",
"0.7554439",
"0.7546733",
"0.751314",
"0.74976385",
"0.7486238",
"0.74796915",
"0.74682397",
"0.74168515",
"0.7393196... | 0.7466733 | 19 |
Assume two people are same if they have the same name. This is not guaranteed to work but is probably okay for analysis now. | def xa14(YKHO, Elif) -> bool:
if not Elif:
return False
return YKHO.name == Elif.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N9cv(S1R7: Tuple[str, str, str], zuPL: Tuple[str, str, str]):\n l05I = S1R7[0].lower()\n NAUR = zuPL[0].lower()\n zv5g = S1R7[1].lower()\n UPWc = zuPL[1].lower()\n return l05I == NAUR and zv5g == UPWc",
"def N9cv(S1R7, zuPL):\n\n def tfQR(mWFP):\n return mWFP.replace(' ', '').replace... | [
"0.7109301",
"0.6813827",
"0.6813827",
"0.6445719",
"0.64438117",
"0.6364771",
"0.6306239",
"0.6271058",
"0.618822",
"0.618822",
"0.618822",
"0.6176664",
"0.6174623",
"0.61557484",
"0.6133217",
"0.6094559",
"0.6084562",
"0.6054775",
"0.60470074",
"0.601365",
"0.600755",
"0.... | 0.56857896 | 75 |
Sell shares of stock. | def sYHH():
if QePW.method == 'GET':
NCls.execute('SELECT housing.flat_no, price, square, kitchen, living, bedroom, buildingtype, constructiontime, renovationcondition, buildingstructure, elevator, subway, name, communityaverage, link, university as near, image_url FROM housing,districts,rent_house where ho... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vLdO(YKHO, o61b, Z5kt):\n pass",
"def vLdO(YKHO):\n pass",
"def e4Ga(YKHO, q9zX, FGW3, RdoJ):\n pass",
"def D3VZ(YKHO):\n YKHO.txnumber = YKHO.txnumber + 1\n B__k = YKHO.portfolio.positions[YKHO.stockB].amount\n YKHO.order(YKHO.stockB, -1 * B__k)\n VjqK = YKHO.portfolio.positions[YKH... | [
"0.8072918",
"0.8063354",
"0.76947683",
"0.7503331",
"0.7384993",
"0.7310677",
"0.71882445",
"0.71568274",
"0.70857376",
"0.7041662",
"0.7009744",
"0.69902384",
"0.69897187",
"0.6959713",
"0.6925477",
"0.6925465",
"0.69224066",
"0.68414044",
"0.68296736",
"0.6818411",
"0.6784... | 0.0 | -1 |
Prune the token dictionary based on constraints of tokens to ignore and min and max allowable token frequencies. This will remove any tokens that should be ignored and any tokens that occur less often than the minimum frequency or more often than the maximum frequency. | def rmh6(_pNa, omk5, Yrpd=oyIN.array([]), E9PH=None, zon4=None, Gkhs=None, Xan9=0.0, NIve=1.0, zbZH=None, RRhc=None, Pu0e=0.0, Qqr6=1.0, FiTp=None, llpA=None, y4P3=None, qowR=None):
if zbZH is None:
if Xan9 is None:
Xan9 = 0.0
elif Xan9 is not None:
assert zbZH / y4P3 == Xan9
els... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hkz4(wpCM, BWz1, sgxw, V9Vq):\n sZ6d = sum((UHFx for eOtH, UHFx in BWz1.most_common()))\n print('total number of tokens:', sZ6d)\n VAYJ = sum((UHFx for eOtH, UHFx in BWz1.most_common() if UHFx < sgxw or UHFx > V9Vq))\n print('number of tokens to be removed:', VAYJ)\n uZq5 = {}\n for eOtH, UHF... | [
"0.721691",
"0.69846666",
"0.6750636",
"0.6693063",
"0.6643635",
"0.6567358",
"0.65109825",
"0.6422932",
"0.63479835",
"0.63174677",
"0.62798315",
"0.62698877",
"0.61352354",
"0.5977021",
"0.5962346",
"0.58806777",
"0.5875365",
"0.5831848",
"0.58130085",
"0.5763343",
"0.57592... | 0.74687815 | 0 |
Return the transition matrix SchurBar to SchurStar. | def BYre(YKHO, gfr8):
gsSv = YKHO.TM_SchurStar_SchurBar(gfr8)
gsSv = gsSv.inverse()
return gsSv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o6qP(YKHO, Dn4b):\n zZod = YKHO._Schur(Dn4b.conjugate())\n my53 = zZod.omega()\n UNLS = Dn4b.fermionic_degree()\n Ac7B = (-1) ** (UNLS * (UNLS - 1) / 2) * my53\n return Ac7B",
"def ZcdR(YKHO, Dn4b):\n XBqq = YKHO._SchurStar\n BBzU = list(nDvi(*Dn4b.sector()))\n qfMx = BBzU.index(Dn4b)... | [
"0.65546995",
"0.64696765",
"0.64308167",
"0.6410514",
"0.636774",
"0.63451415",
"0.63355",
"0.61580926",
"0.59262365",
"0.58371496",
"0.5703784",
"0.56925964",
"0.5546425",
"0.54517096",
"0.54373527",
"0.53729033",
"0.5360717",
"0.53436327",
"0.5338541",
"0.5285365",
"0.5266... | 0.6527904 | 1 |
Apply the omega involution to the expression. | def wW3z(YKHO):
V6IE = YKHO.parent().realization_of().Powersum()
return YKHO.parent(V6IE(YKHO).omega()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wW3z(YKHO):\n _tTC = lambda Q7me: Q7me.conjugate()\n return YKHO.map_support(_tTC)",
"def wW3z(YKHO, EcVT, LVAh):\n raise NotImplementedError",
"def wW3z(YKHO) -> float:\n RA_F = YKHO.delta()\n hI0L = YKHO.price()\n return RA_F * YKHO.So / hI0L",
"def wW3z(YKHO):\n iz5W = YKHO._selec... | [
"0.7364813",
"0.72500736",
"0.6845349",
"0.6705948",
"0.6648256",
"0.6582928",
"0.6503616",
"0.6482995",
"0.6450769",
"0.6409519",
"0.6348024",
"0.617068",
"0.6158774",
"0.6097114",
"0.6092297",
"0.608944",
"0.60742253",
"0.60732394",
"0.60625774",
"0.6055127",
"0.6037136",
... | 0.6691583 | 4 |
Apply the phi_t automoprhism. | def uIMW(YKHO):
V6IE = YKHO.parent().realization_of().Powersum()
return YKHO.parent(V6IE(YKHO).phi_t()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rVnq(a1PO):\n or8S = a1PO > 0\n yvT9 = oyIN.empty(a1PO.size, dtype=oyIN.float)\n yvT9[or8S] = 1.0 / (1 + oyIN.exp(-a1PO[or8S]))\n SW8N = oyIN.exp(a1PO[~or8S])\n yvT9[~or8S] = SW8N / (1.0 + SW8N)\n return yvT9",
"def uIMW(YKHO):\n\n def mxpx(Dn4b, a1PO):\n lk9W = [(1 - a1PO ** Mkmy... | [
"0.7245868",
"0.7139578",
"0.7122259",
"0.70867276",
"0.67505586",
"0.6720186",
"0.669095",
"0.6627319",
"0.661134",
"0.6561388",
"0.6535183",
"0.6527254",
"0.64636",
"0.6456749",
"0.6444071",
"0.6427105",
"0.6420378",
"0.6397089",
"0.63680035",
"0.6353431",
"0.6350729",
"0... | 0.72265345 | 1 |
Return the omega automorphism on the powersum basis. | def wW3z(YKHO):
def eHNT(*qIxc):
Dn4b, lk9W = qIxc
return (Dn4b, (-1) ** (Dn4b.bosonic_degree() + len(Dn4b[1])) * lk9W)
return YKHO.map_item(eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wW3z(YKHO):\n V6IE = YKHO.parent().realization_of().Powersum()\n return YKHO.parent(V6IE(YKHO).omega())",
"def wW3z(YKHO):\n _tTC = lambda Q7me: Q7me.conjugate()\n return YKHO.map_support(_tTC)",
"def wW3z(YKHO) -> float:\n RA_F = YKHO.delta()\n hI0L = YKHO.price()\n return RA_F * YKHO... | [
"0.80458295",
"0.76013136",
"0.7560083",
"0.7402534",
"0.7033341",
"0.7002508",
"0.69020516",
"0.6857844",
"0.6835451",
"0.6819664",
"0.6802798",
"0.66396093",
"0.6627504",
"0.6567292",
"0.65638113",
"0.6479775",
"0.6468492",
"0.6428854",
"0.6419054",
"0.63968045",
"0.6353752... | 0.669105 | 11 |
Return the rho_qt automorphism of self. | def UbUe(YKHO):
pgY6 = YKHO.monomial_coefficients().items()
V6IE = YKHO.parent()
VL_E = V6IE._rho_qt_spart
usAi = [lk9W * VL_E(Dn4b) for Dn4b, lk9W in pgY6]
return sum(usAi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UbUe(YKHO):\n V6IE = YKHO.parent().realization_of().Powersum()\n _AKB = YKHO.parent()\n D0Yt = V6IE(YKHO)\n DhFM = D0Yt.rho_qt()\n return _AKB(DhFM)",
"def oZuG(YKHO):\n return YKHO._rho",
"def oZuG(YKHO):\n return YKHO.rotate().rotate().rotate()",
"def oZuG(YKHO):\n return YKHO.p... | [
"0.82020557",
"0.65360576",
"0.63189965",
"0.6289142",
"0.61391604",
"0.6099306",
"0.60320824",
"0.59837127",
"0.59814084",
"0.5966119",
"0.5947757",
"0.5807913",
"0.574077",
"0.5734852",
"0.5724001",
"0.56989217",
"0.5696355",
"0.5678863",
"0.56722856",
"0.5629949",
"0.56270... | 0.73562276 | 1 |
Bottleneck residual unit variant with BN after convolutions. This is the original residual unit proposed in [1]. See Fig. 1(a) of [2] for its definition. Note that we use here the bottleneck variant which has an extra bottleneck layer. When putting together two consecutive ResNet blocks that use this unit, one should u... | def RzcG(g4y1, rb7a, MLcA, _0fC, mVUw=1, Bf31=None, rrBf=None, aFjz=False):
with ZylS.variable_scope(rrBf, 'bottleneck_v1', [g4y1]) as Sa_m:
V2ar = Fz20.utils.last_dimension(g4y1.get_shape(), min_rank=4)
if rb7a == V2ar:
PWHU = REBh.subsample(g4y1, _0fC, 'shortcut')
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8zP(YKHO, WKvO, juHT, gmUL, _0fC, fjtu=False):\n if fjtu:\n with ZylS.variable_scope('common_bn_relu'):\n WKvO = YKHO.batch_normalization(WKvO)\n WKvO = ZylS.nn.leaky_relu(WKvO, YKHO.config['leakyness'])\n oN8J = WKvO\n else:\n with ZylS.variable_scope('res... | [
"0.7268856",
"0.7253129",
"0.7143906",
"0.7085057",
"0.7061856",
"0.7058683",
"0.6975717",
"0.6959593",
"0.6917635",
"0.67680943",
"0.6734006",
"0.6633684",
"0.66054213",
"0.65530473",
"0.6497325",
"0.6485113",
"0.64274395",
"0.6418509",
"0.6418509",
"0.6375696",
"0.63710064"... | 0.60367954 | 38 |
ResNet152 model of [1]. See resnet_v1() for arg and return description. | def sq8F(g4y1, jTqs=None, LT6S=True, VhhE=True, dqFD=None, SzfL=False, zeKw=True, PVly=8, ey7p=1, CJGY=None, rrBf='resnet_v1_152'):
Q1km = lambda Csk6: max(int(Csk6 * ey7p), PVly)
rmyT = [hZfS('block1', base_depth=Q1km(64), num_units=3, stride=2), hZfS('block2', base_depth=Q1km(128), num_units=8, stride=2), hZf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n return C3ST",
"def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n return C3ST",
"def hVyu(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3])\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(m... | [
"0.7431967",
"0.7393968",
"0.7390371",
"0.73791605",
"0.7365611",
"0.7365611",
"0.7365611",
"0.7365611",
"0.7365611",
"0.7365611",
"0.7365611",
"0.7365611",
"0.7365611",
"0.7365611",
"0.7363658",
"0.73623043",
"0.73623043",
"0.7353762",
"0.73517233",
"0.7343791",
"0.7342057",... | 0.6664002 | 47 |
ResNet101 model of [1]. See resnet_v1() for arg and return description. | def aSUM(g4y1, jTqs=None, LT6S=True, VhhE=True, dqFD=None, zeKw=True, SzfL=False, PVly=8, ey7p=1, CJGY=None, rrBf='resnet_v1_101'):
Q1km = lambda Csk6: max(int(Csk6 * ey7p), PVly)
rmyT = [hZfS('block1', base_depth=Q1km(64), num_units=3, stride=2), hZfS('block2', base_depth=Q1km(128), num_units=4, stride=2), hZf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K0Xe(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 4, 23, 3])\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet101']))\n return C3ST",
"def K0Xe(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 4, 23, 3])\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet101']))\n return C3ST"... | [
"0.73739713",
"0.73530716",
"0.73530716",
"0.73530716",
"0.734925",
"0.734925",
"0.73170567",
"0.7306164",
"0.7297272",
"0.7295047",
"0.7293202",
"0.7293202",
"0.7293202",
"0.7293202",
"0.7293202",
"0.7293202",
"0.7293202",
"0.7293202",
"0.7293202",
"0.7293202",
"0.7293202",
... | 0.6271452 | 75 |
Testing EMailSettingsForm.save with send_test_mail=True and without HTTP request | def Ppmv(YKHO):
vNbk = isgB.objects.get_current()
L03z = g3kb(vNbk, data={'mail_default_from': 'noreply@corp.example.com', 'send_test_mail': True})
YKHO.assertTrue(L03z.is_valid())
L03z.save()
YKHO.assertEqual(len(cpYK.outbox), 1)
Ol8d = cpYK.outbox[0]
YKHO.assertEqual(Ol8d.subject, 'Review ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cf5U(YKHO):\n CBIr = YKHO.create_user(username='admin', email='admin@corp.example.com')\n vNbk = isgB.objects.get_current()\n L03z = g3kb(vNbk, request=YKHO.create_http_request(user=CBIr), data={'mail_default_from': 'noreply@corp.example.com', 'send_test_mail': True})\n YKHO.assertTrue(L03z.is_vali... | [
"0.85267216",
"0.8164946",
"0.8029635",
"0.7485585",
"0.68886125",
"0.6785027",
"0.6754672",
"0.6704092",
"0.6660629",
"0.6654687",
"0.6651133",
"0.6642281",
"0.6553202",
"0.64916253",
"0.6472742",
"0.6469613",
"0.64400345",
"0.64237434",
"0.6408721",
"0.63942134",
"0.6382684... | 0.86166555 | 0 |
Testing EMailSettingsForm.save with send_test_mail=True without HTTP request and error sending email | def yr_1(YKHO):
YKHO.spy_on(bo34.exception)
YKHO.spy_on(cpYK.send_mail, op=HoB5.SpyOpRaise(Exception('Kaboom!')))
vNbk = isgB.objects.get_current()
L03z = g3kb(vNbk, data={'mail_default_from': 'noreply@corp.example.com', 'send_test_mail': True})
YKHO.assertTrue(L03z.is_valid())
L03z.save()
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cf5U(YKHO):\n CBIr = YKHO.create_user(username='admin', email='admin@corp.example.com')\n vNbk = isgB.objects.get_current()\n L03z = g3kb(vNbk, request=YKHO.create_http_request(user=CBIr), data={'mail_default_from': 'noreply@corp.example.com', 'send_test_mail': True})\n YKHO.assertTrue(L03z.is_vali... | [
"0.85019606",
"0.84705144",
"0.8036142",
"0.7908946",
"0.68399155",
"0.6818776",
"0.6807229",
"0.6727221",
"0.6672019",
"0.66626066",
"0.663385",
"0.66209626",
"0.6615199",
"0.6602822",
"0.65708107",
"0.6553943",
"0.65373987",
"0.65363866",
"0.6532154",
"0.6507353",
"0.648118... | 0.8561397 | 0 |
parent is a Node is the parent of this particular object. Empty if it has no parent | def FIMM(YKHO, _AKB, PGEZ='state', UXqs=''):
YKHO.parent = _AKB
if _AKB == None:
YKHO.node_type = 'state'
YKHO.cpt = {'p_true': 0.5, 'p_false': 0.5}
else:
YKHO.node_type = PGEZ
if PGEZ == 'state':
YKHO.cpt = {'parent_true': {'p_true': 0.7, 'p_false': 0.3}, 'parent... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO, _AKB):\n YKHO.parent_node = _AKB",
"def _AKB(YKHO) -> o7DN:\n return YKHO._parent",
"def g2qA(YKHO):\n if YKHO._children:\n return True\n else:\n return False",
"def PAwq(YKHO):\n if YKHO.parent:\n return YKHO.parent\n else:\n raise AttributeError(... | [
"0.7422354",
"0.7329698",
"0.7300445",
"0.7287018",
"0.7248287",
"0.7227443",
"0.7125676",
"0.7122042",
"0.7113439",
"0.7113439",
"0.71035904",
"0.70900476",
"0.70860946",
"0.7047116",
"0.7041007",
"0.70371324",
"0.70371324",
"0.70371324",
"0.7014405",
"0.701324",
"0.69979495... | 0.0 | -1 |
returns the call arguments as an argparse | def YvUC():
XP5J = NaSo()
xAU6 = XP5J.parse_args()
FnVP(xAU6)
FLZe(xAU6.files)
d47U(xAU6)
mhIV(xAU6)
return xAU6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TLzU(YKHO):\n pass",
"def utHs():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('-t', '--test', action='store_true', help='Run test cases')\n wvEv.add_argument('-b', '--input_bam', help='Path to input BAM file')\n wvEv.add_argument('-v', '--input_vcf', help='Path to input VCF file')\n ... | [
"0.7864396",
"0.778399",
"0.7696042",
"0.7695003",
"0.7646083",
"0.76227504",
"0.76197696",
"0.7578699",
"0.7553657",
"0.75482833",
"0.75380754",
"0.75205296",
"0.7518846",
"0.7518477",
"0.75141567",
"0.75069827",
"0.74988747",
"0.74923456",
"0.7482261",
"0.7482261",
"0.74616... | 0.0 | -1 |
Fetches list of scopes for the particular bucket | def GKWL(YKHO, WE7e):
lqxg = dict()
HCmI = '%s localhost:%s -u %s -p %s -b %s scopes' % (YKHO.cbstatCmd, YKHO.mc_port, YKHO.username, YKHO.password, WE7e.name)
hlel, P1dF = YKHO._execute_cmd(HCmI)
if len(P1dF) != 0:
raise Exception('\n'.join(P1dF))
hlel = str(hlel)
TNw4 = '[ \t]*uid:[ \t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aXBT(YKHO, l7rj):\n lqxg = dict()\n HCmI = '%s localhost:%s -u %s -p %s -b %s scopes-details' % (YKHO.cbstatCmd, YKHO.mc_port, YKHO.username, YKHO.password, l7rj)\n hlel, P1dF = YKHO._execute_cmd(HCmI)\n if len(P1dF) != 0:\n raise Exception('\\n'.join(P1dF))\n mXDZ = '[ \\t]*manifest:scop... | [
"0.66059726",
"0.65830857",
"0.6521342",
"0.64454997",
"0.64088035",
"0.64021444",
"0.6395313",
"0.6356777",
"0.6330497",
"0.6303722",
"0.63026255",
"0.62971985",
"0.62940335",
"0.6289957",
"0.6269305",
"0.6265076",
"0.62472314",
"0.61885256",
"0.6182019",
"0.61785203",
"0.61... | 0.762314 | 0 |
Compute the softmax of vector x. | def KVH6(YKHO, epBp):
epBp = epBp - oyIN.max(epBp)
CDkD = oyIN.exp(epBp)
hce_ = CDkD / oyIN.sum(CDkD)
return hce_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum(axis=0)",
"def N93T(YKHO, WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO))",
"def N93T(YKHO, WKvO):\n IA3S = oyIN.max(WKvO)\n MZx7 = 0\n for YRbF in range(len(WKvO)):\n MZx7 = MZx7 + epAf.e... | [
"0.9069814",
"0.89685386",
"0.89637303",
"0.89531136",
"0.8945816",
"0.8906187",
"0.8906187",
"0.88862705",
"0.88723785",
"0.8855647",
"0.8849173",
"0.88403004",
"0.88362604",
"0.88348967",
"0.8823002",
"0.8802714",
"0.8799106",
"0.8798473",
"0.8789911",
"0.8781236",
"0.87800... | 0.0 | -1 |
State is an endpoint for all nonrecoverable errors. Sets user authorized to False. | async def _state_error(fhOu: UserAuthPackage) -> tuple[str, jMuZ]:
fhOu.user_object.set_authorized(False)
return (None, fhOu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gyVa(QTBn):\n QTBn.reporter.errors_allowed = True\n return QTBn",
"def sIPW(YKHO):\n raise NotImplementedError('Must Override')",
"def StEp(YKHO):\n if YKHO._state == 1:\n raise Ib5S()\n if YKHO._state == 2:\n raise qXm8()\n if YKHO._state == 0:\n YKHO._state = 1",
... | [
"0.5921154",
"0.5867399",
"0.5781708",
"0.5682492",
"0.56815904",
"0.56631696",
"0.5617092",
"0.5616962",
"0.56110054",
"0.5587905",
"0.5568355",
"0.5555048",
"0.5498857",
"0.548666",
"0.5470292",
"0.54655117",
"0.54509413",
"0.54304445",
"0.542313",
"0.542313",
"0.5419372",
... | 0.6081542 | 0 |
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(ys14, YKHO).__init__(*qIxc, **c_sp)
if YKHO.information_quality is None:
YKHO.information_quality = _KfT.msg.InformationQuality()
if YKHO.event_type is None:
YKHO.event_type = _KfT.msg.CauseCode()
if YKHO.h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8167091",
"0.7721305",
"0.7721305",
"0.7653387",
"0.75735575",
"0.7544938",
"0.7486126",
"0.74712706",
"0.7458634",
"0.7447028",
"0.74456894",
"0.74340963",
"0.741523",
"0.7408652",
"0.73922",
"0.7376216",
"0.7364397",
"0.73264366",
"0.7325022",
"0.7325022",
"0.7325022",
... | 0.0 | -1 |
Get list containing the names of the directories in the given directory. | def ZUkm(eHKs: str) -> list:
Ylbp = list((WKvO.name for WKvO in Hy7s.scandir(eHKs) if WKvO.is_dir()))
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8W8(dir):\n return [Hy7s.path.join(dir, WKvO) for WKvO in Hy7s.listdir(dir) if Hy7s.path.isdir(Hy7s.path.join(dir, WKvO))]",
"def QSv6(AGPF):\n TEEK = []\n for pGQh, iIh5, RRlC in Hy7s.walk(AGPF):\n for mWFP in iIh5:\n TEEK.append(mWFP)\n return TEEK",
"def vcgQ(AGPF):\n r... | [
"0.82378316",
"0.80299705",
"0.7969104",
"0.7969104",
"0.7927099",
"0.7704994",
"0.75161326",
"0.74223536",
"0.7401092",
"0.73119783",
"0.7310217",
"0.7290242",
"0.7220686",
"0.72071826",
"0.7189756",
"0.71735626",
"0.7151776",
"0.71473646",
"0.71123546",
"0.70896703",
"0.708... | 0.7190626 | 14 |
randomly permute data, then sort by source length, and partition into batches ensure that the length of sentences in each batch | def lVNl(nPrm, Ep8u, hXNa=True):
_99N = []
if hXNa:
oyIN.random.shuffle(nPrm)
_99N.extend(list(iVrH(nPrm, Ep8u)))
if hXNa:
oyIN.random.shuffle(_99N)
for Wc9F in _99N:
yield Wc9F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _SGB(YKHO):\n Nobg = oyIN.random.permutation(YKHO.data.values[:int(0.75 * YKHO.data.shape[0])])\n return [Nobg[G1Hx * YKHO.batch_size:G1Hx * YKHO.batch_size + YKHO.batch_size] for G1Hx in range(int(0.75 * YKHO.data.shape[0]) // YKHO.batch_size)]",
"def myXy(cbwj):\n u54L = len(cbwj)\n if u54L < 2... | [
"0.62241745",
"0.6170865",
"0.6170221",
"0.6151545",
"0.61246395",
"0.6124182",
"0.6102762",
"0.60998785",
"0.60863155",
"0.60755605",
"0.6021982",
"0.59979767",
"0.59667873",
"0.5959346",
"0.59386957",
"0.5885757",
"0.58757573",
"0.587541",
"0.5857688",
"0.58529806",
"0.5841... | 0.0 | -1 |
Returns the number of hardware output channels this PulseTemplate defines. | def awGU(YKHO) -> fHNa['ChannelID']:
return set(YKHO._amplitude_dict.keys()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qi3c(YKHO):\n if YKHO.inspect_value('index') is None:\n if len(YKHO.generators) > 0:\n return YKHO.generators[0].num_channels()\n return 0\n return YKHO.get_current_generator().num_channels()",
"def Qi3c(YKHO):\n if YKHO.inspect_value('index') is None:\n if len(YKHO.g... | [
"0.7286644",
"0.7286644",
"0.7196529",
"0.7178327",
"0.7124489",
"0.7119154",
"0.70976007",
"0.7077694",
"0.70768076",
"0.69913024",
"0.6951391",
"0.69426864",
"0.6938387",
"0.693004",
"0.6908418",
"0.6904285",
"0.68808407",
"0.68604785",
"0.6854255",
"0.6795197",
"0.6785782"... | 0.0 | -1 |
Get the lookup symbol of a node. If no such lookup symbol exists use the nodes symbol instead. | def Q8BS(pEuX):
if pEuX.lookup != '':
IFkU = r1MW(pEuX.lookup)
else:
IFkU = pEuX.symbol
if isinstance(IFkU, yvQf):
IFkU = r1MW(IFkU.name)
return IFkU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ccBJ(YKHO, mWFP):\n return YKHO.SYMBOL_TABLE.get(mWFP)",
"def IFkU(YKHO, mWFP):\n for rmc3 in reversed(YKHO.symbols):\n if mWFP in rmc3:\n return rmc3[mWFP]\n return None",
"def NVoh(YKHO, o61b):\n rrBf = YKHO.currentscope\n eJTR = XsEa(o61b)\n return rrBf.lookupSymbol(o... | [
"0.6927114",
"0.67470336",
"0.6715172",
"0.66325986",
"0.65931994",
"0.65817",
"0.6536558",
"0.64843965",
"0.64129347",
"0.63038945",
"0.62673116",
"0.6206277",
"0.6176512",
"0.61373436",
"0.610905",
"0.60916287",
"0.60886717",
"0.6059878",
"0.605673",
"0.6052956",
"0.6047795... | 0.6532266 | 7 |
Replicates preprocessing as per Jha et al. 2017. It removes usernames, punctuations, emoticons, hyperlinks/URLs and RT tag. It also lowercases, which seems a sensible thing to do. | def tiP0(aWDa, ri5V=False):
return map(YLnl(biH0, fix_encoding=ri5V), aWDa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(YKHO, l5Ny):\n if YKHO.creative:\n l5Ny = l5Ny.lower().strip()\n l5Ny = ZbWC.sub('([\\\\.\\\\,\\\\?\\\\!\\\\;\\\\:\\\\-]+)', '', l5Ny)\n else:\n l5Ny = l5Ny.strip()\n return l5Ny",
"def biH0(nPrm):\n nPrm = yri_(nPrm)\n JEH2 = ICve(nPrm)\n return JEH2",
"def biH0... | [
"0.7376738",
"0.7362106",
"0.73412305",
"0.73095226",
"0.73072886",
"0.72614723",
"0.7136962",
"0.710357",
"0.70951736",
"0.70773375",
"0.7066941",
"0.70337826",
"0.6998298",
"0.6984404",
"0.6930557",
"0.6926916",
"0.69122154",
"0.68769085",
"0.68759334",
"0.6858923",
"0.6851... | 0.0 | -1 |
Twodimensional convolution with multiple channels. Uses SAME padding with 0s, a stride of 1 and no dilation. | def ilDP(input, yzQ0):
quIk, H2v2, TVTK = input.shape
FBfN, Ga6V, nDEB = yzQ0.shape
hlel = oyIN.zeros((FBfN, H2v2 - Ga6V + 1, TVTK - nDEB + 1))
for VZxY in range(FBfN):
for YRbF in range(H2v2 - Ga6V + 1):
for r845 in range(TVTK - nDEB + 1):
for Z9rn in range(quIk):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xC4s(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 2, 2, 1], padding='VALID')",
"def b_zE(WKvO, XcU5, FEri=[1, 1, 1, 1], dvgN='SAME'):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=FEri, padding=dvgN)",
"def RS4f(Yw_3, WZcn, dvgN='same', _0fC=(1, 1)):\n r8hN, MKlR, yzQ0, Z9rn = Yw_3.s... | [
"0.70211357",
"0.6950143",
"0.6948154",
"0.69165546",
"0.69165295",
"0.6902189",
"0.6867817",
"0.6867633",
"0.6846532",
"0.6846532",
"0.6846532",
"0.6846532",
"0.6846532",
"0.6846532",
"0.6841122",
"0.68058956",
"0.6772433",
"0.67678",
"0.67678",
"0.67678",
"0.67678",
"0.67... | 0.70073444 | 1 |
Twodimensional depthwise convolution. Uses SAME padding with 0s, a stride of 1 and no dilation. A single output channel is used per input channel (channel_multiplier=1). | def ruFe(input, yzQ0):
H2v2, TVTK, quIk = input.shape
FBfN, Ga6V, nDEB = yzQ0.shape
hlel = oyIN.zeros((H2v2 - Ga6V + 1, TVTK - nDEB + 1, quIk))
for Z9rn in range(quIk):
for YRbF in range(H2v2 - Ga6V + 1):
for r845 in range(TVTK - nDEB + 1):
xlK9 = input[Z9rn][YRbF:YRb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ruFe(input, KUnM, FEri=1, dvgN='VALID', wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(conv_type='depthwise_conv', **locals())",
"def j1xt(g4y1, WZcn, FEri, dvgN):\n return yOcR.lax.conv_general_dilated(g4y1, WZcn, FEri, dvgN, feature_group_count=g4y1.shape[-1], dimension_numbers=('NHWC', 'HWIO', 'NHWC... | [
"0.8165098",
"0.7842611",
"0.7663881",
"0.76298195",
"0.73997915",
"0.73994875",
"0.724365",
"0.7201478",
"0.71967804",
"0.71643865",
"0.71163607",
"0.70799667",
"0.702267",
"0.7001633",
"0.6977234",
"0.6965507",
"0.6964469",
"0.69514614",
"0.69397455",
"0.69189376",
"0.69176... | 0.76427776 | 3 |
Depthwise separable convolution. Performs 2d depthwise convolution with w_depth, and then applies a pointwise 1x1 convolution with w_pointwise on the result. Uses SAME padding with 0s, a stride of 1 and no dilation. A single output channel is used per input channel (channel_multiplier=1) in w_depth. | def fN14(input, Nq1b, C7Ls, XcU5, Hr02, Gago, vuvg, CtJu, QPcF, xjkN):
icPP = ruFe(input, filter)
H2v2, TVTK, quIk = icPP.shape
print(xjkN.shape)
wiSq, ZXTG, fTTG = xjkN.shape
nrLm = 3
i4oa = oyIN.zeros((wiSq, H2v2, TVTK))
for _Pxk in range(wiSq):
hlel = oyIN.zeros((H2v2, TVTK))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VFu0(g4y1, yKdA, Sa_m, Ot1W, _0fC):\n PNaP = Fz20.separable_convolution2d(g4y1, num_outputs=None, stride=_0fC, depth_multiplier=1, kernel_size=Ot1W, scope=Sa_m + '/dw_conv')\n tF9S = Fz20.batch_norm(PNaP, scope=Sa_m + '/dw_conv/batch_norm')\n r6Oa = Fz20.convolution2d(tF9S, yKdA, kernel_size=[1, 1], s... | [
"0.8048052",
"0.79015774",
"0.78371024",
"0.77723444",
"0.7660516",
"0.75639874",
"0.75167847",
"0.7313837",
"0.72169304",
"0.7113332",
"0.70838815",
"0.6995494",
"0.6972366",
"0.69010633",
"0.68645036",
"0.68476015",
"0.67900705",
"0.67900705",
"0.6790045",
"0.6763629",
"0.6... | 0.7259413 | 8 |
Checks if object is iterable (but not a string or 0dimensional array). | def GfZ5(WKvO):
return hasattr(WKvO, '__iter__') and (not getattr(WKvO, 'shape', None) == ()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfZ5(YEnM):\n return isinstance(YEnM, iu5r)",
"def GfZ5(YEnM):\n return isinstance(YEnM, g760.abc.Iterable) and (not isinstance(YEnM, str))",
"def kUz6(YEnM):\n return hasattr(YEnM, '__iter__') or isinstance(YEnM, jUrF)",
"def OxJJ(YKHO, YEnM):\n return isinstance(YEnM, iu5r)",
"def kUz6(YE... | [
"0.8650966",
"0.8595938",
"0.8524419",
"0.84973514",
"0.84692276",
"0.8466859",
"0.84373623",
"0.83914286",
"0.8386534",
"0.8379478",
"0.83619136",
"0.8356865",
"0.8356865",
"0.83413017",
"0.82802874",
"0.827179",
"0.8268377",
"0.8239608",
"0.82300466",
"0.82168883",
"0.81965... | 0.8160975 | 22 |
Plot a color greyscale image of an image, using the intensity range specified. Inputs im image in 2 x 2 numpy array format ax axes on which to plot the image df intensity level of the plot | def hC0i(Xn71, aNZO, jQ3Z='99.7'):
yGTL, WTkW = SZzw(Xn71)
zvlJ = e0ju[jQ3Z]
aNZO.imshow(Xn71, vmin=yGTL - WTkW * zvlJ, vmax=yGTL + WTkW * zvlJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DM2M(VXjJ):\n VXjJ = VXjJ / 2 + 0.5\n OujH = VXjJ.numpy()\n QrM1.imshow(oyIN.transpose(OujH, (1, 2, 0)))",
"def R30z(ggLE, GERz, Hvb_, iMGt):\n from matplotlib.colors import LogNorm\n JI1i, K1bR = QrM1.subplots(1, 3)\n K1bR[0].imshow(ggLE[400:600, 400:600], cmap=iMGt, origin='lower', norm=L... | [
"0.70460147",
"0.68890953",
"0.68128514",
"0.6809506",
"0.6802843",
"0.677599",
"0.6706999",
"0.66824377",
"0.6667783",
"0.6660506",
"0.66378903",
"0.662173",
"0.6584674",
"0.6536007",
"0.6525406",
"0.65167135",
"0.6511364",
"0.64972323",
"0.6468626",
"0.64681864",
"0.6464609... | 0.7408986 | 0 |
Plots list of images inline. Inputs | def _7BA(acxU, hvJ_=None, jQ3Z='99.7'):
for Xn71 in mFWN(acxU):
eHNT = qEVw.open(getattr(su_H, Xn71))
Wjcv = keOC(eHNT[0])
if not hvJ_:
hvJ_ = Wjcv
SDCN = len(hvJ_)
if SDCN > 1:
LZpg, MPlV = QrM1.subplots(1, SDCN, figsize=(16, 5))
for KCHu ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U0xK(Khnv, mWFP):\n wK7l = 9\n LZpg, MPlV = QrM1.subplots(wK7l, wK7l)\n LZpg.subplots_adjust(hspace=0.5, wspace=0.5)\n for YRbF, aNZO in enumerate(MPlV.flat):\n if YRbF >= len(Khnv):\n break\n aNZO.imshow(Khnv[YRbF])\n aNZO.set_xticks([])\n aNZO.set_yticks([])... | [
"0.74274886",
"0.73397857",
"0.72304094",
"0.71922046",
"0.71711504",
"0.7140379",
"0.7078746",
"0.7078746",
"0.7078746",
"0.7078746",
"0.7071002",
"0.70703053",
"0.6956935",
"0.6916808",
"0.6892551",
"0.6884112",
"0.6861841",
"0.6847155",
"0.68431056",
"0.67921406",
"0.67599... | 0.0 | -1 |
Plots list of images in tigger. Inputs | def UqCG(acxU):
VMig = ['tigger']
for Xn71 in mFWN(acxU):
VMig.append(getattr(su_H, Xn71))
Yn3K.call(VMig) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rzaM(**Yw_3):\n exwG = len(Yw_3)\n QrM1.figure(figsize=(16, 5))\n for YRbF, (mWFP, LNo8) in enumerate(Yw_3.items()):\n QrM1.subplot(1, exwG, YRbF + 1)\n QrM1.xticks([])\n QrM1.yticks([])\n QrM1.title(' '.join(mWFP.split('_')).title())\n QrM1.imshow(LNo8)\n QrM1.sh... | [
"0.71590275",
"0.7119189",
"0.7106545",
"0.7063649",
"0.7027331",
"0.7027331",
"0.7027331",
"0.7027331",
"0.7013574",
"0.6958732",
"0.69573224",
"0.6811057",
"0.68002284",
"0.67089486",
"0.6670195",
"0.6668586",
"0.663712",
"0.6617068",
"0.66113776",
"0.6595216",
"0.65759826"... | 0.76448715 | 0 |
Save a PyTorch model checkpoint Params | def _OQl(C3ST, pmON: str):
bGrB, eyrV = GdvO()
vauY = {'class_to_idx': C3ST.class_to_idx, 'idx_to_class': C3ST.idx_to_class, 'epochs': C3ST.epochs}
if eyrV:
vauY['fc'] = C3ST.module.fc
vauY['state_dict'] = C3ST.module.state_dict()
else:
vauY['fc'] = C3ST.fc
vauY['state_di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IRyE(YKHO):\n if not Hy7s.path.isdir(DQyF):\n Hy7s.mkdir(DQyF)\n uqvc = Hy7s.path.join(DQyF, f'{YKHO.experiment_id}.pth')\n print(f'saved the model at {uqvc}')\n h00i = YKHO.model.state_dict()\n if YKHO.optimizer is not None:\n L5qv = YKHO.optimizer.state_dict()\n else:\n ... | [
"0.82700926",
"0.8239913",
"0.8221966",
"0.8126201",
"0.8124574",
"0.8117499",
"0.8089873",
"0.8087521",
"0.8045558",
"0.7990728",
"0.79813397",
"0.7978977",
"0.7978977",
"0.7910498",
"0.7895861",
"0.78707474",
"0.78025544",
"0.7786722",
"0.77672017",
"0.77672017",
"0.7762559... | 0.0 | -1 |
Test precision_at_k where there are errors in the probabilities | def HbRD():
Y8eF = oyIN.array([[1, 1, 0], [1, 0, 1], [1, 1, 0], [1, 0, 1], [0, 1, 0], [0, 1, 1], [0, 1, 1], [1, 0, 1], [1, 1, 1]])
ZxJs = oyIN.array([[0.7, 0.6, 0.3], [0.9, 0.2, 0.1], [0.7, 0.8, 0.9], [0.9, 0.8, 0.3], [0.4, 0.6, 0.3], [0.1, 0.6, 0.9], [0.1, 0.6, 0.9], [0.1, 0.6, 0.5], [0.9, 0.8, 0.7]])
aEqx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def br0W():\n Y8eF = oyIN.array([[0, 1, 0], [1, 0, 0], [0, 1, 0], [1, 0, 0], [0, 0, 1]])\n ZxJs = oyIN.array([[0.3, 0.7, 0.0], [0.1, 0.0, 0.0], [0.1, 0.5, 0.3], [0.6, 0.2, 0.4], [0.1, 0.2, 0.3]])\n aEqx = 1.0\n Aofo = r7DY.precision_at_k(Y8eF, ZxJs, 1)\n oyIN.testing.assert_allclose(Aofo, aEqx)\n ... | [
"0.81485635",
"0.8015903",
"0.79984426",
"0.79942065",
"0.7788428",
"0.75969994",
"0.74532163",
"0.73363173",
"0.72977936",
"0.72507113",
"0.72454023",
"0.7152465",
"0.712862",
"0.71270895",
"0.70855707",
"0.70681554",
"0.70282423",
"0.70277274",
"0.7026614",
"0.7014443",
"0.... | 0.84774446 | 0 |
Test precision_at_k where the probabilities are perfect | def br0W():
Y8eF = oyIN.array([[0, 1, 0], [1, 0, 0], [0, 1, 0], [1, 0, 0], [0, 0, 1]])
ZxJs = oyIN.array([[0.3, 0.7, 0.0], [0.1, 0.0, 0.0], [0.1, 0.5, 0.3], [0.6, 0.2, 0.4], [0.1, 0.2, 0.3]])
aEqx = 1.0
Aofo = r7DY.precision_at_k(Y8eF, ZxJs, 1)
oyIN.testing.assert_allclose(Aofo, aEqx)
print(Aofo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oln4():\n Y8eF = oyIN.array([[1, 1, 0], [1, 0, 0], [0, 1, 1], [1, 0, 1], [0, 1, 1]])\n ZxJs = oyIN.array([[0.3, 0.7, 0.0], [0.1, 0.0, 0.0], [0.1, 0.5, 0.3], [0.6, 0.2, 0.4], [0.1, 0.2, 0.3]])\n aEqx = 1.0\n Aofo = r7DY.precision_at_k(Y8eF, ZxJs, 1)\n oyIN.testing.assert_allclose(Aofo, aEqx)\n ... | [
"0.8399248",
"0.7972532",
"0.7898392",
"0.76823455",
"0.7646305",
"0.75817776",
"0.75761324",
"0.73398507",
"0.7240602",
"0.72166306",
"0.71645725",
"0.70731664",
"0.70264345",
"0.7009872",
"0.69681644",
"0.6963683",
"0.6923453",
"0.6908548",
"0.6873785",
"0.6870195",
"0.6869... | 0.8654117 | 0 |
Test precision_at_k where the probabilities are perfect and there are multiple true labels for some samples | def oln4():
Y8eF = oyIN.array([[1, 1, 0], [1, 0, 0], [0, 1, 1], [1, 0, 1], [0, 1, 1]])
ZxJs = oyIN.array([[0.3, 0.7, 0.0], [0.1, 0.0, 0.0], [0.1, 0.5, 0.3], [0.6, 0.2, 0.4], [0.1, 0.2, 0.3]])
aEqx = 1.0
Aofo = r7DY.precision_at_k(Y8eF, ZxJs, 1)
oyIN.testing.assert_allclose(Aofo, aEqx)
print(Aofo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def br0W():\n Y8eF = oyIN.array([[0, 1, 0], [1, 0, 0], [0, 1, 0], [1, 0, 0], [0, 0, 1]])\n ZxJs = oyIN.array([[0.3, 0.7, 0.0], [0.1, 0.0, 0.0], [0.1, 0.5, 0.3], [0.6, 0.2, 0.4], [0.1, 0.2, 0.3]])\n aEqx = 1.0\n Aofo = r7DY.precision_at_k(Y8eF, ZxJs, 1)\n oyIN.testing.assert_allclose(Aofo, aEqx)\n ... | [
"0.8145537",
"0.80390084",
"0.77535594",
"0.7729964",
"0.76588905",
"0.76088613",
"0.75321573",
"0.72419333",
"0.7183221",
"0.7179643",
"0.7168274",
"0.7130417",
"0.7129019",
"0.70969695",
"0.7053821",
"0.70051295",
"0.69656414",
"0.6962106",
"0.6933211",
"0.6912187",
"0.6906... | 0.8130288 | 1 |
Test precision_at_k where there is a sample of all zeros | def xlTR():
Y8eF = oyIN.array([[0, 0, 1, 1], [1, 1, 1, 0], [0, 0, 0, 0]])
ZxJs = oyIN.array([[0.1, 0.4, 0.35, 0.8], [0.3, 0.2, 0.7, 0.8], [0.1, 0.2, 0.3, 0.4]])
aEqx = 4.0 / 9.0
Aofo = r7DY.precision_at_k(Y8eF, ZxJs, 3)
oyIN.testing.assert_allclose(Aofo, aEqx)
print(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EYsl():\n Y8eF = oyIN.array([[0, 1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 0]])\n ZxJs = oyIN.array([[0.1, 0.4, 0.35, 0.8, 0.9], [0.3, 0.2, 0.7, 0.8, 0.6], [0.1, 0.2, 0.3, 0.4, 0.5]])\n aEqx = 5.0 / 6.0\n Aofo = r7DY.precision_at_k(Y8eF, ZxJs, 2)\n oyIN.testing.assert_allclose(Aofo, aEqx)\n ... | [
"0.82009995",
"0.7135344",
"0.70901716",
"0.6937792",
"0.681309",
"0.6778401",
"0.6732765",
"0.6709571",
"0.67029124",
"0.66637343",
"0.6550033",
"0.6505069",
"0.63715243",
"0.6342162",
"0.6325601",
"0.6278848",
"0.62344515",
"0.6163625",
"0.61233765",
"0.61033154",
"0.608480... | 0.81654376 | 1 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry):
yT1k = await ajET.config_entries.async_unload_platforms(bTKY, aprE)
if yT1k:
ajET.data[Sugg].pop(bTKY.entry_id)
if not ajET.data[Sugg]:
ajET.services.async_remove(Sugg, D4Qk)
ajET.services.async_remove(Sugg, izfs)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)",
"async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()... | [
"0.70433855",
"0.6998981",
"0.6920924",
"0.69046044",
"0.68995154",
"0.6871787",
"0.68418026",
"0.67926013",
"0.678512",
"0.67841953",
"0.6778069",
"0.67697483",
"0.6739356",
"0.67313343",
"0.6714836",
"0.67093503",
"0.6665995",
"0.6642307",
"0.6616808",
"0.6608745",
"0.65832... | 0.66392016 | 18 |
Return the unique ID for this entity. | def ShR8(YKHO) -> str:
return YKHO._key | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')",
"def ShR8(YKHO):\n return YKHO._carson_entity.unique_entity_id",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YK... | [
"0.89127487",
"0.85911626",
"0.85634345",
"0.85634345",
"0.83750075",
"0.83750075",
"0.83750075",
"0.83750075",
"0.83750075",
"0.83335716",
"0.83335716",
"0.83335716",
"0.83335716",
"0.83335716",
"0.83335716",
"0.83335716",
"0.83335716",
"0.83335716",
"0.82018256",
"0.81887853"... | 0.7942763 | 72 |
Return device information about this System Bridge instance. | def GWuV(YKHO) -> cGD3:
return {'connections': {(HGCR.CONNECTION_NETWORK_MAC, YKHO._default_interface['mac'])}, 'manufacturer': YKHO._manufacturer, 'model': YKHO._model, 'name': YKHO._hostname, 'sw_version': YKHO._version} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._api.device_info",
"def GWuV(YKHO):\n return YKHO._device.device_info",
"def GWuV(YKHO):\n return YKHO.thermostat_device.device_info",
"def GWuV(YKHO)... | [
"0.81974286",
"0.81974286",
"0.81717014",
"0.81527036",
"0.8094409",
"0.80135626",
"0.80135626",
"0.80135626",
"0.80135626",
"0.80135626",
"0.7901084",
"0.7866771",
"0.78563786",
"0.7830679",
"0.7823333",
"0.7823333",
"0.7823333",
"0.78189117",
"0.7806425",
"0.7806024",
"0.77... | 0.75443465 | 49 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.864179",
"0.85105866",
"0.7853924",
"0.77452",
"0.7712474",
"0.76976854",
"0.76601666",
"0.7638181",
"0.7621996",
"0.76074743",
"0.76074743",
"0.76074743",
"0.7607432",
"0.7599404",
"0.75858897",
"0.7582702",
"0.75715727",
"0.75683635",
"0.7539386",
"0.7539386",
"0.7528709... | 0.0 | -1 |