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 |
|---|---|---|---|---|---|---|
The Amazon Resource Name (ARN) of the Outpost. | def T34B(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'outpost_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T34B(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'outpost_arn')",
"def T34B(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'outpost_arn')",
"def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO,... | [
"0.8199039",
"0.8199039",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"0.7455538",
"... | 0.7942537 | 2 |
Get an existing Volume resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Volume':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = dOG3.__new__(dOG3)
r6DL.__dict__['auto_enable_io'] = None
r6DL.__dict__['availability_zone'] = None
r6DL.__dict__['encrypte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, TUUx: Optional[pulumi.Input[str]]=None, jPPD: Optional[pulumi.Input[bool]]=None, dkrx: Optional[pulumi.Input[bool]]=None, TpaC: Optional[pulumi.Input[int]]=None, Bf5u: Optional[pulumi.Inp... | [
"0.68630713",
"0.6252019",
"0.61929846",
"0.5892601",
"0.5780615",
"0.5779109",
"0.5772514",
"0.5745061",
"0.5726422",
"0.5722583",
"0.5712534",
"0.5699731",
"0.56864136",
"0.5655776",
"0.56451875",
"0.5622646",
"0.56133634",
"0.56072366",
"0.5596022",
"0.55958086",
"0.558565... | 0.6547951 | 1 |
The Availability Zone in which to create the volume. | def ebC7(YKHO) -> qe4Y.Output[h8nf[bool]]:
return qe4Y.get(YKHO, 'auto_enable_io') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P7hP():\n return oUlR()['placement']['availability-zone']",
"def lhKE():\n return gP7g.utils.get_instance_metadata()['placement']['availability-zone']",
"def TUUx(YKHO):\n return YKHO._availability_zone",
"def TUUx(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'availability_zone')",
"d... | [
"0.7771504",
"0.75522894",
"0.7537278",
"0.75289273",
"0.75289273",
"0.75289273",
"0.75289273",
"0.7478754",
"0.74386925",
"0.74386925",
"0.74386925",
"0.74386925",
"0.74386925",
"0.73089606",
"0.73089606",
"0.73089606",
"0.73089606",
"0.73089606",
"0.73089606",
"0.73089606",
... | 0.0 | -1 |
The Availability Zone in which to create the volume. | def TUUx(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'availability_zone') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P7hP():\n return oUlR()['placement']['availability-zone']",
"def lhKE():\n return gP7g.utils.get_instance_metadata()['placement']['availability-zone']",
"def TUUx(YKHO):\n return YKHO._availability_zone",
"def TUUx(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'availability_zone')"... | [
"0.7771504",
"0.75522894",
"0.7537278",
"0.7478754",
"0.74386925",
"0.74386925",
"0.74386925",
"0.74386925",
"0.74386925",
"0.73089606",
"0.73089606",
"0.73089606",
"0.73089606",
"0.73089606",
"0.73089606",
"0.73089606",
"0.72232145",
"0.69014037",
"0.68982965",
"0.68102944",
... | 0.75289273 | 3 |
Indicates whether Amazon EBS MultiAttach is enabled. | def yRae(YKHO) -> qe4Y.Output[h8nf[bool]]:
return qe4Y.get(YKHO, 'multi_attach_enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yRae(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'multi_attach_enabled')",
"def yRae(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'multi_attach_enabled')",
"def yRae(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'multi_attach_enabled')",
"def a93y(YKHO):\n ... | [
"0.81009644",
"0.81009644",
"0.81009644",
"0.61138844",
"0.6062898",
"0.6020068",
"0.60067827",
"0.5928049",
"0.5908641",
"0.5872777",
"0.5837208",
"0.5837208",
"0.57801336",
"0.57464725",
"0.56372327",
"0.55957526",
"0.5570029",
"0.55166715",
"0.5441504",
"0.5339048",
"0.528... | 0.8106625 | 0 |
The Amazon Resource Name (ARN) of the Outpost. | def T34B(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'outpost_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T34B(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'outpost_arn')",
"def T34B(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'outpost_arn')",
"def T34B(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'outpost_arn')",
"def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4... | [
"0.79421794",
"0.79421794",
"0.79421794",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
"0.7454654",
... | 0.8198355 | 0 |
Computes area of circle | def k4fi(NrEI):
r1VO = NrEI / 2.0
return oyIN.pi * r1VO ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bjvh(Mkmy):\n return mM0K * Mkmy * Mkmy",
"def LA4l(Mkmy):\n return epAf.pi * Mkmy * Mkmy",
"def yX2h(r1VO):\n return mM0K * r1VO * r1VO",
"def yX2h(Mkmy):\n return mM0K * Mkmy ** 2",
"def yX2h(r1VO):\n return mM0K * r1VO ** 2",
"def UdRN(r1VO):\n f0tD = epAf.pi * r1VO ** 2\n ret... | [
"0.86048687",
"0.85910827",
"0.8553585",
"0.84785694",
"0.8452323",
"0.84488416",
"0.84162074",
"0.8366743",
"0.836189",
"0.8340867",
"0.8338655",
"0.82959807",
"0.8289612",
"0.82647854",
"0.8223284",
"0.82030845",
"0.81902456",
"0.81395054",
"0.81380904",
"0.81182957",
"0.81... | 0.0 | -1 |
Intialize parameters for a linear_layer | def M8X_(WNSx, NXpY, yokr=None):
HTbS = anG5.RandomState(yokr)
r8hN, exwG = WNSx
XcU5 = HTbS.randn(r8hN, exwG) * NXpY
Fg_i = HTbS.randn(exwG) * NXpY
return (XcU5, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, qepc, Bdz4, xlLU, mWFP):\n super(AVrT, YKHO).__init__()\n YKHO.n_inputs = qepc\n YKHO.n_units = Bdz4\n YKHO.rng = xlLU\n YKHO.name = mWFP\n YKHO.initialize()",
"def eLoU(tpio, IGe9, Mkmy, xVvQ):\n NArs = []\n D6jU = yOcR.random.split(xVvQ, IGe9 - 1)\n for YRbF in range(I... | [
"0.71420586",
"0.71070933",
"0.68827796",
"0.68624717",
"0.6815563",
"0.673569",
"0.66857153",
"0.6654782",
"0.66268426",
"0.65931976",
"0.6538891",
"0.64780897",
"0.6436363",
"0.64114165",
"0.6402726",
"0.639241",
"0.6389621",
"0.6378404",
"0.6372189",
"0.6357504",
"0.632988... | 0.0 | -1 |
Ensure that robust_outer_product returns the expected results. Unfortunately, I cannot find a good case now where using the regular outer product gives incorrect results. However without a compelling reason to remove the function, I'll trust my earlier judgement in creating it in the first place. | def xe0K(YKHO):
WKvO = oyIN.array([1e-100, 0.01])
aKAg = oyIN.outer(WKvO, WKvO)
I9zj = EqBn.robust_outer_product(WKvO, WKvO)
YKHO.assertIsInstance(I9zj, oyIN.ndarray)
YKHO.assertEqual(I9zj.shape, aKAg.shape)
eQHC.assert_allclose(aKAg, I9zj)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qXOB(EcVT):\n LTX_ = oyIN.outer(EcVT, EcVT)\n ywwl = 1 - oyIN.isnan(LTX_)\n return (LTX_, ywwl)",
"def _So_():\n hQHm, jlSq = (oyIN.array([-1, 2, 3]), oyIN.array([4, 5, 6]))\n MrFJ = 24\n oyIN.testing.assert_equal(eN5c(hQHm, jlSq), MrFJ)",
"def Z3gT():\n hQHm, jlSq = (oyIN.array([1, 2,... | [
"0.69497174",
"0.69273937",
"0.6914039",
"0.6900986",
"0.6815417",
"0.67911845",
"0.65607923",
"0.6484423",
"0.6439076",
"0.6390437",
"0.6372023",
"0.635525",
"0.6215658",
"0.610842",
"0.60694623",
"0.59866685",
"0.5978482",
"0.5937046",
"0.5877025",
"0.5861064",
"0.58552957"... | 0.8645268 | 0 |
Ensure that calc_fisher_info_matrix returns the expected values. | def JJ0W(YKHO):
def LEtH(yFY2, eI_S, oXhq, cdhZ):
return x1Jm(oyIN.ones(yFY2.shape[0]), 0, format='csr')
def d3hA(yFY2, eI_S, oXhq, cdhZ):
return oXhq[:, 1:]
i0XC = oyIN.exp(YKHO.fake_shapes)[None, :]
def vdZ_(yFY2, eI_S, oXhq, cdhZ):
return oXhq[:, 1:].multiply(i0XC)
zQQs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def apTB(YKHO):\n\n def LEtH(yFY2, eI_S, oXhq, cdhZ):\n return x1Jm(oyIN.ones(yFY2.shape[0]), 0, format='csr')\n\n def d3hA(*qIxc):\n return None\n\n def vdZ_(*qIxc):\n return None\n zQQs = [YKHO.fake_betas, YKHO.fake_design, YKHO.fake_df[YKHO.alt_id_col].values, YKHO.fake_rows_to_... | [
"0.6981932",
"0.6925342",
"0.68939215",
"0.6731321",
"0.65637565",
"0.6285372",
"0.6101799",
"0.6097736",
"0.60306567",
"0.6023733",
"0.5985314",
"0.594294",
"0.5891751",
"0.5803768",
"0.5730958",
"0.5704275",
"0.5672017",
"0.56579655",
"0.55735844",
"0.5571389",
"0.5571364",... | 0.711449 | 0 |
Ensure that the calc_hessian function returns expected results when there are no shape parameters and no intercept parameters. | def r1Nl(YKHO):
L42E = YKHO.fake_design
zCS5 = EqBn.create_matrix_block_indices(YKHO.fake_rows_to_obs)
qIxc = [YKHO.fake_betas, YKHO.fake_design, YKHO.fake_df[YKHO.alt_id_col].values, YKHO.fake_rows_to_obs, YKHO.fake_rows_to_alts, YKHO.utility_transform]
B2fa = {'intercept_params': YKHO.fake_intercepts,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DQHZ(YKHO):\n YDbF = 1\n YKHO.estimator.constrained_pos = [YDbF]\n JfyU = YKHO.estimator.convenience_calc_hessian\n GL5i = JfyU(YKHO.fake_betas_ext)\n YKHO.assertEqual(GL5i[YDbF, :].tolist(), [0, -1, 0, 0])\n YKHO.assertEqual(GL5i[:, YDbF].tolist(), [0, -1, 0, 0])\n return None",
"def Vm... | [
"0.75441235",
"0.70977867",
"0.70727754",
"0.66688776",
"0.6608938",
"0.6465322",
"0.64162326",
"0.6406256",
"0.6358943",
"0.6343322",
"0.6340317",
"0.63316196",
"0.63063145",
"0.6254525",
"0.6254525",
"0.6192009",
"0.6190698",
"0.6182247",
"0.61415446",
"0.61331004",
"0.6001... | 0.73721653 | 1 |
Ensure that the calc_hessian function returns expected results when there are no shape parameters. | def VmlU(YKHO):
L42E = YKHO.fake_design
zCS5 = EqBn.create_matrix_block_indices(YKHO.fake_rows_to_obs)
qIxc = [YKHO.fake_betas, YKHO.fake_design, YKHO.fake_df[YKHO.alt_id_col].values, YKHO.fake_rows_to_obs, YKHO.fake_rows_to_alts, YKHO.utility_transform]
B2fa = {'intercept_params': YKHO.fake_intercepts,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DQHZ(YKHO):\n YDbF = 1\n YKHO.estimator.constrained_pos = [YDbF]\n JfyU = YKHO.estimator.convenience_calc_hessian\n GL5i = JfyU(YKHO.fake_betas_ext)\n YKHO.assertEqual(GL5i[YDbF, :].tolist(), [0, -1, 0, 0])\n YKHO.assertEqual(GL5i[:, YDbF].tolist(), [0, -1, 0, 0])\n return None",
"def r1... | [
"0.7269798",
"0.7148882",
"0.65656877",
"0.6548254",
"0.65103585",
"0.6469902",
"0.6412098",
"0.6295253",
"0.6233494",
"0.6212727",
"0.6212727",
"0.61996675",
"0.6184842",
"0.61737967",
"0.6155195",
"0.6075503",
"0.60440004",
"0.6040605",
"0.6002677",
"0.59939545",
"0.5958820... | 0.7133603 | 2 |
Returns data from dataTupleList contained in labeled intervals | def OfSP(YKHO, t8yS):
kXSl = []
for VOlW in YKHO.entryList:
RI0h = BfDw.getValuesInInterval(t8yS, VOlW[0], VOlW[1])
kXSl.append((VOlW, RI0h))
return kXSl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZXz8(YKHO, t8yS, vF1p=False):\n YRbF = 0\n QgGc = []\n b_we = t8yS.sorted()\n for E3oo, UXqs in YKHO.entryList:\n UYxi = BfDw.getValueAtTime(E3oo, b_we, fuzzyMatching=vF1p, startI=YRbF)\n Tyk6, lCxN, YRbF = UYxi\n QgGc.append((Tyk6, UXqs, lCxN))\n return QgGc",
"def H6tC(Y... | [
"0.591694",
"0.58980155",
"0.57432973",
"0.57013685",
"0.5685558",
"0.5660299",
"0.5659491",
"0.5625268",
"0.55164045",
"0.5417639",
"0.5409604",
"0.53854007",
"0.53854007",
"0.53838134",
"0.5359828",
"0.53529435",
"0.53397346",
"0.53320086",
"0.53289086",
"0.53269315",
"0.53... | 0.6912208 | 0 |
Takes the set intersection of this tier and the given one Only intervals that exist in both tiers will remain in the returned tier. If intervals partially overlap, only the overlapping portion will be returned. | def iQin(YKHO, EcuX):
nBTF = []
for yKcO, JCyR, UXqs in EcuX.entryList:
Sbt9 = YKHO.crop(yKcO, JCyR, 'truncated', False)
CppO = '%s-%%s' % UXqs
Lf7t = [(soLu[0], soLu[1], CppO % soLu[2]) for soLu in Sbt9.entryList]
nBTF.extend(Lf7t)
o3RU = '%s-%s' % (YKHO.name, EcuX.name)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMlP(YKHO, Elif: Interval) -> Kx1f:\n if YKHO.transform != Elif.transform:\n raise RuntimeError('Cant intersect Interval constraints with conflicting transforms!')\n IDsK = ht2j.max(YKHO.lower_bound, Elif.lower_bound)\n A2Fp = ht2j.min(YKHO.upper_bound, Elif.upper_bound)\n return Kx1f(IDsK, ... | [
"0.66766334",
"0.6608977",
"0.65496206",
"0.64044625",
"0.6364587",
"0.63470596",
"0.6258618",
"0.6205806",
"0.6203158",
"0.6117615",
"0.6107419",
"0.6080315",
"0.60800105",
"0.6063041",
"0.606054",
"0.60132504",
"0.5987041",
"0.5985158",
"0.5985158",
"0.59733737",
"0.5940241... | 0.6345699 | 6 |
Returns a copy of this Textgrid | def BdN0(YKHO):
return jth9.deepcopy(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3ak(YKHO):\n PkJP = paVB(YKHO.__value, YKHO.__top, YKHO.__left, YKHO.__width, YKHO.__height, YKHO.__font, YKHO.__format, YKHO.__typ)\n return PkJP",
"def inJd(YKHO):\n ITwz = F8dZ()\n KMi3(YKHO.app, ITwz)\n return ITwz",
"def i3ak(YKHO):\n ST3H = bX7M('', YKHO.myWidth, YKHO.myHeight)\n ... | [
"0.6900226",
"0.68667644",
"0.66616255",
"0.66057944",
"0.65869737",
"0.6504776",
"0.65006036",
"0.6456185",
"0.6302665",
"0.6252847",
"0.61756146",
"0.61756146",
"0.61756146",
"0.61756146",
"0.61756146",
"0.61756146",
"0.6042946",
"0.602574",
"0.58953094",
"0.58606184",
"0.5... | 0.0 | -1 |
Return the singleton logging. | def onyh(ABDL=2):
global _logging
if not KWKZ:
KWKZ = z6LH(ABDL)
return KWKZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bo34():\n return bo34",
"def RKD7(YKHO):\n return bo34",
"def RKD7(YKHO):\n return G9jH.getLogger(YKHO.__class__.__name__)",
"def bo34():\n return I45O",
"def NMoC():\n return G9jH.getLogger()",
"def fZx2():\n return S0MI",
"def fZx2(YKHO):\n pass",
"def WmBn(YKHO):\n retu... | [
"0.8208737",
"0.81737787",
"0.8085901",
"0.80788475",
"0.8068036",
"0.7886406",
"0.78604674",
"0.78526723",
"0.78499645",
"0.7816509",
"0.776061",
"0.77602303",
"0.77531606",
"0.772646",
"0.77260613",
"0.77260613",
"0.7699136",
"0.769281",
"0.76844525",
"0.76666784",
"0.76649... | 0.73470783 | 51 |
Return package version as listed in `__version__` in `__init__.py`. | def kaPv(B5hb):
pmON = Hy7s.path.join(Hy7s.path.dirname(xAKo), B5hb, '__init__.py')
with open(pmON, 'rb') as eHNT:
Eosz = eHNT.read().decode('utf-8')
return ZbWC.search('__version__ = [\'"]([^\'"]+)[\'"]', Eosz).group(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(B5hb):\n Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read()\n return ZbWC.search('__version__ = [\\'\"]([^\\'\"]+)[\\'\"]', Eosz).group(1)",
"def kaPv():\n from . import __version__\n return __version__",
"def NMoC():\n D9fZ = XtZ5()\n if len(D9fZ) == 0:\n raise ValueErro... | [
"0.8323631",
"0.83058244",
"0.8265264",
"0.82583547",
"0.8256428",
"0.8252071",
"0.8252071",
"0.82488644",
"0.82488644",
"0.82488644",
"0.82488644",
"0.82488644",
"0.823802",
"0.8234907",
"0.8206395",
"0.82017815",
"0.81453764",
"0.812667",
"0.801218",
"0.7981687",
"0.7911048... | 0.8223418 | 14 |
Builds and returns `ObservationCropper`s for the selected level. | def PXGa(ABDL):
return [Z5Kd.ScrollingCropper(rows=10, cols=30, to_track=['P'], initial_offset=jNhL[ABDL]), Z5Kd.ScrollingCropper(rows=7, cols=10, to_track=['c'], pad_char=' ', scroll_margins=(None, 3)), Z5Kd.FixedCropper(top_left_corner=uYbh[ABDL], rows=12, cols=20, pad_char=' ')] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUK6(YKHO, ABDL='low'):\n ROpF = YKHO.img_shape\n mC4V = [0, 0]\n if ABDL == 'very_low':\n NXpY = 50\n elif ABDL == 'low':\n NXpY = 40\n elif ABDL == 'med':\n NXpY = 30\n elif ABDL == 'high':\n NXpY = 15\n mC4V[0], mC4V[1] = (ROpF[0] // NXpY, ROpF[1] // NXpY)\n ... | [
"0.63788235",
"0.5251694",
"0.5095922",
"0.50678176",
"0.5004248",
"0.49194485",
"0.491371",
"0.49119437",
"0.49119437",
"0.48644042",
"0.48352578",
"0.48109153",
"0.47863796",
"0.47723615",
"0.4760656",
"0.4759417",
"0.4759355",
"0.47578257",
"0.47528243",
"0.47421172",
"0.4... | 0.6747404 | 0 |
cities for a State instance | def gysO(YKHO):
lc_l = FYrf.storage.all(cKBo)
return [Ty9i for Ty9i in lc_l.values() if Ty9i.state_id == YKHO.id] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z4JF():\n S8SU.reload()\n kAJw = S8SU.all('City')\n UUvl = S8SU.all('State')\n ndJH = {}\n wspz = []\n for G1Hx, Ty9i in UUvl.items():\n wspz.append([Ty9i.id, Ty9i.name])\n for j5sA in kAJw.values():\n if j5sA.state_id in ndJH.keys():\n ndJH[j5sA.state_id].append([... | [
"0.783833",
"0.78081656",
"0.77627313",
"0.7760188",
"0.7743841",
"0.7687499",
"0.7668324",
"0.7634356",
"0.76328665",
"0.76142377",
"0.76081276",
"0.760415",
"0.7595737",
"0.75926757",
"0.755181",
"0.7544389",
"0.7539966",
"0.7534083",
"0.7514551",
"0.7495239",
"0.7487832",
... | 0.7626788 | 9 |
If the user is not logged in, show him the login/register forms, with some blurb about the services. Else redirect to /dashboard/ | def d6pt(QePW):
if QePW.user.is_authenticated():
return Yd7Q('/dashboard/')
if QePW.method == 'POST':
return MC83(QePW)
ONVH = AjPB.UserCreationForm(prefix='register')
Gckm = AjPB.LoginForm()
QePW.session.set_test_cookie()
pB3N = {'register_form': ONVH, 'login_form': Gckm}
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dck1():\n if cuiw['user']:\n return TvZl('dashboard.html')\n else:\n return vKnz(nKyW('login'))",
"def NMoC(YKHO):\n if not YKHO.user:\n YKHO.render('login-form.html')\n else:\n YKHO.redirect('/blog/')",
"def F_xU(QePW):\n if QePW.user.is_authenticated:\n r... | [
"0.7730599",
"0.7694969",
"0.7683494",
"0.7608263",
"0.75119644",
"0.7457031",
"0.73916787",
"0.7346105",
"0.7315584",
"0.73105395",
"0.72897017",
"0.7273526",
"0.7217903",
"0.7202395",
"0.71993315",
"0.7191363",
"0.7179396",
"0.71784914",
"0.7175127",
"0.71436054",
"0.706199... | 0.6655384 | 83 |
Calculate iou of predicted bbox and ground truth. | def VPYF(xnQT, LdDn):
o4D3 = float(xnQT[0])
si3g = float(xnQT[1])
dtS8 = float(xnQT[2] - xnQT[0])
Uk87 = float(xnQT[3] - xnQT[1])
ajwV = float(LdDn[0])
skBL = float(LdDn[1])
IOG9 = float(LdDn[2] - LdDn[0])
rj3P = float(LdDn[3] - LdDn[1])
yEOf = max(o4D3 + dtS8, ajwV + IOG9)
WcFg ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FVUk(yLaY, PjQx):\n TS7N, Q5hR, aNmD, IyHd = yLaY[0]\n SyV1, alWy, NdiU, JbmQ = PjQx[0]\n FGRc = oyIN.min([aNmD, NdiU])\n N8rv = oyIN.max([TS7N, SyV1])\n qOio = oyIN.min([IyHd, JbmQ])\n RIzZ = oyIN.max([Q5hR, alWy])\n wpbH = (FGRc - N8rv + 1) * (qOio - RIzZ + 1)\n MzES = (aNmD - TS7N + ... | [
"0.759859",
"0.7581168",
"0.7403492",
"0.7316527",
"0.7257643",
"0.7139116",
"0.7051604",
"0.704127",
"0.70284307",
"0.69099236",
"0.68525976",
"0.6823341",
"0.68090093",
"0.6782263",
"0.67177576",
"0.665148",
"0.66249096",
"0.65966076",
"0.6566258",
"0.6553976",
"0.6527246",... | 0.8369888 | 0 |
Setup method for creating a user for all test | def FCbF(YKHO):
SH4B = Szdd.objects.create(username='testuser', email='test@mail.com', phone='+919876543210')
SH4B.set_password('testing123')
SH4B.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n mv1M.objects.create_user('testington', 'alpha@' + ubAE, 'alphabeta')",
"def fDuS(YKHO):\n YKHO.setup_test_tenant()\n YKHO.test_user = Nhuv.rand_name('test_user_')\n YKHO.test_password = Nhuv.rand_name('pass_')\n YKHO.test_email = YKHO.test_user + '@testmail.tm'\n _hkX, YKHO.us... | [
"0.8598973",
"0.8513627",
"0.83917445",
"0.837699",
"0.83739996",
"0.8370455",
"0.83602756",
"0.83535266",
"0.83535266",
"0.8324946",
"0.8313773",
"0.8279654",
"0.82505405",
"0.82502633",
"0.82500386",
"0.8240165",
"0.8225847",
"0.8220152",
"0.8214512",
"0.8210287",
"0.817551... | 0.7529013 | 96 |
Reset one list fields for `company`. | def Ihh7(YKHO, q9zX, XiF4):
try:
YKHO._update_company(q9zX, new_one_list_tier_id=None, new_one_list_account_owner_id=None, simulate=XiF4)
except Exception:
bo34.exception(f'Resetting company {q9zX} - Failed')
return False
else:
bo34.info(f'Resetting company {q9zX} - OK')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j9ib(YKHO):\n for ETu_ in YKHO:\n ETu_.qut_number = u''\n ETu_.shipment_type = u''\n ETu_.from_date = u''\n ETu_.to_date = u''\n ETu_.customs_declaration_id = u''",
"def SiRx(YKHO):\n YKHO.pass_code_claimed = False\n YKHO.folio_number = None\n YKHO.name = 'Test ... | [
"0.68401706",
"0.60387903",
"0.5970897",
"0.58727366",
"0.5851826",
"0.5815933",
"0.5815933",
"0.5815933",
"0.5815933",
"0.5815933",
"0.5815933",
"0.5815933",
"0.5732639",
"0.5682339",
"0.5678233",
"0.5653118",
"0.56530046",
"0.56447595",
"0.56263244",
"0.56257",
"0.55931544"... | 0.6171396 | 1 |
sends a HelpOut Message to a known User | async def helpout_user(YKHO, OaeV, *, pan_: str):
for mS46 in YKHO.bot.get_all_members():
if mS46.name == pan_:
return await YKHO.bot.get_guild(mS46.guild.id).get_member(mS46.id).send(f'**Hi {pan_},**\n*{OaeV.author.name} send me to help you out!*')
return await OaeV.send(f"I dont know the U... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GOD4(JyK9, QdZT, gFsc):\n QdZT.message.reply_text('Help!')",
"def IrZY(YKHO, QdZT):\n YKHO._log.info('Help message has been requested')\n YKHO._log.debug(YKHO._get_user_info(QdZT))\n QdZT.message.reply_text('Use /run to run data gathering\\nUse /stop command to fully stop the bot')\n YKHO._log... | [
"0.73729163",
"0.6995159",
"0.69842666",
"0.6901184",
"0.68141043",
"0.6795765",
"0.6774922",
"0.6750044",
"0.66955614",
"0.6694287",
"0.6694287",
"0.66515297",
"0.6642411",
"0.66387737",
"0.6637015",
"0.66248184",
"0.66248184",
"0.66248184",
"0.66248184",
"0.66248184",
"0.66... | 0.74664026 | 0 |
Initialize the standard level settings | def FIMM(YKHO):
YKHO.MAX_INFECTIONS_PER_DISEASE = 24
YKHO.MAX_INFECTIONS_PER_DISEASE_IN_CITY = 3
YKHO.MAX_RESEARCH_STATIONS = 7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, ABDL='default.lvl'):\n YKHO.changeLevel(ABDL)\n return",
"def Ks3f(YKHO):\n pass",
"def Ks3f(YKHO):\n pass",
"def Ks3f(YKHO):\n pass",
"def FIMM(YKHO, ABDL):\n YKHO.level = ABDL",
"def Ks3f(YKHO):\n pass",
"def Ks3f(YKHO):\n pass",
"def Ks3f(YKHO):\n pass",
... | [
"0.7303883",
"0.69889146",
"0.69386077",
"0.693755",
"0.67323244",
"0.6629874",
"0.6629874",
"0.6629874",
"0.6629874",
"0.6629874",
"0.6629874",
"0.6620795",
"0.657649",
"0.6548046",
"0.64855105",
"0.6474396",
"0.64661944",
"0.641775",
"0.6406717",
"0.63874435",
"0.6371099",
... | 0.0 | -1 |
Invalid POST should not redirect | def AWhd(YKHO):
YKHO.assertEqual(200, YKHO.response.status_code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uq0J(QePW):\n if QePW.method == 'POST':\n return igJ6('everything is OK', status=200)\n else:\n return igJ6('bad request', status=400)",
"def RI_W(QePW, Eorv):\n return lSjL",
"def G1ji():\n geh0, hGN5 = Xqgu.requestU('http://our_test_domain:8001/challenge/cookie_form', method='PO... | [
"0.6899435",
"0.6890363",
"0.6879779",
"0.6830989",
"0.681061",
"0.681061",
"0.67800605",
"0.6703148",
"0.66909266",
"0.66909266",
"0.66885024",
"0.6681246",
"0.66667205",
"0.6650544",
"0.6623073",
"0.661995",
"0.66168386",
"0.6605685",
"0.6604533",
"0.6573355",
"0.6572417",
... | 0.0 | -1 |
Email and Phone are optional, but email, if inserted, must be valid | def cXGh(YKHO):
aZac = dict(name='John Doe', cpf='12345678901', email='johndoe', phone='')
L03z = jfMG(aZac)
L03z.is_valid()
YKHO.assertTrue(L03z.errors) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IUhQ(YKHO):\n L03z = YKHO.make_validated_form(email='', phone='')\n YKHO.assertListEqual(['__all__'], list(L03z.errors))",
"def Bt7w(L03z, Jyyj):\n if L03z.email.data and L03z.phone_number.data:\n return True\n elif L03z.phone_number.data:\n L03z.email.errors[:] = []\n return... | [
"0.706443",
"0.6985193",
"0.69311845",
"0.6926347",
"0.67739964",
"0.6773285",
"0.6659201",
"0.66580844",
"0.664522",
"0.6580325",
"0.6539858",
"0.6536011",
"0.6531561",
"0.6521617",
"0.65124243",
"0.6497117",
"0.64626825",
"0.6447907",
"0.64285696",
"0.6424789",
"0.6406788",... | 0.6522517 | 13 |
Write high half of register | def dPo6(YKHO, wEf2):
if YKHO.debug:
print('BUF_WRITE_HI({})'.format(wEf2))
YKHO._BUF_simple(7, wEf2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DlRb(YKHO, BWXx):\n cnPl = lY0q.c_ubyte(BWXx)\n YKHO._call('HsGpioWriteHighByte', cnPl)",
"def qCin(YKHO, PCmf, wEf2):\n return YKHO.jlink.wr16(PCmf, wEf2)",
"def lbRh(yQ5t, Musd):\n pass",
"def NIjd(YKHO, lQ3t, wEf2):\n YKHO._spi.xfer([lQ3t | YKHO._WRITE, wEf2])",
"def ukfJ(qw7D, qEJV):... | [
"0.6287963",
"0.61925113",
"0.60725147",
"0.60288495",
"0.60045344",
"0.5980201",
"0.59604186",
"0.5897793",
"0.5849851",
"0.5833964",
"0.58277816",
"0.5809423",
"0.58079624",
"0.57963586",
"0.577623",
"0.57178867",
"0.56814504",
"0.5650141",
"0.5630362",
"0.56280583",
"0.562... | 0.0 | -1 |
Compute the biweight midvariance for an array. The biweight midvariance is a robust statistic for determining the midvariance (i.e. the standard deviation) of a distribution. | def X1MW(jzdc, RqgG=None, Z9rn=9.0, _hZ2=0.0001):
jzdc = XTiz.asarray(jzdc)
if RqgG is None:
RqgG = XTiz.median(jzdc)
Csk6 = jzdc - RqgG
yzQ0 = Csk6 / max(Z9rn * k06k(jzdc), _hZ2)
yzQ0 = yzQ0 ** 2
ZHfW = XTiz.abs(yzQ0) < 1
exwG = ZHfW.sum()
return exwG ** 0.5 * (Csk6[ZHfW] * Csk6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iTQd(aeVx):\n from numpy import var\n return var(aeVx) / 3.0",
"def H0n6(qw7D):\n KISt = oyIN.zeros((int(qw7D.shape[0] / 2), int(qw7D.shape[-1] / 2)))\n OJPI = oyIN.zeros((int(qw7D.shape[0] / 2), int(qw7D.shape[-1] / 2)))\n for YRbF in range(2):\n for r845 in range(2):\n ezWE... | [
"0.6295962",
"0.60828835",
"0.60205257",
"0.5958012",
"0.59318703",
"0.5840042",
"0.57996285",
"0.57975864",
"0.5754016",
"0.57341707",
"0.57317144",
"0.57277673",
"0.57162017",
"0.5682169",
"0.56502175",
"0.5631913",
"0.5623433",
"0.5588079",
"0.55845994",
"0.558459",
"0.557... | 0.6746884 | 0 |
Compute the median absolute deviation (MAD) of array elements. | def k06k(jzdc, m1lp=True):
jzdc = XTiz.asarray(jzdc)
GX6U = XTiz.median(jzdc)
XNqj = XTiz.median(XTiz.abs(jzdc - GX6U))
if m1lp:
XNqj *= 1.4826
return XNqj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DAvx(hkxX):\n if not isinstance(hkxX, oyIN.ndarray):\n hkxX = oyIN.array(hkxX)\n BjRM = oyIN.median(hkxX)\n return oyIN.median(oyIN.abs(hkxX - BjRM))",
"def XNqj(jzdc):\n jzdc = oyIN.asfarray(jzdc).flatten()\n return oyIN.median(oyIN.abs(jzdc - oyIN.median(jzdc)))",
"def XNqj(WKvO):\n... | [
"0.81045884",
"0.80934185",
"0.79818547",
"0.7882982",
"0.7871302",
"0.78253424",
"0.779393",
"0.776274",
"0.75972754",
"0.74624646",
"0.7427502",
"0.7388806",
"0.7378368",
"0.7377058",
"0.734032",
"0.73060435",
"0.73054487",
"0.72880465",
"0.7241528",
"0.7187151",
"0.7153886... | 0.6980737 | 26 |
Return list of `Atom` charges. | def sCqH(YKHO):
sCqH = []
for WhQ6 in YKHO._atoms:
sCqH.append(WhQ6.q)
YKHO._charges = sCqH[:]
return oyIN.asarray(YKHO._charges) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AzTc(GptU: Mol) -> x1iM[int]:\n RR8p = GptU.GetAtoms()\n sCqH = [WhQ6.GetFormalCharge() for WhQ6 in RR8p]\n sCqH = oyIN.array(sCqH)\n return sCqH",
"def kUCS() -> list:\n return list(R0Rx)",
"def GULB(N9D1: IndigoObject) -> dict:\n sCqH = []\n for WhQ6 in N9D1.iterateAtoms():\n ... | [
"0.82033086",
"0.7239386",
"0.70540994",
"0.68537855",
"0.6622157",
"0.64902306",
"0.64774257",
"0.6425377",
"0.63836086",
"0.6379675",
"0.6215604",
"0.61772925",
"0.61649024",
"0.6116019",
"0.61071527",
"0.60898757",
"0.6088987",
"0.59205306",
"0.5913237",
"0.58886874",
"0.5... | 0.7501189 | 1 |
Update `Atom` coordination numbers. | def opVF(YKHO):
if YKHO._use_kdtree:
TeoJ, HxTw = YKHO.query_atom_tree(n=YKHO.NN_number, cutoff_radius=YKHO.NN_cutoff)
for YRbF, WhQ6 in enumerate(YKHO._atoms):
Zzsh = 0
for Csk6 in TeoJ[YRbF]:
if Csk6 < YKHO.NN_cutoff:
Zzsh += 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fE0O(YKHO) -> None:\n for WhQ6 in YKHO.atoms.values():\n WhQ6.update_pos_vel()",
"def CfxS(YKHO):\n try:\n _UuI, fopC = YKHO.fetched_coordinates\n YKHO.anonymized_latitude = _UuI\n YKHO.anonymized_longitude = fopC\n except T7fC:\n bo34.exception('Error when updatin... | [
"0.65158117",
"0.6510428",
"0.6388439",
"0.6156978",
"0.5864951",
"0.5854914",
"0.5849543",
"0.58373624",
"0.5794921",
"0.5764741",
"0.5734265",
"0.5711282",
"0.57095313",
"0.56925374",
"0.5683918",
"0.5674991",
"0.5672366",
"0.5646554",
"0.56391364",
"0.5610551",
"0.56059897... | 0.7272945 | 0 |
Query atom tree for nearest neighbors distances and indices. | def g2rk(YKHO, exwG=6, SGf8=0, XP5J=2, OrXs=oyIN.inf):
kJgx = YKHO.atom_tree
TeoJ = HxTw = None
if kJgx is not None:
Csk6, YRbF = kJgx.query(YKHO.coords, k=exwG + 1, eps=SGf8, p=XP5J, distance_upper_bound=OrXs)
TeoJ, HxTw = (Csk6[:, 1:], YRbF[:, 1:])
return (TeoJ, HxTw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OH_i(YKHO):\n Q3Ge = (YKHO._data.collided == 0) | (YKHO._data.resolved == 1)\n JntI = YKHO._data[Q3Ge]\n J_Es = plLA(JntI[YKHO.coord_keys])\n Q3Ge = (YKHO.sample.collided == 1) & (YKHO.sample.resolved == 0)\n qK8H = YKHO.sample[Q3Ge]\n eFr6, noZV = J_Es.query(qK8H[YKHO.coord_keys], k=1)\n ... | [
"0.66067094",
"0.6401979",
"0.63919204",
"0.6268669",
"0.62372226",
"0.622177",
"0.613705",
"0.6031281",
"0.60135734",
"0.6007051",
"0.6007051",
"0.59971327",
"0.59866095",
"0.59752285",
"0.59534484",
"0.5940818",
"0.59402853",
"0.5938359",
"0.5935807",
"0.5920734",
"0.588294... | 0.70953965 | 0 |
Return array of `Atom` symbols. | def rmc3(YKHO):
rmc3 = []
for WhQ6 in YKHO._atoms:
rmc3.append(WhQ6.symbol)
YKHO._symbols = rmc3[:]
return oyIN.asarray(YKHO._symbols) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iB3p(YKHO):\n return YKHO.atoms",
"def uGLX(I381):\n return crWc.by_key_by_position(RR8p(I381), n1wu(I381), hPcp)",
"def O0Ix(YKHO):\n return (YKHO.atoms[0].name, YKHO.atoms[1].name)",
"def RR8p(YKHO):\n RR8p = [mS46 for mS46 in YKHO if issubclass(type(mS46), k3IH)]\n return RR8p",
"def ... | [
"0.7364642",
"0.72414684",
"0.70070267",
"0.69425094",
"0.6935444",
"0.6906546",
"0.67344475",
"0.67117023",
"0.67031306",
"0.67013264",
"0.6680884",
"0.6605786",
"0.65773886",
"0.64861786",
"0.6407717",
"0.6407717",
"0.6405832",
"0.6376373",
"0.6376373",
"0.6367639",
"0.6363... | 0.7826257 | 0 |
Assign unique ID to each `Atom` in `Atoms`. | def CvDb(YKHO, BZcq=1):
for YRbF, WhQ6 in enumerate(YKHO._atoms, start=BZcq):
WhQ6.atomID = YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c14K(YKHO) -> None:\n O0Ix = {}\n for WhQ6 in YKHO.atoms:\n o61b = WhQ6.atomic_symbol\n if o61b not in O0Ix:\n O0Ix[o61b] = 1\n else:\n O0Ix[o61b] += 1\n WhQ6.atom_name = f'{o61b}{O0Ix[o61b]}'",
"def grfj(YKHO):\n grfj = []\n for WhQ6 in YKHO._ato... | [
"0.63656974",
"0.6128568",
"0.60377413",
"0.5861254",
"0.5775096",
"0.5771015",
"0.5645071",
"0.5637396",
"0.5566855",
"0.5550238",
"0.5542806",
"0.5542806",
"0.5532192",
"0.55237067",
"0.55048466",
"0.55024713",
"0.54986775",
"0.5483764",
"0.54767025",
"0.54423165",
"0.54278... | 0.7916484 | 0 |
Concrete implementation of . Returns int length of `self.atoms` list. | def szAg(YKHO):
return len(YKHO._atoms) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return len(YKHO.atoms)",
"def w7Wt(YKHO):\n return len(YKHO.atoms)",
"def tVKP(YKHO):\n return len(YKHO._atoms)",
"def Xws6(YKHO) -> int:\n return len(YKHO.atoms)",
"def w7Wt(YKHO):\n YRbF = 0\n for jzdc in YKHO.atomdata:\n YRbF += len(jzdc)\n return YRbF",
"... | [
"0.89669436",
"0.8666274",
"0.8603942",
"0.85470057",
"0.8528115",
"0.8092475",
"0.7955359",
"0.77653944",
"0.7763373",
"0.7753296",
"0.7668927",
"0.75765836",
"0.7567112",
"0.75646096",
"0.7529153",
"0.75150806",
"0.7513223",
"0.75073403",
"0.7500046",
"0.7497063",
"0.747756... | 0.89702225 | 0 |
convert continued fraction to number | def BWXx(YKHO):
if len(YKHO.a) == 1:
return YKHO.a[0]
else:
OCOs = ny26(YKHO.a[1:], YKHO.b[1:]).value()
if OCOs == 0:
return 10 ** 10
else:
return YKHO.a[0] + YKHO.b[0] / OCOs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N61O(gfVs):\n M6pt = 1\n UUZ1 = gfVs[-1]\n gfVs.pop(-1)\n for mLGw in reversed(gfVs):\n M6pt += mLGw * UUZ1\n M6pt, UUZ1 = (UUZ1, M6pt)\n M6pt, UUZ1 = (UUZ1, M6pt)\n print(M6pt, '/', UUZ1)\n print('numerator digit sum:', _BV2(M6pt))",
"def Fakh(wA3x):\n assert len(wA3x) ... | [
"0.75736237",
"0.7002644",
"0.69068336",
"0.68574136",
"0.67287767",
"0.6679736",
"0.6665116",
"0.66598314",
"0.66333836",
"0.65717405",
"0.6508177",
"0.64808947",
"0.6477917",
"0.6476186",
"0.6462438",
"0.64573514",
"0.64151794",
"0.63945264",
"0.63898057",
"0.6379047",
"0.6... | 0.6006136 | 39 |
get avg of rating for a restaurant | def Qz5P(zNJU):
if zNJU is None:
return (rhwM('400', 'dish_id not specified'), 400)
RrWF = bJ04.get_avg_rating_restaurant(zNJU)
if RrWF == -1:
return c295(RrWF, 404)
else:
return c295(RrWF, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lqWM(YKHO):\n wjRY = 0\n exwG = 0\n if len(YKHO.ratings) > 0:\n for RrWF in YKHO.ratings:\n wjRY += RrWF\n exwG += 1\n return wjRY / exwG\n else:\n print('There are no ratings for {title}'.format(title=YKHO.title))",
"def lqWM(YKHO):\n return sum(YKHO... | [
"0.79266334",
"0.7838523",
"0.7718719",
"0.7684618",
"0.7646472",
"0.7537984",
"0.7537495",
"0.7438874",
"0.74311566",
"0.7408138",
"0.7356107",
"0.73428965",
"0.7229533",
"0.7180072",
"0.7127506",
"0.7052443",
"0.70335406",
"0.70183384",
"0.7005107",
"0.6976377",
"0.69507796... | 0.7949582 | 0 |
Adds the item to the very first bin that it can fit it. | def dRO0(ZfUD, Pyrc):
Fg_i = next((Fg_i for Fg_i in Pyrc if Fg_i.can_add_item(ZfUD)), None)
if not Fg_i:
Fg_i = Uj8n(Pyrc[0].capacity)
Pyrc.append(Fg_i)
Fg_i.add_item(ZfUD)
return Pyrc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gmlo(YKHO, ZfUD: item.Item) -> None:\n for D_32 in YKHO.bins:\n Aofo = D_32.insert(ZfUD, YKHO.heuristic)\n if Aofo:\n break\n if not Aofo:\n YKHO.bins.append(YKHO._bin_factory(YKHO.bin_width, YKHO.bin_height, YKHO.algorithm, YKHO.heuristic))\n YKHO.bins[-1].insert(Z... | [
"0.78508824",
"0.77031237",
"0.7669834",
"0.76108265",
"0.75813246",
"0.7574876",
"0.75704306",
"0.75586045",
"0.75416344",
"0.6973375",
"0.6650208",
"0.65750426",
"0.6542257",
"0.6530155",
"0.65115875",
"0.6493319",
"0.6426256",
"0.64095443",
"0.6405851",
"0.63831246",
"0.63... | 0.7628142 | 3 |
Creates an instance that can run the tabu search algorithm. | def FIMM(YKHO, b7hB, DumB, A75g=10, c8HN=5000, cD37=1000):
YKHO.MAX_COMBINATION_LENGTH = A75g
YKHO.MAX_ITERATIONS = c8HN
YKHO.MAX_NO_CHANGE = cD37
YKHO.bin_capacity = b7hB
YKHO.items = DumB
YKHO.fitness = 0
YKHO.bins = [Uj8n(b7hB)]
YKHO.tabu_list = set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Z9rn):\n YKHO.c = Z9rn\n YKHO.errors = 0\n YKHO.expert_mode = False\n YKHO.ftm = None\n YKHO.frame = None\n YKHO.k = Z9rn.k\n YKHO.re_obj = None\n YKHO.batch = None\n YKHO.ignore_case = None\n YKHO.node_only = None\n YKHO.pattern_match = None\n YKHO.search_headlin... | [
"0.58387005",
"0.5551719",
"0.55351835",
"0.55327046",
"0.54426575",
"0.54426575",
"0.5426703",
"0.52907056",
"0.5289271",
"0.52713865",
"0.5235705",
"0.5234112",
"0.5203573",
"0.5202684",
"0.5151204",
"0.510444",
"0.50994897",
"0.5097272",
"0.50806123",
"0.5078476",
"0.50515... | 0.0 | -1 |
Omit key in dictionary if value is not truthy | def SncB(cmPJ):
return {H5ew: BWXx for H5ew, BWXx in cmPJ.items() if BWXx} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xnx3(Csk6):\n return {G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items() if bool(Ty9i)}",
"def c5_T(Csk6):\n U5bT = {}\n for G1Hx, Ty9i in Csk6.items():\n if Ty9i:\n U5bT[G1Hx] = Ty9i\n return U5bT",
"def qTYt(Csk6):\n return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in Csk6.items() if Ty9i... | [
"0.6942514",
"0.6695873",
"0.6688208",
"0.6550644",
"0.65444833",
"0.64656997",
"0.643695",
"0.6432883",
"0.6430289",
"0.6427176",
"0.6420748",
"0.6399355",
"0.63983035",
"0.636955",
"0.6361982",
"0.6360145",
"0.62995434",
"0.6292838",
"0.6290265",
"0.62579864",
"0.6254289",
... | 0.67706627 | 1 |
Load a list of skills (Python code) from a skills directory, create new instances of these skill classes, and restore previous data values of these skills from a data file if they exist. | def R4yM(JyK9, DE1U, KAfx):
O5Y2 = {}
DE1U = Hy7s.path.abspath(DE1U)
Sj30 = SC2F.glob(Hy7s.path.join(DE1U, '*.py'))
HwRy.path.insert(0, DE1U)
KAfx = Hy7s.path.abspath(KAfx)
try:
with open(KAfx, 'rb') as eHNT:
nPrm = t2lc.load(eHNT)
except:
nPrm = {}
for qSPZ i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4yM(YKHO):\n Azyo = 'battle/skills.txt'\n YKHO.skills = {}\n with open(Azyo) as QmgH:\n K_A5 = QmgH.readlines()\n K_A5 = K_A5[1:]\n for F5FK in K_A5:\n try:\n mWFP, LNo8, EXvd, gLIH, Dy9O, JBZA, sSN_, JTdv, VwVa = F5FK.split(YKHO.file_seperator)\n except ValueErr... | [
"0.7057735",
"0.684249",
"0.6546372",
"0.6523835",
"0.649637",
"0.63638353",
"0.59908754",
"0.5911789",
"0.58687186",
"0.5839038",
"0.57624847",
"0.5713573",
"0.5710789",
"0.5664503",
"0.566196",
"0.56440717",
"0.55396086",
"0.55304176",
"0.5527715",
"0.5508632",
"0.5465713",... | 0.78910726 | 0 |
Return an iterator over all nodes in a tree | def jNLz(YKHO):
zao6 = [YKHO.root]
while zao6 != []:
exwG = zao6.pop()
yield exwG
if not exwG.is_leaf:
zao6.extend([exwG.l, exwG.r]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n bzUU = list()\n\n def GQk7(Q6kx):\n if Q6kx != None:\n bzUU.append(Q6kx.data)\n for DZ1i in Q6kx.children:\n GQk7(DZ1i)\n GQk7(YKHO._root)\n return iter(bzUU)",
"def XN2a(J_Es):\n if isinstance(J_Es, list):\n for Q6kx in J_Es:\n ... | [
"0.7914484",
"0.7866047",
"0.7855168",
"0.7675775",
"0.7660081",
"0.7660081",
"0.7634812",
"0.7598138",
"0.75702494",
"0.74952906",
"0.74914324",
"0.7428158",
"0.7404503",
"0.7387433",
"0.73762375",
"0.73657733",
"0.73579144",
"0.7340853",
"0.7340474",
"0.73253834",
"0.732131... | 0.7407269 | 12 |
Return an iterator over all internal nodes in a tree | def _s4z(YKHO):
zao6 = [YKHO.root]
while zao6 != []:
exwG = zao6.pop()
if not exwG.is_leaf:
yield exwG
zao6.extend([exwG.l, exwG.r]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n bzUU = list()\n\n def GQk7(Q6kx):\n if Q6kx != None:\n bzUU.append(Q6kx.data)\n for DZ1i in Q6kx.children:\n GQk7(DZ1i)\n GQk7(YKHO._root)\n return iter(bzUU)",
"def VoWx(YKHO):\n yield YKHO\n for aUGN in YKHO.children:\n for ... | [
"0.79928464",
"0.7889073",
"0.7889073",
"0.77460146",
"0.771421",
"0.74593425",
"0.74545306",
"0.7443664",
"0.74290484",
"0.7423801",
"0.73714674",
"0.73560876",
"0.7338016",
"0.72997886",
"0.7296652",
"0.7293713",
"0.72889805",
"0.7280546",
"0.7276553",
"0.72748864",
"0.7253... | 0.7530633 | 5 |
Return an iterator over all leaf nodes in a tree | def O6Fs(YKHO):
zao6 = [YKHO.root]
while zao6 != []:
exwG = zao6.pop()
if exwG.is_leaf:
yield exwG
else:
zao6.extend([exwG.l, exwG.r]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i4tn(YKHO, nPrm=True):\n if nPrm:\n for Q6kx, nPrm in YKHO.tree.nodes_iter(data=True):\n if YKHO.is_leaf(Q6kx):\n yield (Q6kx, nPrm)\n else:\n for Q6kx in YKHO.tree.nodes_iter(data=False):\n if YKHO.is_leaf(Q6kx):\n yield Q6kx",
"def JOY... | [
"0.7928777",
"0.79175204",
"0.77735525",
"0.77561474",
"0.7606093",
"0.75388306",
"0.747544",
"0.7407716",
"0.74040437",
"0.7374613",
"0.7365534",
"0.73631257",
"0.7324158",
"0.7308218",
"0.7253716",
"0.7236171",
"0.722904",
"0.7193813",
"0.7193429",
"0.717643",
"0.717643",
... | 0.7771931 | 3 |
Return an iterator over all nodes at a certain depth in the tree | def sEmG(YKHO, rb7a):
if rb7a < 0:
raise ValueError('depth must be >= 0')
zao6 = [YKHO.root]
while zao6 != []:
exwG = zao6.pop()
if exwG.depth == rb7a:
yield exwG
elif not exwG.is_leaf:
zao6.extend([exwG.l, exwG.r]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(rb7a, tk5Y):\n gGq6 = MUE7()\n gGq6.append(tk5Y)\n BEuN = gGq6.popleft\n while gGq6:\n Q6kx = BEuN()\n if Q6kx.depth == rb7a:\n yield Q6kx\n else:\n for exwG in Q6kx.children:\n gGq6.append(exwG)",
"def LATW(YKHO):\n eK5b = YKHO.__... | [
"0.81238526",
"0.7878022",
"0.7874894",
"0.7614523",
"0.7447648",
"0.7445315",
"0.7395618",
"0.7304217",
"0.7257194",
"0.7211847",
"0.718169",
"0.718169",
"0.7026239",
"0.70185935",
"0.70184475",
"0.69985586",
"0.69908077",
"0.6986355",
"0.6905566",
"0.68933594",
"0.68685627"... | 0.78427017 | 3 |
Returns the inherent dimensionality of a geometry. The inherent dimension is 0 for points, 1 for linestrings and linearrings, and 2 for polygons. For geometrycollections it is the max of the containing elements. Empty collections and None values return 1. | def kuoY(Fw8z, **B2fa):
return _e0h.get_dimensions(Fw8z, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AxYr(Fw8z: GeomDict) -> h8nf[int]:\n W0Eb = Fw8z.get('coordinates')\n if W0Eb:\n while isinstance(W0Eb[0], bdIy):\n W0Eb = W0Eb[0]\n return len(W0Eb)\n return None",
"def VAYB(NgpY):\n o_Pe = NgpY.type()\n if o_Pe == 'GeometricPrimitive':\n wlju = NgpY.getGeomet... | [
"0.7997604",
"0.7017865",
"0.64765143",
"0.6437913",
"0.64231265",
"0.62689054",
"0.6265128",
"0.6230208",
"0.6216189",
"0.62013876",
"0.61847955",
"0.6182309",
"0.61776716",
"0.61776716",
"0.61683375",
"0.61582196",
"0.6140749",
"0.6131362",
"0.6126097",
"0.61072445",
"0.609... | 0.6191135 | 10 |
Returns the total number of coordinates in a geometry. Returns 0 for notageometry values. | def oiqe(Fw8z, **B2fa):
return _e0h.get_num_coordinates(Fw8z, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UoOD(Fw8z):\n return Fw8z.intrinsicValue('pointcount')",
"def TZ5s(Fw8z, **B2fa):\n return _e0h.get_num_points(Fw8z, **B2fa)",
"def Vtsh(YKHO, Fw8z):\n VVnH = Fw8z.type()\n if VVnH == UFnl.Line:\n if Fw8z.isMultipart():\n bzF9 = Fw8z.asMultiPolyline()\n LTIa = sum(b... | [
"0.77994263",
"0.7708826",
"0.7402627",
"0.7230741",
"0.72236043",
"0.7191653",
"0.6878794",
"0.681265",
"0.6792909",
"0.67633176",
"0.67163575",
"0.6676788",
"0.65543616",
"0.6488758",
"0.64603823",
"0.64412534",
"0.64225286",
"0.6421815",
"0.6408989",
"0.6374984",
"0.637323... | 0.7874905 | 0 |
Returns the xcoordinate of a point | def nIKw(AU8u, **B2fa):
return _e0h.get_x(AU8u, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OYQK(AU8u):\n return AU8u[0]",
"def wF0t(YKHO):\n if YKHO.geom and type(YKHO.geom) == PvyL:\n return YKHO.geom.x\n else:\n return None",
"def nIKw(YKHO):\n return YKHO._coordinate.get_x()",
"def nIKw(YKHO):\n return YKHO.x_coord",
"def mRpp(YKHO):\n return YKHO._x_coord"... | [
"0.8763151",
"0.8502882",
"0.80487216",
"0.7986876",
"0.7763048",
"0.7655781",
"0.74725103",
"0.7464261",
"0.73660374",
"0.7322911",
"0.72981733",
"0.72981733",
"0.71529377",
"0.7143646",
"0.7122906",
"0.71084714",
"0.7089752",
"0.7067922",
"0.70473063",
"0.7041467",
"0.70368... | 0.8339016 | 2 |
Returns number of internal rings in a polygon Returns 0 for notageometry values. | def FJle(Fw8z, **B2fa):
return _e0h.get_num_interior_rings(Fw8z, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fxCZ(YKHO) -> int:\n ...",
"def DfRE() -> int:\n pass",
"def OKAc(YKHO, N9D1: dm.Mol):\n lRYc = N9D1.GetRingInfo()\n return lRYc.NumRings()",
"def vjH2(LpnT):\n return OzXB(LpnT, 'prim_count')[0]",
"def AHov() -> int:\n pass",
"def szAg(YKHO):\n wjRY = 0\n for wDuC in YKHO.rin... | [
"0.7615878",
"0.71149254",
"0.69265133",
"0.6480928",
"0.63928604",
"0.6377896",
"0.63613683",
"0.6352421",
"0.6235409",
"0.6225456",
"0.6224547",
"0.61868876",
"0.6152421",
"0.6044805",
"0.6022422",
"0.6009064",
"0.5986233",
"0.5975466",
"0.5968302",
"0.5937478",
"0.59141976... | 0.6555498 | 3 |
Returns number of geometries in a collection. Returns 0 for notageometry values. | def zcMD(Fw8z, **B2fa):
return _e0h.get_num_geometries(Fw8z, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kbH2():\n return so3_(_e0h.LineGeometries_Get_Count())",
"def llW8(YKHO):\n return qG0X.PartShop_countCollection(YKHO)",
"def poMF(Fw8z):\n return Fw8z.intrinsicValue('vertexcount')",
"def Vtsh(YKHO, Fw8z):\n VVnH = Fw8z.type()\n if VVnH == UFnl.Line:\n if Fw8z.isMultipart():\n ... | [
"0.7470182",
"0.7042374",
"0.6947242",
"0.69469106",
"0.68855006",
"0.6849215",
"0.67835045",
"0.6635488",
"0.6576559",
"0.6532566",
"0.6520388",
"0.649366",
"0.6462524",
"0.64582527",
"0.6453602",
"0.6449424",
"0.6443747",
"0.6436331",
"0.63848746",
"0.6380963",
"0.6364238",... | 0.7144514 | 1 |
Returns geometry with the precision set to a precision grid size. By default, geometries use double precision coordinates (grid_size = 0). Coordinates will be rounded if a precision grid is less precise than the input geometry. Duplicated vertices will be dropped from lines and polygons for grid sizes greater than 0. L... | def TAsL(Fw8z, U4F5, Tuqy='valid_output', **B2fa):
if isinstance(Tuqy, str):
Tuqy = kcGr.get_value(Tuqy)
elif not oyIN.isscalar(Tuqy):
raise TypeError('mode only accepts scalar values')
if Tuqy == kcGr.pointwise and P0Cf < (3, 10, 0):
qmLP.warn("'pointwise' is only supported for GEOS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YUQV(Fw8z, rhd_):\n W0Eb = VDow(Fw8z['coordinates'], rhd_)\n Fw8z['coordinates'] = W0Eb\n return Fw8z",
"def kV2d(hGvF, aNZO=None, qfpW='black', **B2fa):\n bEXe, fUYa = e24l(hGvF)\n bEXe = SsCH(bEXe, ax=aNZO)\n fUYa = OQW2(fUYa, ax=aNZO)\n return Cs6h(fUYa[1:-1], bEXe[1:-1], color=qfpW, ... | [
"0.6127141",
"0.55295676",
"0.5447215",
"0.54127",
"0.5372353",
"0.5224796",
"0.52193934",
"0.5128717",
"0.5114742",
"0.5019347",
"0.5011965",
"0.5007603",
"0.49920347",
"0.49831378",
"0.49601844",
"0.4947529",
"0.49334407",
"0.4924792",
"0.4909436",
"0.4896626",
"0.48636934"... | 0.6375102 | 0 |
Returns a new list without any consecutively repeating elements. Equality is determined by applying the supplied predicate to each pair of consecutive elements. The first element in a series of equal elements will be preserved. Acts as a transducer if a transformer is given in list position | def CLI5(eHNT, fUYa):
yvT9 = [fUYa[0]]
for YRbF in range(0, len(fUYa) - 1):
if not eHNT(*fUYa[YRbF:YRbF + 2]):
yvT9.append(fUYa[YRbF + 1])
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qrt_(OxJJ, lgNN=bool):\n jzdc, Fg_i = Hs6x.tee(((lgNN(WKvO), WKvO) for WKvO in OxJJ))\n return ((WKvO for nvEb, WKvO in jzdc if not nvEb), (WKvO for nvEb, WKvO in Fg_i if nvEb))",
"def Qrt_(lgNN, OxJJ):\n n2Q1, SpII = Hs6x.tee(OxJJ)\n return (Hs6x.filterfalse(lgNN, n2Q1), filter(lgNN, SpII))",
... | [
"0.6483092",
"0.641291",
"0.63985336",
"0.63470525",
"0.60077137",
"0.59527177",
"0.58745986",
"0.5870707",
"0.5806095",
"0.5806095",
"0.5781776",
"0.5767106",
"0.57516736",
"0.57368016",
"0.5733038",
"0.5723629",
"0.57063776",
"0.5672683",
"0.5662132",
"0.56603676",
"0.56589... | 0.6744654 | 0 |
T.__new__(S, ...) > a new object with type S, a subtype of T | def fwuD(o4sw, *SPTI):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw... | [
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497"... | 0.72122014 | 67 |
Whether authentication is disabled for the tenant. If true, the users under the disabled tenant are not allowed to signin. Admins of the disabled tenant are not able to manage its users. | def nhwa(YKHO) -> bool:
return qe4Y.get(YKHO, 'disable_auth') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tpjm(YKHO):\n return YKHO._is_disabled_account",
"def DnUN(YKHO):\n ehIZ = YKHO.create_tenant().json['tenant']\n jTXt = BJsk.unique_str()\n CBIr = YKHO.create_user(user_password=jTXt, tenant_id=ehIZ['id']).json['user']\n CBIr['password'] = jTXt\n gtbI = YKHO.authenticate(CBIr['name'], CBIr[... | [
"0.73705184",
"0.7235105",
"0.69622856",
"0.6913821",
"0.6913821",
"0.68013763",
"0.679585",
"0.67740405",
"0.67740405",
"0.6738034",
"0.6738034",
"0.67235905",
"0.6663797",
"0.6579103",
"0.6578104",
"0.6572661",
"0.65663064",
"0.65643233",
"0.6556105",
"0.65219516",
"0.65019... | 0.77313155 | 0 |
Display name of the tenant. | def qQNS(YKHO) -> str:
return qe4Y.get(YKHO, 'display_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xQy_(YKHO):\n return YKHO._tenant_name",
"def xQy_(YKHO):\n return YKHO.project_name",
"def xQy_(YKHO):\n return YKHO._conn.tenant_name",
"def xQy_(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'tenant_name')",
"def xQy_(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.8390147",
"0.8305871",
"0.79963565",
"0.78553003",
"0.78553003",
"0.78553003",
"0.78099394",
"0.7802026",
"0.77041936",
"0.77041936",
"0.7432306",
"0.7340046",
"0.7300067",
"0.7128",
"0.7098476",
"0.706971",
"0.6996634",
"0.69820976",
"0.69820976",
"0.69820976",
"0.6982097... | 0.7323533 | 14 |
Whether to enable anonymous user authentication. | def WV_0(YKHO) -> bool:
return qe4Y.get(YKHO, 'enable_anonymous_user') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO):\n if YKHO.is_anonymous:\n return False\n else:\n return True",
"def bLGg() -> bool:\n from ..core.config import config\n return config['general_system_enable_anonymous']",
"def rts1(YKHO):\n if YKHO.is_anonymous():\n return False\n return True",
"def eJ0... | [
"0.745566",
"0.73373073",
"0.73069894",
"0.7249591",
"0.713183",
"0.69526005",
"0.6913858",
"0.6783585",
"0.67709994",
"0.6697953",
"0.6692967",
"0.6671975",
"0.6671975",
"0.6671975",
"0.6671975",
"0.6671975",
"0.6671975",
"0.6671975",
"0.6671975",
"0.6671975",
"0.6671975",
... | 0.8118278 | 0 |
Formats an exception message to make the output cleaner. | def DOCF(AJ5d, Ol8d):
from selenium.common.exceptions import ElementNotVisibleException
from selenium.common.exceptions import NoAlertPresentException
from selenium.common.exceptions import NoSuchAttributeException
from selenium.common.exceptions import NoSuchElementException
from selenium.common.ex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wr_m(YKHO, BQDi):\n if isinstance(BQDi, sUXu):\n return YKHO._format_errors(BQDi.messages)\n if isinstance(BQDi, ValueError):\n if (tO9_ := YKHO._is_validation_error(BQDi)):\n return tO9_\n if YKHO.debug:\n return None\n tO9_ = ' '.join(str(BQDi).split())\n return... | [
"0.7866971",
"0.78203756",
"0.7674119",
"0.76199067",
"0.7618722",
"0.757031",
"0.7465791",
"0.7429533",
"0.73288125",
"0.73001224",
"0.7295736",
"0.7182437",
"0.714776",
"0.7129987",
"0.70852685",
"0.7073588",
"0.69612813",
"0.69558334",
"0.69314724",
"0.69308",
"0.6914734",... | 0.66054446 | 35 |
Returns the value set in accept_offer. | def nqhm(YKHO):
return YKHO._transaction.accept_offer | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def umPh(YKHO):\n if YKHO._value_accepted is None:\n return YKHO._value\n else:\n return YKHO._value_accepted",
"def Ltg2(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'offer')",
"def HTAx(YKHO, OK79):\n bD7m = 'offers/%s' % str(OK79)\n Aofo = YKHO.get(bD7m)\n return A... | [
"0.6548843",
"0.65424436",
"0.6377664",
"0.63616294",
"0.63616294",
"0.62395346",
"0.6192718",
"0.6132979",
"0.60847276",
"0.59444714",
"0.5832956",
"0.5787233",
"0.5787233",
"0.5787233",
"0.5787233",
"0.5787233",
"0.57562745",
"0.56878793",
"0.5654876",
"0.56193906",
"0.5562... | 0.733747 | 0 |
Returns the value set in close_offer. | def tvM0(YKHO):
return YKHO._transaction.close_offer | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XJob(YKHO):\n return YKHO._data_frame['close'].values[YKHO._iter]",
"def DDI8(YKHO):\n mv_N = YKHO.market_data.get_next_data_for_ticker(YKHO.ticker)\n YKHO.print_close(mv_N)\n return mv_N",
"def N_Zi(YKHO, Ltg2):\n return Ltg2.prices.current().price",
"def ODCB(YKHO):\n open = YKHO._pri... | [
"0.6778247",
"0.66632724",
"0.64867806",
"0.64013654",
"0.6144975",
"0.6117203",
"0.59927195",
"0.589176",
"0.58206344",
"0.5803795",
"0.57758963",
"0.5774739",
"0.57689553",
"0.5752188",
"0.5748718",
"0.57417244",
"0.57417244",
"0.5720205",
"0.5660166",
"0.56562996",
"0.5643... | 0.64666647 | 3 |
Function to obtain search string from original string (such as FirstName or Surname), consistently with how it's done in the OData cadastral API. | def f6Qh(KCHu):
return Gcqg(KCHu).replace(' ', '').replace('.', '').replace(',', '').replace('-', '').lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XeD4(KCHu):\n SQ3m = KCHu.split()\n if len(SQ3m) == 0:\n return KCHu\n c9ua = SQ3m[0]\n SQ3m[0] = c9ua[0].upper() + '.'\n return ' '.join(SQ3m)",
"def U_sJ(eJh7: str) -> str:\n return ZbWC.sub('[^a-z]', '', eJh7.lower())",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n r... | [
"0.680588",
"0.6329041",
"0.6101126",
"0.6091405",
"0.6078386",
"0.6076998",
"0.60632735",
"0.60342675",
"0.6032867",
"0.6032735",
"0.6029165",
"0.6029165",
"0.6026034",
"0.6025146",
"0.6021978",
"0.6019408",
"0.6016881",
"0.601088",
"0.6005893",
"0.6001389",
"0.59956646",
... | 0.65977687 | 1 |
Returns the index of the item that's being searched. | def jUbz(tu39, Dpgk):
LFlW = 0
_tIi = len(tu39) - 1
UHFx = 0
while LFlW <= _tIi and UHFx < 15:
UHFx += 1
x1fj = (LFlW + _tIi) // 2
if tu39[x1fj] == Dpgk:
return x1fj
elif tu39[x1fj] < Dpgk:
LFlW = x1fj + 1
else:
_tIi = x1fj - 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hDX3(YKHO, ZfUD):\n for YRbF, WKvO in enumerate(YKHO.container):\n if WKvO == ZfUD:\n return YRbF\n return -1",
"def hDX3(YKHO, ZfUD):\n for d6pt, YEnM in enumerate(YKHO.items):\n if ZfUD is YEnM:\n return d6pt\n return -1",
"def Y1p8(YKHO, ZfUD):\n return... | [
"0.8498615",
"0.8433677",
"0.8398825",
"0.80788606",
"0.80651337",
"0.79518867",
"0.7885142",
"0.7828238",
"0.77007866",
"0.77003974",
"0.76251197",
"0.7568581",
"0.7546367",
"0.7415493",
"0.7369785",
"0.7369785",
"0.7369785",
"0.73457605",
"0.73447007",
"0.733311",
"0.732952... | 0.0 | -1 |
Inserts a word into the trie. | def JPHp(YKHO, GIN8):
DpUl = YKHO.root
for sZqf in GIN8:
if sZqf not in DpUl.children:
DpUl.children[sZqf] = o7DN()
DpUl = DpUl.children[sZqf]
DpUl.is_word = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True",
"def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y... | [
"0.89349246",
"0.8875727",
"0.88754433",
"0.88664436",
"0.8845666",
"0.88351166",
"0.8829387",
"0.88241696",
"0.88215303",
"0.88025844",
"0.87970716",
"0.87917984",
"0.87870646",
"0.8786165",
"0.8785743",
"0.87801075",
"0.8779744",
"0.87764865",
"0.87708014",
"0.8767584",
"0.... | 0.84155464 | 74 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8):
DpUl = YKHO.root
for sZqf in GIN8:
if sZqf not in DpUl.children:
return False
DpUl = DpUl.children[sZqf]
return DpUl.is_word | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word",
"def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')... | [
"0.82730556",
"0.8268669",
"0.8264989",
"0.821454",
"0.8189983",
"0.81762034",
"0.81695247",
"0.81329536",
"0.7981468",
"0.7973667",
"0.7966321",
"0.79540753",
"0.7881218",
"0.7876813",
"0.78663623",
"0.7835046",
"0.7819606",
"0.7812851",
"0.7811768",
"0.7795306",
"0.77902055... | 0.7743196 | 24 |
Returns if there is any word in the trie that starts with the given prefix. | def BYxH(YKHO, y0cW):
DpUl = YKHO.root
for sZqf in y0cW:
if sZqf not in DpUl.children:
return False
DpUl = DpUl.children[sZqf]
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals... | [
"0.86422646",
"0.84566134",
"0.8440822",
"0.8416109",
"0.84159887",
"0.84072715",
"0.8381726",
"0.83704805",
"0.8336194",
"0.8327672",
"0.8327336",
"0.82398504",
"0.8229601",
"0.817308",
"0.81603914",
"0.8152725",
"0.81473327",
"0.81158805",
"0.8012112",
"0.7984332",
"0.79843... | 0.7732113 | 66 |
The method fills the dataframe given during initialization of the class. It first filters the rows needs to be filled by checking given fill_columns argument. After filtering rows, It split these rows into n_workers chunk and proceed (fill the missing fields of rows if available on API) in parallel. After processing al... | def LGJQ(YKHO, YPuQ: int=YmkY()) -> rLdf.DataFrame:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LGJQ(Emd4, jQ3Z, r1Ih, jHzP, OuMq):\n return OuMq(jQ3Z, r1Ih, jHzP)",
"def jNuQ(YKHO):\n risj = YKHO.df_.loc[:, [YKHO.key1, YKHO.key2, YKHO.date]]\n if YKHO.n_jobs == -1:\n dBuj = IIs7()\n else:\n dBuj = IIs7(YKHO.n_jobs)\n J16e = YKHO.df_[YKHO.feature].unique()\n GA74 = dBuj.... | [
"0.6142757",
"0.5788802",
"0.5775947",
"0.56992626",
"0.5587248",
"0.5585305",
"0.5511089",
"0.5508175",
"0.55053914",
"0.54814667",
"0.54755825",
"0.5453393",
"0.54470474",
"0.543372",
"0.5429468",
"0.542117",
"0.5408683",
"0.53816485",
"0.5374346",
"0.5371097",
"0.5371097",... | 0.6823242 | 0 |
Returns a constraint that set each output vector to `tf.norm(x) <= 1` | def KPI2(WKvO):
E2dU = WKvO.shape[-1]
sh7x = ZylS.reshape(WKvO, (-1, E2dU))
exwG = ZylS.norm(sh7x, axis=0)
Csk6 = ZylS.clip_by_value(exwG, 0.001, ZylS.rsqrt(ZylS.cast(E2dU, ZylS.float32)))
OoVr = sh7x * Csk6 / exwG
return ZylS.reshape(OoVr, WKvO.shape) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LuCZ(WKvO):\n return ZylS.clip_by_value(WKvO, 0.0, 1.0)",
"def YUvl(URbn):\n Z9rn = ZylS.constant(0.0)\n yIqN = ZylS.cond(URbn <= Z9rn, lambda: Z9rn, lambda: URbn)\n return yIqN",
"def awzh(WKvO: tf.Tensor) -> ZylS.Tensor:\n wBZN = ZylS.reduce_min(WKvO, axis=0)\n Z9rn = ZylS.zeros_like(wB... | [
"0.6920742",
"0.5990361",
"0.5859337",
"0.57648563",
"0.57093346",
"0.57084775",
"0.5696527",
"0.56605595",
"0.5630757",
"0.5610289",
"0.5596629",
"0.5585229",
"0.55818665",
"0.5573034",
"0.55263543",
"0.55228573",
"0.55184484",
"0.5516914",
"0.5500611",
"0.54442877",
"0.5440... | 0.6089673 | 1 |
Create a grid based on the geometry currently loaded in DagMC Creates an equally spaced grid with ndiv divisions per side, set within the full DagMC geometry. This constructor requires that DagMC has geometry loaded with a rectangular graveyard volume | def sqRz(Emd4, kdQk=10):
R6Pf, sdcA = qXKB.find_graveyard_inner_box()
usUl = [0] * 3
for YRbF in range(3):
usUl[YRbF] = oyIN.linspace(R6Pf[YRbF], sdcA[YRbF], kdQk, endpoint=True)
return Emd4(ZuV1.ScdMesh(*usUl)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sMrQ(YKHO):\n print('------ Making new Delft3D grid ------')\n print('x_gridstep', YKHO.grid['x_gridstep'])\n print('y_gridstep', YKHO.grid['y_gridstep'])\n print('width', YKHO.grid['width'])\n print('length', YKHO.grid['length'])\n if YKHO.grid['width'] % YKHO.grid['x_gridstep']:\n ra... | [
"0.6737227",
"0.6621757",
"0.65968454",
"0.6548113",
"0.652091",
"0.6499865",
"0.63958234",
"0.62710416",
"0.6191971",
"0.6171774",
"0.61675376",
"0.61381835",
"0.605426",
"0.605426",
"0.6053698",
"0.6053698",
"0.6053698",
"0.6032538",
"0.60252506",
"0.60088754",
"0.59942186"... | 0.6946759 | 0 |
Aggregates statistics and returns as a dictionary. Here the convention is `episode_return` is set to `current_episode_return` if a full episode has not been encountered. Otherwise it is set to `mean_episode_return` which is the mean return of complete episodes only. If no steps have been taken at all, `episode_return` ... | def NMoC(YKHO) -> GySg[I2jr, uLKX[int, float, None]]:
if YKHO._episode_returns:
YgFY = oyIN.array(YKHO._episode_returns).mean()
opWN = sum(YKHO._current_episode_rewards)
hhie = YgFY
else:
YgFY = oyIN.nan
if YKHO._num_steps_since_reset > 0:
opWN = sum(YKHO._cur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WV15(KULu: List[Union[RolloutMetrics, OffPolicyEstimate]], WTYd: List[Union[RolloutMetrics, OffPolicyEstimate]]=None) -> bPrq:\n if WTYd is None:\n WTYd = KULu\n KULu, GMPf = D42Z(KULu)\n WTYd, bGrB = D42Z(WTYd)\n NH4l = []\n w7ez = []\n dntg = g760.defaultdict(list)\n jOGg = g760.d... | [
"0.6649785",
"0.6625505",
"0.6621628",
"0.657827",
"0.65737945",
"0.6381663",
"0.6196373",
"0.6196373",
"0.61867815",
"0.61736",
"0.61091846",
"0.6083684",
"0.60748297",
"0.60544443",
"0.5986805",
"0.59647363",
"0.5964465",
"0.5798999",
"0.57794684",
"0.5761248",
"0.5733228",... | 0.7668681 | 0 |
Resets statistics and internal state. | def SiRx(YKHO) -> None:
YKHO.trace = 0.0
YKHO._statistics = dict(YKHO._initial_statistics) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJld(YKHO):\n YKHO._get_stats('reset')",
"def BJld(YKHO):\n YKHO.__stats = {}",
"def SiRx(YKHO):\n YKHO._data = None\n YKHO._collector = None\n YKHO._meta = {}\n YKHO._alignedIndexes = {}\n YKHO._scaleFactors = {}",
"def ka5c(YKHO) -> None:\n YKHO._reset_gaussian_family()\n YKH... | [
"0.85724837",
"0.8241797",
"0.815092",
"0.81247544",
"0.8016805",
"0.80103093",
"0.8000326",
"0.7975418",
"0.78930885",
"0.78913647",
"0.78774446",
"0.7864805",
"0.78570366",
"0.78364426",
"0.7826633",
"0.7817193",
"0.7808993",
"0.77864504",
"0.77806395",
"0.7778556",
"0.7765... | 0.77303845 | 23 |
Flatten x_tensor to (Batch Size, Flattened Image Size) | def PWgb(k3l6):
return ZylS.contrib.layers.flatten(k3l6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PWgb(k3l6):\n RE2Q = ZylS.contrib.layers.flatten(k3l6)\n return RE2Q",
"def PWgb(k3l6):\n WNSx = k3l6.get_shape().as_list()\n return ZylS.reshape(k3l6, [-1, oyIN.prod(WNSx[1:])])",
"def nPf0(WKvO):\n ROpF = WKvO.get_shape().as_list()[1:]\n if None not in ROpF:\n return ZylS.reshape... | [
"0.7724691",
"0.76830244",
"0.7619067",
"0.7563196",
"0.7125195",
"0.71088094",
"0.7048475",
"0.7023786",
"0.6954246",
"0.6935096",
"0.69327843",
"0.6861275",
"0.68209076",
"0.67948437",
"0.6782375",
"0.66720486",
"0.6599213",
"0.65625405",
"0.6514929",
"0.6514929",
"0.647498... | 0.7507279 | 4 |
Apply a output layer to x_tensor using weight and bias | def hlel(k3l6, I07O):
return ZylS.contrib.layers.fully_connected(k3l6, I07O, activation_fn=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlel(k3l6, I07O):\n WNSx = k3l6.get_shape().as_list()\n ROpF = list((WNSx[-1],) + (I07O,))\n XcU5 = ZylS.get_variable('W', shape=ROpF, initializer=ZylS.contrib.layers.xavier_initializer(), dtype=gv9r)\n ZylS.summary.histogram('weights', XcU5)\n return ZylS.matmul(k3l6, XcU5)",
"def hlel(k3l6, ... | [
"0.7360961",
"0.7317671",
"0.6959812",
"0.68365073",
"0.6836147",
"0.67574143",
"0.6736111",
"0.6718377",
"0.6708827",
"0.6681038",
"0.66212994",
"0.6595896",
"0.6482974",
"0.643147",
"0.6430653",
"0.6416678",
"0.6413104",
"0.6395638",
"0.63691926",
"0.63570905",
"0.63500434"... | 0.6694304 | 9 |
Returns wallet's master address. | def UTX6(YKHO):
return YKHO.accounts[0].addresses()[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vAkW(YKHO):\n return YKHO.http_get(OrYn.ADDRESS_URL).get('address')",
"def vAkW(YKHO):\n return YKHO.address",
"def vAkW(YKHO):\n return YKHO.address",
"def vAkW(YKHO):\n return YKHO.address",
"def vAkW(YKHO):\n return YKHO.address()",
"def x_iO(YKHO) -> bytes:\n if YKHO._wallet_add... | [
"0.7305338",
"0.687233",
"0.687233",
"0.687233",
"0.6869446",
"0.6864019",
"0.6826951",
"0.6783232",
"0.6783232",
"0.67579305",
"0.6725917",
"0.6719853",
"0.6718309",
"0.6704535",
"0.66994524",
"0.66877097",
"0.66778773",
"0.66147125",
"0.6591829",
"0.648267",
"0.64804727",
... | 0.6843248 | 6 |
The nodes stored in this Graph. | def Ziit(YKHO) -> iu5r:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO):\n return YKHO._graph.nodes",
"def Ziit(YKHO):\n return YKHO.graph.nodes",
"def Ziit(YKHO):\n return list(YKHO._graph.keys())",
"def Ziit(YKHO):\n return YKHO.graph.nodes()",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO)... | [
"0.9052441",
"0.9043709",
"0.899932",
"0.8984331",
"0.88611484",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8808237",
"0.8808237",
"0.87823486",
"0.8772754",
"0.8759897",
"0.8698077",
"0.8681977",
"0.867843",
"... | 0.77908033 | 63 |
The nodes stored in this Graph. | def mC4V(YKHO) -> iu5r:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO):\n return YKHO._graph.nodes",
"def Ziit(YKHO):\n return YKHO.graph.nodes",
"def Ziit(YKHO):\n return list(YKHO._graph.keys())",
"def Ziit(YKHO):\n return YKHO.graph.nodes()",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO)... | [
"0.9052441",
"0.9043709",
"0.899932",
"0.8984331",
"0.88611484",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8841041",
"0.8808237",
"0.8808237",
"0.87823486",
"0.8772754",
"0.8759897",
"0.8698077",
"0.8681977",
"0.867843",
"... | 0.0 | -1 |
Creates the encoding layers for Contrastive Predictive Coding loss | def hyXS(nbma, WozX, u54L, DyBn, mWFP='cpc'):
uppC = ZylS.keras.layers.Dense(DyBn, activation=ZylS.keras.activations.linear, kernel_initializer=ZylS.initializers.variance_scaling(), name=f'{mWFP}_input_enc')(nbma)
MYYV = []
for G1Hx in range(1, u54L + 1):
KdIp = ZylS.keras.layers.Dense(DyBn, activat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QhGC(WKvO, DyBn):\n WKvO = bdPE.layers.Conv1D(filters=64, kernel_size=3, strides=2, activation='linear')(WKvO)\n WKvO = bdPE.layers.BatchNormalization()(WKvO)\n WKvO = bdPE.layers.LeakyReLU()(WKvO)\n WKvO = bdPE.layers.Conv1D(filters=64, kernel_size=3, strides=2, activation='linear')(WKvO)\n WKv... | [
"0.6642624",
"0.6551951",
"0.6522551",
"0.650191",
"0.6494671",
"0.6477407",
"0.64482784",
"0.64482784",
"0.6443911",
"0.636667",
"0.6332943",
"0.6332502",
"0.6327645",
"0.6326785",
"0.6291292",
"0.6214748",
"0.6202298",
"0.6194212",
"0.61833304",
"0.6182294",
"0.61775625",
... | 0.0 | -1 |
This function will search each cell of mylist for val and if found will return the entire row | def teSD(qFa0, wEf2):
for YRbF in range(len(qFa0)):
for r845 in range(len(qFa0[YRbF])):
if qFa0[YRbF][r845] == wEf2:
return (qFa0[YRbF], YRbF)
return str(wEf2) + ' not found' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CdwA(fvDH, wEf2, hcfj):\n Aofo = []\n for hcXw in hcfj:\n Aofo.append(hcXw[hcXw[fvDH] == wEf2])\n return Aofo",
"def neBz(YKHO, tcLV, wEf2):\n fvDH = YKHO.col(tcLV)\n return [YKHO.row(YRbF) for YRbF in range(0, YKHO.len) if fvDH[YRbF] == wEf2]",
"def O80R(H5ew, BWXx):\n hGN5 = VMxj... | [
"0.70083326",
"0.6841258",
"0.62696207",
"0.62222505",
"0.61379355",
"0.61157185",
"0.6061239",
"0.5979841",
"0.595167",
"0.59502923",
"0.59314007",
"0.58825",
"0.5881871",
"0.5874663",
"0.5863719",
"0.58555305",
"0.5807039",
"0.5792059",
"0.5761085",
"0.57562846",
"0.5754139... | 0.7379336 | 0 |
Returns the current time in miliseconds. | def K8KL():
return ITS7.time() * 1000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nXiN():\n return int(ITS7.time() * 1000)",
"def z_3P():\n return int(round(ITS7.time() * 1000))",
"def DT8T():\n TexU: int = ITS7.time()\n TexU *= 1000\n return TexU",
"def NP7G():\n return ITS7.time() * 1000",
"def AGBW(YKHO):\n return int(round(ITS7.time() * 1000))",
"def vHj7(... | [
"0.8498703",
"0.8490124",
"0.83665174",
"0.8266557",
"0.8227367",
"0.81095415",
"0.8028396",
"0.7972374",
"0.79276407",
"0.79258287",
"0.79258287",
"0.789109",
"0.78799486",
"0.7838767",
"0.7838767",
"0.7838767",
"0.7838767",
"0.7838767",
"0.7838392",
"0.7807842",
"0.7797814"... | 0.76023835 | 30 |
Load model from given path, and test it on test data. | def QOe9(V1C0, XyRA=True):
begE = ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu')
print('Setting up test dataset...')
qby3 = RZVM(start_date=YdD0['test_start_date'], end_date=YdD0['test_end_date'], vocab=CtWL, vocab_size=jXxl, stock_symbols=XEZQ, movement_path=HAlT.movement, tweet_path=HAlT.prepr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wdJR():\n uqvc = RkCj.resource_filename('hwrt', 'misc/')\n SkYi = Hy7s.path.join(uqvc, 'model.tar')\n BfDw.load_model(SkYi)",
"def O5RJ(Emd4, uqvc):\n pass",
"def O5RJ(YKHO, uqvc: str):\n pass",
"def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)",
"def J2u4(YKHO, pmON):\n YKHO._model... | [
"0.8081861",
"0.7834629",
"0.7820611",
"0.77654684",
"0.7558629",
"0.74372035",
"0.74206555",
"0.74187326",
"0.7391264",
"0.7374928",
"0.7374928",
"0.7366698",
"0.7354459",
"0.73240054",
"0.7315367",
"0.7279249",
"0.72621006",
"0.7220766",
"0.7176574",
"0.7168213",
"0.7165007... | 0.0 | -1 |
convenience method to access manifest id for target source | def Htkh(YKHO):
return '%s%s' % (gCuF.ANNOTATION_MANIFEST_BASE_URL, gxEw('corpus-uris:document-manifest', args=[YKHO.footnote.object_id])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oUn_(YKHO):\n return YKHO.content.get('target', {}).get('source', {}).get('id')",
"def GMyk():\n return DC8s(rFK6)",
"def YN9m(YKHO):\n return YKHO._manifest_id",
"def d170(YKHO):\n pass",
"def cP1Y(YKHO) -> str:\n return YKHO.source_id",
"def MCsb(YKHO) -> str:\n return qe4Y.get(YK... | [
"0.70903707",
"0.66098815",
"0.6446049",
"0.63033867",
"0.6273678",
"0.6247326",
"0.624567",
"0.62341183",
"0.6202056",
"0.6149778",
"0.6149778",
"0.6149778",
"0.6149778",
"0.6149778",
"0.6106039",
"0.6106039",
"0.6106039",
"0.6106039",
"0.6105591",
"0.6105591",
"0.60899085",... | 0.7461864 | 0 |
Combine annotation data and return as a dictionary that can be serialized as JSON. Includes context by default, but may be omitted when annotation will be included in context that already has it defined. | def compile(YKHO, D9R1=True):
gcB0 = {}
if D9R1:
gcB0 = {'@context': 'http://www.w3.org/ns/anno.jsonld'}
gcB0.update({'id': YKHO.uri(), 'type': 'Annotation', 'created': YKHO.created.isoformat(), 'modified': YKHO.modified.isoformat()})
if YKHO.canonical:
gcB0['canonical'] = YKHO.canonical... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQXR(YKHO):\n return {'annotations': [jzdc.json() for jzdc in YKHO.annotations], 'metadata': YKHO.metadata.json(), 'attributes': YKHO.attributes}",
"def qQXR(YKHO):\n return {'annotations': [jzdc.json() for jzdc in YKHO.annotations], 'metadata': YKHO.metadata.json(), 'attributes': RHG5(YKHO.attributes)... | [
"0.63764244",
"0.62669486",
"0.61056566",
"0.6010994",
"0.6000177",
"0.57878745",
"0.57539415",
"0.5727053",
"0.56426346",
"0.56399584",
"0.5569139",
"0.55675054",
"0.5552497",
"0.551686",
"0.5508399",
"0.5501044",
"0.5499115",
"0.5464912",
"0.54540855",
"0.5450256",
"0.54484... | 0.63780147 | 0 |
Verify internal state variables have been set. False means not used, None means error | def pi2y(YKHO):
assert YKHO.x is not None, 'self.x not set'
assert YKHO.y is not None, 'self.y not set'
assert YKHO.z is not None, 'self.z not set' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _RYw(YKHO):\n YKHO.pre_state_data",
"def yD75(YKHO):\n assert YKHO.num_locations != None\n assert YKHO.num_edges != None\n assert YKHO.distances != None\n assert YKHO.num_people != None\n assert YKHO.locations != None\n for hksT in YKHO.locations:\n assert hksT != None\n assert... | [
"0.7482118",
"0.7003332",
"0.6820463",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
"0.66596204",
... | 0.7064703 | 1 |
generate batch from original data with batch size for training. It will return batch and following label with skipping | def nWXO(YKHO):
assert YKHO._batch_size % YKHO._num_skips == 0
assert YKHO._num_skips <= 2 * YKHO._skip_window
Wc9F = oyIN.ndarray(shape=YKHO._batch_size, dtype=oyIN.int32)
Crrw = oyIN.ndarray(shape=(YKHO._batch_size, 1), dtype=oyIN.int32)
GCiI = 0
def gq0j(LXTO, oV38, wR_A, icIj):
kbGe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pBCb(Ep8u, oV38, wR_A):\n global data_index\n assert Ep8u % oV38 == 0\n assert oV38 <= 2 * wR_A\n Wc9F = oyIN.ndarray(shape=Ep8u, dtype=oyIN.int32)\n Crrw = oyIN.ndarray(shape=(Ep8u, 1), dtype=oyIN.int32)\n uvMl = 2 * wR_A + 1\n NRcB = g760.deque(maxlen=uvMl)\n for bGrB in range(uvMl):\... | [
"0.7668483",
"0.7622133",
"0.75011617",
"0.74581176",
"0.7448641",
"0.7425742",
"0.7389734",
"0.7362659",
"0.73591745",
"0.73581433",
"0.7321088",
"0.7316257",
"0.7312939",
"0.7310718",
"0.73005605",
"0.72907317",
"0.7279507",
"0.7277436",
"0.7271812",
"0.72531307",
"0.723381... | 0.78554314 | 0 |
Compute the L2 norm of the residual of the continuity equation Bv = g | def MkUV(Ty9i, najC, T8ck):
vexM = sKK6(T8ck)
yUT9 = qGnx(vexM * hFiK(Ty9i) * Jw7X)
aG55 = f_8k(T8ck)
aG55.vector().set_local(najC)
CBI2 = CkYf(aG55.vector() - yUT9)
return CBI2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vLt4(YKHO):\n CYjz = (oyIN.dot(YKHO.x, oyIN.dot(YKHO.AtA, YKHO.x) - 2.0 * YKHO.Atb) + YKHO.btb) * YKHO.scale\n if YKHO.regularizationLambda > 0:\n CYjz -= YKHO.regularizationLambda * oyIN.dot(YKHO.x, YKHO.x)\n return CYjz",
"def mcNE(YKHO):\n return oyIN.linalg.norm(YKHO._A * YKHO._x - YKH... | [
"0.71269965",
"0.6872347",
"0.65632796",
"0.63904023",
"0.6346994",
"0.6343111",
"0.63425094",
"0.6335593",
"0.63190615",
"0.62626666",
"0.62117696",
"0.62000674",
"0.61941916",
"0.617682",
"0.61084056",
"0.6107535",
"0.6070282",
"0.6068196",
"0.6064961",
"0.606447",
"0.60624... | 0.0 | -1 |
expand v and p to the dolfin function representation pdof = pressure dof that was set zero | def fqfA(oDk6, vuA2=None, dIT4=None, IhAk=None, jN7K=None):
Ty9i = f_8k(oDk6.V)
XP5J = f_8k(oDk6.Q)
if vuA2 is not None:
if vuA2.ndim == 1:
dIT4 = vuA2[:len(oDk6.invinds)].reshape(len(oDk6.invinds), 1)
IhAk = vuA2[len(oDk6.invinds):].reshape(oDk6.Q.dim() - 1, 1)
else:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJ2p(P6bq, Ty9i, D8Kh, VJyH, KMvS, vUDf, y4fz, pKiF, OwND):\n Csk6 = pKiF * (1 - (P6bq ** 2 + Ty9i ** 2) / 2 / OwND) ** (1 / (KMvS - 1))\n XP5J = y4fz / (pKiF / Csk6) ** KMvS\n U7YL = (XP5J - vUDf) / (y4fz - vUDf)\n return (U7YL, XP5J)",
"def jCGM(Ty9i, T8d8=560):\n return 4.0 / (mM0K * T8d8 *... | [
"0.66430837",
"0.6384013",
"0.6246422",
"0.6050542",
"0.59034485",
"0.587924",
"0.58585155",
"0.5853557",
"0.5848835",
"0.5831704",
"0.5822635",
"0.5813744",
"0.5786589",
"0.5756403",
"0.57505715",
"0.5747587",
"0.57446086",
"0.5744435",
"0.573039",
"0.5728867",
"0.5728423",
... | 0.68911606 | 0 |
using SMAPE(Symmetric mean absolute percentage error) | def fVw1(QynK, y2XU):
from numba import jit
import math
yvT9 = 0
if len(QynK.columns) > 1:
Y8eF = QynK.drop(QynK.columns[0], axis=1).values.reshape(-1)
aMgO = y2XU.drop(y2XU.columns[0], axis=1).values.reshape(-1)
else:
Y8eF = QynK.values.reshape(-1)
aMgO = y2XU.values... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n3m0(n5sN: np.ndarray, PjQx: np.ndarray):\n return oyIN.mean(2.0 * oyIN.abs(n5sN - PjQx) / (oyIN.abs(n5sN) + oyIN.abs(PjQx) + 1e-10))",
"def n3m0(o3Uj, Dmme):\n return 2.0 * oyIN.mean(oyIN.abs(o3Uj - Dmme) / (oyIN.abs(o3Uj) + oyIN.abs(Dmme))) * 100",
"def n3m0(n5sN: np.ndarray, PjQx: np.ndarray):\n ... | [
"0.72496337",
"0.7134446",
"0.7094334",
"0.6963578",
"0.6835516",
"0.68265533",
"0.67560637",
"0.6727771",
"0.66533023",
"0.65298873",
"0.64948577",
"0.6484051",
"0.6459368",
"0.64582145",
"0.64490587",
"0.6436208",
"0.642811",
"0.638782",
"0.6387146",
"0.6382809",
"0.6324833... | 0.0 | -1 |
Wrapper for _flow, prunes the submodules in case they are nn.Sequential of size 1. | def ixap(YKHO, ETfU=None):
C3ST = YKHO._flow(ETfU)
U5bT = U8Lr()
for XC8X, AaVJ in C3ST.items():
if len(AaVJ) == 1:
U5bT[XC8X] = AaVJ[next(iter(AaVJ))]
else:
U5bT[XC8X] = U78l.Sequential(AaVJ)
return U78l.ModuleDict(U5bT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HZ66(YKHO):\n T5kc.pytorch_dict['relu'] = PnyQ.direct\n T5kc.pytorch_dict['max_pool2d'] = PnyQ.direct\n T5kc.pytorch_dict['avg_pool2d'] = PnyQ.direct\n T5kc.pytorch_dict['adaptive_avg_pool2d'] = PnyQ.direct\n T5kc.pytorch_dict['dropout'] = PnyQ.direct\n T5kc.pytorch_dict['flatten'] = PnyQ.ski... | [
"0.60435194",
"0.5981071",
"0.5981071",
"0.5904641",
"0.57815063",
"0.5764667",
"0.5761356",
"0.575965",
"0.5698711",
"0.5663692",
"0.5652476",
"0.56518465",
"0.5609156",
"0.5559572",
"0.5550408",
"0.55185026",
"0.55119133",
"0.54990035",
"0.5491464",
"0.5483291",
"0.5452276"... | 0.51522356 | 80 |
Get the defined model given an input shape. | def GggX(IznC, ETfU=None):
return uqqf(IznC).get_modules(ETfU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KFJf(YKHO, GhuM: Tuple[int]) -> wOed:\n raise NotImplementedError()",
"def YrZb(mWFP, ROpF, **B2fa):\n if mWFP == 'float':\n return PL4G(shape=ROpF)\n elif mWFP == 'quantized':\n return z3Kn(shape=ROpF, **B2fa)\n else:\n print('** error, could not create model! **\\n')\n ... | [
"0.779984",
"0.7612356",
"0.74515617",
"0.7094949",
"0.68680507",
"0.68381006",
"0.6741664",
"0.6703179",
"0.6647336",
"0.656905",
"0.6553823",
"0.65264523",
"0.6469487",
"0.64629424",
"0.64432555",
"0.64387417",
"0.6422981",
"0.6391144",
"0.63870317",
"0.6385716",
"0.6366293... | 0.0 | -1 |
Returns the region specified in the args; defaults to an environment variable. If that's not supplied defaults to the default cloud provider from caliban.platform.cloud. | def kIcV(r8hN: Dict[str, Any]) -> lY0q.Region:
zn0c = r8hN.get('region') or Hy7s.environ.get('REGION')
if zn0c:
return lY0q.parse_region(zn0c)
return ZEqz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn0c(YKHO) -> h8nf[str]:\n return N4yN.get('region') or i5mz.get_env('ALICLOUD_REGION')",
"def wskO(qIxc, idDS=False):\n if getattr(qIxc, 'region', None):\n return qIxc.region\n if C9U5.VALUES.run.region.IsExplicitlySet():\n return C9U5.VALUES.run.region.Get()\n if idDS:\n zn... | [
"0.7795347",
"0.7371562",
"0.7238262",
"0.7238262",
"0.7120093",
"0.7095881",
"0.7025632",
"0.69385624",
"0.6695312",
"0.6634919",
"0.6634919",
"0.650243",
"0.650243",
"0.650243",
"0.650243",
"0.650243",
"0.650243",
"0.650243",
"0.650243",
"0.650243",
"0.650243",
"0.650243"... | 0.63322717 | 57 |
Returns the list of aptitude packages that should be installed to satisfy the requests in the config. | def xX7c(Fv2L: CalibanConfig, Tuqy: JobMode) -> x1iM[str]:
cEzT = Fv2L.get('apt_packages') or {}
if isinstance(cEzT, dict):
G1Hx = 'gpu' if wqL3(Tuqy) else 'cpu'
return cEzT.get(G1Hx, [])
elif isinstance(cEzT, list):
return cEzT
else:
raise j1Jz.ArgumentTypeError('{}\'s "... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TY2y():\n geh0 = evsB('rpm -qa')\n return geh0",
"def ERYn():\n return 'Filename:' in nhfz('apt-cache', 'show', 'python', check=False, capture=True)",
"def ERYn():\n return 'Filename:' in nhfz('apt-cache', 'show', 'python', check=False, capture=True)",
"def PpJM():\n I45O.debug('Collection... | [
"0.7329792",
"0.7043484",
"0.7043484",
"0.69771516",
"0.69752425",
"0.6851616",
"0.6787742",
"0.67855203",
"0.6686105",
"0.66713214",
"0.666005",
"0.6652599",
"0.6647644",
"0.6634665",
"0.6627513",
"0.6591807",
"0.65806735",
"0.6567416",
"0.65437096",
"0.6537416",
"0.6521536"... | 0.7828823 | 0 |
Get the icosahedron laplacian list for a certain depth. | def ofmJ(Ziit, rb7a):
l25F = []
gkQC = []
T4Wy = x67P(Ziit)
for bGrB in range(rb7a):
Ziit = nCeg(T4Wy)
m2PH = x67P(Ziit)
jNOo = XG2V(int(m2PH))
jNOo = ht2j.from_numpy(jNOo)
Gmfu = lVlu(jNOo, 6 if T4Wy else 5)
if T4Wy:
pImw = ht2j.norm(jNOo[Gmfu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PAe3():\n i4lZ = oyIN.array([0, 1, 2, 4, 6, 10])\n O_Up = aHOP(surface_index=0, bottom_index=len(i4lZ) - 1, terms={'depth_levels': i4lZ})\n return O_Up",
"def foq8(YKHO, tux7):\n vH0K = oyIN.zeros(YKHO.size)\n for YRbF in range(YKHO.size[0]):\n for r845 in range(YKHO.size[1]):\n ... | [
"0.5879055",
"0.5864347",
"0.5655468",
"0.5539184",
"0.55258673",
"0.5423179",
"0.5415572",
"0.53032285",
"0.52862865",
"0.52712816",
"0.52525127",
"0.5229753",
"0.52243155",
"0.52232605",
"0.52194667",
"0.5218369",
"0.52011126",
"0.5177893",
"0.5165828",
"0.5162003",
"0.5158... | 0.0 | -1 |
Hash a password, currently will use the PBKDF2 scheme. | def qzFd(jTXt):
return CJ0I(jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.hash = jf1V.encrypt(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.encrypt(jTXt)",
"def qzFd(jTXt: str):\n return jf1V.hash... | [
"0.83914685",
"0.83914685",
"0.8328131",
"0.82751733",
"0.82559216",
"0.82304585",
"0.8187291",
"0.8181096",
"0.81339973",
"0.8120299",
"0.8098395",
"0.8068034",
"0.8068034",
"0.8048535",
"0.80345815",
"0.80078936",
"0.7964011",
"0.7956498",
"0.7915204",
"0.7863245",
"0.78570... | 0.84358007 | 0 |
Uses pandas to read,concatenate and save tables using pandas.concat | def g71F(CLQ0, zJpA, VWe_='\t', DfZ1=0, jDK_=0, bgid=None, tPL5=None, K7ql=None):
import pandas as rLdf
if bgid is None:
bgid = {}
if tPL5 is None:
tPL5 = {}
if K7ql is None:
K7ql = {}
if type(CLQ0) == str:
CLQ0 = [CLQ0]
Dy8w = [rLdf.read_csv(nUeQ, index_col=DfZ1,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZLJ(CLQ0, zJpA, VWe_, DfZ1, bgid, tPL5, DdKN=None):\n import pandas as rLdf\n try:\n from tqdm import tqdm\n except ImportError:\n tqdm = tuple\n if DdKN is not None:\n try:\n DdKN = list(DdKN)\n except Exception as e:\n raise Exception('selected_h... | [
"0.72987217",
"0.7173496",
"0.6821003",
"0.6576963",
"0.6572586",
"0.6564614",
"0.6557384",
"0.64313453",
"0.63830405",
"0.6372101",
"0.634662",
"0.63424605",
"0.6287301",
"0.6188827",
"0.6107304",
"0.6106542",
"0.6091987",
"0.6079041",
"0.6048397",
"0.60262823",
"0.6012375",... | 0.7463093 | 0 |
Compute the mean absolute error on test set given X, y, and model parameter w. | def W4jA(yzQ0, EcVT, LVAh):
o9Wy = EcVT.dot(yzQ0)
yYlc = oyIN.absolute(o9Wy - LVAh)
ywwl = LVAh.shape[0]
XObx = oyIN.sum(yYlc) / ywwl
return XObx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W4jA(yzQ0, EcVT, LVAh):\n XObx = oyIN.mean(oyIN.abs(oyIN.subtract(oyIN.dot(EcVT, yzQ0), oyIN.array(LVAh, oyIN.float64))))\n return XObx",
"def Imx7(yzQ0, EcVT, LVAh):\n R50o = oyIN.matmul(EcVT, yzQ0)\n XObx = oyIN.subtract(LVAh, R50o)\n uDKx = oyIN.square(XObx)\n aKj8 = oyIN.mean(uDKx)\n ... | [
"0.7875007",
"0.7398524",
"0.7398398",
"0.71856517",
"0.6845846",
"0.6760613",
"0.67570055",
"0.66685313",
"0.66657984",
"0.6553395",
"0.64963967",
"0.64950264",
"0.64704585",
"0.6469058",
"0.6458006",
"0.6457153",
"0.6446676",
"0.64246875",
"0.6408285",
"0.6381655",
"0.63810... | 0.7630015 | 1 |
Find the best lambda value. | def LXKc(Q_RX, e3Zm, Qnlx, _nuU):
cJ4a = float('inf')
oO2T = None
for YRbF in range(-19, 20, 1):
lnPd = nc24(Q_RX, e3Zm, 10 ** YRbF)
XObx = W4jA(lnPd, Qnlx, _nuU)
if XObx <= cJ4a:
cJ4a = XObx
oO2T = 10 ** YRbF
KYhM = oO2T
return KYhM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qoQE(YKHO, wEf2):\n PtQX = 1 - 1 / YKHO.k\n return max(0, min(wEf2, PtQX))",
"def OH2r(YKHO):\n if YKHO._lambda_max is None:\n k0lF = YKHO.A()\n CJGY = 0.0\n for bisP in k0lF:\n tjUW = bisP.copy()\n tjUW.data **= 2.0\n CJGY += tjUW.sum(axis=0)\n ... | [
"0.6956015",
"0.66534555",
"0.66118085",
"0.6562754",
"0.6551261",
"0.64874226",
"0.64404064",
"0.64073884",
"0.63201094",
"0.629823",
"0.62590516",
"0.6238341",
"0.6230595",
"0.62303805",
"0.62291485",
"0.6203637",
"0.6195233",
"0.61568534",
"0.61566466",
"0.613943",
"0.6133... | 0.6152055 | 19 |
if option equal 'and', return a list of items which are in both list1 and list2. Otherwise, return a list of items in list1 but not in list2. | def cXrP(Kt9y, I_KI, MTKo=None):
if MTKo and MTKo == 'and':
return [WKvO for WKvO in Kt9y if WKvO in I_KI]
else:
return [WKvO for WKvO in Kt9y if WKvO not in I_KI] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fs3n(Kt9y, I_KI):\n import myclasses\n nF1T = myclasses.OrderedSetn(Kt9y)\n sFCv = myclasses.OrderedSetn(I_KI)\n return list(nF1T & sFCv)",
"def oaQY(Kt9y, I_KI):\n bjsK = len(I_KI)\n CIH_ = [None] * bjsK\n for YRbF in range(bjsK):\n CIH_[YRbF] = Kt9y[YRbF] & I_KI[YRbF]\n retur... | [
"0.6895813",
"0.68864805",
"0.6779126",
"0.6541886",
"0.65145254",
"0.640864",
"0.6371385",
"0.6370998",
"0.63650995",
"0.6339264",
"0.6330883",
"0.62357545",
"0.61708254",
"0.6151803",
"0.6108704",
"0.6108319",
"0.60809636",
"0.6065955",
"0.6065955",
"0.60564744",
"0.6043306... | 0.8703965 | 0 |
Ensure all the specified groups and only the specified groups are have the specified user as a member. The specified user and groups have all been preverified. | def H3cF(GPtr, xU0C, CBIr, moMn, MTKo=None):
tyNF = 'csv2_user_groups'
if moMn:
if isinstance(moMn, str):
ga5z = moMn.split(',')
else:
ga5z = moMn
else:
ga5z = []
PVOu = []
UNaz = "username='%s'" % CBIr
RBVb, tO9_, qjYr = GPtr.db_query(tyNF, where=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r73R(uOe2, CBIr):\n Csk6 = DvQj(uOe2)\n if CBIr not in Csk6['members']:\n tbdR(uOe2, CBIr)",
"def S3LY(YKHO):\n YKHO.user.groups.add(YKHO.admin_group)\n YKHO.assertTrue(gB9w(YKHO.user, [PNe1, o3dT]))",
"def Jqpv(uOe2, CBIr):\n Csk6 = DvQj(uOe2)\n if Csk6 is None:\n return Fa... | [
"0.74007756",
"0.6758738",
"0.65340596",
"0.64142954",
"0.6354111",
"0.6337651",
"0.63319665",
"0.62807983",
"0.62790537",
"0.62649584",
"0.62330073",
"0.62330073",
"0.61623484",
"0.6117383",
"0.61153555",
"0.60896033",
"0.6085665",
"0.60805917",
"0.60664785",
"0.6049014",
"0... | 0.0 | -1 |
Query Transform takes a list of dictionaries (eg. the result of an SqlAlchemy query) and transforms it into a standard python list (repeatably iterable). In the process, | def eA0O(xDcj, sjXb=None, X4io=[], filter=None, a8Pe=None):
if sjXb and (not ('primary' in sjXb and len(sjXb.keys()) == 1 or ('primary' in sjXb and 'list_duplicates' in sjXb) or ('primary' in sjXb and 'sum' in sjXb) or ('primary' in sjXb and 'secondary' in sjXb))):
raise Exception('view_utils.qt: "keys" dic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLya(usx6):\n LJT_ = []\n for rdlD in usx6:\n xP9A = {}\n for H5ew, ZfUD in dict(rdlD).iteritems():\n if isinstance(ZfUD, SOnQ.Decimal):\n ZfUD = float(ZfUD)\n if isinstance(ZfUD, qcWV.date):\n ZfUD = '%s' % ZfUD\n xP9A[H5ew] = ... | [
"0.6624604",
"0.63663065",
"0.6361973",
"0.6304175",
"0.6217614",
"0.6075513",
"0.6051789",
"0.5996912",
"0.59863263",
"0.5981969",
"0.59736615",
"0.59486485",
"0.5939356",
"0.59131205",
"0.58588743",
"0.58149886",
"0.5761341",
"0.57470185",
"0.57356197",
"0.57292867",
"0.571... | 0.0 | -1 |
This subfunction is called by view_utils.qt to list a queryset's sums. It is NOT meant to be called directly. | def cCL3(AcIB, k3k0, _QyI, ZVgY, p6S0):
if len(_QyI) > 0 and isinstance(_QyI[list(_QyI)[0]], dict):
for H5ew in _QyI:
M2V5 = dict(k3k0)
M2V5.update({ZVgY[p6S0]: H5ew})
cCL3(AcIB, M2V5, _QyI[H5ew], ZVgY, p6S0 + 1)
else:
AcIB.append(k3k0)
AcIB[-1].update... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BPx3(YKHO):\n return YKHO.sumList",
"def NVrD(QePW):\n SR0I = X2SB.objects.all()\n return m3C0.object_list(QePW, queryset=SR0I, template_name='ledger_sheet.html', template_object_name='line', extra_context={'title': 'All Ledger Entries'})",
"def sum(YKHO):\n return sum(YKHO.lst)",
"def QklZ(S... | [
"0.68265444",
"0.63480455",
"0.6321467",
"0.6289643",
"0.6187185",
"0.6142709",
"0.60502034",
"0.60441124",
"0.5980858",
"0.5958264",
"0.5903607",
"0.58391666",
"0.5838818",
"0.5812222",
"0.57727474",
"0.57687837",
"0.57520753",
"0.5738406",
"0.57132244",
"0.5710165",
"0.5663... | 0.0 | -1 |
If the "Accept" HTTP header contains "application/json", return a json string. Otherwise, return an HTML string. | def _1tc(QePW, rPXJ, QpfX):
from django.shortcuts import _1tc as xF88
from django.http import HttpResponse
import datetime
import decimal
import json
class csv2Encoder(json.JSONEncoder):
def WmM4(YKHO, YEnM):
if str(YEnM.__class__).split("'")[1].split('.')[0] == 'sqlalchemy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rheg():\n if not QePW.accept_mimetypes.accept_json:\n return False\n if not QePW.accept_mimetypes.accept_html:\n return True\n P6Dd = QePW.accept_mimetypes.best_match(('text/html', 'application/json'))\n if P6Dd != 'application/json':\n return False\n if QePW.accept_mimetype... | [
"0.7197367",
"0.6861003",
"0.68239737",
"0.6702655",
"0.6691447",
"0.6689011",
"0.6598515",
"0.6466095",
"0.6442428",
"0.62594545",
"0.61724705",
"0.6111784",
"0.60649514",
"0.5990692",
"0.5965925",
"0.5953913",
"0.59022427",
"0.5893599",
"0.58930373",
"0.586472",
"0.5863367"... | 0.0 | -1 |