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 |
|---|---|---|---|---|---|---|
Return the equivalent field name in the file format for a standard geolocation field (lat, lon, time, z). Used for internal purpose and should not be called directly. | def CsAL(YKHO, K_Sa):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CsAL(YKHO, K_Sa):\n sjXb = YKHO.get_handler().variables.keys()\n if YKHO.is_reference:\n sjXb.append('time')\n if K_Sa in YKHO.geofield_std2native:\n for Acvy in YKHO.geofield_std2native[K_Sa]:\n if Acvy in sjXb:\n return Acvy\n return None",
"def Bb7w(YKHO... | [
"0.7202326",
"0.67063546",
"0.60681885",
"0.591974",
"0.5859767",
"0.58565706",
"0.56916666",
"0.56810546",
"0.56618434",
"0.56397957",
"0.5631955",
"0.5631955",
"0.5628429",
"0.5585523",
"0.5569618",
"0.550983",
"0.54989564",
"0.5464813",
"0.5461702",
"0.5456902",
"0.5449714... | 0.6973778 | 1 |
Return a human readable representation of the model instance. | def zAg0(YKHO):
return '{}'.format(YKHO.owner) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return YKHO.human_format()",
"def zAg0(YKHO):\n return YKHO.get_short_representation()",
"def wHJl(YKHO: BaseModel) -> str:\n sgKs = [f'{H5ew}={repr(BWXx)}' for H5ew, BWXx in YKHO.to_d... | [
"0.7913435",
"0.7867543",
"0.7781073",
"0.7656772",
"0.7606172",
"0.7597312",
"0.7564931",
"0.7550362",
"0.75101286",
"0.7454313",
"0.74322736",
"0.7422165",
"0.73582166",
"0.73346543",
"0.73246557",
"0.73246557",
"0.73246557",
"0.73246557",
"0.73246557",
"0.73246557",
"0.732... | 0.0 | -1 |
Return a human readable representation of the model instance. | def zAg0(YKHO):
return '{} : {}'.format(YKHO.owner, YKHO.account_number) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return YKHO.human_format()",
"def zAg0(YKHO):\n return YKHO.get_short_representation()",
"def wHJl(YKHO: BaseModel) -> str:\n sgKs = [f'{H5ew}={repr(BWXx)}' for H5ew, BWXx in YKHO.to_d... | [
"0.7913435",
"0.7867543",
"0.7781073",
"0.7656772",
"0.7606172",
"0.7597312",
"0.7564931",
"0.7550362",
"0.75101286",
"0.7454313",
"0.74322736",
"0.7422165",
"0.73582166",
"0.73346543",
"0.73246557",
"0.73246557",
"0.73246557",
"0.73246557",
"0.73246557",
"0.73246557",
"0.732... | 0.0 | -1 |
Return a human readable representation of the model instance. | def zAg0(YKHO):
return '{} : {}'.format(YKHO.owner, YKHO.transaction_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return YKHO.human_format()",
"def zAg0(YKHO):\n return YKHO.get_short_representation()",
"def wHJl(YKHO: BaseModel) -> str:\n sgKs = [f'{H5ew}={repr(BWXx)}' for H5ew, BWXx in YKHO.to_d... | [
"0.7914226",
"0.7868584",
"0.7781664",
"0.7656883",
"0.7607173",
"0.7597416",
"0.75647384",
"0.75514036",
"0.751101",
"0.74544793",
"0.74324083",
"0.7422469",
"0.73582697",
"0.73353356",
"0.7325061",
"0.7325061",
"0.7325061",
"0.7325061",
"0.7325061",
"0.7325061",
"0.7325061"... | 0.0 | -1 |
data points with 0 entries were set to a negative default value so that they wouldn't show up. Also drop the error on data. | def uPC9(pNZh, PzSf=-10):
for YRbF in range(pNZh.GetN()):
WKvO, LVAh = (pNZh.GetX()[YRbF], pNZh.GetY()[YRbF])
Vthf, wFQB = (pNZh.GetErrorXlow(YRbF), pNZh.GetErrorXhigh(YRbF))
if LVAh == PzSf:
pNZh.SetPoint(YRbF, WKvO, 0.0)
pNZh.SetPointError(YRbF, 0.0, 0.0, 0.0, 0.0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kkwb(nPrm):\n return nPrm",
"def _FJc(nPrm):\n foUm = nPrm.max(axis=0)\n avsh = nPrm.min(axis=0)\n MVLp = foUm - avsh\n zTaA = (nPrm - avsh) / MVLp\n zTaA[oyIN.isnan(zTaA)] = 0\n return zTaA",
"def Kayi():\n return HZAu([PvyL(1, 2), None, PvyL(0, 0)])",
"def BNSI(YKHO):\n if no... | [
"0.6558519",
"0.633638",
"0.63073516",
"0.6271031",
"0.62475824",
"0.6193634",
"0.6193634",
"0.60948503",
"0.6091792",
"0.6045976",
"0.6044439",
"0.5996571",
"0.5985132",
"0.5952688",
"0.59430313",
"0.5934563",
"0.5928768",
"0.5899401",
"0.5898498",
"0.588979",
"0.5877351",
... | 0.7265017 | 0 |
Return the API url associated with this serializer | def F5bL(YKHO):
return Rmd_('api-part-list') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F5bL(Emd4) -> str:\n return Emd4.__api_url",
"def Ms2Z(YKHO):\n return YKHO._api_url",
"def Ms2Z(YKHO):\n return YKHO._api_url",
"def Ms2Z(YKHO):\n pass",
"def F5bL(YKHO):\n return YKHO.api_url",
"def Ms2Z(YKHO):\n return YKHO.data.get('api_url')",
"def Ms2Z(YKHO):\n bo34.debug... | [
"0.819625",
"0.816532",
"0.816532",
"0.81557006",
"0.8046981",
"0.80202866",
"0.7990036",
"0.7836508",
"0.7670662",
"0.7662079",
"0.75350463",
"0.7457765",
"0.7453872",
"0.740439",
"0.7325284",
"0.72766197",
"0.72555584",
"0.7224066",
"0.7214834",
"0.7186165",
"0.71642697",
... | 0.75861335 | 10 |
Skip these fields when instantiating a new Part instance | def YMhj(YKHO):
V_D6 = super().skip_create_fields()
V_D6 += ['duplicate', 'initial_stock', 'initial_supplier', 'copy_category_parameters']
return V_D6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n NJ9J = B2fa.pop('supplier_detail', False)\n hGON = B2fa.pop('part_detail', False)\n super().__init__(*qIxc, **B2fa)\n if not NJ9J:\n YKHO.fields.pop('supplier_detail')\n if not hGON:\n YKHO.fields.pop('part_detail')",
"def FIMM(YKHO, *qIxc, **B2fa):\n... | [
"0.68490106",
"0.6733433",
"0.66557306",
"0.665504",
"0.6366794",
"0.63523734",
"0.61860675",
"0.6140151",
"0.6095492",
"0.6078756",
"0.60347927",
"0.60175335",
"0.5995669",
"0.59712845",
"0.59444374",
"0.5908078",
"0.5901006",
"0.5868227",
"0.58602643",
"0.58522147",
"0.5850... | 0.66412663 | 4 |
Add some extra annotations to the queryset. Performing database queries as efficiently as possible, to reduce database trips. | def IYat(SR0I):
SR0I = SR0I.annotate(stock_item_count=gWVO('stock_items'))
XP4u = Q7me.filters.variant_stock_query()
SR0I = SR0I.annotate(variant_stock=Q7me.filters.annotate_variant_quantity(XP4u, reference='quantity'))
sN1C = T8ck(status__in=zn5X.ACTIVE_CODES)
SR0I = SR0I.annotate(building=jltT(WYF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gBiD(YKHO, QTBn, SR0I):\n CBIr = QTBn.datagrid.request.user\n if CBIr.is_anonymous:\n return SR0I\n ChdF = {'user_id': str(CBIr.id)}\n return SR0I.extra(select={'mycomments_my_reviews': '\\n SELECT COUNT(1)\\n FROM reviews_review\\n WHERE revi... | [
"0.63824886",
"0.60705787",
"0.59851354",
"0.5980568",
"0.59620374",
"0.5887028",
"0.58793694",
"0.5877727",
"0.5784261",
"0.57145864",
"0.56596905",
"0.5614665",
"0.5609497",
"0.5588705",
"0.55875254",
"0.55582076",
"0.5511284",
"0.55069536",
"0.5486586",
"0.5471636",
"0.546... | 0.57427007 | 9 |
Perform validation for the BomItem quantity field | def K8X0(YKHO, cTRz):
if cTRz <= 0:
raise IyFz.ValidationError(bGrB('Quantity must be greater than zero'))
return cTRz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K8X0(Emd4, cTRz):\n if cTRz is None:\n SWH1('The product quantity is required')\n if not KRIH(cTRz):\n SWH1('The product quantity should be a positive integer')",
"def x0SS(YKHO):\n VMhS = super().clean()\n pPTc = VMhS.get('variant')\n cTRz = VMhS.get('quantity')\n if pPTc and... | [
"0.7488614",
"0.7442152",
"0.7407585",
"0.73611796",
"0.7342822",
"0.7257964",
"0.709294",
"0.6940728",
"0.68034834",
"0.66847116",
"0.6684684",
"0.66703826",
"0.66682804",
"0.6610803",
"0.66098976",
"0.65927255",
"0.65532315",
"0.6522983",
"0.6492582",
"0.6426996",
"0.633533... | 0.755082 | 0 |
Validate that the extracted columns are correct | def Buyc(YKHO):
super().validate_extracted_columns()
hVfD = ['part', 'part_name', 'part_ipn', 'part_id']
if not any((fvDH in YKHO.columns for fvDH in hVfD)):
raise IyFz.ValidationError(bGrB('No part column specified')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sBY3(YKHO, *qIxc, **B2fa):\n if YKHO.fieldnames is None:\n w7FC = YKHO.result_row_list[0].keys()\n for fvDH in YKHO.keys_to_validate:\n if fvDH not in w7FC:\n raise q2hv(bGrB('Invalid data'), bGrB('Column %s not present in file') % fvDH)\n return True",
"def Y03P... | [
"0.75859773",
"0.733573",
"0.73231065",
"0.7307669",
"0.7157556",
"0.7097995",
"0.6986345",
"0.69777566",
"0.69356924",
"0.6913153",
"0.68317926",
"0.68307704",
"0.6796571",
"0.6772889",
"0.67679083",
"0.6721263",
"0.6717681",
"0.6717478",
"0.6706849",
"0.6671324",
"0.6620238... | 0.74653167 | 1 |
Creates a new payment object for an order. | def EARq(YKHO, nPrm):
return zycL(YKHO.client).on(YKHO).create(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EARq(YKHO, **B2fa):\n pass",
"def eLpg(**nPrm):\n pu1N = xiv5()\n geh0, bGrB = pu1N.post(iAwL.url(iAwL.PAYMENT_RESOURCE), nPrm)\n return JKCy.Payment(**geh0)",
"def EARq(YKHO):\n YKHO.card_data = YKHO.order_payment.card_data\n if 'mobile' not in YKHO.card_data:\n raise KvCT('Mobile... | [
"0.7306334",
"0.7204416",
"0.7167599",
"0.70543736",
"0.68795174",
"0.68554103",
"0.6773758",
"0.6722014",
"0.66569173",
"0.66449124",
"0.6622324",
"0.66114527",
"0.65963477",
"0.65419614",
"0.6472273",
"0.6454486",
"0.63311297",
"0.6258887",
"0.62129205",
"0.6204546",
"0.618... | 0.83117306 | 0 |
r"""Create 1D gauss kernel | def MMhn(zNig, WTkW):
jNOo = ht2j.arange(zNig).to(dtype=ht2j.float)
jNOo -= zNig // 2
Oa1e = ht2j.exp(-jNOo ** 2 / (2 * WTkW ** 2))
Oa1e /= Oa1e.sum()
return Oa1e.unsqueeze(0).unsqueeze(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h3z1(vXdm=21, HVUZ=3):\n WKvO = oyIN.linspace(-HVUZ, HVUZ, vXdm)\n wpiG = aevO.norm.pdf(WKvO)\n OLCo = oyIN.outer(wpiG, wpiG)\n WZcn = OLCo / OLCo.sum()\n return WZcn",
"def MLdf(VXjJ, WZcn):\n YDR7, bGrB, YSA3, RZju = WZcn.shape\n VXjJ = nxWE.pad(VXjJ, (YSA3 // 2, RZju // 2, YSA3 // 2, ... | [
"0.76401496",
"0.76002526",
"0.7589672",
"0.7492232",
"0.7388964",
"0.7219173",
"0.71415883",
"0.7024794",
"0.69647485",
"0.69344646",
"0.6890114",
"0.68791646",
"0.68748075",
"0.6872971",
"0.6869788",
"0.68309027",
"0.6764074",
"0.67617565",
"0.67182666",
"0.66986877",
"0.66... | 0.62728804 | 70 |
Takes a directed graph represented as a dictionary and computes the indegrees for the nodes in the graph. Returns a dictionary with the same set of keys (nodes) as digraph whose corresponding values are the number of edges whose head matches a particular node. | def beMw(GvER):
TEPG = {}
Ziit = [H5ew for H5ew in GvER]
for Q6kx in Ziit:
UHFx = 0
for G23m in Ziit:
if Q6kx in GvER[G23m]:
UHFx += 1
TEPG[Q6kx] = UHFx
return TEPG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def beMw(GvER):\n Ziit = GvER.keys()\n On0l = dict(zip(Ziit, [0] * len(Ziit)))\n for Q6kx in Ziit:\n for D70y in GvER[Q6kx]:\n On0l[D70y] += 1\n return On0l",
"def beMw(JFwB):\n sCNT = {}\n for eab2 in JFwB.values():\n for Q6kx in eab2:\n sCNT[Q6kx] = sCNT.ge... | [
"0.7898903",
"0.7639489",
"0.7638127",
"0.74530387",
"0.7388047",
"0.7352888",
"0.7352888",
"0.73429185",
"0.72258675",
"0.7171891",
"0.7167999",
"0.7165977",
"0.7146212",
"0.71441627",
"0.71319497",
"0.7099733",
"0.70537794",
"0.7046683",
"0.7004568",
"0.6982341",
"0.695081"... | 0.7634548 | 3 |
Standard initalization. Calls derived class implementation if it exists. This is in leiu of permitting derived classes to implement __init__(). | def wMzc(YKHO):
if hasattr(YKHO, 'Init'):
YKHO.Init()
YKHO.RegisterHandler(lImE.ByEvent(nMXM.PLAYER_ENTERS_ROOM), YKHO._OnPlayerEnter)
YKHO.RegisterHandler(lImE.ByEvent(nMXM.PLAYER_EXITS_ROOM), YKHO._OnPlayerExit)
YKHO.RegisterHandler(lImE.ByEvent(nMXM.ACTION_TAKE_OBJECT), YKHO._OnTakeItem)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n raise NotImplementedError('must be defined by the derived class')",
"def DnLW(YKHO, qIxc):\n raise NotImplementedError",
"def DbxN(YKHO):\n raise NotImplementedError()",
"def DbxN(YKHO):\n raise NotImplementedError('Please override this method')",
"def E14P(YKHO):\n raise N... | [
"0.7739517",
"0.7583226",
"0.74164027",
"0.73757225",
"0.73689735",
"0.73597324",
"0.73383105",
"0.7315033",
"0.72774714",
"0.7275735",
"0.72698885",
"0.72698885",
"0.72698885",
"0.72365665",
"0.72249186",
"0.7203047",
"0.7170338",
"0.71639675",
"0.71607226",
"0.71283615",
"0... | 0.0 | -1 |
Create a Mat4 with orthographic projection. | def vpEl(LFlW, _tIi, es2x, tlxW, zX3H, DjSP):
TVTK = _tIi - LFlW
H2v2 = tlxW - es2x
rb7a = DjSP - zX3H
o0ZM = 2.0 / TVTK
BhJz = 2.0 / H2v2
Rv0k = 2.0 / -rb7a
UShr = -(_tIi + LFlW) / TVTK
Yrvv = -(tlxW + es2x) / H2v2
yl4j = -(DjSP + zX3H) / rb7a
return PdX4((o0ZM, 0.0, 0.0, 0.0, 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tI06(Emd4: type[Mat4T], LFlW: float, _tIi: float, es2x: float, tlxW: float, zpLN: float, WoSA: float) -> DRnN:\n TVTK = _tIi - LFlW\n H2v2 = tlxW - es2x\n rb7a = WoSA - zpLN\n o0ZM = 2.0 / TVTK\n BhJz = 2.0 / H2v2\n Rv0k = 2.0 / -rb7a\n UShr = -(_tIi + LFlW) / TVTK\n Yrvv = -(tlxW + es2... | [
"0.7353266",
"0.70582426",
"0.6979651",
"0.68828607",
"0.68611735",
"0.65379214",
"0.65060663",
"0.62928087",
"0.6271093",
"0.6251507",
"0.61680704",
"0.60747224",
"0.6023048",
"0.59637743",
"0.596342",
"0.5919574",
"0.58784765",
"0.58471954",
"0.58388823",
"0.58374923",
"0.5... | 0.69255245 | 3 |
Create a Mat4 with perspective projection. | def RORs(LFlW, _tIi, es2x, tlxW, zX3H, DjSP, fZkQ=60):
TVTK = _tIi - LFlW
H2v2 = tlxW - es2x
Ir38 = TVTK / H2v2
S5ui = zX3H * Rvld.tan(fZkQ * Rvld.pi / 360)
h3cg = -S5ui
BQGg = -S5ui
TVTK = S5ui - BQGg
H2v2 = S5ui - h3cg
rb7a = DjSP - zX3H
vexM = -(DjSP + zX3H) / rb7a
Z7qo = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ouT2(YKHO):\n ...",
"def tQWj(Emd4, _e1V, Ir38, Qh4y, Dfjx, yDqo=None):\n return Emd4(HY7Z.create_perspective_projection(_e1V, Ir38, Qh4y, Dfjx, yDqo))",
"def tQWj(Emd4: type[Mat4T], Ir38: float, zpLN: float, WoSA: float, fZkQ: float=60) -> DRnN:\n mAam = zpLN * Rvld.tan(fZkQ * Rvld.pi / 360)\n ... | [
"0.7616346",
"0.74393576",
"0.7197302",
"0.7009121",
"0.6960919",
"0.68943566",
"0.67154926",
"0.6647536",
"0.659642",
"0.6584638",
"0.65220505",
"0.64666945",
"0.6434646",
"0.6416582",
"0.6375485",
"0.6351406",
"0.63504726",
"0.6349788",
"0.634424",
"0.6325473",
"0.63122785"... | 0.68634695 | 6 |
Confirm to the user that their password reset succeeded. | def bU8i():
return WsL5.render_template('success.html.j2') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LW_m():\n P4t4.logger.debug('User password reset confirmation')\n zBBK = {'csrf_enabled': False}\n if QePW.method == 'GET':\n if QePW.values.get('login'):\n zBBK.update({'login': QePW.values.get('login')})\n if QePW.values.get('resetcode'):\n zBBK.update({'resetcode... | [
"0.7888713",
"0.7604095",
"0.7512175",
"0.7354867",
"0.7184083",
"0.71628505",
"0.7113223",
"0.70708644",
"0.703676",
"0.70164984",
"0.69871145",
"0.6969033",
"0.696437",
"0.69583344",
"0.69320536",
"0.6911964",
"0.6891991",
"0.686554",
"0.68508923",
"0.6848942",
"0.6836799",... | 0.0 | -1 |
Selects a random SCV and issues a move order to an enemy base. | def f413(YKHO, W061):
qeZI = [xASv.FUNCTIONS.no_op()]
if YKHO.reqSteps == 0:
YKHO.reqSteps = 4
if YKHO.reqSteps == 4:
if W061.observation.player.idle_worker_count > 0:
qeZI = [xASv.FUNCTIONS.select_idle_worker('select', W061, rYO3.Terran.SCV)]
elif xASv.FUNCTIONS.move_cam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKSy(YKHO):\n xQjm = YKHO.model.grid.get_neighborhood(YKHO.pos, True)\n R8mN = YKHO.random.choice(xQjm)\n YKHO.model.grid.move_agent(YKHO, R8mN)",
"def Q1pa(YKHO):\n oeNL = YKHO.selectTent()\n YKHO.updateValidTents(oeNL)\n return oeNL",
"def gKSy(YKHO):\n XSoh = oyIN.random.choice(YKHO... | [
"0.70680887",
"0.6982753",
"0.6955966",
"0.68032986",
"0.6576017",
"0.6532334",
"0.6493525",
"0.6474548",
"0.6406726",
"0.6398766",
"0.63933504",
"0.63150924",
"0.62551403",
"0.6210428",
"0.6202793",
"0.6190947",
"0.6163149",
"0.6136732",
"0.6131331",
"0.6122747",
"0.6114082"... | 0.0 | -1 |
Load a RAG model from Transformers along with passage_embedding_model. | def FIMM(YKHO, U0Yo: str='facebook/rag-token-nq', TBez: Optional[str]=None, iHod: Optional[DensePassageRetriever]=None, OVcV: RAGeneratorType=sxQg.TOKEN, H42b: int=2, BcCR: int=200, Lx0h: int=2, ZdQl: int=2, p5XG: bool=True, y0cW: Optional[str]=None, IHts: bool=True):
YKHO.set_config(model_name_or_path=U0Yo, model_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(pmON='../transformers-local/tmp/propaganda/'):\n print('loading the model ...')\n C3ST = LlHx.from_pretrained(pmON, output_attentions=False)\n print('Done loading the model...')\n return C3ST",
"def OGgH(qKRi):\n wOGa = r59r.from_pretrained(qKRi, output_hidden_states=True, return_dict=Tru... | [
"0.68618596",
"0.6225125",
"0.62096924",
"0.6207195",
"0.6161673",
"0.6129379",
"0.610973",
"0.6087092",
"0.6033989",
"0.59775126",
"0.59702724",
"0.59586275",
"0.59442776",
"0.59022915",
"0.5899887",
"0.5894563",
"0.5893722",
"0.58936787",
"0.58707964",
"0.5863175",
"0.58620... | 0.0 | -1 |
Return the name of the first directory up from ``filename`` that contains either a `settings.py` or `setup.py` file. This is our best guess for the project root for ``filename``. | def owKT(Ux0P):
return RZ8y(['settings.py', 'manage.py', 'setup.py'], Hy7s.path.dirname(Ux0P)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jNha(Ux0P):\n return pmON.join(pmON.dirname(xAKo), '..', '..', Ux0P)",
"def AGPF(Ux0P):\n dZk2 = Hy7s.path.dirname(Ux0P)\n return dZk2 if dZk2 else '.'",
"def gD3X(Ux0P):\n Q737 = Hy7s.path.abspath(Ux0P)\n SWUC = Q737\n tzuh = None\n while True:\n AGPF = Hy7s.path.dirname(SWUC)\... | [
"0.725156",
"0.7003785",
"0.68893325",
"0.68522805",
"0.68511033",
"0.67723125",
"0.6770637",
"0.67436904",
"0.6682097",
"0.66533023",
"0.66494614",
"0.6641298",
"0.6635556",
"0.66241074",
"0.66076934",
"0.658213",
"0.6575393",
"0.65752465",
"0.65558386",
"0.65552616",
"0.653... | 0.7840082 | 0 |
Return the package containing ``filename``. | def FW4f(Ux0P):
return RZ8y(['__init__.py'], Hy7s.path.dirname(Ux0P)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lloY(Ux0P, cPpY=None):\n if cPpY is None:\n cPpY = HC1H(Ux0P)\n if cPpY is not None:\n pmON = Hy7s.path.relpath(Ux0P, cPpY)\n pmON = EoWg(pmON)\n pmON = pmON.replace('/', '.')\n return pmON.replace('\\\\', '.')\n else:\n return roVr(Ux0P)",
"def ps_8(YKHO, U... | [
"0.70690393",
"0.7043878",
"0.6945162",
"0.68048877",
"0.6673903",
"0.64724845",
"0.63904905",
"0.6379634",
"0.6358562",
"0.6346903",
"0.63309145",
"0.62041444",
"0.6187344",
"0.6177155",
"0.6154245",
"0.6151477",
"0.6128401",
"0.61280835",
"0.6118806",
"0.6095258",
"0.60716"... | 0.7146572 | 0 |
Plot a line from slope and intercept | def Juqh(VMex, BlB8):
MPlV = QrM1.gca()
mMG6 = oyIN.array(MPlV.get_xlim())
VUzz = BlB8 + VMex * mMG6
QrM1.plot(mMG6, VUzz, '--') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Juqh(VMex, BlB8):\n MPlV = QrM1.gca()\n mMG6 = oyIN.array(MPlV.get_xlim())\n VUzz = BlB8 + VMex * mMG6\n QrM1.plot(mMG6, VUzz)",
"def Juqh(VMex, BlB8):\n MPlV = QrM1.gca()\n mMG6 = oyIN.array(MPlV.get_xlim())\n VUzz = BlB8 + VMex * mMG6\n QrM1.plot(mMG6, VUzz, '--')",
"def Juqh(VMex... | [
"0.83789146",
"0.83350635",
"0.83350635",
"0.826668",
"0.8203513",
"0.81485516",
"0.8067711",
"0.80460405",
"0.7518864",
"0.7356677",
"0.7296207",
"0.71540457",
"0.7047925",
"0.7042922",
"0.6992754",
"0.6900426",
"0.68588704",
"0.684512",
"0.6840099",
"0.6805085",
"0.6803438"... | 0.8318562 | 3 |
submit orders. This method is usually called by simulator or runners. | def yjHn(YKHO, NLrB: List[Market]) -> x1iM[uLKX[L9Jq, T_yw]]:
d168: float = 10.0
WHQL: int = 100
dgT9: int = 100
KqWO: float = 0.4
hdnL: float = 0.4
BgK2: x1iM[uLKX[L9Jq, T_yw]] = []
for GT8I in NLrB:
if YKHO.is_market_accessible(market_id=GT8I.market_id):
hI0L: float = G... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n66I(YKHO, T4Wy, dQgO=None):\n YKHO.logger.info('submit order ' + str(dQgO) + ' ' + str(T4Wy))\n GT8I, PVEG, IxZ0, Sgcx = T4Wy\n x0hE = YKHO.clients[dQgO]\n dh1F = {'market': GT8I, 'type': PVEG, 'price': IxZ0, 'quantity': Sgcx, 'status': SeCO}\n BTPd = False\n rBoi = 'unkown'\n YKHO.orders... | [
"0.73414606",
"0.7016291",
"0.7015734",
"0.6933816",
"0.68922484",
"0.68476814",
"0.68476814",
"0.6829808",
"0.6825077",
"0.68170494",
"0.67649245",
"0.6723199",
"0.66832316",
"0.66747427",
"0.6670366",
"0.6652005",
"0.6643612",
"0.66335714",
"0.6489023",
"0.6473513",
"0.6460... | 0.579791 | 85 |
Clears any cached vales of calls to this evaluator. This should be called whenever the evaluator's outputs could have changed. | def sCEQ(YKHO):
if not YKHO.multi:
YKHO._call.cache_clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U3hF(YKHO):\n VIzB = YKHO._calls\n YKHO.reset()\n for Z9rn in VIzB:\n eHNT = Z9rn.pop('func')\n Z9rn.pop('self')\n if 'kwargs' in Z9rn:\n Z9rn.update(Z9rn.pop('kwargs'))\n with VfO4():\n eHNT(**Z9rn)",
"def Y7Bk(YKHO):\n YKHO.outputs = []",
"def... | [
"0.73531353",
"0.7034998",
"0.6829583",
"0.67114764",
"0.6708604",
"0.6675173",
"0.6665057",
"0.66478264",
"0.66413856",
"0.6639248",
"0.66391385",
"0.6634731",
"0.66259074",
"0.65981036",
"0.65719706",
"0.6570109",
"0.64903593",
"0.6473236",
"0.64718664",
"0.64718664",
"0.64... | 0.6384691 | 30 |
Allows to safely capture stdout and stderr in a context manager. | def UpnD():
wCnE, DKg6 = (kJm3(), kJm3())
rUf0, z10o = (HwRy.stdout, HwRy.stderr)
try:
HwRy.stdout, HwRy.stderr = (wCnE, DKg6)
yield (HwRy.stdout, HwRy.stderr)
finally:
HwRy.stdout, HwRy.stderr = (rUf0, z10o) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WpLQ():\n gv2B = (HwRy.stdout, HwRy.stderr)\n BdN0 = (kJm3(), kJm3())\n try:\n HwRy.stdout, HwRy.stderr = BdN0\n yield BdN0\n finally:\n HwRy.stdout, HwRy.stderr = gv2B",
"def DAXR():\n rUf0 = (HwRy.stdout, HwRy.stderr)\n yvT9 = [kJm3(), kJm3()]\n try:\n HwRy.... | [
"0.72834957",
"0.7219763",
"0.7183021",
"0.7072535",
"0.7047128",
"0.6877727",
"0.68144715",
"0.6803482",
"0.675331",
"0.67180336",
"0.6674896",
"0.66116625",
"0.6405771",
"0.63762015",
"0.6369292",
"0.636587",
"0.63191605",
"0.63163435",
"0.6306831",
"0.626892",
"0.62446845"... | 0.7135205 | 4 |
Set missing values to NaN. operates inplace. | def EK9z(jQ3Z, ZLJ_):
Rbxw = ('.', 'MISSING_DATA')
for fvDH in ZLJ_:
jQ3Z[fvDH] = oyIN.where(jQ3Z[fvDH].isin(Rbxw), oyIN.nan, jQ3Z[fvDH]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gdo6(YKHO, BWXx=..., NKcE=..., LpaZ=..., **B2fa):\n ...",
"def Gdo6(YKHO):\n YKHO.df_data.fillna(value=0, inplace=True)\n pass",
"def x7Dv(YKHO, wEf2, *V_D6):\n try:\n YKHO.df = YKHO._fill_nan(wEf2, *V_D6)\n except Exception as e:\n YKHO.err(tTpl, YKHO.fill_nan, 'Can not fill n... | [
"0.7262303",
"0.69694656",
"0.6903731",
"0.68987685",
"0.6887574",
"0.687213",
"0.68408954",
"0.6773143",
"0.6713787",
"0.6703323",
"0.6651445",
"0.6607161",
"0.660447",
"0.65908873",
"0.6586349",
"0.6585483",
"0.65629697",
"0.65602744",
"0.6532392",
"0.65275216",
"0.65189666... | 0.6512257 | 23 |
Returns the class of an instance. It works with any Python class or Python standard data types (int, float, string, etc.), but not with extension classes. | def vcke(KAOR):
LJf3 = 'unknown'
try:
jbXL = KAOR.__class__
LJf3 = jbXL
except Bx6I.AttributeError:
LJf3 = type(KAOR)
return LJf3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B3qv(YEnM):\n bo34.debug('Get the class type(%r)', YEnM)\n if isinstance(YEnM, U78l.Cell):\n return xp5w\n if isinstance(YEnM, IPme.Primitive):\n return ouMT\n if isinstance(YEnM, XTiz.ndarray):\n return NB8k\n return KXb1",
"def vcke(YKHO, KAOR):\n LJf3 = 'unknown'\n ... | [
"0.7995854",
"0.7355864",
"0.710892",
"0.70482206",
"0.69376945",
"0.6930176",
"0.6912384",
"0.6768321",
"0.66530573",
"0.6570547",
"0.6566792",
"0.6554448",
"0.6554448",
"0.6554448",
"0.6554448",
"0.6537754",
"0.65046287",
"0.64957553",
"0.64957553",
"0.6457555",
"0.64497864... | 0.7498688 | 1 |
Returns the lognormal distribution fit of travel times. | def Hgal(Ux0P, iVRZ):
JRYC = CwDs.read_csv(Ux0P)
geh0 = fR_I.fit(JRYC[iVRZ])
k8wH.echo(geh0)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NrzQ(YKHO) -> float:\n ...",
"def QF3p(YKHO, nPrm):\n K_0T = oyIN.where(~oyIN.isnan(nPrm[:, YKHO.scope]).any(axis=1))[0]\n lOCB = oyIN.zeros(nPrm.shape[0])\n lOCB[K_0T] = eQSh.truncnorm.logpdf(nPrm[K_0T, YKHO.scope], **YKHO.params).reshape(-1)\n return lOCB.reshape(nPrm.shape[0], 1)",
"def Y... | [
"0.637446",
"0.6175009",
"0.6173609",
"0.6135916",
"0.61110616",
"0.61082125",
"0.60996246",
"0.6058286",
"0.6051728",
"0.6036483",
"0.60287875",
"0.60207",
"0.60207",
"0.60207",
"0.60207",
"0.60180324",
"0.60132164",
"0.5995018",
"0.5984548",
"0.5976156",
"0.5968038",
"0.5... | 0.55757713 | 69 |
Calculate overlap between two set of bboxes. If ``is_aligned`` is ``False``, then calculate the ious between each bbox of bboxes1 and bboxes2, otherwise the ious between each aligned pair of bboxes1 and bboxes2. | def oZg1(Bsc6, IUcw, Tuqy='iou', Y1UO=False):
assert Tuqy in ['iou', 'iof']
usx6 = Bsc6.size(0)
WfCS = IUcw.size(0)
if Y1UO:
assert usx6 == WfCS
if usx6 * WfCS == 0:
return Bsc6.new(usx6, 1) if Y1UO else Bsc6.new(usx6, WfCS)
if Y1UO:
D5g7 = ht2j.max(Bsc6[:, :2], IUcw[:, :... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oZg1(Bsc6, IUcw, Tuqy='iou', Y1UO=False):\n assert Tuqy in ['iou', 'iof']\n usx6 = Bsc6.size(0)\n WfCS = IUcw.size(0)\n if Y1UO:\n assert usx6 == WfCS\n if usx6 * WfCS == 0:\n return Bsc6.new(usx6, 1) if Y1UO else Bsc6.new(usx6, WfCS)\n if Y1UO:\n D5g7 = ht2j.max(Bsc6[:, ... | [
"0.79826146",
"0.7954379",
"0.79077524",
"0.78109914",
"0.75642914",
"0.7197906",
"0.68790495",
"0.68790495",
"0.67722076",
"0.6749298",
"0.66822326",
"0.66822326",
"0.66822326",
"0.66822326",
"0.66822326",
"0.66822326",
"0.66822326",
"0.66822326",
"0.6677335",
"0.66462195",
... | 0.7860611 | 3 |
Displays a form for creating an event | def aQ4S(QePW):
if QePW.method == 'POST':
L03z = CJbo(QePW.POST)
if L03z.is_valid():
pIVB = L03z.save(commit=False)
pIVB.user = QePW.user
pIVB.save()
return Yd7Q(gxEw('view-event', args=[pIVB.id]))
else:
L03z = CJbo()
return _1tc(QePW, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itF1():\n return TvZl('create-event.html')",
"def H2v5(QePW):\n if QePW.method == 'POST':\n L03z = pMxa(QePW.POST)\n if L03z.is_valid():\n L03z.save()\n return _1tc(QePW, 'webapp/createEvent.html', {'title': 'Create Event', 'message': 'Your Event Creation Page', 'yea... | [
"0.7888437",
"0.7507097",
"0.7488073",
"0.7381638",
"0.73643774",
"0.7331346",
"0.72556746",
"0.723576",
"0.71913177",
"0.71913177",
"0.7040692",
"0.6858992",
"0.6819993",
"0.6773469",
"0.67569125",
"0.6702892",
"0.6683151",
"0.665583",
"0.66152567",
"0.65768856",
"0.6525694"... | 0.7456828 | 3 |
Returns modules containing both the reaction and flow junction components for the mass action model | def RhPC(qEWt=ThDK):
return [OST3(Mkmy, XP5J, dUib(name=exwG, value={'R': 1, 'T': 1})) for exwG, Mkmy, XP5J in qEWt] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ixap(YKHO):\n return YKHO.exec_action('get_modules')",
"def lr6A(YKHO):\n return YKHO.exec_action('get_power_modules')",
"def KZ52(YKHO):\n return YKHO.blueprints",
"def VirX(qEWt=ThDK):\n return [OST3(Mkmy, XP5J, bVqZ.new(component='R_MM', name=exwG, library='Enzyme', value={'R': 1, 'T': 1})... | [
"0.62752146",
"0.6094048",
"0.5937763",
"0.59289974",
"0.58906275",
"0.5844652",
"0.58405846",
"0.58221436",
"0.570044",
"0.56955105",
"0.5691051",
"0.5681789",
"0.5676863",
"0.56168014",
"0.5588593",
"0.55822194",
"0.5562768",
"0.5509656",
"0.54799867",
"0.54799867",
"0.5471... | 0.5083597 | 68 |
Returns modules containing both the reaction and flow junction components for the MichaelisMenten model | def VirX(qEWt=ThDK):
return [OST3(Mkmy, XP5J, bVqZ.new(component='R_MM', name=exwG, library='Enzyme', value={'R': 1, 'T': 1})) for exwG, Mkmy, XP5J in qEWt] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NQLR(YKHO) -> klz3:\n return klz3(YKHO._modules, 'motor')",
"def ixap(YKHO):\n return YKHO.exec_action('get_modules')",
"def ixap(YKHO, ETfU=None):\n C3ST = YKHO._flow(ETfU)\n U5bT = U8Lr()\n for XC8X, AaVJ in C3ST.items():\n if len(AaVJ) == 1:\n U5bT[XC8X] = AaVJ[next(iter... | [
"0.60113275",
"0.59169877",
"0.58092505",
"0.5795954",
"0.5743658",
"0.56860733",
"0.5684925",
"0.5683716",
"0.5650217",
"0.56391686",
"0.5610642",
"0.55408853",
"0.5525142",
"0.5498638",
"0.54230344",
"0.5421986",
"0.5421986",
"0.540497",
"0.5401089",
"0.53914356",
"0.536954... | 0.591807 | 1 |
Returns Kx if species is dynamic, and exp(mu/RT) if the species is static | def MGcI(C3ST, oMqC, gkSI):
if oMqC in gkSI.keys():
return C3ST.dynamic_species_parameters[oMqC] * gkSI[oMqC]
else:
return oyIN.exp(C3ST.chemostat_parameters[oMqC]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B39D(YKHO, *qIxc):\n return gQS9.sys_dynamic_Kex(YKHO, *qIxc)",
"def lWBu(YKHO, WKvO, yGTL, SRYB):\n yGTL = yGTL.expand(WKvO.size(0), YKHO.n_components, YKHO.n_features)\n SRYB = SRYB.expand(WKvO.size(0), YKHO.n_components, YKHO.n_features)\n w520 = ht2j.exp(-0.5 * ht2j.sum((WKvO - yGTL) * (WKvO ... | [
"0.60610336",
"0.59855926",
"0.5748467",
"0.5588866",
"0.55805045",
"0.5526232",
"0.54742205",
"0.54716843",
"0.5420654",
"0.54097277",
"0.5386486",
"0.5384165",
"0.5350262",
"0.53361785",
"0.53209704",
"0.53162634",
"0.5312927",
"0.5298361",
"0.5297947",
"0.52881306",
"0.528... | 0.6525117 | 0 |
Attach a text label above each bar in rects. | def C3nu(aNZO, j8aQ, UXqs):
for mawX in j8aQ:
H2v2 = mawX.get_height()
aNZO.annotate(UXqs, xy=(mawX.get_x() + mawX.get_width() / 2, H2v2), xytext=(0, -2), textcoords='offset points', ha='center', va='bottom') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H_qq(j8aQ, aNZO):\n for mawX in j8aQ:\n H2v2 = mawX.get_height()\n aNZO.text(mawX.get_x() + mawX.get_width() / 2.0, 1.05 * H2v2, '%d' % int(H2v2), ha='center', va='bottom')",
"def siQ4(j8aQ, aNZO):\n for mawX in j8aQ:\n H2v2 = mawX.get_height()\n aNZO.annotate('{}'.format(H2... | [
"0.8092262",
"0.80505764",
"0.80499625",
"0.8034492",
"0.8010856",
"0.8010856",
"0.79740447",
"0.7941176",
"0.79285485",
"0.7924813",
"0.7919891",
"0.7919891",
"0.7903248",
"0.788542",
"0.7879761",
"0.78757644",
"0.78757644",
"0.786676",
"0.78641886",
"0.7858571",
"0.78568506... | 0.0 | -1 |
Initializes the data to extract from, as well as a list of existing artifact sets to reduce redundancy. | def FIMM(YKHO, bD7m):
B2Dn = G4JS.get(bD7m)
nUCy = rKuS(B2Dn.content, 'html5lib')
tSEj = nUCy.find_all('table', class_='art_stat_table_new')
YKHO._artifact_list = []
for tyNF in tSEj:
tyNF = tyNF.find_all('tr')
tyNF.pop(0)
YKHO._artifact_list += tyNF
YKHO._artifact_csv = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO, G_if: dict):\n pass",
"def vPDf(YKHO):\n YKHO.get_projects()\n YKHO.get_asset_types()",
"def FIMM(YKHO) -> None:\n YKHO.all_sets_dict = {}\n Z009 = YKHO.get_files_to_build(Cafo().get_all_compiled_file_names())\n YKHO.iterate_all_sets(Z009)",
"def eCGt(YKHO) -> l1oh:\n YKHO... | [
"0.70190144",
"0.6802684",
"0.65121216",
"0.62498516",
"0.6152681",
"0.6101528",
"0.60543823",
"0.6052934",
"0.60521674",
"0.605089",
"0.60506696",
"0.6040777",
"0.60299027",
"0.60045487",
"0.599898",
"0.59750444",
"0.596778",
"0.5961601",
"0.5910775",
"0.5898575",
"0.5887149... | 0.6299976 | 3 |
Denormalize tensor images with mean and standard deviation. | def eHCS(Yw_3, JBMS=(0.0, 0.0, 0.0), M1Jx=(1.0, 1.0, 1.0)):
Yw_3 = Yw_3.cpu().numpy()
Yw_3 = Yw_3.transpose((0, 2, 3, 1))
Yw_3 *= M1Jx
Yw_3 += JBMS
Yw_3 *= 255.0
Yw_3 = Yw_3.transpose((0, 3, 1, 2))
return ht2j.tensor(Yw_3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bcW2(VXjJ, JBMS, M1Jx):\n return VXjJ * M1Jx + JBMS",
"def bcW2(vhpA, JBMS, M1Jx):\n if not SG3O(vhpA):\n raise TypeError('tensor is not a torch image.')\n for a1PO, r8hN, KCHu in zip(vhpA, JBMS, M1Jx):\n a1PO.mul_(KCHu).add_(r8hN)\n return vhpA",
"def bcW2(Xn71, JBMS, M1Jx):\n ... | [
"0.8399504",
"0.8273578",
"0.8133355",
"0.80957335",
"0.7986444",
"0.7952414",
"0.7615525",
"0.73790437",
"0.73681194",
"0.73555726",
"0.7332132",
"0.7326103",
"0.7269883",
"0.7258239",
"0.72207415",
"0.72065854",
"0.7140466",
"0.71275395",
"0.7098354",
"0.70970696",
"0.70753... | 0.8074268 | 4 |
Tests login form in case when it is a valid existing user. | def Ovr9(YKHO):
Aofo = YKHO.client.get('/login-validation', query_string={'twitter_handle': 'NuBaby', 'password': 'clown eyes'}, follow_redirects=True)
YKHO.assertIn('Welcome back! You are logged in.', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3WT(YKHO):\n L03z = Eo6a({'username': YKHO.username, 'password': YKHO.password})\n YKHO.assertTrue(L03z.is_valid)",
"def kyNp(YKHO):\n hGN5 = {'username': K836.username, 'password': K836.password}\n L03z = Eo6a(data=hGN5)\n YKHO.assertTrue(L03z.is_valid())",
"def s4KG(YKHO):\n L03z = Eo6... | [
"0.81906545",
"0.79929864",
"0.7990796",
"0.7834739",
"0.78287643",
"0.7811745",
"0.77355653",
"0.7682227",
"0.76791024",
"0.7642661",
"0.762343",
"0.76117074",
"0.760844",
"0.76058674",
"0.75933725",
"0.7582229",
"0.7562696",
"0.7554376",
"0.7553295",
"0.7549996",
"0.7542892... | 0.7532388 | 22 |
Tests login form in case when it is not a valid existing user. | def immb(YKHO):
Aofo = YKHO.client.get('/login-validation', query_string={'twitter_handle': 'HannahSchafer18', 'password': 'hello'}, follow_redirects=True)
YKHO.assertIn('Twitter handle and password do not match. Please try again.', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3WT(YKHO):\n L03z = Eo6a({'username': YKHO.username, 'password': YKHO.password})\n YKHO.assertTrue(L03z.is_valid)",
"def DCEP(YKHO):\n L03z = Eo6a(username='', password='wrong_password')\n YKHO.assertFalse(L03z.validate())",
"def kyNp(YKHO):\n hGN5 = {'username': K836.username, 'password': ... | [
"0.8023682",
"0.8002233",
"0.7846813",
"0.7838246",
"0.7824833",
"0.7810621",
"0.77907044",
"0.7787395",
"0.77866447",
"0.7779009",
"0.7722922",
"0.7719573",
"0.7714382",
"0.7706823",
"0.76742786",
"0.7657339",
"0.76399976",
"0.7639785",
"0.7630815",
"0.7617608",
"0.7617217",... | 0.7240791 | 83 |
Tests login form in case when it is not a valid existing user. | def S9cQ(YKHO):
Aofo = YKHO.client.get('/login-validation', data={'twitter_handle': 'Mary33', 'password': 'password'}, follow_redirects=True)
YKHO.assertIn('Twitter handle and password do not match. Please try again.', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3WT(YKHO):\n L03z = Eo6a({'username': YKHO.username, 'password': YKHO.password})\n YKHO.assertTrue(L03z.is_valid)",
"def DCEP(YKHO):\n L03z = Eo6a(username='', password='wrong_password')\n YKHO.assertFalse(L03z.validate())",
"def kyNp(YKHO):\n hGN5 = {'username': K836.username, 'password': ... | [
"0.80253005",
"0.80016273",
"0.78477424",
"0.7839732",
"0.7825129",
"0.78110904",
"0.77913475",
"0.77878755",
"0.778696",
"0.778083",
"0.7724494",
"0.77190274",
"0.7715232",
"0.770781",
"0.76752317",
"0.765901",
"0.76413596",
"0.764093",
"0.76321",
"0.76188517",
"0.7617656",
... | 0.0 | -1 |
Validate name for topic. | def fUbN(mWFP):
BcCR = 249
Reas = ZbWC.match('^[[A-Za-z\\d\\.\\-\\_]+$', mWFP)
if Reas:
Reas = Reas.group(0)
if not Reas or len(Reas) > BcCR:
tO9_ = 'Invalid name for topic %s. Valid characters are: a-z, A-Z, 0-9, ".","-","_" and a max-length of %s characters.' % (mWFP, BcCR)
X3V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EPxk(rlUa):\n rlUa = FFRE(rlUa, Rl66, Jtu_)\n return rlUa",
"def OYkL(rlUa):\n return '/' not in rlUa",
"def gqdk(YKHO, O7Jy: str) -> None:\n if not O7Jy in YKHO.categorized_skills:\n raise BfDw.ValidationError(\"Topic name '%s' is not added.\" % O7Jy)",
"def fUbN(mWFP):\n return eN... | [
"0.76144475",
"0.7466068",
"0.7125969",
"0.7074671",
"0.7056819",
"0.7037268",
"0.7033378",
"0.6988686",
"0.6957935",
"0.6928676",
"0.69181037",
"0.6914138",
"0.68970096",
"0.68696976",
"0.6863142",
"0.6860608",
"0.68113405",
"0.67865705",
"0.67850417",
"0.67330027",
"0.66930... | 0.846868 | 0 |
Validate delete_retention_ms and convert to ms. | def oWiF(gGzV):
T0fJ(gGzV, 'delete_retention_ms') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mlYd(Xcai):\n if Xcai == '-1':\n return Xcai\n T0fJ(Xcai, 'retention_ms')",
"def BAa7(kwhH):\n T0fJ(kwhH, 'file_delete_delay_ms')",
"def zLn7(YSMY):\n if YSMY == '-1':\n return YSMY\n sN9l(YSMY, 'retention_bytes')",
"def bjXa(YKHO) -> h8nf[float]:\n return qe4Y.get(YKHO, '... | [
"0.78302944",
"0.6681866",
"0.6409476",
"0.610112",
"0.5701357",
"0.5576349",
"0.55302006",
"0.54983175",
"0.54983175",
"0.54873407",
"0.54665774",
"0.54220104",
"0.5410103",
"0.53730077",
"0.53730077",
"0.53730077",
"0.53730077",
"0.53727806",
"0.5370597",
"0.53565884",
"0.5... | 0.8906937 | 0 |
Validate retention_ms. If 1, return string, else convert to ms. | def mlYd(Xcai):
if Xcai == '-1':
return Xcai
T0fJ(Xcai, 'retention_ms') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oWiF(gGzV):\n T0fJ(gGzV, 'delete_retention_ms')",
"def oC4a(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'retention')",
"def oC4a(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'retention')",
"def zLn7(YSMY):\n if YSMY == '-1':\n return YSMY\n sN9l(YSMY, 'retenti... | [
"0.71967304",
"0.6443237",
"0.6443237",
"0.6397076",
"0.6317931",
"0.6285432",
"0.6239785",
"0.62261206",
"0.6154615",
"0.61295366",
"0.61295366",
"0.6125618",
"0.6112117",
"0.60985553",
"0.60985553",
"0.5955731",
"0.5954278",
"0.5954278",
"0.5954278",
"0.5954278",
"0.5954278... | 0.82705307 | 0 |
compute a (isometric) rational quadratic kernel | def sadD(WKvO, fsgT, NArs, RXyG=False):
aiEk = KydA.cdist(WKvO, fsgT) ** 2
p06G = 1 + aiEk / (2.0 * NArs['alpha'] * NArs['ell2'])
nMvt = p06G ** (-NArs['alpha'])
if RXyG:
Ro40 = dict()
Ro40['s2'] = nMvt
Ro40['ell2'] = -NArs['s2'] * p06G ** (-NArs['alpha'] - 1) / (2 * NArs['ell2']... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def osGS(WKvO: np.array, LVAh: np.array, WTkW: float, Cwt5: float, vC9B: float):\n j4Xr = oyIN.array(WKvO).reshape(-1, 1)\n WCIa = oyIN.array(LVAh).reshape(-1, 1)\n O3zj = oyIN.sum(j4Xr ** 2, 1).reshape(-1, 1) + oyIN.sum(WCIa ** 2, 1) - 2 * oyIN.dot(j4Xr, WCIa.T)\n return WTkW ** 2 * (1 + O3zj / (2 * C... | [
"0.7156706",
"0.6445121",
"0.63864493",
"0.60716397",
"0.6063122",
"0.60441196",
"0.6034239",
"0.599659",
"0.5984505",
"0.59531075",
"0.5951582",
"0.5930341",
"0.59266406",
"0.5924203",
"0.59179753",
"0.5895151",
"0.5871801",
"0.5842604",
"0.5841443",
"0.58347136",
"0.5812954... | 0.0 | -1 |
Add an equation to this equation set and return this | def H2v5(YKHO, pmsH):
YKHO.eqns.add(pmsH)
YKHO.vars |= pmsH.vars
YKHO.all_vars |= pmsH.all_vars
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, BZ29):\n YKHO.equations.append(BZ29)",
"def eEDL(YKHO, tTpl: Equation) -> None:\n YKHO.equations.append(tTpl)",
"def RcE0(YKHO, pmsH):\n H5ew = pmsH.LeftHandSide\n YKHO.Equations[H5ew] = pmsH",
"def XuRR(ZBU0, lkdK):\n return cf81(ZBU0.lhs + lkdK.lhs, ZBU0.rhs + lkdK.rhs)",
"d... | [
"0.79528564",
"0.743805",
"0.72189426",
"0.67107445",
"0.66108775",
"0.6589913",
"0.6514632",
"0.64883834",
"0.6399819",
"0.6315268",
"0.6159432",
"0.60533506",
"0.6005246",
"0.59771746",
"0.5923243",
"0.5892706",
"0.58134407",
"0.57855076",
"0.57722",
"0.57682985",
"0.572135... | 0.63828075 | 9 |
Copy the equations and vars of this set to a new set | def jth9(YKHO):
ELsB = cjv0()
ELsB.eqns = YKHO.eqns.copy()
ELsB.vars = YKHO.vars.copy()
ELsB.all_vars = YKHO.all_vars.copy()
return ELsB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n jo4a = _Qb8.copy(YKHO)\n jo4a.cuts = YKHO.cuts\n jo4a.presolve = YKHO.presolve\n jo4a.dual = YKHO.dual\n jo4a.strong = YKHO.strong\n return jo4a",
"def jth9(YKHO):\n if nReo._pcheck:\n YKHO._check_paramvec()\n bT8H = nReo()\n bT8H.preps = YKHO.preps.copy(bT8H)\... | [
"0.6669519",
"0.65803355",
"0.6208777",
"0.61913764",
"0.60914767",
"0.60897624",
"0.59814304",
"0.5944703",
"0.5893403",
"0.58814675",
"0.5879162",
"0.58695406",
"0.58437335",
"0.57799065",
"0.57725185",
"0.5766925",
"0.57541853",
"0.57541853",
"0.57494926",
"0.57455325",
"0... | 0.7237004 | 0 |
Return DataLoader for train/dev/test and subtask_list | def ar53(tvqc, pRDN, b0j5, Ep8u=8, iusU=0.6, X6jG=0.15, Fdhg=True, I7Gy=0, ekcJ=[]):
k6Be = Hy7s.path.join(PtXs.DATA_FOLDER, f'{tvqc}-preprocessed-data.pkl')
print(f"File {k6Be} doesn't exist, generating...")
gjtf(tvqc)
yZKv, ggdL = NLMt(k6Be)
if ekcJ:
Nneu = []
print('Processing Inp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SELc(YKHO):\n ypXH, I7Gy = (YKHO.io_params['batch_size'], YKHO.io_params['num_workers'])\n Pa1c = pVAc(YKHO.train_dset, batch_size=ypXH, shuffle=True, num_workers=I7Gy)\n fC9l = pVAc(YKHO.val_dset, batch_size=ypXH, shuffle=False, num_workers=I7Gy)\n YKHO.train_steps = len(YKHO.train_dset)\n retu... | [
"0.76237863",
"0.75691986",
"0.747804",
"0.74646366",
"0.7398742",
"0.73520786",
"0.73241377",
"0.7323791",
"0.7318392",
"0.73028123",
"0.7266176",
"0.725747",
"0.72556317",
"0.7251804",
"0.72422236",
"0.7237774",
"0.7234456",
"0.7201936",
"0.72000086",
"0.71756506",
"0.71711... | 0.0 | -1 |
Return DataLoader for train/dev/test and subtask_list | def ok_I(tvqc, pRDN, b0j5, Ep8u=8, iusU=0.6, X6jG=0.15, Fdhg=True, I7Gy=0, ekcJ=[]):
k6Be = Hy7s.path.join(PtXs.NEW_DATA_FOLDER, f'{tvqc}-preprocessed-data.pkl')
print(f"File {k6Be} doesn't exist, generating...")
gjtf(tvqc)
yZKv, ggdL = NLMt(k6Be)
if ekcJ:
Nneu = []
print('Processing... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SELc(YKHO):\n ypXH, I7Gy = (YKHO.io_params['batch_size'], YKHO.io_params['num_workers'])\n Pa1c = pVAc(YKHO.train_dset, batch_size=ypXH, shuffle=True, num_workers=I7Gy)\n fC9l = pVAc(YKHO.val_dset, batch_size=ypXH, shuffle=False, num_workers=I7Gy)\n YKHO.train_steps = len(YKHO.train_dset)\n retu... | [
"0.76237863",
"0.75691986",
"0.747804",
"0.74646366",
"0.7398742",
"0.73520786",
"0.73241377",
"0.7323791",
"0.7318392",
"0.73028123",
"0.7266176",
"0.725747",
"0.72556317",
"0.7251804",
"0.72422236",
"0.7237774",
"0.7234456",
"0.7201936",
"0.72000086",
"0.71756506",
"0.71711... | 0.0 | -1 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, T8BH):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
This function will subtract the passed int from the Monster's health, return health. If health is <=0, set status to 'K.O.'d' | def qXxR(YKHO):
if YKHO.health <= 0:
YKHO.status = "K.O.'d"
else:
return YKHO.health
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XW3M(YKHO):\n if YKHO.health > 0:\n YKHO.health -= 1",
"def Ehpv(YKHO, wEf2: int) -> None:\n if wEf2 <= 0:\n YKHO.health = 0\n elif wEf2 >= 100:\n YKHO.health = 100\n else:\n YKHO.health = wEf2",
"def Ehpv(YKHO, WKvO):\n YKHO._health = YKHO._health + YKHO.defence ... | [
"0.69192404",
"0.66698205",
"0.6587031",
"0.6527352",
"0.65234095",
"0.6510943",
"0.6503306",
"0.6466802",
"0.64582586",
"0.6425323",
"0.6412834",
"0.64065737",
"0.63880146",
"0.6321278",
"0.6260502",
"0.625234",
"0.6246923",
"0.624633",
"0.6240406",
"0.6174945",
"0.616804",
... | 0.73389703 | 0 |
Get OIDC Configuration Get the OIDC configuration. Looker can be optionally configured to authenticate users against an OpenID Connect (OIDC) authentication server. OIDC setup requires coordination with an administrator of that server. Only Looker administrators can read and update the OIDC configuration. Configuring O... | def ZUuF(YKHO, **B2fa):
B2fa['_return_http_data_only'] = True
if B2fa.get('callback'):
return YKHO.oidc_config_with_http_info(**B2fa)
else:
nPrm = YKHO.oidc_config_with_http_info(**B2fa)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WsqR(YKHO, **B2fa):\n HhGF = []\n HhGF.append('callback')\n HhGF.append('_return_http_data_only')\n HhGF.append('_preload_content')\n HhGF.append('_request_timeout')\n NArs = locals()\n for H5ew, wEf2 in BVGD(NArs['kwargs']):\n if H5ew not in HhGF:\n raise TypeError(\"Got... | [
"0.65894043",
"0.6087371",
"0.60277987",
"0.57140815",
"0.5713041",
"0.5658421",
"0.5581164",
"0.55591565",
"0.5542582",
"0.55425763",
"0.55293334",
"0.5473032",
"0.54487",
"0.5415459",
"0.53569865",
"0.53147537",
"0.529318",
"0.52865237",
"0.5260462",
"0.5251452",
"0.5251338... | 0.78968316 | 0 |
Get OIDC Configuration Get the OIDC configuration. Looker can be optionally configured to authenticate users against an OpenID Connect (OIDC) authentication server. OIDC setup requires coordination with an administrator of that server. Only Looker administrators can read and update the OIDC configuration. Configuring O... | def WsqR(YKHO, **B2fa):
HhGF = []
HhGF.append('callback')
HhGF.append('_return_http_data_only')
HhGF.append('_preload_content')
HhGF.append('_request_timeout')
NArs = locals()
for H5ew, wEf2 in BVGD(NArs['kwargs']):
if H5ew not in HhGF:
raise TypeError("Got an unexpected ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZUuF(YKHO, **B2fa):\n B2fa['_return_http_data_only'] = True\n if B2fa.get('callback'):\n return YKHO.oidc_config_with_http_info(**B2fa)\n else:\n nPrm = YKHO.oidc_config_with_http_info(**B2fa)\n return nPrm",
"def zChi(YKHO) -> qe4Y.Output[h8nf['outputs.FhirServiceAcrConfigurati... | [
"0.78968316",
"0.6087371",
"0.60277987",
"0.57140815",
"0.5713041",
"0.5658421",
"0.5581164",
"0.55591565",
"0.5542582",
"0.55425763",
"0.55293334",
"0.5473032",
"0.54487",
"0.5415459",
"0.53569865",
"0.53147537",
"0.529318",
"0.52865237",
"0.5260462",
"0.5251452",
"0.5251338... | 0.65894043 | 1 |
Returns the title of this search result. This is given high priority in search result ranking. You can access the title of the search result as `result.title` in your search results. The default implementation returns `unicode(obj)`. | def Upwb(YKHO, GQfX: Course):
return f'{GQfX.norwegian_name} {GQfX.english_name} {GQfX.code}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leAC(YKHO, YEnM):\n return bGrB(\"Results of the search for '%s'\") % YEnM",
"def Upwb(YKHO, YEnM):\n return e0D3(YEnM)[:1000]",
"def jRlR(YKHO):\n return YKHO.searchedTitle",
"def Upwb(YKHO):\n if hasattr(YKHO.object, 'get_title'):\n return YKHO.object.get_title()\n else:\n ... | [
"0.8006614",
"0.7282379",
"0.71076465",
"0.7051703",
"0.6980636",
"0.6921673",
"0.6878444",
"0.6859473",
"0.6859473",
"0.6859473",
"0.6853316",
"0.6839017",
"0.68332165",
"0.68332165",
"0.68098456",
"0.6809404",
"0.68089557",
"0.68089557",
"0.68089557",
"0.68089557",
"0.68071... | 0.0 | -1 |
Returns the description of this search result. This is given medium priority in search result ranking. You can access the description of the search result as `result.description` in your search results. Since this should contains a short description of the search result, it's excellent for providing a summary in your s... | def t5do(YKHO, GQfX: Course):
return f'{' '.join(GQfX.tags.all().values_list('tag', flat=True))}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CIby(YKHO) -> str:\n return qe4Y.get(YKHO, 'detailed_description')",
"def C2Ej(YKHO, m6Me):\n return m6Me.find('p', attrs={'class': 't-SearchResults-desc'}).text.strip()",
"def JBZA(YKHO) -> str:\n return str(YKHO._json_dict['description'])",
"def JBZA(YKHO) -> str:\n return str(YKHO._json_di... | [
"0.6910912",
"0.6872356",
"0.68664646",
"0.68664646",
"0.68664646",
"0.68664646",
"0.6856964",
"0.6810949",
"0.68057734",
"0.6798959",
"0.6773446",
"0.6772391",
"0.6772391",
"0.6772391",
"0.6772391",
"0.6772391",
"0.6772391",
"0.6772391",
"0.6772391",
"0.6772391",
"0.6772391"... | 0.0 | -1 |
Rendering header/heading tags like ```` ````. | def WBPg(YKHO, l5Ny, ABDL, m6Me=None):
if ABDL <= 6:
zNig = 8 - ABDL
else:
zNig = ABDL
return '\n[b][size=%d]%s[/size][/b]\n\n' % (zNig, l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WBPg(YKHO, l5Ny, ABDL):\n return '<h{0}>{1}</h{0}>'.format(ABDL, l5Ny)",
"def pUr2(WBPg):\n WbvV = f'\\n <div style = \"background.color:#070E44; padding:8px\">\\n <h4 style = \"color:white;text_align:center;\"> {WBPg} </h5>\\n </div>\\n '\n aevO.markdown(WbvV, unsafe_allow_html=True)",
... | [
"0.78449696",
"0.77061474",
"0.76297057",
"0.74081194",
"0.7319774",
"0.72011715",
"0.7160485",
"0.70706034",
"0.7048507",
"0.7005592",
"0.69588023",
"0.69408673",
"0.6936556",
"0.69335",
"0.691608",
"0.68898195",
"0.68725234",
"0.6832642",
"0.6808529",
"0.67934763",
"0.67722... | 0.61804307 | 97 |
Rendering header/heading tags like ```` ````. | def WBPg(YKHO, l5Ny, ABDL, m6Me=None):
return '<h%d>%s</h%d>\n' % (ABDL, l5Ny, ABDL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WBPg(YKHO, l5Ny, ABDL):\n return '<h{0}>{1}</h{0}>'.format(ABDL, l5Ny)",
"def pUr2(WBPg):\n WbvV = f'\\n <div style = \"background.color:#070E44; padding:8px\">\\n <h4 style = \"color:white;text_align:center;\"> {WBPg} </h5>\\n </div>\\n '\n aevO.markdown(WbvV, unsafe_allow_html=True)",
... | [
"0.78449696",
"0.77061474",
"0.76297057",
"0.7319774",
"0.72011715",
"0.7160485",
"0.70706034",
"0.7048507",
"0.7005592",
"0.69588023",
"0.69408673",
"0.6936556",
"0.69335",
"0.691608",
"0.68898195",
"0.68725234",
"0.6832642",
"0.6808529",
"0.67934763",
"0.67722136",
"0.67705... | 0.74081194 | 3 |
Return inverse of quaternion. >>> q0 = random_quaternion() >>> q1 = quaternion_inverse(q0) >>> numpy.allclose(quaternion_multiply(q0, q1), [0, 0, 0, 1]) True | def OspE(slpS):
return nUbj(slpS) / XTiz.dot(slpS, slpS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GOZd(YKHO):\n return R5H8(ZylS.convert_to_tensor(YKHO.conjugate()) / YKHO.norm())",
"def GOZd(YKHO):\n Iste = a6Uk(YKHO.quat)\n hqzS = nTr0(Iste, -YKHO.tvec)\n return JeT1(Iste, hqzS)",
"def MmM9(vexM):\n nzPj = ZiL3(vexM)\n cojy = P9RU(vexM)\n a6Uk = nzPj * (1.0 / cojy)\n return a6... | [
"0.7615416",
"0.76047266",
"0.741302",
"0.7256754",
"0.7163109",
"0.7016188",
"0.6796417",
"0.67878985",
"0.6775097",
"0.6731029",
"0.6730248",
"0.6710986",
"0.6707684",
"0.6697231",
"0.6584411",
"0.6553068",
"0.6545856",
"0.6537119",
"0.6517274",
"0.650615",
"0.64658433",
... | 0.8181592 | 0 |
Return multiplication of two quaternions. >>> q = quaternion_multiply([1, 2, 3, 4], [5, 6, 7, 8]) >>> numpy.allclose(q, [44, 14, 48, 28]) True | def xJNR(wFKU, YUAR):
nJ9F, nxyw, cflT, PKKQ = YUAR
o4D3, si3g, Rtnc, s1k6 = wFKU
return XTiz.array((o4D3 * PKKQ + si3g * cflT - Rtnc * nxyw + s1k6 * nJ9F, -o4D3 * cflT + si3g * PKKQ + Rtnc * nJ9F + s1k6 * nxyw, o4D3 * nxyw - si3g * nJ9F + Rtnc * PKKQ + s1k6 * cflT, -o4D3 * nJ9F - si3g * nxyw - Rtnc * cflT ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JS0g(q55v, o8JV):\n g53b = oyIN.zeros([4], dtype='float')\n voT3.functions.mju_mulQuat(g53b, q55v, o8JV)\n return g53b",
"def wTxu(q55v, o8JV):\n dg7v, o4D3, si3g, Rtnc = q55v.get_coord()\n iYf1, ajwV, skBL, mPai = o8JV.get_coord()\n NsEr = dg7v * iYf1 - o4D3 * ajwV - si3g * skBL - Rtnc * m... | [
"0.79312485",
"0.75314426",
"0.7270564",
"0.7253186",
"0.7243736",
"0.71592814",
"0.7090708",
"0.70357627",
"0.7010739",
"0.6989904",
"0.6856578",
"0.67327565",
"0.6643429",
"0.6629327",
"0.6628006",
"0.6617781",
"0.6607194",
"0.6605113",
"0.6583605",
"0.65601957",
"0.6437589... | 0.708198 | 7 |
Mean average precision at differnet intersection over union (IoU) threshold | def anAh(Jgew, lCkR, cCrA, Nhxk=[0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75]):
if len(Jgew) == 0 and len(lCkR) == 0:
return None
if len(lCkR):
assert len(cCrA) == len(lCkR), 'boxes_pred and scores should be same length'
lCkR = lCkR[oyIN.argsort(cCrA)[::-1], :]
ztz0 = 0
for a1PO i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DM5Z(cCrA):\n RjuK = 0\n for p1kx in cCrA:\n RjuK += p1kx.get_iou()\n if len(cCrA) < 1:\n return 0\n return RjuK / len(cCrA)",
"def bXo5(cii7, HpDL, gwAu, MSQN=[0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95]):\n RjuK = VPYF(cii7, HpDL, gwAu)\n Mkze = (MSQN < RjuK).sum(... | [
"0.73707867",
"0.7118525",
"0.69718075",
"0.6911448",
"0.68715173",
"0.6868311",
"0.6770444",
"0.6769803",
"0.66887194",
"0.66521096",
"0.6633025",
"0.66276795",
"0.6606202",
"0.6592455",
"0.6590352",
"0.6561344",
"0.6560472",
"0.6560472",
"0.6481666",
"0.6456031",
"0.6415096... | 0.0 | -1 |
Initialize comparison of hotspots | def IHFj(rGM6, zXTW):
l6PG = 'static/maps/' + rGM6 + '/' + jV_q(rGM6)[0]
AP7X = 'static/maps/' + zXTW + '/' + jV_q(zXTW)[0]
TMNl = CwDs.read_csv(l6PG, usecols=['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'], encoding='utf-8').values
k9PW = CwDs.read_csv(AP7X, usecols=['Mon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.neighbors = []\n YKHO.positions = []\n YKHO.velocities = []\n YKHO.lowest = YRA8.inf()\n YKHO.highest = -YRA8.inf()\n YKHO.buckets = {}\n YKHO.bucket_size = 10\n YKHO.count = 0",
"def CcxX(YKHO):\n W4Pc = 10\n b8rX = 3\n q8Le = []\n gL9H = []\n CaQY =... | [
"0.618399",
"0.57719624",
"0.5748398",
"0.5727203",
"0.5711845",
"0.5663549",
"0.56207067",
"0.55757403",
"0.55319625",
"0.54623216",
"0.54561514",
"0.54523855",
"0.545195",
"0.5409973",
"0.54091406",
"0.5407327",
"0.5406469",
"0.5393367",
"0.5380091",
"0.535428",
"0.5345721"... | 0.6290887 | 0 |
Returns distance from origin to self | def u54L(YKHO):
return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + ... | [
"0.8769575",
"0.8769575",
"0.87576187",
"0.8755684",
"0.8748839",
"0.8748839",
"0.8748839",
"0.8748839",
"0.8748839",
"0.8748839",
"0.8748839",
"0.8748839",
"0.8573481",
"0.8488973",
"0.8457009",
"0.8091914",
"0.7819217",
"0.7774916",
"0.7765334",
"0.77622",
"0.7761765",
"0... | 0.0 | -1 |
Return a full copy of this point. | def jth9(YKHO):
return PvyL(YKHO.x, YKHO.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return PvyL(YKHO.x, YKHO.y)",
"def jth9(YKHO):\n return PvyL(YKHO.x, YKHO.y, YKHO.curve)",
"def jth9(YKHO):\n return PvyL(YKHO.x, YKHO.y, YKHO.curve)",
"def jth9(YKHO):\n return PvyL(**YKHO)",
"def i3ak(YKHO):\n return PvyL(YKHO.x, YKHO.y)",
"def i3ak(YKHO):\n return P... | [
"0.8568994",
"0.83102095",
"0.83102095",
"0.8257336",
"0.81524336",
"0.81524336",
"0.81524336",
"0.81464714",
"0.7819479",
"0.77583927",
"0.75868666",
"0.7546118",
"0.7385928",
"0.7353068",
"0.72186226",
"0.71545357",
"0.7098437",
"0.70811963",
"0.70331806",
"0.6980318",
"0.6... | 0.85558325 | 1 |
Convert coordinate values to integers. | def UnH3(YKHO):
YKHO.x = int(YKHO.x)
YKHO.y = int(YKHO.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZwuY(YKHO):\n YKHO.x = int(YKHO.x)\n YKHO.y = int(YKHO.y)",
"def ZwuY(YKHO):\n YKHO.x = int(YKHO.x)\n YKHO.y = int(YKHO.y)",
"def ZwuY(YKHO):\n YKHO.x = int(YKHO.x)\n YKHO.y = int(YKHO.y)",
"def ZwuY(YKHO):\n YKHO.x = int(YKHO.x)\n YKHO.y = int(YKHO.y)",
"def xSyY(W0Eb):\n W0... | [
"0.75427866",
"0.7495851",
"0.7495851",
"0.7495851",
"0.7406259",
"0.6935346",
"0.6779961",
"0.6638523",
"0.638662",
"0.6357891",
"0.6328062",
"0.62995315",
"0.6281991",
"0.6263388",
"0.6259419",
"0.62398666",
"0.62006354",
"0.6195398",
"0.61671",
"0.6119263",
"0.6118208",
... | 0.7804812 | 0 |
Creates a new Alarm and returns it. | def eLpg(YKHO, kr8D, xSC3=None, m6Me=False, **PK7a):
bD7m = YKHO.create.metadata['url']
AmXR = {}
Y3bP = {}
Y3bP['Accept'] = 'application/json'
Y3bP['Content-Type'] = 'application/json; charset=utf-8'
if xSC3:
Y3bP.update(xSC3)
WNKs = YKHO._serialize.body(kr8D, 'NewAlarmModel')
Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S_VK(IOKn):\n raise NotImplementedError('Alarms not implemented')",
"def eLpg(YKHO, OaeV, **B2fa):\n YKHO.ok_actions = B2fa.get(BhpN, [])\n YKHO.alarm_actions = B2fa.get(SJt4, [])\n YKHO.insufficient_data_actions = B2fa.get(sb9Y, [])\n bKqw = YKHO.namespace + '_rule'\n gkFw = dict(((G1Hx, T... | [
"0.7962789",
"0.6602608",
"0.65459114",
"0.63119644",
"0.6094312",
"0.6076325",
"0.60556394",
"0.5857351",
"0.58381927",
"0.57816404",
"0.57669693",
"0.5755891",
"0.573526",
"0.57340467",
"0.5733735",
"0.56825835",
"0.56629676",
"0.5646444",
"0.5599078",
"0.55897135",
"0.5533... | 0.67368704 | 1 |
Returns all Alarms which fit the filter criteria supplied. All filter parameters are optional. Alarms will be ordered and paged as requested. | def GKJL(YKHO, mWFP=None, QTBn=None, DeLa=None, _iMd=None, EdbX=None, xSC3=None, m6Me=False, **PK7a):
bD7m = YKHO.retrieve.metadata['url']
AmXR = {}
if mWFP is not None:
AmXR['name'] = YKHO._serialize.query('name', mWFP, 'str')
if QTBn is not None:
AmXR['state'] = YKHO._serialize.query('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mUVL(YKHO, Wp7L=None, Tsue=None, qoqK=None):\n return YKHO._retrieve_data(Wp7L, Tsue, qoqK, FYrf.Alarm)",
"def mUVL(YKHO, Wp7L=None, Tsue=None, qoqK=None):\n return YKHO._retrieve_data(Wp7L, Tsue, qoqK, FYrf.Alarm)",
"def b_xr(YKHO, SNex, fHUa, Evnb=False):\n SNex = EuF3(alist=[jzdc for jzdc in SN... | [
"0.72993726",
"0.72993726",
"0.72216004",
"0.70632315",
"0.6483028",
"0.6443803",
"0.64372337",
"0.64124745",
"0.6408506",
"0.6352765",
"0.63294774",
"0.6275375",
"0.62378585",
"0.6234835",
"0.6202004",
"0.61877155",
"0.6185246",
"0.6184885",
"0.6181456",
"0.61108255",
"0.606... | 0.0 | -1 |
Returns the Description property for the Alarm with the Id provided. | def F1Yt(YKHO, id, xSC3=None, m6Me=False, **PK7a):
bD7m = YKHO.retrieve_description.metadata['url']
wiSa = {'id': YKHO._serialize.url('id', id, 'str')}
bD7m = YKHO._client.format_url(bD7m, **wiSa)
AmXR = {}
Y3bP = {}
Y3bP['Accept'] = 'application/json'
if xSC3:
Y3bP.update(xSC3)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YZw2(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'alarm_description')",
"def YZw2(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'alarm_description')",
"def t5do(YKHO):\n Aofo = YKHO.get_attribute(s6Cf.AttributeIds.Description)\n return Aofo.Value.Value",
"def Buve(YKHO, zZ1q=0):\n return YKH... | [
"0.7382824",
"0.7382824",
"0.654212",
"0.6523456",
"0.63605857",
"0.6318434",
"0.6256993",
"0.62057817",
"0.61951274",
"0.6140674",
"0.6074964",
"0.6074964",
"0.6074964",
"0.6074964",
"0.60699266",
"0.6038964",
"0.6038964",
"0.6038964",
"0.6018938",
"0.6010505",
"0.60026383",... | 0.0 | -1 |
Returns the ParentId property for the Alarm with the Id provided. | def TXJo(YKHO, id, xSC3=None, m6Me=False, **PK7a):
bD7m = YKHO.retrieve_parent_id.metadata['url']
wiSa = {'id': YKHO._serialize.url('id', id, 'str')}
bD7m = YKHO._client.format_url(bD7m, **wiSa)
AmXR = {}
Y3bP = {}
Y3bP['Accept'] = 'application/json'
if xSC3:
Y3bP.update(xSC3)
Qe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DtVU(YKHO):\n return YKHO.parent_id",
"def DtVU(YKHO) -> h8nf[id]:\n if YKHO.has_parent():\n return YKHO.parent\n return None",
"def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_id')",
"def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_id')",
"def H7rZ(YKHO):\n retur... | [
"0.7006367",
"0.6930031",
"0.6892109",
"0.6892109",
"0.6841472",
"0.6841472",
"0.67743814",
"0.67507106",
"0.6745464",
"0.6739584",
"0.6663069",
"0.65801495",
"0.6480821",
"0.64394134",
"0.6297256",
"0.62749994",
"0.62749994",
"0.6272647",
"0.62253374",
"0.6225281",
"0.617224... | 0.0 | -1 |
Returns the ValueId property for the Alarm with the Id provided. | def s8Zp(YKHO, id, xSC3=None, m6Me=False, **PK7a):
bD7m = YKHO.retrieve_value_id.metadata['url']
wiSa = {'id': YKHO._serialize.url('id', id, 'str')}
bD7m = YKHO._client.format_url(bD7m, **wiSa)
AmXR = {}
Y3bP = {}
Y3bP['Accept'] = 'application/json'
if xSC3:
Y3bP.update(xSC3)
QeP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PkmV(YKHO):\n return YKHO._get_value('ID')",
"def bcMS(YKHO) -> str:\n return qe4Y.get(YKHO, 'property_value_id')",
"def id(YKHO):\n if YKHO._id_present:\n return YKHO._id_value\n else:\n raise AttributeError(\"missing required field 'id'\")",
"def id(YKHO):\n if YKHO._id_pre... | [
"0.69053614",
"0.6481339",
"0.6295781",
"0.6295781",
"0.6295781",
"0.6295781",
"0.62819326",
"0.61078584",
"0.61078584",
"0.610553",
"0.6088725",
"0.6088725",
"0.59750485",
"0.5972561",
"0.5903772",
"0.5844819",
"0.5844316",
"0.57891524",
"0.57852",
"0.57498986",
"0.5735506",... | 0.54939294 | 45 |
Return the integer represented by the given array of bytes. bytes Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of builtin objects that support the buffer protocol. byteorder The byte order used to rep... | def bQ4v(YKHO, *qIxc, **B2fa):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQ4v(iCJ7, abwh):\n return int.from_bytes(iCJ7, abwh)",
"def gs1C(bytes, abwh='little', i1fZ=False):\n return int.from_bytes(bytes, byteorder=abwh, signed=i1fZ)",
"def PCNz(J83E):\n Mkmy = 0\n XP5J = 0\n for Fg_i in J83E:\n Mkmy |= Fg_i << 8 * XP5J\n XP5J += 1\n return Mkmy"... | [
"0.7734178",
"0.76503026",
"0.74955606",
"0.7477163",
"0.7399857",
"0.7375136",
"0.72714776",
"0.71194315",
"0.7091042",
"0.7087872",
"0.7078603",
"0.7077986",
"0.70125675",
"0.6909204",
"0.68608654",
"0.6859008",
"0.68383694",
"0.68023604",
"0.67796195",
"0.67770463",
"0.677... | 0.0 | -1 |
Return an array of bytes representing an integer. length Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte ... | def ntSl(YKHO, *qIxc, **B2fa):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KA36(kAne, u54L, abwh, i1fZ=False):\n if u54L < 0:\n raise ValueError('length argument must be non-negative')\n if u54L == 0 and kAne == 0:\n return bytes()\n if i1fZ and kAne < 0:\n UOVU = u54L * 8\n mLGw = 2 ** UOVU + kAne\n if mLGw <= 0:\n raise Overflo... | [
"0.7788585",
"0.7431194",
"0.7348087",
"0.72592294",
"0.71064186",
"0.70389724",
"0.70350635",
"0.702068",
"0.69009256",
"0.6747045",
"0.66703695",
"0.6559482",
"0.6555194",
"0.6455906",
"0.63438565",
"0.6328769",
"0.6316546",
"0.6310254",
"0.6309936",
"0.62855995",
"0.625677... | 0.0 | -1 |
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses. | def kblH(YKHO, *qIxc, **B2fa):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_(YKHO):\n print('Subclass and over-ride this method.')",
"def FIMM(YKHO):\n super().__init__(None)",
"def FIMM(YKHO):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2... | [
"0.79790884",
"0.7121276",
"0.71160394",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",
"0.70902354",... | 0.0 | -1 |
Retrieves the state for the given replication. Possible values are ``triggered``, ``completed``, ``error``, and ``None`` (meaning not yet triggered). | def Di25(YKHO, IZwy):
if 'scheduler' in YKHO.client.features():
try:
UMh3 = _8Ct(YKHO.client).get_doc(IZwy)
except VrQA as err:
raise Qsd7(XObx.response.status_code, IZwy)
QTBn = UMh3['state']
else:
try:
UMh3 = YKHO.database[IZwy]
excep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bGIA(YKHO, Cyin):\n pass",
"def OtFC():\n return X5ic().get()",
"def ja6o(YKHO):\n return (YKHO.intrvl_change_trig, YKHO.settings_interval, YKHO.notification_change_trig, YKHO.notification_state)",
"def VAZT():\n if 'scheduler' in YKHO.client.features():\n try:\n DWwS = _8Ct... | [
"0.70504826",
"0.6926468",
"0.587878",
"0.5764871",
"0.5716454",
"0.56661296",
"0.56206155",
"0.56206155",
"0.56032574",
"0.55957156",
"0.55898076",
"0.5585982",
"0.5578917",
"0.55448526",
"0.5543557",
"0.55404186",
"0.5527725",
"0.5502713",
"0.549995",
"0.54847646",
"0.54653... | 0.7082537 | 0 |
Return a random action index. | def GHEz(YKHO, gc9P, **B2fa):
return oyIN.random.randint(0, YKHO.num_actions) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOT7(YKHO, KCHu):\n d6pt = tuKI.randint(0, YKHO.actionCnt - 1)\n return d6pt",
"def l489(YKHO):\n XeOP = eax5(oyIN.random.randint(len(eax5)))\n return XeOP",
"def XeOP(YKHO, QTBn):\n return tuKI.randrange(YKHO.action_space.n)",
"def oOT7(YKHO, KCHu):\n if tuKI.random() < YKHO.epsilon:\n... | [
"0.8426927",
"0.78787184",
"0.7672095",
"0.7622697",
"0.76134324",
"0.76134324",
"0.7566614",
"0.7489812",
"0.7454944",
"0.7427015",
"0.7364398",
"0.73107225",
"0.72666496",
"0.7257032",
"0.72484916",
"0.7178971",
"0.71686167",
"0.71479166",
"0.7126802",
"0.70624983",
"0.7062... | 0.65991217 | 51 |
Start the decay over at the start value. | def SiRx(YKHO):
YKHO.steps = 0.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WMj5(YKHO):\n pass",
"def LnLi(yKcO, JCyR, WMj5):\n\n def vJPk(BWXx):\n return max(BWXx, JCyR) if yKcO > JCyR else min(BWXx, JCyR)\n LhkK = 1.0\n while True:\n yield vJPk(yKcO * 1.0 / (1.0 + WMj5 * LhkK))\n LhkK += 1",
"def FIMM(YKHO, kLRn: float, OEGN: float, zj1t: int, z4... | [
"0.6668085",
"0.6652777",
"0.62589353",
"0.61543083",
"0.59695387",
"0.59695387",
"0.5949321",
"0.5940932",
"0.5934554",
"0.5902786",
"0.58806646",
"0.5852301",
"0.5851725",
"0.58452994",
"0.5834251",
"0.58001006",
"0.5795107",
"0.5795107",
"0.57587296",
"0.57587296",
"0.5750... | 0.0 | -1 |
Token must have required scopes. | def hHPK(YKHO):
YKHO.request.auth = {'scope': 'SCOPEA SCOPEB'}
YKHO.assertTrue(YKHO.has_permission())
YKHO.request.auth = {'scope': 'SCOPEA'}
YKHO.assertFalse(YKHO.has_permission())
YKHO.request.auth = {'scope': 'SCOPEB'}
YKHO.assertFalse(YKHO.has_permission()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k4oq(YKHO, eOtH, uC2a, QePW):\n raise NotImplementedError('Subclasses must implement this method.')",
"def BM6X(YKHO, rrBf):\n BM6X(vEFs(), rrBf)",
"def Kaae(wSDY: FlaskClient):\n _hkX: oGir = wSDY.post('/token', json={'sub': 'test', 'scope': oHMq})\n nPrm: dict = _hkX.get_json()\n assert 't... | [
"0.7446052",
"0.7439879",
"0.73038167",
"0.7266977",
"0.7266977",
"0.7236862",
"0.7222395",
"0.714943",
"0.714943",
"0.7016127",
"0.69814146",
"0.6926344",
"0.68782485",
"0.6859469",
"0.6821174",
"0.68026996",
"0.67805535",
"0.6778064",
"0.6753776",
"0.6701102",
"0.6701102",
... | 0.6297973 | 29 |
Tests block volume attach. Returns No return value. | def _lbA(YKHO):
YKHO.volume_attached = False
p4_k = YKHO.sess.this_instance()
YKHO.assertIsNotNone(p4_k, 'Cannot fetch OCI instance')
try:
YKHO.testVol = p4_k.attach_volume(volume_id=YKHO.testVol.get_ocid())
YKHO.volume_attached = True
except Exception as e:
YKHO.fail('attach... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YjkR(YKHO):\n OaeV = QpfX.RequestContext('admin', 'fake', True)\n akib = NCls.volume_create(OaeV, {'status': 'available', 'host': 'test', 'provider_location': '', 'size': 1})\n TJdH = YKHO.start_service('volume', host='test')\n hkxX = {'status': 'attaching', 'instance_uuid': xOu7.get_fake_uuid()}\n... | [
"0.75992763",
"0.75467575",
"0.7483869",
"0.7411289",
"0.73160857",
"0.7314107",
"0.7304468",
"0.718176",
"0.7129069",
"0.71101063",
"0.6941687",
"0.69309485",
"0.6853197",
"0.6753752",
"0.67176163",
"0.6687882",
"0.6676142",
"0.6552055",
"0.65481263",
"0.64937985",
"0.648231... | 0.71334773 | 8 |
Create a copy of dic, remove keys and return it. | def ESPd(Op6c, sjXb):
return {YSA3: Op6c[YSA3] for YSA3 in Op6c if YSA3 not in sjXb} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aie8(Csk6, sjXb):\n return dict([(G1Hx, Ty9i) for G1Hx, Ty9i in Csk6.iteritems() if G1Hx not in sjXb])",
"def jth9(YKHO):\n BdN0 = cuzp()\n BdN0.keylist = YKHO.keylist.copy()\n for G1Hx, Ty9i in YKHO.items():\n BdN0[G1Hx] = Ty9i\n return BdN0",
"def eWjj(weiJ, D1du):\n return {H5ew... | [
"0.71523345",
"0.6958871",
"0.6890303",
"0.68303263",
"0.67732",
"0.6595503",
"0.6593754",
"0.6548465",
"0.6546235",
"0.65006596",
"0.64937717",
"0.64764595",
"0.6467467",
"0.6455852",
"0.644697",
"0.64388305",
"0.6436192",
"0.6413243",
"0.63823706",
"0.63629466",
"0.6337351"... | 0.7007249 | 1 |
Return a string expession of d. This function is like d.strftime(format) but adjusts the timezone to UTC. | def F803(Csk6, format):
try:
Csk6 = Csk6.astimezone(qcWV.timezone.utc)
except ValueError:
Csk6 = ITS7.gmtime(ITS7.mktime(Csk6.timetuple()))
return ITS7.strftime(format, Csk6)
return Csk6.strftime(format) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvEs(Csk6=None):\n if Csk6 is None:\n Csk6 = qcWV.utcnow()\n return Csk6.strftime('%Y-%m-%dT%H:%M:%SZ')",
"def QnRX(Emd4, Csk6: dt.datetime) -> str:\n assert Csk6.tzinfo is None, 'timezone handling not supported (TODO)'\n return Csk6.strftime(Emd4._FMT_DATETIME)",
"def yLCI(JRYC):\n r... | [
"0.8126149",
"0.78566265",
"0.7462984",
"0.7344037",
"0.73434514",
"0.7196297",
"0.7182557",
"0.71433794",
"0.7138634",
"0.71210235",
"0.7074729",
"0.7071973",
"0.70468134",
"0.70379746",
"0.7032443",
"0.7022798",
"0.69841075",
"0.6976626",
"0.69640166",
"0.6939291",
"0.69278... | 0.74894196 | 2 |
Return a string expression of obj. | def Napc(YEnM, *, p4k2='utf-8', DAsM='%a, %d %B %Y %H:%M:%S GMT'):
if YEnM is None:
return None
if isinstance(YEnM, int):
YEnM = str(int(YEnM))
if isinstance(YEnM, qcWV.datetime):
YEnM = F803(YEnM, DAsM)
if isinstance(YEnM, str):
YEnM = YEnM.encode(p4k2)
if isinstance... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.expression)",
"def zAg0(YKHO):\n return str(YKHO.expr)",
"def zAg0(YKHO):\n return YKHO.expr",
"def VN2L(YKHO):\n return str(YKHO.value)",
"def zAg0(YKHO):\n KW5H, khtY = YKHO._split_filter(YKHO.prop_expr)\n rPXJ = YKHO.OPS[khtY]\n return rPXJ % (KW5H,... | [
"0.75418",
"0.7532962",
"0.7417359",
"0.69680625",
"0.68622625",
"0.6859996",
"0.67934674",
"0.674586",
"0.67014337",
"0.66652846",
"0.65601534",
"0.6522581",
"0.6522021",
"0.65148515",
"0.6434843",
"0.64219505",
"0.63902634",
"0.6351313",
"0.632454",
"0.63217294",
"0.6294651... | 0.0 | -1 |
Convert x,y values to q,r tuple. | def tGY3(YKHO, WKvO: float, LVAh: float) -> AzJI[int, int]:
def VDaS(oN8J: float, hfNb: float, zNig: float, _qjy: float, kYGz: float, ftz7: float, _2fo: float) -> AzJI[int, int]:
Xlvp = (WKvO - oN8J) / zNig
nfKA = (LVAh - hfNb) / zNig
tsC6 = _qjy * Xlvp + kYGz * nfKA
lgWp = ftz7 * X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EbCc(YKHO, vexM, Mkmy) -> tuple:\n vgXP = YKHO.width\n return ()",
"def YElZ(YKHO):\n return (YKHO.x, YKHO.y)",
"def WvZw(YKHO):\n return (YKHO.__x, YKHO.__y)",
"def YElZ(YKHO):\n return (YKHO.x, YKHO.y)",
"def pTc2(YKHO):\n return (YKHO.x, YKHO.y, YKHO.z)",
"def pTc2(YKHO):\n re... | [
"0.69104743",
"0.6742683",
"0.66941303",
"0.65073913",
"0.6488012",
"0.6456445",
"0.644483",
"0.63727003",
"0.62884504",
"0.62846935",
"0.6269376",
"0.6219849",
"0.61840296",
"0.61741287",
"0.6088684",
"0.608275",
"0.6070738",
"0.60372525",
"0.6033501",
"0.60251355",
"0.59827... | 0.67806995 | 1 |
Create Hex instance from nume value. | def NXA2(J1EY: int) -> 'Hex':
J1EY = int(J1EY)
vexM = J1EY >> 32 & 4294967295
Mkmy = J1EY & 4294967295
return i7QR(vexM, Mkmy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzQm(exwG):\n return ''.join([XdG6.choice(vIwR.hexdigits).lower() for bGrB in range(exwG)])",
"def wcJC(exwG):\n return MRxC.b2a_hex(exwG)",
"def ZN1f(exwG):\n return '%X' % exwG",
"def qzQm(YKHO, xHIy):\n if not isinstance(xHIy, str):\n raise TypeError('Invalid input_hex type.')\n ... | [
"0.6690316",
"0.66843855",
"0.6639704",
"0.64741784",
"0.6384317",
"0.6223387",
"0.6195698",
"0.6173619",
"0.6130151",
"0.607563",
"0.60358655",
"0.60235226",
"0.60145813",
"0.5993133",
"0.599017",
"0.5971105",
"0.59677976",
"0.5955899",
"0.59226024",
"0.59175986",
"0.590386"... | 0.83078694 | 0 |
Return GeoJSON representation of the hex. | def Z39J(YKHO, LAOT: Layout) -> cuzp:
def _Oes(WKvO: float) -> float:
return WKvO / 6378137.0 * (180.0 / epAf.pi)
def WcA2(LVAh: float) -> float:
Wskb = epAf.pi / 2.0 - 2.0 * epAf.atan(epAf.exp(-1.0 * LVAh / 6378137.0))
return Wskb * 180.0 / epAf.pi
W0Eb = [[[_Oes(WKvO), WcA2(LVAh)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EoeV(wFOJ):\n return LBWB.geometry.shape(wFOJ).wkb_hex",
"def vmDR(YKHO) -> dict:\n yvT9 = {}\n yvT9['x'] = YKHO.x_point.hex()\n yvT9['y'] = YKHO.y_point.hex()\n return yvT9",
"def hex(YKHO) -> str:\n return YKHO.__json['hex']['value']",
"def KPzb(YKHO):\n return ''",
"def tPqX(YKH... | [
"0.73415375",
"0.6916622",
"0.66666716",
"0.6543383",
"0.645359",
"0.6417158",
"0.6382455",
"0.63697416",
"0.63168734",
"0.62028486",
"0.6114518",
"0.6102907",
"0.60856915",
"0.6070804",
"0.60621226",
"0.60322434",
"0.5986995",
"0.5974515",
"0.59477884",
"0.59352356",
"0.5910... | 0.0 | -1 |
Returns the probability of word given label (i.e., P(word|label)) according to this NB model. | def ADBP(YKHO, GIN8, UXqs):
return YKHO.class_word_counts[UXqs][GIN8] / YKHO.class_total_word_counts[UXqs] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fyAv(YKHO, QpfX, GIN8):\n WrFl = ['_BOS_'] + QpfX\n WrFl = [YKHO.word_to_id(a1PO) for a1PO in WrFl]\n WrFl = S5Za([WrFl], maxlen=YKHO.max_sequence_len - 1, padding='pre')\n iJQU = YKHO.word_to_id(GIN8)\n global graph\n global session\n with pNZh.as_default():\n with cuiw.as_default(... | [
"0.7492864",
"0.7464507",
"0.7413035",
"0.7403443",
"0.7343457",
"0.73305875",
"0.73230046",
"0.7237135",
"0.71585286",
"0.7107244",
"0.70874524",
"0.7056412",
"0.69961864",
"0.6845569",
"0.6821838",
"0.6812098",
"0.67981935",
"0.67464346",
"0.67239606",
"0.6694405",
"0.66639... | 0.81960726 | 0 |
start_monitor will run a continuous loop that polls the server every 'poll_interval'. | def fKHC(pRmv=GPtr.poll_interval):
QTBn = rgNC()
while True:
xfpL(QTBn)
ITS7.sleep(pRmv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fas9(YKHO):\n YKHO.timer.start(YKHO.updateMonitorIntervalMS)\n YKHO.isMonitoring = True",
"def MuY5(YKHO):\n YKHO.poller = T6FA.Thread(target=YKHO.poll)\n YKHO.poller.daemon = True\n YKHO.poller.start()",
"def yKcO(YKHO):\n YKHO.timer.timeout.connect(YKHO.refresh)\n YKHO.timer.start(10... | [
"0.6734554",
"0.6561525",
"0.6485956",
"0.64731824",
"0.6461181",
"0.644868",
"0.6390246",
"0.6389234",
"0.63680387",
"0.63663167",
"0.6298042",
"0.62227666",
"0.62152964",
"0.6178977",
"0.6148714",
"0.60780454",
"0.60755306",
"0.6061979",
"0.6039106",
"0.60182565",
"0.599197... | 0.7977939 | 0 |
list An array giving the fitted blend flux for each dataset. | def f1pm(YKHO):
DUgH = []
if YKHO.fits is None:
raise AttributeError('Fluxes not calculated. Run fit_fluxes() or get_chi2() first.')
for WgYu in YKHO.fits:
DUgH.append(WgYu.blend_flux)
return DUgH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUgH(YKHO):\n DUgH = []\n if YKHO.fits is None:\n raise AttributeError('Fluxes not calculated. Run fit_fluxes() or get_chi2() first.')\n for WgYu in YKHO.fits:\n DUgH.append([WgYu.source_fluxes, WgYu.blend_flux])\n return DUgH",
"def PCor(PCor, AvnS, wegO):\n Jj0P = XTiz.mean(PCo... | [
"0.75290555",
"0.6920737",
"0.66852844",
"0.6526334",
"0.6239277",
"0.62051773",
"0.60745406",
"0.6035032",
"0.6001332",
"0.59380096",
"0.5799938",
"0.5784899",
"0.56566936",
"0.5635312",
"0.55658674",
"0.55626965",
"0.5526876",
"0.55049795",
"0.5488648",
"0.5468087",
"0.5446... | 0.8007021 | 0 |
Return True if this `FoodNutritionInfo` is equal to another, False otherwise. | def IzcV(YKHO, Elif):
return all([YKHO.quantity == Elif.quantity, YKHO.unit == Elif.unit, YKHO.food == Elif.food]) and super(WqEj, YKHO).is_equal(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, Ad68):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def IzcV(YKHO, Elif):\n return all([YKHO.calories == Elif.calories, YKHO.fat_calories == Elif.fat_calories, YKHO.fat == Elif.fat, YKHO.carb == Elif.carb, YKHO.sodium == Elif.sodium, YK... | [
"0.72019905",
"0.71493846",
"0.7105478",
"0.7099591",
"0.70239425",
"0.68684673",
"0.68598855",
"0.68500376",
"0.6833694",
"0.6804394",
"0.67936665",
"0.67548656",
"0.67396295",
"0.6734684",
"0.67013025",
"0.6698833",
"0.6689808",
"0.6689571",
"0.6687417",
"0.668484",
"0.6673... | 0.82522595 | 0 |
If the one of the given strings matches the string at the current position, return true | def hHld(YKHO, *_CS_):
for vIwR in _CS_:
vC9B = len(vIwR)
if YKHO.string[YKHO.cursor:YKHO.cursor + vC9B] == vIwR:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JATT(YKHO, uI27):\n if not uI27:\n return True\n if uI27 in YKHO._matches:\n return True\n for wEf2 in YKHO._start_with:\n if uI27.startswith(wEf2):\n return True\n for wEf2 in YKHO._contains:\n if wEf2 in uI27:\n return True\n return False",
"... | [
"0.7056851",
"0.7018627",
"0.6999424",
"0.6854853",
"0.6849141",
"0.684284",
"0.6827246",
"0.6810093",
"0.6799473",
"0.677818",
"0.677414",
"0.6709212",
"0.6708302",
"0.6683496",
"0.66829926",
"0.6678447",
"0.6642102",
"0.663299",
"0.663206",
"0.6630208",
"0.6610924",
"0.66... | 0.84198725 | 0 |
Returns all tags stored in this node. Can be very useful to know what datasets this node contains. | def xDTE():
XsxF = set()
p9NO = oQfi()
for YEnM in p9NO.values():
if YEnM.tags:
XsxF.update(set(YEnM.tags))
return oGir(qQXR.dumps(list(XsxF)), status=200, mimetype='application/json') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO):\n return YKHO.data.tags",
"def dJ1p(YKHO):\n YKHO._check_connection()\n if not YKHO._initial_data:\n YKHO.fetch_initial_data()\n return YKHO._tags.values()",
"def qvDz(YKHO):\n return YKHO.metadata['tags']",
"def dJ1p(YKHO):\n return YKHO._tags",
"def dJ1p(YKHO):\n ... | [
"0.81897104",
"0.79764026",
"0.7829896",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
"0.7783002",
... | 0.0 | -1 |
This list comprehension (yes!) is implemented to create a list where every item is an integer form of an index within the passed in string or number. | def WwOK(FGW3):
return [int(Ko6S) for Ko6S in FGW3] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R7tw(OxJJ, yv6U):\n for ZfUD in OxJJ:\n try:\n yield yv6U.index(ZfUD)\n except ValueError:\n yield int(ZfUD)",
"def BNCo(yfR9, z668):\n UjdD = []\n for mLGw in z668:\n for YRbF in range(len(yfR9)):\n BWXx = yfR9[YRbF]\n if mLGw == BWXx... | [
"0.69733334",
"0.6769022",
"0.676268",
"0.6752642",
"0.65635043",
"0.6542724",
"0.6524975",
"0.6516522",
"0.6510866",
"0.6478658",
"0.6469639",
"0.64470744",
"0.6431698",
"0.64288044",
"0.639465",
"0.6388629",
"0.6362146",
"0.6347716",
"0.63301754",
"0.6296217",
"0.6296217",
... | 0.6171614 | 29 |
Pool the embedding layers to come up with a single dimension vector. | def dBuj(DZoO, OuMq=lmIL.PENULT):
syQw = DZoO[2]
if OuMq == lmIL.PENULT:
return ht2j.mean(syQw[-2], dim=(0, 1))
if OuMq == lmIL.AVG4:
return ht2j.mean(ht2j.stack(syQw[-4:]), dim=(0, 1, 2))
raise ValueError(f'Unknown pooling strategy: {OuMq}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ng6a(Sd0C):\n VXjJ = hnIv.open(Sd0C)\n MKlR, yzQ0 = VXjJ.size\n if MKlR != Rv0k or yzQ0 != Rv0k:\n VXjJ = yOem(VXjJ)\n VXjJ = Hy6m(VXjJ)\n VXjJ = xOH6(VXjJ)\n VXjJ = Einh(VXjJ, Rv0k, Rv0k)\n VXjJ = hnIv.fromarray(VXjJ)\n VXjJ.save(Sd0C + '.jpg')\n SSby = iQ... | [
"0.6209666",
"0.62018603",
"0.619634",
"0.61925995",
"0.6117962",
"0.6100555",
"0.60889316",
"0.6078889",
"0.60765076",
"0.6060738",
"0.5999352",
"0.5992744",
"0.5991118",
"0.5991011",
"0.5972895",
"0.5969759",
"0.5953174",
"0.5952751",
"0.59474146",
"0.59149307",
"0.5894923"... | 0.0 | -1 |
Get an embedding for a span of text. Runs the model and pools the resulting word embeddings using the given pooling strategy. | def Q1PJ(KCHu, **B2fa):
NMU3 = BJsk.filter_args({'strategy'}, B2fa)
return dBuj(XjvB(KCHu), **NMU3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v8IW(sEPa, WRJZ):\n lnjx = K9NE(sEPa)\n s2mk = list([yzQ0.text for yzQ0 in lnjx if yzQ0.is_alpha])\n Mkmy = pAYd()\n Mkmy.extract_keywords_from_text(WRJZ)\n BEVl = Mkmy.get_ranked_phrases_with_scores()\n Mkmy.extract_keywords_from_text(sEPa)\n IS6_ = Mkmy.get_ranked_phrases_with_scores()\n... | [
"0.57567525",
"0.5531567",
"0.5490845",
"0.54872924",
"0.54854697",
"0.54242784",
"0.5349187",
"0.5321081",
"0.5269959",
"0.52507585",
"0.52404475",
"0.5235445",
"0.52052164",
"0.52044505",
"0.5201129",
"0.51623684",
"0.5160778",
"0.51607776",
"0.5137159",
"0.513329",
"0.5128... | 0.62781346 | 0 |
Bad Request response for a request. Takes an error message. | def _ef9(P1dF):
if isinstance(P1dF, rDSL):
return Yxsy(pz3A({'code': 400, 'error': 'BadRequest'}), 400)
return Yxsy(pz3A({'code': 400, 'error': P1dF}), 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ef9(Ol8d):\n return rDSL('Bad Request: {}'.format(Ol8d))",
"def _ef9(P1dF):\n return G3KB('Bad Request', 400)",
"def yAhP(Ol8d):\n geh0 = pz3A({'error': 'Invalid request', 'message': Ol8d})\n geh0.status_code = 400\n return geh0",
"def _ef9():\n UAju = {'_request': ['bad request']}\n ... | [
"0.8860183",
"0.85539454",
"0.8491135",
"0.84883976",
"0.8354385",
"0.8335573",
"0.8305946",
"0.82496464",
"0.8247765",
"0.82290137",
"0.8185025",
"0.8185025",
"0.8151781",
"0.8146155",
"0.80764633",
"0.7999256",
"0.7983494",
"0.7983494",
"0.7983494",
"0.7975869",
"0.7975869"... | 0.81195414 | 14 |
Test that the maximum number of events in an EventBundle is respected. | def CBKR(YKHO):
nPrm = {'client1': {'name1': [PdI0.MakeEventTuple('typeA', 1234567890, 321) for bGrB in Ni9Y(75000)]}}
oAiD = PdI0.EncodeMultiClient(nPrm)
rDW0 = PdI0.DecodeStreaming(kJm3(oAiD))
wHSX = rDW0.next()
YKHO.assertEqual(wHSX.client, 'client1')
YKHO.assertEqual(wHSX.name, 'name1')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_eventbus_max_length_exceeded(ajET: HomeAssistant) -> None:\n VpdW = 'this_event_exceeds_the_max_character_length_even_with_the_new_limit'\n with trZe.raises(nwth) as _n4O:\n ajET.bus.async_fire(VpdW)\n assert _n4O.value.property_name == 'event_type'\n assert _n4O.value.max_length ... | [
"0.66845644",
"0.6286591",
"0.62167656",
"0.6208893",
"0.61422724",
"0.6100868",
"0.6039805",
"0.601362",
"0.59509414",
"0.5950364",
"0.5929836",
"0.5884568",
"0.5875976",
"0.58726364",
"0.5869714",
"0.5862363",
"0.5855603",
"0.5847813",
"0.58439803",
"0.5830697",
"0.58283633... | 0.5960133 | 8 |
Read package file as text to get name and version. | def Nwr9(Ux0P):
p_9N = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))
with T_Uj.open(Hy7s.path.join(p_9N, 'src/package_with_function_call_as_name', Ux0P), 'r') as eHNT:
return eHNT.read() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def btkI():\n return ZOTH('version.txt').strip()",
"def JlJd(Ux0P):\n mFdJ = ZbWC.compile('^.*name( )*=( )*[\"\\\\\\'](.*)[\"\\\\\\'].*$')\n MdqQ = ZbWC.compile('^.*version( )*=( )*[\"\\\\\\'](.*)[\"\\\\\\'].*$')\n mWFP = ''\n DpZH = ''\n with open(Ux0P, 'r') as eZ_W:\n for vbsy in eZ_W:... | [
"0.74674636",
"0.7417605",
"0.7182914",
"0.6857174",
"0.6714362",
"0.67049503",
"0.6689416",
"0.65995216",
"0.6598141",
"0.6593372",
"0.65605104",
"0.6533819",
"0.6529124",
"0.65192175",
"0.64433897",
"0.6439215",
"0.64375883",
"0.6429048",
"0.6357721",
"0.6341122",
"0.633637... | 0.0 | -1 |
Ensure two lists are identical. | def Ndq5(P8oC, yvT9):
oyIN.testing.assert_array_equal(oyIN.array(P8oC), yvT9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrE1(YKHO, vASe, OQAR):\n assert len(vASe) == len(OQAR)\n for ZfUD in vASe:\n assert ZfUD in OQAR",
"def mokZ(YKHO, vASe, OQAR):\n assert len(vASe) == len(OQAR)\n for ZfUD in vASe:\n assert ZfUD in OQAR\n for ZfUD in OQAR:\n assert ZfUD in vASe",
"def AGJk(YKHO):\n YK... | [
"0.8314086",
"0.80229396",
"0.7794694",
"0.7735017",
"0.7632932",
"0.7607725",
"0.75784075",
"0.7576541",
"0.74838126",
"0.7453594",
"0.7433487",
"0.7376557",
"0.72412896",
"0.7199021",
"0.7192754",
"0.7179707",
"0.7154537",
"0.7083826",
"0.70471644",
"0.70423657",
"0.7035783... | 0.0 | -1 |
Ensure two lists are identical. | def Ndq5(P8oC, yvT9):
oyIN.testing.assert_array_equal(oyIN.array(P8oC), yvT9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrE1(YKHO, vASe, OQAR):\n assert len(vASe) == len(OQAR)\n for ZfUD in vASe:\n assert ZfUD in OQAR",
"def mokZ(YKHO, vASe, OQAR):\n assert len(vASe) == len(OQAR)\n for ZfUD in vASe:\n assert ZfUD in OQAR\n for ZfUD in OQAR:\n assert ZfUD in vASe",
"def AGJk(YKHO):\n YK... | [
"0.8314383",
"0.8022948",
"0.77933306",
"0.77332336",
"0.7632449",
"0.7607031",
"0.7577877",
"0.75768757",
"0.748505",
"0.74523497",
"0.7434748",
"0.73775584",
"0.724116",
"0.71974736",
"0.7193006",
"0.7180025",
"0.7153258",
"0.708404",
"0.7047372",
"0.7043325",
"0.70368105",... | 0.0 | -1 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1):
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.70801866 | 89 |
Returns a shared_importer.Model from CNTK nodes. | def JbNE(IgOF):
sfl2 = IHZj.ImporterModel()
for tWw0 in IgOF:
Q6kx = n_v9.get_converter(tWw0, pOCj)
if Q6kx:
sfl2.add_node(Q6kx.uid, Q6kx.convert())
for yzQ0 in Q6kx.weights:
upAO = Q6kx.weights[yzQ0]
sfl2.add_tensor(upAO[0], upAO[1], upAO[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i1FH(pmON):\n lpha = pmON.split('.')\n return YrZb(lpha[0], lpha[-1])",
"def dasj():\n return uyMl()",
"def YrZb():\n QRYo = 'model_inference/dlv3_cats.onnx'\n C3ST = XC5k.dnn.readNetFromONNX(QRYo)\n print('!!!MODEL LOADED!!!')\n return C3ST",
"def rSHj():\n if QePW.method == 'OPT... | [
"0.55696094",
"0.55589086",
"0.55012625",
"0.54640365",
"0.5428078",
"0.5426285",
"0.5381174",
"0.5366298",
"0.5348295",
"0.53334445",
"0.53152055",
"0.52861714",
"0.5245038",
"0.5194398",
"0.51862115",
"0.5185548",
"0.51802564",
"0.5179911",
"0.51406825",
"0.51404667",
"0.51... | 0.7400575 | 0 |
Tries to determine if a buffer is empty. | def zo65(NRcB):
zo65 = True
for YB8B in NRcB:
if YB8B != 0:
zo65 = False
break
return zo65 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A4KR(YKHO):\n return len(YKHO) == 0",
"def oMcT(YKHO):\n return YKHO.buffer.size == 0",
"def bWGV(YKHO):\n return len(YKHO.buf) >= YKHO.buf_size",
"def lsmZ(YKHO) -> bool:\n if len(YKHO.inbox) + len(YKHO.buffer) == 0:\n return True\n else:\n return False",
"def J2od(YKHO, w... | [
"0.8270933",
"0.77584434",
"0.7679382",
"0.7519324",
"0.7421641",
"0.74186033",
"0.73219645",
"0.73219645",
"0.73027116",
"0.7292294",
"0.7282438",
"0.7281734",
"0.7250543",
"0.7240379",
"0.7240379",
"0.7240379",
"0.7240379",
"0.7240379",
"0.7240379",
"0.7240379",
"0.72380966... | 0.0 | -1 |
Convert iso string to date time object | def QBVI(jmHs):
try:
JRYC = qcWV.strptime(jmHs, '%Y-%m-%dT%H:%Mz')
return JRYC
except Exception:
return jmHs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tcj_(str):\n try:\n return qcWV.strptime(str, '%Y-%m-%dT%H:%M:%SZ')\n except:\n return None",
"def O6uR(VDDH: str) -> qcWV.datetime:\n if VDDH[-3:-2] == ':':\n VDDH = VDDH[:-3] + VDDH[-2:]\n else:\n VDDH += '+0000'\n return qcWV.datetime.strptime(VDDH, '%Y-%m-%dT%H:... | [
"0.80784875",
"0.77766603",
"0.7643427",
"0.76177233",
"0.76015735",
"0.75900525",
"0.75891036",
"0.75891036",
"0.7580069",
"0.75772166",
"0.7469251",
"0.7424695",
"0.74029374",
"0.73489857",
"0.733221",
"0.73147064",
"0.7308947",
"0.7295502",
"0.7273909",
"0.726901",
"0.7257... | 0.7253921 | 21 |