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 |
|---|---|---|---|---|---|---|
Get a list of all variables used in this expression. | def lSnF(YKHO):
yvT9 = []
for YRbF in YKHO.items:
yvT9 += YRbF.get_all_variables()
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSnF(YKHO):\n return []",
"def lSnF(YKHO):\n return YKHO.item.get_all_variables()",
"def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def qDIe(YKHO):\n return YKHO.project.get_variable_names() + Y... | [
"0.80978125",
"0.7943349",
"0.79398817",
"0.7904174",
"0.7858665",
"0.77603346",
"0.7740691",
"0.771654",
"0.7668793",
"0.76653355",
"0.766425",
"0.7626891",
"0.76187885",
"0.7537116",
"0.75356245",
"0.75185627",
"0.7511451",
"0.74843293",
"0.74525255",
"0.74407166",
"0.74282... | 0.7729506 | 9 |
Get a list of all variables used in this expression. | def lSnF(YKHO):
yvT9 = []
for YRbF in YKHO.items:
yvT9 += YRbF.get_all_variables()
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSnF(YKHO):\n return []",
"def lSnF(YKHO):\n return YKHO.item.get_all_variables()",
"def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def qDIe(YKHO):\n return YKHO.project.get_variable_names() + Y... | [
"0.80978125",
"0.7943349",
"0.79398817",
"0.7904174",
"0.7858665",
"0.77603346",
"0.7740691",
"0.771654",
"0.7668793",
"0.76653355",
"0.766425",
"0.7626891",
"0.76187885",
"0.7537116",
"0.75356245",
"0.75185627",
"0.7511451",
"0.74843293",
"0.74525255",
"0.74407166",
"0.74282... | 0.7729506 | 8 |
Get a list of all variables used in this expression. | def lSnF(YKHO):
return YKHO.item.get_all_variables() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSnF(YKHO):\n return []",
"def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def qDIe(YKHO):\n return YKHO.project.get_variable_names() + YKHO.design.get_variable_names()",
"def lSnF(YKHO):\n retur... | [
"0.80978125",
"0.79398817",
"0.7904174",
"0.7858665",
"0.77603346",
"0.7740691",
"0.7729506",
"0.7729506",
"0.7729506",
"0.771654",
"0.7668793",
"0.76653355",
"0.766425",
"0.7626891",
"0.76187885",
"0.7537116",
"0.75356245",
"0.75185627",
"0.7511451",
"0.74843293",
"0.7452525... | 0.7943349 | 1 |
Get a list of all variables used in this expression. | def lSnF(YKHO):
return [YKHO.item] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSnF(YKHO):\n return []",
"def lSnF(YKHO):\n return YKHO.item.get_all_variables()",
"def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def qDIe(YKHO):\n return YKHO.project.get_variable_names() + Y... | [
"0.80978125",
"0.7943349",
"0.79398817",
"0.7904174",
"0.7858665",
"0.7740691",
"0.7729506",
"0.7729506",
"0.7729506",
"0.771654",
"0.7668793",
"0.76653355",
"0.766425",
"0.7626891",
"0.76187885",
"0.7537116",
"0.75356245",
"0.75185627",
"0.7511451",
"0.74843293",
"0.74525255... | 0.77603346 | 5 |
Get a list of all variables used in this expression. | def lSnF(YKHO):
return YKHO.start.get_all_variables() + YKHO.end.get_all_variables() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSnF(YKHO):\n return []",
"def lSnF(YKHO):\n return YKHO.item.get_all_variables()",
"def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def qDIe(YKHO):\n return YKHO.project.get_variable_names() + Y... | [
"0.80978125",
"0.7943349",
"0.79398817",
"0.7904174",
"0.7858665",
"0.77603346",
"0.7740691",
"0.7729506",
"0.7729506",
"0.7729506",
"0.7668793",
"0.76653355",
"0.766425",
"0.7626891",
"0.76187885",
"0.7537116",
"0.75356245",
"0.75185627",
"0.7511451",
"0.74843293",
"0.745252... | 0.771654 | 10 |
Returns the transform object associated with the volumetric structure which is a general description of the mapping from the values to the world space. Returns | def K3I5(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wStH(YKHO):\n o9mH = YKHO.stp_to_camera_transform()\n MmOs = YKHO.object_to_stp_transform()\n RzAt = o9mH.dot(MmOs)\n return RzAt",
"def K3I5(YKHO, sxwW='visual', DxX5='render'):\n return YKHO.transforms.get_transform(sxwW, DxX5)",
"def K3I5(YKHO):\n return YKHO.transform",
"def qMpe(YK... | [
"0.70834625",
"0.67068064",
"0.6633441",
"0.6492114",
"0.64615107",
"0.6367176",
"0.6365252",
"0.6336638",
"0.6329942",
"0.6305936",
"0.63031137",
"0.6285249",
"0.6256497",
"0.6220868",
"0.61806136",
"0.61158156",
"0.6079321",
"0.60720915",
"0.60481066",
"0.6044877",
"0.60359... | 0.6404744 | 5 |
Test compose different dimension exception | def rPvs(YKHO):
YKHO.assertRaises(eP6a, JmbU(oyIN.eye(4)).compose, JmbU(oyIN.eye(16)))
YKHO.assertRaises(eP6a, JmbU(oyIN.eye(4)).compose, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojd7(ywwl):\n LtxH = None\n with trZe.raises(ValueError):\n BfDw._tuple(LtxH, ywwl)",
"def zlyO():\n k_Cy = LD1b = oyIN.array([0]).reshape(-1, 1, 1, 1)\n K1k_ = 'Require at most 3-D'\n with trZe.raises(ValueError, match=K1k_):\n bGrB = q0Bk(k_Cy, LD1b)",
"def PNgr(ywwl):\n w... | [
"0.6707328",
"0.6698565",
"0.66573185",
"0.6655831",
"0.6642506",
"0.65969753",
"0.65427613",
"0.65318185",
"0.6505272",
"0.6463453",
"0.64556426",
"0.64512056",
"0.64505684",
"0.6423707",
"0.6422534",
"0.6403702",
"0.63876843",
"0.6348737",
"0.63224447",
"0.6279241",
"0.6238... | 0.67099845 | 0 |
Test subtract method raises exceptions. | def Vo1g(YKHO):
iPoY = JmbU(YKHO.chiI)
KmZT = JmbU(oyIN.eye(16))
YKHO.assertRaises(eP6a, iPoY.subtract, KmZT)
YKHO.assertRaises(eP6a, iPoY.subtract, 5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WDhj(YKHO):\n YKHO.assertEqual(yhEv.subtract(10, 5), 5)\n YKHO.assertEqual(yhEv.subtract(-1, 1), -2)\n YKHO.assertEqual(yhEv.subtract(-1, -1), 0)",
"def D5G8(YKHO):\n try:\n YKHO.assertEqual(wncN(0, -6), 7)\n except Exception as error:\n print(f'Got error in {tq_1.stack()[0][3]},... | [
"0.8543303",
"0.84343976",
"0.81551117",
"0.80975556",
"0.79989403",
"0.79771197",
"0.7929341",
"0.7928706",
"0.7911542",
"0.78966004",
"0.7886877",
"0.7886877",
"0.77732474",
"0.76943123",
"0.7660907",
"0.7506185",
"0.7497504",
"0.7485219",
"0.7481085",
"0.7476953",
"0.74769... | 0.6984619 | 33 |
Update the threshold that is used to maintain a minimum stepsize. | def eqY7(YKHO, a1PO):
Jtpl = YKHO.budget
YKHO.threshold = YKHO.init_threshold * YKHO.diameter * ((Jtpl - a1PO) / YKHO.budget) ** YKHO.decay_factor | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OB7A(YKHO, gwAu):\n pass",
"def uNy5(YKHO):\n YKHO.update_minimum_size()",
"def gwAu(YKHO, CHXu):\n pass",
"def v_Ku(YKHO, AM1O, o7DN, A0ht):\n AM1O.Slider.minimum = 0\n AM1O.SpinBoxL.setRange(0, A0ht)\n AM1O.Slider.maximum = A0ht\n AM1O.SpinBoxR.setRange(0, A0ht)\n if A0ht != 0:\... | [
"0.6310479",
"0.62077695",
"0.6173157",
"0.61484355",
"0.6143146",
"0.61056507",
"0.603298",
"0.60261154",
"0.6012084",
"0.5954494",
"0.59117323",
"0.5838112",
"0.5838112",
"0.5830882",
"0.5830882",
"0.5830882",
"0.5830882",
"0.5830882",
"0.5730077",
"0.57173675",
"0.5716788"... | 0.67875904 | 0 |
Constructor. Pass in a handle to player. Needed for when moving platforms collide with the player. | def FIMM(YKHO, oyg0):
YKHO.wall_list = a9eO.sprite.Group()
YKHO.enemy_list = a9eO.sprite.Group()
YKHO.sludge = a9eO.sprite.Group()
YKHO.consumeable = a9eO.sprite.Group()
YKHO.can_climb = a9eO.sprite.Group()
YKHO.player = oyg0
YKHO.spore_list = [feBX, TvQj]
YKHO.active_spore = YKHO.spore_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, oyg0):\n YKHO.player = oyg0",
"def FIMM(YKHO, oyg0):\n YKHO.player = oyg0",
"def FIMM(YKHO, *qIxc, **B2fa):\n super(mVZ4, YKHO).__init__(*qIxc, **B2fa)",
"def FIMM(YKHO, oyg0):\n YKHO.platform_list = a9eO.sprite.Group()\n YKHO.enemy_list = a9eO.sprite.Group()\n YKHO.player = ... | [
"0.77233726",
"0.75955576",
"0.70801985",
"0.6983557",
"0.69656616",
"0.6910456",
"0.6891195",
"0.68370837",
"0.68368727",
"0.67917955",
"0.6765255",
"0.6742759",
"0.6730675",
"0.6727625",
"0.6715831",
"0.66318893",
"0.65596664",
"0.6551567",
"0.65365624",
"0.6518062",
"0.648... | 0.63516337 | 30 |
Get Iam Policy request. | def zJtK(EFMe):
Z0X4 = YLXg.GetMessageModule().DataplexProjectsLocationsLakesZonesAssetsGetIamPolicyRequest(resource=EFMe.RelativeName())
return YLXg.GetClientInstance().projects_locations_lakes_zones_assets.GetIamPolicy(Z0X4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aEAQ(YKHO) -> YrBT[[N1Ai.GetIamPolicyRequest], u0K_.Policy]:\n if 'get_iam_policy' not in YKHO._stubs:\n YKHO._stubs['get_iam_policy'] = YKHO.grpc_channel.unary_unary('/google.iam.v1.IAMPolicy/GetIamPolicy', request_serializer=N1Ai.GetIamPolicyRequest.SerializeToString, response_deserializer=u0K_.Pol... | [
"0.70523757",
"0.70523757",
"0.70403415",
"0.667092",
"0.66670644",
"0.66670644",
"0.66670644",
"0.66670644",
"0.66670644",
"0.66670644",
"0.6593553",
"0.64680094",
"0.644721",
"0.644721",
"0.6422086",
"0.6422086",
"0.6422086",
"0.63572264",
"0.63489354",
"0.63489354",
"0.633... | 0.0 | -1 |
Add IAM policy binding request. | def MTKO(EFMe, mS46, LmAn):
Qabx = zJtK(EFMe)
WMGU.AddBindingToIamPolicy(YLXg.GetMessageModule().GoogleIamV1Binding, Qabx, mS46, LmAn)
return kVQY(EFMe, Qabx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UM6z(YKHO, TBsA, **B2fa):\n HhGF = ['body', 'pretty']\n HhGF.append('callback')\n NArs = locals()\n for H5ew, wEf2 in BVGD(NArs['kwargs']):\n if H5ew not in HhGF:\n raise TypeError(\"Got an unexpected keyword argument '%s' to method create_policy_binding\" % H5ew)\n NArs[H5... | [
"0.62478286",
"0.62162316",
"0.617626",
"0.61569417",
"0.61168265",
"0.5954912",
"0.59200424",
"0.5878047",
"0.58152145",
"0.58152145",
"0.5776248",
"0.5659078",
"0.5642616",
"0.5622709",
"0.55267304",
"0.5494093",
"0.5457817",
"0.5449911",
"0.5415036",
"0.5352856",
"0.533413... | 0.6528228 | 0 |
Compute the angular mean dispersion (circular mean) in degrees within rolling temporal windows. | def Slyq(nPrm: np.ndarray, sFCx: np.ndarray, bW5R: int) -> oyIN.ndarray:
dixj = oyIN.full((nPrm.shape[0], sFCx.shape[0]), -1)
for fymP in e0tR(sFCx.shape[0]):
JiHy = int(sFCx[fymP] * bW5R)
for kMuC in e0tR(JiHy, dixj.shape[0] + 1):
tHdw = oyIN.deg2rad(nPrm[kMuC - JiHy:kMuC])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z4Kq(bLm4):\n tjFQ = oyIN.column_stack((oyIN.cos(bLm4), oyIN.sin(bLm4)))\n b8pO = oyIN.mean(tjFQ, axis=0)\n RxCZ = oyIN.arctan2(b8pO[1], b8pO[0])\n return RxCZ",
"def KG6A(YKHO):\n xryH = YKHO.represent_as(BHsk.CartesianRepresentation)\n return xryH.pos.cross(xryH.vel).xyz",
"def UK6W(YKH... | [
"0.6310264",
"0.6262659",
"0.61605465",
"0.5904571",
"0.58919764",
"0.5838617",
"0.58296263",
"0.58276665",
"0.5784816",
"0.5784243",
"0.57602656",
"0.57315356",
"0.5685624",
"0.566589",
"0.5662045",
"0.5644741",
"0.5597444",
"0.5586954",
"0.5564045",
"0.5557412",
"0.5544385"... | 0.6963929 | 0 |
Gives the derivative of X with respect to x = M. To construct this derivative, we use a monetary shock. | def ygXV(m0HX, EcVT):
assert EcVT.shape[1] == 1
ssN5 = EcVT.copy()
ezlb = EcVT.copy()
SGf8 = -0.005
ezlb[IGtT] = ezlb[IGtT] + SGf8
ssN5[m0HX.nX:m0HX.nXY] = m0HX.F(ssN5[m0HX.interpstates])
ssN5[m0HX.nXY:] = m0HX.Static(ssN5)
ezlb[m0HX.nX:m0HX.nXY] = m0HX.F(ezlb[m0HX.interpstates])
ezl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yk4i(YKHO, WKvO, T4Wy=1):\n if 'csaps' in str(YKHO.sm_.__class__):\n VVyp = YKHO.sm_(WKvO, nu=T4Wy)\n else:\n if T4Wy == 1:\n hT1Q = YKHO.sm_.coef_\n else:\n hT1Q = 0\n VVyp = oyIN.ones(WKvO.shape[0]) * hT1Q\n return VVyp",
"def BXW4(YKHO, WKvO, caa_... | [
"0.6499606",
"0.6490313",
"0.6368689",
"0.63111013",
"0.6245818",
"0.6152299",
"0.6127913",
"0.60921854",
"0.6060426",
"0.6022576",
"0.60177994",
"0.5936981",
"0.5907083",
"0.59057456",
"0.59057456",
"0.58652425",
"0.58338374",
"0.58258325",
"0.57984245",
"0.5792808",
"0.5749... | 0.65564746 | 0 |
r""" Assume basis is orthonormal Assume first coefficient is the coefficient of the constant basis. Remove this assumption by extracting array index of constant term from indices Returns | def HYGq(FN88, _0VL):
vO0m = _0VL.shape[0]
jtJE, F0Hv = FN88.shape
assert jtJE == _0VL.shape[1]
JzWV = oyIN.zeros((vO0m, F0Hv), oyIN.double)
WNTv = oyIN.zeros((vO0m, F0Hv), oyIN.double)
I8JS = oyIN.zeros(F0Hv)
for P2GO in range(jtJE):
d6pt = _0VL[:, P2GO]
yPcN = FN88[P2GO, :]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MUz_(BOmW, QyVM, WKvO):\n return BOmW[QyVM.all + QyVM.getPreceding(1)] * BOmW[QyVM.all + QyVM.getSpecial()]",
"def NF5s(YKHO, Y7fn):\n return oyIN.where(oyIN.all([YKHO.knot_vector[:-1] <= Y7fn, Y7fn < YKHO.knot_vector[1:]], axis=0), 1.0, 0.0)",
"def pIDK(Cn0B, mUZN, pZ0g, KCHu=1):\n d3C6 = []\n ... | [
"0.5880671",
"0.5801723",
"0.57766336",
"0.57378864",
"0.5707526",
"0.567324",
"0.55965847",
"0.55815876",
"0.5559865",
"0.55331016",
"0.54956263",
"0.54732686",
"0.54708564",
"0.5458683",
"0.54552466",
"0.542093",
"0.53867656",
"0.538055",
"0.53787243",
"0.5372906",
"0.53650... | 0.5424754 | 15 |
r"""Rate (/s) counter for snmpqosqos_packets_dropped. | def cQIN(YKHO):
try:
return YKHO._snmpqosqos_packets_droppedrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oy7l(YKHO):\n try:\n return YKHO._snmpqosqos_packets_receivedrate\n except Exception as e:\n raise tTpl",
"def ccLV(YKHO):\n try:\n return YKHO._snmpqosqos_packets_bypassedrate\n except Exception as e:\n raise tTpl",
"def OuCt(YKHO):\n try:\n return YKHO._s... | [
"0.7286956",
"0.7191867",
"0.6688163",
"0.6614529",
"0.6593207",
"0.65640306",
"0.6485627",
"0.6413397",
"0.6364895",
"0.6363683",
"0.63273954",
"0.62655324",
"0.62379193",
"0.6200901",
"0.6195245",
"0.6182774",
"0.61385524",
"0.61044085",
"0.6064798",
"0.60136294",
"0.598895... | 0.8551492 | 0 |
r"""Rate (/s) counter for snmpqosqos_session_recycle_failure. | def rid0(YKHO):
try:
return YKHO._snmpqosqos_session_recycle_failurerate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O2iY(YKHO):\n try:\n return YKHO._snmpqosqos_recycle_failed_sessionrate\n except Exception as e:\n raise tTpl",
"def ckfG(YKHO):\n try:\n return YKHO._snmpqosqos_recycle_failed_backlograte\n except Exception as e:\n raise tTpl",
"def wEJO(YKHO):\n try:\n re... | [
"0.8524226",
"0.76388043",
"0.7359843",
"0.7290599",
"0.7272093",
"0.7129601",
"0.6864387",
"0.6815921",
"0.671674",
"0.67049193",
"0.6703932",
"0.6689132",
"0.6597033",
"0.6531689",
"0.653054",
"0.6494668",
"0.6347303",
"0.63375187",
"0.6314215",
"0.63141274",
"0.63118356",
... | 0.7644068 | 1 |
r"""Rate (/s) counter for snmpqosqos_error_api_ses_invalidpcb. | def Ltwe(YKHO):
try:
return YKHO._snmpqosqos_error_api_ses_invalidpcbrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EJbB(YKHO):\n try:\n return YKHO._snmpqosqos_error_api_ses_notreadyrate\n except Exception as e:\n raise tTpl",
"def bHCa(YKHO):\n try:\n return YKHO._snmpqosqos_error_api_ses_delrate\n except Exception as e:\n raise tTpl",
"def wUZP(YKHO):\n try:\n return ... | [
"0.7713384",
"0.7499282",
"0.7353236",
"0.73108083",
"0.71489924",
"0.70570755",
"0.7052227",
"0.69479406",
"0.68740344",
"0.680726",
"0.6730087",
"0.6621808",
"0.66044676",
"0.64353967",
"0.6340968",
"0.6218662",
"0.6130596",
"0.60919964",
"0.60747814",
"0.6041276",
"0.60190... | 0.70129395 | 7 |
r"""Rate (/s) counter for snmpqosqos_error_create_action_failed. | def TRaW(YKHO):
try:
return YKHO._snmpqosqos_error_create_action_failedrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VkHf(YKHO):\n try:\n return YKHO._snmpqosqos_error_modify_action_failedrate\n except Exception as e:\n raise tTpl",
"def r34B(YKHO):\n try:\n return YKHO._snmpqosqos_error_create_policy_failedrate\n except Exception as e:\n raise tTpl",
"def SwYx(YKHO):\n try:\n ... | [
"0.7811561",
"0.75555265",
"0.7426393",
"0.7311139",
"0.71263903",
"0.6823778",
"0.6753163",
"0.6749375",
"0.6631528",
"0.64939284",
"0.64633626",
"0.6438536",
"0.6350528",
"0.63099945",
"0.6192494",
"0.61509234",
"0.6145909",
"0.6056088",
"0.60402185",
"0.60378426",
"0.59734... | 0.83103323 | 0 |
r"""Rate (/s) counter for snmpqosqos_error_create_policy_failed. | def r34B(YKHO):
try:
return YKHO._snmpqosqos_error_create_policy_failedrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRaW(YKHO):\n try:\n return YKHO._snmpqosqos_error_create_action_failedrate\n except Exception as e:\n raise tTpl",
"def wUZP(YKHO):\n try:\n return YKHO._snmpqosqos_error_libqos_api_failuresrate\n except Exception as e:\n raise tTpl",
"def j2zM(YKHO):\n try:\n ... | [
"0.7671828",
"0.74659586",
"0.74198437",
"0.73809165",
"0.71918",
"0.687996",
"0.67553145",
"0.65671927",
"0.65642506",
"0.65613943",
"0.64792514",
"0.643909",
"0.6437164",
"0.6413665",
"0.624404",
"0.6223264",
"0.62097156",
"0.613779",
"0.60962695",
"0.6090114",
"0.60513484"... | 0.8282646 | 0 |
r"""Rate (/s) counter for snmpqosqos_error_api_ses_del. | def bHCa(YKHO):
try:
return YKHO._snmpqosqos_error_api_ses_delrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7ba(YKHO):\n try:\n return YKHO._snmpqosqos_error_api_ses_del\n except Exception as e:\n raise tTpl",
"def SwYx(YKHO):\n try:\n return YKHO._snmpqosqos_error_remove_action_failedrate\n except Exception as e:\n raise tTpl",
"def j2zM(YKHO):\n try:\n return ... | [
"0.7500909",
"0.7376008",
"0.72187245",
"0.71497154",
"0.7149441",
"0.7101706",
"0.7045971",
"0.69036466",
"0.689447",
"0.6759696",
"0.6730626",
"0.6682966",
"0.65616864",
"0.6513153",
"0.6419608",
"0.6324363",
"0.62629634",
"0.6239507",
"0.614929",
"0.61485535",
"0.61324877"... | 0.85873413 | 0 |
r"""Rate (/s) counter for snmpqosqos_error_remove_action_failed. | def SwYx(YKHO):
try:
return YKHO._snmpqosqos_error_remove_action_failedrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VkHf(YKHO):\n try:\n return YKHO._snmpqosqos_error_modify_action_failedrate\n except Exception as e:\n raise tTpl",
"def j2zM(YKHO):\n try:\n return YKHO._snmpqosqos_error_remove_policy_failedrate\n except Exception as e:\n raise tTpl",
"def bHCa(YKHO):\n try:\n ... | [
"0.7699618",
"0.767356",
"0.7193298",
"0.71799517",
"0.71702516",
"0.708217",
"0.6805812",
"0.6753135",
"0.6727035",
"0.6520482",
"0.65200025",
"0.64926404",
"0.6424991",
"0.6327153",
"0.63178474",
"0.6262945",
"0.619134",
"0.61879855",
"0.6172559",
"0.6171245",
"0.6077923",
... | 0.83561087 | 0 |
r"""Rate (/s) counter for snmpqosqos_error_api_ses_rem_other. | def bR3E(YKHO):
try:
return YKHO._snmpqosqos_error_api_ses_rem_otherrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fene(YKHO):\n try:\n return YKHO._snmpqosqos_error_api_ses_rem_other\n except Exception as e:\n raise tTpl",
"def bHCa(YKHO):\n try:\n return YKHO._snmpqosqos_error_api_ses_delrate\n except Exception as e:\n raise tTpl",
"def O2iY(YKHO):\n try:\n return YKH... | [
"0.7299262",
"0.71162575",
"0.6897665",
"0.6716733",
"0.6693406",
"0.6681297",
"0.6608652",
"0.65422493",
"0.65092754",
"0.64496523",
"0.6254512",
"0.623182",
"0.6210969",
"0.6049875",
"0.59940404",
"0.59835285",
"0.5979369",
"0.5943469",
"0.5942942",
"0.589408",
"0.5884096",... | 0.6794591 | 3 |
r"""Rate (/s) counter for snmpqosqos_sch_peer_msgs. | def to3a(YKHO):
try:
return YKHO._snmpqosqos_sch_peer_msgsrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSlk(YKHO):\n try:\n return YKHO._snmpqosqos_sch_session_connsrate\n except Exception as e:\n raise tTpl",
"def MKn3(YKHO):\n try:\n return YKHO._snmpqosqos_sch_links_updatedrate\n except Exception as e:\n raise tTpl",
"def kJvU(YKHO):\n try:\n return YKHO.... | [
"0.7004913",
"0.6767166",
"0.6745489",
"0.66982174",
"0.6651338",
"0.6595485",
"0.64905494",
"0.6482608",
"0.6305257",
"0.62954825",
"0.6251399",
"0.6223874",
"0.6212787",
"0.61890745",
"0.605054",
"0.601168",
"0.5998371",
"0.59902513",
"0.5938576",
"0.5936261",
"0.5897637",
... | 0.8401591 | 0 |
r"""Rate (/s) counter for snmpqosqos_error_cli_unknown. | def sLAB(YKHO):
try:
return YKHO._snmpqosqos_error_cli_unknownrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wUZP(YKHO):\n try:\n return YKHO._snmpqosqos_error_libqos_api_failuresrate\n except Exception as e:\n raise tTpl",
"def EJbB(YKHO):\n try:\n return YKHO._snmpqosqos_error_api_ses_notreadyrate\n except Exception as e:\n raise tTpl",
"def bHCa(YKHO):\n try:\n ... | [
"0.70610523",
"0.67732805",
"0.6702273",
"0.66193336",
"0.6567103",
"0.64912593",
"0.64159334",
"0.63883984",
"0.6350264",
"0.6348433",
"0.6304386",
"0.6274934",
"0.6099984",
"0.6088802",
"0.5989531",
"0.59751844",
"0.5973026",
"0.5937526",
"0.5851643",
"0.5739578",
"0.572516... | 0.8089155 | 0 |
r"""Rate (/s) counter for snmpqosqos_error_remove_policy_failed. | def j2zM(YKHO):
try:
return YKHO._snmpqosqos_error_remove_policy_failedrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SwYx(YKHO):\n try:\n return YKHO._snmpqosqos_error_remove_action_failedrate\n except Exception as e:\n raise tTpl",
"def VkHf(YKHO):\n try:\n return YKHO._snmpqosqos_error_modify_action_failedrate\n except Exception as e:\n raise tTpl",
"def O2iY(YKHO):\n try:\n ... | [
"0.79074883",
"0.734597",
"0.728128",
"0.7242667",
"0.72302955",
"0.7209305",
"0.683424",
"0.6800642",
"0.67437935",
"0.6605925",
"0.6535829",
"0.6506101",
"0.64577734",
"0.6426275",
"0.6411705",
"0.63831234",
"0.6317246",
"0.6306756",
"0.62161016",
"0.6195891",
"0.6191892",
... | 0.82989246 | 0 |
r"""Rate (/s) counter for snmpqosqos_sch_session_conns_removed. | def URD4(YKHO):
try:
return YKHO._snmpqosqos_sch_session_conns_removedrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uil6(YKHO):\n try:\n return YKHO._snmpqosqos_sch_sessions_deletedrate\n except Exception as e:\n raise tTpl",
"def mSlk(YKHO):\n try:\n return YKHO._snmpqosqos_sch_session_connsrate\n except Exception as e:\n raise tTpl",
"def rs5l(YKHO):\n try:\n return YK... | [
"0.7588694",
"0.7421742",
"0.721197",
"0.67902607",
"0.66627216",
"0.6618756",
"0.65080243",
"0.6503047",
"0.6436936",
"0.63082063",
"0.63033795",
"0.6254867",
"0.62029964",
"0.61891526",
"0.61705494",
"0.6163691",
"0.61502177",
"0.6149789",
"0.61386496",
"0.604491",
"0.60296... | 0.8773861 | 0 |
r"""Rate (/s) counter for snmpqosqos_flow_recycles. | def e4rC(YKHO):
try:
return YKHO._snmpqosqos_flow_recyclesrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wmZ6(YKHO):\n try:\n return YKHO._snmpqosqos_sch_links_createdrate\n except Exception as e:\n raise tTpl",
"def MKn3(YKHO):\n try:\n return YKHO._snmpqosqos_sch_links_updatedrate\n except Exception as e:\n raise tTpl",
"def YNmk(YKHO):\n try:\n return YKHO.... | [
"0.6637304",
"0.66365385",
"0.6502883",
"0.6488537",
"0.6430619",
"0.6423771",
"0.63754267",
"0.63456404",
"0.6310266",
"0.62749636",
"0.62459975",
"0.622104",
"0.6188316",
"0.6159773",
"0.61069846",
"0.61012113",
"0.60811865",
"0.6043905",
"0.6016351",
"0.59970784",
"0.59348... | 0.83243144 | 0 |
r"""Rate (/s) counter for snmpqosqos_policy_reeval. | def Vetg(YKHO):
try:
return YKHO._snmpqosqos_policy_reevalrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e4rC(YKHO):\n try:\n return YKHO._snmpqosqos_flow_recyclesrate\n except Exception as e:\n raise tTpl",
"def kJvU(YKHO):\n try:\n return YKHO._snmpqosqos_sch_sdrr_nodesrate\n except Exception as e:\n raise tTpl",
"def wZtM(YKHO):\n try:\n return YKHO._snmpqo... | [
"0.70911425",
"0.66635823",
"0.66515905",
"0.6466247",
"0.6442681",
"0.6356864",
"0.6353556",
"0.6336323",
"0.63201284",
"0.62508607",
"0.62326664",
"0.6214923",
"0.61899626",
"0.61815476",
"0.6131893",
"0.6091616",
"0.6005812",
"0.6002035",
"0.59145904",
"0.59038264",
"0.590... | 0.83304065 | 0 |
r"""Rate (/s) counter for snmpqosqos_error_api_ses_notready. | def EJbB(YKHO):
try:
return YKHO._snmpqosqos_error_api_ses_notreadyrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHCa(YKHO):\n try:\n return YKHO._snmpqosqos_error_api_ses_delrate\n except Exception as e:\n raise tTpl",
"def wUZP(YKHO):\n try:\n return YKHO._snmpqosqos_error_libqos_api_failuresrate\n except Exception as e:\n raise tTpl",
"def hRuA(YKHO):\n try:\n retu... | [
"0.73602164",
"0.7147599",
"0.70413965",
"0.70216656",
"0.69907033",
"0.69522166",
"0.6431358",
"0.64138323",
"0.6322593",
"0.6283399",
"0.6259915",
"0.6254148",
"0.6238311",
"0.61899865",
"0.6071316",
"0.6030395",
"0.60276574",
"0.60194665",
"0.6018445",
"0.59694016",
"0.595... | 0.8283269 | 0 |
r"""Rate (/s) counter for snmpqosqos_error_ipc. | def OrW9(YKHO):
try:
return YKHO._snmpqosqos_error_ipcrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wUZP(YKHO):\n try:\n return YKHO._snmpqosqos_error_libqos_api_failuresrate\n except Exception as e:\n raise tTpl",
"def VkHf(YKHO):\n try:\n return YKHO._snmpqosqos_error_modify_action_failedrate\n except Exception as e:\n raise tTpl",
"def O2iY(YKHO):\n try:\n ... | [
"0.71528363",
"0.6988104",
"0.6828804",
"0.66507965",
"0.66326296",
"0.6627339",
"0.6593462",
"0.6564627",
"0.65629447",
"0.6517099",
"0.6448969",
"0.64383364",
"0.6402898",
"0.6375774",
"0.63106585",
"0.628205",
"0.62608963",
"0.6210926",
"0.6190698",
"0.6185906",
"0.6150741... | 0.6244157 | 17 |
r"""Rate (/s) counter for snmpqosqos_error_modify_action_failed. | def VkHf(YKHO):
try:
return YKHO._snmpqosqos_error_modify_action_failedrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SwYx(YKHO):\n try:\n return YKHO._snmpqosqos_error_remove_action_failedrate\n except Exception as e:\n raise tTpl",
"def TRaW(YKHO):\n try:\n return YKHO._snmpqosqos_error_create_action_failedrate\n except Exception as e:\n raise tTpl",
"def wUZP(YKHO):\n try:\n ... | [
"0.77292246",
"0.759309",
"0.74054444",
"0.72246885",
"0.71408576",
"0.7040961",
"0.6948194",
"0.67986596",
"0.67285997",
"0.6711979",
"0.66329205",
"0.6622457",
"0.6611191",
"0.63838834",
"0.6373918",
"0.63624483",
"0.6240896",
"0.6180586",
"0.60557204",
"0.60182726",
"0.601... | 0.8546603 | 0 |
r"""Rate (/s) counter for snmpqosqos_error_api_ses_rem_notinsession. | def TVvL(YKHO):
try:
return YKHO._snmpqosqos_error_api_ses_rem_notinsessionrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hRuA(YKHO):\n try:\n return YKHO._snmpqosqos_error_api_ses_add_insessionrate\n except Exception as e:\n raise tTpl",
"def O2iY(YKHO):\n try:\n return YKHO._snmpqosqos_recycle_failed_sessionrate\n except Exception as e:\n raise tTpl",
"def bHCa(YKHO):\n try:\n ... | [
"0.77530974",
"0.7582664",
"0.7554708",
"0.7372263",
"0.72658277",
"0.6974625",
"0.6745412",
"0.6676638",
"0.6590075",
"0.65465957",
"0.65318346",
"0.6520597",
"0.6379898",
"0.63713187",
"0.6356005",
"0.6334228",
"0.62989855",
"0.62452716",
"0.61935306",
"0.6139404",
"0.61298... | 0.83078885 | 0 |
r"""Rate (/s) counter for snmpqosqos_sch_links_updated. | def MKn3(YKHO):
try:
return YKHO._snmpqosqos_sch_links_updatedrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wmZ6(YKHO):\n try:\n return YKHO._snmpqosqos_sch_links_createdrate\n except Exception as e:\n raise tTpl",
"def obC2(YKHO):\n try:\n return YKHO._snmpqosqos_sch_links_deletedrate\n except Exception as e:\n raise tTpl",
"def kJvU(YKHO):\n try:\n return YKHO.... | [
"0.7615236",
"0.70794696",
"0.6504473",
"0.6330261",
"0.61369073",
"0.60720164",
"0.6060706",
"0.6015504",
"0.59758335",
"0.59678507",
"0.5944543",
"0.5845514",
"0.5792466",
"0.578589",
"0.5773041",
"0.57482815",
"0.57103086",
"0.56824815",
"0.5673855",
"0.5659632",
"0.564319... | 0.86042523 | 0 |
r"""Rate (/s) counter for snmpqosqos_packets_bypassed. | def ccLV(YKHO):
try:
return YKHO._snmpqosqos_packets_bypassedrate
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cQIN(YKHO):\n try:\n return YKHO._snmpqosqos_packets_droppedrate\n except Exception as e:\n raise tTpl",
"def Oy7l(YKHO):\n try:\n return YKHO._snmpqosqos_packets_receivedrate\n except Exception as e:\n raise tTpl",
"def Hddj(YKHO):\n try:\n return YKHO._sn... | [
"0.73806536",
"0.73737836",
"0.69151366",
"0.6816782",
"0.67822367",
"0.66593647",
"0.65967834",
"0.6542919",
"0.6423313",
"0.6307481",
"0.6298978",
"0.6286135",
"0.62521",
"0.6223493",
"0.6218443",
"0.6218164",
"0.6170329",
"0.6167586",
"0.6118307",
"0.6108861",
"0.61019355"... | 0.8075171 | 0 |
UUID is read only once set during creation. | def qxeD(YKHO):
return YKHO._uuid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B3Yu(YKHO):\n P6bq = YKHO.__uuid\n if P6bq is None:\n P6bq = str(qxeD.uuid1())\n YKHO._set_uuid(P6bq)\n return P6bq",
"def qxeD(YKHO, qxeD: str):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, BWXx):\n YKHO.unique_id = S7kj(str(BWXx)).hex",
"def qxeD(YKHO, qxeD: str):\n YKHO._uuid ... | [
"0.77605563",
"0.7724026",
"0.76410127",
"0.7591259",
"0.7521463",
"0.7521463",
"0.7521463",
"0.7521463",
"0.74166864",
"0.7252019",
"0.72498673",
"0.7246153",
"0.7238471",
"0.7238471",
"0.7238471",
"0.72374386",
"0.72116137",
"0.7209769",
"0.72064054",
"0.72064054",
"0.71601... | 0.7100937 | 22 |
This function removes all URLs from a string input. | def EGZf(l5Ny):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EGZf(l5Ny):\n l5Ny = ZbWC.sub('(?P<url>https?://[^\\\\s]+)', '', l5Ny)\n return l5Ny",
"def EGZf(YKHO, l5Ny):\n return ZbWC.sub('http.?://[^\\\\s]+[\\\\s]?', '', l5Ny)",
"def RG0J(mvm2):\n return ZbWC.sub('http\\\\S+', '', mvm2)",
"def o5jW(l5Ny: str) -> str:\n mXDZ = '(http:\\\\/\\\\/www\... | [
"0.8093915",
"0.7965597",
"0.7814867",
"0.7741918",
"0.767292",
"0.7662385",
"0.76003885",
"0.75947505",
"0.7546015",
"0.75344145",
"0.74597526",
"0.7441121",
"0.737437",
"0.72525316",
"0.7236845",
"0.71851915",
"0.706872",
"0.7041934",
"0.7009319",
"0.6952308",
"0.6923681",
... | 0.803231 | 1 |
Helper function to calculate the 1D alpha range used in Siddon algorithm | def FfoC(nJ9F, o4D3, wBZN, re6M):
if nJ9F == o4D3:
raise ValueError('x1 and x2 should be different, get {} and {}'.format(nJ9F, o4D3))
PgjL = (wBZN - nJ9F) / (o4D3 - nJ9F)
lz8p = (re6M - nJ9F) / (o4D3 - nJ9F)
XSvb = max(0, min(PgjL, lz8p))
BRAa = min(1, max(PgjL, lz8p))
return (XSvb, BRA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TsqV(nJ9F, o4D3, wBZN, re6M, XSvb, BRAa, tpio, Csk6):\n f3mo = (wBZN + oyIN.arange(tpio + 1) * Csk6 - nJ9F) / (o4D3 - nJ9F)\n PIGI = tpio - (re6M - (XSvb if o4D3 > nJ9F else BRAa) * (o4D3 - nJ9F) - nJ9F) / Csk6\n wpaR = 1 + (nJ9F + (BRAa if o4D3 > nJ9F else XSvb) * (o4D3 - nJ9F) - wBZN) / Csk6\n Cw... | [
"0.7151502",
"0.67279804",
"0.6528914",
"0.6218105",
"0.6136302",
"0.604919",
"0.6016924",
"0.59565943",
"0.5889581",
"0.5880392",
"0.58712804",
"0.5866205",
"0.5846754",
"0.5843668",
"0.58182204",
"0.57357854",
"0.5721351",
"0.5710233",
"0.56952673",
"0.56685007",
"0.5668438... | 0.6373671 | 3 |
Simplify word as much as possible and split by whitespace | def BXp1(GIN8: str) -> x1iM[str]:
return [gAvj(yzQ0) for yzQ0 in GIN8.lower().translate(kZUc).split()] if GIN8 else [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nGs0(HH9L):\n V22M = HH9L.split(' ')\n return V22M",
"def MhEZ(l5Ny, FcoE=vIwR.whitespace, PTpj=''):\n Aofo = []\n GIN8 = ''\n for hcXw in l5Ny:\n if hcXw in PTpj:\n continue\n elif hcXw in FcoE:\n if GIN8:\n Aofo.append(GIN8)\n ... | [
"0.7346262",
"0.7281156",
"0.7206372",
"0.7206372",
"0.7206372",
"0.7206372",
"0.7206372",
"0.71854097",
"0.71792233",
"0.71792233",
"0.7161359",
"0.7145347",
"0.7145347",
"0.71384066",
"0.70754904",
"0.699365",
"0.6838863",
"0.6838863",
"0.68233734",
"0.67910445",
"0.6774707... | 0.65694404 | 30 |
Return the path to the module. | def WJI7(LCet):
yR_P = __import__(LCet)
CcN2 = Hy7s.path.dirname(yR_P.__file__)
PELH = LCet.split('.')
if len(PELH) > 1:
CcN2 = Hy7s.path.join(CcN2, *PELH[1:])
return CcN2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJI7(yR_P):\n return oAb3.Path(Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(yR_P))))",
"def MJH2():\n return Hy7s.path.dirname(QMSQ(xAKo, HwRy.getfilesystemencoding()))",
"def H5Mn():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))",
"def MJH2(YKHO):\n return YKHO.config['cwd']",
"... | [
"0.8561578",
"0.8529376",
"0.8442449",
"0.82423425",
"0.8236453",
"0.7939354",
"0.7879764",
"0.7829076",
"0.78214353",
"0.77711713",
"0.77633923",
"0.7661248",
"0.76541907",
"0.7626793",
"0.7619601",
"0.75949425",
"0.7553504",
"0.75195676",
"0.74673736",
"0.74382585",
"0.7383... | 0.747876 | 18 |
Move lift to given height. | def Atpd(YKHO, HCmI):
YKHO.move_lift(HCmI.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dIPP():\n return Atpd(0.2)",
"def SJJE(YKHO):\n zyRX = YKHO.get_lift_limit()\n YKHO.send(YKHO.cmd.SET_LIFT_SET, zyRX)",
"def XAnZ():\n return Atpd(0)",
"def H2v2(YKHO, H2v2):\n YKHO.row += H2v2",
"def DgzZ(YKHO):\n if YKHO.center.y > YKHO.height / 2:\n YKHO.center.y -= 5",
"d... | [
"0.6408564",
"0.6247735",
"0.6153181",
"0.60399276",
"0.5982126",
"0.59783936",
"0.59747857",
"0.5893891",
"0.58824867",
"0.5826217",
"0.57799083",
"0.57756186",
"0.571243",
"0.56934667",
"0.56728005",
"0.5669018",
"0.56579214",
"0.5653484",
"0.5644823",
"0.56224054",
"0.5600... | 0.55584204 | 22 |
build a block with conv2d>batch_norm>pooling | def mQG_(YKHO, WKvO, upAO, oug5, rrBf):
WKvO = ZylS.nn.conv2d(WKvO, upAO, [1, 1, 1, 1], 'SAME', name=rrBf + '_conv2d') + oug5
with ZylS.variable_scope('MAML', reuse=ZylS.AUTO_REUSE):
WKvO = ZylS.layers.batch_normalization(WKvO, training=True, name=rrBf + '_bn', reuse=ZylS.AUTO_REUSE)
WKvO = ZylS.nn.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hjwy(YKHO, pKvt, yIp6, NXpY, vgXP, dhM9, nMX7, Y9ns, YDYE=ZylS.nn.relu, rWEl='VALID'):\n _0fC, bLhp = ([1, 2, 2, 1], [1, 1, 1, 1])\n pKvt = ZylS.nn.conv2d(pKvt, yIp6, bLhp, 'SAME')\n pKvt, dhM9, nMX7 = YKHO.batch_norm(pKvt, dhM9, nMX7, NXpY, vgXP, Y9ns)\n pKvt = YDYE(pKvt)\n pKvt = ZylS.nn.max_p... | [
"0.7144367",
"0.7115039",
"0.6984604",
"0.6984604",
"0.6960478",
"0.6958906",
"0.6957971",
"0.69453853",
"0.6912591",
"0.6883807",
"0.6874458",
"0.6868554",
"0.6844625",
"0.6822073",
"0.6806039",
"0.67828125",
"0.6763334",
"0.6760577",
"0.6753288",
"0.67477477",
"0.6729825",
... | 0.0 | -1 |
build a block with conv2d>batch_norm>pooling | def mQG_(YKHO, WKvO, upAO, oug5, rrBf):
WKvO = ZylS.nn.conv2d(WKvO, upAO, [1, 1, 1, 1], 'SAME', name=rrBf + '_conv2d') + oug5
with ZylS.variable_scope('MAML', reuse=ZylS.AUTO_REUSE):
WKvO = ZylS.layers.batch_normalization(WKvO, training=True, name=rrBf + '_bn', reuse=ZylS.AUTO_REUSE)
WKvO = ZylS.nn.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hjwy(YKHO, pKvt, yIp6, NXpY, vgXP, dhM9, nMX7, Y9ns, YDYE=ZylS.nn.relu, rWEl='VALID'):\n _0fC, bLhp = ([1, 2, 2, 1], [1, 1, 1, 1])\n pKvt = ZylS.nn.conv2d(pKvt, yIp6, bLhp, 'SAME')\n pKvt, dhM9, nMX7 = YKHO.batch_norm(pKvt, dhM9, nMX7, NXpY, vgXP, Y9ns)\n pKvt = YDYE(pKvt)\n pKvt = ZylS.nn.max_p... | [
"0.7144763",
"0.7114983",
"0.6985145",
"0.6985145",
"0.69610244",
"0.69588894",
"0.6958337",
"0.6946475",
"0.6912563",
"0.68844104",
"0.6874749",
"0.6869535",
"0.6844323",
"0.6821168",
"0.68061686",
"0.67825544",
"0.67630994",
"0.67620504",
"0.6753854",
"0.6747503",
"0.672973... | 0.0 | -1 |
A function for calculating the density ratio of samples x according to the current vae distribution | def Rv9g(YKHO, WKvO):
epBp = ZylS.random.normal([ZylS.shape(WKvO)[0], YKHO.latent_size])
_gzA = YKHO.q_vae.decoder.get_distribution(epBp, training=False)
lapc = YKHO.p_vae.decoder.get_distribution(epBp, training=False)
d3Yj = _gzA.log_prob(WKvO)[..., ZylS.newaxis] - lapc.log_prob(WKvO)[..., ZylS.newaxis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InLe(YKHO):\n return YKHO.count_ones() / float(YKHO.xspan * YKHO.yspan)",
"def InLe(YKHO, WKvO):\n ywwl = len(YKHO.train_data)\n LTIa = list(YKHO.train_data)\n eFr6 = [oyIN.linalg.norm(WKvO - AU8u) ** 2 for AU8u in LTIa]\n nwEM = [oyIN.exp(-pImw / (2 * YKHO.bandwidth ** 2)) for pImw in eFr6]\n... | [
"0.720889",
"0.7179741",
"0.70469457",
"0.6979139",
"0.6769893",
"0.67369395",
"0.6678096",
"0.6645813",
"0.660161",
"0.65215206",
"0.64953625",
"0.6494982",
"0.6488882",
"0.6488882",
"0.6488882",
"0.6479269",
"0.64545",
"0.6427363",
"0.64254695",
"0.63842726",
"0.63579273",
... | 0.0 | -1 |
A function for calculating the density ratio of samples x according to the current vae distribution | def _fv8(YKHO, WKvO, Ep8u=32):
Csk6 = ZylS.data.Dataset.from_tensor_slices(WKvO)
Csk6 = Csk6.batch(Ep8u)
Csk6 = Csk6.prefetch(ZylS.data.experimental.AUTOTUNE)
return ZylS.concat([YKHO.get_autofocus_ratio(WKvO) for WKvO in Csk6], axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InLe(YKHO):\n return YKHO.count_ones() / float(YKHO.xspan * YKHO.yspan)",
"def InLe(YKHO, WKvO):\n ywwl = len(YKHO.train_data)\n LTIa = list(YKHO.train_data)\n eFr6 = [oyIN.linalg.norm(WKvO - AU8u) ** 2 for AU8u in LTIa]\n nwEM = [oyIN.exp(-pImw / (2 * YKHO.bandwidth ** 2)) for pImw in eFr6]\n... | [
"0.7208109",
"0.71795845",
"0.70464957",
"0.69792646",
"0.6770143",
"0.67372465",
"0.66769195",
"0.66446424",
"0.6603002",
"0.65216804",
"0.6495827",
"0.64956295",
"0.64880884",
"0.64880884",
"0.64880884",
"0.64799273",
"0.64526373",
"0.6426722",
"0.6425247",
"0.6384357",
"0.... | 0.0 | -1 |
Builds the encoded representation of the input. The encoded model outputs the mean and logvar of the latent space embeddings/distribution, or in more mathematical terms, | def kLcZ(YKHO, WKvO: torch.Tensor) -> AzJI[ht2j.Tensor, ht2j.Tensor]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLcZ(YKHO, input):\n Aofo = YKHO.encoder(input)\n Aofo = ht2j.flatten(Aofo, start_dim=1)\n yGTL = YKHO.fc_mu(Aofo)\n IR53 = YKHO.fc_var(Aofo)\n return [yGTL, IR53]",
"def kLcZ(chwN: dict):\n k1qI: int = 0\n if len(chwN['course_view']) > 0:\n H8xO = oyIN.mean([_vtG['user_course_vie... | [
"0.68119633",
"0.670978",
"0.6673847",
"0.66087186",
"0.6475182",
"0.64220095",
"0.6341739",
"0.63135695",
"0.6192409",
"0.6177818",
"0.6147038",
"0.61183727",
"0.60612106",
"0.6042604",
"0.59730697",
"0.5947219",
"0.5944232",
"0.5935973",
"0.5932455",
"0.590492",
"0.58797187... | 0.0 | -1 |
Check all urls in db that havent got an expiry date | def ExHr(bVA9=False):
NCls = H1H7.connect(host='localhost', user='testUser', passwd='BorrisBulletDodger', db='scraperdb', charset='utf8')
N1p7 = NCls.cursor()
Pe9W = 'SELECT url FROM motorcycles WHERE adExpiry IS NULL'
try:
N1p7.execute(Pe9W)
hXjk = N1p7.fetchall()
pzVU = [YRbF[0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bcsx(vexM, dixj, NCls, N1p7):\n while not vexM.empty():\n bD7m = vexM.get()\n bo34.debug(f'{bD7m} started - Tasks left: {vexM.unfinished_tasks}')\n eGC5.update(1)\n XTIS = None\n bGrB, XTIS = ohQ_(bD7m)\n dixj[bD7m] = XTIS\n if XTIS:\n bo34.debug(f... | [
"0.6385049",
"0.6339624",
"0.6181122",
"0.6115314",
"0.6078347",
"0.6046912",
"0.604548",
"0.6035148",
"0.589671",
"0.5895659",
"0.5882568",
"0.5861671",
"0.5828922",
"0.58061856",
"0.57957",
"0.5780539",
"0.57762337",
"0.57428974",
"0.57064843",
"0.56894374",
"0.5650496",
... | 0.5956192 | 8 |
antisymetric block diagonal matrix [[0, 1][1, 0]] | def XBEM(QyVM: int):
return sStN[QyVM - 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cq4u(FNxs):\n Z9Mn = {}\n for YRbF, PaeO in enumerate(FNxs):\n for r845, FCz9 in enumerate(FNxs):\n Z9Mn[YRbF, r845] = PaeO.shape[:-1] + FCz9.shape[-1:]\n usx6 = []\n for YRbF, PaeO in enumerate(FNxs):\n bpoz = []\n for r845, bGrB in enumerate(FNxs):\n if ... | [
"0.70033544",
"0.69868207",
"0.669661",
"0.66494536",
"0.65541595",
"0.6455023",
"0.6437622",
"0.6407818",
"0.6382942",
"0.63808846",
"0.63020235",
"0.62877613",
"0.6276881",
"0.62696373",
"0.6265198",
"0.62331074",
"0.62170756",
"0.6213792",
"0.61923265",
"0.6166402",
"0.616... | 0.0 | -1 |
Check if the user has set the '_' variable by hand. | def e4t3(YKHO):
if '_' in ONrU.__dict__:
try:
del YKHO.shell.user_ns['_']
except KeyError:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YxsE(vC9B):\n if '_' in str(vC9B):\n return 1\n else:\n return 0",
"def FnyL(YKHO, SRYB):\n return SRYB.find('#u') != -1",
"def OK5N(YRbF):\n return YRbF.startswith('_:')",
"def ax5e(mZ1z):\n if len(mZ1z[0]) > 32:\n return False\n if not mZ1z[0][0].isalpha():\n ... | [
"0.6438257",
"0.6125409",
"0.6112133",
"0.600193",
"0.6001846",
"0.5987426",
"0.5957369",
"0.59476507",
"0.5864597",
"0.58495975",
"0.58185315",
"0.5782329",
"0.5772125",
"0.57655",
"0.5762086",
"0.5756002",
"0.57548577",
"0.5746575",
"0.5711861",
"0.5708662",
"0.57045126",
... | 0.75248474 | 0 |
Compute and return the repr of the object to be displayed. This method only compute the string form of the repr and should NOT actual print or write that to a stream. This method may also transform the result itself, but the default implementation passes the original through. | def Y3J4(YKHO, Aofo):
try:
if YKHO.shell.pprint:
try:
fjAI = EyO9(Aofo)
except:
fjAI = repr(Aofo)
if '\n' in fjAI:
fjAI = '\n' + fjAI
else:
fjAI = repr(Aofo)
except TypeError:
fjAI = '\n'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAm3(Iup5):\n return repr(Iup5)",
"def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)",
"def repr(YKHO, PwWw=None):\n return YKHO.parser.repr(seen=PwWw)",
"def repr(YKHO, PwWw=None):\n return YKHO.parser.repr(seen=PwWw)",
"def wHJl(YKHO):\n return YKHO.display()",
"def wHJl(YKHO... | [
"0.77768147",
"0.7318501",
"0.73038995",
"0.73038995",
"0.72931117",
"0.72505116",
"0.72505116",
"0.72379243",
"0.7142197",
"0.71351683",
"0.7124918",
"0.711782",
"0.71136284",
"0.7100615",
"0.7100615",
"0.7100615",
"0.70805484",
"0.70740354",
"0.7073817",
"0.7070104",
"0.705... | 0.0 | -1 |
Test that an error is returned if a numpy array is not provided | def qyn_(YKHO):
with YKHO.assertRaises(TypeError):
YKHO.encoder.process([1, 2, 3, 4]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XGe8(qw7D: np.ndarray) -> None:\n if not qw7D.size:\n raise ValueError('Array must not be empty')",
"def pRpB():\n lt9K = [list(range(8)), str(12345678)]\n for WKvO in lt9K:\n with cR0t(TypeError):\n b7La(WKvO)",
"def pRpB():\n lt9K = [list(range(8)), str(12345678)]\n ... | [
"0.705971",
"0.7007829",
"0.69399595",
"0.68619746",
"0.685753",
"0.6679237",
"0.65347785",
"0.6532009",
"0.6425685",
"0.6420574",
"0.6370336",
"0.63576686",
"0.63341445",
"0.63341445",
"0.6330988",
"0.6303206",
"0.62955695",
"0.6283241",
"0.625505",
"0.6208923",
"0.6204864",... | 0.0 | -1 |
Test that an exception is not raised on large blocks when in lax mode | def oBf5(YKHO):
YKHO.default_kwargs['blocksize'] = 65535
YKHO.default_kwargs['streamable_subset'] = False
YKHO.encoder = dqvS(**YKHO.default_kwargs)
YKHO.encoder._init() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Voji(YKHO):\n pass",
"def Y1xC(YKHO) -> None:\n raise KQD7(2 ** 16)",
"def rZ8i(YKHO):\n YKHO.assertRaises(wNWP.host.Error, YKHO.wrong_memory)",
"def XqnK(YKHO):\n pass",
"def XTef(YKHO):\n pass",
"def ASOd(YKHO):\n UzPC = MAqI(cFqH(Va2Q), None)\n with trZe.raises(ValueError) as ... | [
"0.7255793",
"0.6935022",
"0.6654032",
"0.6653839",
"0.6557518",
"0.64061105",
"0.637614",
"0.62050825",
"0.6184355",
"0.6148567",
"0.6131231",
"0.6047093",
"0.60234076",
"0.59968686",
"0.5989321",
"0.5986526",
"0.59269446",
"0.59235376",
"0.5908852",
"0.589152",
"0.58689547"... | 0.0 | -1 |
Test that an exception is not raised on large blocks when in lax mode | def oBf5(YKHO):
YKHO.default_kwargs['blocksize'] = 65535
YKHO.default_kwargs['streamable_subset'] = False
YKHO.encoder = nPb6(**YKHO.default_kwargs)
YKHO.encoder._init() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Voji(YKHO):\n pass",
"def Y1xC(YKHO) -> None:\n raise KQD7(2 ** 16)",
"def rZ8i(YKHO):\n YKHO.assertRaises(wNWP.host.Error, YKHO.wrong_memory)",
"def XqnK(YKHO):\n pass",
"def XTef(YKHO):\n pass",
"def ASOd(YKHO):\n UzPC = MAqI(cFqH(Va2Q), None)\n with trZe.raises(ValueError) as ... | [
"0.7255793",
"0.6935022",
"0.6654032",
"0.6653839",
"0.6557518",
"0.64061105",
"0.637614",
"0.62050825",
"0.6184355",
"0.6148567",
"0.6131231",
"0.6047093",
"0.60234076",
"0.59968686",
"0.5989321",
"0.5986526",
"0.59269446",
"0.59235376",
"0.5908852",
"0.589152",
"0.58689547"... | 0.0 | -1 |
Convert class labels from scalars to onehot vectors. | def kPpE(lexL, jTqs):
svPB = lexL.shape[0]
whV7 = oyIN.arange(svPB) * jTqs
xZkh = oyIN.zeros((svPB, jTqs))
xZkh.flat[whV7 + lexL.ravel()] = 1
return xZkh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_categorical(Crrw, KndY)",
"def KLLm(Crrw, KndY=None):\n PnsN = nMvt.utils.to_categorical(Crrw, KndY)\n return PnsN",
"def LQDo(Crrw: torch.Tensor, jTqs: int) -> ht2j.Tensor:\n if len(Crrw.size()) == 1:\n return vuvg.one_hot(Crrw, jTqs).float(... | [
"0.824881",
"0.80753887",
"0.8051028",
"0.7976169",
"0.7907794",
"0.78988194",
"0.78912437",
"0.78702426",
"0.78474087",
"0.78474087",
"0.7824762",
"0.78241396",
"0.7766149",
"0.77636963",
"0.7752266",
"0.7752266",
"0.7752266",
"0.77479595",
"0.7742301",
"0.7737196",
"0.77208... | 0.7658008 | 31 |
Returns a ``Session`` instance by session id. | def LQKg(Emd4, Wswm):
nPrm = LgTF.get(Wswm)
if not nPrm:
cuiw = rtVo.model.Key(Emd4, Wswm).get()
if cuiw:
nPrm = cuiw.data
LgTF.set(Wswm, nPrm)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfiN(YKHO, JkXK):\n return DMju(YKHO.session_cache, YKHO.sid, JkXK, YKHO._secret)",
"def KfiN(YKHO, JkXK):\n return YKHO._cache[JkXK]",
"def NMoC(YKHO, JkXK):\n if JkXK is None:\n raise ValueError('session_id is required and was not provided')\n geh0, bGrB, MOPg = YKHO._client.request_wi... | [
"0.81321025",
"0.80684483",
"0.7575186",
"0.7493781",
"0.74463874",
"0.74058515",
"0.72545373",
"0.7249463",
"0.7235639",
"0.7121086",
"0.69635355",
"0.6957322",
"0.68980575",
"0.6764121",
"0.67446935",
"0.6619006",
"0.65706444",
"0.6570329",
"0.6534561",
"0.64967406",
"0.648... | 0.0 | -1 |
Returns a ``Session`` instance by session id. | def DDfn(Emd4, YKHO, uJjO):
a6JV = DMju.query(DMju.user_id == int(uJjO)).fetch()
G9jH.info(a6JV)
for cuiw in a6JV:
Wswm = cuiw._key.id()
G9jH.info(Wswm)
nPrm = DMju.get_by_sid(Wswm)
G9jH.info(nPrm)
lIxL = Aing.SessionDict(YKHO, data=nPrm)
lIxL['_user'] = None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfiN(YKHO, JkXK):\n return DMju(YKHO.session_cache, YKHO.sid, JkXK, YKHO._secret)",
"def KfiN(YKHO, JkXK):\n return YKHO._cache[JkXK]",
"def NMoC(YKHO, JkXK):\n if JkXK is None:\n raise ValueError('session_id is required and was not provided')\n geh0, bGrB, MOPg = YKHO._client.request_wi... | [
"0.8132412",
"0.8067841",
"0.7575577",
"0.7492631",
"0.74450517",
"0.74053615",
"0.7254087",
"0.7249545",
"0.7235255",
"0.71213865",
"0.6964077",
"0.69573075",
"0.6897356",
"0.67622316",
"0.6743412",
"0.6618054",
"0.65695536",
"0.65693694",
"0.65340286",
"0.64960957",
"0.6479... | 0.0 | -1 |
Sets the password for the current user | def G3s8(YKHO, Ud05):
YKHO.password = Mi51.generate_password_hash(Ud05, length=12) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zZft(YKHO, zN5h):\n pass",
"def G3s8(YKHO, jTXt):\n YKHO.password = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.PASS = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.PASSWORD = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.authentication.password = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.password = YKHO.hash_pa... | [
"0.84346145",
"0.82934695",
"0.8169671",
"0.8161627",
"0.81590205",
"0.7935139",
"0.7899852",
"0.789771",
"0.78954726",
"0.78849316",
"0.78333926",
"0.7816583",
"0.7795129",
"0.77901787",
"0.778048",
"0.7748624",
"0.7742674",
"0.77405965",
"0.77405965",
"0.7713553",
"0.767807... | 0.7530161 | 33 |
Estimate the quaternions given all data. Attributes ``gyr`` and ``acc`` must contain data. If ``mag`` contains data, the updateMARG() method is used. Returns | def AsJa(YKHO) -> oyIN.ndarray:
if YKHO.acc.shape != YKHO.gyr.shape:
raise ValueError('acc and gyr are not the same size')
eAYh = len(YKHO.acc)
T8ck = oyIN.zeros((eAYh, 4))
if YKHO.mag is None:
T8ck[0] = ptZn(YKHO.acc[0]) if YKHO.q0 is None else YKHO.q0 / oyIN.linalg.norm(YKHO.q0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mibM(YKHO, vexM: np.ndarray, eNZr: np.ndarray, YAq3: np.ndarray, FOSW: np.ndarray, JRYC: float=None) -> oyIN.ndarray:\n Agvu(vexM, 'Quaternion')\n Agvu(eNZr, 'Tri-axial gyroscope sample')\n Agvu(YAq3, 'Tri-axial accelerometer sample')\n Agvu(FOSW, 'Tri-axial magnetometer sample')\n JRYC = YKHO.D... | [
"0.7358467",
"0.67737937",
"0.66345656",
"0.6012856",
"0.5985096",
"0.5886803",
"0.588553",
"0.5776031",
"0.5345458",
"0.5272411",
"0.51944786",
"0.51932013",
"0.51922697",
"0.51057774",
"0.50776434",
"0.5056473",
"0.5036687",
"0.5024246",
"0.5015922",
"0.5001936",
"0.4987031... | 0.58063823 | 7 |
Quaternion Estimation with IMU architecture. | def YwXA(YKHO, vexM: np.ndarray, eNZr: np.ndarray, YAq3: np.ndarray) -> oyIN.ndarray:
if eNZr is None or not oyIN.linalg.norm(eNZr) > 0:
return vexM
I1TB = 0.5 * JQ1c(vexM, [0, *eNZr])
W_IW = oyIN.linalg.norm(YAq3)
if W_IW > 0:
jzdc = YAq3 / W_IW
zDbD, jCyH, PMVZ, MDnR = vexM / o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tG6o(YKHO):\n raise NotImplementedError('Not yet implemented!')",
"def jfIW(YKHO):\n A3Vt = oyIN.identity(3)\n vexM = Omrx(A3Vt)\n wXjW = vexM - oyIN.array([0.0, 0.0, 0.0, 1.0])\n YKHO.assertAlmostEqual(oyIN.linalg.norm(wXjW), 0.0)\n for bGrB in range(20):\n vexM = oyIN.random.randn(... | [
"0.6422403",
"0.64138067",
"0.6326277",
"0.62809616",
"0.62284636",
"0.6223363",
"0.62096614",
"0.6153406",
"0.6047804",
"0.6047269",
"0.60430807",
"0.5954681",
"0.5905981",
"0.58911973",
"0.5861147",
"0.5831793",
"0.5812636",
"0.57956105",
"0.57822424",
"0.5755812",
"0.57407... | 0.0 | -1 |
Quaternion Estimation with a MARG architecture. | def mibM(YKHO, vexM: np.ndarray, eNZr: np.ndarray, YAq3: np.ndarray, FOSW: np.ndarray) -> oyIN.ndarray:
if eNZr is None or not oyIN.linalg.norm(eNZr) > 0:
return vexM
I1TB = 0.5 * JQ1c(vexM, [0, *eNZr])
W_IW = oyIN.linalg.norm(YAq3)
if W_IW > 0:
jzdc = YAq3 / W_IW
if FOSW is None... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ViI5(hbUd, cJsZ):\n PKKQ, nJ9F, nxyw, cflT = cJsZ\n s1k6, o4D3, si3g, Rtnc = hbUd\n return ht2j.cuda.FloatTensor([-o4D3 * nJ9F - si3g * nxyw - Rtnc * cflT + s1k6 * PKKQ, o4D3 * PKKQ + si3g * cflT - Rtnc * nxyw + s1k6 * nJ9F, -o4D3 * cflT + si3g * PKKQ + Rtnc * nJ9F + s1k6 * nxyw, o4D3 * nxyw - si3g * ... | [
"0.62689996",
"0.6123943",
"0.59824204",
"0.5976214",
"0.5969377",
"0.5948963",
"0.5945723",
"0.58710724",
"0.5796784",
"0.5764936",
"0.57410324",
"0.5738711",
"0.5698573",
"0.5688093",
"0.5646513",
"0.56292444",
"0.55762225",
"0.5557781",
"0.5553943",
"0.553004",
"0.54944676... | 0.53014076 | 35 |
Finds and returns the user with the given id, if such a user doesn't exist, return None | def m415(id: Union[str, ObjectId], **B2fa):
Jqkq = B2fa.get('isParsed', False)
FT7l = B2fa.get('rawData', False)
G9jH.info('Trying to find the user with the id=' + id)
try:
CBIr = J0qS.objects(id=id).first()
assert CBIr
G9jH.debug('Found a user {}, with the id={}'.format(x0V9(CBI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kkRG(YKHO, _eu6):\n mRLc = YKHO._db.Users(HlzD.UsersRequest(request_type=HlzD.UsersRequest.FIND, match=HlzD.UsersEntry(global_id=_eu6)))\n if mRLc.result_type != HlzD.UsersResponse.OK:\n YKHO._logger.warning('Could not find user: {}'.format(mRLc.error))\n return None\n if not len(mRLc.re... | [
"0.8561217",
"0.8502597",
"0.817051",
"0.80880356",
"0.808385",
"0.8035117",
"0.79443884",
"0.79412305",
"0.7938044",
"0.79269207",
"0.7801309",
"0.7776014",
"0.77525336",
"0.77456313",
"0.77149814",
"0.76855654",
"0.76615506",
"0.7649293",
"0.7639368",
"0.7603628",
"0.759037... | 0.0 | -1 |
Test create / edit / remove an image. | def obA2(YKHO):
SYsl = YKHO.layer.get_web_browser(_XZ9)
LNo8 = YKHO.layer.get_fixture('torvald.jpg')
SYsl.login(YKHO.username, YKHO.username)
YKHO.assertEqual(SYsl.open('/root/edit'), 200)
SYsl.macros.create('Silva Image', id='image', title='Torvald', file=LNo8)
YKHO.assertEqual(SYsl.inspect.fol... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TSJw(YKHO):\n pass",
"def aAz6(YKHO):\n pass",
"def zJt1(YKHO):\n YKHO.client.force_authenticate(YKHO.user1)\n nPrm = {'img_name': 'photo_user1', 'img_description': 'photo of user1', 'favourite': True, 'width': 700, 'height': 500, 'share_user': []}\n bD7m = gxEw(YKHO.url_name_one, args=(1,))... | [
"0.81277657",
"0.79561114",
"0.78040457",
"0.7650042",
"0.74860394",
"0.74576116",
"0.73470855",
"0.7337543",
"0.73011994",
"0.72694606",
"0.72620666",
"0.72146046",
"0.7165372",
"0.7116727",
"0.711059",
"0.7083397",
"0.70729053",
"0.70679104",
"0.7036395",
"0.7011309",
"0.69... | 0.7924283 | 2 |
Tests priority queue implementation. | def zVD7(jzdc):
sqRO = CLa6()
Vo9x = []
if sqRO.is_empty() == True:
print('pq is empty.')
G9f_(sqRO, jzdc)
print('Converting a into a pq...')
if sqRO.is_empty() == False:
print('a has been transferred into pq!')
print('\nRemoving pq...')
while sqRO.is_empty() == False:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def br_Q(Rdbh):\n Rdbh.insert(10)\n Rdbh.insert(5)\n Rdbh.insert(100)\n assert Rdbh._heap[0].value == 10",
"def SHnQ(Rdbh):\n Rdbh.insert(10)\n Rdbh.insert(5)\n Rdbh.insert(100, 1)\n Rdbh.insert(10, 1)\n assert Rdbh._heap[0].value == 100",
"def ePZ9(Rdbh):\n Rdbh.insert(20)\n R... | [
"0.7998595",
"0.7978113",
"0.77483463",
"0.7724846",
"0.7560529",
"0.75168234",
"0.7366565",
"0.7226534",
"0.71774364",
"0.70563823",
"0.7051714",
"0.70112896",
"0.6950792",
"0.68365896",
"0.68334615",
"0.681549",
"0.6790634",
"0.67786425",
"0.6699356",
"0.66984564",
"0.66897... | 0.74462956 | 6 |
Return a random parameter set for the model. | def tuKI():
r1VO = 10 ** oyIN.random.uniform(1.3, 4)
ancZ = 10 ** oyIN.random.uniform(-2, -0.7)
q9h4 = oyIN.random.beta(a=10, b=1)
YnBA = r1VO * 4 / oyIN.sqrt(3) / q9h4
K5WD = dict(dnn=YnBA, d_factor=ancZ, radius=r1VO)
return K5WD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DS29():\n return [tuKI.random() for bGrB in range(jw_F)]",
"def xJrL(YKHO):\n fIvo = YKHO.par_obj.get_random_all()\n return oyIN.asarray([fIvo[XP5J] for XP5J in YKHO.fit_parameters])",
"def AS1E(YKHO, rJrZ=True):\n pass",
"def pcYs(YKHO) -> cuzp:\n rosz: cuzp = YKHO.gen_params()\n YKHO.... | [
"0.71428007",
"0.688349",
"0.6808765",
"0.66362673",
"0.6540666",
"0.63735193",
"0.6311061",
"0.62580836",
"0.6221744",
"0.6214573",
"0.620113",
"0.619888",
"0.6157318",
"0.61570257",
"0.61529607",
"0.61330676",
"0.61257356",
"0.6104896",
"0.6069822",
"0.6069822",
"0.6029616"... | 0.0 | -1 |
Calculates the discrete ODF for a given discrete sphere. | def v0PI(YKHO, T_P4):
YKHO.gqi_vector = YKHO.model.cache_get('gqi_vector', key=T_P4)
if YKHO.gqi_vector is None:
if YKHO.model.method == 'gqi2':
C7Ls = eDrz
YKHO.gqi_vector = oyIN.real(C7Ls(oyIN.dot(YKHO.model.b_vector, T_P4.vertices.T) * YKHO.model.Lambda))
if YKHO.model... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v0PI(YKHO, T_P4):\n raise NotImplementedError('To be implemented in sub classes')",
"def s1Y6(YKHO):\n WKvO = 1.0\n LVAh = 1.0\n TP50, fHZS = (5e-05, 0.0)\n WTkW = 1.0\n Os_7 = 2.0\n TYyO = YKHO.gaussian_kappa_ellipse.density_2d(WKvO, LVAh, Os_7, WTkW, TP50, fHZS)\n DMp5 = Os_7 / (2.0... | [
"0.7162984",
"0.62479115",
"0.5853649",
"0.5699979",
"0.5695614",
"0.56824833",
"0.56696063",
"0.55715925",
"0.5551039",
"0.5527438",
"0.5508767",
"0.54368275",
"0.5416286",
"0.5412122",
"0.54067904",
"0.5388561",
"0.53791136",
"0.5378805",
"0.53724706",
"0.5364546",
"0.53573... | 0.691775 | 1 |
r""" Normalize the rows of a CSR matrix by their L2 norm. If copy is True, returns a copy of the normalized matrix. | def h96s(vb7U, jth9=False, **PECO):
if jth9 is True:
vb7U = vb7U.copy()
HN6s = vb7U.shape[0]
_NIw = vb7U.nnz
QyVM, wEf2, AsCw = (vb7U.indices, vb7U.data, vb7U.indptr)
for YRbF in range(HN6s):
sR6b = 0.0
for r845 in range(AsCw[YRbF], AsCw[YRbF + 1]):
sR6b += wEf2[r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h96s(vb7U, jth9=False, **PECO):\n if jth9 is True:\n vb7U = vb7U.copy()\n HN6s = vb7U.shape[0]\n _NIw = vb7U.nnz\n QyVM, wEf2, AsCw = (vb7U.indices, vb7U.data, vb7U.indptr)\n for YRbF in range(HN6s):\n sR6b = 0.0\n for r845 in range(AsCw[YRbF], AsCw[YRbF + 1]):\n ... | [
"0.811478",
"0.811478",
"0.80977243",
"0.62578917",
"0.61549985",
"0.6145804",
"0.61083215",
"0.58978355",
"0.5849617",
"0.5842135",
"0.58351153",
"0.5825232",
"0.5811106",
"0.58064467",
"0.57898027",
"0.57506514",
"0.57319903",
"0.5714174",
"0.5691834",
"0.5653762",
"0.56162... | 0.8103095 | 2 |
Initialize Loan Dataset object. | def FIMM(YKHO, GPtr):
YKHO.bucket = GPtr['bucket']
YKHO.raw_folder = GPtr['raw_folder']
YKHO.processed_folder = GPtr['processed_folder']
YKHO.loans_raw = None
YKHO.loans_processed = None
YKHO.loan_status_distribution = None
YKHO.annual_inc_summary = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, __n6):\n YKHO._dataset = __n6",
"def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6",
"def FIMM(YKHO):\n YKHO.__dataset = None",
"def WYRD(YKHO):\n YKHO._init_dataset()\n EPL3 = YKHO.datasets['train']\n hU8i = len(EPL3)\n YKHO.budget = epAf.ceil(YKHO.budget_frac * hU8i)\... | [
"0.6772476",
"0.6699143",
"0.65986854",
"0.65175724",
"0.63482887",
"0.624214",
"0.6236769",
"0.61901647",
"0.617896",
"0.6107762",
"0.59756476",
"0.5928512",
"0.58918846",
"0.5869941",
"0.58573157",
"0.585516",
"0.58440644",
"0.58431",
"0.58335745",
"0.58199114",
"0.5787081"... | 0.0 | -1 |
Implements cmp(inst1, inst2) for the first key that is different Adjusts for the requested sort direction by inverting the result as needed. | def dlFw(YKHO, SFp8, dsV6):
for IePQ, n_p6 in zip(YKHO._sort_keys, YKHO._sort_dirs):
IUmk = 1 if n_p6 == 'desc' else -1
if SFp8[IePQ] < dsV6[IePQ]:
return IUmk
elif SFp8[IePQ] > dsV6[IePQ]:
return IUmk * -1
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aicm(YKHO, Elif):\n try:\n XK3l = Elif._make_key()\n except AttributeError:\n return -1\n return eHkp(YKHO._make_key(), XK3l)",
"def inC0(YKHO, B2hD, gfpw):\n fvDH = YKHO._col\n EySs = YKHO._colSortFlag[fvDH]\n wWvP = YKHO.get_real_col(fvDH)\n CZxs = YKHO.itemDataMap[B2hD][... | [
"0.7099979",
"0.6904231",
"0.67173624",
"0.66601074",
"0.66436845",
"0.6414422",
"0.64139867",
"0.6413248",
"0.6403002",
"0.6373202",
"0.63277024",
"0.6311816",
"0.62918574",
"0.6219977",
"0.6155822",
"0.61000204",
"0.60637254",
"0.60603654",
"0.6052233",
"0.60165983",
"0.601... | 0.70295453 | 1 |
Get the marker instance from its cell. This returns the marker instance from the cell in which it lives | def S8DP(OaeV, _5yy):
try:
Xn71 = ei4T.InstanceMapping.get_by_instance_uuid(OaeV, _5yy)
except AJ5d.InstanceMappingNotFound:
raise AJ5d.MarkerNotFound(marker=_5yy)
MRKc = OaeV.elevated(read_deleted='yes')
with QpfX.target_cell(MRKc, Xn71.cell_mapping) as QFHu:
try:
MP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VmPb(YKHO):\n return YKHO._cell",
"def bwbz(YKHO, Rci7: Hashable) -> riCw:\n return YKHO._location_to_cell_map.get(Rci7, None)",
"def NMoC(YKHO) -> EotV:\n UMN4 = YKHO.boundaries.get()\n V5jy = YKHO.boni.get()\n return EotV(YKHO.source, UMN4, V5jy)",
"def bwbz(YKHO, AU8u):\n return YKHO... | [
"0.6708903",
"0.66516006",
"0.63596106",
"0.6277444",
"0.618865",
"0.61877245",
"0.61063427",
"0.60973793",
"0.5947471",
"0.594118",
"0.5934008",
"0.59050906",
"0.590052",
"0.5897509",
"0.5804176",
"0.58037615",
"0.577686",
"0.5760832",
"0.57479936",
"0.57330287",
"0.5728529"... | 0.7074301 | 0 |
Get a crosscell list of instances matching filters. This iterates cells in parallel generating a unified and sorted list of instances as efficiently as possible. It takes care to iterate the list as infrequently as possible. We wrap the results in InstanceWrapper objects so that they are sortable by heapq.merge(), whic... | def eVkg(OaeV, KUnM, qoqK, _5yy, zJHA, u2qj, pbwn):
if not u2qj:
u2qj = ['created_at', 'id']
pbwn = ['asc', 'asc']
jwIM = X5Wg(u2qj, pbwn)
if _5yy:
FvkX = S8DP(OaeV, _5yy)
faol = [FvkX[H5ew] for H5ew in u2qj]
def aCdZ(OaeV):
"""Generate InstanceWrapper(Instance) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F4M4(YKHO, Hs_u=None):\n if Hs_u and set('\"\\\\\\'').intersection(Hs_u):\n raise ValueError('Invalid instance filter: %s' % Hs_u)\n shLb = None\n while True:\n NArs = {'maxResults': 250}\n if Hs_u:\n NArs['filter'] = 'name eq \"%s\"' % Hs_u\n if shLb:\n ... | [
"0.65896964",
"0.64632475",
"0.5570853",
"0.55109453",
"0.54803884",
"0.5463914",
"0.53889525",
"0.5323795",
"0.5294357",
"0.5289761",
"0.5259226",
"0.5245947",
"0.52282816",
"0.5201792",
"0.51602477",
"0.5142704",
"0.50829613",
"0.50684774",
"0.5030095",
"0.5011168",
"0.5000... | 0.7209749 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, mYeQ):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088463",
"0.8088463",
"0.80553037",
"0.7983272",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Sets configuration for TensorFlow GPU environment based on env variable. | def keK5() -> None:
uJNQ = Hy7s.getenv(n3OB)
if not uJNQ:
return
from tensorflow import config as jQY2
UDQ1 = J3LY(uJNQ)
R11H = jQY2.list_physical_devices('GPU')
if R11H:
for EHBZ, qGyr in UDQ1.items():
c61B(R11H[EHBZ], qGyr)
else:
CMGp.shared.utils.io.rai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z8qy(wqL3):\n Hy7s.environ['CUDA_VISIBLE_DEVICES'] = wqL3\n jQY2 = ZylS.ConfigProto()\n jQY2.gpu_options.allow_growth = True\n return jQY2",
"def xaHj():\n try:\n P06F = qCQm.getFirstAvailable(order='first', maxLoad=0.7, maxMemory=0.7, attempts=1, interval=10)\n seJA = P06F[0]\n ... | [
"0.78108644",
"0.74813545",
"0.6826066",
"0.6764458",
"0.66190743",
"0.6606401",
"0.6519573",
"0.64683366",
"0.64474756",
"0.6350582",
"0.631473",
"0.631121",
"0.6282548",
"0.61599636",
"0.61138254",
"0.61068857",
"0.6072977",
"0.6055359",
"0.60499835",
"0.599995",
"0.5987531... | 0.74113476 | 2 |
Set configuration for the CPU environment based on environment variable. | def Os6m() -> None:
vhU8 = Hy7s.getenv(ln5p)
KMxT = Hy7s.getenv(KUMB)
if not vhU8 and (not KMxT):
return
from tensorflow import config as jQY2
if vhU8:
try:
_ols = int(vhU8.strip())
except ValueError:
raise ValueError(f"Error parsing the environment va... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R2jL():\n global option\n MTKo['device'] = 'CPU'",
"def lEZe(Zu8l, KcEq, bIwZ, aM69=''):\n global CONFIGS\n YF8x[Zu8l] = {'host': KcEq, 'port': bIwZ, 'core': aM69}",
"def mQN7(YKHO, Xcsh: int) -> None:\n if YKHO.batch:\n if YKHO.launcher in ['pbs', 'cobalt']:\n if hasattr(Y... | [
"0.6677505",
"0.5853975",
"0.58238256",
"0.57976335",
"0.5789034",
"0.575001",
"0.5715022",
"0.56461763",
"0.5623802",
"0.5550285",
"0.55202216",
"0.55081564",
"0.5503496",
"0.54302907",
"0.54085046",
"0.5371606",
"0.53472203",
"0.53221536",
"0.5315872",
"0.53140944",
"0.5305... | 0.7395337 | 0 |
Add the routes to the Flask application object | def rOHc(SCWY):
from app.controllers import view_controller, api_controller
def NMoC(pmON, eD8c, JfyU, *qIxc, **B2fa):
B2fa['methods'] = ['GET']
SCWY.add_url_rule(pmON, eD8c, JfyU, *qIxc, **B2fa)
def m8z6(pmON, eD8c, JfyU, *qIxc, **B2fa):
B2fa['methods'] = ['POST']
SCWY.add... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C9N_(YKHO):\n YKHO._app.register_blueprint(gkcK)",
"def C9N_(P4t4: web.Application):\n XfxK.register_view(P4t4)\n ikug.register_view(P4t4)\n SSDz.register_view(P4t4)\n mQmL.register_view(P4t4)\n IPT3.register_view(P4t4)\n YRUh.register_view(P4t4)\n SNFP.register_view(P4t4)\n gRl7.r... | [
"0.85039705",
"0.7646561",
"0.75888616",
"0.758347",
"0.7328595",
"0.7321869",
"0.7301055",
"0.72989315",
"0.7219503",
"0.7190631",
"0.7143104",
"0.7113233",
"0.7023898",
"0.68882275",
"0.6874056",
"0.68536806",
"0.6847867",
"0.6796373",
"0.6792366",
"0.67805153",
"0.6760714"... | 0.6984384 | 13 |
Adds the malicious blocks to the honest DAG. | def iW7N(YKHO):
while YKHO._malicious_blocks_to_add_to_honest_dag:
YKHO._honest_dag.add(YKHO[YKHO._malicious_blocks_to_add_to_honest_dag.popleft()]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mMS_(YKHO):\n YKHO._add_malicious_blocks_to_honest_dag()\n YKHO._competing_chain_tip_gid = None\n YKHO._first_parallel_block_gid = None",
"def j47j(YKHO):\n if len(YKHO.pool) > 0:\n nPrm = YKHO.pool.pop()\n XkN1 = n3Kt(nPrm, YKHO.blocks[-1].hash)\n XkN1.mine(YKHO.difficulty)\... | [
"0.5498594",
"0.5371092",
"0.52902806",
"0.525049",
"0.5237269",
"0.5215216",
"0.51837105",
"0.5164123",
"0.5109467",
"0.50704384",
"0.50621957",
"0.5019991",
"0.50150764",
"0.4978071",
"0.4969675",
"0.49446175",
"0.4909905",
"0.4904961",
"0.4901418",
"0.4886863",
"0.4882455"... | 0.79329735 | 0 |
Initilizes a queue full of customers | def FIMM(YKHO):
gGq6 = g760.deque() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, FGW3):\n YKHO.number = FGW3\n YKHO.totalCustomerWaitTime = 0\n YKHO.customersServed = 0\n YKHO.currentCustomer = None\n YKHO.queue = qztG()",
"def j2M1(YKHO, Z9rn):\n YKHO.queue.add(Z9rn)",
"def FIMM(YKHO):\n YKHO.queues = []",
"def FIMM(YKHO) -> None:\n YKHO._queue = [... | [
"0.7310464",
"0.6753742",
"0.6660912",
"0.65111226",
"0.6478338",
"0.6478338",
"0.6478338",
"0.6478338",
"0.6478338",
"0.6443491",
"0.6443491",
"0.64129204",
"0.63978773",
"0.63726586",
"0.6312143",
"0.6292329",
"0.6253185",
"0.62261856",
"0.6189694",
"0.6178053",
"0.6166067"... | 0.5797335 | 43 |
Function returning the turnstile which self.target belongs | def sNmP(YKHO) -> (list, NZQz.TurnstileAxis):
TUcM = [(0, 1), (1, 0), (0, -1), (-1, 0), (1, 1), (-1, 1), (1, -1), (-1, -1)]
for tWPo in TUcM:
tJ8r = YKHO.target.x_obj + tWPo[0]
LAIz = YKHO.target.y_obj + tWPo[1]
_Wdu = YKHO.grid.obj_list[tJ8r, LAIz]
if isinstance(_Wdu, NZQz.Turns... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ejzd(YKHO):\n if YKHO.tank.flag is not None:\n WKvO, LVAh = YKHO.tank.start_position\n else:\n YKHO.get_flag()\n WKvO, LVAh = (YKHO.flag.x, YKHO.flag.y)\n return DKJk(int(WKvO), int(LVAh))",
"def MFS7(YKHO):\n return YKHO.tile",
"def ppAj(YKHO):\n return YKHO.__projectil... | [
"0.6835052",
"0.62774855",
"0.62481165",
"0.6153794",
"0.60836715",
"0.602168",
"0.59690785",
"0.5954225",
"0.59516066",
"0.59234595",
"0.58821017",
"0.5864561",
"0.5860376",
"0.5851147",
"0.58387446",
"0.578773",
"0.57848674",
"0.5777758",
"0.5759148",
"0.5759148",
"0.571949... | 0.0 | -1 |
Exercise 2 Use capitalize_all to write a function named capitalize_nested that takes a nested list of strings and returns a new nested list with all strings capitalized. | def TbPs(Dt5G):
lGpU = []
d6pt = 0
for YRbF in Dt5G:
if type(YRbF) == list:
lGpU.append(TbPs(Dt5G[d6pt]))
else:
lGpU.append(YRbF.capitalize())
d6pt += 1
return lGpU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YyqT(a1PO):\n Ylbp = []\n for KCHu in a1PO:\n Ylbp.append(KCHu.capitalize())\n return Ylbp",
"def YyqT(a1PO):\n jth9 = []\n for YRbF in a1PO:\n if type(YRbF) == str:\n jth9.append(YRbF.capitalize())\n else:\n jth9.append(YyqT(YRbF))\n return jth9",... | [
"0.7026064",
"0.6985265",
"0.68078536",
"0.6038966",
"0.5817169",
"0.5735731",
"0.5593027",
"0.5590289",
"0.5579011",
"0.5574262",
"0.55618393",
"0.54537016",
"0.5408619",
"0.53976804",
"0.5387723",
"0.53805715",
"0.53781676",
"0.537776",
"0.53663",
"0.53334117",
"0.5324298",... | 0.77744085 | 0 |
NPV of cash flow adjusted for initial investment The `numpy_financial.npv()` function wants the initial investment as a negative cash flow in year 1 or a zero cash flow in year 1 and then need to subtract off the initial investment. | def tP0h(YKHO):
OJnZ = YKHO.cash_flow()
Gmep = OJnZ.shape[0]
nlpD = oyIN.full(HN6s, -YKHO.fixed_dev_cost)
nlpD = nlpD.reshape((HN6s, 1))
zzY_ = oyIN.concatenate((nlpD, YKHO.cash_flow()), axis=1)
TLES = oyIN.array([YbUv.npv(YKHO.discount_rate, zzY_[YRbF, :]) for YRbF in range(HN6s)])
return T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tP0h(L1ZB, UtXI, CooX, yp2I, RPiS, MIPu, SEb0=365, l9N9=20):\n Cj2o = NIrH(RPiS, SEb0, l9N9)\n Ccqx = kAxF(L1ZB, UtXI, Cj2o, SEb0, l9N9)\n Wh0A = FoFJ(CooX, yp2I, Ccqx, Cj2o)\n otHv = oepK(yp2I, Cj2o, Wh0A)\n z_Rk = QS1z(Cj2o, MIPu, SEb0)\n QRFn = P3tW(z_Rk, otHv)\n return sum(QRFn)",
"d... | [
"0.69246334",
"0.6227518",
"0.5850616",
"0.58277905",
"0.5800107",
"0.569329",
"0.56636095",
"0.5652151",
"0.55380416",
"0.55305487",
"0.5521329",
"0.5515499",
"0.54972637",
"0.53291005",
"0.52983075",
"0.5295985",
"0.5276058",
"0.5269203",
"0.526164",
"0.52269125",
"0.522372... | 0.7681947 | 0 |
Create DataFrame version of financial model table Financial model table is transposed so that financial measures are columns. | def Ie30(YKHO, l7uB=True):
EcVT = oyIN.vstack([YKHO.sales(), YKHO.unit_contribution(), YKHO.net_revenue(), YKHO.depreciation(), YKHO.before_tax_profit(), YKHO.after_tax_profit(), YKHO.cash_flow()])
if l7uB:
EcVT = oyIN.transpose(EcVT)
jQ3Z = rLdf.DataFrame(EcVT, columns=['sales', 'unit_contribut... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FlmP(YKHO):\n tyNF = rLdf.DataFrame(index=[SdrH.buy_date for SdrH in YKHO.etfs.values()])\n tyNF['Ticker'] = [mWFP.split('-')[0].split('.')[0] for mWFP in YKHO.etfs.keys()]\n tyNF['Buying Price (€)'] = [SdrH.buy_price for SdrH in YKHO.etfs.values()]\n tyNF['Number of Shares'] = [SdrH.n_shares for S... | [
"0.6867327",
"0.6612264",
"0.6301249",
"0.61730415",
"0.60792184",
"0.6073224",
"0.60456604",
"0.595325",
"0.59496593",
"0.5944644",
"0.5904372",
"0.58613694",
"0.5846162",
"0.5840601",
"0.5804579",
"0.5799731",
"0.5799311",
"0.5797586",
"0.5772154",
"0.57717925",
"0.5768348"... | 0.7412922 | 0 |
Render the change of name into the business model objects. | def NBjn(X2vB: Business, JWum: Dict, CiKJ: FilingMeta):
bo34.debug('processing Change of Name: %s', JWum)
if (Fvej := JWum['changeOfName'].get('nameRequest')):
Dokz = Fvej.get('legalName')
else:
Dokz = JWum['changeOfName'].get('legalName')
CiKJ.change_of_name = {'fromLegalName': X2vB.leg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return f'<Name:{YKHO.name}>'",
"def zAg0(YKHO):\n return YKHO.name",
"def zAg0(YKHO):\n return YKHO.name",
"def zAg0(YKHO):\n return YKHO.name",
"def zAg0(YKHO):\n return YKHO.name",
"def zAg0(YKHO):\n return YKHO.name",
"def zAg0(YKHO):\n return YKHO.name",
"de... | [
"0.6468253",
"0.6403284",
"0.63552487",
"0.6320504",
"0.6320504",
"0.6320504",
"0.6320189",
"0.6320189",
"0.63116306",
"0.63116306",
"0.63116306",
"0.63116306",
"0.63116306",
"0.63116306",
"0.63116306",
"0.62977076",
"0.62977076",
"0.62977076",
"0.62977076",
"0.62977076",
"0.... | 0.65276265 | 0 |
see BT08 this assumes z=0, i.e. inplane only. note that R is 2d in this case. | def EIzx(A3Vt, Z9rn, E3D9, yvY1=Gy19):
return oyIN.sqrt(2 * yvY1 * oyIN.power(10.0, E3D9) * A3Vt * A3Vt * oyIN.power(Z9rn * Z9rn + A3Vt * A3Vt, -1.5)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jCKE(YKHO, epBp):\n KkY2 = YKHO.U\n T8ck = YKHO.Q_p\n return ((epBp - T8ck[-2, :, [2]]) / KkY2[-2, :, [2]]).T * KkY2[-2] + T8ck[-2]",
"def D7aO(JmFt, Mkmy, LVAh, DkWr=oyIN.array([1000, 1000, 0, 0]), NXpY=300):\n xx9t = 2.8\n DvS4 = oyIN.array([[-xx9t, LVAh, 0], [xx9t, LVAh, 0], [xx9t, LVAh, xx... | [
"0.71929425",
"0.6754659",
"0.6716372",
"0.6667102",
"0.66068524",
"0.6356809",
"0.63185316",
"0.62698513",
"0.6219002",
"0.61496055",
"0.60713375",
"0.6038444",
"0.6017929",
"0.60067785",
"0.60063505",
"0.5983755",
"0.5962205",
"0.5962205",
"0.59513235",
"0.59494853",
"0.594... | 0.0 | -1 |
see BT08 eq. 2.44a this is a spherical model, such that r is 3d. | def QhW8(Mkmy, Fg_i, E3D9, yvY1=Gy19):
return oyIN.sqrt(2 * yvY1 * oyIN.power(10.0, E3D9) * Mkmy * Mkmy * oyIN.power(Fg_i * Fg_i + Mkmy * Mkmy, -1.5)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A3b2(Mkmy: float) -> float:\n return 4.0 * oyIN.pi * Mkmy * Mkmy",
"def r9Gc(YKHO):\n A3Vt = YKHO.coefficients[0]\n q7In = oyIN.linspace(0, 2 * oyIN.pi, 100)\n oZuG = oyIN.linspace(0, A3Vt, 100)\n [P6bq, Mkmy] = oyIN.meshgrid(q7In, oZuG)\n EcVT = Mkmy * YhSR(P6bq)\n fuBA = Mkmy * YUNn(P6... | [
"0.6928456",
"0.66932905",
"0.65626097",
"0.6548613",
"0.6539375",
"0.6533323",
"0.65327084",
"0.6503298",
"0.64371186",
"0.64234304",
"0.6415125",
"0.6394391",
"0.6377413",
"0.63662803",
"0.6362995",
"0.6362995",
"0.6345273",
"0.6300313",
"0.62842786",
"0.623776",
"0.6204948... | 0.0 | -1 |
Opens a new database connection if there is none yet for the current application context. | def GGod():
w2B8 = Oa1e.get('sqlite_db', None)
if w2B8 is None:
w2B8 = Oa1e.sqlite_db = _uJw()
return w2B8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db",
"def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)",
"def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)",
"def W... | [
"0.77379817",
"0.75827783",
"0.731633",
"0.716833",
"0.702289",
"0.6965276",
"0.6953964",
"0.6948672",
"0.68981296",
"0.68425506",
"0.6828195",
"0.6819551",
"0.68043447",
"0.67949706",
"0.67684644",
"0.6760031",
"0.675094",
"0.6747081",
"0.67314476",
"0.66986555",
"0.668763",... | 0.6572707 | 34 |
Test object IO using the S3 SDK | def C4gH(YKHO, q5QG, Zwft, O_4A, KISo, wohN, rbZb):
h_xa = '/data'
KK2A = KISo(1, interface=wohN, bucketclass=rbZb)[0].name
dG5N = f's3://{KK2A}'
JPAh = y25G(Zwft, h_xa)
X_Br(Zwft, h_xa, dG5N, q5QG)
assert set(JPAh).issubset((YEnM.key for YEnM in q5QG.s3_list_all_objects_in_bucket(KK2A))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zKrv(YKHO):\n ae7y = FM6F()\n nAIB = FM6F()\n zGTy = {'Body': nAIB}\n nAIB.read.return_value = 'file content'\n ae7y.get_object.return_value = zGTy\n ABwj = FyjU('bucket_name', s3_client=ae7y)\n assert ABwj.get_content('/file.text') == 'file content'",
"def caWp(YKHO):\n XObx = None\n... | [
"0.79290044",
"0.7068225",
"0.7035422",
"0.6953664",
"0.69339716",
"0.69081223",
"0.68332195",
"0.67755705",
"0.67623305",
"0.6671153",
"0.66708803",
"0.6639953",
"0.66135585",
"0.6611791",
"0.6608675",
"0.6582093",
"0.65512145",
"0.65430963",
"0.6542211",
"0.6510598",
"0.647... | 0.6870493 | 6 |
Read a list of `InputExample`s from an input text. | def LooU(cSAc):
_73Q = []
ShR8 = 0
with xDSY.StringIO(cSAc) as N5Pj:
while True:
zFiD = TdB_.convert_to_unicode(N5Pj.readline())
if not zFiD:
break
zFiD = zFiD.strip()
PKBr = None
ZZRG = None
r8hN = ZbWC.match('^... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaX7(eZ_W):\n _73Q = []\n ShR8 = 0\n with ZylS.gfile.GFile(eZ_W, 'r') as N5Pj:\n while True:\n zFiD = TdB_.convert_to_unicode(N5Pj.readline())\n if not zFiD:\n break\n zFiD = zFiD.strip()\n PKBr = None\n ZZRG = None\n ... | [
"0.7894354",
"0.73903024",
"0.6771458",
"0.6730504",
"0.6622049",
"0.65347636",
"0.65203947",
"0.64383495",
"0.62848353",
"0.62848353",
"0.62848353",
"0.62447137",
"0.62190163",
"0.6214364",
"0.61782074",
"0.6156509",
"0.61546797",
"0.6139105",
"0.6123755",
"0.61186945",
"0.6... | 0.8270052 | 0 |
Returns a list of tuples (paragraph_id, paragraph_score) for "topk" paragraphs with the highest score. | def c7vb(YKHO, Tl79, lQ3P, l5Ny, hz5a=10):
pPqH = Hy7s.path.join('selected', lQ3P + '.csv')
nYfy = rLdf.read_csv(pPqH, index_col=0)
NkkI = lambda WKvO: WKvO / oyIN.linalg.norm(WKvO, axis=1, keepdims=True)
O2DR = NkkI(Tl79)
wceA = NkkI(nYfy.values)
YEVY = bFSo(wceA, O2DR.T)
xmGn = sorted(zip(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u6pE(qIr8, Zbp4, NAFu, G1Hx):\n JiHU = qIr8.shape[0]\n DNs0 = [oyIN.argsort(qIr8[rdlD, :])[-G1Hx:][::-1] for rdlD in range(JiHU)]\n yvT9 = {Zbp4[YRbF]: oyIN.array(NAFu)[DNs0[YRbF]] for YRbF in range(JiHU)}\n return yvT9",
"def A2JG(YKHO, p1kx, G1Hx=1):\n YKHO.candidates = []\n YKHO.candidat... | [
"0.67378545",
"0.6651812",
"0.6559056",
"0.6446816",
"0.6324562",
"0.63115776",
"0.6234802",
"0.619466",
"0.61575156",
"0.6108978",
"0.6108978",
"0.61087394",
"0.60921025",
"0.60921025",
"0.60921025",
"0.6075689",
"0.6069665",
"0.6050277",
"0.6047602",
"0.60251105",
"0.602221... | 0.58255917 | 41 |
Return provision per trade (using a given yield curve). This is a special function used in MOPL returning provision in form of a dictionary (later used in MOPL reporting). | def Pwgt(IYUG, tXsx):
if tXsx.Name() in ('ZAR-SWAP-SPREAD-1m', 'ZAR-SWAP-SPREAD-6m', 'ZAR-SWAP-SPREAD-9m', 'ZAR-SWAP-SPREAD-12m'):
tXsx = CmGq.FYieldCurve['ZAR-SWAP']
elif tXsx.Name() in ('ZAR-SWAP', 'USD-SWAP'):
pass
else:
Ol8d = 'Provision not applicable for the curve'
rais... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RHr8(IYUG):\n tXsx = CmGq.FYieldCurve['ZAR-SWAP']\n DCgT = sc2B(tXsx)\n try:\n vUv6 = DCgT.calculate(IYUG)\n except Unln:\n S0MI.debug('Provision not applicable for trade %s', IYUG.Oid(), exc_info=1)\n vUv6 = 0.0\n S0MI.debug(\"Provision for trade '%s': %s\", IYUG.Oid(), vUv... | [
"0.57954794",
"0.5663079",
"0.5576208",
"0.55277306",
"0.54410356",
"0.5312383",
"0.50910205",
"0.5041525",
"0.5030322",
"0.50141054",
"0.49947312",
"0.4966199",
"0.49212277",
"0.488978",
"0.4875967",
"0.4847433",
"0.48086935",
"0.478055",
"0.47440526",
"0.47206953",
"0.46991... | 0.7099809 | 0 |
Return first float/fixed leg for the instrument based on type. | def yMzt(YKHO, YKiD):
if YKiD.InsType() == 'CurrSwap':
for MRRk in YKiD.Legs():
if MRRk.IsFixedLeg() and MRRk.Currency().Name() == 'ZAR':
return MRRk
else:
return None
return YKiD.FirstFloatLeg() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S4fM(__d3, type='soda-lime-low-iron'):\n if type.lower() == 'soda-lime-low-iron':\n __d3 = __d3 / 1000\n exwG = 1.513 - 0.003169 * __d3 ** 2 + 0.003962 * __d3 ** (-2) + 0 * 1j\n elif type.upper() == 'BK7':\n __d3 = __d3 / 1000\n exwG = oyIN.sqrt(1 + 1.03961212 * __d3 ** 2 / (_... | [
"0.56058615",
"0.5557935",
"0.543365",
"0.54118204",
"0.5381103",
"0.5330574",
"0.5293033",
"0.5235914",
"0.5235813",
"0.52102745",
"0.5205134",
"0.51804394",
"0.5132719",
"0.5123155",
"0.5122234",
"0.50907636",
"0.509052",
"0.5088721",
"0.5076467",
"0.49678996",
"0.4918643",... | 0.7591048 | 0 |
Returns a string representation of the time | def zAg0(YKHO):
return '%.2d:%.2d:%.2d' % (YKHO.hour, YKHO.minute, YKHO.second) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def scnb(YKHO):\n return f'{YKHO.year} {YKHO.month:02} {YKHO.start_day:02} {YKHO.start_hour:02} 00 {YKHO.get_duration():6}'",
"def YCc8():\n return JRYC.strftime(JRYC.now(), '%H:%M:%S')",
"def Px7F(YKHO):\n try:\n if not YKHO._time:\n raise ValueError\n GUy1 = '%a, %d %b %Y %H... | [
"0.8369191",
"0.81801987",
"0.81062204",
"0.8099411",
"0.80909765",
"0.79639405",
"0.7957387",
"0.7954416",
"0.7922385",
"0.7899543",
"0.7859414",
"0.78225493",
"0.7801383",
"0.77925205",
"0.7764426",
"0.77511233",
"0.7749094",
"0.77378726",
"0.75792986",
"0.7541745",
"0.7540... | 0.7102359 | 52 |
Returns True/False depending on if the input string contains any numerical characters (i.e 0, 1, 2, 3...9) | def MH26(JZtS):
return any((hcXw.isdigit() for hcXw in JZtS)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tIyV(vIwR):\n for hcXw in vIwR:\n rbrL = ord(hcXw)\n if rbrL < 48 or rbrL > 57:\n return False\n return True",
"def qekA(b7zw):\n return any((hcXw.isdigit() for hcXw in b7zw))",
"def mQGg(vIwR):\n for bseI in vIwR[:-1]:\n if not (bseI.isdigit() or bseI in (',', '... | [
"0.8632124",
"0.8573962",
"0.8269258",
"0.8232859",
"0.807725",
"0.7990034",
"0.78774154",
"0.78322226",
"0.7770709",
"0.7733886",
"0.77141076",
"0.7692305",
"0.7682781",
"0.761857",
"0.759268",
"0.7584847",
"0.7582985",
"0.7576099",
"0.7559126",
"0.7510876",
"0.74347377",
... | 0.7951692 | 6 |
Function implements sieve of Eratosthenes (for all numbers uptil N). Returns array erat_sieve If erat_sieve[i] is True, then 2i + 3 is a prime. | def TbLa(ywwl):
Xk2t = int(ywwl / 2)
if ywwl % 2 == 0:
Xk2t -= 1
_2hz = [True] * Xk2t
KYJZ = []
KYJZ.append(2)
for YRbF in range(int((PZyS(ywwl) - 3) / 2) + 1):
if _2hz[YRbF] == True:
r845 = YRbF + (2 * YRbF + 3)
while r845 < Xk2t:
_2hz[r84... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def odKY(exwG):\n Aofo = []\n KwQv = qw7D.array('i', (True for YRbF in range(0, exwG + 1)))\n for G1Hx in range(2, exwG + 1):\n if KwQv[G1Hx]:\n Aofo.append(G1Hx)\n YRbF = G1Hx * G1Hx\n while YRbF <= exwG:\n KwQv[YRbF] = False\n YRbF +=... | [
"0.773296",
"0.7711814",
"0.76372546",
"0.75075114",
"0.7439609",
"0.7437077",
"0.74062085",
"0.7397674",
"0.7397674",
"0.7349972",
"0.73471904",
"0.73272383",
"0.72301954",
"0.7228703",
"0.7198129",
"0.710065",
"0.70861787",
"0.7082205",
"0.70553046",
"0.7047402",
"0.7028072... | 0.75507444 | 3 |
Return the AWS service name the client is communicating with. | def lpPM(b6ry, KAOR, qIxc, B2fa):
if 'serviceAbbreviation' not in KAOR._service_model.metadata:
return KAOR._service_model.metadata['endpointPrefix']
return KAOR._service_model.metadata['serviceAbbreviation'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')",
"def b... | [
"0.782867",
"0.782867",
"0.78069615",
"0.78069615",
"0.78069615",
"0.76763904",
"0.76327074",
"0.74933684",
"0.74933684",
"0.74933684",
"0.7377166",
"0.7377166",
"0.7377166",
"0.7220469",
"0.7048508",
"0.68280995",
"0.67807144",
"0.67807144",
"0.67807144",
"0.67807144",
"0.67... | 0.68279505 | 16 |
Contextmanager for consistent syntax for maybe creating a tempdir | def osPc(eLpg=False):
if eLpg:
try:
pmON = gbPf.mkdtemp()
yield pmON
finally:
RDuA.rmtree(pmON)
else:
yield None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U9hK():\n\n class ctx(object):\n\n def DMw_(YKHO):\n YKHO.prevdir = Hy7s.getcwd()\n YKHO.tempdir = gbPf.mkdtemp()\n Hy7s.chdir(YKHO.tempdir)\n return YKHO.tempdir\n\n def U4F2(YKHO, *jzdc, **mQ1D):\n Hy7s.chdir(YKHO.prevdir)\n R... | [
"0.799502",
"0.73509675",
"0.72976846",
"0.7288646",
"0.7164584",
"0.71433455",
"0.71317875",
"0.71153635",
"0.7106508",
"0.70851755",
"0.7062332",
"0.7044",
"0.7021753",
"0.7013624",
"0.7006995",
"0.7001173",
"0.698447",
"0.696267",
"0.694793",
"0.6918846",
"0.69073695",
"... | 0.63843256 | 65 |
Called when browse button is clicked. Opens a dialog for choosing a directory. | def uFPV(YKHO, G3WP=None):
if G3WP is None:
return
pmON = str(CsJA.QFileDialog.getExistingDirectory(YKHO, 'Select path', YKHO.ui.lineEditPath.text()))
if pmON != '':
YKHO.ui.lineEditPath.setText(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pYs5(YKHO):\n YKHO.dir_opt = xAU6 = {}\n xAU6['mustexist'] = False\n xAU6['title'] = 'Select a directory...'\n YKHO.FolderPath = aXpZ.askdirectory(**YKHO.dir_opt)\n YKHO.FolderPath = Hy7s.path.abspath(YKHO.FolderPath)\n YKHO.FolderEntry.delete(0, on8l.END)\n YKHO.FolderEntry.insert(0, YKHO... | [
"0.8427667",
"0.80031145",
"0.8002596",
"0.79762334",
"0.7665582",
"0.7636856",
"0.7631896",
"0.7581098",
"0.7563699",
"0.74676603",
"0.74283385",
"0.74200284",
"0.73879087",
"0.73694336",
"0.7308274",
"0.7290915",
"0.7237306",
"0.72122735",
"0.7200747",
"0.71985155",
"0.7170... | 0.695883 | 28 |
r"""Batches all the inputs tensors to the computation done by the function. So, for example, in the following code ```python This input will be captured. y = tf.placeholder_with_default(1.0, shape=[]) .Defun(tf.float32) | def ffKB(ciU4, OIMe, eHNT, OEee, BN_u, azIv, KTEM, Ibdt=10, _SvF=[], zGKt='', olqs='', AzhK='', mWFP=None):
GSuR = aVzM._context or aVzM.context()
W0pX = GSuR._thread_local_data
if W0pX.is_eager:
try:
rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'BatchFuncti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i6iB(Ep8u):\n Cqbr = ZylS.placeholder(ZylS.float32, shape=(Ep8u, YUpn.NUM_FRAMES_PER_CLIP, YUpn.CROP_SIZE, YUpn.CROP_SIZE, YUpn.CHANNELS))\n eqSH = ZylS.placeholder(ZylS.int64, shape=Ep8u)\n return (Cqbr, eqSH)",
"def i6iB(Ep8u):\n Y6wO = ZylS.placeholder(ZylS.float32, shape=(Ep8u, vPBo.img_s, vP... | [
"0.6508007",
"0.64802307",
"0.6434134",
"0.64083505",
"0.63511044",
"0.6269741",
"0.6250925",
"0.6200331",
"0.6154571",
"0.6153634",
"0.6126394",
"0.60500795",
"0.6028137",
"0.5977615",
"0.59559685",
"0.5911686",
"0.59040225",
"0.5877501",
"0.5869796",
"0.58564246",
"0.584525... | 0.6124109 | 11 |
Returns the Channels Group name that sockets should subscribe to to get sent messages as they are generated. | def IXKo(YKHO):
return 'DocumentChat-%s' % YKHO.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def McjM(YKHO):\n return YKHO.__peer_group_name",
"def McjM(YKHO):\n return YKHO.__peer_group_name",
"def XZ_F(YKHO):\n return YKHO.groupname",
"def T_b0(YKHO):\n return cQ68('room-%s' % YKHO.id)",
"def T_b0(YKHO):\n return cQ68('room-%s' % str(YKHO.id))",
"def DWvF(YKHO):\n return YKHO... | [
"0.6473432",
"0.6473432",
"0.6464958",
"0.64339924",
"0.6428786",
"0.6423476",
"0.6367091",
"0.6313031",
"0.62293684",
"0.62001145",
"0.61881447",
"0.61680496",
"0.6106678",
"0.6095192",
"0.60863835",
"0.60804445",
"0.6052282",
"0.6046981",
"0.6019369",
"0.6003571",
"0.597960... | 0.67025906 | 0 |
Returns a list of all supported gender values | def IoKf(YKHO):
return i9zE.gender_choices | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YP7I(YKHO):\n try:\n return ['Male', 'Female', 'Other', 'Prefer not to say']\n except Exception as e:\n YKHO._log.exception('Could not execute user get gender definitions logic')\n return eTsH(500)",
"def EE3v():\n return Ih2K.choice(['Male', 'Female'])",
"def qVQM(VLXD, EE3v)... | [
"0.7901145",
"0.69290006",
"0.667544",
"0.66543764",
"0.6632433",
"0.6491739",
"0.6347266",
"0.63284165",
"0.6315022",
"0.6280871",
"0.6280871",
"0.62414575",
"0.62414575",
"0.6168826",
"0.61143893",
"0.61055756",
"0.6062132",
"0.6021914",
"0.6006925",
"0.5909424",
"0.5887977... | 0.75573355 | 1 |
Given a base value in CC, return smallest number of coins. | def TYP7(BWXx):
if BWXx:
if isinstance(BWXx, int):
_oWe = BWXx / ANFj
BWXx %= ANFj
U_NH = BWXx / me3M
H4yH = BWXx / KONj
U7YL = BWXx % KONj
return dict(CP=U7YL, SP=H4yH, GP=U_NH, PP=_oWe)
elif isinstance(BWXx, (dict, pSX0)):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yZcf(Q0uV):\n SCkQ = [100, 50, 25, 10, 5, 1]\n CLIn = 0\n for ee8p in SCkQ:\n CLIn += Q0uV / ee8p\n Q0uV %= ee8p\n return CLIn",
"def zf_D(wjRY, SCkQ):\n if wjRY == 0:\n return 0\n if wjRY < 0:\n return HwRy.maxsize\n global tmp_hash\n if Fjfj[wjRY] > 0:\n ... | [
"0.7098307",
"0.69258076",
"0.6530551",
"0.6354046",
"0.62146837",
"0.6210855",
"0.6031115",
"0.6028546",
"0.5904545",
"0.57984513",
"0.5761464",
"0.57115316",
"0.5679565",
"0.5665657",
"0.5604028",
"0.55672854",
"0.55668634",
"0.55370396",
"0.5510015",
"0.55079156",
"0.54948... | 0.0 | -1 |