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 |
|---|---|---|---|---|---|---|
Compute softmax values for each sets of scores in x. | def N93T(WKvO, UqYS=1):
return oyIN.exp(oyIN.asarray(WKvO) * UqYS) / oyIN.sum(oyIN.exp(oyIN.asarray(WKvO) * UqYS), axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"de... | [
"0.7796294",
"0.7760558",
"0.7759004",
"0.77567077",
"0.76577055",
"0.76577055",
"0.76577055",
"0.76577055",
"0.7585655",
"0.743143",
"0.7407772",
"0.73941606",
"0.7358175",
"0.73174125",
"0.72689486",
"0.72623265",
"0.72614294",
"0.7256868",
"0.723019",
"0.7214918",
"0.72017... | 0.0 | -1 |
Numerically stable elementwise Softmax | def N93T(WKvO):
yRgo = (WKvO - WKvO.max(1)[0].view(-1, 1)).exp()
return yRgo / yRgo.sum(1).view(-1, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO, Plel=0):\n if Plel:\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO, axis=0))\n return uw5A / uw5A.sum(axis=0)\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum()",
"def N93T(WKvO):\n ... | [
"0.83267283",
"0.82796085",
"0.825423",
"0.825423",
"0.82472557",
"0.82471764",
"0.82471764",
"0.82471764",
"0.82471764",
"0.8231207",
"0.82232916",
"0.82137066",
"0.82038087",
"0.8200272",
"0.81935287",
"0.81931937",
"0.81931937",
"0.81931937",
"0.81931937",
"0.81931937",
"0... | 0.80973065 | 48 |
take 1D float array of rewards and compute discounted reward | def AC1_(Mkmy, KMvS):
g2lU = oyIN.zeros_like(Mkmy)
S8qo = 0
for a1PO in reversed(Ni9Y(0, Mkmy.size)):
S8qo = S8qo * KMvS + Mkmy[a1PO]
g2lU[a1PO] = S8qo
return g2lU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for a1PO in reversed(range(0, len(vwlo))):\n S8qo = S8qo * lA6Z + vwlo[a1PO]\n g2lU[a1PO] = S8qo\n return g2lU",
"def AC1_(vwlo, KMvS):\n AFmI = vwlo.shape\n if len(AFmI) == 1:\n g2lU = oyIN.zeros(shape=(*AFmI, 1),... | [
"0.8100923",
"0.78397125",
"0.7792625",
"0.7742053",
"0.7653779",
"0.75987715",
"0.7583268",
"0.75820553",
"0.7579539",
"0.7536054",
"0.7519005",
"0.75047183",
"0.7467692",
"0.7456702",
"0.7433794",
"0.7426565",
"0.74062765",
"0.73950297",
"0.7370545",
"0.73564714",
"0.732851... | 0.703724 | 25 |
Return the lines of a file in a list. | def Nwr9(gIsw):
try:
with open(gIsw, mode='r') as nUeQ:
Nqlg = nUeQ.readlines()
except OSError:
print('file', gIsw, 'not found.')
J3Ut = []
for zFiD in Nqlg:
J3Ut.append(zFiD)
return J3Ut | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KELp(Ux0P):\n try:\n with open(Ux0P) as eHNT:\n Nqlg = eHNT.readlines()\n return Nqlg\n except:\n print('Error reading file ' + Ux0P)",
"def HbNy(IznC):\n return []",
"def RdVV(Ux0P):\n z1Rg = []\n with open(Ux0P, 'r') as o36Q:\n for vC9B in o36Q:\n... | [
"0.7582556",
"0.7188501",
"0.71296144",
"0.7125667",
"0.7121562",
"0.7094333",
"0.7090027",
"0.7059228",
"0.70463",
"0.7044487",
"0.7039346",
"0.7038872",
"0.70384693",
"0.70139015",
"0.70033765",
"0.6982144",
"0.69175905",
"0.686716",
"0.6855514",
"0.6852645",
"0.68377066",
... | 0.62672174 | 64 |
Create a wrapped, monitored gym.Env for safety. | def xwQb(YKHO, hipr, yokr, _CtK=None, ZAYv=1.0, Mz0q=0, nKDK=0, kQWq=()):
UXO9 = zXM5.load('{}.py'.format(hipr)).Scenario()
EmUK = UXO9.make_world()
C4pr = {'world': EmUK, 'reset_callback': UXO9.reset_world, 'reward_callback': UXO9.reward, 'observation_callback': UXO9.observation, 'info_callback': None, 'do... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nl2i(yokr=123, rzaM=False, aap6='./run_logs/', WhuD=None, TYtS=10, d2AD=5e-05):\n fdMZ = 0\n cMGF(yokr + 10000 * fdMZ)\n print('Making wrapped env')\n sEAN = Pg7y(visualize=rzaM, run_logs_dir=aap6, dMoments=WhuD, step_timeout=TYtS, integrator_accuracy=d2AD)\n return sEAN",
"def I0_M():\n re... | [
"0.7291933",
"0.71476954",
"0.70490533",
"0.70490533",
"0.6989433",
"0.69867665",
"0.6983361",
"0.69435",
"0.67789096",
"0.6649843",
"0.6632334",
"0.65918314",
"0.65638644",
"0.65459406",
"0.651608",
"0.651608",
"0.64992607",
"0.6495524",
"0.6495524",
"0.6399907",
"0.63572866... | 0.59170043 | 45 |
Checking if a list is equal to a list. | def IzcV(jzdc: list[int], Fg_i: list[int]) -> bool:
YRbF = 0
if len(jzdc) == 0 and len(Fg_i) == 0:
return True
if len(jzdc) == 0 and len(Fg_i) > 0:
return False
if len(jzdc) > 0 and len(Fg_i) == 0:
return False
while YRbF < len(jzdc) and YRbF < len(Fg_i):
if jzdc[YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AP73(zznG, Wd5v):\n return len(zznG) == len(Wd5v) and all([WKvO == LVAh for WKvO, LVAh in zip(zznG, Wd5v)])",
"def l__t(vASe, OQAR):\n if len(vASe) != len(OQAR):\n return False\n return sorted(vASe) == sorted(OQAR)",
"def ac8g(iHrl, X1zw):\n if len(iHrl) != len(X1zw):\n return Fal... | [
"0.78387725",
"0.7770302",
"0.77526116",
"0.7652526",
"0.7583793",
"0.7523901",
"0.74438715",
"0.7386059",
"0.72481924",
"0.7203102",
"0.7052353",
"0.6903722",
"0.688241",
"0.685984",
"0.68577284",
"0.68557405",
"0.68352264",
"0.68290585",
"0.6791731",
"0.6768179",
"0.6722047... | 0.69091326 | 11 |
Checking what the max value of a list is. | def max(input: list[int]) -> int:
YRbF = 0
if len(input) == 0:
raise ValueError('max() arg is an empty List')
else:
while YRbF < len(input):
r845 = YRbF + 1
while r845 < len(input):
if input[YRbF] > input[r845]:
if r845 == len(input... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PtQX(hcfj):\n return max(hcfj)",
"def sgGw(list):\n try:\n return max(list)\n except ValueError:\n return 0",
"def max(YKHO, aO51):\n try:\n max = int(aO51[0])\n for FGW3 in aO51:\n try:\n if FGW3 > max:\n max = FGW3\n ... | [
"0.7975214",
"0.7798693",
"0.7690492",
"0.75982237",
"0.7539442",
"0.7529354",
"0.7481824",
"0.74741864",
"0.7453818",
"0.7428711",
"0.7419007",
"0.73673505",
"0.7347873",
"0.73248017",
"0.73163944",
"0.72837734",
"0.7174969",
"0.7174356",
"0.71677434",
"0.7163559",
"0.715932... | 0.6652531 | 65 |
Returns the details of a virtual network in a private cloud. | def ZpXJ(x0hE, Mw4H, KuT0, Rci7):
return x0hE.get(Rci7, Mw4H, KuT0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vQHJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'private_network')",
"def MOle(x0hE, Mw4H, ZGn0, Rci7):\n return x0hE.list(Rci7, Mw4H, ZGn0)",
"def KuT0(YKHO):\n return YKHO.broker.virtual_network(**{'VirtualNetworkMemberID': YKHO.VirtualNetworkMemberID})",
"def MZX4(x0hE, Mw4H, Rci7):\n return x0... | [
"0.69066435",
"0.68641645",
"0.66429555",
"0.64058644",
"0.63984174",
"0.6323161",
"0.6316874",
"0.6283044",
"0.6261179",
"0.6218056",
"0.61452466",
"0.6103788",
"0.6063678",
"0.6061959",
"0.60519266",
"0.59895545",
"0.59864265",
"0.597254",
"0.5969824",
"0.5968256",
"0.58977... | 0.77753043 | 0 |
Test exception for giving a bad filetype. | def utki():
with Xf84.raises(Exception):
Sa_m.import_menu('test.txt') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cGeH(QCyC):\n tZbo(QCyC, exc_message='Wrong suffix')",
"def dmyt():\n Ux0P = {}\n with trZe.raises(TypeError):\n Nwr9(Ux0P)",
"def loQc():\n trZe.raises(ValueError, qoQs.fetch_or_create_media_item, b'spam')",
"def KlN8(YKHO):\n for SkDf in ('SyntaxError', YKHO):\n YKHO.assert... | [
"0.7940577",
"0.7615568",
"0.75243056",
"0.74428564",
"0.74098617",
"0.7337893",
"0.7219399",
"0.71084017",
"0.70997214",
"0.70903224",
"0.7089458",
"0.7037418",
"0.70099515",
"0.6954027",
"0.69308364",
"0.69238627",
"0.6920612",
"0.6908897",
"0.68930936",
"0.6873504",
"0.683... | 0.0 | -1 |
Size of data left to be read. Notes `_fsize` is the uncompressed size of both files in the pair, summed. `_tell` is the amount of uncompressed data that has been read from this wrapper thus far. | def len(YKHO):
return YKHO._fsize - YKHO._tell | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def len(YKHO):\n return YKHO._fsize - YKHO._fp.tell()",
"def u_8b(YKHO):\n with open(YKHO.fileName, 'rb') as eHNT:\n eHNT.seek(0, 2)\n u54L = eHNT.tell()\n return u54L",
"def jiw9(YKHO, BRci):\n BRci.seek(0, 2)\n zNig = BRci.tell()\n BRci.seek(0)\n return zNig",
"def jiw9(J... | [
"0.7139826",
"0.6518028",
"0.63594913",
"0.63079417",
"0.6108515",
"0.6085027",
"0.60787904",
"0.59550196",
"0.59547025",
"0.59246975",
"0.5887387",
"0.58497894",
"0.580786",
"0.5803867",
"0.5802381",
"0.57805043",
"0.5749601",
"0.5743155",
"0.5733529",
"0.571891",
"0.5709965... | 0.7152826 | 0 |
Size of data left to be read. | def len(YKHO):
return YKHO._fsize - YKHO._fp.tell() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jEa4(YKHO):\n zNig = YKHO.unpack_dword(4)\n if zNig >= 2147483648:\n zNig -= 2147483648\n return zNig",
"def jiw9(YKHO):\n return YKHO._data_size",
"def zNig(YKHO):\n return YKHO.data.size",
"def zNig(YKHO):\n return len(YKHO.data)",
"def zNig(YKHO):\n return len(YKHO.data)"... | [
"0.7816329",
"0.780202",
"0.77463967",
"0.77291405",
"0.77291405",
"0.77291405",
"0.77291405",
"0.77291405",
"0.7713576",
"0.762909",
"0.7604626",
"0.7552866",
"0.7543932",
"0.75396913",
"0.748357",
"0.748357",
"0.748357",
"0.7440955",
"0.7440036",
"0.7424612",
"0.7417099",
... | 0.7120207 | 38 |
Return filename used to represent a set of pairedend files. Assumes Illuminastyle naming conventions where each file has _R1_ or _R2_ in its name. | def bdul(qaEx):
if not isinstance(qaEx, tuple):
raise Ivw9('Cannot get the interleaved filename without a tuple.')
if ZbWC.match('.*[._][Rr][12][_.].*', qaEx[0]):
return ZbWC.sub('[._][Rr][12]', '', qaEx[0])
else:
qmLP.warn('Paired-end filenames do not match--are you sure they are co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ux0P(YRbF):\n voq6 = Hy7s.path.join(Hy7s.getcwd(), 'input-%d.txt' % YRbF)\n mXGw = Hy7s.path.join(Hy7s.getcwd(), 'input-%d.ref' % YRbF)\n return (voq6, mXGw)",
"def loba(YKHO):\n assert YKHO.__patient_name and YKHO.__location_name, 'New filename could not be determined, one or more needed argumen... | [
"0.6361047",
"0.62988627",
"0.6291889",
"0.62638634",
"0.6204989",
"0.60608757",
"0.60481226",
"0.6038897",
"0.60292923",
"0.5980579",
"0.59389335",
"0.59262383",
"0.58894366",
"0.5883494",
"0.5878525",
"0.5867033",
"0.5834226",
"0.5830204",
"0.582772",
"0.58055633",
"0.57992... | 0.67012686 | 0 |
Called from the parent class, so we can provide the appropriate flask app for this test case. | def RkHo(YKHO, GPtr: Mapping[str, Any]) -> bVIA:
return uVRg(name='signup', test_config=GPtr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IlA1(H6Ho):\n H6Ho.test_client_class = NxUR\n return H6Ho.test_client()",
"def FCbF(YKHO):\n YKHO.app = L2w0(__name__)\n YKHO.app_context = YKHO.app.app_context()\n YKHO.app_context.push()\n YKHO.client = YKHO.app.test_client()",
"def P4t4():\n wMcu = LUif(LV7V)\n OaeV = wMcu.test_r... | [
"0.7208283",
"0.7110204",
"0.69486",
"0.69486",
"0.69486",
"0.68976754",
"0.6854521",
"0.6824677",
"0.67804205",
"0.67590564",
"0.67555094",
"0.6672011",
"0.6666826",
"0.6650347",
"0.66274214",
"0.6599824",
"0.65958625",
"0.65943205",
"0.65929145",
"0.6574945",
"0.6564183",
... | 0.0 | -1 |
Closes the connection to the oracle database. | def U4F2(YKHO, vEqo, t41g, Tobl):
YKHO.db_connection.close()
if t41g:
raise Exception(t41g) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f06n(YKHO):\n try:\n YKHO.cursor.close()\n YKHO.db.close()\n except QyHK.DatabaseError:\n pass",
"def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None",
"def yZlT(Emd4):\n NCls.close()",
"def DDI8(YKHO):\n if YKHO._dbopen:... | [
"0.77250123",
"0.7358969",
"0.72373635",
"0.71440935",
"0.7091228",
"0.707828",
"0.70280993",
"0.7025696",
"0.6994175",
"0.69639736",
"0.69239086",
"0.6909188",
"0.68693054",
"0.68389696",
"0.68357813",
"0.68182534",
"0.68057346",
"0.6734138",
"0.6719252",
"0.6685423",
"0.667... | 0.0 | -1 |
Return a 2dimensional Gaussian function. | def kRI_(WKvO, caa_=1.0, JPqE=0.0, NTJI=1.0, fXzF=0.0, W9fC=1.0, TnMD=0.0):
if len(WKvO) == 1:
LVAh = WKvO
else:
WKvO, LVAh = WKvO
if not W9fC:
W9fC = NTJI
if not fXzF:
fXzF = JPqE
if TnMD:
JPqE = JPqE * oyIN.cos(oyIN.deg2rad(TnMD)) - fXzF * oyIN.sin(oyIN.deg2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IYu9(YKHO, WKvO: ndarray, yGTL: float, WTkW: float) -> gyIm:\n return 1 / (oyIN.sqrt(2 * oyIN.pi) * WTkW) * oyIN.exp(-oyIN.power((WKvO - yGTL) / WTkW, 2) / 2)",
"def IAWS(WKvO, yGTL, WTkW):\n return oyIN.exp(-(WKvO - yGTL) ** 2 / 2.0 / WTkW ** 2) / oyIN.sqrt(2.0 * oyIN.pi) / WTkW",
"def qeoL(YKHO, Z9... | [
"0.74237794",
"0.73306733",
"0.73152167",
"0.728595",
"0.7184317",
"0.71404076",
"0.7132665",
"0.7045012",
"0.70133954",
"0.69431984",
"0.69364214",
"0.6909197",
"0.68970215",
"0.6889527",
"0.68853754",
"0.68715364",
"0.6863365",
"0.68582445",
"0.68248075",
"0.68248075",
"0.6... | 0.64682645 | 60 |
Return a 2dimensional Gaussian function as a 1D array. | def x32c(WKvO, **B2fa):
Oa1e = kRI_(WKvO, **B2fa)
return Oa1e.ravel() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IYu9(YKHO, WKvO: ndarray, yGTL: float, WTkW: float) -> gyIm:\n return 1 / (oyIN.sqrt(2 * oyIN.pi) * WTkW) * oyIN.exp(-oyIN.power((WKvO - yGTL) / WTkW, 2) / 2)",
"def PINW(EcVT, WTkW):\n return oyIN.array([V2fX.gaussian_filter(WKvO, WTkW) for WKvO in EcVT])",
"def GNMe(YKHO):\n CH70 = int(lO1m(YKHO... | [
"0.6920575",
"0.6815412",
"0.6749616",
"0.67461413",
"0.6602257",
"0.6490649",
"0.63469195",
"0.62234205",
"0.6163416",
"0.61532956",
"0.614421",
"0.6139505",
"0.6126984",
"0.6122659",
"0.61177367",
"0.610907",
"0.6094161",
"0.60617733",
"0.6026461",
"0.6012973",
"0.60067636"... | 0.70776016 | 0 |
convert face cards like king, joker etc to number so that its easy to process keep the order of face cards intact. A = 14, K=13, Q=12, J=11 keep the original format in self.face_cards intact to display to users | def kK5T(YKHO):
bgDS = {'A': 14, 'K': 13, 'Q': 12, 'J': 11}
f5g7 = []
for dxhl in YKHO.cards_list:
if isinstance(dxhl[1], int):
f5g7.append(dxhl)
else:
f5g7.append((dxhl[0], bgDS[dxhl[1]]))
YKHO.cards_int = f5g7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UIZV(kfYD):\n p1kx = 0\n kdGk = 0\n VVtp = 0\n Fsuk = {}\n Z3kx = {}\n nVf2 = {'A': 1, 'J': 11, 'Q': 12, 'K': 13}\n YwfL = []\n \"Circulate the player's hand, build a list of points and a suit dict\"\n for d6pt in range(len(kfYD)):\n if str(kfYD[d6pt])[1] in nVf2:\n ... | [
"0.61547965",
"0.6130416",
"0.6081708",
"0.605504",
"0.59374684",
"0.5866693",
"0.58592176",
"0.5848381",
"0.58357334",
"0.58254117",
"0.5807185",
"0.575238",
"0.5751966",
"0.57223415",
"0.5670172",
"0.5651044",
"0.5641043",
"0.56213045",
"0.55857915",
"0.5582981",
"0.5552984... | 0.8454125 | 0 |
gets an image and title and diplay it on a plot figure as requested | def feMA(VXjJ, leAC):
QrM1.imshow(XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2RGB))
QrM1.title('Hand Number: ' + leAC)
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DM2M(VXjJ, UXqs=''):\n if VXjJ.shape[0] == 3:\n VXjJ = VXjJ.transpose(1, 2, 0)\n LZpg, aNZO = QrM1.subplots(1)\n uuEx.set_style('white')\n aNZO.imshow(oyIN.asarray(VXjJ))\n if UXqs != '':\n QrM1.title(fJgQ[UXqs])\n return (LZpg, aNZO)",
"def YGqK(VXjJ, leAC='Image', PTTL='gray... | [
"0.72506547",
"0.71965265",
"0.7158166",
"0.70354605",
"0.6869228",
"0.6792556",
"0.6762094",
"0.67556643",
"0.67373943",
"0.6722401",
"0.67004097",
"0.66413766",
"0.6632582",
"0.6615512",
"0.65873194",
"0.6587001",
"0.65716314",
"0.65646404",
"0.65646404",
"0.65646404",
"0.6... | 0.7389479 | 0 |
Run this function before each test to set up database | def FCbF(YKHO):
mv1M.query.delete()
LuKW.query.delete()
h6KE.query.delete()
_l4v.query.delete()
YKHO.client = P4t4.test_client()
P6bq = mv1M(id=1, email='test@test.com', username='testuser', password=B8ni.generate_password_hash('password').decode('UTF-8'))
KoVS = mv1M(id=2, email='test2@test... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.app = P4t4.test_client()\n NCls.init_db()",
"def FCbF(YKHO):\n NCls.create_all()",
"def FCbF(YKHO):\n YKHO.db_fd, P4t4.app.config['DATABASE'] = gbPf.mkstemp()\n P4t4.app.config['TESTING'] = True\n YKHO.app = P4t4.app.test_client()\n P4t4.init_db()",
"def FCbF(YKHO)... | [
"0.83405554",
"0.8301226",
"0.8281778",
"0.82676876",
"0.8266887",
"0.8262941",
"0.8238698",
"0.82058024",
"0.81675917",
"0.8161589",
"0.81611335",
"0.81485444",
"0.8146026",
"0.81282765",
"0.8114873",
"0.80946434",
"0.8086281",
"0.80798703",
"0.80751455",
"0.80748886",
"0.80... | 0.0 | -1 |
Clean up the database after every test | def tBIc(YKHO):
NCls.session.rollback() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n YKHO.db.drop_all()\n pass",
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n Gw... | [
"0.8734857",
"0.868604",
"0.868604",
"0.868604",
"0.868604",
"0.868604",
"0.868604",
"0.868604",
"0.868604",
"0.868604",
"0.8647254",
"0.8647254",
"0.8628906",
"0.8628906",
"0.8628906",
"0.8628906",
"0.8628906",
"0.8628906",
"0.85536563",
"0.8527188",
"0.8502627",
"0.845350... | 0.0 | -1 |
Test if a logged in user can see the follower / following pages | def brYs(YKHO):
YKHO.u2.following.append(YKHO.u)
NCls.session.commit()
with YKHO.client as x0hE:
x0hE.post('/login', data={'username': YKHO.u.username, 'password': 'password'})
geh0 = x0hE.get('/users/2/following')
_R2e = geh0.get_data(as_text=True)
YKHO.assertEqual(geh0.stat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKMP(YKHO, CBIr):\n return True",
"def eTnD(YKHO, CBIr):\n return True",
"def Pn7U(YKHO):\n return YKHO.user_has_access(DW23.get_current_user())",
"def wZAH(CBIr, B2Dn):\n LLQ4 = O0c1.objects.filter(page=B2Dn)\n if CBIr.is_anonymous():\n return LLQ4.count() == 0\n else:\n ... | [
"0.6881413",
"0.68442315",
"0.6748409",
"0.6579297",
"0.65386754",
"0.6531184",
"0.6521393",
"0.65135825",
"0.6462357",
"0.6460252",
"0.64018106",
"0.63577366",
"0.6329789",
"0.6324544",
"0.63115484",
"0.6295612",
"0.62870365",
"0.6273988",
"0.62673205",
"0.62673205",
"0.6231... | 0.0 | -1 |
Set initial values for the parameters of the model. Set initial parameters for the optimization, depending on the value | def K55i(YKHO, LVAh):
DbxN = YKHO.initialization
ROpF = LVAh.shape[-1:] if YKHO.space.default_point_type == 'vector' else LVAh.shape[-2:]
if isinstance(DbxN, str):
if DbxN == 'random':
return i912.random.normal(size=(2,) + ROpF)
if DbxN == 'frechet':
JBMS = KJO1(YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZaJt(YKHO, PJWX=False):\n from scipy.special import gamma\n cflT = YKHO.z0\n Mgkq, ZgR3, HA2x, WTkW, bcdU = (1, 2, 6.7, 0.1, 25.0)\n mxGy, KJ7m, ooNL, eXYY, mFqC = (4, 2, 0.5, 1, 3)\n PL59 = oyIN.log(10) * Mgkq / gamma(ZgR3 / Mgkq)\n fJ4W = oyIN.log(10) / oyIN.sqrt(2 * oyIN.pi) / WTkW\n i2... | [
"0.7283343",
"0.7212948",
"0.6957001",
"0.694778",
"0.69092476",
"0.68616325",
"0.6854166",
"0.685236",
"0.68468285",
"0.6828957",
"0.68114245",
"0.68106455",
"0.6752893",
"0.6746727",
"0.67225045",
"0.67137873",
"0.6713665",
"0.6669497",
"0.66484594",
"0.66200525",
"0.661467... | 0.0 | -1 |
Update the weights of the policy network given the training samples | def QdZT(YKHO, CuxP, zoT6):
allh = []
for Vjik, bKx2 in zip(zoT6, CuxP):
allh.append(-Vjik * bKx2)
N77f = ht2j.stack(allh).sum()
YKHO.optimizer.zero_grad()
N77f.backward()
YKHO.optimizer.step() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MyUA(YKHO):\n pass",
"def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value\n YKHO.weights_clipping()",
"def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value",
"def MyUA(YKHO):\n YKHO.weights -= YKHO.loss_grads\n YKHO.loss_grads = oyIN.zeros(... | [
"0.77734596",
"0.7563685",
"0.75521344",
"0.7446542",
"0.7285319",
"0.7269821",
"0.72412425",
"0.7240121",
"0.7122059",
"0.7118337",
"0.7015456",
"0.6948369",
"0.6932317",
"0.69278985",
"0.6916601",
"0.6896981",
"0.6896062",
"0.6882207",
"0.68685794",
"0.6867294",
"0.68551135... | 0.0 | -1 |
Represent a Home page. | def d6pt():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home_page.html')",
"def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')",
"def kZiy():\n return TvZl('home.html', title='Home')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('home.htm... | [
"0.8243073",
"0.8140089",
"0.81337893",
"0.8132717",
"0.8116384",
"0.807183",
"0.8066942",
"0.8049672",
"0.8021537",
"0.7964486",
"0.7964486",
"0.7964486",
"0.7964486",
"0.7964486",
"0.7964486",
"0.7964486",
"0.7964486",
"0.7964486",
"0.7964486",
"0.7964486",
"0.7964486",
"... | 0.0 | -1 |
Returns a dictionary loaded with all of the indexes available in the table. ``table`` must be an instance of TableSchema. | def AbY4(tyNF):
w2B8 = tyNF.parent.parent.connection
or8S = U8Lr()
bS0K = w2B8.execute('SHOW INDEXES FROM `%s`.`%s`' % (tyNF.parent.name, tyNF.name))
if not bS0K:
return or8S
for d6pt in bS0K:
exwG = d6pt['Key_name']
if exwG not in or8S:
RqUk = nb3Q(name=exwG, par... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I897(YKHO, tyNF='main_table'):\n N0Us = {}\n for rdlD in YKHO.curs.execute(f'SELECT * FROM {tyNF}'):\n N0Us[rdlD[0]] = rdlD[1]\n return N0Us",
"def _0VL(SLbt: bool=False) -> dict:\n return DQ_n(SLbt)",
"def xvIg(YKHO):\n\n def xDcj(wvau):\n return \"SELECT pg_class.relname, pg_... | [
"0.59797174",
"0.5743214",
"0.572891",
"0.5716111",
"0.5606535",
"0.5578626",
"0.5386283",
"0.5334639",
"0.5334056",
"0.53178096",
"0.52642757",
"0.5252717",
"0.5238943",
"0.52105",
"0.51723325",
"0.51395226",
"0.5134731",
"0.51213443",
"0.5073045",
"0.50576985",
"0.5055018",... | 0.6425035 | 0 |
Determine whether the given drawable belongs in this pass, return True or False | def filter(YKHO, XCKb):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def La9o(YKHO, WKvO, LVAh):\n return 0 <= WKvO < YKHO.width and 0 <= LVAh < YKHO.height",
"def IhUE(YKHO):\n return hasattr(YKHO, 'drawn')",
"def pb19(YKHO, QOxj, SCLJ):\n VXjJ = YKHO.tower_imgs\n if YKHO.x - VXjJ.get_width() // 2 + YKHO.width >= QOxj >= YKHO.x - VXjJ.get_width() // 2:\n if ... | [
"0.62435806",
"0.62236756",
"0.6065715",
"0.60121834",
"0.5989342",
"0.5973137",
"0.5942461",
"0.5937724",
"0.59372824",
"0.59335953",
"0.593039",
"0.59251314",
"0.58959013",
"0.5855895",
"0.5850801",
"0.5849296",
"0.5845072",
"0.5840028",
"0.5833401",
"0.5815968",
"0.5802136... | 0.55374753 | 65 |
Average together an array of dictionaries to create a single map | def DvJc(YKHO, RVMj):
YetX = {'map': oyIN.zeros((YKHO.Ny, YKHO.Nx)), 'cov': oyIN.zeros((YKHO.Ny, YKHO.Nx))}
_4fF = RVMj.shape[-1]
for YRbF, (DALB, QUSx) in enumerate(zip(YKHO.feedlist, YKHO.feeds)):
if QUSx == 20:
continue
for kvkG in range(_4fF):
jbXL = RVMj[YRbF, kv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IEPS(YDX_):\n qqgr = sum(YDX_) / len(YDX_)\n return qqgr",
"def WJlW(dbNR, pVWB):\n for H5ew, BWXx in pVWB.items():\n dbNR[H5ew].append(oyIN.mean(BWXx))\n return dbNR",
"def JBMS(nPrm, *qIxc, **B2fa):\n Aofo = U8Lr()\n for aFhe, igVn in nPrm.items():\n Aofo[aFhe] = U8Lr()\n ... | [
"0.70351887",
"0.6997996",
"0.67753744",
"0.66063255",
"0.6570353",
"0.6504898",
"0.6441947",
"0.63998234",
"0.63585275",
"0.62968725",
"0.62076324",
"0.61617136",
"0.61447734",
"0.6101886",
"0.60690403",
"0.60645324",
"0.60629624",
"0.5979048",
"0.5957444",
"0.59145755",
"0.... | 0.6128933 | 13 |
Get the integrated flux of source | def B8Yq(YKHO, nPrm, WKvO, LVAh, Ty9i):
Mkmy = oyIN.sqrt((WKvO - YKHO.avg_map_fits['Values'][1]) ** 2 + (LVAh - YKHO.avg_map_fits['Values'][3]) ** 2)
_gRY = (Mkmy < 8.0 / 60.0) & oyIN.isfinite(nPrm)
vU9r = (Mkmy > 8.5 / 60.0) & (Mkmy < 12.0 / 60.0) & oyIN.isfinite(nPrm)
bvs7 = oyIN.nanmedian(nPrm[vU9r])... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shSu(JZXy, QTg7=0.0, cY9P=0.0, Wi2N=0.0):\n WKvO = F0Ur(JZXy, QTg7, cY9P, Wi2N)\n return WKvO.flux",
"def shSu(YKHO, WKvO):\n return YKHO.cal_spec.get_flux(YKHO(WKvO))",
"def wjVy(YKHO):\n return YKHO.planes[1].galaxies[0].light_profiles[0].flux",
"def F0Ur(JZXy, QTg7=0.0, cY9P=0.0, Wi2N=0.0)... | [
"0.7669197",
"0.74209905",
"0.69844174",
"0.66117144",
"0.6566223",
"0.65192187",
"0.6499765",
"0.6499711",
"0.649263",
"0.6489329",
"0.63118315",
"0.625141",
"0.624883",
"0.6186395",
"0.6161923",
"0.61520916",
"0.6108406",
"0.6097724",
"0.60267305",
"0.6010993",
"0.6008663",... | 0.0 | -1 |
Gets the dictionary for the frame. | def QaE_(fK8P, f4IJ):
if fK8P is None:
fK8P = f4IJ.f_back.f_globals
return fK8P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W41s(YKHO):\n return YKHO[YKHO._name]",
"def hati(YKHO):\n return",
"def hati(YKHO):\n return YKHO._data",
"async def get_frame(YKHO) -> dict[str, int]:\n HCmI = await YKHO.send_command('FRAME', timeout=1)\n if not HCmI.succeeded():\n raise x7jp(f'Command FRAME failed with status {H... | [
"0.7267939",
"0.71171606",
"0.7022939",
"0.6759889",
"0.6726255",
"0.6726255",
"0.6726255",
"0.6726255",
"0.6726255",
"0.6726255",
"0.6726255",
"0.65882003",
"0.65148646",
"0.64980626",
"0.6446308",
"0.644445",
"0.6389688",
"0.63613594",
"0.63613594",
"0.6349561",
"0.6348474"... | 0.62339044 | 28 |
Tests if this is a sympy object. | def NADB(wEf2):
C9U5 = dir(wEf2)
return 'is_symbol' in C9U5 or 'evalf' in C9U5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GoVZ(YEnM):\n return isinstance(YEnM, wZLS)",
"def yHAN(YKHO: Q) -> bool:\n bQsF = False\n if hasattr(YKHO.t, 'free_symbols') or hasattr(YKHO.x, 'free_symbols') or hasattr(YKHO.y, 'free_symbols') or hasattr(YKHO.z, 'free_symbols'):\n bQsF = True\n return bQsF",
"def _SpT(YKHO, Elif):\n ... | [
"0.68962616",
"0.66811335",
"0.6582384",
"0.6101717",
"0.5944321",
"0.5900767",
"0.5859516",
"0.5850032",
"0.5845883",
"0.5759307",
"0.5725144",
"0.56389153",
"0.56389153",
"0.56115603",
"0.5567855",
"0.55135876",
"0.5505195",
"0.5484248",
"0.54709846",
"0.54577804",
"0.54283... | 0.6495493 | 3 |
Tests if a vector, numbers or symbols, are equal. | def VDDj(he6J):
PZES = [PNxx(tTpl) for tTpl in he6J]
return all(PZES) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSLS(YKHO):\n hQHm = lNLu(3, 4, 5)\n assert hQHm == [3, 4, 5]\n assert hQHm != [0, 2, 4]\n jlSq = lNLu(3.0, 4.0, 5.0)\n assert hQHm == jlSq\n bUZ8 = lNLu(2, 2)\n assert hQHm != bUZ8",
"def Pg4d():\n LNHv(lNLu(1.0) == 1.0)",
"def HNkk():\n Ty9i = lNLu(1.0)\n lU6q(Ty9i == Ty9i)"... | [
"0.77007866",
"0.7403604",
"0.7031848",
"0.70036083",
"0.6930626",
"0.6805227",
"0.67998993",
"0.6627008",
"0.65910006",
"0.65815514",
"0.6547712",
"0.65207255",
"0.646505",
"0.64251965",
"0.6414125",
"0.6353729",
"0.63000643",
"0.6294559",
"0.62733984",
"0.62645084",
"0.6258... | 0.0 | -1 |
Recursively evaluates if two indexable, mutable objects are equal under subtituions. | def KRCI(BzZr, RL4V, **B2fa):
if lxJc(BzZr) != lxJc(RL4V):
return False
if lxJc(BzZr):
for Wc83, y0_o in zip(BzZr, RL4V):
if not KRCI(Wc83, y0_o, **B2fa):
return False
return True
_1qI = sbV0(b7La(BzZr, **B2fa))
zDMu = sbV0(b7La(RL4V, **B2fa))
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EesT(TZWW, hw5c, Viqq):\n Hp8u = k_D4.typedtree(TZWW)\n gPdF = k_D4.typedtree(hw5c)\n kUBT = Hp8u == gPdF\n raTX = kUBT == Viqq\n if raTX:\n KCHu = 'pass'\n else:\n KCHu = 'fail'\n print(f'{TZWW} == {hw5c} is {kUBT} : {KCHu}')\n return raTX",
"def xa14(YKHO, Elif: Symbol... | [
"0.68917024",
"0.6596789",
"0.6577442",
"0.6479338",
"0.64557725",
"0.64390177",
"0.64297426",
"0.6371889",
"0.6368599",
"0.63447434",
"0.6282089",
"0.625527",
"0.6224617",
"0.6221564",
"0.6213155",
"0.619821",
"0.6193105",
"0.6192547",
"0.616437",
"0.6164099",
"0.6162677",
... | 0.73336893 | 0 |
Finds the distinct symbols on the expressions. | def kdD0(eiUN, rmc3=None, j28w=None):
if j28w is None:
j28w = []
fK8P = J9gl(eiUN, rmc3)
lWEB = []
[lWEB.extend(Ty9i) for Ty9i in fK8P.values()]
K2u2 = [KCHu for KCHu in lWEB if not KCHu in j28w]
yv6U = list(set(K2u2))
yv6U = sorted(yv6U, key=lambda KCHu: KCHu.name)
return yv6U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jExg(YKHO):\n return tMza._IterUnique(YKHO)",
"def kr1o(YKHO) -> set[jcWa]:\n lsmZ: set[jcWa] = set()\n return lsmZ.union(*(jzdc.free_symbols for jzdc in YKHO.args))",
"def jjsj(Oa1e):\n return set(Oa1e._lexical_index.keys())",
"def IpVg(YKHO) -> ZLWb[eJNH]:\n w6aI = set()\n w6aI.add(YK... | [
"0.657047",
"0.60996306",
"0.5917533",
"0.58740634",
"0.5867453",
"0.58007026",
"0.57815665",
"0.5718306",
"0.57136565",
"0.56482387",
"0.56368625",
"0.5602955",
"0.5599397",
"0.55940604",
"0.5589479",
"0.55606186",
"0.5550915",
"0.5514069",
"0.5513399",
"0.54779536",
"0.5463... | 0.65912104 | 0 |
Create a PyQuante Molecule from ccData object. | def BaYa(nPrm):
MJmq()
ggHr = {'atomcoords', 'atomnos'}
v3uw = [WKvO for WKvO in ggHr if not hasattr(nPrm, WKvO)]
if v3uw:
v3uw = ' '.join(v3uw)
raise VIdE(f'Could not create pyquante molecule due to missing attribute: {v3uw}')
xoty = XTiz.insert(nPrm.atomcoords[-1], 0, nPrm.atomnos,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GyrS(Dzu2: str) -> eKxR.Molecule:\n ZMzz = eKxR.JsonSerialization\n twwk = ZMzz.base_64_decode(Dzu2)\n iSsU = ZMzz.BinaryFormat.CBOR\n pIty = ZMzz(twwk, iSsU)\n return pIty.to_molecule()",
"def FIMM(YKHO, p1Lu=None, yDqo=None, NgpY=None, mZyr=None, GENc=None, LihS=None, bMbF=None, wWvP=None, M... | [
"0.6127257",
"0.5955953",
"0.58659273",
"0.5852008",
"0.5816335",
"0.5488921",
"0.5417257",
"0.54081833",
"0.5378631",
"0.5372726",
"0.5339961",
"0.5331621",
"0.532856",
"0.5288974",
"0.5225449",
"0.5213084",
"0.5169375",
"0.5157298",
"0.51539534",
"0.5151509",
"0.51321834",
... | 0.70717275 | 0 |
Initialize linear associator model | def FIMM(YKHO, SMdd=2, OtzW=4, T9Lg='Hard_limit'):
YKHO.input_dimensions = SMdd
YKHO.number_of_nodes = OtzW
YKHO.transfer_function = T9Lg
YKHO.initialize_weights() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, A7Z8: nn.Module, ZimQ: float=1.0, IR0z: float=1.0, suiK: float=0.0):\n super().__init__()\n X1fv()",
"def FIMM(YKHO):\n YKHO.incidents_models = {}\n YKHO.risks = []\n YKHO.incidents_models = None",
"def FIMM(YKHO, RhSd: tuple):\n super().__init__(lgxY)\n pass",
"def FIMM(Y... | [
"0.6391725",
"0.6366248",
"0.63397354",
"0.6335165",
"0.6327864",
"0.62552357",
"0.6243334",
"0.62063235",
"0.6159212",
"0.6156385",
"0.6153855",
"0.61227274",
"0.6105251",
"0.6105251",
"0.607627",
"0.6017138",
"0.6017138",
"0.6017138",
"0.6017138",
"0.6017138",
"0.59813696",... | 0.0 | -1 |
This function sets the weight matrix. | def sNuA(YKHO, XcU5):
if YKHO.weights.shape != XcU5.shape:
return -1
YKHO.weights = XcU5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Evqa(YKHO, T3TX):\n pass",
"def L1EB(YKHO, _mSQ):\n YKHO.weights = _mSQ.reshape(YKHO.output_size, YKHO.input_size + 1)",
"def HSL0(YKHO, abK6):\n assert len(abK6[0]) == YKHO._size\n YKHO.myWeights = YKHO.init_zero_matrix(YKHO._size, YKHO._size)\n for YRbF in range(0, YKHO._size):\n fo... | [
"0.75917155",
"0.7561686",
"0.74251693",
"0.73995805",
"0.7366359",
"0.73237705",
"0.71820426",
"0.7178649",
"0.7132717",
"0.7092969",
"0.7077529",
"0.7051122",
"0.7018717",
"0.70061266",
"0.69976825",
"0.69909936",
"0.69626874",
"0.6801653",
"0.6777497",
"0.6747767",
"0.6715... | 0.74057245 | 3 |
Given a batch of data, and the targets, this function adjusts the weights using pseudoinverse rule. | def qNS8(YKHO, EcVT, LVAh):
YKHO.pseudo_inv = oyIN.linalg.pinv(EcVT)
YKHO.weights = oyIN.dot(LVAh, YKHO.pseudo_inv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6J4(_mSQ, pan_, Xsfr):\n for yzQ0 in range(0, len(pan_)):\n _mSQ[yzQ0] += Xsfr * (pan_[yzQ0] - _mSQ[yzQ0])",
"def UuEY(YKHO):\n v_Ab = YKHO.model.get_weights()\n o8_n = YKHO.target_model.get_weights()\n We7B = 0\n for C4R3, vaJF in zip(v_Ab, o8_n):\n vaJF = vaJF * (1 - YKHO.tau)... | [
"0.69113845",
"0.6477466",
"0.643578",
"0.6262895",
"0.6146144",
"0.61448354",
"0.61231244",
"0.6039901",
"0.60239935",
"0.59915715",
"0.597584",
"0.5928853",
"0.59271747",
"0.58957636",
"0.5841941",
"0.58308053",
"0.58119714",
"0.5809456",
"0.57148284",
"0.5703953",
"0.56741... | 0.54883343 | 44 |
Feature standardizer This function standardizes the datesets passed as pandas dataframes by a dictionary. The reference dataframe will be used to calculate the statistical properties (mean and standard deviation) and used to normalize other dataframes. After standardizing the dataset, the features in each dataset have ... | def hrfg(RqDw: dict, gL86: str, je0o: list, li5L: bool=True) -> dict:
Y5YY = None
DeBj = {}
bFaW = RqDw[gL86]
try:
Y5YY = ZvG6.StandardScaler().fit(bFaW[je0o])
except Exception as e:
bo34.error(f'Error is: {tTpl}')
for lyoE, bOBl in RqDw.items():
k8L3 = Y5YY.transform(bOB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWT_(J7SH):\n R08w = []\n for WKvO in J7SH:\n R08w.append(gbu6(WKvO, 2, True, with_log=True, with_sqrt=True, cross_terms=True))\n return R08w",
"def _ERn(YKHO):\n nGWB = []\n for fvDH in YKHO.X.columns:\n if YKHO.X[fvDH].dtype != 'object':\n nGWB.append(fvDH)\n Y5YY... | [
"0.63430774",
"0.6236263",
"0.6199419",
"0.6146865",
"0.6103232",
"0.608885",
"0.6086649",
"0.6037316",
"0.6037316",
"0.59492195",
"0.5938442",
"0.59094757",
"0.59068686",
"0.58896196",
"0.58403134",
"0.58382845",
"0.5793191",
"0.5775445",
"0.5761759",
"0.57486457",
"0.574490... | 0.6571455 | 0 |
Get a list of AWS cidr networks that are already used in input region, | def zE1u(zn0c=None, DQXr=False):
Aofo = []
if DQXr:
for eXVH in LqRg():
for VgIM in iVGz.client('ec2', region_name=eXVH).describe_vpcs()['Vpcs']:
Aofo.append(VgIM)
else:
Aofo = iVGz.client('ec2', region_name=zn0c).describe_vpcs()['Vpcs']
J9Uc = []
for VgIM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def azaT(yKcO, Os4s, yf3m):\n UziS = []\n e215 = E6SK(f'{yKcO}/{yf3m}')\n Os4s = E6SK(f'{Os4s}/{yf3m}')\n AKMT = e215\n na1r.info(f'Start net: {e215}')\n while AKMT < Os4s + 1:\n na1r.debug(f'Adding network {AKMT}')\n UziS.append(AKMT)\n AKMT = AKMT + 1\n return UziS",
"... | [
"0.6820038",
"0.6804681",
"0.66976684",
"0.6677424",
"0.6308663",
"0.6253607",
"0.6247374",
"0.61671066",
"0.6154734",
"0.6149155",
"0.61050117",
"0.6080339",
"0.60021174",
"0.6000208",
"0.59814507",
"0.59408814",
"0.59382296",
"0.593478",
"0.58991605",
"0.5884177",
"0.587677... | 0.7293091 | 0 |
Get available CIDR (network object), among input ip ranges, according requirements | def zuDn(XT48, y0cW, u_Bd):
nY9P = []
for aHn1 in XT48:
if aHn1.block_available:
WvDo = []
piem = SwOd.summarize_address_range(aHn1.get_start_address(), aHn1.get_end_address())
try:
for Zxma in piem:
WvDo.append(Zxma)
ex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmgZ(YKHO, geh0):\n JHDS = []\n mXDZ = ZbWC.compile('^NetRange:[^\\\\S\\\\n]+(.+)$', ZbWC.MULTILINE)\n ycBG = mXDZ.search(geh0)\n aHn1 = None\n CANT = None\n if ycBG is not None:\n aHn1 = ycBG.group(1).strip()\n CANT = ycBG.start()\n for kUBT in ZbWC.finditer('^CIDR:[^\\\\S\\... | [
"0.68123966",
"0.68078184",
"0.6761085",
"0.64270276",
"0.63745517",
"0.6356885",
"0.63083756",
"0.62884295",
"0.6201431",
"0.6179098",
"0.61649907",
"0.61573243",
"0.6120111",
"0.6094949",
"0.606572",
"0.60341364",
"0.6007882",
"0.59868324",
"0.59868324",
"0.59753007",
"0.59... | 0.7409682 | 0 |
Return version number of input distribution name, If distribution not found return not found indication | def M17W(y43X):
try:
return ISnw(y43X).version
except WOcu:
return 'version not found' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nq74():\n Pz3M, DpZH, tonj = CPZt()\n return DpZH",
"def kaPv(YKHO, mWFP: str, DpZH=None) -> int:\n rAjW, wF_l = YKHO.get_division(mWFP)\n if DpZH is None:\n oJou = YKHO.get_release(wF_l)\n return oJou\n if not str(DpZH).isdecimal():\n raise TypeError('Version must be a nu... | [
"0.6932195",
"0.68048453",
"0.67014503",
"0.6700116",
"0.66417897",
"0.65806717",
"0.64669347",
"0.63702524",
"0.6356416",
"0.63375515",
"0.63276076",
"0.6314892",
"0.6295694",
"0.62482536",
"0.6214278",
"0.62090105",
"0.61680084",
"0.61538136",
"0.61250836",
"0.61203957",
"0... | 0.7520793 | 0 |
Adds column of the days since previous admission for each admission | def ne2j(jQ3Z, GTA_='', QdZT=True, irnq=False):
Yqh2 = jQ3Z.copy()
if QdZT is True:
w2B8 = iHv3.connect(OfqK)
vexM = f'SELECT {','.join([fvDH for fvDH in jQ3Z.columns if fvDH != 'merge'])} FROM {GTA_}\n WHERE member_id IN {tuple(jQ3Z.member_id.unique())};'
wEwv = rLdf.read_sql(vex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ucSA(YKHO):\n soYV = ADGs.months[YKHO.__months - 1]\n if YKHO.__months == 2 and ADGs.leapyear(YKHO.__years):\n soYV += 1\n if YKHO.__days == soYV:\n YKHO.__days = 1\n if YKHO.__months == 12:\n YKHO.__months = 1\n YKHO.__years += 1\n else:\n ... | [
"0.5347169",
"0.53097117",
"0.53028345",
"0.5291805",
"0.5257914",
"0.52219546",
"0.515763",
"0.5132564",
"0.50713074",
"0.5068003",
"0.504201",
"0.5029407",
"0.50188977",
"0.49447027",
"0.49383736",
"0.49306113",
"0.49297476",
"0.49281722",
"0.4928082",
"0.49247012",
"0.4910... | 0.5400222 | 0 |
Convert to a NetworkX representation (for plotting). | def _C8H(YKHO):
yvY1 = jHsn.Graph()
yvY1.add_nodes_from(range(YKHO.n))
for P6bq in range(YKHO.n):
for Ty9i in range(YKHO.n):
if YKHO.adjacent(P6bq, Ty9i):
yvY1.add_edge(P6bq, Ty9i)
return yvY1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u6cd(YKHO):\n return wUDI.to_networkx(G4JS.get(YKHO.__url).json())",
"def zI8S(YKHO, asBq):\n pNZh = asBq.to_networkx()",
"def u6cd(YKHO):\n Oa1e = jHsn.Graph()\n for Ty9i in YKHO.vs.values():\n Oa1e.add_node(Ty9i)\n for Ty9i in YKHO.fs:\n Oa1e.add_node(Ty9i)\n for P6bq ... | [
"0.78237706",
"0.72152233",
"0.7174843",
"0.69513005",
"0.6698474",
"0.6696587",
"0.66749895",
"0.65931714",
"0.6374036",
"0.63475806",
"0.62553084",
"0.62349886",
"0.6081653",
"0.60185397",
"0.60123825",
"0.5998786",
"0.5968667",
"0.59636873",
"0.5888532",
"0.58625335",
"0.5... | 0.7452247 | 1 |
Function to check dtype of input data. | def Yj0G(PY12):
uPYU = Vg87.cce_conf.get_soc_spec('SOC_VERSION')
if uPYU in 'Hi3796CV300ES':
if PY12 == 'float32':
raise RuntimeError('float32 is not support in ES')
gnPz.check_dtype_rule(PY12, ('float16',))
else:
gnPz.check_dtype_rule(PY12, ('float16', 'float32')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uD99(nPrm):\n if all((nPrm[fvDH].dtypes == nPrm.dtypes[0] for fvDH in nPrm.columns)):\n if all((nPrm[fvDH].isnull().sum() == 0 for fvDH in nPrm.columns)):\n print('All columns have values of the correct type.')\n else:\n print('Bad result.')",
"def lbhX(qw7D, yDqo):\n if isi... | [
"0.74189794",
"0.73898906",
"0.73041904",
"0.7157919",
"0.71237206",
"0.7039965",
"0.6881545",
"0.68634605",
"0.68466705",
"0.68417937",
"0.68379974",
"0.6788021",
"0.6753139",
"0.6749034",
"0.67395383",
"0.6737242",
"0.67154336",
"0.66748595",
"0.66574705",
"0.66382",
"0.659... | 0.76709163 | 0 |
Setups a development environment by enabling SQL debug and generates some default objects | def Q2RS():
import hashlib
ckXV(True)
MpXb = 'test'
pLe2 = 'salt'
CGvt = hashlib.sha256('{name}{salt}'.format(name=MpXb, salt=pLe2).encode('utf8')).hexdigest()
ZrNc = tHSi(name=MpXb, password=CGvt, salt=pLe2)
QJkK = ywq0.create(name='Test universe', owner=ZrNc)
KLRE = bcd8(name='Test pla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gYyp():\n HYb3()",
"def QBaJ():\n import sys\n sys.path.append('/root/pycharm-debug-py3k.egg')\n import pydevd\n pydevd.settrace('192.168.4.47', port=5422, stdoutToServer=True, stderrToServer=True, suspend=False)",
"def eCGt():\n RkHo()\n aiy_()",
"def M4N3():\n sEAN.hosts = ['']\... | [
"0.7207912",
"0.6664608",
"0.65393883",
"0.6502808",
"0.6413062",
"0.61525255",
"0.6120485",
"0.61162895",
"0.60940105",
"0.60651845",
"0.6021736",
"0.60192657",
"0.60139734",
"0.60022974",
"0.5996824",
"0.5996283",
"0.59662175",
"0.59578",
"0.5935246",
"0.5929286",
"0.592408... | 0.80060893 | 0 |
Return the relative path to the file, assuming the file is in the DOC_BUILD_DIR directory. | def t_yv(Ux0P):
u54L = len(Hy7s.path.abspath(N7Kc)) + 1
return Hy7s.path.abspath(Ux0P)[u54L:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tYz7(nUeQ: mesonlib.FileOrString) -> str:\n if isinstance(nUeQ, fnT7):\n return nUeQ.absolute_path(YKHO.source_dir, YKHO.build_dir)\n return Hy7s.path.normpath(Hy7s.path.join(YKHO.build_dir, nUeQ))",
"def pmON(Emd4, PsRC=None):\n P8oC = Hy7s.getcwd() if not ahNT._active else Emd4.locate().cur... | [
"0.71793926",
"0.71409625",
"0.71349555",
"0.7133555",
"0.69052494",
"0.68666387",
"0.6847979",
"0.68221444",
"0.68153244",
"0.68073785",
"0.67918336",
"0.67832875",
"0.6728163",
"0.67208076",
"0.6708988",
"0.6689211",
"0.66874605",
"0.6669374",
"0.65553904",
"0.6484692",
"0.... | 0.8497054 | 0 |
Returns the postfix form of the infix expression found in `expr` | def h9lw(VN2L, eRdl):
IPme = S9Ut()
hEAh = []
Q4kH = VN2L.split()
for a1PO in Q4kH:
if a1PO.isdigit():
hEAh.append(a1PO)
elif a1PO == '(':
IPme.push('(')
elif a1PO == ')':
khtY = IPme.pop()
while khtY != '(':
hEAh.ap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XtMr(VN2L):\n IPme = S9Ut()\n hEAh = []\n Q4kH = VN2L.split()\n\n def lfdS(chr):\n if chr.isdigit():\n hEAh.append(chr)\n elif chr == '(':\n IPme.push('(')\n elif IPme.peek() == '(' or IPme.empty():\n IPme.push(chr)\n elif chr == ')':\n ... | [
"0.81900203",
"0.7979371",
"0.7801753",
"0.7429643",
"0.7404279",
"0.7347274",
"0.7156811",
"0.7048756",
"0.6956311",
"0.6874034",
"0.68503463",
"0.67862564",
"0.67233485",
"0.6722634",
"0.6648669",
"0.6607104",
"0.65920854",
"0.6575015",
"0.65612596",
"0.65422934",
"0.649845... | 0.76920533 | 3 |
Read urllink string, check that it has valid format. Ask to accept the new record. | def HbRh(QdZT, QpfX):
pyiM = QdZT.message.text
Tgk_ = Wrpq(pyiM)
if not Tgk_:
QdZT.message.reply_text('Oops, your link is not a valid URL-link.\nPlease, retype the URL-link in a good format.')
return cYlf
QpfX.user_data['url-str'] = pyiM
QdZT.message.reply_text('Thank you.\n')
mp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lKbJ(YKHO):\n bD7m = u'http://whttp://lucumr.pocoo.org/2012/8/5/stateless-and-proud/'\n Ueki = nrId.ReadUrl.parse(bD7m)\n YKHO.assertEqual(Ueki.status, 901)",
"def Fz2v(YKHO, zFiD=None):\n BtvO = ZbWC.compile('\\\\w{10}\\\\|\\\\w+')\n if zFiD and ZbWC.match(BtvO, zFiD):\n return True\n ... | [
"0.6080697",
"0.58234376",
"0.5622866",
"0.5566156",
"0.5435617",
"0.5294316",
"0.519682",
"0.5171269",
"0.5155476",
"0.5140307",
"0.51257664",
"0.5114938",
"0.51061934",
"0.51035976",
"0.5092639",
"0.50793076",
"0.5033676",
"0.5027845",
"0.49950567",
"0.49864694",
"0.4981721... | 0.0 | -1 |
Return the Event Queue. Often used in register child. | def gGq6(YKHO):
return YKHO._queue | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gy9r(YKHO):\n return YKHO.assoc.dul.event_queue",
"def CqEO(YKHO):\n return YKHO.queue",
"def CqEO(YKHO):\n return YKHO.queue",
"def cpvC(YKHO):\n return YKHO.__queue",
"def cpvC(YKHO):\n return YKHO.__queue",
"def cpvC(YKHO):\n return YKHO.__queue",
"def cpvC(YKHO):\n return Y... | [
"0.86091846",
"0.72210234",
"0.72210234",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7111571",
"0.69332856",
"0.680833",
... | 0.70246494 | 21 |
Return the name of this Component/Manager | def mWFP(YKHO):
return YKHO.__class__.__name__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yr70(YKHO):\n return YKHO._name",
"def mWFP(YKHO):\n return 'component_manager'",
"def W0tD(YKHO):\n return uGKo[YKHO.index][0]",
"def mWFP(YKHO):\n return YKHO.component.get('Name', '')",
"def mWFP(YKHO):\n return YKHO.component.get('Name', '')",
"def Q0HP(YKHO):\n return YKHO.__na... | [
"0.85097605",
"0.8446357",
"0.8200038",
"0.80708385",
"0.80708385",
"0.79353374",
"0.7899912",
"0.7868577",
"0.7840524",
"0.78305936",
"0.78292775",
"0.780781",
"0.780781",
"0.780781",
"0.780781",
"0.7804831",
"0.7796037",
"0.7796037",
"0.7796037",
"0.7796037",
"0.7796037",
... | 0.7716819 | 44 |
Return the running state of this Component/Manager | def HX9S(YKHO):
return YKHO._running | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HX9S(YKHO):\n return YKHO.state['Running']",
"def lEWq(YKHO) -> int | None:\n return YKHO.cluster.get('running_state')",
"def QTBn(YKHO) -> XLjY:\n return YKHO._async_scheduler.state",
"def HX9S(YKHO):\n U34r = YKHO.info()\n return U34r['running']",
"async def read_running_state(YKHO):\n... | [
"0.7704407",
"0.768777",
"0.75955904",
"0.7558845",
"0.74164623",
"0.7393625",
"0.7381565",
"0.7361183",
"0.73058176",
"0.72484815",
"0.7248193",
"0.7219353",
"0.7219353",
"0.7209725",
"0.7209725",
"0.7209725",
"0.72024614",
"0.7201346",
"0.7201346",
"0.71923715",
"0.7189943"... | 0.76450056 | 2 |
Return the Event Queue. Often used in register child. | def gGq6(YKHO):
return YKHO._queue | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gy9r(YKHO):\n return YKHO.assoc.dul.event_queue",
"def CqEO(YKHO):\n return YKHO.queue",
"def CqEO(YKHO):\n return YKHO.queue",
"def cpvC(YKHO):\n return YKHO.__queue",
"def cpvC(YKHO):\n return YKHO.__queue",
"def cpvC(YKHO):\n return YKHO.__queue",
"def cpvC(YKHO):\n return Y... | [
"0.86091846",
"0.72210234",
"0.72210234",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7137214",
"0.7111571",
"0.69332856",
"0.680833",
... | 0.70246494 | 20 |
Returns string UUID of the boot volume (/), or None if error. | def K5m1(YKHO):
HCmI = [rX8F, 'info', '-plist', '/']
try:
c39q = gnPz.GetPlistFromExec(HCmI)
except gnPz.ExecError:
return None
return c39q.get('VolumeUUID') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s6ko(YKHO):\n iiGX = None\n SBGa = None\n for akib in YKHO.volumes:\n if not akib.partitions:\n continue\n for Qrt_ in akib.partitions:\n if Qrt_.mount_point == '/':\n iiGX = akib\n elif Qrt_.mount_point == '/boot':\n SBGa = ... | [
"0.7211224",
"0.69130087",
"0.6680294",
"0.64639413",
"0.64130294",
"0.63189584",
"0.63145447",
"0.62791365",
"0.6256662",
"0.61167836",
"0.606931",
"0.60163456",
"0.5969097",
"0.5951745",
"0.58585423",
"0.58264923",
"0.58071536",
"0.5804914",
"0.5781416",
"0.57693416",
"0.57... | 0.75135744 | 0 |
Returns True if the boot volume (/) is encrypted, False otherwise. | def OPq0(YKHO):
qxeD = YKHO.GetPrimaryVolumeUUID()
if not qxeD:
return False
Of2x = YKHO._GetAPFSVolumes(uuid=qxeD)
return bool(Of2x and Of2x[0].get('Encryption')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AsaJ(YKHO, KAOR, X1Jm=None):\n return not bool(KAOR.get('image_ref'))",
"def jPPD(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'encrypted')",
"def jPPD(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'encrypted')",
"def jPPD(YKHO):\n return YKHO.encryption_type is not None",
"def jBv3(jQUX):\n... | [
"0.6894691",
"0.6687584",
"0.6687584",
"0.66304755",
"0.6320171",
"0.6246809",
"0.61777335",
"0.61218166",
"0.6111284",
"0.609413",
"0.60671836",
"0.59723514",
"0.59393007",
"0.5835118",
"0.58129823",
"0.5777294",
"0.5768005",
"0.57586783",
"0.5728411",
"0.5723119",
"0.57046"... | 0.8629213 | 0 |
add 4 byte hex header at the beginning of the message; Returns a bytes object. | def m7Oc(YKHO, Ol8d):
print('message length %d' % len(Ol8d))
print('%04x' % len(Ol8d))
print('%08x' % len(Ol8d))
WBPg = '%04x' % len(Ol8d)
return WBPg + Ol8d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pn9C(YKHO, sxhR):\n if not type(sxhR) is bytes:\n return 'ERROR: An APDU has to be a bytestring.'\n yKcO = b'h'\n sD_I = len(sxhR)\n if sD_I > 253:\n return 'ERROR: APDU too long.'\n return yKcO + BlNT.pack('B', len(sxhR))",
"def fcEP(YKHO):\n return YKHO.header_bytes() + YKHO... | [
"0.6215956",
"0.6212898",
"0.61799604",
"0.61649907",
"0.6157985",
"0.61034787",
"0.6080803",
"0.6004299",
"0.59685373",
"0.5884172",
"0.5879107",
"0.58748627",
"0.58627194",
"0.57854205",
"0.57853705",
"0.5779987",
"0.5766742",
"0.57542604",
"0.57502997",
"0.57402337",
"0.57... | 0.6659834 | 0 |
Return model name if known. | def C3ST(YKHO) -> str:
return YKHO.properties[Tnxe] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TbE8(YKHO) -> str:\n raise NotImplementedError",
"def ZGE9(YKHO) -> str:\n return YKHO._model_name",
"def TbE8(YKHO) -> str:\n return YKHO._get_string(wLjv.Prop_RenderModelName_String)",
"def ZGE9(YKHO):\n YqMg = YKHO.get_setting_definition(YKHO.key, **YKHO.get_kwargs())\n return YqMg.get(... | [
"0.8194693",
"0.7968126",
"0.7912313",
"0.7665799",
"0.7594676",
"0.7592662",
"0.75644517",
"0.7532425",
"0.74195427",
"0.7415931",
"0.7308307",
"0.7284989",
"0.7273867",
"0.7255279",
"0.7253903",
"0.72169966",
"0.72012585",
"0.71117526",
"0.71013314",
"0.70968163",
"0.707153... | 0.61725616 | 74 |
Return a sequence to file mapping by calling get_seq_to_file on a list of directories. When sequences for files in later directories match those from earlier directories, the later file replaces the earlier one. | def m0hq(DQqV, y0cW, ZI14):
xgPR = {}
for Kp4Y in DQqV:
xgPR.update(PAJn(Kp4Y, y0cW, ZI14))
return xgPR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yZ6Z(YKHO, RRlC):\n if getattr(RRlC, '__iter__', None):\n for eHNT in RRlC:\n if not Hy7s.path.isabs(eHNT):\n yield Hy7s.path.join(YKHO._path, eHNT)\n else:\n yield eHNT\n elif not Hy7s.path.isabs(RRlC):\n yield Hy7s.path.join(YKHO._path, ... | [
"0.57200646",
"0.5603551",
"0.5428384",
"0.5365151",
"0.53543",
"0.52780384",
"0.52780384",
"0.52640384",
"0.51690215",
"0.5144148",
"0.5144148",
"0.5107793",
"0.50772166",
"0.50669485",
"0.5037193",
"0.5034475",
"0.5030254",
"0.50258476",
"0.5019535",
"0.5009431",
"0.496896"... | 0.6355487 | 0 |
Return the first cmap in the font, we assume it exists and is a unicode cmap. | def hRb6(o9av):
return o9av['cmap'].tables[0].cmap | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i0Yh(YKHO, hcXw):\n uczf = ord(hcXw)\n for o9av in tvcd:\n for Nkdt in bRvk[o9av]:\n if uczf in Ni9Y(Nkdt[0], Nkdt[1]):\n return o9av\n return 'Helvetica'",
"def iMGt(YKHO):\n return YKHO._cmap",
"def iMGt(YKHO):\n return YKHO.pixels.get_cmap()",
"def iMGt(... | [
"0.59702957",
"0.59402055",
"0.5895646",
"0.564658",
"0.5613291",
"0.5608715",
"0.56026316",
"0.552686",
"0.552686",
"0.54798454",
"0.5472726",
"0.54425484",
"0.53768235",
"0.5354973",
"0.5337661",
"0.531796",
"0.52931774",
"0.5281218",
"0.5233462",
"0.5233462",
"0.5229504",
... | 0.8077624 | 0 |
Add cmap format 4 table for Windows support, based on the format 12 cmap. | def w794(o9av):
iMGt = hRb6(o9av)
UtDp = ewoD.newSubtable(4)
UtDp.platformID = 3
UtDp.platEncID = 1
UtDp.language = 0
UtDp.cmap = {U7YL: mWFP for U7YL, mWFP in iMGt.items() if U7YL <= 65535}
o9av['cmap'].tables.append(UtDp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vbhv():\n Mkmy = '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... | [
"0.61801964",
"0.56779355",
"0.5510604",
"0.5491872",
"0.5491872",
"0.5491872",
"0.54730815",
"0.54730815",
"0.5442689",
"0.5442677",
"0.53250027",
"0.5310387",
"0.52932644",
"0.52878886",
"0.51642835",
"0.5120832",
"0.50980926",
"0.5072049",
"0.50696397",
"0.50308245",
"0.50... | 0.83590245 | 0 |
to return a bool value, telling a node in graph being or not being a event node | def RdPq(Oa1e, Q6kx):
if Q6kx not in Oa1e.nodes():
print('Not a node in the graph')
return False
elif Oa1e.node[Q6kx]['type'] == 'event':
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ierk(YKHO, exwG):\n return exwG in YKHO.node_dict",
"def eTTr(Oa1e, Q6kx):\n if Q6kx not in Oa1e.nodes():\n print('Not a node in the graph')\n return False\n elif Oa1e.node[Q6kx]['type'] == 'user':\n return True\n else:\n return False",
"def _fLb():\n return False... | [
"0.6641038",
"0.6577558",
"0.64325243",
"0.6401383",
"0.63804096",
"0.6380383",
"0.6378461",
"0.6234613",
"0.6222642",
"0.6216343",
"0.620699",
"0.6203426",
"0.617027",
"0.6130251",
"0.6130251",
"0.6122867",
"0.6108754",
"0.61046404",
"0.6079078",
"0.605906",
"0.60585195",
... | 0.86759436 | 0 |
to return a bool value, telling a node in graph being or not being a user node | def eTTr(Oa1e, Q6kx):
if Q6kx not in Oa1e.nodes():
print('Not a node in the graph')
return False
elif Oa1e.node[Q6kx]['type'] == 'user':
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ierk(YKHO, P6bq: Hashable) -> bool:\n return P6bq in YKHO._names",
"def Ierk(YKHO, P6bq: Hashable) -> bool:\n try:\n YKHO.get_node_by_id(P6bq)\n return True\n except KeyError:\n return False",
"def rRUK(Zgw8):\n from .node import Node\n return Lfgs(Zgw8, Node)",
"def _... | [
"0.67041546",
"0.6592569",
"0.64812267",
"0.64284223",
"0.6385174",
"0.6325588",
"0.63175076",
"0.6282001",
"0.6265334",
"0.6210744",
"0.6184324",
"0.6175842",
"0.61406976",
"0.61165345",
"0.61165345",
"0.61143684",
"0.61065114",
"0.60745806",
"0.6074393",
"0.60625255",
"0.60... | 0.867981 | 0 |
Strip the input value if it is a string and returns None if it had only whitespaces | def CGao(BWXx):
if isinstance(BWXx, exCv):
BWXx = BWXx.strip()
if len(BWXx) == 0:
return None
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aVEM(YKHO, BWXx):\n if not str(BWXx).strip():\n return None\n else:\n return BWXx",
"def aRC3(Emd4, BWXx: Optional[str]) -> h8nf[str]:\n if BWXx and BWXx.strip():\n return BWXx\n return None",
"def sg_b(BWXx):\n if any([YRbF != ' ' for YRbF in BWXx]):\n return BWX... | [
"0.7963226",
"0.7558468",
"0.75185513",
"0.72606844",
"0.70583236",
"0.7019522",
"0.7004776",
"0.6991211",
"0.69583523",
"0.6907512",
"0.68280506",
"0.67513376",
"0.6658939",
"0.65599304",
"0.6554476",
"0.6492995",
"0.6482253",
"0.6471949",
"0.64684564",
"0.6462428",
"0.64537... | 0.8337188 | 0 |
Returns maximum value of a list; 0 if list is empty. | def sgGw(list):
try:
return max(list)
except ValueError:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipPO(list):\n return Qpvm(list, 0)",
"def PtQX(hcfj):\n return max(hcfj)",
"def max(vC9B):\n if vC9B:\n b25f = sorted(vC9B)\n return b25f[-1]\n else:\n raise ValueError('list empty')",
"def sU3K(CaKm):\n RI88 = max(CaKm)\n return RI88",
"def jlgE(JTgH):\n xCrM ... | [
"0.8186424",
"0.7809494",
"0.7699659",
"0.7682465",
"0.7658206",
"0.76157045",
"0.75729984",
"0.7564758",
"0.75142056",
"0.74919003",
"0.74354166",
"0.7420706",
"0.74061656",
"0.7372001",
"0.73590267",
"0.7328897",
"0.7326603",
"0.7325956",
"0.7196364",
"0.71924347",
"0.71229... | 0.8840953 | 0 |
Takes in a model folder path and gets the name of the most recent checkpoint. | def Zp5r(CWD0):
deXY = [jzdc.stem for jzdc in CWD0.glob('*.index')]
ZhT8 = sorted(deXY, key=lambda WKvO: -int(WKvO.split('-')[-1]))[0]
return ZhT8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GZbi(YKHO):\n HZJf, x8fl = (-oyIN.inf, None)\n for Ux0P in Hy7s.listdir(YKHO.logdir):\n if Hy7s.path.basename(YKHO._save_path) in Ux0P:\n try:\n ywwl = int(Ux0P.split('-')[1].split('.')[0])\n if ywwl > HZJf:\n HZJf = ywwl\n ... | [
"0.8014767",
"0.7837369",
"0.75782955",
"0.7504171",
"0.75004077",
"0.7471074",
"0.7231649",
"0.7204703",
"0.7185792",
"0.7093291",
"0.7090314",
"0.69762653",
"0.69500506",
"0.6923864",
"0.68234986",
"0.6820031",
"0.6701305",
"0.66401935",
"0.6564668",
"0.6563758",
"0.6563527... | 0.8405909 | 0 |
The topological diameter of a network | def faya(YKHO):
import math
tUjD = 0
for YRbF in range(YKHO.nodenum):
for r845 in range(YKHO.nodenum):
JQCN = []
YKHO.pathij(YRbF, r845, JQCN)
Ayfi = []
for G1Hx in range(len(JQCN)):
Ayfi.append(len(JQCN[G1Hx]) - 1)
if len(A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YiH0(YKHO) -> int:\n return jHsn.diameter(YKHO.to_undirected())",
"def Fem0(YKHO):\n eGZe = []\n for CBRg in YKHO.graph.keys():\n for j9ly in YKHO.graph.keys():\n if j9ly != CBRg:\n Aofo = YKHO.pathFinder(CBRg, j9ly)\n for pmON in Aofo:\n ... | [
"0.81324637",
"0.73549366",
"0.7212592",
"0.7079882",
"0.6771153",
"0.6738865",
"0.6738865",
"0.6720883",
"0.6720883",
"0.6712754",
"0.6702523",
"0.65123874",
"0.649436",
"0.6422196",
"0.6353817",
"0.6237044",
"0.6223903",
"0.6211234",
"0.61825013",
"0.6102325",
"0.6092057",
... | 0.80972713 | 1 |
This method is the setter method for self.__value attribute. | def BWXx(YKHO, BWXx):
YKHO.__value = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6Nn(YKHO):\n raise NotImplementedError",
"def BWXx(YKHO, BWXx):\n YKHO._value = BWXx",
"def BWXx(YKHO, BWXx):\n YKHO._value = BWXx",
"def BWXx(YKHO, BWXx):\n YKHO._value = BWXx",
"def BWXx(YKHO, BWXx):\n YKHO._value = BWXx",
"def BWXx(YKHO, BWXx):\n YKHO._value = BWXx",
"def BWXx... | [
"0.8436878",
"0.8239251",
"0.8239251",
"0.8239251",
"0.8239251",
"0.8239251",
"0.8239251",
"0.8162073",
"0.81347865",
"0.81347865",
"0.81347865",
"0.80020404",
"0.78766996",
"0.78568804",
"0.78568804",
"0.7840692",
"0.783777",
"0.78244156",
"0.78244156",
"0.7804884",
"0.77078... | 0.8672968 | 0 |
Test creating a new tag with invalid payload | def jPj6(YKHO):
pB3N = {'name': ''}
Ylbp = YKHO.client.post(ebJ5, pB3N)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uzfn(YKHO):\n lnm9 = {'name': ''}\n geh0 = YKHO.client.post(vRSU, lnm9)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def jPj6(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(V1ts, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def jPj... | [
"0.8802175",
"0.8645113",
"0.85850036",
"0.8521736",
"0.84213364",
"0.8288155",
"0.8284713",
"0.810476",
"0.7905386",
"0.7135043",
"0.7107819",
"0.6966567",
"0.68623394",
"0.68487984",
"0.6843626",
"0.6826251",
"0.6824321",
"0.6820896",
"0.67746127",
"0.6761142",
"0.6761142",... | 0.86444473 | 2 |
Return the scipy (marginal) posterior for passed parameter. | def YLMB(YKHO, k78t):
sZqf = k78t.strip().split('_')[1]
k0lF = sum(YKHO._prior_hyperparameters.values())
d_Ba = YKHO.prior_hyperparameters['a_{}'.format(sZqf)]
ywwl = sum(YKHO._data.values())
RMvl = YKHO._data[sZqf]
return NGOB(d_Ba + RMvl, k0lF - d_Ba + ywwl - RMvl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5ts(YKHO, k78t):\n sZqf = k78t.strip().split('_')[1]\n k0lF = sum(YKHO._prior_hyperparameters.values())\n d_Ba = YKHO.prior_hyperparameters['a_{}'.format(sZqf)]\n return NGOB(d_Ba, k0lF - d_Ba)",
"def FV7F(YKHO):\n if YKHO.__posterior_parameter is not None:\n return YKHO.__posterior_pa... | [
"0.76313055",
"0.6752423",
"0.66483516",
"0.654338",
"0.65295607",
"0.62390584",
"0.6232847",
"0.6205957",
"0.6153562",
"0.61455786",
"0.61181355",
"0.60957754",
"0.6091746",
"0.607018",
"0.6053912",
"0.6013177",
"0.59840304",
"0.59524983",
"0.59475017",
"0.5921584",
"0.59039... | 0.8680153 | 0 |
Plot parameter prior pdf using passed matplotlib ax. | def NbJM(YKHO, k78t, aNZO, **B2fa):
cHAw = B2fa.pop('y_label', 'Prior pdf')
dCji = B2fa.pop('x_label', k78t)
wBZN = YKHO.distribution_parameter_support[k78t][0]
re6M = YKHO.distribution_parameter_support[k78t][1]
Jw7X = (re6M - wBZN) / 100
mMG6 = oyIN.arange(Jw7X, re6M, Jw7X)
f2rf = YKHO._pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Th9x(YKHO, k78t, **B2fa):\n TVTK = B2fa.pop('width', 8)\n H2v2 = B2fa.pop('height', 3)\n cHAw = B2fa.pop('y_label', 'Prior pdf')\n dCji = B2fa.pop('x_label', k78t)\n LZpg, aNZO = QrM1.subplots(1, 1, figsize=(TVTK, H2v2))\n YKHO._plot_prior_pdf(k78t, aNZO, y_label=cHAw, x_label=dCji)\n retu... | [
"0.73476464",
"0.7303399",
"0.6752052",
"0.6730011",
"0.64765376",
"0.6355472",
"0.63546145",
"0.6144492",
"0.61285305",
"0.61122084",
"0.6061205",
"0.6047029",
"0.60294515",
"0.6026977",
"0.6016804",
"0.60077846",
"0.6004579",
"0.59469926",
"0.5939574",
"0.59349275",
"0.5882... | 0.7894863 | 0 |
Return the prior mean for the specified parameter. | def wucG(YKHO, k78t):
if k78t not in YKHO:
raise eEC0('Parameter not recognized!')
else:
YRbF = k78t.split('_')[1]
d_Ba = YKHO.prior_hyperparameters['a_{}'.format(YRbF)]
k0lF = sum(YKHO.prior_hyperparameters.values())
return d_Ba / k0lF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gggm(YKHO, k78t):\n if k78t not in YKHO:\n raise eEC0('Parameter not recognized!')\n else:\n YRbF = k78t.split('_')[1]\n d_Ba = YKHO.prior_hyperparameters['a_{}'.format(YRbF)]\n k0lF = sum(YKHO.prior_hyperparameters.values())\n RMvl = YKHO.data[YRbF]\n ywwl = sum... | [
"0.77960056",
"0.6811811",
"0.66823816",
"0.6575153",
"0.6534252",
"0.64853966",
"0.647731",
"0.6443126",
"0.6428318",
"0.6391523",
"0.637634",
"0.637634",
"0.63282377",
"0.6326249",
"0.63238055",
"0.6319615",
"0.6297563",
"0.62542635",
"0.62487966",
"0.6244395",
"0.62282336"... | 0.84788823 | 0 |
Return the posterior mean for the specified parameter. | def gggm(YKHO, k78t):
if k78t not in YKHO:
raise eEC0('Parameter not recognized!')
else:
YRbF = k78t.split('_')[1]
d_Ba = YKHO.prior_hyperparameters['a_{}'.format(YRbF)]
k0lF = sum(YKHO.prior_hyperparameters.values())
RMvl = YKHO.data[YRbF]
ywwl = sum(YKHO.data.va... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wucG(YKHO, k78t):\n if k78t not in YKHO:\n raise eEC0('Parameter not recognized!')\n else:\n YRbF = k78t.split('_')[1]\n d_Ba = YKHO.prior_hyperparameters['a_{}'.format(YRbF)]\n k0lF = sum(YKHO.prior_hyperparameters.values())\n return d_Ba / k0lF",
"def Cwxg(Oa1e: to.... | [
"0.7408755",
"0.65426844",
"0.632092",
"0.62143314",
"0.6206901",
"0.6185513",
"0.6135589",
"0.60521066",
"0.60307956",
"0.6003379",
"0.5967519",
"0.5956202",
"0.5956033",
"0.58950335",
"0.5886061",
"0.5871528",
"0.5861594",
"0.5857031",
"0.5856158",
"0.58520925",
"0.5850065"... | 0.84081346 | 0 |
Return a sample of the passed parameter from the (marginal) Beta posterior. | def DVTA(YKHO, k78t):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YLMB(YKHO, k78t):\n sZqf = k78t.strip().split('_')[1]\n k0lF = sum(YKHO._prior_hyperparameters.values())\n d_Ba = YKHO.prior_hyperparameters['a_{}'.format(sZqf)]\n ywwl = sum(YKHO._data.values())\n RMvl = YKHO._data[sZqf]\n return NGOB(d_Ba + RMvl, k0lF - d_Ba + ywwl - RMvl)",
"def p5Rm(mvm... | [
"0.6756069",
"0.6750759",
"0.66246235",
"0.6472297",
"0.64247423",
"0.6420742",
"0.6349176",
"0.6337736",
"0.6292265",
"0.6280987",
"0.62556845",
"0.62541556",
"0.61511225",
"0.6149604",
"0.61478007",
"0.61154574",
"0.61002386",
"0.6087288",
"0.6086534",
"0.6082683",
"0.60768... | 0.7203621 | 0 |
Gets a collection of `InputExample`s for the train set. | def CxJK(YKHO, KAfx):
return YKHO.read_data(KAfx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def rNg5(YKHO):\n raise NotImplementedError()",
"def rNg5(YKHO, eZ_W):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX... | [
"0.73513573",
"0.71743697",
"0.71278554",
"0.6560718",
"0.6422419",
"0.6403078",
"0.6340598",
"0.62880164",
"0.6281034",
"0.6251411",
"0.6248832",
"0.6248533",
"0.6248533",
"0.6248533",
"0.6248533",
"0.6248533",
"0.6248533",
"0.6248533",
"0.6248533",
"0.6248533",
"0.6248533",... | 0.0 | -1 |
Gets a collection of `InputExample`s for the dev set. | def ObKV(YKHO, KAfx):
return YKHO.read_data(KAfx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdXm(YKHO, eZ_W):\n raise NotImplementedError()",
"def vGUt(YKHO, PU1l):\n return PU1l",
"def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)",
"def JdXm(YKHO):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):... | [
"0.68112403",
"0.6588688",
"0.655683",
"0.6552607",
"0.64272827",
"0.63816285",
"0.6255956",
"0.61930686",
"0.61160946",
"0.6094262",
"0.6054992",
"0.6051947",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",
"0.5994604",... | 0.0 | -1 |
Tests the space group finder that returns all the rotation matrices for a lattice. | def Q1gQ(YKHO):
from celib.symmetry_module import get_spacegroup
Aofo = get_spacegroup(YKHO.lattice, YKHO.atomtypes, YKHO.basis, True, 1e-10)
YKHO.assertEqual(Aofo.sg_op.shape, (3, 3, 48))
LeWQ = pmON.join(YKHO.fdir, 'sgops.dat')
with open(LeWQ) as eHNT:
Nqlg = eHNT.readlines()
C3ST = YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qDkP(YKHO, moMn):\n YKHO.rotate = epAf.pi * float(moMn[0]) / 180\n YKHO.rX = 0\n YKHO.rY = 0\n if len(moMn) == 3:\n if moMn[1]:\n YKHO.rX = float(moMn[1])\n if moMn[2]:\n YKHO.rY = float(moMn[2])\n Cwt5 = YKHO.rotate\n UV8M = YKHO.rX\n vHO5 = YKHO.rY\n ... | [
"0.5698659",
"0.54044193",
"0.5292343",
"0.5281485",
"0.52310616",
"0.5200369",
"0.5081966",
"0.50813",
"0.5076169",
"0.5004332",
"0.4996704",
"0.49837616",
"0.49610397",
"0.4957767",
"0.49557602",
"0.49485978",
"0.49470687",
"0.4946389",
"0.49309647",
"0.49233016",
"0.491659... | 0.4605593 | 68 |
Return the local minimum's index given a stating point. Note that this is not robust for noisy data and will always move down the indices if placed at a peak. The extra numerical factors require a minimum slope. | def RRUb(nihE, yKcO):
YRbF = yKcO
while nihE[YRbF - 1] < nihE[YRbF] - 0.06:
YRbF -= 1
while nihE[YRbF + 1] < nihE[YRbF] - 0.06:
YRbF += 1
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z69y(Gaon, d6pt, Gbbq):\n kJWT = min(d6pt + Gbbq, Gaon.shape[0])\n fciZ = oyIN.argmin(Gaon[d6pt:kJWT])\n return d6pt + fciZ",
"def AZpe(YKHO):\n return YKHO._minidx",
"def aSYq(nf_0, qR8Z):\n return nf_0.index(oyIN.min(nf_0[qR8Z:]))",
"def NfdA(YKHO, AU8u):\n TaUL = YKHO.distances_to(AU... | [
"0.6898985",
"0.68027645",
"0.6574405",
"0.65286124",
"0.6485343",
"0.64324343",
"0.63863814",
"0.6375529",
"0.6361183",
"0.63559335",
"0.63392276",
"0.6315246",
"0.628172",
"0.6277534",
"0.62705564",
"0.62344897",
"0.62030107",
"0.62029105",
"0.61941874",
"0.6159487",
"0.612... | 0.56837535 | 64 |
Return the name of the sensor. | def mWFP(YKHO):
return YKHO.robot.name + ' ' + pUoF[YKHO.type][0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91896784",
"0.9168378",
"0.890185",
"0.8770976",
"0.8511273",
"0.8479953",
"0.844435",
"0.8299758",
"0.8186503",
"0.8105667",
"0.8079737",
"0.8066149",
"0.8049647",
"0.7700968",
"0.7612295",
"0.7611456",
"0.7600605",
"0.7600605",
"0.7600605",
"0.75392073",
"0.75166553",
... | 0.0 | -1 |
Returns list of product variables as ``Variable`` or ``SpectralVariable`` class objects. | def dOMe(YKHO, Lx3t):
RxNf = YKHO.getDataVariables(Lx3t)
vcCd = YKHO.getMaskVariables(Lx3t)
_O72 = YKHO.getMeteorologicalVariables(Lx3t)
Fn5c = YKHO.getSensorVariables(Lx3t)
AtKh = YKHO.getInfoVariables(Lx3t)
return RxNf + vcCd + _O72 + Fn5c + AtKh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aoOW(YKHO, Lx3t):\n BhLl = YKHO.getDataVariableNames(Lx3t)\n RxNf = [YKHO.createDataVariable(Lx3t, exwG) for exwG in BhLl]\n RxNf = [YKHO.editDataVariable(Lx3t, Ty9i) for Ty9i in RxNf]\n return RxNf",
"def vars(YKHO):\n return [RELP(YRbF, YKHO.dims[YRbF]) for YRbF in range(YKHO.nvar)]",
"def... | [
"0.6673094",
"0.65489125",
"0.65141535",
"0.6480595",
"0.64581805",
"0.6349883",
"0.62883854",
"0.6119275",
"0.6116998",
"0.61092746",
"0.61028063",
"0.6033775",
"0.6020363",
"0.6013184",
"0.5978308",
"0.59124255",
"0.5902464",
"0.590174",
"0.59011734",
"0.5892988",
"0.587968... | 0.61185414 | 8 |
Returns list of product "data" type variables as ``Variable`` or `SpectralVariable` class objects. | def aoOW(YKHO, Lx3t):
BhLl = YKHO.getDataVariableNames(Lx3t)
RxNf = [YKHO.createDataVariable(Lx3t, exwG) for exwG in BhLl]
RxNf = [YKHO.editDataVariable(Lx3t, Ty9i) for Ty9i in RxNf]
return RxNf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KSC4(YKHO):\n return YKHO._variable_single_types + YKHO._variable_array_types",
"def vars(YKHO):\n return [RELP(YRbF, YKHO.dims[YRbF]) for YRbF in range(YKHO.nvar)]",
"def z7OM(YKHO, Lx3t):\n return []",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def kc1W(YKH... | [
"0.66370356",
"0.6517246",
"0.6436121",
"0.6391193",
"0.63387704",
"0.63354594",
"0.6333873",
"0.6284197",
"0.62416744",
"0.61944",
"0.61532813",
"0.60988384",
"0.60918325",
"0.60885936",
"0.5961736",
"0.5950214",
"0.59378254",
"0.593155",
"0.592988",
"0.59269077",
"0.5919450... | 0.7200427 | 0 |
Returns list of product "mask" type variables as ``Variable`` class objects. | def R0lL(YKHO, Lx3t):
JNQv = YKHO.getMaskVariableNames(Lx3t)
vcCd = [YKHO.createMaskVariable(Lx3t, exwG) for exwG in JNQv]
vcCd = [YKHO.editMaskVariable(Lx3t, Ty9i) for Ty9i in vcCd]
return vcCd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iKGS(YKHO, Lx3t):\n return []",
"def iKGS(YKHO, Lx3t):\n MKlR = Lx3t.getSceneRasterHeight()\n if MKlR == 10980:\n return YKHO.return_available_variables(Lx3t, rFLX)\n elif MKlR == 5490:\n return YKHO.return_available_variables(Lx3t, vlaf)\n elif MKlR == 1830:\n return YKHO... | [
"0.6821693",
"0.6388557",
"0.6255446",
"0.62545663",
"0.6193279",
"0.6131361",
"0.609196",
"0.6068199",
"0.592613",
"0.5925131",
"0.58977854",
"0.5893189",
"0.58479047",
"0.57421154",
"0.5694922",
"0.5686976",
"0.5645195",
"0.56333876",
"0.56333876",
"0.56333876",
"0.5556208"... | 0.73823506 | 0 |
Returns list of product "meteorological" type variables as ``Variable`` class objects. | def Yt1m(YKHO, Lx3t):
tOpa = YKHO.getMeteorologicalVariableNames(Lx3t)
_O72 = [YKHO.createMeteorologicalVariable(Lx3t, exwG) for exwG in tOpa]
_O72 = [YKHO.editMeteorologicalVariable(Lx3t, Ty9i) for Ty9i in _O72]
return _O72 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KSC4(YKHO):\n return YKHO._variable_single_types + YKHO._variable_array_types",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def vars(YKHO):\n return [RELP(YRbF, YKHO.dims[YRbF]) for YRbF in range(YKHO.nvar)]",
"def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in... | [
"0.6879589",
"0.64656603",
"0.6390412",
"0.63594055",
"0.63440067",
"0.631634",
"0.6309914",
"0.6253169",
"0.62341386",
"0.61652195",
"0.6118893",
"0.6115976",
"0.60680306",
"0.6055131",
"0.60370594",
"0.6022582",
"0.6014393",
"0.6000987",
"0.5993063",
"0.5991066",
"0.5974143... | 0.67884076 | 1 |
Returns list of product "sensor" type variables as ``Variable`` class objects. | def vHdq(YKHO, Lx3t):
RR7W = YKHO.getSensorVariableNames(Lx3t)
Fn5c = [YKHO.createSensorVariable(Lx3t, exwG) for exwG in RR7W]
Fn5c = [YKHO.editSensorVariable(Lx3t, Ty9i) for Ty9i in Fn5c]
return Fn5c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UzPg(YKHO, Lx3t):\n return []",
"def UzPg(YKHO, Lx3t):\n return []",
"def KSC4(YKHO):\n return YKHO._variable_single_types + YKHO._variable_array_types",
"def vars(YKHO):\n return [RELP(YRbF, YKHO.dims[YRbF]) for YRbF in range(YKHO.nvar)]",
"def dOMe(YKHO, Lx3t):\n RxNf = YKHO.getDataVar... | [
"0.6750072",
"0.6716479",
"0.6492746",
"0.6474434",
"0.6394079",
"0.63495994",
"0.62539953",
"0.62413377",
"0.6215323",
"0.6193386",
"0.61144584",
"0.60982084",
"0.6068696",
"0.60247207",
"0.60168356",
"0.59995025",
"0.59842956",
"0.59350985",
"0.5907617",
"0.59062946",
"0.58... | 0.7740241 | 0 |
Returns "sensor" type `Variable` class objects, for given product variable | def xfXy(YKHO, Lx3t, M_u8):
GaEU = {'name': M_u8, 'dtype': None, 'vtype': 'sensor', 'units': None, 'ndims': None, 'shape': None}
s2oI = iQnE(GaEU)
return s2oI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vHdq(YKHO, Lx3t):\n RR7W = YKHO.getSensorVariableNames(Lx3t)\n Fn5c = [YKHO.createSensorVariable(Lx3t, exwG) for exwG in RR7W]\n Fn5c = [YKHO.editSensorVariable(Lx3t, Ty9i) for Ty9i in Fn5c]\n return Fn5c",
"def UzPg(YKHO, Lx3t):\n return []",
"def UzPg(YKHO, Lx3t):\n return []",
"def d... | [
"0.71037596",
"0.6081413",
"0.606984",
"0.6044338",
"0.58650655",
"0.58245784",
"0.5769328",
"0.5735407",
"0.57089734",
"0.5650917",
"0.5636367",
"0.5608584",
"0.5593829",
"0.5584411",
"0.558125",
"0.5575986",
"0.5564306",
"0.55297095",
"0.55143905",
"0.55136764",
"0.5427982"... | 0.70375246 | 1 |
Return dictionary of product attributes | def JQ3C(YKHO, Lx3t):
return {'product_string': None} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h6gc(YKHO) -> cuzp[str, str]:\n pass",
"def h6gc(YKHO):\n w2IS = YKHO._get_api_endpoint() + '/attributes'\n dixj = YKHO.tq.get(w2IS, withp='attribute')\n if 'data' not in dixj:\n return {}\n return dixj['data']",
"def MNRr(YKHO):\n return {'product_id': YKHO.product_id, 'product_na... | [
"0.71890765",
"0.70803684",
"0.70581627",
"0.6945636",
"0.6945636",
"0.6945636",
"0.68543226",
"0.68158424",
"0.67674136",
"0.67346096",
"0.67291784",
"0.67128557",
"0.6711666",
"0.67089134",
"0.6695861",
"0.6653375",
"0.6648942",
"0.6634209",
"0.65978914",
"0.65826434",
"0.6... | 0.79112864 | 0 |
Given a Divisor and a Bound , Find the largest integer N , Such That , | def GR1x(di96: int, mmRm: int) -> int:
while mmRm > 0:
if mmRm % di96 == 0:
return mmRm
mmRm -= 1
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rLcX(exwG: int, gqRb: int, ODP9: int) -> int:\n return max(min(exwG, ODP9), gqRb)",
"def PgTe(jzdc, Fg_i, WKvO):\n Ty9i = jzdc - 1\n while v_BE(Ty9i, Fg_i) > WKvO:\n Ty9i -= 1\n return Ty9i",
"def id3w(A2Fp):\n try:\n A2Fp = int(A2Fp)\n except ValueError:\n raise Type... | [
"0.7100869",
"0.6582037",
"0.6556253",
"0.6473116",
"0.645128",
"0.6407993",
"0.63761735",
"0.6345415",
"0.63397336",
"0.623664",
"0.623165",
"0.6208433",
"0.61841863",
"0.6173743",
"0.6166029",
"0.6160189",
"0.6142218",
"0.6140274",
"0.6140274",
"0.6126571",
"0.60343826",
... | 0.7975764 | 0 |
This generates a salt from 24 random bytes from an OSspecific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation. | def F_Xd():
return jry1(Hy7s.urandom(24)).decode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kJBJ():\n return Hy7s.urandom(32)",
"def Vost(zNig):\n return jry1(rU7A(zNig)).decode()",
"def zB84(cW_1):\n return bytes([tuKI.choice(_AtR) for bGrB in range(cW_1)])",
"def F_Xd(w06F=12):\n return FMLT(Hy7s.urandom(16), min(max(w06F, 4), 31))",
"def kJBJ(YKHO):\n if not YKHO.id and (not... | [
"0.7874136",
"0.7557884",
"0.74225837",
"0.6882084",
"0.6810053",
"0.67966956",
"0.6780011",
"0.67797995",
"0.67797995",
"0.67470133",
"0.67338526",
"0.64085406",
"0.63891435",
"0.63775766",
"0.6352436",
"0.6305246",
"0.6251377",
"0.6206848",
"0.6161566",
"0.61504525",
"0.614... | 0.72840464 | 3 |
Get total Sale Price. | def qp17(YEnM):
gvx2 = 0.0
for ZfUD in YEnM.order_line:
gvx2 += ZfUD.price_subtotal
return gvx2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ax2g(YKHO):\n if YKHO.sold_on is not None:\n return 0.0\n return 5000.0 * YKHO.wheels",
"def ax2g(YKHO):\n if YKHO.sold_on is not None:\n return 0.0\n return 5000.0 * YKHO.wheels",
"def ax2g(YKHO):\n if YKHO.sold_on is not None:\n return 0.0\n return 5000.0 * YKHO.whe... | [
"0.7759613",
"0.7759613",
"0.7759613",
"0.7597612",
"0.7426395",
"0.7359071",
"0.7303887",
"0.7303887",
"0.72452945",
"0.72202235",
"0.7216077",
"0.71286404",
"0.7081923",
"0.7066995",
"0.7028116",
"0.7008929",
"0.6972375",
"0.6955347",
"0.69491374",
"0.69467616",
"0.694145",... | 0.64721996 | 55 |
Get a supplier of current line product. | def emSV(YEnM, zFiD):
Op4J = 0
hqpF = None
for ZfUD in YEnM.order_line:
Op4J += 1
if ZfUD.id == zFiD.id:
if len(ZfUD.product_id.seller_ids) > 0:
hqpF = ZfUD.product_id.seller_ids[0] and ZfUD.product_id.seller_ids[0].name.name or None
break
return h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NyYa(YKHO):\n return msfn.objects.get(id=YKHO.id).supplier_set.all()",
"def Zmkp(YKHO):\n if callable(YKHO.supplier):\n return YKHO.supplier()\n return None",
"def zQs1(YKHO):\n return YKHO._ServiceSupplier",
"def tXLz(YKHO, id=None):\n zFiD = []\n Fffx = id\n with T74E().star... | [
"0.64133656",
"0.63187885",
"0.6049192",
"0.58041596",
"0.5619052",
"0.5593138",
"0.55110204",
"0.5473946",
"0.5470719",
"0.5439386",
"0.5436191",
"0.54032654",
"0.53969985",
"0.53848344",
"0.53772223",
"0.5364426",
"0.5361436",
"0.5347504",
"0.53167635",
"0.53167635",
"0.531... | 0.7412126 | 0 |
Sets the display_name of this DocuViewareCertificate. | def qQNS(YKHO, qQNS):
YKHO._display_name = qQNS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQNS(YKHO, qQNS: str):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS)... | [
"0.76669747",
"0.75461864",
"0.75461864",
"0.75461864",
"0.75461864",
"0.75461864",
"0.75461864",
"0.7496336",
"0.6860233",
"0.6674837",
"0.66596836",
"0.6504475",
"0.6333702",
"0.6273019",
"0.6112418",
"0.56817055",
"0.55757827",
"0.55757827",
"0.55757827",
"0.55757827",
"0.... | 0.76356727 | 4 |
Sets the password of this DocuViewareCertificate. | def jTXt(YKHO, jTXt):
YKHO._password = jTXt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3s8(YKHO, jTXt):\n from kalon.auth import encrypt_password\n YKHO.document.password = encrypt_password(jTXt)",
"def G3s8(YKHO, jTXt):\n YKHO.password = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.PASS = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.PASSWORD = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO._ja... | [
"0.7717396",
"0.7409183",
"0.7385214",
"0.73271275",
"0.7299657",
"0.7247361",
"0.7197626",
"0.7187312",
"0.70104456",
"0.6977275",
"0.6967492",
"0.6904367",
"0.6895133",
"0.68860495",
"0.68661994",
"0.6856501",
"0.6831577",
"0.6824606",
"0.67926687",
"0.67926687",
"0.6781761... | 0.7262863 | 6 |
Sets the timestamp_server_uri of this DocuViewareCertificate. | def cCkG(YKHO, cCkG):
YKHO._timestamp_server_uri = cCkG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n5dX(YKHO, n5dX):\n YKHO._timestamp_server_user_password = n5dX",
"def LyAG(YKHO, N5z6):\n L3iJ.xmlURISetServer(YKHO._o, N5z6)",
"def z4om(YKHO, z4om):\n YKHO._client_x509_cert_url = z4om",
"def Ii_H(YKHO, Ii_H):\n YKHO._timestamp_server_user_name = Ii_H",
"def wGQ3(YKHO, E3oo):\n YKHO._... | [
"0.5899968",
"0.58443666",
"0.57003057",
"0.56740457",
"0.5608553",
"0.55392957",
"0.55392957",
"0.55392957",
"0.55392957",
"0.55392957",
"0.55392957",
"0.55392957",
"0.5527041",
"0.55142653",
"0.5496049",
"0.5496049",
"0.5308467",
"0.530545",
"0.529187",
"0.5173793",
"0.5159... | 0.81117606 | 0 |
Sets the timestamp_server_user_name of this DocuViewareCertificate. | def Ii_H(YKHO, Ii_H):
YKHO._timestamp_server_user_name = Ii_H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n5dX(YKHO, n5dX):\n YKHO._timestamp_server_user_password = n5dX",
"def cCkG(YKHO, cCkG):\n YKHO._timestamp_server_uri = cCkG",
"def fm73(YKHO, NtEF):\n NnkB.t_usernames[T6FA.get_ident()] = NtEF\n av0h(f't_usernames: {NnkB.t_usernames}')",
"def BaHi(YKHO, BaHi):\n YKHO._user_name = BaHi",
... | [
"0.70667785",
"0.61226904",
"0.6117793",
"0.6074107",
"0.558692",
"0.5516358",
"0.5507451",
"0.54474777",
"0.54211557",
"0.538357",
"0.5376872",
"0.534631",
"0.534631",
"0.534631",
"0.534631",
"0.534631",
"0.534631",
"0.534631",
"0.534631",
"0.534631",
"0.53356355",
"0.5329... | 0.8281697 | 0 |
Sets the timestamp_server_user_password of this DocuViewareCertificate. | def n5dX(YKHO, n5dX):
YKHO._timestamp_server_user_password = n5dX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ii_H(YKHO, Ii_H):\n YKHO._timestamp_server_user_name = Ii_H",
"def G3s8(YKHO, jTXt):\n from kalon.auth import encrypt_password\n YKHO.document.password = encrypt_password(jTXt)",
"def G3s8(YKHO, jTXt):\n YKHO.cloudserver.change_password(jTXt)",
"def IJvu(YKHO, BWXx):\n YKHO.PDFreactorConfi... | [
"0.6508013",
"0.62661606",
"0.6208464",
"0.6122581",
"0.595476",
"0.5936785",
"0.59284014",
"0.5900181",
"0.58858687",
"0.5847365",
"0.58363277",
"0.57710904",
"0.5769611",
"0.57676387",
"0.5742726",
"0.570235",
"0.5683581",
"0.56833714",
"0.56833714",
"0.56833714",
"0.568337... | 0.8525406 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, j59n):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, j59n):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Appends the given tag to the contents of this tag. | def SStx(YKHO, TZ9E):
YKHO.insert(len(YKHO.contents), TZ9E) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def McTr(YKHO, TZ9E):\n if TZ9E not in YKHO._tag:\n YKHO._tag.append(TZ9E)\n return YKHO",
"def McTr(YKHO, TZ9E):\n U7YL = YKHO.copy()\n U7YL.tags.add(TZ9E)\n return U7YL",
"def McTr(YKHO, TZ9E):\n YKHO.tags.append(TZ9E)",
"def McTr(YKHO, TZ9E: str) -> None:\n dJ1p = YKHO.get_tag_... | [
"0.70069104",
"0.6814596",
"0.6761336",
"0.6722421",
"0.62967855",
"0.6246681",
"0.6173467",
"0.5934135",
"0.59195983",
"0.58950955",
"0.587808",
"0.5853093",
"0.5808527",
"0.57641244",
"0.575272",
"0.5741883",
"0.572421",
"0.5709216",
"0.566572",
"0.56350446",
"0.56336284",
... | 0.855696 | 0 |
Returns the first item that matches the given criteria and appears after this Tag in the document. | def wDnc(YKHO, mWFP=None, o8Kj={}, l5Ny=None, **B2fa):
return YKHO._findOne(YKHO.findAllNext, mWFP, o8Kj, l5Ny, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I2pm(YKHO, **VKhi):\n return YKHO.parser.first(search_after=YKHO, **VKhi)",
"def mxM7(YKHO, **VKhi):\n return YKHO.parser.find(search_after=YKHO, **VKhi)",
"def DOuq(YKHO):\n if YKHO._last_item:\n if YKHO.items_count <= YKHO.page_limit and YKHO._items_count_after_last_item > 0:\n ... | [
"0.6296708",
"0.62482417",
"0.60613966",
"0.57909214",
"0.5694481",
"0.5646614",
"0.55756783",
"0.5358776",
"0.5325472",
"0.52817196",
"0.5257027",
"0.5241261",
"0.52172786",
"0.52167696",
"0.5201796",
"0.51998675",
"0.51245713",
"0.51127404",
"0.50674105",
"0.5050638",
"0.50... | 0.5045595 | 20 |
Returns the first item that matches the given criteria and appears before this Tag in the document. | def R8lt(YKHO, mWFP=None, o8Kj={}, l5Ny=None, **B2fa):
return YKHO._findOne(YKHO.findAllPrevious, mWFP, o8Kj, l5Ny, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h3Aq(YKHO):\n if YKHO._first_item:\n if YKHO.items_count <= YKHO.page_limit and YKHO._items_count_before_first_item > 0:\n return YKHO._first_item\n return None",
"def lsU5(YKHO, TZ9E):\n for CWnC, bGrB in YKHO.search(tag=TZ9E):\n return CWnC",
"def huPo(YKHO, filter, min=... | [
"0.713459",
"0.5871199",
"0.55292624",
"0.5518544",
"0.5507421",
"0.5507204",
"0.5501318",
"0.54121214",
"0.5406256",
"0.5401401",
"0.5382331",
"0.53574866",
"0.53268796",
"0.5321099",
"0.53132635",
"0.5289827",
"0.52808315",
"0.52805835",
"0.52720207",
"0.52692795",
"0.52243... | 0.4970831 | 47 |
Returns true iff this tag is not identical to the other tag, as defined in __eq__. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: 'Attribute') -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"d... | [
"0.8204736",
"0.8196523",
"0.81185234",
"0.80999553",
"0.80999553",
"0.80999553",
"0.8095061",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",
"0.8094383",... | 0.8108378 | 3 |
Initializes a map representation of this tag's attributes, if not already initialized. | def dRLq(YKHO):
if not getattr(YKHO, 'attrMap'):
YKHO.attrMap = {}
for H5ew, BWXx in YKHO.attrs:
YKHO.attrMap[H5ew] = BWXx
return YKHO.attrMap | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qvGC(YKHO):\n YKHO.attr = {'name': None, 'tags': [], 'openHours': None, 'type': None, 'parent': None, 'locationId': None, 'bannerAbbreviation': None, 'arcGisAbbreviation': None, 'geoLocation': None, 'geometry': None, 'summary': None, 'description': None, 'descriptionHtml': None, 'address': None, 'city': Non... | [
"0.7487391",
"0.6713859",
"0.66014045",
"0.64705884",
"0.6372751",
"0.6362322",
"0.6319063",
"0.6260433",
"0.62544364",
"0.6217591",
"0.6142135",
"0.6101045",
"0.6075883",
"0.60653085",
"0.604344",
"0.6025885",
"0.5991079",
"0.5953464",
"0.59456736",
"0.5913597",
"0.59078175"... | 0.7054326 | 1 |