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 |
|---|---|---|---|---|---|---|
Whether this schema has no labels of any kind. | def FBfn(YKHO):
return not bool(YKHO.schema) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ctmt(YKHO):\n GfdN = True\n if 'labels' not in YKHO.mapper:\n GfdN = False\n return GfdN",
"def Wy09(YKHO):\n if YKHO.internallabels != None:\n return YKHO.internallabels.isempty()\n elif YKHO.layer != None:\n return YKHO.layer.allowNoInternalLabel()\n return False",
... | [
"0.72563845",
"0.72375864",
"0.72189367",
"0.72189367",
"0.71678513",
"0.7137653",
"0.7046597",
"0.70134956",
"0.6766707",
"0.6729228",
"0.66815865",
"0.66678643",
"0.66526204",
"0.65826744",
"0.6545621",
"0.65203995",
"0.6513872",
"0.6497965",
"0.6497965",
"0.64752144",
"0.6... | 0.66217494 | 14 |
clear the table and create one book | def WUJY(YKHO):
wUl4()
CO72 = mFaM('title one')['book']
with udfG.get('/book/list/') as geh0:
YKHO.assertEqual(qQXR.loads(geh0.get_data(as_text=True)), {'status': 'success', 'books': [CO72]})
' \n clear the table and create several books\n '
wUl4()
CO72 = mFaM('title on... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oFa1():\n try:\n print(\"Creating 'books' table..\")\n NCls.execute('CREATE TABLE books ( id SERIAL PRIMARY KEY, isbn VARCHAR NOT NULL, title VARCHAR NOT NULL, author VARCHAR NOT NULL, year INTEGER NOT NULL )')\n prin... | [
"0.6849245",
"0.6814122",
"0.6550023",
"0.653003",
"0.64636695",
"0.6162651",
"0.61342436",
"0.60789204",
"0.60537714",
"0.6024269",
"0.59604627",
"0.5954154",
"0.5948459",
"0.58591366",
"0.5827146",
"0.5814476",
"0.5777074",
"0.5754299",
"0.5731961",
"0.57193613",
"0.5713634... | 0.5465368 | 50 |
Return the circle associated to the arc. | def FV9o(YKHO):
return FV9o(YKHO.N, YKHO.o, YKHO.r) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def txRV(Io6r):\n pass",
"def Upzy(FV9o):\n pass",
"def xEuq(r1VO):\n r1VO = float(r1VO)\n return 2 * epAf.pi * r1VO",
"def FV9o(JmFt, KQQh, Fwsp, r1VO, qfpW='#AAAAAAFF') -> None:\n UV8M, vHO5 = dNpw(KQQh, Fwsp)\n mawX = [(UV8M - r1VO, vHO5 - r1VO), (UV8M + r1VO, vHO5 + r1VO)]\n JmFt.arc... | [
"0.7488493",
"0.72593105",
"0.69445103",
"0.6827994",
"0.67802036",
"0.6582089",
"0.6546231",
"0.6503568",
"0.6482981",
"0.64788955",
"0.6450415",
"0.64423907",
"0.6429825",
"0.639928",
"0.639928",
"0.63959175",
"0.63804114",
"0.6367668",
"0.6348792",
"0.6347201",
"0.63452417... | 0.73955214 | 1 |
removes the obfuscated suffix of a package structure, if there are at least 2 element remaining it returns the structure, otherwise it returns _OBFUSCATED_ | def rFm6(YKHO, sKYw):
eHxA = sKYw.split('/')
y0cW = list(Hs6x.dropwhile(lambda yOAJ: len(yOAJ) <= YKHO.MAX_OBFUSCATION_CHUNK_SIZE, reversed(eHxA)))
Ylbp = '/'.join(reversed(y0cW)) if len(y0cW) > 1 or len(y0cW) == len(eHxA) else '_OBFUSCATED_'
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q4cn(mWFP):\n mWFP = CGao(mWFP)\n if mWFP.find('.') != -1:\n mWFP = mWFP.split('.')[0]\n return mWFP",
"def jUlM(mWFP):\n if mWFP.find('.tar') != 0:\n mWFP = mWFP.replace('.tar', '')\n if mWFP.find('.gz') != 0:\n mWFP = mWFP.replace('.gz', '')\n return mWFP",
"def cXt... | [
"0.6510802",
"0.6058965",
"0.5984447",
"0.59638286",
"0.57809335",
"0.5772717",
"0.5751242",
"0.57449114",
"0.56860876",
"0.5669037",
"0.5637926",
"0.56001174",
"0.557038",
"0.55449843",
"0.5537648",
"0.5515052",
"0.54990643",
"0.5449868",
"0.5431732",
"0.5421043",
"0.5420953... | 0.6809245 | 0 |
create a plot of randomly generated images (reversed grayscale) | def uW1D(YKHO):
DbyF = (10, 10)
wytA = (10, 10)
cDK5 = 100
(EcVT, bGrB), bGrB = YKHO.generate_generator_prediction_samples(cDK5)
YKHO.grid_plot(EcVT, dimensions=DbyF, figsize=wytA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o1YD(ppBc, hlel):\n UXDO = oyIN.random.randint(0, ppBc.shape[0], size=4)\n LZpg = QrM1.figure(figsize=(8, 8))\n QrM1.subplot(2, 2, 1)\n for P2GO, clzY in enumerate(UXDO):\n QrM1.subplot(2, 2, P2GO + 1)\n VXjJ = ppBc[clzY].reshape((20, 20)).T\n QrM1.imshow(VXjJ, aspect='auto', i... | [
"0.67856956",
"0.6722465",
"0.66302305",
"0.6363954",
"0.63108516",
"0.62768316",
"0.6250604",
"0.6212091",
"0.613716",
"0.6119215",
"0.6112668",
"0.60965955",
"0.6094223",
"0.6064633",
"0.6060373",
"0.60599",
"0.60547584",
"0.60533047",
"0.6023476",
"0.6008927",
"0.5996602",... | 0.7080448 | 0 |
Returns a list of stations from the dataset | def Oj45():
IeOM = cuiw.query(Ny6I.station).distinct().all()
E1r2 = list(oyIN.ravel(IeOM))
return pz3A(E1r2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oj45():\n return IeOM",
"def Oj45():\n cuiw = DMju(eHpk)\n Oj45 = cuiw.query(njvh.name).all()\n joYV = list(oyIN.ravel(Oj45))\n return pz3A(joYV)",
"def Oj45(YKHO):\n Oj45 = []\n eHNT = YKHO._fetch(PwMK.STATION_URL)\n nPrm = qQXR.load(eHNT)\n if 'stationBeanList' not in nPrm or l... | [
"0.85446864",
"0.78387636",
"0.774722",
"0.7649436",
"0.7583171",
"0.75344354",
"0.7420569",
"0.7404994",
"0.7350493",
"0.73467046",
"0.7344987",
"0.73333746",
"0.7319325",
"0.72977495",
"0.72885984",
"0.7269064",
"0.72558457",
"0.7207911",
"0.71813667",
"0.7180665",
"0.71722... | 0.77542865 | 2 |
Gets a single rule. | def NMoC(YKHO, QePW):
eD8c = YKHO.get_object()
return nyyK(eD8c.summary()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def odII(YKHO):\n return YKHO.__rule_",
"def tOYM(YKHO, *qIxc):\n return _VfD.Model_getRule(YKHO, *qIxc)",
"def odII(YKHO, bKqw):\n assert bKqw in YKHO.rules.keys(), 'Rule name not in current set of rules'\n return YKHO.rules[bKqw]",
"def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if... | [
"0.8278721",
"0.8077203",
"0.803587",
"0.785479",
"0.785479",
"0.785479",
"0.78335196",
"0.7691647",
"0.74970007",
"0.7445792",
"0.73671985",
"0.73671985",
"0.73671985",
"0.73671985",
"0.73671985",
"0.73671985",
"0.73671985",
"0.7235633",
"0.7235633",
"0.7235633",
"0.7174903"... | 0.58431536 | 59 |
r""" Use this API to fetch filtered set of appfwlearningsettings resources. | def wgBn(Emd4, x0hE, UU6M):
try:
YEnM = HcaF()
PPeq = xAU6()
PPeq.filter = UU6M
geh0 = YEnM.getfiltered(x0hE, PPeq)
return geh0
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbko(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'all_settings')",
"def asJJ(YKHO):\n return Vt7D(YKHO.client.headers, YKHO.read_hosts, 'GET', '/1/indexes/%s/settings' % YKHO.url_index_name, YKHO.client.timeout)",
"def IWMt(YKHO):\n VLs3 = YKHO.base_url + '/cloud... | [
"0.5380571",
"0.5316898",
"0.5177114",
"0.5085346",
"0.50266653",
"0.5018635",
"0.49892712",
"0.49692947",
"0.4965442",
"0.49283218",
"0.49115553",
"0.4910119",
"0.4886868",
"0.48745605",
"0.48563504",
"0.48504964",
"0.48413262",
"0.48341447",
"0.48334667",
"0.4811156",
"0.47... | 0.6370895 | 0 |
Deletes files and directories that are used when a test is run Sets the module level variables in the config module back to None, so each test is executed from a clean state | def tBIc(YKHO):
GPtr.config._conf_parser = None
GPtr.config._user_config_file = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iRkn():\n Hy7s.chdir(Hy7s.path.dirname(xAKo))\n RDuA.rmtree(YCDA.full_path())",
"def tBIc(YKHO):\n z3xZ.delete_test_config()",
"def tBIc(YKHO) -> None:\n Hy7s.remove(YZyJ.TEST_CONFIG)",
"def VrH6():\n RDuA.rmtree(i26C)",
"def tBIc(YKHO):\n hHwD = Hy7s.path.split(Hy7s.path.realpath(xAK... | [
"0.7995422",
"0.7551438",
"0.75250787",
"0.7506744",
"0.7476751",
"0.7398432",
"0.7357032",
"0.73218614",
"0.72806233",
"0.7269948",
"0.72201794",
"0.72061425",
"0.7181644",
"0.71710527",
"0.71697044",
"0.71697044",
"0.71634924",
"0.71634924",
"0.7162906",
"0.7161617",
"0.715... | 0.7597013 | 1 |
Stores the default arguments for the given set of applied_nnops. For usage, please see examples at top of the file. | def wpnM(rrBf=None, edBk=None, IPme=[], **B2fa):
global _NAME_SCOPE, _NNOP_ID
if X7_c(rrBf):
if rrBf not in NPHn:
NPHn = str(rrBf) if len(NPHn) == 0 else NPHn + '/' + str(rrBf)
if ye72(edBk):
AcAA[NPHn] = int(edBk)
elif isinstance(edBk, list) and ye72(edBk[0]):
AcAA[N... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xIFG(yhyn):\n qk7C(yhyn)\n kUfg(yhyn)",
"def z4lT(YKHO, Q6kx, LWCc):\n if Q6kx.wrap.fortran == False and Q6kx.wrap.c == False:\n return\n if Q6kx.options.F_default_args != 'generic':\n return\n DwQQ = []\n G_XM = Q6kx.default_arg_suffix\n oloF = 0\n XWaz = 0\n for YRb... | [
"0.61806464",
"0.5891875",
"0.58795387",
"0.5815226",
"0.56980276",
"0.563041",
"0.56184256",
"0.55964077",
"0.55616367",
"0.553574",
"0.5526593",
"0.551433",
"0.551433",
"0.54933065",
"0.5460341",
"0.544785",
"0.54163915",
"0.5414838",
"0.540881",
"0.5400877",
"0.53910416",
... | 0.0 | -1 |
Return True if shape1 == shape2 | def l6KQ(uze5, IQuB):
if len(uze5) != len(IQuB):
return False
for j93S, Nqp_ in zip(uze5, IQuB):
if j93S != Nqp_:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XF7S(eSw6, _baA):\n return eSw6.shape == _baA.shape",
"def xa14(YKHO, Elif):\n Aofo = False\n if isinstance(Elif, PhJ3) and YKHO.area == Elif.area:\n return True\n else:\n return False",
"def xa14(YKHO, Elif):\n if YKHO.__class__ != Elif.__class__:\n return False\n re... | [
"0.75166106",
"0.72128135",
"0.7141856",
"0.714108",
"0.7052285",
"0.7025076",
"0.701751",
"0.7016404",
"0.69673544",
"0.68581736",
"0.68307865",
"0.6788698",
"0.6775903",
"0.67580014",
"0.6696667",
"0.66570157",
"0.66501576",
"0.6634908",
"0.66217494",
"0.6597373",
"0.659319... | 0.85870194 | 0 |
Get all variables related to this Op | def kc1W(YKHO):
J77J = [mWFP for bGrB, (mWFP, a1PO) in YKHO._variable_info.iteritems() if a1PO == 'variable']
tgED = [Ty9i for Ty9i in nMvt.get_all_variables() if Ty9i.name in J77J]
cRc2 = [YKHO.get_variable(mWFP) for mWFP, (U34r, a1PO) in YKHO._variable_info.iteritems() if a1PO == 'tensor']
cRc2 = nMvt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kc1W(YKHO):\n return [YRbF.name for YRbF in YKHO.inputs + YKHO.outputs]",
"def kc1W(YKHO, *qIxc, **B2fa):\n return YKHO._optimizer.variables(*qIxc, **B2fa)",
"def lSnF(YKHO):\n raise NotImplementedError()",
"def jbKh(YKHO):\n return YKHO.variables",
"def jbKh(YKHO):\n return YKHO.variabl... | [
"0.7939259",
"0.7827795",
"0.7780544",
"0.7726934",
"0.77243793",
"0.7671766",
"0.75497943",
"0.7548899",
"0.7546986",
"0.7430166",
"0.74225795",
"0.74143535",
"0.7413383",
"0.7385674",
"0.7369713",
"0.7351404",
"0.7351404",
"0.7351404",
"0.73302597",
"0.7313701",
"0.72909546... | 0.7376338 | 14 |
return all TensorVariables which have the PARAMETER role | def SGPK(YKHO):
return [YRbF for YRbF in YKHO.variables if c0uS(YRbF, XDS4)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bjkb(YKHO):\n return [Ty9i for XP5J in YKHO.parameters for Ty9i in XP5J.trainable_variables]",
"def EKum(rrBf=''):\n return [WKvO for WKvO in ZylS.trainable_variables() if rrBf in WKvO.name]",
"def Zjnb(YKHO):\n return [YRbF[0] for YRbF in YKHO.parameters]",
"def r51G(YKHO):\n NArs = ZylS.get... | [
"0.7160044",
"0.7081361",
"0.6934779",
"0.6708122",
"0.6680285",
"0.6650661",
"0.66222584",
"0.6602444",
"0.6586596",
"0.65748703",
"0.6477245",
"0.64408255",
"0.6408994",
"0.6408994",
"0.63914573",
"0.63503975",
"0.6302091",
"0.6300213",
"0.6295474",
"0.62830323",
"0.6262211... | 0.7855038 | 0 |
Return backend specific random dataset. | def dD7q(YKHO, zi3C: Tuple):
return WzzB(zi3C, YKHO.fn_to_type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kkFl(YKHO):\n return None",
"def dD7q(GPtr, f9Ln):\n bGrB, D0Gl, pBlK = TgPF(GPtr, f9Ln)\n if GPtr.dataset == 'mnist':\n ROpF = (28, 28, 1)\n TFPw = 256\n elif GPtr.dataset == 'binarized_mnist':\n ROpF = (28, 28, 1)\n TFPw = 2\n elif GPtr.dataset == 'cifar10':\n ... | [
"0.6275911",
"0.62073207",
"0.6200004",
"0.6185032",
"0.6118045",
"0.59886354",
"0.5979937",
"0.58964324",
"0.58829856",
"0.58817804",
"0.58710706",
"0.5865128",
"0.58478475",
"0.58477545",
"0.58337784",
"0.58119065",
"0.57484967",
"0.5736459",
"0.5734616",
"0.57243854",
"0.5... | 0.0 | -1 |
Dot product of self by a vector V in sparsedense to dense format V dense vector of shape (self.m,) | def BJ1H(YKHO, cAlv):
assert cAlv.shape == (YKHO.m,)
return oyIN.bincount(YKHO.rows, weights=YKHO.vals * cAlv[YKHO.cols], minlength=YKHO.m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJ1H(YKHO, Ty9i):\n if len(YKHO) != len(Ty9i):\n raise IndexError('Vectors to be dotted must be the same size.')\n return sum([WKvO[0] * WKvO[1] for WKvO in zip(YKHO, Ty9i)])",
"def X6_J(YKHO, Ty9i):\n return YKHO.x * Ty9i.x + YKHO.y * Ty9i.y + YKHO.z * Ty9i.z",
"def BJ1H(YKHO, he6J):\n ... | [
"0.73530287",
"0.73219293",
"0.7280644",
"0.7279359",
"0.7217133",
"0.71385455",
"0.7057486",
"0.7035553",
"0.69569504",
"0.6844897",
"0.6813205",
"0.67954814",
"0.6664798",
"0.6650015",
"0.6608764",
"0.65791535",
"0.6552482",
"0.6550807",
"0.65255684",
"0.6474568",
"0.645636... | 0.61898196 | 41 |
Returns the (dense) vector of the diagonal elements. | def A2lD(YKHO):
tDc2 = YKHO.rows == YKHO.cols
A2lD = oyIN.zeros(min(YKHO.n, YKHO.n), dtype=oyIN.float64)
A2lD[YKHO.rows[tDc2]] = YKHO.vals[tDc2]
return A2lD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IjIm(YKHO):\n return YKHO.rep.diagonal()",
"def IjIm(YKHO):\n E3D9 = YKHO.rep\n r8hN, exwG = YKHO.shape\n return [E3D9[YRbF, YRbF] for YRbF in range(min(r8hN, exwG))]",
"def IjIm(YKHO) -> auK0[HWEd, ' N']:\n return YKHO.value * oLG2.ones(YKHO.size)",
"def A2lD(WKvO):\n CAzz = uM5J(WKvO)... | [
"0.77127284",
"0.76471806",
"0.7374665",
"0.7286015",
"0.7263007",
"0.7239486",
"0.71734244",
"0.71619266",
"0.711941",
"0.6992547",
"0.6975051",
"0.69089365",
"0.683053",
"0.68254954",
"0.6753246",
"0.66568476",
"0.6577181",
"0.65462613",
"0.65350735",
"0.652558",
"0.6523551... | 0.70933163 | 9 |
Extracts selected blocks of a matrices M depending on parameters block_indices and block_size. | def EhU6(E3D9, CC5R, Z1S6, jDK_):
assert CC5R.ndim == 1
assert jDK_ in [0, 1]
Mkmy, Z9rn = E3D9.shape
if jDK_ == 0:
lWrn = [CC5R.shape[0], Z1S6, Z9rn]
elif jDK_ == 1:
lWrn = [CC5R.shape[0], Mkmy, Z1S6]
JRYC = E3D9.dtype
BUPQ = oyIN.empty(lWrn, dtype=JRYC)
if jDK_ == 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gyco(E3D9, YRbF, r845, LNCG, YVn0):\n return E3D9[LNCG[YRbF]:LNCG[YRbF + 1], YVn0[r845]:YVn0[r845 + 1]].copy()",
"def NyuR(cgAf, SppC, jDK_=0, vgXP=0):\n u54L = SppC.shape[jDK_]\n d6pt = oyIN.arange(0 + vgXP, u54L + vgXP, cgAf)\n d6pt = oyIN.append(d6pt, d6pt[-1] + (u54L + vgXP - d6pt[-1]))\n ... | [
"0.6191897",
"0.6057728",
"0.5937161",
"0.58858114",
"0.57284105",
"0.5639187",
"0.5556601",
"0.55230266",
"0.54642296",
"0.5414495",
"0.52994233",
"0.52893496",
"0.52858233",
"0.52239704",
"0.52014714",
"0.5195018",
"0.5179752",
"0.5151467",
"0.51445997",
"0.5144032",
"0.513... | 0.762177 | 0 |
[batch_size, sequence_length, hidden_length] > [B, S, 1 ,H] | def v2uf(YKHO, sI0U, Q6eQ, hfap, ZHfW=None, MCo6=False, xKRa=False):
GMOZ = YKHO.attention_heads * YKHO.qkv_length
e5sz = not YKHO.exclude_attention_biases
if YKHO.disable_concat_qkv or not MCo6:
ewZ3 = ZylS.expand_dims(sI0U, axis=-2)
Twt3 = ZylS.expand_dims(Q6eQ, axis=-2)
Mm1b = Zyl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u, begE):\n if YKHO.mode == 'LSTM':\n return (ht2j.ones((1 + YKHO.bidirectional, Ep8u, YKHO.hidden_dim), device=begE), ht2j.ones((1 + YKHO.bidirectional, Ep8u, YKHO.hidden_dim), device=begE))\n else:\n return ht2j.ones((1 + YKHO.bidirectional, Ep8u, YKHO.hidden_dim), device=be... | [
"0.64206415",
"0.63006455",
"0.6141154",
"0.60965323",
"0.6090984",
"0.6066164",
"0.60580295",
"0.6040921",
"0.60338366",
"0.6032637",
"0.60303336",
"0.60232204",
"0.60134757",
"0.5992404",
"0.59895486",
"0.5966104",
"0.59622204",
"0.5954728",
"0.5939255",
"0.5937662",
"0.591... | 0.0 | -1 |
Creates a random string from alphanumeric characters. While it's unlikely that duplicates will be created, client code should still test this. | def BWvy(u54L=5):
yCC3 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
return ''.join((tuKI.choice(yCC3) for YRbF in range(0, u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drFW():\n return GLL2(char_choice=vIwR.ascii_letters + vIwR.digits)",
"def omrF(zNig):\n return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for WKvO in range(zNig)))",
"def eSJ8(u54L):\n return ''.join((tuKI.SystemRandom().choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(u54L)... | [
"0.8761063",
"0.8317953",
"0.8219287",
"0.8185905",
"0.8130348",
"0.80720973",
"0.7921839",
"0.79116464",
"0.7852993",
"0.78426445",
"0.78114015",
"0.7794713",
"0.7785034",
"0.7769775",
"0.7733262",
"0.77235943",
"0.7712778",
"0.7703085",
"0.7669973",
"0.7623046",
"0.76139057... | 0.7400388 | 43 |
Set the pool of servers used by this client. | def vCys(YKHO, HwSA):
YKHO.servers = [rpQI(KCHu, YKHO.debug, dead_retry=YKHO.dead_retry, socket_timeout=YKHO.socket_timeout) for KCHu in HwSA]
YKHO._init_buckets() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KnX3(YKHO, KnX3):\n YKHO._server_pool = KnX3",
"def vCys(YKHO, HwSA):\n YKHO.servers = []\n YKHO.buckets = []\n for S_bD in HwSA:\n if type(S_bD) == tuple:\n nLQm, upAO = S_bD\n else:\n nLQm, upAO = (S_bD, 1)\n N5z6 = tnE1(nLQm, upAO, YKHO._debuglog)\n ... | [
"0.7319679",
"0.7087884",
"0.6783699",
"0.6467647",
"0.6271275",
"0.615868",
"0.60961",
"0.60128826",
"0.5960502",
"0.5913157",
"0.58820456",
"0.5873742",
"0.5798574",
"0.5772111",
"0.5718808",
"0.5644137",
"0.55850923",
"0.55629134",
"0.5554513",
"0.55439126",
"0.55362344",
... | 0.680685 | 2 |
Transform val to a storable representation, returning a tuple of the flags, the length of the new value, and the new value itself. | def PGBq(YKHO, wEf2, IjaM):
JbyC = 0
if isinstance(wEf2, str):
pass
elif isinstance(wEf2, int):
JbyC |= i9zE._FLAG_INTEGER
wEf2 = '%d' % wEf2
IjaM = 0
elif isinstance(wEf2, Swre):
JbyC |= i9zE._FLAG_LONG
wEf2 = '%d' % wEf2
IjaM = 0
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ILZQ(BWXx, IjaM):\n JbyC = 0\n if isinstance(BWXx, str):\n pass\n elif isinstance(BWXx, int):\n JbyC |= i9zE._FLAG_INTEGER\n BWXx = '%d' % BWXx\n IjaM = 0\n elif isinstance(BWXx, Swre):\n JbyC |= i9zE._FLAG_LONG\n BWXx = '%d' % BWXx\n IjaM = 0\n e... | [
"0.62823075",
"0.6096067",
"0.5640779",
"0.5292934",
"0.5206345",
"0.51901823",
"0.5182342",
"0.51321834",
"0.51321834",
"0.5092355",
"0.49739844",
"0.4964282",
"0.4904789",
"0.48912632",
"0.4881916",
"0.48522413",
"0.48376516",
"0.48217183",
"0.4792239",
"0.47672203",
"0.475... | 0.6702017 | 0 |
Returns the number of seconds from the epoch to date. Should match the number returned by the equivalent function in postgres. | def IMJE(_c1T):
g75m = _c1T - qtWj
return g75m.days * 86400 + g75m.seconds + float(g75m.microseconds) / 1000000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMJE(_c1T):\n g75m = _c1T - qtWj\n return g75m.days * 86400 + g75m.seconds + float(g75m.microseconds) / 1000000",
"def IMJE(_c1T):\n g75m = _c1T - qtWj\n return g75m.days * 86400 + g75m.seconds + float(g75m.microseconds) / 1000000",
"def SWek(ppPa, qtWj=None):\n return ccOx(ppPa) / 10.0 ** 6... | [
"0.80922514",
"0.80922514",
"0.7945236",
"0.7506645",
"0.71594447",
"0.7067575",
"0.68515295",
"0.6746382",
"0.67439777",
"0.67207676",
"0.66486436",
"0.6620893",
"0.6620893",
"0.6606734",
"0.65902865",
"0.65062416",
"0.64704",
"0.6452434",
"0.64258116",
"0.640299",
"0.636732... | 0.810289 | 0 |
Constructs an importer that takes a data structure based on a yaml file. | def FIMM(YKHO, USKW=None):
YKHO.url_handler = USKW if USKW else YKHO._default_url_handler
YKHO.username_mapping = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXMy(Emd4, C3ST: nn.Module, SFUd: str) -> cf3u.LightningModule:\n with open(SFUd, 'r') as wOb_:\n B2fa = eJb6.full_load(wOb_)\n return Emd4(C3ST, **B2fa)",
"def OXMy(Emd4, eHNT, zJe3=True):\n if isinstance(eHNT, str):\n with open(eHNT, 'r') as zZcM:\n sAYn = Emd4(UEZb(zZcM))... | [
"0.66920453",
"0.64421743",
"0.6418202",
"0.6335006",
"0.63316417",
"0.624798",
"0.62384844",
"0.62174565",
"0.6208334",
"0.61887056",
"0.6186245",
"0.61758035",
"0.61690754",
"0.6139741",
"0.61203724",
"0.60933965",
"0.6085823",
"0.60823864",
"0.6071912",
"0.6070817",
"0.606... | 0.0 | -1 |
Return True if the stack has any items, False otherwise | def lsmZ(YKHO):
return len(YKHO.stack) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n if YKHO.num_items == 0:\n return True\n else:\n return False",
"def FBfn(YKHO):\n return YKHO._stack_items == []",
"def FBfn(YKHO):\n return len(YKHO.the_stack) == 0",
"def lsmZ(YKHO):\n return YKHO.stack == []",
"def lsmZ(YKHO):\n return YKHO.stack == []",... | [
"0.8640607",
"0.8384896",
"0.83039576",
"0.8294889",
"0.82426995",
"0.8162645",
"0.8162645",
"0.816244",
"0.8157954",
"0.8100274",
"0.80811626",
"0.8037128",
"0.79938006",
"0.7973465",
"0.7973465",
"0.7925865",
"0.7915802",
"0.7899525",
"0.78055054",
"0.77998394",
"0.7788897"... | 0.8193697 | 5 |
Convenience method for getting a list of 'quantity' strings from the RandomString named 'attr' | def NMoC(YKHO, hkS8, cTRz=0):
return YKHO.strings[hkS8].get(cTRz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lPEc(YKHO, WhvP):\n SQ3m = []\n iF3e = 0\n while iF3e < len(WhvP):\n u6Z5 = YKHO.nextString(WhvP, iF3e)\n KCHu = WhvP[iF3e:u6Z5 - 1]\n if KCHu[0] == '(' and KCHu[-1] == ')':\n SQ3m.append(YKHO.parseAttribute(KCHu[1:-1]))\n else:\n try:\n ... | [
"0.55149657",
"0.55140907",
"0.546348",
"0.5418178",
"0.52843404",
"0.52367496",
"0.52326226",
"0.5113158",
"0.5104948",
"0.5084972",
"0.50735784",
"0.50735784",
"0.50695837",
"0.5065191",
"0.50635546",
"0.50000334",
"0.499991",
"0.49904165",
"0.49841562",
"0.4975838",
"0.495... | 0.63512796 | 0 |
Makes a pretty date from a date | def F2p1(YKHO, _c1T):
return ITS7.strftime('%a, %b %d, %Y', ITS7.strptime(_c1T, '%Y%m%d')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F2p1(y6Fc):\n tbOh = oi8S(y6Fc.day)\n kTPV = y6Fc.strftime('%B')\n FNc9 = y6Fc.strftime('%Y')\n return twIu(tbOh, kTPV, FNc9)",
"def LL1H(YKHO, _c1T):\n rYO3 = 'days since 1900-01-01 00:00'\n _c1T = _c1T * 365.25\n _c1T = HlDe.num2date(_c1T, rYO3)\n F2p1 = str(_c1T.day) + '/' + str(_c... | [
"0.82389563",
"0.79867023",
"0.7430773",
"0.69187784",
"0.67759526",
"0.67725164",
"0.67428035",
"0.6710222",
"0.67096394",
"0.66659904",
"0.6650048",
"0.66224366",
"0.66217923",
"0.6620905",
"0.6620818",
"0.65857303",
"0.65691596",
"0.6565835",
"0.656035",
"0.6560211",
"0.65... | 0.76761764 | 2 |
Takes a URL and returns the domain part, minus if present | def zrIJ(KCHu):
Ylbp = cR_B.findall(KCHu)
zrIJ = Ylbp and Ylbp[0] or KCHu
return zrIJ.lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vK05(bD7m):\n jzdc = uRlK.parse.urlsplit(bD7m)\n return str(jzdc.scheme) + '://' + str(jzdc.hostname)",
"def vK05(bD7m):\n assert bD7m is not None\n iquo = F9yi(bD7m)\n neBz = ZbWC.search('(^https?://)?([a-z]|[A-Z]|[0-9]|\\\\.)+/?', bD7m)\n Aofo = None\n if neBz:\n Aofo = neBz.gro... | [
"0.8655283",
"0.86170614",
"0.85984564",
"0.8553324",
"0.8551012",
"0.84421355",
"0.84127265",
"0.8385016",
"0.83127636",
"0.8216069",
"0.8096774",
"0.8058539",
"0.8015671",
"0.7970023",
"0.7867089",
"0.78461486",
"0.7827538",
"0.7820362",
"0.7803871",
"0.779978",
"0.77090037... | 0.6424751 | 65 |
Returns a datetime object corresponding to time 'interval' in the past. Interval is of the same form as is returned by timetext(), i.e., '10 seconds'. The interval must be passed in in English (i.e., untranslated) and the format is [num] second|minute|hour|day|week|month|year(s) | def GXpB(VOlW):
from pylons import g
return qcWV.now(g.tz) - I8AV(VOlW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dAJb(VOlW, PXGI):\n FCPO = int(ITS7.time())\n if PXGI == 'd':\n dAJb = FCPO - VOlW * pU8d\n elif PXGI == 'h':\n dAJb = FCPO - VOlW * goD6\n elif PXGI == 'm':\n dAJb = FCPO - VOlW * xOzv\n elif PXGI == 's':\n dAJb = FCPO - VOlW\n elif PXGI == 'ms':\n FCPO = W... | [
"0.65804213",
"0.54617864",
"0.5299602",
"0.5298647",
"0.52681166",
"0.5181039",
"0.51584196",
"0.49770483",
"0.49653432",
"0.4933692",
"0.4900558",
"0.48558792",
"0.48536974",
"0.47445643",
"0.47312304",
"0.47229862",
"0.471219",
"0.46741104",
"0.46727133",
"0.46681464",
"0.... | 0.6933155 | 0 |
Takes a datetime object, returns the time between then and now as a nicely formatted string, e.g "10 minutes" Adapted from django which was adapted from | def Puiz(RA_F, oYbz=1, bjyK=True):
eHxA = ((60 * 60 * 24 * 365, lambda exwG: PaN4('year', 'years', exwG)), (60 * 60 * 24 * 30, lambda exwG: PaN4('month', 'months', exwG)), (60 * 60 * 24, lambda exwG: PaN4('day', 'days', exwG)), (60 * 60, lambda exwG: PaN4('hour', 'hours', exwG)), (60, lambda exwG: PaN4('minute', 'm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V2LE() -> qcWV.strftime:\n wzkt = qcWV.now()\n XRk0 = wzkt - fCoM(minutes=30)\n vHj7 = XRk0.strftime('%Y-%m-%d %H:%M:%S')\n return vHj7",
"def UIS8(ITS7=None):\n if ITS7 is None:\n ITS7 = qcWV.now().time()\n if ITS7.minute < 10:\n return ITS7.strftime('%H ноль %m')\n else:\... | [
"0.7234549",
"0.6857311",
"0.67275363",
"0.6670941",
"0.6475366",
"0.64525664",
"0.6386341",
"0.63611746",
"0.6356836",
"0.6346629",
"0.63443947",
"0.6342283",
"0.63195896",
"0.62999016",
"0.6284367",
"0.6225699",
"0.6188356",
"0.61769813",
"0.61760795",
"0.6161277",
"0.61244... | 0.0 | -1 |
Converts a ?cnameframe url into the corresponding cnamed domain if applicable. Useful for framebusting on redirect. | def x7KH(YKHO, uzwM=True, _5RM=None, bIwZ=None):
if uzwM and (not YKHO.query_dict.has_key(YKHO.cname_get)):
return YKHO
_5RM = _5RM or YKHO.get_subreddit()
if _5RM and _5RM.domain:
YKHO.scheme = YKHO.scheme or 'http'
YKHO.hostname = _5RM.domain
YKHO.port = YKHO.port or bIwZ
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aqYN(bD7m):\n DZCA = KVWQ(bD7m)\n return DZCA.netloc",
"def JBsK(bD7m):\n zrIJ = vIwR.replace(bD7m, 'https://www.', '')\n zrIJ = vIwR.replace(zrIJ, 'http://www.', '')\n zrIJ = vIwR.replace(zrIJ, 'http://', '')\n zrIJ = vIwR.replace(zrIJ, '.com/', '')\n zrIJ = vIwR.replace(zrIJ, '.com', '... | [
"0.6197644",
"0.6159966",
"0.5963769",
"0.5907886",
"0.5852895",
"0.58388484",
"0.58284247",
"0.5792198",
"0.57182163",
"0.56948596",
"0.56632704",
"0.5660369",
"0.5638289",
"0.55650324",
"0.5547438",
"0.5546161",
"0.5523178",
"0.5495719",
"0.5482025",
"0.54640037",
"0.545711... | 0.617074 | 1 |
Takes an iterator and returns an iterator that returns only the first occurence of each entry | def R3eT(oHE7):
jTp2 = set()
def MGwR(WKvO):
if WKvO in jTp2:
return False
else:
jTp2.add(WKvO)
return True
return g9NN(oHE7, MGwR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iN7E(YKHO, OxJJ, XEri=lambda WKvO: True):\n try:\n return next((WKvO for WKvO in OxJJ if XEri(WKvO)))\n except:\n return None",
"def cntZ(vC9B: iter, lgNN):\n for _pUq in vC9B:\n if lgNN(_pUq):\n return _pUq\n raise RuntimeError('Found nothing to match predicate')"... | [
"0.6662245",
"0.6558268",
"0.65078807",
"0.64133495",
"0.64133495",
"0.64071995",
"0.62734216",
"0.6250841",
"0.6167601",
"0.61336493",
"0.6115642",
"0.61110455",
"0.6059177",
"0.60256934",
"0.5976923",
"0.5963067",
"0.59148407",
"0.590669",
"0.58869797",
"0.58488554",
"0.580... | 0.615555 | 9 |
Takes a string and makes it suitable for use in URLs | def xX4s(leAC, BcCR=50):
leAC = RBIL(leAC)
leAC = UIAL.sub('_', leAC)
leAC = _mLh.sub('', leAC)
leAC = nofm.sub('_', leAC)
leAC = leAC.strip('_')
leAC = leAC.lower()
if len(leAC) > BcCR:
leAC = leAC[:BcCR]
jpUh = leAC.rfind('_')
if jpUh > 0:
leAC = leAC[:j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cbwL(KCHu):\n return ''.join(('%20' if Z9rn == ' ' else Z9rn for Z9rn in KCHu.strip()))",
"def PG2p(bD7m):\n return bD7m.replace(' ', '_')",
"def ZdpQ(Ghho: str) -> str:\n return uRlK.parse.quote(Ghho)",
"def eWC1(vIwR):\n return HDLy('_'.join(vIwR.split()))",
"def yWMy(Emd4, bD7m: str):\n ... | [
"0.6556111",
"0.6527914",
"0.6515691",
"0.6470153",
"0.6388749",
"0.6344972",
"0.63395154",
"0.627813",
"0.62732196",
"0.6252135",
"0.6246198",
"0.6217608",
"0.61840826",
"0.61289954",
"0.61121154",
"0.6110993",
"0.609346",
"0.60719675",
"0.6051838",
"0.6035905",
"0.60187197"... | 0.0 | -1 |
Return query for all meetups that are in the future | def otZ_(Emd4):
return hdRH._query(hdRH.c.timestamp > ITS7.time() - Oa1e.meetup_grace_period, data=True, sort='_date') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vfsE(YKHO):\n yo7_ = qcWV.now().strftime('%Y-%m-%d')\n qjaP = (qcWV.now() + fCoM(days=7)).strftime('%Y-%m-%d')\n xDcj = \"SELECT * FROM {} WHERE happening_on BETWEEN '{}' AND '{}'\".format(YKHO.table, yo7_, qjaP)\n return YKHO.fetch_all(xDcj)",
"def GTTU(YKHO):\n return YKHO.client.get(... | [
"0.71593964",
"0.6860382",
"0.6841186",
"0.66529363",
"0.6401368",
"0.6360072",
"0.62354666",
"0.6084642",
"0.60374886",
"0.60255665",
"0.5999513",
"0.5977051",
"0.59436744",
"0.59424406",
"0.5915156",
"0.5901143",
"0.5895411",
"0.5805544",
"0.5803228",
"0.5801198",
"0.580055... | 0.7740171 | 0 |
Returns true if the supplied user is allowed to edit this meetup | def hO62(YKHO, CBIr, Jo_v=False):
if CBIr is None or isinstance(CBIr, Q8Jy):
return False
elif Jo_v or YKHO.author_id == CBIr._id:
return True
elif nx5k._by_name('discussion').is_editor(CBIr):
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BI3A(CBIr):\n P6bq = c5ow._get_current_object()\n return P6bq == CBIr or P6bq.is_admin()",
"def FAbd(YKHO, CBIr):\n return CBIr == YKHO.owner",
"def kFCl(YKHO, CBIr):\n return YKHO.is_public or CBIr == YKHO.owner or CBIr in list(YKHO.auth_users.all())",
"def hO62(YKHO, CBIr):\n return YKHO... | [
"0.83741283",
"0.8356442",
"0.82882535",
"0.8279635",
"0.81570023",
"0.7951602",
"0.7847489",
"0.7725675",
"0.7522701",
"0.74701333",
"0.72449917",
"0.7232902",
"0.7203058",
"0.7200138",
"0.7174519",
"0.7126445",
"0.7098502",
"0.70908755",
"0.6980087",
"0.6936545",
"0.6922237... | 0.76542854 | 8 |
Converts a time struct to a Blogger time/date string. | def lOVl(YKHO, Z2iF):
return ITS7.strftime('%Y-%m-%dT%H:%M:%SZ', Z2iF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Px7F(YKHO):\n try:\n if not YKHO._time:\n raise ValueError\n GUy1 = '%a, %d %b %Y %H:%M:%S'\n return qcWV.fromtimestamp(float(YKHO._time)).strftime(GUy1)\n except ValueError:\n return K3Yb()",
"def hLAQ(ITS7):\n return '{hour}:{min}:{second}:{millisecond}'.form... | [
"0.7741819",
"0.6992845",
"0.69640374",
"0.6890449",
"0.68889165",
"0.6888506",
"0.68024224",
"0.67773944",
"0.67394155",
"0.66852427",
"0.6667664",
"0.6635254",
"0.66259456",
"0.6622707",
"0.6563565",
"0.6561921",
"0.6556215",
"0.6556215",
"0.6538662",
"0.6538662",
"0.652975... | 0.7510641 | 1 |
Get the current background width. | def V8C_(YKHO):
return len(YKHO._background) if YKHO._background else 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hxMe(YKHO) -> int:\n return YKHO.background_color.value",
"def xglF(YKHO):\n return len(YKHO._background[0]) if YKHO.get_width() > 0 and YKHO._background[0] else 0",
"def V8C_(YKHO) -> int:\n return int(YKHO._surface.get_width())",
"def xiCJ(YKHO):\n return YKHO._width",
"def u14P(YKHO):\n ... | [
"0.7021511",
"0.67397255",
"0.6696741",
"0.6554188",
"0.6522735",
"0.64964706",
"0.6489986",
"0.6489986",
"0.6427883",
"0.6427883",
"0.6427883",
"0.6427883",
"0.642383",
"0.64176",
"0.6410324",
"0.6410324",
"0.6410324",
"0.640403",
"0.63914996",
"0.6337707",
"0.63292736",
"... | 0.8295908 | 0 |
Get the current background height. | def xglF(YKHO):
return len(YKHO._background[0]) if YKHO.get_width() > 0 and YKHO._background[0] else 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AWHj(YKHO) -> int:\n return YKHO.current_height",
"def xglF(YKHO):\n return YKHO.state['h']",
"def xglF(YKHO) -> int:\n return int(YKHO._surface.get_height())",
"def xglF(YKHO):\n return YKHO.__height",
"def xglF(YKHO):\n return YKHO._height",
"def xglF(YKHO):\n return YKHO._height"... | [
"0.7541687",
"0.70664275",
"0.7017184",
"0.699317",
"0.6991168",
"0.6991168",
"0.6991168",
"0.6983764",
"0.6983764",
"0.6983764",
"0.6983764",
"0.6943631",
"0.6943144",
"0.6943144",
"0.68905807",
"0.68512267",
"0.68419564",
"0.68191266",
"0.6788108",
"0.67586297",
"0.6729708"... | 0.83606935 | 0 |
Get the front element. | def T7C_(YKHO):
return YKHO.front | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass",
"def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1",
"def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None",
"def vYJ5(YKHO):\n if YKHO.items:\n r... | [
"0.82009244",
"0.79261875",
"0.7852642",
"0.7791182",
"0.77886623",
"0.752337",
"0.7510604",
"0.7478953",
"0.7379256",
"0.7379256",
"0.734284",
"0.7323573",
"0.7320296",
"0.7291721",
"0.72772557",
"0.7269801",
"0.72657627",
"0.7253295",
"0.72355044",
"0.72213495",
"0.721701",... | 0.75723046 | 5 |
Returns whether the queue is empty. | def lsmZ(YKHO):
return not YKHO.values | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return not YKHO._queue"... | [
"0.9270249",
"0.92506766",
"0.923635",
"0.923635",
"0.9155843",
"0.9098441",
"0.9095006",
"0.90922606",
"0.90731245",
"0.9053733",
"0.89205354",
"0.89137155",
"0.8877591",
"0.88436323",
"0.88436323",
"0.8835949",
"0.88038146",
"0.8758203",
"0.87577534",
"0.87310195",
"0.86462... | 0.0 | -1 |
Generate all items for the given endpoint. Could produce more than one test item if parametrization is applied via ``pytest.mark.parametrize`` or ``pytest_generate_tests``. | def BHeq(YKHO, w2IS: Endpoint) -> jd6F[f_8k, None, None]:
try:
y_V_ = bZUG(w2IS, YKHO.test_function)
except q3Lo:
y_V_ = lambda: trZe.fail('Invalid schema for endpoint')
DumB = YKHO.ihook.pytest_pycollect_makeitem(collector=YKHO.parent, name=YKHO._get_test_name(w2IS), obj=y_V_)
for ZfUD ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XDvy(mWFP, kE9q, qoqK, vgXP, LpOW, RZ9F):\n HKDL(mWFP, kE9q, qoqK, vgXP, LpOW, RZ9F)",
"def aLSJ(YKHO):\n t2YS = ['/api/help/', '/api/test_host/', '/api/system_status/', '/api/updates_available/', '/api/session/', '/api/action/', '/api/run_stratagem/', '/api/stratagem_configuration/']\n roD5 = YKHO.... | [
"0.6143566",
"0.6075885",
"0.5945847",
"0.5889709",
"0.58042955",
"0.57707775",
"0.57425666",
"0.57353044",
"0.5714523",
"0.5704624",
"0.5686927",
"0.5529842",
"0.55225164",
"0.5502713",
"0.5477991",
"0.54265237",
"0.53864914",
"0.5379258",
"0.5347762",
"0.5311735",
"0.531156... | 0.75900507 | 0 |
Generate different test items for all endpoints available in the given schema. | def RN67(YKHO) -> x1iM[f_8k]:
try:
return [ZfUD for w2IS in YKHO.schemathesis_case.get_all_endpoints() for ZfUD in YKHO._gen_items(w2IS)]
except Exception:
trZe.fail('Error during collection') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BHeq(YKHO, w2IS: Endpoint) -> jd6F[f_8k, None, None]:\n try:\n y_V_ = bZUG(w2IS, YKHO.test_function)\n except q3Lo:\n y_V_ = lambda: trZe.fail('Invalid schema for endpoint')\n DumB = YKHO.ihook.pytest_pycollect_makeitem(collector=YKHO.parent, name=YKHO._get_test_name(w2IS), obj=y_V_)\n ... | [
"0.62797457",
"0.62201464",
"0.61220795",
"0.604933",
"0.59677726",
"0.5963135",
"0.5856897",
"0.5779563",
"0.5749573",
"0.5744169",
"0.56704587",
"0.5665546",
"0.56556123",
"0.56173605",
"0.56068426",
"0.5600911",
"0.5586501",
"0.55836356",
"0.5579573",
"0.5579494",
"0.55544... | 0.5311357 | 37 |
The name of the sqg as an int, this is optional and may be null. | def Q0HP(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DxOv(YKHO, mWFP):\n return YKHO.field(mWFP).toInt()[0]",
"def mWFP(YKHO):\n return KCHu.GLPK",
"def jrfF(t6ks: str, ITJE: Decoder) -> h8nf[int]:\n cq1B = ITJE.config.class_to_sqa_class[hOpO]\n _7Sg = ITJE.config.class_to_sqa_class[iY36]\n with FNir() as cuiw:\n Jz37 = cuiw.query(_7Sg.... | [
"0.587419",
"0.58507115",
"0.57900316",
"0.57229364",
"0.5504715",
"0.5416826",
"0.5403211",
"0.5391398",
"0.5382226",
"0.53794175",
"0.5349332",
"0.5267572",
"0.5254856",
"0.5251923",
"0.5250796",
"0.5216763",
"0.52152115",
"0.5213173",
"0.5204345",
"0.5182669",
"0.5171748",... | 0.0 | -1 |
Sets the array list type of a given type. Only one arrayList of a given type may be included in an SQG. | def P0mc(YKHO, QXWX):
if QXWX.getType() in YKHO.arrayLists:
raise RuntimeError('Trying to set an array list of type %s for an Sqg which already has such an array list type' % QXWX.type)
YKHO.arrayLists[QXWX.getType()] = QXWX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oq00(YKHO, type):\n YKHO.__data_set_type__ = type",
"def TG_K(YKHO, wEf2):\n if not Wd_S(wEf2, Bl1E):\n raise SWMn('[WARNING] `type`, should be ' + ', '.join(Bl1E))\n YKHO._type = wEf2\n pass",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO.type = type"... | [
"0.6247798",
"0.6166538",
"0.6012726",
"0.6012726",
"0.59471697",
"0.58363324",
"0.58115846",
"0.5757654",
"0.5726093",
"0.5639712",
"0.56347656",
"0.5551752",
"0.54953694",
"0.5492203",
"0.54695684",
"0.546802",
"0.546802",
"0.54545087",
"0.54541373",
"0.54541373",
"0.545413... | 0.73090965 | 0 |
Makes sure that the given url has a scheme in front, if none was provided. | def nCAG(bD7m: str, WmM4: str='http') -> str:
if not bD7m:
return bD7m
if '//' not in bD7m:
bD7m = '//' + bD7m
Qi1G = rOmR(bD7m)
if Qi1G.scheme():
return bD7m
return Qi1G.scheme(WmM4).as_string() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbzO(YKHO, bD7m):\n if YKHO.base_scheme and (not bD7m.startswith('%s://' % YKHO.base_scheme)):\n U0SR = NoPH(bD7m)\n bD7m = izOI([YKHO.base_scheme, U0SR.netloc, U0SR.path, U0SR.query, U0SR.fragment])\n return bD7m",
"def ldUk(bD7m):\n return bD7m.startswith(('http://', 'https://'))",
... | [
"0.75058997",
"0.7437641",
"0.7281136",
"0.7203908",
"0.7188092",
"0.71131873",
"0.69555897",
"0.685098",
"0.6838269",
"0.6831752",
"0.6738719",
"0.6692059",
"0.6665901",
"0.66567034",
"0.661623",
"0.6585292",
"0.65061617",
"0.6500077",
"0.64900446",
"0.64827365",
"0.64727026... | 0.79594964 | 0 |
Returns true if the given value is a uuid. The value may be a string or of type UUID. If it's a string, the uuid is checked with a regex. | def Xs_K(BWXx: str | UUID) -> bool:
if isinstance(BWXx, str):
return B3Yu.match(str(BWXx)) and True or False
return isinstance(BWXx, S7kj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gBq9(wEf2):\n try:\n return str(qxeD.UUID(wEf2)) == wEf2\n except (TypeError, ValueError, AttributeError):\n return False",
"def gBq9(wEf2):\n try:\n return str(qxeD.UUID(wEf2)) == wEf2\n except (TypeError, ValueError, AttributeError):\n return False",
"def gD9s(qxeD... | [
"0.8455478",
"0.8455478",
"0.8029188",
"0.7843651",
"0.7794354",
"0.7694741",
"0.76459783",
"0.7575199",
"0.7530541",
"0.7494805",
"0.7480939",
"0.73566675",
"0.7283223",
"0.72780937",
"0.7022001",
"0.69870055",
"0.69147795",
"0.65341836",
"0.6376335",
"0.62484616",
"0.623474... | 0.9190001 | 0 |
Returns true if the given obj is an iterable, but not a string. | def XNOR(YEnM: object) -> bool:
return not (isinstance(YEnM, str) or isinstance(YEnM, bytes)) and isinstance(YEnM, iu5r) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kUz6(YEnM, _CS_=False, isinstance=isinstance, iu5r=iu5r):\n return isinstance(YEnM, iu5r) and (not (isinstance(YEnM, str) and (not _CS_)))",
"def AVNT(YEnM):\n return not isinstance(YEnM, jUrF) and isinstance(YEnM, iu5r)",
"def GfZ5(YEnM, NwOt=False):\n if not isinstance(YEnM, iu5r):\n retu... | [
"0.8819772",
"0.8782847",
"0.8680526",
"0.8534543",
"0.8456351",
"0.84327716",
"0.83216363",
"0.8232543",
"0.8204043",
"0.8147831",
"0.8118153",
"0.8090593",
"0.80423206",
"0.8021403",
"0.8015776",
"0.7980622",
"0.7947369",
"0.78371555",
"0.78227997",
"0.773803",
"0.764366",
... | 0.9190952 | 0 |
Removes everything in front of the path, including scheme, host, username, password and port. | def HQNz(qvg3: str | None) -> str:
bD7m = rOmR._mutate(rOmR(qvg3), scheme=None, username=None, password=None, host=None, port=None)
return bD7m.as_string() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSn9(KcEq):\n if not KcEq.startswith('https://'):\n KcEq = 'https://' + KcEq\n KcEq = avhy(KcEq, '/')\n KcEq = avhy(KcEq, '/api/v1')\n KcEq = avhy(KcEq, '/')\n return KcEq",
"def jXPH(YKHO):\n return YKHO.path.replace('/', '')",
"def eARt(YKHO, pmON):\n wG94 = YKHO.remotepathsep... | [
"0.71767884",
"0.67963123",
"0.67461425",
"0.67461425",
"0.6618697",
"0.64288473",
"0.6352149",
"0.6242105",
"0.62055314",
"0.61658514",
"0.6146189",
"0.61302227",
"0.6124761",
"0.61133295",
"0.6094514",
"0.6058579",
"0.60390717",
"0.60377663",
"0.60180247",
"0.59973025",
"0.... | 0.0 | -1 |
Returns True if the iterable is sorted. | def mwCj(OxJJ: 'Iterable[Any]', H5ew: 'Callable[[Any], SupportsRichComparison]'=lambda YRbF: YRbF, gxEw: bool=False) -> bool:
Q6uT = list(OxJJ)
for jzdc, Fg_i in zip(Q6uT, sorted(Q6uT, key=H5ew, reverse=gxEw)):
if jzdc is not Fg_i:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mwCj(YKHO):\n return YKHO._sorted",
"def mwCj(YKHO):\n AOBR = 0\n for BWXx in YKHO.data:\n if BWXx < AOBR:\n return False\n AOBR = BWXx\n return True",
"def mwCj(Q6uT):\n return all((Q6uT[YRbF - 1] < Q6uT[YRbF] for YRbF in range(1, len(Q6uT))))",
"def mwCj(YKHO):\n... | [
"0.75455016",
"0.7302388",
"0.72134596",
"0.71293396",
"0.71074814",
"0.70934767",
"0.68608123",
"0.68579763",
"0.6809051",
"0.67405665",
"0.6714944",
"0.6712902",
"0.659822",
"0.6547163",
"0.6546891",
"0.6496275",
"0.6478172",
"0.6371364",
"0.6327991",
"0.6261303",
"0.625449... | 0.80162364 | 0 |
Returns a set of keys found in an hstore column over all records of its table. | def sI7Q(cuiw: 'Session', iVRZ: 'Column[dict[str, Any]]') -> set[str]:
P8oC = cuiw.query(iVRZ.keys()).with_entities(i48E.func.skeys(iVRZ).label('keys'))
xDcj = i48E.select([i48E.func.array_agg(i48E.column('keys'))], distinct=True).select_from(P8oC.subquery())
sjXb = cuiw.execute(xDcj).scalar()
return se... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def izwJ(YKHO):\n if YKHO.using_database:\n yabn('GET KEYS')\n Q2PR = (f8UR,)\n gPUR.execute('SELECT keyword' + ' FROM keys_to_indexes' + ' WHERE notebook=?;', Q2PR)\n R2iL = gPUR.fetchall()\n if R2iL:\n return {H5ew[0] for H5ew in R2iL}\n return set()\n r... | [
"0.71927756",
"0.6927493",
"0.69176304",
"0.6884229",
"0.68739766",
"0.6851405",
"0.67200774",
"0.66515774",
"0.6636166",
"0.6604113",
"0.6595645",
"0.64870447",
"0.6445271",
"0.64266795",
"0.63916236",
"0.63866013",
"0.6375089",
"0.63321924",
"0.6313424",
"0.6280891",
"0.627... | 0.76195127 | 0 |
Appends a single query parameter to an url. This is faster than using Purl, if and only if we only add one query param. Also this function assumes that the value is already url encoded. | def RhZ_(bD7m: str, H5ew: str, BWXx: str) -> str:
rPXJ = '?' in bD7m and '{}&{}={}' or '{}?{}={}'
return rPXJ.format(bD7m, H5ew, BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufl6(bD7m, H5ew, BWXx) -> str:\n bD7m = list(KVWQ(bD7m))\n xDcj = dict(txQg(bD7m[4]))\n xDcj[H5ew] = BWXx\n bD7m[4] = '&'.join((f'{XP5J}={Ty9i}' for XP5J, Ty9i in xDcj.items()))\n return Hfci(bD7m)",
"def Yucn(QePW, H5ew, wEf2):\n Oboo = QePW.get_full_path()\n j8eK = ntSW(Oboo)\n retu... | [
"0.7627061",
"0.71932733",
"0.7122428",
"0.700618",
"0.6976837",
"0.6976837",
"0.6932545",
"0.68469477",
"0.67915773",
"0.67451537",
"0.6696911",
"0.6693607",
"0.66794866",
"0.64410084",
"0.63793033",
"0.63773775",
"0.63249516",
"0.6297215",
"0.6125421",
"0.6102701",
"0.60347... | 0.79377896 | 0 |
Takes a usersupplied string with format blocks and returns a string where those blocks are replaced by values in a dictionary. | def ZB05(format: str, cmPJ: dict[str, Any], SnBA: set[type[Any]] | None=None, jbpc: 'Callable[[str], str] | None'=None, WrBE: bool=False) -> str:
SnBA = SnBA or {int, str, float}
hlel = kJm3()
NRcB = kJm3()
buHT = 0
for p6S0, hcXw in enumerate(format):
if hcXw == '[':
buHT += 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WwLk(YKHO, sI3h, IpOg):\n hlel = []\n for eOtH in YKHO.tokens(sI3h):\n if eOtH.group('placeholder') and (not eOtH.group('format')) and (eOtH.group('key') in IpOg):\n hlel.append(f'{{{eOtH.group('key')}{IpOg[eOtH.group('key')]}}}')\n continue\n BWXx = eOtH.group(0)\n ... | [
"0.6703094",
"0.63435066",
"0.633352",
"0.59490496",
"0.59408355",
"0.5905249",
"0.58807915",
"0.57084",
"0.56357414",
"0.55893123",
"0.55200344",
"0.55117404",
"0.55093706",
"0.54955494",
"0.54838383",
"0.54837054",
"0.5481274",
"0.5458646",
"0.54566276",
"0.5440442",
"0.543... | 0.517883 | 36 |
Splits an iterable into batches of batch_size and puts them inside a given collection (tuple by default). The container_factory is necessary in order to consume the iterator returned by islice. Otherwise this function would never return. | def egMm(OxJJ: Iterable[_T], Ep8u: int, Nxai: 'Callable[[Iterator[_T]], Collection[_T]]'=tuple) -> 'Iterator[Collection[_T]]':
oHE7 = iter(OxJJ)
while True:
Wc9F = Nxai(uOgj(oHE7, Ep8u))
if len(Wc9F) == 0:
return
yield Wc9F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBJS(OxJJ, ztRo):\n QCjM = iter(OxJJ)\n while True:\n Wc9F = uOgj(QCjM, ztRo)\n yield eNCK([Wc9F.__next__()], Wc9F)",
"def nJ0e(OxJJ, zNig):\n a2Fh = iter(OxJJ)\n while True:\n qmGr = uOgj(a2Fh, zNig)\n yield eNCK([next(qmGr)], qmGr)",
"def Wc9F(zNig, OxJJ):\n ret... | [
"0.6788661",
"0.67884827",
"0.6714264",
"0.6709461",
"0.67029256",
"0.66682523",
"0.6664805",
"0.65973073",
"0.65535605",
"0.65448266",
"0.65195376",
"0.65189743",
"0.64779365",
"0.644198",
"0.6409895",
"0.6380411",
"0.6336733",
"0.6289576",
"0.62828106",
"0.6272226",
"0.6252... | 0.8289067 | 0 |
Return list of cells we are waiting for user to click on. | def ADCt(YKHO):
if YKHO.step is None:
return []
return YKHO.step.toclick | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JaGK(YKHO):\n qzRP = []\n for Cg1f in YKHO.board:\n for PN6T in Cg1f:\n if PN6T is not None:\n qzRP.append(PN6T)\n return qzRP",
"def N8dT(YKHO):\n Lfvo, lmly = YKHO.GetScrollPixelsPerUnit()\n o0ZM, BhJz = YKHO.GetViewStart()\n yzQ0, MKlR = YKHO.GetGridWindo... | [
"0.62226903",
"0.59864146",
"0.597345",
"0.5942186",
"0.5871239",
"0.5796442",
"0.577594",
"0.57299006",
"0.5703505",
"0.56535816",
"0.56385803",
"0.5574921",
"0.5550854",
"0.55331886",
"0.54889506",
"0.5481883",
"0.5436452",
"0.5423051",
"0.5400062",
"0.5372724",
"0.5365421"... | 0.7215959 | 0 |
Gets the pin_code of this PinCodeSummaryResultsObject. | def sPLg(YKHO) -> x1iM[kRwu]:
return YKHO._pin_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zM6d(YKHO):\n return YKHO.code",
"def zM6d(YKHO):\n return YKHO.code",
"def zM6d(YKHO):\n return YKHO.code",
"def zM6d(YKHO):\n return YKHO.code",
"def Wxnj(YKHO):\n return YKHO._code",
"def Wxnj(YKHO):\n return YKHO._code",
"def Wxnj(YKHO):\n return YKHO._code",
"def Wxnj(YK... | [
"0.65996116",
"0.65996116",
"0.65996116",
"0.65996116",
"0.63884544",
"0.63884544",
"0.63884544",
"0.63884544",
"0.6312581",
"0.62994224",
"0.6243439",
"0.6208346",
"0.6208346",
"0.6208346",
"0.6208346",
"0.61627483",
"0.61627483",
"0.61627483",
"0.6104146",
"0.6083761",
"0.6... | 0.70086735 | 0 |
Renders the home page. | def kZiy():
return TvZl('index.html', title='Sairam sai baba', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.7776065 | 81 |
Get an array of all matching executable files in PATH; same as UNIX which a. ``paths`` must be a list of dirs like that returned by | def jW6B(HCmI, ckRy=None):
import os
if ckRy is None:
ckRy = os.environ['PATH'].split(':')
WSsk = [os.path.expanduser(os.path.join(XP5J, HCmI)) for XP5J in ckRy]
return filter(lambda bin: os.path.exists(bin), WSsk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def neBz(Emd4, ckRy):\n F65t = []\n for pmON in ckRy:\n for FYKK in Emd4.expand_path(pmON):\n pzx7 = Hy7s.path.basename(FYKK)\n if any((D9Ga.match(pzx7) is not None for D9Ga in Emd4.REGEXEN)):\n try:\n F65t.append(Emd4.from_binary(FYKK))\n ... | [
"0.67455274",
"0.670481",
"0.6563973",
"0.65499187",
"0.638122",
"0.63745165",
"0.6325976",
"0.6272965",
"0.6259136",
"0.6201444",
"0.6190485",
"0.59739125",
"0.59722435",
"0.5886799",
"0.58645946",
"0.5830521",
"0.5796174",
"0.5795165",
"0.57596576",
"0.57300735",
"0.5711377... | 0.7365259 | 0 |
Initialize this dataset class. | def FIMM(YKHO, y7GR):
x_b5.__init__(YKHO, y7GR)
YKHO.dir_A = Hy7s.path.join(y7GR.dataroot, y7GR.phase5 + 'A')
YKHO.A_paths = sorted(PK3w(YKHO.dir_A, y7GR.max_dataset_size))
YKHO.A_size = len(YKHO.A_paths)
YKHO.dir_B50 = Hy7s.path.join(y7GR.dataroot, y7GR.phase5 + 'B50')
YKHO.B50_paths = sorted(P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.__dataset = None",
"def FIMM(YKHO, __n6):\n YKHO._dataset = __n6",
"def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6",
"def FIMM(YKHO, GPtr):\n bo34.info(f'{YKHO.__class__.__name__}: Dataset initializing ...')\n super().__init__(GPtr)",
"def FIMM(YKHO, **B2fa):\n ... | [
"0.816631",
"0.81641185",
"0.8013762",
"0.76137954",
"0.7422038",
"0.7393049",
"0.7352237",
"0.73437655",
"0.7111143",
"0.71019876",
"0.7099074",
"0.7096382",
"0.70223516",
"0.696418",
"0.6961817",
"0.6889772",
"0.6879775",
"0.68740934",
"0.68599087",
"0.68520594",
"0.6842619... | 0.0 | -1 |
Return a data point and its metadata information. | def OP2O(YKHO, d6pt):
C2il = YKHO.A_paths[d6pt % YKHO.A_size]
JzBy = hnIv.open(C2il).convert('L')
k0lF = YKHO.transform_A(JzBy)
frHY = d6pt % YKHO.B50_size
_aj2 = YKHO.B50_paths[frHY]
QF_l = hnIv.open(_aj2).convert('L')
BZ_n = YKHO.transform_B(QF_l)
DxyP = d6pt % YKHO.B100_size
g4DW ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AU8u(YKHO):\n return (YKHO.x, YKHO.y, YKHO.z)",
"def DQ1s(YKHO):\n AU8u = {'point': [YKHO.pt[0], YKHO.pt[1], YKHO.pt[2]], 'layer_height': YKHO.layer_height, 'mesh_normal': YKHO.mesh_normal.to_data(), 'up_vector': YKHO.up_vector.to_data(), 'frame': YKHO.frame.to_data(), 'extruder_toggle': YKHO.extruder_... | [
"0.6607296",
"0.6599758",
"0.65745145",
"0.6535129",
"0.65202826",
"0.63402396",
"0.6291092",
"0.6291092",
"0.61568433",
"0.61515397",
"0.6138252",
"0.6133588",
"0.6116883",
"0.60677505",
"0.6049698",
"0.60260797",
"0.5992455",
"0.59917825",
"0.59876746",
"0.59777427",
"0.596... | 0.0 | -1 |
Return `True` if ``value`` is a member of this search space, else `False`. A point is a member if all of its coordinates lie in the closed intervals bounded by the lower and upper bounds. | def FYXB(YKHO, BWXx: TensorType) -> uLKX[bool, ZylS.Tensor]:
if not Fugt(BWXx, YKHO._lower):
raise ValueError(f'Point must have the same shape as the Box bounds, got {BWXx.shape}, expected {YKHO._lower.shape}')
return ZylS.reduce_all(BWXx >= YKHO._lower) and ZylS.reduce_all(BWXx <= YKHO._upper) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJ0s(YKHO, BWXx):\n BPmf = False\n if YKHO.min != None and YKHO.max != None:\n if YKHO.min <= BWXx <= YKHO.max:\n BPmf = True\n if YKHO.values != None:\n if BWXx in YKHO.values:\n BPmf = True\n return BPmf",
"def nrOS(YKHO, BWXx: np.ndarray) -> bool:\n for G... | [
"0.7831904",
"0.70661855",
"0.6481586",
"0.63352835",
"0.63188195",
"0.6318524",
"0.62891877",
"0.6283665",
"0.6281761",
"0.6257974",
"0.62485486",
"0.62368715",
"0.62054247",
"0.62054247",
"0.6157577",
"0.6157577",
"0.6143361",
"0.6127679",
"0.6052992",
"0.60521984",
"0.6040... | 0.7242925 | 1 |
Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'. An empty string is returned if the value cannot be determined. | def Oz1B():
return Wju4().system | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(Emd4):\n Oz1B = a9EH.system()\n if Oz1B in nxQY:\n Oz1B = nxQY[Oz1B]\n return Oz1B",
"def pqhZ():\n fATW = HwRy.platform.lower()\n if fATW == 'linux2':\n fATW = 'linux'\n return fATW",
"def mToc():\n return PSrQ.osName_",
"def uR89() -> str:\n Oz1B = a9EH.system... | [
"0.8345971",
"0.8241422",
"0.82383716",
"0.8029699",
"0.7995332",
"0.7933993",
"0.79095614",
"0.7878901",
"0.7816576",
"0.77897096",
"0.77140045",
"0.7701038",
"0.76653016",
"0.7579017",
"0.7575624",
"0.7519562",
"0.7509163",
"0.7509163",
"0.7454606",
"0.7419475",
"0.741323",... | 0.70311445 | 43 |
Returns the system's release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined. | def Tl0b():
return Wju4().release | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZB9Y():\n if a9EH.linux_distribution()[0]:\n return ' '.join(a9EH.linux_distribution())\n elif a9EH.mac_ver()[0]:\n return '%s %s' % (a9EH.mac_ver()[0], a9EH.mac_ver()[2])\n else:\n return 'Unknown'",
"def qU1N():\n return a9EH.uname().system",
"def CgAV():\n return oBd2... | [
"0.7697108",
"0.72590387",
"0.71696675",
"0.6918059",
"0.6875784",
"0.6847798",
"0.6840346",
"0.68332213",
"0.6797963",
"0.660396",
"0.6601632",
"0.65981174",
"0.6579251",
"0.6561983",
"0.65532374",
"0.6530201",
"0.6521793",
"0.6508942",
"0.6502385",
"0.64877146",
"0.6485661"... | 0.617546 | 56 |
Returns the system's release version, e.g. '3 on degas' An empty string is returned if the value cannot be determined. | def DpZH():
return Wju4().version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv():\n iw9k = ['%(major)i.%(minor)i' % RoPu]\n if RoPu['micro']:\n iw9k.append('.%(micro)i' % RoPu)\n if RoPu['releaselevel'] != 'final':\n iw9k.append('%(releaselevel)s' % RoPu)\n return ''.join(iw9k)",
"def kaPv():\n return '%d.%d.%d' % bFMd",
"def w5up(YKHO):\n try:\n ... | [
"0.7700201",
"0.7485304",
"0.74701524",
"0.7468164",
"0.74496835",
"0.74377143",
"0.73149705",
"0.72955203",
"0.7295201",
"0.72883725",
"0.727167",
"0.7208091",
"0.7207224",
"0.7150865",
"0.7126908",
"0.7115683",
"0.71081066",
"0.70728755",
"0.70420396",
"0.7041854",
"0.70382... | 0.6968805 | 37 |
Returns the machine type, e.g. 'i386' An empty string is returned if the value cannot be determined. | def fwgd():
return Wju4().machine | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KYID(YKHO):\n return YKHO._machine_type",
"def fwgd():\n mDpI = a9EH.machine()\n if mDpI.startswith('arm'):\n return 'arm'\n else:\n return None",
"def misU():\n JACg = a9EH.machine()\n if JACg == 'i686':\n return 'i686'\n elif JACg == 'x86_64':\n return 'x8... | [
"0.7881856",
"0.7427668",
"0.6863126",
"0.661586",
"0.65854347",
"0.6507089",
"0.64510703",
"0.63936067",
"0.63524",
"0.63313717",
"0.63256544",
"0.629151",
"0.62874293",
"0.6267362",
"0.62508065",
"0.62348896",
"0.6232881",
"0.6228495",
"0.62009543",
"0.61916864",
"0.6173874... | 0.6898889 | 3 |
The function selects the topk most simialer items, columnwise | def c8X0(oLZ5, hz5a=100, PJWX=False):
assert oLZ5.shape[0] == oLZ5.shape[1], 'the score matrix is not square'
SWox = ITS7.time()
if PJWX:
print('generaing topk matrix')
nPrm, Pfcj, Nero = ([], [], [])
oLZ5 = oLZ5.tocsc()
fcYF = oLZ5.shape[0]
for W7ci in range(oLZ5.shape[0]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _kIN(tP_m, G1Hx):\n qPJi = tP_m.argsort(axis=1)[:, :G1Hx].tolist()\n return qPJi",
"def vGcY(zq5a, vb7U, G1Hx):\n i13C = oyIN.dot(vb7U, zq5a)\n FCKa = oyIN.argsort(i13C)\n FCKa = FCKa[-1:-1 - G1Hx:-1]\n return (FCKa, i13C)",
"def EnqK(DEZP, G1Hx):\n bExK = oyIN.argpartition(-DEZP, G1Hx... | [
"0.72856355",
"0.6772192",
"0.6732249",
"0.6719441",
"0.6704846",
"0.6687262",
"0.6493734",
"0.6449657",
"0.6418085",
"0.63955986",
"0.6393791",
"0.63423514",
"0.6310252",
"0.6283091",
"0.6270568",
"0.6266971",
"0.6261688",
"0.62480503",
"0.62043244",
"0.61917156",
"0.6146968... | 0.6228949 | 18 |
Get BERT features for the `text` | def lg8a(C3ST, l5Ny, XPHj=-1):
PuKl = b0j5.tokenize(l5Ny)
if len(PuKl) > 200:
PuKl = PuKl[0:200]
PgPo = b0j5.convert_tokens_to_ids(PuKl)
ZETh = ht2j.tensor([PgPo])
bGrB, bGrB, F71e, iBip = C3ST(ZETh)
fYIh = list(S_Ep(F71e[XPHj]).T)
return (F71e[XPHj][0], fYIh, PuKl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z2Nx(l5Ny):\n return C3ST.extract(l5Ny)",
"def F38S(l5Ny, CX35):\n V22M = dFss(l5Ny)\n bySB = {}\n for yzQ0 in CX35:\n bySB[yzQ0] = yzQ0 in V22M\n return bySB",
"def n9kp(Novh, b0j5, C3ST):\n rWru = uuUB(Novh)\n PuKl = b0j5.tokenize(rWru)[:512]\n PgPo = b0j5.convert_tokens_to... | [
"0.7402677",
"0.7323911",
"0.7015995",
"0.69010335",
"0.6272743",
"0.62242776",
"0.6162517",
"0.6133971",
"0.60780185",
"0.60120946",
"0.60109484",
"0.6001324",
"0.5937683",
"0.5903751",
"0.58373886",
"0.58295524",
"0.5826632",
"0.581496",
"0.5766751",
"0.5758596",
"0.5758062... | 0.7880739 | 0 |
Convert a string to raw bytes without encoding | def eQJI(KCHu):
OFuV = []
for U7YL in KCHu:
mLGw = ord(U7YL)
if mLGw < 256:
OFuV.append(tMMy('b', mLGw))
elif mLGw < 65536:
OFuV.append(tMMy('>H', mLGw))
else:
Fg_i = (mLGw & 16711680) >> 16
C7Ls = mLGw & 65535
OFuV.appe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VZEj(KCHu):\n if isinstance(KCHu, bytes):\n return KCHu\n return bytes(KCHu, encoding='latin_1')",
"def Ck8V(KCHu):\n if isinstance(KCHu, bytes):\n return KCHu\n else:\n return KCHu.encode('utf-8')",
"def D92J(vIwR):\n return ii9h(b'', vIwR)",
"def ZqkC(nPrm):\n uwb... | [
"0.7809434",
"0.777581",
"0.7731383",
"0.76541096",
"0.75558203",
"0.7517334",
"0.74570334",
"0.7431554",
"0.7420785",
"0.73332804",
"0.73037195",
"0.72042966",
"0.71964186",
"0.7194585",
"0.7186927",
"0.710661",
"0.7010463",
"0.6987726",
"0.6983025",
"0.6978843",
"0.68831444... | 0.6303861 | 62 |
Test for loading context from an invalid path. | def hyRW(YKHO, ZqHk):
a1OC = ZqHk / 'other'
a1OC.mkdir()
mXDZ = "Could not find any of configuration files '.kedro.yml, pyproject.toml'"
with trZe.raises(v6GC, match=ZbWC.escape(mXDZ)):
flRY(str(a1OC)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Brbm(YKHO, TCnf, bGrB):\n TCnf.side_effect = FileNotFoundError()\n with YKHO.assertRaises(FileNotFoundError) as AJ5d:\n HUu8 = LjvB()\n YKHO.assertEqual(AJ5d.exception, FileNotFoundError(HUu8.CONTEXT_FILE))",
"def N0Fi(YKHO) -> None:\n pmON = '/some/non/existing/path'\n with YKHO.as... | [
"0.6540689",
"0.64278746",
"0.64275765",
"0.6427475",
"0.64250255",
"0.6355664",
"0.6344772",
"0.6344571",
"0.6312738",
"0.6307764",
"0.6285292",
"0.6264428",
"0.6208635",
"0.6190709",
"0.6183984",
"0.6175314",
"0.61321884",
"0.6125353",
"0.6105022",
"0.60690105",
"0.60524386... | 0.71264845 | 0 |
Test for loading context from an invalid path. | def whzc(YKHO, PDQj):
pB3N = {'fake_key': 'fake_value', 'project_version': Y8ex}
VuZG(PDQj, pB3N)
mXDZ = "'.kedro.yml' doesn't have a required `context_path` field"
with trZe.raises(v6GC, match=ZbWC.escape(mXDZ)):
flRY(str(PDQj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hyRW(YKHO, ZqHk):\n a1OC = ZqHk / 'other'\n a1OC.mkdir()\n mXDZ = \"Could not find any of configuration files '.kedro.yml, pyproject.toml'\"\n with trZe.raises(v6GC, match=ZbWC.escape(mXDZ)):\n flRY(str(a1OC))",
"def Brbm(YKHO, TCnf, bGrB):\n TCnf.side_effect = FileNotFoundError()\n ... | [
"0.7126596",
"0.6540768",
"0.6427867",
"0.6427606",
"0.6425032",
"0.63555926",
"0.6344911",
"0.6344646",
"0.6312764",
"0.6307729",
"0.62852323",
"0.6264451",
"0.62087464",
"0.61907506",
"0.6183979",
"0.61753434",
"0.6132332",
"0.61252844",
"0.6105023",
"0.6069052",
"0.6052592... | 0.64275575 | 4 |
Test for loading context from an invalid path. | def GYYa(YKHO, PDQj):
pB3N = {'tool': {'kedro': {'fake_key': 'fake_value', 'project_version': Y8ex}}}
VuZG(PDQj, pB3N, yml=False)
(PDQj / '.kedro.yml').unlink()
mXDZ = "'pyproject.toml' doesn't have a required `context_path` field"
with trZe.raises(v6GC, match=ZbWC.escape(mXDZ)):
flRY(str(PD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hyRW(YKHO, ZqHk):\n a1OC = ZqHk / 'other'\n a1OC.mkdir()\n mXDZ = \"Could not find any of configuration files '.kedro.yml, pyproject.toml'\"\n with trZe.raises(v6GC, match=ZbWC.escape(mXDZ)):\n flRY(str(a1OC))",
"def Brbm(YKHO, TCnf, bGrB):\n TCnf.side_effect = FileNotFoundError()\n ... | [
"0.71264845",
"0.6540689",
"0.64278746",
"0.64275765",
"0.6427475",
"0.64250255",
"0.6355664",
"0.6344772",
"0.6344571",
"0.6312738",
"0.6307764",
"0.6285292",
"0.6264428",
"0.6208635",
"0.6190709",
"0.6183984",
"0.6175314",
"0.61321884",
"0.6125353",
"0.6105022",
"0.60690105... | 0.5822744 | 44 |
Test exception generation for empty template file | def MTO9(YKHO):
with TjTa('yaml_file_empty.t', 'yaml_file_empty.tmp.out') as pFW3:
def UvIR():
return pFW3.raised_exception
YKHO.assertTrue(u2h7.utils.ensure_function_succeed(UvIR, 5, 3))
YKHO.assertIsNotNone(pFW3.raised_exception)
YKHO.assertIsInstance(pFW3.raised_excep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0s6(YKHO):\n with YKHO.assertRaises(GTon):\n NlXC('SKB8.640193', ABS7(1))",
"def a0s6(YKHO):\n with YKHO.assertRaises(GTon):\n CDsp('1.SKB8.640193', bhUR(1))",
"def kL3Y(YKHO):\n _RR0 = Hy7s.path.join(h_xa, 'incomplete', 'incomplete.log')\n YKHO.assertRaises(wO9_.NoTestNames, wO9... | [
"0.6971016",
"0.688642",
"0.68261236",
"0.67710406",
"0.6770827",
"0.67004234",
"0.6689417",
"0.6594266",
"0.6573386",
"0.6557245",
"0.65283227",
"0.65247226",
"0.646004",
"0.64299965",
"0.6412845",
"0.63721037",
"0.6337155",
"0.6315295",
"0.6301395",
"0.6296042",
"0.6289831"... | 0.7851426 | 0 |
Init a Thread object. | def FIMM(YKHO, UhR0, n80H):
Esm4.__init__(YKHO)
YKHO.name = 'template_render_loop'
YKHO.daemon = True
YKHO.template_path = Hy7s.path.join(SIzQ, UhR0)
YKHO.output_path = Hy7s.path.join(SIzQ, n80H)
YKHO.event_loop = None
YKHO.raised_exception = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Esm4):\n T6FA.Thread.__init__(YKHO)",
"def FIMM(YKHO):\n Esm4.__init__(YKHO)\n YKHO.start()",
"def FIMM(YKHO):\n T6FA.Thread.__init__(YKHO)\n YKHO._want_abort = 0\n YKHO.worksQueue = g5js.Queue()\n YKHO.timedList = []\n YKHO.timedListLock = T6FA.Lock()\n YKHO.abortionE... | [
"0.81883866",
"0.73821926",
"0.7134052",
"0.7070083",
"0.69984823",
"0.6933961",
"0.6933961",
"0.68908215",
"0.68401635",
"0.6795925",
"0.67856073",
"0.67654353",
"0.6754059",
"0.67206377",
"0.67189276",
"0.6670278",
"0.66411453",
"0.6639359",
"0.65926397",
"0.658642",
"0.657... | 0.5852772 | 72 |
Initialize a _GenomicsSource for use with readers for genomics files. | def FIMM(YKHO, BuvW, xzCw, **DXIT):
super(FAyR, YKHO).__init__(file_pattern=BuvW, splittable=False, validate=xzCw)
YKHO.nucleus_kwargs = DXIT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, DA7V=None):\n YKHO.genomeReader = DA7V",
"def FIMM(YKHO, JZXy):\n YKHO._source = JZXy",
"def FIMM(YKHO, EfDb=None, H6tO=None):\n super(YKHO.__class__, YKHO).__init__(EfDb, H6tO)\n YKHO.image = None\n YKHO.genesAdd = 0\n YKHO.genesRem = 0\n YKHO.imported = False",
"def FIMM... | [
"0.6307445",
"0.5946417",
"0.59454685",
"0.5945089",
"0.5760283",
"0.5634762",
"0.5634762",
"0.5569867",
"0.55479383",
"0.55432045",
"0.5529948",
"0.5505287",
"0.5474581",
"0.5473627",
"0.53766054",
"0.5341568",
"0.53349316",
"0.53189886",
"0.5300569",
"0.529335",
"0.5288642"... | 0.6183628 | 1 |
Yield records returned by nucleus_reader. | def bvgk(YKHO, O38l, FghT):
if FghT.start_position():
raise ValueError('Start position not 0: %d' % FghT.start_position())
ALbs = FghT.start_position()
N5Pj = YKHO.nucleus_reader(O38l, **YKHO.nucleus_kwargs)
with N5Pj:
for AIu6 in N5Pj:
if not FghT.try_claim(ALbs):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2us(YKHO) -> jd6F[Ky4Y, None, None]:\n J8oL = [(Mkmy, YKHO.get_column(Mkmy).name) for Mkmy in YKHO.query.refs]\n vexM = YKHO.compose_query()\n RKD7.info('Query: %s', vexM)\n with YKHO.engine.connect() as w2B8:\n opBR = w2B8.execution_options(stream_results=True).execute(vexM)\n while... | [
"0.6892264",
"0.6665735",
"0.636002",
"0.63110304",
"0.6276594",
"0.6275283",
"0.6253503",
"0.61912435",
"0.6142751",
"0.61407644",
"0.6115483",
"0.6037173",
"0.5996096",
"0.5993023",
"0.59681994",
"0.596808",
"0.59375966",
"0.59198",
"0.5899513",
"0.5892537",
"0.5871404",
... | 0.56048024 | 42 |
Get the average complete progress. Therefore, the progress of all events divided by the number of events. Returns float | def c57_(YKHO):
J6E6 = len(YKHO.get_events())
if J6E6 > 0:
return sum([YKHO.get_average_progress(tvqc) for tvqc in YKHO.get_events()]) * 1.0 / J6E6
return 0.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XFfn(YKHO, tvqc=None):\n X8op = len(YKHO)\n uj0V = None\n if tvqc == YKHO.EVENT_TOTAL_PROGRESS:\n return YKHO.get_average_complete_progress()\n if tvqc is None:\n uj0V = sum(map(lambda Q6kx: Q6kx.get_average_progress(), YKHO.values()))\n else:\n uj0V = YKHO.get_sum_progress_... | [
"0.814884",
"0.71450186",
"0.7123173",
"0.7123173",
"0.7110102",
"0.7110102",
"0.7110102",
"0.6976692",
"0.6948955",
"0.6927273",
"0.6900741",
"0.68918276",
"0.6863581",
"0.68132913",
"0.67188114",
"0.66604567",
"0.6658337",
"0.66286844",
"0.66216004",
"0.661835",
"0.66103965... | 0.9078786 | 0 |
Given a path to a workspace, return paths to repositories in it. | def SIyu(pmON):
for vGaq in Hy7s.listdir(pmON):
vGaq = Hy7s.path.join(pmON, vGaq)
if Hy7s.path.isdir(vGaq):
if boHx(vGaq):
yield vGaq
else:
yield from SIyu(vGaq)
elif boHx(vGaq):
yield vGaq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XaA1(pmON):\n gLB0 = []\n Hy7s.chdir(pmON)\n uRGD = w8W8(pmON)\n if xkMr in uRGD:\n HCmI = zTot(False, pmON)\n gLB0.append((HCmI, pmON))\n return gLB0\n for Csk6 in uRGD:\n XP5J = Hy7s.path.join(pmON, Csk6)\n bjyK = ao1M(Csk6)\n if bjyK:\n HCm... | [
"0.6624237",
"0.6181718",
"0.61169624",
"0.6033933",
"0.60245323",
"0.5978644",
"0.587066",
"0.58556247",
"0.5774682",
"0.5752448",
"0.5721695",
"0.57034487",
"0.56457466",
"0.56132007",
"0.5611163",
"0.56089896",
"0.55935985",
"0.55160755",
"0.55032724",
"0.5500778",
"0.5496... | 0.60516804 | 3 |
Save entry to JSON file | def ydiX(Ux0P, ZfUD):
with l_X5(Hy7s.fsencode(str(Ux0P))) as MZf5:
with open(Hy7s.fsencode(str(Ux0P))) as CGAx:
na9T = qQXR.load(CGAx)
a69x = [YRbF for YRbF in filter(lambda epBp: epBp['uuid'] == str(ZfUD['uuid']), na9T)]
if len(a69x) == 0:
na9T.append(ZfUD)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wiPd(YKHO):\n with open(YKHO.file_path, 'w') as hOYR:\n qQXR.dump(YKHO.data, hOYR, indent=4, sort_keys=True)",
"def xkzz(YKHO, Ux0P):\n hGN5 = YKHO.to_dict()\n with open(Ux0P, 'w') as eHNT:\n qQXR.dump(hGN5, eHNT)",
"def xkzz(YKHO, nUeQ):\n with open(nUeQ, 'w+') as eHNT:\n ... | [
"0.7924711",
"0.7843761",
"0.7741946",
"0.75990045",
"0.75408524",
"0.7489421",
"0.74605817",
"0.7408117",
"0.73916906",
"0.73852557",
"0.73819953",
"0.73802346",
"0.7358507",
"0.7349808",
"0.7340515",
"0.7320343",
"0.7310677",
"0.7310677",
"0.7310677",
"0.73031205",
"0.73022... | 0.0 | -1 |
Change the current slide to the specified slide (via the slide TextBox). | def YkM7(YKHO, tvqc):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def naWO(YKHO, tvqc):\n pass",
"def se2i(YKHO, AU8u):\n Z4N3 = (AU8u[0] - YKHO.x, AU8u[1] - YKHO.y)\n YKHO.remove(YKHO.slide.rect)\n YKHO.slide.update(Z4N3)\n YKHO.insert(1, YKHO.slide.rect)\n YKHO.slide.rect.fill = YKHO.slide_color\n YKHO.title.text = f'{YKHO.name}:{int(YKHO.slide.value)}'"... | [
"0.6445182",
"0.6354256",
"0.62920386",
"0.6021219",
"0.59739137",
"0.5919385",
"0.58651716",
"0.5807023",
"0.5601016",
"0.5594786",
"0.55529064",
"0.55505466",
"0.55480325",
"0.5544927",
"0.54611963",
"0.5445087",
"0.5416229",
"0.53964806",
"0.53808254",
"0.52165246",
"0.518... | 0.6879944 | 0 |
Hides the forum window and unchecks the "Show Forum" menu item in the "View" menu. | def AhQi(YKHO, tvqc):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Afoa(YKHO):\n YKHO.window.run_command('hide_panel', {'panel': YKHO.full_name})",
"def Afoa(YKHO):\n YKHO.frame.Show(False)",
"def DJ9g(YKHO, tvqc):\n pass",
"def Afoa(YKHO):\n YKHO.visible = False",
"def Afoa(YKHO):\n YKHO.set_visible(False)",
"def Rzeh(YKHO):\n YKHO.visible = True"... | [
"0.647883",
"0.6414951",
"0.6347981",
"0.63441956",
"0.62634677",
"0.6248565",
"0.6208979",
"0.6188313",
"0.61760527",
"0.60208946",
"0.6015778",
"0.59674346",
"0.59467703",
"0.5914101",
"0.5834296",
"0.57905406",
"0.5781232",
"0.5780363",
"0.5777049",
"0.57531255",
"0.574943... | 0.0 | -1 |
Changes opacity of selected layer | def oQ5X(YKHO, tvqc):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _XKn(YKHO, BCp6):\n ZfUD = YKHO.item()\n if ZfUD is not None:\n qfpW = ZfUD.getColor()\n qfpW.setAlpha(BCp6)\n ZfUD.setColor(qfpW)",
"def KCGX(YKHO, bGrB):\n raise oCaA",
"def BCp6(YKHO):\n if YKHO.isIsolateHidden():\n return 0.1\n BCp6 = super(xn4r, YKHO).opacity... | [
"0.70105016",
"0.6834342",
"0.6815256",
"0.66322213",
"0.6507769",
"0.6504487",
"0.64808524",
"0.63673335",
"0.6270009",
"0.62619174",
"0.6247294",
"0.623107",
"0.6192486",
"0.6178794",
"0.61571085",
"0.6128702",
"0.60965335",
"0.60800827",
"0.60401654",
"0.6017393",
"0.59796... | 0.6864688 | 1 |
Returns project root folder. | def phdL() -> GkAb:
return GkAb(xAKo).parent.parent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L59w() -> GkAb:\n return lkbE",
"def ez41():\n return KfRp",
"def JC7M():\n CcN2 = Hy7s.getcwd().split('\\\\eles')[0]\n return CcN2",
"def phdL():\n return GkAb(xAKo).parent.parent",
"def phdL():\n return str(GkAb(xAKo).parent.parent)",
"def phdL():\n return str(GkAb(xAKo).parent... | [
"0.8855307",
"0.8816829",
"0.847031",
"0.8462203",
"0.84460264",
"0.84460264",
"0.8425219",
"0.8419815",
"0.83712715",
"0.8356894",
"0.83145547",
"0.8294601",
"0.828788",
"0.8250647",
"0.82296336",
"0.8205302",
"0.81644493",
"0.8087945",
"0.8083112",
"0.80584306",
"0.7945301"... | 0.8488286 | 5 |
The home page with webcam. | def kZiy():
return TvZl('video_test.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('index.html', title='Pi-Lapse', year=qcWV.now().year, image=CzP5.do.GetLastImage())",
"def yDvq():\n return TvZl('home/cam.html')",
"def n6iz(YKHO):\n if not Hy7s.path.exists('static'):\n Hy7s.mkdir('static')\n yDvq = _Lrd.Camera('static/webcam.png')\n yDvq.Start... | [
"0.78150177",
"0.7259388",
"0.72377515",
"0.7003676",
"0.6830796",
"0.68103164",
"0.6664987",
"0.66421866",
"0.6570881",
"0.6567656",
"0.6515781",
"0.6479413",
"0.64204144",
"0.6411538",
"0.6402749",
"0.6393225",
"0.6392908",
"0.63563985",
"0.63546693",
"0.6338067",
"0.633806... | 0.7083339 | 3 |
Set ups test loader and loads data | def HVlu(YKHO):
YKHO.test_loader = nPrm.Test_loader(YKHO.N_max, YKHO.n_per_conn, YKHO.data_path, YKHO.device)
YKHO.test_loader.load_data()
rYSz = oyIN.loadtxt(Hy7s.path.join(YKHO.data_path, 'scc_mean_std.csv'), delimiter=',')
YKHO.mean = ht2j.Tensor(rYSz[0])
YKHO.std = ht2j.Tensor(rYSz[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HVlu(YKHO):\n YKHO._save_test_data()",
"def FCbF(YKHO):\n YKHO.test_data_path = 'testing/test_data/'",
"def Baw8(Emd4):\n Emd4.run_mgr = WL52(['start', 'execute'], ['stop'])\n Emd4.load_mgr = DWkG(verbose=False, recursive=True)\n Emd4.load_mgr.set_addon_dirs(['./data'])\n Emd4.load_mgr.lo... | [
"0.7731667",
"0.7313849",
"0.71905166",
"0.71753466",
"0.7116051",
"0.7071192",
"0.7019473",
"0.70137405",
"0.70137405",
"0.70137405",
"0.70137405",
"0.69670415",
"0.69664717",
"0.69476265",
"0.69476265",
"0.6918654",
"0.69094384",
"0.6891531",
"0.68460226",
"0.68411195",
"0.... | 0.68372816 | 20 |
Normalize a header name. | def UuRg(mWFP):
return mWFP.lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XkwX(mWFP: str) -> str:\n mWFP = mWFP.lower()\n mWFP = ZbWC.sub('\\\\s', '-', mWFP)\n mWFP = ZbWC.sub('[^a-zA-Z0-9-]', '', mWFP)\n return mWFP",
"def dOHh(GIN8: str, SAEY='-') -> str:\n return SAEY.join((WKvO.capitalize() or '_' for WKvO in GIN8.split('_')))",
"def uD9m(YKHO):\n mWFP = YK... | [
"0.733931",
"0.6905193",
"0.68979824",
"0.68673354",
"0.67008847",
"0.67003983",
"0.67003983",
"0.67003983",
"0.6673018",
"0.66119725",
"0.6606038",
"0.6603155",
"0.6563133",
"0.6539501",
"0.65214735",
"0.6396969",
"0.63729584",
"0.6352426",
"0.62996686",
"0.6275212",
"0.6271... | 0.8751204 | 0 |
Returns maximum number of iterations for gradient descent. | def O3Fz():
return 2000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lawD(YKHO):\n return YKHO._max_em_iterations",
"def tlOG(YKHO) -> float:\n return float(YKHO.trainer_parameters['max_steps'])",
"def tlOG(YKHO):\n return float(YKHO.trainer_parameters['max_steps'])",
"def tlOG(YKHO):\n return float(YKHO.trainer_parameters['max_steps'])",
"def YEi6(YKHO):\n ... | [
"0.7174041",
"0.6682379",
"0.66471106",
"0.66471016",
"0.66270876",
"0.66089654",
"0.66074145",
"0.6603905",
"0.65376437",
"0.6486289",
"0.63755363",
"0.6303527",
"0.6291429",
"0.62789917",
"0.62404025",
"0.62404025",
"0.62389827",
"0.62362933",
"0.6204433",
"0.61927",
"0.616... | 0.7070852 | 1 |
>>> is_iterable([]) True >>> is_iterable(()) True >>> is_iterable([x for x in range(10)]) True >>> is_iterable((1, 2, 3)) True >>> g = (x for x in range(10)) >>> is_iterable(g) True >>> is_iterable("abc") False >>> is_iterable(0) False >>> is_iterable({}) False | def GfZ5(YEnM):
return isinstance(YEnM, (list, tuple, SnBA.GeneratorType)) or (not isinstance(YEnM, (int, str, dict)) and bool(getattr(YEnM, 'next', False))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kUz6(WKvO):\n try:\n iter(WKvO)\n return True\n except TypeError:\n return False",
"def kUz6(WKvO):\n try:\n iter(WKvO)\n except TypeError:\n return False\n return True",
"def GfZ5(vGaq):\n try:\n iter(vGaq)\n except TypeError:\n return ... | [
"0.7895537",
"0.7872792",
"0.78257865",
"0.76740617",
"0.7627081",
"0.7624022",
"0.7590455",
"0.75887215",
"0.7585927",
"0.7454823",
"0.74163187",
"0.74115425",
"0.73565316",
"0.72547644",
"0.7207713",
"0.7114762",
"0.7086665",
"0.7084388",
"0.7075423",
"0.7053886",
"0.702620... | 0.73794496 | 12 |
Generate a random string of fixed length | def TJC9(FVpJ=10):
KoG3 = vIwR.ascii_lowercase
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))",
"def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')",
"def e7Tf(u54L):\n return ''.join((tuKI... | [
"0.8680464",
"0.8573714",
"0.85486245",
"0.85297275",
"0.85209286",
"0.84331024",
"0.8432044",
"0.84157014",
"0.84120053",
"0.8389201",
"0.8345882",
"0.8343962",
"0.83406156",
"0.83348686",
"0.83240855",
"0.82986933",
"0.82911193",
"0.8281826",
"0.82818025",
"0.82811046",
"0.... | 0.0 | -1 |
Scale features of X according to feature_range. | def SZFh(YKHO, EcVT):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXpY(WKvO, C6zc=(-1, 1)):\n min, max = C6zc\n WKvO = WKvO.mul(max - min).add_(min)\n return WKvO",
"def NXpY(WKvO, C6zc=(-1, 1)):\n WKvO = WKvO * 2 - 1\n return WKvO",
"def vKRq(EcVT, C6zc=..., *, jDK_=..., jth9=...):\n ...",
"def Knkw(YKHO, bySB):\n assert isinstance(bySB, oyIN.ndar... | [
"0.81609005",
"0.81433034",
"0.7903771",
"0.7345295",
"0.7274094",
"0.69223624",
"0.6884785",
"0.68541414",
"0.6786072",
"0.67727387",
"0.66296446",
"0.6573912",
"0.64878356",
"0.64718354",
"0.636914",
"0.6338572",
"0.6317017",
"0.630757",
"0.63006496",
"0.6299736",
"0.629463... | 0.0 | -1 |
Transform features by scaling each feature to a given range. This estimator scales and translates each feature individually such that it is in the given range on the training set, i.e. between zero and one. | def vKRq(EcVT, C6zc=..., *, jDK_=..., jth9=...):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXpY(WKvO, C6zc=(-1, 1)):\n min, max = C6zc\n WKvO = WKvO.mul(max - min).add_(min)\n return WKvO",
"def t15Y(nPrm, i8Qz, oPsk, HBwv, GmIJ):\n bySB = oyIN.array(nPrm.features, dtype=float)\n for YRbF in GmIJ:\n BWXx = bySB[YRbF]\n if BWXx > i8Qz[YRbF]:\n BWXx = i8Qz[YRb... | [
"0.7591412",
"0.7253509",
"0.7188856",
"0.6898487",
"0.67834324",
"0.6693322",
"0.6654447",
"0.6632101",
"0.65817297",
"0.64924973",
"0.64843005",
"0.64689887",
"0.637908",
"0.6342756",
"0.6217517",
"0.6195506",
"0.6195263",
"0.61670625",
"0.61331373",
"0.6126643",
"0.6124032... | 0.6850895 | 4 |
Compute the maximum absolute value to be used for later scaling. | def WgYu(YKHO, EcVT, LVAh=...):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zMcq(YKHO):\n raise NotImplementedError",
"def JhlG(YKHO):\n return oyIN.nanmax(YKHO.abs_data)",
"def QdYG(YKHO):\n return YKHO._max_absolute_magnitude",
"def KSbM(YKHO) -> float:\n return oyIN.max(oyIN.abs([YKHO.error]))",
"def Wh3f(wEf2, ZU00=1):\n return max(min(wEf2, ZU00), -ZU00)",
... | [
"0.8457922",
"0.83062845",
"0.8170532",
"0.7905586",
"0.74248654",
"0.7405637",
"0.7335071",
"0.7326715",
"0.7239608",
"0.72089505",
"0.71862376",
"0.7174167",
"0.7163728",
"0.715378",
"0.71426505",
"0.7128576",
"0.70801014",
"0.7055785",
"0.69762975",
"0.69733053",
"0.693210... | 0.0 | -1 |
Online computation of max absolute value of X for later scaling. All of X is processed as a single batch. This is intended for cases | def NbAT(YKHO, EcVT, LVAh=...):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ftp8(m5Tx, Ep8u=1024):\n JCoA = oyIN.zeros(m5Tx.dshape, dtype=oyIN.float32)\n for WKvO, bGrB in TdZt(m5Tx, Ep8u, expand=True):\n JCoA = oyIN.maximum(JCoA, oyIN.abs(WKvO).max(axis=0))\n return JCoA",
"def max(YKHO):\n I05E = YKHO.client.map(ss84, YKHO.vecDask, pure=False)\n JCoA = -oyIN.... | [
"0.6996219",
"0.69768274",
"0.69459546",
"0.6934485",
"0.6880107",
"0.6838995",
"0.67724705",
"0.6733747",
"0.66889983",
"0.6581789",
"0.6568523",
"0.65352863",
"0.64993495",
"0.64868915",
"0.64800423",
"0.64721495",
"0.6458217",
"0.6456964",
"0.64534277",
"0.64241654",
"0.64... | 0.0 | -1 |
Scale each feature to the [1, 1] range without breaking the sparsity. This estimator scales each feature individually such that the maximal absolute value of each feature in the training set will be 1.0. This scaler can also be applied to sparse CSR or CSC matrices. | def BxeZ(EcVT, *, jDK_=..., jth9=...):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Knkw(YKHO, bySB):\n assert isinstance(bySB, oyIN.ndarray), 'Input is not a numpy array!'\n return YKHO.scaler.transform(bySB.reshape(1, -1))",
"def NXpY(WKvO, C6zc=(-1, 1)):\n WKvO = WKvO * 2 - 1\n return WKvO",
"def T8qq(YKHO):\n nPrm = qw7D([[0.564, 20.661], [-18.512, 41.168], [-0.009, 20.... | [
"0.72496974",
"0.6970486",
"0.6799068",
"0.67821556",
"0.6711588",
"0.67039096",
"0.6683673",
"0.6663225",
"0.6610411",
"0.6448253",
"0.64089227",
"0.6344876",
"0.63291645",
"0.6328882",
"0.6278327",
"0.6255703",
"0.61976403",
"0.61969185",
"0.61831164",
"0.6147232",
"0.61230... | 0.0 | -1 |
Compute the quantiles used for transforming. | def WgYu(YKHO, EcVT, LVAh=...):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7bE(YKHO):\n return YKHO._quantiles",
"def o7bE(YKHO, vexM: int):\n return YKHO.dist.quantiles(vexM)",
"def KduP(EcVT, *, jDK_=..., Xqiw=..., uamv=..., dve0=..., U1hP=..., t3eI=..., jth9=...):\n ...",
"def aM62(YKHO, lHyk):\n raise NotImplementedError()",
"def fgj3(YKHO):\n beOw = []\n ... | [
"0.7632843",
"0.75077456",
"0.7276324",
"0.6944732",
"0.6894197",
"0.6755116",
"0.6666638",
"0.6605933",
"0.6454587",
"0.6410958",
"0.63660324",
"0.63323736",
"0.6330814",
"0.6330365",
"0.6290474",
"0.6290474",
"0.6290474",
"0.62834036",
"0.6281298",
"0.6271829",
"0.62713695"... | 0.0 | -1 |
Transform features using quantiles information. This method transforms the features to follow a uniform or a normal distribution. Therefore, for a given feature, this transformation tends to spread out the most frequent values. It also reduces the impact of | def KduP(EcVT, *, jDK_=..., Xqiw=..., uamv=..., dve0=..., U1hP=..., t3eI=..., jth9=...):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aM62(bySB, KduP):\n bySB['FEMA_21'] = KduP(oyIN.nan_to_num(bySB.FEMA_21.astype(oyIN.float32)).reshape(-1, 1))\n bySB['FEMA_8'] = KduP(oyIN.nan_to_num(bySB.FEMA_8.astype(oyIN.float32)).reshape(-1, 1))\n bySB['FADRLo'] = KduP(oyIN.nan_to_num(bySB.FADRLo.astype(oyIN.float32)).reshape(-1, 1))\n bySB['F... | [
"0.7500894",
"0.6304288",
"0.6301823",
"0.6182658",
"0.6097836",
"0.60041714",
"0.6000332",
"0.59357613",
"0.5909969",
"0.5771541",
"0.5725014",
"0.572436",
"0.57161516",
"0.5702626",
"0.5662967",
"0.5642326",
"0.56178176",
"0.5591624",
"0.5577114",
"0.55763465",
"0.55454135"... | 0.71738434 | 1 |
A decorator for functions that define TensorFlow operations. The wrapped function will only be executed once. Subsequent calls to it will directly return the result so that operations are added to the graph only once. The operations added by the function live within a tf.variable_scope(). If this decorator is used with... | def PJvM(m2Zb, rrBf=None, *qIxc, **B2fa):
xC3W = '_cache_' + m2Zb.__name__
mWFP = rrBf or m2Zb.__name__
@property
@xBlr.wraps(m2Zb)
def mrMx(YKHO):
if not hasattr(YKHO, xC3W):
with ZylS.variable_scope(mWFP, *qIxc, **B2fa):
setattr(YKHO, xC3W, m2Zb(YKHO))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def knwO(mWFP=None):\n\n def mrMx(m2Zb):\n\n @xBlr.wraps(m2Zb)\n def h3Xc(*qIxc, **B2fa):\n with ZylS.name_scope(mWFP or m2Zb.__name__):\n return m2Zb(*qIxc, **B2fa)\n return h3Xc\n return mrMx",
"def cX3o(FYKK: Callable[..., U]) -> YrBT[..., KkY2]:\n\n @xB... | [
"0.7893209",
"0.7513416",
"0.73756826",
"0.7355218",
"0.7162491",
"0.6325369",
"0.61793435",
"0.61692065",
"0.61486983",
"0.61024624",
"0.61024624",
"0.6031894",
"0.60214275",
"0.6010123",
"0.6004921",
"0.59787714",
"0.59298766",
"0.58732486",
"0.5864417",
"0.5849395",
"0.584... | 0.73756117 | 3 |
Computes the accuracy over the k top predictions for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)",
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\... | [
"0.8330614",
"0.8285004",
"0.82375455",
"0.8229273",
"0.82195294",
"0.8185992",
"0.8184316",
"0.8174685",
"0.817106",
"0.8169587",
"0.8166069",
"0.8164076",
"0.816332",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176... | 0.7846885 | 95 |
Copy the source image into the framebuffer at the specified location. | def JzDN(WKvO, LVAh, TVTK, H2v2, nPrm):
if WKvO >= eT58 * 8:
return
if LVAh < -H2v2:
return
if WKvO < -TVTK:
return
if LVAh >= 8:
return
if WKvO + TVTK > eT58 * 8:
TVTK = eT58 * 8 - WKvO
G7_p = 0
if WKvO < 0:
TVTK = TVTK + WKvO
G7_p = -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n3xC(YKHO, zZcM, e1vZ):\n YKHO.copyTextureNode.setShaderInput('src', zZcM)\n YKHO.copyTextureNode.setShaderInput('dest', e1vZ)\n YKHO._executeShader(YKHO.copyTextureNode, (zZcM.getXSize() + 15) / 16, (zZcM.getYSize() + 15) / 16)",
"def JmFt(YKHO, f4IJ):\n f4IJ[xOrr:xOrr + YKHO.image.shape[0], xOr... | [
"0.64249265",
"0.6286526",
"0.61838186",
"0.61827546",
"0.6176883",
"0.5973708",
"0.59406966",
"0.5888412",
"0.56527984",
"0.5522438",
"0.55076605",
"0.54754335",
"0.5435013",
"0.5425795",
"0.5362075",
"0.5347571",
"0.527732",
"0.5276092",
"0.5243935",
"0.52410483",
"0.522624... | 0.47583205 | 99 |
If image is not 500x500 resize the contours for appropriate display | def egu3(YKHO):
NXpY = 500 / YKHO.images.shape[1]
print('Scaling images by {} for display'.format(NXpY))
YKHO.lumenCopy = (YKHO.lumen[0][:], YKHO.lumen[1][:])
YKHO.plaqueCopy = (YKHO.plaque[0][:], YKHO.plaque[1][:])
YKHO.stentCopy = (YKHO.stent[0][:], YKHO.stent[1][:])
YKHO.lumen = YKHO.resize(Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Einh(LNo8):\n return XC5k.resize(LNo8, (200, 66), interpolation=XC5k.INTER_AREA)",
"def Iowl(YKHO, LNo8, dsE5=False):\n MOUG = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2GRAY)\n if dsE5:\n XC5k.imwrite('debug_pics/gray_scale_contour.jpg', MOUG)\n Yjcv, Iowl, gEYm = XC5k.findContours(MOUG, XC5k.RET... | [
"0.65126145",
"0.6266808",
"0.62586683",
"0.6060555",
"0.6050624",
"0.60281247",
"0.6022835",
"0.6003653",
"0.59329927",
"0.59291726",
"0.5923624",
"0.59159005",
"0.5885434",
"0.5881396",
"0.5870009",
"0.5857393",
"0.5841759",
"0.5820415",
"0.5802517",
"0.57898796",
"0.576673... | 0.7953076 | 0 |
Loads weights from checkpoint. | def Nh79(YKHO, V1C0, CK6s=False):
WfUl = jlrk(V1C0)
if not YKHO.built:
_aVe = oyIN.array([[0, 1, 2]])
YKHO([_aVe])
DQaV = YKHO.trainable_weights + YKHO.non_trainable_weights
Qe7P = [YKHO._clean_weight_name(TUMM.name) for TUMM in DQaV]
Qe7P = [YKHO._convert_variable_name(H5ew) for H5e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SUd8(YKHO, ZGE9: str, vauY: int, pmON: str='./models/'):\n I710 = pmON + ZGE9 + '/checkpoint_' + str(vauY) + '/model_weights'\n YKHO.model.load_weights(I710)",
"def ks9j(cb_Q, bPTx):\n PfZw = Fz20.assign_from_checkpoint_fn(bPTx, Fz20.get_model_variables(), ignore_missing_vars=True)\n PfZw(cb_Q)",... | [
"0.7959396",
"0.7952753",
"0.7908471",
"0.7858304",
"0.7858304",
"0.7717808",
"0.7717808",
"0.7717808",
"0.75467175",
"0.75319225",
"0.75050163",
"0.74764127",
"0.731902",
"0.73156345",
"0.72877693",
"0.718835",
"0.71477747",
"0.7135577",
"0.71152645",
"0.7109566",
"0.7049629... | 0.700931 | 22 |
Add a new experience to memory. | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins)
YKHO.memory.append(tTpl)
YKHO.priorities.append(max(YKHO.priorities, default=1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YK... | [
"0.79568833",
"0.79042006",
"0.78795445",
"0.7577913",
"0.7570969",
"0.74478436",
"0.72697705",
"0.721816",
"0.71984994",
"0.71984994",
"0.71984994",
"0.71984994",
"0.71984994",
"0.71984994",
"0.71984994",
"0.71984994",
"0.71984994",
"0.71984994",
"0.71984994",
"0.71451885",
... | 0.7361023 | 6 |
Gets the sampling probabilities associated with each experience. | def wwRm(YKHO, jzdc):
with ht2j.no_grad():
WErR = oyIN.array(YKHO.priorities) ** jzdc / sum(oyIN.array(YKHO.priorities) ** jzdc)
return WErR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WErR(YKHO):\n raise NotImplementedError",
"def BcgI(YKHO):\n WErR = oyIN.arange(1, YKHO.population_size + 1, dtype=float)[::-1]\n WErR /= WErR.sum()\n return WErR",
"def BFeB(YKHO) -> x1iM:\n return YKHO._probs",
"def wwRm(YKHO):\n p9Vm = []\n for _Fqy in YKHO.codepool:\n if Y... | [
"0.7158673",
"0.69207996",
"0.67479706",
"0.66182864",
"0.65187925",
"0.64736277",
"0.64463925",
"0.6382768",
"0.6301898",
"0.6286138",
"0.620744",
"0.6203173",
"0.61712784",
"0.6167491",
"0.61107916",
"0.6107221",
"0.60906804",
"0.60776174",
"0.60683393",
"0.60683393",
"0.60... | 0.64533925 | 6 |