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 |
|---|---|---|---|---|---|---|
Binary search for magnitudes to zero out. | def nrOS(YKHO, Wdfk, UXqs=None, MZ6z=True, Zxma=None):
tWOY = True
uRNJ = False
Zxma = YKHO._default_model._model
if ht2j.cuda.is_available():
begE = ht2j.device('cuda')
else:
begE = ht2j.device('cpu')
Zxma.to(begE)
Zxma = bxsb(Zxma)
input = ht2j.tensor(Wdfk).unsqueeze(di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _4_4(YKHO, VXjJ):\n knl1 = YKHO.s_magnitude_thresh\n qJtC = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HLS)\n ZZTP = qJtC[:, :, 2]\n j1yT = oyIN.zeros_like(ZZTP)\n j1yT[(ZZTP >= knl1[0]) & (ZZTP <= knl1[1])] = 1\n return j1yT",
"def vA60(epBp):\n return abs(epBp) < 1e-06",
"def vA60(epBp):\n ... | [
"0.6096553",
"0.58741003",
"0.58741003",
"0.58741003",
"0.5846073",
"0.5805983",
"0.5781029",
"0.57798827",
"0.5756181",
"0.5756181",
"0.5756181",
"0.5737949",
"0.57173574",
"0.5694678",
"0.56775707",
"0.5646717",
"0.56308955",
"0.56115633",
"0.56062716",
"0.56016445",
"0.559... | 0.0 | -1 |
Binary search for magnitudes to zero out. | def nrOS(YKHO, Wdfk, UXqs=None, MZ6z=True, Zxma=None):
tWOY = True
uRNJ = False
Zxma = YKHO._default_model._model
if ht2j.cuda.is_available():
begE = ht2j.device('cuda')
else:
begE = ht2j.device('cpu')
Zxma.to(begE)
Zxma = bxsb(Zxma)
input = ht2j.tensor(Wdfk).unsqueeze(di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _4_4(YKHO, VXjJ):\n knl1 = YKHO.s_magnitude_thresh\n qJtC = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HLS)\n ZZTP = qJtC[:, :, 2]\n j1yT = oyIN.zeros_like(ZZTP)\n j1yT[(ZZTP >= knl1[0]) & (ZZTP <= knl1[1])] = 1\n return j1yT",
"def vA60(epBp):\n return abs(epBp) < 1e-06",
"def vA60(epBp):\n ... | [
"0.6096553",
"0.58741003",
"0.58741003",
"0.58741003",
"0.5846073",
"0.5805983",
"0.5781029",
"0.57798827",
"0.5756181",
"0.5756181",
"0.5756181",
"0.5737949",
"0.57173574",
"0.5694678",
"0.56775707",
"0.5646717",
"0.56308955",
"0.56115633",
"0.56062716",
"0.56016445",
"0.559... | 0.0 | -1 |
Horizontally flip the given image and ground truth randomly with a probability of 0.5. | def XhR4(YKHO, NRcB):
if oyIN.random.random() < 0.5:
for YRbF, f4IJ in enumerate(NRcB):
NRcB[YRbF] = XC5k.flip(f4IJ, flipCode=1)
return NRcB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ePid(LNo8):\n if oyIN.random.uniform([1], 0, 2) == 1:\n LNo8 = xCtz(LNo8)\n return LNo8",
"def IM5U(VXjJ, JxU2):\n if not RDRa(VXjJ):\n raise TypeError(t_1q.format(type(VXjJ)))\n if JxU2 > tuKI.random():\n VXjJ = Hl5t(VXjJ)\n return VXjJ",
"def IM5U(YKHO):\n YKHO._ima... | [
"0.75218165",
"0.751246",
"0.7506605",
"0.75012434",
"0.73667026",
"0.73525965",
"0.7325702",
"0.72873336",
"0.72841537",
"0.72815114",
"0.72719455",
"0.7187642",
"0.7089125",
"0.70728743",
"0.7071362",
"0.7065926",
"0.7037584",
"0.7015957",
"0.69949436",
"0.69513816",
"0.694... | 0.6141923 | 62 |
Computes the global reward | def Wdp1(YKHO):
return YKHO._state.update_reward() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _KvT(YKHO, pR3T, _ins):\n return vOGg",
"def Mgbw(YKHO):\n if YKHO.reward_sparse:\n return 0\n vOGg = 0\n tMXC = 0\n YxNO = 0\n Vq6F = 0\n SLpa = YKHO.reward_negative_scale\n for svzv, WWKP in YKHO.agents.items():\n if not YKHO.death_tracker_ally[svzv]:\n OE54... | [
"0.7722132",
"0.769221",
"0.7678421",
"0.7594155",
"0.7571266",
"0.7486556",
"0.74374485",
"0.7364317",
"0.73546016",
"0.73282874",
"0.73246646",
"0.73162365",
"0.73111993",
"0.72991836",
"0.7298056",
"0.7298056",
"0.7298056",
"0.7298056",
"0.7298056",
"0.72960055",
"0.728647... | 0.8662608 | 0 |
The value for the lifetime of the security association. Must be a positive integer. Default is 3600. | def BWXx(YKHO) -> h8nf[int]:
return qe4Y.get(YKHO, 'value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oiww(YKHO):\n return YKHO.LIFETIME",
"def sTns(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'lifetime')",
"def sTns(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'lifetime')",
"def p_Tc(YKHO) -> int:\n return laHg.cast(int, YKHO._properties.get('expirationSeconds'))",
"... | [
"0.7561498",
"0.7344887",
"0.7344887",
"0.7223513",
"0.7030634",
"0.6995037",
"0.6995037",
"0.69868207",
"0.69868207",
"0.69784963",
"0.69419634",
"0.6941885",
"0.6923344",
"0.69112945",
"0.6863291",
"0.6788755",
"0.6764976",
"0.6764976",
"0.66683376",
"0.66683376",
"0.663973... | 0.0 | -1 |
The value for the lifetime of the security association. Must be a positive integer. Default is 3600. | def BWXx(YKHO) -> h8nf[int]:
return qe4Y.get(YKHO, 'value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oiww(YKHO):\n return YKHO.LIFETIME",
"def sTns(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'lifetime')",
"def sTns(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'lifetime')",
"def p_Tc(YKHO) -> int:\n return laHg.cast(int, YKHO._properties.get('expirationSeconds'))",
"... | [
"0.75603074",
"0.7344858",
"0.7344858",
"0.72219145",
"0.70297873",
"0.69955266",
"0.69955266",
"0.6985232",
"0.6985232",
"0.69775736",
"0.69420284",
"0.69415456",
"0.6922283",
"0.6910344",
"0.68601763",
"0.6788305",
"0.67641765",
"0.67641765",
"0.6667824",
"0.6667824",
"0.66... | 0.0 | -1 |
The dead peer detection (DPD) action. A valid value is clear, hold, restart, disabled, or restartbypeer. Default value is hold. | def XeOP(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'action') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nmI7(YKHO):\n YKHO.update()\n BWXx = YKHO.gp.get_hat(0)\n if BWXx[1] == 0 or 1:\n return 0\n else:\n return 1",
"async def dd(YKHO, OaeV, id: str, Tuqy: int=0):\n if not await YKHO.bot.do(YKHO.bot.gbf.isAvailable):\n await OaeV.reply(embed=YKHO.bot.util.embed(title='Unavai... | [
"0.58767843",
"0.5642098",
"0.55574423",
"0.554036",
"0.54834956",
"0.53987455",
"0.53545606",
"0.5293336",
"0.5217627",
"0.52111787",
"0.5175917",
"0.5174041",
"0.516246",
"0.5154512",
"0.5130206",
"0.51146686",
"0.50731707",
"0.5072008",
"0.50559276",
"0.5034585",
"0.502068... | 0.0 | -1 |
Returns a cumulative list of the unique keys in the provided dicts. | def wEZd(fgcx):
U2Hn = []
for Op6c in fgcx:
for oMqC in Op6c.keys():
if oMqC not in U2Hn:
U2Hn.append(oMqC)
return U2Hn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L5SL(IAPn):\n TzaK = []\n for H5ew in IAPn.keys():\n TzaK.extend([*IAPn[H5ew]])\n t0Oo = set()\n TzaK = [WKvO for WKvO in TzaK if WKvO not in t0Oo and (not t0Oo.add(WKvO))]\n return TzaK",
"def _XwA(VYyv):\n Ylbp = []\n for KF3I in VYyv:\n Ylbp.extend(KF3I.keys())\n retu... | [
"0.7154288",
"0.70941985",
"0.68785346",
"0.67112",
"0.6706649",
"0.6597244",
"0.6569873",
"0.65545326",
"0.649886",
"0.6482837",
"0.64630973",
"0.63979656",
"0.63525033",
"0.6326513",
"0.6292013",
"0.6222968",
"0.6190326",
"0.6177709",
"0.615296",
"0.6104126",
"0.6074841",
... | 0.0 | -1 |
Filters keys of supplied dict. Removes subspecies level taxons, birds that were not seen in the specified period, and rounds value to a specified length. | def dCyw(QXNb, CxrV=5):
nMDg = {}
for BxRy in QXNb:
if not QXNb[BxRy] == 0.0 and tKkr(BxRy):
nMDg[BxRy] = round(QXNb[BxRy], CxrV)
return nMDg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SFdB(Eoxo):\n lV4j = []\n for G1Hx, Ty9i in Eoxo.items():\n if Ty9i < 0.001:\n lV4j.append(G1Hx)\n for G1Hx in lV4j:\n del Eoxo[G1Hx]",
"def tlsQ(YKHO):\n OGV1 = []\n for Op6c in YKHO.classification:\n for H5ew in YKHO.classification[Op6c]:\n BWXx = Y... | [
"0.61627996",
"0.56735337",
"0.56403476",
"0.5525532",
"0.54421556",
"0.5387359",
"0.521954",
"0.5202371",
"0.5198922",
"0.517334",
"0.5161074",
"0.51591027",
"0.511691",
"0.51095134",
"0.5077314",
"0.5059908",
"0.5038506",
"0.5032453",
"0.5029127",
"0.50009805",
"0.4996753",... | 0.6512402 | 0 |
Converts a hotspot oriented dict to a species oriented dict. | def sv9O(U2Hn, pVWB):
eYnT = {}
for oMqC in U2Hn:
xgeT = {}
for z8Gy in pVWB.keys():
if oMqC in pVWB[z8Gy].keys():
xgeT[z8Gy] = pVWB[z8Gy][oMqC]
else:
xgeT[z8Gy] = 0.0
eYnT[oMqC] = xgeT
return eYnT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _VtO(YKHO):\n q4pr = {}\n for G1Hx, Ty9i in YKHO.main_dict['SPECIES'].items():\n q4pr[Ty9i['NAME']] = G1Hx\n YKHO._species_map = q4pr\n return",
"def SiLo(YKHO):\n from nlep import getx_from_specie, set_nlep_fromx\n YKHO.species = {}\n for KCHu in YKHO.systems:\n for o61b, ... | [
"0.57488984",
"0.54776245",
"0.528134",
"0.5275144",
"0.5212275",
"0.516454",
"0.5138136",
"0.51004684",
"0.50510204",
"0.50496334",
"0.50496334",
"0.5045866",
"0.5039976",
"0.5035058",
"0.5027499",
"0.5002265",
"0.4997853",
"0.4997853",
"0.49405587",
"0.49341133",
"0.4930912... | 0.63258404 | 0 |
Utilities to clean jinja template; Remove all ``|`` and `` `` until the last leading ``|`` | def O4yN(A97Q):
Nqlg = A97Q.split('\n')
BdN0 = []
for vC9B in Nqlg:
while len(vC9B.lstrip()) >= 1 and vC9B.lstrip()[0] == '|':
vC9B = vC9B.lstrip()[1:]
BdN0.append(vC9B)
return '\n'.join(BdN0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BcBj(FUjE):\n return Hy7s.linesep.join([KCHu for KCHu in FUjE.splitlines() if not KCHu.strip() == '']) + Hy7s.linesep",
"def tsYO():\n\n def drk4(_R2e, Xm0y='|'):\n \"\"\"\n :rtype: str|unicode\n \"\"\"\n Aofo = []\n for kUBT in DwPC.findall(_R2e):\n kUBT =... | [
"0.6897201",
"0.6528167",
"0.6437278",
"0.62067723",
"0.5994741",
"0.58526266",
"0.584299",
"0.5817592",
"0.5642618",
"0.56297445",
"0.55691546",
"0.5563808",
"0.5528268",
"0.54744065",
"0.54156655",
"0.5383031",
"0.537918",
"0.5367132",
"0.53559446",
"0.5334877",
"0.5334408"... | 0.0 | -1 |
returns None if there are no elments left in not_explored otherwise returns the next minimum key | def s4Kv(YKHO):
return next(iter(YKHO._path.keys()), None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XcNI(YKHO):\n \"\"\"Takes no arguments.\n Returns the smallest key from a node.\"\"\"\n jvSB = YKHO\n while jvSB.left:\n jvSB = jvSB.left\n return jvSB.key",
"def min(YKHO):\n if YKHO.empty():\n return None\n else:\n fUas = YKHO.__min(YKHO.root)\n return f... | [
"0.663702",
"0.6523567",
"0.65003",
"0.6447518",
"0.64384955",
"0.64003605",
"0.63278383",
"0.6319757",
"0.6305979",
"0.62356627",
"0.61759686",
"0.6172856",
"0.61502606",
"0.6135314",
"0.6133567",
"0.6129707",
"0.6098277",
"0.6098277",
"0.60876435",
"0.6078126",
"0.606539",
... | 0.584676 | 38 |
returns True if the goal is found, false otherwise | def neBz(YKHO) -> bool:
I1mm = True
while I1mm:
YKHO._searchAlgo.move()
if tuple(YKHO._searchAlgo._position) == YKHO._end_bounds and (not YKHO._searchAlgo._goal_found):
YKHO._position = tuple(YKHO._searchAlgo._position)
return False
elif YKHO._searchAlgo._goal_fou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HjJj(YKHO, Q6kx):\n return Q6kx in YKHO.goals",
"def rq76(YKHO, jvSB, xi3E):\n return jvSB == xi3E",
"def M1ye(YKHO):\n r1VO = xi3E[2]\n if YKHO.loc[0] in range(xi3E[0] - r1VO, xi3E[0] + r1VO + 1):\n if YKHO.loc[1] in range(xi3E[1] - r1VO, xi3E[1] + r1VO + 1):\n return True\n ... | [
"0.74127054",
"0.7256621",
"0.7242528",
"0.7212232",
"0.7162887",
"0.7154891",
"0.71480554",
"0.7133301",
"0.71159136",
"0.7068011",
"0.7068011",
"0.7068011",
"0.7059578",
"0.7000418",
"0.6903525",
"0.6875848",
"0.6858346",
"0.6825461",
"0.68113697",
"0.6808876",
"0.68049157"... | 0.7703034 | 0 |
Finds the intersection of two lines given in Hesse normal form. Returns closest integer pixel locations. | def iQin(cnXz, Ijzj):
fy7g, snrU = cnXz[0]
IMyn, M5jx = Ijzj[0]
k0lF = oyIN.array([[oyIN.cos(snrU), oyIN.sin(snrU)], [oyIN.cos(M5jx), oyIN.sin(M5jx)]])
Fg_i = oyIN.array([[fy7g], [IMyn]])
nJ9F, nxyw = oyIN.linalg.solve(k0lF, Fg_i)
nJ9F, nxyw = (int(oyIN.round(nJ9F)), int(oyIN.round(nxyw)))
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mP91(cnXz, Ijzj):\n fy7g, snrU = cnXz[0]\n IMyn, M5jx = Ijzj[0]\n k0lF = oyIN.array([[oyIN.cos(snrU), oyIN.sin(snrU)], [oyIN.cos(M5jx), oyIN.sin(M5jx)]])\n Fg_i = oyIN.array([[fy7g], [IMyn]])\n WKvO, LVAh = oyIN.linalg.solve(k0lF, Fg_i)\n WKvO, LVAh = (int(oyIN.round(WKvO)), int(oyIN.round(LV... | [
"0.7775943",
"0.7720436",
"0.7699298",
"0.7584421",
"0.7531958",
"0.7500958",
"0.7500958",
"0.7500958",
"0.73706347",
"0.7325369",
"0.7322102",
"0.7317903",
"0.7314623",
"0.7282092",
"0.72792697",
"0.72788423",
"0.7227176",
"0.7195137",
"0.71821207",
"0.71385545",
"0.71306616... | 0.7630704 | 3 |
Tests the creation of an article with a single tag. | def bxXL(YKHO):
YKHO.create_login_user()
geh0 = YKHO.client.post('/api/articles/', YKHO.create_article, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)
YKHO.assertEqual(['r', 'e', 'a', 'c', 't', 'j', 's'], geh0.data['tags'][0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u4RC(YKHO):\n YKHO.authorize_user(YKHO.user)\n geh0 = YKHO.client.post(YKHO.articles_url, YKHO.article, format='json')\n Bxi_ = geh0.data['slug']\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n YKHO.assertEqual(Bxi_, 'the-one')\n YKHO.assertEqual(len(geh0.data['tagList']), 3)",
... | [
"0.79381657",
"0.762547",
"0.7606011",
"0.75395983",
"0.75300336",
"0.7268835",
"0.71203226",
"0.7080031",
"0.70501554",
"0.7035189",
"0.70343125",
"0.7032422",
"0.70283186",
"0.7017539",
"0.7013191",
"0.6994782",
"0.69623536",
"0.6940113",
"0.6900657",
"0.68724066",
"0.68721... | 0.8098627 | 0 |
Tests creation of an article with several tags. | def s96B(YKHO):
YKHO.create_login_user()
geh0 = YKHO.client.post('/api/articles/', YKHO.create_article_several_tags, format='json')
s5ru = geh0.data['slug']
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)
YKHO.retrieve_update_delete_url = gxEw('articles:retrieveUpdateDelete', kwargs={'slug... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ODUB(YKHO):\n YKHO.create_login_user()\n YKHO.client.post('/api/articles/', YKHO.create_article, format='json')\n geh0 = YKHO.client.post('/api/articles/', YKHO.create_article_several_tags, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)",
"def bxXL(YKHO):\n YKHO.cre... | [
"0.8186839",
"0.8049132",
"0.788166",
"0.7496349",
"0.74195606",
"0.73990786",
"0.73817694",
"0.7372189",
"0.73712766",
"0.7369182",
"0.73618627",
"0.7344731",
"0.7344104",
"0.7343408",
"0.73000133",
"0.72987443",
"0.7287711",
"0.72870123",
"0.7282846",
"0.7278555",
"0.727552... | 0.833969 | 0 |
Tests that a user can create several articles with the same tags. | def ODUB(YKHO):
YKHO.create_login_user()
YKHO.client.post('/api/articles/', YKHO.create_article, format='json')
geh0 = YKHO.client.post('/api/articles/', YKHO.create_article_several_tags, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s96B(YKHO):\n YKHO.create_login_user()\n geh0 = YKHO.client.post('/api/articles/', YKHO.create_article_several_tags, format='json')\n s5ru = geh0.data['slug']\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n YKHO.retrieve_update_delete_url = gxEw('articles:retrieveUpdateDelete', kwa... | [
"0.7795992",
"0.7399775",
"0.73640406",
"0.7329328",
"0.7321847",
"0.7300961",
"0.72887677",
"0.72668105",
"0.72641873",
"0.726034",
"0.7243697",
"0.7228022",
"0.7226101",
"0.7221332",
"0.7202981",
"0.71318734",
"0.71129286",
"0.7103833",
"0.7081608",
"0.7069187",
"0.70585775... | 0.80987185 | 0 |
If true, adds a custom sender ID message TLV to bridge messages. | def C9B9(YKHO):
return YKHO._get_attribute('addSenderIdTlv') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def duDf(YKHO, BWXx: int) -> None:\n YKHO.__sender_id = BWXx",
"def Xs9v(YKHO, uW7V, ulGv, tO9_=''):\n TZ9E = YKHO.tagger(uW7V, ulGv, YKHO.myRank, YKHO.nbRank)\n if tO9_:\n print(f'{tO9_} send_tag:{TZ9E}')\n return TZ9E",
"def duDf(YKHO) -> int:\n return YKHO.__sender_id",
"def qPvm(YKH... | [
"0.57200074",
"0.54685",
"0.5287436",
"0.5282956",
"0.5179193",
"0.5179193",
"0.51436657",
"0.50983953",
"0.5079946",
"0.50315815",
"0.5024962",
"0.5024518",
"0.50167334",
"0.50166106",
"0.4940036",
"0.49305746",
"0.49198532",
"0.49079257",
"0.48847196",
"0.48446757",
"0.4837... | 0.6218473 | 0 |
The sent MAC address for the DM, if autoDmAllDestination is set to true. | def A9SP(YKHO):
return YKHO._get_attribute('autoDmDestination') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bUBA(YKHO):\n try:\n return Vwkc(YKHO.ext_iface)[JBPy][0]['addr']\n except KeyError:\n return '00:00:00:00:00:00'",
"def KBOU(YKHO):\n return YKHO._data['mac_address']",
"def p4ZD(YKHO):\n return YKHO.configuration['MAC']",
"def HXjy(YKHO) -> str:\n return YKHO._device_inform... | [
"0.71366453",
"0.7100612",
"0.7025234",
"0.6973129",
"0.69452685",
"0.69101846",
"0.68381375",
"0.6814555",
"0.67964196",
"0.67612976",
"0.6750481",
"0.67051965",
"0.66779935",
"0.6660432",
"0.6609548",
"0.6578121",
"0.6460409",
"0.64222294",
"0.6421229",
"0.64135057",
"0.641... | 0.60409945 | 38 |
The MD level of the MP. The MD level must be previously configured. | def U5YW(YKHO):
return YKHO._get_attribute('mdLevel') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D2Te(YKHO):\n return YKHO.__mdName",
"def fwR1(YKHO):\n return YKHO.__mdUid",
"def Qp7n(YKHO):\n return YKHO.mp",
"def Hu6V(YKHO):\n if YKHO._devClassTree is None:\n YKHO._initDevClasses()\n return YKHO._devClassTree.get('md')",
"def YZNy(YKHO, M4N3):\n return YKHO.getDevStats(... | [
"0.62489635",
"0.6110772",
"0.5956657",
"0.5781708",
"0.5768899",
"0.5731497",
"0.56704664",
"0.5617683",
"0.5576568",
"0.5566507",
"0.5549765",
"0.55029434",
"0.54820037",
"0.5452759",
"0.5437583",
"0.5430399",
"0.54156715",
"0.5409354",
"0.5398572",
"0.53891027",
"0.5383038... | 0.7793047 | 1 |
Returns number of vertices in int | def JalI(YKHO) -> int:
return YKHO.__number_of_vertices | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrQl(YKHO):\n return YKHO._n",
"def y8Vt(YKHO):\n return YKHO.intrinsicValue('vertexcount')",
"def X7h0(YKHO):\n return len(YKHO.vertices)",
"def GthF(YKHO):\n return int(YKHO._scala.vertexCount())",
"def poMF(Fw8z):\n return Fw8z.intrinsicValue('vertexcount')",
"def JalI(YKHO):\n r... | [
"0.8586656",
"0.8508551",
"0.8493505",
"0.8478401",
"0.84563977",
"0.84039736",
"0.8399395",
"0.8385421",
"0.83088315",
"0.8288438",
"0.8288438",
"0.82614017",
"0.82614017",
"0.8226528",
"0.82085127",
"0.8182073",
"0.81708395",
"0.81656426",
"0.8146157",
"0.81447124",
"0.8141... | 0.84797156 | 3 |
Returns number of edges in int | def fOCg(YKHO) -> int:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n8F9():\n return len(mC4V())",
"def fOCg(yvY1):\n return yvY1.number_of_edges()",
"def vi4d(YKHO):\n return YKHO._n",
"def fOCg(YKHO):\n return YKHO.graph.number_of_edges()",
"def n8F9(YKHO):\n return len(tuple(YKHO.edges()))",
"def n8F9(YKHO):\n return len(tuple(YKHO.edges()))",
... | [
"0.88115996",
"0.86980927",
"0.8660464",
"0.86361355",
"0.8551195",
"0.8551195",
"0.84465355",
"0.8432356",
"0.8423248",
"0.84109753",
"0.84109753",
"0.84023803",
"0.8391564",
"0.83595675",
"0.8328297",
"0.83255476",
"0.8297454",
"0.8291126",
"0.8279603",
"0.82593673",
"0.825... | 0.87186766 | 1 |
Returns an int with the sum of all edges of a vertice | def tjON(YKHO, Ty9i: int) -> int:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c_0f(YKHO):\n sum = 0\n for e2gD in YKHO:\n sum += e2gD.getEdges()\n return sum",
"def C321(YKHO):\n Oa1e, a1PO = (YKHO._graph, YKHO._id)\n sum = 0\n for MKlR in YKHO.in_vertices():\n sum += Oa1e[MKlR][a1PO]\n return sum",
"def BWXx(YKHO, PZya, Aofo):\n BWXx = 0\n f... | [
"0.7477385",
"0.7303215",
"0.6892173",
"0.6744363",
"0.66362023",
"0.65616703",
"0.65349096",
"0.6520271",
"0.64860535",
"0.6452639",
"0.64345556",
"0.62672096",
"0.6219069",
"0.6211619",
"0.6207532",
"0.61975366",
"0.6185904",
"0.6152936",
"0.6144836",
"0.61255914",
"0.61115... | 0.0 | -1 |
Return the genomic delins classifier instance. | def YIYz(YKHO):
return tlfm() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YIYz(YKHO):\n return f2cY()",
"def YIYz(YKHO):\n return eXXQ()",
"def YIYz(YKHO):\n return zVwV()",
"def UCa5():\n return haER()[_rcs]",
"def YIYz(YKHO):\n raise NotImplementedError()",
"def vOsx(YKHO):\n return HmMl",
"def nZer(YKHO):\n return zGzz(*YKHO.params)",
"def K4XL(... | [
"0.7960433",
"0.74346817",
"0.6335439",
"0.6023592",
"0.60114294",
"0.59394455",
"0.5936938",
"0.5909336",
"0.5909336",
"0.5909336",
"0.5909336",
"0.5909336",
"0.5909336",
"0.5909336",
"0.5909336",
"0.5909336",
"0.58915836",
"0.5830864",
"0.57953584",
"0.572524",
"0.56338495"... | 0.8848768 | 0 |
Picks a random operator from the operator list | def _uJa(YKHO):
Q6kx = YKHO.node_type_list[tuKI.choice(YKHO.operator_inds)]
return Q6kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WdZn(Maem):\n return Maem[fTff.randint(0, len(Maem) - 1)]",
"def jI2w():\n ql7k = ['+', '-', '*', '/']\n return ql7k[tuKI.randint(2, 3)]",
"def qrrS():\n UixF = tuKI.randint(0, 1)\n if UixF == _Yp9:\n return QH_B\n elif UixF == M1AS:\n return JKp6\n else:\n return ... | [
"0.82348245",
"0.7787575",
"0.7408442",
"0.6894496",
"0.68756014",
"0.646106",
"0.6424445",
"0.6297412",
"0.6241027",
"0.62388813",
"0.62257063",
"0.6209708",
"0.62067",
"0.6152443",
"0.60962224",
"0.6096071",
"0.60590583",
"0.60525244",
"0.60343325",
"0.6010919",
"0.59891045... | 0.76416177 | 2 |
conversion to simplified latex string | def uAer(YKHO):
gnPz = YKHO.utilized_commands()
hkWs = [None] * len(YKHO.command_list)
for YRbF, (Q6kx, NArs) in enumerate(YKHO.command_list):
if gnPz[YRbF]:
hkWs[YRbF] = Q6kx.latexstring(NArs, hkWs)
GcbJ = hkWs[-1]
if YKHO.constants is not None:
for YRbF, PtXs in enumera... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A3C4(YKHO, KCHu):\n rRy_ = KCHu.xreplace({CeJ7: rmc3(str(CeJ7.abbrev)) for CeJ7 in KCHu.atoms(gVFe.Quantity)})\n cD9x = '{}'.format(_svw(rRy_, mul_symbol='dot'))\n return cD9x",
"def eMsG(YKHO):\n return _svw(YKHO.lift()).replace('(', '[', 1).replace(')', ']', 1)",
"def Ne1c(YKHO):\n return ... | [
"0.7624573",
"0.7596142",
"0.7398116",
"0.7219021",
"0.71931994",
"0.709956",
"0.7073565",
"0.707293",
"0.7060392",
"0.7053327",
"0.7037932",
"0.7011905",
"0.70066214",
"0.7001387",
"0.6969346",
"0.69603825",
"0.6924944",
"0.6924944",
"0.69073915",
"0.6888263",
"0.68777144",
... | 0.6564883 | 29 |
creates a string for outputting latex | def uAer(NArs, hkWs):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlel(KCHu):\n global latex_file\n if not ZhUY:\n return\n ZhUY.write(KCHu)",
"def nQCH(YKHO):\n KCHu = '\\\\documentclass{article}\\n\\\\input{gamesty}%\\n\\\\begin{document} \\n'\n KCHu = KCHu + YKHO.mapTokensToBMTemplate()\n return KCHu + '\\\\end{document} \\n'",
"def Ne1c(YKHO,... | [
"0.7729703",
"0.7532547",
"0.74801856",
"0.74451035",
"0.7426199",
"0.73000926",
"0.7295697",
"0.72695893",
"0.7262592",
"0.72589356",
"0.7225353",
"0.719149",
"0.719149",
"0.71285075",
"0.70982087",
"0.70954376",
"0.7091387",
"0.70609766",
"0.7050454",
"0.7046076",
"0.704225... | 0.75541544 | 1 |
closes the underlying input file object. | def DDI8(YKHO):
try:
if YKHO._close_file:
YKHO._stream_reader.close()
except:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qsZa(rVmU):\n rVmU.end()",
"def upVe(YKHO):\n YKHO._iostream.close()",
"def VETT(Emd4):\n if not Emd4._isopen():\n Emd4._fd = None\n return\n Emd4._fd.close()\n Emd4._fd = None",
"def qsZa(YKHO):\n YKHO.f.close()",
"def qsZa(YKHO):\n YKHO.output_file.close()",
"def ... | [
"0.75577945",
"0.74960876",
"0.72986066",
"0.7136688",
"0.7134561",
"0.7089076",
"0.7072626",
"0.7048403",
"0.70009714",
"0.69750005",
"0.69665086",
"0.6951729",
"0.69464713",
"0.69124764",
"0.690802",
"0.690802",
"0.6906201",
"0.6896094",
"0.6891192",
"0.68749094",
"0.687466... | 0.67035466 | 55 |
Get parameters for ``crop`` for a random sized crop. | def W6RH(VXjJ, NXpY=(0.08, 1.0), dMYj=(3.0 / 4.0, 4.0 / 3.0)):
for I2mK in range(10):
f0tD = VXjJ.size[0] * VXjJ.size[1]
Cnb1 = tuKI.uniform(*NXpY) * f0tD
pAIe = tuKI.uniform(*dMYj)
yzQ0 = int(round(epAf.sqrt(Cnb1 * pAIe)))
MKlR = int(round(epAf.sqrt(Cnb1 / pAIe)))
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nK5W(zi3C=(350, 350), a6Jb=(256, 256)):\n yzQ0, MKlR = zi3C\n idx7, q53Q = a6Jb\n if yzQ0 == q53Q and MKlR == idx7:\n return (0, 0, MKlR, yzQ0)\n YRbF = tuKI.randint(20, MKlR - idx7 - 20)\n r845 = tuKI.randint(20, yzQ0 - q53Q - 20)\n return (YRbF, r845, idx7, q53Q)",
"def W6RH(y7GR, ... | [
"0.7339684",
"0.7275599",
"0.7059393",
"0.66656333",
"0.6655315",
"0.66322607",
"0.65785265",
"0.64152414",
"0.63848287",
"0.63592803",
"0.63344157",
"0.6297768",
"0.62975067",
"0.62499875",
"0.6206198",
"0.61728495",
"0.61694276",
"0.61669433",
"0.6133469",
"0.6131111",
"0.6... | 0.0 | -1 |
Horizontally flip the given PIL Image. | def EXQN(VXjJ):
QvQx = isinstance(VXjJ, oyIN.ndarray)
if not Qfi2(VXjJ):
if QvQx:
VXjJ = hnIv.fromarray(VXjJ)
else:
raise TypeError('img should be PIL Image or numpy array. Got {}'.format(type(VXjJ)))
VXjJ = VXjJ.transpose(hnIv.FLIP_LEFT_RIGHT)
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hl5t(VXjJ):\n if not RDRa(VXjJ):\n raise TypeError(t_1q.format(type(VXjJ)))\n return VXjJ.transpose(YGpq)",
"def Hl5t(YKHO, Tz44, gb5P):\n VXjJ = Yw_3.Image(Tz44.data)\n VXjJ.horizontal_flip()\n T4M1 = VXjJ.execute_transforms(gb5P)\n return T4M1",
"def il8A(VXjJ):\n if not Qfi2(... | [
"0.84713465",
"0.7824768",
"0.7797967",
"0.7797967",
"0.7780622",
"0.7597435",
"0.75710785",
"0.751702",
"0.7504328",
"0.74564666",
"0.74564666",
"0.74564666",
"0.7442441",
"0.7404697",
"0.735035",
"0.73226225",
"0.729929",
"0.7286806",
"0.726035",
"0.72347635",
"0.721116",
... | 0.7146613 | 27 |
Vertically flip the given PIL Image. | def il8A(VXjJ):
QvQx = isinstance(VXjJ, oyIN.ndarray)
if not Qfi2(VXjJ):
if QvQx:
VXjJ = hnIv.fromarray(VXjJ)
else:
raise TypeError('img should be PIL Image or numpy array. Got {}'.format(type(VXjJ)))
VXjJ = VXjJ.transpose(hnIv.FLIP_TOP_BOTTOM)
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xPm2(VXjJ):\n if not RDRa(VXjJ):\n raise TypeError(t_1q.format(type(VXjJ)))\n return VXjJ.transpose(nv4g)",
"def il8A(VXjJ):\n if not Qfi2(VXjJ):\n raise TypeError('img should be PIL Image. Got {}'.format(type(VXjJ)))\n return VXjJ.transpose(hnIv.FLIP_TOP_BOTTOM)",
"def il8A(VXjJ)... | [
"0.8557656",
"0.8235912",
"0.8235912",
"0.8076509",
"0.79829776",
"0.7853266",
"0.7700559",
"0.76852536",
"0.7623243",
"0.75245774",
"0.7418734",
"0.74095243",
"0.7397633",
"0.7386739",
"0.73433995",
"0.7333078",
"0.7318435",
"0.7309103",
"0.7309028",
"0.72922224",
"0.7291223... | 0.79804564 | 5 |
sets the API key to use for calling OneBusAway | def b3hQ(YKHO, BWXx):
YKHO.config.set('APIKey', 'api_key', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dma5(rJDA: str):\n XDI2('main', 'bing_api', rJDA)",
"def Dma5(YKHO, rJDA: str):\n YKHO.api_key = rJDA",
"def iu1r(YKHO, rSTc):\n YKHO.apikey = rSTc\n return YKHO",
"def Dma5(YKHO, H5ew: str) -> None:\n YKHO._api_key = H5ew",
"def rJDA(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def H5ew(... | [
"0.78578603",
"0.7704149",
"0.7613902",
"0.76122475",
"0.74787873",
"0.7454752",
"0.73867136",
"0.73867136",
"0.73867136",
"0.73734045",
"0.7344868",
"0.7294953",
"0.70642364",
"0.7047181",
"0.6948771",
"0.69285285",
"0.6877768",
"0.6816111",
"0.6816111",
"0.6816111",
"0.6795... | 0.6856888 | 17 |
Return True if plugChild == plugParent, or if plugParent is a direct/indirect parent of plugChild. | def GqoB(oHHm, uG45):
if oHHm.isNull() or uG45.isNull():
return False
if oHHm == uG45:
return True
elif not oHHm.isChild():
return False
else:
return GqoB(oHHm.parent(), uG45) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r6_X(YKHO, _AKB, aUGN):\n return YKHO.get_parent(aUGN) == _AKB",
"def EHo9(YKHO, aUGN):\n return EKJ3.is_parentTo(YKHO, aUGN)",
"def wbxR(YKHO, Elif):\n return YKHO.parent == Elif",
"def cRIP(Emd4, _AKB, aUGN):\n XP5J = aUGN.getParent()\n while XP5J is not None:\n if _AKB == XP5J:\n... | [
"0.750164",
"0.73223984",
"0.71888167",
"0.70865846",
"0.68549913",
"0.6840311",
"0.68254256",
"0.67777646",
"0.6774423",
"0.6751279",
"0.6736786",
"0.6563643",
"0.65538883",
"0.6496891",
"0.64600694",
"0.63815284",
"0.6364072",
"0.63547504",
"0.6354416",
"0.63440675",
"0.634... | 0.8647634 | 0 |
Set and remove reminders for yourself. Supports multiple formats. | async def reminder(YKHO, OaeV, V0Dt='help', *qIxc):
if V0Dt == 'help':
await OaeV.send('Set a reminder for yourself with the following supported formats: \n```!reminder add [#] [days] [time] [message] \n!reminder add [#] [weeks] [time] [message] \n!reminder add [day of week] [time] [message] \n!reminder add... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yYNI(TBsA):\n try:\n oFZD, mbyn, jmHs, DyXp, k7fX, brFa = cnQo(TBsA)\n except TypeError:\n return 'Sorry! No datetime information was found to set a reminder'\n if oFZD == 'Anisha':\n M8E4 = 'you'\n else:\n M8E4 = oFZD\n MOPg = {'Authorization': f'Bearer {Hy7s.getenv(... | [
"0.66689986",
"0.6466903",
"0.6069867",
"0.6024428",
"0.60119545",
"0.59838474",
"0.5896399",
"0.58533305",
"0.58343256",
"0.5712434",
"0.57095605",
"0.57066303",
"0.56918967",
"0.5664795",
"0.56202066",
"0.55457133",
"0.5492533",
"0.5445587",
"0.5427116",
"0.5417687",
"0.541... | 0.6086319 | 2 |
Return the current length of the trajectory (number of transitions). | def Kt_s(YKHO):
return len(YKHO.transitions) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ntDK(YKHO):\n return YKHO._traj_length",
"def yall(YKHO):\n u54L = 0\n for YRbF in range(len(YKHO.X) - 1):\n u54L += oyIN.linalg.norm(YKHO.X[YRbF + 1] - YKHO.X[YRbF])\n YKHO.logger.info('Length of trajectory: %.3f (* %.2f)' % (u54L, YKHO.penalty_length))\n return u54L",
"def a_Iv(YKHO... | [
"0.7934019",
"0.7831122",
"0.74981624",
"0.7492874",
"0.74640614",
"0.7414485",
"0.7401866",
"0.7270119",
"0.7259962",
"0.72587466",
"0.72248846",
"0.72060347",
"0.71872175",
"0.7165802",
"0.7153682",
"0.7100729",
"0.7097697",
"0.7090834",
"0.7084178",
"0.7084178",
"0.7083127... | 0.6781026 | 88 |
Return a list of discounted returns for all time steps. Suppose we have all rewards [r_1, ..., r_T], it computes G_t = \sum_{i=t}^{T} \gamma^{i t} r_i | def SeQK(YKHO):
return iDkI(YKHO.gamma)(YKHO.all_r) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CsN1(vwlo, KMvS=1.0):\n exwG = 0\n yvY1 = []\n while exwG < len(vwlo):\n yvY1.append(0)\n for YRbF in range(exwG, len(vwlo)):\n yvY1[exwG] += KMvS ** (YRbF - exwG) * vwlo[YRbF]\n exwG += 1\n return yvY1",
"def KTkN(vwlo, KMvS=0.99):\n Kt_s = len(vwlo)\n A3Vt ... | [
"0.78055036",
"0.77821994",
"0.751234",
"0.7446749",
"0.7269087",
"0.724489",
"0.7239234",
"0.71820366",
"0.7151113",
"0.7148821",
"0.7148821",
"0.7118804",
"0.7118804",
"0.7083537",
"0.7083537",
"0.7083537",
"0.7070063",
"0.7070063",
"0.70279455",
"0.7024077",
"0.70208794",
... | 0.6540925 | 45 |
Determine if the other object is identical to the spec object. We require that the objects are of the same type and that the values of the attributes given by _comparison_fields are the same. | def P7oE(YKHO, Elif):
if not isinstance(Elif, YKHO.__class__):
return False
for hGI9 in YKHO._comparison_fields:
if getattr(YKHO, hGI9) != getattr(Elif, hGI9):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IzcV(YKHO, Elif):\n return YKHO.__class__ == Elif.__class__ and YKHO.id == Elif.id and (YKHO.version == Elif.version) and (YKHO.specifications_url == Elif.specifications_url) and (YKHO.specifications_patch == Elif.specifications_patch) and (YKHO.validate_image == Elif.validate_image) and (YKHO.commit_simula... | [
"0.7858441",
"0.7527692",
"0.74051034",
"0.73464334",
"0.7305716",
"0.72684085",
"0.7266944",
"0.72601897",
"0.725042",
"0.7246177",
"0.7237111",
"0.7224888",
"0.7222053",
"0.72104293",
"0.7203614",
"0.7201592",
"0.7171007",
"0.71515703",
"0.71486145",
"0.71408886",
"0.713149... | 0.82362425 | 0 |
Factory method for creating the appropriate Orchestrator subclass based on format type. | def i_PC(Siyb, QJ8P=None):
KiQH = {'svn': 'SVNDistribution'}
BcnD = {'git': 'vcs', 'svn': 'vcs'}
kp67 = Siyb.lower()
_2sc = KiQH.get(kp67, kp67.capitalize() + 'Distribution')
yR_P = tF99('reproman.distributions.' + BcnD.get(kp67, kp67))
vOsx = getattr(yR_P, _2sc)
return vOsx if QJ8P is None ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MQ5K(Emd4, Z1yi, vXX7, **B2fa):\n if Z1yi == 'int':\n return lambda WKvO: Emd4.format_int(getattr(WKvO, vXX7), **B2fa)\n elif Z1yi == 'euro':\n return lambda WKvO: Emd4.format_euro(getattr(WKvO, vXX7))\n elif Z1yi == 'percent':\n return lambda WKvO: Emd4.format_percent(getattr(WKv... | [
"0.6104818",
"0.593288",
"0.5853561",
"0.5751449",
"0.5717662",
"0.5700409",
"0.5602503",
"0.55525637",
"0.5459346",
"0.5395868",
"0.53729427",
"0.534659",
"0.53273034",
"0.531672",
"0.531672",
"0.530442",
"0.52988905",
"0.5289289",
"0.5265188",
"0.52401376",
"0.52360344",
... | 0.5025125 | 42 |
Sort a list of numbers using quicksort | def vdyO(ezWE):
if len(ezWE) < 2:
return ezWE
rNe0(ezWE, 0, len(ezWE) - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BA9O(mSrU):\n lguw(mSrU, 0, len(mSrU) - 1)",
"def lguw(UrXw):\n pass",
"def vdyO(mSrU, gqRb, ODP9):\n if gqRb < ODP9:\n csQL = D42Z(mSrU, gqRb, ODP9)\n vdyO(mSrU, gqRb, csQL)\n vdyO(mSrU, csQL + 1, ODP9)\n return mSrU",
"def lguw(xYvp: List[int]) -> x1iM:\n if not isin... | [
"0.8650058",
"0.8348307",
"0.8109047",
"0.8013084",
"0.79634064",
"0.7871045",
"0.7849713",
"0.7792622",
"0.77579004",
"0.7723032",
"0.7713526",
"0.7707386",
"0.7691579",
"0.76434785",
"0.76316804",
"0.76288605",
"0.7618053",
"0.76007456",
"0.7595027",
"0.7552086",
"0.7548646... | 0.0 | -1 |
Get a proxy for the manager from this app. | def xgM5(Emd4) -> KTij:
return GNTG(Emd4._get_bio2bel) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ivVb(YKHO, R_mu, zsm8, DpZH):\n return",
"def Gtd5(YKHO):\n OE54.info('refreshProxy: getting proxy for DataManager...')\n kMyc = cf_P('DataManager')\n if not kMyc['OK']:\n OE54.error('refreshProxy: %s' % kMyc['Message'])\n return kMyc",
"def kMyc(YKHO):\n return YKHO._proxy",
"de... | [
"0.7094573",
"0.70664394",
"0.7002858",
"0.7002858",
"0.69986445",
"0.69433373",
"0.69423676",
"0.6904572",
"0.665253",
"0.66353655",
"0.6634811",
"0.64908355",
"0.6459809",
"0.6420572",
"0.6413918",
"0.6413918",
"0.6406763",
"0.6356502",
"0.63489586",
"0.63436055",
"0.630794... | 0.6115577 | 26 |
Reference to the surrounding register file, or `None` if not defined. | def lHga(YKHO):
return YKHO._regfile | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DlgC():\n return CStX",
"def GPQ3(YKHO):\n return YKHO.__regsupp",
"def _xhV(YKHO, mWFP):\n return None",
"def qoEw():\n return str(Xw_B.abspath)",
"def gr_i():\n return None",
"def BeMx(YKHO) -> RnTg.program.model.lang.Register:\n ...",
"def wajm(YKHO):\n return YKHO.__regprob... | [
"0.6495831",
"0.60449696",
"0.6013416",
"0.59712046",
"0.57973176",
"0.56976855",
"0.5685222",
"0.5540468",
"0.5495861",
"0.5494594",
"0.54266685",
"0.54085934",
"0.54085934",
"0.54085934",
"0.54085934",
"0.54085934",
"0.54085934",
"0.54085934",
"0.54085934",
"0.54085934",
"0... | 0.64939165 | 1 |
The short localizable label for the status. | def tX93(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'display_status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TXge(YKHO):\n return YKHO.status_labels[YKHO.status_id]",
"def UXqs(YKHO) -> str:\n return YKHO._dd_text_for_label('Current label:')",
"def DeTJ(YKHO):\n UXqs = YKHO.short_opt + '/' if YKHO.short_opt else ''\n UXqs = UXqs + YKHO.long_opt if YKHO.long_opt else UXqs[:-1]\n UXqs += ': ' + YKHO.... | [
"0.75704306",
"0.70724714",
"0.7032405",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",
"0.69776654",... | 0.0 | -1 |
POST endpoint to forceenroll a student | def HLTT(Emd4, DCgT):
if not Tf5Y.Roles.is_course_admin(DCgT.app_context):
DCgT.error(403)
DCgT.render_page({'page_title': DCgT.format_title(Emd4.NAME), 'main_content': '403 Unauthorized'})
return
z39Z = None
D3lj = DCgT.request.get('email')
if not D3lj:
DCgT.error(400)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yBev(YKHO, QePW, *qIxc, **B2fa):\n GQfX = YKHO.get_object()\n GQfX.students.add(QePW.user)\n return oGir({'enrolled': True})",
"def eSqL(YKHO):\n YKHO.client.login(username=YKHO.user1.username, password=YKHO.user1_plaintext_pass)\n geh0 = YKHO.client.post(gxEw('yaksh:enroll_users', kwargs={'co... | [
"0.70407724",
"0.6854403",
"0.67495656",
"0.65645516",
"0.65616715",
"0.64028317",
"0.62729394",
"0.625914",
"0.6184295",
"0.6182357",
"0.61694735",
"0.6143588",
"0.6135213",
"0.61121166",
"0.6081467",
"0.6061394",
"0.6041657",
"0.60416055",
"0.6029622",
"0.6015254",
"0.60133... | 0.6990953 | 1 |
Resets the EnvRunner. The task env and the agent are preserved. | def SiRx(YKHO):
YKHO.episode = 0
YKHO.all_scores: x1iM[x1iM[fNzS]] = []
YKHO.all_iterations = []
YKHO.scores_window = MUE7(maxlen=YKHO.window_len) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yo0O(YKHO):\n YKHO._env.reset()",
"def yo0O(YKHO):\n QTBn = YKHO.env.reset()\n QTBn = YKHO.preprocess_state(QTBn)\n YKHO._reset_state(QTBn)",
"def SiRx(YKHO):\n YKHO.reset_agent_position()\n YKHO.reset_environment()",
"def SiRx(YKHO):\n YKHO._done = False\n return YKHO._env.reset(... | [
"0.7656322",
"0.7485438",
"0.6927333",
"0.6924044",
"0.6849835",
"0.68297464",
"0.68297464",
"0.68297464",
"0.67953897",
"0.678331",
"0.6771778",
"0.67297804",
"0.67194176",
"0.6653821",
"0.6592873",
"0.6565321",
"0.6558544",
"0.65470165",
"0.65165305",
"0.6510649",
"0.645454... | 0.0 | -1 |
Resets instance. Preserves everything about task and agent. | def SiRx(YKHO) -> None:
YKHO.episode: float = 0
YKHO.all_scores: x1iM[cuzp[str, fNzS]] = []
YKHO.all_iterations = []
YKHO.scores_window = MUE7(maxlen=YKHO.window_len) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n raise NotImplementedError('Agent must implement reset method.')",
"def SiRx(YKHO):\n ZylS.reset_default_graph()\n YWSi.sess = ZylS.Session()",
"def SiRx(YKHO):\n with YKHO.monitor_reset():\n YKHO._reset()",
"def f785(Emd4):\n Emd4._instance = None",
"def SiRx(YKHO):\... | [
"0.7190203",
"0.7157155",
"0.71362084",
"0.71293235",
"0.7063237",
"0.6985597",
"0.6961902",
"0.6960312",
"0.6959245",
"0.6937817",
"0.69316167",
"0.69309133",
"0.6915585",
"0.6880537",
"0.6865216",
"0.6860409",
"0.6855645",
"0.6837763",
"0.68153095",
"0.680763",
"0.680763",
... | 0.0 | -1 |
r""" Return latex representation of this group. | def eMsG(YKHO):
KCHu = '$\\mathrm{AbelianGroup}( %s, %s )$' % (YKHO.ngens(), YKHO.gens_orders())
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eMsG(YKHO):\n from sage.misc.latex import latex\n return '{}_{{ n={} }}({},\\\\ {})({})'.format(YKHO._analytic_type.latex_space_name(), YKHO._group.n(), YKHO._weight, YKHO._ep, latex(YKHO._base_ring))",
"def eMsG(YKHO):\n KCHu = '$\\\\mathrm{AbelianGroup}( %s, %s )$' % (len(YKHO.invariants()), YKHO.... | [
"0.796176",
"0.7681337",
"0.76777303",
"0.7548602",
"0.7427717",
"0.74162006",
"0.7309404",
"0.7308365",
"0.73016846",
"0.7260713",
"0.7252903",
"0.7229569",
"0.7192688",
"0.7192688",
"0.7172583",
"0.7041943",
"0.7036043",
"0.70280343",
"0.69538844",
"0.69521695",
"0.69223446... | 0.782463 | 1 |
The number of free generators of the abelian group. | def NGTi(YKHO):
return len(YKHO.gens_orders()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uya5(YKHO) -> int:\n return len([WKvO for WKvO in YKHO.gpus if not WKvO.used])",
"def QcRT(YKHO):\n return YKHO._numFreeInodes",
"def uNB9(YKHO):\n return YKHO._numFreeBlocks",
"def smjE(YKHO):\n return YKHO.size - len(YKHO.passengers)",
"def Qnn3(YKHO):\n rRmI = 0\n for Npgh in YKHO.... | [
"0.6966479",
"0.68647283",
"0.6792032",
"0.6785516",
"0.67755556",
"0.6743792",
"0.66903913",
"0.6687576",
"0.6683852",
"0.6651239",
"0.66501206",
"0.66270804",
"0.6623763",
"0.66175646",
"0.6607002",
"0.6552731",
"0.65475035",
"0.6537352",
"0.6521153",
"0.6507777",
"0.649218... | 0.65677965 | 15 |
Return True since this group is commutative. | def o7Pa(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7Pa(YKHO):\n return YKHO.base_ring().is_commutative() and YKHO.realization_of().coxeter_group().is_commutative()",
"def o7Pa(YKHO):\n return True",
"def hH5F(YKHO):\n return YKHO.grouplikestructure_properties.iscommutative()",
"def hH5F(YKHO):\n return YKHO._commutative",
"def jwcM(YKHO):\... | [
"0.865732",
"0.8567568",
"0.85534555",
"0.7927833",
"0.6880989",
"0.68690324",
"0.65925664",
"0.6481315",
"0.6348132",
"0.6342224",
"0.6243868",
"0.6228833",
"0.618414",
"0.6167162",
"0.6106579",
"0.60842204",
"0.6058455",
"0.6058455",
"0.6058455",
"0.60561985",
"0.60119194",... | 0.86405665 | 1 |
Return a string representation of ``self``. | def aRbh(YKHO):
Ivqc = YKHO.gens_orders()
if len(Ivqc) == 0:
return 'Trivial Abelian group'
Oa1e = YKHO._group_notation(Ivqc)
return 'Multiplicative Abelian group isomorphic to ' + Oa1e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def rIkN(YKHO) -> str:\n return str(YKHO)",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def gTzM(YKHO):\... | [
"0.8866918",
"0.8855845",
"0.8764202",
"0.87561667",
"0.87224334",
"0.87181777",
"0.86861527",
"0.86622393",
"0.86622393",
"0.86296016",
"0.85730827",
"0.8566589",
"0.8566589",
"0.8566589",
"0.8563017",
"0.8532948",
"0.8518513",
"0.85110533",
"0.84995",
"0.84995",
"0.8468928"... | 0.0 | -1 |
Return the ambient group related to self. | def cvrI(YKHO):
return YKHO._ambient_group | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cvrI(YKHO):\n return YKHO.__ambient_group",
"def aiHR(YKHO):\n return YKHO.type.group",
"def uOe2(YKHO):\n return YKHO._group",
"def uOe2(YKHO):\n return YKHO._group",
"def uOe2(YKHO):\n return YKHO._group",
"def uOe2(YKHO):\n return YKHO._group",
"def uOe2(YKHO):\n return YKHO... | [
"0.9119479",
"0.71075636",
"0.7078588",
"0.7062191",
"0.7062191",
"0.7062191",
"0.7062191",
"0.7062191",
"0.7062191",
"0.7062191",
"0.70484406",
"0.6990438",
"0.69304717",
"0.6864309",
"0.6808569",
"0.67871815",
"0.67871815",
"0.67602223",
"0.6686982",
"0.65848607",
"0.654711... | 0.9122316 | 0 |
Save accumulated changes to the database. If the object is not already in the database (the identifier is None), instead saves the whole object. | def ySfp(YKHO, GSLx):
if YKHO.identifier is None:
xy4R = YKHO.serialize()
hbFX = GSLx.experiments_collection.insert(xy4R)
YKHO.refresh_id(hbFX)
elif len(YKHO._updates) > 0:
GSLx.experiments_collection.update({'_id': YKHO.identifier}, YKHO._updates)
YKHO._updates = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO) -> None:\n cuiw = FEJ9.get_session()\n if not YKHO.id:\n cuiw.add(YKHO)\n cuiw.commit()",
"def xkzz(YKHO, YEnM):\n oAiD = YEnM.serialized()\n if YEnM.id:\n YEnM.table.update(oAiD, doc_ids=[YEnM.id])\n else:\n YEnM.id = YEnM.table.insert(oAiD)",
"def xkzz(YK... | [
"0.7582705",
"0.7148395",
"0.7098618",
"0.70917964",
"0.6997709",
"0.6989842",
"0.6983362",
"0.69533867",
"0.6943289",
"0.6928388",
"0.6895647",
"0.6873284",
"0.6787178",
"0.6760293",
"0.6760293",
"0.67492265",
"0.6739729",
"0.67291784",
"0.6725957",
"0.6725957",
"0.6725957",... | 0.0 | -1 |
Calculates legality status, assuming tiles in `removed` are removed. If self._legal is already True, returns True immediately (since removing additional tiles will have no effect) If `ignore` is None or has no impact on legality, the current cached legality status will be updated. | def x3sK(YKHO, eSnm=None):
if not YKHO.exists or YKHO.element is None:
return False
if YKHO._legal or (not eSnm and YKHO._legal is False):
return YKHO._legal
if eSnm is None:
eSnm = set()
def rZ13():
wyyA = []
OMgv = YKHO.MINADJACENT - 1
for AAbN in YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Et7Y(YKHO):\n rWx5 = YKHO.states['hull_integrity']\n MRye = YKHO.states['max_hull_integrity']\n YKHO.states['health'] = DcX2.computelife(rWx5, MRye)\n YKHO.states = DcX2.determinemodifiedvalues(YKHO.states)\n jzdc = YKHO.states.get('special_conditions')\n if jzdc != None:\n for XEri in... | [
"0.4971299",
"0.4928474",
"0.48747873",
"0.4831978",
"0.4778882",
"0.4774274",
"0.47704205",
"0.47669053",
"0.47572342",
"0.47514972",
"0.4716054",
"0.46982738",
"0.46383652",
"0.4637143",
"0.4621551",
"0.46191403",
"0.4607885",
"0.46074626",
"0.4600295",
"0.4593051",
"0.4585... | 0.67442447 | 0 |
Returns the set of all neighbors of `tiles`. | def ljnH(Emd4, PttE):
A_IW = set()
for eL5z in PttE:
if eL5z is None:
continue
A_IW.update(eL5z.real_neighbors())
A_IW.discard(None)
A_IW.difference_update(PttE)
return A_IW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_IW(YKHO, *eL5z: Tile) -> x1iM[CTtz]:\n a1PO = A8wl(*eL5z)\n ssDt = YKHO.minmax(a1PO.z)\n PttE = []\n for YRbF in [-1, 0, 1]:\n for r845 in [-1, 0, 1]:\n if YRbF == 0 and r845 == 0:\n continue\n elif a1PO.x + YRbF < ssDt['x']['min'] or a1PO.y + r845 < ss... | [
"0.71110344",
"0.7071895",
"0.6748572",
"0.674323",
"0.67059976",
"0.66604775",
"0.6598921",
"0.6562293",
"0.6549719",
"0.65471876",
"0.6545026",
"0.6537403",
"0.652823",
"0.65176207",
"0.65142876",
"0.64869004",
"0.6472046",
"0.64699966",
"0.64642674",
"0.64611995",
"0.64550... | 0.8473491 | 0 |
Yields a list of tiles that are legal. | def uzuA(YKHO):
return [a1PO for a1PO in YKHO.tiles if a1PO.legal] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j1J9():\n for WKvO in range(12):\n for LVAh in range(6 if WKvO < 6 else 12):\n assert mVZ4.isValidCell((WKvO, LVAh))\n yield (WKvO, LVAh)",
"def KB6V():\n return [[CTtz(LVAh) for LVAh in range(zwzr)] for WKvO in range(vFlL)]",
"def a6Rd(YKHO, THEQ: Slide) -> (CTtz, hsfJ):... | [
"0.6714759",
"0.662343",
"0.6483129",
"0.64483744",
"0.64437133",
"0.64365804",
"0.642937",
"0.63544786",
"0.62682474",
"0.62380785",
"0.62154144",
"0.62146604",
"0.6209519",
"0.61792797",
"0.6165677",
"0.6165402",
"0.61614436",
"0.61559236",
"0.61524034",
"0.61259305",
"0.60... | 0.79174876 | 0 |
Compute a guided backprop visualization using gc_model for images X_tensor and labels y_tensor. | def gyvk(YKHO, QRoH, o6rq, IIkm):
for xqoZ in IIkm.parameters():
xqoZ.requires_grad = True
for or8S, yR_P in IIkm.features._modules.items():
if yR_P.__class__.__name__ == 'ReLU':
IIkm.features._modules[or8S] = Lz7P.apply
elif yR_P.__class__.__name__ == 'Fire':
for... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XZcv(C3ST, Yw_3, YPaw, o3Uj, DyDu):\n if not Hy7s.path.exists(DyDu):\n Hy7s.makedirs(DyDu)\n\n @ZylS.custom_gradient\n def _GPG(WKvO):\n\n def Ro40(eUWA):\n return ZylS.cast(eUWA > 0, ZylS.float32) * ZylS.cast(WKvO > 0, ZylS.float32) * eUWA\n return (ZylS.nn.relu(WKvO),... | [
"0.6148618",
"0.6002744",
"0.5727251",
"0.5704037",
"0.56153",
"0.5572612",
"0.55693",
"0.5556115",
"0.55170053",
"0.5509935",
"0.55034125",
"0.5492764",
"0.54568523",
"0.5447196",
"0.5431044",
"0.5427237",
"0.542343",
"0.540133",
"0.5372605",
"0.5356729",
"0.5354626",
"0.5... | 0.6809573 | 0 |
astropy.coordinates.angles.Longitude Galactic longitude. Note that for connivance, the values l > 180 degrees are represented as 360l. | def iFl9(YKHO):
Q73k = YKHO.galactic.l
if Q73k > 180.0 * P6bq.deg:
Q73k = Q73k - 360.0 * P6bq.deg
return Q73k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s3uO(YylR):\n return epAf.radians(YylR)",
"def uHiV(YKHO, fKo8: str) -> float:\n tjON = float(fKo8[0:3])\n O66n = float(fKo8[-7:])\n phJ9 = O66n / 60.0\n return tjON + phJ9",
"def C5Lb(YylR):\n return epAf.degrees(YylR)",
"def OFWY(QnmL, oxGf):\n Gw_X = QnmL / 180 * oyIN.pi\n hHKz... | [
"0.70748276",
"0.6922556",
"0.6748843",
"0.654509",
"0.64769715",
"0.6458077",
"0.63342917",
"0.6331945",
"0.6331381",
"0.6313635",
"0.62578684",
"0.62237835",
"0.61858296",
"0.6175815",
"0.61521065",
"0.61510587",
"0.6147613",
"0.6145559",
"0.614135",
"0.61214024",
"0.611974... | 0.71352744 | 0 |
Align the arrays of the input list, based on batch size. | def Pz9L(YKHO, mGsV):
hgl7 = oyIN.min([WKvO.shape[0] for WKvO in mGsV])
S06t = [WKvO[0:hgl7] for WKvO in mGsV]
return S06t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X8fE(YKHO, Wc9F):\n Ys30 = max([KCHu.shape[1] for KCHu in Wc9F])\n ywwl, vuvg = (len(Wc9F), Wc9F[0].shape[0])\n ty06 = oyIN.zeros((ywwl, vuvg, Ys30), dtype=oyIN.float32)\n aHnM = []\n for YRbF, KCHu in enumerate(Wc9F):\n Kt_s = KCHu.shape[1]\n aHnM.append(Kt_s)\n ty06[YRbF, ... | [
"0.6461099",
"0.6425131",
"0.63825846",
"0.6359048",
"0.6272785",
"0.6202987",
"0.6113172",
"0.6105595",
"0.6060147",
"0.6050878",
"0.6002913",
"0.59966004",
"0.5990772",
"0.5990772",
"0.59838617",
"0.5974595",
"0.5956292",
"0.5913755",
"0.5881881",
"0.58746004",
"0.5869708",... | 0.75155926 | 0 |
Sends a message to the specified queue. | def gGq6(YKHO, gGq6, Ol8d):
YKHO.client.send(gGq6, Ol8d.encode()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qXSh(Ol8d, gGq6):\n a5v3.basic_publish(exchange='', routing_key=gGq6, body=str(Ol8d))",
"def fTX8(YKHO, tO9_, Q64Y):\n if not YKHO.channel.basic_publish(exchange='', routing_key=Q64Y, body=tO9_):\n YKHO.handle_msg_not_send(tO9_, Q64Y)",
"def WdaX(YKHO, Ol8d):\n YKHO.message_queue.put(Ol8d)"... | [
"0.79865324",
"0.7551507",
"0.74529046",
"0.7416507",
"0.7240116",
"0.72288144",
"0.71926254",
"0.71452624",
"0.7110871",
"0.70735323",
"0.7052812",
"0.7044359",
"0.7028296",
"0.7009327",
"0.7009327",
"0.69649816",
"0.6896375",
"0.685435",
"0.6835775",
"0.6826717",
"0.6824536... | 0.8261025 | 0 |
helper method to build aggregation query for sensors | def UOxQ(cM24):
xDcj = GPtr.AVG_QUERY
xDcj['aggs']['per_day']['aggs'] = {'avg_' + GPtr.INDEXES[cM24]['avg_field']: {'avg': {'field': GPtr.INDEXES[cM24]['avg_field']}}}
return xDcj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rzY0(kXUa, qIxc):\n if Hy7s.path.isfile(qIxc.query):\n with open(qIxc.query) as nUeQ:\n xDcj = qQXR.loads(nUeQ.read())\n else:\n xDcj = qIxc.query\n return kXUa.search(index=qIxc.index, body=xDcj, request_timeout=float(qIxc.timeout), filter_path=['aggregations'])",
"def dxAp... | [
"0.6194051",
"0.61617684",
"0.601828",
"0.5981171",
"0.5941465",
"0.593548",
"0.5851353",
"0.58312804",
"0.583005",
"0.58260417",
"0.5793201",
"0.5753265",
"0.5717043",
"0.57145923",
"0.57129574",
"0.56933206",
"0.56755036",
"0.56746006",
"0.56257564",
"0.5612772",
"0.5580869... | 0.6779077 | 0 |
Finalize all values that are the only choice for a unit. Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box. | def rIvV(hkxX):
for PXGI in dzni:
UAoO = JrWP(PXGI, hkxX)
td75 = {Ko6S: Gjtu for Ko6S, Gjtu in UAoO.items() if len(Gjtu) == 1}
for p8dH, PwDm in td75.items():
hkxX[PwDm[0]] = p8dH
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def alHn(hkxX):\n for PXGI in dzni:\n jGiX = dict()\n for FlUN in PXGI:\n if hkxX[FlUN] in jGiX.keys():\n jGiX[hkxX[FlUN]].append(FlUN)\n else:\n jGiX[hkxX[FlUN]] = [FlUN]\n for LTzJ in jGiX.keys():\n qWPs = len(LTzJ)\n ... | [
"0.62920254",
"0.6072825",
"0.600271",
"0.59533817",
"0.5923207",
"0.58891106",
"0.58879226",
"0.586876",
"0.58339965",
"0.5765762",
"0.5738441",
"0.5690163",
"0.5650775",
"0.5623954",
"0.56050575",
"0.5589515",
"0.55887103",
"0.5584333",
"0.5584319",
"0.55809677",
"0.5573125... | 0.5709118 | 11 |
Initialize a mapping from box names to the units that the boxes belong to | def zqZk(dzni, oUSw):
rYO3 = oRi_(list)
for krne in oUSw:
for PXGI in dzni:
if krne in PXGI:
rYO3[krne].append(PXGI)
return rYO3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vhwD(YKHO, mbW0, ONoW, LJaO=None):\n YKHO.palm_units = [m6BE() for YRbF in Ni9Y(mbW0)]\n for YRbF in Ni9Y(mbW0):\n YKHO.palm_units[YRbF].name = 'palm_unit_%d' % (YRbF + 1,)\n if LJaO is not None:\n YKHO.palm_units[YRbF].type = LJaO\n YKHO.finger_units = {}\n for SUQZ in YKH... | [
"0.65763724",
"0.65751386",
"0.6521408",
"0.63513654",
"0.6162747",
"0.6088135",
"0.60400546",
"0.6036237",
"0.6028692",
"0.59936994",
"0.5904796",
"0.59034866",
"0.58917975",
"0.58684635",
"0.58591104",
"0.58434814",
"0.5834352",
"0.5831332",
"0.5829878",
"0.5786989",
"0.575... | 0.6402734 | 3 |
Initialize a mapping from box names to a list of peer boxes (i.e., a flat list of boxes that are in a unit together with the key box) | def VCyC(rYO3, oUSw):
k5Tt = oRi_(set)
for GKqt in oUSw:
for PXGI in rYO3[GKqt]:
for zgct in PXGI:
if zgct != GKqt:
k5Tt[GKqt].add(zgct)
return k5Tt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VCyC(rYO3, oUSw):\n k5Tt = oRi_(set)\n for GKqt in oUSw:\n for PXGI in rYO3[GKqt]:\n for zgct in PXGI:\n if zgct != GKqt:\n k5Tt[GKqt].add(zgct)\n return k5Tt",
"def dqba(YKHO, FlUN: str) -> list:\n return YKHO.unit_peers_map[FlUN]",
"def Ebqg... | [
"0.6723616",
"0.62234986",
"0.61433125",
"0.59559053",
"0.5872231",
"0.5821232",
"0.57871073",
"0.5782394",
"0.5698596",
"0.56918424",
"0.56581986",
"0.5612667",
"0.560383",
"0.55836624",
"0.55191374",
"0.55097044",
"0.5505599",
"0.5480356",
"0.54723996",
"0.5407282",
"0.5402... | 0.6803642 | 0 |
Convert the dictionary board representation to as string | def HGvS(hkxX):
Ylbp = []
for Mkmy in usx6:
for Z9rn in WfCS:
Ty9i = hkxX[Mkmy + Z9rn]
Ylbp.append(Ty9i if len(Ty9i) == 1 else '.')
return ''.join(Ylbp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QB5L(BH3N):\n TEgA = '\\n{} | {} | {}\\n--------------\\n{} | {} | {}\\n--------------\\n{} | {} | {}\\n'\n JPR0 = []\n for list in BH3N['board']:\n rpVW = [bseI for bseI in list]\n JPR0 += rpVW\n TEgA = TEgA.format(*JPR0)\n return TEgA",
"def Rekt(YKHO, rb7a=0):\n ... | [
"0.69057524",
"0.68679816",
"0.6843439",
"0.6796268",
"0.67392385",
"0.67392385",
"0.6700552",
"0.66912496",
"0.668386",
"0.6672823",
"0.6652315",
"0.6647212",
"0.6627288",
"0.6609734",
"0.6569603",
"0.6557914",
"0.65451443",
"0.6537759",
"0.65339315",
"0.6529664",
"0.6525935... | 0.0 | -1 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Remove the smallest element, and return it as well | def BEuN(YKHO):
ycBG = YKHO.heap[0]
YKHO.heap[0] = YKHO.heap[-1]
YKHO.heap[-1] = ycBG
ZASI = YKHO.heap.pop()
ZyI_.min_heapify(YKHO.heap, 0, len(YKHO.heap))
return ZASI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DSv9(YKHO):\n CL9V = YKHO.items[0]\n YKHO.swap(0, len(YKHO.items) - 1)\n YKHO.items = YKHO.items[:-1]\n YKHO.swimdown(0)\n return CL9V",
"def BEuN(YKHO):\n vhf3 = min(YKHO.items)\n YKHO.items.remove(vhf3)\n YKHO.size -= 1\n return vhf3",
"def ud4o(YKHO):\n en4D = YKHO.items[1]... | [
"0.8348219",
"0.8268182",
"0.8197084",
"0.8052484",
"0.79063416",
"0.788583",
"0.77688134",
"0.76503956",
"0.7548734",
"0.75016147",
"0.74873513",
"0.74814147",
"0.74719095",
"0.7463639",
"0.74532485",
"0.74532485",
"0.7419044",
"0.74153095",
"0.7413831",
"0.74057484",
"0.740... | 0.6570316 | 74 |
Create a new PriorityQueueSet. | def FIMM(YKHO, DumB=None):
YKHO.set = set(DumB) if DumB is not None else set()
YKHO.heap = list(YKHO.set)
AVFK(YKHO.heap)
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLF8():\n return sijU(0, None, None)",
"def FIMM(YKHO):\n YKHO.minPQ = sijU()\n YKHO.maxPQ = sijU()",
"def FIMM(YKHO):\n super(sijU, YKHO).__init__()",
"def FIMM(YKHO):\n YKHO.small = sijU()\n YKHO.large = sijU()",
"def DisP(QePW):\n aWuw, BEuN, T7C_ = QePW.param\n aWuw = list(a... | [
"0.72461283",
"0.6735897",
"0.65174973",
"0.6503687",
"0.6500073",
"0.62871516",
"0.6286665",
"0.62466353",
"0.6214961",
"0.61150056",
"0.6094828",
"0.6045753",
"0.60201305",
"0.6002548",
"0.59401315",
"0.59032875",
"0.5892033",
"0.5870706",
"0.5821725",
"0.57180303",
"0.5714... | 0.6105765 | 10 |
Add ``item`` to the queue if doesn't already exist. | def H2v5(YKHO, ZfUD):
if ZfUD not in YKHO.set:
YKHO.set[ZfUD] = True
_eVy.heappush(YKHO.heap, ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, ZfUD):\n if YKHO._unique:\n H5ew = YKHO._key(ZfUD) if YKHO._key else ZfUD\n if H5ew in YKHO._seen:\n return\n YKHO._seen.add(H5ew)\n YKHO._work.append(ZfUD)\n YKHO._count += 1",
"def _jXH(YKHO, ZfUD):\n if ZfUD is None:\n raise ValueError('Cannot ... | [
"0.81848925",
"0.807506",
"0.7951946",
"0.7755605",
"0.77267224",
"0.7685084",
"0.76840895",
"0.7678364",
"0.7600129",
"0.7548075",
"0.7532665",
"0.75217277",
"0.7505445",
"0.75041795",
"0.74933994",
"0.7488524",
"0.7488524",
"0.74766815",
"0.74766815",
"0.74766815",
"0.74766... | 0.72505903 | 41 |
Test get list of hacknights when user is not logged in. | def GSP0(x0hE, DFqz):
im04 = x0hE.get('/api/hacknights/')
geh0 = im04.get_json()
assert im04.status_code == qed_.UNAUTHORIZED
assert geh0['msg'] == 'Missing Authorization Header' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i6rp(uagC, DFqz):\n im04 = uagC.get('/api/hacknights/')\n geh0 = im04.get_json()\n assert im04.status_code == qed_.OK\n assert len(geh0) == len(f7Fc.query.all())",
"def DYUU(uagC):\n im04 = uagC.get('/api/hacknights/')\n geh0 = im04.get_json()\n assert im04.status_code == qed_.OK\n as... | [
"0.74129015",
"0.649002",
"0.5899757",
"0.57815677",
"0.576791",
"0.57538563",
"0.5721225",
"0.56732136",
"0.56616783",
"0.5634886",
"0.56101775",
"0.55982476",
"0.5597011",
"0.5593834",
"0.55928177",
"0.55340046",
"0.55307823",
"0.552623",
"0.5518952",
"0.54957217",
"0.54953... | 0.62061125 | 2 |
Get the ASCII int value of a character in a string. | def E4cJ(KCHu, d6pt=0):
if jKi7.PY2:
return ord(KCHu[d6pt])
return KCHu[d6pt] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aqIr(hcXw: str) -> int:\n return ord(hcXw.lower()) - 97",
"def vcOo(vIwR: str) -> int:\n return sum([ord(hcXw) - ord('a') + 1 for hcXw in vIwR.lower()])",
"def kShN(Z9rn):\n Wxnj = 0\n if Z9rn == 'A':\n Wxnj = 0\n elif Z9rn == 'U':\n Wxnj = 1\n elif Z9rn == 'G':\n Wxn... | [
"0.7611137",
"0.758256",
"0.7512153",
"0.73211074",
"0.72617227",
"0.7228628",
"0.7204419",
"0.72023463",
"0.7200139",
"0.7196661",
"0.7196661",
"0.71724254",
"0.71708256",
"0.71477926",
"0.7139092",
"0.712863",
"0.7111812",
"0.705058",
"0.7002989",
"0.69392484",
"0.693029",
... | 0.6627218 | 34 |
Given a code, return its mass. | def yrkk(YKHO, Wxnj):
bMbF = float(0)
try:
bMbF = YKHO._daltons[Wxnj.upper()]
except KeyError as e:
print(str(tTpl) + ': ' + Wxnj)
return bMbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kG4u(YKHO, Wxnj):\n return round(YKHO.get_mass(Wxnj))",
"def yrkk(YKHO):\n return YKHO.mass",
"def bMbF(YKHO):\n return YKHO.A * ZvCQ",
"def IA3k(YKHO):\n return 1",
"def bMbF(kUkU: str) -> float:\n bMbF = {'A': 71.03711, 'C': 103.00919, 'D': 115.02694, 'E': 129.04259, 'F': 147.06841, 'G... | [
"0.770578",
"0.6247246",
"0.6200079",
"0.61826414",
"0.61718756",
"0.6108018",
"0.60844636",
"0.6007105",
"0.5991255",
"0.5971956",
"0.59268105",
"0.59217674",
"0.5914054",
"0.5896381",
"0.5886427",
"0.5886427",
"0.58769655",
"0.5798401",
"0.5793387",
"0.5765509",
"0.57600254... | 0.82770044 | 0 |
Given a code, return its integer mass. | def kG4u(YKHO, Wxnj):
return round(YKHO.get_mass(Wxnj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yrkk(YKHO, Wxnj):\n bMbF = float(0)\n try:\n bMbF = YKHO._daltons[Wxnj.upper()]\n except KeyError as e:\n print(str(tTpl) + ': ' + Wxnj)\n return bMbF",
"def bMbF(YKHO):\n return YKHO.A * ZvCQ",
"def IA3k(YKHO):\n return 1",
"def bMbF(kUkU: str) -> float:\n bMbF = {'A':... | [
"0.8113932",
"0.6270459",
"0.6266841",
"0.6211684",
"0.61606884",
"0.6138652",
"0.6128983",
"0.60744727",
"0.5998256",
"0.5991464",
"0.5969331",
"0.59469914",
"0.5945756",
"0.585525",
"0.5801471",
"0.5801471",
"0.5772731",
"0.5754133",
"0.57500666",
"0.57449085",
"0.5732491",... | 0.8491753 | 0 |
Given an integer mass, return the code(s) associated with it. | def QYi8(YKHO, bMbF):
return YKHO._inverted_integer_daltons[bMbF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kG4u(YKHO, Wxnj):\n return round(YKHO.get_mass(Wxnj))",
"def yrkk(YKHO, Wxnj):\n bMbF = float(0)\n try:\n bMbF = YKHO._daltons[Wxnj.upper()]\n except KeyError as e:\n print(str(tTpl) + ': ' + Wxnj)\n return bMbF",
"def HM34(bMbF: int) -> list:\n return list(map(lambda r8hN: ... | [
"0.617472",
"0.5685445",
"0.564814",
"0.55950963",
"0.5594979",
"0.5579566",
"0.53985715",
"0.5319805",
"0.531819",
"0.53089505",
"0.5293051",
"0.5292053",
"0.5265109",
"0.51838577",
"0.51764846",
"0.5100357",
"0.50993973",
"0.50931376",
"0.50786954",
"0.5078488",
"0.50524384... | 0.6627291 | 0 |
Assert invalid if legal type is not defined in business json. | def MFUe():
sOXw = jth9.deepcopy(hvBJ)
sOXw['business']['legalType'] = 'benefitCompany'
ebaX = {'alteration': sOXw}
SGVO, UAju = xzCw(ebaX, 'alteration')
if UAju:
for XObx in UAju:
print(XObx.message)
print(UAju)
assert not SGVO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP1u(YKHO):\n qIxc = (YKHO.bytes_a, 'invalid')\n YKHO.assertRaises(TypeError, Xzgq, *qIxc)",
"def bZ8o(YKHO):\n with YKHO.assertRaises(PBeq.exceptions.DataError):\n qv1X = hp65({'game_id': str(qxeD.uuid4()), 'home_expected': 'a', 'away_expected': 0})\n qv1X.validate()",
"def r63D():\... | [
"0.7006652",
"0.6977015",
"0.69339854",
"0.6878951",
"0.68655264",
"0.68281317",
"0.67799604",
"0.6739671",
"0.6720687",
"0.67082226",
"0.66972995",
"0.66950446",
"0.6688056",
"0.6675215",
"0.66643983",
"0.66223544",
"0.66223544",
"0.6619088",
"0.6612694",
"0.659934",
"0.6587... | 0.7392865 | 0 |
Decorator ensuring the current FP user is a logged in moderator. Also sets self.user. | def Zzsp(t7Hc):
def AuU4(YKHO):
if not getattr(YKHO, 'user', None):
YKHO.user = FpOe.get_user(YKHO.request)
if not YKHO.user:
YKHO.error(401)
YKHO.response.out.write('<html><body>Please log in.</body></html>')
return
if not YKHO.user.get_user_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zzsp(t7Hc):\n\n def AuU4(YKHO):\n if not getattr(YKHO, 'user', None):\n YKHO.user = FpOe.get_user(YKHO.request)\n if not YKHO.user:\n YKHO.error(401)\n YKHO.response.out.write('<html><body>Please log in.</body></html>')\n return\n if not YKHO.... | [
"0.7328601",
"0.7001163",
"0.69099903",
"0.6822316",
"0.67999065",
"0.6749566",
"0.6507644",
"0.6495019",
"0.6242878",
"0.6202828",
"0.6199071",
"0.6129752",
"0.61213905",
"0.6073373",
"0.604654",
"0.60362536",
"0.60362536",
"0.6024469",
"0.60033804",
"0.59732574",
"0.5967352... | 0.73409224 | 0 |
Decorator ensuring the current App Engine user is an administrator. | def P2EB(t7Hc):
def AuU4(YKHO):
"""Validate request is from an admin user, send to logon page if not."""
CBIr = DW23.get_current_user()
if CBIr:
if DW23.is_current_user_admin():
return t7Hc(YKHO)
else:
YKHO.error(401)
_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MgXm(JfyU):\n\n @zaGL(JfyU)\n @nNXP.response(403, 'Administrator access required')\n @nNXP.doc(security='admin')\n @NLCy\n def tet_(*qIxc, **B2fa):\n if 'testing' in GPtr.config and GPtr.config['testing']:\n return JfyU(*qIxc, **B2fa)\n eHpk = p9bx.get_engine()\n ... | [
"0.79900515",
"0.7804246",
"0.7713657",
"0.7623898",
"0.7585275",
"0.7572819",
"0.75370085",
"0.75091875",
"0.7501844",
"0.7427759",
"0.73998916",
"0.7379361",
"0.73338246",
"0.7321998",
"0.7289176",
"0.72774583",
"0.7249823",
"0.72471315",
"0.7180733",
"0.71723795",
"0.71708... | 0.7011258 | 35 |
Validate request is from an admin user, send to logon page if not. | def AuU4(YKHO):
CBIr = DW23.get_current_user()
if CBIr:
if DW23.is_current_user_admin():
return t7Hc(YKHO)
else:
YKHO.error(401)
_R2e = '<html><body>'
_R2e += 'Sorry, you are not an administrator. Please '
_R2e += '<a href="%s">' % DW23... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l4un(YKHO, *qIxc, **B2fa):\n if not DW23.is_current_user_admin() and GPtr.get('environment') == 'production':\n YKHO.response.write('<div style=\"padding-top: 200px; height:178px; width: 500px; color: white; margin: 0 auto; font-size: 52px; text-align: center; background: url(\\'http://3.bp.blogspot.... | [
"0.80314386",
"0.77999",
"0.74391603",
"0.74391603",
"0.74391603",
"0.73413104",
"0.7339382",
"0.73122",
"0.73024595",
"0.725148",
"0.7192246",
"0.71121335",
"0.7065349",
"0.7047829",
"0.7035452",
"0.70115644",
"0.69909173",
"0.6911604",
"0.6895301",
"0.6895301",
"0.6877051",... | 0.0 | -1 |
Create a Contract object defining what will be purchased, at which exchange and in which currency. symbol The ticker symbol for the contract sec_type The security type for the contract ('STK' is 'stock') exch The exchange to carry out the contract on prim_exch The primary exchange to carry out the contract on curr The ... | def YS2B(o61b, aVK2, WpuB, qmkM, ZbOB):
hLKG = oBwI()
hLKG.m_symbol = o61b
hLKG.m_secType = aVK2
hLKG.m_exchange = WpuB
hLKG.m_primaryExch = qmkM
hLKG.m_currency = ZbOB
return hLKG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YS2B(YKHO, o61b, aVK2, WpuB, qmkM, ZbOB):\n hLKG = oBwI()\n hLKG.m_symbol = o61b\n hLKG.m_secType = aVK2\n hLKG.m_exchange = WpuB\n hLKG.m_primaryExch = qmkM\n hLKG.m_currency = ZbOB\n return hLKG",
"def zgwq(YKHO, d_LP, o61b, dQgO, iWzb=None, VIXL=None):\n akGH = YZbx()\n akGH.sec... | [
"0.8717411",
"0.801833",
"0.77933234",
"0.7538793",
"0.6894508",
"0.6873892",
"0.67880917",
"0.67711604",
"0.6380223",
"0.62811816",
"0.6245339",
"0.60121375",
"0.59954333",
"0.5966139",
"0.595091",
"0.5916413",
"0.5815623",
"0.57986325",
"0.5792728",
"0.56848156",
"0.5683432... | 0.8731334 | 0 |
Return the path the the driver comm config yaml file. if comm_config.yml exists return the full path | def Uvzp(Emd4):
ejh1 = PSrQ().get('working_repo')
VBaM = Emd4.test_config.driver_module
XP5J = ZbWC.compile('\\.')
VBaM = XP5J.sub('/', VBaM)
Yb80 = '%s/%s/%s' % (ejh1, Hy7s.path.dirname(VBaM), ENv3.config_filename())
RKD7.debug(Yb80)
return Yb80 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ikyw():\n h6YE = [Hy7s.path.join(Hy7s.getcwd(), 'config.py'), '/etc/aardvark/config.py', '/apps/aardvark/config.py']\n for pmON in h6YE:\n if Hy7s.path.exists(pmON):\n return pmON\n return None",
"def S673():\n return Hy7s.getenv('NESTOR_CONFIG_PATH')",
"def RrNC():\n retur... | [
"0.7106368",
"0.70365393",
"0.7010691",
"0.69997215",
"0.6995035",
"0.69794315",
"0.6969241",
"0.694961",
"0.6940941",
"0.69346553",
"0.68896586",
"0.6887826",
"0.68384206",
"0.68308175",
"0.6806094",
"0.6772318",
"0.67661065",
"0.67642134",
"0.6753665",
"0.67437285",
"0.6732... | 0.81000525 | 0 |
@ brief ProtocolState enum test 1. test that SBE37ProtocolState matches the expected enums from DriverProtocolState. 2. test that multiple distinct states do not resolve back to the same string. | def ynAf(YKHO):
YKHO.assertTrue(YKHO.check_for_reused_values(yBe0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L8bQ(YKHO):\n YKHO.assertTrue(YKHO.check_for_reused_values(ifxT))",
"def L8bQ(YKHO):\n YKHO.assertTrue(YKHO.check_for_reused_values(ifxT))",
"def ItGp(YKHO):\n YKHO.assert_enum_has_no_duplicates(hZAi())\n YKHO.assert_enum_has_no_duplicates(XDS4())\n YKHO.assert_enum_has_no_duplicates(P_Al())... | [
"0.71450275",
"0.71450275",
"0.70537466",
"0.65805554",
"0.6367112",
"0.62403727",
"0.62229556",
"0.614629",
"0.61292064",
"0.6105305",
"0.60478467",
"0.6031408",
"0.6004913",
"0.5969137",
"0.596385",
"0.59579515",
"0.595516",
"0.5952088",
"0.5939964",
"0.59217507",
"0.589905... | 0.5852469 | 22 |
This tests event messages from the driver. The following test moves the IA through all its states. As it does this, event messages are generated and caught. These messages are then compared with a list of expected messages to insure that the proper messages have been generated. | def b7EY(YKHO):
YKHO._events_received = []
gdJL = []
gdJL.append('Agent entered state: INSTRUMENT_AGENT_STATE_POWERED_DOWN')
gdJL.append('Agent entered state: INSTRUMENT_AGENT_STATE_UNINITIALIZED')
gdJL.append('Agent entered state: INSTRUMENT_AGENT_STATE_INACTIVE')
gdJL.append('New driver state:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7EY(YKHO):\n YKHO.event_subscribers.events_received = []\n gdJL = ['AgentState=RESOURCE_AGENT_STATE_INACTIVE', 'AgentCommand=RESOURCE_AGENT_EVENT_INITIALIZE', 'ResourceState=DRIVER_STATE_DISCONNECTED', 'ResourceState=DRIVER_STATE_DISCONNECTED', 'ResourceState=DRIVER_STATE_UNKNOWN', 'ResourceConfig', 'Re... | [
"0.72014344",
"0.68244976",
"0.67308486",
"0.67106205",
"0.66091764",
"0.6500642",
"0.6448749",
"0.6421299",
"0.6340818",
"0.63231117",
"0.6320666",
"0.630721",
"0.62915766",
"0.6291537",
"0.6279468",
"0.624315",
"0.61900514",
"0.6187228",
"0.6187228",
"0.6148519",
"0.6146774... | 0.73589057 | 0 |
Constructor for repository exception class message_list An array of strings representing the exception message | def FIMM(YKHO, o45C=None):
if o45C is None:
o45C = ['Repository error!']
YKHO.__message_list = o45C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d, O4Zf):\n YKHO.messagebase = Ol8d\n YKHO.exlist = O4Zf\n for aTqo in O4Zf:\n Ol8d += '\\n %s' % (str(aTqo),)\n Exception.__init__(YKHO, Ol8d, O4Zf)",
"def FIMM(YKHO, Bx6I):\n tO9_ = YKHO.make_msg(Bx6I)\n super(RbQ6, YKHO).__init__(tO9_)",
"def FIMM(YKHO, Ol8d, *qIx... | [
"0.7812516",
"0.71704537",
"0.6773367",
"0.6630411",
"0.6540385",
"0.6537609",
"0.65356785",
"0.63512",
"0.6316888",
"0.6295728",
"0.6295728",
"0.6295728",
"0.6295728",
"0.62722594",
"0.6205697",
"0.6197385",
"0.6191924",
"0.6189319",
"0.6180728",
"0.61472064",
"0.6113102",
... | 0.7872777 | 0 |
Return a success response for a saved instance. | def pf3x(YKHO, L03z, KAOR, L21s, **B2fa):
if L21s:
Wxnj = 201
else:
Wxnj = 200
return (Wxnj, {YKHO.item_result_key: KAOR}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KV5F(Emd4, KAOR):\n return Emd4(**{'item': KAOR, 'errors': []})",
"def z2Lo(YKHO, QePW, *qIxc, **B2fa):\n KAOR = YKHO.get_object()\n KAOR.upload_done()\n return oGir({})",
"def nyyK(YKHO):\n return xbdE()",
"def cRVG(YKHO):\n t7cw(GWbJ())(**YKHO.options)\n YKHO.assertEqual(YKHO.model... | [
"0.72309357",
"0.7037213",
"0.6914163",
"0.6793155",
"0.6765192",
"0.67384464",
"0.6684298",
"0.66189843",
"0.66189843",
"0.653304",
"0.653304",
"0.653304",
"0.653304",
"0.653304",
"0.6528873",
"0.6485431",
"0.6472449",
"0.6472449",
"0.6454027",
"0.6454027",
"0.6454027",
"0... | 0.67148054 | 6 |
Find all files beneath path with file name suffix. Note that a path may contain further subdirectories and those subdirectories may also contain further subdirectories. There are no limit to the depth of the subdirectories can be. | def A99F(ZI14, pmON):
if pmON is None or ZI14 is None:
return []
if Hy7s.path.exists(pmON):
ljgX = []
mqB5 = [pmON]
while mqB5:
xtX7 = mqB5.pop(0) + '/'
DumB = Hy7s.listdir(xtX7)
for YRbF in DumB:
YRbF = xtX7 + YRbF
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A99F(ZI14, pmON):\n Zg0d = gzes(Odyn, pmON)\n if vtfo(Zg0d) == False:\n return []\n MXwC = []\n\n def uaUC(acAb):\n if EFYe(acAb) == True:\n if acAb.endswith(ZI14) == True:\n MXwC.append(PsRC(acAb, Odyn))\n else:\n for S3Wb in U9eF(acAb):\n ... | [
"0.83096707",
"0.8206527",
"0.8193235",
"0.81816167",
"0.81489027",
"0.81347966",
"0.8128187",
"0.81281596",
"0.81265515",
"0.8085862",
"0.80588436",
"0.8047153",
"0.8032665",
"0.79916424",
"0.7989297",
"0.7987612",
"0.7975149",
"0.79225975",
"0.78996",
"0.78235924",
"0.77846... | 0.8027167 | 13 |
get pretrained weights of a specific layer | def TqsC(YKHO, mgU1, KUS7):
XcU5 = YKHO.vgg_layers[0][mgU1][0][0][2][0][0]
Fg_i = YKHO.vgg_layers[0][mgU1][0][0][2][0][1]
lzjZ = YKHO.vgg_layers[0][mgU1][0][0][0][0]
assert lzjZ == KUS7, print('Layer name error!')
return (XcU5, Fg_i.reshape(Fg_i.size)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kn2f(gEmA):\n yzQ0, Fg_i = gEmA.weights\n return Q5DW(w=yzQ0.numpy(), b=Fg_i.numpy())",
"def Cmpz(YKHO, lzjZ):\n return YKHO.pretrained_weights.item()[lzjZ]['weights']",
"def wT46(YKHO, lzjZ):\n _mSQ = [gEmA.get_weights() for gEmA in YKHO.model.layers if lzjZ == gEmA.name][0]\n return [r8hN.... | [
"0.81574583",
"0.7855625",
"0.7235541",
"0.7185525",
"0.7178286",
"0.7144262",
"0.7100914",
"0.7097014",
"0.70641255",
"0.70485264",
"0.70485264",
"0.70485264",
"0.6975774",
"0.69052446",
"0.69012076",
"0.6868945",
"0.685352",
"0.6827726",
"0.6822702",
"0.6816857",
"0.6805172... | 0.6914249 | 13 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nSome useful insights about the most frequent times of travel...\n')
SWox = ITS7.time()
sve5 = jQ3Z['Month'].mode()[0]
print('The most popular Month for traveling: {}'.format(sve5))
StUT = jQ3Z['Day'].mode()[0]
print('The most popular Day for traveling: {}'.format(StUT))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.7645013 | 27 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nSome useful insights about the most popular stations and trips...\n')
SWox = ITS7.time()
_8rG = jQ3Z['Start Station'].mode()[0]
print('The most popular start station for traveling: {}'.format(_8rG))
oFx8 = jQ3Z['End Station'].mode()[0]
print('The most popular end station... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269617",
"0.7416... | 0.7496321 | 11 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nSome useful insights about trip durations...\n')
SWox = ITS7.time()
bJiw = jQ3Z['Trip Duration'].sum()
oe2x = str(qcWV.timedelta(seconds=int(bJiw)))
print('The total travel time: {}'.format(oe2x))
hJH9 = jQ3Z['Trip Duration'].mean()
R2XO = str(qcWV.timedelta(seconds=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.82517886",
"0.81469434",
"0.80959433",
"0.8012103",
"0.7986801",
"0.7983203",
"0.7978675",
"0.7969691",
"0.79644173",
"0.79631406",
"0.7961586",
"0.7960703",
"0.7951724",
"0.79484284",
"0.794389",
"0.7936916",
"0.792338",
"0.7920283",
"0.7919499",
"0.7918162",
"0.79173076"... | 0.7909058 | 22 |
create header informations for WSSE authorization. this is used for XWSSE property in HTTP request | def ZAlo(YKHO):
bEAa = IMHX.sha(str(ITS7.time() + tuKI.random())).digest()
Vcmi = WR89.encodestring(bEAa).strip()
_EYN = qcWV.datetime.now().isoformat() + 'Z'
MQuW = IMHX.sha(bEAa + _EYN + YKHO.password).digest()
ZYIN = WR89.encodestring(MQuW).strip()
Y0cx = 'UsernameToken Username="%(u)s", Pass... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_hp(YKHO):\n IPux = YKHO.user + ':' + YKHO.pwd\n IPux = IPux.encode('ascii')\n QTDL = WR89.b64encode(IPux)\n MOPg = {'Content-Type': 'application/json', 'Accept': 'application/json'}\n MOPg['Authorization'] = 'Basic ' + QTDL.decode()\n return MOPg",
"def cakD(NtEF, jTXt):\n if NtEF == N... | [
"0.7140552",
"0.7008245",
"0.6961669",
"0.688646",
"0.6859359",
"0.68412286",
"0.68158644",
"0.68106395",
"0.67902786",
"0.67481023",
"0.6744798",
"0.67310363",
"0.67203414",
"0.66953635",
"0.66653675",
"0.66594636",
"0.6641728",
"0.6636192",
"0.6627213",
"0.661627",
"0.66024... | 0.6693549 | 14 |
r"""Creates a shared variable array filled with nans. | def MVOe(ROpF, **B2fa):
return P5ER(XTiz.nan * XTiz.zeros(ROpF), **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iomA(ROpF, yDqo=float):\n jzdc = oyIN.full(ROpF, oyIN.nan, yDqo)\n return jzdc",
"def iomA(ROpF, yDqo=float):\n jzdc = oyIN.empty(oyIN.asarray(ROpF, dtype=int), yDqo)\n jzdc.fill(oyIN.nan)\n return jzdc",
"def ngQm(zNig):\n qw7D = oyIN.empty((zNig,))\n qw7D[:] = oyIN.NaN\n return qw... | [
"0.64248604",
"0.62000334",
"0.6079429",
"0.60414606",
"0.5938747",
"0.57638305",
"0.57461643",
"0.56302583",
"0.560166",
"0.5544155",
"0.5484547",
"0.5471319",
"0.54629636",
"0.54473454",
"0.54391885",
"0.5421985",
"0.541478",
"0.5400382",
"0.53818023",
"0.535218",
"0.533214... | 0.6823461 | 0 |
r"""Construct a shared variable to hold the value of a tensor variable. | def cmJY(Es0b, mWFP=None, **B2fa):
Es0b = vhpA.as_tensor_variable(Es0b)
if mWFP is None:
mWFP = 'shared_{}'.format(Es0b.name)
return e89i.shared(XTiz.zeros((0,) * Es0b.ndim, dtype=Es0b.dtype), name=mWFP, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ww31(wEf2):\n return xElS(wEf2)",
"def xElS(BWXx, mWFP=None, U3Fm=False, LltJ=None, fxyu=False, ROpF=None, pan_='cpu', liuk=None):\n if liuk is not None:\n qmLP.warn('The `broadcastable` keyword is deprecated; use `shape`.', DeprecationWarning)\n ROpF = liuk\n if pan_ != 'cpu':\n ... | [
"0.8398941",
"0.6785318",
"0.65761465",
"0.6542845",
"0.63819766",
"0.63706934",
"0.63706934",
"0.6337573",
"0.629025",
"0.6267927",
"0.6219169",
"0.6202825",
"0.6151301",
"0.6143407",
"0.60980856",
"0.6070734",
"0.6022687",
"0.6015331",
"0.5997512",
"0.5991444",
"0.5969389",... | 0.71318597 | 1 |
Check if variable is a userprovided graph input. To be considered an input the variable must have no owner, and not be a constant or shared variable. | def PkT0(Es0b):
return not Es0b.owner and (not isinstance(Es0b, qLXl)) and (not isinstance(Es0b, RIrr)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IKfL(WKvO):\n return isinstance(WKvO, EWKA) and (not WKvO.args) and WKvO.op[0].islower()",
"def IKfL(WKvO):\n return isinstance(WKvO, EWKA) and (not WKvO.args) and WKvO.op[0].islower()",
"def h_hD(YKHO):\n return YKHO.is_argument() or YKHO.is_data()",
"def AlZS(YKHO):\n return True",
"def I... | [
"0.6293722",
"0.6293722",
"0.60725963",
"0.5987485",
"0.59855705",
"0.5947178",
"0.5885083",
"0.58467805",
"0.5818611",
"0.5788786",
"0.57781154",
"0.5774126",
"0.57485604",
"0.572469",
"0.572469",
"0.5690873",
"0.5657262",
"0.5629429",
"0.5600043",
"0.5572233",
"0.5550882",
... | 0.8743852 | 0 |
Computes the forward pass of the batch normalisation layer | def Yorg(YKHO, WKvO):
x1Kq = oyIN.reshape(WKvO, (WKvO.shape[0], oyIN.product(WKvO.shape[1:])))
YKHO.mu = oyIN.mean(x1Kq, axis=0)
YKHO.var = oyIN.var(x1Kq, axis=0)
YKHO.x_mu = x1Kq - YKHO.mu
YKHO.var_inv = oyIN.sqrt(YKHO.var + YKHO.epsilon)
YKHO.x_norm = YKHO.x_mu / YKHO.var_inv
hlel = YKHO.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d3MU(WKvO, KMvS, UqYS, Y7R2):\n Tuqy = Y7R2['mode']\n SGf8 = Y7R2.get('eps', 1e-05)\n H0zq = Y7R2.get('momentum', 0.9)\n ywwl, lWPh = WKvO.shape\n zsZT = Y7R2.get('running_mean', oyIN.zeros(lWPh, dtype=WKvO.dtype))\n xl1j = Y7R2.get('running_var', oyIN.zeros(lWPh, dtype=WKvO.dtype))\n yvT9... | [
"0.7923438",
"0.7892159",
"0.78592944",
"0.76213247",
"0.761072",
"0.76076853",
"0.7601716",
"0.75959516",
"0.75461066",
"0.7446021",
"0.7444221",
"0.7439987",
"0.7396583",
"0.73582155",
"0.73314536",
"0.7330313",
"0.7306366",
"0.7295788",
"0.7270462",
"0.7241013",
"0.7230525... | 0.7611895 | 4 |
Computes the backward pass of the batch normalisation layer and updates gamma and beta | def fIbT(YKHO, SG6Y, b0Ix):
ywwl = SG6Y.shape[0]
i5Ai = oyIN.reshape(SG6Y, (ywwl, oyIN.product(SG6Y.shape[1:])))
T0XM = 1.0 / ywwl * oyIN.sum(i5Ai, axis=0)
bfN2 = 1.0 / ywwl * oyIN.sum(YKHO.x_norm * i5Ai, axis=0)
MMPT = YKHO.x_norm * i5Ai
xEfo = -0.5 * oyIN.sum(MMPT * YKHO.x_mu, axis=0) * oyIN.p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d3MU(WKvO, KMvS, UqYS, Y7R2):\n Tuqy = Y7R2['mode']\n SGf8 = Y7R2.get('eps', 1e-05)\n H0zq = Y7R2.get('momentum', 0.9)\n ywwl, lWPh = WKvO.shape\n zsZT = Y7R2.get('running_mean', oyIN.zeros(lWPh, dtype=WKvO.dtype))\n xl1j = Y7R2.get('running_var', oyIN.zeros(lWPh, dtype=WKvO.dtype))\n yvT9... | [
"0.8125177",
"0.806133",
"0.80088323",
"0.8006619",
"0.80033803",
"0.79600954",
"0.79582614",
"0.7918313",
"0.7879733",
"0.78628486",
"0.77120763",
"0.76833516",
"0.76663274",
"0.7640521",
"0.7620668",
"0.76145107",
"0.75954956",
"0.75777894",
"0.757737",
"0.75526917",
"0.749... | 0.72044355 | 42 |
Instantiate model for embedding > conv > Lstm > output_layer | def FIMM(YKHO, lhva, oqNR=150, Ot1W=3):
super(wOed, YKHO).__init__()
YKHO.embedding_dim = lhva
dvgN = (Ot1W - 1) // 2
YKHO.convolution1d = ht2j.nn.Conv1d(YKHO.embedding_dim, oqNR, Ot1W, padding=dvgN)
YKHO.normalization = ht2j.nn.BatchNorm1d(oqNR, momentum=0.1, eps=1e-05)
YKHO.lstm = ht2j.nn.LSTM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7(YKHO):\n bo34.info('Train the model')\n C3ST = ileL()\n C3ST.add(DilS(len(YKHO.word_dict), YKHO.embed_size, input_length=YKHO.max_sequence_len - 1))\n C3ST.add(HGYM(YKHO.lstm_units, return_sequences=True))\n C3ST.add(lARV(YKHO.dropout))\n C3ST.add(HGYM(YKHO.lstm_units))\n C3ST.add(lAR... | [
"0.728696",
"0.7167286",
"0.7154161",
"0.7103384",
"0.70523924",
"0.70351636",
"0.69960994",
"0.6992631",
"0.69843227",
"0.6976897",
"0.696782",
"0.69462305",
"0.69454837",
"0.6920485",
"0.6916264",
"0.691083",
"0.68898755",
"0.6859004",
"0.6854169",
"0.68347913",
"0.6826648"... | 0.67700917 | 28 |
Helper function to determine if value is one dimensional. | def Cpfl(jzdc):
return jzdc.ndim == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s_rM(S9Ti: Shaped) -> bool:\n return hasattr(S9Ti, 'ndim') and getattr(S9Ti, 'ndim') == 1",
"def sIWk(nPrm):\n return nPrm.shape[0] == oyIN.size(nPrm)",
"def s_rM(YKHO):\n return True",
"def xtNt(YKHO, Csk6):\n Csk6 = '[%s]' % Csk6.strip(' []')\n return len(YKHO.dimensionality) == 1 and YK... | [
"0.7320624",
"0.70981884",
"0.66972846",
"0.66696036",
"0.6613519",
"0.6586907",
"0.6364991",
"0.634863",
"0.634299",
"0.63000757",
"0.6293123",
"0.61501175",
"0.61416787",
"0.61416787",
"0.61416787",
"0.61416787",
"0.60816044",
"0.60806024",
"0.60513717",
"0.60257083",
"0.60... | 0.78927433 | 0 |
Determines which locations should be skipped based on nan or inf values. | def XbxQ(i8WE, ukft, yMhW):
HILG = oyIN.zeros(ukft).astype(bool)
for YRbF in range(ukft):
hTWD = i8WE[YRbF:YRbF + yMhW]
TgwQ = oyIN.isinf(hTWD) | oyIN.isnan(hTWD)
if oyIN.any(TgwQ):
HILG[YRbF] = True
return HILG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F2Lk(jzdc):\n return oyIN.isnan(jzdc) | oyIN.isinf(jzdc)",
"def Or4w(bDYe):\n JYJ2 = oyIN.argwhere(oyIN.isnan(bDYe))\n U_It = oyIN.argwhere(oyIN.isinf(bDYe))\n bo34.debug('Index with NaN:%s\\n' % JYJ2)\n bo34.debug('Index with INF:%s\\n' % U_It)\n return (JYJ2, U_It)",
"def ho4d(jzdc):\n ... | [
"0.6955618",
"0.6815756",
"0.67419636",
"0.6530216",
"0.6478017",
"0.6376359",
"0.62978524",
"0.6237562",
"0.6179304",
"0.6164001",
"0.61514324",
"0.612963",
"0.6114478",
"0.6031526",
"0.6019603",
"0.5966831",
"0.5946684",
"0.5945342",
"0.59418875",
"0.5931951",
"0.5927829",
... | 0.6591403 | 3 |
Helper function to determine if a given value is NaN or infinite. | def h0VO(wEf2):
return oyIN.isnan(wEf2) or oyIN.isinf(wEf2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N1cR(wEf2):\n hGZl = not oyIN.isnan(wEf2)\n tg7w = not oyIN.isinf(wEf2)\n return hGZl and tg7w",
"def ogDa(WKvO):\n return sfxH.isfinite(WKvO)",
"def L6uT(BWXx):\n return isinstance(BWXx, float) and epAf.isnan(BWXx)",
"def Rb_1(BWXx: Any) -> bool:\n return isinstance(BWXx, int) and (not... | [
"0.8581775",
"0.8128202",
"0.8093933",
"0.80669165",
"0.8033856",
"0.80169",
"0.80072296",
"0.7934404",
"0.78974915",
"0.78494084",
"0.77499986",
"0.773145",
"0.76563346",
"0.7632424",
"0.76212406",
"0.7606395",
"0.75820035",
"0.75504386",
"0.7547067",
"0.75285906",
"0.749385... | 0.8545116 | 1 |
Helper function to determine if a given value is not NaN or infinite. | def N1cR(wEf2):
hGZl = not oyIN.isnan(wEf2)
tg7w = not oyIN.isinf(wEf2)
return hGZl and tg7w | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h0VO(wEf2):\n return oyIN.isnan(wEf2) or oyIN.isinf(wEf2)",
"def L6uT(BWXx):\n return isinstance(BWXx, float) and epAf.isnan(BWXx)",
"def Rb_1(BWXx: Any) -> bool:\n return isinstance(BWXx, int) and (not isinstance(BWXx, bool)) or (isinstance(BWXx, float) and ogDa(BWXx))",
"def ogDa(WKvO):\n r... | [
"0.8481084",
"0.81233644",
"0.80995035",
"0.8062618",
"0.8014794",
"0.8014761",
"0.8005668",
"0.7909558",
"0.789985",
"0.7798123",
"0.7778936",
"0.777079",
"0.76329714",
"0.758766",
"0.7579996",
"0.7570232",
"0.75685316",
"0.7563463",
"0.75563335",
"0.7533836",
"0.75239295",
... | 0.8646611 | 0 |
Helper method to obtain the nan/inf indices of an array. | def F2Lk(jzdc):
return oyIN.isnan(jzdc) | oyIN.isinf(jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ho4d(jzdc):\n return ~F2Lk(jzdc)",
"def Or4w(bDYe):\n JYJ2 = oyIN.argwhere(oyIN.isnan(bDYe))\n U_It = oyIN.argwhere(oyIN.isinf(bDYe))\n bo34.debug('Index with NaN:%s\\n' % JYJ2)\n bo34.debug('Index with INF:%s\\n' % U_It)\n return (JYJ2, U_It)",
"def i_Dm(jzdc):\n OM4o = jzdc.shape[-1]... | [
"0.8093708",
"0.74671113",
"0.71967125",
"0.6994529",
"0.6806518",
"0.67761934",
"0.666394",
"0.6648382",
"0.65782475",
"0.6564403",
"0.6540249",
"0.6520474",
"0.64891607",
"0.6413804",
"0.63742965",
"0.6362923",
"0.636152",
"0.636152",
"0.6360425",
"0.6350014",
"0.6350014",
... | 0.87515634 | 0 |