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
Set ip addresses of all interfaces.
def re5L(YKHO): for wohN, iQG7 in YKHO.interfaces.items(): for G1Hx, Ty9i in iQG7.items(): if G1Hx == 'address': D8Ke, y0cW = tdN3(Ty9i) YKHO.interfaces[wohN]['ip_address'] = D8Ke YKHO.interfaces[wohN]['ip_prefix'] = y0cW break ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aaGI(YKHO, aaGI):\n YKHO._ips = aaGI", "def TRDU(YKHO, Ugo6, I33c):\n for GT6L in Ugo6:\n YKHO.set_one(GT6L, I33c)", "def F4Lp(YKHO):\n for YRbF in YKHO._nodes.items():\n Q6kx = YRbF[1]\n vsjT = OhbD.get_int_ip(Q6kx)\n if vsjT != {}:\n print('\\nThese are the...
[ "0.72794324", "0.661401", "0.65779203", "0.6340851", "0.6324031", "0.63150054", "0.61869067", "0.617959", "0.61534643", "0.6090856", "0.6058395", "0.600056", "0.5943", "0.5909638", "0.5908889", "0.5886598", "0.58724004", "0.58520234", "0.58423156", "0.5806767", "0.5795594", ...
0.74871445
0
Convert cleartext passwords to hashes.
def zwfb(YKHO, CyXm): YKHO.passwords = {} for BaHi in CyXm: YKHO.passwords[BaHi] = TXgh.hash(CyXm[BaHi], rounds=5000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pTsq(CgwE, NTfD=None):\n if not NTfD:\n NTfD = hq52(5)\n return '%s|%s' % (NTfD, HBct.sha256(NTfD + CgwE).hexdigest())", "def Nvki(KaGP):\n return HBct.sha224(KaGP).hexdigest()", "def qzFd(jTXt):\n dI6w = HBct.md5(jTXt.encode('utf-8')).hexdigest()\n for YRbF in range(0, len(dI6w), 2):...
[ "0.64620596", "0.6350122", "0.6167972", "0.61424506", "0.61300105", "0.6050829", "0.60071373", "0.5981714", "0.59550655", "0.5933693", "0.5925999", "0.59192073", "0.5893572", "0.58825845", "0.58750767", "0.58422095", "0.58400726", "0.58395344", "0.5762056", "0.57604545", "0.5...
0.52401
89
List of vertices connected to this vertex by an edge
def fP8F(YKHO): Aofo = set([Ty9i for tTpl in YKHO.edges for Ty9i in [tTpl.v1, tTpl.v2]]) Aofo.remove(YKHO) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3rE(D70y):\n return [D70y.vertex1, D70y.vertex2]", "def iXlf(YKHO):\n return list(YKHO._graph)", "def iXlf(YKHO):\n return list(YKHO.__graph.values())", "def iXlf(YKHO):\n return YKHO.adjacent.keys()", "def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())", "def iXlf(YKHO):\n re...
[ "0.8272381", "0.7858069", "0.7810121", "0.7772743", "0.7646536", "0.76268965", "0.76268965", "0.76268965", "0.76123166", "0.75862026", "0.757623", "0.7554468", "0.7473847", "0.745408", "0.74512976", "0.73953646", "0.7389122", "0.7343603", "0.72664386", "0.72188765", "0.719352...
0.0
-1
Require that user is a designated study admin or site admin.
def p8yr(YKHO, CBIr): vGrt = YKHO.model('group').findOne({'name': 'Study Administrators'}) if not vGrt or vGrt['_id'] not in CBIr['groups']: if not CBIr.get('admin', False): raise Q9YR('Only members of the Study Administrators group can create or modify studies.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def esq9(YKHO, QePW):\n YKHO.validate_login(QePW)\n if QePW.session['id'] not in YKHO.admins:\n DCgT.logHelper.log_it_visit(QePW, __name__ + '.validate_admin', authorized=False...
[ "0.69412476", "0.68771887", "0.6837426", "0.6823092", "0.6823092", "0.6561765", "0.6527417", "0.65214103", "0.6505473", "0.649122", "0.6457141", "0.64561474", "0.6453968", "0.64320403", "0.6393753", "0.63883823", "0.6383777", "0.63770217", "0.6367018", "0.6363484", "0.6358560...
0.8191438
0
Calculate the cloud extinction coefficient.
def vTVL(WPBc): oMqC = 'H2O' WPBc.haze.cloudBenneke.readVP(oMqC) WPBc.haze.cloudBenneke.cloudbase(WPBc.atm.temp, WPBc.atm.press) WPBc.haze.cloudBenneke.extinction(WPBc.spec.wn, WPBc.atm.press)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hcbd(YKHO):\n PEym = len(YKHO._subspace.external_terms)\n kPcD = YKHO.coefs[:-PEym] if PEym else YKHO.coefs[:]\n hcbd = kPcD.copy()\n hcbd = hcbd / YKHO._subspace.function_total_multiplicities\n return hcbd", "def zZRI(YKHO) -> float:\n ...", "def wQRZ(YKHO):\n exwG = oyIN.arange(1, YK...
[ "0.7149274", "0.65993494", "0.6291095", "0.62119853", "0.6193127", "0.61900055", "0.61709505", "0.6137167", "0.5946744", "0.5933875", "0.5930877", "0.59269124", "0.58806264", "0.58571476", "0.5846454", "0.5844694", "0.5844406", "0.58261174", "0.5812757", "0.5804072", "0.58026...
0.6572554
2
Build and return a data loader.
def RuZU(zEgx, Kp4Y, HLKd=178, N0ky=128, Ep8u=16, Tuqy='train', I7Gy=1): SZFh = [] if Tuqy == 'train': SZFh.extend([Kt_s.ColorJitter(brightness=0.2, contrast=0.1, saturation=0.2, hue=0.1), Kt_s.RandomHorizontalFlip()]) SZFh.append(Kt_s.Resize(N0ky, interpolation=hnIv.LANCZOS)) SZFh.append(Kt_s.T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RuZU(nPrm, qQXR, Ep8u, hXNa, I7Gy):\n __n6 = uUr5(nPrm, qQXR)\n zQKy = ht2j.utils.data.DataLoader(dataset=__n6, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy, collate_fn=QxcP)\n return zQKy", "def cMaC(YKHO) -> pVAc:\n pass", "def rHzL(YKHO, **B2fa):\n return pVAc(YKHO, **B2fa)", "def JW...
[ "0.74889874", "0.73519504", "0.711431", "0.70320064", "0.6991118", "0.6990211", "0.6968911", "0.6925782", "0.69233835", "0.6864498", "0.68342435", "0.6819947", "0.68127316", "0.6809393", "0.68059325", "0.6692377", "0.6691707", "0.6687672", "0.66781133", "0.66521686", "0.66456...
0.5900254
92
Adds a weight variable to the layer.
def ZeC_(YKHO, mWFP, ROpF, yDqo=None, MuED=None, R5ZC=None, XJsN=True, oVM8=None): if yDqo is None: yDqo = nMvt.floatx() upAO = YKHO.add_variable(mWFP, ROpF, dtype=yDqo, initializer=EcCx.get(MuED), regularizer=yjPc.get(R5ZC), constraint=gkIT.get(oVM8), trainable=XJsN) return upAO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KFtY(YKHO, upAO, lzjZ, TZ9E):\n if TZ9E != 'bias' and TZ9E != 'wmat':\n raise Exception('tag must be bias or wmat')\n eNGu.CXNNetSetWeight(YKHO.handle, upAO.ctypes.data_as(gk2W.POINTER(gk2W.c_float)), upAO.size, gk2W.c_char_p(lzjZ.encode('utf-8')), gk2W.c_char_p(TZ9E.encode('utf-8')))", "def KFt...
[ "0.65926033", "0.6463909", "0.64615434", "0.64615434", "0.64615434", "0.6434855", "0.64340943", "0.6415618", "0.64081067", "0.64048344", "0.63897765", "0.6330229", "0.63140184", "0.63023055", "0.629226", "0.6286121", "0.6258184", "0.62510973", "0.6248951", "0.6238682", "0.623...
0.75557965
0
Retrieves the input mask tensor(s) of a layer at a given node.
def lOeF(YKHO, dtUY): g4y1 = YKHO.get_input_at(dtUY) if isinstance(g4y1, list): return [getattr(WKvO, '_keras_mask', None) for WKvO in g4y1] else: return getattr(g4y1, '_keras_mask', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UOkX(eavT, fkk4):\n wXlT = list(fkk4.in_edges(eavT['key']))\n _mW4 = [fkk4.nodes[hDmL]['output_mask'] for hDmL, bGrB in wXlT]\n return _mW4", "def UOkX(eavT, fkk4):\n wXlT = list(fkk4.in_edges(eavT['key']))\n _mW4 = [fkk4.nodes[hDmL]['output_mask'] for hDmL, bGrB in wXlT]\n return _mW4", ...
[ "0.7356327", "0.7356168", "0.70601845", "0.686372", "0.6512168", "0.6421162", "0.6359002", "0.6270404", "0.61987", "0.6198212", "0.6178", "0.6079104", "0.60541415", "0.6017263", "0.5996643", "0.5978338", "0.5978338", "0.59334666", "0.59316564", "0.5927264", "0.5876722", "0....
0.78300685
0
Retrieves the output mask tensor(s) of a layer at a given node.
def yXgZ(YKHO, dtUY): hlel = YKHO.get_output_at(dtUY) if isinstance(hlel, list): return [getattr(WKvO, '_keras_mask', None) for WKvO in hlel] else: return getattr(hlel, '_keras_mask', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9_h(YKHO):\n hlel = YKHO.output\n if isinstance(hlel, list):\n return [getattr(WKvO, '_keras_mask', None) for WKvO in hlel]\n else:\n return getattr(hlel, '_keras_mask', None)", "def lOeF(YKHO, dtUY):\n g4y1 = YKHO.get_input_at(dtUY)\n if isinstance(g4y1, list):\n return ...
[ "0.70013404", "0.67517936", "0.6399421", "0.6388399", "0.6365272", "0.62206274", "0.5890313", "0.58897936", "0.58688754", "0.584128", "0.58091635", "0.578257", "0.57217216", "0.56831867", "0.5655766", "0.5625976", "0.56219614", "0.5602559", "0.5580995", "0.5553757", "0.552901...
0.80216116
0
Retrieves the input mask tensor(s) of a layer. Only applicable if the layer has exactly one inbound node, i.e. if it is connected to one incoming layer.
def qV0r(YKHO): g4y1 = YKHO.input if isinstance(g4y1, list): return [getattr(WKvO, '_keras_mask', None) for WKvO in g4y1] else: return getattr(g4y1, '_keras_mask', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lOeF(YKHO, dtUY):\n g4y1 = YKHO.get_input_at(dtUY)\n if isinstance(g4y1, list):\n return [getattr(WKvO, '_keras_mask', None) for WKvO in g4y1]\n else:\n return getattr(g4y1, '_keras_mask', None)", "def UOkX(eavT, fkk4):\n wXlT = list(fkk4.in_edges(eavT['key']))\n _mW4 = [fkk4.nod...
[ "0.756858", "0.72555685", "0.7244732", "0.66529214", "0.6584047", "0.6530159", "0.6530159", "0.6504658", "0.64577276", "0.64186", "0.6376844", "0.6373097", "0.63566697", "0.6205893", "0.62017626", "0.6168873", "0.6005357", "0.5990894", "0.5963304", "0.5865473", "0.5858816", ...
0.7356791
1
Retrieves the output mask tensor(s) of a layer. Only applicable if the layer has exactly one inbound node, i.e. if it is connected to one incoming layer.
def Y9_h(YKHO): hlel = YKHO.output if isinstance(hlel, list): return [getattr(WKvO, '_keras_mask', None) for WKvO in hlel] else: return getattr(hlel, '_keras_mask', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yXgZ(YKHO, dtUY):\n hlel = YKHO.get_output_at(dtUY)\n if isinstance(hlel, list):\n return [getattr(WKvO, '_keras_mask', None) for WKvO in hlel]\n else:\n return getattr(hlel, '_keras_mask', None)", "def lOeF(YKHO, dtUY):\n g4y1 = YKHO.get_input_at(dtUY)\n if isinstance(g4y1, list...
[ "0.7671821", "0.6720139", "0.65809995", "0.65300184", "0.6510303", "0.64391583", "0.6428725", "0.62786055", "0.6275386", "0.62514156", "0.61698884", "0.61698884", "0.61586946", "0.6113361", "0.6086056", "0.5989577", "0.59421456", "0.59397596", "0.5927023", "0.5896852", "0.587...
0.7369137
1
Sets the weights of the layer, from Numpy arrays.
def sNuA(YKHO, _mSQ): NArs = YKHO.weights if len(NArs) != len(_mSQ): raise ValueError('You called `set_weights(weights)` on layer "' + YKHO.name + '" with a weight list of length ' + str(len(_mSQ)) + ', but the layer was expecting ' + str(len(NArs)) + ' weights. Provided weights: ' + str(_mSQ)[:50] + '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L1EB(YKHO, _mSQ):\n YKHO.weights = _mSQ.reshape(YKHO.output_size, YKHO.input_size + 1)", "def sNuA(YKHO, _mSQ):\n SqIz = []\n for gEmA in YKHO.layers:\n ThSC = len(gEmA.weights)\n PvFr = _mSQ[:ThSC]\n for yK2S, yzQ0 in zip(gEmA.weights, PvFr):\n SqIz.append((yK2S, yzQ...
[ "0.7939213", "0.76549596", "0.7447757", "0.7297645", "0.7215251", "0.7192775", "0.70850027", "0.7009088", "0.6989203", "0.6947884", "0.6938243", "0.6860822", "0.6829523", "0.67454785", "0.67409074", "0.6710564", "0.6692454", "0.6654997", "0.6654997", "0.6638417", "0.66098976"...
0.73278475
3
Returns the config of the layer. A layer config is a Python dictionary (serializable) containing the configuration of a layer. The same layer can be reinstantiated later (without its trained weights) from this configuration. The config of a layer does not include connectivity information, nor the layer class name. Thes...
def tgzD(YKHO): GPtr = {'name': YKHO.name, 'trainable': YKHO.trainable} if hasattr(YKHO, '_batch_input_shape'): GPtr['batch_input_shape'] = YKHO._batch_input_shape if hasattr(YKHO, 'dtype'): GPtr['dtype'] = YKHO.dtype return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n TPj8 = {'anchors': YKHO._anchors, 'classes': YKHO._classes, 'ignore_thresh': YKHO._ignore_thresh, 'truth_thresh': YKHO._truth_thresh, 'iou_thresh': YKHO._iou_thresh, 'loss_type': YKHO._loss_type, 'iou_normalizer': YKHO._iou_normalizer, 'cls_normalizer': YKHO._cls_normalizer, 'scale_x_y': YKHO....
[ "0.72673035", "0.72012126", "0.6789678", "0.67547184", "0.66388977", "0.66388977", "0.658269", "0.658269", "0.65324825", "0.64539546", "0.6428902", "0.64264953", "0.6415268", "0.6414017", "0.6406986", "0.63376063", "0.63349324", "0.63167036", "0.6304725", "0.6304725", "0.6267...
0.67386943
4
`Input()` is used to instantiate a Keras tensor. A Keras tensor is a tensor object from the underlying backend (Theano or TensorFlow), which we augment with certain attributes that allow us to build a Keras model just by knowing the inputs and outputs of the model. For instance, if a, b and c are Keras tensors,
def X6a0(ROpF=None, Ep8u=None, mWFP=None, yDqo=None, o7sj=False, vhpA=None, **B2fa): if 'batch_shape' in B2fa: ooTa = B2fa.pop('batch_shape') if ROpF and ooTa: raise ValueError('Only provide the shape OR batch_shape argument to Input, not both at the same time.') Ep8u = ooTa[0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNS6(YKHO, WbAn: Dict[str, Any], **B2fa) -> ht2j.Tensor:\n raise NotImplementedError", "def g4y1(YKHO) -> 'Input':\n return YKHO.Input", "def vIJT(GhuM=IcYl, _mSQ=None, KndY=None, FRUf=None):\n if FRUf is None:\n WKvO = X6a0(shape=GhuM)\n else:\n WKvO = X6a0(tensor=FRUf)\n retu...
[ "0.6742256", "0.6606137", "0.65783495", "0.649664", "0.63277364", "0.6327408", "0.6239031", "0.6163693", "0.6142171", "0.61120164", "0.60526484", "0.5993728", "0.5975712", "0.59637946", "0.59475744", "0.5926236", "0.59232926", "0.5898539", "0.5879682", "0.587486", "0.5870248"...
0.6835913
0
Returns the `updates` from all layers that are stateful. This is useful for separating training updates and state updates, e.g. when we need to update a layer's internal state during prediction.
def zjpu(YKHO): zjpu = [] for gEmA in YKHO.layers: if getattr(gEmA, 'stateful', False): if hasattr(gEmA, 'updates'): zjpu += gEmA.updates return zjpu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vhxs(YKHO):\n return list(YKHO.state_updates)", "def Vhxs(YKHO):\n if QpfX.in_eager_mode():\n return []\n if not YKHO.trainable and (not YKHO.stateful):\n return []\n Vhxs = []\n for gEmA in YKHO.layers:\n Vhxs += gEmA.updates\n FjRE = YKHO.inputs or []\n for YRbF in...
[ "0.7581514", "0.75490224", "0.63087124", "0.6013626", "0.5863231", "0.58500093", "0.5648043", "0.55675226", "0.55363774", "0.5518336", "0.55056685", "0.5496777", "0.544374", "0.5442008", "0.54091793", "0.5371852", "0.5368774", "0.53402925", "0.53316826", "0.53155684", "0.5299...
0.8816369
0
Sets the weights of the model.
def sNuA(YKHO, _mSQ): SqIz = [] for gEmA in YKHO.layers: ThSC = len(gEmA.weights) PvFr = _mSQ[:ThSC] for yK2S, yzQ0 in zip(gEmA.weights, PvFr): SqIz.append((yK2S, yzQ0)) _mSQ = _mSQ[ThSC:] nMvt.batch_set_value(SqIz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNuA(YKHO, _mSQ):\n YKHO.model.set_weights(_mSQ)", "def sNuA(YKHO, _mSQ):\n YKHO.weights = _mSQ", "def sNuA(YKHO, _mSQ):\n YKHO._weights = _mSQ\n YKHO.normalize_weights()", "def pOke(YKHO, yzQ0):\n raise NotImplementedError", "def sNuA(YKHO, _mSQ):\n YKHO._cnn_model.set_weights(_mSQ)"...
[ "0.90260047", "0.8717205", "0.8483707", "0.8425384", "0.84224135", "0.8285557", "0.8230762", "0.8218673", "0.8064147", "0.79532063", "0.7927303", "0.78084373", "0.7761238", "0.7715509", "0.7696608", "0.7670099", "0.76613754", "0.76613754", "0.758918", "0.75792164", "0.7572149...
0.79791397
9
Gets the network's input specs.
def XNCD(YKHO): if not YKHO._is_graph_network: return None Mzww = [] for gEmA in YKHO._input_layers: if gEmA.input_spec is None: Mzww.append(None) else: if not isinstance(gEmA.input_spec, list): raise TypeError('Layer ' + gEmA.name + ' has an i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sxUC(Emd4):\n Mzww = ViNN.parameterInputFactory('Dispatcher', ordered=False, baseNode=None)\n return Mzww", "def A_Ak(YKHO):\n return YKHO.input_spec", "def sxUC(Emd4):\n MSf2 = ViNN.parameterInputFactory('Component', ordered=False, baseNode=None, descr='defines a component as an element of the...
[ "0.72373915", "0.7223589", "0.65798616", "0.61967623", "0.61767274", "0.6171686", "0.6164346", "0.615488", "0.61117357", "0.61117357", "0.606532", "0.60281813", "0.6026815", "0.5994371", "0.5980121", "0.59641206", "0.59398377", "0.5933163", "0.59111977", "0.59111977", "0.5911...
0.7786096
0
Instantiates a Model from its config (output of `get_config()`).
def MSOc(Emd4, GPtr, UeD_=None): ymCz = {} y3Ah = {} def K9n5(gEmA, tckm): if gEmA not in y3Ah: y3Ah[gEmA] = [tckm] else: y3Ah[gEmA].append(tckm) def rDg0(gEmA, tckm): """Deserialize a node. Arguments: layer: layer instance. no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQs7(BENM: Union[ModelConfig, dict], igb0: int=j2fq) -> KcDH:\n if isinstance(BENM, dict):\n BENM = BIOW.from_dict(BENM)\n DMw4 = T1lY(BENM.model_type, SWzB)\n return DMw4(BENM, random_seed=igb0)", "def LQs7(wOGa):\n C3ST = Ncdu(wOGa['model_name'])\n KAOR = C3ST(wOGa)\n print('model ...
[ "0.72787476", "0.7183577", "0.71657026", "0.69921994", "0.6895726", "0.6853983", "0.68149745", "0.6768359", "0.6768359", "0.6735476", "0.6674764", "0.66665363", "0.66469353", "0.6646541", "0.662587", "0.6591255", "0.6547453", "0.6528897", "0.64976126", "0.6495488", "0.6492451...
0.0
-1
Returns a JSON string containing the network configuration. To load a network from a JSON save file, use `keras.models.model_from_json(json_string, custom_objects={})`.
def oD7C(YKHO, **B2fa): if not YKHO._is_graph_network: raise NotImplementedError def lup1(YEnM): if type(YEnM).__module__ == oyIN.__name__: return YEnM.item() if type(YEnM).__name__ == type.__name__: return YEnM.__name__ raise TypeError('Not JSON Serializ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LHWC(eVVj, Ux0P):\n with open(Ux0P, 'wt') as EY3W:\n EY3W.write(eVVj.to_json())\n return None", "def XCN0(gIsw):\n with open(gIsw) as nUeQ:\n nPrm = qQXR.load(nUeQ)\n Lz1z = getattr(HwRy.modules[__name__], nPrm['cost_func'])\n sUKp = getattr(HwRy.modules[__name__], nPrm['act_func...
[ "0.6274934", "0.6163578", "0.6156433", "0.6108377", "0.6100293", "0.6095509", "0.59524125", "0.593517", "0.59179795", "0.5894862", "0.5893687", "0.5891758", "0.58499247", "0.5719799", "0.5684551", "0.5684551", "0.5666706", "0.5662442", "0.5588125", "0.5571106", "0.5545788", ...
0.6523721
0
Returns the list of input tensors necessary to compute `tensor`. Output will always be a list of tensors (potentially with 1 element).
def S5ie(vhpA, gEmA=None, dtUY=None): if not hasattr(vhpA, '_keras_history'): return vhpA if gEmA is None or dtUY: gEmA, dtUY, bGrB = vhpA._keras_history if not gEmA._inbound_nodes: return [vhpA] else: Q6kx = gEmA._inbound_nodes[dtUY] if not Q6kx.inbound_layers: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kdmR(YKHO) -> x1iM['NmTensor']:\n Csk6 = YKHO._manual_outputs if len(YKHO._manual_outputs) > 0 else YKHO._default_outputs\n whgs = []\n for G1Hx, Ty9i in Csk6.items():\n gssY = Ty9i.producer_step_module_port.step_number\n siXE = Ty9i.producer_step_module_port.port_name\n vhpA = YK...
[ "0.67549485", "0.6570103", "0.6545245", "0.64817333", "0.6465132", "0.6455797", "0.63641167", "0.6112972", "0.6110776", "0.60301006", "0.6023867", "0.6018743", "0.6014307", "0.5977601", "0.5966194", "0.59441453", "0.5907508", "0.5889415", "0.5858512", "0.5828894", "0.5811696"...
0.67650205
0
Convert string to unix time stamp if not. Currently handles %d%m%Y Consider using something more convenient like the arrow library.
def w6KO(a1PO): try: if isinstance(a1PO, str): DwRD = qcWV.strptime(a1PO, '%d-%m-%Y') a1PO = int(ITS7.mktime(DwRD.timetuple())) return a1PO except Exception as e: print(tTpl) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ir3V(JvEs):\n u54L = len(JvEs)\n if u54L == 10:\n x8us = '%Y-%m-%d'\n elif u54L == 7:\n x8us = '%Y-%m'\n elif u54L == 4:\n x8us = '%Y'\n else:\n return None\n return str(GRk0.timegm(ITS7.strptime(JvEs, x8us)))", "def F0Fn(n_L_):\n try:\n rk8E = n_L_.spl...
[ "0.75648856", "0.72032964", "0.70789725", "0.7065812", "0.69459844", "0.68879074", "0.6863103", "0.6834736", "0.6732058", "0.67318225", "0.66324526", "0.66284597", "0.6610965", "0.6604012", "0.6543867", "0.65076596", "0.6441952", "0.6434903", "0.6434473", "0.641492", "0.64133...
0.6206223
33
Return a ChemicalMassFlowIndexer that references this object's molar data.
def pHf8(YKHO): try: bMbF = YKHO._data_cache['mass'] except: bBgh = YKHO.chemicals YKHO._data_cache['mass'] = bMbF = oobe.from_data(sw67.from_dict(nor9(YKHO.data.dct, bBgh.MW), bBgh.size), YKHO._phase, bBgh, False) return bMbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pHf8(YKHO):\n try:\n bMbF = YKHO._data_cache['mass']\n except:\n bBgh = YKHO.chemicals\n zNig = bBgh.size\n RSHB = bBgh.MW\n YKHO._data_cache['mass'] = bMbF = txk9.from_data(GVac.from_rows([sw67.from_dict(nor9(YRbF.dct, RSHB), zNig) for YRbF in YKHO.data]), YKHO.phases,...
[ "0.56176096", "0.5561553", "0.5336587", "0.5316509", "0.52759135", "0.5150848", "0.5141311", "0.5130907", "0.5127069", "0.50799567", "0.4900331", "0.4872749", "0.48726016", "0.48726016", "0.48714966", "0.48510545", "0.47927132", "0.47504795", "0.47504795", "0.47504795", "0.47...
0.5627419
0
Return a MassFlowIndexer that references this object's molar data.
def pHf8(YKHO): try: bMbF = YKHO._data_cache['mass'] except: bBgh = YKHO.chemicals zNig = bBgh.size RSHB = bBgh.MW YKHO._data_cache['mass'] = bMbF = txk9.from_data(GVac.from_rows([sw67.from_dict(nor9(YRbF.dct, RSHB), zNig) for YRbF in YKHO.data]), YKHO.phases, bBgh, False...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(YKHO):\n return YKHO.index", "def Vn7Z(YKHO):\n return YKHO.index", "def d6pt(YKHO):\n return YKHO._index", "def d6pt(YKHO):\n return YKHO._index", "def d6pt(YKHO):\n return YKHO._index", "def d6pt(YKHO):\n return YKHO._index", "def d6pt(YKHO):\n return YKHO._index", "de...
[ "0.5643225", "0.5643225", "0.5465154", "0.5465154", "0.5465154", "0.5465154", "0.5465154", "0.5465154", "0.5465154", "0.5465154", "0.5465154", "0.5465154", "0.5465154", "0.543632", "0.5403994", "0.5380274", "0.53714454", "0.53582114", "0.53511673", "0.525902", "0.52517986", ...
0.514635
28
Return a ChemicalVolumetricFlowIndexer that references this object's molar data.
def bzaI(YKHO, t16z): try: qjHC = YKHO._data_cache['vol', t16z] except: bBgh = YKHO._chemicals cAlv = [YRbF.V for YRbF in bBgh] JT9N = YKHO._phase YKHO._data_cache['vol', t16z] = qjHC = HiDL.from_data(sw67.from_dict(qWkc(YKHO.data.dct, t16z, cAlv, None, JT9N, {}), bBgh.si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzaI(YKHO, t16z):\n try:\n qjHC = YKHO._data_cache[t16z]\n except:\n RnoT = YKHO._phases\n bBgh = YKHO._chemicals\n cAlv = [YRbF.V for YRbF in bBgh]\n zNig = bBgh.size\n YKHO._data_cache[t16z] = qjHC = KDqx.from_data(GVac.from_rows([sw67.from_dict(qWkc(YRbF.dct, ...
[ "0.5716781", "0.5351351", "0.5267331", "0.52465904", "0.5042801", "0.50214684", "0.4959102", "0.4895627", "0.48869613", "0.47211167", "0.4713881", "0.47011477", "0.46425217", "0.4640899", "0.46223387", "0.4618841", "0.45911646", "0.45791003", "0.4566672", "0.454923", "0.45467...
0.57009274
1
Returns first task in the individual robot buffer. Task is deleted.
def IJBb(YKHO, MYdN): VTru = YKHO.all_buffers[MYdN] D5gV = VTru[-1] VTru = oyIN.delete(VTru, -1, 0) YKHO.all_buffers[MYdN] = VTru return D5gV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzss(YKHO, MYdN):\n VTru = YKHO.all_buffers[MYdN]\n return VTru[-1]", "def sCUC(YKHO):\n D5gV = YKHO.buffer[0]\n YKHO.buffer = oyIN.delete(YKHO.buffer, 0, 0)\n return D5gV", "def acIM(YKHO, MYdN):\n VTru = YKHO.all_buffers[MYdN]\n nPrm = VTru[0]\n VTru = oyIN.delete(VTru, 0, 0)\n ...
[ "0.80448747", "0.7857006", "0.7391221", "0.7325314", "0.7287126", "0.6595893", "0.65539056", "0.6505673", "0.64575756", "0.63990015", "0.6366266", "0.63554853", "0.6327331", "0.6190272", "0.6144666", "0.61099964", "0.6075297", "0.58957654", "0.58957654", "0.58465374", "0.5834...
0.8743162
0
Returns first task from buffer. Task is deleted.
def sCUC(YKHO): D5gV = YKHO.buffer[0] YKHO.buffer = oyIN.delete(YKHO.buffer, 0, 0) return D5gV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJBb(YKHO, MYdN):\n VTru = YKHO.all_buffers[MYdN]\n D5gV = VTru[-1]\n VTru = oyIN.delete(VTru, -1, 0)\n YKHO.all_buffers[MYdN] = VTru\n return D5gV", "def cntZ(YKHO) -> o2Vr:\n return YKHO._tasks[0]", "def wzss(YKHO, MYdN):\n VTru = YKHO.all_buffers[MYdN]\n return VTru[-1]", "def ...
[ "0.8032802", "0.75806236", "0.72843575", "0.6869653", "0.66180354", "0.6592223", "0.6541647", "0.6520322", "0.6501034", "0.6446639", "0.6446639", "0.64158726", "0.63821", "0.6381821", "0.63805944", "0.63433826", "0.6270199", "0.6243697", "0.62245923", "0.62143934", "0.6198715...
0.77799547
1
Returns first task from buffer, without deletion.
def TRZZ(YKHO): return YKHO.buffer[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJBb(YKHO, MYdN):\n VTru = YKHO.all_buffers[MYdN]\n D5gV = VTru[-1]\n VTru = oyIN.delete(VTru, -1, 0)\n YKHO.all_buffers[MYdN] = VTru\n return D5gV", "def sCUC(YKHO):\n D5gV = YKHO.buffer[0]\n YKHO.buffer = oyIN.delete(YKHO.buffer, 0, 0)\n return D5gV", "def wzss(YKHO, MYdN):\n V...
[ "0.8101873", "0.7679657", "0.749619", "0.7480524", "0.66501075", "0.65765035", "0.65535176", "0.6550029", "0.65141577", "0.6503107", "0.6466393", "0.6466393", "0.6356803", "0.6345803", "0.6271068", "0.6247934", "0.62476796", "0.6222678", "0.62128675", "0.6205022", "0.61794114...
0.6920058
4
Sets goal for a robot according to it's id.
def q_Tz(YKHO, MYdN, D5gV, uQsk): jVwf = YKHO.goal_pubs.keys() XicR = YKHO.goal_pubs.values() for YRbF in range(len(jVwf)): if MYdN == int(jVwf[YRbF]): PrYy = oPVP() PrYy.header.stamp = sQC5.Time.now() PrYy.header.frame_id = '' PrYy.goal_id.stamp = sQC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q_Tz(YKHO, xi3E):\n YKHO._pid_lock.acquire()\n YKHO._goal = xi3E\n YKHO._pid_lock.release()", "def q_Tz(YKHO, **B2fa):\n return YKHO.env.set_goal(**B2fa)", "def q_Tz(YKHO, xi3E: GoalType) -> None:\n YKHO.goal = xi3E", "def xi3E(YKHO, xi3E):\n YKHO._goal = xi3E", "def q_Tz(Wbv7):\n ...
[ "0.67443836", "0.66931903", "0.65935475", "0.6387873", "0.638348", "0.6232021", "0.61506414", "0.5951643", "0.5907818", "0.5769154", "0.5733853", "0.56343824", "0.56246096", "0.55113935", "0.54608816", "0.544337", "0.5394208", "0.53780353", "0.5371298", "0.5362727", "0.533171...
0.711858
0
Returns a tuple which contains arrays current robot positions.
def LIT2(YKHO): LfZl = oyIN.array([]) lzE4 = oyIN.array([]) for YRbF in range(YKHO.no_robots): tgge = '/robot_' + str(YRbF) + '/odom' tO9_ = sQC5.wait_for_message(tgge, NcJD) QOxj = tO9_.pose.pose.position.x SCLJ = tO9_.pose.pose.position.y LfZl = oyIN.append(LfZl, QO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KZ3G(YKHO):\n return oyIN.array(YKHO.env._joint_positions)", "def vdgG(YKHO) -> AzJI[float, oyIN.ndarray]:\n xQu4 = oyIN.array(YKHO._robot.foot_positions(), dtype=YKHO._dtype).flatten()\n return (YKHO._robot.timestamp, xQu4)", "def LRAy(YKHO):\n return oyIN.asarray(YKHO._robot_state.position)",...
[ "0.6968624", "0.68802893", "0.6811756", "0.6726954", "0.6720621", "0.67198586", "0.670981", "0.6704924", "0.6702041", "0.668437", "0.66836894", "0.66658777", "0.6644644", "0.65984565", "0.658718", "0.65806645", "0.6567708", "0.65654165", "0.6547335", "0.6516807", "0.64918536"...
0.67214
4
Create a ray from on origion and direction.
def FIMM(YKHO, hLRM, XSoh): YKHO.origin = oyIN.array(hLRM) YKHO.direction = oyIN.array(XSoh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def teoY(YKHO, s4D9):\n YRbF = s4D9[0]\n r845 = s4D9[1]\n nfCc = YKHO.target - YKHO.eye\n WVKl = oyIN.linalg.norm(nfCc)\n H2v2 = 2 * WVKl * oyIN.tan(YKHO.vfov / 2.0)\n TVTK = YKHO.aspect * H2v2\n LFlW = -1 * TVTK / 2.0\n es2x = -1 * H2v2 / 2.0\n P6bq = YRbF * TVTK + LFlW\n Ty9i = r845...
[ "0.6726092", "0.64626384", "0.6159115", "0.60877067", "0.59894574", "0.5926523", "0.5823216", "0.5804998", "0.58022004", "0.56870705", "0.56365895", "0.56004274", "0.55765533", "0.55624056", "0.5557121", "0.5549887", "0.5541107", "0.5537301", "0.54712886", "0.54691535", "0.54...
0.5487515
18
Retrieve string representation of Atomic User.
def wHJl(YKHO): return 'AtomicUser({}, released={})'.format(YKHO.username, YKHO._released)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return...
[ "0.7453103", "0.7453103", "0.7453103", "0.7453103", "0.7453103", "0.7382493", "0.72445124", "0.7227403", "0.7111447", "0.7111447", "0.7111447", "0.7111447", "0.69991374", "0.6992166", "0.69912004", "0.6980349", "0.69732285", "0.6931813", "0.6916879", "0.69160384", "0.68891644...
0.68784946
21
Hides the software keyboard on the device. (optional) In iOS, use `key_name` to press a particular key, ex. `Done`. In Android, no parameters are used.
def muIs(YKHO, YYUP=None, zAat=None): if YYUP is not None: E_qD = YYUP.driver else: E_qD = YKHO._current_application() E_qD.hide_keyboard(zAat)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bLzZ(YKHO, zAat: Optional[str]=None, H5ew: Optional[str]=None, OuMq: Optional[str]=None) -> 'WebDriver':\n LsGR = 'mobile: hideKeyboard'\n try:\n YKHO.assert_extension_exists(LsGR).execute_script(LsGR, {**({'keys': [H5ew or zAat]} if H5ew or zAat else {})})\n except RRX0:\n nPrm: cuzp[st...
[ "0.77006596", "0.6021652", "0.54935855", "0.54915965", "0.5446831", "0.5446831", "0.54330564", "0.54146785", "0.5396251", "0.5385671", "0.5385671", "0.5351623", "0.5299294", "0.5295987", "0.5239104", "0.51872176", "0.5186777", "0.51774293", "0.51689065", "0.51521283", "0.5151...
0.7916305
0
Initializes a Status, but is actually unused. Instead you should
def FIMM(YKHO: 'Status') -> None: raise NotImplementedError('Please instantiate one of the `Status` subclasses:\n\n\t- `Failed`\n\t- `NotStarted`\n\t- `InProgress(progress)`\n\t- `Succeeded`')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, *, jGRS: Optional[str]=None):\n if jGRS is None:\n jGRS = 'disabled'\n if jGRS is not None:\n qe4Y.set(Ro_8, 'status', jGRS)", "def FIMM(Ro_8, *, jGRS: Optional[str]=None, type: Optional[str]=None):\n if jGRS is None:\n jGRS = 'disabled'\n if jGRS is not None:\n ...
[ "0.7733864", "0.7512126", "0.75076115", "0.740955", "0.7241169", "0.7056067", "0.70380515", "0.7006886", "0.6964561", "0.69371766", "0.69135594", "0.69135594", "0.69135594", "0.69135594", "0.69135594", "0.69135594", "0.69135594", "0.69052196", "0.68986386", "0.6813976", "0.68...
0.81595194
0
Determines if two status are equal. Two statues are considered equal if they are of the same Status type; if both `Status`es are `InProgress`, then their progress values must compare equal also.
def xa14(YKHO: 'Status', Elif: 'Status') -> bool: NAsW = type(YKHO) gpPR = type(Elif) if NAsW is vDl8 and gpPR is vDl8: return YKHO.progress == Elif.progress else: return NAsW == gpPR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, fs9Q):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def xa14(YKHO, Elif):\n if not isinstance(Elif, mQ8C):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def xa14(YKHO, Elif):\n if not isinstance(Elif, YRgt):\n...
[ "0.73409915", "0.71478164", "0.68326336", "0.68325627", "0.6828575", "0.6799611", "0.67651767", "0.6650099", "0.663792", "0.66026837", "0.6585347", "0.6560694", "0.6519736", "0.64620346", "0.6334076", "0.62699586", "0.6169474", "0.61421174", "0.6139374", "0.6112142", "0.60678...
0.81159604
0
Determines if this `Status` is in progress or not. This is different from a comparison to an `InProgress` because said comparison would require both `Status` to have the same `progress` values (if they are both indeed `InProgress`), while this method returns true for any `InProgress` progress value.
def jh3o(YKHO: 'Status') -> bool: return isinstance(YKHO, vDl8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO: 'Status', Elif: 'Status') -> bool:\n NAsW = type(YKHO)\n gpPR = type(Elif)\n if NAsW is vDl8 and gpPR is vDl8:\n return YKHO.progress == Elif.progress\n else:\n return NAsW == gpPR", "def ZdZa(YKHO):\n return YKHO.progress == 'Complete'", "def b8WX(YKHO) -> bool:\n ...
[ "0.6593676", "0.6345074", "0.6344414", "0.6344414", "0.6344414", "0.6344414", "0.6319323", "0.62467813", "0.5986506", "0.5957657", "0.5918512", "0.58473325", "0.5845322", "0.5829266", "0.58214915", "0.58043075", "0.5737248", "0.5733746", "0.5689461", "0.5687277", "0.5666091",...
0.78564006
0
Returns the string representation of this `Failure` `Status`.
def wHJl(YKHO: 'Failed') -> str: return 'Failed()'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '\\n\\n'.join(YKHO.failures)", "def zAg0(YKHO):\n rhwM = '({0})\\nReason: {1}\\n'.format(YKHO.status, YKHO.reason)\n if YKHO.headers:\n rhwM += 'HTTP response headers: {0}\\n'.format(YKHO.headers)\n if YKHO.body:\n rhwM += 'HTTP response body: {0}\\n'.format(YKH...
[ "0.77257514", "0.72499794", "0.7242197", "0.7242197", "0.7242197", "0.7242197", "0.71567136", "0.70649564", "0.7063384", "0.7063384", "0.7063384", "0.7052249", "0.7034818", "0.6982446", "0.6970621", "0.6963669", "0.69426847", "0.6931515", "0.68622786", "0.6855707", "0.6794591...
0.7053334
11
Returns the string representation of this `NotStarted` `Status`.
def wHJl(YKHO: 'NotStarted') -> str: return 'NotStarted()'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EUmI(YKHO):\n if YKHO.downloaded == 0:\n return '[Starting... ]'\n return '[%s, %s, %s]' % YKHO.get_status()", "def q44o(YKHO, KAOR):\n return KAOR.get_status_string()", "def zAg0(YKHO):\n return YKHO.status_text", "def zAg0(YKHO):\n y1e_ = ''\n y1e_ += '\\nInterfaceStatus [ ' + ...
[ "0.77509296", "0.72206014", "0.6962406", "0.69475144", "0.69259286", "0.692106", "0.692106", "0.692106", "0.6907531", "0.69062734", "0.68426645", "0.68326247", "0.6829954", "0.68250954", "0.68156147", "0.6750187", "0.6736905", "0.6733693", "0.6731404", "0.6716653", "0.6716653...
0.78173107
0
Returns the string representation of this `InProgress` `Status`.
def wHJl(YKHO: 'InProgress') -> str: return f'InProgress({YKHO.progress})'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EUmI(YKHO):\n if YKHO.downloaded == 0:\n return '[Starting... ]'\n return '[%s, %s, %s]' % YKHO.get_status()", "def zAg0(YKHO):\n y1e_ = ''\n y1e_ += '\\nInterfaceStatus [ ' + YKHO.interface_name + ' ]\\n'\n y1e_ += '\\tLinkState : ' + str(YKHO.InterfaceState.enumval(YKHO.link)) ...
[ "0.7800333", "0.7232849", "0.7208602", "0.70328575", "0.680751", "0.68061364", "0.6797123", "0.6787951", "0.6785813", "0.6751872", "0.6751872", "0.6751872", "0.6749815", "0.6749815", "0.6749815", "0.6749815", "0.6749815", "0.6749815", "0.67199665", "0.6706302", "0.670496", ...
0.8420762
0
Returns the string representation of this `Succeeded` `Status`.
def wHJl(YKHO: 'Succeeded') -> str: return 'Succeeded()'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OTTu(Emd4):\n return f'Successfully performed \"{Emd4.display_name.lower()}\"'", "def EUmI(YKHO):\n if YKHO.downloaded == 0:\n return '[Starting... ]'\n return '[%s, %s, %s]' % YKHO.get_status()", "def GuCi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'status_message')", "def Hqe...
[ "0.6830981", "0.67693746", "0.6734282", "0.66141194", "0.65933067", "0.6506182", "0.6493938", "0.64815587", "0.6469697", "0.64494514", "0.64494514", "0.64494514", "0.6377693", "0.6371968", "0.6348982", "0.6348982", "0.63412035", "0.634012", "0.63318545", "0.63318545", "0.6331...
0.8132395
0
Gets HTML standings table
def tGVd(YKHO): YKHO.standings = YKHO.soup.find('table', id='standingsTable')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fuxJ(YKHO):\n MOPg = {'Content-type': 'application/x-www-form-urlencoded', 'Accept': 'text/plain', 'User-Agent': Lb1u}\n qv1X = YKHO.session.get('http://' + YKHO.domain + '/standings.phtml', headers=MOPg).content\n Z9JV = rKuS(qv1X, 'html.parser')\n tyNF = Z9JV.find('table', {'id': 'tablestandings'...
[ "0.75585085", "0.69713396", "0.6739402", "0.641833", "0.6333908", "0.63318825", "0.62906903", "0.6253942", "0.6233505", "0.62233174", "0.6205858", "0.6203317", "0.61881346", "0.61482185", "0.6146875", "0.6112345", "0.6097109", "0.60647565", "0.6005432", "0.5987025", "0.598594...
0.755721
1
Gets HTML cumulative stats table
def DlQp(YKHO): YKHO.stats = YKHO.soup.find('table', id='statsTable')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r0z8(YKHO):\n _R2e = [oykL('table')]\n with YKHO.connection as NCls:\n for exwG in NCls.execute('SELECT * FROM cache'):\n _R2e.append(\"<table class='climetlab'>\")\n _R2e.append(\"<td><td colspan='2'>%s</td></tr>\" % (exwG['path'],))\n for G1Hx in [WKvO for WKvO i...
[ "0.6796021", "0.63996667", "0.6175595", "0.61329174", "0.6100673", "0.6094698", "0.6058827", "0.60511935", "0.60229", "0.5993624", "0.5987919", "0.59840375", "0.59793216", "0.595735", "0.5949419", "0.5934658", "0.5930337", "0.59065324", "0.5865028", "0.58387583", "0.58330786"...
0.6549288
1
Gets the end_action of this SubscriptionSuspensionCreate. When the suspension reaches the planned end date the end action will be carried out. This action is only executed when the suspension is ended automatically based on the end date.
def PROF(YKHO): return YKHO._end_action
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PROF(YKHO, PROF):\n if PROF is None:\n raise ValueError('Invalid value for `end_action`, must not be `None`')\n YKHO._end_action = PROF", "def drdV(YKHO):\n return YKHO._planned_end_date", "def Os4s(YKHO):\n return YKHO._end", "def Os4s(YKHO) -> qcWV:\n return YKHO._end", "def KhB...
[ "0.6143122", "0.5793038", "0.5673183", "0.55080134", "0.5461245", "0.5461245", "0.5461245", "0.545847", "0.54330206", "0.54330206", "0.5424896", "0.5364844", "0.5364844", "0.53592825", "0.5262286", "0.5255115", "0.5213438", "0.5212324", "0.51485586", "0.5137694", "0.51369447"...
0.6580785
0
Gets the planned_end_date of this SubscriptionSuspensionCreate. The planned end date of the suspension identifies the date on which the suspension will be ended automatically.
def drdV(YKHO): return YKHO._planned_end_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drdV(YKHO, drdV):\n if drdV is None:\n raise ValueError('Invalid value for `planned_end_date`, must not be `None`')\n YKHO._planned_end_date = drdV", "def LTff(YKHO):\n return YKHO._planned_termination_date", "def KhBf(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'end_date')", "def KhBf...
[ "0.67940325", "0.6618622", "0.6293864", "0.6293864", "0.6230565", "0.6230565", "0.6213361", "0.6213361", "0.6213361", "0.6192062", "0.6126461", "0.6047898", "0.6047435", "0.6009267", "0.5971236", "0.596319", "0.5941742", "0.59058607", "0.58910954", "0.58020884", "0.58003604",...
0.791573
0
Sets the planned_end_date of this SubscriptionSuspensionCreate. The planned end date of the suspension identifies the date on which the suspension will be ended automatically.
def drdV(YKHO, drdV): if drdV is None: raise ValueError('Invalid value for `planned_end_date`, must not be `None`') YKHO._planned_end_date = drdV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def opOC(YKHO, KhBf):\n FqR3 = None\n if KhBf != '':\n FqR3 = KhBf\n else:\n FqR3 = YKHO.get_date(last_day_of_last_month=True)\n YKHO.set_value_into_input_field(YKHO.statement_end_date_locator, FqR3)\n return FqR3", "def LTff(YKHO, LTff):\n YKHO._planned_termination_date = LTff", ...
[ "0.67294335", "0.6711568", "0.65507555", "0.6507257", "0.64512366", "0.6432217", "0.6432217", "0.6432217", "0.6432217", "0.6432217", "0.6432217", "0.6432217", "0.6432217", "0.6384521", "0.6304877", "0.6233103", "0.6215956", "0.6067937", "0.59753764", "0.5912095", "0.5822383",...
0.81324995
0
Gets the subscription of this SubscriptionSuspensionCreate.
def mouR(YKHO): return YKHO._subscription
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mouR(YKHO):\n return shrz(YKHO)", "def nxRy(YKHO):\n if not hasattr(YKHO, '_subscription'):\n YKHO._subscription = YKHO.admin.subscriptions.select_related('plan').get_overlapping(YKHO.admin_id, xjlN(YKHO.period, YKHO.period_end, bounds='[]'))\n return YKHO._subscription", "def nxRy(YKHO):\n...
[ "0.77255374", "0.7343765", "0.73032916", "0.6958841", "0.6958841", "0.6877708", "0.6694096", "0.6613965", "0.65510744", "0.6282433", "0.62387437", "0.623199", "0.6186334", "0.61782557", "0.608304", "0.60731006", "0.6012119", "0.6002306", "0.5984357", "0.59093326", "0.58866084...
0.76275134
2
Sets the subscription of this SubscriptionSuspensionCreate.
def mouR(YKHO, mouR): if mouR is None: raise ValueError('Invalid value for `subscription`, must not be `None`') YKHO._subscription = mouR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mouR(YKHO, mouR):\n YKHO._subscription = mouR", "def JuHa(YKHO, JuHa):\n YKHO._subscription_id = JuHa", "def JuHa(YKHO, JuHa):\n YKHO._subscription_id = JuHa", "def JuHa(YKHO, JuHa):\n YKHO._subscription_id = JuHa", "def ix9u(YKHO):\n try:\n finE = YKHO.client.get_subscription(sub...
[ "0.73514724", "0.65007716", "0.65007716", "0.65007716", "0.6084177", "0.6023973", "0.60062104", "0.5801773", "0.57880664", "0.55934745", "0.5577292", "0.5570897", "0.5563788", "0.54974383", "0.54484826", "0.54439104", "0.54293483", "0.5423903", "0.5307691", "0.5285355", "0.52...
0.71707314
1
Get inputs from CVPR2018 training datasets.
def Zo7w(K7RJ, JZkm, H2v2, TVTK, Ep8u): sVsK = ZylS.convert_to_tensor(SC2F.glob(K7RJ), dtype=ZylS.string) M46o = ZylS.convert_to_tensor(SC2F.glob(JZkm), dtype=ZylS.string) uYBE = ZylS.train.slice_input_producer([sVsK, M46o], shuffle=True) fw1b = ZylS.read_file(uYBE[0]) c6ZN = ZylS.read_file(uYBE[1])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7VS():\n WKvO = ZylS.constant(eFJ4(cC56))\n LVAh = ZylS.constant(VJv0.values)\n return (WKvO, LVAh)", "def vGUt(YKHO, PU1l):\n return PU1l", "def svcT(_Fei):\n WbAn = SoW3.get_input_data(_Fei, pattern=_Fei.get('pattern'), ignore=_Fei.get('ignore'))\n dJ1p = list(balR(WbAn, 'tag').keys())...
[ "0.7267262", "0.6862792", "0.6677757", "0.6624153", "0.64922464", "0.64844185", "0.64419776", "0.6424611", "0.6408966", "0.6385917", "0.6360107", "0.63272244", "0.6323961", "0.6319925", "0.6315343", "0.6307562", "0.62912107", "0.6275365", "0.62569296", "0.62291443", "0.622914...
0.5937353
79
returns a list of legal moves for the not occupied cell
def nGf9(YKHO): oLdq = [] dSIn = YKHO.tiles.index(0) if dSIn == 0: oLdq.append('Down') oLdq.append('Right') elif dSIn == 1: oLdq.append('Down') oLdq.append('Left') oLdq.append('Right') elif dSIn == 2: oLdq.append('Down') oLdq.append('Left') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nGf9(YKHO):\n return [Z9rn for Z9rn in range(YKHO.getWidth()) if len([Mkmy for Mkmy in range(YKHO.getHeight()) if YKHO.cell[Z9rn][Mkmy] == KAvf]) > 0]", "def dgbU(YKHO):\n oLdq = []\n KzJa = [YKHO.turn]\n if YKHO.turn == j6j3:\n KzJa.extend((_1Sw, Ntwz))\n WhY1 = oyIN.nditer(YKHO.board_...
[ "0.81730956", "0.80705214", "0.7954835", "0.7814239", "0.77602655", "0.7739612", "0.7704667", "0.76881146", "0.7617998", "0.7595666", "0.758092", "0.7550935", "0.74787974", "0.745382", "0.74527174", "0.7448315", "0.74417365", "0.7420594", "0.7418684", "0.741776", "0.74003756"...
0.79470205
3
returns the state with the smallest value
def AT8J(YKHO): hkxX = [ZfUD[0] for ZfUD in YKHO.items] _eVy.heapify(hkxX) CL9V = _eVy.heappop(hkxX) YRbF = YKHO.getItemByValue(CL9V) YKHO.items.remove(YRbF) return YRbF[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dMyF(YKHO) -> float:\n raise NotImplementedError", "def dgIT(Ov5A):\n if gVdZ(Ov5A):\n return 1\n return min((bQ6z(Ov5A.forecast_move(BZN_)) for BZN_ in Ov5A.get_legal_moves()))", "def dgIT(YKHO, QTBn, E6Xd, d4aX, i0Hi):\n if QTBn.terminal_test():\n return QTBn.utility(0)\n if ...
[ "0.80452305", "0.7468442", "0.7205939", "0.69580483", "0.68440306", "0.6790122", "0.6790122", "0.6736419", "0.6714985", "0.6705703", "0.66881603", "0.6682412", "0.6682401", "0.6672303", "0.66520995", "0.66473675", "0.66272545", "0.6601216", "0.6587398", "0.6544434", "0.653136...
0.0
-1
Returns true if (r,c) is on board, false otherwise.
def SSUM(YKHO, Mkmy, Z9rn): return 0 <= Mkmy <= 7 and 0 <= Z9rn <= 7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SSUM(WKvO: int, LVAh: int) -> bool:\n return WKvO >= 0 and WKvO < FNt1 and (LVAh < K9Rh)", "def JYgA(YKHO, rdlD, fvDH):\n return 0 <= rdlD < YKHO.rows and 0 <= fvDH < YKHO.cols", "def GKu2(YKHO, oeNL):\n YRbF, r845 = oeNL\n return 0 <= YRbF < jRFz and 0 <= r845 < yXc0", "def _NN1(YKHO, Mkmy, ...
[ "0.7762859", "0.75517225", "0.75112927", "0.74653816", "0.7369882", "0.73649544", "0.73205835", "0.7095848", "0.70651495", "0.70537746", "0.70246136", "0.7009773", "0.6989529", "0.6960644", "0.6959121", "0.6956892", "0.69516766", "0.6949291", "0.691275", "0.6909919", "0.69020...
0.90845925
0
Returns the color value of self_color's opponent.
def OfFN(YKHO, ZNFZ): return abs(ZNFZ - 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OfFN(YKHO, JGOR):\n if JGOR == Zt2U.BLACK:\n return Zt2U.WHITE\n elif JGOR == Zt2U.WHITE:\n return Zt2U.BLACK\n else:\n raise NotImplementedError()", "def oyg0(YKHO):\n return YKHO._color", "def NbSO(YKHO):\n return YKHO.players[YKHO.getCurrentPlayer()].getColor()", "d...
[ "0.75106376", "0.74137187", "0.7160636", "0.7123983", "0.69804937", "0.6936204", "0.6918651", "0.6908823", "0.6872566", "0.6858778", "0.684322", "0.684322", "0.684322", "0.684322", "0.6842772", "0.6800654", "0.6800654", "0.6766684", "0.66826147", "0.6656713", "0.6648412", "...
0.8906139
0
Returns all moves self_color could make on the given board.
def k287(YKHO, iBIi, ZNFZ): yTej = [] RA_F = [(0, -1), (-1, -1), (-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1)] for Mkmy in range(len(iBIi)): for Z9rn in range(len(iBIi[Mkmy])): if iBIi[Mkmy][Z9rn] == ZNFZ: for YRbF in range(0, 8): jNOo = (Mkmy, Z9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _I3j(YKHO):\n oLdq = []\n for YRbF in range(8):\n for r845 in range(8):\n qfpW = YKHO.board[YRbF][r845][0]\n if qfpW == 'b' and (not YKHO.turn_white) or (qfpW == 'w' and YKHO.turn_white):\n SfI4 = YKHO.board[YRbF][r845][1]\n if SfI4 == 'r':\n ...
[ "0.7883645", "0.767973", "0.75464517", "0.7480288", "0.74703455", "0.7433279", "0.73575103", "0.7273743", "0.72572374", "0.7243118", "0.723341", "0.71530664", "0.7130875", "0.71287894", "0.7128543", "0.7122341", "0.7116005", "0.7108686", "0.70947456", "0.7019704", "0.7010493"...
0.84355676
0
Visualize RGB image and labeled annotations with predicted annotations by the model. A visual aid function to determine how the model is performing
def rzaM(eJh7, KCHu, r8hN, vC9B, Ae9w, K56A, FWQM): LZpg = QrM1.figure(figsize=(20, 10)) QrM1.subplot(1, 7, 1) QrM1.title('Original image') QrM1.imshow(eJh7) QrM1.subplot(1, 7, 2) QrM1.title('S image') QrM1.imshow(KCHu) QrM1.subplot(1, 7, 3) QrM1.title('S Pred image') QrM1.imshow...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO):\n YKHO.canv.update()\n hnFq = YKHO.canv.postscript(colormode='mono')\n VXjJ = hnIv.open(xDSY.BytesIO(hnFq.encode('utf-8')))\n VXjJ.save('result.png')\n WKvO = N33X.transform_image(YKHO)\n fCgN = YKHO.multivariate_model.predict([WKvO])\n TR6T = map(oyIN.argmax, fCgN)\n TR6T =...
[ "0.72029877", "0.7191202", "0.7151924", "0.71277094", "0.7096412", "0.6998695", "0.6995695", "0.69935", "0.6973984", "0.69456923", "0.69168067", "0.6891744", "0.6878313", "0.68615746", "0.6814774", "0.68074894", "0.676327", "0.67550087", "0.67531246", "0.6724136", "0.6683504"...
0.6858227
14
Selects the next shot to take. Returns A shot of the form LetterNumber.
def IYAO(YKHO): raise NotImplementedError('Subclass needs to implement this')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dHcP(YKHO):\n YKHO.filterPossibleWords()\n TdDJ = len(YKHO.unusedLetters) * [0]\n for GIN8 in YKHO.wordList:\n for YRbF in range(len(YKHO.unusedLetters)):\n if YKHO.unusedLetters[YRbF] not in YKHO.currentBoard and YKHO.unusedLetters[YRbF] in GIN8:\n TdDJ[YRbF] += 1\n ...
[ "0.63195527", "0.62941086", "0.61875874", "0.6057448", "0.6051097", "0.58360916", "0.5768136", "0.57184166", "0.569278", "0.5673297", "0.5642426", "0.5557488", "0.55453634", "0.5520847", "0.5490991", "0.54806745", "0.5470225", "0.5425621", "0.5401744", "0.53676975", "0.530976...
0.50230753
48
The size of the world communicator.
def aDYX(YKHO): return YKHO._wsize
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aDYX() -> int:\n return pImw.get_world_size() if pImw.is_initialized() else 1", "def OZRt() -> int:\n return KjD_.get_world_size()", "def zNig():\n return int(Hy7s.environ['WORLD_SIZE'])", "def OZRt():\n if not ht2j.distributed.is_available():\n return 1\n if not ht2j.distributed.is...
[ "0.8183484", "0.8161533", "0.7968778", "0.7838551", "0.7544292", "0.75160927", "0.7281078", "0.72509223", "0.7210917", "0.7210917", "0.7210917", "0.7210812", "0.72054684", "0.7197497", "0.71910495", "0.71712273", "0.7170887", "0.7160263", "0.7158934", "0.71567965", "0.7153045...
0.81939703
0
The group containing this process.
def uOe2(YKHO): return YKHO._group
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aiHR(YKHO):\n return YKHO._group", "def aiHR(YKHO):\n return YKHO.variables.get('group')", "def uOe2(YKHO):\n if URVp:\n raise NotImplementedError('XXX win32')\n import grp\n bTKY = P1dF.checked_call(grp.getgrgid, YKHO.gid)\n return bTKY[0]", "def uOe2(YKHO) -> str:\n return q...
[ "0.83660746", "0.80787057", "0.80396575", "0.7910646", "0.78766567", "0.78262997", "0.77977085", "0.7738597", "0.7725764", "0.7723853", "0.77220726", "0.76527077", "0.76197624", "0.76055884", "0.76055884", "0.76055884", "0.7604678", "0.75694543", "0.74642473", "0.74582726", "...
0.84294987
2
The size of the group containing this process.
def BJJz(YKHO): return YKHO._gsize
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aWCD(YKHO):\n return len(YKHO.groups)", "def m3tZ(YKHO):\n return YKHO.group_sizes() / YKHO.group_sizes().sum()", "def _1k0(zZ1q):\n return 'Number of groups'", "def zNig(YKHO):\n return YKHO.size_number", "def wXl7(YKHO):\n return YKHO.g_sizes", "def H4t6(YKHO):\n return YKHO.Size_...
[ "0.7482762", "0.7292368", "0.7252224", "0.7235323", "0.72331035", "0.71471894", "0.7062642", "0.6934623", "0.68790656", "0.68790656", "0.68790656", "0.68790656", "0.68790656", "0.68790656", "0.68790656", "0.68790656", "0.68790656", "0.68790656", "0.68790656", "0.68790656", "0...
0.8637419
0
The communicator shared by processes within this group.
def i9IO(YKHO): return YKHO._gcomm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZ1r(YKHO):\n return YKHO._comm", "def YaId(YKHO):\n return YKHO.comm", "def Ykyp():\n JZ1r = Gm6g.COMM_WORLD", "def _AKB(YKHO):\n return YKHO._mpis.comm", "def YaId() -> a5v_:\n return NaVy", "def rKLW(YKHO):\n return YKHO._shared", "def iEm5(YKHO):\n return zRLp.HypreParMatri...
[ "0.7563568", "0.7487465", "0.7086892", "0.69438076", "0.67658746", "0.6197723", "0.6191338", "0.6111699", "0.60897946", "0.60864025", "0.5912348", "0.5875417", "0.5834571", "0.57805294", "0.5730069", "0.5687822", "0.56246746", "0.55881655", "0.55529815", "0.55375487", "0.5537...
0.74839085
2
Distribute indivisible blocks of items between groups. Given some contiguous blocks of items which cannot be subdivided, distribute these blocks to the specified number of groups in a way which minimizes the maximum total items given to any group. Optionally weight the blocks by a power of their size when computing the...
def aHgp(maxY, moMn, pow=1.0): eHxA = oyIN.array(maxY, dtype=oyIN.int64) _mSQ = oyIN.power(eHxA.astype(oyIN.float64), pow) dW1y = float(uQyp(_mSQ.astype(oyIN.int64), moMn)) pan_ = oyIN.sum(_mSQ) / moMn pImw = [] l4XF = 0 VkJ9 = 0.0 NRWD = 0 for DpUl in range(0, _mSQ.shape[0]): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xiuc(H4X_, moMn):\n U5bT = []\n for YRbF in range(moMn):\n zdCo = H4X_ // moMn\n l4XF = 0\n tEZc = H4X_ % moMn\n if YRbF < tEZc:\n zdCo = zdCo + 1\n l4XF = YRbF * zdCo\n else:\n l4XF = (zdCo + 1) * tEZc + zdCo * (YRbF - tEZc)\n U5...
[ "0.689245", "0.61154896", "0.5870437", "0.5869391", "0.58351797", "0.58224726", "0.57872975", "0.57095844", "0.5696942", "0.56960577", "0.56809574", "0.5656975", "0.5649476", "0.5628034", "0.5624336", "0.56135494", "0.56011015", "0.55793", "0.5571817", "0.5562723", "0.5553862...
0.7222635
0
Clear the dictionary of all observations, so that they can be garbage collected.
def Y7Bk(YKHO): for NZQz in YKHO.obs: NZQz.clear() return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7Bk():\n global d\n for H5ew in Csk6.keys():\n del Csk6[H5ew]", "def Y7Bk(YKHO):\n YKHO._map = {}", "def NzkA(YKHO):\n YKHO.pDict.clear()", "def Y7Bk(YKHO):\n for H5ew in YKHO.__data.keys():\n del YKHO.__data[H5ew]", "def Y7Bk(YKHO) -> None:\n YKHO.data = {}\n YKHO.s...
[ "0.7594992", "0.7561573", "0.7496599", "0.74812955", "0.74641746", "0.7425582", "0.7419749", "0.732634", "0.73161453", "0.7262515", "0.7202341", "0.716923", "0.7110474", "0.7099835", "0.70748186", "0.7032782", "0.7024013", "0.70146656", "0.7006932", "0.69972134", "0.6991908",...
0.73072124
9
Restore weight. Full or partial depending on `only_backbone`.
def _RrT(Zxma, kodP, YdfT=False): U3Fm = False if YdfT else True xA7f = ht2j.load(kodP) af80 = U8Lr() for G1Hx, Ty9i in xA7f.items(): sdCG = G1Hx[:7] if sdCG == 'module.': mWFP = G1Hx[7:] else: mWFP = G1Hx if YdfT: if 'Head' in mWFP.spl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBIE(YKHO):\n YKHO.weight = YKHO._backup_weight", "def UMkV(YKHO):\n YKHO.policy_backbone.reset_weights()\n YKHO.value_backbone.reset_weights()\n YKHO.action_head.reset_weights()\n YKHO.critic_head.reset_weights()", "def yLPx(Zxma, kodP, YdfT=False):\n U3Fm = False if YdfT else True\n ...
[ "0.6937308", "0.65461177", "0.6132463", "0.60327536", "0.5945514", "0.5839336", "0.5760216", "0.55564004", "0.5513939", "0.54683304", "0.5432421", "0.54305696", "0.5413771", "0.5335398", "0.5296406", "0.52838504", "0.52414125", "0.5234425", "0.52273256", "0.5211897", "0.52041...
0.0
-1
Restore weight. Full or partial depending on `only_backbone`.
def yLPx(Zxma, kodP, YdfT=False): U3Fm = False if YdfT else True xA7f = ht2j.load(kodP) af80 = U8Lr() for G1Hx, Ty9i in xA7f.items(): sdCG = G1Hx[:7] if sdCG == 'module.': mWFP = G1Hx[7:] else: mWFP = G1Hx if YdfT: if 'Head' in mWFP.spl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBIE(YKHO):\n YKHO.weight = YKHO._backup_weight", "def UMkV(YKHO):\n YKHO.policy_backbone.reset_weights()\n YKHO.value_backbone.reset_weights()\n YKHO.action_head.reset_weights()\n YKHO.critic_head.reset_weights()", "def wBIE(YKHO):\n YKHO.u = YKHO.ub.copy()\n YKHO.w = YKHO.wb.copy()\n...
[ "0.6935928", "0.6545287", "0.6032289", "0.59438264", "0.58387244", "0.5758846", "0.55549663", "0.5514295", "0.54672194", "0.5430779", "0.5430014", "0.54129845", "0.5334053", "0.52967894", "0.5283779", "0.5241541", "0.52337617", "0.52278304", "0.5210166", "0.520315", "0.520071...
0.6132382
2
Returns a dictionary with changed, new and missing files/folders
def QeYi(YKHO): ucBt, i7US = YKHO.get_root_data() SFkK, qtJO, dNqx = YKHO.get_files_diff(i7US) SyeG, Uvro = YKHO.get_folders_diff(ucBt) if any([SyeG, Uvro, SFkK, qtJO, dNqx]): return dict(removed_folders=SyeG, added_folders=Uvro, removed_files=SFkK, added_files=qtJO, moved_files=dNqx) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PiEx(YKHO):\n BdN0 = []\n llHi = []\n AaTp = []\n _AKB = YKHO.parent_tag\n for t_yv, gAll in YKHO.checksum['files'].items():\n if t_yv not in _AKB['files']:\n BdN0.append(t_yv)\n elif gAll['checksum'] != _AKB['files'][t_yv]['checksum']:\n llHi.append(t_yv)\n ...
[ "0.7588312", "0.74022776", "0.7129245", "0.6865932", "0.6752932", "0.6674316", "0.6663881", "0.6631898", "0.644851", "0.6409367", "0.638209", "0.63302857", "0.62664694", "0.6260313", "0.6179993", "0.61568844", "0.6145319", "0.61397666", "0.6132889", "0.61106265", "0.6086687",...
0.6853338
4
get top k largest elements from each corressponding rows of matrix
def u6pE(SppC, G1Hx): assert G1Hx <= SppC.shape[1] vvyc = oyIN.argpartition(SppC, -G1Hx)[:, -G1Hx:].flatten() ZsXR = oyIN.repeat(range(SppC.shape[0]), G1Hx) T6S7 = SppC[ZsXR, vvyc] return (T6S7, vvyc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vGcY(zq5a, vb7U, G1Hx):\n i13C = oyIN.dot(vb7U, zq5a)\n FCKa = oyIN.argsort(i13C)\n FCKa = FCKa[-1:-1 - G1Hx:-1]\n return (FCKa, i13C)", "def H42b(r8hN, G1Hx):\n OJy8 = r8hN.tolil()\n NmYP = [zdF5(Csk6, Mkmy, G1Hx) for Csk6, Mkmy in zip(OJy8.data, OJy8.rows)]\n return zip(*NmYP)", "def...
[ "0.78078854", "0.7482105", "0.7286839", "0.71473676", "0.7088986", "0.6973559", "0.6957784", "0.6926557", "0.68686914", "0.68671626", "0.6864181", "0.6754134", "0.66880155", "0.6621688", "0.65671676", "0.6561875", "0.65489244", "0.6497595", "0.646024", "0.6455032", "0.6449004...
0.76114184
1
Computes the average precision at k. This function computes the average prescision at k between two lists of items.
def yYKJ(n5sN, PjQx, G1Hx=10): if len(PjQx) > G1Hx: PjQx = PjQx[:G1Hx] p1kx = 0.0 yAQO = 0.0 for YRbF, XP5J in enumerate(PjQx): if XP5J in n5sN and XP5J not in PjQx[:YRbF]: yAQO += 1.0 p1kx += yAQO / (YRbF + 1.0) if not n5sN: return 0.0 return p1kx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('Relevance score length < k')\n return oyIN.mean(Mkmy)", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx...
[ "0.7475594", "0.74314404", "0.7328193", "0.7280659", "0.7271064", "0.7129832", "0.7087148", "0.6987466", "0.69284856", "0.6889254", "0.68219167", "0.6814678", "0.68059695", "0.6796172", "0.6774947", "0.6767025", "0.6767025", "0.676344", "0.66914594", "0.6675632", "0.66103244"...
0.6199515
35
Plot a similarity matrix between a list of clusterings, using the provided scoring function.
def qHl6(ZsKq: list, SrUS: Callable[[object, object], object]) -> object: mR5U = [] for Z9rn in ZsKq: RYTy = Z9rn.get_description() for iYf1 in ZsKq: kLHJ = iYf1.get_description() mR5U.append([RYTy, kLHJ, SrUS(Z9rn, iYf1).score]) jQ3Z = rLdf.DataFrame(columns=['com1',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def akzu(dixj, Crrw, p1kx):\n ogMi = {G1Hx: YRbF for YRbF, G1Hx in enumerate(Crrw)}\n s_8f, X17R = (min(dixj)[0], max(dixj)[0])\n _BwQ = lambda WKvO: 0.8 * (WKvO - X17R) / (s_8f - X17R) + 0.5\n ZTwv = oyIN.zeros((8, len(ogMi)))\n ogMi = {G1Hx: YRbF for YRbF, G1Hx in enumerate(Crrw)}\n for YRbF, (...
[ "0.6115021", "0.59878033", "0.59782255", "0.5956138", "0.59467465", "0.5874676", "0.586053", "0.5834884", "0.57424116", "0.573193", "0.5709266", "0.56929475", "0.5670776", "0.5646054", "0.5634125", "0.5631307", "0.5604918", "0.5588165", "0.55874056", "0.5565134", "0.5547118",...
0.8091768
0
Get the height of the board.
def VAHQ(YKHO): return YKHO.grid_height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v2(YKHO):\n return YKHO.board.shape[0]", "def bAiv(YKHO):\n return YKHO.height", "def bAiv(YKHO):\n return YKHO.height", "def bAiv(YKHO):\n return YKHO._height", "def VAHQ(YKHO):\n return YKHO._height", "def VAHQ(YKHO):\n return YKHO._height", "def xglF(YKHO):\n return YKHO._...
[ "0.85060894", "0.7825432", "0.7825432", "0.7789064", "0.7786957", "0.7786957", "0.7765075", "0.7765075", "0.7765075", "0.7765075", "0.7763559", "0.77604455", "0.77573603", "0.7754367", "0.7740941", "0.77368295", "0.77191436", "0.769409", "0.7691176", "0.7691176", "0.7691176",...
0.0
-1
Time series duration (time spanned between first and last samples).
def WbTE(YKHO) -> float: return YKHO.delta_t * len(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EdTY(YKHO):\n return float(YKHO.time.iloc[-1] - YKHO.time.iloc[0])", "def WbTE(YKHO):\n XfQO = YKHO.window_length\n if YKHO.window_length is None:\n qmLP.warn('spectrogram must have window_length attribute to accurately calculate duration. Approximating duration.')\n return YKHO.times[...
[ "0.7205457", "0.70140684", "0.69876695", "0.69097906", "0.6883939", "0.677676", "0.67140543", "0.6694812", "0.6688604", "0.6688483", "0.6683589", "0.667029", "0.6637328", "0.66236484", "0.6620921", "0.65494865", "0.6497941", "0.647708", "0.64703447", "0.6454488", "0.64423347"...
0.7003732
3
Time series duration (time spanned between first and last samples).
def WbTE(YKHO) -> float: return YKHO.delta_t * len(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EdTY(YKHO):\n return float(YKHO.time.iloc[-1] - YKHO.time.iloc[0])", "def WbTE(YKHO):\n XfQO = YKHO.window_length\n if YKHO.window_length is None:\n qmLP.warn('spectrogram must have window_length attribute to accurately calculate duration. Approximating duration.')\n return YKHO.times[...
[ "0.72015804", "0.7011242", "0.6984564", "0.6906823", "0.68812025", "0.67743665", "0.6713681", "0.6691161", "0.66863567", "0.66846263", "0.6680764", "0.6671724", "0.66349936", "0.6619939", "0.6617675", "0.6545728", "0.6494419", "0.64732885", "0.646652", "0.64511067", "0.643892...
0.6999877
2
Get an output/input variable. Function is used if you want to specify display units.
def xdKy(YKHO, mWFP, rYO3=None, _0VL=None): wEf2 = YKHO[mWFP] if _0VL is not None: wEf2 = wEf2[_0VL] if rYO3 is not None: Yukw = YKHO._get_units(mWFP) CeAh = vFCe(rYO3) if Yukw is None: tO9_ = "Can't express variable '{}' with units of 'None' in units of '{}'." ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LI2u(YKHO, **B2fa):\n with ZylS.variable_scope(YKHO.layer_scope):\n return YKHO.out", "def NMoC(YKHO, SRYB):\n KCHu = YKHO.eval('{0}'.format(SRYB))\n return YKHO.strip_answer(KCHu)", "def Ax2O(YKHO):\n return YKHO.variable", "def LeTJ(WKvO):\n return WKvO.cuda()", "def LeTJ(YKHO, ...
[ "0.6313262", "0.6246995", "0.62253517", "0.61326206", "0.6081935", "0.60364264", "0.594145", "0.5939748", "0.58996", "0.58824784", "0.5849499", "0.5840954", "0.57539034", "0.5748721", "0.574705", "0.57247704", "0.56805587", "0.56805587", "0.56805587", "0.56805587", "0.5680558...
0.52811015
80
Get string representation of the dictionary. Returns str String representation of the dictionary.
def zAg0(YKHO): return super().__str__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIwR(YKHO):\n return str(YKHO._dict)", "def oDPF(Csk6: dict) -> str:\n return str({str(P6bq): str(Ty9i) for P6bq, Ty9i in Csk6.items()})", "def Rekt(YKHO) -> str:\n kcsq = []\n for H5ew, BWXx in YKHO.__dict__.items():\n if isinstance(BWXx, dict):\n kcsq.append(H5ew)\n ...
[ "0.8241083", "0.80709076", "0.7950939", "0.7942495", "0.7751422", "0.7477203", "0.73927605", "0.72659415", "0.7258123", "0.72534037", "0.72534037", "0.72510195", "0.7212478", "0.7199826", "0.7199826", "0.7199826", "0.7199826", "0.7199826", "0.7199826", "0.7199826", "0.7199826...
0.0
-1
Returns a JSON response, transforming 'context' to make the payload.
def EK31(YKHO, QpfX, **TIVb): return jnRN(YKHO.get_data(QpfX), **TIVb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(YKHO.convert_context_to_json(QpfX))", "def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(YKHO.convert_context_to_json(QpfX))", "def EK31(YKHO, QpfX, **TIVb):\n return igJ6(YKHO.convert_context_to_json(QpfX), content_type='application/json', **T...
[ "0.78977495", "0.7823578", "0.7677376", "0.7677376", "0.75612307", "0.75064063", "0.73827815", "0.73660845", "0.7348188", "0.7347794", "0.7309422", "0.71299183", "0.69418925", "0.6891294", "0.6723761", "0.66297185", "0.66297185", "0.66297185", "0.66297185", "0.66244376", "0.6...
0.74123037
8
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.80373776", "0.7923372", "0.7921526", "0.78832066", "0.78758025", "0.78139895", "0.77639675", "0.7753964", "0.7742553", "0.7730092", "0.7727218", "0.7723365", "0.7701169", "0.76873696", "0.76873696", "0.7662493", "0.765539", "0.7654256", "0.7654256", "0.76442516", "0.764425...
0.7447232
80
Getting the date of 7 days later from current day.
def TQSj(YKHO): yo7_ = qcWV.date.today() sNqv = yo7_ + qcWV.timedelta(days=7) return sNqv.strftime('%Y-%m-%d')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hpb0():\n return rIAI.now() + rIAI.timedelta(days=6)", "def sxLF(WKvO: Optional[Date]=None) -> Qrp8:\n WKvO = WKvO or gVTZ()\n vgXP = max(1, (WKvO.weekday() + 6) % 7 - 3)\n return WKvO - K19Z(days=vgXP)", "def jiK5(WKvO: Optional[Date]=None) -> Qrp8:\n DY9k = WKvO or gVTZ()\n return DY9k ...
[ "0.69482285", "0.67034215", "0.6692377", "0.66036826", "0.6488771", "0.6337313", "0.63113797", "0.6233774", "0.61356586", "0.61312723", "0.6130495", "0.6126569", "0.6113718", "0.60930926", "0.6027795", "0.5993995", "0.5991983", "0.5979135", "0.59749365", "0.59516615", "0.5949...
0.7539515
0
Return the name of the sensor.
def mWFP(YKHO): return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {YKHO._sensor_name}'", "def mWFP(YKHO):\n return f'{YKHO._name}...
[ "0.91896784", "0.9168378", "0.890185", "0.8511273", "0.8479953", "0.844435", "0.8299758", "0.8186503", "0.8105667", "0.8079737", "0.8066149", "0.8049647", "0.7700968", "0.7612295", "0.7611456", "0.7600605", "0.7600605", "0.7600605", "0.75392073", "0.75166553", "0.7467876", ...
0.8770976
3
Return the device class of the sensor.
def rM2U(YKHO): return lc9R[YKHO.sensor][3].get('device_class')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return YKHO.sensor_type['class']", "def rM2U(YKHO):\n return YKHO._sensor_type", "def rM2U(YKHO):\n return YKHO._sensor_cfg[3]", "def rM2U(YKHO):\n return YKHO._sensor_cfg[3]", "def rM2U(YKHO) -> str | None:\n return YKHO._get_sensor_type()[2]", "def rM2U(YKHO):\n retu...
[ "0.93628424", "0.9240069", "0.9161452", "0.9161452", "0.9156968", "0.90412056", "0.90412056", "0.8956785", "0.89529496", "0.8950599", "0.8919914", "0.871994", "0.8717259", "0.87069035", "0.8660478", "0.8652474", "0.83961546", "0.83828783", "0.8380708", "0.8380708", "0.8380708...
0.92430294
1
Return the unit of measurement of this entity, if any.
def b82i(YKHO): return lc9R[YKHO.sensor][1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._metadata[1]", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "...
[ "0.8566332", "0.8478179", "0.8478179", "0.8478179", "0.8478179", "0.8478179", "0.8478179", "0.8478179", "0.847429", "0.845459", "0.845459", "0.845459", "0.845459", "0.845459", "0.845459", "0.845459", "0.845459", "0.845459", "0.845459", "0.845459", "0.845459", "0.845459", ...
0.8000371
42
Returns the next sleep interval in seconds. If no further sleep attempts should be performed the value returned is None.
def C6wh(YKHO): if YKHO.counter == YKHO.times: return None YKHO.counter += 1 return tuKI.uniform(YKHO.lower, YKHO.upper)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N5MO(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'sleep')", "def N5MO(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'sleep')", "def BoVo(YKHO):\n return (qcWV.datetime.now() + YKHO.delay).replace(microsecond=0)", "def _aWe(R1D_: int) -> int:\n return R1D_ if R1D_ >= 0 el...
[ "0.7222652", "0.7222652", "0.70968723", "0.70901555", "0.7039953", "0.6901923", "0.6879436", "0.68229544", "0.66707706", "0.66455203", "0.6412441", "0.6289085", "0.6282749", "0.6229707", "0.6218756", "0.62151235", "0.6207184", "0.6180594", "0.61757016", "0.61680317", "0.61680...
0.6198291
17
Opens a new database connection if there is none yet for the current application context.
def GGod(): if not hasattr(Oa1e, 'pg_db'): Oa1e.pg_db = _uJw() return Oa1e.pg_db
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db", "def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)", "def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)", "def W...
[ "0.7738785", "0.7583889", "0.73186874", "0.71708626", "0.70241374", "0.6968058", "0.69567364", "0.69516224", "0.6898437", "0.6844457", "0.6830317", "0.6819776", "0.6807468", "0.6796977", "0.67702866", "0.6763331", "0.6752875", "0.6748848", "0.673314", "0.67014456", "0.6688856...
0.0
-1
Closes the database automatically when the application context ends.
def ssTe(P1dF): dsE5('Disconnecting from DB.') if hasattr(Oa1e, 'pg_db'): Oa1e.pg_db.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ssTe():\n if 'db' in QpfX:\n QpfX['db'].close()", "def DDI8(YKHO):\n YKHO.db.close()", "def DDI8(YKHO):\n YKHO.db.close()", "def DDI8(YKHO):\n YKHO.__database__.close()", "def yZlT(Emd4):\n NCls.close()", "def DDI8(YKHO):\n if getattr(YKHO, '_db', None) is not None:\n ...
[ "0.8569676", "0.817915", "0.81751734", "0.81128985", "0.80931515", "0.793562", "0.793562", "0.793562", "0.79125035", "0.7864896", "0.7833894", "0.77752376", "0.77703786", "0.77672607", "0.77528685", "0.7733411", "0.7687718", "0.7593544", "0.7586014", "0.75848496", "0.7579474"...
0.0
-1
Parse TF Computational Graph File (.pb)
def hfK9(Emd4, uqvc: str, **B2fa): Kvn_ = tF99('mindinsight.mindconverter.graph_based_converter.third_party_graph.onnx_utils') MBZO = getattr(Kvn_, 'convert_tf_graph_to_onnx') BLxI = B2fa.get('input_nodes') oQpd = B2fa.get('output_nodes') if not Hy7s.path.exists(uqvc): P1dF = FileNotFoundErr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p4hy(Ux0P):\n uDSE = ZylS.GraphDef()\n with qJi5.FastGFile(Ux0P, 'rb') as nUeQ:\n nPrm = nUeQ.read()\n uDSE.ParseFromString(nPrm)\n return uDSE", "def zgmU():\n with ZylS.gfile.FastGFile(Hy7s.path.join(GPtr['inference']['model_dir'], 'output_graph.pb'), 'rb') as eHNT:\n r8JX ...
[ "0.6512595", "0.6466581", "0.64091164", "0.64091164", "0.6329022", "0.63216543", "0.62478006", "0.622534", "0.621449", "0.61759865", "0.61635953", "0.6104488", "0.6078579", "0.6076614", "0.60714185", "0.60586137", "0.60578436", "0.6044496", "0.601899", "0.60164595", "0.596488...
0.0
-1
Assert that actual_list and expected_list are almost equal. ie. assertAlmostEqual(actual_elem, expected_elem) in each list.
def ZqX6(YKHO, rTTH, oZoJ): YKHO.assertTrue(len(rTTH) == len(oZoJ)) for YRbF in Ni9Y(len(rTTH)): YKHO.assertAlmostEqual(rTTH[YRbF], oZoJ[YRbF])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZqX6(YKHO, Kt9y, I_KI):\n for YRbF, r845 in zip(Kt9y, I_KI):\n vnj6, VgAz = YKHO.round_values(YRbF, r845)\n YKHO.assertAlmostEqual(vnj6, VgAz)", "def fP2J(YKHO, n5sN, aEqx):\n try:\n for jzdc, tTpl in w1Cl(n5sN, aEqx):\n eEX7(YKHO, jzdc, tTpl)\n except AssertionError ...
[ "0.83103", "0.81242037", "0.7785256", "0.73372203", "0.732838", "0.72245044", "0.7105452", "0.70458096", "0.69843453", "0.6927921", "0.68653214", "0.68061745", "0.6747581", "0.6736418", "0.67044675", "0.66939676", "0.66726786", "0.6670484", "0.6584054", "0.657256", "0.6550882...
0.936699
0
Sample from a standard Gaussian.
def LseO(zNig): return ht2j.randn(zNig)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UbES(YKHO, yGTL=0.0, wEsz=1.0, zNig=1):\n yBeu = oyIN.random.normal(yGTL, wEsz, zNig)\n return yBeu", "def tE4_(JBMS, _IBo):\n return None", "def tE4_(mLGw, ee6l):\n mvm2 = oyIN.random.normal(0, ee6l, mLGw)\n mvm2 = mvm2.round().astype(int)\n return mvm2", "def IYu9(YKHO, WKvO: ndarray,...
[ "0.7639077", "0.7585075", "0.7277233", "0.7132591", "0.7116924", "0.702253", "0.69590986", "0.6945768", "0.6935672", "0.69349754", "0.688025", "0.6842542", "0.682901", "0.681657", "0.67541856", "0.6752032", "0.6744213", "0.6704407", "0.6698665", "0.66596806", "0.6624584", "...
0.0
-1
Mocks the Terra instance before a request is made.
def OdjH(): JorB = Cjg1('soju-0013', '') JorB.lcd.request_middlewares.append(r6mL) return JorB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQVF(YKHO, AZgw):\n NGRy = AZgw.patch.object(G4JS, 'Session')\n YKHO.session = AZgw.MagicMock()\n YKHO.session.__enter__.return_value = YKHO.session\n NGRy.return_value = YKHO.session\n YKHO.response = AZgw.Mock()\n Xswf = AZgw.patch.object(G4JS, 'Response')\n Xswf.return_value = YKHO.resp...
[ "0.6782043", "0.6592813", "0.6565687", "0.6544803", "0.65013963", "0.64377755", "0.63736105", "0.6317969", "0.62460375", "0.6238057", "0.6181688", "0.61687994", "0.61482024", "0.6130161", "0.6127421", "0.6127421", "0.6127421", "0.6083885", "0.60798734", "0.60511017", "0.60322...
0.7425829
0
Dump the fileinfos to a JSON file.
def V1yo(EDmA, yvT9): YZl4 = qQXR.dumps(EDmA) ei1D = 'all_elements_used.json' OwN0 = open(Hy7s.path.join(yvT9, xJyK, ei1D), 'w') OwN0.write(YZl4) OwN0.close() zJsh.write('... ' + ei1D + ' created\n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ekcA(YKHO, Ux0P):\n nPrm = {'files': YKHO._files, 'ebuilds': YKHO._ebuilds}\n qQXR.dump(nPrm, open(Ux0P, 'w'))", "def uZJ1(YKHO, nPrm, nUeQ):\n mWFP, YBcr = Hy7s.path.splitext(nUeQ)\n _pmj = '{0}.tmp'.format(mWFP)\n with open(_pmj, 'w') as eHNT:\n qQXR.dump(nPrm, eHNT, indent=4)\n RD...
[ "0.69172674", "0.66837215", "0.66653365", "0.66187596", "0.65824217", "0.6502465", "0.6499544", "0.64916843", "0.64843327", "0.64843327", "0.6442699", "0.6432443", "0.6427955", "0.64231676", "0.6397462", "0.6368988", "0.63653654", "0.6357841", "0.63443846", "0.6318794", "0.63...
0.7570784
0
Reduce the number of colors of an Image object It takes a PIL image object and tries to reduce the total number of colors, converting it to an indexed color (mode P) image. If the input image is in mode 1, it cannot be further reduced, so it's returned back with no changes.
def b5sx(VXjJ: Image.Image, ipoB: int) -> AzJI[hnIv.Image, int, int]: oNUh = VXjJ.mode if oNUh == '1': return (VXjJ, 2, 2) Jw9H = VXjJ.getcolors() if Jw9H: cXf7 = len(Jw9H) else: cXf7 = 0 if oNUh in ['CMYK', 'YCbCr', 'LAB', 'HSV']: VXjJ = VXjJ.convert('RGB') e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E4OR(LNo8):\n yzQ0, MKlR, bGrB = LNo8.shape\n for rdlD in Ni9Y(MKlR - 1):\n for fvDH in Ni9Y(yzQ0 - 1):\n e3Fk = LNo8[fvDH][rdlD]\n e3Fk[0] = sPKT(e3Fk[0])\n e3Fk[1] = sPKT(e3Fk[1])\n e3Fk[2] = sPKT(e3Fk[2])\n return LNo8", "def t1UV(YKHO, LNo8):\n ...
[ "0.7646288", "0.6199736", "0.6088131", "0.6087488", "0.60827786", "0.6039727", "0.58463526", "0.58313364", "0.5830371", "0.5783675", "0.5783629", "0.57750285", "0.57423425", "0.5721086", "0.5709663", "0.57042706", "0.56973356", "0.5687904", "0.56869465", "0.56319326", "0.5605...
0.71109265
1
Test retrieving a list of recipes
def GKeA(YKHO): At6L() At6L() Ylbp = YKHO.client.get(sSHz) IJ34 = i5w6.objects.all() ZMzz = bF9E(IJ34, many=True) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) YKHO.assertEqual(Ylbp.data, ZMzz.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h8CT(YKHO):\n pass", "def GKeA(YKHO):\n VHaa(name='Avocado toast')\n VHaa(name='Baklava')\n Ylbp = YKHO.client.get(tQ6t)\n AHLC = LC16.objects.all()\n ZMzz = azWq(AHLC, many=True)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(len(Ylbp.data), 2)\n YKHO.as...
[ "0.81033486", "0.79853475", "0.79804796", "0.79704607", "0.7895004", "0.78925663", "0.78374314", "0.76769125", "0.767323", "0.73952913", "0.73141986", "0.72933966", "0.7182399", "0.71717864", "0.7072997", "0.70101357", "0.6926858", "0.6895275", "0.689", "0.6882748", "0.687709...
0.74180543
9
Test fetching unknown credential.
def RUsO(YKHO): Ylbp = YKHO.mdb.get_credential(1234567890) YKHO.assertEqual(Ylbp, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VRTq():\n SjMt(Hmfw({'foo': 'bar'}), (None, None))", "def mn3x(TqUO):\n TqUO.side_effect = FileNotFoundError('')\n N5z6 = YZBS()\n assert not N5z6._username\n assert not N5z6._password", "def WuKC():\n GoZD = kjgd()\n assert GoZD.url is None\n assert GoZD.token is None\n assert G...
[ "0.68713856", "0.6636915", "0.64731884", "0.63755894", "0.63538057", "0.63538057", "0.63509166", "0.63429207", "0.6336358", "0.63246906", "0.6319021", "0.6315944", "0.6310986", "0.62921965", "0.6276207", "0.627014", "0.6215178", "0.6157719", "0.61278623", "0.61278623", "0.610...
0.77316827
0
r""" Cast the floatingpoint `params` to `jax.numpy.bfloat16`. This returns a new `params` tree and does not cast the `params` in place. This method can be used on TPU to explicitly convert the model parameters to bfloat16 precision to do full halfprecision training or to save weights in bfloat16 for inference in order ...
def OCoQ(YKHO, NArs: Union[Dict, FrozenDict], ZHfW: Any=None): return YKHO._cast_floating_to(NArs, oLG2.bfloat16, ZHfW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U7zG(YKHO, NArs: Union[Dict, FrozenDict], ZHfW: Any=None):\n return YKHO._cast_floating_to(NArs, oLG2.float16, ZHfW)", "def Z1fR(C6id, YPqY, rrBf=None, t8MB=None):\n bRwq = []\n for XkN1 in YPqY.blocks:\n bRwq.extend(XkN1.all_parameters())\n wE_d = t8MB if t8MB else set()\n m2gN = rrBf ...
[ "0.7070078", "0.69352823", "0.65822524", "0.5615649", "0.5578388", "0.5462372", "0.53054917", "0.530453", "0.52218384", "0.51704764", "0.5153915", "0.51356757", "0.51211435", "0.50357515", "0.5008127", "0.4879392", "0.485458", "0.48361912", "0.48303774", "0.47836018", "0.4773...
0.75039154
0
r""" Cast the floatingpoint `parmas` to `jax.numpy.float32`. This method can be used to explicitly convert the model parameters to fp32 precision. This returns a new `params` tree and does not cast the `params` in place.
def DHNv(YKHO, NArs: Union[Dict, FrozenDict], ZHfW: Any=None): return YKHO._cast_floating_to(NArs, oLG2.float32, ZHfW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J2Oc(YKHO, NArs: Union[Dict, FrozenDict], yDqo: jnp.dtype, ZHfW: Any=None) -> ImMB:\n\n def mSrQ(xqoZ):\n if isinstance(xqoZ, oLG2.ndarray) and oLG2.issubdtype(xqoZ.dtype, oLG2.floating):\n xqoZ = xqoZ.astype(yDqo)\n return xqoZ\n if ZHfW is None:\n return yOcR.tree_util.t...
[ "0.5991893", "0.597532", "0.58963186", "0.5659163", "0.5620524", "0.55966693", "0.55932355", "0.54186344", "0.53701866", "0.53546476", "0.53410137", "0.531362", "0.52842003", "0.527955", "0.5197702", "0.5188624", "0.51253825", "0.51162386", "0.5039107", "0.50123215", "0.49999...
0.73091394
0
r""" Cast the floatingpoint `parmas` to `jax.numpy.float16`. This returns a new `params` tree and does not cast the `params` in place. This method can be used on GPU to explicitly convert the model parameters to float16 precision to do full halfprecision training or to save weights in float16 for inference in order to ...
def U7zG(YKHO, NArs: Union[Dict, FrozenDict], ZHfW: Any=None): return YKHO._cast_floating_to(NArs, oLG2.float16, ZHfW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OCoQ(YKHO, NArs: Union[Dict, FrozenDict], ZHfW: Any=None):\n return YKHO._cast_floating_to(NArs, oLG2.bfloat16, ZHfW)", "def Z1fR(C6id, YPqY, rrBf=None, t8MB=None):\n bRwq = []\n for XkN1 in YPqY.blocks:\n bRwq.extend(XkN1.all_parameters())\n wE_d = t8MB if t8MB else set()\n m2gN = rrBf...
[ "0.64355737", "0.62667245", "0.56928766", "0.5585037", "0.5519305", "0.5508482", "0.54957175", "0.5233368", "0.5187701", "0.5149924", "0.50876534", "0.5062732", "0.5032946", "0.49982625", "0.49486592", "0.49486592", "0.49486592", "0.49480826", "0.49480826", "0.49480826", "0.4...
0.71142125
0
r""" Instantiate a pretrained flax model from a pretrained model configuration. The warning Weights from XXX not initialized from pretrained model means that the weights of XXX do not come pretrained with the rest of the model. It is up to you to train those weights with a downstream finetuning task. The warning Weight...
def NZUw(Emd4, MMMS: Union[str, os.PathLike], yDqo: jnp.dtype=oLG2.float32, *SQWW, GPtr: Optional[Union[PretrainedConfig, str, os.PathLike]]=None, BXLT: Optional[Union[str, os.PathLike]]=None, TAjX: bool=False, AqUQ: bool=False, gZDf: bool=False, eOtH: Optional[Union[str, bool]]=None, XkTm: str='main', **B2fa): vgb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZUw(Emd4, Nu1S, xA7f, *g4y1, **B2fa):\n GPtr = Emd4.load_config(Nu1S)\n C3ST = Emd4(GPtr, *g4y1, **B2fa)\n C3ST = ZITV(C3ST, xA7f)\n return C3ST", "def vB93(YKHO):\n if isinstance(YKHO.pretrained, str):\n bo34 = UKxV()\n bo34.info(f'load model from: {YKHO.pretrained}')\n ...
[ "0.6820001", "0.62767684", "0.62506396", "0.62185687", "0.6192511", "0.614228", "0.6111336", "0.60905266", "0.60545886", "0.60467744", "0.6019336", "0.5966975", "0.5944274", "0.5930402", "0.5927002", "0.5861318", "0.5821811", "0.5769202", "0.5768657", "0.5742877", "0.57265836...
0.55109394
42
Path to the test database with improper files.
def vLaK(): return Hy7s.path.join(D40k, 'fixtures/databases/db-improper/database')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DdhF():\n return Hy7s.path.join(D40k, 'fixtures/databases/db-python-only/database')", "def VNqO() -> str:\n d2of = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))\n return Hy7s.path.join(d2of, 'testDb.sqlite')", "def Z0Wp():\n return Hy7s.path.join(D40k, 'fixtures/databases/db-small/database')", "...
[ "0.75037533", "0.7484556", "0.7308964", "0.72868377", "0.7141627", "0.70591956", "0.68684435", "0.68129104", "0.65792465", "0.65683746", "0.6477624", "0.64596736", "0.64382106", "0.6410621", "0.63923675", "0.63674766", "0.63598526", "0.635115", "0.63402563", "0.63394076", "0....
0.8216641
0
Return a mocked Discovered Bridge.
def S2gZ(EuwA='aabbccddeeff', KcEq='1.2.3.4', BXxp=False): return FM6F(host=KcEq, id=EuwA, supports_v2=BXxp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Trxo(ajET):\n return D72c()", "def D72c():\n eV_n = FM6F(available=True, allow_unreachable=False, allow_groups=False, api=FM6F(), spec=Hafq.HueBridge)\n eV_n.mock_requests = []\n eV_n.mock_sensor_responses = MUE7()\n\n async def mock_request(NKcE, pmON, **B2fa):\n B2fa['method'] = NKcE\...
[ "0.7372151", "0.73244363", "0.6197295", "0.6095032", "0.57564074", "0.56794703", "0.56739575", "0.5600137", "0.5596264", "0.5588057", "0.54905665", "0.54791147", "0.5407656", "0.5389388", "0.53728324", "0.5369918", "0.5355989", "0.5288491", "0.5288298", "0.5277364", "0.527159...
0.78755337
0
Test importing a host without an existing config file.
async def test_import_with_no_config(ajET: HomeAssistant, bFCs: AiohttpClientMocker) -> None: IqHP(bFCs, [('0.0.0.0', '1234')]) Aofo = await ajET.config_entries.flow.async_init(PtXs.DOMAIN, context={'source': kzTJ.SOURCE_IMPORT}, data={'host': '0.0.0.0'}) assert Aofo['type'] == 'form' assert Aofo['step_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def axB2(YKHO):\n lqQH = yeVf('valid/config.yaml')\n dBuj = t5_D.LabConfigPool(t5_D.LocalFileEnumerator(lqQH, t5_D.IsYaml))\n dBuj.LoadConfigs()\n KcEq = dBuj.GetHostConfig('not_exist')\n YKHO.assertIsNone(KcEq)", "def axB2(YKHO):\n lqQH = yeVf('unified_lab_config/valid_lab/hosts')\n dBuj = ...
[ "0.7486923", "0.73199266", "0.69715554", "0.67518836", "0.6733899", "0.6723282", "0.6707462", "0.66263425", "0.66069835", "0.659221", "0.6592164", "0.6432057", "0.63454133", "0.6198976", "0.61682737", "0.61464214", "0.61435616", "0.6100188", "0.60956734", "0.6071169", "0.6047...
0.62430507
13
Test if a import flow aborts if host is already configured.
async def test_bridge_import_already_configured(ajET: HomeAssistant) -> None: Jaru(domain='hue', unique_id='aabbccddeeff', data={'host': '0.0.0.0'}).add_to_hass(ajET) Aofo = await ajET.config_entries.flow.async_init(PtXs.DOMAIN, context={'source': kzTJ.SOURCE_IMPORT}, data={'host': '0.0.0.0', 'properties': {'id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_import_invalid(ajET):\n HwLH = A2b9(True)\n FTdA(ajET)\n with XVHP(HwLH):\n Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': n2g6}, data=od4K)\n assert Aofo['type'] == P8Nx\n assert Aofo['reason'] == 'connection'\n HwLH.get_supported_methods....
[ "0.6846267", "0.67945606", "0.6132794", "0.5934261", "0.5898055", "0.58723956", "0.58543247", "0.58285713", "0.57864153", "0.57167464", "0.5695838", "0.55883914", "0.55393064", "0.55341303", "0.5517239", "0.55155265", "0.5478801", "0.5468256", "0.5461019", "0.5435308", "0.541...
0.6221543
2
Generate the full PDS path for a given HRSC data file
def nAXj(fZWR): gJmB = '.img' ugu8 = fZWR[1:5] Ux0P = fZWR + gJmB gwbR = 'http://pds-geosciences.wustl.edu/mex/mex-m-hrsc-5-refdr-mapprojected-v2/mexhrsc_1001/data/' Fudf = gwbR + ugu8 + '/' + Ux0P return Fudf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep", "def s8df():\n return Hy7s.getcwd() + '/data/'", "def OyQC(i0XC):\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo)) + Hy7s.sep + i0XC", "def OhAo(EngI):\n GPtr = PSrQ()\n U5bT = GkAb(GPtr.d['data_path'] + '/' + EngI + '/')\n if n...
[ "0.6609946", "0.6476409", "0.6458018", "0.6431442", "0.6423816", "0.6364348", "0.63640827", "0.6339666", "0.632974", "0.62803036", "0.6274267", "0.62587535", "0.6227221", "0.61917484", "0.6113514", "0.60960364", "0.60952705", "0.6090089", "0.6077048", "0.607591", "0.60563326"...
0.71917576
0
Numpy version of vplane_2_vparam
def mpbQ(cLWh): uhHg = oyIN.cross(cLWh, oyIN.stack([-cLWh[..., 1], cLWh[..., 0], oyIN.zeros_like(cLWh[..., 0])], axis=-1), axis=-1) return uhHg[..., :2] / uhHg[..., [2]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VOTu(uhHg):\n Csk6 = oyIN.linalg.norm(uhHg, ord=2, axis=-1, keepdims=True)\n jzdc = uhHg[..., [0]] / Csk6\n Fg_i = uhHg[..., [1]] / Csk6\n diKP = jzdc < 0\n jzdc[diKP] = -jzdc[diKP]\n Fg_i[diKP] = -Fg_i[diKP]\n Z9rn = -(jzdc * uhHg[..., [0]] + Fg_i * uhHg[..., [1]])\n cLWh = oyIN.concat...
[ "0.8257363", "0.63768786", "0.59504795", "0.5945344", "0.5901103", "0.58194584", "0.57758623", "0.5767143", "0.57617015", "0.5703245", "0.56223404", "0.5606822", "0.5601651", "0.5597385", "0.5542641", "0.55421805", "0.55402094", "0.5523554", "0.5511729", "0.55012995", "0.5484...
0.8056421
1
Numpy version of vparam_2_vplane
def VOTu(uhHg): Csk6 = oyIN.linalg.norm(uhHg, ord=2, axis=-1, keepdims=True) jzdc = uhHg[..., [0]] / Csk6 Fg_i = uhHg[..., [1]] / Csk6 diKP = jzdc < 0 jzdc[diKP] = -jzdc[diKP] Fg_i[diKP] = -Fg_i[diKP] Z9rn = -(jzdc * uhHg[..., [0]] + Fg_i * uhHg[..., [1]]) cLWh = oyIN.concatenate([jzdc, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mpbQ(cLWh):\n uhHg = oyIN.cross(cLWh, oyIN.stack([-cLWh[..., 1], cLWh[..., 0], oyIN.zeros_like(cLWh[..., 0])], axis=-1), axis=-1)\n return uhHg[..., :2] / uhHg[..., [2]]", "def UwsW(XP5J: np.ndarray, Ty9i: np.ndarray) -> ImMB:\n return XP5J[:3].dot(Ty9i) + XP5J[3]", "def j2x_(YKHO):\n Qbpe = [-...
[ "0.81128526", "0.63427055", "0.58030635", "0.57959634", "0.5778007", "0.5763449", "0.5689331", "0.56818783", "0.56719047", "0.56514084", "0.56460345", "0.5639332", "0.5572977", "0.5532811", "0.5504314", "0.5495645", "0.54833466", "0.54692966", "0.54263157", "0.5412707", "0.53...
0.8370257
0
Tests that NewickEventFactory without arg raises ValueError.
def V9M7(YKHO): YKHO.assertRaises(ValueError, lhZi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tXp0(YKHO):\n with YKHO.assertRaises(sUXu):\n tTpl = QRWf(title=YKHO.TITLE)\n tTpl.save()", "def yEdZ(YKHO):\n from plone.api.exc import InvalidParameterError\n with YKHO.assertRaises(InvalidParameterError):\n YKHO.event = nNXP.content.create(type='Event', title=u'Invalid event'...
[ "0.6419645", "0.6396346", "0.6311455", "0.6303136", "0.628506", "0.6277325", "0.61772805", "0.6125845", "0.61118144", "0.6111505", "0.6089412", "0.6066073", "0.6054844", "0.60529006", "0.60401094", "0.60319936", "0.60121155", "0.60074675", "0.5997193", "0.5990431", "0.5982735...
0.929328
0