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
The names that identify each filtered session in the self.stage.filtered_sessions dictionary. Should be the same as self.active_config_names I believe.
def avT8(YKHO): return list(YKHO.stage.filtered_sessions.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hPEz(YKHO):\n return YKHO.stage.filtered_sessions", "def vsc2(YKHO):\n return list(YKHO.stage.active_configs.keys())", "def FJM4(YKHO):\n ZWCE = [UU6M.DISPLAY_NAME for UU6M in YKHO._filters.values()]\n return sorted(zip(ZWCE, YKHO._filters.keys()))", "def Kfuq(YKHO):\n return YKHO._config_...
[ "0.71639484", "0.6864112", "0.61691976", "0.61617726", "0.6147785", "0.60501343", "0.60365427", "0.59640867", "0.59084153", "0.58867407", "0.587789", "0.587743", "0.58476335", "0.58476335", "0.58476335", "0.5820232", "0.5815936", "0.5807232", "0.5799413", "0.5799208", "0.5777...
0.86430174
0
The active_configs property corresponding to the InteractivePlaceCellConfig obtained by filtering the session. Accessed through the stage.
def pLY2(YKHO): return YKHO.stage.active_configs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsc2(YKHO):\n return list(YKHO.stage.active_configs.keys())", "def fjdr(YKHO):\n if YKHO.mod.knobs.n_configs != 1:\n YKHO.mod.knobs.n_configs = 1\n YKHO.assertTrue(len(YKHO.map.active_configs) == 1)\n YKHO.assertTrue(YKHO.map.active_configs[0] == 'config01')\n YKHO.mod.knobs.n_configs =...
[ "0.6361349", "0.60724103", "0.5527944", "0.54985166", "0.54849964", "0.5455777", "0.54042387", "0.5369496", "0.53409326", "0.5310802", "0.53056604", "0.528986", "0.5289264", "0.52027524", "0.5175396", "0.516749", "0.51288056", "0.5125859", "0.51124644", "0.5081273", "0.496363...
0.74186206
0
Load image and convert image to 3D pixel array
def DZ0a(QMAG): LNo8 = xDSY.imread(QMAG) xDSY.imshow(LNo8) xDSY.show() print('Size of the image is {} KB'.format(round(Hy7s.path.getsize(QMAG) / 1024, 2))) return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cLi7(Ux0P):\n LNo8 = oyIN.asarray(hnIv.open(Ux0P))\n lNai = LNo8.shape\n j1iA = len(lNai)\n assert j1iA == 2 or j1iA == 3\n if j1iA == 2:\n LNo8 = oyIN.expand_dims(LNo8, axis=0)\n else:\n assert lNai[2] == 3 or lNai[2] == 4\n if lNai[2] == 4:\n LNo8 = LNo8[:, :...
[ "0.7332536", "0.70336413", "0.68744236", "0.6862861", "0.6849558", "0.6802284", "0.676675", "0.6642885", "0.6627401", "0.6565374", "0.65609986", "0.65593976", "0.6510876", "0.64931124", "0.64755046", "0.6442606", "0.6426788", "0.6391728", "0.63742554", "0.6368798", "0.6365661...
0.0
-1
Retrieve a 1d array of a single column
def xfPt(YKHO, fvDH: str) -> gyIm: yDqo, hksT = YKHO._get_col_dtype_loc(fvDH) return YKHO._data[yDqo][:, hksT]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pywP(WKvO):\n WKvO = oyIN.atleast_1d(WKvO)\n return WKvO[:, None]", "def iVRZ(YKHO):\n return YKHO.reshape((YKHO.size, 1))", "def NMoC(YKHO, z0q4):\n if z0q4 is None:\n raise ValueError('column_name=None is not valid for column(), use value()')\n iVRZ = YKHO.get_column(z0q4)\n retu...
[ "0.69397074", "0.6873625", "0.6802868", "0.6702818", "0.66716045", "0.65244174", "0.6522415", "0.64482975", "0.63932264", "0.6387682", "0.63806945", "0.63137066", "0.6271284", "0.62676483", "0.6255247", "0.6202583", "0.6202583", "0.6197382", "0.618534", "0.6159223", "0.614969...
0.6907229
1
Convert DataFrame to dictionary of 1dimensional arrays or lists
def MNRr(YKHO, ENzu: str='array') -> cuzp[str, uLKX[gyIm, x1iM]]: if ENzu not in ['array', 'list']: raise ValueError('orient must be either "array" or "list"') nPrm: cuzp[str, uLKX[gyIm, x1iM]] = {} fvDH: str for fvDH in YKHO._columns: ezWE = YKHO._get_column_values(fvDH) if ENzu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qZ_3(jQ3Z):\n return jQ3Z.to_dict(orient='records')", "def TENV(jQ3Z):\n return jQ3Z.to_dict('records')", "def rPLs(jQ3Z):\n return jQ3Z.to_dict('index')", "def MNRr(jQ3Z):\n ZWCE = list(jQ3Z.columns.values)\n M0wk = []\n for d6pt, rdlD in jQ3Z.iterrows():\n cdiC = {}\n fo...
[ "0.7600603", "0.7524144", "0.7251253", "0.7160858", "0.7132188", "0.70843637", "0.70732117", "0.6941504", "0.67829555", "0.67328227", "0.6676021", "0.6546308", "0.6543563", "0.65364176", "0.6516415", "0.6314268", "0.62381935", "0.62234867", "0.6176557", "0.6126979", "0.605869...
0.6186529
18
Does this DataFrame have at least one numeric columns?
def RjZE(YKHO) -> bool: m1c7: fHNa[str] = set(YKHO._data.keys()) return 'i' in m1c7 or 'f' in m1c7 or 'b' in m1c7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def diP9(jQ3Z, AAHb):\n yDqo = jQ3Z.dtypes[AAHb]\n return oyIN.issubdtype(yDqo, oyIN.number)", "def cV7v(nPrm):\n if type(nPrm) == list or type(nPrm) == oyIN.ndarray:\n fvDH = rLdf.Series(nPrm)\n else:\n fvDH = nPrm\n return fvDH.dtype == oyIN.int32 or fvDH.dtype == oyIN.int64 or fvD...
[ "0.7617909", "0.75525457", "0.7391616", "0.69804054", "0.68931645", "0.68915516", "0.6824759", "0.6778813", "0.6688396", "0.6687066", "0.6623517", "0.6604352", "0.658214", "0.6484492", "0.6447109", "0.6410173", "0.6398646", "0.63797784", "0.6375029", "0.63747674", "0.634677",...
0.74242073
2
Does this DataFrame have at least one numeric columns?
def _8Rd(YKHO) -> bool: return bool({'i', 'f'} & YKHO._data.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def diP9(jQ3Z, AAHb):\n yDqo = jQ3Z.dtypes[AAHb]\n return oyIN.issubdtype(yDqo, oyIN.number)", "def cV7v(nPrm):\n if type(nPrm) == list or type(nPrm) == oyIN.ndarray:\n fvDH = rLdf.Series(nPrm)\n else:\n fvDH = nPrm\n return fvDH.dtype == oyIN.int32 or fvDH.dtype == oyIN.int64 or fvD...
[ "0.761545", "0.7549162", "0.74226284", "0.73879397", "0.6978195", "0.68915063", "0.68911004", "0.68223464", "0.6778652", "0.66843873", "0.66843367", "0.6620444", "0.660335", "0.65812534", "0.6444384", "0.6411549", "0.639782", "0.6382429", "0.6373865", "0.6370961", "0.6349382"...
0.64823586
14
Check if DataFrame has 0 total elements. Used before calling many other methods Returns bool
def qiBc(YKHO): return YKHO.size == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LhKT(bOBl):\n return bOBl is not None and bOBl.empty", "def nNs4(ujem, jQ3Z):\n return jQ3Z.count()", "def FBfn(YKHO):\n return YKHO._sum() == 0", "def ZFqT(bOBl):\n if bOBl.iloc[0, 0] == 'No data available':\n return False\n else:\n return True", "def FBfn(YKHO):\n retu...
[ "0.7868982", "0.75395405", "0.7348686", "0.7296043", "0.7278333", "0.7236385", "0.71775657", "0.71577233", "0.7146891", "0.7125111", "0.70522594", "0.70522594", "0.70173335", "0.69990194", "0.69972694", "0.69929105", "0.69927067", "0.6979082", "0.69713223", "0.69713223", "0.6...
0.69107777
31
Returns the integer location of the minimum value of each column When setting `axis` to 'columns', all the nonnumeric/bool columns are dropped first
def WHwV(YKHO, jDK_: str='rows') -> 'DataFrame': return YKHO._stat_funcs('argmin', jDK_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XcNI(YKHO):\n JRC0 = 1000\n LChT = 1000\n G1Hx = len(YKHO.__col_lista)\n for YRbF in range(G1Hx):\n WKvO, LVAh = YKHO.__col_lista[YRbF]\n if WKvO < JRC0:\n JRC0 = WKvO\n if LVAh < LChT:\n LChT = LVAh\n return (JRC0, LChT)", "def min(WKvO, jDK_=None, J...
[ "0.6835697", "0.67511356", "0.63678", "0.63610435", "0.6359795", "0.6336167", "0.63280493", "0.62811816", "0.62805665", "0.62173605", "0.6195147", "0.61911404", "0.6164074", "0.61201364", "0.60715896", "0.6067516", "0.6060003", "0.6019172", "0.6010874", "0.5976058", "0.591949...
0.67838854
1
Computes the quantile of each numeric/boolean column
def aM62(YKHO, jDK_: str='rows', vexM: float=0.5) -> 'DataFrame': if not BfDw.is_number(vexM): raise TypeError('`q` must be a number between 0 and 1') if vexM < 0 or vexM > 1: raise ValueError('`q` must be between 0 and 1') return YKHO._stat_funcs('quantile', jDK_, q=vexM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zhWo(YKHO):\n nPrm = ['1.0', '2.0', '3.0', '4.0']\n jQ3Z = rLdf.Series(nPrm)\n HV8V = wzEN(jQ3Z.name)\n HV8V.update(jQ3Z)\n z39Z = HV8V.profile\n mudm = z39Z['quantiles']\n GxXX = mudm[249]\n tnty = mudm[499]\n yJVA = mudm[749]\n EgVM = [float(ZfUD) for ZfUD in nPrm]\n cIyd = o...
[ "0.6875668", "0.66279334", "0.658389", "0.65147954", "0.6475612", "0.6474807", "0.6441311", "0.64368105", "0.64358675", "0.6349553", "0.6349553", "0.6349553", "0.63279176", "0.63209164", "0.6305109", "0.6270107", "0.6238138", "0.62330556", "0.62299323", "0.6210954", "0.617430...
0.5646735
67
Finds the unique elements of a single column in the order that they appeared
def kcwm(YKHO, vcn7: Union[str, List[str], None]=None, XYXw: bool=False, uZq5: str='first') -> gyIm: if vcn7 is None: vcn7 = YKHO.columns elif isinstance(vcn7, str): YKHO._validate_column_name(vcn7) vcn7 = [vcn7] elif isinstance(vcn7, list): YKHO._validate_column_name_list(vc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcwm(vZqz, r_x0):\n return list(iV5f.unique(vZqz[r_x0]))", "def hNgI(usx6, z0q4):\n hkxX = []\n for rdlD in usx6:\n hkxX.append(rdlD[z0q4])\n hkxX = set(hkxX)\n return hkxX", "def EADW(usx6, fvDH):\n return set([rdlD[fvDH] for rdlD in usx6])", "def hNgI(usx6, z0q4):\n PYV9 = s...
[ "0.7938848", "0.7741369", "0.7546379", "0.7531252", "0.72683793", "0.6905928", "0.68921965", "0.6849923", "0.678093", "0.6674861", "0.66372776", "0.6621372", "0.6596219", "0.6588587", "0.6564882", "0.65234184", "0.6522117", "0.65187514", "0.6506671", "0.650314", "0.6465835", ...
0.0
-1
Checks that the given schema is a tree consisting of nonleaf dictionaries and leaf tuples. This function checks that the input is a tree where nonleaf nodes are represented as dictionaries, and leaf nodes are represented as 2tuples. An AssertionError is thrown if this is not the case.
def NRUa(uPxI): assert type(uPxI) in [dict, tuple], f'Expected a dict or a tuple but got {type(uPxI)}' if isinstance(uPxI, tuple): assert len(uPxI) == 2, f'Expected a tuple with length 2 but got length {len(uPxI)}' if uPxI[1] is not None: assert isinstance(uPxI[1], uPxI[0]), f'{str(u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzCw(YKHO, tk5Y):\n if not isinstance(tk5Y, list):\n wvEv.error('Root object is not a list')\n if tk5Y:\n cpuL = type(tk5Y[0])\n if cpuL not in [list, dict]:\n wvEv.error('First row is a {}, not a list or dictionary'.format(cpuL))\n for ZfUD in tk5Y:\n if...
[ "0.6018993", "0.5960815", "0.59490496", "0.5921413", "0.5835567", "0.5811129", "0.57985985", "0.5785704", "0.5780904", "0.5769729", "0.57682014", "0.5623176", "0.5615052", "0.5588337", "0.5580634", "0.55784935", "0.5560984", "0.55357456", "0.55178094", "0.5516597", "0.5512281...
0.7013083
0
Converts a dictionary object into a SimpleNamespace object.
def rabq(Csk6): nMY2 = qQXR.dumps(Csk6) _63S = qQXR.loads(nMY2, object_hook=lambda WKvO: lakk(**WKvO)) return _63S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P74_(exwG):\n assert isinstance(exwG, lakk)\n return cYo8(exwG)", "def qIAZ(z1Rg):\n U5bT = {}\n Cuyv = (mSrU.Number, oyIN.number, tuple, list, oyIN.ndarray, str)\n for H5ew, wEf2 in z1Rg.__dict__.items():\n if H5ew.startswith('_'):\n continue\n if isinstance(wEf2, wsY...
[ "0.66965634", "0.6586446", "0.61745816", "0.5820868", "0.5588785", "0.5497124", "0.544047", "0.53379846", "0.5212436", "0.513218", "0.5124473", "0.50624585", "0.5001273", "0.493033", "0.49260968", "0.48719987", "0.48711345", "0.4868787", "0.48423168", "0.48276168", "0.4803171...
0.7057479
0
Returns a copy of the default configuration as a SimpleNamespace.
def yDgW(): return Ksij(N8aR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hQBX():\n return jl6g.get_namespace()", "def UD9X(YKHO):\n return None", "def _63S(YKHO, _63S, cKm3=True, qD4B=True):\n return PSrQ(YKHO.root_path, YKHO.get_namespace_view(_63S, cKm3, qD4B))", "def UyKZ(YKHO) -> h8nf[str]:\n return YKHO.schema.namespaces.get('')", "def WmM4(Emd4) -> 'Config...
[ "0.7337241", "0.70990056", "0.6818207", "0.66409296", "0.6517993", "0.64407", "0.63349724", "0.6292653", "0.61350274", "0.60979885", "0.60730165", "0.59729797", "0.5881527", "0.58716327", "0.5858298", "0.5831293", "0.5827198", "0.5827039", "0.58268845", "0.5802596", "0.579417...
0.7270116
1
Returns a string of random characters that is nSize long
def Q_QB(OQWG=20): Zx4H = '' while len(Zx4H) < OQWG: Zx4H = Zx4H + str(tuKI.randint(1, 9)) return Zx4H
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHHU(YKHO, zNig, gLiZ=None):\n return ''.join((tuKI.choice(gLiZ or r8SH) for bGrB in range(zNig)))", "def mkg7(zNig, gLiZ=vIwR.ascii_uppercase + vIwR.digits):\n return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig)))", "def EIGR(zNig=16):\n return ''.join(tuKI.SystemRandom().choices(vIwR.ascii...
[ "0.7416506", "0.7377515", "0.7120204", "0.7005102", "0.69903386", "0.6920148", "0.68554103", "0.685463", "0.68315196", "0.68166023", "0.6798766", "0.6795226", "0.67702055", "0.67501986", "0.6665933", "0.666192", "0.66406", "0.66365236", "0.66230744", "0.66174483", "0.66052747...
0.82579064
0
Informs the backend of the status of a request if there's a Pub/Sub topic.
def O4aY(Ol8d, ayrW, som_): if som_.get('backend_topic'): rlUa = c6QV.full_topic_name(som_['backend_project'], som_['backend_topic']) azoT = {xC3W['key']: xC3W['value'] for xC3W in som_['backend_attributes']} azoT['hostname'] = ayrW c6QV.publish(rlUa, Ol8d, azoT) Wbxz.pubsub_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BZiq(QePW, geh0):\n if QePW.get('pubsub_topic'):\n c6QV.publish(c6QV.full_topic_name(QePW['pubsub_project'], QePW['pubsub_topic']), qQXR.dumps(geh0), {})\n Wbxz.pubsub_messages_sent.increment(fields={'target': 'lessee'})", "def blQf(x0hE, ldlt, x1fj, ay2w):\n G9jH.info('Topic successfully...
[ "0.63338625", "0.63260806", "0.63119763", "0.62039757", "0.61899084", "0.61565274", "0.6138162", "0.6047553", "0.59942424", "0.5939452", "0.58582336", "0.58457243", "0.5782096", "0.5734515", "0.57171786", "0.57130694", "0.5675675", "0.5656955", "0.5639477", "0.5637029", "0.56...
0.50725275
100
Informs the lessee of the status of a request if there's a Pub/Sub topic.
def BZiq(QePW, geh0): if QePW.get('pubsub_topic'): c6QV.publish(c6QV.full_topic_name(QePW['pubsub_project'], QePW['pubsub_topic']), qQXR.dumps(geh0), {}) Wbxz.pubsub_messages_sent.increment(fields={'target': 'lessee'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def blQf(x0hE, ldlt, x1fj, ay2w):\n G9jH.info('Topic successfully subcribed with QoS: %s' % ay2w)", "def l5x4(x0hE):\n x0hE.publish(GPtr.topic_get, payload=AyLP())", "def uiXI(YKHO) -> None:\n try:\n RBVb, x1fj = YKHO.mqttc.publish(YKHO.config.status_topic, qQXR.dumps(YKHO.status), qos=0, retai...
[ "0.6285326", "0.62276906", "0.62162524", "0.6176906", "0.6041007", "0.5997584", "0.59943396", "0.59927124", "0.5843037", "0.5799533", "0.5702484", "0.56841666", "0.5650153", "0.5642217", "0.5642217", "0.5608717", "0.55906945", "0.5588466", "0.5583844", "0.55807006", "0.557699...
0.6650253
0
Computes the concretized scalar lower bound value given eps and the lower bound weights
def KYpi(YKHO, skyf: torch.Tensor): return -YKHO.eps * ht2j.norm(skyf, p=YKHO.q, dim=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IDsK(YKHO) -> float:\n ...", "def IMb4(YKHO, LSh8, CN9P):\n if not YKHO.lower_bounds is None:\n return YKHO.lower_bounds\n VLpm = oyIN.clip(YKHO.coeffs, -epAf.inf, 0)\n jWLi = oyIN.clip(YKHO.coeffs, 0, epAf.inf)\n YKHO.lower_bounds = jWLi.dot(LSh8) + VLpm.dot(CN9P) + YKHO.const\n ret...
[ "0.61943287", "0.61600316", "0.5750524", "0.55643916", "0.55425125", "0.55246836", "0.5498865", "0.5488924", "0.54560125", "0.54560125", "0.54421777", "0.538863", "0.53870505", "0.534808", "0.53361654", "0.5330524", "0.53239787", "0.53096724", "0.530531", "0.5275653", "0.5253...
0.5518538
6
Computes the concretized scalar upper bound value given eps and the upper bound weights
def YU0q(YKHO, Hzot: torch.Tensor): return YKHO.eps * ht2j.norm(Hzot, p=YKHO.q, dim=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BfCx(YKHO, _mSQ, wUtv, Cciv, eTFg, gUAk, T639=False):\n PfvF = -_mSQ[0].backward(Cciv.mus[0])\n nJ9F = ht2j.where(PfvF >= 0, eTFg[0].unsqueeze(1), gUAk[0].unsqueeze(1))\n mmRm = BfDw.bdot(nJ9F, PfvF)\n if T639:\n YKHO.bounds_primal = nJ9F\n else:\n del nJ9F\n del PfvF\n for _...
[ "0.6219264", "0.61677694", "0.5948774", "0.58611894", "0.57886773", "0.5741874", "0.5510578", "0.550674", "0.546447", "0.5463563", "0.54462457", "0.544002", "0.5426874", "0.54235315", "0.54189694", "0.5406498", "0.54022044", "0.5401791", "0.5396856", "0.53805375", "0.53770906...
0.0
-1
Break a list to chunks according to chunk_size.
def MvmE(YKHO, QTJB, ztRo): nJNG = [] u54L = len(QTJB) if u54L > ztRo: sL7f = ztRo - 1 Gqqd, VlDb = divmod(u54L, sL7f) if VlDb: Gqqd += 1 for B2Dn in range(Gqqd): nJNG.append(QTJB[sL7f * B2Dn:sL7f * (B2Dn + 1)]) else: nJNG.append(QTJB) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hXED(list, ztRo):\n for YRbF in range(0, len(list), ztRo):\n yield list[YRbF:YRbF + ztRo]", "def eHxA(YKHO, TWcG, zNig):\n for YRbF in range(0, len(TWcG), zNig):\n yield TWcG[YRbF:YRbF + zNig]", "def _Qd3(a7r8, ztRo):\n assert a7r8 is not None\n for YRbF in range(0, len(a7r8), ztR...
[ "0.87854344", "0.842914", "0.83943474", "0.8222609", "0.8187535", "0.8130914", "0.81014895", "0.8093639", "0.8016198", "0.7975158", "0.7921965", "0.7853733", "0.7843604", "0.78325725", "0.7827067", "0.77705264", "0.77673966", "0.77620757", "0.76705074", "0.7603887", "0.756765...
0.7085699
57
Convert sub list of netblocks to string.
def RzHf(YKHO, SO0t): U2Gw = [] for rpVW in SO0t: if rpVW: U2Gw.append(','.join((str(lamO) for lamO in rpVW))) else: U2Gw.append('any') return U2Gw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO) -> str:\n taNp = 'Node ' + YKHO.node_id + ' Blockchain: \\n'\n E5BI = g760.deque()\n for XkN1 in YKHO.blockchain:\n E5BI.append(XkN1)\n for YRbF in range(0, len(E5BI)):\n XkN1 = E5BI.pop()\n taNp += '-' * 75 + '\\n'\n for G1Hx, Ty9i in XkN1.__dict__.items():\n...
[ "0.60686004", "0.5843217", "0.5788446", "0.57813483", "0.57723945", "0.57723945", "0.57512295", "0.5731575", "0.5707351", "0.57071465", "0.5661783", "0.56284726", "0.55869347", "0.55869347", "0.55869347", "0.5576508", "0.55663514", "0.5541219", "0.5511762", "0.54916674", "0.5...
0.74932075
0
Set the metrics stats name.
def vhVm(YKHO, Tu9p): if YKHO.stats_name == Tu9p: return if Tu9p in m_03._Stats.stats: raise ValueError('"{0}" already exists in stats.'.format(Tu9p)) eQSh = m_03._Stats.stats[YKHO.stats_name] del m_03._Stats.stats[YKHO.stats_name] YKHO.stats_name = Tu9p m_03._Stats.stats[YKHO.st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w_Lg(YKHO, w_Lg):\n YKHO._stat_name = w_Lg", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def S55X(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP", "def WZ...
[ "0.7355427", "0.67741555", "0.6728167", "0.6719688", "0.67039317", "0.67039317", "0.6700648", "0.66976804", "0.6601265", "0.65712816", "0.65712816", "0.65712816", "0.65712816", "0.65712816", "0.6567156", "0.6567156", "0.6561908", "0.6549536", "0.6481848", "0.6470287", "0.6456...
0.7620443
0
Add patterns to the ruler.
def BRgY(YKHO, b6H_: Iterable[Dict[str, Any]]) -> None: try: HFkI = YKHO.nlp.pipe_names.index(YKHO.name) pggo = [bCYe for bCYe in YKHO.nlp.pipe_names[HFkI + 1:]] except ValueError: pggo = [] with YKHO.nlp.disable_pipes(pggo): qfUi = [] VoRl = [] YT8R = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BRgY(YKHO, b6H_: Iterable[AttributeRulerPatternType]) -> None:\n for XP5J in b6H_:\n YKHO.add(**XP5J)", "def U_00(amNS: SpaczzRuler, b6H_: List[Dict[str, Any]]) -> None:\n assert len(amNS) == len(b6H_)", "def CIzs(YKHO, mXDZ):\n YKHO.patterns.append(mXDZ)", "def amNS(K9NE: Language, b6H_:...
[ "0.7300467", "0.6902597", "0.6730757", "0.64415747", "0.6426541", "0.6376736", "0.6208098", "0.61649734", "0.6056466", "0.58568573", "0.5804086", "0.57879376", "0.57579744", "0.574183", "0.5679537", "0.5603653", "0.5584647", "0.5564505", "0.5555327", "0.5533132", "0.5481157",...
0.5710875
14
Store those words only in cadidate_pos
def o9hH(YKHO, A97Q, Exp3, LSh8, INAj, Ff4R): Rhv4 = [] for _dZy in A97Q.sents: P3xj = [] uz_a = [] for eOtH in _dZy: uz_a.append(eOtH.text) if eOtH.pos_ in Exp3 and eOtH.is_stop is False: if LSh8 is True: P3xj.append(eOtH.text....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q9B3(YKHO):\n vC9B = len(YKHO._words)\n for YRbF in range(vC9B):\n YKHO._words[YRbF]['pos'] = kdPk([YKHO._words[YRbF]['word']])[0][1]", "def o9hH(YKHO, A97Q, Exp3, LSh8):\n Rhv4 = []\n for _dZy in A97Q.sents:\n P3xj = []\n for eOtH in _dZy:\n if eOtH.pos_ in Exp3 a...
[ "0.6313715", "0.6076473", "0.6032558", "0.60120255", "0.5993958", "0.5989751", "0.5950847", "0.5927919", "0.57849723", "0.57830197", "0.57597053", "0.5696669", "0.56333035", "0.56061155", "0.5596007", "0.55601776", "0.55532134", "0.5547649", "0.552179", "0.55212325", "0.55193...
0.5436337
28
Finds & Removes empty comments from the tree and assigns children of empty comments to their parents. If no parents are found, the parent of children of empty comments, is set as the root of the tree. If any comment has empty comments as its children, they are removed.
def InxJ(J_Es: dict, LVbu: List[str]): LCbl = {} for id in LVbu: LCbl[id] = J_Es['comments'][id] J_Es['comments'].pop(id) for id, aM_I in J_Es['comments'].items(): H7rZ = aM_I['parent_id'] while H7rZ in LVbu: H7rZ = LCbl[H7rZ]['parent_id'][3:] aM_I['parent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W9tI(YKHO, J_Es: dict):\n J_Es = YKHO.remove_redundant(J_Es)\n J_Es['selftext'] = YKHO.clean_text(J_Es['selftext'])\n J_Es['title'] = YKHO.clean_text(J_Es['title'])\n LVbu = []\n for id, aM_I in J_Es['comments'].items():\n if 'body' in aM_I and 'parent_id' in aM_I:\n aM_I['body...
[ "0.59740955", "0.5822621", "0.57353616", "0.5548554", "0.5422239", "0.5330405", "0.53220683", "0.5309191", "0.52991927", "0.52960855", "0.5252085", "0.52422625", "0.52383316", "0.5233206", "0.52222097", "0.519152", "0.5096152", "0.50871676", "0.5070019", "0.506332", "0.502927...
0.75805646
0
Returns a new tree, consisting of first few comments, specified by ids and the OP's text & title.
def NlsQ(J_Es, A07C): oYE5 = {} oYE5['selftext'] = J_Es['selftext'] oYE5['title'] = J_Es['title'] oYE5['id'] = J_Es['id'] oYE5['comments'] = {} for id in A07C[1:]: oYE5['comments'][id] = J_Es['comments'][id] return oYE5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g7eZ(H7rZ):\n return SaCD(root_id=H7rZ)", "def Ew29(K7Em):\n hupd = []\n njMB = []\n w213 = vPin.submission(id=K7Em)\n print(w213.num_comments)\n print(w213.shortlink)\n w213.comment_sort = 'confidence'\n w213.comments.replace_more(limit=1)\n for JZ1r in w213.comments.list():\n ...
[ "0.59989", "0.5877851", "0.578554", "0.57389486", "0.5681951", "0.5669059", "0.56605774", "0.5642547", "0.5640219", "0.5624629", "0.55321985", "0.5518495", "0.55057955", "0.5503396", "0.5496973", "0.53077596", "0.5306573", "0.5298361", "0.52897197", "0.5277251", "0.5265725", ...
0.68043685
0
Adds entire comments subtree rooted at id in tree, to branch_tree.
def ZNJs(YKHO, J_Es, oYE5, id): if id in J_Es['comments']: oYE5['comments'][id] = J_Es['comments'][id] for bLT7 in oYE5['comments'][id]['replies']: YKHO.add_children(J_Es, oYE5, bLT7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NlsQ(J_Es, A07C):\n oYE5 = {}\n oYE5['selftext'] = J_Es['selftext']\n oYE5['title'] = J_Es['title']\n oYE5['id'] = J_Es['id']\n oYE5['comments'] = {}\n for id in A07C[1:]:\n oYE5['comments'][id] = J_Es['comments'][id]\n return oYE5", "def Of3V(CBIr, ZGx0, aM_I):\n from browse.m...
[ "0.65695316", "0.6120507", "0.60524553", "0.59299034", "0.5469549", "0.5454765", "0.54316235", "0.54105633", "0.53070396", "0.5293187", "0.52310574", "0.5178518", "0.50865406", "0.5083604", "0.50769883", "0.50617516", "0.5028316", "0.5026231", "0.5018051", "0.5013875", "0.497...
0.7934601
0
Calculate the symmetric KL divergence between two spectral densities j = sum( u / v + v / u 2)
def HdoW(P6bq, Ty9i): exwG = len(Ty9i) r845 = 1 / exwG * (P6bq / Ty9i + Ty9i / P6bq - 2).sum() return r845
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tPz6(ox54, HqmB, xUwc, EhIg, OJwV=0.0001):\n Fyjc = {H5ew: (1 - EhIg) * HqmB.get(H5ew, 0) + EhIg * xUwc.get(H5ew, OJwV) for H5ew in ox54}\n scUA = sum([ox54[H5ew] * epAf.log(ox54[H5ew] / Fyjc[H5ew]) for H5ew in ox54])\n return scUA", "def Zxnm(Jn25, V31r):\n scUA = 0\n j93S = sum([Jn25[BWXx] f...
[ "0.6990029", "0.693879", "0.6901858", "0.6853633", "0.68325394", "0.68229544", "0.6752696", "0.6665913", "0.6631767", "0.6592732", "0.6571921", "0.6566313", "0.65197635", "0.65132886", "0.6487811", "0.6480615", "0.64803153", "0.6441547", "0.6406064", "0.64028364", "0.63934886...
0.63460296
28
Tests for extension argument. Remove/replace extensions in file
def QOK5(tGEA, at9y, aPCt): qIxc = wvEv.parse_args([*tGEA]) KUnM = yiWQ.initfilters(qIxc) e1vZ = yiWQ.get_renames(at9y, KUnM, qIxc.extension, qIxc.raw) assert e1vZ == aPCt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTwE(CBZq):\n if isinstance(CBZq, str):\n YBcr: str = CBZq\n CBZq = YBcr.replace('.', '')\n return CBZq", "def AwHx(YBcr):\n if not YBcr.startswith('.'):\n return '.{}'.format(YBcr)\n return YBcr", "def p77r(uRP3, YBcr):\n Uqbu = uRP3.split('.')\n if len(Uqbu) == 1 or...
[ "0.7550194", "0.7269844", "0.7131626", "0.699242", "0.69915247", "0.6886055", "0.6861724", "0.68613565", "0.6780371", "0.6731657", "0.669829", "0.66577303", "0.6624627", "0.66243935", "0.66123915", "0.65207916", "0.6500771", "0.64628214", "0.64541304", "0.6453924", "0.6387144...
0.6331891
22
Fixture for fixed tmp_path_factory
def Vb5F(DPva): Kwmb = DPva.mktemp('') for H5ew, wEf2 in Ntyb.fs1.items(): mJeH = Kwmb / H5ew mJeH.mkdir() for Ty9i in wEf2: eHNT = mJeH / Ty9i eHNT.write_text(Ty9i) return Kwmb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F2hO(HSm4) -> GkAb:\n Bm71 = GkAb(HSm4.mktemp('data'))\n yield Bm71\n RDuA.rmtree(str(Bm71))", "def gN37(HSm4):\n\n def PEX4(Ux0P):\n FYKK = HSm4.mktemp('data').join(Ux0P)\n return FYKK\n return PEX4", "def VkQH(HSm4) -> GkAb:\n Bm71 = GkAb(HSm4.mktemp('out'))\n yield Bm7...
[ "0.7099243", "0.6951365", "0.6858074", "0.67587894", "0.6584498", "0.6538954", "0.6462802", "0.6441197", "0.6400856", "0.6387842", "0.637641", "0.63724923", "0.63446665", "0.6327275", "0.63223827", "0.6310343", "0.6308105", "0.630214", "0.6284065", "0.6282678", "0.6280282", ...
0.57408875
79
Checks if the item is in the cache.
def bNGt(YKHO, ZfUD): return ZfUD in YKHO.cache
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KwDD(YKHO, H5ew):\n return H5ew in YKHO._cache", "def FYXB(YKHO, H5ew):\n return H5ew in YKHO.cache", "def w13W(YKHO, xDcj):\n H5ew = fCxp(xDcj)\n Ylbp = YKHO.memcache.get(H5ew)\n if Ylbp and type(Ylbp) is int:\n return True\n return False", "def NVNH(YKHO):\n return Hy7s.path...
[ "0.7756351", "0.76857334", "0.7614137", "0.7585272", "0.7513056", "0.7501666", "0.7498344", "0.7407451", "0.74013144", "0.73642147", "0.7254888", "0.7251837", "0.7248747", "0.7248747", "0.71668774", "0.7158434", "0.7116147", "0.71078867", "0.7043065", "0.7009456", "0.6980068"...
0.88010764
0
Converts a label to an ID. Removes all symbols and join as CamelCase.
def bOBW(UXqs): Dokz = ''.join((Z9rn if Z9rn.isalnum() else ' ' for Z9rn in UXqs)) return ''.join((mWFP.capitalize() if mWFP[0].islower() else mWFP for mWFP in Dokz.split()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pLAs(YKHO, hbFX):\n return hbFX", "def pLAs(YKHO, hbFX):\n return hbFX", "def B7A4(YKHO, UXqs: str, HPpq: Union[str, None]) -> str:\n if isinstance(HPpq, str):\n UXqs = '{}{}{}'.format(UXqs, YKHO.ent_id_sep, HPpq)\n return UXqs", "def pLAs(YKHO):\n return ''", "def Wajm(YKHO, UXqs...
[ "0.7097293", "0.70629853", "0.6827276", "0.6749341", "0.66228485", "0.6446576", "0.6433326", "0.63861096", "0.6367814", "0.63268685", "0.630071", "0.62908566", "0.6234985", "0.6213996", "0.62030596", "0.6202348", "0.6195715", "0.61877364", "0.61877364", "0.6180449", "0.615920...
0.8775633
0
Returns True if other is an ancestor of this test (or is that test itself).
def y7dV(YKHO, Elif): return YKHO == Elif or (YKHO.parent and YKHO.parent.HasAncestor(Elif))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hdkC(YKHO, Elif):\n if Elif is YKHO:\n return True\n elif hasattr(Elif, 'base'):\n return YKHO.is_ancestor(Elif.base)\n else:\n return False", "def rLVo(YKHO, Elif):\n return Elif.is_ancestor(YKHO)", "def naOY(YKHO, Elif):\n if YKHO.name == Elif.name:\n return Tru...
[ "0.87252444", "0.7472244", "0.7075495", "0.7023215", "0.6882201", "0.68549466", "0.68061453", "0.6715299", "0.6651208", "0.6608628", "0.659701", "0.6546176", "0.6493069", "0.64815205", "0.63963306", "0.6394533", "0.6335261", "0.63313156", "0.62963057", "0.62810576", "0.627620...
0.8287156
1
Returns the current test state from the state instance.
def OEQv(YKHO): return ybiG.FromDictOrObject(YKHO.root.state_instance.GetTestState(YKHO.path))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__stat...
[ "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895", "0.76212895"...
0.8547658
0
Returns true if this node is a test group.
def Uel2(YKHO): return isinstance(YKHO, gW0e)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kagf(YKHO):\n return YKHO._is_group", "def Kagf(Oa1e, Q6kx):\n if Q6kx not in Oa1e.nodes():\n print('Not a node in the graph')\n return False\n elif Oa1e.node[Q6kx]['type'] == 'group':\n return True\n else:\n return False", "def YR78(YKHO, _63S=None):\n try:\n ...
[ "0.72172475", "0.7139727", "0.7096164", "0.69602937", "0.68134856", "0.6761949", "0.6507491", "0.63584894", "0.6203636", "0.614735", "0.61234236", "0.5994723", "0.59826106", "0.5963674", "0.59611243", "0.5931166", "0.592078", "0.5870403", "0.58671546", "0.58316267", "0.581815...
0.7915062
0
Returns this node and children in a dictionary suitable for YAMLification.
def anFX(YKHO, n9tp=None): Q6kx = {'id': YKHO.id or None, 'path': YKHO.path or None} if not YKHO.subtests and n9tp: QTBn = n9tp[YKHO.path] Q6kx['status'] = QTBn.status Q6kx['count'] = QTBn.count Q6kx['error_msg'] = QTBn.error_msg or None if YKHO.subtests: Q6kx['subtes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n\n def O4bD(Q6kx):\n if len(Q6kx.children) == 0:\n return Q6kx.info\n else:\n Yd6X = Q6kx.info.copy()\n Yd6X['children'] = []\n for Z9rn in Q6kx.children:\n Yd6X['children'].append(O4bD(Z9rn))\n return Yd6X\n ...
[ "0.7082426", "0.70576924", "0.7001949", "0.69485635", "0.6759389", "0.67400837", "0.6666809", "0.66499925", "0.65858364", "0.65655017", "0.6533309", "0.65195733", "0.6475326", "0.6423271", "0.6357417", "0.63087386", "0.6294487", "0.622587", "0.61992675", "0.61903894", "0.6187...
0.0
-1
Get the placeholder assignments after normalize.
def J8oL(YKHO) -> cuzp[str, str]: return YKHO._normalizer.get_placeholders()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8HN(YKHO):\n YKHO.support_pruning()\n return {Ty9i: YKHO.curr_domains[Ty9i][0] for Ty9i in YKHO.variables if 1 == len(YKHO.curr_domains[Ty9i])}", "def NYDs(YKHO):\n im04 = dict()\n for EtM5 in YKHO.stages:\n for mWFP, DhM7 in EtM5.placeholders:\n im04[mWFP] = DhM7\n return i...
[ "0.6546146", "0.6443735", "0.643643", "0.60305905", "0.5791004", "0.5734934", "0.56722754", "0.56198215", "0.5552239", "0.5546004", "0.5520707", "0.5515866", "0.54954314", "0.5477008", "0.5442606", "0.54105896", "0.54082495", "0.5402434", "0.53924626", "0.5326455", "0.5296835...
0.5926346
4
Returns true iff we have matching subordinate endpoint.
def j_II(YKHO, vNCm: int, XSoh: USBDirection) -> C_vn: return YKHO.get_endpoint(vNCm, XSoh) is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mDyG(YKHO, w2IS):\n return YKHO.endpoints.filter(pk=w2IS.pk).exists()", "def OLM3(Emd4):\n return Emd4.__subclasses__() == []", "def sjXf(YKHO, AwCK):\n Ayfi = sum((AwCK.distance_to(XP5J) for XP5J in YKHO.endpoints))\n return abs(Ayfi - YKHO.length()) < 1e-07", "def Esm8(yvY1: nx.Graph, Q6kx:...
[ "0.7355637", "0.6628543", "0.6609796", "0.64822406", "0.6400003", "0.63922644", "0.6301188", "0.6215098", "0.6166197", "0.61161476", "0.6056211", "0.60494876", "0.60310125", "0.6029338", "0.60259056", "0.59951144", "0.5992684", "0.5965913", "0.5962544", "0.5925459", "0.590480...
0.6145616
9
Return True if the lang param is present and URL isn't exempt.
def bDyn(YKHO, QePW): if 'lang' not in QePW.GET: return False return not any((QePW.path.endswith(bD7m) for bD7m in YKHO.exempt_urls))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EzT1(DuqQ):\n if DuqQ in HKpY.keys():\n return True", "def vVaW(YKHO, mWFP, l2rD, Z5T9, pfVt):\n if l2rD == 'en' and (not pfVt) or Z5T9 or (not '.html' in mWFP) or (not Z5T9 and (not l2rD)):\n return True", "def vVaW(YKHO, mWFP, l2rD, Z5T9, pfVt):\n if l2rD == 'en' and (not pfVt) or ...
[ "0.7323595", "0.64322007", "0.64322007", "0.6125556", "0.6123799", "0.61120695", "0.5972247", "0.5830462", "0.5822171", "0.5816378", "0.58163774", "0.58098245", "0.5784358", "0.57709974", "0.5706111", "0.56920993", "0.56920993", "0.5665931", "0.5637", "0.5608741", "0.5605823"...
0.7540742
0
Compare one element of three cards to determine if they are all the same, or all different.
def O6Ku(YKHO, iCiv, nNr0, LJX8, U6D_): TP50 = iCiv[U6D_] fHZS = nNr0[U6D_] Q28k = LJX8[U6D_] if TP50 == fHZS and fHZS == Q28k or (TP50 != fHZS and TP50 != Q28k and (fHZS != Q28k)): return 1 return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VWBt(YKHO, khoC):\n if len(khoC) != 3:\n return False\n kUBT = 0\n iCiv = khoC[0][1]\n nNr0 = khoC[1][1]\n LJX8 = khoC[2][1]\n kUBT += YKHO.compare_element(iCiv, nNr0, LJX8, 'shape')\n kUBT += YKHO.compare_element(iCiv, nNr0, LJX8, 'colour')\n kUBT += YKHO.compare_element(iCiv, n...
[ "0.75835973", "0.6676691", "0.6629698", "0.66104394", "0.65019184", "0.6489222", "0.6435462", "0.6434684", "0.64326954", "0.6394481", "0.63527066", "0.63523954", "0.6340301", "0.6329381", "0.6308832", "0.6259174", "0.62185717", "0.6159217", "0.61026245", "0.6102356", "0.60657...
0.85215586
0
Parse an invalid version.
def FYZF(YKHO): DpZH = CRzz.parse_version('This is not a version number') YKHO.assertEqual(moxu('0'), DpZH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MSjf(DpZH):\n try:\n return Qinn.parse(DpZH)\n except (ValueError, TypeError):\n bo34.debug('%s is not a valid version', DpZH)\n return {}", "def BvuR(DpZH):\n if DpZH is None:\n raise ValueError('sbe:messageSchema/@version is required')\n return int(DpZH)", "def gAH...
[ "0.7375384", "0.6872092", "0.68124604", "0.6808332", "0.67721593", "0.6753474", "0.672828", "0.66914576", "0.66489553", "0.6632933", "0.6619009", "0.64824045", "0.64452106", "0.6406234", "0.6389749", "0.6317323", "0.61865604", "0.615476", "0.6128976", "0.6109858", "0.6077586"...
0.8135235
0
Test that debt target is not expired when a new issue is added.
def WRyb(YKHO): D3vS = YKHO.measurement(YKHO.metric(accept_debt=True, debt_target='100', issue_ids=['FOO-41', 'FOO-42']), count={'debt_target': '100'}, issue_status=[{'status_category': 'done', 'issue_id': 'FOO-41'}]) YKHO.assertFalse(D3vS.debt_target_expired())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rg1J(YKHO):\n D3vS = YKHO.measurement(YKHO.metric(accept_debt=True, debt_target='100', issue_ids=['FOO-40']), count={'debt_target': '100'}, issue_status=[{'status_category': 'done', 'issue_id': 'FOO-40'}])\n YKHO.assertTrue(D3vS.debt_target_expired())", "def zm0T(YKHO):\n D3vS = YKHO.measurement(YKH...
[ "0.7949988", "0.77672803", "0.6973192", "0.67723477", "0.6414009", "0.63958603", "0.63873535", "0.63640124", "0.6339702", "0.6339396", "0.6310996", "0.62400395", "0.62146246", "0.6095299", "0.6093503", "0.6028911", "0.6008512", "0.60053307", "0.5999598", "0.5998366", "0.59949...
0.85307115
0
Return True if wallet is greater than or equal to fee, otherwise False
def TXqC(YKHO, woha): return YKHO.wallet >= woha
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6Ui(YKHO, Z5kt):\n if Z5kt > YKHO.get_balance():\n return False\n else:\n return True", "def U6Ui(YKHO, Z5kt):\n if abs(Z5kt) > YKHO.get_balance():\n return False\n else:\n return True", "def ED0L(YKHO, Z5kt):\n wMl7 = YKHO.get_balance_amount()\n if wMl7 < Z5k...
[ "0.75113904", "0.7412217", "0.68767715", "0.6752253", "0.6727848", "0.65802723", "0.6490926", "0.6485122", "0.642794", "0.6395635", "0.6267105", "0.6192457", "0.6117113", "0.6047069", "0.5999659", "0.599221", "0.59856784", "0.5965764", "0.59428436", "0.5935922", "0.58901346",...
0.75111663
1
Helper function to transform the tip pose given in the world frame to the eef pose.
def TKh6(YKHO, shtX: Union[tuple, list, np.ndarray], MTKo=None): SjjZ = YKHO._pose_transform(shtX, YKHO.tTe, premultiply=False) if MTKo == 'tuple' or (MTKo is None and isinstance(shtX, (tuple, list))): SjjZ = l8dQ(SjjZ) return SjjZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LZJf(YKHO):\n RJhN = uu_J(YKHO.body, YKHO.EEF_LINK_INDEX)\n qVyh = fsX3(RJhN)\n RJhN = uu_J(YKHO.body, YKHO.TIP_LINK_INDEX)\n LMua = fsX3(RJhN)\n YKHO.eTt = oyIN.matmul(oyIN.linalg.inv(qVyh), LMua)\n YKHO.tTe = oyIN.linalg.inv(YKHO.eTt)", "def kgnd(YKHO):\n while True:\n try:\n ...
[ "0.72945035", "0.65058833", "0.64089745", "0.6276959", "0.59890205", "0.59792405", "0.59292626", "0.5884658", "0.5834132", "0.5765365", "0.575814", "0.57575226", "0.56921804", "0.56745374", "0.5572295", "0.5558999", "0.55432874", "0.554111", "0.55213577", "0.55141914", "0.549...
0.62756467
4
Evolve a wavefunction by u generated from a 1body Hamiltonian.
def H2JW(QBED: Wavefunction, P6bq: np.ndarray, gfr8='alpha') -> SbS4: if gfr8 == 'alpha': WTkW = 0 elif gfr8 == 'beta': WTkW = 1 else: raise ValueError('Bad section variable. Either (alpha) or (beta)') if P6bq.shape[0] != QBED.norb(): raise ValueError('unitary is not spe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azfQ(JDVW):\n return lambda KkY2: (KkY2 - JDVW) / T4tH + yvY1((KkY2 + JDVW) / 2)", "def eNU7(JDVW):\n Sedy = oyIN.dot(oyIN.eye(exwG, exwG), 1.0 / T4tH)\n o6bB = oyIN.dot(oyIN.eye(exwG, exwG), 2)\n return lambda EcVT: Sedy + oyIN.dot(Lynk(oyIN.dot(EcVT + JDVW, 1.0 / 2)), o6bB)", "def SKwf(P6bq, ...
[ "0.6467316", "0.6446378", "0.6401784", "0.61282057", "0.6037421", "0.6002786", "0.59337413", "0.5880899", "0.57902235", "0.5699885", "0.5611269", "0.5594718", "0.55604005", "0.55227745", "0.5522105", "0.5507801", "0.54964584", "0.5463609", "0.5440256", "0.54399383", "0.543667...
0.53165406
27
Evolve a wavefunction by u generated from a 1body Hamiltonian. Evolve both alpha and beta sectors.
def sbo4(QBED: Wavefunction, P6bq: np.ndarray) -> SbS4: QBED = H2JW(QBED, P6bq, sector='alpha') QBED = H2JW(QBED, P6bq, sector='beta') return QBED
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2JW(QBED: Wavefunction, P6bq: np.ndarray, gfr8='alpha') -> SbS4:\n if gfr8 == 'alpha':\n WTkW = 0\n elif gfr8 == 'beta':\n WTkW = 1\n else:\n raise ValueError('Bad section variable. Either (alpha) or (beta)')\n if P6bq.shape[0] != QBED.norb():\n raise ValueError('unita...
[ "0.65174896", "0.6153714", "0.6062043", "0.59139585", "0.5871363", "0.58057433", "0.57568526", "0.5681716", "0.56711286", "0.5632287", "0.56263644", "0.5542241", "0.547151", "0.5471453", "0.545643", "0.540714", "0.53245777", "0.52850854", "0.52847314", "0.5257687", "0.5251624...
0.642393
1
Evolve a wavefunction by u generated from a 1body Hamiltonian.
def tWtn(QBED: Wavefunction, P6bq: np.ndarray) -> SbS4: HJh3, IjIm = HfYF(P6bq.copy()) yvT9 = jth9.deepcopy(QBED) for gEmA in HJh3: for yqyW in gEmA: YRbF, r845, q7In, rVnq = yqyW if not oyIN.isclose(rVnq, 0): khtY = lSki.FermionOperator(((r845, 1), (r845, 0))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azfQ(JDVW):\n return lambda KkY2: (KkY2 - JDVW) / T4tH + yvY1((KkY2 + JDVW) / 2)", "def eNU7(JDVW):\n Sedy = oyIN.dot(oyIN.eye(exwG, exwG), 1.0 / T4tH)\n o6bB = oyIN.dot(oyIN.eye(exwG, exwG), 2)\n return lambda EcVT: Sedy + oyIN.dot(Lynk(oyIN.dot(EcVT + JDVW, 1.0 / 2)), o6bB)", "def SKwf(P6bq, ...
[ "0.64692736", "0.64468443", "0.6401622", "0.6037062", "0.60054755", "0.5934396", "0.58831614", "0.5790353", "0.569961", "0.5614113", "0.5595035", "0.5561915", "0.55225676", "0.55220073", "0.55087775", "0.5496162", "0.5465592", "0.54431665", "0.54405963", "0.5436692", "0.54333...
0.612707
3
return a visual representation of the UserPersona as String. The default is " "
def jeLr(YKHO): SQ3m = [] YKHO.lastname and SQ3m.append(YKHO.lastname) YKHO.firstname and SQ3m.append(YKHO.firstname) len(SQ3m) == 0 and SQ3m.append(YKHO.userid) return ' '.join(SQ3m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.user_id) + ': ' + str(YKHO.user_name) + ': ' + str(YKHO.user_email)", "def wHJl(YKHO):\n return '\\n<User ID: {} Name: {} {}>\\n'.format(YKHO.user_id, YKHO.fname, YKHO.lname)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", ...
[ "0.74376816", "0.7296865", "0.7240386", "0.7240386", "0.7240386", "0.7240386", "0.7240386", "0.72331566", "0.71973366", "0.7181557", "0.71806985", "0.7167214", "0.7128597", "0.71202266", "0.7118662", "0.71117634", "0.7108211", "0.710078", "0.710078", "0.710078", "0.7099329", ...
0.0
-1
Return a cryptographically random string.
def BsbL(): qGd9 = 'ifh2847fhsn"lqOEYd@#Djh(&' hash = IMHX.new(qGd9) hash.update(str(qcWV.utcnow())) return hash.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KpEQ():\n return ''.join(QMfv(rU7A(32)).decode('utf-8'))", "def e7Tf():\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(16)))", "def tEgU():\n return kxTZ().hex[:6].upper()", "def d4SM(len):\n return WR89.urlsafe_b64encode(Hy7s.urandom(len))[0:len]", "def...
[ "0.8494374", "0.7967045", "0.77649623", "0.77613014", "0.7576298", "0.7574232", "0.75535566", "0.748511", "0.74738127", "0.74399215", "0.7411332", "0.7409124", "0.7385575", "0.7369612", "0.7346189", "0.73395973", "0.7297913", "0.72905886", "0.72735626", "0.7261962", "0.725735...
0.0
-1
Create and return an authorization header. Returns (header, creation, nonce).
def PvHk(NtEF, jTXt, _XW4=None, bEAa=None): dKPB, _XW4, bEAa = dNn3(jTXt, _XW4, bEAa) WBPg = 'UsernameToken Username="%s", PasswordDigest="%s", Created="%s", Nonce="%s"' % (NtEF, dKPB, _XW4, bEAa) return (WBPg, _XW4, bEAa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def srwF(YKHO):\n rM2g = 'Bearer ' + YKHO.auth_token\n WBPg = {'Authorization': rM2g, 'Content-Type': 'application/json', 'User-Agent': YKHO.user_agent, 'Accept-Encoding': 'gzip'}\n return WBPg", "def PvHk(YKHO, **B2fa):\n return {'Authorization': 'Bearer {}'.format(YKHO.create_jwt(**B2fa))}", "def...
[ "0.68504906", "0.68492305", "0.681221", "0.680911", "0.67681205", "0.66249853", "0.65852547", "0.6519971", "0.6449289", "0.64442915", "0.6433978", "0.6390056", "0.6351271", "0.6342975", "0.6324382", "0.63168263", "0.62822807", "0.6267113", "0.6258026", "0.61708176", "0.615197...
0.79437095
0
Return True if digest is a valid digest of password. >>> digest, creation, nonce = create_password_digest('foo') >>> valid_password_digest('foo', digest, creation, nonce) True
def PZEW(jTXt, dKPB, _XW4, bEAa, uqEL=None): if not dKPB or not _XW4 or (not bEAa): return False if not uqEL: uqEL = ZfOE wzkt = qcWV.utcnow() Jw1P = paZ3(_XW4) if wzkt - Jw1P > uqEL: return False ATyO, vnjx, ec2x = dNn3(jTXt, _XW4, bEAa) return ATyO == dKPB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cVXt(YKHO, jTXt):\n return axsU().check_password_hash(YKHO.password, jTXt)", "def cVXt(YKHO, jTXt):\n return axsU().check_password_hash(YKHO.password, jTXt)", "def UpdD(YKHO, jTXt):\n return TGbE(jTXt, YKHO.password)", "def s2gO(Emd4, fO5j, B1R_):\n fO5j = fO5j or ''\n NaHz = Emd4._get_hex...
[ "0.708416", "0.708416", "0.7065819", "0.7006556", "0.6876132", "0.6795579", "0.67876554", "0.6760441", "0.6743898", "0.6740793", "0.66991943", "0.66975886", "0.6678237", "0.6633762", "0.65492076", "0.6514571", "0.650326", "0.64804727", "0.64505905", "0.64482105", "0.64401263"...
0.8422708
0
Takes a UTC DateTime.
def Dq2C(YKHO, JRYC): YKHO.modified = xUnN(JRYC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8tu(YKHO, JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=YKHO)\n return super(wyKz, YKHO).fromutc(JRYC)", "def l2dC(ppPa):\n h5YN = qcWV.timezone(qcWV.timedelta(0))\n ppPa = ppPa.replace(tzinfo=h5YN)\n return ppPa", "def ZCQF(JRYC):\n return JRYC + qcWV.timedelta(se...
[ "0.6975579", "0.6962471", "0.68758154", "0.6754713", "0.6665813", "0.6616258", "0.6616258", "0.6616258", "0.66031635", "0.6597842", "0.65895617", "0.6581197", "0.64907396", "0.6482422", "0.64281565", "0.6404498", "0.6399129", "0.6395959", "0.6370294", "0.635469", "0.6319016",...
0.0
-1
Takes a UTC DateTime.
def Dq2C(YKHO, JRYC): YKHO.modified = xUnN(JRYC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8tu(YKHO, JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=YKHO)\n return super(wyKz, YKHO).fromutc(JRYC)", "def l2dC(ppPa):\n h5YN = qcWV.timezone(qcWV.timedelta(0))\n ppPa = ppPa.replace(tzinfo=h5YN)\n return ppPa", "def ZCQF(JRYC):\n return JRYC + qcWV.timedelta(se...
[ "0.6975506", "0.69622475", "0.6875938", "0.67545027", "0.66658455", "0.6616034", "0.6616034", "0.6616034", "0.6602925", "0.65979975", "0.6589479", "0.6581037", "0.6490648", "0.6482301", "0.6428071", "0.64044476", "0.6398946", "0.63958406", "0.6370003", "0.6354751", "0.6319537...
0.0
-1
Takes a UTC DateTime.
def X7Cz(YKHO, JRYC): YKHO.issued = xUnN(JRYC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8tu(YKHO, JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=YKHO)\n return super(wyKz, YKHO).fromutc(JRYC)", "def l2dC(ppPa):\n h5YN = qcWV.timezone(qcWV.timedelta(0))\n ppPa = ppPa.replace(tzinfo=h5YN)\n return ppPa", "def ZCQF(JRYC):\n return JRYC + qcWV.timedelta(se...
[ "0.6975506", "0.69622475", "0.6875938", "0.67545027", "0.66658455", "0.6616034", "0.6616034", "0.6616034", "0.6602925", "0.65979975", "0.6589479", "0.6581037", "0.6490648", "0.6482301", "0.6428071", "0.64044476", "0.6398946", "0.63958406", "0.6370003", "0.6354751", "0.6319537...
0.0
-1
Takes a UTC DateTime.
def WbRJ(YKHO, JRYC): YKHO.created = xUnN(JRYC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8tu(YKHO, JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=YKHO)\n return super(wyKz, YKHO).fromutc(JRYC)", "def l2dC(ppPa):\n h5YN = qcWV.timezone(qcWV.timedelta(0))\n ppPa = ppPa.replace(tzinfo=h5YN)\n return ppPa", "def ZCQF(JRYC):\n return JRYC + qcWV.timedelta(se...
[ "0.6975579", "0.6962471", "0.68758154", "0.6754713", "0.6665813", "0.6616258", "0.6616258", "0.6616258", "0.66031635", "0.6597842", "0.65895617", "0.6581197", "0.64907396", "0.6482422", "0.64281565", "0.6404498", "0.6399129", "0.6395959", "0.6370294", "0.635469", "0.6319016",...
0.0
-1
Return entry as XML string.
def hlel(YKHO): bTKY = [] bTKY.append('<entry>\n <title mode="escaped" type="text/html">%(title)s</title>\n <link rel="alternate" type="text/html" href="%(url)s" />\n <issued>%(issued)s</issued>\n <modified>%(modified)s</modified>\n ' % YKHO.__dict__) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ry3J(YKHO):\n with xDSY.StringIO() as vIwR:\n vIwR.write(GXnK.tostring(YKHO.root, encoding='unicode'))\n return vIwR.getvalue()", "def UD1P(YKHO):\n ZfUD = '<item uid=\"{uid}\" arg=\"{arg}\" valid=\"{valid}\"'\n if YKHO.autocomplete != None:\n ZfUD += ' autocomplete=\"{autocompl...
[ "0.6869378", "0.67117715", "0.67047393", "0.6628805", "0.6498415", "0.6424608", "0.6365732", "0.6362321", "0.6327101", "0.63154894", "0.6314639", "0.6311842", "0.6303648", "0.62564623", "0.6199303", "0.6127414", "0.6095097", "0.60768485", "0.60754484", "0.6065928", "0.6050105...
0.62891495
13
Given a string, returns a list containing _length_ sized pieces of the seq. For example, split_len('abcdefgh', 3) = ['abc', 'def', 'gh']
def Fe3v(Q6uT, u54L): return [Q6uT[YRbF:YRbF + u54L] for YRbF in range(0, len(Q6uT), u54L)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rWF_(KCHu, vC9B=2):\n return [KCHu[YRbF:YRbF + vC9B] for YRbF in range(0, len(KCHu), vC9B)]", "def iklj(KCHu):\n return list(map(lambda QJlQ: len(QJlQ), KCHu.split()))", "def eZzO(Q6uT, zNig):\n return [Q6uT[YRbF:YRbF + zNig] for YRbF in range(0, len(Q6uT), zNig)]", "def iklj(KCHu):\n return ...
[ "0.7771089", "0.6592225", "0.65672016", "0.63935995", "0.63905644", "0.6376292", "0.63562685", "0.63397175", "0.6225668", "0.6222525", "0.60819787", "0.60710114", "0.59945035", "0.59915805", "0.59771425", "0.5976272", "0.59709847", "0.59709847", "0.58252406", "0.5758952", "0....
0.8035746
0
Returns description associated with this resource.
def t5do(YKHO) -> h8nf[str]: return YKHO._description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t5do(YKHO):\n return YKHO.__description", "def t5do(YKHO):\n return YKHO.__description", "def jteg(YKHO):\n return YKHO.__description", "def jteg(YKHO):\n return YKHO.__description", "def t5do(YKHO):\n return YKHO.description", "def t5do(YKHO):\n return YKHO.description", "def t5d...
[ "0.8336492", "0.82914555", "0.8250178", "0.8250178", "0.8235905", "0.8235905", "0.8235905", "0.8235905", "0.8217939", "0.8217939", "0.8217939", "0.8217939", "0.8217939", "0.8217939", "0.8217939", "0.8217939", "0.8217939", "0.8217939", "0.8217939", "0.8217939", "0.8217939", ...
0.0
-1
Return the workload name this Simpoint is associated with.
def L6UY(YKHO) -> h8nf[str]: return YKHO._workload_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UwGD(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'workload_profile_name')", "def mWFP(YKHO):\n return f'PoolSense {u32P[YKHO.info_type]['name']}'", "def mWFP(YKHO):\n return YKHO.measurement_profile.name", "def mWFP(YKHO):\n return '{} {}'.format(YKHO._device, YKHO._endpoint)", ...
[ "0.74272215", "0.67942756", "0.67512816", "0.6715406", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584", "0.66740584",...
0.77204096
0
This function was created to maintain backwards compability for v21.1.0 and prior releases of gem5 where `Resource` was a class. In the interests of gem5resource specialization, the `Resource` class has been dropped. Instead users are advized to use the `obtain_resource` function which will return the correct `Abstract...
def ISu2(PcW4: str, DNFZ: Optional[str]=None, Ruk3: bool=True, jUoO: Optional[str]=None, Onn9: Optional[List[str]]=None) -> VTGt: E4N8('`Resource` has been deprecated. Please use the `obtain_resource` function instead.') return _N_b(resource_id=PcW4, resource_directory=DNFZ, download_md5_mismatch=Ruk3, resource...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m_yQ(YKHO, m6Me) -> qeSH:\n raise NotImplemented", "def HeD1(YKHO):\n raise UAju.Unimplemented()", "def HeD1(YKHO, mWFP: str) -> LpYD:\n Eorv = YKHO.get_payload(mWFP)\n if not isinstance(Eorv, LpYD):\n raise TypeError('Resource was expected but not found')\n return Eorv", "def zZ2r(...
[ "0.71609336", "0.7005341", "0.691584", "0.6439687", "0.621857", "0.61496073", "0.6128187", "0.61237407", "0.61237407", "0.61010855", "0.6072487", "0.6042288", "0.5981997", "0.59684485", "0.5952153", "0.593048", "0.59248257", "0.5894699", "0.5878017", "0.5859849", "0.5851275",...
0.6441405
3
``True`` if the position should be updated based on neighbors. Returns
def sDdC(YKHO): return YKHO._use_neighbor_placement
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xt0L(YKHO, YimI: dict):\n uKWF = YimI['self'][3]\n if uKWF in YKHO.positions:\n return False\n else:\n return True", "def YITj(YKHO, eWTf):\n if int(eWTf[0]) == int(YKHO.x) and int(eWTf[1]) == int(YKHO.y):\n return False\n else:\n return True", "def mHAJ(YKHO, dQg...
[ "0.7032947", "0.7022135", "0.67020416", "0.66221035", "0.6572099", "0.65589386", "0.65276814", "0.65166646", "0.64642835", "0.64432096", "0.6371319", "0.6329259", "0.6329259", "0.6329259", "0.6326402", "0.6286566", "0.6237664", "0.62094647", "0.62083465", "0.6157031", "0.6146...
0.0
-1
A very rough estimate of the duration of the waveform. An estimate of the waveform duration starting from flow. This is intended to be fast but not necessarily accurate. It should be an overestimate of the length. It is derived from a simplification of the 0PN postnewtonian terms and includes a fudge factor for possibl...
def yRFt(gpRq, E43s, _uqo, hPoF=1.1, W0VY=0.02): r8hN = gpRq + E43s QmTc = r8hN * DMco.MTSUN_SI a1PO = 5.0 / 256.0 * r8hN * r8hN * QmTc / (gpRq * E43s) / (XTiz.pi * QmTc * _uqo) ** (8.0 / 3.0) return 0.022 if a1PO < 0 else (a1PO + W0VY) * hPoF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WbTE(YKHO) -> float:\n return float(len(YKHO.__samples)) / float(YKHO.__rate)", "def EdTY(pQ4c, RviH, tTpl):\n return 0.25 * pQ4c * oyIN.sqrt(1 - tTpl ** 2) / RviH", "def EdTY(YKHO):\n Hv7J = YKHO.get_frame_duration()\n c1sR = YKHO.get_num_frames()\n liRQ = Hv7J * (c1sR - 1)\n return liRQ...
[ "0.6809631", "0.6683881", "0.6600433", "0.6581678", "0.6491546", "0.64422846", "0.64422846", "0.642567", "0.63207644", "0.62901556", "0.62901556", "0.62478316", "0.6244806", "0.624211", "0.6238588", "0.6223887", "0.6222593", "0.6158367", "0.61559445", "0.6147401", "0.6111985"...
0.5916745
37
Split a line of words into words
def PuwW(YKHO, zFiD): zFiD = ZbWC.sub("`(.*?)'", Tok2, zFiD) zFiD = zFiD.translate(None, '.:,()+*') return zFiD.split()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def niGw(zFiD):\n return", "def vrLv(Nqlg):\n wvEv = i9Wa()\n b0j5 = isxO()\n hTQP = xI69()\n V22M = []\n for vC9B in Nqlg:\n if vC9B.rstrip():\n WNtM = wvEv.parseSentence(vC9B, int(hTQP))\n xnRI = b0j5.tokenizeStatement(WNtM, int(hTQP))\n for vC9B in xnR...
[ "0.8133365", "0.71518725", "0.710461", "0.70399755", "0.7013255", "0.70115805", "0.69765246", "0.6967903", "0.69283277", "0.69283277", "0.69216174", "0.69216174", "0.69216174", "0.69216174", "0.69216174", "0.6903224", "0.6892397", "0.6892397", "0.68621147", "0.68488723", "0.6...
0.0
-1
Return the stations described in the given JSON data file. Each key in the returned dictionary is a station id, and each value is the corresponding Station object. Note that you need to call Station(...) to create these objects!
def tJXS(Py8v: str) -> cuzp[str, 'Station']: with open(Py8v) as nUeQ: VqZ3 = qQXR.load(nUeQ) Oj45 = {} for KCHu in VqZ3['stations']: gnAD = njvh((KCHu['lo'], KCHu['la']), KCHu['da'] + KCHu['ba'], KCHu['da'], KCHu['s']) Oj45[KCHu['n']] = gnAD return Oj45
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oj45(YKHO):\n try:\n _zEX = G4JS.get(YKHO._stations_url)\n Oj45 = {}\n for gnAD in _zEX.json():\n zW8g = gnAD['id']\n VXJd = gnAD['name']\n Oj45[zW8g] = VXJd\n return Oj45\n except (GX9K, KeyError) as exc:\n na1r.error('could not read fr...
[ "0.74924695", "0.72170025", "0.70834684", "0.70042115", "0.69939035", "0.69657487", "0.6964106", "0.6939375", "0.6868818", "0.6733035", "0.67281866", "0.67109543", "0.6696497", "0.6635651", "0.66045696", "0.6580187", "0.65533316", "0.6532721", "0.65250486", "0.64687604", "0.6...
0.7926996
0
Returns the current tracker state as an object.
def DghZ(YKHO, VbxB: EventVerbosity=rWuY.NONE) -> cuzp[I2jr, ImMB]: XaMs = YKHO._events_for_verbosity(VbxB) if XaMs: XaMs = [tTpl.as_dict() for tTpl in XaMs] kitO = None if len(YKHO.events) > 0: kitO = YKHO.events[-1].timestamp return {'sender_id': YKHO.sender_id, 'slots': YKHO.curre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n return {}", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def...
[ "0.83822286", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", "0.7161613", ...
0.0
-1
Get request message as environment information.
def ecYr(YKHO): PNq_ = {'REQUEST_METHOD': YKHO.command} if '?' in YKHO.path: pmON, umWR = YKHO.path.split('?', 1) else: pmON, umWR = (YKHO.path, '') PNq_['PATH_INFO'] = pmON PNq_['QUERY_STRING'] = umWR for H5ew in YKHO.headers: PNq_[H5ew.upper()] = YKHO.headers[H5ew] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RcaE():\n return NOKG('request')", "def AAKL(YKHO):\n pass", "def wyqQ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'request_message')", "def I0_M(YKHO):\n return YKHO.mcas[0].get_environment()", "def gJ_c(QePW):\n try:\n HjSO = QePW.environ['api.cache.subject_id']\n NKcE = ...
[ "0.6505016", "0.6184309", "0.61148554", "0.60647887", "0.60334927", "0.60314906", "0.6020615", "0.5905464", "0.5905464", "0.5905464", "0.59035087", "0.5894478", "0.5839344", "0.5756319", "0.57538277", "0.57538277", "0.57435244", "0.57048094", "0.56968", "0.56779367", "0.56678...
0.59824646
7
Return a list containing all possible combinations of alternatives from the given grids and the corresponding total rating of that combination of alternatives. grids list of Grid
def KVnc(YKHO, pzDV): from ..models import Rule I2Vy = [Cs6h.get_alternative_total_rating_tuples() for Cs6h in pzDV] E6VQ = Hs6x.product(*I2Vy) c_NS = [] for ERA1 in E6VQ: I2Vy, mwlV = zip(*ERA1) c_NS.append(Rule(I2Vy, sum(mwlV))) c_NS.sort() return c_NS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GKhd(Cs6h, Xf84):\n kPcD, HqKa = wdJA(Cs6h, Xf84, Cs6h.tessellation, Cs6h.ndx)\n if kPcD is None:\n return None\n PWKZ = uAxx(kPcD, HqKa, Xf84[-1])\n if PWKZ is None:\n return None\n exwG = len(HqKa)\n dixj = ()\n for vqVR, A6b2, ZJe_ in zip(kPcD, HqKa, PWKZ):\n if vqV...
[ "0.5959448", "0.5861889", "0.5765868", "0.5627832", "0.5550611", "0.55025434", "0.54806197", "0.5477299", "0.5419002", "0.53558767", "0.5354017", "0.5347773", "0.5336215", "0.5302203", "0.5280155", "0.52576506", "0.5257206", "0.5245959", "0.524559", "0.52394295", "0.522158", ...
0.72572803
0
Downloads the dataset from given url and extracts features, class labels and feature names.
def UlWi(bD7m: str, _bo4: str) -> tuple: nPrm = rLdf.read_csv(bD7m) EcVT = nPrm.copy() LVAh = EcVT.pop(_bo4) ZLJ_ = EcVT.columns return (EcVT.values, LVAh.values, ZLJ_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Omub(bD7m):\n __n6 = rLdf.read_csv(bD7m, sep=',')\n __n6.columns = __n6.columns.str.replace(' ', '_')\n return __n6", "def NagY(eubX, bD7m):\n Z5Rd = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n fAzu = Hy7s.path.join(Z5Rd, 'DataSets', eubX)\n zxyy = Hy7s.path.join(fAzu, 'test')\n LNRL = ...
[ "0.6495776", "0.64665216", "0.63410586", "0.61738825", "0.6162709", "0.61371934", "0.61182535", "0.6088954", "0.6087023", "0.6039434", "0.598119", "0.59385884", "0.5889935", "0.58829737", "0.5873307", "0.5857077", "0.584909", "0.58332866", "0.5709856", "0.5688253", "0.5672203...
0.5642872
25
String for representing the Model object (in Admin site etc.)
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta....
[ "0.78009075", "0.7710605", "0.7673848", "0.7673848", "0.7523759", "0.74037886", "0.73972905", "0.73759353", "0.7326191", "0.72697985", "0.7242019", "0.7234025", "0.7205552", "0.71734023", "0.71664774", "0.7108678", "0.70352817", "0.70352817", "0.7011228", "0.69860566", "0.696...
0.0
-1
Returns the url to access a detail record for this book.
def hlzF(YKHO): return gxEw('tag-detail', args=[str(YKHO.id)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlzF(YKHO):\n return gxEw('book-detail', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return gxEw('book_details', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return gxEw('book-detail', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return gxEw('book-detail', args=[str(YKHO.id)])", "def hlzF(YKHO):\n ...
[ "0.76990575", "0.7611185", "0.7257499", "0.7257499", "0.7257499", "0.7117704", "0.6992158", "0.69547594", "0.6935497", "0.684423", "0.6591669", "0.6543265", "0.6541738", "0.64656514", "0.6445659", "0.64323515", "0.64318234", "0.6417527", "0.6407866", "0.638662", "0.6367192", ...
0.0
-1
String for representing the Model object (in Admin site etc.)
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta....
[ "0.7801624", "0.77112937", "0.767426", "0.767426", "0.7524702", "0.74020135", "0.7398639", "0.7378346", "0.7328583", "0.7270028", "0.7244434", "0.7233179", "0.7205981", "0.7174358", "0.7165676", "0.7108926", "0.70379156", "0.70379156", "0.7012156", "0.69865996", "0.6968002", ...
0.0
-1
String for representing the Model object (in Admin site etc.)
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta....
[ "0.7801624", "0.77112937", "0.767426", "0.767426", "0.7524702", "0.74020135", "0.7398639", "0.7378346", "0.7328583", "0.7270028", "0.7244434", "0.7233179", "0.7205981", "0.7174358", "0.7165676", "0.7108926", "0.70379156", "0.70379156", "0.7012156", "0.69865996", "0.6968002", ...
0.0
-1
Returns the url to access a detail record for this book.
def hlzF(YKHO): return gxEw('book-detail', args=[str(YKHO.id)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlzF(YKHO):\n return gxEw('book-detail', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return gxEw('book_details', args=[str(YKHO.id)])", "def iLuo(inK4):\n return gxEw('author-books', args=[inK4])", "def hlzF(YKHO):\n return '/booking/%s/detail' % YKHO.id", "def gmFE(YKHO):\n if YKHO._data....
[ "0.7700398", "0.7613079", "0.7119572", "0.6994155", "0.6954283", "0.6938047", "0.6845822", "0.6592432", "0.6541922", "0.6541742", "0.64664704", "0.6445213", "0.6433065", "0.6432632", "0.64177823", "0.6407731", "0.6388763", "0.63671756", "0.63671756", "0.63593304", "0.63593304...
0.7259745
4
String for representing the Book object.
def zAg0(YKHO): return YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO) -> str:\n return f\"Book('{YKHO.author}', '{YKHO.title}', '{YKHO.publisher}', '{YKHO.shelf}', '{YKHO.category}', '{YKHO.subject}')\"", "def zAg0(YKHO):\n return '{0} ({1})'.format(YKHO.id, YKHO.book)", "def zAg0(YKHO):\n return '{0} ({1})'.format(YKHO.id, YKHO.book.title)", "def zAg0(...
[ "0.8500309", "0.7988276", "0.79347605", "0.7821464", "0.77893806", "0.77588505", "0.7664232", "0.752065", "0.74825776", "0.7331979", "0.73239887", "0.7232598", "0.71971804", "0.7035316", "0.69258535", "0.68964005", "0.68964005", "0.6892451", "0.68878984", "0.6866609", "0.6865...
0.0
-1
Check for any bullets if they have hit an alien and if so then get rid of the alien. Also spawns new fleet if last fleet is annihalated
def ya8t(YKHO): RuMF = a9eO.sprite.groupcollide(YKHO.bullets, YKHO.aliens, True, True) if RuMF: for yht1 in RuMF.values(): YKHO.stats.score += YKHO.settings.alien_points * len(yht1) YKHO.scoreboard.prep_score() YKHO.scoreboard.check_high_score() if not YKHO.aliens: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rBa1(YKHO):\n RuMF = a9eO.sprite.groupcollide(YKHO.bullets, YKHO.aliens, True, True)\n if RuMF:\n for SaI9 in RuMF.values():\n YKHO.stats.score += YKHO.settings.alien_points * len(SaI9)\n YKHO.sb.prep_score()\n YKHO.sb.check_high_score()\n if not YKHO.aliens:\n Y...
[ "0.78029644", "0.76365787", "0.75500643", "0.7455024", "0.72574365", "0.71892226", "0.7079051", "0.68577343", "0.6718862", "0.67108375", "0.6704042", "0.66983473", "0.6513901", "0.6489391", "0.6487545", "0.64367014", "0.64360905", "0.64121234", "0.6391954", "0.63836426", "0.6...
0.75447315
3
Updates the aliens positions.
def wZET(YKHO): YKHO._check_fleet_edges() YKHO.aliens.update() if a9eO.sprite.spritecollideany(YKHO.ship, YKHO.aliens): YKHO._ship_hit() YKHO._check_aliens_bottom()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkYB(YKHO):\n YKHO.aliens.update()\n YKHO.counter += 1\n for oeTy in YKHO.aliens.copy():\n if oeTy.rect.right < 0:\n YKHO.aliens.remove(oeTy)\n if YKHO.counter == 500:\n YKHO._spawn_enemy()\n YKHO.counter = 0\n if a9eO.sprite.spritecollideany(YKHO.ship, YKHO.alien...
[ "0.77675235", "0.75433487", "0.7517483", "0.73686004", "0.7155843", "0.70730543", "0.7004507", "0.6915472", "0.68943447", "0.6853731", "0.67003167", "0.66999394", "0.6623743", "0.64582926", "0.64294034", "0.63272583", "0.6258216", "0.62523997", "0.6224449", "0.621462", "0.615...
0.73187447
4
Check if any aliens have reached the bottom of the screen.
def wMxK(YKHO): VXOZ = YKHO.screen.get_rect() for oeTy in YKHO.aliens.sprites(): if oeTy.rect.bottom >= VXOZ.bottom: YKHO._ship_hit() break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >= VXOZ.bottom:\n YKHO._ship_hit()\n break", "def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >= VX...
[ "0.84619975", "0.84619975", "0.7864565", "0.77854824", "0.7772348", "0.77700484", "0.76433814", "0.7636987", "0.7513152", "0.7461978", "0.7070484", "0.6924367", "0.6813102", "0.66493016", "0.657903", "0.64892584", "0.64599264", "0.64534354", "0.6386031", "0.63544416", "0.6332...
0.8487487
0
Current density due to a harmonic electric dipole
def g2ZH(YKHO, UqpO): return YKHO.sigma * YKHO.electric_field(UqpO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InLe(YKHO):\n return 0.001 * YKHO.molar_mass * YKHO.pressure / (K6Rf * YKHO.temperature)", "def g2ZH(YKHO, UqpO):\n r845 = YKHO.electric_field(UqpO) / YKHO.rho\n return r845", "def InLe(YKHO):\n return YKHO.get_density()", "def InLe(YKHO):\n return YKHO.__density", "def InLe(YKHO):\n ...
[ "0.71840376", "0.7042334", "0.695533", "0.68963265", "0.68963265", "0.68963265", "0.6847159", "0.67914796", "0.6769513", "0.67483324", "0.67244685", "0.66476434", "0.6630878", "0.66202843", "0.6611444", "0.6586477", "0.6564632", "0.65513265", "0.6514661", "0.65125763", "0.646...
0.6951517
3
Removes the unit_ prefix from a unit attribute. For example, `_parse_unit_attr("unit_act")` will return `"act"`.
def oEZR(hkS8: str) -> str: SQ3m = hkS8.split('_', maxsplit=1) ZWdx = len(SQ3m) == 2 and SQ3m[0] == 'unit' if not ZWdx: raise ValueError('{0} is not a valid unit attribute.'.format(hkS8)) return SQ3m[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z1Wo(vGaq, PXGI):\n if P6bq.is_quantity(vGaq):\n return vGaq.value_in_unit(PXGI)\n return vGaq", "def d5Df(hkS8: str) -> str:\n y0cW = o2VW[Db0k.REMOVE_PREFIX]\n ZI14 = o2VW[Db0k.REMOVE_SUFFIX]\n KvrH = len(y0cW)\n pGpk = len(ZI14)\n EESs = hkS8.strip()\n if EESs[:KvrH] == y0cW...
[ "0.6248072", "0.61667264", "0.60530084", "0.586516", "0.58604455", "0.58442336", "0.58054173", "0.5797026", "0.5742074", "0.567695", "0.5630956", "0.56055146", "0.55520505", "0.55413646", "0.5474765", "0.54463446", "0.54281425", "0.54007167", "0.53734976", "0.5371237", "0.535...
0.7251399
0
Returns the average activation of the layer's units.
def ZJsX(YKHO) -> float: return ht2j.mean(YKHO.units.act)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ox3S(YKHO) -> float:\n return ht2j.mean(YKHO.units.net)", "def GovM(YKHO):\n yGTL = YKHO._get_conditional_negative_energy()\n return m1Hg(yGTL)", "def aSRG(YKHO, vHnr):\n return ZylS.reduce_mean(vHnr, [2, 3], name='spatial_avg')", "def JBMS(YKHO):\n return YKHO.sum / YKHO.sum_weights", "...
[ "0.69964594", "0.6915076", "0.6747515", "0.66701716", "0.66212344", "0.62630844", "0.6182448", "0.61810803", "0.61735374", "0.61544174", "0.61466193", "0.6105623", "0.60909224", "0.6086554", "0.6084948", "0.605586", "0.60527205", "0.6048957", "0.6039941", "0.60376", "0.60376"...
0.74216086
0
Returns the average net input of the layer's units.
def ox3S(YKHO) -> float: return ht2j.mean(YKHO.units.net)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSRG(YKHO, vHnr):\n return ZylS.reduce_mean(vHnr, [2, 3], name='spatial_avg')", "def GovM(YKHO):\n return [gEmA._get_mean() for gEmA in YKHO.layers]", "def JBMS(YKHO):\n return YKHO.sum / YKHO.sum_weights", "def S8vG(YKHO):\n KCHu = YKHO.sum()\n PYIQ = YKHO.flatten_shape(YKHO.shape)\n H...
[ "0.7476362", "0.68100595", "0.6617707", "0.6457264", "0.64329803", "0.6392206", "0.6390806", "0.63399464", "0.63184065", "0.63024646", "0.6276798", "0.6275908", "0.6272822", "0.6272822", "0.62665796", "0.6236386", "0.62281203", "0.61764216", "0.6168962", "0.6145486", "0.61360...
0.7616056
0
Test for the external http inline link
def N85C(YKHO): assert YKHO.search(U_oo % (XMY9, fX7Q, LKGw))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LBk6(Kcz_, QZnA):\n if nOOj(Kcz_, QZnA):\n return False\n if rOmR.match(QZnA):\n return True\n if '.' in QZnA or '\\\\' in QZnA or '/' in QZnA or ('#' in QZnA):\n return True\n return False", "def jwM3(YKHO):\n assert YKHO.search(U_oo % (XMY9, PQhu, ShXY))", "def eL8j(YK...
[ "0.7755666", "0.7687817", "0.7624167", "0.7369923", "0.70497745", "0.6856061", "0.6837296", "0.6830296", "0.66895825", "0.66432387", "0.6611051", "0.6604564", "0.65828246", "0.65673614", "0.6536324", "0.6473654", "0.6465498", "0.6463018", "0.6439305", "0.640797", "0.640311", ...
0.8047165
0
Test for the external https inline link
def jwM3(YKHO): assert YKHO.search(U_oo % (XMY9, PQhu, ShXY))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q3DC(YKHO):\n assert YKHO.search(U_oo % (XMY9, m1_1, yGUj))", "def N85C(YKHO):\n assert YKHO.search(U_oo % (XMY9, fX7Q, LKGw))", "def eL8j(YKHO):\n assert YKHO.search(U_oo % (XMY9, Mthx, yGUj))", "def LBk6(Kcz_, QZnA):\n if nOOj(Kcz_, QZnA):\n return False\n if rOmR.match(QZnA):\n ...
[ "0.7710757", "0.75346524", "0.7413679", "0.7205063", "0.694342", "0.68705314", "0.66175586", "0.6616176", "0.65890807", "0.6556849", "0.6488944", "0.6375207", "0.6372186", "0.63611573", "0.6360159", "0.6334702", "0.6269985", "0.62238896", "0.6194349", "0.6191165", "0.6175406"...
0.83391863
0
Bidirectional RNN of CTPN.
def WwaM(g4y1, AKNV=256, rrBf='gru'): if 'lstm' in rrBf: ei2p = fhcK.LSTM elif 'gru' in rrBf: ei2p = fhcK.GRU else: ValueError("Optional RNN layer: '*lstm', '*gru'.") with nMvt.name_scope('bidirectional_' + rrBf): o4Jx = fhcK.TimeDistributed(fhcK.Bidirectional(ei2p(units=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, SBG5=1, q1vv=10, v2uf=True, YDYE='glu', hr1G=0.5, iBWW=True, swjj='BGRU', DMC5=128, k9Pf=2, k4jQ=0, OOHF=False, OXzC=False, **B2fa):\n super(alOO, YKHO).__init__()\n YKHO.n_in_channel = SBG5\n YKHO.attention = v2uf\n YKHO.cnn_integration = OOHF\n YKHO.freeze_bn = OXzC\n bMRV = SBG5...
[ "0.70599073", "0.6841565", "0.649373", "0.63954735", "0.6383297", "0.6146673", "0.6032671", "0.5998843", "0.58858556", "0.5864402", "0.5829076", "0.58134615", "0.580539", "0.5772774", "0.5758394", "0.57426864", "0.57426864", "0.5737274", "0.573379", "0.5729653", "0.5724099", ...
0.6146169
6
X,Y parts of meshgrid Mihav's implementation
def EZsV(WKvO, LVAh, epBp, jk7u, rTQi, V4VY, PaSD, uJrC, Zjko, AGWk, EcVT, fuBA, Nk6w): nJTu = AGWk.shape[0] Q9GL = Zjko.shape[0] r8hN = oyIN.sqrt((WKvO - EcVT) ** 2 + (LVAh - fuBA) ** 2 + (epBp - Nk6w) ** 2) r8hN[r8hN < 1e-07] = 1e-07 epBp = PaSD / r8hN XbMo = oyIN.zeros(Q9GL) for r845 in N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def etNN(jHsn, pvd3, wBZN=0, re6M=1, KDmU=0, rwK9=1):\n WKvO = oyIN.linspace(wBZN, re6M, jHsn)\n LVAh = oyIN.linspace(KDmU, rwK9, pvd3)\n MZBS, yqRF = oyIN.meshgrid(WKvO, LVAh)\n return (MZBS, yqRF)", "def qBpy(YKHO):\n WKvO = oyIN.arange(YKHO.nx)\n LVAh = oyIN.arange(YKHO.ny)\n return oyIN....
[ "0.7560791", "0.7290006", "0.7249657", "0.7171141", "0.7093235", "0.7020099", "0.6994099", "0.6994099", "0.69871753", "0.69871753", "0.6944629", "0.692997", "0.6917998", "0.68721795", "0.6837775", "0.6837775", "0.6837775", "0.6837775", "0.6833452", "0.67925245", "0.6782209", ...
0.0
-1
What is the value of this state under the best action? Concretely, this is given by V(s) = max_{a in actions} Q(s,a)
def UnfG(YKHO, QTBn): gnPz.raiseNotDefined()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXPA(YKHO, QTBn):\n XeOP = YKHO.q_network.chooseBestAction(QTBn)\n cAlv = max(YKHO.q_network.qValues(QTBn))\n return (XeOP, cAlv)", "def pAi2(YKHO, QTBn):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n wCw7 = -100000000\n Qzsg = None\n for XeOP in YKHO.mdp.getPossibleActions(QTBn):\n eaV4...
[ "0.8471306", "0.8411173", "0.8074187", "0.80544055", "0.80480546", "0.79577166", "0.7948263", "0.79347116", "0.7931858", "0.7929813", "0.79224104", "0.7872217", "0.7824365", "0.7782533", "0.7778754", "0.775486", "0.77246475", "0.7699368", "0.7653566", "0.7642246", "0.7628273"...
0.0
-1
Returns a dict from features to counts Usually, the count will just be 1.0 for indicator functions.
def mXEu(YKHO, QTBn, XeOP, GKSl): gnPz.raiseNotDefined()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TBqt(YKHO, EcVT: np.ndarray) -> cuzp[int, oyIN.ndarray]:\n return {eHNT: oyIN.bincount(EcVT[:, eHNT].astype(int), minlength=pdKD) for eHNT, pdKD in YKHO.categories_per_feature.items()}", "def _USp(YKHO):\n j5yI = {}\n for UXqs in YKHO.labels:\n j5yI[UXqs] = YKHO.count_document_frequency(UXqs)...
[ "0.78215027", "0.76435983", "0.7401831", "0.7268877", "0.718714", "0.7145538", "0.693373", "0.6876234", "0.686172", "0.6825929", "0.67843133", "0.67244554", "0.67213726", "0.6715564", "0.66551185", "0.66172785", "0.6570453", "0.6563888", "0.65494996", "0.6508152", "0.6482701"...
0.0
-1
Performs equality comparison. If comparing against another instance of _MethodConnection, the comparison is made between the constituent components of the bound method. Otherwise, this method will return False.
def xa14(YKHO, Elif): if isinstance(Elif, naiQ): return YKHO._im_func == Elif._im_func and YKHO._im_self_ref == Elif._im_self_ref and (YKHO._im_class == Elif._im_class) return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif: 'GatewayVirtualConnection') -> bool:\n if not isinstance(Elif, YKHO.__class__):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def xa14(YKHO, Elif):\n if isinstance(Elif, bEjD):\n return YKHO._callback_ref == Elif._callback_ref\n return False", "def xa1...
[ "0.67261803", "0.66552955", "0.6655067", "0.6567932", "0.6489885", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6456508", "0.6380068", "0.63798815", ...
0.8354931
0
Updates the position and size of the rectangle.
def QdZT(YKHO, oeNL=None, zNig=None): YKHO.__node.pos = (oeNL[0] - zNig[0] / 2, oeNL[1] - zNig[1] / 2) YKHO.__node.size = zNig
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO):\n YKHO.rect = (YKHO.x, YKHO.y, YKHO.width, YKHO.height)", "def QdZT(YKHO):\n YKHO.rect.x += YKHO.change_x\n YKHO.rect.y += YKHO.change_y", "def QdZT(YKHO):\n YKHO.rect.x += YKHO.change_x\n YKHO.rect.y += YKHO.change_y", "def QdZT(YKHO):\n YKHO.rect = a9eO.Rect(YKHO.x, YKHO.y...
[ "0.8384962", "0.7891583", "0.7891583", "0.7787605", "0.76663786", "0.7529469", "0.7331406", "0.7243508", "0.716976", "0.7139886", "0.707521", "0.7059984", "0.70564765", "0.70078963", "0.6950517", "0.6916052", "0.69149554", "0.690967", "0.6888426", "0.6838328", "0.6720548", ...
0.62733257
47
Return a unicode object on Python 3 and a bytes object on Python 2
def uneh(l5Ny, kLcZ='utf-8'): if not Lpna: if isinstance(l5Ny, QMSQ): Aofo = l5Ny.encode(kLcZ) else: Aofo = l5Ny elif isinstance(l5Ny, bytes): Aofo = l5Ny.decode(kLcZ) else: Aofo = l5Ny return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VoGu():\n if QUx7.PY2:\n Ylbp = QUx7.unicode_type('hello')\n QUx7.assert_unicode(Ylbp)\n K4sN.assert_equal(QUx7.bytes2unicode('hello'), Ylbp)\n K4sN.assert_equal(QUx7.bytes2unicode(QMSQ('hello')), Ylbp)\n K4sN.assert_equal(QUx7.bytes2unicode(bytearray('hello', 'utf-8')), Y...
[ "0.7692303", "0.7484009", "0.7428445", "0.71876967", "0.714974", "0.714974", "0.71446425", "0.71334255", "0.7068729", "0.70685756", "0.70585614", "0.7044192", "0.702749", "0.702749", "0.702749", "0.702749", "0.702749", "0.702749", "0.7010694", "0.699383", "0.6989764", "0.69...
0.0
-1
Function will convert an arcgis table into a pandas dataframe with an object ID index, and the selected input fields. Uses TableToNumPyArray to get initial data.
def qR_F(bo9T, u8oc=None, xDcj='', njbL=False, VO2C=None): jOkL = ZO_c.Describe(bo9T).OIDFieldName if u8oc: _TsE = [jOkL] + u8oc else: _TsE = [Jyyj.name for Jyyj in ZO_c.ListFields(bo9T)] dn1Z = ZO_c.da.TableToNumPyArray(bo9T, _TsE, xDcj, njbL, VO2C) ccPS = dn1Z[jOkL] wNKy = rLdf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P75v(SDMS, u8oc=None, UNaz=None):\n jOkL = ZO_c.Describe(SDMS).OIDFieldName\n if u8oc:\n _TsE = [jOkL] + u8oc\n else:\n _TsE = [Jyyj.name for Jyyj in ZO_c.ListFields(SDMS)]\n nPrm = [rdlD for rdlD in ZO_c.da.SearchCursor(SDMS, _TsE, where_clause=UNaz)]\n wNKy = rLdf.DataFrame(nPrm,...
[ "0.6806674", "0.60106766", "0.58832604", "0.5779051", "0.5770023", "0.572546", "0.56946844", "0.5674356", "0.5672547", "0.5611763", "0.56050265", "0.55698717", "0.5561268", "0.5526062", "0.5473312", "0.5467393", "0.5444699", "0.5432899", "0.53706425", "0.5348424", "0.5346139"...
0.7759994
0
Returns a set of pairs from a list eg if the list is [1, 2, 3] returns [(1, 2), (2, 3)]
def fr5W(aqea): return [(jvSB, aqea[or8S + 1] if -1 else None) for or8S, jvSB in enumerate(aqea) if or8S < len(aqea) - 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rL8p(vC9B):\n return {(vC9B[2 * YRbF], vC9B[2 * YRbF + 1]) for YRbF in range(len(vC9B) / 2)}", "def kgDL(yv6U):\n for YRbF in range(1, len(yv6U), 2):\n yield (yv6U[YRbF - 1], yv6U[YRbF])", "def Wf_9(vC9B):\n return [(vC9B[YRbF], vC9B[r845]) for YRbF in range(len(vC9B) - 1) for r845 in range...
[ "0.76769555", "0.7475579", "0.74348855", "0.7001826", "0.6996558", "0.67464036", "0.6644373", "0.6575346", "0.645916", "0.6458086", "0.6451812", "0.6327511", "0.63258916", "0.6272453", "0.6272453", "0.62359446", "0.62358856", "0.6168561", "0.61575514", "0.6146467", "0.6119382...
0.74457395
2
Gets the 1byte 8bits string, as writed in the tag, from the unicode, returned by tag.get().
def xduQ(vIwR): Aofo = [] for hcXw in vIwR: if 0 < ord(hcXw) < 256: Aofo.append(chr(ord(hcXw))) else: Aofo.append(hcXw) return ''.join(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jShR(mLGw):\n if mLGw < 8:\n return 1\n else:\n return mLGw // 6 + 1\n return neaT", "def yMgm(BWXx: Union[Text, bytes]) -> I2jr:\n C0mf = v97K.maybe_get_utf8(BWXx)\n if C0mf is None:\n VjqD.inc()\n C0mf = uwaB.NON_UTF8_PLACEHOLDER\n return C0mf", "def hHF3(YKH...
[ "0.60388136", "0.59449506", "0.59394777", "0.59174234", "0.5893981", "0.5810036", "0.5799288", "0.5792435", "0.57895654", "0.57471424", "0.57282174", "0.5724308", "0.5639128", "0.5639128", "0.5639128", "0.5620825", "0.5591751", "0.55812293", "0.55773085", "0.55768454", "0.555...
0.54113626
31
Checks if a key is between _from_ and _to_ or equal to _to_ on the ring. If _from_ and _to_ are equal, returns True.
def xac_(H5ew: int, aF0O: int, Br5Q: int) -> bool: if aF0O == Br5Q: return True if aF0O > Br5Q: return H5ew > aF0O or H5ew <= Br5Q return H5ew > aF0O and H5ew <= Br5Q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lPN9(YKHO, SEPf, c_i7, ITS7):\n if SEPf == None:\n if c_i7 == None:\n return True\n else:\n return bool(ITS7 <= c_i7)\n elif c_i7 == None:\n return bool(ITS7 >= SEPf)\n return bool(ITS7 >= SEPf and ITS7 <= c_i7)", "def Eswp(YKHO, qmsz: _State, mwFB: _State)...
[ "0.6104028", "0.5961235", "0.5856892", "0.5758627", "0.57217", "0.57182115", "0.5645745", "0.56402236", "0.5639159", "0.55818915", "0.5565264", "0.54980606", "0.546903", "0.5468121", "0.54589367", "0.54332536", "0.5426839", "0.54118395", "0.54108", "0.5388942", "0.53854334", ...
0.76660794
0
Remove stop words and steam text
def UgtL(l5Ny, pTN9=False): hwHU = set(di0c.words('english')) hwHU.update(['~', '.', ':', ',', ';', '?', '¿', '!', '¡', '...', '/', "'", '\\', '"', '-', 'amp', '&', 'rt', '[', ']', '":', '--&', '(', ')', '|', '*', '+', '%', '$', '_', '@', 's', 'ap', '=', '}', '{', '**', '--', '()', '!!', '::', '||', '.:', ':.',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aUcs(YKHO, l5Ny):\n return ' '.join([GIN8 for GIN8 in str(l5Ny).split() if GIN8 not in YKHO.STOPWORDS])", "def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)", "def aUcs(l5Ny):\n l5Ny = ' ' + l...
[ "0.80621713", "0.8057364", "0.80325174", "0.8006171", "0.7962217", "0.7941643", "0.79011446", "0.7728401", "0.7725139", "0.77106684", "0.76989716", "0.7654973", "0.7652837", "0.7591295", "0.75778854", "0.75189817", "0.7494272", "0.74576247", "0.74576247", "0.74576247", "0.745...
0.7128313
38
Convert Integer to onehot vector
def yK88(WKvO, u54L): assert WKvO > 0 and WKvO < u54L assert isinstance(WKvO, int) assert isinstance(u54L, int) Qtj5 = oyIN.zeros([u54L], dtype=oyIN.float32) Qtj5[WKvO] = 1 return Qtj5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(ijL8):\n ijL8 = ijL8.reshape(len(ijL8))\n uqVt = int(oyIN.max(ijL8)) + 1\n uqVt = 6\n return oyIN.eye(uqVt)[oyIN.array(ijL8, dtype=oyIN.int32)]", "def kj8B(Ty9i):\n exwG = len(Ty9i)\n r8hN = max(Ty9i) + 1\n yvT9 = oyIN.zeros((exwG, r8hN))\n yvT9[oyIN.arange(exwG), Ty9i] = 1\n ...
[ "0.8231864", "0.8230908", "0.8188341", "0.8175699", "0.8157209", "0.8117434", "0.80875933", "0.80693007", "0.8057325", "0.79855186", "0.7979528", "0.79351777", "0.7892738", "0.7889967", "0.7879773", "0.7852498", "0.78483856", "0.7766263", "0.7760869", "0.7723347", "0.7720615"...
0.81546724
5
Adds a field for a maximum precision floating point number.
def e9Xf(YKHO, mWFP, x3A7=False): if YKHO._have_logged: raise RuntimeError('Cannot add fields after logging has started.') mWFP = str(mWFP) TVTK = max(len(mWFP), 24) Dyub = '{: .17e}' EmyI = '{: .16e}' YKHO._field_names.append(mWFP) YKHO._field_formats.append((TVTK, ilc9, Dyub, EmyI)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yjSp(ABDL, uBsB):\n return float(ABDL) * uBsB / 10.0", "def jOGD(YKHO, mWFP, TVTK=9, x3A7=False):\n if YKHO._have_logged:\n raise RuntimeError('Cannot add fields after logging has started.')\n mWFP = str(mWFP)\n TVTK = int(TVTK)\n TVTK = max(TVTK, len(mWFP), 7)\n Dyub = '{: .' + str(...
[ "0.59441394", "0.579989", "0.57804924", "0.5775495", "0.5762475", "0.57519263", "0.55415416", "0.5530851", "0.5454839", "0.5454464", "0.5424442", "0.54001266", "0.53827864", "0.53693813", "0.5292192", "0.5275924", "0.52746975", "0.52746975", "0.5256474", "0.5231602", "0.52289...
0.6669364
0
Adds a field showing a formatted time (given in seconds).
def r3Pm(YKHO, mWFP, x3A7=False): if YKHO._have_logged: raise RuntimeError('Cannot add fields after logging has started.') mWFP = str(mWFP) TVTK = max(len(mWFP), 8) Dyub = EmyI = None YKHO._field_names.append(mWFP) YKHO._field_formats.append((TVTK, tXn7, Dyub, EmyI)) if not x3A7: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ct8j(YKHO, ITS7):\n Wave = ITS7 // 3600\n ITS7 = ITS7 - Wave * 3600\n O66n = ITS7 // 60\n C6wh = ITS7 - O66n * 60\n return '%d:%d:%d' % (Wave, O66n, C6wh)", "def bFOe(C6wh):\n zbR6 = C6wh // 3600\n C6wh -= 3600 * zbR6\n eRPr = C6wh // 60\n C6wh -= 60 * eRPr\n return '%02dh%02dm%...
[ "0.6833884", "0.6812204", "0.6691628", "0.6662432", "0.65091133", "0.64945614", "0.64874995", "0.6466244", "0.6430194", "0.6426254", "0.6393009", "0.63896203", "0.63846636", "0.6375752", "0.6372314", "0.6366959", "0.63507336", "0.6300499", "0.62330073", "0.62271285", "0.62087...
0.63973784
10
Enables logging to screen if an output ``stream`` is passed in. Logging to screen can be disabled by passing ``stream=None``.
def LPZt(YKHO, wOb_=HwRy.stdout): if YKHO._have_logged: raise RuntimeError('Cannot configure after logging has started.') YKHO._stream = wOb_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LPZt(YKHO, wOb_):\n for DCgT in YKHO.handlers[:]:\n if isinstance(DCgT, G9jH.StreamHandler):\n YKHO.handlers.remove(DCgT)\n if wOb_ is not None:\n qnWX = G9jH.StreamHandler(wOb_)\n qnWX.addFilter(Cf8K())\n qnWX.setFormatter(G9jH.Formatter('%(message)s'))\n YK...
[ "0.6377226", "0.6117433", "0.6064815", "0.59997314", "0.5972256", "0.5893454", "0.57410854", "0.571663", "0.57003826", "0.56164306", "0.55964345", "0.5578915", "0.5546357", "0.5476954", "0.54725367", "0.5459003", "0.5457599", "0.54564285", "0.54116195", "0.5383457", "0.536107...
0.70919865
0
Remove all handlers from this event object.
def SiRx(YKHO): YKHO.__handlers = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OiiA(YKHO):\n for nVrR in YKHO.handlers:\n nVrR.remove()", "def OiiA(YKHO):\n for nVrR in YKHO.handlers:\n nVrR.remove()", "def fj_D(YKHO):\n for DCgT in YKHO.handlers:\n DCgT.close()", "def Yczo(YKHO):\n for syQw in YKHO.handlers_id:\n YKHO.obj.handler_disconnect(...
[ "0.7590513", "0.7590513", "0.71608186", "0.70596224", "0.70309407", "0.6837315", "0.6762741", "0.6760301", "0.67196596", "0.66944957", "0.6678199", "0.65662545", "0.6510765", "0.6505952", "0.6492501", "0.64834875", "0.6427863", "0.6406144", "0.6402371", "0.63706493", "0.63679...
0.71553874
3