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
Updates a dict d with the key/value pairs from other. d and other are dictionaries that contain dictionaries. It is the second layer of dictionaries that are updated. Existing keys are not overwritten, but instead their values are converted to a list and the new value is appended. Duplicate values are ignored (if allow...
def LpmY(Csk6, Elif, RiWs=False, C3nu=False): for H5ew, BWXx in Elif.items(): if H5ew not in Csk6 and C3nu is True: continue Csk6.setdefault(H5ew, {}) yHH9 = bool(set(list(Csk6[H5ew])).intersection(set(list(BWXx)))) if not yHH9: if isinstance(BWXx, dict): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, qner):\n for H5ew, BWXx in WWp2(qner):\n YKHO.add(H5ew, BWXx)", "def QdZT(YKHO, Elif):\n if not hasattr(Elif, 'keys'):\n Elif = dict(Elif)\n for H5ew in Elif:\n YKHO[H5ew] = Elif[H5ew]", "def cyBQ(Csk6, _sQW):\n\n def QdZT(gv2B, BdN0):\n for G1Hx, Ty9i in ...
[ "0.771005", "0.7691821", "0.7482391", "0.7464543", "0.74398667", "0.7397532", "0.7390327", "0.73802984", "0.73277926", "0.72937363", "0.72721505", "0.7257366", "0.7257366", "0.7243184", "0.72158784", "0.71960914", "0.719503", "0.71665615", "0.71650857", "0.71617854", "0.71536...
0.8250489
0
Compute the objective function value given a cluster configuration. Used in convergence checking.
def Him_(vAx7): alvY = sum((nMvt[YRbF, YRbF] for YRbF in range(exwG))) E8lQ = float(0) for yuVB in range(G1Hx): S3AQ = len(vAx7[yuVB]) E8lQ += sum((nMvt[jzdc, Fg_i] for jzdc in vAx7[yuVB] for Fg_i in vAx7[yuVB])) * 1.0 / S3AQ T9oG = alvY - E8lQ return T9oG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UVAQ(YKHO, NArs):\n try:\n return YKHO.collimator_inefficiency(NArs)\n except o2Cc as e:\n return 10000000000.0", "def C6Sa(YKHO, EcVT):\n AqG2, GCA0 = oyIN.shape(EcVT)\n Oa1e = YKHO.cluster_centers_\n rKD9 = 0\n for YRbF in range(YKHO.n_clusters):\n E3D9 = YKHO.cluster...
[ "0.66076076", "0.6526054", "0.6463234", "0.6451309", "0.62953246", "0.62600917", "0.6210949", "0.6200514", "0.6145348", "0.61137414", "0.6086171", "0.6038671", "0.6025241", "0.602172", "0.6018162", "0.5933389", "0.5925719", "0.59168625", "0.59063643", "0.5873955", "0.5864538"...
0.5572344
68
Returns a dictionary with counts merged from a list of ngram count dictionaries (such as that returned from count_ngrams).
def ScTM(hIub): XIcQ = dict() for pCSA in hIub: for H5ew, wEf2 in pCSA.iteritems(): if H5ew not in XIcQ: XIcQ[H5ew] = 0 XIcQ[H5ew] += wEf2 return XIcQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QQwH(YKHO, s2mk: Sequence[str]) -> cuzp[int, mBkc]:\n nbwX = oRi_(mBkc)\n yLbG = len(s2mk)\n for YRbF, iF23 in enumerate(s2mk[0:yLbG]):\n for r845 in range(0, YKHO.ngram):\n LcN5 = YRbF + r845 + 1\n NhHF = r845 + 1\n if LcN5 <= yLbG:\n Cr__ = tupl...
[ "0.7136343", "0.7098779", "0.7020821", "0.6793753", "0.6692821", "0.66253734", "0.659898", "0.6585144", "0.65850395", "0.6545996", "0.65412533", "0.65405947", "0.65346575", "0.65282434", "0.65084255", "0.6503971", "0.6499365", "0.6482929", "0.64786386", "0.6478186", "0.647417...
0.85495734
0
returns jwt token out of the auth header
def PhTG(r4rc): b9OY = x8I_(r4rc) return b9OY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gNTt(HNPp=QePW):\n from .base_validator import ValidationError\n eOtH = HNPp.headers.get('Authorization')\n if not eOtH:\n raise ValidationError({'message': Hme0['NO_TOKEN_MSG']}, 401)\n elif 'bearer' not in eOtH.lower():\n raise ValidationError({'message': Hme0['NO_BEARER_MSG']}, 401...
[ "0.8160947", "0.81289417", "0.8125251", "0.80810964", "0.80800664", "0.8075657", "0.8070243", "0.80374384", "0.8022308", "0.8022308", "0.8022308", "0.800222", "0.800222", "0.7987688", "0.7917415", "0.7905088", "0.78697145", "0.78085595", "0.77660483", "0.77027375", "0.7637639...
0.7458853
27
Reset db, migrate and generate fixtures. Useful when changing branch with different migrations.
def IQ2r(): WY3t('docker-compose exec backend python manage.py reset_db') WY3t('docker-compose exec backend python manage.py migrate') WY3t('docker-compose exec backend python manage.py loaddata --app common initial.json') WY3t('docker-compose exec backend python manage.py loaddata --app agency initial....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mnf2(QpfX):\n BJsk.success('Reset database to its initial state')\n USEx(QpfX, 'drop_test_database --noinput')\n USEx(QpfX, 'reset_db -c --noinput')\n LCWU(QpfX)\n USZ9(QpfX)\n HvMu(QpfX)", "def SiRx():\n if not P4t4.debug:\n idDS = 'This deletes all data and re-creates the tables...
[ "0.75876707", "0.7350608", "0.7028797", "0.69642246", "0.6954408", "0.69389963", "0.69389963", "0.68933994", "0.68419504", "0.6818819", "0.6794479", "0.6782808", "0.67681885", "0.67526793", "0.66923463", "0.66612893", "0.66465133", "0.66333336", "0.66323084", "0.6609848", "0....
0.7449181
1
Given empty policy kwargs When running create_policy_kwargs_dict function Then make sure that create_policy_kwargs_dict does not fail on any exception
def yCM_(): assert ZjF5.create_policy_kwargs_dict({}) == {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f3I6(wd5T, B2fa):\n if wd5T == 'mlp' and len(B2fa) > 0:\n raise ValueError('Unknown keywords for policy: {}'.format(B2fa))", "def lOkK(YKHO, wjOi):\n GyZ8 = {'name': 'Bobby policy for MaaS', 'cooldown': 3, 'change': 10, 'type': 'schedule', 'args': {'check': {'label': 'Website check 1', 'type': '...
[ "0.72540325", "0.6404127", "0.6353918", "0.6346195", "0.6313636", "0.6048962", "0.59834355", "0.59302044", "0.59252757", "0.5886217", "0.5876925", "0.58722216", "0.5853296", "0.5838009", "0.58256507", "0.5724029", "0.56759197", "0.5660604", "0.5653737", "0.56308633", "0.56243...
0.7405223
0
Convenience method for getting a list of all dependencies to consider learning for a given number of labeling functions. No self dependencies are included, i.e., (i, i, _). In cases of symmetric dependencies, e.g., DEP_SIMILAR, only the first case, (i, j, _) where i < j, is included.
def Oavd(exwG, r7Th=False, BB5o=False, Pyeq=False, DIp6=False): aeQa = [] if Pyeq and DIp6: JaNY = (N5T_, Oj5f) elif Pyeq: JaNY = (N5T_,) elif DIp6: JaNY = (Oj5f,) else: JaNY = () for kbO9 in JaNY: for YRbF in range(exwG): for r845 in range(YRb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MAY_(YKHO) -> tuple[jHsn.DiGraph, bdIy[str]]:\n Oa1e = YKHO.digraph\n E0Gw = jHsn.DiGraph()\n E0Gw.add_nodes_from(Oa1e)\n for mWFP in Oa1e:\n lLIB = Oa1e.nodes[mWFP]\n dQgj = lLIB.get('position', None)\n if dQgj is not None:\n if not isinstance(dQgj, EJY2):\n ...
[ "0.6377009", "0.6081068", "0.59488666", "0.59422874", "0.5925549", "0.5916596", "0.5891554", "0.5891554", "0.5829125", "0.57836324", "0.5769062", "0.5764967", "0.5754537", "0.57462156", "0.57363135", "0.57210344", "0.57168466", "0.56999665", "0.5698524", "0.56940514", "0.5672...
0.5854689
8
Edits all configurations by adding or removing the specified components.
def cqhG(YKHO, uH0p: Set[str], UTfD: Set[str]) -> None: A04h = YKHO._config_list.active_config_name Kfuq = {e5kH['name'] for e5kH in YKHO._config_list.get_configs()} rirr = {e5kH['name'] for e5kH in YKHO._config_list.get_components()} if A04h not in Kfuq: raise ValueError(f'current config {A04h}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s8Kc(YKHO):\n for Z9rn in YKHO.model:\n if Z9rn.name not in YKHO.components.keys():\n YKHO.components[Z9rn.name] = Z9rn\n YKHO.component_added(Z9rn)\n OJy8 = [Z9rn.name for Z9rn in YKHO.model]\n TquA = [M98S for M98S in YKHO.components.keys() if M98S not in OJy8]\n for ...
[ "0.6237494", "0.5944289", "0.59221005", "0.5878721", "0.57884", "0.5720071", "0.5716227", "0.5712882", "0.5704184", "0.56922925", "0.5674704", "0.5625879", "0.5596695", "0.5589404", "0.5542945", "0.54907376", "0.5483775", "0.54438156", "0.5396423", "0.53951913", "0.5388935", ...
0.7873009
0
Get "subdirectorisness" level of current directory. Toplevel directory of the repository, `repo/`, is level 0. `repo/foo/` is level 1, and so on.
def rb7a(YKHO): ABDL = 0 y0cW = fGmS('git rev-parse --show-prefix', shell=True, stdout=h5ye).stdout.read().rstrip('/\n') while y0cW: y0cW = TLI7(y0cW) ABDL += 1 return ABDL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JvFA(pmON):\n u7dO = None\n yefe = Hy7s.path.abspath(pmON)\n etGw = None\n while yefe != u7dO:\n afYC = Hy7s.listdir(yefe)\n if 'repodata' in afYC:\n etGw = yefe\n break\n u7dO = yefe\n yefe = Hy7s.path.abspath(Hy7s.path.join(u7dO, Hy7s.pardir))\n ...
[ "0.6167933", "0.6144064", "0.608175", "0.5955853", "0.593678", "0.5930267", "0.5906466", "0.5856417", "0.57825875", "0.5776313", "0.57754076", "0.5719755", "0.5709473", "0.56933", "0.56694305", "0.5658575", "0.56501377", "0.56401926", "0.5638342", "0.5629876", "0.55875325", ...
0.6366625
0
Return a dominating set of nodes of the graph represented by its `adjacency` lists
def IykD(fyP7, iknV): Ziit = set(fyP7.keys()) xauX = oyIN.ones(iknV, dtype=oyIN.bool) IVER = set() while oyIN.any(xauX): BpTR = [P6bq for P6bq in Ziit if P6bq not in IVER] BUUq = [xauX[list(fyP7[P6bq])].sum() for P6bq in BpTR] if sum(BUUq) == 0: break Ty9i = B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FoB0(pNZh, zNig):\n for Ziit in Hs6x.combinations(pNZh.nodes(), zNig):\n if ziRQ.is_dominating_set(pNZh, Ziit):\n return Ziit", "def Neqk(pNZh):\n G1Hx = 1\n while True:\n for Ziit in Hs6x.combinations(pNZh.nodes(), G1Hx):\n if ziRQ.is_dominating_set(pNZh, Ziit):\...
[ "0.7740639", "0.75851053", "0.7136136", "0.6954735", "0.68905956", "0.68905956", "0.6841964", "0.6603766", "0.65710646", "0.6554405", "0.649857", "0.64829403", "0.6471833", "0.64633584", "0.64137423", "0.6380627", "0.63689256", "0.63606507", "0.6354293", "0.6345172", "0.63389...
0.680503
7
Topologicalsort the tasklist. This function assumes that there are no duplicates in the source filenames as well as the destination filenames. Returns the sorted tasklist.
def OWgJ(oQbj): F4nI = {} Mdv2 = {} for d6pt, D5gV in enumerate(oQbj): F4nI[Hy7s.path.abspath(D5gV[0])] = d6pt Mdv2[d6pt] = 0 oo_Z = [] aNyM = [] for d6pt, bGrB in enumerate(oQbj): if Mdv2[d6pt]: continue aevO = [d6pt] while aevO: H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Ypz(aeQa):\n\n def U5s3(D5gV):\n \"\"\" return all prereqs for task \"\"\"\n return set([XP5J for XP5J, a1PO in aeQa if a1PO == D5gV])\n iyvl = set([a1PO for XP5J, a1PO in aeQa])\n ruP6 = iyvl | set((XP5J for XP5J, a1PO in aeQa))\n pP0D = ruP6 - iyvl\n LJ3j = list(pP0D)\n while...
[ "0.6929301", "0.6793989", "0.6596135", "0.6583383", "0.6319825", "0.62341946", "0.6165321", "0.60780054", "0.6020015", "0.6014026", "0.59937626", "0.59370947", "0.59229535", "0.59229535", "0.59186786", "0.58905715", "0.58810574", "0.58706313", "0.58461064", "0.5842818", "0.58...
0.73940927
0
Returns a list of files in the working directory.
def uTAc(): e_Ea = sorted(Hy7s.listdir(Hy7s.getcwd())) SLBz = [] for eHNT in e_Ea: if Hy7s.path.exists(eHNT): SLBz.append(eHNT) return SLBz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uTAc():\n return U9eF(pmON)", "def TLtP(YKHO):\n Rx2A = []\n for tk5Y, AQSv, RRlC in Hy7s.walk(Hy7s.getcwd()):\n Rx2A.extend([khtY.join(tk5Y, eHNT) for eHNT in RRlC])\n return Rx2A", "def N_sa():\n return Hy7s.listdir(Hy7s.getcwd())", "def IECG():\n return [Ux0P for Ux0P in A99F(...
[ "0.83684295", "0.82067627", "0.7952668", "0.7924216", "0.79041195", "0.7892815", "0.7869526", "0.78337026", "0.78272516", "0.7778332", "0.7749773", "0.7697966", "0.7697202", "0.7680354", "0.7658177", "0.7639876", "0.76353467", "0.76232505", "0.7564", "0.7536659", "0.7527765",...
0.77572274
10
Call function to flip points, values in the ``bbox3d_fields`` and also flip 2D image and its annotations.
def nrOS(YKHO, chwN): super(oqLu, YKHO).__call__(chwN) if YKHO.sync_2d: chwN['pcd_horizontal_flip'] = chwN['flip'] chwN['pcd_vertical_flip'] = False else: if 'pcd_horizontal_flip' not in chwN: pF8M = True if oyIN.random.rand() < YKHO.flip_ratio else False chwN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EXQN(VXjJ, c8oy):\n tfjD = VXjJ.transpose(hnIv.FLIP_LEFT_RIGHT)\n yzQ0, MKlR = VXjJ.size\n c8oy = oyIN.array(c8oy)\n xIDA = jth9.copy(c8oy)\n xIDA[:, 1] = yzQ0 - c8oy[:, 3]\n xIDA[:, 3] = yzQ0 - c8oy[:, 1]\n return (tfjD, xIDA)", "def heGH(YKHO, dixj: dict) -> None:\n super()._flip(di...
[ "0.65450287", "0.64707726", "0.64637184", "0.6433236", "0.63669467", "0.6346746", "0.6247148", "0.6244995", "0.6208556", "0.62078005", "0.614227", "0.60487187", "0.60448045", "0.60351574", "0.5975277", "0.59366435", "0.5891809", "0.58702374", "0.5849976", "0.58168334", "0.580...
0.62699056
6
Creates a new database session authenticated as the given user. Returns an opaque session object which other functions in this module require.
def MC83(NtEF: str, jTXt: str) -> qRnW: na1r.debug(f"Logging into PostgreSQL database as '{NtEF}'") try: return qRnW(username=NtEF, password=jTXt) except A5pJ as error: raise CJnm() from None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZhvG(Emd4, NCls, CBIr):\n Wswm = IAes.genSID()\n bo34.info('Created session. sid: %s', Wswm)\n AFkL.store_session(NCls, sid=Wswm, uid=CBIr.uid)\n return Emd4(Wswm, CBIr, None)", "def DFdH(BaHi=None, B5PH=None, AgBQ='default', hqb4='default', jTXt=None, CQfK=False):\n global sessions\n if Ba...
[ "0.81888705", "0.76319134", "0.7555097", "0.7452752", "0.72558945", "0.71719646", "0.70670277", "0.7053611", "0.7045877", "0.7027968", "0.69574976", "0.6953589", "0.69511294", "0.69138354", "0.68695664", "0.68692774", "0.6864376", "0.6841034", "0.68252194", "0.67954516", "0.6...
0.0
-1
Return the incident angle on the disperser in radians, with respect to the disperser normal and the X axis.
def OFyz(nJ9F): if isinstance(nJ9F, (list, tuple, oyIN.ndarray)): return (nJ9F[0] - SGPK.CCD_IMSIZE / 2) * SGPK.CCD_PIXEL2ARCSEC * SGPK.CCD_ARCSEC2RADIANS else: return (nJ9F - SGPK.CCD_IMSIZE / 2) * SGPK.CCD_PIXEL2ARCSEC * SGPK.CCD_ARCSEC2RADIANS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YylR(YKHO):\n PXGI = YKHO.unit()\n return epAf.atan2(PXGI.y, PXGI.x)", "def YylR(YKHO) -> BH6n:\n return epAf.atan(YKHO.x / YKHO.y)", "def YylR(YKHO):\n q7In = fH9s(YKHO.x / YKHO.norm())\n if YKHO.y < 0:\n q7In = -q7In\n return float(q7In)", "def YylR(YKHO):\n return lNLu.pola...
[ "0.727206", "0.69547", "0.6937118", "0.69320804", "0.69305784", "0.68965864", "0.67696583", "0.6766343", "0.67536515", "0.67381406", "0.6708283", "0.6699411", "0.6672423", "0.65846866", "0.6580064", "0.6571642", "0.6570864", "0.6557751", "0.6556704", "0.65417725", "0.65412307...
0.0
-1
Subtract from the distance deltaX in pixels between a pixel x the order 0 the distance between the projected incident point on the disperser and the order 0. In other words, the projection of the incident angle theta0 from the disperser to the CCD is removed. The distance to the CCD D is in mm.
def We76(J2ZS, nJ9F, lWPh=SGPK.DISTANCE2CCD): z9RD = OFyz(nJ9F) SgbJ = oyIN.tan(z9RD) * lWPh / SGPK.CCD_PIXEL2MM return J2ZS + SgbJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZcMh(CG54, legC):\n WKvO = oyIN.subtract(CG54, legC)\n pImw = oyIN.linalg.norm(WKvO)\n return pImw", "def neNS(YKHO):\n rQNr = max(int(YKHO.space_order / 2), 2)\n cIIR = [WKvO + YRbF * WKvO.spacing for YRbF in range(-rQNr, rQNr + 1)]\n return XSCc(YKHO.diff(WKvO, WKvO, WKvO, WKvO), cIIR)", ...
[ "0.59113795", "0.586509", "0.5858512", "0.5842527", "0.58326477", "0.57424885", "0.57105", "0.5709293", "0.5677082", "0.5636107", "0.56289536", "0.55917484", "0.55150074", "0.5498334", "0.54798084", "0.54489034", "0.5429513", "0.5423985", "0.54219913", "0.54219913", "0.541666...
0.57869893
5
Return the refraction angle with respect to the disperser normal, using geometrical consideration.
def VgWE(J2ZS, nJ9F, lWPh=SGPK.DISTANCE2CCD): RA_F = We76(J2ZS, nJ9F, D=lWPh) q7In = oyIN.arctan2(RA_F * SGPK.CCD_PIXEL2MM, lWPh) return q7In
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jyL0(YKHO):\n jzdc = Gqkf(YKHO.largeur / YKHO.longueur)\n return jzdc", "def jkzi(YKHO, dqA6: dict=None) -> float:\n lbHk = dqA6[YKHO.material]\n return lbHk", "def B5zI(YKHO):\n return YKHO.axis_angle[1]", "def gajd() -> float:\n ...", "def YylR(YKHO) -> float:\n try:\n ret...
[ "0.66206235", "0.6531245", "0.65105444", "0.6441476", "0.6269926", "0.61730903", "0.6162281", "0.61509305", "0.6146711", "0.6145392", "0.613946", "0.6132306", "0.60957706", "0.6075309", "0.60662556", "0.60581857", "0.60544527", "0.60497683", "0.60360867", "0.60222787", "0.601...
0.63848174
4
Return the mean dispersion angle of the grating at position x.
def q7In(YKHO, WKvO): return float(YKHO.theta_interp(*WKvO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _8Fd(YKHO, WKvO):\n return (WKvO + oyIN.pi) % (2 * oyIN.pi) - oyIN.pi", "def cXDC(WKvO):\n quA1 = oyIN.sum(oyIN.sin(WKvO))\n LC8P = oyIN.sum(oyIN.cos(WKvO))\n JBMS = oyIN.arctan2(quA1, LC8P)\n return JBMS", "def pyoE(YKHO, WKvO):\n JBMS = oyIN.mean(WKvO, axis=0)\n return JBMS", "def ...
[ "0.65984535", "0.6516132", "0.64963627", "0.6380599", "0.6287937", "0.62776315", "0.62726015", "0.62570655", "0.62506586", "0.62259376", "0.621249", "0.61629856", "0.61397785", "0.60679597", "0.6063431", "0.6053776", "0.60273546", "0.59952587", "0.59461415", "0.59261626", "0....
0.57961607
30
Pads the input along the spatial dimensions independently of input size.
def uvu8(g4y1, Ot1W, wH3T): FpMw = Ot1W - 1 bWa5 = FpMw // 2 REHY = FpMw - bWa5 if wH3T == 'channels_first': PE9h = ZylS.pad(g4y1, [[0, 0], [0, 0], [bWa5, REHY], [bWa5, REHY]]) else: PE9h = ZylS.pad(g4y1, [[0, 0], [bWa5, REHY], [bWa5, REHY], [0, 0]]) return PE9h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zFJe(CK9p, zNig):\n return CK9p + [0] * (zNig - len(CK9p))", "def iY1y(YKHO, g4y1):\n exwG, a1PO, Z9rn, MKlR, yzQ0 = g4y1.size()\n OM4u = (16 - MKlR % 16) % 16\n u6Wc = (16 - yzQ0 % 16) % 16\n if OM4u != 0 or u6Wc != 0:\n g4y1 = g4y1.view(-1, Z9rn, MKlR, yzQ0)\n g4y1 = vuvg.pad(g...
[ "0.7191954", "0.7168722", "0.675599", "0.6458572", "0.644965", "0.6386594", "0.6381306", "0.63602936", "0.63237095", "0.63083935", "0.62863415", "0.6237123", "0.6220476", "0.6192536", "0.6186304", "0.61411446", "0.6129673", "0.6118724", "0.60666317", "0.60575455", "0.60572064...
0.5635865
65
Strided 2D convolution with explicit padding.
def yN4c(g4y1, KUnM, Ot1W, FEri, wH3T): if FEri > 1: g4y1 = uvu8(g4y1, Ot1W, wH3T) return ZylS.layers.conv2d(inputs=g4y1, filters=KUnM, kernel_size=Ot1W, strides=FEri, padding='SAME' if FEri == 1 else 'VALID', use_bias=False, kernel_initializer=ZylS.variance_scaling_initializer(), data_format=wH3T)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xl1a(FCPk, Ot1W, _0fC, ivFb=1, dvgN=0, TWfd=0):\n return epAf.floor((FCPk + 2 * dvgN - ivFb * (Ot1W - 1) - 1) / _0fC) + 1", "def iTtX(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='VALID', name='convolution')", "def xC4s(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, X...
[ "0.7355424", "0.73396486", "0.73038566", "0.7289577", "0.7229475", "0.7209308", "0.71844846", "0.7096817", "0.7039749", "0.70375925", "0.7036603", "0.7031906", "0.7012138", "0.700571", "0.69770306", "0.69762814", "0.69762814", "0.69762814", "0.69762814", "0.69762814", "0.6976...
0.675232
50
Return time difference in seconds between two datetimes
def mBMS(eeDS, A4tK): w0do = qcWV.datetime.strptime(A4tK, '%Y-%m-%d %H:%M:%S') Ilc0 = qcWV.datetime.strptime(eeDS, '%Y-%m-%d %H:%M:%S') yk4i = w0do - Ilc0 return yk4i.total_seconds()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C61p(YKHO, Elif):\n return (YKHO.datetime - Elif.datetime).total_seconds()", "def hMTB(CVHG, PzA3):\n return PzA3 - CVHG", "def hMTB(CVHG, PzA3):\n return PzA3 - CVHG", "def krEI(nEj9: datetime.datetime, t0fp: datetime.datetime):\n yk4i = nEj9 - t0fp\n return yk4i.total_seconds()", "def ...
[ "0.83282655", "0.8317368", "0.83074844", "0.8240269", "0.8123682", "0.810777", "0.80940706", "0.79552114", "0.7855639", "0.78337324", "0.78058964", "0.7667268", "0.7596876", "0.7595539", "0.75926787", "0.7553331", "0.74961925", "0.74184746", "0.735631", "0.7319165", "0.729113...
0.77771753
11
Check if path is an existing file.
def Nz4g(pmON): if not Hy7s.path.isfile(pmON): if Hy7s.path.isdir(pmON): tO9_ = '{0} is a directory'.format(pmON) else: tO9_ = '{0} does not exist.'.format(pmON) raise j1Jz.ArgumentTypeError(tO9_) return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def poxP(pmON):\n return EFYe(pmON)", "def Hat5(pmON: str):\n if Hy7s.path.isfile(pmON):\n return True\n return False", "def IeRR(pmON):\n return Hy7s.path.isfile(pmON)", "def JgkM(pmON):\n if Hy7s.path.isfile(pmON):\n return True\n else:\n return False", "def poxP(pm...
[ "0.8621865", "0.8423821", "0.84183437", "0.8388314", "0.83540815", "0.8347232", "0.8290108", "0.8282429", "0.82487947", "0.821282", "0.8165733", "0.8139205", "0.81230056", "0.81199926", "0.81057936", "0.8103556", "0.8100323", "0.80803996", "0.8076761", "0.80714184", "0.806972...
0.0
-1
Check if path is an existing file.
def adwE(pmON): if not Hy7s.path.isdir(pmON): if Hy7s.path.isfile(pmON): tO9_ = '{0} is a file.'.format(pmON) else: tO9_ = '{0} does not exist.'.format(pmON) raise j1Jz.ArgumentTypeError(tO9_) return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def poxP(pmON):\n return EFYe(pmON)", "def Hat5(pmON: str):\n if Hy7s.path.isfile(pmON):\n return True\n return False", "def IeRR(pmON):\n return Hy7s.path.isfile(pmON)", "def JgkM(pmON):\n if Hy7s.path.isfile(pmON):\n return True\n else:\n return False", "def poxP(pm...
[ "0.8621865", "0.8423821", "0.84183437", "0.8388314", "0.83540815", "0.8347232", "0.8290108", "0.8282429", "0.82487947", "0.821282", "0.8165733", "0.8139205", "0.81230056", "0.81199926", "0.81057936", "0.8103556", "0.8100323", "0.80803996", "0.8076761", "0.80714184", "0.806972...
0.0
-1
3x3 convolution with padding
def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1): return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False, dilation=ivFb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())", "def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)", "def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,...
[ "0.78404945", "0.7541354", "0.753996", "0.7491138", "0.7434801", "0.74207747", "0.73415834", "0.7320252", "0.7299599", "0.7287539", "0.72799367", "0.72799367", "0.7257735", "0.7226928", "0.72204214", "0.7214909", "0.7214909", "0.7210775", "0.7198222", "0.71639067", "0.7161914...
0.70922214
61
Check if parameter should be updated. Checks whether a parameter `parameter_name` belonging to a ParameterGroup `config_element` fullfills the criterion for updating it's value, giving in `model_lifecycle`.
def amyv(Bet6: ParameterGroup, SK6d: str, XxRm: Optional[Union[Sequence[ModelLifecycle], ModelLifecycle]]) -> bool: j3y5 = True if XxRm is not None: yIVm = Bet6.get_metadata(SK6d) sQsC = yIVm[hodE.AFFECTS_OUTCOME_OF] if isinstance(XxRm, list): j3y5 = sQsC in XxRm else...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _dMC(YKHO, xqoZ: str, rzi1: dict, QdZT=False):\n sPBL = False\n PE50 = YKHO.state.params[xqoZ]\n if xqoZ in rzi1.keys():\n if rzi1[xqoZ] != getattr(YKHO.state[PE50], xqoZ):\n sPBL = True\n if QdZT:\n YKHO.state.update_param(xqoZ, rzi1[xqoZ])\n return sPBL...
[ "0.695478", "0.6742232", "0.66672117", "0.6328117", "0.6242871", "0.61751324", "0.61111933", "0.6090351", "0.6026733", "0.60211885", "0.5931289", "0.58976674", "0.5861939", "0.58157593", "0.58062434", "0.5776065", "0.5769842", "0.57672447", "0.5766462", "0.57592434", "0.57439...
0.87043875
0
Create hash table with 10 buckets.
def kkSs(): return H8Ru(10)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4Vb():\n Y4Vb = H8Ru(10)\n return Y4Vb", "def FIMM(YKHO):\n YKHO.size = 100\n YKHO.hash_table = [Msxl() for YRbF in range(YKHO.size)]", "def FIMM(YKHO):\n YKHO.buckets = 1000\n YKHO.itemsPerBucket = 1001\n YKHO.table = [[] for bGrB in range(YKHO.buckets)]", "def FIMM(YKHO):\n YKH...
[ "0.7604015", "0.74696475", "0.7314758", "0.714784", "0.7088547", "0.7010642", "0.70044273", "0.7000307", "0.6952573", "0.69422656", "0.68543863", "0.6850115", "0.68432", "0.6827167", "0.6801052", "0.6792892", "0.67849076", "0.6744833", "0.6742631", "0.67344964", "0.6719703", ...
0.7820843
0
Create hash table with 10 buckets.
def QmcA(): MKlR = H8Ru(10) MKlR.set('nyl', 909) MKlR.set('stl', 314) return MKlR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kkSs():\n return H8Ru(10)", "def Y4Vb():\n Y4Vb = H8Ru(10)\n return Y4Vb", "def FIMM(YKHO):\n YKHO.size = 100\n YKHO.hash_table = [Msxl() for YRbF in range(YKHO.size)]", "def FIMM(YKHO):\n YKHO.buckets = 1000\n YKHO.itemsPerBucket = 1001\n YKHO.table = [[] for bGrB in range(YKHO.b...
[ "0.7820843", "0.7604015", "0.74696475", "0.7314758", "0.714784", "0.7088547", "0.70044273", "0.7000307", "0.6952573", "0.69422656", "0.68543863", "0.6850115", "0.68432", "0.6827167", "0.6801052", "0.6792892", "0.67849076", "0.6744833", "0.6742631", "0.67344964", "0.6719703", ...
0.7010642
6
Sums over the halos to compute OmHI.
def Fjyz(D9cM, qDdQ): qcDU = CENN(Tia6 + sg14 + '/fastpm_%0.4f//' % D9cM, dataset='LL-0.200') g2zq = qcDU.attrs['MassTable'][1] * 10000000000.0 qcDU['Mass'] = qcDU['Length'].compute() * g2zq ZbLl = CENN(Coab + sg14 + '/fastpm_%0.4f/cencat' % D9cM + qDdQ) VEM4 = CENN(Coab + sg14 + '/fastpm_%0.4f/satc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def znRI(YKHO):\n assert YKHO.haplos.shape[0] == YKHO.markers\n assert YKHO.haplos.shape[1] == YKHO.indivs\n assert YKHO.hLike.shape[1] == YKHO.markers\n assert YKHO.hLike.shape[0] == YKHO.indivs\n if not hasattr(YKHO, 'geno'):\n YKHO.geno = YKHO.haplos.sum(axis=2)\n YKHO.geno[YKHO.gen...
[ "0.6460174", "0.6310124", "0.6196806", "0.6023829", "0.60020345", "0.5927301", "0.5877788", "0.5825286", "0.5821052", "0.58170193", "0.5782137", "0.5755001", "0.5755001", "0.5753808", "0.57509965", "0.57468677", "0.5737759", "0.5706241", "0.56866324", "0.56694794", "0.5661098...
0.72478074
0
Method takes in a list of columns and returns a new column list where for every column element in the given list, there will be two elements in new list.
def mh2E(ZHeM): UDoI = [] for YRbF in ZHeM: UDoI.append(YRbF + 'Upper') UDoI.append(YRbF + 'Lower') return UDoI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pjuy(YKHO, hZCZ):\n Gyal = Jw9x(hZCZ)\n Cqfc = Gyal[0]\n PPP6 = Gyal[1][0]\n print(PPP6)\n WmM4 = [YKHO.default]\n UDoI = []\n for iVRZ in hZCZ:\n if isinstance(iVRZ, str):\n shUF = [iVRZ] * PPP6\n elif len(iVRZ) < PPP6:\n shUF = iVRZ + WmM4 * (PPP6 - le...
[ "0.60577637", "0.6026194", "0.5896913", "0.5825385", "0.5820258", "0.581303", "0.5781109", "0.5759894", "0.57191586", "0.5692111", "0.56837165", "0.56169236", "0.55901957", "0.55732256", "0.5570594", "0.5570274", "0.5560447", "0.5532457", "0.5482766", "0.5433047", "0.5406145"...
0.5660476
11
save_to_json_file saves formatted content to inputted path output as json file
def PF_N(hGN5: List[dict], pmON: str) -> None: with open(pmON, 'w') as ytgA: qQXR.dump(hGN5, ytgA, indent=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1ai(qaEx, nPrm):\n with open(qaEx, 'w') as ZQUr:\n qQXR.dump(nPrm, ZQUr, indent=4, separators=(',', ': '))", "def uyD2(YEnM, pmON):\n with open(pmON, 'w', encoding='utf-8') as Xz4u:\n qQXR.dump(YEnM, Xz4u, indent=4)\n Xz4u.close()", "def U1ai(n80H, qQXR):\n with open(n80H, 'w...
[ "0.7923769", "0.78118914", "0.780359", "0.77848387", "0.7730215", "0.76926327", "0.76895183", "0.7679429", "0.7678837", "0.76787776", "0.7666963", "0.76627314", "0.76591045", "0.7657585", "0.765062", "0.7623969", "0.7607525", "0.76019555", "0.75700265", "0.7568664", "0.755585...
0.7820809
1
Returns a list of channel names. Raises an error if no names are defined. The order of the names corresponds to the C dimension of the array.
def fv66(YKHO) -> x1iM[str]: if 'omero' not in YKHO.group.attrs: raise ValueError('Omero metadata must be present.') gUGj = YKHO.group.attrs['omero'] if 'channels' not in gUGj: raise ValueError('No omero channels entry') return [fK8P.get('label') for fK8P in gUGj['channels']]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def otYK(YKHO):\n return YKHO.channel_names.channel_names[YKHO.nchannels - 1]", "def ni7T(YKHO):\n if YKHO.channel_axis is None:\n return [0]\n return list(range(YKHO.signal.shape[YKHO.channel_axis]))", "def fv66(YKHO):\n return YKHO._channels.keys()", "def q4Uc(YKHO) -> list[str]:\n re...
[ "0.7825352", "0.7795617", "0.7719899", "0.76044464", "0.7422359", "0.73158807", "0.7186688", "0.70591366", "0.70433056", "0.68577236", "0.6837179", "0.6653783", "0.66367775", "0.6631587", "0.6547616", "0.65161043", "0.65161043", "0.65161043", "0.6508894", "0.6499489", "0.6495...
0.7475584
4
Get current object as a JSONserializable dict
def _fYl(YKHO): return {'status': YKHO._status, 'model': YKHO._model, 'version': YKHO._version, 'image': YKHO._image, 'scale': YKHO._scale, 'ready_replicas': YKHO._ready_replicas, 'namespace': YKHO._namespace, 'model_api_ok': YKHO._model_api_ok, 'model_api_info': YKHO._model_api_info}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oABl(YKHO):\n return YKHO.__dict__", "def qQXR(YKHO):\n return YKHO.__dict__", "def oD7C(YKHO):\n co6n = YKHO.__dict__\n co6n['_class_'] = YKHO.__class__.__name__\n return co6n", "def oD7C(YKHO):\n co6n = YKHO.__dict__\n co6n['_class_'] = YKHO.__class__.__name__\n return co6n", ...
[ "0.80012745", "0.7980586", "0.7958544", "0.7958544", "0.79301244", "0.79241294", "0.78750294", "0.7865809", "0.7744142", "0.76889443", "0.76860034", "0.7676381", "0.76628053", "0.76479316", "0.76479316", "0.76479316", "0.76479316", "0.76479316", "0.76479316", "0.76406795", "0...
0.0
-1
Build ModelDeploymentDescription from JSON dict
def ZM9L(YGFP): if isinstance(YGFP['model_api_info'], bytes): YGFP['model_api_info'] = qQXR.loads(YGFP['model_api_info']) return G5jG(**YGFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bRz4(GVaH, jxBi=None, ghuo=None):\n return G5jG(status=GVaH.status, model=GVaH.id, version=GVaH.version, image=GVaH.image, scale=GVaH.desired_scale, ready_replicas=GVaH.scale, namespace=GVaH.namespace, model_api_ok=jxBi, model_api_info=ghuo)", "def ikQ2(Emd4, IdCU, PkkT=None):\n _8mN = ZbWC.search('dep...
[ "0.6694638", "0.5959756", "0.58635294", "0.5795975", "0.56622726", "0.55957144", "0.54753107", "0.54505503", "0.54234564", "0.5417474", "0.54165626", "0.53666794", "0.53022724", "0.52374387", "0.5161379", "0.5158972", "0.51548755", "0.50978005", "0.50760317", "0.5031626", "0....
0.8575244
0
returns the index of the entry in the table if 'sp' is found in the entry; returns 1 if 'sp' is not found in any of the entries in the table
def Nfje(YKHO, H4yH: int) -> int: for YRbF, bTKY in enumerate(YKHO.table): if bTKY[1] == H4yH: return YRbF return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K1VD(tyNF, iVRZ, nPrm):\n d6pt = -1\n for U6D_ in tyNF:\n d6pt += 1\n if U6D_[iVRZ] == nPrm:\n return d6pt", "def o301(E6LM, EdpI):\n Z_yA = E6LM.split(',')\n try:\n return Z_yA.index(EdpI)\n except ValueError:\n HwRy.exit('Query species is not in wga.bed...
[ "0.61456746", "0.6118921", "0.58761716", "0.5859083", "0.58128124", "0.57407445", "0.573225", "0.57277125", "0.56596375", "0.56001484", "0.55328405", "0.55293316", "0.5525912", "0.5523808", "0.55133337", "0.5488257", "0.5483867", "0.54778653", "0.54510784", "0.54277676", "0.5...
0.8445968
0
Check if the path is valid.
def cKaM(pmON, JBZA): if not Hy7s.path.isabs(pmON): raise ValueError('{0} directory is not an absolute path.'.format(JBZA)) if not Hy7s.path.isdir(pmON): raise ValueError('{0} directory does not exist: {1}'.format(JBZA, pmON))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JK0O(YKHO, pmON: str) -> bool:\n pass", "def zwDd(YKHO, pmON):\n return YKHO.type.is_valid_path(pmON)", "def zwDd(YKHO, pmON):\n return YKHO.type.is_valid_path(pmON)", "def zwDd(pmON):\n if pmON is not None and pmON != -1 and (pmON != 'invalid end'):\n return True\n else:\n r...
[ "0.86853737", "0.8391699", "0.8391699", "0.83877605", "0.8357975", "0.8286853", "0.8224877", "0.8224877", "0.8050903", "0.804368", "0.7989071", "0.79159504", "0.7817758", "0.7767424", "0.7746018", "0.7695648", "0.7695029", "0.76211166", "0.7592039", "0.75814956", "0.7581114",...
0.69716704
54
Load the pretrained model states and prepare the model for sentiment analysis on CPU. This method returns a custom BertForSequenceClassification model that allows it to work with LayerIntegratedGradients and LayerIntermediateGradients.
def nuvw(uqvc): GPtr = tnop(vocab_size=30522, type_vocab_size=2) C3ST = LlHx(GPtr, 2, [11]) U6wn = ht2j.load(uqvc, map_location=ht2j.device('cpu')) C3ST.load_state_dict(U6wn) C3ST.eval() return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrZb(YKHO):\n C3ST = AzIx.from_pretrained(pretrained_model_name_or_path=YKHO.model_name, from_pt=True if YKHO.from_pt_word in YKHO.model_name else False, num_labels=len(YKHO.label_list))\n return C3ST", "def O5RJ(YKHO):\n b0j5 = YL5X.from_pretrained('bert-base-uncased')\n l5Ny = '[CLS] Who was Ji...
[ "0.75634944", "0.6930692", "0.67496496", "0.66046464", "0.6598991", "0.65271044", "0.6505039", "0.6505039", "0.64872277", "0.646615", "0.64490867", "0.6443418", "0.64265394", "0.64148295", "0.636232", "0.636232", "0.6343105", "0.6334167", "0.6333649", "0.633022", "0.63152254"...
0.6178316
40
Get the fullyqualified bucket path for a package
def OyQC(YKHO, B5hb): if 'path' not in B5hb.data: B5hb.data['path'] = YKHO.path_prefix + B5hb.name + '/' + B5hb.filename return B5hb.data['path']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OyQC(YKHO, B5hb):\n if 'path' not in B5hb.data:\n Ux0P = B5hb.name + '/' + B5hb.filename\n if YKHO.prepend_hash:\n r8hN = xORj()\n r8hN.update(B5hb.filename)\n y0cW = r8hN.digest().encode('hex')[:4]\n Ux0P = y0cW + '/' + Ux0P\n B5hb.data['path...
[ "0.7373708", "0.7203129", "0.6916792", "0.6916792", "0.691634", "0.691634", "0.691634", "0.691634", "0.691634", "0.691634", "0.691634", "0.68718654", "0.6823984", "0.6805096", "0.6745089", "0.66952145", "0.66562647", "0.66457516", "0.66382873", "0.66091526", "0.6554845", "0...
0.6448706
32
Fully qualified resource ID for the resource. Ex /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
def id(YKHO) -> str: return qe4Y.get(YKHO, 'id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:\n return YKHO.__resource_id", "def PcW4(YKHO) -> qe4Y.Output[str]:\n retur...
[ "0.765514", "0.765514", "0.765514", "0.74568033", "0.7365606", "0.7365606", "0.7365606", "0.7365606", "0.7365606", "0.73312956", "0.73312956", "0.73312956", "0.73312956", "0.73312956", "0.73312956", "0.72488725", "0.721115", "0.721115", "0.721115", "0.721115", "0.721115", "...
0.0
-1
The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'.
def i6N2(YKHO) -> h8nf['outputs.EncryptionScopeKeyVaultPropertiesResponse']: return qe4Y.get(YKHO, 'key_vault_properties')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i6N2(YKHO) -> h8nf[qe4Y.Input['KeyVaultPropertiesArgs']]:\n return qe4Y.get(YKHO, 'key_vault_properties')", "def i6N2(YKHO) -> h8nf[qe4Y.Input['KeyVaultPropertiesArgs']]:\n return qe4Y.get(YKHO, 'key_vault_properties')", "def nGBF(YKHO) -> h8nf[qe4Y.Input['VaultPropertiesEncryptionArgs']]:\n retur...
[ "0.71076345", "0.71076345", "0.68733615", "0.6790713", "0.67104083", "0.6376704", "0.6050154", "0.59998983", "0.5974446", "0.5932627", "0.5925269", "0.58938247", "0.5833857", "0.5825858", "0.581823", "0.581823", "0.5800519", "0.5794728", "0.5767482", "0.57562387", "0.5738284"...
0.7786131
0
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
def type(YKHO) -> str: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n ...
[ "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.8202684", "0.80979353", "0.7982246", "0.7982246", "0.7982246", "0.7982246", "0.7982246", "0.7982246", ...
0.6641631
73
Returns the properties for the specified encryption scope.
def XCJa(n8Ek: Optional[str]=None, XW3Y: Optional[str]=None, TRLE: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> oLbJ: rYZf = dict() rYZf['accountName'] = n8Ek rYZf['encryptionScopeName'] = XW3Y rYZf['resourceGroupName'] = TRLE VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i6N2(YKHO) -> h8nf['outputs.EncryptionScopeKeyVaultPropertiesResponse']:\n return qe4Y.get(YKHO, 'key_vault_properties')", "def sD55(n8Ek: Optional[pulumi.Input[str]]=None, XW3Y: Optional[pulumi.Input[str]]=None, TRLE: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Ou...
[ "0.6229627", "0.60036975", "0.595165", "0.5712836", "0.56239057", "0.5617448", "0.5587359", "0.5574743", "0.5574743", "0.5569997", "0.555281", "0.5506298", "0.5456045", "0.54373145", "0.542218", "0.542218", "0.541823", "0.53946626", "0.5387003", "0.5387003", "0.5374169", "0...
0.592921
3
Returns the properties for the specified encryption scope.
def sD55(n8Ek: Optional[pulumi.Input[str]]=None, XW3Y: Optional[pulumi.Input[str]]=None, TRLE: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[siaD]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i6N2(YKHO) -> h8nf['outputs.EncryptionScopeKeyVaultPropertiesResponse']:\n return qe4Y.get(YKHO, 'key_vault_properties')", "def naPz(YKHO) -> h8nf['outputs.DiskEncryptionPropertiesResponse']:\n return qe4Y.get(YKHO, 'disk_encryption_properties')", "def XCJa(n8Ek: Optional[str]=None, XW3Y: Optional[st...
[ "0.62312967", "0.59519386", "0.59276646", "0.5714947", "0.562903", "0.56214935", "0.5590982", "0.5578888", "0.5578888", "0.5573377", "0.55575305", "0.5509622", "0.5457876", "0.54365087", "0.5426504", "0.5426504", "0.54171914", "0.53989047", "0.539101", "0.539101", "0.5377448"...
0.6002007
1
Get the wikidata id for an item.
def ywzj(YKHO, ZfUD): Jajo = '' wr9U = YKHO.wd_paintings.get(ZfUD.get_obj_id()) if wr9U: Jajo = wr9U.get('item')[0] else: ZfUD.add_to_tracker('issues', 'no painting wd') return Jajo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO._wrench['itemID']", "def Xuu9(l3QS):\n QDP4 = uRlK.parse.urlencode({'action': 'query', 'prop': 'pageprops', 'ppprop': 'wikibase_item', 'redirects': 1, 'format': 'json', 'titles': l3QS})\n R7S5 = 'https://de.wikipedia.org/w/api.php?%s' % QDP4\n U5bT = G4JS.get(R7S5).json(...
[ "0.77569693", "0.7483651", "0.7480186", "0.734916", "0.73252606", "0.73252606", "0.73252606", "0.73252606", "0.72727716", "0.7183582", "0.7084823", "0.68674105", "0.67902935", "0.6732683", "0.6644519", "0.6595829", "0.6460664", "0.6354185", "0.6338911", "0.62460756", "0.62197...
0.6838421
12
Get the object type of an item.
def FRul(YKHO, ZfUD): cM24 = '' wr9U = YKHO.wd_paintings.get(ZfUD.get_obj_id()) if wr9U: SnBA = [] for a1PO in wr9U.get('types'): SnBA.append(YKHO.type_mappings.get(a1PO)) SnBA = BJsk.trim_list(SnBA) if len(SnBA) == 1: cM24 = SnBA[0] elif len(S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO, ZfUD):\n if isinstance(ZfUD, dict):\n return 'dict'\n elif cGYn.providedBy(ZfUD):\n return 'brain'\n elif UTIQ.providedBy(ZfUD):\n return 'contentlistingobject'\n elif riTg.providedBy(ZfUD):\n return 'widget'\n elif isinstance(ZfUD, o2Vr):\n return '...
[ "0.7864161", "0.7854475", "0.7586675", "0.74463904", "0.74463904", "0.74463904", "0.74463904", "0.74463904", "0.74463904", "0.74463904", "0.74463904", "0.74463904", "0.74463904", "0.74463904", "0.74463904", "0.73979324", "0.73098075", "0.72523665", "0.72510046", "0.71639854", ...
0.7389594
16
Return a formatted creation date. item.get_date() returns
def slWZ(ZfUD): _c1T = ZfUD.get_date() if not _c1T: return u'{{unknown|date}}' elif isinstance(_c1T, tuple): if _c1T[0] == '_': return _c1T[1] return u'{{%s|%s}}' % (_c1T[0], _c1T[1]) else: return _c1T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I9Z5(YKHO):\n return aP4s(YKHO._get_info_node(), 'date')", "def a0GP(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_date')", "def a0GP(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_date')", "def GBxH(YKHO, ZfUD):\n return ZfUD.creation_date", "def Tc4J(YKHO):\n lXqb = CjLm(YKHO.created,...
[ "0.7835353", "0.7799251", "0.7799251", "0.7750554", "0.77503836", "0.77228945", "0.76990736", "0.76272434", "0.76272434", "0.7622034", "0.7620065", "0.76081616", "0.75991213", "0.7598815", "0.7579182", "0.7565741", "0.75470835", "0.75147176", "0.7422187", "0.73870766", "0.733...
0.71293914
42
Return the original image filename without file extension.
def Khgv(YKHO, ZfUD): return Hy7s.path.splitext(ZfUD.image)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gIsw(YKHO):\n return Hy7s.path.split(YKHO.image.name)[-1]", "def C7_O(YKHO):\n return Hy7s.path.split(YKHO.image_file.name)[-1]", "def yFjF(YKHO, Ux0P):\n mWFP, YBcr = Hy7s.path.splitext(Ux0P.lower())\n YBcr = YBcr.strip('.')\n if YBcr not in YKHO.img_exts:\n raise TypeError('{} is no...
[ "0.8023752", "0.7982394", "0.7756059", "0.7752619", "0.77158874", "0.7672881", "0.76344943", "0.76294327", "0.7628687", "0.76267684", "0.75686127", "0.7532336", "0.751969", "0.7432532", "0.7429834", "0.735084", "0.73419535", "0.7311106", "0.72869384", "0.7262334", "0.72402453...
0.8179897
0
Normalize adj according to the method of rw normalization. Note that sym norm is used in the original GCN paper (kipf), while rw norm is used in GraphSAGE and some other variants. Here we don't perform sym norm since it doesn't seem to help with accuracy improvement.
def uy8I(eQUr, mghH=None, Qhop=True): Xw05 = (eQUr.shape[0], eQUr.shape[1]) lWPh = eQUr.sum(1).flatten() if mghH is None else mghH x0VI = H4yH.dia_matrix((1 / lWPh, 0), shape=Xw05) uy8I = x0VI.dot(eQUr) if Qhop: uy8I.sort_indices() return uy8I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ujN0(eQUr, type='sym'):\n if type == 'sym':\n eQUr = H4yH.coo_matrix(eQUr)\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = H4yH.diags(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo()\n ...
[ "0.6930589", "0.69000363", "0.6883797", "0.68576366", "0.6855812", "0.6855724", "0.6855724", "0.68423826", "0.6790705", "0.676162", "0.6733278", "0.671836", "0.671836", "0.6701179", "0.66874945", "0.6684976", "0.6684976", "0.6684976", "0.6684976", "0.6684976", "0.6684976", ...
0.62238
39
Returns EMA from given time series
def h8Uy(nPrm: pd.Series, KnxT: int): return nPrm.ewm(span=KnxT, min_periods=0, adjust=False, ignore_na=False).mean()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NadT(nPrm, iVRZ, pQ4c):\n h8Uy = nPrm[iVRZ].unstack(0).ewm(span=pQ4c, adjust=False).mean().stack().swaplevel(0, 1).sort_index()\n return h8Uy", "def Vii8(nPrm: xr.DataArray, wV6l: int=14) -> zuVY.DataArray:\n return KbXN(wf7J.SMA, nPrm, oxOY.TIME, [wV6l])", "def FwwX(nPrm, pQ4c):\n return nPrm....
[ "0.7519218", "0.7351739", "0.6979403", "0.68746436", "0.68278694", "0.67786276", "0.67307496", "0.6698976", "0.6682171", "0.66405904", "0.65975326", "0.65956914", "0.655147", "0.65234077", "0.64752585", "0.6472455", "0.64652467", "0.641287", "0.63949573", "0.6387269", "0.6380...
0.7703462
0
turns a flat sequence into an ndim array as specfied by the votable arraysize spec arraysize. arraysize is {"x"}?|. No padding or cropping will take place. This means that the last row(s) may have improper sizes if seq is incompatible with arraysize.
def vt_L(t892, Q6uT): SQ3m = t892.split('x') if len(SQ3m) < 2: return Q6uT del SQ3m[-1] for YPaw in map(int, SQ3m): Q6uT = [Q6uT[YRbF:YRbF + YPaw] for YRbF in range(0, len(Q6uT), YPaw)] return Q6uT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PxWt(jWe2, yDqo=oyIN.int32, nSKI=None):\n if len(jWe2) == 0:\n raise ValueError('Empty sequence')\n maxY = oyIN.array([len(Q6uT) for Q6uT in jWe2], oyIN.int32)\n if nSKI is None:\n ROpF = [len(jWe2), maxY.max()]\n else:\n ROpF = [len(jWe2), maxY.max(), nSKI]\n qw7D = oyIN.ze...
[ "0.6648201", "0.6355723", "0.59960926", "0.5936299", "0.592407", "0.58527696", "0.584583", "0.5835179", "0.57808983", "0.57595706", "0.5739456", "0.57382745", "0.57216954", "0.57149863", "0.56892973", "0.5678148", "0.5656845", "0.56453633", "0.5606782", "0.55692375", "0.55622...
0.7283554
0
returns seq with length arraysize. arraysize is an int; you should just use field.getLength() when trimming VOTable arraysizes since the arraysize attribute is rather complex. Arraysize may be None for convenience; trim is a noop then. If seq is shorter, paddermissing will be appended, if it is longer, seq will be shor...
def O358(Q6uT, t892, CTeo): if t892 is None: return Q6uT if len(Q6uT) < t892: Q6uT = Q6uT + CTeo * (t892 - len(Q6uT)) elif len(Q6uT) > t892: Q6uT = Q6uT[:t892] return list(BJsk.iterflattened(Q6uT))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xakj(aWuw, BcCR, kYlL):\n q4aw = aWuw.shape[0]\n GCpA = oyIN.zeros((BcCR - q4aw, kYlL))\n aWuw = oyIN.concatenate((aWuw, GCpA), axis=0)\n return aWuw", "def szAg(YKHO):\n return len(YKHO.seq)", "def Q6uT(YKHO, aAh7):\n pass", "def szAg(YKHO):\n return len(YKHO.seq)", "def Dro8(YKHO...
[ "0.59635437", "0.5783044", "0.5776023", "0.57171834", "0.56000805", "0.55342376", "0.5531468", "0.5511836", "0.5443043", "0.5421422", "0.5372489", "0.5358957", "0.5358957", "0.5358957", "0.5358957", "0.52988243", "0.5292716", "0.52887946", "0.52850735", "0.52850735", "0.52808...
0.6603823
0
Create a cell with convolution.
def pK_f(uvt8): VmPb = riCw(uvt8) def GFeb(hDmL): MxXY = LTLo('N1') swv5(MxXY) VmPb.graph.add_edge(hDmL, MxXY) cWFu = LTLo('N2') swv5(cWFu) ZQPE = LTLo('N3') swv5(ZQPE) XkN1 = n3Kt() XkN1.add_node(MxXY) XkN1.add_node(cWFu) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PP1s(YKHO, WKvO, mM8X, gqUV, _FNQ, dvgN='same', FEri=(1, 1), e5sz=False):\n WKvO = Ofph(mM8X, (gqUV, _FNQ), strides=FEri, padding=dvgN, use_bias=e5sz)(WKvO)\n WKvO = GVKG(axis=YKHO._channel_axis, scale=False)(WKvO)\n WKvO = MroH('relu')(WKvO)\n return WKvO", "def KAJx(YKHO, JD6i, WKvO, DbyF):\n ...
[ "0.6525755", "0.6468704", "0.6436475", "0.6408739", "0.6370647", "0.6348373", "0.6281767", "0.6281767", "0.626727", "0.6259123", "0.6259123", "0.6259123", "0.62374884", "0.621381", "0.621381", "0.621381", "0.6206385", "0.6201149", "0.620073", "0.61935866", "0.61840403", "0....
0.0
-1
Remove isolated nodes from the network, in place.
def Q9EQ(pNZh): Ziit = list(jHsn.isolates(pNZh)) pNZh.remove_nodes_from(Ziit)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q9EQ(YKHO):\n A_GK = YKHO.isolated_nodes()\n YKHO._nodes = YKHO._nodes.loc[~YKHO._nodes.index.isin(A_GK)]", "def BG1N(YKHO):\n YKHO.removeNodes(YKHO.getIsolatedNodes())\n return YKHO", "def EmjQ(YKHO, Ziit):\n for Q6kx in Ziit:\n YKHO.remove_node(Q6kx)", "def Q5NO(pNZh):\n im04 =...
[ "0.8137823", "0.71140414", "0.7066482", "0.69865364", "0.6888687", "0.6745353", "0.66156137", "0.66005206", "0.65444154", "0.65101767", "0.6490134", "0.6475291", "0.64726585", "0.6452581", "0.64101166", "0.6372331", "0.6360903", "0.63118255", "0.627447", "0.626312", "0.625412...
0.71049744
2
remove the leading FASTA comment from a single FASTA sequence string
def tRbO(YKHO, Q6uT: str): return Q6uT.lstrip(YKHO.get_fasta_comment(Q6uT)).strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def djSr(YKHO, Q6uT: str):\n if Q6uT.startswith('>'):\n return Q6uT[:Q6uT.find('\\n')]\n else:\n return '>'", "def bSLV(KCHu):\n oeNL = KCHu.find('#')\n if oeNL == -1:\n return KCHu\n return KCHu[0:oeNL].strip()", "def o9dR(zFiD):\n YRbF = zFiD.find('#')\n return zFiD ...
[ "0.7471406", "0.7137413", "0.7015556", "0.69986534", "0.6974843", "0.6927116", "0.68682086", "0.68434006", "0.68208927", "0.67730355", "0.66862047", "0.66797656", "0.66564023", "0.66544944", "0.6648134", "0.6613468", "0.6579393", "0.6558946", "0.6550379", "0.6455785", "0.6424...
0.87297374
0
Return atomic reactor configuration
def K_F7(YKHO): YURo = YKHO.user_params.reactor_config_override.value _pVW = YKHO.user_params.reactor_config_map.value nPrm = {} if YURo: nPrm = YURo elif _pVW: pU7t = YKHO.osbs_api.get_config_map(_pVW) nPrm = pU7t.get_data_by_key('config.yaml') return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ESx6(QePW):\n from reactor.manager import ManagerConfig\n return ManagerConfig()", "def tgzD(cO4L):\n try:\n HUs2 = cO4L.plugin_workspace[naHF.key]\n return HUs2[BzX8]\n except KeyError:\n Fv2L = QMQr()\n HUs2 = cO4L.plugin_workspace.get(naHF.key, {})\n HUs2[BzX...
[ "0.6493635", "0.63350844", "0.6182386", "0.61507905", "0.609237", "0.5995438", "0.5989629", "0.5973885", "0.5963437", "0.5953945", "0.5931056", "0.5909608", "0.59058315", "0.58763206", "0.58763206", "0.58763206", "0.58763206", "0.58763206", "0.58763206", "0.58763206", "0.5876...
0.645836
1
r"""Log of the PDF of the inverse Wishart distribution.
def IdP4(WKvO, kTwQ, LVAh): KCHu, dyqE = oyIN.linalg.slogdet(WKvO) KCHu, Z04F = oyIN.linalg.slogdet(LVAh) sqJ_ = oyIN.sum(oyIN.diag(oyIN.linalg.solve(WKvO, LVAh))) return kTwQ / 2.0 * Z04F - (kTwQ + WKvO.shape[0] + 1) / 2.0 * dyqE - 0.5 * sqJ_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QF3p(YKHO, WKvO):\n return YKHO._frozen.logpdf(WKvO)", "def QF3p(YKHO, T6S7):\n QF3p = YKHO._Z - (T6S7 - YKHO.mu) ** 2 / (2 * YKHO._var)\n return QF3p", "def QF3p(YKHO, T6S7):\n QF3p = YKHO._Z - (T6S7 - YKHO.mu) ** 2 / (2 * YKHO._var)\n return QF3p", "def QF3p(YKHO, T6S7):\n QF3p = YKHO...
[ "0.71113276", "0.7030302", "0.7030302", "0.7030302", "0.7030302", "0.6827908", "0.6816071", "0.6807627", "0.6807627", "0.6807627", "0.6807627", "0.67803365", "0.6742806", "0.66910094", "0.66773206", "0.6664372", "0.661079", "0.65822446", "0.656715", "0.65531194", "0.65243095"...
0.65225095
21
Returns the value of the multivariate normal PDF with mean ``mu`` and covariancesassociated with each point in ``x````sigma`` at the points ``x``.
def p5sQ(WKvO, yGTL, WTkW): WKvO = oyIN.atleast_2d(WKvO) KCHu, xnQa = oyIN.linalg.slogdet(WTkW) Jw7X = WKvO - yGTL return -0.5 * (oyIN.log(2.0 * oyIN.pi) + xnQa) - 0.5 * oyIN.sum(Jw7X * oyIN.linalg.solve(WTkW, Jw7X), axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V5Uq(YKHO, WKvO, r7V4, ZfCB):\n return nSzW.pdf(WKvO, r7V4, ZfCB)", "def hkRB(WKvO, JBMS, PFC2):\n zNig = len(WKvO)\n nUPH = oyIN.linalg.det(PFC2)\n iXK0 = 1.0 / ((2 * oyIN.pi) ** float(zNig) / 2 * oyIN.sqrt(nUPH))\n wM6o = oyIN.matrix(WKvO - JBMS)\n dKc3 = oyIN.linalg.inv(PFC2)\n Aofo =...
[ "0.80008066", "0.78880733", "0.7786111", "0.7683146", "0.7541009", "0.75396717", "0.75009584", "0.72732186", "0.7190335", "0.7171377", "0.7163219", "0.71573615", "0.7131491", "0.7059652", "0.7043456", "0.70272416", "0.7002466", "0.69704795", "0.6961705", "0.6939056", "0.69378...
0.0
-1
Returns the log of the foreground density at the indicated points.
def UK2H(YKHO, XP5J): XP5J = YKHO.to_params(XP5J) DZPh = YKHO._cov_matrix(XP5J['covc']) O4yP = oyIN.tile(DZPh, (YKHO.pts.shape[0], 1, 1)) O4yP[:, 2, 2] += YKHO.dzs * YKHO.dzs return p5sQ(YKHO.pts, XP5J['muc'], O4yP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gXdX(YKHO, LVAh, epBp):\n raise NotImplementedError", "def gXdX(YKHO, LVAh, epBp):\n with ZylS.variable_scope('likelihood'):\n YKHO.log_density_y = YKHO._log_density_likelihood(LVAh)\n with ZylS.variable_scope('prior'):\n YKHO.log_density_z = YKHO._log_density_prior(epBp)\n return Y...
[ "0.7074912", "0.6609929", "0.65441585", "0.6447692", "0.6418443", "0.6418443", "0.6418443", "0.6418443", "0.61118793", "0.6109102", "0.6090665", "0.60873884", "0.6086941", "0.5993147", "0.59575605", "0.5957362", "0.5948063", "0.5892936", "0.58717936", "0.584382", "0.5833412",...
0.67330855
1
Returns the log of the background density at the indicated points.q
def jruE(YKHO, XP5J): XP5J = YKHO.to_params(XP5J) qVU3 = YKHO._cov_matrix(XP5J['covb']) J64s = oyIN.tile(qVU3, (YKHO.pts.shape[0], 1, 1)) J64s[:, 2, 2] += YKHO.dzs * YKHO.dzs return p5sQ(YKHO.pts, XP5J['mub'], J64s)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gXdX(YKHO, LVAh, epBp):\n raise NotImplementedError", "def gXdX(YKHO, LVAh, epBp):\n with ZylS.variable_scope('likelihood'):\n YKHO.log_density_y = YKHO._log_density_likelihood(LVAh)\n with ZylS.variable_scope('prior'):\n YKHO.log_density_z = YKHO._log_density_prior(epBp)\n return Y...
[ "0.6570686", "0.63628167", "0.6307579", "0.6238029", "0.6208982", "0.6196849", "0.6067705", "0.605586", "0.5968955", "0.59398586", "0.59398586", "0.59398586", "0.59398586", "0.5915773", "0.586427", "0.58378834", "0.5833747", "0.5763701", "0.5757049", "0.57311887", "0.5714841"...
0.6197417
5
Retrieve user from database if present. Returns `User` object.
def TKWP(VCCg) -> mv1M: NCls = GGod() xDcj = '\n SELECT users.id, users.username, users.password, roles.name AS role, games.name AS game\n FROM users\n LEFT JOIN map_users_roles AS map_role ON map_role.user_id = users.id\n LEFT JOIN roles ON map_role.role_id = roles.id\n ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(NCls: Session, uJjO: int):\n return NCls.query(FYrf.User).filter(FYrf.User.id == uJjO).first()", "def TKWP(NCls: Session, uJjO: int):\n return NCls.query(FYrf.User).filter(FYrf.User.id == uJjO).first()", "def TKWP():\n if not 'username' in cuiw:\n return None\n NtEF = cuiw['username...
[ "0.8174718", "0.8174718", "0.8093843", "0.807745", "0.80211055", "0.80039155", "0.7957079", "0.795142", "0.7951162", "0.794838", "0.794838", "0.794838", "0.7886599", "0.78601545", "0.78601545", "0.78601545", "0.7851369", "0.7836412", "0.7835082", "0.7830165", "0.78249276", ...
0.0
-1
Tests tf.function that tries to recreate `tf.Variable`s.
def YO1C(YKHO): YKHO.skipTest('b/147231209') class Foo: """Foo class for demonstrating the issue.""" def FIMM(YKHO): YKHO._flag_keyed_vars = {} def nrOS(YKHO, A_ty): YKHO.compute(A_ty) @ZylS.function def GvK6(YKHO, A_ty): if A_ty no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y2g7(YKHO):\n zgsA = []\n\n class Foo:\n \"\"\"Foo class for demonstration.\"\"\"\n\n def FIMM(YKHO):\n YKHO.condition = True\n YKHO.n = 1.0\n YKHO.var = None\n\n @ZylS.function\n def eHNT(YKHO, WKvO, XEri):\n \"\"\"Function `f` for ...
[ "0.6558237", "0.6424253", "0.60921746", "0.60488784", "0.599512", "0.5979607", "0.59726745", "0.59261227", "0.58959514", "0.58785725", "0.5860369", "0.5816726", "0.5813266", "0.5749147", "0.569475", "0.5660477", "0.5647614", "0.56442064", "0.5639224", "0.56210005", "0.5612668...
0.63958406
2
Constructor which allows a different HTTP client for this controller.
def FIMM(YKHO, pu1N=None, pOXK=None): pEC1.__init__(YKHO, pu1N, pOXK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, pu1N=None):\n pEC1.__init__(YKHO, pu1N)", "def pu1N(YKHO):\n raise NotImplementedError", "def FIMM(YKHO, *qIxc, **B2fa):\n if vsLv.instance() is not None:\n raise RuntimeError('Only one instance of AsyncHttpClient should be used!')\n super(vsLv, YKHO).__init__(*qIxc, **B2fa)\n...
[ "0.8111979", "0.74721277", "0.7129897", "0.7052212", "0.6992169", "0.69369155", "0.69369155", "0.68902296", "0.687143", "0.6847685", "0.6826312", "0.6826312", "0.6826312", "0.6826312", "0.6826312", "0.6826312", "0.6826312", "0.6826312", "0.6826312", "0.6826312", "0.679871", ...
0.77497506
1
Does a GET request to /response/boolean.
def Y5iq(YKHO): RGYk = y8cn.BASE_URI RGYk += '/response/boolean' vgAy = fPb2.clean_url(RGYk) kkzV = {'user-agent': 'Stamplay SDK'} z1oz = YKHO.http_client.get(vgAy, headers=kkzV) if YKHO.http_call_back != None: YKHO.http_call_back.on_before_request(z1oz) jxeo = YKHO.http_client.execu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _J6_():\n return pz3A({'result': True})", "def jGRS(geh0):\n return geh0.json()['boolean']", "def CfgA(YKHO):\n return YKHO.assertXFluidDBHeaderForType('GET', True, 'boolean')", "def ql9s(YKHO):\n w2IS = YKHO.api.boolean\n assert w2IS.openapi_types['body'] == (bool,)\n assert w2IS.setti...
[ "0.71644634", "0.68530315", "0.6739361", "0.65840834", "0.64825165", "0.6200989", "0.6192229", "0.61406565", "0.61372066", "0.6089424", "0.60305077", "0.597036", "0.59527147", "0.59459144", "0.592999", "0.5914663", "0.58904743", "0.5869445", "0.5869189", "0.5854487", "0.58263...
0.76765937
0
Does a GET request to /response/boolean.
def L5Ub(YKHO): RGYk = y8cn.BASE_URI RGYk += '/response/boolean' x6TT = {'array': True} vgAy = fPb2.clean_url(RGYk) kkzV = {'user-agent': 'Stamplay SDK', 'accept': 'application/json'} z1oz = YKHO.http_client.get(vgAy, headers=kkzV, query_parameters=x6TT) if YKHO.http_call_back != None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y5iq(YKHO):\n RGYk = y8cn.BASE_URI\n RGYk += '/response/boolean'\n vgAy = fPb2.clean_url(RGYk)\n kkzV = {'user-agent': 'Stamplay SDK'}\n z1oz = YKHO.http_client.get(vgAy, headers=kkzV)\n if YKHO.http_call_back != None:\n YKHO.http_call_back.on_before_request(z1oz)\n jxeo = YKHO.http...
[ "0.7677237", "0.71646816", "0.6852869", "0.6740569", "0.6584251", "0.64825356", "0.62024987", "0.61930764", "0.61406785", "0.60897684", "0.6030628", "0.5970859", "0.5951905", "0.5945907", "0.59301585", "0.5914441", "0.58911514", "0.58702993", "0.5868689", "0.58552015", "0.582...
0.6137617
9
Query stats for all processes.
def UkB1(YKHO): vDqp = None eQSh = [] Ii1o = Hy7s.getpid() for NRWD in O0k5.process_iter(): try: KIeO = NRWD.as_dict() except O0k5.NoSuchProcess: pass else: j2kh = KIeO['cpu_times'] j2kh = (j2kh.user, j2kh.system, j2kh.children_user...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zuSp(YKHO, **o2VW):\n YKHO.__query_all_data(YKHO.query_stats, **o2VW)", "def dimG(YKHO):\n P3Cm = qCQm.getGPUProcesses()\n if P3Cm:\n return [j4kg(NRWD.pid, NRWD.processName, NRWD.gpuId, NRWD.gpuUuid, NRWD.usedMemory) for NRWD in P3Cm]\n return []", "def aBG1(YKHO):\n eQSh = {}\n f...
[ "0.7071882", "0.6792827", "0.6577813", "0.6577813", "0.64073986", "0.64033574", "0.6387186", "0.6377396", "0.63567245", "0.6184982", "0.61530125", "0.610541", "0.610377", "0.6069118", "0.5992526", "0.5976449", "0.5960296", "0.59480655", "0.5946441", "0.5924294", "0.59163076",...
0.7501565
0
Return full path to the userspecific cache dir for this application
def IYzE(i1I_=None): if HwRy.platform == 'win32': pmON = Hy7s.path.join(gbPf.gettempdir(), i1I_) elif HwRy.platform == 'darwin': pmON = Hy7s.path.expanduser('~/Library/Caches') else: pmON = Hy7s.getenv('XDG_CACHE_HOME', Hy7s.path.expanduser('~/.cache')) pmON = Hy7s.path.join(pmON...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BXLT(YKHO):\n return YKHO.path('cache')", "def OP0F():\n if 'PYCUTER_CACHE' in PNq_:\n return PNq_['PYCUTER_CACHE']\n else:\n return Hy7s.getcwd()", "def gLDJ(YKHO):\n gLDJ = Hy7s.path.join(Hy7s.path.dirname(xAKo), '..', 'cache')\n if not Hy7s.path.exists(gLDJ):\n Hy7s.m...
[ "0.84298176", "0.8228884", "0.8169215", "0.8169215", "0.8144718", "0.81397814", "0.80850047", "0.8079382", "0.80122226", "0.79942065", "0.7981213", "0.7964959", "0.7957475", "0.7903396", "0.7900377", "0.7872174", "0.78181684", "0.7809341", "0.7799757", "0.7767737", "0.7766982...
0.86250085
0
Plot the episode length and average rewards per episode
def kj9G(YKHO): LZpg = QrM1.figure(figsize=(20, 5)) oqIm = [YRbF for YRbF in YKHO.episode_len if YRbF != 0] xobV = rLdf.DataFrame(oqIm).rolling(100, min_periods=100) u6h8 = xobV.mean() UVuV = xobV.std() QrM1.plot(u6h8, color='red') QrM1.fill_between(x=UVuV.index, y1=(u6h8 - UVuV)[0], y2=(u6h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj9G(YKHO):\n LZpg = QrM1.figure(figsize=(20, 5))\n oqIm = [YRbF for YRbF in YKHO.episode_length if YRbF != 0]\n xobV = rLdf.DataFrame(oqIm).rolling(100, min_periods=100)\n u6h8 = xobV.mean()\n UVuV = xobV.std()\n QrM1.plot(u6h8, color='red')\n QrM1.fill_between(x=UVuV.index, y1=(u6h8 - UV...
[ "0.77868164", "0.71332085", "0.708265", "0.66081303", "0.6604311", "0.65405715", "0.64840436", "0.6431788", "0.63924044", "0.63654304", "0.63611203", "0.6233021", "0.62180334", "0.6193832", "0.6193832", "0.61904067", "0.61455554", "0.6125552", "0.6074656", "0.6048619", "0.603...
0.78177154
0
Initialize an empty board. The O's go first.
def FIMM(YKHO): YKHO.board = [[' '] * 3 for bGrB in range(3)] YKHO.turn, YKHO.winner = ('O', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A6EF(YKHO):\n YKHO.board = oyIN.full(pow(YKHO.size + 2, 2), pqZk, dtype='U')\n for rdlD in range(1, YKHO.size + 1):\n yKcO = YKHO.row_start(rdlD)\n YKHO.board[yKcO:yKcO + YKHO.size] = KAvf\n YKHO.board[44], YKHO.board[55] = (eJVO, eJVO)\n YKHO.board[45], YKHO.board[54] = (XDQs, XDQs)"...
[ "0.8181443", "0.81367815", "0.8106375", "0.8039001", "0.797153", "0.78826874", "0.7841547", "0.77788275", "0.77170205", "0.7622936", "0.7549999", "0.7528289", "0.75267416", "0.7502508", "0.74530816", "0.7450675", "0.74486625", "0.74417347", "0.74299985", "0.74268395", "0.7420...
0.7726137
8
Mark an O or X in the (i,j)th box and check for a winner.
def BZN_(YKHO, YRbF, r845): if YKHO.winner is not None: raise ValueError('the game is over!') elif YKHO.board[YRbF][r845] != ' ': raise ValueError('space ({},{}) already taken'.format(YRbF, r845)) YKHO.board[YRbF][r845] = YKHO.turn Fg_i = YKHO.board if any((sum((KCHu == YKHO.turn for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VCOz(YKHO, YRSS):\n for YRbF in range(len(YKHO.data)):\n for r845 in range(len(YKHO.data[0])):\n if YKHO.data[YRbF][r845] == YRSS:\n for P6bq in range(3):\n if YRbF + P6bq + 1 >= YKHO.height:\n break\n if YKHO.data...
[ "0.6736046", "0.6643656", "0.6609592", "0.65984464", "0.6581348", "0.6536562", "0.64519215", "0.6425633", "0.6375279", "0.6356952", "0.63303596", "0.63199615", "0.63094574", "0.62907624", "0.6282707", "0.627692", "0.6275503", "0.62735647", "0.62393874", "0.6234461", "0.621829...
0.6337163
10
Updates the player stake with the amount won. Removes the first and the last number from the sequence.
def ufJO(YKHO, XTKJ): super().win(XTKJ) YKHO.sequence = YKHO.sequence[1:-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pz18(YKHO, XTKJ):\n DOmE = YKHO.sequence[0] + YKHO.sequence[-1]\n YKHO.sequence.append(DOmE)", "def ufJO(YKHO, XTKJ):\n YKHO.stake += XTKJ.win_amount()", "def ufJO(YKHO, XTKJ):\n YKHO.stake += XTKJ.win_amount()\n YKHO.roundstogo -= 1", "def LVDI(YKHO) -> None:\n YKHO.moves_since_food +=...
[ "0.64752364", "0.63622326", "0.62966406", "0.59600085", "0.58899635", "0.5837262", "0.5793725", "0.57541955", "0.56780314", "0.56597525", "0.5653857", "0.5653268", "0.5590832", "0.55676943", "0.5546721", "0.55323905", "0.55213267", "0.55074507", "0.54928005", "0.54920775", "0...
0.5916472
4
Ternary for spec variant to ON/OFF string
def yFaW(RDhP, zF0X='ON', l4XF='OFF'): if RDhP in Cqok: return zF0X return l4XF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NSqi(wEf2: bool):\n return _rDc if wEf2 else iKVK", "def yFaW(RDhP, zF0X='ON', l4XF='OFF'):\n if RDhP in Cqok:\n return zF0X\n return l4XF", "def zt9W(_J6_):\n if _J6_:\n return 'on'\n else:\n return 'off'", "def yKeu(QTBn):\n return 'on' if QTBn == 1 else 'off' if ...
[ "0.71932197", "0.7016569", "0.67902106", "0.6739203", "0.6733385", "0.65591985", "0.65165794", "0.63632846", "0.6349201", "0.6220671", "0.6212113", "0.61814404", "0.6176602", "0.6102157", "0.60802037", "0.60796", "0.606643", "0.6037787", "0.6032404", "0.6027744", "0.59865993"...
0.70017076
2
Annotation for methods that require auth.
def Q4x4(m2Zb): def b6ry(YKHO, *qIxc, **B2fa): if not YKHO.apiKey: tO9_ = 'You must be authenticated to use this method' raise wSGu(tO9_) else: return m2Zb(YKHO, *qIxc, **B2fa) return b6ry
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t3gg(NKcE):\n\n @zaGL(NKcE)\n def b6ry(*qIxc, **B2fa):\n CBIr = W84Y()\n if CBIr is None:\n return ('', 401)\n return NKcE(*qIxc, **B2fa)\n return b6ry", "def CJnm(YKHO, qv1X):\n return False", "def t3gg(eHNT):\n\n @zaGL(eHNT)\n def XIpm(*qIxc, **B2fa):\n ...
[ "0.73340845", "0.72950846", "0.72923625", "0.72906643", "0.72199595", "0.71756905", "0.71707696", "0.71511537", "0.71308863", "0.7125783", "0.71162164", "0.70326924", "0.69956535", "0.6990919", "0.697188", "0.6937785", "0.6922141", "0.68974906", "0.6771209", "0.67699504", "0....
0.68528324
18
Read in life expectancy by age.
def WWla(Nj_f: pd.DataFrame): _l4t = Hy7s.path.join(ASgB, 'WPP2019_MORT_F16_1_LIFE_EXPECTANCY_BY_AGE_BOTH_SEXES.xlsx') Qlme = rLdf.read_excel(rLdf.ExcelFile(_l4t), header=16, index_col=0, sheet_name='ESTIMATES') Qlme.rename(columns={'Country code': 'country_code'}, inplace=True) MqWh = [str(5 * YRbF) fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N_N1(YKHO):\n return YKHO.age", "def lM4z(YKHO):\n return YKHO.age", "def DJSN(YKHO):\n YKHO.age = 977.813910745 / YKHO.H0 * zQMB.quad(YKHO._Einva, 0, 1)[0]\n return", "def N_N1(YKHO):\n return YKHO.age", "def lUqL(YKHO):\n return YKHO.age", "def ZJe_(YKHO):\n print('In age metho...
[ "0.6952499", "0.6841367", "0.68396825", "0.683417", "0.6825627", "0.67949754", "0.67436016", "0.6705892", "0.66918874", "0.66797054", "0.6665066", "0.6641575", "0.6629653", "0.66062325", "0.65475994", "0.65423137", "0.65008396", "0.6471082", "0.64581025", "0.6457875", "0.6457...
0.0
-1
Assigns value to the list of lists (array) element at rownum and colnum.
def GKVF(YKHO, H5ew, BWXx): YKHO._map[H5ew] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZE8_(nPrm, yh1n, BWXx):\n return vuvg.list_setitem(nPrm, yh1n, BWXx)", "def O1R3(YKHO, BWXx, rdlD, fvDH):\n YKHO.data[GpEL(rdlD, fvDH)] = BWXx", "def NOEQ(YKHO, YRbF, r845, BWXx):\n YKHO.column[YRbF:r845] = [riCw(bTKY) for bTKY in BWXx]", "def pZ_B(YKHO, VmPb, dMwb: list, uTQu: list):\n YRbF ...
[ "0.6942861", "0.6380025", "0.63105536", "0.62835646", "0.6251004", "0.62425375", "0.61746055", "0.61660814", "0.61432314", "0.61110604", "0.61062735", "0.61040324", "0.610157", "0.6078492", "0.60758066", "0.6022821", "0.597684", "0.59669954", "0.5951181", "0.594825", "0.59316...
0.0
-1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('-' * 40) print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() XYie = jQ3Z['month'].value_counts().idxmax() print('Most common month: {}'.format(pL8v(XYie).title())) SOOw = jQ3Z['day_of_week'].value_counts().idxmax() print('Most common day of...
{ "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.7428122
94
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'].value_counts().idxmax() print('Most common start station: {}'.format(bTuL)) Nj0t = jQ3Z['End Station'].value_counts().idxmax() print('Most common end station: {}'.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.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() bJiw = jQ3Z['Trip Duration'].sum() print('Total travel time: {} seconds'.format(bJiw)) hJH9 = jQ3Z['Trip Duration'].mean() print('Average travel time: {} seconds'.format('%.2f' % hJH9)) print('\nThis took %s seconds...
{ "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.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.0
-1
Split a fname (folder/file + ext) into a folder/file and extension.
def gLx5(IznC): dir, Ux0P = Hy7s.path.split(IznC) for U0Ds in ['.nii.gz', '.tar.gz']: if Ux0P.endswith(U0Ds): XPB5, YBcr = (Ux0P[:-len(U0Ds)], U0Ds) return (Hy7s.path.join(dir, XPB5), YBcr) XPB5, YBcr = Hy7s.path.splitext(Ux0P) return (Hy7s.path.join(dir, XPB5), YBcr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c5uP(FYKK):\n if '.' in FYKK:\n P8oC, YBcr = FYKK.rsplit('.', 1)\n else:\n YBcr = ''\n P8oC = FYKK\n return (P8oC, YBcr)", "def QhLj(IznC):\n pmON, mWFP = Hy7s.path.split(IznC)\n exwG = Hy7s.path.splitext(mWFP)[0]\n YBcr = Hy7s.path.splitext(mWFP)[1]\n return (pmON, ...
[ "0.7617976", "0.7416857", "0.74112827", "0.73980176", "0.7353711", "0.7332139", "0.73069465", "0.72632617", "0.71773314", "0.7140453", "0.7133679", "0.7113793", "0.7105191", "0.70951575", "0.7090644", "0.70688593", "0.70148665", "0.69761246", "0.69759333", "0.69147503", "0.69...
0.79675466
0
Convert name to a global name with a trailing namespace separator.
def S5IE(mWFP): if F0OH(mWFP): raise ValueError('cannot turn [%s] into a global name' % mWFP) if not I0zM(mWFP): mWFP = f6vL + mWFP if mWFP[-1] != f6vL: mWFP = mWFP + f6vL return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _63S(mWFP):\n \"\"\"map name to its namespace\"\"\"\n if mWFP is None:\n raise ValueError('name')\n if not aEXN(mWFP):\n raise TypeError('name')\n if not mWFP:\n return f6vL\n elif mWFP[-1] == f6vL:\n mWFP = mWFP[:-1]\n return mWFP[:mWFP.rfind(f6vL) + 1] or f6vL", ...
[ "0.73033714", "0.66347075", "0.6594631", "0.6343921", "0.631967", "0.6301919", "0.6125095", "0.6122383", "0.6049391", "0.6001235", "0.59949064", "0.59852296", "0.5981075", "0.59734803", "0.5939345", "0.59257114", "0.59217405", "0.5913305", "0.59022915", "0.58981395", "0.58659...
0.7985902
0
Get the namespace of name. The namespace is returned with a trailing slash in order to favor easy concatenation and easier use within the global context.
def _63S(mWFP): """map name to its namespace""" if mWFP is None: raise ValueError('name') if not aEXN(mWFP): raise TypeError('name') if not mWFP: return f6vL elif mWFP[-1] == f6vL: mWFP = mWFP[:-1] return mWFP[:mWFP.rfind(f6vL) + 1] or f6vL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get...
[ "0.7734259", "0.7734259", "0.7734259", "0.7734259", "0.7734259", "0.7734259", "0.7734259", "0.767696", "0.75366986", "0.74902266", "0.74870765", "0.74870765", "0.74870765", "0.74870765", "0.74870765", "0.74279547", "0.74279547", "0.7427297", "0.7373955", "0.7373955", "0.73739...
0.7293241
25
Split a name into its package and resource name parts, e.g. 'std_msgs/String > std_msgs, String'
def uHVM(mWFP): if eMGt in mWFP: wEf2 = tuple(mWFP.split(eMGt)) if len(wEf2) != 2: raise ValueError('invalid name [%s]' % mWFP) else: return wEf2 else: return ('', mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uHVM(mWFP):\n if eMGt in mWFP:\n wEf2 = tuple(mWFP.split(eMGt))\n if len(wEf2) != 2:\n raise ValueError('invalid name [%s]' % mWFP)\n else:\n return wEf2\n else:\n return ('', mWFP)", "def un4u(mWFP):\n if not eMGt in mWFP:\n return None\n ...
[ "0.7181916", "0.67521644", "0.6712914", "0.6645867", "0.6513934", "0.6513634", "0.6501196", "0.6421488", "0.6367984", "0.62856853", "0.62413985", "0.62373203", "0.6198706", "0.6167951", "0.6154708", "0.6129025", "0.6103221", "0.60904205", "0.6079357", "0.60742396", "0.6065267...
0.71008444
1
Initialise the alphabet for the Bitap algorithm.
def JLgH(YKHO, mXDZ): KCHu = {} for hcXw in mXDZ: KCHu[hcXw] = 0 for YRbF in range(len(mXDZ)): KCHu[mXDZ[YRbF]] |= 1 << len(mXDZ) - YRbF - 1 return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.alphabet = vIwR.ascii_uppercase", "def FIMM(YKHO):\n YKHO.alphabet = vIwR.ascii_uppercase\n YKHO.alpha_2_num = {}\n YKHO.num_2_alpha = {}\n YKHO.mod = len(YKHO.alphabet)\n d6pt = 0\n for hcXw in YKHO.alphabet:\n YKHO.alpha_2_num[hcXw] = d6pt\n YKHO.num_2_...
[ "0.73498756", "0.71608776", "0.7071745", "0.7011652", "0.70011467", "0.6971002", "0.6917868", "0.68289495", "0.68153924", "0.6808106", "0.67983985", "0.6523738", "0.6523738", "0.6507333", "0.64604664", "0.6453241", "0.6438831", "0.6417351", "0.63891953", "0.6361361", "0.63215...
0.6083841
37
Given an array of patches, return another array that is identical.
def dWs1(YKHO, ohfT): JMF_ = [] for Po4F in ohfT: l3su = AVCS() l3su.diffs = Po4F.diffs[:] l3su.start1 = Po4F.start1 l3su.start2 = Po4F.start2 l3su.length1 = Po4F.length1 l3su.length2 = Po4F.length2 JMF_.append(l3su) return JMF_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qdjx(ohfT: List[PatchObject]) -> x1iM[Q_4z]:\n AU4C = []\n for Po4F in ohfT:\n U3PW = Q_4z()\n U3PW.diffs = Po4F.diffs[:]\n U3PW.start1 = Po4F.start1\n U3PW.start2 = Po4F.start2\n U3PW.length1 = Po4F.length1\n U3PW.length2 = Po4F.length2\n AU4C.append(U3PW...
[ "0.6451936", "0.6154463", "0.61538506", "0.599444", "0.59409684", "0.59363794", "0.5934357", "0.5931842", "0.5898241", "0.5831034", "0.5829903", "0.57981807", "0.57800627", "0.5745124", "0.5740092", "0.5696777", "0.5696777", "0.5689048", "0.5673761", "0.5669113", "0.56671035"...
0.6707462
0
Adds an internal network interface to the specified router.
def QObf(YKHO, oimG, VWZy): if not oimG: raise TvYj('router to add interface is None!') if not isinstance(oimG, hPmM): raise TypeError('router %s is not %s instance' % (oimG, hPmM.__name__)) if not hasattr(oimG, 'id') or not oimG.id: raise ValueError('No id is given in the router %s'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QObf(oimG, VWZy, z39Z=None):\n w2B8 = Hbi_(z39Z)\n return w2B8.add_interface_router(oimG, VWZy)", "def xQFT(YKHO, eVVj, oZaD, hkS8=None):\n nPrm = {'virtual-network': {'fq_name': eVVj['fq_name'], 'route_table_refs': [{'to': oZaD['fq_name'], 'attr': hkS8}]}}\n return YKHO._put('/virtual-network/{0...
[ "0.8028322", "0.7773259", "0.7625781", "0.7334347", "0.7314876", "0.7041609", "0.70238566", "0.6886946", "0.6567107", "0.65134627", "0.6510247", "0.6460175", "0.6460175", "0.64301324", "0.63946205", "0.6382395", "0.6318003", "0.63165367", "0.63059336", "0.6297906", "0.6287209...
0.75771445
4
Fetches a list of all members for a project.
def J6PO(YKHO, DE1z): Vlb9 = {} qxTz = YKHO.os_client.list_lbaas_members(DE1z.pool.id, retrieve_all=True, **Vlb9) SKGK = [] for KVax in qxTz['members']: KVax['pool_id'] = DE1z.pool.id DE1z = UBB8(os_resource=KVax) SKGK.append(DE1z) return SKGK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWhj(bNKA):\n qIxc = ['container', 'fleet', 'memberships', 'list', '--format', 'json(name)', '--project', bNKA]\n hlel, XObx = D6YZ(qIxc)\n if XObx:\n raise Bx6I.ConfigSyncError('Error listing memberships: {}'.format(XObx))\n jcIu = qQXR.loads(hlel)\n AO0n = [r8hN['name'] for r8hN in jcIu...
[ "0.7274708", "0.7225165", "0.71338266", "0.71272206", "0.70910823", "0.6885465", "0.6881661", "0.68602544", "0.68318146", "0.68205047", "0.68065727", "0.6760513", "0.6752134", "0.6745011", "0.6732532", "0.67174596", "0.66913146", "0.6690802", "0.6680048", "0.6667652", "0.6655...
0.0
-1
Fetches a list of all members for a project.
def list(YKHO, qNSC): Vlb9 = {} qxTz = YKHO.os_client.list_lbaas_members(qNSC, retrieve_all=True, **Vlb9) SKGK = [] for KVax in qxTz['members']: KVax['pool_id'] = qNSC DE1z = UBB8(os_resource=KVax) SKGK.append(DE1z) return SKGK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWhj(bNKA):\n qIxc = ['container', 'fleet', 'memberships', 'list', '--format', 'json(name)', '--project', bNKA]\n hlel, XObx = D6YZ(qIxc)\n if XObx:\n raise Bx6I.ConfigSyncError('Error listing memberships: {}'.format(XObx))\n jcIu = qQXR.loads(hlel)\n AO0n = [r8hN['name'] for r8hN in jcIu...
[ "0.7274053", "0.72257924", "0.7135042", "0.7130261", "0.70928425", "0.6888275", "0.6880384", "0.6863295", "0.6834499", "0.6822331", "0.6809598", "0.6762946", "0.67557514", "0.67469555", "0.6735861", "0.6720366", "0.6693446", "0.66914403", "0.6679832", "0.6670046", "0.6655642"...
0.0
-1
Compute a Point3i that expressed the translation of imp2 relative to imp1.
def vWi5(rdZp, Rlr6): mMOO = IrID(e17X.wrap(rdZp), e17X.wrap(Rlr6), 5, True) mMOO.process() return Y6PZ(mMOO.getShift().getPosition())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MZv_(lBK9, Ci2N):\n \"\"\"\n R_1, R_2 = pose1[:3, :3], pose2[:3, :3]\n t_1, t_2 = pose1[:, -1][:-1], pose2[:, -1][:-1]\n R = np.dot(R_2.T, R_1)\n T = np.dot(R_2.T, t_1 - t_2)\n p_1_to_2 = np.zeros((4, 4))\n p_1_to_2[:3, :3] = R\n p_1_to_2[:3, -1] = T\n p_1_to_2[-1, -1] = 1\n \"\"\...
[ "0.62081474", "0.6139029", "0.6031412", "0.59823453", "0.5932572", "0.58533585", "0.5832745", "0.57973725", "0.5757312", "0.5723038", "0.56824183", "0.5675864", "0.56358373", "0.56254685", "0.5590639", "0.5572159", "0.5566691", "0.5562687", "0.5558315", "0.5526861", "0.551398...
0.6127613
2
Take the shifts, which are relative to the previous shift, and sum them up so that all of them are relative to the first.
def BZv8(KIE5): for YRbF in range(2, len(KIE5)): Esro = KIE5[YRbF - 1] j93S = KIE5[YRbF] j93S.x += Esro.x j93S.y += Esro.y j93S.z += Esro.z return KIE5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xZcb(RqgG, DkWr):\n if RqgG < 0:\n Aofo = min(0, RqgG + DkWr)\n return Aofo\n elif RqgG > 0:\n Aofo = max(0, RqgG + DkWr)\n return Aofo\n else:\n return 0", "def UmZK(YKHO, vK_X: RuleKey, rMri: Tuple[int, ...]) -> x1iM[h8nf[int]]:\n fd4Z = YKHO._function[vK_X[0]...
[ "0.6337595", "0.60783553", "0.5933528", "0.5861288", "0.5771036", "0.57671106", "0.5755738", "0.5674936", "0.5672362", "0.5670614", "0.5661423", "0.5629781", "0.5532972", "0.5520422", "0.55010176", "0.5477833", "0.54556674", "0.54452884", "0.5417023", "0.53957677", "0.5375514...
0.6901591
0
r"""Root Mean Square Error.
def iAxY(LVAh, XP5J): epBp = LVAh - XP5J return oyIN.sqrt(oyIN.mean(oyIN.multiply(epBp, epBp)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def _td_(YKHO) -> float:\n return YKHO._call_java('rootMeanSquaredError')", "def ewIN(LTIa):\n Qth0 = True\n if not Qth0:\n sum = 0\n for AU8u in LTIa.values():\n sum += pow(oyIN.abs(AU8u.get_pollution_value()...
[ "0.8574341", "0.82851565", "0.7702623", "0.7613081", "0.7475144", "0.7402406", "0.73874676", "0.73606205", "0.73060393", "0.7274693", "0.7210682", "0.7149174", "0.7132063", "0.7118804", "0.7118804", "0.7095618", "0.70870364", "0.7039791", "0.6979607", "0.6962435", "0.6918446"...
0.0
-1
Calculates pressure for given temperature, valid for stratosphere only
def hw75(a1PO, MdXf=BuJL, Ynx7=Ynx7, Oa1e=Oa1e, Cwt5=Cwt5, A3Vt=A3Vt): return MdXf * oyIN.power(a1PO / Ynx7, Oa1e / (-Cwt5 * A3Vt))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CJ2p(D_mm, a1PO):\n G1Hx = if14.value('Boltzmann constant in eV/K')\n CJ2p = D_mm / (G1Hx * a1PO * 2.203)\n return CJ2p", "def KUmE(ovGo, CJ2p):\n Cdew = oyIN.zeros_like(ovGo)\n Cdew[:, :, :, :] = ovGo[:, :, :, :] * (CJ2p[None, :, None, None] / SeW3) ** (-A3Vt / U7YL)\n return Cdew", "def...
[ "0.7540679", "0.7226503", "0.7149466", "0.71162885", "0.7053262", "0.68355024", "0.6818585", "0.6813054", "0.68054867", "0.67991984", "0.6761047", "0.6728057", "0.6717337", "0.665035", "0.664825", "0.6646171", "0.6627216", "0.66262656", "0.6613925", "0.6596271", "0.6583936", ...
0.60109794
88
\ Parse and return command line arguments.
def rwTO(): wvEv = j1Jz.ArgumentParser(description='Download, convert and save data from Light Log device. Without arguments data will be saved to an auto-named csv file Light_Log_<device_ID>.csv in the current directory, if the log file already exists, new data will be appended to the log.') wvEv.add_argument(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uvp4(E0cB):\n wvEv = j1Jz.ArgumentParser(description=__doc__)\n Ltpw = wvEv.parse_args(E0cB[1:])\n return Ltpw", "def dCXb():\n return wvEv.parse_args()", "def gGZX():\n return (HwRy.argv[1:-1], Hy7s.path.abspath(HwRy.argv[-1]))", "def AmRs():\n wvEv = j1Jz.ArgumentParser()\n wvEv.ad...
[ "0.7955552", "0.7884253", "0.78617954", "0.772605", "0.76981", "0.7686915", "0.76652545", "0.76558673", "0.7644559", "0.7637568", "0.7610141", "0.759038", "0.7589848", "0.7587759", "0.75852", "0.75836813", "0.7581611", "0.7574734", "0.7572793", "0.7568821", "0.756026", "0.7...
0.0
-1
Retrieve the value of this field from an object.
def xtUD(YKHO, KAOR, DEXX=None): if KAOR is not None: if YKHO.att_name not in KAOR._info and (not KAOR._full_init): KAOR.refresh() BWXx = KAOR._info.get(YKHO.att_name, YKHO.default_value) L642 = YKHO.coerce_to or type(BWXx) if BWXx is None: return None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, YEnM):\n return YEnM.value", "def mI3L(YKHO, YEnM):\n if YEnM is not None:\n return getattr(YEnM, YKHO.attname)\n else:\n return YKHO.get_default()", "def mI3L(YKHO, YEnM):\n tZlo = super(iAO4, YKHO).value_from_object(YEnM)\n return YKHO.get_prep_value(tZlo)", "def...
[ "0.8209281", "0.769514", "0.7540102", "0.7524689", "0.7489796", "0.74565697", "0.7414951", "0.73124284", "0.72818035", "0.72324765", "0.71635646", "0.7141692", "0.7067956", "0.7059662", "0.7046386", "0.7028496", "0.6985994", "0.69600534", "0.6953138", "0.6953138", "0.6947943"...
0.0
-1
Retrieve the value of this field from an object.
def xtUD(YKHO, KAOR, DEXX=None): U5bT = super(EDxL, YKHO).__get__(KAOR, DEXX) return U5bT or []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, YEnM):\n return YEnM.value", "def mI3L(YKHO, YEnM):\n if YEnM is not None:\n return getattr(YEnM, YKHO.attname)\n else:\n return YKHO.get_default()", "def mI3L(YKHO, YEnM):\n tZlo = super(iAO4, YKHO).value_from_object(YEnM)\n return YKHO.get_prep_value(tZlo)", "def...
[ "0.82098633", "0.7695023", "0.7540978", "0.75250113", "0.748998", "0.7456429", "0.74154496", "0.73131996", "0.7281722", "0.723219", "0.71634007", "0.71427006", "0.7067846", "0.7060278", "0.7046198", "0.70286965", "0.6986356", "0.6959908", "0.6953313", "0.6953313", "0.6946941"...
0.0
-1
Retrieve the value of this field from an object.
def xtUD(YKHO, KAOR, DEXX=None): U5bT = super(vRuZ, YKHO).__get__(KAOR, DEXX) return U5bT or {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, YEnM):\n return YEnM.value", "def mI3L(YKHO, YEnM):\n if YEnM is not None:\n return getattr(YEnM, YKHO.attname)\n else:\n return YKHO.get_default()", "def mI3L(YKHO, YEnM):\n tZlo = super(iAO4, YKHO).value_from_object(YEnM)\n return YKHO.get_prep_value(tZlo)", "def...
[ "0.82098633", "0.7695023", "0.7540978", "0.75250113", "0.748998", "0.7456429", "0.74154496", "0.73131996", "0.7281722", "0.723219", "0.71634007", "0.71427006", "0.7067846", "0.7060278", "0.7046198", "0.70286965", "0.6986356", "0.6959908", "0.6953313", "0.6953313", "0.6946941"...
0.0
-1
Retrieve the value of this field from an object.
def xtUD(YKHO, KAOR, DEXX=None): Csk6 = super(QqzP, YKHO).__get__(KAOR, DEXX) return D1h4(Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, YEnM):\n return YEnM.value", "def mI3L(YKHO, YEnM):\n if YEnM is not None:\n return getattr(YEnM, YKHO.attname)\n else:\n return YKHO.get_default()", "def mI3L(YKHO, YEnM):\n tZlo = super(iAO4, YKHO).value_from_object(YEnM)\n return YKHO.get_prep_value(tZlo)", "def...
[ "0.82098633", "0.7695023", "0.7540978", "0.75250113", "0.748998", "0.7456429", "0.74154496", "0.73131996", "0.7281722", "0.723219", "0.71634007", "0.71427006", "0.7067846", "0.7060278", "0.7046198", "0.70286965", "0.6986356", "0.6959908", "0.6953313", "0.6953313", "0.6946941"...
0.0
-1
Retrieve the value of this field from an object.
def xtUD(YKHO, KAOR, DEXX=None): Csk6 = super(dpsO, YKHO).__get__(KAOR, DEXX) if type(Csk6) is float or type(Csk6) is int: IMJE = Csk6 / YKHO.multiplier return qcWV.utcfromtimestamp(IMJE) else: return qcWV.utcfromtimestamp(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, YEnM):\n return YEnM.value", "def mI3L(YKHO, YEnM):\n if YEnM is not None:\n return getattr(YEnM, YKHO.attname)\n else:\n return YKHO.get_default()", "def mI3L(YKHO, YEnM):\n tZlo = super(iAO4, YKHO).value_from_object(YEnM)\n return YKHO.get_prep_value(tZlo)", "def...
[ "0.8209281", "0.769514", "0.7540102", "0.7524689", "0.7489796", "0.74565697", "0.7414951", "0.73124284", "0.72818035", "0.72324765", "0.71635646", "0.7141692", "0.7067956", "0.7059662", "0.7046386", "0.7028496", "0.6985994", "0.69600534", "0.6953138", "0.6953138", "0.6947943"...
0.0
-1
Retrieve the value of this field from an object.
def xtUD(YKHO, KAOR, DEXX=None): _XQG = getattr(KAOR, YKHO.join_field) return KAOR._cb.select(YKHO.join_model, _XQG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, YEnM):\n return YEnM.value", "def mI3L(YKHO, YEnM):\n if YEnM is not None:\n return getattr(YEnM, YKHO.attname)\n else:\n return YKHO.get_default()", "def mI3L(YKHO, YEnM):\n tZlo = super(iAO4, YKHO).value_from_object(YEnM)\n return YKHO.get_prep_value(tZlo)", "def...
[ "0.82098633", "0.7695023", "0.7540978", "0.75250113", "0.748998", "0.7456429", "0.74154496", "0.73131996", "0.7281722", "0.723219", "0.71634007", "0.71427006", "0.7067846", "0.7060278", "0.7046198", "0.70286965", "0.6986356", "0.6959908", "0.6953313", "0.6953313", "0.6946941"...
0.0
-1
Retrieve the value of this field from an object.
def xtUD(YKHO, KAOR, DEXX=None): Csk6 = super(FrZY, YKHO).__get__(KAOR, DEXX) return WR89.b64decode(Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, YEnM):\n return YEnM.value", "def mI3L(YKHO, YEnM):\n if YEnM is not None:\n return getattr(YEnM, YKHO.attname)\n else:\n return YKHO.get_default()", "def mI3L(YKHO, YEnM):\n tZlo = super(iAO4, YKHO).value_from_object(YEnM)\n return YKHO.get_prep_value(tZlo)", "def...
[ "0.82098633", "0.7695023", "0.7540978", "0.75250113", "0.748998", "0.7456429", "0.74154496", "0.73131996", "0.7281722", "0.723219", "0.71634007", "0.71427006", "0.7067846", "0.7060278", "0.7046198", "0.70286965", "0.6986356", "0.6959908", "0.6953313", "0.6953313", "0.6946941"...
0.0
-1
Returns a string representation of the object.
def wHJl(YKHO): if YKHO._model_unique_id is not None: return '<%s.%s: id %s> @ %s' % (YKHO.__class__.__module__, YKHO.__class__.__name__, YKHO._model_unique_id, YKHO._cb.session.server) else: return '<%s.%s object at %s> @ %s' % (YKHO.__class__.__module__, YKHO.__class__.__name__, hex(id(YKHO)),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO) -> str:\n return lSJJ(YKHO)", "def zAg0(YKHO):\n return YKHO.object_repr", "def zAg0(YKHO):\n return str(YKHO.obj)", "def yLCI(YKHO):\n return YKHO.__str__()", "def yLCI(YKHO):\n return YKHO.__str__()", "def yLCI(YKHO) -> str:\n return YKHO.__str__()", "def zAg0(YKHO):\...
[ "0.8392864", "0.83621293", "0.82028115", "0.8184127", "0.8156954", "0.8071511", "0.806971", "0.80682284", "0.80682284", "0.8066552", "0.80539304", "0.80490243", "0.80490243", "0.7980499", "0.79713005", "0.79713005", "0.7970648", "0.7970648", "0.7970648", "0.7961302", "0.79613...
0.0
-1
Returns the "stringized" representation of an attribute value, truncated if it's too long.
def CLuk(Emd4, BWXx): try: xLUR = str(BWXx) except UnicodeDecodeError: xLUR = repr(BWXx) if len(xLUR) > DE7L.MAX_VALUE_WIDTH: xLUR = xLUR[:DE7L.MAX_VALUE_WIDTH - 3] + '...' return xLUR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TCzz(YKHO, BWXx, WmM4=None):\n BWXx = YKHO.get(BWXx, WmM4)\n if isinstance(BWXx, list) or isinstance(BWXx, tuple):\n BWXx = ' '.join(BWXx)\n return BWXx", "def TCzz(YKHO, BWXx, WmM4=None):\n BWXx = YKHO.get(BWXx, WmM4)\n if isinstance(BWXx, list) or isinstance(BWXx, tuple):\n BWX...
[ "0.678609", "0.678609", "0.6687777", "0.6657676", "0.6475267", "0.64399725", "0.63885015", "0.6387266", "0.6353105", "0.63404673", "0.6227058", "0.6227058", "0.6097181", "0.60777336", "0.60727537", "0.60661703", "0.6055431", "0.60474986", "0.60311365", "0.60123897", "0.596349...
0.6853118
0
Returns the maximum length of the attribute names for this object.
def lIqW(YKHO): if YKHO._max_name_len == 0: I0U6 = [] for hkS8 in YKHO._info: if isinstance(hkS8, str): I0U6.append(hkS8) elif isinstance(hkS8, dict): I0U6.extend(hkS8.keys()) YKHO._max_name_len = max([len(KCHu) for KCHu in I0U6]) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ueur(YKHO):\n try:\n return YKHO._xmlmaxattributenamelength\n except Exception as e:\n raise tTpl", "def Mdt1(YKHO):\n return 63", "def Da4i(DumB, hkS8):\n if hkS8 == 'definition':\n PtQX = max([len(' '.join(ZfUD.definition)) for ZfUD in DumB])\n else:\n PtQX = ma...
[ "0.8030454", "0.7854172", "0.75916874", "0.75823313", "0.75690675", "0.7516111", "0.7513196", "0.74032444", "0.7356787", "0.72101253", "0.7165911", "0.7165031", "0.7069088", "0.7059063", "0.7044901", "0.7037706", "0.7028594", "0.7013008", "0.69923544", "0.69553304", "0.693626...
0.84729236
0