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
Return the minimum pairwise score in this entity.
def oj9G(YKHO, LEXu): return float(LEXu['pw_bb'][1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AjsF(YKHO):\n return min(YKHO._extract_set('score') or [0])", "def min(YKHO):\n return min(YKHO)", "def XcNI(YKHO):\n return YKHO.min", "def XcNI(YKHO):\n return YKHO.min", "def FaMX(YKHO):\n return YKHO.X", "def min(YKHO):\n SeDd = YKHO.data[0]\n for YRbF in range(len(YKHO.data)...
[ "0.7601159", "0.71640253", "0.7104862", "0.7104862", "0.70703626", "0.70559096", "0.7035829", "0.698133", "0.6962272", "0.6912915", "0.6838934", "0.6827227", "0.6821604", "0.6821604", "0.681461", "0.6776928", "0.6776928", "0.6748577", "0.6733002", "0.6722401", "0.66591287", ...
0.0
-1
Return the average pairwise score in this subentity.
def eJmL(YKHO, LEXu): return float(LEXu['pw']) / float(LEXu['count'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eyjh(YKHO):\n return sum(YKHO.scores) / len(YKHO.scores)", "def O5mg(YKHO) -> float:\n return sum(YKHO._scores) / len(YKHO._scores)", "def _DDB(YKHO, LEXu):\n return float(LEXu['es']) / float(LEXu['count'])", "def yYYi(YKHO):\n CkYf = 1.0\n for oeNL, or8S in enumerate(YKHO.idx):\n C...
[ "0.74047804", "0.7201846", "0.7139817", "0.69191563", "0.6888882", "0.6880394", "0.6808859", "0.6778779", "0.6722814", "0.6697185", "0.669515", "0.6681956", "0.6661809", "0.6607946", "0.65531296", "0.65421295", "0.65421295", "0.65421295", "0.65123206", "0.6506696", "0.6480846...
0.0
-1
Return the average entity score in this subentity.
def _DDB(YKHO, LEXu): return float(LEXu['es']) / float(LEXu['count'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eyjh(YKHO):\n return sum(YKHO.scores) / len(YKHO.scores)", "def O5mg(YKHO) -> float:\n return sum(YKHO._scores) / len(YKHO._scores)", "def VjSA(YKHO):\n return YKHO.data['avg']", "def S8vG(YKHO):\n return YKHO.properties.get('average')", "def S8vG(YKHO):\n return YKHO.summation() / YKHO....
[ "0.7799699", "0.7497335", "0.7215426", "0.7203512", "0.7157242", "0.7098437", "0.70452535", "0.7044013", "0.7005493", "0.6976076", "0.69647014", "0.69399375", "0.6936981", "0.69197166", "0.6899835", "0.6894542", "0.6794682", "0.6758425", "0.6758425", "0.6758425", "0.6747891",...
0.8440185
0
Return the average entity score in this subentity.
def Hwmf(YKHO, LEXu): return float(LEXu['es_bb'][0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _DDB(YKHO, LEXu):\n return float(LEXu['es']) / float(LEXu['count'])", "def eyjh(YKHO):\n return sum(YKHO.scores) / len(YKHO.scores)", "def O5mg(YKHO) -> float:\n return sum(YKHO._scores) / len(YKHO._scores)", "def VjSA(YKHO):\n return YKHO.data['avg']", "def S8vG(YKHO):\n return YKHO.pro...
[ "0.84409", "0.7800358", "0.7498058", "0.7216316", "0.7203919", "0.71584976", "0.7098806", "0.70464385", "0.7045119", "0.7007651", "0.6977412", "0.6965596", "0.69421935", "0.6937881", "0.6920694", "0.6899753", "0.6896273", "0.6796417", "0.6759626", "0.6759626", "0.6759626", ...
0.617952
81
Return the average entity score in this subentity.
def HPLC(YKHO, LEXu): return float(LEXu['es_bb'][1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _DDB(YKHO, LEXu):\n return float(LEXu['es']) / float(LEXu['count'])", "def eyjh(YKHO):\n return sum(YKHO.scores) / len(YKHO.scores)", "def O5mg(YKHO) -> float:\n return sum(YKHO._scores) / len(YKHO._scores)", "def VjSA(YKHO):\n return YKHO.data['avg']", "def S8vG(YKHO):\n return YKHO.pro...
[ "0.8439817", "0.78006226", "0.74981993", "0.7216157", "0.72037786", "0.7157771", "0.7098583", "0.7046004", "0.70440245", "0.70065194", "0.69773227", "0.69648683", "0.69407433", "0.69379723", "0.69217795", "0.68992525", "0.6895469", "0.6795337", "0.67590386", "0.67590386", "0....
0.0
-1
Returns the number of new 'edges' introduced by this merge.
def e0qG(YKHO, LEXu): return float(LEXu['new_edges'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8F9(YKHO):\n return len(YKHO.__generate_edges())", "def n8F9(YKHO):\n return sum((1 for bGrB in YKHO.iteredges()))", "def gUPt(YKHO):\n return len(YKHO.edges)", "def fOCg(YKHO) -> int:\n return YKHO.graph.number_of_edges()", "def a22f(YKHO):\n return len(YKHO.edges)", "def L1_y(YKHO) ...
[ "0.78781456", "0.7872353", "0.78302294", "0.7731362", "0.7659065", "0.7658958", "0.7618385", "0.76179594", "0.7602388", "0.75837255", "0.75546455", "0.7519724", "0.7472166", "0.74677306", "0.7424954", "0.7281639", "0.72358763", "0.7222344", "0.71567804", "0.7112408", "0.70654...
0.7495844
12
Get all features of entity.
def zhTA(YKHO, LEXu): mcUg = [] mcUg.append(YKHO.avg_pw(LEXu)) mcUg.append(YKHO.min_pw(LEXu)) mcUg.append(YKHO.max_pw(LEXu)) mcUg.append(YKHO.my_pw(LEXu)) mcUg.append(YKHO.min_e_score(LEXu)) mcUg.append(YKHO.max_e_score(LEXu)) mcUg.append(YKHO.avg_e_score(LEXu)) return mcUg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bjQf(YKHO):\n raise NotImplementedError", "def o1a4(YKHO):\n return []", "def o1a4(YKHO):\n return YKHO._features", "def all(Emd4):\n dixj = []\n for mWFP in NDOe:\n _x49 = Emd4.get_by_name(mWFP)\n if _x49 is None:\n _x49 = Emd4(name=mWFP)\n Emd4.query.s...
[ "0.80864763", "0.72966963", "0.7187111", "0.7046984", "0.6899245", "0.6855923", "0.67866296", "0.678346", "0.6630942", "0.65737665", "0.65528774", "0.65406877", "0.6531052", "0.65299827", "0.6496581", "0.6496581", "0.6496581", "0.6392731", "0.6329313", "0.62903166", "0.625454...
0.0
-1
Return a string representation of the given clause in DIMACS format
def emD_(woks): return ' '.join(map(str, woks)) + ' 0'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def meMG(YKHO, a5nE):\n YKHO.varname_dict = {}\n YKHO.varobj_dict = {}\n kc1W = AUKT(a5nE)\n U5bT = 'p cnf %d %d' % (len(kc1W), len(a5nE))\n XeTM = dict(list(zip(sorted(kc1W, key=lambda Ty9i: Ty9i.op), list(map(str, list(range(1, len(kc1W) + 1)))))))\n for SRYB in XeTM:\n YKHO.varname_dict...
[ "0.7148823", "0.6522882", "0.63644606", "0.6062219", "0.5972342", "0.5686479", "0.55405873", "0.5539543", "0.5490623", "0.54605454", "0.5407693", "0.5374766", "0.5262927", "0.52460927", "0.523993", "0.52349705", "0.52165234", "0.52085066", "0.5193419", "0.5183593", "0.5167734...
0.75723165
0
Takes in slit_width, wavelength, screen distance and a numpy array X(an array of distances from the center). Outputs an array of normalized intensities corresponding to X.
def ef1p(U2KR, __d3, goh9, EcVT): return (oyIN.sin(oyIN.pi * U2KR * EcVT / (__d3 * goh9)) / (oyIN.pi * U2KR * EcVT / (__d3 * goh9))) ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwsU(YKHO, WKvO):\n CkYf = (WKvO + 1.2) / 2.4 * YKHO.w\n EDSI = oyIN.clip(CkYf, 0, YKHO.w)\n return EDSI.astype(int).tolist()", "def jnV4(EcVT: np.ndarray) -> oyIN.ndarray:\n return EcVT * oyIN.sqrt(EcVT.shape[1] / oyIN.sum(EcVT ** 2, axis=1))[:, None]", "def NkkI(YKHO, bf9h=1):\n PtQX = max...
[ "0.59540147", "0.57589984", "0.57050526", "0.5555193", "0.5555193", "0.554314", "0.5518748", "0.551125", "0.5485161", "0.5449757", "0.5433689", "0.5433689", "0.53811353", "0.5365096", "0.5364787", "0.5362945", "0.5297261", "0.5281275", "0.5253729", "0.52493566", "0.5241639", ...
0.70764595
0
Takes text as input and return a list of sentences
def AjMb(YKHO, yAmx): Eab6 = YKHO.sentence_splitter.tokenize(yAmx) return Eab6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y2KJ(l5Ny):\n return l5Ny.split('.')", "def Rhv4(YKHO) -> x1iM[str]:\n return [yAmx for yAmx in ZbWC.split('(?<=[.!?])', YKHO.text)]", "def lpha(l5Ny):\n A97Q = K9NE(l5Ny)\n Rhv4 = [WKvO.text_with_ws for WKvO in A97Q.sents]\n return Rhv4", "def Rhv4(YKHO, l5Ny):\n if not YKHO.__isValidI...
[ "0.8644751", "0.8373806", "0.82083434", "0.8105775", "0.80660814", "0.80660814", "0.8019134", "0.78437096", "0.78341097", "0.77824146", "0.7673993", "0.7667824", "0.76604414", "0.76515794", "0.76396847", "0.7633886", "0.7618477", "0.75231296", "0.7519069", "0.7423092", "0.741...
0.63687086
96
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7797849", "0.77619886", "0.776157", "0.775872", "0.76596135", "0.76596135", "0.76596135", "0.76596135", "0.7586109", "0.7431844", "0.74070084", "0.7393994", "0.7358404", "0.7317217", "0.7268679", "0.72625685", "0.7261825", "0.7256399", "0.7229374", "0.7214238", "0.72015005...
0.7090477
49
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM1.imshow(Bcwd, interp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8193067", "0.8093563", "0.80270845", "0.80171025", "0.7992049", "0.79890734", "0.79785955", "0.7973588", "0.7959112", "0.79545826", "0.79353666", "0.7932262", "0.79320717", "0.79288954", "0.792416", "0.7922282", "0.7921632", "0.79207784", "0.7920719", "0.79201275", "0.7915...
0.78266144
76
Sets the id of this AddonReview.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX", "def id...
[ "0.7380014", "0.72055674", "0.71874046", "0.69977677", "0.6904393", "0.68745106", "0.68745106", "0.68745106", "0.68745106", "0.68745106", "0.6837734", "0.6837734", "0.6837734", "0.6837734", "0.6837734", "0.6837734", "0.6837734", "0.6837734", "0.6837734", "0.6837734", "0.67749...
0.6771661
89
Sets the author of this AddonReview.
def taDc(YKHO, taDc): YKHO._author = taDc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _giq(YKHO, taDc):\n YKHO.author = taDc", "def _giq(YKHO, taDc):\n YKHO.author = taDc\n YKHO.opf.author = taDc", "def taDc(YKHO, taDc):\n YKHO._author = taDc", "def taDc(YKHO, taDc: str):\n YKHO._author = taDc", "def taDc(YKHO, BWXx):\n YKHO._set_attr('author', BWXx)", "def Llkb(YKHO...
[ "0.79848194", "0.7938094", "0.7830009", "0.7641773", "0.75113225", "0.7337916", "0.72963196", "0.7191509", "0.6891381", "0.6890092", "0.68804467", "0.6780522", "0.66320026", "0.6630592", "0.65963024", "0.65963024", "0.65963024", "0.6542953", "0.6542953", "0.64430547", "0.6410...
0.7750484
4
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, CW_R): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8089204", "0.8089204", "0.8055265", "0.7983358", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, CW_R): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8457179", "0.8393067", "0.81457263", "0.8140635", "0.8133462", "0.8094992", "0.8093376", "0.8093376", "0.8093376", "0.80863357", "0.80863357", "0.8077303", "0.8077303", "0.8066831", "0.8043635", "0.8043635", "0.8043635", "0.8043635", "0.8043635", "0.8043635", "0.8043635", ...
0.0
-1
Returns the X coordinate outx
def NwFL(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X0em(YKHO):\n return YKHO._x", "def p5xg(YKHO):\n return YKHO.x_coord", "def nIKw(YKHO):\n return YKHO.coords[0]", "def WKvO(YKHO):\n return YKHO.coords[0]", "def WKvO(YKHO):\n if YKHO._x is None:\n YKHO.compute_coordinates()\n return YKHO._x", "def nIKw(YKHO) -> int:\n re...
[ "0.7144472", "0.704571", "0.69884753", "0.69036925", "0.6886327", "0.6882466", "0.6876571", "0.68262666", "0.68221694", "0.6783471", "0.67542624", "0.67264175", "0.67185736", "0.67100406", "0.669933", "0.667946", "0.6672563", "0.6651424", "0.6590078", "0.65885395", "0.6587251...
0.81587476
0
Returns the Y coordinate outx
def zk1K(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NwFL(YKHO):\n pass", "def yDCK(YKHO, WKvO):\n XP5J, LVAh = YKHO.get_p_y(WKvO)\n return LVAh", "def LVAh(YKHO):\n return YKHO.coords[1]", "def xdjK(YKHO):\n return YKHO._y", "def LVAh(YKHO, WKvO):\n return WKvO", "def YBz0(YKHO):\n return YKHO.y", "def LVAh(YKHO):\n return YK...
[ "0.7041606", "0.6938869", "0.6815363", "0.6749958", "0.67223054", "0.669634", "0.66469204", "0.6637387", "0.6562666", "0.6554838", "0.6518246", "0.6490876", "0.6485447", "0.6485204", "0.6485204", "0.6479372", "0.6475308", "0.6464286", "0.64640564", "0.645611", "0.64519066", ...
0.75225174
0
Finds the centre theta angle for the detector boxes. Then removes these detectors from the list.
def hX2U(FNXc, PRqV, IONi): eq9Y = FNXc[0:PRqV] quNS = sum(eq9Y) / len(eq9Y) GDh0 = FNXc[0:IONi] if len(GDh0) > 0: bgpD = sum(GDh0) / len(GDh0) else: bgpD = 0 FNXc = FNXc[max(PRqV, IONi):] return (quNS, bgpD, FNXc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QUMl():\n _tIi = oyIN.transpose(JGuI.pqr_r)\n LFlW = oyIN.transpose(JGuI.pqr_l)\n oeI7 = oyIN.empty((3, 0))\n Xrd6 = oyIN.empty(0)\n for Mkmy in _tIi:\n YylR = oyIN.arctan2(Mkmy[1], Mkmy[0]) * 180 / mM0K\n if YylR > -5:\n oeI7 = oyIN.append(oeI7, [[Mkmy[0]], [Mkmy[1]], [...
[ "0.5332642", "0.5275871", "0.5237453", "0.5198165", "0.51221174", "0.49811113", "0.49526542", "0.48942333", "0.48536772", "0.4786374", "0.47859287", "0.4784002", "0.47788873", "0.4778333", "0.47771534", "0.47717276", "0.47715685", "0.47710082", "0.4745159", "0.474441", "0.471...
0.49864346
5
Add pressure value in hPa
def _Orz(YKHO, BWXx): if BWXx != 0: YKHO.values.append(BWXx) YKHO.lastUpdate = ITS7.time() YKHO.__calculateAltitude() YKHO.__calculateVerticalSpeed() if YKHO.calibrated == False: YKHO.calibrateElevation(YKHO.calibratedElevation)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ls26(YKHO, BWXx):\n H33X = BWXx * 3386.38866666667 / 100.0\n YKHO.appendAsHPa(H33X)", "def CJ2p(YKHO):\n YKHO._read_temperature()\n Yh3e = YKHO._read24(S7ov) / 16\n CIn9 = float(YKHO._t_fine) / 2.0 - 64000.0\n AhCl = CIn9 * CIn9 * YKHO._pressure_calib[5] / 32768.0\n AhCl = AhCl + CIn9 * ...
[ "0.65474117", "0.63399184", "0.63012373", "0.6230542", "0.6138843", "0.60602725", "0.6022717", "0.59869814", "0.59565854", "0.59565854", "0.59565854", "0.5951667", "0.5949968", "0.59026426", "0.5842469", "0.5776172", "0.57687736", "0.5744407", "0.5714455", "0.5705264", "0.570...
0.68459624
0
computes the density at 3d radius r given lens model parameterization. The integral in the LOS projection of this quantity results in the convergence quantity.
def Hi6O(YKHO, Mkmy, an6U, QAeS, Bp6J, dYCZ): MRrp = YKHO.alpha2rho0(QAeS, an6U, Bp6J, dYCZ) return YKHO.density(Mkmy, an6U, MRrp, Bp6J, dYCZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cZM9(YKHO, Mkmy):\n if not oyIN.isscalar(Mkmy):\n Mkmy = oyIN.array(Mkmy)\n assert oyIN.min(Mkmy) > 0, 'Error: distances must be non-zero and positive.'\n if YKHO.s_exp is not None:\n Iasx, Jp_W, IYyu = YKHO.get_orbitals(YKHO.s_n, YKHO.s_exp, YKHO.s_coef, Mkmy)\n Tm4A = oyIN.sum(Y...
[ "0.62610763", "0.6154016", "0.5986892", "0.5943095", "0.59039974", "0.5778561", "0.5742141", "0.57339984", "0.56859547", "0.5618881", "0.5588497", "0.55418515", "0.5529989", "0.5523634", "0.5515343", "0.55067545", "0.55043894", "0.5460086", "0.5434444", "0.5431753", "0.540857...
0.63554454
0
Gets the headword of this Features.
def oF3x(YKHO) -> str: return YKHO._headword
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fdRN(YKHO):\n return YKHO._headline", "def TZYl(YKHO):\n guMW = 'lemma_headword'\n q4qs = [gb08._lemmas[YRbF]['Head'] for YRbF in Ni9Y(len(gb08._lemmas))]\n bNGt = YKHO.compare_items(q4qs)\n cPoC = []\n if False in bNGt:\n YKHO._warning_msg('lemma_headword', q4qs)\n for AIu6, vtfo...
[ "0.6860674", "0.68538785", "0.685257", "0.6668449", "0.6668449", "0.66341144", "0.65503645", "0.65503645", "0.6480602", "0.63797927", "0.6379214", "0.62822765", "0.62731886", "0.6260279", "0.62376165", "0.6200014", "0.61961657", "0.61846155", "0.6140328", "0.612257", "0.60990...
0.85303146
0
Sets the headword of this Features.
def oF3x(YKHO, oF3x: str): if oF3x is None: raise ValueError('Invalid value for `headword`, must not be `None`') YKHO._headword = oF3x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oF3x(YKHO) -> str:\n return YKHO._headword", "def sdCG(YKHO, sdCG):\n YKHO._head = sdCG", "def TZYl(YKHO):\n guMW = 'lemma_headword'\n q4qs = [gb08._lemmas[YRbF]['Head'] for YRbF in Ni9Y(len(gb08._lemmas))]\n bNGt = YKHO.compare_items(q4qs)\n cPoC = []\n if False in bNGt:\n YKHO...
[ "0.6955211", "0.67966014", "0.6347886", "0.6174029", "0.61009586", "0.6066841", "0.59008574", "0.5889142", "0.58777565", "0.5743371", "0.5725861", "0.56888956", "0.56814015", "0.56549245", "0.5627944", "0.55639756", "0.5531547", "0.547035", "0.547035", "0.54597026", "0.544199...
0.7884353
0
Sets the features of this Features.
def bySB(YKHO, bySB: List[Feature]): if bySB is None: raise ValueError('Invalid value for `features`, must not be `None`') YKHO._features = bySB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AqtX(YKHO, bySB: np.ndarray):\n YKHO.features = bySB", "def AqtX(YKHO, bySB: list):\n YKHO._features = bySB", "def AqtX(YKHO, bySB):\n YKHO.features_ = list(bySB)", "def bySB(YKHO, bySB):\n YKHO._features = bySB", "async def async_set_features(YKHO, bySB):\n YKHO._features = bySB", "de...
[ "0.8524767", "0.847594", "0.8302488", "0.8272724", "0.7906704", "0.7366369", "0.72811675", "0.6804041", "0.6618833", "0.65810674", "0.6458648", "0.6458648", "0.6349703", "0.6148163", "0.6144438", "0.6139152", "0.60952586", "0.6054114", "0.60118216", "0.5974977", "0.5935658", ...
0.7276082
7
it can cast to list
def v_nO(YKHO, sEAN: yaenv.Env): C0kC = sEAN.list('LIST_VAR', separator=':') wLyL = ['item1', 'item2'] assert C0kC == wLyL and type(C0kC) == list wLyL.append('item3') C0kC = sEAN.list('MISSING', wLyL) assert C0kC == wLyL and type(C0kC) == list assert sEAN.list('MISSING') is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Jar(YEnM):\n if not isinstance(YEnM, list):\n return [YEnM]\n else:\n return YEnM", "def X7_d(g4y1, _RnW):\n return d6Th(g4y1, _RnW, return_type=list)", "def lovD(WKvO):\n return WKvO if isinstance(WKvO, list) else [WKvO]", "def mFWN(WKvO):\n if isinstance(WKvO, list):\n ...
[ "0.75821555", "0.744226", "0.73420995", "0.72503155", "0.724641", "0.71924204", "0.7178681", "0.71703243", "0.71094763", "0.70966065", "0.70889264", "0.69534516", "0.69296837", "0.68623567", "0.6854597", "0.6849486", "0.6826553", "0.68180573", "0.68172383", "0.6800692", "0.67...
0.0
-1
Ensures that RuntimeError is raised in the situations where ``y_data``, ``x_data``, and/or ``y_std`` aren't onedimensional arrays.
def Ykn6(YKHO, mMG6, VUzz, FlKN): with trZe.raises(RuntimeError): szYM(mMG6, VUzz, alpha=1, y_std=FlKN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V53X(YKHO):\n YKHO.assertRaises(y7UD.DValuesError, y7UD.Spline.__init__, y7UD.Spline, oyIN.array([0.1, 0.5, 0.9]), oyIN.array([1, 2, 3, 4]))", "def ARmh(YKHO, LVAh, WKvO=None, PJWX=True):\n if not YKHO.ODE_order:\n if not LVAh.ndim == 2:\n raise ValueError(\"y-array is not 2 dimension...
[ "0.66363215", "0.6598652", "0.65775746", "0.6471084", "0.64506006", "0.6417221", "0.6371268", "0.63465166", "0.63339865", "0.6329666", "0.6326405", "0.63115", "0.62909544", "0.6188189", "0.6181296", "0.61522305", "0.614227", "0.6107352", "0.6101713", "0.6086358", "0.6067188",...
0.77549756
0
class_name returns the name of the class of this instance.
def _2sc(YKHO): return 'Wall'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _2sc(YKHO) -> str:\n return qe4Y.get(YKHO, 'class_name')", "def _2sc(YKHO) -> str:\n return YKHO.__class__.__name__", "def vrep(YKHO):\n return YKHO.__class__.__name__", "def _2sc(Emd4):\n return Emd4.__name__", "def _2sc(Emd4):\n return Emd4.__name__", "def Um9M(YKHO):\n CtJU = YKH...
[ "0.88284683", "0.8687595", "0.85586625", "0.84620094", "0.84620094", "0.83800036", "0.8343944", "0.8282965", "0.81931704", "0.81853914", "0.80695516", "0.7914546", "0.7914546", "0.7798547", "0.7789764", "0.77245504", "0.76725507", "0.7640857", "0.7640857", "0.76246464", "0.76...
0.0
-1
Returns a SQLAlchemy session.
def Dvct(YKHO): return YKHO.model.context.current
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KfiN():\n cuiw = oCsa(FJ3D(bind=eHpk))\n return cuiw", "def KfiN():\n return oCsa(FJ3D(autocommit=False, autoflush=False, bind=eHpk))", "def KfiN(YKHO):\n B2fa = YKHO._get_database_specific_session_args()\n f57V = zPjx.sessionmaker(bind=YKHO._engine, expire_on_commit=False, **B2fa)\n NGRy...
[ "0.8610989", "0.8528189", "0.84236026", "0.82809293", "0.8102113", "0.804496", "0.80422753", "0.7985043", "0.7925666", "0.78332883", "0.78188944", "0.77840346", "0.7714902", "0.7676854", "0.76368773", "0.7631893", "0.76062703", "0.7600843", "0.75768983", "0.7543173", "0.75359...
0.699715
68
Computes the hidden state that the RNN decoder should start with.
def yDRN(UXHt: Dict[str, torch.Tensor], _Pky: SequenceReducer, CLda: int) -> ht2j.Tensor: if ZTMI not in UXHt: RhFm = UXHt[azhC] else: RhFm = UXHt[ZTMI] if isinstance(RhFm, tuple): if len(RhFm) == 2: RhFm = RhFm[0] elif len(RhFm) == 4: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MAw8(YKHO):\n MuED = ZylS.keras.initializers.Zeros()\n oCR3 = MuED(shape=(YKHO.batch, YKHO.units))\n return oCR3", "def MP8d(YKHO):\n D5BU = ht2j.zeros(YKHO.num_layers, YKHO.batch_size, YKHO.hidden_size)\n return D5BU", "def MAw8(YKHO):\n return ZylS.zeros(shape=(YKHO.batch_size, YKHO.enc...
[ "0.7365687", "0.7285843", "0.72708154", "0.71049565", "0.7075189", "0.7075189", "0.7075189", "0.70705295", "0.70705295", "0.70691097", "0.70691097", "0.70623356", "0.69283736", "0.6861648", "0.6807063", "0.67662126", "0.6702251", "0.66405463", "0.66365856", "0.65644884", "0.6...
0.0
-1
Function to gather all tensors from several processes onto a list that is broadcast to all processes. Works on tensors that have the same number of dimensions, but where each dimension may differ. In this case tensors are padded, gathered and then trimmed to secure equal workload for all processes.
def fQC_(Aofo: torch.Tensor, uOe2: Optional[Any]=None) -> x1iM[ht2j.Tensor]: if uOe2 is not None: raise ValueError('Horovod does not support allgather using a subcommunicator at this time. Unset `group`.') if bHf7 is None or not bHf7.is_initialized(): return [Aofo] if len(Aofo.shape) == 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fQC_(Aofo: Tensor, uOe2: Optional[Any]=None) -> x1iM[llWB]:\n if uOe2 is None:\n uOe2 = ht2j.distributed.group.WORLD\n Aofo = Aofo.contiguous()\n aDYX = ht2j.distributed.get_world_size(uOe2)\n ht2j.distributed.barrier(group=uOe2)\n if Aofo.ndim == 0:\n return mzwl(Aofo, uOe2, aDYX)...
[ "0.64991826", "0.60119003", "0.59108883", "0.5896165", "0.5877208", "0.58289486", "0.5825451", "0.5816037", "0.5815197", "0.5794774", "0.57451737", "0.5593687", "0.5518189", "0.55010974", "0.54669666", "0.5439722", "0.54231274", "0.5422362", "0.5390832", "0.5338321", "0.53204...
0.5252914
25
Returns the appropriate tokenizer from the tokenizer registry. Raises a KeyError if a tokenizer that does not exist in the registry is requested, with additional help text if the requested tokenizer would be available for a different version of torchtext.
def C01s(nxjs: str) -> ht2j.nn.Module: if nxjs in vuwl: return vuwl[nxjs] if ht2j.torch_version.TorchVersion(LZZ6.__version__) < (0, 12, 0) and nxjs in NnJU: raise KeyError(f"torchtext>=0.12.0 is not installed, so '{nxjs}' and the following tokenizers are not available: {NnJU}") if ht2j.torc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tj6D(iw_v: str, hl57: str, MMMS: str):\n return C01s(iw_v)(vocab_file=hl57, pretrained_model_name_or_path=MMMS)", "def DbIc(ZGE9):\n return F2II if ZGE9 == 'openai-gpt' else DUpL", "def nxjs(YKHO) -> str:\n return YKHO._tokenizer_name", "def zbc9(HlGW='[^\\\\W\\\\d_]+'):\n return M9Fq(HlGW)",...
[ "0.6932316", "0.65151507", "0.6211736", "0.5683044", "0.55956423", "0.55873615", "0.532946", "0.52995294", "0.52914906", "0.52351135", "0.5226498", "0.5084208", "0.50726", "0.50354356", "0.50354356", "0.50353926", "0.5031914", "0.49799556", "0.49179465", "0.49120674", "0.4894...
0.7811575
0
Reads image from bytes object from a numpy file.
def Yugx(TWsh: Optional[bytes]=None) -> h8nf[ht2j.Tensor]: try: with aKaX(TWsh) as NRcB: LNo8 = oyIN.load(NRcB) return ht2j.from_numpy(LNo8) except Exception as e: qmLP.warn(f'Failed to read image from numpy file. Original exception: {tTpl}') return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eCdp(eQJI):\n VXjJ = hnIv.open(aKaX(eQJI))\n qw7D = oyIN.asarray(VXjJ, dtype=oyIN.uint8)\n return qw7D", "def bRDu(VXjJ: bytes) -> oyIN.ndarray:\n Xn71 = hnIv.open(aKaX(VXjJ))\n Xn71 = Xn71.convert('RGB')\n return oyIN.array(Xn71)", "def flFv(hGN5, I1mm='color', fSkI=False):\n yySS = o...
[ "0.7186838", "0.6947284", "0.6729533", "0.6708283", "0.6652406", "0.66466206", "0.65552956", "0.65343666", "0.6502569", "0.6500541", "0.6487845", "0.6451106", "0.6416025", "0.6390454", "0.63616335", "0.63452363", "0.6327411", "0.63257164", "0.63243675", "0.63176537", "0.63082...
0.7594153
0
Converts int or tuple to tuple of ints.
def EV8W(Ty9i: Union[int, Tuple[int, int]]) -> AzJI[int, int]: if ht2j.jit.isinstance(Ty9i, int): return (Ty9i, Ty9i) else: return Ty9i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qsp4(hkxX: Union[int, Iterable[int]]) -> AzJI[int, ...]:\n try:\n return tuple(hkxX)\n except TypeError:\n return (hkxX,)", "def GPVD(YKHO, Ty9i):\n try:\n jzdc, Fg_i = [int(WKvO) for WKvO in Ty9i]\n except TypeError:\n jzdc, Fg_i = (int(Ty9i), int(Ty9i))\n return (...
[ "0.8046068", "0.7455156", "0.67862165", "0.6766072", "0.6582368", "0.65491015", "0.65058875", "0.64197224", "0.633446", "0.62622243", "0.6201901", "0.6185957", "0.618163", "0.6177418", "0.6145469", "0.6140226", "0.6122639", "0.609583", "0.60865235", "0.6075911", "0.6057181", ...
0.7828776
1
torchscriptcompatible implementation of pad.
def hVLt(VXjJ: torch.Tensor, XqwL: Union[int, Tuple[int, int]]) -> ht2j.Tensor: XqwL = EV8W(XqwL) J0yt = VXjJ.shape[-2:] x_5g = (ht2j.tensor(XqwL) - ht2j.tensor(J0yt)) / 2 dvgN = ht2j.cat((ht2j.floor(x_5g), ht2j.ceil(x_5g))) dvgN[dvgN < 0] = 0 dvgN = [int(WKvO) for WKvO in dvgN] return vuvg....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(YKHO, zZcM):\n if YKHO.pre_pad:\n zr3f = zZcM.new(zZcM.size(0), zZcM.size(1), zZcM.size(2), zZcM.size(3), 2).zero_()\n zr3f.narrow(zr3f.ndimension() - 1, 0, 1).copy_(ht2j.unsqueeze(zZcM, 4))\n else:\n H5Km = YKHO.padding_module.updateOutput(zZcM)\n zr3f = zZcM.new(H5Km.si...
[ "0.72458404", "0.6990202", "0.68733495", "0.6681599", "0.658251", "0.6514352", "0.6432019", "0.63512146", "0.63297063", "0.63292867", "0.62269056", "0.61807215", "0.61452216", "0.61006916", "0.6098804", "0.6095782", "0.5979381", "0.59760636", "0.59721065", "0.59706455", "0.59...
0.60636526
16
Takes a list of float values and creates a padded torch.Tensor.
def KVH6(YKHO, Ty9i: TorchscriptPreprocessingInput) -> ht2j.Tensor: if ht2j.jit.isinstance(Ty9i, x1iM[ht2j.Tensor]): return YKHO.forward_list_of_tensors(Ty9i) if ht2j.jit.isinstance(Ty9i, x1iM[str]): return YKHO.forward_list_of_strs(Ty9i) raise ValueError(f'Unsupported input: {Ty9i}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RnIX(fUYa: torch.Tensor, KHPh: int):\n GCiI = len(fUYa)\n wzH_ = max((WKvO.size(0) for WKvO in fUYa))\n hVLt = fUYa[0].new(GCiI, wzH_, *fUYa[0].size()[1:]).fill_(KHPh)\n for YRbF in range(GCiI):\n hVLt[YRbF, :fUYa[YRbF].size(0)] = fUYa[YRbF]\n return hVLt", "def Dt8l(UHhk, C7vt, eusk=No...
[ "0.74099237", "0.7046948", "0.6468431", "0.63267577", "0.6208813", "0.6051837", "0.6025906", "0.6004397", "0.60012424", "0.5948561", "0.592952", "0.58699805", "0.5866198", "0.58455294", "0.5793485", "0.57922745", "0.57538325", "0.5751678", "0.5733133", "0.5677816", "0.564319"...
0.0
-1
Show confusion matrix in the models predictions for each `output_feature_name`. For each model (in the aligned lists of test_statistics and model_names) it produces a heatmap of the confusion matrix in the predictions for each output_feature_name that has a confusion matrix in test_statistics. The value of `top_n_class...
def YsYU(QXHA: List[dict], yIVm: dict, bLuA: Union[str, None], IhYd: List[int], NkkI: bool, pbTU: Union[str, List[str]]=None, yNGB: str=None, unm1: str='pdf', **B2fa) -> None: bZ34 = QXHA Sa4j = nN0S(pbTU) cAaf = 'confusion_matrix_{}_{}_{}.' + unm1 LiKH = E061(yNGB, cAaf) W9Cg = fWVU(bLuA, bZ34) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kOOa(Yptr: List[int], N6Z1: List[int], tGDF: List[str]):\n W1q_ = YsYU(Yptr, N6Z1)\n QrM1.figure(figsize=(10, 8))\n uuEx.heatmap(W1q_, xticklabels=tGDF, yticklabels=tGDF, annot=True, fmt='g')\n QrM1.xlabel('Prediction')\n QrM1.ylabel('Label')\n QrM1.title('Confusion matrix')\n QrM1.show()\...
[ "0.67046136", "0.6542396", "0.64330494", "0.6371753", "0.63016176", "0.62905127", "0.62885064", "0.6239082", "0.6179755", "0.61596113", "0.61429626", "0.6116021", "0.6095083", "0.60672265", "0.6063781", "0.60632175", "0.6060207", "0.6053498", "0.6036354", "0.60258293", "0.602...
0.71308845
0
Gets the maximum probability per timestep.
def BfWA(WErR: Union[list, tuple, np.ndarray]) -> oyIN.ndarray: if isinstance(WErR, (list, tuple)): FTLo = [] for c5st in WErR: FTLo.append(oyIN.max(c5st)) FTLo = oyIN.array(FTLo) elif isinstance(WErR, oyIN.ndarray): FTLo = oyIN.max(WErR, axis=-1) else: ra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def whPG(YKHO, WKvO):\n WErR = dict()\n for Mkmy in range(0, 10):\n YKHO.check_overall_probability(WKvO, Mkmy)\n WErR[Mkmy] = YKHO.check_overall_probability(WKvO, Mkmy)\n return max(WErR, key=WErR.get)", "def ckrN(Npbi):\n ppkj = nYrB(Npbi)\n return ppkj.max(1)", "def zleq(YKHO):\n...
[ "0.69242597", "0.6880004", "0.68158865", "0.6684094", "0.66667616", "0.659712", "0.6525153", "0.6467051", "0.64595526", "0.6449971", "0.6415577", "0.64086103", "0.6402273", "0.63840574", "0.63840574", "0.63840574", "0.63840574", "0.63840574", "0.63840574", "0.6372147", "0.635...
0.0
-1
Repeatedly go through all of the nodes in the graph, moving each of the nodes that has all its edges resolved, onto a sequence that forms our sorted graph. A node has all of its edges resolved and can be moved once all the nodes its edges point to, have been moved from the unsorted graph onto the sorted one.
def _Ypz(U6zt): Wndm = [] U6zt = dict(U6zt) while U6zt: nUIZ = False for Q6kx, mC4V in list(U6zt.items()): if mC4V is None: mC4V = [] for D70y in mC4V: if D70y in U6zt: break else: nUIZ = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BA9O(YKHO):\n while YKHO.nodes != []:\n ZXxx = False\n for Q6kx in YKHO.leaf_nodes():\n ZXxx = True\n YKHO.prune_node(Q6kx)\n yield Q6kx\n if not ZXxx:\n raise xxmo('Sorting has found a cyclic graph.')", "def pYqf(YKHO):\n YKHO.find_reach...
[ "0.6613181", "0.6436364", "0.63631773", "0.6344224", "0.63043034", "0.61940384", "0.6131431", "0.61140776", "0.6080406", "0.6055466", "0.6052996", "0.6007211", "0.596684", "0.5962214", "0.5950801", "0.5950208", "0.58603275", "0.5842912", "0.58381754", "0.5833707", "0.58147246...
0.56435585
35
Returns custom dataclass field for `ludwig.modules.optimization_modules.GradientClippingConfig`. Allows `None` by default.
def J0gb(JBZA: str, WmM4: Dict={}): L8u5 = True class GradientClippingMarshmallowField(V_D6.Field): """Custom marshmallow field class for gradient clipping. Deserializes a dict to a valid instance of `ludwig.modules.optimization_modules.GradientClippingConfig` and creates a correspondi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MaHD(K0do, LI2z):\n for uOe2 in K0do.param_groups:\n for xqoZ in uOe2['params']:\n if xqoZ.grad is not None:\n xqoZ.grad.data.clamp_(-LI2z, LI2z)", "def MaHD(K0do, LI2z):\n for uOe2 in K0do.param_groups:\n for xqoZ in uOe2['params']:\n if xqoZ.grad is ...
[ "0.54549825", "0.542919", "0.542919", "0.542919", "0.542919", "0.542919", "0.53763163", "0.53555983", "0.513759", "0.5063428", "0.49500924", "0.49339613", "0.49132928", "0.4895377", "0.48541188", "0.485303", "0.4837912", "0.4816035", "0.4816035", "0.48073378", "0.48039523", ...
0.7565714
0
Removes unsupported feature types from the given JSON schema. Designed for use with `get_{input/output}_feature_jsonschema`.
def IpQc(uPxI: Dict): VpD5 = ['binary', 'category', 'number'] RcYg = [] for Q3Ge in uPxI['items']['allOf']: zihi = Q3Ge['if']['properties']['type']['const'] if zihi in VpD5: RcYg += [Q3Ge] uPxI['items']['allOf'] = RcYg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ElSQ():\n L3iJ.xmlSchemaCleanupTypes()", "def zUoZ(uPxI):\n return {G1Hx: Ty9i for G1Hx, Ty9i in uPxI.items() if G1Hx not in wGpf and (not G1Hx.lower().startswith('x-'))}", "def RVZz(uPxI):\n if uPxI.sparse_feature:\n G9jH.warning('The input schema has sparse features which are currently no...
[ "0.61883664", "0.6180169", "0.57744074", "0.5642379", "0.55615807", "0.5445781", "0.5445781", "0.5424547", "0.5355024", "0.52620095", "0.5184814", "0.5130405", "0.51075065", "0.5100749", "0.50728637", "0.50677973", "0.5060568", "0.50539994", "0.50453323", "0.49848992", "0.497...
0.6224048
0
Returns the filename for a stage of inference.
def I34W(EtM5: str, begE: TorchDevice) -> str: if EtM5 not in [orHQ, Ytib, _CIX]: raise ValueError(f'Invalid stage: {EtM5}.') if EtM5 == Ytib: return f'inference_{EtM5}-{begE}.pt' else: return f'inference_{EtM5}.pt'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def leAC(YKHO):\n if YKHO.file_name is None:\n return None\n else:\n IznC = Hy7s.path.split(YKHO.file_name)[-1]\n IznC, *YBcr = IznC.rsplit('.', 1)\n IWSG = YBcr and YBcr[0] in ('json', 'yaml')\n if IWSG and YKHO._seed and YKHO._seed.spawn_key:\n IznC += '-e' + s...
[ "0.67717093", "0.6729912", "0.6703513", "0.66605616", "0.6591312", "0.6491994", "0.6490706", "0.64670163", "0.64322525", "0.64200824", "0.6362181", "0.63601136", "0.63601136", "0.63356036", "0.63253987", "0.6307907", "0.62813157", "0.6236171", "0.62060213", "0.61992997", "0.6...
0.7852959
0
Converts a dictionary of predictions into a pandas DataFrame.
def Vy2X(N6Z1: Dict[str, Dict[str, Union[List[Any], torch.Tensor, np.array]]]) -> rLdf.DataFrame: hlel = {} for _BgK, aTj1 in N6Z1.items(): for H5ew, BWXx in aTj1.items(): e8fK = f'{_BgK}_{H5ew}' if not isinstance(BWXx, list): BWXx = BWXx.tolist() hlel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o87x(YKHO):\n import pandas as rLdf\n Csk6 = U8Lr({'y': YKHO.y})\n for nvEb in YKHO.predictors:\n Csk6[nvEb.name] = nvEb.x\n jQ3Z = rLdf.DataFrame(Csk6)\n return jQ3Z", "def o87x(YKHO, Mjw9):\n return rLdf.DataFrame.from_dict(Mjw9, orient='index')", "def DWLq(Mjw9):\n Cc00 = rLd...
[ "0.7134627", "0.7088393", "0.70794797", "0.70079124", "0.6999202", "0.6766331", "0.66250104", "0.6609191", "0.6601869", "0.65813565", "0.6569423", "0.6474816", "0.6465655", "0.63928306", "0.6367752", "0.62442786", "0.622169", "0.62078553", "0.617692", "0.617528", "0.61686736"...
0.8672173
0
Forward pass through the predictor. Ensures that the inputs are on the correct device. The outputs are on the same device as self.predictor.
def LhdH(YKHO, tL96: Dict[str, torch.Tensor]) -> cuzp[str, ht2j.Tensor]: for G1Hx, Ty9i in tL96.items(): tL96[G1Hx] = Ty9i with ht2j.no_grad(): mjpn = YKHO.predictor(tL96) return mjpn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pftB(YKHO):\n ZylS.summary.image('image', tensor=ZylS.reshape(YKHO.x, (YKHO.batch_size, 28, 28, 1)), max_outputs=10)\n WKvO = YKHO.x\n MKlR = ZylS.nn.relu(fhcK.fully_connected(WKvO, num_outputs=YKHO.input_size // 2, activation_fn=None))\n YKHO.logits = fhcK.fully_connected(MKlR, num_outputs=10, act...
[ "0.69631", "0.6903938", "0.68522716", "0.68467283", "0.6772732", "0.6745883", "0.6720709", "0.6701661", "0.66913366", "0.666534", "0.665999", "0.6652311", "0.66331595", "0.6628414", "0.66244787", "0.6614972", "0.65962327", "0.6588843", "0.6541954", "0.6538636", "0.6509545", ...
0.0
-1
Full path file name of the SQL database file
def nUeQ(YKHO): return YKHO._file
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I01E() -> str:\n PBUt = JgO7()\n return Hy7s.path.join(PBUt, aeEu)", "def Ux0P(YKHO):\n return YKHO._dbfile", "def QRCt(nUeQ):\n Sd0C = pmON.join('databases', '{0}'.format(nUeQ))\n tFj2 = pmON.join(eVGq, Sd0C)\n return tFj2", "def QKV0():\n return WQbV('vmchecker.db')", "def x4jr(Y...
[ "0.7734779", "0.76639014", "0.7617889", "0.7582012", "0.7383742", "0.7242772", "0.7196829", "0.7179363", "0.7029488", "0.6984213", "0.69673747", "0.6651508", "0.6626306", "0.66090417", "0.64260036", "0.64236784", "0.6420329", "0.6413597", "0.6392382", "0.6372003", "0.6341216"...
0.0
-1
Stop previouslystarted listening sessions.
def AppG(YKHO) -> None: assert YKHO.client_recv YKHO.client_recv = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCyR(YKHO) -> None:\n YKHO.stop_listening = True", "def os8w(YKHO):\n if YKHO.listener:\n YKHO.listener.stopListening()", "def niYp(YKHO):\n if YKHO.stop_flag is not None:\n YKHO.stop_flag.set()", "def JCyR(YKHO):\n if YKHO.running:\n try:\n YKHO._updating = Tr...
[ "0.7506976", "0.74805695", "0.7356824", "0.7166463", "0.71475077", "0.7137252", "0.7110063", "0.7097007", "0.70884806", "0.7029489", "0.70192957", "0.6998198", "0.69814783", "0.6965208", "0.6959934", "0.69020873", "0.68814963", "0.6833605", "0.6713976", "0.66331416", "0.66100...
0.7380344
2
Sends a bunch of messages and verifies each one is received exactly once.
def _GhP(YKHO): Qk52 = 10000 rI07 = 0 GPoQ = 0 DlWa = 1 def HlCR(d6pt): nonlocal expected_msgcount tO9_ = 'msg-' + str(d6pt) if YKHO.cointoss(): rI07 += 1 return tO9_ return tO9_ + oQ_V.ALWAYSDROP_TEXT yEHD = {HlCR(YRbF): hJTo.AtomicNumber...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iTd5(YKHO):\n YKHO.sock.send(Ol8d + Ol8d)\n vEq1, pB3N = YKHO.inverter.receive()\n YKHO.assertEqual(b'\\x00\\x01\\x02', vEq1)\n YKHO.assertEqual(b'', pB3N)\n vEq1, pB3N = YKHO.inverter.receive()\n YKHO.assertEqual(b'\\x00\\x01\\x02', vEq1)\n YKHO.assertEqual(b'', pB3N)", "def f5Vu(yEHD):...
[ "0.71459395", "0.683277", "0.6680603", "0.665214", "0.648256", "0.6441604", "0.6294099", "0.62871695", "0.6267423", "0.6255334", "0.6249038", "0.6204902", "0.61748075", "0.6156605", "0.6147245", "0.6129862", "0.61195487", "0.6112097", "0.61098164", "0.607688", "0.6039108", ...
0.0
-1
Verify that the count of messages that still remain in our map is exactly equal to the number of messages dropped by the transport i.e., they were never received.
def Ns38(YKHO): eQSh = YKHO.transport.get_stats() VwDK = eQSh.randomdrops kllY = eQSh.forcedrops vsPs = len(YKHO.msgmap) tO9_ = 'Final verification ForceDrops: %d RandomDrops: %d MISSING: %d' vzeF.info(tO9_, kllY, VwDK, vsPs - VwDK) if VwDK != vsPs: vzeF.info('Drop queue size: %d', l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mspm(YKHO):\n YKHO.channel_layer.send('test-deletion', {'first': True})\n YKHO.receive(['test-deletion'])\n ck8o = YKHO.channel_layer.connection(0).dbsize()\n YKHO.channel_layer.send('test-deletion', {'big': False})\n YKHO.receive(['test-deletion'])\n YKHO.assertEqual(ck8o, YKHO.channel_layer...
[ "0.61592174", "0.6045346", "0.60270584", "0.59984934", "0.5781858", "0.57705855", "0.57617444", "0.5726655", "0.56904763", "0.56840694", "0.5683854", "0.5673073", "0.5666461", "0.56659603", "0.56505466", "0.564725", "0.5620546", "0.5587591", "0.55720824", "0.55534524", "0.555...
0.7626821
0
Calculates and returns the surface area of the cube
def tGq1(YKHO): tGq1 = YKHO.sideLength ** 2 * 6 return tGq1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cPLc(HEZd):\n return HEZd", "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def fEMe(LyOL: float) -> float:\n if LyOL < 0:\n raise ValueError('surface_area_cube() only accepts non-negative values')\n return 6 * LyOL ** 2", "def B7Mv(YKHO) -> float:\n return 4 * oy...
[ "0.8243938", "0.7746029", "0.77131724", "0.7386761", "0.73718613", "0.7304005", "0.72820234", "0.7138774", "0.7007039", "0.6898807", "0.68708813", "0.6836546", "0.68086857", "0.6770699", "0.67436135", "0.6673381", "0.65992916", "0.6555283", "0.6523717", "0.6516486", "0.650901...
0.7716237
2
Visiting a nonexistent shortlink presents a link not found error.
def VIBG(YKHO): im04 = YKHO.app.get('/TheStakeOut') assert 'No url found' in im04.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RQdI(P1dF):\n return 'Bummer, there is nothing at this URL.'", "def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)", "def m7kB(tTpl):\n return ('Sorry, nothing at this URL.', 404)", "def m7kB(tTpl):\n return ('Sorry, nothing at this URL.', 404)", "def m7kB(tTpl):\n return ('Sorry...
[ "0.6707295", "0.6355926", "0.6321469", "0.6321469", "0.6321469", "0.6321469", "0.6321469", "0.6321469", "0.6321469", "0.63080055", "0.63025105", "0.6287139", "0.6287139", "0.6287139", "0.6287139", "0.6287139", "0.6287139", "0.6287139", "0.6287139", "0.6216288", "0.6193737", ...
0.74362814
0
Add a plane to the scene.
def OrzO(YKHO, YFuj, WKvO, LVAh): Tq9Y() F6jf = R6Bn.mrmlScene C3ST = R6Bn.vtkMRMLModelNode() C3ST.SetScene(F6jf) C3ST.SetName(F6jf.GenerateUniqueName('.ObturatorPlane')) afjW = YU_E.vtkPlaneSource() YFuj -= 25 * (WKvO + LVAh) afjW.SetOrigin(list(YFuj)) afjW.SetPoint1(oyIN.array(YFuj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yWtI(YKHO, kEC0):\n YKHO.__plane_list.append(kEC0)", "def FOL7(YKHO, U6D_, kEC0=0):\n if kEC0 not in YKHO.mElements:\n YKHO.mElements[kEC0] = []\n YKHO.mElements[kEC0].append(U6D_)", "def Hd80(YKHO, WKvO, LVAh, epBp):\n YKHO.ob.append(XmRU.sphere(x=WKvO, y=LVAh, z=epBp, radius=0.1))", ...
[ "0.824134", "0.66390467", "0.6552949", "0.62218213", "0.6158426", "0.5864087", "0.58619595", "0.58610123", "0.58062255", "0.57678956", "0.5756324", "0.5682945", "0.5608015", "0.5588542", "0.5556781", "0.554467", "0.5536508", "0.55351496", "0.5525702", "0.55016047", "0.548711"...
0.74481606
1
Reset coronal segment orientation.
def Q2CE(YKHO): Tq9Y() VSiP = R6Bn.mrmlScene.GetNodeByID('vtkMRMLSliceNodeGreen') if VSiP == None: VSiP = R6Bn.mrmlScene.GetNodeByID('vtkMRMLSliceNode3') IN4w = R6Bn.vtkSlicerReformatLogic() VSiP.SetOrientationToCoronal() VSiP.Modified()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENzu(YKHO):\n if YKHO.oriented:\n return\n YKHO.substrates = YKHO.substrates.simplify(S4ak)\n YKHO.substrates = LBWB.ops.orient(YKHO.substrates)\n YKHO.oriented = True", "def u4Cg(YKHO):\n YKHO.shape = YKHO.shape.T", "def ozHE(YKHO):\n if len(YKHO.segments) == 0:\n return\n ...
[ "0.62244356", "0.6110344", "0.59891415", "0.5974032", "0.5969279", "0.58223754", "0.57261384", "0.5674075", "0.55200714", "0.5513303", "0.55112165", "0.5492887", "0.5476411", "0.5448116", "0.5445093", "0.5438349", "0.53278756", "0.5326647", "0.5323922", "0.53049713", "0.52963...
0.714825
0
Calculates the Hausdorff's distance [HD]_ of two needles. Both needles are truncated to start and end at the same slices.
def IHwN(YKHO, FJhS, Yk_P): if _eFN: Tq9Y() i4Va = R6Bn.mrmlScene.GetNodeByID(FJhS) Zkp4 = i4Va.GetPolyData() rUTj = R6Bn.mrmlScene.GetNodeByID(Yk_P) PZYY = rUTj.GetPolyData() v6SN = Zkp4.GetNumberOfPoints() dg8z = PZYY.GetNumberOfPoints() vELP = None PtQX = None ayqa, gD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JYgZ(aBQf, Y9dS, KVH6, dir):\n if KVH6 == None:\n return max(JYgZ(aBQf, Y9dS, True, dir), JYgZ(aBQf, Y9dS, False, dir))\n else:\n w3x8, dBbJ = (aBQf, Y9dS) if KVH6 else (Y9dS, aBQf)\n Jw7X, eUWA = dir if KVH6 else (-dir[0], -dir[1])\n return sum([min([Dy5h((EBgd[0] + Jw7X, EBg...
[ "0.6700508", "0.66352427", "0.6626204", "0.6493618", "0.64190805", "0.63637537", "0.6325545", "0.6302611", "0.6280827", "0.6232068", "0.6176193", "0.61688465", "0.6160264", "0.6121613", "0.6097928", "0.6075825", "0.607546", "0.60616726", "0.59389544", "0.591738", "0.5889618",...
0.65440655
3
Returns the distance between the tip of two needles
def oC1D(YKHO, FJhS, Yk_P): if _eFN: Tq9Y() Q6kx = R6Bn.mrmlScene.GetNodeByID('vtkMRMLModelNode' + str(FJhS)) LpnT = Q6kx.GetPolyData() rUTj = R6Bn.mrmlScene.GetNodeByID('vtkMRMLModelNode' + str(Yk_P)) PZYY = rUTj.GetPolyData() XP5J, kiCr = ([0, 0, 0], [0, 0, 0]) HpuQ = [0, 0, 0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(YKHO, oUYE, Rtzx):\n kgDL = zip(oUYE, Rtzx)\n return epAf.sqrt(abs(sum(map(lambda exwG: YKHO.subsq(*exwG), kgDL))))", "def pImw(XHsu, jDcc):\n return ((jDcc[0] - XHsu[0]) ** 2 + (jDcc[1] - XHsu[1]) ** 2 + (jDcc[2] - XHsu[2]) ** 2) ** 0.5", "def oysP(cntZ: Waypoint, CsFy: Waypoint) -> int:\n ...
[ "0.7278756", "0.7114014", "0.7066871", "0.7044566", "0.7012027", "0.70021296", "0.6969307", "0.695868", "0.6954002", "0.6939553", "0.69126475", "0.69067514", "0.68834025", "0.68827206", "0.6839414", "0.68245524", "0.6820189", "0.6810298", "0.6799104", "0.67873675", "0.6765572...
0.68236417
16
Returns the distance between the base of two needles
def Te7S(YKHO, FJhS, Yk_P): if _eFN: Tq9Y() Q6kx = R6Bn.mrmlScene.GetNodeByID('vtkMRMLModelNode' + str(FJhS)) LpnT = Q6kx.GetPolyData() rUTj = R6Bn.mrmlScene.GetNodeByID('vtkMRMLModelNode' + str(Yk_P)) PZYY = rUTj.GetPolyData() XP5J, kiCr = ([0, 0, 0], [0, 0, 0]) HpuQ = [0, 0, 0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A8hk(jzdc, Fg_i):\n return oyIN.sqrt(oyIN.sum((jzdc - Fg_i) ** 2))", "def Ayfi(jzdc, Fg_i):\n return oyIN.sum((jzdc - Fg_i) ** 2) ** 0.5", "def pImw(jzdc, Fg_i):\n return oyIN.sum((jzdc - Fg_i) ** 2.0) ** 0.5", "def pImw(Tmix, tD_z):\n return abs(len(Tmix.goal) - len(tD_z.goal))", "def qKJ5...
[ "0.7452129", "0.7053205", "0.69995016", "0.6960214", "0.69244105", "0.6893356", "0.68543047", "0.6840622", "0.68222964", "0.68041885", "0.6792362", "0.6790861", "0.67707527", "0.67614615", "0.67474234", "0.6713002", "0.6708609", "0.67074704", "0.670717", "0.66980654", "0.6691...
0.6587368
29
Get a Qt bold font ??? Used?
def BgOT(YKHO): RovI() Jcbn = eA0O.QFont('Sans Serif', 12, eA0O.QFont.Bold) return Jcbn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BgOT(YKHO):\n RovI()\n Jcbn = eA0O.QFont('Sans Serif', 12, eA0O.QFont.Bold)\n return Jcbn", "def nzpg(YKHO):\n return I4qd(YKHO.name[0:2] + 'B', YKHO.size)", "def M60E(JSRs=False):\n o9av = fDEE()\n o9av.setPointSize(CjnN)\n o9av.setBold(JSRs)\n return o9av", "def EIZQ(YKHO):\n ...
[ "0.86582637", "0.7380761", "0.7377628", "0.70487034", "0.68645406", "0.6864019", "0.6856015", "0.68205136", "0.6728196", "0.66383237", "0.66360015", "0.65626144", "0.65626144", "0.65588915", "0.65588915", "0.65588915", "0.646702", "0.6365736", "0.63470936", "0.6321657", "0.63...
0.8530899
1
Encode query values for RAPI URL.
def mP_G(xDcj): Aofo = [] for mWFP, BWXx in xDcj: if BWXx is None: Aofo.append((mWFP, '')) elif isinstance(BWXx, bool): Aofo.append((mWFP, int(BWXx))) elif isinstance(BWXx, (list, tuple, dict)): raise ValueError('Invalid query data type %r' % type(BWXx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gy1I(YKHO):\n RiEo = {}\n for H5ew, wEf2 in YKHO.__dict__.iteritems():\n if not H5ew.startswith('_'):\n RiEo[H5ew] = wEf2.encode('utf-8')\n return uRlK.urlencode(RiEo)", "def Hj_B(QePW):\n return Wv2z(QePW)", "def qoAz(nPrm):\n NArs = []\n for mWFP, BWXx in nPrm.items():...
[ "0.75739545", "0.7011164", "0.67879283", "0.67101306", "0.66943675", "0.66450316", "0.653409", "0.6517327", "0.65054566", "0.6364978", "0.6315464", "0.627922", "0.62099165", "0.6191805", "0.6141534", "0.6101483", "0.6090304", "0.6079465", "0.60540074", "0.60085505", "0.600017...
0.5682679
51
Gets the Remote API version running on the cluster.
def CPyo(YKHO): return YKHO._SendRequest(mdOq, '/version', None, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q2ji(YKHO):\n return YKHO.connector.request('GET', '/app/webapiVersion')", "def kaPv(YKHO):\n return YKHO.__make_api_call('get/version')", "def kaPv(YKHO):\n Mkmy = YKHO._create_operation_request(YKHO, method='GET')\n JPZk = gbMd(YKHO._session, Mkmy).json()\n return JPZk['currentVersion']", ...
[ "0.7660233", "0.7454487", "0.74486893", "0.73802835", "0.73116934", "0.7291367", "0.72758824", "0.72734594", "0.7242295", "0.7213896", "0.7129838", "0.7097745", "0.7068309", "0.7052281", "0.7017182", "0.7017182", "0.7017182", "0.7017182", "0.7017182", "0.7017182", "0.7017182"...
0.7041777
14
Gets the Operating Systems running in the Ganeti cluster.
def mLA8(YKHO, lo9Y=None): xDcj = [] oYF2(xDcj, lo9Y) return YKHO._SendRequest(mdOq, '/%s/os' % xuBk, xDcj, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def znYK():\n pass", "def x1zG(YKHO, jQ3Z: str=None, i8WE: str=None, N1p7: str=None, AXRD: int=None):\n NArs = {'df': jQ3Z, 'ts': i8WE, 'cursor': N1p7, 'pageSize': AXRD}\n return YKHO.api_get_request(f'{YKHO.NINJA_API_QUERIES_OPERATING_SYSTEMS}', params=NArs)", "def YOaz(YKHO):\n return YKHO._opera...
[ "0.6700258", "0.6574702", "0.6549351", "0.6326118", "0.6319257", "0.6123464", "0.60488504", "0.60477626", "0.59815216", "0.5945717", "0.59159374", "0.58763456", "0.58601785", "0.583147", "0.5811455", "0.57937026", "0.5735086", "0.5730722", "0.5715846", "0.5710523", "0.5683537...
0.7976296
0
Gets the cluster tags.
def BySY(YKHO, lo9Y=None): xDcj = [] oYF2(xDcj, lo9Y) return YKHO._SendRequest(mdOq, '/%s/tags' % xuBk, xDcj, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qwli(YKHO):\n return YKHO.tags", "def qvDz(YKHO):\n return YKHO.tags", "def Qwli(YKHO):\n return YKHO.tags", "def Qwli(YKHO):\n _hkX = YKHO.get(RDhu.build_uri('tags', domain=YKHO.domain))\n return BfDw.handle_response(_hkX)", "def cryX(Emd4, hKn5):\n arog = {}\n giyg = HZGp.get_ena...
[ "0.6864384", "0.6832567", "0.68292093", "0.6794803", "0.67510396", "0.6663525", "0.6663525", "0.6663525", "0.6663525", "0.6663525", "0.6663525", "0.6663525", "0.6663525", "0.6641292", "0.66268444", "0.6566453", "0.6527105", "0.6521894", "0.6521267", "0.6473524", "0.6461728", ...
0.82661825
0
Changes the name of an instance.
def qNHD(YKHO, KAOR, Dokz, j5az=None, k2m5=None, lo9Y=None): TBsA = {'new_name': Dokz} xL2G(TBsA, j5az is not None, 'ip_check', j5az) xL2G(TBsA, k2m5 is not None, 'name_check', k2m5) xDcj = [] oYF2(xDcj, lo9Y) return YKHO._SendRequest(y5pJ, '/%s/instances/%s/rename' % (xuBk, KAOR), xDcj, TBsA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zZ0l(YKHO, mWFP):\n YKHO.__instance_name = mWFP", "def zeTD(YKHO, zeTD):\n YKHO._instance_name = zeTD", "def Dokz(YKHO, Dokz):\n YKHO.name = Dokz", "def zXji(YKHO, Dokz):\n YKHO.__name = Dokz", "def zXji(YKHO, Dokz):\n YKHO.__name = Dokz", "def WZrJ(YKHO, mWFP):\n YKHO.class_name = ...
[ "0.86135644", "0.82912153", "0.79495335", "0.79138136", "0.79138136", "0.7865067", "0.7745966", "0.7662284", "0.76384914", "0.7621367", "0.7562817", "0.7559987", "0.7539256", "0.7539256", "0.75296307", "0.75296307", "0.75296307", "0.75296307", "0.75296307", "0.7528852", "0.75...
0.0
-1
Gets information about a network.
def d0ck(YKHO, eVVj, lo9Y=None): xDcj = [] oYF2(xDcj, lo9Y) return YKHO._SendRequest(mdOq, '/%s/networks/%s' % (xuBk, eVVj), xDcj, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JB1q(YKHO, eVVj, **Vlb9):\n return YKHO.get(YKHO.network_path % eVVj, params=Vlb9)", "def E5uP(YKHO, OZUW):\n return iG5i(YKHO.call(YKHO.context, YKHO.make_msg('get_network_info', network_id=OZUW, host=YKHO.host), topic=YKHO.topic))", "def EG2e(YKHO) -> dict:\n YGbN = YKHO.network + Mm9b\n geh0...
[ "0.7870924", "0.7537712", "0.74541664", "0.73275393", "0.7263234", "0.7188031", "0.7140477", "0.70513743", "0.70479214", "0.7029827", "0.7010742", "0.69964474", "0.69964474", "0.69964474", "0.698262", "0.6904681", "0.6899942", "0.68259794", "0.6822848", "0.67348385", "0.67308...
0.7533764
2
Changes the name of a network.
def dFa0(YKHO, eVVj, Dokz, lo9Y=None): TBsA = {'new_name': Dokz} xDcj = [] oYF2(xDcj, lo9Y) return YKHO._SendRequest(y5pJ, '/%s/networks/%s/rename' % (xuBk, eVVj), xDcj, TBsA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tN3E(YKHO, tN3E: str):\n YKHO._computer_network_name = tN3E", "def WZrJ(IRUU, mWFP):\n UzPC = lxP0()\n N1p7 = UzPC.cursor()\n LNPZ = \"UPDATE Member SET name='\" + mWFP + \"' WHERE netID='\" + IRUU + \"'\"\n N1p7.execute(LNPZ)\n UzPC.commit()", "def zXji(YKHO, Dokz):\n YKHO.__name = Do...
[ "0.70586956", "0.6979021", "0.6911888", "0.6911888", "0.6866134", "0.6828192", "0.6790098", "0.6776005", "0.676296", "0.6624278", "0.6593671", "0.6593671", "0.65389216", "0.65389216", "0.65389216", "0.65389216", "0.65389216", "0.6538464", "0.65201926", "0.6506854", "0.6475134...
0.7256318
0
Modifies a node group. More details for parameters can be found in the RAPI documentation.
def Q6iC(YKHO, uOe2, lo9Y=None, **B2fa): xDcj = [] oYF2(xDcj, lo9Y) return YKHO._SendRequest(y5pJ, '/%s/groups/%s/modify' % (xuBk, uOe2), xDcj, B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UBFx(YKHO):\n geh0 = YKHO.client.modify_group('ABC123')\n YKHO.assertEqual(geh0['method'], 'POST')\n YKHO.assertEqual(geh0['uri'], '/admin/v1/groups/ABC123')\n YKHO.assertEqual(gnPz.params_to_dict(geh0['body']), {'account_id': [YKHO.client.account_id]})", "def xkzz(YKHO, QpfX=None):\n Vhxs = Y...
[ "0.682379", "0.6750026", "0.6575771", "0.6373879", "0.63275546", "0.62604076", "0.6245872", "0.6083333", "0.60151297", "0.598862", "0.5982472", "0.59615487", "0.58908355", "0.58741146", "0.58082783", "0.5785362", "0.5772808", "0.5751344", "0.5742247", "0.5741941", "0.57399744...
0.6176435
7
Deletes a node group.
def psh9(YKHO, uOe2, TJ_E=False, lo9Y=None): xDcj = [] DZzz(xDcj, TJ_E) oYF2(xDcj, lo9Y) return YKHO._SendRequest(WDUz, '/%s/groups/%s' % (xuBk, uOe2), xDcj, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y0XA(YKHO, uOe2):\n raise NotImplementedError('delete_group')", "def EpEA(YKHO):\n P0YW.step('Removing group %s from group %s', l0wB, TP5k)\n assert RU7r.run('groupdel', l0wB, group=TP5k)[0], \"Failed to delete group from group '%s'\" % l0wB", "def rOFc(u0KH):\n cQ68.deleteGroup(u0KH)", "def ...
[ "0.78381073", "0.7600806", "0.7591933", "0.7565552", "0.7451756", "0.74299043", "0.7406101", "0.7356044", "0.735522", "0.72833896", "0.7259411", "0.72563714", "0.7242603", "0.72238857", "0.72181976", "0.71383035", "0.7064544", "0.7047574", "0.7011035", "0.6895438", "0.6874328...
0.68213016
25
Verify that the API result list matches the given user batch.
def gy3j(geh0, qQXR, DW23): DumB = qQXR['items'] assert qQXR['total'] == len(DumB) == len(DW23) DumB.sort(key=lambda YRbF: YRbF['id']) DW23.sort(key=lambda P6bq: P6bq.id) for exwG, CBIr in enumerate(DW23): FaLz(geh0, DumB[exwG], CBIr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ovG1(YKHO, dsqU, yVA2):\n yVA2 = set(yVA2)\n Ylbp = set(dsqU.getuserlist())\n assert len(yVA2) == len(Ylbp) and yVA2.issubset(Ylbp)", "def FZgL(YKHO, aqI8):\n mteI = 0\n rNkx = TMAJ.Mock()\n UDmb = ocq6(aqI8, rNkx)\n for Aofo in UDmb.run():\n mteI += int(not Aofo.is_error)\n as...
[ "0.63900673", "0.63054204", "0.629964", "0.6272876", "0.6176654", "0.6142222", "0.61326265", "0.6125377", "0.6082505", "0.60588104", "0.605772", "0.604553", "0.60254097", "0.6023426", "0.5984345", "0.59431154", "0.5932028", "0.5920379", "0.5878478", "0.58754677", "0.58683336"...
0.6452859
0
Determine whether ``__tablename__`` should be automatically generated for a model. If no class in the MRO sets a name, one should be generated. If a declared attr is found, it should be used instead. If a name is found, it should be used if the class is a mixin, otherwise one should be generated. Abstract models should...
def GBSE(Emd4): if Emd4.__dict__.get('__abstract__', False) or not any((isinstance(Fg_i, mSjY) for Fg_i in Emd4.__mro__[1:])): return False for P8oC in Emd4.__mro__: if '__tablename__' not in P8oC.__dict__: continue if isinstance(P8oC.__dict__['__tablename__'], daGE): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5Y5(vGaq):\n return isinstance(vGaq, i48E.ext.declarative.api.DeclarativeMeta) and hasattr(vGaq, '__table__')", "def Slny(YKHO):\n P4t4 = aYnK(__name__)\n P4t4.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite://'\n NCls = i48E.SQLAlchemy(P4t4)\n\n class Base(NCls.Model):\n sd87 = True\n ...
[ "0.6124218", "0.5964463", "0.5929828", "0.57448363", "0.5613623", "0.55516785", "0.5507123", "0.5406385", "0.5372495", "0.536238", "0.52975935", "0.5242416", "0.5195567", "0.50673515", "0.50410277", "0.5034955", "0.5020842", "0.5003092", "0.49991414", "0.4974286", "0.4925317"...
0.7093151
0
Generate a random string of fixed length
def TJC9(FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.8678726", "0.85725635", "0.8546959", "0.852769", "0.85201234", "0.84315515", "0.84307504", "0.84138894", "0.84099346", "0.8388408", "0.8344307", "0.8342706", "0.83389807", "0.8332531", "0.83217525", "0.829651", "0.829245", "0.8281027", "0.8280717", "0.8279932", "0.8263646"...
0.7760928
94
Convert ISIN security identifiers to CUSIP identifiers.
def nGb3(NszK): if not NszK.startswith('US'): raise eHVm return eoE1().validate(NszK[2:-1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XAcn(ENgh):\n rPAy()\n al2o = rLdf.read_csv(cMEf, index_col=0)\n return list(map(lambda KCHu: KCHu.replace('InChIKey=', '') if isinstance(KCHu, str) else KCHu, al2o['inchi_key'].loc[ENgh]))", "def glwC(NtEF=None, Wswm=None) -> str:\n BSu3 = {'S-1-0': 'Null Authority', 'S-1-0-0': 'Nobody', 'S-1-1'...
[ "0.538051", "0.5255025", "0.51657736", "0.5111349", "0.5084173", "0.5063481", "0.50406253", "0.50258136", "0.50128704", "0.49986157", "0.49720624", "0.4948667", "0.49434647", "0.49370503", "0.49286604", "0.49013054", "0.48946846", "0.48822594", "0.48780808", "0.4870729", "0.4...
0.60541135
0
Return a the path to a file that is gzipped without any content This file will not have the size = 0 due to gzip header and footer
def Issq(VwLv: Path) -> GkAb: return VwLv / 'dummy_run_R1_001.fastq.gz'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kqdt(IkpP: Path, hGN5: str) -> GkAb:\n with lGU7.open(IkpP, 'wb') as _RR0:\n with xDSY.TextIOWrapper(_RR0, encoding='utf-8') as mktQ:\n mktQ.write(hGN5)\n return IkpP", "def A1pL(zcXp: Path) -> GkAb:\n return zcXp.with_suffix('.gz')", "def bkoa(pmON):\n NBjn = fGmS(['xz', '--c...
[ "0.6547188", "0.64927524", "0.624662", "0.624662", "0.61653006", "0.6050532", "0.6040014", "0.59761995", "0.5908149", "0.5871158", "0.58167094", "0.5799919", "0.57902", "0.57890695", "0.5777233", "0.5734589", "0.57124144", "0.5710192", "0.57023513", "0.5678824", "0.56695855",...
0.63220054
2
Returns the time projection matrix.
def hOTe(YKHO, wIly): LJ30 = oyIN.in1d(wIly, YKHO.times) return LJ30
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hydg(YKHO):\n dlZb = oyIN.zeros((2, YKHO.times.size))\n for a1PO, ITS7 in enumerate(YKHO.times):\n dlZb[:, a1PO] = YKHO.center_of_mass(ITS7)\n return dlZb", "def O6xb(a1PO, pKvt):\n from pypride.vintlib import taitime, eop_iers, t_eph, ter2cel, load_cats\n ' set dates: '\n ka7q = a1P...
[ "0.61495924", "0.6117341", "0.6111303", "0.6041262", "0.60038954", "0.587832", "0.58507717", "0.5830019", "0.5830019", "0.58074045", "0.57902265", "0.56982136", "0.56681913", "0.5612708", "0.55956674", "0.55644375", "0.55496144", "0.55272704", "0.54652196", "0.545332", "0.544...
0.0
-1
Number of data in the receiver.
def atCF(YKHO): return YKHO.locations[0].shape[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RTy5(YKHO):\n return len(YKHO.data)", "def c8dy(YKHO):\n return len(YKHO.data)", "def UHFx(YKHO):\n return YKHO.data_array.size", "def len(YKHO):\n return len(YKHO.data)", "def nWMf(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n r...
[ "0.8447973", "0.82967305", "0.80269593", "0.79553485", "0.78169024", "0.7816902", "0.7816902", "0.7816902", "0.7795181", "0.7777264", "0.7777264", "0.7777264", "0.7777264", "0.7777264", "0.77715033", "0.776622", "0.76774514", "0.7648562", "0.7648562", "0.7648562", "0.7638385"...
0.0
-1
Number of data in the receiver.
def atCF(YKHO): return YKHO.locations.shape[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RTy5(YKHO):\n return len(YKHO.data)", "def c8dy(YKHO):\n return len(YKHO.data)", "def UHFx(YKHO):\n return YKHO.data_array.size", "def len(YKHO):\n return len(YKHO.data)", "def nWMf(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n r...
[ "0.84484094", "0.8297525", "0.80271894", "0.79556096", "0.7818251", "0.78175116", "0.78175116", "0.78175116", "0.779564", "0.7777739", "0.7777739", "0.7777739", "0.7777739", "0.7777739", "0.77722603", "0.77662164", "0.7677813", "0.7648265", "0.7648265", "0.7648265", "0.763812...
0.0
-1
Gets a random factoid, eithers prints it on context or stores it on a context variable {% get_factoid 'greetings' %} {% get_factoid 'greetings' as factoid %}
def wACZ(wvEv, eOtH): UOVU = eOtH.split_contents()[::-1] hLhr = UOVU.pop() if not UOVU: raise F_Ra(u'%r requires at least one argument', hLhr) type = UOVU.pop() if type[0] in ('"', "'"): type = type[1:][:-1] if UOVU: KbOb = UOVU.pop() if KbOb != 'as': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def dogfact(YKHO, OaeV: DogbotContext):\n await OaeV.send(tuKI.choice(YKHO.dogfacts))", "def ljdP(QdZT: Update, QpfX: CallbackContext) -> None:\n QdZT.message.reply_text(TKW8())", "async def nfact(YKHO, OaeV):\n bKCn = PufV.fact()\n await OaeV.send('Here is a random fact for you:\\n``{}``'.fo...
[ "0.62337977", "0.61155105", "0.61114836", "0.6004894", "0.5838735", "0.5828193", "0.57676136", "0.5678986", "0.55800474", "0.55446285", "0.55274427", "0.54452497", "0.53982365", "0.53615576", "0.53333604", "0.5317298", "0.53116393", "0.52700067", "0.5246236", "0.52308583", "0...
0.49762636
37
Returns the url to access a detail record for the Sponsor.
def hlzF(YKHO): return gxEw('sponsor-detail', args=[str(YKHO.sponsorId)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T9QP(QePW, T9QP):\n T9QP = Iofl(FYrf.Sponsor, slug=T9QP)\n return {'sponsor': T9QP.sponsor, 'slug': T9QP.slug, 'url': T9QP.url}", "def T9QP(YKHO) -> object:\n return YKHO._sponsor", "def hlzF(YKHO):\n return gxEw('structured-name-detail', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return ('...
[ "0.760928", "0.67023534", "0.64557934", "0.62588716", "0.6227809", "0.6204574", "0.6190395", "0.6158854", "0.6156298", "0.6104466", "0.6075555", "0.6054468", "0.6038518", "0.60021156", "0.5983956", "0.59415776", "0.5940987", "0.59335285", "0.5922653", "0.59218955", "0.5907964...
0.7674386
0
Returns the url to access a detail record for the Participant.
def hlzF(YKHO): return gxEw('participant-detail', args=[str(YKHO.participantId)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UQui(YKHO):\n return '/participantportal/%s/%s/%s/%s/' % (YKHO.site, YKHO.participantId, YKHO.sessionId, YKHO.componentId)", "def gmFE(YKHO):\n if YKHO._data.get('details_url'):\n pmON = YKHO._data.get('details_url')\n try:\n pmON, qM3Q = pmON.split('#')\n qM3Q = '#'...
[ "0.716924", "0.7084224", "0.6557643", "0.6493883", "0.64822257", "0.6390233", "0.6309537", "0.6263083", "0.6242836", "0.6162974", "0.61408067", "0.6136609", "0.61082226", "0.6077404", "0.60485333", "0.6044728", "0.603051", "0.6030013", "0.6003359", "0.5996123", "0.5991107", ...
0.7229389
0
Returns the url to access a detail record for the Criteria.
def hlzF(YKHO): return gxEw('criteria-detail', args=[str(YKHO.criteriaId)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmFE(YKHO):\n if YKHO._data.get('details_url'):\n pmON = YKHO._data.get('details_url')\n try:\n pmON, qM3Q = pmON.split('#')\n qM3Q = '#' + qM3Q\n except ValueError:\n qM3Q = ''\n return '{}?from_activity={}{}'.format(pmON, YKHO._data.get('id'), q...
[ "0.68815947", "0.6780237", "0.66401905", "0.6627948", "0.6547293", "0.6512361", "0.6512361", "0.64775014", "0.6455476", "0.64270705", "0.64257646", "0.63758004", "0.6331328", "0.6328736", "0.6325539", "0.63204956", "0.63134855", "0.63045686", "0.62890613", "0.6281558", "0.628...
0.73339236
0
Returns the url to access a detail record for the Category.
def hlzF(YKHO): return gxEw('category-detail', args=[str(YKHO.categoryId)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ua71(id):\n return gxEw('category:category-detail', args=[id])", "def hlzF(YKHO):\n return gxEw('market:category-detail', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return gxEw('csv-detail', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return gxEw('kid-detail', args=[str(YKHO.id)])", "def pazJ(...
[ "0.78718424", "0.7319393", "0.65100574", "0.64843434", "0.64781696", "0.63904893", "0.6374697", "0.6348256", "0.63366544", "0.6317995", "0.628293", "0.6281304", "0.62768424", "0.62750804", "0.62750804", "0.62750804", "0.62677985", "0.6240174", "0.6220813", "0.6218361", "0.621...
0.7446559
1
Creates vocabularies for words and slots
def Tmuo(): OrVP('data/atis/train/seq.in', 'data/atis/voc/vocabulary.json') OrVP('data/atis/valid/seq.in', 'data/atis/voc/vocabulary.json') OrVP('data/atis/test/seq.in', 'data/atis/voc/vocabulary.json') OrVP('data/atis/train/seq.out', 'data/atis/voc/slot_vocabulary.json')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CtWL():\n rmc3 = nI3D + ['mouse', 'dog', 'tree']\n return yH2p(rmc3)", "def ZFlL(Rhv4):\n po2l = mBkc(Hs6x.chain(*Rhv4))\n fXV7 = [WKvO[0] for WKvO in po2l.most_common()]\n fXV7 = list(sorted(fXV7))\n fXV7.insert(0, '</s>')\n ED_H = {WKvO: YRbF for YRbF, WKvO in enumerate(fXV7)}\n ret...
[ "0.70016485", "0.6513072", "0.6328747", "0.624563", "0.6238553", "0.62266856", "0.62255174", "0.62175316", "0.6196918", "0.61855334", "0.61753714", "0.6168095", "0.6166663", "0.6163259", "0.6158383", "0.61465883", "0.6143417", "0.6134924", "0.6118822", "0.6109418", "0.6109418...
0.0
-1
Constructor for the Random agent
def FIMM(YKHO, k328, pZdD, uepc, V0tW, DB4E, JheY): YKHO.AGENT_MOVEMENT_TYPE = 'Discrete' YKHO.AGENT_NAME = 'Random' YKHO.AGENT_ALLOWED_ACTIONS = ['movenorth 1', 'movesouth 1', 'movewest 1', 'moveeast 1'] YKHO.agent_host = k328 YKHO.agent_port = pZdD YKHO.mission_seed = V0tW YKHO.mission_typ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Q6kx):\n YKHO.__id = mA7V.agent_id\n mA7V.agent_id += 1\n YKHO.__health_status = {'label': 'healthy', 'days_infected': -1}\n YKHO.__age_categorize(tuKI.randint(0, 82))\n YKHO.__location = Q6kx\n YKHO.__susceptibility_factor = epAf.e ** (-YKHO.__age / 10)", "def FIMM(YKHO, YWSi):\...
[ "0.77640736", "0.77100533", "0.74305177", "0.7366764", "0.7214003", "0.72034544", "0.71553475", "0.71527356", "0.7094469", "0.70594746", "0.70497936", "0.70010346", "0.6997491", "0.69815093", "0.69769895", "0.6959583", "0.69566077", "0.69517183", "0.69449735", "0.69304657", "...
0.70583385
10
Convert a date into the number of days from today. date str or datetime lang language format format to use string
def BYm7(_c1T, DuqQ='fr', format='%Y-%m-%dT%H:%M:%S'): if DuqQ != 'fr': raise NotImplementedError("Language '{0}' is not supported.".format(DuqQ)) wzkt = qcWV.datetime.now() if isinstance(_c1T, str): _c1T = qcWV.datetime.strptime(_c1T, format) RA_F = wzkt - _c1T h7D2 = RA_F.days ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zjzr(_c1T):\n RA_F = sDe5(_c1T)\n return RA_F.days + RA_F.seconds / 86400", "def YCe2(YKHO, _c1T):\n _c1T = HD4I(_c1T)\n return (_c1T - YKHO.start_date).days", "def fDD5(_c1T):\n return g6xZ(_c1T).day", "def FZDq(JvEs: str) -> str:\n _c1T = qcWV.strptime(JvEs, GGme)\n return str((_c1...
[ "0.7196697", "0.70129275", "0.70069027", "0.6644598", "0.650632", "0.6487801", "0.64603674", "0.6458072", "0.6425003", "0.63688153", "0.6230028", "0.612465", "0.6116487", "0.6111362", "0.599132", "0.5914898", "0.5848826", "0.58393", "0.5821564", "0.5809242", "0.58002543", "...
0.5909315
16
This method will return the favicon.ico file ;)
def NMoC(YKHO): return cs4A('', 'favicon.ico')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def agnI():\n return ''", "def agnI():\n return cs4A(Hy7s.path.join(SCWY.root_path, 'static'), 'favicon.ico', mimetype='image/vnd.microsoft.icon')", "def agnI():\n return cs4A(Hy7s.path.join(P4t4.root_path, 'static'), 'favicon.ico', mimetype='image/vnd.microsoft.icon')", "def agnI():\n return cs4...
[ "0.84240407", "0.8328611", "0.82575655", "0.8057738", "0.79462796", "0.7872607", "0.78151536", "0.77498", "0.7558401", "0.7514477", "0.7397805", "0.7284955", "0.7059152", "0.69205743", "0.68080264", "0.66078144", "0.65427697", "0.6523811", "0.64172405", "0.63834083", "0.63734...
0.75885195
8
Check parameters mostly just that shape of ndarrays match
def Fhmz(YKHO): if Zxt2.ndim(YKHO.param['initial_heading'].shape) > 1: raise (ValueError, 'initial_heading must have ndim=1') WhFA = ['x_start_position', 'y_start_position', 'flight_speed', 'release_time'] for ZfUD in WhFA: if YKHO.param[ZfUD].shape != YKHO.param['initial_heading'].shape: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9s7(WKvO, LVAh, ooIy, hoj6):\n assert WKvO.ndim == LVAh.ndim\n Htse = oyIN.delete(oyIN.arange(WKvO.ndim), -2)\n assert all([WKvO.shape[G1Hx] == LVAh.shape[G1Hx] for G1Hx in Htse])", "def FpGg(XoB7):\n Vfdq = [YRbF.shape for YRbF in XoB7]\n cIT_ = oyIN.all(oyIN.array([Vfdq[0] == YRbF for YRbF ...
[ "0.71017754", "0.7049944", "0.698519", "0.6942874", "0.6914211", "0.6893466", "0.6882964", "0.68786114", "0.6874017", "0.68559754", "0.68466663", "0.6829971", "0.6819575", "0.674958", "0.67481023", "0.6743101", "0.67259914", "0.6702625", "0.6691952", "0.6685225", "0.667151", ...
0.71011794
1
Compute the probability of each token of the test_tokens list in the given text. The probability distribution will be smoothed by additive Lidstone Smoothing
def xYtY(yyUL, UsjW, rSZa, ED_H=None, f7WN=False): if ED_H is not None: CtWL = list(set(ED_H)) else: CtWL = list(set(UsjW)) xqkM = aUGU(UsjW) ljv9 = {} for nSYY in set(yyUL): if f7WN: zYt5 = PCK9(xqkM.get(nSYY, 0) + rSZa) - PCK9(len(UsjW) + rSZa * len(CtWL)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oqGu(YKHO, l5Ny):\n DIeq = []\n for GIN8 in l5Ny:\n if GIN8.count(\"'\") > 0:\n V22M = GIN8.split(\"'\")\n for yzQ0 in V22M:\n DIeq.append(yzQ0)\n else:\n DIeq.append(GIN8)\n l5Ny = DIeq\n tTpl = 0.0\n WPLo = len(l5Ny)\n if WPLo ==...
[ "0.65765005", "0.65438235", "0.6508399", "0.65027386", "0.640917", "0.63153934", "0.6296147", "0.62809837", "0.62324613", "0.62324613", "0.62041897", "0.61728907", "0.60797864", "0.6043342", "0.6027604", "0.6005039", "0.60016", "0.5964927", "0.59475183", "0.5908764", "0.59016...
0.599814
17
Check if a row is for detele
def VsY9(Q1b8, Ilxn): hYeV = XN37.encode_identifier(Ilxn) HDgk = f'data-json-{hYeV}.json' OSe7 = Hy7s.path.join(Q1b8, HDgk) bo34.debug(f'Expected path {OSe7}') poxP = Hy7s.path.isfile(OSe7) if not poxP: bo34.info(f'Dataset: {Ilxn} not in DATA.JSON.') return (poxP, OSe7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TG3s(rdlD):\n mlXr = rdlD[2]\n return mlXr == 'DEED' or 'DEED OF TRUST'", "def Dhwg(LihS):\n JHUo = LihS.name == 'tr'\n if not JHUo:\n return False\n z1y5 = LihS.find_all('td', recursive=False)\n gpS0 = len(z1y5) == 4\n Cewr = o8c1(z1y5[0]).lower()\n EO99 = 'inspection' in Cewr...
[ "0.64861685", "0.6222575", "0.6197743", "0.6023418", "0.5921392", "0.5899822", "0.58261406", "0.5785691", "0.5752021", "0.573352", "0.5721495", "0.56972176", "0.56318647", "0.5626211", "0.5584729", "0.55529743", "0.55513847", "0.5538759", "0.5536562", "0.5526015", "0.549674",...
0.0
-1
Checks if a row has three in a row
def ANzr(YKHO, rdlD): if rdlD[0] != ' ' and rdlD[0] == rdlD[1] and (rdlD[1] == rdlD[2]): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLL1(YKHO, tmZU, iBIi):\n rdlD = [iBIi.get_piece(tmZU[0][0], tmZU[0][1]), iBIi.get_piece(tmZU[1][0], tmZU[1][1]), iBIi.get_piece(tmZU[2][0], tmZU[2][1])]\n if rdlD.count(' ') == 1 and rdlD.count(YKHO._piece) == 2:\n yAfV = rdlD.index(' ')\n else:\n yAfV = -1\n if rdlD.count(' ') == 1 ...
[ "0.71760213", "0.7074155", "0.69003093", "0.68210864", "0.6616384", "0.6589363", "0.65676326", "0.64947134", "0.6451565", "0.6437302", "0.6417623", "0.64139426", "0.63974464", "0.639033", "0.63859904", "0.63674164", "0.6345441", "0.6344673", "0.6331006", "0.6312336", "0.61935...
0.811962
0
Creates the board based on dimension
def efGj(YKHO, e_2d): iBIi = [] for YRbF in range(e_2d): rdlD = [] for r845 in range(e_2d): rdlD.append(' ') iBIi.append(rdlD) return iBIi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def efGj(YKHO, zNig):\n WKvO = oyIN.arange(0, zNig[0])\n LVAh = oyIN.arange(0, zNig[1])\n iBIi = oyIN.meshgrid(WKvO, LVAh)\n return iBIi", "def efGj(BrEt):\n iBIi = []\n for YRbF in range(BrEt):\n rdlD = []\n for r845 in range(BrEt):\n rdlD.append('-')\n iBIi.app...
[ "0.79493386", "0.7316799", "0.7285577", "0.72337383", "0.72244805", "0.7223925", "0.72213703", "0.72189856", "0.70755184", "0.7049359", "0.700954", "0.69986147", "0.6990424", "0.6983193", "0.6975055", "0.696802", "0.6940105", "0.6903485", "0.68475115", "0.68468916", "0.681935...
0.81886405
0
Used to determine if two in a row can be made for two rows
def HVLr(YKHO, iBIi): ecEc = [(0, 0), (0, 1), (0, 2)] znzI = [(1, 0), (1, 1), (0, 2)] return (-1, -1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gqql(YKHO) -> bool:\n hED9 = YKHO.first_cell\n Mb1v = YKHO.second_cell\n if YKHO._fuse_row:\n VOQF = [JAFr((0, 1), (hED9, Mb1v)), JAFr((1, 0), (Mb1v, hED9))]\n else:\n VOQF = [JAFr((0, 1), (hED9, Mb1v)), JAFr((1, 0), (hED9, Mb1v))]\n return any((NZQz in VOQF for NZQz in YKHO._tilin...
[ "0.6849422", "0.67015064", "0.6665389", "0.66530347", "0.6571584", "0.6552821", "0.650272", "0.64883655", "0.6473175", "0.6430528", "0.637959", "0.633552", "0.62914306", "0.6291321", "0.6251831", "0.61991215", "0.61680585", "0.6140428", "0.6128354", "0.60728264", "0.6054192",...
0.7735133
0
Plots the first 2 columns of an Array as a scatterplot, with the points optionally colored by cluster assignments resulting from a cluster analysis model.
def mOAC(nPrm, Rvfk=[], XnzY=0, nUeQ=None): qfpW = ['r', 'g', 'b', 'c', 'm', 'y', 'black', 'orange', 'aqua', 'yellow', 'brown'] QrM1.figure(figsize=(12, 10)) if XnzY == 0: QrM1.scatter(nPrm[:, 0], nPrm[:, 1], c=qfpW[0]) QrM1.xticks(fontsize=12) QrM1.yticks(fontsize=12) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj9G(YKHO):\n if 2 <= len(YKHO.X) <= 3:\n CmzN(YKHO.name, YKHO.cursor).scatter(columns=YKHO.X, catcol='dbscan_cluster', max_cardinality=100, max_nb_points=10000)\n else:\n raise ValueError('Clustering Plots are only available in 2D or 3D')", "def VE_a(YKHO):\n EcVT = YKHO.reduce_dimens...
[ "0.7410342", "0.7242202", "0.7069867", "0.68493354", "0.6812089", "0.6707657", "0.67075527", "0.6690304", "0.66895473", "0.6676716", "0.6675918", "0.66005933", "0.65947914", "0.64756274", "0.64707506", "0.64690274", "0.6443006", "0.64394414", "0.64292216", "0.634475", "0.6344...
0.60351497
45
Sets the learning rate
def e_63(K0do, KMvS, qtWj, F8hG, dfHy, LIcp): if qtWj < 0: tspZ = 1e-06 + (qIxc.lr - 1e-06) * dfHy / (LIcp * 5) else: tspZ = qIxc.lr * KMvS ** F8hG for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ return tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVtO(YKHO, mVUw):\n YKHO.SGD.set_learning_rate(mVUw)", "def NcuP(YKHO):\n b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num_epoch) ** YKHO.params.power\n for Lwm5 in YKHO.opt.param_groups:\n Lwm5['lr'] = b0Ix\n print('Change learning rate into %f' % b0Ix)\n YKHO.summ...
[ "0.8623272", "0.76981455", "0.7697208", "0.7697208", "0.7636927", "0.758479", "0.7572249", "0.7514606", "0.7490861", "0.74744666", "0.74288964", "0.7413075", "0.739503", "0.73916996", "0.73894364", "0.73817927", "0.73783433", "0.7377333", "0.7363047", "0.7362884", "0.7362884"...
0.0
-1
UUID for this descriptor.
def qxeD(YKHO) -> str: return YKHO.obj.uuid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qxeD(YKHO) -> str:\n return YKHO.__uuid", "def qxeD(YKHO):\n return YKHO.__uuid", "def qxeD(YKHO):\n return YKHO.__uuid", "def qxeD(YKHO):\n return YKHO.__uuid", "def qxeD(YKHO):\n return YKHO._uuid", "def qxeD(YKHO) -> str:\n return YKHO._uuid", "def qxeD(YKHO) -> str:\n retur...
[ "0.8296571", "0.828175", "0.828175", "0.82651806", "0.81748253", "0.81620103", "0.81620103", "0.81620103", "0.81293577", "0.81293577", "0.811065", "0.80257535", "0.7904834", "0.7904834", "0.7904834", "0.7724899", "0.76225054", "0.76225054", "0.759579", "0.74588156", "0.740488...
0.8163131
5
Returns a single Organization, specified by the organizationID parameter.
def Ws7y(YKHO, gZ75, **B2fa): B2fa['_return_http_data_only'] = True if B2fa.get('callback'): return YKHO.get_organization_by_id_with_http_info(gZ75, **B2fa) else: nPrm = YKHO.get_organization_by_id_with_http_info(gZ75, **B2fa) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PI_r(YKHO, gZ75: Union[str, int], *, NArs: Optional[dict]=None) -> 'resource_types.Organization':\n return USaL.Organization(YKHO.__requester).from_id(organization_id=gZ75, parameters=NArs)", "def wbiw(YKHO, gZ75):\n return mUrV.Organization(YKHO, gZ75)", "def NMoC(YKHO, gZ75):\n if gZ75 is None:\...
[ "0.8280249", "0.78732705", "0.74778724", "0.7268284", "0.7043003", "0.702893", "0.69926304", "0.69506794", "0.6902319", "0.6893131", "0.6893131", "0.6878081", "0.6815119", "0.6787131", "0.66634285", "0.66368335", "0.6463735", "0.6326341", "0.6284042", "0.626296", "0.62261", ...
0.65877205
16
Returns a single Organization, specified by the organizationID parameter.
def j32J(YKHO, gZ75, **B2fa): HhGF = ['organization_id', 'organizations'] HhGF.append('callback') HhGF.append('_return_http_data_only') NArs = locals() for H5ew, wEf2 in BVGD(NArs['kwargs']): if H5ew not in HhGF: raise TypeError("Got an unexpected keyword argument '%s' to method ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PI_r(YKHO, gZ75: Union[str, int], *, NArs: Optional[dict]=None) -> 'resource_types.Organization':\n return USaL.Organization(YKHO.__requester).from_id(organization_id=gZ75, parameters=NArs)", "def wbiw(YKHO, gZ75):\n return mUrV.Organization(YKHO, gZ75)", "def NMoC(YKHO, gZ75):\n if gZ75 is None:\...
[ "0.8282004", "0.78754544", "0.74785435", "0.72713476", "0.7042515", "0.7031926", "0.6994991", "0.6955305", "0.6905933", "0.6895583", "0.6895583", "0.68170685", "0.67892665", "0.6665491", "0.6641641", "0.658698", "0.6464678", "0.63238955", "0.6286193", "0.6266781", "0.6229126"...
0.68773645
11
Returns a single Organization, specified by the name parameter.
def KAyN(YKHO, mWFP, **B2fa): B2fa['_return_http_data_only'] = True if B2fa.get('callback'): return YKHO.get_organization_by_name_with_http_info(mWFP, **B2fa) else: nPrm = YKHO.get_organization_by_name_with_http_info(mWFP, **B2fa) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DLKN(OaeV, jpuF):\n CgYo(HCmI.get_one_organization_by_name(client=OaeV.obj, organization_name=jpuF))", "def KAyN(YKHO, mWFP: str | None=None) -> dict[str, ImMB]:\n NArs = {}\n return YKHO.client.get(YKHO._url('name', mWFP), params=NArs)", "def cvbw(YKHO, jpuF):\n QAIN = SyqR()\n Aofo = QAIN....
[ "0.8315246", "0.8272719", "0.7284343", "0.7091651", "0.7033109", "0.69959915", "0.69605905", "0.6905648", "0.6762904", "0.6760653", "0.6740967", "0.67321056", "0.67158014", "0.67051387", "0.65987444", "0.6594945", "0.6572985", "0.6508599", "0.64482003", "0.6378958", "0.635115...
0.60807306
31
Returns a single Organization, specified by the name parameter.
def VqxF(YKHO, mWFP, **B2fa): HhGF = ['name', 'organizations'] HhGF.append('callback') HhGF.append('_return_http_data_only') NArs = locals() for H5ew, wEf2 in BVGD(NArs['kwargs']): if H5ew not in HhGF: raise TypeError("Got an unexpected keyword argument '%s' to method get_organiz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DLKN(OaeV, jpuF):\n CgYo(HCmI.get_one_organization_by_name(client=OaeV.obj, organization_name=jpuF))", "def KAyN(YKHO, mWFP: str | None=None) -> dict[str, ImMB]:\n NArs = {}\n return YKHO.client.get(YKHO._url('name', mWFP), params=NArs)", "def cvbw(YKHO, jpuF):\n QAIN = SyqR()\n Aofo = QAIN....
[ "0.8315246", "0.8272719", "0.7284343", "0.7033109", "0.69959915", "0.69605905", "0.6905648", "0.6762904", "0.6760653", "0.6740967", "0.67321056", "0.67158014", "0.67051387", "0.65987444", "0.6594945", "0.6572985", "0.6508599", "0.64482003", "0.6378958", "0.63511527", "0.62861...
0.7091651
3
The shard for the match associated with this participant.
def OWrw(YKHO): return YKHO._shard or YKHO._pubg.shard
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OWrw(YKHO):\n return YKHO._shard", "def OWrw(YKHO, OWrw: str) -> str:\n return YKHO.shards(OWrw)[OWrw]", "def tERM(YKHO) -> h8nf[int]:\n return YKHO.config_dict.get('marathon_shard', None)", "def mvI0(YKHO) -> qe4Y.Output[bdIy['outputs.ClusterShard']]:\n return qe4Y.get(YKHO, 'shards')", "d...
[ "0.8352179", "0.7254957", "0.6841986", "0.6457557", "0.62771434", "0.62007105", "0.61813813", "0.60398203", "0.60195726", "0.60131973", "0.59109247", "0.580036", "0.57127315", "0.56959057", "0.5683556", "0.5617164", "0.5617164", "0.55219513", "0.54987013", "0.54811245", "0.54...
0.7801085
2
The player's account id.
def id(YKHO): return YKHO.data['id']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y...
[ "0.81423986", "0.81423986", "0.81423986", "0.81423986", "0.81423986", "0.81423986", "0.81423986", "0.81423986", "0.80779576", "0.80684024", "0.7934841", "0.7924013", "0.7780243", "0.775661", "0.775661", "0.775661", "0.7744938", "0.7744938", "0.7744938", "0.7744938", "0.774493...
0.0
-1
The match specific participant id of the player.
def JYl0(YKHO): return YKHO.data['id']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yztK(YKHO):\n return YKHO.game.get_player_id()", "def yztK(YKHO):\n return YKHO.player_id", "def LZbL(YKHO):\n return YKHO.data['attributes']['stats']['playerId']", "def yztK(YKHO, JJLd):\n return YKHO.player_ids[JJLd]", "def yztK(YKHO):\n mv1M = _aLO()\n AWnp = YKHO.serialize_player(...
[ "0.77060664", "0.7698602", "0.7559915", "0.75530523", "0.73656774", "0.73262256", "0.7260046", "0.72483885", "0.7090019", "0.7010991", "0.684852", "0.6828935", "0.67233866", "0.66533285", "0.65712535", "0.6555727", "0.6541252", "0.6438787", "0.6399783", "0.63065046", "0.62239...
0.7854776
0
The player's account id.
def LZbL(YKHO): return YKHO.data['attributes']['stats']['playerId']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y...
[ "0.81450903", "0.81450903", "0.81450903", "0.81450903", "0.81450903", "0.81450903", "0.81450903", "0.81450903", "0.80807525", "0.80706036", "0.793729", "0.7926071", "0.7782581", "0.77597106", "0.77597106", "0.77597106", "0.77475303", "0.77475303", "0.77475303", "0.77475303", ...
0.73717445
46
Get a Player object for this participant.
def nAM4(YKHO): return YKHO._pubg.player(YKHO.player_id, YKHO.shard)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nAM4(YKHO, XP5J):\n YKHO._validate(XP5J)\n return XP5J.player()", "def nAM4(YKHO):\n return YKHO._player", "def nAM4(YKHO):\n return YKHO.player", "def nAM4(YKHO):\n return YKHO.player", "def GFCh(YKHO):\n return YKHO.__player__", "def nAM4(YKHO):\n return YKHO.player_control.get...
[ "0.7898596", "0.75885373", "0.7542681", "0.7542681", "0.75034004", "0.75032854", "0.73201466", "0.7279313", "0.72653425", "0.7252144", "0.71695876", "0.7119049", "0.7107647", "0.7071474", "0.7051978", "0.7003645", "0.69285256", "0.68711996", "0.68437845", "0.6794744", "0.6790...
0.76753014
1
Returns the number of reviews this item has received.
def vZ0m(YKHO): return YKHO.review_set.count()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ML_c(YKHO):\n UHFx = YKHO.reviews.aggregate(count=FYrf.Count('rating'))['count']\n if UHFx is None:\n UHFx = 0\n return UHFx", "def uWVJ(YKHO, E_qD):\n try:\n f4IJ = E_qD.find_element_by_id('BVRRRatingSummaryLinkReadID')\n AMFg = f4IJ.find_element_by_class_name('BVRRNumber')....
[ "0.7873674", "0.7359509", "0.6934374", "0.6874461", "0.64592177", "0.63455856", "0.6313853", "0.62345254", "0.6144477", "0.61405325", "0.6089022", "0.6089022", "0.60361207", "0.6023565", "0.6003377", "0.59979534", "0.59459865", "0.5938533", "0.5930962", "0.5890171", "0.588638...
0.753558
1