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 |
|---|---|---|---|---|---|---|
Reverse a Cstyle null terminating string. | def oBI5(vIwR, B93H):
if vIwR == '\x00':
return B93H + '\x00'
else:
return oBI5(vIwR[1:], vIwR[0] + B93H) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d7Cg(vIwR):\n print(vIwR[::-1])",
"def gxEw(KCHu):\n return KCHu[::-1]",
"def rvFv(KCHu: str) -> str:\n return KCHu[::-1]",
"def o5Dc(vIwR):\n return vIwR[::-1]",
"def si9y(wEf2: str) -> str:\n return wEf2[::-1]",
"def Zke2(YKHO, KCHu):\n return KCHu[::-1]",
"def Zke2(YKHO, KCHu: ... | [
"0.66487736",
"0.662177",
"0.6612543",
"0.64424187",
"0.64237803",
"0.64042145",
"0.6395495",
"0.6393056",
"0.63713765",
"0.63648456",
"0.6317645",
"0.6313272",
"0.63097894",
"0.63042074",
"0.63041985",
"0.6286806",
"0.6281483",
"0.6220438",
"0.61902946",
"0.61690015",
"0.612... | 0.7086595 | 0 |
Return a string representation of this node. | def wHJl(YKHO):
return 'Node({!r})'.format(YKHO.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.node_info)",
"def vIwR(YKHO):\n l5Ny = 'node ' + SLdk.string(YKHO.identifier, default='unknown') + '\\n'\n for xC3W in dir(YKHO):\n if xC3W.startswith('_'):\n continue\n BWXx = getattr(YKHO, xC3W)\n if callable(BWXx):\n continu... | [
"0.866442",
"0.8411278",
"0.82023853",
"0.8177917",
"0.8089097",
"0.8085146",
"0.8081334",
"0.80419445",
"0.8022058",
"0.79948896",
"0.7989916",
"0.79477304",
"0.7945786",
"0.7921716",
"0.79207367",
"0.7912534",
"0.790981",
"0.790981",
"0.7897957",
"0.788813",
"0.7867478",
... | 0.7999661 | 9 |
Initialize this linked list and append the given items, if any. | def FIMM(YKHO, DumB=None):
YKHO.head = None
YKHO.tail = None
if DumB is not None:
for ZfUD in DumB:
YKHO.append(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, DumB=None):\n YKHO.head = None\n YKHO.tail = None\n YKHO.size = 0\n if DumB is not None:\n for ZfUD in DumB:\n YKHO.append(ZfUD)",
"def FIMM(YKHO, DumB=None):\n YKHO.head = None\n YKHO.tail = None\n YKHO.count = 0\n if DumB is not None:\n for ZfUD i... | [
"0.79775876",
"0.7850591",
"0.7778072",
"0.7668775",
"0.7421819",
"0.73603964",
"0.7189091",
"0.7189091",
"0.7010707",
"0.6965806",
"0.6918234",
"0.6903725",
"0.6894673",
"0.68607444",
"0.6835713",
"0.6835713",
"0.68281037",
"0.6821191",
"0.6821191",
"0.6821191",
"0.6797653",... | 0.8001606 | 1 |
Return a formatted string representation of this linked list. | def zAg0(YKHO):
DumB = ['({!r})'.format(ZfUD) for ZfUD in YKHO.items()]
return '[{}]'.format(' -> '.join(DumB)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n if YKHO.__head is None:\n return ''\n nPrm = []\n jvSB = YKHO.__head\n while jvSB is not None:\n nPrm.append(jvSB.data)\n jvSB = jvSB.next_node\n return '%s' % '\\n'.join((str(YRbF) for YRbF in nPrm))",
"def zAg0(YKHO):\n jbXL = YKHO.__head\n Oz57 = []\... | [
"0.83919096",
"0.82545394",
"0.81881714",
"0.8176865",
"0.811693",
"0.80873454",
"0.80658984",
"0.80566853",
"0.80529404",
"0.8025158",
"0.8025091",
"0.8024259",
"0.80049115",
"0.7983782",
"0.7932365",
"0.7932365",
"0.79019356",
"0.7898837",
"0.78814644",
"0.7861164",
"0.7851... | 0.0 | -1 |
Return a boolean indicating whether this linked list is empty. | def FBfn(YKHO):
return YKHO.head is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO) -> bool:\n return YKHO._head == None",
"def FBfn(YKHO):\n if YKHO.head is not None:\n return True\n return False",
"def A4KR(YKHO):\n if YKHO.head.next:\n return False\n else:\n return True",
"def FBfn(YKHO):\n if YKHO.list.length() == 0:\n return ... | [
"0.8633306",
"0.85295784",
"0.8506754",
"0.84962046",
"0.84633034",
"0.8448254",
"0.8446734",
"0.84454685",
"0.84454685",
"0.84452486",
"0.84437764",
"0.84437764",
"0.84401727",
"0.84377134",
"0.8436948",
"0.84299946",
"0.8429653",
"0.84010035",
"0.83955",
"0.83858734",
"0.83... | 0.0 | -1 |
Return the length of this linked list by traversing its nodes. | def u54L(YKHO):
Q6kx = YKHO.head
UHFx = 0
while Q6kx is not None:
UHFx += 1
Q6kx = Q6kx.next
return UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n return YKHO.size",
"def u54L(YKHO):\n twMG = 0\n jvSB = YKHO.head\n while jvSB is not None:\n jvSB = jvSB.next\n twMG += 1\n return twMG",
"def szAg(YKHO):\n jvSB = YKHO.head_node\n u54L = 0\n while jvSB != None:\n u54L += 1\n jvSB = jvSB.ne... | [
"0.832572",
"0.8315789",
"0.8246517",
"0.82012945",
"0.8087627",
"0.8024987",
"0.80149776",
"0.7969449",
"0.7955356",
"0.78871644",
"0.7876437",
"0.78527945",
"0.784829",
"0.78197056",
"0.7819426",
"0.7794464",
"0.7793936",
"0.77822036",
"0.7776281",
"0.77682394",
"0.7751076"... | 0.7767018 | 20 |
Returns True iff the AST node is a constant value | def avzC(Q6kx: ast.AST) -> bool:
if HwRy.version_info >= (3, 8):
if isinstance(Q6kx, jZ4I.Constant):
return True
if isinstance(Q6kx, (jZ4I.Num, jZ4I.Str, jZ4I.NameConstant)):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ac9L(YKHO):\n pass",
"def avzC(YKHO):\n return YKHO.is_const",
"def avzC(YKHO):\n return YKHO._is_constant",
"def avzC(YKHO):\n return False",
"def fAGM(VN2L):\n if isinstance(VN2L, (fnfy.expr.IntImm, fnfy.expr.FloatImm, fnfy.expr.UIntImm)):\n return True\n return False",
"de... | [
"0.7598541",
"0.75817287",
"0.73801947",
"0.7307477",
"0.72301173",
"0.71798193",
"0.7172448",
"0.7092165",
"0.70762384",
"0.70762384",
"0.7072111",
"0.7069714",
"0.7018439",
"0.69815385",
"0.69184005",
"0.6876573",
"0.6870792",
"0.67976767",
"0.6796981",
"0.6778744",
"0.6753... | 0.8014298 | 0 |
Unparses an AST node to a Python string, chomping trailing newline. | def fvgm(Q6kx):
if Q6kx is None:
return None
if isinstance(Q6kx, (jZ4I.AST, list)):
Ty9i = kJm3()
NS4Y(Q6kx, file=Ty9i)
return Ty9i.getvalue().strip()
if isinstance(Q6kx, FCE9.Basic):
return FCE9.printing.pycode(Q6kx)
if isinstance(Q6kx, (mSrU.Number, XTiz.bool_))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fvgm(J_Es: typed_ast.ast3.AST, *qIxc, **B2fa) -> str:\n assert isinstance(J_Es, JvXZ.ast3.AST), type(J_Es)\n wOb_ = xDSY.StringIO()\n fENR(J_Es, *qIxc, file=wOb_, **B2fa)\n return wOb_.getvalue()",
"def fvgm(Q6kx, c31X=None, huWp=True):\n del c31X\n if not isinstance(Q6kx, (list, tuple)):\n... | [
"0.6946145",
"0.6474901",
"0.6420098",
"0.6200439",
"0.6161742",
"0.60529876",
"0.5899597",
"0.58973217",
"0.5757383",
"0.5755047",
"0.5733621",
"0.5719415",
"0.5677183",
"0.5662696",
"0.5587647",
"0.55299",
"0.5525356",
"0.5524252",
"0.5522212",
"0.55052114",
"0.54960823",
... | 0.7222564 | 0 |
Converts a name and subset to a Python AST Subscript object. | def vhXY(dw6r, range):
return jZ4I.parse(f'{dw6r}[{range}]').body[0].value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHHv(YKHO, Q6kx):\n if isinstance(Q6kx.slice, jZ4I.Tuple):\n YKHO.visit(Q6kx.value)\n for ATUZ in Q6kx.slice.elts:\n YKHO.visit(ATUZ)\n LIAQ = None\n else:\n LIAQ = set()\n YKHO.visit(Q6kx.slice)\n kLKd = YKHO.visit(Q6kx.value)\n for vbQv in kLK... | [
"0.6903706",
"0.6770709",
"0.6767551",
"0.66144365",
"0.6370923",
"0.6301891",
"0.6293481",
"0.624468",
"0.6206241",
"0.6063878",
"0.5990235",
"0.5679238",
"0.5621967",
"0.5607407",
"0.56064457",
"0.55295765",
"0.5506004",
"0.5480292",
"0.5331484",
"0.52881217",
"0.5220445",
... | 0.5824541 | 11 |
Calculates R squared based on predicted and true data. | def wHBY(CjQX: np.array, fy0J: np.array) -> float:
Mkmy = (CjQX - fy0J) ** 2 / oyIN.sum((CjQX - oyIN.mean(CjQX)) ** 2)
return 1 - oyIN.sum(Mkmy, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nEsq(Y8eF, bdkc):\n Y8eF = Y8eF.reshape(Y8eF.shape[0], 1)\n bdkc = bdkc.reshape(bdkc.shape[0], 1)\n X3M_ = oyIN.mean(Y8eF, axis=0)\n DM6z = oyIN.sum((Y8eF - X3M_) ** 2)\n gu4d = oyIN.sum((bdkc - Y8eF) ** 2)\n L9xv = 1 - gu4d / DM6z\n return L9xv",
"def whQk(Y8eF, aMgO, THQL=None):\n i... | [
"0.7944378",
"0.76275814",
"0.7603551",
"0.7537088",
"0.7385327",
"0.7348355",
"0.7328134",
"0.72890157",
"0.7275677",
"0.7266757",
"0.7235701",
"0.72356987",
"0.7222389",
"0.7222389",
"0.719486",
"0.7166668",
"0.71611834",
"0.70757496",
"0.701548",
"0.69779974",
"0.6977614",... | 0.0 | -1 |
Calculates cost function for ordinary least squares or ridge regression | def qzBL(LVAh: np.array, WKvO: np.array, UqYS: np.array, ykvB: str='ols', pEuX: float=1) -> float:
if ykvB == 'ols':
return 1 / 2 * oyIN.sum((LVAh - WKvO @ UqYS) ** 2)
elif ykvB == 'ridge':
Mkmy = 1 / 2 * oyIN.sum((LVAh - WKvO @ UqYS) ** 2) + 1 / 2 * pEuX * oyIN.sum(UqYS ** 2)
return Mkm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vy1K(YKHO, q7In, EcVT, LVAh):\n MKlR = YKHO.sigmoid(oyIN.dot(EcVT, q7In))\n return -oyIN.sum(LVAh * oyIN.log(MKlR) + (1 - LVAh) * oyIN.log(1 - MKlR))",
"def lJHd(NArs, WKvO, LVAh, F9tP):\n exwG = len(WKvO)\n yGTL, q7In, Nq1b, Z9rn, KMvS, RHJb = NArs\n for YRbF in Ni9Y(4):\n if F9tP[YRbF... | [
"0.72646433",
"0.72550637",
"0.714187",
"0.71241117",
"0.7093208",
"0.7068912",
"0.70426583",
"0.703762",
"0.69857824",
"0.6981157",
"0.69375616",
"0.69250214",
"0.6879611",
"0.6879611",
"0.687132",
"0.6851391",
"0.68470925",
"0.684616",
"0.6836043",
"0.6808148",
"0.68058956"... | 0.70995075 | 4 |
Converts a sparse tensor into a dense tensor and returns it. Arguments | def NG8_(YKHO, vhpA):
if isinstance(vhpA, ZylS.SparseTensor):
return ZylS.sparse_tensor_to_dense(vhpA)
else:
return vhpA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1eO(FXoG, SWgO=ZylS.int64):\n _0VL = ZylS.where(ZylS.not_equal(FXoG, ZylS.constant(0, FXoG.dtype)))\n hkxX = ZylS.gather_nd(FXoG, _0VL)\n ROpF = ZylS.shape(FXoG, out_type=SWgO)\n return ZylS.SparseTensor(_0VL, hkxX, ROpF)",
"def R1eO(oP0T):\n yDqo = oP0T.dtype\n begE = oP0T.device\n Xbd... | [
"0.7734852",
"0.76942086",
"0.76866126",
"0.7608635",
"0.7436868",
"0.739398",
"0.73853534",
"0.73583645",
"0.7179692",
"0.71506476",
"0.7103055",
"0.68973386",
"0.6886584",
"0.679655",
"0.6762663",
"0.6756957",
"0.6754743",
"0.67293394",
"0.67293394",
"0.67293394",
"0.672933... | 0.78103936 | 0 |
Calculate the Intersection over Union (IoU) of two bounding boxes. | def plrc(HIlM, c8bw):
assert HIlM['x1'] < HIlM['x2']
assert HIlM['y1'] < HIlM['y2']
assert c8bw['x1'] < c8bw['x2']
assert c8bw['y1'] < c8bw['y2']
sA0R = int(max(HIlM['x1'], c8bw['x1']))
YijY = int(max(HIlM['y1'], c8bw['y1']))
Kphd = int(min(HIlM['x2'], c8bw['x2']))
sIW6 = int(min(HIlM['y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8gd(MErA, ZnGJ):\n ZFgS = max(0, min(MErA.right, ZnGJ.right) - max(MErA.left, ZnGJ.left))\n rfRS = max(0, min(MErA.bottom, ZnGJ.bottom) - max(MErA.top, ZnGJ.top))\n iQin = ZFgS * rfRS\n bzU2 = (MErA.right - MErA.left) * (MErA.bottom - MErA.top)\n Eq1k = (ZnGJ.right - ZnGJ.left) * (ZnGJ.bottom -... | [
"0.8567377",
"0.84458977",
"0.84361875",
"0.8373177",
"0.8345505",
"0.825502",
"0.8207689",
"0.8161866",
"0.8150562",
"0.8126437",
"0.81243724",
"0.8118916",
"0.8118916",
"0.8106401",
"0.80822796",
"0.8045387",
"0.80350775",
"0.8025099",
"0.8010856",
"0.800743",
"0.7993788",
... | 0.81355745 | 9 |
Initialises a jail square | def FIMM(YKHO, mWFP, Rci7):
super().__init__(mWFP, Rci7)
YKHO.prisoners = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO) -> None:\n YKHO.start = PSrQ.glider\n YKHO.rounds = 5000\n YKHO.animate: bool = False\n YKHO.width: int = 800\n YKHO.height: int = 800\n YKHO.bg_color = '#e6d19a'\n YKHO.cell_color = '#580f55'\n YKHO.cell_size: int = 10\n YKHO.speed: int = 1",
"def FIMM(YKHO):\n l5JD ... | [
"0.64773905",
"0.6442076",
"0.6363881",
"0.6302503",
"0.62680995",
"0.62676024",
"0.6255796",
"0.6223335",
"0.61896324",
"0.6110286",
"0.60851353",
"0.6070834",
"0.60382056",
"0.6037402",
"0.6021126",
"0.6012421",
"0.5997764",
"0.59963936",
"0.5993236",
"0.5993236",
"0.599265... | 0.56882846 | 80 |
Get the location of the jail | def hbd3(YKHO):
return YKHO.location | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8mz():\n try:\n s7If = ucDU.objects.latest('id')\n except ucDU.DoesNotExist:\n s7If = None\n return s7If and s7If.jc_path",
"def Rci7(YKHO):\n XP5J = Hy7s.path.abspath(xAKo)\n KXdC = Hy7s.path.split(XP5J)\n return KXdC",
"def C8EO(YKHO) -> str:\n return qe4Y.get(YKHO, 'a... | [
"0.660979",
"0.6471599",
"0.63262707",
"0.62841475",
"0.6223656",
"0.6201651",
"0.61597675",
"0.61507154",
"0.6142288",
"0.61261094",
"0.61119515",
"0.61119515",
"0.61119515",
"0.61119515",
"0.61119515",
"0.61119515",
"0.61119515",
"0.61119515",
"0.61119515",
"0.61119515",
"0... | 0.59220123 | 95 |
Runs map_fn as a (static) for loop when possible. This function rewrites the map_fn as an explicit unstack input > for loop over function calls > stack result combination. This allows our graphs to be acyclic when the batch size is static. | def akns(FYKK, F6AI, yDqo=None, KWwB=32, JLgO=True):
if isinstance(F6AI, list):
for LihS in F6AI:
if not isinstance(LihS, ZylS.Tensor):
raise ValueError('`elems` must be a Tensor or list of Tensors.')
FuKM = [LihS.shape.as_list() for LihS in F6AI]
for qm2a in FuKM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zbTO(GPtr):\n NAlt = int(GPtr['algorithm'].get('num_cores', 1))\n if NAlt > 1:\n dBuj = laXl.Pool(NAlt)\n return dBuj.map\n else:\n return map",
"def M_t2(eHNT, WKvO, yDqo=None, KWwB=10):\n if yDqo is None:\n yDqo = WKvO.dtype\n exwG = ZylS.shape(WKvO)[0]\n udYA ... | [
"0.6251778",
"0.62147015",
"0.62132555",
"0.61890465",
"0.6062155",
"0.6028257",
"0.6011091",
"0.59754777",
"0.5960051",
"0.5911619",
"0.590571",
"0.5905117",
"0.59008324",
"0.58815545",
"0.5865532",
"0.5793278",
"0.5793278",
"0.57808703",
"0.5769842",
"0.5744875",
"0.5732509... | 0.62803113 | 0 |
Override to determine the current user from, e.g., a cookie. | def W84Y(YKHO):
if not hasattr(YKHO, '_current_user'):
DpWn = str(YKHO.conf.session.auth_cookie)
n10L = YKHO.get_secure_cookie(DpWn)
if not n10L:
YKHO._current_user = None
else:
YKHO._current_user = YKHO.models['User'].find_byid(int(n10L))
return YKHO._cur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W84Y(YKHO):\n return YKHO.get_secure_cookie('username')",
"def W84Y(YKHO):\n return YKHO.get_secure_cookie('auth')",
"def W84Y(YKHO):\n pass",
"def c5ow(YKHO):\n c5ow = YKHO.get_secure_cookie('user')\n if isinstance(c5ow, bytes):\n c5ow = c5ow.decode('utf-8')\n return c5ow",
"d... | [
"0.83748",
"0.83650947",
"0.8231281",
"0.8178596",
"0.8154711",
"0.814594",
"0.80849326",
"0.807603",
"0.8068367",
"0.803007",
"0.79990953",
"0.7992751",
"0.79919225",
"0.7941935",
"0.7894781",
"0.7877326",
"0.785681",
"0.7836898",
"0.78352034",
"0.7805452",
"0.77899456",
"... | 0.7910698 | 14 |
return something that can be put in front of the static filename E.g. if filename is '/static/image.png' and you return '//cloudfront.com' then final URL presented in the template becomes '//cloudfront.com/static/image.png' | def UcLN(YKHO):
return YKHO.application.settings.get('cdn_prefix') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b5Tw(YKHO, Ux0P):\n YKHO.require_setting('static_url')\n return YKHO.application.settings['static_url'] + Ux0P",
"def b5Tw(YKHO, Ux0P):\n YKHO.require_setting('static_url')\n return YKHO.application.settings['static_url'] + Ux0P",
"def Ux0P(YKHO):\n if YKHO.uri.lower().startswith('file:///')... | [
"0.700249",
"0.700249",
"0.6991253",
"0.67366415",
"0.6656718",
"0.6631598",
"0.66076577",
"0.6575061",
"0.6575061",
"0.65705407",
"0.64654106",
"0.64479846",
"0.6427171",
"0.63981265",
"0.6397592",
"0.63673127",
"0.6345127",
"0.63394135",
"0.63264537",
"0.6287414",
"0.627408... | 0.0 | -1 |
Reset the Solr index and prepare a C{SolrClient}. The Solr index is cleared before a test runs, instead of after it | def PEX4(YKHO, wd5Z):
bD7m = 'http://localhost:8080/solr/'
YKHO._resetIndex(bD7m)
return p_5i(bD7m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W1oe(YKHO, _6L3):\n bD7m = TDhU(_6L3, '/solr/update?wt=json')\n MOPg = {'User-Agent': 'FluidDB test suite', 'Content-Type': 'text/xml'}\n TBsA = '<delete><query>*:*</query></delete>'\n geh0, hGN5 = yWra().request(bD7m, 'POST', TBsA, MOPg)\n if geh0.status != 200:\n raise RuntimeError(\"Co... | [
"0.7723989",
"0.750285",
"0.70448905",
"0.6724488",
"0.6699103",
"0.6582957",
"0.6439196",
"0.64186335",
"0.63992053",
"0.63553375",
"0.61816764",
"0.61805964",
"0.6164691",
"0.61442065",
"0.61346424",
"0.6100196",
"0.6025405",
"0.59859127",
"0.59682155",
"0.5930493",
"0.5918... | 0.62268585 | 10 |
Defines the iteration of the object. Each iteration yields a single content item. | def Vs4Q(YKHO) -> jd6F[_rFq, ImMB, ImMB]:
for IVuo in vars(YKHO).values():
yield from IVuo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n for uOe2 in YKHO.content:\n for ZfUD in uOe2:\n yield ZfUD",
"def X73w(YKHO):\n pass",
"def Vs4Q(YKHO):\n for ZfUD in YKHO.results:\n yield ZfUD",
"def wa96(YKHO):\n for B2Dn in YKHO._IterPage():\n for ZfUD in YKHO._IterItemsOnPage(B2Dn):\n ... | [
"0.7212933",
"0.7201021",
"0.7163171",
"0.7159819",
"0.71109796",
"0.70952207",
"0.70915306",
"0.70760316",
"0.70760316",
"0.70760316",
"0.70760316",
"0.7030695",
"0.7012875",
"0.69963366",
"0.6927474",
"0.6926568",
"0.6923225",
"0.685502",
"0.68348545",
"0.68348545",
"0.6834... | 0.7485508 | 0 |
Validate user exists and password is correct. Return user if valid, else return False | def NLCy(Emd4, NtEF, zN5h):
P6bq = mv1M.query.filter_by(username=NtEF).first()
if P6bq and B8ni.check_password_hash(P6bq.password, zN5h):
return P6bq
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gvth(CBIr, jTXt):\n return CBIr and CBIr.check_password(jTXt)",
"def OOBF(YKHO, NtEF, jTXt):\n NtEF = NtEF.lower()\n CBIr = YKHO.users.find_one({'username': NtEF})\n if CBIr is not None:\n Go9N = CBIr['password']\n if B8ni.hashpw(jTXt.encode('utf-8'), Go9N) == Go9N:\n ret... | [
"0.82521355",
"0.8024208",
"0.7892142",
"0.7875909",
"0.7848702",
"0.7825212",
"0.78008306",
"0.77791226",
"0.7770215",
"0.77549577",
"0.77459365",
"0.7742858",
"0.7694577",
"0.7674205",
"0.75984085",
"0.75877976",
"0.7566423",
"0.7515883",
"0.7512028",
"0.74591607",
"0.74521... | 0.7280726 | 39 |
Gets 4 rainbows and sends them as an argument to the move_diagonally function | def OSuQ():
vGkF, JOHX, imX8, WtjN, U76i, J7jh, nFGu, nkHj, PEsg, hRpt, bExf, JZRl, yByG, NrrL, VIWK = oLWM()
ONd_ = [vGkF, JOHX, imX8, WtjN, U76i, J7jh, nFGu, nkHj, PEsg, hRpt, bExf, JZRl, yByG, NrrL, VIWK]
ukZL(ONd_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eksz(YKHO):\n for YRbF in range(YKHO.__stripe.numPixels()):\n YKHO.__stripe.setPixelColor(YRbF, YKHO.__wheel(int(YRbF * 256 / YKHO.__stripe.numPixels()) + YKHO.__color_iteration & i31S))\n return True",
"def bfSE(sJDd, paSp):\n lqWp.smooth_rainbow(wait_time=sJDd, steps=paSp)",
"def Xor4(YKH... | [
"0.6028833",
"0.60210127",
"0.5946741",
"0.5888716",
"0.5878582",
"0.5771229",
"0.5759322",
"0.5752295",
"0.57396066",
"0.57275045",
"0.57221013",
"0.5695008",
"0.5695008",
"0.5695008",
"0.5688263",
"0.56860626",
"0.5672525",
"0.5664112",
"0.5664112",
"0.5664112",
"0.5664112"... | 0.78123116 | 0 |
Validacion de numeros primos Se considera numero primo aquel que solo es divisible de manera entera entre 1 y el mismo | def T1qg(YKHO, mLGw):
oCcr = []
for YRbF in range(1, mLGw + 1):
hFiK = mLGw / YRbF
if isinstance(hFiK, float):
if hFiK.is_integer():
hFiK = int(hFiK)
if isinstance(hFiK, int):
oCcr.append(YRbF)
'Si este numero solo tiene dos divisores es consid... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_s9(mLGw):\n for exwG in range(2, mLGw):\n if mLGw % exwG == 0:\n return False\n return True",
"def U2oH(YKHO):\n YKHO.assertFalse(T1qg(8))",
"def nBIY(BWXx, mLGw):\n return BWXx % mLGw == 0",
"def aaGX():\n exwG = int(input('Ingrese un numero del 1 a 9: '))\n while e... | [
"0.6964954",
"0.6755148",
"0.67403597",
"0.6721532",
"0.66936177",
"0.66088355",
"0.6566838",
"0.65657973",
"0.6560264",
"0.65509784",
"0.6533849",
"0.6519124",
"0.65129954",
"0.6511189",
"0.6497308",
"0.6491081",
"0.6481192",
"0.64750874",
"0.6474397",
"0.6460561",
"0.645414... | 0.66458744 | 5 |
Calculate the distance between two strings. | def Ayfi(j93S, Nqp_):
SppC = [[0 for YRbF in range(len(Nqp_) + 1)] for r845 in range(len(j93S) + 1)]
for YRbF in range(len(j93S) + 1):
SppC[YRbF][0] = YRbF
for r845 in range(len(Nqp_) + 1):
SppC[0][r845] = r845
for YRbF in range(len(j93S) + 1):
for r845 in range(1, len(Nqp_) + 1)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AcQ8(YKHO, cntZ: str, CsFy: str) -> int:\n return sum([1 for d6pt in range(min(len(cntZ), len(CsFy))) if cntZ[d6pt] != CsFy[d6pt]]) + abs(len(cntZ) - len(CsFy))",
"def OVDL(j93S, Nqp_):\n if len(j93S) != len(Nqp_):\n return 1\n Kt31 = 0\n for dg7v, iYf1 in zip(j93S, Nqp_):\n if dg7v... | [
"0.85293764",
"0.8400287",
"0.83166224",
"0.83027595",
"0.83027595",
"0.8123957",
"0.805426",
"0.8020871",
"0.7985019",
"0.77819204",
"0.77410656",
"0.77011544",
"0.7621946",
"0.7598363",
"0.7598363",
"0.75589186",
"0.7544473",
"0.7526798",
"0.751427",
"0.7511971",
"0.7510991... | 0.0 | -1 |
Gets the event title | def Upwb(YKHO):
if not YKHO.customer:
return QRWf.STR_AVAILABLE
return QRWf.STR_OCCUPIED + ': ' + YKHO.customer.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Upwb(YKHO):\n A97Q = YKHO._request('event.getInfo', True)\n return aP4s(A97Q, 'title')",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO.get_string('getTitle', [])",
"def Upwb(YKHO):\n return YKHO.get_string('getTitle', []... | [
"0.90486735",
"0.78392696",
"0.78392696",
"0.7795371",
"0.7795371",
"0.77923083",
"0.77703977",
"0.77703977",
"0.77703977",
"0.7766287",
"0.77617234",
"0.77322257",
"0.772171",
"0.7717509",
"0.7717509",
"0.7692038",
"0.76905257",
"0.76905257",
"0.7685374",
"0.7685374",
"0.768... | 0.0 | -1 |
Converts the output of skimage.measure.regionprops to a nicely formatted pandas DataFrame. | def u4PD(ZHfW, wIfk=1, Nxt3=None):
if oyIN.max(ZHfW) == 0:
raise ValueError('no objects found in image.')
h5z5 = ('area', 'eccentricity', 'solidity', 'mean_intensity')
if Nxt3 is None:
J9Sm = h5z5[:-3]
else:
J9Sm = h5z5
lhy8 = frG3.measure.regionprops(ZHfW, intensity_image=Nx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YOAc(Q7wa):\n MNpZ = qgyP(Q7wa)\n PSnA = []\n for YRbF, bGrB in enumerate(Q7wa):\n PSnA += [[]]\n for r845 in range(len(MNpZ)):\n PSnA[YRbF] += [getattr(Q7wa[YRbF], MNpZ[r845])]\n return rLdf.DataFrame(PSnA, columns=MNpZ)",
"def u4PD(ZHfW, wIfk=1, Nxt3=None):\n if oyIN... | [
"0.6980806",
"0.6090692",
"0.6084122",
"0.5924753",
"0.58719563",
"0.586946",
"0.58500546",
"0.5656555",
"0.5531557",
"0.5531557",
"0.5500585",
"0.5500585",
"0.548713",
"0.5479745",
"0.54717666",
"0.5436334",
"0.5432993",
"0.54239774",
"0.5412156",
"0.5396769",
"0.53956455",
... | 0.6078844 | 3 |
Computes the empirical cumulative distribution function (ECDF) of a given set of 1D data. | def Zt0j(nPrm):
return (oyIN.sort(nPrm), oyIN.arange(len(nPrm)) / len(nPrm)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zt0j(nPrm):\n nPrm.sort()\n InLe = [1.0 / len(nPrm)] * len(nPrm)\n NhCF = oyIN.cumsum(InLe)\n hlel = oyIN.array([nPrm, NhCF])\n return hlel.T",
"def Zt0j(EcVT):\n Zt0j = y22l.distributions.ECDF(EcVT)\n return Zt0j(EcVT)",
"def iHVL(ezWE, bjj8, MC59, Pcvo=None):\n s0zx = oyIN.max(ezW... | [
"0.80362433",
"0.78180486",
"0.7567694",
"0.74484074",
"0.7390288",
"0.7357338",
"0.73382485",
"0.7287717",
"0.7282971",
"0.7282971",
"0.7257689",
"0.72311777",
"0.72144634",
"0.72108537",
"0.72084105",
"0.7170219",
"0.71528673",
"0.7138805",
"0.7138805",
"0.7138805",
"0.7138... | 0.7309514 | 7 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(TTm1, YKHO).__init__(*qIxc, **c_sp)
if YKHO.header is None:
YKHO.header = kKAJ.msg.Header()
if YKHO.bb_ary is None:
YKHO.bb_ary = UWMq.msg.BoundingBoxArray()
if YKHO.obj_ary is None:
YKHO.obj_ar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8165841",
"0.7719984",
"0.7719984",
"0.7652579",
"0.75723845",
"0.75442773",
"0.7485476",
"0.74710065",
"0.7458108",
"0.7446829",
"0.744584",
"0.7433617",
"0.74152017",
"0.7408084",
"0.7391839",
"0.7375146",
"0.73632765",
"0.7326098",
"0.732388",
"0.732388",
"0.732388",
... | 0.69524795 | 77 |
Return list of all module names to import, from sys.path. | def rxnO():
TK2h = []
for pmON in PhFI.path:
if pmON == '':
pmON = EeDH.curdir
if EeDH.path.isdir(pmON):
TK2h.extend(nfi0(pmON))
elif EeDH.path.splitext(pmON)[1].lower() == '.zip' and EeDH.path.exists(pmON):
TK2h.extend(HsaX(pmON))
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D8go():\n return j9vv(include_prefix=True)",
"def eesU(pmON):\n s2ni = Hy7s.path.expanduser(pmON)\n s2ni = Hy7s.path.realpath(Hy7s.path.abspath(s2ni))\n if not Hy7s.path.isdir(s2ni):\n s2ni = Hy7s.path.dirname(s2ni)\n KZ52 = SC2F(u'{0}/*.py'.format(s2ni))\n s0oP('resolved:', s2ni)\n ... | [
"0.80157405",
"0.7603763",
"0.759429",
"0.754181",
"0.74902517",
"0.7398882",
"0.73530626",
"0.7311463",
"0.73034984",
"0.7268597",
"0.7176349",
"0.7115277",
"0.70800257",
"0.7054883",
"0.6979405",
"0.6978614",
"0.69330627",
"0.6929374",
"0.6892679",
"0.68915635",
"0.68894345... | 0.71061254 | 12 |
Plot the average by date of year. Good for looking seasonal pattern. | def FSwQ(HXog, Jdcv, aNZO, kw76=True, rKSe=True, waEm='max', qfpW='blue', Rw5g='solid', ZSG5=2, UXqs=None, vgXP=182, JmFt=True, yuVB=95):
QrM1.rcParams.update({'font.size': 14})
jQ3Z, qoR8 = IOhV(HXog, cols=[Jdcv], roll=rKSe, agg=waEm, offset=vgXP)
if UXqs == None:
UXqs = Jdcv
if kw76:
u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wyLi(nPrm):\n jQ3Z = nPrm.groupby('season')['arrests'].mean()\n uuEx.catplot(x='season', y='arrests', data=jQ3Z.reset_index(), kind='bar')\n QrM1.ylabel('average arrests')\n QrM1.title('Average Arrests per Game each Season')\n QrM1.savefig('yearly_average.png', bbox_inches='tight')",
"def qqDt... | [
"0.7594294",
"0.676694",
"0.6758516",
"0.6727959",
"0.6686241",
"0.65645283",
"0.64966863",
"0.64721125",
"0.6446609",
"0.6418807",
"0.6418276",
"0.64156634",
"0.6375178",
"0.6336102",
"0.6319584",
"0.62818646",
"0.6276872",
"0.62668264",
"0.6252147",
"0.6216642",
"0.62012714... | 0.69954926 | 1 |
Reduce the pseudogroup to nothing. Return the number of orbits. | def Pusg(YKHO):
UHFx = 0
while YKHO.pairings != None:
UHFx += YKHO.simplify()
return UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HR8B(YKHO):\n OuGt = 0\n for Z9rn in AdfU:\n if isinstance(Z9rn, (XHtG,)):\n OuGt += 1\n return OuGt",
"def BrDX(YKHO):\n BrDX = 0\n for H5ew in YKHO.map:\n G1Hx = YKHO.map.get(H5ew)\n exwG = 0\n while G1Hx:\n exwG += 1\n G1Hx = YKHO... | [
"0.6216385",
"0.6163263",
"0.5815306",
"0.5791153",
"0.5583054",
"0.55470777",
"0.5533998",
"0.5519182",
"0.53837657",
"0.5356412",
"0.5351632",
"0.5335604",
"0.5316503",
"0.5256801",
"0.5210381",
"0.5205895",
"0.51964957",
"0.51923007",
"0.51746494",
"0.51726186",
"0.5165449... | 0.5223837 | 14 |
An empty request should return a 400. | def hYO7(YKHO):
geh0 = YKHO.client.post('/account/api/password/change/', content_type='application/json', data=qQXR.dumps({}), HTTP_AUTHORIZATION=f'Bearer {str(T9Q2.for_user(YKHO.user))}')
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ef9():\n UAju = {'_request': ['bad request']}\n return P1dF(400, UAju)",
"def jnh5(YKHO):\n geh0 = YKHO.client.post(YKHO.url, content_type='application/json')\n YKHO.assertEqual(geh0.status_code, 400)",
"def C_Ct(YKHO, xGqu):\n geh0 = YKHO.client.get(YKHO.url, xGqu, **YKHO.headers)\n ass... | [
"0.7544433",
"0.7361159",
"0.7331803",
"0.71792006",
"0.71706",
"0.7149259",
"0.70878106",
"0.7014766",
"0.7012709",
"0.7003724",
"0.6988201",
"0.6963552",
"0.69588",
"0.6955238",
"0.69496477",
"0.69491225",
"0.6940938",
"0.69345754",
"0.69345754",
"0.6924635",
"0.6908647",
... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
T62R = sum(jQ3Z['Trip Duration'])
print('Total travel time in minutes:', T62R)
Zwp9 = jQ3Z['Trip Duration'].mean()
print('Mean travel time:', Zwp9, ' Minutes')
print('\nThis took %s seconds.' % (ITS7.time() - SWox))... | {
"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.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
This property provides the name of the Test. | def mWFP(YKHO) -> str:
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MpXb(YKHO):\n return YKHO._test_name",
"def mWFP(YKHO):\n return 'test'",
"def Pngz(YKHO):\n return YKHO.name.name.split('.')[-1]",
"def mWFP(YKHO):\n return 'Unnamed Test Case'",
"def Yx4E(YKHO):\n mWFP = YKHO._testMethodName.split('test', 1)[1]\n return ' '.join(ZbWC.sub('(?!^)([A-Z... | [
"0.9259251",
"0.8623803",
"0.8495088",
"0.8366044",
"0.8347685",
"0.8302652",
"0.824811",
"0.8221234",
"0.80836886",
"0.7735037",
"0.7699593",
"0.76935345",
"0.7602871",
"0.75691706",
"0.75610167",
"0.74567676",
"0.73660034",
"0.72476465",
"0.7244733",
"0.7219681",
"0.7199018... | 0.0 | -1 |
This property provides the TestType of the Test. | def type(YKHO) -> K01q:
return YKHO._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LnKY(YKHO) -> str:\n return qe4Y.get(YKHO, 'test_type')",
"def LnKY(YKHO, LnKY):\n if LnKY is not None and len(LnKY) < 1:\n raise ValueError('Invalid value for `test_type`, length must be greater than or equal to `1`')\n YKHO._test_type = LnKY",
"def ViGg(YKHO):\n return YKHO._test_mode"... | [
"0.83306456",
"0.7279375",
"0.6868526",
"0.6713595",
"0.66702175",
"0.6506123",
"0.643464",
"0.64061254",
"0.6302092",
"0.6299201",
"0.6258219",
"0.6258219",
"0.6258219",
"0.622954",
"0.6209314",
"0.6200224",
"0.61933",
"0.6176361",
"0.6176361",
"0.61692905",
"0.6163637",
"... | 0.8758871 | 0 |
The set of arguments for constructing a JobTemplate resource. | def FIMM(Ro_8, *, JBZA: pulumi.Input[str], LItz: pulumi.Input[str], MVYD: Optional[pulumi.Input['AbortConfigPropertiesArgs']]=None, C13M: Optional[pulumi.Input[str]]=None, Dgdu: Optional[pulumi.Input[str]]=None, LexI: Optional[pulumi.Input[str]]=None, yPnd: Optional[pulumi.Input['JobExecutionsRetryConfigPropertiesArgs'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: JobTemplateArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def Ez5F(EZEL, Ct_r):\n return URgV.split(EZEL.format(**Ct_r))",
"def E3cN(wvEv):\n f4U5.AddMigrationJobResourceArgs(wvEv, 'to create', required=True)\n vfRE.Args(wvEv)",
"def FIMM(Ro_8, kFeU: ... | [
"0.69028914",
"0.62806296",
"0.62733436",
"0.62184376",
"0.6210664",
"0.614733",
"0.61083156",
"0.6013065",
"0.5990873",
"0.5928967",
"0.58797014",
"0.57899076",
"0.5748665",
"0.5735299",
"0.57228714",
"0.5697598",
"0.56840897",
"0.56786686",
"0.564456",
"0.5643556",
"0.56394... | 0.6016806 | 7 |
The job document. Required if you don't specify a value for documentSource. | def C13M(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'document') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C13M(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'document')",
"def Dgdu(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'document_source')",
"def Dgdu(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'document_source')",
"def UIzg(YKHO):\n return YKHO.definition[... | [
"0.69541126",
"0.68992287",
"0.6794008",
"0.65938276",
"0.65116966",
"0.6474865",
"0.6474865",
"0.64513373",
"0.64513373",
"0.64513373",
"0.64513373",
"0.6406276",
"0.6406276",
"0.6406276",
"0.63904256",
"0.63904256",
"0.63372844",
"0.62851787",
"0.6226267",
"0.6086662",
"0.6... | 0.72965425 | 0 |
The job document. Required if you don't specify a value for documentSource. | def C13M(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'document') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C13M(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'document')",
"def Dgdu(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'document_source')",
"def Dgdu(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'document_source')",
"def UIzg(YKHO):\n return YKHO.definition['... | [
"0.72965425",
"0.68992287",
"0.6794008",
"0.65938276",
"0.65116966",
"0.6474865",
"0.6474865",
"0.64513373",
"0.64513373",
"0.64513373",
"0.64513373",
"0.6406276",
"0.6406276",
"0.6406276",
"0.63904256",
"0.63904256",
"0.63372844",
"0.62851787",
"0.6226267",
"0.6086662",
"0.6... | 0.69541126 | 1 |
Check that the given argument has the expected shape. Shape dimensions can be ints or 1 for a wildcard. The wildcard dimensions are returned, which allows them to be used for subsequent validation or elsewhere in the function. | def v_ry(ezWE, ROpF, mWFP=None):
def _591(tpio):
return tpio == -1
if any((not isinstance(tpio, int) and (not _591(tpio)) for tpio in ROpF)):
raise ValueError('Expected shape dimensions to be int')
if mWFP is None:
uK8v = 'Expected an array'
else:
uK8v = f'{mWFP} must be... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v_ry(jzdc, ROpF, **B2fa):\n\n def _591(tpio):\n return tpio == -1\n if any((not isinstance(tpio, int) and (not _591(tpio)) for tpio in ROpF)):\n raise ValueError('Expected shape dimensions to be int')\n if 'name' in B2fa:\n uK8v = '{} must be an array'.format(B2fa['name'])\n el... | [
"0.7580096",
"0.72949725",
"0.7195831",
"0.71491665",
"0.69900167",
"0.690417",
"0.6901709",
"0.6870551",
"0.6860804",
"0.6788114",
"0.6718157",
"0.6680283",
"0.66706145",
"0.6605708",
"0.6555275",
"0.6554234",
"0.6530571",
"0.6468057",
"0.6461913",
"0.6457563",
"0.6445958",
... | 0.73605514 | 1 |
Check that the given argument has any of the expected shapes. Shape dimensons can be ints or 1 for a wildcard. | def rt2g(ezWE, *N8OZ, mWFP=None):
if len(N8OZ) == 0:
raise ValueError('At least one shape is required')
for ROpF in N8OZ:
try:
return v_ry(ezWE, ROpF, name=mWFP or 'arr')
except ValueError:
pass
if mWFP is None:
uK8v = 'Expected an array'
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCCy(ROpF):\n if ROpF is None:\n return False\n eauG = -1\n if len(ROpF) == 0:\n return eauG == -1\n for aX9U in ROpF:\n if aX9U == eauG:\n return False\n assert aX9U > eauG, 'shape dimension size cannot be less than {}, while received {}'.format(eauG, aX9U)\n... | [
"0.7286131",
"0.71092594",
"0.7025487",
"0.6815688",
"0.67996603",
"0.67600095",
"0.6713517",
"0.6612655",
"0.65826404",
"0.65673804",
"0.6546507",
"0.6507603",
"0.6505977",
"0.650509",
"0.6481232",
"0.6436803",
"0.6429078",
"0.6420174",
"0.6420174",
"0.6395174",
"0.6379164",... | 0.6558179 | 10 |
Return `True` if this Article was published earlier than the `other` Article. The builtin sorting algorithm is guaranteed to use this method to compare objects for sorting purposes. That's why implementing this method also adds support for `sorted` and `list.sort`. When a rich comparison operator is not supported betwe... | def JWbp(YKHO, Elif: Article) -> laHg.Union[bool, NotImplemented]:
if not isinstance(Elif, wHLq):
return NotImplemented
return YKHO.publication_date < Elif.publication_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWbp(YKHO, Elif):\n return isinstance(Elif, ypPo) and YKHO._key() < Elif._key()",
"def JWbp(YKHO, Elif):\n if not isinstance(Elif, wHLq):\n raise TypeError('unorderable types: ' + type(YKHO).__name__ + ' < ' + type(Elif).__name__)\n return YKHO.quantity_in_stock() < Elif.quantity_in_stock()",... | [
"0.74601275",
"0.74490774",
"0.7253288",
"0.72188133",
"0.72184956",
"0.71994615",
"0.7175958",
"0.71708226",
"0.7148299",
"0.7129979",
"0.7117317",
"0.7097668",
"0.7096201",
"0.70772094",
"0.70770746",
"0.7071634",
"0.7051381",
"0.703986",
"0.7032898",
"0.7005305",
"0.699701... | 0.8008745 | 0 |
Capture the fully qualified name assigned to the descriptor instance. As Python allows you to alias the descriptor instance by assigning another class attribute to the descriptor instance, we only capture the name the first time `__set_name__` runs. | def a0L7(YKHO, qsJ6: typing.Type[typing.Any], mWFP: str) -> None:
if YKHO.attribute_name is None:
YKHO.attribute_name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ek9G(YKHO):\n return f'{YKHO.name}'",
"def wGWt(YKHO):\n return YKHO.__name",
"def wGWt(YKHO):\n return YKHO.__name",
"def wGWt(YKHO):\n return YKHO.__name",
"def wGWt(YKHO):\n return YKHO.__name",
"def wGWt(YKHO):\n return YKHO.__name",
"def wGWt(YKHO):\n return YKHO.__name",
... | [
"0.6922095",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"0.6897741",
"... | 0.0 | -1 |
Test about the method Parser.clean_accent(message) | def wPu_():
iqNh = 'éèêëàâäïîôöûü'
xKMy = i9Wa()
iqNh = xKMy.clean_accent(iqNh)
FXyc = 'eeeeaaaiioouu'
assert iqNh == FXyc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fv0l():\n iqNh = 'Je--voudrais\\\\connaître les Informations sur Parïs+Marseille-Caen.'\n xKMy = i9Wa()\n iqNh = xKMy.clean_message(iqNh)\n FXyc = 'je voudrais connaitre les informations sur paris marseille caen'\n assert iqNh == FXyc",
"def JU2C():\n iqNh = \"Je voudrais savoir si c'est po... | [
"0.6774803",
"0.6651929",
"0.6610709",
"0.6379724",
"0.62377536",
"0.6131744",
"0.6115489",
"0.60616064",
"0.60558516",
"0.60486424",
"0.6035384",
"0.6031932",
"0.6020942",
"0.6012822",
"0.6002355",
"0.5982851",
"0.5971357",
"0.5971357",
"0.5962309",
"0.59565765",
"0.5907846"... | 0.8795881 | 0 |
Returns a TFFeature of int64s. | def Oety(hkxX):
if not isinstance(hkxX, (tuple, list)):
hkxX = [hkxX]
return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=hkxX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OohW(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=rjpT.listify(BWXx)))",
"def pOqB(hkxX):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=hkxX))",
"def Oety(hkxX):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=list(hkxX)))",
"def ... | [
"0.7267341",
"0.70456064",
"0.7038795",
"0.6982519",
"0.6930647",
"0.6849908",
"0.683344",
"0.6797082",
"0.6785307",
"0.6785168",
"0.6768768",
"0.6768412",
"0.67615116",
"0.6750409",
"0.6749232",
"0.6749232",
"0.6749232",
"0.67481565",
"0.6739895",
"0.6739895",
"0.6739895",
... | 0.67667305 | 12 |
Given H^1 and world coordinates, returns (u, v) in image coordinates. | def _7a5(dYvE, hksT):
if hksT.ndim > 1:
oO8S = oyIN.hstack((hksT, oyIN.ones((hksT.shape[0], 1))))
NlSD = oyIN.transpose(oO8S)
NlSD = oyIN.matmul(dYvE, NlSD)
CRbn = oyIN.transpose(NlSD / NlSD[2])
return CRbn[:, :2].astype(int)
else:
oO8S = oyIN.hstack((hksT, 1))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z4NJ(YKHO, d6pt):\n fopC = qAjl(YKHO._west, YKHO._east, awRs(float(YKHO.u[d6pt]), GLcw))\n _UuI = qAjl(YKHO._south, YKHO._north, awRs(float(YKHO.v[d6pt]), GLcw))\n H2v2 = YKHO._dequantize_height(YKHO.h[d6pt])\n return (fopC, _UuI, H2v2)",
"def fEyv(MKlR):\n return r8hN * Oa1e * MKlR",
"def a... | [
"0.6550118",
"0.65283054",
"0.64987034",
"0.64059705",
"0.6390788",
"0.6234336",
"0.62068486",
"0.62068486",
"0.62057036",
"0.6139406",
"0.6108348",
"0.60976803",
"0.60682964",
"0.6013746",
"0.5938593",
"0.5912418",
"0.58403623",
"0.583573",
"0.5833906",
"0.58284616",
"0.5819... | 0.55800873 | 47 |
Return the index of a given named coordinate. >>> c = CoordinateSystem('ij', name='input') >>> c.index('i') 0 >>> c.index('j') 1 | def d6pt(YKHO, P3tG):
return list(YKHO.coord_names).index(P3tG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hDX3(YKHO, mWFP) -> int:\n (bGrB, d6pt), bGrB = YKHO._find_name(mWFP)\n return d6pt",
"def nfdH(YKHO, mWFP):\n for YRbF in range(len(YKHO.names)):\n if YKHO.names[YRbF] == mWFP:\n return YRbF\n raise KeyError(\"No ion species named '{}' found in output.\".format(mWFP))",
"def ... | [
"0.73414373",
"0.7124389",
"0.682952",
"0.65588343",
"0.64784884",
"0.64534545",
"0.6407667",
"0.6381806",
"0.6360059",
"0.6337784",
"0.6337544",
"0.6316551",
"0.62895197",
"0.627483",
"0.62727505",
"0.62636495",
"0.6255015",
"0.6229646",
"0.6213488",
"0.6189473",
"0.61654913... | 0.7277368 | 1 |
Equality is defined by self.dtype and self.name | def xa14(YKHO, Elif):
return YKHO.dtype == Elif.dtype and YKHO.name == Elif.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ha0h(YKHO, Elif):\n return YKHO.dtype == Elif.dtype",
"def xa14(YKHO, z1Rg):\n return oekH.FloatsConstDataSet1D___eq__(YKHO, z1Rg)",
"def xa14(YKHO, Elif: DatasetBase) -> bool:\n raise NotImplementedError()",
"def xa14(YKHO, z1Rg):\n return oekH.FloatConstDataSet1D___eq__(YKHO, z1Rg)",
"def... | [
"0.7770242",
"0.76029867",
"0.7459359",
"0.74283004",
"0.7428225",
"0.7409848",
"0.7399117",
"0.7384023",
"0.73650616",
"0.7352617",
"0.72794616",
"0.7255363",
"0.72332215",
"0.7230594",
"0.721655",
"0.71924996",
"0.7191722",
"0.7190917",
"0.7189853",
"0.7137264",
"0.7124199"... | 0.8725276 | 0 |
Determine a dtype to safely cast all of the given dtypes to. Safe dtypes are valid numpy dtypes or python types which can be cast to numpy dtypes. See numpy.sctypes for a list of valid dtypes. Composite dtypes and string dtypes are not safe dtypes. | def s_60(*m1c7):
Sk_F = [oyIN.zeros(2, yDqo) for yDqo in m1c7]
mwXN = [jzdc.dtype.kind for jzdc in Sk_F]
if not set(mwXN).issubset('iubfcO'):
raise TypeError('dtype must be valid numpy dtype int, uint, float, complex or object')
return oyIN.array(Sk_F).dtype | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PjQo(SLLj):\n try:\n yDqo = XTiz.dtype(SLLj)\n except TypeError:\n yDqo = XTiz.dtype([(bytes(mWFP), wEf2) for mWFP, wEf2 in SLLj])\n return yDqo",
"def Bf9m(BWXx, yDqo: np.dtype):\n if yDqo == SRWD:\n return BWXx\n return yDqo.type(BWXx)",
"def qAwT(oxOY: xr.Dataset) -> ... | [
"0.69008034",
"0.68189335",
"0.67861813",
"0.66321945",
"0.6582677",
"0.65551865",
"0.6514758",
"0.6511867",
"0.6488042",
"0.6413511",
"0.64083856",
"0.6368414",
"0.63600886",
"0.63283134",
"0.63018125",
"0.62940407",
"0.62603116",
"0.623449",
"0.6231276",
"0.6206652",
"0.615... | 0.78344756 | 0 |
Append a value at the beginning of a deque. | def rwLV(YKHO, WKvO):
VUF1 = YKHO.list
VUF1[YKHO.left % YKHO.size] = WKvO
YKHO.left -= 1
print(VUF1)
print(YKHO.left)
YKHO.list = VUF1
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qKPK(hy32: Deque, d6pt: int, BWXx: any) -> None:\n hy32.rotate(-d6pt)\n hy32.appendleft(BWXx)\n hy32.rotate(d6pt)",
"def wyW2(YKHO, BWXx):\n if YKHO.size == YKHO.capacity:\n raise ValueError('the array is full')\n if YKHO.size == 0:\n YKHO.addToBack(BWXx)\n else:\n YKHO... | [
"0.7483899",
"0.7178457",
"0.7174547",
"0.71375114",
"0.7090253",
"0.7015684",
"0.70019966",
"0.6968148",
"0.6955211",
"0.69446605",
"0.6929941",
"0.69280064",
"0.69147366",
"0.69050467",
"0.6904885",
"0.6904885",
"0.68637276",
"0.68218005",
"0.68189967",
"0.68006825",
"0.679... | 0.0 | -1 |
Return the value at the end of a deque. | def T7C_(YKHO):
VUF1 = YKHO.list
BWXx = VUF1[YKHO.right - 1 % YKHO.size]
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._data[YKHO._back]",
"def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._trailer._prev._element",
"def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is ... | [
"0.7701131",
"0.7626462",
"0.7554598",
"0.75374645",
"0.7445021",
"0.74401116",
"0.72606426",
"0.7134009",
"0.71243334",
"0.7120387",
"0.7104132",
"0.70897454",
"0.70659244",
"0.7041627",
"0.7026418",
"0.6989535",
"0.6985429",
"0.698267",
"0.69761413",
"0.6974462",
"0.6971695... | 0.6848952 | 38 |
Return the value at the beginning of a deque. | def J1pb(YKHO):
VUF1 = YKHO.list
BWXx = VUF1[YKHO.left + 1 % YKHO.size]
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vYJ5(YKHO):\n if YKHO.is_empty():\n raise IndexError()\n return YKHO.items[0]",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._data[YKHO._front]",
"def VnzS(gGq6):\n if FBfn(gGq6):\n raise IndexError('front on empty queue')\n retu... | [
"0.7939498",
"0.7710686",
"0.750241",
"0.75007045",
"0.74162793",
"0.7404421",
"0.7399654",
"0.7392415",
"0.73526764",
"0.7352604",
"0.73316336",
"0.72854054",
"0.72485185",
"0.72327775",
"0.72118783",
"0.720671",
"0.7199875",
"0.71867734",
"0.71797436",
"0.7174055",
"0.71629... | 0.6946127 | 49 |
method to shape a reward based on the above constraints (behavioral reward shaping unlike the temporal one) | def u29I(KCHu, Mkmy, Duy8, TgM5, SGrO, j5ax, Mt83):
Qquo = oyIN.where(KCHu[:, 95] > KCHu[:, 83])
px0d = oyIN.where(oyIN.bitwise_or(KCHu[:, 125] > KCHu[:, 104], KCHu[:, 119] > KCHu[:, 107]))
i5mo = oyIN.where(oyIN.bitwise_or(KCHu[:, 125] > 0, KCHu[:, 119] > 0))
WIJt = oyIN.where(KCHu[:, 79] > 0.8)
F6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _HTf(YKHO, vOGg: Reward, GB7w: int, T3WQ: int) -> cuzp[int, float]:\n if isinstance(vOGg, IzE5):\n fIzt = super().shape_reward(reward=XYvR(None, vOGg.movement_reward), first_t=GB7w, final_t=T3WQ)\n if len(vOGg.bullet_hit_events) + len(vOGg.bullet_missed_events) > 0:\n JKbz = max([vO... | [
"0.694947",
"0.67551786",
"0.63200366",
"0.6316522",
"0.6296343",
"0.619792",
"0.6189767",
"0.6127288",
"0.60774475",
"0.60707885",
"0.60707885",
"0.60707885",
"0.6064814",
"0.604892",
"0.60290647",
"0.60188806",
"0.5979469",
"0.594854",
"0.5944058",
"0.5921044",
"0.5918743",... | 0.0 | -1 |
method to shape a reward based on the above constraints (behavioral reward shaping unlike the temporal one) | def pjya(KCHu, Mkmy):
Qquo = oyIN.where(KCHu[:, 95] > KCHu[:, 83])
Mkmy[Qquo] = Mkmy[Qquo] - 5.0
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _HTf(YKHO, vOGg: Reward, GB7w: int, T3WQ: int) -> cuzp[int, float]:\n if isinstance(vOGg, IzE5):\n fIzt = super().shape_reward(reward=XYvR(None, vOGg.movement_reward), first_t=GB7w, final_t=T3WQ)\n if len(vOGg.bullet_hit_events) + len(vOGg.bullet_missed_events) > 0:\n JKbz = max([vO... | [
"0.69487137",
"0.67544645",
"0.6320074",
"0.6317953",
"0.62980485",
"0.6198605",
"0.6190687",
"0.6128061",
"0.60781413",
"0.6071684",
"0.6071684",
"0.6071684",
"0.6066044",
"0.6050296",
"0.6030086",
"0.60201365",
"0.5980381",
"0.59500456",
"0.59457856",
"0.5923112",
"0.591969... | 0.0 | -1 |
Generates placeholder variables to represent the input tensors These placeholders are used as inputs by the rest of the model building and will be fed data during training. Note that when "None" is in a placeholder's shape, it's flexible (so we can use different batch sizes without rebuilding the model). Adds following... | def TxBl(YKHO):
YKHO.input_placeholder = ZylS.placeholder(ZylS.float32, shape=(None, YKHO.config.n_features), name='input')
YKHO.labels_placeholder = ZylS.placeholder(YKHO.labelType(), shape=None, name='labels')
YKHO.dropout_placeholder = ZylS.placeholder(ZylS.float32, shape=(), name='dropout') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TxBl(YKHO):\n YKHO.inputs_placeholder = ZylS.placeholder(ZylS.float32, (None, None, PSrQ.num_final_features))\n YKHO.seq_lens_placeholder = ZylS.placeholder(ZylS.int32, (None,))\n if YKHO.mode == 'train':\n YKHO.targets_placeholder = ZylS.sparse_placeholder(ZylS.int32)",
"def TxBl(YKHO):\n ... | [
"0.74516946",
"0.7384218",
"0.7303233",
"0.7300711",
"0.7300711",
"0.7274409",
"0.72653985",
"0.725997",
"0.72563744",
"0.72559184",
"0.72497886",
"0.72236246",
"0.72115636",
"0.7086192",
"0.7060773",
"0.7030605",
"0.6997635",
"0.6988512",
"0.6971439",
"0.6971162",
"0.6936815... | 0.72786546 | 5 |
Return the loss after evaluating on the provided batch of data | def jqOD(YKHO, cb_Q, InGT, ovYi, RKD7=True):
raise NotImplementedError('Each Model must re-implement this method.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOmn(YKHO, Wc9F: Tuple[torch.Tensor, ...]) -> ht2j.Tensor:\n nvEb, pan_ = YKHO.model(*Wc9F)\n N77f = YKHO.loss_fn(nvEb, pan_)\n return N77f",
"def N77f(YKHO, sZv9, F8D6, lQ3t):\n pass",
"def GT2U(YKHO, NArs, Wc9F):\n EcVT, (VUzz, j4l8), yzQ0 = Wc9F\n zseD, RUIi = YKHO.apply_fun(NArs, EcVT... | [
"0.76805794",
"0.7676711",
"0.76615983",
"0.74920446",
"0.74855345",
"0.74647784",
"0.73411196",
"0.7323504",
"0.7291817",
"0.7253374",
"0.7247282",
"0.7233741",
"0.7188305",
"0.7179395",
"0.71673626",
"0.71609807",
"0.71609807",
"0.71609807",
"0.7156549",
"0.7147431",
"0.714... | 0.0 | -1 |
Deletes an Amazon FSx for Windows File Server backup, deleting its contents. After deletion, the backup no longer exists, and its data is gone. The DeleteBackup call returns instantly. The backup will not show up in later DescribeBackups calls. | def i7UE(LWEy=None, uEPf=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BGes(UzPC, o_gm, xhCg):\n try:\n HCmI = bGrB('%s && svt-backup-delete --datastore %s --vm %s --backup %s' % (hrER, SAs9.simplivity.svt_datastore_name, o_gm, xhCg))\n zJsh, wIbz = UzPC.ssh_execute(HCmI)\n except Ut1L.ProcessExecutionError as e:\n na1r.error('Deleting backup failed wit... | [
"0.70343524",
"0.6942915",
"0.691587",
"0.68577194",
"0.6842208",
"0.683409",
"0.67896914",
"0.676146",
"0.67245954",
"0.6720755",
"0.6671924",
"0.663872",
"0.6635189",
"0.6604333",
"0.6517959",
"0.65146625",
"0.64715946",
"0.6468239",
"0.6424518",
"0.6417663",
"0.6388758",
... | 0.74770314 | 0 |
Create a paginator for an operation. | def oL8A(hTqE=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\... | [
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.70472574",
"0.67338336",
"0.6382978",... | 0.7726925 | 4 |
Load a model from file or generate it based on the features | def ZXRr(YKHO, ohfT=GDa9.FEATURES_FILE, jPZ3=False, CK6s=False):
if isinstance(ohfT, exCv):
if ohfT == '' or not Hy7s.path.exists(ohfT) or (not Hy7s.path.isfile(ohfT)):
raise ValueError('Specified file does not exist (%s)' % ohfT)
sAYn = YKHO.load_from_file(ohfT, load_patches=jPZ3)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(Ux0P):\n pass",
"def uyMl(Ux0P):\n raise NotImplementedError()",
"def uyMl(ytgA: str):\n raise NotImplementedError",
"def uyMl(okC2):\n with open(okC2, 'r') as eHNT:\n QOe9 = eHNT.readline().split()\n eHNT.seek(0)\n if len(QOe9) == 1:\n C3ST = P4C3(eHNT)\n... | [
"0.8062728",
"0.7793393",
"0.7709132",
"0.741351",
"0.7384136",
"0.734927",
"0.733041",
"0.733041",
"0.72210205",
"0.7216678",
"0.71995705",
"0.7124029",
"0.71173114",
"0.707432",
"0.7066338",
"0.7059741",
"0.705677",
"0.70512414",
"0.70512414",
"0.70512414",
"0.705007",
"0... | 0.0 | -1 |
Load a model from file | def J2u4(YKHO, SkYi, jPZ3=False):
with g5R2.File(SkYi, 'r') as CVOT:
Oa1e = CVOT.get(YKHO.NAME)
if Oa1e is None:
return False
bo34.info('Reading model from: %s' % SkYi)
if jPZ3:
YKHO.patches = NfkC(SkYi)
return YKHO.__load_model_from_file__(Oa1e) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(Ux0P):\n pass",
"def uyMl(Ux0P):\n raise NotImplementedError()",
"def uyMl(Ux0P: str):\n return tyeH(Ux0P)",
"def uyMl(ytgA: str):\n raise NotImplementedError",
"def uyMl(YKHO, WJHQ):\n raise NotImplementedError",
"def uyMl(YKHO, gIsw):\n raise NotImplementedError",
"def tyeH... | [
"0.90093666",
"0.87906426",
"0.868857",
"0.861218",
"0.86027074",
"0.8545427",
"0.85316163",
"0.84897023",
"0.84010994",
"0.84007406",
"0.84007406",
"0.84007406",
"0.83040154",
"0.8303529",
"0.8299032",
"0.827979",
"0.82186764",
"0.819761",
"0.81872016",
"0.8173998",
"0.81510... | 0.0 | -1 |
Draw the scene to the display | def VED2(YKHO):
YKHO._surface.fill((0, 0, 0))
YKHO._scene.draw_gameobjects(YKHO._surface)
LCf8 = YKHO._font.render('Catching ball: {}'.format(YKHO._scene.catch_ball_times), True, (255, 255, 255))
YKHO._surface.blit(LCf8, YKHO._font_pos)
a9eO.display.flip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NgQf(YKHO):\n jIOH.start_render()\n YKHO.current_scene.draw()",
"def _1tc(YKHO):\n YKHO.scene.render()",
"def JmFt(YKHO):\n CzUC.blit(YKHO.background, (0, 0))\n g74T.draw.rect(CzUC, ETiC['SILVER'], (20, 20, YDPm - 40, QKha - 40))\n CzUC.blit(YKHO.title, ((YDPm - YKHO.title_rect) / 2, 60))... | [
"0.79148334",
"0.78490984",
"0.77958655",
"0.7772052",
"0.77516544",
"0.7727641",
"0.7699904",
"0.7667774",
"0.7662319",
"0.7652198",
"0.7632738",
"0.75917417",
"0.7590518",
"0.75831646",
"0.75753736",
"0.75745624",
"0.75340694",
"0.75298506",
"0.74910444",
"0.7476907",
"0.74... | 0.742772 | 25 |
The path on the server where uploaded files will be stored. The path is relative to root of the application on webserver. The default path is "uploads/" | def _gP9(YKHO):
return YKHO._upload_folder | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSzP():\n return pmON.join(wk5E.config.get('UPLOAD_FOLDER'))",
"def qaEx(Ux0P):\n return Hy7s.sep.join(Hy7s.path.abspath(xAKo).split(Hy7s.sep)[:-5]) + '/data/uploads/' + Ux0P",
"def djv7(YKHO) -> str:\n return YKHO._uploaded_file_path",
"def Xxp6(YKHO):\n pmON = gCuF.UPLOAD_MEDIA_ROOT\n re... | [
"0.81605107",
"0.76132166",
"0.7301429",
"0.7212533",
"0.71855885",
"0.70383936",
"0.70070755",
"0.6949736",
"0.69402045",
"0.6899784",
"0.68170536",
"0.68108267",
"0.68033373",
"0.67582947",
"0.6752787",
"0.67252254",
"0.66938794",
"0.6686526",
"0.65596664",
"0.6547935",
"0.... | 0.61465067 | 39 |
List of allowed file extensions to be uploaded | def NexC(YKHO):
return YKHO._allowed_extensions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lzCr(YKHO) -> x1iM[QMSQ]:\n ...",
"def tSZB(YKHO, Vb5F, CBZq=None):\n return YKHO.filename_allowed(Vb5F.filename, CBZq)",
"def tNeU(YKHO) -> laHg.List[str]:\n HI8X = []\n for N2Ym in YKHO.get_supported_mimetypes():\n CBZq = LTD4.guess_all_extensions(N2Ym, strict=False)\n HI8X.exte... | [
"0.76322407",
"0.74448925",
"0.7401075",
"0.73553056",
"0.73387325",
"0.73310924",
"0.71433526",
"0.7093257",
"0.7083994",
"0.70256",
"0.70124537",
"0.6999728",
"0.69550216",
"0.6947797",
"0.6947797",
"0.69473386",
"0.69467",
"0.6945822",
"0.6945822",
"0.6944981",
"0.6925916"... | 0.752243 | 1 |
Connect to our SQLite database and return a Session object | def KAJ8():
cuiw = C3ST.db
return cuiw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ykhp():\n global ENGINE\n global Session\n EmnT = y2U9(V7NB, echo=False)\n DMju = FJ3D(bind=EmnT)\n return DMju()",
"def Ptyl(w9H0: str) -> DMju:\n eHpk = y2U9(w9H0)\n GhOX = FJ3D(bind=eHpk)\n cuiw = GhOX()\n yield cuiw\n cuiw.close()\n eHpk.dispose()",
"def WlyJ():\n fr... | [
"0.77998513",
"0.76837075",
"0.7656908",
"0.76448345",
"0.7630657",
"0.7610187",
"0.7596355",
"0.7560266",
"0.75544906",
"0.7541582",
"0.7533926",
"0.7533926",
"0.75270975",
"0.7520168",
"0.7520168",
"0.7510744",
"0.7510744",
"0.7510744",
"0.7510744",
"0.7510744",
"0.7510744"... | 0.7982295 | 0 |
Test that the 'get_dictionary' function returns a dictionary that has a length greater than 0 | def vsqF(YKHO):
cmPJ = xyaY.get_dictionary('words.txt')
YKHO.assertGreater(len(cmPJ), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsqF(YKHO):\n YKHO.assertEqual(235886, len(YKHO.dic))",
"def vsqF(YKHO):\n cmPJ = xyaY.get_dictionary('words.txt')\n YKHO.assertGreater(len(cmPJ), 0)",
"def FBfn(eUNp):\n return len(eUNp) == 0",
"def p7aD(YKHO):\n nPrm = c7yn.get_test_dict()\n YKHO.assertEqual(len(nPrm), 2, 'test: Wrong... | [
"0.7196242",
"0.6841744",
"0.6762188",
"0.67091715",
"0.6706851",
"0.6611815",
"0.65428716",
"0.6506994",
"0.64592326",
"0.6455885",
"0.64539546",
"0.63943183",
"0.63867927",
"0.63773155",
"0.63600534",
"0.62470853",
"0.6244952",
"0.6197759",
"0.61924875",
"0.6186498",
"0.613... | 0.68517005 | 1 |
Returns a JSON response, transforming 'context' to make the payload. | def SGJU(YKHO, QpfX, **TIVb):
TIVb['content_type'] = 'application/json'
return YKHO.response_class(YKHO.convert_context_to_json(QpfX), **TIVb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4iE(YKHO, QpfX, **TIVb):\n TIVb['content_type'] = 'application/json'\n return YKHO.json_response_class(qQXR.dumps(QpfX), **TIVb)",
"def EK31(YKHO, QpfX, **TIVb):\n return igJ6(qQXR.dumps(QpfX), content_type='application/json', **TIVb)",
"def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(Qp... | [
"0.7995763",
"0.77249134",
"0.770435",
"0.770435",
"0.76753193",
"0.76753193",
"0.7582211",
"0.7538711",
"0.7429256",
"0.7421507",
"0.7421507",
"0.7421507",
"0.74140453",
"0.74089426",
"0.74089426",
"0.74089426",
"0.7145266",
"0.7081657",
"0.70215803",
"0.6992469",
"0.6925574... | 0.76446885 | 6 |
Create list of 20 elements where each element is random letter from latin alphabet | def sow7() -> x1iM[str]:
return [str(chr(tuKI.randint(97, 122))) for WKvO in range(0, 20)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sow7() -> x1iM[str]:\n return [tuKI.choice(vIwR.ascii_letters.lower()) for bGrB in range(20)]",
"def sow7() -> x1iM[str]:\n import string, random\n return [random.choice(string.ascii_letters) for WKvO in range(20)]",
"def sow7() -> x1iM[str]:\n return [tuKI.choice(vIwR.ascii_lowercase) for bGrB... | [
"0.82349545",
"0.82100403",
"0.8107368",
"0.8107368",
"0.7709743",
"0.7701436",
"0.74079365",
"0.7277954",
"0.7232152",
"0.7225669",
"0.7147763",
"0.7134988",
"0.7078663",
"0.70760095",
"0.7053966",
"0.70444274",
"0.7000003",
"0.69953245",
"0.6944315",
"0.6884719",
"0.6869571... | 0.8081427 | 4 |
generate a random filename | def GK7x(YKHO):
dISJ = qcWV.datetime.now().strftime('%Y%m%d%H%M%S')
return '%s%s' % (dISJ, str(tuKI.randrange(1000, 10000))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUV2():\n Si_B = tuKI.getrandbits(32)\n return '.random_%s' % Si_B",
"def HXID(KAOR, Ux0P):\n return 'photos/%s-%s' % (''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(50))), Ux0P)",
"def gbOx():\n return ''.join(tuKI.choices(vIwR.ascii_uppercase + vIwR.digits, k=5))",
... | [
"0.88635916",
"0.8540711",
"0.84778434",
"0.8406293",
"0.83890516",
"0.8360326",
"0.82359684",
"0.81877506",
"0.8117956",
"0.7965048",
"0.7962557",
"0.7935703",
"0.7930679",
"0.7912168",
"0.7873218",
"0.7807067",
"0.7805876",
"0.77826786",
"0.7748099",
"0.7741514",
"0.7733984... | 0.8744127 | 1 |
This layer creates the onehot representations for input indices. | def KLLm(input, rb7a, ATLB=False):
B0gN = oLUb('one_hot_v2', **locals())
yAFh = B0gN.create_variable_for_type_inference(dtype='float32')
if A5wg():
g4y1 = {'X': input}
o8Kj = {'depth': rb7a}
elif not isinstance(rb7a, iQnE):
g4y1 = {'X': input}
o8Kj = {'depth': rb7a}
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGX0(YKHO, _0VL, ROpF):\n hlel = oyIN.zeros(ROpF)\n hlel[oyIN.arange(len(_0VL)), _0VL] = 1\n return hlel",
"def KLLm(g4y1, jTqs):\n pass",
"def VDds(input, jTqs):\n ROpF = oyIN.array(input.shape)\n ROpF[1] = jTqs\n ROpF = tuple(ROpF)\n Aofo = ht2j.zeros(ROpF)\n Aofo = Aofo.scatte... | [
"0.815665",
"0.7813967",
"0.7646214",
"0.7646214",
"0.76447046",
"0.76226974",
"0.76212955",
"0.7586574",
"0.7549317",
"0.75430936",
"0.7531611",
"0.7514758",
"0.751286",
"0.75070995",
"0.7494873",
"0.74918836",
"0.7484935",
"0.74819946",
"0.7438243",
"0.7432352",
"0.74312294... | 0.0 | -1 |
convert a datetime into a float since epoch | def Erqc(BWXx):
import calendar
return int(calendar.timegm(BWXx.timetuple()) * 1000 + BWXx.microsecond / 1000) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qtWj():\n return qcWV(1970, 1, 1)",
"def twRc(ITS7):\n if isinstance(ITS7, float) or isinstance(ITS7, int):\n return ITS7\n elif isinstance(ITS7, qcWV.datetime):\n yKcO = qcWV.utcfromtimestamp(0)\n RA_F = ITS7 - yKcO\n return int(RA_F.total_seconds() * 1000)",
"def lnRi... | [
"0.7623414",
"0.7588321",
"0.7557572",
"0.73647475",
"0.7330621",
"0.7327549",
"0.7307088",
"0.7306642",
"0.7247527",
"0.7172611",
"0.71672696",
"0.71432066",
"0.7139095",
"0.7135459",
"0.7046385",
"0.70231235",
"0.7001683",
"0.6998443",
"0.6989772",
"0.6917553",
"0.68610525"... | 0.0 | -1 |
convert a float since epoch to a datetime object | def Cxh3(dRjK):
C6wh = float(dRjK) / 1000.0
return qcWV.datetime.utcfromtimestamp(C6wh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OLXh(BWXx):\n return qtWj + fCoM(seconds=BWXx)",
"def P9gz(qtWj):\n return qcWV(*ITS7.gmtime(qtWj / 1000)[:7])",
"def P9gz(a1PO):\n if a1PO is None:\n return None\n return qcWV.fromtimestamp(a1PO, tz=rIAI.utc)",
"def qtWj():\n return qcWV(1970, 1, 1)",
"def lrWV(a1PO, onTg=True):\... | [
"0.7931206",
"0.72919005",
"0.7211326",
"0.7190378",
"0.7157854",
"0.7029099",
"0.69556856",
"0.69510305",
"0.690819",
"0.6881884",
"0.6833067",
"0.68219393",
"0.67985433",
"0.6775415",
"0.675195",
"0.6751579",
"0.67308",
"0.6686454",
"0.66861385",
"0.66831493",
"0.6654579",
... | 0.6348696 | 30 |
Retrieve the current time. | def m7L9(YKHO) -> qcWV:
return qcWV.utcnow().replace(tzinfo=rIAI.utc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7L9(YKHO):\n return YKHO._current_time_",
"def m7L9(YKHO):\n return YKHO._current_time",
"def m7L9(YKHO):\n return YKHO._current_time",
"def m7L9(YKHO):\n return YKHO._current_time",
"def m7L9(YKHO):\n return YKHO._current_time",
"def m7L9(YKHO):\n return YKHO._current_time",
"de... | [
"0.87737936",
"0.8771618",
"0.8771618",
"0.8771618",
"0.8771618",
"0.8771618",
"0.87642384",
"0.8489004",
"0.84804153",
"0.84804153",
"0.8467709",
"0.8455255",
"0.837184",
"0.83645695",
"0.8356262",
"0.8337438",
"0.83160937",
"0.82919997",
"0.8281428",
"0.8246574",
"0.8240443... | 0.0 | -1 |
Check if the diagonal contains only distances of 0. | def PqT7(YKHO):
return max(XTiz.diag(YKHO)) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CwsA(YKHO):\n return YKHO.value[1, 2] == 0",
"def Z0nZ(YKHO):\n for YRbF in enumerate(YKHO.mat):\n yaaC = Pusg(lambda WKvO, LVAh: abs(WKvO + LVAh), YRbF[1])\n jvSB = abs(YRbF[1][YRbF[0]])\n yaaC -= jvSB\n if yaaC > jvSB:\n return False\n return True",
"def Cw... | [
"0.74409825",
"0.7241481",
"0.721881",
"0.7107729",
"0.7069243",
"0.69401944",
"0.69377923",
"0.686338",
"0.68572354",
"0.68377334",
"0.6820122",
"0.68167084",
"0.68138504",
"0.67717785",
"0.67668605",
"0.6723006",
"0.6680104",
"0.667647",
"0.66658145",
"0.66426617",
"0.66221... | 0.7694134 | 0 |
Initializes the CrossEntropyTSP class. | def FIMM(YKHO, KmmF, Z9rn, oZuG, Csk6, Cwt5, yokr):
YKHO.costs = KmmF
YKHO.n = len(KmmF)
YKHO.N = Z9rn * YKHO.n ** 2
YKHO.rho = oZuG
YKHO.d = Csk6
YKHO.alpha = Cwt5
YKHO.random_state = oyIN.random.RandomState(yokr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OM8D(YKHO) -> None:\n YKHO.nu_crit = round(oyIN.degrees(oyIN.arccos(-YKHO.ecc)))\n Vy6X = -YKHO.AOP\n YKHO.t_p = YKHO._compute_t(Vy6X)",
"def FIMM(YKHO, *qIxc):\n PZpo.TSStr_swiginit(YKHO, PZpo.new_TSStr(*qIxc))",
"def uIcm(YKHO):\n jWya = zV6D(YKHO.N)\n for YRbF in range(YKHO.samples):\n... | [
"0.6289134",
"0.62410486",
"0.6124157",
"0.610216",
"0.6077711",
"0.59517765",
"0.59494495",
"0.5943876",
"0.5903444",
"0.5879334",
"0.5874821",
"0.5865572",
"0.5843241",
"0.5843152",
"0.58409786",
"0.58335793",
"0.583154",
"0.58291036",
"0.5825779",
"0.5800982",
"0.5777325",... | 0.0 | -1 |
Calculates a matrix where each element 1/(n1) except for diagonal elements. | def Airr(YKHO):
XUsB = 1 / float(YKHO.n - 1)
sequ = oyIN.full_like(YKHO.costs, XUsB, float)
oyIN.fill_diagonal(sequ, 0)
YKHO.trans_mat = sequ
YKHO.trans_mat_old = sequ
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PLjJ(exwG=3):\n r8hN = oyIN.eye(exwG, dtype=oyIN.float32) / exwG\n r8hN[r8hN <= 0.0] = -1.0 / (exwG ** 2 - exwG)\n return r8hN",
"def O_iJ(exwG, r8hN, jzdc):\n for YRbF in range(min(exwG, r8hN)):\n dJ25 = YRbF\n while dJ25 < r8hN and jzdc[YRbF][dJ25] == 0:\n IYwH = boYq(e... | [
"0.6876512",
"0.64906764",
"0.6336388",
"0.6093391",
"0.60709167",
"0.5942121",
"0.59263533",
"0.590041",
"0.5821141",
"0.5814264",
"0.57965595",
"0.5777064",
"0.575676",
"0.5753016",
"0.57330847",
"0.5727736",
"0.57243824",
"0.57233095",
"0.56898826",
"0.5678691",
"0.5645641... | 0.0 | -1 |
Just returns the highest score among all current paths. | def JjOV(YKHO):
return YKHO.scored_paths[0][0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wv7S(YKHO):\n return YKHO.bestScore",
"def ehxu(YKHO):\n return max(YKHO.scores)",
"def Cx1J(OVVu):\n EV_E = 0\n oc5v = ''\n for eHNT in OVVu:\n uRP3 = ckRy.path_leaf(eHNT)\n saHg = rpgb(uRP3)\n UHFx = saHg.get_score()\n if UHFx > EV_E:\n EV_E = UHFx\n ... | [
"0.7118851",
"0.7109636",
"0.70336",
"0.69945776",
"0.69650394",
"0.6897206",
"0.6880773",
"0.6861144",
"0.6791368",
"0.6771767",
"0.6771767",
"0.6770337",
"0.6711128",
"0.66789836",
"0.6651188",
"0.66456693",
"0.66456693",
"0.6621458",
"0.66174173",
"0.65929633",
"0.654479",... | 0.8343352 | 0 |
Detects entity sentiment in a Google Cloud Storage file. | def sX4z(dYNu):
x0hE = rQow.LanguageServiceClient()
C13M = SnBA.Document(gcs_content_uri=dYNu, type=aVkO.Document.Type.PLAIN_TEXT)
tZ2K = aVkO.EncodingType.UTF32
if HwRy.maxunicode == 65535:
tZ2K = aVkO.EncodingType.UTF16
Aofo = x0hE.analyze_entity_sentiment(C13M, tZ2K)
for LEXu in Aofo.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sX4z(dYNu):\n RBHL = Fl11.LanguageServiceClient()\n C13M = Ds3J.Document()\n C13M.gcs_content_uri = dYNu\n C13M.type = aVkO.Document.Type.PLAIN_TEXT\n tZ2K = aVkO.EncodingType.UTF32\n if HwRy.maxunicode == 65535:\n tZ2K = aVkO.EncodingType.UTF16\n Aofo = RBHL.analyze_entity_sentimen... | [
"0.7902544",
"0.748278",
"0.7455562",
"0.6980926",
"0.6712162",
"0.6673595",
"0.64483476",
"0.6364012",
"0.6357085",
"0.62511235",
"0.62271386",
"0.6195848",
"0.6148983",
"0.6106684",
"0.6106468",
"0.6098131",
"0.60776854",
"0.6051722",
"0.6040075",
"0.60025066",
"0.5986757",... | 0.7836438 | 1 |
Return predicted classes for given data. | def YEmv(YKHO, nPrm):
if len(YKHO.centroids) == 0:
raise Exception('Classifier must be fit before using to predict.')
return YKHO._predict(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEmv(YKHO, nPrm):\n WKvO = nPrm.test.features\n return YKHO.model.predict_classes(WKvO, YKHO.batch_size)",
"def YEmv(YKHO, nPrm):\n Gry9 = []\n zNig = nPrm.shape[0]\n for YRbF in range(zNig):\n X3hw = YKHO.getPred(nPrm[YRbF])\n Gry9.append(X3hw)\n return Gry9",
"def yUsv(YKH... | [
"0.8007661",
"0.79747367",
"0.75888056",
"0.7549177",
"0.7494219",
"0.7315374",
"0.7279488",
"0.72777283",
"0.7276349",
"0.72576565",
"0.72376883",
"0.7140812",
"0.71398485",
"0.7136624",
"0.7134172",
"0.71298206",
"0.7104292",
"0.70932376",
"0.708103",
"0.70460993",
"0.70387... | 0.0 | -1 |
Given a list of class names to retrieve, try to fetch them from the specified list of modules and returns the list of the fetched classes. | def jdCn(yR_P, mPQc):
rV9y = None
if hasattr(yR_P, mPQc):
rV9y = getattr(yR_P, mPQc)
if not rV9y:
raise Fe2s("Error fetching '{}' in {}".format(mPQc, str(yR_P.__name__)))
return rV9y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S6mN(KZ52, t8Jk):\n G_Gx = []\n for mPQc in t8Jk:\n rV9y = None\n for yR_P in KZ52:\n if hasattr(yR_P, mPQc):\n rV9y = getattr(yR_P, mPQc)\n break\n if not rV9y:\n cEzT = [r8hN.__name__ for r8hN in KZ52 if r8hN is not None]\n ... | [
"0.7355353",
"0.724517",
"0.724517",
"0.67685664",
"0.6700736",
"0.64417726",
"0.6410508",
"0.6392882",
"0.6320888",
"0.6280333",
"0.6259211",
"0.6230871",
"0.6175392",
"0.60153294",
"0.6000275",
"0.598284",
"0.5937433",
"0.5931374",
"0.58810145",
"0.5865835",
"0.5810355",
... | 0.0 | -1 |
Normalize array along axis | def NkkI(fUYa, jDK_=None, SGf8=1e-08):
return (fUYa - fUYa.mean(axis=jDK_)) / (fUYa.std(axis=jDK_) + SGf8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnV4(ezWE: np.array, jDK_: int=-1) -> oyIN.array:\n return ezWE / ezWE.sum(jDK_, keepdims=True)",
"def NkkI(ezWE, jDK_=0):\n return ezWE / (oyIN.expand_dims(oyIN.linalg.norm(ezWE, axis=jDK_), axis=jDK_) + 1e-10)",
"def NkkI(ezWE):\n return ezWE / oyIN.mean(ezWE)",
"def NkkI(YKHO):\n YKHO.arr ... | [
"0.8611027",
"0.82802534",
"0.8259505",
"0.8129735",
"0.8033463",
"0.80197924",
"0.78627706",
"0.78221965",
"0.7816565",
"0.78076833",
"0.7804839",
"0.777155",
"0.77691156",
"0.77532685",
"0.77152437",
"0.7604308",
"0.76037693",
"0.76021314",
"0.75595003",
"0.7528705",
"0.752... | 0.72015095 | 52 |
Returns a copy of this value | def jth9(YKHO):
return jth9(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO.__class__(YKHO.getValue(recursive=False))",
"def jth9(YKHO):\n return YKHO.__class__(YKHO.name, YKHO.value)",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n... | [
"0.84310013",
"0.8151111",
"0.8022754",
"0.8022754",
"0.8022754",
"0.8022754",
"0.79299474",
"0.7918438",
"0.7918438",
"0.7918438",
"0.7918438",
"0.7918438",
"0.7918438",
"0.79146254",
"0.79146254",
"0.79146254",
"0.79146254",
"0.79146254",
"0.7904381",
"0.79030013",
"0.78945... | 0.77105117 | 53 |
This method returns the agent's url. | def qUIw(YKHO):
try:
if YKHO.data_from_search:
YWSi = YKHO.data_from_search.find('ul', {'class': 'links'})
wPdp = YWSi.find_all('a')
return wPdp[1]['href']
else:
return YKHO._ad_page_content.find('a', {'id': 'smi-link-branded'})['href']
except Exce... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKhs(YKHO):\n return YKHO.url",
"def hKhs(YKHO):\n return YKHO.url",
"def hKhs(YKHO) -> str:\n return YKHO.__url",
"def FvYA(YKHO):\n return YKHO.url",
"def hKhs(YKHO):\n return YKHO.url",
"def hKhs(YKHO):\n return YKHO.__url",
"def negx(YKHO):\n return YKHO._url",
"def hKhs(... | [
"0.7414404",
"0.7414404",
"0.7408544",
"0.7407026",
"0.7396688",
"0.7365334",
"0.7345962",
"0.7327668",
"0.72846013",
"0.7262986",
"0.7240506",
"0.7240506",
"0.7240506",
"0.7240506",
"0.7240506",
"0.72220826",
"0.7214722",
"0.7214722",
"0.7214722",
"0.7214722",
"0.7214722",
... | 0.7951735 | 0 |
This method returns the contact phone number. | def J0iy(YKHO):
try:
FGW3 = YKHO._ad_page_content.find('button', {'class': 'phone-number'})
try:
return WR89.b64decode(FGW3.attrs['data-p']).decode('ascii')
except Exception as e:
G9jH.error('Error getting contact_number. Error message: ' + tTpl.args[0])
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkQl(YKHO) -> str:\n return YKHO._contact_phone",
"def ESYf(YKHO):\n return YKHO.__phone_number",
"def VGNJ(YKHO):\n return YKHO.__phone_number",
"def JSoq(YKHO):\n return YKHO._phone_number",
"def JSoq(YKHO):\n return YKHO._phone_number",
"def JSoq(YKHO):\n return YKHO._phone_numbe... | [
"0.88254404",
"0.84374267",
"0.837574",
"0.8276317",
"0.8276317",
"0.8276317",
"0.8276317",
"0.8276317",
"0.8276317",
"0.82098514",
"0.8192067",
"0.817468",
"0.81329805",
"0.81329805",
"0.81329805",
"0.81329805",
"0.8123204",
"0.806193",
"0.806193",
"0.806193",
"0.806193",
... | 0.7648092 | 34 |
This method returns the area size. This method should only be called when retrieving commercial type listings. | def _RjA(YKHO):
try:
if YKHO.data_from_search:
U34r = YKHO.data_from_search.find('ul', {'class': 'info'}).text
KCHu = U34r.split('|')
return KCHu[1].strip()
else:
return
except Exception as e:
G9jH.error('Error getting commercial_area_size.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drdQ(YKHO):\n return YKHO._area",
"def f0tD(YKHO):\n return YKHO._size * YKHO._size",
"def f0tD(YKHO):\n return YKHO.__size * YKHO.__size",
"def f0tD(YKHO):\n return YKHO.__size * YKHO.__size",
"def f0tD(YKHO):\n return YKHO.__size * YKHO.__size",
"def f0tD(YKHO):\n return YKHO.__si... | [
"0.7485982",
"0.74843526",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
... | 0.785083 | 0 |
This method returns the area size. This method should only be called when retrieving commercial type listings. | def GE5V(YKHO):
try:
return YKHO._ad_page_content.find('div', {'id': 'smi-negotiator-photo'}).find('h2').text
except Exception as e:
G9jH.error('Error getting commercial_area_size. Error message: ' + tTpl.args[0])
return 'N/A' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _RjA(YKHO):\n try:\n if YKHO.data_from_search:\n U34r = YKHO.data_from_search.find('ul', {'class': 'info'}).text\n KCHu = U34r.split('|')\n return KCHu[1].strip()\n else:\n return\n except Exception as e:\n G9jH.error('Error getting commerc... | [
"0.785083",
"0.7485982",
"0.74843526",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"... | 0.0 | -1 |
This method returns the area size. This method should only be called when retrieving commercial type listings. | def etgO(YKHO):
try:
return YKHO._ad_page_content.find('div', {'class': 'smi-contact-numbers'}).find('div', {'class': 'phone-info'}).text.strip()
except Exception as e:
G9jH.error('Error getting commercial_area_size. Error message: ' + tTpl.args[0])
return 'N/A' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _RjA(YKHO):\n try:\n if YKHO.data_from_search:\n U34r = YKHO.data_from_search.find('ul', {'class': 'info'}).text\n KCHu = U34r.split('|')\n return KCHu[1].strip()\n else:\n return\n except Exception as e:\n G9jH.error('Error getting commerc... | [
"0.785083",
"0.7485982",
"0.74843526",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7483347",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"0.7475737",
"... | 0.0 | -1 |
A descriptive label that is associated with a build. Build names do not need to be unique. | def mWFP(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZRYA(YKHO):\n return 'Geos Build Process'",
"def qQNS(YKHO):\n return '{0}: Build branch {1} in Brew'.format(YKHO.component, YKHO.branch)",
"def ZRYA(YKHO):\n return 'QWT Build Process'",
"def UXqs(YKHO) -> str:\n return YKHO._str_representation_for('name')",
"def OUX_(YKHO):\n return No... | [
"0.7017081",
"0.6884411",
"0.68799835",
"0.666755",
"0.6656324",
"0.6631153",
"0.6624206",
"0.66065496",
"0.65709615",
"0.653252",
"0.65235776",
"0.65235776",
"0.65235776",
"0.65235776",
"0.65235776",
"0.65235776",
"0.65235776",
"0.65235776",
"0.65235776",
"0.65235776",
"0.65... | 0.0 | -1 |
Ensure an argument is an iterable. Useful when an input argument can either be a single value or a list. If a color is passed then it will be treated specially to determine if it is iterable. | def P6M2(d7pR, qfpW=False):
if GfZ5(d7pR, color=qfpW):
return d7pR
else:
return Hs6x.repeat(d7pR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfZ5(d7pR, qfpW=False):\n if type(d7pR) is str:\n return False\n elif oyIN.isscalar(d7pR):\n return False\n elif qfpW and isinstance(d7pR, (list, oyIN.ndarray)):\n if oyIN.array(d7pR).ndim == 1 and (len(d7pR) == 3 or len(d7pR) == 4):\n return False\n else:\n ... | [
"0.78758377",
"0.7681834",
"0.7180338",
"0.69464076",
"0.6803338",
"0.6738197",
"0.6622779",
"0.6622779",
"0.65699804",
"0.65364265",
"0.6491749",
"0.6467562",
"0.6467562",
"0.6447594",
"0.6388133",
"0.63851744",
"0.6368476",
"0.635712",
"0.6350462",
"0.6345256",
"0.6321228",... | 0.799665 | 0 |
Determine if a single argument is an iterable. If a color is being provided and the argument is a 1D array of length 3 or 4 then the input is taken to not be iterable. | def GfZ5(d7pR, qfpW=False):
if type(d7pR) is str:
return False
elif oyIN.isscalar(d7pR):
return False
elif qfpW and isinstance(d7pR, (list, oyIN.ndarray)):
if oyIN.array(d7pR).ndim == 1 and (len(d7pR) == 3 or len(d7pR) == 4):
return False
else:
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P6M2(d7pR, qfpW=False):\n if GfZ5(d7pR, color=qfpW):\n return d7pR\n else:\n return Hs6x.repeat(d7pR)",
"def GfZ5(WKvO):\n if isinstance(WKvO, oyIN.ndarray) and len(WKvO.shape) == 0:\n return False\n return isinstance(WKvO, (iu5r, oyIN.ndarray)) and (not isinstance(WKvO, str)... | [
"0.7336986",
"0.7004609",
"0.69610006",
"0.69092387",
"0.6736119",
"0.65527457",
"0.6487423",
"0.6435218",
"0.6425318",
"0.63837886",
"0.631231",
"0.62776107",
"0.6251844",
"0.62498367",
"0.6220157",
"0.6199212",
"0.61949193",
"0.61898166",
"0.6175157",
"0.6164176",
"0.616417... | 0.85323286 | 0 |
Determines the unit normal of the vector from a to b. | def TYNx(jzdc, Fg_i, XP5J=(0, 0, 1)):
Csk6 = Fg_i - jzdc
if Csk6.ndim == 1:
if len(Csk6) == 2:
mhAC = oyIN.array([Csk6[1], -Csk6[0]])
else:
mhAC = oyIN.cross(Csk6, XP5J)
CkYf = oyIN.linalg.norm(mhAC)
if CkYf == 0:
CkYf = 1
else:
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _JJt(jzdc, Fg_i):\n Csk6 = Fg_i - jzdc\n mhAC = oyIN.array([Csk6[1], -Csk6[0]])\n CkYf = oyIN.linalg.norm(mhAC)\n if CkYf == 0:\n Vd8L = oyIN.array([0, 0])\n else:\n Vd8L = mhAC / CkYf\n return Vd8L",
"def mhAC(jzdc, Fg_i, Z9rn):\n P6bq = Fg_i - jzdc\n Ty9i = Z9rn - Fg_i... | [
"0.8141994",
"0.7603696",
"0.7309226",
"0.72908044",
"0.7256581",
"0.7210369",
"0.71209484",
"0.70577407",
"0.7041885",
"0.70192033",
"0.7017828",
"0.7011778",
"0.6998132",
"0.6971253",
"0.6971253",
"0.6971253",
"0.6971253",
"0.6971253",
"0.6948107",
"0.69386697",
"0.69386697... | 0.70258045 | 9 |
Determines the unit normal of the vector from a to b. | def _JJt(jzdc, Fg_i):
Csk6 = Fg_i - jzdc
mhAC = oyIN.array([Csk6[1], -Csk6[0]])
CkYf = oyIN.linalg.norm(mhAC)
if CkYf == 0:
Vd8L = oyIN.array([0, 0])
else:
Vd8L = mhAC / CkYf
return Vd8L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mhAC(jzdc, Fg_i, Z9rn):\n P6bq = Fg_i - jzdc\n Ty9i = Z9rn - Fg_i\n exwG = oyIN.cross(P6bq, Ty9i)\n Q1bM = u54L(exwG)\n if Q1bM:\n return exwG / Q1bM\n return exwG",
"def vj0b(WKvO, LVAh):\n rDXN = WKvO - LVAh\n mhAC = oyIN.array([-rDXN[1], rDXN[0]])\n mhAC = mhAC / oyIN.lin... | [
"0.7603696",
"0.7309226",
"0.72908044",
"0.7256581",
"0.7210369",
"0.71209484",
"0.70577407",
"0.7041885",
"0.70258045",
"0.70258045",
"0.70192033",
"0.7017828",
"0.7011778",
"0.6998132",
"0.6971253",
"0.6971253",
"0.6971253",
"0.6971253",
"0.6971253",
"0.6948107",
"0.6938669... | 0.8141994 | 0 |
Read in text file and return a list, split by lines. | def cwSE(Ux0P):
with open(Ux0P, 'r') as eHNT:
IqQl = eHNT.read().splitlines()
return IqQl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j_e6():\n with open(wFs9, 'r') as nUeQ:\n Nqlg = nUeQ.read().splitlines()\n return Nqlg",
"def lXJo(Ux0P):\n yv6U = []\n for Nqlg in open(Ux0P):\n yv6U += Nqlg.split()\n return yv6U",
"def aNZO(lcLY):\n with open(lcLY, 'r') as DfdU:\n return DfdU.read().splitlines()",... | [
"0.81874824",
"0.810885",
"0.80672973",
"0.80544776",
"0.7978302",
"0.79781616",
"0.79772717",
"0.79765767",
"0.7975198",
"0.7951118",
"0.79094994",
"0.78583986",
"0.785704",
"0.78439444",
"0.78239214",
"0.7806301",
"0.77664125",
"0.77537805",
"0.7746909",
"0.77419955",
"0.77... | 0.0 | -1 |
Split a sequence into pieces of length n If the lengt of the sequence isn't a multiple of n, the rest is discareded. Note that nsplit will strings into individual characters. | def LIL_(Q6uT, exwG=2):
return [M_DK for M_DK in DMWo(*[iter(Q6uT)] * exwG)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GZDs(Q6uT, exwG):\n while Q6uT:\n yield Q6uT[:exwG]\n Q6uT = Q6uT[exwG:]",
"def eZzO(Q6uT, exwG):\n eKbg = []\n for YRbF in Ni9Y(0, len(Q6uT), exwG):\n eKbg.append(Q6uT[YRbF:YRbF + exwG])\n return eKbg",
"def Z0az(Q6uT, exwG):\n while Q6uT:\n yield Q6uT[:exwG]\n ... | [
"0.78079987",
"0.77989274",
"0.77152216",
"0.7706627",
"0.7706627",
"0.7625591",
"0.7537759",
"0.75058526",
"0.7499657",
"0.7422306",
"0.73496026",
"0.73412496",
"0.71717405",
"0.71664256",
"0.71398044",
"0.7116447",
"0.7092549",
"0.705458",
"0.70364064",
"0.70258796",
"0.699... | 0.79456824 | 0 |
getting the difference between two lists | def xDbA(YKHO, hsUc):
for UqER in Kt9y:
if UqER not in I_KI:
hsUc.append(UqER)
print('List difference :', hsUc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def by6d(jzdc, Fg_i):\n return [geyT for geyT in jzdc if geyT not in Fg_i]",
"def idas(jzdc, Fg_i):\n return list(set(jzdc) - set(Fg_i))",
"def srwB(Kt9y, I_KI):\n import myclasses\n nF1T = myclasses.OrderedSetn(Kt9y)\n sFCv = myclasses.OrderedSetn(I_KI)\n return list(nF1T - sFCv)",
"def by... | [
"0.8301631",
"0.82491624",
"0.8245711",
"0.8208503",
"0.81857526",
"0.8127893",
"0.8037029",
"0.80361515",
"0.8013201",
"0.8005451",
"0.7972771",
"0.79690975",
"0.794039",
"0.7931016",
"0.7912227",
"0.7899966",
"0.7853132",
"0.7841538",
"0.78172237",
"0.7801828",
"0.779509",
... | 0.7581088 | 34 |
return average of list | def qqgr(nPrm, YCNr=True, **B2fa):
if YCNr:
xJvR = [Ty9i for Ty9i in nPrm if Ty9i > 0]
else:
xJvR = nPrm
if xJvR:
return float(sum(xJvR)) / len(xJvR)
else:
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NgYo(YKHO, aO51):\n return sum(aO51) / float(len(aO51))",
"def qqgr(yv6U):\n assert len(yv6U) > 0, 'List must contain something'\n return sum(yv6U) / len(yv6U)",
"def WUEZ(BDwY):\n return float(sTKP(BDwY)) / len(BDwY)",
"def qqgr(BDwY):\n return sum(BDwY) / float(len(BDwY))",
"def WUEZ(a... | [
"0.86830765",
"0.85527617",
"0.85499364",
"0.85403466",
"0.8532704",
"0.85166186",
"0.8504273",
"0.84277874",
"0.8391862",
"0.8391862",
"0.83832353",
"0.8359317",
"0.83576685",
"0.83421457",
"0.8313318",
"0.8253992",
"0.8246177",
"0.82453096",
"0.8209369",
"0.82013243",
"0.81... | 0.0 | -1 |
Returns the rolling average from the past 30 days of the time taken for a pending app to become public. | def JaNt():
N1p7 = UzPC.cursor()
N1p7.execute('\n SELECT AVG(DATEDIFF(reviewed, nomination)) FROM versions\n RIGHT JOIN addons ON versions.addon_id = addons.id\n WHERE status = %s AND reviewed >= DATE_SUB(NOW(), INTERVAL 30 DAY)\n ', (GKAd.STATUS_PUBLIC,))
rdlD = N1p7.fetchone()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5mg(Sm0u):\n S8vG = 0\n for YRbF in range(Sm0u):\n S8vG = S8vG + rz8o[-1 - YRbF]\n S8vG = S8vG / Sm0u\n return S8vG",
"def Q_Dh(YKHO):\n return YKHO._average_annual_return(len(YKHO.stock) - 1)",
"def Q3N4():\n return 2",
"def BmCH(YKHO):\n hkxX = JGHF.objects.filter(provider=... | [
"0.62647325",
"0.61918503",
"0.5924534",
"0.5868465",
"0.58625627",
"0.58625627",
"0.58361995",
"0.58361995",
"0.58293307",
"0.58015466",
"0.5774137",
"0.5773896",
"0.5752256",
"0.57254",
"0.5713436",
"0.56815517",
"0.56677574",
"0.5649643",
"0.564904",
"0.56434554",
"0.56406... | 0.69059944 | 0 |
Calculates the descent function (essentially an average of outputs). | def xDr0(Emd4, riYg, ez0h, hpXD):
return (riYg + ez0h + hpXD) / 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAID():\n upAO, NsIy, input = (0.0, 0.8, 2)\n Cwt5 = 0.1\n for dfHy in range(100):\n nvEb = input * upAO\n P1dF = (nvEb - NsIy) ** 2\n RA_F = nvEb - NsIy\n NiVw = RA_F * input\n upAO = upAO - NiVw * Cwt5\n print('[%s]---Error: ' % dfHy + str(P1dF) + ' | Predic... | [
"0.6466747",
"0.64300805",
"0.6365649",
"0.6363602",
"0.63196295",
"0.6180387",
"0.61333656",
"0.6080401",
"0.6060852",
"0.60552526",
"0.60550517",
"0.6052169",
"0.60432404",
"0.604119",
"0.6033637",
"0.6032678",
"0.6022944",
"0.60227776",
"0.59975713",
"0.59964156",
"0.59890... | 0.6729882 | 0 |
Set new password for the selected user. | def zs0L(YKHO, Z2o0):
nPrm = Z2o0.json_body()
XP5J = Yn3K.Popen(['chpasswd'], stdin=Yn3K.PIPE)
XP5J.communicate(f'{nPrm['users']}:{nPrm['password']}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def G3s8(YKHO, uGpu):\n YKHO.password = vT87(uGpu)",
"def G3s8(YKHO, jTXt):\n YKHO.user.set_password(jTXt)\n YKHO.user.save()",
"def G3s8(YKHO, jTXt):\n D2Lq(jTXt)",
"def G3s8(YKHO, wZpg, Jee2):\n Y... | [
"0.79803723",
"0.7920377",
"0.78679246",
"0.78157353",
"0.7765942",
"0.7647061",
"0.76329637",
"0.762937",
"0.76034844",
"0.75866354",
"0.7579655",
"0.7564998",
"0.7552695",
"0.7548365",
"0.7541664",
"0.754105",
"0.75401205",
"0.75381947",
"0.7508614",
"0.74955165",
"0.749551... | 0.0 | -1 |
Takes a dictionary based representation of an adjacency list and returns a dict of dicts based representation. | def K1TF(EAqi):
ZfUD = EAqi.popitem()
EAqi[ZfUD[0]] = ZfUD[1]
if not isinstance(ZfUD[1], dict):
TDnD = {}
for H5ew, BWXx in EAqi.items():
TDnD[H5ew] = {Ty9i: {} for Ty9i in BWXx}
EAqi = TDnD
return EAqi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return {'node': [Ty9i.to_dict() for Ty9i in YKHO.vertices], 'edge': [tTpl.to_dict() for tTpl in YKHO.edges]}",
"def MNRr(Q6uT):\n return dict([(G1Hx, [Csk6[G1Hx] for Csk6 in Q6uT]) for G1Hx in Q6uT[0].keys()])",
"def DkjJ(NhA2):\n QC1q = {}\n for D70y in NhA2:\n uFPI, aUWu ... | [
"0.644169",
"0.64118874",
"0.6406731",
"0.6357921",
"0.63449204",
"0.62879777",
"0.6256549",
"0.622696",
"0.6204013",
"0.6200565",
"0.6200565",
"0.61307764",
"0.6106532",
"0.6106442",
"0.60702085",
"0.60700375",
"0.6063934",
"0.60593444",
"0.6057264",
"0.60493577",
"0.6041453... | 0.70432454 | 0 |
Get a connection to the Azure Resource Mananger | def H7Ii(YKHO):
if YKHO.FILE_PATH is not None and YKHO.FILE_PATH != '':
from azure.common.client_factory import get_client_from_auth_file
return get_client_from_auth_file(bHne)
elif YKHO.KEY is not None and YKHO.KEY != '':
from azure.common.credentials import ServicePrincipalCredentials
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lxP0(YKHO):\n NtEF, jTXt = YKHO.get_service_account()\n XDpN = YKHO.get_mgr_endpoint()\n UzPC = qcae.AdminAPI(url=XDpN, auth=(NtEF, jTXt))\n return UzPC",
"def Ykhp(YKHO):\n return qnvx(aml_subscription_id=YKHO.config.aml.subscription_id, aml_resource_group=YKHO.config.aml.resource_group, aml_... | [
"0.722712",
"0.6813952",
"0.6333525",
"0.6321604",
"0.6321604",
"0.63075703",
"0.623223",
"0.6197428",
"0.617017",
"0.6163693",
"0.6098034",
"0.6081265",
"0.6079971",
"0.6069428",
"0.60440797",
"0.60398966",
"0.6013965",
"0.59919834",
"0.5972519",
"0.59657973",
"0.5958683",
... | 0.5930493 | 24 |
Sets the with_chartmuseum of this GeneralInfo. | def GxWx(YKHO, GxWx):
YKHO._with_chartmuseum = GxWx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t0Fz(YKHO, a88W):\n from a88W import Chart\n if not isinstance(a88W, Chart):\n raise TypeError(str(a88W) + ' is not a chart.')\n if not a88W.name in YKHO.atlas:\n raise ValueError('The chart must be defined on the ' + str(YKHO))\n YKHO.def_chart = a88W",
"def Lam0(YKHO, a88W):\n ... | [
"0.5357564",
"0.52954394",
"0.5294374",
"0.48282018",
"0.48214552",
"0.47920153",
"0.46998644",
"0.46490178",
"0.46194413",
"0.45856485",
"0.4565748",
"0.45516458",
"0.45475894",
"0.45461196",
"0.45446724",
"0.45351878",
"0.45351878",
"0.4531328",
"0.45309544",
"0.45282197",
... | 0.8486148 | 0 |