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 |
|---|---|---|---|---|---|---|
Constructor of SetPieceStatistics class. | def FIMM(YKHO, eIGz, SIn2, Jpbe):
super(GvVP, YKHO).__init__()
dh16 = 'setpieces'
YKHO.corners = VUlt(eIGz, dh16, 'corners', SIn2, Jpbe)
YKHO.freekicks = VUlt(eIGz, dh16, 'freekicks', SIn2, Jpbe)
YKHO.throwins = VUlt(eIGz, dh16, 'throwins', SIn2, Jpbe) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.INFTY = HwRy.maxsize - 1\n YKHO.WINNING_VALUE = HwRy.maxsize - 100\n YKHO.pieces = {H66R.PAWN: 1, H66R.KNIGHT: 3, H66R.BISHOP: 3, H66R.ROOK: 5, H66R.QUEEN: 9, H66R.KING: 0}",
"def jggO(YKHO):\n\n def aEgW(ByNG, ipP0):\n cqUI = {}\n cqUI[0, 0] = Zoh6.Piece(Zoh6.Typ... | [
"0.65109766",
"0.59889144",
"0.597891",
"0.5946119",
"0.5830136",
"0.58036494",
"0.5778028",
"0.5761215",
"0.5675418",
"0.5661816",
"0.5645989",
"0.5641187",
"0.56361806",
"0.56280756",
"0.558624",
"0.5557486",
"0.5549015",
"0.55457956",
"0.5532792",
"0.5512245",
"0.55014104"... | 0.72328347 | 0 |
Transformation from physical to standard normal space | def VY59(YKHO, WKvO):
raise NotImplementedError('Need to implement u_to_x() for distribution type = {}'.format(YKHO.type)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XEtp(YKHO):\n return C9I5(YKHO._a, YKHO._b, YKHO._c).to_versor()",
"def QZoP(YKHO):\n if not YKHO.is_parallel(kY70(0, 0, 1)):\n epBp = YKHO.point.dot(YKHO.normal) / kY70(0, 0, 1).dot(YKHO.normal)\n YKHO.point = kY70(0, 0, epBp)\n elif not YKHO.is_parallel(kY70(0, 1, 0)):\n LVAh ... | [
"0.70822525",
"0.70512575",
"0.69204307",
"0.68732226",
"0.68154377",
"0.677511",
"0.67404616",
"0.6726499",
"0.6703583",
"0.66366935",
"0.6632097",
"0.65933913",
"0.65886587",
"0.65871197",
"0.6567823",
"0.6558953",
"0.65351474",
"0.6525597",
"0.6519094",
"0.64815557",
"0.64... | 0.0 | -1 |
Renders the home page. | def kZiy(QePW):
assert isinstance(QePW, eu5F)
if QePW.method == 'POST':
print(QePW.POST)
QBb0 = []
QBb0.append(QePW.POST['ageCategory'])
QBb0.append(QePW.POST['relation'])
print('Parametre' + str(QBb0))
if 'isGood' in QePW.POST:
odKW(QePW.POST['primary... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('pages/home.html')",
"def kZiy():\n leAC =... | [
"0.86085397",
"0.85661966",
"0.8562984",
"0.84564984",
"0.8353822",
"0.8353445",
"0.832796",
"0.83265287",
"0.83265287",
"0.8311966",
"0.83088946",
"0.83046836",
"0.8296962",
"0.82942903",
"0.82942903",
"0.82872546",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279... | 0.0 | -1 |
Renders the contact page. | def Mxk0(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/contact.html', {'title': 'Contact', 'message': 'Your contact page.', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.7544711 | 64 |
Show average sentiment percentage. | def Qqds():
nq2g = cuiw['twitter_handle']
AmnI = j4ah()
Kb4c = maj8(nq2g)
T235 = o1Wb(Kb4c, AmnI)
FGW3 = QfFw(T235)
VpzU = FGW3 * 100
DIKM = {}
DIKM['average'] = VpzU
return pz3A(DIKM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RfcT(Mau6):\n return (Mau6['afinn_sentiment'] + Mau6['vader_sentiment']['compound']) / 2.0",
"def RfcT(YKHO):\n if len(YKHO.__comments) == 0:\n return 0\n return sum((Z9rn.sentiment for Z9rn in YKHO.__comments)) / len(YKHO.__comments)",
"def td58(Mau6):\n l5Ny = VMDN(Mau6)\n V22M = Jg... | [
"0.81462395",
"0.75338286",
"0.6696436",
"0.66181445",
"0.66099584",
"0.6606759",
"0.6598409",
"0.6573099",
"0.6566868",
"0.65614104",
"0.65547556",
"0.65481335",
"0.6540875",
"0.6501358",
"0.6466755",
"0.646511",
"0.6463515",
"0.6440176",
"0.6411287",
"0.64086246",
"0.640027... | 0.7999534 | 1 |
The reward for the given eigenvector/SR(self.rewVec) | def vOGg(YKHO, j93S, Nqp_):
J1b4 = YKHO.rewVec[j93S]
CYjz = YKHO.rewVec[Nqp_]
return CYjz - J1b4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hHjb(YKHO):\n QTBn = YKHO._getDroneStateVector(0)\n return -1 * oyIN.linalg.norm(oyIN.array([0, 0, 1]) - QTBn[0:3]) ** 2",
"def vOGg(YKHO):\n YKHO.r = YKHO.calc_reward()",
"def BiIn(YKHO):\n raise NotImplementedError",
"def vOGg(YKHO):\n pass",
"def vOGg(YKHO):\n if YKHO.score_type ==... | [
"0.67627597",
"0.6603476",
"0.64241004",
"0.6420951",
"0.6352308",
"0.6315966",
"0.63030666",
"0.6300603",
"0.62745523",
"0.6246499",
"0.623227",
"0.6219212",
"0.6209816",
"0.6206192",
"0.61886525",
"0.6178597",
"0.61757004",
"0.6169269",
"0.6158887",
"0.6156174",
"0.6156174"... | 0.66197896 | 1 |
calculate the perplexity score for a single string | def yiGU(YKHO, e94R):
JxU2 = 0.0
if len(e94R) > 4:
exwG = 4
else:
exwG = len(e94R)
G1Hx = 0
for pG0V in Dhdw.ngrams(e94R, exwG):
G1Hx += 1
if exwG == 4:
gmTb = pG0V[:3]
nXnc = pG0V[1:3]
U5h4 = pG0V[2:3][0]
elif exwG == 3:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y189(vIwR, kADq, RKD7=True, ED_H=list(vIwR.ascii_lowercase[:26] + '_')):\n Gb8g = {hcXw: mLGw for mLGw, hcXw in enumerate(ED_H)}\n VE0C = 0\n for YRbF in range(len(vIwR) - 2):\n VE0C += oyIN.log2(kADq[Gb8g[vIwR[YRbF - 2]], Gb8g[vIwR[YRbF - 1]], Gb8g[vIwR[YRbF]]])\n VE0C *= -(1 / len(vIwR))\n... | [
"0.7457015",
"0.7326242",
"0.727458",
"0.71949786",
"0.71693194",
"0.71691966",
"0.7102553",
"0.707796",
"0.69427615",
"0.6887216",
"0.6861716",
"0.6845035",
"0.6757685",
"0.67293274",
"0.66927624",
"0.66269356",
"0.65666425",
"0.6563029",
"0.65532076",
"0.65502256",
"0.65495... | 0.7758622 | 0 |
calculate perplexity_score for a corpus | def g5eu(YKHO, aWDa):
p1kx = 0
exwG = 0
for q53Q in aWDa:
exwG += 1
p1kx += YKHO._score(q53Q)
return p1kx / exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y189(YKHO, rrSk):\n wjRY = 0\n exwG = 0\n for Npgh in rrSk:\n exwG += len(Npgh)\n wjRY += YKHO.sentence_logprob(Npgh)\n return 2 ** (-wjRY / exwG)",
"def Y189(YKHO, rrSk):\n k5fm = 0\n iYe1 = 0\n for yAmx in rrSk:\n k5fm += YKHO.sentence_logprob(yAmx)\n iYe1 +... | [
"0.82127887",
"0.80299425",
"0.78928024",
"0.7812067",
"0.77585137",
"0.748144",
"0.7359016",
"0.73416805",
"0.7320384",
"0.7303061",
"0.72650707",
"0.71312225",
"0.7125957",
"0.70074",
"0.6937318",
"0.6890665",
"0.6798984",
"0.67818415",
"0.678102",
"0.67039955",
"0.6685227"... | 0.68714565 | 16 |
Compute eigenvalues of the WilsonCowan Jacobian matrix at fixed point. | def tZCG(ytgA, vHZI, udb4, nU8H, DYbC, U5Fj, Dt0V, vYqM, Dmdx, wEvU, zp6j, DnuN, Lpqz, **nu89):
O2SR, RvXh = ytgA
Oa10 = oyIN.zeros((2, 2))
Oa10[0, 0] = (-1 + DYbC * oA_2(DYbC * O2SR - U5Fj * RvXh + Dt0V, udb4, nU8H)) / vHZI
Oa10[0, 1] = -U5Fj * oA_2(DYbC * O2SR - U5Fj * RvXh + Dt0V, udb4, nU8H) / vHZI
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BXi5(YKHO):\n jzdc, Fg_i, Z9rn, Csk6 = YKHO.flat()\n p06G = Csk6 ** 2 - 2 * jzdc * Csk6 + jzdc ** 2 + 4 * Z9rn * Fg_i\n p06G = PZyS(p06G) if p06G >= 0 else PZyS(-p06G) * 1j\n return ((Csk6 + jzdc + p06G) / 2, (Csk6 + jzdc - p06G) / 2)",
"def nJt3(vb7U):\n yzQ0, Ty9i = U7YL.linalg.eigh(vb7U)\n ... | [
"0.6392681",
"0.63643",
"0.6308964",
"0.6280327",
"0.6181336",
"0.6123509",
"0.61221033",
"0.60556203",
"0.60431486",
"0.60390764",
"0.59994245",
"0.5990293",
"0.5958753",
"0.595483",
"0.5952011",
"0.593412",
"0.5931946",
"0.58711636",
"0.58687025",
"0.58594215",
"0.585939",
... | 0.62947595 | 3 |
Compute if two polylines intersect. | def BPRc(hRYE, WjCt):
for YRbF, H5vU in enumerate(hRYE[:-1]):
Cgsb = hRYE[YRbF + 1]
for r845, RSmd in enumerate(WjCt[:-1]):
kxmr = WjCt[r845 + 1]
if XMlP(H5vU, Cgsb, RSmd, kxmr):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R70u(jtyf, V70B):\n (o4D3, si3g), (ajwV, skBL) = jtyf\n (rNcn, Sb1k), (SzKB, INzm) = V70B\n OCOs = (INzm - Sb1k) * (ajwV - o4D3) - (SzKB - rNcn) * (skBL - si3g)\n if OCOs == 0:\n return False\n s6Cf = ((SzKB - rNcn) * (si3g - Sb1k) - (INzm - Sb1k) * (o4D3 - rNcn)) / float(OCOs)\n oVTz ... | [
"0.78445524",
"0.7755052",
"0.7688573",
"0.76456165",
"0.7452273",
"0.73571646",
"0.72319907",
"0.7216113",
"0.72066194",
"0.72032595",
"0.7196034",
"0.7189821",
"0.7147312",
"0.7129861",
"0.71238583",
"0.7111892",
"0.70880675",
"0.7050535",
"0.7050305",
"0.6972078",
"0.69511... | 0.78937733 | 0 |
Tests basic LabelEncoder functionality. | def CzCQ():
gcV7 = ['red', 'green', 'blue', 'red']
SeuX = ['warm', 'cold', 'cold', 'hot']
Z7pR = [1, 2, 3, 4]
dU9Y = rLdf.DataFrame.from_dict({'A': gcV7, 'B': SeuX, 'C': Z7pR})
oxOY = spHt.data.from_pandas(dU9Y)
MnDN = nu0g('A')
with trZe.raises(KxyK):
MnDN.transform(oxOY)
MnDN.f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fg0d(input):\n assert LrqR()(input) == input\n assert LrqR().encodes(input) == input",
"def QTGk(YKHO):\n pass",
"def iLlH():\n return nu0g()",
"def pBgt(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.label_encoder = nu0g()",
"def FIMM(YKHO):\n YKHO.label_encoder = nu0g()",
"def YP6S(... | [
"0.7291637",
"0.7278377",
"0.7201284",
"0.6861101",
"0.6855751",
"0.6855751",
"0.6809114",
"0.6664472",
"0.6642761",
"0.6506272",
"0.64971554",
"0.64667165",
"0.6358369",
"0.6357481",
"0.63264704",
"0.6315204",
"0.6309247",
"0.6293936",
"0.62601036",
"0.62367827",
"0.6235563"... | 0.6247768 | 19 |
Extract all unique tokens from a lexicon and return it as list. The lexicon is expected to have the format returned by the `prepare_lexicons` function. | def R5hL(_LDn: dict) -> list:
b1nX = []
for LnKY, c25p in _LDn.items():
for V22M in c25p.values():
b1nX.extend(V22M[0][-1])
return list(set(b1nX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(YKHO, input):\n r8hN = YKHO.RE_LINE.search(input)\n if not r8hN:\n return []\n kGys = r8hN.group(5)\n s2mk = []\n for LihS in YKHO.analyzer(kGys):\n if hasattr(LihS, 'pos'):\n s2mk.append((LihS.text, LihS.pos))\n else:\n s2mk.append((LihS.text, Non... | [
"0.6471145",
"0.62520754",
"0.6167319",
"0.6167319",
"0.6069703",
"0.6013507",
"0.59839296",
"0.59582645",
"0.5922141",
"0.5915078",
"0.5883004",
"0.58502096",
"0.58469594",
"0.58166957",
"0.5795086",
"0.5782212",
"0.577463",
"0.5752162",
"0.5751491",
"0.57343936",
"0.5697648... | 0.85247445 | 0 |
Combine and prepare a two lists of tokens for the metric evaluation. Return a list of shuffled runs for a lexicon that is created by combining all given ones. This method ensures that each partial lexicon (parts of the full lexicons at different runs) will contain roughly the same number of tokens from each of the lexi... | def zncV(Nhig: list, ZwQ8: list, n1DL: int, Rf07: int, cKm3: bool, x2ub: bool=False) -> list:
CH1l = [[a1PO.lower() for a1PO in _gRY] for _gRY in [Nhig, ZwQ8]] if cKm3 else [Nhig, ZwQ8]
tG7g = min([len(hUZ1) for hUZ1 in CH1l])
Dtw9 = puC0(CH1l, Rf07, x2ub)
cxJ0 = []
for iXC1 in range(0, n1DL):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v2B3(Nhig: list, ZwQ8: list, n1DL: int, Rf07: int, cKm3: bool, x2ub: bool=False) -> list:\n CH1l = [[a1PO.lower() for a1PO in _gRY] for _gRY in [Nhig, ZwQ8]] if cKm3 else [Nhig, ZwQ8]\n Dtw9 = A6cH(CH1l, Rf07, x2ub)\n NCLx = []\n for _LDn in CH1l:\n cxJ0 = []\n for iXC1 in range(0, n1... | [
"0.7225673",
"0.6049088",
"0.59549415",
"0.5932834",
"0.59162337",
"0.58417755",
"0.58392096",
"0.58010644",
"0.56840074",
"0.56086814",
"0.5605535",
"0.55867547",
"0.5558631",
"0.55037093",
"0.54443294",
"0.5442206",
"0.54266846",
"0.5422242",
"0.54108334",
"0.5375614",
"0.5... | 0.77052855 | 0 |
Generate a list of datetime objects | def wD__(u54L, VUyo=4):
Os4s = qcWV.now()
yKcO = qcWV.now() - fCoM(days=365 * tuKI.randint(1, VUyo))
hE6x = []
for YRbF in range(0, u54L):
hE6x.append(ksIQ(yKcO, Os4s))
hE6x.sort()
return hE6x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GYyL(YKHO):\n return tuple((BWXx.datetime for BWXx in YKHO))",
"def LStM(YKHO) -> x1iM[h8nf[qcWV.datetime]]:\n raise NotImplementedError",
"def GVGM(YKHO):\n return YKHO.dates",
"def GMU1(yKcO, Os4s, oXOd=15 * 60):\n _XdW = [yKcO]\n yKcO = CHC7.datetime.strptime(yKcO, '%Y-%m-%d %H:%M:%S')\... | [
"0.7598207",
"0.74233925",
"0.74000746",
"0.6941488",
"0.68575656",
"0.6849337",
"0.6829689",
"0.67264557",
"0.6616234",
"0.6544265",
"0.65390694",
"0.65052634",
"0.6500209",
"0.64893687",
"0.6489092",
"0.6488887",
"0.6470365",
"0.64690083",
"0.6427537",
"0.639223",
"0.636340... | 0.72079843 | 3 |
distance between p1 and p2 | def Ayfi(EBgd, HpuQ):
return HEbx(*iArr(EBgd, HpuQ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(EBgd, HpuQ):\n o4D3, si3g, ajwV, skBL = (EBgd.x, EBgd.y, HpuQ.x, HpuQ.y)\n return epAf.sqrt((o4D3 - ajwV) ** 2 + (si3g - skBL) ** 2)",
"def Ayfi(EBgd, HpuQ):\n return ((HpuQ[1] - EBgd[1]) ** 2 + (HpuQ[0] - EBgd[0]) ** 2) ** 0.5",
"def Ayfi(YKHO, EBgd, HpuQ):\n return epAf.sqrt((EBgd[0] - H... | [
"0.8978287",
"0.8915648",
"0.8908347",
"0.8904682",
"0.8849202",
"0.88401514",
"0.88318336",
"0.8775386",
"0.8773961",
"0.87517154",
"0.8730626",
"0.86950696",
"0.8674276",
"0.8666912",
"0.86664474",
"0.8664898",
"0.86647314",
"0.8663196",
"0.86530006",
"0.86299187",
"0.86297... | 0.82174397 | 56 |
Returns Tensor with code sequences from the batch for encoding. | def SQq7(CtWL, Wc9F, lDLs, jaHd=False):
cwhV = GlHW(Wc9F)
return C4bz(cwhV, CtWL.stoi, lDLs, jaHd) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lf_b(CtWL, Wc9F, lDLs, jaHd=False):\n cwhV = GlHW(Wc9F)\n return e6Cv(cwhV, CtWL.stoi, lDLs, jaHd)",
"def tZ2K(YKHO, j9VG):\n return YKHO._sess.run(YKHO._encoding_layer, feed_dict={YKHO._x: j9VG})",
"def tkn3(Ep8u, xYRf, xlLU):\n vgXP = yOcR.random.uniform(xlLU, (Ep8u, 1))\n cwhV = oLG2.tile... | [
"0.72771376",
"0.66538864",
"0.6213366",
"0.6207881",
"0.6082408",
"0.6067139",
"0.6059701",
"0.60459274",
"0.6042627",
"0.598603",
"0.5980513",
"0.5979153",
"0.5931237",
"0.59194154",
"0.5918144",
"0.5909987",
"0.5900793",
"0.5858902",
"0.5858889",
"0.5835588",
"0.5826049",
... | 0.7049273 | 1 |
Close the object upon exiting the context manager. | async def __aexit__(YKHO, wfRC: Optional[Type[BaseException]]=None, P1dF: Optional[BaseException]=None, wVCK: Optional[TracebackType]=None) -> bool:
await YKHO.close()
return not P1dF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO.__exit__(None, None, None)",
"def DDI8(YKHO):\n YKHO.__exit__(None, None, None)",
"def U4F2(YKHO, *qIxc: Any) -> None:\n YKHO.close()",
"def U4F2(YKHO, *M56f) -> None:\n YKHO.close()",
"def U4F2(YKHO, *qIxc):\n YKHO.close()",
"def U4F2(YKHO, *qIxc):\n YKHO.close()... | [
"0.80803496",
"0.80140465",
"0.79945356",
"0.7983918",
"0.7980026",
"0.7980026",
"0.7980026",
"0.7980026",
"0.79557824",
"0.7893205",
"0.7883194",
"0.7883194",
"0.7880387",
"0.7880387",
"0.7880387",
"0.7880387",
"0.7880387",
"0.7880387",
"0.78615135",
"0.78615135",
"0.7861513... | 0.0 | -1 |
Return available BLAS/LAPACK functions. Used also in lapack.py. See get_blas_funcs for docstring. | def R5TT(ZWCE, Sk_F, yDqo, sovd, iCwv, FZbH, XweC, ANh1, vbQv):
aese = []
MZ6z = False
yDqo = VEDo.dtype(yDqo)
sDXy = (FZbH, ANh1)
rtLr = (iCwv, XweC)
if isinstance(ZWCE, str):
ZWCE = (ZWCE,)
MZ6z = True
y0cW, yDqo, xeai = fNTK(Sk_F, yDqo)
if xeai:
sDXy, rtLr = (r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sj8W(ZWCE, Sk_F=(), yDqo=None):\n return R5TT(ZWCE, Sk_F, yDqo, 'BLAS', cqrT, Pv6X, 'fblas', 'cblas', v2PI)",
"def SKJH():\n B0I5 = ('blas_mkl', 'blas', 'openblas', 'blas_opt', 'lapack_mkl', 'openblas_lapack', 'lapack_opt')\n for _e0h in B0I5:\n QxtC = oyIN.__config__.get_info(_e0h)\n ... | [
"0.76455337",
"0.7168907",
"0.61860764",
"0.596462",
"0.59030586",
"0.58998406",
"0.5878545",
"0.58561665",
"0.5716516",
"0.567971",
"0.5668902",
"0.56353164",
"0.5548543",
"0.5499711",
"0.5461638",
"0.5442239",
"0.54285765",
"0.5413547",
"0.541329",
"0.5392936",
"0.5377981",... | 0.5881554 | 6 |
Return the HTML for the local_node's home page. | def kZiy(YKHO, QePW):
rPXJ = YKHO.template_env.get_template('index.html')
Aofo = rPXJ.render(node_id=YKHO.local_node.network_id)
return jA2G.Response(body=Aofo.encode('utf-8'), status=200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n _R2e = BLtk.HTML\n return _R2e",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n RRlC, AQSv = EPt3()\n return TvZl('home.html', files=RRlC, dirs=AQSv)",
"def kZiy():\n re... | [
"0.7520224",
"0.73648924",
"0.7364163",
"0.73344886",
"0.7285015",
"0.7240961",
"0.72242844",
"0.7217715",
"0.71821654",
"0.71821654",
"0.7160671",
"0.7127782",
"0.7110687",
"0.7110687",
"0.70972985",
"0.7087892",
"0.7084757",
"0.7084757",
"0.7084757",
"0.7084757",
"0.7084757... | 0.7471688 | 1 |
A pseudo __init__ method for the mixin. Should be called by any child that inherits this mixin class. | def Adg1(YKHO, v2F1):
if 'name' not in v2F1:
YKHO.name = v2F1['_name']
YKHO.setObjectName(YKHO.name)
YKHO.optional = True
if 'optional' in v2F1:
YKHO.optional = v2F1['optional'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DnLW(YKHO, qIxc):\n raise NotImplementedError",
"def FIMM(YKHO):\n super(_RKx, YKHO).__init__()",
"def FIMM(YKHO, *qIxc, **B2fa):\n super().__init__(*qIxc, **{**YKHO.init_kwargs, **B2fa})",
"def uIcm(YKHO):\n raise NotImplementedError('must be defined by the derived class')",
"def E14P(YKHO... | [
"0.7857126",
"0.76897615",
"0.76890504",
"0.75691885",
"0.75577277",
"0.75577277",
"0.75577277",
"0.74511546",
"0.7437633",
"0.741973",
"0.7411803",
"0.741123",
"0.73577297",
"0.73577297",
"0.73577297",
"0.7338943",
"0.7338943",
"0.7338943",
"0.7338943",
"0.7338943",
"0.73344... | 0.0 | -1 |
If the widget has a minimum_length field, check whether the input meets this. | def YnL5(YKHO):
raise AttributeError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YnL5(YKHO) -> bool:\n if len(YKHO.get_value()) >= YKHO.minimum_length:\n return True\n return False",
"def YnL5(YKHO) -> bool:\n if len(YKHO.get_value()) >= YKHO.minimum_length:\n return True\n return False",
"def Jr5Z(YKHO):\n return YKHO.length >= fKVv",
"def GfdN(YKHO):\n ... | [
"0.8255209",
"0.8255209",
"0.77067345",
"0.7111324",
"0.68446594",
"0.68262273",
"0.6747941",
"0.6710858",
"0.6644248",
"0.6605624",
"0.6604983",
"0.6590027",
"0.656402",
"0.6526177",
"0.6523114",
"0.6410936",
"0.64086175",
"0.64085734",
"0.6397762",
"0.63895607",
"0.63674647... | 0.6095848 | 49 |
Return the index of the sample to be queried and labeled. Readonly. No modification to the internal states. Returns sampled_data and sampled_labels | def bPB3(YKHO):
print('Strategy:', YKHO._strategy)
if YKHO._strategy == 'lc':
p1kx = -oyIN.max(YKHO._posterior_probs, axis=1)
_0VL = oyIN.argsort(p1kx)[::-1]
YKHO.indices_batch = _0VL[:YKHO._budget]
elif YKHO._strategy == 'random':
YKHO.indices_batch = tuKI.sample(range(0, oy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMqv(YKHO):\n return oyIN.unique(oyIN.where(YKHO.sampled)[0])",
"def Vn7Z(PObu, YRbF):\n return DgTQ[PObu].get_sample(YRbF)",
"def OP2O(YKHO, YRbF):\n G2GJ = YKHO.table.ids()[YRbF]\n if YKHO.batch_indices is not None:\n ITSp = YKHO.batch_indices[YRbF]\n else:\n ITSp = None\n ... | [
"0.681333",
"0.6795621",
"0.6757108",
"0.67285365",
"0.67126626",
"0.66926175",
"0.66477054",
"0.66051286",
"0.65987074",
"0.6579836",
"0.6493318",
"0.63886005",
"0.6329926",
"0.62954646",
"0.6283975",
"0.6266459",
"0.6204735",
"0.6194298",
"0.61795646",
"0.61711556",
"0.6144... | 0.0 | -1 |
Load the dataloaders for training. | def pdlj(YKHO, nIKz=None):
if not nIKz:
nIKz = YKHO.trainset
AHI0 = pVAc(nIKz, batch_size=YKHO.batch_size, shuffle=True)
RkiG = pVAc(YKHO.testset, batch_size=YKHO.batch_size, shuffle=True)
ZEJE = pVAc(YKHO.valset, batch_size=YKHO.batch_size, shuffle=True)
return (AHI0, ZEJE, RkiG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKK(YKHO, Lcqa, PNsr):\n K1Op, CKaw = EpSc(Lcqa, PNsr, YKHO.updated_weights, YKHO.batch_size, YKHO.num_workers, YKHO.drop_last, YKHO.pin_memory)\n return (K1Op, CKaw)",
"def pYAW(qIxc, b0j5):\n EPL3, qBlx = uaeM(qIxc, b0j5)\n bo34.info('Build train and validation dataloaders')\n Pa1c = pVAc(E... | [
"0.74125814",
"0.7396184",
"0.7395379",
"0.734231",
"0.73117125",
"0.7286043",
"0.72658455",
"0.7225824",
"0.71783936",
"0.71613985",
"0.7134785",
"0.71180826",
"0.71144164",
"0.7100964",
"0.7083123",
"0.70792836",
"0.7077483",
"0.70711887",
"0.70643735",
"0.704809",
"0.70206... | 0.71070266 | 13 |
If there is already an accessor linking the provided email and Know Me user, a validation error should be raised. | def lAkO(WTgc, jjd7, mS8c):
a5Zp = mS8c()
D3lj = WTgc()
jjd7(email=D3lj.email, km_user=a5Zp)
with trZe.raises(sUXu):
a5Zp.share(D3lj.email) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzCw(YKHO, nPrm):\n D3lj = nPrm.get('email')\n if mv1M.objects.filter(email=D3lj).exists():\n raise IyFz.ValidationError({'invalid_email': bGrB('A user with that email already exists.')})\n return nPrm",
"def Bt7w(YKHO, D3lj):\n if D3lj.data != c5ow.email:\n D3lj = mv1M.query.filter... | [
"0.6493762",
"0.64885926",
"0.6475209",
"0.6472752",
"0.6471227",
"0.646041",
"0.6444725",
"0.64342326",
"0.63652295",
"0.6353608",
"0.63463885",
"0.63351655",
"0.6325729",
"0.6301046",
"0.6300914",
"0.62947583",
"0.62453824",
"0.6235265",
"0.6233796",
"0.62270343",
"0.622666... | 0.64289784 | 8 |
If the provided email address belongs to an existing user, an accessor should be created for that user. | def buwm(adTQ, WTgc, mS8c, k6sM):
a5Zp = mS8c()
CBIr = k6sM()
CU1e = a5Zp.share(CBIr.primary_email.email, is_admin=True)
assert a5Zp.km_user_accessors.count() == 1
assert CU1e.email == CBIr.primary_email.email
assert CU1e.is_admin
assert adTQ.call_count == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMdO(YKHO, Hxmi):\n uJjO = YKHO.find_user(Hxmi)\n if uJjO is None:\n oFUB = str(kxTZ())\n nP7s, uJjO = YKHO.db.collection('user').add({'email': Hxmi, 'user_key': oFUB})\n return (True, uJjO)\n Qc05 = YKHO.get_user_ref(Hxmi)\n if not Qc05.get().exists:\n oFUB = str(kxTZ())\n ... | [
"0.6590129",
"0.6542658",
"0.64786613",
"0.6438033",
"0.6422991",
"0.6403995",
"0.62333757",
"0.6192327",
"0.61326855",
"0.61239666",
"0.6087944",
"0.6066819",
"0.60334206",
"0.60213566",
"0.59987193",
"0.5983045",
"0.5967214",
"0.5954528",
"0.59468436",
"0.5940804",
"0.59378... | 0.0 | -1 |
If the provided email address exists but isn't verified, the accessor should not be assigned a user yet. | def iCy0(adTQ, WTgc, mS8c, k6sM):
a5Zp = mS8c()
CBIr = k6sM()
D3lj = WTgc(is_verified=False, user=CBIr)
CU1e = a5Zp.share(D3lj.email)
assert a5Zp.km_user_accessors.count() == 1
assert CU1e.email == D3lj.email
assert CU1e.user_with_access is None
assert adTQ.call_count == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wRGq(YKHO):\n CBIr = mv1M()\n YKHO.assertIsNone(CBIr.email_secure)",
"def V7zm(D3lj):\n if not TQW7.get_user(D3lj):\n raise sUXu(Eair('USER_DOES_NOT_EXIST')[0])",
"def t91y(YKHO):\n assert 'email' in YKHO.user._fields",
"def sr2p(Q6kx, xqoZ):\n QePW = sZip()\n CBIr = YMnk.find_us... | [
"0.6959333",
"0.69562054",
"0.6751526",
"0.67343944",
"0.6725618",
"0.6684375",
"0.6680528",
"0.6678835",
"0.66490394",
"0.66367507",
"0.66175747",
"0.66060174",
"0.6550602",
"0.6550602",
"0.6550602",
"0.65138483",
"0.6512899",
"0.6503616",
"0.6481896",
"0.6480226",
"0.645894... | 0.61033744 | 91 |
If a user has already been granted access through another email that they own, they should not be able to be granted access through another email address that they own. | def QDtH(WTgc, jjd7, mS8c, k6sM):
CBIr = k6sM()
TP50 = WTgc(is_verified=True, user=CBIr)
fHZS = WTgc(is_verified=True, user=CBIr)
a5Zp = mS8c()
jjd7(email=TP50, km_user=a5Zp, user_with_access=CBIr)
with trZe.raises(sUXu):
a5Zp.share(fHZS.email) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P333(YKHO):\n YKHO.assertFalse(YKHO.photo.has_read_permission(YKHO.other_user), msg=f'{YKHO.other_user} has permission for this photo by {YKHO.user}.')",
"def GNbo(YKHO):\n return YKHO._tag == 'email_reserved_for_other_user'",
"def sr2p(Q6kx, xqoZ):\n QePW = sZip()\n CBIr = YMnk.find_user(xqoZ)... | [
"0.6985128",
"0.66341805",
"0.6545746",
"0.6474065",
"0.6426378",
"0.6408533",
"0.62841094",
"0.62752986",
"0.6245729",
"0.62425214",
"0.6203038",
"0.6200469",
"0.619906",
"0.6167365",
"0.61665046",
"0.6145205",
"0.6127051",
"0.61115724",
"0.61053",
"0.6095706",
"0.60847974",... | 0.0 | -1 |
If there is no user with the provided email address, The created accessor should only be linked to an email address. | def SUAM(adTQ, mS8c):
a5Zp = mS8c()
D3lj = 'test-share@example.com'
CU1e = a5Zp.share(D3lj)
assert a5Zp.km_user_accessors.count() == 1
assert CU1e.email == D3lj
assert CU1e.user_with_access is None
assert adTQ.call_count == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dv9i(YKHO):\n with YKHO.assertRaises(ValueError):\n egNl().objects.create_user(None, 'test123')",
"def k90q(YKHO, cHyp):\n if GPtr.LDAP_AUTO_CREATE_USER:\n CBIr = mv1M.query.filter_by(username=YKHO.username).first()\n if CBIr is None:\n return lYUQ({'username': YKHO.user... | [
"0.66804314",
"0.66646004",
"0.66255003",
"0.6604458",
"0.65731096",
"0.6566709",
"0.6565888",
"0.65154785",
"0.647622",
"0.6469318",
"0.6455746",
"0.6455284",
"0.6450789",
"0.64224136",
"0.6393964",
"0.6386279",
"0.63823766",
"0.63795537",
"0.63467616",
"0.6332659",
"0.63326... | 0.0 | -1 |
Return list of all Token credentials associated with the user. | def ufWC(CBIr):
WrFl = CBIr.viptokencredential_set.all().values_list('name', 'credential_id', 'last_authn_time')
return WrFl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def umRa(YKHO):\n return YKHO._credentials",
"def ZDBD(YKHO):\n _hkX, TBsA = YKHO.get('credentials')\n TBsA = qQXR.loads(TBsA)\n return (_hkX, TBsA['credentials'])",
"def AjWR(YKHO):\n return YKHO.tokens['{}.list_tokens'.format(YKHO.opts['eauth_tokens'])](YKHO.opts)",
"def ZDBD(YKHO, NArs=None... | [
"0.73712784",
"0.730032",
"0.7152813",
"0.7087903",
"0.70476985",
"0.7039828",
"0.69828796",
"0.69500846",
"0.68145794",
"0.67708164",
"0.6721079",
"0.67073613",
"0.66805327",
"0.6680037",
"0.6658863",
"0.66475636",
"0.65675503",
"0.6567188",
"0.6562023",
"0.65134484",
"0.651... | 0.81581974 | 0 |
Return list of all Push credentials associated with the user. | def m5mg(CBIr):
D2Gy = CBIr.vippushcredential_set.all().values_list('name', 'credential_id', 'last_authn_time')
return D2Gy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def umRa(YKHO):\n return YKHO._credentials",
"def dZzk():\n return o59G('credentials')",
"def ufWC(CBIr):\n WrFl = CBIr.viptokencredential_set.all().values_list('name', 'credential_id', 'last_authn_time')\n return WrFl",
"def l8Fs(Emd4, BaHi):\n I3rs = []\n for mwuo in Emd4.credentials_list... | [
"0.70257103",
"0.67539257",
"0.67045164",
"0.666198",
"0.6652343",
"0.6511885",
"0.64243454",
"0.6394756",
"0.6394169",
"0.6332541",
"0.63304",
"0.63145584",
"0.6299737",
"0.62975216",
"0.62888914",
"0.62606883",
"0.62600005",
"0.6248585",
"0.6228149",
"0.6227046",
"0.6208207... | 0.82679456 | 0 |
For a give array of label vectors (`y`), remove the pad values. Given that for a sequence labeling the labels `y` are padded with `pad_value`, we want to remove those and keep the offset of the first "true" label in the sequence. | def CjvY(LVAh, gQVb=None, KHPh=0):
if gQVb is None:
gQVb = [oyIN.where(Ty9i > KHPh)[0][0] for Ty9i in LVAh]
WPVW = [Ty9i[vgXP:].tolist() for Ty9i, vgXP in zip(LVAh, gQVb)]
return (WPVW, gQVb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z25C(YKHO, LVAh):\n ZHfW = LVAh != YKHO.labels_map['pad']\n return ZHfW",
"def watX(JZXy: List[int], KHPh: int) -> x1iM[int]:\n return [WKvO for WKvO in JZXy if WKvO != KHPh]",
"def WEaa(LVAh, ZHfW, begE):\n LVAh = LVAh.where(ZHfW, ht2j.tensor(float('nan')).to(device=begE)).flatten().detach().c... | [
"0.65196",
"0.6494049",
"0.6344597",
"0.62407833",
"0.60773975",
"0.58334064",
"0.57524127",
"0.5657049",
"0.5641102",
"0.55709213",
"0.5555751",
"0.55290955",
"0.5527544",
"0.5526991",
"0.5521724",
"0.5509974",
"0.5507561",
"0.5507561",
"0.54646605",
"0.545784",
"0.54472274"... | 0.8262652 | 0 |
Remove `pad_value` from 2D arrays of sequence labels and flatten them to 1D. | def PWgb(Y8eF, aMgO, KHPh=0):
Y8eF, gQVb = CjvY(Y8eF, pad_value=KHPh)
aMgO, bGrB = CjvY(aMgO, gQVb, KHPh)
eeNg = [Z9rn for rdlD in Y8eF for Z9rn in rdlD]
uN02 = [Z9rn for rdlD in aMgO for Z9rn in rdlD]
return (eeNg, uN02) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vCUB(YKHO, WKvO):\n _x49 = WKvO[0].shape[1]\n hVLt = max(YKHO.lengths)\n H5Km = oyIN.zeros((len(WKvO), hVLt, _x49))\n for We7B, G1Hx in enumerate(WKvO):\n H5Km[We7B, :len(G1Hx), :] = G1Hx\n return H5Km",
"def VFgZ(Wc9F: List[Array], *, fsgT=XTiz, Br5Q: int, BWXx) -> HWEd:\n H5Km: x1i... | [
"0.60734445",
"0.6063672",
"0.6017563",
"0.58912444",
"0.58792704",
"0.5848011",
"0.57798785",
"0.5760809",
"0.574923",
"0.57477176",
"0.5728451",
"0.57159024",
"0.57037646",
"0.56990045",
"0.56478894",
"0.5643863",
"0.56398207",
"0.56210566",
"0.5613274",
"0.56032866",
"0.55... | 0.5707962 | 12 |
Converts a Tensor (based on Pillow image) to a OpenCV writable image. | def g6Sq(Ux0P, vhpA, GqLm=True):
VXjJ = vhpA.detach().permute(1, 2, 0).cpu().numpy()
if GqLm:
VXjJ = (VXjJ * 255)[:, :, ::-1]
XC5k.imwrite(Ux0P, VXjJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iB5J(a1PO):\n a1PO = a1PO.cpu()\n return oyIN.array(Kt_s.ToPILImage()(a1PO))",
"def RALQ(vhpA):\n LNo8 = vhpA.to('cpu').clone().detach()\n LNo8 = LNo8.numpy().squeeze()\n LNo8 = LNo8.transpose(1, 2, 0)\n LNo8 = LNo8 * oyIN.array((0.229, 0.224, 0.225)) + oyIN.array((0.485, 0.456, 0.406))\n ... | [
"0.7219306",
"0.69739884",
"0.69721204",
"0.68895406",
"0.68674755",
"0.6851705",
"0.6839991",
"0.67137355",
"0.6698402",
"0.66088784",
"0.653942",
"0.6483502",
"0.64648527",
"0.6443205",
"0.6370012",
"0.63688",
"0.6358727",
"0.6332052",
"0.6332052",
"0.631169",
"0.63004196",... | 0.74223024 | 0 |
Cuts first length letters from string | def cPNW(BWXx, u54L):
return BWXx[0:u54L] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G34s(vIwR, u54L):\n return vIwR[0:u54L]",
"def CHEN(l5Ny: str, bseI: str) -> str:\n pass",
"def KN3f(vIwR, u54L=10):\n return vIwR if len(vIwR) <= u54L else vIwR[:u54L]",
"def aXAT(KCHu, WKvO):\n if len(KCHu) < WKvO:\n return KCHu\n else:\n return KCHu[-WKvO:]",
"def rjpX(v... | [
"0.7316296",
"0.71101403",
"0.70689976",
"0.70405084",
"0.7002582",
"0.6868531",
"0.686245",
"0.6851021",
"0.67830515",
"0.678091",
"0.6747283",
"0.6683269",
"0.6683269",
"0.6683269",
"0.66791785",
"0.66561",
"0.66559136",
"0.6626962",
"0.66254413",
"0.66141355",
"0.6603863",... | 0.6501024 | 36 |
Returns the full path created by joining path to parent_directory. This method is a convenience function because it allows path to use forward slashes to separate path components rather than the platform's separator character. | def CaA9(YKHO, I6WP, pmON):
if I6WP is None and Hy7s.path.sep == '/':
return pmON
if I6WP is None:
Aofo = ''
elif pmON.startswith('/'):
Aofo = ''
else:
Aofo = I6WP
for D2yC in pmON.split('/'):
if len(D2yC) > 0:
Aofo = Hy7s.path.join(Aofo, D2yC)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CaA9(I6WP, pmON):\n if I6WP is None and Hy7s.path.sep == '/':\n return pmON\n if I6WP is None:\n Aofo = ''\n elif pmON.startswith('/'):\n Aofo = ''\n else:\n Aofo = I6WP\n for D2yC in pmON.split('/'):\n if len(D2yC) > 0:\n Aofo = Hy7s.path.join(Aofo,... | [
"0.7660776",
"0.7291723",
"0.71339285",
"0.71024275",
"0.6975929",
"0.69022185",
"0.6843092",
"0.6785431",
"0.67347425",
"0.66041744",
"0.6603264",
"0.65230525",
"0.6506886",
"0.6437043",
"0.6422001",
"0.6420454",
"0.6402201",
"0.63975066",
"0.6396527",
"0.63803893",
"0.63737... | 0.80376244 | 0 |
Converts the forward slashes in path to the platform's separator and returns the value. | def qKv3(YKHO, pmON):
return YKHO.make_path(None, pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8rx():\n return str(PKXz(Hy7s.sep).as_posix())",
"def jZ87(pmON):\n return pmON.replace(Hy7s.sep, Qumu.sep)",
"def qKv3(YKHO, pmON):\n return Hy7s.sep.join(pmON.split('/'))",
"def Cq6p(wEf2: str) -> str:\n return wEf2.replace(Hy7s.altsep or '\\\\', Hy7s.sep)",
"def g8rx():\n return GkAb... | [
"0.77532583",
"0.7666667",
"0.7622634",
"0.7432477",
"0.7358557",
"0.7334405",
"0.7255423",
"0.7125223",
"0.71063286",
"0.70628345",
"0.7049795",
"0.7047545",
"0.70281285",
"0.6922774",
"0.68986005",
"0.68807423",
"0.68741566",
"0.68690175",
"0.68398255",
"0.6780051",
"0.6761... | 0.0 | -1 |
Returns ``True`` if this Deadline does not contain any deliveries. | def FBfn(YKHO):
return YKHO.query_successful_deliveries().count() == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.deliveries.count() == 0",
"def FBfn(YKHO):\n from .delivery import Delivery\n return Delivery.objects.filter(deadline__assignment_group__parentnode=YKHO).count() == 0",
"def ee8c(YKHO):\n return len(YKHO.alives) == 0",
"def g22G(YKHO):\n for YWSi in YKHO.agents:\n... | [
"0.80801594",
"0.7683895",
"0.6869733",
"0.6585589",
"0.6505171",
"0.64789903",
"0.6431802",
"0.6421909",
"0.6397774",
"0.632929",
"0.6322938",
"0.6322938",
"0.6316159",
"0.63025564",
"0.62939525",
"0.62890226",
"0.62780446",
"0.62640685",
"0.6254774",
"0.62413144",
"0.622751... | 0.77710986 | 1 |
Given a label integer value, work out the corresponding labels that were activated by the user. The current behaviour for a `label_value` of either 0 or 1 is to return and empty tuple. Filters are created with values of 0 (no label exists for an empty/undefined segmentation) and a value of 1 corresponds to the definiti... | def gG0D(YKHO, sFFp: int, f9yx: bool=True) -> AzJI[str, ...]:
if f9yx and sFFp == 1:
raise ValueError('A label_value of 1 was encountered, likely meaning the definition of a segmented region without an activate label. ')
if sFFp in [0, 1]:
return tuple()
rPed = [YRbF for YRbF in V4pP.values(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K33W(YKHO, Crrw, BWXx):\n return [YRbF for YRbF, WKvO in enumerate(Crrw) if WKvO == BWXx]",
"def hTK4(kqdp: str, sFFp: str) -> str:\n return 'labels.\"{}\" = \"{}\"'.format(kqdp, sFFp)",
"def rqvZ(UXqs):\n if UXqs == 'O':\n return 0\n elif UXqs == 'I-positive':\n return 1\n eli... | [
"0.5750381",
"0.56185675",
"0.56037015",
"0.541865",
"0.5381226",
"0.53658193",
"0.53116214",
"0.5215977",
"0.51914656",
"0.51805234",
"0.51764125",
"0.51485723",
"0.5136351",
"0.5136307",
"0.51342416",
"0.51092654",
"0.51037806",
"0.50964564",
"0.5071798",
"0.5065315",
"0.50... | 0.5926026 | 0 |
Returns a list of the unique labels in the results set | def OrFa(YKHO, tmDr: bool=True) -> x1iM[ImMB]:
DumB: x1iM[ImMB] = []
for ICn2 in YKHO.results.values():
Crrw = ICn2.labels
if tmDr:
mad4 = [vC9B[0] for vC9B in Crrw]
DumB.extend(mad4)
else:
DumB.extend(Crrw)
return list(set(DumB)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Te1x(YKHO):\n return []",
"def Te1x(YKHO):\n return []",
"def Te1x(YKHO) -> list:\n return []",
"def lz2s(nPrm):\n return oyIN.unique(nPrm[nPrm != 0])",
"def Crrw(YKHO):\n return YKHO._permutations.keys()",
"def lzdn(Ojoz: List[JobReport]) -> fHNa[str]:\n xbui = set()\n for LSnS ... | [
"0.717954",
"0.717954",
"0.71254474",
"0.70465136",
"0.7033223",
"0.70272046",
"0.68562573",
"0.68233943",
"0.6817707",
"0.6799115",
"0.67865914",
"0.672777",
"0.6715938",
"0.67054665",
"0.67054665",
"0.67050934",
"0.6680684",
"0.6668839",
"0.6661701",
"0.66421163",
"0.662744... | 0.7830645 | 0 |
Create an instance of ApiAttribute. | def FIMM(YKHO, mWFP):
YKHO.name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, nNXP: OpVersion) -> None:\n YKHO.api = nNXP",
"def FIMM(YKHO) -> None:\n YKHO.api = fyIx()",
"def Non4(YKHO, nNXP):\n pass",
"def FIMM(YKHO, nNXP):\n YKHO.api = nNXP",
"def eLpg(GPtr, nNXP):\n return RMSS.get(nNXP)(GPtr)",
"def FIMM(YKHO, nNXP: APIConfig=None, Wc9F: BatchCon... | [
"0.6745997",
"0.66749334",
"0.6648215",
"0.63513887",
"0.6252933",
"0.6206615",
"0.61991686",
"0.61991686",
"0.61991686",
"0.6189042",
"0.61645246",
"0.61319315",
"0.61319315",
"0.61074126",
"0.61074126",
"0.6098012",
"0.6098012",
"0.6098012",
"0.6098012",
"0.60944855",
"0.60... | 0.0 | -1 |
Create an instance of ApiResource. | def FIMM(YKHO, *qIxc, **B2fa):
super().__init__()
YKHO.update(*qIxc, **B2fa)
YKHO.metadata = dict(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n4E9(P4t4):\n import resources\n nNXP = fyIx(P4t4)\n nNXP.add_resource(resources.LoginResource, '/api/login')\n nNXP.add_resource(resources.UserResource, '/api/me')\n nNXP.add_resource(resources.ProjectResource, '/api/projects')\n nNXP.add_resource(resources.AccountMembersResource, '/api/acco... | [
"0.71283364",
"0.71237546",
"0.704428",
"0.6994374",
"0.6883522",
"0.68351823",
"0.6770347",
"0.6726843",
"0.6699604",
"0.6675777",
"0.6652723",
"0.6568029",
"0.65518653",
"0.6546984",
"0.65438783",
"0.65438783",
"0.6485905",
"0.64801633",
"0.64801633",
"0.64801633",
"0.64801... | 0.0 | -1 |
Get list of API resources. If 'maxResults' is not specified, it will automatically iterate through every resources available. Otherwise, it will make API call once and update 'pageToken'. | def aELs(YKHO):
if YKHO.get('maxResults') is None:
YKHO['maxResults'] = 1000
Aofo = []
for WKvO in YKHO:
Aofo.extend(WKvO)
del YKHO['maxResults']
return Aofo
else:
return next(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D8Ca(YKHO, **B2fa):\n B2fa = YKHO._verify_sort_options(B2fa)\n B2fa = YKHO._verify_filters(B2fa, t10t)\n nNXP = YKHO._get_api(ENHu.DeveloperApi)\n return yXUO(nNXP.get_all_api_keys, lwrap_type=t10t, **B2fa)",
"def all(YKHO, qoqK=None):\n if qoqK is not None:\n if not isinstance(qoqK, in... | [
"0.6896668",
"0.67922527",
"0.67079777",
"0.660156",
"0.6593173",
"0.65157187",
"0.6491606",
"0.6479306",
"0.6475989",
"0.64588434",
"0.6445118",
"0.6436439",
"0.6296675",
"0.6287996",
"0.628081",
"0.62732255",
"0.62731993",
"0.6268469",
"0.6265526",
"0.6240072",
"0.61981666"... | 0.6291114 | 13 |
Constructor INPUTS INT type='FATAL' value of attribute of same name OUTPUTS none | def FIMM(YKHO, type='FATAL'):
YKHO.__dict__['type'] = type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, type: str, Wxnj: Optional[str]=None, Ol8d: Optional[str]=None):\n qe4Y.set(Ro_8, 'type', 'basicError')\n if Wxnj is not None:\n qe4Y.set(Ro_8, 'code', Wxnj)\n if Ol8d is not None:\n qe4Y.set(Ro_8, 'message', Ol8d)",
"def FIMM(YKHO, BWXx=''):\n YKHO.errno = 3\n YKHO.... | [
"0.66823184",
"0.63862073",
"0.6325857",
"0.6254825",
"0.60986865",
"0.6062573",
"0.6057394",
"0.60291725",
"0.59319174",
"0.59019077",
"0.58791417",
"0.5869825",
"0.58610576",
"0.58447266",
"0.5789226",
"0.5788877",
"0.5779405",
"0.5758751",
"0.5748917",
"0.5747526",
"0.5710... | 0.8127713 | 0 |
Register a function as rewriter for a given type. The function should receive three arguments, which are | def cUP6(YKHO, seET: Union[Type[AddColumnOp], Type[MigrateOperation], Type[AlterColumnOp], Type[CreateTableOp], Type[ModifyTableOps]]) -> YrBT:
return YKHO.dispatch.dispatch_for(seET) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZLrw(*hMgf):\n\n def sUDN(JfyU):\n qAYJ = C1yC(V9l1, JfyU, len(hMgf))\n qAYJ.register_rule(JfyU, *hMgf)\n return qAYJ\n return sUDN",
"def dcpc(Emd4, sB1G: str, JfyU: Callable):\n assert callable(JfyU), 'You can only register a callable to a Transform. Got {} instead.'.format(Jf... | [
"0.6577989",
"0.6340171",
"0.6313275",
"0.6114485",
"0.6114485",
"0.6114485",
"0.60884506",
"0.6056958",
"0.60204494",
"0.5945595",
"0.59101063",
"0.5900243",
"0.58336294",
"0.58250254",
"0.58213425",
"0.58197904",
"0.57016754",
"0.5668089",
"0.5664658",
"0.56193644",
"0.5617... | 0.0 | -1 |
Finalize all values that are the only choice for a unit. Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box. | def rIvV(hkxX):
for FlUN in Pmfl(hkxX):
mrPm = hkxX[FlUN]
EmMj = False
for PXGI in iBIi.unit_peers(FlUN):
acxe = ''.join([hkxX[jYLz] for jYLz in PXGI])
for Acvy in mrPm:
if Acvy not in acxe:
bo34.debug('Peer choices: {} ({})'.format... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def alHn(hkxX):\n for PXGI in dzni:\n jGiX = dict()\n for FlUN in PXGI:\n if hkxX[FlUN] in jGiX.keys():\n jGiX[hkxX[FlUN]].append(FlUN)\n else:\n jGiX[hkxX[FlUN]] = [FlUN]\n for LTzJ in jGiX.keys():\n qWPs = len(LTzJ)\n ... | [
"0.6293059",
"0.6073741",
"0.6001461",
"0.59544355",
"0.5921979",
"0.58897376",
"0.588845",
"0.58695984",
"0.58330804",
"0.57665795",
"0.57392114",
"0.5709586",
"0.5691155",
"0.5651494",
"0.5624885",
"0.5605265",
"0.5590705",
"0.5589647",
"0.55856127",
"0.5584015",
"0.5582153... | 0.51848435 | 82 |
Iterate eliminate() and only_choice(). If at some point, there is a box with no available values, return False. If the Sudoku is solved, return the sudoku. If after an iteration of both functions, the sudoku remains the same, return the sudoku. | def yimF(hkxX):
SGTU = False
Oi54 = qAH2(hkxX)
while not SGTU:
bo34.debug('========== Run eliminate algo. ==========')
hkxX = zJeh(hkxX)
Fd4y, hkxX = ceRN(hkxX)
if Fd4y or hkxX is False:
break
bo34.debug('========== Run only choice algo. ==========')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwQ(hkxX):\n hkxX = yimF(hkxX)\n if hkxX is False:\n return False\n if all((len(hkxX[KCHu]) == 1 for KCHu in oUSw)):\n return hkxX\n exwG, KCHu = min(((len(hkxX[KCHu]), KCHu) for KCHu in oUSw if len(hkxX[KCHu]) > 1))\n for BWXx in hkxX[KCHu]:\n dkel = hkxX.copy()\n d... | [
"0.7388066",
"0.73841625",
"0.73573244",
"0.73308575",
"0.72779894",
"0.7253972",
"0.72277665",
"0.72185194",
"0.7218055",
"0.7193428",
"0.7186189",
"0.71304756",
"0.71301454",
"0.71231186",
"0.7121197",
"0.71037376",
"0.7079184",
"0.7062115",
"0.70511365",
"0.70350385",
"0.7... | 0.70827633 | 16 |
Calculates the total number of trainable parameters in the current graph. | def o8Uf(YKHO):
GteG = 0
for Es0b in ZylS.trainable_variables():
GteG += oyIN.product([WKvO.value for WKvO in Es0b.get_shape()])
return GteG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e26Z():\n Htse = [SRYB.get_shape().as_list() for SRYB in ZylS.trainable_variables()]\n wjRY = 0\n for ROpF in Htse:\n QRFO = 1\n for tpio in ROpF:\n QRFO *= tpio\n wjRY += QRFO\n return wjRY",
"def UtTg(YKHO):\n f3bG = 0\n for Csk6 in YKHO.module_summary:\n ... | [
"0.8516161",
"0.832238",
"0.82909214",
"0.8175303",
"0.81722426",
"0.80544233",
"0.78842163",
"0.78813374",
"0.78676134",
"0.7824243",
"0.7814285",
"0.7788326",
"0.77874863",
"0.77862376",
"0.7783033",
"0.7783033",
"0.7762777",
"0.77529734",
"0.7749561",
"0.77437145",
"0.7712... | 0.8218278 | 3 |
Returns a list of files with particular extensions in a path. | def zjv5(pmON, SYFN, dbzI=True, Zg0d=False):
RRlC = list()
for YBcr in SYFN:
RRlC = RRlC + SC2F.glob(gzes(pmON, YBcr))
RRlC = list(dict.fromkeys(RRlC))
if not Zg0d:
RRlC = [aPr_(WKvO) for WKvO in RRlC]
if dbzI:
RRlC = [gLx5(WKvO)[0] for WKvO in RRlC]
return RRlC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uWgS(pmON, Fst3=''):\n Ylbp = [Csk6 for Csk6 in Hy7s.listdir(pmON) if Hy7s.path.isfile(Hy7s.path.join(pmON, Csk6))]\n if Fst3:\n f_Ck = [eHNT for eHNT in Ylbp if zc6t(eHNT, Fst3)]\n return f_Ck\n else:\n return Ylbp",
"def UNPZ(pmON, Fst3):\n vC9B = []\n for tk5Y, AQSv, RR... | [
"0.86319876",
"0.8395823",
"0.8370838",
"0.8353938",
"0.82020915",
"0.8110947",
"0.81028575",
"0.809575",
"0.8032169",
"0.79943836",
"0.79725194",
"0.7909329",
"0.781034",
"0.77745515",
"0.77605516",
"0.7733155",
"0.7717623",
"0.77135694",
"0.7700398",
"0.76726574",
"0.766661... | 0.74047005 | 42 |
Standardize the image. The mean value of image or value in parameter 'mean' will be subtracted from the image at first, and then result is divided by standard deviation of itself, for standardization. | def fdtU(VXjJ, JBMS=None, XSoh='both', NKcE='std', ygR6=False):
if JBMS is None:
IMB8 = True
else:
IMB8 = True
OUEp = {'std': oyIN.std, 'var': oyIN.var}
if NKcE == 'std':
JfyU = OUEp['std']
elif NKcE == 'var':
JfyU = OUEp['var']
else:
print('\nInvalid meth... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWT_(YKHO, VXjJ):\n VXjJ = (VXjJ - YKHO.mean) / YKHO.std\n return VXjJ",
"def hWT_(YKHO, VXjJ):\n VXjJ = (VXjJ - YKHO.mean) / YKHO.std\n return VXjJ",
"def hWT_(LNo8):\n LNo8 = LNo8.astype(oyIN.float64)\n CSTn = oyIN.mean(LNo8)\n N3C5 = oyIN.std(LNo8)\n LNo8 = (LNo8 - CSTn) / (6 * N... | [
"0.8746349",
"0.8654258",
"0.8277845",
"0.7951735",
"0.78752476",
"0.7845343",
"0.7831775",
"0.7738084",
"0.7571608",
"0.74007595",
"0.7395231",
"0.73245925",
"0.73211855",
"0.7314427",
"0.7302572",
"0.7273634",
"0.7266141",
"0.7251495",
"0.72497463",
"0.72417593",
"0.7235369... | 0.72009593 | 22 |
Augments the input image. Augmentation process covers rotation of 90, 180, 270 degrees and transposition of upside down, left to right and mix of the both. Transposition styles are defined by options parameter. options can be any or all of [90,180,270, 'flipud', 'fliplr', 'flipudlr']. Takes scikitimage as input (numpy ... | def LWuQ(LNo8, xAU6):
Yw_3 = []
Yw_3.append(LNo8)
m_03 = []
bC6S = []
Fsl9 = []
if 90 in xAU6 or '90' in xAU6:
Yw_3.append(oyIN.rot90(LNo8))
if 180 in xAU6 or '180' in xAU6:
Yw_3.append(oyIN.rot90(LNo8, 2))
if 270 in xAU6 or '270' in xAU6:
Yw_3.append(oyIN.rot90(L... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EPhu(LNo8, pChn, v__7=128):\n LNo8 = hnIv.fromarray(oyIN.uint8(LNo8))\n if pChn:\n if tuKI.random() < 0.5:\n LNo8 = vuvg.hflip(LNo8)\n if tuKI.random() < 0.5:\n LNo8 = vuvg.vflip(LNo8)\n LNo8 = vuvg.center_crop(LNo8, int(0.8 * LNo8.size[0]))\n aGFF = tuKI... | [
"0.6564065",
"0.65160215",
"0.63236505",
"0.62338376",
"0.61582786",
"0.61389476",
"0.6117831",
"0.61025757",
"0.6095152",
"0.6037797",
"0.5970232",
"0.59332967",
"0.58869696",
"0.5879818",
"0.5857468",
"0.5854593",
"0.5839289",
"0.5811885",
"0.58022374",
"0.5764813",
"0.5739... | 0.74136245 | 0 |
Return True if the given distance metric is an ultrametric, False otherwise. | def BMZv(pImw):
exwG = J5R6(pImw)
for YRbF in range(1, exwG + 1):
for r845 in range(YRbF + 1, exwG + 1):
for G1Hx in range(r845 + 1, exwG + 1):
gGfO = dztP(pImw, YRbF, r845)
nIAC = dztP(pImw, YRbF, G1Hx)
rnfR = dztP(pImw, r845, G1Hx)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kWJN(YKHO):\n return YKHO._libinput.libinput_tablet_tool_has_distance(YKHO._handle)",
"def TJpd(TaUL):\n JKGI = list(TaUL)\n JKGI.sort()\n if int(JKGI[2] ** 2) == int(JKGI[0] ** 2) + int(JKGI[1] ** 2):\n return True\n else:\n return False",
"def mEyM(YKHO) -> bool:\n return ... | [
"0.6643421",
"0.6214539",
"0.6189817",
"0.6122535",
"0.6110362",
"0.6110362",
"0.6082874",
"0.60032797",
"0.58638865",
"0.58578193",
"0.57853794",
"0.5688782",
"0.56654567",
"0.5651887",
"0.564666",
"0.5634896",
"0.56053597",
"0.55951566",
"0.55592155",
"0.55561197",
"0.55560... | 0.65159434 | 1 |
Given the neighbours, recompute the score of the given position | def ZJni(YKHO, oeNL):
hvGb = YKHO.get_max_score_neighbors(oeNL)
if not hvGb:
return False
AU8u = YKHO.ground_map_flattened[oeNL]
AU8u.path_length = hvGb.path_length + 1
AU8u.path_drop = hvGb.path_drop + (hvGb.elevation - AU8u.elevation)
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2ox(iBIi, BZN_):\n if XDC2(iBIi, BZN_):\n return tIlC\n p1kx = 0\n qfpW, rdlD, LFlW = (BZN_[0], BZN_[1], BZN_[2])\n _tIi = len(iBIi[rdlD]) - 1 - LFlW\n A3Vt, tjUW, yvY1 = (1, 2, 3)\n Exdv = AAbN(iBIi, BZN_)\n if rdlD == 1 and qfpW != yvY1:\n p1kx += 2\n if LFlW == 1 a... | [
"0.6657998",
"0.65545046",
"0.6416729",
"0.6388034",
"0.63816065",
"0.6352037",
"0.6329576",
"0.6272285",
"0.61929524",
"0.6115052",
"0.6072007",
"0.605781",
"0.60058177",
"0.5987099",
"0.5966316",
"0.59622276",
"0.5959196",
"0.59580034",
"0.5934769",
"0.59268534",
"0.58939",... | 0.0 | -1 |
Get stop indices from MSA | def Y5DY(mkCo):
AxAQ = []
for aWuw in mkCo:
Bc3O = aWuw[::-1]
for NqIG in Bc3O:
if NqIG != '-':
d6pt = Bc3O.index(NqIG)
JCyR = len(Bc3O) - d6pt
AxAQ.append(JCyR)
break
return AxAQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UVFf(YKHO):\n return (YKHO.index[0], YKHO.index[-1])",
"def pkp_(jzLc, z7sl):\n Nfy3 = jzLc['start_time'] + z7sl.resolution\n C9Wj = jzLc['start_time'] - z7sl.resolution\n l6ZZ = jzLc['stop_time'] + z7sl.resolution\n VN_N = jzLc['stop_time'] - z7sl.resolution\n fsWt = [cIIR for cIIR in rang... | [
"0.6868231",
"0.6519003",
"0.6407866",
"0.6360685",
"0.62677556",
"0.6199246",
"0.6194503",
"0.6169341",
"0.6158865",
"0.6013865",
"0.6003394",
"0.59351254",
"0.58973163",
"0.588482",
"0.58724475",
"0.58686006",
"0.5866429",
"0.5862695",
"0.5825534",
"0.5804985",
"0.58047277"... | 0.7502747 | 0 |
Validates the personal permissions for a user given a token | def PBB1(YKHO, CBIr, SCWY):
qMrd = None
yS3e = None
if not CBIr.is_authenticated:
return (qMrd, yS3e)
_oWe = CnX_.objects.filter(profile__user=CBIr, application=SCWY).first()
if _oWe:
if _oWe.is_superuser:
qMrd = True
if _oWe.can_authenticate:
yS3e = T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZlGy(eOtH: str) -> bool:\n uJjO = jd4P(token=eOtH)\n try:\n mv1M.objects.get(id=uJjO)\n return True\n except mv1M.DoesNotExist:\n return False",
"def B36k(JfyU):\n\n def h3Xc(QePW, *qIxc, **B2fa):\n if not hasattr(QePW, 'user'):\n raise wPvU\n eOtH = ... | [
"0.64067775",
"0.6280933",
"0.627954",
"0.62735134",
"0.62072235",
"0.6204399",
"0.62003857",
"0.618079",
"0.61783576",
"0.6082707",
"0.60291654",
"0.600428",
"0.598829",
"0.5982201",
"0.59716845",
"0.5930498",
"0.59156674",
"0.591275",
"0.5909158",
"0.59033847",
"0.5883024",... | 0.0 | -1 |
replace json keys, according to the given replacement dic from the ApplicationExtension database model | def n4XT(zgjV, SCWY):
try:
Fst3 = SCWY.extension
CSvL = Fst3.profile_replace_json
except rIt9:
return zgjV
if CSvL is not None:
LAv4 = qQXR.loads(CSvL)
for H5ew, BWXx in LAv4.items():
if H5ew in zgjV:
zgjV[BWXx] = zgjV.pop(H5ew)
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QzZI(AIu6, cmPJ):\n\n def fXiu(vIwR):\n for H5ew in cmPJ:\n vIwR = vIwR.replace(H5ew, cmPJ[H5ew])\n return vIwR\n for H5ew in list(AIu6.keys()):\n if isinstance(AIu6[H5ew], str):\n AIu6[H5ew] = fXiu(AIu6[H5ew])\n elif isinstance(AIu6[H5ew], dict):\n ... | [
"0.62572414",
"0.6235838",
"0.615507",
"0.60870826",
"0.5960825",
"0.59295064",
"0.5907886",
"0.5871042",
"0.5843592",
"0.5839534",
"0.5782116",
"0.57750505",
"0.57559174",
"0.5717605",
"0.5705968",
"0.5657107",
"0.56332386",
"0.5616737",
"0.560976",
"0.5607034",
"0.5598273",... | 0.78894156 | 0 |
Renders the home page. | def kZiy(QePW):
assert isinstance(QePW, eu5F)
DDLl = o53k(QePW.GET)
dixj = DDLl.query()
bXLc = dixj['hits']['total']
ayeo = []
K5ya = []
for A97Q in dixj['hits']['hits']:
K5ya.append(A97Q['_source'])
for ZfUD in dixj['aggregations'].items():
e_2d = ZfUD[0]
QoG_ = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('pages/home.html')",
"def kZiy():\n leAC =... | [
"0.86085397",
"0.85661966",
"0.8562984",
"0.84564984",
"0.8353822",
"0.8353445",
"0.832796",
"0.83265287",
"0.83265287",
"0.8311966",
"0.83088946",
"0.83046836",
"0.8296962",
"0.82942903",
"0.82942903",
"0.82872546",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279... | 0.0 | -1 |
Renders the contact page. | def Mxk0(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/contact.html', {'title': 'Contact', 'message': 'Your contact page.', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.76533896 | 55 |
Delete backend environment for an Amplify App. | def o9xj(AadL=None, fimU=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M8fN(qIxc):\n x0hE = ybSr()\n geh0 = x0hE.delete_dev_env(qIxc.dev_name)\n print(geh0)",
"def KiTA(bp_0, id):\n return NCls.storage_backend_destroy(bp_0, id)",
"def x1OB(gtI8, qIxc):\n gtI8.storage_backends.delete(qIxc.id)",
"def eWS9(GPtr, mGoH):\n if hnW6(GPtr.cluster_hostname):\n ... | [
"0.6886532",
"0.6643647",
"0.6622934",
"0.6527005",
"0.6502301",
"0.64515024",
"0.64073205",
"0.6302637",
"0.62168866",
"0.61843836",
"0.6160481",
"0.6150293",
"0.6150293",
"0.60894465",
"0.6054914",
"0.6041536",
"0.5986406",
"0.5986045",
"0.5984846",
"0.59658885",
"0.5964007... | 0.8754334 | 0 |
Retrieves artifact info that corresponds to a artifactId. | def mAeM(n97h=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(Emd4, QpfX, l87X, WYga):\n Qabx.authorize('artifact:get', {}, QpfX)\n fmAV = Emd4._get_artifact(QpfX, l87X, WYga, read_only=True)\n return fmAV.to_dict()",
"def I9zd(YKHO, WYga, Ux0P=None, PJWX=False):\n NArs = {'ARTIFACT_ID': WYga}\n geh0 = YKHO._request('GET', YKHO.data_url, save=True, ... | [
"0.7320361",
"0.6875166",
"0.6713126",
"0.6610858",
"0.6580383",
"0.64046043",
"0.6393624",
"0.6393624",
"0.6393624",
"0.6393624",
"0.6393624",
"0.6393624",
"0.6393624",
"0.6393624",
"0.6393624",
"0.6393624",
"0.63780534",
"0.63780534",
"0.6283862",
"0.6228885",
"0.62263745",... | 0.66272473 | 3 |
Retrieves a backend environment for an Amplify App. | def bSGy(AadL=None, fimU=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B6cH(Emd4, P4t4):\n return P4t4.registry.settings.get('env.name')",
"def TaFc(P4t4=wk5E):\n return P4t4.config.get('ENVIORNMENT', 'DEVELOPMENT')",
"def hOTw(AadL=None, fimU=None, SZ0L=None, NM2x=None):\n pass",
"def AMSD(AadL=None, fimU=None, jTsx=None, Pl09=None):\n pass",
"def I0_M(cuiw, ... | [
"0.6687319",
"0.64732313",
"0.639273",
"0.6288668",
"0.6256573",
"0.62505656",
"0.614287",
"0.60815156",
"0.6076619",
"0.6061162",
"0.6061162",
"0.6061162",
"0.5876372",
"0.58708555",
"0.5823868",
"0.57687247",
"0.5761993",
"0.5746127",
"0.5736765",
"0.5730246",
"0.5721605",
... | 0.83609897 | 0 |
Create a paginator for an operation. | def oL8A(hTqE=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\... | [
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.70472574",
"0.67338336",
"0.6382978",... | 0.7726925 | 15 |
Lists existing Amplify Apps. | def vxoC(SZ0L=None, NM2x=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GtmA(YKHO, mWFP=None):\n XLL2 = YKHO.get('/app', parameters={'name': mWFP})\n return XLL2",
"async def app_list(YKHO) -> x1iM[wohN.App]:\n return await YKHO.relay('app_list')()",
"def pNeJ():\n wk5E.logger.info('API endpoint apps accessed')\n XLL2 = oRf5\n oRf5.clear()\n return pz3A(XL... | [
"0.75890505",
"0.7470713",
"0.74364555",
"0.7420629",
"0.7302065",
"0.726994",
"0.7249279",
"0.7240146",
"0.7240146",
"0.7202049",
"0.71637464",
"0.71637464",
"0.7127534",
"0.7096292",
"0.7061076",
"0.7061076",
"0.70408046",
"0.7014491",
"0.6928493",
"0.69158405",
"0.68975836... | 0.6982979 | 18 |
Lists backend environments for an Amplify App. | def hOTw(AadL=None, fimU=None, SZ0L=None, NM2x=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pR3j(YKHO):\n return YKHO.clients('murano').environments.list()",
"def drhN(YKHO):\n return YKHO.environments",
"def Jqjv(YKHO):\n return YKHO.request(method='GET', url='/v1/environments', params={'version': YKHO.version}, accept_json=True)",
"def bSGy(AadL=None, fimU=None):\n pass",
"def T... | [
"0.6966691",
"0.6845166",
"0.6738554",
"0.6530588",
"0.6507353",
"0.6325236",
"0.6270504",
"0.62588763",
"0.62278444",
"0.62112755",
"0.6021843",
"0.601328",
"0.5943378",
"0.59162664",
"0.59151256",
"0.5914125",
"0.5912628",
"0.5889735",
"0.58862174",
"0.58766586",
"0.5854879... | 0.8391578 | 0 |
Video streaming home page. | def d6pt():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ecsS():\n return TvZl('/video-page.html')",
"def wOb_():\n return TvZl('video-feed.html')",
"def hkZA():\n return TvZl('video-page.html', title='video page', year=qcWV.now().year)",
"def kZiy(geh0):\n SFIC = YM9Z.objects.all()\n QpfX = {'videos': SFIC}\n return _1tc(geh0, 'InktoberSite/... | [
"0.76268315",
"0.76119703",
"0.7530637",
"0.73411614",
"0.7005877",
"0.66250384",
"0.6583905",
"0.6468895",
"0.6439333",
"0.64381635",
"0.6421515",
"0.6415742",
"0.6393503",
"0.6384064",
"0.637601",
"0.63417023",
"0.6321272",
"0.6291959",
"0.62908256",
"0.62908256",
"0.629082... | 0.0 | -1 |
r"""MPTCP invalid cookie received on MP_CAPABLE final ACK. | def zTZB(YKHO):
try:
return YKHO._mptcperrinvalcookie
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CPk8(YKHO):\n try:\n return YKHO._mptcperrinvalcookierate\n except Exception as e:\n raise tTpl",
"def O4uX(YKHO):\n try:\n return YKHO._mptcperrinvalmacrate\n except Exception as e:\n raise tTpl",
"def ABZc(YKHO):\n try:\n return YKHO._mptcperrunknowntoken... | [
"0.646932",
"0.6453592",
"0.6342433",
"0.63098854",
"0.5971003",
"0.5909391",
"0.59034574",
"0.5893068",
"0.5882084",
"0.5822776",
"0.57716906",
"0.5765441",
"0.57639563",
"0.5716256",
"0.5688085",
"0.5669221",
"0.56165355",
"0.5589678",
"0.5571022",
"0.5528563",
"0.5516496",... | 0.7374768 | 0 |
r"""Total number of addresses removed from MPTCP connection with REMOVE_ADDR option. | def TVDY(YKHO):
try:
return YKHO._mptcptotaddrremoved
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jtl5(YKHO):\n try:\n return YKHO._mptcpaddrremovedrate\n except Exception as e:\n raise tTpl",
"def iPX0(YKHO):\n VT3I = 'SELECT COUNT(*) FROM server'\n return YKHO.fetch(VT3I)[0]",
"def len(YKHO):\n if YKHO.addr_range is None:\n YKHO._update()\n return YKHO.addr_rang... | [
"0.62949103",
"0.5820317",
"0.56411564",
"0.55926657",
"0.55526006",
"0.55230343",
"0.55021113",
"0.5494341",
"0.54808295",
"0.5474422",
"0.5470708",
"0.5436598",
"0.5419726",
"0.5399085",
"0.53884023",
"0.538541",
"0.53814405",
"0.535641",
"0.5331751",
"0.5322137",
"0.531950... | 0.6633766 | 0 |
r"""MPTCP Unsupported MSS negotiated error. | def xhxz(YKHO):
try:
return YKHO._mptcperrunsupportedmssnegotiated
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAhW(YKHO):\n try:\n return YKHO._mptcperrunsupportedmssnegotiatedrate\n except Exception as e:\n raise tTpl",
"def QsTN(YKHO):\n try:\n return YKHO._mptcperrversionnotsupported\n except Exception as e:\n raise tTpl",
"def MUyC(YKHO):\n try:\n return YKHO._... | [
"0.75593424",
"0.62540615",
"0.59183586",
"0.58157253",
"0.56257343",
"0.5591581",
"0.55893576",
"0.5555853",
"0.55363536",
"0.5479974",
"0.52308524",
"0.5225049",
"0.52186054",
"0.51456904",
"0.51428795",
"0.5033866",
"0.49785903",
"0.49760133",
"0.49406558",
"0.49396786",
"... | 0.83424693 | 0 |
r"""MPTCP One or more reserved bits are set on MP_CAPABLE request. | def Q2df(YKHO):
try:
return YKHO._mptcperrresflagset
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(TWIm, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.p4xxmode is None:\n YKHO.p4xxmode = 0\n else:\n YKHO.p4xxmode = 0",
"def E925(z3rX):\n BVQF = []\n TemD = [(7, 0, 'ebx', 1 << 14)]\n MpIx.check_cpuid_feat_flags(z... | [
"0.5623063",
"0.5456674",
"0.54470044",
"0.5442381",
"0.54111594",
"0.53969604",
"0.5386608",
"0.53486586",
"0.533611",
"0.5308201",
"0.5292315",
"0.52913433",
"0.5284829",
"0.52803594",
"0.52233016",
"0.52050054",
"0.5204496",
"0.5185052",
"0.5162434",
"0.5160016",
"0.513589... | 0.46994853 | 94 |
lemmatizer for tagged words | def dhx_(YKHO, dJ1p):
ofzz = []
for GIN8, TZ9E in dJ1p:
UsRN = TZ9E[0].lower()
UsRN = UsRN if UsRN in ['a', 'r', 'n', 'v', 'n', 's'] else None
if not UsRN:
dhx_ = GIN8
else:
dhx_ = YKHO.wordnet_lemmatizer.lemmatize(GIN8, UsRN)
ofzz.append(dhx_)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v_nw(YKHO, eOtH, TZ9E):\n return YKHO.lemmatizer.lemmatize(eOtH, YKHO.tagwn(TZ9E))",
"def v_nw(eOtH):\n return GFnk().lemmatize(eOtH, pos='v')",
"def v_nw(YKHO, a1PO):\n eOtH, TZ9E = a1PO\n TZ9E = {'V': WnSJ.VERB, 'R': WnSJ.ADV, 'J': WnSJ.ADJ, 'S': WnSJ.ADJ_SAT}.get(TZ9E[0], WnSJ.NOUN)\n ret... | [
"0.7895084",
"0.77290523",
"0.7694621",
"0.7619012",
"0.75884616",
"0.75876427",
"0.7474833",
"0.74655294",
"0.74616504",
"0.7447468",
"0.7437961",
"0.7434874",
"0.74204767",
"0.7387773",
"0.73685926",
"0.73660874",
"0.73435974",
"0.72915727",
"0.7280356",
"0.7275848",
"0.723... | 0.7515954 | 6 |
Lemmatizer words use WordNet | def iVDQ(YKHO, rdlD):
return [YKHO.lemma(Dhdw.pos_tag(yAmx)) for yAmx in rdlD['review']] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LkXt(YKHO, l5Ny):\n Dhdw.download('wordnet', quiet=True)\n vnqU = GFnk()\n ieoI = dFss(l5Ny)\n geR_ = kdPk(ieoI)\n IatE = [YKHO.get_wordnet_pos(GIN8[1]) for GIN8 in geR_]\n return ' '.join([vnqU.lemmatize(q2Xo[0], q2Xo[1]) for q2Xo in zip(ieoI, IatE)])",
"def lEXc(YKHO, V22M):\n CWnC = G... | [
"0.78786796",
"0.7609912",
"0.7570067",
"0.7536393",
"0.75292903",
"0.75248057",
"0.7493388",
"0.74931717",
"0.74548715",
"0.7434101",
"0.7407612",
"0.7400837",
"0.73968196",
"0.73638415",
"0.73541135",
"0.733318",
"0.73237056",
"0.7308476",
"0.72750115",
"0.7272043",
"0.7263... | 0.0 | -1 |
Mark field ``field_name`` of expected block usage ``usage_id`` as ignored | def ZNMC(YKHO, IBYC, vXX7):
YKHO.field_exclusions.add((IBYC, vXX7)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ur39(YKHO, cohK, yetk):\n raise NotImplementedError",
"def azzZ(YKHO) -> None:\n return",
"def JGCq(YKHO):\n YKHO._ignored = True",
"def eZDF(*qIxc, **B2fa):\n pass",
"def iN5A(YKHO, XLMO, mWFP):\n YKHO.assertTrue(hasattr(XLMO, '_fields_'))\n YKHO.assertFalse(hasattr(XLMO, mWFP), f'Fi... | [
"0.57441187",
"0.559518",
"0.5536776",
"0.5487912",
"0.548624",
"0.5390349",
"0.5390349",
"0.5390349",
"0.5390349",
"0.53398556",
"0.5335109",
"0.5320746",
"0.528328",
"0.52780795",
"0.52565765",
"0.52306616",
"0.5213641",
"0.51684684",
"0.51529753",
"0.51490706",
"0.5111095"... | 0.7214519 | 0 |
Assert that the courses identified by ``expected_course_key`` in ``expected_store`` and ``actual_course_key`` in ``actual_store`` are identical (ignore differences related owing to the course_keys being different). Any field value mentioned in ``self.field_exclusions`` by the key (usage_id, field_name) will be ignored ... | def WFwB(YKHO, CUWw, ZSi8, jlCq, VE22):
with CUWw.branch_setting(i28P.Branch.published_only, ZSi8):
with jlCq.branch_setting(i28P.Branch.published_only, VE22):
q3OH = CUWw.get_items(ZSi8, revision=i28P.RevisionOption.published_only)
jJxH = jlCq.get_items(VE22, revision=i28P.RevisionO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEvd(YKHO, CUWw, ZSi8, jlCq, VE22):\n q0we, GPPO = CUWw.get_all_content_for_course(ZSi8)\n RQ2u, nI8n = jlCq.get_all_content_for_course(VE22)\n assert GPPO == nI8n\n YKHO._assertAssetsEqual(ZSi8, q0we, VE22, RQ2u)\n Gz1F = CUWw.get_all_content_thumbnails_for_course(ZSi8)\n DxmQ = jlCq.get_all... | [
"0.7015217",
"0.6992822",
"0.69167084",
"0.6658008",
"0.65185297",
"0.6399161",
"0.6291613",
"0.61924994",
"0.5917838",
"0.5900912",
"0.58029056",
"0.57267046",
"0.56995547",
"0.56995547",
"0.5667839",
"0.56588995",
"0.5656049",
"0.5654937",
"0.56383896",
"0.5632805",
"0.5631... | 0.73427904 | 0 |
Normalize a vector with regard to its deadzone. | def Z7xS(YKHO, lzgo, Ilxn):
U34r = YKHO.descriptor['vector'][Ilxn].get('normalize', {})
YXbZ = epAf.sqrt(sum((Ty9i ** 2 for Ty9i in lzgo.values())))
aUJK = U34r.get('deadzone', 0)
if YXbZ <= aUJK:
for G1Hx in lzgo.keys():
lzgo[G1Hx] = 0
return
for G1Hx, Ty9i in lzgo.items... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VDTB(Ty9i):\n return Ty9i / i1gc(Ty9i)",
"def AKms(iArr):\n min = oyIN.min(iArr)\n max = oyIN.max(iArr)\n range = max - min\n iArr = iArr - min\n if epAf.fabs(range) >= 1e-10:\n iArr = iArr / range\n iArr = iArr - 0.5\n else:\n iArr = iArr - min\n return iArr",
... | [
"0.76216906",
"0.7612224",
"0.7467252",
"0.74205875",
"0.7364509",
"0.7362055",
"0.73213893",
"0.7227614",
"0.7202042",
"0.7194507",
"0.7171639",
"0.71556544",
"0.7150891",
"0.71486306",
"0.71413815",
"0.7122591",
"0.70941913",
"0.706043",
"0.70539707",
"0.70058864",
"0.69821... | 0.7428056 | 3 |
Calculates a matrix of intersections over union from box dimensions, assuming that the boxes are located at the same coordinates. | def Mnm3(WF0r: Tensor, O7B1: Tensor) -> llWB:
bzU2 = WF0r[:, 0] * WF0r[:, 1]
Eq1k = O7B1[:, 0] * O7B1[:, 1]
yvBq = ht2j.min(WF0r[:, None, :], O7B1)
C7_8 = yvBq[:, :, 0] * yvBq[:, :, 1]
b65I = bzU2[:, None] + Eq1k - C7_8
return C7_8 / b65I | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r0E4(YKHO, FlUN):\n ydo8 = oyIN.maximum(YKHO.priors[:, :2], FlUN[:2])\n zYcb = oyIN.minimum(YKHO.priors[:, 2:4], FlUN[2:])\n k1qU = zYcb - ydo8\n k1qU = oyIN.maximum(k1qU, 0)\n N9fq = k1qU[:, 0]\n iyyg = k1qU[:, 1]\n iQin = N9fq * iyyg\n qZBF = FlUN[2] - FlUN[0]\n CYLT = FlUN[3] - Fl... | [
"0.70039374",
"0.69084764",
"0.68488634",
"0.66594094",
"0.6657572",
"0.66306627",
"0.66129583",
"0.6608378",
"0.6552731",
"0.651849",
"0.6510934",
"0.64912117",
"0.6484402",
"0.646285",
"0.64549917",
"0.64538103",
"0.6453132",
"0.6449937",
"0.6449639",
"0.64398146",
"0.64250... | 0.0 | -1 |
From the targets that are in the image space calculates the actual targets for the network predictions, and returns a dictionary of training losses. | def Ur2p(YKHO, oUSw: Tensor, la9G: Tensor, I6gK: Tensor, x6A0: List[Dict[str, Tensor]], N0ky: Tensor, g7mJ: Tensor) -> cuzp[str, llWB]:
Ep8u, H2v2, TVTK, YhBU, bGrB = oUSw.shape
begE = oUSw.device
assert Ep8u == len(x6A0)
U4F5 = ht2j.tensor([TVTK, H2v2], device=begE)
bmuE = ht2j.true_divide(U4F5, N0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L8kW(YKHO, o4Jx, x6A0, oGem, ytH6):\n N8L0 = dict()\n RG4y, W_N6, BZPk = YKHO.loss(o4Jx, x6A0, oGem, ytH6)\n for or8S in range(len(x6A0)):\n if RG4y[or8S] is not None:\n P3BV = RG4y[or8S].mean(dim=0)\n if 'heatmap_loss' not in N8L0:\n N8L0['heatmap_loss'] = ... | [
"0.66033894",
"0.6511601",
"0.6492409",
"0.6376218",
"0.6349344",
"0.63059825",
"0.6304786",
"0.62995195",
"0.62763137",
"0.62763137",
"0.6259403",
"0.62241024",
"0.61996233",
"0.61633915",
"0.6153889",
"0.6144726",
"0.61388206",
"0.61305255",
"0.61239386",
"0.6110059",
"0.60... | 0.62709874 | 10 |
Gets value of SRUN from environment, so that users do not have to change their YAML files. | def AjDp(YKHO):
YKHO.usesrun = bool(Hy7s.environ.get('SRUN', YKHO.usesrun)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZLMI(YKHO):\n ZLMI = YKHO.campaign.process.config.get('srun') or 'srun'\n return lr1t(ZLMI)",
"def tgzD(H5ew):\n ikv7()\n BWXx = AxXv(H5ew, None)\n return BWXx",
"def c1qO(gCuF):\n return 'vrun' if gCuF.image_url is not None else 'vrun_precise'",
"def wJxA(IH1p):\n try:\n BWXx... | [
"0.62414217",
"0.59938127",
"0.59709764",
"0.59607303",
"0.5896038",
"0.5849008",
"0.5849008",
"0.5849008",
"0.5818302",
"0.5814433",
"0.5797466",
"0.57590395",
"0.57458854",
"0.5742879",
"0.57127917",
"0.5707972",
"0.5688907",
"0.56641203",
"0.5661251",
"0.5636097",
"0.56224... | 0.74580663 | 0 |
Checks if the user specified more than one simulation type in YAML. Raises MultipleSimulationTypes if more than one simulation type set in YAML. | def OFas(YKHO):
PXnb = UTht.get('simulation_params', {})
Uu_i = [H5ew for H5ew in YKHO.data.keys() if H5ew in PXnb.keys()]
if len(Uu_i) > 1:
raise g8zb(f'You cannot select multiple simulation types in input.yaml, please select one of {', '.join(Uu_i)}.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TkJE(Xf8z: ConfigType) -> None:\n if Xf8z not in Ix5x:\n raise Exception('Can only run a _single_ type of configuration per process; please inspect pytest configuration.')",
"def zxjw(YKHO):\n if not YKHO._multi_choice and len(YKHO._user_input) > 1:\n print(yOvc('Multiple values are not a... | [
"0.55200815",
"0.5510325",
"0.5497475",
"0.5373708",
"0.5340394",
"0.53373665",
"0.53104746",
"0.5232333",
"0.5199075",
"0.5197542",
"0.51811194",
"0.51675326",
"0.5146662",
"0.51107115",
"0.51008934",
"0.5092845",
"0.50917417",
"0.50526977",
"0.5030194",
"0.501589",
"0.50111... | 0.83726835 | 0 |
Check if a given template is a "leaf" template. | def fwYE(Emd4, rPXJ: Template) -> bool:
return isinstance(rPXJ, str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loae() -> bool:\n return True",
"def loae():\n return False",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
... | [
"0.7287544",
"0.7119251",
"0.6912153",
"0.6912153",
"0.68970144",
"0.68970144",
"0.68970144",
"0.6865835",
"0.6838021",
"0.6793436",
"0.6791989",
"0.67904246",
"0.67635304",
"0.67560345",
"0.67175454",
"0.6703826",
"0.6683352",
"0.6666523",
"0.66314054",
"0.6625273",
"0.66207... | 0.8671814 | 0 |
Given a sentence, returns a list of dictionary representations of the clauses | def WxTL(yAmx):
return {'substeps': [], 'type': 'doctor-conditional', 'text': yAmx} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oGxt(yAmx):\n if 'clause_list' in yAmx and 'head_verbs' in yAmx:\n return (yAmx['clause_list'], yAmx['head_verbs'])\n SMAd = yAmx['dependencies']\n if len(SMAd) == 0:\n yAmx['dependency_tree'] = None\n yAmx['word_index_to_head_verb_index'] = {}\n return ([], [])\n oeNL =... | [
"0.67095083",
"0.6607785",
"0.64350396",
"0.6267679",
"0.6235117",
"0.60721165",
"0.5998362",
"0.5953031",
"0.5925758",
"0.58640146",
"0.5843036",
"0.58119065",
"0.5730717",
"0.5712292",
"0.5691633",
"0.56315",
"0.55781424",
"0.553447",
"0.5512422",
"0.5476632",
"0.54432285",... | 0.737287 | 0 |
Sets the payin_amount of this UserFundMarginData. | def sVU2(YKHO, sVU2):
YKHO._payin_amount = sVU2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmS_(YKHO, otHv):\n YKHO.income = otHv",
"def otHv(YKHO, otHv):\n YKHO._income = otHv",
"def otHv(YKHO, otHv):\n YKHO._income = otHv",
"def SDNE(YKHO, SDNE):\n YKHO._bank_amount = SDNE",
"def b3j1(YKHO, b3j1):\n YKHO._trade_in_value = b3j1",
"def zrFn(YKHO, Z5kt):\n YKHO.money = Z5k... | [
"0.58842605",
"0.5870512",
"0.5870512",
"0.5792727",
"0.5766729",
"0.5516567",
"0.5290421",
"0.5277642",
"0.5230903",
"0.5209955",
"0.5209365",
"0.5205165",
"0.51713264",
"0.5169107",
"0.51484585",
"0.51323134",
"0.5114085",
"0.50511163",
"0.50410235",
"0.5017328",
"0.5004165... | 0.82349986 | 0 |
Sets the notional_cash of this UserFundMarginData. | def LEAs(YKHO, LEAs):
YKHO._notional_cash = LEAs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1JI(YKHO, n1JI):\n YKHO._cash_discount = n1JI",
"def uoK8(YKHO, uoK8):\n YKHO._is_cash = uoK8",
"def jJK0(YKHO, VoIp):\n if VoIp > 0 < 1000:\n YKHO.amount += VoIp\n hL_i = str(qcWV.datetime.now())\n YKHO.transactions.update(transaction=[hL_i, VoIp])\n else:\n print(... | [
"0.6020828",
"0.5689884",
"0.5364207",
"0.52859986",
"0.5273851",
"0.52710015",
"0.5245683",
"0.51928836",
"0.5129168",
"0.5129168",
"0.50148386",
"0.4990108",
"0.4914886",
"0.49006915",
"0.48764896",
"0.4851737",
"0.4846549",
"0.48384815",
"0.48381034",
"0.4821546",
"0.48059... | 0.84001875 | 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.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Return a list of contours for an image | def Ksu7(LNo8):
Yjcv, Iowl, gEYm = XC5k.findContours(LNo8, XC5k.RETR_TREE, XC5k.CHAIN_APPROX_SIMPLE)
Iowl = [r9Hf for r9Hf in Iowl if len(r9Hf) > 1]
return Iowl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iB0s(VXjJ):\n Iowl, bGrB = XC5k.findContours(VXjJ, XC5k.RETR_CCOMP, XC5k.CHAIN_APPROX_SIMPLE)\n return Iowl",
"def QG_z(VXjJ):\n bGrB, knl1 = XC5k.threshold(VXjJ, 127, 255, 0)\n bGrB, Iowl, bGrB = XC5k.findContours(knl1, XC5k.RETR_TREE, XC5k.CHAIN_APPROX_SIMPLE)\n return Iowl",
"def Iowl(LNo... | [
"0.8552014",
"0.8418798",
"0.83889574",
"0.829764",
"0.8288453",
"0.80730045",
"0.801815",
"0.7997797",
"0.7851462",
"0.7729961",
"0.76521575",
"0.7580388",
"0.7548259",
"0.74869394",
"0.7464387",
"0.7433246",
"0.7433246",
"0.7433246",
"0.7433246",
"0.7433246",
"0.7403706",
... | 0.8163405 | 5 |
Sets the module in training mode. !!! OVERWRITING STANDARD PYTORCH METHOD for nn.Module OR if mc_dropout=True and mode=False (use dropout during inference) we set all modules to trainmode=False except for DROPOUT layers In this case it is important that the module_name matches BayesDRNSeg.dropout_layer | def EvQg(YKHO, Tuqy=True, WqjQ=False):
YKHO.training = Tuqy
for LCet, yR_P in YKHO.named_modules():
yR_P.training = Tuqy
if WqjQ and (not Tuqy):
if isinstance(yR_P, U78l.Dropout2d):
yR_P.training = True
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvQg(YKHO):\n YKHO.train_mode = True\n for yR_P in YKHO.modules():\n yR_P.train_mode = True",
"def jO9f(yR_P: nn.Module, Tuqy: bool):\n LxOj = yR_P.training\n try:\n yR_P.train(Tuqy)\n yield yR_P\n finally:\n yR_P.train(LxOj)",
"def o5FO(yR_P):\n lARV = (U78l.D... | [
"0.7085616",
"0.6933855",
"0.6826292",
"0.68059444",
"0.6684668",
"0.66374236",
"0.6603147",
"0.65576535",
"0.65576535",
"0.6536345",
"0.6536345",
"0.64604276",
"0.6376405",
"0.63188344",
"0.63188344",
"0.6282058",
"0.6198053",
"0.6198053",
"0.6160477",
"0.6160477",
"0.614847... | 0.7878227 | 0 |
Sets the module in evaluation mode. This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation | def eval(YKHO, WqjQ=False):
return YKHO.train(False, mc_dropout=WqjQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qYbd(YKHO):\n if YKHO._is_train:\n for r8hN in YKHO._models:\n r8hN.set_eval_mode()\n YKHO._is_train = False",
"def Hde5(Tuqy):\n pass",
"def eval(YKHO):\n YKHO.train_mode = False\n for yR_P in YKHO.modules():\n yR_P.train_mode = False",
"def czbU(YKHO):\n YKHO.... | [
"0.80113363",
"0.77027565",
"0.7605479",
"0.7541784",
"0.6741488",
"0.6683878",
"0.66806585",
"0.666182",
"0.66287696",
"0.66059375",
"0.66059375",
"0.65847194",
"0.6484754",
"0.6470876",
"0.641751",
"0.63425124",
"0.631099",
"0.63000965",
"0.6296325",
"0.6255497",
"0.6231373... | 0.0 | -1 |
Create an instance of this record from a submission body | def iNpq(Emd4, KAOR, Ol8d):
RKD7 = Rix1(received_on=qcWV.datetime.utcnow(), md5=HBct.md5(KAOR).hexdigest(), problem=Ol8d)
RKD7.deferred_put_attachment(KAOR, SxXE, content_type='text/xml')
return RKD7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OdgU(YKHO, TBsA):\n _hkX, KAOR = YKHO.request('POST', YKHO.uri, data=LjTD(TBsA))\n if _hkX.status_code not in (200, 201):\n raise ks0a(_hkX.status_code, YKHO.uri, 'Resource not created')\n return YKHO.load_instance(KAOR)",
"def eLpg(YKHO, vGfb):\n QePW, NtEF = CWkQ(YKHO.context)\n aqR5 ... | [
"0.6621784",
"0.6608234",
"0.6561401",
"0.6523671",
"0.64542943",
"0.63999206",
"0.6356469",
"0.61576545",
"0.6156703",
"0.61442864",
"0.6139515",
"0.6043591",
"0.60027516",
"0.6001665",
"0.5965924",
"0.5955106",
"0.5867247",
"0.58655363",
"0.58515424",
"0.58271205",
"0.57944... | 0.0 | -1 |
Converts a type string (e.g. std_logic in VHDL) to a ValueType subclass object. | def a8Pe(Mm7l: str):
Mm7l = Mm7l.lower()
if Mm7l == 'std_logic':
return WcwU()
elif Mm7l.find('std_logic_vector') != -1:
njyT = ZbWC.compile('std_logic_vector\\s*\\(\\s*(\\d+)\\s+downto\\s+0\\s*\\)')
Ylbp = njyT.search(Mm7l)
if Ylbp is None:
njyT = ZbWC.compile('s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RdfN(gr26):\n for SkDf in list(haV6):\n if gr26 == SkDf.value:\n return SkDf\n raise ValueError('unsupported Type: %s' % gr26)",
"def PEJT(wEf2: str) -> uLKX[bool, int, float, str]:\n if wEf2.upper() == 'TRUE':\n return True\n elif wEf2.upper() == 'FALSE':\n return... | [
"0.78059393",
"0.71788085",
"0.7024344",
"0.700531",
"0.6965977",
"0.6915739",
"0.6819144",
"0.6770363",
"0.6767569",
"0.67486554",
"0.67096776",
"0.6635533",
"0.6621511",
"0.6609772",
"0.66058373",
"0.6604531",
"0.6604531",
"0.65758955",
"0.6531038",
"0.6524188",
"0.6466805"... | 0.6466544 | 21 |
The set of arguments for constructing a Prometheus resource. | def FIMM(Ro_8, *, lc0P: pulumi.Input[str], WJ1i: pulumi.Input[str], JvOq: Optional[pulumi.Input[str]]=None, c0yN: Optional[pulumi.Input[str]]=None, vFpg: Optional[pulumi.Input[str]]=None, fEOc: Optional[pulumi.Input[str]]=None, sy3p: Optional[pulumi.Input[str]]=None, dJ1p: Optional[pulumi.Input[Mapping[str, Any]]]=None... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: PrometheusArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: MetricArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def cyx0(**B2fa) -> dict:\n npfx = B2fa['cpus']\n EpYW = B2fa['gpus']\n return {'cpus': npfx, ... | [
"0.76836514",
"0.68881387",
"0.6440787",
"0.6368829",
"0.63434315",
"0.6323002",
"0.6323002",
"0.6303858",
"0.62548995",
"0.6249701",
"0.62235504",
"0.6221477",
"0.6217474",
"0.62053597",
"0.6138867",
"0.6113011",
"0.6113011",
"0.6113011",
"0.61080354",
"0.6106403",
"0.610587... | 0.0 | -1 |
The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set `grafana_instance_id` to `free`. | def WJ1i(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'grafana_instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJ1i(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'grafana_instance_id')",
"def WJ1i(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'grafana_instance_id')",
"def Mbnx(YKHO) -> str:\n return qe4Y.get(YKHO, 'hana_instance_id')",
"def o_gm():\n return qgI7.metadata.get('instance-i... | [
"0.81873155",
"0.80722886",
"0.73446715",
"0.7246139",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67449415",
"0.671132",
"0.66224843",
"0.6589081",
"0.65523094",
"0.64375347",
"0.64375347",
"0.64375347",
"0.64375347",
... | 0.80045676 | 2 |
The ID of the resource group. | def vFpg(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vFpg(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(... | [
"0.8664712",
"0.85919976",
"0.85919976",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82062095",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8163... | 0.79490334 | 31 |
The ID of the security group. This parameter is required, if you set `cluster_type` to `ecs` or `aliyuncs`(ASK instance). | def fEOc(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'security_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_IK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cluster_security_group_id')",
"def n_IK(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'cluster_security_group_id')",
"def fEOc(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'security_group_id')",
"def xcVw(YKHO) -> qe4Y.Input... | [
"0.84418815",
"0.8368449",
"0.82785434",
"0.7979423",
"0.78799725",
"0.78640586",
"0.7862162",
"0.7832474",
"0.78045946",
"0.7579878",
"0.7579878",
"0.75149095",
"0.7395651",
"0.7395651",
"0.7266556",
"0.7203681",
"0.71694106",
"0.71694106",
"0.7158059",
"0.71473575",
"0.7147... | 0.8411628 | 1 |
The child instance json string of the globalView instance. | def sy3p(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'sub_clusters_json') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.to_dict())",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.to_dict())",
"def wHJl(YKHO):\n... | [
"0.69039446",
"0.69039446",
"0.668522",
"0.6644427",
"0.6644427",
"0.6644427",
"0.6644427",
"0.6591589",
"0.658741",
"0.658741",
"0.658741",
"0.658741",
"0.658741",
"0.658741",
"0.65640575",
"0.65511364",
"0.636223",
"0.63563156",
"0.63448143",
"0.6341053",
"0.6327013",
"0.... | 0.0 | -1 |
The ID of the VPC. This parameter is required, if you set `cluster_type` to `ecs` or `aliyuncs`(ASK instance). | def xOeT(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOe... | [
"0.80993694",
"0.80993694",
"0.80993694",
"0.80993694",
"0.80993694",
"0.80993694",
"0.80993694",
"0.80993694",
"0.80993694",
"0.80993694",
"0.80993694",
"0.80993694",
"0.80993694",
"0.7995745",
"0.7995745",
"0.7995745",
"0.7995745",
"0.7995745",
"0.7995745",
"0.7872862",
"0.... | 0.7984463 | 24 |
The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set `grafana_instance_id` to `free`. | def WJ1i(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'grafana_instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJ1i(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'grafana_instance_id')",
"def WJ1i(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'grafana_instance_id')",
"def Mbnx(YKHO) -> str:\n return qe4Y.get(YKHO, 'hana_instance_id')",
"def o_gm():\n return qgI7.metadata.get('instance-id')",
... | [
"0.81873155",
"0.80045676",
"0.73446715",
"0.7246139",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67449415",
"0.671132",
"0.66224843",
"0.6589081",
"0.65523094",
"0.64375347",
"0.64375347",
"0.64375347",
"0.64375347",
... | 0.80722886 | 1 |
The ID of the resource group. | def vFpg(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vFpg(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(... | [
"0.8664712",
"0.85919976",
"0.85919976",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82062095",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8202333",
"0.8163... | 0.79490334 | 30 |
The ID of the security group. This parameter is required, if you set `cluster_type` to `ecs` or `aliyuncs`(ASK instance). | def fEOc(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'security_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_IK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cluster_security_group_id')",
"def n_IK(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'cluster_security_group_id')",
"def fEOc(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'security_group_id')",
"def xcVw(YKHO) -> qe4Y.Input... | [
"0.8441198",
"0.8367409",
"0.8278893",
"0.7980001",
"0.78802705",
"0.7864415",
"0.78624165",
"0.78325534",
"0.78049654",
"0.75796366",
"0.75796366",
"0.7515364",
"0.73968726",
"0.73968726",
"0.7267532",
"0.72044724",
"0.7171314",
"0.7171314",
"0.71597534",
"0.7148814",
"0.714... | 0.84120464 | 2 |
The child instance json string of the globalView instance. | def sy3p(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'sub_clusters_json') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.to_dict())",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.to_dict())",
"def wHJl(YKHO):\n... | [
"0.69039446",
"0.69039446",
"0.668522",
"0.6644427",
"0.6644427",
"0.6644427",
"0.6644427",
"0.6591589",
"0.658741",
"0.658741",
"0.658741",
"0.658741",
"0.658741",
"0.658741",
"0.65640575",
"0.65511364",
"0.636223",
"0.63563156",
"0.63448143",
"0.6341053",
"0.6327013",
"0.... | 0.0 | -1 |
The ID of the VPC. This parameter is required, if you set `cluster_type` to `ecs` or `aliyuncs`(ASK instance). | def xOeT(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOe... | [
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.79972273",
"0.79972273",
"0.79972273",
"0.79972273",
"0.79972273",
"0.79972273",
"0.78749454"... | 0.7986968 | 27 |
The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set `grafana_instance_id` to `free`. | def WJ1i(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'grafana_instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJ1i(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'grafana_instance_id')",
"def WJ1i(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'grafana_instance_id')",
"def Mbnx(YKHO) -> str:\n return qe4Y.get(YKHO, 'hana_instance_id')",
"def o_gm():\n return qgI7.metadata.get('instance-id... | [
"0.80722886",
"0.80045676",
"0.73446715",
"0.7246139",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67709833",
"0.67449415",
"0.671132",
"0.66224843",
"0.6589081",
"0.65523094",
"0.64375347",
"0.64375347",
"0.64375347",
"0.64375347",
... | 0.81873155 | 0 |