query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns True, if the election has any results. | def tMMJ(YKHO):
for Aofo in YKHO.results:
if Aofo.counted:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tMMJ(YKHO):\n if YKHO._has_results is None:\n YKHO._has_results = len(list(YKHO.results.keys())) > 0\n return YKHO._has_results",
"def SsbU(YKHO):\n return not (YKHO.stream or YKHO.results is None)",
"def SsbU(YKHO):\n return not (YKHO.stream or YKHO.results is None)",
"def SsbU(YKHO):... | [
"0.7908626",
"0.76788616",
"0.7611342",
"0.75114876",
"0.7425525",
"0.72493744",
"0.7185996",
"0.7073244",
"0.6926249",
"0.69067174",
"0.6693249",
"0.66878414",
"0.6686507",
"0.6677721",
"0.66440445",
"0.66342056",
"0.6577739",
"0.6576618",
"0.65604603",
"0.65339535",
"0.6532... | 0.7644257 | 2 |
Returns all data connected to this election as list with dicts. This is meant as a base for json/csv/excel exports. The result is therefore a flat list of dictionaries with repeating values to avoid the nesting of values. Each record in the resulting list is a single candidate result for each political entity. Party re... | def g75F(YKHO):
cuiw = wFnc(YKHO)
A07C = cuiw.query(PYZ9.id)
A07C = A07C.filter(PYZ9.election_id == YKHO.id)
dixj = cuiw.query(cg2N.votes, J7M3.title_translations, J7M3.date, J7M3.domain, J7M3.type, J7M3.number_of_mandates, J7M3.absolute_majority, J7M3.status, PYZ9.district, PYZ9.name, PYZ9.entity_id, P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lcco(YKHO):\n return [U8Lr([(N3tN.query.get(int(G1Hx)), Ty9i) for G1Hx, Ty9i in EtM5.iteritems()]) for EtM5 in qQXR.loads(YKHO.result, object_pairs_hook=U8Lr)]",
"def ig7p(nPrm):\n if rLdf.isnull(nPrm):\n return []\n Nll9 = []\n puN_ = []\n fCl7 = nPrm['EML']['Count']['Election']['Conte... | [
"0.6366487",
"0.5938302",
"0.5929827",
"0.58696246",
"0.58065456",
"0.57519865",
"0.5748557",
"0.5718987",
"0.56961644",
"0.564942",
"0.56400377",
"0.56248635",
"0.5589643",
"0.5571587",
"0.5566209",
"0.5541321",
"0.55413073",
"0.552376",
"0.55192447",
"0.55168873",
"0.549278... | 0.6906862 | 0 |
Plot RB decay curve, as a function of sequence length. Optionally includes a fitted exponential decay. | def FIMM(YKHO, VTcd, BKLL, u372=None, WMj5=True, JQXY=True, rTQi=None, jk7u=None, XFR4=True, Dy_V=True, leAC=None, NXpY=1.0):
super(N8JL, YKHO).__init__(VTcd, YKHO._create, BKLL, u372, WMj5, JQXY, rTQi, jk7u, XFR4, Dy_V, leAC, NXpY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EI5Z():\n G1Hx = XTiz.argmax(BWz1 == BWz1.max())\n vgXP = R2tb[G1Hx]\n kdhM = R2tb[G1Hx:] - vgXP\n I4QR = BWz1[G1Hx:]\n SuM2 = I4QR > 0\n gqBF = kdhM[SuM2]\n PwPA = I4QR[SuM2]\n eTFg = [BWz1.max() - 1e-10, 0]\n gUAk = [BWz1.max() + 1e-10, _EMb]\n try:\n fUWm, bGrB = ysTw(wo... | [
"0.6465713",
"0.6288134",
"0.61699426",
"0.58112895",
"0.5739634",
"0.56715316",
"0.56709594",
"0.5662193",
"0.565818",
"0.56514746",
"0.5625186",
"0.5613981",
"0.5608881",
"0.5603926",
"0.5603308",
"0.5575116",
"0.55722564",
"0.55186254",
"0.54684806",
"0.54601437",
"0.54595... | 0.0 | -1 |
Iterates through all roots of heap and sets pointer to one with minimum key | def O7o9(YKHO):
if YKHO.roots_list:
kpLf = YKHO.roots_list[0].key
ZSml = 0
else:
YKHO.min_root_index = None
return
for d6pt, Q6kx in enumerate(YKHO.roots_list):
if Q6kx.key < kpLf:
kpLf = Q6kx.key
ZSml = d6pt
YKHO.min_root_index = ZSml | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ol9r(YKHO):\n if len(YKHO.roots) == 0:\n YKHO.minimum = None\n return\n for exwG in YKHO.roots:\n if YKHO.minimum == None or exwG.key < YKHO.minimum.key:\n YKHO.minimum = exwG",
"def O7o9(YKHO):\n if YKHO.roots_list:\n kpLf = YKHO.roots_list[0].key\n ZSm... | [
"0.70969343",
"0.6983248",
"0.6963003",
"0.6906104",
"0.6906104",
"0.6830871",
"0.6813649",
"0.6810771",
"0.67821425",
"0.67738855",
"0.6742925",
"0.6731907",
"0.67277884",
"0.6723951",
"0.67122996",
"0.66540706",
"0.6647743",
"0.66437185",
"0.6639054",
"0.6628712",
"0.656327... | 0.7004382 | 1 |
Search node with BFS and update key | def H_cf(YKHO, R5JR, hU8D):
if R5JR < hU8D:
print('New key is greater, change not possible')
return None
from queue import Queue
bVmN = Queue()
for tk5Y in YKHO.roots_list:
if tk5Y.key <= R5JR:
bVmN.put_nowait(tk5Y)
while not bVmN.empty():
Q6kx = bVmN.get_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwQ(Q6kx, H5ew):\n while Q6kx and Q6kx.data != H5ew:\n Q6kx = Q6kx.nxt\n return Q6kx",
"def TgwQ(YKHO):\n khtY = ['L', 'l', 'F', 'f', 'R', 'r', 'B', 'b', 'U', 'u', 'D', 'd']\n Q6kx = YKHO.queue.pop(0)\n for KCHu in khtY:\n Neoe = Q6kx.cube\n Neoe.roll_str(KCHu)\n t... | [
"0.6828693",
"0.6504531",
"0.61940676",
"0.6146396",
"0.613874",
"0.60082144",
"0.5991277",
"0.5990308",
"0.5961043",
"0.5945144",
"0.59421015",
"0.592638",
"0.59154934",
"0.5909214",
"0.58995146",
"0.58919513",
"0.5884845",
"0.5852568",
"0.5844993",
"0.5840887",
"0.582275",
... | 0.57070297 | 32 |
Apply a certain type of Buttenworth filter on the input audio. | def rvE2(apum, hHFW, Vzpa, vr5A=None, T4Wy=5):
Vb5F, wEsz = Nwr9(filename=apum)
LVAh = aSBY(sig=wEsz, fs=Vb5F, ftype=hHFW, low_cut=Vzpa, high_cut=vr5A, order=T4Wy)
oLzv = Hy7s.path.dirname(apum)
RhFA = '_augmented_{0}_pass_filtered.wav'.format(hHFW)
zyFt(output_file_path=oLzv, input_file_name=apum, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RJIr(D8Si, jzdc, Fg_i, Et9P):\n _MQ3 = 4\n for YRbF in range(_MQ3):\n D8Si, Et9P[YRbF, :] = Z9DM(Fg_i[YRbF], jzdc[YRbF], D8Si, zi=Et9P[YRbF, :])\n return D8Si * vWr3(2.4)",
"def HXPU(YKHO, o2tE):\n bq_o = 0.5 * YKHO.fs\n gqRb = YKHO.lowcut / bq_o\n ODP9 = YKHO.highcut / bq_o\n if ... | [
"0.70640373",
"0.6943171",
"0.684367",
"0.6828245",
"0.6776149",
"0.67226374",
"0.65631056",
"0.65166646",
"0.64950716",
"0.6493747",
"0.6485107",
"0.6454359",
"0.6453258",
"0.6422947",
"0.64068496",
"0.6405156",
"0.64046377",
"0.6352555",
"0.6220542",
"0.6219226",
"0.6217807... | 0.6637959 | 6 |
Returns `xarray.Dataset` with stored data and metadata from a userdefined query of ARMstandard netCDF files from a single datastream. | def KjYr(iumf, kc1W=None):
for exwG, eHNT in enumerate(iumf):
try:
oxOY = zuVY.open_dataset(eHNT)
except:
continue
if exwG == 0:
iy1F = oxOY
else:
iy1F = zuVY.concat([iy1F, oxOY], dim='time')
return iy1F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FLaR(apum, ENpH):\n xtX7, nUeQ = k74l(apum)\n oxOY = zuVY.open_dataset(Hy7s.path.join(xtX7, nUeQ))\n oxOY.attrs['last_load_file_name'] = nUeQ\n oxOY.attrs['last_load_directory'] = xtX7\n x6aZ = ENpH(oxOY)\n return (x6aZ, oxOY)",
"def aP2p():\n FDPT = zuVY.DataArray([-100, -96, -90], attr... | [
"0.60280997",
"0.59816563",
"0.5942129",
"0.5754777",
"0.5754468",
"0.573984",
"0.5735866",
"0.5718126",
"0.56720483",
"0.56534857",
"0.5648528",
"0.5639779",
"0.56394833",
"0.5631895",
"0.5624831",
"0.5598415",
"0.5598004",
"0.5592868",
"0.55849075",
"0.5577907",
"0.55707127... | 0.5851481 | 3 |
A settings object in which settings related to this admin can be stored. | def asJJ(YKHO):
gCuF = YKHO.app_admin.get_settings()
gCuF.beginGroup(YKHO.get_name()[:255])
return gCuF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gCuF(YKHO):\n return gCuF.Settings(YKHO)",
"def gCuF(YKHO):\n return YKHO.__settings",
"def gCuF(YKHO):\n return YKHO._settings_part.settings",
"def gCuF(YKHO):\n return getattr(YKHO, YKHO.settings_attr, {})",
"def gCuF(YKHO):\n if YKHO._settings is None:\n YKHO._settings = zBhl.S... | [
"0.8103709",
"0.77955216",
"0.77683985",
"0.7768283",
"0.7738297",
"0.76856893",
"0.76856893",
"0.76856893",
"0.7672201",
"0.7653765",
"0.7641429",
"0.7634846",
"0.7634846",
"0.7619665",
"0.75922805",
"0.7501815",
"0.73955184",
"0.72549725",
"0.71963406",
"0.71158874",
"0.709... | 0.7645103 | 10 |
Get a tree of admin classes representing the subclasses of the class represented by this admin class | def S5Nm(YKHO):
Hh7E = []
for dm7U in YKHO.entity.__subclasses__():
RQPD = YKHO.get_related_admin(dm7U)
if RQPD != YKHO:
Hh7E.append((RQPD, RQPD.get_subclass_tree()))
def vYcj(XOOk, pHXX):
return eHkp(XOOk[0].get_verbose_name_plural(), pHXX[0].get_verbose_name_plural())
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KndY(YKHO):\n return YKHO._children_of_type('class')",
"def Tomn(Emd4):\n if Emd4._subclasses is None:\n Emd4._subclasses = Emd4._get_subclasses()\n return Emd4._subclasses",
"def Ygdn(YKHO):\n KndY = []\n YKHO._depth_first(YKHO.root, KndY)\n return KndY",
"def z_eL(Emd4):\n r... | [
"0.6670493",
"0.66045576",
"0.65560853",
"0.65348303",
"0.6467036",
"0.64586645",
"0.6423636",
"0.63916934",
"0.63618994",
"0.6326594",
"0.6310867",
"0.6307229",
"0.62725616",
"0.62520826",
"0.62339854",
"0.62261343",
"0.62088776",
"0.6203324",
"0.6167872",
"0.6164228",
"0.61... | 0.8430374 | 0 |
Get the last commit of a change to the source. | def jfYs(jehQ, ANHh, pmON):
gnPz.run(['git', 'checkout', jehQ], cwd=ANHh)
hlel = gnPz.run(['git', 'log', '-n', '1', '--pretty=format:"%h"', pmON], cwd=ANHh)
return hlel.strip('"') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYoL(YKHO):\n axC8 = f'{YKHO.openpecha_api}/commits/master'\n bjLQ = G4JS.get(url=axC8).json()\n return bjLQ['sha']",
"def X1y7():\n return tgM5(['rev-parse', 'HEAD'])",
"def XOd0():\n return pOv4(['git', 'rev-parse', 'HEAD'])",
"def V0Bk(YKHO):\n if not YKHO._last_commit:\n YKHO... | [
"0.77672005",
"0.7485175",
"0.7460652",
"0.7371433",
"0.73231417",
"0.72080404",
"0.71731067",
"0.71593726",
"0.71038866",
"0.7038983",
"0.70376563",
"0.7034893",
"0.7034804",
"0.6901556",
"0.6876023",
"0.68667966",
"0.68481255",
"0.68156886",
"0.68080074",
"0.6785611",
"0.67... | 0.69562125 | 13 |
Query Transform takes a list of dictionaries (eg. the result of an SqlAlchemy query) and transforms it into a standard python list (repeatably iterable). In the process, | def x8Nt(xDcj, sjXb=None, X4io=[]):
from .view_utils import _qtx
AcIB = []
P_mL = {}
for rdlD in xDcj:
WfCS = dict(rdlD)
if sjXb:
XKHb = False
_QyI = P_mL
for H5ew in sjXb['primary']:
XKHb, _QyI = _qtx(XKHb, _QyI, WfCS, H5ew)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLya(usx6):\n LJT_ = []\n for rdlD in usx6:\n xP9A = {}\n for H5ew, ZfUD in dict(rdlD).iteritems():\n if isinstance(ZfUD, SOnQ.Decimal):\n ZfUD = float(ZfUD)\n if isinstance(ZfUD, qcWV.date):\n ZfUD = '%s' % ZfUD\n xP9A[H5ew] = ... | [
"0.66246146",
"0.6366685",
"0.6362866",
"0.6305815",
"0.6215452",
"0.60779494",
"0.60539514",
"0.59938437",
"0.5984331",
"0.59824926",
"0.59742534",
"0.59454167",
"0.59424746",
"0.59151495",
"0.5860021",
"0.58166623",
"0.5762929",
"0.5748993",
"0.57371575",
"0.57283604",
"0.5... | 0.0 | -1 |
If the "Accept" HTTP header contains "application/json", return a json string. Otherwise, return an HTML string. | def h1_H(QePW, rPXJ, QpfX):
from django.shortcuts import render
from django.http import HttpResponse
from django.core import serializers
from django.db.models.query import QuerySet
from sqlalchemy.engine import result as Dog4
import decimal
import json
class csv2Encoder(json.JSONEncoder... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rheg():\n if not QePW.accept_mimetypes.accept_json:\n return False\n if not QePW.accept_mimetypes.accept_html:\n return True\n P6Dd = QePW.accept_mimetypes.best_match(('text/html', 'application/json'))\n if P6Dd != 'application/json':\n return False\n if QePW.accept_mimetype... | [
"0.71977514",
"0.6860907",
"0.68243426",
"0.6701828",
"0.6692038",
"0.66893107",
"0.65979856",
"0.646592",
"0.64426607",
"0.6259703",
"0.6172946",
"0.61123586",
"0.606366",
"0.59906226",
"0.5967587",
"0.5954686",
"0.59035105",
"0.5893961",
"0.5892716",
"0.5864552",
"0.5863536... | 0.0 | -1 |
Check if there are at least two regimes | def Tu5I(BlBA, ywwl=None, nMvt=None):
if len(BlBA) < 2:
raise Exception('At least 2 regimes are needed to run regimes methods. Please check your regimes variable.')
if 1.0 * ywwl / len(BlBA) < nMvt + 1:
raise Exception("There aren't enough observations for the given number of regimes and variabl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mwb4(YKHO):\n return YKHO.check_sets(2, 2)",
"def mwb4(YKHO):\n return YKHO.check_sets(2, 2)",
"def PLx9(WKvO):\n if WKvO[1] > 1:\n return WKvO",
"def givU(YKHO, QTBn):\n return len(oyIN.unique(QTBn.tolist())) != YKHO.N ** 2",
"def p9BG(YKHO):\n return YKHO.check_sets(2)",
"def ... | [
"0.69135404",
"0.6784711",
"0.6186343",
"0.6051861",
"0.5899041",
"0.5850253",
"0.58295363",
"0.5826202",
"0.581674",
"0.57976925",
"0.5796644",
"0.5787343",
"0.5712016",
"0.56987256",
"0.5691708",
"0.56748015",
"0.5658146",
"0.56438786",
"0.56422746",
"0.5640793",
"0.5640629... | 0.5806878 | 9 |
The constructor for the MDP class. | def FIMM(YKHO, pmON='data', Cwt5=0.7, G1Hx=3, eFFh=0.9, PJWX=True, TCuf='saved-models'):
YKHO.mdp_i = P7tC(pmON, G1Hx, Cwt5)
YKHO.df = eFFh
YKHO.verbose = PJWX
YKHO.savePath = TCuf
YKHO.S = {}
YKHO.V = {}
YKHO.A = []
YKHO.T = {}
YKHO.policyVector = []
YKHO.policy = {}
YKHO.po... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, VeiG, Qabx, KMvS=1.0):\n YKHO.num_of_episodes = VeiG\n YKHO.policy = Qabx\n YKHO.gamma = KMvS\n YKHO.mdp = None\n YKHO.Qsa = None\n YKHO.Vs = None",
"def FIMM(YKHO, sEAN, OuMq=None):\n YKHO.env = sEAN\n YKHO.strategy = OuMq\n if OuMq is not None:\n YKHO.strategy.s... | [
"0.68739194",
"0.68474966",
"0.68084055",
"0.67847013",
"0.66829306",
"0.6659792",
"0.6586987",
"0.65100265",
"0.6509049",
"0.6470542",
"0.6467606",
"0.6401001",
"0.63918084",
"0.6390573",
"0.6388228",
"0.6388228",
"0.6369175",
"0.63611865",
"0.6356612",
"0.63550675",
"0.6353... | 0.699031 | 0 |
Method to load a previous trained model | def tyeH(YKHO, Ux0P):
YKHO.printProgress('Loading model from ' + Ux0P)
try:
with open(YKHO.savePath + '/' + Ux0P, 'rb') as eHNT:
Nws4 = t2lc.load(eHNT)
YKHO.__dict__.update(Nws4)
except Exception as e:
print(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YHt_(YKHO):\n JHDS = [YKHO.netG_prev, YKHO.netG]\n BOs1 = ['{:s}/{:d}_net_G.pth'.format(YKHO.opt.prev_model_path, YKHO.opt.prev_model_epoch), '{:s}/{:d}_net_G.pth'.format(YKHO.opt.prev_model_path, YKHO.opt.prev_model_epoch)]\n for YRbF in range(len(JHDS)):\n Zxma = JHDS[YRbF]\n pmON = BO... | [
"0.78912413",
"0.7573011",
"0.75613236",
"0.75613236",
"0.75228953",
"0.75188625",
"0.74780965",
"0.74710184",
"0.7469703",
"0.7451577",
"0.7451577",
"0.7451577",
"0.74379176",
"0.740401",
"0.7402464",
"0.73968345",
"0.73824304",
"0.7368573",
"0.7349181",
"0.7340391",
"0.7315... | 0.0 | -1 |
ustawia pole created_by na zalogowanego uzytkownika | def Exxh(YKHO, C3ST, hGN5, **B2fa):
hGN5['created_by'] = YKHO.user
return super(nkKX, YKHO).get_instance_data(C3ST, hGN5, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tC0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_by')",
"def tC0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_by')",
"def tC0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_by')",
"def tC0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_by')",
"def tC0c(YKHO) -> str:\n return qe4Y... | [
"0.7253557",
"0.7253557",
"0.7253557",
"0.7253557",
"0.7253557",
"0.721476",
"0.721476",
"0.7174001",
"0.7165939",
"0.7165939",
"0.7165939",
"0.7165939",
"0.7165939",
"0.7165939",
"0.7134476",
"0.7035171",
"0.7035171",
"0.7035171",
"0.7035171",
"0.7035171",
"0.7035171",
"0.... | 0.0 | -1 |
Raises a ProtocolError if the TE header is present in a header block and its value is anything other than "trailers". | def Wlz8(MOPg, MVb_):
for WBPg in MOPg:
if WBPg[0] in (b'te', u'te'):
if WBPg[1].lower() not in (b'trailers', u'trailers'):
raise vt9U('Invalid value for Transfer-Encoding header: %s' % WBPg[1])
yield WBPg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJDg() -> None:\n with trZe.raises(uEiH):\n Vwsn(b'some_header.message.footer', b'other_header')",
"def LFmy(YKHO):\n with Xvb7.app.test_request_context():\n Xvb7.app.preprocess_request()\n with YKHO.assertRaises(q76O.DataFormatError):\n Xvb7.check_headerfile_and_tsdata_... | [
"0.58977723",
"0.5812238",
"0.5758862",
"0.5735349",
"0.5722785",
"0.56758964",
"0.5652846",
"0.56410944",
"0.56287444",
"0.55784476",
"0.5562161",
"0.5548006",
"0.5521726",
"0.5516784",
"0.5449537",
"0.54485404",
"0.5441564",
"0.54247314",
"0.5414463",
"0.5392613",
"0.538552... | 0.6246301 | 0 |
Raises a ProtocolError if a header block arrives that does not contain an | def Xout(MOPg, MVb_):
UMI6 = MVb_.is_response_header or MVb_.is_trailer
if UMI6:
return MOPg
return JPxt(MOPg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJDg() -> None:\n with trZe.raises(uEiH):\n Vwsn(b'some_header.message.footer', b'other_header')",
"def YDab(MOPg, MVb_):\n for WBPg in MOPg:\n if WBPg[0] in kFm6:\n raise vt9U('Connection-specific header field present: %s.' % WBPg[0])\n yield WBPg",
"def hesV(YKHO):\n... | [
"0.6964685",
"0.6783693",
"0.6725174",
"0.6713674",
"0.66303724",
"0.66285324",
"0.6578545",
"0.6550247",
"0.6548512",
"0.6542491",
"0.65146464",
"0.6432884",
"0.6432884",
"0.6432884",
"0.6432884",
"0.6376417",
"0.6369669",
"0.6320915",
"0.63190746",
"0.63098717",
"0.63053197... | 0.0 | -1 |
Given an iterable of header twotuples, rebuilds that iterable with the header names lowercased. This generator produces tuples that preserve the original type of the header tuple for tuple and any ``HeaderTuple``. | def PUa8(MOPg, MVb_):
for WBPg in MOPg:
if isinstance(WBPg, ZnYH):
yield WBPg.__class__(WBPg[0].lower(), WBPg[1])
else:
yield (WBPg[0].lower(), WBPg[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b99h(YKHO, PNq_):\n for dwfu in PNq_:\n if dwfu in YKHO.headerNames:\n yield (YKHO.headerNames[dwfu], PNq_[dwfu])\n elif dwfu[:5] == 'HTTP_':\n Ivk4 = dwfu[5:].replace('_', '-')\n yield (Ivk4, PNq_[dwfu])",
"def b99h(YKHO, PNq_):\n for dwfu in PNq_:\n ... | [
"0.63357586",
"0.6275016",
"0.61183435",
"0.586321",
"0.5674347",
"0.56440157",
"0.55777764",
"0.5565555",
"0.5505192",
"0.53922254",
"0.5391785",
"0.5378034",
"0.5346643",
"0.53185374",
"0.5301832",
"0.5299782",
"0.5299756",
"0.52613544",
"0.52600646",
"0.5252992",
"0.522294... | 0.8312411 | 0 |
Validates and normalizes a header sequence that we are about to send. | def CYcx(MOPg, MVb_):
MOPg = Wlz8(MOPg, MVb_)
MOPg = YDab(MOPg, MVb_)
MOPg = TPhY(MOPg, MVb_)
MOPg = ptkm(MOPg, MVb_)
MOPg = RW8a(MOPg, MVb_)
return MOPg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ac9B(YKHO, MOPg, iRCG, wo9P):\n if YKHO.config.normalize_inbound_headers:\n MOPg = fYyv(MOPg, iRCG)\n if YKHO.config.validate_inbound_headers:\n MOPg = BraB(MOPg, iRCG)\n if wo9P:\n MOPg = eARy(MOPg, wo9P)\n return list(MOPg)",
"def xzCw(YKHO, WBPg):\n return True",
"def... | [
"0.64564943",
"0.63602793",
"0.62345415",
"0.6208352",
"0.6073055",
"0.60445803",
"0.6021055",
"0.60019594",
"0.598547",
"0.5936324",
"0.59178233",
"0.591675",
"0.5902395",
"0.58841276",
"0.5823039",
"0.5762874",
"0.5744181",
"0.57342106",
"0.5698617",
"0.5692855",
"0.5691133... | 0.5751917 | 16 |
Fetches the kms_arn from the deployment account main region and adds the it plus the deployment_account_id parameter to the target account so it can be consumed in CloudFormation. These are required for the global.yml in all target accounts. | def z5ao(TJZp, tvqc, zn0c, LmAn):
try:
sSmh = tvqc['deployment_account_id']
g76r = tvqc['cross_account_access_role']
axXk = f'arn:{jmBv}:iam::{sSmh}:role/{g76r}'
oWXE = TJZp.assume_cross_account_role(role_arn=axXk, role_session_name='configure_generic')
Nq1K = wUC2(tvqc['depl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WxeJ(YKHO):\n FDbE = 'kms_key'\n if FDbE in YKHO.conf['aws']:\n return YKHO.conf['aws'][FDbE]\n else:\n return None",
"def WxeJ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def WxeJ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def WxeJ(YKHO) ... | [
"0.60568225",
"0.57955045",
"0.57955045",
"0.57955045",
"0.57955045",
"0.57775205",
"0.5767542",
"0.570822",
"0.5670258",
"0.5670258",
"0.5670258",
"0.5670258",
"0.54792315",
"0.54388577",
"0.5406657",
"0.53552693",
"0.531009",
"0.5299075",
"0.52889144",
"0.52889144",
"0.5234... | 0.4951298 | 24 |
Return a string that uniquely identifies this instance of the embedding model. This should have the type, size and dimension of the embedding. | def YfV8(YKHO) -> str:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return '{}:{}'.format(YKHO.type, YKHO.name)",
"def unpH(YKHO):\n return str(YKHO.__class__.__name__)",
"def id(YKHO) -> str:\n return YKHO.__class__.__name__",
"def vDgp(YKHO):\n r8hN = HBct.md5()\n r8hN.update(YKHO.model_name.encode('utf-8'))\n r8hN.update(t2lc.dumps(YKHO.h... | [
"0.73159295",
"0.6991972",
"0.69702846",
"0.68846077",
"0.68732154",
"0.6864945",
"0.68579125",
"0.6837683",
"0.6802801",
"0.67931324",
"0.67843866",
"0.6769338",
"0.6769338",
"0.676602",
"0.6745399",
"0.6736238",
"0.67101103",
"0.67003936",
"0.66974604",
"0.668064",
"0.66787... | 0.0 | -1 |
Return a string that uniquely identifies this instance of the embedding model. This should have the type, size and dimension of the embedding. This string is used to cache models in both CPU and GPU memory so the layers can have the benefit of reusing the same in memeory word embedding matrix. | def tsEk(YKHO) -> str:
return YKHO._get_model_id() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O8dF(YKHO):\n return 'MultiWordEmbeddings_' + '_'.join(sorted(YKHO.embeddingNames))",
"def Ilxn(YKHO):\n WzZd = next(iter(YKHO._train_data.values()))\n wRXp = WzZd.output_tensors\n if YKHO._data_format == 'NHWC':\n bGrB, Dagl, Kb07, bGrB = wRXp['eye'].shape.as_list()\n else:\n bG... | [
"0.68151766",
"0.66091067",
"0.65620047",
"0.65433186",
"0.65224403",
"0.6517903",
"0.64056975",
"0.6340709",
"0.6282458",
"0.62753636",
"0.61746514",
"0.6153005",
"0.6136581",
"0.61069775",
"0.61041117",
"0.61041117",
"0.6100165",
"0.60898197",
"0.607965",
"0.6044494",
"0.60... | 0.5783933 | 61 |
Custom representation on the result | def UpuU(YKHO, KAOR):
Aofo = super(dxKq, YKHO).to_representation(KAOR)
Aofo.update(YKHO.quantity('value', KAOR.value))
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xx_o(YKHO, Aofo):\n raise NotImplementedError()",
"def wHJl(YKHO):\n return '{}(id={}, n_pos={:.3}, n_neg={:.3}, result={})'.format(YKHO.__class__.__name__, YKHO.id, YKHO.n_pos, YKHO.n_neg, YKHO.result)",
"def zAg0(YKHO):\n return str(YKHO.result)",
"def wHJl(YKHO):\n return Napc(YKHO)",
"d... | [
"0.72332036",
"0.7148973",
"0.70946497",
"0.70432395",
"0.7009481",
"0.7009481",
"0.6992304",
"0.6984899",
"0.69499725",
"0.69499725",
"0.6917731",
"0.6911627",
"0.6911627",
"0.68807334",
"0.6873131",
"0.687284",
"0.6849306",
"0.68392545",
"0.68308485",
"0.6830407",
"0.683040... | 0.0 | -1 |
Configure the Touca client after performing default setup. | def JwZN(YKHO, **B2fa):
super(IudK, YKHO).setup_test_environment(**B2fa)
kdSh.configure(**YKHO.touca_options) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mGiP(YKHO):\n raise NotImplementedError",
"def Pntg(YKHO):\n YKHO.client = i9zE()",
"def lWLw(YKHO, QpfX):\n super().configure(QpfX)\n YKHO.client = YKHO.client(str(kxTZ()), useWebsocket=YKHO.use_websocket())\n YKHO.client.configureEndpoint(hostName=YKHO.mqtt_host(), portNumber=YKHO.mqtt_por... | [
"0.705114",
"0.7040568",
"0.6807519",
"0.67543703",
"0.67239285",
"0.6614268",
"0.65827495",
"0.65827495",
"0.65827495",
"0.6566103",
"0.6516178",
"0.6470282",
"0.6466055",
"0.64565",
"0.64445376",
"0.63421595",
"0.6319732",
"0.6311701",
"0.6289054",
"0.6289054",
"0.62841237"... | 0.6595796 | 6 |
predict_proba(self, pfds) classifier method Compute the likehoods each possible outcomes of samples in T. The model need to have probability information computed at training | def KR85(YKHO, rgHf):
Aofo = oyIN.sum(oyIN.array([M_NZ.predict_proba(rgHf) for M_NZ in YKHO.list_of_AIs]), axis=0) / len(YKHO.list_of_AIs)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KR85(YKHO, Yw_3):\n Xn71 = YKHO.convolve_predict(YKHO, Yw_3)\n Xn71 = Xn71.reshape(len(Yw_3), -1)\n return YKHO.random_forest.predict_proba(Xn71)",
"def KR85(YKHO, EcVT):\n mrZR(YKHO)\n EcVT = SOCJ(EcVT)\n ENTd = []\n for mgFW in EcVT:\n QMnG = YKHO.class_log_prior_.copy()\n ... | [
"0.7866264",
"0.78444874",
"0.7773056",
"0.7560612",
"0.7383292",
"0.7362843",
"0.7362843",
"0.7362843",
"0.7362843",
"0.7362843",
"0.7321617",
"0.72973853",
"0.72969675",
"0.7272592",
"0.72395456",
"0.72381234",
"0.7201488",
"0.7180307",
"0.7175061",
"0.71676934",
"0.7164175... | 0.74929416 | 4 |
predict_proba(self, pfds) classifier method Compute the likehoods each possible outcomes of samples in T. The model need to have probability information computed at training | def KR85(YKHO, rgHf):
nPrm = oyIN.array([PToO.getdata(**YKHO.feature) for PToO in rgHf])
O1Es = YKHO.__class__
YKHO.__class__ = YKHO.orig_class
if YKHO.use_pca:
nPrm = YKHO.pca.transform(nPrm)
dixj = YKHO.predict_proba(nPrm)
YKHO.__class__ = O1Es
return dixj[..., 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KR85(YKHO, Yw_3):\n Xn71 = YKHO.convolve_predict(YKHO, Yw_3)\n Xn71 = Xn71.reshape(len(Yw_3), -1)\n return YKHO.random_forest.predict_proba(Xn71)",
"def KR85(YKHO, EcVT):\n mrZR(YKHO)\n EcVT = SOCJ(EcVT)\n ENTd = []\n for mgFW in EcVT:\n QMnG = YKHO.class_log_prior_.copy()\n ... | [
"0.7866264",
"0.78444874",
"0.7773056",
"0.74929416",
"0.7383292",
"0.7362843",
"0.7362843",
"0.7362843",
"0.7362843",
"0.7362843",
"0.7321617",
"0.72973853",
"0.72969675",
"0.7272592",
"0.72395456",
"0.72381234",
"0.7201488",
"0.7180307",
"0.7175061",
"0.71676934",
"0.716417... | 0.7560612 | 3 |
The product of axis lengths. | def U4F5(YKHO):
return oyIN.product([len(list(jDK_.values())[0]) for jDK_ in YKHO.axes]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return oyIN.prod(YKHO.shape)",
"def tpio(YKHO):\n return oyIN.prod(YKHO.dims())",
"def u54L(YKHO):\n return epAf.sqrt(sum(lNLu(YKHO.D, {YRbF: YKHO[YRbF] * YKHO[YRbF] for YRbF in YKHO.D})))",
"def u54L(YKHO):\n return oyIN.sqrt(oyIN.dot(YKHO.to_cart(), YKHO.to_cart()))",
"def z... | [
"0.7286514",
"0.7076403",
"0.7025337",
"0.6997133",
"0.6982611",
"0.6938417",
"0.69335884",
"0.69325125",
"0.68410623",
"0.6814078",
"0.67753464",
"0.6758589",
"0.67418975",
"0.6644829",
"0.6594506",
"0.656052",
"0.65410984",
"0.6532811",
"0.6495791",
"0.6486419",
"0.6452398"... | 0.0 | -1 |
get joint angles. Returns | def GJtA(YKHO):
return YKHO.arm.joint_angles() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GJtA(YKHO):\n return YKHO.named.data.qpos[YiVI]",
"def GJtA(YKHO):\n return _qLf(YKHO._joint_angle)",
"def GJtA(YKHO):\n return _qLf(YKHO._joint_angle)",
"def XqSO(YKHO, HMCV):\n return YKHO._joint_angle[HMCV]",
"def XqSO(YKHO, HMCV):\n return YKHO._joint_angle[HMCV]",
"def Rcof(ytH6):... | [
"0.8371056",
"0.8165259",
"0.8165259",
"0.768352",
"0.768352",
"0.75953394",
"0.75420314",
"0.74208754",
"0.74208754",
"0.74065566",
"0.7394588",
"0.7221551",
"0.72202027",
"0.7204297",
"0.71899235",
"0.71301335",
"0.71221197",
"0.7054556",
"0.6994001",
"0.6973579",
"0.692579... | 0.8481671 | 0 |
Convert self to repr representation. Returns str The string represents the class. Examples >>> import deepchem as dc >>> dc.feat.CircularFingerprint(size=1024, radius=4) CircularFingerprint[radius=4, size=1024, chiral=False, bonds=True, features=False, sparse=False, smiles=False] >>> dc.feat.CGCNNFeaturizer() CGCNNFeat... | def wHJl(YKHO) -> str:
JoI2 = tq_1.getfullargspec(YKHO.__init__)
LVXN = [d7pR for d7pR in JoI2.args if d7pR != 'self']
j8uW = ''
for WLRG in LVXN:
BWXx = YKHO.__dict__[WLRG]
if isinstance(BWXx, str):
BWXx = "'" + BWXx + "'"
if isinstance(BWXx, list):
gwAu ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return VAZI.to_string(YKHO).format(name=YKHO.Name, args=YKHO._parameters_to_string(YKHO.__kn_classifier.get_params()))",
"def yLCI(YKHO):\n return VAZI.to_string(YKHO).format(name=YKHO.Name, args=YKHO._parameters_to_string(YKHO.__extra_trees_classifier.get_params()))",
"def wHJl(YKHO):\... | [
"0.716995",
"0.7057",
"0.6932011",
"0.6904345",
"0.6881055",
"0.68268734",
"0.6795493",
"0.67920345",
"0.6720109",
"0.67168087",
"0.6700866",
"0.6676302",
"0.6676098",
"0.66699785",
"0.66480994",
"0.66316533",
"0.66316533",
"0.6605592",
"0.6604971",
"0.65977764",
"0.65947026"... | 0.68469834 | 5 |
Convert self to str representation. Returns str The string represents the class. Examples >>> import deepchem as dc >>> str(dc.feat.CircularFingerprint(size=1024, radius=4)) 'CircularFingerprint_radius_4_size_1024' >>> str(dc.feat.CGCNNFeaturizer()) 'CGCNNFeaturizer' | def zAg0(YKHO) -> str:
JoI2 = tq_1.getfullargspec(YKHO.__init__)
LVXN = [d7pR for d7pR in JoI2.args if d7pR != 'self']
hYMW = len(LVXN)
anLH = [None for bGrB in range(hYMW)]
if JoI2.defaults is not None:
muwo = list(JoI2.defaults)
anLH[-len(muwo):] = muwo
cuyn = ''
for WLRG, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return VAZI.to_string(YKHO).format(name=YKHO.Name, args=YKHO._parameters_to_string(YKHO.__kn_classifier.get_params()))",
"def yLCI(YKHO):\n return VAZI.to_string(YKHO).format(name=YKHO.Name, args=YKHO._parameters_to_string(YKHO.__extra_trees_classifier.get_params()))",
"def yLCI(YKHO) -... | [
"0.7611476",
"0.7567672",
"0.71102273",
"0.6990449",
"0.6973924",
"0.69646496",
"0.6957072",
"0.695205",
"0.69242543",
"0.69222736",
"0.69163775",
"0.69154674",
"0.6901962",
"0.6891585",
"0.68608797",
"0.68129027",
"0.6806731",
"0.6804278",
"0.6785006",
"0.6785006",
"0.677648... | 0.0 | -1 |
Get all the existing labels for the fully automatic segmentation. | def xZ1s(LNo8):
VXjJ = MVjK.GetArrayFromImage(LNo8)
VXjJ = VXjJ.flatten()
Crrw = []
for WKvO in VXjJ:
if WKvO not in Crrw:
Crrw.append(WKvO)
return sorted(Crrw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Te1x(YKHO):\n return []",
"def Te1x(YKHO):\n return []",
"def Te1x(YKHO) -> list:\n return []",
"def Umo8(YKHO):\n return list({tTpl[0] for tTpl in YKHO.train.examples})",
"def Umo8(YKHO):\n return list({tTpl[0] for tTpl in YKHO.train.examples})",
"def Te1x(YKHO):\n return None",
... | [
"0.7639503",
"0.7639503",
"0.75913477",
"0.73672163",
"0.73235846",
"0.7296798",
"0.7283868",
"0.7219305",
"0.72082794",
"0.72082794",
"0.7207508",
"0.72057307",
"0.7176663",
"0.7162133",
"0.7153672",
"0.71396106",
"0.71396106",
"0.71396106",
"0.71396106",
"0.71396106",
"0.71... | 0.6935439 | 80 |
Compute Bspline basis The actual degree is k = degBs 1 e.g. nBs = 5, degBs = 4, k = 3, cubic B spline | def QPEJ(YKHO):
Un7w = YKHO.numbp
if Un7w < 4:
owq2 = 3
else:
owq2 = 4
SZxx = 0.0
PyeS = YKHO.thickness
FF7h = 2.0
Xkrd = YKHO.nlay
r8hN = Un7w - 1 + owq2
a1PO = oyIN.zeros(r8hN + 1, dtype=oyIN.float32)
for YRbF in Ni9Y(owq2):
a1PO[YRbF] = SZxx + YRbF * (P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PxQ1(Un7w, owq2, SZxx, PyeS, FF7h, Xkrd):\n r8hN = Un7w - 1 + owq2\n a1PO = oyIN.zeros(r8hN + 1, dtype=oyIN.float64)\n for YRbF in range(owq2):\n a1PO[YRbF] = SZxx + YRbF * (PyeS - SZxx) / 10000.0\n for YRbF in range(owq2, r8hN + 1 - owq2):\n cxTH = r8hN + 1 - owq2 - owq2 + 1\n ... | [
"0.8433769",
"0.80368227",
"0.7932601",
"0.7892675",
"0.7375351",
"0.72284347",
"0.71865344",
"0.6911202",
"0.68151504",
"0.67877424",
"0.671223",
"0.6687104",
"0.6525988",
"0.65240353",
"0.6484026",
"0.63616455",
"0.6332129",
"0.63314855",
"0.6329445",
"0.6324912",
"0.631905... | 0.8354873 | 1 |
[draw_grid] creates a grid that overlays the map so that it's easier to see where towers are placed | def tlUU():
yzQ0 = 3
for r845 in range(y4m8):
LVAh = r845 * vM6o
for YRbF in range(int(y4m8 * 1.5)):
WKvO = YRbF * vM6o
if r845 != 0:
a9eO.draw.rect(Vjhr, JH9Z, [WKvO + 10, LVAh - yzQ0 // 2, vM6o - 20, yzQ0])
if YRbF != 0:
a9eO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lC9S(tOb9, AbaA, pirQ, BysH, thXF, UPWn):\n LZpg, aNZO = QrM1.subplots(nrows=1, ncols=1, figsize=(10, 10))\n gpRq = _F2p(projection='merc', llcrnrlat=pirQ, urcrnrlat=BysH, llcrnrlon=tOb9, urcrnrlon=AbaA, lat_ts=thXF, resolution='i', ax=aNZO)\n gpRq.drawparallels(oyIN.arange(pirQ, BysH, UPWn), labels=[... | [
"0.72897214",
"0.7235111",
"0.7225447",
"0.7143242",
"0.70155406",
"0.69880855",
"0.69877326",
"0.6941305",
"0.691307",
"0.6893552",
"0.68764275",
"0.68666375",
"0.6822043",
"0.6818263",
"0.6811095",
"0.67519116",
"0.6750754",
"0.6706603",
"0.670595",
"0.6661841",
"0.66571313... | 0.0 | -1 |
[write_high_scores] adds data to the high scores | def wDUR(ZWCE, cCrA, Ql2Z):
with open('high_scores_' + Ql2Z + '.txt', 'w') as vuvg:
for YRbF in range(len(ZWCE)):
KCHu = ZWCE[YRbF] + '\t' + str(cCrA[YRbF]) + '\n'
vuvg.write(KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G80F(YKHO):\n eGRE(U0IZ, D7jK, YKHO.highscore)",
"def seWH(YKHO):\n with open('highscore.txt', 'w') as PzCc:\n PzCc.write(str(YKHO.high_score))",
"def seWH(YKHO):\n with open('.highscore', 'w') as rVmU:\n rVmU.write(str(int(YKHO.high_score)))\n rVmU.close()",
"def TmLP(eQSh)... | [
"0.8078084",
"0.8059512",
"0.7996114",
"0.79747474",
"0.77670354",
"0.7756677",
"0.77565235",
"0.7756379",
"0.77163285",
"0.7673189",
"0.7671566",
"0.7547871",
"0.75376695",
"0.7492508",
"0.74099636",
"0.7345804",
"0.71873814",
"0.71804076",
"0.70961684",
"0.70689845",
"0.689... | 0.7581572 | 11 |
Return the ``url`` being used by this ``GPServiceAccount`` | def hKhs(YKHO):
return YKHO.__url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G9pm(YKHO):\n fnBX = ''\n if YKHO.GAE_SERVICE not in (None, 'default'):\n fnBX = YKHO.GAE_SERVICE + '-dot-'\n return f'https://{fnBX}{YKHO.PROJECT_ID}.{YKHO.PROJECT_REGION}.r.appspot.com'",
"def oU1u(YKHO):\n return YKHO._service_url",
"def bD7m(YKHO):\n return f'{YKHO.scheme}{YKHO.cr... | [
"0.75164205",
"0.74820954",
"0.7461578",
"0.7341372",
"0.7334406",
"0.72805405",
"0.727532",
"0.72714347",
"0.71865803",
"0.7173184",
"0.7168332",
"0.7168332",
"0.7168332",
"0.7168332",
"0.7168332",
"0.7168332",
"0.7168332",
"0.7168332",
"0.7168332",
"0.7168332",
"0.7168332",... | 0.70650625 | 47 |
Return the ``instanceId`` being used by this ``GPServiceAccount`` | def Pl65(YKHO):
return YKHO.__instanceId | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def o_gm(YKHO) -> str:\n return ... | [
"0.7388506",
"0.7388506",
"0.7388506",
"0.7388506",
"0.7388506",
"0.7388506",
"0.7388506",
"0.72912395",
"0.72912395",
"0.72912395",
"0.72912395",
"0.72912395",
"0.72912395",
"0.72912395",
"0.72912395",
"0.7274707",
"0.7248024",
"0.724158",
"0.7222866",
"0.7193396",
"0.717945... | 0.798793 | 0 |
Return the ``password`` being used by this ``GPServiceAccount`` | def AuKh(YKHO):
return YKHO.__password | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def QVq7(YKHO) -> str:\n return YKHO._passwo... | [
"0.8025717",
"0.8025717",
"0.8025717",
"0.8025717",
"0.7984761",
"0.79740906",
"0.79740906",
"0.79740906",
"0.79740906",
"0.79269314",
"0.7925237",
"0.7925237",
"0.7925237",
"0.79051495",
"0.78906524",
"0.7890605",
"0.7890605",
"0.7890605",
"0.7890605",
"0.7890605",
"0.789060... | 0.79587924 | 9 |
Tests LogManager as a context manager in unattended mode. | def f4fw(YKHO, p2s3, oDnj) -> None:
with TMAJ.patch('log_manager.running_unattended', return_value=True):
tOGM = TMAJ.Mock()
oDnj.return_value = tOGM
tOGM.__enter__ = TMAJ.Mock(return_value=None)
tOGM.__exit__ = TMAJ.Mock(return_value=None)
with tfpX.LogManager(HWhG):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P2IV(YKHO, p2s3, oDnj) -> None:\n with TMAJ.patch('log_manager.running_unattended', return_value=False):\n tOGM = TMAJ.Mock()\n oDnj.return_value = tOGM\n tOGM.__enter__ = TMAJ.Mock(return_value=None)\n tOGM.__exit__ = TMAJ.Mock(return_value=None)\n with tfpX.LogManager(HW... | [
"0.7130063",
"0.6050905",
"0.59102523",
"0.5705533",
"0.5684171",
"0.5589275",
"0.5576533",
"0.5558582",
"0.55392164",
"0.5523759",
"0.5514821",
"0.54614794",
"0.5436718",
"0.5432504",
"0.54094255",
"0.5400583",
"0.53956723",
"0.5364604",
"0.53506637",
"0.5348959",
"0.5342752... | 0.6814444 | 1 |
Convert a choosersvariables DataFrame to an idca DataFrame. | def yYbc(Evd2, yDqo='float64', gLlX=None):
h1k0 = Evd2.stack()
h1k0.index.rename('altid', level=-1, inplace=True)
ZOT4, m07n, NRKk = h1k0.index.names
h1k0 = h1k0.reset_index()
h1k0[ZOT4] = h1k0[ZOT4].astype(oyIN.int64)
h1k0[NRKk] = h1k0[NRKk].astype(oyIN.int64)
h1k0 = h1k0.set_index([ZOT4, m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YZAt(z2Au):\n return z2Au.select('date', 'country', 'province_state', 'admin2', 'confirmed', 'deaths', 'recovered')",
"def A1Ep(YKHO, jQ3Z) -> rLdf.DataFrame:\n VHFj = [fvDH for fvDH in jQ3Z.columns if jQ3Z[fvDH].dtype == 'O']\n for SMAj in VHFj:\n jQ3Z[SMAj] = jQ3Z[SMAj].astype('category').c... | [
"0.5485582",
"0.54546404",
"0.5448869",
"0.5394255",
"0.536773",
"0.52079064",
"0.51645136",
"0.5141309",
"0.51381457",
"0.5093826",
"0.5087851",
"0.50812143",
"0.5068388",
"0.50639147",
"0.5046878",
"0.50231373",
"0.49995697",
"0.4968177",
"0.49639437",
"0.49611628",
"0.4952... | 0.48597288 | 36 |
Calcule (u, v, p) tels que au + bv = p et p = pgcd(a, b) | def blEY(jzdc, Fg_i):
if jzdc == 0 and Fg_i == 0:
return (0, 0, 0)
if Fg_i == 0:
return (jzdc // abs(jzdc), 0, abs(jzdc))
P6bq, Ty9i, XP5J = PIFR.bezout(Fg_i, jzdc % Fg_i)
return (Ty9i, P6bq - Ty9i * (jzdc // Fg_i), XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def skor(jzdc, Fg_i, Z9rn, Csk6):\n n2Q1 = 4 * jzdc * Fg_i\n SpII = 4 * Z9rn * Csk6\n r8hN = n2Q1 + SpII - (jzdc + Fg_i - Z9rn - Csk6) ** 2\n XP5J = r8hN * r8hN - 4 * n2Q1 * SpII\n return (r8hN, XP5J)",
"def QbTE(J1b4, CYjz, EBgd, HpuQ):\n T5SM = lPKh(J1b4, CYjz, EBgd, HpuQ + oLG2.array([0, 2, ... | [
"0.68792176",
"0.64626485",
"0.6441205",
"0.63068444",
"0.6256541",
"0.61825484",
"0.61590654",
"0.61152077",
"0.6099639",
"0.60824037",
"0.6059321",
"0.6054868",
"0.6041995",
"0.60411584",
"0.60209113",
"0.60151815",
"0.59845185",
"0.5963333",
"0.59359604",
"0.58901286",
"0.... | 0.0 | -1 |
returns absolute path to location where hooks are stored | def it9n(YKHO):
hksT = Hy7s.path.join(YKHO.path, 'hooks')
if not YKHO.bare:
hksT = Hy7s.path.join(YKHO.path, '.git', 'hooks')
return hksT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XLYS(YKHO):\n return YKHO._hookPaths",
"def iTkA(YKHO, ZGE9):\n return Hy7s.path.join(YKHO.model_path(ZGE9), 'hooks')",
"def A34l() -> h8nf[str]:\n with Yn3K.Popen([gZZF, 'config', '--global', '--get', 'core.hooksPath'], stdout=Yn3K.PIPE) as NBjn:\n if NBjn.returncode:\n return N... | [
"0.7216476",
"0.7102604",
"0.70337903",
"0.6928733",
"0.68346226",
"0.65200704",
"0.63360196",
"0.6310878",
"0.62530494",
"0.62364715",
"0.6219867",
"0.6218393",
"0.62161845",
"0.6177328",
"0.61548585",
"0.61385936",
"0.6137822",
"0.6116045",
"0.61117524",
"0.61048114",
"0.61... | 0.83268344 | 0 |
Returns last change made on this repository as datetime object | def DCm0(YKHO):
return XHYN(YKHO._get_mtime(), qau2()[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OZNi(YKHO, pmON: str) -> cJ1g:\n try:\n E3oo = YKHO._run_shell_command(('git', 'log', '--format=\"%ct\"', '-n', '1', pmON))\n if E3oo:\n try:\n return qcWV.datetime.fromtimestamp(float(E3oo.strip('\"\\n')))\n except ValueError as reason:\n G9... | [
"0.7857937",
"0.7487634",
"0.7463344",
"0.7410126",
"0.73099715",
"0.7223458",
"0.7151625",
"0.71206605",
"0.7036934",
"0.702834",
"0.7026245",
"0.6995419",
"0.69926727",
"0.6991459",
"0.6991459",
"0.6974879",
"0.6947184",
"0.6927976",
"0.6909933",
"0.6885561",
"0.6873875",
... | 0.78290004 | 1 |
Returns user's email from global configuration file. | def bzh1(YKHO, Nu1S=None):
return YKHO.get_config_value('user', 'email', Nu1S) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bzh1(mWFP):\n return o59G('accounts', 'users', mWFP, 'email')",
"def bzh1():\n return tgM5(['config', '--get', 'user.email']).rstrip()",
"def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')",
"def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')",
"def RiwM(sWmO):\n try:... | [
"0.81175935",
"0.7924358",
"0.7887957",
"0.7887957",
"0.7724145",
"0.7690135",
"0.7384875",
"0.7334549",
"0.7327041",
"0.7327041",
"0.7327041",
"0.7327041",
"0.7327041",
"0.7327041",
"0.7327041",
"0.7327041",
"0.73076457",
"0.7286379",
"0.7262884",
"0.72528845",
"0.7243964",
... | 0.89308107 | 0 |
Return a copy of this view. | def jth9(YKHO) -> zzFU:
return zzFU(YKHO.setting_name, YKHO.stored_value, YKHO.update_callback) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tTee(YKHO) -> object:\n return YKHO._copy(view=True)",
"def jth9(YKHO) -> object:\n return YKHO._copy(view=False)",
"def jth9(YKHO):\n return YKHO",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
... | [
"0.86024433",
"0.8228152",
"0.807672",
"0.8010314",
"0.8010314",
"0.8010314",
"0.8010314",
"0.7942745",
"0.7911207",
"0.7892871",
"0.7892871",
"0.7841942",
"0.7841942",
"0.7841942",
"0.7841942",
"0.7841942",
"0.7841942",
"0.7822003",
"0.7818908",
"0.7777585",
"0.7777585",
"... | 0.0 | -1 |
Verifies that the token is valid and belongs to an existing user | def oAWu():
def mrMx(JfyU):
@zaGL(JfyU)
async def decorated_function(QePW, *qIxc, **B2fa):
bo34.debug(QePW.headers)
if QePW.headers.get('token') is None:
G9jH.error('No bearer token provided')
raise CiPt('No bearer token provided')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V5V3(eOtH):\n CBIr = mv1M.verify_auth_token(eOtH)\n if not CBIr:\n return False\n Oa1e.user = CBIr\n return True",
"def ZlGy(eOtH: str) -> bool:\n uJjO = jd4P(token=eOtH)\n try:\n mv1M.objects.get(id=uJjO)\n return True\n except mv1M.DoesNotExist:\n return Fal... | [
"0.75042254",
"0.74824727",
"0.74512166",
"0.73414123",
"0.7332141",
"0.7261312",
"0.7230185",
"0.7204314",
"0.7149014",
"0.713738",
"0.7114291",
"0.70900404",
"0.70584565",
"0.70555586",
"0.7033317",
"0.7014037",
"0.70121485",
"0.6997896",
"0.6991682",
"0.6985479",
"0.698461... | 0.0 | -1 |
Adds axis labels to a plot using default labels and units contained in a Dset. | def Xx7Q(tgCD, MPlV, v4rA=0.0, Vbx2=0.0, z5su='XY', qQTo='.5f', zlOv='.5f', **B2fa):
CKog = z5su.upper()
if CKog.find('X') > -1:
VoLU = tgCD.x.label
if v4rA < 0.0:
VoLU += (' + {0:' + qQTo + '}').format(-v4rA)
elif v4rA > 0.0:
VoLU += (' - {0:' + qQTo + '}').forma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E1aV(YKHO, VoLU='t', IICq='t'):\n YKHO.command('set xlabel \"{0}\"\\nset ylabel \"{1}\"'.format(VoLU, IICq))",
"def IkLx(YKHO, set, rYO3, GAJY, **B2fa):\n if set:\n rYO3 = f' [{rYO3}]' if rYO3 != '' else ''\n YKHO.ax.set_xlabel(f'{YKHO.x_units}{rYO3}', fontsize=GAJY, **B2fa)",
"def gt0N... | [
"0.72033024",
"0.718681",
"0.7135083",
"0.70675796",
"0.69921273",
"0.6952392",
"0.67072165",
"0.6706639",
"0.66303086",
"0.65930164",
"0.64981526",
"0.6497255",
"0.6472719",
"0.64651924",
"0.64617026",
"0.6445172",
"0.6344919",
"0.633722",
"0.6327778",
"0.63261515",
"0.63114... | 0.790345 | 0 |
Initialize a random tensor, normal(0,kwargs(CGNN_SETTINGS.init_weights)). | def DbxN(zNig, **B2fa):
pkvj = B2fa.get('init_std', SqAi.init_weights)
return ZylS.random_normal(shape=zNig, stddev=pkvj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN(zNig):\n return ZylS.random_normal(shape=zNig, stddev=fvfo.init_weights)",
"def Pudw(tpio):\n UgJ_ = ZylS.sqrt(ZylS.cast(tpio[0], ZylS.float32)) * 10\n return ZylS.Variable(ZylS.random_normal(ZylS.cast(tpio, ZylS.int32)) / UgJ_, trainable=True)",
"def ojMW(r8hN: nn.Module):\n U78l.init.nor... | [
"0.77301526",
"0.73545784",
"0.71591264",
"0.71591264",
"0.71325415",
"0.7125688",
"0.7125688",
"0.7044295",
"0.7044295",
"0.6969406",
"0.69588923",
"0.6893893",
"0.6811719",
"0.6797985",
"0.6795065",
"0.6795065",
"0.6742559",
"0.67235124",
"0.6722933",
"0.67123365",
"0.67067... | 0.77828217 | 0 |
A convolutionlike approach to generating patches from a tensor. | def dShr(WKvO: np.ndarray, FTrt: AxesLike, _0fC: AxesLike, MPlV: AxesLike=None, deVW: bool=False) -> iu5r[oyIN.ndarray]:
for FlUN in c8Yy(WKvO.shape, FTrt, _0fC, MPlV, valid=deVW):
yield HV3F(WKvO, FlUN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wp2m(VXjJ, Ot1W=3, _0fC=1, dvgN=1):\n kQ4O = U78l.Unfold(kernel_size=Ot1W, padding=dvgN, stride=_0fC)\n ohfT = kQ4O(VXjJ)\n return ohfT.transpose(1, 2).squeeze()",
"def kP4f(YKHO, g4y1: torch.Tensor, FTrt: int=None, _0fC: int=None):\n if FTrt is None:\n FTrt = YKHO.patch_size\n if _0fC ... | [
"0.6545437",
"0.6436737",
"0.63273954",
"0.61188364",
"0.6098979",
"0.6051308",
"0.6018048",
"0.5979842",
"0.5957921",
"0.5947132",
"0.58700025",
"0.58699626",
"0.58576775",
"0.58576775",
"0.58415043",
"0.5832706",
"0.5768902",
"0.57463986",
"0.5736795",
"0.57208204",
"0.5707... | 0.0 | -1 |
Build a tensor of shape ``output_shape`` from ``patches`` obtained in a convolutionlike approach with corresponding parameters. The overlapping parts are averaged. References | def T7MU(ohfT: Iterable[np.ndarray], oLRV: AxesLike, _0fC: AxesLike, MPlV: AxesLike=None, deVW: bool=False) -> oyIN.ndarray:
MPlV, _0fC = gPyI(MPlV, _0fC)
Po4F, ohfT = T7C_(ohfT)
FTrt = oyIN.array(Po4F.shape)[list(MPlV)]
if len(oyIN.atleast_1d(oLRV)) != Po4F.ndim:
oLRV = owvs(Po4F.shape, oLRV, M... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y0BO(ohfT, N0ky):\n N0ky = oyIN.asarray(N0ky)\n FTrt = oyIN.asarray(ohfT[0].shape)\n if FTrt[0] > N0ky[0]:\n raise ValueError('Height of the patch should be less than the height of the image.')\n if FTrt[1] > N0ky[1]:\n raise ValueError('Width of the patch should be less than the widt... | [
"0.59617025",
"0.5915136",
"0.58621866",
"0.58376956",
"0.5807278",
"0.57801825",
"0.57715595",
"0.5719901",
"0.5678498",
"0.5659613",
"0.5612669",
"0.5585481",
"0.55734456",
"0.5539467",
"0.55143857",
"0.5477668",
"0.544867",
"0.54404515",
"0.5430438",
"0.5430438",
"0.540452... | 0.6657478 | 0 |
Compare two bounds and determine if they are disjoint. | def XRTE(g7wm, RTtO):
return g7wm[0] > RTtO[2] or g7wm[2] < RTtO[0] or g7wm[1] > RTtO[3] or (g7wm[3] < RTtO[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _tbo(YKHO, kYGz, ftz7):\n return all([YKHO._c_overlap(kYGz[BHsk], ftz7[BHsk]) for BHsk in ftz7.keys()])",
"def d3QJ(YKHO, Elif):\n YRbF = 0\n for WKvO in Elif.pieces:\n if isinstance(WKvO, Kx1f):\n YRbF, XP5J = YKHO.search(WKvO.a, YRbF)\n if XP5J is not None:\n ... | [
"0.7480871",
"0.7198366",
"0.7196719",
"0.7119219",
"0.7119219",
"0.7036808",
"0.69419247",
"0.68543965",
"0.68080103",
"0.67770416",
"0.6769085",
"0.6754343",
"0.67332387",
"0.672263",
"0.6698533",
"0.6689204",
"0.66783583",
"0.6677316",
"0.66715735",
"0.6650911",
"0.6636808... | 0.8209251 | 0 |
Helper function to read confluence config yaml file | def fh0W():
try:
A2FY = open('TeamSPBackend/common/config/confluence_config.yml')
_fuv = eJb6.load(A2FY, Loader=eJb6.FullLoader)
return _fuv
except FileNotFoundError as e:
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kfOW():\n with open(Fm4J) as WRxi:\n GPtr = eJb6.load(WRxi)\n return GPtr",
"def v9dc(nUeQ):\n with open(nUeQ, 'r') as wOb_:\n try:\n return eJb6.safe_load(wOb_)\n except eJb6.YAMLError as exc:\n print(BQDi)",
"def R4f_():\n xfst = Hy7s.path.dirname(Hy... | [
"0.7850226",
"0.773054",
"0.7694606",
"0.7654331",
"0.7489878",
"0.7478121",
"0.7474207",
"0.7461981",
"0.7456539",
"0.7455982",
"0.7444822",
"0.7421447",
"0.7412281",
"0.738544",
"0.738172",
"0.73805976",
"0.7331999",
"0.73073125",
"0.7241343",
"0.7233615",
"0.7228607",
"0... | 0.824514 | 0 |
Transform image to augment data. | def SZFh(LNo8, fh2j=jzdc.flip, dmPH=jzdc.monochrome, QajG=jzdc.random_crop):
Mkmy = LNo8
H2v2 = Mkmy.get_shape()[0]
TVTK = Mkmy.get_shape()[1]
if fh2j:
Mkmy = ZylS.image.random_flip_left_right(Mkmy, seed=yokr)
if dmPH:
Mkmy = ZylS.image.rgb_to_grayscale(Mkmy)
if not H2v2 == TVTK:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TR5M(YKHO, VXjJ):\n W6oi(VXjJ)\n a1PO = YKHO.get_transform(VXjJ)\n return a1PO.apply_image(VXjJ)",
"def P1jn(YKHO, LNo8):\n if YKHO.augmenter is not None:\n LNo8 = YKHO.augmenter(LNo8)\n return LNo8",
"def ma8A(YKHO, VXjJ):\n ABDL = oNti(YKHO.level, 4)\n return Y4jz.posterize(VX... | [
"0.84725535",
"0.82037824",
"0.74178106",
"0.73756313",
"0.7362362",
"0.7357457",
"0.7318112",
"0.7302441",
"0.7274815",
"0.7273748",
"0.72324383",
"0.72223425",
"0.72188604",
"0.7209406",
"0.71462625",
"0.71412915",
"0.70900303",
"0.70696825",
"0.7000509",
"0.6979211",
"0.69... | 0.0 | -1 |
Build a vgg19 model. | def GZ8j(Yw_3, nZt5=1000):
with ZylS.name_scope('vgg_network'):
KeL5, wnQ_ = dmUU(Yw_3, num_classes=1000, global_pool=True)
return (KeL5, wnQ_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BXD4(GhuM=(IGeV.img_rows, IGeV.img_cols, IGeV.channels)):\n MYHg = dTM8(weights='imagenet')\n MYHg.outputs = [MYHg.layers[5].output]\n VXjJ = X6a0(shape=GhuM)\n r13y = MYHg(VXjJ)\n C3ST = wOed(VXjJ, r13y)\n return C3ST",
"def euQt(YKHO):\n MYHg = dTM8(weights='imagenet')\n MYHg.output... | [
"0.8122689",
"0.8051232",
"0.7933171",
"0.7743031",
"0.7653363",
"0.7640222",
"0.7616873",
"0.760606",
"0.759367",
"0.75493866",
"0.75493866",
"0.75038123",
"0.7427205",
"0.7412873",
"0.7403971",
"0.72959435",
"0.72374296",
"0.7234321",
"0.72205615",
"0.7194472",
"0.7176113",... | 0.0 | -1 |
Batches an iterable into chunks of size n. | def Wc9F(OxJJ: list, exwG: int=1) -> iu5r[list]:
u54L = len(OxJJ)
for cXyw in range(0, u54L, exwG):
yield OxJJ[cXyw:min(cXyw + exwG, u54L)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nJ0e(OxJJ, exwG=10):\n fIb3 = len(OxJJ)\n for cXyw in range(0, fIb3, exwG):\n yield list(OxJJ[cXyw:min(cXyw + exwG, fIb3)])",
"def nJ0e(OxJJ, exwG=10):\n fIb3 = len(OxJJ)\n for cXyw in range(0, fIb3, exwG):\n yield list(OxJJ[cXyw:min(cXyw + exwG, fIb3)])",
"def AyNP(OxJJ, exwG):\n... | [
"0.8508177",
"0.8508177",
"0.8486607",
"0.83235633",
"0.82909864",
"0.8282364",
"0.8171034",
"0.81620044",
"0.8161143",
"0.8158147",
"0.812668",
"0.812668",
"0.810994",
"0.81074125",
"0.8045304",
"0.804046",
"0.80128986",
"0.80127084",
"0.80126095",
"0.80094033",
"0.8007877",... | 0.81360406 | 10 |
returns the total number of parameters used by `m` (only counting shared parameters once); if `only_trainable` is True, then only includes parameters with `requires_grad = True` | def xH4P(r8hN: torch.nn.Module, LCet: str, fuyQ: bool=False, Ccyk: bool=False):
SGPK = r8hN.parameters()
if Ccyk:
SGPK = list((XP5J for XP5J in SGPK if XP5J.requires_grad))
if fuyQ:
SGPK = dict(((XP5J.data_ptr(), XP5J) for XP5J in SGPK)).values()
Zu5r = sum((XP5J.numel() for XP5J in SGPK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eQ5t(r8hN: torch.nn.Module, Ccyk: bool=False):\n SGPK = r8hN.parameters()\n if Ccyk:\n SGPK = list((XP5J for XP5J in SGPK if XP5J.requires_grad))\n kcwm = dict(((XP5J.data_ptr(), XP5J) for XP5J in SGPK)).values()\n return sum((XP5J.numel() for XP5J in kcwm))",
"def eQ5t(yR_P, GnzJ=True):\n... | [
"0.8811659",
"0.8425545",
"0.81310487",
"0.80174655",
"0.7989069",
"0.7963997",
"0.78380495",
"0.7822024",
"0.78124875",
"0.77409434",
"0.77372575",
"0.7734347",
"0.7706289",
"0.7599221",
"0.74988323",
"0.74988323",
"0.74988323",
"0.74988323",
"0.7366352",
"0.73537636",
"0.72... | 0.80378574 | 3 |
Create a message that mentions everyone in a role with a specified message. Mainly unused now that Discord implemented rolementions. Currently not multiserver supported. Due to natural Discord implemention, this is likely to be removed in the near future. | async def announce(OaeV, LmAn: str, *Ol8d: str):
tO9_ = ' '.join(Ol8d)
LmAn = ZOrr.utils.find(lambda r8hN: x0SS(r8hN.name) == x0SS(LmAn), OaeV.message.server.roles)
if LmAn is None:
await JyK9.say('That role does not exist')
return
lj90 = [a70H for a70H in OaeV.message.server.members if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def create_auto_react_role(x0hE, tvqc, Ol8d: ('str', 'Please reference a message!')):\n lSCo = tvqc.guild\n if lSCo is None:\n eTsH('Guild only command!')\n if x0hE.get_guild_profile_for(lSCo) is None:\n eTsH('I must be in the guild to execute this command.')\n kzNh = Cy2R(Ol8d)\n ... | [
"0.64420223",
"0.63674307",
"0.63306373",
"0.63225454",
"0.63036644",
"0.6284626",
"0.62647367",
"0.61714333",
"0.6164343",
"0.6154613",
"0.6141502",
"0.60904086",
"0.60770565",
"0.60603684",
"0.60316724",
"0.6027952",
"0.60271823",
"0.60255253",
"0.6009614",
"0.6001544",
"0.... | 0.6521013 | 0 |
Send a survey to everyone of a specified role. Currently not multiserver supported, aimed as a rework project in the future. | async def survey(OaeV, LmAn: str, *bAls: str):
tO9_ = ' '.join(bAls)
LmAn = ZOrr.utils.find(lambda r8hN: x0SS(r8hN.name) == x0SS(LmAn if LmAn is not 'everyone' else '@everyone'), OaeV.message.server.roles)
if LmAn is None:
await JyK9.say('That role does not exist')
return
lj90 = [a70H fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cAvG(YKHO, ANfV):\n if YKHO.isAnonymousUser():\n return\n qsJ6 = YKHO.getOwner()\n nkWU = YKHO.REQUEST.AUTHENTICATED_USER\n J8Lk = YKHO.getSite().getAuthenticationTool()\n Csk6 = {}\n Csk6['NAME'] = J8Lk.getUserFullName(nkWU)\n Csk6['SURVEY_TITLE'] = YKHO.title\n Csk6['SURVEY_URL... | [
"0.5585055",
"0.540587",
"0.52764755",
"0.5269438",
"0.5200319",
"0.5149725",
"0.51439947",
"0.50571924",
"0.5055565",
"0.5046227",
"0.5045193",
"0.50403935",
"0.5023362",
"0.5020779",
"0.5007104",
"0.4984882",
"0.49699265",
"0.496979",
"0.4955785",
"0.49285525",
"0.49211735"... | 0.71877795 | 0 |
Returns n amount of zeros (0) in string format, eg n=3 => "000" | def YABS(exwG):
VNqG = ''
for YRbF in range(0, exwG):
VNqG = VNqG + '0'
return VNqG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def urrE(FGW3):\n if FGW3 < 10:\n kDYS = '0000' + str(FGW3)\n if FGW3 >= 10 and FGW3 < 100:\n kDYS = '000' + str(FGW3)\n if FGW3 >= 100 and FGW3 < 1000:\n kDYS = '00' + str(FGW3)\n if FGW3 >= 1000 and FGW3 < 10000:\n kDYS = '0' + str(FGW3)\n return kDYS",
"def jdgM(KCHu... | [
"0.7653418",
"0.7551603",
"0.753921",
"0.7295635",
"0.72817135",
"0.72189623",
"0.7100816",
"0.6997297",
"0.6985234",
"0.69766307",
"0.6971628",
"0.69555414",
"0.69500315",
"0.69142747",
"0.68776536",
"0.6863913",
"0.68296003",
"0.6824578",
"0.68203217",
"0.6771502",
"0.67321... | 0.8129905 | 0 |
Amazon Resource Name (ARN) of the queue. | def hMqs(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fi5a(YKHO):\n return YKHO._job_queue_arn",
"def LUn8(YKHO, Tezm):\n geh0 = YKHO.client.get_queue_attributes(QueueUrl=Tezm, AttributeNames=['QueueArn'])\n return geh0['Attributes']['QueueArn']",
"def Q64Y(YKHO):\n return YKHO._queue_name",
"def gGq6(YKHO) -> str:\n return qe4Y.get(YKHO, 'qu... | [
"0.8307174",
"0.772406",
"0.7263096",
"0.6833459",
"0.6833459",
"0.6604901",
"0.65733224",
"0.65733224",
"0.6546895",
"0.64785266",
"0.64667696",
"0.6450895",
"0.64302236",
"0.636817",
"0.636817",
"0.636817",
"0.63428795",
"0.6334881",
"0.63156486",
"0.6289294",
"0.626982",
... | 0.0 | -1 |
URL of the source queue. | def Tezm(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'queue_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tezm(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'queue_url')",
"def Tezm(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'queue_url')",
"def akJw():\n vexM = pehk.get_queue_url(QueueName='DiningConciergeSQS').get('QueueUrl')\n return vexM",
"def TysO(Stta=None, tXVF=None):\n pass"... | [
"0.8024885",
"0.8024885",
"0.7311091",
"0.7264776",
"0.6897051",
"0.6858836",
"0.6852899",
"0.68322945",
"0.67775744",
"0.6775543",
"0.6766043",
"0.6725177",
"0.65265167",
"0.6476618",
"0.64194405",
"0.64059514",
"0.6382164",
"0.6380149",
"0.63538665",
"0.6254345",
"0.6243757... | 0.77852434 | 2 |
The tags that you attach to this queue. | def dJ1p(YKHO) -> h8nf[bdIy['outputs.QueueTag']]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO):\n return YKHO._tags",
"def dJ1p(YKHO):\n return YKHO._tags",
"def dJ1p(YKHO):\n return YKHO._tags",
"def dJ1p(YKHO):\n return YKHO._tags",
"def dJ1p(YKHO):\n return YKHO._tags",
"def dJ1p(YKHO):\n return YKHO._tags",
"def dJ1p(YKHO):\n return YKHO._tags",
"def dJ1... | [
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"0.7906133",
"... | 0.77063924 | 29 |
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 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')",
... | [
"0.8590243",
"0.8590243",
"0.8364527",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"0.8202957",
"... | 0.80886495 | 52 |
The identity of the resource. | def _E99(YKHO) -> h8nf[qe4Y.Input['IdentityArgs']]:
return qe4Y.get(YKHO, 'identity') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _E99(YKHO) -> h8nf[qe4Y.Input['ResourceIdentityArgs']]:\n return qe4Y.get(YKHO, 'identity')",
"def _E99(YKHO) -> h8nf[qe4Y.Input['ResourceIdentityArgs']]:\n return qe4Y.get(YKHO, 'identity')",
"def _E99(YKHO):\n return YKHO._id",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def ... | [
"0.8192339",
"0.8192339",
"0.8154893",
"0.8040804",
"0.8032675",
"0.8032675",
"0.8032675",
"0.80168414",
"0.7924023",
"0.7835885",
"0.7835885",
"0.7835885",
"0.7835885",
"0.7835885",
"0.7810354",
"0.7810029",
"0.7799954",
"0.77551454",
"0.7605124",
"0.7570703",
"0.7563199",
... | 0.0 | -1 |
ID of the resource that manages this resource. | def aZTu(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'managed_by') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return YKHO._resource_id",
"def PcW4(YKHO) -> str:\n return YKHO.__resource_id",
"def PcW4(YKHO) -> int:\n return YKHO._resource_id",
"def PcW4(YKHO):\n return YKHO._resource_id",
"def PcW4(YKHO):\n raise NotImplementedError()",
"def id(YKHO):\n return YKHO._getValue('re... | [
"0.83598995",
"0.8233422",
"0.8204534",
"0.8167946",
"0.80893254",
"0.7978822",
"0.7935459",
"0.79037875",
"0.79037875",
"0.79037875",
"0.7649468",
"0.7601545",
"0.75176907",
"0.73659587",
"0.73659587",
"0.73659587",
"0.73659587",
"0.73659587",
"0.73659587",
"0.7364474",
"0.7... | 0.0 | -1 |
The SKU of the resource. | def PXIM(YKHO) -> h8nf[qe4Y.Input['SkuArgs']]:
return qe4Y.get(YKHO, 'sku') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO) -> 'outputs.ResourceSku... | [
"0.8788149",
"0.8701437",
"0.8701437",
"0.8701437",
"0.8701437",
"0.8701437",
"0.8516864",
"0.84869313",
"0.84869313",
"0.84553975",
"0.8420303",
"0.8420303",
"0.8281009",
"0.8243911",
"0.8243911",
"0.82398474",
"0.8213471",
"0.8213471",
"0.8213471",
"0.8213471",
"0.8213471",... | 0.79557323 | 31 |
Get an existing ApplianceDefinition resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'ApplianceDefinition':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = lD5u.__new__(lD5u)
r6DL.__dict__['artifacts'] = None
r6DL.__dict__['authorizations'] = None
r6DL.__dict__['des... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, acnk: Optional[pulumi.Input[str]]=None, eJTR: Optional[pulumi.Input[str]]=None, Rci7: Optional[pulumi.Input[str]]=None, yqc_: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, o4Jx: Optional[pulumi.Input... | [
"0.5860515",
"0.58338547",
"0.57952565",
"0.55738926",
"0.55355823",
"0.55262315",
"0.53021896",
"0.5299395",
"0.5294626",
"0.5290261",
"0.52870023",
"0.5268915",
"0.52524763",
"0.52460486",
"0.5241617",
"0.5229203",
"0.5207208",
"0.5162964",
"0.51542956",
"0.5124195",
"0.511... | 0.71383566 | 0 |
The identity of the resource. | def _E99(YKHO) -> qe4Y.Output[h8nf['outputs.IdentityResponse']]:
return qe4Y.get(YKHO, 'identity') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _E99(YKHO) -> h8nf[qe4Y.Input['ResourceIdentityArgs']]:\n return qe4Y.get(YKHO, 'identity')",
"def _E99(YKHO) -> h8nf[qe4Y.Input['ResourceIdentityArgs']]:\n return qe4Y.get(YKHO, 'identity')",
"def _E99(YKHO):\n return YKHO._id",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def ... | [
"0.8192339",
"0.8192339",
"0.8154893",
"0.8040804",
"0.8032675",
"0.8032675",
"0.8032675",
"0.80168414",
"0.7924023",
"0.7835885",
"0.7835885",
"0.7835885",
"0.7835885",
"0.7835885",
"0.7810354",
"0.7810029",
"0.7799954",
"0.77551454",
"0.7605124",
"0.7570703",
"0.7563199",
... | 0.0 | -1 |
ID of the resource that manages this resource. | def aZTu(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'managed_by') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return YKHO._resource_id",
"def PcW4(YKHO) -> str:\n return YKHO.__resource_id",
"def PcW4(YKHO) -> int:\n return YKHO._resource_id",
"def PcW4(YKHO):\n return YKHO._resource_id",
"def PcW4(YKHO):\n raise NotImplementedError()",
"def id(YKHO):\n return YKHO._getValue('re... | [
"0.8360757",
"0.82340467",
"0.82056737",
"0.8168926",
"0.8090274",
"0.7979985",
"0.7936772",
"0.7905174",
"0.7905174",
"0.7905174",
"0.7650352",
"0.7602821",
"0.7518226",
"0.7367573",
"0.7367573",
"0.7367573",
"0.7367573",
"0.7367573",
"0.7367573",
"0.7365238",
"0.7315891",
... | 0.0 | -1 |
The SKU of the resource. | def PXIM(YKHO) -> qe4Y.Output[h8nf['outputs.SkuResponse']]:
return qe4Y.get(YKHO, 'sku') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO) -> 'outputs.ResourceSku... | [
"0.8788149",
"0.8701437",
"0.8701437",
"0.8701437",
"0.8701437",
"0.8701437",
"0.8516864",
"0.84869313",
"0.84869313",
"0.84553975",
"0.8420303",
"0.8420303",
"0.8281009",
"0.8243911",
"0.8243911",
"0.82398474",
"0.8213471",
"0.8213471",
"0.8213471",
"0.8213471",
"0.8213471",... | 0.81591576 | 26 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
print('The most common month is: {}'.format(str(jQ3Z['month'].mode().values)))
print('The most common day is: {}'.format(str(jQ3Z['week_day'].mode().values[0])))
NdW8 = jQ3Z['Start Time'].dt.weekday_name... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.75965923 | 41 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
bTuL = jQ3Z['Start Station'].mode().values[0]
print('The most common start station is: {}'.format(bTuL))
Nj0t = jQ3Z['End Station'].mode().values[0]
print('The most common end station is: {}'.format... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.7341158 | 39 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
jQ3Z['Time_duration'] = jQ3Z['End Time'] - jQ3Z['Start Time']
print('Total travel time is: {}'.format(str(jQ3Z['Time_duration'].sum())))
print('The mean travel is: {}'.format(str(jQ3Z['Time_duration'].mean())))
print('\... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8252613",
"0.8147507",
"0.80973095",
"0.8013431",
"0.79880637",
"0.7984371",
"0.79791325",
"0.7970343",
"0.79658914",
"0.79640764",
"0.7962253",
"0.7962232",
"0.7952741",
"0.79494196",
"0.7944711",
"0.79379624",
"0.79243296",
"0.7920978",
"0.79203933",
"0.79191756",
"0.791... | 0.0 | -1 |
Return True if buffer i has space to add datasize more vectors. | def DIAu(YKHO, YRbF, ei96):
LaVg = YKHO.buffers[YRbF]
DwLG = YKHO.buffer_index[YRbF]
return LaVg.shape[0] > DwLG + ei96 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUSK(YKHO):\n return len(YKHO.collections) + len(YKHO.images) + len(YKHO.lines) + len(YKHO.patches) > 0",
"def uHQt(YKHO):\n return YKHO._idx < len(YKHO._data)",
"def LUSK(YKHO):\n return YKHO.get_size() > 0",
"def szAg(YKHO):\n return len(YKHO._vector_data)",
"def SLA2(YKHO):\n if YKHO.... | [
"0.6413499",
"0.627782",
"0.6180425",
"0.6123287",
"0.60845786",
"0.60828763",
"0.6049754",
"0.6011414",
"0.60011846",
"0.59518814",
"0.59264976",
"0.5898156",
"0.58926994",
"0.5890223",
"0.58846295",
"0.5883964",
"0.58817255",
"0.586697",
"0.58609515",
"0.58602864",
"0.58602... | 0.7549003 | 0 |
Authenticate the user. This will authenticate the username and return the appropriate User object, or None. | def NLCy(YKHO, NtEF, jTXt, **B2fa):
import crypt
import nis
NtEF = NtEF.strip()
try:
KaGP = nis.match(NtEF, 'passwd').split(':')
pw76 = KaGP[1]
q_t5 = crypt.crypt(jTXt, pw76)
if pw76 == q_t5:
return YKHO.get_or_create_user(NtEF, None, KaGP)
except nis.erro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy(YKHO, QePW, jTXt, NtEF):\n try:\n CBIr = YKHO.lookup_user(username=NtEF)\n except egNl().DoesNotExist:\n return None\n else:\n if CBIr.check_password(raw_password=jTXt):\n return CBIr\n else:\n return None",
"def NLCy(YKHO, NtEF=None, **B2fa):\n... | [
"0.7973047",
"0.7895236",
"0.7847049",
"0.77333784",
"0.76482385",
"0.7628813",
"0.7601775",
"0.74835956",
"0.74835956",
"0.74754286",
"0.7448848",
"0.73814917",
"0.7341657",
"0.7335622",
"0.7299919",
"0.7249875",
"0.72453827",
"0.7241062",
"0.72309405",
"0.7228773",
"0.72287... | 0.7493236 | 7 |
Get an existing user, or create one if it does not exist. | def C1yR(YKHO, NtEF, QePW, KaGP=None):
import nis
NtEF = NtEF.strip()
try:
CBIr = mv1M.objects.get(username=NtEF)
except mv1M.DoesNotExist:
try:
if not KaGP:
KaGP = nis.match(NtEF, 'passwd').split(':')
ZWCE = KaGP[4].split(',')[0].split(' ', 1)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDO8(YKHO, **B2fa):\n SGYn = B2fa.copy()\n SGYn.pop('password')\n SGYn = YKHO._restore_uuids(**SGYn)\n SSsP = YKHO.first(**SGYn)\n if SSsP is not None:\n return SSsP\n Zsxq = B2fa.get('id', None)\n if Zsxq is not None:\n SSsP = YKHO.get(Zsxq)\n if SSsP is not None:\n ... | [
"0.81877023",
"0.80315304",
"0.7738896",
"0.7709031",
"0.7579653",
"0.7539254",
"0.7520783",
"0.7459468",
"0.7397077",
"0.7356279",
"0.7337735",
"0.7316674",
"0.7313725",
"0.73033214",
"0.72871596",
"0.722249",
"0.7212135",
"0.7176611",
"0.7175637",
"0.7175338",
"0.7174043",
... | 0.7087518 | 25 |
Return the set of compositions which are finer than ``self``. | def xeQH(YKHO):
if not YKHO:
return lOAY([YKHO])
else:
return KPxj([SV1q(YRbF) for YRbF in YKHO]).map(C52j.sum) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kAw7(YKHO):\n if YKHO.base_ring() in HZwZ().Finite():\n return [HZwZ().Finite()]\n else:\n return []",
"def tGMQ(YKHO):\n return SV1q(len(YKHO)).map(YKHO.fatten)",
"def qkEf(YKHO) -> set:\n Jzfj = YKHO.first_set.intersection(YKHO.second_set)\n print('con cardinality ', len(Jzfj... | [
"0.5970389",
"0.5947128",
"0.58402497",
"0.58384615",
"0.58384615",
"0.5833807",
"0.5821433",
"0.58053404",
"0.5803981",
"0.5797632",
"0.575903",
"0.5757709",
"0.5727086",
"0.57104486",
"0.5708327",
"0.56951785",
"0.5687064",
"0.5674001",
"0.567322",
"0.56279796",
"0.56202435... | 0.68616986 | 0 |
Return ``True`` if the composition ``self`` is finer than the composition ``co2``; otherwise, return ``False``. | def D2vJ(YKHO, W2NN):
XdlL = YKHO
if sum(XdlL) != sum(W2NN):
raise ValueError('compositions self (= %s) and co2 (= %s) must be of the same size' % (YKHO, W2NN))
zOn6 = 0
qYa6 = 0
TPao = 0
for qyqD in W2NN:
qYa6 += qyqD
while zOn6 < qYa6:
zOn6 += XdlL[TPao]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lWXk(YKHO, Elif, q1li):\n if q1li.rank[YKHO] < q1li.rank[Elif] or (q1li.rank[YKHO] == q1li.rank[Elif] and q1li.crowding_distance[YKHO] > q1li.crowding_distance[Elif]):\n return True\n else:\n return False",
"def rS2z(YKHO, W2NN):\n XdlL = YKHO\n if sum(XdlL) > sum(W2NN):\n re... | [
"0.64407825",
"0.6419909",
"0.6357503",
"0.62581664",
"0.6254883",
"0.6240973",
"0.6202669",
"0.61881137",
"0.6177483",
"0.6173683",
"0.6113004",
"0.6111018",
"0.6107972",
"0.61028355",
"0.6102325",
"0.60907096",
"0.6073852",
"0.60625345",
"0.60539687",
"0.6036642",
"0.602769... | 0.7326833 | 0 |
Return the set of compositions which are fatter than ``self``. | def tGMQ(YKHO):
return SV1q(len(YKHO)).map(YKHO.fatten) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xeQH(YKHO):\n if not YKHO:\n return lOAY([YKHO])\n else:\n return KPxj([SV1q(YRbF) for YRbF in YKHO]).map(C52j.sum)",
"def _i9v(YKHO):\n Mkmy = []\n for eHNT in YKHO._fleets:\n if eHNT.Owner() != 1:\n continue\n Mkmy.append(eHNT)\n return Mkmy",
"def xr... | [
"0.6441978",
"0.6013798",
"0.59958094",
"0.597197",
"0.59477174",
"0.59303087",
"0.58192056",
"0.5782364",
"0.5722687",
"0.57067364",
"0.56662613",
"0.5654992",
"0.56522554",
"0.5645451",
"0.56163037",
"0.5616288",
"0.56090236",
"0.5601554",
"0.55991876",
"0.559543",
"0.55941... | 0.63139755 | 1 |
Return the lengths of the compositions in the refinement splitting of ``self`` according to ``J``. | def IzK9(YKHO, Oa10):
return SV1q()([len(bGrB) for bGrB in YKHO.refinement_splitting(Oa10)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nUUr(YKHO, Oa10):\n pdhd = YKHO\n if sum(pdhd) != sum(Oa10):\n raise ValueError('compositions self (= %s) and J (= %s) must be of the same size' % (pdhd, Oa10))\n zOn6 = 0\n qYa6 = 0\n TPao = -1\n kq9x = []\n for qyqD in Oa10:\n THLB = []\n qYa6 += qyqD\n while ... | [
"0.72316283",
"0.6498413",
"0.64575523",
"0.64129204",
"0.5945153",
"0.5868235",
"0.57904834",
"0.57842964",
"0.5754634",
"0.5744896",
"0.569686",
"0.567129",
"0.5620923",
"0.5562174",
"0.55503964",
"0.5546451",
"0.5537188",
"0.5532286",
"0.5528617",
"0.5521832",
"0.55050653"... | 0.8318591 | 0 |
r""" The subset corresponding to ``self`` under the bijection (see below) between compositions of `n` and subsets of `\{1, 2, \ldots, n1\}`. The bijection maps a composition `(i_1, \ldots, i_k)` of `n` to `\{i_1, i_1 + i_2, i_1 + i_2 + i_3, \ldots, i_1 + \cdots + i_{k1}\}`. | def biN_(YKHO, lXgg=False):
from sage.sets.set import Set
return Set(YKHO.partial_sums(final=lXgg)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vcn7(YKHO, exwG, YRbF):\n r845 = YRbF\n G1Hx = 0\n while True:\n if r845 < YKHO.nCk(exwG, G1Hx):\n return YKHO.ksubset(exwG, G1Hx, r845)\n r845 -= YKHO.nCk(exwG, G1Hx)\n G1Hx += 1",
"def IM2S(YKHO, exwG):\n vcn7 = []\n for YRbF, ZfUD in enumerate(YKHO):\n ... | [
"0.68888414",
"0.63686407",
"0.6355295",
"0.62750816",
"0.615681",
"0.60071254",
"0.58943677",
"0.58391243",
"0.58218086",
"0.58168966",
"0.57664907",
"0.5754793",
"0.57297456",
"0.565498",
"0.56445813",
"0.5630589",
"0.55880934",
"0.55568016",
"0.5533937",
"0.54832214",
"0.5... | 0.0 | -1 |
Return ``True`` if the composition ``self`` is greater than the composition ``co2`` with respect to the wllordering; otherwise, return ``False``. The wllordering is a total order on the set of all compositions | def rS2z(YKHO, W2NN):
XdlL = YKHO
if sum(XdlL) > sum(W2NN):
return True
elif sum(XdlL) < sum(W2NN):
return False
if len(XdlL) > len(W2NN):
return True
if len(XdlL) < len(W2NN):
return False
for YRbF in range(len(XdlL)):
if XdlL[YRbF] > W2NN[YRbF]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif):\n if YKHO.confidence > Elif.confidence:\n return True\n elif YKHO.confidence == Elif.confidence and YKHO.support > Elif.support:\n return True\n elif YKHO.confidence == Elif.confidence and YKHO.support == Elif.support and (YKHO.rulelen < Elif.rulelen):\n return T... | [
"0.6255663",
"0.61048836",
"0.60984564",
"0.60914534",
"0.60899675",
"0.6043556",
"0.60412604",
"0.6033264",
"0.6027521",
"0.6026386",
"0.59798634",
"0.59730417",
"0.59702617",
"0.595838",
"0.594996",
"0.5928495",
"0.59090894",
"0.5908467",
"0.5902983",
"0.58919585",
"0.58868... | 0.7804051 | 0 |
Return a string representation of ``self``. | def aRbh(YKHO):
return 'Compositions of non-negative integers' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def rIkN(YKHO) -> str:\n return str(YKHO)",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def gTzM(YKHO):\... | [
"0.8866918",
"0.8855845",
"0.8764202",
"0.87561667",
"0.87224334",
"0.87181777",
"0.86861527",
"0.86622393",
"0.86622393",
"0.86296016",
"0.85730827",
"0.8566589",
"0.8566589",
"0.8566589",
"0.8563017",
"0.8532948",
"0.8518513",
"0.85110533",
"0.84995",
"0.84995",
"0.8468928"... | 0.0 | -1 |
Return a string representation of ``self``. | def aRbh(YKHO):
return 'Compositions of %s' % YKHO.n | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def rIkN(YKHO) -> str:\n return str(YKHO)",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def gTzM(YKHO):\... | [
"0.8866918",
"0.8855845",
"0.8764202",
"0.87561667",
"0.87224334",
"0.87181777",
"0.86861527",
"0.86622393",
"0.86622393",
"0.86296016",
"0.85730827",
"0.8566589",
"0.8566589",
"0.8566589",
"0.8563017",
"0.8532948",
"0.8518513",
"0.85110533",
"0.84995",
"0.84995",
"0.8468928"... | 0.0 | -1 |
Return the number of compositions of `n`. | def SF_z(YKHO):
if YKHO.n >= 1:
return 2 ** (YKHO.n - 1)
elif YKHO.n == 0:
return 1
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO, exwG):\n YRbF = 1\n UHFx = 0\n while YRbF * YRbF <= exwG:\n UHFx += 1\n YRbF += 1\n return UHFx",
"def mprw(exwG):\n AgK_ = exwG\n eNCK = set()\n while AgK_ not in eNCK:\n eNCK.add(AgK_)\n AgK_ = H8Dq(AgK_)\n return len(eNCK)",
"def UHFx(exwG: ... | [
"0.7671467",
"0.74159306",
"0.74074423",
"0.73879397",
"0.7308286",
"0.7229071",
"0.7131363",
"0.71151227",
"0.70802075",
"0.70727134",
"0.7051378",
"0.70398146",
"0.70220196",
"0.70139015",
"0.6980177",
"0.69797057",
"0.69771534",
"0.6973474",
"0.6971609",
"0.6960985",
"0.69... | 0.0 | -1 |
calculate the total area inside all the contours input | def vn7_(EbWA):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n return oyIN.sum(YKHO.areas)",
"def tjC2(Emd4):\n e1_0 = 0\n for Z9rn in Emd4.all_squares:\n e1_0 += Emd4.area(Z9rn.side)\n return e1_0",
"def f0tD(YKHO):\n return XC5k.contourArea(YKHO.cnt)",
"def h1Gf(YKHO, zn0c):\n eeYG = oyIN.array(zn0c[YKHO.SATT][YKHO.ALLX])\n ... | [
"0.7204362",
"0.7193114",
"0.70617515",
"0.703082",
"0.700904",
"0.6932636",
"0.6927709",
"0.6797747",
"0.6764904",
"0.67533207",
"0.6750261",
"0.6703959",
"0.6696419",
"0.6694828",
"0.6646525",
"0.6594774",
"0.6578365",
"0.65597075",
"0.6547834",
"0.6545462",
"0.65425223",
... | 0.74099326 | 0 |
return all active sifo compatible properties and values in a dictionary Returns | def ekab(YKHO):
C9U5 = dict(list(YKHO.__dict__.items())[-2:])
for YRbF, KfDc in enumerate(YKHO.family_members):
for mWFP, QWcs in KfDc.__dict__.items():
if 'id' not in mWFP:
C9U5.update({mWFP + str(YRbF): QWcs})
return {mWFP[1:]: BWXx for mWFP, BWXx in C9U5.items()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8jS(YKHO):\n QTBn = dict()\n for XP5J in YKHO._PROPERTIES:\n property = f'_{XP5J}'\n QTBn[XP5J] = getattr(YKHO, property)\n return QTBn",
"def PRT5(YKHO):\n Nsiy = YKHO.__dict__\n for H5ew, SRYB in YKHO.os.__dict__.items():\n Nsiy['os_' + H5ew] = SRYB\n for H5ew, SRYB ... | [
"0.58745694",
"0.58072823",
"0.5791052",
"0.5744104",
"0.5741977",
"0.57240415",
"0.57083976",
"0.5694111",
"0.5681659",
"0.5671966",
"0.5657797",
"0.5647856",
"0.56458586",
"0.5636705",
"0.5632894",
"0.5621365",
"0.5618754",
"0.5606615",
"0.56065476",
"0.5602761",
"0.5602676... | 0.6915571 | 0 |
Adds uid of incorrect question to the list. The question object must be passed in. | def ssqz(YKHO, bAls):
if len(YKHO.incorrect_questions) > 0:
YKHO.incorrect_questions += ','
YKHO.incorrect_questions += str(bAls.id) + ','
if YKHO.complete:
YKHO.add_to_score(-1)
YKHO.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def daGM(YKHO):\n nPrm = {'taking_quiz': YKHO.taking_quiz.id, 'question': YKHO.question2.id, 'answer': YKHO.answer.id}\n YKHO.test_jwt_authentication()\n geh0 = YKHO.client.post(YKHO.url_answer, data=nPrm)\n YKHO.assertEqual(403, geh0.status_code)",
"def daGM(YKHO):\n nPrm = {'taking_quiz': YKHO.t... | [
"0.57711977",
"0.57473874",
"0.5595614",
"0.5564888",
"0.5559419",
"0.54639626",
"0.54301286",
"0.54248863",
"0.5420324",
"0.54015064",
"0.5372811",
"0.53722525",
"0.5369207",
"0.53659374",
"0.53509444",
"0.53196186",
"0.53194267",
"0.52776945",
"0.5267716",
"0.52673453",
"0.... | 0.71799797 | 0 |
Returns the number of questions answered so far and the total number of questions. | def Eb4t(YKHO):
bNdW = len(qQXR.loads(YKHO.user_answers))
wjRY = YKHO.get_max_score
return (bNdW, wjRY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DEzO(YKHO):\n VuMh = 0\n for Z_5v in YKHO.instructors:\n VuMh += len(Z_5v.questions_answered)\n return VuMh\n 'This would work the same way, just written in one line: \\n\\n return sum(len(instructor.questions_answered) for instructor in \\n self.instructors)\\n\\n '... | [
"0.834422",
"0.8196212",
"0.81321377",
"0.79638416",
"0.7829937",
"0.7743589",
"0.7728043",
"0.7697202",
"0.7625576",
"0.74847704",
"0.7313588",
"0.7211858",
"0.70081776",
"0.6923777",
"0.6763594",
"0.66419494",
"0.6614674",
"0.6585829",
"0.6513893",
"0.6501132",
"0.6501132",... | 0.6800546 | 14 |
Returns an ordered dict with the interface and ist speed in bps | def jLU3(YKHO):
if YKHO._interfaces_speed is None:
dixj = []
GgKL = '1.3.6.1.2.1.2.2.1.2.'
jAPv = '1.3.6.1.2.1.2.2.1.5.'
Q7NM = 3
YRbF = 1
CxVY = 0
while True:
if CxVY == Q7NM:
break
mWFP = YKHO.get_value(GgKL + str(YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TiwS():\n KcEq = GGmw.gethostname()\n if KcEq == 'ysmgt1':\n return {'speed': 'FDR', 'link': 14, 'width': '4x'}\n elif KcEq == 'ermgt1':\n return {'speed': 'FDR10', 'link': 10, 'width': '4x'}\n elif KcEq == 'jsmgt1':\n return {'speed': 'FDR', 'link': 14, 'width': '4x'}\n ret... | [
"0.74131435",
"0.72619814",
"0.6661242",
"0.65866035",
"0.6575214",
"0.63900423",
"0.6344845",
"0.6329613",
"0.62741053",
"0.6270457",
"0.6270179",
"0.6243729",
"0.62395424",
"0.62173533",
"0.6207536",
"0.6184921",
"0.6184921",
"0.61821556",
"0.61821556",
"0.61657155",
"0.615... | 0.75495225 | 0 |
Load the weights of a model stored in saver. | def SUd8(bPTx, cb_Q, jkyf):
aqBD = ZylS.train.get_checkpoint_state(bPTx)
if aqBD and aqBD.model_checkpoint_path:
G9jH.info(aqBD.model_checkpoint_path)
nUeQ = Hy7s.path.basename(aqBD.model_checkpoint_path)
V1C0 = Hy7s.path.join(bPTx, nUeQ)
jkyf.restore(cb_Q, V1C0)
return i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SUd8(YKHO, cuiw, eG0V):\n YKHO.weight_saver.restore(cuiw, eG0V)",
"def SUd8(YKHO):\n if YKHO.arg.weights:\n YKHO.fileio.load_weights(YKHO.model, YKHO.arg.weights, YKHO.arg.ignore_weights)",
"def SUd8(YKHO, eG0V):\n aqBD = ZylS.train.get_checkpoint_state(eG0V)\n if aqBD:\n YKHO.sav... | [
"0.82139844",
"0.7511041",
"0.74915975",
"0.7487436",
"0.74107575",
"0.7349835",
"0.7326138",
"0.7326138",
"0.7326138",
"0.7274206",
"0.72658706",
"0.72359556",
"0.720373",
"0.720373",
"0.720373",
"0.7184622",
"0.7159852",
"0.71528757",
"0.7149235",
"0.7143924",
"0.7142767",
... | 0.73447895 | 6 |
Creates minibatch tensors from the list of tuples (image, caption). We should build custom collate_fn rather than using default collate_fn, because merging caption (including padding) is not supported in default. | def QxcP(nPrm):
nPrm.sort(key=lambda WKvO: len(WKvO[1]), reverse=True)
Yw_3, UrTZ = zip(*nPrm)
Yw_3 = ht2j.stack(Yw_3, 0)
Fbjb = [len(Fd1k) for Fd1k in UrTZ]
x6A0 = ht2j.zeros(len(UrTZ), max(Fbjb)).long()
for YRbF, Fd1k in enumerate(UrTZ):
Os4s = Fbjb[YRbF]
x6A0[YRbF, :Os4s] = Fd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QxcP(nPrm: List[Tuple]) -> AzJI:\n nPrm.sort(key=lambda WKvO: len(WKvO[1]), reverse=True)\n Yw_3, UrTZ = zip(*nPrm)\n print(f'Image shape: {Yw_3.shape}')\n Yw_3 = ht2j.stack(Yw_3, 0)\n Fbjb = [len(Fd1k) for Fd1k in UrTZ]\n x6A0 = ht2j.zeros(len(UrTZ), max(Fbjb)).long()\n for YRbF, Fd1k in ... | [
"0.6697788",
"0.660933",
"0.6537282",
"0.65094763",
"0.6352636",
"0.6352636",
"0.6338296",
"0.63226616",
"0.63226616",
"0.63226616",
"0.63090545",
"0.630007",
"0.629501",
"0.62862366",
"0.62637395",
"0.62580335",
"0.6223434",
"0.62220347",
"0.62145674",
"0.62145674",
"0.62080... | 0.6210531 | 21 |
Calculate the abundance bias for each wavelength for each node, with respect to the Solar abundance. | def w46S(YKHO, U6D_, kQ4Y, **B2fa):
J9Sm = YKHO.release.retrieve_table("SELECT * FROM line_abundances WHERE\n trim(element) = '{0}' AND ion = '{1}' AND cname LIKE 'sssss%'".format(U6D_, kQ4Y))
phJ9 = B2fa.pop('round_wavelengths', 1)
if phJ9 >= 0:
J9Sm['wavelength'] = oyIN.round(J9Sm['wave... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SgUT(YKHO):\n x7SB = 0\n r9Hf = 0\n for CBIr, LHvA, RrWF in YKHO.samples:\n if RrWF != 0:\n x7SB += RrWF\n r9Hf += 1\n x7SB = x7SB / r9Hf\n YKHO.b = x7SB",
"def sfCs(YKHO):\n qLCZ = oyIN.zeros((3, 1))\n edpk = oyIN.zeros((3, 1))\n for YRbF in range(Q_OZ):\... | [
"0.64013433",
"0.63922364",
"0.61397785",
"0.6086798",
"0.60414743",
"0.59365445",
"0.5897502",
"0.5889768",
"0.5887934",
"0.5866056",
"0.58136636",
"0.5804481",
"0.57817286",
"0.57700837",
"0.5701256",
"0.5682902",
"0.5680045",
"0.56706583",
"0.56544656",
"0.5646098",
"0.560... | 0.0 | -1 |
Calculate the differential abundance bias for each wavelength for each node. | def ieud(YKHO, U6D_, kQ4Y, k8L3=False, YGUy=False, **B2fa):
EcVT, Ziit, lco2 = YKHO.release._match_species_abundances(U6D_, kQ4Y, scaled=k8L3, include_flagged_lines=~YGUy)
OBsr, _0VL = BfDw.calculate_differential_abundances(EcVT, full_output=True)
lco2['wavelength'] = lco2['wavelength'].astype(float)
HP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lq2o(YKHO):\n YKHO.aanpassingBias = YKHO.learning_rate * YKHO.error\n return YKHO.aanpassingBias",
"def sfCs(YKHO):\n qLCZ = oyIN.zeros((3, 1))\n edpk = oyIN.zeros((3, 1))\n for YRbF in range(Q_OZ):\n YAq3, eNZr, JRYC = YKHO.get_measurement()\n qLCZ = oyIN.add(qLCZ, YAq3)\n ... | [
"0.67192286",
"0.646343",
"0.6177587",
"0.6076792",
"0.6067262",
"0.6043856",
"0.6020988",
"0.60174376",
"0.60114044",
"0.6006407",
"0.60004914",
"0.59717315",
"0.59652096",
"0.5962216",
"0.5959535",
"0.59308994",
"0.59289",
"0.58642405",
"0.58613324",
"0.58078855",
"0.580503... | 0.5819429 | 19 |
Returns True if there is an edge from x to y, False otherwise | def GJ1X(YKHO, WKvO, LVAh):
return YKHO._matr[WKvO][LVAh] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GJ1X(YKHO, WKvO, LVAh):\n return LVAh in YKHO._dictOut[WKvO]",
"def GJ1X(YKHO, WKvO, LVAh):\n return LVAh in YKHO._dict[WKvO]",
"def fP8F(YKHO, WKvO, LVAh):\n if WKvO == None or LVAh == None:\n return False\n return (WKvO, LVAh) in YKHO.edges or (LVAh, WKvO) in YKHO.edges",
"def oxL1(Y... | [
"0.8399363",
"0.82574487",
"0.8145859",
"0.79374176",
"0.77819186",
"0.765591",
"0.76059943",
"0.7572858",
"0.7568017",
"0.74151576",
"0.7399645",
"0.73675734",
"0.73611456",
"0.73546845",
"0.73466724",
"0.73318696",
"0.73237014",
"0.7316604",
"0.73124605",
"0.728176",
"0.727... | 0.8038707 | 3 |
Returns True if there is an edge from x to y, False otherwise | def GJ1X(YKHO, WKvO, LVAh):
return LVAh in YKHO._dict[WKvO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GJ1X(YKHO, WKvO, LVAh):\n return LVAh in YKHO._dictOut[WKvO]",
"def fP8F(YKHO, WKvO, LVAh):\n if WKvO == None or LVAh == None:\n return False\n return (WKvO, LVAh) in YKHO.edges or (LVAh, WKvO) in YKHO.edges",
"def GJ1X(YKHO, WKvO, LVAh):\n return YKHO._matr[WKvO][LVAh]",
"def oxL1(YKH... | [
"0.8398264",
"0.8145336",
"0.8038199",
"0.7937364",
"0.7780537",
"0.7654723",
"0.7607619",
"0.757017",
"0.7567196",
"0.74159664",
"0.74011314",
"0.7365478",
"0.7358089",
"0.7353883",
"0.73439413",
"0.7329037",
"0.7324537",
"0.731458",
"0.7310928",
"0.7279503",
"0.7269486",
... | 0.82567495 | 1 |
Returns True if there is an edge from x to y, False otherwise | def GJ1X(YKHO, WKvO, LVAh):
return LVAh in YKHO._dictOut[WKvO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GJ1X(YKHO, WKvO, LVAh):\n return LVAh in YKHO._dict[WKvO]",
"def fP8F(YKHO, WKvO, LVAh):\n if WKvO == None or LVAh == None:\n return False\n return (WKvO, LVAh) in YKHO.edges or (LVAh, WKvO) in YKHO.edges",
"def GJ1X(YKHO, WKvO, LVAh):\n return YKHO._matr[WKvO][LVAh]",
"def oxL1(YKHO, ... | [
"0.82574487",
"0.8145859",
"0.8038707",
"0.79374176",
"0.77819186",
"0.765591",
"0.76059943",
"0.7572858",
"0.7568017",
"0.74151576",
"0.7399645",
"0.73675734",
"0.73611456",
"0.73546845",
"0.73466724",
"0.73318696",
"0.73237014",
"0.7316604",
"0.73124605",
"0.728176",
"0.727... | 0.8399363 | 0 |
Returns the set of vertices of the graph g that are accessible from the vertex s | def PSli(Oa1e, KCHu):
YAq3 = set()
YAq3.add(KCHu)
list = [KCHu]
while len(list) > 0:
WKvO = list[0]
list = list[1:]
for LVAh in Oa1e.parseNout(WKvO):
if LVAh not in YAq3:
YAq3.add(LVAh)
list.append(LVAh)
return YAq3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXlf(yvY1):\n return yvY1.iterkeys()",
"def CXkG(YKHO):\n return set(YKHO._vertex_set.values())",
"def hWWY(i2c4):\n if isinstance(i2c4, int):\n exwG = i2c4\n else:\n Oa1e = i2c4\n exwG = len(Oa1e.vs)\n cAlv = list(range(1, exwG + 1))\n return (cAlv, exwG)",
"def iX... | [
"0.7232113",
"0.7227059",
"0.7139771",
"0.71166015",
"0.71102345",
"0.7057554",
"0.70529985",
"0.6989838",
"0.69796944",
"0.69698",
"0.69698",
"0.69698",
"0.69698",
"0.69698",
"0.695881",
"0.6909397",
"0.6909397",
"0.68887573",
"0.6879977",
"0.6871708",
"0.67429066",
"0.671... | 0.0 | -1 |
Initialize this Trie (add a root node) | def FIMM(YKHO):
YKHO.root = ep_x() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.root = ep_x(None)",
"def FIMM(YKHO):\n YKHO.__root = ep_x.init_root()",
"def FIMM(YKHO):\n YKHO.root = ep_x('', False)",
"def FIMM(YKHO):\n YKHO.root = ep_x(None, None)",
"def FIMM(YKHO):\n YKHO.root = ep_x()",
"def FIMM(YKHO) -> None:\n YKHO.root = etby.Node(None... | [
"0.85210675",
"0.8445476",
"0.84448016",
"0.84147966",
"0.84105116",
"0.8407138",
"0.84001285",
"0.83873844",
"0.8351459",
"0.8263631",
"0.82054305",
"0.8178899",
"0.81044453",
"0.81044453",
"0.81044453",
"0.81044453",
"0.80155295",
"0.79879284",
"0.7972503",
"0.7907008",
"0.... | 0.8164554 | 19 |
Add a word to the Trie | def JPHp(YKHO, GIN8):
kMLo = YKHO.root
for hcXw in GIN8:
kMLo.insert(hcXw)
kMLo = kMLo.children[hcXw]
kMLo.is_word = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e0k0(YKHO, GIN8):\n Q6kx = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in Q6kx.children:\n Q6kx.children[Z9rn] = ep_x()\n Q6kx = Q6kx.children[Z9rn]\n Q6kx.is_word = True",
"def H2v5(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n ... | [
"0.88801306",
"0.88682103",
"0.886618",
"0.8856397",
"0.8832112",
"0.88310534",
"0.8830311",
"0.8820253",
"0.88195634",
"0.8793776",
"0.8788494",
"0.87812537",
"0.87610817",
"0.87547654",
"0.874782",
"0.87431765",
"0.8696003",
"0.86626667",
"0.86509204",
"0.8610635",
"0.85701... | 0.0 | -1 |