query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Return a tuple of the shortest distance on the geometry boundary to a point, and the vertex at that location. If necessary, project coordinates to the local coordinate system. | def MzOc(YKHO, AU8u):
rEQJ = AU8u.get_vertex(crs=YKHO.crs)
PXIy = zip(YKHO.vertices.slice(0, -1), YKHO.vertices.slice(1, 0))
if isinstance(YKHO.crs, qYs3):
JfyU = XigU.pt_nearest_planar
def JfyU(pG0V):
return XigU.pt_nearest_planar(rEQJ[0], rEQJ[1], pG0V[0][0], pG0V[0][1], pG0V[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SLBp(YKHO):\n if YKHO.a != 0.0:\n WKvO = -0.5 * YKHO.b / YKHO.a\n return (WKvO, YKHO.f(WKvO))\n else:\n return (None, None)",
"def NfdA(YKHO, AU8u):\n TaUL = YKHO.distances_to(AU8u)\n or8S = oyIN.argmin(TaUL)\n return or8S",
"def k0TZ(Mkmy: np.ndarray, Ty9i: np.ndarray, ... | [
"0.6327832",
"0.63200974",
"0.62450075",
"0.6190293",
"0.616065",
"0.61353123",
"0.59961027",
"0.59861755",
"0.5968286",
"0.59256595",
"0.5924805",
"0.59187776",
"0.5859679",
"0.5840402",
"0.58189106",
"0.5799556",
"0.5797328",
"0.5769938",
"0.5762889",
"0.574463",
"0.5726566... | 0.6739551 | 0 |
Returns the distance between the first and last vertex. | def ZJUk(YKHO):
return YKHO[0].distance(YKHO[-1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R6s2(YKHO, hQHm, jlSq):\n return BfDw.real_distance(YKHO.node_locations[hQHm], YKHO.node_locations[jlSq])",
"def pImw(cntZ, Elif):\n if isinstance(cntZ, j6_a.Vector) and isinstance(Elif, j6_a.Vector):\n return u54L(finE(cntZ, Elif))",
"def u54L(YKHO):\n LTIa = [PvyL(Ty9i, crs=YKHO.crs) for ... | [
"0.6857695",
"0.66868705",
"0.6566895",
"0.64527345",
"0.63993585",
"0.62935674",
"0.6278556",
"0.6263611",
"0.6260827",
"0.62543386",
"0.623835",
"0.6210776",
"0.6209238",
"0.6151493",
"0.61401",
"0.6101558",
"0.6079494",
"0.60700047",
"0.60523826",
"0.60396624",
"0.6037349"... | 0.59266436 | 27 |
Returns a generator of adjacent line segments as coordinate tuples. | def DHQS(YKHO):
return ((YKHO.vertices[YRbF - 1], YKHO.vertices[YRbF]) for YRbF in range(len(YKHO.vertices))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DHQS(YKHO):\n return ((YKHO.vertices[YRbF], YKHO.vertices[YRbF + 1]) for YRbF in range(len(YKHO.vertices) - 1))",
"def Nqlg(YKHO):\n for q2Xo in kgDL(YKHO.points):\n yield NTRO(q2Xo, shape=YKHO)",
"def sJl3():\n yield (0, 0)\n EI5i = 0\n WKvO = 1\n LVAh = 0\n while True:\n ... | [
"0.715293",
"0.67410505",
"0.6620828",
"0.6367525",
"0.6346879",
"0.6254025",
"0.6209958",
"0.6191048",
"0.61157435",
"0.6104955",
"0.61017865",
"0.59952706",
"0.59926134",
"0.5985285",
"0.5961862",
"0.59376603",
"0.5917845",
"0.5901189",
"0.58752346",
"0.58511436",
"0.585050... | 0.7031273 | 1 |
Return the twodimensional area of the polygon, excluding subpolygons. | def f0tD(YKHO):
if isinstance(YKHO.crs, xPYB):
iOjJ = YKHO.crs.ellipsoid.a
K5Zz = YKHO.crs.ellipsoid.b
f0tD = 0.0
if iOjJ == K5Zz:
for pG0V in YKHO.segment_tuples:
o4D3, si3g = pG0V[0]
ajwV, skBL = pG0V[1]
f0tD += E1rU.spher... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2cR(j5tF):\n return Fw8z.gmPolygonArea(j5tF)",
"def f0tD(YKHO):\n if len(YKHO.exterior) < 3:\n raise Exception(\"Cannot compute the polygon's area because it contains less than three points.\")\n _g9D = YKHO.to_shapely_polygon()\n return _g9D.area",
"def gdLg(j5tF):\n z1Rg = Rgf5(j5t... | [
"0.82838786",
"0.78885007",
"0.7749108",
"0.77087003",
"0.75359327",
"0.75354177",
"0.71762806",
"0.7051876",
"0.69602925",
"0.6953876",
"0.694045",
"0.6885501",
"0.68535036",
"0.6834796",
"0.67967415",
"0.6772502",
"0.6749825",
"0.6748884",
"0.6736813",
"0.67028683",
"0.6688... | 0.6676159 | 21 |
Returns True if point is inside or on the boundary of the polygon, and False otherwise. Uses a crossing number scheme. | def sjXf(YKHO, AU8u):
WKvO, LVAh = AU8u.get_vertex(crs=YKHO.crs)[:2]
if isinstance(YKHO.crs, xPYB) and YKHO.ispolar():
return odLe.contains_proj(WKvO, LVAh, YKHO.vertices, YKHO.crs) and (not any((XP5J.contains(AU8u) for XP5J in YKHO.subs)))
else:
return odLe.contains(WKvO, LVAh, YKHO.vertice... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cGKK(YKHO, AU8u):\n kTpI = YKHO.get_reference_point()\n tbyV = SSad(AU8u, kTpI)\n glF2 = 0\n utLT = 0\n while utLT != len(YKHO):\n CYtZ = (utLT + 1) % len(YKHO)\n yhnl = False\n if tbyV.contains_point(YKHO[utLT]):\n while tbyV.contains_point(YKHO[CYtZ]):\n ... | [
"0.80341524",
"0.7828804",
"0.7446616",
"0.7424855",
"0.72766674",
"0.72661376",
"0.72632563",
"0.7246796",
"0.7243189",
"0.7213297",
"0.7206804",
"0.7206804",
"0.71901834",
"0.7168044",
"0.71017915",
"0.7100958",
"0.7043165",
"0.70241463",
"0.6987308",
"0.6941616",
"0.691531... | 0.0 | -1 |
Return vertices as a list of arrays. | def EBww(YKHO, ucxv=None):
if ucxv is None:
return [oyIN.array(Ty9i) for Ty9i in YKHO.vertices]
else:
iXlf = []
for zFiD in YKHO.vertices:
xPQO = [HXvt(Ty9i[:2], YKHO.crs, ucxv) for Ty9i in zFiD]
iXlf.append(oyIN.array(xPQO))
return iXlf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXlf(YKHO) -> list[PvyL]:\n jzdc = PvyL(YKHO.array[..., 0, :], copy=False)\n Fg_i = PvyL(YKHO.array[..., 1, :], copy=False)\n return [jzdc, Fg_i]",
"def iXlf(YKHO):\n try:\n return YKHO._vertices\n except:\n YKHO._vertices = [list(WKvO) for WKvO in YKHO.vertex_generator()]\n ... | [
"0.81024337",
"0.79321367",
"0.7888331",
"0.779744",
"0.77051806",
"0.75885123",
"0.7552615",
"0.74188983",
"0.74117184",
"0.7380387",
"0.7346458",
"0.72955436",
"0.72847754",
"0.72494227",
"0.7220087",
"0.7220087",
"0.7173088",
"0.7165102",
"0.7152394",
"0.7028097",
"0.69500... | 0.78280973 | 3 |
Return vertices as a list of arrays. | def EBww(YKHO, ucxv=None):
if ucxv is None:
iXlf = []
for uLyn in YKHO.vertices:
iXlf.append([oyIN.array(Ty9i) for Ty9i in uLyn])
return iXlf
else:
iXlf = []
for uLyn in YKHO.vertices:
_g9D = []
for tOkQ in uLyn:
_g9D.ap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXlf(YKHO) -> list[PvyL]:\n jzdc = PvyL(YKHO.array[..., 0, :], copy=False)\n Fg_i = PvyL(YKHO.array[..., 1, :], copy=False)\n return [jzdc, Fg_i]",
"def iXlf(YKHO):\n try:\n return YKHO._vertices\n except:\n YKHO._vertices = [list(WKvO) for WKvO in YKHO.vertex_generator()]\n ... | [
"0.81024337",
"0.79321367",
"0.7888331",
"0.78280973",
"0.779744",
"0.77051806",
"0.7552615",
"0.74188983",
"0.74117184",
"0.7380387",
"0.7346458",
"0.72955436",
"0.72847754",
"0.72494227",
"0.7220087",
"0.7220087",
"0.7173088",
"0.7165102",
"0.7152394",
"0.7028097",
"0.69500... | 0.75885123 | 6 |
Return product of matrix A and vector x | def EtBu(k0lF, WKvO):
Fg_i = []
for jzdc in k0lF:
Fg_i.append(sum([d_Ba * Y7fn for d_Ba, Y7fn in zip(jzdc, WKvO)]))
return Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yp3B(V1Y9, WKvO):\n r8hN = len(V1Y9)\n Fg_i = [0 for YRbF in Ni9Y(r8hN)]\n for YRbF in Ni9Y(r8hN):\n Fg_i[YRbF] = uYbU(V1Y9[YRbF], WKvO)\n return Fg_i",
"def U14a(YKHO, WKvO):\n return YKHO * WKvO",
"def SbLH(r8hN, P6bq):\n BFdY = []\n for Ty9i in r8hN:\n BFdY.append(yKrh... | [
"0.77956825",
"0.7771983",
"0.6860147",
"0.68422246",
"0.6840384",
"0.6809908",
"0.67714584",
"0.6755289",
"0.6727001",
"0.6662585",
"0.6601417",
"0.6563192",
"0.6556353",
"0.6462672",
"0.6430135",
"0.6415393",
"0.6375817",
"0.63664067",
"0.6363727",
"0.6352136",
"0.6350038",... | 0.7576437 | 2 |
Close the connection to the backend. | def U4F2(YKHO, *qIxc):
from osp.core.cuds import Cuds
Cuds._session = YKHO._previous_session
YKHO.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngVb(YKHO):\n YKHO.session.close()",
"def ngVb(YKHO):\n YKHO.session.close()",
"def DDI8(YKHO):\n YKHO._backend.disconnect()",
"def ngVb(YKHO):\n YKHO.conn.close()",
"def ngVb(YKHO):\n YKHO._conn.close()",
"def DDI8(YKHO):\n YKHO._connection.close()",
"def ngVb(YKHO):\n YKHO.co... | [
"0.799076",
"0.79684424",
"0.7913219",
"0.78593427",
"0.77929413",
"0.7790635",
"0.7765999",
"0.7765999",
"0.7762756",
"0.77303797",
"0.76862943",
"0.7669942",
"0.7657479",
"0.7657479",
"0.7657479",
"0.76417816",
"0.7621386",
"0.7603908",
"0.75970066",
"0.75970066",
"0.759700... | 0.0 | -1 |
Turn the phrase into a list of skipgrams and index them with their offset(s) as values. | def AwC8(YKHO) -> None:
for bTVd in YKHO.skipgrams:
YKHO.skipgram_index[bTVd.string] += [bTVd]
for bTVd in YKHO.skipgrams_lower:
YKHO.skipgram_index_lower[bTVd.string] += [bTVd] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t8nU(YKHO, OOv0: str) -> uLKX[None, x1iM[int]]:\n if not YKHO.has_skipgram(OOv0):\n return None\n return [bTVd.offset for bTVd in YKHO.skipgram_index[OOv0]]",
"def bTVd(zFiD, CtWL, VTcd):\n g4y1 = []\n Crrw = []\n vwCE = zFiD.split()\n for YRbF in range(len(vwCE)):\n F6PT = vw... | [
"0.6860445",
"0.64783335",
"0.63394105",
"0.6057104",
"0.596561",
"0.5767387",
"0.5752549",
"0.5712053",
"0.5712053",
"0.5712053",
"0.5709039",
"0.5708961",
"0.55494267",
"0.5515065",
"0.54880863",
"0.5461672",
"0.5452784",
"0.54478645",
"0.5431396",
"0.5427048",
"0.5403709",... | 0.7520621 | 0 |
Perform an evaluation of `model` on the examples from `dataset`. | def sHAk(YKHO, C3ST, __n6):
wIZE = u2Ve.metrics.Mean('loss')
vjyh = u2Ve.metrics.Accuracy('accuracy')
for Yw_3, Crrw in u2Ve.Iterator(__n6):
KeL5 = C3ST(Yw_3, training=False)
wIZE(YKHO._loss(KeL5, Crrw))
vjyh(ZylS.argmax(KeL5, axis=1, output_type=ZylS.int64), ZylS.cast(Crrw, ZylS.int... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(qIxc, _hV8, C3ST):\n if qIxc.dynamic_batching:\n lIOM = ZQQt(_hV8, qIxc.dev_batch_size)\n RrVo = pVAc(_hV8, batch_sampler=lIOM, num_workers=0, collate_fn=DBfl)\n else:\n lIOM = IqqL(_hV8)\n RrVo = pVAc(_hV8, sampler=lIOM, batch_size=qIxc.dev_batch_size, num_workers=0)\n ... | [
"0.72181267",
"0.7108579",
"0.70713145",
"0.70055586",
"0.69053817",
"0.68982685",
"0.68886787",
"0.688355",
"0.6877118",
"0.6847444",
"0.6824051",
"0.68158346",
"0.6803803",
"0.67946285",
"0.66654414",
"0.6650477",
"0.66181237",
"0.6611885",
"0.65464664",
"0.648689",
"0.6467... | 0.0 | -1 |
Convert (list of )+ tokens to a padded LongTensor. | def zt74(BVyk, Ep8u, Rdw3=gRUF):
maxY = []
WKvO = BVyk
while isinstance(WKvO[0], list):
maxY.append(max((len(LVAh) for LVAh in WKvO)))
WKvO = [epBp for LVAh in WKvO for epBp in LVAh]
s2mk = ht2j.LongTensor(Ep8u, *maxY).fill_(Rdw3)
for YRbF, KCHu in enumerate(BVyk):
s2mk[YRbF,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zt74(BVyk, Ep8u, Rdw3=si3H.PAD_ID):\n maxY = []\n WKvO = BVyk\n while isinstance(WKvO[0], list):\n maxY.append(max((len(LVAh) for LVAh in WKvO)))\n WKvO = [epBp for LVAh in WKvO for epBp in LVAh]\n s2mk = ht2j.LongTensor(Ep8u, *maxY).fill_(Rdw3)\n for YRbF, KCHu in enumerate(BVyk):... | [
"0.82005394",
"0.8014137",
"0.7413235",
"0.6460052",
"0.6340751",
"0.6146796",
"0.60953116",
"0.6057259",
"0.59972954",
"0.597745",
"0.5963818",
"0.5939974",
"0.5921533",
"0.58514607",
"0.57604337",
"0.57345676",
"0.56887496",
"0.5680914",
"0.56642675",
"0.5639345",
"0.563502... | 0.8212152 | 0 |
Keep only the topk rows of grads. | def bckx(Ro40, hz5a):
assert hz5a < Ro40.size(0)
Ro40.data[hz5a:].zero_()
return Ro40 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HfH_(yvY1, G1Hx):\n C7Ls = yvY1.copy()\n JqLF = 1\n while JqLF > 0:\n JqLF = 0\n ex31 = []\n PwWw = set()\n for P6bq in C7Ls:\n f_6u = set(C7Ls[P6bq])\n PwWw.add(P6bq)\n lMFc = [Ty9i for Ty9i in f_6u if Ty9i not in PwWw]\n for Ty9... | [
"0.6236729",
"0.6202846",
"0.5995939",
"0.5952917",
"0.57921153",
"0.5631274",
"0.5598667",
"0.55834585",
"0.5561743",
"0.5541929",
"0.5538895",
"0.5519918",
"0.54459053",
"0.5440998",
"0.54382324",
"0.54304534",
"0.5421804",
"0.5396311",
"0.5375047",
"0.53641903",
"0.5290516... | 0.5289445 | 21 |
returns an allletter version of the input string s | def wm2H(KCHu):
V22M = ''
for YRbF in KCHu:
if YRbF.isalpha():
V22M += YRbF
else:
V22M = V22M
return V22M | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y2gq(KCHu):\n KCHu = KCHu.lower()\n TK2h = ''\n for Z9rn in KCHu:\n if Z9rn in 'abcdefghijklmnopqrstuvwxyz':\n TK2h += Z9rn\n return TK2h",
"def D9NV(KCHu):\n return ehh_.sub('', KCHu)",
"def qtGF(YKHO, KCHu: str) -> str:\n zcW2 = {'1': 'a', '2': 'b', '3': 'c', '4': 'd',... | [
"0.7446234",
"0.73400116",
"0.7230626",
"0.6939016",
"0.68502325",
"0.678562",
"0.6607033",
"0.6594211",
"0.6542864",
"0.650545",
"0.6453921",
"0.6419391",
"0.6418148",
"0.64079654",
"0.64069784",
"0.6406844",
"0.6405462",
"0.6381357",
"0.63048196",
"0.63048196",
"0.63048196"... | 0.66237456 | 6 |
Dot product of two iterables. Stops when the shorter one is exhausted. | def pxL1(lSjb, v8Fa):
import operator
return sum(map(operator.mul, lSjb, v8Fa)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxL1(WKvO, LVAh):\n return sum(JaxB(seET.mul, WKvO, LVAh))",
"def uYbU(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise ValueError('Arrays are of different lengths')\n else:\n return [jzdc[YRbF] * Fg_i[YRbF] for YRbF in range(len(jzdc))]",
"def pxL1(hQHm, jlSq):\n return sum(JaxB... | [
"0.74057645",
"0.73878074",
"0.73670685",
"0.71203166",
"0.70413727",
"0.7007098",
"0.69932437",
"0.69448596",
"0.6935571",
"0.69011235",
"0.6867998",
"0.67921585",
"0.6790238",
"0.6732949",
"0.67308366",
"0.6718248",
"0.665564",
"0.66376626",
"0.66229826",
"0.6616137",
"0.65... | 0.6825296 | 11 |
Uses a workaround b/c of Keras limitations. Incorporates penultimate layer into model output so it is exposed for public use. | def sgNA(YKHO):
return YKHO.model.outputs[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MHtk(rvDU, Ybg9):\n WKvO = rvDU.output\n WKvO = Pf_s()(WKvO)\n WKvO = l6ZH(UJHp, activation='relu')(WKvO)\n N6Z1 = l6ZH(Ybg9, activation='softmax')(WKvO)\n C3ST = wOed(inputs=rvDU.input, outputs=N6Z1)\n return C3ST",
"def MHtk(rvDU, Ybg9):\n WKvO = rvDU.output\n WKvO = Pf_s()(WKvO)\n ... | [
"0.69938946",
"0.69910014",
"0.68412274",
"0.68089837",
"0.67884284",
"0.65863574",
"0.641834",
"0.63666993",
"0.62695515",
"0.6264127",
"0.6196534",
"0.61808765",
"0.6180046",
"0.6171499",
"0.617027",
"0.61648875",
"0.61433196",
"0.61404645",
"0.61209136",
"0.612045",
"0.611... | 0.6493947 | 6 |
List all usage details of the subscription | def uThB(x0hE, Ckh1=None, NYv7=None, tlxW=None, NbJd=False, djfK=False, kepv=None, KhBf=None):
if NbJd and djfK:
lHli = 'additionalProperties,meterDetails'
elif NbJd:
lHli = 'additionalProperties'
elif djfK:
lHli = 'meterDetails'
else:
lHli = None
if NYv7:
rrB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vtx3(YKHO):\n return YKHO.jsonRequest('/api/v1/usage', {'apiKey': YKHO._apiKey})",
"def list(Emd4, **B2fa):\n geh0 = tV5k().list_subscriptions(**B2fa)\n return [Emd4(**finE) for finE in geh0['results']]",
"def XU4s(YKHO):\n return YKHO.request('getAllSubscriptions')",
"def YGI8() -> object:\n... | [
"0.6745734",
"0.64215827",
"0.6382752",
"0.63634324",
"0.6341067",
"0.62802404",
"0.62371355",
"0.6210107",
"0.62015396",
"0.6195449",
"0.61619675",
"0.61604875",
"0.6100262",
"0.60542333",
"0.60002846",
"0.5973317",
"0.5973151",
"0.593546",
"0.5905405",
"0.5887627",
"0.58875... | 0.64977574 | 1 |
Return the date of last SACPI entry day + 5 months | def fp1b(YKHO):
mgFW = CmGq.FInstrument['SACPI']
GT8I = 'internal'
mcyV = CmGq.Time.DateAddDelta(CmGq.Time.FirstDayOfYear(YKHO.start_date), 0, 0, -1)
sNze = CmGq.FPrice.Select("instrument='%s' and market='%s' and day>'%s' and day<'%s'" % (mgFW.Name(), GT8I, mcyV, YKHO.start_date))
AVpI = sorted(sNze... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vKLp():\n return (qcWV.now().replace(day=1) + enlf(months=1) + fCoM(days=-1)).strftime('%d-%m-%Y')",
"def JtWs():\n return qcWV.now() + enlf(months=-1)",
"def BMH7(YKHO) -> JRYC.date:\n NC9g = (YKHO.tsdf / YKHO.tsdf.expanding(min_periods=1).max()).idxmin().values[0].astype(JRYC.datetime)\n retu... | [
"0.6461281",
"0.60802233",
"0.5939588",
"0.59278756",
"0.5841653",
"0.58129823",
"0.5812028",
"0.57855666",
"0.5779908",
"0.57398164",
"0.5734636",
"0.57267845",
"0.57267845",
"0.57261086",
"0.55936295",
"0.5569988",
"0.55674237",
"0.55626094",
"0.55486155",
"0.5507776",
"0.5... | 0.6318057 | 1 |
Returns a filename inside the output dir that contains modifier. For example, if test name is "fast/dom/foo.html" and modifier is "expected.txt", the return value is "//fast/dom/fooexpected.txt". | def cRRG(YKHO, nrx0):
Vb5F = YKHO._filesystem
cRRG = Vb5F.join(YKHO._root_output_dir, YKHO._test_name)
return Vb5F.splitext(cRRG)[0] + nrx0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nR3j(YKHO, AIkQ, dir, format='old'):\n Ux0P = YKHO.filename(filetype=AIkQ, format=format)\n return GkAb(dir) / Ux0P",
"def nrx0(YKHO) -> str:\n kUBT = umoi.match(YKHO.string.split('.')[-1])\n return kUBT.group(1) if kUBT else None",
"def hWek(pmON):\n return ZbWC.findall('.*(test\\\\d+)\\\\.... | [
"0.58207613",
"0.5751061",
"0.56657475",
"0.56599396",
"0.5654314",
"0.55837417",
"0.55719894",
"0.5552638",
"0.55237275",
"0.5506235",
"0.54401886",
"0.5409135",
"0.53879833",
"0.5328823",
"0.5316454",
"0.5291592",
"0.5287656",
"0.5282221",
"0.5279094",
"0.5277583",
"0.52505... | 0.8293363 | 0 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(dkU_, YKHO).__init__(*qIxc, **c_sp)
if YKHO.header is None:
YKHO.header = kKAJ.msg.Header()
if YKHO.pan is None:
YKHO.pan = p40S.msg.PanTiltActuatorFdbk()
if YKHO.tilt is None:
YKHO.tilt = p40S.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.7794795",
"0.77207875",
"0.77207875",
"0.7687243",
"0.7625947",
"0.7564293",
"0.7440383",
"0.74175525",
"0.7352349",
"0.7308313",
"0.72808266",
"0.722805",
"0.7225032",
"0.7225032",
"0.7219433",
"0.72120637",
"0.72120637",
"0.72120637",
"0.72120637",
"0.72120637",
"0.72120... | 0.72378874 | 11 |
Checks that auth provider allows password changes and current_password matches. | def b9Qe(YKHO, CBIr, rn8m):
for kT1P, xAU6 in YKHO.active_authenticators(CBIr.email, CBIr.username, rn8m):
if kT1P is None:
RKD7.debug('Unable to find module: %s' % xAU6)
else:
hFiG = kT1P.authenticate_user(CBIr, rn8m, xAU6)
if hFiG is True:
if uTN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIy1(L03z, Jyyj):\n BfIX = Jyyj.data\n jTXt = c5ow.password\n Mkmy = jf1V.verify(BfIX, c5ow.password)\n if not Mkmy:\n raise _FIc.ValidationError('old password is wrong')",
"def bPEj(YKHO):\n if not YKHO.user.check_password(YKHO.cleaned_data['current_password']):\n raise H6V6.Val... | [
"0.7481303",
"0.73336846",
"0.7174981",
"0.7134431",
"0.7075722",
"0.70290816",
"0.6981715",
"0.6932496",
"0.6923515",
"0.6892524",
"0.6880183",
"0.6819773",
"0.6771059",
"0.6756742",
"0.669096",
"0.668823",
"0.6686865",
"0.6674609",
"0.66698617",
"0.66646445",
"0.6656603",
... | 0.77227116 | 0 |
Check and coerce input data. Method used to check the input and convert Series/Panel input to internally used format, as defined in X_inner_mtype tag | def wr21(YKHO, EcVT, XuY2='X'):
ptOM = IqfM(EcVT, ['Series', 'Panel'], return_metadata=True, var_name=XuY2)
ST5j = ptOM[0]
yIVm = ptOM[2]
NCKE = yIVm['scitype']
if not ST5j:
tO9_ = 'X and X2 must be in an sktime compatible format, of scitype Series or Panel, for instance a pandas.DataFrame w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oQyT(nPrm, dm9e):\n yDqo = dm9e['dtype']\n lxKI = oyIN.issubdtype(yDqo, oyIN.integer) and oyIN.issubdtype(nPrm.dtype, oyIN.floating)\n if lxKI:\n o8Kj = dm9e['attrs']\n SnCn = [Z9rn for Z9rn in o8Kj if 'scale_factor' in Z9rn][0]\n SnCn = o8Kj[SnCn]\n nPrm = oyIN.multiply(nP... | [
"0.62297374",
"0.6043739",
"0.60126317",
"0.5946539",
"0.59304476",
"0.59045684",
"0.5892825",
"0.57969373",
"0.5764221",
"0.575244",
"0.5699566",
"0.5676077",
"0.5635283",
"0.5617007",
"0.56128883",
"0.5592067",
"0.55570465",
"0.55518",
"0.5503736",
"0.55009216",
"0.54999655... | 0.5321978 | 33 |
Given the ECS cluster name and the region, get the ECS ClusterARN. | def jgVL(zn0c, hKn5):
x0hE = iVGz.client('ecs', region_name=zn0c)
geh0 = x0hE.describe_clusters(clusters=[hKn5])
G9jH.debug('ECS Cluster Details: %s', geh0)
if len(geh0['clusters']) == 1:
return geh0['clusters'][0]['clusterArn']
else:
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO):\n return YKHO._data['cluster_name']",
"def c0yN(YKHO):\n return YKHO.name",
"def c0yN(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, '... | [
"0.60887766",
"0.60887766",
"0.5989389",
"0.596026",
"0.59062946",
"0.5844373",
"0.58062553",
"0.5748585",
"0.5748585",
"0.5662371",
"0.5662371",
"0.5662371",
"0.5662371",
"0.5662371",
"0.554368",
"0.55225235",
"0.55225235",
"0.54336554",
"0.54336554",
"0.5412958",
"0.5392277... | 0.8022224 | 0 |
Get the duration for which the task's cost needs to be calculated. This will vary depending on the CLI's input parameter (task lifetime, particular month, last N days etc.) and how long the task has run. | def WbTE(ydPO, LMTv, jYDQ, XPaU, BaQ6, wzkt):
wMS7 = 0.0
KilD = qcWV.datetime.strptime(ydPO, '%Y-%m-%dT%H:%M:%S.%fZ')
KilD = KilD.replace(tzinfo=qcWV.timezone.utc)
if LMTv == 'STILL-RUNNING':
hGTG = wzkt
else:
hGTG = qcWV.datetime.strptime(LMTv, '%Y-%m-%dT%H:%M:%S.%fZ')
hGTG ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbTE(YKHO):\n return int(sum((a1PO.duration for a1PO in YKHO.tasks)) / 3600)",
"def yUNh(YKHO):\n if YKHO.completion_ts:\n return ntd0.succeed(YKHO.duration)\n if not YKHO.package:\n return ntd0.succeed(None)\n if YKHO.method == 'tagBuild':\n vNHS = DSGb + fCoM(seconds=15)\n ... | [
"0.71925",
"0.6903817",
"0.67351425",
"0.66901046",
"0.6689487",
"0.66391677",
"0.6553783",
"0.6528054",
"0.6467396",
"0.64614105",
"0.62362707",
"0.6234401",
"0.62340534",
"0.62203664",
"0.6210725",
"0.6205074",
"0.61775374",
"0.6156006",
"0.6156006",
"0.6156006",
"0.6144366... | 0.66619873 | 5 |
The ID of the Product. | def Mc9N(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'product_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'product_id')",
"def Mc9N(YKHO) -> h8nf[qe4Y.Input... | [
"0.8916573",
"0.8916573",
"0.8916573",
"0.8916573",
"0.85305613",
"0.82466954",
"0.7799852",
"0.76235795",
"0.76235795",
"0.7566756",
"0.7472993",
"0.7343766",
"0.73037314",
"0.7265833",
"0.7258287",
"0.72423846",
"0.72423846",
"0.72423846",
"0.72423846",
"0.72423846",
"0.724... | 0.8337819 | 5 |
The ID of the Product. | def Mc9N(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'product_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'product_id')",
"def Mc9N(YKHO) -> qe4Y.Input[str]... | [
"0.8916573",
"0.8916573",
"0.8916573",
"0.8916573",
"0.85305613",
"0.8337819",
"0.7799852",
"0.76235795",
"0.76235795",
"0.7566756",
"0.7472993",
"0.7343766",
"0.73037314",
"0.7265833",
"0.7258287",
"0.72423846",
"0.72423846",
"0.72423846",
"0.72423846",
"0.72423846",
"0.7242... | 0.82466954 | 6 |
Get an existing App resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, kvcN: Optional[pulumi.Input[str]]=None, yJhm: Optional[pulumi.Input[str]]=None, x6Sb: Optional[pulumi.Input[str]]=None, DSdy: Optional[pulumi.Input[str]]=None, hxGQ: Optional[pulumi.Input[str]]=None, Mc9N: Optional[pulumi.Input[str]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kq0k(id):\n QTBn = S8SU.get(wHLO, id)\n if QTBn is not None:\n return pz3A(QTBn.to_dict())\n eTsH(404)",
"def Q_BA(ZuB6):\n for H5ew, BWXx in S8SU.all('State').items():\n if ZuB6 == BWXx.id:\n return pz3A(BWXx.to_dict())\n eTsH(404)",
"def NMoC(kFeU: str, id: pulumi.... | [
"0.61080384",
"0.60962945",
"0.6086946",
"0.60233724",
"0.601088",
"0.5983915",
"0.5979712",
"0.58301634",
"0.57650995",
"0.5743062",
"0.5649459",
"0.56280476",
"0.56177074",
"0.5602301",
"0.5584664",
"0.55736",
"0.55704504",
"0.55493164",
"0.55110854",
"0.551043",
"0.545657"... | 0.6481312 | 0 |
The ID of the Product. | def Mc9N(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'product_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'product_id')",
"def Mc9N(YKHO) -> h8nf[qe4Y.Input[... | [
"0.8916573",
"0.8916573",
"0.8916573",
"0.8916573",
"0.8337819",
"0.82466954",
"0.7799852",
"0.76235795",
"0.76235795",
"0.7566756",
"0.7472993",
"0.7343766",
"0.73037314",
"0.7265833",
"0.7258287",
"0.72423846",
"0.72423846",
"0.72423846",
"0.72423846",
"0.72423846",
"0.7242... | 0.85305613 | 4 |
Ensure that the app is in testing mode. | def uqZl(Ux0P):
with open(Ux0P, mode='rb') as G6EG:
mWFP, hGN5 = JqGe._decompress(Ux0P, G6EG)
assert mWFP.endswith('EcoliCore.xml')
assert len(hGN5.read()) >= 494226 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bGcW(YKHO):\n YKHO.assertTrue(wk5E.config['TESTING'])",
"def bGcW(YKHO):\n YKHO.assertTrue(wk5E.config['TESTING'])",
"def bGcW(YKHO):\n YKHO.assertFalse(P4t4.config['SECRET_KEY'] == 'my_precious')\n YKHO.assertTrue(P4t4.config['DEBUG'])\n YKHO.assertTrue(P4t4.config['TESTING'])",
"def bGcW... | [
"0.83574677",
"0.83574677",
"0.7859315",
"0.7849473",
"0.7350702",
"0.73238325",
"0.7275374",
"0.72144544",
"0.7121797",
"0.70557374",
"0.7008395",
"0.6961573",
"0.6925202",
"0.6795298",
"0.6782685",
"0.67808384",
"0.67417955",
"0.6723618",
"0.67094034",
"0.6676019",
"0.66559... | 0.0 | -1 |
Ensure that the app is in testing mode. | def E5fs(Ux0P):
mW5r = BS3y(stream=open(Ux0P, mode='rb'), filename=Ux0P, name='model')
C3ST = JqGe()._load_model(mW5r)
assert len(C3ST.reactions) == 95
assert len(C3ST.metabolites) == 72
assert mW5r.closed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bGcW(YKHO):\n YKHO.assertTrue(wk5E.config['TESTING'])",
"def bGcW(YKHO):\n YKHO.assertTrue(wk5E.config['TESTING'])",
"def bGcW(YKHO):\n YKHO.assertFalse(P4t4.config['SECRET_KEY'] == 'my_precious')\n YKHO.assertTrue(P4t4.config['DEBUG'])\n YKHO.assertTrue(P4t4.config['TESTING'])",
"def bGcW... | [
"0.83580196",
"0.83580196",
"0.7859287",
"0.7849439",
"0.7350841",
"0.7323817",
"0.7275431",
"0.7214475",
"0.71219856",
"0.7055876",
"0.70088553",
"0.696169",
"0.6925355",
"0.6795791",
"0.6782344",
"0.6781234",
"0.674172",
"0.67242146",
"0.67093164",
"0.6675879",
"0.6655944",... | 0.0 | -1 |
Given an array of 1D indicies into the image, return an Nx3 ??? array of the x,y,z coordinates | def eIm2(YKHO, QyVM):
try:
QyVM = wCft.array(QyVM)
jHsn = YKHO.dim[0]
pvd3 = YKHO.dim[1]
abgO = YKHO.dim[0] * YKHO.dim[1]
zRtR = wCft.transpose(wCft.array([QyVM % jHsn, QyVM / jHsn % pvd3, QyVM / abgO]))
return zRtR
except Exception as error:
print('failed... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ii3N(SqIz):\n RBVb = []\n for a1PO in SqIz:\n RBVb.append(RxOL(oyIN.float32(a1PO[EcVT]), oyIN.float32(a1PO[fuBA]), oyIN.float32(a1PO[Nk6w])))\n return RBVb",
"def rIBP(ezWE):\n return [ezWE[:, :, YRbF] for YRbF in range(ezWE.shape[-1])]",
"def lUlr(jZc1: list[np.ndarray], or8S: int, ROpF... | [
"0.6728512",
"0.6489615",
"0.6478636",
"0.6406588",
"0.62943083",
"0.62777793",
"0.626341",
"0.6229589",
"0.6223744",
"0.62199664",
"0.6195617",
"0.6194691",
"0.6055673",
"0.6037436",
"0.6018287",
"0.5997276",
"0.5940661",
"0.5924474",
"0.5921169",
"0.5908155",
"0.58992994",
... | 0.0 | -1 |
Gets the metricDataName and stores it in inputDict. @ In, metricDataName, string, the name of the metric data to find in currentInputs @ In, currentInputs, list of inputs to the step. @ Out, metricData, (data, probability) or Distribution | def vhME(YKHO, OHXS, bekj):
ffN3 = OHXS
tOY5 = None
if OHXS.count('|') == 2:
rxM3, Xmad, OHXS = OHXS.split('|')
Xmad = [Xmad.lower()]
else:
rxM3 = None
Xmad = ['input', 'output']
for ZkLR in bekj:
iwXa = None
if hasattr(ZkLR, 'type'):
iwXa ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pO5v(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'metric_name')",
"def pO5v(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'metric_name')",
"def pO5v(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'metric_name')",
"def pO5v(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'metric... | [
"0.624774",
"0.624774",
"0.624774",
"0.624774",
"0.624774",
"0.624774",
"0.624774",
"0.624774",
"0.624774",
"0.6004401",
"0.60013425",
"0.5968178",
"0.59263635",
"0.5769216",
"0.57137525",
"0.5678455",
"0.5656198",
"0.5650079",
"0.5625243",
"0.56057525",
"0.5547415",
"0.542... | 0.7487086 | 0 |
Dotproduct the features and current weights and return the best label. | def YEmv(YKHO, bySB):
cCrA = YKHO.predict_proba(bySB)
return YKHO.classes[oyIN.argmax(cCrA)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eBMN(YKHO):\n return YKHO.X.dot(YKHO.get_weights())",
"def _6As(YKHO, BxSD):\n cCrA = o7sj.dot(BxSD, YKHO.W) + YKHO.Wb\n bFLJ = Kt_s.nnet.softmax(cCrA)\n Crrw = Kt_s.argmax(cCrA, axis=1)\n return (Crrw, bFLJ)",
"def nrOS(YKHO, WKvO):\n return oyIN.dot(WKvO, YKHO.weights[-1])",
"def FKSh... | [
"0.64709884",
"0.62710226",
"0.5867083",
"0.5826588",
"0.57693255",
"0.5756743",
"0.57193357",
"0.57193357",
"0.57193357",
"0.56700444",
"0.5659396",
"0.5648412",
"0.56426966",
"0.56349194",
"0.5583931",
"0.55647486",
"0.55130947",
"0.54810303",
"0.5447642",
"0.5427752",
"0.5... | 0.524737 | 49 |
Dotproduct the features and current weights and return the best label. | def KR85(YKHO, bySB):
cCrA = oyIN.zeros(len(YKHO.classes))
for _x49, BWXx in bySB.items():
if BWXx == 0:
continue
_mSQ = YKHO.weights.get(_x49)
if _mSQ is None:
continue
cCrA += BWXx * _mSQ
cCrA = bCcy.fit_transform(cCrA)
return cCrA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eBMN(YKHO):\n return YKHO.X.dot(YKHO.get_weights())",
"def _6As(YKHO, BxSD):\n cCrA = o7sj.dot(BxSD, YKHO.W) + YKHO.Wb\n bFLJ = Kt_s.nnet.softmax(cCrA)\n Crrw = Kt_s.argmax(cCrA, axis=1)\n return (Crrw, bFLJ)",
"def nrOS(YKHO, WKvO):\n return oyIN.dot(WKvO, YKHO.weights[-1])",
"def FKSh... | [
"0.64709884",
"0.62710226",
"0.5867083",
"0.5826588",
"0.57693255",
"0.5756743",
"0.57193357",
"0.57193357",
"0.57193357",
"0.56700444",
"0.5659396",
"0.5648412",
"0.56426966",
"0.56349194",
"0.5583931",
"0.55647486",
"0.55130947",
"0.54810303",
"0.5447642",
"0.5427752",
"0.5... | 0.51014376 | 85 |
Add a new item to the top of our stack. | def _jXH(YKHO, ZfUD):
YKHO.stack.append(ZfUD)
if not YKHO.max or ZfUD >= YKHO.max[-1]:
YKHO.max.append(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, ZfUD):\n YKHO.stack.insert(0, ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)",
"def _jXH(YKHO, ZfUD):\n super().add_item_to_front(ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.top = [ZfUD] + YKHO.top",
"def _jXH(YKHO, ZfUD... | [
"0.86131185",
"0.8350371",
"0.8350371",
"0.82063144",
"0.8169893",
"0.80554295",
"0.7906704",
"0.7900811",
"0.78551334",
"0.7847313",
"0.7841573",
"0.7812312",
"0.77714646",
"0.7698743",
"0.7631913",
"0.7609149",
"0.75127417",
"0.7507851",
"0.748951",
"0.74806553",
"0.7480563... | 0.7491869 | 18 |
Remove and return the top item from our stack. | def BEuN(YKHO):
ZfUD = YKHO.stack.pop()
if ZfUD == YKHO.max[-1]:
YKHO.max.pop()
return ZfUD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO):\n try:\n if YKHO.size() > 0:\n tlxW = YKHO.top()\n YKHO.items.pop()\n return tlxW\n else:\n raise IndexError('Cannot pop item, stack is empty.')\n except IndexError as err:\n print(XObx)\n raise",
"def BEuN(YKHO):\n ... | [
"0.87957346",
"0.85759664",
"0.8559679",
"0.83127123",
"0.82553434",
"0.8204941",
"0.8165231",
"0.81395555",
"0.8128583",
"0.81095225",
"0.8108789",
"0.8068022",
"0.8064487",
"0.80618995",
"0.8053891",
"0.80387515",
"0.8038348",
"0.796708",
"0.795906",
"0.7957087",
"0.7939340... | 0.7828671 | 30 |
The last item in max is the max item in our stack. | def qfB5(YKHO):
return YKHO.max[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WlKn(YKHO):\n if YKHO.maxx == []:\n return None\n return YKHO.maxx[-1]",
"def qfB5(YKHO):\n return YKHO.max_stack.peek()",
"def max(YKHO):\n assert YKHO.__stack\n return YKHO.__max_values[-1]",
"def dJsD(YKHO):\n return YKHO.__max_stack[-1]",
"def max(YKHO):\n PtQX = -float(... | [
"0.8223666",
"0.81320584",
"0.8114541",
"0.80508286",
"0.76636064",
"0.75587475",
"0.7330097",
"0.7235333",
"0.7199902",
"0.70251775",
"0.70172393",
"0.7013688",
"0.6992615",
"0.69638574",
"0.694721",
"0.69457346",
"0.6941453",
"0.68973905",
"0.6857501",
"0.68508315",
"0.6840... | 0.7687186 | 4 |
Returns a list of unique words which that appear together with word in the dependency_list. | def C6O_(Np_6, GIN8):
V22M = set()
for wvau, gbxr, kbO9 in Np_6:
if gbxr == GIN8:
V22M.add(kbO9)
elif kbO9 == GIN8:
V22M.add(gbxr)
return list(V22M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XbjW(vwCE):\n yTXi = []\n for GIN8 in vwCE:\n if GIN8 not in yTXi:\n yTXi.append(GIN8)\n yTXi.sort()\n return yTXi",
"def d6AQ(V22M: list[str]) -> list[str]:\n return [epBp for epBp in list(set(V22M)) if epBp in YKHO.words]",
"def lCyC(YKHO, vwCE: List[str]) -> x1iM[str]:\n... | [
"0.7397748",
"0.7332242",
"0.6955943",
"0.68045413",
"0.6680356",
"0.6583253",
"0.6573687",
"0.65147394",
"0.6503563",
"0.6490802",
"0.6450996",
"0.6449669",
"0.6428956",
"0.64201736",
"0.6405528",
"0.6399228",
"0.6366292",
"0.6344379",
"0.6321502",
"0.6304007",
"0.6293037",
... | 0.84802175 | 0 |
Determine if this adjustment is old enough that we can assume it's no longer needed. | def CJbn(YKHO):
return TsP8.utcnow_ts() > YKHO.expire_ts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ypGT(YKHO):\n return YKHO.age > YKHO.lifespan",
"def Jrgq(YKHO) -> bool:\n return YKHO._action == 'older'",
"def RPp2(YKHO):\n yo7_ = qcWV.datetime.today()\n CjKC = qcWV.datetime.combine(YKHO.date, YKHO.start_time)\n return CjKC <= yo7_",
"def BNW8(YKHO):\n if YKHO.expires_at:\n ... | [
"0.68397313",
"0.62868214",
"0.6081539",
"0.60370785",
"0.59843177",
"0.5975423",
"0.596125",
"0.5959067",
"0.5919537",
"0.59194493",
"0.5896765",
"0.58203894",
"0.5796046",
"0.57801825",
"0.5778547",
"0.57633764",
"0.57181084",
"0.5716448",
"0.570537",
"0.5704538",
"0.570432... | 0.0 | -1 |
Method to begin a resource claim for a new instance. | def E0Q_(YKHO, QpfX, hVFd, *qIxc, **B2fa):
VXYh = hVFd['memory_mb']
x0h7 = hVFd['root_gb'] + hVFd['ephemeral_gb']
jFZy = YKHO._do_begin_resource_claim(QpfX, VXYh, x0h7, *qIxc, **B2fa)
if jFZy:
hkxX = YKHO._create_load_stats(QpfX, hVFd)
YKHO.compute_node = YKHO._update(QpfX, hkxX)
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: AuthServerClaimDefaultArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def eLpg(YKHO):\n raise oKrw('InstanceResource creation not supported')",
"def ixOG(YKHO, QpfX, VXYh, x0h7, Dnrn=None, vYBr=None, *qIxc, **B2fa):\n return YKHO._do_begin_resource_claim(Qp... | [
"0.62509257",
"0.60371166",
"0.5969876",
"0.5818339",
"0.5743511",
"0.571801",
"0.571801",
"0.571801",
"0.571801",
"0.571801",
"0.571801",
"0.5654904",
"0.56244344",
"0.5619872",
"0.56168664",
"0.5578573",
"0.5573552",
"0.55535185",
"0.55503863",
"0.55503863",
"0.5525074",
... | 0.7002623 | 0 |
Get the list of vertex coordinates for an edge. | def GzLM(YKHO, jj8B):
jcPU = list(oyIN.array(YKHO.edges[jj8B].coords.xy).T)[:]
return jcPU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3rE(D70y):\n return [D70y.vertex1, D70y.vertex2]",
"def Hq0F(YKHO, D70y):\n assert isinstance(D70y, ndC_)\n return map(Yegm, YKHO._top_exp.vertices_from_edge(D70y.topods_shape()))",
"def lnZ3(YKHO):\n return YKHO.coords",
"def siLd(YKHO):\n r3r7 = YKHO.node_ids\n return [(r3r7[0], r3r7... | [
"0.8280774",
"0.77096665",
"0.744324",
"0.70164496",
"0.69808906",
"0.6954093",
"0.68951213",
"0.67977554",
"0.67594576",
"0.6726835",
"0.6689108",
"0.6666376",
"0.66438687",
"0.6643371",
"0.6640205",
"0.66248316",
"0.66205746",
"0.661167",
"0.6602474",
"0.6597047",
"0.659399... | 0.7957288 | 1 |
converts farenheit to celcius | def xhMn(uxg7):
return (uxg7 - 32) * (5 / 9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GR48(ifuK):\n QaYJ = round((ifuK - 32) * 5 / 9, 1)\n return QaYJ",
"def GR48(ifuK):\n VRC1 = round((ifuK - 32) * 5 / 9, 1)\n return VRC1",
"def GR48(ifuK):\n L5IG = round(float(ifuK - 32) * (5 / 9), 1)\n return L5IG",
"def Ho6A(anhC):\n return (anhC - 32) * 5 / 9",
"def GR48(ifuK):... | [
"0.80833304",
"0.79071164",
"0.78782123",
"0.78239393",
"0.77643573",
"0.76808286",
"0.75874096",
"0.7583946",
"0.7524361",
"0.7401036",
"0.7401036",
"0.7348955",
"0.73330903",
"0.7248",
"0.7192899",
"0.7160771",
"0.7142256",
"0.70540285",
"0.7012243",
"0.6880764",
"0.6857772... | 0.62633044 | 43 |
initalize the Portfolio object with a PositionHandler, an event history, along with cash balance. Make sure the portfolio denomination currency is also set. | def FIMM(YKHO, G39W, c0Ef=0.0, VIXL='USD', rhJQ=None, mWFP=None):
YKHO.start_dt = G39W
YKHO.current_dt = G39W
YKHO.starting_cash = c0Ef
YKHO.currency = VIXL
YKHO.portfolio_id = rhJQ
YKHO.name = mWFP
YKHO.pos_handler = e_Mt()
YKHO.history = []
YKHO.logger = G9jH.getLogger('Portfolio')... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nd0v(YKHO):\n YKHO.cash = jth9.copy(YKHO.starting_cash)\n if YKHO.starting_cash > 0.0:\n YKHO.history.append(qU8Z.create_subscription(YKHO.current_dt, YKHO.starting_cash, YKHO.starting_cash))\n YKHO.logger.info('(%s) Funds subscribed to portfolio \"%s\" - Credit: %0.2f, Balance: %0.2f' % (YKHO.... | [
"0.7173111",
"0.6831782",
"0.67134976",
"0.6678022",
"0.65675235",
"0.6527908",
"0.6390145",
"0.6258053",
"0.62282896",
"0.62212044",
"0.6000357",
"0.59435725",
"0.5930339",
"0.5854626",
"0.5842731",
"0.5830696",
"0.579761",
"0.57606167",
"0.57326436",
"0.57089895",
"0.569233... | 0.71243984 | 1 |
initalize the portfolio with a (default) currency Cash Asset with quantity equal to 'starting_cash'. | def nd0v(YKHO):
YKHO.cash = jth9.copy(YKHO.starting_cash)
if YKHO.starting_cash > 0.0:
YKHO.history.append(qU8Z.create_subscription(YKHO.current_dt, YKHO.starting_cash, YKHO.starting_cash))
YKHO.logger.info('(%s) Funds subscribed to portfolio "%s" - Credit: %0.2f, Balance: %0.2f' % (YKHO.current_dt.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yvej(YKHO, VoIp):\n HVIF = YKHO.get_portfolio_object()\n if HVIF is not None:\n HVIF.cash += VoIp\n HVIF.initial_cash += VoIp",
"async def init(YKHO, OaeV, *dcyE: str):\n CBIr = OaeV.message.author\n HVIF = tyia(CBIr.id)\n for YRbF in range(0, len(dcyE), 2):\n HVIF.SetOwne... | [
"0.72195965",
"0.6654873",
"0.6479836",
"0.62634933",
"0.6254535",
"0.6159562",
"0.61312175",
"0.6044168",
"0.5925858",
"0.5922093",
"0.5849026",
"0.5737447",
"0.5727892",
"0.5719678",
"0.56384236",
"0.5622496",
"0.56089795",
"0.56013167",
"0.5577498",
"0.5574091",
"0.5544536... | 0.80738497 | 0 |
Obtain the total market value of the portfolio including cash. | def KV9a(YKHO):
return YKHO.total_market_value + YKHO.cash | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wuBF(YKHO):\n return YKHO.pos_handler.total_market_value()",
"def V1Vz(YKHO):\n wjRY = 0.0\n for ZrNc in YKHO.accounts():\n wjRY += ZrNc.available_cash()\n for IbHI in ZrNc.assets():\n wjRY += IbHI.adjusted_value()\n return wjRY",
"def PbhF(YKHO, BVC4, a1PO):\n zT7g ... | [
"0.7671627",
"0.75416785",
"0.7099624",
"0.6975173",
"0.67064476",
"0.66260713",
"0.6544043",
"0.6533217",
"0.6508555",
"0.6503629",
"0.64636236",
"0.6411057",
"0.64103353",
"0.6406251",
"0.63845277",
"0.6358938",
"0.63136154",
"0.6281191",
"0.62557274",
"0.6252469",
"0.62497... | 0.80464536 | 0 |
Calculate the sum of all the positions' unrealised P&Ls. | def jNkK(YKHO):
return YKHO.pos_handler.total_unrealised_pnl() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hzm0(YKHO):\n oyIN = 0\n for VmPb in YKHO.cells:\n exwG = YKHO.cell_np[VmPb]\n oyIN += exwG\n YKHO.dnp = oyIN - YKHO.np\n YKHO.np = oyIN",
"def NUze():\n global piles\n global num_piles\n OeII = 0\n for WKvO in e5rQ:\n OeII = OeII ^ WKvO\n return OeII",
"def ... | [
"0.6138382",
"0.5988451",
"0.5985783",
"0.5948424",
"0.5917901",
"0.588325",
"0.58515394",
"0.5802395",
"0.5777268",
"0.57663465",
"0.57444376",
"0.57424444",
"0.573149",
"0.56927526",
"0.5680383",
"0.56786084",
"0.56773674",
"0.56495285",
"0.5636211",
"0.5627178",
"0.5618784... | 0.5724155 | 13 |
Calculate the sum of all the positions' total P&Ls. | def SUZB(YKHO):
return YKHO.pos_handler.total_pnl() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mFEG(YKHO):\n return sum((YKHO.grid[oeNL][1] for oeNL in iy2n if YKHO.grid[oeNL][0])) + YKHO.grid['nb'][1]",
"def Cjc7(BZ33: list[Particle]) -> int:\n Cjc7 = 0\n for il4J in BZ33:\n if il4J.isotope:\n Cjc7 += il4J.atomic_number\n elif not il4J.element:\n Cjc7 += i... | [
"0.6674888",
"0.65747386",
"0.656115",
"0.6408351",
"0.6244071",
"0.62093467",
"0.62072265",
"0.6200046",
"0.6199953",
"0.6150999",
"0.61397165",
"0.6101902",
"0.60751224",
"0.6067845",
"0.60376614",
"0.59906673",
"0.5978963",
"0.5949327",
"0.5943739",
"0.59337807",
"0.593269... | 0.61587644 | 9 |
convert yyyymm as date object, last day of the month | def oAc9(pKvt):
yvT9 = qcWV.datetime.strptime(str(pKvt), '%Y%m')
yvT9 = yvT9.replace(day=28) + qcWV.timedelta(days=4)
return yvT9 - qcWV.timedelta(days=yvT9.day) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vKLp():\n return (qcWV.now().replace(day=1) + enlf(months=1) + fCoM(days=-1)).strftime('%d-%m-%Y')",
"def sz_R(Csk6):\n return _c1T(Csk6.year, Csk6.month, wTnG(Csk6.year, Csk6.month)[1])",
"def xjYu(_c1T):\n return qcWV(_c1T.year, _c1T.month, 1) + fCoM(days=-1)",
"def yHf1(_c1T):\n qjaP = GRk... | [
"0.78613883",
"0.78331536",
"0.7679891",
"0.75576544",
"0.75576544",
"0.7424104",
"0.72581494",
"0.7187047",
"0.7136545",
"0.7118",
"0.7076194",
"0.7022085",
"0.6971994",
"0.6962207",
"0.69447607",
"0.69043535",
"0.68437845",
"0.65625334",
"0.6523635",
"0.64279246",
"0.640960... | 0.59052914 | 41 |
scatter plot to visualise knn clusters | def VE_a(Q9VF, Crrw):
qfpW = Crrw.iloc[:, 1].apply(lambda WKvO: 'green' if WKvO == 0 else 'red' if WKvO == 1 else 'blue')
QrM1.figure(figsize=(6, 4))
QrM1.scatter(Q9VF.iloc[:, 1], Q9VF.iloc[:, 2], c=qfpW)
QrM1.xlabel('Title Polarity', fontsize=15)
QrM1.ylabel('Content Polarity', fontsize=15) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L7LW(YKHO):\n EvQg = txNa().fit_transform(YKHO.X)\n zxDJ = EHUa(n_components=3)\n IKO1 = zxDJ.fit_transform(YKHO.X)\n LZpg = QrM1.figure(figsize=(10, 8))\n uuEx.set_palette(uuEx.color_palette('cubehelix', 8))\n aNZO = DczD(LZpg)\n aNZO.scatter(IKO1[:, 0].tolist(), IKO1[:, 1].tolist(), IKO1... | [
"0.7747962",
"0.7716111",
"0.7538723",
"0.7446795",
"0.72035843",
"0.71824634",
"0.7149324",
"0.699142",
"0.6981986",
"0.6890416",
"0.68548346",
"0.6853959",
"0.68033546",
"0.67985046",
"0.67467767",
"0.6722409",
"0.6676758",
"0.66609615",
"0.66543454",
"0.66532516",
"0.66198... | 0.0 | -1 |
Returns a batch from data set according to its' index | def zv6l(YKHO, S50u):
if S50u > YKHO.getNumberOfBatchesTrainSet():
print('Batch Number requested bigger than total number of batches.')
return -1
rkPc = YKHO.batchSize * S50u
Yg7b = rkPc + YKHO.batchSize
Yg7b = Yg7b if Yg7b < len(YKHO.trainImageNames) else len(YKHO.trainImageNames) - 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, d6pt):\n bS0K = YKHO.indexes[d6pt * YKHO.batch_size:(d6pt + 1) * YKHO.batch_size]\n MTZi = [YKHO.list_IDs[G1Hx] for G1Hx in bS0K]\n EcVT, LVAh = YKHO.__data_generation(MTZi)\n return (EcVT, LVAh)",
"def OP2O(YKHO, d6pt):\n bS0K = YKHO.indexes[d6pt * YKHO.batch_size:(d6pt + 1) * YKHO... | [
"0.7588744",
"0.7478985",
"0.7478985",
"0.74274486",
"0.74183136",
"0.74183136",
"0.7416465",
"0.7414807",
"0.7340913",
"0.726303",
"0.72282183",
"0.7143944",
"0.7083753",
"0.705192",
"0.692392",
"0.68744177",
"0.66877234",
"0.6666997",
"0.6646818",
"0.66342145",
"0.6623923",... | 0.0 | -1 |
Create a new Node. Parent can be either the parent's Node, or the tree (for the root Node). If you override __init__(), you must call Node.__init__(parent), AT THE END OF YOUR __init__() ! | def FIMM(YKHO, _AKB):
if isinstance(_AKB, o7DN):
YKHO.parent = _AKB
YKHO.tree = _AKB.tree
YKHO.depth = _AKB.depth + 1
else:
YKHO.parent = None
YKHO.tree = _AKB
YKHO.depth = 0
YKHO.children = []
YKHO.childrencreated = 0
YKHO.expanded = 0
YKHO.select... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def igy8(YKHO, mWFP, _AKB):\n try:\n Q6kx = YKHO.map[mWFP]\n return Q6kx\n except:\n Q6kx = o7DN(mWFP, parent=_AKB.name)\n _AKB.children.add(Q6kx)\n Q6kx.parent = _AKB.name\n YKHO.map[mWFP] = Q6kx\n return Q6kx",
"def FIMM(YKHO, BWXx, _AKB=None):\n YKHO.v... | [
"0.76639163",
"0.73757106",
"0.71867186",
"0.7139515",
"0.70810753",
"0.7072079",
"0.6969169",
"0.69666064",
"0.69666064",
"0.6952852",
"0.691518",
"0.6791299",
"0.6791299",
"0.6791299",
"0.67450833",
"0.6701225",
"0.66884553",
"0.6686236",
"0.6647217",
"0.6647217",
"0.663237... | 0.72969025 | 2 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew: int) -> int:
if H5ew not in YKHO.map:
return -1
return YKHO.map[H5ew] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap.keys():\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n lWrn = H5ew % 37\n if YKHO.map[lWrn] == None:\n return -1\n for YRbF in range(len(YKHO.map[lWrn])):\n aoD7 = YKHO.m... | [
"0.79098475",
"0.762993",
"0.75650334",
"0.7556994",
"0.7529803",
"0.75259614",
"0.7493149",
"0.73738897",
"0.7294419",
"0.72940016",
"0.72216845",
"0.72175443",
"0.7181078",
"0.71774393",
"0.71633786",
"0.6980779",
"0.69289523",
"0.67850846",
"0.6757027",
"0.6734023",
"0.661... | 0.800388 | 0 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew: int) -> int:
if H5ew in YKHO.hashmap.keys():
return YKHO.hashmap[H5ew]
else:
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew not in YKHO.map:\n return -1\n return YKHO.map[H5ew]",
"def NMoC(YKHO, H5ew: int) -> int:\n lWrn = H5ew % 37\n if YKHO.map[lWrn] == None:\n return -1\n for YRbF in range(len(YKHO.map[lWrn])):\n aoD7 = YKHO.map[lWrn][YRbF]\n if... | [
"0.800388",
"0.762993",
"0.75650334",
"0.7556994",
"0.7529803",
"0.75259614",
"0.7493149",
"0.73738897",
"0.7294419",
"0.72940016",
"0.72216845",
"0.72175443",
"0.7181078",
"0.71774393",
"0.71633786",
"0.6980779",
"0.69289523",
"0.67850846",
"0.6757027",
"0.6734023",
"0.66126... | 0.79098475 | 1 |
If the email address and confirmation_code match a row in the people table, and the confirmation_code_set field isn't too far in the past, then insert a new session and return it. The max_age_confirmation_code should be a datetime.timedelta. Also, update the confirmation_code to NULL and the confirmation_code_set to NU... | def j2ZY(Emd4, WR9_, Hxmi, VEaK, owik):
VT3I = TI0e.dedent('\n with updated_person as (\n update people\n set confirmation_code = NULL,\n confirmation_code_set = NULL\n\n where email_address = %(email_address)s\n and confirmation_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jLl6(Emd4, WR9_, Hxmi, jTXt):\n N1p7 = WR9_.cursor()\n N1p7.execute(TI0e.dedent(\"\\n insert into webapp_sessions\\n (person_uuid)\\n select person_uuid\\n from people\\n where email_address = %(email_address)s\\n and salted_hashed_passwor... | [
"0.60392874",
"0.5681908",
"0.5451615",
"0.5417981",
"0.5366344",
"0.5240246",
"0.5230094",
"0.5170933",
"0.51691353",
"0.51681817",
"0.5118041",
"0.51156867",
"0.5023955",
"0.5006434",
"0.49894702",
"0.49657902",
"0.49437103",
"0.48913294",
"0.4865624",
"0.48327735",
"0.4811... | 0.8278633 | 0 |
Get a feature based on its index, like geojfile[7]. | def OP2O(YKHO, d6pt):
return pm1c(YKHO._data['features'][d6pt]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a3ym(YKHO, ZShL):\n return oyIN.where(YKHO.featureNames == ZShL)[0][0]",
"def MBgc(YKHO, SjLr):\n d6pt = YKHO._features_index.get(SjLr, False)\n return d6pt",
"def OP2O(YKHO, BZ2A):\n return YKHO.get_feature_by_name(BZ2A)",
"def apvs(YKHO, RDhP):\n return YKHO.features.index(RDhP)",
"def... | [
"0.70270425",
"0.6939968",
"0.68989456",
"0.6825057",
"0.6825057",
"0.6756342",
"0.6445459",
"0.6385401",
"0.6329417",
"0.63072646",
"0.62352085",
"0.62266725",
"0.62103474",
"0.620381",
"0.61840034",
"0.6173716",
"0.612962",
"0.6091679",
"0.60909986",
"0.60748136",
"0.606674... | 0.5754033 | 42 |
Return the time in the maps timezone. | def wzkt(YKHO):
if 'timezone' in YKHO._data:
return FXGE.utc.localize(qcWV.datetime.utcnow()).astimezone(FXGE.timezone(YKHO._data['timezone']))
else:
return FXGE.utc.localize(qcWV.datetime.utcnow()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI():\n return ITS7.timezone",
"def MbZJ():\n return rIAI('Etc/GMT-10')",
"def MbZJ(YKHO):\n Oa1e = SR6h.GoogleV3()\n bdHc = str(Oa1e.timezone((YKHO.latitude_value(), YKHO.longitude_value())))\n return int(FXGE.timezone(bdHc).localize(qcWV.datetime(2011, 1, 1)).strftime('%z')) / 100",
"d... | [
"0.77458173",
"0.75449455",
"0.74255836",
"0.7382991",
"0.73272073",
"0.72874886",
"0.7286596",
"0.72376335",
"0.71268165",
"0.7092585",
"0.708504",
"0.70804554",
"0.70730954",
"0.70302224",
"0.70247185",
"0.70023483",
"0.70023483",
"0.70023483",
"0.6986536",
"0.68674624",
"0... | 0.64761084 | 36 |
Returns a default Policy class to use, given a config. This class will be used by an Algorithm in case the policy class is not provided by the user in any single or multiagent PolicySpec. | def zpC7(Emd4, GPtr: AlgorithmConfig) -> h8nf[eBH2[KQUU]]:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BPqO(opDg, CX3n):\n XYgJ = {'assignment_policy': {'policy': 'anyone_certified'}, 'review_policy': {'policy': 'sampled_review', 'rate': 1, 'max_reviews': 1}}\n if opDg == a1KP.WorkerType.HUMAN:\n return XYgJ[CX3n]\n else:\n return {}",
"def mF3I():\n ze5J = hlcl\n bGrB = locals()\... | [
"0.6311315",
"0.5729347",
"0.56618005",
"0.5506984",
"0.54978967",
"0.5444962",
"0.5404679",
"0.5362682",
"0.5354706",
"0.53364164",
"0.5313896",
"0.53083",
"0.5271808",
"0.526701",
"0.5238172",
"0.52150375",
"0.52150375",
"0.5179932",
"0.5179932",
"0.5179932",
"0.5176115",
... | 0.876256 | 0 |
Return policy for the specified id, or None. | def qFaa(YKHO, ulWc: PolicyID=ppxL) -> KQUU:
return YKHO.workers.local_worker().get_policy(ulWc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8hp(YKHO, id):\n for zVa7, knan in YKHO.remote_store.get_policy_list().items():\n for Qabx in knan:\n if Qabx.id == id:\n return Qabx",
"def L0Qz(YKHO, QpfX, id):\n geh0 = YKHO.dns_manager.get_sp_policy(QpfX, id)\n return geh0",
"def qFaa(IBYC):\n return Qabx.g... | [
"0.8195919",
"0.77299577",
"0.75044537",
"0.6999399",
"0.6937139",
"0.6846598",
"0.68390167",
"0.67756456",
"0.67569816",
"0.67055607",
"0.6670871",
"0.6530853",
"0.6530853",
"0.65043503",
"0.6430231",
"0.6430231",
"0.6430231",
"0.6392584",
"0.6322479",
"0.6291166",
"0.628162... | 0.8019719 | 1 |
Sync "main" weights to given WorkerSet or list of workers. | def MTzu(YKHO, *, X4_r: WorkerSet) -> None:
bo34.info('Synchronizing weights to workers.')
X4_r.sync_weights() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sNuA(YKHO, _mSQ: Dict[PolicyID, dict]):\n YKHO.workers.local_worker().set_weights(_mSQ)",
"def KFtY(YKHO):\n for bGrB, KCHu in YKHO.servers.items():\n YKHO._set_server_weight(KCHu)\n for bGrB, Oa1e in YKHO.groups.items():\n YKHO._set_server_weight(Oa1e)\n for bGrB, Oa1e in YKHO.grou... | [
"0.7415235",
"0.62137634",
"0.60029346",
"0.5975668",
"0.5956228",
"0.5927176",
"0.5906956",
"0.58806175",
"0.5873325",
"0.5845702",
"0.5845702",
"0.58380777",
"0.5835373",
"0.57719904",
"0.5764665",
"0.5748021",
"0.57451636",
"0.5717775",
"0.5690156",
"0.5668649",
"0.5667609... | 0.87334454 | 0 |
Determines whether we need to create evaluation workers. Returns False if we need to run offline evaluation (with ope.estimate_on_dastaset API) or when local worker is to be used for | def _fo9(Emd4, xbdA: 'AlgorithmConfig'):
pDcr = xbdA.off_policy_estimation_methods and (not xbdA.ope_split_batch_by_episode)
return not pDcr and (xbdA.evaluation_num_workers > 0 or xbdA.evaluation_interval) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tB1q(YKHO) -> bool:\n Q3ut = sum(YKHO.client.nthreads().values())\n if len(YKHO.futures) < Q3ut:\n return True\n return False",
"def DVEY():\n pass",
"def NDgM(YKHO):\n return False",
"def HXTw(YKHO):\n pass",
"async def should_handle(YKHO):\n GufQ = YKHO.controller\n GIf... | [
"0.69867367",
"0.6750227",
"0.65190905",
"0.6204362",
"0.60276794",
"0.6008399",
"0.60004455",
"0.59838545",
"0.5982903",
"0.5968737",
"0.5966784",
"0.59494275",
"0.5947787",
"0.5880935",
"0.5866724",
"0.58357304",
"0.5815615",
"0.5801928",
"0.57745457",
"0.5712537",
"0.56984... | 0.80267185 | 0 |
Take features and labels and expand them into labelled examples for the model. | def g44j(NF9f, k5Zv):
u4DI = []
KloD = []
for WKvO, LVAh in zip(NF9f, k5Zv):
for hTWD in WKvO:
u4DI.append(hTWD)
KloD.append(LVAh)
return (u4DI, KloD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvQg(YKHO, bySB, Crrw):\n pass",
"def F8Ht(bySB, Crrw, Ep8u):\n for yKcO in range(0, len(bySB), Ep8u):\n Os4s = min(yKcO + Ep8u, len(bySB))\n yield (bySB[yKcO:Os4s], Crrw[yKcO:Os4s])",
"def E9Lq(_73Q, EKkb, G8d9, b0j5):\n ecF5 = {UXqs: YRbF for YRbF, UXqs in enumerate(EKkb, 1)}\n ... | [
"0.70349824",
"0.68972695",
"0.6896075",
"0.6843909",
"0.6753165",
"0.6723895",
"0.6698124",
"0.6696624",
"0.6696624",
"0.6696624",
"0.66622084",
"0.66512835",
"0.66372955",
"0.66372955",
"0.6585688",
"0.65664846",
"0.6552065",
"0.6544043",
"0.6524538",
"0.6518095",
"0.651359... | 0.738075 | 0 |
Given units, return the number of days as a float. | def d_rx(rYO3):
pSDG = qhPq
if rYO3:
if rYO3.lower().startswith('w'):
pSDG = HTK9
elif rYO3.lower().startswith('m'):
pSDG = hwvY
return pSDG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CpwC(Sm0u):\n return int(Sm0u * 86400)",
"def F4g0(YKHO):\n return 1",
"def a7SF(YKHO, PXGI):\n return float(YKHO.daysinbase) / YKHO.unitsize(PXGI)",
"def KMLC(WKvO):\n if not isinstance(WKvO, JRYC.timedelta):\n raise TypeError(str(type(WKvO)))\n return WKvO.total_seconds() / 86400.... | [
"0.6842742",
"0.66279376",
"0.65096146",
"0.64563215",
"0.6441921",
"0.6411838",
"0.6360568",
"0.63437134",
"0.6317742",
"0.6294341",
"0.62746185",
"0.61432064",
"0.6067217",
"0.6014479",
"0.5979685",
"0.59133446",
"0.59019345",
"0.58854306",
"0.5880806",
"0.5880806",
"0.5880... | 0.7700852 | 0 |
Takes a list ["a", "b", "c"] and returns a string "a, b & c" | def JbwW(hst7: list, TDw3: str=', ', w7q0: str=' & ') -> str:
if not hst7:
return ''
zzuG = list(hst7)
XVAW = zzuG.pop()
if zzuG:
return f'{TDw3.join(zzuG)}{w7q0}{XVAW}'
return f'{XVAW}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N4Dy(ZPAo):\n return ','.join(ZPAo)",
"def VDwR(JbwW):\n jUW6 = '[{}]'.format(JbwW, JbwW)\n return jUW6",
"def XQ0m(a2b1):\n G2eZ = ''\n R9W8 = len(a2b1)\n if R9W8 == 1:\n G2eZ += a2b1[0]\n if R9W8 == 2:\n G2eZ += a2b1[0] + ' and ' + a2b1[1]\n if R9W8 >= 3:\n fo... | [
"0.7322794",
"0.7226486",
"0.71739113",
"0.71678036",
"0.7139772",
"0.70491207",
"0.6987208",
"0.6975621",
"0.687572",
"0.68674576",
"0.6860652",
"0.68113303",
"0.67705745",
"0.67073786",
"0.6671819",
"0.6643516",
"0.6639437",
"0.6636453",
"0.6597404",
"0.65919954",
"0.657760... | 0.6336179 | 34 |
takes a Binary String Tree and returns the sum of the lengths of all the leaves. BST > num | def EbB_(kcpT):
if isinstance(kcpT, tuple):
return EbB_(kcpT[0]) + EbB_(kcpT[1])
else:
return len(kcpT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OmSc(J_Es):\n K3B_ = 0\n\n def nDZ0(Q6kx=None):\n nonlocal leaves\n if Q6kx is None:\n return\n if Q6kx.left is not None:\n nDZ0(Q6kx.left)\n if Q6kx.left is None and Q6kx.right is None:\n K3B_ += 1\n if Q6kx.right is not None:\n ... | [
"0.7068906",
"0.67276716",
"0.6592653",
"0.6562969",
"0.6536931",
"0.65101594",
"0.6485907",
"0.648363",
"0.64446527",
"0.63749784",
"0.6345081",
"0.6339996",
"0.6286512",
"0.6281552",
"0.6275853",
"0.6275338",
"0.6256959",
"0.62358624",
"0.6233116",
"0.6224606",
"0.6214529",... | 0.7558169 | 0 |
that takes a BST and returns a copy of that tree with all the leaves replaced by their first characters BST > str | def qShC(kcpT):
if isinstance(kcpT, tuple):
return (qShC(kcpT[0]), qShC(kcpT[1]))
else:
return kcpT[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return kcpT._str('', YKHO.root)",
"def Z6kp(KCHu):\n return DxBW(KCHu, len(KCHu))[0]",
"def Napc(Q6kx, J_Es=''):\n if not Q6kx:\n J_Es += '# '\n return J_Es\n J_Es += str(Q6kx.val) + ' '\n J_Es = Napc(Q6kx.left, J_Es)\n J_Es = Napc(Q6kx.right, J_Es)\n return... | [
"0.6375644",
"0.6195448",
"0.6017574",
"0.59081036",
"0.58997935",
"0.5868004",
"0.5812249",
"0.5791793",
"0.57854337",
"0.57643193",
"0.57426614",
"0.5727494",
"0.57235396",
"0.5677281",
"0.5672069",
"0.5669008",
"0.5664082",
"0.56430715",
"0.5630196",
"0.56074417",
"0.56039... | 0.52777714 | 70 |
Splits text by sentences. | def JDhM(YKHO, l5Ny: str) -> x1iM[ShAf]:
A97Q = YKHO._parser(l5Ny)
zhkO = list()
for _dZy in A97Q.sents:
pKZF = ShAf(value=_dZy.text, extractor_name=YKHO.name, start_token=_dZy[0], end_token=_dZy[-1], start_char=_dZy.text[0], end_char=_dZy.text[-1])
zhkO.append(pKZF)
return zhkO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JHW8(YKHO, l5Ny):\n return UQZR(l5Ny)",
"def c0FK(l5Ny):\n Rhv4 = Dhdw.sent_tokenize(l5Ny)\n return Rhv4",
"def bI8b(YKHO, l5Ny):\n return YKHO._support.splitInPhrase(l5Ny)",
"def lpha(l5Ny):\n A97Q = K9NE(l5Ny)\n Rhv4 = [WKvO.text_with_ws for WKvO in A97Q.sents]\n return Rhv4",
"d... | [
"0.8591312",
"0.8463891",
"0.830895",
"0.824216",
"0.8223932",
"0.81387705",
"0.79170114",
"0.7883451",
"0.77430445",
"0.7718218",
"0.7645844",
"0.75872874",
"0.75845367",
"0.7566527",
"0.7566527",
"0.73208463",
"0.7228293",
"0.7199005",
"0.7178234",
"0.71557724",
"0.7147786"... | 0.0 | -1 |
Try and find a document by various criteria. | def CPVy(Emd4, H7rZ=None, EZ2Z=None, _XQG=None, N8rh=None):
vexM = Emd4.all()
vexM = vexM.filter(yQaM.collection_id == EZ2Z)
if H7rZ is not None:
vexM = vexM.filter(yQaM.parent_id == H7rZ)
if _XQG is not None:
vexM = vexM.filter(yQaM.foreign_id == _XQG)
elif N8rh is not None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qPLQ(YKHO):\n pass",
"async def _find(YKHO, C13M: str) -> uLKX[x1iM[sqRO], None]:\n A97Q = sqRO(C13M)\n nPrm = A97Q(YKHO.selector)\n if not nPrm and YKHO.raise_not_found:\n raise dLyT(\"No matches for '{selector}' found in document\".format(selector=YKHO.selector))\n elif not nPrm:\n ... | [
"0.69850135",
"0.69720745",
"0.68757623",
"0.6738735",
"0.67325044",
"0.6697067",
"0.6694277",
"0.66787994",
"0.66675776",
"0.6496688",
"0.6425214",
"0.63371915",
"0.6317889",
"0.6208751",
"0.6164415",
"0.616352",
"0.6147236",
"0.6125187",
"0.6124362",
"0.6076006",
"0.6060732... | 0.0 | -1 |
Return a result between 1 and 0 using a sigmoid function | def YDYE(YKHO, epBp):
UUZ1 = 1 + oyIN.exp(-epBp)
Aofo = 1 / UUZ1
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(WKvO):\n return ... | [
"0.8726892",
"0.8726892",
"0.8693726",
"0.864971",
"0.86333054",
"0.8632544",
"0.86240435",
"0.86240435",
"0.86110497",
"0.86110497",
"0.86110497",
"0.86110497",
"0.86110497",
"0.86110497",
"0.8608294",
"0.8599766",
"0.85885125",
"0.85728616",
"0.8561277",
"0.85425025",
"0.85... | 0.0 | -1 |
Sample initial states by taking random number of noops on reset. Noop is assumed to be action 0. | def FIMM(YKHO, sEAN, cc1Y=30):
ch3p.Wrapper.__init__(YKHO, sEAN)
YKHO.noop_max = cc1Y
YKHO.override_num_noops = None
YKHO.noop_action = 0
assert sEAN.unwrapped.get_action_meanings()[0] == 'NOOP' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO, **B2fa):\n YKHO.env.reset(**B2fa)\n QDHm = YKHO.unwrapped.np_random.randint(1, YKHO.noop_max + 1)\n W061 = None\n for bGrB in range(QDHm):\n W061, bGrB, _ins, bGrB = YKHO.env.step(YKHO.noop_action)\n if _ins:\n W061 = YKHO.env.reset(**B2fa)\n return W061",
"... | [
"0.7219723",
"0.72187144",
"0.70726216",
"0.7021141",
"0.7017971",
"0.69458",
"0.6894687",
"0.6889921",
"0.6793108",
"0.6787878",
"0.66379833",
"0.6548487",
"0.6545404",
"0.6478773",
"0.64702266",
"0.6465461",
"0.64284664",
"0.64275134",
"0.6427446",
"0.6419816",
"0.6376056",... | 0.0 | -1 |
Bin reward to {+1, 0, 1} by its sign. | def vOGg(YKHO, vOGg):
return oyIN.sign(vOGg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)",
"def vOGg(YKHO, vOGg):\n return float(oyIN.sign(vOGg))",
"def Zihr(WKvO):\n return tBeC(1, WKvO)",
"def Zihr(YKHO):\n return 1 - 2 * YKHO._ltz()",
"def Zihr(YKHO, g4y1):\n pass",
"def Zihr(YKHO, g4y1):\n pass",
"def Zihr(WKvO):\n if ... | [
"0.7170663",
"0.6652758",
"0.6516397",
"0.61955494",
"0.60499823",
"0.60499823",
"0.6048698",
"0.60147136",
"0.5961627",
"0.5949438",
"0.59057444",
"0.5822291",
"0.5816496",
"0.57978296",
"0.57128024",
"0.5707449",
"0.56889117",
"0.56587505",
"0.5643741",
"0.56297874",
"0.562... | 0.70812565 | 4 |
Stack k last frames. Returns lazy array, which is much more memory efficient. See Also baselines.common.atari_wrappers.LazyFrames | def FIMM(YKHO, sEAN, G1Hx):
ch3p.Wrapper.__init__(YKHO, sEAN)
YKHO.k = G1Hx
YKHO.frames = MUE7([], maxlen=G1Hx)
BLg0 = sEAN.observation_space.shape
YKHO.observation_space = oi6k.Box(low=0, high=255, shape=(BLg0[0], BLg0[1], BLg0[2] * G1Hx), dtype=oyIN.uint8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qPQo(bySB, G1Hx=10, Crrw=None):\n UWrr, rpgT = (bySB.shape[0], bySB.shape[1])\n T0NB = oyIN.array([bySB[:, f4IJ - G1Hx:f4IJ + G1Hx + 1] for f4IJ in range(G1Hx, rpgT - G1Hx - 1)])\n T0NB = oyIN.reshape(T0NB, [-1, (2 * G1Hx + 1) * UWrr]).T\n if Crrw is not None:\n h6dl = Crrw[G1Hx:rpgT - G1Hx ... | [
"0.5785088",
"0.57418305",
"0.5727743",
"0.56725866",
"0.5657102",
"0.56533515",
"0.562567",
"0.5530811",
"0.5496529",
"0.5494264",
"0.53636014",
"0.5313162",
"0.53079146",
"0.5287681",
"0.52842236",
"0.5281449",
"0.52532285",
"0.52426165",
"0.52383834",
"0.5215902",
"0.51987... | 0.0 | -1 |
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). | def lBjP(YKHO, tk5Y):
if not tk5Y:
return []
rjy3 = False
Tu7n = [tk5Y]
Aofo = []
while Tu7n:
jbXL = []
b_P_ = []
while Tu7n:
Q6kx = Tu7n.pop()
b_P_.append(Q6kx.val)
if rjy3 == 1:
if Q6kx.left:
jb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def It5M(tk5Y):\n return",
"def wkEu(tk5Y):\n AyoH = [tk5Y]\n HB5a = []\n while AyoH:\n Q6kx = AyoH.pop()\n print(Q6kx.data, end=' ')\n if Q6kx.right:\n HB5a.append(Q6kx.right)\n if Q6kx.left:\n HB5a.append(Q6kx.left)\n if not AyoH:\n ... | [
"0.76472515",
"0.6974045",
"0.6966052",
"0.69008505",
"0.6631278",
"0.65696484",
"0.6472859",
"0.64711165",
"0.6433989",
"0.63938385",
"0.6313777",
"0.6285579",
"0.6284691",
"0.627963",
"0.6279272",
"0.6256373",
"0.62071615",
"0.61616915",
"0.61511487",
"0.6136975",
"0.613019... | 0.81539404 | 0 |
Get the next cell from the processing queue. | def S97y(YKHO):
VmPb = YKHO.cells_to_process.pop(0)
return VmPb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S97y(YKHO):\n if len(YKHO.queue) == 0:\n return\n wEf2 = YKHO.peek_queue()\n YKHO.queue.remove(wEf2)\n return wEf2[0]",
"def next(YKHO):\n try:\n return YKHO.queue.get()\n except rWmY:\n raise StopIteration",
"def next(YKHO):\n if YKHO.pointer > len(YKHO.queue) - 1... | [
"0.8887116",
"0.75175375",
"0.74384785",
"0.7436739",
"0.7257795",
"0.6763209",
"0.67374814",
"0.67179966",
"0.67179966",
"0.6650444",
"0.6641934",
"0.66329914",
"0.66136074",
"0.6612331",
"0.6570229",
"0.6490648",
"0.6462279",
"0.6451531",
"0.64372516",
"0.6433434",
"0.64283... | 0.8064473 | 1 |
Get all open cells. | def sZZr(YKHO):
NwL4 = len(YKHO.mine_field)
ulBT = len(YKHO.mine_field[0])
Z1rU = [(rdlD, fvDH) for rdlD in range(NwL4) for fvDH in range(ulBT) if not YKHO.mine_field[rdlD][fvDH] == '?']
return Z1rU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KpfI(Jyyj: MineField, VmPb: Cell) -> x1iM[riCw]:\n if VmPb.is_flag or VmPb.is_mine or (not Jyyj.cell_is_safe(VmPb)):\n return [VmPb]\n if VmPb.visited:\n return\n Z1rU: list = list()\n VmPb.visited = True\n Z1rU.append(VmPb)\n for VmPb in Jyyj.surrounding_cells(VmPb):\n Z... | [
"0.71365005",
"0.7095869",
"0.69036734",
"0.6763179",
"0.6711646",
"0.6556367",
"0.6549689",
"0.65410686",
"0.6419314",
"0.64158624",
"0.63626695",
"0.6293136",
"0.62435544",
"0.62284225",
"0.6202099",
"0.60618067",
"0.60603946",
"0.60271055",
"0.6018301",
"0.5981838",
"0.596... | 0.76410484 | 0 |
Tests if overriden __eq__ method works correctly | def wYX1() -> None:
fJfP = PvyL(1, 2)
hWOy = PvyL(-2, -4)
fcr0 = PvyL(3, 3)
k_lf = PvyL(0, 0)
k95H = XjZw(first=fJfP, second=hWOy)
xXPu = XjZw(first=fJfP, second=hWOy)
bmcb = XjZw(first=fcr0, second=k_lf)
assert k95H == xXPu
assert not k95H == bmcb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YK... | [
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826",
"0.85242826"... | 0.0 | -1 |
Renders the home page. | def kZiy(QePW):
assert isinstance(QePW, eu5F)
BQsO = TWAJ.objects.get(is_current='True')
return _1tc(QePW, 'app/index.html', context_instance=K1Ja(QePW, {'title': 'Home Page', 'year': qcWV.now().year, 'contact': U2Av.objects.get(pk=1), 'current_position': BQsO, 'current_resume': ESGb.objects.get(is_default=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the about page. | def vsuQ(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/about.html', context_instance=K1Ja(QePW, {'title': 'About', 'message': 'Your application description page.', 'year': qcWV.now().year, 'contact': U2Av.objects.get(pk=1)})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.7597973 | 77 |
Renders the about page. | def FLXQ(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/history.html', context_instance=K1Ja(QePW, {'title': 'Work History', 'contact': U2Av.objects.get(pk=1), 'work_histories': TWAJ.objects.all().order_by('-start_date'), 'current_application': m36K.objects.get(pk=1)})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def CUO8(QePW, id, s5ru):
assert isinstance(QePW, eu5F)
BQsO = Iofl(TWAJ, pk=id)
return _1tc(QePW, 'app/workhistory.html', context_instance=K1Ja(QePW, {'title': 'Work History Detail', 'work_history': BQsO, 'current_application': m36K.objects.get(pk=1), 'current_skills': OFXy.objects.filter(work_history=BQsO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Determine if there are more items in the data source. | def TNNC(YKHO):
return YKHO._has_more | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GoM3(YKHO):\n YKHO._has_more = len(YKHO._items) > YKHO.per_page\n YKHO._items = YKHO._items[0:YKHO.per_page]",
"def MF15(YKHO):\n return YKHO.count < len(YKHO)",
"def SPTI(YKHO) -> bool:\n return YKHO.__more",
"def UA88(YKHO):\n return bool(YKHO.content and YKHO.preview != YKHO.content)",
... | [
"0.7345127",
"0.7116989",
"0.70161515",
"0.68318427",
"0.67888224",
"0.67825514",
"0.6751578",
"0.6674409",
"0.6631319",
"0.6631319",
"0.6631319",
"0.6595824",
"0.6511024",
"0.6507249",
"0.65030056",
"0.64958227",
"0.64814097",
"0.6476219",
"0.6436921",
"0.6424674",
"0.639353... | 0.72596 | 1 |
Collect and collate the license rules in the Qlik Sense Site | def dx5e():
XLMv = C13M.add_section()
BURA, C2f8 = (XLMv.page_height, XLMv.page_width)
XLMv.orientation = Ug_O.LANDSCAPE
XLMv.page_width = 10058400
XLMv.page_height = 7772400
C13M.add_heading('License Rules', level=1)
sJEv = GbT5.get_licenserules()
dFku = len(sJEv)
tyNF = C13M.add_ta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zR92():\n HKwb = C13M.add_paragraph('')\n C13M.add_heading('License', level=1)\n hFZ4 = ['lef', 'serial', 'name', 'organization', 'product', 'numberOfCores', 'isExpired', 'expiredReason', 'isBlacklisted', 'isInvalid']\n orHE = GbT5.get_license()\n oBUx = len(orHE)\n tyNF = C13M.add_table(rows... | [
"0.61655337",
"0.5896988",
"0.58003104",
"0.56167525",
"0.55918413",
"0.55918413",
"0.5583374",
"0.54813075",
"0.5342495",
"0.53192645",
"0.5305253",
"0.5246317",
"0.5171956",
"0.51501316",
"0.5114723",
"0.50939006",
"0.50508994",
"0.5037162",
"0.5032238",
"0.49831823",
"0.49... | 0.66415656 | 0 |
Gets the type of this InitLabeler. Required property to deserialize the JSON string correctly | def type(YKHO):
return YKHO._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n return YKHO.get('type')",
"def type(YKHO):\n return YKHO.raw.get('type')",
"def type(YKHO):\n return YKHO.config['type']",
"def type(YKHO):\n return YKHO.properties.get('type')",
"def type(YKHO):\n return YKHO._getValue('type')",
"def type(YKHO):\n return YKHO.containe... | [
"0.66663367",
"0.6553353",
"0.64687556",
"0.64569205",
"0.6368232",
"0.623508",
"0.623508",
"0.62114835",
"0.6172099",
"0.61282295",
"0.61282295",
"0.609451",
"0.609451",
"0.609451",
"0.609451",
"0.609451",
"0.609451",
"0.609451",
"0.609451",
"0.609451",
"0.609451",
"0.6094... | 0.0 | -1 |
Sets the type of this InitLabeler. Required property to deserialize the JSON string correctly | def type(YKHO, type):
if type is None:
raise ValueError('Invalid value for `type`, must not be `None`')
YKHO._type = type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO, type: str):\n YKHO._type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def Ti2p(YKHO, type):\n if not YKHO.Loaded:\n YKHO.type = type\n YKHO.loader = ePUr.getNetwork(type)\n YKHO.isTypeSet = True",
"def type... | [
"0.6646275",
"0.64745486",
"0.64745486",
"0.64434385",
"0.643283",
"0.643283",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"0.63833445",
"... | 0.60425323 | 44 |
Gets the description of this InitLabeler. Description of the labeler | def JBZA(YKHO):
return YKHO._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n if YKHO._description is None:\n YKHO._load()\n return YKHO._description",
"def lIba(YKHO):\n return YKHO.name()",
"def t5do(YKHO):\n return YKHO.__description",
"def t5do(YKHO):\n return YKHO.__description",
"def yoaG(YKHO):\n print(YKHO.description)",
"def yoaG... | [
"0.68142813",
"0.68047225",
"0.68027186",
"0.67849994",
"0.6781453",
"0.6781453",
"0.6687821",
"0.66844124",
"0.66844124",
"0.6657763",
"0.66518414",
"0.6650588",
"0.6650588",
"0.6594453",
"0.658534",
"0.6541264",
"0.6541264",
"0.6541264",
"0.6541264",
"0.6541264",
"0.6541264... | 0.6512494 | 85 |
Sets the description of this InitLabeler. Description of the labeler | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def Rof6(YKHO, QoB4):\n YKHO.label = QoB4",
"def JBZA(YKHO, JBZA: ConfigNodePropertyString):\n YKHO._description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def JBZA(Y... | [
"0.7725438",
"0.76624113",
"0.75396353",
"0.7475944",
"0.74724615",
"0.74058354",
"0.74058354",
"0.74058354",
"0.74058354",
"0.7367029",
"0.72860944",
"0.7200818",
"0.7191123",
"0.7191123",
"0.7191123",
"0.7191123",
"0.715886",
"0.7040807",
"0.70013094",
"0.6998271",
"0.68990... | 0.7350169 | 44 |
Gets the ground_truth_label_facet of this InitLabeler. Name of the answer field that contains correct labels of a document | def qhE5(YKHO):
return YKHO._ground_truth_label_facet | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qhE5(YKHO, qhE5):\n if qhE5 is None:\n raise ValueError('Invalid value for `ground_truth_label_facet`, must not be `None`')\n YKHO._ground_truth_label_facet = qhE5",
"def Gsrz(YKHO):\n return YKHO._predicted_label_facet",
"def s7Ho(YKHO):\n return YKHO._gt_label",
"def DeTJ(YKHO):\n ... | [
"0.64058954",
"0.6398718",
"0.5678945",
"0.5402182",
"0.53986764",
"0.52721345",
"0.525732",
"0.51976234",
"0.5189911",
"0.51846415",
"0.50814915",
"0.5080447",
"0.50804085",
"0.50763154",
"0.5059579",
"0.5059329",
"0.5059329",
"0.5059329",
"0.5059329",
"0.50496393",
"0.50486... | 0.8000839 | 0 |
Sets the name of this InitLabeler. Name | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP\n YKHO.labels.change_name(mWFP)",
"def WZrJ(YKHO, mWFP):\n YKHO._name = n_Rt",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n Y... | [
"0.77249616",
"0.7643542",
"0.7632853",
"0.7577815",
"0.7577815",
"0.7577139",
"0.7530883",
"0.75213057",
"0.75213057",
"0.75213057",
"0.75213057",
"0.75213057",
"0.75057065",
"0.74845195",
"0.7471873",
"0.7380526",
"0.73658216",
"0.7335203",
"0.7285636",
"0.7285636",
"0.7267... | 0.0 | -1 |
Gets the predicted_label_facet of this InitLabeler. Name of the field that contains predicted labels given by this labeler | def Gsrz(YKHO):
return YKHO._predicted_label_facet | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gsrz(YKHO, Gsrz):\n if Gsrz is None:\n raise ValueError('Invalid value for `predicted_label_facet`, must not be `None`')\n YKHO._predicted_label_facet = Gsrz",
"def MAgu(vXX7, Z5aO, vR_z):\n return Z5aO[vR_z + iuPC[vXX7]]",
"def PjQx(YKHO):\n return oyIN.squeeze(YKHO._predicted)",
"def... | [
"0.7003048",
"0.6013016",
"0.5928259",
"0.58429396",
"0.577328",
"0.57585025",
"0.5739451",
"0.56821287",
"0.5679959",
"0.5608851",
"0.56087565",
"0.5606495",
"0.5592472",
"0.5573915",
"0.54889584",
"0.54815644",
"0.5460392",
"0.54346955",
"0.53997445",
"0.5394923",
"0.539411... | 0.8545138 | 0 |
Gets the source_dataset_id of this InitLabeler. ID of the training dataset provided when creating this labeler | def Nwxp(YKHO):
return YKHO._source_dataset_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TSea(YKHO):\n return YKHO.prDoc['inputs']['data'][0]['datasetID']",
"def c55i(YKHO) -> str:\n return YKHO._dataset_id",
"def hq8C(YKHO) -> int:\n return YKHO.dataset_id",
"def c55i(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'dataset_id')",
"def c55i(YKHO) -> str:\n return qe... | [
"0.7079057",
"0.70491135",
"0.6999271",
"0.6955414",
"0.6947558",
"0.6947558",
"0.6947558",
"0.68748766",
"0.6505131",
"0.64706624",
"0.6420219",
"0.64168334",
"0.64168334",
"0.63360655",
"0.62492007",
"0.61858046",
"0.61627793",
"0.61627793",
"0.61552244",
"0.61244136",
"0.6... | 0.82416457 | 0 |
Sets the source_dataset_id of this InitLabeler. ID of the training dataset provided when creating this labeler | def Nwxp(YKHO, Nwxp):
if Nwxp is None:
raise ValueError('Invalid value for `source_dataset_id`, must not be `None`')
YKHO._source_dataset_id = Nwxp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mw8N(YKHO, mw8N):\n YKHO._training_dataset_id = mw8N",
"def wfSW(YKHO, UBGL):\n YKHO.data_source = UBGL",
"def Nwxp(YKHO):\n return YKHO._source_dataset_id",
"def UBGL(YKHO, UBGL):\n YKHO._source_id = UBGL",
"def UBGL(YKHO, UBGL):\n YKHO._source_id = UBGL",
"def UBGL(YKHO, UBGL: str):\... | [
"0.7308875",
"0.7185567",
"0.69619113",
"0.65255225",
"0.65255225",
"0.6503603",
"0.6205126",
"0.5868833",
"0.57515097",
"0.5720664",
"0.5696255",
"0.5653682",
"0.5644761",
"0.5632821",
"0.56248754",
"0.5624335",
"0.55882126",
"0.55662537",
"0.5540013",
"0.55359524",
"0.55203... | 0.8046208 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, NNVq):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.8455985",
"0.83913255",
"0.81440157",
"0.8140831",
"0.8132328",
"0.80937284",
"0.809181",
"0.809181",
"0.809181",
"0.808509",
"0.808509",
"0.8076134",
"0.8076134",
"0.8065528"
] | 0.0 | -1 |
Sets the resource_type of this Store. | def Qjbs(YKHO, Qjbs):
if YKHO.local_vars_configuration.client_side_validation and Qjbs is None:
raise ValueError('Invalid value for `resource_type`, must not be `None`')
BbPm = ['store']
if YKHO.local_vars_configuration.client_side_validation and Qjbs not in BbPm:
raise ValueError('Invalid v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO, Qjbs):\n YKHO._resource_type = Qjbs",
"def Qjbs(YKHO, Qjbs):\n YKHO._resource_type = Qjbs",
"def Qjbs(YKHO, Qjbs):\n YKHO._resource_type = Qjbs",
"def Qjbs(YKHO, Qjbs):\n YKHO._resource_type = Qjbs",
"def Qjbs(YKHO, Qjbs):\n if YKHO.local_vars_configuration.client_side_validat... | [
"0.86240023",
"0.86240023",
"0.86240023",
"0.86240023",
"0.7338772",
"0.69725984",
"0.6678329",
"0.6551751",
"0.6551751",
"0.65448344",
"0.65447205",
"0.64974",
"0.6358008",
"0.63285065",
"0.63285065",
"0.62742484",
"0.62742484",
"0.62742484",
"0.62742484",
"0.62742484",
"0.6... | 0.8245621 | 4 |
Sets the id of this Store. | def id(YKHO, id):
if YKHO.local_vars_configuration.client_side_validation and id is None:
raise ValueError('Invalid value for `id`, must not be `None`')
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.callRemote('setID', id)",
"def id(YKHO, id: str):\n YKHO._id =... | [
"0.7907811",
"0.78843355",
"0.77982295",
"0.77058196",
"0.7621136",
"0.754381",
"0.753061",
"0.753061",
"0.753061",
"0.75291526",
"0.75046504",
"0.75046504",
"0.75046504",
"0.75046504",
"0.75046504",
"0.75046504",
"0.75046504",
"0.75046504",
"0.75046504",
"0.75046504",
"0.750... | 0.0 | -1 |
Sets the name of this Store. | def mWFP(YKHO, mWFP):
if YKHO.local_vars_configuration.client_side_validation and mWFP is None:
raise ValueError('Invalid value for `name`, must not be `None`')
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP: str):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO,... | [
"0.81576943",
"0.8135313",
"0.80709887",
"0.80709887",
"0.80709887",
"0.80709887",
"0.80709887",
"0.80563974",
"0.798304",
"0.79656994",
"0.7939258",
"0.7931816",
"0.7931816",
"0.78667134",
"0.78667134",
"0.7858379",
"0.77976096",
"0.77955943",
"0.77874064",
"0.77874064",
"0.... | 0.0 | -1 |
Sets the chain_id of this Store. | def I3VB(YKHO, I3VB):
if YKHO.local_vars_configuration.client_side_validation and I3VB is None:
raise ValueError('Invalid value for `chain_id`, must not be `None`')
BbPm = ['kcitymarket', 'ksupermarket', 'kmarket', 'nokm', 'kmyllypuro']
if YKHO.local_vars_configuration.client_side_validation and I3V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fRqC(YKHO, I3VB):\n assert isinstance(I3VB, str)\n for XUbj in YKHO.iter_alt_loc():\n XUbj.chain_id = I3VB",
"def fRqC(YKHO, I3VB):\n assert isinstance(I3VB, str)\n YKHO.chain_id = I3VB\n for jKyr in YKHO.iter_fragments():\n jKyr.set_chain_id(I3VB)",
"def fRqC(YKHO, I3VB):\n ... | [
"0.8206772",
"0.81620795",
"0.80925614",
"0.7693511",
"0.75942457",
"0.6473633",
"0.60571414",
"0.60111403",
"0.5637565",
"0.56149256",
"0.55096316",
"0.55053407",
"0.5421371",
"0.5402196",
"0.53709364",
"0.53217435",
"0.5311686",
"0.52557963",
"0.5228715",
"0.5228715",
"0.51... | 0.7845837 | 3 |
Sets the chainless_name of this Store. | def hzkL(YKHO, hzkL):
if YKHO.local_vars_configuration.client_side_validation and hzkL is None:
raise ValueError('Invalid value for `chainless_name`, must not be `None`')
YKHO._chainless_name = hzkL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y1r7(YKHO, y1r7):\n YKHO._payee_name = y1r7",
"def BEZC(YKHO, BEZC):\n YKHO._bag_store_name = BEZC",
"def NQyj(YKHO, NQyj):\n YKHO._name_lt = NQyj",
"def NQyj(YKHO, NQyj):\n YKHO._name_lt = NQyj",
"def NQyj(YKHO, NQyj):\n YKHO._name_lt = NQyj",
"def V6D9(YKHO) -> str:\n return qe4Y.... | [
"0.57843184",
"0.574307",
"0.57156235",
"0.57156235",
"0.57156235",
"0.5697522",
"0.56938577",
"0.5589818",
"0.5589367",
"0.5564885",
"0.5564885",
"0.5557617",
"0.55232495",
"0.5489957",
"0.5489957",
"0.5489957",
"0.5489957",
"0.5476035",
"0.54643434",
"0.5459666",
"0.5448295... | 0.79591095 | 0 |
Sets the store_url of this Store. | def Wt3I(YKHO, Wt3I):
YKHO._store_url = Wt3I | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HewX(YKHO, VUF1):\n YKHO.store = VUF1",
"def fmKd(YKHO, fmKd):\n YKHO._store_id = fmKd\n return YKHO",
"def kFew(YKHO, VUF1):\n pass",
"def U2Rp(YKHO, bD7m):\n if bD7m is not None:\n YKHO.url = bD7m",
"def Ellc(YKHO, xoLl):\n YKHO._checkArgs({'storeFile': bool})\n YKHO.store... | [
"0.7277412",
"0.69013417",
"0.6443822",
"0.6309332",
"0.6260817",
"0.62520427",
"0.6178541",
"0.6100852",
"0.60375935",
"0.5912678",
"0.5878173",
"0.58502275",
"0.5843122",
"0.5838608",
"0.5838608",
"0.5838608",
"0.58214325",
"0.58214325",
"0.58214325",
"0.58214325",
"0.58214... | 0.8621277 | 0 |
Sets the facebook_url of this Store. | def EIn1(YKHO, EIn1):
YKHO._facebook_url = EIn1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z6mu(YKHO, Z6mu):\n YKHO._facebook = Z6mu",
"def Wt3I(YKHO, Wt3I):\n YKHO._store_url = Wt3I",
"def U2Rp(YKHO, bD7m):\n if bD7m is not None:\n YKHO.url = bD7m",
"def U2Rp(YKHO, bD7m):\n YKHO.url = bD7m",
"def CCEN(YKHO, RJDY):\n YKHO.callback_url = RJDY",
"def U2Rp(YKHO, bD7m):\n... | [
"0.7451394",
"0.64548784",
"0.6403968",
"0.6264542",
"0.6178021",
"0.6169172",
"0.61437374",
"0.59905916",
"0.59198505",
"0.5803089",
"0.56586987",
"0.56586987",
"0.56586987",
"0.56586987",
"0.56586987",
"0.56586987",
"0.56586987",
"0.5657963",
"0.5634285",
"0.5586955",
"0.55... | 0.8450506 | 0 |
Sets the post_code of this Store. | def q8sW(YKHO, q8sW):
YKHO._post_code = q8sW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BQ5d(YKHO, BQ5d):\n YKHO._postcode = BQ5d",
"def BQ5d(YKHO, BQ5d):\n YKHO._postcode = BQ5d",
"def BQ5d(YKHO, BQ5d):\n YKHO._postcode = BQ5d",
"def aS2h(YKHO, aS2h):\n YKHO._zip_post_code = aS2h",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ",
"def kAHQ(YKHO, kAHQ):\n YKHO._post... | [
"0.8406642",
"0.8406642",
"0.8406642",
"0.76782346",
"0.7138129",
"0.7138129",
"0.7138129",
"0.636026",
"0.636026",
"0.62204677",
"0.58452845",
"0.58027375",
"0.57463694",
"0.5735147",
"0.57157296",
"0.5633661",
"0.56183386",
"0.55307376",
"0.54895484",
"0.5360986",
"0.536098... | 0.8728648 | 0 |