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 |
|---|---|---|---|---|---|---|
Returns a copy of the mesh's triangles. | def EmSm(YKHO) -> oyIN.array:
return YKHO._triangles.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vRWl(YKHO):\n return YKHO.triangle_list",
"def ock1(rR8k):\n EmSm = oyIN.asarray(rR8k.triangles).copy()\n iXlf = oyIN.asarray(rR8k.vertices).copy()\n w0U0 = oyIN.zeros_like(EmSm)\n eE_s = oyIN.zeros((len(EmSm) * 3, 3), dtype=iXlf.dtype)\n for kglc, a1PO in enumerate(EmSm):\n EZGq = k... | [
"0.7902255",
"0.7517355",
"0.72833323",
"0.7255327",
"0.7154876",
"0.71233624",
"0.68152106",
"0.6728694",
"0.67056584",
"0.6581703",
"0.6526812",
"0.6359767",
"0.6291557",
"0.62290645",
"0.6212175",
"0.62040645",
"0.6190038",
"0.6180762",
"0.6147646",
"0.61463404",
"0.612801... | 0.82592356 | 0 |
Returns a dict of labels. | def Crrw(YKHO) -> dict:
return YKHO._labels.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Crrw(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'labels')",
"def Crrw(YK... | [
"0.8264498",
"0.8264498",
"0.8264498",
"0.8264498",
"0.8264498",
"0.8264498",
"0.8264498",
"0.8264498",
"0.8257701",
"0.8257701",
"0.8217264",
"0.80060977",
"0.7964119",
"0.79618615",
"0.79618615",
"0.79618615",
"0.79618615",
"0.79618615",
"0.79618615",
"0.79618615",
"0.79511... | 0.82108676 | 11 |
Vertex data of a mesh The vertex data class represents arbitrary data about the vertices of a mesh. The data must be convertible to an array of float with a shape of (N, M) where N is the number of vertices of the mesh. | def FIMM(YKHO, mWFP: str, nPrm: Sequence):
super().__init__(mWFP)
YKHO._data = None
YKHO.data = nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tunn(YKHO, nPrm):\n D1HL = YKHO.field.interp_v_vals_to_n_vals(nPrm)\n YKHO.data_from_any(D1HL)",
"def Nr2c(YKHO, QL__: 'VertexData'):\n if not isinstance(QL__, Is6c):\n raise TypeError(\"'vertex_data' must be an instance of VertexData, not {}.\".format(type(QL__)))\n if QL__.name in [Sw3p.... | [
"0.6750792",
"0.6615504",
"0.65714383",
"0.65550226",
"0.6461634",
"0.6384306",
"0.63621736",
"0.6304134",
"0.6220341",
"0.61426497",
"0.6068266",
"0.6041858",
"0.6035929",
"0.60193974",
"0.60135865",
"0.6006622",
"0.5999348",
"0.59875417",
"0.59859",
"0.59859",
"0.5975763",
... | 0.0 | -1 |
Returns the number of vertices associated with the data | def ts4V(YKHO):
return len(YKHO.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrQl(YKHO):\n return YKHO._n",
"def y8Vt(YKHO):\n return YKHO.intrinsicValue('vertexcount')",
"def X7h0(YKHO):\n return len(YKHO.vertices)",
"def poMF(YKHO):\n return len(YKHO.vertices())",
"def JalI(YKHO):\n return len(list(YKHO.vertices()))",
"def T8SG(YKHO):\n return len(YKHO.get... | [
"0.8568392",
"0.85499793",
"0.8510102",
"0.83910847",
"0.83808935",
"0.8375916",
"0.8369955",
"0.8369955",
"0.835842",
"0.83550566",
"0.8305021",
"0.8275565",
"0.8275565",
"0.8222182",
"0.82010525",
"0.8194111",
"0.81718665",
"0.8149308",
"0.81459624",
"0.8120374",
"0.8087003... | 0.88342804 | 0 |
Returns a predicted value for a stateaction pair. If current_net is true then the current_net is used for this prediction. If current_net is false then the target_net is used for this prediction. | def xDcj(YKHO, QTBn, ZwOQ=True):
if ZwOQ == True:
N1HX = YKHO.current_net.predict(QTBn, batch_size=1)
else:
N1HX = YKHO.target_net.predict(QTBn, batch_size=1)
return N1HX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEmv(YKHO, QTBn, C3ST='online'):\n if C3ST == 'online':\n return YKHO.online_model(QTBn[oyIN.newaxis])[0]\n elif C3ST == 'target':\n return YKHO.target_model(QTBn[oyIN.newaxis])[0]\n else:\n raise ValueError",
"def b3ib(YKHO):\n return YKHO._predicted_state",
"def YEmv(YKHO... | [
"0.65031815",
"0.63339305",
"0.6284353",
"0.6186975",
"0.6136076",
"0.6132003",
"0.60269946",
"0.6018578",
"0.5988872",
"0.59503806",
"0.59452283",
"0.5944219",
"0.5939376",
"0.5934922",
"0.5929961",
"0.5880379",
"0.587568",
"0.5870362",
"0.5844418",
"0.58274764",
"0.5808613"... | 0.7765071 | 0 |
Adds a stateactionrewardnext_stateterminal_state array to memory This can then be replayed in event recall. | def C4Id(YKHO, cuAv, XeOP, vOGg, rxHc, f9TP):
_p7a = [cuAv, XeOP, vOGg, rxHc, f9TP]
YKHO.event_memory.append(_p7a)
if len(YKHO.event_memory) > YKHO.memory_size:
YKHO.event_memory.pop(0)
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, QTBn, rxHc, XeOP, zcyM, vOGg, si2z, aHGD, _ins):\n gcJ8 = rxHc\n if rxHc is None:\n gcJ8 = oyIN.zeros_like(QTBn)\n tTpl = [QTBn, gcJ8, XeOP, zcyM, vOGg, si2z, aHGD, _ins]\n YKHO.memory.append(tTpl)\n if len(YKHO.memory) > YKHO.buffer_size:\n del YKHO.memory[0]",
"def H... | [
"0.7871208",
"0.7778461",
"0.7538655",
"0.7536599",
"0.74823606",
"0.74751174",
"0.7445905",
"0.7436805",
"0.74049896",
"0.74049896",
"0.73958457",
"0.73958457",
"0.73958457",
"0.73958457",
"0.73958457",
"0.73958457",
"0.73958457",
"0.73958457",
"0.73958457",
"0.73958457",
"0... | 0.6901062 | 75 |
Build sinusoidal embeddings, consider timesteps as num_embeddings. | def z4vo(YKHO, L4bz, lhva):
tlXu = lhva // 2
zhTA = epAf.log(10000) / (tlXu - 1)
zhTA = vuvg.exp(vuvg.arange(tlXu, dtype='float32') * -zhTA)
oeNL = vuvg.arange(L4bz, dtype='float32')
zhTA = oeNL[:, None] * zhTA[None, :]
zhTA = vuvg.concat([vuvg.sin(zhTA), vuvg.cos(zhTA)], axis=1).reshape(L4bz, -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dsic(YKHO, jXxl, uMKX, rrBf=None):\n CQPE = jXxl if YKHO._algm == 'negative_sampling' else jXxl - 1\n HAzM = YKHO._embed_size * (2 * YKHO._window_size + 1) if YKHO._dm_concat else YKHO._embed_size\n with ZylS.variable_scope(rrBf, 'Embedding'):\n hlTV = ZylS.random_uniform([jXxl + uMKX, YKHO._em... | [
"0.67128193",
"0.6481766",
"0.6275459",
"0.6114029",
"0.6027397",
"0.60125077",
"0.59955406",
"0.59937155",
"0.5979581",
"0.5974694",
"0.59513694",
"0.5822168",
"0.58014673",
"0.5783261",
"0.57507455",
"0.57245815",
"0.56876814",
"0.56805444",
"0.56784564",
"0.56765777",
"0.5... | 0.5186259 | 84 |
returns True if number is a TollFree Number | def zp0M(FGW3, zn0c='US'):
try:
XP5J = MBR5.parse(FGW3, 'US')
except MBR5.NumberParseException:
return False
if MBR5.number_type(XP5J) == MBR5.PhoneNumberType.TOLL_FREE:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye72(YKHO):\n return not YKHO.free_symbols",
"def JPeP(mLGw):\n if mLGw > 21:\n return True\n else:\n return False",
"def tIyV(YKHO, a1PO):\n try:\n float(a1PO)\n return True\n except:\n return False",
"def GfdN(YKHO, FGW3):\n if FGW3 >= YKHO.max_num o... | [
"0.68531924",
"0.67316544",
"0.66045576",
"0.6411844",
"0.63978237",
"0.6222146",
"0.61712825",
"0.6149265",
"0.609394",
"0.60909534",
"0.6085938",
"0.6084014",
"0.6081588",
"0.604744",
"0.60310495",
"0.60106325",
"0.59853655",
"0.59785247",
"0.597332",
"0.59465563",
"0.59234... | 0.81226426 | 0 |
Returns the random variable with a standard normal distribution for massweighted surface density distribution corresponding to Sigma_E y_E = (ln(Sigma_E) mu_M)/(sqrt(2)sigma_lnSigma) | def fyHp(i2Uq, ChLw, WKvO, WTkW, xxIg):
o2tr = GHuO(ChLw, xxIg)
qCTW = JrJr(i2Uq, ChLw, WKvO, WTkW)
return (oyIN.log(o2tr) - qCTW) / (oyIN.sqrt(2.0) * WTkW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmG3() -> float:\n return K0SZ(tuKI.random())",
"def HRP_(LTIa):\n return oyIN.sqrt(oyIN.random.rand(1) + 1) * oyIN.random.randn(LTIa, 1)",
"def FHCX(YuY9, Jw7X):\n return oyIN.exp(Jw7X ** 2 / YuY9 * -0.5) / oyIN.sqrt(YuY9 * 2 * oyIN.pi)",
"def POXC(YKHO):\n return oaOd.NormalDist(standard_de... | [
"0.64945513",
"0.6420504",
"0.63685423",
"0.6301238",
"0.6301238",
"0.6277082",
"0.6261003",
"0.6205073",
"0.6198557",
"0.61861056",
"0.61633897",
"0.6135777",
"0.6134724",
"0.612545",
"0.60984653",
"0.60843265",
"0.6079642",
"0.6039299",
"0.60349363",
"0.60349363",
"0.602228... | 0.5962102 | 29 |
Compute final SF efficiency given Sigmacl, Psi, sigma_lnSigma, x | def nxig(imDU, xxIg=2000.0, WTkW=1.0, WKvO=1.0):
if not isinstance(imDU, (oyIN.ndarray, oyIN.generic)):
if isinstance(imDU, float):
imDU = oyIN.asarray([imDU])
else:
imDU = oyIN.asarray(imDU)
KzW2 = oyIN.zeros_like(imDU)
Ojg2 = oyIN.zeros_like(imDU)
for YRbF, cNRc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mS0u(WKvO, LVAh, WTkW):\n XcU5 = oyIN.where(WTkW > 0, [1.0 / YRbF for YRbF in WTkW], 100 * max(WTkW.max(), 1e-10))\n o4sw = oyIN.sum(XcU5 * XcU5)\n ARzE = oyIN.sum(WKvO * XcU5 * XcU5)\n sGxa = oyIN.sum(LVAh * XcU5 * XcU5)\n a1PO = XcU5 * (WKvO - ARzE / o4sw)\n OPu9 = oyIN.sum(a1PO * a1PO)\n ... | [
"0.690853",
"0.6397834",
"0.6342445",
"0.62717825",
"0.62190014",
"0.60968226",
"0.60688967",
"0.6050477",
"0.60479057",
"0.60327435",
"0.5988869",
"0.5959228",
"0.59492624",
"0.59492624",
"0.5939684",
"0.5932693",
"0.59317464",
"0.5917065",
"0.5917065",
"0.5917065",
"0.59012... | 0.0 | -1 |
Return entity specific state attributes. | def TzCU(YKHO) -> GySg[str, ImMB]:
o8Kj: dict[str, ImMB] = {TMuR: {}, TtME: YKHO.next_pickup_event.state.value}
for RWDK in YKHO.next_pickup_event.pickups:
if RWDK.name not in o8Kj[TMuR]:
o8Kj[TMuR][RWDK.name] = {JoWe: RWDK.category.value, lILe: RWDK.quantity}
else:
o8Kj[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TzCU(YKHO) -> GySg[str, ImMB] | None:\n return YKHO.entity_description.attr_fn(YKHO.coordinator.data)",
"def upgy(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._entity.get(VogU, {})",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5e... | [
"0.77880514",
"0.7753825",
"0.7723497",
"0.75742304",
"0.7506973",
"0.74901575",
"0.74901575",
"0.7486428",
"0.7486428",
"0.7417578",
"0.7388287",
"0.7388287",
"0.7388287",
"0.73793864",
"0.7336377",
"0.73197085",
"0.7298241",
"0.72695273",
"0.7248613",
"0.72151804",
"0.72151... | 0.0 | -1 |
Userfriendly string representation of card's suit. UTF8 has code points for characters representing suits, this string representation takes advantage of this fact. | def zAg0(YKHO):
hcXw = {xt7e.CLUBS.name: '♣', xt7e.DIAMONDS.name: '♦', xt7e.HEARTS.name: '♥', xt7e.SPADES.name: '♠'}
return f'{hcXw[YKHO.name]}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iCfd(YKHO: Card) -> str:\n return YKHO._suit",
"def B8Q7(iCfd: AllowedSuits) -> str:\n return CQO0.__SuitStrings[int(iCfd)]",
"def MwZi(YKHO, iCfd: Suit) -> str:\n if iCfd == VXct.HEARTS:\n return '♥'\n elif iCfd == VXct.DIAMONDS:\n return '♦'\n elif iCfd == VXct.CLUBS:\n ... | [
"0.78826934",
"0.7637993",
"0.746634",
"0.7453483",
"0.73861986",
"0.73525447",
"0.72828704",
"0.7239016",
"0.7210447",
"0.71619314",
"0.71032685",
"0.7076458",
"0.70718396",
"0.7054972",
"0.7029223",
"0.70189",
"0.7018392",
"0.7014272",
"0.69564855",
"0.6954832",
"0.6953194"... | 0.69124925 | 28 |
Userfiendly string representation of the card. | def zAg0(YKHO):
return f'{YKHO.suit}{YKHO.value}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'Card: suit: {:10s} rank: {} value: {:3d}'.format(YKHO.__card_suit_name, YKHO.__card_suit_rank, YKHO.__card_value)",
"def zAg0(YKHO):\n return 'Card({0}, {1})'.format(str(YKHO.get_number()), YKHO.get_colour().__str__())",
"def zAg0(YKHO):\n EsFv = ''\n for dxhl in YKHO.card... | [
"0.8175583",
"0.8110754",
"0.81051433",
"0.80641586",
"0.7943946",
"0.7926184",
"0.79188067",
"0.7902029",
"0.7885659",
"0.7876965",
"0.7845667",
"0.7814639",
"0.78124726",
"0.7811242",
"0.77760285",
"0.77558166",
"0.7749019",
"0.77426046",
"0.7742085",
"0.7725982",
"0.772189... | 0.6897859 | 97 |
Base instance for orbital objects with mass, positions, velocities, and satellites | def FIMM(YKHO, bMbF: u.Quantity=None, dQgj: u.Quantity=None, p8Jz: u.Quantity=None, **B2fa):
super().__init__(**B2fa)
YKHO._position = None
YKHO.position = dQgj
YKHO._time_domain = None
YKHO._all_positions = None
YKHO._all_velocities = None
YKHO._position_interpolator = None
YKHO._veloci... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, bMbF, r1VO, vR7B, KOyn):\n YKHO.type = -1\n YKHO.pos = [0, 0]\n YKHO.mass = bMbF\n YKHO.radius = r1VO\n YKHO.atm_thickness = vR7B\n YKHO.img = zirH.gen_planet(KOyn, YKHO.radius, YKHO.atm_thickness, tuKI.randint(4, 8))\n YKHO.scaled_img = None\n YKHO.vel = [0, 0]",
"def FIMM... | [
"0.71385187",
"0.68231165",
"0.68090665",
"0.67945933",
"0.6778128",
"0.67724365",
"0.67261666",
"0.6692932",
"0.66848505",
"0.6628836",
"0.6592699",
"0.6577665",
"0.6574732",
"0.65545094",
"0.6554286",
"0.6504069",
"0.6499514",
"0.6469821",
"0.6461338",
"0.64578485",
"0.6446... | 0.7407959 | 0 |
Update the mass and the associated orbiting body's orbits, if relevant | def bMbF(YKHO, bMbF):
if bMbF is None:
YKHO._mass = None
elif isinstance(bMbF, P6bq.Quantity):
YKHO._mass = bMbF.to(P6bq.solMass)
else:
YKHO._mass = P6bq.Quantity(bMbF, unit=P6bq.solMass)
qmLP.warn('Casting mass, input as ' + str(bMbF) + ', to solar masses', v2RR)
for mJD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n WKvO = YKHO.reac_init.get(None)\n eTkf = YKHO.get_bin(WKvO)\n if eTkf < 0 or eTkf >= YKHO.nbins:\n return\n L14y = YKHO.get_bias_potential(WKvO)\n YKHO.bias_array[eTkf] += YKHO.mod_factor\n Z6gX = YKHO.get_bias_potential(WKvO)\n YKHO.mc.current_energy += Z6gX - L14y\n ... | [
"0.6487097",
"0.63730216",
"0.6368355",
"0.63159704",
"0.6193361",
"0.61507875",
"0.6061816",
"0.60611063",
"0.601919",
"0.5986803",
"0.5983958",
"0.5969228",
"0.5948381",
"0.5888449",
"0.58838224",
"0.5847347",
"0.58385366",
"0.5822619",
"0.58109885",
"0.579019",
"0.5785141"... | 0.6131145 | 6 |
Return a copy of the list of exoplanets held by the Star Returns [MassiveObject] List of MassiveObject instances | def f0o4(YKHO) -> ['MassiveObject']:
return YKHO._orbiting_bodies_list.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GrO7(YKHO):\n return YKHO._objets",
"def cRUF(YKHO) -> list:\n return YKHO.__objects",
"def h4Bf(YKHO):\n Mkmy = []\n for XP5J in YKHO._planets:\n if XP5J.Owner() != 1:\n continue\n Mkmy.append(XP5J)\n return Mkmy",
"def _i9v(YKHO):\n Mkmy = []\n for eHNT in ... | [
"0.6258693",
"0.6138606",
"0.6129173",
"0.59776026",
"0.5959442",
"0.59314257",
"0.5891372",
"0.5888431",
"0.5839757",
"0.579073",
"0.5769216",
"0.57629967",
"0.57402253",
"0.57384247",
"0.57306355",
"0.57278246",
"0.56791216",
"0.56643814",
"0.5635764",
"0.563063",
"0.560925... | 0.60873795 | 3 |
Mass of the object that this object orbits. Useful for updating Keplerian orbits Returns u.Quantity Mass of the object this object orbits | def bQPm(YKHO):
return YKHO._parent_mass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bMbF(YKHO) -> float:\n return YKHO.atomic_weight",
"def faJP(YKHO):\n pass",
"def bMbF(YKHO) -> P6bq.kg:\n ...",
"def nu1Q(YKHO):\n return YKHO.density_ * YKHO.total_volume()",
"def bMbF(YKHO):\n return YKHO._mass",
"def bMbF(YKHO):\n return YKHO._mass",
"def faJP(YKHO):\n retu... | [
"0.78566724",
"0.7605731",
"0.75580955",
"0.7546348",
"0.75157267",
"0.75157267",
"0.74395883",
"0.7378664",
"0.7303437",
"0.72665894",
"0.72634864",
"0.7198747",
"0.7168004",
"0.71555674",
"0.712826",
"0.71218",
"0.7111929",
"0.70990044",
"0.70887536",
"0.7081199",
"0.708021... | 0.0 | -1 |
Updates this object's copy of the parent's mass | def bQPm(YKHO, bQPm: u.Quantity):
if bQPm is None:
YKHO._parent_mass = None
elif isinstance(bQPm, P6bq.Quantity):
YKHO._parent_mass = bQPm
else:
YKHO._parent_mass = P6bq.Quantity(bQPm, P6bq.M_sun)
qmLP.warn('Casting star mass, input as ' + str(bQPm) + ', to M_sun', v2RR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQPm(YKHO, bQPm: u.Quantity):\n if bQPm is None:\n YKHO._parent_mass = None\n else:\n if isinstance(bQPm, P6bq.Quantity):\n YKHO._parent_mass = bQPm\n else:\n YKHO._parent_mass = P6bq.Quantity(bQPm, P6bq.M_sun)\n qmLP.warn('Casting star mass, input as... | [
"0.7128903",
"0.68290675",
"0.68290675",
"0.6789538",
"0.65415454",
"0.6409022",
"0.6296944",
"0.62062424",
"0.61541945",
"0.6089907",
"0.60560834",
"0.6023595",
"0.6010201",
"0.5999683",
"0.59988415",
"0.5933544",
"0.5867763",
"0.5746477",
"0.57198876",
"0.57084405",
"0.5700... | 0.7107442 | 1 |
The normalize method of the Integer class rounds floats | def ljTf(YKHO):
C3ST = pnMw()
C3ST.field_one = 142.432
BWXx = C3ST.formatted().get('field_one')
YKHO.assertEqual(BWXx, '142')
C3ST.field_one = 142.863
BWXx = C3ST.formatted().get('field_one')
YKHO.assertEqual(BWXx, '143') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(Emd4, VXjJ):\n VXjJ = VXjJ.astype(float)\n VXjJ = VXjJ - oyIN.min(VXjJ)\n VXjJ = VXjJ / oyIN.max(VXjJ)\n return VXjJ",
"def NkkI(WKvO):\n return (WKvO - WKvO.min()) / (WKvO.max() - WKvO.min())",
"def NkkI(WKvO):\n return (WKvO - 1.5) / 1.5",
"def jnV4(Ty9i, min, max):\n return f... | [
"0.7294425",
"0.7202558",
"0.7155004",
"0.71082175",
"0.70894396",
"0.7024414",
"0.7023614",
"0.7020593",
"0.7015543",
"0.70073056",
"0.69751555",
"0.6909072",
"0.6903338",
"0.68846077",
"0.68714863",
"0.6842321",
"0.67889637",
"0.67870533",
"0.6763089",
"0.67477745",
"0.6739... | 0.0 | -1 |
Generates a random number between 1 and 13 for the card number. | def F48w(YKHO):
YKHO.card_active = YKHO.card_next
YKHO.card_next = ajWY(1, 13) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OPGp(Emd4):\n while True:\n jzdc = ''\n for WKvO in range(0, 16):\n jzdc += str(ajWY(0, 9))\n if jzdc in Emd4.cardNoList:\n continue\n else:\n return jzdc",
"def gTYQ():\n return tuKI.randint(1, 101)",
"def AIx_():\n return tuKI.randint(... | [
"0.7789865",
"0.7658997",
"0.7577906",
"0.7331412",
"0.73264706",
"0.72759265",
"0.72407115",
"0.72067946",
"0.72020113",
"0.71593046",
"0.714804",
"0.70990556",
"0.7081153",
"0.7054785",
"0.70329076",
"0.6968574",
"0.69588107",
"0.6954758",
"0.6954758",
"0.69473535",
"0.6895... | 0.63514316 | 69 |
Returns the age of the entity. | def N_N1(i_8Y):
wzkt = qcWV.now()
i_8Y = qcWV.strptime(i_8Y, '%Y-%m-%d')
ZJe_ = (wzkt - i_8Y).days
return str(ZJe_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_N1(YKHO):\n return YKHO.age",
"def N_N1(YKHO):\n return YKHO.age",
"def ZJe_(YKHO):\n return YKHO._age",
"def lUqL(YKHO):\n return YKHO.__age",
"def lUqL(YKHO):\n return YKHO.age",
"def ZJe_(YKHO):\n return YKHO.__age",
"def lM4z(YKHO):\n return YKHO.age",
"def N_N1(YKHO):\... | [
"0.83029515",
"0.82824844",
"0.8240184",
"0.8223826",
"0.8222872",
"0.8183668",
"0.81817263",
"0.8168107",
"0.8166127",
"0.8141178",
"0.81208587",
"0.8053942",
"0.8053942",
"0.8046375",
"0.8027934",
"0.80235356",
"0.7980784",
"0.7975473",
"0.7974655",
"0.7970391",
"0.7902978"... | 0.6910657 | 61 |
Build a set of embedding sequences from given time series `time_series` with lag `tau` and embedding dimension `embedding_dimension`. Let time_series = [x(1), x(2), ... , x(N)], then for each i such that 1 < i < N (embedding_dimension 1) tau, we build an embedding sequence, Y(i) = [x(i), x(i + tau), ... , x(i + (embedd... | def aiQ6(X05Z, jmzt, ONov):
if not type(X05Z) == oyIN.ndarray:
_r2c = oyIN.asarray(X05Z)
else:
_r2c = X05Z
ROpF = (_r2c.size - jmzt * (ONov - 1), ONov)
FEri = (_r2c.itemsize, jmzt * _r2c.itemsize)
return oyIN.lib.stride_tricks.as_strided(_r2c, shape=ROpF, strides=FEri) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cggl(LVAh, jmzt, tpio, P6bq):\n Kt_s = oyIN.size(LVAh)\n aPd6 = Kt_s - (tpio - 1) * jmzt\n erdM = Kt_s - aPd6\n b78R = oyIN.zeros((aPd6, tpio))\n for YRbF in range(aPd6):\n for r845 in range(tpio):\n b78R[YRbF, r845] = LVAh[YRbF + erdM - r845 * jmzt]\n v173 = LVAh[erdM + P6b... | [
"0.596444",
"0.56634563",
"0.5594438",
"0.55461705",
"0.5504329",
"0.5500311",
"0.54924256",
"0.5483698",
"0.5458954",
"0.54361373",
"0.5435036",
"0.5413504",
"0.541036",
"0.5390857",
"0.53729874",
"0.53680897",
"0.5364257",
"0.5305738",
"0.5301992",
"0.52775216",
"0.5260945"... | 0.79793066 | 0 |
Parse the stream id from a provided link. | def U8FR(QZnA: str) -> str:
id = finE('http(s)?://', '', QZnA).replace('www.reddit.com/', '').replace('old.reddit.com/', '').replace('reddit.com/', '').replace('redd.it/', '')
return finE('(rpan/r|r)/(.*?)/(comments/)?', '', id).split('/')[0].split('?')[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HaA_(YKHO, bD7m: str) -> str:\n return bD7m.split('=')[1]",
"def zsfu(YKHO, QZnA):\n return QZnA.split('.')[0]",
"def sQTt(QZnA):\n return QZnA.split('/')[-1]",
"def hJGY(Emd4, QZnA):\n _hkX = G4JS.get(QZnA).text\n chHR = _hkX[_hkX.index('\"wgArticleId\":') + 14:]\n return chHR[0:chHR.i... | [
"0.6914142",
"0.66984254",
"0.6625832",
"0.6601291",
"0.65714145",
"0.65497833",
"0.6331849",
"0.6312549",
"0.62172526",
"0.6152426",
"0.59730875",
"0.5859755",
"0.5818237",
"0.57346076",
"0.57257986",
"0.5700119",
"0.5606227",
"0.5579268",
"0.5557817",
"0.55192745",
"0.55132... | 0.62691927 | 8 |
constructor with a protocol instance | def FIMM(YKHO, iquo, **B2fa):
RYYH.StandardIO.__init__(YKHO, iquo, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(Emd4, eNvp=rQow, **c_sp):\n return super().__new__(Emd4, implements=eNvp, **c_sp)",
"def FIMM(YKHO, xseN: Protocol):\n YKHO.super_protocol = xseN",
"def nKFu(YKHO, rRzo):\n XP5J = YKHO.protocol(YKHO.cb)\n XP5J.factory = YKHO\n return XP5J",
"def zCNU(YKHO, mLim):\n pass",
"def FI... | [
"0.7293596",
"0.7251568",
"0.70925736",
"0.7056007",
"0.69300574",
"0.6902885",
"0.67903554",
"0.67400277",
"0.6678981",
"0.6678981",
"0.6660328",
"0.6655516",
"0.6612278",
"0.65664744",
"0.64747727",
"0.6460916",
"0.64035785",
"0.63967705",
"0.63967705",
"0.6348786",
"0.6309... | 0.6161445 | 43 |
update a app https listener rule with the specified options. | def bHhM(YKHO, jXia, xsjL, IesV=None, zbjk=None, bbRD=None, bhB0=None, xABd=None, XoOf=None, oNFu=None, qlve=None, N9f4=None, BWmu=None, RK44=None, Mt3u=None, UqiP=None, wI0N=None, GPtr=None):
pmON = BfDw.append_uri(YKHO.version, 'appblb', jXia, 'HTTPSlistener')
NArs = {}
if wI0N is None:
NArs[b'cli... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _bg4(YKHO, jXia, xsjL, IesV=None, qlve=None, N9f4=None, BWmu=None, RK44=None, Mt3u=None, UqiP=None, wI0N=None, GPtr=None):\n pmON = BfDw.append_uri(YKHO.version, 'appblb', jXia, 'SSLlistener')\n NArs = {}\n if wI0N is None:\n NArs[b'clientToken'] = TD7k()\n else:\n NArs[b'clientToken'... | [
"0.615553",
"0.6128696",
"0.6060787",
"0.589879",
"0.5851926",
"0.5815074",
"0.5700331",
"0.56648535",
"0.5389118",
"0.52632624",
"0.5201644",
"0.51947016",
"0.5185724",
"0.518386",
"0.518386",
"0.5125841",
"0.5111415",
"0.5101508",
"0.5092169",
"0.5085816",
"0.5080749",
"0... | 0.57899034 | 6 |
update a app ssl listener rule with the specified options. | def _bg4(YKHO, jXia, xsjL, IesV=None, qlve=None, N9f4=None, BWmu=None, RK44=None, Mt3u=None, UqiP=None, wI0N=None, GPtr=None):
pmON = BfDw.append_uri(YKHO.version, 'appblb', jXia, 'SSLlistener')
NArs = {}
if wI0N is None:
NArs[b'clientToken'] = TD7k()
else:
NArs[b'clientToken'] = wI0N
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aaAx(t3yS=None, fMvF=None, _e60=None, HNYX=None, j6eQ=None, trQA=None, IffF=None):\n pass",
"async def update_listener(RUgX: OpenPeerPower, bTKY: ConfigEntry):\n oimG = RUgX.data[Sugg][bTKY.entry_id][RGZf]\n if oimG.update_options(bTKY.options):\n await RUgX.config_entries.async_reload(bTKY.e... | [
"0.63239",
"0.5974474",
"0.590516",
"0.5903745",
"0.5802753",
"0.57526225",
"0.5719027",
"0.55764955",
"0.5486511",
"0.5322513",
"0.5212309",
"0.52085537",
"0.520609",
"0.51798856",
"0.50793624",
"0.5044444",
"0.5037312",
"0.50008774",
"0.4993113",
"0.4947689",
"0.493821",
... | 0.6506361 | 0 |
Repeat calls to func with specified arguments. | def K2OT(JfyU: Callable, WXkz: Int=None, *qIxc):
if WXkz is None:
return YcfV(JfyU, wPFE(qIxc))
return YcfV(JfyU, wPFE(qIxc, WXkz)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K2OT(JfyU, WXkz=..., *qIxc):\n ...",
"def wPFE(WXkz):\n\n def wl40(JfyU):\n\n @xBlr.wraps(JfyU)\n def f9XO(*qIxc):\n for YRbF in range(WXkz):\n JfyU(*qIxc)\n return f9XO\n return wl40",
"def c1iB(a4HF=None, WXkz=2):\n if not callable(a4HF):\n ... | [
"0.8348822",
"0.7383481",
"0.7278132",
"0.7147411",
"0.6926186",
"0.6858454",
"0.681454",
"0.6676691",
"0.6548123",
"0.6423723",
"0.6281111",
"0.6266242",
"0.6193877",
"0.616484",
"0.61387897",
"0.6055721",
"0.60460764",
"0.6040168",
"0.60357684",
"0.59876573",
"0.59765583",
... | 0.82544696 | 1 |
Return function name where this function is called. | def LwQX() -> golO:
f4IJ = tq_1.currentframe()
return tq_1.getframeinfo(f4IJ).function | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RKN_():\n return HwRy._getframe(1).f_code.co_name",
"def mkPq(YKHO):\n return YKHO._function_name",
"def K1_0(YKHO):\n return YKHO.function.split('.')[-1]",
"def W0tD(YKHO, JfyU):\n return JfyU.__name__",
"def mWFP(YKHO):\n return YKHO._func_name",
"def mkPq(YKHO) -> str:\n ...",
... | [
"0.84764487",
"0.84363186",
"0.8407655",
"0.840064",
"0.8346724",
"0.8247539",
"0.8247539",
"0.82203436",
"0.8139367",
"0.8101158",
"0.8036246",
"0.8028335",
"0.80114824",
"0.80089456",
"0.7983198",
"0.7983198",
"0.7983198",
"0.7983198",
"0.7983198",
"0.7983198",
"0.78970206"... | 0.752392 | 33 |
Try to parse "v" to a builtin numeric type (float or int), otherwise "v" will be returned unchanged. | def Z8Dy(Ty9i):
Mkmy = MkEV(Ty9i, float)
Mkmy = Mkmy if isinstance(Mkmy, float) and (not Mkmy.is_integer()) else MkEV(Ty9i, int)
return Mkmy if isinstance(Mkmy, (float, int)) else Ty9i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kVlN(KCHu, QpfX, mh5P):\n try:\n return int(KCHu)\n except ValueError:\n try:\n return float(KCHu)\n except ValueError:\n return None",
"def z57r(Ty9i):\n try:\n return int(Ty9i)\n except ValueError:\n try:\n return float(Ty9i)\n... | [
"0.70500183",
"0.7014992",
"0.69735825",
"0.6901824",
"0.6765042",
"0.67519504",
"0.6641358",
"0.66362447",
"0.6579596",
"0.6465791",
"0.6374913",
"0.6369601",
"0.63295346",
"0.6323884",
"0.6323884",
"0.63103694",
"0.6279044",
"0.6267719",
"0.6230722",
"0.62302774",
"0.622967... | 0.71620655 | 0 |
Get the variance reduction factor for the 0th derivative | def kFCd(YKHO, exwG: int) -> float:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M5jT():\n return I8JS",
"def t2XD(YKHO):\n QXyG = YKHO.coefficients['jvector']\n h1Ga = YKHO.coefficients['sumP_gldm']\n c223 = XTiz.sum(YKHO.coefficients['pd'] * QXyG) / h1Ga\n rDXN = XTiz.sum(YKHO.coefficients['pd'] * (QXyG - c223) ** 2) / h1Ga\n return rDXN",
"def n1ML(YKHO):\n retu... | [
"0.7485951",
"0.73268354",
"0.70989186",
"0.7057859",
"0.6978981",
"0.6933578",
"0.6921232",
"0.6908358",
"0.68777853",
"0.6868716",
"0.68684834",
"0.68574935",
"0.6815776",
"0.67916864",
"0.6771109",
"0.67594194",
"0.6751611",
"0.6726715",
"0.6721388",
"0.67133427",
"0.66815... | 0.0 | -1 |
Initialize a dual layer by initializing the variables needed to compute this layer's contribution to the upper and lower bounds. In the paper, if this object is at layer i, this is initializing `h' with the required cached values when nu[i]=I and nu[i]=I. | def FIMM(YKHO):
super(AX6O, YKHO).__init__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yYlq(gEmA):\n if gEmA.weight.ndimension() == 4:\n _LFN, Ya2q, H2v2, TVTK = gEmA.weight.size()\n exwG = Ya2q * H2v2 * TVTK\n elif gEmA.weight.ndimension() == 2:\n _LFN, exwG = gEmA.weight.size()\n M1Jx = epAf.sqrt(2.0 / exwG)\n NXpY = M1Jx * epAf.sqrt(3.0)\n gEmA.weight.data.... | [
"0.6175855",
"0.61199605",
"0.6091163",
"0.60800016",
"0.6021496",
"0.59466076",
"0.59439266",
"0.5867749",
"0.5867264",
"0.58642024",
"0.5863248",
"0.5863248",
"0.5863248",
"0.5863248",
"0.5863248",
"0.5842932",
"0.5842932",
"0.58300674",
"0.57985324",
"0.5797501",
"0.578463... | 0.0 | -1 |
Return this layers contribution to the upper and lower bounds. In the paper, this is the `h' upper bound where nu is implicitly given by c=I and c=I. | def X7zS(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A2Fp(YKHO) -> float:\n return YKHO._ub",
"def mlQ2(YKHO, eRdl=None):\n T_ti = K1eC(YKHO.domain().base_ring())\n if not T_ti in FWvB():\n if T_ti == rCM3:\n eHNT = YKHO._number_field_from_algebraics()\n else:\n raise NotImplementedError('fraction field of the base ... | [
"0.6355216",
"0.6347631",
"0.6189291",
"0.60717785",
"0.5985237",
"0.59559107",
"0.592719",
"0.59160864",
"0.5911381",
"0.58873165",
"0.5884286",
"0.5865804",
"0.5847958",
"0.5847958",
"0.5847958",
"0.5847336",
"0.58236617",
"0.5822862",
"0.58197355",
"0.5816679",
"0.581271",... | 0.5761468 | 25 |
Given previous inputs, apply the transposed affine layer (backward pass) | def Kt_s(YKHO, *fUYa):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fav1(WKvO, yzQ0, Fg_i):\n yvT9 = None\n 'newdim = 1\\n i = 1\\n while i < len(x.shape):\\n newdim *= x.shape[i]\\n i += 1\\n x_trans = np.reshape(x, newshape = (x.shape[0], newdim))\\n z = np.matmul(x_trans, w) + b\\n out = z'\n CX6k = WKvO.reshape(WKvO.shape[0], -1)\n ... | [
"0.6863548",
"0.68519205",
"0.6813288",
"0.67815053",
"0.66739094",
"0.6664665",
"0.6656346",
"0.66538614",
"0.6641244",
"0.6639814",
"0.66170186",
"0.6607207",
"0.65909445",
"0.6587318",
"0.6586615",
"0.6580694",
"0.6580592",
"0.6569201",
"0.6563841",
"0.65535986",
"0.654331... | 0.0 | -1 |
Convert to backward compatible pth files. PyTorch 1.6 uses a updated version of torch.save. In order to be compatible with previous PyTorch version, save it with _use_new_zipfile_serialization=False. | def oLKS(ckRy):
print('# Convert to backward compatible pth files ...')
for or8S, pmON in enumerate(ckRy):
print(f'{or8S + 1:03d}: Processing {pmON}')
sqFK = False
with L3cm(pmON, 'rb') as Rm3U:
if aTfP(Rm3U):
sqFK = True
if sqFK:
Zxma = ht... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CR3s(C3ST: nn.Module, pmON: str, Ux0P: str) -> str:\n q9qR = None\n try:\n if ht2j.cuda.is_available():\n C3ST = _qLf(C3ST.module)\n C3ST.cpu()\n y0cW = qcWV.now().isoformat('-', timespec='minutes').replace(':', '-')\n q9qR = Hy7s.path.join(pmON, y0cW + '_' + Ux... | [
"0.61836255",
"0.6091527",
"0.6086909",
"0.5952622",
"0.59402287",
"0.58971924",
"0.58772033",
"0.5872645",
"0.5853481",
"0.58514524",
"0.58514524",
"0.5844732",
"0.58297944",
"0.58167005",
"0.57965016",
"0.57781583",
"0.5759915",
"0.575833",
"0.57312834",
"0.57216805",
"0.56... | 0.6528508 | 0 |
Load the pickled dictionary of model from disk, create a husk `cls` instance and fill the model dictionary. | def tyeH(Emd4, pmON, jNi0, PXGI=1):
import joblib
YKHO = Emd4(cam_id_list=None, unit=PXGI)
for H5ew in jNi0:
try:
YKHO.model_dict[H5ew] = joblib.load(pmON.format(cam_id=H5ew))
except IndexError:
YKHO.model_dict[H5ew] = joblib.load(pmON.format(H5ew))
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(Emd4, GwO0, qIxc=None):\n with open(GwO0, 'rb') as eHNT:\n cGnr = t2lc.load(eHNT)\n Z_lw = Emd4()\n Z_lw.__dict__ = {**Z_lw.__dict__, **cGnr}\n Uj08 = Z_lw.name + '.pkl'\n if Hy7s.path.basename(GwO0) == Uj08:\n Uj08 = Z_lw.name + '_model.pkl'\n Z_lw.model = Z_lw.model_class... | [
"0.71807045",
"0.70502883",
"0.70152575",
"0.7014458",
"0.7006561",
"0.6944436",
"0.69316113",
"0.69312924",
"0.6920784",
"0.69108534",
"0.6902641",
"0.68411213",
"0.68285793",
"0.6828223",
"0.6810849",
"0.6738294",
"0.6738294",
"0.67368746",
"0.67081195",
"0.6686106",
"0.668... | 0.0 | -1 |
Get NONBONDED_PARM_INDEX for atomtype_i and atomtype_j LJ interaction. called by remove_BCOEF Returns and index using Amber prmtop file convention (start index = 1). If parm_data is modified as Python list the index needs to be reduced by 1. | def jgue(P4BP, jcmG, FfDv):
YRbF, r845 = (P4BP.LJ_types[jcmG], P4BP.LJ_types[FfDv])
wfwy = wfwy = RmtG.pointers['NTYPES']
twK4 = RmtG.parm_data['NONBONDED_PARM_INDEX'][wfwy * (YRbF - 1) + r845 - 1] - 1
return twK4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jgue(P4BP, jcmG, FfDv):\n YRbF, r845 = (P4BP.LJ_types[jcmG], P4BP.LJ_types[FfDv])\n wfwy = wfwy = RmtG.pointers['NTYPES']\n twK4 = RmtG.parm_data['NONBONDED_PARM_INDEX'][wfwy * (YRbF - 1) + r845 - 1] - 1\n return twK4",
"def PpF9(P4BP, RMuC):\n for YRbF in oyIN.arange(len(RMuC)):\n jcmG... | [
"0.8003263",
"0.6421365",
"0.64061487",
"0.5251776",
"0.51575696",
"0.49548697",
"0.46917996",
"0.45774016",
"0.4556971",
"0.45508566",
"0.4544788",
"0.45391923",
"0.451399",
"0.45053518",
"0.44882768",
"0.4458996",
"0.44565225",
"0.44519615",
"0.44446197",
"0.443332",
"0.442... | 0.8000603 | 1 |
Check whether the tail of vec1 is on the head of vec2 | def NxPV(OhMf, rsF9, v8Fa):
IiGY, JNVx = v8Fa.get_headNtip(rsF9)
WuaF = oyIN.arctan2(v8Fa.y, v8Fa.x)
Wskb = 0.5 * oyIN.sqrt((IiGY[0] - JNVx[0]) ** 2 + (IiGY[1] - JNVx[1]) ** 2)
hgjH = [IiGY[0] + Wskb * oyIN.cos(WuaF), IiGY[1] + Wskb * oyIN.sin(WuaF)]
if oyIN.sqrt((OhMf[0] - hgjH[0]) ** 2 + (OhMf[1] ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m3iq(he6J, lSjb, v8Fa):\n FxcA = he6J.cross(lSjb)\n g5BG = he6J.cross(v8Fa)\n return FxcA.dot(g5BG) < 0.0 and (he6J.dot(lSjb) > 0.0 or he6J.dot(v8Fa) > 0.0)",
"def XK3X(jlSq, hQHm):\n WhY1 = iter(hQHm)\n return all((Z9rn in WhY1 for Z9rn in jlSq))",
"def jaJJ(hQHm, jlSq):\n assert len(hQH... | [
"0.6717372",
"0.6338625",
"0.6181715",
"0.6160965",
"0.61296815",
"0.6109765",
"0.6081657",
"0.60701853",
"0.6056975",
"0.6006837",
"0.6004211",
"0.5944947",
"0.5908934",
"0.58701473",
"0.5868838",
"0.58420867",
"0.5826438",
"0.58184296",
"0.57862955",
"0.5746512",
"0.5740774... | 0.6834184 | 0 |
Unsubscribe all subscriptions of the webhook with specified ``webhook_id``, and delete the webhook. The ``application_name`` is required when the webhook subscribe application level events. | def PTpj(YKHO, L5KP):
yWCP = YKHO._get_webhook_or_404(L5KP)
YKHO._check_authority(yWCP.hook_type)
if yWCP.is_normal:
yWCP = YKHO._get_webhook_or_404(L5KP)
yWCP.batch_unsubscribe()
yWCP.delete()
return eqVi() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X1Iy(YKHO, L5KP):\n return YKHO.client._delete('/webhooks/{}'.format(L5KP))",
"def i1SV(YKHO):\n vzeF.debug('Unregistering webhook %s', YKHO.webhook_id)\n yWCP.async_unregister(YKHO._hass, YKHO.webhook_id)\n YKHO.webhook_id = None",
"async def webhook_delete(YKHO, yWCP):\n L5KP = OfTF(yWCP)\... | [
"0.7619321",
"0.7248318",
"0.719797",
"0.6992855",
"0.66319615",
"0.6398183",
"0.6371452",
"0.62046",
"0.6191937",
"0.6054505",
"0.5876157",
"0.58258426",
"0.58074033",
"0.57836896",
"0.5679151",
"0.5674476",
"0.5620473",
"0.55244213",
"0.55175006",
"0.54428303",
"0.54191583"... | 0.78026694 | 0 |
Convert XML derived dict to tf.Example proto. Notice that this function normalizes the bounding box coordinates provided by the raw data. | def m_2V(LNo8, Kp9k='JPEGImages'):
p4m8 = Hy7s.path.join(nPrm['folder'], Kp9k, nPrm['filename'])
Zg0d = Hy7s.path.join(dx6l, p4m8)
with ZylS.gfile.GFile(Zg0d, 'rb') as hOYR:
_gs9 = hOYR.read()
KlzJ = xDSY.BytesIO(_gs9)
LNo8 = uGYG.Image.open(KlzJ)
if LNo8.format != 'JPEG':
raise ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AF4J(Ykaq):\n W5Xi = {'image/encoded': ZylS.io.FixedLenFeature([], dtype=ZylS.string, default_value=''), 'image/class/label': ZylS.io.FixedLenFeature([], dtype=ZylS.int64, default_value=-1), 'image/class/text': ZylS.io.FixedLenFeature([], dtype=ZylS.string, default_value='')}\n Ix7e = ZylS.io.VarLenFeatu... | [
"0.6925035",
"0.69242346",
"0.6818545",
"0.67555994",
"0.6416341",
"0.62410146",
"0.6173121",
"0.6098637",
"0.60750574",
"0.60438174",
"0.6041921",
"0.6018542",
"0.5983748",
"0.59731245",
"0.5893755",
"0.589111",
"0.5883771",
"0.58746016",
"0.58659565",
"0.5863354",
"0.586079... | 0.56557024 | 42 |
Ndimensional meshgrid Just pass sequences of coordinates arrays | def nlZk(*XoB7):
XoB7 = tuple(XoB7)
tm40 = list(map(len, XoB7))
tpio = len(XoB7)
Rv0k = 1
for KCHu in tm40:
Rv0k *= KCHu
TK2h = []
for YRbF, ezWE in enumerate(XoB7):
AfXr = [1] * tpio
AfXr[YRbF] = tm40[YRbF]
fQvb = oyIN.asarray(ezWE).reshape(AfXr)
for ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKm(*qIxc):\n return oyIN.meshgrid(*qIxc, indexing='ij')",
"def na8F(*qIxc, **B2fa):\n B2fa['indexing'] = 'ij'\n return mWKm(*qIxc, **B2fa)",
"def mWKm(WKvO, LVAh, jxUm=True):\n jzdc = ht2j.arange(0, WKvO)\n Fg_i = ht2j.arange(0, LVAh)\n CAzz = jzdc.repeat(LVAh).view(-1, 1)\n Jd40 = F... | [
"0.7728166",
"0.7390971",
"0.7339463",
"0.726543",
"0.7244088",
"0.7219053",
"0.7067077",
"0.70444584",
"0.7043267",
"0.7043267",
"0.69912946",
"0.69630927",
"0.68789136",
"0.68406105",
"0.68372583",
"0.6832071",
"0.6779926",
"0.6752845",
"0.67493546",
"0.67151487",
"0.670655... | 0.6916081 | 12 |
[determine_relation] accepts a string, [s], and returns a string denoting whether the relation in [s] is =, , or =. Also returned is the index where it occurs. | def lZTZ(KCHu):
if '<=' in KCHu:
return ('<=', KCHu.index('<='))
elif '>=' in KCHu:
return ('>=', KCHu.index('>='))
elif '<' in KCHu:
return ('<', KCHu.index('<'))
elif '>' in KCHu:
return ('>', KCHu.index('>'))
elif '=' in KCHu:
return ('=', KCHu.index('='))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UXz5(pJOu, EoWa):\n for ja_R in pJOu.relations_map:\n for BL9g in ja_R:\n fE52 = EoWa.find(BL9g)\n if fE52 > 0:\n QPk1 = ja_R[0]\n return [QPk1, BL9g, fE52]\n return [None, None, None]",
"def H1T2(pJOu, EoWa='is a', DpkR='warn'):\n EoWa = Eo... | [
"0.6221482",
"0.5516122",
"0.55035466",
"0.54187834",
"0.5304328",
"0.5247145",
"0.5167912",
"0.51277536",
"0.51123536",
"0.5097346",
"0.50373924",
"0.49622378",
"0.49356058",
"0.49274004",
"0.49222094",
"0.49003565",
"0.48813227",
"0.48642182",
"0.4857757",
"0.4847136",
"0.4... | 0.77954066 | 0 |
get file content as list of lines where each line represents on operation. | def W86P(vgXP=0):
hGN5 = None
with open(e9aW) as eHNT:
if vgXP == 0:
hGN5 = eHNT.readlines()
else:
hGN5 = []
for YRbF, zFiD in enumerate(eHNT):
if YRbF >= vgXP:
hGN5.append(zFiD)
return hGN5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nybl(YKHO) -> list:\n return YKHO.file_pointer.read().splitlines()",
"def Zveu(pmON):\n return open(pmON).readlines()",
"def zs73(YKHO):\n return YKHO.file.readlines()",
"def WhfH(YKHO):\n return YKHO.__fileHandle.readlines()",
"def JrCa(YKHO):\n x3hu = []\n for nUeQ in YKHO.list_file... | [
"0.6925593",
"0.6562851",
"0.65584666",
"0.64899623",
"0.64606917",
"0.6422742",
"0.6417113",
"0.6416513",
"0.6409213",
"0.6371955",
"0.63359344",
"0.6333669",
"0.6304029",
"0.6291584",
"0.6282228",
"0.62775695",
"0.6273012",
"0.62484485",
"0.62190574",
"0.6207087",
"0.620708... | 0.0 | -1 |
Initiate a semaphore object. | def FIMM(YKHO, ynHa=10, pQqJ=1):
YKHO.max_permits = ynHa
YKHO.current_permit = pQqJ
YKHO.lock = FRJU() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, H7ow):\n YKHO.ressource = H7ow\n YKHO.sem_writer = T6FA.Semaphore()\n YKHO.sem_reader = T6FA.Semaphore()\n YKHO.sem_nb_writer = T6FA.Semaphore()\n YKHO.sem_nb_reader = T6FA.Semaphore()\n YKHO.nb_writer = 0\n YKHO.nb_reader = 0",
"def FIMM(YKHO, mVUw: int, TEj7: int) -> None:\n... | [
"0.6863308",
"0.6773717",
"0.67446166",
"0.66073877",
"0.6600671",
"0.64496285",
"0.6444574",
"0.6398307",
"0.63319486",
"0.6274006",
"0.61594754",
"0.6151682",
"0.61079633",
"0.6045083",
"0.60252184",
"0.60088795",
"0.6003362",
"0.59353423",
"0.5931782",
"0.59207535",
"0.590... | 0.61265385 | 12 |
Returns True if robot has any lifes left. | def Bpvr(YKHO):
return YKHO.lifes > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RzNo(YKHO):\n return YKHO.l is not None",
"def e3sM(YKHO):\n if YKHO.pupils_located:\n return YKHO.horizontal_ratio() >= 0.65",
"def e3sM(YKHO):\n if YKHO.pupils_located:\n return YKHO.horizontal_ratio() >= 0.65",
"def e3sM(YKHO):\n if YKHO.pupils_located:\n return YKHO.h... | [
"0.69118863",
"0.6712525",
"0.6712525",
"0.6712525",
"0.6709423",
"0.66382843",
"0.65860945",
"0.6576785",
"0.65679073",
"0.6510405",
"0.6510405",
"0.6510405",
"0.6494563",
"0.6492481",
"0.648941",
"0.64491165",
"0.6447306",
"0.6437847",
"0.6431297",
"0.6374949",
"0.63695616"... | 0.6768634 | 1 |
Returns the title of playlist. | def leAC(YKHO) -> str:
return YKHO._title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DL6e(YKHO, dQgj):\n UTX6 = YKHO.__sendUserMessage(dQgj, YKHO.IPC_GETPLAYLISTTITLE)\n return YKHO.__readStringFromMemory(UTX6)",
"def mWFP(YKHO) -> str:\n return YKHO._playlist_name",
"def TXXq(YKHO, dQgj=None):\n if dQgj is None:\n dQgj = YKHO.get_list_position()\n if dQgj is None... | [
"0.8462115",
"0.7957227",
"0.77337563",
"0.7434271",
"0.7427388",
"0.737076",
"0.73063755",
"0.7300751",
"0.71802855",
"0.7176031",
"0.71067286",
"0.7070558",
"0.70616394",
"0.70605403",
"0.70605403",
"0.70170987",
"0.7004628",
"0.6999017",
"0.69895834",
"0.6988488",
"0.69335... | 0.0 | -1 |
Create and save a User with the given email and password. | def lYUQ(YKHO, D3lj, jTXt, **wdCM):
if not D3lj:
raise ValueError(bGrB('The Email must be set'))
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n D3lj = YKHO.normalize_email(D3lj)\n ... | [
"0.8765867",
"0.85452795",
"0.85368717",
"0.8527806",
"0.85269475",
"0.85257876",
"0.85186416",
"0.8508724",
"0.8504736",
"0.8504567",
"0.8504567",
"0.8504567",
"0.8494046",
"0.8494046",
"0.84938884",
"0.8492852",
"0.849132",
"0.8490454",
"0.8488869",
"0.84884715",
"0.8486482... | 0.8488974 | 18 |
Create and save a SuperUser with the given email and password. | def Zp54(YKHO, D3lj, jTXt, **wdCM):
wdCM.setdefault('is_staff', True)
wdCM.setdefault('is_superuser', True)
wdCM.setdefault('is_active', True)
if wdCM.get('is_staff') is not True:
raise ValueError(bGrB('Superuser must have is_staff=True.'))
if wdCM.get('is_superuser') is not True:
ra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)",
"def Zp54(YKHO, D3lj: str, jTXt: str, **wdCM: Dict[str, bool]):\n wdCM.setdefault('is_staff', True)\n wdCM.setdefault('is_superuser', True)\n wdCM.setdefault('is_active', True)\n if wdCM.get('is_staff') is not... | [
"0.8172212",
"0.80961335",
"0.80737674",
"0.8066897",
"0.8062527",
"0.8055973",
"0.80354315",
"0.79798234",
"0.79619473",
"0.7956557",
"0.7947068",
"0.79433084",
"0.79433084",
"0.79433084",
"0.79433084",
"0.79433084",
"0.79433084",
"0.79433084",
"0.79433084",
"0.7940127",
"0.... | 0.79360676 | 20 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
Iyy9 = cmPJ.get('vappEntityId')
aPsP = cmPJ.get('vmEntityIds')
return Emd4(Iyy9, aPsP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83720714",
"0.83362204",
"0.82162297",
"0.8168461",
"0.8168461",
"0.81481326",
"0.8052129",
"0.80303043",
"0.801412",
"0.7979297",
"0.792218",
"0.7919035",
"0.7918213",
"0.7913218",
"0.7906526",
"0.7900627",
"0.7897704",
"0.788651",
"0.7876737",
"0.7854689",
"0.7854689",
... | 0.0 | -1 |
Lead field dot products using Legendre polynomial (P_n) series. | def ziwg(UqYS, tQRH, PoIm, JmU9):
_mqc = 50000000 // (8 * max(JmU9.shape) * 2)
kg7d = oyIN.concatenate([oyIN.arange(0, UqYS.size, _mqc), [UqYS.size]])
Esro = oyIN.empty(UqYS.shape)
for yKcO, JCyR in zip(kg7d[:-1], kg7d[1:]):
GUUu = PoIm(tQRH[yKcO:JCyR])
AeGd = oyIN.tile(UqYS[yKcO:JCyR][:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DAsX(YKHO, IOMN, a1PO, Oa1e, vC9B):\n Ga1L = oyIN.zeros(YKHO.N_max)\n for exwG in range(YKHO.N_max):\n Ga1L[exwG] -= (Oa1e[exwG] * (exwG + 1) + vC9B[exwG] * exwG) * IOMN[exwG]\n if exwG > 0:\n Ga1L[exwG] += Oa1e[exwG - 1] * exwG * IOMN[exwG - 1]\n if exwG < YKHO.N_max - 1:... | [
"0.6314329",
"0.60448706",
"0.60366744",
"0.5982164",
"0.5901653",
"0.5884918",
"0.58537084",
"0.58360696",
"0.57968503",
"0.5629535",
"0.56284857",
"0.561707",
"0.5612856",
"0.55865085",
"0.5561118",
"0.5550603",
"0.5545301",
"0.5525135",
"0.5519758",
"0.5512318",
"0.548632"... | 0.0 | -1 |
Lead field dot products using Legendre polynomial (P_n) series. | def HJ9L(UqYS, tQRH, PoIm, JmU9, kYCs):
RfIB = oyIN.empty((JmU9.shape[1], len(UqYS)))
_mqc = 50000000 // (8 * max(JmU9.shape) * 2)
kg7d = oyIN.concatenate([oyIN.arange(0, UqYS.size, _mqc), [UqYS.size]])
for yKcO, JCyR in zip(kg7d[:-1], kg7d[1:]):
IK15 = oyIN.tile(UqYS[yKcO:JCyR][oyIN.newaxis], (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DAsX(YKHO, IOMN, a1PO, Oa1e, vC9B):\n Ga1L = oyIN.zeros(YKHO.N_max)\n for exwG in range(YKHO.N_max):\n Ga1L[exwG] -= (Oa1e[exwG] * (exwG + 1) + vC9B[exwG] * exwG) * IOMN[exwG]\n if exwG > 0:\n Ga1L[exwG] += Oa1e[exwG - 1] * exwG * IOMN[exwG - 1]\n if exwG < YKHO.N_max - 1:... | [
"0.6314329",
"0.60448706",
"0.60366744",
"0.5982164",
"0.5901653",
"0.5884918",
"0.58537084",
"0.58360696",
"0.57968503",
"0.5629535",
"0.56284857",
"0.561707",
"0.5612856",
"0.55865085",
"0.5561118",
"0.5550603",
"0.5545301",
"0.5525135",
"0.5519758",
"0.5512318",
"0.548632"... | 0.0 | -1 |
Returns a string that tells the current state of the player. | def ja6o(YKHO, *qIxc):
QTBn = YKHO.player.get_state()
for DghZ in QTBn:
DghZ = str(DghZ)
try:
if DghZ == str(jQ4c.STATE_PLAYING):
return 'playing'
elif DghZ == str(jQ4c.STATE_PAUSED):
return 'paused'
elif DghZ == str(jQ4c.STATE_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n QTBn = YKHO.current_value\n return f'The state is now: Player 1: {QTBn[0]}-{QTBn[1]}; Player 2: {QTBn[2]}-{QTBn[3]}'",
"def Ov5A(YKHO):\n Aofo = 50 * ' *'\n Aofo += '\\ngame state\\n'\n Aofo += 50 * ' *'\n Aofo += '\\nplayers: \\n'\n for oyg0 in YKHO.players:\n ... | [
"0.7886486",
"0.7313204",
"0.7288172",
"0.7288172",
"0.7288172",
"0.7288172",
"0.72554487",
"0.7074368",
"0.70051026",
"0.7000645",
"0.69972146",
"0.69698733",
"0.69666874",
"0.6939442",
"0.69346404",
"0.6905356",
"0.690352",
"0.68919885",
"0.6843437",
"0.6839728",
"0.6809158... | 0.7002028 | 9 |
Returns the current playing song_id or None. | def rEX0(YKHO, *qIxc):
if YKHO.song_num == -1:
return None
return YKHO.songs_list[YKHO.song_num] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def haHf(YKHO, *qIxc):\n return YKHO.song_num",
"def haHf(YKHO):\n i34x = None\n if YKHO._current_index < len(YKHO._song_list):\n i34x = YKHO._song_list[YKHO._current_index]\n return i34x",
"def IyHf(YKHO):\n Aofo = None\n bTKY = YKHO.get('currentsong')\n if 'file' in bTKY:\n ... | [
"0.78048724",
"0.76672894",
"0.7406078",
"0.7280358",
"0.72613335",
"0.7220202",
"0.6987708",
"0.69135314",
"0.6898482",
"0.6834505",
"0.6769412",
"0.67486656",
"0.67374027",
"0.67374027",
"0.6736987",
"0.6717617",
"0.6709469",
"0.6687437",
"0.66306335",
"0.6623256",
"0.66232... | 0.84596753 | 0 |
Remove the song_id from the playlist. | def Ld9P(YKHO, tXZk, *qIxc):
try:
lHob = YKHO.songs_list.index(tXZk)
if lHob <= YKHO.song_num:
YKHO.song_num -= 1
YKHO.songs_list.remove(tXZk)
except:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSdD(NvAR, i34x):\n pass",
"def E2S4(YKHO, oUZx):\n oUZx.check_arg_count(1)\n tXZk = oUZx.args[0].as_int()\n YKHO.xbmc.remove_from_playlist(tXZk)",
"def Yslp(djGJ: RemovePlaylist, fosA: Dict[Any, Any]) -> None:\n PUCB = [d6pt for d6pt, cf3u in enumerate(fosA['playlists']) if cf3u['id'] == dj... | [
"0.8085785",
"0.7994761",
"0.79940426",
"0.78791374",
"0.78791374",
"0.7792085",
"0.77712816",
"0.7735479",
"0.7605943",
"0.75542986",
"0.75436026",
"0.7539241",
"0.7525773",
"0.75224525",
"0.7477081",
"0.74148667",
"0.7403856",
"0.73703444",
"0.7337152",
"0.7335287",
"0.7312... | 0.8088586 | 0 |
insert the song_id into the playlist, song_num is optional. | def kt8Q(YKHO, tXZk, lHob=None):
if lHob == None:
YKHO.songs_list.append(tXZk)
else:
YKHO.songs_list.insert(lHob, tXZk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MTHJ(YKHO, lHob, lZ4l, brNt, MHmZ, F1X2, GMyj):\n rdlD = YKHO.curs.execute('SELECT MAX(id) from songs').fetchone()\n if rdlD[0] == None:\n tXZk = 0\n else:\n tXZk = rdlD[0] + 1\n YKHO.curs.execute('INSERT INTO songs (id, number, title, subtitle, text, key_note_id, key_is_major) VALUES... | [
"0.73259443",
"0.7235711",
"0.7221831",
"0.7157744",
"0.6983665",
"0.6844062",
"0.684346",
"0.68081427",
"0.6792664",
"0.6707641",
"0.6706892",
"0.66543037",
"0.66311574",
"0.66308707",
"0.660739",
"0.65753573",
"0.6571859",
"0.65639526",
"0.6550795",
"0.6523835",
"0.65220463... | 0.88939416 | 0 |
Gets a single track | def NaSh(x9qt):
A6b2 = SXEm.query.get(x9qt)
if not A6b2:
return eTsH(404, description='Track not found.')
A6b2.duration_min = int(A6b2.duration_ms / 1000 // 60)
A6b2.duration_sec = round(A6b2.duration_ms / 1000 % 60)
return pz3A(Ehg9.dump(A6b2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ThNS(YKHO, ZETm):\n pass",
"def NaSh(YKHO, _sei):\n for A6b2 in YKHO.tracks:\n if A6b2.pk == _sei:\n return A6b2\n return None",
"def NaSh(YKHO):\n pass",
"def bUWF(YKHO) -> zy9w:\n ...",
"def bUWF(YKHO) -> zy9w:\n ...",
"def NaSh(YKHO, bSWA):\n gt5k = {'track':... | [
"0.7895557",
"0.7723575",
"0.76210296",
"0.7541747",
"0.7541747",
"0.7494586",
"0.74296594",
"0.7407064",
"0.7356516",
"0.725019",
"0.72333133",
"0.7213497",
"0.7031192",
"0.7015453",
"0.6904719",
"0.68645173",
"0.68303996",
"0.68040556",
"0.6744789",
"0.6705771",
"0.6703259"... | 0.71581817 | 12 |
Performs a random spatial shift of a Numpy image tensor. Arguments | def _0rL(WKvO, l7U9, J1f6, KObo=1, Jdue=2, UJgg=0, v0ak='nearest', c4yI=0.0, jjBg=1):
MKlR, yzQ0 = (WKvO.shape[KObo], WKvO.shape[Jdue])
UShr = oyIN.random.uniform(-J1f6, J1f6) * MKlR
Yrvv = oyIN.random.uniform(-l7U9, l7U9) * yzQ0
WKvO = rihX(WKvO, tx=UShr, ty=Yrvv, row_axis=KObo, col_axis=Jdue, channel_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m2VA(YKHO, LNo8):\n UShr = oyIN.random.uniform(-YKHO.shift_range[0], YKHO.shift_range[0])\n Yrvv = oyIN.random.uniform(-YKHO.shift_range[1], YKHO.shift_range[1])\n sDby = oyIN.array([[1, 0, UShr], [0, 1, Yrvv], [0, 0, 1]])\n cFTJ = sDby\n LNo8 = YKHO.__apply_transform(LNo8, cFTJ)\n return LNo... | [
"0.74597186",
"0.6913511",
"0.64247006",
"0.63179994",
"0.6274633",
"0.6223301",
"0.6215919",
"0.6159126",
"0.615513",
"0.6072121",
"0.60630876",
"0.60616213",
"0.60308903",
"0.6028588",
"0.6020168",
"0.5973807",
"0.59477633",
"0.5940212",
"0.5896217",
"0.5868377",
"0.5785778... | 0.6190589 | 7 |
Clears the screen in the terminal | def K1Qd() -> None:
print(chr(27) + '[2J') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yPVe():\n Hy7s.system('clear')",
"def yPVe():\n Hy7s.system('clear')",
"def yPVe():\n print('\\x1b[H\\x1b[J')",
"def yPVe():\n Hy7s.system('cls')",
"def yPVe():\n Oz1B('clear')",
"def yPVe():\n print('\\x1b[H\\x1b[J')",
"def DWiR():\n Hy7s.system('clear')",
"def yPVe() -> Non... | [
"0.92387986",
"0.9203827",
"0.9139968",
"0.9134812",
"0.91281533",
"0.90811205",
"0.9062551",
"0.90624875",
"0.9057278",
"0.9009379",
"0.89926267",
"0.89926267",
"0.89926267",
"0.89926267",
"0.8980157",
"0.89765495",
"0.894619",
"0.89426607",
"0.8935888",
"0.8871116",
"0.8864... | 0.88356626 | 21 |
Computes the root mean squared error | def iAxY(N6Z1, x6A0):
return oyIN.sqrt(((N6Z1 - x6A0) ** 2).mean()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())",
"def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))",
"def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))",
"def DF3U(Y8eF, gjpc):\n return PZyS(SDab(Y8eF, gjpc))",
"def ewIN(WKvO, LVAh):\n return oyIN.sqrt(((WKv... | [
"0.8407506",
"0.78106064",
"0.7810055",
"0.7642507",
"0.76377773",
"0.7634723",
"0.7628737",
"0.7563739",
"0.7563739",
"0.7536716",
"0.75151813",
"0.7440335",
"0.7436086",
"0.7380802",
"0.73725265",
"0.73501176",
"0.73134756",
"0.7306154",
"0.72149974",
"0.71923435",
"0.71608... | 0.0 | -1 |
Sets a threshold for every node of the graph to be a random integer between 1 and its degree. | def cFov(pNZh, yokr):
Nhxk = dict()
tuKI.seed(JQFc + yokr)
for Q6kx in pNZh.Nodes():
Nhxk[Q6kx.GetId()] = tuKI.randint(1, Q6kx.GetDeg())
return Nhxk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rJrZ(YKHO):\n for Q6kx in list(YKHO.nodes.keys()):\n YKHO.nodes[Q6kx] = []\n for Elif in list(YKHO.nodes.keys()):\n JxU2 = YKHO.rng.randint(0, 10)\n YKHO.nodes[Q6kx] += [Elif] * JxU2",
"def Gzv6():\n return 1 if oyIN.random.random() < 0.5 else -1",
"def Gzv6():\n ... | [
"0.6569362",
"0.60390395",
"0.60390395",
"0.6029146",
"0.5999786",
"0.59984535",
"0.5993186",
"0.58621025",
"0.5844309",
"0.5841559",
"0.5812211",
"0.58073425",
"0.57793885",
"0.5742001",
"0.57406914",
"0.5737012",
"0.5725863",
"0.57187355",
"0.5714214",
"0.57125485",
"0.5698... | 0.6819591 | 0 |
The function to calculate the loss on one batch. | def aDeZ(YKHO, QZcN, ZbWC, TquA, QxIo):
return YKHO.train_func(QZcN, ZbWC, TquA, QxIo, YKHO.encoder, YKHO.decoder, YKHO.criterion, YKHO.embedding_size, YKHO.langs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOmn(YKHO, Wc9F: Tuple[torch.Tensor, ...]) -> ht2j.Tensor:\n nvEb, pan_ = YKHO.model(*Wc9F)\n N77f = YKHO.loss_fn(nvEb, pan_)\n return N77f",
"def GT2U(YKHO, NArs, Wc9F):\n EcVT, (VUzz, j4l8), yzQ0 = Wc9F\n zseD, RUIi = YKHO.apply_fun(NArs, EcVT)\n qET2 = oyIN.sum(((zseD - VUzz) ** 2).squee... | [
"0.84454364",
"0.78851783",
"0.78797454",
"0.77552056",
"0.7745117",
"0.7725946",
"0.7712139",
"0.7689946",
"0.7689422",
"0.76845014",
"0.76703054",
"0.7670173",
"0.762973",
"0.76023316",
"0.7581497",
"0.7551227",
"0.7531351",
"0.7531351",
"0.7531351",
"0.7487842",
"0.7456396... | 0.0 | -1 |
Remove accents from a string | def Gcqg(l5Ny):
try:
l5Ny = l5Ny.decode('utf-8')
except UnicodeEncodeError:
pass
except AttributeError:
pass
try:
l5Ny = QMSQ(l5Ny)
except NameError:
pass
l5Ny = l5Ny.replace(u'’', u"'")
kUYT = zVCt.normalize('NFKD', l5Ny).encode('ascii', 'ignore')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def db2A(_BCW):\n return _BCW.translate(YV6s)",
"def KNkM(_zuN):\n O9_k = zVCt.normalize('NFKD', _zuN)\n vieb = u''.join([Z9rn for Z9rn in O9_k if not zVCt.combining(Z9rn)])\n vieb = u''.join([Z9rn for Z9rn in vieb if ord(Z9rn) < 128])\n return vieb.decode('ascii')",
"def dEDD(vIwR):\n return... | [
"0.821522",
"0.8105799",
"0.8089913",
"0.80482084",
"0.80298376",
"0.8017343",
"0.7868652",
"0.77814406",
"0.7756769",
"0.7573009",
"0.7534318",
"0.7513533",
"0.75099576",
"0.74783725",
"0.74725485",
"0.74491394",
"0.7446201",
"0.7444822",
"0.7444822",
"0.7444822",
"0.7441555... | 0.7731028 | 9 |
Converts a number into comma notation as per Indian number system. This function accepts integer, float, and string value, but strips decimal part before computing indian number notation of integral part. | def xwdw(BWXx):
try:
NCqB.setlocale(NCqB.LC_ALL, rDcu())
except NCqB.Error:
return BWXx
try:
if isinstance(BWXx, (float, int)):
BWXx = int(BWXx)
elif isinstance(BWXx, str):
BWXx = int(float(BWXx))
except (ValueError, TypeError):
return BWXx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K4_G(FGW3, **LG2d):\n yKND = LG2d.get('ignore_decimal', False)\n y0cW = ''\n if str(FGW3).startswith('-'):\n FGW3 = str(FGW3).replace('-', '')\n y0cW = '-'\n nhGt = format(float(FGW3), '.2f').replace('.00', '').split('.')\n Mkmy = []\n for YRbF, Z9rn in enumerate(reversed(nhGt[0... | [
"0.76849085",
"0.7532288",
"0.75228894",
"0.74397945",
"0.74397945",
"0.7379695",
"0.69525975",
"0.69392717",
"0.6922404",
"0.6860603",
"0.68415016",
"0.68378127",
"0.6775222",
"0.66373426",
"0.6620121",
"0.6595536",
"0.6567054",
"0.65627056",
"0.65181196",
"0.64948994",
"0.6... | 0.69564015 | 6 |
Convert a number into comma notation as per Indian number system. This function accepts integer, float, and string value. If the value passed does not have any decimal places, then 2 decimal places are added by default. Decimal places are preserved in all other cases. | def GPeY(BWXx):
try:
NCqB.setlocale(NCqB.LC_ALL, rDcu())
except NCqB.Error:
return BWXx
EAnj = str(BWXx).split('.')
_Fsb = 2
if len(EAnj) == 2:
_Fsb = len(EAnj[1])
try:
if isinstance(BWXx, (int, float, str)):
BWXx = float(BWXx)
except (ValueError, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K4_G(FGW3, **LG2d):\n yKND = LG2d.get('ignore_decimal', False)\n y0cW = ''\n if str(FGW3).startswith('-'):\n FGW3 = str(FGW3).replace('-', '')\n y0cW = '-'\n nhGt = format(float(FGW3), '.2f').replace('.00', '').split('.')\n Mkmy = []\n for YRbF, Z9rn in enumerate(reversed(nhGt[0... | [
"0.79556805",
"0.7215138",
"0.72125286",
"0.7205562",
"0.7084185",
"0.70617753",
"0.70617753",
"0.69842374",
"0.69749",
"0.6943046",
"0.68695176",
"0.6869084",
"0.6826848",
"0.67895186",
"0.6722484",
"0.6677416",
"0.65310115",
"0.65212464",
"0.6433488",
"0.64199024",
"0.63471... | 0.7109446 | 4 |
Ramps a magnet from its current magnetic field to zero field. | def eXbK(YKHO):
oUZx = 'SET:DEV:' + YKHO.axis + ':PSU:ACTN:RTOZ\n'
geh0 = kXui.Magnet.QUERY_AND_RECEIVE[YKHO.mode](YKHO, oUZx)
if not geh0:
raise RuntimeWarning('No response after attempting to ramp to zero.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def alfl(YKHO) -> P6bq.T * P6bq.m:\n ...",
"def rGtV(YKHO):\n KPt4 = 0.0\n FOSW = YKHO.spin_mag()\n for YRbF in range(YKHO.size()):\n KPt4 += YKHO.spin(YRbF)\n KPt4 *= FOSW\n return KPt4",
"def IFrt(YKHO):\n YKHO.player.position = (0.8 * YKHO.player.position[0] + 0.2 * YKHO.position... | [
"0.61413383",
"0.60702616",
"0.59701914",
"0.59607095",
"0.56270736",
"0.5595084",
"0.5590761",
"0.55642664",
"0.55149525",
"0.5495505",
"0.5489799",
"0.5489799",
"0.5470079",
"0.5429876",
"0.54233456",
"0.54155475",
"0.53820026",
"0.53534305",
"0.5337872",
"0.5333186",
"0.53... | 0.656311 | 0 |
Queries if magnet is ramping. | def u5jD(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UdeA(YKHO):\n xcar = (YKHO.galvoXMax - YKHO.galvoXMin) / YKHO.xPixels\n if YKHO.hardwConst.maxGalvoSpeed < xcar:\n print('Set speed exceedsd maximum galvo speed')\n return False\n return True",
"def OEiy(YKHO):\n if YKHO._worker_thread is not None and YKHO._worker_thread.is_alive():... | [
"0.6478649",
"0.634173",
"0.5969283",
"0.5969283",
"0.5969283",
"0.5967894",
"0.58537537",
"0.58349377",
"0.5832133",
"0.58040273",
"0.57921386",
"0.5786386",
"0.5740662",
"0.56570476",
"0.56126165",
"0.5598012",
"0.55962116",
"0.55686086",
"0.55297685",
"0.5517788",
"0.54807... | 0.5845426 | 7 |
Instantiates the `ConvolutionPermute` normalizing flow. | def FIMM(YKHO, rUrJ=False, mWFP='convolution_permute', BUCY=3, N78C=3, *qIxc, **B2fa):
YKHO._graph_parents = []
YKHO._name = mWFP
YKHO._validate_args = rUrJ
YKHO.built = False
super(pRzK, YKHO).__init__(*qIxc, validate_args=rUrJ, name=mWFP, inverse_min_event_ndims=BUCY, forward_min_event_ndims=N78C,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEry(xMux):\n return zzB6(32, xMux)",
"def OEry(xMux):\n return U78l.GroupNorm(16, xMux)",
"def FIMM(YKHO, JBMS, M1Jx, yCqY=True):\n YKHO.permute_dims = yCqY\n YKHO.transform = jeFo([TTda.transforms.ToTensor(), TTda.transforms.Normalize(JBMS, M1Jx)])",
"def eLpg(Emd4):\n return Emd4(ht2j.n... | [
"0.5993502",
"0.5975162",
"0.5921447",
"0.5911633",
"0.5803789",
"0.5658474",
"0.5609467",
"0.5603156",
"0.5594467",
"0.5552636",
"0.5547511",
"0.55455285",
"0.55361557",
"0.55308384",
"0.5522418",
"0.551941",
"0.551589",
"0.5510309",
"0.5507728",
"0.5499258",
"0.5486783",
... | 0.6228045 | 0 |
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.7155487 | 26 |
Compute the softmax of vector x. | def N93T(WKvO):
O48W = oyIN.exp(WKvO)
y3Mu = O48W / oyIN.sum(O48W)
return y3Mu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum(axis=0)",
"def N93T(YKHO, WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO))",
"def N93T(YKHO, WKvO):\n IA3S = oyIN.max(WKvO)\n MZx7 = 0\n for YRbF in range(len(WKvO)):\n MZx7 = MZx7 + epAf.e... | [
"0.9069814",
"0.89685386",
"0.89637303",
"0.89531136",
"0.8945816",
"0.8906187",
"0.8906187",
"0.88862705",
"0.88723785",
"0.8855647",
"0.8849173",
"0.88403004",
"0.88362604",
"0.88348967",
"0.8823002",
"0.8802714",
"0.8799106",
"0.8798473",
"0.8789911",
"0.8781236",
"0.87800... | 0.8677557 | 86 |
Create a new User object and add it to this Users collection. In addition to creating a user, this call will create a device for that user, whose device_token will be returned from this call. Store the device_token, as it's required to complete GemDevice authentication after the user approves the device at the end of t... | def eLpg(YKHO, D3lj, yxaP, G32E=None, Tq5C=None, vSyi=None, **B2fa):
if not G32E and u'default_wallet' not in B2fa:
raise ValueError('Usage: users.create(email, passphrase, device_name, api_token, redirect_uri)')
elif G32E:
Syi7 = C6M2(G32E, ['primary'])['primary']
else:
Syi7 = B2fa[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYUQ(YKHO, eOtH):\n raise NotImplementedError()",
"def lYUQ(YKHO):\n CBIr = mv1M.objects.create_user(username='WhatsApp Support', avatar='https://cdn4.iconfinder.com/data/icons/helpdesk-support-business/128/2_Support_helpdesk_avatar_business-20_Support_helpdesk_avatar_business-18-512.png', mobile_numbe... | [
"0.6892276",
"0.68159205",
"0.678913",
"0.6730268",
"0.6697606",
"0.65538865",
"0.6527618",
"0.6498044",
"0.64877367",
"0.64407015",
"0.63962144",
"0.63953114",
"0.63422436",
"0.6339449",
"0.6314604",
"0.6298925",
"0.629028",
"0.628232",
"0.626469",
"0.6263168",
"0.6258207",
... | 0.7176521 | 0 |
Add an entity to appear in `self.all_entities`. Clears every episode. | def KbiE(YKHO, Ls8u: PddlEntity) -> None:
YKHO._added_entities[Ls8u.name] = Ls8u | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n3Kb(YKHO, LEXu):\n YKHO.append(LEXu)\n if YKHO.size() > 0:\n YKHO.sort()",
"def gPu1(YKHO, ahCL):\n YKHO._lEntities.append(ahCL)",
"async def async_added_to_hass(YKHO):\n vzeF.debug('Adding %s to entities list', YKHO.entity_id)\n YKHO.hub.entities.append(YKHO)",
"def FJj_(YKHO, MMe... | [
"0.70107114",
"0.68481135",
"0.67556816",
"0.66768795",
"0.6607866",
"0.65884024",
"0.65745556",
"0.6490381",
"0.642867",
"0.64141047",
"0.6398769",
"0.630087",
"0.6221539",
"0.62023443",
"0.6194379",
"0.61430854",
"0.6086394",
"0.6078246",
"0.60711825",
"0.60407364",
"0.5980... | 0.6084837 | 17 |
Get all predicates that COULD be true. This is independent of the simulator state and is the set of compatible predicate and entity arguments. The same ordering of predicates is returned every time. | def CBE1(YKHO) -> x1iM[OGnW]:
wvoi = YKHO.all_entities.values()
flqG: x1iM[OGnW] = []
for nvEb in YKHO.predicates.values():
for jQ3_ in Hs6x.combinations(wvoi, nvEb.n_args):
if not nvEb.are_args_compatible(jQ3_):
continue
bdw7 = nvEb.clone()
bdw7.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WGoI(YKHO) -> x1iM[OGnW]:\n wvoi = YKHO.all_entities.values()\n rxGz: x1iM[OGnW] = []\n for nvEb in YKHO.predicates.values():\n for jQ3_ in Hs6x.permutations(wvoi, nvEb.n_args):\n if not nvEb.are_args_compatible(list(jQ3_)):\n continue\n bdw7 = nvEb.clone()\... | [
"0.7480894",
"0.62304264",
"0.60269475",
"0.5887735",
"0.58714604",
"0.58578825",
"0.5740891",
"0.5640719",
"0.5639154",
"0.56257993",
"0.55947316",
"0.5566282",
"0.55266243",
"0.5471034",
"0.5434758",
"0.54010284",
"0.5397823",
"0.53586084",
"0.5344983",
"0.53348905",
"0.531... | 0.7325119 | 1 |
Returns all the entities that match the condition. | def YFal(YKHO, zXgc: ExprType) -> iu5r[hpzp]:
for LEXu in YKHO.all_entities.values():
if LEXu.expr_type.is_subtype_of(zXgc):
yield LEXu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rFRb(YKHO):\n return YKHO._entities.values()",
"def VeoF(YKHO):\n for LEXu, in TGt3().append(YKHO._aiida_cls, project='*', filters={YKHO._identifier: {'in': YKHO._set}}).iterall():\n yield LEXu",
"def NMoC(YKHO, *qIxc):\n for d7pR in qIxc:\n assert isinstance(d7pR, str)\n vdGF = s... | [
"0.6746976",
"0.6648344",
"0.6366271",
"0.6327496",
"0.63028044",
"0.6270477",
"0.6258992",
"0.62169",
"0.62097883",
"0.62052697",
"0.6136881",
"0.6136181",
"0.612445",
"0.61226207",
"0.59776574",
"0.5975199",
"0.5974574",
"0.5958003",
"0.5942565",
"0.59419787",
"0.59373647",... | 0.6070912 | 14 |
Gets a notification config. | def dPBX(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YyB2(YKHO, bD7m, MZKG):\n raise NotImplementedError('get_notification_configuration must be overridden.')",
"def tgzD(YKHO):\n nPrm = YKHO.message(qTHV.GET_CONFIG, '')\n return qQXR.loads(nPrm, object_hook=xv1G)",
"def GPtr(YKHO, D5gV, f5t3):\n try:\n tFKy = SAs9.notifications.handler_de... | [
"0.7417227",
"0.7282119",
"0.72646505",
"0.72001404",
"0.72001404",
"0.72001404",
"0.7171269",
"0.7164583",
"0.7104183",
"0.7104028",
"0.7047896",
"0.7047896",
"0.7047896",
"0.7047896",
"0.70049906",
"0.695593",
"0.6912567",
"0.69092816",
"0.689814",
"0.6897373",
"0.68931204"... | 0.70651555 | 10 |
Gets the settings for an organization. | def o8UO(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o59G(YKHO):\n if YKHO.organization_setting and (not YKHO.organization_setting.delete_flag):\n return YKHO.organization_setting\n else:\n s7Be = YKHO.organization_type\n if s7Be and s7Be.organization_setting and (not s7Be.organization_setting.delete_flag):\n return s7Be.org... | [
"0.6729979",
"0.6647505",
"0.65838176",
"0.6531727",
"0.6531727",
"0.6531727",
"0.6488994",
"0.6486847",
"0.6455535",
"0.6432223",
"0.6411831",
"0.64077747",
"0.64077747",
"0.6327397",
"0.6318032",
"0.6309309",
"0.63059455",
"0.63059455",
"0.6254529",
"0.6234522",
"0.62208444... | 0.715318 | 0 |
Lists all sources belonging to an organization. | def B1go(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VWDG(YKHO) -> x1iM[str]:\n dixj = list(YKHO._get_client().do_action('list_sources'))\n nPrm = qQXR.loads(dixj[0].body.to_pybytes())\n return nPrm",
"def a79v():\n bD7m = zDeW + 'sources'\n NArs = {'language': 'en'}\n _hkX = G4JS.get(bD7m, params=NArs)\n nPrm = _hkX.json()\n c7pe = [zZ... | [
"0.67137176",
"0.6540681",
"0.64150536",
"0.6222679",
"0.6213458",
"0.6156909",
"0.6133127",
"0.6131138",
"0.6096961",
"0.60064554",
"0.6001011",
"0.5967184",
"0.5957403",
"0.5914737",
"0.59131366",
"0.5913078",
"0.5897004",
"0.5880276",
"0.58728206",
"0.5858933",
"0.58037007... | 0.6211193 | 5 |
Test that the Api can create a category | def ZAAV(YKHO):
omNk = YKHO.get_token()
eOtH = omNk['token']
QpfX = omNk['context']
geh0 = YKHO.create_category(token=eOtH, context=QpfX)
YKHO.assertEquals(geh0.status_code, 201) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XnPT(YKHO):\n pass",
"def XnPT(YKHO):\n geh0 = YKHO.add_test_category()\n YKHO.assertEqual(qQXR.loads(geh0.data)['status'], 200)\n YKHO.assertEqual(qQXR.loads(geh0.data)['message'], 'Category added successfully')",
"def XnPT(YKHO):\n Aofo = YKHO.client.post('/create-category', data=qQXR.dump... | [
"0.90218204",
"0.87990576",
"0.8652812",
"0.8617821",
"0.8556667",
"0.85395515",
"0.8465354",
"0.8320628",
"0.8312338",
"0.82712317",
"0.823604",
"0.82073635",
"0.81788117",
"0.8178726",
"0.8145374",
"0.81430966",
"0.80220145",
"0.7984992",
"0.7972232",
"0.7953218",
"0.793953... | 0.8333642 | 7 |
Test that the the category is not created when user provides a wrong token | def I7CK(YKHO):
omNk = YKHO.get_token()
eOtH = omNk['token']
QpfX = omNk['context']
eOtH = 'fsdjbdfjkhaey489yy276437grewjba73t4iauht47yhfuy4y37'
geh0 = YKHO.create_category(token=eOtH, context=QpfX)
YKHO.assertEquals(geh0.status_code, 401) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RUrT(YKHO, x0hE, JawI):\n VKpQ = qQXR.dumps(F7Pg)\n geh0 = x0hE.post(f'{_RsZ}/categories', data=VKpQ, content_type=kMFD)\n Ol8d = 'No authorization token provided'\n assert geh0.status_code == 401\n assert geh0.json['status'] == 'error'\n assert geh0.json['message'] == Ol8d",
"def Txmk(YKHO... | [
"0.8075659",
"0.8025236",
"0.8018805",
"0.77543294",
"0.75088835",
"0.7378667",
"0.7268208",
"0.7217274",
"0.71935713",
"0.7191618",
"0.7183604",
"0.71833074",
"0.7117762",
"0.7100299",
"0.7095193",
"0.7034128",
"0.6947227",
"0.69078994",
"0.6904914",
"0.6902797",
"0.6883413"... | 0.84037775 | 0 |
Test GET request on categories | def B4P5(YKHO):
omNk = YKHO.get_token()
eOtH = omNk['token']
QpfX = omNk['context']
hh_i = 5
YKHO.create_category(token=eOtH, context=QpfX, cat_num=hh_i)
SNDh = QpfX.get(YKHO.category_url + 'category', headers=dict(Authorization='Bearer ' + eOtH))
YKHO.assertEquals(SNDh.status_code, 200)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def afSB(YKHO):\n Ylbp = YKHO.client().get('/category/1', headers={'x-access-token': YKHO.access_token}, data=YKHO.categories)\n YKHO.assertEqual(Ylbp.status_code, 200)",
"def LCTi(YKHO):\n geh0 = YKHO.tester.get('/birds/category')\n YKHO.assertEqual(geh0.status_code, 200)",
"def _562(YKHO):\n g... | [
"0.82787",
"0.8267533",
"0.8145785",
"0.8012084",
"0.7910307",
"0.7900574",
"0.775526",
"0.7692066",
"0.764139",
"0.7628664",
"0.7614498",
"0.76090205",
"0.7566374",
"0.75625736",
"0.75504017",
"0.74737805",
"0.7444391",
"0.7421682",
"0.7362513",
"0.73615456",
"0.73603845",
... | 0.7047538 | 37 |
Test GET request on category with page and limit parameter | def migR(YKHO):
omNk = YKHO.get_token()
eOtH = omNk['token']
QpfX = omNk['context']
YKHO.create_category(token=eOtH, context=QpfX, cat_num=5)
SNDh = QpfX.get(YKHO.category_url + 'category?limit=2&page=2', headers=dict(Authorization='Bearer ' + eOtH))
YKHO.assertEquals(SNDh.status_code, 200)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SEJA(YKHO):\n Ylbp = YKHO.client().get('/category/?page=105', headers={'x-access-token': YKHO.access_token})\n YKHO.assertEqual(Ylbp.status_code, 404)",
"def afSB(YKHO):\n Ylbp = YKHO.client().get('/category/1', headers={'x-access-token': YKHO.access_token}, data=YKHO.categories)\n YKHO.assertEqu... | [
"0.75139576",
"0.7205806",
"0.7075768",
"0.7065133",
"0.70525026",
"0.6812395",
"0.6763876",
"0.6730899",
"0.6673979",
"0.6572655",
"0.65470535",
"0.6542572",
"0.647166",
"0.6431871",
"0.63720477",
"0.6368868",
"0.6318865",
"0.6304818",
"0.6298255",
"0.6283978",
"0.6281457",
... | 0.80750704 | 0 |
Test GET verb on category by category's id | def WML1(YKHO):
omNk = YKHO.get_token()
eOtH = omNk['token']
QpfX = omNk['context']
YKHO.create_category(token=eOtH, context=QpfX, cat_num=5)
geh0 = QpfX.get(YKHO.category_url + 'category/3', headers=dict(Authorization='Bearer ' + eOtH))
YKHO.assertEquals(geh0.status_code, 200)
Aofo = qQXR.l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def afSB(YKHO):\n Ylbp = YKHO.client().get('/category/1', headers={'x-access-token': YKHO.access_token}, data=YKHO.categories)\n YKHO.assertEqual(Ylbp.status_code, 200)",
"def LCTi(YKHO):\n geh0 = YKHO.tester.get('/birds/category')\n YKHO.assertEqual(geh0.status_code, 200)",
"def vM7W(YKHO):\n g... | [
"0.7893785",
"0.75104916",
"0.7238311",
"0.7170156",
"0.7071576",
"0.7016844",
"0.6948569",
"0.68184555",
"0.6774553",
"0.6758028",
"0.6683846",
"0.66789603",
"0.66239494",
"0.66155463",
"0.6603777",
"0.65653557",
"0.6556869",
"0.6514536",
"0.6489117",
"0.6488976",
"0.6475677... | 0.6745976 | 10 |
Test PUT verb on category by category's id | def scjF(YKHO):
omNk = YKHO.get_token()
eOtH = omNk['token']
QpfX = omNk['context']
YKHO.create_category(token=eOtH, context=QpfX, cat_num=5)
geh0 = QpfX.put(YKHO.category_url + 'category/2', headers=dict(Authorization='Bearer ' + eOtH), data=qQXR.dumps({'name': 'awesome'}), content_type='applicatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MvHd(YKHO):\n TBsA = qZuN()\n geh0 = YKHO.client.open('/v2/category', method='PUT', data=qQXR.dumps(TBsA), content_type='application/json')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))",
"def NpNj(YKHO, id):\n nPrm = QePW.json\n vjht(id, nPrm)\n return (None, 20... | [
"0.83716214",
"0.81138605",
"0.7999926",
"0.78564715",
"0.7618509",
"0.7574304",
"0.7536173",
"0.75162363",
"0.7464908",
"0.741444",
"0.73233736",
"0.72341895",
"0.71708256",
"0.7158187",
"0.7130979",
"0.71063435",
"0.7104223",
"0.6931446",
"0.6904407",
"0.68590045",
"0.68477... | 0.74598354 | 9 |
Get status information about this infrastructure. | def VLTN(YKHO):
agxD = YKHO.client._perform_json('GET', '/project-deployer/infras/%s' % YKHO.infra_id)
return oHRz(YKHO.client, YKHO.infra_id, agxD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VLTN(YKHO):\n return YKHO.service_client.GET('status')",
"def VLTN(YKHO):\n return YKHO.service_client.GET('status')",
"def VLTN(YKHO):\n return YKHO._service.get_status()",
"def Kkn8(YKHO):\n return YKHO.STATUSES_INFO[YKHO.status]",
"def VLTN(YKHO):\n return YKHO._request('GET', '/statu... | [
"0.76600546",
"0.7659124",
"0.76296985",
"0.76226795",
"0.7562435",
"0.7535606",
"0.75012",
"0.74851716",
"0.74815184",
"0.7461562",
"0.7461562",
"0.7461562",
"0.7461562",
"0.7461562",
"0.7461562",
"0.7461562",
"0.7461562",
"0.7461562",
"0.7461562",
"0.7461562",
"0.7461562",
... | 0.0 | -1 |
Get the settings of this infrastructure. | def asJJ(YKHO):
gCuF = YKHO.client._perform_json('GET', '/project-deployer/infras/%s/settings' % YKHO.infra_id)
return U912(YKHO.client, YKHO.infra_id, gCuF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asJJ(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return YKHO._settings",
"def lWpF(YKHO):\n return YKHO.__settings",
"def lWpF(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return YKHO.get_interface().get('settings', [])",
"def... | [
"0.82706755",
"0.82706755",
"0.8236884",
"0.8112218",
"0.8088021",
"0.8049046",
"0.80408823",
"0.79986143",
"0.7996873",
"0.7996873",
"0.7996873",
"0.7976705",
"0.79644674",
"0.79508805",
"0.7928732",
"0.7911369",
"0.7899811",
"0.7879602",
"0.78739375",
"0.7760951",
"0.773598... | 0.7099552 | 40 |
Get the raw settings of this infrastracture. This returns a reference to the raw settings, not a copy, so changes made to the returned object will be reflected when saving. | def Ctz2(YKHO):
return YKHO.settings | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m6Me(YKHO):\n return YKHO.configuration",
"def zoSQ(YKHO, q3Lt):\n return YKHO.get('league/{}/settings'.format(q3Lt))",
"def asJJ(YKHO):\n return YKHO.data",
"def gCuF(YKHO):\n return getattr(YKHO, YKHO.settings_attr, {})",
"def gCuF(YKHO):\n return gCuF.Settings(YKHO)",
"def asJJ(YKHO... | [
"0.72160393",
"0.7084323",
"0.7078115",
"0.7075519",
"0.70273334",
"0.6995491",
"0.69824475",
"0.69824475",
"0.694255",
"0.69245553",
"0.68438846",
"0.6823764",
"0.6823764",
"0.6823764",
"0.67919075",
"0.6778799",
"0.6740647",
"0.6699685",
"0.666583",
"0.6625316",
"0.65489393... | 0.8544831 | 2 |
Get the deployments that are deployed on this infrastructure. | def OILH(YKHO):
return [CZ93(YKHO.client, plaN['id']) for plaN in YKHO.light_status['deployments']] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y6oW(YKHO):\n return list(YKHO.__deployments)",
"def rfpc(YKHO):\n return YKHO.__deployment_environments",
"def _eM2(YKHO) -> cuzp[x1dR, NkRG]:\n return spHt.get(YKHO._controller.list_deployments.remote())",
"def OILH(YKHO, _63S=None, yFa8=None):\n y6oW = YKHO._get_wrapper('Deployment', names... | [
"0.8873726",
"0.80589163",
"0.8031899",
"0.759729",
"0.7539298",
"0.7457418",
"0.7408191",
"0.7362089",
"0.7347969",
"0.7347969",
"0.73242944",
"0.7144345",
"0.6894338",
"0.6824369",
"0.6776282",
"0.67571",
"0.6700465",
"0.66725886",
"0.6661919",
"0.6649822",
"0.6624553",
"... | 0.8317213 | 1 |
Get the identifier of the deployment. | def id(YKHO):
return YKHO.deployment_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biGm(YKHO) -> str:\n return qe4Y.get(YKHO, 'deployment_id')",
"def biGm(YKHO) -> str:\n return qe4Y.get(YKHO, 'deployment_id')",
"def biGm(YKHO):\n return YKHO['deployment_id']",
"def biGm(YKHO):\n return YKHO['deployment_id']",
"def biGm(YKHO) -> int:\n return YKHO._deployment_id",
"d... | [
"0.87648207",
"0.87648207",
"0.8512558",
"0.8512558",
"0.8127735",
"0.76469225",
"0.75833344",
"0.73897725",
"0.73850745",
"0.7320813",
"0.7277557",
"0.7277557",
"0.71815586",
"0.71365047",
"0.69990444",
"0.69681185",
"0.69542676",
"0.6572145",
"0.6468576",
"0.6415754",
"0.63... | 0.81888115 | 4 |
Get status information about this deployment. | def VLTN(YKHO):
agxD = YKHO.client._perform_json('GET', '/project-deployer/deployments/%s' % YKHO.deployment_id)
T35Y = YKHO.client._perform_json('GET', '/project-deployer/deployments/%s/status' % YKHO.deployment_id)
return Wv89(YKHO.client, YKHO.deployment_id, agxD, T35Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IOJH(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'deployment_status')",
"async def get_status(YKHO) -> FnIr.client.V1DeploymentStatus:\n YKHO.logger.info(f'checking status of deployment \"{YKHO.name}\"')\n await YKHO.refresh()\n return YWvJ(FnIr.client.V1DeploymentStatus, YKHO.obj.status)",... | [
"0.8525472",
"0.8108466",
"0.80763364",
"0.7966668",
"0.76339614",
"0.7599726",
"0.7509441",
"0.75035375",
"0.75014555",
"0.74679106",
"0.74613374",
"0.74341065",
"0.74018425",
"0.73801684",
"0.73516154",
"0.73516154",
"0.73516154",
"0.73516154",
"0.73516154",
"0.73516154",
"... | 0.8225064 | 1 |
Get the governance status about this deployment. The infrastructure on which this deployment is running needs to have a Govern check policy of PREVENT or WARN. | def NhNh(YKHO, yJhm=''):
return YKHO.client._perform_json('GET', '/project-deployer/deployments/%s/governance-status' % YKHO.deployment_id, params={'bundleId': yJhm}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LSt3(YKHO) -> qe4Y.Output['outputs.ComplianceStatusResponse']:\n return qe4Y.get(YKHO, 'compliance_status')",
"def LSt3(YKHO) -> 'outputs.GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatusResponse':\n return qe4Y.get(YKHO, 'compliance_status')",
"def hftf(YKHO) -> h8nf[str]:\n return qe4Y.... | [
"0.6536071",
"0.6335773",
"0.60074115",
"0.59739214",
"0.5949449",
"0.5921402",
"0.5858965",
"0.58505094",
"0.5825301",
"0.58119416",
"0.58098",
"0.5805897",
"0.57950157",
"0.575331",
"0.57336986",
"0.5714606",
"0.56912124",
"0.5634943",
"0.56143373",
"0.5592019",
"0.5540448"... | 0.7046229 | 0 |
Get the settings of this deployment. | def asJJ(YKHO):
gCuF = YKHO.client._perform_json('GET', '/project-deployer/deployments/%s/settings' % YKHO.deployment_id)
return rgTg(YKHO.client, YKHO.deployment_id, gCuF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asJJ(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return YKHO.settings",
"def lWpF(YKHO):\n return YKHO.__settings",
"def asJJ(YKHO):\n return YKHO._settings",
"def lWpF(YKHO):\n return YKHO.settings",
"def gCuF(YKHO):\n return YKHO._settings",
"def gCuF(YKHO):\n return Y... | [
"0.81387705",
"0.81387705",
"0.81218183",
"0.81206596",
"0.80767626",
"0.7983027",
"0.79651743",
"0.79651743",
"0.79651743",
"0.795774",
"0.79192114",
"0.78695065",
"0.78647965",
"0.7851871",
"0.7760879",
"0.77330583",
"0.7708381",
"0.76877946",
"0.7565214",
"0.7524985",
"0.7... | 0.7868456 | 12 |
Get the raw settings of this deployment. This returns a reference to the raw settings, not a copy, so changes made to the returned object will be reflected when saving. | def Ctz2(YKHO):
return YKHO.settings | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m6Me(YKHO):\n return YKHO.configuration",
"def gCuF(YKHO):\n return getattr(YKHO, YKHO.settings_attr, {})",
"def lWpF(YKHO):\n return YKHO.__settings",
"def asJJ(YKHO):\n return YKHO._settings",
"def asJJ(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return YKHO.settings",
"d... | [
"0.7033376",
"0.69991845",
"0.6821746",
"0.6791057",
"0.6736986",
"0.6736986",
"0.6733482",
"0.6733026",
"0.6721398",
"0.67123824",
"0.6697859",
"0.6697859",
"0.6697859",
"0.668899",
"0.66586417",
"0.662572",
"0.6556313",
"0.6525811",
"0.64792895",
"0.64300793",
"0.641093",
... | 0.82492256 | 1 |
Get or set the identifier of the bundle currently used by this deployment. | def yJhm(YKHO):
return YKHO.settings['bundleId'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yJhm(YKHO) -> str:\n return qe4Y.get(YKHO, 'bundle_id')",
"def yJhm(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'bundle_id')",
"def yJhm(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'bundle_id')",
"def yJhm(YKHO):\n if 'bundleId' in YKHO._prop_dict:\n return YKHO._prop_dict... | [
"0.7986648",
"0.7887433",
"0.7734217",
"0.7667615",
"0.76346964",
"0.7530042",
"0.7530042",
"0.73695666",
"0.7330957",
"0.72438395",
"0.67808384",
"0.6648171",
"0.6639071",
"0.65793115",
"0.6331552",
"0.632594",
"0.62477595",
"0.59716487",
"0.59091526",
"0.5814054",
"0.581405... | 0.7782076 | 2 |
Get the 'light' (summary) status. This returns a dictionary with various information about the deployment, but not the actual health of the deployment | def IZrP(YKHO):
return YKHO.light_status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IOJH(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'deployment_status')",
"def jGRS():\n return {'status': 'healthy'}",
"def VLTN(YKHO):\n agxD = YKHO.client._perform_json('GET', '/project-deployer/deployments/%s' % YKHO.deployment_id)\n T35Y = YKHO.client._perform_json('GET', '/project-dep... | [
"0.73133427",
"0.72072273",
"0.6936074",
"0.6864202",
"0.6752103",
"0.6691236",
"0.6645868",
"0.66164124",
"0.6609597",
"0.6579428",
"0.6553987",
"0.6553043",
"0.65431046",
"0.6527779",
"0.6523464",
"0.65096974",
"0.6502419",
"0.64989907",
"0.6496547",
"0.6489635",
"0.6484655... | 0.0 | -1 |
Get the key of the published project. | def id(YKHO):
return YKHO.project_key | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pzNz() -> str:\n pass",
"def pzNz(hAVj: h2o.Client, B5PH: str) -> str:\n llaM = hAVj.list_projects(offset=0, limit=1000)\n bNKA = next((WKvO for WKvO in llaM if WKvO.name == B5PH), None)\n if bNKA is None:\n H5ew = hAVj.create_project(B5PH, B5PH)\n return H5ew\n return bNKA.key",... | [
"0.83260006",
"0.74107486",
"0.7396451",
"0.73431844",
"0.73431844",
"0.7140976",
"0.7064624",
"0.7031665",
"0.6994027",
"0.6977624",
"0.69697905",
"0.6963631",
"0.6909294",
"0.6909294",
"0.6909294",
"0.6909294",
"0.6909294",
"0.6909294",
"0.6909294",
"0.6909294",
"0.6909294"... | 0.72653735 | 5 |
Get the raw settings of this published project. This returns a reference to the raw settings, not a copy, so changes made to the returned object will be reflected when saving. | def Ctz2(YKHO):
return YKHO.settings | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asJJ(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return YKHO.settings",
"def gCuF(YKHO):\n return gCuF.Settings(YKHO)",
"def asJJ(YKHO):\n return YKHO._settings",
"def gCuF(YKHO):\n return getattr(YKHO, YKHO.settings_attr, {})",
"def lWpF(YKHO):\n return YKHO.settings",
"de... | [
"0.70976144",
"0.70976144",
"0.70701045",
"0.7058395",
"0.70400447",
"0.7022043",
"0.7019835",
"0.69495636",
"0.6882946",
"0.687482",
"0.6868249",
"0.6868249",
"0.6868249",
"0.6859238",
"0.6840481",
"0.6823622",
"0.676521",
"0.6730669",
"0.66885275",
"0.6595292",
"0.6586247",... | 0.84809715 | 0 |
Get the antenna bearing from the metadata and convert to float. | def W_AV(yIVm):
return float(yIVm['AntennaBearing'].split()[0]) if 'AntennaBearing' in yIVm else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Je4s(YKHO) -> float:\n QnmL = GPwf.gps.location.latitude.degrees\n Swre = GPwf.gps.location.longitude.degrees\n Je4s = YKHO._yaw * -1 + 180\n if Je4s < 0:\n Je4s += 360.0\n elif Je4s > 360:\n Je4s -= 360\n Je4s += tTVx.declination(QnmL, Swre)\n if Je4s < 0:\n Je4s += 3... | [
"0.77716917",
"0.74529517",
"0.7114378",
"0.70667785",
"0.6983064",
"0.6864401",
"0.6797622",
"0.67918766",
"0.65640694",
"0.6354075",
"0.633717",
"0.63191915",
"0.62666976",
"0.62352926",
"0.618374",
"0.61769193",
"0.6129143",
"0.6116618",
"0.6115185",
"0.61123693",
"0.61113... | 0.8672757 | 0 |
Cette fonction renvoie la nieme lettre de l'alphabet, n etant un entier compris entre 1 et 26 | def Cwt5(exwG):
jzdc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if exwG < 1 or exwG > 26:
return ''
else:
return jzdc[exwG - 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cwt5(exwG):\n jzdc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n assert type(exwG) == int, \"n n'est pas un entier !\"\n assert exwG >= 1 and exwG <= 26, \" l'entier n'est pas compris entre 1 et 26 !\"\n return jzdc[exwG - 1]",
"def b0iy(pKvt, exwG):\n Ylbp = ''\n for YRbF in pKvt:\n if YRbF in J... | [
"0.76790524",
"0.7405932",
"0.7134341",
"0.7107857",
"0.70959765",
"0.70959765",
"0.69898725",
"0.69898725",
"0.681633",
"0.68161094",
"0.6784091",
"0.6744124",
"0.67271787",
"0.66766196",
"0.6652482",
"0.6608219",
"0.65977836",
"0.65975446",
"0.6584358",
"0.65840256",
"0.657... | 0.7671177 | 1 |
Overriding form method because there should be a user who create the post and that user should be logged in user. | def lwXz(YKHO, L03z):
L03z.instance.author = YKHO.request.user
return super().form_valid(L03z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lwXz(YKHO, L03z):\n YKHO.post = Iofl(T97t, id=YKHO.kwargs['post_id'])\n L03z.instance.post = YKHO.post\n L03z.instance.author = YKHO.request.user\n return super().form_valid(L03z)",
"def ywL1(QePW, qm1k='wall/post_form.html'):\n L03z = L39s(QePW.POST or None)\n if L03z.is_valid():\n ... | [
"0.7528708",
"0.7338942",
"0.7318569",
"0.72770107",
"0.71108514",
"0.7074548",
"0.6905456",
"0.68938243",
"0.68816465",
"0.68711764",
"0.6855074",
"0.6855074",
"0.68384403",
"0.68154955",
"0.6757818",
"0.6751587",
"0.67163694",
"0.66966486",
"0.6687608",
"0.6680246",
"0.6656... | 0.64890623 | 50 |
Get the time since the epoch. | async def get_current_time(QePW: web.Request):
return jA2G.Response(text=str(int(ITS7.time() * 1000))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p6zu(YKHO):\n return YKHO._epoch_time",
"def Qe9l():\n return int(round(ITS7.time() * 1000))",
"def qtWj(YKHO) -> Kmii[int]:\n return YKHO._epoch",
"def uyNM():\n import time\n E3oo = int(time.time())\n E3oo = str(E3oo) + '000'\n return E3oo",
"def o7Wq() -> int:\n return int(IT... | [
"0.82748485",
"0.8107854",
"0.79695946",
"0.7896486",
"0.7879822",
"0.78118503",
"0.7757878",
"0.7755984",
"0.77033204",
"0.7689349",
"0.76459503",
"0.7577625",
"0.7557634",
"0.7549165",
"0.75209427",
"0.74846405",
"0.7480381",
"0.74680483",
"0.7462941",
"0.74605745",
"0.7442... | 0.0 | -1 |
return True if there are no 0 values and no adjacent values that are equal; otherwise False | def hY0Y(Cs6h):
for rdlD in range(4):
for fvDH in range(4):
if fvDH > 0:
if Cs6h[rdlD][fvDH] == Cs6h[rdlD][fvDH - 1]:
return False
if rdlD > 0:
if Cs6h[rdlD][fvDH] == Cs6h[rdlD - 1][fvDH]:
return False
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hY0Y(Cs6h):\n for rdlD in range(4):\n for iVRZ in range(3):\n if Cs6h[rdlD][iVRZ] == 0:\n return False\n if Cs6h[rdlD][iVRZ] == Cs6h[rdlD][iVRZ + 1]:\n return False\n for rdlD in range(3):\n for iVRZ in range(4):\n if Cs6h[rdlD]... | [
"0.74174",
"0.7415641",
"0.7343799",
"0.72005653",
"0.7198248",
"0.7137855",
"0.7085998",
"0.7044288",
"0.6945828",
"0.6905335",
"0.6883048",
"0.6848745",
"0.6772209",
"0.6765406",
"0.67595017",
"0.67566",
"0.6752556",
"0.6752556",
"0.6734945",
"0.67271465",
"0.66813904",
"... | 0.0 | -1 |
return True if a value>=32 is found in the grid; otherwise False | def Qjdx(Cs6h):
for rdlD in range(4):
for fvDH in range(4):
if type(Cs6h[rdlD][fvDH]) == int:
if Cs6h[rdlD][fvDH] >= 32:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjdx(Cs6h):\n for rdlD in range(4):\n for iVRZ in range(4):\n if Cs6h[rdlD][iVRZ] >= 32:\n return True\n return False",
"def Qjdx(Cs6h):\n kTv5 = False\n H2v2 = 4\n for rdlD in range(H2v2):\n for fvDH in range(H2v2):\n if Cs6h[rdlD][fvDH] >= 3... | [
"0.8403386",
"0.7787705",
"0.7690978",
"0.76386935",
"0.7619563",
"0.7576249",
"0.7533169",
"0.7475716",
"0.72958034",
"0.70755374",
"0.69360524",
"0.6856818",
"0.6818042",
"0.67753124",
"0.67361385",
"0.67268103",
"0.66461545",
"0.6613011",
"0.6549854",
"0.65300936",
"0.6521... | 0.7095462 | 9 |