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
Begin drawing to the screen.
def nQ1j(Vjhr, uZx2): Vjhr.fill(uZx2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO):\n if YKHO.state.initialized:\n YKHO.state.draw(YKHO.screen)", "def JmFt(YKHO, Vjhr):\n YKHO.state.draw(Vjhr)", "def JmFt(YKHO, Vjhr):\n pass", "def JmFt(YKHO, Vjhr):\n pass", "def JmFt(YKHO, Vjhr):\n return", "def JmFt(YKHO, Vjhr):\n pass", "def JmFt(YKHO, Vjhr)...
[ "0.79549", "0.7904622", "0.7861653", "0.7861653", "0.7820998", "0.7770136", "0.7671847", "0.7650843", "0.76055443", "0.7596223", "0.75894743", "0.7577429", "0.7560258", "0.7560036", "0.7477985", "0.74558645", "0.74385786", "0.7412993", "0.7406073", "0.73950946", "0.739423", ...
0.7798711
5
Function takes a .csv file name and returns a list of dictionaries. Every row is a dictionary.
def Njf1(Ux0P): Aofo = [] with open(Ux0P, mode='r', encoding='utf8') as X2RZ: ixsc = m6_J.DictReader(X2RZ) for rdlD in ixsc: Aofo.append({G1Hx: Ty9i for G1Hx, Ty9i in rdlD.items()}) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pCJY(Ux0P: str) -> list:\n UrXw = QFyr(Ux0P)\n sjXb = UrXw[0]\n hkxX = UrXw[1:]\n YDX_ = []\n for rdlD in hkxX:\n if rdlD:\n N7QT = dict(zip(sjXb, rdlD))\n YDX_.append(N7QT)\n return YDX_", "def HND1(Ux0P: str) -> x1iM[dict]:\n with open(Ux0P) as z36O:\n ...
[ "0.8080408", "0.80095285", "0.79772335", "0.79163146", "0.78658104", "0.78080964", "0.7802735", "0.7795604", "0.7786578", "0.7784556", "0.7776707", "0.7704967", "0.7662024", "0.7658586", "0.7656224", "0.76508474", "0.76378053", "0.7589782", "0.7572785", "0.7569607", "0.755811...
0.717607
45
Takes a list of strings and performs the normalization methods listed.
def NkkI(aqea, na_E): if 'punctuation' in na_E: aqea = [tNiU(KCHu, pC3l) for KCHu in aqea] if 'numbers' in na_E: aqea = [tNiU(KCHu, '0123456789') for KCHu in aqea] if 'stopwords' in na_E: bkVS = set(di0c.words('english')) aqea = [' '.join((GIN8 for GIN8 in KCHu.split() if GIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kgRb(pu8V):\n return map(uD9m, pu8V)", "def pWYL(wuNX):\n iFsT = map(xRwb, wuNX)\n iFsT = UokU(iFsT)\n iFsT = Ur_2(iFsT)\n return iFsT", "def HZY8(rrSk):\n assert isinstance(rrSk, list) and isinstance(rrSk[0], str), 'input must be list of strings'\n SZFh = []\n for YRbF in rrSk:\n ...
[ "0.69355917", "0.67087007", "0.6429719", "0.6428094", "0.64192784", "0.6416333", "0.6409695", "0.63213074", "0.6259211", "0.6187491", "0.6174002", "0.6144425", "0.6099076", "0.6006809", "0.5989588", "0.5970105", "0.5956808", "0.59474164", "0.5938274", "0.592271", "0.5913066",...
0.7481315
0
Gets the name of this atom
def W0tD(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n return YKHO.__name_army", "def mWFP(YKHO):\n if YKHO._name:\n return str(YKHO._name[0][0][0])", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n re...
[ "0.7841862", "0.7832813", "0.7820075", "0.7820075", "0.7820075", "0.7820075", "0.7820075", "0.7820075", "0.78004086", "0.78004086", "0.78004086", "0.78004086", "0.78004086", "0.78004086", "0.78004086", "0.78004086", "0.78004086", "0.78004086", "0.78004086", "0.78004086", "0.7...
0.0
-1
Gets the symmetry class of this atom
def gYab(YKHO): return YKHO.symmetry_class
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fu5m(YKHO) -> AzJI[int, ...]:\n gXfi = aTac()\n dUMs = e0lz.checkResultPtr(YKHO._lib().indigoSymmetryClasses(YKHO.id, lHJN(gXfi)))\n return tuple((dUMs[YRbF] for YRbF in range(gXfi.value)))", "def SzWk(YKHO) -> str:\n return QMU8(YKHO.structure)", "def VWvG(YKHO):\n from cctbx import crystal...
[ "0.68115455", "0.6535879", "0.63850135", "0.6229889", "0.60626316", "0.59134126", "0.58445626", "0.58234674", "0.5693749", "0.5681905", "0.56738734", "0.565654", "0.5644715", "0.5641227", "0.5631633", "0.5619024", "0.5597599", "0.55901796", "0.55796224", "0.55716705", "0.5552...
0.8731107
0
Gets the atomic number of this atom
def NEz0(YKHO): return uwaB.symbol_to_number(YKHO.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NEz0(YKHO) -> int:\n raise NotImplementedError()", "def STqv(YKHO):\n return e0lz.checkResult(YKHO._lib().indigoAtomicNumber(YKHO.id))", "def STqv(YKHO, epBp):\n return YKHO._atomicNumberIndex[epBp - 1]", "def W_Vi(YKHO) -> int:\n return YKHO._num", "def aWG8(N9D1, oxhJ=6):\n YRbF = 0\n ...
[ "0.83582765", "0.80569124", "0.72135675", "0.7155484", "0.67827636", "0.6746413", "0.672706", "0.6673621", "0.6673621", "0.6673621", "0.65958005", "0.6580917", "0.6555597", "0.65353096", "0.6515993", "0.6502041", "0.64999133", "0.64658433", "0.64658433", "0.64658433", "0.6375...
0.8010048
2
Gets the atomic mass of this atom
def yrkk(YKHO): return uwaB.symbol_to_mass(YKHO.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yrkk(YKHO):\n return YKHO.mass", "def bMbF(YKHO):\n return YKHO._mass", "def bMbF(YKHO):\n return YKHO._mass", "def bMbF(YKHO):\n return YKHO.A * ZvCQ", "def bMbF(YKHO) -> float:\n return YKHO.atomic_weight", "def IA3k(YKHO):\n return 1", "def KfFl(YKHO, PXGI):\n if len(YKHO.ma...
[ "0.8268366", "0.8131291", "0.8131291", "0.7928987", "0.7773895", "0.7696427", "0.7648529", "0.7538209", "0.75341326", "0.74744076", "0.74291223", "0.7168369", "0.71578103", "0.71490794", "0.71210665", "0.7120845", "0.71073973", "0.7099391", "0.70856947", "0.7080014", "0.70781...
0.7908525
4
Gets the base priority of this atom. This is equal to its atomic number.
def q9MP(YKHO): return uwaB.symbol_to_number(YKHO.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w6Ac(YKHO):\n return YKHO.__prio", "def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')", "def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')", "def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')", "def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')", "de...
[ "0.69446003", "0.68266004", "0.68266004", "0.68266004", "0.68266004", "0.68266004", "0.68266004", "0.68266004", "0.68266004", "0.68036973", "0.6666232", "0.6640318", "0.6640318", "0.6640318", "0.6640318", "0.6602562", "0.6602562", "0.6602562", "0.6602562", "0.6584468", "0.649...
0.7971872
0
Gets the x position of this atom
def nIKw(YKHO): return YKHO.x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HPWF(YKHO):\n return YKHO._position[1]", "def Ktcp(YKHO):\n return YKHO._position_x", "def Ktcp(YKHO):\n return YKHO._position_x", "def WKvO(YKHO):\n return YKHO.__position.x", "def Aco_(YKHO):\n return YKHO.__pos_x", "def nIKw(YKHO):\n return YKHO._coordinate.get_x()", "def WKvO(...
[ "0.87995", "0.85457766", "0.85457766", "0.85327786", "0.8503269", "0.846137", "0.8372024", "0.8356044", "0.8332592", "0.82990646", "0.824697", "0.81674254", "0.81631726", "0.81475013", "0.81263053", "0.8107591", "0.80518425", "0.7984433", "0.7972764", "0.79585266", "0.7901036...
0.7732381
25
Assert that the GET account manufacturer info endpoint behaves as expected.
def zd1x(cuiw, x0hE, DvJO, QoB4, Tf5Y, Z31E, jGRS, zNig): MOPg = FkU2(DvJO, Tf5Y, 'test-user', Z31E) if Z31E else O9Yb(DvJO, Tf5Y) im04 = x0hE.get('/api/v1/manufacturers', headers=MOPg) assert im04.status_code == jGRS if jGRS == qed_.OK: zgjV = im04.json assert zgjV assert zgjV.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mxwL(YKHO):\n Ylbp = YKHO.client.get('api/info', headers=YKHO.api_headers)\n YKHO.assertTrue(Ylbp.status_code == 200)\n sjfE = qQXR.loads(Ylbp.data)\n YKHO.assertIn('brand', sjfE)\n YKHO.assertEqual(type(sjfE['brand']), type([]))\n YKHO.assertIn('asin', sjfE)\n YKHO.assertEqual(type(sjfE['...
[ "0.6815516", "0.66135615", "0.65970147", "0.6553169", "0.6534255", "0.64630365", "0.64547515", "0.64321333", "0.6393835", "0.6318985", "0.6280206", "0.6277067", "0.6270772", "0.62579525", "0.6246828", "0.62241066", "0.6205973", "0.6205324", "0.6197941", "0.6169525", "0.615905...
0.74580073
0
Helper method to check if a file exists.
def ROGV(YKHO, gIsw, BuX_=True): return Hy7s.path.isfile(YKHO.BuildFullPathToFileName(gIsw, work_dir=BuX_))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def poxP(qaEx):\n return pmON.exists(qaEx)", "def Pj8c(jQJk):\n bo34.debug('Checking if file \"{}\" exists'.format(jQJk))\n return vtfo('-f', jQJk)", "def IeRR(pmON):\n return Hy7s.path.isfile(pmON)", "def hZSK(YKHO, Ux0P):\n if Hy7s.path.isfile(Ux0P):\n return True\n else:\n ...
[ "0.8436802", "0.84354967", "0.8412386", "0.83901757", "0.83214015", "0.8292995", "0.8287982", "0.827545", "0.82714856", "0.82507616", "0.8236625", "0.8226038", "0.81994975", "0.8196109", "0.8185578", "0.8180008", "0.8172687", "0.8162355", "0.8152263", "0.814859", "0.8132747",...
0.0
-1
Reads from a text file into a String. Expected to be used for small files.
def T4MV(YKHO, gIsw, BuX_=True): m3zO = YKHO.BuildFullPathToFileName(gIsw, work_dir=BuX_) if not YKHO.FileExists(gIsw, work_dir=BuX_): raise OW2_.AdminAPIToolFileError('Cannot read file %s.' % m3zO) with open(m3zO, 'r') as eHNT: return eHNT.read()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OcVp(qaEx):\n LFxn = open(qaEx).read()\n return LFxn", "def m_k2(gIsw) -> str:\n if isinstance(gIsw, str):\n gIsw = GkAb(gIsw)\n with gIsw.open('r', encoding='utf-8') as GJvs:\n return GJvs.read()", "def mO57(Ux0P):\n with open(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath...
[ "0.80979306", "0.8038176", "0.8016692", "0.79908264", "0.7976321", "0.79380226", "0.7928989", "0.79252875", "0.7918678", "0.7904969", "0.79040307", "0.78811204", "0.7859104", "0.78560627", "0.7820526", "0.7819238", "0.7816368", "0.78142804", "0.7790722", "0.7785779", "0.77796...
0.7304044
98
Reads from a json file into a Python object.
def df_I(YKHO, gIsw, BuX_=True): m3zO = YKHO.BuildFullPathToFileName(gIsw, work_dir=BuX_) if not YKHO.FileExists(gIsw, work_dir=BuX_): raise OW2_.AdminAPIToolFileError('Cannot locate file: %s.' % m3zO) with open(m3zO, 'r') as eHNT: try: M_Yt = qQXR.load(eHNT) except Value...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PSj2(Ux0P):\n with open(Ux0P) as eHNT:\n return _PkU(eHNT)", "def EBvf(Ux0P):\n with open(Ux0P, encoding='utf-8') as Vf_1:\n zFiD = Vf_1.readline()\n M_Yt = qQXR.loads(zFiD)\n return M_Yt", "def WEhu(nUeQ):\n with open(nUeQ, 'rb') as input:\n YbAN = qQXR.load(input)\...
[ "0.83912903", "0.838717", "0.8373755", "0.82084715", "0.81984204", "0.81892437", "0.81770366", "0.8158456", "0.813336", "0.8050297", "0.8045692", "0.8028984", "0.80173993", "0.8006583", "0.8001153", "0.7995015", "0.7995015", "0.7975566", "0.797278", "0.79676574", "0.7966528",...
0.0
-1
Draws the screen and all accompanying info
def UMxR(Vjhr, aWuw, ewCu): o9av = a9eO.font.SysFont('helvetica', 30) mrJK = o9av.render('Iteration: ' + str(ewCu), True, (255, 255, 255)) TRc7 = o9av.render('Value: ' + str(aWuw[-1]), True, (255, 255, 255)) Vjhr.blit(mrJK, (20, 20)) Vjhr.blit(TRc7, (20, 50))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO, Vjhr):\n pass", "def JmFt(YKHO, Vjhr):\n pass", "def JmFt(YKHO, Vjhr):\n pass", "def JmFt(YKHO, Vjhr):\n return", "def JmFt(YKHO, Vjhr):\n pass", "def _1tc(YKHO):\n YKHO.window.fill((0, 0, 0))\n YKHO.__draw_grid__()\n YKHO.snake.draw(YKHO.window)\n YKHO.food.draw...
[ "0.8363227", "0.83621365", "0.83621365", "0.83171076", "0.8202839", "0.8023158", "0.8020067", "0.7991086", "0.7984436", "0.79689616", "0.7959621", "0.7922198", "0.78865904", "0.78731114", "0.7822436", "0.7806895", "0.7792905", "0.7786343", "0.7758268", "0.7755705", "0.7754848...
0.0
-1
Return header and all webdes in the DB and display home page
def ap8a(QePW): HU1l = CBgb.objects.all() return _1tc(QePW, 'index.html', {'webdes': HU1l})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html', side_data=WAUR())", "def kZiy(QePW):\n w2B8 = iHv3.connect('db.sqlite3')\n assert isinstance(QePW, eu5F)\n return _1tc(QePW, 'app/index.html', {'title': 'Home Page', 'year': qcWV.now().year})", "def kZiy():\n l_7H = HlLx.read_all_news()\n BkYD = HlLx.rea...
[ "0.6909269", "0.67812353", "0.6763285", "0.66162425", "0.6538244", "0.6504235", "0.650248", "0.6486163", "0.6478258", "0.64701957", "0.6464188", "0.64602685", "0.64550716", "0.644436", "0.6440168", "0.64272624", "0.64112824", "0.6405132", "0.63978577", "0.63935846", "0.638798...
0.6796194
1
make a random string
def j9F_(exwG): return ''.join((Acvy('abcdefghijklmnopqrstuvwxyz') for YRbF in range(exwG)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDq5():\n if tuKI.random() < 0.2:\n return Vt_K()\n else:\n return tuKI.choice(['', 'a', 'um', 'foo', 'quack', ',', ':', '\"', '}{'])", "def eTqN():\n return str(qxeD.uuid4())[:10]", "def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ...
[ "0.8445883", "0.84201896", "0.8307581", "0.81827796", "0.8155301", "0.80932033", "0.79833233", "0.79703414", "0.79409266", "0.7935801", "0.79282373", "0.79231757", "0.7919948", "0.79002964", "0.7873509", "0.7873278", "0.78419536", "0.7821743", "0.7821627", "0.7814698", "0.780...
0.7553133
73
Normalize blockMat by dividing all entries by norm.
def jnV4(k317, CkYf): def Oa1e(XkN1): qvzn = MSoC.dense(XkN1[1].numRows, XkN1[1].numCols, XkN1[1].toArray() / CkYf) return (XkN1[0], qvzn) tbgW = k317.blocks.map(Oa1e) return sruU(tbgW, rowsPerBlock=k317.rowsPerBlock, colsPerBlock=k317.colsPerBlock)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8Yb(YKHO):\n for QyVM, he6J in enumerate(YKHO.mat):\n LDcD = pQCy.L2_norm(he6J)\n if LDcD == 0.0:\n for QyVM in range(YKHO.nt):\n he6J[QyVM] = 0\n else:\n for QyVM in range(YKHO.nt):\n he6J[QyVM] /= LDcD", "def kwsU(vb7U):\n retu...
[ "0.69503534", "0.6938255", "0.68254733", "0.67951286", "0.673787", "0.67036504", "0.66838646", "0.66239345", "0.6619699", "0.6613429", "0.6597554", "0.65775794", "0.65765756", "0.6571327", "0.6551549", "0.6538099", "0.65220946", "0.65123636", "0.6504267", "0.64598083", "0.645...
0.8295134
0
Apply softthresholding to a column vector BlockMatrix.
def IbBg(k317, oZuG): def Oa1e(XkN1): i3Jh = XkN1[1].toArray().ravel() qvzn = MSoC.dense(XkN1[1].numRows, XkN1[1].numCols, oyIN.sign(i3Jh) * oyIN.maximum(0, oyIN.abs(i3Jh) - oZuG)) return (XkN1[0], qvzn) tbgW = k317.blocks.map(Oa1e) return sruU(tbgW, rowsPerBlock=k317.rowsPerBlock, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a929(Y4Ek, gwAu):\n Y4Ek[Y4Ek <= gwAu] = 0\n return Y4Ek", "def AA31(jzdc, ZUu2):\n return [oyIN.sign(LihS) * (abs(LihS) - ZUu2) if abs(LihS) - ZUu2 > 0 else 0 for LihS in jzdc]", "def iPF8(jzdc, ZUu2):\n return AA31(jzdc, ZUu2) / oyIN.linalg.norm(AA31(jzdc, ZUu2), ord=2)", "def a929(Y4Ek, gw...
[ "0.6353188", "0.63362473", "0.63278174", "0.62594444", "0.6127394", "0.6126053", "0.60633653", "0.60009086", "0.5794122", "0.5769634", "0.5732674", "0.5723517", "0.5670748", "0.5592184", "0.5540952", "0.55246013", "0.5464172", "0.5451043", "0.54372615", "0.54309744", "0.54258...
0.6695136
0
Returns column(s) j of the input BlockMatrix as a BlockMatrix with the same number of rowsPerBlock.
def Bv7P(k317, r845, CkYf=1): Sa_m = XYQe.getOrCreate() if oyIN.isscalar(r845): WaGG = k317.colsPerBlock F68O = r845 // WaGG A46W = r845 % WaGG y_4x = k317.blocks.filter(lambda WKvO: WKvO[0][1] == F68O) def Oa1e(XkN1): GJM8 = XkN1[1].toArray()[:, A46W] / CkYf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iVRZ(YKHO, r845):\n return YKHO.compute_entries(((YRbF, r845) for YRbF in range(YKHO.shape[0])))", "def iYZ_(k0lF: Matrix, r845: int) -> lNLu:\n return [VWTg[r845] for VWTg in k0lF]", "def iVRZ(SppC, YRbF):\n return [rdlD[YRbF] for rdlD in SppC]", "def iVRZ(YKHO, d6pt):\n ZLJ_ = []\n for r...
[ "0.7046656", "0.6622194", "0.65875924", "0.64305776", "0.63967615", "0.6342354", "0.6296635", "0.6265967", "0.62659144", "0.6255133", "0.6161733", "0.61344147", "0.607086", "0.60677576", "0.60510314", "0.6001437", "0.5889573", "0.57886785", "0.5760213", "0.5738471", "0.572963...
0.7304988
0
Computes an iterator for iterating depthfirst in an unoriented acyclic graph
def OKyt(pNZh, yokr): pNZh = lqeT(pNZh) E5BI = gqag() E5BI.put((None, yokr)) while not E5BI.empty(): _AKB, aUGN = E5BI.get() yOs7 = pNZh[aUGN, :].nonzero()[1] for xhYY in yOs7: if xhYY != _AKB: E5BI.put((aUGN, xhYY)) yield (_AKB, aUGN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LATW(YKHO):\n eK5b = YKHO.__iterateDepthFirst(YKHO.root)\n for exwG in eK5b:\n yield exwG", "def hs2J(YKHO):\n yield YKHO\n if YKHO.getChildren():\n for aUGN in YKHO.children:\n for aUGN in aUGN.iter_DFS():\n yield aUGN", "def Vs4Q(YKHO):\n if YKHO.gor...
[ "0.78158", "0.7293802", "0.7270066", "0.71242565", "0.69984275", "0.6987551", "0.69529223", "0.6933708", "0.6912105", "0.6863902", "0.6851476", "0.68370634", "0.68116415", "0.67738974", "0.6766935", "0.6754588", "0.67413425", "0.6735477", "0.67305714", "0.6712286", "0.6706912...
0.70948935
4
Create and save a User with the given email and password.
def lYUQ(YKHO, D3lj, jTXt, **wdCM): if not D3lj: raise ValueError('The email is a required field.') D3lj = YKHO.normalize_email(D3lj) CBIr = YKHO.model(email=D3lj, **wdCM) CBIr.set_password(jTXt) CBIr.save() return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n D3lj = YKHO.normalize_email(D3lj)\n ...
[ "0.8765867", "0.85452795", "0.85368717", "0.8527806", "0.85269475", "0.85257876", "0.85186416", "0.8508724", "0.8504736", "0.8504567", "0.8504567", "0.8504567", "0.8494046", "0.8494046", "0.84938884", "0.8492852", "0.849132", "0.8490454", "0.8488974", "0.8488869", "0.84864825...
0.84884715
20
Create and save a SuperUser with the given email and password.
def Zp54(YKHO, D3lj, jTXt, **wdCM): wdCM.setdefault('is_staff', True) wdCM.setdefault('is_superuser', True) wdCM.setdefault('is_active', True) if wdCM.get('is_staff') is not True: raise ValueError('Superuser must have is_staff=True.') if wdCM.get('is_superuser') is not True: raise Va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)", "def Zp54(YKHO, D3lj: str, jTXt: str, **wdCM: Dict[str, bool]):\n wdCM.setdefault('is_staff', True)\n wdCM.setdefault('is_superuser', True)\n wdCM.setdefault('is_active', True)\n if wdCM.get('is_staff') is not...
[ "0.81715554", "0.80949867", "0.8072965", "0.80660135", "0.80614394", "0.80550295", "0.80352277", "0.79790324", "0.79607594", "0.7955878", "0.7946088", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7935015", "0.79349...
0.7939117
19
Get whether the switch is in on state.
def Debg(YKHO): return YKHO._state == _rDc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO):\n return YKHO._device.switch_state", "def Debg(YKHO):\n return YKHO._switch", "def Debg(YKHO) -> bool:\n return YKHO.get_str_attr('switch') == 'on'", "def Debg(YKHO) -> bool:\n return YKHO.get_str_attr(jjvs) == 'on'", "def Debg(YKHO) -> bool:\n return YKHO._device.status.swit...
[ "0.8705758", "0.85432655", "0.84745973", "0.8360053", "0.831592", "0.8232141", "0.82223386", "0.81722254", "0.81399924", "0.81373173", "0.80599403", "0.8013262", "0.800909", "0.7978011", "0.7956858", "0.78767025", "0.78766596", "0.78716284", "0.7826502", "0.7818377", "0.78183...
0.7900853
16
Return the state attributes of the switch.
def R1i3(YKHO): return {'last_update': YKHO._vehicle.state.timestamp.replace(tzinfo=None), 'car': YKHO._vehicle.name}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def upgy(YKHO) -> cuzp[str, ImMB]:\n nPrm = super().state_attributes\n for hkS8 in [iMDp, iBza, GfQP, igLb]:\n if hkS8 in YKHO._state and YKHO._state[hkS8] not in ['NULL', None]:\n nPrm[hkS8...
[ "0.7839442", "0.78314465", "0.7722364", "0.7719735", "0.7719735", "0.7719735", "0.7719735", "0.76863396", "0.7655585", "0.76397204", "0.76290464", "0.76290464", "0.76290464", "0.76290464", "0.76290464", "0.7620572", "0.7586994", "0.75601643", "0.75601643", "0.7559371", "0.755...
0.0
-1
Change list of int to comma format.
def fydJ(yqD4): Aofo = [] for WKvO in yqD4: Aofo.append(format(int(WKvO), ',')) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQmU(PVOR):\n return ','.join((str(WKvO) for WKvO in PVOR))", "def Slee(BWXx):\n zXzD = str(BWXx)\n BdN0 = ZbWC.sub('^(-?\\\\d+)(\\\\d{3})', '\\\\g<1>,\\\\g<2>', zXzD)\n if zXzD == BdN0:\n return BdN0\n else:\n return Slee(BdN0)", "def Slee(BWXx):\n zXzD = ILZP(BWXx)\n Bd...
[ "0.7260101", "0.69976836", "0.6947144", "0.6947144", "0.69451416", "0.6903996", "0.68506944", "0.6764904", "0.6764904", "0.6700388", "0.6667033", "0.6607214", "0.6605733", "0.65710473", "0.65560055", "0.6528887", "0.6515958", "0.65058446", "0.64973575", "0.64588916", "0.63704...
0.6872535
6
Return configuration tags merged with dynamically applied tags.
def yhtj(YKHO) -> cuzp[str, ImMB]: dJ1p = YKHO.patroni.tags.copy() if YKHO._disable_sync > 0: dJ1p['nosync'] = True return dJ1p
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qwli(YKHO):\n return YKHO.config", "def Qwli(YKHO):\n return YKHO.config['tags']", "def dJ1p(YKHO):\n dJ1p = YKHO.config.tags\n if dJ1p is not None:\n return dJ1p\n if YKHO.namespace:\n return {'cfngin_namespace': YKHO.namespace}\n return {}", "def Qwli(_Fei: DictConfig):\...
[ "0.7707989", "0.7461739", "0.7404785", "0.72918993", "0.69025713", "0.6695593", "0.66561055", "0.64933497", "0.6440611", "0.6380107", "0.6360201", "0.6359852", "0.63081807", "0.63081807", "0.63081807", "0.63081807", "0.63081807", "0.63081807", "0.63081807", "0.63081807", "0.6...
0.63056207
27
A sequence of all children that are Nodes
def afYC(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ziit(YKHO):\n return YKHO.traverse(lambda WKvO: WKvO.node)", "def Ziit(YKHO):\n yield YKHO\n for aUGN in YKHO.children:\n for V48j in aUGN.nodes:\n yield V48j", "def afYC(YKHO):\n return (YKHO.nodes,)", "def afYC(YKHO) -> iu5r:\n for aUGN in wNRb(YKHO.astNode):\n y...
[ "0.8230931", "0.8018415", "0.7747497", "0.7738054", "0.7584211", "0.75133747", "0.7474744", "0.74297607", "0.7360996", "0.7297372", "0.72765464", "0.7242443", "0.72230905", "0.717371", "0.71631324", "0.7160439", "0.7152815", "0.7151156", "0.7133575", "0.7113015", "0.7111849",...
0.6703587
90
Update images on the screen, and flip to the new screen.
def khpC(YKHO): YKHO.screen.fill(YKHO.settings.bg_color) YKHO.ship.blitme() a9eO.display.flip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aZ12(YKHO):\n G9jH.info('Refreshing Screen')\n Mtfr = YKHO.screen.copy()\n if s7Ie:\n Mtfr = Mtfr.transpose(uGYG.Image.ROTATE_180)\n Mtfr.thumbnail((YKHO.inky.WIDTH, YKHO.inky.HEIGHT), hnIv.ANTIALIAS)\n YKHO.inky.set_image(Mtfr)\n YKHO.inky.show()", "def udoe(YKHO) -> None:\n a9eO...
[ "0.7721892", "0.7474462", "0.72608674", "0.72479343", "0.7220075", "0.7203969", "0.72014827", "0.7164111", "0.71488816", "0.7119272", "0.7105683", "0.7097807", "0.70806247", "0.70427287", "0.70407563", "0.701733", "0.7007418", "0.69852436", "0.6970363", "0.6965794", "0.696231...
0.690409
25
Get the cache directory for downloading a particular data set.
def Hz4f(mWFP, jNha=None): if jNha is None: jNha = Hy7s.path.expanduser('~/.tfsnippet/datasets') return Hy7s.path.join(jNha, mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I7Lz(YKHO) -> GkAb:\n return GkAb(YKHO.directory)", "def wsLY(YKHO):\n return YKHO._get('cachedir')", "def TfyK(YKHO):\n return YKHO._cache_directory", "def BXLT(YKHO):\n return YKHO.path('cache')", "def Hz4f(mWFP, jNha=None):\n if jNha is None:\n jNha = Hy7s.path.expanduser('~/.i...
[ "0.7556393", "0.75338185", "0.7528385", "0.7458997", "0.74385566", "0.74048513", "0.73143727", "0.72717506", "0.72336847", "0.72034514", "0.70761037", "0.697319", "0.69635445", "0.69152105", "0.68809927", "0.6852629", "0.6813779", "0.67857546", "0.6720235", "0.6685587", "0.66...
0.74572194
4
Decodes a record to a TensorFlow example.
def F8vC(AIu6, Q3__): PU1l = ZylS.parse_single_example(AIu6, Q3__) for mWFP in list(PU1l.keys()): a1PO = PU1l[mWFP] if a1PO.dtype == ZylS.int64: a1PO = ZylS.to_int32(a1PO) PU1l[mWFP] = a1PO return PU1l
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F8vC(AIu6, Q3__=Q3__):\n print('record', AIu6)\n PU1l = ZylS.parse_single_example(AIu6, Q3__)\n for mWFP in list(PU1l.keys()):\n a1PO = PU1l[mWFP]\n if a1PO.dtype == ZylS.int64:\n a1PO = ZylS.to_int32(a1PO)\n PU1l[mWFP] = a1PO\n return PU1l", "def F8vC(AIu6, Q3__):...
[ "0.84476423", "0.8302177", "0.82800674", "0.82766104", "0.82766104", "0.82766104", "0.8276019", "0.8274276", "0.8274276", "0.8269405", "0.82662725", "0.8248779", "0.82339126", "0.8223867", "0.8200598", "0.81516314", "0.8129979", "0.81267464", "0.81031084", "0.795859", "0.7956...
0.8213503
14
Plot stock prices with a custom title and meaningful axis labels.
def d8hr(ZGh_, aNZO, VoLU='Date', IICq='Normalised Price'): aNZO.set_xlabel(VoLU) aNZO.set_ylabel(IICq) aNZO.legend(loc='best', fontsize='xx-small') QrM1.savefig('plots/' + ZGh_) QrM1.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d8hr(jQ3Z, leAC='Stock prices', VoLU='Date', IICq='Price'):\n aNZO = jQ3Z.plot(title=leAC, fontsize=12)\n aNZO.set_xlabel(VoLU)\n aNZO.set_ylabel(IICq)\n QrM1.show()", "def d8hr(jQ3Z, leAC='Stock prices'):\n aNZO = jQ3Z.plot(title='Stock', fontsize=12)\n aNZO.set_xlabel('Date')\n aNZO.se...
[ "0.7759675", "0.77391344", "0.76674867", "0.76674867", "0.76674867", "0.7547387", "0.72844446", "0.69381446", "0.67036605", "0.6550414", "0.64936763", "0.642076", "0.64142966", "0.6359887", "0.62844926", "0.6270681", "0.62650603", "0.6257145", "0.62547094", "0.6238681", "0.62...
0.60433054
33
Decimate a tensor by a factor 'm', i.e. downsample by keeping every 'm'th value. This is used when we convert FC layers to equivalent Convolutional layers, BUT of a smaller size.
def Kifp(vhpA, r8hN): assert vhpA.dim() == len(r8hN) for Csk6 in range(vhpA.dim()): if r8hN[Csk6] is not None: vhpA = vhpA.index_select(dim=Csk6, index=ht2j.arange(start=0, end=vhpA.size(Csk6), step=r8hN[Csk6]).long()) return vhpA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBq3(E3D9):\n if not FlzQ(E3D9):\n return pSfY(SkJr(0, E3D9))\n exwG = sa0H(OJ8P.float32, E3D9)\n IRQW = Y1r_(E3D9 - 1)\n return Y1r_(1) - vuvg.absolute(Y1r_(2) * exwG - IRQW) / IRQW", "def QKC6(YKHO, r8hN, WKvO):\n ROpF = WKvO.shape\n WKvO = WKvO.ravel()\n VNqG = WKvO == 0\n p...
[ "0.606858", "0.6046774", "0.58890176", "0.5866524", "0.5846589", "0.5774462", "0.5758467", "0.56708163", "0.5666486", "0.5630741", "0.56110656", "0.55821925", "0.55574155", "0.55458397", "0.553703", "0.5534659", "0.55038667", "0.5483194", "0.54320234", "0.54244494", "0.541810...
0.6890272
0
Check if a given position is under attack from any of the previously placed queens (check column and diagonal positions)
def lPwh(YKHO, FBNX, dnz3, iVRZ): for YRbF in range(dnz3): if FBNX[YRbF] == iVRZ or FBNX[YRbF] - iVRZ == YRbF - dnz3 or FBNX[YRbF] - iVRZ == dnz3 - YRbF: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b367(fvDH, OHLN):\n return fvDH in OHLN or any((abs(fvDH - WKvO) == len(OHLN) - YRbF for YRbF, WKvO in enumerate(OHLN)))", "def HAYG(iBIi, LVAh, WKvO):\n dixj = []\n for YRbF in range(WKvO - iBIi.size, WKvO + iBIi.size + 1):\n for r845 in range(LVAh - iBIi.size, LVAh + iBIi.size + 1):\n ...
[ "0.79316944", "0.7289835", "0.7025854", "0.699809", "0.69720715", "0.687263", "0.6791996", "0.66882956", "0.6615958", "0.6546003", "0.65165627", "0.6477176", "0.6445505", "0.6367459", "0.6358911", "0.6336562", "0.6326747", "0.6315633", "0.6272436", "0.62700725", "0.62622446",...
0.633803
15
Determine scorer from user options. A TypeError will be thrown if the estimator cannot be scored.
def DmSo(BHCt, SrUS=None, *, L8u5=False): if isinstance(SrUS, str): return x2W0(SrUS) if callable(SrUS): yR_P = getattr(SrUS, '__module__', None) if hasattr(yR_P, 'startswith') and yR_P.startswith('sklearn.metrics.') and (not yR_P.startswith('sklearn.metrics._scorer')) and (not yR_P.star...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x2W0(SrUS):\n if isinstance(SrUS, str):\n try:\n HjDq = mnxh[SrUS]\n except KeyError:\n raise ValueError('{} is not a valid scoring value. Use sorted({}) to get valid options.'.format(SrUS, mnxh.keys()))\n else:\n HjDq = SrUS\n return HjDq", "def x2W0(SrUS)...
[ "0.7028516", "0.6931584", "0.663864", "0.6543344", "0.6508423", "0.6343281", "0.6326881", "0.62804705", "0.6272824", "0.61841375", "0.61834174", "0.61329824", "0.60341936", "0.60267234", "0.5999415", "0.5981653", "0.5977791", "0.5957009", "0.5946692", "0.5930122", "0.59194434...
0.67668605
2
Clear the config memoization cache.
def tBIc(YKHO): YKHO.config.get_subconfig.cache.clear()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ORNU(Emd4):\n if Emd4._config_fetcher:\n BfDw.clear_cache(Emd4._config_fetcher)", "def ORNU():\n if not FLTY.exists():\n raise FileNotFoundError('Config file \"config.pickle\" not found. Please run n-largest-set-cache ABSOLUTE_PATH to re-initialize application cache configuration.')\n ...
[ "0.81212115", "0.7691877", "0.72282594", "0.71515477", "0.7098175", "0.7080619", "0.7025703", "0.6965259", "0.6958336", "0.69259626", "0.69259626", "0.6922247", "0.6921707", "0.68980485", "0.6857627", "0.6839318", "0.68322533", "0.68322533", "0.6822896", "0.68053687", "0.6800...
0.6354284
67
Clear the config memoization cache.
def tBIc(YKHO): YKHO.config.get_subconfig.cache.clear()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ORNU(Emd4):\n if Emd4._config_fetcher:\n BfDw.clear_cache(Emd4._config_fetcher)", "def ORNU():\n if not FLTY.exists():\n raise FileNotFoundError('Config file \"config.pickle\" not found. Please run n-largest-set-cache ABSOLUTE_PATH to re-initialize application cache configuration.')\n ...
[ "0.81212115", "0.7691877", "0.72282594", "0.71515477", "0.7098175", "0.7080619", "0.7025703", "0.6965259", "0.6958336", "0.69259626", "0.69259626", "0.6922247", "0.6921707", "0.68980485", "0.6857627", "0.6839318", "0.68322533", "0.68322533", "0.6822896", "0.68053687", "0.6800...
0.6354284
68
Excludes any questions that aren't published yet.
def k66M(YKHO): return Y4Gy.objects.filter(pub_date__lte=rIAI.now())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1Z_(YKHO):\n return YKHO.questions.filter(answers__isnull=True).exclude(T8ck(is_intent=True) | T8ck(mark_answered=True))", "def wd1M(YKHO):\n cqqy = rIAI.now() + qcWV.timedelta(days=1)\n Os4s = rIAI.now() + qcWV.timedelta(days=5)\n yKGp = Y4Gy(pub_date=cqqy, end_date=Os4s)\n YKHO.assertIs(yKG...
[ "0.7141236", "0.7005369", "0.6689306", "0.6570558", "0.6237171", "0.6230217", "0.6227784", "0.6227784", "0.62168455", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.6...
0.59331936
57
Get a dictionary representation of this data set.
def g75F(YKHO): return {'interval': YKHO.interval, 'series': YKHO.series, 'start': YKHO.start, 'end': YKHO.end, 'name': YKHO.datatype.name, 'subname': YKHO.subname, 'measure': YKHO.measure, 'type': YKHO.datatype.__class__.__name__}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n Ylbp = YKHO.data\n return Ylbp", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(YKHO):\n return YKHO.to_dict()", "def MNRr(YKHO) -> dict:\n return YKHO.__data__", "def _fYl(YKHO) -> cuzp[str, ImMB]:\n return YKHO._data", "def lKKu(YKHO) -> cuzp[str, ImMB]:\n r...
[ "0.8213092", "0.80966413", "0.80966413", "0.8073829", "0.804947", "0.7963605", "0.7958019", "0.7902839", "0.7902839", "0.78699654", "0.78518605", "0.78228015", "0.7819316", "0.7794171", "0.7794", "0.77801883", "0.7739136", "0.7732346", "0.77313286", "0.7729053", "0.7715537", ...
0.0
-1
Get the mean value of all measurements in a time period.
def VxYM(YKHO, yKcO, Os4s, USsq='total'): return YKHO.get(yKcO, Os4s, USsq, 'mean')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(YKHO):\n return oyIN.array([Csk6.value for Csk6 in YKHO.data])", "def JBMS(YKHO):\n oxOY = YKHO.data.mean(['x', 'y', 'time'])\n return m0Ri(oxOY)", "def WUEZ(YKHO):\n print(YKHO.data['measurement_value'].mean())", "def DH4Z(hkxX):\n return oyIN.mean(hkxX)", "def nC2r(YKHO):\n ret...
[ "0.7476085", "0.7412434", "0.7355976", "0.7312719", "0.72312975", "0.71689266", "0.71689266", "0.7108181", "0.7099035", "0.7083363", "0.70503455", "0.70408154", "0.70353234", "0.70224905", "0.7004932", "0.7000321", "0.6995547", "0.6991877", "0.69910294", "0.6978012", "0.69652...
0.66212493
92
Get the maximum value of all measurements in a time period.
def fP4Q(YKHO, yKcO, Os4s, USsq='total'): return YKHO.get(yKcO, Os4s, 'max')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eKei(YKHO):\n if YKHO.measured_values:\n AYxC = [IGdc for IGdc in YKHO.measured_values if IGdc['measurement_value'] is not None]\n if AYxC:\n BWXx = max(AYxC, key=TU9R('measurement_value'))\n if YKHO.min_max_ever['metric_max_value'] is None or (YKHO.min_max_ever['metric_m...
[ "0.7656064", "0.7573307", "0.7435009", "0.710041", "0.7045276", "0.69842964", "0.6958659", "0.69580066", "0.69339067", "0.6933324", "0.6928477", "0.6854034", "0.6835139", "0.68248653", "0.68071926", "0.676841", "0.6737055", "0.6730382", "0.6726032", "0.6718882", "0.66711396",...
0.64090145
57
Sort the list of donors by total amount donated. Returns a list of only the donors' names.
def doZq(Xg7Z): return sorted(list(Xg7Z), key=lambda WKvO: -sum(Xg7Z[WKvO]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tv9v(geg6):\n dHuG = list(geg6.items())\n LDmQ = sorted(dHuG, key=lambda WKvO: sum(WKvO[1]), reverse=True)\n RGb3 = [ZfUD[0] for ZfUD in LDmQ]\n return RGb3", "def tdrF(YKHO):\n return sorted(YKHO.donors, key=lambda mWFP: YKHO.donors[mWFP].total_given, reverse=True)", "def FBgv(YKHO):\n H...
[ "0.826953", "0.80513936", "0.78496754", "0.7645591", "0.71302146", "0.706587", "0.69232416", "0.6850079", "0.6787587", "0.6684584", "0.65857273", "0.6560343", "0.65235513", "0.6497644", "0.6496153", "0.6496153", "0.6493555", "0.6480013", "0.64798987", "0.63587266", "0.6277112...
0.6938448
6
Creates and saves a User with the given webmail and password.
def xWi2(YKHO, v_sX, CRWJ, **wdCM): if not v_sX: raise ValueError('The given webmail must be set') v_sX = YKHO.normalize_email(v_sX) CBIr = YKHO.model(webmail=v_sX, mail_server=CRWJ, **wdCM) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def lYUQ(YKHO, D3lj, jTXt, **wdCM):\n print('\\n\\nCREATING USER HERE')\n ...
[ "0.82205385", "0.80649656", "0.7965472", "0.7964895", "0.79605895", "0.7960454", "0.79598343", "0.795041", "0.7943761", "0.7932669", "0.79296505", "0.7925948", "0.7921772", "0.7916969", "0.79102784", "0.7909291", "0.79091495", "0.7901437", "0.7888416", "0.78832775", "0.788152...
0.80541956
2
Load weights from the last trained model if the model file exists rather than starting from scratch
def GmZy(hr1G): C3ST = n8cN(hr1G) uqvc = './model.h5' if Hy7s.path.exists(uqvc): C3ST.load_weights(uqvc) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z08F(YKHO, C3ST, yXDa=None):\n if yXDa:\n ZylS.compat.v1.logging.info('Load weights: {}'.format(yXDa))\n C3ST.load_weights(yXDa)\n else:\n print('Weights not loaded from path:{}'.format(yXDa))", "def PE4r(YKHO, C3ST):\n LleU = YKHO.config['MODEL']['WEIGHTS_INIT']\n e7gk = Lle...
[ "0.7851301", "0.78342354", "0.75807065", "0.75787205", "0.7545289", "0.75445026", "0.7455992", "0.74496204", "0.74496204", "0.74496204", "0.7383364", "0.7383364", "0.73763084", "0.7325774", "0.7321349", "0.72932196", "0.7270723", "0.7257949", "0.7242436", "0.71885127", "0.718...
0.73270017
13
This function returns a list of tuples of the form (place_name, places place_name is contained as a substring). Input
def ng3J(TGQZ, pjaU): mC4V = list() for XP5J in pjaU: if ZbWC.search(TGQZ, XP5J) != None: mC4V.append((TGQZ, XP5J)) return mC4V
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1WK(nvWN):\n psQm = []\n for C6id in nvWN:\n SsWt = C6id.place_id\n TGQZ = C6id.name\n psQm.append(TGQZ)\n return (SsWt, psQm)", "def bZDd(bEsS, MfCz):\n eHNT = open('stopwords.txt', 'r')\n JCyR = eHNT.read()\n eHNT.close()\n if MfCz:\n eHNT = open('places.tx...
[ "0.7843231", "0.65021914", "0.6472165", "0.6360748", "0.63330436", "0.631942", "0.6309936", "0.62552226", "0.61809146", "0.61092573", "0.60131925", "0.60085064", "0.5961124", "0.5894474", "0.5864754", "0.5780261", "0.577935", "0.57694733", "0.57646126", "0.57646126", "0.57515...
0.5490913
34
Create and return a new `Conversation` instance, given the validated data.
def eLpg(YKHO, vGfb): return n9Bx.objects.create(**vGfb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO):\n if YKHO.request.json.has_key('users') == False:\n raise Exception('Cannot create new conversation, list of users required.')\n CyiF = YKHO.query('INSERT INTO conversation (conversation_id) ' + 'VALUES (DEFAULT) ' + 'RETURNING conversation_id', {})[0]\n aNdy = CyiF['conversation_id...
[ "0.66120666", "0.6610043", "0.6602818", "0.6325453", "0.62234515", "0.60649204", "0.60413915", "0.60326153", "0.5984838", "0.5966197", "0.5963705", "0.5923362", "0.58830005", "0.58001", "0.5722767", "0.5720919", "0.5625429", "0.5575121", "0.5573847", "0.55633247", "0.55329335...
0.8486008
0
Update and return an existing `Conversation` instance, given the validated data.
def QdZT(YKHO, KAOR, vGfb): KAOR.username = vGfb.get('username', KAOR.username) KAOR.user_in = vGfb.get('user_in', KAOR.user_in) KAOR.braggi_out = vGfb.get('braggi_out', KAOR.braggi_out) KAOR.intent = vGfb.get('intent', KAOR.intent) KAOR.invoked_event = vGfb.get('invoked_event', KAOR.invoked_event) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO, vGfb):\n return n9Bx.objects.create(**vGfb)", "def QdZT(YKHO, KAOR, vGfb):\n KAOR.reply_text = vGfb.get('reply_text', KAOR.reply_text)\n KAOR.save()\n return KAOR", "def QdZT(YKHO, KAOR, vGfb):\n KAOR.reply_text = vGfb.get('reply_text', KAOR.reply_text)\n KAOR.save()\n retur...
[ "0.6539322", "0.63357896", "0.63357896", "0.6017698", "0.5963842", "0.5856596", "0.57839453", "0.57220346", "0.5712783", "0.5609795", "0.5594205", "0.55509406", "0.55357474", "0.5533939", "0.5515415", "0.54922915", "0.54768455", "0.5386098", "0.5369807", "0.5362553", "0.53521...
0.47472826
100
This function creates a dictionary with all the distances between a building to every other building within the square from their centres. 1. Creates empty dictionaries "distance_buildings" and "closest, and a list "distance_buildingstupel" 2. Fills the dictionary with empty tuples. 3. For every building in nodelist_bu...
def RHah(j5sA, No26, t74c, kwfG, wyK7): yOSh, JOB3 = zBFL(city=j5sA, min_house_area=kwfG, zone_number=No26, considered_area=t74c, nodelist_buildings=wyK7) dxmq = {} for JarQ in wyK7: lAgJ = {} for RRu6 in yOSh[JarQ]: eFr6 = [] if JarQ != RRu6: for GLkE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aufx(j5sA, No26, t74c, kwfG, wyK7):\n yOSh, JOB3 = zBFL(city=j5sA, min_house_area=kwfG, zone_number=No26, considered_area=t74c, nodelist_buildings=wyK7)\n kZh5 = {H5ew: [] for H5ew in wyK7}\n zxWE = {H5ew: [] for H5ew in wyK7}\n for JarQ in wyK7:\n SU8g = {}\n YFKf = 0\n for RR...
[ "0.69346404", "0.6902997", "0.659834", "0.64009076", "0.6226232", "0.62132436", "0.60927236", "0.6023607", "0.6023277", "0.6000519", "0.5957902", "0.59175205", "0.585131", "0.5849532", "0.5843743", "0.58330584", "0.5815048", "0.5774202", "0.575616", "0.57531375", "0.5724062",...
0.81456596
0
Takes rows depending on the given size from DataFrame
def qbgH(YKHO, jQ3Z, zNig=0): try: if zNig == 0: zNig = YKHO.count(jQ3Z) Aofo = jQ3Z.take(zNig) return Aofo except Exception as exception: YKHO.outputExceptionLog('takeFromDataFrame', AJ5d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iD49(zNig: int=1):\n NwL4 = len(EcVT)\n Dmme = EcVT.copy()\n while NwL4 < zNig:\n Dmme = Dmme + Dmme\n NwL4 = len(Dmme)\n return Dmme[:zNig]", "def zZrH(bOBl, exwG):\n jQ3Z = bOBl.head(exwG)\n return jQ3Z", "def YeZq(jQ3Z, usY7=7):\n oHn7 = []\n m0p3 = len(jQ3Z) // usY...
[ "0.71937275", "0.6670068", "0.6595871", "0.6547019", "0.64243525", "0.63814634", "0.63397497", "0.6335029", "0.63307405", "0.6266443", "0.62127846", "0.6143436", "0.61404264", "0.6108492", "0.6076632", "0.60365987", "0.60177356", "0.59999114", "0.5888629", "0.5881743", "0.587...
0.73756933
0
Gets a row from the given DataFrame with the given row index
def PNHv(YKHO, jQ3Z, aFUE): try: rdlD = jQ3Z[0] return rdlD except Exception as exception: YKHO.outputExceptionLog('getRow', AJ5d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PbWP(cO4L, hl8S, or8S: int):\n Tura = c_Kg(cO4L.get_data_frame_table_name(), column_names=cO4L.get_column_names(), filter_formula=hl8S)\n if or8S > Tura.rowcount:\n return None\n return Tura.fetchall()[or8S - 1]", "def IDYM(bOBl, z0q4, t9rk):\n return bOBl[z0q4][t9rk]", "def Z6jg(bOBl, H...
[ "0.72808635", "0.7125988", "0.7053381", "0.7014182", "0.6995097", "0.6940411", "0.6940411", "0.69359106", "0.67939955", "0.6733989", "0.6674215", "0.66663504", "0.6629149", "0.6576992", "0.65345263", "0.65345263", "0.6432701", "0.6426891", "0.6414474", "0.64057255", "0.638768...
0.80973256
0
Return the dynamic RMSE for each model Dynamic RMSE refers to the Root Mean Squared Error calculated using `self.min_obs` number of observations closest in day of year to the observation `self.consecutive` steps into the future. Goal is to reduce falsepositives during seasonal transitions (high variance in the signal) ...
def vQN5(YKHO): kcbj = oyIN.argsort(oyIN.mod(YKHO.dates[YKHO.start:YKHO.here] - YKHO.dates[YKHO.here + YKHO.consecutive], YKHO.ndays))[:YKHO.min_obs] o8jS = oyIN.zeros(len(YKHO.test_indices), oyIN.float32) ZnNw = YKHO.X.take(kcbj, axis=0) for jlJo, Fg_i in enumerate(YKHO.test_indices): r8hN = YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qTF0(VlDb, W061):\n return oyIN.sqrt(sgS2(W061, VlDb))", "def iAxY(Kg06, pLOH):\n return oyIN.sqrt(((Kg06 - pLOH) ** 2).mean())", "def CTjy(dOLm, Ott8, rkpn, Ep8u):\n A18S = Thxg + '_' + str(dOLm) + '_' + str(Ott8) + '_' + str(rkpn) + '_' + str(Ep8u) + '.h5'\n Lcqa, VJv0, Z5wO, H96n = iR_m.prep...
[ "0.6869277", "0.6758613", "0.6643743", "0.66173005", "0.6549317", "0.6499228", "0.6376101", "0.6351143", "0.63258934", "0.62487537", "0.62119174", "0.61863595", "0.6175803", "0.6163265", "0.6157232", "0.6123459", "0.6119551", "0.6103896", "0.607088", "0.6062158", "0.60360974"...
0.8079535
0
Returns a matrix with columns that are the steps of the lagged time series Last column is the value to predict
def uyPB(nPrm, nnVk=0, JvpJ=0): MzHa = [] for YRbF in range(nnVk): MzHa.append(nPrm[YRbF:-nnVk - JvpJ + YRbF]) MzHa.append(nPrm[nnVk + JvpJ:]) return oyIN.stack(MzHa, axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mYIE(nPrm, nnVk=1):\n jQ3Z = rLdf.DataFrame(nPrm)\n ZLJ_ = [jQ3Z.shift(YRbF) for YRbF in range(1, nnVk + 1)]\n ZLJ_.append(jQ3Z)\n jQ3Z = rLdf.concat(ZLJ_, axis=1)\n jQ3Z.fillna(0, inplace=True)\n return jQ3Z", "def mQyR(jQ3Z, nnVk=5):\n exwG = len(jQ3Z)\n WbAn = [jQ3Z.iloc[YRbF:exwG ...
[ "0.6780939", "0.67749566", "0.668242", "0.6666325", "0.65807146", "0.6427648", "0.64033014", "0.639643", "0.63824755", "0.632121", "0.6274711", "0.62584925", "0.6227872", "0.6165301", "0.6146479", "0.6131185", "0.61083835", "0.61075187", "0.60993576", "0.6048188", "0.60466254...
0.6797273
0
Test that an AWS API Gateway REST API exists.
def wMPw(Pcn2: unittest.TestCase, s32t: str) -> str: NYXC: dict = loE1.get_rest_apis() UcVH: x1iM[dict] = NYXC.get('items') sp0C = [nNXP for nNXP in UcVH if nNXP.get('name') == s32t] Pcn2.assertEqual(1, len(sp0C)) return sp0C[0].get('id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yRfT(YKHO):\n YKHO.conn.get_rest_apis.return_value = G6Vv\n YKHO.conn.create_rest_api.side_effect = nheh(E0xP, 'create_rest_api')\n Aofo = {}\n with Lj8E() as hNhg:\n Aofo = YKHO.salt_states['boto_apigateway.present']('api present', 'unit test api', hNhg, 'test', False, 'arn:aws:iam::1234:ro...
[ "0.73378646", "0.7108232", "0.6832078", "0.6801937", "0.67514247", "0.6681711", "0.6679102", "0.6632602", "0.6595874", "0.65654826", "0.65335596", "0.65272963", "0.64744025", "0.64544564", "0.64277774", "0.6372469", "0.63617617", "0.62939084", "0.62663287", "0.62617224", "0.6...
0.7571189
0
Test that a deployment of an AWS API Gateway REST API exists.
def O0Ul(Pcn2: unittest.TestCase, s32t: str, eC7C: str=None) -> str: if not eC7C: eC7C = cXAn.rest_api_exists(Pcn2, s32t) y6oW = loE1.get_deployments(restApiId=eC7C) Logl: x1iM[dict] = y6oW.get('items') Pcn2.assertGreaterEqual(len(Logl), 1) Logl.sort(reverse=True, key=lambda plaN: plaN.get('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yRfT(YKHO):\n YKHO.conn.get_rest_apis.return_value = G6Vv\n YKHO.conn.create_rest_api.side_effect = nheh(E0xP, 'create_rest_api')\n Aofo = {}\n with Lj8E() as hNhg:\n Aofo = YKHO.salt_states['boto_apigateway.present']('api present', 'unit test api', hNhg, 'test', False, 'arn:aws:iam::1234:ro...
[ "0.7753023", "0.7394179", "0.73900163", "0.71358615", "0.7092923", "0.70753884", "0.69239557", "0.6909979", "0.6809476", "0.67624867", "0.6707274", "0.6704907", "0.67035955", "0.66894937", "0.6512247", "0.6494433", "0.640962", "0.64047325", "0.6356504", "0.62465227", "0.62348...
0.7490667
1
Test that a deployment of an AWS API Gateway REST API exists.
def CRHH(Pcn2: unittest.TestCase, s32t: str, u9PO: str) -> None: eC7C = cXAn.rest_api_exists(Pcn2, s32t) biGm = cXAn.deployment_exists(Pcn2, s32t, eC7C) EuXk = loE1.get_stages(restApiId=eC7C, deploymentId=biGm) lAPg: x1iM[dict] = EuXk.get('item') did2 = [EtM5 for EtM5 in lAPg if EtM5.get('stageName'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yRfT(YKHO):\n YKHO.conn.get_rest_apis.return_value = G6Vv\n YKHO.conn.create_rest_api.side_effect = nheh(E0xP, 'create_rest_api')\n Aofo = {}\n with Lj8E() as hNhg:\n Aofo = YKHO.salt_states['boto_apigateway.present']('api present', 'unit test api', hNhg, 'test', False, 'arn:aws:iam::1234:ro...
[ "0.7753023", "0.7490667", "0.7394179", "0.73900163", "0.71358615", "0.7092923", "0.70753884", "0.69239557", "0.6909979", "0.6809476", "0.67624867", "0.6707274", "0.6704907", "0.67035955", "0.66894937", "0.6512247", "0.640962", "0.64047325", "0.6356504", "0.62465227", "0.62348...
0.6494433
16
Get the ID for a resource in an API Gateway REST API.
def d7j5(Pcn2: unittest.TestCase, s32t: str, JFat: str) -> h8nf[str]: eC7C = cXAn.rest_api_exists(Pcn2, s32t) JKCy = loE1.get_resources(restApiId=eC7C) ckRy: x1iM[dict] = [pmON for pmON in JKCy.get('items') if pmON.get('path') == JFat] if len(ckRy) > 0: return ckRy[0].get('id') else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dbDa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'rest_api_id')", "def dbDa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'rest_api_id')", "def dbDa(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'rest_api_id')", "def id(YKHO):\n return YKHO._getValue('resource-id')", "def id(YKHO):...
[ "0.73782986", "0.73605746", "0.7266968", "0.7264151", "0.7263245", "0.7110615", "0.7110615", "0.7110615", "0.69520354", "0.69520354", "0.69520354", "0.69520354", "0.69520354", "0.6930738", "0.68514615", "0.68514615", "0.68514615", "0.68514615", "0.68514615", "0.67989475", "0....
0.73986423
0
Calculates error in average count. z=x/y err_x = sqrt(x) err_y = sqrt(y) err_z^2 = (err_x . dz/dx)^2 + (err_y . dx_dy)^2 err_z^2 = x. 1/y^2 + y . x^2 / y^4 err_z^2 = x^2/y^2 . (1/x + 1/y) Returns Error in average counts
def XObx(YKHO): if YKHO.total == 0: return 0.0 if YKHO.count == 0: return oyIN.nan return oyIN.sqrt(YKHO.total ** 2 / YKHO.count ** 2 * (1 / YKHO.total + 1 / YKHO.count))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Baq2(YKHO):\n rSH2 = (QyVM.total_error for QyVM in YKHO)\n return oyIN.mean(oyIN.fromiter(rSH2, oyIN.float))", "def D56w(u5aq, UP6S, or8S):\n P1dF = 0\n Qf0O = (UP6S != 0).astype('float')\n iQSO = u5aq * Qf0O\n Thqa = Qf0O.sum()\n FdMf = (oyIN.abs(iQSO - UP6S) > 3).sum()\n P1dF += FdM...
[ "0.67642415", "0.6336869", "0.6321808", "0.62165", "0.6118366", "0.6092276", "0.60919404", "0.60832113", "0.60775197", "0.60567266", "0.6051166", "0.60366476", "0.60203636", "0.599559", "0.59887993", "0.5963764", "0.593639", "0.5924383", "0.5922208", "0.59134084", "0.5909761"...
0.65494347
1
Verify the return type of wrapAtom is an instance of etree._Element.
def nVEc(): tk5Y = QGpr.fromstring(QToG) WhQ6 = lJWN.wrapAtom(tk5Y, '934023', 'test') assert isinstance(WhQ6, QGpr._Element)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YIG8(WKvO):\n return isinstance(WKvO, DqHx)", "def GCjR(YKHO, Aofo):\n if isinstance(Aofo, JrOA.html.HtmlElement):\n return i9Wa(Aofo)\n else:\n return Aofo", "def zEXx(U6D_: etree._Element) -> bool:\n return U6D_ is U6D_.getroottree().getroot()", "def n_Rt(YKHO, AyUR, LihS):\n ...
[ "0.6080142", "0.5916018", "0.55898935", "0.5566225", "0.5492985", "0.5474852", "0.5432019", "0.5400273", "0.53538686", "0.5329055", "0.5253341", "0.52224016", "0.5219232", "0.51276106", "0.5126091", "0.51150495", "0.5100297", "0.5081561", "0.50534326", "0.5053102", "0.5015015...
0.7473397
0
Verify that both the author and author_uri are present if both kwargs are given values.
def AGkC(): eHx9 = 'John Doe' xuYI = 'http://example.com/author' tk5Y = QGpr.fromstring(QToG) WhQ6 = lJWN.wrapAtom(tk5Y, '934023', 'test', author=eHx9, author_uri=xuYI) taDc = WhQ6.xpath('/a:entry/a:author', namespaces={'a': lJWN.ATOM_NAMESPACE}) assert len(taDc[0].getchildren()) == 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zStn(YKHO, **B2fa):\n if 'artist' in B2fa:\n IbZ6 = B2fa.pop('artist')\n SvuF = YKHO.get_artist_id(name=IbZ6)\n B2fa.update({'artist_id': SvuF})\n if 'genre' in B2fa:\n Pr14 = B2fa.pop('genre')\n if Pr14 is not None:\n YWYP = YKHO.get_genre_id(name=Pr14, add=...
[ "0.7018196", "0.6285939", "0.61691785", "0.6159804", "0.60215604", "0.5963597", "0.59183514", "0.59151167", "0.5862102", "0.57213145", "0.57053864", "0.56916994", "0.56567544", "0.5650333", "0.55825585", "0.5576464", "0.5576046", "0.55498797", "0.5549664", "0.5540336", "0.552...
0.54823786
24
Computes the triplet loss_functions with semihard negative mining. The loss_functions encourages the positive distances (between a pair of embeddings with the same labels) to be smaller than the minimum negative distance among which are at least greater than the positive distance plus the margin constant (called semiha...
def kV3_(Crrw, KTQ3, MVIL=1.0): begE = KTQ3.device t1tv = Crrw.shape Crrw = ht2j.reshape(Crrw, [t1tv[0], 1]) SUxH = Y8vu(KTQ3) fyP7 = ht2j.eq(Crrw, Crrw.transpose(0, 1)) dUkV = fyP7.logical_not() Ep8u = Crrw.shape[0] IMnQ = SUxH.repeat(Ep8u, 1) nrzf = dUkV.repeat(Ep8u, 1) kXd_ = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def opkr(mL8E, sehC, v70t, MVIL, S6_w, ZO4J=None, SGPS=None):\n if ZO4J is None:\n ZO4J = mL8E\n if SGPS is None:\n SGPS = sehC\n ePzx, LlIJ = Rnim(sehC, v70t, use_semi_hard=S6_w, anchor_positive_mining_distances=ZO4J, anchor_match_mining_distance_matrix=SGPS)\n\n def CuWE(qwKf, L1Yz):\n ...
[ "0.72641397", "0.69224614", "0.68290013", "0.6795339", "0.6770373", "0.676186", "0.67559934", "0.67121696", "0.6657774", "0.66105306", "0.652686", "0.6513244", "0.64335114", "0.6411697", "0.64031", "0.6401978", "0.637865", "0.6357986", "0.6351047", "0.6336198", "0.62796134", ...
0.5627032
80
Uses argparse to parse all command line flags
def DvRt() -> {str: 'argument value'}: G9jH.info('Parsing command line flags') wvEv = j1Jz.ArgumentParser(description='Checks the SMIRNOFF parameter coverage of a "random" subset of molecules from a given molecule file. Generates two data files: params_by_molecule.json tells the paramaters associated with each ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EXy6() -> j1Jz.Namespace:\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--animation', '-a', action='store_true', help='Animation of linear function evolving.')\n wvEv.add_argument('--thetas', '-t', action='store_true', help='Animation for thetas evolving.')\n wvEv.add_argument('--graph', '-g'...
[ "0.80640316", "0.7720642", "0.75267255", "0.74974585", "0.7496135", "0.74697953", "0.74697953", "0.7461154", "0.74599564", "0.7459064", "0.74501926", "0.7439342", "0.74048483", "0.7393683", "0.7393683", "0.73916286", "0.73809606", "0.737829", "0.737829", "0.7376692", "0.73732...
0.7155044
59
Returns a Python logging.Logger that was created with the given name
def fZx2(YKHO, mWFP='root'): if mWFP not in YKHO.loggers: raise s7C1('No logger found: ' + mWFP) return YKHO.loggers[mWFP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ypdq(mWFP: str) -> G9jH.Logger:\n return G9jH.getLogger(mWFP)", "def fZx2(mWFP):\n return G9jH.getLogger(mWFP)", "def fZx2(mWFP=None):\n if not mWFP:\n mWFP = __name__\n return G9jH.getLogger(mWFP)", "def fZx2(mWFP: Optional[str]=None, **B2fa: Any) -> Few0:\n return Few0(G9jH.getLog...
[ "0.8603058", "0.85914695", "0.83102876", "0.8292324", "0.8283835", "0.82645386", "0.8229532", "0.82287174", "0.8228561", "0.82237154", "0.82232535", "0.8196729", "0.81815845", "0.8178724", "0.8056554", "0.80553275", "0.80373687", "0.8036162", "0.8025715", "0.8022769", "0.8018...
0.7563498
68
Add a Python logger which uses a StreamHandler sending logs to stdout t hen stores and returns it
def t9Bb(YKHO, mWFP=None, wiAm=None, T37t='standard'): ISDN = YKHO._log_check_and_create(mWFP, wiAm, G9jH.StreamHandler(), T37t) return ISDN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kdcu():\n bo34 = G9jH.Logger('stream_handler')\n DCgT = G9jH.StreamHandler()\n DCgT.setFormatter(G9jH.Formatter('%(asctime)s %(message)s'))\n bo34.addHandler(DCgT)\n return bo34", "def tqPq():\n Q1B8 = G9jH.getLogger()\n DCgT = G9jH.StreamHandler(HwRy.stdout)\n DCgT.setFormatter(G9jH....
[ "0.77309906", "0.753788", "0.7490502", "0.739384", "0.7326747", "0.7297093", "0.7065645", "0.7047682", "0.7016891", "0.69916415", "0.6942175", "0.69409406", "0.69363546", "0.6900704", "0.68771607", "0.68547714", "0.685089", "0.6845017", "0.6837901", "0.68079793", "0.6799497",...
0.0
-1
Return the current motion detection configuration.
async def async_get_alarm_action(YKHO) -> eax5: Aofo = await YKHO._async_fetch('alarm.cgi', [[('cmd', 'getalarmact'), ('aname', 'ftpsnap')], [('cmd', 'getalarmact'), ('aname', 'ftprec')], [('cmd', 'getalarmact'), ('aname', 'type')], [('cmd', 'getalarmact'), ('aname', 'emailsnap')], [('cmd', 'getalarmact'), ('aname'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n return YKHO.robot.getj()", "def zKPb(YKHO):\n return YKHO._config", "def a9sK(YKHO):\n return YKHO.motionDetected", "def zoFt():\n if RUQe.config == None:\n RUQe.config = Xowc()\n if RUQe.config.load() == False:\n RUQe.config.save()\n elif RUQe.config...
[ "0.6829927", "0.67999405", "0.6786743", "0.67353743", "0.6729644", "0.6697709", "0.6638191", "0.6599281", "0.6592715", "0.65397435", "0.6510909", "0.642173", "0.642173", "0.642173", "0.6328052", "0.6310671", "0.6309007", "0.630586", "0.6278632", "0.62780356", "0.6256887", "...
0.0
-1
Return a normalization layer
def amAv(J1Nm='instance'): if J1Nm == 'batch': ykhl = xBlr.partial(U78l.BatchNorm2d, affine=True, track_running_stats=True) elif J1Nm == 'instance': ykhl = xBlr.partial(U78l.InstanceNorm2d, affine=False, track_running_stats=False) elif J1Nm == 'none': ykhl = lambda WKvO: VoC8() e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QYad(VKhi, HhVR: int, J1Nm: Optional[str]=None, FmZA: Optional[int]=None, *qIxc, **B2fa) -> U78l.Module:\n return sfhl(VKhi, HhVR, J1Nm, FmZA)", "def amAv():\n if J1Nm == 'batch':\n ykhl = xBlr.partial(U78l.BatchNorm2d, affine=True, track_running_stats=True)\n return ykhl", "def O9Ow(vhpA, ...
[ "0.7558415", "0.75189286", "0.74955684", "0.7224539", "0.7069579", "0.704178", "0.6973934", "0.6933626", "0.6926538", "0.6905241", "0.6845051", "0.6828518", "0.6828518", "0.6799542", "0.6777142", "0.67452985", "0.67437446", "0.67385143", "0.6724314", "0.6723551", "0.67166364"...
0.6711118
26
Function that creates a ResNet 18 model
def AS23(SGPK, n5sp=3, jTqs=10, AniK=False, JBMS=False): C3ST = S1Vm if AniK and (not JBMS): C3ST = Q9zN elif not AniK and JBMS: C3ST = NLR2 return C3ST(em1m, [2, 2, 2, 2], SGPK, n5sp, num_classes=jTqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qUH4(mL4f=False):\n C3ST = S1Vm(em1m, [2, 2, 2, 2])\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18']))\n return C3ST", "def qUH4(nZt5=10, iomq=3):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], (iomq + 2) * nZt5)\n return C3ST", "def qUH4(mL4f=True, **B2fa):\n C3ST = S1Vm(em1m, ...
[ "0.7512494", "0.74850273", "0.7477439", "0.7467021", "0.7467021", "0.73872006", "0.73449403", "0.734313", "0.734313", "0.734313", "0.734313", "0.7322534", "0.7319681", "0.7319681", "0.7319681", "0.7319681", "0.7319681", "0.7319681", "0.7319681", "0.7319681", "0.7319681", "0...
0.0
-1
Function that creates a ResNet 34 model
def PzmQ(SGPK, n5sp=3, jTqs=10, AniK=False, JBMS=False): C3ST = S1Vm if AniK and (not JBMS): C3ST = Q9zN elif not AniK and JBMS: C3ST = NLR2 return C3ST(em1m, [3, 4, 6, 3], SGPK, n5sp, num_classes=jTqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwNx(nZt5=10):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], 2 * nZt5)\n return C3ST", "def qUH4(nZt5=10, iomq=3):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], (iomq + 2) * nZt5)\n return C3ST", "def OwNx(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0...
[ "0.7876791", "0.7697097", "0.7625948", "0.7622287", "0.7594422", "0.7594422", "0.7594422", "0.75736374", "0.75736374", "0.74925923", "0.7480891", "0.74672294", "0.74672294", "0.74672294", "0.74672294", "0.74672294", "0.74672294", "0.74672294", "0.74672294", "0.74672294", "0.7...
0.0
-1
Function that creates a ResNet 50 model
def DO5i(SGPK, n5sp=3, jTqs=10, AniK=False, JBMS=False): C3ST = S1Vm if AniK and (not JBMS): C3ST = Q9zN elif not AniK and JBMS: C3ST = NLR2 return C3ST(MF6R, [3, 4, 6, 3], SGPK, n5sp, num_classes=jTqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def abVM():\n global ResNet50_model\n L9vW = uwZX.ResNet50(weights='imagenet')\n L9vW._make_predict_function()", "def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50']))\n mLGw = C3ST.fc.in_features\n C...
[ "0.7803635", "0.77068025", "0.76117206", "0.7545312", "0.7534827", "0.75028735", "0.75028735", "0.74994946", "0.74668556", "0.7462258", "0.7425072", "0.7425072", "0.7411545", "0.74113387", "0.74030894", "0.74001074", "0.7398708", "0.7398708", "0.7398708", "0.7398708", "0.7398...
0.0
-1
Function that creates a ResNet 101 model
def d3yt(SGPK, n5sp=3, jTqs=10, AniK=False, JBMS=False): C3ST = S1Vm if AniK and (not JBMS): C3ST = Q9zN elif not AniK and JBMS: C3ST = NLR2 return C3ST(MF6R, [3, 4, 23, 3], SGPK, n5sp, num_classes=jTqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K0Xe(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 4, 23, 3])\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet101']))\n return C3ST", "def K0Xe(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 4, 23, 3])\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet101']))\n return C3ST"...
[ "0.75482345", "0.7535339", "0.7535339", "0.7535339", "0.74919975", "0.74878687", "0.743681", "0.743681", "0.743681", "0.743681", "0.743681", "0.743681", "0.743681", "0.743681", "0.743681", "0.743681", "0.743681", "0.74360216", "0.74033266", "0.7387901", "0.73842835", "0.738...
0.0
-1
Function that creates a ResNet 152 model
def axAq(SGPK, n5sp=3, jTqs=10, AniK=False, JBMS=False): C3ST = S1Vm if AniK and (not JBMS): C3ST = Q9zN elif not AniK and JBMS: C3ST = NLR2 return C3ST(MF6R, [3, 8, 36, 3], SGPK, n5sp, num_classes=jTqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qUH4(nZt5=10, iomq=3):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], (iomq + 2) * nZt5)\n return C3ST", "def OwNx(nZt5=10):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], 2 * nZt5)\n return C3ST", "def qUH4(**B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n return C3ST", "def qUH4(**B2fa):\n C3ST = S1Vm(em...
[ "0.75352633", "0.72749156", "0.72221655", "0.72221655", "0.72221655", "0.72221655", "0.71997577", "0.71997577", "0.71997577", "0.7120274", "0.7110786", "0.7110786", "0.71065575", "0.71065575", "0.70536536", "0.70353025", "0.69919217", "0.69871914", "0.69815063", "0.6970717", ...
0.0
-1
Function that will apply both horizontal and vertical sobel filters to obtain the magnitude and direction of the image gradient. To reduce noise while this process occurs, a gaussian blur is first applied to smooth the image prior to running this function.
def GLJ9(CHZP): yBsX = oyIN.array([[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]]) vAMe = oyIN.transpose(yBsX) '\n Important Disclaimer:\n\n Using the cv2.filter2D filter function provided by OpenCV due to the time complexity issues that had occurred with\n the original naive implementation. The deprecated im...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H9dw(VXjJ: np.array) -> (oyIN.array, oyIN.array):\n bkyK = oyIN.array([[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]])\n DCV3 = XC5k.filter2D(VXjJ.copy(), -1, bkyK, XC5k.BORDER_TRANSPARENT)\n ZtQL = XC5k.filter2D(VXjJ.copy(), -1, -bkyK.T, XC5k.BORDER_TRANSPARENT)\n ICX2 = oyIN.sqrt(DCV3 ** 2 + ZtQL ** 2)\n ...
[ "0.737307", "0.72155243", "0.70268804", "0.6909237", "0.68647957", "0.6832589", "0.68046296", "0.67302954", "0.67098683", "0.6669385", "0.6650008", "0.6644951", "0.6455115", "0.64142144", "0.6307187", "0.63032234", "0.6297454", "0.626701", "0.6254486", "0.62183607", "0.617283...
0.6931109
3
The ARN for an IAM Role which allows Comprehend to read the training and testing data.
def vJRv(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'data_access_role_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'", "def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')", "def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')", "def...
[ "0.791701", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", ...
0.70134014
66
The ARN for an IAM Role which allows Comprehend to read the training and testing data.
def vJRv(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'data_access_role_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'", "def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')", "def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')", "def...
[ "0.791701", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", "0.77274984", ...
0.68116856
78
Resource for managing an AWS Comprehend Entity Recognizer. Example Usage Basic Usage ```python import pulumi import pulumi_aws as aws documents = aws.s3.BucketObjectv2("documents") ... entities = aws.s3.BucketObjectv2("entities") ... example = aws.comprehend.EntityRecognizer("example", data_access_role_arn=aws_iam_role...
def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, vJRv: Optional[pulumi.Input[str]]=None, L2iB: Optional[pulumi.Input[pulumi.InputType['EntityRecognizerInputDataConfigArgs']]]=None, r6VR: Optional[pulumi.Input[str]]=None, Nlvx: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=Non...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r0Yc(YKHO, CAH6: str, jtRV: str, vJRv: str, dJ1p: List[Dict[str, str]], L2iB: Dict[str, Any], r6VR: str, CrhM: str, GquP: Dict[str, List[str]], Nlvx: str, WR4t: str) -> str:\n hZC_ = cSLY(region_name=YKHO.region_name, account_id=YKHO.account_id, language_code=r6VR, input_data_config=L2iB, data_access_role_a...
[ "0.6753362", "0.6715453", "0.61593336", "0.61479366", "0.58147746", "0.5347325", "0.5314327", "0.52331686", "0.52121305", "0.51349247", "0.5098534", "0.5074002", "0.50466913", "0.48719975", "0.4870828", "0.48407456", "0.48068786", "0.47908923", "0.47870713", "0.4779169", "0.4...
0.64234006
2
Resource for managing an AWS Comprehend Entity Recognizer. Example Usage Basic Usage ```python import pulumi import pulumi_aws as aws documents = aws.s3.BucketObjectv2("documents") ... entities = aws.s3.BucketObjectv2("entities") ... example = aws.comprehend.EntityRecognizer("example", data_access_role_arn=aws_iam_role...
def FIMM(Ro_8, kFeU: str, qIxc: EntityRecognizerArgs, VKhi: Optional[pulumi.ResourceOptions]=None): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r0Yc(YKHO, CAH6: str, jtRV: str, vJRv: str, dJ1p: List[Dict[str, str]], L2iB: Dict[str, Any], r6VR: str, CrhM: str, GquP: Dict[str, List[str]], Nlvx: str, WR4t: str) -> str:\n hZC_ = cSLY(region_name=YKHO.region_name, account_id=YKHO.account_id, language_code=r6VR, input_data_config=L2iB, data_access_role_a...
[ "0.6750944", "0.6423283", "0.6157864", "0.6147592", "0.5814202", "0.5346309", "0.5314061", "0.52332354", "0.521276", "0.5134856", "0.50988615", "0.50727075", "0.50446403", "0.48712924", "0.48695028", "0.48400867", "0.48044968", "0.4790347", "0.47866407", "0.47782603", "0.4778...
0.6714045
1
Get an existing EntityRecognizer resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, vJRv: Optional[pulumi.Input[str]]=None, L2iB: Optional[pulumi.Input[pulumi.InputType['EntityRecognizerInputDataConfigArgs']]]=None, r6VR: Optional[pulumi.Input[str]]=None, Nlvx: Optional[pulum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, n8KJ: Optional[pulumi.Input[str]]=None) -> 'Slr':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = pxBJ.__new__(pxBJ)\n r6DL.__dict__['product_name'] = n8KJ\n return ltDA(kFeU, opts=VK...
[ "0.5676137", "0.5544798", "0.55333436", "0.54850847", "0.5283019", "0.5251517", "0.52465343", "0.523057", "0.5208046", "0.5193626", "0.51805484", "0.51794606", "0.51635945", "0.51560265", "0.51333743", "0.5104258", "0.5096547", "0.50933254", "0.508354", "0.50636494", "0.50573...
0.7212721
0
The ARN for an IAM Role which allows Comprehend to read the training and testing data.
def vJRv(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'data_access_role_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'", "def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')", "def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')", "def...
[ "0.7918028", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464", "0.77286464",...
0.6876689
73
return self's last name
def Gs8i(YKHO): return YKHO.lastName
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CCKR(YKHO):\n return YKHO.last_name", "def CCKR(YKHO) -> str:\n return YKHO.last_name", "def CCKR(YKHO):\n return YKHO._last_name", "def zp3f(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_name')", "def CCKR(YKHO):\n return YKHO._last_name", "def zp3f(YKHO):\n return YKHO.__last_name",...
[ "0.93970996", "0.93772346", "0.93282735", "0.929482", "0.92648196", "0.9239754", "0.9228655", "0.9228655", "0.9228655", "0.9228655", "0.9228655", "0.9168983", "0.9160468", "0.91595125", "0.91595125", "0.91595125", "0.91595125", "0.91595125", "0.91595125", "0.91595125", "0.912...
0.89252687
26
returns self's current age in days
def lUqL(YKHO): if YKHO.birthday == None: raise ValueError return (qcWV.date.today() - YKHO.birthday).days
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJe_(YKHO):\n return YKHO.get_relative_age(qcWV.date.today())", "def N_N1(YKHO):\n if YKHO._birthday == None:\n raise ValueError\n return (qcWV.date.today() - YKHO._birthday).days", "def lUqL(YKHO):\n if YKHO.birthday == None:\n raise ValueError\n return (qcWV.date.today() - YK...
[ "0.85277677", "0.8429417", "0.84287363", "0.83987737", "0.83515805", "0.83490217", "0.8342803", "0.8295997", "0.8293543", "0.8278787", "0.82377136", "0.819992", "0.8174079", "0.8161252", "0.80559266", "0.80175316", "0.79865646", "0.79836994", "0.79836994", "0.7964313", "0.793...
0.84440595
1
return True if self's ame is lexicographically less than other's name, and False otherwise
def JWbp(YKHO, Elif): if YKHO.lastName == Elif.lastName: return YKHO.name < Elif.name return YKHO.lastName < Elif.lastName
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TPjt(YKHO, Elif):\n return YKHO.name <= Elif.name", "def Zcf_(YKHO, Elif):\n return YKHO.name >= Elif.name", "def JWbp(YKHO, Elif):\n return YKHO._name < Elif._name", "def JWbp(YKHO, Elif):\n return YKHO.name < Elif.name", "def JWbp(YKHO, Elif):\n return YKHO.name < Elif.name", "def JW...
[ "0.7921357", "0.78060967", "0.77652186", "0.772031", "0.772031", "0.7701398", "0.7649676", "0.7593787", "0.7521888", "0.7463246", "0.73730975", "0.7371062", "0.73239654", "0.7316127", "0.7277144", "0.7251779", "0.72072965", "0.7203955", "0.7140669", "0.7134035", "0.706595", ...
0.74411225
10
Freezes the first 100ratio percent of the layers of the model. The remaining layers are set to trainable. BatchNormalization layers are frozen to prevent loss of pretrained weights.
def UBqT(C3ST, dMYj, Jwqs=False): C3ST.trainable = True OZZY = int(dMYj * len(C3ST.layers)) for gEmA in C3ST.layers[:OZZY]: gEmA.trainable = False for gEmA in C3ST.layers[OZZY:]: if gEmA.__class__.__name__ == 'BatchNormalization' and (not Jwqs): gEmA.trainable = False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vKfT(C3ST, **B2fa):\n for gEmA in C3ST.layers:\n if not isinstance(gEmA, fhcK.BatchNormalization):\n gEmA.trainable = False\n return", "def vKfT(C3ST, **B2fa):\n bGrB, fhcK, bGrB, bGrB = H1eo(B2fa)\n for gEmA in C3ST.layers:\n if not isinstance(gEmA, fhcK.BatchNormalizati...
[ "0.7506739", "0.7409357", "0.69998324", "0.6906086", "0.6877517", "0.6846369", "0.675119", "0.67264265", "0.66785014", "0.66656065", "0.6654583", "0.66272235", "0.65987474", "0.65269846", "0.6518872", "0.650764", "0.64914495", "0.64762306", "0.64757824", "0.64711314", "0.6464...
0.76256585
0
r""" __init__(BlockOperator self, intArray offsets) > BlockOperator __init__(BlockOperator self, intArray row_offsets, intArray col_offsets) > BlockOperator
def FIMM(YKHO, *qIxc): eGzz.BlockOperator_swiginit(YKHO, eGzz.new_BlockOperator(*qIxc)) from mfem.ser import intArray if len(qIxc) == 1: if isinstance(qIxc[0], intArray): YKHO._offsets = qIxc[0] if len(qIxc) == 2: if isinstance(qIxc[0], intArray) and isinstance(qIxc[1], intAr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, or8S, zNig, OgdI=None):\n super(n3Kt, YKHO).__init__()\n assert or8S < 2 ** zNig ** 2\n YKHO.idx = or8S\n YKHO.size = zNig\n YKHO.shape = (zNig, zNig)\n YKHO.map_addr = OgdI", "def FIMM(YKHO, rmyT, OT7m=[], HUs2=None):\n YKHO._blocks = rmyT\n YKHO._inverse_blocks = OT7m\n ...
[ "0.67262197", "0.6597277", "0.65760815", "0.6506606", "0.6393204", "0.6316498", "0.6316498", "0.6294769", "0.6245601", "0.6225881", "0.61755997", "0.6140601", "0.61218035", "0.6100732", "0.6095784", "0.6089564", "0.6078218", "0.6046333", "0.6042935", "0.6040748", "0.59983766"...
0.8303385
0
r"""__init__(BlockDiagonalPreconditioner self, intArray offsets) > BlockDiagonalPreconditioner
def FIMM(YKHO, gQVb): eGzz.BlockDiagonalPreconditioner_swiginit(YKHO, eGzz.new_BlockDiagonalPreconditioner(gQVb)) YKHO._offsets = gQVb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, gQVb):\n eGzz.BlockLowerTriangularPreconditioner_swiginit(YKHO, eGzz.new_BlockLowerTriangularPreconditioner(gQVb))\n YKHO._offsets = gQVb", "def rdp7(YKHO, *qIxc):\n return eGzz.BlockDiagonalPreconditioner_Offsets(YKHO, *qIxc)", "def FIMM(YKHO, CQwJ, pDev, GPIy, Bcwd, i5jP, yKIT, KBgZ):...
[ "0.72158194", "0.6489537", "0.6029184", "0.5997166", "0.5949011", "0.5908401", "0.58958197", "0.58946776", "0.58849883", "0.5877597", "0.5838282", "0.582996", "0.58271956", "0.57772547", "0.57662004", "0.5761685", "0.5757147", "0.57527745", "0.5716816", "0.5708366", "0.569994...
0.89388883
0
r"""__init__(BlockLowerTriangularPreconditioner self, intArray offsets) > BlockLowerTriangularPreconditioner
def FIMM(YKHO, gQVb): eGzz.BlockLowerTriangularPreconditioner_swiginit(YKHO, eGzz.new_BlockLowerTriangularPreconditioner(gQVb)) YKHO._offsets = gQVb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, gQVb):\n eGzz.BlockDiagonalPreconditioner_swiginit(YKHO, eGzz.new_BlockDiagonalPreconditioner(gQVb))\n YKHO._offsets = gQVb", "def rdp7(YKHO):\n return eGzz.BlockLowerTriangularPreconditioner_Offsets(YKHO)", "def FIMM(YKHO, qw7D, rnv5, yKIT, EFQE=None, yKcO=0.0, u_TW=fcO3, oSdR=oGuL, KE...
[ "0.7110056", "0.6736949", "0.5673657", "0.5654962", "0.56495833", "0.5647474", "0.55825394", "0.5485005", "0.54540074", "0.5363916", "0.5355177", "0.5355177", "0.53486365", "0.5252096", "0.52344024", "0.5230747", "0.5227857", "0.52273643", "0.52246535", "0.52185583", "0.51891...
0.9055346
0
Return true if a value is undefined, or NaN.
def g8qG(BWXx: Any) -> bool: return BWXx is LTIq or BWXx != BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L6uT(BWXx):\n return isinstance(BWXx, float) and epAf.isnan(BWXx)", "def L6uT(BWXx):\n return BWXx != BWXx", "def GKlK(wEf2):\n return isinstance(wEf2, (oyIN.floating, float)) and epAf.isnan(wEf2)", "def SIzb(BWXx: Any) -> bool:\n return BWXx in [None, Mzcz, 0, False]", "def nxS0(BWXx):\n ...
[ "0.7641847", "0.7636822", "0.7574021", "0.75494623", "0.74884975", "0.7297649", "0.7249017", "0.7192972", "0.7175044", "0.71431047", "0.6982148", "0.69734776", "0.6940855", "0.6899894", "0.6886224", "0.6886224", "0.68593854", "0.6836379", "0.6777203", "0.67606896", "0.6758867...
0.71549124
9
This function performs text normalization. If should_normalize is False then we return the original token unchanged. Otherwise, we return a normalized version of the token, or None. For some tokens (like stopwords) we might not want to keep the token. In this case we return None.
def NkkI(eOtH, HUkj=True): if not HUkj: m2ln = eOtH elif eOtH.lower() not in Dhdw.corpus.stopwords.words('english') and bool(ZbWC.search('\\w', eOtH)): m2ln = eOtH.lower() else: m2ln = None return m2ln
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(eOtH, HUkj=True):\n if not HUkj:\n m2ln = eOtH\n else:\n us9Q = eOtH.lower()\n hwHU = Dhdw.corpus.stopwords.words('english')\n if us9Q in hwHU:\n return None\n if ZbWC.findall('[\\\\w]', us9Q) == []:\n return None\n m2ln = us9Q\n ret...
[ "0.83267903", "0.6467535", "0.6431481", "0.642683", "0.6304755", "0.62850565", "0.6194691", "0.6187812", "0.61736655", "0.6082539", "0.6052247", "0.60110265", "0.5988417", "0.5973843", "0.59610546", "0.5960008", "0.59541196", "0.5932418", "0.5927384", "0.59229004", "0.5915778...
0.81541157
1
Returns the state of this object in a serializable form.
def i6Zq(YKHO, o8Kj=wohN.ALL): if o8Kj is wohN.ALL: o8Kj = YKHO.exposedAttributes return dict(((jzdc, YKHO.getSerializableAttribute(jzdc)) for jzdc in o8Kj))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k8jS(YKHO):\n return bVUc.dumps(YKHO)", "def oD7C(YKHO):\n return YKHO.__getstate__()", "def k8jS(YKHO):\n return YKHO.to_dict()", "def QTBn(YKHO):\n return YKHO.__dict__", "def QTBn(YKHO):\n return YKHO.__dict__", "def k8jS(YKHO):\n return YKHO.to_json_dict()", "def k8jS(YKHO):\n...
[ "0.82912546", "0.82264704", "0.8063965", "0.8036969", "0.8036969", "0.79524887", "0.7877992", "0.78457224", "0.78263766", "0.77229744", "0.7634654", "0.76292074", "0.76237047", "0.76237047", "0.7559676", "0.7559676", "0.7559676", "0.7559676", "0.753371", "0.7530719", "0.74646...
0.0
-1
Returns a gaussian filtered image
def m3Pn(zZcM): zr3f = oyIN.zeros_like(zZcM) zr3f[0, 0] = (zZcM[0, 0] * 4 + zZcM[0, 1] * 2 + zZcM[1, 0] * 2 + zZcM[1, 1]) // 16 zr3f[0, zr3f.shape[1] - 1] = (zZcM[0, zr3f.shape[1] - 2] * 2 + zZcM[0, zr3f.shape[1] - 1] * 4 + zZcM[1, zr3f.shape[1] - 2] + zZcM[1, zr3f.shape[1] - 1] * 2) // 16 zr3f[zr3f.sha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def raZd(YKHO):\n V2fX.gaussian_filter(YKHO.im, sigma=oyIN.random.rand(), output=YKHO.im)", "def apUX(VXjJ, KCHu):\n quCl = VXjJ.copy()\n LorG = V2fX.gaussian_filter(quCl, sigma=KCHu)\n return LorG", "def l__T(d6hw, WTkW):\n NMPo = apUX(d6hw, sigma=WTkW)\n return NMPo", "def l__T(d6hw, WTkW...
[ "0.88035643", "0.86595607", "0.827674", "0.8269807", "0.80487126", "0.7975315", "0.7513947", "0.74560136", "0.744671", "0.7414609", "0.7368448", "0.7358556", "0.7344095", "0.7332718", "0.73264176", "0.73066175", "0.73009104", "0.7292604", "0.72878677", "0.72862375", "0.728453...
0.0
-1
return the cost associated with an observed output a and a desired output y
def FYKK(jzdc, LVAh): return 0.5 * oyIN.linalg.norm(jzdc - LVAh) ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sSN_(jzdc, LVAh):\n return 0.5 * oyIN.linalg.norm(jzdc - LVAh) ** 2", "def kXRY(YKHO, WKvO):\n return 0.5 * (oyIN.abs(YKHO.op(WKvO).flatten() - YKHO.obs_data.flatten()) ** 2).sum()", "def kXRY(YKHO):\n return Kt_s.mean((YKHO.target_qs - YKHO.output[Kt_s.arange(Kt_s.shape(YKHO.actions)[0]), YKHO.ac...
[ "0.7448941", "0.72732574", "0.71507776", "0.7139632", "0.70799345", "0.70443225", "0.7042982", "0.7029619", "0.7008743", "0.6975181", "0.69514364", "0.68778896", "0.68778896", "0.68778896", "0.68778896", "0.68778896", "0.68778896", "0.68778896", "0.68778896", "0.6819474", "0....
0.0
-1
Right turn of a tree with the specified root
def S4SK(YKHO, tk5Y): cZ0W = tk5Y.prev wyPV = tk5Y.left tk5Y.left = wyPV.right tk5Y.left.prev = tk5Y wyPV.right = tk5Y wyPV.right.prev = wyPV tk5Y = wyPV tk5Y.prev = cZ0W return tk5Y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPNN(YKHO):\n wyPV = YKHO.left\n YKHO.left = wyPV.right\n wyPV.right = YKHO\n YKHO.size -= wyPV.size\n YKHO.size += YKHO.left.size if YKHO.left else 0\n wyPV.size -= YKHO.left.size if YKHO.left else 0\n wyPV.size += YKHO.size\n return wyPV", "def d1sg(YKHO, tk5Y):\n TFR3 = tk5Y.lef...
[ "0.79845464", "0.78081137", "0.7624905", "0.76149446", "0.7549216", "0.74264854", "0.7375007", "0.73032254", "0.7293877", "0.72387624", "0.7186797", "0.7174219", "0.7112574", "0.7112463", "0.71069235", "0.7096528", "0.7089673", "0.7050308", "0.7046829", "0.7041281", "0.701393...
0.8492483
0
Converts the angle to a range of 0 to pi.
def fRZC(YKHO, tuple): def uFuQ(JHZI): if float(JHZI[0]) < 0: return float(JHZI[0]) - float(JHZI[1]) / 60.0 - float(JHZI[2]) / 3600.0 return float(JHZI[0]) + float(JHZI[1]) / 60.0 + float(JHZI[2]) / 3600.0 cclT, N9Di = (str(tuple[0]).split(':'), str(tuple[1]).split(':')) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MRse(YylR):\n while YylR >= epAf.pi:\n YylR -= 2 * epAf.pi\n while YylR <= -epAf.pi:\n YylR += 2 * epAf.pi\n return YylR", "def TYTh(YylR):\n return YylR % (2 * oyIN.pi)", "def MRse(YylR):\n return (YylR + oyIN.pi) % (2 * oyIN.pi) - oyIN.pi", "def Kgle(YKHO, YylR):\n retur...
[ "0.76622224", "0.7575492", "0.75656986", "0.743848", "0.74257994", "0.74257994", "0.7397805", "0.7390495", "0.73588985", "0.73487514", "0.7338778", "0.7272683", "0.7272683", "0.7268151", "0.72254074", "0.7223236", "0.7206305", "0.71836257", "0.7179318", "0.71773845", "0.71708...
0.0
-1
Create a new team and select it.
def eLpg(_Fei, mWFP, Rci7): bPBo = Hy7s.path.join(Rci7, mWFP) Hy7s.makedirs(bPBo) _Fei.teams[mWFP] = bPBo with open(u8az, mode='w') as Z9rn: qQXR.dump([mWFP, _Fei.teams], Z9rn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v8Wg(YKHO) -> None:\n YKHO.client.create_team(YKHO.args.account_id, YKHO.args.team_name)", "def ACk7(YKHO, YPWx):\n try:\n dZPi = r2Kd(name=str(input(PRZZ + 'Team name: ')), motto=str(input(PRZZ + 'Team motto: ')))\n Nchc.add(dZPi)\n Nchc.commit()\n print(SpbS + 'Successfull...
[ "0.771314", "0.7638173", "0.75342125", "0.7480232", "0.7466753", "0.73709923", "0.7231889", "0.7164347", "0.71308756", "0.7122984", "0.709149", "0.7087839", "0.6977682", "0.6940936", "0.68287116", "0.6791388", "0.67721915", "0.6640728", "0.66206795", "0.66053873", "0.65831155...
0.0
-1
Select an existing team.
def EfUA(_Fei, mWFP): if mWFP in _Fei.teams: with open(u8az, mode='w') as Z9rn: qQXR.dump([mWFP, _Fei.teams], Z9rn) else: print(mWFP + ' does not exist in current list of teams.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wtFs(YKHO):\n OxWj = GD_A.get_by_name(f'DM_SELECT_TEAM_{YKHO.game.mission_team}')\n bo34.debug(f'Selecting team: {OxWj.name}')\n YKHO.emulator.click_button(OxWj)", "def SFxi(cuiw, mWFP):\n return JuIK(cuiw, mWFP)", "def zjbk(YKHO, QePW):\n pass", "def zjbk(b2mu: int):\n return r2Kd.obje...
[ "0.8064347", "0.6515906", "0.64605844", "0.6381888", "0.63639235", "0.63046134", "0.6286286", "0.62795466", "0.6264666", "0.6264666", "0.6264666", "0.6264666", "0.6264666", "0.6264666", "0.6264666", "0.62331617", "0.6127049", "0.61128974", "0.6106503", "0.6093091", "0.6076934...
0.0
-1
Return the last usable skill contained by the input dictionary.
def xx28(kg9Q): up7G = [] for KCHu in kg9Q.keys(): if kg9Q[KCHu].is_usable(): up7G.append(KCHu) if len(up7G) > 0: return up7G[-1] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NQwv(YKHO):\n return YKHO._fallback_skill", "def FI5S(YKHO):\n return YKHO.names[-1]", "def MqE0(YKHO, F5FK=[]):\n Il9X = YKHO.getPossibleSkills()\n H9J1 = YKHO.getGoodCandidateSkills(Il9X)\n ZI3J = tuKI.randint(1, 10)\n ewCu = 0\n while not F5FK and ewCu < 1000:\n ewCu += 1\n ...
[ "0.6101963", "0.59150106", "0.5911672", "0.590373", "0.590373", "0.58802605", "0.5834393", "0.57676345", "0.574596", "0.57197726", "0.565322", "0.5646443", "0.5644394", "0.5607306", "0.55860376", "0.55503666", "0.5536621", "0.55309594", "0.55182654", "0.5509134", "0.5489815",...
0.8627856
0
Unsqueeze all representations along the given dimension.
def vRkX(WKvO: Representation, tpio: int) -> mKke: fUYa: bdIy[ht2j.FloatTensor] = Suef(WKvO) fUYa = [CAzz.unsqueeze(dim=tpio) for CAzz in fUYa] return fUYa[0] if len(fUYa) == 1 else fUYa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qTP6(vhpA, tpio):\n if Q6YV(vhpA):\n return XTiz.expand_dims(vhpA, axis=tpio)\n if LRM3(vhpA):\n return vhpA.unsqueeze(tpio)\n assert False, 'Unknown data type'", "def qTP6(input, Htse):\n if isinstance(Htse, (list, tuple)):\n Htse = [tpio if tpio >= 0 else tpio + len(input.s...
[ "0.7596938", "0.7223646", "0.6963437", "0.6851717", "0.67639196", "0.66639626", "0.6613247", "0.6573422", "0.65241504", "0.6512711", "0.6502438", "0.6360035", "0.6349263", "0.63349295", "0.63120484", "0.6309612", "0.6293042", "0.62872595", "0.62742704", "0.62489057", "0.62036...
0.7230964
1
Builds the neural network using keras, and stores the model in self.model. Uses shape parameters from init and the learning rate self.lr. You may change this, though what is given should be a good start.
def Cc7Y(YKHO): C3ST = ileL() C3ST.add(l6ZH(YKHO.num_hidden1, init=vnAl(seed=CYNo), input_shape=(YKHO.num_inputs,))) C3ST.add(MroH('relu')) C3ST.add(l6ZH(YKHO.num_hidden2, init=vnAl(seed=CYNo))) C3ST.add(MroH('relu')) C3ST.add(l6ZH(YKHO.num_output, init=vnAl(seed=CYNo))) C3ST.add(MroH('linea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DszH(YKHO):\n YKHO.model = ileL()\n YKHO.model.add(l6ZH(YKHO.neurons, input_dim=YKHO.input_size, activation='relu'))\n for YRbF in range(1, YKHO.hidden_layers + 1):\n vNnt = YKHO.neurons // (YRbF * 2)\n YKHO.model.add(l6ZH(vNnt, activation='relu'))\n YKHO.model.add(lARV(0.2))\n ...
[ "0.80130625", "0.7842257", "0.77118325", "0.76962817", "0.76467496", "0.7503321", "0.74954575", "0.748795", "0.74576586", "0.7404236", "0.73892725", "0.7367731", "0.7355337", "0.7352902", "0.7341105", "0.7338758", "0.7330734", "0.7321611", "0.7297398", "0.72955436", "0.728796...
0.7808907
2
Representation of this object.
def wHJl(YKHO) -> str: b2mB = YKHO.__class__.__name__ mWFP = YKHO.name JT5y = YKHO.state_from().name yZiV = YKHO.state_to().name return f"<{b2mB}(id='{mWFP}' from='{JT5y}' to='{yZiV}')>"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return YKHO.to_dict()", "def wHJl(YKHO):\n return YKHO.__represent()", "def wHJl(YKHO):\n return YKHO.__represent()", "def wHJl(YKHO):\n return YKHO", "def wHJl(YKHO):\n return Napc(YKHO)", "def wHJl(YKHO):\n return YKHO.toString()", "def wHJl(YKHO):\n return str(...
[ "0.7931576", "0.78681046", "0.78681046", "0.7855268", "0.77154523", "0.76386946", "0.76038235", "0.76038235", "0.74738103", "0.74738103", "0.74711174", "0.74711174", "0.74711174", "0.74711174", "0.74711174", "0.74711174", "0.7460312", "0.7460312", "0.7460312", "0.7460312", "0...
0.0
-1
The ARN of the role that grants permission to AWS IoT Events to perform its operations.
def axXk(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'role_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'", "def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')", "def SNjk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'access_role_arn')", "de...
[ "0.77156425", "0.73226273", "0.7297916", "0.72597206", "0.72597206", "0.72597206", "0.72597206", "0.72597206", "0.72597206", "0.7233467", "0.7064082", "0.7038522", "0.7030182", "0.7030182", "0.7030182", "0.7030182", "0.7030182", "0.70201445", "0.7002332", "0.7002332", "0.6945...
0.7227878
12
The name of the detector model.
def b8uj(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'detector_model_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8uj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'detector_model_name')", "def ZGE9(YKHO) -> str:\n return YKHO._device_info.model_name", "def ZGE9(YKHO):\n return gaxy.string(YKHO._abilities.model).decode()", "def mWFP(YKHO) -> str:\n return YKHO.data[VDgb]['model']", "def mWF...
[ "0.868182", "0.81912", "0.8071935", "0.80207115", "0.78364533", "0.77832353", "0.7768856", "0.7768856", "0.77276397", "0.77276397", "0.76903754", "0.76903754", "0.7634774", "0.7633368", "0.76202714", "0.7616855", "0.76161486", "0.7555371", "0.75514895", "0.75062096", "0.74845...
0.8521631
1
An array of keyvalue pairs to apply to this resource.
def dJ1p(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['DetectorModelTagArgs']]]]: return qe4Y.get(YKHO, 'tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lZBZ(YKHO):\n return Pbc4.keys(YKHO)", "def azoT(YKHO):\n return {}", "def o8Kj(YKHO):\n return dict(YKHO.__dict__)", "def NURA(YKHO):\n return dict()", "def hkxX(YKHO):\n return {d7pR.name: getattr(YKHO, d7pR.name) for d7pR in YKHO._args}", "def A0zC(YKHO):\n return {'resource_buck...
[ "0.62136066", "0.61935407", "0.6150437", "0.61122954", "0.61113304", "0.61103046", "0.60933435", "0.6088976", "0.6046326", "0.60413164", "0.604069", "0.6030783", "0.6004779", "0.59993136", "0.59576553", "0.5950659", "0.5936195", "0.5930758", "0.5915258", "0.5903809", "0.59038...
0.0
-1
Get an existing DetectorModel resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'DetectorModel': VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id)) r6DL = Qmhv.__new__(Qmhv) r6DL.__dict__['detector_model_definition'] = None r6DL.__dict__['detector_model_description'] = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Model':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = tj6I.__new__(tj6I)\n r6DL.__dict__['active_operations'] = None\n r6DL.__dict__['create_time'] = None\n r6DL.__dict__['di...
[ "0.6120763", "0.59496015", "0.58583874", "0.57683045", "0.55776995", "0.55622935", "0.5437921", "0.5408186", "0.5388017", "0.534249", "0.5337461", "0.5329279", "0.53234905", "0.5286854", "0.528055", "0.52728534", "0.52712804", "0.527029", "0.5267075", "0.52660227", "0.5261045...
0.6740196
0