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
Adds to every span node the list of tokens (token node IDs) that belong to it. SpanNode.tokens a list of `int` ids of `TokenNode`s
def JwLM(YKHO): RSyJ = oRi_(list) for RfCl in YKHO._spanning_relation_ids: TMKY = YKHO.edges[RfCl].target fcYx = YKHO.edges[RfCl].source RSyJ[fcYx].append(TMKY) for fcYx in RSyJ: YKHO.nodes[fcYx].tokens = RSyJ[fcYx]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CDy9(YKHO):\n RSyJ = oRi_(list)\n for RfCl in YKHO._spanning_relation_ids:\n TMKY = YKHO.edges[RfCl].target\n fcYx = YKHO.edges[RfCl].source\n RSyJ[TMKY].append(fcYx)\n for TMKY in RSyJ:\n YKHO.nodes[TMKY].spans = RSyJ[TMKY]", "def cQ5C(YKHO, uvMl, q2VQ, s2mk):\n ...",...
[ "0.7736828", "0.61374366", "0.609583", "0.60759944", "0.58065456", "0.57227135", "0.57088804", "0.57023436", "0.5640737", "0.5593042", "0.55628616", "0.5515745", "0.5444999", "0.5391665", "0.53902817", "0.537551", "0.5355724", "0.53296465", "0.52996624", "0.5273694", "0.52518...
0.7866296
0
returns a list of absolute filepaths for all files found in the given directory.
def dGBF(AGPF): puAn = Hy7s.path.abspath(AGPF) iumf = Hy7s.listdir(puAn) return [Hy7s.path.join(puAn, Ux0P) for Ux0P in iumf]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fv66(YKHO, AGPF):\n VoQp = [Hy7s.path.join(AGPF, xtX7) for xtX7 in Hy7s.listdir(AGPF) if not xtX7.startswith('.')]\n CNwg = [[Hy7s.path.join(rNxu, X2qJ) for X2qJ in Hy7s.listdir(rNxu)] for rNxu in VoQp]\n return CNwg", "def ZQnd(AGPF):\n xXFf = []\n for tk5Y, uRGD, RRlC in Hy7s.walk(AGPF):\n ...
[ "0.81050324", "0.80519843", "0.79594743", "0.7959108", "0.7946928", "0.7936476", "0.79087204", "0.79087204", "0.79087204", "0.7785415", "0.7750252", "0.76906574", "0.7511898", "0.75106066", "0.74836767", "0.7424115", "0.73264945", "0.73001796", "0.72954065", "0.72446567", "0....
0.7527842
12
Returns true if the resource has not been updated since the given timestamp.
def d8tr(YKHO, E3oo): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wxxj(YKHO):\n return YKHO.timestamp > 0", "def RPp2(YKHO, E3oo):\n NvZq = qcWV.datetime.now() - YKHO.cache_time\n return NvZq > E3oo", "def d8tr(YKHO, E3oo):\n if not Hy7s.path.exists(YKHO.__resource):\n return False\n return Hy7s.path.getmtime(YKHO.__resource) < E3oo", "def eWZe(YK...
[ "0.7913203", "0.75742966", "0.7541799", "0.7057558", "0.69103086", "0.6848536", "0.6776707", "0.67662865", "0.6734345", "0.6678252", "0.6654128", "0.66401654", "0.6638965", "0.6615578", "0.6613361", "0.6609859", "0.6608848", "0.6594054", "0.659306", "0.65477264", "0.6497396",...
0.66325146
13
Returns true if the resource has not been updated since the given timestamp.
def d8tr(YKHO, E3oo): if not Hy7s.path.exists(YKHO.__resource): return False return Hy7s.path.getmtime(YKHO.__resource) < E3oo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wxxj(YKHO):\n return YKHO.timestamp > 0", "def RPp2(YKHO, E3oo):\n NvZq = qcWV.datetime.now() - YKHO.cache_time\n return NvZq > E3oo", "def eWZe(YKHO):\n wzkt = ITS7.time() / 60\n return YKHO.last_update_time_in_minutes + YKHO.timeout < wzkt", "def HFd_(YKHO, E3oo):\n return YKHO._added...
[ "0.79159415", "0.7573777", "0.7060449", "0.69099295", "0.6851877", "0.67777663", "0.6768238", "0.673652", "0.6678873", "0.6656108", "0.66399854", "0.6638755", "0.66327274", "0.6617876", "0.66167015", "0.6611177", "0.66099775", "0.6595119", "0.6592914", "0.6547103", "0.6499417...
0.75428075
2
If true, no two list items may have the same value for this column.
def lje_(YKHO): return YKHO.properties.get('enforceUniqueValues', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PASr(YKHO, rdlD):\n return len(set(rdlD)) == 1 and rdlD[0] != YKHO.BLANK_CELL_CHAR", "def _lok(YKHO):\n return YKHO.a == YKHO.b or YKHO.a == YKHO.c or YKHO.b == YKHO.c", "def Vdqg(YKHO, Elif: 'UserList') -> bool:\n return not YKHO == Elif", "def ipvS(YKHO):\n for WKvO, LVAh in YKHO.fields:\n ...
[ "0.6726265", "0.65145135", "0.63198954", "0.6266274", "0.609761", "0.6085212", "0.5987421", "0.5958557", "0.5953424", "0.59279114", "0.59244746", "0.59122807", "0.5907172", "0.5904836", "0.5868663", "0.58338195", "0.58284104", "0.57980615", "0.57745165", "0.57627773", "0.5761...
0.5744341
25
Specifies whether the column values can used for sorting and searching.
def D9di(YKHO): return YKHO.properties.get('indexed', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p3l5(YKHO):\n if YKHO.column.orderable is not None:\n return YKHO.column.orderable\n return YKHO.table.orderable", "def OmV5(YKHO, BWXx):\n YKHO.tableWidget.setSortingEnabled(BWXx)", "def doM4(YKHO):\n return YKHO.VertEdit.Enabled", "def rm2T(YKHO) -> bool:\n if YKHO.sort_criteria:\...
[ "0.61216855", "0.5987958", "0.57315433", "0.5708952", "0.5580935", "0.5506374", "0.5459479", "0.53071624", "0.53053325", "0.52187115", "0.52124786", "0.5207485", "0.51880604", "0.51844394", "0.51833254", "0.5179272", "0.5110233", "0.50993276", "0.50675493", "0.49929795", "0.4...
0.0
-1
For site columns, the name of the group this column belongs to. Helps organize related columns.
def EqhF(YKHO): return YKHO.properties.get('columnGroup', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMWY(YKHO):\n return [YKHO.frame.columns[YRbF] for YRbF in YKHO.group_cols]", "def uOe2(YKHO) -> str:\n return YKHO._db_data.group", "def EYFl(YKHO):\n YKHO.column_name_list = YKHO.get_grid_column_names_by_order(YKHO.country_groups_grid_div_id)\n return YKHO.column_name_list", "def uOe2(YKHO)...
[ "0.6130151", "0.59105843", "0.5744882", "0.57420087", "0.57420087", "0.57420087", "0.57420087", "0.5541083", "0.55370325", "0.5502198", "0.5440606", "0.5434247", "0.54196864", "0.5416315", "0.5386398", "0.53482205", "0.53455323", "0.53253424", "0.53220016", "0.5309603", "0.53...
0.6828804
0
This column stores data from a list of choices.
def Acvy(YKHO): return YKHO.get_property('choice', Eit1())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mrPm(YKHO, mrPm: Iterable[Tuple[str, str]]):\n try:\n iter(mrPm)\n except TypeError:\n raise TypeError(\"'choices' isn't a valid iterable\")\n NUB2 = []\n for YRbF, (gyjO, xmyx) in enumerate(mrPm):\n NUB2.append((str(gyjO), str(xmyx)))\n if len(NUB2) < 2:\n raise Valu...
[ "0.5778576", "0.5667357", "0.5608106", "0.5593724", "0.55903304", "0.55620927", "0.555747", "0.5412634", "0.54106724", "0.5338997", "0.532426", "0.5252421", "0.52266175", "0.5205539", "0.51780534", "0.5171869", "0.51542026", "0.51495636", "0.5108218", "0.51066554", "0.5093219...
0.5948859
0
Make boxes transparent with colored edges & whiskers
def ANw1(aNZO, qfpW=None): for YRbF, h5p_ in enumerate(aNZO.artists): fvDH = h5p_.get_facecolor() if qfpW is not None: fvDH = qfpW h5p_.set_edgecolor(fvDH) h5p_.set_facecolor('None') for r845 in range(YRbF * 6, YRbF * 6 + 6): zFiD = aNZO.lines[r845] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P7vV(aNZO, **B2fa):\n c9P6 = B2fa.get('facecolor', 'white')\n YY_u = B2fa.get('edgecolor', 'black')\n hGHA = B2fa.get('edgewidth', 1)\n for YRbF, FlUN in enumerate(aNZO.artists):\n FlUN.set_edgecolor(YY_u)\n FlUN.set_facecolor(c9P6)\n FlUN.set_linewidth(hGHA)\n for r845 ...
[ "0.7440463", "0.61766535", "0.6111535", "0.6065841", "0.59877676", "0.5959805", "0.58755773", "0.58744353", "0.5854805", "0.5840496", "0.58148897", "0.58088255", "0.58048856", "0.5770017", "0.5763467", "0.5715623", "0.57142997", "0.56848603", "0.56848603", "0.56801414", "0.56...
0.51785356
84
Try to create a Panda object from a Person JSON
def fYH3(YKHO): c1z5 = YKHO.test_person.to_json() with YKHO.assertRaises(ValueError): YKHO.test_panda.from_json(c1z5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(cmPJ=dict()):\n YEnM = nj3W()\n YEnM.set_id(cmPJ['id'])\n YEnM.set_name(cmPJ['name'])\n YEnM.set_berechtigung(cmPJ['berechtigung'])\n YEnM.set_email(cmPJ['email'])\n YEnM.set_google_id(cmPJ['google_id'])\n YEnM.set_creation_date(nj3W.date_format(cmPJ['creation_date']))\n YEnM.set_l...
[ "0.5996296", "0.5979634", "0.58622855", "0.5853503", "0.57727855", "0.5741541", "0.57254004", "0.572146", "0.5708599", "0.57048583", "0.5691086", "0.5557344", "0.55462813", "0.5525846", "0.55258065", "0.5514457", "0.5462752", "0.54480493", "0.54466957", "0.54299176", "0.54297...
0.7743778
0
Confidence region for a t Distribution.
def lY0q(jQ3Z=1, hksT=0, NXpY=1, type='equal', Fv2L=0.95): Cwt5 = 1 - Fv2L if type == 'less': SREV = Cwt5 MDEf = 1.0 elif type == 'more': SREV = 0.0 MDEf = Fv2L elif type == 'equal': SREV = Cwt5 / 2 MDEf = 1 - Cwt5 / 2 CQoK = eA0O(SREV, df=jQ3Z, lowert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kdmC(YKHO, a1PO, jQ3Z):\n QgIN = YKHO.t_table\n lJ97 = round(uiJA(QgIN.index, jQ3Z), 0)\n ge2C = round(uiJA(QgIN.loc[lJ97], a1PO), 6)\n for fvDH in list(QgIN):\n if ge2C == round(QgIN[fvDH][lJ97], 6):\n la9G = (1.0 - float(fvDH)) / 2.0\n return la9G", "def k27h(YKHO):...
[ "0.63769203", "0.61940664", "0.5694016", "0.5622552", "0.5615678", "0.55996823", "0.5550412", "0.545191", "0.53653884", "0.5228462", "0.5147684", "0.51392156", "0.5124844", "0.51103204", "0.5053451", "0.5048654", "0.5024756", "0.5019782", "0.498935", "0.49811196", "0.49790162...
0.0
-1
Density Function for the t distribution. Returns the probability density value at the value x.
def JRYC(WKvO, jQ3Z=1, hksT=0, NXpY=1, Pdbb=None, RKD7=False): if RKD7: return a1PO.logpdf(WKvO, df=jQ3Z, loc=0, scale=1) else: return a1PO.pdf(WKvO, df=jQ3Z, loc=0, scale=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qjUr(YKHO, WKvO):\n return YKHO.wavefunction(WKvO) * YKHO.wavefunction(WKvO)", "def nrOS(YKHO, nJ9F: Union[float, np.ndarray], Dd_h: Union[float, np.ndarray], a1PO: float) -> uLKX[float, oyIN.ndarray]:\n return YKHO._model.exact_density(x0=nJ9F, xt=Dd_h, t=a1PO)", "def xo2u(YKHO, WKvO):\n epBp = o...
[ "0.72047466", "0.715641", "0.7087854", "0.7069435", "0.669381", "0.6673914", "0.6606843", "0.6569857", "0.64532936", "0.6391592", "0.6388787", "0.6346544", "0.63461787", "0.63461787", "0.6311127", "0.6293481", "0.6280864", "0.6265347", "0.6256383", "0.6227106", "0.62248474", ...
0.5879161
42
The quantile function for the t distribution. You provide a quantile (eg q=0.75) or array of quantiles, and it returns the value along the t distribution that corresponds to the qth quantile. So using a value of q=0.30 means that 30% of the values are below the returned value. So it essentially gives us the cut off poi...
def eA0O(vexM, jQ3Z=1, hksT=0, NXpY=1, Pdbb=None, vhyA=True, RKD7=False): if RKD7: raise NotImplementedError('Log option is not implemented yet.') elif vhyA: return a1PO.ppf(q=vexM, df=jQ3Z, loc=hksT, scale=NXpY) else: return a1PO.isf(q=vexM, df=jQ3Z, loc=hksT, scale=NXpY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yArv(a1PO: torch.tensor, vexM: float):\n G1Hx = 1 + round(0.01 * float(vexM) * (a1PO.numel() - 1))\n Aofo = a1PO.view(-1).kthvalue(G1Hx).values.item()\n return Aofo", "def GUy0():\n return oyIN.logspace(-5, 0, 100)", "def hpNL(YKHO, vexM):\n return None", "def hpNL(YKHO, vexM):\n return...
[ "0.69816756", "0.6878866", "0.68612754", "0.68612754", "0.66957897", "0.6676191", "0.66159856", "0.65270746", "0.64924747", "0.640851", "0.63872135", "0.6356319", "0.6315398", "0.6224654", "0.62139803", "0.6200898", "0.6194422", "0.6171296", "0.6164038", "0.6127959", "0.61034...
0.0
-1
The cumulative distribution function for the t distribution. You provide a value along the t distribution (eg x=3) or array of values, and it returns what proportion of values lie below it (the quantile) Alternatively, if you select lowertail=False, it returns the proportion of values that are above it.
def Xf84(WKvO, jQ3Z=1, hksT=0, NXpY=1, Pdbb=None, vhyA=True, RKD7=False): if vhyA and (not RKD7): return a1PO.cdf(WKvO, df=jQ3Z, loc=hksT, scale=NXpY) elif not vhyA and (not RKD7): return a1PO.sf(WKvO, df=jQ3Z, loc=hksT, scale=NXpY) elif vhyA and RKD7: return a1PO.logcdf(WKvO, df=jQ3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MukJ(a1PO, RfSx):\n return a1PO / RfSx if a1PO < RfSx else 1.0", "def s9Sb(YKHO, nsSB, hkxX):\n QyzB = tuKI()\n for XP5J in range(len(nsSB)):\n if QyzB < nsSB[XP5J]:\n return hkxX[XP5J]", "def Wiyw(jzdc):\n return eQSh.pareto.cdf((10000, 1000000), jzdc)", "def YzER(YKHO, WKv...
[ "0.64214677", "0.58980256", "0.58581764", "0.578782", "0.5727213", "0.5713745", "0.5632287", "0.5625939", "0.5619102", "0.55923116", "0.55904615", "0.55886066", "0.55855054", "0.5550487", "0.55484724", "0.5546477", "0.5542129", "0.5531803", "0.5520189", "0.5511479", "0.551113...
0.5408683
31
Swaps two of the words in the sentence randomly.
def InV2(YKHO, kfxB: list) -> str: oc34 = len(kfxB) qTh2 = '' fj40 = False WLLB = 0 while fj40 is not True and WLLB <= oc34 / 2: N7Ez = tuKI.randint(0, oc34 - 1) ewCu = 0 MMzB = tuKI.randint(0, oc34 - 1) while MMzB is N7Ez and ewCu <= oc34: MMzB = tuKI.ran...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xvo3(mWFP, WXkz=1):\n V22M = mWFP.split(' ')\n if len(V22M) <= 1:\n return mWFP\n for bGrB in range(WXkz):\n or8S = tuKI.randint(0, len(V22M) - 2)\n V22M[or8S], V22M[or8S + 1] = (V22M[or8S + 1], V22M[or8S])\n return ' '.join(V22M)", "def vvJF(yAmx, Ayfi=1):\n s2mk = wr3U(y...
[ "0.7502698", "0.74633485", "0.667398", "0.65114665", "0.6374586", "0.6282678", "0.6244169", "0.62069476", "0.610509", "0.60260564", "0.5981666", "0.5975359", "0.5952929", "0.5902227", "0.58991504", "0.5873016", "0.5860813", "0.5833129", "0.58024293", "0.57630634", "0.5759819"...
0.75956345
0
Convert the zipped SQL file with the market data to a Parquet file.
def d98v(): G9jH.basicConfig(format='%(levelname)-8s | %(asctime)s | %(name)s: %(message)s', level=G9jH.INFO) Zosi, kmfe = i11j() if not kmfe.exists(): kmfe.mkdir() DtVu = kmfe / (Zosi.stem + '.parquet') I26_ = VhTW(Zosi) I26_.load_data() nPrm = x7G4(I26_) del I26_ bo34.info...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yxrg(eZ_W, UXEK):\n jQ3Z = rLdf.read_csv(eZ_W)\n jQ3Z.to_parquet(UXEK)", "def txbX(nPrm):\n tyNF = Xugt.Table.from_pandas(nPrm)\n sqRO.write_to_dataset(tyNF, root_path=Hy7s.path.join(Hy7s.getcwd(), HLHo['PARQUET_BASE_PATH']), partition_cols=['YEAR', 'MONTH', 'DAY'])\n bo34.info('Input file has...
[ "0.69544196", "0.688331", "0.66062194", "0.6543609", "0.65411806", "0.651528", "0.6312932", "0.62374306", "0.61467576", "0.60214126", "0.5905973", "0.58870256", "0.5835542", "0.5748705", "0.5724191", "0.56720704", "0.56479406", "0.5627407", "0.5555396", "0.5447365", "0.544616...
0.87257946
0
Return the name of the entity.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWCk(YKHO):\n return YKHO.__entity_name", "def tWCk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'entity_name')", "def tWCk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'entity_name')", "def mWFP(YKHO):\n return '{} {}'.format(YKHO._vehicle_name, YKHO._entity_name)", "def qpoq() -...
[ "0.8988081", "0.830123", "0.830123", "0.7981105", "0.7968869", "0.75547564", "0.7544363", "0.753696", "0.753696", "0.753696", "0.75339216", "0.7524735", "0.74966395", "0.74897224", "0.7478738", "0.74753976", "0.74632776", "0.7451028", "0.7451028", "0.7451028", "0.7451028", ...
0.0
-1
Return the device state attributes.
def R1i3(YKHO): if YKHO.hass.data[Sugg][_ucB].event is None: return None return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attrs", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._...
[ "0.93173087", "0.9245708", "0.92207897", "0.92147964", "0.92147964", "0.9210798", "0.9210798", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", ...
0.0
-1
Test exception is thrown when the jar file is missing.
def wNKS(YKHO): jzdc = YKHO.make_target('a/b', qyGl) Wlo8 = y0kx(YKHO.pants_workdir) zSRn = 'ivy/jars/org.x/lib/x-1.0.jar' DNB3 = kCPj(qzsA(org='org', name='x', rev='1.0'), cache_path='somewhere', pants_path=Hy7s.path.join(YKHO.pants_workdir, zSRn)) Wlo8.add_jars_for_targets([jzdc], 'default', [DNB3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XVOU(YKHO, eDY2):\n JkyN = '/no/jar/here/' + spYX.JUNIT_JAR\n qIxc = IAK_(junit_path=JkyN, hamcrest_path=oQ9a)\n with trZe.raises(cG7t.PlugError) as _n4O:\n eDY2.parse_args(qIxc)\n assert '{} is not a file'.format(JkyN) in str(_n4O.value)", "def rElM(YKHO, eDY2):\n JkyN = '/no/jar/here/...
[ "0.7110956", "0.673989", "0.6660955", "0.66515625", "0.65470475", "0.6524355", "0.65017956", "0.64401406", "0.639584", "0.63760686", "0.6353104", "0.6333339", "0.6288438", "0.62816596", "0.6264847", "0.6260693", "0.6259397", "0.6221644", "0.61755407", "0.61616945", "0.6154064...
0.0
-1
Extract value from a pytorch tensor.
def XFw0(a1PO): if isinstance(a1PO, ht2j.Tensor): return a1PO.item() return a1PO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hAEw(wEf2: torch.Tensor):\n return wEf2.item()", "def BWXx(YKHO):\n if not YKHO.isscalar():\n raise ValueError('value called on a non-scalar tensor.')\n else:\n return YKHO.defval", "def Zmkp(YKHO, _0VL):\n assert len(_0VL) == 3, _0VL\n if YKHO.model_tensor is None:\n ra...
[ "0.7584539", "0.680358", "0.6726078", "0.6689959", "0.6441144", "0.6416382", "0.63908094", "0.6346679", "0.6310985", "0.6286801", "0.6278813", "0.62407583", "0.62171876", "0.62007225", "0.6190445", "0.6089136", "0.6016434", "0.59737873", "0.59241414", "0.5919827", "0.591872",...
0.6603736
4
Generates a random string
def c2Yh(zNig=6, gLiZ=vIwR.ascii_uppercase + vIwR.digits): return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig)))
{ "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 C6M2():\n KCHu = RW31.random_bytes(100)\n return _3An(KCHu)", "def _yz_(...
[ "0.85014915", "0.8366145", "0.8131259", "0.80346197", "0.7969227", "0.79116094", "0.7878069", "0.7839492", "0.77557343", "0.77436584", "0.77285564", "0.77165174", "0.77063763", "0.7690905", "0.7674214", "0.76599663", "0.7651333", "0.7634878", "0.7609182", "0.7585954", "0.7579...
0.0
-1
Write json to file. This function is for debugging purpose only.
def iaXM(gIsw, zgjV): B6oO.test_write_to_file_file_name(gIsw) B6oO.test_var_type(zgjV, 'json_data', (dict, list)) print(f' Writing json to `{gIsw}`...') try: GkAb(gIsw).parent.mkdir(parents=True, exist_ok=True) except PermissionError: print(f"I don't have permission to create {gIs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lsrz(YKHO, Mu0k=None):\n HeoJ = qQXR.dumps(YKHO.json_dict, indent=2)\n YKHO._write_json_text(HeoJ, Mu0k)", "def VacN(YKHO):\n with open(YKHO._file_path, 'w') as eHNT:\n qQXR.dump(YKHO._content, eHNT, indent=4, separators=None, encoding='utf-8', sort_keys=False)", "def Lsrz(YKHO, ytgA, **c_s...
[ "0.8343098", "0.82871974", "0.7876471", "0.78309596", "0.78165233", "0.7802871", "0.7802871", "0.77876925", "0.77738833", "0.7746452", "0.77296686", "0.7711171", "0.7703292", "0.7697258", "0.7642684", "0.7596881", "0.75781447", "0.7571781", "0.75679815", "0.75622076", "0.7522...
0.7301848
46
Sets the learning rate to the initial LR decayed by 10 after args.lr_decay_step steps
def e_63(K0do, qIxc, qtWj): tspZ = qIxc.learning_rate * 0.1 ** (qtWj // qIxc.lr_decay_step) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sIgb(YKHO):\n if YKHO.FLAGS.learning_rate_decay is 'exponential':\n YKHO.learning_rate = ZylS.train.exponential_decay(YKHO.FLAGS.learning_rate, YKHO.global_step, YKHO.FLAGS.decay_steps, YKHO.FLAGS.decay_rate)\n else:\n YKHO.learning_rate = YKHO.FLAGS.learning_rate", "def e_63(K0do, tspZ, ...
[ "0.7788797", "0.7731507", "0.7573828", "0.7537865", "0.75235254", "0.75075626", "0.75022215", "0.74724704", "0.74616647", "0.74616647", "0.7435772", "0.7427893", "0.7414677", "0.74139524", "0.7404863", "0.739486", "0.7387398", "0.7381159", "0.73613435", "0.736105", "0.7357521...
0.7511394
5
Get the queue for the given task name
def CqEO(YKHO, VsgD): for mWFP, gGq6 in YKHO.queues.items(): if VsgD in gGq6: return mWFP return YKHO.default_queue
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mSQt(mWFP):\n c9NQ = iVGz.resource('sqs')\n return c9NQ.get_queue_by_name(QueueName=mWFP)", "def j_oG(VsgD):\n return xCjU.find_one({'name': VsgD})", "def Z80E(YKHO, mWFP):\n for a1PO in YKHO.tasks:\n if isinstance(mWFP, str):\n if a1PO.name == mWFP:\n return a1...
[ "0.76343167", "0.71001387", "0.70934874", "0.70853627", "0.6944676", "0.68942785", "0.68693787", "0.68387425", "0.6806787", "0.68044204", "0.67910147", "0.66736746", "0.6656947", "0.66534805", "0.66532665", "0.6644332", "0.6636157", "0.66341865", "0.6590256", "0.65869015", "0...
0.89769137
0
Validate text autoformatting via autopep8, yapf or black.
def n10Q(uaPq, F7xc, gJd6): VmJe, waHb = F7xc l5Ny, aEqx = oVGx(uaPq) SAs9.set('completions', ('provider_configuration', 'lsp', 'values', 'formatting'), uaPq) gJd6.wait(2000) VmJe.set_text(l5Ny) with gJd6.waitSignal(VmJe.completions_response_signal, timeout=30000): VmJe.document_did_chan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfdN(YKHO, Oieu: Linter, N1p7: Cursor, HeCJ: PetscDocStringImpl) -> None:\n super().check(Oieu, N1p7, HeCJ)\n YKHO._check_whitespace_formatting(HeCJ)\n return", "def nkEY(YKHO):\n _pQq = NW2f.StyleGuide(quiet=True)\n Aofo = _pQq.check_files(['models/review.py'])\n YKHO.assertEqual(Aofo.tota...
[ "0.6091317", "0.60864246", "0.60140675", "0.59913146", "0.59913146", "0.59809816", "0.59267676", "0.58772355", "0.5802408", "0.5787021", "0.5776831", "0.5770846", "0.5768626", "0.572012", "0.5695637", "0.56947196", "0.56771845", "0.56616163", "0.566089", "0.56472653", "0.5640...
0.0
-1
Check if there are queens on the board lying on a column which attack each other. This would happen if more than one queen lies on the same column on the board.
def oeUa(iBIi): usx6, ZLJ_ = (len(iBIi), len(iBIi[0])) for iVRZ in range(ZLJ_): UHFx = 0 for rdlD in range(usx6): if iBIi[rdlD][iVRZ] == 1: UHFx += 1 if UHFx > 1: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQiv(fvDH, OHLN):\n if fvDH in OHLN:\n return False\n elif any([abs(fvDH - iIDh) == len(OHLN) - d6pt for d6pt, iIDh in enumerate(OHLN)]):\n return False\n else:\n return True", "def gE3_(iBIi):\n usx6, ZLJ_ = (len(iBIi), len(iBIi[0]))\n for rdlD in range(usx6):\n if...
[ "0.7543181", "0.74735725", "0.73940665", "0.7185003", "0.71080774", "0.70699245", "0.6982467", "0.69613665", "0.69524795", "0.68901414", "0.688677", "0.687768", "0.68603015", "0.6845563", "0.6841511", "0.683381", "0.683381", "0.68275297", "0.68275297", "0.68232054", "0.681022...
0.7831585
0
Test the functionality of the `on_same_domain` function. It should return True if the URLs given are on the same domain, or False if they aren't.
def wYyq(YKHO): YKHO.assertTrue(GI4o('https://google.com/a/b', 'http://sub-domain.google.com?time=0400'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tCJx(YKHO):\n YKHO.assertFalse(GI4o('https://google.com', 'https://google.goggle.com/google.com/google'))", "def vwhK(zH0S, Z6vV):\n return OPd_.extract(zH0S).domain == OPd_.extract(Z6vV).domain", "def K5iE(zH0S, Z6vV):\n return KVWQ.urlparse(zH0S).netloc == KVWQ.urlparse(Z6vV).netloc", "def vwh...
[ "0.7675396", "0.7381898", "0.73564583", "0.73101443", "0.7293069", "0.684061", "0.6776624", "0.6290789", "0.6282609", "0.6263146", "0.6179027", "0.60617447", "0.60430825", "0.5931026", "0.5916494", "0.5884555", "0.58342385", "0.58142614", "0.5797016", "0.56856847", "0.5599009...
0.80228186
0
Test the `on_same_domain` function returns false for two URLs which happen to be on different domains.
def tCJx(YKHO): YKHO.assertFalse(GI4o('https://google.com', 'https://google.goggle.com/google.com/google'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wYyq(YKHO):\n YKHO.assertTrue(GI4o('https://google.com/a/b', 'http://sub-domain.google.com?time=0400'))", "def vwhK(zH0S, Z6vV):\n return OPd_.extract(zH0S).domain == OPd_.extract(Z6vV).domain", "def vwhK(zH0S, Z6vV):\n zH0S = KVWQ(zH0S)\n Z6vV = KVWQ(Z6vV)\n return zH0S.netloc == Z6vV.netlo...
[ "0.78632414", "0.7516597", "0.7492658", "0.7477833", "0.7451178", "0.7025151", "0.6820861", "0.66619194", "0.63043463", "0.6222067", "0.6196874", "0.6125914", "0.60356987", "0.6034138", "0.60099405", "0.5993109", "0.5981744", "0.5955817", "0.5875143", "0.5775519", "0.57747775...
0.87000537
0
Convert time part of a datetime object into minutes
def WPTH(YKHO, qcWV): return qcWV.hour * 60.0 + qcWV.minute + qcWV.second / 60
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GrIR(ITS7):\n return int(ITS7 / 60)", "def TwNW(E3oo):\n if len(E3oo) == 5:\n return int(E3oo[0]) * 600 + int(E3oo[1]) * 60 + int(E3oo[3]) * 10 + int(E3oo[4])\n return None", "def wKbE(ITS7):\n return g6xZ(ITS7).minute", "def QBVI(AbGy):\n O66n = AbGy.seconds // 60\n return O66n"...
[ "0.7721607", "0.7549755", "0.74434644", "0.7396315", "0.7253915", "0.7201473", "0.7044733", "0.69922626", "0.6844657", "0.66715306", "0.6645723", "0.66333866", "0.6624911", "0.6615479", "0.6591979", "0.65866977", "0.6574264", "0.65665936", "0.65396136", "0.6530093", "0.649631...
0.7865296
0
Convert time stamp to datetime
def QwCy(YKHO, G91o): return bifY.parse_date(G91o)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def netS(VwNh):\n BWXx = qcWV.fromtimestamp(VwNh)\n return BWXx.strftime('%Y-%m-%d %H:%M:%S')", "def wbtj(E3oo):\n return qcWV.fromtimestamp(E3oo * 0.001, tz=rIAI.utc)", "def F0Fn(i8WE):\n format = '%Y-%m-%d %H:%M:%S'\n return qcWV.strptime(i8WE, format)", "def F0Fn(nPrm):\n try:\n r...
[ "0.7251719", "0.72310764", "0.721382", "0.70236796", "0.7005531", "0.68940043", "0.6857499", "0.6857158", "0.6839591", "0.6839152", "0.6834405", "0.6812984", "0.67844856", "0.6733536", "0.67028576", "0.6634553", "0.66029686", "0.6572502", "0.6570248", "0.6550068", "0.6539681"...
0.6550962
19
Computes topk accuracy for all values of k
def vjyh(hlel: Tensor, pan_: Tensor, hz5a: Iterable=(1,)) -> x1iM[llWB]: Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = ht2j.topk(hlel, Gq8e, dim=1, largest=True, sorted=True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ivK8(hlel, pan_, hz5a=(5, 10)):\n Gq8e = max(hz5a)\n Ep8u = pan_.size(0)\n bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True)\n ...
[ "0.8161203", "0.812069", "0.8030977", "0.7945338", "0.7859936", "0.7857365", "0.78569627", "0.7844462", "0.7844462", "0.7838626", "0.7829203", "0.78263384", "0.7820126", "0.78166324", "0.7815025", "0.7812451", "0.7812451", "0.7812451", "0.7812451", "0.7812451", "0.7812451", ...
0.0
-1
Set model weights from a list of NumPy ndarrays.
def sNuA(C3ST, _mSQ: Weights) -> None: xA7f = U8Lr({G1Hx: ht2j.Tensor(oyIN.atleast_1d(Ty9i)) for G1Hx, Ty9i in zip(C3ST.state_dict().keys(), _mSQ)}) C3ST.load_state_dict(xA7f, strict=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L1EB(YKHO, _mSQ):\n YKHO.weights = _mSQ.reshape(YKHO.output_size, YKHO.input_size + 1)", "def sNuA(YKHO, _mSQ):\n SqIz = []\n for gEmA in YKHO.layers:\n ThSC = len(gEmA.weights)\n PvFr = _mSQ[:ThSC]\n for yK2S, yzQ0 in zip(gEmA.weights, PvFr):\n SqIz.append((yK2S, yzQ...
[ "0.7287452", "0.720378", "0.69648415", "0.68350023", "0.68350023", "0.6832923", "0.6671743", "0.6636685", "0.6602762", "0.6557076", "0.65108436", "0.64079946", "0.6388806", "0.6365956", "0.63073003", "0.62976676", "0.6257824", "0.61736673", "0.6138969", "0.6133557", "0.605531...
0.5869625
26
Returns a list of all available categories for jokes
def ao3P(WY3t): LeZt = [] if WY3t == True: LeZt = list(map(lambda Z9rn: Z9rn.name, qZuN.all())) else: LeZt = iEAl.categories() k8wH.echo(LeZt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNmM(YKHO):\n raise NotImplementedError()", "def LeZt(YKHO):\n h50c = YKHO.game_categories.all()\n return [gigf.category for gigf in h50c]", "def LQuW():\n try:\n Aofo = {'success': True, 'categories': LH1I()}\n return pz3A(Aofo)\n except Exception as exp:\n eTsH(kLQb.co...
[ "0.70718956", "0.7055565", "0.7025372", "0.7023024", "0.6946695", "0.6923377", "0.6890132", "0.6855126", "0.68485403", "0.68349046", "0.6823872", "0.68035126", "0.6794125", "0.67746794", "0.6709996", "0.6683452", "0.6656619", "0.6642117", "0.6640448", "0.66313064", "0.6626907...
0.8009729
0
Stringify a file size in humanfriendly terms.
def ONS5(mLGw): if mLGw > 2 ** 30: return '%0.2fGB' % (mLGw / 2 ** 30) elif mLGw > 2 ** 20: return '%0.2fMB' % (mLGw / 2 ** 20) elif mLGw > 2 ** 10: return '%0.2fkB' % (mLGw / 2 ** 10) else: return '%d bytes' % mLGw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UzwC(zNig: float) -> str:\n for WKvO in ['bytes', 'KB', 'MB', 'GB', 'TB']:\n if zNig < 1024.0:\n return f'{zNig:3.1f} {WKvO}'\n zNig /= 1024.0\n return str(zNig)", "def NDrd(zNig):\n if zNig < 128:\n return f'{zNig}B'\n if zNig < 1024 * 1024:\n return f'{zNi...
[ "0.84238297", "0.80506366", "0.79346746", "0.78384817", "0.7835554", "0.7744606", "0.7648322", "0.75072217", "0.7478509", "0.7470998", "0.7423861", "0.7253696", "0.72401667", "0.7216826", "0.72135454", "0.7212507", "0.7205664", "0.7191572", "0.71834743", "0.71823585", "0.7153...
0.7511718
7
Helper function that strips SNAPPY suffixes for samples.
def h7he(eHMM): if eHMM.count('-') >= 3: s2mk = eHMM.split('-') return '-'.join(s2mk[:-3]) else: return eHMM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ffYi(KCol):\n return [mWFP.split('.', 1)[0] for mWFP in KCol.samples]", "def qmW4(YKHO, WKvO) -> FgBH:\n pass", "def vgd6(KCHu, iRsl):\n for ZI14 in iRsl:\n if KCHu.endswith(ZI14):\n return KCHu.rstrip(ZI14)\n return KCHu", "def uj6L():\n assert MmyZ('ts_some_name') == 's...
[ "0.66986114", "0.6041791", "0.60292345", "0.5969765", "0.5866886", "0.58508855", "0.57409376", "0.5634408", "0.56153053", "0.55746335", "0.55290014", "0.5499426", "0.5485006", "0.5480491", "0.54698783", "0.54557645", "0.5394554", "0.5351796", "0.5341004", "0.53018576", "0.528...
0.5115586
44
Return ``int``value sex for the given ``sample`` in ``pedigree``.
def jM_a(YKHO, mvm2): for zFiD in YKHO.pedigree: if zFiD['patient'] == mvm2: return zFiD['sex']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jM_a(iSsU):\n VPDi, mKxZ = (0, 0)\n if iSsU == 'w':\n mKxZ = 1\n if iSsU == 'm':\n VPDi = 1\n return (VPDi, mKxZ)", "def YE6S(CBIr: User) -> Y8W3:\n return mv1M.query.filter_by(id=CBIr.id).first().sex", "def E197(rZoM):\n if rZoM == 'Male':\n return 1\n elif rZoM =...
[ "0.56973296", "0.54846776", "0.5469207", "0.53206444", "0.5252537", "0.5199721", "0.5187707", "0.51743245", "0.5155948", "0.508896", "0.5058736", "0.5040613", "0.50268304", "0.49879766", "0.4986793", "0.4895978", "0.4880101", "0.48252788", "0.48157886", "0.47743392", "0.47419...
0.77355
0
Return absolute URL for the detail view of this case.
def hlzF(YKHO): return gxEw('variants:case-detail', kwargs={'project': YKHO.project.sodar_uuid, 'case': YKHO.sodar_uuid})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlzF(YKHO):\n return gxEw('model-detail-view', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return gxEw('model-detail-view', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return gxEw('jewelry_detail', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return gxEw('bl-detail', args=[str(YKHO.id)])", "def hl...
[ "0.82196677", "0.82196677", "0.8127263", "0.8033525", "0.79573077", "0.79555786", "0.79096377", "0.7848949", "0.7843553", "0.7840721", "0.7835712", "0.7831441", "0.7823432", "0.77770233", "0.777177", "0.77505463", "0.7738156", "0.77301276", "0.77274215", "0.77175987", "0.7701...
0.77647483
15
Return het./hom. ratio on chrX for ``sample``.
def pTPu(YKHO, mvm2): try: il_l = YKHO.latest_variant_set if not il_l: return -1 else: wORd = il_l.variant_stats.sample_variant_stats.get(sample_name=mvm2) return wORd.chrx_het_hom except vDhb.variant_stats.RelatedObjectDoesNotExist: return -1....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pTPu(YKHO, mvm2):\n RhGk = YKHO.sample_to_case().get(mvm2)\n if not RhGk:\n return 0.0\n else:\n return RhGk.chrx_het_hom_ratio(mvm2)", "def MJ1z():\n XP5J = 1013.25 * rYO3.mbar\n ovGo = 20.0 * rYO3.degC\n yzQ0 = 0.012 * rYO3.dimensionless\n uL0C = C5r2(XP5J, ovGo, yzQ0)\n ...
[ "0.8137299", "0.58489174", "0.58479124", "0.5702655", "0.55716866", "0.5521785", "0.549853", "0.5442392", "0.5435246", "0.54341346", "0.5417821", "0.54079825", "0.53776604", "0.53688204", "0.53670436", "0.5362167", "0.5355255", "0.5337289", "0.53318447", "0.53002083", "0.5291...
0.7672608
1
Shorten ``text`` to ``max_chars`` characters if longer.
def SMQ3(YKHO, ai8o=50): if len(YKHO.notes) > ai8o: return YKHO.notes[:ai8o] + '...' else: return YKHO.notes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R_Hu(YKHO, ai8o=50):\n if len(YKHO.text) > ai8o:\n return YKHO.text[:ai8o] + '...'\n else:\n return YKHO.text", "def G34s(l5Ny: str='', wzH_: int=50) -> str:\n return l5Ny if len(l5Ny) < wzH_ else l5Ny[:wzH_]", "def tv_L(YKHO, l5Ny, E0wO):\n import textwrap\n if len(l5Ny) <= E0...
[ "0.81508243", "0.74331146", "0.7375322", "0.73616964", "0.735186", "0.7239252", "0.71748984", "0.69174826", "0.67670983", "0.6737731", "0.6695401", "0.6640852", "0.6619495", "0.6559657", "0.65574646", "0.6411755", "0.63624376", "0.62897474", "0.62751883", "0.6255699", "0.6079...
0.69486713
7
Shorten ``text`` to ``max_chars`` characters if longer.
def R_Hu(YKHO, ai8o=50): if len(YKHO.comment) > ai8o: return YKHO.comment[:ai8o] + '...' else: return YKHO.comment
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R_Hu(YKHO, ai8o=50):\n if len(YKHO.text) > ai8o:\n return YKHO.text[:ai8o] + '...'\n else:\n return YKHO.text", "def G34s(l5Ny: str='', wzH_: int=50) -> str:\n return l5Ny if len(l5Ny) < wzH_ else l5Ny[:wzH_]", "def tv_L(YKHO, l5Ny, E0wO):\n import textwrap\n if len(l5Ny) <= E0...
[ "0.81508243", "0.74331146", "0.7375322", "0.73616964", "0.735186", "0.71748984", "0.69486713", "0.69174826", "0.67670983", "0.6737731", "0.6695401", "0.6640852", "0.6619495", "0.6559657", "0.65574646", "0.6411755", "0.63624376", "0.62897474", "0.62751883", "0.6255699", "0.607...
0.7239252
5
Shorten ``text`` to ``max_chars`` characters if longer.
def R_Hu(YKHO, ai8o=50): if len(YKHO.text) > ai8o: return YKHO.text[:ai8o] + '...' else: return YKHO.text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G34s(l5Ny: str='', wzH_: int=50) -> str:\n return l5Ny if len(l5Ny) < wzH_ else l5Ny[:wzH_]", "def tv_L(YKHO, l5Ny, E0wO):\n import textwrap\n if len(l5Ny) <= E0wO:\n return l5Ny\n return textwrap.wrap(l5Ny, E0wO - 3)[0] + '...'", "def p8Qn(l5Ny: str, wzH_: int) -> str:\n if len(l5Ny)...
[ "0.7433514", "0.73762196", "0.7362364", "0.7352537", "0.7238451", "0.717513", "0.6948463", "0.69172263", "0.6767947", "0.6737989", "0.6695083", "0.664076", "0.6618207", "0.65601224", "0.6557214", "0.64129096", "0.63612473", "0.6288558", "0.6275656", "0.62556547", "0.6081927",...
0.8150601
0
Return true if no flags are set and the model can be deleted.
def dbu7(YKHO): return not any((YKHO.flag_bookmarked, YKHO.flag_candidate, YKHO.flag_final_causative, YKHO.flag_for_validation, YKHO.flag_molecular != 'empty', YKHO.flag_visual != 'empty', YKHO.flag_validation != 'empty', YKHO.flag_phenotype_match != 'empty', YKHO.flag_summary != 'empty'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pl9F(YKHO):\n return True", "def FLyC(YKHO, QePW, YEnM=None):\n return False", "def rSX6(YKHO, *qIxc, **B2fa):\n return False", "def FLyC(YKHO, QePW, YEnM=None):\n return False", "def FLyC(YKHO, QePW, YEnM=None):\n return False", "def FLyC(YKHO, QePW, YEnM=None, *qIxc, **B2fa):\n re...
[ "0.7620562", "0.70751935", "0.70427245", "0.6986205", "0.6986205", "0.6955778", "0.6924368", "0.6896284", "0.68844134", "0.6858396", "0.6839724", "0.6814502", "0.67255145", "0.67234", "0.6702387", "0.66745067", "0.6631508", "0.65386313", "0.6518957", "0.6512865", "0.6464405",...
0.5711179
66
Return whether prioritization is enabled in this query.
def GD29(YKHO): return all((YKHO.query_settings.get('prio_enabled'), YKHO.query_settings.get('prio_algorithm'), YKHO.query_settings.get('prio_hpo_terms', [])))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ju5x(YKHO):\n return False", "def bgwu(YKHO):\n return YKHO.priority is not None and YKHO.priority >= 0", "def ztVM(YKHO):\n return _VfD.Event_isSetPriority(YKHO)", "def JjsE(YKHO) -> bool:\n return YKHO._does_apply", "def etR_(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'enabled')", ...
[ "0.5998744", "0.58560574", "0.5708423", "0.56286", "0.56111073", "0.56111073", "0.56111073", "0.56111073", "0.56111073", "0.56111073", "0.56111073", "0.56111073", "0.5592923", "0.5592923", "0.5592923", "0.5592923", "0.5592923", "0.5592923", "0.55900127", "0.55231154", "0.5518...
0.8691473
0
Function to extract a number out from a string which contains it.
def mkJm(WKvO): return ZbWC.findall('\\d+', WKvO)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XFjE(YKHO, vIwR):\n KCHu = ZbWC.findall('\\\\d+', vIwR)\n return int(''.join(KCHu))", "def bKmb(YKHO, vIwR):\n r8hN = ZbWC.search('\\\\d+$', vIwR)\n if r8hN is not None:\n return int(r8hN.group())\n else:\n return 0", "def mkJm(GIN8):\n return int(ZbWC.match(nWni, GIN8).grou...
[ "0.8072367", "0.75418496", "0.75144076", "0.7496383", "0.7478208", "0.73512137", "0.72836953", "0.72720057", "0.7259342", "0.7220392", "0.70938265", "0.7034191", "0.6942942", "0.6891903", "0.68245727", "0.6779717", "0.676908", "0.6764738", "0.67459965", "0.66962653", "0.66961...
0.7736045
1
Function to remove redundant whitespaces in input string.
def SA9M(WKvO): return ' '.join(WKvO.split())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZsa(NPoT):\n return ZbWC.sub('\\\\s+', ' ', NPoT).strip()", "def Yczo(KCHu):\n return ZbWC.sub('\\\\s+', ' ', KCHu.strip())", "def YF9t(vIwR):\n vIwR = ZbWC.sub('(?m)^\\\\s+', '', vIwR)\n return ZbWC.sub('(?m)\\\\s+$', '', vIwR)", "def EQOQ(vIwR):\n return vIwR.replace(' ', '')", "def Y...
[ "0.8103806", "0.80929846", "0.7894493", "0.78638357", "0.7787533", "0.769301", "0.7564099", "0.7520941", "0.7483926", "0.74709374", "0.7388469", "0.7385829", "0.7383737", "0.7365095", "0.735388", "0.7318697", "0.73082674", "0.73073363", "0.7289824", "0.7278208", "0.72732025",...
0.7069948
40
Converts a pytorch tensor into an image
def FLWL(a1PO): return TTda.transforms.ToPILImage()(a1PO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zy6L(vhpA):\n yInu = Ymkf.ToPILImage()\n LNo8 = vhpA.cpu().clone()\n LNo8 = LNo8.squeeze(0)\n LNo8 = yInu(LNo8)\n return LNo8", "def uaVh(VXjJ):\n a1PO = Ymkf.ToPILImage()\n return a1PO(VXjJ)", "def RALQ(vhpA):\n LNo8 = vhpA.to('cpu').clone().detach()\n LNo8 = LNo8.numpy().squeez...
[ "0.80810976", "0.8067614", "0.78449786", "0.7781439", "0.75836545", "0.7562613", "0.7443037", "0.73652774", "0.73300713", "0.72115", "0.71705633", "0.7156045", "0.6914949", "0.6898882", "0.68391126", "0.68168753", "0.6816416", "0.681472", "0.6780448", "0.67406064", "0.6735992...
0.78766614
2
Test exception is raised if the array variable shape is incorrect
def IICb(YKHO, p6EX): with trZe.raises(bUh9, match='has declared shape \\(1, 2\\) but actual shape \\(2, 2\\)'): p6EX('complex array A[1, 2] =\n\t-1.0+1.0j, 2.7e5+0.2e-5j\n\t-0.1-2j, 0.2-0.1j')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bun1(YKHO, mZ1z, HluG, qC1Y):\n if len(HluG) != qC1Y:\n raise xwhD('Shape=%s. Expected %i-D array for %s' % (repr(HluG), qC1Y, mZ1z))", "def GAXk():\n with trZe.raises(ValueError):\n wlOa(oyIN.ones((5, 4, 3)))", "def K_Zo(gyIm, vFGq, yHFJ, mWFP):\n bw3F(vFGq, gyIm.dtype, mWFP)\n Y...
[ "0.79647946", "0.7354592", "0.73433805", "0.7172847", "0.710498", "0.70463026", "0.6996874", "0.6956707", "0.6945625", "0.69218117", "0.6918826", "0.6914766", "0.68975747", "0.6890942", "0.6889408", "0.6883319", "0.6879904", "0.6877337", "0.6861965", "0.6856137", "0.6851369",...
0.70921874
5
Sets and returns the `end_timestamp` of an index based on the timeranges of the documents present inside it.
def T4wF(YKHO, d6pt, c3_R): V_s1 = d6pt + '_' + str(c3_R) Uefw = d6pt + '.target_config' gbor = YKHO.client.get(index=Uefw, doc_type='config', id=c3_R)['_source']['begin_timestamp'] Tetj = YKHO.client.search(index=V_s1, body={'size': 0, 'aggs': {'end_timestamp': {'max': {'field': 'request_time'}}}})['ag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ldOB(YKHO, ldOB):\n YKHO._end_time_stamp = ldOB", "def Tetj(YKHO):\n return SiQn(YKHO.range().end())", "def Wkca(YKHO, Lafi: str, E3oo: int) -> None:\n hGI9 = BjOP + Lafi\n YKHO.add_value(hGI9, str(E3oo))", "def Gddx(YKHO, Gddx):\n YKHO._end_times = Gddx", "def M4HV(YKHO, M4HV):\n YKH...
[ "0.6461551", "0.6408989", "0.61016816", "0.60159326", "0.58986825", "0.5893411", "0.5893411", "0.5893411", "0.5844481", "0.5844481", "0.5759401", "0.5744888", "0.57037157", "0.5619158", "0.5611337", "0.559081", "0.5590375", "0.5590375", "0.5590375", "0.5590375", "0.5590375", ...
0.7659367
0
Closes connection with the elasticsearch server.
def hqgk(YKHO): i8WE.client.transport.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EM8p(YKHO):\n YKHO._elastic_db.bulk_index(YKHO._index_name, YKHO._doc_type, YKHO._data)\n YKHO._data = []\n HwRy.stdout.write(u'. [DONE]\\n')\n HwRy.stdout.write(u'ElasticSearch index name: {0:s}\\n'.format(YKHO._index_name))\n HwRy.stdout.flush()", "def DDI8(YKHO):\n YKHO.index.close()\n ...
[ "0.7196958", "0.6859846", "0.6448358", "0.6437342", "0.64199823", "0.6403143", "0.63199496", "0.62505233", "0.6234385", "0.6211198", "0.6185643", "0.6175678", "0.6136868", "0.6133922", "0.6133922", "0.6133922", "0.6133922", "0.6133922", "0.6133922", "0.6133922", "0.61247367",...
0.58992136
50
Backward pass for a single timestep of a vanilla RNN.
def H621(k2F8, wyyA): Jw7X, _cZE, swKn, OE75, NCls = (None, None, None, None, None) WKvO, P5vf, uN0m, XZ8U, mH3V, Fg_i = wyyA aUJK = (1 - P5vf * P5vf) * k2F8 Jw7X = oyIN.dot(aUJK, XZ8U.T) _cZE = oyIN.dot(aUJK, mH3V.T) NCls = oyIN.sum(aUJK, axis=0) swKn = oyIN.dot(WKvO.T, aUJK) OE75 = oyI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fIbT(YKHO, Ro40):\n pass", "def SU2j(YKHO, N77f):\n YKHO.opt.zero_grad()\n N77f.backward()\n YKHO.opt.step()", "def ZD5u(YKHO, zYcP):\n for vC9B in range(len(YKHO.layers) - 1, -1, -1):\n O4Oh = YKHO.activations[vC9B].backward(zYcP)\n zYcP = YKHO.layers[vC9B].backward(O4Oh)\n ...
[ "0.72582924", "0.7152384", "0.7079535", "0.70364827", "0.68903387", "0.6878717", "0.6846149", "0.6846149", "0.68310696", "0.68124175", "0.67877245", "0.67877245", "0.6688241", "0.6681934", "0.6673654", "0.66715366", "0.66653323", "0.66482764", "0.65927064", "0.6512077", "0.65...
0.6861673
6
Compute the backward pass for a vanilla RNN over an entire sequence of data.
def pGY7(GzWn, wyyA): Jw7X, dpPo, swKn, OE75, NCls = (None, None, None, None, None) '\n x, next_h, prev_h, Wx, Wh, b = cache\n dz = (1-next_h*next_h)*dnext_h\n # THIS ERROR IS SPREAD AMONG THE\n # np.dot(x, Wx) + np.dot(prev_h, Wh) + b)\n dx = np.dot(dz,W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fIbT(YKHO):\n YGRa = (YKHO.targets - YKHO.y) / YKHO.y.shape[0]\n for gEmA in reversed(YKHO.layers):\n YGRa = gEmA.backward_pass(YGRa)", "def ZD5u(YKHO, N77f):\n bmnz.my_timer.start_profile('BWD')\n tFH4 = N_FN()\n tFH4.set_training_stage(gcez.BWD)\n for F9UE in YKHO.client.chunk_base...
[ "0.70729333", "0.69903165", "0.6958207", "0.6950155", "0.6916186", "0.6916186", "0.68856996", "0.6878103", "0.6838837", "0.6783538", "0.6783538", "0.6774044", "0.67555124", "0.6736983", "0.66960055", "0.6673998", "0.6634201", "0.6626266", "0.6618638", "0.6590171", "0.65611655...
0.7060489
1
Backward pass for word embeddings. We cannot backpropagate into the words since they are integers, so we only return gradient for the word embedding matrix.
def _h_w(zYcP, wyyA): HFON = None WKvO, XcU5 = wyyA cFBq = XcU5.copy() oyIN.add.at(cFBq, WKvO, zYcP) HFON = cFBq - XcU5 return HFON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZD5u(YKHO, ICX2: Tensor) -> llWB:\n YKHO.b_grad = oyIN.sum(ICX2, axis=0)\n YKHO.w_grad = YKHO.inputs.T @ ICX2\n return ICX2 @ YKHO.w.T", "def P0TR(YKHO, yzQ0=None):\n Ro40 = YKHO.w\n return yzQ0 * Ro40 if yzQ0 is not None else Ro40", "def ZD5u(YKHO, iTph, tspZ=0.001):\n j8bE = oyIN.dot(iT...
[ "0.6913785", "0.6864387", "0.68118054", "0.67654765", "0.66550833", "0.6651812", "0.65430754", "0.65046024", "0.6402917", "0.6379707", "0.6260643", "0.6242716", "0.62360924", "0.62360924", "0.6209998", "0.61673504", "0.6162195", "0.6140693", "0.61107767", "0.6088412", "0.6079...
0.7696244
0
A numerically stable version of the logistic sigmoid function.
def m1Hg(WKvO): hQWV = WKvO >= 0 zgk2 = WKvO < 0 epBp = oyIN.zeros_like(WKvO) epBp[hQWV] = oyIN.exp(-WKvO[hQWV]) epBp[zgk2] = oyIN.exp(WKvO[zgk2]) tlxW = oyIN.ones_like(WKvO) tlxW[zgk2] = epBp[zgk2] return tlxW / (1 + epBp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))", "def m1Hg(WKvO):\n return ...
[ "0.84727824", "0.8418851", "0.8418851", "0.8418648", "0.8406039", "0.8406039", "0.8395496", "0.83875006", "0.8354437", "0.83412933", "0.83412933", "0.83412933", "0.83412933", "0.83412933", "0.83412933", "0.83299893", "0.83146125", "0.83126956", "0.83046055", "0.82958627", "0....
0.7900994
46
Forward pass for a single timestep of an LSTM. The input data has dimension D, the hidden state has dimension H, and we use a minibatch size of N.
def WmGa(WKvO, uN0m, jize, XZ8U, mH3V, Fg_i): P5vf, IAgj, wyyA = (None, None, None) ywwl, C7Ls = uN0m.shape ERi0 = oyIN.dot(WKvO, XZ8U) + oyIN.dot(uN0m, mH3V) + Fg_i tDEK = ERi0[:, :C7Ls] cDFU = ERi0[:, C7Ls:2 * C7Ls] LGEN = ERi0[:, 2 * C7Ls:3 * C7Ls] W3kq = ERi0[:, 3 * C7Ls:4 * C7Ls] YR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO = vhpA(WKvO).unsqueeze(1)\n WKvO = YKHO.cnn(WKvO)\n Ep8u = WKvO.shape[0]\n WKvO = WKvO.view(Ep8u, WKvO.shape[1] * WKvO.shape[2], WKvO.shape[3])\n WKvO = WKvO.permute(2, 0, 1)\n hlel = YKHO.rnn(WKvO)\n return hlel", "def xoDT(WKvO, OwND, XZ8U, mH3V, Fg_i):\n MK...
[ "0.65560275", "0.6527141", "0.650994", "0.64725894", "0.64116424", "0.63977146", "0.6358227", "0.63299626", "0.6287189", "0.6260743", "0.62393874", "0.6220493", "0.621685", "0.62128496", "0.61926734", "0.61668944", "0.6158258", "0.61381185", "0.61255854", "0.6092533", "0.6067...
0.6127442
18
Backward pass for a single timestep of an LSTM.
def zHEE(k2F8, Q9ud, wyyA): Jw7X, GzWn, Bc4p, swKn, OE75, NCls = (None, None, None, None, None, None) WKvO, YRbF, eHNT, z1Rg, Oa1e, uN0m, P5vf, jize, IAgj, XZ8U, mH3V, Fg_i = wyyA UWQ6 = oyIN.tanh(IAgj) M9GY = (1 - UWQ6 * UWQ6) * z1Rg * k2F8 Bc4p = M9GY + Q9ud CG54 = Oa1e * Bc4p jQ3Z = jize ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SU2j(YKHO, N77f):\n YKHO.opt.zero_grad()\n N77f.backward()\n YKHO.opt.step()", "def xtPt(GzWn, wyyA):\n Jw7X, dpPo, swKn, OE75, NCls = (None, None, None, None, None)\n ywwl, Kt_s, C7Ls = GzWn.shape\n Z1OU = wyyA[Kt_s - 1][0]\n lWPh = Z1OU.shape[1]\n k2F8 = GzWn\n Jw7X = oyIN.zeros(...
[ "0.68590873", "0.6858795", "0.6654086", "0.65926987", "0.6581532", "0.65500206", "0.65103906", "0.6488392", "0.64483684", "0.64483684", "0.6402425", "0.6387275", "0.6381484", "0.63745767", "0.63502514", "0.62679964", "0.6267557", "0.61945623", "0.61945623", "0.61814624", "0.6...
0.6397221
11
Backward pass for temporal affine layer.
def H286(zYcP, wyyA): WKvO, yzQ0, Fg_i, yvT9 = wyyA ywwl, Kt_s, lWPh = WKvO.shape E3D9 = Fg_i.shape[0] Jw7X = zYcP.reshape(ywwl * Kt_s, E3D9).dot(yzQ0.T).reshape(ywwl, Kt_s, lWPh) ncXl = zYcP.reshape(ywwl * Kt_s, E3D9).T.dot(WKvO.reshape(ywwl * Kt_s, lWPh)).T NCls = zYcP.sum(axis=(0, 1)) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qRTj(WKvO, yzQ0, Fg_i):\n ywwl, Kt_s, lWPh = WKvO.shape\n E3D9 = Fg_i.shape[0]\n yvT9 = WKvO.reshape(ywwl * Kt_s, lWPh).dot(yzQ0).reshape(ywwl, Kt_s, E3D9) + Fg_i\n wyyA = (WKvO, yzQ0, Fg_i, yvT9)\n return (yvT9, wyyA)", "def Kt1o(zYcP, wyyA):\n WKvO, yzQ0, Fg_i = wyyA\n Jw7X, ncXl, NCls...
[ "0.6915407", "0.6892761", "0.6835825", "0.6770653", "0.6764108", "0.6697073", "0.6653632", "0.6648822", "0.6611196", "0.6605598", "0.654563", "0.6542562", "0.6526736", "0.6525348", "0.65199816", "0.6436225", "0.63633186", "0.6347031", "0.63444525", "0.63386923", "0.63370657",...
0.7352023
0
Using empty value to the animal_name field
def q0jH(YKHO): nPrm = {'owner': 1, 'specie': 1, 'breed': 1, 'animal_name': ''} L03z = Vqo3(data=nPrm) YKHO.assertFalse(L03z.is_valid())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qm_j(YKHO):\n YKHO.name = ''", "def DhAv(YKHO):\n YKHO._name = YKHO.get_name().strip()", "def O3hM(Emd4, BWXx: str, Jyyj: ModelField) -> str:\n if Emd4.allow_empty is False:\n if isinstance(BWXx, str) and BWXx == '':\n raise ik99(field_name=Jyyj.name)\n return BWXx", "def vJ...
[ "0.6312162", "0.58489394", "0.5671751", "0.5647709", "0.56220937", "0.5548289", "0.5514891", "0.5487807", "0.548247", "0.54614806", "0.54554504", "0.54278016", "0.54191005", "0.53465295", "0.53429985", "0.53382736", "0.5315729", "0.53024226", "0.5300356", "0.5298862", "0.5296...
0.0
-1
Returns unique identifier for an ePortfolio element in a presentation.
def DaQ9(qvey): l5xh = qvey.find('contextId=') + len('contextId=') sCpJ = qvey[l5xh:] yqv8 = 0 g0up = sCpJ[yqv8] while g0up.isdigit(): yqv8 += 1 g0up = sCpJ[yqv8] sCpJ = sCpJ[:yqv8] return sCpJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tov7(TZ9E):\n return JSUj.PROP_ID(TZ9E)", "def PcbR(U6D_):\n y_o0 = {'OrgQuestion': 'ORGQ_ID', 'RelQuestion': 'RELQ_ID', 'RelComment': 'RELC_ID', 'Thread': 'THREAD_SEQUENCE'}\n if U6D_.tag in y_o0.keys():\n return U6D_.attrib[y_o0[U6D_.tag]]\n return None", "def cv0A(YKHO):\n o61b = Y...
[ "0.6081418", "0.5944249", "0.590192", "0.57796675", "0.5766189", "0.57641715", "0.56975377", "0.56718504", "0.5650378", "0.5633759", "0.56181186", "0.5609371", "0.5583731", "0.5568214", "0.556619", "0.55494165", "0.553792", "0.55215967", "0.5505821", "0.5505749", "0.5478907",...
0.0
-1
Returns fileDict updated with addresses of CSS files linked to in a single presentation page. fileDict['css'] list will be populated with any CSS links found.
def azW9(Z9JV, u5Ox): for QZnA in Z9JV.findAll('link'): if QZnA['type'] == 'text/css': oykL = Sugg + QZnA['href'] if oykL not in u5Ox['cssUrls']: u5Ox['cssUrls'].append(oykL) uRP3 = oykL[oykL.rfind('/') + 1:] if uRP3.find('?') > 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JW0G(tIuc, I5ib, u5Ox):\n u5Ox = K8NG(tIuc, u5Ox)\n for bD7m in u5Ox['pageUrls']:\n Z9JV = ZCK3(bD7m)\n u5Ox = iSD3(Z9JV, u5Ox, I5ib)\n u5Ox = azW9(Z9JV, u5Ox)\n u5Ox = hAlt(Z9JV, u5Ox, I5ib)\n return u5Ox", "def qU4u(Z9JV, u5Ox, d6pt=False):\n for jzdc in Z9JV.find_al...
[ "0.64324707", "0.638212", "0.6073951", "0.5862082", "0.54049224", "0.54007274", "0.54007274", "0.54007274", "0.54007274", "0.54007274", "0.54007274", "0.54007274", "0.54007274", "0.53514725", "0.5321237", "0.5313228", "0.53112847", "0.5286774", "0.52571046", "0.52370054", "0....
0.78971934
0
Returns fileDict populated with information from all pages of an ePortfolio presentation.
def JW0G(tIuc, I5ib, u5Ox): u5Ox = K8NG(tIuc, u5Ox) for bD7m in u5Ox['pageUrls']: Z9JV = ZCK3(bD7m) u5Ox = iSD3(Z9JV, u5Ox, I5ib) u5Ox = azW9(Z9JV, u5Ox) u5Ox = hAlt(Z9JV, u5Ox, I5ib) return u5Ox
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K8NG(tIuc, u5Ox):\n TGyt = Sugg + tIuc.ViewLink\n Z9JV = ZCK3(TGyt)\n u5Ox['pageUrls'].append(TGyt)\n u5Ox['pageFileNames'].append('index.html')\n u5Ox['pageIds'].append(str(tIuc.ObjectId))\n for jzdc in Z9JV.find_all('a', {'href': 'javascript://'}):\n if jzdc['onclick'].find('GotoPage...
[ "0.6529201", "0.6192074", "0.6181265", "0.59622926", "0.57342136", "0.56897587", "0.5643427", "0.552843", "0.55221504", "0.5504497", "0.54564756", "0.53980297", "0.5396478", "0.5340109", "0.53232574", "0.53102314", "0.5309218", "0.5258261", "0.5247129", "0.52229065", "0.51806...
0.675591
0
Erase black lines between squares of the same color.
def Jym7(JmFt, LTIa, DgRA, MUha): for r845 in range(0, DgRA - 1): if cnqq(MUha[0][r845], MUha[0][r845 + 1]): JmFt.line((LTIa * 0, LTIa * (r845 + 1), LTIa * (0 + 1) - 3, LTIa * (r845 + 1)), fill=MUha[0][r845], width=hmFk) for YRbF in range(0, DgRA - 1): if cnqq(MUha[YRbF][0], MUha[YRb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ghSm(YKHO):\n for Mkmy in range(0, YKHO.maze.get_nrows()):\n for Z9rn in range(0, YKHO.maze.get_ncols()):\n YKHO.set_color((Mkmy, Z9rn), 'white', draw=False)\n YKHO.cvs.itemconfig(YKHO.cvs_cells[YKHO.maze.get_start_cell()], fill='green')\n YKHO.cvs.itemconfig(YKHO.cvs_cells[YKHO.maze...
[ "0.64504504", "0.62295645", "0.6149258", "0.61013377", "0.60835075", "0.6080292", "0.6035723", "0.59870344", "0.5969807", "0.59518147", "0.58792615", "0.58362234", "0.5825922", "0.5796501", "0.5759481", "0.5727319", "0.5723786", "0.57192534", "0.5689627", "0.5681141", "0.5652...
0.586527
11
Split [a, b] into 256 intervals according to probs. Return the byteth interval.
def Q7cd(jzdc, Fg_i, BFeB, YB8B): ZHfW = (1 << Wl2e) - 1 assert 0 <= jzdc <= ZHfW assert 0 <= Fg_i <= ZHfW RV39 = Fg_i - jzdc + 1 assert RV39 >= 256 assert BFeB.shape == (256,) assert oyIN.all(BFeB >= 0) assert oyIN.abs(oyIN.sum(BFeB) - 1) < 1e-06 assert 0 <= YB8B <= 255
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xr2c(lHmx):\n t1nb = 240\n M7FP = 15\n return ((t1nb & lHmx[0]) >> 4, M7FP & lHmx[0])", "def nFZi(jzdc, Fg_i, Zc7e):\n hnFq = [jzdc] + [KCHu for KCHu in sorted(Zc7e) if jzdc < KCHu < Fg_i] + [Fg_i]\n return [(EBgd, HpuQ) for EBgd, HpuQ in zip(hnFq, hnFq[1:])]", "def VOlW(jzdc, Fg_i):\n eM...
[ "0.64698666", "0.62370646", "0.5770937", "0.5682076", "0.5535789", "0.54863566", "0.5483383", "0.5442545", "0.5432423", "0.5371568", "0.53450674", "0.53208226", "0.52739084", "0.5259421", "0.52381694", "0.5221875", "0.5216687", "0.5206564", "0.5165214", "0.513279", "0.5124638...
0.70963776
0
Returns a dictionary of edge cases that fuzzywuzzy is unable to catch. This could be because PRIS database stores reactor names and Webscrape database fetches power plant names, or because PRIS reactor names are abbreviated.
def cKxy(): xDws = {'OHI-': 'Ōi', 'ASCO-': 'Ascó', 'ROVNO-': 'Rivne', 'SHIN-KORI-': 'Kori', 'ANO-': 'Arkansas One', 'HANBIT-': 'Yeonggwang', 'FERMI-': 'Enrico Fermi', 'BALTIC-': 'Kaliningrad', 'COOK-': 'Donald C. Cook', 'HATCH-': 'Edwin I. Hatch', 'HARRIS-': 'Shearon Harris', 'SHIN-WOLSONG-': 'Wolseong', 'ST. ALBAN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHSD(YKHO):\n for GIN8 in YKHO.report.get_words():\n for kDE8 in YKHO.rules.police_abbreviations:\n if kDE8['word'] == GIN8.text.lower():\n YKHO.add_error(f'{GIN8.text} är en intern förkortning. Använd {kDE8['means']} istället.', word=GIN8)", "def HMPu(vIwR, zn0c, nPrm):\n...
[ "0.53449327", "0.51897705", "0.51325065", "0.5116838", "0.5088508", "0.5081386", "0.5049337", "0.5041673", "0.50361735", "0.50239676", "0.49804512", "0.49278393", "0.49141613", "0.49036273", "0.48860916", "0.48609376", "0.48584527", "0.48489895", "0.48077416", "0.4804405", "0...
0.58624643
0
Check to see if tag creation is allowed by everyone or just Administrators.
def RhS9(): async def check(OaeV): if OaeV.author.id == OaeV.bot.owner_id: return True F4VP = OaeV.author.guild_permissions.administrator or await OaeV.bot.get_guild_setting(OaeV.guild.id, 'tag_creation_allowed') if F4VP: return True else: raise B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bu5z(YKHO, OaeV):\n return OaeV.author.guild_permissions.administrator", "def bu5z(YKHO, OaeV):\n return OaeV.author.guild_permissions.administrator", "def bu5z(YKHO, OaeV):\n return OaeV.author.guild_permissions.administrator", "def Zfjy(YKHO):\n Z8dB = YKHO.get_taxonomy()\n return True i...
[ "0.7189031", "0.71729326", "0.71729326", "0.6948009", "0.65706396", "0.6540863", "0.6524014", "0.64952034", "0.64891326", "0.64891326", "0.64051026", "0.639966", "0.639441", "0.6376342", "0.6366205", "0.63501805", "0.63453174", "0.6342421", "0.62872505", "0.6284981", "0.62813...
0.75933444
0
Returns the name of the entity.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWCk(YKHO):\n return YKHO.__entity_name", "def tWCk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'entity_name')", "def tWCk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'entity_name')", "def qpoq() -> str:\n return 'NewsItemEntity'", "def mWFP(YKHO):\n return '{} {}'.format(YKH...
[ "0.89739835", "0.8291558", "0.8291558", "0.7967351", "0.7880483", "0.7533299", "0.7487097", "0.7487097", "0.7487097", "0.7478316", "0.74730295", "0.7465874", "0.745873", "0.7451315", "0.7436373", "0.74336773", "0.74258566", "0.7410182", "0.74037564", "0.7396105", "0.7396105",...
0.0
-1
Returns the state attributes.
def upgy(YKHO): o8Kj = {} if YKHO._last_action: o8Kj[ey6A] = YKHO._last_action return o8Kj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO)...
[ "0.89359796", "0.89359796", "0.85107046", "0.83974403", "0.83974403", "0.8381539", "0.8357211", "0.8352963", "0.8327151", "0.8313749", "0.8313749", "0.8313749", "0.8313749", "0.8313749", "0.8313749", "0.8313749", "0.8313749", "0.8313749", "0.8313749", "0.8313749", "0.8313749"...
0.7832778
37
True if entity is on.
def Debg(YKHO): return YKHO._cur != -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO) -> bool:\n return YKHO.entity_description.is_on_fn(YKHO._client)", "def Debg(YKHO) -> bool:\n return YKHO.entity_description.state_fn(YKHO._valve)", "def Debg(ajET, g2g3):\n return ajET.states.is_state(g2g3, _rDc)", "def Debg(YKHO) -> bool:\n return YKHO.entity_description.get_ufp_...
[ "0.85561126", "0.82328606", "0.80042636", "0.7902383", "0.7902383", "0.7623602", "0.7474469", "0.74592996", "0.74592996", "0.74592996", "0.74592996", "0.74592996", "0.74424726", "0.7378187", "0.7366283", "0.7366283", "0.7366283", "0.7366283", "0.7366283", "0.7366283", "0.7366...
0.0
-1
True if isinstance, False otherwise
def Bk6c(YEnM, J9Xy): if isinstance(YEnM, J9Xy): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RH_m(Emd4, WKvO):\n return isinstance(WKvO, Emd4.PYTHON_TYPE_CHECK)", "def e8zD(YKHO, YEnM):\n return isinstance(YEnM, YKHO.type_)", "def K5fQ(c13A):\n if c13A is None:\n return False\n if not DceF:\n return isinstance(c13A, SnBA.InstanceType)\n SUWc = str(type(c13A))\n retu...
[ "0.81197107", "0.7646734", "0.7633899", "0.75826496", "0.7554565", "0.7511596", "0.7448276", "0.7433479", "0.7361052", "0.73368466", "0.7322956", "0.7301687", "0.7288201", "0.7260252", "0.7247967", "0.7247967", "0.7247967", "0.7247967", "0.7247967", "0.7247967", "0.7238835", ...
0.7287103
13
Calculate tree balance factor
def UFdQ(YKHO, znBS=True): if YKHO.node: if znBS: if YKHO.node.left: YKHO.node.left.update_balances() if YKHO.node.right: YKHO.node.right.update_balances() YKHO.balance = YKHO.node.left.height - YKHO.node.right.height else: YKHO.bal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wMl7(YKHO):\n if YKHO.val is None:\n return 0\n return YKHO.left.depth() - YKHO.right.depth()", "def OYmn(YKHO):\n return YKHO._leftSubtreeHeight - YKHO._rightSubtreeHeight", "def MH68(YKHO, Q6kx):\n if Q6kx is None:\n return 0\n return YKHO.calc_height(Q6kx.left_child) - YKHO....
[ "0.74981624", "0.7408132", "0.73375696", "0.72003835", "0.71872187", "0.6998073", "0.6910783", "0.6778254", "0.6775765", "0.6665928", "0.66523194", "0.65350187", "0.6526495", "0.6463097", "0.6443356", "0.6345919", "0.63396966", "0.6287024", "0.62583756", "0.62203145", "0.6204...
0.66265154
11
Initializes the learning rate scheduler.
def ZtUJ(YKHO) -> ht2j.optim.lr_scheduler.ReduceLROnPlateau: return ht2j.optim.lr_scheduler.ReduceLROnPlateau(YKHO.optimizer, mode=_Fei.training.scheduler_mode, factor=_Fei.training.scheduler_factor, patience=_Fei.training.scheduler_patience, threshold=_Fei.training.scheduler_threshold)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mvr3(YKHO):\n KMvS = YKHO.config_dict.get('gamma')\n if KMvS is None:\n return None\n else:\n return ht2j.optim.lr_scheduler.ExponentialLR(YKHO.optimizer, gamma=KMvS)", "def hc6Z(YKHO, bYD2, Aak1):\n pass", "def oadu(YKHO):\n YKHO._sched = BuTa()\n YKHO._sched.add_job(YKHO._...
[ "0.7515188", "0.7386347", "0.69720066", "0.69185364", "0.69084096", "0.68611956", "0.6847927", "0.68258727", "0.672815", "0.66976935", "0.66707605", "0.66707605", "0.66293746", "0.65914106", "0.6558425", "0.65398073", "0.6538176", "0.65199757", "0.6494307", "0.64880794", "0.6...
0.7085269
2
Creates a ball that starts in the middle of screen
def FIMM(YKHO): YKHO.x = int(uwaB.SCREEN_WIDTH / 2) YKHO.y = int(uwaB.SCREEN_HEIGHT / 2) YKHO.DX = YKHO.getRandSpeed() YKHO.DY = YKHO.getRandSpeed() YKHO.RADIUS = 5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bnMV():\n nYVo = mEGe()\n nYVo.x = tuKI.randrange(Dlbo, zMH2 - Dlbo)\n nYVo.y = tuKI.randrange(Dlbo, vkJL - Dlbo)\n nYVo.change_x = tuKI.randrange(-2, 2)\n nYVo.change_y = tuKI.randrange(-2, 2)\n return nYVo", "def TsXI(YKHO):\n FV9o(Vjhr, YKHO.color, (YKHO.x, YKHO.y), YKHO.r)", "def H...
[ "0.77228105", "0.7665498", "0.73436254", "0.7242733", "0.7199887", "0.71788865", "0.7137445", "0.7125304", "0.7099498", "0.7044389", "0.70418036", "0.701051", "0.69794995", "0.69492346", "0.69344366", "0.68432426", "0.6842423", "0.6751062", "0.67364484", "0.6718706", "0.67182...
0.59355754
71
Resets all properties of the ball
def SiRx(YKHO): YKHO.x = int(uwaB.SCREEN_WIDTH / 2) YKHO.y = int(uwaB.SCREEN_HEIGHT / 2) YKHO.DX = YKHO.getRandSpeed() YKHO.DY = YKHO.getRandSpeed()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c73l(YKHO):\n YKHO._ball = mEGe()", "def SiRx(YKHO, DeuS=None):\n if DeuS is None:\n DeuS = YKHO.balls\n for nYVo in DeuS:\n nYVo.reset()", "def SiRx(YKHO):\n YKHO.ball.rallies = 0\n YKHO.paddle_1.reset_paddle()\n YKHO.paddle_2.reset_paddle()\n owmi, JRax = YKHO.ball.rese...
[ "0.8253611", "0.77254134", "0.74415004", "0.74094343", "0.7320084", "0.72817534", "0.7258626", "0.7167321", "0.7138291", "0.7069328", "0.7011117", "0.6963798", "0.6838937", "0.67544645", "0.67337507", "0.6730882", "0.67017794", "0.6690245", "0.6669513", "0.66584766", "0.66499...
0.6472566
37
Get the (x,y) position of the ball Returns (x location of ball, y location of ball)
def rjJy(YKHO) -> (int, int): return (YKHO.x, YKHO.y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def paz0(YKHO):\n return (YKHO.x, YKHO.y, YKHO.is_ball_visible)", "def Iuzb(YKHO):\n return (YKHO.x_pos, YKHO.y_pos)", "def TwAD(YKHO):\n return (YKHO.x, YKHO.y)", "def dQgj(YKHO):\n return (YKHO.x, YKHO.y)", "def hbd3(YKHO):\n return (YKHO.__x, YKHO.__y)", "def TwAD(YKHO):\n return (YK...
[ "0.75780284", "0.74851304", "0.7460875", "0.73551166", "0.73355657", "0.72714406", "0.7237141", "0.71387804", "0.7031907", "0.69597214", "0.69193965", "0.6912429", "0.69097006", "0.689496", "0.6875988", "0.6847295", "0.6822357", "0.6803534", "0.6743977", "0.672523", "0.672068...
0.8551318
0
Return a new Account object.
def FIMM(YKHO, iQNI, XQLn, VoIp, aJ2e, VIXL, klwn, uCda, tEoV, id, Ix3W, bZT3, r1On, h8zt, DhFc, pSDG, bis_, kgWm, Yiyg, agxl, mq7P, ch6h, jGRS, T67X, t23F, JRCI): YKHO.account_blocked = iQNI YKHO.buying_power = XQLn YKHO.cash = VoIp YKHO.created_at = aJ2e YKHO.currency = VIXL YKHO.daytrade_coun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZrNc(YKHO):\n return tHSi(YKHO)", "def ZrNc(YKHO):\n return tHSi(YKHO)", "def ZrNc(YKHO, Z31E):\n return tHSi(YKHO, Z31E)", "def ZrNc():\n b3He = hbgH.objects.create(name='R-Bank')\n KRiX = s9HI.objects.create(name='Tre Belarus', country='Belarus')\n ZrNc = tHSi.objects.create(iban_numb...
[ "0.8219379", "0.82028586", "0.79448986", "0.75918263", "0.7493616", "0.745823", "0.7428262", "0.72694707", "0.716125", "0.7119624", "0.7066871", "0.70008", "0.6957328", "0.69341004", "0.68933314", "0.6882183", "0.6861029", "0.6812466", "0.68051374", "0.66957915", "0.66000926"...
0.0
-1
Return a new Asset object.
def FIMM(YKHO, id, UdRV, dQgO, o61b, jGRS, dXcc, HJjY, OOOO, nyPD): YKHO.id = id YKHO.asset_class = UdRV YKHO.exchange = dQgO YKHO.symbol = o61b YKHO.status = jGRS YKHO.tradable = dXcc YKHO.marginable = HJjY YKHO.shortable = OOOO YKHO.easy_to_borrow = nyPD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IbHI(YKHO, uY1h):\n MOPg, DumB = YKHO._get('/asset/%s' % uY1h)\n return dv6U.fromdict(DumB[0], api=YKHO, full=True)", "def fwuD(Emd4, IbHI):\n if isinstance(IbHI, dv6U):\n return IbHI\n if isinstance(IbHI, fnT7):\n return Mp5r(IbHI)\n if isinstance(IbHI, jKi7.string_types):\n ...
[ "0.7297233", "0.72046256", "0.71780646", "0.66239", "0.6491148", "0.61189693", "0.610188", "0.59622127", "0.58824533", "0.5860355", "0.58110243", "0.57746536", "0.57317704", "0.57253265", "0.5677477", "0.5665867", "0.5635528", "0.56330997", "0.5620094", "0.5618329", "0.558075...
0.51608366
43
r""" list_campaigns(self, kwargs) > ApiResponse Gets an array of campaigns.
def rx1_(YKHO, **B2fa) -> PQ7K: return YKHO._request(B2fa.pop('path'), params=B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YA1h(YKHO, qoqK=0, vgXP=0):\n bo34.info('Function call: get_list_of_campaigns')\n return YKHO.__handle_result(YKHO.__send_request('campaigns', 'GET', {'limit': qoqK or 0, 'offset': vgXP or 0}))", "def QWod(YKHO, **B2fa) -> PQ7K:\n return YKHO._request(B2fa.pop('path'), params=B2fa)", "def tUhU(YKH...
[ "0.7797828", "0.7384614", "0.7295399", "0.7289506", "0.7025364", "0.69737095", "0.6858887", "0.675433", "0.6699876", "0.6574729", "0.65243983", "0.64558333", "0.6419986", "0.6342131", "0.63322896", "0.62659", "0.61625737", "0.6153562", "0.60065275", "0.59886926", "0.59794253"...
0.91198665
0
r""" get_campaign(self, campaignId, kwargs) > ApiResponse Gets a campaign specified by identifier.
def Xeky(YKHO, TnfX, **B2fa) -> PQ7K: return YKHO._request(GpIu(B2fa.pop('path'), TnfX), params=B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xeky(YKHO, _j1c: str) -> dict:\n return YKHO.http_request('GET', f'/campaign/{_j1c}')", "def NMoC(YKHO, _j1c):\n j4i0 = Glze.query.filter_by(mailchimp_id=_j1c).first()\n if j4i0 is None:\n return ({'message': 'Campaign could not be found.'}, qed_.NOT_FOUND)\n return (YKHO.schema.dump(j4i0)...
[ "0.8356688", "0.75014514", "0.74091667", "0.7261408", "0.7066863", "0.6870958", "0.6703742", "0.6669547", "0.6601276", "0.64146173", "0.6402148", "0.63833237", "0.6180947", "0.616946", "0.6071944", "0.599983", "0.5858463", "0.5858438", "0.583261", "0.5703481", "0.56322855", ...
0.9035137
0
r""" delete_campaign(self, campaignId, kwargs) > ApiResponse Sets the campaign status to archived. Archived entities cannot be made active again. See developer notes for more information.
def BFhd(YKHO, TnfX, **B2fa) -> PQ7K: return YKHO._request(GpIu(B2fa.pop('path'), TnfX), params=B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JenG(YKHO, _j1c):\n cuiw = NpaW.Session()\n cuiw.delete(NpaW.get_row_by_id(cuiw, THS8.Campaign, _j1c))\n cuiw.commit()\n cuiw.close()\n return", "def Na9V(YKHO, _j1c, Wc9F=False):\n pmON = '%s' % _j1c\n return YKHO.make_request(pmON, 'DELETE', batch=Wc9F)", "def PTpj(YKHO, _j1c):\n ...
[ "0.70074016", "0.6975269", "0.69163483", "0.60309505", "0.5984588", "0.5551692", "0.5438922", "0.53275144", "0.53229326", "0.5291472", "0.5214432", "0.5136913", "0.5098933", "0.5086119", "0.5075033", "0.5025599", "0.4976109", "0.495808", "0.49549347", "0.4877589", "0.48695925...
0.7605506
0
r""" get_campaign_extended(self, campaignId, kwargs) > ApiResponse Gets an array of campaigns with extended data fields.
def LKoo(YKHO, TnfX, **B2fa) -> PQ7K: return YKHO._request(GpIu(B2fa.pop('path'), TnfX), params=B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QWod(YKHO, **B2fa) -> PQ7K:\n return YKHO._request(B2fa.pop('path'), params=B2fa)", "def Xeky(YKHO, TnfX, **B2fa) -> PQ7K:\n return YKHO._request(GpIu(B2fa.pop('path'), TnfX), params=B2fa)", "def ysvq(YKHO, _j1c, V_D6, Wc9F=False):\n pmON = '%s' % _j1c\n qIxc = {'fields': V_D6}\n return YKHO...
[ "0.8444411", "0.6423818", "0.64011496", "0.62945", "0.6094803", "0.59072864", "0.58411837", "0.5774564", "0.57489026", "0.5684616", "0.55856895", "0.5585295", "0.55327994", "0.54195565", "0.5405788", "0.5391327", "0.5329111", "0.52382123", "0.52187634", "0.51804036", "0.51573...
0.87357885
0
Returns True if the given usage key is for an XBlock aside
def rKrL(Pkef): return isinstance(Pkef, (WUDW, YErD))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bNGt(YKHO, Pkef):\n if not isinstance(Pkef, __CE) or Pkef.deprecated:\n return False\n if Pkef.block_id is None:\n raise uYIR(Pkef)\n try:\n Uyre = YKHO._lookup_course(Pkef.course_key).structure\n except AW0V:\n return False\n return YKHO._get_block_from_structure(Uyr...
[ "0.64941037", "0.6111959", "0.6050745", "0.5688474", "0.56851476", "0.56751025", "0.5636359", "0.55457866", "0.5482954", "0.54808235", "0.54778075", "0.5469594", "0.5459308", "0.54497576", "0.5410232", "0.5404032", "0.5356563", "0.532855", "0.5318316", "0.5316624", "0.5315466...
0.86138487
0
Initialize a new bordered window
def FIMM(YKHO, leAC, H2v2, TVTK, LVAh, WKvO): G9jH.info('Create Border {height},{width},{y},{x}'.format(height=H2v2, width=TVTK, y=LVAh, x=WKvO)) YKHO.__border = PcHS.newwin(H2v2, TVTK, LVAh, WKvO) YKHO.__win = YKHO.__border.subwin(H2v2 - 2, TVTK - 2, LVAh + 1, WKvO + 1) YKHO.__title = leAC YKHO.__w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ocf8(YKHO):\n YKHO.__calc_size()\n try:\n YKHO.win = PcHS.newwin(YKHO.height, YKHO.width, YKHO.posy, YKHO.posx)\n YKHO.panel = PcHS.panel.new_panel(YKHO.win)\n YKHO.win.scrollok(True)\n YKHO.win.keypad(1)\n YKHO.do_paint()\n except Exception:\n YKHO.win = None...
[ "0.71584517", "0.68808347", "0.68620425", "0.68244416", "0.68133163", "0.67687196", "0.6711553", "0.66812825", "0.6667972", "0.6665805", "0.6645828", "0.65772814", "0.6553715", "0.65507376", "0.65346116", "0.6512733", "0.6472049", "0.64288145", "0.6426796", "0.6421196", "0.64...
0.75131255
0
Performs crazyass raw SQL queries to get a list of `question_info` objects
def d94l(Od8K, MBJM, wasf): z3Gu = Od8K.values_list('id', flat=True) f1_c = map(str, z3Gu) if len(f1_c) == 0: f1_c = ['0'] N1p7 = UzPC.cursor() xDcj = 'SELECT SUM(scorystapp_response.points) as total, COUNT(scorystapp_response.points) as count, SUM(scorystapp_questionpart.max_points) as max_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E5zU(YKHO):\n xDcj = 'SELECT * from ' + YKHO.dbTable + \" where main_ID = '\" + str(YKHO.ID) + \"'\"\n nPrm = YKHO.sqlConnection.executeSelectQuery(xDcj)\n YKHO.convertQuestions(nPrm)", "def sFOk(YKHO):\n xDcj = 'SELECT * FROM tbl_questions;'\n FIUJ = gt0I(xDcj)\n return FIUJ", "def EBhC(...
[ "0.7484444", "0.6729881", "0.6672755", "0.64628255", "0.613009", "0.610798", "0.6043598", "0.603668", "0.60183674", "0.5974736", "0.59531504", "0.59429115", "0.58828807", "0.58751506", "0.58581316", "0.581584", "0.57958186", "0.5771788", "0.57509136", "0.57372516", "0.5717751...
0.0
-1
Return timestamp by calling ``time.strftime(fmt, timestruct())``.
def E3oo(FMLJ, E6p5=None): return MK1i.strftime(FMLJ, E6p5 or MK1i.gmtime())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F803(YKHO, FMLJ, iOyX=0):\n bGrB = iOyX\n if not YKHO._struct:\n pru3 = YKHO._days - XgOg(YKHO.year, 1, 1) + 1\n eQyR = Tg98(YKHO._days)\n YKHO._struct = (YKHO.year, YKHO.month, YKHO.day, 0, 0, 0, eQyR, pru3, 0)\n return rz7s(FMLJ, YKHO._struct, '000000')", "def Vp65(Emd4, E3oo:...
[ "0.7445952", "0.73659384", "0.73535335", "0.7333845", "0.7299848", "0.72839344", "0.72839344", "0.72502875", "0.72269666", "0.71355736", "0.7080344", "0.7039789", "0.69772714", "0.6966146", "0.69366115", "0.68952745", "0.68458813", "0.68448347", "0.6822056", "0.6788966", "0.6...
0.8997184
0
Factory class which wraps any model and returns a model suitable for DPSGD learning. The class will replicate the model in a memoryefficient way and run the forward and backward passes in parallel over the inputs.
def FIMM(YKHO, rvDU: nn.Module, SZsu: int, fyB_: float, E4Xj: float, HMNz: bool=False, yokr: Optional[int]=None, vl6l: Optional[PrivacyWatchdog]=None) -> None: super().__init__() YKHO.L2_clip = fyB_ YKHO.noise_multiplier = E4Xj YKHO.num_replicas = SZsu YKHO.wrapped_model = rvDU YKHO.snooper = jr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQs7():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--DISC_LR', type=float, default=0.0001)\n wvEv.add_argument('--GEN_LR', type=float, default=0.001)\n wvEv.add_argument('--GEN_BETA1', type=float, default=0.9)\n wvEv.add_argument('--GEN_BETA2', type=float, default=0.999)\n wvEv.add_a...
[ "0.69366926", "0.6575874", "0.64476717", "0.63656634", "0.6323812", "0.632001", "0.62908286", "0.6283259", "0.62632114", "0.62542784", "0.62520367", "0.62500674", "0.6240236", "0.62139744", "0.6209358", "0.62092", "0.61762005", "0.6153211", "0.6148011", "0.61458576", "0.61415...
0.5857394
81
Prepare model for the next batch by reinitializing the model replicas with the updated weights and informing the PrivacyWatchdog about the state of the training.
def YVIz(YKHO) -> None: if not (YKHO._forward_succesful and YKHO._clip_succesful and YKHO._noise_succesful): raise RuntimeError('An error occured during model training. The model.prepare_next_batch() method must be called after model.forward(), model.clip_and_accumulate() and model.noise_gradient().') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kOPO(YKHO):\n if YKHO.is_character_bert:\n dyeT = sVrl.from_pretrained(Hy7s.path.join(LepP, 'data', 'character-bert'))\n C3ST = DGHd(dyeT)\n else:\n dyeT = tnop.from_pretrained(Hy7s.path.join(LepP, 'data', 'bert-base-uncased'))\n C3ST = LoTC(dyeT)\n if YKHO.is_main_process:...
[ "0.67867", "0.6725695", "0.65153414", "0.6487081", "0.6431792", "0.6383308", "0.6348631", "0.6217325", "0.6206838", "0.6164813", "0.6160209", "0.6133684", "0.61176556", "0.6103946", "0.60963035", "0.6087941", "0.60473734", "0.60060996", "0.59967184", "0.59944177", "0.59879065...
0.71752584
0
Factory class which wraps a PyTorch model to provide access to persample gradients. It will replicate the base model and peform the forward and backward passes in parallel. Contrary to the PrivacyWrapper, this class doesn't offer any additional features except calculating persample gradients. The wrapper includes a san...
def FIMM(YKHO, rvDU: nn.Module, SZsu: int) -> None: super().__init__() YKHO.num_replicas = SZsu YKHO.wrapped_model = rvDU YKHO.snooper = jrjf() YKHO.snooper.snoop(YKHO.wrapped_model) del YKHO.snooper YKHO.input_size = getattr(YKHO.wrapped_model, 'input_size', None) YKHO.models = YKHO._cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, rvDU: nn.Module, SZsu: int, fyB_: float, E4Xj: float, HMNz: bool=False, yokr: Optional[int]=None, vl6l: Optional[PrivacyWatchdog]=None) -> None:\n super().__init__()\n YKHO.L2_clip = fyB_\n YKHO.noise_multiplier = E4Xj\n YKHO.num_replicas = SZsu\n YKHO.wrapped_model = rvDU\n YKHO.s...
[ "0.62387085", "0.57584316", "0.5686173", "0.566254", "0.5648074", "0.554967", "0.545541", "0.54512197", "0.540086", "0.5380508", "0.5365276", "0.5347754", "0.5338524", "0.53285307", "0.5294444", "0.5255661", "0.52425", "0.5226404", "0.51546556", "0.5134653", "0.5095493", "0...
0.5783028
1
Return True if number is prime.
def T1qg(FGW3): if FGW3 <= 1: return False t4HM = int(epAf.ceil(epAf.sqrt(FGW3))) for U6D_ in range(2, t4HM + 1): if FGW3 % U6D_ == 0: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GiUy(f813):\n I1mm = 0\n for hkxX in range(2, f813 // 2):\n if f813 % hkxX == 0:\n I1mm += 1\n if I1mm == 1:\n return True\n else:\n return False", "def T1qg(FGW3):\n if FGW3 < 2:\n return False\n elif FGW3 == 2:\n return True\n elif FGW3 % 2...
[ "0.8257161", "0.8243624", "0.8191229", "0.81504107", "0.80566925", "0.80419075", "0.80096567", "0.80058324", "0.80004966", "0.79851073", "0.7975722", "0.7945524", "0.793624", "0.7920225", "0.7888884", "0.7845249", "0.7840306", "0.77951753", "0.779481", "0.77864987", "0.777893...
0.8023641
6
Allows a new user to register an account. Following successful registration, redirects to either ``/accounts/register/complete/`` or, if supplied, the URL specified in the keyword argument ``success_url``. By default, ``registration.forms.RegistrationForm`` will be used as the registration form; to change this, pass a ...
def gr_i(QePW, HBgS=gCuF.PREFIX_URL + '/accounts/register/complete/', V002=pYYa, qm1k='registration/registration_form.html'): if hasattr(gCuF, 'SHOW_DATASET_INTERFACE_OPTIONS') and gCuF.SHOW_DATASET_INTERFACE_OPTIONS: edwk = gCuF.SHOW_DATASET_INTERFACE_OPTIONS else: edwk = False if QePW.meth...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gr_i(QePW, HBgS=None, V002=pYYa, t6cM=None, qm1k='registration/registration_form.html', fkz_=None):\n if QePW.method == 'POST':\n L03z = V002(data=QePW.POST, files=QePW.FILES)\n if L03z.is_valid():\n Q5YQ = L03z.save(profile_callback=t6cM)\n return Yd7Q(HBgS or gxEw('regi...
[ "0.87003946", "0.7834944", "0.7391076", "0.7209871", "0.71135324", "0.7099406", "0.70758414", "0.69563186", "0.69412136", "0.6919151", "0.6914263", "0.6844012", "0.6834358", "0.6833996", "0.68038684", "0.6795563", "0.67681044", "0.67200905", "0.670776", "0.67026323", "0.66956...
0.0
-1
Load the main page in react
def Uw2J(): B2Dn = xhTS() DumB = UlWi(B2Dn) SV4W = CDCC() nPrm = {'current_page': B2Dn, 'total_pages': SV4W, 'items': DumB.dict()} QpfX = {'props': qQXR.dumps(nPrm)} return TvZl('react.html', **QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ozko():\n return TvZl('index.html')", "def Ozko():\n return TvZl('main_page.html')", "def b8V_():\n aevO.sidebar.title('MỤC LỤC')\n SuM2 = aevO.sidebar.radio('Go to', list(Wmpq.keys()))\n B2Dn = Wmpq[SuM2]\n with aevO.spinner(f'Loading {SuM2} ...'):\n jZ4I.shared.components.write_p...
[ "0.69048727", "0.6820593", "0.6643831", "0.6526773", "0.64651865", "0.6420566", "0.640309", "0.640309", "0.63800156", "0.6379792", "0.6379792", "0.633144", "0.6291103", "0.6275256", "0.62455285", "0.6229249", "0.6229249", "0.61828256", "0.61536777", "0.6124752", "0.6124261", ...
0.651506
4
Ensures a 404 is returned when an invalid customer ID is passed
def zuTf(YKHO): WJXI = gxEw('customer_detail', kwargs={'pk': 1002}) geh0 = YKHO.client.get(WJXI) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hYoK(YKHO):\n _hkX = YKHO.test_client.get(YKHO.API_BASE + '/hello', headers=IOEl)\n YKHO.assertEqual(_hkX.status_code, 400)", "def qQFL(YKHO):\n YKHO.url_kwargs[YKHO.pk_url_kwarg] = 1234\n geh0 = YKHO._get()\n YKHO.assertEquals(geh0.status_code, 404)", "def qQFL(YKHO):\n YKHO.url_kwargs[Y...
[ "0.6230983", "0.622345", "0.622345", "0.622345", "0.6169294", "0.612782", "0.6051124", "0.6032979", "0.6023103", "0.59781826", "0.5974431", "0.59469664", "0.5943102", "0.5936407", "0.5934957", "0.59334934", "0.58934444", "0.5892337", "0.5885083", "0.58435714", "0.5837195", ...
0.7245524
0
Ensure that a book can't be rented out if not available
def iBZF(YKHO): EsLX = gxEw('customer_rental_list', kwargs={'pk': YKHO.user1.pk}) nPrm = {'book': YKHO.book3.pk} geh0 = YKHO.client.post(EsLX, data=nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXnu(YKHO, CBIr, jI4j):\n if jI4j.in_stock > 0:\n try:\n Mkmy = YKHO.get(rented_by=CBIr, book=jI4j, returned_on=None)\n raise kRhv('Book %s is already rented by %s' % (jI4j.title, CBIr.username))\n except TWDz.DoesNotExist:\n Mkmy = YKHO.create(book=jI4j, rente...
[ "0.69052815", "0.6850929", "0.67350703", "0.6647401", "0.6518213", "0.6105418", "0.60817015", "0.6009008", "0.59613985", "0.587117", "0.5857886", "0.5816907", "0.57935077", "0.5757161", "0.57512945", "0.56983584", "0.56811774", "0.56772804", "0.5661885", "0.56364834", "0.5632...
0.66889
3
Gets the value of an environment variable within the Shell
def AxXv(YKHO, mWFP): return YKHO.environment[mWFP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sEAN(SRYB):\n return Hy7s.environ[SRYB]", "def TYk2(XuY2: str) -> str:\n if XuY2 in Hy7s.environ.keys():\n return Hy7s.environ[XuY2]", "def Bx7h(mWFP):\n return Hy7s.environ.get(mWFP)", "def E6J6(H5ew: str) -> str:\n BWXx = Hy7s.getenv(H5ew)\n assert isinstance(BWXx, str), f'the {H5...
[ "0.7932712", "0.78744805", "0.78080493", "0.76401556", "0.76286596", "0.7571606", "0.7496366", "0.72320455", "0.71190345", "0.71149296", "0.7102304", "0.70960605", "0.7090687", "0.70160663", "0.70115685", "0.7004518", "0.6978606", "0.6966443", "0.6955333", "0.6862371", "0.684...
0.6897012
19
Checks whether the coordinates are inside of the object
def EDs6(YKHO, WKvO: int, LVAh: int) -> bool: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EDs6(YKHO, W0Eb: tuple) -> bool:\n if len(W0Eb) != 2:\n raise IndexError('Coordinates consist of x and y')\n WKvO, LVAh = W0Eb\n if YKHO.MIN_X <= WKvO <= YKHO.MAX_X and YKHO.MIN_Y <= LVAh <= YKHO.MAX_Y:\n return True\n else:\n return False", "def IQ5w(YKHO, oeNL):\n WKvO, ...
[ "0.77976453", "0.7676617", "0.74041814", "0.73605055", "0.73430943", "0.73360795", "0.7289547", "0.72795963", "0.72285116", "0.7220123", "0.7217889", "0.72029495", "0.7140673", "0.709911", "0.70981383", "0.70858204", "0.7078173", "0.70423746", "0.70423746", "0.70390314", "0.7...
0.8130981
0
Returns stationary rotation pivot to the center of the object. Update should be used after calling this function.
def ZzQr(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DWJ0(YKHO):\n return YKHO.piv.a.rotate.v", "def JNxh(YKHO):\n return (YKHO.last_close + YKHO.last_high + YKHO.last_low) / 3", "def zpyh(YKHO, *qIxc, **B2fa) -> ImMB:\n pass", "def pMMS(YKHO):\n return YKHO.rotation()", "def TmBn(YKHO):\n a70m(YKHO.use_mutex)\n try:\n WKvO, LVAh...
[ "0.6441238", "0.6060877", "0.59251", "0.59237015", "0.57738626", "0.57564765", "0.57351756", "0.5733987", "0.57265", "0.56197524", "0.55926734", "0.5590121", "0.55778074", "0.55601794", "0.55553925", "0.55127263", "0.55041534", "0.55025566", "0.5488824", "0.5465886", "0.54635...
0.7755911
0
Check if the user is one associated with an app service (exclusively)
def x0x8(YKHO, uJjO: str) -> bool: if YKHO.exclusive_user_regex: return bool(YKHO.exclusive_user_regex.match(uJjO)) else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pfbW(CBIr, SCWY):\n if SCWY.auth_user == CBIr:\n 'Check auth_user first'\n return True\n elif not SCWY.auth_user and SCWY.user_id:\n 'Check Auth0 for legacy applications'\n if SCWY.user_id == G0c5(CBIr.email):\n return True\n else:\n return False\n...
[ "0.6790912", "0.6415444", "0.6265316", "0.6251666", "0.61698425", "0.61693615", "0.6165143", "0.6133615", "0.6049688", "0.6036117", "0.60166854", "0.6001616", "0.5966012", "0.5937263", "0.5923739", "0.591038", "0.59017754", "0.58841246", "0.5870964", "0.58382744", "0.5836593"...
0.7507853
0
Get the application service state.
async def get_appservice_state(YKHO, zVa7: ApplicationService) -> h8nf[qb5E]: Aofo = await YKHO.db_pool.simple_select_one_onecol('application_services_state', {'as_id': zVa7.id}, retcol='state', allow_none=True, desc='get_appservice_state') if Aofo: return qb5E(Aofo) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO) -> Qq78:\n return YKHO.state", "def Qqv2(YKHO) -> dh2F:\n return YKHO._appstate", "def ja6o(YKHO):\n return YKHO._env.get_state()", "def ja6o(YKHO):\n bGrB, QTBn, bGrB, bGrB, bGrB, bGrB, bGrB = NKgZ.QueryServiceStatus(YKHO.name)\n return QTBn", "def Cxxn(YKHO) -> h8nf[str]:\n ...
[ "0.7626148", "0.73970115", "0.73069566", "0.72594494", "0.67940325", "0.672457", "0.667027", "0.6659617", "0.6655641", "0.6565665", "0.6496042", "0.64585406", "0.63922334", "0.6388137", "0.6388137", "0.6388137", "0.6388137", "0.6388137", "0.6388137", "0.6388137", "0.6388137",...
0.6533963
10
Extract the Python code from \pyenv{ }
def Ou0C(YKHO, yOAJ): zCsx = '\n'.join(yOAJ) HpuQ = ZbWC.compile(YKHO.pat + '(.*)}', ZbWC.DOTALL) BzON = HpuQ.search(zCsx) Wxnj = BzON.group(2) Wxnj = UaBw(Wxnj) pDev, i5jP = hLuB(Wxnj) assert pDev == i5jP, 'Number of left and right curly braces not equal:' + Wxnj ci3_ = BzON.group(1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ybz(xAU6, Pgf7):\n inZ1 = ''\n if Hy7s.uname()[0] != 'Darwin':\n inZ1 = ' -lcrypt '\n DfdU = open(Hy7s.path.join(xAU6['compile-directory'], 'Modules', 'Setup.local'), 'w')\n DfdU.write('\\nzlib zlibmodule.c %(zlib)s\\ncrypt cryptmodule.c %(crypt)s\\nbz2 bz2module.c %(bzip2)s\\n_curses _curs...
[ "0.5958364", "0.59060645", "0.5868896", "0.5768195", "0.57148916", "0.5685237", "0.56249046", "0.5594238", "0.5591691", "0.5589285", "0.55778897", "0.55349535", "0.53381675", "0.53247947", "0.5307095", "0.53053343", "0.53053343", "0.52819", "0.527781", "0.52530086", "0.522150...
0.0
-1
Return the index of this node in a list of all nodes in the tree.
def MQp8(YKHO): if YKHO.is_root: return 0 elif YKHO._link is not None: return YKHO._link.tree_id else: return YKHO._tree_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(YKHO):\n return YKHO._ll_tree.get_index()", "def N9Rz(YKHO):\n\n def iFPA(J_Es, wjRY):\n wjRY[0] += 1\n for LihS in J_Es[1:]:\n if isinstance(LihS, UD_O):\n for NY1O in iFPA(LihS, wjRY):\n yield wjRY[0]\n else:\n ...
[ "0.69951594", "0.6771714", "0.66898113", "0.6539747", "0.644365", "0.63125104", "0.6248345", "0.62054497", "0.6180763", "0.6179813", "0.61643094", "0.61057556", "0.6104049", "0.61003953", "0.6054963", "0.6039968", "0.60289305", "0.59986037", "0.5995167", "0.59739035", "0.5924...
0.0
-1
Return the descendent node.
def gK9J(YKHO): if YKHO.is_root: return None if YKHO._descendent is not None: return YKHO._descendent pVoI = YKHO._link.descendent if pVoI is None: return None return YKHO.arbor._generate_tree_node(YKHO.root, pVoI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0_7(YKHO):\n Q6kx = ndC_.getNode(YKHO)\n Q6kx.tag = 'depedge'\n return Q6kx", "def IyQV(YKHO):\n return YKHO._node", "def IyQV(YKHO):\n return YKHO.__node", "def c0_7(YKHO):\n Q6kx = o7DN.getNode(YKHO)\n Q6kx.tag = 'relnode'\n return Q6kx", "def c0_7(YKHO):\n Q6kx = ndC_.get...
[ "0.7078342", "0.6899762", "0.6897733", "0.6655669", "0.66388977", "0.6638464", "0.662349", "0.662349", "0.6584348", "0.6557864", "0.65364254", "0.6533643", "0.65073574", "0.6460638", "0.64368784", "0.63859934", "0.6366619", "0.6351962", "0.6296749", "0.6275821", "0.6272267", ...
0.75717556
0
Number of nodes in the tree.
def ESP5(YKHO): if YKHO._tree_size is not None: return YKHO._tree_size if YKHO.is_root: YKHO.arbor._setup_tree(YKHO) YKHO.arbor._store_node_info(YKHO, '_tree_size') else: YKHO._tree_size = len(list(YKHO['tree'])) return YKHO._tree_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO):\n return YKHO.__tree.node_count", "def tIln(YKHO):\n Ylbp = 0\n for exwG in YKHO.iternodes():\n Ylbp += 1\n return Ylbp", "def OtzW(YKHO):\n return int(YKHO._data['number_of_nodes'])", "def kRap(YKHO):\n return YKHO._root.count()", "def AHQ7(YKHO) -> int:\n retur...
[ "0.87771", "0.876103", "0.87113464", "0.8688446", "0.8679165", "0.8642875", "0.85500014", "0.85063654", "0.8487128", "0.8469054", "0.84642124", "0.84633803", "0.8463188", "0.84412813", "0.84390837", "0.84262526", "0.8424474", "0.8424474", "0.83696264", "0.8285416", "0.8208172...
0.77037966
52