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 |
|---|---|---|---|---|---|---|
Authorize request according to an authentication challenge This method is called when the resource provider responds 401 with a WWWAuthenticate header. | async def on_challenge(YKHO, QePW: 'PipelineRequest', geh0: 'PipelineResponse') -> bool:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kp8U(YKHO):\n YKHO.set_header('WWW-Authenticate', 'Basic realm=pyjojo')\n YKHO.set_status(401)\n YKHO.finish()",
"def NLCy():\n return oGir('Could not verify your access level for that URL.\\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})"... | [
"0.7587837",
"0.71191156",
"0.7110969",
"0.7088904",
"0.7087208",
"0.70803016",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
"0.70581466",
... | 0.0 | -1 |
Returns a list of ngrams | def tbgJ(YKHO, IqQl, exwG):
return map(lambda WKvO: ''.join(WKvO), zip(*[IqQl[YRbF:] for YRbF in range(exwG)])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pCSA(YKHO, exwG):\n return list(pCSA(YKHO.tokens, exwG))",
"def RisN(OCr5, exwG):\n pS7N = pCSA(OCr5, exwG)\n return [' '.join(gOBC) for gOBC in pS7N]",
"def hkVi(V22M):\n pCSA = []\n ywwl = len(V22M)\n for exwG in range(1, ywwl + 1):\n for YRbF in range(0, ywwl - exwG + 1):\n ... | [
"0.8519195",
"0.81375486",
"0.8007272",
"0.7869312",
"0.7846041",
"0.783375",
"0.7791386",
"0.7776422",
"0.7755093",
"0.77461773",
"0.7729408",
"0.77210087",
"0.7719434",
"0.77008754",
"0.76148146",
"0.7586393",
"0.7559491",
"0.7557984",
"0.75557667",
"0.75547814",
"0.7437441... | 0.7304123 | 28 |
Return all associated SurveyJobKeyValues as a dict | def Iso7(YKHO) -> cuzp:
return {q2Xo.key: q2Xo.value for q2Xo in YKHO.surveyjobkeyvalue_set.all()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pwlt(YKHO):\n SYSq = {}\n for r845 in YKHO.instance.get_jobs():\n if not YKHO._job_filter(r845):\n continue\n if 'running' != r845.status:\n continue\n MGqK = YKHO._jobs.get(r845.id)\n if MGqK:\n if r845.generationId == MGqK.generationId:\n ... | [
"0.6534497",
"0.62572277",
"0.6047501",
"0.59966373",
"0.5961826",
"0.58390486",
"0.58198977",
"0.57932085",
"0.5774524",
"0.5735018",
"0.5704004",
"0.5664617",
"0.5656293",
"0.5608379",
"0.5576946",
"0.5572499",
"0.553354",
"0.54995465",
"0.5493595",
"0.5482801",
"0.547805",... | 0.76885694 | 0 |
Return the bounds of the probability distribution. | def X7zS(YKHO) -> uLKX[AzJI[float, float], x1iM[AzJI[float, float]]]:
return YKHO._bounds | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmnP():\n return [(0.25, 0.5), (0.5, 1.0), (1.0, 1.5), (1.5, 2.0), (2.0, 2.5), (2.5, 3.0), (3.0, 1000)]",
"def X7zS(YKHO):\n X7zS = [bpHD.bounds for bpHD in YKHO.hyperparameters if not bpHD.fixed]\n if len(X7zS) > 0:\n return oyIN.log(oyIN.vstack(X7zS))\n else:\n return oyIN.array([... | [
"0.7350718",
"0.7203481",
"0.7021185",
"0.70195085",
"0.69994354",
"0.69149417",
"0.6858031",
"0.6839999",
"0.6838404",
"0.6831055",
"0.68300486",
"0.68239033",
"0.6814767",
"0.6814767",
"0.6814767",
"0.6800732",
"0.6797815",
"0.6793386",
"0.6774338",
"0.6745891",
"0.6736139"... | 0.65633386 | 44 |
Sample uniform random points on nsphere. See | def OIzT(xlLU, tpio, zNig):
return xlLU.normal(size=(zNig, tpio)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RJD6(exwG=1):\n return oyIN.random.uniform(low=-2, high=2, size=(exwG, 2)).squeeze()",
"def q3Yd(O9N6, fzOD=2):\n he6J = oyIN.random.randn(fzOD + 1, O9N6)\n for YRbF in range(O9N6):\n he6J[:, YRbF] /= oyIN.linalg.norm(he6J[:, YRbF], axis=0)\n return oyIN.transpose(he6J)",
"def Mzvm(exwG)... | [
"0.8475346",
"0.8344453",
"0.82986504",
"0.81323105",
"0.80161154",
"0.80034417",
"0.80034417",
"0.78775996",
"0.78252697",
"0.7646612",
"0.7491523",
"0.74826205",
"0.7478733",
"0.7388384",
"0.7379984",
"0.73430526",
"0.73340124",
"0.73232484",
"0.7308519",
"0.7302117",
"0.72... | 0.8308068 | 2 |
Sample from a symmetric Dirichlet distribution of dimension k and parameter a, scaled around its mean. It generates vectors of dimension k. Sum of the elements of the vectors is 1. The elements are in the range [(1scale) / k, (scale (k1) + 1) / k] The mean of each element is 1 / k. The variance is scale2 (k1) / k2 / (k... | def v9R0(xlLU, G1Hx, jzdc, zNig=None, NXpY=1):
if type(zNig) == int:
zNig = (zNig,)
if False:
WKvO = xlLU.dirichlet(oyIN.full(G1Hx, jzdc), zNig)
else:
LVAh = xlLU.gamma(oyIN.full(G1Hx, jzdc), size=zNig + (G1Hx,))
WKvO = LVAh / LVAh.sum(axis=-1, keepdims=True)
JBMS = 1.0 /... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G7iY(YKHO, G1Hx):\n return lNLu(G1Hx * YKHO.x, G1Hx * YKHO.y)",
"def mvm2(YKHO, G1Hx: int):\n return oyIN.random.normal(YKHO.means[G1Hx], 1 / YKHO.precisions[G1Hx])",
"def XbBI(yKcO, Os4s, G1Hx):\n return yKcO + G1Hx * (Os4s - yKcO)",
"def dsWJ(NArs, X7zS, eFr6):\n Fg_i = oyIN.array(X7zS, dty... | [
"0.658851",
"0.6251291",
"0.5924263",
"0.5898868",
"0.58898246",
"0.58843285",
"0.58830035",
"0.58686733",
"0.5861346",
"0.5847257",
"0.5819068",
"0.58189785",
"0.5809175",
"0.5777678",
"0.57764226",
"0.57679754",
"0.5755453",
"0.57518667",
"0.5730133",
"0.5656126",
"0.561616... | 0.71878946 | 0 |
Extract saved model from `continue_from` path. | def ka5c(YKHO):
if YKHO.tr_conf['continue_from']:
print('Loading checkpoint model {}'.format(YKHO.tr_conf['continue_from']))
tMMy = ht2j.load(YKHO.tr_conf['continue_from'])
YKHO.model.module.load_model(tMMy['model'])
YKHO.optimizer.load_state_dict(tMMy['optimizer']['state_dict'])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tIw1(YKHO, lWPh):\n print('Loading the trained models from step {}...'.format(YKHO.resume_iters))\n VTG4 = Hy7s.path.join(YKHO.model_save_dir, '{}-D.ckpt'.format(YKHO.resume_iters))\n lWPh.load_state_dict(ht2j.load(VTG4, map_location=lambda S8SU, hksT: S8SU))\n return lWPh",
"def omM9(YKHO):\n ... | [
"0.5794492",
"0.57322335",
"0.57176155",
"0.5702288",
"0.5679308",
"0.5635508",
"0.5617144",
"0.55909616",
"0.5576957",
"0.5570814",
"0.5513061",
"0.5509142",
"0.5505077",
"0.54771096",
"0.54682046",
"0.5454214",
"0.5451889",
"0.53860915",
"0.53751236",
"0.53640735",
"0.53405... | 0.0 | -1 |
Computes the hypothesis given an input and theta | def sL9r(g4y1, q7In):
return g4y1.dot(q7In) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W3ev(WKvO, q7In):\n return oyIN.transpose(oyIN.array(q7In)).dot(oyIN.array(WKvO))",
"def sL9r(q7In: np.ndarray, WKvO: np.ndarray) -> oyIN.ndarray:\n W3ev = m1Hg(WKvO @ q7In.T)\n return W3ev",
"def ktxb(bySB, q7In):\n RF8J = oyIN.asscalar(oyIN.dot(oyIN.transpose(q7In), bySB))\n tTpl = epAf.e\... | [
"0.8158987",
"0.79894733",
"0.7496645",
"0.7412638",
"0.73053706",
"0.69669807",
"0.68797493",
"0.6833085",
"0.67220217",
"0.67077863",
"0.6705947",
"0.6514248",
"0.6501617",
"0.6480778",
"0.6478819",
"0.6439822",
"0.6408784",
"0.6322656",
"0.6288154",
"0.6272848",
"0.623967"... | 0.8107485 | 1 |
Plots the losses against epochs | def AQtZ(YKHO):
QrM1.plot(YKHO.losses)
QrM1.xlabel('epochs')
QrM1.ylabel('Loss')
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ysuu(N8L0):\n WKvO = [YRbF for YRbF in range(len(N8L0))]\n QrM1.plot(WKvO, N8L0)\n QrM1.title('Loss per batch')\n QrM1.xlabel('Batch')\n QrM1.ylabel('Loss')\n QrM1.show()",
"def Ysuu(N8L0):\n LZpg, aNZO = QrM1.subplots()\n N8L0 = oyIN.array(N8L0)\n QrM1.plot(N8L0.T[0], label='Discr... | [
"0.85229635",
"0.8461476",
"0.83354175",
"0.8255673",
"0.82408214",
"0.8237536",
"0.8214655",
"0.8155383",
"0.809628",
"0.8080544",
"0.80106634",
"0.80098975",
"0.7880296",
"0.7855147",
"0.78446853",
"0.78384864",
"0.78378445",
"0.783302",
"0.78124774",
"0.7779475",
"0.777813... | 0.8453789 | 2 |
Find a pair of numbers in the array whose sum equals target | def fr5W(ezWE, o8aI=2020):
LFlW = 0
_tIi = len(ezWE) - 1
while LFlW < _tIi:
vR9A = ezWE[LFlW] + ezWE[_tIi]
if vR9A == o8aI:
return (ezWE[LFlW], ezWE[_tIi])
elif vR9A < o8aI:
LFlW += 1
elif vR9A > o8aI:
_tIi -= 1
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GmXI(ezWE: list[int], o8aI: int) -> list[int]:\n yKcO, Os4s = (0, len(ezWE) - 1)\n while yKcO < Os4s:\n MCOv = ezWE[yKcO] + ezWE[Os4s]\n if MCOv == o8aI:\n return [yKcO, Os4s]\n elif MCOv > o8aI:\n Os4s -= 1\n else:\n yKcO += 1\n return [-1,... | [
"0.8309665",
"0.80433846",
"0.76348704",
"0.7603875",
"0.7563507",
"0.7539879",
"0.75193685",
"0.75014025",
"0.74651843",
"0.7446389",
"0.7434265",
"0.7407267",
"0.7348147",
"0.7306595",
"0.73063296",
"0.72711366",
"0.7242779",
"0.722179",
"0.72136885",
"0.72049814",
"0.71823... | 0.8141371 | 1 |
Return a list of categories | def LeZt(YKHO) -> list:
if not YKHO.loaded:
YKHO.load_from_api()
return [Z9rn['description'] for Z9rn in YKHO.data['categories']] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQuW(YKHO):\n pass",
"def LQuW(YKHO):\n LeZt = ''\n for YRbF in YKHO.category.all():\n LeZt += YRbF.name + ' '\n return LeZt",
"def NMoC(YKHO):\n return LeZt",
"def LQuW(YKHO):\n return YKHO.categories.all()",
"def LQuW(YKHO):\n return YKHO.categories.all()",
"def zG33(YKH... | [
"0.84318984",
"0.8430813",
"0.8404878",
"0.82882595",
"0.82882595",
"0.8286669",
"0.8247706",
"0.8241967",
"0.8232007",
"0.82198435",
"0.8206871",
"0.81871974",
"0.8171553",
"0.8141672",
"0.8119198",
"0.81165385",
"0.8083374",
"0.80331016",
"0.8022769",
"0.80159557",
"0.80121... | 0.7753197 | 41 |
Returns the actual release date of the app. | def sRnK(YKHO) -> str:
if not YKHO.release_date['date']:
return 'No release date'
return YKHO.release_date['date'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ClkZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'release_date')",
"def oQc2(YKHO):\n return None",
"def oQc2(DpZH):\n if a7Gh(DpZH):\n return 'Unreleased'\n else:\n return _c1T.today().strftime('%Y-%m-%d')",
"def oQc2(YKHO):\n return",
"def ClkZ(YKHO):\n return YKHO._release_... | [
"0.81629664",
"0.8093453",
"0.8091017",
"0.80245703",
"0.79523385",
"0.775946",
"0.775946",
"0.77077705",
"0.7358868",
"0.705937",
"0.6938794",
"0.68087095",
"0.67674243",
"0.6756638",
"0.6740432",
"0.6710336",
"0.6691725",
"0.6681976",
"0.66614926",
"0.65756714",
"0.6498912"... | 0.78082925 | 5 |
Function that calculates the sentiment score as per the opinion miner module,from text. | def e7xX(YKHO, l5Ny, Zi4e=True):
if Zi4e:
s2mk = YKHO.preprocess(l5Ny)
else:
s2mk = Dhdw.word_tokenize(l5Ny)
EMTf = oyIN.zeros(YKHO.get_lexicon_shape())
LYDm = []
for eOtH in s2mk:
try:
EMTf += YKHO.get_sentiment_from_lexicon(eOtH)
G9jH.getLogger().deb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def El7S(l5Ny):\n V22M = obeQ.split(l5Ny.lower())\n QPZq = map(lambda GIN8: qmX1.get(GIN8, 0), V22M)\n if QPZq:\n El7S = float(sum(QPZq)) / epAf.sqrt(len(QPZq))\n else:\n El7S = 0\n return El7S",
"def El7S(l5Ny):\n V22M = obeQ.split(l5Ny.lower())\n QPZq = map(lambda GIN8: qmX1.... | [
"0.81304204",
"0.81304204",
"0.81304204",
"0.80877596",
"0.7895253",
"0.7890401",
"0.7890264",
"0.78447855",
"0.7773332",
"0.77032626",
"0.7701767",
"0.7701127",
"0.76731527",
"0.766487",
"0.7647126",
"0.7604148",
"0.7599241",
"0.75580096",
"0.75526154",
"0.7545709",
"0.75120... | 0.6556467 | 96 |
! Cobinhood class initialization. perform function call to call request_api_call. | def FIMM(YKHO, rJDA=None, JE1Y=U5rN, clva=JCgs):
YKHO.api_key = str(rJDA) if rJDA else ''
YKHO.perform = JE1Y
YKHO.api_version = clva | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO) -> None:\n YKHO.api = fyIx()",
"def FIMM(YKHO):\n YKHO.client = Y1Ex(Hy7s.getenv('crunchbase_key'))\n YKHO.errors = []\n YKHO.get_startups()\n YKHO.get_financial_orgs()\n YKHO.error_file = open('crunchbase_errors.log', 'w')\n for P1dF in YKHO.errors:\n lGT7.write(P1dF)\... | [
"0.70526576",
"0.7018113",
"0.69640625",
"0.6829608",
"0.68261135",
"0.68261135",
"0.68261135",
"0.68062663",
"0.67955863",
"0.6774493",
"0.67569554",
"0.6744846",
"0.6698972",
"0.6661745",
"0.6626227",
"0.6615429",
"0.6615429",
"0.6615429",
"0.6615429",
"0.6591004",
"0.65908... | 0.0 | -1 |
! Get the ticker for specified trading pair. | def kWfe(YKHO, omB5):
return YKHO._query_api(fn_dict={JCgs: 'market/tickers/{0}'.format(omB5)}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_ticker(YKHO, q2Xo: list, pgFO: int=0) -> dict:\n nPrm = await YKHO.get_raw_ticker(q2Xo, pgFO)\n try:\n SYlA = wEfu(data=nPrm)\n return SYlA.dict()\n except sUXu as e:\n G9jH.warning('Please check that your get_raw_ticker method returns the correct type')\n G9jH.er... | [
"0.7678731",
"0.7620697",
"0.7377757",
"0.7353478",
"0.7352016",
"0.7278369",
"0.71617174",
"0.7152145",
"0.71296406",
"0.7074921",
"0.6991789",
"0.68582404",
"0.6829666",
"0.67998284",
"0.6737314",
"0.67350775",
"0.67256874",
"0.66809577",
"0.66571575",
"0.66571575",
"0.6657... | 0.8241802 | 0 |
! Get all current orders for user. | def KekM(YKHO, qoqK=20):
return YKHO._query_api(fn_dict={JCgs: 'trading/orders'}, extension={'limit': qoqK}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n4Xj(CBIr):\n return NrZU.Order.objects.filter(_complete=True, user=CBIr.id)",
"def awPf(CBIr):\n pass",
"def f0Uf():\n return pz3A(ayx7)",
"def awPf():\n return L9Jq().get_orders()",
"def NMoC(YKHO):\n return A1Jz.get_orders(secret=QePW.headers.get('x-access-token'), **fqwW.list_orders_... | [
"0.83156735",
"0.8244159",
"0.75422925",
"0.7330976",
"0.72999614",
"0.7217547",
"0.71104866",
"0.70801467",
"0.7026431",
"0.69704026",
"0.6914573",
"0.6890877",
"0.6871193",
"0.68221945",
"0.6817008",
"0.6763732",
"0.67449313",
"0.67348224",
"0.67067474",
"0.669678",
"0.6687... | 0.6454938 | 34 |
! Get trade information. A user only can get their own trade. | def YIBA(YKHO, gPV_):
return YKHO._query_api(fn_dict={JCgs: 'trading/trades/{0}'.format(gPV_)}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w5RA(w2B8, gPV_):\n fppD = Z4oW + '/' + gPV_\n NArs = {'trade_id': gPV_}\n return MrBC(w2B8, 'GET', NArs, fppD)",
"def htbf(w2B8, **qIxc):\n return MrBC(w2B8, 'GET', qIxc, Z4oW)",
"def kC9M(YKHO):\n return YKHO.trade_data",
"def mTNs(YKHO, d7pR):\n print(YKHO.trader.ReqQryTrade())",
"... | [
"0.72145987",
"0.718861",
"0.68345416",
"0.6756308",
"0.668901",
"0.6636803",
"0.6582344",
"0.65754205",
"0.64006877",
"0.6392542",
"0.639209",
"0.62955403",
"0.61996233",
"0.6183853",
"0.61816525",
"0.61404276",
"0.60950685",
"0.6040611",
"0.6021689",
"0.60018337",
"0.599338... | 0.7092334 | 2 |
! Get trade history for the current user. | def X60o(YKHO):
return YKHO._query_api(fn_dict={JCgs: 'trading/trades'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FLXQ():\n uJjO = cuiw['user_id']\n return _Mhi(cuiw, uJjO, L1ta)",
"def FLXQ():\n gQVK = NCls.execute('SELECT stock_symbol, shares, price, time FROM user_stock WHERE user_id = ?', cuiw['user_id'])\n return TvZl('history.html', records=gQVK)",
"def FLXQ():\n usx6 = NCls.execute('SELECT symbol... | [
"0.77322197",
"0.73411334",
"0.71850544",
"0.7130714",
"0.7121666",
"0.702568",
"0.70038223",
"0.7003156",
"0.70000684",
"0.6980511",
"0.6978258",
"0.6973323",
"0.6957812",
"0.69507754",
"0.69472337",
"0.69454765",
"0.69212186",
"0.690357",
"0.68918926",
"0.68860245",
"0.6885... | 0.78456116 | 0 |
! return the cause of cobinhood exception as a string. | def zAg0(YKHO):
return str(YKHO.cause) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G6Hp(YKHO) -> str:\n return qe4Y.get(YKHO, 'cause')",
"def G6Hp(YKHO) -> str:\n return qe4Y.get(YKHO, 'cause')",
"def AJ5d(YKHO):\n LaVg = wVCK.format_exception_only(YKHO.exc_type, YKHO.exc_value)\n im04 = ''.join(LaVg).strip()\n return im04.decode('utf-8', 'replace') if VOoL else im04",
"... | [
"0.7319925",
"0.7319925",
"0.723873",
"0.70446163",
"0.7022542",
"0.6940819",
"0.6845572",
"0.67725074",
"0.6691146",
"0.6691146",
"0.66182977",
"0.6591406",
"0.6581744",
"0.6579758",
"0.65616137",
"0.65180665",
"0.65180665",
"0.65172106",
"0.6504361",
"0.6500447",
"0.6496118... | 0.65845233 | 12 |
getNelError is used to convert the Cedar standard logarithm of the uncertainty (logDNe), into uncertainty of the logarithm. Returns (lower value, upper value) | def zFEQ(C73F, T4_Q):
QAm2 = epAf.pow(10.0, C73F)
eUcI = epAf.pow(10.0, T4_Q)
EyEi = QAm2 - eUcI
if EyEi < 1.0:
EyEi = 1.0
WTBt = QAm2 + eUcI
LiRN = C73F - epAf.log10(EyEi)
majh = epAf.log10(WTBt) - C73F
return (LiRN, majh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vrxk(YKHO):\n return YKHO._use_center_as_labels(YKHO.norm_errn * YKHO.e2dnde_ref)",
"def NJxj(YKHO):\n return YKHO._use_center_as_labels(YKHO.norm_errn * YKHO.dnde_ref)",
"def BNq8(YKHO):\n return YKHO._use_center_as_labels(YKHO.norm_err * YKHO.e2dnde_ref)",
"def rALc(YKHO):\n return YKHO._us... | [
"0.6424062",
"0.63676995",
"0.6325729",
"0.6281377",
"0.6178194",
"0.61218077",
"0.60250306",
"0.58645326",
"0.5863841",
"0.5859189",
"0.58331794",
"0.58095574",
"0.57963264",
"0.57922125",
"0.57883424",
"0.57597715",
"0.57597715",
"0.5756675",
"0.57451755",
"0.5732425",
"0.5... | 0.8201266 | 0 |
Given an array of scores and a score threshold, return an array of | def cXMY(YKHO, cCrA: np.ndarray, gwAu: float) -> oyIN.ndarray:
return (cCrA >= gwAu).astype(int) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YuD6(cCrA, gwAu=0.0):\n kgDL = filter(lambda WKvO, a1PO=gwAu: WKvO[1] > a1PO, cCrA)\n return map(lambda WKvO: WKvO[0], kgDL)",
"def sWsm(W9E0, gwAu):\n return [1 if LVAh >= gwAu else 0 for LVAh in W9E0]",
"def cXMY(YKHO, cCrA: np.ndarray, gwAu: float) -> oyIN.ndarray:\n nvEb = oyIN.array([1 if ... | [
"0.78109366",
"0.75326055",
"0.75225645",
"0.71582735",
"0.697566",
"0.6894346",
"0.6863591",
"0.6832439",
"0.68165165",
"0.6635671",
"0.6615319",
"0.6607024",
"0.6590354",
"0.656817",
"0.65510935",
"0.6540444",
"0.6533855",
"0.65289676",
"0.65261406",
"0.65182763",
"0.650441... | 0.75546765 | 1 |
MSE. y is the label. | def hkHB(uN02, LVAh):
return oyIN.multiply(0.5, oyIN.power(uN02 - LVAh, 2.0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkHB(YKHO, LVAh, lHmx):\n return Kt_s.sum((YKHO.output.flatten(2) - LVAh) ** 2) / lHmx",
"def ny2L(YKHO, H96n):\n YKHO.y_test = H96n\n if YKHO.yHat is None:\n YKHO._predictOwntest(Z5wO)\n ywwl = YKHO.yHat.size\n YKHO._MSE = oyIN.sum((YKHO.y_test - YKHO.yHat) ** 2) / ywwl\n return YKH... | [
"0.7652258",
"0.761029",
"0.7544728",
"0.7397966",
"0.7367753",
"0.7276049",
"0.7268335",
"0.7214639",
"0.7163418",
"0.7163418",
"0.7131946",
"0.709334",
"0.7057814",
"0.70495504",
"0.7024509",
"0.70196337",
"0.69757813",
"0.6950256",
"0.6948585",
"0.692255",
"0.69127727",
... | 0.7795894 | 0 |
Return a bias vector initialized to zeros | def oug5(exwG, yDqo=oyIN.float32):
return oyIN.zeros(exwG, yDqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k0Dq(YKHO, EcVT):\n ywwl = oyIN.size(EcVT, 1)\n A_1m = oyIN.ones([ywwl, 1], dtype=int)\n return A_1m",
"def AQBQ():\n cpyE = oyIN.array([1.0 * po2l[URt2[YRbF]] for YRbF in URt2])\n cpyE /= oyIN.sum(cpyE)\n cpyE = oyIN.log(cpyE)\n cpyE -= oyIN.max(cpyE)\n return cpyE",
"def KR18(YKHO... | [
"0.74641854",
"0.7378646",
"0.7214533",
"0.7075787",
"0.7075787",
"0.7073571",
"0.6972813",
"0.6813229",
"0.6808043",
"0.67493105",
"0.67408687",
"0.6728156",
"0.66530186",
"0.6645162",
"0.66226",
"0.6599461",
"0.6555041",
"0.65367925",
"0.65367925",
"0.65367925",
"0.65285486... | 0.7523227 | 0 |
Remove comment symbol '!' frp, index line if there is one | def udx6(YKHO, or8S):
if YKHO.template[or8S][1][0] == '!':
YKHO.template[or8S][1] = YKHO.template[or8S][1][1:]
else:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o9dR(zFiD):\n YRbF = zFiD.find('#')\n return zFiD if YRbF == -1 else zFiD[:YRbF]",
"def RzNJ(YKHO, zFiD):\n if not '#' in zFiD:\n return zFiD\n for YRbF, Z9rn in enumerate(zFiD):\n if Z9rn == '#':\n if not YKHO._isCharEnclosed(YRbF, zFiD):\n return zFiD[:YR... | [
"0.7781778",
"0.77096105",
"0.7565027",
"0.7501854",
"0.73798156",
"0.7309652",
"0.72675186",
"0.7249518",
"0.7235833",
"0.718316",
"0.71575934",
"0.7058472",
"0.70503885",
"0.7033601",
"0.69641906",
"0.6957651",
"0.6875587",
"0.6861103",
"0.6852946",
"0.6848069",
"0.68309355... | 0.7373984 | 5 |
Generates a random string of length N. | def BWvy(gqFP=5):
return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(gqFP))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWvy(ywwl):\n return ''.join((FXSn.choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(ywwl)))",
"def Jv62(ywwl=10):\n return ''.join((tuKI.SystemRandom().choice(vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(ywwl)))",
"def BWvy(ywwl=6):\n ZuhN = ''.join((tuKI.... | [
"0.8688704",
"0.85679",
"0.8550469",
"0.853085",
"0.84650385",
"0.8445786",
"0.8397561",
"0.8384007",
"0.83527035",
"0.8305346",
"0.81701523",
"0.81389993",
"0.7968668",
"0.7936105",
"0.79311603",
"0.78944546",
"0.7885991",
"0.7884141",
"0.78112084",
"0.78021497",
"0.7783504"... | 0.7659613 | 33 |
Renders a page to show the boarding instructions for a single Airport. | def NMoC(YKHO, QePW, s5ru):
rnAC = YKHO.queryset.get(slug__iexact=s5ru)
kSQI = rnAC.get_coordinates()
a2mv = rnAC.get_nearby_hotels(kSQI)
QpfX = {'airport': rnAC, 'hotels': a2mv}
return _1tc(QePW, YKHO.template_name, QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, QePW):\n GCD3 = YKHO.get_queryset().all()\n return _1tc(QePW, YKHO.template_name, {'airports': GCD3})",
"def P5ZI(e1vZ):\n LhQH = xkR3(e1vZ, AAVa)\n return TvZl('flight_details.html', flight_results=LhQH)",
"def anOx(nHrW):\n cuiw['TRIP'] = nHrW\n PatJ = B0gN.get_itinerary_by_i... | [
"0.6054479",
"0.56602955",
"0.5640334",
"0.56075996",
"0.5602186",
"0.5486219",
"0.53198105",
"0.5318576",
"0.5273663",
"0.5253806",
"0.5235012",
"0.5220401",
"0.51983166",
"0.51759225",
"0.51722735",
"0.5170854",
"0.5164955",
"0.5153314",
"0.51448655",
"0.5118372",
"0.511772... | 0.5202561 | 12 |
Renders a page to show the boarding instructions for a single Airport. | def NMoC(YKHO, QePW, s5ru):
rnAC = YKHO.queryset.get(slug__iexact=s5ru)
QpfX = {'airport': rnAC}
return _1tc(QePW, YKHO.template_name, QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, QePW):\n GCD3 = YKHO.get_queryset().all()\n return _1tc(QePW, YKHO.template_name, {'airports': GCD3})",
"def P5ZI(e1vZ):\n LhQH = xkR3(e1vZ, AAVa)\n return TvZl('flight_details.html', flight_results=LhQH)",
"def anOx(nHrW):\n cuiw['TRIP'] = nHrW\n PatJ = B0gN.get_itinerary_by_i... | [
"0.6054479",
"0.56602955",
"0.5640334",
"0.5602186",
"0.5486219",
"0.53198105",
"0.5318576",
"0.5273663",
"0.5253806",
"0.5235012",
"0.5220401",
"0.5202561",
"0.51983166",
"0.51759225",
"0.51722735",
"0.5170854",
"0.5164955",
"0.5153314",
"0.51448655",
"0.5118372",
"0.5117728... | 0.56075996 | 3 |
Return the unit of measurement. | def b82i(YKHO):
return pGhX | {
"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.0 | -1 |
Return the state attributes. | def R1i3(YKHO):
return {Su_7: YKHO._odl_id, Yi1q: YKHO._timestamp, M0Wj: YKHO._status, y3mj: YKHO._location} | {
"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.7706402 | 98 |
Initializer for ActionTypeHint instance. | def FIMM(YKHO, vv4o: Type=None, KqA4: bool=False, **B2fa):
if vv4o is not None:
if not YKHO.is_supported_typehint(vv4o, full=True):
raise ValueError('Unsupported type hint ' + str(vv4o) + '.')
YKHO._typehint = vv4o
YKHO._enable_path = False if TAwy(vv4o, GkAb) else KqA4
elif ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, PgMf, mrPm):\n zToQ.__init__(YKHO)\n YKHO.choices = mrPm\n YKHO.action_type = PgMf\n YKHO.prompt = None",
"def FIMM(YKHO, PgMf):\n super().__init__(f'No such action type registered: {PgMf}')",
"def nrOS(YKHO, *qIxc, **B2fa):\n if len(qIxc) == 0:\n B2fa['_typehint'] = YKH... | [
"0.6906009",
"0.6759443",
"0.639967",
"0.62479126",
"0.6196863",
"0.61011475",
"0.60138905",
"0.59757924",
"0.5955429",
"0.57774794",
"0.5748687",
"0.5715285",
"0.5711456",
"0.5655689",
"0.55988556",
"0.55801326",
"0.5574682",
"0.5531141",
"0.55023587",
"0.5487633",
"0.548701... | 0.510129 | 78 |
Send a reset link using url to the user's email only if a user is found by email | def kQVT(YKHO, qv1X, _hkX):
CBIr = mv1M.find_by_email(qv1X.media['email'])
if not CBIr:
_hkX.media = {'success': False}
return
rBAO = hHYi(CBIr.username, 86400)
bD7m = '{}{}{}'.format(qv1X.media['url'], '?', hfK9.urlencode({'resettoken': rBAO}))
x8md(qv1X.media['email'], CBIr.usernam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ryyU():\n try:\n nPrm = QePW.get_json()\n D3lj = nPrm['email']\n except KeyError:\n eTsH(BfDw.response_fn(400, 'error', 'Should be email'))\n pjJa.isEmailValid(D3lj)\n Nc2H.sendmail(D3lj)\n return BfDw.response_fn(200, 'data', [{'message': 'Check your email for password rese... | [
"0.7687455",
"0.7281432",
"0.7239238",
"0.7178001",
"0.7137788",
"0.70808154",
"0.70689297",
"0.7021368",
"0.6933833",
"0.6905383",
"0.6840342",
"0.6823053",
"0.6822817",
"0.6800301",
"0.6794559",
"0.6790983",
"0.6784936",
"0.67847437",
"0.6773811",
"0.67610854",
"0.67352927"... | 0.64242 | 46 |
Push element x to the back of queue. | def _jXH(YKHO, WKvO):
if not YKHO.flag:
for YRbF in range(len(YKHO.l2)):
YKHO.l1.append(YKHO.l2.pop())
YKHO.flag = True
YKHO.l1.append(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)",
"def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()",
"def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)... | [
"0.8627964",
"0.847768",
"0.8414127",
"0.827978",
"0.8259876",
"0.82024014",
"0.81944746",
"0.81445456",
"0.81445456",
"0.81041193",
"0.81004506",
"0.80947775",
"0.805236",
"0.805236",
"0.8037114",
"0.8033887",
"0.79936236",
"0.79584146",
"0.7948628",
"0.7944436",
"0.7899758"... | 0.7242047 | 63 |
Removes the element from in front of queue and returns that element. | def BEuN(YKHO):
if YKHO.flag:
for YRbF in range(len(YKHO.l1)):
YKHO.l2.append(YKHO.l1.pop())
YKHO.flag = False
return YKHO.l2.pop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None",
"def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()",
"def BEuN(YKHO):\n if len(... | [
"0.8555329",
"0.8328939",
"0.8140039",
"0.8034977",
"0.79164875",
"0.78855795",
"0.78811806",
"0.7801733",
"0.779861",
"0.7746345",
"0.771465",
"0.77118754",
"0.76968926",
"0.76682067",
"0.766334",
"0.7661976",
"0.7642947",
"0.7642427",
"0.76389724",
"0.76361203",
"0.7620108"... | 0.0 | -1 |
Get the front element. | def T7C_(YKHO):
if YKHO.flag:
return YKHO.l1[0]
else:
return YKHO.l2[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnzS(YKHO):\n return YKHO.frontelem.elem",
"def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]",
"def TA6u(YKHO):\n return YKHO.storage[0]",
"def VnzS(YKHO):\n return YKHO.head",
"def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]",
"def qnv... | [
"0.87835056",
"0.83788836",
"0.82574433",
"0.80897844",
"0.8012526",
"0.7981897",
"0.786668",
"0.783555",
"0.7815892",
"0.77942365",
"0.7735508",
"0.769147",
"0.76801795",
"0.76465446",
"0.7630563",
"0.75877416",
"0.7572392",
"0.75053453",
"0.74844474",
"0.74813557",
"0.74660... | 0.0 | -1 |
one object of this class stores a number of Card objects this number is specified by numCardsInHand | def FIMM(YKHO, FIei):
YKHO.handList = list()
YKHO.suitList = ['s', 'h', 'c', 'd']
YKHO.numCardsInHand = FIei
for YRbF in range(FIei):
afoP = tuKI.randint(0, 3)
YKHO.handList.append(F1Hz(tuKI.randint(0, 13), YKHO.suitList[afoP])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, khoC):\n YKHO.CardList = khoC\n YKHO.hash_string = ''\n YKHO.updateHashString()",
"def OF1y(YKHO):\n YKHO.cards = []\n YKHO.highAce = False\n YKHO.bust = False\n for YRbF in range(0, 2):\n YKHO.draw()",
"def FIMM(YKHO):\n YKHO.cards = []\n for iCfd in range(4):\... | [
"0.7695022",
"0.76696056",
"0.7442498",
"0.7440528",
"0.74048316",
"0.74021846",
"0.7362415",
"0.73623127",
"0.72652054",
"0.7173578",
"0.7169822",
"0.7164801",
"0.71310204",
"0.7107336",
"0.7097073",
"0.7062687",
"0.70568115",
"0.70504105",
"0.70453775",
"0.702816",
"0.70271... | 0.8069596 | 0 |
Testing for tag creation | def wsng(YKHO):
biGv.admin_token_assert_equal(YKHO, VH0d, DJxo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FDpy(YKHO):\n pass",
"def FDpy(YKHO):\n nNXP.content.create(container=YKHO.portal, type='tribuna.content.tag', title='Tag 1')",
"def WENv(YKHO):\n with h0_g(YKHO, 'organizer.add_tag'):\n YKHO.assertEqual(OhYN.objects.count(), 0)\n b93c = Pi2M('id', Exxh(oQ1U.build()))\n geh0 =... | [
"0.9425296",
"0.8176516",
"0.7668911",
"0.762416",
"0.7581438",
"0.7556758",
"0.75540733",
"0.7519163",
"0.7512588",
"0.74987364",
"0.7478764",
"0.74652445",
"0.74559546",
"0.7447146",
"0.74386054",
"0.7432486",
"0.742357",
"0.7412969",
"0.7409983",
"0.73918664",
"0.7378595",... | 0.7983504 | 2 |
Testing for updating tag | def Rnoq(YKHO):
biGv.admin_token_assert_equal(YKHO, JE2m, c_nR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rnoq(YKHO, smPF, Onn9, DW23, mUrV):\n TZ9E = oQ1U.create(name='A', text_color='#aabbcc', bg_color='#001122', can_see=w9kv.EVERYBODY, can_assign=w9kv.EVERYBODY, desc='AAA')\n Cc00 = dict(name='B', text_color='#ffeedd', bg_color='#221100', desc='BBB', can_see=w9kv.ORG_ADMINS, can_assign=w9kv.OWNER, owner_o... | [
"0.79664826",
"0.79654706",
"0.7888781",
"0.78032464",
"0.77381915",
"0.77101284",
"0.7703273",
"0.76796037",
"0.7621448",
"0.757704",
"0.7532211",
"0.7502789",
"0.7460771",
"0.7456406",
"0.7387251",
"0.7378114",
"0.7368618",
"0.72678596",
"0.7264079",
"0.72630036",
"0.725573... | 0.8093717 | 0 |
Testing for updating nonexistent tag | def hi4z(YKHO):
biGv.admin_token_assert_equal(YKHO, QAJB, nCWV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzAB(YKHO):\n YKHO.assertEqual(FYrf.SUCCESS, YKHO.tags.create_card('CompanyG', 'Software Engineer', 2))\n S5Ok = FYrf.Card.objects.get(name='CompanyG').id\n YKHO.assertEqual(FYrf.FAILURE, YKHO.tags.modify_tag(S5Ok, 'this_tag_doesnt_exist', 'new_tag'))",
"def zLon(YKHO):\n YKHO.assertEqual(FYrf.FA... | [
"0.80006146",
"0.76226336",
"0.7129961",
"0.7079353",
"0.700981",
"0.6839555",
"0.68375343",
"0.67904264",
"0.6771427",
"0.6769396",
"0.6733499",
"0.6693921",
"0.6665164",
"0.66209",
"0.6619784",
"0.6618784",
"0.66035974",
"0.6588678",
"0.6472698",
"0.6471193",
"0.6458068",
... | 0.83492345 | 0 |
A maxpooling layer with kernel of kernel_size. This layer donwsamples [kernel_size, kernel_size] to 1 number which represents maximum. Stride description is identical to the convolution layer. But default value we use is kernel_size to reduce dim by kernel_size times. This layer does not have any learnable parameters. | def FIMM(YKHO, Ot1W):
YKHO.stride = Ot1W
YKHO.kernel_size = Ot1W | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s6J7(WKvO, Ot1W):\n return ZylS.nn.max_pool(value=WKvO, ksize=Ot1W, strides=[1, 2, 2, 1], padding='SAME')",
"def Bnd8(vHnr, EcAO=[2, 2], FEri=2):\n gEmA = ZylS.layers.max_pooling2d(inputs=vHnr, pool_size=EcAO, strides=FEri)\n V7tI(gEmA, 'pooling')\n return gEmA",
"def af3E(input, M6vu, FEri, dv... | [
"0.7730025",
"0.76631486",
"0.764486",
"0.762825",
"0.761427",
"0.7579687",
"0.7531621",
"0.7515998",
"0.7469998",
"0.74652094",
"0.7440114",
"0.7435173",
"0.7383252",
"0.7375606",
"0.7375606",
"0.7366892",
"0.73615366",
"0.73484",
"0.7316102",
"0.73055935",
"0.72977537",
"... | 0.0 | -1 |
Clears the shell's screen. | def SJEV():
if a9EH.system() == 'Windows':
pOv4('cls', shell=True)
else:
pOv4('clear') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yPVe():\n Hy7s.system('clear')",
"def yPVe():\n Hy7s.system('cls')",
"def yPVe() -> None:\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')",
"def DWiR():\n Hy7s.system('clear')",
"def yPVe():\n Hy7s.system('clear')",
"def yPVe():\n Hy7s.system('cls' if Hy7s.name == 'nt' else '... | [
"0.89848083",
"0.89076984",
"0.89075375",
"0.88995963",
"0.88709784",
"0.8821761",
"0.87774277",
"0.8754299",
"0.8754299",
"0.8754299",
"0.8754299",
"0.874077",
"0.87265235",
"0.8724095",
"0.871167",
"0.8705739",
"0.8705604",
"0.87041694",
"0.8659083",
"0.8654344",
"0.862641"... | 0.77894735 | 60 |
Find the PSF sigma for each fiber This serves as an initial guess to what follows | def ahMZ(TLbF, Qjtn, _bM2, l_xC=2, SYxB=5, dsE5=False, PJWX=False):
RKD7 = fZx2()
voa2 = TLbF.shape[0]
AOjS = TLbF.shape[1]
pvd3 = Qjtn.shape[0]
assert pvd3 == voa2
_KUl = Qjtn.shape[1]
s7Po = 1.0
liMP = []
yKcO = 0
for P2GO in range(_KUl):
if P2GO % 25 == 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yxyc(VXjJ, Xslo, Qjtn, WTkW, l_xC=2, PJWX=True):\n Wsnn = oyIN.outer(oyIN.ones(VXjJ.shape[0]), oyIN.arange(VXjJ.shape[1]))\n ZHfW = oyIN.zeros_like(VXjJ, dtype=int)\n BGSy = oyIN.arange(VXjJ.shape[0], dtype=int)\n RKD7 = fZx2()\n mWRp = oyIN.zeros_like(Qjtn)\n VIcB = 1.0 / oyIN.sqrt(2 * oyIN.... | [
"0.64817107",
"0.6360655",
"0.6340281",
"0.61607337",
"0.6154638",
"0.6144025",
"0.6135023",
"0.60958326",
"0.60790116",
"0.60530925",
"0.60247785",
"0.60201913",
"0.5961291",
"0.5951348",
"0.5931677",
"0.59007853",
"0.58719236",
"0.58705693",
"0.58698326",
"0.585775",
"0.585... | 0.0 | -1 |
Find the PSF sigma for each fiber This serves as an initial guess to what follows | def kW3u(TLbF, Qjtn, _bM2, l_xC=2, SYxB=5, dsE5=False, PJWX=False):
RKD7 = fZx2()
RKD7.warning('fiber_gauss uses astropy.modeling. Consider an alternative')
_KUl = Qjtn.shape[1]
pvd3 = Qjtn.shape[0]
BGSy = oyIN.arange(pvd3).astype(int)
ZHfW = oyIN.zeros_like(TLbF, dtype=int)
Wsnn = oyIN.out... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yxyc(VXjJ, Xslo, Qjtn, WTkW, l_xC=2, PJWX=True):\n Wsnn = oyIN.outer(oyIN.ones(VXjJ.shape[0]), oyIN.arange(VXjJ.shape[1]))\n ZHfW = oyIN.zeros_like(VXjJ, dtype=int)\n BGSy = oyIN.arange(VXjJ.shape[0], dtype=int)\n RKD7 = fZx2()\n mWRp = oyIN.zeros_like(Qjtn)\n VIcB = 1.0 / oyIN.sqrt(2 * oyIN.... | [
"0.64817107",
"0.6360655",
"0.6340281",
"0.61607337",
"0.6154638",
"0.6144025",
"0.6135023",
"0.60958326",
"0.60790116",
"0.60530925",
"0.60247785",
"0.60201913",
"0.5961291",
"0.5951348",
"0.5931677",
"0.59007853",
"0.58719236",
"0.58705693",
"0.58698326",
"0.585775",
"0.585... | 0.0 | -1 |
Loads the model and processes it. | def b8V_():
CXd0 = list()
for rdlD in m6_J.DictReader(open('./mexico-comments.csv', 'r', encoding='utf-8')):
CXd0.append(rdlD['body'])
rrSk = tuKI.sample(CXd0, 50000)
K9NE = CNQv.load('es_core_news_sm')
K9NE.max_length = 10000000
thS1(K9NE, rrSk)
VeoF(K9NE, rrSk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl():\n pass",
"def uyMl():\n pass",
"def tyeH(YKHO):\n YKHO._model_handler.load()\n YKHO.model = YKHO._model_handler.model",
"def tyeH(YKHO):\n YKHO.model = wOed.l... | [
"0.82744336",
"0.82744336",
"0.82744336",
"0.82744336",
"0.8090219",
"0.8090219",
"0.8080173",
"0.7865971",
"0.7765732",
"0.77635753",
"0.77138305",
"0.7659234",
"0.76219934",
"0.7570229",
"0.75500906",
"0.7546026",
"0.75435513",
"0.7542814",
"0.7505383",
"0.7498224",
"0.7490... | 0.0 | -1 |
Trunate map inplace by standard deviation (sigma) while scale it with specified scale, such as volume (scale_by = 1/volume) or sigma (scale_by = 1/standard_deviation). Input map_data is expected to be unscaled ( right out of FT). | def G34s(KddN, gpT_, D2ct, j6Nn=0):
WTkW = Dz7Y(KddN).sigma()
if WTkW == 0:
KddN = KddN * D2ct
return
YBcr.truncate(map_data=KddN, standard_deviation=WTkW, by_sigma_less_than=gpT_, scale_by=D2ct, set_value=j6Nn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXpY(YKHO, SZFh, zzHs, q3hS, WTkW, KMvS, C3ST):\n SZFh, zzHs = (SZFh.reshape(q3hS), zzHs.reshape(q3hS))\n WZcn = oyIN.zeros_like(zzHs)\n if C3ST == 'exponential':\n WZcn = 8.0 * oyIN.pi * KMvS ** 3 / oyIN.square(1 + oyIN.square(KMvS * zzHs))\n elif C3ST == 'stretched':\n WZcn = 4.0 * ... | [
"0.6531563",
"0.6219134",
"0.60720986",
"0.60619134",
"0.6039742",
"0.6021322",
"0.5967484",
"0.59359366",
"0.58546543",
"0.5854578",
"0.5831789",
"0.5825756",
"0.582388",
"0.58226866",
"0.5822651",
"0.5795456",
"0.5785646",
"0.57760876",
"0.5733268",
"0.571607",
"0.5715441",... | 0.6956011 | 0 |
Estimate atom radius as halfwidth of the central peak of Fourier image. | def qRfB(U6D_, _6kB, VtCk, T3_T):
from cctbx import xray, miller
tpio = 40.0
gtI8 = VF_6.symmetry((tpio, tpio, tpio, 90, 90, 90), 'P 1')
H4yH = VF_6.special_position_settings(gtI8)
Sa_m = xray.scatterer(scattering_type=U6D_, site=(0, 0, 0), u=Gkt2.b_as_u(_6kB))
GGGv = n_8d.xray_scatterer([Sa_m])... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r1VO(YKHO):\n return YKHO.width / 2",
"def r1VO(YKHO) -> float:\n Z9rn = YKHO.array[:-1, -1] / YKHO.array[0, 0]\n return oyIN.sqrt(Z9rn.dot(Z9rn) - YKHO.array[-1, -1] / YKHO.array[0, 0])",
"def r1VO(YKHO) -> float:\n Z9rn = YKHO.array[:2, 2] / YKHO.array[0, 0]\n return oyIN.sqrt(Z9rn.dot(Z9r... | [
"0.66732436",
"0.65916383",
"0.6529336",
"0.64215255",
"0.6389937",
"0.6296649",
"0.6267391",
"0.6240393",
"0.623692",
"0.6235222",
"0.62137496",
"0.6176973",
"0.61709774",
"0.61232245",
"0.61232245",
"0.61217505",
"0.6113121",
"0.61054945",
"0.6090884",
"0.60505545",
"0.6018... | 0.67249525 | 0 |
Get the HTTPS URL to the repository which has the username and a GitHub token for authentication. | def nubk(boHx):
return f'https://{azgz}:{Fjhc}@github.com/{h_IB}/{boHx}.git' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xhmt(KcEq, qsJ6, boHx):\n return f'https://{KcEq}/{qsJ6}/{boHx}'",
"def eqku(YKHO, KcEq, qsJ6, boHx):\n if YKHO.__options.github_oauth_token:\n Le1H = uRlK.parse.quote(YKHO.__options.github_oauth_token, safe='')\n return f'https://{Le1H}@{KcEq}/{qsJ6}/{boHx}'\n return f'https://{KcEq}/... | [
"0.7598957",
"0.7439217",
"0.7425985",
"0.74030924",
"0.72305834",
"0.72166264",
"0.71701837",
"0.7103058",
"0.70900965",
"0.7068999",
"0.70657104",
"0.7064818",
"0.7064818",
"0.7039057",
"0.70356107",
"0.70085645",
"0.69910836",
"0.6983141",
"0.6983141",
"0.6952203",
"0.6939... | 0.76904047 | 0 |
Get the fully qualified absolute path to the repository on the local file system. Repositories are cloned into eponymous directories inside the working directory. | def a_7F(boHx):
return Orwp.joinpath(boHx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CtHB() -> GkAb:\n return GkAb('.').absolute()",
"def a_7F() -> oAb3.Path:\n lFdQ = oAb3.Path(xAKo).parent.absolute()\n assert lFdQ.exists(), lFdQ\n assert lFdQ.is_dir()\n dMng = lFdQ.parent.absolute()\n assert dMng.exists(), dMng\n assert dMng.is_dir()\n return dMng",
"def xXEl(t_yv... | [
"0.8010389",
"0.75444883",
"0.73399717",
"0.7279164",
"0.72643864",
"0.7215978",
"0.71802384",
"0.71131116",
"0.7074058",
"0.70661694",
"0.7031368",
"0.70056736",
"0.6955676",
"0.6902023",
"0.68980825",
"0.6890879",
"0.68453825",
"0.68357164",
"0.67894423",
"0.67330134",
"0.6... | 0.73214173 | 3 |
Get the fully qualified absolute path to the CODEOWNERS file inside the given repository. By convention the file should be located inside the '.github/' directory in the repository. | def XmMq(boHx):
return a_7F(boHx).joinpath('.github', 'CODEOWNERS') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_Hj(hq1n):\n DumB = hq1n.split('/repos/')\n dMng = DumB[1]\n if dMng.startswith('/'):\n dMng = dMng.replace('/', '', 1)\n return dMng.lstrip('/').split('/')[0]",
"def nVpo(qsJ6: str, boHx: str) -> str:\n return '%s/%s' % (qsJ6, boHx)",
"def n3vd(YKHO) -> str:\n return YKHO.__get_p... | [
"0.66585404",
"0.66133356",
"0.64650977",
"0.6403522",
"0.64028126",
"0.63752156",
"0.6272806",
"0.62270004",
"0.61963546",
"0.6195412",
"0.61820406",
"0.6145117",
"0.61430514",
"0.61366755",
"0.6085546",
"0.60769886",
"0.60754263",
"0.60754263",
"0.6039636",
"0.60115623",
"0... | 0.83935523 | 0 |
Renders the home page. | def kZiy():
return 'Welcome Guest!!!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('pages/home.html')",
"def kZiy():\n leAC =... | [
"0.86085397",
"0.85661966",
"0.8562984",
"0.84564984",
"0.8353822",
"0.8353445",
"0.832796",
"0.83265287",
"0.83265287",
"0.8311966",
"0.83088946",
"0.83046836",
"0.8296962",
"0.82942903",
"0.82942903",
"0.82872546",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279... | 0.0 | -1 |
True if user can access this object; False otherwise. | def eBIn(YKHO, CBIr):
if YKHO.shared_with_everyone:
return True
if YKHO.user == CBIr or YKHO.users_allowed.filter(pk=CBIr.pk).exists():
return True
for uOe2 in YKHO.groups_allowed.all():
if CBIr.groups.filter(pk=uOe2.pk).exists():
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKMP(YKHO):\n return YKHO.public() or 'owner' in YKHO.permissions()",
"def JL1u(YKHO):\n if Mi51.has_permission('access', YKHO, YKHO.request):\n return True\n else:\n return False",
"def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method not in w0rQ.SAFE_METHODS:\n return QePW.... | [
"0.81411064",
"0.80378705",
"0.79579437",
"0.7934728",
"0.7915086",
"0.7915086",
"0.79122794",
"0.78903663",
"0.78856015",
"0.78605646",
"0.7858804",
"0.78486276",
"0.78408474",
"0.78383684",
"0.7828447",
"0.7818475",
"0.7818475",
"0.7818475",
"0.7818475",
"0.7818475",
"0.781... | 0.77009547 | 38 |
Parse a string as a boolean, returning None if it could not be parsed. | def hYJ7(vIwR):
lXXq = ZbWC.compile('(^True$)|(^true$)|(^TRUE$)|^T$|^t$|^1$')
G9e4 = ZbWC.compile('(^False$)|(^false$)|(^FALSE$)|^F$|^f$|^0$')
if lXXq.match(vIwR):
return True
elif G9e4.match(vIwR):
return False
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hDhI(KCHu):\n if KCHu is None:\n return False\n if type(KCHu) is bool:\n return KCHu\n if KCHu.isdigit():\n return int(KCHu)\n if KCHu.lower() in ('', 'off', 'f', 'false', 'no', 'none', 'undefined'):\n return False\n else:\n return True",
"def hYJ7(KCHu):\n ... | [
"0.8102669",
"0.8036484",
"0.8030349",
"0.80063325",
"0.79774594",
"0.7906428",
"0.78365624",
"0.7787475",
"0.77590424",
"0.76751006",
"0.76731974",
"0.7667527",
"0.75976634",
"0.75976235",
"0.7563248",
"0.75596476",
"0.75590646",
"0.7515131",
"0.7511736",
"0.7507613",
"0.750... | 0.85824025 | 0 |
True if this Datatype restricts the parameter, directly or indirectly. This induces a partial ordering A <= B if A is a restriction of B. For example, a DNA sequence is a restriction of a string. | def kDMk(YKHO, PUEu):
return YKHO == PUEu or PUEu.is_restricted_by(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JHju(YKHO):\n return hasattr(YKHO, 'restricts')",
"def m5wh(YKHO):\n if YKHO.value < YKHO.lowerLimit:\n return False\n if YKHO.value > YKHO.upperLimit:\n return False\n return True",
"def hKTJ(YKHO, O0Qv, hrZW):\n return [O0Qv + YKHO.amt <= hrZW]",
"def hKTJ(YKHO, O0Qv, hrZW)... | [
"0.62327766",
"0.616723",
"0.6139131",
"0.5981116",
"0.5977931",
"0.5955074",
"0.59429586",
"0.5927543",
"0.58875847",
"0.58850306",
"0.58481306",
"0.58481306",
"0.5798371",
"0.5785131",
"0.5775176",
"0.5766429",
"0.5765245",
"0.5751286",
"0.5728921",
"0.5723083",
"0.57077384... | 0.62820756 | 0 |
Check that the minval/maxval/minlen/maxlen constraint on this Datatype is at least as restrictive as the equivalent constraint on its supertypes. This is a helper function for _check_basic_constraints_against_supertypes, which in turn is a helper for clean(). INPUTS constraint the type of constraint to check, one of Ba... | def TYwL(YKHO, oVM8, rhwM):
p9UX = YKHO.basic_constraints.filter(ruletype=oVM8)
if not p9UX.exists():
return
oByq = zykr.parse_numeric(p9UX.first().rule)
qMlH = min if oVM8 in (eizE.MIN_VAL, eizE.MIN_LENGTH) else max
for RsLw in YKHO.restricts.all():
UwaZ = RsLw.get_effective_num_con... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wz40(YKHO):\n YKHO._check_num_constraint_against_supertypes(eizE.MIN_VAL, 'Datatype \"{}\" has MIN_VAL {}, but its supertype \"{}\" has a larger or equal MIN_VAL of {}')\n YKHO._check_num_constraint_against_supertypes(eizE.MAX_VAL, 'Datatype \"{}\" has MAX_VAL {}, but its supertype \"{}\" has a smaller o... | [
"0.7767909",
"0.75294095",
"0.7054507",
"0.7020506",
"0.68743277",
"0.67633945",
"0.6759816",
"0.67294997",
"0.66642815",
"0.6658534",
"0.66488254",
"0.6530052",
"0.6470223",
"0.6434111",
"0.6417704",
"0.6398975",
"0.6332472",
"0.62729293",
"0.62453765",
"0.6223146",
"0.62107... | 0.7649417 | 1 |
SYNOPSIS Checks a row of data against the constraints for each column INPUTS | def fB78(YKHO, rdlD):
def yZ7M(GfdN, BWXx):
if GfdN is None:
return []
XObx = GfdN.check_basic_constraints(BWXx)
return ["Failed check '%s'" % tTpl if not isinstance(tTpl, (str, jKi7.string_types)) else tTpl for tTpl in XObx]
return [yZ7M(uAHD, wEf2) for uAHD, wEf2 in map(No... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EVnf(rdlD, ZLJ_, Zj1i):\n aZac = []\n vGfb = {}\n for H5ew in ZLJ_:\n BWXx = rdlD.get(H5ew, '')\n if BWXx:\n try:\n BWXx = Zj1i(BWXx)\n except ValueError:\n aZac.append(BWXx)\n else:\n vGfb[H5ew] = BWXx\n re... | [
"0.6713323",
"0.64738256",
"0.64166",
"0.6308799",
"0.6207992",
"0.61698556",
"0.60946774",
"0.6052658",
"0.60424334",
"0.60320264",
"0.6011945",
"0.60112035",
"0.60093397",
"0.5981178",
"0.5967337",
"0.5967083",
"0.59114337",
"0.5911087",
"0.58902013",
"0.58879095",
"0.58733... | 0.7252029 | 0 |
compare two lists, return difference in dict format, helper for comparer | def WD9b(Kt9y, I_KI, pmON='', PPJC='dict1', l5dA='dict2'):
Ylbp = {}
if len(Kt9y) != len(I_KI):
Ylbp.update({pmON: {PPJC: [WKvO for WKvO in Kt9y if WKvO not in I_KI], l5dA: [WKvO for WKvO in I_KI if WKvO not in Kt9y]}})
else:
for YRbF in range(len(Kt9y)):
Ylbp.update(iZwk(Kt9y[YR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JntL(Emd4, cntZ, CsFy):\n yk4i = set(Qyk5(cntZ)) - set(Qyk5(CsFy))\n return {VlDb[0] for VlDb in yk4i if VlDb}",
"def pLeQ(Kt9y, I_KI):\n return [[ZfUD for ZfUD in Kt9y.keys() if not ZfUD in I_KI.keys()], [ZfUD for ZfUD in I_KI.keys() if not ZfUD in Kt9y.keys()]]",
"def jE8V(Kt9y, I_KI):\n Csk6... | [
"0.75402373",
"0.7210101",
"0.7042141",
"0.68723893",
"0.6828077",
"0.6796498",
"0.6785796",
"0.674406",
"0.6718114",
"0.67169726",
"0.6568364",
"0.65576977",
"0.654115",
"0.65379524",
"0.6535862",
"0.6460967",
"0.6425567",
"0.6423961",
"0.64201033",
"0.6413253",
"0.64091843"... | 0.7234529 | 1 |
test that the Ingredient returned are for the authenticated user | def DdhA(YKHO):
uDCI = lYUQ(email='ahmadded@ahmed.com')
VHaa(user=uDCI)
VHaa(user=YKHO.user, title='ahmed')
Ylbp = YKHO.client.get(nyJA)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(len(Ylbp.data), 1)
YKHO.assertEqual(Ylbp.data[0]['title'], 'ahmed') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PMwr(YKHO):\n k5uE = egNl().objects.create_user('another_tester@example.com', 'TestPassword')\n _baS.objects.create(user=k5uE, name='Vinegar')\n geh0 = YKHO.client.get(ZrLe)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(len(geh0.data), 2)",
"def xDFI(YKHO):\n _ba... | [
"0.83770645",
"0.8266064",
"0.82448536",
"0.81178033",
"0.80971634",
"0.8093921",
"0.8051246",
"0.8051132",
"0.8050678",
"0.80246705",
"0.80166817",
"0.7950648",
"0.793173",
"0.7926767",
"0.7868407",
"0.786611",
"0.78449804",
"0.78396904",
"0.7709444",
"0.7690462",
"0.7618239... | 0.7728214 | 18 |
Returns Trigger by trigger id | def Patf(YKHO, FdDZ):
Aofo = YKHO._client.get(YKHO._full_path('{id}/state'.format(id=FdDZ)))
if 'state' in Aofo:
iqFZ = YKHO._client.get(YKHO._full_path(FdDZ))
return wqbP(YKHO._client, **iqFZ)
elif not 'trigger_id' in Aofo:
raise tdB2('invalid api response', Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def im2g(FdDZ):\n l4pt = YnHM.query.filter(YnHM.trigger_id == FdDZ).first()\n iqFZ = nu1G().dump(l4pt).data\n return pz3A(iqFZ)",
"def FdDZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'trigger_id')",
"def INz2(YKHO, iqFZ):\n UlCL = iqFZ.get('transitions')\n JQ3d = NMoC(next(iter(UlCL)), ['target'],... | [
"0.76356864",
"0.70795846",
"0.70458126",
"0.69605464",
"0.6910179",
"0.6734392",
"0.67137694",
"0.66971314",
"0.66971314",
"0.6621648",
"0.6509797",
"0.64262515",
"0.6380718",
"0.5916291",
"0.59013444",
"0.5863021",
"0.58549917",
"0.58218056",
"0.58124965",
"0.5809618",
"0.5... | 0.6940986 | 4 |
Returns a list of lists joined into one | def PWgb(vC9B):
return list(Hs6x.chain(*vC9B)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uSwp(LzUd: List[List[str]]) -> x1iM[str]:\n hlel = []\n for YRbF in LzUd:\n hlel.extend(YRbF)\n return hlel",
"def svc5(UHhk):\n return list(Hs6x.chain.from_iterable(UHhk))",
"def REXZ(BDwY):\n U5bT = []\n for vC9B in BDwY:\n U5bT.extend(vC9B)\n return U5bT",
"def PWgb(... | [
"0.7616759",
"0.7539142",
"0.7456606",
"0.73366725",
"0.7324349",
"0.7274485",
"0.7266782",
"0.71998143",
"0.71833223",
"0.71435726",
"0.7136875",
"0.71318597",
"0.71318597",
"0.71318597",
"0.7119258",
"0.7119258",
"0.7104094",
"0.7088386",
"0.70578754",
"0.70578754",
"0.7057... | 0.73273885 | 4 |
Partition list into n nearly equal sublists | def Qrt_(list, exwG):
rAjW = len(list) / float(exwG)
return [list[int(round(rAjW * YRbF)):int(round(rAjW * (YRbF + 1)))] for YRbF in range(exwG)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qrt_(yv6U, exwG):\n rAjW = len(yv6U) / float(exwG)\n return [yv6U[int(round(rAjW * YRbF)):int(round(rAjW * (YRbF + 1)))] for YRbF in Ni9Y(exwG)]",
"def es9L(yv6U, exwG):\n rAjW = len(yv6U) / float(exwG)\n return [yv6U[int(round(rAjW * YRbF)):int(round(rAjW * (YRbF + 1)))] for YRbF in range(exwG)]... | [
"0.83921003",
"0.8234427",
"0.8193399",
"0.7940583",
"0.79045826",
"0.78329974",
"0.7782458",
"0.77815604",
"0.77503306",
"0.76931256",
"0.7652282",
"0.7629553",
"0.7626029",
"0.762306",
"0.76228577",
"0.76105845",
"0.7606942",
"0.760087",
"0.7588603",
"0.75685",
"0.7542719",... | 0.8286371 | 1 |
Test whether correlation metric for xarray functions can be lazy when chunked by using dask and give same results. | def p9y6(rJOs, ZK1e, tpio, Vt42, lTA3, Wbxz):
jzdc = rJOs
Fg_i = ZK1e
_mSQ = lTA3
AcYW, iOwL = Wbxz
if tpio != 'time' and AcYW in X_jj:
tpio = 'time'
TqsC = e6J4(tpio, Vt42, _mSQ)
if AcYW in X_jj:
n5sN = AcYW(jzdc, Fg_i, tpio)
else:
n5sN = AcYW(jzdc, Fg_i, tpio, w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DWNS(YKHO, Eyfa):\n if Eyfa is None:\n return True\n TfHM = Eyfa[-1]\n for YRbF in range(0, len(Eyfa) - 1):\n for H5ew in TfHM.keys():\n if H5ew == 'counter':\n continue\n if isinstance(TfHM[H5ew], oyIN.ndarray):\n if not oyIN.allclose(... | [
"0.55909395",
"0.54810965",
"0.54782736",
"0.5378523",
"0.52797693",
"0.527881",
"0.5256679",
"0.5250282",
"0.5246353",
"0.52428436",
"0.5222597",
"0.52130127",
"0.5199161",
"0.519408",
"0.51910806",
"0.5158368",
"0.5128552",
"0.5125758",
"0.50990796",
"0.5073813",
"0.5063765... | 0.6011493 | 0 |
Parse requirements files to dict. | def Xz2C(RRlC: list[pathlib.Path]) -> dict:
E5IU = {}
for bTRL in RRlC:
Yb80 = bTRL.absolute().as_posix()
H5ew = Yb80.rsplit(Hy7s.path.sep, 1)[-1]
with open(bTRL) as eHNT:
E5IU[H5ew] = {f'{zFiD.name}{','.join([''.join(Cqok) for Cqok in zFiD.specs])}' for zFiD in opBR.parse(eH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WPYe(RRlC: list[pathlib.Path]) -> dict:\n E5IU = {}\n for bTRL in RRlC:\n Yb80 = bTRL.absolute().as_posix()\n H5ew = Yb80.rsplit(Hy7s.path.sep, 1)[-1]\n with open(bTRL) as eHNT:\n E5IU[H5ew] = {zFiD.name: zFiD.specs for zFiD in opBR.parse(eHNT) if zFiD.specs}\n return E... | [
"0.79085743",
"0.74606174",
"0.72837",
"0.72538024",
"0.7135504",
"0.7056688",
"0.68924296",
"0.68924296",
"0.6818486",
"0.6803611",
"0.676415",
"0.67208016",
"0.6706319",
"0.67035",
"0.66956854",
"0.6689762",
"0.6688317",
"0.6673323",
"0.6646926",
"0.6640427",
"0.6635663",
... | 0.768083 | 1 |
Parse requirements files to dict. | def WPYe(RRlC: list[pathlib.Path]) -> dict:
E5IU = {}
for bTRL in RRlC:
Yb80 = bTRL.absolute().as_posix()
H5ew = Yb80.rsplit(Hy7s.path.sep, 1)[-1]
with open(bTRL) as eHNT:
E5IU[H5ew] = {zFiD.name: zFiD.specs for zFiD in opBR.parse(eHNT) if zFiD.specs}
return E5IU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xz2C(RRlC: list[pathlib.Path]) -> dict:\n E5IU = {}\n for bTRL in RRlC:\n Yb80 = bTRL.absolute().as_posix()\n H5ew = Yb80.rsplit(Hy7s.path.sep, 1)[-1]\n with open(bTRL) as eHNT:\n E5IU[H5ew] = {f'{zFiD.name}{','.join([''.join(Cqok) for Cqok in zFiD.specs])}' for zFiD in op... | [
"0.768083",
"0.74606174",
"0.72837",
"0.72538024",
"0.7135504",
"0.7056688",
"0.68924296",
"0.68924296",
"0.6818486",
"0.6803611",
"0.676415",
"0.67208016",
"0.6706319",
"0.67035",
"0.66956854",
"0.6689762",
"0.6688317",
"0.6673323",
"0.6646926",
"0.6640427",
"0.6635663",
"... | 0.79085743 | 0 |
requirements.txt should be a subset of requirementsdev.txt | def PjLX():
XW9u = kEwm()
E5IU = Xz2C(files=XW9u)
assert E5IU['requirements.txt'] <= E5IU['requirements-dev.txt']
assert E5IU['requirements-dev-arrow.txt'] | E5IU['requirements-dev-contrib.txt'] | E5IU['requirements-dev-lite.txt'] | E5IU['requirements-dev-api-docs-test.txt'] | E5IU['requirements-dev-clo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Orbv():\n with open('dev-requirements.txt') as eHNT:\n return eHNT.read().splitlines()",
"def z1ru():\n fA3L = []\n with open(Hy7s.path.join(RLRA, 'requirements-dev.txt'), 'r', encoding='utf-8') as ndwV:\n Nqlg = ndwV.readlines()\n for zFiD in Nqlg:\n fA3L.append(zFiD... | [
"0.8038049",
"0.76559657",
"0.7256005",
"0.709847",
"0.70912087",
"0.7054925",
"0.69696313",
"0.696081",
"0.68975174",
"0.6892294",
"0.6794579",
"0.67905974",
"0.67720896",
"0.67573947",
"0.67297304",
"0.67081875",
"0.67031574",
"0.6689473",
"0.66730404",
"0.664674",
"0.66429... | 0.72954947 | 2 |
Removes commented and blank lines in a file and returns a list. | def anve(yk4I):
return set([zFiD for zFiD in yk4I.split('\n') if not zFiD.startswith('#') and zFiD]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ViVG(Ux0P):\n return [vC9B.strip() for vC9B in open(Ux0P).readlines() if vC9B.strip() != '' and vC9B.strip()[0] != '#']",
"def HTzx(qaEx, RPNd=0, Tj1O=1, O358=0):\n Nqlg = []\n nUeQ = open(qaEx)\n for zFiD in nUeQ:\n if not Tj1O:\n if ZbWC.match('[ ]*#|^$', zFiD):\n ... | [
"0.7870716",
"0.77938855",
"0.7702718",
"0.7612501",
"0.7570117",
"0.7404804",
"0.73316103",
"0.72929937",
"0.72455484",
"0.7231806",
"0.72229785",
"0.71535075",
"0.71110487",
"0.70916504",
"0.7079545",
"0.7075298",
"0.70685965",
"0.70484954",
"0.70462525",
"0.7025008",
"0.69... | 0.70088935 | 20 |
Checks if all mines have been flagged. | def kTv5(YKHO):
return YKHO.mines_found == YKHO.mines | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q1Ui(YKHO):\n while YKHO.mine_variables:\n i_xa = YKHO.mine_variables.pop(0)\n YKHO._flags.add((i_xa.row, i_xa.column))",
"def kTv5(YKHO) -> bool:\n return YKHO.mines_found == YKHO.mines",
"def Zsrv(YKHO):\n YKHO.minefield_grid.revealAllMines()",
"def Ukgb(YKHO):\n c9d7 = set()\... | [
"0.75215626",
"0.6754252",
"0.6718773",
"0.6704077",
"0.6528909",
"0.63343984",
"0.6244706",
"0.60936314",
"0.6079671",
"0.60773295",
"0.6073017",
"0.6057064",
"0.60473925",
"0.60288286",
"0.60249376",
"0.6004857",
"0.59933877",
"0.5987422",
"0.5986069",
"0.59817356",
"0.5972... | 0.67865825 | 1 |
Returns a safe cell to choose on the Minesweeper board. The move must be known to be safe, and not already a move that has been made. This function may use the knowledge in self.mines, self.safes and self.moves_made, but should not modify any of those values. | def TJYH(YKHO):
fJ5F = YKHO.safes.copy()
hX2S = {KXjL for KXjL in fJ5F if KXjL not in YKHO.moves_made}
while len(fJ5F) >= 1:
cKGD = fJ5F.pop()
if cKGD in YKHO.mines or cKGD in YKHO.moves_made:
pass
else:
return cKGD
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TJYH(YKHO) -> h8nf[mb3R]:\n h_a5 = YKHO.safes - YKHO.moves_made\n if h_a5:\n return next(iter(h_a5))\n else:\n return None",
"def Qy5L(YKHO) -> mb3R:\n ZpiV = YKHO._full_board - YKHO.moves_made - YKHO.mines\n if ZpiV:\n return tuKI.choice(tuple(ZpiV))\n else:\n r... | [
"0.76449734",
"0.7235856",
"0.71521735",
"0.7079865",
"0.68849486",
"0.68601847",
"0.6751013",
"0.66886747",
"0.6614374",
"0.6561018",
"0.6461882",
"0.63985604",
"0.6255393",
"0.623022",
"0.61972904",
"0.6192971",
"0.6187433",
"0.61796224",
"0.6170621",
"0.6129033",
"0.604654... | 0.6539337 | 10 |
GetIPGlobalProperties() > IPGlobalProperties Gets an object that provides information about the local computer's network connectivity and traffic statistics. | def jkIP():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U34r(YKHO):\n return YKHO.rpc.get_dynamic_global_properties()",
"def s8YG():\n F1HG = HA7U()\n return SQvy.get_connector_properties(F1HG, SAs9.my_ip)",
"def Yzni(YKHO):\n return YKHO._system_properties",
"def IW3L(YKHO):\n return YKHO.__nnc_properties_stub.GetAvailableNNCProperties(YKHO.__... | [
"0.63552296",
"0.571239",
"0.5703699",
"0.5650477",
"0.5623039",
"0.5606146",
"0.5525747",
"0.55041134",
"0.5485979",
"0.5485378",
"0.54837",
"0.5452863",
"0.5441502",
"0.5399164",
"0.5394326",
"0.53811663",
"0.5375154",
"0.5357469",
"0.53413004",
"0.53383726",
"0.5316646",
... | 0.8435703 | 0 |
Normalize the given dataset X | def NkkI(EcVT):
yGTL = oyIN.mean(EcVT, axis=0)
M1Jx = oyIN.std(EcVT, axis=0)
E3B2 = M1Jx.copy()
E3B2[M1Jx == 0] = 1.0
mvSs = (EcVT - yGTL) / E3B2
return (mvSs, yGTL, M1Jx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7gV(WKvO):\n bjRh = WKvO.mean(0)\n nK4P = WKvO.std(axis=0)\n return (WKvO - bjRh) / nK4P",
"def NkkI(EcVT):\n max = oyIN.max(EcVT, axis=0)\n min = oyIN.min(EcVT, axis=0)\n return (EcVT - min) / (max - min)",
"def Q7gV(__n6):\n AKPz = __n6['x'].shape[0]\n B3GR = __n6['xv'].shape[0]\... | [
"0.8126303",
"0.7930935",
"0.79020154",
"0.7865804",
"0.78601724",
"0.784835",
"0.7654661",
"0.76392543",
"0.7621475",
"0.75852025",
"0.7568435",
"0.7564389",
"0.75534594",
"0.7552432",
"0.7548928",
"0.7541635",
"0.7536604",
"0.7533482",
"0.7531634",
"0.75231713",
"0.74501026... | 0.7518817 | 20 |
Returns the Google Drive File/Folder ID for specified files. | def gr7t(ejh1):
return ejh1.split('/')[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdA_(YKHO, iumf):\n N1p7 = YKHO.connection.cursor()\n A07C = dict()\n for Ux0P in iumf:\n N1p7.execute('SELECT files.id FROM files, paths\\n WHERE paths.id = files.path AND\\n paths.name = ? AND files.name = ?', Hy7s.path.split(Ux0P))\n rdlD = N1p7.f... | [
"0.68410975",
"0.63955146",
"0.6335971",
"0.62776583",
"0.6180862",
"0.6112841",
"0.6025951",
"0.59545654",
"0.5890401",
"0.58806837",
"0.58657557",
"0.5821391",
"0.5816992",
"0.5791456",
"0.57822394",
"0.57721645",
"0.5764904",
"0.57631004",
"0.5756471",
"0.574941",
"0.57489... | 0.0 | -1 |
Returns dictionary with city config created from city_config.json or not. It contains lists of instances of hotels, restaurants, cinema, places which can be visited by tourists. | def UUm6(sEAN):
a2mv = []
RkCi = []
kcHg = []
try:
nUeQ = open('config/city_config.json', 'rb')
print('City config has been read!')
GKfV = HjBM.load(nUeQ)
for C6id in GKfV:
if C6id['type'] == 'hotel':
a2mv.append(P_cO(sEAN, (C6id['x_m'], C6id['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zneF(YKHO):\n with open(YKHO.main_folder + 'pm25/cities_info.json', 'r') as eHNT:\n YKHO.city_info_list = qQXR.load(eHNT)\n for ESJi in YKHO.city_info_list:\n if 'City' in ESJi.keys():\n if YKHO.city_name == ESJi['Region']:\n YKHO.city_info = ESJi\n ... | [
"0.62408054",
"0.61436623",
"0.6116373",
"0.6108414",
"0.57846254",
"0.57621896",
"0.5760424",
"0.57081425",
"0.5684199",
"0.5671327",
"0.5647774",
"0.5629484",
"0.56236935",
"0.5623579",
"0.5609378",
"0.5606668",
"0.55582225",
"0.5552158",
"0.55442894",
"0.551944",
"0.551588... | 0.74559873 | 0 |
Returns a normalized 2D gauss kernel array for convolutions | def hvqX(zNig, DJmC=None):
zNig = int(zNig)
if not DJmC:
DJmC = zNig
else:
DJmC = int(DJmC)
WKvO, LVAh = oyIN.mgrid[-zNig:zNig + 1, -DJmC:DJmC + 1]
Oa1e = oyIN.exp(-(WKvO ** 2 / float(zNig) + LVAh ** 2 / float(DJmC)))
return Oa1e / Oa1e.sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MLdf(VXjJ, WZcn):\n YDR7, bGrB, YSA3, RZju = WZcn.shape\n VXjJ = nxWE.pad(VXjJ, (YSA3 // 2, RZju // 2, YSA3 // 2, RZju // 2), mode='replicate')\n return nxWE.conv2d(VXjJ, WZcn, groups=YDR7)",
"def MLdf(VXjJ, WZcn):\n YDR7, bGrB, YSA3, RZju = WZcn.shape\n VXjJ = vuvg.pad(VXjJ, (YSA3 // 2, RZju ... | [
"0.7596047",
"0.75747573",
"0.7421053",
"0.7213863",
"0.69841796",
"0.69288766",
"0.68288183",
"0.67901623",
"0.6616729",
"0.65997654",
"0.65978247",
"0.6509857",
"0.64542174",
"0.6414186",
"0.64098257",
"0.6342247",
"0.633456",
"0.63209677",
"0.63190424",
"0.6302332",
"0.629... | 0.0 | -1 |
Extracts a sequence zero of more digits from the front of string 's' and converts them to the integer equivalent. The process stops when the string is exhausted or the first nondigit character is encountered. For example, _get_number('123hello') will yield the tuple (123, 'hello'). | def h3mJ(KCHu, DbxN=0):
return h3mJ(KCHu[1:], DbxN * 10 + int(KCHu[0])) if len(KCHu) > 0 and KCHu[0].isdigit() else (KCHu, DbxN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GpXw(KCHu: str) -> int:\n return int(''.join((Ko6S for Ko6S in KCHu if Ko6S.isdigit())))",
"def ghUe(YKHO, KCHu):\n st9m = KCHu.replace(' ', '')\n vIwR = st9m.strip('0123456789')\n Ko6S = int(ZbWC.search('\\\\d+', KCHu).group(0))\n return (Ko6S, vIwR[0])",
"def HE8A(KCHu):\n mSrU = []\n ... | [
"0.79656",
"0.77731067",
"0.7336025",
"0.7077795",
"0.70770496",
"0.70242715",
"0.697917",
"0.69535",
"0.6927313",
"0.6797429",
"0.6777015",
"0.674134",
"0.6670093",
"0.6668299",
"0.66599745",
"0.66069025",
"0.660545",
"0.660321",
"0.65977484",
"0.6565418",
"0.656067",
"0.6... | 0.8196952 | 0 |
Get the number of microseconds since the epoch. | def oeyZ() -> int:
return int(ITS7.time() * 1000000) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fa_w(YKHO) -> MDDt.Int:\n return ITS7.time_ns() // 1000",
"def jTd8() -> int:\n vN57 = qcWV.utcfromtimestamp(0)\n return int((qcWV.utcnow() - vN57).total_seconds() * 1000 * 1000)",
"def fa_w():\n return int(round(ITS7() * 1000 * 1000))",
"def j1sG():\n return int((qcWV.utcnow() - qcWV(1970... | [
"0.8065462",
"0.80594254",
"0.8015524",
"0.7824926",
"0.7689388",
"0.76584184",
"0.7655725",
"0.7626099",
"0.7626099",
"0.7425635",
"0.73602533",
"0.7299971",
"0.72676617",
"0.72590846",
"0.72590846",
"0.72590846",
"0.7251134",
"0.7231212",
"0.7225236",
"0.71986246",
"0.71957... | 0.7581852 | 9 |
Convert the fit object returned by ``self.sample`` to InferenceData. | def rUG4(YKHO, Gjj5):
if Gjj5.__class__.__name__ == 'CmdStanMCMC':
keok = dmlj(posterior=Gjj5, **YKHO.idata_kwargs)
else:
keok = Aiot(posterior=Gjj5, **YKHO.idata_kwargs)
return keok | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sz9h(YKHO):\n return mH6N(**{'posterior': YKHO.posterior_to_xarray(), 'posterior_predictive': YKHO.posterior_predictive_to_xarray(), 'log_likelihood': YKHO.log_likelihood_to_xarray(), 'observed_data': YKHO.observed_data_to_xarray()})",
"def P1BO(YKHO):\n return YKHO._inference_data",
"def aOQR(YKHO, ... | [
"0.72775495",
"0.6109098",
"0.5958358",
"0.5723332",
"0.57021403",
"0.56885105",
"0.5648209",
"0.56021595",
"0.5524948",
"0.54967505",
"0.54374623",
"0.5418607",
"0.5390267",
"0.53721434",
"0.537128",
"0.53696275",
"0.53372616",
"0.5310775",
"0.5306337",
"0.52996284",
"0.5265... | 0.58584905 | 3 |
Check that name is a string with a null byte at the end of it | def aMbw(U9mG, YPqY, mWFP):
if not mWFP:
raise ValueError('Non-null name required')
elif mWFP[-1] != egNR:
mWFP = mWFP + egNR
return U9mG(YPqY, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mkvg(mWFP):\n if mWFP is None:\n return False\n if mWFP == '':\n return True\n r8hN = QAUA.match(mWFP)\n return r8hN is not None and r8hN.group(0) == mWFP and ('//' not in mWFP)",
"def KMR7(mWFP):\n if ZbWC.match('^[a-zA-Z0-9-_ .]{3,20}$', mWFP) != None:\n return mWFP\n ... | [
"0.7145174",
"0.7093242",
"0.69987065",
"0.69936424",
"0.69843525",
"0.6968721",
"0.69464815",
"0.69359344",
"0.6922405",
"0.6902063",
"0.69020367",
"0.6897429",
"0.68717825",
"0.68629885",
"0.68486536",
"0.68410254",
"0.6809361",
"0.67921543",
"0.67620903",
"0.6745121",
"0.6... | 0.0 | -1 |
r""" Return the annihilator of a finite set. | def aKAe(YKHO, o4sw, XeOP=seET.mul, HEZd='right', Ghho=None):
return YKHO.submodule(YKHO.annihilator_basis(o4sw, XeOP, HEZd), already_echelonized=True, category=Ghho) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jdgM(CHNM: Population, dntp: float):\n pass",
"def _E99(YKHO):\n if YKHO.is_endomorphism_set():\n return YKHO.element_class(YKHO, YKHO.codomain().generators())\n else:\n raise TypeError('This homspace does not consist of endomorphisms. Try natural_map() instead.')",
"def Pacd(yvY1):\... | [
"0.6218088",
"0.5610479",
"0.5557255",
"0.547164",
"0.5423086",
"0.5340979",
"0.53313756",
"0.53313756",
"0.53313756",
"0.53313756",
"0.53313756",
"0.5318567",
"0.5301096",
"0.5285665",
"0.52271074",
"0.5215781",
"0.5192011",
"0.51913893",
"0.51887494",
"0.5173873",
"0.517230... | 0.0 | -1 |
r""" Construct the quotient module ``self``/``submodule``. | def gGZ3(YKHO, ag0A, GfdN=True, jh0h=False, Ghho=None):
from sage.modules.with_basis.subquotient import SubmoduleWithBasis, QuotientModuleWithBasis
if not isinstance(ag0A, SubmoduleWithBasis):
ag0A = YKHO.submodule(ag0A, check=GfdN, unitriangular=True, already_echelonized=jh0h)
return QuotientModule... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n\n def hA6l(K0A_, VLzE, di96):\n if di96 == 0:\n return (VLzE, K0A_, di96)\n pAX6 = K0A_ + VLzE * di96\n K0A_ = 0\n return (pAX6, K0A_, di96)\n super().__init__(hA6l)",
"def FIMM(YKHO):\n\n def rAjW(pAX6, K0A_, di96):\n if di96 == 0 or di96 ... | [
"0.6950021",
"0.6937891",
"0.6433218",
"0.62675804",
"0.6097034",
"0.60767317",
"0.6033687",
"0.6032764",
"0.5999357",
"0.5981465",
"0.59240454",
"0.59102845",
"0.5901781",
"0.5832764",
"0.57609075",
"0.57321626",
"0.5722945",
"0.5709399",
"0.5708392",
"0.5706101",
"0.5691241... | 0.6587281 | 2 |
INPUT database filepath for sqlite database containing cleaned message data OUTPUT 1 an array X containing the message column ready for natural language processing and an input to the ml models 2 a dataframe y containing the 36 response columns for each message 3 a list category_names to label the model evaluation late... | def UlWi(NK1P):
eHpk = y2U9('sqlite:///' + NK1P)
jQ3Z = rLdf.read_sql('SELECT * FROM message_cats', eHpk)
EcVT = jQ3Z['message']
LVAh = jQ3Z.drop(['id', 'message', 'original', 'genre'], axis=1)
MGkr = list(LVAh.columns)
return (EcVT, LVAh, MGkr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(NK1P):\n eHpk = y2U9('sqlite:///' + NK1P)\n w2B8 = iHv3.connect(NK1P)\n jQ3Z = rLdf.read_sql('SELECT * FROM categorized_messages', w2B8)\n EcVT = jQ3Z.message\n fuBA = jQ3Z[['related', 'request', 'offer', 'aid_related', 'medical_help', 'medical_products', 'search_and_rescue', 'security', 'm... | [
"0.6812077",
"0.6784056",
"0.6758645",
"0.6686557",
"0.6666866",
"0.6656482",
"0.66383535",
"0.66184974",
"0.6611325",
"0.6560482",
"0.65362084",
"0.6496229",
"0.6465086",
"0.64624685",
"0.64608216",
"0.645741",
"0.6427386",
"0.64107573",
"0.64019966",
"0.63785017",
"0.636187... | 0.6742184 | 3 |
INPUT a string of text OUTPUT a processed and cleaned list of tokens SUMMARY This function prepares a 'message' text for ml models by the following steps convert all to lower case create a list of tokens (word tokenize) remove stopwords from tokens lemmatize the words to common dictionary stems using WordNetLemmatizer ... | def wr3U(l5Ny):
l5Ny = ZbWC.sub('[^a-zA-Z0-9]', ' ', l5Ny.lower())
s2mk = dFss(l5Ny)
V22M = [yzQ0 for yzQ0 in s2mk if yzQ0 not in di0c.words('english')]
LkXt = GFnk()
zKDd = []
for w2fL in V22M:
NM_J = LkXt.lemmatize(w2fL).strip()
zKDd.append(NM_J)
return zKDd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zi4e(l5Ny):\n l5Ny = l5Ny.replace('||||', '')\n l5Ny = l5Ny.replace(',', '')\n l5Ny = l5Ny.replace('@', '')\n l5Ny = l5Ny.replace('.', '')\n l5Ny = l5Ny.replace(\"'\", '')\n l5Ny = l5Ny.replace('\"', '')\n s2mk = [GIN8 for _dZy in N3rN(l5Ny) for GIN8 in dFss(_dZy)]\n JCyR = di0c.words('... | [
"0.7707609",
"0.7353959",
"0.7332571",
"0.72163105",
"0.7174342",
"0.7165439",
"0.70971704",
"0.7090341",
"0.7089727",
"0.70885503",
"0.7081279",
"0.706486",
"0.70628107",
"0.70536536",
"0.7049907",
"0.7045775",
"0.70391804",
"0.70341265",
"0.6969398",
"0.69685256",
"0.696640... | 0.7065224 | 11 |
Returns the valid resource identifier type for this instance. This function needs to be overriden in subclasses to return a valid resource identifier type (subscriptions, topics, or snapshots). | def oag6(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n ... | [
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.76271135",
"0.755958",
"0.755958",
"0.755958",
"0.755958",
"0.75420356",
"0.75239354",
"0.7... | 0.0 | -1 |
Formats a topic name as a fully qualified topic path. | def k5bv(O7Jy, qrBT=''):
return PQ1k(O7Jy, qrBT).GetFullPath() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_Xt(bNKA: str, rlUa: str) -> str:\n return 'projects/{project}/topics/{topic}'.format(project=bNKA, topic=rlUa)",
"def W_oi(YKHO, zy__):\n return '/'.join(zy__.split('/')[4:])",
"def lZ4D(rlUa, EBg6):\n ZtYG = len('%s/%s/' % (EBg6, lCmU))\n return rlUa[ZtYG:]",
"def _IYl(YKHO, rlUa, R28W=Fal... | [
"0.7462733",
"0.74330306",
"0.72783506",
"0.7246017",
"0.7121955",
"0.6719478",
"0.65236044",
"0.64847034",
"0.6463618",
"0.6420566",
"0.6360415",
"0.63167995",
"0.62120044",
"0.6142279",
"0.61113495",
"0.6043677",
"0.6042898",
"0.6028569",
"0.6002651",
"0.598927",
"0.5961913... | 0.8182544 | 0 |
Formats a subscription name as a fully qualified subscription path. | def wBT1(Zo5W, B5PH=''):
return VnCg(Zo5W, B5PH).GetFullPath() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phgq(YKHO, qeX1, JuHa):\n return '%s-%s' % (qeX1, JuHa[:8])",
"def Zo5W(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'subscription_name')",
"def Zo5W(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'subscription_name')",
"def ZaK1(y0cW: str) -> str:\n QIWr = ZOLQ.ensure_ta... | [
"0.6230239",
"0.61843085",
"0.6141044",
"0.5967307",
"0.59542763",
"0.59248805",
"0.5877727",
"0.58622664",
"0.57287276",
"0.570601",
"0.5686901",
"0.56687146",
"0.5630791",
"0.56231314",
"0.55735755",
"0.55646795",
"0.55349565",
"0.55118996",
"0.551164",
"0.55043525",
"0.545... | 0.8046379 | 0 |
Formats a snapshot name as a fully qualified snapshot path. | def wXm5(IzcX, B5PH=''):
return Pk31(IzcX, B5PH).GetFullPath() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IzcX(eJTR, q3m0, G91o=None):\n if G91o is None:\n G91o = f0Pn()\n return 'ts-{}_id-{}_snapshot-of-{}.json'.format(G91o, q3m0, eJTR.lower())",
"def IzcX(YKHO) -> str:\n return qe4Y.get(YKHO, 'snapshot_name')",
"def tgKa():\n return '^backup\\\\.([a-z0-9\\\\-]+?)\\\\.snap\\\\.(.+)$'",
"d... | [
"0.7101691",
"0.7012903",
"0.68447995",
"0.6802949",
"0.6765462",
"0.6452565",
"0.6351945",
"0.6317284",
"0.62223524",
"0.61734176",
"0.6106038",
"0.605498",
"0.60549265",
"0.6046666",
"0.6023752",
"0.5963984",
"0.5945082",
"0.5915282",
"0.58850616",
"0.5839129",
"0.58191633"... | 0.78527063 | 0 |
Assert if tags, keys for each tag, and values for each tag/key combination for the two Pdata objects are all equal. i.e., the 'data' field of the two Pdata objects are completely equal. | def jSea(Usyx, cWxP):
MvuW(Usyx, cWxP)
for TZ9E in Usyx.list_tags():
ubXx(Usyx, cWxP, TZ9E)
for H5ew in Usyx.list_keys_for_tag(TZ9E):
UFbO(Usyx, cWxP, TZ9E, H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MvuW(Usyx, cWxP):\n BZgl = Usyx.data\n X9Rj = cWxP.data\n Ydh3 = sorted(BZgl.keys())\n bmoH = sorted(X9Rj.keys())\n GD93.assert_list_equal(Ydh3, bmoH, 'the two Pdata object do not\\n have the same tags')",
"def ubXx(Usyx, cWxP, TZ9E):\n BZgl = Usyx.data\n X9Rj = cWxP.data\n try... | [
"0.77326304",
"0.7718501",
"0.7702027",
"0.69603395",
"0.68406314",
"0.6823609",
"0.67589515",
"0.6754878",
"0.67491484",
"0.6674374",
"0.66529024",
"0.663595",
"0.65868896",
"0.6555596",
"0.65150124",
"0.6513097",
"0.650735",
"0.6492722",
"0.64580613",
"0.6422154",
"0.636541... | 0.8539767 | 0 |
Returns True when the CSP assignment is complete, i.e. all of the variables in the CSP have values assigned. | def ZZQq(lhin):
for SRYB in lhin.variables:
if SRYB.is_assigned() == False:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZQq(lhin):\n \"\"\" Get the variables \"\"\"\n kp8m = lhin.variables._variable_list\n Fd4y = True\n ' Loop through variables, incomplete as soon as one is not assigned '\n for Ty9i in kp8m:\n k2ox = Ty9i\n if not k2ox.is_assigned():\n Fd4y = False\n return Fd... | [
"0.8278523",
"0.8256027",
"0.81858414",
"0.7987725",
"0.769859",
"0.7225931",
"0.69260573",
"0.6649058",
"0.6545803",
"0.64460516",
"0.63368696",
"0.63158095",
"0.62271905",
"0.61990136",
"0.6055026",
"0.60033643",
"0.5944025",
"0.589699",
"0.58954847",
"0.5886594",
"0.584556... | 0.7873478 | 4 |
Returns True when the variable assignment to value is consistent, i.e. it does not violate any of the constraints associated with the given variable for the variables that have values assigned. For example, if the current variable is X and its neighbors are Y and Z (there are constraints (X,Y) and (X,Z) in csp.constrai... | def FQd5(lhin, Es0b, BWXx):
for PtXs in lhin.constraints[Es0b]:
nOXL = PtXs.var2
if nOXL.is_assigned() == False:
continue
elif not PtXs.is_satisfied(BWXx, nOXL.value):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FQd5(lhin, Es0b, BWXx):\n UiIt = Es0b\n for fOoc in lhin.variables:\n for GfdN in lhin.constraints[UiIt, fOoc]:\n if fOoc.is_assigned() == True and GfdN.is_satisfied(BWXx, fOoc.value) == False:\n return False\n return True\n pass",
"def FQd5(YKHO, zrIJ, VCKW, VmPb... | [
"0.8063694",
"0.7439757",
"0.72893065",
"0.725135",
"0.700332",
"0.6692135",
"0.6384529",
"0.63500094",
"0.6331128",
"0.628751",
"0.62700576",
"0.6242209",
"0.6176695",
"0.6162874",
"0.6069453",
"0.6060628",
"0.59713984",
"0.5941027",
"0.58979297",
"0.58773774",
"0.58412355",... | 0.8044597 | 1 |
Get the command line input/output arguments passed in to `raygen`. | def rmUQ():
wvEv = j1Jz.ArgumentParser(description='A simple static site generator, for those who want to fully the generation of blog.')
wvEv.add_argument('--server', help='run the server.', action='store_true')
wvEv.add_argument('-p', '--port', type=int, default=8080, help='Port number to serve files on.'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bEjj():\n wvEv = j1Jz.ArgumentParser(prog='bronco_nromalization', description=TI0e.dedent(_Ub4), formatter_class=k8D7)\n jeGQ = wvEv.add_argument_group('required arguments')\n jeGQ.add_argument('-o', '--outdir', required=True, metavar='<path>', type=ppdR, help='the analysis output directory.')\n je... | [
"0.7478903",
"0.72566074",
"0.72134495",
"0.72095793",
"0.7208462",
"0.7176193",
"0.7148693",
"0.7146138",
"0.71187145",
"0.7115042",
"0.7100802",
"0.71004975",
"0.70904946",
"0.7079545",
"0.70686036",
"0.7067215",
"0.70474505",
"0.7029157",
"0.7026103",
"0.7019917",
"0.70092... | 0.0 | -1 |
Returns the integer in the range `(m, m + n)` (inclusive), which has a pair of factors whose ratio is nearest r.` In the case of several equally fit possibilities, the lowest is returned by default. | def xWKx(r8hN, exwG, Mkmy, stl6=False):
return XJV0(range(r8hN, r8hN + exwG + 1), Mkmy, reverse_on_key=stl6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d1WO(ywwl, r8hN):\n Nq1b = 0\n for Z9rn in range(1, ywwl):\n if ywwl % Z9rn == 0 and abs(Z9rn - r8hN) < abs(Nq1b - r8hN):\n Nq1b = Z9rn\n return Nq1b",
"def eGi5(exwG):\n Ylbp = exwG\n for YRbF in range(1, int(exwG ** 0.5) + 1):\n if exwG % YRbF == 0:\n Ylbp... | [
"0.7048859",
"0.6573479",
"0.65471494",
"0.6459544",
"0.6440384",
"0.6380785",
"0.6376033",
"0.6346581",
"0.63114727",
"0.6299634",
"0.62443316",
"0.6194721",
"0.6190907",
"0.6188404",
"0.6120016",
"0.6106898",
"0.6073886",
"0.60585195",
"0.60456526",
"0.6036831",
"0.6030538"... | 0.5525679 | 66 |
Read monomers/polymers from a dataframe. | def DPPr(YKHO, jQ3Z, BzlY=None, WfCS=None):
for UXqs, WmM4, bGrB in WfCS:
if UXqs not in jQ3Z.columns:
if WmM4 is None:
q01u.warning(YKHO, 'Warning', "Column '{}' missing in input. ".format(UXqs) + 'No data imported.')
return
else:
jQ3Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vxs7():\n pass",
"def Vl0T(Kiac):\n pass",
"def VaZB(jQ3Z, GqM2, yrqq):\n return vGKx(jQ3Z, GqM2, yrqq)",
"def Gxow(YKHO):\n if YKHO.path is None:\n return\n nUeQ = YKHO._pkl()\n YKHO.register = rLdf.read_pickle(nUeQ)",
"def Jy9R(Ivom):\n import pandas as rLdf\n if hasatt... | [
"0.5709244",
"0.56188506",
"0.5571589",
"0.5550618",
"0.54617554",
"0.5435354",
"0.54161793",
"0.5353106",
"0.5269307",
"0.5269307",
"0.5269307",
"0.52663696",
"0.52663696",
"0.52663696",
"0.52663696",
"0.52663696",
"0.5205716",
"0.5193397",
"0.50716954",
"0.50452363",
"0.504... | 0.0 | -1 |
Update the spectrum and the single mass spinbox after the selection has changed. | def fMy3(YKHO, MMpt=None, T7qW=None, so6d=None, DiiX=None):
if YKHO._exp_mass_data is None:
return
if MMpt is not None:
YKHO._selected_peak = MMpt
aQh2 = True
AoG9 = True
if so6d:
if so6d == YKHO.twResults1:
aQh2 = False
else:
AoG9 = False
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMy3(YKHO):\n YKHO.clear_boxes()\n YKHO.clear_higher_level_pars()\n if YKHO.UPPER_LEVEL_SHOW != 'specimens':\n YKHO.mean_type_box.SetValue('None')\n gfry = YKHO.coordinates_box.GetValue()\n if gfry == 'tilt-corrected' and len(YKHO.Data[YKHO.s]['zijdblock_tilt']) == 0:\n YKHO.coordi... | [
"0.6612321",
"0.638656",
"0.63278866",
"0.6243929",
"0.61517775",
"0.59825283",
"0.59628195",
"0.59138435",
"0.5878155",
"0.5853525",
"0.5841045",
"0.5839276",
"0.576415",
"0.57605934",
"0.5749661",
"0.57411367",
"0.5732874",
"0.5729275",
"0.5725186",
"0.5724283",
"0.57223886... | 0.6815737 | 0 |
Check if the attribute is a str | def Imuh(YKHO):
YKHO.assertTrue(type(YKHO.new.city_id) is str)
YKHO.assertTrue(type(YKHO.new.user_id) is str)
YKHO.assertTrue(type(YKHO.new.name) is str)
YKHO.assertTrue(type(YKHO.new.description) is str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfdN(YKHO, BWXx):\n return isinstance(BWXx, str)",
"def GfdN(YKHO, BWXx):\n return isinstance(BWXx, str)",
"def J1TN(xHuz):\n return type(xHuz) is str",
"def sd4x(YKHO, BWXx):\n if not isinstance(BWXx, str):\n raise TypeError('%s value must be str' % str(BWXx))",
"def A8pU(KAOR, xC3W... | [
"0.78378814",
"0.78378814",
"0.76294065",
"0.7472657",
"0.74695885",
"0.7423282",
"0.7413404",
"0.73989147",
"0.7355941",
"0.7345081",
"0.7321038",
"0.73168904",
"0.73168904",
"0.73085797",
"0.73070794",
"0.72967666",
"0.7278728",
"0.72769606",
"0.72664696",
"0.7227004",
"0.7... | 0.6800732 | 62 |
Test if the attribute is a list. | def pZdV(YKHO):
YKHO.assertEqual(type(YKHO.new.amenity_ids), list) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojAf(YKHO, BWXx):\n return isinstance(BWXx, list)",
"def Lm1b(YKHO) -> bool:\n return YKHO._wrapped_type == 'List'",
"def Lm1b(U6D_):\n return isinstance(U6D_, list)",
"def Lm1b(vGaq):\n return type(vGaq) is SnBA.ListType",
"def Lm1b(ICn2: Type) -> bool:\n bt6P = getattr(ICn2, '__origin_... | [
"0.79293025",
"0.7764126",
"0.7688322",
"0.7632968",
"0.76282954",
"0.7622037",
"0.75965244",
"0.7569498",
"0.7548784",
"0.7548784",
"0.7505667",
"0.74959546",
"0.74842924",
"0.74703276",
"0.74400616",
"0.7268802",
"0.7243847",
"0.71413505",
"0.7121096",
"0.71125764",
"0.7106... | 0.6331205 | 55 |
Get the webhook object for the first webhook that matches the specified name in a given channel, create the webhook if it doesn't exist. | def RvJ1(YKHO, LOJ7: str, mWFP: str) -> ZOrr.Webhook:
with EgZb.lock:
yWCP = EgZb.cache['d_webhooks'].get(LOJ7)
if yWCP:
return yWCP
P9zf = YKHO.send('GET', f'/channels/{LOJ7}/webhooks')
yWCP = next((xIAp(yWCP, ZOrr.Webhook) for yWCP in P9zf if yWCP['name'] == mWFP), None)
if not yWC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def webhook_get_own_channel(YKHO, YwkQ):\n P9zf = await YKHO.webhook_get_all_channel(YwkQ)\n K6wN = YKHO.application.id\n for yWCP in P9zf:\n if yWCP.application_id == K6wN:\n return yWCP\n return None",
"async def get_webhook(YwkQ):\n try:\n P9zf = await YwkQ.webhoo... | [
"0.7355791",
"0.7095269",
"0.7010406",
"0.6402681",
"0.6099779",
"0.59707016",
"0.5917948",
"0.58830696",
"0.58667445",
"0.58381325",
"0.58311987",
"0.56098163",
"0.5570893",
"0.5561246",
"0.5540118",
"0.5510005",
"0.54994226",
"0.5467701",
"0.53555083",
"0.53516865",
"0.5317... | 0.80517566 | 0 |
Returns self or the first acquisition parent that has a property with the id. Returns None if no parent had the id. | def SEAs(YKHO, id):
return next((NZQz for NZQz in VxWG(YKHO) if isinstance(NZQz, TmRk) and NZQz.hasProperty(id)), None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DtVU(YKHO) -> h8nf[id]:\n if YKHO.has_parent():\n return YKHO.parent\n return None",
"def DzYx(YKHO, id):\n NBjn = YKHO\n while NBjn.id != id:\n NBjn = NBjn.parent\n if NBjn is None:\n return None\n elif NBjn.id == id:\n return NBjn\n return No... | [
"0.74026424",
"0.67552024",
"0.6703552",
"0.663661",
"0.66286415",
"0.656923",
"0.6558104",
"0.6534477",
"0.6498721",
"0.6491169",
"0.6450264",
"0.63998514",
"0.6398413",
"0.6397214",
"0.63843626",
"0.63777316",
"0.6346834",
"0.63400674",
"0.63358504",
"0.6319948",
"0.6278928... | 0.84495133 | 0 |
Calculate time difference between start_time and end_time in seconds | def NY5c(SWox, C7pn):
ME9B = SWox - C7pn
return int(ME9B.total_seconds()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OTVr(Emd4, SWox, C7pn):\n yk4i = C7pn - SWox\n return float(yk4i.seconds) + float(yk4i.microseconds) / 1000000.0",
"def ONFB(YKHO, SWox, C7pn):\n WbTE = C7pn - SWox\n return int(WbTE.total_seconds())",
"def mVK8(SWox, C7pn=None):\n if C7pn is None:\n C7pn = qcWV.datetime.now()\n RA... | [
"0.87200844",
"0.8317341",
"0.8241558",
"0.8224825",
"0.8098299",
"0.8050897",
"0.79975164",
"0.78315324",
"0.78315324",
"0.7831081",
"0.7794604",
"0.7775622",
"0.77468365",
"0.77263355",
"0.77096665",
"0.7693515",
"0.7674666",
"0.7601276",
"0.756187",
"0.75232345",
"0.750451... | 0.85419756 | 1 |
Pad TEXT to a max length of n. | def FAwf(l5Ny, exwG):
return (l5Ny or '')[:exwG].ljust(exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hqU2(l5Ny, wzH_):\n LkVj = ZylS.repeat(ZylS.constant('[PAD]'), repeats=wzH_ - ZylS.size(l5Ny))\n return ZylS.concat([l5Ny, LkVj], axis=0)",
"def hVLt(l5Ny):\n r8hN = len(l5Ny)\n l5Ny += 128 .to_bytes(1, 'big') + 0 .to_bytes((tuwW - r8hN - 1) % tuwW, 'big')\n return l5Ny",
"def jaiK(aevO, KLk... | [
"0.74445564",
"0.7317149",
"0.7295844",
"0.71107805",
"0.7041924",
"0.6971169",
"0.69296205",
"0.69127643",
"0.6906377",
"0.6906377",
"0.68413985",
"0.680656",
"0.6719445",
"0.67040455",
"0.66933906",
"0.6684544",
"0.6683272",
"0.66784596",
"0.66760564",
"0.66696143",
"0.6658... | 0.86275226 | 0 |
Return list of items in A which are not in B. | def Cgnw(k0lF, tjUW):
Nq1b = []
for ZfUD in k0lF:
if ZfUD not in tjUW:
Nq1b.append(ZfUD)
return Nq1b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def by6d(jzdc, Fg_i):\n return [geyT for geyT in jzdc if geyT not in Fg_i]",
"def yk4i(jzdc, Fg_i):\n return [D9cM for D9cM in jzdc if D9cM not in Fg_i]",
"def by6d(YKHO, Elif):\n return [ZfUD for ZfUD in YKHO._set if ZfUD not in Elif]",
"def MKew(Kt9y, I_KI):\n rA0f = set()\n for wEf2 in I_KI... | [
"0.78172976",
"0.7541336",
"0.7484022",
"0.73753464",
"0.7363525",
"0.7127461",
"0.70728445",
"0.7027105",
"0.6948468",
"0.6933216",
"0.6906391",
"0.6843372",
"0.68352383",
"0.68250483",
"0.68030626",
"0.67946655",
"0.6792789",
"0.67864835",
"0.67187643",
"0.6684384",
"0.6673... | 0.8098292 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 43 |
Create a new instance of SymSpell. Specifying an accurate initial_capacity is not essential, but it can help speed up processing by aleviating the need for data restructuring as the size grows. | def FIMM(YKHO, mNsV=16, gCjt=2, bRy9=7, bLRw=1, apqU=5):
if mNsV < 0:
raise ValueError('initial_capacity cannot be negative')
if gCjt < 0:
raise ValueError('max_dictionary_edit_distance cannot be negative')
if bRy9 < 1 or bRy9 <= gCjt:
raise ValueError('prefix_length cannot be less t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IgZK(YKHO):\n Tnh1 = list(YKHO.inventory.keys())\n jpUh = None\n for GIN8 in XoHV.initial_words:\n zmME = list()\n for pG0V in GIN8:\n zmME.append(YKHO.inventory[pG0V])\n YKHO.inventory[pG0V].freq += 1\n try:\n Tnh1.remove(pG0V)\n ... | [
"0.59900874",
"0.5802513",
"0.53609914",
"0.5291037",
"0.5278701",
"0.52703166",
"0.5187924",
"0.51776075",
"0.51556146",
"0.5105783",
"0.50916123",
"0.5085702",
"0.5076678",
"0.5066793",
"0.50613517",
"0.5053448",
"0.50268877",
"0.4992436",
"0.49616265",
"0.49540567",
"0.494... | 0.6049152 | 0 |