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 |
|---|---|---|---|---|---|---|
Ensure we can't delete a nonexistent edge. | def mNhW(GZim):
with trZe.raises(ValueError):
GZim.del_edges('Grapefruit', 'Badgers') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mGvB(zwwc):\n with trZe.raises(ValueError):\n zwwc.del_nodes(3.14)",
"def xeCz():\n with trZe.raises(ValueError):\n yvY1 = jHsn.cycle_graph(4)\n jHsn.contracted_edge(yvY1, (0, 2))",
"def eiZQ(zwwc):\n with trZe.raises(TypeError):\n zwwc.del_nodes()",
"def qw6T(YKHO):\... | [
"0.7310663",
"0.6725137",
"0.67185885",
"0.66743773",
"0.6642655",
"0.65834695",
"0.65521085",
"0.6541233",
"0.65002877",
"0.6462258",
"0.6452573",
"0.6404828",
"0.62474096",
"0.62229",
"0.61983585",
"0.6109615",
"0.6095065",
"0.6093754",
"0.6083431",
"0.60821515",
"0.6062657... | 0.7814261 | 0 |
Ensure we get the right neighbors for a node. | def Bh9F(zwwc):
zwwc.add_edge('Grapefruit', 82)
assert zwwc.neighbors('Grapefruit') == [82] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_IW(YKHO, Q6kx):\n raise NotImplementedError",
"def A_IW(YKHO, Q6kx):\n raise NotImplementedError",
"def A_IW(YKHO, Q6kx):\n raise NotImplementedError",
"def A_IW(YKHO, Q6kx):\n raise NotImplementedError('This is an abstract method.')",
"def A_IW(YKHO, Q6kx):\n raise NotImplementedError... | [
"0.7544719",
"0.7544719",
"0.7544719",
"0.74589807",
"0.74381423",
"0.7347147",
"0.71776664",
"0.71545655",
"0.7072832",
"0.69197553",
"0.6837705",
"0.6812932",
"0.6743263",
"0.6667569",
"0.65856737",
"0.65753174",
"0.6564386",
"0.65048015",
"0.64971566",
"0.64971566",
"0.648... | 0.64321864 | 22 |
Displays the index page accessible at '/' | def d6pt():
BjKt = G4JS.get('https://api.twitch.tv/kraken/games/top?limit=4')
dYc3 = qQXR.loads(BjKt.text)
wKwc = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}&limit=1'.format(eN17[0].replace(' ', '%20'))).text)
Kq7V = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return TvZl('index.html', url=QePW.url)",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n G9jH.info('On index page')\n return TvZl('index.html')",
"def d6pt():\n return TvZl(... | [
"0.86042184",
"0.86039484",
"0.86039484",
"0.8584791",
"0.8583762",
"0.85747325",
"0.8549182",
"0.85299975",
"0.8522783",
"0.85179675",
"0.85179675",
"0.85179675",
"0.85179675",
"0.85179675",
"0.85179675",
"0.8511824",
"0.84988546",
"0.84735423",
"0.8429009",
"0.8419053",
"0.... | 0.0 | -1 |
Displays the top_stream page accessible at '/' | def bQxl():
BjKt = G4JS.get('https://api.twitch.tv/kraken/games/top?limit=4')
dYc3 = qQXR.loads(BjKt.text)
wKwc = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}&limit=1'.format(eN17[0].replace(' ', '%20'))).text)
Kq7V = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOb_():\n return TvZl('video-feed.html')",
"def UTsn():\n bfMs().references.top_camera = mCeR.VideoStream(mCeR.TOP_STREAM_URL)",
"def wOb_():\n ANoW = {'image': 'gaye.jpg'}\n return TvZl('stream.html', contexte=ANoW)",
"def gZ7d(QePW, zhKx=None, rPXJ='vz_stream/stream_view.html', uFHL='text/h... | [
"0.72097796",
"0.6534897",
"0.64419687",
"0.627652",
"0.626216",
"0.62574726",
"0.6182212",
"0.6157123",
"0.6138199",
"0.6111889",
"0.60846955",
"0.6063935",
"0.6049904",
"0.603964",
"0.6020781",
"0.59859514",
"0.5964456",
"0.59557503",
"0.59505284",
"0.5947834",
"0.5938917",... | 0.647665 | 2 |
Displays the game1 page accessible at '/' | def M604():
BjKt = G4JS.get('https://api.twitch.tv/kraken/games/top?limit=4')
dYc3 = qQXR.loads(BjKt.text)
wKwc = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}&limit=1'.format(eN17[0].replace(' ', '%20'))).text)
Kq7V = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lr2x():\n return TvZl('gameindex.html')",
"def kZiy():\n return TvZl('gamesage_index.html')",
"def IC8O():\n cuiw['high_score'] = cuiw.get('high_score', 0)\n cuiw['num_games'] = cuiw.get('num_games', 0)\n return TvZl('index.html')",
"def d6pt():\n return TvZl('landing2.html')",
"def v... | [
"0.765009",
"0.74258274",
"0.7096451",
"0.70697224",
"0.70163566",
"0.6959284",
"0.6939031",
"0.6923546",
"0.6867833",
"0.68420774",
"0.679425",
"0.6778108",
"0.6775629",
"0.6745557",
"0.67443156",
"0.67390203",
"0.673562",
"0.67199326",
"0.67199326",
"0.6698363",
"0.6683876"... | 0.0 | -1 |
Displays the game2 page accessible at '/' | def YeiG():
BjKt = G4JS.get('https://api.twitch.tv/kraken/games/top?limit=4')
dYc3 = qQXR.loads(BjKt.text)
wKwc = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}&limit=1'.format(eN17[0].replace(' ', '%20'))).text)
Kq7V = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lr2x():\n return TvZl('gameindex.html')",
"def kZiy():\n return TvZl('gamesage_index.html')",
"def d6pt():\n return TvZl('landing2.html')",
"def GokF():\n Zc6P = HLVs()\n if Zc6P:\n return Zc6P\n zB1U = QePW.args.get('gameid', None)\n if zB1U is None:\n Dwep('Invalid ga... | [
"0.7181319",
"0.6990625",
"0.69104826",
"0.6754529",
"0.6737808",
"0.6651414",
"0.6651008",
"0.66231006",
"0.6535281",
"0.6534391",
"0.6483208",
"0.6469678",
"0.6454177",
"0.64042073",
"0.6368699",
"0.6332175",
"0.6329908",
"0.6319476",
"0.631895",
"0.63175523",
"0.6300941",
... | 0.0 | -1 |
Displays the game3 page accessible at '/' | def AQXz():
BjKt = G4JS.get('https://api.twitch.tv/kraken/games/top?limit=4')
dYc3 = qQXR.loads(BjKt.text)
wKwc = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}&limit=1'.format(eN17[0].replace(' ', '%20'))).text)
Kq7V = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lr2x():\n return TvZl('gameindex.html')",
"def kZiy():\n return TvZl('gamesage_index.html')",
"def IC8O():\n cuiw['high_score'] = cuiw.get('high_score', 0)\n cuiw['num_games'] = cuiw.get('num_games', 0)\n return TvZl('index.html')",
"def d6pt():\n return TvZl('landing2.html')",
"def d... | [
"0.7225204",
"0.71415395",
"0.67708534",
"0.676666",
"0.6763944",
"0.6654754",
"0.6644703",
"0.6606135",
"0.6592007",
"0.6578223",
"0.6564156",
"0.655332",
"0.6537954",
"0.65329057",
"0.6524661",
"0.65150654",
"0.6510657",
"0.6496574",
"0.64938504",
"0.6487193",
"0.6472142",
... | 0.0 | -1 |
Displays the game4 page accessible at '/' | def y9UA():
BjKt = G4JS.get('https://api.twitch.tv/kraken/games/top?limit=4')
dYc3 = qQXR.loads(BjKt.text)
wKwc = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}&limit=1'.format(eN17[0].replace(' ', '%20'))).text)
Kq7V = qQXR.loads(G4JS.get('https://api.twitch.tv/kraken/streams?game={}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lr2x():\n return TvZl('gameindex.html')",
"def kZiy():\n return TvZl('gamesage_index.html')",
"def NMoC(YKHO):\n oyg0 = DW23.get_current_user()\n if not oyg0:\n YKHO.redirect(DW23.create_login_url(YKHO.request.uri))\n return\n Aehj = _apf.all().filter('last_updated > ', qcWV.no... | [
"0.7312157",
"0.7241295",
"0.6823415",
"0.6780423",
"0.677747",
"0.6757605",
"0.6726946",
"0.671629",
"0.6711252",
"0.66966826",
"0.6668862",
"0.6658227",
"0.66132444",
"0.65845335",
"0.65747964",
"0.65735465",
"0.65629",
"0.65628177",
"0.65582484",
"0.6556665",
"0.65561754",... | 0.0 | -1 |
Returns true iff A is equal to B. >>> A = Mat([[1,2,3],[1,2,3]]) >>> B = Mat([[1,2,3],[1,2,3]]) >>> C = Mat([[1,2,3],[1,2,0]]) >>> A == B True >>> B == A True >>> A == C False >>> C == A False >>> A == Mat([[1,2,3],[1,2,3]]) True | def InF8(k0lF, tjUW):
assert k0lF.size == tjUW.size
for usx6, (dFni, EwyP) in enumerate(zip(k0lF.store, tjUW.store)):
for ZLJ_, (YeWq, aCFo) in enumerate(zip(dFni, EwyP)):
if YeWq != aCFo:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, vb7U):\n for YRbF in range(0, 3):\n if YKHO.data[YRbF] != vb7U[YRbF]:\n return False\n return True",
"def xa14(YKHO, Elif: 'matrix') -> bool:\n return YKHO.matrix == Elif.matrix",
"def xa14(YKHO, Elif: Matrix) -> bool:\n ...",
"def xa14(YKHO, Elif) -> bool:\n i... | [
"0.77985996",
"0.74780977",
"0.7425072",
"0.73072493",
"0.7199211",
"0.70336413",
"0.6999199",
"0.6968226",
"0.69176686",
"0.683528",
"0.6773051",
"0.6764601",
"0.67645055",
"0.67559445",
"0.67025065",
"0.67020607",
"0.6675638",
"0.66726506",
"0.6662669",
"0.66490394",
"0.664... | 0.7131343 | 5 |
Returns the matrix that is the transpose of M. >>> M = Mat([[1,2,3],[1,2,3]]) >>> M.transpose() == Mat([[1,1],[2,2],[3,3]]) True | def l7uB(E3D9):
tpio = E3D9.size
hlel = I7o1([[0 for YRbF in range(0, tpio[0])] for vexM in range(0, tpio[1])])
for rdlD in range(0, tpio[0]):
for fvDH in range(0, tpio[1]):
hlel[fvDH, rdlD] = E3D9[rdlD, fvDH]
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7uB(vb7U):\n return vb7U.T",
"def XyYT(YKHO):\n return YKHO.matrix.transpose()",
"def l7uB(YKHO):\n return type(YKHO)(YKHO.mat.transpose())",
"def l7uB(YKHO):\n return EsVe(YKHO.m00, YKHO.m10, YKHO.m01, YKHO.m11)",
"def u572(YKHO):\n r8hN, exwG = (YKHO.n, YKHO.m)\n vb7U = MEsM(r8hN, ... | [
"0.8207311",
"0.81585383",
"0.797082",
"0.79067427",
"0.78138345",
"0.7802866",
"0.7762016",
"0.77013546",
"0.7689324",
"0.767648",
"0.762471",
"0.7600686",
"0.75955725",
"0.7593458",
"0.7544795",
"0.7535585",
"0.752783",
"0.7497961",
"0.7486619",
"0.7439872",
"0.742636",
"... | 0.79525536 | 3 |
Creates and saves a User with the given email and password. | def xWi2(YKHO, D3lj, jTXt, WJxI, qMrd, **wdCM):
wzkt = rIAI.now()
if not D3lj:
raise ValueError('The given email must be set')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, is_staff=WJxI, is_active=True, is_superuser=qMrd, last_login=wzkt, date_joined=wzkt, **wdCM)
CBIr.set... | {
"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 |
Returns the first_name plus the last_name, with a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM",
"def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()",
"def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl... | [
"0.82872856",
"0.8179012",
"0.81130326",
"0.80760396",
"0.8034134",
"0.8032392",
"0.8030516",
"0.80072623",
"0.8006718",
"0.8005418",
"0.8000916",
"0.7995176",
"0.79901665",
"0.79793483",
"0.79790914",
"0.79603624",
"0.7952844",
"0.7944558",
"0.7944558",
"0.79419315",
"0.7941... | 0.77470917 | 70 |
Plot the Mean Squared Error Loss for both the training and validation sets | def qSo0(FLXQ):
print(FLXQ)
QrM1.plot(FLXQ['loss'])
QrM1.plot(FLXQ['val_loss'])
QrM1.title('model mean squared error loss')
QrM1.ylabel('mean squared error loss')
QrM1.xlabel('epoch')
QrM1.legend(['training set', 'validation set'], loc='upper right')
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBbd(YKHO):\n ggYK.plot(YKHO.training_error, label='training')\n if YKHO.validation_accuracy[0] != 0:\n ggYK.plot(YKHO.validation_error, 'r--', linewidth=2, label='validation')\n ggYK.ylabel('Error')\n ggYK.legend()\n ggYK.savefig('training_error.png')\n ggYK.show()",
"def mBbd(YKHO)... | [
"0.78906083",
"0.78301316",
"0.77747655",
"0.7720504",
"0.7699344",
"0.7662966",
"0.7653467",
"0.7649259",
"0.75976974",
"0.7592637",
"0.7494763",
"0.7457456",
"0.7382632",
"0.7377967",
"0.73546374",
"0.73546374",
"0.73546374",
"0.73537016",
"0.7319309",
"0.7302186",
"0.72884... | 0.72930646 | 20 |
Load an image from a given path and preprocess it. | def hM8o(pmON):
oO50 = N_vL.load_image(pmON)
return N_vL.preprocess(oO50) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hM8o(pmON):\n LNo8 = ZylS.io.read_file(pmON)\n uiiP = j9DC(LNo8)\n return uiiP",
"def M6Wt(pmON):\n VXjJ = ZylS.read_file(pmON)\n return j9DC(VXjJ)",
"def DZ0a(pmON, biH0=True):\n WKvO = LNo8.load_img(pmON, target_size=(C7Ls, XcU5))\n if biH0:\n WKvO = LNo8.img_to_array(WKvO)\n ... | [
"0.8450305",
"0.83448386",
"0.80857754",
"0.7697628",
"0.7648448",
"0.7602746",
"0.7551741",
"0.75405866",
"0.75065744",
"0.7464154",
"0.7410527",
"0.7259683",
"0.7206931",
"0.7179338",
"0.7112174",
"0.7083865",
"0.69817936",
"0.6954735",
"0.69282407",
"0.69172156",
"0.690909... | 0.8546654 | 0 |
Create and return the NVIDIA model architecture. | def LQs7():
C3ST = ileL()
C3ST.add(Zlsf(lambda WKvO: WKvO / 255.0 - 0.5, input_shape=NArs.input_shape))
C3ST.add(Ofph(24, 5, 5, subsample=(2, 2), activation='elu', init='he_normal'))
C3ST.add(qUci(NArs.dropout))
C3ST.add(Ofph(36, 5, 5, subsample=(2, 2), activation='elu', init='he_normal'))
C3ST.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QQU5():\n return 0",
"def LQs7():\n if yTdJ['arch'] == 'AE_SIMPLE':\n return wv4K()\n if yTdJ['arch'] == 'AE_SEGM':\n return mdTV(ref_model=yTdJ['ref_model'])\n NmYP.print_err('Architecture {} not valid'.format(yTdJ['arch']))",
"def YrZb(ZGE9: str, jTqs: int, DMw4: str) -> ht2j.nn... | [
"0.65566564",
"0.6449189",
"0.6353532",
"0.6244009",
"0.618859",
"0.61590844",
"0.6112955",
"0.6067892",
"0.6045442",
"0.60391057",
"0.60353285",
"0.6014116",
"0.5988549",
"0.59792167",
"0.597748",
"0.59627163",
"0.5954985",
"0.5949013",
"0.5946977",
"0.59281784",
"0.59145427... | 0.0 | -1 |
Return the job ID. | def id(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')",
"def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')",
"def q3vm(YKHO):\n return YKHO.job_id",
"def aJ_O(YKHO):\n return getattr(YKHO.data, 'jobID', None)",
"def aJ_O(YKHO):\n return YKHO.__dr.getJobID()",
"def rjee(YKHO):\n ... | [
"0.9266101",
"0.9266101",
"0.913748",
"0.89644706",
"0.8958932",
"0.8956041",
"0.8956041",
"0.8956041",
"0.8956041",
"0.8956041",
"0.8956041",
"0.8956041",
"0.89288306",
"0.89288306",
"0.8744724",
"0.86915964",
"0.8628166",
"0.84096986",
"0.8332191",
"0.8262904",
"0.82279074"... | 0.0 | -1 |
Return the async job ID. | def id(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CHuw(YKHO):\n if YKHO._async_job_id_present:\n return YKHO._async_job_id_value\n else:\n raise AttributeError(\"missing required field 'async_job_id'\")",
"def q3vm(YKHO):\n return YKHO.job_id",
"def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')",
"def rjee(YKHO) -> str:\... | [
"0.8754276",
"0.8070195",
"0.8035453",
"0.8035453",
"0.7926055",
"0.7926055",
"0.7926055",
"0.7926055",
"0.7926055",
"0.7926055",
"0.7926055",
"0.787996",
"0.7807295",
"0.77999777",
"0.77998257",
"0.77998257",
"0.7786569",
"0.77692926",
"0.7626031",
"0.7577173",
"0.756432",
... | 0.0 | -1 |
Transform , to . | def g5ej(X9Rj):
QnmL = ''
Swre = ''
d6pt = ''
UKjB = []
for YRbF in X9Rj:
if YRbF == ',':
break
elif YRbF == '.':
QnmL += YRbF
else:
QnmL += YRbF
UKjB = []
eiC_ = 0
for YRbF in X9Rj:
if YRbF == ',':
d6pt = ei... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qOri(BWXx):\n return BWXx.replace(',', ', ')",
"def z8WG(jQ3Z):\n for fvDH in jQ3Z.columns:\n jQ3Z[fvDH] = jQ3Z[fvDH].apply(lambda WKvO: aFMR(WKvO, ',', '.'))\n return jQ3Z",
"def rmuH(C13M):\n return ZbWC.sub('(\\\\d+),(\\\\d+)', '\\\\1.\\\\2', C13M)",
"def mnOZ(input):\n return st... | [
"0.70342284",
"0.7025711",
"0.6799162",
"0.6660992",
"0.6551067",
"0.64289594",
"0.6402335",
"0.6324079",
"0.62706375",
"0.6269723",
"0.6082994",
"0.60497683",
"0.60189104",
"0.5896639",
"0.5887551",
"0.5880215",
"0.58801514",
"0.5810264",
"0.57851714",
"0.5749493",
"0.573639... | 0.0 | -1 |
Download dataframe as a CSV file and name file based on plan quarter, year, and department | def SVJz(jQ3Z, Ux0P):
m6_J = jQ3Z.to_csv(index=False)
Hufe = WR89.b64encode(m6_J.encode()).decode()
qvey = f'''<a style='display: block; text-align: right;' href="data:file/csv;base64,{Hufe}" download="{Ux0P}.csv">Download Members</a>'''
return qvey | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VbqZ(QePW):\n geh0 = igJ6(content_type='text/csv')\n gIsw = 'infrastructure_projects.csv'\n geh0['Content-Disposition'] = f'attachment;filename={gIsw}'\n p2yw = ['province', 'municipality', 'project_number', 'project_description', 'project_type', 'function', 'asset_class', 'mtsf_service_outcome', '... | [
"0.64716893",
"0.6467389",
"0.6316598",
"0.6303095",
"0.62715995",
"0.6245082",
"0.62266964",
"0.61894387",
"0.61568516",
"0.6127567",
"0.6092565",
"0.60920113",
"0.60867",
"0.6084473",
"0.6071879",
"0.6071163",
"0.60710126",
"0.6067706",
"0.6059958",
"0.60583395",
"0.6048257... | 0.6364876 | 2 |
Create a perfectly connected graph from a list of node pairs and the distances between them. | def wFcK(I5f3, v2Gg=True):
Oa1e = jHsn.Graph()
for G1Hx, Ty9i in I5f3.items():
BBXz = -Ty9i if v2Gg else Ty9i
Oa1e.add_edge(G1Hx[0], G1Hx[1], **{'distance': Ty9i, 'weight': BBXz})
return Oa1e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mp_D(Ziit):\n mC4V = set()\n for TPao, MxXY in enumerate(Ziit):\n for fVVZ, cWFu in enumerate(Ziit):\n if fVVZ > TPao:\n mC4V.add((MxXY, cWFu))\n return mC4V",
"def Bb2P(W0Eb, sERS=None, qIxc=(), upAO='weight'):\n if sERS is None:\n sERS = Z3Lr.metric.eucli... | [
"0.64499426",
"0.6438298",
"0.62959033",
"0.6286295",
"0.62821585",
"0.6281599",
"0.62258536",
"0.61576664",
"0.6119209",
"0.6116798",
"0.61013097",
"0.6078246",
"0.60749215",
"0.6055746",
"0.6044846",
"0.6011649",
"0.5972259",
"0.5963842",
"0.5927638",
"0.59226394",
"0.59221... | 0.65171033 | 0 |
Returns the mesh sent by the manager rank. | def iUCp(YKHO):
JzwI = YKHO.mpi_comm
fdMZ = JzwI.Get_rank()
assert not YKHO.is_mananger_rank(), 'Manager rank cannot receive mesh'
from mpi4py import MPI
jGRS = MPI.Status()
Aofo = YKHO.mpi_comm.recv(source=YKHO.manager_rank, tag=WjYx, status=jGRS)
bo34.info('rank %d: received local mesh (si... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gwhq(YKHO):\n return YKHO.mesh",
"def rR8k(YKHO):\n return YKHO._mesh",
"def rR8k(YKHO):\n return YKHO._mesh",
"def _F0D(YKHO):\n return YKHO.router.get_mesh_position()",
"def tjJo(YKHO):\n return gnPz.buf_to_npy(YKHO._ptr.contents.mesh_graph, (YKHO.nmeshgraph,))",
"def KDXL(YKHO):\n ... | [
"0.69337976",
"0.66336507",
"0.66336507",
"0.63504255",
"0.6112654",
"0.6081617",
"0.6041929",
"0.6026803",
"0.6026803",
"0.586362",
"0.5767182",
"0.5765878",
"0.57611585",
"0.5733782",
"0.5664581",
"0.5634002",
"0.5627504",
"0.5601731",
"0.5587703",
"0.55344915",
"0.5528924"... | 0.738478 | 0 |
Reset the configuration to defaults. | def ptiL():
GPtr.clear()
GPtr.update(_qLf(IYZS)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ptiL(YKHO) -> None:\n YKHO.set_config(o5p_())",
"def SiRx(YKHO):\n YKHO.__init__(YKHO.config)",
"def SiRx(YKHO, GPtr):\n pass",
"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.co... | [
"0.81307375",
"0.8118434",
"0.8022767",
"0.7946311",
"0.7946311",
"0.7946311",
"0.79259396",
"0.7829406",
"0.77509326",
"0.76693004",
"0.7655956",
"0.76392204",
"0.76152635",
"0.76092577",
"0.7553359",
"0.75124353",
"0.7497699",
"0.744751",
"0.7415294",
"0.7399088",
"0.737477... | 0.85850775 | 0 |
Return number of unique atom types (species) | def IQLN(RR8p):
dkAm = RR8p.get_chemical_symbols()
ZOFV = []
for KCHu in dkAm:
if not KCHu in ZOFV:
ZOFV.append(KCHu)
return len(ZOFV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rLm3(U34r):\n return len(U34r.loc[:, 'name'].unique())",
"def rLm3(nPrm):\n return len(rLdf.unique(nPrm.loc[:, 'name']))",
"def w7Wt(YKHO):\n return [len(tuple(jzdc[1])) for jzdc in Hs6x.groupby(YKHO.syms)]",
"def w7Wt(YKHO):\n YRbF = 0\n for jzdc in YKHO.atomdata:\n YRbF += len(jzd... | [
"0.75097394",
"0.7249912",
"0.71994793",
"0.694092",
"0.6911101",
"0.67177963",
"0.6704563",
"0.66845834",
"0.6658036",
"0.6633369",
"0.65441895",
"0.65142226",
"0.6497984",
"0.64819556",
"0.6458822",
"0.6458254",
"0.64008206",
"0.6383702",
"0.6375138",
"0.6340482",
"0.633906... | 0.6737093 | 5 |
Return 'symbol's address. Raises exception if symbol not found. | def ItXz(YKHO, o61b):
return YKHO.symbolDict[o61b] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vAkW(YKHO, o61b):\n return YKHO.symbol_table[o61b]",
"def ceuN(YKHO, o61b):\n return YKHO.symtable[o61b]",
"def xBlA(YKHO, o61b):\n YKHO.command('info address %s' % o61b)\n Mkmy = YKHO.readResponse()\n if Mkmy[YKHO.RESULT] == YKHO.R_DONE:\n ydZk = ZbWC.search('0x[0-9a-fA-F]{1,8}', Mkm... | [
"0.8555",
"0.85351205",
"0.8407189",
"0.83992624",
"0.8294169",
"0.8112509",
"0.79718065",
"0.7924741",
"0.77634865",
"0.75475097",
"0.7507572",
"0.74347293",
"0.72672397",
"0.7238323",
"0.7071405",
"0.70463",
"0.6942429",
"0.6934206",
"0.67119664",
"0.66928244",
"0.667483",
... | 0.8529195 | 2 |
Translates SightingType/Source fields from StructuredTextType instances to InformationSourceType instances. This inserts the value under Identity/Name of the InformationSourceType instance. | def AOn_(Emd4, Q6kx):
QToG = '\n <indicator:Source xmlns:indicator="http://stix.mitre.org/Indicator-2">\n <stixCommon:Identity xmlns:stixCommon="http://stix.mitre.org/common-1">\n <stixCommon:Name>{0}</stixCommon:Name>\n </stixCommon:Identity>\n </indicator:Source>... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AHOQ(YKHO, gCoh):\n if YKHO.has_attribute(gCoh, Llzu):\n Wt9E = YKHO.get_attribute(gCoh, Llzu)\n if YKHO.has_attribute(gCoh, Edpv):\n CBIr = YKHO.get_attribute(gCoh, Edpv)\n if YKHO.has_attribute(gCoh, U0IZ):\n eHNT = YKHO.get_attribute(gCoh, U0IZ)\n if YKHO.has_attribute(gCoh,... | [
"0.5036402",
"0.49328274",
"0.49328274",
"0.49328274",
"0.47940436",
"0.47771794",
"0.47569484",
"0.46949053",
"0.46893913",
"0.46718326",
"0.46718326",
"0.46718326",
"0.46718326",
"0.46479338",
"0.4612567",
"0.46081793",
"0.45830527",
"0.45830527",
"0.45830527",
"0.45719805",
... | 0.443977 | 34 |
Finds and removes empty xml elements and attributes which are optional in the next language release. | def VylM(YKHO, tk5Y):
mN80 = YKHO.OPTIONAL_ELEMENTS
bJZi = BfDw.get_typed_nodes(tk5Y)
for CYSX in mN80:
EmMj = CYSX.find(tk5Y, typed=bJZi)
BfDw.remove_xml_elements(EmMj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dkzY(J_Es: etree.Element) -> None:\n for LihS in J_Es:\n dkzY(LihS)\n x0R9 = []\n for LihS in J_Es:\n if LihS.tag in ['g', 'defs'] and len(LihS.getchildren()) == 0:\n x0R9.append(LihS)\n for LihS in x0R9:\n J_Es.remove(LihS)",
"def oWrJ(tk5Y: etree.Element) -> None... | [
"0.58745635",
"0.58194304",
"0.5634301",
"0.5593266",
"0.5550077",
"0.5508376",
"0.5503785",
"0.53932345",
"0.5356002",
"0.52936023",
"0.52835995",
"0.5276975",
"0.52713114",
"0.5253687",
"0.52465713",
"0.522746",
"0.517936",
"0.5179167",
"0.5177749",
"0.517653",
"0.51639867"... | 0.6947941 | 0 |
Perceptual Loss using VGG19 | def FIMM(YKHO, begE, bUU_=10.0):
super(h9au, YKHO).__init__()
YKHO.vgg = w34Z().to(begE)
YKHO.criterion = U78l.L1Loss()
YKHO.weights = [1.0 / 32, 1.0 / 16, 1.0 / 8, 1.0 / 4, 1.0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cs1h(Jm84):\n\n def gks8(Y8eF, aMgO):\n qhg8 = nMvt.concatenate((Y8eF, Y8eF, Y8eF), axis=-1)\n fsS4 = nMvt.concatenate((aMgO, aMgO, aMgO), axis=-1)\n S8D0 = fjyB(qhg8)\n QvkS = fjyB(fsS4)\n ZuxU = Jm84.model(S8D0)\n Zuk5 = Jm84.model(QvkS)\n Io4v = ZylS.keras... | [
"0.7257606",
"0.66031456",
"0.6383415",
"0.6381518",
"0.6368885",
"0.6319173",
"0.6309439",
"0.6278959",
"0.6251004",
"0.6202563",
"0.6173264",
"0.611296",
"0.6101224",
"0.61010206",
"0.604735",
"0.60251445",
"0.60251445",
"0.6013081",
"0.60119903",
"0.59981847",
"0.5974044",... | 0.6593807 | 2 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False, dilation=ivFb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.70808023 | 79 |
r"""ResNeXt50 32x4d model from | def pmgB(mL4f=False, Eb4t=True, **B2fa):
B2fa['groups'] = 32
B2fa['width_per_group'] = 4
return CLgi('resnext50_32x4d', MF6R, [3, 4, 6, 3], mL4f, Eb4t, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uwZX(uqvc, **B2fa):\n C3ST = FYrf.resnext50_32x4d(pretrained=False)\n _e7G = C3ST.fc.in_features\n C3ST.fc = U78l.Linear(_e7G, 10)\n C3ST.load_state_dict(ht2j.load(uqvc, map_location='cpu'))\n C3ST.eval()\n return C3ST",
"def pmgB(mL4f=False, tk5Y='~/.encoding/models', **B2fa):\n B2fa['g... | [
"0.7095231",
"0.70375067",
"0.69979155",
"0.6693052",
"0.66592234",
"0.6589471",
"0.65661144",
"0.6539697",
"0.6521217",
"0.6424523",
"0.6397219",
"0.6346019",
"0.6344222",
"0.6310454",
"0.63021964",
"0.63021964",
"0.63021964",
"0.6296665",
"0.6296665",
"0.62562376",
"0.62513... | 0.62337345 | 22 |
r"""ResNeXt101 32x8d model from | def V7QE(mL4f=False, Eb4t=True, **B2fa):
B2fa['groups'] = 32
B2fa['width_per_group'] = 8
return CLgi('resnext101_32x8d', MF6R, [3, 4, 23, 3], mL4f, Eb4t, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V7QE(mL4f=False, tk5Y='~/.encoding/models', **B2fa):\n B2fa['groups'] = 32\n B2fa['bottleneck_width'] = 8\n C3ST = S1Vm(MF6R, [3, 4, 23, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(ht2j.load(_7Lp('resnext101_32x8d', root=tk5Y)), strict=False)\n return C3ST",
"def V7QE(mL4f=False, tk5Y... | [
"0.69844323",
"0.6942076",
"0.65970725",
"0.655128",
"0.6524174",
"0.65187347",
"0.64773697",
"0.64754397",
"0.6451517",
"0.6443924",
"0.6428872",
"0.63850826",
"0.63609004",
"0.6360059",
"0.633551",
"0.6331414",
"0.6312455",
"0.6312455",
"0.6312455",
"0.63008976",
"0.6300644... | 0.6234209 | 23 |
r"""Wide ResNet1012 model from | def naJe(mL4f=False, Eb4t=True, **B2fa):
B2fa['width_per_group'] = 64 * 2
return CLgi('wide_resnet101_2', MF6R, [3, 4, 23, 3], mL4f, Eb4t, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def naJe(**B2fa):\n return CLgi('wide_resnet101_2', **B2fa)",
"def dADX():\n xA7f = ht2j.load(Z9rn.target_weight_path)['state_dict']\n b0GN = uUUq(depth=34, widen_factor=10, num_classes=10, dropout_rate=0.1)\n b0GN = ht2j.nn.DataParallel(b0GN)\n b0GN.apply(DVZr)\n b0GN.load_state_dict(xA7f, str... | [
"0.6884907",
"0.6818235",
"0.6623257",
"0.6621224",
"0.65992785",
"0.65891105",
"0.65858686",
"0.65858686",
"0.65858686",
"0.6556851",
"0.6554294",
"0.6552132",
"0.65126264",
"0.64775133",
"0.64700127",
"0.64697415",
"0.64632815",
"0.6460204",
"0.6449679",
"0.6449679",
"0.644... | 0.63724995 | 45 |
Stops the job. Called when the job is done. | def JCyR(YKHO, _AKB: JobServer, nPrm: Any) -> None:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO._stop(YKHO.jobid)\n YKHO.prop_dict['status'] = 'stopped'",
"def LlNy(YKHO):\n QePW = YKHO.connection.delete('/jobs/{}/results'.format(YKHO.job_id))\n return QePW.status_code",
"def UIwK(YKHO):\n YKHO.work.stop()",
"def JCyR(YKHO, oCfW, Ol8d=None):\n YKHO.job_handler.j... | [
"0.79464155",
"0.7463045",
"0.7430196",
"0.74104124",
"0.7276705",
"0.7200008",
"0.71880466",
"0.7169461",
"0.71190685",
"0.71148074",
"0.70828795",
"0.7081389",
"0.70762175",
"0.707583",
"0.707556",
"0.7008711",
"0.70033",
"0.6997107",
"0.6992697",
"0.69919515",
"0.6979886",... | 0.0 | -1 |
Regularize the path. If the path has a initial component of ~ or ~user, it will be replaced by home directory If the path is not the absolutized path, absolute path will be returned. | def OYmC(pmON: str) -> str:
if pmON.startswith('~'):
return Hy7s.path.expandvars(Hy7s.path.expanduser(pmON))
else:
return Hy7s.path.abspath(Hy7s.path.expandvars(pmON)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lb6X(WKvO):\n if WKvO[:2] == './':\n WKvO = WKvO[2:]\n if WKvO[-2:] == '/.':\n WKvO = WKvO[:-2]\n WKvO = WKvO.replace('/./', '/')\n if '~/' in WKvO:\n WKvO = WKvO.split('~/')[-1]\n if WKvO[-2:] == '/~':\n return '~'\n if WKvO == '':\n return '~'\n if WKvO... | [
"0.7740239",
"0.7589656",
"0.73838514",
"0.7332484",
"0.7293292",
"0.7265013",
"0.7265013",
"0.713642",
"0.7119122",
"0.7111136",
"0.70892763",
"0.7070847",
"0.70578927",
"0.70303965",
"0.7000718",
"0.69844216",
"0.6971623",
"0.69442135",
"0.6938363",
"0.6931098",
"0.6924109"... | 0.78727 | 0 |
V1(x,y,z) + V2(a,b,c) = V3 (x+a, y+b, z+c) | def FOdN(YKHO, jlSq):
bUZ8 = lNLu(YKHO.x + jlSq.x, YKHO.y + jlSq.y, YKHO.z + jlSq.z)
return bUZ8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KB4q(hQHm, jlSq, bUZ8):\n XP5J = hQHm + jlSq + bUZ8\n return XP5J",
"def H2v5(hQHm, jlSq):\n WKvO = hQHm.x + jlSq.x\n LVAh = hQHm.y + jlSq.y\n epBp = hQHm.z + jlSq.z\n bUZ8 = S9OZ(WKvO, LVAh, epBp)\n return bUZ8",
"def HBcq(hQHm=(0, 0, 0), jlSq=(1, 1, 1)):\n return (jlSq[0] + hQHm[0... | [
"0.7850186",
"0.77108586",
"0.77064663",
"0.7363554",
"0.69671226",
"0.69634837",
"0.6796543",
"0.66355294",
"0.6628309",
"0.6549643",
"0.65428364",
"0.65428364",
"0.65428364",
"0.6515121",
"0.65108454",
"0.6503924",
"0.6496957",
"0.6490729",
"0.648832",
"0.64636683",
"0.6428... | 0.7036098 | 4 |
The magnitude is the square root of each coordinate squared | def YXbZ(YKHO):
return epAf.sqrt(epAf.pow(YKHO.x, 2) + epAf.pow(YKHO.y, 2) + epAf.pow(YKHO.z, 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n E2V2 = 0\n for BWXx in YKHO.coordinates:\n E2V2 += BWXx ** 2\n YXbZ = PZyS(E2V2)\n return YXbZ",
"def YXbZ(YKHO):\n Lzxs = [WKvO * WKvO for WKvO in YKHO.coordinates]\n return epAf.sqrt(sum(Lzxs))",
"def YXbZ(YKHO):\n oeg9 = sum([YRbF ** 2 for YRbF in YKHO.coords])\... | [
"0.89422053",
"0.8694917",
"0.84030193",
"0.82702595",
"0.8192212",
"0.81835467",
"0.8160994",
"0.81543165",
"0.8048874",
"0.80478084",
"0.8030365",
"0.80242705",
"0.80078",
"0.79734313",
"0.7971241",
"0.7947815",
"0.7899709",
"0.7881072",
"0.7860326",
"0.7846919",
"0.7801555... | 0.78467125 | 20 |
Create a wishlist with an invalid ContentType | def fMvr(YKHO):
_hkX = YKHO.app.post(zDeW, headers=YKHO.headers)
YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_415_UNSUPPORTED_MEDIA_TYPE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSvR():\n T9Qk('application/json')\n lU60 = KqKN()\n gI4i = QePW.get_json()\n lU60.deserialize(gI4i)\n lU60.save()\n Ol8d = lU60.serialize()\n eQlZ = nKyW('get_wishlist', wishlist_id=lU60.id, _external=True)\n return Yxsy(pz3A(Ol8d), jGRS.HTTP_201_CREATED, {'Location': eQlZ})",
"def E... | [
"0.6852277",
"0.6790285",
"0.66710705",
"0.6630379",
"0.62252414",
"0.6094705",
"0.6093117",
"0.6058558",
"0.5993958",
"0.58791345",
"0.58523726",
"0.58297104",
"0.5694196",
"0.563142",
"0.5629822",
"0.55986303",
"0.54912347",
"0.54646045",
"0.54610616",
"0.5445343",
"0.53917... | 0.7133673 | 0 |
Update an existing Wishlist | def J3ve(YKHO):
JxOV = fJWd()
_hkX = YKHO.app.post(zDeW, json=JxOV.serialize(), content_type=Xi5i, headers=YKHO.headers)
YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_201_CREATED)
zK65 = _hkX.get_json()
G9jH.debug(zK65)
zK65['name'] = 'unknown'
_hkX = YKHO.app.put(zDeW + '/{}'.format(zK65['id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZJM(JNoc):\n T9Qk('application/json')\n lU60 = KqKN.get(JNoc)\n if not lU60:\n raise oEgM(\"Wishlist with id '{}' was not found.\".format(JNoc))\n lU60.deserialize(QePW.get_json())\n lU60.id = JNoc\n lU60.save()\n return Yxsy(pz3A(lU60.serialize()), jGRS.HTTP_200_OK)",
"def QdZT(... | [
"0.77169",
"0.75429827",
"0.7523084",
"0.69997394",
"0.64463955",
"0.6323716",
"0.62794644",
"0.6250498",
"0.62216854",
"0.617692",
"0.6100473",
"0.60714924",
"0.6032344",
"0.6019465",
"0.6004094",
"0.6003586",
"0.5970375",
"0.59561497",
"0.5951701",
"0.5877351",
"0.5844938",... | 0.7079651 | 3 |
Returns the user with the given email address. | def KacQ(YKHO, D3lj):
for P6bq in DW23:
if D3lj == DW23[P6bq].get('email'):
return DW23[P6bq]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lN4b():\n return mv1M.query.filter(mv1M.email == D3lj).first()",
"def CYTf(D3lj, QePW=None):\n return lCqJ(email=D3lj, request=QePW)",
"def CYTf(D3lj):\n xDcj = 'SELECT * FROM users WHERE email=%s'\n ZfUD, QoB4 = _dsm(xDcj, (D3lj,))\n if ZfUD is None:\n return None\n CBIr = dTxi([Z... | [
"0.87840843",
"0.87196803",
"0.8705091",
"0.8689768",
"0.8689768",
"0.86777073",
"0.86246014",
"0.8615287",
"0.86068076",
"0.8599212",
"0.8582987",
"0.8571289",
"0.85689914",
"0.85629755",
"0.8554449",
"0.8545992",
"0.8540374",
"0.8520024",
"0.8517124",
"0.85099113",
"0.85010... | 0.7619719 | 89 |
image upload directory setting images/2016/7/12/hjh/hjh20160712158859.png | def JJkJ(KAOR, Ux0P):
wzkt = qcWV.datetime.now()
Ux0P = UuzQ(wzkt, KAOR, Ux0P)
pmON = 'pv/{user}/{now}/{filename}'.format(now=wzkt, user=KAOR.user.id, filename=UuzQ(wzkt, KAOR, Ux0P))
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xxXH(YKHO, pmON):\n if not pmON:\n pmON = '/tmp'\n YKHO.images_directory = pmON\n YKHO._images_path_edit.setText('Using images from %s' % pmON)",
"def ZLKK(YKHO, Pmlm):\n assert Hy7s.path.exists(Pmlm)\n YKHO.images = [Hy7s.path.join(Pmlm, VXjJ) for VXjJ in Hy7s.listdir(Pmlm) if VXjJ.low... | [
"0.7238078",
"0.72298527",
"0.718452",
"0.7078971",
"0.68705744",
"0.6861992",
"0.6854777",
"0.68480945",
"0.6811952",
"0.68098915",
"0.6786819",
"0.67770916",
"0.6772222",
"0.67569005",
"0.67563385",
"0.6745572",
"0.6720798",
"0.6697963",
"0.66443104",
"0.6618234",
"0.659892... | 0.0 | -1 |
Create an instance of the Command class with the given name. | def cVKF(mWFP: str, **B2fa: Any) -> TkY7:
MJH2, _2sc, QxIo = ISfM[mWFP]
yR_P = ANWz.import_module(MJH2)
OFIT = getattr(yR_P, _2sc)
oUZx = OFIT(name=mWFP, summary=QxIo, **B2fa)
return oUZx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(Emd4, Asoz):\n return getattr(Emd4, Asoz)",
"def AHWg(YKHO, mWFP, tO9_):\n oUZx = type(mWFP, (CRhi,), dict())\n\n def aTqo(YKHO, vC92, wAVY):\n YKHO.bot.chat(YKHO.msg)\n setattr(oUZx, 'execute', aTqo)\n return oUZx(YKHO.bot, msg=tO9_)",
"def J28z(kvcN, mWFP):\n yR_P = tF99('%s... | [
"0.7850945",
"0.77020466",
"0.7355865",
"0.7292101",
"0.7196958",
"0.71954477",
"0.71904963",
"0.7111623",
"0.7074952",
"0.7050795",
"0.70503926",
"0.69727457",
"0.6972216",
"0.68627787",
"0.68537",
"0.677713",
"0.6741496",
"0.671135",
"0.6701901",
"0.6695656",
"0.66570115",
... | 0.87912697 | 0 |
Populate the vectors m and M. | def S0uu(YKHO, J_Es, jBoH):
gqC0 = []
hpJS = []
WKa2 = sorted(J_Es.leaf_nodes(), key=lambda WKvO: WKvO.taxon.label)
for LZmm, KtTE in E6VQ(WKa2, 2):
aXD7 = J_Es.mrca(taxa=[LZmm.taxon, KtTE.taxon])
gqC0.append(jBoH[aXD7].edges_from_root)
hpJS.append(jBoH[aXD7].dist_from_root)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J9F_(YKHO):\n YKHO.M = oyIN.identity(3, oyIN.double)\n YKHO.M[0, 0] = YKHO.M00\n YKHO.M[0, 1] = YKHO.M01\n YKHO.M[1, 0] = YKHO.M10\n YKHO.M[1, 1] = YKHO.M11\n YKHO.M[0, 2] = YKHO.B0\n YKHO.M[1, 2] = YKHO.B1",
"def DQeS(YKHO):\n for YRbF in range(0, len(YKHO.X)):\n a1PO = [0] * ... | [
"0.6934158",
"0.65846074",
"0.6537536",
"0.6503107",
"0.64483297",
"0.644602",
"0.6369934",
"0.62149984",
"0.6205094",
"0.6186301",
"0.6139427",
"0.60927576",
"0.6072406",
"0.6052112",
"0.6047898",
"0.6033781",
"0.60055244",
"0.59745693",
"0.59674245",
"0.59042114",
"0.589173... | 0.0 | -1 |
The vector v is the weighted average of m and M. lbda, a.k.a. lambda, is the weighting parameter. | def Ng6a(YKHO, OCi3=0.5):
return (1 - OCi3) * YKHO.little_m + OCi3 * YKHO.big_m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d2yq(WKvO, _mSQ):\n return _mSQ.unsqueeze(1).bmm(WKvO).squeeze(1)",
"def vJ0r(P6bq, Ty9i):\n yzQ0 = Ty9i\n yzQ0[0] = (P6bq[0] + Ty9i[0]) // 2\n yzQ0[1] = (P6bq[1] + Ty9i[1]) // 2\n yzQ0[2] = (P6bq[2] + Ty9i[2]) // 2\n return yzQ0\n 'w = list(u)\\n\\tfor i in range(len(u)):\\n\\t\\tw[i] =... | [
"0.63817215",
"0.6366674",
"0.6232676",
"0.61046517",
"0.61046517",
"0.60370415",
"0.5979274",
"0.59734035",
"0.5940107",
"0.5885874",
"0.58572286",
"0.5827732",
"0.5823968",
"0.5815463",
"0.5764177",
"0.57622707",
"0.5755191",
"0.57426244",
"0.57201296",
"0.5716314",
"0.5714... | 0.0 | -1 |
True if provider is gitbased. | def gHEJ(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vWIz():\n return Hy7s.path.exists(Hy7s.path.join(GWmc, '.git', 'objects'))",
"def v5hB():\n zvGf = Hy7s.path.realpath(Hy7s.path.join(Hy7s.path.dirname(NJse.__file__), Hy7s.path.pardir))\n Rdjh = Hy7s.path.join(zvGf, '.git')\n if Hy7s.path.exists(Rdjh):\n return True\n else:\n ret... | [
"0.759984",
"0.7519746",
"0.7320786",
"0.72045785",
"0.71252173",
"0.7116269",
"0.70844656",
"0.7066731",
"0.7013156",
"0.6994182",
"0.6938988",
"0.6897952",
"0.68859965",
"0.68660134",
"0.68641174",
"0.6778294",
"0.6761062",
"0.67320836",
"0.6720546",
"0.66988057",
"0.668358... | 0.8842674 | 0 |
The app ini file to be used for testing (should be specified). | def YyTK(wvEv):
wvEv.addoption('--appini', default=MbWc, help='app conf') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YD9W(YKHO):\n VqRE = pmON.join(YKHO.user_data_dir, '%(appname)s.ini')\n return super().get_application_config(VqRE)",
"def IZsj(YKHO):\n Hy7s.environ['CONFIG_FILE'] = '/fake/path'\n from conf import config\n YKHO.assertEqual('127.0.0.1', config.get('app', 'address'))\n YKHO.assertEqual('808... | [
"0.71659833",
"0.69166636",
"0.6801321",
"0.6753941",
"0.6577681",
"0.6572552",
"0.65255266",
"0.6493691",
"0.64666605",
"0.6438841",
"0.6309634",
"0.6286776",
"0.6285159",
"0.62453234",
"0.62400216",
"0.622679",
"0.62215847",
"0.6208595",
"0.6177617",
"0.6174048",
"0.6168315... | 0.58660084 | 39 |
Used in spacy.language.Language when constructing this pipeline. Tells spaCy that this pipe requires the nlp object | def lKL5(Emd4, K9NE, **_Fei):
return Emd4(K9NE, **_Fei) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, K9NE: Language, tw0j: bool):\n YKHO.nlp = K9NE\n YKHO.is_spacy_3 = tw0j",
"def DbxN():\n global nlp\n K9NE = CNQv.load('en_core_web_md')",
"def P5om():\n bo34.info('NLP Module : Initializing')\n global nlp\n w787 = []\n _MNg = []\n if udsp:\n for iISG in R2s8.qu... | [
"0.7336839",
"0.68275684",
"0.6777337",
"0.6611604",
"0.6311804",
"0.62581134",
"0.6129298",
"0.59738314",
"0.5900015",
"0.5867042",
"0.58275086",
"0.5754463",
"0.5728666",
"0.56880337",
"0.5677423",
"0.5671125",
"0.56626534",
"0.5575135",
"0.5560395",
"0.5552993",
"0.5547225... | 0.62713796 | 5 |
Computes attention scores and outputs. | def DszH(YKHO, xDcj, hkxX, OST7):
Sndb = hkxX.get_shape().as_list()[-1]
wDJP = ZylS.shape(hkxX)[0]
q4qA = ZylS.reshape(hkxX, [-1, Sndb])
zHZm = ZylS.matmul(q4qA, YKHO.W_att_keys)
zHZm = ZylS.reshape(zHZm, [wDJP, -1, Sndb])
fMHh = ZylS.matmul(xDcj, YKHO.W_att_query)
cCrA = YKHO.score_fn(zHZm,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pOv4(YKHO, g4y1):\n FRUf, TaYf = jPbk.unpack_inputs(g4y1)\n kjYx = FRUf\n if YKHO.outer_hidden_size != YKHO.inner_hidden_size:\n kjYx = YKHO.input_dense(FRUf)\n AiL9, Xr7M = YKHO.attention_layer(from_tensor=FRUf, to_tensor=FRUf, attention_mask=TaYf)\n AiL9 = YKHO.attention_output_dense(Ai... | [
"0.69154805",
"0.68320894",
"0.6721598",
"0.6576857",
"0.6529166",
"0.6431698",
"0.6391968",
"0.6312403",
"0.63114786",
"0.6225674",
"0.61485976",
"0.61462796",
"0.61348724",
"0.61261594",
"0.6111157",
"0.6101224",
"0.6074026",
"0.6061801",
"0.6046535",
"0.60439533",
"0.60370... | 0.0 | -1 |
Add a new experience to memory. | def H2v5(YKHO, wspz, xASv, vwlo, BKVD, nQSc):
"""
for s, a, r, s_next, d in zip(state, action, reward, next_state, done):
e = self.experience(s, a, r, s_next, d)
self.memory.append(e)
"""
tTpl = YKHO.experience(wspz, xASv, vwlo, BKVD, nQSc)
YKHO.memory.append(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))",
"d... | [
"0.8763217",
"0.8755159",
"0.8509186",
"0.79707366",
"0.7879077",
"0.7878838",
"0.7878838",
"0.7709677",
"0.7708713",
"0.7609456",
"0.74958277",
"0.7470479",
"0.74537706",
"0.737918",
"0.73555547",
"0.730577",
"0.7283659",
"0.7276514",
"0.72636735",
"0.7246649",
"0.72328925",... | 0.0 | -1 |
Randomly sample a batch of experiences from memory. | def mvm2(YKHO):
wfZK = tuKI.sample(YKHO.memory, k=YKHO.batch_size)
wspz = ht2j.from_numpy(oyIN.vstack([[tTpl.state] for tTpl in wfZK if tTpl is not None])).float().to(begE)
xASv = ht2j.from_numpy(oyIN.vstack([[tTpl.action] for tTpl in wfZK if tTpl is not None])).float().to(begE)
vwlo = ht2j.from_numpy(o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)",
"def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)",
"def mvm2(YKHO):\n wfZK = tuKI.sample(YKHO.memory, k=YKHO.... | [
"0.7983961",
"0.79046863",
"0.7868443",
"0.7706011",
"0.7525482",
"0.75070703",
"0.7481443",
"0.74332356",
"0.7432144",
"0.7427844",
"0.74261487",
"0.74147487",
"0.7403821",
"0.7403821",
"0.7403821",
"0.7392868",
"0.7389204",
"0.7389204",
"0.7389204",
"0.7379021",
"0.7376972"... | 0.72912335 | 31 |
Get the requested API hooks for the current DLL. Used by L{__hook_dll} and L{__unhook_dll}. | def snJW(YKHO, tvqc):
Aofo = []
if YKHO.__apiHooks:
pmON = tvqc.get_module().get_filename()
if pmON:
sovd = TRh4.pathname_to_filename(pmON).lower()
for xiCs, A0su in Gv0t.iteritems(YKHO.__apiHooks):
if xiCs == sovd:
Aofo.extend(A0su)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wsR5(PCzT, tZJS):\n ztvi = PCzT.system_dlls[-1]\n ePKu = ztvi.name.lower()\n for ePKu, kcif in tZJS.items():\n if PCzT.check_has_system_dll(ePKu):\n for zKAX in kcif:\n WvzB(PCzT, zKAX)\n del tZJS[ePKu]",
"def a7Dw(PCzT):\n global v_tmp_dll_apis\n if... | [
"0.7194976",
"0.6730232",
"0.66833836",
"0.6682093",
"0.66535234",
"0.66055167",
"0.6472097",
"0.6448457",
"0.6385256",
"0.635052",
"0.6289178",
"0.62683564",
"0.6265869",
"0.6261622",
"0.61988205",
"0.6157065",
"0.6134207",
"0.60413456",
"0.6017666",
"0.59887046",
"0.5979967... | 0.8091939 | 0 |
Given a STAC item, finds and returns the item's data source in this.message. It specifically looks for a link with relation "harmony_source" in the item and all parent catalogs. The href on that link is the source collection landing page, which can identify a source. If no relation exists and there is only one source i... | def GL2t(YKHO, ZfUD):
_AKB = ZfUD
c7pe = _AKB.get_links('harmony_source')
while len(c7pe) == 0 and _AKB.get_parent() is not None:
_AKB = _AKB.get_parent()
c7pe = _AKB.get_links('harmony_source')
if len(c7pe) == 0:
if len(YKHO.message.sources) == 1:
return YKHO.message... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDZp(ZfUD):\n return ZfUD.xpath(\".//div[@class='event-title']/h3/a/@href\").get()",
"def ZfUD(YKHO):\n if len(YKHO.sources) == 0:\n return None\n return YKHO.sources[0]",
"def h5D_(YKHO, ZfUD: Dict) -> str:\n O9x5 = YKHO.start_urls[0]\n if isinstance(ZfUD.get('Name'), dict):\n ... | [
"0.62970376",
"0.6021188",
"0.6010254",
"0.58500665",
"0.5820335",
"0.57392895",
"0.5674483",
"0.5632903",
"0.55990195",
"0.55759203",
"0.5567885",
"0.5558868",
"0.55415016",
"0.55201805",
"0.5399003",
"0.53683764",
"0.532521",
"0.5294717",
"0.5292138",
"0.5288124",
"0.523757... | 0.85137486 | 0 |
Sanitize the message and return the hash | def e1Bz(YKHO, tO9_):
tO9_ = str(tO9_)
if YKHO._ignore:
for peBr in YKHO._ignore:
tO9_ = tO9_.replace(peBr, '?')
LQWU = ZbWC.findall('[0-9a-f]{10}', tO9_)
for Artt in LQWU:
tO9_ = tO9_.replace(Artt, '?')
tO9_ = t91j(tO9_, '?')
if YKHO._verbose:
return tO9_
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rC8x(Ol8d):\n if type(Ol8d) == bytes:\n sAxw = HBct.sha256(Ol8d).hexdigest()\n else:\n sAxw = HBct.sha256(Ol8d.encode('utf-8')).hexdigest()\n return sAxw",
"def vteS(gS4h):\n return ''.join([WKvO if WKvO.lower() in 'abcdef0123456789' else '' for WKvO in gS4h])",
"def efFd(Ol8d):\n... | [
"0.68758667",
"0.6731388",
"0.66193557",
"0.6518844",
"0.64340794",
"0.6374647",
"0.6293044",
"0.62910956",
"0.6289683",
"0.6288983",
"0.6280536",
"0.62686807",
"0.6238162",
"0.6236482",
"0.6235418",
"0.6182763",
"0.61625814",
"0.61604005",
"0.610734",
"0.6107168",
"0.6103881... | 0.75010586 | 0 |
Add a new area to the database | def Dwws(YKHO, nPrm):
f0tD = FnSF.query.filter_by(name=nPrm['name']).first()
if not f0tD:
N8eu = FnSF(name=nPrm['name'], lattitude=nPrm['lattitude'], longitude=nPrm['longitude'], ward_id=nPrm['ward_id'])
YKHO.models.save_changes(N8eu)
BM07 = {'status': 'success', 'message': 'Successfully... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def area_create(QePW: Request, f0tD: AreaCreate, NCls=JHvC(GGod)):\n return await AVRv(NCls, f0tD)",
"def f0tD(YKHO, f0tD):\n YKHO.container['area'] = f0tD",
"def JPHp(YKHO, d7pR=()):\n vexM = '\\nINSERT INTO area(name, price, geom, provider)\\nVALUES(?, ?, GeomFromText(?, 4326), ?)'\n NCls.c... | [
"0.71925414",
"0.6921828",
"0.68466496",
"0.67397034",
"0.67397034",
"0.6699905",
"0.6678514",
"0.65666807",
"0.6534356",
"0.63931125",
"0.6342068",
"0.6261351",
"0.62353474",
"0.62126136",
"0.6208263",
"0.6208263",
"0.6208263",
"0.6208263",
"0.61385775",
"0.6111581",
"0.6036... | 0.742801 | 0 |
Serializes this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> dict:\n pass",
"def Napc(YKHO):\n return dict(YKHO.__dict__)",
"def sS6L(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO) -> dict:\n return YKHO.__data__",
"def _fYl(YKHO) -> cuzp[str, ImMB]:\n return B4us(YKHO)",
"def dict(YKHO):\n return YKHO.to_dict()",
"def dict(Y... | [
"0.8867926",
"0.8861291",
"0.8325109",
"0.8323158",
"0.8313032",
"0.8288802",
"0.8288802",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8251281",
"0.8234439",
"0.8234439",
"0.8216978",
"... | 0.0 | -1 |
Assert that the continuation_out email processor for corps works as expected. | def AoEZ(P4t4, cuiw, jGRS, Q3Nq, WWM9):
pT_k = 'test business'
JWum = tt0Z(cuiw, 'BC1234567', '1', Q3Nq, pT_k, WWM9)
eOtH = 'token'
with Po4F.object(tMsG, '_get_pdfs', return_value=[]) as BOAv:
with Po4F.object(tMsG, 'get_recipient_from_auth', return_value='recipient@email.com'):
D3l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xvQW(YKHO):\n oQ6W = cx3z.create_slot()\n iUQk = oQ6W.business.advertiser\n c_Ww = YKHO.prep_coupon_in_slot(oQ6W)\n D5gV = N6pM()\n D5gV.run()\n na1r.debug(cpYK.outbox[0].body)\n na1r.debug(cpYK.outbox[0].alternatives[0][0])\n YKHO.assertEqual(cpYK.outbox[0].to, [iUQk.email])\n YKHO.... | [
"0.5820954",
"0.5783559",
"0.57821465",
"0.5757183",
"0.56847644",
"0.56505394",
"0.5648796",
"0.5629143",
"0.5618893",
"0.55890876",
"0.5545442",
"0.5503211",
"0.549398",
"0.54688245",
"0.54686916",
"0.5467489",
"0.5457979",
"0.5451194",
"0.54461384",
"0.5422206",
"0.5416370... | 0.75699085 | 0 |
Return boolean if volume is currently muted. | def qHHI(YKHO):
return YKHO._muted | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHHI(YKHO):\n return YKHO.device.get_muted()",
"def qHHI(YKHO):\n return YKHO._volume.muted",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO._app_properties.get('muted')",
"def qHHI(YKHO):\n return YKHO._volume_muted",
"def qHHI(YKHO):\n return YKHO._is_muted... | [
"0.8977617",
"0.89042324",
"0.8863489",
"0.88545763",
"0.8835211",
"0.87928295",
"0.8790709",
"0.8774333",
"0.8773991",
"0.8734804",
"0.87281716",
"0.86988264",
"0.82554156",
"0.8197864",
"0.78029245",
"0.7764117",
"0.7351942",
"0.71425074",
"0.69851565",
"0.6958108",
"0.6881... | 0.88861954 | 2 |
Return the list of available input sources. | def oOdw(YKHO):
return sorted(YKHO._source_list) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOdw(YKHO) -> x1iM[str]:\n if YKHO.mysources:\n return YKHO.mysources\n return YKHO._get_list('SI')",
"def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')",
"def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')",
"def w1o0(YKHO):... | [
"0.76579773",
"0.7656124",
"0.7656124",
"0.7601014",
"0.7524817",
"0.7511203",
"0.7447757",
"0.7447757",
"0.7389558",
"0.7336061",
"0.7323156",
"0.73028445",
"0.72905374",
"0.72510916",
"0.72357124",
"0.7118525",
"0.7100167",
"0.7100167",
"0.7094675",
"0.70874506",
"0.7063833... | 0.0 | -1 |
Mute (true) or unmute (false) media player. | def YAvG(YKHO, KkzS: bool) -> None:
JVOJ = 'ON' if KkzS else 'OFF'
YKHO.telnet_command(f'MU{JVOJ})') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KkzS(YKHO, KkzS):\n YKHO.zoneCmd('on' if KkzS else 'off', mcmd='PutVolumeMute')",
"async def toggle_mute(YKHO):\n oyg0: ESA9.DefaultPlayer = YKHO.bot.lavalink.player_manager.get(YKHO.guild.id)\n YKHO.muted = not YKHO.muted\n if YKHO.muted:\n await oyg0.set_volume(0)\n else:\n awa... | [
"0.8109269",
"0.8028652",
"0.7875998",
"0.7842638",
"0.7824641",
"0.7797436",
"0.7755181",
"0.7737093",
"0.76722234",
"0.7647712",
"0.7630306",
"0.7514275",
"0.74908876",
"0.7484372",
"0.7476535",
"0.74621487",
"0.74245465",
"0.74172854",
"0.7409556",
"0.73284715",
"0.7322821... | 0.80495983 | 1 |
Create and save a new object to the database. | def xlzA(YKHO, Mjw9, ZLJ_):
__n6 = {iVRZ: Mjw9[iVRZ] for iVRZ in ZLJ_}
if YKHO.__foreign_keys:
__n6.update(YKHO.__foreign_keys)
Emd4 = getattr(tF99(YKHO.__models_file), YKHO.__table)
with YKHO.__db:
return Emd4.create(**__n6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO) -> None:\n cuiw = FEJ9.get_session()\n if not YKHO.id:\n cuiw.add(YKHO)\n cuiw.commit()",
"def eLpg(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()",
"def eLpg(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()",
"def eLpg(YKHO):\n NCls.session.add(Y... | [
"0.79702866",
"0.784503",
"0.784503",
"0.784503",
"0.7604379",
"0.76026374",
"0.7598597",
"0.75982624",
"0.758914",
"0.7579416",
"0.7579044",
"0.757853",
"0.757853",
"0.757853",
"0.757853",
"0.757853",
"0.757853",
"0.757853",
"0.757853",
"0.7577014",
"0.7577014",
"0.7577014... | 0.0 | -1 |
Get a list of columns for the selected table. Exclude id and any foreign key fields. | def KORE(YKHO):
with YKHO.__db:
VQaI = [YRbF.column for YRbF in YKHO.__db.get_foreign_keys(YKHO.__table)]
ZLJ_ = [Z9rn.name for Z9rn in YKHO.__db.get_columns(YKHO.__table) if Z9rn.name != 'id' and Z9rn.name not in VQaI]
return ZLJ_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ooVy(YKHO):\n return b1_g.get_columns_from_db(YKHO.table_name)",
"def FSKv(YKHO):\n tyNF = YKHO.get_table()\n return [(Jyyj, YKHO.get_field_attributes(Jyyj)) for Jyyj in tyNF.get_fields()]",
"def FSKv(YKHO):\n if YKHO.columns is None:\n jKuv = ayNO.meta_client().get_table('default', YKHO... | [
"0.8064121",
"0.80237114",
"0.7941231",
"0.77948123",
"0.77887493",
"0.77855515",
"0.77830815",
"0.77703005",
"0.77512205",
"0.7707879",
"0.7690185",
"0.7664191",
"0.765842",
"0.7658262",
"0.763711",
"0.7578524",
"0.75583345",
"0.7547969",
"0.7540478",
"0.75096714",
"0.750188... | 0.8258928 | 0 |
Save the data as json file. | def vP7y(nPrm, Ux0P):
with open(Ux0P, 'w') as nUeQ:
qQXR.dump(nPrm, nUeQ, indent=4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U1ai(YKHO, nPrm):\n with open(YKHO.filename, 'w') as UXEK:\n qQXR.dump(nPrm, UXEK, indent=4)",
"def eGRE(YKHO):\n qQXR.dump(YKHO.data, open(YKHO.filename, 'w'), indent=2)",
"def xkzz(YKHO):\n with open(YKHO.file_path, 'w') as eHNT:\n qQXR.dump(YKHO.data, eHNT)",
"def ClmN(YKHO):\n ... | [
"0.89717156",
"0.8796809",
"0.8686029",
"0.8661662",
"0.86088955",
"0.85764784",
"0.84537494",
"0.84360987",
"0.84007967",
"0.8375217",
"0.8351782",
"0.8293018",
"0.8274101",
"0.8266707",
"0.8259465",
"0.82441926",
"0.82195795",
"0.8214114",
"0.8190643",
"0.81885153",
"0.8186... | 0.8371389 | 10 |
Convert datetime object to a string. | def OLXh(BWXx, GUy1='%Y-%m-%d'):
return qcWV.strptime(BWXx, GUy1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pTGH(qSq0):\n return qSq0.strftime('%Y/%m/%d %H:%M')",
"def _RwM(eGVy):\n return eGVy.strftime(EHRT)",
"def hLAQ(Emd4, pdbK, yAKl=rbmW.ISO):\n return pdbK.strftime(yAKl)",
"def oKfy(JRYC: datetime) -> str:\n return str(JRYC)",
"def ab7L(Ty9i):\n if isinstance(Ty9i, qcWV):\n return... | [
"0.83085066",
"0.8223775",
"0.8149094",
"0.81439877",
"0.8043417",
"0.7912838",
"0.78416884",
"0.7767585",
"0.7761244",
"0.77284306",
"0.7598697",
"0.7476055",
"0.7472238",
"0.74691284",
"0.7422417",
"0.74218947",
"0.741244",
"0.7385472",
"0.73734313",
"0.7366732",
"0.7365508... | 0.0 | -1 |
Convert string to a datetime object. | def yLCI(BWXx, GUy1='%Y-%m-%d'):
return qcWV.strftime(BWXx, GUy1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8Xh(mbyn: str) -> qcWV:\n fBin = feVn.parse(mbyn)\n return fBin",
"def DSF0(vIwR):\n from datetime import datetime\n from dateutil.parser import parse\n U5Jc = parse(vIwR, default=datetime(1, 1, 1))\n return U5Jc",
"def dDPx(mbyn):\n try:\n return qcWV.datetime.strptime(mbyn, '... | [
"0.8065145",
"0.79899555",
"0.7839683",
"0.78271925",
"0.77289075",
"0.7681352",
"0.76263064",
"0.7619135",
"0.7616835",
"0.76031923",
"0.7565018",
"0.7548327",
"0.7522984",
"0.7499579",
"0.7476721",
"0.7464832",
"0.74550635",
"0.74550635",
"0.74550635",
"0.74550635",
"0.7436... | 0.0 | -1 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z, x0eS, CjKC):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
if x0eS == 'all':
XYie = jQ3Z['month'].mode()[0]
XMbm = jQ3Z['month'].value_counts().max()
print('Most common month: {}, count: {}, for weekday: {}'.format(XYie, XMbm, CjKC.ti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z, x0eS, CjKC):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
bTuL = jQ3Z['Start Station'].mode()[0]
lUmU = jQ3Z['Start Station'].value_counts().max()
print('Most common start station: {}, count: {}, for month: {} and weekday: {}'.format(bTuL, lUmU, x0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z, x0eS, CjKC):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
bJiw = jQ3Z['Trip Duration'].sum()
trxM = qcWV.timedelta(seconds=int(bJiw))
print('Total travel time: {} seconds or {}, for month: {} and weekday: {}'.format(bJiw, trxM, x0eS.title(), CjKC.title()))
RB_u = j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
Return path to standardization configuration file. | def dS5m(Tuqy):
return 'stdcfg_{m}.txt'.format(m=Tuqy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cLAE() -> oAb3.Path:\n return oAb3.Path(xAKo).parent / Fv2L.APPCFG",
"def S673(YKHO):\n return Hy7s.path.expanduser(YKHO.options.config_file)",
"def RrNC(YKHO):\n return YKHO.SETTINGS_FILE",
"def RrNC(YKHO):\n return Hy7s.path.join(YKHO.SETTINGS_DIR, YKHO.SETTINGS_FILE)",
"def wTn4(YKHO):\n... | [
"0.7276365",
"0.7160516",
"0.6912663",
"0.6872591",
"0.686632",
"0.6839139",
"0.6832726",
"0.6819595",
"0.67758095",
"0.6729964",
"0.67194563",
"0.6651869",
"0.6624719",
"0.6616139",
"0.6608526",
"0.65432715",
"0.6541103",
"0.65045464",
"0.64986944",
"0.64692485",
"0.6465968"... | 0.6735752 | 9 |
Join package and module with a dot. | def OPdP(B5hb, yR_P):
if B5hb:
mWFP = B5hb
if yR_P:
mWFP += '.' + yR_P
else:
mWFP = yR_P
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kteb(YBcr):\n if YBcr.startswith('.'):\n K9fi = YBcr\n else:\n K9fi = '.' + YBcr\n return K9fi",
"def N6FP(Q6kx):\n Aofo = [Q6kx.value]\n _AKB = Q6kx.parent\n while _AKB.type == 'dot':\n Aofo.append(_AKB[1].value)\n _AKB = _AKB.parent\n return '.'.join(Aofo)",... | [
"0.6453009",
"0.63251305",
"0.6043446",
"0.5855289",
"0.5855289",
"0.5820539",
"0.5819457",
"0.5819457",
"0.5819277",
"0.5819277",
"0.58095837",
"0.5806539",
"0.58027285",
"0.5802145",
"0.5795093",
"0.5705727",
"0.5648108",
"0.56437564",
"0.5633785",
"0.5615911",
"0.55879486"... | 0.4892066 | 94 |
Generate a k3d Plot for scalar data associated to a twodimensional |Grid|. The grid's |ReferenceElement| must be the triangle or square. The data can either be attached to the faces or vertices of the grid. | def mtBd(Cs6h, KkY2, C1GJ=([0, 0], [1, 1]), kCdo=2, leAC=None, Dy_V=None, mXB9=False, H_7r=False, ZLJ_=2, YDzg=tRp2('viridis')):
assert len(C1GJ) == 2
assert all((1 < len(C1GJ[YRbF]) < 4 for YRbF in range(2)))
assert len(C1GJ[0]) == len(C1GJ[1])
if isinstance(YDzg, cdpT):
YDzg = [(WKvO, *YDzg(WK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOvO(Cs6h, ITS7, P6bq):\n rApN, Kmii = oyIN.meshgrid(Cs6h, ITS7)\n LZpg = QrM1.figure(figsize=(6, 6))\n aNZO = LZpg.add_subplot(111, projection='3d')\n aNZO.plot_surface(rApN, Kmii, P6bq)",
"def sqSt(YKHO, __n6):\n YKHO.ax.plot_trisurf(__n6.data[:, 0], __n6.data[:, 0], __n6.data[:, 2], label=_... | [
"0.6303695",
"0.6168092",
"0.6158187",
"0.5887011",
"0.5755218",
"0.56644756",
"0.5589158",
"0.55405575",
"0.55331844",
"0.5525868",
"0.54874015",
"0.54558533",
"0.5430945",
"0.5424919",
"0.5418344",
"0.540053",
"0.5385062",
"0.5384119",
"0.5379785",
"0.53668016",
"0.5361718"... | 0.5591136 | 6 |
get sum for queryset. | def sTKP(umWR, Jyyj):
Dx4K = '%s__sum' % Jyyj
Sgcx = umWR.aggregate(zphJ(Jyyj))[Dx4K]
return Sgcx if Sgcx else 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sum(YKHO, JfyU=None):\n return rwZh(YKHO.collection, YKHO.pipeline, '$sum', JfyU).scalar",
"def TWlD(YKHO):\n return YKHO.sum",
"def jX9C(YKHO):\n return sum((c3_1.get_sum() for c3_1 in YKHO.meals.all()))",
"def sum(YKHO):\n return YKHO._total",
"def sum(YKHO):\n return YKHO._sum",
"de... | [
"0.72815657",
"0.71610075",
"0.71415937",
"0.71277606",
"0.7110531",
"0.70944124",
"0.6996107",
"0.68907773",
"0.6818034",
"0.680568",
"0.6780031",
"0.66364324",
"0.6603692",
"0.6601525",
"0.66011375",
"0.65972084",
"0.6590783",
"0.6581651",
"0.6574391",
"0.65710074",
"0.6536... | 0.7474365 | 0 |
Get a list of paths to packages this PKGBUILD will produce when built. | def o20s(YKHO):
if YKHO._packagelist:
return YKHO._packagelist
YKHO.update()
HCmI = ['makepkg', '--packagelist']
if YKHO.makepkg_conf:
HCmI += ['--config', YKHO.makepkg_conf]
Mkmy = iXC1(HCmI, cwd=YKHO.builddir, capture_output=True, text=True, check=True)
YKHO._packagelist = Mkmy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cEzT(YKHO):\n if 'packages' in YKHO.get_config()['tool']['poetry']:\n A37B = []\n for sKYw in YKHO.get_config()['tool']['poetry']['packages']:\n if 'from' in sKYw:\n A37B.append(gzes(sKYw['from'], sKYw['include']))\n else:\n A37B.append(sKYw[... | [
"0.76022434",
"0.75474846",
"0.74893296",
"0.7130495",
"0.71252495",
"0.7120279",
"0.71189004",
"0.7099419",
"0.7083381",
"0.698318",
"0.69759554",
"0.6944504",
"0.6896075",
"0.68955904",
"0.6890347",
"0.6874906",
"0.6859687",
"0.68539006",
"0.6846335",
"0.6833213",
"0.681588... | 0.74565667 | 3 |
Get type of dependency. | def TnLO(YKHO, mWFP):
if mWFP in YKHO.depends:
return 'depends'
if mWFP in YKHO.makedepends:
return 'makedepends' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TnLO(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'dependency_type')",
"def FRul(Emd4):\n ...",
"def Dlsn(YKHO):\n return YKHO._type",
"def FRul(Emd4):\n return Emd4.type",
"def FRul(YKHO):\n pass",
"def FRul(YKHO):\n pass",
"def FRul(YKHO):\n pass",
"def FRul(YKHO):\n pass... | [
"0.8706905",
"0.6480174",
"0.64278144",
"0.6407618",
"0.6354159",
"0.6354159",
"0.6354159",
"0.6354159",
"0.6354159",
"0.63319737",
"0.62922776",
"0.6292126",
"0.6292126",
"0.6291532",
"0.6291532",
"0.6291532",
"0.6280405",
"0.6258391",
"0.6254009",
"0.6254009",
"0.6254009",
... | 0.74136245 | 1 |
Get dependency Restrictions for a package by name. | def Alad(YKHO, mWFP):
if mWFP in YKHO.depends:
return YKHO.depends[mWFP]
if mWFP in YKHO.makedepends:
return YKHO.makedepends[mWFP]
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YMqt(YKHO, hxGQ):\n for zJAO in YKHO.package_dump['dependencies']:\n if zJAO['name'] == hxGQ:\n uiGr = zJAO['requirement']['range'][0]\n return (uiGr['lowerBound'], uiGr['upperBound'])\n raise ValueError('Could not find package called', hxGQ)",
"def ev6R(NCls: Database) -> ... | [
"0.7021405",
"0.68381554",
"0.60356283",
"0.5989116",
"0.5973508",
"0.59651893",
"0.5918917",
"0.58485544",
"0.5793603",
"0.57147557",
"0.5710228",
"0.56979096",
"0.5661611",
"0.5612511",
"0.55895764",
"0.55846256",
"0.5569503",
"0.5564255",
"0.55542845",
"0.5540912",
"0.5537... | 0.7224038 | 0 |
using Morris Traversal to inorder travel BST and check the wrong point, first wrong point it's value bigger than next one,when we find first point, the second wrong point's value less than previous one. | def tnXj(YKHO, tk5Y):
Q6kx = i8DB(None)
XVAW = Q6kx
VQ6Z = Q6kx
wzkt = tk5Y
MxXY = Q6kx
cWFu = Q6kx
while wzkt:
GfdN = 0
if not wzkt.left:
XVAW = VQ6Z
VQ6Z = wzkt
GfdN = 1
wzkt = wzkt.right
else:
uv6v = wzkt.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tnXj(YKHO, tk5Y: TreeNode) -> None:\n \"\"\"\n - two breaches : neighbour adjacent ( one breach ), not adjacent ( two breaches )\n - exchange pointer if one breach\n - for two breaches, 1st breach same approach, at 2nd breach : move F to larger number, \n - egde case : \n ... | [
"0.6750351",
"0.6668626",
"0.65926063",
"0.65694827",
"0.65694827",
"0.65694827",
"0.65165097",
"0.646465",
"0.6331002",
"0.6260056",
"0.6173961",
"0.6123004",
"0.6120859",
"0.6118941",
"0.6052163",
"0.6044448",
"0.6033676",
"0.5991936",
"0.5987188",
"0.595423",
"0.59323794",... | 0.7115601 | 0 |
Creates a response represented in json from a given source | def axMG(JZXy):
try:
if JZXy is None:
return CUA1(-2, 'Response is empty!', 400)
return oGir(qQXR.dumps(JZXy.__dict__), status=200, mimetype='application/json')
except Exception as e:
G9jH.error('Error creating json response from %s,', JZXy, tTpl.message) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, JZXy: dict) -> dict:\n return super(ExMO, YKHO).post(JZXy)",
"def FIMM(YKHO, JZXy):\n YKHO.api_response = G4JS.get(YKHO.api_address).json()\n YKHO.source = JZXy",
"def nxti(WTO6, TBsA):\n qv1X = VNUm(WTO6)\n qv1X.add_header('Content-Type', 'application/json; charset=utf-8')\n J... | [
"0.64083904",
"0.6219517",
"0.59392935",
"0.59061813",
"0.58865",
"0.5884814",
"0.5798002",
"0.5788453",
"0.578228",
"0.5771716",
"0.5727702",
"0.57197994",
"0.5660448",
"0.56550723",
"0.5643326",
"0.56321543",
"0.5626583",
"0.558406",
"0.55833673",
"0.5575932",
"0.5490504",
... | 0.8356448 | 0 |
Creates an error response represented in json | def CUA1(Wxnj, JBZA, E4zG):
try:
geh0 = pz3A(status=Wxnj, description=JBZA)
geh0.status_code = E4zG
return geh0
except Exception as e:
G9jH.error('Error creating json error response from %s,', tTpl.message) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y__t(YKHO):\n return jnRN({'error': YKHO.message, 'status': 'error'}, status=YKHO.status)",
"def G3KB(P1dF: errors.Error) -> str:\n jsO8 = {'status': d2m_.ERROR, 'message': str(P1dF)}\n return pz3A(jsO8)",
"def jxdG(nPrm):\n wLKY = {}\n wLKY['success'] = 'false'\n wLKY['data'] = {}\n w... | [
"0.8135578",
"0.80043024",
"0.79960465",
"0.79960465",
"0.79404837",
"0.7777966",
"0.77195305",
"0.77152276",
"0.77150106",
"0.77042806",
"0.7702793",
"0.7668914",
"0.76342225",
"0.7621067",
"0.7597956",
"0.75802284",
"0.75569415",
"0.7546113",
"0.7545036",
"0.7544674",
"0.75... | 0.75872093 | 15 |
Get manhattan distance from origin. All measurements taken against (0, 0). | def wnQG(WKvO: int, LVAh: int) -> int:
return abs(WKvO) + abs(LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jbj8(YKHO):\n return abs(YKHO.x) + abs(YKHO.y)",
"def OLkv(hLRM: Location, yFgu: Location) -> int:\n VtPS = abs(yFgu.m - hLRM.m)\n vkLq = abs(yFgu.n - hLRM.n)\n return VtPS + vkLq",
"def FDOI(YKHO):\n return oyIN.sum(oyIN.abs(YKHO.origin - YKHO.intersect_wires()), 1)",
"def EP01(YKHO):\n ... | [
"0.8271729",
"0.802694",
"0.79742664",
"0.7827339",
"0.7808446",
"0.77489084",
"0.77374095",
"0.7709899",
"0.765722",
"0.7655675",
"0.76305336",
"0.76252663",
"0.7602759",
"0.7582245",
"0.75713444",
"0.75594044",
"0.7554442",
"0.75492376",
"0.7547574",
"0.7538849",
"0.7469251... | 0.7185784 | 48 |
We'll use file_io to access and load the regressor we fitted during training. We then return an instance of the Model class that are ready for doing predictions. | def tyeH(axZ9):
with axZ9('regressor.pickle', 'rb') as eHNT:
lOgS = t2lc.load(eHNT)
return wOed(lOgS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nHzR(YKHO, SkYi):\n C3ST = _lsB()\n Lcqa = YKHO.dataset.train_data[YKHO.dataset.feature_names]\n VJv0 = YKHO.dataset.train_data[YKHO.dataset.outcome_name]\n C3ST.fit(Lcqa, VJv0)\n t2lc.dump(C3ST, open(SkYi, 'wb'))\n return C3ST",
"def F6n_(ciz2: str) -> XAxs:\n qaEx = dYSh(ciz2)\n try... | [
"0.7480745",
"0.7275353",
"0.7029881",
"0.6906304",
"0.68044156",
"0.6796527",
"0.67653286",
"0.67440933",
"0.66825783",
"0.66666394",
"0.6638484",
"0.66131026",
"0.65904677",
"0.6550621",
"0.6543238",
"0.65057594",
"0.64465046",
"0.64372987",
"0.643586",
"0.6412138",
"0.6404... | 0.80059254 | 0 |
Validates url, which must be docs.google.com | def tC0o(YKHO, nPrm, **B2fa):
MzoS = nPrm.get('data_url')
if not KSw8(url=MzoS):
raise sUXu('Wrong URL entered') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AlsV(YKHO):\n bD7m = YKHO.fields.get('url', '')\n if YKHO.fields.get('url', '').count(' ') > 0:\n YKHO.errors.append('space in url')\n _dHX = ('ebrary', 'degruyter', 'doi', 'myilibrary', 'academia', 'ebscohost')\n for exwG in _dHX:\n if exwG in bD7m:\n YKHO.errors.append('%... | [
"0.7571552",
"0.7281047",
"0.7253135",
"0.7252356",
"0.7229549",
"0.7221487",
"0.71570146",
"0.71531296",
"0.71152055",
"0.71031445",
"0.7071221",
"0.698001",
"0.6956849",
"0.6956531",
"0.695184",
"0.6864306",
"0.68641794",
"0.6856437",
"0.6821496",
"0.6821496",
"0.68174887",... | 0.0 | -1 |
Log Errors caused by Updates. | def P1dF(QdZT, QpfX):
bo34.warning('Update "%s" caused error "%s"', QdZT, QpfX.error) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err... | [
"0.7895395",
"0.788395",
"0.78750193",
"0.7873498",
"0.78300834",
"0.7790406",
"0.7785151",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.7781314",
"0.77660847",
"0.77220625",
"0.77220625",
"0.7721968",
"0.77089256",
"0.76969343",
"0.76579255",
"0.7... | 0.7746185 | 14 |
Performs a batch normalization followed by a ReLU. | def e32L(g4y1, LT6S, wH3T):
g4y1 = ZylS.layers.batch_normalization(inputs=g4y1, axis=1 if wH3T == 'channels_first' else 3, momentum=ddHF, epsilon=UCFg, center=True, scale=True, training=LT6S, fused=True)
g4y1 = ZylS.nn.relu(g4y1)
return g4y1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vWKW(YKHO, input, Tuqy):\n H0zq = YKHO.momentum\n if Tuqy == 'train':\n Nc6L = oyIN.mean(input)\n QrBZ = oyIN.var(input)\n YKHO.running_mean = H0zq * YKHO.running_mean + (1 - H0zq) * Nc6L\n YKHO.running_var = H0zq * YKHO.running_var + (1 - H0zq) * QrBZ\n mbJQ = input - ... | [
"0.69561195",
"0.68267304",
"0.674973",
"0.6697324",
"0.6680035",
"0.6658945",
"0.6598223",
"0.6568303",
"0.6565555",
"0.6555847",
"0.65463996",
"0.65262914",
"0.6521953",
"0.6521595",
"0.65019596",
"0.6480877",
"0.64801097",
"0.64795494",
"0.6460631",
"0.64497024",
"0.64486"... | 0.6724042 | 3 |
Pads the input along the spatial dimensions independently of input size. | def ED9e(g4y1, Ot1W, wH3T):
FpMw = Ot1W - 1
bWa5 = FpMw // 2
REHY = FpMw - bWa5
if wH3T == 'channels_first':
PE9h = ZylS.pad(g4y1, [[0, 0], [0, 0], [bWa5, REHY], [bWa5, REHY]])
else:
PE9h = ZylS.pad(g4y1, [[0, 0], [bWa5, REHY], [bWa5, REHY], [0, 0]])
return PE9h | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zFJe(CK9p, zNig):\n return CK9p + [0] * (zNig - len(CK9p))",
"def iY1y(YKHO, g4y1):\n exwG, a1PO, Z9rn, MKlR, yzQ0 = g4y1.size()\n OM4u = (16 - MKlR % 16) % 16\n u6Wc = (16 - yzQ0 % 16) % 16\n if OM4u != 0 or u6Wc != 0:\n g4y1 = g4y1.view(-1, Z9rn, MKlR, yzQ0)\n g4y1 = vuvg.pad(g... | [
"0.7193613",
"0.7166866",
"0.67570174",
"0.6460651",
"0.6451227",
"0.6387682",
"0.6379615",
"0.6360426",
"0.6323295",
"0.63100976",
"0.62875295",
"0.6236088",
"0.62218",
"0.6195477",
"0.61888456",
"0.6141643",
"0.61312217",
"0.6118717",
"0.6069744",
"0.6059809",
"0.6058854",
... | 0.55104595 | 92 |
Strided 2D convolution with explicit padding. | def yN4c(g4y1, KUnM, Ot1W, FEri, wH3T):
if FEri > 1:
g4y1 = ED9e(g4y1, Ot1W, wH3T)
return ZylS.layers.conv2d(inputs=g4y1, filters=KUnM, kernel_size=Ot1W, strides=FEri, padding='SAME' if FEri == 1 else 'VALID', use_bias=False, kernel_initializer=ZylS.variance_scaling_initializer(), data_format=wH3T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xl1a(FCPk, Ot1W, _0fC, ivFb=1, dvgN=0, TWfd=0):\n return epAf.floor((FCPk + 2 * dvgN - ivFb * (Ot1W - 1) - 1) / _0fC) + 1",
"def iTtX(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='VALID', name='convolution')",
"def xC4s(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, X... | [
"0.7355424",
"0.73396486",
"0.73038566",
"0.7289577",
"0.7229475",
"0.7209308",
"0.71844846",
"0.7096817",
"0.7039749",
"0.70375925",
"0.7036603",
"0.7031906",
"0.7012138",
"0.700571",
"0.69770306",
"0.69762814",
"0.69762814",
"0.69762814",
"0.69762814",
"0.69762814",
"0.6976... | 0.68594813 | 42 |
Bottleneck block variant for residual networks with BN before convolutions. | def DBu1(g4y1, KUnM, LT6S, ktiQ, FEri, wH3T):
PWHU = g4y1
g4y1 = e32L(g4y1, LT6S, wH3T)
if ktiQ is not None:
PWHU = ktiQ(g4y1)
g4y1 = yN4c(inputs=g4y1, filters=KUnM, kernel_size=1, strides=1, data_format=wH3T)
g4y1 = e32L(g4y1, LT6S, wH3T)
g4y1 = yN4c(inputs=g4y1, filters=KUnM, kernel_si... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MIwg(GhuM, crg_, zBu_, ik2X=10, LMWo=False):\n ZY3Q = 16\n g4y1 = bdPE.layers.Input(shape=GhuM)\n WKvO = zUti(inputs=g4y1, train_size=zBu_, n_filter=ZY3Q, conv_first=True, bayesian=LMWo)\n for EtM5 in range(3):\n for DFIV in range(crg_):\n YDYE = 'relu'\n uNRR = True\n ... | [
"0.6813151",
"0.6760086",
"0.67089677",
"0.6654016",
"0.66104037",
"0.6609299",
"0.65817237",
"0.65756214",
"0.6530707",
"0.65190816",
"0.64971894",
"0.6478317",
"0.647611",
"0.6457269",
"0.64551926",
"0.6406003",
"0.6399762",
"0.6382495",
"0.63722384",
"0.6362255",
"0.632244... | 0.0 | -1 |
Returns the ResNet model for a given size and number of output classes. | def wvoX(GRZp, jTqs, wH3T=None):
t9eR = {18: {'block': p_be, 'layers': [2, 2, 2, 2]}, 34: {'block': p_be, 'layers': [3, 4, 6, 3]}, 50: {'block': DBu1, 'layers': [3, 4, 6, 3]}, 101: {'block': DBu1, 'layers': [3, 4, 23, 3]}, 152: {'block': DBu1, 'layers': [3, 8, 36, 3]}, 200: {'block': DBu1, 'layers': [3, 24, 36, 3]}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d3yt(GhuM=(28, 28, 1), KndY=10):\n g4y1 = fhcK.Input(shape=GhuM)\n K0Xe = ZylS.keras.applications.ResNet101(weights=None, include_top=False, input_tensor=g4y1, pooling='avg')\n WKvO = K0Xe.outputs[0]\n WKvO = fhcK.Dropout(0.5)(WKvO)\n WKvO = fhcK.Dense(KndY, activation='softmax')(WKvO)\n C3ST... | [
"0.6730532",
"0.6672354",
"0.6652244",
"0.66393554",
"0.662738",
"0.65898687",
"0.65394413",
"0.6521963",
"0.6518258",
"0.6510369",
"0.6505919",
"0.6446921",
"0.64419514",
"0.6421884",
"0.6421884",
"0.6417862",
"0.64130545",
"0.6409916",
"0.6406058",
"0.6388119",
"0.6385025",... | 0.62269706 | 43 |
String for representing the MyModelName object (in Admin site etc.). | def zAg0(YKHO):
return YKHO.user_name | {
"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) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'",
"def zAg0(YKHO):\n return f'{YKHO.name} object'",
"def XWXe(YKHO):\n return 'a model'",
"def XWXe(YKHO):\n ret... | [
"0.78501266",
"0.7635767",
"0.74491674",
"0.7264097",
"0.7239198",
"0.7239198",
"0.7209188",
"0.7205393",
"0.7187224",
"0.71470577",
"0.71187836",
"0.7104075",
"0.7104075",
"0.7104075",
"0.7104075",
"0.7104075",
"0.7104075",
"0.7104075",
"0.7097976",
"0.70922244",
"0.7086534"... | 0.0 | -1 |
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses. | def kblH(YKHO, *qIxc, **B2fa):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_(YKHO):\n print('Subclass and over-ride this method.')",
"def FIMM(YKHO):\n super().__init__(None)",
"def FIMM(YKHO):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2... | [
"0.7978994",
"0.7120676",
"0.7114939",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
"0.70904213",
... | 0.0 | -1 |
The email of the user. Note this request will fail if the parent app doesn't have email permissions on the user account | def D3lj(YKHO):
return gnPz.json.loads(gnPz.graph_get(YKHO.url_path, {'access_token': YKHO.__parent_app.app_access_token}))['email'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO):\n return YKHO._user_dat['email']",
"def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')",
"def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')",
"async def email(YKHO):\n nPrm = await YKHO.login()\n return nPrm['user']['email']",
"def RC0X(YKHO):\n CBIr =... | [
"0.8450964",
"0.8427893",
"0.8427893",
"0.83836424",
"0.8308061",
"0.82119924",
"0.8186222",
"0.8164174",
"0.80888873",
"0.804259",
"0.80407363",
"0.8029994",
"0.7941792",
"0.7927444",
"0.7911386",
"0.788598",
"0.7846711",
"0.7846711",
"0.7846711",
"0.7835896",
"0.7831379",
... | 0.81832874 | 7 |
Creates a new password for the user. | def nz1I(YKHO):
jTXt = str(tuKI.getrandbits(128))
nyyK = gnPz.graph_get(YKHO.url_path, {'method': 'post', 'password': jTXt, 'access_token': YKHO.__parent_app.app_access_token})
return jTXt if nyyK else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO, *qIxc, **B2fa):\n YKHO.password = D2Lq(YKHO.password)\n super(mv1M, YKHO).save(*qIxc, **B2fa)",
"def ZZr_(YKHO, mWFP, P4t4, rRzo, iWzb, dDGN):\n Csk6 = {'expiry': iWzb, 'extra': dDGN}\n d5wr = YKHO.rpc.game.getauthmessage(name=mWFP, application=P4t4, data=Csk6)\n i1fZ = YKHO.env.sig... | [
"0.75767756",
"0.74998903",
"0.74832404",
"0.7402375",
"0.73147565",
"0.72893864",
"0.7250209",
"0.72278637",
"0.721633",
"0.71921515",
"0.7188313",
"0.71607333",
"0.7140832",
"0.71107095",
"0.710629",
"0.7094396",
"0.70739454",
"0.70708567",
"0.70692277",
"0.7061096",
"0.705... | 0.0 | -1 |
Initializes the id_locations_plane and id_projected_region_sizes fields of our IdCartesianPlane. | def FIMM(YKHO, TVTK, H2v2, FyhZ):
YKHO.id_locations_plane = [['0' for IaaG in range(H2v2 + 1)] for IaaG in range(TVTK + 1)]
YKHO.flat_id_locations_plane = []
YKHO.id_projected_region_sizes = ['' for IaaG in range(FyhZ + 1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i70V(NBcv: int, TVTK: Union[float, int], H2v2: Union[float, int]) -> None:\n pass",
"def jBCk(YKHO, id: int, M5Bl: int, DVVB: int, Y2ju: int, JvOq: int, v_0B: int):\n YKHO._id = id\n YKHO._region_id = M5Bl\n YKHO._zone_id = DVVB\n YKHO._data_center_id = Y2ju\n YKHO._cluster_id = JvOq\n Y... | [
"0.5328963",
"0.52490675",
"0.5239991",
"0.5206645",
"0.51992166",
"0.51399887",
"0.5136257",
"0.5135844",
"0.50864536",
"0.50773376",
"0.50595576",
"0.50431997",
"0.5033723",
"0.50312084",
"0.5031079",
"0.5021661",
"0.4977243",
"0.49709457",
"0.49598575",
"0.49529338",
"0.49... | 0.72356534 | 0 |
Initialize memory doubleended queue of size memory_capacity and sampling size sample_size | def FIMM(YKHO, ekHH: int, tk3S: Optional[int]=None) -> None:
super().__init__(ekHH, tk3S)
YKHO.memory = MUE7(maxlen=tk3S) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, klGB, Ep8u, s04k=0.99):\n YKHO.memory = []\n YKHO.buffer_size = klGB\n YKHO.batch_size = Ep8u\n YKHO.unusual_sample_factor = s04k",
"def FIMM(YKHO, klGB, Ep8u, s04k=0.99):\n YKHO.memory = []\n YKHO.buffer_size = klGB\n YKHO.batch_size = Ep8u\n YKHO.unusual_sample_factor = s... | [
"0.6885018",
"0.6885018",
"0.67832583",
"0.67832583",
"0.6779991",
"0.6550156",
"0.6497041",
"0.6493916",
"0.6478343",
"0.64541584",
"0.6444206",
"0.6416245",
"0.63960946",
"0.6389472",
"0.63605744",
"0.6360344",
"0.63489205",
"0.63489205",
"0.63489205",
"0.6343702",
"0.63289... | 0.7894552 | 0 |
Perform an experience and add it to the memory. | def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:
YKHO.memory.append(GsKL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))",
"def H2v5(YKHO, rNYq, XeOP, vOGg, EfGz, _ins):\n tTpl = YKHO.experience(rNYq, XeOP, vOGg... | [
"0.79627395",
"0.7947656",
"0.75726044",
"0.74971443",
"0.7402879",
"0.7352163",
"0.7349728",
"0.7342991",
"0.7326426",
"0.73220384",
"0.73010397",
"0.7288057",
"0.7286044",
"0.7286044",
"0.7267388",
"0.7228308",
"0.7228308",
"0.7228308",
"0.7228308",
"0.7228308",
"0.7228308"... | 0.82890826 | 0 |
Returns the receptor binding rate kUB for either the cooperative or the noncooperative binding model. | def biFN(tjUW, aqZe, Kqv3, V6IE):
if Kqv3 == 1:
r8hN = 24.6 / (12.5 + V6IE)
return aqZe * (r8hN * tjUW ** 0.8 + 1)
else:
return aqZe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zPKK(YKHO):\n return YKHO._base_to_global_rate",
"def h9c7(YKHO):\n return YKHO.nominal_rate / YKHO.compounds_per_year",
"def dQYU(YKHO):\n return tE_f.viterbi_combined_ib_sptr_relative_rate(YKHO)",
"def dQYU(YKHO):\n return tE_f.viterbi_combined_cb_sptr_relative_rate(YKHO)",
"def dQYU(YKHO... | [
"0.6081538",
"0.5891443",
"0.58056486",
"0.5800793",
"0.5785678",
"0.57555735",
"0.5721178",
"0.5712322",
"0.56885934",
"0.5685146",
"0.5684731",
"0.5683534",
"0.56723046",
"0.5671925",
"0.565021",
"0.5633281",
"0.56149244",
"0.56080335",
"0.55941546",
"0.55925953",
"0.558441... | 0.5678459 | 12 |
Add a leaf node to the network. | def ctKo(hKwU, nPrm, rrBf, pFG5):
r8hN = nPrm.shape[0]
assert len(rrBf) == 1, 'Univariate leaf should not have more than one variable in its scope.'
if hKwU.ncat[rrBf[0]] > 1:
kjp6 = iZZ2(oyIN.asarray(rrBf), nPrm.shape[0])
NJ34(kjp6, nPrm, int(hKwU.ncat[rrBf[0]]), hKwU.smoothing)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, WKvO: bytes) -> None:\n n_JI = o7DN(None, None, None, WKvO)\n YKHO.leaves.append(n_JI)\n if len(YKHO.leaves) == 1:\n YKHO.root_node = n_JI\n YKHO.depth = 0\n return\n if YKHO.depth == 0:\n dpvq = 0\n else:\n dpvq = 1 << YKHO.depth - 1\n m02N = YKH... | [
"0.71026796",
"0.6939183",
"0.6936801",
"0.68937737",
"0.6836184",
"0.6791301",
"0.67545205",
"0.67134225",
"0.670459",
"0.6680337",
"0.6629871",
"0.6617975",
"0.6575556",
"0.65749955",
"0.65434504",
"0.6513414",
"0.64709735",
"0.6466813",
"0.63441575",
"0.63317895",
"0.63231... | 0.64042485 | 18 |
Sets the auto_sync_period of this SAVAMapping. | def NPU9(YKHO, NPU9):
YKHO._auto_sync_period = NPU9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVll(TSMu=True):\n assert isinstance(TSMu, bool)\n return OhhX.URI['SET_AUTO_SYNC'].format(host='{host}', enable=XEI0(TSMu))",
"def ZV_e(YKHO, RA73):\n YKHO.abstr.auto_integrate = RA73\n for begE in YKHO.devices:\n begE.update_integ.set()\n YKHO.prsnt.integration_time.Enable(not RA73)\n... | [
"0.6328891",
"0.5823075",
"0.56927454",
"0.56591624",
"0.55689865",
"0.55638474",
"0.55638474",
"0.5514107",
"0.55117565",
"0.54723173",
"0.54578996",
"0.545506",
"0.5420323",
"0.5372107",
"0.53513986",
"0.52727824",
"0.52708775",
"0.5239258",
"0.52224165",
"0.520753",
"0.518... | 0.8845341 | 0 |
Sets the profile of this SAVAMapping. | def z39Z(YKHO, z39Z):
YKHO._profile = z39Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xFV6(YKHO, z39Z):\n YKHO._modify('profile', z39Z)",
"def xCnB(YKHO, z39Z):\n G9jH.debug('SetProfile({})'.format(z39Z))\n return YKHO.direct_output.SetProfile(YKHO.device_handle, z39Z)",
"def xFV6(YKHO, EXH2):\n YKHO.profile = EXH2",
"def z39Z(YKHO, z39Z):\n if z39Z is None:\n raise ... | [
"0.8066691",
"0.77252275",
"0.75871134",
"0.72786605",
"0.6841328",
"0.6782685",
"0.65160173",
"0.65101486",
"0.63053244",
"0.6299283",
"0.62830544",
"0.62340933",
"0.6178378",
"0.6168692",
"0.61306363",
"0.6074124",
"0.6072623",
"0.60436326",
"0.60130954",
"0.60055035",
"0.5... | 0.7668842 | 2 |
Sets the tenant_id of this SAVAMapping. | def mLXZ(YKHO, mLXZ):
YKHO._tenant_id = mLXZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ehIZ(YKHO, ehIZ):\n YKHO._tenant = ehIZ",
"def mLXZ(YKHO, mLXZ):\n if YKHO.local_vars_configuration.client_side_validation and mLXZ is None:\n raise ValueError('Invalid value for `tenant_id`, must not be `None`')\n YKHO._tenant_id = mLXZ",
"def mLXZ(YKHO, mLXZ):\n if YKHO.local_vars_conf... | [
"0.7693655",
"0.72893924",
"0.72893924",
"0.7182592",
"0.7182592",
"0.7182592",
"0.71687645",
"0.7115127",
"0.694165",
"0.6852969",
"0.6852969",
"0.67191994",
"0.6688505",
"0.61027515",
"0.61027515",
"0.6090443",
"0.6008248",
"0.5838829",
"0.5728794",
"0.56299806",
"0.5613674... | 0.8296359 | 0 |
Sets the token of this SAVAMapping. | def eOtH(YKHO, eOtH):
YKHO._token = eOtH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SQxU(YKHO, eOtH):\n YKHO.__token = eOtH",
"def SQxU(YKHO, eOtH):\n YKHO.__token = eOtH",
"def eOtH(YKHO, eOtH):\n YKHO._token = eOtH",
"def SQxU(YKHO, eOtH):\n YKHO.validateToken()\n YKHO.token = eOtH",
"def mDCx(YKHO, eOtH):\n YKHO._token = k5QJ(eOtH)",
"def eOtH(YKHO, eOtH: str):\... | [
"0.806314",
"0.806314",
"0.78727686",
"0.78496474",
"0.78205186",
"0.7771834",
"0.7771834",
"0.7771834",
"0.76313204",
"0.7604442",
"0.7402469",
"0.71332365",
"0.7102484",
"0.707537",
"0.6756498",
"0.6730497",
"0.6696359",
"0.66542757",
"0.66542757",
"0.6652307",
"0.6652307",... | 0.7888657 | 2 |
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 |
Helper function to create 1D vertical arrays. | def ggUq(he6J: Sequence[float]) -> oyIN.ndarray:
he6J = oyIN.array(he6J)
if oyIN.squeeze(he6J).ndim > 1:
raise ValueError("'vec' is not 1D.")
return oyIN.array(he6J).reshape(-1, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HVJK(BWXx, H2v2, TVTK):\n ezWE = []\n for YRbF in range(0, H2v2):\n ezWE.append([None] * TVTK)\n return ezWE",
"def roMy(Ty9i):\n if len(Ty9i.shape) == 1:\n return oyIN.reshape(Ty9i, (-1, 1))\n assert len(Ty9i.shape) == 2, 'Array should not have more than 2 dimensions'\n retur... | [
"0.6290988",
"0.62462693",
"0.6132374",
"0.6132374",
"0.6100043",
"0.6038217",
"0.6021218",
"0.5993943",
"0.59638023",
"0.5861347",
"0.58562165",
"0.5837703",
"0.5837703",
"0.57972574",
"0.57923716",
"0.57794434",
"0.57787687",
"0.5754343",
"0.5745374",
"0.5730603",
"0.572108... | 0.0 | -1 |