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
Calculation of valence molecular connectivity chi index for path order 8 >Chiv8
def BPnc(N9D1): return xVt3(N9D1, NumPath=8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q2AV(N9D1):\n return meQb(N9D1, NumPath=8)", "def oipt(N9D1, WWTU=2):\n imx5 = 0.0\n a1kB = [WKvO.GetDegree() for WKvO in N9D1.GetAtoms()]\n for pmON in OJ0g.FindAllPathsOfLengthN(N9D1, WWTU + 1, useBonds=0):\n xzwT = 1.0\n for or8S in pmON:\n xzwT *= a1kB[or8S]\n ...
[ "0.6853048", "0.64188576", "0.63641167", "0.63256806", "0.62838286", "0.61996233", "0.61128306", "0.6103213", "0.6050533", "0.604329", "0.59527284", "0.5950069", "0.5936574", "0.58979607", "0.58872324", "0.58669657", "0.58290416", "0.57920223", "0.57706124", "0.5770553", "0.5...
0.6482675
1
Calculation of valence molecular connectivity chi index for cycles of 6 >Chiv6ch
def vOeD(N9D1): return bP29(N9D1, NumCyc=6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YOU_(N9D1):\n return UpwN(N9D1, NumCycle=6)", "def ElK2(N9D1):\n imx5 = 0.0\n a1kB = [WKvO.GetDegree() for WKvO in N9D1.GetAtoms()]\n MTCs = OJ0g.MolFromSmarts('*~*(~*)~*~*')\n GmrV = N9D1.GetSubstructMatches(MTCs)\n for hKn5 in GmrV:\n a1kB = [N9D1.GetAtomWithIdx(WKvO).GetDegree() f...
[ "0.66832715", "0.6608766", "0.6585742", "0.6553777", "0.65281284", "0.6491644", "0.646989", "0.6388149", "0.6367905", "0.63659406", "0.633325", "0.6321469", "0.6237912", "0.6201904", "0.61894673", "0.6137594", "0.6109015", "0.6060847", "0.6059152", "0.605284", "0.60131687", ...
0.6722032
0
Compute the winning vector by Euclidean distance >>> SelfOrganizingMap().get_winner([[1, 2, 3], [4, 5, 6]], [1, 2, 3]) 1
def LRv2(YKHO, _mSQ: list[list[float]], mvm2: list[int]) -> int: pKiF = 0.0 AjzU = 0.0 for YRbF in range(len(mvm2)): pKiF += epAf.pow(mvm2[YRbF] - _mSQ[0][YRbF], 2) AjzU += epAf.pow(mvm2[YRbF] - _mSQ[1][YRbF], 2) return 0 if pKiF > AjzU else 1 return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KMz_(YKHO, mtl5):\n if len(YKHO.num_nodes) == 1:\n eFr6 = oyIN.array([YKHO._dist(mtl5, NFfm) for NFfm in YKHO.weights])\n elif len(YKHO.num_nodes) == 2:\n eFr6 = oyIN.array([[YKHO._dist(mtl5, NFfm) for NFfm in hrtF] for hrtF in YKHO.weights])\n else:\n exit('Use a 1D or 2D grid!')...
[ "0.71471566", "0.6906748", "0.64870214", "0.6464987", "0.6299081", "0.6299081", "0.6103631", "0.60935634", "0.60780257", "0.6076439", "0.60323405", "0.5974132", "0.58924145", "0.5862796", "0.58536893", "0.58154863", "0.58054763", "0.5781557", "0.57806593", "0.57794064", "0.57...
0.5400698
89
Returns the index of the closest centroid for each point
def hKxl(LTIa, yHxN): return ((LTIa[:, None, :] - yHxN[None, :, :]) ** 2).sum(axis=2).argmin(axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aced(YKHO, WKvO):\n TaUL = [oyIN.linalg.norm(WKvO - Z9rn) for Z9rn in YKHO.centroids]\n loXw = min(TaUL)\n z90t = TaUL.index(loXw)\n return (z90t, loXw)", "def GYE6(YKHO):\n YKHO.distances = YKHO.get_distance()\n return oyIN.argmin(YKHO.distances, axis=1)", "def z3Eq(YKHO, sFIs):\n if ...
[ "0.82634634", "0.8224516", "0.8065931", "0.79708", "0.79292035", "0.79259956", "0.7919229", "0.78547335", "0.77962667", "0.7668062", "0.7665372", "0.74469125", "0.74306107", "0.73179793", "0.7217561", "0.7185466", "0.70731795", "0.70577824", "0.7031099", "0.69952023", "0.6985...
0.81830233
2
Average point of the given set of points
def S8vG(LTIa): return oyIN.average(LTIa, axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eNJD(LTIa):\n WKvO = 0\n LVAh = 0\n for YRbF in range(len(LTIa)):\n WKvO += LTIa[YRbF][0]\n LVAh += LTIa[YRbF][1]\n WKvO /= len(LTIa)\n LVAh /= len(LTIa)\n return [WKvO, LVAh]", "def d9Kz(ncKI):\n return oyIN.mean(ncKI, 0).astype(oyIN.int32)", "def cRIw(LTIa):\n Vngd =...
[ "0.8478591", "0.83574486", "0.8325175", "0.80076665", "0.7984626", "0.7853089", "0.7683389", "0.7466034", "0.740858", "0.7007638", "0.69412273", "0.6904248", "0.68191814", "0.6809051", "0.6750888", "0.67256033", "0.66314745", "0.66191", "0.65936816", "0.6525837", "0.64281625"...
0.81455094
3
Computes the sum of squares error
def ibAa(LTIa, yHxN): return Ayfi(LTIa, yHxN).sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iAxY(UAju):\n return JBMS([P1dF ** 2 for P1dF in UAju]) ** 0.5", "def i8nm(nJ9F, o4D3):\n return Zciu()(nJ9F, o4D3)", "def sSN_(UAju):\n b7d1 = [oyIN.sum(tTpl * tTpl) * 0.5 for tTpl in UAju]\n return oyIN.sum(b7d1) / len(b7d1)", "def i8nm(fUYa, bEXe, Cwt5, UqYS):\n return sum((P1dF(WKvO, L...
[ "0.7267694", "0.7164033", "0.71558523", "0.7120633", "0.7102844", "0.7028266", "0.7028266", "0.69858986", "0.69393736", "0.6889312", "0.6886327", "0.6881233", "0.68654627", "0.68468887", "0.6846086", "0.6806574", "0.6803497", "0.67656946", "0.676253", "0.6752142", "0.6748945"...
0.0
-1
Assign centroids by randomly sampling among points
def W9X1(LTIa, o_ia): v7TY = oyIN.random.choice(range(len(LTIa)), o_ia, replace=False) return LTIa[v7TY]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fjDk(YKHO):\n I8R2 = tuKI.sample(range(YKHO.sample_size), YKHO.n_of_clusters)\n for YRbF in range(YKHO.n_of_clusters):\n YKHO.centroids[YRbF] = YKHO.data[I8R2[YRbF]]", "def VJNw(YKHO):\n return tuKI.choices(YKHO.points, k=YKHO.num_centroids)", "def VJNw(LTIa, G1Hx):\n NTxF = tuKI.sample(...
[ "0.8197278", "0.80151385", "0.7747839", "0.76441437", "0.7523543", "0.7443121", "0.7425236", "0.7421303", "0.7321158", "0.72794753", "0.72794753", "0.72026175", "0.7184903", "0.71510947", "0.7096073", "0.7086969", "0.7066422", "0.70654887", "0.7059411", "0.70567673", "0.70176...
0.69074595
32
Entry point for the flask app
def LUif(): return eLpg(mode='app')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_():\n TfOc()\n P4t4.run(debug=True)", "def b8V_():\n P4t4.run()", "def b8V_():\n P4t4.run()", "def b8V_():\n P4t4.run()", "def b8V_():\n P4t4.run(host='127.0.0.1', port=8080, debug=True)", "def iXC1():\n P4t4.run()", "def P4t4():\n pass", "def P4t4():\n pass", "de...
[ "0.8319611", "0.8317143", "0.8317143", "0.82919544", "0.82362294", "0.79905343", "0.79539466", "0.79539466", "0.7873259", "0.78556544", "0.78517336", "0.78517336", "0.7845857", "0.7845857", "0.78325504", "0.78325504", "0.7789643", "0.7717185", "0.7693879", "0.76803714", "0.76...
0.0
-1
The configuration method for the celery object. Sets celery settings and creates the task objects from decorators
def c68i(P4t4, ZEfp): P4t4.logger.info('Configuring Celery') ZEfp.conf.update(P4t4.config) ZEfp.conf.update(broker_url=Hy7s.environ.get('RABBITMQ_BROKER', 'pyamqp://guest@localhost//'), result_backend=Hy7s.environ.get('RABBITMQ_RESULTS_BACKEND', 'rpc://')) class ContextTask(ZEfp.Task): def nrO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B4hF(Z9rn):\n OaeV = cFqH()\n JmrZ = OaeV.cfg\n Z9rn.conf.update(worker_concurrency=OaeV.concurrency, broker_url=JmrZ.broker_url, result_backend=JmrZ.redis_url)", "def c68i(YKHO, c4tt):\n YKHO.conf.beat_schedule = {'pull-metrics-every-day': {'task': 'pull-metrics', 'schedule': _AZx(minute=0, hour...
[ "0.7186607", "0.710997", "0.67649126", "0.67308134", "0.66252935", "0.65795094", "0.6571929", "0.65299016", "0.65134233", "0.64497566", "0.6399028", "0.63434774", "0.62990576", "0.6275845", "0.6268905", "0.62519795", "0.62375957", "0.6183101", "0.61547446", "0.61304003", "0.6...
0.7191742
0
Extract stress components for all elements from OpenSees analysis.
def JuW3(): vw77, K3fi = (IPme.getNodeTags(), IPme.getEleTags()) rDAo, Zc9f = (len(vw77), len(K3fi)) FPTL = oyIN.zeros((Zc9f, 4, 4)) m4VF = oyIN.zeros((Zc9f, 4, 4)) uhrz = oyIN.zeros((rDAo, 2), dtype=int) uhrz[:, 0] = vw77 for YRbF, QOx8 in enumerate(K3fi): Khga, Wegd, lVq2, _FaE = I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BCEB(YKHO):\n NCls = Ykhp(YKHO.db_name)\n NtfX = []\n DDeg = []\n for rdlD in NCls.select():\n RR8p = rdlD.toatoms()\n try:\n rwV7 = RR8p.get_stress()\n SteT = RR8p.get_strain()\n except Exception as exc:\n print(str(BQDi))\n continue...
[ "0.597406", "0.5898689", "0.5866519", "0.5703065", "0.55843836", "0.55463517", "0.5492211", "0.54859257", "0.54575425", "0.5424387", "0.5281875", "0.5267366", "0.5249931", "0.5239482", "0.52343273", "0.522535", "0.52156943", "0.5211785", "0.52023643", "0.50756955", "0.5062095...
0.48615482
32
Plot 2d mesh (quads or triangles) outline.
def A8TI(t0Ez, emOv, skyf=0.4, V3xq='k'): for c31w in emOv: WKvO = t0Ez[c31w, 0] LVAh = t0Ez[c31w, 1] QrM1.fill(WKvO, LVAh, edgecolor=V3xq, lw=skyf, fill=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CtcV(LZpg):\n mM0K = XTiz.pi\n YhSR = XTiz.cos\n YUNn = XTiz.sin\n LnPY, rDXN = (mM0K / 20.0, mM0K / 20.0)\n P6bq, Ty9i = XTiz.mgrid[0.01:mM0K + LnPY * 1.5:LnPY, 0:2 * mM0K + rDXN * 1.5:rDXN]\n WKvO = (1 - YhSR(P6bq)) * YhSR(P6bq + 2 * mM0K / 3) * YhSR(Ty9i + 2 * mM0K / 3.0) * 0.5\n LVAh =...
[ "0.6659409", "0.6574943", "0.65451235", "0.6401155", "0.6373007", "0.63413274", "0.61783516", "0.6129288", "0.6091104", "0.6062985", "0.6052657", "0.60388297", "0.5955816", "0.59091717", "0.58957005", "0.58913577", "0.58837855", "0.5861981", "0.5852438", "0.5851231", "0.58256...
0.63152933
6
Tests the actual contents of the images and transcriptions
def S0Gz(YKHO): import glob import os import cv2 ip8j = SbGS.CPUDataLoader() UAju = [] i0XC = ip8j.data_path z8bl = glob.glob(os.path.join(i0XC, '*', '*', 'Story*')) for IznC in z8bl: try: with open(IznC, encoding='utf8') as nUeQ: nUeQ.readlines() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lf8R(YKHO):\n pass", "def AE0w(YKHO):\n pass", "def tITA(YKHO):\n YKHO.assertEqual(d3Q8(KjwN), a2Pe.SUCCESS)", "def Jlw9(YKHO):\n pass", "def xxlX(YKHO):\n pass", "def _v9K(lCFC):\n pass", "def jqoc(YKHO):\n pass", "def eKAi(YKHO):\n pass", "def _ZiE(YKHO):\n pass", ...
[ "0.7092825", "0.7067433", "0.6971899", "0.69259006", "0.6905262", "0.6895004", "0.688146", "0.6879811", "0.6855992", "0.68019503", "0.68011427", "0.6729353", "0.669171", "0.667262", "0.66702956", "0.6652802", "0.6626306", "0.65928614", "0.6589015", "0.6587938", "0.6587638", ...
0.6780164
11
Removes small objects from a segmentation array. Replaces objects smaller than `min_size` with 0 (background).
def BH_B(nPrm, qonS=10): A07C, maxY = oyIN.unique(nPrm, return_counts=True) wuLw = A07C[maxY < qonS] nHh9 = oyIN.in1d(nPrm.flat, wuLw).reshape(nPrm.shape) nPrm[nHh9] = 0 return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xZDz(vbNC, qonS):\n for YRbF in vbNC.identifiers:\n zn0c = vbNC.region_by_identifier(YRbF)\n if zn0c.area < qonS:\n vbNC[zn0c] = 0\n return vbNC", "def tv56(VXjJ, zNig):\n VXjJ = ZCMp.remove_small_objects(VXjJ, zNig)\n VXjJ = ZCMp.remove_small_holes(VXjJ, zNig)\n retur...
[ "0.8108558", "0.7813403", "0.7813403", "0.7700784", "0.7502059", "0.7463123", "0.7463021", "0.74066", "0.7346376", "0.7281611", "0.7240989", "0.713632", "0.6914661", "0.69044065", "0.67400783", "0.66770285", "0.66669804", "0.656388", "0.65441334", "0.6511151", "0.6476816", ...
0.6960968
12
Deep update target dict with src.
def FKGa(pan_: Dict[Any, Any], zZcM: Dict[Any, Any]) -> None: for G1Hx, Ty9i in zZcM.items(): if isinstance(Ty9i, list): if G1Hx not in pan_: pan_[G1Hx] = jth9.deepcopy(Ty9i) else: pan_[G1Hx].extend(Ty9i) elif isinstance(Ty9i, dict): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSBA(V_1d, zZcM):\n for G1Hx, Ty9i in zZcM.__dict__.items():\n try:\n if V_1d.__dict__.has_key(G1Hx):\n V_1d.__dict__[G1Hx] = Ty9i\n except:\n pass", "def DmV4(pan_: Dict, JZXy: Dict) -> None:\n for H5ew, BWXx in JZXy.items():\n if isinstance(BW...
[ "0.7751423", "0.7587549", "0.755703", "0.755703", "0.72736967", "0.7245648", "0.7080543", "0.7078946", "0.7054548", "0.7023517", "0.70187783", "0.7008586", "0.7008586", "0.7008586", "0.6911907", "0.67909163", "0.6771058", "0.66506064", "0.66407365", "0.6522363", "0.65179044",...
0.7662648
1
Return a dataframe with both teams that participated in a game.
def rJco(YKHO, A0tR: int) -> hxoQ[_JIB]: nPrm: cuzp[int, cuzp[str, ImMB]] = {} for QUSx, y4v5 in YKHO.feeds.items(): WsYz = y4v5.format(competition_id='*', season_id='*', game_id=A0tR) ANfH = SC2F.glob(Hy7s.path.join(YKHO.root, WsYz)) for NNJI in ANfH: A07C = HUpz(NNJI, y4v5)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hpcg(BgsN, OpyB=0, JSxf='team', dLR1='team', ur8J='home_outcome'):\n qBVh = BgsN.groupby(JSxf).count()\n qBVh = qBVh[qBVh[ur8J] > OpyB]\n rJco = rLdf.DataFrame(qBVh.index.values, columns=[dLR1])\n rJco['i_team'] = rJco.index.values\n return rJco", "def _Mur(jQ3Z, dZPi):\n mCdQ = jQ3Z.loc[jQ...
[ "0.68277955", "0.6808457", "0.6787599", "0.6620791", "0.66034335", "0.6580841", "0.6559236", "0.64503264", "0.6448952", "0.64182127", "0.6408678", "0.6345811", "0.63416743", "0.6276845", "0.62016666", "0.6195853", "0.61904436", "0.6158986", "0.6141775", "0.61118644", "0.60815...
0.6186569
17
Return a dataframe with the event stream of a game.
def YTVa(YKHO, A0tR: int) -> hxoQ[QChK]: nPrm: cuzp[int, cuzp[str, ImMB]] = {} for QUSx, y4v5 in YKHO.feeds.items(): WsYz = y4v5.format(competition_id='*', season_id='*', game_id=A0tR) ANfH = SC2F.glob(Hy7s.path.join(YKHO.root, WsYz)) for NNJI in ANfH: A07C = HUpz(NNJI, y4v5)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bOBl(YKHO):\n VIPT = []\n for BH3N in YKHO.__iter__():\n jQ3Z = BH3N.dataframe\n if jQ3Z is not None:\n VIPT.append(jQ3Z)\n if VIPT == []:\n return None\n return rLdf.concat(VIPT)", "def lVlK(C01e):\n jQ3Z = rLdf.DataFrame.from_dict(C01e['game'], orient='index')...
[ "0.65878284", "0.6435725", "0.62151235", "0.6125515", "0.6108014", "0.6102002", "0.6039458", "0.59709346", "0.5952834", "0.5942402", "0.5938297", "0.59202266", "0.5902034", "0.58198696", "0.58132064", "0.5798249", "0.57148576", "0.5700119", "0.56895316", "0.56855065", "0.5678...
0.6173462
3
Draw the login window
def nUHY(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SdNu(YKHO):\n YKHO.delete_current_widgets()\n YKHO.resize(250, 250)\n YKHO.setWindowTitle('Corkscrew')\n YKHO.username = vj3Z(YKHO)\n YKHO.username.move(50, 50)\n YKHO.username.resize(YKHO.username.sizeHint())\n YKHO.username.setPlaceholderText('Username')\n YKHO.password = vj3Z(YKHO)\n...
[ "0.7299901", "0.72209626", "0.6994638", "0.6948988", "0.6854207", "0.6780174", "0.6704648", "0.66804326", "0.66338414", "0.6621531", "0.6589828", "0.6563137", "0.6540576", "0.6537464", "0.6498311", "0.6498311", "0.6477756", "0.6442675", "0.6442675", "0.63998014", "0.6364948",...
0.0
-1
Constructor for creating the List object, the internal lists of keys and values is initialized
def FIMM(YKHO): HApI.__init__(YKHO) YKHO._list = [] YKHO._values = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.keys = []\n YKHO.values = []", "def FIMM(YKHO):\n YKHO.dictionary = {}\n YKHO.list_items = []", "def FIMM(YKHO):\n YKHO.dic = g760.defaultdict(list)\n YKHO.li = []", "def FIMM(YKHO):\n YKHO.dict = {}\n YKHO.list = []", "def FIMM(YKHO, vC9B):\n YKHO.string_l...
[ "0.7611202", "0.74020517", "0.7384136", "0.73077226", "0.7280927", "0.7267674", "0.7123004", "0.7090109", "0.70584077", "0.7057041", "0.7053737", "0.7043401", "0.69237286", "0.6897854", "0.688587", "0.68356", "0.6824386", "0.6790018", "0.67865306", "0.672867", "0.6687065", ...
0.7212623
6
Determine objective value core method. To compute the objective value first predict the behaviour of all agents in the scene in the planning horizon, conditioned on the ego trajectory. Then compare the (modewise if multimodal) means of the previously computed unconditioned (see initialization) and the conditioned distr...
def UFJp(YKHO, FJWe: torch.Tensor, bpC9: typing.List[str], TZ9E: str) -> laHg.Union[ht2j.Tensor, None]: if len(bpC9) == 0 or YKHO._env.num_ados == 0: return None sgTf = YKHO.summarize_distribution(FJWe) sSN_ = ht2j.zeros(1) for HB3d in bpC9: FGFr = YKHO.env.index_ado_id(ado_id=HB3d) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UFJp(YKHO, FJWe: torch.Tensor, bpC9: typing.List[str], TZ9E: str) -> laHg.Union[ht2j.Tensor, None]:\n if len(bpC9) == 0 or YKHO.env.num_ados == 0:\n return None\n gQii = YKHO.env.compute_distributions(FJWe)\n rV9r = ht2j.zeros(1)\n for HB3d in bpC9:\n XP5J = gQii[HB3d].log_prob(YKHO._...
[ "0.65826464", "0.6557589", "0.6531803", "0.6468347", "0.6435437", "0.6282268", "0.62742037", "0.623825", "0.6213065", "0.61888105", "0.61841154", "0.6141784", "0.60958886", "0.60631466", "0.6053109", "0.60415643", "0.6021784", "0.59903157", "0.59844464", "0.5977592", "0.59740...
0.6321224
5
Normalize the objective/constraint value for improved optimization performance. The objective value is clamped to some maximal value which enforces the resulting objective values to be in some range. And can hence serve as normalize factor.
def NkkI(YKHO, WKvO: typing.Union[np.ndarray, float]) -> laHg.Union[oyIN.ndarray, float]: return WKvO / YKHO._max_value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CkYf(WKvO: float, rV9r: str, max: float, min: float, **B2fa):\n if rV9r == 'maximize':\n LVAh = (WKvO - min) / (max - min)\n elif rV9r == 'minimize':\n LVAh = (WKvO - max) / (min - max)\n else:\n print(\"Normalization objective must be either 'minimize' or 'maximize'\")\n r...
[ "0.7302614", "0.7187158", "0.7102002", "0.70620406", "0.7049045", "0.7045561", "0.7033217", "0.7000335", "0.6908697", "0.68966806", "0.68712735", "0.6849514", "0.6791652", "0.6787587", "0.6784125", "0.6738826", "0.6738776", "0.67308915", "0.67257375", "0.66957784", "0.6694106...
0.68931115
10
Creates an app reading the config file
def LUif(AeFH): global app P4t4 = L2w0(__name__) QZGP = CyRP(P4t4) P4t4.config.from_object(AeFH) from views.frontend import frontend P4t4.register_blueprint(frontend) LY6W = CazZ(P4t4, key_func=w4VH, default_limits=['55 per minute', '100 per hour', '200 per day']) return P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(Tuqy):\n P4t4 = KAOR.app\n P4t4.config.from_pyfile('config.py')\n P4t4.config.from_object(ivaI[Tuqy])\n return P4t4", "def LUif(GPtr='config.base'):\n P4t4 = L2w0(__name__, instance_relative_config=True)\n P4t4.config.from_object('config.base')\n if GPtr:\n P4t4.config.from_o...
[ "0.7849058", "0.74161285", "0.7409837", "0.7407288", "0.7338827", "0.72866815", "0.7276435", "0.7276435", "0.7262991", "0.7259059", "0.7234917", "0.72140694", "0.7202615", "0.7195978", "0.7172132", "0.71342117", "0.7115015", "0.71069956", "0.7081857", "0.7069098", "0.70573133...
0.6958155
31
Adds a filter constraint to queryset before executing the query when the User object is not a superuser or part of the editor group.
def SR0I(YKHO, QePW): SR0I = super(UYvZ, YKHO).queryset(QePW) if not QePW.user.is_superuser and (not 'Editors' in QePW.user.groups.values_list('name', flat=True)): if YKHO.has_change_permission(QePW): SR0I = SR0I.filter(created_by__staff__user=QePW.user) return SR0I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fRXs(YKHO, SR0I):\n return SR0I.filter(owner=YKHO.request.user)", "def k66M(YKHO):\n umWR = super().get_queryset()\n if not YKHO.request.user.is_superuser:\n umWR = umWR.filter(user=YKHO.request.user)\n return umWR", "def fRXs(YKHO, SR0I):\n CBIr = YKHO.request.user\n if CBIr.is_st...
[ "0.70364267", "0.66208076", "0.65578616", "0.65398425", "0.63942575", "0.63942575", "0.6383146", "0.6360047", "0.632168", "0.62501115", "0.62344825", "0.6221557", "0.6192962", "0.61758053", "0.6171169", "0.61692756", "0.61519724", "0.6150481", "0.61032045", "0.6100105", "0.60...
0.73447627
0
The `Request` object received from `save_form` method is used to determine if the `User` object is a superuser or belongs to the 'Editor' `Group`. If the `User` satisfies the condition, the exclude attribute is ignored.
def ON6q(YKHO, QePW, YEnM=None, **B2fa): if YKHO.exclude: if QePW.user.is_superuser or 'Editors' in QePW.user.groups.values_list('name', flat=True): YKHO.exclude = ('created_by', 'approved_by') return super(UYvZ, YKHO).get_form(QePW, YEnM, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k0pL(YKHO, QePW):\n uOe2 = YKHO.assignment_group\n ske_ = QePW.cradmin_instance.get_devilryrole_for_requestuser()\n if ske_.endswith('admin'):\n ske_ = NH7c.GroupComment.USER_ROLE_ADMIN\n try:\n uOe2.cached_data.last_feedbackset.can_add_comment(assignment=uOe2.parentnode, comment_user...
[ "0.59864885", "0.5755773", "0.5718984", "0.5597422", "0.53871626", "0.5354495", "0.5351834", "0.53195274", "0.52995163", "0.52890563", "0.52865404", "0.5280082", "0.52754486", "0.52754486", "0.52754486", "0.52754486", "0.52752537", "0.52685165", "0.52644736", "0.5199604", "0....
0.7035223
0
Updates the position of the player, pulling him towards itself.
def IFrt(YKHO): YKHO.player.position = (0.8 * YKHO.player.position[0] + 0.2 * YKHO.position[0], 0.8 * YKHO.player.position[1] + 0.2 * YKHO.position[1]) YKHO.player.velocity = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chpw(YKHO):\n YKHO.player.move()", "def VDGG(YKHO):\n YKHO.x, YKHO.y = (YKHO.rect.x, YKHO.rect.y)\n YKHO.handle_movement()", "def vP2v(YKHO):\n YKHO.player.position.y += 1", "def BZN_(YKHO):\n YKHO.position = (YKHO.position[0], YKHO.position[1] + YKHO.speed)", "def VvAZ(YKHO):\n YKHO....
[ "0.79081815", "0.7830335", "0.766075", "0.7624277", "0.7609596", "0.73975646", "0.7387015", "0.7319449", "0.7286192", "0.72655356", "0.7232693", "0.71587723", "0.71536356", "0.7141095", "0.7122238", "0.71170336", "0.7100402", "0.7091817", "0.7087771", "0.7044924", "0.7032001"...
0.68544656
32
Returns the current time as a datetime object.
def vHj7(YKHO) -> qcWV: return YKHO._timer.now(YKHO._utc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vHj7() -> qcWV.datetime:\n return qcWV.datetime.now()", "def ApjM() -> qcWV:\n return qcWV.utcnow()", "def B72W() -> qcWV:\n vHj7: qcWV = qcWV.now()\n return vHj7", "def ApjM():\n return qcWV.now(Vsdc())", "def vHj7(YKHO):\n return Kmii(qcWV.datetime.utcnow(), location=YKHO.location)"...
[ "0.83848625", "0.8249896", "0.8235373", "0.82270426", "0.8183182", "0.8180901", "0.8160785", "0.8144421", "0.80488825", "0.8031006", "0.80229884", "0.79847205", "0.79360664", "0.7930406", "0.7876775", "0.78438544", "0.78214425", "0.78132904", "0.78132904", "0.78132904", "0.78...
0.82583827
1
Returns the timer start time as a datetime object.
def SWox(YKHO) -> qcWV: return YKHO.timer_start_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSV8(YKHO):\n return ITS7(YKHO.start_datetime.hour, YKHO.start_datetime.minute, YKHO.start_datetime.second)", "def SWox(YKHO) -> qcWV:\n return YKHO._start_time", "def SWox(YKHO) -> qcWV:\n return YKHO._start_time", "def SWox(YKHO) -> qcWV.datetime:\n return YKHO._start_time", "def SWox(YKH...
[ "0.85871214", "0.81647426", "0.81647426", "0.81495863", "0.81258994", "0.81258994", "0.8068889", "0.8040574", "0.8040574", "0.8034326", "0.80159986", "0.8012517", "0.8012517", "0.79984426", "0.79488385", "0.7920522", "0.7905598", "0.78926855", "0.7789458", "0.7775831", "0.775...
0.87591946
0
Returns the timer start time in POSIX time seconds.
def nPac(YKHO) -> float: return YKHO.start_time().timestamp()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def komd():\n SWox = ITS7.time()\n return SWox", "def SWox(YKHO) -> qcWV:\n return YKHO.timer_start_time", "def G161():\n global start_time_ns\n NMF3 = int(ITS7.time_ns())\n return NMF3", "def jSV8(YKHO):\n return YKHO._clock.start", "def jSV8(YKHO):\n return YKHO._clock.start", "...
[ "0.8274902", "0.798933", "0.76751465", "0.7650888", "0.7650888", "0.75838596", "0.7566118", "0.7529996", "0.7482781", "0.74120307", "0.74120307", "0.7399201", "0.7355919", "0.73107857", "0.73103535", "0.72805744", "0.7278032", "0.7261017", "0.7250135", "0.72221524", "0.719144...
0.7516832
8
Returns the timer start time in an ISO format.
def VUww(YKHO) -> str: return YKHO.start_time().replace(microsecond=0).isoformat(' ')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cKAQ(YKHO):\n if YKHO.__start_time == 0:\n return None\n return qcWV.fromtimestamp(float(YKHO.__start_time) / 1000).isoformat()", "def SWox(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_time')", "def SWox(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_time')", "def SWox(YKHO) -> str:\n ...
[ "0.80817753", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.782604", "0.7749155", "0.77327764", "0.7669926", "0...
0.8611469
0
Returns the integer epoch timestamp for the date time described by dt.
def sOgR(JRYC, F2VZ='%Y-%m-%dT%H:%M:%SZ'): try: return int(qcWV.datetime.strptime(JRYC, F2VZ).timestamp()) except Exception as e: sU9C = HwRy.exc_info()[2] QP4x = sU9C.tb_lineno IznC = sU9C.tb_frame.f_code.co_name U4TF = type(tTpl).__name__ tO9_ = f'{U4TF} Excepti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MpkV(JRYC):\n try:\n qtWj = JRYC.timestamp()\n except AttributeError:\n qtWj = (JRYC - qcWV(1970, 1, 1)).total_seconds()\n return qtWj", "def qtWj(JRYC):\n return GRk0.timegm(JRYC.astimezone(FXGE.utc).timetuple())", "def BZyY(JRYC):\n return ITS7.mktime(JRYC.timetuple())", "d...
[ "0.85981387", "0.83413947", "0.8307686", "0.8180226", "0.8007568", "0.78481025", "0.7840135", "0.7789455", "0.7738416", "0.7689708", "0.7629459", "0.7566902", "0.7553526", "0.7547419", "0.75183374", "0.747923", "0.7469266", "0.7404018", "0.74036294", "0.7359319", "0.73408365"...
0.0
-1
Returns the output shape of this layer for a given input shape.
def ROpF(YKHO, hB0Y): if len(hB0Y) > 1: raise ValueError('Activations only take a single input.') GhuM = hB0Y[0] return GhuM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dOsr(YKHO, GhuM):\n return GhuM[0][0]", "def dOsr(YKHO, GhuM):\n return GhuM[0][0]", "def dOsr(YKHO, GhuM):\n GhuM = qiip.TensorShape(GhuM)\n GhuM = GhuM.with_rank_at_least(2)\n return GhuM[:-1].concatenate(YKHO.output_size)", "def dOsr(YKHO, GhuM):\n GhuM = qiip.TensorShape(GhuM)\n ...
[ "0.8721111", "0.8721111", "0.86631435", "0.86631435", "0.8581283", "0.8512663", "0.84944576", "0.8378439", "0.83750886", "0.83485776", "0.83485776", "0.82518417", "0.8216157", "0.8210891", "0.81953996", "0.8187991", "0.8187913", "0.8160458", "0.80062884", "0.79871887", "0.794...
0.0
-1
Add a card to the hand
def lACn(YKHO, dxhl): YKHO.cards.append(dxhl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lACn(YKHO, dxhl):\n YKHO.hand.append(dxhl)", "def AZnT(YKHO, dxhl):\n YKHO.hand.append(dxhl)", "def lACn(YKHO, dxhl):\n YKHO.hand.append(dxhl)", "def lACn(YKHO, dxhl: Card):\n YKHO.hand.append(dxhl)", "def lACn(YKHO, dxhl):\n if isinstance(dxhl, F1Hz):\n YKHO.hand.append(dxhl)", ...
[ "0.9025", "0.89923745", "0.89399976", "0.88106704", "0.8672419", "0.85889554", "0.8557316", "0.85467637", "0.85035706", "0.85016716", "0.8495107", "0.8489163", "0.84797823", "0.84797823", "0.8479633", "0.8479633", "0.84681934", "0.84650594", "0.83941096", "0.83818865", "0.835...
0.84532386
18
Return the first card. Used to split the hand
def g8tW(YKHO): if len(YKHO.cards) == 0: print('Error: Not enough cards!') return YKHO.cards[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cntZ(YKHO):\n assert YKHO.cards\n return YKHO.cards[0]", "def dxhl(YKHO):\n return YKHO.deck[0]", "def Vzsj(BH3N):\n v_Lk = len(BH3N.itemDeck)\n if v_Lk == 0:\n oDyc(BH3N)\n return Vzsj(BH3N)\n else:\n dxhl = BH3N.itemDeck[0]\n del BH3N.itemDeck[0]\n ret...
[ "0.8296205", "0.7831065", "0.74853337", "0.7453035", "0.7296626", "0.71563035", "0.71492", "0.7119605", "0.70596236", "0.70254993", "0.70066744", "0.6999766", "0.6993175", "0.69631356", "0.69370794", "0.69359756", "0.6925347", "0.68675", "0.6855617", "0.68482065", "0.6820073"...
0.82671076
1
Return the second card. Used to split the hand
def RpJm(YKHO): if len(YKHO.cards) < 2: print('Error: Not enough cards!') return YKHO.cards[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(YKHO, ezIe, m0Ti, uzh9=0):\n if YKHO.name == 'DEALER':\n print(f'Dealer cannot split')\n if len(YKHO.hands[uzh9].cards) != 2:\n print(f'You can only split on your first new card. Current cards are {YKHO.hands[uzh9].cards}.')\n return 'na'\n if YKHO.hands[uzh9].cards[0][0] != ...
[ "0.6989173", "0.6785913", "0.6783143", "0.6622829", "0.6585108", "0.6454421", "0.6395131", "0.6383631", "0.63756704", "0.632087", "0.6309507", "0.6282119", "0.6274562", "0.62616193", "0.62555355", "0.62309784", "0.6218827", "0.61950725", "0.61811984", "0.6166717", "0.6163307"...
0.7916222
0
Filter out unwanted fields.
def PYkE(MOPg, OdMx): if isinstance(MOPg, iMeJ): MOPg = [MOPg] KXwX = set() for WBPg in MOPg: for jXCX in WBPg.descriptors: W3Xw = [H5ew for H5ew in jXCX.data_keys.keys() if H5ew not in OdMx] KXwX.update(W3Xw) return KXwX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vaWC(YKHO):\n if hasattr(YKHO, 'fields') and isinstance(YKHO.fields, dict):\n hzQh = U8Lr(YKHO.fields)\n YKHO.fields = list(YKHO.fields)\n YKHO._reduce_list = list(map(k2ek, hzQh.values()))\n if YKHO.Meta.exclude and (not YKHO._excluded):\n YKHO._excluded = True\n for D...
[ "0.7470661", "0.71738446", "0.70607436", "0.7053999", "0.70140153", "0.69463176", "0.6860192", "0.67137694", "0.6685506", "0.666165", "0.6633027", "0.6608216", "0.6589335", "0.6589335", "0.6567732", "0.6550936", "0.65287364", "0.6523771", "0.6502154", "0.64945245", "0.6486776...
0.7025965
4
Checks if the current user's session has the needs_password_reset flag set. If so, redirect them to the password reset page
def KdyG(m2Zb): @zaGL(m2Zb) def h3Xc(*qIxc, **B2fa): if c5ow.is_authenticated() and c5ow.needs_password_reset: return vKnz(nKyW('main.force_password_reset')) else: return m2Zb(*qIxc, **B2fa) return h3Xc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fu3Z(QePW):\n if not QePW.user.is_authenticated():\n return wkJG(QePW, template_name='registration/password_reset_form.html', email_template_name='registration/password_reset_email.html', post_reset_redirect='/recipes/password_reset/done/', from_email='recipes@localhost.com')\n else:\n retu...
[ "0.6988807", "0.694188", "0.68306696", "0.6801101", "0.6792422", "0.670614", "0.6672624", "0.6627488", "0.66087747", "0.6592705", "0.6551887", "0.653234", "0.6457879", "0.64527273", "0.64237064", "0.64121467", "0.6384903", "0.6374979", "0.63718957", "0.62984735", "0.6288938",...
0.7529042
0
Returns the Qualifier of a certain type, or None if qualifier is not present.
def iSjy(YKHO, NomX: Type[Qualifier]): if YKHO.qualifiers: for Byc2 in YKHO.qualifiers: if isinstance(Byc2, NomX): return Byc2.value return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Byc2(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('qualifier')", "def J9Rv(YKHO, KAOR, qsJ6):\n if YKHO.qualifier is None or YKHO.qualifier == (None,):\n if hasattr(KAOR, 'qualifier'):\n return KAOR.qualifier\n else:\n return YKHO.qualifier\n return (None,)", ...
[ "0.7530422", "0.71242905", "0.6876398", "0.6526958", "0.6188044", "0.6060194", "0.60377836", "0.59126717", "0.5885611", "0.5880195", "0.58421284", "0.5818469", "0.5754611", "0.57469636", "0.56664675", "0.55838925", "0.5567348", "0.5547134", "0.5532723", "0.55117035", "0.55048...
0.8032851
0
Tests utils.get_current_tenant() for correctness.
def uuJA(Fr1n, p4MR): with iAwF(GyH2()): ehIZ = BfDw.get_current_tenant() assert ehIZ == Fr1n ehIZ = p4MR.first() with iAwF(ehIZ.schema_name): AtBU = BfDw.get_current_tenant() assert AtBU == ehIZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SIK3(YKHO):\n return YKHO.request.tenant", "def IuI1(YKHO):\n return YKHO.tenant", "def hqpR(xQy_):\n pass", "def QVwq(YKHO):\n pass", "def kuXy(YKHO):\n pass", "def qdtH(YKHO):\n lWQw = '/any/request/'\n QePW = YKHO.factory.get('/any/request/', HTTP_HOST=YKHO.tenant_domain)\n ...
[ "0.791105", "0.75847507", "0.7236369", "0.69793606", "0.6820244", "0.6793419", "0.67850757", "0.67850757", "0.6783739", "0.67695487", "0.6745202", "0.6741886", "0.67263895", "0.67263895", "0.6692769", "0.65981174", "0.6583785", "0.6583785", "0.6558009", "0.6547961", "0.653529...
0.8255864
0
Gets the base symbol name regardless of whether or not the address has been appended. symbol the symbol to get the clean name for. the base symbol name where the { "@"} has been stripped away if it exists.
def Ldon(o61b: ghidra.program.model.symbol.Symbol) -> QMSQ: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ldon(Aj3A: unicode, UTX6: ghidra.program.model.address.Address) -> QMSQ:\n ...", "def jm4H(YKHO, UTX6, yIVm):\n if yIVm == uwaB.DIS_ID_MIDINSTRUCTION:\n return 'SYM%06X' % UTX6\n elif yIVm == uwaB.DIS_ID_BOUNDS:\n return 'lbZ%06X' % UTX6\n if yIVm == uwaB.DIS_ID_ASCII:\n hcXw...
[ "0.7184891", "0.64457947", "0.6411862", "0.6295553", "0.61397964", "0.61245674", "0.6102973", "0.60837024", "0.6064045", "0.60587823", "0.60313874", "0.6013103", "0.60030246", "0.598325", "0.598325", "0.598325", "0.598325", "0.598325", "0.598325", "0.598325", "0.5951131", "...
0.7158241
1
Gets the base symbol name regardless of whether or not the address has been appended using either the standard "@" separator, or the less preferred "_" separator. The address string extension must match that which is produced by the { getAddressString(Address)} method for it to be recognized. symbolName a symbol name t...
def Ldon(Aj3A: unicode, UTX6: ghidra.program.model.address.Address) -> QMSQ: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ldon(o61b: ghidra.program.model.symbol.Symbol) -> QMSQ:\n ...", "def jm4H(YKHO, UTX6, yIVm):\n if yIVm == uwaB.DIS_ID_MIDINSTRUCTION:\n return 'SYM%06X' % UTX6\n elif yIVm == uwaB.DIS_ID_BOUNDS:\n return 'lbZ%06X' % UTX6\n if yIVm == uwaB.DIS_ID_ASCII:\n hcXw = 'A'\n elif ...
[ "0.6660363", "0.63066643", "0.5827557", "0.5814959", "0.5790676", "0.5699722", "0.55176216", "0.5507661", "0.5432777", "0.542856", "0.54052657", "0.5396275", "0.53887886", "0.53807276", "0.5378728", "0.53700364", "0.5362816", "0.5345435", "0.53271675", "0.53178096", "0.531770...
0.7405137
0
Returns a comparator for symbols. The comparison is based upon the name. This call replaces the former compareTo method on Symbol. This comparator returned here is caseinsensitive. the comparator
def EC_v() -> FtBY.util.Comparator: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def enpi():\n return [z1Rg.value[0] for z1Rg in HygV]", "def Aicm(YKHO, RKYb):\n return eHkp(YKHO['name'], RKYb['name'])", "def GFDZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'comparator')", "def GFDZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'comparator')", "def oJi...
[ "0.6555257", "0.6245885", "0.6017182", "0.6017182", "0.59899044", "0.59133154", "0.5855332", "0.5833374", "0.5805467", "0.5619787", "0.55721956", "0.5569892", "0.54649943", "0.54170287", "0.5370006", "0.5355261", "0.5351147", "0.5343606", "0.5335993", "0.5332233", "0.5327848"...
0.8582549
0
Removes from the given string any invalid characters or replaces them with underscores.
def WmiX(str: unicode, x_6_: bool) -> QMSQ: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oRP1(KCHu):\n HBfW = XKrx.unidecode(KCHu)\n KzJa = vIwR.ascii_letters + vIwR.digits + '_ .-'\n TKMu = ''.join((Z9rn if Z9rn in KzJa else '_' for Z9rn in HBfW))\n while '__' in TKMu:\n TKMu = TKMu.replace('__', '_')\n TKMu = TKMu.strip('_')\n return TKMu", "def x0SS(vIwR):\n uv6v =...
[ "0.82115483", "0.8168437", "0.8109143", "0.79431283", "0.7858045", "0.76061714", "0.7423444", "0.73104775", "0.7291453", "0.7244551", "0.72182983", "0.72065485", "0.7115576", "0.7049617", "0.7036489", "0.6993263", "0.6981153", "0.6955777", "0.69494736", "0.6939434", "0.693055...
0.8355944
0
Given a component, return a list of dependencies. An empty list will be returned for components with no dependencies.
def fHMd(UksD): SMAd = UksD.get('depends') if SMAd: return list((WKvO.strip() for WKvO in SMAd.split(','))) return list()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TJ6E(YKHO):\n TYFn = z66z(YKHO.activity_list)\n klR6 = TYFn.get_list_dependencies()\n ibhh = YKHO.get_act_dependencies_start()\n p02w = YKHO.get_dependencies_time(klR6 + ibhh)\n iv26 = YKHO.get_resource_capacity_dependencies()\n DSLb = YKHO.get_wait_dependencies_cp()\n return list(set(p02w...
[ "0.6460485", "0.6460093", "0.6283561", "0.6283561", "0.6259914", "0.61963457", "0.61844784", "0.6150698", "0.61463684", "0.61327434", "0.6129166", "0.61171293", "0.6114845", "0.6109052", "0.6073414", "0.60554975", "0.6035933", "0.60260606", "0.5997162", "0.59861994", "0.59703...
0.8579652
0
Shift array padding to the front or back of the array.
def DkWr(ezWE, Sma8=False, yvT9=None, Di7o=True): if isinstance(ezWE, dict): return K6m2(lambda WKvO: DkWr(WKvO, to_front=Sma8), ezWE, copy=Di7o, types=oyIN.ndarray) import numpy.ma as fHeP lsmZ, _9tk = (oyIN.empty, oyIN.nan) if isinstance(ezWE, fHeP.MaskedArray): lsmZ, _9tk = (fHeP.empt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CWOS(YKHO, qw7D, WKvO):\n wc14 = oyIN.array(qw7D)\n if WKvO >= 0:\n wc14[WKvO:len(wc14)] = qw7D[0:len(qw7D) - WKvO]\n wc14[0:WKvO] = qw7D[0]\n else:\n wc14[0:len(wc14) + WKvO] = qw7D[abs(WKvO):len(qw7D)]\n wc14[len(wc14) + WKvO:len(wc14)] = qw7D[len(qw7D) - 1]\n return w...
[ "0.70119566", "0.6748748", "0.67103773", "0.65638703", "0.65514123", "0.65052354", "0.6478251", "0.64579284", "0.6373996", "0.6359758", "0.6322795", "0.63003737", "0.62876546", "0.62856424", "0.6273728", "0.6244813", "0.6233994", "0.62250334", "0.6221575", "0.62123483", "0.62...
0.6717514
2
Return whether or not given value is an email. If the value is an email, this function returns ``True``, otherwise ``False``.
def saoe(BWXx): D3lj = ZbWC.compile("^(((([a-zA-Z]|\\d|[!#$%&'*+\\-/=?^_`{|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-zA-Z]|\\d|[!#$%&'*+\\-/=?^_`{|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d8RH(BWXx):\n if ZbWC.match('^[^@]+@[^@]+\\\\.[^@]+', BWXx):\n return True", "def gqOy(BWXx, **B2fa):\n try:\n BWXx = _FIc.email(BWXx, **B2fa)\n except SyntaxError as error:\n raise P1dF\n except Exception:\n return False\n return True", "def gqOy(YKHO):\n try:...
[ "0.83081055", "0.80395925", "0.7826047", "0.78259283", "0.77453244", "0.7674663", "0.76491463", "0.7498818", "0.74631363", "0.74320275", "0.7420403", "0.730759", "0.7245883", "0.717544", "0.7155195", "0.71547014", "0.71236926", "0.71138865", "0.71136785", "0.71091145", "0.709...
0.0
-1
Return whether or not given value is a float.
def SH_w(BWXx): G9sr = ZbWC.compile('^(?:[-+]?(?:[0-9]+))?(?:\\.[0-9]*)?(?:[eE][+\\-]?(?:[0-9]+))?$') return BWXx != '' and bool(G9sr.match(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SH_w(BWXx):\n try:\n float(BWXx)\n return True\n except ValueError:\n return False", "def NLLz(YKHO, BWXx):\n try:\n float(BWXx)\n except ValueError:\n return False\n return True", "def ZPAH(BWXx):\n try:\n float(BWXx)\n except ValueError:\n ...
[ "0.9187267", "0.9155606", "0.9111842", "0.90384257", "0.90384257", "0.90384257", "0.90384257", "0.89800096", "0.8938141", "0.8925946", "0.8915553", "0.8824568", "0.8774194", "0.8645318", "0.8645311", "0.8639002", "0.8636326", "0.8578553", "0.85615945", "0.855881", "0.855782",...
0.86451733
15
Return whether or not given value is a UUID version 3. If the value is a UUID version 3, this function returns ``True``, otherwise ``False``.
def iQMu(BWXx): v1dJ = ZbWC.compile('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-3[0-9a-fA-F]{3}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$') return bool(v1dJ.match(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aZC5(BWXx):\n kxTZ = ZbWC.compile('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$')\n return bool(kxTZ.match(BWXx))", "def Xiu1(BWXx: str) -> bool:\n try:\n wEf2 = S7kj(BWXx, version=4)\n except ValueError:\n return False\n return wEf2.hex ...
[ "0.7551436", "0.74526703", "0.73776317", "0.7351455", "0.73411673", "0.7315145", "0.73038363", "0.7277205", "0.725141", "0.72203654", "0.717463", "0.7133033", "0.7133033", "0.7131103", "0.7102467", "0.7082699", "0.7034573", "0.7011602", "0.6974329", "0.6961651", "0.6961651", ...
0.8793786
0
Return whether or not given value is a UUID version 5. If the value is a UUID version 5, this function returns ``True``, otherwise ``False``.
def ZSXT(BWXx): W8vU = ZbWC.compile('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-5[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$') return bool(W8vU.match(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dSab(kIBo: str, DpZH=4) -> bool:\n try:\n GZSO = S7kj(kIBo, version=DpZH)\n except ValueError as e:\n print(f'The value is not a uuid {tTpl}')\n return False\n return str(GZSO) == kIBo", "def aZC5(BWXx):\n kxTZ = ZbWC.compile('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[8...
[ "0.77062166", "0.76890975", "0.7669913", "0.7559021", "0.75452167", "0.7440847", "0.7319417", "0.73135424", "0.71431345", "0.71393937", "0.7122924", "0.7108288", "0.7108288", "0.70909464", "0.7086031", "0.70479673", "0.70308584", "0.70110303", "0.6958916", "0.69010186", "0.69...
0.8901688
0
Return whether or not given value is valid latitude. If the value is valid latitude, this function returns ``True``, otherwise ``False``.
def GNLg(BWXx): QnmL = ZbWC.compile('^[-+]?([1-8]?\\d(\\.\\d+)?|90(\\.0+)?)$') return bool(QnmL.match(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tsWi(QnmL: Union[int, float]) -> bool:\n if not isinstance(QnmL, (int, float)):\n return False\n return -90 <= QnmL <= 90", "def Qbso(hCf7):\n if (hCf7 > ZjSO('90.000000')) == True or (hCf7 < ZjSO('-90.000000')) == True:\n return False\n return True", "def Ti1e(QnmL):\n return ...
[ "0.815586", "0.79698503", "0.77558607", "0.7578101", "0.73276186", "0.6964596", "0.69141585", "0.68916994", "0.6857982", "0.6848456", "0.67571366", "0.67036223", "0.6681254", "0.66584957", "0.6655772", "0.66177785", "0.66072446", "0.65418667", "0.6364919", "0.63626623", "0.63...
0.83441466
0
Return whether or not given value is a U.S. Social Security Number. If the value is a U.S. Social Security Number, this function returns ``True``, otherwise ``False``.
def lCSz(BWXx): kb2X = ZbWC.compile('^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$') if BWXx == '' or len(BWXx) != 11: return False return bool(kb2X.match(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vcY2(BWXx):\n if type(BWXx) is int:\n return 0 < BWXx < 1000000000.0\n elif type(BWXx) is str:\n BWXx = BWXx.replace('-', '')\n if BWXx.isdigit():\n return 0 < int(BWXx) < 1000000000.0\n return False", "def KSh2(YKHO, KCHu):\n try:\n float(KCHu)\n ret...
[ "0.7263443", "0.57310003", "0.57268447", "0.5689869", "0.5686302", "0.567132", "0.5650892", "0.56195694", "0.5618447", "0.5601001", "0.5537316", "0.55315226", "0.5523739", "0.55154437", "0.55138427", "0.5511695", "0.55013496", "0.5500512", "0.5497916", "0.5485699", "0.5473785...
0.64941716
1
Return whether or not given value is valid International Securities Identification Number. If the value is a valid ISIN, this function returns ``True``, otherwise ``False``.
def TnmS(BWXx): mXDZ = ZbWC.compile('^[A-Z]{2}[0-9A-Z]{9}[0-9]$') if not mXDZ.match(BWXx): return False tPpS = ZbWC.sub('[A-Z]', lambda Npgh: str(int(Npgh.group(0), 36)), BWXx) VXAf = 0 SEH9 = True for YRbF in tPpS[-2::-1]: Ko6S = int(YRbF) if SEH9: Ko6S *= 2 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VSEZ(pDC0):\n DsTm = False\n pDC0 = pDC0.strip().upper()\n KpAY = dict([(YRbF, ord(YRbF) - 55) for YRbF in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'] + [(YRbF, int(YRbF)) for YRbF in '0123456789'])\n if ZbWC.match('^([A-Z][A-Z])([A-Z0-9]{9}\\\\d)$', pDC0):\n try:\n eUvx = ''.join([str(KpAY[To6...
[ "0.7445795", "0.6533377", "0.6430862", "0.61707944", "0.6067428", "0.6054992", "0.59797925", "0.5915173", "0.5847984", "0.58476144", "0.5799047", "0.5788452", "0.57670677", "0.5695059", "0.56503844", "0.5635451", "0.5633636", "0.56211734", "0.55895513", "0.5550109", "0.554984...
0.648957
2
Return whether or not given value is a valid IBAN code. If the value is a valid IBAN, this function returns ``True``, otherwise ``False``.
def TYo_(BWXx): mXDZ = ZbWC.compile('^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$') dvLe = BWXx.replace(' ', '').replace('\t', '') Eggv = dvLe[4:] + dvLe[:4] if not mXDZ.match(dvLe): return False BHGE = int(''.join((str(int(Npgh, 36)) for Npgh in Eggv))) return BHGE % 97 == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vKUd(BWXx):\n for YRbF in range(2):\n if not BWXx[YRbF].isalpha():\n return False\n for YRbF in range(2, len(BWXx)):\n if not BWXx[YRbF].isdigit():\n return False\n if BWXx[2:4] != SHXi.calculate_checksum(BWXx[4:], BWXx[0:2]):\n return False\n return True"...
[ "0.72110736", "0.69424576", "0.66729754", "0.66177124", "0.6614052", "0.65787476", "0.65218884", "0.6500579", "0.63800764", "0.6341245", "0.6328135", "0.63150924", "0.6261782", "0.6221996", "0.6210474", "0.6197417", "0.6185392", "0.61823875", "0.61481786", "0.61126184", "0.61...
0.7813418
0
Simple sign out view.
def cerm(): oLi7() return vKnz(nKyW('sign_in'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F377(QePW):\n erK4(QePW)\n yEHD.info(QePW, 'Logged out successfully!')\n return vKnz('index')", "def VqHn():\n return TvZl('flask_user/signed_out.html')", "def OJVg(YKHO):\n YKHO.get('/sign-out', follow_redirects=False)", "def F377(QePW):\n Jpbe.logout(QePW)\n return vKnz('home')", ...
[ "0.8081141", "0.804791", "0.80016667", "0.7914481", "0.79097384", "0.7822484", "0.7759976", "0.77424824", "0.7682169", "0.7666625", "0.7643217", "0.7577105", "0.7574606", "0.7571203", "0.7541311", "0.7531471", "0.7512211", "0.74859375", "0.7479573", "0.74736696", "0.74448967"...
0.7776617
6
To calculate the affine matrix, three pairs of points are required. This function is used to get the 3rd point, given 2D points a & b. The 3rd point is defined by rotating vector `a b` by 90 degrees anticlockwise, using b as the rotation center.
def J8Nh(jzdc, Fg_i): assert len(jzdc) == 2, 'input of _get_3rd_point should be point with length of 2' assert len(Fg_i) == 2, 'input of _get_3rd_point should be point with length of 2' XSoh = jzdc - Fg_i J5XP = Fg_i + oyIN.array([-XSoh[1], XSoh[0]], dtype=oyIN.float32) return J5XP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kTqc(UOWZ, XPQ6):\n EcVT = fYGz(UOWZ)\n fuBA = n2zu(XPQ6)\n jzdc = oyIN.dot(oyIN.linalg.pinv(EcVT), fuBA)\n Kt_s = oyIN.zeros((3, 3))\n k0lF = oyIN.reshape(jzdc, (2, 3))\n Kt_s[0:2, :] = k0lF[:, :]\n Kt_s[-1, :] = oyIN.array([0, 0, 1])\n return Kt_s", "def draa(vgbn, zrrz):\n o4D3,...
[ "0.70318985", "0.67194676", "0.6333006", "0.6297111", "0.6193895", "0.6181214", "0.615852", "0.6130872", "0.6010604", "0.6009429", "0.59955466", "0.5993995", "0.5943676", "0.5942521", "0.59298044", "0.5924922", "0.58702487", "0.58518237", "0.5849547", "0.58330595", "0.5832304...
0.5877511
16
Joins the words in a list into a single string with 'glue_symbol' as the delimiter.
def kv6q(cFz2, w_3R): yAmx = '' E3OS = len(w_3R) - 1 fThx = 0 for GIN8 in w_3R: if fThx != E3OS: yAmx += GIN8 + cFz2 fThx += 1 else: yAmx += GIN8 + '.' return yAmx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K4M4(vwCE):\n oPTj = ''\n for GIN8 in vwCE:\n oPTj = oPTj + GIN8\n return oPTj", "def _o5W(ESDF=None, VWe_=' '):\n gzes = VWe_.join([VWe_.join(o7uO) for o7uO in ESDF])\n return gzes", "def JXR1(yv6U, VWe_=','):\n return VWe_.join((LN6K(fEM0) for fEM0 in yv6U))", "def Tiqi(BDwY):\...
[ "0.72001785", "0.71731997", "0.7113785", "0.7042824", "0.7035703", "0.6924637", "0.6902829", "0.6899409", "0.6724385", "0.6718867", "0.66938704", "0.6682298", "0.6662349", "0.66208786", "0.65412164", "0.6472629", "0.6441192", "0.64407265", "0.64395183", "0.6433355", "0.643043...
0.7985387
0
Returns the intersection of two lists without duplicates
def XMlP(w_3R, XxT4): iQin = [] w_3R = dDv2(w_3R) for WKvO in w_3R: if WKvO in XxT4: iQin.append(WKvO) return iQin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nZsg(Kt9y, I_KI):\n return list(set(Kt9y) & set(I_KI))", "def RIsH(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))", "def iov8(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))", "def W9Po(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))", "def XMlP(jzdc, Fg_i):\n return list(set(jzdc...
[ "0.8760547", "0.86693704", "0.8578248", "0.8557673", "0.8460478", "0.8454474", "0.8439938", "0.8439938", "0.8439938", "0.8439938", "0.8439938", "0.8434124", "0.8391325", "0.83449805", "0.83449805", "0.8331998", "0.8275055", "0.8263615", "0.82029223", "0.8119927", "0.80679154"...
0.8349921
13
Computes the logical difference of 'aList' minus 'bList'
def by6d(w_3R, XxT4): return [WKvO for WKvO in dDv2(w_3R) if WKvO not in XxT4]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w7GX(pHfY, Fyha):\n return list(set(pHfY) - set(Fyha))", "def ruoQ(f75j, gYXc):\n u54L = len(f75j)\n gyqr = len(gYXc)\n if u54L > gyqr:\n for YRbF in range(0, gyqr):\n f75j[YRbF] = f75j[YRbF] - gYXc[YRbF]\n return f75j\n elif u54L < gyqr:\n for YRbF in range(0, ...
[ "0.73449457", "0.7237927", "0.7231184", "0.7221411", "0.7173969", "0.71434337", "0.71305263", "0.71288526", "0.7112913", "0.7093419", "0.70737565", "0.7063742", "0.70526123", "0.69901377", "0.6965943", "0.6949363", "0.69357616", "0.6923837", "0.69092476", "0.69059986", "0.688...
0.76309717
0
Returns the maximum value for a list of integers
def PtQX(PVOR): CjUr = PVOR.pop() for WKvO in PVOR: if WKvO > CjUr: CjUr = WKvO return CjUr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qOmX(list=[]):\n if len(list) == 0:\n return None\n Aofo = list[0]\n YRbF = 1\n while YRbF < len(list):\n if list[YRbF] > Aofo:\n Aofo = list[YRbF]\n YRbF += 1\n return Aofo", "def max(input: list[int]) -> int:\n if len(input) == 0:\n raise ValueError(...
[ "0.8424576", "0.82839227", "0.8077657", "0.80595505", "0.8050565", "0.7994343", "0.7990429", "0.7989446", "0.79877025", "0.79375666", "0.78946775", "0.78905404", "0.7887717", "0.7877336", "0.78754264", "0.7856669", "0.7851627", "0.7847143", "0.7844248", "0.7828245", "0.781934...
0.8279914
2
Adds the squares of the numbers in a list
def Lzxs(fUYa): wjRY = 0 for WKvO in fUYa: wjRY += WKvO * WKvO return wjRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lzxs(aO51):\n Lzxs = 0\n for mLGw in aO51:\n Lzxs += mLGw ** 2\n return Lzxs", "def Lzxs(aO51=list(range(1, 101))):\n wjRY = 0\n for exwG in aO51:\n wjRY += exwG ** 2\n return wjRY", "def oFrj(aO51):\n oFrj = 0\n for mLGw in aO51:\n oFrj += mLGw\n return oFrj...
[ "0.83734715", "0.8229423", "0.80198276", "0.7928826", "0.7791939", "0.7627059", "0.7627059", "0.7586238", "0.7580674", "0.7547307", "0.7516179", "0.74930435", "0.73969", "0.7351325", "0.73462915", "0.73012197", "0.7270864", "0.7258585", "0.72467434", "0.7242436", "0.7233546",...
0.81085485
2
Property que devuelve el texto asistida si esta especificado y sino el nombre.
def pMQU(YKHO): if hasattr(YKHO, 'nombre'): U5bT = YKHO.nombre if YKHO.asistida is not None: U5bT = YKHO.asistida else: U5bT = None return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.nombre", "def zAg0(YKHO) -> str:\n return YKHO.nombre", "def YPM_(YKHO):\n return YKHO.nombre", "def YPM_(YKHO):\n return YKHO.nombre", "def zAg0(YKHO):\n return f'{YKHO.nome}'", "def KiuL(YKHO):\n return YKHO.__nombre", "def Rydc(YKHO) -> str:\n retur...
[ "0.68446904", "0.68336815", "0.6665351", "0.6665351", "0.6660938", "0.6654642", "0.66418725", "0.66418725", "0.6624292", "0.6623799", "0.66204035", "0.6610084", "0.6601782", "0.6601488", "0.65875584", "0.65841615", "0.65841615", "0.65711194", "0.65698314", "0.6569376", "0.656...
0.69026667
0
Representacion del objeto. Codigo y nombre de la Candidatura.
def zAg0(YKHO): return '%s - %s' % (YKHO.codigo, YKHO.nombre)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.nombre_completo", "def zAg0(YKHO):\n return YKHO.nombre", "def zAg0(YKHO) -> str:\n return YKHO.nombre", "def zAg0(YKHO):\n return YKHO.unidad", "def zAg0(YKHO):\n return YKHO.concepto + ' - ' + YKHO.nombre", "def wHJl(YKHO):\n return f'ResidenciaModel(name...
[ "0.6503503", "0.63075864", "0.6218517", "0.6136184", "0.6124617", "0.6116712", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "...
0.5957416
33
Representacion del objeto. Codigo y nombre de la Candidatura.
def zAg0(YKHO): return '%s' % YKHO.codigo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.nombre_completo", "def zAg0(YKHO):\n return YKHO.nombre", "def zAg0(YKHO) -> str:\n return YKHO.nombre", "def zAg0(YKHO):\n return YKHO.unidad", "def zAg0(YKHO):\n return YKHO.concepto + ' - ' + YKHO.nombre", "def wHJl(YKHO):\n return f'ResidenciaModel(name...
[ "0.6503503", "0.63075864", "0.6218517", "0.6136184", "0.6124617", "0.6116712", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "0.61145693", "...
0.61082083
27
Return the default setting for whether taptoclick is enabled on this device.
def y8SR(YKHO): return YKHO._libinput.libinput_device_config_tap_get_default_enabled(YKHO._handle)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xx3b(YKHO):\n return YKHO._libinput.libinput_device_config_tap_get_default_drag_enabled(YKHO._handle)", "def L_l2(YKHO):\n return YKHO._libinput.libinput_device_config_dwt_get_default_enabled(YKHO._handle)", "def iZrl(YKHO):\n return YKHO._libinput.libinput_device_config_tap_get_default_drag_lock_...
[ "0.6663065", "0.6417226", "0.62295383", "0.6087621", "0.59578663", "0.59238297", "0.59163785", "0.5906967", "0.5889758", "0.5881091", "0.5878297", "0.58746904", "0.58644354", "0.58565766", "0.58565766", "0.5832749", "0.5817224", "0.57692885", "0.57692885", "0.5763622", "0.571...
0.7143125
0
Enable or disable draglock during tapping on this device. When enabled, a finger may be lifted and put back on the touchpad within a timeout and the drag process continues. When disabled, lifting the finger during a tapanddrag will immediately stop the drag. See `Tapanddrag`_ for details. Enabling drag lock on a device...
def cZ2J(YKHO, QTBn): return YKHO._libinput.libinput_device_config_tap_set_drag_lock_enabled(YKHO._handle, QTBn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roLO(YKHO):\n return YKHO._libinput.libinput_device_config_tap_get_drag_lock_enabled(YKHO._handle)", "def i4sX(YKHO, QTBn):\n return YKHO._libinput.libinput_device_config_tap_set_drag_enabled(YKHO._handle, QTBn)", "def PPyp(YKHO, TSMu=True):\n YKHO._enabledragging = TSMu", "def HQlr(YKHO):\n ...
[ "0.6537258", "0.629805", "0.61405146", "0.61355233", "0.613509", "0.600957", "0.59579957", "0.59179926", "0.588134", "0.5799067", "0.5697023", "0.5674136", "0.56439745", "0.5604134", "0.5584999", "0.55789924", "0.5575132", "0.5572346", "0.55703956", "0.5531126", "0.55222046",...
0.72902566
0
Return the current calibration matrix for this device.
def kE1S(YKHO): SppC = (PgP1 * 6)() RBVb = YKHO._libinput.libinput_device_config_calibration_get_matrix(YKHO._handle, SppC) return (bool(RBVb), tuple(SppC))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AXAf(YKHO):\n return YKHO._calib", "def VLJZ(YKHO):\n return YKHO.data['calibration']", "def nPum(YKHO):\n if not hasattr(YKHO, '_matrix'):\n YKHO.compute_matrix()\n return YKHO._matrix", "def lRGx(YKHO):\n return YKHO.matrix", "def lRGx(YKHO):\n return YKHO.matrix", "def _1R...
[ "0.7202858", "0.71642643", "0.6977499", "0.6941762", "0.6941762", "0.6882766", "0.686254", "0.68046504", "0.6769241", "0.67373246", "0.6729223", "0.66885144", "0.6688506", "0.6652993", "0.6641066", "0.6641066", "0.6627864", "0.6615186", "0.6608338", "0.6608338", "0.6608338", ...
0.7037272
2
Set the sendevent mode for this device. The mode defines when the device processes and sends events to the caller. The selected mode may not take effect immediately. Events already received and processed from this device are unaffected and will be passed to the caller on the next call to
def ms3O(YKHO, Tuqy): return YKHO._libinput.libinput_device_config_send_events_set_mode(YKHO._handle, Tuqy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YiFq(YKHO, Tuqy):\n dsE5(YKHO, 'SETMODE %s' % Tuqy)\n YKHO.client.server.socket_setmode(YKHO.socket, Tuqy, YKHO)", "def H1N_(YKHO, Tuqy):\n from time import sleep\n if Tuqy not in fZgN.keys():\n print('Invalid mode', Tuqy)\n return\n YKHO.mode = Tuqy\n YKHO.serial_if.write(fZg...
[ "0.66290957", "0.6507884", "0.6498559", "0.64300746", "0.64089644", "0.63641185", "0.6363845", "0.6341469", "0.6312813", "0.6247688", "0.6240788", "0.6234662", "0.6232803", "0.6232803", "0.61701477", "0.61544186", "0.6118027", "0.6081905", "0.6062241", "0.6056286", "0.6049552...
0.75541943
0
Get the current lefthanded configuration of the device.
def MiiA(YKHO): return YKHO._libinput.libinput_device_config_left_handed_get(YKHO._handle)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e8aW(YKHO):\n OaeV = I2Yn()\n if OaeV is not None:\n _Fei = OaeV.pad.db.config\n else:\n _Fei = YKHO.env.load_config()\n return _Fei", "def kDtM(begE):\n return QpfX.context().get_logical_device_configuration(begE)", "def tgzD():\n return OlaR", "def tgzD(YKHO):\n retur...
[ "0.7625013", "0.7316261", "0.72170025", "0.693768", "0.693768", "0.693768", "0.691146", "0.6888119", "0.6864152", "0.6858936", "0.6835772", "0.68135446", "0.68135446", "0.68135446", "0.68135446", "0.6808497", "0.68031245", "0.6735502", "0.6735502", "0.6735502", "0.6735502", ...
0.0
-1
Get the product ID for this device.
def UCum(YKHO): return YKHO._libinput.libinput_device_get_id_product(YKHO._handle)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x1Ij(YKHO):\n return YKHO.__device_info.product_id", "def Mc9N(YKHO):\n return YKHO.get_product_id()", "def Mc9N(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'product_id')", "def Trci(YKHO):\n return YKHO._product_id", "def Mc9N(YKHO) -> int:\n return getattr(YKHO, '_product_id', N...
[ "0.9250335", "0.8509104", "0.84350157", "0.83656377", "0.83318514", "0.8241682", "0.8162135", "0.8162135", "0.8162135", "0.81481475", "0.8124938", "0.80762595", "0.80256706", "0.80256706", "0.8018478", "0.79570466", "0.79214233", "0.77246284", "0.76383907", "0.76058763", "0.7...
0.81219816
11
Implements the forward pass of average merge.
def KVH6(YKHO, j9VG): jzdc = ht2j.mean(j9VG, dim=1) return jzdc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n yvT9 = YKHO.avg_pool(WKvO)\n return yvT9", "def KVH6(YKHO, WKvO):\n return WKvO.mean(dim=YKHO.dim, keepdim=True)", "def KVH6(YKHO, WKvO):\n ROpF = list(WKvO.size())\n u5Om = jth9.deepcopy(ROpF)\n T6S7 = YKHO.adjusted_std(WKvO, dim=0, keepdim=True)\n if YKHO.averagin...
[ "0.658383", "0.63418543", "0.63360935", "0.60636", "0.6004059", "0.5982755", "0.5953782", "0.5953264", "0.58588994", "0.58356065", "0.5824163", "0.5807534", "0.5805911", "0.58026016", "0.5800505", "0.57996356", "0.578545", "0.5781768", "0.5740472", "0.5737935", "0.56985104", ...
0.56981164
21
Builds a string representation of the storage node
def zAg0(YKHO): if getattr(YKHO, 'port'): return '%s:%s' % (GGmw.gethostbyname(GGmw.gethostname()), YKHO.port) else: return '%s' % GGmw.gethostbyname(GGmw.gethostname())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbMS(YKHO, Q6kx) -> AzJI[str, str]:\n return ('', '')", "def zAg0(YKHO):\n return f'Node(id = {YKHO.id}, type = {YKHO.otype}, entity = {YKHO.entity}, meta = {YKHO.meta}, properties = {YKHO.properties}, relationships = {YKHO.relationships})'", "def wHJl(YKHO):\n hlel = 'digraph queue {\\n node [sha...
[ "0.7039339", "0.70009375", "0.68312234", "0.6816646", "0.6790556", "0.6753244", "0.67034745", "0.66758204", "0.66063124", "0.654169", "0.6533962", "0.6500638", "0.64704067", "0.6459559", "0.6444113", "0.6442114", "0.64340323", "0.6408022", "0.6398174", "0.6380095", "0.6367171...
0.0
-1
Create a connection to the Accumulo datastore defined within the environment's setting.py file.
def QidY(YKHO): EVcG = jJaz.Datastore() EVcG.host = YKHO.conf.accumulo_host EVcG.port = YKHO.conf.accumulo_port EVcG.user = YKHO.conf.accumulo_user EVcG.password = YKHO.conf.accumulo_password EVcG.connect() return EVcG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HagN():\n global db\n NCls = VMBr.create_connection('indexing')", "def zqHH():\n EVcG = kVW6.datastore_db\n UzPC = ehoX.connect(host=EVcG['HOST'], database=EVcG['NAME'], user=EVcG['USER'], password=EVcG['PASSWORD'], port=EVcG['PORT'])\n return UzPC", "def HagN():\n return eHpk.connect()",...
[ "0.6859347", "0.67173904", "0.63129985", "0.62493455", "0.6214908", "0.6208541", "0.61533576", "0.61337143", "0.61024386", "0.607949", "0.60370916", "0.6030092", "0.6013128", "0.6013128", "0.6013128", "0.60122144", "0.6008334", "0.5989364", "0.59784764", "0.59764546", "0.5973...
0.82410866
0
Constructor for PhasedExperiment class. The chief signals to all workers that they should run worker computation; they do so until `end_of_input` function triggers. At this point, the workers signal to the chief that they are done with a phase. When all workers are done in a phase, the chief starts a new phase. When we...
def FIMM(YKHO, N77f, i4ai, I7Gy, gXgy, __0I, Zd0k=HwRy.maxsize, UP2L=False): YKHO._loss = N77f YKHO._worker = i4ai YKHO._num_workers = I7Gy YKHO._save_path = gXgy YKHO._end_of_input = __0I YKHO._max_num_phases = Zd0k YKHO._normalize_model = UP2L YKHO._restart_on_preemption = False YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, uEu5, EEQZ, E7Pn, hipr, QmVy, ILdH):\n super(poMo, YKHO).__init__()\n YKHO.experience_q = uEu5\n YKHO.prediction_q = EEQZ\n YKHO.observation_q = E7Pn\n YKHO.env_id = hipr\n YKHO.episode_log_q = QmVy\n YKHO.id = ILdH\n YKHO.memory = TGDu(PSrQ.GLOW)\n YKHO.exit_flag = WnaT('...
[ "0.57358587", "0.55999446", "0.5561259", "0.5530968", "0.55298316", "0.5516757", "0.54293394", "0.53870696", "0.53242123", "0.5287999", "0.5281913", "0.5270243", "0.522982", "0.5201901", "0.5190185", "0.5179494", "0.5179268", "0.51695514", "0.515672", "0.5153157", "0.5143263"...
0.6141744
0
Construct the Cifar10 class.
def FIMM(YKHO, **B2fa): x3i3.__init__(YKHO, **B2fa) YKHO.args.data_path = sVHT.download_dataset(YKHO.args.data_path) qqqI = YKHO.mode == 'train' or (YKHO.mode == 'val' and YKHO.args.train_portion < 1) YKHO.base_folder = 'cifar-10-batches-py' if qqqI: NmfV = ['data_batch_1', 'data_batch_2', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OUm4():\n Ybg9 = 10\n Ep8u = 64\n GhuM = (3072,)\n (cC56, VJv0), (sAoX, H96n) = jEJE.load_data()\n cC56 = cC56.reshape(50000, 3072)\n sAoX = sAoX.reshape(10000, 3072)\n cC56 = cC56.astype('float32')\n sAoX = sAoX.astype('float32')\n cC56 /= 255\n sAoX /= 255\n VJv0 = fKLU(VJv0,...
[ "0.7383791", "0.7383791", "0.7244099", "0.71243364", "0.6969034", "0.67625487", "0.6575287", "0.6430375", "0.6325735", "0.63034034", "0.6282968", "0.6139819", "0.61219746", "0.60904324", "0.608086", "0.5960723", "0.59506947", "0.58566445", "0.58448523", "0.5791936", "0.579083...
0.5272141
94
Get the length of the dataset.
def szAg(YKHO): return len(YKHO.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO) -> int:\n return YKHO._dataset.shape[0]", "def szAg(YKHO) -> int:\n return len(YKHO._dataset)", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset...
[ "0.8575214", "0.8387884", "0.83363813", "0.83363813", "0.83363813", "0.83363813", "0.83363813", "0.8316936", "0.830574", "0.8304074", "0.82801276", "0.82791525", "0.82593304", "0.82136303", "0.8201945", "0.8176044", "0.81746215", "0.8165823", "0.81656605", "0.8149449", "0.813...
0.0
-1
Init will instantiate an empty tree without even a root node
def FIMM(YKHO): YKHO.root = None YKHO.num_nodes = 0 YKHO.height = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n \"\"\"Takes no arguments.\n Returns an empty tree.\"\"\"\n YKHO.root = None\n YKHO.size = 0", "def FIMM(YKHO):\n YKHO.root = None\n YKHO.nil = None\n '\\n\\t\\tself.root.left = self.nil\\n\\t\\tself.root.right = self.nil\\n\\t\\tself.root.parent = self.nil\\n\\t\\t'", ...
[ "0.8309542", "0.81152725", "0.7954368", "0.78753495", "0.78720224", "0.7751042", "0.77471256", "0.76960164", "0.76960164", "0.76255", "0.757318", "0.757318", "0.7520835", "0.75202435", "0.75021446", "0.748742", "0.748742", "0.748742", "0.748742", "0.7480548", "0.7474102", "...
0.0
-1
Adds a root to the tree
def Yamk(YKHO, tk5Y): if YKHO.root is not None: raise AttributeError('Tree already has a root!') YKHO.root = tk5Y YKHO.num_nodes += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yamk(YKHO, tk5Y):\n if YKHO.roots_ids.has_key(tk5Y.id):\n raise Bx6I.DuplicateModelError(str(tk5Y))\n YKHO.roots_ids[tk5Y.id] = tk5Y\n YKHO.root_hashes[hash(tk5Y.value)] = tk5Y\n YKHO.roots.add(tk5Y)\n YKHO.xmlroot.roots.append(tk5Y.elem)", "def H2v5(tk5Y):\n LHRG = tk5Y.item.generat...
[ "0.8020987", "0.770654", "0.76505107", "0.76502615", "0.76470834", "0.75556326", "0.7554268", "0.7508061", "0.744317", "0.7424042", "0.7332619", "0.73318744", "0.73057723", "0.72869563", "0.72770154", "0.7267718", "0.71833664", "0.7096118", "0.70680946", "0.6957368", "0.69458...
0.8447789
0
Return minimum value, traverse down the left child until we hit the dead end
def ohV5(YKHO, Q6kx=None, Tuqy='val'): _9jN = YKHO.root if Q6kx is None else Q6kx while _9jN.left is not None: _9jN = _9jN.left if Tuqy == 'val': return _9jN.value elif Tuqy == 'node': return _9jN else: raise ValueError('Mode must be one of { val | node }')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d1Ro(YKHO):\n jvSB = YKHO\n while jvSB.left is not None:\n jvSB = jvSB.left\n return jvSB.val", "def min(YKHO):\n Q6kx = YKHO\n while Q6kx.left_child is not None:\n Q6kx = Q6kx.left_child\n return Q6kx", "def vELP(YKHO):\n jvSB = YKHO\n while jvSB.left is not None:\n ...
[ "0.83548695", "0.8040592", "0.7901872", "0.7833504", "0.7827763", "0.77950555", "0.77023077", "0.76896316", "0.7644514", "0.7599912", "0.7598121", "0.75862986", "0.7561521", "0.7543486", "0.7526315", "0.7417001", "0.7367567", "0.7315079", "0.72909313", "0.7265905", "0.7252708...
0.0
-1
Check if our binary tree is a valid binary search tree i.e. 1. left subtree is node & is valid bst
def WkK0(YKHO): def p67X(Q6kx): """ Recursive helper for verifying the bst :param node: :return: """ if Q6kx.is_leaf(): return True elif Q6kx.right is None: return Q6kx.left.value < Q6kx.value and p67X(Q6kx.left) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QINT(tk5Y):\n if tk5Y is None:\n return True\n return blWg.is_subtree_lesser_than(tk5Y.left, tk5Y.data) and blWg.is_subtree_greater_than(tk5Y.right, tk5Y.data) and blWg.is_valid_binary_search_tree(tk5Y.left) and blWg.is_valid_binary_search_tree(tk5Y.right)", "def QINT(Q6kx):\n return r88K(Q6k...
[ "0.8170873", "0.7943936", "0.78161", "0.78074634", "0.76690793", "0.7597436", "0.75956774", "0.75768137", "0.757313", "0.75558406", "0.7420825", "0.7396823", "0.7377495", "0.7373296", "0.73454", "0.7338723", "0.733408", "0.73243386", "0.72993755", "0.7282891", "0.7251412", ...
0.7436174
10
Returns the height of tree if node = None, else return the height of the tree from that Node
def xglF(YKHO, Q6kx=None): def SsQy(Q6kx): if Q6kx is None or Q6kx.is_leaf(): return 0 else: return 1 + max(SsQy(Q6kx.left), SsQy(Q6kx.right)) if Q6kx is None: return YKHO.height else: return SsQy(Q6kx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FAzJ(Q6kx):\n return -1 if Q6kx is None else Q6kx[-1]", "def H2v2(Q6kx):\n if Q6kx is None:\n return -1\n return Q6kx.height", "def H2v2(YKHO, Q6kx):\n if Q6kx == None:\n return 0\n else:\n return max(YKHO.height(Q6kx.left), YKHO.height(Q6kx.right)) + 1", "def H2v2(YKH...
[ "0.83644444", "0.8286667", "0.8223981", "0.820283", "0.820283", "0.8162095", "0.7778136", "0.7713437", "0.76195556", "0.7610088", "0.7560974", "0.7526857", "0.7501955", "0.75004214", "0.7494047", "0.7419606", "0.74062216", "0.7361768", "0.73450667", "0.7344946", "0.719502", ...
0.8270066
2
Returns a new Interval constraint that is the intersection of this one and another specified one.
def XMlP(YKHO, Elif: Interval) -> Kx1f: if YKHO.transform != Elif.transform: raise RuntimeError('Cant intersect Interval constraints with conflicting transforms!') IDsK = ht2j.max(YKHO.lower_bound, Elif.lower_bound) A2Fp = ht2j.min(YKHO.upper_bound, Elif.upper_bound) return Kx1f(IDsK, A2Fp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XMlP(YKHO, Elif: Interval) -> h8nf[Kx1f]:\n if YKHO.min > Elif.max or Elif.min > YKHO.max:\n return None\n return Kx1f(max(YKHO.min, Elif.min), min(YKHO.max, Elif.max))", "def DsAE(YKHO, jzdc, Fg_i):\n if YKHO.is_empty():\n return YKHO\n if (YKHO.intervals[:, 1] > jzdc).sum() == 0 o...
[ "0.73799556", "0.7361791", "0.7264678", "0.7194483", "0.68804514", "0.6733947", "0.6557821", "0.6522203", "0.6477227", "0.6448032", "0.64451987", "0.6442996", "0.6437392", "0.64000523", "0.63883615", "0.63738906", "0.63732386", "0.63583344", "0.6313079", "0.6302691", "0.63003...
0.8273908
0
Azure's Verizon Premium CDN uses the header XHost instead of XForwardedHost
def JjDV(P4t4): def NZ4l(PNq_, MP2k): if PNq_.get('HTTP_X_HOST') == RwwH: PNq_['HTTP_X_FORWARDED_HOST'] = RwwH return P4t4(PNq_, MP2k) return NZ4l
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Miaz(YKHO):\n YKHO.headers['Host'] = YKHO.host", "def CLCa(aOzm: HttpRequestInfo):\n if WIcz(aOzm.headers, 'host') == 0:\n aOzm.headers.insert(0, ['Host', aOzm.requested_host])", "def V2g2(YKHO):\n MpXb = HwRy._getframe().f_code.co_name.replace('test_', '')\n MOPg = {}\n MOPg['Host'] ...
[ "0.6304264", "0.62036943", "0.6061481", "0.5988103", "0.5893401", "0.5746384", "0.5725898", "0.57145596", "0.5699983", "0.56975925", "0.568677", "0.5680472", "0.5640581", "0.56144285", "0.56013983", "0.5543349", "0.5540184", "0.55356824", "0.55319816", "0.5526928", "0.5499348...
0.63877136
0
Sends a patch request and returns the response
def Po4F(YKHO, pmON, nPrm, *qIxc, **B2fa): B2fa['data'] = nPrm return YKHO.request('patch', pmON, {200, 202}, *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nHlB(x0hE, bD7m, MOPg, TBsA):\n return x0hE.patch(bD7m, headers=MOPg, json=TBsA)", "def Po4F(YKHO, *qIxc, **B2fa):\n B2fa['method'] = LIz1\n return YKHO.request(*qIxc, **B2fa)", "def Po4F(YKHO, QePW, id=None):\n return oGir({'message': 'PATCH REQUEST'})", "def Po4F(YKHO, wFAx, NArs):\n try...
[ "0.8222404", "0.80212986", "0.79221284", "0.7836617", "0.75246483", "0.75154114", "0.75069207", "0.75038725", "0.7477897", "0.7461019", "0.7457104", "0.7456872", "0.7449193", "0.74410474", "0.74410474", "0.7430208", "0.7429939", "0.74155706", "0.74038005", "0.73987657", "0.73...
0.6965686
76
Sends a delete request to the API
def PTpj(YKHO, pmON, *qIxc, **B2fa): return YKHO.request('delete', pmON, {202, 204}, *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, *qIxc, **B2fa):\n B2fa['method'] = wlcv\n return YKHO.request(*qIxc, **B2fa)", "def PTpj(YKHO):\n rTf7 = {}\n h9qm.get_session().execute(YKHO.uri, 'DELETE', rTf7)", "def RoLj(YKHO, *qIxc, **B2fa) -> oGir:\n return YKHO._send_request(YKHO._requests_lib.delete, *qIxc, **B2fa)", "d...
[ "0.839501", "0.8324366", "0.8316431", "0.82939136", "0.8274662", "0.8270232", "0.8134533", "0.79509896", "0.7945167", "0.79380584", "0.79343563", "0.7891104", "0.7891104", "0.7863959", "0.78604394", "0.7824242", "0.78136766", "0.7783158", "0.77401906", "0.77160007", "0.771140...
0.7458099
44
Request error exception for JSON requests Raised when the frontend api responds with a non desirable status code
def FIMM(YKHO, geh0): try: _hkX = geh0.json() except ValueError: lo9Y = 'The API endpoint responded with an error' else: lo9Y = _hkX.get('reason', 'The API endpoint responded with an error') tO9_ = '{} ({})'.format(lo9Y, geh0.status_code) Exception.__init__(YKHO, tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LHCm(aTqo):\n E4N8('%s: %s' % (aTqo.message, aTqo.source))\n _hkX = pz3A({'error': aTqo.message})\n _hkX.status_code = aTqo.status_code\n return _hkX", "def Eqt_(tTpl):\n return eqVi(False, str(tTpl), Aspx)", "def Eqt_(tTpl):\n return eqVi(False, str(tTpl), Aspx)", "def Eqt_(tTpl):\n ...
[ "0.78732085", "0.7818633", "0.7818633", "0.7818633", "0.7818633", "0.7818633", "0.7818633", "0.7818188", "0.7786142", "0.77436554", "0.7736691", "0.7725648", "0.7670327", "0.7670327", "0.7654487", "0.75799286", "0.754939", "0.7526959", "0.7447088", "0.7440578", "0.7411603", ...
0.0
-1
Makes 2D gaussian Kernel for convolution.
def VU7a(zNig: int, JBMS: float, M1Jx: float): Csk6 = ZylS.distributions.Normal(JBMS, M1Jx) T6S7 = Csk6.prob(ZylS.range(start=-zNig, limit=zNig + 1, dtype=ZylS.float32)) h3z1 = ZylS.einsum('i,j->ij', T6S7, T6S7) return h3z1 / ZylS.reduce_sum(h3z1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jhht(yzQ0, KCHu):\n Oa1e = A0pO(yzQ0, KCHu)\n Oa1e = Oa1e.unsqueeze(1)\n Vhfa = Oa1e.mm(Oa1e.t())\n return Vhfa", "def tSoR(yGTL, PFC2, gGnb):\n E0Gw = oyIN.random.multivariate_normal(yGTL, PFC2, gGnb)\n return E0Gw", "def MLdf(VXjJ, WZcn):\n YDR7, bGrB, YSA3, RZju = WZcn.shape\n VX...
[ "0.7607694", "0.75516045", "0.7401765", "0.7330584", "0.73272324", "0.7237587", "0.72355264", "0.7222683", "0.7136077", "0.7135482", "0.7129482", "0.7105648", "0.7085736", "0.7053838", "0.705329", "0.70324564", "0.700417", "0.69914746", "0.6959988", "0.694094", "0.693514", ...
0.0
-1
Gets an item for a key, even if key is unhashable.
def OP2O(YKHO, H5ew): if not isinstance(H5ew, eA6S): if id(H5ew) not in YKHO._unhashablekeys: YKHO._unhashablekeys[id(H5ew)] = H5ew return super().__getitem__(id(H5ew)) else: return super().__getitem__(H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _oqe(YKHO, H5ew):\n return dict.__getitem__(YKHO, H5ew)", "def NMoC(YKHO, H5ew):\n WE7e = YKHO._bucket(H5ew)\n for q24Q, mT6A in WE7e:\n if H5ew == q24Q:\n return mT6A\n return None", "def _oqe(YKHO, H5ew):\n for G1Hx, Ty9i in YKHO._map:\n if H5ew == G1Hx:\n ...
[ "0.76498836", "0.7634585", "0.75745565", "0.7559462", "0.7502958", "0.7491051", "0.74404854", "0.7429567", "0.74175924", "0.7408161", "0.7408161", "0.7408161", "0.7408161", "0.7389749", "0.7370245", "0.73456705", "0.7341712", "0.7328848", "0.7313541", "0.7310354", "0.72982895...
0.73612106
15
Convert a metric name into the operator and metric names.
def AuOK(AcYW): seET, EpVc = oD3D(AcYW) return (seET.name, EpVc.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pxlx(ACwA):\n FS6T = suSk()\n if ACwA == 'PMI':\n e3aS = FS6T.get('PMI')\n elif ACwA == 't-score':\n e3aS = FS6T.get('t-score')\n elif ACwA == 'logdice':\n e3aS = FS6T.get('logdice')\n else:\n e3aS = 'frequency'\n return e3aS", "def kzni(c_26):\n return {'aver...
[ "0.6386267", "0.6320199", "0.6057024", "0.60242283", "0.6014446", "0.6014446", "0.6014446", "0.5957683", "0.5934615", "0.5907103", "0.5880352", "0.58784777", "0.5793057", "0.5791617", "0.5752834", "0.57304686", "0.5729777", "0.57295144", "0.5704768", "0.5701788", "0.5667602",...
0.6920757
0
True if type ``t`` is iterable
def Gpad(a1PO): return hasattr(a1PO, '__iter__') and hasattr(a1PO, 'next')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfZ5(SkDf) -> bool:\n return getattr(SkDf, '__origin__', None) is not None and issubclass(SkDf.__origin__, iu5r)", "def GfZ5(OxJJ):\n try:\n iter(OxJJ)\n return True\n except TypeError:\n return False", "def s_0d(WKvO):\n return isinstance(WKvO, iu5r)", "def OxJJ(WKvO):\n...
[ "0.79389083", "0.77959466", "0.77364117", "0.768062", "0.768062", "0.7644884", "0.7631867", "0.7611381", "0.7544268", "0.75301284", "0.75245994", "0.7518821", "0.75099856", "0.7503043", "0.74994695", "0.7487251", "0.74772817", "0.7472399", "0.7466388", "0.7466388", "0.7432013...
0.7664967
5
``rethrow`` all exceptions that occur during initialization of ``ptype``
def dsE5(Lbt7, **azoT): if not i5Tj(Lbt7): raise P1dF.UserError(Lbt7, 'debug', message='%r is not a ptype' % Lbt7) import time, traceback def x3nm(vIwR, *qIxc): return (time.time(), traceback.extract_stack(), vIwR.format(*qIxc)) if any((hasattr(exwG) for exwG in ('_debug_', '_dump_'))):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GFl4(YKHO):\n with YKHO.assertRaises(TypeError):\n iquo = _sei.Protocol(inital_dose='a')\n with YKHO.assertRaises(TypeError):\n iquo = _sei.Protocol(time_span='b')", "def D63P(YKHO):\n O5OR = 42\n try:\n vyWj(YKHO.mgr, YKHO.uri, None, O5OR)\n except TypeError:\n pas...
[ "0.6651484", "0.6469737", "0.64530694", "0.64521337", "0.63973105", "0.62599957", "0.6246402", "0.62315696", "0.62245256", "0.62245256", "0.61816657", "0.61615914", "0.61425555", "0.6127418", "0.6127418", "0.60825425", "0.6048929", "0.6024884", "0.60057515", "0.5999073", "0.5...
0.0
-1
Return the loaded name of the instance
def mWFP(YKHO): mWFP = YKHO.shortname() if PSrQ.display.show_parent_name and YKHO.parent is not None: return '%s.%s' % (YKHO.parent.name(), mWFP) return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FVIY(YKHO) -> str:\n return YKHO._parameters['loadName']", "def zeTD(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_name')", "def zeTD(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_name')", "def zeTD(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_name')", "def zeTD(YKHO) -> qe4Y.Output[...
[ "0.7838867", "0.72408605", "0.72408605", "0.72408605", "0.7145491", "0.6957897", "0.6939629", "0.69352067", "0.69352067", "0.69339347", "0.6929773", "0.6886814", "0.68797094", "0.68797094", "0.68797094", "0.68797094", "0.68797094", "0.6874838", "0.68629974", "0.6859461", "0.6...
0.0
-1
Returns 0 if ``other`` represents the same data as ``self`` To compare the actual contents, see .compare(other)
def Aicm(YKHO, Elif): if YKHO.initializedQ() != Elif.initializedQ(): return -1 if YKHO.initializedQ(): return 0 if (YKHO.getposition(), YKHO.serialize()) == (Elif.getposition(), Elif.serialize()) else -1 return 0 if (YKHO.getposition(), YKHO.blocksize()) == (Elif.getposition(), Elif.blocksiz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if len(YKHO.elems) != len(Elif.elems):\n return 0\n else:\n return len(YKHO - Elif) == 0", "def Aicm(YKHO, Elif):\n if not YKHO.check_size(Elif):\n raise ValueError('The matrix are not of equal size')\n if Pusg(lambda kYGz, ftz7: kYGz and ftz7, map(seET.eq...
[ "0.75953645", "0.74922377", "0.746459", "0.740981", "0.7408583", "0.7314252", "0.7284926", "0.7223638", "0.7209482", "0.719745", "0.7173096", "0.7153461", "0.7126339", "0.7107979", "0.70800906", "0.70798236", "0.70430046", "0.7039549", "0.7015333", "0.6998982", "0.6989853", ...
0.7179466
10
Returns the expected size of the type By default this returns self.length, but can be overloaded to define the size of the type. This must return an integral type.
def cgAf(YKHO): return int(YKHO.length)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n if YKHO.name in OSz_:\n return OSz_[YKHO.name][0]\n else:\n return SnBA[YKHO.name][0]", "def zNig(YKHO):\n return int", "def zNig(YKHO):\n if YKHO.initializedQ() or YKHO.value is not None:\n return len(YKHO.value)\n PSrQ.log.info('type.size : %s : Unable to...
[ "0.80727637", "0.7643606", "0.75344723", "0.75285476", "0.748754", "0.74844664", "0.7383723", "0.73769826", "0.73674643", "0.73569", "0.7346081", "0.73323935", "0.73323935", "0.73303735", "0.7328588", "0.73125035", "0.7311367", "0.72997236", "0.729309", "0.7281821", "0.727244...
0.0
-1
Return contents of all subelements concatenated as a string
def Napc(YKHO): lHmx = YKHO.blocksize() Aofo = '' for WKvO in YKHO.value: Aofo += WKvO.serialize() if len(Aofo) > lHmx: break continue if len(Aofo) < lHmx: dvgN = BfDw.padding.fill(lHmx - len(Aofo), YKHO.padding) return Aofo + dvgN if len(Aofo) > l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return ', '.join([str(geyT) for geyT in YKHO.elements])", "def RbNx(YKHO, LihS):\n if isinstance(LihS, OhYN):\n l5Ny = []\n for a0E5 in LihS:\n l5Ny.append(YKHO._text_of(a0E5))\n return ' '.join(l5Ny)\n else:\n return LihS.string", "def SnfU(YKH...
[ "0.7070901", "0.6863251", "0.67402554", "0.6693783", "0.66935164", "0.66870564", "0.6608827", "0.65987384", "0.6580826", "0.6530685", "0.6502722", "0.65026027", "0.64916277", "0.64599204", "0.6446495", "0.64410806", "0.6436185", "0.6417839", "0.64095676", "0.64006245", "0.634...
0.0
-1
Performs a deepcopy of self repopulating the new instance if self is initialized If a recurse=False is passed, a shallowcopy will be performed and an uninitialized object will be returned.
def jth9(YKHO, **c_sp): Aofo = YKHO.new(YKHO.__class__, __name__=YKHO.classname(), offset=YKHO.getoffset()) c_sp.setdefault('value', YKHO.value) Aofo.update_attributes(c_sp) if YKHO.initializedQ(): return Aofo.load(offset=0, source=kT1P.string(YKHO.serialize())) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO, y4ha=True):\n return YKHO.copy(deep=y4ha)", "def jth9(YKHO, y4ha=True):\n if y4ha:\n return _qLf(YKHO)\n return jth9(YKHO)", "def jth9(YKHO, y4ha=True):\n if y4ha:\n return _qLf(YKHO)\n return jth9(YKHO)", "def jth9(YKHO, y4ha=True):\n from jth9 import jth9, dee...
[ "0.71739334", "0.69931465", "0.69931465", "0.6967287", "0.6946311", "0.69000626", "0.6876003", "0.6797341", "0.67831254", "0.67669183", "0.6641037", "0.6639266", "0.66077775", "0.6529012", "0.6529012", "0.6529012", "0.6529012", "0.65099657", "0.64927906", "0.64815575", "0.647...
0.0
-1
Lookup a ptype by a particular value. Returns cls.unknown with the provided ``unknownattrs`` if ``type`` is not found.
def NMoC(Emd4, type, **U53u): try: return Emd4.cache[type] except KeyError: pass return i3ak(Emd4.unknown, type=type, **U53u)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IMwT(YKHO, l87X):\n if l87X == None:\n return eBH2(code=eBH2.UNDEFINED)\n for Hghu in eBH2.TYPES:\n if l87X.upper() in Hghu.name.upper():\n return Hghu\n return None", "def JcFK(ETK8, EhYO):\n mWFP = ETK8.get_type_name_by_id(EhYO)\n if mWFP:\n Yrvv = ETK8.get_ty...
[ "0.5509012", "0.5212146", "0.5210728", "0.51598066", "0.5147955", "0.5127055", "0.51083815", "0.5082085", "0.50692785", "0.50518227", "0.5012022", "0.49937177", "0.4978608", "0.496854", "0.49646696", "0.49539167", "0.4947516", "0.4935913", "0.49226347", "0.49074477", "0.49002...
0.55035734
1
read coronavirus_data.csv and load the data into a numpy array.
def ZAQi(): xbrj = [] nUeQ = open('coronavirus_data.csv', 'r', encoding='utf8') Nqlg = nUeQ.readlines() nUeQ.close() for zFiD in Nqlg[1:]: nPrm = zFiD.split(',') xbrj.append(nPrm) UgKn = oyIN.array(xbrj) return UgKn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZAQi(qaEx: str) -> oyIN.ndarray:\n jzdc = []\n with open(qaEx, 'r') as Hnzf:\n ixsc = m6_J.reader(Hnzf)\n next(ixsc)\n for rdlD in ixsc:\n jzdc.append(float(rdlD[1]))\n return oyIN.asarray(jzdc, dtype=oyIN.float32).reshape(-1)", "def gNnK(Ux0P):\n jQ3Z = rLdf.read_...
[ "0.7129289", "0.6939591", "0.6883092", "0.6836478", "0.6824519", "0.6718109", "0.6533239", "0.65267247", "0.65251684", "0.6522167", "0.6518", "0.65066093", "0.6483043", "0.6482243", "0.64783", "0.644137", "0.6416605", "0.6406096", "0.6378692", "0.6371273", "0.6306522", "0.6...
0.82979953
0
read data from covid_array and return a 2D numpy array where each line contains a region, number of cases, number of deaths and population for that region.
def r2BE(): UgKn = ZAQi() dwJt = [] for rdlD in UgKn: if rdlD[3] not in dwJt: dwJt.append(rdlD[3]) HAzI = oyIN.empty((6, 4), dtype=oyIN.dtype('U20')) for d6pt, rdlD in enumerate(HAzI): rdlD[0] = dwJt[d6pt] P4Dq = 0 QuIL = 0 CHNM = 0 for zn0c in dwJt: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZAQi():\n xbrj = []\n nUeQ = open('coronavirus_data.csv', 'r', encoding='utf8')\n Nqlg = nUeQ.readlines()\n nUeQ.close()\n for zFiD in Nqlg[1:]:\n nPrm = zFiD.split(',')\n xbrj.append(nPrm)\n UgKn = oyIN.array(xbrj)\n return UgKn", "def JaGS(TBEy=None):\n UgKn = ZAQi()\n...
[ "0.6899621", "0.6253166", "0.6041196", "0.5847871", "0.5825207", "0.5608454", "0.5490959", "0.54608387", "0.54582274", "0.54274225", "0.54194987", "0.5346722", "0.53123325", "0.5307637", "0.5295471", "0.5287362", "0.52768856", "0.52738917", "0.5270335", "0.5257699", "0.525433...
0.8377111
0
Single Measurement Distance Hypothesis type test
def eyeA(): W3ev = Q5GS(o3Uj, xfCv, Ayfi, USLq) assert W3ev.prediction is o3Uj assert W3ev.measurement is xfCv assert W3ev.distance is Ayfi assert W3ev.measurement_prediction is USLq assert W3ev.weight == 1 / Ayfi W3ev.distance = 0 assert W3ev.weight == float('inf')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L6MJ():\n zhMh = Q5GS(o3Uj, xfCv, Ayfi, USLq)\n WL4f = Q5GS(o3Uj, xfCv, Ayfi + 1, USLq)\n assert zhMh > WL4f\n assert WL4f < zhMh\n assert zhMh <= zhMh\n assert zhMh >= zhMh\n assert zhMh == zhMh", "def YHV5(YKHO):\n assert _ElV([0, 0], [1, 1], type='euclidean') == 1.4142135623730951\...
[ "0.6962491", "0.64628255", "0.642956", "0.63281715", "0.62306607", "0.6207957", "0.6204331", "0.6196927", "0.6156332", "0.6155552", "0.61537606", "0.61382085", "0.61287266", "0.6115081", "0.6093337", "0.6082612", "0.60335", "0.6029462", "0.60253525", "0.6023429", "0.60218", ...
0.77827954
0
Single Measurement Distance Hypothesis comparison test
def L6MJ(): zhMh = Q5GS(o3Uj, xfCv, Ayfi, USLq) WL4f = Q5GS(o3Uj, xfCv, Ayfi + 1, USLq) assert zhMh > WL4f assert WL4f < zhMh assert zhMh <= zhMh assert zhMh >= zhMh assert zhMh == zhMh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eyeA():\n W3ev = Q5GS(o3Uj, xfCv, Ayfi, USLq)\n assert W3ev.prediction is o3Uj\n assert W3ev.measurement is xfCv\n assert W3ev.distance is Ayfi\n assert W3ev.measurement_prediction is USLq\n assert W3ev.weight == 1 / Ayfi\n W3ev.distance = 0\n assert W3ev.weight == float('inf')", "def...
[ "0.7849737", "0.71103", "0.7080943", "0.7016935", "0.69734687", "0.68908995", "0.68081367", "0.6784541", "0.67843944", "0.67456317", "0.6657004", "0.66550857", "0.6634775", "0.66077524", "0.6562721", "0.65331656", "0.650974", "0.650534", "0.65014094", "0.64407897", "0.6418944...
0.77697563
1
3x3 convolution with padding
def Myly(UUZO, sYyA, _0fC=1): return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())", "def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)", "def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,...
[ "0.78404945", "0.7541354", "0.753996", "0.7491138", "0.7434801", "0.74207747", "0.73415834", "0.7320252", "0.7299599", "0.7287539", "0.72799367", "0.72799367", "0.7257735", "0.7226928", "0.72204214", "0.7214909", "0.7214909", "0.7210775", "0.7198222", "0.71639067", "0.7161914...
0.70801866
87
save pandas dataframe to a new postgres table with a primary key
def GZH6(eHpk, jQ3Z, tyNF): try: SWox = ITS7.time() jQ3Z.to_sql(tyNF, con=eHpk, if_exists='replace', chunksize=20000, method='multi') print(f'to_sql took {ITS7.time() - SWox} seconds') print(f'{tyNF} created and filled') except: print("DataFrame format doesn't match datab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VB5N(jQ3Z, GTA_, uPxI, eHpk):\n print('Writing dataframe to PostgreSQL')\n jQ3Z.to_sql(name=GTA_, con=eHpk, schema=uPxI, if_exists='replace')\n print('End Writing')", "def JsM2(jQ3Z, tyNF):\n SqIz = [tuple(WKvO) for WKvO in jQ3Z.to_numpy()]\n WfCS = ','.join(list(jQ3Z.columns))\n xDcj = 'IN...
[ "0.7724105", "0.7516772", "0.74443454", "0.74443454", "0.74096674", "0.73163867", "0.72928214", "0.72014666", "0.7095535", "0.70696974", "0.70350957", "0.7028905", "0.7028066", "0.69632393", "0.6926553", "0.6926223", "0.69081163", "0.69028664", "0.6882081", "0.68624735", "0.6...
0.7201209
8