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
Moving average of the lagged statistic f(lambda)_{moving_average}.
def u8vp(YKHO): _Fei = YKHO.config FwwX = ZylS.train.ExponentialMovingAverage(decay=_Fei['moving_average/decay'], zero_debias=_Fei['moving_average/zero_debias']) xvIB = FwwX.apply([SRYB for SRYB in YKHO.statistic.values()]) ZylS.add_to_collection('update_moving_averages', xvIB) lB4S = {} for mWF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(jzdc, KnxT=3):\n return oyIN.mean(agUT(jzdc, KnxT), -1)", "def ZCKv(gdeS, Qj8D, CCcy=10):\n BEhj = oyIN.sum(gdeS[-(CCcy - 1):]) + Qj8D\n BEhj = BEhj / (len(gdeS[-(CCcy - 1):]) + 1)\n return BEhj", "def ZCKv(hkxX, KnxT):\n _mSQ = oyIN.repeat(1.0, KnxT) / KnxT\n return oyIN.convolve(hk...
[ "0.71052426", "0.7006865", "0.6953671", "0.6953671", "0.6953671", "0.6953671", "0.68984616", "0.68648463", "0.68109906", "0.6728861", "0.672594", "0.6714705", "0.6701641", "0.66872793", "0.6677224", "0.6675322", "0.66592973", "0.6601743", "0.65755993", "0.6565988", "0.6562871...
0.6153963
55
Returns whether object is an iterable. Strings are considered iterables by default.
def GfZ5(object, RvMl=True): if not RvMl and type(object) == type(''): return False try: iter(object) except TypeError as te: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfZ5(YEnM):\n return isinstance(YEnM, iu5r)", "def kUz6(YEnM):\n return hasattr(YEnM, '__iter__') or isinstance(YEnM, jUrF)", "def kUz6(YEnM):\n if isinstance(YEnM, str):\n return False\n else:\n return isinstance(YEnM, iu5r)", "def GfZ5(YEnM):\n if J1TN(YEnM) is True or isin...
[ "0.8663154", "0.86540926", "0.8627734", "0.85748637", "0.85193664", "0.85170025", "0.8446581", "0.8437948", "0.8434032", "0.8412729", "0.84057856", "0.83602405", "0.8338497", "0.83030576", "0.8300024", "0.82986224", "0.8292951", "0.8289533", "0.82269114", "0.82035834", "0.817...
0.8553051
4
Push element x onto stack.
def _jXH(YKHO, WKvO: int) -> None: YKHO.stack.append(WKvO) YKHO.len += 1 YKHO.topelement = WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.in_stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n ycBG = S9Ut()\n while not YKHO.stack.empty():\n U6D_ = YKHO.stack.pop()\n ycBG.push(U6D_)\n YKHO.stack.push(WKvO)\n while not ycBG.empty():\n U6D_ = ycBG.pop()\n YKHO.stack.push(U6D_)\n ret...
[ "0.8884891", "0.88815904", "0.8851905", "0.8829994", "0.8825823", "0.87915844", "0.8784638", "0.8781226", "0.8723327", "0.87200546", "0.87101483", "0.8696664", "0.8672952", "0.86561507", "0.86259526", "0.8610324", "0.86102635", "0.860013", "0.860013", "0.8581793", "0.8570477"...
0.86889726
12
Removes the element on top of the stack and returns that element.
def BEuN(YKHO) -> int: for YRbF in range(YKHO.len - 1): if YRbF == YKHO.len - 2: YKHO.topelement = YKHO.stack.pop(0) YKHO.stack.append(YKHO.topelement) else: YKHO.stack.append(YKHO.stack.pop(0)) U5bT = YKHO.stack.pop(0) YKHO.len -= 1 if YKHO.len == 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN():\n global top\n if A4KR():\n return None\n U6D_ = E5BI[tlxW]\n E5BI[tlxW] = None\n BAMb[tlxW] = None\n tlxW -= 1\n return U6D_", "def BEuN(E5BI):\n LihS = E5BI.elements[-1]\n del E5BI.elements[-1]\n return LihS", "def BEuN(YKHO):\n ZfUD = YKHO.stack.pop()\n ...
[ "0.83285564", "0.82814056", "0.8210085", "0.81704277", "0.81349236", "0.8095011", "0.8064679", "0.8016918", "0.7953157", "0.7943855", "0.793094", "0.78770566", "0.7872679", "0.7850065", "0.7826401", "0.77995974", "0.77936834", "0.77862775", "0.7773103", "0.7773103", "0.777310...
0.759213
32
Returns whether the stack is empty.
def lsmZ(YKHO) -> bool: return YKHO.len == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def A4K...
[ "0.9128382", "0.9128382", "0.9089147", "0.9089147", "0.9089147", "0.9054476", "0.90168625", "0.90168625", "0.9007831", "0.89530855", "0.8949649", "0.8949649", "0.8938501", "0.89370805", "0.8922049", "0.88844925", "0.88758796", "0.88700867", "0.88436955", "0.8797164", "0.87931...
0.0
-1
Overrides the form_valid method to automatically save the current user as the owner of the new wishlist.
def lwXz(YKHO, L03z): lU60 = L03z.save(commit=False) lU60.owner = YKHO.request.user lU60.save() return Yd7Q(YKHO.get_success_url())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lwXz(YKHO, L03z):\n hDcP = L03z.save(commit=False)\n hDcP.wishlist = KqKN.objects.get(id=YKHO.kwargs['current_list'])\n hDcP.save()\n return Yd7Q('/wishlist/detail/%s/' % (YKHO.kwargs['current_list'],))", "def QVKp(YKHO, QePW, L03z, nZuS):\n YEnM = L03z.save(commit=False)\n if YEnM.user_id ...
[ "0.7651396", "0.7242323", "0.71392465", "0.71392465", "0.69901925", "0.69866115", "0.6927098", "0.68678147", "0.68678147", "0.68233573", "0.67918277", "0.67918277", "0.67051375", "0.67051375", "0.6698553", "0.668146", "0.6594692", "0.6594692", "0.65753037", "0.65746474", "0.6...
0.8887289
0
Overrides the form_valid method to automatically attach the current wishlist to the new item.
def lwXz(YKHO, L03z): hDcP = L03z.save(commit=False) hDcP.wishlist = KqKN.objects.get(id=YKHO.kwargs['current_list']) hDcP.save() return Yd7Q('/wishlist/detail/%s/' % (YKHO.kwargs['current_list'],))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lwXz(YKHO, L03z):\n lU60 = L03z.save(commit=False)\n lU60.owner = YKHO.request.user\n lU60.save()\n return Yd7Q(YKHO.get_success_url())", "def lwXz(YKHO, L03z):\n YKHO.object = L03z.save()\n XN37.createWebradioPlaylist()\n return super(LwVo, YKHO).form_valid(L03z)", "def g6AF(QePW):\n ...
[ "0.8115805", "0.6832485", "0.6495316", "0.6406159", "0.63903284", "0.63357586", "0.62555265", "0.6241185", "0.6232327", "0.62034196", "0.6170702", "0.6169291", "0.6169291", "0.6169291", "0.6169291", "0.61160594", "0.6077211", "0.6069337", "0.6069337", "0.60357594", "0.6031071...
0.86548746
0
Will convert a user's preferred age in to a range of ages which are needed to properly query dogs based on user preferences.
def s79n(K3GG='b'): if K3GG not in ['b', 'y', 'a', 's']: raise ValueError('An accepted age was not provided.') WGq7 = {'b': range(0, 13), 'y': range(13, 37), 'a': range(37, 85), 's': range(85, 241)} igUQ = [YRbF for YRbF in WGq7[K3GG]] return igUQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Stpt(ZJe_):\n global age_range\n try:\n ZJe_ = float(ZJe_)\n if ZJe_ < 20:\n Q_5R = 1\n elif ZJe_ >= 20 and ZJe_ < 30:\n Q_5R = 2\n elif ZJe_ >= 30 and ZJe_ < 40:\n Q_5R = 3\n elif ZJe_ >= 40 and ZJe_ < 50:\n Q_5R = 4\n ...
[ "0.7144855", "0.6936671", "0.681268", "0.673394", "0.6572399", "0.6566573", "0.6475387", "0.64643836", "0.6428812", "0.6395773", "0.6388232", "0.6382666", "0.63514644", "0.6327179", "0.6290008", "0.623903", "0.6168073", "0.6165454", "0.6113274", "0.6111994", "0.61091137", "...
0.7756295
0
Load config file(s). config_path can be a single path to a directory or a file, or a sequence of directories and/or files. For directory arguments, all files with a recognized extension will be loaded. The order in which they're loaded should be considered unknowable.
def aNkb(YKHO): if YKHO.config_args in YKHO.config.__dict__: if isinstance(YKHO.config.__dict__[YKHO.config_args], (bytes, str)): YKHO.config_path.append(YKHO.config.__dict__[YKHO.config_args]) else: for d7pR in YKHO.config_args: if d7pR in YKHO.config.__dict_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgIG(lqQH, GPtr=None):\n _PsJ = []\n if isinstance(lqQH, (list, tuple)):\n _PsJ = list(lqQH)\n elif ZylS.gfile.IsDirectory(lqQH):\n for IznC in ZylS.gfile.ListDirectory(lqQH):\n IznC = Hy7s.path.join(lqQH, IznC)\n if not ZylS.gfile.IsDirectory(IznC):\n ...
[ "0.7635742", "0.7422505", "0.7249495", "0.7159612", "0.7059175", "0.6963573", "0.6942225", "0.68877137", "0.6874977", "0.68713635", "0.6759454", "0.6754411", "0.6720886", "0.66995865", "0.66607594", "0.66576326", "0.6611008", "0.65955496", "0.6570291", "0.65435433", "0.653753...
0.7082831
4
Return the bot's username.
def NtEF(YKHO): return YKHO._data.get('username')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fiXC(YKHO):\n if YKHO.obj.username_shared:\n return YKHO.obj.member.user.username\n return None", "def fiXC(YKHO):\n return YKHO.username", "def NtEF(YKHO):\n return YKHO._get_account()['username']", "def fiXC(YKHO):\n return YKHO.__username__", "def fiXC(YKHO):\n return YKHO.c...
[ "0.81787527", "0.81708735", "0.8165217", "0.81203884", "0.80737686", "0.8057134", "0.8055401", "0.80467594", "0.80467594", "0.80467594", "0.80467594", "0.80467594", "0.80467594", "0.80467594", "0.80467594", "0.8023142", "0.79880005", "0.79880005", "0.79874206", "0.7973008", "...
0.7768612
55
Creates and loads pretrained deeplab model.
def FIMM(YKHO, VLXu, MYQr='cityscapes'): YKHO.graph = ZylS.Graph() YKHO.colormap = MYQr r8JX = None if VLXu.endswith('trt'): with qJi5.GFile(VLXu, 'rb') as Q1ZJ: r8JX = ZylS.GraphDef() r8JX.ParseFromString(Q1ZJ.read()) else: ypwA = VAiu.open(VLXu) for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O5RJ(YKHO) -> None:\n YKHO.model = ADDA(encoder_name='resnet34', activation='sigmoid')\n YKHO.model.load_state_dict(ht2j.load(f'{Odyn}/model/seg_model.pt'))\n YKHO.model.eval()", "def uyMl():\n NtnT = cvxQ.DeviceOption()\n NtnT.device_type = cvxQ.CPU\n RzlV = 'out/model_init.pb'\n U94V =...
[ "0.7648836", "0.71454567", "0.7105731", "0.70605075", "0.7048734", "0.70357805", "0.70135975", "0.698738", "0.6972397", "0.6947987", "0.6947987", "0.69337046", "0.6923191", "0.6895573", "0.688701", "0.6884813", "0.6876558", "0.68761164", "0.68481755", "0.68375784", "0.6836809...
0.0
-1
Initialize the resource identifier and the type identifier.
def FIMM(YKHO, Ilxn, EhYO): YKHO.identifier = Ilxn YKHO.type_id = EhYO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, *, type: Optional[pulumi.Input['ResourceIdentityType']]=None):\n if type is not None:\n qe4Y.set(Ro_8, 'type', type)", "def FIMM(Ro_8, *, type: Optional[pulumi.Input['ResourceIdentityType']]=None):\n if type is not None:\n qe4Y.set(Ro_8, 'type', type)", "def FIMM(Ro_8, *, typ...
[ "0.7121231", "0.7121231", "0.7121231", "0.69950217", "0.6993791", "0.68675005", "0.67488223", "0.6678343", "0.66356945", "0.66356945", "0.6605788", "0.6533002", "0.6526881", "0.6523547", "0.6477518", "0.6445187", "0.6345668", "0.62673104", "0.6256515", "0.6244515", "0.6237879...
0.7202633
0
Get instance of the resource descriptor from a dictionary serialization as created by the to_dict() method. Expects a dictionary with two elements 'id' and 'type'. Raises InvalidTemplateError if an invalid dictionary is given.
def jG8h(A97Q): if not (QWNI in A97Q and e7WN in A97Q): raise TBeH('invalid resource descriptor serialization') if A97Q[e7WN] == QTMh: return Q7Lv.from_dict(A97Q) else: raise ValueError("unknown resource type '{}'".format(EhYO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, qHj0) -> 'Resource':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(Emd4, Csk6):\n C3ST = Csk6.get('model')\n if isinstance(C3ST, str):\n C3ST = ZCZy(C3ST)\n assert issubclass(C3ST, KcDH), 'The resource model has to be a PyDantic Model'\n Csk6['model'] = C3ST\n re...
[ "0.72390914", "0.6593634", "0.65099996", "0.6456716", "0.6311043", "0.6111751", "0.6082736", "0.6070633", "0.60259277", "0.6004114", "0.59808904", "0.5955033", "0.5945007", "0.593668", "0.58986", "0.5892342", "0.58898", "0.587774", "0.5870965", "0.5867177", "0.58500355", "0...
0.7335162
0
Create dictionary serialization of the resource descriptor Returns dict
def MNRr(YKHO): return {QWNI: YKHO.identifier, e7WN: YKHO.type_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n YEnM = super(Q7Lv, YKHO).to_dict()\n YEnM[V4MX] = YKHO.filepath\n return YEnM", "def QOGT(z1Rg):\n return qQXR.dumps(z1Rg)", "def Napc(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name, 'icon': YKHO.icon, 'created_by_id': YKHO.created_by_id}", "def AZN9(YKHO):\n return {'i...
[ "0.6858845", "0.6735734", "0.6567754", "0.6510842", "0.6501949", "0.6500612", "0.6495667", "0.64891565", "0.645858", "0.6452186", "0.6432979", "0.64080226", "0.64078814", "0.6402384", "0.6396728", "0.63901114", "0.63721746", "0.6362476", "0.6359341", "0.6346116", "0.63374215"...
0.0
-1
Get instance of the file resource descriptor from a dictionary serialization as created by the to_dict() method. Expects a dictionary with three elements 'id', 'type.' and 'filepath'. Raises an error if an invalid dictionary is given.
def jG8h(A97Q): if len(A97Q) != 3: raise ValueError('invalid file resource descriptor') if not (QWNI in A97Q and e7WN in A97Q and (V4MX in A97Q)): raise ValueError('invalid file resource descriptor') if A97Q[e7WN] != QTMh: raise ValueError('invalid file resource descriptor') retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(A97Q):\n if not (QWNI in A97Q and e7WN in A97Q):\n raise TBeH('invalid resource descriptor serialization')\n if A97Q[e7WN] == QTMh:\n return Q7Lv.from_dict(A97Q)\n else:\n raise ValueError(\"unknown resource type '{}'\".format(EhYO))", "def jG8h(Emd4, qHj0) -> 'Resource':\n...
[ "0.7709046", "0.65414196", "0.63931847", "0.62805766", "0.62791103", "0.62629634", "0.61534715", "0.6118605", "0.60925543", "0.6064506", "0.6058166", "0.603021", "0.5970104", "0.59317666", "0.5908706", "0.5859034", "0.5845486", "0.57653016", "0.5754388", "0.5751614", "0.57475...
0.7690979
1
Get value by key from dictionary
def kTCt(cmPJ, H5ew): return cmPJ.get(H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fo50(dict, H5ew):\n return dict[H5ew]", "def frsB(cmPJ, H5ew):\n return cmPJ.get(H5ew)", "def r9ER(cmPJ, H5ew):\n return cmPJ.get(H5ew)", "def kTCt(cmPJ, H5ew):\n return cmPJ.get(H5ew)", "def cNH6(Csk6, G1Hx):\n return Csk6[G1Hx]", "def NMoC(H5ew: str):\n return qzIa()[H5ew]", "de...
[ "0.8761272", "0.82379067", "0.81213623", "0.8077909", "0.78652966", "0.78445023", "0.7819524", "0.77578914", "0.7723819", "0.7717488", "0.76622885", "0.76298606", "0.74803317", "0.746895", "0.7432225", "0.7412661", "0.7337054", "0.7312117", "0.72869533", "0.72739536", "0.7273...
0.80312085
4
Removes duplicates from l, where l is a List of Lists.
def dDv2(vC9B): Csk6 = {} Aofo = [] for rdlD in vC9B: if tuple(rdlD) not in Csk6: Aofo.append(rdlD) Csk6[tuple(rdlD)] = True return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sHC1(YKHO, vC9B):\n S06t = []\n for LihS in vC9B:\n if S06t.count(LihS) == 0:\n S06t.append(LihS)\n return S06t", "def StJK(nwEZ):\n if type(nwEZ) == list and len(nwEZ) > 0 and (_uwh(nwEZ, list) == True):\n nwEZ.sort()\n HbfQ = list((nwEZ for nwEZ, bGrB in WhY1.gro...
[ "0.8012307", "0.7608263", "0.738298", "0.7340534", "0.7213971", "0.7135161", "0.7084739", "0.706706", "0.7026778", "0.6990105", "0.69761014", "0.6954358", "0.6929968", "0.69212246", "0.69212246", "0.6911555", "0.6877858", "0.6816944", "0.67796856", "0.6774515", "0.67544746", ...
0.68543595
17
list(rtype=None) List known resource instances (which can be acquired). Returns a list of IDs.
def list(YKHO, AvtT=None, PVEG=None): return YKHO._adaptor.list(AvtT, ttype=PVEG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrEz():\n bD7m = '%s/instances' % w148()\n return TqC2(bD7m)", "def lbzt(YKHO) -> x1iM[ec6H]:\n pass", "def y5NJ(YKHO):\n raise NotImplementedError()", "def x_o0(YKHO):\n na1r.debug('Listing instances...')\n return YKHO.clients('trove').instances.list()", "def list(YKHO, **YSA3):\n ...
[ "0.7397357", "0.7285198", "0.72110504", "0.7195685", "0.71755487", "0.7091913", "0.7054945", "0.7023277", "0.68234664", "0.68161076", "0.6804035", "0.67912656", "0.67862433", "0.67696077", "0.67465377", "0.6736637", "0.6706814", "0.66912115", "0.66599995", "0.66241944", "0.66...
0.0
-1
Get a corresponding MLIR tensor type.
def tlLu(YKHO): if YKHO.dtype is vXuu: dg3L = '!numpy.any_dtype' else: dg3L = u78Y(YKHO.dtype) if not dg3L: raise ValueError('Unsupported MLIR tensor element type %r' % (YKHO.dtype,)) if YKHO.shape is vXuu: j2Kp = '*' else: j2Kp = 'x'.join((str(Csk6) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KvM0():\n pass", "def SOmn(WKvO, type):\n return llWB(WKvO, type)", "def FRul():\n return H4yH.TRecord(token_id=H4yH.TNat, token_metadata=H4yH.TMap(H4yH.TString, H4yH.TBytes)).layout(('token_id', 'token_metadata'))", "def fMBS(YEnM):\n if isinstance(YEnM, o_go):\n return fMBS(YEnM.type...
[ "0.72829866", "0.6314032", "0.61958957", "0.6137487", "0.60792094", "0.6061901", "0.602527", "0.5975341", "0.59267694", "0.5883179", "0.5881535", "0.5876888", "0.5867698", "0.58622414", "0.5854968", "0.5838084", "0.5820188", "0.5777543", "0.57705927", "0.57602423", "0.5746378...
0.6911409
1
The optional parent_repository_directory parameter is used to specify the containing parent directory of the "repository_directory" specified in a configuration for all network locations, because sometimes the absolute location of the "repository_directory" is only known at runtime. If you need to specify a different p...
def lWLw(Ux0P='tuf.interposition.json', MW_d=None, xTxg=None): EtQn = ra61(ywph.add, filename=Ux0P, parent_repository_directory=MW_d, parent_ssl_certificates_directory=xTxg) return EtQn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGPY(YKHO):\n R7kR = 'Invalid parent_repository_directory for {network_location}!'\n iKHg = YKHO.configuration['repository_directory']\n if YKHO.parent_repository_directory is not None:\n MW_d = Hy7s.path.abspath(YKHO.parent_repository_directory)\n if Hy7s.path.isdir(MW_d):\n ...
[ "0.66157585", "0.56264025", "0.56136805", "0.5501226", "0.5418353", "0.53917515", "0.52216995", "0.51593626", "0.51215523", "0.5094809", "0.509023", "0.5087156", "0.50787836", "0.49399146", "0.49325302", "0.49275377", "0.49275377", "0.48881793", "0.48721465", "0.48632544", "0...
0.4956491
13
Calculate the normal force for each roller in a cylindrical roller bearing. The example below uses a bearing with 13 rollers and a roller length of 10. The rollers and bearing rings have no profile (see comb_prof).
def n49H(): wPN_ = oyIN.linspace(0, 2 * mM0K, 13) khr9 = oyIN.linspace(-5, 5, 31) aIBp = 0.0184 EWJI = 3000 CYCh = oyIN.zeros(len(khr9)) DFt5, bGrB, bGrB = yKIT.fcylrolbear(wPN_, CYCh, khr9, EWJI, rad_clear=aIBp, max_dif=0.0005) jDK_ = QrM1.subplot(111, projection='polar') jDK_.plot(wPN_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EHiI(YKHO, gUo1, wW3z, y917, vQ4U):\n hKNa, iILv, j36G, WWw8 = vQ4U\n XP5J, vexM, Mkmy = wW3z\n if YKHO.wind.turbulence:\n fTTG, RyRt, sYpN = YKHO.wind.get_turbulence_angular(YKHO.cur_sim_step)\n XP5J, vexM, Mkmy = (XP5J - fTTG, vexM - RyRt, Mkmy - sYpN)\n _D6Y, Cwt5, UqYS = YKHO._cal...
[ "0.58695155", "0.58518165", "0.5687316", "0.5660655", "0.55636644", "0.5547761", "0.54894644", "0.54670656", "0.5465113", "0.54500246", "0.5433046", "0.5430938", "0.5429336", "0.5405292", "0.53803724", "0.5363488", "0.53560823", "0.5353665", "0.5334211", "0.53288364", "0.5320...
0.5565053
4
Takes a number as a float and returns it as a Spanishformatted string.
def Zudy(FGW3): FGW3 = str(FGW3).replace('.', '!').replace(',', '.').replace('!', ',') if FGW3.endswith(',0'): return FGW3.replace(',0', '') elif FGW3.endswith(',00'): return FGW3.replace(',00', '') else: return FGW3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVs3(BWXx: float) -> str:\n if isinstance(BWXx, str):\n return BWXx\n try:\n l5Ny = NCqB.format_string('%g', BWXx)\n except:\n print('value = %r' % BWXx)\n raise\n return l5Ny", "def eY98(FGW3):\n c5zP = '{0:.2g}'.format(FGW3)\n if 'e' in c5zP:\n P8oC, w52...
[ "0.68392646", "0.6534343", "0.64031005", "0.64031005", "0.64031005", "0.64031005", "0.64031005", "0.64031005", "0.6393232", "0.6380357", "0.632991", "0.63282293", "0.62971455", "0.6263056", "0.6263056", "0.62201214", "0.6217278", "0.62104905", "0.61959827", "0.6188589", "0.61...
0.59856033
33
Compute the blackbody flux as a function of wavelength `lam` in mks units
def cbXq(EhIg, ovGo): return TLv5 * YlEa / rxEN.pow(EhIg, 5) / rxEN.expm1(MKlR * Z9rn / (EhIg * Ux5V * ovGo))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U917(pEuX, ycBG):\n PtXs = 0.014387773538277204\n Os_7 = 1.1910429526245744e-25\n pEuX = pEuX * 1e-09\n return Os_7 / (pEuX ** 5 * (oyIN.exp(PtXs / (pEuX * ycBG)) - 1))", "def Q87n(ycBG):\n ycBG = ycBG * P6bq.K\n mPIc = (PtXs.b_wien / ycBG).to(P6bq.AA)\n MeGE = oyIN.logspace(0, oyIN.log1...
[ "0.69378716", "0.68514943", "0.68277955", "0.6776591", "0.64785033", "0.6465841", "0.63772833", "0.63621783", "0.63189", "0.62854934", "0.6184529", "0.6161456", "0.61440426", "0.6136335", "0.6128363", "0.60893786", "0.60477114", "0.6031709", "0.6009513", "0.5929039", "0.59231...
0.6669521
4
The cosine of a 2d array
def piyW(epBp): return rxEN.cos(epBp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tFNH(rdlD, SppC):\n jOqW = SppC.dot(rdlD.T)\n Tcon = oyIN.square(SppC).sum(axis=1) * oyIN.square(rdlD).sum(axis=1)\n return oyIN.divide(jOqW, Tcon).reshape(1, -1)", "def tFNH(WKvO):\n return oyIN.cos(WKvO)", "def tFNH(EcVT, fuBA):\n ZsiB = 1 / oyIN.sqrt(oyIN.sum(oyIN.square(EcVT), axis=2))\n...
[ "0.7780669", "0.77593434", "0.7150486", "0.70537907", "0.69948745", "0.69627756", "0.69206345", "0.6876081", "0.68071437", "0.6728593", "0.6722869", "0.6721776", "0.67005914", "0.6699583", "0.6659377", "0.66536415", "0.65215284", "0.65092033", "0.64906824", "0.6490266", "0.64...
0.6406393
26
Return the least common multiple (LCM) of the arguments
def BsJX(jzdc, Fg_i): return jzdc * Fg_i // ML2l(jzdc, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EIJH(*qIxc):\n return Pusg(BsJX, qIxc)", "def EIJH(*qIxc):\n return Pusg(BsJX, qIxc)", "def EIJH(*qIxc):\n return Pusg(BsJX, qIxc)", "def EIJH(*qIxc):\n return Pusg(BsJX, qIxc)", "def EIJH(*qIxc):\n \"\"\"Return lcm of args.\"\"\"\n return Pusg(BsJX, qIxc)", "def EIJH(*qIxc):\n r...
[ "0.80933213", "0.80933213", "0.80933213", "0.80933213", "0.80754215", "0.80491", "0.80236155", "0.7973648", "0.78466886", "0.7799113", "0.77567554", "0.77247834", "0.76321214", "0.7555906", "0.75257635", "0.7464466", "0.74476904", "0.7433571", "0.74202", "0.7349842", "0.72789...
0.71573913
27
Return the multiplicative inverse of a, mod m
def CX33(jzdc, r8hN): Oa1e, WKvO, LVAh = N5DO(jzdc, r8hN) if Oa1e != 1: raise ValueError('modular inverse does not exist') else: return WKvO % r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fFrU(YKHO, jzdc, r8hN):\n Oa1e, WKvO, LVAh = YKHO._egcd(jzdc, r8hN)\n if Oa1e != 1:\n raise Exception('modular inverse does not exist')\n else:\n return WKvO % r8hN", "def K4d0(jzdc, r8hN):\n g3eu = r8hN\n LVAh = 0\n WKvO = 1\n if r8hN == 1:\n return 0\n while jzd...
[ "0.88052356", "0.85028684", "0.8473774", "0.8457664", "0.8374157", "0.83740187", "0.8287966", "0.8287966", "0.82717854", "0.82557166", "0.82506174", "0.8170463", "0.816376", "0.81153435", "0.80367607", "0.7984781", "0.79225093", "0.78926307", "0.77804977", "0.77565545", "0.77...
0.8117082
13
converts number in_num from base fbase to base tbase see overloads below
def C0no(hHJ6, xx7G: int=10, fTeL: int=2, FB6H: bool=False): if not (isinstance(hHJ6, list) or isinstance(hHJ6, str)): raise TypeError(f'in_num must be either List[str] or strTypes: {type(hHJ6)}, {type(xx7G)}, {type(fTeL)}, {type(FB6H)}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VZC1(mLGw, P8oC):\n U5bT = 0\n for Ko6S in mLGw:\n U5bT *= P8oC\n U5bT += int(Ko6S)\n return U5bT", "def _gLu(mLGw, P8oC):\n BHGE = '0123456789ABCDEF'\n if mLGw < P8oC:\n return BHGE[mLGw]\n else:\n return _gLu(mLGw // 2, P8oC) + BHGE[mLGw % P8oC]", "def Hr7C(Y...
[ "0.72313946", "0.717789", "0.7099709", "0.7036969", "0.70092356", "0.70073956", "0.7004466", "0.69926274", "0.69404495", "0.69140124", "0.6911798", "0.6889921", "0.6886429", "0.6874166", "0.6870596", "0.68554795", "0.6854047", "0.68533975", "0.6820993", "0.6808863", "0.680886...
0.6330258
56
CONSTANT REMOVAL TREATMENT (SWMM Water Quality Manual, 2016) Treatment results in a constant percent removal. R = pollutant removal fraction (unitless)
def JxJ5(YKHO, yHil, SV7n, SGPK, I1mm): if YKHO.flag == 0: TKZC = YKHO.sim._model.getNodeCin(yHil, SV7n) xGcR = (1 - SGPK['R']) * TKZC YKHO.sim._model.setNodePollutant(yHil, SV7n, xGcR) else: TKZC = YKHO.sim._model.getLinkC2(yHil, SV7n) xGcR = (1 - SGPK['R']) * TKZC ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FMQW(a1PO, Mkmy):\n return (1 + Mkmy) ** (-a1PO)", "def z3cz(eHNT, yuVB, a1PO):\n return MlKw(eHNT, yuVB, a1PO) * tnIH(eHNT, yuVB, a1PO) / 2.0", "def NR2F(Mkmy):\n ekEi = vSLH(Mkmy)\n b50Q = oyIN.linalg.norm(ekEi)\n if b50Q < T6xC.rc:\n return 4 * T6xC.eps * ((T6xC.sigma / b50Q) ** 12...
[ "0.60526574", "0.5873454", "0.5813997", "0.57935435", "0.5777502", "0.57671607", "0.57576936", "0.5735915", "0.57336605", "0.57221854", "0.5717833", "0.57075065", "0.57014567", "0.56613827", "0.5660917", "0.56587523", "0.5656721", "0.56561035", "0.56560355", "0.5638923", "0.5...
0.57867587
4
Return an iterable representing `i` split into `n`sized chunks.
def yOAJ(YRbF, exwG): IEMn = iter(YRbF) return iter(lambda: tuple(WhY1.islice(IEMn, exwG)), ())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WaSS(OxJJ, exwG):\n qIxc = [iter(OxJJ)] * exwG\n for uOe2 in pI5f(*qIxc, fillvalue=None):\n yield filter(None, uOe2)", "def ZPA5(Q6uT, exwG):\n return (Q6uT[oeNL:oeNL + exwG] for oeNL in Ni9Y(0, len(Q6uT), exwG))", "def AyNP(vC9B, exwG):\n for YRbF in i7ut.xrange(0, len(vC9B), exwG):\n ...
[ "0.83382785", "0.8300616", "0.82969683", "0.8268187", "0.82549286", "0.82155055", "0.8205527", "0.8202845", "0.8202845", "0.8202845", "0.81950885", "0.8194677", "0.81860244", "0.81668925", "0.8156724", "0.81542325", "0.81349355", "0.81280017", "0.8114167", "0.80964464", "0.80...
0.879145
0
Returns the ground distance in metres between two arrays with items of LocationGlobal objects. This method is an approximation, and will not be accurate over large distances and close to the
def Pg9M(Gtsc, chwA): n_9K = chwA[0] - Gtsc[0] fOkK = chwA[1] - Gtsc[1] return (fOkK * 111319.5, n_9K * 111319.5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjqF(qqsd):\n O3Ka = FMwV.location.global_relative_frame\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5", "def vjqF(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + ...
[ "0.6934251", "0.64846617", "0.6448751", "0.63922197", "0.63922197", "0.63922197", "0.63922197", "0.63922197", "0.63922197", "0.63922197", "0.63759756", "0.6371588", "0.63637733", "0.63598454", "0.63098544", "0.6091214", "0.5960563", "0.59243274", "0.59135646", "0.5890321", "0...
0.5571181
31
Function that updates the weights of a neural network with Dropout regularization
def Yntr(fuBA, _mSQ, wyyA, Cwt5, sMyr, aPd6): Edpv = _mSQ.copy() bGrB, r8hN = fuBA.shape for hh3q in reversed(range(aPd6)): if hh3q == aPd6 - 1: aUJK = wyyA['A' + str(hh3q + 1)] - fuBA ncXl = (oyIN.matmul(wyyA['A' + str(hh3q)], aUJK.T) / r8hN).T NCls = oyIN.sum(aU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n YKHO.model.W_1 = YKHO.model.W_1 - YKHO.learning_rate * YKHO.total_grad_1\n YKHO.model.W_2 = YKHO.model.W_2 - YKHO.learning_rate * YKHO.total_grad_2", "def MyUA(YKHO):\n for Zxma in Ni9Y(len(YKHO.weights)):\n for YRbF in Ni9Y(len(YKHO.weights[Zxma])):\n for r845 in Ni9...
[ "0.7453877", "0.744088", "0.7433483", "0.7385668", "0.7241858", "0.7150335", "0.714526", "0.7137215", "0.71269464", "0.71198756", "0.7115926", "0.71016777", "0.70713824", "0.70597744", "0.70588326", "0.7047836", "0.70073324", "0.69908464", "0.6980414", "0.6961548", "0.6947911...
0.0
-1
Initialize to defaults. first_player If None, I'll pick randomly.
def FIMM(YKHO, q_Hv=None): YKHO.board = {} for UqpO in YKHO.iter_xyz(): YKHO.board[UqpO] = _UKz(UqpO) YKHO.scores = {} YKHO.reset(q_Hv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MEiE(YKHO, JyDd=None):\n if not JyDd:\n JyDd = tuKI.choice(list(YKHO._boards.keys()))\n YKHO.activePlayer = JyDd", "def rAsL(YKHO):\n Bwa6 = []\n while len(Bwa6) < 2:\n u46J = input('Please enter a name for the first player: ')\n if not Bwa6:\n oyg0 = mVZ4(u46J, ' ...
[ "0.7582739", "0.67376983", "0.66866803", "0.66334045", "0.6536498", "0.6492762", "0.6459111", "0.64545697", "0.6391054", "0.6387178", "0.63729334", "0.6363537", "0.6357561", "0.63500875", "0.6329509", "0.6316566", "0.6306806", "0.6262831", "0.6251268", "0.6228102", "0.6221705...
0.5865986
52
Reset to defaults. first_player If None, I'll pick randomly.
def SiRx(YKHO, q_Hv=None): if q_Hv is None: q_Hv = tuKI.choice([Uah8, hJxn]) YKHO.first_player = q_Hv for Fyji in YKHO.board.values(): Fyji.reset() for YRbF in (Uah8, hJxn): YKHO.scores[YRbF] = 0 YKHO.move_count = 0 YKHO.status = [] for Gaon in ('LEVEL CHANGED', 'SCOR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MEiE(YKHO, JyDd=None):\n if not JyDd:\n JyDd = tuKI.choice(list(YKHO._boards.keys()))\n YKHO.activePlayer = JyDd", "def fjBN(YKHO):\n YKHO.hands = [MsG1([])]\n YKHO.doubledDown = False\n YKHO.split = False\n YKHO.stand = False", "def SiRx(YKHO):\n for _ym3 in range(len(YKHO.play...
[ "0.75951946", "0.70498526", "0.70421517", "0.7032026", "0.70146", "0.69860244", "0.683729", "0.68091965", "0.67077464", "0.66957134", "0.6594393", "0.659094", "0.6546394", "0.64964885", "0.6464369", "0.6463514", "0.6456639", "0.6446738", "0.64448655", "0.64333576", "0.6431380...
0.7630204
0
Given a player, return the other player.
def wNmq(YKHO, oyg0): if oyg0 == Uah8: return hJxn return Uah8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wNmq(YKHO, oyg0: Player) -> mVZ4:\n if oyg0 is YKHO.player1:\n return YKHO.player2\n else:\n return YKHO.player1", "def m9f3(YKHO, oyg0):\n if oyg0 == YKHO.get_player_a():\n return YKHO.get_player_b()\n if oyg0 == YKHO.get_player_b():\n return YKHO.get_player_a()", "...
[ "0.9112752", "0.8956416", "0.87581724", "0.86657315", "0.8116758", "0.799654", "0.799654", "0.78398526", "0.77504975", "0.7680618", "0.75835353", "0.7579914", "0.74907523", "0.7305408", "0.7219292", "0.7212296", "0.7156291", "0.7155332", "0.7126187", "0.7126187", "0.7126187",...
0.72250485
14
Encode the given mesh id (e.g. a 'supervoxel ID' in neu3) into a suitable filename for inclusion in a mesh tarball.
def yKkg(GPtr, ompl): YCC9 = GPtr['mesh-config']['storage']['naming-scheme'] gz5z = GPtr['mesh-config']['storage']['format'] ompl = int(ompl) if YCC9 == 'trivial': HddV = str(ompl) elif YCC9 == 'neu3-level-0': jBxA = 0 HddV = str(ompl + jBxA) elif YCC9 == 'neu3-level-1': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jYn_(NBcv: int, rR8k: int) -> str:\n pass", "def d1lJ(id):\n rMSY = ZfMZ(id)\n if len(rMSY) > 132:\n Mg47 = xORj(rMSY.encode('utf-8')).hexdigest()\n return rMSY[:100] + Mg47\n else:\n return rMSY", "def y5ZI(YKHO, id):\n return str(id) + '.dcm'", "def vN4_(zrIJ, NBcv, ...
[ "0.6257817", "0.61706036", "0.5916914", "0.59048206", "0.5881964", "0.5798364", "0.5603632", "0.55784357", "0.5519747", "0.5467012", "0.5459298", "0.54466", "0.5441245", "0.54069597", "0.53704876", "0.53653735", "0.53612864", "0.53479284", "0.5346924", "0.53352594", "0.531126...
0.7204109
0
Read fragments from input, write results to output model DeepSpeech model to run input input binary audio stream 16KHz mono 16bit unsigned machine order audio output output (text) stream to which to write updates rate audio rate (16,000 to be compatible with DeepSpeech) max_decode_rate maximum number of times/s to do p...
def AwhV(C3ST, input, LIUl, LxeQ=320, mVUw=muwo.SAMPLE_RATE, Jm2p=4): for yIVm in W3Gj(C3ST, input=input, rate=mVUw): LIUl.put(yIVm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_():\n with open('audio_files.txt') as sA0_:\n D8Si = sA0_.read().splitlines()\n for shms in D8Si:\n zZcM = shms + '.mp3'\n zr3f = shms + '.wav'\n x2yN = pq6R.from_mp3(zZcM)\n x2yN.export(zr3f, format='wav')\n for shms in D8Si:\n '\\n Speech - to tex...
[ "0.6370651", "0.6307248", "0.6236316", "0.6186978", "0.6144894", "0.6144872", "0.6114848", "0.60958844", "0.6062879", "0.6046755", "0.6023252", "0.597592", "0.5951505", "0.5940479", "0.5938336", "0.59279126", "0.5903279", "0.58662677", "0.5830224", "0.581028", "0.5810212", ...
0.6461405
0
The inserted document's _id.
def Ne1w(YKHO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZn6(YKHO) -> int:\n return YKHO._document_id", "def oFUB(YKHO):\n return YKHO._id", "def oFUB(YKHO):\n return YKHO._id", "def oFUB(YKHO):\n return YKHO._id", "def oFUB(YKHO):\n return YKHO._id", "def oFUB(YKHO):\n return YKHO._id", "def yZn6(YKHO) -> str:\n return YKHO._docume...
[ "0.7790446", "0.76858306", "0.76858306", "0.76858306", "0.76858306", "0.76858306", "0.7678249", "0.7629422", "0.7493118", "0.744791", "0.74080104", "0.74031216", "0.73764056", "0.7364161", "0.7295972", "0.7295972", "0.7295972", "0.7295972", "0.7295972", "0.7295972", "0.729597...
0.73401344
14
The number of documents matched for this update.
def L6sn(YKHO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO):\n return len(YKHO.document_ids)", "def szAg(YKHO) -> int:\n return YKHO.db.count_documents({'checker': YKHO.checker_name, 'name': YKHO.dict_name})", "def rYGI(YKHO):\n return YKHO.db.get_doccount()", "def rYGI(YKHO):\n return YKHO._document_count", "def UHFx(YKHO):\n if YKHO....
[ "0.7697552", "0.74607384", "0.7437749", "0.7418565", "0.72864187", "0.726217", "0.71098006", "0.7093117", "0.7077046", "0.701293", "0.7010018", "0.69834274", "0.69397193", "0.69057065", "0.6878673", "0.68502676", "0.68086874", "0.67659205", "0.6715962", "0.67051464", "0.66992...
0.71419466
6
The _id of the inserted document if an upsert took place. Otherwise ``None``.
def MbgD(YKHO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usgs(YKHO, C13M):\n if '_id' in C13M:\n yield YKHO.repo.replace_one({'_id': C13M['_id']}, C13M, True)\n return C13M\n else:\n a1fJ = (yield YKHO.repo.insert_one(C13M))\n Aofo = a1fJ.inserted_id\n C13M['_id'] = Aofo\n return C13M", "def JPHp(YKHO, xUwc, A97Q):\n...
[ "0.66214335", "0.6530283", "0.64707506", "0.64626163", "0.6454918", "0.6432358", "0.637621", "0.6334463", "0.63275254", "0.63264924", "0.63052297", "0.62735695", "0.61806625", "0.61698323", "0.61624986", "0.6130962", "0.6130962", "0.6130962", "0.6123657", "0.6123657", "0.6123...
0.6835408
0
The number of documents inserted.
def ypOn(YKHO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYGI(YKHO):\n return YKHO.db.get_doccount()", "def rYGI(YKHO):\n return YKHO._document_count", "def UHFx(YKHO):\n return len(YKHO.document_ids)", "def G7LZ(YKHO):\n return len(YKHO.doc)", "def szAg(YKHO) -> int:\n return YKHO.db.count_documents({'checker': YKHO.checker_name, 'name': YKHO...
[ "0.8246859", "0.80564547", "0.7968625", "0.7762117", "0.7668671", "0.75792414", "0.74963707", "0.74155414", "0.7366248", "0.7299498", "0.7286032", "0.7214686", "0.71246797", "0.70302576", "0.70012695", "0.6915227", "0.68592054", "0.684052", "0.68303126", "0.6818785", "0.68142...
0.76475435
5
The number of documents matched for an update.
def L6sn(YKHO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYGI(YKHO):\n return YKHO.db.get_doccount()", "def UHFx(YKHO):\n return len(YKHO.document_ids)", "def szAg(YKHO) -> int:\n return YKHO.db.count_documents({'checker': YKHO.checker_name, 'name': YKHO.dict_name})", "def rYGI(YKHO):\n return YKHO._document_count", "def G7LZ(YKHO):\n return l...
[ "0.7245271", "0.71923393", "0.7083896", "0.7066126", "0.70475763", "0.7015092", "0.6991608", "0.679905", "0.6791774", "0.6677188", "0.66730064", "0.6643924", "0.65452516", "0.65115404", "0.64343643", "0.6375156", "0.6341353", "0.6337752", "0.6334269", "0.6334269", "0.6334269"...
0.6593102
12
Return the % of coordinates_a that are above, overlaping, and below coordinates_b, and the same for b over a
def Acxn(FjXO, VkwB, e_2d: int=1): if not VkwB: L4T9, tJob, VjoW = (-1, -1, -1) else: FjXO = oyIN.asarray(FjXO) VkwB = oyIN.asarray(VkwB) T6DM = VkwB[:, e_2d].min() TIiZ = VkwB[:, e_2d].max() L4T9, tJob, VjoW = loBv(FjXO, T6DM, TIiZ) KAvT = {} KAvT['above'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RWKu(YKHO, jzdc, Fg_i):\n jzdc = [float(exwG) for exwG in jzdc]\n jzdc.sort()\n Fg_i = [float(exwG) for exwG in Fg_i]\n Fg_i.sort()\n LXQN, Qpk_ = jzdc\n zXjw, xQwd = Fg_i\n if xQwd < LXQN:\n return 0\n if zXjw > Qpk_:\n return 0\n if zXjw >= LXQN and xQwd <= Qpk_:\n ...
[ "0.7316303", "0.6938651", "0.69162303", "0.6694027", "0.6647768", "0.6621114", "0.661339", "0.6607044", "0.6577639", "0.65709853", "0.6566216", "0.6565957", "0.65543747", "0.6518273", "0.6492047", "0.6480689", "0.6453643", "0.64493436", "0.64059347", "0.64013517", "0.63346136...
0.6441407
18
config logger depending on APP_ENV
def WWrj(P4t4): wiAm = G9jH.DEBUG if P4t4.config.get('TESTING') else G9jH.INFO IpOZ = '[%(asctime)s] {%(filename)s#%(funcName)s:%(lineno)d} %(levelname)s - %(message)s' DCgT = G9jH.StreamHandler() DCgT.setLevel(wiAm) DCgT.setFormatter(G9jH.Formatter(IpOZ)) P4t4.logger.addHandler(DCgT) P4t4.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EsWC(P4t4):\n eduQ(P4t4)", "def n5Ao(YKHO):\n if YKHO.logger is None:\n YKHO.logger = bo34.getDefault(YKHO.app.name)", "def wmdW():\n G9jH.config.dictConfig(GPtr['logging_dict'])", "def EsWC(P4t4):\n from flacon.utils.extended_logging import wrap_app_logger\n wrap_app_logger(P4t4)",...
[ "0.75270486", "0.74453557", "0.7361128", "0.72308856", "0.71442693", "0.71079016", "0.708218", "0.7048207", "0.7045404", "0.7043133", "0.6987741", "0.69822145", "0.69499093", "0.6919242", "0.6918941", "0.6918556", "0.6902627", "0.6869618", "0.68683696", "0.6856842", "0.681390...
0.71188784
5
3x3 convolution with padding
def Myly(UUZO, sYyA, _0fC=1, moMn=1): return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, groups=moMn, padding=1, bias=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())", "def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)", "def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,...
[ "0.78404945", "0.7541354", "0.753996", "0.7491138", "0.7434801", "0.74207747", "0.73415834", "0.7320252", "0.7299599", "0.7287539", "0.72799367", "0.72799367", "0.7257735", "0.7226928", "0.72204214", "0.7214909", "0.7214909", "0.7210775", "0.7198222", "0.71639067", "0.7161914...
0.0
-1
to_special_token() should return a special token.
def l8_P(): assert DOKB('foo') == '%foo%'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eOtH():\n return 'do some magic!'", "def AoEs():\n assert EqdD(['foo', 'bar']) == ['%foo%', '%bar%']", "def TQGb():\n return f'TOKEN_{FXSn.token_hex(8)}'", "def eOtH(jdnR):\n return jdnR", "def eOtH(jdnR):\n return jdnR", "def fsnU(YKHO, eOtH: str) -> str:\n return eOtH", "def gNT...
[ "0.6769205", "0.676532", "0.63789046", "0.6348667", "0.6348667", "0.6267913", "0.6243173", "0.6242027", "0.61981213", "0.6049638", "0.60317075", "0.5991665", "0.59844226", "0.595285", "0.5891295", "0.58417946", "0.5791058", "0.5772028", "0.57684284", "0.57648087", "0.5752437"...
0.75477207
0
returns the JSON string representation of list_dictionaries
def IZ3T(F986): if F986 is None or F986 == '': return '[]' return qQXR.dumps(F986)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IZ3T(F986):\n import json\n if not F986:\n return '[]'\n return json.dumps(F986)", "def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986)", "def IZ3T(F986):\n if not F986:\n return '[]'\n return qQXR.dumps(F986)", "def IZ3T(F986):\n if F986 ...
[ "0.8489406", "0.84735745", "0.84349716", "0.84312093", "0.84312093", "0.8372786", "0.8298593", "0.8298593", "0.82964134", "0.8292776", "0.8289502", "0.8286243", "0.82687694", "0.82629466", "0.82516354", "0.82467103", "0.8246527", "0.82249945", "0.82249945", "0.82249945", "0.8...
0.8200537
33
Return the distributed object id
def pYHG(YKHO): return YKHO.doId
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def St8f(YKHO):\n return YKHO.gpu_manager.get_object_id.remote(YKHO.get_key())", "def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')", "def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')", "def PWo5(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_object_id')", "def unpH(object):...
[ "0.7709003", "0.73344857", "0.73344857", "0.7205353", "0.7175352", "0.7113792", "0.69970804", "0.69625527", "0.6916089", "0.68752503", "0.68752503", "0.687329", "0.6833838", "0.6803356", "0.67827284", "0.6762251", "0.6760443", "0.67547774", "0.6751179", "0.6751179", "0.675117...
0.0
-1
Computes standard normal cumulative distribution function
def _Ttn(WKvO): return (1.0 + epAf.erf(WKvO / epAf.sqrt(2.0))) / 2.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TLky(WKvO, yGTL=0, WTkW=1):\n return (1 + epAf.erf((WKvO - yGTL) / (epAf.sqrt(2) * WTkW))) / 2", "def TLky(P6bq, M1Jx, WKvO):\n fEVw = WKvO - P6bq\n NSRv = M1Jx * 2 ** (1 / 2)\n epBp = fEVw / NSRv\n return (1 + tVah(epBp)) * 0.5", "def TLky(WKvO, yGTL=0, WTkW=1):\n d7pR = (WKvO - yGTL) / ...
[ "0.7735686", "0.769979", "0.76464576", "0.74212366", "0.7274364", "0.7240823", "0.7164708", "0.7122261", "0.7043427", "0.7033974", "0.69774926", "0.69441134", "0.6834014", "0.6834014", "0.68073696", "0.677303", "0.67211735", "0.67182434", "0.67122406", "0.66929567", "0.667663...
0.6982153
10
Computes DINO's loss given a batch of logits of the student and a batch of logits of the teacher.
def KVH6(YKHO, Gb0N: torch.Tensor, qu17: torch.Tensor) -> ht2j.Tensor: mDHN = Gb0N / YKHO.student_temp mDHN = mDHN.chunk(YKHO.num_large_crops) ycBG = YKHO.teacher_temp_schedule[YKHO.epoch] xfwf = vuvg.softmax((qu17 - YKHO.center) / ycBG, dim=-1) xfwf = xfwf.detach().chunk(2) dxS6 = 0 V7Wf = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YIom(xcid, tOrf, pVGF, itUC, hgjH, QL2O=0.04, euVx=0.1):\n xcid = yOcR.lax.stop_gradient(xcid - hgjH)\n tOrf = yOcR.lax.stop_gradient(tOrf - hgjH)\n D56_ = oqGu(xcid, itUC, QL2O, euVx)\n CbN3 = oqGu(tOrf, pVGF, QL2O, euVx)\n return oLG2.mean(D56_ + CbN3) / 2", "def GDEp(Pdw1, utUR, pan_, ovGo=...
[ "0.7379994", "0.6945612", "0.6785463", "0.6589367", "0.6588508", "0.6514139", "0.64731616", "0.6397306", "0.638192", "0.629262", "0.6222395", "0.61791384", "0.6177308", "0.61556715", "0.6149248", "0.613172", "0.6127957", "0.6120711", "0.61119676", "0.6086004", "0.60760444", ...
0.6019425
25
Updates the center for DINO's loss using exponential moving average.
def NL_S(YKHO, qu17: torch.Tensor): LY3M = ht2j.sum(qu17, dim=0, keepdim=True) if pImw.is_available() and pImw.is_initialized(): pImw.all_reduce(LY3M) LY3M = LY3M / pImw.get_world_size() LY3M = LY3M / len(qu17) YKHO.center = YKHO.center * YKHO.center_momentum + LY3M * (1 - YKHO.center_mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RF3f(P8oC: torch.Tensor, QdZT: torch.Tensor, H0zq: float) -> ht2j.Tensor:\n return P8oC.mul_(H0zq).add_(1 - H0zq, QdZT)", "def X5Ia(jvSB, S8vG):\n return VKlH * abs(jvSB) + (1 - VKlH) * S8vG", "def rIP3(YKHO, dy_H, Cwt5):\n _mSQ = oyIN.array([(1 - Cwt5) ** YRbF for YRbF in range(YKHO.window)])\n ...
[ "0.67090076", "0.60903543", "0.5979197", "0.591121", "0.59023327", "0.5873351", "0.58466", "0.58466", "0.5846533", "0.5813008", "0.5772605", "0.57656425", "0.5720849", "0.56603837", "0.5656359", "0.56393254", "0.56369525", "0.56219643", "0.56112355", "0.5606889", "0.56014687"...
0.0
-1
Returns the next document. If the sampler is a repeating sampler (constructed with repeat=True), it will back to the start if the corpus is exhausted.
def zsRx(YKHO): if YKHO._idx >= len(YKHO._corpus): if not YKHO.repeat: raise IndexError('Attempting to sample more items than available.') YKHO.reset_sampler() A97Q = YKHO._corpus[YKHO._idx] YKHO._idx += 1 return A97Q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next(YKHO):\n while YKHO.alive:\n A97Q = YKHO.try_next()\n if A97Q is not None:\n return A97Q\n raise StopIteration", "def next(YKHO):\n if len(YKHO.docids) < 1:\n raise Exception('There are no more documents to be selected')\n if len(YKHO.docids) == 1:\n YK...
[ "0.6702402", "0.6691729", "0.6020494", "0.59573483", "0.57976586", "0.57730526", "0.5771169", "0.5762483", "0.5744756", "0.5721605", "0.5701823", "0.5698649", "0.56898797", "0.5688829", "0.5688829", "0.5687075", "0.5659973", "0.5640586", "0.5639693", "0.5639693", "0.5636431",...
0.7315304
0
Unfold a deep LSTM block of two stacked cells over len(v) steps v is an input vector of vectors holding training data. s is a vector of vectors holding test data.
def ceSV(skHC, r2KN, Ty9i, KCHu, RHJb): for VmPb in enumerate([skHC, r2KN]): YRbF, Z9rn = VmPb G9jH('Cell %s weights ======================' % str(YRbF + 1), 2) G9jH('Wi: %s' % [str(vC9B) for vC9B in Z9rn.Wi], 2) G9jH('Wm: %s' % [str(vC9B) for vC9B in Z9rn.Wm], 2) G9jH(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzmd(Ty9i, yvT9, KCHu, RHJb, HasU):\n YR8r = []\n EDNH = []\n fUYa = len(Ty9i[0])\n skHC = dR1E([], outputs=yvT9, inputs=fUYa)\n r2KN = dR1E([], outputs=yvT9, inputs=fUYa)\n for tTpl in range(0, HasU):\n G9jH('========================================', 2)\n G9jH('===============...
[ "0.7169926", "0.69002354", "0.6373511", "0.5737797", "0.568752", "0.5613357", "0.55581725", "0.53854424", "0.53509694", "0.53335464", "0.5253001", "0.52304393", "0.5191122", "0.5117072", "0.50599015", "0.5045385", "0.50380814", "0.4984089", "0.49546927", "0.49383828", "0.4924...
0.638201
2
Return the URL of the source of this HTML
def Rv19(YKHO, uUrB=False): if not YKHO.selection or uUrB: YKHO.GetFromClipboard() return YKHO.source
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVHS(YKHO):\n return YKHO._url", "def TVHS(YKHO):\n return YKHO._html_url", "def TVHS(YKHO):\n return YKHO._html_url", "def bD7m(YKHO):\n return YKHO.data.get('html_url')", "def TVHS(YKHO):\n return YKHO._html_url", "def N0iO(YKHO):\n return YKHO.get_string('getHtmlSource', [])", ...
[ "0.8250583", "0.81561685", "0.81561685", "0.813227", "0.8131937", "0.7930889", "0.7930889", "0.7836115", "0.7775786", "0.76687104", "0.7543663", "0.7432581", "0.7326348", "0.7263556", "0.72630435", "0.72049916", "0.71910053", "0.7166288", "0.71525484", "0.71525484", "0.714209...
0.0
-1
Renders the home page.
def kZiy(): return TvZl('index.html', title='Password Generator', year=qcWV.now().year)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86085397", "0.85661966", "0.8562984", "0.84564984", "0.8353822", "0.8353445", "0.832796", "0.83265287", "0.83265287", "0.8311966", "0.83088946", "0.83046836", "0.8296962", "0.82942903", "0.82942903", "0.82872546", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.8279...
0.0
-1
Renders the contact page.
def Mxk0(): return TvZl('contact.html', title='Contact Us!', year=qcWV.now().year, message='You can visit us on these platforms:')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85942996", "0.856412", "0.856412", "0.8553042", "0.84771496", "0.84180754", "0.84098697", "0.8347894", "0.8342256", "0.8328687", "0.82468224", "0.82289207", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.8...
0.79173815
37
Return a string containing the path to your character image. Remember computers need to know where every file is, not just its name. More specifically the computer needs the path to that image! For your image to fit correctly with this game make sure its 255 x 255 pixels in size
def Xxej() -> str: gIsw = 'assets/images/bird.png' return gIsw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SUL8(Ux0P):\n return Hy7s.path.join('images', Ux0P)", "def SUL8(Ux0P):\n return Hy7s.path.join('images', Ux0P)", "def SUL8(Ux0P):\n return Hy7s.path.join('../images', Ux0P)", "def SUL8(Ux0P):\n Hy7s.chdir('c:\\\\users\\\\alan\\\\documents\\\\GitHub\\\\Python\\\\Exercises\\\\PyAutoGUI\\\\email...
[ "0.6928908", "0.6927945", "0.6843366", "0.67581856", "0.67549473", "0.6689005", "0.6627186", "0.66153544", "0.65967697", "0.65575254", "0.65227973", "0.65160364", "0.64971805", "0.64967465", "0.64670527", "0.64670527", "0.6336916", "0.63210857", "0.6273951", "0.6266734", "0.6...
0.7960518
0
Return a list of new x and y coordinates for the character sprite based on which key is pressed. Let's focus on making the bird travel up if the up arrow key is pressed. If the player is pressing the up arrow key, the parameter key will be 'UP'. In game design, we make a sprite move by specifying a new location for it ...
def JwSu(H5ew: str, RHUL: list) -> list: YbFx = 60 if H5ew == 'UP' and RHUL[1] >= 0: RHUL[1] -= YbFx return RHUL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oNVB(YKHO):\n H5ew = a9eO.key.get_pressed()\n if YKHO.x_pos > 350:\n YKHO.x_pos = 50\n if H5ew[a9eO.K_RIGHT]:\n YKHO.x_pos += 5\n elif YKHO.x_pos < 50:\n YKHO.x_pos = 350\n if H5ew[a9eO.K_LEFT]:\n YKHO.x_pos -= 5\n elif YKHO.y_pos > 350:\n YK...
[ "0.71705157", "0.680987", "0.66497725", "0.65793866", "0.65339416", "0.65037", "0.6495062", "0.6477174", "0.6426662", "0.6425134", "0.64237195", "0.64237195", "0.64235455", "0.64210343", "0.6396265", "0.63834876", "0.63723594", "0.63717467", "0.6331093", "0.63298136", "0.6326...
0.71214515
1
Turn URL string into parameters.
def pmNP(Oohf): SGPK = _Ibt(Oohf.encode('utf-8'), keep_blank_values=True) for G1Hx, Ty9i in SGPK.iteritems(): SGPK[G1Hx] = uRlK.unquote(Ty9i[0]) return SGPK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmNP(Oohf):\n SGPK = SwjJ.parse_qs(Oohf, keep_blank_values=False)\n for G1Hx, Ty9i in SGPK.iteritems():\n SGPK[G1Hx] = uRlK.unquote(Ty9i[0])\n return SGPK", "def pmNP(Oohf):\n SGPK = SwjJ.parse_qs(Oohf, keep_blank_values=False)\n for G1Hx, Ty9i in SGPK.iteritems():\n SGPK[G1Hx] =...
[ "0.73078614", "0.73078614", "0.71719503", "0.710244", "0.68732923", "0.6846075", "0.6709672", "0.658793", "0.6523556", "0.64784896", "0.64761007", "0.64753073", "0.64412576", "0.6423888", "0.642368", "0.6368142", "0.6295908", "0.62867635", "0.62533367", "0.62488884", "0.62365...
0.7349705
0
Returns a normalized url, without params
def H6JH(bD7m): if bD7m is not None: ht58, RYr6, pmON, NArs, xDcj, vBtp = KVWQ(bD7m) if ht58 == 'http' and RYr6[-3:] == ':80': RYr6 = RYr6[:-3] elif ht58 == 'https' and RYr6[-4:] == ':443': RYr6 = RYr6[:-4] if ht58 not in ('http', 'https'): raise V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LEr9(YKHO, bD7m):\n return '/%s' % bD7m.strip('/')", "def gmoQ(NArs):\n ff2B, bD7m = NArs\n if bD7m is None:\n return bD7m\n bD7m = ZbWC.sub(ff2B, '', bD7m)\n return bD7m", "def yhHm(bD7m):\n return bD7m", "def gmoQ(YKHO, bD7m):\n raise NotImplementedError", "def Xhyf(bD7m):...
[ "0.7553742", "0.7416149", "0.7408127", "0.73929435", "0.7237859", "0.72361714", "0.71585697", "0.71059453", "0.7043137", "0.69722426", "0.69281715", "0.6906915", "0.68564683", "0.6800615", "0.674006", "0.6739653", "0.6727197", "0.6721157", "0.66639096", "0.66620195", "0.66596...
0.66937315
18
returns the MSE error of prediction of the model
def DroR(YKHO, LVAh): return Kt_s.mean(Kt_s.sqr(LVAh - YKHO.y_pred))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VaEf(o3Uj, pan_):\n LVAh = o3Uj\n a1PO = pan_\n exwG = o3Uj.size\n P1dF = 1 / exwG * oyIN.subtract(LVAh, a1PO)\n return P1dF", "def n4qd(YKHO):\n return YKHO.ess / YKHO.df_model", "def ny2L(YKHO, Y8eF, aMgO):\n hkHB = sum((Y8eF - aMgO) ** 2)\n return hkHB", "def hkHB(aMgO, eZic):\...
[ "0.7534503", "0.7531988", "0.7447835", "0.7432489", "0.74148834", "0.7403009", "0.7355392", "0.7344236", "0.73152906", "0.73002404", "0.7283169", "0.7257042", "0.72387594", "0.7220601", "0.7167184", "0.7151921", "0.7146956", "0.7136693", "0.70960206", "0.7090577", "0.7090313"...
0.6911457
47
factorise(integer) > [list of factors] Returns a list of the (mostly) prime factors of integer n. For negative integers, 1 is included as a factor. If n is 0, 1 or 1, [n] is returned as the only factor. Otherwise all the factors will be prime. >>> factorise(693) [1, 3, 3, 7, 11] >>> factorise(55614) [2, 3, 13, 23, 31]
def dhbw(exwG): Aofo = [] for XP5J, UHFx in Llmz(exwG): Aofo.extend([XP5J] * UHFx) if __debug__: if dzAO: QRFO = 1 for WKvO in Aofo: QRFO *= WKvO assert QRFO == exwG, 'factors(%d) failed multiplication test' % exwG return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vwuU(exwG):\n aPd6 = []\n for ffYW in rPed:\n if exwG % ffYW == 0:\n aPd6.append(ffYW)\n if exwG / ffYW != 1:\n aPd6.extend(vwuU(exwG / ffYW))\n return aPd6\n return aPd6", "def dhbw(exwG):\n if type(exwG) != int or exwG < 1:\n ...
[ "0.76914805", "0.76197135", "0.7597414", "0.7535906", "0.7460856", "0.7425009", "0.742347", "0.74064016", "0.7355115", "0.73376656", "0.73035884", "0.72929513", "0.7277043", "0.72746253", "0.7258605", "0.7252431", "0.7250456", "0.7250456", "0.7248754", "0.7237627", "0.7230733...
0.71361536
31
factors(integer) > yield factors of integer lazily >>> list(factors(377711)) [(3, 1), (7, 3), (11, 1)] Yields tuples of (factor, count) where each factor is unique and usually prime, and count is an integer 1 or larger.
def Llmz(exwG): if exwG in (0, 1, -1): yield (exwG, 1) return elif exwG < 0: yield (-1, 1) exwG = -exwG assert exwG >= 2 from pyprimes import primes for XP5J in primes(): if XP5J * XP5J > exwG: break UHFx = 0 while exwG % XP5J == 0:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uBVK(Llmz):\n ZmUT = []\n for FGW3 in Llmz:\n if ffYW(FGW3):\n ZmUT.append(FGW3)\n return ZmUT", "def Llmz(exwG):\n XP5J = 2\n while exwG > 1:\n while exwG % XP5J == 0:\n exwG /= XP5J\n yield XP5J\n XP5J += 1", "def aM8h(WKvO):\n Llmz ...
[ "0.75865763", "0.7585221", "0.7537089", "0.75215435", "0.75170386", "0.75069815", "0.7440501", "0.74194247", "0.74150604", "0.7414878", "0.7411775", "0.7387203", "0.7377974", "0.73495466", "0.7337744", "0.7331526", "0.7331526", "0.73272854", "0.7324974", "0.7299681", "0.72847...
0.71615154
42
This function is used to build the simple MLP model. It takes input_shape and hidden_units as arguments, which should be used to build the model as described above, using the functional API. It returns the model
def nTud(GhuM, Lh1F): g4y1 = ZylS.keras.layers.Input(shape=GhuM) MKlR = g4y1 for rYO3 in Lh1F: MKlR = ZylS.keras.layers.Dense(rYO3, activation='selu')(MKlR) o4Jx = ZylS.keras.layers.Dense(1, activation='sigmoid')(MKlR) C3ST = ZylS.keras.models.Model(inputs=g4y1, outputs=o4Jx) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CqzP(Gzv5, I07O, b0Ix, kv9S, CLda, cuu0):\n ggYK = ZylS.keras.Sequential()\n ggYK.add(ZylS.keras.layers.Dense(cuu0, activation=ZylS.math.sigmoid, input_shape=[Gzv5]))\n for YRbF in range(CLda - 1):\n ggYK.add(ZylS.keras.layers.Dense(cuu0, activation=ZylS.math.sigmoid))\n ggYK.add(ZylS.keras....
[ "0.76035553", "0.72215056", "0.72158194", "0.7195923", "0.7171653", "0.71254104", "0.70967174", "0.70159405", "0.6969805", "0.6931981", "0.6925051", "0.6919467", "0.68989", "0.6894141", "0.6891434", "0.6887964", "0.68747824", "0.6865417", "0.6857581", "0.68552506", "0.6817087...
0.81366634
0
This function is used to build the simple MLP model. It takes input_shape and hidden_units as arguments, which should be used to build the model as described above, using the functional API. It returns the model
def Q5lt(GhuM, Lh1F, I07O): g4y1 = ZylS.keras.layers.Input(shape=GhuM) MKlR = g4y1 for rYO3 in Lh1F: MKlR = ZylS.keras.layers.Dense(rYO3, activation='selu')(MKlR) o4Jx = ZylS.keras.layers.Dense(I07O, activation=None)(MKlR) C3ST = ZylS.keras.models.Model(inputs=g4y1, outputs=o4Jx) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTud(GhuM, Lh1F):\n g4y1 = ZylS.keras.layers.Input(shape=GhuM)\n MKlR = g4y1\n for rYO3 in Lh1F:\n MKlR = ZylS.keras.layers.Dense(rYO3, activation='selu')(MKlR)\n o4Jx = ZylS.keras.layers.Dense(1, activation='sigmoid')(MKlR)\n C3ST = ZylS.keras.models.Model(inputs=g4y1, outputs=o4Jx)\n ...
[ "0.81361693", "0.7603934", "0.7221963", "0.72155946", "0.71962273", "0.7125512", "0.70976025", "0.7015762", "0.696834", "0.69324064", "0.6926975", "0.69186836", "0.68978107", "0.68959224", "0.68913877", "0.68876886", "0.68746495", "0.6864086", "0.6858935", "0.6855056", "0.681...
0.71714973
5
This function is used to build a complex MLP model. It takes input_shape, hidden_units, l2 regularised coefficient and dropout rate as arguments, which should be used to build the model as described above, using the functional API. It returns a model
def SHmS(GhuM, Lh1F, UP7p, lo24, idFg=False): g4y1 = ZylS.keras.layers.Input(shape=GhuM) MKlR = g4y1 for rYO3 in Lh1F: MKlR = ZylS.keras.layers.Dense(rYO3, activation='selu', kernel_regularizer=ZylS.keras.regularizers.l2(UP7p))(MKlR) if idFg: MKlR = ZylS.keras.layers.BatchNormali...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CqzP(Gzv5, I07O, b0Ix, kv9S, CLda, cuu0):\n ggYK = ZylS.keras.Sequential()\n ggYK.add(ZylS.keras.layers.Dense(cuu0, activation=ZylS.math.sigmoid, input_shape=[Gzv5]))\n for YRbF in range(CLda - 1):\n ggYK.add(ZylS.keras.layers.Dense(cuu0, activation=ZylS.math.sigmoid))\n ggYK.add(ZylS.keras....
[ "0.7206437", "0.6920597", "0.6875085", "0.68435967", "0.6802423", "0.68001574", "0.6788563", "0.6760475", "0.6701846", "0.67010677", "0.66999495", "0.6689522", "0.6662399", "0.6649704", "0.66404104", "0.66307396", "0.6594505", "0.65773195", "0.65727663", "0.65646666", "0.6536...
0.61880374
61
This function is used to build a complex MLP model. It takes input_shape, hidden_units, l2 regularised coefficient and dropout rate as arguments, which should be used to build the model as described above, using the functional API. It returns a model
def JX_h(GhuM, Lh1F, UP7p, lo24, I07O, idFg=False): g4y1 = ZylS.keras.layers.Input(shape=GhuM) MKlR = g4y1 for rYO3 in Lh1F: MKlR = ZylS.keras.layers.Dense(rYO3, activation='selu', kernel_regularizer=ZylS.keras.regularizers.l2(UP7p))(MKlR) if idFg: MKlR = ZylS.keras.layers.BatchN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CqzP(Gzv5, I07O, b0Ix, kv9S, CLda, cuu0):\n ggYK = ZylS.keras.Sequential()\n ggYK.add(ZylS.keras.layers.Dense(cuu0, activation=ZylS.math.sigmoid, input_shape=[Gzv5]))\n for YRbF in range(CLda - 1):\n ggYK.add(ZylS.keras.layers.Dense(cuu0, activation=ZylS.math.sigmoid))\n ggYK.add(ZylS.keras....
[ "0.720329", "0.69172937", "0.6875179", "0.68430793", "0.68013865", "0.68004495", "0.678768", "0.6757833", "0.67009133", "0.6700485", "0.6696289", "0.66860324", "0.66618484", "0.664879", "0.6638527", "0.6629884", "0.6595479", "0.6577124", "0.6572233", "0.6564771", "0.6535276",...
0.60565716
95
Initializes self.__group or append items to it
def uOe2(YKHO, uOe2): if uOe2 is None: YKHO.__group = [] else: YKHO.__group = uOe2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO) -> None:\n YKHO._groups = []", "def fBrL(YKHO, uOe2):\n YKHO.groups += [uOe2]", "def FIMM(YKHO):\n YKHO.groups = dict()\n YKHO.count = 0", "def FIMM(YKHO, nPrm, LS1M=None):\n super(HFY6, YKHO).__init__(nPrm)\n YKHO.Groups = LS1M or []", "def VePB(YKHO):\n from .group imp...
[ "0.7267817", "0.6674449", "0.65112", "0.649672", "0.6454852", "0.644061", "0.6331271", "0.6187433", "0.61391973", "0.612669", "0.6090976", "0.6090534", "0.6076342", "0.6075218", "0.6006681", "0.6003271", "0.5994325", "0.5993538", "0.59891427", "0.5980289", "0.59442", "0.592...
0.6715937
1
Get a random element from the collection.
def UIrZ(YKHO): return YKHO.nums[tuKI.randint(0, len(YKHO.nums) - 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8Zf(YKHO):\n try:\n return YKHO.object().random_element()\n except AttributeError:\n return Acvy(YKHO.list())", "def LAaV(xUwc, q24Q=None):\n try:\n d6pt = tuKI.randint(0, len(xUwc) - 1)\n if q24Q is None:\n return xUwc[d6pt]\n else:\n return...
[ "0.8221962", "0.7761752", "0.750674", "0.74715596", "0.7446763", "0.7373989", "0.7305137", "0.7271455", "0.71799874", "0.7151725", "0.7148621", "0.709205", "0.7078637", "0.7044884", "0.70126224", "0.6974537", "0.69440144", "0.6925515", "0.69068164", "0.69025487", "0.6900869",...
0.6591158
33
Get the user by email
def iXC1(YKHO, NArs={}): D3lj = NArs.get(X6a0.EMAIL) uJjO = XN37.get_user_id(D3lj, YKHO.connection, YKHO.logger) if uJjO is None: return {KiuJ.SUCCESS: False} ' Deactivate the user by id ' bD7m = G4JS.compat.urljoin(YKHO.connection.okta_url, f'/api/v1/users/{uJjO}/lifecycle/suspend') geh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()", "def TKWP(Emd4, D3lj: str):\n for CBIr in Emd4.users:\n if CBIr.email == D3lj:\n return CBIr", "def CYTf(Emd4, D3lj):\n for hbFX in NCls.users:\n CBIr = NCls.users.get(hbFX)\n ...
[ "0.8974804", "0.88534987", "0.8719463", "0.85987186", "0.85628563", "0.8550168", "0.85165465", "0.8511486", "0.84984744", "0.84903955", "0.84903955", "0.84765047", "0.84603536", "0.8445257", "0.84299636", "0.84181625", "0.8415822", "0.8410757", "0.8401102", "0.8382972", "0.83...
0.0
-1
Reduce a list of weights.
def zi6_(VTcd, dbg_): if len(VTcd) == 0: return float('inf') if dbg_: return -oyIN.logaddexp.reduce(-oyIN.asarray(VTcd)) else: return min(VTcd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZaFQ(AZz1):\n return Pusg(lambda WKvO, LVAh: [[oyIN.add(WKvO[0][0], LVAh[0][0]), oyIN.add(WKvO[0][1], LVAh[0][1])], [oyIN.add(WKvO[1][0], LVAh[1][0]), oyIN.add(WKvO[1][1], LVAh[1][1])], [oyIN.add(WKvO[2][0], LVAh[2][0]), oyIN.add(WKvO[2][1], LVAh[2][1])]], AZz1)", "def e6J4(YKHO, _mSQ):\n sORG = oyIN.s...
[ "0.77293134", "0.73673373", "0.6588467", "0.6565441", "0.6432239", "0.64190125", "0.63860536", "0.63165206", "0.63037723", "0.62689054", "0.6241724", "0.6237005", "0.6217578", "0.6198352", "0.6185925", "0.61559", "0.6141286", "0.61026865", "0.61020243", "0.606525", "0.6042951...
0.67494106
2
Expand the set of nodes to all nodes reachable via epsilontransitions.
def xITF(kTmb, Ziit, dbg_): V6IE = {} _ins = set() L9Jq = [] def TClq(KCHu): for jzdc in kTmb.arcs(KCHu): if jzdc.ilabel != 0: break exwG = jzdc.nextstate V6IE.setdefault(exwG, []).append((KCHu, float(jzdc.weight))) if exwG in _ins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lqHv(QJkK: BELGraph, pNZh: BELGraph, Ziit: Iterable[BaseEntity]) -> None:\n for Q6kx in Ziit:\n ofq6(QJkK, pNZh, Q6kx)", "def mCjt(YKHO):\n for KCHu in range(len(YKHO.States)):\n if qGyE in YKHO.delta.get(KCHu, []):\n for j93S in YKHO.epsilonClosure(YKHO.delta[KCHu][qGyE]):\n ...
[ "0.6369937", "0.627888", "0.61915016", "0.6150885", "0.6054914", "0.6012593", "0.5822577", "0.57992965", "0.5781195", "0.5780259", "0.5755228", "0.5730356", "0.57245356", "0.57016325", "0.5696033", "0.5683279", "0.56555206", "0.5605625", "0.55979353", "0.5590999", "0.5530505"...
0.6329302
1
Retrieve the service interface for the given name
def srC1(YKHO, NvwP): for type, wohN in YKHO.getServiceDefinitions(): if type == NvwP: return wohN raise NameError(NvwP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YqR2(mWFP=''):\n global interfaces\n return U4Kw[mWFP]", "def YqR2(YKHO, mWFP):\n for wohN in YKHO.interfaces:\n if wohN.interfacename == mWFP:\n return wohN\n for nUeQ in SC2F.glob(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(tq_1.currentframe()))) + '/interf...
[ "0.8177904", "0.7882339", "0.7834862", "0.7175022", "0.7156809", "0.70314175", "0.69393045", "0.6908149", "0.6897326", "0.6866236", "0.6866236", "0.6866236", "0.6845946", "0.68294", "0.68294", "0.6803685", "0.68031", "0.67383176", "0.67066336", "0.6659152", "0.66426766", "0...
0.74588495
3
Is this value infinite?
def jVJG(YKHO): return YKHO._isinf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SzCS(YKHO, WKvO):\n pass", "def SzCS(YKHO):\n return YKHO.infinite", "def SzCS(YKHO):\n return YKHO.denominator == 0 and YKHO.numerator in (1, -1)", "def Rb_1(YKHO, WKvO):\n pass", "def Rb_1(YKHO):\n return True", "def SzCS(YKHO, *qIxc, **B2fa):\n pass", "def SzCS(YKHO, *qIxc, **B...
[ "0.84477913", "0.83075905", "0.7966605", "0.7793222", "0.7771605", "0.76974684", "0.76974684", "0.76380116", "0.75266343", "0.7473114", "0.7427785", "0.73687935", "0.7354014", "0.73537457", "0.7321109", "0.72769386", "0.72585833", "0.723082", "0.72043073", "0.7132414", "0.711...
0.794629
3
Is this value NaN?
def L_aS(YKHO): return YKHO._isnan
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L6uT(YKHO, WKvO):\n pass", "def L6uT(BWXx):\n return BWXx != BWXx", "def L6uT(WKvO):\n return isinstance(WKvO, float) and epAf.isnan(WKvO)", "def L6uT(BWXx):\n return isinstance(BWXx, float) and epAf.isnan(BWXx)", "def L6uT(YKHO):\n return KFJf.vctr1_is_nan(YKHO)", "def L_aS(wEf2):\n ...
[ "0.87176853", "0.86981136", "0.8274601", "0.82718396", "0.8271818", "0.8222781", "0.82132155", "0.815538", "0.8136481", "0.8136481", "0.81243867", "0.81045735", "0.8058849", "0.8031405", "0.8021301", "0.7941256", "0.79128104", "0.78925335", "0.78422415", "0.782717", "0.778555...
0.8094357
12
Is this value a finite real number, i.e. not an infinity or NaN?
def W36t(YKHO): return not (YKHO._isinf or YKHO._isnan)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ogDa(WKvO):\n WKvO = o4sw(WKvO)\n return WKvO != s9L3 and WKvO != -s9L3 and (WKvO != JNix)", "def Rb_1(YKHO, WKvO):\n pass", "def Rb_1(YKHO):\n return True", "def ogDa(WKvO):\n return sfxH.isfinite(WKvO)", "def Rb_1(YKHO):\n return YKHO._R.is_finite()", "def ogDa(*YEnM):\n return...
[ "0.82463825", "0.82069623", "0.819196", "0.816488", "0.8050083", "0.7822736", "0.7819089", "0.77858233", "0.7760199", "0.7737789", "0.7692183", "0.7644595", "0.76439875", "0.76425713", "0.7619063", "0.76043975", "0.75904846", "0.75904846", "0.75588095", "0.75364", "0.74987924...
0.8595786
0
Is this value "not a real" number, i.e. an infinity or NaN?
def e5X3(YKHO): return YKHO._isinf or YKHO._isnan
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W36t(YKHO):\n return not (YKHO._isinf or YKHO._isnan)", "def ujzM(wEf2):\n return wEf2 == -1 * float('inf')", "def L_aS(wEf2):\n return isinstance(wEf2, mSrU.Number) and (oyIN.isnan(wEf2) or epAf.isnan(wEf2))", "def Rb_1(YKHO, WKvO):\n pass", "def L6uT(WKvO):\n return isinstance(WKvO, fl...
[ "0.8152054", "0.80291075", "0.7714516", "0.7711375", "0.770455", "0.76814157", "0.766062", "0.7637044", "0.7626945", "0.76249284", "0.76094306", "0.7593173", "0.753893", "0.75099826", "0.7495607", "0.749314", "0.747444", "0.74619067", "0.74284923", "0.74239826", "0.74212694",...
0.0
-1
Is this value encoded identically to some other value? This is a structural property, and may be stricter than real valued equality.
def EP18(YKHO, Elif): return YKHO._c == Elif._c and YKHO._exp == Elif._exp and (YKHO._negative == Elif._negative) and (YKHO._isinf == Elif._isinf) and (YKHO._isnan == Elif._isnan) and (YKHO._inexact == Elif._inexact) and (YKHO._rounded == Elif._rounded) and (YKHO._rc == Elif._rc) and (YKHO._interval_size == Elif._i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if isinstance(Elif, AVIp):\n return YKHO.type_code == Elif.type_code and YKHO.value == Elif.value\n else:\n return YKHO.value == Elif", "def xa14(YKHO, Elif: Any) -> bool:\n try:\n return YKHO.value == Elif.value\n except Exception:\n return False",...
[ "0.7336732", "0.73030555", "0.73017234", "0.72839284", "0.72627944", "0.72627944", "0.72627944", "0.72627944", "0.72627944", "0.72627944", "0.72627944", "0.71946913", "0.71946913", "0.7185852", "0.7185852", "0.71493304", "0.7125195", "0.7119957", "0.7119957", "0.70984524", "0...
0.0
-1
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)", "def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)", "def JFat(t_yv):\n try:\n ...
[ "0.86645055", "0.8190357", "0.8175001", "0.8163073", "0.80863976", "0.80863976", "0.80863976", "0.80863976", "0.8086095", "0.80784917", "0.8077746", "0.8073863", "0.8065137", "0.8059543", "0.80573195", "0.8054556", "0.8054348", "0.80456185", "0.80456185", "0.80456185", "0.804...
0.80625504
13
Returns a random alphanumeric string of length `n`.
def BWvy(exwG: int) -> str: return ''.join(oyIN.random.choice([WKvO for WKvO in vIwR.ascii_letters + vIwR.digits], exwG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWvy(exwG):\n P8oC = vIwR.ascii_letters + vIwR.digits\n Mkmy = ''\n for YRbF in range(0, exwG):\n Mkmy = Mkmy + P8oC[tuKI.randrange(0, len(P8oC))]\n return Mkmy", "def j9F_(exwG):\n return ''.join((Acvy('abcdefghijklmnopqrstuvwxyz') for YRbF in range(exwG)))", "def BWvy(exwG):\n re...
[ "0.8881473", "0.8802099", "0.877381", "0.8707627", "0.86808354", "0.86523277", "0.841641", "0.8402525", "0.83078325", "0.8134662", "0.80879176", "0.801405", "0.8013289", "0.7983214", "0.7945886", "0.7942888", "0.79387885", "0.79301023", "0.7926681", "0.7922924", "0.786586", ...
0.8849679
1
Close the connection to the instrument. This method does not release the instrument profile.
def ngVb(YKHO): tVh0 = YKHO.drivers_infos[0] try: tVh0.driver_instance.close_connection() YKHO.connected = False except Exception as e: YKHO.errors += tTpl.message + '\n' YKHO.traceback = '{}'.format(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n YKHO.connect.close()", "def DDI8(YKHO):\n YKHO.comm.instrument.close()", "def DDI8(YKHO):\n YKHO.comm.instrument.close()", "def ngVb(YKHO):\n pass", "def xTL5(YKHO):\n YKHO.conn.close()", "def DDI8(YKHO):\n YKHO._conn.disconnect()", "def DDI8(YKHO):\n YKHO._conn.d...
[ "0.72728056", "0.7243414", "0.7243414", "0.7143092", "0.7115807", "0.7053304", "0.7053304", "0.70438784", "0.70411277", "0.699584", "0.6980539", "0.6964584", "0.69612837", "0.69328195", "0.69294673", "0.69164157", "0.6913159", "0.6901575", "0.6891618", "0.68862605", "0.688016...
0.6907806
17
Loads the contents of filename as a JSON file.
def UlWi(Ux0P): with open(Ux0P) as wM3v: nPrm = qQXR.load(wM3v) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J2u4(Ux0P):\n with open(Ux0P, 'rt') as eHNT:\n return qQXR.load(eHNT)", "def KrsJ(Ux0P, MZgZ=None):\n if MZgZ:\n pmON = Hy7s.path.dirname(Hy7s.path.abspath(MZgZ))\n Ux0P = Hy7s.path.join(pmON, Ux0P)\n with open(Ux0P, 'r', encoding='utf-8') as eHNT:\n return qQXR.load(eHNT...
[ "0.8158537", "0.8027947", "0.8021983", "0.7998612", "0.79828274", "0.7962324", "0.79538196", "0.79103863", "0.79061866", "0.78783596", "0.7843632", "0.782117", "0.77919066", "0.7789519", "0.77690166", "0.7767983", "0.7761706", "0.7761706", "0.77497745", "0.7746679", "0.773688...
0.733909
82
Sets the tag_key of this V1ResourcePoolAwsDetail.
def D2cZ(YKHO, D2cZ): if D2cZ is None: raise ValueError('Invalid value for `tag_key`, must not be `None`') YKHO._tag_key = D2cZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D2cZ(YKHO, D2cZ):\n YKHO._tag_key = D2cZ", "def RQnl(YKHO, H5ew, BWXx):\n return YKHO", "def sIBg(YKHO, H5ew, BWXx):\n pass", "def hLhr(YKHO, hLhr):\n YKHO._tag_name = hLhr", "def RQnl(YKHO, TZ9E):\n YKHO.tag = TZ9E", "def RQnl(YKHO, TZ9E):\n YKHO.tag = TZ9E", "def WeS1(YKHO, WeS1...
[ "0.6758182", "0.5921173", "0.56246513", "0.5588728", "0.5586894", "0.5528158", "0.5503104", "0.5473849", "0.5472162", "0.5472162", "0.54271287", "0.5364388", "0.5276482", "0.51274014", "0.5082933", "0.50496286", "0.5031688", "0.50235647", "0.50235647", "0.5019213", "0.5011023...
0.6135596
1
Sets the instance_name of this V1ResourcePoolAwsDetail.
def zeTD(YKHO, zeTD): if zeTD is None: raise ValueError('Invalid value for `instance_name`, must not be `None`') YKHO._instance_name = zeTD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zeTD(YKHO, zeTD):\n YKHO._instance_name = zeTD", "def zeTD(YKHO, zeTD):\n YKHO._instance_name = zeTD", "def kCyO(YKHO, zeTD):\n YKHO.set_instance_name(zeTD)\n YKHO.instance_name = zeTD\n return YKHO", "def J2sk(YKHO, zeTD):\n YKHO._set_subclient_properties(\"_snap_copy_info['configuredS...
[ "0.70624614", "0.6491196", "0.6046313", "0.59679", "0.58845973", "0.5760787", "0.54391605", "0.53419536", "0.53419536", "0.53419536", "0.53307325", "0.5272599", "0.5229253", "0.5213953", "0.519982", "0.5190745", "0.5190745", "0.5190745", "0.5178853", "0.51671934", "0.51578414...
0.72712004
0
Sets the ssh_key_name of this V1ResourcePoolAwsDetail.
def tR37(YKHO, tR37): if tR37 is None: raise ValueError('Invalid value for `ssh_key_name`, must not be `None`') YKHO._ssh_key_name = tR37
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4G2(YKHO, l4G2):\n YKHO._ssh_key = l4G2", "def ij_i(YKHO, ij_i):\n YKHO._sshkey = ij_i", "def zAat(YKHO, zAat):\n YKHO._key_name = zAat", "def VhAE(YKHO, VhAE):\n try:\n YKHO._keyname = VhAE\n except Exception as e:\n raise tTpl", "def bD9D(YKHO, bD9D):\n YKHO._vpc_name...
[ "0.67165", "0.6674369", "0.5999945", "0.58072", "0.5621038", "0.5576331", "0.54649687", "0.54095995", "0.52645975", "0.5217365", "0.51051277", "0.5083586", "0.5083586", "0.5082075", "0.50714344", "0.50711733", "0.5039057", "0.5027908", "0.499157", "0.49699458", "0.49680853", ...
0.7375537
0
Sets the iam_instance_profile_arn of this V1ResourcePoolAwsDetail.
def Lvfl(YKHO, Lvfl): if Lvfl is None: raise ValueError('Invalid value for `iam_instance_profile_arn`, must not be `None`') YKHO._iam_instance_profile_arn = Lvfl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dR_r(YKHO):\n if YKHO.clobbered:\n raise ZD71('This batch job has already been clobbered.', YKHO.arn)\n YKHO.check_profile()\n geh0 = Onn9['iam'].list_instance_profiles_for_role(RoleName=YKHO.name)\n if geh0.get('InstanceProfiles'):\n hMqs = geh0.get('InstanceProfiles')[0]['Arn']\n ...
[ "0.6034896", "0.54148793", "0.54148793", "0.53773713", "0.5342795", "0.5198842", "0.49142602", "0.48590165", "0.47945702", "0.47833017", "0.47314447", "0.4724591", "0.46895695", "0.4663123", "0.46630016", "0.46029514", "0.45997283", "0.45858237", "0.45764884", "0.4566254", "0...
0.67785984
0
Sets the spot_enabled of this V1ResourcePoolAwsDetail.
def grnp(YKHO, grnp): if grnp is None: raise ValueError('Invalid value for `spot_enabled`, must not be `None`') YKHO._spot_enabled = grnp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAEm(YKHO, *qIxc, **B2fa):\n return qjwc.copy_sptr_set_enabled(YKHO, *qIxc, **B2fa)", "def MAat(YKHO, MAat):\n YKHO._tsp_enabled = MAat", "def lFKz(YKHO, zF0X):\n if YKHO.__data.isPinPointEnabled != zF0X:\n YKHO.__data.isPinPointEnabled = zF0X\n YKHO.invalidateCache()", "def elso(Y...
[ "0.5257111", "0.5178362", "0.5033452", "0.49910024", "0.4898648", "0.48978356", "0.48956543", "0.48956543", "0.48956543", "0.48956543", "0.48956543", "0.48956543", "0.48956543", "0.48956543", "0.48956543", "0.48956543", "0.48956543", "0.48956543", "0.48956543", "0.48956543", ...
0.67578286
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.8640854", "0.85093737", "0.785447", "0.7744496", "0.77114135", "0.7696879", "0.76601094", "0.7639409", "0.7623007", "0.7608497", "0.7608497", "0.7608497", "0.76073915", "0.7600974", "0.75863326", "0.75839657", "0.7572215", "0.7569474", "0.75403374", "0.75403374", "0.752854...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Checks if a request has a Contentful authentication cookie
def Jquh(QePW): return zkWh(QePW) is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def clLR(QePW):\n if QePW.user.is_authenticated():\n return True\n else:\n return oRlD(QePW, 'accept_cookies')", "def psJM(YKHO, QePW, AMER, Te20):\n return QePW.cookies.get(YKHO.cookie_key(AMER, Te20)) == 'yes'", "def IeqQ(YKHO):\n return YKHO.__allow_cookie_auth", "async def is_au...
[ "0.750467", "0.73136294", "0.715208", "0.69953364", "0.696941", "0.69443274", "0.69375986", "0.693506", "0.6924362", "0.68975806", "0.68607235", "0.683432", "0.68202174", "0.67216986", "0.6710966", "0.6710966", "0.6697691", "0.66863984", "0.66344416", "0.66093767", "0.6596296...
0.8156129
0
Test exception for 'Parse.subject'
def vRLB(YKHO): nPrm = _LDn.scan('the north bear') YKHO.assertRaises(OgoS, cEkE.subject, cEkE, nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EUG7(YKHO):\n wvEv = YKHO._PARSER.PARSER\n with YKHO.assertRaises(kOMj.ParseException):\n wvEv.parseString('a', parseAll=True)\n with YKHO.assertRaises(kOMj.ParseException):\n wvEv.parseString('()', parseAll=True)\n with YKHO.assertRaises(kOMj.ParseException):\n wvEv.parseStrin...
[ "0.6717498", "0.6675674", "0.6538693", "0.6463373", "0.64447486", "0.63969475", "0.63650155", "0.6349546", "0.6310971", "0.6302925", "0.6298829", "0.6259526", "0.6258009", "0.6249102", "0.62247604", "0.62177205", "0.6214426", "0.62000036", "0.6174537", "0.614313", "0.6136384"...
0.79766375
0
Copy the contents of this object into a new instance.
def jth9(YKHO) -> v1Bj: return YKHO.__class__(command=YKHO.command, deploy_environment=YKHO.env.copy(), logger=YKHO.logger, work_dir=YKHO.work_dir)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return YKHO.__class__.new_from_obj(YKHO, copy=True)", "def jth9(YKHO):\n return YKHO.__class__(YKHO.data)", "def jth9(YKHO):\n return YKHO.__class__(YKHO.attributes)", "def jth9(YKHO):\n return YKHO.__class__(YKHO, copy=True)", "def jth9(YKHO):\n return YKHO.fromDict(YKHO._...
[ "0.8335847", "0.8234217", "0.8093614", "0.80930066", "0.80725914", "0.80477256", "0.8002471", "0.8002471", "0.8002471", "0.8002471", "0.8002471", "0.7999914", "0.7929255", "0.7901838", "0.78967506", "0.7895334", "0.7895334", "0.7895334", "0.7895334", "0.7895334", "0.7877473",...
0.0
-1
Compute the mean squre error on test set given X, y, and model parameter w.
def Imx7(yzQ0, EcVT, LVAh): XObx = None YEmv = EcVT.dot(yzQ0) XObx = ((YEmv - LVAh) ** 2).mean() return XObx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Imx7(yzQ0, EcVT, LVAh):\n R50o = oyIN.matmul(EcVT, yzQ0)\n XObx = oyIN.subtract(LVAh, R50o)\n uDKx = oyIN.square(XObx)\n aKj8 = oyIN.mean(uDKx)\n return aKj8", "def fwBZ(EcVT, LVAh, yzQ0):\n return 1 / EcVT.shape[0] * U7YL.sum_squares(EcVT @ yzQ0 - LVAh)", "def PSIW(EcVT, fuBA, yzQ0):\n ...
[ "0.7715501", "0.74059427", "0.70488983", "0.69658905", "0.68395996", "0.68145865", "0.669041", "0.6605192", "0.6540947", "0.6483715", "0.6393805", "0.6379012", "0.63182926", "0.63174224", "0.6312532", "0.6282088", "0.6259946", "0.6256537", "0.6226762", "0.6226762", "0.6226762...
0.7535534
1
Find the best lambda value.
def LXKc(Q_RX, e3Zm, Qnlx, _nuU): KYhM = None GYH7 = 999999.9 for YRbF in range(-19, 20): vtMg = 10 ** YRbF yzQ0 = nc24(Q_RX, e3Zm, vtMg) hkHB = Imx7(yzQ0, Qnlx, _nuU) if hkHB < GYH7: KYhM = vtMg GYH7 = hkHB return KYhM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qoQE(YKHO, wEf2):\n PtQX = 1 - 1 / YKHO.k\n return max(0, min(wEf2, PtQX))", "def OH2r(YKHO):\n if YKHO._lambda_max is None:\n k0lF = YKHO.A()\n CJGY = 0.0\n for bisP in k0lF:\n tjUW = bisP.copy()\n tjUW.data **= 2.0\n CJGY += tjUW.sum(axis=0)\n ...
[ "0.6953976", "0.6655002", "0.6610769", "0.6562589", "0.6551227", "0.64873147", "0.6440297", "0.6407351", "0.6320365", "0.6298694", "0.6258988", "0.6240281", "0.62307274", "0.6230589", "0.6228812", "0.6203216", "0.61945426", "0.6156592", "0.61521506", "0.61395717", "0.61335856...
0.61570364
17
Reads a json file for the ballot for a constituency. Uses the information create a Constituency object using the data.
def hgRw(YKHO, bTj3): vVYE = Zbad() with open(bTj3) as wM3v: nPrm = qQXR.load(wM3v) vVYE.name = nPrm['Constituency'] if 'Election_Type' in nPrm: vVYE.election_type = nPrm['Election_Type'] else: vVYE.election_type = nPrm['ElectionType'] vVYE.date = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yXbn(YKHO, bTj3):\n vVYE = Zbad()\n with open(bTj3) as wM3v:\n nPrm = qQXR.load(wM3v)\n vVYE.name = nPrm['Constituency']\n if 'Election_Type' in nPrm:\n vVYE.election_type = nPrm['Election_Type']\n else:\n vVYE.election_type = nPrm['ElectionType']\n ...
[ "0.6726771", "0.6144828", "0.61042154", "0.5975041", "0.5946211", "0.58105767", "0.5777345", "0.5708837", "0.5685731", "0.5683689", "0.5679537", "0.5672711", "0.56436336", "0.5634167", "0.5625887", "0.5623055", "0.5604245", "0.55870855", "0.55303246", "0.552928", "0.5524191",...
0.66922516
1
Reads a json file for the ballot for a constituency. Uses the information create a Constituency object using the data.
def yXbn(YKHO, bTj3): vVYE = Zbad() with open(bTj3) as wM3v: nPrm = qQXR.load(wM3v) vVYE.name = nPrm['Constituency'] if 'Election_Type' in nPrm: vVYE.election_type = nPrm['Election_Type'] else: vVYE.election_type = nPrm['ElectionType'] vVYE.date = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgRw(YKHO, bTj3):\n vVYE = Zbad()\n with open(bTj3) as wM3v:\n nPrm = qQXR.load(wM3v)\n vVYE.name = nPrm['Constituency']\n if 'Election_Type' in nPrm:\n vVYE.election_type = nPrm['Election_Type']\n else:\n vVYE.election_type = nPrm['ElectionType']\n ...
[ "0.66922516", "0.6144828", "0.61042154", "0.5975041", "0.5946211", "0.58105767", "0.5777345", "0.5708837", "0.5685731", "0.5683689", "0.5679537", "0.5672711", "0.56436336", "0.5634167", "0.5625887", "0.5623055", "0.5604245", "0.55870855", "0.55303246", "0.552928", "0.5524191"...
0.6726771
0
Helper method to compute the k nearest neighbor of a knearnest neighbor fit
def lrB1(VdBn, grJK, G1Hx, k1X8): H6go, rcrN = (VdBn[0], VdBn[1]) RD1Q = {} DG_a, Aoqo = k1X8.kneighbors(H6go, G1Hx, return_distance=True) print('Accuracy:', k1X8.score(H6go, rcrN)) if not len(H6go) == Aoqo.shape[0]: raise ValueError('Check shapes of data frame and neighbors ind') for d6...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TdJd(pNZh, vexM, nMvt=10):\n return None", "def TdJd(pNZh, vexM, nMvt=10):\n return None", "def TdJd(pNZh, vexM, nMvt=10):\n return None", "def z1UU(nPrm, G1Hx):\n dUr3 = IyN9(nPrm)\n CLQW = oyIN.argpartition(dUr3, G1Hx, axis=1)[:, :G1Hx]\n return CLQW", "def CLQW(xvDN, mr2u, G1Hx):\n...
[ "0.8009297", "0.8009297", "0.8009297", "0.7966712", "0.79047453", "0.78391385", "0.76440793", "0.7547866", "0.7508323", "0.7476985", "0.74460596", "0.74431175", "0.7440041", "0.74371994", "0.74340165", "0.7423755", "0.741111", "0.7387098", "0.7386382", "0.7385001", "0.7334078...
0.683086
85
This function calculates the mutual capacitance matrix, $C_{i,j}$.
def otyg(cAlv, rR8k, yUeW, YKua, OvLk): YVYS = R8t_(cAlv, yUeW, YKua) IPuW = aDuu(cAlv, yUeW, YKua, YVYS) oxOY = TTg7('ds', domain=rR8k, subdomain_data=yUeW) exwG = K4py(rR8k) Grx2 = oyIN.empty((YKua, YKua)) for YRbF in range(YKua): for r845 in range(YKua): Grx2[YRbF, r845] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0Bh(YKHO):\n for YRbF in F9FX(YKHO.m):\n for r845 in range(YKHO.n):\n uVM1 = set(oyIN.nonzero(YKHO.E[r845, :])[0])\n if YRbF not in uVM1:\n continue\n else:\n for vC9B in uVM1:\n YKHO.C[YRbF, vC9B] = 1\n t2lc.dump(Y...
[ "0.66102594", "0.66102594", "0.6517993", "0.6499539", "0.64965916", "0.6495218", "0.6424719", "0.6410683", "0.6314512", "0.62900656", "0.6277723", "0.623482", "0.6230739", "0.6202807", "0.6190499", "0.61055315", "0.6101124", "0.6071749", "0.60615927", "0.60469073", "0.6035939...
0.68892515
0
Initializes an Ability object.
def FIMM(YKHO, mWFP: str, qnex: int, H6tO: str, yK6F: str, hMik: str, QQ0T: list): YKHO.name = mWFP YKHO.id_value = qnex YKHO.generation = H6tO YKHO.effect = yK6F YKHO.effect_short = hMik YKHO.pokemon = QQ0T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBQ8(YKHO):\n uLzF = input('Enter an ability')\n e8pD = int(input('Enter ability damage '))\n x2cn = IFo9(uLzF, e8pD)\n return x2cn", "def FIMM(YKHO, Jqc7):\n YKHO.sprite = Jqc7\n YKHO.abilities = YKHO.sprite.abilities\n YKHO.ability_uses = {Sxri: 0}", "def CBQ8(BSHP: dict) -> IFo9:\n ...
[ "0.6558921", "0.62656593", "0.62100136", "0.6120075", "0.6039335", "0.60085404", "0.59940034", "0.5797568", "0.5708619", "0.5705535", "0.5678828", "0.5677793", "0.56677717", "0.5637948", "0.5637948", "0.5609001", "0.55824107", "0.55617994", "0.5561687", "0.5542814", "0.554102...
0.0
-1
Format a list of strings into a string, replacing certain placeholders with the actual values.
def cr5c(YKHO, abiq: Room, Nqlg: List[str]) -> str: l5Ny = '\n'.join(Nqlg) NArs = {'nick': abiq.session.nick, 'mention': abiq.session.mention, 'atmention': abiq.session.atmention} return l5Ny.format(**NArs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cQLt(WdDP: Iterable[Any]):\n BF51 = []\n for ZfUD in WdDP:\n if isinstance(ZfUD, str):\n BF51.append(f\"'{ZfUD}'\")\n else:\n BF51.append(f'{ZfUD}')\n return ', '.join(BF51)", "def Y34c(YKHO, Fu8T):\n return '{0:s}\\n'.format('\\n'.join(['\\t[{0:03d}] {1:s}'.fo...
[ "0.68679446", "0.6407096", "0.6387698", "0.6353409", "0.6351304", "0.6321525", "0.62553775", "0.62037075", "0.6139911", "0.6084971", "0.6063558", "0.6051381", "0.60336804", "0.60211384", "0.5974182", "0.5968955", "0.590337", "0.5895048", "0.58640474", "0.5853254", "0.5833011"...
0.0
-1
Initializes a new `Stack` task.
def FIMM(YKHO, INxk, j4jS, RZ8t, idSw, zvOU, E2NB, nAHe, Mv0M, HUs2, g4oy): if not 2 <= zvOU <= idSw: raise ValueError('`target_height` must be between 2 and {}, got {}.'.format(idSw, zvOU)) super().__init__(arena=INxk, arm=j4jS, hand=RZ8t, num_bricks=idSw, obs_settings=Mv0M, workspace=HUs2, control_tim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.stack = S9Ut()\n return", "def sphw(YKHO) -> None:\n raise NotImplementedError(\"'init_task' is almost always necessary.\")", "def FIMM(YKHO):\n YKHO.l_stack = S9Ut()\n YKHO.r_stack = S9Ut()", "def FIMM(YKHO, NWIm):\n LXdO = 'tab'\n LFdf = None\n zJsh = None\n ...
[ "0.6930331", "0.66679895", "0.6663303", "0.6629195", "0.6570722", "0.6561047", "0.6551419", "0.6547341", "0.65432835", "0.6500153", "0.64993185", "0.6468123", "0.6458379", "0.6458379", "0.6454497", "0.6448701", "0.6426085", "0.6417122", "0.6417122", "0.64132655", "0.64108324"...
0.0
-1