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 |
|---|---|---|---|---|---|---|
Calculates the closest centroid of all points in X and assigns each point to the closest centroid | def Te1x(YKHO):
YyoZ = Ayfi(YKHO.X, YKHO.centroids)
YKHO.labels = YyoZ.argmin(axis=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6ux(fUYa):\n wjRY = sum(fUYa)\n e6ux = wjRY / len(fUYa)\n return e6ux",
"def e6ux(EcVT):\n Nq1b = EcVT.mean(axis=0)\n return Nq1b",
"def JeLQ(YKHO, yHxN):\n for bySB in range(YKHO.X.shape[0]):\n yWWA = YKHO.EuclideanDistance(yHxN, YKHO.X[bySB][:YKHO.X.shape[1] - 3])\n d6pt ... | [
"0.76592916",
"0.760692",
"0.7605902",
"0.759926",
"0.75085807",
"0.74145156",
"0.74022436",
"0.7348518",
"0.7337027",
"0.7327981",
"0.7313258",
"0.72907543",
"0.7270983",
"0.72275525",
"0.7223615",
"0.71857905",
"0.71646476",
"0.71492857",
"0.71155185",
"0.7091405",
"0.70709... | 0.0 | -1 |
Calculates coordinates of centroids based on the coordinates of all the points assigned to the centroid | def YCDA(YKHO):
kcwm = oyIN.unique(YKHO.labels)
RUg8 = oyIN.zeros((YKHO.centroids.shape[0], YKHO.centroids.shape[1]))
DkAe = dict.fromkeys(kcwm)
YKHO.points_in_every_centroid = dict.fromkeys(kcwm)
for H5ew in DkAe:
DkAe[H5ew] = []
YKHO.points_in_every_centroid[H5ew] = []
for YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yHxN(YKHO):\n YKHO.message('Generating centroids')\n return oyIN.divide(oyIN.sum(YKHO.element_coordinates(), axis=1), 3.0)",
"def e6ux(fUYa):\n wjRY = sum(fUYa)\n e6ux = wjRY / len(fUYa)\n return e6ux",
"def e6ux(nPrm, WKvO, LVAh):\n g0Hx = oyIN.dot(WKvO, oyIN.sum(nPrm, axis=1))\n dlau... | [
"0.84280926",
"0.83016294",
"0.80772704",
"0.80108565",
"0.79465693",
"0.794341",
"0.7923467",
"0.7920257",
"0.7894222",
"0.78477293",
"0.78440416",
"0.78423965",
"0.7821989",
"0.7810302",
"0.77974945",
"0.77914095",
"0.77889776",
"0.7773901",
"0.7735377",
"0.7732957",
"0.770... | 0.7241447 | 62 |
Compare two projections to see if they are the same, using pyproj.CRS.is_exact_same. | def Fe7c(U1HT, sGuc):
assert all([isinstance(U1HT, (PkKV.CRS, XEzR)), isinstance(sGuc, (PkKV.CRS, XEzR))]), 'proj1 and proj2 must be rasterio.crs.CRS objects.'
U1HT = PkKV.CRS(U1HT.to_string())
sGuc = PkKV.CRS(sGuc.to_string())
return U1HT.is_exact_same(sGuc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TfWa(djpg, zSkZ):\n assert '+lat_1' in djpg, 'Fail'\n assert '+lat_1' in zSkZ, 'Fail'\n yk4i = set(ucxv.split()) - set(zSkZ.split())\n if not yk4i:\n return True\n else:\n return False",
"def EgFV(djpg, zSkZ) -> bool:\n if t0Qm(djpg) or t0Qm(zSkZ):\n return False\n r... | [
"0.77054757",
"0.75600904",
"0.7472999",
"0.7318512",
"0.7294712",
"0.71442324",
"0.70661485",
"0.706377",
"0.6952373",
"0.69299734",
"0.6867076",
"0.6867076",
"0.68189967",
"0.6795522",
"0.6724304",
"0.6690724",
"0.66797096",
"0.6610081",
"0.6594012",
"0.6575888",
"0.6553426... | 0.8418436 | 0 |
Normalize the container name according to the compose version. DockerCompose introduced support for dash and underscore in version 1.21.0. | def W0vu(YKHO, joZ9):
D8YH = fupw(YKHO.docker_compose + ['version'])
moMn = ZbWC.search('[0-9].[0-9]*.[0-9]*', D8YH.output)
xv1c = moMn.group(0)
if xv1c < i41d:
return ZbWC.sub('[^a-z0-9]', '', joZ9)
else:
return joZ9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fvDv(mWFP):\n mWFP = ZbWC.sub('^[^a-zA-Z0-9]+', '', mWFP)\n return ZbWC.sub('[^a-zA-Z0-9_.-]', '', mWFP)",
"def fvDv(v7hv):\n brhG = ''\n ARS9 = None\n for bseI in v7hv:\n if not ZbWC.search('[-a-zA-Z\\\\d]', bseI):\n if not ARS9 == '-':\n brhG += '-'\n ... | [
"0.7263043",
"0.6784136",
"0.6709471",
"0.65940744",
"0.6374747",
"0.62288976",
"0.62255895",
"0.6205336",
"0.61574346",
"0.6133769",
"0.60692227",
"0.6040297",
"0.5994028",
"0.5985624",
"0.5980662",
"0.59604204",
"0.594056",
"0.5932941",
"0.591686",
"0.5887681",
"0.58860433"... | 0.7517008 | 0 |
Stop currently running containers. | def OlKY(YKHO):
oUZx = YKHO.docker_compose + ['--file', 'docker-compose.full.yml', 'stop']
return fupw(oUZx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jHyt(mWFP='3bot'):\n pQ1M()\n if mWFP in tTpl.DF.containers_running():\n O2Ii = QmNI(name=mWFP)\n O2Ii.stop()",
"def XotR(YKHO):\n try:\n if YKHO.container is None:\n YKHO.container = YKHO.docker_client.containers.get(YKHO.container_name)\n YKHO.container.stop(... | [
"0.76958555",
"0.7573362",
"0.7559479",
"0.74621916",
"0.7453461",
"0.7398011",
"0.73697835",
"0.7335968",
"0.733218",
"0.72170967",
"0.72037953",
"0.71951014",
"0.7184309",
"0.7172318",
"0.71684307",
"0.7149872",
"0.7145202",
"0.7096468",
"0.70689666",
"0.70689666",
"0.70666... | 0.8033196 | 0 |
Takes in the predictions and label returns the training loss | def N77f(YKHO, aTLP, UXqs):
YKHO.label = UXqs.reshape(YKHO.output_size, 1)
YKHO.ce = -oyIN.sum(oyIN.matmul(YKHO.label.T, oyIN.log(aTLP)))
return YKHO.ce | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FZeT(nvEb, UXqs):\n return (nvEb - UXqs).abs().mean()",
"def pYqK(rblr, rDFg, Uvgg, epGn):\n Zeq8 = rblr * (rDFg * (Uvgg - 1) + rDFg - 1) + (1 - rblr) * ((1 - rDFg) * (epGn - 1) - rDFg)\n return Zeq8.sum()",
"def N77f(N6Z1, Crrw):\n with ZylS.variable_scope('loss'):\n return ZylS.losses.... | [
"0.79347456",
"0.77856994",
"0.75196934",
"0.746314",
"0.744312",
"0.73297596",
"0.732679",
"0.7304996",
"0.72579956",
"0.7238837",
"0.7238837",
"0.7238837",
"0.7230648",
"0.7230648",
"0.7230648",
"0.72285795",
"0.7184173",
"0.71584976",
"0.71584976",
"0.7153609",
"0.71466583... | 0.7142815 | 21 |
Removes double or single quotations. | def g7S4(KCHu):
KCHu = KCHu.strip()
if KCHu.startswith("'") and KCHu.endswith("'"):
return KCHu[1:-1]
if KCHu.startswith('"') and KCHu.endswith('"'):
return KCHu[1:-1]
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qXbb(l5Ny):\n l5Ny = ZbWC.sub('\\\\\\\\', '', l5Ny)\n l5Ny = ZbWC.sub(\"\\\\'\", '', l5Ny)\n l5Ny = ZbWC.sub('\\\\\"', '', l5Ny)\n return l5Ny",
"def EMQV(YKHO, KCHu):\n G7db = \"'\"\n W4uF = '\"'\n if KCHu.startswith(G7db) and KCHu.endswith(G7db):\n KCHu = KCHu.strip(G7db)\n e... | [
"0.7712887",
"0.7583183",
"0.75644684",
"0.7532999",
"0.7520384",
"0.7419112",
"0.7402807",
"0.7344854",
"0.7329843",
"0.72456396",
"0.7182251",
"0.71679425",
"0.7149605",
"0.71477926",
"0.7095452",
"0.70914704",
"0.7082841",
"0.7081563",
"0.70492554",
"0.7038585",
"0.7018193... | 0.6563703 | 65 |
Method to convert the given ticker data into windows. This method deals with individual ticker data and converts them to windows that can be later concatenated with other ticker data. This is modified to return a sequence that is moved forward by forecast. | def kqDg(YKHO, nPrm, Fo6g):
YKHO.yInd = Fo6g
oxOY = ZylS.data.Dataset.from_tensor_slices(nPrm)
oxOY = oxOY.window(YKHO.lookBack + YKHO.forecast, shift=YKHO.forecast, drop_remainder=True)
oxOY = oxOY.flat_map(lambda yzQ0: yzQ0.batch(YKHO.lookBack + YKHO.forecast))
oxOY = oxOY.map(lambda yzQ0: (yzQ0[:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQwT(nPrm, p5dt):\n jWe2 = list()\n for YRbF in range(p5dt, len(nPrm)):\n aWuw = nPrm[YRbF - p5dt:YRbF + 1]\n jWe2.append(aWuw)\n return jWe2",
"def rMdi(YKHO, nPrm):\n return",
"def KE8P():\n L3F1 = 0\n __n6 = ZKpD(VQbr)\n dCqV: ZylS.data.Dataset = __n6.window(size=yMhW ... | [
"0.63620806",
"0.61677206",
"0.60240114",
"0.60151535",
"0.60104865",
"0.5962979",
"0.5959235",
"0.5911846",
"0.5895613",
"0.58896637",
"0.58825094",
"0.5850424",
"0.5847879",
"0.58327246",
"0.58213466",
"0.5814884",
"0.5806322",
"0.57632095",
"0.5728306",
"0.5714076",
"0.570... | 0.6845206 | 0 |
This generates the C code for GpuCorrMM (direction="forward"), GpuCorrMM_gradWeights (direction="backprop weights"), and GpuCorrMM_gradInputs (direction="backprop inputs"). Depending on the direction, one of bottom, weights, top will receive the output, while the other two serve as inputs. | def Jjht(YKHO, es2x, _mSQ, tlxW, XSoh, finE, H2v2=None, TVTK=None):
oxQo = 0
if YKHO.binary == True:
oxQo = 1
print('callbinary = ' + str(oxQo))
DX4_, HFON = YKHO.subsample
oQbJ, F_lj = YKHO.filter_dilation
if YKHO.border_mode == 'half':
uJRQ = hL3w = -1
elif YKHO.border_mode... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bb5m(O4J9, CQ7a, nPrm, kaGj):\n jue1 = oyIN.zeros_like(O4J9)\n ya6B = oyIN.zeros_like(CQ7a)\n Iiwt = oyIN.zeros_like(nPrm)\n p4eu, SFGs, r5wi, ABtH = O4J9.shape\n bGrB, fvIL, BNrd = nPrm.shape\n bGrB, oRHo, XHuv = kaGj.shape\n for Z9rn in range(p4eu):\n for yzQ0 in range(oRHo):\n ... | [
"0.592103",
"0.5828277",
"0.56526285",
"0.56523496",
"0.5635855",
"0.56156945",
"0.5530593",
"0.54428935",
"0.54211783",
"0.53852236",
"0.5382323",
"0.53819937",
"0.5355664",
"0.53436494",
"0.53414637",
"0.5325846",
"0.53073853",
"0.5294697",
"0.5284414",
"0.5274475",
"0.5272... | 0.0 | -1 |
Returns a list of teams in the selected Conference and division | def oObn(rJco, RMQZ, rAjW):
return rJco[RMQZ][rAjW] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DtuB(rAjW):\n aBeJ = qQXR.loads(aden.get_teams_data())\n rJco = []\n if qqDt is None:\n for YRbF in range(len(aBeJ)):\n g75m = aBeJ[YRbF]\n usUl = sorted(list(g75m['divisions'].keys()))\n if rAjW in usUl:\n rJco = sorted(list(g75m['divisions'][rAj... | [
"0.7125695",
"0.7004758",
"0.69425875",
"0.6899461",
"0.6834528",
"0.67602307",
"0.67352444",
"0.6710834",
"0.6675645",
"0.6675183",
"0.65542185",
"0.6518546",
"0.65037566",
"0.6446652",
"0.64379627",
"0.64237905",
"0.63906306",
"0.6351244",
"0.6323226",
"0.63031566",
"0.6212... | 0.7775535 | 0 |
Returns the conference and division for a selected team | def XUIU(rJco, dZPi):
for RMQZ in rJco.keys():
for rAjW in rJco[RMQZ].keys():
if dZPi in rJco[RMQZ][rAjW]:
return (RMQZ, rAjW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oObn(rJco, RMQZ, rAjW):\n return rJco[RMQZ][rAjW]",
"def Fv2L(WKvO):\n dZPi = Ci0y.info(WKvO)\n return dZPi['conference']",
"def T70r(QePW):\n if QePW.user.is_superuser:\n RMQZ = KeS0.objects.get(secretariat=_95F.objects.get(user=QePW.user))\n else:\n if QePW.user.is_staff:\n ... | [
"0.724668",
"0.6682829",
"0.64061457",
"0.6260002",
"0.62454516",
"0.6116731",
"0.6073391",
"0.6054799",
"0.6037998",
"0.5987405",
"0.59251946",
"0.5902276",
"0.59013945",
"0.5864295",
"0.5837148",
"0.57883394",
"0.573884",
"0.5730769",
"0.5697869",
"0.56839746",
"0.56683606"... | 0.7834009 | 0 |
select idx loc of desired date from dataframe | def xMWW(vDfq, _c1T, Ftz0, mhnj):
al4h = vDfq.loc[_c1T]
MCwu = al4h.iloc[int(Ftz0):int(mhnj)]
KCHu = MCwu['steps']
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lxld(YKHO, jQ3Z, _c1T):\n WXkz = jQ3Z['time'].values\n for YRbF in range(jQ3Z.shape[0]):\n if WXkz[YRbF] < _c1T:\n return YRbF\n raise ValueError",
"def LYUJ(YKHO, jQ3Z: pd.DataFrame, t01y: int) -> oyIN.datetime64:\n return jQ3Z['date'].unique()[t01y]",
"def g016(jQ3Z):\n j... | [
"0.7029316",
"0.68057233",
"0.6402386",
"0.63924724",
"0.628834",
"0.62271905",
"0.6118709",
"0.6116275",
"0.60934484",
"0.60650575",
"0.6028927",
"0.5984836",
"0.59760505",
"0.5974437",
"0.59000367",
"0.5899503",
"0.58887404",
"0.5883262",
"0.5863546",
"0.5844696",
"0.583174... | 0.73953325 | 0 |
Supprime les accents sans changer la casse (majuscules et minuscules) | def jARE(Npgh):
Mkmy = u''
for _6NH in Npgh:
if _6NH == u'\xa0':
Mkmy += _6NH
else:
IZfO = zVCt.normalize('NFKD', _6NH)
Mkmy += IZfO[0]
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xFip(YKHO):\n YKHO.user_input = XKrx(YKHO.user_input)",
"def c4Ry(YKHO, yAmx):\n return ''.join([Npgh for Npgh in zVCt.normalize('NFD', yAmx) if zVCt.category(Npgh) != 'Mn'])",
"def BzkO(l5Ny):\n return set([WKvO.lower() for WKvO in l5Ny if not WKvO.isascii()])",
"def FE7l(YKHO, MARp):\n tqRQ... | [
"0.7021115",
"0.6917913",
"0.6761847",
"0.67411447",
"0.6693515",
"0.66549695",
"0.6543919",
"0.6532548",
"0.6488516",
"0.64627063",
"0.6455668",
"0.6421587",
"0.6421587",
"0.6378111",
"0.63002956",
"0.6290262",
"0.6229538",
"0.6219512",
"0.6210963",
"0.620277",
"0.6191945",
... | 0.59696245 | 34 |
Returns an hashable representation of this search state. Returns | def bGIA(YKHO):
return tuple([exwG for rdlD in YKHO.board for exwG in rdlD]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x6Ri(YKHO):\n QTBn = {'name': YKHO.name}\n return super(wHLO, YKHO).to_hash(YKHO, QTBn)",
"def rjHV(YKHO):\n return hash(YKHO.state.tostring())",
"def _s1Z(YKHO):\n return hash(str(YKHO.state))",
"def he_d(YKHO):\n KCHu = ''\n Cs6h = YKHO.get_state_grid()\n for YRbF in range(YKHO.N):... | [
"0.804706",
"0.77544373",
"0.7661177",
"0.7282148",
"0.71620333",
"0.70651156",
"0.70174664",
"0.69069004",
"0.68875515",
"0.68405783",
"0.67761153",
"0.675259",
"0.6740877",
"0.67219",
"0.6705905",
"0.6700282",
"0.66735375",
"0.66735375",
"0.66576576",
"0.66576576",
"0.66576... | 0.0 | -1 |
Returns the string representation of this node. Returns | def zAg0(YKHO):
y1e_ = []
for rdlD in YKHO.board:
for YRbF in rdlD:
y1e_.append(' ')
if YRbF == 0:
y1e_.append(' ')
else:
if YRbF < 10:
y1e_.append(' ')
y1e_.append(str(YRbF))
y1e_.append('\n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.node_info)",
"def vIwR(YKHO):\n l5Ny = 'node ' + SLdk.string(YKHO.identifier, default='unknown') + '\\n'\n for xC3W in dir(YKHO):\n if xC3W.startswith('_'):\n continue\n BWXx = getattr(YKHO, xC3W)\n if callable(BWXx):\n continu... | [
"0.8605839",
"0.83781475",
"0.81653196",
"0.8133975",
"0.8127909",
"0.8038976",
"0.8038783",
"0.80367666",
"0.803443",
"0.8024536",
"0.80183035",
"0.79958534",
"0.7989448",
"0.79858035",
"0.79526746",
"0.79526746",
"0.79526746",
"0.79526746",
"0.79526746",
"0.79526746",
"0.79... | 0.0 | -1 |
Decides whether all the queens are placed on the board. Returns | def HjJj(YKHO):
T85u = YKHO.queen_positions
Uepr = YKHO.n
WKvO = 0
LVAh = 0
for YRbF in T85u:
WKvO = YRbF[0]
LVAh = YRbF[1]
CXtz = 0
for Asq9 in T85u:
jzdc = Asq9[0]
Fg_i = Asq9[1]
if WKvO == jzdc or LVAh == Fg_i:
CX... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xlnd(YKHO):\n for rdlD in YKHO.board:\n if TvaD not in rdlD:\n return False\n return True",
"def KANk(C6id):\n for vexM in OHLN:\n if C6id[0] == vexM[0] and C6id[1] == vexM[1]:\n return True\n return False",
"def oUMO(YKHO):\n cJRx = True\n for YRbF in ... | [
"0.7816908",
"0.7341393",
"0.7103159",
"0.7078751",
"0.7076807",
"0.70743597",
"0.70205414",
"0.701569",
"0.7004558",
"0.7001728",
"0.6932088",
"0.6911258",
"0.68712515",
"0.6862062",
"0.68118775",
"0.67942154",
"0.67804515",
"0.67738926",
"0.6773107",
"0.67414814",
"0.672367... | 0.7764425 | 1 |
Heuristic function h(n) that estimates the minimum number of conflicts required to reach the final state. Returns | def m91m(YKHO):
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKlR(YKHO, QTBn):\n MKlR = 0\n for dg7v, J1b4 in enumerate(QTBn):\n for iYf1, CYjz in enumerate(QTBn):\n if (J1b4, dg7v) != (CYjz, iYf1) and YKHO.conflict(J1b4, dg7v, CYjz, iYf1):\n MKlR = MKlR + 1\n return MKlR",
"def MKlR(QTBn, xi3E):\n y_oG = 0\n for YRbF in... | [
"0.6880931",
"0.674491",
"0.6728697",
"0.66567814",
"0.6615392",
"0.6554613",
"0.6531728",
"0.65287226",
"0.6360746",
"0.6274929",
"0.6235966",
"0.62210476",
"0.62192154",
"0.6183053",
"0.6175173",
"0.6171803",
"0.61532855",
"0.614866",
"0.6128687",
"0.61256015",
"0.6123383",... | 0.0 | -1 |
Returns an hashable representation of this search state. Returns | def bGIA(YKHO):
return tuple(YKHO.queen_positions) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x6Ri(YKHO):\n QTBn = {'name': YKHO.name}\n return super(wHLO, YKHO).to_hash(YKHO, QTBn)",
"def rjHV(YKHO):\n return hash(YKHO.state.tostring())",
"def _s1Z(YKHO):\n return hash(str(YKHO.state))",
"def he_d(YKHO):\n KCHu = ''\n Cs6h = YKHO.get_state_grid()\n for YRbF in range(YKHO.N):... | [
"0.804706",
"0.77544373",
"0.7661177",
"0.7282148",
"0.71620333",
"0.70651156",
"0.70174664",
"0.69069004",
"0.68875515",
"0.68405783",
"0.67761153",
"0.675259",
"0.6740877",
"0.67219",
"0.6705905",
"0.6700282",
"0.66735375",
"0.66735375",
"0.66576576",
"0.66576576",
"0.66576... | 0.0 | -1 |
Returns the string representation of this node. Returns | def zAg0(YKHO):
y1e_ = [[' . '] * YKHO.n for YRbF in range(YKHO.n)]
for YRbF, r845 in YKHO.queen_positions:
y1e_[YRbF][r845] = ' Q '
return '\n'.join([''.join(rdlD) for rdlD in y1e_]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.node_info)",
"def vIwR(YKHO):\n l5Ny = 'node ' + SLdk.string(YKHO.identifier, default='unknown') + '\\n'\n for xC3W in dir(YKHO):\n if xC3W.startswith('_'):\n continue\n BWXx = getattr(YKHO, xC3W)\n if callable(BWXx):\n continu... | [
"0.860423",
"0.8376959",
"0.81641376",
"0.8133534",
"0.8127846",
"0.8038092",
"0.8037872",
"0.80363345",
"0.80333245",
"0.8024167",
"0.80176044",
"0.79955107",
"0.7989053",
"0.79855317",
"0.79502046",
"0.79502046",
"0.79502046",
"0.79502046",
"0.79502046",
"0.79502046",
"0.79... | 0.0 | -1 |
Transforms stringlike microversion to twovalue tuple of integers. Tuple of integers useful for microversion comparisons. | def e1zw(BIsP):
njyT = '^([1-9]\\d*)\\.([1-9]\\d*|0)$'
kUBT = ZbWC.match(njyT, BIsP)
if not kUBT:
raise ValueError("Microversion does not fit template 'x.y' - %s" % BIsP)
return (int(kUBT.group(1)), int(kUBT.group(2))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pYTa(Ty9i):\n return tuple(map(int, Ty9i.split('.')))",
"def mp1X(Ty9i):\n return tuple(map(int, Ty9i.split('.')))",
"def UGSU(VsNR: str) -> AzJI[int, int]:\n lpha = None\n if VsNR.count('.') == 3:\n lpha = VsNR.split('.')\n else:\n lpha = VsNR.split(',')\n NmYP = int(lpha[1... | [
"0.72224",
"0.72168744",
"0.7183449",
"0.7180864",
"0.70235205",
"0.68622833",
"0.68448824",
"0.6797852",
"0.67971766",
"0.6778952",
"0.6778468",
"0.6774312",
"0.67293996",
"0.6634582",
"0.66261077",
"0.66141146",
"0.6592775",
"0.65717417",
"0.64434254",
"0.6440518",
"0.64356... | 0.78514624 | 0 |
Is microversion for left is greater than the right one. | def eTsD(LFlW, _tIi):
return e1zw(LFlW) > e1zw(_tIi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cfr5(LFlW, _tIi):\n return e1zw(LFlW) >= e1zw(_tIi)",
"def EKe9(LFlW, _tIi):\n return e1zw(LFlW) <= e1zw(_tIi)",
"def OLVF(LFlW, _tIi):\n return e1zw(LFlW) < e1zw(_tIi)",
"def PSKN(LFlW, _tIi):\n return e1zw(LFlW) == e1zw(_tIi)",
"def dowP(LFlW, _tIi):\n return e1zw(LFlW) != e1zw(_tIi)",... | [
"0.8266491",
"0.81504506",
"0.7879107",
"0.7365564",
"0.72422266",
"0.7127477",
"0.6942068",
"0.6873364",
"0.6771524",
"0.6763945",
"0.6665975",
"0.66297966",
"0.6629333",
"0.65245533",
"0.64007",
"0.639565",
"0.63685274",
"0.63553125",
"0.63531244",
"0.63260937",
"0.63090867... | 0.871899 | 0 |
Is microversion for left is greater than or equal to the right one. | def Cfr5(LFlW, _tIi):
return e1zw(LFlW) >= e1zw(_tIi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eTsD(LFlW, _tIi):\n return e1zw(LFlW) > e1zw(_tIi)",
"def EKe9(LFlW, _tIi):\n return e1zw(LFlW) <= e1zw(_tIi)",
"def OLVF(LFlW, _tIi):\n return e1zw(LFlW) < e1zw(_tIi)",
"def PSKN(LFlW, _tIi):\n return e1zw(LFlW) == e1zw(_tIi)",
"def dowP(LFlW, _tIi):\n return e1zw(LFlW) != e1zw(_tIi)",
... | [
"0.85378665",
"0.831399",
"0.7983011",
"0.7723843",
"0.7435535",
"0.6938844",
"0.69265103",
"0.67109555",
"0.6666746",
"0.6653614",
"0.6589182",
"0.6558811",
"0.6524816",
"0.6420884",
"0.6382489",
"0.63707745",
"0.63291883",
"0.6323848",
"0.6300172",
"0.6281905",
"0.62740624"... | 0.8347422 | 1 |
Is microversion for left is less than the right one. | def OLVF(LFlW, _tIi):
return e1zw(LFlW) < e1zw(_tIi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EKe9(LFlW, _tIi):\n return e1zw(LFlW) <= e1zw(_tIi)",
"def Cfr5(LFlW, _tIi):\n return e1zw(LFlW) >= e1zw(_tIi)",
"def eTsD(LFlW, _tIi):\n return e1zw(LFlW) > e1zw(_tIi)",
"def dowP(LFlW, _tIi):\n return e1zw(LFlW) != e1zw(_tIi)",
"def PSKN(LFlW, _tIi):\n return e1zw(LFlW) == e1zw(_tIi)",... | [
"0.84322184",
"0.8265486",
"0.80802035",
"0.7314552",
"0.73049057",
"0.6904229",
"0.68404067",
"0.67539775",
"0.67443365",
"0.6740246",
"0.66553307",
"0.6622129",
"0.66061217",
"0.65758336",
"0.65580374",
"0.6479925",
"0.64717335",
"0.64082736",
"0.6403408",
"0.64009225",
"0.... | 0.8685974 | 0 |
Return the assetstore adapter for the given file. Return None if the file has no assetstore. | def Pm4E(YKHO, nUeQ):
from girder.utility import assetstore_utilities
if not nUeQ.get('assetstoreId'):
return None
PJJ3 = YKHO._getAssetstoreModel(nUeQ).load(nUeQ['assetstoreId'])
return assetstore_utilities.getAssetstoreAdapter(PJJ3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def open(YKHO, nUeQ):\n return YKHO.getAssetstoreAdapter(nUeQ).open(nUeQ)",
"def PCP1(YKHO, qaEx: Text):\n GPtr = rBcg.read_yaml(qaEx)\n return OGTA(GPtr[sjXb.GlobalKeys.ARTIFACT_STORE])",
"def H7uH(YKHO, _eu6):\n for fmAV in YKHO.assets:\n if fmAV.hasID(_eu6):\n return fmAV\n ... | [
"0.62555206",
"0.59234595",
"0.5766473",
"0.57571256",
"0.5641745",
"0.55823237",
"0.5534601",
"0.5484902",
"0.5436113",
"0.53885084",
"0.53876454",
"0.53822136",
"0.53650683",
"0.53639",
"0.5348749",
"0.5345927",
"0.5230677",
"0.522009",
"0.520291",
"0.51854724",
"0.51649266... | 0.90088934 | 0 |
Returns the size of this file. Does not currently check the underlying assetstore to verify the size. | def HQT1(YKHO, nUeQ):
return (nUeQ.get('size', 0), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiw9(YKHO):\n if YKHO.file_size:\n return YKHO.file_size\n else:\n try:\n return Hy7s.path.getsize(YKHO.file_name)\n except OSError:\n return 0",
"def jiw9(YKHO):\n if YKHO.getFile():\n return YKHO.getFile().get_size()\n else:\n return 0",
... | [
"0.8852046",
"0.8786014",
"0.86602795",
"0.8606072",
"0.86038303",
"0.8597402",
"0.85886383",
"0.8572024",
"0.8552315",
"0.8540422",
"0.85262835",
"0.848788",
"0.8460654",
"0.8449542",
"0.8449542",
"0.8363162",
"0.8350901",
"0.83400613",
"0.82942075",
"0.82857937",
"0.8268131... | 0.7740033 | 63 |
Returns any categories that have been configured to show in navigator | def PDZe(YKHO):
return [Ghho for Ghho in YKHO.categories if Ghho.navigator_visible] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQuW(YKHO):\n pass",
"def LQuW(YKHO):\n return YKHO.categories",
"def LeZt(YKHO):\n return None",
"def NMoC(YKHO):\n return LeZt",
"def LeZt(YKHO):\n return YKHO._data['categories']",
"def LeZt(YKHO):\n return YKHO._data['categories']",
"def zG33(YKHO):\n return YKHO.categories... | [
"0.7774899",
"0.77457803",
"0.77412397",
"0.76731807",
"0.7551248",
"0.7545088",
"0.7521438",
"0.7450418",
"0.7450418",
"0.7450418",
"0.7450418",
"0.7450418",
"0.7358019",
"0.7350614",
"0.7350614",
"0.7327296",
"0.7279345",
"0.7208962",
"0.7085937",
"0.70389783",
"0.69865817"... | 0.8091594 | 0 |
Extract the labels (landmark coordinates) into a 2D float64 numpy array. | def VXv4(Ux0P):
with open(Ux0P) as eHNT:
Crrw = oyIN.empty([0, 3], dtype=oyIN.float64)
print(Crrw)
for zFiD in eHNT:
jzdc = [float(WKvO) for WKvO in zFiD.split()]
Crrw = oyIN.vstack((Crrw, jzdc))
return Crrw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Te1x(tyNF):\n dn1Z = oyIN.array(tyNF)\n vdWt = dn1Z[:, :12]\n return vdWt",
"def txO9(YKHO):\n Crrw = []\n EYTZ = []\n for yHil in YKHO.list_IDs:\n EYTZ.append(yHil)\n Crrw.append(YKHO.labels[yHil])\n Crrw = oyIN.array(Crrw)\n return (Crrw, EYTZ)",
"def Te1x():\n re... | [
"0.69723845",
"0.696661",
"0.6961434",
"0.695835",
"0.6953634",
"0.6927907",
"0.68280256",
"0.68257374",
"0.6684946",
"0.6684946",
"0.6660035",
"0.6653805",
"0.66498613",
"0.662384",
"0.6615741",
"0.65987366",
"0.65804064",
"0.6548794",
"0.654152",
"0.65323144",
"0.6461638",
... | 0.6836783 | 6 |
Return number of processes on this communicator | def zNig(YKHO):
return YKHO.comm.size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MFWX(YKHO):\n return int(Yn3K.check_output(['nproc', '--all']))",
"def wD0w(YKHO):\n return YKHO._nprocs",
"def NUY7(YKHO):\n return YKHO._num_procs",
"def Y9kr() -> int:\n return len(O0k5.pids())",
"def _KXx(YKHO):\n return len(YKHO.active_processes)",
"def X9iF():\n nPrm = O0k5.pr... | [
"0.7973877",
"0.7909617",
"0.7905108",
"0.78153837",
"0.7785468",
"0.7773985",
"0.7755094",
"0.76266414",
"0.75999135",
"0.7433764",
"0.739218",
"0.73876715",
"0.73773307",
"0.7322342",
"0.7149424",
"0.71315295",
"0.711613",
"0.70932114",
"0.70812494",
"0.70681685",
"0.706504... | 0.6377028 | 70 |
Binary search of the Building of the list located on x's left side. (in terms of xmin). | def iy28(YKHO, WKvO):
nEeK, ekgN = (0, len(YKHO.buildings))
while nEeK < ekgN:
x1fj = (nEeK + ekgN) // 2
if YKHO.buildings[x1fj].xmin <= WKvO.xmin:
nEeK = x1fj + 1
else:
ekgN = x1fj
return nEeK - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rePr(aPd6, WKvO):\n return OfP4(aPd6, WKvO, 0, len(aPd6))",
"def J8Bc(jzdc, WKvO):\n LFlW, _tIi = (0, len(jzdc))\n while LFlW < _tIi:\n x1fj = (LFlW + _tIi) // 2\n if jzdc[x1fj] < WKvO:\n LFlW = x1fj + 1\n else:\n _tIi = x1fj\n if LFlW == len(jzdc):\n ... | [
"0.7730071",
"0.7246229",
"0.7174626",
"0.71270305",
"0.71183324",
"0.70884",
"0.7029544",
"0.69881415",
"0.69772506",
"0.69772506",
"0.69706255",
"0.69513875",
"0.6889907",
"0.68862224",
"0.6882102",
"0.6874947",
"0.68614614",
"0.68568116",
"0.68319386",
"0.68272823",
"0.679... | 0.79158944 | 0 |
Update the Skyline values based on the current buildings inside of self.buildings. | def QdZT(YKHO):
if YKHO.buildings:
YKHO.min = YKHO.buildings[0].xmin
YKHO.max = YKHO.buildings[-1].xmax
YKHO.width = YKHO.max - YKHO.min
YKHO.area = sum([Fg_i.area() for Fg_i in YKHO.buildings])
else:
YKHO.clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u_2K(YKHO):\n return YKHO.buildings",
"def NQMs(YKHO):\n for j5sA in YKHO.cities:\n j5sA.collect_building()",
"def oLxg(YKHO):\n if YKHO.variables.has_key('TIME'):\n ITS7 = YKHO.variables['TIME']\n YKHO.time_coverage_start = (qtWj + fCoM(ITS7[:].min())).isoformat() + 'Z'\n ... | [
"0.6510646",
"0.61011696",
"0.58775806",
"0.5869098",
"0.5838873",
"0.57862973",
"0.5744712",
"0.56961274",
"0.5580689",
"0.5539785",
"0.5526003",
"0.5517769",
"0.55021924",
"0.547825",
"0.5436465",
"0.53591335",
"0.53581697",
"0.53318334",
"0.5291122",
"0.52883875",
"0.52757... | 0.59557664 | 2 |
Computes the Building's area. | def f0tD(YKHO):
return YKHO.h * YKHO.w | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aw0V(YKHO):\n pass",
"def f0tD(YKHO):\n if YKHO._area == None:\n YKHO._area = YKHO._n / 2 * YKHO.side_length * YKHO.apothem\n return YKHO._area",
"def f0tD(YKHO):\n f0tD = YKHO.length * YKHO.width\n return f0tD",
"def f0tD(YKHO):\n return rSWe(YKHO.dimensions).area()",
"def f0t... | [
"0.76841676",
"0.74033964",
"0.7399695",
"0.7391172",
"0.73604816",
"0.735771",
"0.7316924",
"0.73152626",
"0.72877985",
"0.72877985",
"0.72877985",
"0.72875935",
"0.72799164",
"0.72799164",
"0.7272473",
"0.72260576",
"0.7224363",
"0.7222525",
"0.7211045",
"0.7206984",
"0.719... | 0.7305811 | 8 |
Find first node's ancestor which match class' name. | def iwzY(Q6kx, mPQc):
ybmc = Q6kx.parent
while ybmc is not None:
if ybmc.__class__.__name__ == mPQc:
break
ybmc = ybmc.parent
return ybmc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F_G6(YKHO, Q6kx, Tj3G):\n if not Q6kx or Q6kx['tag'] == Tj3G:\n return Q6kx\n if 'parent' in Q6kx:\n return YKHO.ancestor(Q6kx['parent'], Tj3G)\n return None",
"def F_G6(YKHO, filter):\n P6bq = YKHO.up()\n while P6bq:\n if filter(P6bq):\n return P6bq\n el... | [
"0.6980716",
"0.692757",
"0.681982",
"0.6713872",
"0.6576773",
"0.65599084",
"0.6431006",
"0.64218193",
"0.6397282",
"0.63705295",
"0.63461673",
"0.6320384",
"0.63039994",
"0.6276995",
"0.6260091",
"0.6252641",
"0.6248408",
"0.6136401",
"0.61329204",
"0.6128838",
"0.61153096"... | 0.82878953 | 0 |
Converts a filepath, file object or buffer to a InMemoryUploadedFile. | def mKZU(YKHO):
vKgO = ('read', 'seek', 'close', 'name')
if all([hasattr(YKHO.parsed_file, jzdc) for jzdc in vKgO]):
YKHO.parsed_file.close()
YKHO.parsed_file = YKHO.parsed_file.name
if type(YKHO.parsed_file) == str:
with open(YKHO.parsed_file, 'rb') as PgcV:
LaVg = aKaX(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AwJp(YKHO, O_1m: Union[str, Path, BinaryIO], gIsw: str='', ZMYJ: bool=False, mfF2: int=0) -> fnT7:\n return fnT7(YKHO.api, YKHO, list(YKHO._api.upload(O_1m, gIsw, ZMYJ, mfF2, YKHO.id))[-1][0])",
"def WOxh(YKHO, nPrm):\n eHNT = W3qF.to_python(YKHO, nPrm)\n if eHNT is None:\n return None\n i... | [
"0.6136992",
"0.58650416",
"0.58436096",
"0.5746636",
"0.5622254",
"0.5562272",
"0.55587244",
"0.5556294",
"0.55510813",
"0.55405384",
"0.54914343",
"0.5449314",
"0.5444273",
"0.5438923",
"0.5415691",
"0.54146814",
"0.53886056",
"0.5383887",
"0.5383887",
"0.5380689",
"0.53501... | 0.62195414 | 0 |
Store the path into a geojson file. | def ouI4(Ux0P, mC4V, pu_z):
hlel = dict()
hlel['type'] = 'FeatureCollection'
hlel['features'] = []
Q6kx = pu_z.strip('()').split(', ')
for YRbF in range(len(Q6kx)):
Q6kx[YRbF] = float(Q6kx[YRbF])
Fw8z = dict()
Fw8z['geometry'] = dict()
Fw8z['geometry']['type'] = 'LineString'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ts22(YKHO, Zo9H):\n SMhQ.write_json(YKHO.geoListPath, Zo9H)",
"def SHcs(nPrm: str, pmON: str, gIsw: str) -> None:\n if isinstance(nPrm, str):\n nPrm = qQXR.loads(nPrm)\n gIsw = (gIsw if gIsw is not None and L1g8(gIsw) else f'mapillary_{hhBX('*')}_') + '.geojson'\n try:\n with open(H... | [
"0.72844964",
"0.7223066",
"0.7121807",
"0.6920202",
"0.6909843",
"0.6869161",
"0.6803259",
"0.67933947",
"0.67933947",
"0.6790584",
"0.6789349",
"0.67277455",
"0.67252356",
"0.67032725",
"0.6695751",
"0.6659174",
"0.66484773",
"0.6644945",
"0.6640739",
"0.6627146",
"0.659168... | 0.0 | -1 |
Lookup the embedding table using the input features. | def LtLv(YKHO, bySB: Any, _mSQ: Optional[Any]=None) -> ImMB:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LtLv(Pha6, jXxl, xlY1, Zwn2=128, a4xb=0.02, KPjF='word_embeddings', as3x=False):\n if Pha6.shape.ndims == 2:\n Pha6 = ZylS.expand_dims(Pha6, axis=[-1])\n M5kR = ZylS.get_variable(name=KPjF, shape=[jXxl, Zwn2], initializer=lly1(a4xb), regularizer=ZylS.contrib.layers.l2_regularizer(scale=xlY1))\n ... | [
"0.69432265",
"0.6911548",
"0.6771614",
"0.67588687",
"0.67552537",
"0.6666456",
"0.6643321",
"0.6484148",
"0.6450824",
"0.6354076",
"0.62071437",
"0.61341435",
"0.6127802",
"0.6042524",
"0.5944841",
"0.5882496",
"0.58571076",
"0.5803591",
"0.5796189",
"0.57552946",
"0.571400... | 0.74692506 | 0 |
Returns a predicate for whether an event file load timestamp is active. | def i804(JbyC):
if not JbyC.reload_multifile:
return None
yYFK = JbyC.reload_multifile_inactive_secs
if yYFK == 0:
return None
if yYFK < 0:
return lambda E3oo: True
return lambda E3oo: E3oo + yYFK >= ITS7.time() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zpx1(Ux0P):\n return lambda tvqc: bool(tvqc['filename'] == Ux0P)",
"def WrYy(YKHO):\n lAav = YKHO._FILEMAP[YKHO.filename].modtime\n if lAav != 0.0:\n dF1J = Hy7s.path.getmtime(YKHO.filename)\n return dF1J == lAav\n else:\n return True",
"def D3vt(YKHO, **B2fa):\n return ... | [
"0.5897059",
"0.5812496",
"0.56923836",
"0.56245905",
"0.56091124",
"0.56089777",
"0.56089777",
"0.55769074",
"0.5555677",
"0.55250293",
"0.5435602",
"0.54308677",
"0.5414298",
"0.54136455",
"0.53915495",
"0.5382423",
"0.5362039",
"0.53101027",
"0.5275641",
"0.52510375",
"0.5... | 0.7634701 | 0 |
Corotation radius (for a given NS mass and spin) | def Wxsz(YKHO, kVsn):
yvT9 = (YKHO.gravconst * YKHO.NS_mass / kVsn ** 2) ** (1.0 / 3)
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4qP(YKHO, bMbF):\n return bMbF ** 0.5",
"def amUn(YKHO):\n YKHO.core_radius = YKHO.core_mass ** 0.25",
"def Stx3(r1VO):\n return 2 * XTiz.pi * r1VO",
"def s_di(Kt_s, bMbF, r8hN=2.0):\n OInx = tKbj * Kt_s / (r8hN * _VQY)\n a67k = mqMr * bMbF / (2.0 * OInx)\n return a67k",
"def HRUp(zS... | [
"0.7497462",
"0.7152338",
"0.706276",
"0.7023558",
"0.6910325",
"0.67491746",
"0.674821",
"0.6734191",
"0.67189544",
"0.66991615",
"0.66985923",
"0.6691419",
"0.6683339",
"0.66801304",
"0.66743374",
"0.6635763",
"0.66323215",
"0.66111106",
"0.66034096",
"0.65847373",
"0.65419... | 0.77268946 | 0 |
Loss function Limp T(alpha) Notes Deprecated, not used in the free/trapped model | def ExDC(YKHO, Kt_s):
yvT9 = YKHO.AG_Eimp * (Kt_s / YKHO.AG_T0) ** (-YKHO.AG_alpha)
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oo2I(WKvO, a1PO, f2rf, N77f):\n return ZqGj(prior=f2rf, loss=N77f)(WKvO, a1PO)",
"def _kMf(YKHO):\n return YKHO.alpha.T.dot(YKHO.y_train) - 0.5 * YKHO.alpha.T.dot(YKHO.K_train.dot(YKHO.alpha))",
"def x0wN(input, UqYS, Cwt5=0.05):\n a72p = ht2j.min(1.0 - input[:, 0], 1.0 + input[:, 0])\n U78l = ... | [
"0.67157686",
"0.6638037",
"0.6567932",
"0.6556567",
"0.6536984",
"0.647719",
"0.6450616",
"0.6415399",
"0.641344",
"0.63713175",
"0.6342666",
"0.63408154",
"0.6326932",
"0.6323553",
"0.62996984",
"0.6243691",
"0.6226437",
"0.62239826",
"0.6201729",
"0.6195684",
"0.6178878",
... | 0.0 | -1 |
Create Flyby object This objects serves as a convenience wrapper around the Strava Flyby API JSON response. The easiest way to initialite is to call the factory function flyby(activity_id). | def FIMM(YKHO, hGN5=None):
YKHO.raw_content = hGN5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oH5d(P1UD):\n return WJOP(wSVo(P1UD))",
"def Vsto(P1UD=OWf3):\n fcLg = oH5d.flyby(P1UD)\n yield fcLg",
"def wSVo(P1UD):\n RSZq = 'https://nene.strava.com/flyby/matches/'\n liTZ = {'referer': 'https://labs.strava.com/flyby/viewer/', 'origin': 'https://labs.strava.com'}\n bo34.info('Request... | [
"0.7737292",
"0.70046145",
"0.68194956",
"0.5417201",
"0.53857654",
"0.5385513",
"0.52901",
"0.5107596",
"0.5024945",
"0.49300563",
"0.48820615",
"0.48315978",
"0.48295388",
"0.48077324",
"0.4800356",
"0.47777382",
"0.47613335",
"0.47581866",
"0.47445655",
"0.47342876",
"0.46... | 0.0 | -1 |
Return K_1 and K_2 vectors for PSD | def TQCM(t5WR, hMg7, CCRu, q7In, rVnq):
AY9y = 2 * oyIN.pi / t5WR * (oyIN.sin(q7In) * oyIN.cos(rVnq) - oyIN.sin(hMg7) * oyIN.cos(CCRu))
Sotp = 2 * oyIN.pi / t5WR * (oyIN.sin(q7In) * oyIN.sin(rVnq) - oyIN.sin(hMg7) * oyIN.sin(CCRu))
return (AY9y, Sotp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vlR3(LEev, FXXZ, Y0Fj, Xyq7):\n return kg56.spkgps_vector(LEev, FXXZ, Y0Fj, Xyq7)",
"def qeHj(YKHO):\n return YKHO.k_vectors",
"def ttEo(YKHO):\n QwO3 = jbYn.xfeatures2d_SIFT.create()\n YKHO.kp1, YKHO.desc1 = QwO3.detectAndCompute(YKHO.img1, None)\n YKHO.kp2, YKHO.desc2 = QwO3.detectAndCompu... | [
"0.6510754",
"0.6361519",
"0.6210834",
"0.6162132",
"0.61312157",
"0.6116385",
"0.60955006",
"0.6082047",
"0.599549",
"0.59822005",
"0.5962298",
"0.59570366",
"0.59505755",
"0.5949818",
"0.5947974",
"0.59465545",
"0.593281",
"0.5918547",
"0.5874405",
"0.58702505",
"0.58587456... | 0.0 | -1 |
Return list of folders. | def JF8S(pmON):
return [xtX7 for xtX7 in Hy7s.listdir(pmON) if Hy7s.path.isdir(Hy7s.path.join(pmON, xtX7))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EcAx():\n Eorv = 'folders'\n Mkmy = G4JS.get(jNi7(bD7m, Eorv), headers=rRTj(), verify=qutR)\n if Mkmy.status_code == 403:\n raise QYiW('User does not have sufficient privileges to access this resource')\n return Mkmy.json()['folders']",
"def G6Ig(YKHO):\n ucBt = []\n for xtX7 in YKHO... | [
"0.85209656",
"0.84557396",
"0.8450838",
"0.83256966",
"0.8316189",
"0.8300958",
"0.8300958",
"0.82933563",
"0.81069136",
"0.8001061",
"0.7997531",
"0.78651845",
"0.77618676",
"0.77074116",
"0.7682541",
"0.76196665",
"0.76120406",
"0.75036997",
"0.7494863",
"0.7493214",
"0.74... | 0.73968726 | 27 |
Return list of folders. | def KSKX(pmON):
return [xtX7 for xtX7 in Hy7s.listdir(pmON)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EcAx():\n Eorv = 'folders'\n Mkmy = G4JS.get(jNi7(bD7m, Eorv), headers=rRTj(), verify=qutR)\n if Mkmy.status_code == 403:\n raise QYiW('User does not have sufficient privileges to access this resource')\n return Mkmy.json()['folders']",
"def G6Ig(YKHO):\n ucBt = []\n for xtX7 in YKHO... | [
"0.85209656",
"0.84557396",
"0.8450838",
"0.83256966",
"0.8316189",
"0.8300958",
"0.8300958",
"0.82933563",
"0.81069136",
"0.8001061",
"0.7997531",
"0.78651845",
"0.77618676",
"0.77074116",
"0.7682541",
"0.76196665",
"0.76120406",
"0.75036997",
"0.7494863",
"0.7493214",
"0.74... | 0.69417447 | 56 |
Returns an iterator equivalent to map(fn, iter). | def map(YKHO, FYKK, *ix7N, **B2fa):
vYBr = B2fa.get('timeout', None)
ym_X = B2fa.get('chunksize', 1)
if ym_X < 1:
raise ValueError('chunksize must be >= 1.')
dixj = super().map(YLnl(CkUJ, FYKK), qCZK(ym_X, *ix7N), timeout=vYBr)
return TN21(dixj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def map(YKHO, JfyU: callable, iter: Iterable):\n raise NotImplementedError",
"def JQ7D(JfyU: Callable[..., T], WhY1: Iterable[tuple]) -> bDy6[Kt_s]:\n return (JfyU(*qIxc) for qIxc in WhY1)",
"def JaxB(YKHO, JfyU, OxJJ, ym_X=1):\n Ylbp = YKHO.map(JfyU, OxJJ, chunksize=ym_X)\n return Rl3y(Ylbp)",
"... | [
"0.80842364",
"0.7858821",
"0.76030874",
"0.7572874",
"0.7212334",
"0.71853286",
"0.71155304",
"0.69878036",
"0.6975858",
"0.69200474",
"0.6897635",
"0.6873325",
"0.68638",
"0.6863504",
"0.6788988",
"0.6777983",
"0.6728456",
"0.669793",
"0.6692766",
"0.66836774",
"0.6677029",... | 0.62908363 | 49 |
Resets the plugin's configuration attributes to their default values for the given flowNum and interface. Returns nothing on success. Raises ServerError exception if bad values or no connection to server. | def JQf7(YKHO, KVNt, wohN):
YKHO.GetCmdRsp('resetplugin %d %d' % (KVNt, wohN)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ptiL():\n fmAV.conf.instance = fmAV.conf.default",
"def ptiL():\n fmAV.conf.instance = fmAV.conf.default",
"def ptiL():\n fmAV.conf.instance = fmAV.conf.default",
"def pZiI(YKHO):\n YKHO.parameters.interactor.set_mp(YKHO.parameters.initial_settings)",
"def _9mD(YKHO, QePW, QpfX):\n QpfX.... | [
"0.60287666",
"0.60287666",
"0.60287666",
"0.58327264",
"0.5814598",
"0.5757279",
"0.575674",
"0.5701697",
"0.5637552",
"0.5603579",
"0.5593276",
"0.5541791",
"0.55376184",
"0.5523344",
"0.54932624",
"0.53997463",
"0.5391645",
"0.53611785",
"0.5361155",
"0.5337428",
"0.532398... | 0.6636323 | 0 |
Returns the number of flows currently available. This is equal to the value of itemCount/2, where itemCount is the attribute from the StartArgs class. Raises ServerError exception if no connection to server. | def Om9D(YKHO):
return YKHO.GetCmdRsp('getnumflows').PopInt() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OGwl(YKHO):\n return YKHO.num_items",
"def SG_M(YKHO):\n return YKHO.item_list.getSize()",
"def SG_M(YKHO):\n return YKHO.item_list.getSize()",
"def NW1e(YKHO):\n return len(YKHO.ex.client.guilds)",
"def XK3U():\n aoD7 = EaSl.kvdb.Client()\n if aoD7.get('NumberOfItems'):\n FGW3... | [
"0.6172504",
"0.59783494",
"0.59783494",
"0.59625936",
"0.58962154",
"0.5848509",
"0.58135605",
"0.576986",
"0.57241863",
"0.5719583",
"0.5717078",
"0.5716764",
"0.57092464",
"0.57070756",
"0.57034785",
"0.5666343",
"0.5650056",
"0.56492174",
"0.5646481",
"0.5643609",
"0.5640... | 0.72715974 | 0 |
Returns an array of tuples, where each tuple contains three | def OBol(YKHO):
Q4kH = YKHO.GetCmdRsp('getstats info')
vnuh = []
while Q4kH.Remain():
bTKY = (Q4kH.Pop(False), Q4kH.Pop(False), Q4kH.Pop(False))
vnuh.append(bTKY)
return vnuh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKdn(BWXx):\n try:\n if len(BWXx) == 1:\n return [BWXx[0], BWXx[0], BWXx[0]]\n elif len(BWXx) == 3:\n return [BWXx[0], BWXx[1], BWXx[2]]\n else:\n raise ValueError('Value must be length 1 or 3')\n except (IndexError, TypeError):\n return [BWXx,... | [
"0.71528137",
"0.71445113",
"0.68631953",
"0.6724621",
"0.6721466",
"0.66342723",
"0.65608966",
"0.6520161",
"0.65058774",
"0.64843446",
"0.6468867",
"0.64628667",
"0.64544916",
"0.6443008",
"0.63984185",
"0.6374851",
"0.62855095",
"0.62751234",
"0.6235046",
"0.6230063",
"0.6... | 0.0 | -1 |
Return number of unread notification for user | def a5D4(QePW):
geh0 = {}
x5Nq = JbaM.objects.filter(destined_user=QePW.user, is_read=False).count()
geh0['number_of_unread_notifications'] = x5Nq
return oGir(geh0, status=jGRS.HTTP_200_OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NAAL(CBIr):\n return Esm4.unread(CBIr).count()",
"def Edam(YKHO):\n return JbaM.objects.filter(recipient=YKHO, date_read__isnull=True).count()",
"def Jtig(YKHO, YEnM):\n QePW = YKHO.context.get('request', None)\n if QePW:\n return QePW.user.messages_received.filter(is_seen=False).count()... | [
"0.83444005",
"0.7715208",
"0.76675284",
"0.7562786",
"0.7400736",
"0.7385009",
"0.73607844",
"0.72858566",
"0.7230961",
"0.7213619",
"0.7064803",
"0.70568377",
"0.696515",
"0.6961637",
"0.6940139",
"0.6890357",
"0.67742574",
"0.6735722",
"0.67175055",
"0.6659011",
"0.6638070... | 0.80070525 | 1 |
Create dictionary with participant names and numbers | def rtGG(YKHO) -> dict:
v_U2 = rLdf.read_csv(YKHO.ptp, encoding='utf8')
if len(v_U2.columns):
v_U2 = rLdf.read_csv(YKHO.ptp, encoding='utf8', sep=';')
v_U2 = v_U2.set_index(v_U2.columns[0])
cmPJ = v_U2.to_dict()[v_U2.columns[0]]
return cmPJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Nbc(JYl0, mfZC, IG1J, o6t2, SVbt):\n zAlC = {'participant_id': JYl0, 'participant_name': mfZC, 'participant_p1': IG1J, 'participant_p2': o6t2, 'participant_p3': SVbt}\n return zAlC",
"def I1JW(ZWCE, ZJe_, iSsU, cCrA):\n flIk = {}\n for YRbF in range(0, len(ZWCE)):\n flIk[YRbF] = {'name': ... | [
"0.6537178",
"0.6331231",
"0.6129538",
"0.60679215",
"0.6026646",
"0.60102034",
"0.596384",
"0.59133655",
"0.5904794",
"0.58956856",
"0.588319",
"0.5881593",
"0.5848176",
"0.5808913",
"0.577576",
"0.57548",
"0.5718978",
"0.5715854",
"0.56845474",
"0.56805146",
"0.56763047",
... | 0.64482945 | 1 |
Return the ks energies for each kpoint (in eV). The top of the valence band is used as the reference energy value. It is possible to shift the energies of the empty bands by setting an arbitrary value for the gap (direct or indirect) or by adding an explicit scissor. Implemented only for semiconductors. | def p6tV(YKHO, hlhA=None, q9nU=None, GeEw=None, PJWX=True):
dug5 = KkY2.get_evals(YKHO.evals, YKHO.nbands, YKHO.nbands_full, set_scissor=hlhA, set_gap=q9nU, set_direct_gap=GeEw, verbose=PJWX)
return dug5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QcVe(YKHO):\n QcVe = []\n for s7kc in YKHO.root.find('EIGENVALUES'):\n dY7x = YKHO._get_xml_tag_value(s7kc.find('K-POINT_COORDS'))[0]\n nrxV = oyIN.dot(dY7x, YKHO.get_inverse_reciprocal_lattice_vectors())\n AVFh = {'kpoint': nrxV.tolist(), 'weight': YKHO._get_xml_tag_value(s7kc.find(... | [
"0.6579147",
"0.64769274",
"0.6474912",
"0.6152918",
"0.6117911",
"0.6059819",
"0.6057274",
"0.6036231",
"0.60252285",
"0.60235184",
"0.60182816",
"0.5977943",
"0.59611994",
"0.59287035",
"0.5924106",
"0.5911642",
"0.59064305",
"0.5873212",
"0.5862498",
"0.5849696",
"0.584856... | 0.0 | -1 |
Compute the (vertical) transitions energies. For each kpoint compute the transition energies, i.e. the (positive) energy difference (in eV) between the final and the initial states. | def xNMX(YKHO, RqgG='full', lXgg='empty', hlhA=None, q9nU=None, GeEw=None):
UlCL = KkY2.get_transitions(YKHO.evals, YKHO.nbands, YKHO.nbands_full, initial=RqgG, final=lXgg, set_scissor=hlhA, set_gap=q9nU, set_direct_gap=GeEw)
return UlCL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bJPN(bhab, XP5J, _Bh4):\n seET = jdY5(bhab, XP5J, _Bh4)\n return oyIN.sqrt(oyIN.linalg.eigvalsh(seET))",
"def n6QX(YKHO):\n tDEK = YKHO._calc_all_z_i()\n y6In('z_i calculated')\n r8hN = oyIN.max(tDEK, axis=0)\n for a1PO in range(YKHO._N):\n for YRbF in range(vJuT):\n if tD... | [
"0.63123614",
"0.6254931",
"0.6119229",
"0.6060152",
"0.5968433",
"0.5947236",
"0.57786864",
"0.57414764",
"0.57189536",
"0.57112247",
"0.5702103",
"0.56892073",
"0.56685364",
"0.56572926",
"0.5657194",
"0.56515956",
"0.5637856",
"0.5637206",
"0.5632066",
"0.5623754",
"0.5575... | 0.0 | -1 |
Cosine similarity betweem vectors x and y is defined to be the cosine of the angle between the two vectors. We can calculate the similarity by taking x\dot y/(||x||||y||). We turn this into a distance by taking 1similarity because the cosine similarity is bounded above by 1. | def Ltnh(WKvO, LVAh):
if len(WKvO) != len(LVAh):
raise SyntaxError('Vectors must all be the same length')
ltnu = aKjw(WKvO)
zhZG = aKjw(LVAh)
return 1 - XTiz.dot(WKvO, LVAh) / (ltnu * zhZG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKk5(WKvO: np.ndarray, LVAh: np.ndarray) -> float:\n return oyIN.dot(WKvO, LVAh) / (oyIN.linalg.norm(WKvO) * oyIN.linalg.norm(LVAh))",
"def gKk5(WKvO, LVAh):\n return 1 - Catu.distance.cosine(WKvO, LVAh)",
"def gKk5(YKHO, WKvO, LVAh):\n M6pt = sum((jzdc * Fg_i for jzdc, Fg_i in zip(WKvO, LVAh)))\n... | [
"0.86544335",
"0.8534502",
"0.846337",
"0.84471965",
"0.8421132",
"0.8407731",
"0.83730936",
"0.8318443",
"0.8294242",
"0.8292951",
"0.8282717",
"0.8274695",
"0.82527864",
"0.8162149",
"0.8121499",
"0.81192064",
"0.81077814",
"0.8094113",
"0.8062271",
"0.804701",
"0.80246776"... | 0.7771873 | 35 |
The Euclidean norm of a vector x is defined to be \sqrt(\sum_{i=1}^len(x) x_i^2) | def aKjw(WKvO):
return epAf.sqrt(sum([Y7fn ** 2 for Y7fn in WKvO])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkYf(WKvO):\n return oyIN.sqrt(oyIN.sum(WKvO ** 2))",
"def CkYf(WKvO):\n return oyIN.sqrt(oyIN.sum(oyIN.square(WKvO)))",
"def CkYf(WKvO):\n return epAf.sqrt(oyIN.numerical.sum(WKvO ** 2))",
"def CNdO(EcVT):\n lBjq = oyIN.square(EcVT)\n RBuv = oyIN.sum(lBjq)\n rxGT = oyIN.sqrt(RBuv)\n ... | [
"0.8764102",
"0.8728881",
"0.86965",
"0.8520262",
"0.8505192",
"0.8463478",
"0.8370905",
"0.83691114",
"0.8311012",
"0.80467165",
"0.80393106",
"0.8030751",
"0.79885393",
"0.7987137",
"0.79574513",
"0.7953145",
"0.79445505",
"0.7938979",
"0.7927891",
"0.79044205",
"0.7880457"... | 0.81654835 | 9 |
Given a name, find the k nearest other names based on all_sims. | def DB6h(YKHO, mWFP):
eFr6 = []
for H5ew in YKHO.all_sims.keys():
if H5ew[0] == mWFP:
eFr6.append(YKHO.all_sims[H5ew])
eFr6.sort()
tAX0 = eFr6[int(len(eFr6) - YKHO.param)]
mp07 = []
for H5ew in YKHO.all_sims.keys():
if H5ew[0] == mWFP and YKHO.all_sims[H5ew] >= tAX0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mp07(Y9ns, PU1l, G1Hx, hlel):\n return TaUL(Y9ns, PU1l, hlel).sort('Distance').take(oyIN.arange(G1Hx))",
"def CLQW(LNo8, VDkf, exwG, pmON):\n TaUL = {}\n KCHu = LNo8.shape\n for Xn71 in VDkf:\n VErX = hWT_(Xn71, KCHu, pmON)\n TaUL[Xn71] = oyIN.linalg.norm(LNo8 - VErX)\n return so... | [
"0.6770722",
"0.6397322",
"0.62952995",
"0.62652224",
"0.60191095",
"0.5990209",
"0.5983727",
"0.5977324",
"0.5947399",
"0.59389377",
"0.5927619",
"0.59262466",
"0.5924936",
"0.5902255",
"0.5899305",
"0.58927166",
"0.588936",
"0.5871506",
"0.5863693",
"0.58600324",
"0.5858980... | 0.8442236 | 0 |
Override object permissions to check editors and owners | def m4il(YKHO, QePW, tTee, YEnM):
NP5f = super(XKEG, YKHO).has_object_permission(QePW, tTee, YEnM)
NKcE = QePW.method
CBIr = QePW.user
if not CBIr.is_active or not CBIr.is_authenticated:
return NKcE in M_tO
if CBIr.is_superuser:
return True
if getattr(YEnM, 'is_private', False):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hO62(YKHO):\n return 'owner' in YKHO.permissions() and YKHO.editable()",
"def SOEp(YKHO, QePW, tTee, YEnM):\n return QePW.method in w0rQ.SAFE_METHODS or QePW.user == YEnM.owner or QePW.user.is_staff",
"def WugM(YKHO):\n return YKHO.checkPermission(SDjM)",
"def zUuR(YKHO, YEnM):\n CBIr = YKHO.... | [
"0.7515417",
"0.7433769",
"0.7354618",
"0.7279103",
"0.7279103",
"0.7279103",
"0.7279103",
"0.72388303",
"0.72132534",
"0.7183601",
"0.71735466",
"0.71055573",
"0.710366",
"0.7102281",
"0.7077479",
"0.7064278",
"0.7045758",
"0.70217526",
"0.7007375",
"0.69985265",
"0.6983731"... | 0.7454803 | 1 |
Internal static method for determining if a user is an owner or editor of an object. Takes in a default_return for certain conditions. | def kjmL(CBIr, YEnM, Xguo=False):
try:
qsJ6 = getattr(YEnM, 'owner')
S4wN = getattr(YEnM, 'authorized_editors')
except AttributeError:
return Xguo
tJFz = []
if S4wN is not None:
tJFz = [UVzH.id for UVzH in S4wN.all()]
if not qsJ6 and (not tJFz):
return Xguo
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I6_b(YKHO, CBIr):\n if not CBIr:\n return False\n if CBIr == YKHO.created_by or CBIr == YKHO.compiled_by:\n return True",
"def ZtSj(object, CBIr='user'):\n G9jH.info('if_is_owner(%s, %s)' % (str(type(object)), CBIr.username))\n try:\n if CBIr.is_superuser:\n G9jH.i... | [
"0.7178881",
"0.71192175",
"0.6952742",
"0.68623656",
"0.6821122",
"0.678787",
"0.6763406",
"0.67445195",
"0.6742144",
"0.6705185",
"0.66992414",
"0.6649398",
"0.66224045",
"0.66166013",
"0.6565566",
"0.65633774",
"0.6505258",
"0.64573294",
"0.6455595",
"0.6405736",
"0.637467... | 0.8858645 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Flat map latest async. Asynchronosly transforms the items emitted by an source sequence into observable streams, and mirror those items emitted by the mostrecently transformed observable sequence. | def asMs(YKHO, YAg3: Callable[[_TSource], Awaitable[AsyncObservable[_TResult]]]) -> xyy8[uA_v]:
return xyy8(bCYe(YKHO, asMs(YAg3))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wa_u(JZXy: Observable) -> cBwQ:\n return JZXy.pipe(IPme.map(YAg3), IPme.switch_latest())",
"def asMs(YAg3: Callable[[_TSource], Awaitable[AsyncObservable[_TResult]]]) -> YrBT[[vk0F[LSeX]], vk0F[uA_v]]:\n from .transform import asMs\n return asMs(YAg3)",
"def asMs(YAg3: Callable[[_TSource], Awaitab... | [
"0.764243",
"0.75974405",
"0.747828",
"0.7391713",
"0.70796245",
"0.70700526",
"0.6943266",
"0.69008404",
"0.66041416",
"0.65745485",
"0.6497422",
"0.64819324",
"0.633839",
"0.61707073",
"0.5990318",
"0.5955138",
"0.5889462",
"0.58127433",
"0.5773116",
"0.57517856",
"0.575053... | 0.76677036 | 0 |
Bypasses a specified number of elements at the end of an observable sequence. This operator accumulates a queue with a length enough to store the first `count` elements. As more elements are received, elements are taken from the front of the queue and produced on the result sequence. This causes elements to be delayed. | def BPJz(YKHO, UHFx: int) -> xyy8[LSeX]:
return xyy8(bCYe(YKHO, BPJz(UHFx))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tFGP(uYWe: Observable, UHFx: int) -> cBwQ:\n if UHFx <= 0:\n raise RuntimeError('count must be greather than zero')\n\n async def _subscribe(sApS: Observer) -> oZou:\n zWTy: int = 0\n\n async def _on_next(ZfUD: Any):\n nonlocal _count\n if zWTy < UHFx:\n ... | [
"0.67269087",
"0.6479704",
"0.63446265",
"0.609676",
"0.609676",
"0.6067499",
"0.6040041",
"0.6019569",
"0.59655875",
"0.5942399",
"0.5933436",
"0.5927632",
"0.5921216",
"0.58587253",
"0.5817171",
"0.5795639",
"0.57257557",
"0.56821436",
"0.56005144",
"0.55888945",
"0.5559468... | 0.65099424 | 1 |
Flap map async. Asynchronously projects each element of an observable sequence into an observable sequence and merges the resulting observable sequences back into one observable sequence. | def Umzz(YAg3: Callable[[_TSource], Awaitable[AsyncObservable[_TResult]]]) -> YrBT[[vk0F[LSeX]], vk0F[uA_v]]:
from .transform import Umzz
return Umzz(YAg3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Umzz(YAg3: Callable[[_TSource], Awaitable[AsyncObservable[_TResult]]]) -> YrBT[[vk0F[LSeX]], vk0F[uA_v]]:\n return capf(kzUF(YAg3), lch5(0))",
"def acK7(YAg3: Callable[[_TSource, int], Awaitable[AsyncObservable[_TResult]]]) -> YrBT[[vk0F[LSeX]], vk0F[uA_v]]:\n return capf(DgD0(YAg3), lch5(0))",
"def ... | [
"0.65337837",
"0.6528394",
"0.6411647",
"0.6400499",
"0.63544923",
"0.6345388",
"0.62611604",
"0.62215716",
"0.6096406",
"0.602814",
"0.59943",
"0.59935176",
"0.59701437",
"0.5930241",
"0.5878024",
"0.5862878",
"0.5832216",
"0.5828455",
"0.58162874",
"0.58115786",
"0.58039254... | 0.6515718 | 2 |
Flat map latest async. Asynchronosly transforms the items emitted by an source sequence into observable streams, and mirror those items emitted by the mostrecently transformed observable sequence. | def asMs(YAg3: Callable[[_TSource], Awaitable[AsyncObservable[_TResult]]]) -> YrBT[[vk0F[LSeX]], vk0F[uA_v]]:
from .transform import asMs
return asMs(YAg3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asMs(YKHO, YAg3: Callable[[_TSource], Awaitable[AsyncObservable[_TResult]]]) -> xyy8[uA_v]:\n return xyy8(bCYe(YKHO, asMs(YAg3)))",
"def wa_u(JZXy: Observable) -> cBwQ:\n return JZXy.pipe(IPme.map(YAg3), IPme.switch_latest())",
"def asMs(YAg3: Callable[[_TSource], Awaitable[AsyncObservable[_TResult]]... | [
"0.76678336",
"0.7640794",
"0.7478646",
"0.7391453",
"0.7079304",
"0.70704335",
"0.6943167",
"0.69004416",
"0.6604396",
"0.6573359",
"0.64975226",
"0.648135",
"0.6338294",
"0.61710083",
"0.5990545",
"0.59545994",
"0.5888743",
"0.5811505",
"0.5772877",
"0.57516676",
"0.5750125... | 0.7597498 | 2 |
Map asynchrnously. Returns an observable sequence whose elements are the result of invoking the async mapper function on each element of the source. | def kzUF(YAg3: Callable[[_TSource], Awaitable[_TResult]]) -> YrBT[[vk0F[LSeX]], vk0F[uA_v]]:
from .transform import kzUF as K69f
return K69f(YAg3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Umzz(YAg3: Callable[[_TSource], Awaitable[AsyncObservable[_TResult]]]) -> YrBT[[vk0F[LSeX]], vk0F[uA_v]]:\n from .transform import Umzz\n return Umzz(YAg3)",
"def map(YAg3: Callable[[_TSource], _TResult]) -> YrBT[[vk0F[LSeX]], vk0F[uA_v]]:\n\n def DCgT(next: Callable[[_TResult], Awaitable[None]], WK... | [
"0.77153087",
"0.75952065",
"0.75134397",
"0.74476576",
"0.73978275",
"0.7179817",
"0.7170172",
"0.714383",
"0.71226645",
"0.71050376",
"0.70972306",
"0.70484656",
"0.6944774",
"0.68747956",
"0.6723299",
"0.66941106",
"0.6585114",
"0.6556133",
"0.6547907",
"0.65461576",
"0.65... | 0.7842341 | 0 |
Returns an observable sequence whose elements are the result of invoking the async mapper function by incorporating the element's index on each element of the source. | def DgD0(YAg3: Callable[[_TSource, int], Awaitable[_TResult]]) -> YrBT[[vk0F[LSeX]], vk0F[uA_v]]:
from .transform import DgD0
return DgD0(YAg3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DQgD(YAg3: Callable[[_TSource, int], _TResult]) -> YrBT[[vk0F[LSeX]], vk0F[uA_v]]:\n return capf(WBt2(Q6uT.infinite), YcfV(YAg3))",
"def _cFW(nQcx: Optional[MapperIndexed[_T1, _T2]]=None) -> YrBT[[cBwQ[IqIn]], cBwQ[cP0J]]:\n from ._map import map_indexed_\n return map_indexed_(nQcx)",
"def map(Jfy... | [
"0.66756433",
"0.6502945",
"0.64859617",
"0.63654035",
"0.6286694",
"0.626665",
"0.6249485",
"0.60452604",
"0.604288",
"0.59871715",
"0.5984447",
"0.59787273",
"0.5964109",
"0.59355927",
"0.5917451",
"0.5913545",
"0.5856679",
"0.58388305",
"0.5838323",
"0.5755795",
"0.5748494... | 0.5953294 | 13 |
Bypasses a specified number of elements at the end of an observable sequence. This operator accumulates a queue with a length enough to store the first `count` elements. As more elements are received, elements are taken from the front of the queue and produced on the result sequence. This causes elements to be delayed. | def BPJz(UHFx: int) -> YrBT[[vk0F[LSeX]], vk0F[LSeX]]:
from .filtering import BPJz
return BPJz(UHFx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tFGP(uYWe: Observable, UHFx: int) -> cBwQ:\n if UHFx <= 0:\n raise RuntimeError('count must be greather than zero')\n\n async def _subscribe(sApS: Observer) -> oZou:\n zWTy: int = 0\n\n async def _on_next(ZfUD: Any):\n nonlocal _count\n if zWTy < UHFx:\n ... | [
"0.6727301",
"0.65105563",
"0.6479572",
"0.6345167",
"0.6095491",
"0.6095491",
"0.60683244",
"0.6020193",
"0.59652287",
"0.59437454",
"0.59330237",
"0.59286106",
"0.59221065",
"0.58591247",
"0.58174807",
"0.57955545",
"0.5726461",
"0.5681106",
"0.5601257",
"0.558769",
"0.5560... | 0.6040343 | 7 |
Return Datasets containing the training data, the validation data, and the testing data. | def QJji(YKHO, Yxf6: int=1500, hofR: int=1600) -> AzJI[ZylS.data.Dataset, ZylS.data.Dataset, ZylS.data.Dataset]:
__n6 = YKHO.to_tf()
t4zr = __n6.take(Yxf6)
__n6 = __n6.skip(Yxf6)
Z0Wl = __n6.take(hofR)
__n6 = __n6.skip(hofR)
XxFT = __n6
return (XxFT, Z0Wl, t4zr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Pkd(YKHO):\n ccBJ = None\n if YKHO.params['with_category_grouping']:\n if 'category_file' in YKHO.params:\n ccBJ = BfDw.build_po_category_lookup_table(YKHO.params['category_file'])\n else:\n ccBJ = BfDw.build_mp_category_lookup_table()\n EPL3 = FX8h.get_training_da... | [
"0.74771386",
"0.74711114",
"0.73917407",
"0.7349336",
"0.73262733",
"0.7265392",
"0.72537136",
"0.7160876",
"0.7151356",
"0.7110157",
"0.7102848",
"0.70373493",
"0.7021527",
"0.69809747",
"0.69731635",
"0.6947813",
"0.69363964",
"0.6928631",
"0.6915035",
"0.68953997",
"0.689... | 0.72417074 | 7 |
returns a string representation of the LibraryCollection | def zAg0(YKHO):
return '\n'.join(map(lambda _e0h: str(_e0h), YKHO.libraries)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO) -> str:\n return f'Collections({YKHO.collections})'",
"def zAg0(YKHO):\n return str(YKHO.collection)",
"def wHJl(YKHO) -> str:\n return f'Collection({YKHO.id_})'",
"def Xnil(xUwc):\n return '\\n'.join(('[' + str(ICn2) + ']' for ICn2 in xUwc))",
"def zAg0(YKHO):\n return 'Image... | [
"0.7394159",
"0.72615665",
"0.6963556",
"0.67142445",
"0.658782",
"0.6530999",
"0.65247315",
"0.65247315",
"0.65247315",
"0.65247315",
"0.65247315",
"0.65247315",
"0.65247315",
"0.65247315",
"0.65247315",
"0.65221286",
"0.65142596",
"0.6357264",
"0.63212574",
"0.6313815",
"0.... | 0.6906023 | 3 |
Test error handling when response has an error status. | def MltV(YKHO, kZ3V):
with sisH.Mocker() as Sdbo:
Sdbo.register_uri('GET', 'http://%s/Status_Lan.live.asp' % YrYC, status_code=444)
with dlp2(1):
assert d_3h(YKHO.hass, Sugg, {Sugg: {kxrp: 'ddwrt', sHGu: YrYC, kG_n: 'fake_user', mLFF: '0'}})
YKHO.assertTrue('Invalid response ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gH5N(geh0):\n geh0.raise_for_status()\n if 'error' in geh0.json():\n raise G4JS.exceptions.HTTPError(geh0.json()['error'])",
"def gfDP(geh0):\n if not geh0.status_code == 200:\n G9jH.error('Error %s... ', geh0.status_code)\n G9jH.error(geh0.text)\n HwRy.exit()",
"def w6... | [
"0.7672067",
"0.76516736",
"0.76275134",
"0.73966676",
"0.7386022",
"0.73542845",
"0.7354093",
"0.73481363",
"0.7332612",
"0.73151886",
"0.7308175",
"0.72962654",
"0.7295004",
"0.728293",
"0.72821885",
"0.72780687",
"0.7271215",
"0.72626305",
"0.72346175",
"0.7204806",
"0.718... | 0.7101191 | 26 |
Serializes a dictionary to JSON format and encodes as UTF8 | def KCNH(pB3N) -> str:
return qQXR.dumps(pB3N).encode('utf8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1Ec(cmPJ):\n return qQXR.dumps(cmPJ)",
"def qA1n(YKHO, YGFP):\n return qQXR.dumps(YGFP).encode('utf-8')",
"def e70g(Mjw9):\n return qQXR.dumps(Mjw9)",
"def u7bx(cmPJ):\n return qQXR.dumps(cmPJ, indent=4, default=lambda WKvO: WKvO.__dict__)",
"def fOVL(Y69S):\n Y69S = qQXR.dumps(Y69S)\n ... | [
"0.7502861",
"0.73538935",
"0.7207982",
"0.718023",
"0.70555174",
"0.69460547",
"0.6848357",
"0.684737",
"0.6844347",
"0.68191123",
"0.6806488",
"0.68037105",
"0.6765401",
"0.6750557",
"0.67311144",
"0.6719577",
"0.6718442",
"0.6716592",
"0.66773295",
"0.6652844",
"0.66347027... | 0.0 | -1 |
Concentration to number of molecules | def w1Rb(YKHO, BWXx, PXGI, _Fei=None):
if _Fei is None:
_Fei = YKHO.config
if not PXGI:
return BWXx
if PXGI in ['molecule/m^3', 'molecule/m^2']:
return BWXx
IfHL = {'molecule/L': 1000 / YKHO.avogadro, 'mol/m^3': 1, 'mmol/L': 1, 'micromol/L': 0.001, 'M': 1000.0, 'mol/L': 1000.0, '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zdqG(YKHO, Vsy2, D1sU=None):\n raise NotImplementedError()",
"def yTgt(N9D1):\n return Ya6k(N9D1, AtomicNumber=6)",
"def OlIj(N9D1):\n return Ya6k(N9D1, AtomicNumber=17)",
"def CwkZ(N9D1):\n ...",
"def d5s2(N9D1):\n ...",
"def fz5c(N9D1):\n return OJ0g.CalcNumAtomStereoCenters(N9D1)... | [
"0.7223746",
"0.71024007",
"0.7056224",
"0.69410217",
"0.68087435",
"0.6750173",
"0.67378896",
"0.6640823",
"0.66321415",
"0.660469",
"0.6563422",
"0.65427864",
"0.65302145",
"0.64294636",
"0.63877267",
"0.6368539",
"0.6356726",
"0.63518053",
"0.6348091",
"0.63470364",
"0.633... | 0.0 | -1 |
Return the singular value for the lth basis function | def A3OT(YKHO, vC9B):
return YKHO._sl[vC9B] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mYbl(YKHO):\n if YKHO.square:\n return YKHO.determinant == 0\n else:\n return False",
"def o4sw(oxWs, vC9B):\n return oxWs / vC9B",
"def jrSF(YKHO):\n return YKHO._singular()",
"def Em0p(o4sw):\n return YaaF(o4sw * -RwSL(UEfL(o4sw), T4ML)[0])",
"def K5IV(YKHO):\n N3HV = ... | [
"0.64689434",
"0.64276487",
"0.63291097",
"0.6290127",
"0.61701226",
"0.6147843",
"0.61127824",
"0.60835767",
"0.6067238",
"0.60521406",
"0.60512817",
"0.60433745",
"0.59519845",
"0.59271806",
"0.5851155",
"0.583942",
"0.58356",
"0.5825455",
"0.58044094",
"0.58036166",
"0.580... | 0.0 | -1 |
Creates and saves a User with the given email and password. | def lYUQ(YKHO, D3lj, jTXt=None):
if not D3lj:
raise ValueError('Users must have an email address')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj))
CBIr.set_unusable_password()
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ... | [
"0.87203795",
"0.8471124",
"0.8462932",
"0.84520763",
"0.84274495",
"0.84224284",
"0.84208685",
"0.84165066",
"0.8410754",
"0.8409538",
"0.8409538",
"0.8401648",
"0.84014827",
"0.8391565",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.... | 0.0 | -1 |
Convert a quaternion into a 3x3 rotation matrix quaternion (an array of 4 elements) | def Hf7V(slpS: np.ndarray) -> oyIN.ndarray:
assert len(slpS.shape) == 1
jCyH = slpS[0]
PMVZ = slpS[1]
MDnR = slpS[2]
zDbD = slpS[3]
return oyIN.array([[1.0 - 2.0 * PMVZ ** 2.0 - 2.0 * MDnR ** 2.0, 2 * jCyH * PMVZ - 2 * MDnR * zDbD, 2 * jCyH * MDnR + 2 * PMVZ * zDbD], [2 * jCyH * PMVZ + 2 * MDnR ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KU6a(slpS):\n vexM = oyIN.array(slpS, dtype=oyIN.float64, copy=True)\n exwG = oyIN.dot(vexM, vexM)\n if exwG < oyIN.finfo(float).eps * 4.0:\n return oyIN.identity(4)\n vexM *= oyIN.sqrt(2.0 / exwG)\n vexM = oyIN.outer(vexM, vexM)\n return oyIN.array([[1.0 - vexM[2, 2] - vexM[3, 3], vex... | [
"0.8298778",
"0.829261",
"0.82505304",
"0.82032824",
"0.8202275",
"0.8201059",
"0.81860167",
"0.81149083",
"0.80856925",
"0.7938868",
"0.79033774",
"0.7848348",
"0.7797844",
"0.77756715",
"0.7748246",
"0.7739137",
"0.7736498",
"0.7705147",
"0.7697815",
"0.7692762",
"0.7681818... | 0.8146483 | 7 |
Update an existing product in Inventory 1 | def P027(YKHO):
rsQ0 = BPCo()
_hkX = YKHO.app.post('/api/inventory', json=rsQ0.serialize(), content_type=sjXb.KEY_CONTENT_TYPE_JSON)
YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_201_CREATED)
Sgcx = 30
CkW3 = _hkX.get_json()
CkW3[sjXb.KEY_QTY] = Sgcx
_hkX = YKHO.app.put('/api/inventory/{}/con... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NaEq(YKHO):\n zNv5 = YKHO.request.user.branch_office.productsinventory\n wWtx = zNv5.productinventoryitem_set.filter(product=YKHO.original_product).first()\n wWtx.quantity -= YKHO.instance.quantity\n wWtx.save()",
"def z_bY(YKHO, mWFP, gF4c, EMM6):\n if YKHO.is_product_available(mWFP):\n ... | [
"0.7659766",
"0.747602",
"0.7389046",
"0.72555536",
"0.72207093",
"0.71640193",
"0.7158078",
"0.7156932",
"0.7139246",
"0.7094682",
"0.7081707",
"0.7068218",
"0.7041692",
"0.70278096",
"0.6997931",
"0.6975111",
"0.69364816",
"0.69289404",
"0.68890524",
"0.6875915",
"0.6825427... | 0.694396 | 16 |
Testing Updates NOT found | def lYhC(YKHO):
Ii1o = 9999
eqpl = 'new'
_hkX = YKHO.app.put('/api/inventory/{}/condition/{}'.format(Ii1o, eqpl), json={}, content_type=sjXb.KEY_CONTENT_TYPE_JSON)
YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_404_NOT_FOUND)
_hkX = YKHO.app.put('/api/inventory/{}/condition/{}/restock'.format(Ii1o, eq... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pe29(YKHO):\n pass",
"def pM7j(YKHO):\n pass",
"def so2P(YKHO):\n pass",
"def fvak(YKHO):\n pass",
"def Fesj(YKHO):\n _yOu = YKHO.model.update(10, {'key': 'updated value'})\n YKHO.assertIsNone(_yOu)",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO, qIxc... | [
"0.78907055",
"0.780869",
"0.74394876",
"0.7320415",
"0.7229323",
"0.71757114",
"0.71757114",
"0.7044318",
"0.6997039",
"0.6976791",
"0.6954178",
"0.69523674",
"0.6948742",
"0.69263804",
"0.6921177",
"0.6911838",
"0.69047683",
"0.68891937",
"0.6865341",
"0.6818778",
"0.680317... | 0.7456558 | 2 |
Simple euclidean distance between two points >>> m = Model( [122.5, 37.5, 122, 38], './time_travel.npy') >>> p1 = m.yx(37.75, 122.25) >>> p2 = m.yx(37.77, 122.27) >>> m.dist(p1,p2) 57.280013966478741 >>> m.dist(p1,p1) 0.0 | def pImw(YKHO, EBgd, HpuQ):
return int(epAf.sqrt((HpuQ[0] - EBgd[0]) ** 2 + (HpuQ[1] - EBgd[1]) ** 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qKJ5(YKHO, lCHq, ANJu):\n return PZyS((abs(lCHq[0] - ANJu[0]) + abs(lCHq[1] - ANJu[1])) ** 2)",
"def Dm2A(YKHO, lCHq, ANJu):\n Jw7X = abs(lCHq[0] - ANJu[0])\n eUWA = abs(lCHq[1] - ANJu[1])\n return Jw7X * Jw7X + eUWA * eUWA",
"def qKJ5(YKHO, fJfP, hWOy):\n return PZyS((fJfP[0] - hWOy[0]) ** ... | [
"0.76326317",
"0.75777006",
"0.75637245",
"0.7543164",
"0.74850196",
"0.748075",
"0.7477321",
"0.7430006",
"0.7407658",
"0.74027956",
"0.7400724",
"0.7400444",
"0.73875153",
"0.73866856",
"0.7363728",
"0.7357856",
"0.7351131",
"0.7349756",
"0.73400754",
"0.7337527",
"0.732904... | 0.71831673 | 53 |
Function get full list of objects and then divided into a number of parts. Last part may be bigger, than other. Function return a list of part of full list. | def UygK(YKHO, QMYe, Lmtm):
iOjM = []
JLdq = len(QMYe)
if JLdq > 0 and Lmtm > 1:
try:
owiJ = JLdq // Lmtm
for YRbF in range(Lmtm):
mrj1 = [QMYe[YRbF * owiJ + G1Hx] for G1Hx in range(owiJ)]
iOjM.append(mrj1)
iOjM[Lmtm - 1] += QMYe[Lm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NI_c(YKHO):\n p9NO = range(9)\n YKHO.assertEqual([[0, 1, 2], [3, 4, 5], [6, 7, 8]], Bbv3(p9NO, 3))",
"def XbbQ(YKHO):\n p9NO = range(10)\n YKHO.assertEqual([[0, 1, 2, 3], [4, 5, 6], [7, 8, 9]], Bbv3(p9NO, 3))",
"def REGn(YKHO):\n p9NO = [0, 1]\n YKHO.assertEqual([[0], [1], []], Bbv3(p9NO,... | [
"0.68069875",
"0.6686192",
"0.65781146",
"0.6525503",
"0.64666516",
"0.6423704",
"0.63701403",
"0.6353164",
"0.6335585",
"0.6332317",
"0.6310715",
"0.6310715",
"0.628338",
"0.6281651",
"0.6277977",
"0.6267806",
"0.62631005",
"0.62588626",
"0.6229044",
"0.6187644",
"0.6185344"... | 0.7093586 | 0 |
Function return random textstring definite length, that will be use as login or password. 1 number number of strings, 2 string's length, 3 use or not Numbers, 4 use or not English Upper Case Chars, 5 use or not English Lower Case Chars, 6 use or not Russian Upper case chars, 7 use or not Russian Lower Case Chars, 8 use... | def lL17(YKHO, u54L=8, c_GI=True, woME=True, DKPp=True, zfbv=False, EMXI=False, N6AF=False):
gZgb = {'dicNum': '1234567890', 'dicEngCharUpperCase': 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'dicEngCharLowerCase': 'abcdefghijklmnopqrstuvwxyz', 'dicRuCharUpperCase': 'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯ', 'dicRuCharLowerCase': 'абв... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JVJq(TcGQ=6, KLk8=16):\n jTXt = str()\n u54L = tuKI.randint(TcGQ, KLk8)\n\n def Lgsv():\n return tuKI.choice(vIwR.digits)\n\n def FjP9():\n GIN8 = tuKI.choice(hRXf)\n if tuKI.random() < 0.35:\n GIN8 = GIN8[0].upper() + GIN8[1:]\n return GIN8\n\n def oTFM():... | [
"0.75206333",
"0.74583596",
"0.7444777",
"0.73698527",
"0.73252445",
"0.7322035",
"0.7276204",
"0.72653127",
"0.72542876",
"0.72463965",
"0.71468717",
"0.7134653",
"0.71275836",
"0.7124566",
"0.71243393",
"0.7119091",
"0.7114685",
"0.71080035",
"0.70677596",
"0.7059642",
"0.7... | 0.67535895 | 84 |
Function return list of random textstring definite length, that will be use as login or password. 1 number number of strings, 2 string's length, 3 use or not Numbers, 4 use or not English Upper Case Chars, 5 use or not English Lower Case Chars, 6 use or not Russian Upper case chars, 7 use or not Russian Lower Case Char... | def angE(YKHO, mSrU=10, u54L=8, c_GI=True, woME=True, DKPp=True, zfbv=False, EMXI=False, N6AF=False):
tULR = []
try:
if mSrU > 0:
for YRbF in range(mSrU):
tULR.append(YKHO.GenerateRandomString(u54L, c_GI, woME, DKPp, zfbv, EMXI, N6AF))
except BaseException:
tULR =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fJGE(w3x3: int=10) -> str:\n gZgb = 'abcdefghijklmnopqrstuvwxyz'\n QIV9 = gZgb.upper()\n rmc3 = '+-*/#!*?'\n d4Wd = []\n for YRbF in range(w3x3 // 3):\n d4Wd.append(gZgb[tuKI.randrange(len(gZgb))])\n d4Wd.append(QIV9[tuKI.randrange(len(QIV9))])\n d4Wd.append(str(tuKI.randran... | [
"0.70584536",
"0.6981235",
"0.6962943",
"0.6878629",
"0.6857746",
"0.68466765",
"0.6825888",
"0.6817539",
"0.68135065",
"0.6788621",
"0.6750423",
"0.67500514",
"0.6749433",
"0.67370045",
"0.67133987",
"0.66929543",
"0.6689922",
"0.66383785",
"0.6634783",
"0.6619867",
"0.66164... | 0.0 | -1 |
removes keys from a dict those values == None json schema validation might fail if they are set and the type or format of the property does not match | def J2b4(sogh):
TDnD = dict()
for H5ew in sogh.keys():
BWXx = sogh[H5ew]
if BWXx is not None:
TDnD[H5ew] = BWXx
return TDnD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ATdo(YKHO, nPrm):\n if isinstance(nPrm, dict):\n for H5ew in list(nPrm.keys()):\n if isinstance(H5ew, str) and H5ew.startswith('$') or H5ew in ('_id', 'created_by', 'created_at', 'updated_by', 'updated_at', 'isRegistered'):\n del nPrm[H5ew]\n return nPrm",
"def e5iB(gFs... | [
"0.7307282",
"0.7265392",
"0.7252435",
"0.72285944",
"0.7205171",
"0.7104063",
"0.706393",
"0.6910494",
"0.6899309",
"0.6842003",
"0.6815728",
"0.680144",
"0.6799276",
"0.67935437",
"0.67905796",
"0.67677534",
"0.6767442",
"0.674619",
"0.67406976",
"0.67302614",
"0.6713322",
... | 0.71239847 | 5 |
A dict of removed keys and their values. | def kSdD(YKHO):
return YKHO._diff.get(XI9x.REMOVE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aie8(Csk6, sjXb):\n return dict([(G1Hx, Ty9i) for G1Hx, Ty9i in Csk6.iteritems() if G1Hx not in sjXb])",
"def ESPd(Op6c, sjXb):\n return {YSA3: Op6c[YSA3] for YSA3 in Op6c if YSA3 not in sjXb}",
"def KEYS(eJh7):\n return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in eJh7.iteritems() if not '_pass' in G1Hx)... | [
"0.72913337",
"0.6997427",
"0.683681",
"0.6692739",
"0.6689571",
"0.65996844",
"0.6580206",
"0.6435327",
"0.64237535",
"0.6418109",
"0.6380903",
"0.6370979",
"0.6350133",
"0.6271148",
"0.62620896",
"0.62595373",
"0.62304246",
"0.62182355",
"0.62046486",
"0.6204576",
"0.618842... | 0.0 | -1 |
The message associated with this merge. | def Ol8d(YKHO):
return YKHO._message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eair(YKHO):\n return YKHO._message",
"def Eair(YKHO):\n return YKHO._message",
"def Eair(YKHO):\n return YKHO._msg",
"def Eair(YKHO):\n return YKHO.__message",
"def Eair(YKHO):\n return YKHO.message",
"def Eair(YKHO):\n return YKHO.__message",
"def Eair(YKHO):\n return YKHO.__m... | [
"0.83632964",
"0.83632964",
"0.8312473",
"0.82500374",
"0.8233719",
"0.8184967",
"0.8184967",
"0.8107321",
"0.8048278",
"0.79969794",
"0.7940977",
"0.7940977",
"0.7937979",
"0.79145086",
"0.7872159",
"0.786649",
"0.78266424",
"0.78252953",
"0.7758445",
"0.766991",
"0.766991",... | 0.800963 | 11 |
Returns a sklearn classifier ready to be trained on the data. Note that this classifier pipeline includes the vectorizer, to it consumes message text directly. Returns an sklearn pipeline object | def n8cN():
nPIK = Y0rt([('vectorizer', oNB5(tokenizer=wr3U, stop_words=hwHU)), ('classifier', v9Rb(n_estimators=100, max_features=0.1, n_jobs=-1))])
return nPIK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cc7Y(AmnI, EcVT, LVAh=None):\n C3ST = Y0rt([('vectorizer', oNB5()), ('classifier', AmnI())])\n C3ST.fit(EcVT, LVAh)\n return C3ST",
"def Cc7Y(AmnI, EcVT, LVAh=None):\n if isinstance(AmnI, type):\n AmnI = AmnI()\n C3ST = Y0rt([('preprocessor', bFIR()), ('vectorizer', oNB5(tokenizer=_E99,... | [
"0.75670636",
"0.74173486",
"0.7414998",
"0.7413465",
"0.7328259",
"0.7230315",
"0.70007026",
"0.6819004",
"0.67905354",
"0.67666024",
"0.67576444",
"0.67308414",
"0.6647562",
"0.6630547",
"0.66144985",
"0.65987796",
"0.65881264",
"0.6582028",
"0.65786856",
"0.6549902",
"0.65... | 0.6752722 | 11 |
Create a view of `array` which for every point gives the ndimensional neighbourhood of size window. New dimensions are added at the end of `array` or after the corresponding original dimension. | def agUT(qw7D, KnxT=(0,), rdxr=None, gKRk=None, MPlV=None, P5kR=False):
qw7D = oyIN.asarray(qw7D)
JNn7 = oyIN.asarray(qw7D.shape)
KnxT = oyIN.atleast_1d(KnxT).astype(int)
if MPlV is not None:
MPlV = oyIN.atleast_1d(MPlV)
yzQ0 = oyIN.zeros(qw7D.ndim, dtype=int)
for jDK_, zNig in z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FqUP(ezWE, KnxT, jDK_=-1):\n ROpF = ezWE.shape\n uze5 = list(ezWE.shape)\n uze5[jDK_] -= KnxT - 1\n assert uze5[jDK_] > 0\n return oyIN.lib.index_tricks.as_strided(ezWE, uze5 + [KnxT], ezWE.strides + (ezWE.strides[jDK_],))",
"def FqUP(ezWE, KnxT, jDK_=-1):\n ROpF = list(ezWE.shape)\n ROp... | [
"0.67879623",
"0.65728104",
"0.65201634",
"0.6336496",
"0.6325671",
"0.616469",
"0.60606617",
"0.6038663",
"0.60049057",
"0.5993527",
"0.598365",
"0.59289235",
"0.5914046",
"0.590111",
"0.58984137",
"0.58882844",
"0.58435214",
"0.58125234",
"0.58123475",
"0.58115464",
"0.5797... | 0.5479694 | 49 |
Change the arrays axes order or combine multiple axes into one. Creates a view if possible, but when axes are combined will usually return a copy. | def qvpc(qw7D, MPlV, jth9=False, T4Wy='C'):
Wity = []
for jzdc in MPlV:
if jzdc is None:
Wity.append(None)
else:
jzdc = oyIN.atleast_1d(jzdc)
if jzdc.ndim > 1:
raise ValueError('All items of `axes` must be zero or one dimensional.')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELjh(YKHO):\n tTee = RCd1[YKHO.view]\n YKHO.axes_alive = [True, True, True]\n YKHO.angles = [(0, 0), (0, 0), (0, 0)]\n for YRbF in range(len(tTee)):\n if YRbF == 0:\n continue\n if tTee[YRbF] == 'off':\n YKHO.axes_alive[YRbF - 1] = False\n YKHO.angles[... | [
"0.67566097",
"0.6468831",
"0.64233017",
"0.6303194",
"0.6094817",
"0.5882532",
"0.58787435",
"0.58108157",
"0.58060306",
"0.5773251",
"0.56899863",
"0.5677383",
"0.56616044",
"0.5636547",
"0.5613321",
"0.5608976",
"0.5604638",
"0.5578679",
"0.5533346",
"0.5533346",
"0.54643"... | 0.5436331 | 21 |
Tests the creation of a single incident object. | def WRIy():
xDh8 = RZqF(name='Random incident', labels=['dumpster-fire'], internal_references=['ref1', 'ref2'])
assert xDh8._stix_object is not None
assert isinstance(xDh8._stix_object, _osf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nKKW(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'create_incident')",
"def nKKW(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'create_incident')",
"def OFh3():\n from cfltools.database import Incident\n RqgG = Incident(incident_id=1, incident_name='TestIncident', folder_loc='/test/l... | [
"0.6968782",
"0.6968782",
"0.69486",
"0.6915606",
"0.6866705",
"0.686465",
"0.68167084",
"0.67393947",
"0.6716121",
"0.66255164",
"0.6426304",
"0.63529116",
"0.6198253",
"0.61718",
"0.6140907",
"0.60543406",
"0.6045444",
"0.60304797",
"0.6020608",
"0.60186374",
"0.60089797",
... | 0.8003878 | 0 |
Tests that a incident object is succesfully updated. | def if4y():
xDh8 = RZqF(name='Random incident', labels=['dumpster-fire'], internal_references=['ref1', 'ref2'])
xDh8.save()
Cdez = xDh8.id
sPBL = xDh8.update({'name': 'Another random incident'})
assert sPBL.id == Cdez
assert sPBL.name == 'Another random incident'
assert sPBL.labels == ['dump... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XZW_(YKHO):\n nPrm = {'new_state': 'LOCKING_ACCOUNT', 'response': 'this should succeed'}\n YKHO.update_and_assert_status(nPrm)\n _Itn = Ta62.objects.get(id=YKHO.retirement.id)\n assert _Itn.current_state == qbQo.objects.get(state_name='LOCKING_ACCOUNT')\n assert _Itn.last_state == qbQo.objects.g... | [
"0.71624863",
"0.68927354",
"0.6868597",
"0.6852104",
"0.67526066",
"0.6742165",
"0.6742165",
"0.6729827",
"0.6723458",
"0.6713522",
"0.6710145",
"0.6686095",
"0.66784376",
"0.66642034",
"0.6644193",
"0.6635339",
"0.66151756",
"0.66049147",
"0.6603274",
"0.65763134",
"0.65758... | 0.73871475 | 0 |
Assert holidays dict is empty. | def z4Hs(YKHO, *qIxc):
YKHO._assertNoHolidays('holidays', *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VyWn(YKHO, *qIxc):\n YKHO._assertNoHoliday('holidays', *qIxc)",
"def YQur(YKHO, *qIxc):\n YKHO._assertNoHolidays('holidays_non_observed', *qIxc)",
"def rmvn(YKHO, *qIxc):\n YKHO._assertNoHoliday('holidays_non_observed', *qIxc)",
"def TfI8(YKHO, *qIxc):\n YKHO._assertHolidays('holidays_non_obs... | [
"0.76606345",
"0.7427429",
"0.7393799",
"0.7270739",
"0.7133715",
"0.69021237",
"0.67817587",
"0.6695554",
"0.6659415",
"0.6615177",
"0.6483334",
"0.64636683",
"0.64611965",
"0.6351362",
"0.631362",
"0.62649155",
"0.62645835",
"0.6119814",
"0.6112666",
"0.6047584",
"0.6046943... | 0.77221954 | 0 |
Assert nonobserved holidays dict is empty. | def YQur(YKHO, *qIxc):
YKHO._assertNoHolidays('holidays_non_observed', *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rmvn(YKHO, *qIxc):\n YKHO._assertNoHoliday('holidays_non_observed', *qIxc)",
"def TfI8(YKHO, *qIxc):\n YKHO._assertHolidays('holidays_non_observed', *qIxc)",
"def _AuG(YKHO, *qIxc):\n YKHO._assertHoliday('holidays_non_observed', *qIxc)",
"def z4Hs(YKHO, *qIxc):\n YKHO._assertNoHolidays('holid... | [
"0.78919524",
"0.77521265",
"0.7621137",
"0.7583575",
"0.7543875",
"0.7382939",
"0.70073915",
"0.6855062",
"0.66557074",
"0.66496646",
"0.66166645",
"0.6583367",
"0.6246099",
"0.61954194",
"0.61936426",
"0.61659503",
"0.6160344",
"0.61555785",
"0.611115",
"0.6108915",
"0.6072... | 0.795973 | 0 |
Create a Dense layer with biases and regularization as specified by cmd_args. | def U6wU(K8MZ, *qIxc, **B2fa):
B2fa['use_bias'] = K8MZ.use_bias
B2fa['kernel_regularizer'] = K8MZ.l2_regularizer
return l6ZH(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vSM2(qIxc, C3ST, _SEp, GhuM=None):\n for TVTK in _SEp:\n try:\n C3ST.add(U6wU(qIxc, TVTK))\n except ValueError:\n C3ST.add(U6wU(qIxc, TVTK, input_shape=GhuM))\n C3ST.add(MroH(qIxc.activation))\n if qIxc.batch_norm:\n if qIxc.mean_to_zero:\n ... | [
"0.60226506",
"0.60123295",
"0.58997554",
"0.5793263",
"0.57859004",
"0.5772669",
"0.57504684",
"0.5730197",
"0.5702567",
"0.56841904",
"0.5683202",
"0.5676847",
"0.5641529",
"0.5624738",
"0.5618366",
"0.56095755",
"0.55945915",
"0.55945843",
"0.5555226",
"0.55341566",
"0.552... | 0.7636377 | 0 |
Create a Conv2D layer with biases and regularization as specified by cmd_args. | def adXX(K8MZ, *qIxc, **B2fa):
B2fa['use_bias'] = K8MZ.use_bias
B2fa['kernel_regularizer'] = K8MZ.l2_regularizer
return yHwh(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XbJP(*qIxc, **B2fa):\n RVvM = dict(kernel_initializer='he_normal', kernel_regularizer=V70B(0.0001))\n RVvM['padding'] = 'same'\n RVvM.update(B2fa)\n return yHwh(*qIxc, **RVvM)",
"def v9Xb(*qIxc, **B2fa):\n uWcO = {'kernel_regularizer': yjPc.l2(0.0005), 'padding': 'valid' if B2fa.get('strides')... | [
"0.728853",
"0.68454915",
"0.68219507",
"0.67912203",
"0.67912203",
"0.67607397",
"0.67369187",
"0.6722222",
"0.6712281",
"0.6712281",
"0.6712281",
"0.6695205",
"0.66910446",
"0.66455007",
"0.6637622",
"0.6604724",
"0.65687007",
"0.6521142",
"0.6465627",
"0.64639306",
"0.6457... | 0.8494248 | 0 |
Return the number of data points in the data set. Returns | def szAg(YKHO):
return len(YKHO.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LSeY(YKHO):\n return YKHO.__numDataPoints",
"def GLTN(YKHO):\n return YKHO.inputdata().GetNumberOfPoints()",
"def UoOD(YKHO):\n return len(YKHO.df)",
"def _Xtk(YKHO):\n return len(YKHO._points)",
"def Me_n(YKHO):\n return YKHO.intrinsicValue('pointcount')",
"def n1d8(YKHO):\n return... | [
"0.876988",
"0.81966645",
"0.8098988",
"0.7990814",
"0.79862213",
"0.79784435",
"0.79784435",
"0.78642184",
"0.7853583",
"0.78519833",
"0.78212553",
"0.78153396",
"0.7798851",
"0.77813053",
"0.77813053",
"0.77784693",
"0.77784693",
"0.7727358",
"0.77162564",
"0.77074564",
"0.... | 0.0 | -1 |
Create a copy of the data set with no data shared with the original. You can safely modify the copy without it affecting the original. Returns | def jth9(YKHO):
return jth9.deepcopy(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def To8r(YKHO):\n __n6 = YKHO.__new__(YKHO.__class__)\n __n6.transform = YKHO.transform\n __n6._data = []\n __n6._indices = []\n __n6._rng = YKHO._rng\n return __n6",
"def LHwl(YKHO):\n return rreK(YKHO.values, YKHO.header)",
"def jth9(YKHO):\n Cc00 = QyXt()\n Cc00.row_hints = YKHO.r... | [
"0.7862994",
"0.77174264",
"0.74908924",
"0.7426881",
"0.7399086",
"0.73137903",
"0.7285414",
"0.7276226",
"0.72473633",
"0.72448605",
"0.7218017",
"0.7210862",
"0.71612173",
"0.7152457",
"0.71304834",
"0.7122832",
"0.7106744",
"0.7083339",
"0.7054116",
"0.703871",
"0.7028303... | 0.67748976 | 87 |
Add a preconstructed BaseTracer instance to this data set. If you just have, for example the z and n(z) data then use the add_tracer method instead. | def _CPh(YKHO, ko3c):
YKHO.tracers[ko3c.name] = ko3c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JQ_n(YKHO, YJme, mWFP, *qIxc, **B2fa):\n ko3c = CE07.make(YJme, mWFP, *qIxc, **B2fa)\n YKHO.add_tracer_object(ko3c)",
"def XkBH(YKHO, sB1G, Xkhf, BWXx, eA7n=False, **dJ1p):\n if YKHO.has_covariance():\n raise ValueError('You cannot add a data point after setting the covariance')\n Xkhf = t... | [
"0.64595693",
"0.5511919",
"0.5503131",
"0.52422875",
"0.516596",
"0.5002336",
"0.49555945",
"0.49328816",
"0.49293062",
"0.4884397",
"0.48797688",
"0.487553",
"0.48743328",
"0.4873005",
"0.4853082",
"0.4818203",
"0.48176816",
"0.4812614",
"0.48006934",
"0.47939995",
"0.47796... | 0.5936466 | 1 |
Get the vector of mean values for the entire data set. Returns | def JBMS(YKHO):
return oyIN.array([Csk6.value for Csk6 in YKHO.data]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nC2r(YKHO):\n return oyIN.mean(YKHO.data)",
"def JBMS(YKHO):\n if len(YKHO) == 0:\n raise ValueError\n return oyIN.array(YKHO._values).mean()",
"def DH4Z(hkxX):\n return oyIN.mean(hkxX)",
"def JBMS(YKHO):\n L4iJ = sum(YKHO.data) / len(YKHO.data)\n YKHO.mean = L4iJ\n return YKH... | [
"0.8200714",
"0.80864257",
"0.8070823",
"0.80396646",
"0.80114716",
"0.79937005",
"0.79838294",
"0.7963404",
"0.79496527",
"0.79496527",
"0.79457945",
"0.7945328",
"0.7945328",
"0.78841954",
"0.7866828",
"0.7806013",
"0.77931875",
"0.77931875",
"0.77931875",
"0.77931875",
"0.... | 0.8802673 | 0 |
Converts arrays x to fortran order. Returns a tuple in the form (x, is_transposed). | def l1AA(WKvO):
if WKvO.flags.c_contiguous:
return (WKvO.T, True)
else:
return (WKvO, False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l1AA(WKvO):\n if WKvO.flags.c_contiguous:\n return (WKvO.T, True)\n else:\n return (WKvO, False)",
"def l7uB(WKvO: VariableLike, Htse: Optional[Union[List[str], Tuple[str]]]=None) -> Vsfn:\n return qjvj(hoL9.transpose, WKvO, Htse if Htse is not None else [])",
"def NUwR(YKHO):\n r... | [
"0.6545173",
"0.6221347",
"0.59959424",
"0.5987195",
"0.58002055",
"0.5787781",
"0.5780732",
"0.5748135",
"0.5748135",
"0.57311875",
"0.56922287",
"0.5618719",
"0.5618719",
"0.56011605",
"0.5576597",
"0.55726147",
"0.55365455",
"0.553166",
"0.55309916",
"0.55220574",
"0.55195... | 0.65098894 | 1 |
Render a Permission Denied page. This will be shown to the user if they're not able to view the review request. | def fIrz(YKHO, QePW: HttpRequest) -> igJ6:
return _1tc(QePW, YKHO.permission_denied_template_name, status=403) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lPiB():\n return TvZl('general/access.html', Page_name='Access Denied')",
"def rwUd(QePW):\n return uxvd(QePW, '403.html').render()",
"def bqBt(P1dF):\n return (TvZl('access_forbidden.html'), 403)",
"def bu6F(QePW, AJ5d=None):\n if AJ5d:\n yEHD.error(QePW, f'error encountered: {AJ5d}')... | [
"0.8443336",
"0.8202233",
"0.7900955",
"0.78878325",
"0.7824759",
"0.7802011",
"0.7695136",
"0.74197453",
"0.73788667",
"0.7364555",
"0.7342756",
"0.73315394",
"0.7319853",
"0.72438425",
"0.72402054",
"0.71839905",
"0.71549934",
"0.7154144",
"0.7125201",
"0.712138",
"0.711894... | 0.8267522 | 1 |
Return the URL to an image used for social media sharing. This will look for the first attachment in a list of attachments that can be used to represent the review request on social media sites and chat services. If a suitable attachment is found, its URL will be returned. | def l7mi(YKHO, JDi4: List[FileAttachment]) -> h8nf[str]:
for mXge in JDi4:
if mXge.mimetype.startswith('image/'):
return mXge.get_absolute_url()
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jlYN(YKHO):\n if 'image' in YKHO._current_item:\n return YKHO._current_item['image']\n else:\n return None",
"def kskO(YKHO):\n qwnb = YKHO.parsed_page.find('meta', property='og:image')\n qwnb = qwnb['content']\n return qwnb",
"def kskO(YKHO):\n if YKHO.image:\n retur... | [
"0.6846382",
"0.68025655",
"0.6699656",
"0.63845944",
"0.63845944",
"0.63427305",
"0.63091236",
"0.6289375",
"0.6251992",
"0.62369823",
"0.6231456",
"0.62218183",
"0.6214634",
"0.6205944",
"0.6194536",
"0.61836195",
"0.61590445",
"0.6141632",
"0.6137357",
"0.61160654",
"0.611... | 0.777622 | 0 |
Return the dictionary values as a list without forcing a copy in Python 2. | def gjtC(cmPJ):
return list(cmPJ.values()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list(YKHO):\n return list(YKHO.myDict.items())",
"def hkxX(YKHO):\n return [YKHO.dict[H5ew] for H5ew in YKHO.keys()]",
"def hkxX(YKHO):\n yv6U = []\n for H5ew in YKHO:\n yv6U.append(YKHO[H5ew])\n return yv6U",
"def ivr0(*, cmPJ: Dict[str, Any]) -> x1iM[ImMB]:\n return list(cmPJ.v... | [
"0.7873922",
"0.7648454",
"0.7620662",
"0.76071537",
"0.7579042",
"0.75082356",
"0.74711645",
"0.73878217",
"0.737039",
"0.7356471",
"0.7353983",
"0.7303903",
"0.7286301",
"0.7283558",
"0.72770745",
"0.7261628",
"0.7211534",
"0.71896076",
"0.7189492",
"0.7176125",
"0.71361935... | 0.8138211 | 0 |
Return a string representation of the current item. | def gru0(YKHO):
jzdc = YKHO.GetItemText(YKHO.value)
if YKHO.value >= 0:
return jzdc
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.item)",
"def wHJl(YKHO):\n return 'Item{{{}}}'.format(YKHO.__get_tuple())",
"def zAg0(YKHO) -> str:\n return str(YKHO.__items)",
"def zAg0(YKHO):\n return f\"Item('{YKHO.get_id()}')\"",
"def zAg0(YKHO):\n return str(YKHO._items)",
"def zAg0(YKHO):\n ret... | [
"0.84094405",
"0.79754543",
"0.7955508",
"0.78951985",
"0.7837624",
"0.7837624",
"0.7837624",
"0.7837624",
"0.7837624",
"0.7837624",
"0.7837624",
"0.7837624",
"0.7837624",
"0.7822214",
"0.77891505",
"0.7772878",
"0.77321863",
"0.7699562",
"0.7660688",
"0.76446027",
"0.7633747... | 0.0 | -1 |
A singlelayer convolutional network using different ngram filters. | def lAmg(TFPw, hHiH, BcCR, Zwn2, Coyc=[2, 3, 4, 5], gdM4=128, hr1G=0.5, V06R=15, RqWc=None, S8dk=False):
KUv9 = X6a0(shape=(BcCR,), dtype='int32')
eFKZ = DilS(hHiH, Zwn2, input_length=BcCR, weights=[RqWc], trainable=S8dk)(KUv9)
aCyO = hekC((1, BcCR, Zwn2))(eFKZ)
def tsbG(WKvO, R4Rq):
WKvO = yHw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RSeQ(oc34, pVYu, gt4n, fgsl):\n xKmh = ZylS.placeholder(dtype=ZylS.float32, name='drop_keep_prob')\n WYQ1 = []\n for YRbF, QJWG in enumerate(pVYu):\n with ZylS.name_scope('conv_maxpool_%s_%d' % (YRbF, QJWG)):\n yphq = [QJWG, fgsl.shape[-2].value, 1, gt4n]\n XcU5 = ZylS.Var... | [
"0.6354297",
"0.6209892",
"0.6200204",
"0.60829645",
"0.60740376",
"0.60080445",
"0.5993101",
"0.5965575",
"0.5961751",
"0.5890516",
"0.5871979",
"0.5859499",
"0.58470345",
"0.5843556",
"0.58428365",
"0.5807289",
"0.5795356",
"0.5790173",
"0.578727",
"0.5774319",
"0.5763502",... | 0.6461705 | 0 |