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 |
|---|---|---|---|---|---|---|
returns a random integer X, min <= X <= max | def LAYn(min, max):
return tuKI.randint(min, max) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RjKZ(min, max):\n return ajWY(min, max)",
"def LAYn(YKHO, min, max):\n return YKHO.randint(min, max)",
"def etv3(min, max):\n return tuKI.randint(min, max)",
"def Gzv6(YKHO, min=0, max=9999):\n return YKHO.generator.random.randint(min, max)",
"def Gzv6(T8H5: int, Np5D: int):\n return int... | [
"0.8291081",
"0.82171404",
"0.8122769",
"0.8089733",
"0.80462384",
"0.7992384",
"0.7948357",
"0.7900023",
"0.78547084",
"0.7849841",
"0.77683955",
"0.77652365",
"0.7750702",
"0.7622282",
"0.7613485",
"0.7606328",
"0.7563796",
"0.75491565",
"0.7542316",
"0.7533363",
"0.7482171... | 0.8324817 | 0 |
returns a random integer X, min <= X <= max | def LAYn(YKHO, min, max):
return YKHO.randint(min, max) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LAYn(min, max):\n return tuKI.randint(min, max)",
"def RjKZ(min, max):\n return ajWY(min, max)",
"def etv3(min, max):\n return tuKI.randint(min, max)",
"def Gzv6(YKHO, min=0, max=9999):\n return YKHO.generator.random.randint(min, max)",
"def Gzv6(T8H5: int, Np5D: int):\n return int(tuKI.... | [
"0.83246464",
"0.8290051",
"0.8123394",
"0.8090711",
"0.8047765",
"0.79938424",
"0.7949708",
"0.789859",
"0.7855168",
"0.7849688",
"0.7767373",
"0.776447",
"0.774966",
"0.76228577",
"0.7611915",
"0.7605507",
"0.7563509",
"0.75495434",
"0.7543276",
"0.7533613",
"0.74828494",
... | 0.8216741 | 2 |
returns a random variable with Exponential distribution with scale parameter a. Note that a is 1 per desired mean. Use Poisson to pass the mean value directly. | def Xk6L(YKHO, Bfyl):
jzdc = float(Bfyl[0])
return YKHO.expovariate(jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NnyN(jzdc, cy0R, CKLA, exwG):\n CkYf = cy0R ** (-jzdc) - CKLA ** (-jzdc)\n sj9w = lambda Z9rn: ((1 - Z9rn) * CkYf + CKLA ** (-jzdc)) ** (-1 / jzdc)\n X3OM = oyIN.random.uniform(size=exwG)\n return sj9w(X3OM)",
"def VBX1(ormZ, uBsB, JBMS, LY6W=gCKv):\n\n def Wwi1():\n return tuKI.expovar... | [
"0.7039586",
"0.66204906",
"0.66022146",
"0.6467886",
"0.63570094",
"0.62765074",
"0.6257153",
"0.62400985",
"0.62321687",
"0.6217092",
"0.62064445",
"0.6193378",
"0.61904025",
"0.61868817",
"0.61490023",
"0.6145551",
"0.6143078",
"0.6097653",
"0.6097653",
"0.6095652",
"0.606... | 0.5827856 | 35 |
returns a random variable with HyperExponential distribution with 2 branches. The probability of choosing branch 1 is Branch1Probability; the probability of choosing branch 2 is 1.0 Branch1Probability. The branch scale parameter is BranchA. Note that A is 1 per desired mean. Use HyperPoisson2 to pass the mean values di... | def P3hd(YKHO, Bfyl):
zCws = float(Bfyl[0])
N0BH = float(Bfyl[1])
SCR4 = float(Bfyl[2])
if YKHO.AuxRandom.random() < zCws:
return YKHO.expovariate(N0BH)
else:
return YKHO.expovariate(SCR4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ytu6(YKHO, Bfyl):\n zCws = float(Bfyl[0])\n m4iG = float(Bfyl[1])\n q1q4 = float(Bfyl[2])\n if YKHO.AuxRandom.random() < zCws:\n return YKHO.expovariate(1.0 / m4iG)\n else:\n return YKHO.expovariate(1.0 / q1q4)",
"def VBX1(YKHO, UqYS):\n return -1.0 * UqYS * epAf.log(tuKI.rand... | [
"0.7264315",
"0.5787114",
"0.56379426",
"0.56210256",
"0.5608247",
"0.56057245",
"0.5490317",
"0.5435813",
"0.5422554",
"0.5417497",
"0.5408034",
"0.53808695",
"0.5304729",
"0.5259642",
"0.5256652",
"0.5253168",
"0.5247466",
"0.52389234",
"0.5236533",
"0.52177626",
"0.5215359... | 0.7553122 | 0 |
returns a random variable with LogNormal distribution of ln(x) mean mu and of ln(x) standard deviation sigma. Note that both mu and sigma must be greater than 0. | def dGrF(YKHO, Bfyl):
yGTL = float(Bfyl[0])
WTkW = float(Bfyl[1])
return YKHO.lognormvariate(yGTL, WTkW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ys09(WKvO, yGTL, WTkW):\n return -(WKvO - yGTL) ** 2 / (2 * WTkW ** 2) - oyIN.log(WTkW)",
"def vlLo(yGTL=0, WTkW=1, vELP=0, PtQX=None, WLLB=10):\n PtQX = float('Inf') if PtQX is None else PtQX\n for bGrB in range(WLLB):\n BWXx = tuKI.lognormvariate(yGTL, WTkW)\n if vELP <= BWXx <= PtQX... | [
"0.7770264",
"0.77244836",
"0.761019",
"0.76062185",
"0.7349416",
"0.73385",
"0.7333972",
"0.7320999",
"0.73203737",
"0.7306404",
"0.7289112",
"0.72657716",
"0.72300124",
"0.72017014",
"0.7190213",
"0.718223",
"0.71607286",
"0.714702",
"0.71367925",
"0.71160126",
"0.7104803",... | 0.7226296 | 13 |
UNTESTED returns a random variable with Beta distribution of scale parameters a and b. Note that both a and b must be greater than 0, but smaller than 1. | def HPvE(YKHO, jzdc, Fg_i):
GmOx = 0
while GmOx == 0:
IrOQ = YKHO.AuxRandom.random()
KoVS = YKHO.AuxRandom.random()
WKvO = epAf.pow(IrOQ, 1.0 / jzdc)
LVAh = epAf.pow(KoVS, 1.0 / Fg_i)
if WKvO + LVAh <= 1.0:
GmOx = 1
return WKvO / (WKvO + LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UqYS(jzdc, Fg_i, zNig=None):\n if not U6YZ(jzdc):\n if not cbQ7.isscalar(jzdc):\n pass\n elif not cbQ7.isscalar(Fg_i):\n pass\n elif jzdc <= 0:\n pass\n elif Fg_i <= 0:\n pass\n else:\n return b1mA(jzdc, Fg_i, zNig).ge... | [
"0.79007757",
"0.7724606",
"0.7630553",
"0.76278526",
"0.740373",
"0.7361167",
"0.7342093",
"0.6988952",
"0.6968847",
"0.6921285",
"0.6880826",
"0.6846873",
"0.68392044",
"0.68281215",
"0.68229854",
"0.6817538",
"0.68158287",
"0.67962456",
"0.67906255",
"0.6689236",
"0.667512... | 0.69936323 | 7 |
Convert an array of strings to an array of integers. Convert an array of strings to an array of integers where the same string will always have the same integers value. | def A8UV(_CS_, Crrw):
LOJD = []
for vIwR in _CS_:
LOJD.append(Crrw.index(vIwR))
return LOJD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aYff(ezWE):\n OFAc = [0] * len(ezWE)\n for YRbF in range(len(ezWE)):\n OFAc[YRbF] = int(ezWE[YRbF])\n return OFAc",
"def aIYH(ezWE):\n OeK1 = []\n for ZfUD in ezWE:\n if isinstance(ZfUD, list):\n OeK1.append(aIYH(ZfUD))\n else:\n OeK1.append(int(ZfUD)... | [
"0.7753744",
"0.73799396",
"0.7239295",
"0.69561964",
"0.6932132",
"0.68994033",
"0.6841475",
"0.6836882",
"0.6827333",
"0.6824124",
"0.681484",
"0.6766886",
"0.67086065",
"0.6645434",
"0.664157",
"0.6638637",
"0.6606084",
"0.6597126",
"0.65841156",
"0.65721923",
"0.6534186",... | 0.6519109 | 21 |
Gets the query_type of this Query. | def kdD5(YKHO):
return YKHO._query_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kdD5(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'query_type')",
"def kdD5(YKHO) -> str:\n if YKHO._query_type:\n return YKHO._query_type\n if not YKHO._tokens:\n bGrB = YKHO.tokens\n s2mk: x1iM[GzaI] = list(filter(lambda eOtH: not eOtH.is_comment, YKHO._tokens or []))\n if not s... | [
"0.83207864",
"0.7789916",
"0.73037285",
"0.7124395",
"0.71182215",
"0.7113681",
"0.701716",
"0.6784173",
"0.6784173",
"0.6767689",
"0.6752652",
"0.6752652",
"0.6752652",
"0.6752652",
"0.6752652",
"0.6752652",
"0.6752652",
"0.66652983",
"0.66652983",
"0.66652983",
"0.6659533"... | 0.8891869 | 0 |
Gets the result_type of this Query. | def HfXH(YKHO):
return YKHO._result_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HfXH(YKHO) -> str:\n return YKHO._result_type",
"def VEOl(YKHO) -> UV1p:\n return YKHO._executionresulttype",
"def type(YKHO):\n return YKHO._result.type",
"def kdD5(YKHO):\n return YKHO._query_type",
"def type(YKHO):\n return YKHO._statement.type",
"def GmUl(YKHO, *qIxc):\n raise N... | [
"0.8447503",
"0.7823689",
"0.7759303",
"0.74423844",
"0.6888888",
"0.684552",
"0.6725917",
"0.6725917",
"0.66883546",
"0.667597",
"0.6675207",
"0.66538554",
"0.66534144",
"0.6586309",
"0.6532516",
"0.65320593",
"0.6454754",
"0.6454754",
"0.644737",
"0.63988745",
"0.63605154",... | 0.87421834 | 0 |
Aggregates relation information into a separate dictionary. | def ndAq(Rhv4: List[Dict[str, Any]]) -> x1iM[cuzp[str, ImMB]]:
jpc5 = []
he6h = [Kn3E for KCHu in Rhv4 for Kn3E in zip(KCHu['ner_ids'], KCHu['relation_roots'], KCHu['relations'])]
Fx_W = [YRbF for YRbF in he6h if YRbF[1] not in ['-1', '0']]
dlIJ = Hs6x.groupby(Fx_W, key=lambda WKvO: WKvO[0])
for bGr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UUE1(YKHO):\n azoT = {}\n for H5ew, BWXx in YKHO._get_dictable_relations().items():\n if H5ew in YKHO.get_hidden():\n continue\n koMu = None\n if hasattr(BWXx, 'to_dict'):\n koMu = BWXx.to_dict()\n elif BWXx is None:\n koMu = BWXx\n if k... | [
"0.7108245",
"0.7077643",
"0.6895481",
"0.66730285",
"0.6632323",
"0.6590614",
"0.6526263",
"0.65130955",
"0.64488065",
"0.64471954",
"0.6398976",
"0.6396269",
"0.6391942",
"0.6391176",
"0.63757354",
"0.6347393",
"0.6244846",
"0.62357146",
"0.61791503",
"0.61669713",
"0.61601... | 0.5712739 | 63 |
Add the root curlbomb arguments to a (sub)parser specify subcommand=None for the root parser, substitute the subcommand name for subparsers. This allows core arguments to be specified either before or after | def ReXx(wvEv, V0Dt=None):
def e1vZ(mWFP):
return ('' if not V0Dt else V0Dt + '_') + mWFP
N5z6 = wvEv.add_argument_group('These args modify the server')
N5z6.add_argument('-n', '--num-gets', metavar='N', help='Number of times to serve resource (default:1)', type=int, dest=e1vZ('num_gets'))
N5z6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mdSc(wvEv, nIh5):\n LoTP(nIh5)\n M3NK(nIh5)\n v_Nw(nIh5)\n ojOX(nIh5)",
"def boOn(GPtr):\n nIh5 = kx34.get(GPtr)\n for mWFP, oUZx in vAuD.commands.items():\n bo34.debug('Adds Command %s', mWFP)\n wm8D = nIh5.add_parser(mWFP, help=oUZx.short_description)\n oUZx.get_argum... | [
"0.6705683",
"0.6697277",
"0.66444623",
"0.654675",
"0.65395796",
"0.6532909",
"0.6517593",
"0.64687157",
"0.6454596",
"0.6441511",
"0.64007163",
"0.6398901",
"0.6397515",
"0.6395859",
"0.6377643",
"0.6375858",
"0.635066",
"0.63420624",
"0.63211226",
"0.6316723",
"0.6310311",... | 0.6479025 | 7 |
Return the experiment parametersets associated with this experiment. | def rfEP(YKHO, PoH5=None):
if PoH5 == Ve9k.EXPERIMENT or PoH5 is None:
return YKHO.experimentparameterset_set.filter(schema__type=Ve9k.EXPERIMENT)
else:
raise Ve9k.UnsupportedType | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A4sp(YKHO):\n return YKHO._param_sets()",
"async def paramsets(YKHO):\n async with YKHO.lock:\n return list(YKHO._state['paramsets'].keys())",
"def YdHK(YKHO):\n return YKHO.context.parameters_set()",
"def SGPK(YKHO) -> fHNa[XDS4]:\n return YKHO._parameters",
"def JXLR(YKHO):\n nN... | [
"0.78715354",
"0.7048634",
"0.7010817",
"0.6524204",
"0.6522243",
"0.63950044",
"0.6386182",
"0.6300113",
"0.6187879",
"0.61683226",
"0.6124103",
"0.6112573",
"0.6091015",
"0.6091015",
"0.6091015",
"0.6091015",
"0.6091015",
"0.60536486",
"0.60536486",
"0.60536486",
"0.6053648... | 0.7117682 | 1 |
Return the absolute storage path to the current ``Experiment`` | def kxCL(YKHO):
VUF1 = gCuF.FILE_STORE_PATH
return pmON.join(VUF1, str(YKHO.id)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t9sO():\n Mr0F = Hy7s.environ['EXPERIMENT_FILESTORE']\n t6ks = TEd8()\n return Qumu.join(Mr0F, t6ks)",
"def ZLjc(YKHO):\n return YKHO._experiment_directory",
"def S8SU(YKHO, *Ux0P):\n QqCf = YKHO.pget('trial-storage')\n if len(Ux0P) == 0:\n return QqCf\n return Hy7s.path.join(Qq... | [
"0.8076438",
"0.76194125",
"0.75206774",
"0.7466894",
"0.7400776",
"0.7117696",
"0.7062424",
"0.7039769",
"0.70018846",
"0.6956252",
"0.69316876",
"0.6863055",
"0.6822487",
"0.6793135",
"0.67860997",
"0.67652065",
"0.6763827",
"0.6758085",
"0.67576903",
"0.6757038",
"0.674722... | 0.68017155 | 13 |
Return the absolute url to the edit view of the current ``Experiment`` | def gB4H(YKHO):
return ('tardis.tardis_portal.views.edit_experiment', (), {'experiment_id': YKHO.id}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlzF(YKHO):\n return ('tardis.tardis_portal.views.view_experiment', (), {'experiment_id': YKHO.id})",
"def d1ji(YKHO):\n bD7m = '%s/edit' % YKHO.context.absolute_url()\n return bD7m",
"def hlzF(YKHO):\n return Rmd_('accounts:exp_edit', kwargs={'exp_pk': YKHO.pk})",
"def ciTK(YKHO):\n retur... | [
"0.79144496",
"0.76842815",
"0.7303273",
"0.71945786",
"0.7181244",
"0.71668756",
"0.70334524",
"0.6825161",
"0.6790232",
"0.6766362",
"0.6588941",
"0.6537692",
"0.6509594",
"0.6399447",
"0.632195",
"0.6250788",
"0.6221861",
"0.6206858",
"0.6174923",
"0.61238635",
"0.61155725... | 0.8862077 | 0 |
In the construtor we instantiate two nn.Linear module | def FIMM(YKHO):
super(wOed, YKHO).__init__()
YKHO.linear = ht2j.nn.Linear(1, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, input, Zode, hlel):\n super().__init__()\n YKHO.linear1 = U78l.Linear(input, Zode)\n YKHO.linear2 = U78l.Linear(Zode, hlel)",
"def FIMM(YKHO):\n super(K1Wl, YKHO).__init__()\n YKHO.linear1 = ht2j.nn.Linear(784, 100)\n YKHO.linear2 = ht2j.nn.Linear(100, 10)",
"def FIMM(YKHO):\n ... | [
"0.8167299",
"0.7899609",
"0.7899113",
"0.7853135",
"0.7775321",
"0.7767634",
"0.75670075",
"0.7539483",
"0.75254947",
"0.7458195",
"0.7436874",
"0.74365366",
"0.7436064",
"0.7413419",
"0.7383233",
"0.7249867",
"0.724937",
"0.7221932",
"0.7216637",
"0.71947694",
"0.7189918",
... | 0.75615984 | 7 |
Threadsafe way to get the current navdata. a Navdata object representing the drone's current state. | def Ubqn(YKHO):
with YKHO.__navdata_lock:
if YKHO.__navdata is None:
return None
return jth9.deepcopy(YKHO.__navdata) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E052(YKHO):\n return YKHO.state[:2]",
"def E052(YKHO):\n if YKHO._curr is None:\n raise LpwA.EmptyListError('Cannot return data because the doubly linked list is empty')\n else:\n RQvf = YKHO._curr.data\n return RQvf",
"def k8jS(YKHO):\n return YKHO._data",
"def Gzzd():\n... | [
"0.60748875",
"0.59682477",
"0.5885821",
"0.5830826",
"0.5828284",
"0.5664969",
"0.5635776",
"0.5607866",
"0.55893916",
"0.55416626",
"0.55235714",
"0.5489049",
"0.5478902",
"0.5464651",
"0.5443876",
"0.54408836",
"0.54113275",
"0.53912765",
"0.5386999",
"0.53800243",
"0.5373... | 0.77001446 | 0 |
Threadsafe way to get the current state vector. a cvMatrix representing the drone's current state. | def ja6o(YKHO):
with YKHO.__state_lock:
return YKHO.sys_state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8jS(YKHO):\n return KFJf.vctr1___getstate__(YKHO)",
"def k8jS(YKHO):\n return KFJf.vctr3___getstate__(YKHO)",
"def bGIA(YKHO):\n YKHO.compose()\n return SZI4.get_state(YKHO)",
"def bGIA(YKHO):\n YKHO.compose()\n return rw6T.get_state(YKHO)",
"def yvGc(YKHO):\n QTBn = LRR7(x=YKHO.x... | [
"0.6317947",
"0.62863797",
"0.6214719",
"0.61228967",
"0.60255533",
"0.6025073",
"0.5980065",
"0.590603",
"0.58919656",
"0.58770037",
"0.5849028",
"0.58091253",
"0.5783244",
"0.57606643",
"0.5743911",
"0.5736258",
"0.57293314",
"0.5691564",
"0.5633753",
"0.5628832",
"0.562165... | 0.0 | -1 |
Finds the first occurance of character in the maze and returns its postition | def njrE(Npgh, r8hN):
XtYH = 0
for rdlD in r8hN:
hLJ9 = 0
for bseI in rdlD:
if bseI == Npgh:
return (XtYH, hLJ9)
hLJ9 += 1
XtYH += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cgqa(TxAA):\n f7jp = 0\n for YRbF in range(0, len(TxAA)):\n for r845 in range(0, len(TxAA[0])):\n if TxAA[YRbF][r845] == 'P':\n f7jp = YRbF * len(TxAA[0]) + r845\n return f7jp",
"def Jeo4(TxAA, ZPEi):\n vsnM = len(TxAA) - 1\n FBNX = []\n for iVRZ... | [
"0.68713015",
"0.6849286",
"0.63389635",
"0.6322031",
"0.6293398",
"0.62515926",
"0.6247493",
"0.6246606",
"0.6100893",
"0.6086326",
"0.6074977",
"0.5976475",
"0.5926154",
"0.5925707",
"0.5904717",
"0.5889465",
"0.58635217",
"0.58453816",
"0.58362067",
"0.5832907",
"0.5828669... | 0.65501606 | 2 |
Returns true if maze[row][col] is passable | def WGC8(rdlD, fvDH, TxAA):
if 0 <= rdlD < len(TxAA) and 0 <= fvDH < len(TxAA[rdlD]):
DHvp = '#$M&?!,`'
for Z9rn in DHvp:
if TxAA[rdlD][fvDH] == Z9rn:
return False
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WUnf(TxAA, oeNL):\n return TwAD(TxAA, oeNL) != '#'",
"def OC7g(YKHO, rdlD, fvDH):\n return YKHO.maze[rdlD][fvDH] == GNtq",
"def JuW1(YKHO, VmPb):\n for cEyu in uNlj:\n BZN_ = uNlj[cEyu]\n A3mO = 2 * VmPb[0] + BZN_[0]\n ijL8 = 2 * VmPb[1] + BZN_[1]\n if YKHO.in_bound(A3m... | [
"0.7254179",
"0.70591974",
"0.70586085",
"0.6939502",
"0.6939172",
"0.6865644",
"0.68099385",
"0.6716602",
"0.6713295",
"0.654988",
"0.65239537",
"0.6507207",
"0.6489163",
"0.64639866",
"0.6445535",
"0.63859487",
"0.63792807",
"0.6347041",
"0.63444483",
"0.6341577",
"0.634112... | 0.66612047 | 9 |
!render() function helps in rendering index.html file. | def _1tc():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZ... | [
"0.82936054",
"0.8286854",
"0.82815385",
"0.82701963",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
"0.8262655",
... | 0.885874 | 0 |
Applies softmax function across all elements in input vector. | def N93T(WKvO):
TK2h = []
for YRbF in WKvO.T:
kLQb = oyIN.exp(YRbF - oyIN.max(YRbF))
Aofo = kLQb / kLQb.sum(axis=0)
TK2h.append(Aofo)
TK2h = oyIN.array(TK2h)
return TK2h.T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n WKvO = oyIN.transpose(WKvO)\n return oyIN.transpose(oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0))",
"def N93T(Ty9i):\n return oyIN.exp(Ty9i) / oyIN.sum(oyIN.exp(Ty9i))",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n retu... | [
"0.8232121",
"0.8219202",
"0.8218824",
"0.82173014",
"0.82024825",
"0.8197842",
"0.8183549",
"0.81762946",
"0.8164906",
"0.8158913",
"0.8158913",
"0.8158913",
"0.8158913",
"0.8158913",
"0.8154457",
"0.8151922",
"0.8151164",
"0.8150616",
"0.8150297",
"0.8138902",
"0.8138902",
... | 0.8021772 | 64 |
Calculates the cost associated with current neural net parameters. The cost is defined as the sum of the cross entropy cost, and the L2 cost. | def Y76u(vo6s, fuBA, r8hN):
QVjL = -oyIN.sum(oyIN.multiply(fuBA.T, oyIN.log(vo6s)) + oyIN.multiply(1 - fuBA.T, oyIN.log(1 - vo6s))) / r8hN
qBEU = (oyIN.sum(oyIN.square(eiBr)) + oyIN.sum(oyIN.square(krgz))) * (_Qec / (2 * r8hN))
return oyIN.squeeze(QVjL + qBEU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UM2M(YKHO):\n sSN_ = 1.0 / (2 * YKHO.m) * sum((YKHO.X.dot(YKHO.theta) - YKHO.y).flatten() ** 2)\n return sSN_",
"def Dnk2(YKHO, ipmg, fuBA, SGPK):\n r8hN = fuBA.shape[1]\n sSN_ = -1.0 / r8hN * oyIN.sum(oyIN.multiply(fuBA, oyIN.log(ipmg)) + oyIN.multiply(1 - fuBA, oyIN.log(1 - ipmg)))\n if YKHO... | [
"0.74505806",
"0.7216981",
"0.7213299",
"0.7172188",
"0.71694195",
"0.7126543",
"0.70415324",
"0.70304483",
"0.7001973",
"0.69902056",
"0.6975438",
"0.69466436",
"0.6932772",
"0.69202346",
"0.6870109",
"0.68532014",
"0.68470824",
"0.68417007",
"0.68162054",
"0.68161845",
"0.6... | 0.6712514 | 27 |
Updates a configuration store with the specified parameters. | async def begin_update(YKHO, TRLE: str, cAVU: str, oHbT: 'models.ConfigurationStoreUpdateParameters', **B2fa) -> A9GI['models.ConfigurationStore']:
X9Di = B2fa.pop('polling', True)
Emd4 = B2fa.pop('cls', None)
ztN4 = B2fa.pop('polling_interval', YKHO._config.polling_interval)
i1Oi = B2fa.pop('continuati... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, NArs):\n c1G8(YKHO.cfg, NArs)",
"def Xwn2(YKHO, _Fei):\n YKHO._cfg = _Fei",
"def YKky(YKHO, SGPK):\n for U6D_ in SGPK:\n YKHO.config_dict[U6D_] = SGPK[U6D_]",
"def pQ1M(YKHO, eJ0l):\n YZrg = YPp5(eJ0l)\n YKHO.config.update(YZrg)",
"def YYiC(YKHO, qXQx):\n pass",
"d... | [
"0.721741",
"0.62414515",
"0.62338686",
"0.6229811",
"0.62224525",
"0.617826",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
"0.6142142",
... | 0.61200655 | 66 |
A description of this node. A shorthand for TITLE attribute. | def ncko(YKHO):
if hasattr(YKHO._v_attrs, 'TITLE'):
return YKHO._v_attrs.TITLE
else:
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yoaG(YKHO):\n return YKHO.description",
"def yoaG(YKHO):\n return YKHO.description",
"def leAC(YKHO):\n return YKHO.__title",
"def yoaG(YKHO):\n return 'description!'",
"def JBZA(YKHO):\n return YKHO.name",
"def leAC(YKHO):\n return YKHO.__title",
"def leAC(YKHO) -> str:\n retu... | [
"0.76862067",
"0.76862067",
"0.7561846",
"0.751348",
"0.74844706",
"0.742869",
"0.7426043",
"0.74206454",
"0.7413438",
"0.7413438",
"0.7413438",
"0.7413438",
"0.7413438",
"0.74022293",
"0.73766893",
"0.7370865",
"0.7368246",
"0.73593116",
"0.73584604",
"0.7343686",
"0.734228"... | 0.0 | -1 |
Return query result as Dictionary (RealDict). Use this only for a query SELECT | def kZvd(YKHO, xDcj, nPrm=None, ps_8=True):
YKHO.__connect_db(return_dict=True)
Aofo = YKHO.__execute_query(xDcj, nPrm, ps_8)
YKHO.__close_connection()
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NsM8(YKHO, Pe9W: str) -> {}:\n return YKHO.do(Pe9W).as_dict()",
"def hati(YKHO, xDcj: psycopg2.sql.Composable) -> dict:\n with YKHO.conn:\n with YKHO.conn.cursor(cursor_factory=ehoX.extras.RealDictCursor) as DpUl:\n DpUl.execute(xDcj)\n return DpUl.fetchall()",
"def V4uu(... | [
"0.82359564",
"0.80104893",
"0.7681303",
"0.76757973",
"0.76395184",
"0.7625792",
"0.7363378",
"0.73504984",
"0.7312756",
"0.7301114",
"0.7242007",
"0.7214672",
"0.71869475",
"0.71581405",
"0.71568274",
"0.7155467",
"0.7140646",
"0.71282953",
"0.7109474",
"0.70516074",
"0.704... | 0.0 | -1 |
Return the original probability vector. Helpful for debugging. | def E1xV(YKHO):
exwG = len(YKHO._cdf)
XP5J = VNqG(exwG)
XP5J[0] = YKHO._cdf[0]
XP5J[1:] = YKHO._cdf[1:] - YKHO._cdf[:-1]
return XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZzwO(YKHO):\n YKHO.probability = oyIN.zeros(YKHO.y_index.shape[0])\n YKHO.probability[:] = 1.0 / YKHO.y_index.shape[0]\n return YKHO.probability",
"def uaJF(YKHO) -> float:\n return oyIN.random.random_sample()",
"def ZzwO(YKHO):\n oYsd = jth9.deepcopy(YKHO.y_counts)\n GO9N = oyIN.zeros(YK... | [
"0.6816369",
"0.6521098",
"0.6474601",
"0.6333464",
"0.62284905",
"0.62019026",
"0.6193431",
"0.617885",
"0.61688817",
"0.6120848",
"0.6114246",
"0.6085357",
"0.6084832",
"0.6049148",
"0.6029629",
"0.6009607",
"0.6009607",
"0.60054654",
"0.59878343",
"0.5974385",
"0.5955565",... | 0.57438666 | 48 |
Removes peaks with zero values from the input | def Jtpb(input):
Aofo = []
for YRbF in Ni9Y(len(input)):
if input[YRbF] != 0:
Aofo.append(input[YRbF])
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jvlR(XP5J, hksT):\n ZHfW = hksT['XREF'] != 0\n hksT['XREF'] = hksT['XREF'][ZHfW]\n hksT['ORDPEAK'] = hksT['ORDPEAK'][ZHfW]\n hksT['XPEAK'] = hksT['XPEAK'][ZHfW]\n hksT['EWPEAK'] = hksT['EWPEAK'][ZHfW]\n hksT['VRPEAK'] = hksT['VRPEAK'][ZHfW]\n hksT['LLPEAK'] = hksT['LLPEAK'][ZHfW]\n hksT... | [
"0.762708",
"0.7545804",
"0.67410576",
"0.6680163",
"0.6626845",
"0.65058076",
"0.6502499",
"0.6487258",
"0.6463621",
"0.6450292",
"0.64497876",
"0.64412165",
"0.64307535",
"0.64277583",
"0.6399392",
"0.6382365",
"0.63665044",
"0.6358166",
"0.6344746",
"0.63388693",
"0.630010... | 0.62632585 | 23 |
Checks to make sure the game is starting in a valid state. | def yr2J(YKHO):
q_w3, UpOt = YKHO.board.get_active_pieces()
Iiuh = [(YKHO.white_player, q_w3), (YKHO.black_player, UpOt)]
for oyg0, J8oL in Iiuh:
STUh = oyg0.color.name
if not J8oL:
raise DDFo('no {} pieces on board.'.format(STUh))
uX6i = J8oL[0][0]
if not isinsta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jKlz(YKHO):\n gnPz.raiseNotDefined()",
"def VKfX(YKHO) -> bool:\n QTBn = YKHO.state\n if QTBn is None:\n YKHO._logger.debug('Not got enough state to start yet... waiting... no state.')\n elif QTBn.dungeon_map is None:\n YKHO._logger.debug('Not got enough state to start yet... waitin... | [
"0.75163573",
"0.72482944",
"0.7130709",
"0.7062841",
"0.70465475",
"0.68431276",
"0.6796764",
"0.67138404",
"0.6635094",
"0.66124886",
"0.66065556",
"0.66065556",
"0.66065556",
"0.66065556",
"0.66065556",
"0.66065556",
"0.66065556",
"0.66065556",
"0.66065556",
"0.66065556",
... | 0.6703969 | 8 |
checks to see if the game has been completed (i.e. reached a checkmate or stalemate) | def d__8(YKHO):
pSuL = YKHO.white_player if YKHO.is_white_turn else YKHO.black_player
qEIV = YKHO.board.get_checking_pieces(pSuL.color)
if len(qEIV) > 0:
if pSuL.is_checkmated(YKHO.board):
YKHO.is_complete = True
elif pSuL.is_stalemated(YKHO.board):
YKHO.is_complete = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXlb(YKHO):\n return YKHO.game_details.is_finished()",
"def _SFc(YKHO):\n if len(YKHO.Board.empty_spots) > 0:\n return False\n else:\n return True",
"def ujiD(YKHO, iBIi):\n pass",
"def lo7l() -> bool:\n return True",
"def ppf0(YKHO, d7pR):\n if d7pR == 'checkmate':\n ... | [
"0.76991695",
"0.75391644",
"0.7515864",
"0.7465721",
"0.7464883",
"0.7451939",
"0.73398906",
"0.73379695",
"0.7306028",
"0.7303627",
"0.7249927",
"0.72317874",
"0.72238874",
"0.7200101",
"0.7191411",
"0.7190472",
"0.7150466",
"0.7147502",
"0.7141592",
"0.71345675",
"0.713188... | 0.8122436 | 0 |
Create an empty argparse.ArgumentParser. | def ioG2():
import argparse
return argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yl6v():\n return j1Jz.ArgumentParser(argument_default=j1Jz.SUPPRESS)",
"def yl6v(Emd4) -> j1Jz.ArgumentParser:\n ...",
"def yl6v() -> j1Jz.ArgumentParser:\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('-i', '--input', default='input/', help='Path to directory with input data.')\n wvEv.a... | [
"0.7893149",
"0.74147564",
"0.7337067",
"0.7308105",
"0.7291926",
"0.72465783",
"0.7172002",
"0.7134962",
"0.701594",
"0.70043194",
"0.6985213",
"0.6983164",
"0.6968492",
"0.696249",
"0.69585776",
"0.6929639",
"0.6895047",
"0.68902355",
"0.6887605",
"0.68774146",
"0.68554825"... | 0.691722 | 17 |
Create an argparse.ArgumentParser for run_mujoco.py. | def kYNS():
wvEv = ioG2()
wvEv.add_argument('--env', help='environment ID', type=str, default='Reacher-v2')
wvEv.add_argument('--env_type', help='type of environment, used when the environment type cannot be automatically determined', type=str)
wvEv.add_argument('--seed', help='RNG seed', type=int, defa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WoDI():\n wvEv = ioG2()\n wvEv.add_argument('--env', help='environment ID', type=str, default='Reacher-v1')\n wvEv.add_argument('--seed', help='RNG seed', type=int, default=0)\n wvEv.add_argument('--num-timesteps', type=int, default=int(1000000.0))\n return wvEv",
"def WoDI():\n wvEv = ioG2... | [
"0.7886465",
"0.7749764",
"0.7333066",
"0.7265336",
"0.72469264",
"0.7232287",
"0.7230637",
"0.71494395",
"0.71291703",
"0.7119457",
"0.70965755",
"0.7077322",
"0.70647824",
"0.70612425",
"0.70568657",
"0.705358",
"0.7050026",
"0.70403785",
"0.70328414",
"0.70280576",
"0.7020... | 0.0 | -1 |
finding zeros in the sudoku | def T3UX(iBIi, yv6U):
for rdlD in range(len(iBIi[0])):
for fvDH in range(len(iBIi)):
if iBIi[rdlD][fvDH] == 0:
yv6U[0] = rdlD
yv6U[1] = fvDH
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWuU(iBIi):\n C_ut = []\n for YRbF in range(9):\n for r845 in range(9):\n if iBIi[YRbF][r845] == 0:\n C_ut.append((YRbF, r845))\n return C_ut",
"def AbU4():\n for YRbF in range(9):\n for r845 in range(9):\n if iBIi[YRbF][r845] == 0:\n ... | [
"0.74879193",
"0.7253479",
"0.7248076",
"0.72283065",
"0.7184346",
"0.71727186",
"0.7167366",
"0.71137595",
"0.71098155",
"0.7078596",
"0.70380694",
"0.6993631",
"0.69752914",
"0.69615436",
"0.6926173",
"0.6884119",
"0.6881669",
"0.6802868",
"0.67324454",
"0.6728137",
"0.6722... | 0.0 | -1 |
Return whether the entity is offline. | def RRjc(YKHO) -> bool:
return YKHO.entity_data['flags']['offline'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uodt(YKHO):\n return YKHO._is_offline",
"def uodt(YKHO) -> bool:\n return YKHO._is_offline",
"def uodt(YKHO):\n nPrm = YKHO._api.get_api_data()\n return nPrm['offline']",
"def RRjc(YKHO):\n return YKHO._offline",
"def Zs2h(YKHO):\n return not YKHO.poll(tree='offline')['offline']",
"... | [
"0.82426506",
"0.8232865",
"0.8103719",
"0.7914102",
"0.7840679",
"0.7776628",
"0.75703573",
"0.7201389",
"0.71070343",
"0.710399",
"0.7013863",
"0.69892144",
"0.6811289",
"0.67706454",
"0.6722114",
"0.67184263",
"0.6683642",
"0.6626078",
"0.66230595",
"0.65645623",
"0.655346... | 0.8999372 | 0 |
Return the entity's settings. Note that these can change based on what entity type the entity is. | def gCuF(YKHO) -> dict:
return YKHO.entity_data['setting'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asJJ() -> dict:\n return xGWY",
"def gCuF(YKHO):\n return YKHO._settings_part.settings",
"def asJJ(YKHO):\n return YKHO.data",
"def gCuF(YKHO):\n return YKHO._bead_objects",
"def asJJ(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return YKHO.settings",
"def gCuF(YKHO):\n r... | [
"0.7043773",
"0.6801157",
"0.6752888",
"0.67456126",
"0.67348254",
"0.67348254",
"0.6709604",
"0.6693171",
"0.6658784",
"0.6658784",
"0.6658784",
"0.6652506",
"0.6646959",
"0.6623386",
"0.6617392",
"0.66027623",
"0.6571979",
"0.65606356",
"0.65524304",
"0.65451777",
"0.654177... | 0.84800935 | 0 |
Given an instance of the purepython class, return an instance of the mappable type. | def E2_7(YKHO, KAOR):
raise fwpV.PyforaNotImplementedError("'%s' not implemented yet for type '%s'" % (YKHO.mapPyforaInstanceToPythonInstance.__name__, type(YKHO).__name__)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAtt(kN9s):\n return fvCn.of_type(kN9s)",
"def l4AV(YKHO, *qIxc, **B2fa):\n return YKHO.get_type()(*qIxc, **B2fa)",
"def BcI9(YKHO):\n if YKHO.as_dict:\n return type(YKHO.__container)\n else:\n return type(YKHO)",
"def q1cs(KAOR: NamedTuple, IFr2: Mapping[Type, Type]=YzgH, *, Xy... | [
"0.683848",
"0.6304308",
"0.62832904",
"0.62651616",
"0.62602675",
"0.6100394",
"0.6094367",
"0.6049629",
"0.5995117",
"0.59942377",
"0.59942377",
"0.59652275",
"0.59652275",
"0.59638375",
"0.5955911",
"0.59428334",
"0.5859697",
"0.58297753",
"0.58245784",
"0.58120596",
"0.57... | 0.613253 | 5 |
Converts pounds to kilograms. Returns kg. | def Rbbs(Ae2G):
Nuw4 = Ae2G / 2.2
return Nuw4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def kilograms(YKHO, OaeV, _Aw1: float):\n if not epAf.isfinite(_Aw1):\n return await OaeV.send('Invalid amount')\n await OaeV.send('{}kg'.format(round(_Aw1 * 0.4535924, 1)))",
"def jou0():\n Omr3 = input('Give me the weight in pounds!\\n')\n _Aw1 = Omr3.split(',')\n Rruz = [int(WKvO) ... | [
"0.83694667",
"0.7174646",
"0.7167138",
"0.7167138",
"0.6828773",
"0.67943263",
"0.6606457",
"0.65277135",
"0.6421394",
"0.6400931",
"0.6394105",
"0.6272832",
"0.6258605",
"0.6255656",
"0.62551737",
"0.62386733",
"0.6234907",
"0.62303525",
"0.62286705",
"0.6222774",
"0.621815... | 0.68178684 | 5 |
Converts kilograms to pounds. Returns lb. | def BEjJ(Nuw4):
Ae2G = Nuw4 * 2.2
return Ae2G | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p5oH(Rruz):\n _Aw1 = Rruz * 2.20462262185\n return _Aw1",
"def p5oH(Rruz):\n _Aw1 = Rruz * 2.20462262185\n return _Aw1",
"def Rbbs(Ae2G):\n Nuw4 = Ae2G / 2.2\n return Nuw4",
"def jou0():\n Omr3 = input('Give me the weight in pounds!\\n')\n _Aw1 = Omr3.split(',')\n Rruz = [int(W... | [
"0.8171696",
"0.8171696",
"0.7529089",
"0.7346509",
"0.7225232",
"0.70502555",
"0.7025805",
"0.6819766",
"0.6796841",
"0.66485095",
"0.6623528",
"0.66214776",
"0.6616781",
"0.65654",
"0.65113705",
"0.6384083",
"0.63579",
"0.6352663",
"0.63314277",
"0.625264",
"0.6229982",
"... | 0.6957979 | 7 |
Test case for companies_company_id_connections_connection_id_push_credit_notes_post | def kkO8(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P_CE(YKHO):\n pass",
"def FXOL(YKHO):\n pass",
"def c1aG(YKHO):\n pass",
"def uTBV(YKHO):\n pass",
"def jdG6(YKHO):\n pass",
"def Zxrd(YKHO):\n pass",
"def dKkp(YKHO):\n pass",
"def KtK3(YKHO):\n pass",
"def krvE(YKHO):\n pass",
"def bi6q(YKHO):\n pass",
"def f... | [
"0.8300998",
"0.7608922",
"0.6949203",
"0.66951054",
"0.650541",
"0.6228696",
"0.5964232",
"0.5829025",
"0.57839215",
"0.5765726",
"0.5550367",
"0.5474172",
"0.54712325",
"0.54244286",
"0.5396055",
"0.5285605",
"0.5238234",
"0.52344847",
"0.52091837",
"0.51882285",
"0.5163402... | 0.9200057 | 0 |
Initialize the name and type attributes | def FIMM(YKHO, zqv0, N4Ku):
YKHO.name = zqv0
YKHO.type = N4Ku
YKHO.number_served = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.name = None\n YKHO.typeInfo['name'] = 'string'",
"def FIMM(YKHO, mWFP, zXgc, azoT=None):\n YKHO.name = mWFP\n YKHO.type = zXgc\n YKHO.attributes = azoT or {}",
"def FIMM(YKHO, _j8X='', JBov='', type=''):\n YKHO.type = type\n ':type : str'\n YKHO.attributeName = _j... | [
"0.7764382",
"0.7607132",
"0.7590666",
"0.7192981",
"0.7175818",
"0.7175818",
"0.7171976",
"0.7071849",
"0.70044965",
"0.69890016",
"0.69890016",
"0.69890016",
"0.69890016",
"0.69721067",
"0.69497335",
"0.69374907",
"0.6914549",
"0.6906052",
"0.689873",
"0.6891895",
"0.687473... | 0.0 | -1 |
Find the index of the first nonzero element in a. | def huPo(jzdc, WmM4):
d6pt = oyIN.flatnonzero(jzdc)
if len(d6pt) == 0:
return WmM4
else:
return d6pt[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riWP(jzdc):\n jzdc = XTiz.atleast_1d(jzdc)\n Aofo = XTiz.nonzero(jzdc)[0]\n return Aofo",
"def iEk4(ezWE):\n return oyIN.where(ezWE != 0)[0]",
"def zSy9(OxJJ):\n for G1Hx, ZfUD in enumerate(OxJJ):\n if not Ilch(ZfUD).is_near_zero():\n return G1Hx\n raise gysR(NTRO.NO_NON... | [
"0.78585047",
"0.74437803",
"0.7364366",
"0.7360215",
"0.69144535",
"0.6870166",
"0.6870166",
"0.66065365",
"0.66000426",
"0.6519404",
"0.6513455",
"0.64440376",
"0.6417483",
"0.6371339",
"0.63612604",
"0.63410366",
"0.63103247",
"0.6304472",
"0.6290243",
"0.6271784",
"0.6263... | 0.7482835 | 1 |
Normalize an image to the range (0, 1). | def Ekx3(LNo8, nEeK=0.1):
LNo8 = LNo8.astype(oyIN.float32) - oyIN.amin(LNo8)
LNo8 /= max(nEeK, oyIN.amax(LNo8))
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(LNo8):\n riv7 = -1000.0\n Vbtr = 400.0\n LNo8 = (LNo8 - riv7) / (Vbtr - riv7)\n LNo8[LNo8 > 1] = 1.0\n LNo8[LNo8 < 0] = 0.0\n LNo8 -= 0.5\n return LNo8",
"def NkkI(LNo8, vFVn=-1000.0, VypE=400.0):\n LNo8 = (LNo8 - vFVn) / (VypE - vFVn)\n LNo8[LNo8 > 1] = 1.0\n LNo8[LNo8 < 0... | [
"0.86228245",
"0.85522217",
"0.8522878",
"0.8442721",
"0.8417807",
"0.8416188",
"0.8405178",
"0.84041417",
"0.8390578",
"0.8379468",
"0.8370941",
"0.8292108",
"0.82175046",
"0.82175046",
"0.821171",
"0.81842846",
"0.8179337",
"0.8155793",
"0.8138659",
"0.80897456",
"0.8081565... | 0.7960724 | 31 |
Returns a random transaction accounts = [a,b,c] amount = [1100] | def N6Wa():
L8Py = ['a', 'b', 'c']
return 'transaction ' + L8Py[tuKI.randint(0, len(L8Py)) - 1] + ' ' + str(tuKI.randint(1, 100)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qEzy():\n while True:\n Kh6j = T74E()\n Kh6j.account = '0x%08X' % tuKI.randint(1048576, 16777216)\n Kh6j.merchant = tuKI.choice(FHnD).capitalize() + tuKI.choice(OqZa)\n Kh6j.amount = tuKI.randint(1, 1000)\n Kh6j.timestamp.seconds = int(ITS7.time())\n yield Kh6j",
... | [
"0.74194723",
"0.7013333",
"0.69575584",
"0.67056376",
"0.6680998",
"0.6591",
"0.6247117",
"0.62237966",
"0.61045605",
"0.6085271",
"0.6039709",
"0.5990411",
"0.5948447",
"0.59482837",
"0.5944727",
"0.5909917",
"0.590166",
"0.5885749",
"0.58751935",
"0.5864307",
"0.58601564",... | 0.79196143 | 0 |
Get the number of stages used for forward passes through the model. | def qFkc(YKHO):
return YKHO._stages.item() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AIZ9(YKHO):\n return YKHO._environment.num_steps()",
"def teUG(YKHO):\n if YKHO.numStages:\n return YKHO.numStages\n return 0",
"def rpgT(YKHO):\n if len(YKHO.key_frames) >= 2:\n return oyIN.sum([eHNT.steps for eHNT in YKHO.key_frames[1:]]) + 1\n else:\n return 0",
"de... | [
"0.7173982",
"0.71332604",
"0.6954834",
"0.6948246",
"0.6946566",
"0.6897563",
"0.67949504",
"0.6716597",
"0.6716597",
"0.6701024",
"0.66988957",
"0.6680982",
"0.66411144",
"0.6613023",
"0.6577296",
"0.6539762",
"0.65246886",
"0.6493742",
"0.6459845",
"0.644725",
"0.6420132",... | 0.7185987 | 0 |
Get a gradient decay factor, from 0 to 1, where 1 means that no gradients flow back through stages. | def PWYi(YKHO):
return YKHO._grad_decay.item() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TfYV(Cwt5, f9Ey, Aak1, BkRq):\n return Cwt5 / (1 + f9Ey * (Aak1 // BkRq))",
"def TfYV(Cwt5, f9Ey, Aak1, BkRq):\n return Cwt5 / (1 + f9Ey * oyIN.floor(Aak1 / BkRq))",
"def WMj5(YKHO):\n return oyIN.sqrt(YKHO.Gamma_down) * YKHO.a",
"def TfYV(Cwt5, f9Ey, Aak1, BkRq):\n Cwt5 = Cwt5 / (1 + f9Ey * ... | [
"0.7263259",
"0.7240437",
"0.71197665",
"0.7071064",
"0.6889746",
"0.66778004",
"0.66707605",
"0.66565526",
"0.6621683",
"0.6577382",
"0.6537026",
"0.6536384",
"0.65269446",
"0.65063363",
"0.6496124",
"0.64391917",
"0.64347637",
"0.6418926",
"0.639477",
"0.6387821",
"0.638257... | 0.7686895 | 0 |
Get a dict of quantities which are useful for training, including losses and entropy. | def iMwM(YKHO, g4y1, **B2fa):
N8L0 = YKHO(g4y1, **B2fa)[-1]
cwhV = ht2j.argmin(N8L0, dim=-1).view(-1)
BWz1 = ht2j.tensor([ht2j.sum(cwhV == YRbF) for YRbF in range(YKHO.options)])
BFeB = BWz1.float() / float(cwhV.shape[0])
oqGu = -ht2j.sum(ht2j.log(BFeB.clamp(1e-08, 1)) * BFeB)
return {'final': h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8nH(YKHO) -> cuzp[str, ZylS.Tensor]:\n return YKHO._train_stats",
"def G5Hw():\n SRYB = {}\n SRYB['iters'] = [10]\n SRYB['outputs'] = [6]\n SRYB['steps'] = [100, 250, 500]\n SRYB['hz'] = [1, 3, 5, 10, 12, 15, 20, 25, 30]\n Crrw = []\n KCHu = []\n mLGw = 1\n for H5ew in SRYB.key... | [
"0.6177535",
"0.6146121",
"0.6001744",
"0.59478843",
"0.58255184",
"0.5818019",
"0.5794084",
"0.5788124",
"0.5771164",
"0.5730786",
"0.572897",
"0.56945753",
"0.5669438",
"0.56665283",
"0.5633989",
"0.56328034",
"0.562556",
"0.56051767",
"0.56046283",
"0.558382",
"0.55751336"... | 0.71467733 | 0 |
Mock HTTP requests session. | def vfoF():
class MockHeaders:
"""Mock requests HTTP headers."""
@staticmethod
def QdZT(*qIxc, **B2fa):
"""Mock header update method."""
return
class MockSession:
"""Mock HTTP requests session."""
def FIMM(YKHO):
"""Initializes the ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DAfH(YKHO):\n jA2G = hN6e()\n ZG9D = TMAJ.Mock()\n ZG9D.json.return_value = {}\n jA2G.session = TMAJ.Mock()\n jA2G.session.request.return_value = ZG9D\n jA2G._request('GET', 'http://yikyak.com')\n jA2G.session.request.assert_called_with('GET', 'http://yikyak.com')",
"def P7jh(YKHO, bD7m,... | [
"0.76816547",
"0.7562377",
"0.7511895",
"0.7487086",
"0.7409495",
"0.7296877",
"0.7233097",
"0.7206808",
"0.7179618",
"0.7150038",
"0.71139956",
"0.710535",
"0.70895654",
"0.7083534",
"0.68939435",
"0.6875408",
"0.6857514",
"0.68408376",
"0.6813087",
"0.6774847",
"0.6771119",... | 0.8164183 | 0 |
Test that the _repr_pretty_ method is tested for callability and skipped if not. | def n6fJ():
XRqL = r7XA.pretty(herx())
QaFU = 'Dummy1(...)'
assert XRqL == QaFU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eB9N():\n with trZe.raises(ZeroDivisionError):\n r7XA.pretty(UN2i())",
"def H4zp(Jyyj, z6wh):\n assert repr(Jyyj) == z6wh",
"def LXV1(YKHO):\n YKHO.assertTrue('MockAnything' in repr(YKHO.mock_object))",
"def JHCy(hUdl):\n sWfS = mKke(hUdl['version1'])\n assert sWfS.is_repr('Base') i... | [
"0.694823",
"0.6595645",
"0.64756906",
"0.64711666",
"0.64134187",
"0.6316246",
"0.62875056",
"0.62717867",
"0.6241003",
"0.62030375",
"0.6156166",
"0.6093398",
"0.6085985",
"0.60799116",
"0.6077764",
"0.6070595",
"0.6040856",
"0.60367256",
"0.60260284",
"0.60198337",
"0.6016... | 0.7035037 | 0 |
Run length encoding of a binary 2D array. | def sKFL(WKvO):
N06i = oyIN.where(WKvO.T.flatten() == 1)[0]
J4b2 = []
THkp = -2
for Fg_i in N06i:
if Fg_i > THkp + 1:
J4b2.extend((Fg_i + 1, 0))
J4b2[-1] += 1
THkp = Fg_i
return J4b2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZFhA(YKHO, WKvO):\n MKlR = len(WKvO)\n yzQ0 = len(WKvO[0])\n ERVO = bytearray()\n YRbF = 0\n while YRbF < MKlR * yzQ0:\n wEf2 = WKvO[YRbF // yzQ0][YRbF % yzQ0]\n UHFx = 1\n while YRbF + 1 < MKlR * yzQ0 and wEf2 == WKvO[(YRbF + 1) // yzQ0][(YRbF + 1) % yzQ0]:\n UHF... | [
"0.67641157",
"0.64249355",
"0.62616915",
"0.61872005",
"0.6158787",
"0.607572",
"0.60694844",
"0.60518336",
"0.604038",
"0.60396314",
"0.598836",
"0.59855926",
"0.5969466",
"0.5879357",
"0.5860302",
"0.58266395",
"0.577368",
"0.5715287",
"0.56110996",
"0.55526805",
"0.553847... | 0.5484076 | 24 |
Return run length encoding of mask. | def wg2t(ZHfW, tAX0=0.5, oFI9=1.0):
yKxz = frG3.morphology.label(ZHfW > tAX0)
AzCm, JsQq = oyIN.unique(yKxz, return_counts=True)
if (JsQq < oFI9).any():
AzCm = AzCm[JsQq < oFI9]
for exwG in AzCm:
yKxz[yKxz == exwG] = 0
yKxz = frG3.morphology.label(yKxz > tAX0)
for YRb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LnuN(YKHO, ZHfW):\n NXmX = ZylS.reduce_sum(ZylS.cast(ZHfW, ZylS.int64), 1)\n return NXmX",
"def cvWE(YKHO):\n blK2 = YKHO.bitfield.mask(YKHO.bitfield_symbol).ones()\n if blK2 == 0:\n raise TROz(\"Could not find argument symbol %c in bitfield '%s'\", YKHO.symbol, str(YKHO.bitfield))\n re... | [
"0.7564634",
"0.69950056",
"0.68326676",
"0.6605354",
"0.656044",
"0.64387727",
"0.6276371",
"0.62615794",
"0.6204207",
"0.61934125",
"0.61629176",
"0.6091291",
"0.6019655",
"0.60053927",
"0.59982264",
"0.5983369",
"0.5983369",
"0.5983369",
"0.5926346",
"0.5912271",
"0.591106... | 0.0 | -1 |
Adds the single item 'addition' to the array. If addition is already is array, remove it and reinsert it at the front. If the array + addition is over self.count, pop items until it isn't. | def XVRe(YKHO, rpxx):
if rpxx in YKHO.recentArray:
YKHO.recentArray.remove(rpxx)
YKHO.recentArray.insert(0, rpxx)
YKHO.Trim() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, ezWE):\n YKHO._arr += ezWE",
"def CaoY(YKHO, rpxx):\n if isinstance(rpxx, YKHO._RecordType):\n YKHO.append(rpxx)\n else:\n YKHO.extend(rpxx)\n return YKHO",
"def H2v5():\n QyXt.push(QyXt.pop() + QyXt.pop())",
"def H2v5(qw7D, ZfUD, d6pt=None):\n return F4S8(qw7D,... | [
"0.6624414",
"0.64207006",
"0.640015",
"0.6147556",
"0.5928731",
"0.58977664",
"0.58797973",
"0.57296777",
"0.5727266",
"0.57263756",
"0.57128584",
"0.5636463",
"0.56314737",
"0.56106436",
"0.5587498",
"0.5559138",
"0.5521292",
"0.54972035",
"0.54896206",
"0.54720116",
"0.543... | 0.8022948 | 0 |
Returns true if array's empty, false if it isn't. | def cjJJ(YKHO):
if len(YKHO.recentArray) != 0:
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6Wr(qw7D=[]):\n return qw7D is None or len(qw7D) == 0",
"def aPLz(ezWE):\n return dGHD(ezWE) or len(ezWE) == 0",
"def FBfn(YKHO) -> bool:\n if YKHO._data == []:\n return True\n else:\n return False",
"def FBfn(YKHO):\n return YKHO._data == []",
"def FBfn(YKHO):\n lJj5.c... | [
"0.8768455",
"0.8533463",
"0.82350004",
"0.81615335",
"0.8057581",
"0.80401856",
"0.8032588",
"0.8032588",
"0.80068487",
"0.80058736",
"0.7973112",
"0.7969643",
"0.79241514",
"0.79058063",
"0.79058063",
"0.78532386",
"0.78488237",
"0.78488237",
"0.7841519",
"0.7841519",
"0.78... | 0.8232145 | 3 |
Return True if str is enclosed by a string mark | def UjfH(YKHO, str):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s1Ko(OPMd: str) -> bool:\n if OPMd.startswith('\"\"\"') and OPMd.endswith('\"\"\"'):\n return True\n elif OPMd.startswith(\"'''\") and OPMd.endswith(\"'''\"):\n return True\n return False",
"def FFJ3(YKHO):\n return YKHO.isopener[YKHO.indexbracket] and YKHO.rawtext[YKHO.bracketing[Y... | [
"0.67067736",
"0.66907984",
"0.65460557",
"0.6491468",
"0.6362539",
"0.6314562",
"0.6304417",
"0.62874085",
"0.62839085",
"0.62648255",
"0.6260737",
"0.6255498",
"0.62103915",
"0.61875",
"0.6182523",
"0.617343",
"0.61577433",
"0.61350405",
"0.6106715",
"0.61025155",
"0.610168... | 0.6777507 | 0 |
Returns the argparse parser. | def EpPs():
wvEv = j1Jz.ArgumentParser(description='The auditor daemon is the one responsable for the detection of inconsistencies on storage, i.e.: dark data discovery.', formatter_class=j1Jz.RawDescriptionHelpFormatter)
wvEv.add_argument('--nprocs', help='Number subprocess, each subprocess check a fraction of... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C5D6(YKHO):\n wvEv = j1Jz.ArgumentParser()\n return wvEv",
"def xuJu():\n return j1Jz.ArgumentParser()",
"def EpPs():\n wvEv = B4X0.ArgumentParser(description=__doc__)\n return wvEv",
"def z0ba(YKHO, **B2fa):\n import argparse\n VqfF = argparse.ArgumentParser(prog=B2fa['argv0'], desc... | [
"0.85035425",
"0.8339195",
"0.8329782",
"0.81639653",
"0.8091208",
"0.8059073",
"0.80454946",
"0.8028507",
"0.80031544",
"0.79891807",
"0.79811686",
"0.79720825",
"0.79710186",
"0.7962347",
"0.7949426",
"0.793106",
"0.79228675",
"0.7917183",
"0.7883643",
"0.7860764",
"0.78562... | 0.0 | -1 |
A method to decode access token from header | def yXnH(eOtH):
try:
pB3N = DvJO.decode(eOtH, Hy7s.environ['SECRET'])
return pB3N['sub']
except DvJO.ExpiredSignatureError:
return 'Expired token. Please login to get a new token'
except DvJO.InvalidTokenError:
return 'Invalid token. Please register or login' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yXnH(eOtH):\n import jwt\n import re\n import gwcomm as JZ1r\n eOtH = re.sub('Bearer ', '', eOtH)\n _E99 = jwt.decode(eOtH, JZ1r.sysconf.get('secret_key')).get('identity', {})\n return (_E99, eOtH)",
"def yXnH(qv1X, ihSY):\n return DvJO.decode(ihSY, qv1X.settings.get('giriasecret', 'gala... | [
"0.75579756",
"0.72641176",
"0.720441",
"0.7080302",
"0.70756876",
"0.70303106",
"0.7026593",
"0.6988194",
"0.69623137",
"0.6955247",
"0.6917289",
"0.68917835",
"0.6880773",
"0.6873086",
"0.6852288",
"0.68384594",
"0.6837069",
"0.68325365",
"0.6722704",
"0.6716992",
"0.670978... | 0.0 | -1 |
Save a user to the database | def xkzz(YKHO):
NCls.session.add(YKHO)
NCls.session.commit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _vhh(CBIr):\n CBIr.save_user()",
"def qQaj(CBIr):\n CBIr.save_user()",
"def qQaj(CBIr):\n CBIr.save_user()",
"def qQaj(CBIr):\n CBIr.save_user()",
"def qQaj(CBIr):\n mv1M.save_user(CBIr)",
"def qQaj(CBIr):\n mv1M.save_user(CBIr)",
"def qQaj(YKHO, CBIr):\n YKHO.database.save_use... | [
"0.8806736",
"0.8780788",
"0.8780788",
"0.8780788",
"0.8753213",
"0.8753213",
"0.8509042",
"0.8478285",
"0.840069",
"0.818848",
"0.81530786",
"0.8093195",
"0.8036996",
"0.8036996",
"0.8026114",
"0.79247284",
"0.78576136",
"0.78339726",
"0.7799784",
"0.7714159",
"0.7655548",
... | 0.0 | -1 |
Save an order to the database | def xkzz(YKHO):
NCls.session.add(YKHO)
NCls.session.commit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO, T4Wy):\n pass",
"def xkzz(YKHO):\n super(L9Jq, YKHO).save()\n try:\n Kh6j = T74E.objects.get(transaction_type=YKHO.order_type, transaction_id=YKHO.id)\n except T74E.DoesNotExist:\n Kh6j = T74E.objects.create(transaction_id=YKHO.id, transaction_type=YKHO.order_type, date_o... | [
"0.83681226",
"0.72339636",
"0.6998506",
"0.6917346",
"0.68391526",
"0.68391526",
"0.68391526",
"0.68391526",
"0.6828482",
"0.6812411",
"0.67692006",
"0.6726572",
"0.6687405",
"0.66475016",
"0.6630446",
"0.6630446",
"0.6630446",
"0.6630446",
"0.6630446",
"0.6630446",
"0.66304... | 0.6134785 | 95 |
Simple function to add 2 numbers | def H2v5(WKvO, LVAh):
return WKvO + LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6lN(_1qI, zDMu):\n H2v5 = zDMu + _1qI\n return H2v5",
"def V6lN(_1qI, zDMu):\n Aofo = _1qI + zDMu\n return Aofo",
"def H2v5(B58t, XfrR):\n return B58t + XfrR",
"def V6lN(WKvO, LVAh):\n epBp = WKvO + LVAh\n return epBp",
"def H2v5(gdXy, DWMs):\n return gdXy + DWMs",
"def H2v5(... | [
"0.8869294",
"0.8778006",
"0.8749896",
"0.8732712",
"0.86953485",
"0.86262417",
"0.8619936",
"0.8619936",
"0.8619936",
"0.8619936",
"0.8619936",
"0.86133873",
"0.86133873",
"0.8588402",
"0.8550829",
"0.852709",
"0.8517946",
"0.8507592",
"0.8496325",
"0.84820646",
"0.845376",
... | 0.81681705 | 67 |
Method for calculating diameter of enclosing triangle circle. Apparently the polygon function creates a circle of certain diameter and then creates a polygon inside, so we have to calculate the triangle axes lengths ourselves. | def pMzu(YKHO):
U8mv = epAf.radians(30)
return YKHO.triangle_side_len / epAf.cos(U8mv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAU9(YKHO):\n return int(epAf.sqrt(epAf.pow(YKHO._length, 2) + epAf.pow(YKHO._width, 2)))",
"def NrEI(YKHO):\n Ty9i = list(YKHO.vertices)\n kgDL = [(Ty9i[YRbF], Ty9i[r845]) for YRbF in range(len(Ty9i) - 1) for r845 in range(YRbF + 1, len(Ty9i))]\n ONmG = list()\n for KCHu, tTpl in kgDL:\n ... | [
"0.6834181",
"0.6763742",
"0.6622658",
"0.6448491",
"0.6447078",
"0.6447078",
"0.6447078",
"0.6447078",
"0.641956",
"0.6337673",
"0.6233769",
"0.62095237",
"0.61379236",
"0.6108894",
"0.6101017",
"0.60943514",
"0.6056786",
"0.60423464",
"0.6013007",
"0.6001977",
"0.5958041",
... | 0.7545037 | 0 |
Create a CadQuery object out of this FanBase object. | def eLpg(YKHO):
Xvg9 = YKHO._calc_inner_ring_radius()
FlUN = NT9e.Workplane('front').circle(Xvg9).extrude(YKHO.body_inner_thickness)
nnu1 = YKHO._calc_triangle_polygon_diam()
tXIo = FlUN.faces('>Z').workplane(-YKHO.body_inner_thickness).polygon(3, nnu1, forConstruction=True).vertices()
YKHO._create_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xDcj(Emd4):\n return Emd4().new_query()",
"def _aLO(YKHO):\n return _aLO(YKHO)",
"def LYJf(YKHO, ZAA3=-1, azLd=-1):\n YKHO._check_built()\n return Jlhy(YKHO._table.construct_query_object(ZAA3, azLd), YKHO)",
"def axXe(YKHO):\n pass",
"def uDRg(YKHO):\n w2B8 = YKHO.get_connection()\n ... | [
"0.66999304",
"0.63622826",
"0.6359788",
"0.6124582",
"0.6104124",
"0.60565096",
"0.60222",
"0.59716713",
"0.5964179",
"0.584745",
"0.58332676",
"0.58282995",
"0.58125734",
"0.57683986",
"0.57562923",
"0.57490367",
"0.5744829",
"0.5744829",
"0.57188326",
"0.5715776",
"0.57115... | 0.0 | -1 |
Test that transform will raise an error if _replacement_values is an empty dict. | def EeoP(YKHO):
jQ3Z = Csk6.create_df_9()
WKvO = j7zZ(quantiles={'a': [0.2, 1], 'b': [0, 1]})
WKvO.capping_values = {'a': [1, 4]}
with trZe.raises(ValueError, match='_replacement_values attribute is an empty dict - perhaps the fit method has not been run yet'):
WKvO.transform(jQ3Z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nKOg(YKHO):\n jQ3Z = yzX6()\n zCiL = YKHO.create_ColumnConversions_class(jQ3Z)\n ZTwH = list(jQ3Z[_t7E].unique())[:-1]\n aZRo = len(ZTwH)\n nP5O = list(range(aZRo))\n K6m2 = dict(zip(ZTwH, nP5O))\n zCiL.map_values(_t7E, K6m2, exhaustive=True)\n CVJd = list(zCiL.df[_t7E].unique())\n Y... | [
"0.62461454",
"0.6199822",
"0.61100465",
"0.6037996",
"0.6031529",
"0.60148466",
"0.5954913",
"0.5931455",
"0.58436877",
"0.58436877",
"0.584116",
"0.58235246",
"0.58199483",
"0.5795057",
"0.57442516",
"0.5739427",
"0.5737753",
"0.5732177",
"0.5719109",
"0.5716307",
"0.570664... | 0.7417839 | 0 |
Test that an exception is raised if there are null values in sample_weight. | def VpyY(YKHO):
WKvO = j7zZ(capping_values={'a': [2, 10]})
with trZe.raises(ValueError, match='null values in sample weights'):
WKvO.weighted_quantile([2, 3, 4, 5], [0, 1], [3, oyIN.NaN]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uVv6(YKHO, xF06: Optional[np.ndarray]) -> None:\n if xF06:\n assert xF06.ndim == 1, 'sample_weight should be a 1d vector.'",
"def QEIe():\n EcVT = oyIN.arange(100)[:, oyIN.newaxis]\n LVAh = oyIN.ones(100)\n LVAh[:50] = 0.0\n M_NZ = HmMl(random_state=0)\n xF06 = oyIN.random.rand(100, ... | [
"0.77987784",
"0.731441",
"0.724491",
"0.71059144",
"0.6949312",
"0.6906077",
"0.68376994",
"0.6661958",
"0.6658887",
"0.66415703",
"0.66061926",
"0.6566565",
"0.6426996",
"0.6417058",
"0.64057606",
"0.63821566",
"0.6371364",
"0.6336382",
"0.6329961",
"0.6326798",
"0.6298658"... | 0.8183471 | 0 |
Test that an exception is raised if there are inf values in sample_weight. | def mnlh(YKHO):
WKvO = j7zZ(capping_values={'a': [2, 10]})
with trZe.raises(ValueError, match='infinite values in sample weights'):
WKvO.weighted_quantile([2, 3, 4, 5], [0, 1], [2, oyIN.inf])
with trZe.raises(ValueError, match='infinite values in sample weights'):
WKvO.weighted_quantile([2, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YdlD(YKHO):\n WKvO = j7zZ(capping_values={'a': [2, 10]})\n with trZe.raises(ValueError, match='negative weights in sample weights'):\n WKvO.weighted_quantile([2, 3, 4, 5], [0, 1], [2, -0.01])",
"def VpyY(YKHO):\n WKvO = j7zZ(capping_values={'a': [2, 10]})\n with trZe.raises(ValueError, mat... | [
"0.7732964",
"0.7526594",
"0.7435033",
"0.73441535",
"0.71724397",
"0.7101364",
"0.7101364",
"0.70578474",
"0.70019686",
"0.6940547",
"0.6596749",
"0.6553417",
"0.6530183",
"0.63847435",
"0.6353281",
"0.6345917",
"0.63409483",
"0.6300501",
"0.6270963",
"0.6220091",
"0.6213009... | 0.7943469 | 0 |
Test case for get_teams_by_username_hooks | def maOR(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rg4J(YKHO):\n pass",
"def wE88(YKHO):\n pass",
"def nouR(YKHO):\n pass",
"def x0Nz(YKHO):\n pass",
"def JhyZ(YKHO):\n pass",
"def kAK1(YKHO):\n pass",
"def lKMv(YKHO):\n pass",
"def WFBE(YKHO):\n pass",
"def hJ61(YKHO):\n pass",
"def O7FG(YKHO):\n pass",
"def m... | [
"0.89587647",
"0.8553746",
"0.79083997",
"0.7621973",
"0.7410666",
"0.71093583",
"0.70589745",
"0.7046763",
"0.7024618",
"0.6892438",
"0.6885477",
"0.67546856",
"0.6714933",
"0.67132837",
"0.6689523",
"0.65332127",
"0.63457364",
"0.6307026",
"0.629075",
"0.62406105",
"0.61805... | 0.9383836 | 0 |
Test case for get_teams_by_username_hooks_by_uid | def Rg4J(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def maOR(YKHO):\n pass",
"def nouR(YKHO):\n pass",
"def wE88(YKHO):\n pass",
"def tqd1(YKHO):\n pass",
"def WFBE(YKHO):\n pass",
"def JhyZ(YKHO):\n pass",
"def x0Nz(YKHO):\n pass",
"def ZmU9(YKHO):\n pass",
"def lKMv(YKHO):\n pass",
"def kAK1(YKHO):\n pass",
"def h... | [
"0.878412",
"0.8411078",
"0.79442793",
"0.76267445",
"0.7508243",
"0.7235418",
"0.68639314",
"0.6559247",
"0.65110904",
"0.64940625",
"0.6428251",
"0.6341855",
"0.62633497",
"0.6249768",
"0.6148659",
"0.6133096",
"0.6073759",
"0.60358876",
"0.60262203",
"0.60172373",
"0.58884... | 0.9448346 | 0 |
Resets the activity records. Can be called after a pruning operation to maintain recency. | def SiRx(YKHO):
YKHO.dists = None
YKHO.activities = None
YKHO.n_obs = 0.0
YKHO.obs = []
G9jH.info('Layer %s reset' % YKHO.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.counter = 0\n YKHO.position = 0\n YKHO.records = []",
"def SiRx(YKHO):\n YKHO.prev_itr_time = None\n ZLJ_ = [SRYB.name for SRYB in YKHO.domain.variables]\n _NDp = ['computation_t', 'experiment_t', 'strategy']\n ZLJ_ += _NDp\n YKHO._data = uy3w(columns=ZLJ_, metadata... | [
"0.7130163",
"0.6830207",
"0.67864776",
"0.67864776",
"0.6770103",
"0.6769042",
"0.6734394",
"0.6694889",
"0.6648241",
"0.66397303",
"0.6601866",
"0.659175",
"0.65892076",
"0.6576175",
"0.65735906",
"0.6563924",
"0.6557922",
"0.65550137",
"0.65538836",
"0.6540619",
"0.6536948... | 0.6498621 | 26 |
Get the size of the layer. | def jiw9(YKHO):
return YKHO.mask.shape[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zpZc(YKHO, KCib):\n zNig = 0\n if YKHO.docker_version == 1:\n pmON = Hy7s.path.join(YKHO.docker_directory, 'graph', KCib, 'layersize')\n zNig = int(open(pmON).read())\n return zNig",
"def R8e4():\n return YKHO.size",
"def R8e4(YKHO):\n return YKHO.size",
"def R8e4(YKHO):\n ... | [
"0.7933091",
"0.7791951",
"0.77110845",
"0.77110845",
"0.77110845",
"0.77110845",
"0.77110845",
"0.77110845",
"0.7693662",
"0.7685994",
"0.7685994",
"0.76708764",
"0.7635981",
"0.7633671",
"0.76240015",
"0.76177096",
"0.76104623",
"0.7609153",
"0.760655",
"0.7602681",
"0.7599... | 0.0 | -1 |
Get the number of unpruned neurons in the layer. | def duHq(YKHO):
return YKHO.get_size() - len(YKHO.pruned_neurons) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilXt(YKHO):\n return len(YKHO.input_neurons)",
"def ilXt(YKHO):\n return YKHO.neuron_count",
"def kNEP(YKHO):\n return YKHO._number_of_neurons",
"def Nlev(YKHO):\n return len(YKHO.UL)",
"def kNEP(YKHO):\n return len(YKHO.neurons)",
"def szAg(YKHO):\n return len(YKHO.neurons)",
"de... | [
"0.72339296",
"0.7152209",
"0.69641215",
"0.6830917",
"0.68099284",
"0.6777052",
"0.6762413",
"0.6762413",
"0.6680117",
"0.6675932",
"0.6628655",
"0.66196626",
"0.661104",
"0.65505564",
"0.65492594",
"0.65114135",
"0.6502774",
"0.64965457",
"0.6490126",
"0.6480635",
"0.647178... | 0.85624576 | 0 |
Prints and plots the confusion matrix. | def NDDY(Y8eF, aMgO, KndY, NkkI, leAC=None, iMGt=QrM1.cm.Blues):
if not leAC:
if NkkI:
leAC = 'Normalized confusion matrix'
else:
leAC = 'Confusion matrix, without normalization'
Bcwd = YsYU(Y8eF, aMgO)
KndY = KndY[OrFa(Y8eF, aMgO)]
print(KndY)
if NkkI:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JgpL(Emd4, Hw6B):\n QrM1.matshow(Hw6B)\n QrM1.title('Confusion Matrix for ' + Emd4)\n QrM1.colorbar()\n QrM1.ylabel('True label')\n QrM1.xlabel('Predicted label')\n QrM1.show()",
"def LwSz():\n QrM1.figure(dpi=500)\n QUkc = oyIN.array([[88, 34], [12, 66]])\n Crrw = ['Arrest', 'No A... | [
"0.8198787",
"0.8073071",
"0.80221134",
"0.7940322",
"0.7887492",
"0.78133506",
"0.7759174",
"0.7734124",
"0.77253306",
"0.77250326",
"0.77138907",
"0.76363146",
"0.76333857",
"0.76323193",
"0.76291746",
"0.76260036",
"0.7622828",
"0.7619083",
"0.7616988",
"0.76165795",
"0.76... | 0.0 | -1 |
Convert `xyY` to `xyz`. In many cases, we are dealing with chromaticity values with no Y value, in this case, assume 1 unless otherwise specified. Generally, scale is also assumed to be between 0 1, but allow changing scale if we are dealing with things like 0 100, etc. | def Fu48(M_DK: VectorLike, fuBA: float=1.0, NXpY: float=1.0) -> lNLu:
WKvO, LVAh = M_DK
return [0, 0, 0] if LVAh == 0 else [WKvO * fuBA / LVAh, fuBA, (NXpY - WKvO - LVAh) * fuBA / LVAh] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UqRx(p53Z):\n WKvO, LVAh, fuBA = pXpS(p53Z)\n RM3a = oyIN.where((LVAh == 0)[..., oyIN.newaxis], n9D7((LVAh, LVAh, LVAh)), n9D7((WKvO * fuBA / LVAh, fuBA, (1 - WKvO - LVAh) * fuBA / LVAh)))\n return RM3a",
"def UqRx(J3tW, *qIxc, **B2fa):\n if J3tW.xyy_y == 0.0:\n mvR3 = 0.0\n aiVP = ... | [
"0.7542011",
"0.70155585",
"0.692217",
"0.66756517",
"0.66223836",
"0.65767705",
"0.656105",
"0.640243",
"0.637666",
"0.6368609",
"0.63621175",
"0.6309256",
"0.627593",
"0.62210125",
"0.61398953",
"0.6123511",
"0.61048126",
"0.6096178",
"0.608737",
"0.5948285",
"0.5929028",
... | 0.8232006 | 0 |
Return True if stack is empty | def FBfn(YKHO):
return YKHO._size == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def lsm... | [
"0.92417324",
"0.91554487",
"0.91554487",
"0.91554487",
"0.9097528",
"0.9097528",
"0.90817875",
"0.9069245",
"0.90622884",
"0.90622884",
"0.9028246",
"0.90182316",
"0.89872265",
"0.89857453",
"0.8946793",
"0.8946793",
"0.8933839",
"0.8901743",
"0.88641936",
"0.8844858",
"0.88... | 0.0 | -1 |
Closes the connection to the specified database. | def DDI8(YKHO):
YKHO.client.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzkT(YKHO):\n YKHO.conn.close()",
"def YzkT():\n b64E.commit()\n wvvg.close()\n b64E.close()",
"def yZlT(AJ5d=None):\n NCls.session.close()",
"def ngVb(YKHO):\n NCls = YKHO.db_con\n if NCls is not None:\n NCls.close()",
"def ssTe(AJ5d):\n NCls = getattr(Oa1e, '_database',... | [
"0.7921063",
"0.75898594",
"0.754214",
"0.75197446",
"0.7476302",
"0.7440837",
"0.7402494",
"0.7394905",
"0.7393575",
"0.7390645",
"0.7343996",
"0.7342069",
"0.72911716",
"0.72843695",
"0.72843695",
"0.72843695",
"0.72843695",
"0.7269794",
"0.7244819",
"0.72360456",
"0.722929... | 0.0 | -1 |
Find all pairs of integers in a list whose sum equals a certain target. In this implementation, if a pair has been found, both elements belonging to the pair will be 'depleted' from the list. This means those elements cannot be used for other pairs (see the second example). This also means an element cannot pair with i... | def chk4(WKvO, pan_):
WKvO = sorted(WKvO)
XP5J = []
YRbF, r845 = (0, len(WKvO) - 1)
while YRbF < r845:
if WKvO[YRbF] + WKvO[r845] == pan_:
XP5J.append((WKvO[YRbF], WKvO[r845]))
YRbF += 1
r845 -= 1
elif WKvO[YRbF] + WKvO[r845] > pan_:
r845 -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GmXI(ezWE: list[int], o8aI: int) -> list[int]:\n yKcO, Os4s = (0, len(ezWE) - 1)\n while yKcO < Os4s:\n MCOv = ezWE[yKcO] + ezWE[Os4s]\n if MCOv == o8aI:\n return [yKcO, Os4s]\n elif MCOv > o8aI:\n Os4s -= 1\n else:\n yKcO += 1\n return [-1,... | [
"0.7657303",
"0.75382715",
"0.74652845",
"0.7372548",
"0.725663",
"0.72179675",
"0.71292293",
"0.69884276",
"0.6939161",
"0.69351304",
"0.6923556",
"0.6921501",
"0.69141537",
"0.6903324",
"0.6900326",
"0.6883741",
"0.687367",
"0.68478554",
"0.6844132",
"0.6814954",
"0.6752953... | 0.83772653 | 0 |
Tests that invalid strings fails to convert to datetime | def h2Py(YKHO):
YKHO.assertRaises(ValueError, OLXh, 'invalid') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m0ab(YKHO):\n with YKHO.assertRaises(ValueError):\n TvuN('sdkifsd')\n with YKHO.assertRaises(ValueError):\n TvuN('')",
"def XNnF():\n assert feVn('2019-06-27 13:20') == qcWV(2019, 6, 27, 13, 20, 0, 0)\n assert feVn('2019-06-27') == qcWV(2019, 6, 27, 0, 0, 0, 0)",
"def oRZ4():\n ... | [
"0.81982046",
"0.7783731",
"0.774241",
"0.7634697",
"0.75814724",
"0.7451346",
"0.7443975",
"0.74140114",
"0.74052364",
"0.73824567",
"0.7373005",
"0.73718005",
"0.72975284",
"0.72646683",
"0.7250196",
"0.72159624",
"0.7213509",
"0.7206418",
"0.7201655",
"0.72007847",
"0.7172... | 0.8188876 | 1 |
Prepare and load a graph edge. | def QdZT(YKHO, UShr, rdlD, Ziit):
lhy8 = YKHO.bind_properties(rdlD)
JZXy = Ziit.get(YKHO.config.get('source'))
pan_ = Ziit.get(YKHO.config.get('target'))
return YKHO.type.merge(UShr, JZXy, pan_, **lhy8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkxh(YKHO, D70y):\n GIxH = YKHO.getSymbolicEdge(D70y[0], D70y[1])\n YKHO.explored[GIxH] = False\n YKHO.discovered[GIxH] = False\n YKHO.createFlow(D70y, 0)\n YKHO.createCapacity(D70y, 0)\n YKHO.sink[GIxH] = False\n if YKHO.directed == False:\n CDpo = YKHO.getSymbolicEdge(D70y[1], D70... | [
"0.69752574",
"0.68560296",
"0.6637549",
"0.64260894",
"0.6414943",
"0.6408424",
"0.6376929",
"0.6360616",
"0.6311542",
"0.6292525",
"0.6271837",
"0.6248093",
"0.6187189",
"0.61839277",
"0.6155422",
"0.6152962",
"0.61449325",
"0.61394054",
"0.61106575",
"0.6108859",
"0.609882... | 0.0 | -1 |
nice representation of this object | def wHJl(YKHO):
return ','.join([YKHO.number, YKHO.name, YKHO.instructor, YKHO.diff, str(YKHO.lessons), str(YKHO.resources), str(YKHO.videos)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return CgYo.pformat(YKHO.asdict())",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)... | [
"0.8347156",
"0.8180791",
"0.8180791",
"0.8180791",
"0.8180791",
"0.8180791",
"0.8180791",
"0.8166593",
"0.81537056",
"0.8152554",
"0.8152554",
"0.81048596",
"0.81048596",
"0.81048596",
"0.81048596",
"0.81048596",
"0.81048596",
"0.81048596",
"0.81048596",
"0.81048596",
"0.810... | 0.0 | -1 |
returns the largest number of goals in the specified list of goals, which we assume contains at least one integer | def x1xQ(geGr):
lLFQ = geGr[0]
for Oa1e in geGr:
if Oa1e > lLFQ:
lLFQ = Oa1e
return lLFQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x1xQ(geGr):\n lLFQ = geGr[0]\n for Oa1e in geGr:\n if Oa1e > lLFQ:\n lLFQ = Oa1e\n return lLFQ",
"def sU3K(CaKm):\n WGtv = max(CaKm)\n return WGtv",
"def qOmX(list=[]):\n if len(list) == 0:\n return None\n Aofo = list[0]\n YRbF = 1\n while YRbF < len(list... | [
"0.80534524",
"0.70085496",
"0.6603698",
"0.65416837",
"0.65339446",
"0.6532831",
"0.6524508",
"0.65099823",
"0.6486152",
"0.6469379",
"0.6468957",
"0.64579076",
"0.64568245",
"0.6438921",
"0.6421274",
"0.64205635",
"0.6392726",
"0.6352709",
"0.63510245",
"0.6321474",
"0.6309... | 0.8035326 | 1 |
The above bindings serialized in a format suitable for referencing from a resource that supports IAM. | def DXuJ(YKHO) -> str:
return qe4Y.get(YKHO, 'policy_data') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QYtJ(XkiF: KartonBind) -> str:\n return qQXR.dumps({'info': XkiF.info, 'version': XkiF.version, 'filters': XkiF.filters, 'persistent': XkiF.persistent, 'service_version': XkiF.service_version}, sort_keys=True)",
"def XDvc(YKHO):\n vkIq = {'READER': 'roles/storage.legacyBucketReader', 'WRITER': 'roles/s... | [
"0.63556075",
"0.5967891",
"0.5824515",
"0.5814194",
"0.578836",
"0.57499117",
"0.57303065",
"0.57303065",
"0.57303065",
"0.57303065",
"0.57249224",
"0.5677659",
"0.56751066",
"0.5666362",
"0.5601366",
"0.55977917",
"0.55523854",
"0.53945637",
"0.53280807",
"0.53058684",
"0.5... | 0.0 | -1 |
Generates an IAM policy document that may be referenced by and applied to other Google Cloud Platform IAM resources, such as the `projects.IAMPolicy` resource. | def aEAQ(t00J: Optional[Sequence[pulumi.InputType['GetIAMPolicyAuditConfigArgs']]]=None, krED: Optional[Sequence[pulumi.InputType['GetIAMPolicyBindingArgs']]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> KK_n:
rYZf = dict()
rYZf['auditConfigs'] = t00J
rYZf['bindings'] = krED
VKhi = qe4Y.InvokeOpt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YpaH():\n c2Yh.definitions.construct_definitions()\n print(c2Yh.definitions.get_aws_policy())",
"def XDvc(YKHO):\n vkIq = {'READER': 'roles/storage.legacyBucketReader', 'WRITER': 'roles/storage.legacyBucketWriter', 'OWNER': 'roles/storage.legacyBucketOwner'}\n FBVb = YKHO.iam_bindings.copy()\n ... | [
"0.7173146",
"0.6470823",
"0.6373504",
"0.63067365",
"0.62035227",
"0.61166704",
"0.6100168",
"0.6008462",
"0.5919142",
"0.58990216",
"0.5869354",
"0.5863563",
"0.5854272",
"0.5847255",
"0.58429533",
"0.58405036",
"0.5833187",
"0.5812298",
"0.5808902",
"0.57760423",
"0.574756... | 0.55152017 | 45 |
Generates an IAM policy document that may be referenced by and applied to other Google Cloud Platform IAM resources, such as the `projects.IAMPolicy` resource. | def wLv2(t00J: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetIAMPolicyAuditConfigArgs']]]]]=None, krED: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetIAMPolicyBindingArgs']]]]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[YMhn]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YpaH():\n c2Yh.definitions.construct_definitions()\n print(c2Yh.definitions.get_aws_policy())",
"def XDvc(YKHO):\n vkIq = {'READER': 'roles/storage.legacyBucketReader', 'WRITER': 'roles/storage.legacyBucketWriter', 'OWNER': 'roles/storage.legacyBucketOwner'}\n FBVb = YKHO.iam_bindings.copy()\n ... | [
"0.71740633",
"0.6470051",
"0.6376529",
"0.6308192",
"0.6205065",
"0.6116993",
"0.6097598",
"0.600838",
"0.592077",
"0.5900799",
"0.58701307",
"0.5863669",
"0.58545303",
"0.5847945",
"0.58452964",
"0.58434093",
"0.58352804",
"0.581242",
"0.581017",
"0.57789594",
"0.5748203",
... | 0.0 | -1 |
Checks that the third element of the command is the device class. | def dXej(YKHO):
begE = YKHO.command[1][1].decode('ascii')
YKHO.assertEqual('dummy', begE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BHEJ(YKHO):\n if 'CMD' in YKHO.attr_set:\n return True\n else:\n return False",
"def u31a(YKHO):\n raise NotImplementedError('Not Implemented')",
"def Bo4O(YKHO, oUZx):\n ...",
"def rM2U(YKHO):\n return YKHO.sensor_details[4]",
"def Pwv8(yR_P, M4N3):\n return hasattr(yR_... | [
"0.63896275",
"0.6169908",
"0.60628873",
"0.599692",
"0.5974724",
"0.5952641",
"0.5900129",
"0.5896756",
"0.5852183",
"0.58336645",
"0.58250797",
"0.579644",
"0.5794179",
"0.5745798",
"0.5740203",
"0.57398206",
"0.5707518",
"0.5690771",
"0.5690584",
"0.5672862",
"0.5666838",
... | 0.6688102 | 0 |
This method creates and returns an OpenCV Video Writer instance. The VideoWriter expects its `.write()` method to be called with a single frame image multiple times. It encodes frames into live video segments and produces a video segment once it has received enough frames to produce a 5seconds segment of live video. Th... | def aFxR(YKHO, FfoI, bW5R, B1Wx):
MnDN = YKHO.config.get_section_dict('App')['Encoder']
fiSt = f'/repo/data/processor/static/gstreamer/{FfoI}'
RDuA.rmtree(fiSt, ignore_errors=True)
Hy7s.makedirs(fiSt, exist_ok=True)
c0i_ = f'/static/gstreamer/{FfoI}'
if not c0i_.endswith('/'):
c0i_ = f'{... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IRZu(jY1r, TVTK, H2v2, IYxf=30):\n CVzv = XC5k.VideoWriter_fourcc(*'MJPG')\n gEBx = XC5k.VideoWriter(jY1r, CVzv, IYxf, (TVTK, H2v2), True)\n return (gEBx, IYxf)",
"def ng5E(YKHO, VIPT, TVTK, H2v2, wW6z='/tmp/video.avi'):\n f6W2 = XC5k.VideoWriter(wW6z, XC5k.VideoWriter_fourcc(*'XVID'), 30.0, (TVT... | [
"0.70836926",
"0.6883731",
"0.65779966",
"0.6549478",
"0.6540617",
"0.6528605",
"0.65127945",
"0.6479901",
"0.64788",
"0.64532816",
"0.6424653",
"0.64151675",
"0.63868237",
"0.6376073",
"0.6301008",
"0.6286491",
"0.6267351",
"0.6255213",
"0.6162258",
"0.61548644",
"0.60551995... | 0.616171 | 19 |
Return the commodity' Parent name, including their direct parent by default. | def jgEY(YKHO):
Ylbp = []
for CL3N in YKHO:
ZWCE = []
jvSB = CL3N
while jvSB:
ZWCE.append(jvSB.name)
jvSB = jvSB.parent_id
Ylbp.append((CL3N.id, ' / '.join(reversed(ZWCE))))
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dx2i(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'parent_name')",
"def dx2i(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'parent_name')",
"def dx2i(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'parent_name')",
"def dx2i(YKHO) -> h8nf[qe4Y.Input[str]]:\n retu... | [
"0.79699403",
"0.7652174",
"0.7652174",
"0.7652174",
"0.7652174",
"0.7652174",
"0.7652174",
"0.75818104",
"0.72725654",
"0.7269354",
"0.7250645",
"0.7162386",
"0.7162386",
"0.713692",
"0.713692",
"0.7108837",
"0.70628875",
"0.70608",
"0.70366675",
"0.6916034",
"0.690065",
"... | 0.6371252 | 69 |
Returns a nicely formatted string for a supplied epoch offset. | def dfcb(MaIc):
return qcWV.fromtimestamp(int(MaIc) / 1000.0).strftime('%Y-%m-%d %H:%M:%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GbWJ(qtWj: Union[int, float], FMLJ: str):\n return qcWV.fromtimestamp(qtWj).strftime(FMLJ)",
"def L71w(vgXP):\n assert isinstance(vgXP, qcWV.timedelta)\n Qpmp = vgXP.total_seconds() / 60\n if Qpmp > 0:\n QdXS = '+%02d:%02d'\n else:\n QdXS = '-%02d:%02d'\n Qpmp = -Qpmp\n ... | [
"0.6813465",
"0.68050414",
"0.67308646",
"0.6369691",
"0.63640994",
"0.6187864",
"0.6055919",
"0.5980104",
"0.5861705",
"0.5821358",
"0.5731088",
"0.56974274",
"0.5691881",
"0.5593782",
"0.55655634",
"0.5555859",
"0.5552174",
"0.5517743",
"0.548705",
"0.5450362",
"0.5411098",... | 0.6217199 | 5 |
Test if an order can be placed as an authenticated user with session based auth. | def UF5Z(YKHO):
YKHO.login(username='nobody', password='nobody')
geh0 = YKHO.get('api-basket')
YKHO.assertTrue(geh0.status_code, 200)
Ylqb = geh0.data
pB3N = YKHO._get_common_payload(Ylqb['url'])
geh0 = YKHO.post('api-checkout', **pB3N)
YKHO.assertEqual(geh0.status_code, 406)
geh0 = YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1():\n return 'user' in cuiw",
"def rts1():\n return 'user' in cuiw",
"def t1g4(YKHO):\n return YKHO.session.user is not None",
"def rts1():\n return 'authenticated' in cuiw and cuiw['authenticated'] == True",
"def rts1(YKHO, QePW, **B2fa):\n return True",
"def rts1(cuiw):\n retu... | [
"0.732651",
"0.732651",
"0.71358234",
"0.6906165",
"0.68910736",
"0.67477626",
"0.6722755",
"0.6679575",
"0.6674071",
"0.66657025",
"0.66572535",
"0.66572535",
"0.66572535",
"0.66572535",
"0.66572535",
"0.66572535",
"0.66572535",
"0.66572535",
"0.66572535",
"0.66572535",
"0.6... | 0.0 | -1 |
Test if an order can be placed as an anonymous user. | def bn6f(YKHO):
geh0 = YKHO.get('api-basket')
YKHO.assertTrue(geh0.status_code, 200)
Ylqb = geh0.data
pB3N = YKHO._get_common_payload(Ylqb['url'])
del pB3N['guest_email']
with YKHO.settings(OSCAR_ALLOW_ANON_CHECKOUT=True):
geh0 = YKHO.post('api-checkout', **pB3N)
YKHO.assertEqual... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hCai(YKHO):\n if YKHO.user_object_id == YKHO.__class__._meta.get_field('user_object_id').default:\n return True\n else:\n return False",
"def CLaj(YKHO):\n YKHO.assert_user_can_view(None, 'public')\n YKHO.assert_user_cannot_view(None, 'signedin')",
"def CLaj(YKHO):\n YKHO.asser... | [
"0.7228506",
"0.7006808",
"0.7006808",
"0.6886832",
"0.6885724",
"0.6885724",
"0.68758816",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
"0.6862183",
... | 0.0 | -1 |
Normalize a list of sample image data in the range of 0 to 1 | def NkkI(WKvO):
return (WKvO - WKvO.min()) / (WKvO.max() - WKvO.min()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ku21(nPrm):\n for YRbF in range(0, len(nPrm)):\n nPrm[YRbF] = oyIN.true_divide(nPrm[YRbF], 255)\n return nPrm",
"def NkkI(nPrm, Ytix, qoiF):\n Ytix, qoiF = (oyIN.array(Ytix), oyIN.array(qoiF))\n ezF6 = Ytix - qoiF\n for YRbF in oyIN.arange(nPrm.shape[1]):\n nPrm[:, YRbF] = (nPrm[... | [
"0.83523166",
"0.7798991",
"0.77469105",
"0.7673528",
"0.7652265",
"0.76042485",
"0.75526005",
"0.7510857",
"0.7497217",
"0.74528825",
"0.7441498",
"0.74365795",
"0.743134",
"0.7361652",
"0.73244035",
"0.7304369",
"0.7302805",
"0.7255309",
"0.7253843",
"0.7241867",
"0.7240363... | 0.0 | -1 |
r"""Call the list operations method over HTTP. | def nrOS(YKHO, QePW: operations_pb2.ListOperationsRequest, *, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Optional[float]=None, yIVm: Sequence[Tuple[str, str]]=()) -> s1LG.ListOperationsResponse:
Zgvv: x1iM[cuzp[str, str]] = [{'method': 'get', 'uri': '/v1/{name=projects/*/instances/*/databases/*/operations}'}, {... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nyyo(YKHO):\n geh0 = YKHO.authed_get('{}-list'.format(XBe4))\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)",
"def P74o(YKHO, QePW, **B2fa):\n return YKHO.dispatch('list', QePW, **B2fa)",
"def UMnH(YKHO, QePW, *qIxc, **B2fa):\n pass",
"def list(YKHO, QePW):\n NuCn = ['Uses actions ... | [
"0.75470227",
"0.74488366",
"0.7349677",
"0.7147909",
"0.7084063",
"0.7057927",
"0.6968618",
"0.69083637",
"0.6900108",
"0.6900108",
"0.6900108",
"0.6852344",
"0.6852344",
"0.6852344",
"0.6852344",
"0.6852344",
"0.68451667",
"0.68308634",
"0.68308634",
"0.6829857",
"0.6822634... | 0.0 | -1 |
Pretty self explanatory constructor | def FIMM(YKHO, khoC):
YKHO.BOARD = [(Z9rn, []) for Z9rn in khoC]
YKHO.VALUES = ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']
YKHO.SUITS = ['C', 'D', 'H', 'S']
YKHO.DECK = [WKvO + LVAh for WKvO in YKHO.VALUES for LVAh in YKHO.SUITS]
kQzc = ['previous2', 'previous', 'current']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, AEF4=True):\n YKHO.pretty_print = AEF4",
"def l_xx(YKHO):\n pass",
"def l_xx(YKHO):\n pass",
"def FIMM(YKHO, *qIxc, **B2fa):\n pass",
"def FIMM(YKHO, *qIxc, **B2fa) -> None:\n pass",
"def FIMM(YKHO, *qIxc, **B2fa) -> None:\n pass",
"def FIMM(YKHO, *qIxc, **B2fa) -> None... | [
"0.70976096",
"0.7097488",
"0.7097488",
"0.70652264",
"0.7058015",
"0.7058015",
"0.7058015",
"0.7058015",
"0.7058015",
"0.7058015",
"0.7038537",
"0.7038537",
"0.7038537",
"0.7038537",
"0.7038537",
"0.7038537",
"0.7038537",
"0.7038537",
"0.7038537",
"0.7038537",
"0.7038537",
... | 0.0 | -1 |
Returns the configuration types. A distribution provider exports a service with an endpoint. This endpoint uses some kind of communications protocol with a set of configuration parameters. There are many different types but each endpoint is configured by only one configuration type. However, a distribution provider can... | def slvv(YKHO):
return YKHO.__properties[FGgH.remote.PROP_IMPORTED_CONFIGS][:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def slvv(YKHO):\n return YKHO.__properties[FGgH.remote.PROP_IMPORTED_CONFIGS][:]",
"def S8gO(YKHO):\n return YKHO.endpoints.keys()",
"def M9oZ(YKHO) -> None:\n EQEl = YKHO.client.get_service_integration_endpoint_types(YKHO.get_project())\n LAOT = ['title', 'endpoint_type', 'service_types']\n YKH... | [
"0.7754866",
"0.70581144",
"0.66189146",
"0.6566639",
"0.6495937",
"0.6480466",
"0.6267963",
"0.60389113",
"0.5961347",
"0.59500396",
"0.5804397",
"0.5782185",
"0.5732577",
"0.5629826",
"0.559874",
"0.5570894",
"0.5553376",
"0.5516933",
"0.55132866",
"0.5485425",
"0.5485425",... | 0.7575117 | 1 |
Returns the list of intents implemented by this endpoint. The intents are based on the service.intents on an imported service, except for any intents that are additionally provided by the importing distribution provider. All qualified intents must have been expanded. This value of the intents is stored in the pelix.rem... | def fQql(YKHO):
try:
return YKHO.__properties[FGgH.remote.PROP_INTENTS][:]
except KeyError:
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fQql(YKHO):\n return YKHO.intents",
"def zFC7(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'intents')",
"def fQql(YKHO):\n try:\n return YKHO.__properties[FGgH.remote.PROP_INTENTS][:]\n except KeyError:\n return []",
"def SdcF(Emd4):\n return Emd4._registered_types",
"d... | [
"0.7865849",
"0.7572116",
"0.73523396",
"0.7333042",
"0.7020127",
"0.65482855",
"0.6300936",
"0.59952253",
"0.59586686",
"0.5922952",
"0.5893627",
"0.57682353",
"0.5626131",
"0.5581856",
"0.551392",
"0.55050814",
"0.55050814",
"0.54957813",
"0.5487749",
"0.53377694",
"0.53071... | 0.74784464 | 2 |
Provides the version of the given package name. | def zvqz(YKHO, B5hb):
mWFP = '{0}{1}'.format(FGgH.remote.PROP_ENDPOINT_PACKAGE_VERSION_, B5hb)
try:
DpZH = YKHO.__properties[mWFP]
return tuple(DpZH.split('.'))
except KeyError:
return (0, 0, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(hxGQ: str) -> str:\n return RkCj.get_distribution(hxGQ).version",
"def N3jx(UROH):\n return TgU2(UROH)",
"def zvqz(YKHO, Oa1e, hxGQ: str) -> str:\n XP5J = YKHO._run(Oa1e, ['dpkg', '-s', hxGQ], raiseOnError=False)\n if XP5J.code != 0:\n return ''\n for zFiD in XP5J.stdout.splitlin... | [
"0.8595212",
"0.77818334",
"0.7645431",
"0.7607382",
"0.7607382",
"0.75927615",
"0.75850993",
"0.75431854",
"0.75159925",
"0.74852663",
"0.7479627",
"0.74011153",
"0.7367741",
"0.7324116",
"0.7320482",
"0.7306144",
"0.7293629",
"0.7289101",
"0.7276551",
"0.72751004",
"0.72589... | 0.0 | -1 |
Returns all endpoint properties. | def Iso7(YKHO):
return YKHO.__properties.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C9U5(YKHO):\n return YKHO.action('GET', 'properties')",
"def C9U5(YKHO):\n return YKHO['properties']",
"def Iso7(YKHO):\n return YKHO.properties",
"def Iso7(YKHO):\n return YKHO.properties",
"def wnQ_(YKHO) -> h8nf[bdIy['outputs.EndpointPropertiesResponse']]:\n return qe4Y.get(YKHO, 'end... | [
"0.7637749",
"0.7420629",
"0.7298631",
"0.7298631",
"0.72681826",
"0.72440696",
"0.7225387",
"0.7208429",
"0.7199114",
"0.7199114",
"0.7191836",
"0.7191836",
"0.7186107",
"0.71691877",
"0.7132578",
"0.7119394",
"0.7079203",
"0.70635784",
"0.7054374",
"0.7049477",
"0.70361024"... | 0.68037784 | 44 |
Included so the the different connection types are interchangable. Table or file existance of this type doesn't matter for csv work. Checks if the table exists in the schema provided. Returns true if it exists and false if it does not. | def n2Bh(YKHO, uPxI, GTA_):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PJaC(YKHO):\n with pjM5.connect(YKHO.create_connection_string()) as w2B8:\n C6cd = w2B8.cursor()\n C6cd.execute(f\"SELECT COUNT(1) FROM {YKHO.get_database_name()}.sys.tables t WHERE t.name = '{YKHO.get_table_name()}'\")\n return bool(C6cd.fetchval())",
"def LsUg(YKHO, JsOY=None, UzPC=... | [
"0.80219036",
"0.8001717",
"0.7851907",
"0.7807084",
"0.777887",
"0.7761627",
"0.77512175",
"0.7709775",
"0.7700057",
"0.7677274",
"0.7655099",
"0.76537937",
"0.76095486",
"0.75578994",
"0.7555299",
"0.7545155",
"0.75431895",
"0.75387317",
"0.75262946",
"0.75199175",
"0.75176... | 0.802339 | 0 |
Load the version from version.py, without importing it. This function assumes that the last line in the file contains a variable defining the version string with single quotes. | def kaPv():
try:
with open('PyRuSH/version.py', 'r') as eHNT:
return eHNT.read().split('\n')[0].split('=')[-1].replace("'", '').strip()
except IOError:
return '0.0.0a1' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pv0b(IznC: str) -> str:\n if not Hy7s.path.exists(IznC):\n bo34.warning('No version file found. Defaulting to 1.0.3')\n return '1.0.3'\n with open(IznC) as pKvt:\n return pKvt.read().strip()",
"def k5zc() -> str:\n nUeQ = GkAb(xAKo).parent.parent / '_version.py'\n if nUeQ.exi... | [
"0.747871",
"0.7294864",
"0.7048747",
"0.70150715",
"0.6963611",
"0.69170314",
"0.6897584",
"0.68068457",
"0.67825687",
"0.67662925",
"0.6760137",
"0.66933113",
"0.6675812",
"0.66455746",
"0.65648216",
"0.6559518",
"0.65303075",
"0.6525826",
"0.6523968",
"0.65211886",
"0.6519... | 0.66017675 | 14 |
Convenience method to retrieve the next character in source code. This is used if you really need to use this instance as an iterator as I did in some of my test case for convenience. Otherwise, the instance is callable because it has practically only one meaning in life which is fetching the next character... | def UDAb(YKHO) -> str:
return next(YKHO._stream) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x6am(YKHO, T7C_=False):\n hcXw = YKHO._src[YKHO._line_pos][YKHO._char_pos]\n if hcXw == '\\n':\n return None\n if not T7C_:\n YKHO._char_pos += 1\n return hcXw",
"def x6am(YKHO):\n try:\n hcXw = YKHO.input_string[YKHO._position]\n except IndexError:\n return None... | [
"0.6787042",
"0.6770836",
"0.6705535",
"0.6670974",
"0.660888",
"0.657478",
"0.64494",
"0.63676035",
"0.6342795",
"0.62869775",
"0.6282434",
"0.62619907",
"0.61639863",
"0.61550593",
"0.6150507",
"0.61450684",
"0.61385626",
"0.6099596",
"0.6086548",
"0.60821086",
"0.608012",
... | 0.6186249 | 12 |
Initializes self with the specified type and any properties. | def FIMM(YKHO, KqSu, **C9U5):
if len(C9U5) == 1 and 'properties' in C9U5:
C9U5 = C9U5['properties']
YKHO.type = KqSu
for H5ew, wEf2 in C9U5.items():
setattr(YKHO, H5ew, wEf2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, kN9s, D0I9=[]):\n YKHO.type_ = kN9s\n YKHO.type_params = D0I9",
"def FIMM(Ro_8, *, mWFP: Optional[pulumi.Input[str]]=None, type: Optional[pulumi.Input[Union[str, 'PropertyType']]]=None):\n if mWFP is not None:\n qe4Y.set(Ro_8, 'name', mWFP)\n if type is not None:\n qe4Y.s... | [
"0.73354566",
"0.7293621",
"0.726444",
"0.71033925",
"0.7083255",
"0.70668525",
"0.70668525",
"0.7050239",
"0.7049549",
"0.6944637",
"0.6944637",
"0.6917924",
"0.68675005",
"0.6673146",
"0.66699606",
"0.666873",
"0.659958",
"0.65924436",
"0.65924436",
"0.6574584",
"0.6571968"... | 0.73053104 | 1 |
Function to return train and test datasets for MNIST | def SELc(IS88, h4s4):
Pa1c = ht2j.utils.data.DataLoader(TTda.datasets.MNIST('~/.cache/database/', train=True, download=True, transform=TTda.transforms.Compose([TTda.transforms.ToTensor(), TTda.transforms.Normalize((0.1307,), (0.3081,))])), batch_size=IS88, shuffle=True)
Blhr = ht2j.utils.data.DataLoader(TTda.da... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w37D():\n SZFh = Kt_s.Compose([Kt_s.ToTensor(), Kt_s.Normalize((0.1307,), (0.3081,))])\n EvQg = TTda.datasets.MNIST(JbyC.FLAGS.dataroot, train=True, download=True, transform=SZFh)\n QOe9 = TTda.datasets.MNIST(JbyC.FLAGS.dataroot, train=False, download=True, transform=SZFh)\n yBwE = {'num_classes': ... | [
"0.8159434",
"0.808196",
"0.80099326",
"0.7758061",
"0.7753116",
"0.769963",
"0.7687959",
"0.7645052",
"0.761864",
"0.7607445",
"0.7605334",
"0.7568952",
"0.7563066",
"0.7545519",
"0.7535514",
"0.750013",
"0.7480101",
"0.74751353",
"0.74439603",
"0.7437914",
"0.742499",
"0.... | 0.0 | -1 |
True, as all users are active. | def ksfB(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO, NCls: Session, *, CBIr: User) -> bool:\n if CBI... | [
"0.75308377",
"0.7392309",
"0.7392309",
"0.7392309",
"0.7392309",
"0.73852575",
"0.73056287",
"0.7290842",
"0.7230901",
"0.72114825",
"0.71813864",
"0.714781",
"0.714781",
"0.7117796",
"0.7107901",
"0.70613724",
"0.7053262",
"0.7051632",
"0.70370287",
"0.70316494",
"0.7010118... | 0.71019155 | 16 |
False, as anonymous users aren't supported. | def wDqn(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return True",
"def ... | [
"0.84041584",
"0.84041584",
"0.8380213",
"0.8380213",
"0.8380213",
"0.8377405",
"0.83305264",
"0.82501274",
"0.8244858",
"0.81436765",
"0.8103119",
"0.80954605",
"0.807159",
"0.7877262",
"0.7874819",
"0.7860086",
"0.7859498",
"0.77627987",
"0.7724922",
"0.76033795",
"0.757673... | 0.8359979 | 7 |
Draw the player at its current location. | def rxBj(YKHO):
YKHO.screen.blit(YKHO.image, YKHO.rect) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO, oeNL):\n YKHO.window.fill(YKHO.bg)\n YKHO.animate_player()\n YKHO.rotate_player(oeNL)\n YKHO.display_buttons(oeNL)\n YKHO.window.blit(YKHO.img, YKHO.player_rect)\n a9eO.display.update()",
"def JmFt(YKHO):\n YKHO.display.display_game(YKHO.player.get_position())\n YKHO.displa... | [
"0.7891395",
"0.7664869",
"0.76637936",
"0.7514286",
"0.7408043",
"0.73977983",
"0.73957276",
"0.7384317",
"0.7332632",
"0.73321927",
"0.7279447",
"0.7279447",
"0.7279447",
"0.7279447",
"0.72700006",
"0.72628903",
"0.7235403",
"0.7234782",
"0.7213712",
"0.72001195",
"0.719656... | 0.0 | -1 |