query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Return a copy of ``self``
def i3ak(YKHO): BdN0 = type(YKHO)(YKHO.detector.detectorName, YKHO.sky, YKHO.psf, YKHO.exposure.dtype) BdN0.exposure = YKHO.exposure.clone() BdN0.fibers = YKHO.fibers.copy() return BdN0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def jth9(YKHO):\n return YKHO", "def jth9(YKHO):\n return jth9(YKHO)", "def jth9(YKHO):\n return YKHO.__copy__()...
[ "0.8940615", "0.8940615", "0.8940615", "0.8940615", "0.8940615", "0.8907612", "0.8902868", "0.8805431", "0.8805431", "0.8805431", "0.8805431", "0.8753154", "0.8753154", "0.8746163", "0.87194824", "0.87194824", "0.87194824", "0.87194824", "0.87194824", "0.87194824", "0.8696871...
0.0
-1
Test Ansible module __virtual__ when ansible is not installed on the minion.
def jdfu(C7Pp): with Po4F('salt.modules.ansiblegate.ansible', None): assert dAfd.__virtual__() == 'ansible'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HtF2():\n if 'pkg.install' in PHIk:\n return True\n return (False, 'pkg module could not be loaded')", "def HtF2():\n if 'openvswitch.port_add' in PHIk:\n return True\n return (False, 'openvswitch module could not be loaded')", "def HtF2():\n if wwDb:\n return 'keystone'...
[ "0.68020296", "0.6577893", "0.6460875", "0.64482343", "0.6380398", "0.6328935", "0.630858", "0.62739486", "0.6270263", "0.6216857", "0.6211034", "0.6189036", "0.61883515", "0.6167206", "0.6167206", "0.6141561", "0.6119687", "0.61026615", "0.6095694", "0.60755455", "0.6067573"...
0.7782525
0
Returns a string with a list of streamer names followed for this server and channel
def cwXR(YKHO, LfBN): IYD7 = [] for BVbN, A0z0 in YKHO.watchedStreamersData.iteritems(): if YKHO.doesStreamerHaveNickname(BVbN, LfBN): BVbN = u'{}({})'.format(A0z0['nicknames'][LfBN], BVbN) if LfBN in A0z0['followChannels']: IYD7.append(BVbN) elif LfBN in A0z0['re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def streamers(YKHO, OaeV):\n jUOp = YKHO.settings.getServerStat(OaeV.guild, 'StreamList')\n ATRw = []\n for WKvO in jUOp:\n poLx = r0Yp.memberForName(WKvO, OaeV.guild)\n if not poLx:\n continue\n ATRw.append(r0Yp.name(poLx))\n if not len(ATRw):\n return awai...
[ "0.74028826", "0.64714855", "0.6442399", "0.64127934", "0.63524306", "0.62073815", "0.6206017", "0.6158935", "0.61334383", "0.60761875", "0.6014011", "0.6014011", "0.6014011", "0.60001343", "0.5989836", "0.59822756", "0.59745777", "0.59554905", "0.59427357", "0.59255475", "0....
0.72271705
1
Compute Root Mean Squared Error (RMSE)
def iAxY(Y8eF, aMgO): return oyIN.sqrt(SDab(Y8eF, aMgO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YNWb(cgmM, bdkc):\n P1dF = cgmM - bdkc.round()\n BKL_ = oyIN.sum(P1dF ** 2)\n SDab = oyIN.mean(BKL_)\n DF3U = epAf.sqrt(SDab)\n return DF3U", "def XJS3(YKHO):\n IDgZ = oyIN.array([32, 212, 100, 98.6, 150, -15])\n jrTT = oyIN.array([35, 216, 90, 88.6, 153, -12])\n ddhc = BfDw.rmse(IDgZ...
[ "0.81624824", "0.79872113", "0.79150975", "0.7786081", "0.77275246", "0.77190745", "0.7710637", "0.76856357", "0.7658184", "0.7656124", "0.7640588", "0.76393867", "0.7635999", "0.762687", "0.760315", "0.7585343", "0.75724554", "0.75689644", "0.755118", "0.75465477", "0.752274...
0.7461305
21
Computes enrichment factor for given percentage, i.e. EF_1% is enrichment factor for first percent of given samples.
def WuAI(Y8eF, OU5i, K1nB=1, uxJJ=None): if uxJJ is None: uxJJ = 1 Crrw = Y8eF == uxJJ S2pE = lO1m(float(K1nB) / 100.0 * len(Crrw)) return Crrw[:S2pE].sum() / S2pE * 100
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fPw3(Z5kt, DuZT):\n return Z5kt - Z5kt * (100 - DuZT) / 100", "def Qr49(Z5kt, DuZT):\n return Z5kt / ((100 - DuZT) / 100)", "def O3t7(hkxX, yArv):\n return float(oyIN.percentile(hkxX, float(yArv) / 100.0))", "def jkeu(YKHO, ur4K: int, neep: int) -> int:\n return ur4K * neep // (100 * VH5Z)", ...
[ "0.5864681", "0.5784008", "0.5705772", "0.56868255", "0.5492475", "0.548483", "0.5462285", "0.5446986", "0.54237604", "0.54231524", "0.53799194", "0.534945", "0.5325281", "0.53186363", "0.531011", "0.53025043", "0.52650195", "0.525841", "0.5226417", "0.5226417", "0.5208387", ...
0.6141319
0
Check is http status code 200 Ok.
def dwhJ(jGRS): if jGRS != 200: raise
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j1x8(_hkX):\n return _hkX.status_code == 200", "def yQRe(_hkX):\n return _hkX.status_code == 200", "def rStG(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 200)", "def rStG(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 200)", "def TTz0(_hkX) -> bool:\n if _hkX.status...
[ "0.8384675", "0.80685425", "0.7948648", "0.79265183", "0.7850936", "0.78208154", "0.78023237", "0.77455574", "0.77455574", "0.7721902", "0.77173275", "0.7701707", "0.76796407", "0.76725054", "0.7645315", "0.7643658", "0.7623956", "0.753452", "0.7507772", "0.7507772", "0.75010...
0.71704125
42
Returns the root element of the current element. Since we started with singletons, the condition to reach the root element will be if parents[element] == element is True.
def vvyi(YKHO, mLGw): while YKHO.parents[mLGw] != mLGw: YKHO.parents[mLGw] = YKHO.parents[YKHO.parents[mLGw]] mLGw = YKHO.parents[mLGw] return mLGw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LIOs(YKHO):\n _AKB = YKHO.parent\n if _AKB is None:\n return YKHO.element\n return _AKB.get_root()", "def vi3q(YKHO):\n _AKB = YKHO\n while _AKB.parent:\n _AKB = _AKB.parent\n return _AKB", "def LIOs(YKHO):\n ZfUD = YKHO\n while ZfUD.parent is not None:\n ZfUD =...
[ "0.72628146", "0.7138503", "0.7119984", "0.7069425", "0.6941732", "0.6880934", "0.67433286", "0.6693184", "0.66621757", "0.66341233", "0.6633695", "0.65379167", "0.6502218", "0.6484448", "0.6452873", "0.6435732", "0.6412882", "0.6394507", "0.63853526", "0.63514006", "0.632317...
0.0
-1
Returns True if the parents are the same, useful because it tells us when we need to call union. findRoot takes care of cases when an element is an indirect child, when the parents may be different, but the grandparent is the same.
def neBz(YKHO, WKvO, LVAh): if YKHO.parents[WKvO] == YKHO.parents[LVAh]: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kFcs(YKHO):\n return YKHO.val == YKHO.parent", "def hHbZ(YKHO, zO88):\n return YKHO.set_subtree(YKHO.root) == zO88.set_subtree(zO88.root)", "def lYHM(YKHO, Q6kx, JqKD=True):\n if YKHO.formatRef != Q6kx.formatRef or len(YKHO.childList) != len(Q6kx.childList) or YKHO.data != Q6kx.data or (JqKD and (...
[ "0.6778336", "0.6693166", "0.66359794", "0.65684074", "0.6517602", "0.6511725", "0.6511725", "0.6511725", "0.6511725", "0.6511725", "0.6511725", "0.6478637", "0.64372367", "0.6431328", "0.6330072", "0.63011587", "0.63011587", "0.6288768", "0.62836885", "0.62830126", "0.628249...
0.56178486
87
Compute the centroid of a residue.
def _RSG(YKHO, kUkU): return PXGI.sum([YKHO.pdb.positions[WhQ6.index] for WhQ6 in kUkU.atoms()]) / len(list(kUkU.atoms()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e6ux(YKHO):\n raise NotImplementedError", "def e6ux(YKHO):\n WKvO = YKHO.vertices[:, 0]\n LVAh = YKHO.vertices[:, 1]\n VMqD = 0.0\n Ya2r = 0.0\n for YRbF in range(len(YKHO.vertices) - 1):\n VMqD += (WKvO[YRbF] + WKvO[YRbF + 1]) * (WKvO[YRbF] * LVAh[YRbF + 1] - WKvO[YRbF + 1] * LVAh[Y...
[ "0.74587417", "0.7446622", "0.74391377", "0.7418407", "0.7403872", "0.7403872", "0.73817897", "0.73689044", "0.7344215", "0.733054", "0.7306944", "0.7298402", "0.72934806", "0.7293058", "0.7266184", "0.7266184", "0.7254277", "0.723612", "0.7232692", "0.7223188", "0.721034", ...
0.77151
0
Create a force field to use for optimizing the positions of newly added atoms.
def O9B4(YKHO, I8Uc, Z9Gk): if Z9Gk: wkC4 = P4t4.ForceField('amber10.xml', 'tip3p.xml') r9o4 = [eHNT for eHNT in wkC4._forces if isinstance(eHNT, JI6q)][0] MEia = {'H': 0.198, 'Li': 0.203, 'C': 0.34, 'N': 0.325, 'O': 0.299, 'F': 0.312, 'Na': 0.333, 'Mg': 0.141, 'P': 0.374, 'S': 0.356, 'Cl': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QypM(YKHO, DHvX, BZ33):\n YKHO.force_que.append([DHvX, BZ33])", "def U1T7(YKHO):\n YKHO.forces = YKHO.atoms.get_forces()", "def JXGt(YKHO):\n tk5Y = GXnK.Element('ForceField')\n GXnK.SubElement(tk5Y, f'QUBEKit', attrib={'Version': KLy0.__version__, 'Date': qcWV.now().strftime('%Y_%m_%d')})\n ...
[ "0.64792156", "0.64740485", "0.63431764", "0.6232351", "0.62006384", "0.6105582", "0.60630023", "0.60514903", "0.6003611", "0.59611", "0.5912156", "0.58768326", "0.5855898", "0.58505416", "0.5786636", "0.5782668", "0.5755067", "0.5755067", "0.5755067", "0.57481515", "0.574402...
0.65338844
0
Return path relative to given directory
def t_yv(pmON, AGPF): if AGPF == '': AGPF = '.' sWmO = Hy7s.getcwd() Hy7s.chdir(AGPF) Zg0d = Hy7s.path.abspath(pmON) Hy7s.chdir(sWmO) return Zg0d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PsRC(nUeQ, pmON):\n return Hy7s.path.normpath(Hy7s.path.join(Hy7s.path.dirname(nUeQ), pmON))", "def yXwy(pmON, dir):\n pMxw = []\n while True:\n sdCG, J3uN = Hy7s.path.split(pmON)\n pMxw.append(J3uN)\n if J3uN == dir:\n break\n elif not sdCG:\n print...
[ "0.752751", "0.7502606", "0.74277973", "0.7314811", "0.7301134", "0.7286881", "0.7279178", "0.7270947", "0.7270778", "0.723046", "0.7130493", "0.71247834", "0.706565", "0.7063569", "0.7053043", "0.7050296", "0.70446366", "0.7029828", "0.7013017", "0.69618285", "0.69596606", ...
0.78941923
0
Returns the C type corresponding to the model field type
def w_bp(YKHO): TuXO = {E9mR.PRIMARY_KEY: 'sqlite3_int64', E9mR.FOREIGN_KEY: 'sqlite3_int64', E9mR.INTEGER: 'int', E9mR.REAL: 'double', E9mR.TEXT: 'char', E9mR.BLOB: 'char'} return TuXO[YKHO]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdgl(YKHO):\n return YKHO.field_type", "def w_bp(YKHO):\n if YKHO._type_name:\n h_UO = YKHO._type_name\n else:\n h_UO = YKHO.name\n return h_UO", "def vF49(YKHO):\n if isinstance(YKHO._field_type, exCv):\n if YKHO._field_type == 'self':\n YKHO._field_type = YK...
[ "0.7723115", "0.7694501", "0.764184", "0.74550456", "0.7325896", "0.71510476", "0.7118038", "0.7054616", "0.70522976", "0.7010796", "0.70044816", "0.6980625", "0.6980625", "0.6924567", "0.6924567", "0.6915881", "0.68776786", "0.68765396", "0.6844219", "0.6840759", "0.68311656...
0.79607385
0
Returns the database column type corresponding to the field type
def DpHA(YKHO): NkYV = {E9mR.PRIMARY_KEY: 'INTEGER PRIMARY KEY', E9mR.FOREIGN_KEY: 'INTEGER', E9mR.INTEGER: 'INTEGER', E9mR.REAL: 'REAL', E9mR.TEXT: 'TEXT', E9mR.BLOB: 'BLOB'} return NkYV[YKHO]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DpHA(YKHO, AAHb):\n try:\n return getattr(YKHO.model, '__admin_col_type_%s__' % AAHb)\n except AttributeError:\n return None", "def y7XK(YKHO, iVRZ):\n return YKHO._data.column_type(iVRZ)", "def DpHA(YKHO, lt9u):\n KXx7 = dict(number='BIGINT', datepicker='DATE', datetimepicker='TI...
[ "0.784514", "0.7772766", "0.7758761", "0.77473193", "0.7737082", "0.77236795", "0.7703899", "0.77008665", "0.76849794", "0.7626361", "0.76084554", "0.7598207", "0.7598207", "0.7540442", "0.7502984", "0.7493838", "0.74380445", "0.7412607", "0.7377836", "0.72067785", "0.7177381...
0.8249646
0
Returns all queries of the specified type
def i8Kl(YKHO, kdD5): return (xDcj for xDcj in YKHO.queries if xDcj.query_type == kdD5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QpCm(YKHO, kdD5, nPrm, NArs):\n return YKHO.database.query_all(query=YKHO.get_query_string(kdD5, nPrm), params=NArs)", "def h_xz(cM24):\n return cM24.query.all()", "def xDcj(YKHO, kdD5, nPrm, NArs):\n return YKHO.database.query(query=YKHO.get_query_string(kdD5, nPrm), params=NArs)", "def XNDa(Em...
[ "0.7927512", "0.70932186", "0.6930415", "0.6926111", "0.6892767", "0.67981505", "0.67785746", "0.66815305", "0.66761076", "0.6660037", "0.66510564", "0.66510564", "0.6617644", "0.66081506", "0.65996355", "0.6593996", "0.6554247", "0.6526149", "0.6521824", "0.65180486", "0.648...
0.7878313
1
Returns the C type of the query parameter
def w_bp(YKHO): VPSP = {E9mR.TEXT, E9mR.BLOB} h_UO = YKHO.param_type.get_c_type() if YKHO.param_type in VPSP: h_UO += ' *' return h_UO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kdD5(YKHO):\n return YKHO._query_type", "def eZoy(fVGs):\n SfI4 = fVGs[1]\n if SfI4 == qcWV:\n SfI4 = w5Jl\n elif type(SfI4) == list:\n SfI4 = xBlr.partial(hKuH, SfI4[0])\n elif SfI4 == range:\n SfI4 = eZoy(fVGs[1:])\n return SfI4", "def kdD5(YKHO) -> h8nf[str]:\n ...
[ "0.71157104", "0.7041844", "0.69814724", "0.6712745", "0.6408264", "0.63970244", "0.63970244", "0.63970244", "0.63389677", "0.63297415", "0.6325007", "0.62971", "0.6199084", "0.6184818", "0.61480427", "0.6122231", "0.6114587", "0.6105142", "0.6100807", "0.60748506", "0.603065...
0.70835996
1
Takes as input Ui (the ith row of U), a training point Yij, the column vector Vj (jth column of V^T), reg (the regularization parameter lambda), and eta (the learning rate). Returns the gradient of the regularized loss function with respect to Ui multiplied by eta.
def XHoq(dY7y, i3Ni, nuZM, lQ3t, RHJb): return dY7y * RHJb * lQ3t + nuZM * RHJb * (oyIN.dot(dY7y, nuZM) - i3Ni)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XHoq(dY7y, i3Ni, nuZM, lQ3t, RHJb):\n KvTy = lQ3t * dY7y\n inty = (i3Ni - oyIN.dot(dY7y, nuZM)) * nuZM\n ICX2 = KvTy - inty\n return RHJb * ICX2", "def XHoq(dY7y, i3Ni, nuZM, lQ3t, RHJb):\n KvTy = 2 * lQ3t * dY7y\n _nZe = i3Ni - oyIN.dot(dY7y, nuZM)\n Ro40 = KvTy + _nZe * (-2 * nuZM)\n ...
[ "0.80287", "0.7672583", "0.7643765", "0.752044", "0.725467", "0.72529024", "0.7234365", "0.69741476", "0.696633", "0.6834875", "0.65775585", "0.6365405", "0.63371164", "0.6322951", "0.62757903", "0.6232994", "0.61933655", "0.61347145", "0.6091829", "0.6075761", "0.60224205", ...
0.76796865
1
Takes as input the column vector Vj (jth column of V^T), a training point Yij, Ui (the ith row of U), reg (the regularization parameter lambda), and eta (the learning rate). Returns the gradient of the regularized loss function with respect to Vj multiplied by eta.
def hKYp(nuZM, i3Ni, dY7y, lQ3t, RHJb): return nuZM * RHJb * lQ3t + dY7y * RHJb * (oyIN.dot(dY7y, nuZM) - i3Ni)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKYp(nuZM, i3Ni, dY7y, lQ3t, RHJb):\n KvTy = lQ3t * nuZM\n inty = (i3Ni - oyIN.dot(dY7y, nuZM)) * dY7y\n ICX2 = KvTy - inty\n return RHJb * ICX2", "def XHoq(dY7y, i3Ni, nuZM, lQ3t, RHJb):\n KvTy = lQ3t * dY7y\n inty = (i3Ni - oyIN.dot(dY7y, nuZM)) * nuZM\n ICX2 = KvTy - inty\n return ...
[ "0.80277497", "0.7847742", "0.7695596", "0.7552789", "0.75511557", "0.7412504", "0.73893404", "0.736442", "0.709791", "0.6703881", "0.66984385", "0.6426201", "0.6356192", "0.6337377", "0.63344705", "0.6323088", "0.6243699", "0.61971545", "0.612107", "0.60944283", "0.6004637",...
0.7702336
2
Takes as input a matrix Y of triples (i, j, Y_ij) where i is the index of a user, j is the index of a movie, and Y_ij is user i's rating of movie j and user/movie matrices U and V. Returns the mean regularized squarederror of predictions made by estimating Y_{ij} as the dot product of the ith row of U and the jth colum...
def u0qw(KkY2, cAlv, fuBA, lQ3t=0.0): exlG = oyIN.linalg.norm(cAlv) Xecm = oyIN.linalg.norm(KkY2) RLMR = lQ3t / 2.0 * (exlG * exlG + Xecm * Xecm) XObx = 0.0 for LVAh in fuBA: YRbF = LVAh[0] - 1 r845 = LVAh[1] - 1 i3Ni = LVAh[2] yk4i = i3Ni - oyIN.dot(KkY2[YRbF], cAlv[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L0Rr(fuBA, A3Vt):\n tuER = fuBA * A3Vt\n xwI_ = tuER.sum(axis=1) / A3Vt.sum(axis=1)\n xwI_ = xwI_.reshape(-1, 1)\n ryZv = (tuER - xwI_) * A3Vt\n return (ryZv, xwI_)", "def Mwhu(LVAh: np.ndarray, aMgO: np.ndarray) -> float:\n return LVAh.mean()", "def b7La(mwlV, N6Z1, sR7W, KNRt):\n ret...
[ "0.61392677", "0.6132789", "0.6115205", "0.60777384", "0.60769063", "0.6064809", "0.6057435", "0.60529554", "0.60391885", "0.6037715", "0.6025615", "0.5982858", "0.59607786", "0.5954015", "0.5920142", "0.590327", "0.5900614", "0.58965814", "0.58810043", "0.58750755", "0.58704...
0.0
-1
Getter for client's credentials.
def Vt89(YKHO): return YKHO._credentials
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCh8(YKHO, zb3C):\n return YKHO.db.clients.find_one({'_id': zb3C})", "def PZHO(YKHO):\n if YKHO.client_id == None or YKHO.client_secret == None:\n raise Exception('No client ID or secret found.')\n Ck5W = f'{YKHO.client_id}:{YKHO.client_secret}'\n AKhz = WR89.b64encode(Ck5W.encode())\n ...
[ "0.803565", "0.79169774", "0.7904744", "0.7836846", "0.78201675", "0.7817686", "0.76879555", "0.7663114", "0.76303494", "0.7570213", "0.7505619", "0.74541986", "0.7432133", "0.74015355", "0.7365727", "0.73457587", "0.7340117", "0.7323105", "0.72523165", "0.7223227", "0.721683...
0.7670383
8
Creates gRPC stub to make requests to the Operations API. These are for longrunning operations of the Instance Admin API, hence the host and port matching.
def Ks1v(YKHO): return wf98(YKHO, QJK6, BSF7, wc1L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, QePW: operations_pb2.ListOperationsRequest, *, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Optional[float]=None, yIVm: Sequence[Tuple[str, str]]=()) -> s1LG.ListOperationsResponse:\n Zgvv: x1iM[cuzp[str, str]] = [{'method': 'get', 'uri': '/v1/{name=projects/*/instances/*/databases/*/operations...
[ "0.6287955", "0.6227805", "0.6227805", "0.6224535", "0.6168671", "0.6086776", "0.6067251", "0.60492814", "0.6048712", "0.60369104", "0.59497243", "0.5924066", "0.5924066", "0.5924066", "0.5913369", "0.5909763", "0.59083205", "0.5895432", "0.5895323", "0.58702594", "0.58568114...
0.7811986
0
Closes all the open gRPC clients.
def JCyR(YKHO): if not YKHO.is_started(): return YKHO._data_stub_internal.__exit__(None, None, None) if YKHO._admin: YKHO._instance_stub_internal.__exit__(None, None, None) YKHO._operations_stub_internal.__exit__(None, None, None) YKHO._table_stub_internal.__exit__(None, None...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GpKe(YKHO):\n for x0hE in YKHO.clients:\n try:\n x0hE.close_channel()\n except ConnectionAbortedError:\n print('Already closed client')\n except:\n YKHO.write_json(False)", "def ulVe(YKHO):\n for Z9rn in YKHO.client_list:\n Z9rn.close()\n ...
[ "0.77849466", "0.7536063", "0.7431813", "0.71062756", "0.6974255", "0.6929772", "0.6807509", "0.67683613", "0.67019415", "0.66856486", "0.66763026", "0.6675584", "0.6671327", "0.66664404", "0.6650954", "0.66375977", "0.66315323", "0.6603771", "0.6601659", "0.65812933", "0.658...
0.0
-1
Makes a stub for an RPC service. Uses / depends on the beta implementation of gRPC.
def wf98(x0hE, dBxH, KcEq, bIwZ): sJAs = Lcqq.ssl_channel_credentials(None, None, None) a0BF = AGXC(x0hE) Xcdq = Lcqq.metadata_call_credentials(a0BF, name='google_creds') iu6X = Lcqq.composite_channel_credentials(sJAs, Xcdq) YwkQ = Lcqq.secure_channel(KcEq, bIwZ, iu6X) return dBxH(YwkQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VuIh(YwkQ, KcEq=None, iNe7=None, dBuj=None, EcAO=None):\n xKes = {('luci.swarming.bot.BotService', 'BotUpdate'): ODMO.SerializeToString, ('luci.swarming.bot.BotService', 'Handshake'): asUd.SerializeToString, ('luci.swarming.bot.BotService', 'Poll'): bTM8.SerializeToString, ('luci.swarming.bot.BotService', '...
[ "0.72601604", "0.72095007", "0.71732825", "0.70230246", "0.68514043", "0.6805664", "0.67187274", "0.663207", "0.6565422", "0.6478912", "0.6471797", "0.64357793", "0.63731337", "0.635214", "0.6311269", "0.6307402", "0.6303311", "0.6294761", "0.62776595", "0.6274872", "0.625997...
0.63572824
13
Split the last dimension into (num_heads, depth). Transpose the result such that the shape is (batch_size, num_heads, seq_len, depth)
def Plaj(YKHO, WKvO, Ep8u): WKvO = ZylS.reshape(WKvO, (Ep8u, -1, YKHO.num_heads, YKHO.depth)) return ZylS.transpose(WKvO, perm=[0, 2, 1, 3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Plaj(YKHO, WKvO, Ep8u):\n WKvO = ZylS.reshape(WKvO, (Ep8u, -1, YKHO.num_heads, YKHO.depth))\n return ZylS.transpose(WKvO, perm=[0, 2, 1, 3])", "def Plaj(WKvO, hC9O):\n return ZylS.transpose(VjTS(WKvO, hC9O), [0, 2, 1, 3])", "def Plaj(YKHO, WKvO, Ep8u):\n WKvO = ZylS.reshape(WKvO, (Ep8u, -1, YKH...
[ "0.75426966", "0.7501601", "0.74380654", "0.74380654", "0.74380654", "0.73793054", "0.7331817", "0.7331817", "0.7331817", "0.72853136", "0.7258493", "0.7251632", "0.7251632", "0.7251632", "0.7251632", "0.7251632", "0.7251632", "0.7251632", "0.7251632", "0.72249335", "0.719275...
0.72814435
10
Tests if the eigenbasis is normalized
def q92L(): t3jy = o1Kh.ChargeDipole(30.0, 10.0) for iArr in t3jy.qubit_basis().T: assert oyIN.linalg.norm(iArr) - 1 <= 1e-15
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def liQo(YKHO):\n if YKHO.IS_AOA:\n NT23 = oyIN.zeros(len(YKHO.values), dtype=bool)\n for YRbF in range(len(YKHO.values)):\n P1dF = oyIN.abs(1 - oyIN.sum(YKHO.values[YRbF], axis=0))\n NT23[YRbF] = (P1dF < 0.0001).all()\n return NT23.all()\n else:\n P1dF = oyI...
[ "0.71577704", "0.67862636", "0.67640233", "0.65517616", "0.65071994", "0.6402667", "0.63897467", "0.6357688", "0.62770253", "0.62663317", "0.6252936", "0.61617255", "0.61261976", "0.6048081", "0.60314244", "0.59987855", "0.5971509", "0.59098417", "0.5906875", "0.590397", "0.5...
0.7359279
0
returns an inverted dictionary with keys and values swapped.
def NVP6(dict, Lj0k=False): dKc3 = {} if Lj0k: for G1Hx, Ty9i in dict.items(): dKc3[Ty9i] = G1Hx else: for G1Hx, Ty9i in dict.items(): dKc3.setdefault(Ty9i, []).append(G1Hx) return dKc3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tsq2(Csk6):\n Rn8w = {}\n for H5ew, wEf2 in Csk6.items():\n if not Rn8w.has_key(wEf2):\n Rn8w[wEf2] = []\n Rn8w[wEf2].append(H5ew)\n return Rn8w", "def T1r2(Csk6):\n return {Ty9i: G1Hx for G1Hx, Ty9i in Csk6.items()}", "def GOZd(YKHO):\n return {Ty9i: G1Hx for G1Hx, ...
[ "0.79870456", "0.7804901", "0.7657102", "0.76438814", "0.76086944", "0.7565402", "0.7506257", "0.749919", "0.7455202", "0.7440081", "0.7433228", "0.74298006", "0.74162996", "0.73741657", "0.73212326", "0.72993875", "0.7280037", "0.72760975", "0.71638453", "0.7149143", "0.7135...
0.74165547
12
Save atlas as csv file. Will not overwrite existing file unless overwrite is True
def wU9b(Hlol, f2Tp=False): y0cW = 'CompoundAtlas__' sd77 = Hlol.ids.output_dir / f'{y0cW}{Hlol.atlas.name}.csv' Lq8n = TifC.export_atlas_to_spreadsheet(Hlol.atlas) e7Ac(Lq8n, sd77, 'atlas', overwrite=f2Tp, float_format='%.6e')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aVpL(YKHO):\n pass", "def wx4n(Ux0P):\n zTEz.potData.saveData(Ux0P, zTEz.params)", "def ODdy(YKHO, U34r):\n gIsw = LQO1(file_name=YKHO._get_export_file_name('csv'), filters='CSV (*.csv)')\n if not gIsw:\n return\n YKHO.export_file = gIsw\n with open(gIsw, 'w') as eHNT:\n q9m...
[ "0.6962291", "0.6817373", "0.66696244", "0.6669315", "0.6573318", "0.65719575", "0.65696293", "0.6568119", "0.6565658", "0.6547826", "0.6515915", "0.64770633", "0.6474908", "0.6450617", "0.64092517", "0.64091754", "0.6402797", "0.6402302", "0.63636005", "0.6357291", "0.635397...
0.71430373
0
Returns a dataframe with reordered columns such that second column up to column 'mean' are ordered by run number from low to high
def h3Lk(bOBl: pd.DataFrame) -> rLdf.DataFrame: WfCS = bOBl.columns.tolist() DKYM = WfCS.index('mean') tXQa = WfCS[:DKYM] fgT9 = WfCS[DKYM:] tXQa.sort(key=lambda WKvO: int(WKvO.split('.')[0].split('_')[-1].lower().replace('run', '').replace('seq', '').replace('s', ''))) GA74 = tXQa + fgT9 re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zaFD(jQ3Z, moMn, dGFP):\n jQ3Z = jQ3Z.sort_values(moMn, ascending=[True, True])\n WfCS = [fvDH for fvDH in list(jQ3Z.columns) if fvDH not in dGFP]\n for fvDH in WfCS:\n jQ3Z[fvDH + '_mean'] = jQ3Z.groupby(moMn)[fvDH].transform(lambda WKvO: WKvO.expanding().mean().shift(1))\n return jQ3Z", ...
[ "0.56723464", "0.5668874", "0.559749", "0.5412167", "0.5405599", "0.53792846", "0.5366118", "0.5352205", "0.5199738", "0.5193287", "0.51844984", "0.5166034", "0.5164344", "0.5152437", "0.5132544", "0.5119637", "0.5092294", "0.5090698", "0.5079206", "0.5070388", "0.504532", ...
0.7712226
0
Create a YouTubeService object. If provided, use the OAuth 2 token. Otherwise, requests are unauthenticated.
def Djoa(cb2A=None): N8wy = HBzi.youtube.service.YouTubeService() N8wy.ssl = True N8wy.client_id = k5i4.get_application_id() rdBr.run_on_appengine(N8wy, store_tokens=False, single_user_mode=True, deadline=E4Vc.HTTP_TIMEOUT) if cb2A is not None: N8wy.SetAuthSubToken(cb2A) N8wy.developer_k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d3LM():\n Vt89 = e68_(access_token=eWMI(), user_agent='insta-python/1.0')\n return Cc7Y(McQx, F6_B, http=Vt89.authorize(OBHh.Http()))", "def md9v(YKHO):\n Hy7s.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'\n Zk9Q = 'youtube'\n clva = 'v3'\n CK6C = 'client_secret.json'\n uC2a = ['https://w...
[ "0.7734833", "0.6910729", "0.6516441", "0.6358892", "0.6297741", "0.6276016", "0.59172475", "0.5840009", "0.5821198", "0.57425606", "0.56856525", "0.5668516", "0.56614125", "0.56166357", "0.55996644", "0.55857563", "0.5579317", "0.5568299", "0.55654055", "0.55482703", "0.5535...
0.82371205
0
Determines whether there's an embeddable media content element.
def KROC(H39R): if H39R: for nCig in H39R: if nCig.extension_attributes: format = nCig.extension_attributes.get('{http://gdata.youtube.com/schemas/2007}format', '') if format == '5': return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rWrZ(YKHO) -> bool:\n return YKHO.parent.omtype != ''", "def Ij5w(YKHO):\n try:\n return YKHO._references_embedded_audio_video(YKHO.body.children)\n except:\n pass\n return False", "def ujgY(YKHO, GPtr):\n GPtr = YKHO._TargetConfig(GPtr)\n Q1PJ = YKHO._Setting(('VCManifestTo...
[ "0.67357916", "0.66758645", "0.64559346", "0.638244", "0.632978", "0.62961125", "0.6285664", "0.6116395", "0.6100954", "0.6086695", "0.6067993", "0.6005737", "0.5990054", "0.59851503", "0.59336036", "0.59325916", "0.59325916", "0.58951765", "0.58609366", "0.5824924", "0.58090...
0.78945583
0
Get list of supported activation functions for the hidden layers.
def NlUQ(YKHO): return ['relu', 'identity', 'tanh', 'logistic']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gS9u(_mmv: list):\n DwQQ = {'relu': QZir, 'tanh': madw, 'sigmoid': m1Hg, 'linear': z8o0, 'softmax': N93T}\n aese = []\n for JfyU in _mmv:\n if isinstance(JfyU, str):\n aese.append(DwQQ[JfyU]())\n else:\n ChBc(JfyU)\n aese.append(JfyU)\n return aese", ...
[ "0.718691", "0.71370214", "0.6989", "0.6661077", "0.64614195", "0.64073086", "0.6402812", "0.63672894", "0.62703824", "0.6196497", "0.6114367", "0.60928255", "0.6025138", "0.5987848", "0.5967565", "0.5879747", "0.58793855", "0.5833441", "0.582049", "0.5790753", "0.5769241", ...
0.83890027
0
Returns the input GeoJSON geometry with windings corrected. A GeoJSON polygon should follow the righthand rule with respect to the area it bounds, ie exterior rings are CCW and holes are CW. Note that the input geometry may be modified in place (case of a dict).
def CqcH(Fw8z): if FyGY(Fw8z): return Fw8z J1TN = False if isinstance(Fw8z, str): Fw8z = qQXR.loads(Fw8z) J1TN = True if not isinstance(Fw8z, dict) or 'type' not in Fw8z: raise ValueError('Invalid GeoJSON geometry.') def vQ_B(jNOo): """Modifies in place the c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FyGY(Fw8z):\n if isinstance(Fw8z, str):\n Fw8z = qQXR.loads(Fw8z)\n if not isinstance(Fw8z, dict) or 'type' not in Fw8z:\n raise ValueError('Invalid GeoJSON geometry.')\n\n def Rbjk(jNOo):\n V2ak = jNOo[0]\n if not GQo9.LinearRing(V2ak).is_ccw:\n return False\n ...
[ "0.68751305", "0.6122691", "0.5949932", "0.5940575", "0.5938758", "0.59083754", "0.5867911", "0.58438873", "0.58411586", "0.5823379", "0.58177924", "0.5808604", "0.5794645", "0.57789487", "0.5771653", "0.5756409", "0.5748352", "0.5729109", "0.56954634", "0.5676751", "0.566536...
0.78786474
0
Returns the approximate area of a ring on earth surface (m^2).
def qgqa(fAC5, nwpL): if len(fAC5) != len(nwpL): raise ValueError('Inconsistent inputs') JCQV = len(fAC5) if fAC5[0] == fAC5[-1] and nwpL[0] == nwpL[-1]: JCQV -= 1 fAC5 = oyIN.radians(fAC5[:JCQV]) nwpL = oyIN.radians(nwpL[:JCQV]) if JCQV < 3: return 0.0 or8S = oyIN.ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAdl(YKHO):\n f0tD = O05v * YKHO.radius * YKHO.radius\n return '%.2f' % f0tD", "def f0tD(YKHO):\n return 4 * mM0K * YKHO.radius ** 2", "def f0tD(YKHO):\n return YKHO.radius ** 2 * mM0K", "def drdQ(YKHO):\n Mkmy = YKHO.getRadius()\n FnSF = epAf.pi * Mkmy ** 2\n return FnSF", "def dr...
[ "0.7280391", "0.727923", "0.7264659", "0.72598153", "0.72598153", "0.7200023", "0.7200023", "0.7200023", "0.7199608", "0.71971613", "0.71971613", "0.7193541", "0.7193541", "0.7146844", "0.7119518", "0.7104872", "0.7098377", "0.70964193", "0.70964193", "0.70964193", "0.7092250...
0.7134329
14
Returns the approximate area of a geometry on earth (in km2).
def joKw(Fw8z, Z88V=False): Fw8z = eres(Fw8z) if isinstance(Fw8z, GQo9.Point) or isinstance(Fw8z, GQo9.LineString) or isinstance(Fw8z, GQo9.LinearRing): return 0.0 elif isinstance(Fw8z, GQo9.Polygon): return qgqa(Fw8z.exterior.xy[1], Fw8z.exterior.xy[0]) - sum((qgqa(es0W.xy[1], es0W.xy[0]) f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAdl(zn0c):\n bNKA = PkKV.Transformer.from_crs('epsg:4326', 'esri:54009', always_xy=True).transform\n bk_f = SZFh(bNKA, zn0c['geometry'])\n XXhO = bk_f.area / 1000000.0\n return XXhO", "def sAdl(YKHO):\n from mapping.geotools.coordtrans import WGS84, GGL_MERCATOR\n SZFh = BYPk.CoordinateTra...
[ "0.7570198", "0.7377081", "0.6991756", "0.698806", "0.6982524", "0.694502", "0.6915436", "0.6870768", "0.6822367", "0.68023276", "0.6776522", "0.66882825", "0.66762763", "0.6643086", "0.6614936", "0.65805143", "0.65686804", "0.6549242", "0.6526304", "0.65262944", "0.65096724"...
0.0
-1
Gets the created of this InvoiceChargeRequest.
def _EYN(YKHO): return YKHO._created
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LLsy(YKHO, QePW, kpLs=None):\n T6Z0 = '/Charges'\n RGYk = y8cn.base_uri\n RGYk += T6Z0\n vgAy = fPb2.clean_url(RGYk)\n kkzV = {'accept': 'application/json', 'content-type': 'application/json; charset=utf-8', 'idempotency-key': kpLs}\n N0q9 = YKHO.http_client.post(vgAy, headers=kkzV, parameter...
[ "0.63403773", "0.5851928", "0.5780973", "0.57052875", "0.56679946", "0.5622563", "0.56169343", "0.5602867", "0.55947214", "0.55947214", "0.55947214", "0.55339706", "0.54629344", "0.54338145", "0.54334277", "0.5419363", "0.54025924", "0.5373155", "0.5347981", "0.5347981", "0.5...
0.56317514
9
Sets the created of this InvoiceChargeRequest.
def _EYN(YKHO, _EYN): YKHO._created = _EYN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _EYN(YKHO, _EYN):\n if YKHO._configuration.client_side_validation and _EYN is None:\n raise ValueError('Invalid value for `created`, must not be `None`')\n YKHO._created = _EYN", "def _EYN(YKHO, _EYN: int):\n YKHO._created = _EYN", "def _EYN(YKHO, _EYN):\n YKHO._created = _EYN", "def _...
[ "0.6140335", "0.5987628", "0.597657", "0.596371", "0.59503263", "0.58491004", "0.5775403", "0.5750819", "0.5711727", "0.5699313", "0.56922305", "0.56922305", "0.56922305", "0.56922305", "0.56843054", "0.56843054", "0.56843054", "0.56843054", "0.56843054", "0.56843054", "0.568...
0.5989655
6
Gets the include_aggregated of this InvoiceChargeRequest.
def um_A(YKHO): return YKHO._include_aggregated
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def um_A(YKHO, um_A):\n YKHO._include_aggregated = um_A", "def YBft(YKHO):\n return YKHO._includes", "def SZS3(YKHO):\n return YKHO._include_invoiced_charges_only", "def pPKh(YKHO):\n return YKHO._taxes_included", "def IUon(YKHO):\n return YKHO.__include", "def IUon(YKHO):\n return YKHO...
[ "0.70421815", "0.5784785", "0.57800364", "0.55442953", "0.54040927", "0.54040927", "0.53453046", "0.52307355", "0.5189853", "0.51650316", "0.5120622", "0.51193404", "0.51143414", "0.50687975", "0.50537324", "0.5007036", "0.49851227", "0.49774686", "0.4952781", "0.49347454", "...
0.7790218
0
Sets the include_aggregated of this InvoiceChargeRequest.
def um_A(YKHO, um_A): YKHO._include_aggregated = um_A
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def um_A(YKHO):\n return YKHO._include_aggregated", "def SZS3(YKHO, SZS3):\n YKHO._include_invoiced_charges_only = SZS3", "def ChPN(YKHO, ChPN):\n YKHO._include_parentdag = ChPN", "def tFgB(YKHO, tFgB):\n YKHO._include_affiliate = tFgB", "def LR0Q(YKHO, LR0Q):\n YKHO._include_order = LR0Q", ...
[ "0.67170817", "0.5435787", "0.53379506", "0.52411467", "0.5142292", "0.5123191", "0.5032533", "0.4975607", "0.49223694", "0.4853722", "0.48533797", "0.48088422", "0.47608978", "0.47608978", "0.47490212", "0.47142056", "0.47015905", "0.4675624", "0.4603699", "0.45904902", "0.4...
0.82869077
0
Gets the invoice_state of this InvoiceChargeRequest.
def wOsD(YKHO): return YKHO._invoice_state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO, YEnM):\n wspz = dict(aVkO.INVOICE_STATES)\n return wspz[YEnM.state]", "def QTBn(YKHO):\n if YKHO.balance >= 0:\n if YKHO.invoiced_balance == 0 and YKHO.transactions_balance == 0:\n return ZBsB.INVOICE_STATE_REFUNDED\n return ZBsB.INVOICE_STATE_PAID\n return ZBs...
[ "0.6578788", "0.6441185", "0.62037086", "0.6159427", "0.570305", "0.570305", "0.5681896", "0.5492538", "0.5489606", "0.5487373", "0.54727423", "0.5451314", "0.5451314", "0.5396525", "0.53950304", "0.53950304", "0.53950304", "0.5370816", "0.5370816", "0.5370816", "0.5370816", ...
0.7912142
0
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.8641601", "0.85101396", "0.7854588", "0.77447397", "0.7712095", "0.7697975", "0.7660445", "0.76389617", "0.76230335", "0.7608357", "0.7608357", "0.7608357", "0.7607762", "0.7600412", "0.75866044", "0.7583521", "0.75721645", "0.7569367", "0.7540305", "0.7540305", "0.7528848...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Function to generate random password for user
def ikbr(Vt89): return Vt89.generate_random_password()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ikbr(CBIr):\n return mv1M.generate_random_password()", "def t4Un():\n return mv1M.objects.make_random_password()", "def Ywt8():\n return GLL2(tuKI.randint(8, 16), 1, 1, 1)", "def ikbr():\n return ''.join((jxbx().choice(tcl1 + BHGE) for bGrB in range(8)))", "def Ywt8():\n w5bg = C1SZ + BH...
[ "0.8748986", "0.87479687", "0.8652827", "0.85763335", "0.84432274", "0.8425169", "0.8415229", "0.84081715", "0.838859", "0.836005", "0.8357172", "0.82415783", "0.82118255", "0.8211491", "0.8128529", "0.7972906", "0.7936729", "0.79252005", "0.7924662", "0.79181594", "0.789202"...
0.79248416
18
Sets all properties using the supplied dictionary of name/value pairs
def nmXd(YKHO, QCJj): YKHO.properties = QCJj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mjGX(YKHO, T3PT):\n for G1Hx, Ty9i in T3PT.items():\n if hasattr(YKHO, G1Hx):\n try:\n setattr(YKHO, G1Hx, Ty9i)\n except AttributeError:\n getattr(YKHO, G1Hx)._set_props_from_dict(Ty9i)", "def nmXd(YKHO, hkxX: Dict[str, Any]) -> None:\n YKHO.p...
[ "0.7606178", "0.7402381", "0.72062445", "0.7149655", "0.7149655", "0.71245676", "0.710966", "0.70987064", "0.70987064", "0.7063682", "0.7063682", "0.70210516", "0.70084316", "0.6969684", "0.6962085", "0.69360894", "0.69300896", "0.69219327", "0.69219327", "0.68942976", "0.689...
0.74988693
1
Set the deadline (due) date using the supplied date object
def LZVq(YKHO, KFmk): YKHO.deadline = KFmk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iZw5(YKHO, _c1T):\n YKHO.deadline = _c1T", "def RpPh(YKHO, iJAg):\n YKHO.__due_date = iJAg", "def uKC7(YKHO, uKC7):\n YKHO._date_due = uKC7", "def uKC7(YKHO, uKC7):\n YKHO._date_due = uKC7", "def uKC7(YKHO, uKC7):\n YKHO._date_due = uKC7", "def YzvF(YKHO, YzvF):\n if YzvF and (not i...
[ "0.81377995", "0.77876335", "0.7694838", "0.7694838", "0.7694838", "0.75849", "0.74194705", "0.74194705", "0.74194705", "0.74194705", "0.72596437", "0.7143347", "0.70999855", "0.69230914", "0.6871611", "0.68000567", "0.67918354", "0.6767165", "0.66432494", "0.6618447", "0.661...
0.8147887
0
r"""Test that an error is raised if a wrong basis set name is entered.
def FSK3(YKHO, rmc3, Fw8z): with trZe.raises(ValueError, match='Currently, the only supported basis sets'): pG2k.Molecule(rmc3, Fw8z, basis_name='6-3_1_g')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j681(YKHO):\n with YKHO.assertRaises(ValueError):\n Z9rn = yoBg.from_database('___')", "def hAeq():\n P8Mx = {'svr__C': [0.1, 1.0], 'est_name': ['svc']}\n with trZe.raises(ValueError):\n _msO(P8Mx, ['svr', 'dtc'])", "def tFxl(YKHO):\n with YKHO.assertRaises(ValueError):\n I...
[ "0.6800553", "0.6788652", "0.67788917", "0.6747712", "0.6739743", "0.6697623", "0.66516894", "0.66283464", "0.66149837", "0.6591863", "0.658938", "0.65682435", "0.6562776", "0.6533984", "0.65234506", "0.6499048", "0.6496562", "0.6451873", "0.6443536", "0.64409465", "0.6433624...
0.7246585
0
r"""Test that an error is raised if a wrong/notsupported atomic symbol is entered.
def EakD(YKHO, rmc3, Fw8z): with trZe.raises(ValueError, match='are not supported'): pG2k.Molecule(rmc3, Fw8z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N_nG(YKHO):\n with TpAC.assert_raises(Bx6I.InvalidSymbolError):\n YKHO.nfa.transitions['q1']['c'] = {'q2'}\n YKHO.nfa.validate()", "def mJzQ(YKHO):\n with TpAC.assert_raises(Bx6I.RejectionException):\n YKHO.dfa.read_input('01112')", "def mJzQ(YKHO) -> None:\n with YKHO.assertR...
[ "0.7346524", "0.72726136", "0.72616726", "0.7259505", "0.71936715", "0.7152245", "0.6970553", "0.69245577", "0.68212587", "0.67439467", "0.67431784", "0.6739761", "0.67263544", "0.66626513", "0.66267467", "0.66214323", "0.6613857", "0.65906364", "0.65756273", "0.6516828", "0....
0.74622977
0
r"""Test that the molecule object contains correct molecular data.
def gRAE(YKHO, rmc3, Fw8z, XQDe, Uk1E, rgSl): N9D1 = pG2k.Molecule(rmc3, Fw8z) assert N9D1.n_electrons == XQDe assert N9D1.n_orbitals == Uk1E assert N9D1.nuclear_charges == rgSl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def il2U(YKHO):\n IoiK = UnlI(mol_text='test_molecule', mol_property_val=42, mol_descriptor_val=[1, 2, 3])\n YKHO.assertEqual(IoiK.mol_text, 'test_molecule', 'Expected mol_text attribute to be set.')\n YKHO.assertEqual(IoiK.mol_property_val, 42, 'Expected mol_property_val to be set.')\n YKHO.assertIsIn...
[ "0.7495558", "0.7423561", "0.72024685", "0.71139014", "0.71099037", "0.6947098", "0.68996406", "0.6809428", "0.67999345", "0.6785653", "0.67764854", "0.67457455", "0.67245615", "0.6664891", "0.65378416", "0.64916885", "0.64840174", "0.64598304", "0.6457849", "0.63968056", "0....
0.7793434
0
r"""Test that the molecule object contains the correct basis set and nondefault basis data for a given molecule.
def kZ67(YKHO, rmc3, Fw8z, vC9B, Cwt5, lk9W, Mkmy, UlWi): trZe.importorskip('basis_set_exchange') N9D1 = pG2k.Molecule(rmc3, Fw8z, load_data=UlWi, normalize=False) assert set(map(type, N9D1.basis_set)) == {pG2k.BasisFunction} assert N9D1.l == vC9B assert oyIN.allclose(N9D1.alpha, Cwt5) assert oy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CLkc(YKHO, rmc3, Fw8z, g8kQ, ynOg):\n N9D1 = pG2k.Molecule(rmc3, Fw8z)\n assert N9D1.n_basis == g8kQ\n assert oyIN.allclose(N9D1.basis_data, ynOg)", "def FSK3(YKHO, rmc3, Fw8z):\n with trZe.raises(ValueError, match='Currently, the only supported basis sets'):\n pG2k.Molecule(rmc3, Fw8z, ba...
[ "0.75932455", "0.71189994", "0.69443053", "0.68281126", "0.65704715", "0.6450554", "0.644106", "0.63339967", "0.6305735", "0.62219495", "0.6212715", "0.61746204", "0.61746204", "0.6174033", "0.6114989", "0.6107194", "0.6067551", "0.6046342", "0.6044123", "0.60392594", "0.6025...
0.6580471
4
Returns auc score for binary classification.
def zUeS(YKHO, CGdL, mSWK, uxJJ=1): Ylbp = YKHO.infer(CGdL)[:, uxJJ] return zUeS(mSWK, YKHO.infer(CGdL)[:, uxJJ], pos_label=uxJJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zUeS(YKHO, EcVT, fuBA):\n if len(YKHO.classes) != 2:\n raise ValueError('This method can only supports binary classification ')\n try:\n nwKK = YKHO.predictSoft(EcVT)[:, 1]\n except (AttributeError, IndexError):\n nwKK = YKHO.predict(EcVT)\n exwG, Csk6 = dqdL(nwKK).shape\n n...
[ "0.8243382", "0.8183501", "0.8152314", "0.7744483", "0.7708377", "0.76529884", "0.76271784", "0.76182634", "0.76169777", "0.7606524", "0.7556106", "0.7556106", "0.7549893", "0.7513209", "0.7470737", "0.74667865", "0.7422637", "0.7416473", "0.74107355", "0.74086064", "0.738931...
0.7655717
5
Determines if the modules is tilted and moves the ball accordingly if there isnt a wall in the way
def thtg(): global ballx global bally Jvq9 = Umnm.get_accelerometer_raw() EcVT = Jvq9['x'] fuBA = Jvq9['y'] if EcVT > gwAu and jVyK < 7: if TxAA[R8Vc][jVyK + 1] != 1: jVyK += 1 if EcVT < -gwAu and jVyK > 0: if TxAA[R8Vc][jVyK - 1] != 1: jVyK -= 1 i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BZN_(YKHO):\n YKHO.position[0] += YKHO.velocity[0]\n YKHO.position[1] += YKHO.velocity[1]\n if YKHO.position[0] < 15 or YKHO.position[0] > 785:\n YKHO.velocity[0] *= -1\n if YKHO.position[1] < 15 or YKHO.position[1] > 785:\n YKHO.velocity[1] *= -1\n try:\n if YKHO.screen.get...
[ "0.667982", "0.6605202", "0.6553855", "0.6509814", "0.6509814", "0.6475773", "0.6439246", "0.64339966", "0.63953376", "0.6363484", "0.63319606", "0.632764", "0.6325029", "0.6306454", "0.6302843", "0.63003266", "0.6296487", "0.6276008", "0.62717545", "0.62622154", "0.624856", ...
0.64068633
8
Returns a pseudorandom number for use in protecting from replay attacks from the timeserver (or an intervening party).
def DjU3(YKHO): return tuKI.randint(WkjU.formats.NONCE_LOWER_BOUND, WkjU.formats.NONCE_UPPER_BOUND)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aw0i():\n return '%s' % xORj(str(FdZ9())).hexdigest()", "def sZqm(YKHO):\n return tuKI.randint(10000000, HwRy.maxint)", "def EZJP():\n return tuKI.getrandbits(64)", "def E_mP():\n return gdSC(gCuF.OTP_LENGTH_OF_OTP)", "def Vwbk():\n return tuKI.getrandbits(31) * tuKI.choice([-1, 1])", ...
[ "0.77719843", "0.76491815", "0.75186664", "0.74013215", "0.7334059", "0.727168", "0.71672106", "0.7147438", "0.713555", "0.7131595", "0.71138096", "0.7100109", "0.7099939", "0.7082132", "0.70535916", "0.7053356", "0.70452017", "0.70344096", "0.6987883", "0.6972014", "0.697201...
0.671149
63
Create C++ decltype statement
def Bpky(Q6kx): if Lm1b(Q6kx): return 'std::vector<decltype({0})>'.format(fX1C(Q6kx)) else: return 'decltype({0})'.format(fX1C(Q6kx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UcZL(En3Y, nT2z, iVRZ):\n l5Ny, bGrB, xJw5 = l8JA(En3Y, nT2z, iVRZ)\n if xJw5 < 0:\n return False\n if unF8('\\\\bdecltype\\\\s*$', l5Ny[0:xJw5]):\n return True\n return False", "def llZH():\n Wxnj = TI0e.dedent('\\n private static Type GetParameterType(object obj)\\n ...
[ "0.60581166", "0.5394778", "0.5328426", "0.5206993", "0.51023704", "0.5069994", "0.5047986", "0.5043391", "0.5011669", "0.5006274", "0.4926412", "0.4924995", "0.49056894", "0.48947284", "0.48838633", "0.48834187", "0.4835487", "0.48248067", "0.48140135", "0.48096526", "0.4804...
0.72180545
0
If an overflow shelf exists among our shelves, try to rearrange orders to their permanent shelf
def Tf1e(YKHO): if st4R in YKHO.client.shelves: for T4Wy in YKHO.client.iterate_all_orders(st4R): YKHO._try_to_move_to_permanent_shelf(T4Wy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uoka(YKHO, T4Wy: Order):\n stkY = T6FA.Lock()\n with stkY:\n if YKHO._shelf_has_space(T4Wy.temp):\n YKHO.client.pop_by_id(T4Wy.id)\n YKHO.client.put(T4Wy.temp, T4Wy)", "def zcJB(YKHO):\n if YKHO.temperature != 'overflow':\n return False\n for zJ7I, T4Wy in YKHO...
[ "0.646995", "0.6424795", "0.6381622", "0.6006177", "0.58559275", "0.5738863", "0.5520767", "0.54997647", "0.5497915", "0.5449009", "0.54440683", "0.539398", "0.5384384", "0.5372515", "0.53197", "0.5297323", "0.52694833", "0.5269198", "0.52511936", "0.523377", "0.5229116", "...
0.81151384
0
Runs forward propagation from given parameters and input matrix X to compute the model's predictions.
def QrGg(EcVT, SGPK): huI_ = oyIN.dot(SGPK['W1'], EcVT) + SGPK['b1'] i8nr = oyIN.tanh(huI_) nuXX = oyIN.dot(SGPK['W2'], i8nr) + SGPK['b2'] vo6s = m1Hg(nuXX) wyyA = {'Z1': huI_, 'A1': i8nr, 'Z2': nuXX, 'A2': vo6s} return (vo6s, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uLkJ(YKHO, input):\n YKHO.predict(input)", "def YEmv(EcVT, NArs):\n vo6s, bGrB = NbB8(EcVT, NArs)\n return vo6s", "def KVH6(YKHO, WKvO):\n YKHO.x = WKvO\n return YKHO.predict(WKvO)", "def RHoK(YKHO, EcVT: np.ndarray) -> oyIN.ndarray:\n return yvT9", "def lu_y(EcVT, fuBA, SGPK):\n r...
[ "0.71261513", "0.7035231", "0.70216733", "0.68182933", "0.67959553", "0.6792766", "0.67659384", "0.6754194", "0.67436004", "0.673751", "0.67076224", "0.6704389", "0.6704318", "0.6699034", "0.6676966", "0.6673466", "0.66662854", "0.66413677", "0.6615106", "0.6600211", "0.65900...
0.0
-1
Get the number of running SciDB instances
def gqbb(): import scidb T1Sd = scidb.iquery() xDcj = T1Sd.queryAFL("list('instances')") qvGZ = len(xDcj.splitlines()) - 1 qvGZ = list(range(qvGZ)) return qvGZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D4CR():\n return len(lbzt())", "def qvGZ(YKHO) -> int:\n return YKHO._call_java('numInstances')", "def qvGZ(YKHO) -> int:\n return YKHO._call_java('numInstances')", "def lHwF(YKHO):\n xDcj = YKHO.sdb.queryAFL(\"list('instances')\")\n YKHO.SciDBInstances = len(xDcj.splitlines()) - 1", "de...
[ "0.7837809", "0.75744236", "0.75744236", "0.7396131", "0.7284172", "0.7174375", "0.7140099", "0.70316833", "0.70243937", "0.70136684", "0.6930537", "0.6839782", "0.6839782", "0.68394846", "0.68150175", "0.6791243", "0.67697954", "0.67588645", "0.67586744", "0.67438084", "0.67...
0.85906893
0
Indicate the area to be represented to show the squares.
def y343(YKHO, rdlD: np.array, fvDH: np.array) -> set[tuple[int, int]]: return {(int(WKvO), int(LVAh)) for WKvO, LVAh in oyIN.transpose(YKHO.contains(oyIN.array([rdlD, fvDH])).nonzero())}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n pass", "def f0tD(YKHO):\n return YKHO.h * YKHO.w", "def FnSF(YKHO):\n ...", "def f0tD(YKHO):\n raise NotImplementedError", "def f0tD(YKHO):\n raise NotImplementedError", "def f0tD(YKHO):\n raise NotImplementedError", "def f0tD(YKHO):\n return super().area()", "d...
[ "0.78071535", "0.7509324", "0.74003845", "0.736366", "0.736366", "0.736366", "0.7295752", "0.7295752", "0.7209626", "0.71660507", "0.71568364", "0.71568364", "0.71568364", "0.71568364", "0.71364266", "0.71364266", "0.71239454", "0.7096822", "0.70939034", "0.7086998", "0.70869...
0.0
-1
Returns which of the two specs is more specific. This is useful when a target matches multiple specs, and we want to associate it with the "most specific" one, which will make the most intuitive sense to the user.
def o476(Z_wo: Optional[AddressSpec], Flw1: Optional[AddressSpec]) -> SEQu: if Z_wo is None and Flw1 is None: raise ValueError('internal error: both specs provided to more_specific() were None') return YWvJ(SEQu, Z_wo if Cd4a[type(Z_wo)] < Cd4a[type(Flw1)] else Flw1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hqz9(jzdc, Fg_i):\n if jzdc is Fg_i:\n return jzdc\n if jzdc is None or Fg_i is None:\n return jzdc or Fg_i\n hckV = lambda r8hN: r8hN.get('r2_score', r8hN.get('f1_score', 0))\n Pta0 = hckV(jzdc.test.metrics)\n b6KK = hckV(Fg_i.test.metrics)\n if Pta0 >= b6KK * 1.05:\n re...
[ "0.5277132", "0.51603156", "0.5150143", "0.5138997", "0.5119815", "0.51110816", "0.5079896", "0.5042345", "0.4987491", "0.49607652", "0.49437898", "0.49416938", "0.4921971", "0.49179155", "0.49157467", "0.4914934", "0.49024284", "0.48979416", "0.48943844", "0.4894266", "0.488...
0.56585395
0
Normalize using zscore standardization
def hWT_(nPrm: DataFrame): B9EC = nPrm.iloc[:, :-1].mean() NdnM = nPrm.iloc[:, :-1].std() for d6pt in B9EC.index: nPrm[d6pt] = nPrm[d6pt].apply(lambda WKvO: (WKvO - B9EC[d6pt]) / NdnM[d6pt]) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l9RK(YKHO):\n YKHO._norm_data = qX3H(YKHO.data, axis=1)", "def aJbZ(EcVT):\n yGTL = EcVT.mean(0)\n _sef = EcVT.std(0)\n EcVT = (EcVT - yGTL) / _sef\n return EcVT", "def Q7gV(nPrm):\n for iVRZ in OePT:\n if oyIN.std(nPrm[iVRZ]) != 0:\n nPrm[iVRZ] = round((nPrm[iVRZ] - oyI...
[ "0.783668", "0.7680705", "0.7613112", "0.75257504", "0.746156", "0.73458356", "0.72427887", "0.7232596", "0.7223737", "0.7063835", "0.70135814", "0.6981621", "0.6981621", "0.69750684", "0.69049877", "0.6897622", "0.68960494", "0.6881316", "0.6879607", "0.68613744", "0.6837671...
0.6473627
56
Serialize an object to JSON written to a file object.
def ChRH(YEnM: t.Any, ytgA: t.IO[str], P4t4: t.Optional['Flask']=None, **B2fa: t.Any) -> None: k3jT(B2fa, app=P4t4) tZ2K = B2fa.pop('encoding', None) Jb9f = tZ2K is not None try: ytgA.write('') except TypeError: Jb9f = True ytgA = xDSY.TextIOWrapper(ytgA, tZ2K or 'utf-8') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ncJT(object, nUeQ):\n with open(nUeQ, 'wb') as hlel:\n qQXR.dump(object, hlel)", "def M8gv(YEnM, Ux0P):\n with open(Ux0P, 'w') as nUeQ:\n qQXR.dump(YEnM, nUeQ, cls=uXd0)", "def PF_N(UxL2, Ux0P):\n with open(Ux0P, 'w') as PFCt:\n PFCt.write(qQXR.dumps(UxL2))", "def PF_N(UxL2,...
[ "0.85209495", "0.82509804", "0.81563663", "0.815276", "0.815276", "0.8134474", "0.8116497", "0.81142604", "0.8106525", "0.8089293", "0.80891794", "0.808324", "0.8082816", "0.80790275", "0.8074402", "0.8072845", "0.8072631", "0.806563", "0.8059855", "0.80595726", "0.8057939", ...
0.0
-1
Deserialize an object from JSON read from a file object.
def tyeH(ytgA: t.IO[str], P4t4: t.Optional['Flask']=None, **B2fa: t.Any) -> a1PO.Any: aRMD(B2fa, app=P4t4) tZ2K = B2fa.pop('encoding', None) if tZ2K is not None: qmLP.warn("'encoding' is deprecated and will be removed in Flask 2.1. The file must be text mode, or binary mode with UTF-8 bytes.", Depre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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)\n return YbAN", "def pktP(Emd4, jr0q):\n with open(jr0q, 'r') as eHNT:...
[ "0.7906217", "0.7847059", "0.766506", "0.7624684", "0.7622855", "0.7562379", "0.75571364", "0.7548739", "0.7534479", "0.7515411", "0.74255806", "0.74123883", "0.74080306", "0.7395157", "0.73883563", "0.73828346", "0.73250186", "0.73226434", "0.73215675", "0.7319054", "0.73049...
0.0
-1
Creates a function that restores a model from checkpoint.
def JPqq(V1C0, jkyf): if ZylS.gfile.IsDirectory(V1C0): V1C0 = ZylS.train.latest_checkpoint(V1C0) if not V1C0: raise ValueError('No checkpoint file found in: %s' % V1C0) def d6ro(cb_Q): ZylS.logging.info('Loading model from checkpoint: %s', V1C0) jkyf.restore(cb_Q, V1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPqq(YKHO, pkan=None):\n with ZylS.device(YKHO._device):\n CrBO = ZylS.constant(ZylS.zeros((5, 37, 37, YKHO._num_input_channels)))\n GFZq = YKHO.call(CrBO, CrBO, training=False)\n V1C0 = gzes(YKHO._exp_dir, 'checkpoints')\n if pkan is None:\n V1C0 = ZylS.train.latest_c...
[ "0.76821375", "0.7378293", "0.73489946", "0.7242949", "0.72115993", "0.7191559", "0.7111468", "0.70994276", "0.70529884", "0.70529884", "0.7039881", "0.6966451", "0.6959307", "0.6893425", "0.6889905", "0.6885407", "0.6885407", "0.68588156", "0.6830858", "0.6818861", "0.680043...
0.7030107
11
Load the model from a graph
def odjs(V1C0): ZylS.logging.info('Building model.') jkyf = ZylS.train.Saver() return JPqq(V1C0, jkyf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(pNZh, Ux0P):\n global g_from\n global g_to\n Lgud = []\n sGy6 = []\n Fg_i = n3Kt.load_and_instanciate(Ux0P)\n if pNZh:\n Mi4L(Lgud, sGy6)\n n3Kt.launch_all([Fg_i[mWFP] for mWFP in Fg_i])", "def uyMl():\n global model\n with open(FZKc, 'r') as wM3v:\n YlGy = wM3v....
[ "0.80994886", "0.7592853", "0.75183827", "0.74516034", "0.74110115", "0.7403056", "0.7399306", "0.7355761", "0.72866565", "0.7267476", "0.72177315", "0.7197821", "0.7196713", "0.71916825", "0.71916825", "0.717386", "0.7163038", "0.71523905", "0.7150488", "0.7149718", "0.71497...
0.0
-1
Initializes bias variable for shape
def KR18(YKHO, ROpF): return ZylS.Variable(ZylS.constant(0.0, shape=ROpF, dtype=ZylS.float32), trainable=True, name=RKfk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KMH9(YKHO, ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.3)\n return ZylS.Variable(RqgG)", "def Y7ph(ROpF, ECSy=0.025):\n RqgG = ZylS.constant(ECSy, shape=ROpF)\n return ZylS.Variable(RqgG)", "def Y7ph(YKHO, ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG...
[ "0.7998165", "0.79731053", "0.7914372", "0.78783125", "0.7863495", "0.7803484", "0.7773546", "0.7757598", "0.7741008", "0.7737283", "0.77354354", "0.77354354", "0.7733208", "0.7707689", "0.7693081", "0.7693081", "0.7693081", "0.7693081", "0.7693081", "0.7693081", "0.7693081",...
0.84829056
0
initialize square objects, sets size equal to 0 by default, checks if size has the correct type and value
def FIMM(YKHO, zNig=0): if type(zNig) is not int: raise TypeError('size must be an integer') elif zNig < 0: raise ValueError('size must be >= 0') else: YKHO.__size = zNig
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Fyji):\n YKHO.__size = Fyji", "def FIMM(YKHO, zNig=0):\n if isinstance(zNig, int):\n if zNig >= 0:\n YKHO.__size = zNig\n else:\n raise ValueError('size must be >= 0')\n else:\n raise TypeError('size must be an integer')", "def FIMM(YKHO, zNig=...
[ "0.7989722", "0.71659476", "0.7113473", "0.7095447", "0.70512295", "0.7051126", "0.7047937", "0.7039112", "0.70311135", "0.6998902", "0.6976279", "0.6976279", "0.6976279", "0.6976279", "0.6976279", "0.6976279", "0.6976279", "0.69326925", "0.69310355", "0.69214845", "0.6909938...
0.70946234
4
returns the area of the square
def f0tD(YKHO): return YKHO.__size ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return YKHO._Square__size ** 2", "def f0tD(YKHO):\n return YKHO._Square__size ** 2", "def FmDM(HEZd):\n return HEZd ** 2", "def FmDM(HEZd):\n return HEZd * HEZd", "def FmDM(jzdc):\n return UEQj(jzdc, jzdc)", "def f0tD(TVTK, H2v2):\n return TVTK * H2v2", "def f0tD(YKH...
[ "0.8569916", "0.84120184", "0.8313621", "0.82946604", "0.8269834", "0.81422627", "0.81226385", "0.80982566", "0.8071737", "0.8071737", "0.80711794", "0.80357367", "0.802489", "0.8013477", "0.7996324", "0.7962912", "0.7958232", "0.79386556", "0.79386556", "0.79386556", "0.7922...
0.77041894
97
Construct an LayerNorm object.
def FIMM(YKHO, KR2F, tpio=-1): super(b9m4, YKHO).__init__(KR2F, eps=1e-12) YKHO.dim = tpio
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, t9fZ, u8tG):\n super(b9m4, YKHO).__init__()\n YKHO._epsilon = u8tG\n YKHO._scale = ZylS.get_variable('layer_norm_scale', [t9fZ], initializer=ZylS.ones_initializer())\n YKHO._bias = ZylS.get_variable('layer_norm_bias', [t9fZ], initializer=ZylS.zeros_initializer())", "def FIMM(YKHO, Mo6Q...
[ "0.7025179", "0.6904588", "0.6761451", "0.6678226", "0.6510496", "0.64016587", "0.62413704", "0.6190192", "0.6156568", "0.61523825", "0.61232305", "0.6074487", "0.60488194", "0.59988594", "0.5992238", "0.598967", "0.5958909", "0.5951516", "0.59233135", "0.5905131", "0.5900013...
0.6632692
4
Test exception handling for bad inputs.
def bpAi(YKHO): Mkmy = YKHO.runner.invoke(eLpg, ['test1', 'me', 'data/sample_triplets.jsonl'], input='1234\n1234\n') assert Mkmy.exception is None Mkmy = YKHO.runner.invoke(tq_1, ['all', '-s']) assert isinstance(Mkmy.exception, P4LZ) Mkmy = YKHO.runner.invoke(tq_1, ['lol']) assert isinstance(Mkm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bpAi(YKHO):\n pass", "def ssdO(YKHO):\n with YKHO.assertRaises(Exception):\n jXWM(123)\n with YKHO.assertRaises(Exception):\n Fho_(123)", "def w_ae(YKHO):\n raise ValueError", "def kltX(YKHO):\n YKHO.assertRaises(TypeError, Bguk.loads)\n YKHO.assertRaises(Bguk.Exception, B...
[ "0.7948787", "0.7938668", "0.7499349", "0.74486446", "0.74435246", "0.73710865", "0.7313341", "0.7292744", "0.7292744", "0.7205967", "0.7124769", "0.71120757", "0.7097851", "0.70413774", "0.7040989", "0.7038503", "0.7034758", "0.7034693", "0.6998833", "0.69815296", "0.6979258...
0.66663027
79
Creates the coordinate dictionary for the board, initialises pygame. It also blocks out some pygame events so the queue doesn't overflow from unneeded events such as MOUSEMOTION. It also setups attributes in board, connects to the server and shows the start screen.
def eCGt(YKHO): Tmuo() a9eO.init() a9eO.event.set_allowed([a9eO.MOUSEBUTTONDOWN, a9eO.QUIT]) YKHO.board.add_connection(YKHO.connection) YKHO.connection.sock.connect(YKHO.connection.server_address) YKHO.connection.form.run() YKHO.connection.connect_to_server() YKHO.show_start_screen() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afCo(YKHO):\n YKHO.populate_board()\n YKHO._background = a9eO.image.load('GUI/images/backgrounds/background2.jpg')\n YKHO._board_image = a9eO.image.load('GUI/images/board.jpg')\n YKHO._DISPLAY_SIZE = (1440, 770)\n YKHO._DISPLAY_COLOR = (110, 110, 110)\n YKHO._display = a9eO.display.set_mode(Y...
[ "0.7143037", "0.6721499", "0.6627848", "0.65872276", "0.6297762", "0.6294742", "0.6293686", "0.62929726", "0.6278337", "0.6248228", "0.62479234", "0.6242186", "0.62302154", "0.62208205", "0.6192872", "0.6187229", "0.6178351", "0.61761624", "0.61756086", "0.6170242", "0.616118...
0.7466337
0
Return the string module name of this process
def OlzY(TAVV): eOB9 = GnOn(TAVV) return gUs2.GetModuleFileNameEx(eOB9, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._module_name", "def ivvY(YKHO):\n return YKHO.module_name", "def LCet(YKHO):\n if hasattr(YKHO, 'module'):\n return YKHO.module.__name__\n return None", "def LCet(YKHO) -> str:\n return BfDw.to_valid_module_name(YKHO.name)", "def mWFP(Emd4):\n return h...
[ "0.82634306", "0.82361716", "0.8054796", "0.80083185", "0.794359", "0.78724074", "0.7830489", "0.7737166", "0.77001774", "0.7585233", "0.75286454", "0.7514789", "0.7509959", "0.7462156", "0.746207", "0.746207", "0.7448125", "0.7438614", "0.7423405", "0.74161106", "0.7409093",...
0.7738227
7
Asynchronously streams UserChannelInstance records from the API as a generator stream. This operation lazily loads records as efficiently as possible until the limit is reached. The results are returned as a generator, so this operation is memory efficient.
async def stream_async(YKHO, qoqK: Optional[int]=None, bNfU: Optional[int]=None) -> eZmq[ZJeT]: c5uu = YKHO._version.read_limits(qoqK, bNfU) B2Dn = await YKHO.page_async(page_size=c5uu['page_size']) return YKHO._version.stream_async(B2Dn, c5uu['limit'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def list_async(YKHO, qoqK: Optional[int]=None, bNfU: Optional[int]=None) -> x1iM[ZJeT]:\n return [AIu6 async for AIu6 in await YKHO.stream_async(limit=qoqK, page_size=bNfU)]", "def wOb_(YKHO, qoqK: Optional[int]=None, bNfU: Optional[int]=None) -> bDy6[ZJeT]:\n c5uu = YKHO._version.read_limits(qoqK, b...
[ "0.7511971", "0.72977847", "0.6495163", "0.6028971", "0.59875816", "0.5915833", "0.5801773", "0.5735298", "0.56631225", "0.5620594", "0.56026995", "0.5469087", "0.5460899", "0.53879577", "0.53001946", "0.52938855", "0.5283464", "0.5279668", "0.5279514", "0.527191", "0.5200458...
0.7914765
0
Lists UserChannelInstance records from the API as a list. Unlike stream(), this operation is eager and will load `limit` records into memory before returning.
def list(YKHO, qoqK: Optional[int]=None, bNfU: Optional[int]=None) -> x1iM[ZJeT]: return list(YKHO.stream(limit=qoqK, page_size=bNfU))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def list_async(YKHO, qoqK: Optional[int]=None, bNfU: Optional[int]=None) -> x1iM[ZJeT]:\n return [AIu6 async for AIu6 in await YKHO.stream_async(limit=qoqK, page_size=bNfU)]", "def list(Emd4, qoqK=None, Cmst=None):\n geh0 = lyzZ.get(Emd4.endpoint, params={'limit': qoqK, 'starting_after': Cmst})\n ...
[ "0.7850818", "0.6928691", "0.6884713", "0.68727106", "0.6575083", "0.64418817", "0.63429797", "0.6313514", "0.62785447", "0.6176492", "0.61633635", "0.60143816", "0.5846359", "0.58310974", "0.5819075", "0.5792712", "0.57360333", "0.5731043", "0.57258314", "0.57236093", "0.571...
0.82597727
0
The `model_fn` for TPUEstimator.
def JnVv(bySB, Crrw, Tuqy, NArs): Pha6 = bySB['input_ids'] qV0r = bySB['input_mask'] Uszf = bySB['segment_ids'] VNiV = bySB['label_ids'] vqPN = Tuqy == ZylS.estimator.ModeKeys.PREDICT if not vqPN: N77f, BBqg, zoT6 = YKHO.create_model(vqPN, Pha6, qV0r, Uszf, VNiV) Jel3 = PFuh.crea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZPn8(YKHO, bySB, Crrw, ND3i):\n oYbx = gnPz.fn_args(YKHO._model_fn)\n B2fa = {}\n GPtr = jth9.deepcopy(YKHO._config)\n NArs = jth9.deepcopy(YKHO._params)\n if 'labels' in oYbx:\n B2fa['labels'] = Crrw\n elif Crrw is not None:\n raise ValueError('model_fn does not take labels, bu...
[ "0.72370094", "0.71988195", "0.71065086", "0.70985", "0.7040259", "0.7040259", "0.6974867", "0.6932621", "0.6889297", "0.6779627", "0.6657413", "0.66275173", "0.66271424", "0.6592988", "0.6585159", "0.6548488", "0.65361303", "0.6486797", "0.648518", "0.64810926", "0.64255625"...
0.0
-1
Parse the given XML and use the document element to create a Python instance. xml_text An XML document. This should be data (Python 2 str or Python 3 bytes), or a text (Python 2 unicode or Python 3 str) in the L{pyxb._InputEncoding} encoding. default_namespace The L{pyxb.Namespace} instance to use as the default namesp...
def KA8b(k1P2, UyKZ=None, ePoz=None): if Aw3s.XMLStyle_saxer != Aw3s._XMLStyle: Mf7r = Aw3s.utils.domutils.StringToDOM(k1P2) return E91p(Mf7r.documentElement) if UyKZ is None: UyKZ = jFQi.fallbackNamespace() IjKD = Aw3s.binding.saxer.make_parser(fallback_namespace=UyKZ, location_base...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KA8b(k1P2, UyKZ=None, ePoz=None):\n if Aw3s.XMLStyle_saxer != Aw3s._XMLStyle:\n Mf7r = Aw3s.utils.domutils.StringToDOM(k1P2)\n return E91p(Mf7r.documentElement, default_namespace=UyKZ)\n if UyKZ is None:\n UyKZ = jFQi.fallbackNamespace()\n IjKD = Aw3s.binding.saxer.make_parser(fal...
[ "0.74060214", "0.73723525", "0.73723525", "0.73723525", "0.73723525", "0.73723525", "0.73723525", "0.73723525", "0.73723525", "0.73723525", "0.73723525", "0.73723525", "0.73327965", "0.7319287", "0.7319287", "0.7319287", "0.7319287", "0.7319287", "0.7319287", "0.7319287", "0....
0.73800844
1
Get all products from products.csv
def CxaC(): Ldyl = [] nUeQ = open('products.csv') for zFiD in nUeQ: HHea = zFiD.split(',') Lx3t = {'id': int(HHea[0]), 'name': HHea[1], 'price': float(HHea[2]), 'quantity': int(HHea[3]), 'season': HHea[4], 'type': HHea[5], 'sub_type': HHea[6], 'description': HHea[7].replace('\n', '')} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HND1():\n Ldyl = []\n eQSh = rLdf.read_csv('Data/products.csv')\n for d6pt, rdlD in eQSh.iterrows():\n XP5J = {}\n XP5J['id'] = rdlD['id']\n XP5J['name'] = rdlD['name']\n XP5J['department'] = rdlD['department']\n XP5J['aisle'] = rdlD['aisle']\n XP5J['price'] =...
[ "0.7740739", "0.72981143", "0.6753889", "0.6682065", "0.65854126", "0.65103513", "0.64951384", "0.64948756", "0.6484322", "0.64229894", "0.63803375", "0.6358329", "0.62707615", "0.6233755", "0.62172097", "0.61883384", "0.6188182", "0.6167562", "0.6163635", "0.61632144", "0.61...
0.80229354
0
Test case for users_post
def n6_B(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vuJy(YKHO):\n pass", "def vMeW(YKHO):\n pass", "def LABO(YKHO):\n pass", "def y0Of(YKHO):\n FvVY = wohN.post_list(YKHO.db, usernick='Mandible')\n YKHO.assertEqual(3, len(FvVY))\n FvVY = wohN.post_list(YKHO.db, usernick='jb@up.com')\n YKHO.assertEqual(0, len(FvVY))\n FvVY = wohN.po...
[ "0.7806916", "0.76655406", "0.7481757", "0.743728", "0.7341532", "0.7175586", "0.7123127", "0.71159214", "0.70756984", "0.7039124", "0.70236933", "0.70175046", "0.69966924", "0.6995579", "0.69850224", "0.69850224", "0.6948112", "0.69268996", "0.6847391", "0.6843611", "0.68072...
0.86888564
0
Return latitude value of the device.
def _UuI(YKHO) -> float: nPrm = YKHO.coordinator.data if 'gpsLatitude' in nPrm: return nPrm['gpsLatitude'] S0MI.warning('gpsLatitude not available in coordinator data %s', nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _UuI(YKHO):\n return YKHO._device.position['x']", "def _UuI(YKHO) -> float:\n return float(YKHO._mp_dict['lat'])", "def _UuI(YKHO):\n return YKHO._gps.latitude", "def _UuI(YKHO):\n return YKHO._vehicle.location.get('latitude')", "def _UuI(YKHO):\n QnmL = YKHO._lat_lon[0]\n return QnmL...
[ "0.84948385", "0.8280237", "0.8276124", "0.82405204", "0.82343274", "0.8184037", "0.8183589", "0.8171833", "0.8096438", "0.8073491", "0.80673325", "0.8048899", "0.8045055", "0.8042021", "0.8042021", "0.8042021", "0.8042021", "0.80388033", "0.80256957", "0.80256957", "0.802453...
0.80702454
10
Return longitude value of the device.
def fopC(YKHO) -> float: nPrm = YKHO.coordinator.data if 'gpsLongitude' in nPrm: return nPrm['gpsLongitude'] S0MI.warning('gpsLongitude not available in coordinator data %s', nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fopC(YKHO):\n return YKHO._device.position['y']", "def fopC(YKHO):\n return YKHO._gps.longitude", "def fopC(YKHO):\n return YKHO['lon']", "def fopC(YKHO):\n return YKHO._vehicle.location.get('longitude')", "def fopC(YKHO) -> float:\n return float(YKHO._mp_dict['lon'])", "def fopC(YKHO)...
[ "0.8808105", "0.86225194", "0.85961634", "0.8595835", "0.8593382", "0.8564958", "0.8549394", "0.8498284", "0.84899974", "0.8462357", "0.8421351", "0.8421351", "0.8421351", "0.8421351", "0.8421351", "0.84195507", "0.8419155", "0.8419155", "0.8419155", "0.8416904", "0.8382951",...
0.8425351
10
Return the source type of the device.
def zEt5(YKHO): return MqPP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zEt5(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_type')", "def zEt5(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_type')", "def zEt5(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_type')", "def zEt5(YKHO):\n return YKHO._source_type", "def zEt5(YKHO) -> qe4Y.Output[h8nf[str]]:\n return ...
[ "0.812367", "0.812367", "0.812367", "0.81046414", "0.7898246", "0.7898246", "0.7898246", "0.7898246", "0.78234637", "0.77801496", "0.7730448", "0.7717764", "0.7717764", "0.7717764", "0.7429701", "0.7418302", "0.73642796", "0.7326252", "0.7257714", "0.71859825", "0.71859825", ...
0.69504124
32
Sampling of normal distribution with z_mean & z_log_var
def NgvF(qIxc): y906, bKZA = qIxc Wc9F = nMvt.backend.shape(y906)[0] print('Este es BATCH', Wc9F) tpio = nMvt.backend.int_shape(y906)[1] print('Este es DIM', tpio) _hZ2 = nMvt.backend.random_normal(shape=(Wc9F, tpio)) return y906 + nMvt.backend.exp(0.5 * bKZA) * _hZ2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kwzd(YKHO, y906, men1):\n with ZylS.variable_scope('reparametrize_cont'):\n mLpi = ZylS.shape(y906)\n SGf8 = ZylS.random_normal(shape=mLpi, mean=0, stddev=1)\n u0tw = ZylS.exp(0.5 * men1)\n epBp = y906 + u0tw * SGf8\n y906 = y906\n return (epBp, y906)", "def d39J(...
[ "0.82052016", "0.8142912", "0.81054217", "0.80687445", "0.7673287", "0.76699", "0.76454186", "0.7501189", "0.7481266", "0.747466", "0.7473914", "0.7473914", "0.7473914", "0.7473914", "0.7473914", "0.7473914", "0.7473914", "0.7473914", "0.7473914", "0.7473914", "0.7473914", ...
0.69003105
38
Plot the KDE and shaded percentile of bib numbers for each triathlon discipline. Arguments df pd.DataFrame A pandas dataframe guarenteed to have columns [swim, bike, run, finish, sex] Indexed on bib numbers bib_numbers tuple(int) A tuple of bib numbers of interest. Only one for each gender is supported. title str | Non...
def PouA(jQ3Z, mi6f, leAC=None): LZpg = QrM1.figure() co3n, HN6s = (2, 2) bo63 = ['swim', 'bike', 'run', 'finish'] for YRbF, pnJU in enumerate(bo63): QrM1.subplot(co3n, HN6s, YRbF + 1) QrM1.title(pnJU[0].upper() + pnJU[1:]) QrM1.yticks([]) E7j5(data=jQ3Z, col=pnJU, hue='s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_(Sd0C, mi6f):\n jQ3Z = IU2f(Sd0C)\n PouA(jQ3Z, mi6f)", "def wVAw(r9Hf: pd.DataFrame, zRtR: np.ndarray, qi5G: np.ndarray, co3n: int=5, iZ4q: float=350, tyeL: float=None, NkkI: bool=True, bzZU: dict=None, OFQr: Tuple[str, int]=None, fFbt: bool=False, WpkM: float=2) -> AzJI[QrM1.Figure, QrM1.Axes]:\n ...
[ "0.60850877", "0.5624333", "0.56227225", "0.55802155", "0.5578433", "0.55026734", "0.54662204", "0.54597473", "0.54518235", "0.5438704", "0.54315734", "0.54215956", "0.54145926", "0.5414028", "0.53785324", "0.5375413", "0.53744483", "0.53564316", "0.5327351", "0.52942276", "0...
0.71773094
0
The description of the schedule.
def JBZA(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'description')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTC3(YKHO):\n b6Gq = mV_e('a simple schedule', [])\n YKHO.assertEqual(b6Gq.description, 'a simple schedule')", "def yoaG(YKHO):\n print(YKHO.description.format())", "def b6Gq(YKHO) -> str:\n return qe4Y.get(YKHO, 'schedule')", "def b6Gq(YKHO) -> str:\n return qe4Y.get(YKHO, 'schedule')", ...
[ "0.76984537", "0.7222643", "0.72101504", "0.72101504", "0.71157587", "0.71157587", "0.7095701", "0.7083864", "0.7018935", "0.7015986", "0.6980054", "0.69774616", "0.6975544", "0.6975544", "0.6975544", "0.6975544", "0.6975544", "0.6975544", "0.6975544", "0.6975544", "0.6975544...
0.0
-1
Gets the managed instance's Start/Stop schedule.
def jPV_(LEvE: Optional[str]=None, TRLE: Optional[str]=None, lgI0: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qi45: rYZf = dict() rYZf['managedInstanceName'] = LEvE rYZf['resourceGroupName'] = TRLE rYZf['startStopScheduleName'] = lgI0 VKhi = qe4Y.InvokeOptions.merge(i5mz.get_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b6Gq(YKHO):\n return YKHO._schedule", "def b6Gq(YKHO):\n return YKHO._schedule", "def b6Gq(YKHO):\n return YKHO._schedule", "def b6Gq(YKHO):\n return YKHO._schedule", "def CmYs(YKHO):\n return YKHO._TimeSchedule", "def xKpQ(YKHO):\n pzLh = YKHO.loop.library_schedule\n return pzLh...
[ "0.7514134", "0.7514134", "0.7514134", "0.7514134", "0.69626135", "0.6839797", "0.6836766", "0.67642874", "0.6715145", "0.6715145", "0.6686534", "0.66848576", "0.66175646", "0.6601492", "0.6588046", "0.6588002", "0.657906", "0.65629107", "0.654951", "0.65390974", "0.6527816",...
0.6619028
12
Gets the managed instance's Start/Stop schedule.
def uNUV(LEvE: Optional[pulumi.Input[str]]=None, TRLE: Optional[pulumi.Input[str]]=None, lgI0: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[dtQl]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b6Gq(YKHO):\n return YKHO._schedule", "def b6Gq(YKHO):\n return YKHO._schedule", "def b6Gq(YKHO):\n return YKHO._schedule", "def b6Gq(YKHO):\n return YKHO._schedule", "def CmYs(YKHO):\n return YKHO._TimeSchedule", "def xKpQ(YKHO):\n pzLh = YKHO.loop.library_schedule\n return pzLh...
[ "0.7514134", "0.7514134", "0.7514134", "0.7514134", "0.69626135", "0.6839797", "0.6836766", "0.67642874", "0.6715145", "0.6715145", "0.6686534", "0.66848576", "0.6619028", "0.66175646", "0.6601492", "0.6588046", "0.6588002", "0.657906", "0.65629107", "0.654951", "0.65390974",...
0.6519658
22
Convert a list of 2d tensor into a padded 3d tensor.
def KE8W(hkxX, KHPh=0.0, FlGb=False, PnDp=None, AfBP=1): assert hkxX[0].dim() == 2, 'expected 2, got ' + str(hkxX[0].dim) u54L = max((Ty9i.size(0) for Ty9i in hkxX)) u54L = u54L if PnDp is None else max(u54L, PnDp) if AfBP != 1 and u54L % AfBP != 0: u54L = (u54L + AfBP - 1) // AfBP * AfBP tp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RnIX(fUYa: torch.Tensor, KHPh=0, tpio=0) -> ht2j.Tensor:\n if tpio == 0:\n return gc7n(fUYa, batch_first=True, padding_value=KHPh)\n else:\n fUYa = [WKvO.transpose(0, tpio) for WKvO in fUYa]\n H5Km = gc7n(fUYa, batch_first=True, padding_value=KHPh)\n return H5Km.transpose(1, t...
[ "0.71746725", "0.6851191", "0.6833179", "0.6670754", "0.6578427", "0.6464735", "0.6457731", "0.6382", "0.63805836", "0.63805836", "0.63805836", "0.63805836", "0.6364503", "0.6324391", "0.6300205", "0.62629044", "0.62123114", "0.61926496", "0.61926496", "0.6179042", "0.6144376...
0.0
-1
Creates a new poll question. course_pk is just along for the ride
def TnJ9(QePW, WaLX, CRwt, VgVp=None): aBG1 = Iofl(t63Z, pk=CRwt) if not QePW.user.has_perm('can_edit_poll', aBG1.course): return G2TX('Unauthorized access') if VgVp is None: KAof = xunZ.objects.filter(poll=aBG1).aggregate(VYxc('position')) if KAof['position__max'] is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B_WU(YKHO, QePW, _sei=None):\n TMbP = YKHO.get_object()\n if not TMbP.candidates.exists():\n raise sUXu({'detail': 'Can not create ballot because there are no candidates.'})\n with Kh6j.atomic():\n aBG1 = TMbP.create_poll()\n return oGir({'detail': 'Ballot created successfully.', 'cre...
[ "0.7087699", "0.6805637", "0.6696525", "0.66926205", "0.66388035", "0.657693", "0.65735245", "0.65383005", "0.6464764", "0.6447678", "0.6392615", "0.63735485", "0.6316728", "0.62831783", "0.6252481", "0.62074745", "0.615973", "0.61489373", "0.6129192", "0.6128254", "0.6096404...
0.77181023
0
Post the usernames of the students who voted in the given question, and how they voted
def ekZd(QePW, WaLX, CRwt, VgVp, li79): bAls = Iofl(xunZ, pk=VgVp) mrPm = bAls.choices.filter(cur_poll=int(li79)) bN_o = YsO6.objects.filter(question=bAls, cur_poll=li79).values_list('student__username', 'vote__pk') return _1tc(QePW, 'polls/who_voted.html', {'list': bN_o})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wyiq(QePW, JVBp):\n CBIr = QePW.user\n print('current user is', CBIr.id, 'login', CBIr.username)\n print('Real name:', CBIr.first_name, CBIr.last_name)\n bAls = Iofl(Y4Gy, pk=JVBp)\n try:\n lWLw()\n Dbun = bAls.choice_set.get(pk=QePW.POST['choice'])\n except (KeyError, FSql.Does...
[ "0.5881862", "0.5832492", "0.5830062", "0.58208054", "0.5763117", "0.57320094", "0.57214844", "0.5711044", "0.5707024", "0.569858", "0.5639497", "0.5634339", "0.561946", "0.5549182", "0.55214924", "0.5493669", "0.54536355", "0.5445274", "0.54315007", "0.5419321", "0.5418688",...
0.65738434
0
Chunk list to N chunks
def yOAJ(WhY1, zNig): WhY1 = iter(WhY1) return iter(lambda: list(uOgj(WhY1, zNig)), [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OBJS(yv6U, exwG):\n return [yv6U[YRbF::exwG] for YRbF in range(exwG)]", "def AyNP(vC9B, exwG):\n return [vC9B[YRbF:YRbF + exwG] for YRbF in range(0, len(vC9B), exwG)]", "def AyNP(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def AyNP(yv6U, exwG):\...
[ "0.8651648", "0.8642554", "0.86403257", "0.86383355", "0.8622694", "0.8622638", "0.861616", "0.8592039", "0.8592015", "0.85681736", "0.85516894", "0.85413176", "0.8536723", "0.8536414", "0.8533473", "0.852981", "0.85272217", "0.85272217", "0.8527195", "0.8510789", "0.8509164"...
0.0
-1
This function creates an object from the class LexWord
def SjNK(YKHO): YKHO.word = lL2Y(YKHO.tmp_word, YKHO.tmp_writing_language, wordType=YKHO.tmp_wordType, sensesList=YKHO.tmp_sensesList, frequencyDict=YKHO.tmp_FrequencyDict, canonicalFrequencyDict=YKHO.tmp_canonicalFrequencyDict, otherFormsList=YKHO.tmp_otherFormsList, transliteration=YKHO.tmp_transliteration, trans...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, GIN8):\n YKHO._word = GIN8", "def FIMM(YKHO, GIN8, r6VR='en'):\n YKHO.word = GIN8\n YKHO.language_code = r6VR\n YKHO.definitions = YKHO.get_dictionary_entry()", "def FIMM(YKHO, yAmx):\n YKHO.__raw__ = yAmx\n Mkmy = YKHO.__raw__\n YKHO.lemmas = Mkmy.lemmas\n YKHO.words = [...
[ "0.7312082", "0.72845274", "0.6949028", "0.6945015", "0.6943833", "0.6907169", "0.6879077", "0.6848009", "0.68227136", "0.67956156", "0.6738002", "0.6720044", "0.6652273", "0.6623561", "0.66051906", "0.65969914", "0.6591775", "0.65889513", "0.65246", "0.64762825", "0.642724",...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, PhJ3): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Gets JWT from request authorization header and verifies it
def RneL(QePW, ZP0S): MkeE = QePW.headers.get('Authorization') if MkeE: rxBR = MkeE.split(' ')[1] else: rxBR = None if rxBR: _hkX = ZP0S.decode_auth_token(rxBR) if isinstance(_hkX, str): CBIr = ZP0S.query.filter_by(id=_hkX).first() geh0 = {'status'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gDhF(qv1X):\n WBPg = qv1X.headers.get('Authorization')\n if not WBPg:\n S0MI.error('[CHECK_AUTH] Auth header is missing!')\n return Dj64({'code': 'auth_header_missing', 'description': 'Authorization Header is missing.'}, 401)\n lpha = WBPg.split()\n BVbF = len(lpha)\n if lpha[0].lo...
[ "0.78537405", "0.7425768", "0.7379856", "0.7340852", "0.7212852", "0.7145129", "0.7085975", "0.7070146", "0.70471674", "0.7042111", "0.7041562", "0.700114", "0.6985491", "0.6973693", "0.6951545", "0.6864728", "0.685236", "0.68467486", "0.68426526", "0.6836618", "0.68113315", ...
0.67531854
28
write a JSON file to serializate an object
def AHFl(Emd4, Nkld): gIsw = Emd4.__name__ + '.json' with open(gIsw, 'w') as bpNo: if Nkld is None: bpNo.write('[]') else: ztjo = [z1Rg.to_dictionary() for z1Rg in Nkld] bpNo.write(i_Aq.to_json_string(ztjo))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ncJT(object, nUeQ):\n with open(nUeQ, 'wb') as hlel:\n qQXR.dump(object, hlel)", "def uP8n(qaEx, YEnM):\n with open(qaEx, 'w') as eHNT:\n qQXR.dump(YEnM, eHNT, indent=4)\n eHNT.close", "def iaXM(nUeQ, YEnM):\n pmON = Hy7s.path.dirname(nUeQ)\n if not Hy7s.path.exists(pmON):\...
[ "0.84187627", "0.8381111", "0.8376404", "0.8352452", "0.8293042", "0.8279168", "0.82668805", "0.82413995", "0.82251894", "0.8215651", "0.81968164", "0.8179324", "0.81537145", "0.8109515", "0.80861914", "0.80861914", "0.80856144", "0.80801463", "0.8079629", "0.8076213", "0.807...
0.0
-1
converts the json string to a list with dictionaries
def K3BH(zEKB): if zEKB is None: return [] return qQXR.loads(zEKB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3BH(zEKB):\n if zEKB is None:\n return []\n else:\n D_Q2 = qQXR.loads(zEKB)\n return [cmPJ for cmPJ in D_Q2]", "def K3BH(zEKB):\n if zEKB and len(zEKB) > 0:\n return qQXR.loads(zEKB)\n return []", "def K3BH(zEKB):\n Uqbu = []\n if zEKB is None or not zEKB:\n ...
[ "0.80324703", "0.7796838", "0.77338463", "0.7717307", "0.7697192", "0.76723826", "0.75444645", "0.7523518", "0.7523518", "0.7523518", "0.7523518", "0.75161505", "0.75081044", "0.7476136", "0.7476136", "0.7476136", "0.7476136", "0.7476136", "0.74756944", "0.74756944", "0.74387...
0.75826144
6
Defines the observation provided by the environment. Each dict member will contain its expected structure and shape.
def pbDw(YKHO): return dict(info_state=tuple([YKHO._height * YKHO._width]), legal_actions=(YKHO._num_actions,), current_player=())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8Ko(YKHO, xF90, B2fa):\n assert xF90 in ('ram', 'screen', 'grid')\n qIxc = YKHO._get_env_args(B2fa)\n if xF90 == 'grid':\n c1sR = B2fa.get('num_frames', 2)\n U4F5 = B2fa.get('grid_size', 128)\n Nmbt = B2fa.get('observe_cells', True)\n fy54 = B2fa.get('observe_others', True...
[ "0.6464772", "0.64525604", "0.6420466", "0.64137983", "0.635933", "0.6346984", "0.63230544", "0.6279565", "0.62724924", "0.62471086", "0.6238825", "0.6226117", "0.6198172", "0.6196453", "0.6188264", "0.6182743", "0.6147376", "0.60919565", "0.6091479", "0.6086105", "0.6043397"...
0.58934194
28
__init__() method if the BinarySearchTree Class. The value of data can only be an int
def FIMM(YKHO, nPrm=None): if nPrm is not None: YKHO.root = o7DN(nPrm) else: YKHO.root = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nPrm):\n if type(nPrm) is oyIN.ndarray:\n rvhu.__init__(YKHO, nPrm)\n YKHO.axis = 0\n else:\n raise TypeError('Data not NP array')", "def FIMM(YKHO, nPrm=None, LFlW=None, _tIi=None, _AKB=None):\n super(FM64, YKHO).__init__()\n YKHO.data = nPrm\n YKHO.left = LFlW...
[ "0.73555654", "0.7271656", "0.7083739", "0.7083739", "0.706783", "0.706783", "0.7043118", "0.7014706", "0.6963802", "0.6960461", "0.6881238", "0.68732035", "0.68453777", "0.683907", "0.6739703", "0.6729813", "0.67203504", "0.6685393", "0.6685393", "0.6685393", "0.6685393", ...
0.6783435
14
This function searches for a node with the given value and returns that node.
def TgwQ(YKHO, nPrm): if YKHO.root is not None: return YKHO.__search(nPrm, YKHO.root) else: raise UX1P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgwQ(YKHO, BWXx):\n kMLo = YKHO.head\n while kMLo:\n if kMLo.value == BWXx:\n return kMLo\n else:\n kMLo = kMLo.next", "def TgwQ(YKHO, BWXx):\n if YKHO.head is None:\n return None\n kMLo = YKHO.head\n while kMLo.next:\n if kMLo.value == BWXx:\n...
[ "0.82542974", "0.8203748", "0.8190002", "0.81239134", "0.80991566", "0.7858706", "0.78286564", "0.7752999", "0.77377206", "0.7719716", "0.7710343", "0.7668681", "0.75942546", "0.7557461", "0.74914515", "0.7491029", "0.7436891", "0.7377005", "0.73661184", "0.735706", "0.733376...
0.0
-1
This function returns the most minimum number in the Binary Search Tree Instance
def YP8A(YKHO): if YKHO.root is not None: return YKHO.__get_minimum(YKHO.root) else: raise UX1P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XcNI(YKHO) -> int:\n return YKHO.min_node.value", "def ohV5(YKHO):\n if YKHO.root is None:\n return float('+inf')\n jvSB = YKHO.root\n while jvSB.left is not None:\n jvSB = jvSB.left\n return jvSB.key", "def SRx_(YKHO) -> rvhu[Kt_s]:\n if YKHO.root:\n return YKHO.root...
[ "0.75375324", "0.7424787", "0.73387456", "0.7320076", "0.7309349", "0.7282311", "0.7279519", "0.727187", "0.7238954", "0.7181016", "0.7169718", "0.71559906", "0.71335155", "0.7125976", "0.712011", "0.71161985", "0.70999557", "0.708812", "0.70557195", "0.7042779", "0.70333064"...
0.69885355
22
Return True if vertex can be coloured in colour. Else return False. >>> check_colour_of_vertex([[0, 1, 1, 1], [1, 0, 0, 1],\ [1, 0, 0, 1], [1, 1, 1, 0]], 3, [1, 2, 2, 0], 2, 4) False >>> check_colour_of_vertex([[0, 1, 1, 1], [1, 0, 0, 1],\ [1, 0, 0, 1], [1, 1, 1, 0]], 3, [1, 2, 2, 0], 3, 4) True
def F5kI(SppC: list, SLBp: int, z59V: list, OfK8: int, JalI: int) -> bool: for f69y in range(JalI): if SppC[SLBp][f69y] == 1 and OfK8 == z59V[f69y]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def se3E(SppC: list, AfkB: int, z59V: list, SLBp: int, JalI: int) -> bool:\n if SLBp == JalI:\n return True\n for OfK8 in range(1, AfkB + 1):\n if F5kI(SppC, SLBp, z59V, OfK8, JalI):\n z59V[SLBp] = OfK8\n if se3E(SppC, AfkB, z59V, SLBp + 1, JalI):\n return T...
[ "0.75991476", "0.7228462", "0.70088744", "0.70084316", "0.6968569", "0.65425855", "0.63855004", "0.6381148", "0.61584926", "0.6106745", "0.609967", "0.60968673", "0.6048658", "0.60474354", "0.6028876", "0.60180014", "0.601729", "0.59983724", "0.59720004", "0.5914065", "0.5885...
0.8427283
0
Returns a copy of this storage
def i3ak(YKHO): return type(YKHO)(YKHO.nbytes(), device=YKHO.device).copy_(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3ak(YKHO):\n Onkl()\n return YKHO._new_wrapped_storage(YKHO._untyped_storage.clone())", "def jth9(YKHO) -> 'Configuration':\n im04 = YKHO.__class__()\n im04.update(jth9(YKHO._storage))\n return im04", "def lvCQ(YKHO):\n return kF3y(YKHO)", "def S8SU(YKHO) -> kF3y:\n return YKHO._sto...
[ "0.7681736", "0.7536489", "0.74085367", "0.7332755", "0.7320043", "0.7307066", "0.73012334", "0.7297733", "0.7290295", "0.7290295", "0.7290295", "0.7290295", "0.72474104", "0.7238644", "0.7238644", "0.7238644", "0.7238644", "0.7238644", "0.7238644", "0.7236419", "0.723564", ...
0.0
-1
r"""Copies the CPU storage to pinned memory, if it's not already pinned.
def oiT4(YKHO, begE: Union[str, torch.device]='cuda'): if YKHO.device.type != 'cpu': raise TypeError(f"cannot pin '{YKHO.type()}' only CPU memory can be pinned") u6BX = ht2j.tensor([], dtype=ht2j.uint8, device=YKHO.device).set_(YWvJ(kF3y, YKHO)).pin_memory(begE) return u6BX.untyped_storage()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oiT4(YKHO):\n for G1Hx, Ty9i in YKHO.data.items():\n if ht2j.is_tensor(Ty9i):\n YKHO.data[G1Hx] = Ty9i.pin_memory()\n return YKHO", "def oiT4(YKHO, begE: Union[str, torch.device]='cuda'):\n Onkl()\n return YKHO._new_wrapped_storage(YKHO._untyped_storage.pin_memory(device=begE))"...
[ "0.5986438", "0.59846514", "0.5966394", "0.595014", "0.5907549", "0.5841422", "0.58054805", "0.58054805", "0.5648621", "0.562972", "0.5540211", "0.5492825", "0.5487322", "0.5405466", "0.53908783", "0.5366201", "0.5365328", "0.5359389", "0.53448844", "0.53448844", "0.53348863"...
0.6959704
0
Returns a copy of this storage
def i3ak(YKHO): Onkl() return YKHO._new_wrapped_storage(YKHO._untyped_storage.clone())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO) -> 'Configuration':\n im04 = YKHO.__class__()\n im04.update(jth9(YKHO._storage))\n return im04", "def lvCQ(YKHO):\n return kF3y(YKHO)", "def S8SU(YKHO) -> kF3y:\n return YKHO._storage", "def _qLf(YKHO) -> 'Store':\n Csk6 = _qLf(YKHO.to_dict())\n return P39m(Csk6)", "def ...
[ "0.7536489", "0.74085367", "0.7332755", "0.7320043", "0.7307066", "0.73012334", "0.7297733", "0.7290295", "0.7290295", "0.7290295", "0.7290295", "0.72474104", "0.7238644", "0.7238644", "0.7238644", "0.7238644", "0.7238644", "0.7238644", "0.7236419", "0.723564", "0.7196147", ...
0.7681736
0