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 |
|---|---|---|---|---|---|---|
Representation of the object | def wHJl(YKHO, tX49=[]):
return super(myVA, YKHO).__repr__(['k=%d' % YKHO.__k, 'dfx=%s' % YKHO.__dfx, 'voting=%s' % repr(YKHO.__voting)] + tX49) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])",
"def wHJl(YKHO):\n pass",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):... | [
"0.79716",
"0.75059515",
"0.74530923",
"0.74530923",
"0.74530923",
"0.74530923",
"0.74530923",
"0.74310106",
"0.7386631",
"0.7373184",
"0.7365455",
"0.7365455",
"0.7365455",
"0.736231",
"0.73588294",
"0.73249376",
"0.7257963",
"0.7234122",
"0.7234122",
"0.7234122",
"0.7234122... | 0.0 | -1 |
Inicialize the Home page, finding all element in the page | def FIMM(YKHO, E_qD, RKD7, xgRs):
super().__init__(E_qD, RKD7, xgRs)
YKHO.__product_sort = qiar(E_qD, NGe5.product_sort, RKD7)
YKHO.__products = YKHO.get_elements(E_qD, NGe5.product_list, RKD7)
YKHO.__products_add_cart = YKHO.get_elements(E_qD, NGe5.products_add_cart, RKD7)
tO9_ = 'Enter to Home pag... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nmwa(YKHO):\n lHmx = YKHO.get_soup(gwbR)\n YKHO.assertOneExists(lHmx, '#page_discover')",
"def Ty0K(YKHO):\n pass",
"def c3q6(YKHO):\n t1c9 = YKHO.session.get(gHvc, headers=bEMb)\n if eMxI in t1c9.text:\n return YKHO.bypass_captcha(t1c9.text)\n else:\n print('NO CAPTCHA')\n ... | [
"0.6697018",
"0.66735005",
"0.62571937",
"0.6104209",
"0.6093641",
"0.6069654",
"0.6035942",
"0.59371936",
"0.59287256",
"0.58757013",
"0.58507854",
"0.5847302",
"0.5774559",
"0.5760556",
"0.57433057",
"0.5735142",
"0.5715942",
"0.5707272",
"0.56972754",
"0.56852984",
"0.5669... | 0.0 | -1 |
Destroy blank temp database after each test | def tBIc(YKHO):
NCls.drop_all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n P4t4.db.drop_database('local')\n P4t4.db.close()",
"def tBIc(YKHO):\n kO5c.tearDown()\n ... | [
"0.7994026",
"0.7994026",
"0.7994026",
"0.7994026",
"0.7994026",
"0.7994026",
"0.79939485",
"0.79194725",
"0.79194725",
"0.79194725",
"0.79194725",
"0.79194725",
"0.79194725",
"0.79194725",
"0.79194725",
"0.79194725",
"0.790249",
"0.78965896",
"0.7878383",
"0.785482",
"0.7806... | 0.7822717 | 21 |
Destroy blank temp database before each test | def tBIc(YKHO):
YKHO.logout()
pBmu.tearDown(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n P4t4.db.drop_database('local')\n P4t4.db.close()",
"def tBIc(YKHO):\n kO5c.tearDown()\n ... | [
"0.8047722",
"0.8047722",
"0.8047722",
"0.8047722",
"0.8047722",
"0.8047722",
"0.7994777",
"0.7969804",
"0.7969804",
"0.7969804",
"0.7969804",
"0.7969804",
"0.7969804",
"0.7969804",
"0.7969804",
"0.7969804",
"0.79655796",
"0.7890185",
"0.7890185",
"0.7883602",
"0.78631985",
... | 0.0 | -1 |
checks if every number in the rotated list is prime | def K40t(ybN4):
global primes
for r845 in ybN4:
if r845 not in rPed:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1qg(jzdc):\n return all((jzdc % YRbF for YRbF in Ni9Y(2, jzdc)))",
"def AbtR(yv6U):\n for WKvO in yv6U:\n if AUBy(WKvO) is False:\n return False\n return True",
"def T1qg(FGW3: int):\n for d6pt in range(2, FGW3 // 2 + 1):\n if FGW3 % d6pt == 0:\n return Fals... | [
"0.7136787",
"0.70996404",
"0.7029823",
"0.69317424",
"0.6901951",
"0.68883836",
"0.6878041",
"0.68713266",
"0.68181604",
"0.678866",
"0.6785131",
"0.67831355",
"0.67827743",
"0.67805016",
"0.67244774",
"0.6714764",
"0.6691928",
"0.6672485",
"0.66646934",
"0.66509926",
"0.664... | 0.6649542 | 20 |
Compute the Projection kernel entry for a tuple of points on the Grassmann manifold. | def dnZy(YKHO, Iwr5: Tuple) -> float:
Y7fn, g_QQ = Iwr5
Mkmy = oyIN.dot(Y7fn.T, g_QQ)
exwG = oyIN.linalg.norm(Mkmy, 'fro')
return exwG * exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T6p8(nMvt, h4Tb, LTIa):\n H2v2, TVTK, bGrB = LTIa.shape\n gMKC = oyIN.zeros((H2v2, TVTK, 2))\n lOe5 = nMvt.dot(h4Tb)\n for MKlR in range(H2v2):\n for yzQ0 in range(TVTK):\n XP5J = oyIN.append(LTIa[MKlR, yzQ0], 1)\n XP5J = lOe5.dot(XP5J)\n gMKC[MKlR, yzQ0, 0] ... | [
"0.5989121",
"0.5947493",
"0.59352136",
"0.58828646",
"0.58586144",
"0.5847349",
"0.58240473",
"0.5755863",
"0.5741005",
"0.5702317",
"0.5677599",
"0.56108564",
"0.5577968",
"0.55509806",
"0.5483102",
"0.5472181",
"0.5411593",
"0.5405778",
"0.5374564",
"0.52818304",
"0.527557... | 0.0 | -1 |
Add an edge to graph. | def rz7z(YKHO, KCHu, tTpl):
YKHO.graph[KCHu].append(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n if YKHO.has_edge(D70y) == 0:\n YKHO.__graph_dict[D70y[0]].append(D70y[1])",
"def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKHO.edges and e1vZ in YKHO.edges):\n raise ValueError('Node not in graph')\n YKHO.e... | [
"0.8422972",
"0.84143287",
"0.83437884",
"0.8320354",
"0.83120257",
"0.82301676",
"0.82103896",
"0.8130567",
"0.81110483",
"0.8101498",
"0.8035332",
"0.8014023",
"0.79848194",
"0.7974444",
"0.79484487",
"0.79014236",
"0.78658754",
"0.78506446",
"0.7726932",
"0.77191895",
"0.7... | 0.771675 | 20 |
Performs linear operation. Uses ortho init defined earlier. | def IzB4(WKvO, a6Jb, rrBf=None, CJGY=False, wOp_='gaussian', BwEc=0.001, e5sz=True, tzT4=0.0, zi3C=None):
ROpF = WKvO.get_shape().as_list()
with ZylS.variable_scope(rrBf or 'linear'):
if CJGY is True:
ZylS.get_variable_scope().reuse_variables()
Diq_ = None
if zi3C is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLgH(EcVT):\n if EcVT.shape[1] == 1:\n EcVT = -EcVT\n else:\n oyIN.random.seed(2)\n EcVT = EcVT @ HHfl.rvs(EcVT.shape[1])\n return EcVT",
"def HJVe(YKHO):\n MRLX, eJY7, Kd7Q, Tm7K, _zTI, Algd, BaTS, xOQL, lg4w, e42p, s2DS, zEvH, EXpf, Mv4x, N41D, LlaE = YKHO.mlist\n WKvO =... | [
"0.62840676",
"0.60858226",
"0.59118223",
"0.5900982",
"0.5850878",
"0.5816448",
"0.57267535",
"0.5716768",
"0.5703888",
"0.5648536",
"0.5641427",
"0.5621985",
"0.5519963",
"0.55011886",
"0.5492256",
"0.5490068",
"0.54772633",
"0.5467471",
"0.5465767",
"0.5430795",
"0.5398287... | 0.51393986 | 43 |
Retrieves the part name as a string. This extracts out the actual class name of the subclassed parts. | def W0tD(Emd4):
return '' if Emd4 is dBtH else Emd4.__name__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6pR(YKHO):\n assert YKHO.__partname, 'BasePart.partname referenced before assigned'\n return YKHO.__partname",
"def ouom(D8eZ):\n yF_1 = D8eZ.find('part-name')\n if yF_1 is not None:\n if yF_1.get('print-object', '') == 'no':\n return ''\n return yF_1.text if yF_1 is not Non... | [
"0.7131589",
"0.6476631",
"0.6407188",
"0.63222814",
"0.6201953",
"0.61973566",
"0.6118482",
"0.6115656",
"0.6095947",
"0.6074777",
"0.6066645",
"0.6066378",
"0.60211796",
"0.6016106",
"0.60045654",
"0.59925234",
"0.5983483",
"0.59754395",
"0.5960481",
"0.59549135",
"0.595402... | 0.0 | -1 |
Number of days left. | def rgaJ(ulaE):
yxS0 = qos3(ulaE)
return yxS0 - qcWV.datetime.utcnow().date() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F4g0(YKHO):\n return 1",
"def opNw(YKHO) -> int:\n return (qcWV.today() - YKHO.release_datetime).days",
"def rbgk(YKHO):\n try:\n return YKHO.count_days_from_now(YKHO.current_period_ends_at)\n except AttributeError:\n return 0",
"def Ezo4(YKHO) -> int:\n return qe4Y.get(YKHO,... | [
"0.7505091",
"0.7279096",
"0.7158447",
"0.71100044",
"0.7087657",
"0.70665115",
"0.7026382",
"0.7017739",
"0.6946899",
"0.69389665",
"0.6917387",
"0.6910316",
"0.6885656",
"0.68470883",
"0.6816302",
"0.6804258",
"0.6734145",
"0.670508",
"0.6679895",
"0.6673183",
"0.66385496",... | 0.0 | -1 |
In the forward pass we receive a Tensor containing the input and return a Tensor containing the output. ctx is a context object that can be used to stash information for backward computation. You can cache arbitrary objects for use in the backward pass using the ctx.save_for_backward method. | def KVH6(OaeV, input, q4r9=False, jmzt=1):
LgbT = vuvg.gumbel_softmax(input, hard=q4r9, tau=jmzt)
OaeV.save_for_backward(LgbT)
if q4r9:
bGrB, G1Hx = LgbT.max(-1)
SkUH = KeL5.new_zeros(*ROpF).scatter_(-1, G1Hx.view(-1, 1), 1.0)
LVAh = SkUH - LgbT.detach() + LgbT
else:
LVAh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZD5u(OaeV, pwN3):\n KMvS, AsGK, JBMS, input = OaeV.saved_tensors\n SGf8 = OaeV.saved_tensors\n mYpY, o7NL, meTd = OaeV.needs_input_grad\n ywwl, bGrB = pwN3.shape\n UAaU = (input - JBMS) * AsGK\n I7AS = pwN3 * KMvS\n xbi4 = pwN3.sum(dim=0) if meTd else None\n y_8r = (UAaU * pwN3).sum(dim... | [
"0.69556504",
"0.69066066",
"0.6810715",
"0.67043793",
"0.66899854",
"0.6684465",
"0.6660817",
"0.65307224",
"0.6530573",
"0.6509171",
"0.6470912",
"0.64638025",
"0.64638025",
"0.6454478",
"0.64297265",
"0.6386702",
"0.6381238",
"0.63718504",
"0.6353076",
"0.63463473",
"0.632... | 0.6345806 | 20 |
In the backward pass we receive a Tensor containing the gradient of the loss with respect to the output, and we need to compute the gradient of the loss with respect to the input. | def ZD5u(OaeV, pwN3):
input, = OaeV.saved_tensors
uGHv = pwN3.clone()
uGHv[input < 0] = 0
return uGHv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZD5u(OaeV, pwN3):\n KMvS, AsGK, JBMS, input = OaeV.saved_tensors\n SGf8 = OaeV.saved_tensors\n mYpY, o7NL, meTd = OaeV.needs_input_grad\n ywwl, bGrB = pwN3.shape\n UAaU = (input - JBMS) * AsGK\n I7AS = pwN3 * KMvS\n xbi4 = pwN3.sum(dim=0) if meTd else None\n y_8r = (UAaU * pwN3).sum(dim... | [
"0.8170905",
"0.81486243",
"0.79394436",
"0.7930217",
"0.79058665",
"0.79021686",
"0.789242",
"0.786225",
"0.78447706",
"0.7824903",
"0.780594",
"0.77870184",
"0.77862805",
"0.7772275",
"0.7772275",
"0.7753113",
"0.7695107",
"0.769183",
"0.7674699",
"0.7674699",
"0.7646278",
... | 0.75304437 | 24 |
Function to set a generic state vector for an agricultural site and the given temporal schedule. Following values are applied uniformily at all time points. These values are internally stored in lists 'self.generic_prior', 'self.generic_prior_unc', the | def qNZk(YKHO):
Xkrd = YKHO.get_npts()
YKHO.prstate = oyIN.empty((3, Xkrd), dtype=oyIN.float64)
YKHO.prstate[0, :] = YKHO.generic_prior[0]
YKHO.prstate[1, :] = YKHO.generic_prior[1]
YKHO.prstate[2, :] = YKHO.generic_prior[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TpQl(YKHO):\n Gh6M = None\n ygSF = None\n if YKHO.prior_inifile != None:\n Gh6M, ygSF = YKHO._setprior_from_inifile()\n elif YKHO.use_generic_prior:\n YKHO._setprior_generic_agriculture()\n ygSF = YKHO.generic_prior_unc\n else:\n Xkrd = YKHO.get_npts()\n CaXC =... | [
"0.5813575",
"0.5620336",
"0.54812396",
"0.5368272",
"0.5233314",
"0.5173843",
"0.51605034",
"0.51191336",
"0.51130575",
"0.50942117",
"0.5091906",
"0.50888133",
"0.5086407",
"0.50613683",
"0.5054067",
"0.5034559",
"0.50307506",
"0.4995448",
"0.49933112",
"0.49864486",
"0.498... | 0.6586572 | 0 |
Use this method to load the weights from a pretrained BERT checkpoint into a bert layer. | def P3KK(OS_B: tf.keras.layers.Dense, bKP2):
xoDP = ZylS.train.load_checkpoint(bKP2)
U6Vn = set()
n8_M = ZbWC.compile('(.*)/(pooler)/(.+):0')
kUBT = n8_M.match(OS_B.weights[0].name)
assert kUBT, 'Unexpected bert layer: {} weight:{}'.format(OS_B, OS_B.weights[0].name)
y0cW = kUBT.group(1)
JdB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(YKHO):\n if isinstance(YKHO.pretrained, str):\n bo34 = UKxV()\n bo34.info(f'load model from: {YKHO.pretrained}')\n Nh79(YKHO, YKHO.pretrained, strict=False, logger=bo34)\n elif YKHO.pretrained is None:\n pass\n else:\n raise TypeError('pretrained must be a str o... | [
"0.7444649",
"0.7164474",
"0.7139277",
"0.7118373",
"0.7118373",
"0.7068311",
"0.70365864",
"0.7004185",
"0.6978368",
"0.69456017",
"0.6905531",
"0.6851603",
"0.6828723",
"0.68099254",
"0.67591745",
"0.6751652",
"0.670792",
"0.6690212",
"0.66624564",
"0.66270065",
"0.66268235... | 0.0 | -1 |
Given the dataset type, target language and whether or not to use augmented data, loads and returns numpy array representations of the source text, translation text and scores. | def UlWi(sB1G=MTN2.TRAIN, zkbl=FoKK.GERMAN, _b5h=False):
if zkbl == FoKK.ENGLISH:
raise ValueError('Target language cannot be english')
XSj5 = sCeX
if zkbl == FoKK.GERMAN:
NMcE = 'en-de' if not _b5h else 'en-de-aug'
rQow = 'ende'
pmON = Hy7s.path.join(XSj5, NMcE)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i9pi():\n eUr9 = list(open('./data/rt-polarity.pos', 'r', encoding='latin-1').readlines())\n eUr9 = [KCHu.strip() for KCHu in eUr9]\n M8js = list(open('./data/rt-polarity.neg', 'r', encoding='latin-1').readlines())\n M8js = [KCHu.strip() for KCHu in M8js]\n QBNL = eUr9 + M8js\n QBNL = [LNLQ(_... | [
"0.62523055",
"0.6046321",
"0.60108787",
"0.5998523",
"0.5959485",
"0.5901574",
"0.5884368",
"0.58632356",
"0.5829691",
"0.58163095",
"0.5732789",
"0.57060385",
"0.5692011",
"0.56848377",
"0.56594086",
"0.5616305",
"0.5579834",
"0.5576734",
"0.5559516",
"0.55583185",
"0.55228... | 0.7841989 | 0 |
Given some data (word_embeddings or other), of shape (x, variable, dimensionality) returns the data padded in the 2nd dimension to size length i.e. (x, length, dimensionality) | def PnDp(ZO3Q, u54L, dvgN):
for yAmx in ZO3Q:
jJCD = u54L - len(yAmx)
assert jJCD >= 0
for bGrB in range(jJCD):
yAmx.append(dvgN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XSUz(nPrm, BcCR):\n U5bT = []\n ifEa = [0] * PSrQ.n_features\n neCP = 0\n for yAmx, Crrw, hkS8 in nPrm:\n a2mU = Crrw[:]\n Xop2 = yAmx[:]\n oc34 = len(Xop2)\n yk4i = BcCR - oc34\n if yk4i > 0:\n Xop2 += [ifEa] * yk4i\n a2mU += [neCP] * yk4i\n... | [
"0.69606996",
"0.6676879",
"0.66666895",
"0.6657077",
"0.64124817",
"0.6351787",
"0.63387066",
"0.6336817",
"0.6294361",
"0.6288716",
"0.62751466",
"0.6253283",
"0.62522787",
"0.62497723",
"0.6223753",
"0.61585337",
"0.6148455",
"0.61200553",
"0.60852736",
"0.60821986",
"0.60... | 0.6371053 | 5 |
Called when the user specifies an intent for this skill | def E97p(McO3, cuiw):
print('on_intent requestId=' + McO3['requestId'] + ', sessionId=' + cuiw['sessionId'])
E2VF = McO3['intent']
q8Qy = McO3['intent']['name']
if q8Qy == 'GetLatestAgendaIntent':
return BDMu(cuiw)
elif q8Qy == 'GetLatestMotionsIntent':
return Qu4i(cuiw)
elif q8Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r... | [
"0.7143966",
"0.6956116",
"0.6949057",
"0.6905333",
"0.68928874",
"0.67641324",
"0.6754843",
"0.6722764",
"0.6720773",
"0.67161995",
"0.6699252",
"0.6691263",
"0.6670276",
"0.6645522",
"0.6642719",
"0.6638686",
"0.6607724",
"0.6594981",
"0.6575682",
"0.6570076",
"0.65620786",... | 0.6483012 | 32 |
Convenience method to store a password in the OS keyring using `keyring` lib. It is equivalent to `ODSClient(...).store_apikey_in_keyring(apikey)` | def ztEB(N719='public', NKRf=None, Rmo_=t2OH, rSTc=None):
x0hE = aBMa(platform_id=N719, base_url=NKRf, keyring_entries_username=Rmo_)
x0hE.store_apikey_in_keyring(apikey=rSTc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BIza(NtEF, jTXt):\n return aTOD.set_password(UOTy, NtEF, jTXt)",
"def RUfy(Jsg7):\n import keyring\n tH0x._save_password_in_keyring('salt.cloud.provider.test_case_provider', 'fake_username', 'fake_password_c8231')\n nYNo = keyring.get_password('salt.cloud.provider.test_case_provider', 'fake_usern... | [
"0.76529884",
"0.644169",
"0.6083549",
"0.5919272",
"0.5844136",
"0.57820386",
"0.56884843",
"0.5641347",
"0.563579",
"0.5603136",
"0.5586879",
"0.55301625",
"0.5526738",
"0.55232507",
"0.55232507",
"0.54684925",
"0.53964293",
"0.53880364",
"0.53459287",
"0.5335912",
"0.53333... | 0.74452686 | 1 |
Query the Accounts collection to get an account by its name One user may have access to multiple Google Analytics accounts. This method returns an account object that corresponds to the desired account based on the account name. | def QQYO(YKHO, n8Ek):
L8Py = YKHO.service_old.management().accounts().list().execute()
ZrNc = None
if L8Py.get('items'):
ZrNc = next((WIq2 for WIq2 in L8Py.get('items') if WIq2['name'] == n8Ek))
if ZrNc is None:
GoSj = 'The account named ' + n8Ek + ' does not exist!'
print(GoSj)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AmjW(YKHO, mWFP):\n return YKHO._accounts[mWFP]",
"def QQYO(YKHO, mWFP):\n return next((ZrNc for ZrNc in YKHO.accounts if ZrNc.name.lower() == mWFP.lower()), None)",
"def QQYO(YKHO, mWFP):\n return next((ZrNc for ZrNc in YKHO.accounts if ZrNc.ynab_account_name.lower() == mWFP.lower()), None)",
"... | [
"0.82401174",
"0.7593005",
"0.7454623",
"0.7142398",
"0.69273245",
"0.6810475",
"0.67763954",
"0.66882944",
"0.6613426",
"0.655244",
"0.6541101",
"0.6520345",
"0.64827585",
"0.64827585",
"0.63991284",
"0.63316983",
"0.62688005",
"0.6233087",
"0.61885405",
"0.6112431",
"0.6086... | 0.7724099 | 1 |
Calculate massweighted cloud fraction. | def wxYN(MowZ, CUYh, BPsE, bmJ5=1):
wmKQ = fMBi(MowZ, CUYh, n_jobs=bmJ5)
MowZ.add_aux_coord(wmKQ, oyIN.arange(MowZ.ndim))
wzlc = MowZ.coord('air_pressure')
H3Ly = []
for c5uu in BPsE:
YODM = MowZ.copy()
ZHfW = oyIN.where(wzlc.points <= c5uu[0], False, True)
ZHfW |= oyIN.where... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bMbF(YKHO):\n return YKHO.volume * YKHO.density",
"def mCNE(g8x2) -> float:\n B_rG = g8x2.composition.reduced_composition\n _oEk = len(B_rG.elements)\n znnC = B_rG.get_el_amt_dict()\n UUZ1 = (_oEk - 1) * B_rG.num_atoms\n MyOv = E6VQ(znnC.items(), 2)\n KzpB = 0\n for q2Xo in MyOv:\n ... | [
"0.64634335",
"0.63038385",
"0.62398696",
"0.6238555",
"0.6099755",
"0.60895747",
"0.6054101",
"0.60429215",
"0.6031469",
"0.60293615",
"0.59668475",
"0.59626186",
"0.59592646",
"0.5957317",
"0.5957317",
"0.59062994",
"0.5887171",
"0.58794415",
"0.58742815",
"0.58735025",
"0.... | 0.58538055 | 20 |
Similarity metric using Pearson correlatin coefficient. | def X9H0(SLsv, CjQX):
lQ3t = nZ2P(SLsv, CjQX)
return lQ3t.rvalue | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8BN(YKHO):\n Hccu = gKk5(YKHO.rating_matrix, YKHO.rating_matrix)\n Hccu = rLdf.DataFrame(Hccu, index=YKHO.customer_vendor_matrix.index, columns=YKHO.customer_vendor_matrix.index)\n return (Hccu,)",
"def EjGg(YKHO) -> float:\n fvDH = [list(jzdc) for jzdc in zip(YKHO.true, YKHO.predicted)]\n M_... | [
"0.71205443",
"0.681783",
"0.67118037",
"0.66502756",
"0.6642287",
"0.6542144",
"0.6512295",
"0.6512295",
"0.6512295",
"0.6512295",
"0.6500488",
"0.6494058",
"0.6494058",
"0.6494058",
"0.648428",
"0.64834064",
"0.6482181",
"0.64727235",
"0.6457254",
"0.6436918",
"0.6282316",
... | 0.63309145 | 20 |
Get default configuration settings. | def AYkv(_Fei):
_Fei = _qLf(_Fei)
_Fei.setdefault('metric', 'regression_slope')
_Fei.setdefault('n_jobs', 1)
_Fei.setdefault('savefig_kwargs', {'bbox_inches': 'tight', 'dpi': 600, 'orientation': 'landscape'})
bo34.info('Using at most %i processes', _Fei['n_jobs'])
return _Fei | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qimH():\n return {}",
"def CVPJ(YKHO):\n return YKHO._defaults",
"def muwo(YKHO):\n return YKHO._config_parser.defaults()",
"def yDgW(YKHO):\n return GPtr.read(oAb3.Path(xAKo).parent / 'ext.conf')",
"def muwo(YKHO):\n return YKHO.conf.get('defaults', [])",
"def qimH(YKHO) -> RnTg.docki... | [
"0.82081205",
"0.80987155",
"0.80368286",
"0.7921888",
"0.7851286",
"0.7840802",
"0.77894753",
"0.7750592",
"0.77450675",
"0.7685755",
"0.76519674",
"0.75427884",
"0.7527601",
"0.74951",
"0.7460322",
"0.7412091",
"0.7374259",
"0.7373014",
"0.7340594",
"0.73059815",
"0.7295828... | 0.6798135 | 47 |
Validate valid python version. | def fbKZ(Emd4, hkxX: Dict) -> cuzp:
if HwRy.version_info < (3, 9):
raise ValueError(f'This tool relies on Python 3.9 or higher (as it uses new functionality in the `ast` module, you have Python version: {HwRy.version}')
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cT7F():\n DpZH = HwRy.version.split()[0]\n if DpZH < '2.6' or DpZH >= '3':\n raise ajc2('You are running an incompatible version of Python, please use 2.6 or 2.7')",
"def AANs(YKHO):\n l3AA = bWeC.which('python')\n if not l3AA:\n tO9_ = 'Python must be available in PATH in order to ... | [
"0.77807486",
"0.76029795",
"0.75831395",
"0.75310683",
"0.75310683",
"0.75310683",
"0.72753096",
"0.724242",
"0.71019304",
"0.70628154",
"0.6997715",
"0.697339",
"0.69500786",
"0.69321376",
"0.6927702",
"0.6902898",
"0.68952495",
"0.6840301",
"0.68330806",
"0.6768792",
"0.66... | 0.7437353 | 6 |
Create a dict of optimizer parameters. | def U4Bf(K0do: torch.optim.Optimizer, DTb0: Iterable[str]=['optim']) -> cuzp[str, ImMB]:
QT0b = K0do.state_dict()['param_groups']
if len(QT0b) != len(DTb0):
raise ValueError('The number of parameter groups in ``optimizer`` ({}) must match the number of ``param_names`` ({}).'.format(len(QT0b), len(DTb0))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GmcC(YKHO):\n return {'lr': YKHO.args.lr[0], 'momentum': YKHO.args.momentum, 'weight_decay': YKHO.args.weight_decay}",
"def kUsO(YKHO) -> cuzp:\n y8rd: cuzp = {}\n Eojz: x1iM[str] = ['g_leak', 'g_kvhh', 'g_cav', 'g_kca', 'g_nap']\n VPqD: oyIN.ndarray = 4 * oyIN.random.rand(5) - 2\n gKnk: oyIN.... | [
"0.72385114",
"0.69783306",
"0.6964503",
"0.6911176",
"0.6843733",
"0.67937267",
"0.6792942",
"0.6786122",
"0.67746353",
"0.6741739",
"0.66908497",
"0.66908497",
"0.66908497",
"0.6674964",
"0.66521084",
"0.661157",
"0.6611476",
"0.65916234",
"0.657634",
"0.654863",
"0.6532321... | 0.6660357 | 14 |
Paginate a queryset if required, either returning a page object, or `None` if pagination is not configured for this view. | def J7Hw(YKHO, SR0I, QePW, tTee=None):
bNfU = YKHO.get_page_size(QePW)
if not bNfU:
return None
oDn_ = YKHO.django_paginator_class(SR0I, bNfU)
klRQ = YKHO.page_query_param
if klRQ in YKHO.last_page_strings:
klRQ = oDn_.num_pages
try:
YKHO.page = oDn_.page(klRQ)
except... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J7Hw(YKHO, SR0I, QePW, tTee=None):\n bNfU = QePW.GET.get('page_size')\n if not bNfU:\n return None\n oDn_ = YKHO.django_paginator_class(SR0I, bNfU)\n klRQ = QePW.query_params.get(YKHO.page_query_param, 1)\n if klRQ in YKHO.last_page_strings:\n klRQ = oDn_.num_pages\n try:\n ... | [
"0.802451",
"0.80088323",
"0.80088323",
"0.7760657",
"0.7672235",
"0.7434823",
"0.7382449",
"0.7245751",
"0.7225355",
"0.7143413",
"0.70101964",
"0.6943953",
"0.68669254",
"0.64697224",
"0.64116096",
"0.64089006",
"0.63194555",
"0.6310484",
"0.6271545",
"0.6238474",
"0.621370... | 0.8202232 | 1 |
Converts sentence to list of words. Gets rid of non alphanumeric characters | def KK_S(yAmx):
return list(filter(lambda GIN8: GIN8 != '', [ZbWC.sub('[^A-Za-z0-9]+', '', GIN8).lower() for GIN8 in yAmx.replace("' ", "'").split(' ')])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bb19(yAmx: str) -> x1iM[str]:\n return list(map(wm2H, yAmx.split(' ')))",
"def coXY(_dZy: str) -> x1iM[str]:\n return [GIN8 for GIN8 in _dZy.split() if GIN8 not in vIwR.punctuation]",
"def Htwi(yAmx):\n RLKa = ZbWC.findall(H_yU, yAmx)\n V22M = [WKvO.lower() for WKvO in RLKa if WKvO is not '']\n... | [
"0.85336757",
"0.8362783",
"0.8027865",
"0.7856944",
"0.78478515",
"0.76956433",
"0.76570415",
"0.7593957",
"0.7554642",
"0.7469246",
"0.7464422",
"0.7406909",
"0.735986",
"0.7341267",
"0.7340095",
"0.7340095",
"0.7337841",
"0.730512",
"0.7290949",
"0.72855604",
"0.727572",
... | 0.8240545 | 2 |
Convenience method to get the single ServiceConfig instance. | def xP7V():
return GBug() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(Emd4) -> '__Config':\n if Emd4.__instance is None:\n Emd4.__instance = Emd4.__Config()\n return Emd4.__instance",
"def tgzD() -> h8nf[PSrQ]:\n return kNfJ.get()",
"def tgzD() -> PSrQ:\n return k7py('config', PnaH)",
"def iSDi(Emd4):\n if not Emd4._instance:\n Emd4._insta... | [
"0.6943933",
"0.6745661",
"0.67014253",
"0.6694083",
"0.66413873",
"0.6599076",
"0.6578767",
"0.65283936",
"0.64251965",
"0.63892514",
"0.63338834",
"0.63241243",
"0.6323865",
"0.63193214",
"0.62747204",
"0.62361825",
"0.62361825",
"0.62361825",
"0.62361825",
"0.62361825",
"0... | 0.743418 | 0 |
create onehot representations for the categorical features pad the representations to a desired length | def kLcZ(YKHO, jQ3Z, ZH6t, BcCR):
t5YN = []
for Z9rn in ZH6t:
FKY5 = [[YKHO.name_to_num[Z9rn][YRbF]] for YRbF in jQ3Z[Z9rn]]
t5YN.append(S5Za(FKY5, maxlen=BcCR, padding='post'))
return t5YN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def odIT(WKvO, svPB=7):\n mktQ = RHxJ(n_values=svPB)\n return mktQ.fit_transform(oyIN.array(WKvO).reshape(-1, 1)).toarray()",
"def WGab(YKHO):\n for fvDH in YKHO.cat_cols:\n if fvDH in YKHO.train_df and fvDH + str('Encoded') not in YKHO.ord_cols:\n if YKHO.test_df is not None:\n ... | [
"0.75773233",
"0.7402805",
"0.7354181",
"0.73366404",
"0.7316448",
"0.72809476",
"0.7280105",
"0.7268368",
"0.7257575",
"0.72524047",
"0.72516143",
"0.72323954",
"0.72224694",
"0.72210765",
"0.72142446",
"0.7211858",
"0.7210938",
"0.7193842",
"0.71873",
"0.71873",
"0.71873",
... | 0.0 | -1 |
Converts a list of numbers to the corresponding categorical variable names. Returns the list of names | def SG2w(YKHO, B9cE, aO51):
return [YKHO.num_to_name[B9cE][YRbF] for YRbF in aO51] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yvj7(nPIK: Pipeline, iMY6: str, OeUg: List[str]) -> x1iM[str]:\n EMG_ = OeUg + [f'{OeUg[or8S]}_missing' for or8S in nPIK['preprocess'].named_transformers_[iMY6]['impute'].indicator_.features_]\n CJ9N = {f'x{or8S}': BZ2A for or8S, BZ2A in enumerate(EMG_)}\n Nava = nPIK['preprocess'].named_transformers_... | [
"0.65199685",
"0.61879873",
"0.6121893",
"0.6006947",
"0.5973956",
"0.5926613",
"0.57295877",
"0.5704969",
"0.5704969",
"0.57017463",
"0.56798106",
"0.5671474",
"0.5653411",
"0.5653411",
"0.56417495",
"0.5622783",
"0.56143886",
"0.5577268",
"0.55672175",
"0.5560988",
"0.55430... | 0.67168105 | 0 |
Save the embeddings in an output directory, return a dictionary with the embeddings information | def DNxO(Ov4V, qPm0, nbMA, rYGi):
u7DH = {}
for Z9rn in nbMA:
u7DH[Z9rn] = qPm0.extract_weights(Z9rn.replace(' ', '_') + '_embedding')
Txl5 = rYGi.retrieve_names(Z9rn, range(0, u7DH[Z9rn].shape[0]))
tmNM = rLdf.DataFrame(data=u7DH[Z9rn])
tmNM[Z9rn] = Txl5
tmNM.to_csv(Ov4V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I5Xq(YKHO):\n gXgy = YKHO.config.path_embeddings / YKHO.model.model_name\n gXgy.mkdir(parents=True, exist_ok=True)\n sSWc = YKHO.model.config.knowledge_graph.read_cache_data('idx2entity')\n RkQ3 = YKHO.model.config.knowledge_graph.read_cache_data('idx2relation')\n vORK = rLdf.Series(sSWc)\n P... | [
"0.7066615",
"0.7063558",
"0.6892149",
"0.67970455",
"0.64997715",
"0.64932716",
"0.6325217",
"0.6312836",
"0.6249985",
"0.62133414",
"0.6206542",
"0.6203132",
"0.61268353",
"0.6110195",
"0.6105065",
"0.60575145",
"0.60389006",
"0.6030839",
"0.6028754",
"0.6005243",
"0.599163... | 0.6625312 | 4 |
Ensure that get_full_name method works properly | def Uve4(YKHO):
CBIr = Wqvn.objects.get(email='test@test.test')
YKHO.assertEqual(CBIr.get_full_name(), 'TestName TestSecondName') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def flGP(YKHO):\n if YKHO.middle_name:\n return u'%s %s %s' % (YKHO.first_name, YKHO.middle_name, YKHO.last_name)\n else:\n return u'%s %s' % (YKHO.first_name, YKHO.last_name)",
"def ntOp(YKH... | [
"0.8004604",
"0.7935145",
"0.77175975",
"0.7646127",
"0.7646127",
"0.7645311",
"0.7637316",
"0.7615078",
"0.7602463",
"0.7586801",
"0.75739616",
"0.7571767",
"0.755733",
"0.7540053",
"0.7540053",
"0.7540053",
"0.7540053",
"0.7540053",
"0.7540053",
"0.7540053",
"0.7540053",
... | 0.0 | -1 |
A tiny little helper function to create the basis for the predictions parameter in the submit_forecast function. You pass an IFP from the questions API into this function and receive a list of 'answer_id' and 'value' dictionaries that are needed to submit a forecast. | def Zapx(YKHO, kHgV):
hlel = [{'answer_id': jzdc['id'], 'value': jzdc['probability']} for jzdc in kHgV['answers']]
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dC8f(YKHO, JVBp, Si4S, N6Z1):\n bD7m = YKHO.external_prediction_sets_url\n NArs = {'external_prediction_set': {'question_id': JVBp, 'external_predictor_attributes': {'method_name': Si4S}, 'external_predictions_attributes': N6Z1}}\n return YKHO._post(bD7m, NArs)",
"def YEmv():\n N6Z1 = list(oyIN.r... | [
"0.63360405",
"0.61785835",
"0.5961585",
"0.57127106",
"0.56618065",
"0.55746925",
"0.55559796",
"0.5479239",
"0.54554874",
"0.5409359",
"0.53902596",
"0.5368174",
"0.5350171",
"0.53045076",
"0.53019005",
"0.5295385",
"0.5280624",
"0.52626216",
"0.5249886",
"0.52299315",
"0.5... | 0.669773 | 0 |
Extended equal procedure fore self and other entities. | def QNH8(YKHO, Elif):
SMcL = mKke.compare_entities(YKHO, Elif)
YKHO.diff_info = SMcL['self_diff']
Elif.diff_info = SMcL['other_diff']
return SMcL['is_equal'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPi6(YKHO, Elif):\n ...",
"def xa14(YKHO, Elif):\n return InF8(YKHO, Elif)",
"def T0rY(YKHO, Elif):\n return id(YKHO) == id(Elif)",
"def g_Z3(YKHO, Elif):\n return YKHO.id == Elif.getIdent()",
"def xa14(YKHO, Elif):\n raise NotImplementedError",
"def xa14(YKHO, Elif):\n raise NotImp... | [
"0.69346255",
"0.6825996",
"0.6752676",
"0.67184854",
"0.6714158",
"0.6714158",
"0.6714158",
"0.67133766",
"0.66982013",
"0.6688542",
"0.66864824",
"0.66741943",
"0.66741943",
"0.66508985",
"0.66482925",
"0.6637339",
"0.6637339",
"0.6633079",
"0.6633079",
"0.6633079",
"0.6633... | 0.7059251 | 0 |
Explicitly return list of all entities' classes. | def ff7o():
return [A1QR, u49C, tof8, iWiS, _dnR, dC3i, GUoC, _Aqu, odwL] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sq52():\n NdSz = ahCL._decl_class_registry.values()\n return [Emd4 for Emd4 in NdSz if as9g(Emd4) and issubclass(Emd4, ahCL)]",
"def kxkk(YKHO):\n KndY = list(YKHO.extended_class_only_graph.nodes())\n KndY = [siC4(yaEe, YKHO) for yaEe in KndY]\n return KndY",
"def KndY(YKHO):\n return lis... | [
"0.82343",
"0.73591477",
"0.732288",
"0.7090031",
"0.70738024",
"0.7059396",
"0.6987407",
"0.69329345",
"0.6873289",
"0.67893845",
"0.67853063",
"0.6754753",
"0.6750397",
"0.6736268",
"0.6701195",
"0.6689434",
"0.6689434",
"0.6689434",
"0.6689434",
"0.6689434",
"0.6689434",
... | 0.8093427 | 1 |
The set of annotations guaranteed to be provided when we are done. | def nY2i(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XgyP(YKHO, XgyP):\n YKHO._annotations = XgyP",
"def F3kp(YKHO):\n YKHO.needs_annotations_dict = True",
"def XgyP(YKHO):\n return YKHO._annotations",
"def NaKj(YKHO):\n return YKHO.needs_annotations_dict",
"def L5xk(YKHO):\n YKHO.annotation_date_set = False\n YKHO.annotation_comment_se... | [
"0.7077331",
"0.67481226",
"0.6719404",
"0.6718761",
"0.66960335",
"0.6573956",
"0.65451825",
"0.64201224",
"0.63767236",
"0.63706946",
"0.6365993",
"0.6365993",
"0.6291518",
"0.6272305",
"0.6200193",
"0.6190159",
"0.61348283",
"0.6043598",
"0.6043598",
"0.6032766",
"0.597254... | 0.0 | -1 |
Creates a protobuf .pb file from the frozen graph of a keras model stored in a .h5 file format. The output file is stored in the same location as input. | def sK7F():
q8mv = BKva.join(vPBo.input_dir, vPBo.json_model_fname)
dC43 = BKva.join(vPBo.input_dir, vPBo.weights_fname)
gXgy = BKva.splitext(q8mv)[0][:-6] + 'graph_w' + str(dC43.split('_')[-1][:-3]) + '.pb'
print('Loading Model: ' + q8mv)
print('Loading Weights: ' + dC43)
G1Hx.set_learning_phas... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Evv(zBEL, kmfe, ZGE9, dHW8='output_', shry=True):\n if BKva.exists(kmfe) == False:\n Hy7s.mkdir(kmfe)\n wBtM = list()\n for YRbF in range(len(zBEL.outputs)):\n wBtM.append(dHW8 + str(YRbF + 1))\n ZylS.identity(zBEL.output[YRbF], dHW8 + str(YRbF + 1))\n cb_Q = nMvt.get_session(... | [
"0.7638469",
"0.71506625",
"0.7001762",
"0.68717015",
"0.68486005",
"0.67391104",
"0.657081",
"0.6468009",
"0.64114964",
"0.6406961",
"0.63215756",
"0.62240565",
"0.62180364",
"0.6177826",
"0.6170048",
"0.61514425",
"0.61447823",
"0.61435026",
"0.6143453",
"0.61322534",
"0.60... | 0.67930347 | 5 |
Prepare the dict of values to create the new invoice line for a sales order line. This method may be overridden to implement custom invoice generation (making sure to call super() to establish a clean extension chain). | def R4sR(YKHO, LSr3):
Ylbp = {}
Z31E = YKHO.product_id.property_account_income_id.id or YKHO.product_id.categ_id.property_account_income_categ_id.id
if not Z31E:
raise cAM_(bGrB('Please define income account for this product: "%s" (id:%d).') % (YKHO.product_id.name, YKHO.product_id.id))
FpYa = Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WiRs(YKHO, KBgZ, PObu, T4Wy, Nqlg, QpfX=None):\n RQhD = super(cqvu, YKHO)._prepare_invoice(KBgZ, PObu, T4Wy, Nqlg, QpfX)\n RQhD.update({'partner_shipping_id': T4Wy.partner_shipping_id.id})\n RQhD.update(YKHO._inv_get(KBgZ, PObu, T4Wy, context=QpfX))\n return RQhD",
"def BLIT(YKHO, hfhN, euPe):\n ... | [
"0.78784865",
"0.75810105",
"0.73986036",
"0.73717624",
"0.73172545",
"0.71517307",
"0.71019447",
"0.70597476",
"0.70097494",
"0.7009054",
"0.69369483",
"0.6776965",
"0.65319914",
"0.6512631",
"0.6510116",
"0.6502725",
"0.64527595",
"0.6390906",
"0.63380307",
"0.63025445",
"0... | 0.71242726 | 6 |
Test if the name of cli.args long option valid | def WNUe(YKHO):
mTdZ = [d7pR for d7pR in KWZ_.values() if len(d7pR.flags) == 1 and d7pR.flags[0].startswith('-')]
for d7pR in mTdZ:
assert jYH0.match(d7pR.flags[0]) is None, f'{d7pR.flags[0]} is not match' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rUrJ() -> bool:\n if len(E0cB) == 1 or '--help' in E0cB:\n print(e2h5)\n return False\n return True",
"def tMTP(YKHO):\n MfyV = [d7pR for d7pR in KWZ_.values() if len(d7pR.flags) == 2 and d7pR.flags[0].startswith('-')]\n for d7pR in MfyV:\n assert UpM7.match(d7pR.flags[0]) is... | [
"0.70487946",
"0.6918986",
"0.65828025",
"0.6523338",
"0.6483785",
"0.64769727",
"0.64443225",
"0.64287376",
"0.6407862",
"0.6404428",
"0.63955575",
"0.6387425",
"0.6326687",
"0.63120097",
"0.6293055",
"0.6290903",
"0.628635",
"0.62862563",
"0.62781674",
"0.6260102",
"0.62550... | 0.76031315 | 0 |
Test if the name of cli.args mix option (s, long) valid | def tMTP(YKHO):
MfyV = [d7pR for d7pR in KWZ_.values() if len(d7pR.flags) == 2 and d7pR.flags[0].startswith('-')]
for d7pR in MfyV:
assert UpM7.match(d7pR.flags[0]) is not None, f'{d7pR.flags[0]} is not match'
assert jYH0.match(d7pR.flags[1]) is None, f'{d7pR.flags[1]} is not match' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WNUe(YKHO):\n mTdZ = [d7pR for d7pR in KWZ_.values() if len(d7pR.flags) == 1 and d7pR.flags[0].startswith('-')]\n for d7pR in mTdZ:\n assert jYH0.match(d7pR.flags[0]) is None, f'{d7pR.flags[0]} is not match'",
"def SXHT(YKHO, y7GR):\n if len(y7GR) < 2 or y7GR[0] != '-':\n return False\... | [
"0.72207177",
"0.6647978",
"0.6436925",
"0.6318208",
"0.62797594",
"0.6185453",
"0.6156047",
"0.6134145",
"0.60912627",
"0.60906214",
"0.60894126",
"0.6083184",
"0.60704386",
"0.6065211",
"0.6061725",
"0.6061026",
"0.6060489",
"0.6047591",
"0.60256904",
"0.6011794",
"0.597587... | 0.76159865 | 0 |
Test if each of cli._COMMANDS.arg flags without conflict | def fSIm(YKHO):
V0Dt = {H5ew: wEf2 for H5ew, wEf2 in dIE3.__dict__.items() if H5ew.isupper() and H5ew.startswith('COMMANDS')}
for uOe2, oUZx in V0Dt.items():
for zJeG in oUZx:
dQgj = [jzdc.flags[0] for jzdc in zJeG.args if len(jzdc.flags) == 1 and (not jzdc.flags[0].startswith('-'))]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksrU(fukt, JuuK, m3u3):\n if len(set(fukt).intersection(set(LL7c))) > 0:\n print('error some flags appear in two lists of flags, with and without required values:', set(fukt).intersection(set(LL7c)))\n Kn1o()\n HwRy.exit(1)\n for I1mm in set(fukt).union(set(JuuK)):\n if I1mm ... | [
"0.6978081",
"0.6943144",
"0.69152963",
"0.6863492",
"0.68248564",
"0.67891896",
"0.66566175",
"0.6592277",
"0.6573175",
"0.6534608",
"0.65314615",
"0.6497277",
"0.6440176",
"0.64200884",
"0.63851255",
"0.6239222",
"0.6234022",
"0.61467624",
"0.6136724",
"0.6131858",
"0.61279... | 0.74612933 | 0 |
Test that invalid choice raises for exportformat in db exportcleaned command. | def qPP6(YKHO, BTTQ, fFLr):
with QZXY.redirect_stderr(xDSY.StringIO()) as wIbz:
with trZe.raises(SystemExit):
wvEv = dIE3.get_parser()
wvEv.parse_args(['db', 'export-archived', '--export-format', fFLr, '--output-path', 'mydir'])
tf1m = wIbz.getvalue()
assert tf1m == f"\na... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AsTY(YKHO):\n w2Td = ['transfer-format no-answer;', 'transfer-format !one-answer;', 'transfer-format many-answer;']\n Aofo = dSGV.runTests(w2Td, failureTests=True)\n YKHO.assertTrue(Aofo[0])",
"def h7yc(FMLJ, YBcr):\n wFBx = CIGB(ZrZb)\n Rnkz = FMLJ.lower() if FMLJ != 'auto' else 'vhdr'\n w... | [
"0.6524202",
"0.6345172",
"0.61557037",
"0.6053377",
"0.60256803",
"0.601475",
"0.59988064",
"0.59711176",
"0.57923037",
"0.578008",
"0.57769775",
"0.5774371",
"0.576682",
"0.576327",
"0.57609767",
"0.57180697",
"0.57043785",
"0.5695613",
"0.5687859",
"0.5651353",
"0.5648456"... | 0.7939143 | 0 |
Get the unique items in iterables while preserving order. Note that this mutates the seen set provided only when the returned generator is used. | def kcwm(PwWw, *ix7N):
Qw6N = PwWw.add
return (YRbF for YRbF in eNCK(*ix7N) if YRbF not in PwWw and (not Qw6N(YRbF))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kcwm(OxJJ):\n ue8M = set()\n for ZfUD in OxJJ:\n if ZfUD not in ue8M:\n yield ZfUD\n ue8M.add(ZfUD)",
"def kcwm(YKHO):\n return YKHO.element_wise(lambda Xtuq: list(set(Xtuq)))",
"def tBNJ(*ix7N):\n PwWw = set()\n for U6D_ in ix7N:\n for ZfUD in U6D_:\n ... | [
"0.74047774",
"0.7234851",
"0.70630944",
"0.69512564",
"0.6903696",
"0.6863216",
"0.6783394",
"0.6723641",
"0.6719547",
"0.66293585",
"0.6628292",
"0.6572777",
"0.65655386",
"0.6559209",
"0.6538916",
"0.6449778",
"0.6445427",
"0.6426239",
"0.6385657",
"0.6366434",
"0.63497436... | 0.8025429 | 0 |
Abstracts returning the appropriate path separator for the given path string. This implementation always returns ``os.sep`` Abstracted to make test mocking easier. | def wnef(pmON):
return Hy7s.sep | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vCnU(YKHO) -> str:\n return YKHO._path_sep",
"def WHml(u1SI):\n return u1SI.replace('/', Hy7s.path.sep)",
"def wtS9(pmON: str) -> str:\n if not pmON:\n return None\n elif Hy7s.sep != Qumu.sep:\n return pmON.replace(Hy7s.sep, Qumu.sep)\n else:\n return pmON",
"def DjJ_(... | [
"0.75904137",
"0.73666114",
"0.68218964",
"0.64080817",
"0.6314331",
"0.61740553",
"0.6152027",
"0.6105847",
"0.60140324",
"0.5990186",
"0.5971919",
"0.59635407",
"0.59512156",
"0.5944136",
"0.5921321",
"0.58842045",
"0.58823323",
"0.5798806",
"0.56834227",
"0.56743294",
"0.5... | 0.83338016 | 0 |
Calculate sum of normalzied discounted cumulative gain for the predictions The correct prediction will have a relevance of 1, incorrect predictions will have a relevance of 0. Weight the relevance values such that it is reduced logarithmically proportional to it its position | def pHfF(aTLP, Crrw):
IpNr = oyIN.where(oyIN.equal(aTLP, Crrw))[1]
SXIR = oyIN.sum(1.0 / oyIN.log2(IpNr + 2))
return SXIR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AkRf(jiMk):\n SXIR = 0\n for xDcj in jiMk:\n toXj = [A97Q[0] for A97Q in xDcj[1]]\n x2PR = 0\n for YRbF, wvau in enumerate(toXj, 1):\n x2PR += wvau / epAf.log(YRbF + 1, 2)\n fTAW = 0\n for YRbF, wvau in enumerate(sorted(toXj, reverse=True), 1):\n f... | [
"0.74499345",
"0.69735",
"0.6779795",
"0.6764704",
"0.6729282",
"0.66514224",
"0.66035104",
"0.6570051",
"0.65157557",
"0.65036315",
"0.64907336",
"0.6484084",
"0.647415",
"0.6419924",
"0.64034486",
"0.63766825",
"0.63745046",
"0.6372564",
"0.6336742",
"0.63309205",
"0.632455... | 0.6312037 | 21 |
find top k predictions from probability matrix and call ndcg to find accuracy of predictions | def o4bf(kVLz, Pnha):
Crrw = Pnha.get_label()
H42b = kVLz.argsort(axis=1)[:, ::-1][:, :5]
Crrw = Crrw[:, None]
return ('error', 1 - pHfF(H42b, Crrw) / len(Crrw)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JkI8(Y8eF: np.ndarray, BFeB: np.ndarray, G1Hx: int) -> float:\n PCYz = BFeB.argsort()[:, -G1Hx:]\n hHld = oyIN.max(PCYz == Y8eF.reshape(-1, 1), axis=1)\n return hHld.mean()",
"def GSh7(hlel: torch.Tensor, pan_: torch.Tensor, hz5a=(1, 5)) -> x1iM[ht2j.FloatTensor]:\n with ht2j.no_grad():\n ... | [
"0.7248039",
"0.71244645",
"0.70865405",
"0.69146085",
"0.68664426",
"0.6852818",
"0.6850756",
"0.68490434",
"0.6848725",
"0.6846973",
"0.6845912",
"0.68352395",
"0.6822426",
"0.6819039",
"0.6816156",
"0.6816156",
"0.6811358",
"0.68099844",
"0.6801106",
"0.6792978",
"0.678651... | 0.73447526 | 0 |
Calculate NDCG for users who chose US or NDF, NDF is encoded as 7 and US is encoded as 10. | def q1I9(kVLz, Pnha):
Crrw = Pnha.get_label()
nvEb = kVLz.argsort(axis=1)[:, ::-1][:, :5]
tv2L = oyIN.logical_or(Crrw == 7, Crrw == 10)
Crrw = Crrw[tv2L]
nvEb = nvEb[tv2L, :]
Crrw = Crrw[:, None]
return ('error', 1 - pHfF(nvEb, Crrw) / len(Crrw)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i_dD(YKHO, XP5J, DW23=None, QOe9=None, HRrY=None, VZwO=None):\n if DW23 is None:\n DW23 = oyIN.unique(YKHO.edge_idx_d[:, 0])\n if QOe9 is None:\n QOe9 = YKHO.edge_idx_d\n if HRrY is None:\n HRrY = YKHO.recommend(XP5J, DW23, VZwO).indices\n i_dD = oyIN.zeros(DW23.shape[0])\n ... | [
"0.6374063",
"0.61929274",
"0.61216813",
"0.599862",
"0.5938341",
"0.5889138",
"0.5863265",
"0.5796126",
"0.5702564",
"0.56214136",
"0.560524",
"0.55582345",
"0.54458314",
"0.54176307",
"0.5393563",
"0.536228",
"0.5340128",
"0.5337987",
"0.53153545",
"0.53123546",
"0.530981",... | 0.68104607 | 0 |
determines if an integer is prime | def T1qg(exwG):
if exwG < 2:
return False
if exwG == 2 or exwG == 3:
return True
elif exwG % 2 == 0:
return False
else:
WKvO = 0
for YRbF in range(3, exwG, 2):
if exwG % YRbF == 0:
WKvO = 1
return WKvO == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n return T1qg(exwG)",
"def T1qg(exwG):\n return kU5Q(exwG)",
"def T1qg(jzdc):\n return all((jzdc % YRbF for YRbF in Ni9Y(2, jzdc)))",
"def GiUy(f813):\n I1mm = 0\n for hkxX in range(2, f813 // 2):\n if f813 % hkxX == 0:\n ... | [
"0.8185056",
"0.8142938",
"0.8030971",
"0.79956126",
"0.79694474",
"0.7964449",
"0.7923807",
"0.79162204",
"0.79139185",
"0.7847631",
"0.7838183",
"0.78058064",
"0.7803274",
"0.77988964",
"0.77880716",
"0.7782016",
"0.77706134",
"0.776488",
"0.776313",
"0.77542764",
"0.775187... | 0.76925707 | 28 |
(Animal) > int Returns age of the animal. | def lUqL(YKHO):
return YKHO.age | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_N1(YKHO) -> int:\n return YKHO.age",
"def N_N1(YKHO):\n yo7_ = qcWV.now()\n return yo7_.year - YKHO.date_of_birth.year - ((yo7_.month, YKHO.date_of_birth.day) < (YKHO.date_of_birth.month, YKHO.date_of_birth.day))",
"def N_N1(YKHO):\n return YKHO.age",
"def N_N1(YKHO):\n return YKHO.age",... | [
"0.7051849",
"0.67881364",
"0.6729541",
"0.6669159",
"0.6616464",
"0.6616464",
"0.6616464",
"0.6581302",
"0.652346",
"0.6514881",
"0.6449324",
"0.64486474",
"0.6385499",
"0.63503283",
"0.6349098",
"0.63053936",
"0.6255605",
"0.62038404",
"0.61942184",
"0.6182354",
"0.6159466"... | 0.6557319 | 8 |
Return a list of RGB hex colors | def JTXs(Emd4):
return ['#{:02x}{:02x}{:02x}'.format(*Emd4._COLORS[KCHu]) for KCHu in Emd4._STATES] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jw9H(YKHO):\n return [(0, 30, 255), (0, 30, 120)]",
"def Kt7N():\n return ['#8c99fc', '#cacefd', '#fff1d7', '#feda98', '#fda85a', '#fc6647']",
"def Vnz5(um2A):\n K7yu = []\n for YRbF in range(len(um2A)):\n d7Eb = []\n for r845 in range(3):\n mLGw = int(um2A[YRbF][r845] ... | [
"0.78017205",
"0.77264136",
"0.7716189",
"0.76912445",
"0.7516858",
"0.7501724",
"0.7350642",
"0.73296577",
"0.72455823",
"0.722948",
"0.7195119",
"0.71948755",
"0.7185311",
"0.7165035",
"0.7163713",
"0.7135043",
"0.7131917",
"0.70695525",
"0.7038964",
"0.6997226",
"0.6985322... | 0.7692371 | 3 |
Get the prejob entry the prejob entry | def t1YV(YKHO):
return YKHO.getDagNode('A') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCfW(YKHO):\n return YKHO.batch[YKHO.job_id]",
"def oXFT(YKHO):\n return YKHO.getDagNode('B')",
"def bc0t(YKHO):\n return YKHO.entries[0]",
"def bTKY(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'entry')",
"def bTKY(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'entry')",
"def... | [
"0.6210873",
"0.613403",
"0.6073351",
"0.6036146",
"0.59708685",
"0.5865204",
"0.58616924",
"0.58538574",
"0.5853126",
"0.5843087",
"0.5803405",
"0.57641816",
"0.57561696",
"0.56714994",
"0.5656283",
"0.5649353",
"0.5643404",
"0.5635437",
"0.5634933",
"0.56343967",
"0.5583054... | 0.7597189 | 0 |
Get full AABB of a robot including all of its constituent links. | def otzT(Zi9o: int, MYdN: int):
p2QI = TRdr.getNumJoints(MYdN, physicsClientId=Zi9o)
UuhE = oyIN.asarray(TRdr.getAABB(MYdN, -1, physicsClientId=Zi9o), dtype=oyIN.float32)
for YRbF in range(p2QI):
Odv3 = TRdr.getAABB(MYdN, YRbF, physicsClientId=Zi9o)
UuhE[0] = oyIN.minimum(UuhE[0], Odv3[0], o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HA4D(YKHO):\n Z9rn, KCHu = (oyIN.cos(YKHO.eangles), oyIN.sin(YKHO.eangles))\n Mkmy = oyIN.array([[Z9rn, KCHu], [KCHu, Z9rn]])\n return mawX(YKHO.get_com(), oyIN.abs(oyIN.dot(Mkmy, YKHO.halfexts)), 0)",
"def PUzz(YKHO):\n YKHO.BB = YKHO.geos.abs_el(0).BB\n for TuoA in YKHO.geos.abs_iter():\n ... | [
"0.6518899",
"0.53489625",
"0.5252934",
"0.52497023",
"0.5244017",
"0.5213568",
"0.52010304",
"0.51806635",
"0.5148503",
"0.5114957",
"0.50895464",
"0.50618726",
"0.50212526",
"0.49962375",
"0.4957139",
"0.4954778",
"0.49483874",
"0.49288315",
"0.4927399",
"0.4905914",
"0.489... | 0.72287107 | 0 |
Converts original node to a supported mean in standard format | def SZFh(YKHO, smhR, zeP3):
YKHO.check_original_node(smhR, graph_type=YKHO.GRAPH_TYPE)
MPlV = YKHO._get_array_from_input_indx(smhR, zeP3, 1).flatten()
g4mz = YKHO._get_tf_attr(smhR)
Nswt = g4mz['keep_dims'].b
return YKHO.do_generic_transform(smhR.name, smhR.inputs[0], smhR.outputs[0], smhR.control_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XOBR(Q6kx, **B2fa):\n mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)\n BuKN = o8Kj.get('axis', None)\n MPlV = Mlpe(str(BuKN)) if BuKN is not None else None\n JsoO = Mqp0(o8Kj, 'keepdims')\n if MPlV is not None:\n Q6kx = BlLG.helper.make_node('ReduceMean', inputs=uvt8, outputs=[mWFP], axes=MPlV, keep... | [
"0.6887938",
"0.6722752",
"0.6722752",
"0.6722752",
"0.6722752",
"0.6722752",
"0.6652827",
"0.631472",
"0.63068414",
"0.62871385",
"0.6136223",
"0.61268616",
"0.6105754",
"0.60690373",
"0.603044",
"0.5990987",
"0.5987904",
"0.59780973",
"0.5974779",
"0.5974779",
"0.5971508",
... | 0.6003082 | 15 |
Get a dict from genome name to the portion of the given genome that is not N in the given HAL, clamped to 1. | def sg4a(QJno, J0of):
print('Getting N counts')
def PL80(l5nL):
qIxc = ['halStats', QJno, '--baseComp', '{},1'.format(l5nL)]
NBjn = Yn3K.Popen(qIxc, stdout=Yn3K.PIPE)
B3ne = d0fr(NBjn.stdout)
if NBjn.wait() != 0:
raise RuntimeError('halStats --baseComp failed')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fhxj(YKHO, exwG, Op6c={}):\n if YKHO.sequence == '':\n YKHO.fetchSequence()\n YKHO.sequence = YKHO.sequence.upper()\n for YRbF in range(0, len(YKHO.sequence) - exwG):\n Rkvh = YKHO.sequence[YRbF:][:exwG]\n Op6c[Rkvh] = 1 + Op6c.get(Rkvh, 0)\n del Rkvh\n return Op6c",
"... | [
"0.57511705",
"0.55012983",
"0.53374684",
"0.5161188",
"0.5050414",
"0.50026673",
"0.49359605",
"0.49297646",
"0.49011675",
"0.48885104",
"0.48684856",
"0.48600802",
"0.4762523",
"0.47580677",
"0.4727564",
"0.47163197",
"0.4650112",
"0.46268028",
"0.46193525",
"0.4599772",
"0... | 0.0 | -1 |
Make a square gaussian kernel. size is the length of a side of the square fwhm is fullwidthhalfmaximum, which can be thought of as an effective radius. | def YVhi(zNig, rXfu, hgjH=None):
WKvO = H4yH.arange(0, zNig, 1, float)
LVAh = WKvO[:, H4yH.newaxis]
if hgjH is None:
nJ9F = nxyw = zNig // 2
else:
nJ9F = hgjH[0]
nxyw = hgjH[1]
return H4yH.exp(-4 * H4yH.log(2) * ((WKvO - nJ9F) ** 2 + (LVAh - nxyw) ** 2) / rXfu ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h3z1(zNig, M06Y=None):\n zNig = int(zNig)\n if not M06Y:\n M06Y = zNig\n else:\n M06Y = int(M06Y)\n WKvO, LVAh = Au3N[-zNig:zNig + 1, -M06Y:M06Y + 1]\n Oa1e = kLQb(-(WKvO ** 2 / float(zNig) + LVAh ** 2 / float(M06Y)))\n return Oa1e / Oa1e.sum()",
"def VU7a(Ot1W: (int, tuple, l... | [
"0.7614286",
"0.743839",
"0.7424667",
"0.7346859",
"0.73442197",
"0.7202767",
"0.7045155",
"0.6979886",
"0.6977487",
"0.69571656",
"0.69122183",
"0.6891391",
"0.68551385",
"0.6829858",
"0.6829858",
"0.6826354",
"0.68087506",
"0.67269003",
"0.6707125",
"0.66836387",
"0.6665604... | 0.68075943 | 17 |
Closes the database connection at the end of the request | def ssTe(P1dF):
if hasattr(Oa1e, 'sql_db'):
Oa1e.sql_db.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rYe1():\n NCls.close()",
"def yZlT(Emd4):\n NCls.close()",
"def DDI8(YKHO):\n RdPg.debug('DB -> close')\n YKHO.conn.close()",
"def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None",
"def DDI8(YKHO):\n YKHO.db.close()",
"def DDI8(YKHO):\... | [
"0.834472",
"0.8134503",
"0.7940359",
"0.78554434",
"0.7845815",
"0.7792569",
"0.7687412",
"0.76865757",
"0.7674482",
"0.76627046",
"0.7659166",
"0.7653159",
"0.7652093",
"0.7645819",
"0.7633246",
"0.7599752",
"0.7599752",
"0.7599752",
"0.7599752",
"0.7599752",
"0.7599752",
... | 0.0 | -1 |
Test to make sure the username provided could be a valid RIT username | def Z3WL(w2Td: str) -> bool:
if cbNg.match(w2Td) is not None:
return True
cuiw['last_error'] = "That's not a valid username."
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZjPj(NtEF):\n if not NtEF:\n return 'You must specify your archive.org username.'",
"def mxq9(YKHO, NtEF):\n if YKHO.username_regex.search(NtEF) is not None:\n print('Correct username')\n return True\n else:\n print('Wrong username')\n return False",
"def LCZz(Nt... | [
"0.78789365",
"0.77336276",
"0.7622192",
"0.76004624",
"0.755972",
"0.753597",
"0.74149907",
"0.74023473",
"0.7397648",
"0.72887707",
"0.7288002",
"0.72054714",
"0.719427",
"0.71611166",
"0.71464074",
"0.71354204",
"0.7135151",
"0.709273",
"0.70865047",
"0.708289",
"0.708074"... | 0.7312459 | 9 |
Returns True if the user is an administrator, False if they are not ( or if they don't exist, since nonexistent users cannot be administrators. | def _Kb1(NtEF: str) -> bool:
NCls = GGod()
return int(NCls.get_user_by_name(NtEF)['is_admin']) == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return True\n return False",
"def Jo_v(CBIr):\n return CBIr in PDtd",
"def uJBC(YKHO, CBIr):\n if CBIr.id in YKHO.admins:\n return True\n return False",
"def _Kb1(YKHO, CBIr):\n return CBIr.name ... | [
"0.8255431",
"0.82282704",
"0.82228655",
"0.8150719",
"0.8073879",
"0.79476106",
"0.790607",
"0.7839168",
"0.78317195",
"0.7809062",
"0.77876943",
"0.77876943",
"0.77611953",
"0.7758643",
"0.7706952",
"0.7660713",
"0.76585585",
"0.76406413",
"0.7602822",
"0.7597656",
"0.75902... | 0.7733793 | 14 |
Returns True if the user is in the database, False if they are not. | def eTTr(NtEF: str) -> bool:
NCls = GGod()
if NtEF is None:
return False
return not NCls.get_user_by_name(NtEF) is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Okbp(YKHO) -> bool:\n xDcj = 'SELECT * \\n FROM Users \\n WHERE Username=?;'\n return len(YKHO.db.fetchall(xDcj, values=(YKHO.username,))) > 0",
"def W4qM(YKHO):\n hUns = False\n if Jpbe.UserInfo.objects.filter(user_id__username=YKHO.username, is_active=True).e... | [
"0.7963935",
"0.72297883",
"0.7207318",
"0.71753895",
"0.7087796",
"0.705574",
"0.7015935",
"0.69771445",
"0.6972047",
"0.69649184",
"0.69422454",
"0.6928089",
"0.69182426",
"0.69182426",
"0.69173586",
"0.69110435",
"0.68909276",
"0.6862055",
"0.68538314",
"0.6829451",
"0.679... | 0.66294426 | 31 |
Returns True if the user is enabled, False if they are not. | def n30Z(NtEF: str) -> bool:
NCls = GGod()
if NtEF is None:
return False
return NCls.get_user_by_name(NtEF)[3] == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NlPO(YKHO, CBIr):\n from webnotes.utils import cint\n if CBIr == 'Administrator':\n return\n if not cint(AMOk.conn.get_value('Profile', CBIr, 'enabled')):\n YKHO.fail('User disabled or missing')",
"def n30Z(YKHO):\n return YKHO.enabled",
"def n30Z(YKHO) -> bool:\n return YKHO._... | [
"0.7977749",
"0.76793694",
"0.75934845",
"0.75929815",
"0.75929815",
"0.75929815",
"0.75929815",
"0.75929815",
"0.75929815",
"0.75795215",
"0.75795215",
"0.75795215",
"0.75795215",
"0.75795215",
"0.75795215",
"0.75795215",
"0.75795215",
"0.75795215",
"0.75795215",
"0.75795215",... | 0.7859502 | 1 |
Respond to requests for the /index page. | def d6pt():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return (TvZl('index.html'), 200)",
"def d6pt():\n return (TvZl('index.html'), 200)",
"def d6pt():\n _hkX = Yxsy(TvZl('index.html', title='Home'))\n return _hkX",
"def Vn7Z(YKHO):\n YKHO.client.get('/')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return T... | [
"0.8013304",
"0.79146504",
"0.7891352",
"0.7824804",
"0.76392025",
"0.7636938",
"0.7636938",
"0.7631324",
"0.7631067",
"0.76206243",
"0.75650007",
"0.75650007",
"0.7528473",
"0.7528473",
"0.7528473",
"0.7528473",
"0.7528473",
"0.7528473",
"0.7528473",
"0.7528473",
"0.7528473"... | 0.7539462 | 27 |
Respond to requests for the /main page. | def oUBX():
NCls = GGod()
wzkt = qcWV.datetime.now()
DFSo = P4t4.config['HC_CONFIG'].values()
DFSo.sort(key=zjDh.Room.sortkey)
D5mh = NCls.get_newest_counts(3, WRxI.NewestSort.ENTERED_TIME)
MVRD = []
for UHFx in D5mh:
dxJW = NCls.get_roomdata_for_count_id(UHFx['id'])
qLtD = {... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tk5Y():\n if QePW.headers['Accept'] == 'application/json':\n return ('Welcome\\n\\n', 200)\n else:\n return vKnz(nKyW('index'))",
"def Ozko():\n return TvZl('index.html')",
"def Ozko():\n return TvZl('main_page.html')",
"def tk5Y(YKHO):\n return YKHO.app.get('/', headers=YKHO... | [
"0.7142308",
"0.70636314",
"0.6903149",
"0.68820095",
"0.67918116",
"0.6785164",
"0.6775684",
"0.6775684",
"0.6724704",
"0.6717272",
"0.6634704",
"0.66281825",
"0.6619429",
"0.6619429",
"0.66075295",
"0.6605944",
"0.6587914",
"0.6587914",
"0.65544164",
"0.65462655",
"0.651314... | 0.0 | -1 |
The set of arguments for constructing a OpenIdConnectProvider resource. | def FIMM(Ro_8, *, zb3C: pulumi.Input[str], qQNS: pulumi.Input[str], zamQ: pulumi.Input[str], TRLE: pulumi.Input[str], bSEa: pulumi.Input[str], Cxz5: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, VlC0: Optional[pulumi.Input[str]]=None, ZQhQ: Optional[pulumi.Input[bool]]=None, TQ6o: Optional[p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: OpenIdConnectProviderArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: ConsumerOauth2Args, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: OAuthArgs, VKhi: Optional[pulumi.ResourceOptions]=No... | [
"0.755379",
"0.64180404",
"0.6012785",
"0.5714407",
"0.5685427",
"0.56413275",
"0.56387186",
"0.56061673",
"0.55925465",
"0.55485886",
"0.55302787",
"0.549922",
"0.54649246",
"0.54310805",
"0.54239976",
"0.5415862",
"0.54022753",
"0.5384019",
"0.53765005",
"0.53718",
"0.53645... | 0.5083163 | 60 |
The name of the resource group. The name is case insensitive. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_grou... | [
"0.8591517",
"0.83646333",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.8175502",
"0.8084937",
"0.8084937",
"0.8084937",
"0.8084937",
"0.8084937",
"0.... | 0.8087981 | 49 |
The name of the API Management service. | def bSEa(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'service_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO):\n return YKHO._service_name",
"def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> qe4Y.Output[str]:\n... | [
"0.7601886",
"0.7601886",
"0.7245596",
"0.71570414",
"0.71570414",
"0.71570414",
"0.7035657",
"0.70280814",
"0.6857412",
"0.6830366",
"0.6798942",
"0.67852134",
"0.6732609",
"0.6732609",
"0.6732609",
"0.6711877",
"0.6648105",
"0.66418576",
"0.65912753",
"0.6554579",
"0.634530... | 0.6982778 | 10 |
If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided. | def ZQhQ(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'use_in_api_documentation') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I9CB(YKHO) -> h8nf[qe4Y.Input['OpenSearchOpensearchUserConfigOpenidArgs']]:\n return qe4Y.get(YKHO, 'openid')",
"def EPDO(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'open_access_enabled')",
"def ZQhQ(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'use_in_api_documentation')",
... | [
"0.5820401",
"0.57344157",
"0.5719072",
"0.5496937",
"0.5439381",
"0.53700346",
"0.5334672",
"0.5334672",
"0.5313755",
"0.53108734",
"0.51705146",
"0.51009053",
"0.5100864",
"0.5046569",
"0.5046569",
"0.49825174",
"0.4981729",
"0.49672022",
"0.49327353",
"0.49327353",
"0.4923... | 0.5913999 | 0 |
If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided. | def TQ6o(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'use_in_test_console') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g1Hf(YKHO):\n YKHO.attempt_login(200)",
"def kT1P(kT1P):\n if kT1P in ('alditalk', 'netzclub', 'congstar'):\n return True\n else:\n return False",
"def TQ6o(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'use_in_test_console')",
"def RPUd():\n return GPtr.is_provid... | [
"0.6032821",
"0.5824308",
"0.55178535",
"0.5453098",
"0.53928345",
"0.53456354",
"0.5332073",
"0.5317057",
"0.52994496",
"0.5226725",
"0.5226725",
"0.52034736",
"0.5201415",
"0.51880836",
"0.51880836",
"0.51832134",
"0.51577765",
"0.5144394",
"0.5124156",
"0.51016015",
"0.509... | 0.57748115 | 2 |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" | def type(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.7918516",
"0.7918516",
"0.7866337",
"0.7866337",
"0.7866337",
"0.7866337",
"0.7866337",
"0.7708053",
"0.75534964",
"0.7282099",
"0.70591027",
"0.6979169",
"0.69202054",
"0.6868452",
"0.67303157",
"0.67049116",
"0.6654272",
"0.6646357",
"0.66396123",
"0.66396123",
"0.663961... | 0.0 | -1 |
If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided. | def ZQhQ(YKHO) -> qe4Y.Output[h8nf[bool]]:
return qe4Y.get(YKHO, 'use_in_api_documentation') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZQhQ(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'use_in_api_documentation')",
"def I9CB(YKHO) -> h8nf[qe4Y.Input['OpenSearchOpensearchUserConfigOpenidArgs']]:\n return qe4Y.get(YKHO, 'openid')",
"def EPDO(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'open_access_enabled')",
"... | [
"0.59132946",
"0.5819817",
"0.57342637",
"0.54987097",
"0.54397446",
"0.53713304",
"0.53374505",
"0.53374505",
"0.5316145",
"0.5308196",
"0.5173217",
"0.5100801",
"0.50997686",
"0.5049572",
"0.5049572",
"0.49861863",
"0.49842972",
"0.49659583",
"0.49350378",
"0.49350378",
"0.... | 0.5717998 | 3 |
If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided. | def TQ6o(YKHO) -> qe4Y.Output[h8nf[bool]]:
return qe4Y.get(YKHO, 'use_in_test_console') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g1Hf(YKHO):\n YKHO.attempt_login(200)",
"def kT1P(kT1P):\n if kT1P in ('alditalk', 'netzclub', 'congstar'):\n return True\n else:\n return False",
"def TQ6o(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'use_in_test_console')",
"def RPUd():\n return GPtr.is_provide... | [
"0.60335296",
"0.5824544",
"0.57736",
"0.54545283",
"0.53939056",
"0.5346869",
"0.5330024",
"0.53161216",
"0.5298322",
"0.52281344",
"0.52281344",
"0.5203175",
"0.5200465",
"0.51872015",
"0.51872015",
"0.5182298",
"0.515659",
"0.51430994",
"0.5124126",
"0.5101889",
"0.5097933... | 0.551661 | 3 |
If cache has not been modified for a certain period of time > Call cache_expiration | def q4lI(YKHO, fkZM):
s_nr = 1000
U2Xk = fkZM - YKHO.time_created
if U2Xk > s_nr:
YKHO.cache_expiration() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IFPH(YKHO):\n DwC1 = 'Good bye!'\n LgTF.add('bye', DwC1, 1)\n assert LgTF.get('bye') == DwC1\n ITS7.sleep(2)\n assert LgTF.get('bye') == None",
"def q5dS(YKHO):\n for Exbl in YKHO.servers:\n Exbl.cache.hash_table.clear()\n Exbl.cache.cur_size = 0",
"def aVRN(DhtL):\n wzkt... | [
"0.7299",
"0.7113362",
"0.7045958",
"0.70365405",
"0.69072556",
"0.6836212",
"0.6830515",
"0.6820161",
"0.66594964",
"0.6586818",
"0.658607",
"0.65856355",
"0.656018",
"0.6550977",
"0.6532097",
"0.6492891",
"0.6387115",
"0.63761497",
"0.63723713",
"0.63621426",
"0.63465744",
... | 0.7367351 | 0 |
Returns true if two grids are identical. | def DgBy(Cs6h: List[List[str]], Elif: List[List[str]]) -> bool:
for rdlD in range(len(Cs6h)):
for fvDH in range(len(Cs6h[rdlD])):
if Cs6h[rdlD][fvDH] != Elif[rdlD][fvDH]:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yu09(oMoz, HwYe):\n if oMoz == HwYe:\n return True\n return False",
"def yu09(oMoz, HwYe):\n if oMoz == HwYe:\n return True\n else:\n return False",
"def yu09(oMoz, HwYe):\n for YRbF in range(4):\n for r845 in range(4):\n if oMoz[YRbF][r845] != HwYe[YRb... | [
"0.8874632",
"0.8846738",
"0.8679359",
"0.8580424",
"0.8521882",
"0.84081334",
"0.81844366",
"0.8146913",
"0.79227364",
"0.7629054",
"0.7594243",
"0.7594243",
"0.7581608",
"0.75567365",
"0.75564873",
"0.75505114",
"0.7498745",
"0.7435768",
"0.7334657",
"0.73153305",
"0.725373... | 0.7902166 | 9 |
return list of tokens in the chunk | def sxVV(YKHO):
list = []
for YRbF in range(YKHO.startIdx, YKHO.endIdx + 1):
eOtH = YKHO.sentence[YRbF]
list.append(eOtH)
return list | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s2mk(YKHO):\n return YKHO.iter_tokens(YKHO._blob)",
"def sxVV(YKHO):\n m65D = []\n for grSM in YKHO.dtrs:\n if grSM.isToken():\n m65D += [grSM]\n elif grSM.isChunk():\n m65D += grSM.dtrs\n else:\n bo34.warn('Sentence element that is not a chunk o... | [
"0.77799284",
"0.7539872",
"0.7372555",
"0.72691774",
"0.72216874",
"0.7207633",
"0.7207633",
"0.7207633",
"0.7166675",
"0.7158124",
"0.70420665",
"0.698481",
"0.69665545",
"0.6961893",
"0.6822629",
"0.6821286",
"0.67915696",
"0.6785925",
"0.6766042",
"0.6728448",
"0.6727657"... | 0.7451886 | 2 |
compare strings with spaces removed | def zv_m(jzdc: Union[str, Iterable[str]], Fg_i: Union[str, Iterable[str]]) -> bool:
if isinstance(jzdc, str) and isinstance(Fg_i, str):
return jzdc.replace(' ', '') == Fg_i.replace(' ', '')
elif isinstance(jzdc, iu5r) and isinstance(Fg_i, iu5r):
return all((zv_m(NRKk, bfEg) for NRKk, bfEg in zip... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BxtT(YKHO, UXsi, c163):\n if UXsi.lower().strip().replace('_', ' ') == c163.lower().strip().replace('_', ' '):\n return 1\n return 0",
"def z12x(jzdc, Fg_i):\n return jzdc.strip().lower() == Fg_i.strip().lower()",
"def s31n(n2Q1, SpII):\n if not n2Q1 and (not SpII):\n return True\... | [
"0.73184097",
"0.7179956",
"0.6800987",
"0.6746601",
"0.666357",
"0.6595954",
"0.6568298",
"0.6344792",
"0.6273209",
"0.62271565",
"0.6207043",
"0.61632603",
"0.61584306",
"0.605877",
"0.6014423",
"0.59590864",
"0.5944405",
"0.593397",
"0.593309",
"0.5924363",
"0.59123504",
... | 0.0 | -1 |
Returns the area of a square | def FmDM(HEZd):
return HEZd ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(TVTK, H2v2):\n return TVTK * H2v2",
"def Rqyz(TVTK: number, H2v2: number) -> FGW3:\n f0tD = TVTK * H2v2\n return f0tD",
"def BHTL(YKHO):\n jzdc, Fg_i = YKHO.sides\n f0tD = jzdc * Fg_i\n print(f'Are of rectangle is: {f0tD}')",
"def f0tD(WKvO, LVAh):\n return WKvO * LVAh / 2",
"... | [
"0.8090838",
"0.80154926",
"0.7954106",
"0.7824471",
"0.7783778",
"0.7700798",
"0.76872426",
"0.76741797",
"0.7667355",
"0.765625",
"0.7632898",
"0.7591796",
"0.7591796",
"0.759148",
"0.7570914",
"0.75693583",
"0.7566862",
"0.75640994",
"0.75601727",
"0.7549194",
"0.7535171",... | 0.8390034 | 0 |
Returns the area of a triangle | def cGOR(P8oC, H2v2):
return P8oC * H2v2 / 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x5JU(tXIo):\n return 0.5 * L3jt(En6R(tXIo, False))",
"def cGOR(P8oC, H2v2):\n f0tD = 1.0 / 2 * P8oC * H2v2\n return f0tD",
"def x5JU(yzQ0, MKlR):\n return yzQ0 * MKlR / 2",
"def cGOR(tXIo):\n jzdc = T97B(tXIo[0], tXIo[1])\n Fg_i = T97B(tXIo[0], tXIo[2])\n Z9rn = T97B(tXIo[1], tXIo[2]... | [
"0.8696877",
"0.8590872",
"0.8584031",
"0.8460314",
"0.83471227",
"0.8312218",
"0.8232575",
"0.808248",
"0.8021095",
"0.79935163",
"0.7909247",
"0.78900784",
"0.787283",
"0.77785003",
"0.7767875",
"0.77661365",
"0.7712286",
"0.7691215",
"0.76842755",
"0.765636",
"0.76409584",... | 0.8640302 | 1 |
Returns the area of a trapezoid | def _wDu(F4Qj, pimd, H2v2):
return (pimd + F4Qj) / 2 * H2v2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _wDu(LSh8, MRRk, CN9P):\n f0tD = (CN9P + LSh8) / 2 * MRRk\n return f0tD",
"def f0tD(YKHO):\n mM0K = XTiz.pi\n pbNT = 4.0 * mM0K / 8.0\n KA7m = 4.0 ** YKHO.depth\n f0tD = pbNT / KA7m * (180.0 / mM0K) ** 2\n return f0tD",
"def UpJv(YKHO):\n YKHO.assertEqual(16, _wDu(YKHO.values['base_... | [
"0.78520364",
"0.7460907",
"0.7454638",
"0.73699516",
"0.73550856",
"0.7342906",
"0.733967",
"0.7256443",
"0.7245968",
"0.72141457",
"0.72019714",
"0.71397465",
"0.713728",
"0.71023494",
"0.7101085",
"0.70923114",
"0.70847434",
"0.7081655",
"0.70719075",
"0.70652837",
"0.7063... | 0.7795574 | 1 |
Returns the area of a regular polygon | def rDm6(cDmO, i2d7):
return cDmO * i2d7 / 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2cR(j5tF):\n return Fw8z.gmPolygonArea(j5tF)",
"def gdLg(j5tF):\n z1Rg = Rgf5(j5tF)\n P6bq = f4Oi(j5tF[-1], z1Rg)\n Ty9i = f4Oi(j5tF[0], z1Rg)\n jzdc = 0.5 * L3jt(Mxem(P6bq, Ty9i))\n for YRbF in range(0, len(j5tF) - 1):\n P6bq = Ty9i\n Ty9i = f4Oi(j5tF[YRbF + 1], z1Rg)\n ... | [
"0.83405626",
"0.7997882",
"0.7929972",
"0.7915305",
"0.77982956",
"0.77653974",
"0.7651996",
"0.7492192",
"0.7475052",
"0.7420837",
"0.73130727",
"0.73078954",
"0.7301159",
"0.7279949",
"0.7221524",
"0.717091",
"0.7111339",
"0.70596975",
"0.7027792",
"0.70168835",
"0.6991353... | 0.80994475 | 1 |
Returns the data source name for IBM SQL DB. | def Cbnc(lIe2):
U5Jc = qQXR.loads(lIe2)
Vt89 = U5Jc['sqldb'][0]['credentials']
CBIr = Vt89['username']
jTXt = Vt89['password']
KcEq = Vt89['hostname']
bIwZ = Vt89['port']
_M9w = Vt89['db']
ABo7 = 'DATABASE={};HOSTNAME={};PORT={};UID={};PWD={};'.format(_M9w, KcEq, bIwZ, CBIr, jTXt)
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s0ar(YKHO):\n raise NotImplementedError",
"def N5CR(YKHO) -> str:\n return qe4Y.get(YKHO, 'database_name')",
"def W0tD(YKHO) -> str:\n return YKHO.dbname",
"def N5CR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'database_name')",
"def _M9w(YKHO) -> h8nf[qe4Y.Input[str]]:\n return q... | [
"0.67988276",
"0.6757044",
"0.6640127",
"0.6600996",
"0.656555",
"0.6562899",
"0.6504213",
"0.6501408",
"0.64891094",
"0.6466255",
"0.6374168",
"0.62684536",
"0.62597793",
"0.62597793",
"0.61956596",
"0.6151577",
"0.6122486",
"0.60518956",
"0.60327893",
"0.60022545",
"0.60017... | 0.556014 | 65 |
Check minimum amount to be smaller than maximum amount | def vwBR(YKHO):
if not YKHO.allow_open_amount:
return
if YKHO.gc_min < 0 or YKHO.gc_max < 0:
YKHO.raise_user_error('negative_amount_not_allowed')
if YKHO.gc_min > YKHO.gc_max:
YKHO.raise_user_error('invalid_amount') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rLcX(GTZT, gqRb, ODP9):\n if GTZT < gqRb:\n return gqRb\n elif GTZT > ODP9:\n return ODP9\n else:\n return GTZT",
"def rLcX(GTZT, gqRb, ODP9):\n if GTZT < gqRb:\n return gqRb\n elif GTZT > ODP9:\n return ODP9\n else:\n return GTZT",
"def gKoJ(YKHO... | [
"0.7257865",
"0.7184651",
"0.69377804",
"0.678884",
"0.67194104",
"0.6685445",
"0.66549397",
"0.64801425",
"0.6479099",
"0.64686066",
"0.64543825",
"0.6451659",
"0.64506114",
"0.6416206",
"0.63446826",
"0.6343989",
"0.63376147",
"0.6264",
"0.62631136",
"0.62584764",
"0.622891... | 0.73816735 | 0 |
Price can not be negative | def u3T3(YKHO):
if YKHO.price < 0:
YKHO.raise_user_error('negative_amount') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7Fk(YKHO):\n W3Xw = ntXf('яйцо 1 кат.', '-30', '40', '2020-12-30', '14', '2020-12-30')\n kunk = YKHO.database.add(W3Xw)\n YKHO.assertFalse(kunk)",
"def djyH(YKHO):\n with YKHO.assertRaises(ZoNm):\n msfn(YKHO.test_product_name, -1.0)\n with YKHO.assertRaises(ZoNm):\n msfn(YKHO.te... | [
"0.7177293",
"0.71677935",
"0.6973525",
"0.67703366",
"0.6730495",
"0.6679441",
"0.66298133",
"0.6604763",
"0.65583086",
"0.6532081",
"0.6500664",
"0.64745545",
"0.64646596",
"0.6331761",
"0.6326377",
"0.6306027",
"0.62740314",
"0.62172383",
"0.6200367",
"0.61751693",
"0.6172... | 0.805959 | 0 |
Computes the Manhatten distance between two points | def y_oG(YKHO, jzdc, Fg_i):
return epAf.fabs(jzdc[0] - Fg_i[0]) + epAf.fabs(jzdc[1] - Fg_i[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ma3i(g4we, dC8m):\n Jw7X, eUWA = BUbG(g4we, dC8m)\n return float(abs(Jw7X) + abs(eUWA))",
"def lPs5(lCHq, ANJu):\n J87D = 0\n for EBgd, HpuQ in zip(lCHq, ANJu):\n J87D += abs((EBgd - HpuQ) ** 3)\n J87D = J87D ** (1 / 3)\n return J87D\n raise NotImplementedError",
"def pImw(jzdc,... | [
"0.7986378",
"0.7387054",
"0.73350203",
"0.72149414",
"0.7074068",
"0.7063355",
"0.70533884",
"0.7024286",
"0.7019737",
"0.7007894",
"0.6965768",
"0.6944149",
"0.69050664",
"0.68953276",
"0.68782187",
"0.6876553",
"0.68728054",
"0.6864756",
"0.6848846",
"0.6842906",
"0.683952... | 0.0 | -1 |
Returns all the bots in this application | def FW4i():
return xgLJ('botsunlimited.settings') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def bot_list(YKHO) -> list:\n return await YKHO._do_request('get', JHzL, YKHO._user_auth)",
"def Iinb(YKHO):\n return YKHO.bottoms",
"def JEpV(YKHO):\n try:\n w2B8 = iHv3.connect(YKHO.name, detect_types=iHv3.PARSE_DECLTYPES)\n w2B8.row_factory = iHv3.Row\n Z9rn = w2B8.cursor... | [
"0.83468235",
"0.7929498",
"0.7819921",
"0.7557291",
"0.7549412",
"0.74972034",
"0.7218726",
"0.6947446",
"0.6843511",
"0.67450565",
"0.64716",
"0.64440453",
"0.6343327",
"0.62490296",
"0.6220344",
"0.6147376",
"0.600576",
"0.5970696",
"0.5922339",
"0.5894877",
"0.5865871",
... | 0.82548034 | 1 |
Given any number of dicts, shallow copy and merge into a new dict, precedence goes to key value pairs in latter dicts. | def roQF(*c974):
Aofo = {}
for cmPJ in c974:
Aofo.update(cmPJ)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0j7(*qIxc):\n return Pusg(lambda Csk6, KCHu: Csk6.update(KCHu) or Csk6, qIxc)",
"def W0j7(*qIxc):\n return Pusg(lambda Csk6, KCHu: Csk6.update(KCHu) or Csk6, qIxc)",
"def cyBQ(yLHq, RKYb, jRxN=True):\n if not isinstance(yLHq, dict) or not isinstance(RKYb, dict):\n if jRxN:\n ret... | [
"0.76676226",
"0.7661076",
"0.74781454",
"0.74528927",
"0.74528927",
"0.74528927",
"0.73743427",
"0.73391306",
"0.73064536",
"0.72796404",
"0.7273245",
"0.72545314",
"0.7230961",
"0.72210413",
"0.7216889",
"0.71992224",
"0.7181106",
"0.71770334",
"0.71742785",
"0.71636385",
"... | 0.7252352 | 17 |
Sends a 401 response that enables basic auth | def NLCy():
return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8093736",
"0.80926424",
"0.7958403",
"0.7852648",
"0.7843114",
"0.7824419",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
... | 0.7664151 | 39 |
return how many comments are associated with this post | def k0wy(YKHO):
mLGw = len(YKHO.comments_set.all())
return mLGw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUEV(YKHO) -> int:\n return qe4Y.get(YKHO, 'comments_count')",
"def pSge(YKHO):\n return YKHO.run_query(f'count({YKHO.r}/comment)')",
"def hejj(YKHO):\n return YKHO.comments.filter_by(state=0).count()",
"def pSge(YKHO):\n Tj1O = bfkh.query.outerjoin((JLnI, JLnI.video_id == bfkh.video_id)).fil... | [
"0.84315157",
"0.817905",
"0.81258833",
"0.7797831",
"0.7790453",
"0.73247623",
"0.71818984",
"0.6811503",
"0.67472047",
"0.67033994",
"0.6659185",
"0.66317374",
"0.656127",
"0.656127",
"0.65190077",
"0.64942664",
"0.63149625",
"0.6290748",
"0.6260958",
"0.6250743",
"0.624685... | 0.829705 | 1 |
Sets the bank_connection_id of this UpdateBankConnectionParams. | def cg8H(YKHO, cg8H):
if cg8H is None:
raise ValueError('Invalid value for `bank_connection_id`, must not be `None`')
YKHO._bank_connection_id = cg8H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nz0Z(YKHO, Nz0Z):\n YKHO._account_bank_id = Nz0Z",
"def rsqw(YKHO, rsqw):\n YKHO._bank_link_id = rsqw",
"def sp9U(YKHO, sp9U):\n YKHO._bank_id = sp9U",
"def H1aQ(YKHO, H1aQ: PublicId) -> None:\n if YKHO._connection_id is not None:\n raise ValueError('connection_id already set!')\n Y... | [
"0.69110113",
"0.674954",
"0.6749373",
"0.5832576",
"0.5393137",
"0.5393137",
"0.5393137",
"0.5393137",
"0.5393137",
"0.5393137",
"0.5375874",
"0.5338826",
"0.52705896",
"0.5232349",
"0.52232414",
"0.50137806",
"0.49649757",
"0.4857446",
"0.4806949",
"0.4806949",
"0.47635895"... | 0.7731301 | 0 |
Sets the import_new_accounts of this UpdateBankConnectionParams. | def QgC_(YKHO, QgC_):
YKHO._import_new_accounts = QgC_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZfHx(YKHO, L8Py):\n if L8Py is not None and (not isinstance(L8Py, list)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: accounts EXPECTED TYPE: list', None, None)\n YKHO.__accounts = L8Py\n YKHO.__key_modified['Accounts'] = 1",
"def L8Py(YKHO, L8Py):\n YKHO._accounts = L8Py",
"def mUAo(YKHO, ... | [
"0.53422546",
"0.49780527",
"0.47495136",
"0.4495662",
"0.44653252",
"0.4435442",
"0.44069389",
"0.440024",
"0.4393641",
"0.43348584",
"0.43301332",
"0.42868695",
"0.42819005",
"0.42258856",
"0.4193985",
"0.41832647",
"0.4165837",
"0.4157977",
"0.41472742",
"0.41438678",
"0.4... | 0.835969 | 0 |
Sets the skip_positions_download of this UpdateBankConnectionParams. | def eT8g(YKHO, eT8g):
YKHO._skip_positions_download = eT8g | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ijz3(YKHO, wEf2):\n YKHO.skip = wEf2\n return YKHO",
"def EdbX(YKHO, dQgj):\n if not YKHO._is_position_in_corpus(dQgj):\n raise ValueError('{0} not in corpus'.format(dQgj))\n YKHO._staged_next = None\n YKHO._has_staged = False\n YKHO._next_search_pos = dQgj",
"def EdbX(YKHO, EdbX):... | [
"0.5405901",
"0.52995765",
"0.52862895",
"0.48900428",
"0.48506486",
"0.48102078",
"0.4747491",
"0.4723357",
"0.46888736",
"0.46759465",
"0.4653951",
"0.45709956",
"0.45615217",
"0.4504345",
"0.44933861",
"0.4465514",
"0.44415012",
"0.44352877",
"0.4430059",
"0.4360223",
"0.4... | 0.80990744 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, nENv):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Create a token by serializing and signing given data together with current timestamp. | def k535(YKHO, nPrm: object) -> str:
return YKHO.serializer.dumps(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sm7M(YKHO):\n b7iQ = YKHO.logged_at or YKHO.created_at\n i8WE = int(iVVu(b7iQ.timetuple()))\n H5ew = WR89.encodestring(YKHO.email)\n P8oC = '{}{}'.format(H5ew, i8WE)\n NTfD, lNLE = YKHO.password.split('$')\n return '{}$${}'.format(H5ew, OMIw(NTfD, P8oC))",
"def LQUb(YKHO):\n try:\n ... | [
"0.7160707",
"0.6740742",
"0.6711519",
"0.6675842",
"0.6663808",
"0.66362053",
"0.6575271",
"0.6546655",
"0.6480899",
"0.6459492",
"0.6432737",
"0.6400944",
"0.6400944",
"0.6400944",
"0.6400944",
"0.6400944",
"0.6400944",
"0.6386564",
"0.6385563",
"0.6379062",
"0.63481915",
... | 0.6929179 | 1 |
Simple numpy softmax implementation | def N93T(WKvO):
if len(WKvO.shape) == 2:
GF7e = oyIN.max(WKvO, axis=1)
WKvO -= GF7e.reshape((WKvO.shape[0], 1))
WKvO = oyIN.exp(WKvO)
JEs7 = oyIN.sum(WKvO, axis=1)
WKvO /= JEs7.reshape((WKvO.shape[0], 1))
elif len(WKvO.shape) == 3:
GF7e = oyIN.max(WKvO, axis=2)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKv... | [
"0.8350847",
"0.8336506",
"0.82955825",
"0.82955825",
"0.82748896",
"0.8273283",
"0.82632035",
"0.82632035",
"0.82632035",
"0.82632035",
"0.82632035",
"0.82632035",
"0.82632035",
"0.82632035",
"0.82578284",
"0.824684",
"0.82419",
"0.82269114",
"0.82219225",
"0.82126015",
"0.8... | 0.81334865 | 28 |
Returns a TensorflowGraph object. | def wm_w(YKHO, Y9ns, yokr):
pNZh = ZylS.Graph()
Lc5m = None
Id4K = {}
with pNZh.as_default():
if yokr is not None:
ZylS.set_random_seed(yokr)
hlel = YKHO.build(pNZh, Id4K, Y9ns)
Crrw = YKHO.add_label_placeholders(pNZh, Id4K)
_mSQ = YKHO.add_example_weight_plac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ib5B(YKHO, Rn65):\n pNZh = ZylS.Graph()\n with pNZh.as_default():\n QPEZ = ZylS.GraphDef()\n with ZylS.gfile.GFile(Rn65, 'rb') as hOYR:\n fHkp = hOYR.read()\n QPEZ.ParseFromString(fHkp)\n ZylS.import_graph_def(QPEZ, name='')\n return pNZh",
"def u5xv(YK... | [
"0.6786658",
"0.6760551",
"0.66102105",
"0.6589952",
"0.65499103",
"0.65100443",
"0.6505363",
"0.64967966",
"0.646981",
"0.6461245",
"0.6397606",
"0.6389917",
"0.6284137",
"0.62522805",
"0.62101346",
"0.62007177",
"0.61687016",
"0.6164254",
"0.6134828",
"0.61314774",
"0.61116... | 0.5648534 | 56 |
Replace logits with softmax outputs. | def GaHG(YKHO, pNZh, hlel):
with pNZh.as_default():
N93T = []
with ZylS.name_scope('inference'):
for YRbF, KeL5 in enumerate(hlel):
N93T.append(ZylS.nn.softmax(KeL5, name='softmax_%d' % YRbF))
hlel = N93T
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h_oU(input, tpio, LpaZ=False):\n return o8DQ.apply('LogSoftmax', input.device, [input], outputs=[input if LpaZ else None], axis=tpio)",
"def N93T(g4y1):\n return oyIN.exp(g4y1) / float(sum(oyIN.exp(g4y1)))",
"def N93T(g4y1):\n return oyIN.exp(g4y1) / float(sum(oyIN.exp(g4y1)))",
"def Lvls(KeL5: ... | [
"0.68293893",
"0.6803097",
"0.6803097",
"0.67738324",
"0.67111564",
"0.66912186",
"0.6664683",
"0.66296977",
"0.66294324",
"0.65996385",
"0.65955234",
"0.6581113",
"0.65708923",
"0.655051",
"0.65459687",
"0.6541081",
"0.6537832",
"0.6537669",
"0.6519736",
"0.64928603",
"0.647... | 0.6559051 | 13 |
Get training op for applying gradients to variables. Subclasses that need to do anything fancy with gradients should override this method. | def aJRO(YKHO, pNZh, N77f):
with pNZh.as_default():
y7GR = DnTY.optimizer(YKHO.optimizer, YKHO.learning_rate, YKHO.momentum)
return y7GR.minimize(N77f, name='train') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G4ta(N77f):\n i912 = ZylS.train.get_global_step()\n WzpH = vPBo.dataset == 'boolq'\n tspZ = ZylS.train.exponential_decay(global_step=i912, learning_rate=vPBo.learning_rate, staircase=True, decay_steps=50 if WzpH else 100, decay_rate=0.999)\n y7GR = ZylS.train.AdamOptimizer(tspZ)\n Krf5 = y7GR.co... | [
"0.74252564",
"0.71990854",
"0.69060296",
"0.68191344",
"0.6807688",
"0.68032134",
"0.6785368",
"0.67478657",
"0.672029",
"0.66496915",
"0.66250527",
"0.6619885",
"0.6609408",
"0.66065156",
"0.65524507",
"0.6523957",
"0.65127623",
"0.64581114",
"0.64581114",
"0.6441815",
"0.6... | 0.725181 | 1 |
Restores the model from the provided training checkpoint. | def wBIE(YKHO):
if YKHO._restored_model:
return
with YKHO.eval_graph.graph.as_default():
x8fl = YKHO._find_last_checkpoint()
jkyf = ZylS.train.Saver()
jkyf.restore(YKHO._get_shared_session(train=False), x8fl)
YKHO._restored_model = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hLQf(YKHO, vauY):\n V1C0 = Hy7s.path.join(vauY, 'model_weights')\n YKHO.model.load_weights(V1C0)",
"def kvfq(YKHO, vauY):\n BJY9 = CbyH.load(vauY)\n YKHO.model.set_state_dict(BJY9)",
"def wBIE(YKHO, vauY):\n raise NotImplementedError",
"def wBIE(YKHO):\n if YKHO._model._in_multi_worker_... | [
"0.82538426",
"0.80384153",
"0.79254836",
"0.7802337",
"0.76352406",
"0.7610023",
"0.75532335",
"0.7520336",
"0.7518003",
"0.74191695",
"0.73541987",
"0.7301023",
"0.72817785",
"0.7269415",
"0.72479945",
"0.7179583",
"0.7116844",
"0.69957864",
"0.6988693",
"0.6985619",
"0.695... | 0.7829292 | 3 |
Return model output for the provided input. Restore(checkpoint) must have previously been called on this object. | def AAOb(YKHO, EcVT):
_Z_F = len(EcVT)
if YKHO.pad_batches:
EcVT = QZOY(YKHO.batch_size, EcVT)
if not YKHO._restored_model:
YKHO.restore()
with YKHO.eval_graph.graph.as_default():
fv5Q = YKHO.n_tasks
hlel = []
with YKHO._get_shared_session(train=False).as_default(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LI2u(YKHO, **B2fa):\n with ZylS.variable_scope(YKHO.layer_scope):\n return YKHO.out",
"def j9V1(C3ST, Mekx):\n o4Jx = C3ST(Mekx, training=False)\n return o4Jx",
"def j9V1(YKHO):\n return YKHO.model_output_file",
"def YEmv(YKHO, input):\n YKHO._check_predict_ready()\n with ht2j.no... | [
"0.660089",
"0.6289481",
"0.61409634",
"0.60339",
"0.59906924",
"0.5960017",
"0.59316105",
"0.58558106",
"0.5833836",
"0.58277667",
"0.5817685",
"0.58140755",
"0.57970566",
"0.579473",
"0.5793381",
"0.5766432",
"0.57657963",
"0.5703666",
"0.5687992",
"0.5678909",
"0.5644757",... | 0.0 | -1 |
Return model output for the provided input. Restore(checkpoint) must have previously been called on this object. | def neCN(YKHO, EcVT):
if YKHO.pad_batches:
EcVT = QZOY(YKHO.batch_size, EcVT)
if not YKHO._restored_model:
YKHO.restore()
with YKHO.eval_graph.graph.as_default():
fv5Q = YKHO.n_tasks
with YKHO._get_shared_session(train=False).as_default():
kdJa = YKHO.construct_fe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LI2u(YKHO, **B2fa):\n with ZylS.variable_scope(YKHO.layer_scope):\n return YKHO.out",
"def j9V1(C3ST, Mekx):\n o4Jx = C3ST(Mekx, training=False)\n return o4Jx",
"def j9V1(YKHO):\n return YKHO.model_output_file",
"def YEmv(YKHO, input):\n YKHO._check_predict_ready()\n with ht2j.no... | [
"0.65964735",
"0.62873185",
"0.6138874",
"0.60333747",
"0.5988665",
"0.59588784",
"0.59298015",
"0.58554935",
"0.5834359",
"0.58237016",
"0.581739",
"0.58144677",
"0.579704",
"0.5795056",
"0.57887316",
"0.57651836",
"0.5763722",
"0.57012063",
"0.56890064",
"0.567577",
"0.5643... | 0.0 | -1 |
Return model output for the provided input. Restore(checkpoint) must have previously been called on this object. | def AAOb(YKHO, EcVT):
_Z_F = len(EcVT)
if YKHO.pad_batches:
EcVT = QZOY(YKHO.batch_size, EcVT)
if not YKHO._restored_model:
YKHO.restore()
with YKHO.eval_graph.graph.as_default():
fv5Q = YKHO.n_tasks
o4Jx = []
with YKHO._get_shared_session(train=False).as_default(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LI2u(YKHO, **B2fa):\n with ZylS.variable_scope(YKHO.layer_scope):\n return YKHO.out",
"def j9V1(C3ST, Mekx):\n o4Jx = C3ST(Mekx, training=False)\n return o4Jx",
"def j9V1(YKHO):\n return YKHO.model_output_file",
"def YEmv(YKHO, input):\n YKHO._check_predict_ready()\n with ht2j.no... | [
"0.65964735",
"0.62873185",
"0.6138874",
"0.60333747",
"0.5988665",
"0.59588784",
"0.59298015",
"0.58554935",
"0.5834359",
"0.58237016",
"0.581739",
"0.58144677",
"0.579704",
"0.5795056",
"0.57887316",
"0.57651836",
"0.5763722",
"0.57012063",
"0.56890064",
"0.567577",
"0.5643... | 0.0 | -1 |
Construct a feed dictionary from minibatch data. | def P1ea(YKHO, mrAK, Ov1m=None, WJIU=None, IVdA=None):
_U3a = {}
_U3a['mol_features'] = mrAK
for D5gV in range(YKHO.n_tasks):
if Ov1m is not None:
_U3a['labels_%d' % D5gV] = Ov1m[:, D5gV]
else:
_U3a['labels_%d' % D5gV] = oyIN.squeeze(oyIN.zeros((YKHO.batch_size,)))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vZzA(l000, A4Kf):\n dFE1, MOss, c5cU, axpf, k50n, UlBm, _73Q, aTLP, Crrw, xKmh = l000\n kdJa = {dFE1: A4Kf['l_vertex'], MOss: A4Kf['l_edge'], axpf: A4Kf['r_vertex'], k50n: A4Kf['r_edge'], c5cU: A4Kf['l_hood_indices'], UlBm: A4Kf['r_hood_indices'], _73Q: A4Kf['label'][:, :2], Crrw: A4Kf['label'][:, 2], xK... | [
"0.7191104",
"0.7117051",
"0.69114816",
"0.6788292",
"0.6578762",
"0.65674967",
"0.6533734",
"0.64429724",
"0.6429636",
"0.63499343",
"0.62659776",
"0.6224858",
"0.62052417",
"0.61679345",
"0.6069642",
"0.6044819",
"0.59823453",
"0.5920428",
"0.5913141",
"0.58957046",
"0.5870... | 0.6263203 | 11 |