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 |
|---|---|---|---|---|---|---|
Create a random string of length `k`. | def Jv62(G1Hx):
rmc3 = vIwR.ascii_lowercase + vIwR.digits
return ''.join(tuKI.choices(rmc3, k=G1Hx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWvy():\n G1Hx = tuKI.randint(5, 10)\n return ''.join(tuKI.choices(vIwR.ascii_letters + vIwR.digits, k=G1Hx))",
"def BWvy():\n G1Hx = tuKI.randint(5, 10)\n return ''.join(tuKI.choices(vIwR.ascii_letters + vIwR.digits, k=G1Hx))",
"def BWvy():\n G1Hx = tuKI.randint(5, 10)\n return ''.join(t... | [
"0.78174007",
"0.78174007",
"0.78174007",
"0.77993983",
"0.7425309",
"0.7338161",
"0.7323531",
"0.7277683",
"0.72127914",
"0.7203729",
"0.71814436",
"0.7176527",
"0.7162309",
"0.7162309",
"0.71549195",
"0.7066415",
"0.7064782",
"0.70534694",
"0.7052238",
"0.70138377",
"0.7011... | 0.83155197 | 0 |
Return the name of this tap interface. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QLaV(YKHO) -> str:\n return YKHO.name",
"def rh3n(YKHO):\n return YKHO._interface_name",
"def rh3n(YKHO) -> str:\n return qe4Y.get(YKHO, 'interface_name')",
"def OCHR(YKHO):\n return YKHO.__interface_name",
"def OCHR(YKHO):\n return YKHO.__interface_name",
"def OCHR(YKHO):\n return ... | [
"0.8263214",
"0.82419837",
"0.8190339",
"0.7855285",
"0.7855285",
"0.7855285",
"0.7800489",
"0.7756988",
"0.7612473",
"0.75930953",
"0.7559814",
"0.7551238",
"0.7551238",
"0.75446224",
"0.7538107",
"0.75228995",
"0.74960595",
"0.74924",
"0.74924",
"0.74924",
"0.74924",
"0.7... | 0.0 | -1 |
Return the network namespace of this tap. | def udap(YKHO):
return YKHO._netns | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _63S(YKHO):\n return YKHO._namespace",
"def _63S(YKHO):\n return YKHO._namespace",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO... | [
"0.75853705",
"0.75853705",
"0.75820965",
"0.75820965",
"0.75820965",
"0.75820965",
"0.75820965",
"0.75820965",
"0.75820965",
"0.7475685",
"0.7475685",
"0.7475685",
"0.7475685",
"0.74665916",
"0.74665916",
"0.74665916",
"0.74665916",
"0.74665916",
"0.7422",
"0.7422",
"0.7422"... | 0.75354064 | 9 |
Return all possible x, y, z divisions as tuples in a list. n is the upper bound. | def etEE(yzQ0, exwG):
Ylbp = []
for YRbF in range(exwG):
WKvO = LgqE(yzQ0, YRbF)
for r845 in range(YRbF + 1, exwG + 1):
LVAh = AD9q(yzQ0, YRbF, r845)
epBp = hhJr(yzQ0, r845)
Ylbp.append((WKvO, LVAh, epBp))
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCcr(exwG: int) -> x1iM[int]:\n if exwG <= 0:\n raise Exception(f\"'{exwG}' is non positive\")\n Llmz: x1iM[AzJI[int, int]] = IYpW(exwG)\n Aofo: x1iM[int] = CWKR(Llmz).generate()\n Aofo.sort()\n return Aofo",
"def oCcr(exwG):\n Llmz = BMro(exwG)\n AEBU = [1]\n for aM8h, dGQB in... | [
"0.71885115",
"0.7055562",
"0.7032017",
"0.69689703",
"0.6925024",
"0.6920714",
"0.68669254",
"0.68574303",
"0.67910594",
"0.6748626",
"0.67099094",
"0.66869223",
"0.6678512",
"0.6664389",
"0.6662544",
"0.6637031",
"0.6632048",
"0.6613225",
"0.6596015",
"0.6554018",
"0.654929... | 0.59556276 | 93 |
Save the firstName and lastName as value | def OBrv(YKHO, BWXx):
YKHO.values.append(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n CBIr = YKHO.instance.user\n if CBIr:\n if 'first_name' in YKHO.validated_data:\n CBIr.first_name = YKHO.validated_data['first_name']\n if 'last_name' in YKHO.validated_data:\n CBIr.last_name = YKHO.validated_data['last_name']\n CBIr.save()\n ... | [
"0.76495385",
"0.7230869",
"0.70705736",
"0.6997774",
"0.6875503",
"0.68638444",
"0.68134373",
"0.67722476",
"0.66208345",
"0.65947753",
"0.6587601",
"0.652021",
"0.6493153",
"0.6416367",
"0.6343045",
"0.6330903",
"0.63200843",
"0.6308628",
"0.6304804",
"0.6298524",
"0.628961... | 0.0 | -1 |
Get a node that matches the key | def c0_7(YKHO, H5ew):
if H5ew in YKHO.nodes:
return YKHO.nodes[H5ew]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a_J5(YKHO, H5ew):\n if not H5ew:\n return YKHO.root\n Q6kx = YKHO.root\n for bseI in H5ew:\n if bseI in Q6kx.child_nodes:\n Q6kx = Q6kx.child_nodes[bseI]\n else:\n Q6kx = None\n break\n return Q6kx",
"def a_J5(YKHO, H5ew):\n if not H5ew:\n ... | [
"0.8277034",
"0.8277034",
"0.8173695",
"0.80467546",
"0.797485",
"0.7944542",
"0.79409647",
"0.78944534",
"0.7874046",
"0.78411525",
"0.78329384",
"0.7823486",
"0.7819399",
"0.78184235",
"0.7764864",
"0.77515584",
"0.77234614",
"0.7714282",
"0.768342",
"0.767197",
"0.7671907"... | 0.80102015 | 4 |
Initializes a game. Will initialize all attributes pertaining to a single round of Breakout | def FIMM(YKHO):
YKHO._wall = m7F6()
YKHO._paddle = BoIb(center_x=xpNW / 2, y=WtvJ, width=_Z6J, height=dbOv, linecolor=luAA.WHITE, fillcolor=luAA.WHITE)
YKHO._ball = mEGe(J0rJ())
YKHO._last = None
YKHO._playerlives = Gink
YKHO._points = 0
YKHO._score = PTv8(text='Score: 0', x=2, y=2, fillcolo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mHhR(YKHO):\n YKHO._init_goal()\n YKHO.state.last_reward = 0\n YKHO.state.last_distance = 0\n YKHO.state.first_update = False\n YKHO.state.sample = []\n YKHO.state.time = 1\n YKHO.state.longueur = YKHO.width\n YKHO.state.largeur = YKHO.height",
"def FIMM(YKHO):\n YKHO.game_settings... | [
"0.75084096",
"0.7188591",
"0.7177068",
"0.70798457",
"0.7028183",
"0.70246434",
"0.7002888",
"0.69581366",
"0.69564015",
"0.6953382",
"0.6946756",
"0.69426984",
"0.68891746",
"0.6861136",
"0.6843755",
"0.68394274",
"0.6831201",
"0.6806173",
"0.6801236",
"0.6801236",
"0.68012... | 0.6307637 | 84 |
Calculate the autocorrelation of a trace of scalar data | def bSmD(zgsA):
from qharv.reel.forlib.stats import bSmD
return bSmD(zgsA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fSQ5(zgsA, kj9G=False):\n jzdc = oyIN.correlate(zgsA.tr, zgsA.tr, 'full')\n jzdc = jzdc[len(jzdc) / 2:]\n jzdc = jzdc / oyIN.max(jzdc)\n a1PO = oyIN.arange(len(zgsA.tr)) * zgsA.dt\n wEf2, OeQj = kNmw(oyIN.abs(jzdc), a1PO, 0, opt='mean')\n if kj9G:\n import matplotlib.pyplot as QrM1\n ... | [
"0.79931724",
"0.7653588",
"0.75467736",
"0.7331671",
"0.7327639",
"0.72407573",
"0.7219111",
"0.7208195",
"0.70007145",
"0.6984486",
"0.69204986",
"0.69149303",
"0.68478364",
"0.68455654",
"0.68343127",
"0.67873865",
"0.6740141",
"0.67228305",
"0.66745716",
"0.66634274",
"0.... | 0.5967079 | 60 |
Returns list of column names that shouldn't have reporting information saved because they are userdefined values. | def R8SG():
return ['COMMENTS', 'HEADERERR', 'BADCAMWORD', 'BADAMPS', 'LASTSTEP', 'EXPFLAG'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iDDg(YKHO):\n return [WKvO for WKvO in YKHO.__dict__.keys() if WKvO[0] != '_']",
"def VFzb():\n return ['LASTSTEP', 'SURVEY', 'FA_SURV', 'FAPRGRM', 'GOALTYPE']",
"def PtT3(YKHO):\n bs5n = ['origin.code', 'radar.revision.major', 'radar.revision.minor']\n return bs5n",
"def cx1U():\n ZLJ_ = ... | [
"0.73291016",
"0.71793896",
"0.71460795",
"0.71168387",
"0.70377713",
"0.6996884",
"0.6959218",
"0.68549347",
"0.68430364",
"0.68371695",
"0.67988044",
"0.67894655",
"0.67841524",
"0.6783918",
"0.67834204",
"0.67568886",
"0.67545277",
"0.6744713",
"0.67319",
"0.66913277",
"0.... | 0.7775582 | 0 |
Adds a node to the graph. | def g5gD(YKHO, Lnes: int, oeNL: tuple=None) -> bool:
if Lnes in YKHO.TheGraph:
return False
else:
MxXY = o7DN(Lnes, oeNL)
YKHO.TheGraph[Lnes] = MxXY
YKHO.node_size += 1
YKHO.mc += 1
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5gD(YKHO, Q6kx):\n YKHO.graph[Q6kx]",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.add(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO._nodes.add(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO._check_nodes([Q6kx])\n jHsn.DiGraph.add_node.im_func(YKHO, Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
... | [
"0.89833",
"0.8455864",
"0.83965313",
"0.83696383",
"0.83613396",
"0.83613396",
"0.8339028",
"0.8280353",
"0.8257101",
"0.82200056",
"0.81799775",
"0.81763947",
"0.8143598",
"0.80873346",
"0.806757",
"0.8065594",
"0.80502516",
"0.8038804",
"0.7998562",
"0.7998562",
"0.7878067... | 0.0 | -1 |
Removes an edge from the graph. | def iyca(YKHO, Za_E: int, Hymz: int) -> bool:
if Za_E in YKHO.TheGraph and Hymz in YKHO.TheGraph and (Za_E != Hymz):
MxXY = YKHO.getNode(Za_E)
cWFu = YKHO.getNode(Hymz)
if Za_E in cWFu.edges_in or Hymz in MxXY.edges_out:
del MxXY.edges_out[Hymz]
del cWFu.edges_in[Za_E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eik1(YKHO, D70y):\n if YKHO.edgeExists(D70y):\n del YKHO.graph[YKHO.EDGES_KEY][D70y]\n return\n raise Exception('Edge not Found in Graph!')",
"def Qmvo(YKHO, D70y):\n YKHO.nodes[D70y[0]].neighbors.discard(D70y[1])\n YKHO.nodes[D70y[1]].neighbors.discard(D70y[0])",
"def iyca(YKHO, ... | [
"0.839114",
"0.82493705",
"0.7974301",
"0.79620546",
"0.7937009",
"0.79287076",
"0.7900778",
"0.7813701",
"0.77783793",
"0.77435935",
"0.77197754",
"0.7717087",
"0.7710291",
"0.77064824",
"0.77061796",
"0.7650032",
"0.7617598",
"0.7606133",
"0.7599825",
"0.7551449",
"0.752722... | 0.0 | -1 |
Return True if the position of the turtle is the end of the maze. | def Haga(YKHO, rdlD, fvDH):
BDYS = rdlD == 0
vsnM = rdlD == YKHO.rows - 1
Vg9B = fvDH == 0
wc8S = fvDH == YKHO.columns - 1
return BDYS or vsnM or Vg9B or wc8S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Os4s(YKHO):\n if YKHO.move_cnt[0] == 5 and YKHO.move_cnt[1] == 5:\n return True\n return False",
"def hZla(YKHO):\n return YKHO.position == len(YKHO.production.rhs)",
"def xyLe(YKHO):\n return YKHO.__pos >= YKHO.__max_pos",
"def frGM(KCHu: State) -> bool:\n HoUt = KCHu.trajectory[-1... | [
"0.7268267",
"0.72193974",
"0.72098845",
"0.72029346",
"0.7033951",
"0.69551396",
"0.68955696",
"0.6779471",
"0.67514247",
"0.668223",
"0.6673611",
"0.6646407",
"0.66459644",
"0.6643865",
"0.6611727",
"0.6590741",
"0.65730566",
"0.65680784",
"0.65472186",
"0.6534847",
"0.6525... | 0.0 | -1 |
Abstract base class cannot instantiate instance of abstract class | def FIMM(YKHO):
YKHO.controller = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n raise Exception('Instantiating an abstract class.')",
"def FIMM(YKHO):\n raise NameError('Abstract class cannot be instantiated.')",
"def FIMM(YKHO):\n print('cannot instanciate abstract class!')",
"def nECP(YKHO, *qIxc):\n raise NotImplementedError('This is an abstract class, b... | [
"0.83831435",
"0.8216336",
"0.80198294",
"0.7313831",
"0.72650677",
"0.70875704",
"0.7077507",
"0.7058234",
"0.7053412",
"0.70369524",
"0.69852173",
"0.6948038",
"0.6938265",
"0.6928037",
"0.68644315",
"0.685985",
"0.685985",
"0.685985",
"0.685985",
"0.685985",
"0.68491787",
... | 0.0 | -1 |
Return the genomic location for a query transcript location. | def OhFi(YKHO, SwU0, YK2_, kw8x):
KYa1 = YKHO._cigar_to_alignment(kw8x)
s0TY = YK2_ - 1
EF99 = s0TY - 1
kq3q = -1
for YRbF in range(0, len(KYa1)):
if kq3q == SwU0:
continue
if KYa1[YRbF] == 'D':
s0TY += 1
EF99 = s0TY
elif KYa1[YRbF] == 'I':... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def px6M(YKHO) -> _JMH:\n if not YKHO.is_coding:\n raise y2AN('No location on a non-coding transcript')\n return YKHO.cds.chromosome_location",
"def yQve(YKHO, xDcj):\n raise NotImplementedError()",
"def Rci7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'location')",
"def Rci7(YKHO) -... | [
"0.65873015",
"0.6582636",
"0.63753366",
"0.63753366",
"0.63753366",
"0.63753366",
"0.63753366",
"0.63753366",
"0.63753366",
"0.63753366",
"0.63753366",
"0.6328068",
"0.6328068",
"0.6328068",
"0.6328068",
"0.6328068",
"0.6328068",
"0.6328068",
"0.6328068",
"0.6328068",
"0.632... | 0.0 | -1 |
Converts the matplotlib plot specified by 'figure' to a PNG image and returns it. The supplied figure is closed and inaccessible after this call | def lsxx(JI1i):
LaVg = xDSY.BytesIO()
QrM1.savefig(LaVg, format='png')
QrM1.close(JI1i)
LaVg.seek(0)
LNo8 = ZylS.image.decode_png(LaVg.getvalue(), channels=4)
LNo8 = ZylS.expand_dims(LNo8, 0)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsxx(JI1i):\n LaVg = xDSY.BytesIO()\n QrM1.savefig(LaVg, format='png', dpi=200)\n QrM1.close(JI1i)\n LaVg.seek(0)\n LNo8 = ZylS.image.decode_png(LaVg.getvalue(), channels=4)\n LNo8 = ZylS.expand_dims(LNo8, 0)\n return LNo8",
"def lsxx(JI1i):\n NRcB = xDSY.BytesIO()\n QrM1.savefig(N... | [
"0.7880677",
"0.7869754",
"0.7862353",
"0.7764621",
"0.7762295",
"0.77360225",
"0.7726312",
"0.7696732",
"0.76573855",
"0.76324123",
"0.76324123",
"0.76324123",
"0.76115394",
"0.76006263",
"0.7600493",
"0.75956047",
"0.75889546",
"0.7536231",
"0.7519819",
"0.7497509",
"0.7447... | 0.7657931 | 8 |
Find user with `username` and `password`. This is a class method (call it on the class, not an individual user.) It searches for a user whose password hash matches this password and, if it finds such a user, returns that user object. If can't find matching user (or if password is wrong), returns False. | def NLCy(Emd4, NtEF, jTXt):
CBIr = Emd4.query.filter_by(username=NtEF).first()
if CBIr:
o7Qe = B8ni.check_password_hash(CBIr.password, jTXt)
if o7Qe:
return CBIr
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BlJI(jTXt):\n return mv1M.find_user_by_password(jTXt)",
"def NLCy(Emd4, NtEF, jTXt):\n CBIr = mv1M.query.filter_by(username=NtEF).first()\n if CBIr:\n if B8ni.check_password_hash(CBIr.password, jTXt):\n return CBIr\n return False",
"def NLCy(Emd4, NtEF, zN5h):\n P6bq = mv1M... | [
"0.79539114",
"0.7951035",
"0.7942741",
"0.79382855",
"0.79382855",
"0.79134995",
"0.7890032",
"0.7880841",
"0.7880841",
"0.7880841",
"0.7880841",
"0.7880841",
"0.7880841",
"0.7880841",
"0.7880841",
"0.7880841",
"0.7876821",
"0.7865113",
"0.78423685",
"0.78374964",
"0.7837496... | 0.789919 | 6 |
Loads a YAML file, assuming that the YAML file is located in the problems/PROBLEM_NAME/config.yaml directory. | def LgIG(aBcH):
Nu1S = Hy7s.path.join(Hy7s.path.abspath('problems/'), aBcH + '.yaml')
return bsaa(Nu1S) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ommR(YKHO):\n try:\n with open(Hy7s.path.join(YKHO.root_directory, 'great_expectations.yml'), 'r') as nPrm:\n return eJb6.load(nPrm)\n except IOError:\n raise kFjt(YKHO.root_directory)",
"def f9B0(gIsw):\n if Ke5A:\n SGPW = JDit.load_config('../' + gIsw)\n else:\n ... | [
"0.75695145",
"0.74178994",
"0.7253226",
"0.7226606",
"0.7218609",
"0.71924376",
"0.71922547",
"0.71814966",
"0.71475077",
"0.7145791",
"0.7106069",
"0.7102661",
"0.7096996",
"0.70892334",
"0.7072122",
"0.70535594",
"0.7049353",
"0.703396",
"0.70336884",
"0.7031022",
"0.70306... | 0.7969188 | 0 |
HTTP 404 should be returned for a repository that doesn't exist | def cUY6(YKHO):
_hkX = YKHO.app.get('/not_a_repo/')
YKHO.assertEqual(_hkX.status_code, Xqgu.NOT_FOUND) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SQr8(YKHO):\n with YKHO.setup_http_test(status_code=404, expected_http_calls=1) as OaeV:\n with YKHO.assertRaises(t56r):\n OaeV.service.check_repository(rbgateway_repo_name='invalid')\n OaeV.assertHTTPCall(0, url='https://example.com/repos/invalid/path', headers=None)",
"def mZnU():\n... | [
"0.73854756",
"0.72238",
"0.7185187",
"0.7173894",
"0.71361",
"0.7103351",
"0.70642805",
"0.7037009",
"0.6981872",
"0.69543713",
"0.69327295",
"0.689435",
"0.6854786",
"0.68488884",
"0.6847929",
"0.68398714",
"0.6839637",
"0.6832079",
"0.6808434",
"0.680756",
"0.678808",
"0... | 0.8342533 | 0 |
Mean of prior distribution, calculated at state x. We find the covariance in a normalized space (normalizing by z) and then un normalize the result for the calling function. | def HMUk(YKHO, xn6a, NgpY):
yGTL = zzP2.xa(YKHO, xn6a, NgpY)
yGTL[YKHO.surf_temp_ind] = YKHO.init[YKHO.surf_temp_ind]
return yGTL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def udkN(WKvO, Cwt5=0.05):\n if len(WKvO) >= 2:\n s0hr = oyIN.var(WKvO, ddof=1)\n return mXds(len(WKvO), oyIN.mean(WKvO), qjEN(WKvO), alpha=Cwt5)\n else:\n return (WKvO, float('inf'))",
"def aJbZ(EcVT):\n yGTL = EcVT.mean(0)\n _sef = EcVT.std(0)\n EcVT = (EcVT - yGTL) / _sef\n... | [
"0.6839418",
"0.6740822",
"0.672819",
"0.6708396",
"0.6708396",
"0.6665332",
"0.6648001",
"0.66339874",
"0.66182536",
"0.6608534",
"0.65299875",
"0.6515907",
"0.65006167",
"0.64449143",
"0.6432713",
"0.6428611",
"0.6410041",
"0.63579816",
"0.63579816",
"0.6345588",
"0.6344348... | 0.0 | -1 |
Removes all the tags (html/xml) from a string | def t5Yq(vIwR):
return Jex6.sub('', vIwR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iw0V(vIwR):\n return ZbWC.sub('<[^>]*?>', ' ', vIwR)",
"def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)",
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)",
"def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', i... | [
"0.84009475",
"0.827306",
"0.80639917",
"0.7975065",
"0.7947474",
"0.7947474",
"0.79311496",
"0.7898573",
"0.787696",
"0.787696",
"0.787696",
"0.787696",
"0.787696",
"0.787696",
"0.7869976",
"0.7866443",
"0.7847309",
"0.7847309",
"0.7847309",
"0.78354645",
"0.78212106",
"0.... | 0.77442074 | 25 |
Removes tags from HTML, and joins them with nicely formatted paragraph tags if there is content | def rPMt(FujE):
Aofo = ''
for hGN5 in FujE.contents:
hliO = t5Yq(QMSQ(hGN5)).strip()
if len(hliO):
Aofo += '%s\n' % hliO
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KM_9(YKHO, WEtT):\n return ZbWC.sub('<p>|</p>', '', WEtT)",
"def Jlyn(YKHO, A97Q):\n for LihS in YKHO._tags(A97Q, 'div'):\n EaK5 = map(vwqL, list(LihS))\n XxrM = str(b''.join(EaK5))\n if not nj8l.search(XxrM):\n LihS.tag = 'p'\n elif LihS.text and LihS.text.strip(... | [
"0.77606416",
"0.73880005",
"0.7176579",
"0.71460027",
"0.7107201",
"0.7093567",
"0.70466995",
"0.702911",
"0.6869686",
"0.6844244",
"0.6819943",
"0.6796184",
"0.6778058",
"0.6719846",
"0.6705245",
"0.6698578",
"0.6684628",
"0.6683496",
"0.6682212",
"0.6663563",
"0.6618783",
... | 0.7160407 | 3 |
Create new RZ gate. | def FIMM(YKHO, rVnq: ParameterValueType, UXqs: Optional[str]=None):
super().__init__('rz', 1, [rVnq], label=UXqs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9sI():\n return iOgy(qw7D([[1.0, 0.0], [0.0, -1.0]]))",
"def dnz0(YKHO, rVnq, vexM):\n return YKHO._attach(cKtp(rVnq, vexM, YKHO))",
"def GWHw(zlT4):\n z045(zlT4, num_qubits=1)\n Cwt5, q7In, UqYS, RDcL = pRIM(zlT4)\n Cwt5 = Cwt5 - oyIN.pi / 2\n UqYS = UqYS + oyIN.pi / 2\n G7GE = kLP0(... | [
"0.7049451",
"0.63126504",
"0.63032186",
"0.6259611",
"0.6251368",
"0.6107916",
"0.60308176",
"0.5897078",
"0.58862543",
"0.5883276",
"0.57151866",
"0.5696861",
"0.5689897",
"0.5681458",
"0.562635",
"0.56180763",
"0.5589945",
"0.5588867",
"0.555338",
"0.554015",
"0.55286735",... | 0.52414674 | 37 |
Return a (multi)controlledRZ gate. | def z5su(YKHO, sVO7: int=1, UXqs: Optional[str]=None, yNZo: Optional[Union[str, int]]=None):
if sVO7 == 1:
ewpR = if6R(YKHO.params[0], label=UXqs, ctrl_state=yNZo)
ewpR.base_gate.label = YKHO.label
return ewpR
return super().control(num_ctrl_qubits=sVO7, label=UXqs, ctrl_state=yNZo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9sI():\n return iOgy(qw7D([[1.0, 0.0], [0.0, -1.0]]))",
"def ZePz(MOwU, vQ4U, pan_):\n if len(vQ4U) == 1:\n MOwU.h(pan_)\n MOwU.cx(vQ4U[0], pan_)\n MOwU.h(pan_)\n else:\n MOwU.h(pan_)\n MOwU.ccx(vQ4U[0], vQ4U[1], pan_)\n MOwU.h(pan_)\n return MOwU",
"d... | [
"0.6890345",
"0.6712251",
"0.63574064",
"0.628311",
"0.6159609",
"0.6135809",
"0.61218476",
"0.6063376",
"0.6034579",
"0.599019",
"0.5928803",
"0.5909114",
"0.5899541",
"0.5893188",
"0.5890732",
"0.58653575",
"0.58609843",
"0.5844607",
"0.5825342",
"0.580105",
"0.57531154",
... | 0.63958275 | 2 |
Return inverse CRZ gate (i.e. with the negative rotation angle). | def GOZd(YKHO):
return if6R(-YKHO.params[0], ctrl_state=YKHO.ctrl_state) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GOZd(YKHO):\n return cKtp(-YKHO.params[0])",
"def GOZd(YKHO):\n return Ioc_()",
"def GOZd(YKHO):\n assert YKHO.value in ('cw', 'ccw')\n if YKHO.value == 'ccw':\n return j4mP('cw')\n else:\n return j4mP('ccw')",
"def GOZd(YKHO):\n return fU2R()",
"def GOZd(YKHO):\n ret... | [
"0.8066884",
"0.70502895",
"0.68682295",
"0.6675285",
"0.66078556",
"0.6585899",
"0.6554872",
"0.6444016",
"0.64343095",
"0.6405864",
"0.6305332",
"0.62968993",
"0.6283606",
"0.6253423",
"0.6240519",
"0.6196149",
"0.61732614",
"0.6162763",
"0.6160572",
"0.6153353",
"0.6144022... | 0.81953937 | 0 |
Reset array of metric values | def SiRx(YKHO) -> None:
YKHO._values = oyIN.array([]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n for AcYW in YKHO.metrics:\n AcYW.reset_states()",
"def MaSP(YKHO) -> None:\n pass",
"def ji3u(YKHO):\n for W061 in YKHO._observations:\n W061.reset_value()",
"def ka5c(YKHO):\n YKHO.val = 0\n YKHO.avg = 0\n YKHO.sum = 0\n YKHO.count = 0",
"def MaSP(YKHO)... | [
"0.7590306",
"0.75164586",
"0.7432",
"0.7420639",
"0.72744775",
"0.72683835",
"0.7266295",
"0.7196101",
"0.7196101",
"0.71947455",
"0.7164477",
"0.7141234",
"0.7135334",
"0.71171033",
"0.7094525",
"0.70399874",
"0.6971626",
"0.6935013",
"0.6933093",
"0.68933535",
"0.6873365",... | 0.7693252 | 0 |
Get maximum value of metric. This used for correct histogram visualisation in some monitors | def JCoA() -> float:
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qfB5(YKHO):\n print(YKHO.data['measurement_value'].max())",
"def PooA(YKHO) -> float:\n raise NotImplementedError()",
"def max(YKHO):\n return float(YKHO._stats.get('max_value', 0))",
"def bQ6z(YKHO) -> float:\n return YKHO.data['value'].max().round(2)",
"def JCoA(YKHO):\n return oyIN.ma... | [
"0.80475616",
"0.791926",
"0.7871486",
"0.783618",
"0.7604743",
"0.7585018",
"0.7582123",
"0.75794226",
"0.74847305",
"0.74772424",
"0.74741554",
"0.74547136",
"0.74493104",
"0.7409494",
"0.7392135",
"0.73821265",
"0.7380243",
"0.7368986",
"0.73647594",
"0.73465675",
"0.73311... | 0.73207664 | 22 |
Collects sample of x into a dictionary, and applies normalisation | def iIy9(YKHO, yqD4, nXXP):
if len(yqD4) == 0:
raise ValueError('No valid x samples found.')
rmc3 = YKHO._get_unique_symbols(yqD4)
if nXXP:
IkSd = YLnl(YKHO.fit_normalisation, rmc3, yqD4)
D9mb = [IkSd(RDhP) for RDhP in YKHO.features]
YKHO.features = DCOD(D9mb)
for RDhP in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(mvm2):\n\n def yTBG(mvm2):\n BSK2 = mvm2\n return {G1Hx: 100.0 * Ty9i / sum(BSK2.values()) for G1Hx, Ty9i in BSK2.items()}\n\n def ungV(mvm2):\n DZ4p = mvm2.copy()\n DZ4p['Sum'] = sum([DZ4p[bWgT] for bWgT in VW5b])\n for iVRZ in DZ4p:\n if iVRZ in VW5b:\... | [
"0.6715862",
"0.661729",
"0.65445894",
"0.6537027",
"0.6433796",
"0.64284813",
"0.6350173",
"0.6336095",
"0.6312472",
"0.62746525",
"0.62746525",
"0.62414235",
"0.6230964",
"0.62295",
"0.6229417",
"0.6228437",
"0.6224434",
"0.6195693",
"0.61681205",
"0.614713",
"0.61346895",
... | 0.0 | -1 |
Get a machine readable list of potential node proeprties in the knowledge graph | def NMoC(YKHO):
Mkmy = G4JS.get(f'http://{Hy7s.environ['BUILDER_HOST']}:{Hy7s.environ['BUILDER_PORT']}/api/properties')
lhy8 = Mkmy.json()
return lhy8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OtkD(YKHO) -> laHg.List[str]:\n return laHg.cast(laHg.List[str], YKHO._properties.get('potentialNodes'))",
"def Ziit(YKHO) -> x1iM[str]:\n return YKHO.get_node_list()",
"def x0tb(YKHO) -> x1iM[str]:\n return []",
"def aAQH(YKHO):\n return list(YKHO._graph_dict.keys())",
"def eEku(YKHO):\n ... | [
"0.68361336",
"0.6569351",
"0.6469895",
"0.6448932",
"0.63282394",
"0.6312117",
"0.63046",
"0.6287574",
"0.62788063",
"0.62728363",
"0.62572116",
"0.62472695",
"0.61868894",
"0.61566246",
"0.6095352",
"0.6077367",
"0.60663617",
"0.604943",
"0.60328346",
"0.60280925",
"0.60049... | 0.0 | -1 |
A property getter/setter for kwarg "navigation_speed" Example ``` menu = ReactionMenu(...) menu.navigation_speed = ReactionMenu.NORMAL >>> print(menu.navigation_speed) NORMAL ``` | def CsU3(YKHO, BWXx):
if not YKHO._is_running:
if BWXx in (LDPz.NORMAL, LDPz.FAST):
YKHO._navigation_speed = BWXx
else:
raise RgkR(f"When setting the 'navigation_speed' of a menu, {BWXx!r} is not a valid value")
else:
LDPz.cancel_all_sessions()
raise qmEl(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDP8(YKHO):\n return YKHO._get_value('SPEED')",
"def rboB(YKHO, BWXx):\n YKHO.do_command('setSpeed', [BWXx])",
"def rboB(YKHO, BWXx):\n YKHO.do_command('setSpeed', [BWXx])",
"def iBLD(YKHO):\n if YKHO._state:\n return YKHO._state_attrs['speed']\n return None",
"def ERGf(YKHO):\n ... | [
"0.60394907",
"0.59918016",
"0.59918016",
"0.59745365",
"0.5950812",
"0.5950812",
"0.59422153",
"0.59422153",
"0.59272724",
"0.5926344",
"0.5923293",
"0.5894832",
"0.5889361",
"0.58109325",
"0.58039653",
"0.5777169",
"0.5775137",
"0.57244015",
"0.5685696",
"0.5670308",
"0.566... | 0.7471636 | 0 |
Normalizes a given array in X to a value between low and high. | def NkkI(YKHO, EcVT, gqRb, ODP9, yDqo=None):
EcVT = oyIN.asarray(EcVT)
qwA9, O2Zy = (oyIN.min(EcVT), oyIN.max(EcVT))
EcVT = EcVT - float(qwA9)
EcVT = EcVT / float(O2Zy - qwA9)
EcVT = EcVT * (ODP9 - gqRb)
EcVT = EcVT + gqRb
if yDqo is None:
return oyIN.asarray(EcVT)
return oyIN.as... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, EcVT, gqRb, ODP9, yDqo=None):\n EcVT = oyIN.asarray(EcVT)\n qwA9, O2Zy = (oyIN.min(EcVT), oyIN.max(EcVT))\n EcVT = EcVT - float(qwA9)\n EcVT = EcVT / float(O2Zy - qwA9)\n EcVT = EcVT * (ODP9 - gqRb)\n EcVT = EcVT + gqRb\n if yDqo is None:\n return oyIN.asarray(EcVT)\n ... | [
"0.8489236",
"0.847985",
"0.84790164",
"0.7999857",
"0.76388",
"0.7629635",
"0.7608062",
"0.7600523",
"0.7583591",
"0.7549785",
"0.75073963",
"0.7479719",
"0.74670494",
"0.7430545",
"0.7415886",
"0.73848456",
"0.7369401",
"0.73257935",
"0.73211217",
"0.7268678",
"0.7233146",
... | 0.84900814 | 0 |
Sets the loan_term of this ListingFinance. | def ptfY(YKHO, ptfY):
YKHO._loan_term = ptfY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SV40(YKHO, SV40):\n YKHO._loan_balance = SV40",
"def UwZQ(YKHO, UwZQ):\n YKHO._loan_apr = UwZQ",
"def dtAm(YKHO, dtAm):\n YKHO._issued_loan_amount = dtAm",
"def Uw6T(YKHO, Uw6T):\n YKHO._policy_loan_limit = Uw6T",
"def AgPQ(YKHO, AgPQ):\n YKHO._loctaion = AgPQ",
"def gHUe(YKHO, gHUe):\... | [
"0.66262305",
"0.58566624",
"0.57976925",
"0.5782507",
"0.55811304",
"0.5556181",
"0.54935527",
"0.545976",
"0.54410785",
"0.53974855",
"0.5346458",
"0.53034884",
"0.52129084",
"0.515699",
"0.513736",
"0.5122442",
"0.5013548",
"0.49527463",
"0.49459293",
"0.492237",
"0.490843... | 0.86949825 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83939064",
"0.83558416",
"0.8296191",
"0.8133439",
"0.81156427",
"0.810097",
"0.81001526",
"0.8099001",
"0.8099001",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80677134",
"0.80598736",
"0... | 0.0 | -1 |
The Amazon Resource Name (ARN) of the instance. | def ZsT2(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'instance_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZsT2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'instance_arn')",
"def CNyY(YKHO):\n return YKHO._instance_role_arn",
"def oJMC(YKHO) -> h8nf[str]:\n return YKHO.__arn__",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'ar... | [
"0.8410427",
"0.7209979",
"0.7066228",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
... | 0.8072081 | 1 |
The status of the evaluation form. | def jGRS(YKHO) -> qe4Y.Input['EvaluationFormStatus']:
return qe4Y.get(YKHO, 'status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO) -> qe4Y.Output['EvaluationFormStatus']:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(YKHO):\n YKHO._check_is_fitted()\n return YKHO._status",
"def jGRS(YKHO):\n YKHO._check_is_fitted()\n return YKHO._status",
"def jGRS(YKHO):\n return YKHO.xform_instance.status",
"def jGRS... | [
"0.88603824",
"0.73810923",
"0.73810923",
"0.72765225",
"0.7136765",
"0.70717114",
"0.7052424",
"0.6935781",
"0.69260097",
"0.69260097",
"0.6908109",
"0.6903118",
"0.6903118",
"0.6903118",
"0.6873707",
"0.68266284",
"0.68188655",
"0.6794067",
"0.6789422",
"0.6789422",
"0.6786... | 0.86325264 | 1 |
One or more tags. | def dJ1p(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['EvaluationFormTagArgs']]]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['LinkTagArgs']]]]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> h8nf[qe4Y.Input[x1iM[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> h8nf[ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> h8nf[qe4Y.Input[str... | [
"0.72250223",
"0.7223673",
"0.7188626",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
... | 0.0 | -1 |
The Amazon Resource Name (ARN) for the evaluation form. | def hbxf(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'evaluation_form_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def h... | [
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71649146",
"0.71589553",
"0.71589553",
"0.71589553"... | 0.83761686 | 0 |
The Amazon Resource Name (ARN) of the instance. | def ZsT2(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'instance_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZsT2(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'instance_arn')",
"def CNyY(YKHO):\n return YKHO._instance_role_arn",
"def oJMC(YKHO) -> h8nf[str]:\n return YKHO.__arn__",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn... | [
"0.8072081",
"0.7209979",
"0.7066228",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
"0.70001227",
... | 0.8410427 | 0 |
The status of the evaluation form. | def jGRS(YKHO) -> qe4Y.Output['EvaluationFormStatus']:
return qe4Y.get(YKHO, 'status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO) -> qe4Y.Input['EvaluationFormStatus']:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(YKHO):\n YKHO._check_is_fitted()\n return YKHO._status",
"def jGRS(YKHO):\n YKHO._check_is_fitted()\n return YKHO._status",
"def jGRS(YKHO):\n return YKHO.xform_instance.status",
"def jGRS(... | [
"0.86325264",
"0.73810923",
"0.73810923",
"0.72765225",
"0.7136765",
"0.70717114",
"0.7052424",
"0.6935781",
"0.69260097",
"0.69260097",
"0.6908109",
"0.6903118",
"0.6903118",
"0.6903118",
"0.6873707",
"0.68266284",
"0.68188655",
"0.6794067",
"0.6789422",
"0.6789422",
"0.6786... | 0.88603824 | 0 |
One or more tags. | def dJ1p(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.EvaluationFormTag']]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['LinkTagArgs']]]]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> h8nf[qe4Y.Input[x1iM[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> h8nf[ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> h8nf[qe4Y.Input[str... | [
"0.72250223",
"0.7223673",
"0.7188626",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7176466",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
"0.7093832",
... | 0.0 | -1 |
This function handles formation normalization through a sequence of logic provided by Robert. The logic accepts numpy array and returns a numpy array. | def AiPK(KLUM, y0LQ=None):
if KLUM.shape[1] == 0:
return KLUM
assert KLUM.shape[0] == 6, 'Unexpected string_array shape'
UKSA = KLUM[0]
V0Xe = KLUM[1]
Maem = KLUM[1]
V_Qu = KLUM[2]
svxt = KLUM[3]
WERR = KLUM[4]
if y0LQ is None:
y0LQ = oyIN.array(['WOODFORD', 'MERAMEC'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEry(YKHO, Sxzb):\n DKP6 = oyIN.array(Sxzb, dtype=oyIN.float32)\n S8vG = oyIN.sum(DKP6, axis=1) / DKP6.shape[1]\n m79M = oyIN.array([Csk6 - jzdc for Csk6, jzdc in zip(Sxzb, S8vG)])\n WTkW = oyIN.sqrt(oyIN.sum(oyIN.power(m79M, 2), axis=1) / m79M.shape[1])\n WTkW[WTkW == 0] = 0.001\n Sxzb = oyI... | [
"0.6903151",
"0.68689704",
"0.6853286",
"0.68489665",
"0.67774904",
"0.6774994",
"0.67699134",
"0.67667186",
"0.6763612",
"0.6723152",
"0.66758966",
"0.66464484",
"0.66457576",
"0.66113454",
"0.65865266",
"0.65714294",
"0.6564247",
"0.6562868",
"0.656002",
"0.65569496",
"0.65... | 0.62610114 | 51 |
Returns true iff the Jacobian is not a function of x. | def hazT(YKHO):
return YKHO._is_constant_jacobian | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P6s2(WKvO):\n if isinstance(WKvO, fk4W):\n return True\n if WKvO is None:\n return True\n try:\n if oyIN.isnan(WKvO):\n return True\n except:\n pass\n if WKvO != WKvO:\n return True\n return False",
"def TTuh(YKHO):\n return YKHO.model.has_ja... | [
"0.67083657",
"0.6530758",
"0.6187242",
"0.6137218",
"0.61202914",
"0.6067358",
"0.6046289",
"0.6029255",
"0.5979",
"0.5950456",
"0.5937393",
"0.5933951",
"0.59291667",
"0.5927901",
"0.591323",
"0.5904049",
"0.5902547",
"0.5887645",
"0.5865608",
"0.58615017",
"0.5802255",
"... | 0.5855058 | 20 |
dtype of `Tensor`s transformable by this distribution. | def yDqo(YKHO):
return YKHO._dtype | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDqo(YKHO) -> ht2j.dtype:\n return YKHO.values.dtype",
"def yDqo(YKHO) -> ht2j.dtype:\n return YKHO.__dtype",
"def yDqo(YKHO):\n if hasattr(YKHO.forward, 'input_array'):\n return YKHO.forward.input_array.dtype\n return YKHO._dtype",
"def yDqo(YKHO) -> ZylS.DType:\n return YKHO._dtyp... | [
"0.7350537",
"0.72455454",
"0.7006444",
"0.6981066",
"0.69779605",
"0.67676806",
"0.6674003",
"0.66637427",
"0.664639",
"0.6629182",
"0.66147554",
"0.66090834",
"0.66041285",
"0.6578552",
"0.65651584",
"0.65611434",
"0.6533916",
"0.65302414",
"0.65084654",
"0.65078384",
"0.65... | 0.63306594 | 39 |
Load model from a package | def uyMl(YKHO, tMMy):
if 'model' in tMMy.keys():
X2Ty = tMMy['model']
else:
X2Ty = tMMy
YKHO.load_encoder(X2Ty)
YKHO.load_masker(X2Ty)
YKHO.load_decoder(X2Ty) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jR_B(mWFP, **If3P):\n Emd4 = ANWz.import_module(mWFP)\n return Emd4.load(**If3P)",
"def uyMl():\n pass",
"def uyMl():\n pass",
"def uyMl(Ux0P):\n pass",
"def uyMl(Ux0P):\n raise NotImplementedError()",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n ... | [
"0.7918235",
"0.77569443",
"0.77569443",
"0.76762587",
"0.75159836",
"0.74458575",
"0.74458575",
"0.74458575",
"0.74458575",
"0.73555326",
"0.732278",
"0.73206",
"0.7237896",
"0.7194869",
"0.7182409",
"0.71808654",
"0.7176213",
"0.7173751",
"0.716526",
"0.71605486",
"0.713000... | 0.665385 | 82 |
flatten a list of lists | def GarA(vC9B):
WKvO = [YRbF for epBp in vC9B for YRbF in epBp]
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKPt(nwEZ):\n Aofo = []\n for LihS in nwEZ:\n Aofo.extend(LihS)\n return Aofo",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in X... | [
"0.8769226",
"0.8535428",
"0.8535428",
"0.8535428",
"0.8493889",
"0.8488396",
"0.8477728",
"0.8477728",
"0.8477728",
"0.8461241",
"0.84504956",
"0.8449415",
"0.8445004",
"0.8440667",
"0.8403961",
"0.839597",
"0.8382512",
"0.8382212",
"0.8347014",
"0.83183223",
"0.8293996",
... | 0.8266445 | 22 |
split a list into a specified number of equally sized pieces (last piece may be a different size) returns a generator of each chunk of the original list | def eZzO(Q6uT, FlBI):
yKcO = 0
for YRbF in Ni9Y(FlBI):
JCyR = yKcO + len(Q6uT[YRbF::FlBI])
yield Q6uT[yKcO:JCyR]
yKcO = JCyR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(list, CX9b):\n for YRbF in range(0, len(list), CX9b):\n yield list[YRbF:YRbF + CX9b]",
"def AyNP(YKHO, list, ztRo=20):\n for YRbF in range(0, len(list), ztRo):\n yield list[YRbF:YRbF + ztRo]",
"def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YR... | [
"0.8432617",
"0.8386841",
"0.8365662",
"0.830631",
"0.8306128",
"0.8301932",
"0.830017",
"0.8300145",
"0.8298954",
"0.82827127",
"0.82756716",
"0.8273864",
"0.82624984",
"0.8252771",
"0.8226",
"0.8219345",
"0.82087386",
"0.82083774",
"0.8204338",
"0.82031953",
"0.8194079",
... | 0.0 | -1 |
Takes a list and returns it with the last 'n' elements placed in the beginning | def CKLk(vC9B, exwG=1):
WDhg = vC9B[-exwG:] + vC9B[:-exwG]
return WDhg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J3uN(OxJJ: List, exwG: int) -> x1iM:\n if exwG <= 0:\n return []\n aWuw = list(OxJJ)\n return aWuw[-exwG:]",
"def R7c0(aWuw, exwG):\n a3tW = aWuw[-exwG:]\n return a3tW",
"def WNBr(qFa0):\n return qFa0[:-1]",
"def q8Fb(yv6U: List[Any], exwG: int) -> x1iM[x1iM[ImMB]]:\n Hvvh = [... | [
"0.76743275",
"0.7518714",
"0.7180494",
"0.7061863",
"0.7033758",
"0.703274",
"0.6952065",
"0.690314",
"0.68877655",
"0.681669",
"0.6806056",
"0.6796626",
"0.67596066",
"0.672783",
"0.67272437",
"0.6724065",
"0.67170495",
"0.6690467",
"0.6666533",
"0.66446817",
"0.66352093",
... | 0.72950107 | 2 |
Returns the magnitude of the cross product of vectors |V| and |W|. | def ulCd(cAlv, XcU5):
zTvC, YtJp = cAlv
lnPd, V1sm = XcU5
return zTvC * V1sm - YtJp * lnPd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOSW(Ty9i):\n return PZyS(oyIN.dot(Ty9i, Ty9i))",
"def WHx2(Ty9i, yzQ0):\n if not Ty9i.dimension == yzQ0.dimension == 3:\n raise ValueError('cross product only defined for 3-dimensional vectors')\n return lNLu([Ty9i['y'] * yzQ0['z'] - yzQ0['y'] * Ty9i['z'], yzQ0['x'] * Ty9i['z'] - Ty9i['x'] *... | [
"0.71675354",
"0.7046712",
"0.6864294",
"0.68401074",
"0.6815598",
"0.68144435",
"0.67878836",
"0.67594755",
"0.6748396",
"0.6694786",
"0.6684101",
"0.665387",
"0.66067207",
"0.6593882",
"0.657972",
"0.656335",
"0.6551841",
"0.65426695",
"0.65119106",
"0.64889026",
"0.6475623... | 0.71605474 | 1 |
Add a card to the deck | def AZnT(YKHO, dxhl):
YKHO.cards.append(dxhl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lACn(YKHO, nf_0):\n YKHO.cards.append(nf_0.draw_card())",
"def lACn(YKHO, dxhl: Card) -> None:\n YKHO._deck.append(dxhl)",
"def lACn(YKHO, dxhl):\n if isinstance(dxhl, F1Hz):\n return YKHO.decks.append(dxhl)\n else:\n raise TypeError('card must be a Card object')",
"def H2v5(YKH... | [
"0.8828897",
"0.8797391",
"0.8780908",
"0.87723315",
"0.87723315",
"0.876536",
"0.87348604",
"0.8731791",
"0.8723826",
"0.8723826",
"0.8723826",
"0.8723826",
"0.8723826",
"0.8723826",
"0.8723826",
"0.8723826",
"0.8723826",
"0.8723826",
"0.8713455",
"0.8707577",
"0.87062395",
... | 0.8731824 | 7 |
add the multiple cards to existing deck, cards is a list | def fXRq(YKHO, khoC):
for Z9rn in khoC:
YKHO.addCard(Z9rn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ViK(YKHO, khoC):\n for dxhl in khoC:\n YKHO.cards.append(dxhl)",
"def _ViK(YKHO, UojN):\n for dxhl in UojN:\n YKHO._cards.append(dxhl)",
"def MtET(YKHO, khoC: List[Card]):\n YKHO.cards.extend(khoC)",
"def _ViK(YKHO, khoC):\n for dxhl in khoC:\n YKHO._cards.append(dxhl)",... | [
"0.85081667",
"0.83616114",
"0.83479476",
"0.8253731",
"0.8224847",
"0.82072663",
"0.81743455",
"0.8149284",
"0.81294495",
"0.7880529",
"0.7516597",
"0.75053406",
"0.7503859",
"0.74246037",
"0.737139",
"0.7359524",
"0.7359524",
"0.7317238",
"0.73037475",
"0.7289365",
"0.72828... | 0.88340074 | 0 |
Compute the first lag autocorrelation coefficient to prewhite data as an AR(Kmax) function. | def e1yo(W061, dRF_=95):
if not isinstance(W061, oyIN.ndarray):
raise Exception('Ouch ! data type should be numpy.ndarray, not: %s' % type(W061))
if not isinstance(dRF_, (int, float)):
raise Exception('Ouch ! alpha_ak should be of type float, not: %s' % type(dRF_))
if dRF_ > 100 or dRF_ < 0:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G_Be(WKvO):\n dixj = oyIN.correlate(WKvO, WKvO, mode='full')\n return dixj[dixj.size // 2:]",
"def fSQ5(WKvO, _Drm):\n WKvO = o71m(WKvO, 'x')\n XP5J = oyIN.pad(WKvO.conj(), _Drm, mode='constant')\n Kt_s = Tb35(XP5J[_Drm:], shape=(_Drm + 1, len(WKvO) + _Drm), strides=(-XP5J.strides[0], XP5J.str... | [
"0.70816416",
"0.70576394",
"0.6892052",
"0.68252116",
"0.680498",
"0.6713531",
"0.66985005",
"0.6660129",
"0.6649055",
"0.66291535",
"0.6591499",
"0.655854",
"0.65377873",
"0.6512222",
"0.6464546",
"0.645615",
"0.6420023",
"0.6416736",
"0.6336586",
"0.6282987",
"0.62768596",... | 0.62957793 | 19 |
>>> list2string (['h', 'e', 'l', 'l', 'o']) 'hello' >>> list2string (['b', 'y', 'e']) 'bye' >>> list2string (['p', 'u', 'p', 'p', 'y']) 'puppy' >>> list2string (['c', 'a', 't']) 'cat' >>> list2string (['', '']) '' | def KCQd(yv6U):
K70M = ''
d6pt = 0
for LihS in range(len(yv6U)):
K70M += yv6U[d6pt]
d6pt += 1
return K70M | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BRpZ(list):\n return ''.join(list)",
"def XQ0m(list):\n VDwR = ''\n for YRbF in list:\n VDwR += YRbF\n return VDwR",
"def XQ0m(yv6U):\n vIwR = ''\n for vC9B in yv6U:\n vIwR += vC9B\n return vIwR",
"def sCS9(list):\n Aofo = ''.join(list)\n return Aofo",
"def hrsK... | [
"0.8073971",
"0.80328906",
"0.78970236",
"0.78136736",
"0.7763053",
"0.76879025",
"0.76194954",
"0.7615895",
"0.76074415",
"0.7602047",
"0.742678",
"0.73743415",
"0.7371227",
"0.7357078",
"0.7294168",
"0.72255784",
"0.71928513",
"0.7152902",
"0.71480536",
"0.7138529",
"0.7124... | 0.7979035 | 2 |
Get a list of hosts from the InventoryManager. | def lt22(YKHO):
return YKHO.inventory_manager.get_compute_list() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Of0F(YKHO):\n return YKHO._tower.hosts.filter({'inventory': YKHO.id})",
"def Of0F(YKHO):\n return YKHO._tower.hosts.filter({'inventory': YKHO.id})",
"def HQUH(YKHO):\n return list(YKHO.hosts.values())",
"def HQUH(YKHO):\n pmON = '/storage-systems/{system-id}/hosts'\n return YKHO._invoke('G... | [
"0.8066294",
"0.8066294",
"0.76521844",
"0.7628435",
"0.7453746",
"0.7414694",
"0.7400582",
"0.7365586",
"0.73510313",
"0.7263549",
"0.70688754",
"0.702625",
"0.7004253",
"0.69781595",
"0.6974447",
"0.6974447",
"0.6957229",
"0.6901453",
"0.6882209",
"0.68795687",
"0.6868171",... | 0.0 | -1 |
Returns the longitude of the location | def Fskc(YKHO):
return YKHO._lon | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fopC(YKHO):\n return YKHO._location[1]",
"def fopC(YKHO):\n FDPT = YKHO._lat_lon[1]\n return FDPT",
"def fopC(YKHO) -> str:\n return qe4Y.get(YKHO, 'longitude')",
"def fopC(YKHO):\n return YKHO['lon']",
"def fopC(YKHO):\n return YKHO._gps.longitude",
"def fopC(YKHO):\n try:\n ... | [
"0.9036123",
"0.88037044",
"0.8798905",
"0.86893225",
"0.86471117",
"0.86412024",
"0.8615408",
"0.8609853",
"0.8556694",
"0.8551725",
"0.8551725",
"0.8551725",
"0.85438204",
"0.8526249",
"0.8522087",
"0.85218394",
"0.85218394",
"0.85218394",
"0.85218394",
"0.85218394",
"0.848... | 0.7826751 | 45 |
Returns the latitude of the location | def TujQ(YKHO):
return YKHO._lat | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _UuI(YKHO):\n return YKHO._location[0]",
"def _UuI(YKHO):\n QnmL = YKHO._lat_lon[0]\n return QnmL",
"def _UuI(YKHO):\n hLRM = YKHO._get_origin()\n return hLRM.latitude",
"def _UuI(YKHO):\n return YKHO._gps.latitude",
"def TujQ(YKHO):\n return YKHO.latitude",
"def _UuI(YKHO):\n ... | [
"0.8611589",
"0.84724563",
"0.8308409",
"0.82717085",
"0.8263079",
"0.82624996",
"0.82259655",
"0.8171517",
"0.8133968",
"0.8127455",
"0.8124785",
"0.8093773",
"0.8093773",
"0.8090417",
"0.8061808",
"0.8061259",
"0.8061259",
"0.8061259",
"0.8061259",
"0.8035327",
"0.8023551",... | 0.818576 | 7 |
query on the current database session (self.__session) all objects depending of the class name (argument cls); returns dict | def all(YKHO, Emd4=None):
YKHO.reload()
for H5ew, BWXx in zYGP.items():
qXTy = {}
if Emd4 is None or Emd4 == H5ew:
for P6bq in YKHO.__session.query(zYGP[H5ew]).all():
G1Hx = P6bq.__class__.__name__ + '.' + P6bq.id
qXTy[G1Hx] = P6bq
return qXTy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def all(YKHO, Emd4=None):\n Csk6 = {}\n if Emd4 is not None:\n for YEnM in YKHO.__session.query(Emd4):\n G1Hx = str(Emd4) + '.' + YEnM.id\n Csk6[G1Hx] = YEnM\n return Csk6\n else:\n for CQwJ in YKHO.my_classes:\n for YEnM in YKHO.__session.query(eval(C... | [
"0.8351275",
"0.8257126",
"0.8095412",
"0.80620253",
"0.8005653",
"0.79868376",
"0.7984153",
"0.7939161",
"0.7927124",
"0.7812697",
"0.7802968",
"0.77831763",
"0.7719531",
"0.76968056",
"0.7689104",
"0.7676741",
"0.76757467",
"0.76593685",
"0.75494325",
"0.7511432",
"0.739084... | 0.7695287 | 14 |
add the object to the current database session | def BdN0(YKHO, YEnM):
BdN0 = None
for H5ew, BWXx in zYGP.items():
if H5ew == YEnM:
BdN0 = BWXx(name='Placeholder')
YKHO.__session.add(BdN0)
YKHO.save()
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _mzC(YKHO):\n NCls.session.add(YKHO)",
"def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()",
"def H2v5(YKHO, YEnM):\n YKHO.session.add(YEnM)",
"def H2v5(YKHO, YEnM):\n YKHO.session.add(YEnM)",
"def RFVC(Emd4, cuiw, YEnM):\n cuiw.add(YEnM)",
"def H2v5(YKHO):\n NCls.s... | [
"0.8323568",
"0.82492673",
"0.8203856",
"0.8203856",
"0.8196207",
"0.8142977",
"0.7957533",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
"0.7814809",
... | 0.0 | -1 |
Deletes from current session if obj not None | def PTpj(YKHO, YEnM=None):
if YEnM is not None:
YKHO.__session.delete(YEnM)
YKHO.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uGQz(Emd4, cuiw, YEnM):\n cuiw.delete(YEnM)",
"def PTpj(YKHO, YEnM=None):\n if YEnM is None:\n YKHO.__session.delete(YEnM)",
"def PTpj(YKHO, YEnM=None):\n if YEnM:\n YKHO.__session.delete(YEnM)",
"def PTpj(YKHO, YEnM=None):\n if YEnM:\n YKHO.__session.delete(YEnM)",
"de... | [
"0.8177009",
"0.8030328",
"0.78704226",
"0.78704226",
"0.78704226",
"0.78704226",
"0.78704226",
"0.78704226",
"0.78027606",
"0.780248",
"0.780248",
"0.780248",
"0.780248",
"0.780248",
"0.780248",
"0.780248",
"0.780248",
"0.77985305",
"0.7766441",
"0.772149",
"0.76931685",
"... | 0.75289327 | 26 |
Removes session or close on class Session | def DDI8(YKHO):
"""self.Session.close_all()"""
YKHO.__session.close_all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO.__session.remove()",
"def DDI8(YKHO):\n YKHO.__session.remove()",
"def DDI8(YKHO):\n YKHO.__session.remove()",
"def DDI8(YKHO):\n YKHO.__session.remove()",
"def DDI8(YKHO):\n YKHO.__session.remove()",
"def DDI8(YKHO):\n YKHO.__session.remove()",
"def DDI8(YKHO):... | [
"0.7982487",
"0.7982487",
"0.7982487",
"0.7982487",
"0.7982487",
"0.7982487",
"0.7982487",
"0.7913823",
"0.7913823",
"0.78990144",
"0.77258784",
"0.7682162",
"0.7677917",
"0.7613773",
"0.7595905",
"0.7594143",
"0.75719637",
"0.7561193",
"0.75281066",
"0.7514835",
"0.74944216"... | 0.67391145 | 87 |
returns the pnorm distance between two points | def kzJD(KCHu, a1PO, XP5J=2):
LTIa = zip(KCHu, a1PO)
pImw = 0
if XP5J == 'inf':
for EBgd, HpuQ in LTIa:
pImw = max(pImw, abs(EBgd - HpuQ))
else:
for EBgd, HpuQ in LTIa:
pImw += abs(EBgd - HpuQ) ** XP5J
return pImw ** (1 / XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cOBz(X3qZ, ZYCo):\n from scipy import linalg as rmzx\n pImw = rmzx.norm(BBix(X3qZ, ZYCo))\n return pImw",
"def rkEX(YKHO, EBgd, HpuQ):\n return oyIN.linalg.norm(EBgd - HpuQ)",
"def Ayfi(X3qZ, ZYCo):\n return oyIN.linalg.norm(oyIN.asarray(X3qZ) - oyIN.asarray(ZYCo))",
"def Ayfi(EBgd, HpuQ):... | [
"0.836649",
"0.82534707",
"0.8132167",
"0.8034586",
"0.7971055",
"0.79344356",
"0.79344356",
"0.7794973",
"0.7775169",
"0.7758311",
"0.7727838",
"0.77016574",
"0.7667053",
"0.7666155",
"0.7658615",
"0.7655457",
"0.7646931",
"0.7640044",
"0.76063144",
"0.76013064",
"0.75995",
... | 0.0 | -1 |
Pick random pair of elements from a set | def CjHf(KCHu, T4Wy=True):
Uqbu = list(KCHu)
if len(Uqbu) < 2:
raise RuntimeError('Number of items has to be >=2')
hQHm = tuKI.choice(Uqbu)
jlSq = tuKI.choice(Uqbu)
while hQHm == jlSq:
jlSq = tuKI.choice(Uqbu)
if T4Wy:
return (hQHm, jlSq)
return tuple(sorted((hQHm, jl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XBMj(mSrU):\n Rk0c = set()\n while True:\n q2Xo = tuKI.sample(mSrU, 2)\n q2Xo = tuple(sorted(q2Xo))\n if q2Xo not in Rk0c:\n Rk0c.add(q2Xo)\n yield q2Xo",
"def SpGD(_U44):\n nPrm = list(cEe6[_U44])\n tuKI.shuffle(nPrm)\n YRbF = 0\n lO1m = len(nPrm)... | [
"0.6785272",
"0.66723603",
"0.6663227",
"0.6658441",
"0.66473114",
"0.6623894",
"0.66147137",
"0.66145927",
"0.6607677",
"0.65826136",
"0.65183",
"0.65091115",
"0.64928824",
"0.6487424",
"0.64848894",
"0.6456589",
"0.63706774",
"0.6362469",
"0.62857914",
"0.6279519",
"0.62726... | 0.6497238 | 12 |
r""" Return the product of basis elements ``w1`` and ``w2``, as per | def QjWT(YKHO, s1k6, xMw6):
return sum((YKHO.basis()[P6bq] for P6bq in s1k6.shuffle(xMw6))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QjWT(YKHO, s1k6, xMw6):\n return YKHO(YKHO.to_T_basis(s1k6) * YKHO.to_T_basis(xMw6))",
"def QjWT(YKHO, s1k6, xMw6):\n Aofo = YKHO.monomial(s1k6)\n for YRbF in xMw6.reduced_word():\n Aofo = YKHO.product_by_generator(Aofo, YRbF)\n return Aofo",
"def pay6(s1k6, xMw6):\n return s1k6 * oyI... | [
"0.85436887",
"0.8410535",
"0.7232602",
"0.68989503",
"0.669376",
"0.6675734",
"0.6662873",
"0.6637925",
"0.65092796",
"0.6466683",
"0.6447763",
"0.6440121",
"0.6437855",
"0.6310153",
"0.6302071",
"0.62729454",
"0.6227892",
"0.6208756",
"0.62052494",
"0.61947984",
"0.6192449"... | 0.8427937 | 1 |
r""" Canonical coercion of ``x`` into ``self``. | def Zn7_(YKHO, WKvO):
try:
A3Vt = WKvO.parent()
if isinstance(A3Vt, xxlH):
if A3Vt.variable_names() == YKHO.variable_names():
if YKHO.has_coerce_map_from(A3Vt.base_ring()):
return YKHO(WKvO)
else:
raise TypeError('no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ueo9(YKHO, WKvO):\n pass",
"def NkkI(YKHO, WKvO):\n pass",
"def a8Pe(YKHO, WKvO):\n eHNT = YKHO.compiler(WKvO)\n return eHNT(WKvO)",
"def SZFh(YKHO, WKvO):\n return YKHO.__transformer(WKvO, s=YKHO.s)",
"def SZFh(YKHO, WKvO):\n return YKHO.__transformer(WKvO, s=YKHO.s)",
"def SZFh(YK... | [
"0.7487917",
"0.6896124",
"0.68161905",
"0.664777",
"0.664777",
"0.63384503",
"0.6278863",
"0.6278863",
"0.6278863",
"0.62424326",
"0.6239501",
"0.62048143",
"0.6106198",
"0.61004406",
"0.605753",
"0.60388124",
"0.6033639",
"0.6005424",
"0.59949553",
"0.59810627",
"0.58896685... | 0.6619364 | 5 |
Return the dual PBW of ``self``. | def D291(YKHO):
return wqdC(YKHO.base_ring(), YKHO._alphabet) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NtD5(YKHO):\n if YKHO.units == 'dBW':\n return YKHO\n return q3Qn(YKHO._convert_to_dBW())",
"def YzeA(YKHO):\n if YKHO.units == 'dBW':\n return YKHO\n if YKHO.units == 'dBm':\n return YKHO - 30.0\n if YKHO.units in ['dBV', 'dBA']:\n return 0.5 * YKHO\n naF9 = YKH... | [
"0.6995",
"0.67513907",
"0.665657",
"0.66514874",
"0.642499",
"0.63542616",
"0.6126274",
"0.6126274",
"0.6110487",
"0.6110487",
"0.6052279",
"0.60338646",
"0.60336006",
"0.6019057",
"0.5993489",
"0.5984655",
"0.5984655",
"0.5984655",
"0.5984655",
"0.5984655",
"0.5984655",
"... | 0.7177329 | 0 |
Return a string representation of ``self``. | def aRbh(YKHO):
return 'The dual Poincare-Birkhoff-Witt basis of {}'.format(YKHO._alg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def rIkN(YKHO) -> str:\n return str(YKHO)",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def gTzM(YKHO):\... | [
"0.8866918",
"0.8855845",
"0.8764202",
"0.87561667",
"0.87224334",
"0.87181777",
"0.86861527",
"0.86622393",
"0.86622393",
"0.86296016",
"0.85730827",
"0.8566589",
"0.8566589",
"0.8566589",
"0.8563017",
"0.8532948",
"0.8518513",
"0.85110533",
"0.84995",
"0.84995",
"0.8468928"... | 0.0 | -1 |
Construct an element of ``self`` from ``x``. | def Bofo(YKHO, WKvO):
if isinstance(WKvO, (str, HziQ)):
XcU5 = YKHO.basis().keys()
WKvO = XcU5(WKvO)
elif isinstance(WKvO.parent(), xxlH):
return YKHO._alg.to_dual_pbw_element(YKHO._alg(WKvO))
return super(wqdC, YKHO)._element_constructor_(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l_xx(YKHO, WKvO):\n return WKvO",
"def Bofo(YKHO, WKvO):\n V6IE = _AKB(WKvO)\n if V6IE is YKHO:\n return WKvO\n if not isinstance(WKvO, jKi7.string_types):\n try:\n return YKHO.element_class(YKHO, YKHO.__ring(WKvO), check=True)\n except TypeError:\n ID0L... | [
"0.7779916",
"0.7688203",
"0.76208025",
"0.7525482",
"0.73818517",
"0.736292",
"0.7143792",
"0.706573",
"0.68146896",
"0.67844856",
"0.6718822",
"0.67013615",
"0.648173",
"0.6473461",
"0.6344769",
"0.63257396",
"0.62177956",
"0.6195111",
"0.61879545",
"0.6088405",
"0.6028104"... | 0.67848283 | 9 |
Return the indexing element of the basis element `1`. | def ECUB(YKHO):
XcU5 = YKHO.basis().keys()
return XcU5([]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xr_V(YKHO):\n return YKHO.basis()[0]",
"def Vn7Z(WKvO):\n return WKvO * 4 * 2",
"def WaCL(ezWE, yxfW):\n pass",
"def ECUB(YKHO):\n return YKHO._space.zero()",
"def ECUB(YKHO):\n return YKHO._space.zero()",
"def d6pt(wEf2):\n K5WD = bR5n.params()[2]\n return oyIN.where(K5WD == wEf... | [
"0.7050405",
"0.6863022",
"0.6618853",
"0.648046",
"0.648046",
"0.6457369",
"0.64425665",
"0.64039844",
"0.63940054",
"0.63519186",
"0.6338666",
"0.6333905",
"0.63243777",
"0.63044274",
"0.62747926",
"0.6264924",
"0.6245102",
"0.6194486",
"0.619027",
"0.61883026",
"0.61868393... | 0.0 | -1 |
Return the algebra generators of ``self``. | def hSnJ(YKHO):
XcU5 = YKHO.basis().keys()
return tuple((YKHO.monomial(XcU5(jzdc)) for jzdc in YKHO._alphabet)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hSnJ(YKHO):\n return YKHO.basis().keys().simple_reflections().map(YKHO.monomial)",
"def v97Q(YKHO, YRbF):\n return YKHO.algebra_generators()[YRbF]",
"def JRjz(YKHO):\n pass",
"def JRjz(YKHO):\n return tuple((YKHO(nVrR) for nVrR in YKHO.gap().GeneratorsOfAlgebra()))",
"def hSnJ(YKHO):\n W... | [
"0.81046534",
"0.806787",
"0.7824529",
"0.771384",
"0.76551455",
"0.6959132",
"0.66564775",
"0.65761244",
"0.65761244",
"0.6440112",
"0.64080954",
"0.62469935",
"0.6055375",
"0.6031644",
"0.5996977",
"0.5912326",
"0.58102286",
"0.57579654",
"0.574627",
"0.574627",
"0.57311314... | 0.800578 | 2 |
Return the ``i``th generator of ``self``. | def eK5b(YKHO, YRbF):
return YKHO.algebra_generators()[YRbF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eK5b(YKHO, YRbF):\n Fg_i = YKHO.basis()\n if YRbF < 0 or YRbF >= len(Fg_i):\n raise IndexError('no %sth generator' % YRbF)\n return YKHO.basis()[YRbF]",
"def eK5b(YKHO, YRbF):\n return YKHO.__gens[YRbF]",
"def OP2O(YKHO, YRbF: int):\n return next(Hs6x.islice(YKHO, YRbF, None))",
"de... | [
"0.8005647",
"0.7080616",
"0.706166",
"0.6987758",
"0.68333095",
"0.68322504",
"0.6690879",
"0.6657358",
"0.6657358",
"0.66416025",
"0.6636495",
"0.66327935",
"0.65985245",
"0.658708",
"0.6568393",
"0.6562725",
"0.6552248",
"0.6540141",
"0.6538228",
"0.6522962",
"0.65211064",... | 0.7200583 | 1 |
create and return a new user. | def eLpg(YKHO, vGfb):
CBIr = FYrf.UserProfile(email=vGfb['email'], name=vGfb['name'])
CBIr.set_password(vGfb['password'])
CBIr.save()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYUQ(D3lj, jTXt):\n Q5YQ = mv1M(D3lj, jTXt)\n return Q5YQ",
"def CfQI(NtEF, jTXt):\n Q5YQ = mv1M(NtEF, jTXt)\n return Q5YQ",
"def lYUQ(YKHO):\n return egNl().objects.create_user(YKHO.user_email, YKHO.user_password)",
"def CfQI(IznC, dW_5, jTXt):\n Q5YQ = mv1M(IznC, dW_5, jTXt)\n retu... | [
"0.8446785",
"0.84013224",
"0.83605164",
"0.83496547",
"0.8307776",
"0.8286295",
"0.828023",
"0.825915",
"0.8245399",
"0.8163493",
"0.8151578",
"0.81266916",
"0.80947375",
"0.8087932",
"0.80824256",
"0.8080276",
"0.80687517",
"0.8046933",
"0.80443513",
"0.8043054",
"0.8043054... | 0.0 | -1 |
Assert that user successfully lands on homepage | def kgM1(YKHO):
Aofo = YKHO.app.get('/')
YKHO.assertEqual(Aofo.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QT9p(YKHO):\n Aofo = YKHO.client.get('/', follow_redirects=True)\n YKHO.assertIn('Confirm Your Location', Aofo.data)",
"def krbx(YKHO):\n YKHO.test_1_login_success()\n geh0 = YKHO.client.get(gxEw('home'), YKHO.test_user, follow=True)\n YKHO.assertEqual(geh0.status_code, 200)",
"def vP18(YKHO... | [
"0.8245681",
"0.8038279",
"0.78295827",
"0.7792855",
"0.77564764",
"0.7700234",
"0.76941276",
"0.7691533",
"0.7669876",
"0.76489097",
"0.7630267",
"0.7624655",
"0.7613725",
"0.7572686",
"0.75512344",
"0.75193715",
"0.7517087",
"0.7483251",
"0.74808687",
"0.74787676",
"0.74746... | 0.0 | -1 |
Create the space of homomorphisms from X to Y in the category ``category``. | def pRcX(EcVT, fuBA, Ghho=None, GfdN=True):
global _cache
H5ew = (EcVT, fuBA, Ghho)
try:
C7Ls = Iy_7[H5ew]
except KeyError:
C7Ls = None
if C7Ls is not None:
if C7Ls.domain() is EcVT and C7Ls.codomain() is fuBA:
return C7Ls
if Ghho is None:
Ghho = EcVT.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qAQ7(YKHO, LeZt, _LDn, bySB):\n for id in LeZt.keys():\n Ghho = LeZt[id]\n YKHO.add_category(id, Ghho['label'], Ghho['precision'])\n for GIN8 in Ghho['words']:\n YKHO.add_word(id, GIN8)\n YKHO._categories[id].update_batch_meaning(_LDn, bySB)",
"def LYPV(YKHO, EcVT, f... | [
"0.5333135",
"0.5293889",
"0.52228355",
"0.5201104",
"0.5185892",
"0.50637066",
"0.5029848",
"0.50201637",
"0.50127137",
"0.49502587",
"0.48659602",
"0.4846042",
"0.48392278",
"0.48199177",
"0.4813734",
"0.4802275",
"0.47826695",
"0.47816813",
"0.47714993",
"0.47618687",
"0.4... | 0.51612824 | 5 |
Return ``Hom(X,Y)(f)``, where ``f`` is data that defines an element of ``Hom(X,Y)``. | def Rezl(EcVT, fuBA, eHNT):
return pRcX(EcVT, fuBA)(eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rezl(r8hN):\n return oyIN.array([float(r8hN[0]), float(r8hN[1]), float(r8hN[2]), 1.0])",
"def Gvpj(C7Ls, KaIg, Dyub, bxGk, RPkK):\n pass",
"def UWOE(t8vZ, HIRj, uKtj):\n zDdG, WCth = HIRj\n assert all((E1Oi.is_homogeneous() for E1Oi in [t8vZ, zDdG, WCth])), 'Input polynomials not homogeneous in... | [
"0.60738796",
"0.5931372",
"0.58405524",
"0.57067287",
"0.55719936",
"0.5428401",
"0.5373868",
"0.5331425",
"0.53266793",
"0.5325101",
"0.5310299",
"0.52870864",
"0.5267989",
"0.52264833",
"0.52003175",
"0.51880854",
"0.51747704",
"0.5139583",
"0.5121585",
"0.5120846",
"0.511... | 0.83162504 | 0 |
Return the "natural map" of this homset. | def VDQv(YKHO):
return wykk.FormalCoercionMorphism(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZCQM(YKHO) -> cuzp[int, int]:\n return YKHO.get_nid_map(sort_ids=True)",
"def l4dZ(YKHO):\n return YKHO._default_map",
"def map(YKHO):\n return YKHO._map",
"def map(YKHO):\n return YKHO._map",
"def map(YKHO):\n return YKHO._map",
"def map(YKHO):\n return i6od.type.core.common.Map(YK... | [
"0.6390176",
"0.6250496",
"0.6178292",
"0.6178292",
"0.6178292",
"0.60909283",
"0.5984458",
"0.59604007",
"0.5883945",
"0.58788717",
"0.5837091",
"0.5830445",
"0.58047616",
"0.5773362",
"0.5769212",
"0.57565093",
"0.57224417",
"0.57177305",
"0.5714691",
"0.5707961",
"0.569371... | 0.75951284 | 0 |
The identity map of this homset. | def _E99(YKHO):
if YKHO.is_endomorphism_set():
return wykk.IdentityMorphism(YKHO)
else:
raise TypeError('Identity map only defined for endomorphisms. Try natural_map() instead.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gh5W(YKHO):\n return aM69.primary_identity_map(YKHO)",
"def ZCQM(YKHO) -> cuzp[int, int]:\n return YKHO.get_nid_map(sort_ids=True)",
"def O36G(YKHO) -> oyIN.ndarray:\n Xcte = oyIN.zeros(shape=(YKHO.settings['map_size'], YKHO.settings['map_size']), dtype=oyIN.int)\n for LEXu in YKHO.animals():\n... | [
"0.83729774",
"0.67266965",
"0.6716296",
"0.67146724",
"0.6555992",
"0.64774734",
"0.6471447",
"0.6447624",
"0.6427265",
"0.6388624",
"0.6388624",
"0.6388624",
"0.6282897",
"0.6280849",
"0.62672704",
"0.61419785",
"0.6121352",
"0.60820085",
"0.60745275",
"0.6041891",
"0.60353... | 0.737528 | 1 |
Return the domain of this homset. | def zrIJ(YKHO):
return YKHO._domain | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrIJ(YKHO):\n return YKHO._T.domain()",
"def ZFRB(YKHO):\n return YKHO.domain_dim",
"def zrIJ(YKHO):\n raise NotImplementedError",
"def nfxR(YKHO):\n return 1",
"def zrIJ(YKHO) -> Nlmb:\n if YKHO._domain is None:\n YKHO._domain = Nlmb(u2h7.legion_index_space_get_domain(YKHO.runtim... | [
"0.7917257",
"0.7463709",
"0.7360643",
"0.7248203",
"0.72421664",
"0.70978856",
"0.70140797",
"0.69824195",
"0.6937935",
"0.693746",
"0.6927454",
"0.6927454",
"0.6923",
"0.6923",
"0.6877298",
"0.6877298",
"0.6877298",
"0.6838275",
"0.6778305",
"0.67020434",
"0.67020434",
"0... | 0.6823069 | 20 |
Return the codomain of this homset. | def l0Ob(YKHO):
return YKHO._codomain | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l0Ob(YKHO):\n return YKHO.parent().module()",
"def zrIJ(YKHO):\n return YKHO._T.domain()",
"def l0Ob(YKHO) -> 'CombinatorialSpecification[ClassType2, ObjType2]':\n return YKHO._other",
"def dgYs(YKHO):\n return YKHO.covarianza",
"def zrIJ(YKHO):\n raise NotImplementedError",
"def xN5O(... | [
"0.63809276",
"0.6254128",
"0.61783004",
"0.61592764",
"0.6070394",
"0.60395306",
"0.60203624",
"0.6016307",
"0.5938218",
"0.59031475",
"0.588527",
"0.58619726",
"0.581629",
"0.5809316",
"0.57896274",
"0.57746404",
"0.5748525",
"0.57132304",
"0.5692075",
"0.56828356",
"0.5682... | 0.726271 | 0 |
Return ``True`` if the domain and codomain of ``self`` are the same object. | def gREM(YKHO):
HemR = YKHO.domain()
bmQi = YKHO.codomain()
if bmQi is None or HemR is None:
raise RuntimeError('Domain or codomain of this homset have been deallocated')
return HemR is bmQi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: 'Morphism') -> bool:\n if YKHO.domain != Elif.domain or YKHO.codomain != Elif.codomain:\n return False\n WKvO = YKHO.domain.symbolic_coords\n pJ_5 = YKHO(WKvO)\n ynx4 = Elif(WKvO)\n return pJ_5 == ynx4",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, H64O):\n ... | [
"0.7476985",
"0.73656964",
"0.713936",
"0.7062682",
"0.7042429",
"0.69354534",
"0.69219",
"0.6876102",
"0.6794857",
"0.6777572",
"0.6757256",
"0.6743449",
"0.67321706",
"0.67273813",
"0.6722276",
"0.671578",
"0.66945815",
"0.66945815",
"0.66945815",
"0.66898084",
"0.6687809",... | 0.0 | -1 |
translates an rgb tuple of int to a tkinter friendly color code | def VwNc(d7Eb):
return '#%02x%02x%02x' % d7Eb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXwv(Z9rn):\n return tuple([int(255 * wEf2) for wEf2 in Z9rn[:3]])",
"def d7Eb(d7Eb):\n return '#%02x%02x%02x' % d7Eb",
"def tz7b(d7Eb):\n return '#%02x%02x%02x' % d7Eb",
"def tz7b(d7Eb):\n return '#%02x%02x%02x' % d7Eb",
"def foJY(qfpW):\n if qfpW:\n qfpW = ''.join([WKvO * 2 for ... | [
"0.72494185",
"0.7190643",
"0.7186578",
"0.7183305",
"0.71670425",
"0.70945317",
"0.70906204",
"0.70656586",
"0.7037926",
"0.7030514",
"0.70187515",
"0.69856745",
"0.6984992",
"0.6984992",
"0.6984992",
"0.6976985",
"0.6976723",
"0.69484186",
"0.6945869",
"0.69294614",
"0.6927... | 0.6875994 | 23 |
Override `PythonMixin.to_python` to skip inplace datetime conversion. The original method's only function is to convert datetimeish strings to datetime objects. This is done irrespective of mapping type and the timezoneaware ISO format is not recognized. | def WOxh(YKHO, YEnM):
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOxh(YKHO, BWXx):\n if isinstance(BWXx, qcWV.datetime) or BWXx is None:\n return BWXx\n try:\n BWXx = str(BWXx)\n except ValueError:\n raise Bx6I.ValidationError(YKHO.error_messages['invalid'], code='invalid', params={'value': BWXx})\n try:\n if len(BWXx) == 13:\n ... | [
"0.6689305",
"0.6663222",
"0.6566205",
"0.6427678",
"0.64255446",
"0.63873404",
"0.6354597",
"0.6289758",
"0.62311035",
"0.6117217",
"0.60493314",
"0.60210437",
"0.60143054",
"0.59943855",
"0.59934205",
"0.5988345",
"0.5942366",
"0.5940202",
"0.5933075",
"0.5912815",
"0.59037... | 0.0 | -1 |
Check whether a fleet can not move to land. | def w0aj(YKHO):
dlzh = Xhz8(aXFz.GERMANY, YKHO.territories.KIEL)
T4Wy = P_ka(aXFz.GERMANY, YKHO.territories.KIEL, YKHO.territories.MUNICH)
YKHO.state.register(dlzh, T4Wy)
NBjn(YKHO.state)
YKHO.assertEqual(T4Wy.legal_decision, OTC4.ILLEGAL)
YKHO.assertEqual(T4Wy.illegal_message, u1Ob.M006) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P9uc(YKHO):\n EmUK, c_NS = YKHO.worldAndRules()\n JyK9 = EmUK.create('bot')['id']\n Fyji = EmUK.create('square')['id']\n YKHO.assertRaises(rIRa, c_NS.isAllowed, EmUK, XeOP.Move(JyK9, Fyji))",
"def WT_o(YKHO, Rci7):\n y6zU = Rci7[0] >= 0 and Rci7[0] < YKHO.height and (Rci7[1] >= 0) and (Rci7[1]... | [
"0.6765338",
"0.66229296",
"0.6550824",
"0.6522605",
"0.6389071",
"0.63622344",
"0.6353994",
"0.63356733",
"0.63224715",
"0.63037604",
"0.6282634",
"0.6276174",
"0.6252233",
"0.62166077",
"0.6209022",
"0.61908317",
"0.6183498",
"0.6180154",
"0.6146023",
"0.6121336",
"0.612036... | 0.6209193 | 14 |
If two places are adjacent, that does not mean that a fleet can move between those two places. An implementation that only holds one list of adjacent places for each place, is incorrect. | def rdAM(YKHO):
dlzh = Xhz8(aXFz.ITALY, YKHO.territories.ROME, YKHO.territories.VENICE)
T4Wy = P_ka(aXFz.ITALY, YKHO.territories.ROME, YKHO.territories.VENICE)
YKHO.state.register(T4Wy, dlzh)
NBjn(YKHO.state)
YKHO.assertEqual(T4Wy.legal_decision, OTC4.ILLEGAL)
YKHO.assertEqual(T4Wy.illegal_messa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8Ld(YKHO):\n dlzh = Xhz8(aXFz.ENGLAND, YKHO.territories.NORTH_SEA)\n T4Wy = P_ka(aXFz.ENGLAND, YKHO.territories.NORTH_SEA, YKHO.territories.PICARDY)\n YKHO.state.register(dlzh, T4Wy)\n NBjn(YKHO.state)\n YKHO.assertEqual(T4Wy.legal_decision, OTC4.ILLEGAL)\n YKHO.assertEqual(T4Wy.illegal_mess... | [
"0.6447457",
"0.6336428",
"0.6250481",
"0.61925036",
"0.61193794",
"0.61147535",
"0.60598975",
"0.60353494",
"0.60043246",
"0.60015035",
"0.59713614",
"0.594941",
"0.5921065",
"0.5905124",
"0.5893021",
"0.5891422",
"0.58804506",
"0.58804506",
"0.5872908",
"0.5848839",
"0.5845... | 0.5805671 | 24 |
Finds the longest streak of direction 1 or 2 packets. | def WVOE(T6S7, dir):
nSFH = 0
jvSB = 0
for mLGw in T6S7:
if mLGw == dir:
jvSB += 1
else:
nSFH = max(nSFH, jvSB)
jvSB = 0
return max(nSFH, jvSB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ecv2(YKHO, cpSQ=[0, 1, 2]):\n wmvg = []\n for yk4i in cpSQ:\n YKHO.curs.execute('SELECT longest_draw,ts_begin FROM game_stats WHERE difficulty = ?', (yk4i,))\n wmvg += YKHO.curs.fetchall()\n XuMv = max(wmvg)\n return XuMv",
"def cbN4(KCHu: str) -> int:\n if not KCHu:\n ret... | [
"0.65593696",
"0.6400613",
"0.6373204",
"0.62568104",
"0.61480904",
"0.6107663",
"0.61060274",
"0.6099201",
"0.60913306",
"0.60892177",
"0.5990169",
"0.59458846",
"0.59233356",
"0.5908347",
"0.5902515",
"0.5898156",
"0.58968836",
"0.5892983",
"0.58890325",
"0.5873876",
"0.587... | 0.66019255 | 0 |
Rolling window aggregates calculated over a specified column, time range, and aggregating stat. | def rKSe(jQ3Z, iVRZ, C6wh, eQSh=['mean']):
fvO8 = rLdf.offsets.Second(C6wh)
return jQ3Z[iVRZ].rolling(C6wh).agg(eQSh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JOTk(YKHO, KnxT=None):\n return rXcm(YKHO, window=KnxT, stat='sum')",
"def Bhlf(YKHO, KnxT=None):\n return rXcm(YKHO, window=KnxT, stat='range')",
"def CpvC(jQ3Z, KnxT=10):\n return jQ3Z.rolling(KnxT).sum()",
"def JtYS(YKHO, KnxT=None):\n return rXcm(YKHO, window=KnxT, stat='mean')",
"def V... | [
"0.70450854",
"0.6528779",
"0.64530236",
"0.6410575",
"0.6353134",
"0.6312441",
"0.6234855",
"0.62092113",
"0.6175287",
"0.6169837",
"0.6142984",
"0.61293465",
"0.6070718",
"0.6061252",
"0.6056955",
"0.60392743",
"0.5998386",
"0.59437466",
"0.59106064",
"0.5895556",
"0.588495... | 0.6304863 | 6 |
Returns a list with pods contained in both given lists | def sUgb(NccQ, dqH4):
MGea = [g2Vd for g2Vd in NccQ if _ZGX(g2Vd, dqH4)]
return MGea | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMlP(Kt9y, I_KI):\n return [ZfUD for ZfUD in I_KI if ZfUD in Kt9y]",
"def TFAZ(Kt9y, I_KI):\n qFa0 = [WKvO for WKvO in Kt9y if WKvO in I_KI]\n return qFa0",
"def XMlP(Kt9y, I_KI):\n return [WKvO for WKvO in Kt9y if WKvO in I_KI]",
"def kvux(jzdc: Iterable, Fg_i: Container) -> x1iM:\n retur... | [
"0.64550185",
"0.6436575",
"0.64127296",
"0.6366577",
"0.6358165",
"0.63249475",
"0.63211083",
"0.6313863",
"0.63040465",
"0.6242694",
"0.6225982",
"0.61557305",
"0.6148645",
"0.61180216",
"0.6087571",
"0.60025275",
"0.5995462",
"0.59456825",
"0.5928454",
"0.59242916",
"0.591... | 0.7859323 | 0 |
Fetches and returns the path of the network namespace This function only works for runtimes that are CRI compliant e.g. containerd | def rb5s(YpDk, GT6L):
_IMX = ['crictl', 'pods', '--name=%s' % str(GT6L), '--namespace=%s' % str(YpDk), '-q', '--no-trunc']
M9c7 = Yn3K.run(_IMX, stdout=Yn3K.PIPE, stderr=Yn3K.PIPE)
if M9c7.returncode:
S0MI.error('Getting pods for name %s in namespace %s failed! output:', GT6L, YpDk)
S0MI.err... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s9k_(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'namespace_path')",
"def s9k_(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'namespace_path')",
"def e6eR(MAZO):\n KGvk = qQXR.loads(MAZO)\n P7n6 = None\n for _63S in KGvk['info']['runtimeSpec']['linux']['namespaces']:\n if _63S['t... | [
"0.7160496",
"0.70983887",
"0.70646834",
"0.7022557",
"0.6876811",
"0.6876811",
"0.67791975",
"0.6634702",
"0.65663415",
"0.65653425",
"0.65138143",
"0.65138143",
"0.65138143",
"0.65138143",
"0.65138143",
"0.65138143",
"0.65138143",
"0.64604294",
"0.64604294",
"0.64604294",
"... | 0.63532764 | 31 |
Returns all pods on the node of this pod | def xhtN():
ayrW = Hy7s.environ.get('RUNNER_NODE')
S0MI.debug('RUNNER_NODE=%s', ayrW)
KsAw.config.load_incluster_config()
nNXP = KsAw.client.CoreV1Api()
return nNXP.list_pod_for_all_namespaces(field_selector='spec.nodeName==%s' % ayrW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nuNa(YKHO):\n uvbf = []\n Dl0U = k_Ol(config=YKHO.config, name='yo').list()\n for PCpl in Dl0U:\n _Fei = YKHO.config\n _Fei.namespace = PCpl.name\n XP5J = Jko4(config=_Fei, name='yo').list()\n iku2 = filter(lambda WKvO: WKvO.node_name == YKHO.name, XP5J)\n uvbf += ik... | [
"0.76276577",
"0.75131047",
"0.7513007",
"0.74408287",
"0.72162974",
"0.7056382",
"0.7020466",
"0.68838555",
"0.67316914",
"0.67076916",
"0.65922284",
"0.65520686",
"0.65399206",
"0.64785826",
"0.6410309",
"0.63454515",
"0.63454515",
"0.63454515",
"0.6339468",
"0.6319256",
"0... | 0.7967945 | 0 |
Gets the price of an item on the exchange. Val1 and Val2 exist because some markets are contractural and some are with actual currency. | def Q0hB(YKHO, wNuL, Mlb1=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_Zi(YKHO, q2Xo):\n pass",
"def N_Zi(ZfUD):\n VIXL = ZfUD['listing']['price']['currency']\n Z5kt = ZfUD['listing']['price']['amount']\n return Z5kt",
"def SGnS(YKHO, zDRZ):\n return YKHO._get_inner(zDRZ, 'sell') * YKHO.event_manager.get(zDRZ, 'sell')",
"def N_Zi(r5v8):\n nPrm = nNXP.tsd... | [
"0.6782179",
"0.66823083",
"0.6639916",
"0.6560224",
"0.65409076",
"0.6528159",
"0.648327",
"0.6443435",
"0.62907",
"0.6263785",
"0.6233166",
"0.6225153",
"0.6225153",
"0.62072134",
"0.61810863",
"0.6180488",
"0.617401",
"0.6171951",
"0.6169853",
"0.6165924",
"0.61642224",
... | 0.6631352 | 3 |
Function to read a df dataframe saved into disk, using read.csv | def OKNA(YSLL, pmON):
print(f' Readed CSV df from path :{pmON}')
return YSLL.read.csv(f'{pmON}', header=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iqlu(q9z3):\n qV4X = q9z3\n jQ3Z = rLdf.read_csv(qV4X, low_memory=False)\n return jQ3Z",
"def Vl0T(Kiac):\n pass",
"def k6xg(HLXn):\n return rLdf.read_csv(HLXn, header=None)",
"def izRG(**B2fa):\n b2x0 = aKoZ(B2fa, 'filepath', None)\n XWwe = aKoZ(B2fa, 'skiprows', None)\n Ux0P, Va... | [
"0.7477546",
"0.7385366",
"0.7383693",
"0.73650545",
"0.73316413",
"0.71861285",
"0.7185795",
"0.7161673",
"0.71387464",
"0.71143806",
"0.70908844",
"0.70674455",
"0.70612377",
"0.7038058",
"0.70309037",
"0.7030231",
"0.70222986",
"0.7020799",
"0.7006669",
"0.69957256",
"0.69... | 0.7514911 | 0 |
Padding a list of int list. | def cJ3B(WKvO, zNig, KVH6=False):
r8hN, exwG = (zNig[0], zNig[1])
if KVH6:
WKvO = WKvO[:r8hN]
else:
WKvO = WKvO[-r8hN:]
WKvO = oyIN.array([RnIX(YRbF, exwG, forward=KVH6) for YRbF in WKvO], dtype=int)
if len(WKvO) != r8hN:
dcxj = oyIN.zeros((r8hN - len(WKvO), exwG), dtype=int)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ybhY(nwEZ: torch.Tensor) -> ht2j.Tensor:\n H5Km = []\n eusk = 512\n for XuXy in nwEZ:\n loo_ = eusk - len(XuXy)\n if loo_ < 0:\n H5Km.append(XuXy[:eusk])\n else:\n H5Km.append(XuXy + [0] * loo_)\n assert all([len(eOtH) == 512 for eOtH in H5Km]), \"Padding ... | [
"0.7313648",
"0.72663015",
"0.7251743",
"0.7238054",
"0.7180976",
"0.71709186",
"0.7041296",
"0.69888276",
"0.6973672",
"0.6933105",
"0.6919561",
"0.6917486",
"0.6917486",
"0.69173574",
"0.6902256",
"0.68947655",
"0.6866177",
"0.6844019",
"0.6766539",
"0.6684488",
"0.66393626... | 0.57659715 | 94 |
Find serializers included on the serializer | def Mo3X(Emd4, gitN, o8Kj):
tjXI = {}
e5kH = o8Kj.get('Meta', None)
C3ST = getattr(e5kH, 'model', None)
for vXX7, Y01K in list(o8Kj.items()):
try:
jWnG = C3ST._meta.get_field(vXX7)
except (AttributeError, Q9cx):
jWnG = None
FLOa = isinstance(jWnG, FJUR)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EjJY(YKHO, db6b):\n SGPK = YKHO.object.get('parameters', [])\n IyFz = []\n for k78t in SGPK:\n ZMzz = k78t.get('pytype', None)\n if ZMzz is not None:\n try:\n ZMzz = YKHO._load_class(ZMzz, db6b)\n IyFz.append(ZMzz)\n except (ImportError... | [
"0.68605596",
"0.68089247",
"0.6461449",
"0.6341194",
"0.6186913",
"0.6145473",
"0.59418434",
"0.59026897",
"0.5815262",
"0.5804158",
"0.57807547",
"0.5777282",
"0.57575244",
"0.5737997",
"0.56366676",
"0.55965537",
"0.54793024",
"0.5470384",
"0.54221463",
"0.5403022",
"0.539... | 0.6691397 | 2 |
Find serializers included on the polymorphic serializer. | def Mo3X(Emd4, gitN, o8Kj):
OhW6 = o8Kj.get('polymorphic_serializers', [])
kypB = [ZMzz.included_serializers for ZMzz in OhW6 if hasattr(ZMzz, 'included_serializers') and ZMzz.included_serializers]
GUDa = [ZMzz.included_serializers for ZMzz in gitN if hasattr(ZMzz, 'included_serializers') and ZMzz.included_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mo3X(Emd4, gitN, o8Kj):\n tjXI = {}\n e5kH = o8Kj.get('Meta', None)\n C3ST = getattr(e5kH, 'model', None)\n for vXX7, Y01K in list(o8Kj.items()):\n try:\n jWnG = C3ST._meta.get_field(vXX7)\n except (AttributeError, Q9cx):\n jWnG = None\n FLOa = isinstance(... | [
"0.6919596",
"0.65204895",
"0.6235503",
"0.62339115",
"0.62303585",
"0.6098289",
"0.5758338",
"0.5703411",
"0.56619734",
"0.56137305",
"0.55319977",
"0.54218334",
"0.53835124",
"0.53033996",
"0.5238233",
"0.5166656",
"0.5162222",
"0.516146",
"0.5159817",
"0.50993776",
"0.5069... | 0.7502809 | 0 |
Apply a spline filter to the given array. This is normally done onthefly internally in map_coordinates when using spline interpolation of order > 1, but since it's an operation that applies to the whole input array, it can be a big overhead to do this for every call if only a small number of points are to be interpolat... | def KwM6(nPrm, T4Wy=3, MX3a='cyclic', qC1Y=None, uPnQ=False):
nPrm = oyIN.array(nPrm)
aM69 = GJC_(nPrm.dtype)
N924 = {'zero': 0, 'nearest': 1, 'cyclic': 2, 'mirror': 3}[MX3a]
if qC1Y is None:
qC1Y = nPrm.ndim
for jDK_ in range(nPrm.ndim - qC1Y, nPrm.ndim)[::-1 if uPnQ else 1]:
aM69.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _anc(qw7D: list[float], XfQO=151, JKRO=1) -> oyIN.ndarray:\n return cRh5(qw7D, XfQO, JKRO)",
"def QHE1(input, T4Wy=3, jDK_=-1, hlel=cqkc.float64, Tuqy='mirror'):\n if T4Wy < 0 or T4Wy > 5:\n raise RuntimeError('spline order not supported')\n WKvO = input\n qC1Y = WKvO.ndim\n jDK_ = dHlK... | [
"0.64867413",
"0.62071925",
"0.5987352",
"0.59803563",
"0.57513815",
"0.5635529",
"0.5515648",
"0.54486936",
"0.54441243",
"0.5399388",
"0.5398419",
"0.5374687",
"0.5362783",
"0.5356617",
"0.5298193",
"0.5268618",
"0.5260171",
"0.52085334",
"0.5200143",
"0.5194097",
"0.518192... | 0.61961144 | 2 |
Software license for the project. | def license(YKHO) -> h8nf[str]:
return getattr(YKHO.args, 'license', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO) -> str:\n return qe4Y.get(YKHO, 'license')",
"def license(YKHO, duRr, **c_sp):\n duRr.info.log(Wzeq.meta.license)\n return",
"def license():\n return print(e5kH.license)",
"def R4oP(YKHO):\n return YKHO._read_release_file('LICENSE.txt')",
"def license(YKHO):\n return YKH... | [
"0.7778992",
"0.770286",
"0.7645328",
"0.761595",
"0.7587732",
"0.7587732",
"0.75027466",
"0.7477874",
"0.7464959",
"0.74454546",
"0.7431492",
"0.74207103",
"0.74207103",
"0.74099463",
"0.73903173",
"0.7369069",
"0.73149925",
"0.7313941",
"0.7305893",
"0.7298186",
"0.72263277... | 0.6684925 | 76 |
Root directory of the project. The toplevel directory containing the source code and all configuration/metadata files (e.g. pyproject.toml, package.json). The project root can be different from the source code directory but, if they are different, the project root should contain the source code directory. If it does no... | def L59w(YKHO) -> GkAb:
Wqal = YKHO.ctx.config_path.parent if YKHO.ctx.config_path.is_file() else YKHO.ctx.config_path if YKHO.ctx.config_path.is_dir() else YKHO.args.source_code
if Wqal == YKHO.args.source_code:
return Wqal
ACnF = list(YKHO.args.source_code.parents)
if Wqal not in ACnF:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSqg(YKHO):\n return YKHO._project_dir",
"def jNha(YKHO) -> GkAb:\n if YKHO.test_root:\n return GkAb(YKHO.test_root)\n return GkAb(Hy7s.getcwd())",
"def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def fJd3(YKHO):\n return YKHO._project_directory",
"def phdL() -> GkAb:\n KfR... | [
"0.73376757",
"0.71410286",
"0.70670927",
"0.7049703",
"0.6892385",
"0.68114126",
"0.67169154",
"0.6714842",
"0.6685402",
"0.66826",
"0.66826",
"0.66826",
"0.66826",
"0.66714114",
"0.6662232",
"0.6643916",
"0.6643916",
"0.6634958",
"0.6634637",
"0.66121817",
"0.65908617",
"... | 0.71621835 | 1 |
Type of project (e.g. poetry, yarn). This should be considered more of a "subtype" as the subclass should distinguish project language. The value of this property should reflect the project/dependency management tool used within the project. The value of this property should be calculated without initializing other pro... | def wa6H(YKHO) -> str:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bNKA(YKHO) -> os5Y:\n raise NotImplementedError",
"def bNKA(YKHO):\n return YKHO._get_text_value('PROJECT')",
"def bNKA(YKHO) -> str:\n if YKHO._project is None:\n YKHO._project = YKHO._LOCAL_PROJECT\n return YKHO._project",
"def Jagc(YKHO):\n llaM = {'general-tests-project': NOTR(Y... | [
"0.67048365",
"0.65122074",
"0.6415415",
"0.62655777",
"0.62600636",
"0.6248199",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",
"0.6215422",... | 0.78157246 | 0 |
Build response object that will be returned by this hook. | def Xeta(YKHO, EtM5: Literal['deploy', 'destroy', 'plan']) -> h8nf[KcDH]:
if EtM5 == 'deploy':
return YKHO._build_response_deploy()
if EtM5 == 'destroy':
return YKHO._build_response_destroy()
if EtM5 == 'plan':
return YKHO._build_response_plan()
raise NotImplementedError('only de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yxsy(YKHO):\n return ['xxx']",
"def Xeta(YKHO) -> dict:\n SvMC = YKHO.get_messages()\n return dict(name=YKHO.legacy_view.title.name, description=YKHO.legacy_view.title.description, protocol_required=YKHO.legacy_view.title.protocol_required, slug=YKHO.legacy_view.title.slug, messages=SvMC, conditions... | [
"0.72821784",
"0.7219417",
"0.7180586",
"0.7100488",
"0.70180196",
"0.6924225",
"0.6906175",
"0.68953735",
"0.6893984",
"0.68743867",
"0.6861112",
"0.67805415",
"0.6760203",
"0.67384225",
"0.672959",
"0.6685806",
"0.6662022",
"0.6658782",
"0.66187847",
"0.6613232",
"0.6603313... | 0.0 | -1 |
Finds the first element with value k in this linked list by a simple linear search, returning a list containing the node of this element and its' index. If the element is not within this linked list, search will return a list container the values None and '1'. | def TgwQ(YKHO, G1Hx):
WKvO = YKHO.head
d6pt = 0
while WKvO != None and WKvO.value != G1Hx:
WKvO = WKvO.next
d6pt += 1
if WKvO == None:
d6pt = -1
return [WKvO, d6pt] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ukG7(YKHO, G1Hx):\n kMLo = YKHO.head\n YRbF = 0\n while YRbF <= G1Hx - 1:\n kMLo = kMLo.next_node\n YRbF += 1\n ZWky = kMLo.data\n return ZWky",
"def rick(vC9B, G1Hx):\n CLkC = _sfu(vC9B)\n DkUh = CLkC.head\n id7O = CLkC.head\n for YRbF in range(G1Hx):\n DkUh =... | [
"0.78907377",
"0.73498416",
"0.7305962",
"0.7240118",
"0.6882047",
"0.68702185",
"0.6832542",
"0.67539537",
"0.6697504",
"0.66682756",
"0.6633305",
"0.663127",
"0.6623324",
"0.6616583",
"0.6602019",
"0.6600609",
"0.6596828",
"0.6594533",
"0.65900296",
"0.6573915",
"0.65681165... | 0.842606 | 0 |
Remove the last element in the linked list and return it. | def FAai(YKHO):
if YKHO.head == None:
return None
J3uN = YKHO.head
sAcg = YKHO.head
while J3uN.next != None:
J3uN = J3uN.next
if J3uN.next != None:
sAcg = sAcg.next
sAcg.next = None
return J3uN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qeks(YKHO):\n if YKHO.size == 0:\n return None\n XVAW = YKHO.last.val\n if YKHO.size == 1:\n YKHO.head = None\n YKHO.last = None\n else:\n YKHO.last = YKHO.last.prev_link\n YKHO.last.next_link = None\n YKHO.size -= 1\n return XVAW",
"def BIls(YKHO):\n i... | [
"0.8958867",
"0.82638496",
"0.80977094",
"0.79730296",
"0.7957036",
"0.79455006",
"0.79337466",
"0.7925117",
"0.7911447",
"0.77812546",
"0.77741385",
"0.7746457",
"0.7736083",
"0.76964074",
"0.76841825",
"0.76776594",
"0.76576066",
"0.7653906",
"0.7638033",
"0.76289684",
"0.7... | 0.76808107 | 15 |
Resamples each element of a matrix from a Poisson distribution with the mean set by that element. Y_{i,j} = Poisson(X_{i,j} | def gL18(YKHO):
YKHO.X_per = YKHO.np.random.poisson(YKHO.X).astype(YKHO.X.dtype) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VsGh(YKHO, qw7D, mwlV):\n K6rx = YKHO.weightedSample([(YRbF, XP5J) for YRbF, XP5J in enumerate(mwlV)], len(mwlV))\n RVVh = lambda WKvO: YKHO.std * (oyIN.random.random() - 0.5) + WKvO\n yvT9 = []\n for Xf84 in qw7D[[YRbF for YRbF in K6rx], :]:\n yvT9.append([RVVh(Xf84[0]), RVVh(Xf84[1])])\n ... | [
"0.59644026",
"0.59355056",
"0.5832033",
"0.58199555",
"0.5776801",
"0.5735339",
"0.5728578",
"0.57068616",
"0.570681",
"0.570681",
"0.570681",
"0.56948256",
"0.5683362",
"0.568165",
"0.56715876",
"0.563775",
"0.56249934",
"0.55981505",
"0.5590387",
"0.558058",
"0.5539081",
... | 0.59981346 | 0 |