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
Internal method to for obtaining the ``get_custom_actions``.
def tO05(YKHO, Wi1A, QePW=None): return YKHO.custom_actions(Wi1A, QePW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lch7(YKHO):\n return YKHO.__actions", "def lch7(YKHO):\n return YKHO.__actions", "def lch7(YKHO):\n return YKHO.__actions", "def SvNC(dsE5, PJWX, m7Xl):\n return []", "def tO05(YKHO, VIiz, QePW=None):\n return YKHO.custom_actions(VIiz, QePW)", "def mt0C(YKHO, OscH=False):\n raise No...
[ "0.7570299", "0.7570299", "0.7570299", "0.74094623", "0.7304219", "0.7179503", "0.71665645", "0.6992963", "0.6909616", "0.6853889", "0.6686716", "0.66794306", "0.664264", "0.6639781", "0.66351014", "0.6550492", "0.6550492", "0.6487513", "0.64726764", "0.6462154", "0.64101493"...
0.7368468
4
Internal method to for obtaining the ``get_custom_actions``.
def tO05(YKHO, VIiz, QePW=None): return YKHO.custom_actions(VIiz, QePW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lch7(YKHO):\n return YKHO.__actions", "def lch7(YKHO):\n return YKHO.__actions", "def lch7(YKHO):\n return YKHO.__actions", "def SvNC(dsE5, PJWX, m7Xl):\n return []", "def tO05(YKHO, Wi1A, QePW=None):\n return YKHO.custom_actions(Wi1A, QePW)", "def mt0C(YKHO, OscH=False):\n raise No...
[ "0.7570299", "0.7570299", "0.7570299", "0.74094623", "0.7368468", "0.7179503", "0.71665645", "0.6992963", "0.6909616", "0.6853889", "0.6686716", "0.66794306", "0.664264", "0.6639781", "0.66351014", "0.6550492", "0.6550492", "0.6487513", "0.64726764", "0.6462154", "0.64101493"...
0.7304219
5
Get field name to label map.
def RX8J(L03z, KuU0=[], RHn_=[]): if not KuU0: KuU0 = CgSn([]) if not RHn_: RHn_ = Upo_() eDKd = guY0(ixNj(L03z), KuU0, RHn_) return eDKd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vAJH(sRp1, jm8E):\n return dict(zip(sRp1, jm8E))", "def Crrw(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'labels')", "def Crrw(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'labels')", "def Crrw(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'labels')", "def Crrw(YKHO) -> GySg[str...
[ "0.7200876", "0.69387585", "0.69387585", "0.69387585", "0.69387585", "0.69387585", "0.69387585", "0.69387585", "0.69387585", "0.6672878", "0.66256416", "0.65056884", "0.65056884", "0.65056884", "0.65056884", "0.65056884", "0.65056884", "0.65056884", "0.6439739", "0.6404314", ...
0.6894128
9
Get registered form callbacks for the stage given.
def BvRr(EtM5=None): return D5EG.get_callbacks(stage=EtM5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MWcv(YKHO, EtM5=None):\n if EtM5:\n return YKHO._registry.get(EtM5, [])\n else:\n oL5I = []\n for z6ud in YKHO._registry.values():\n oL5I += z6ud\n return oL5I", "def MWcv(YKHO, YRTf, EtM5=None):\n if EtM5:\n return YKHO._registry[YRTf].get(EtM5, [])\n ...
[ "0.7893769", "0.72672105", "0.5955373", "0.58867204", "0.58744466", "0.56030375", "0.55961066", "0.5580846", "0.543192", "0.53597796", "0.527869", "0.52247477", "0.5221676", "0.52037376", "0.5157452", "0.51532465", "0.51390666", "0.51066583", "0.5067656", "0.5034729", "0.5032...
0.90792793
0
Get registered custom field instance plugins. Gets a list of registered plugins in a form if tuple (plugin name, plugin description). If not yet autodiscovered, autodiscovers them.
def qVoS(): return uJCz(m7Yj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def alcw():\n return [Emd4() for Emd4 in dyqb()]", "def E3Kh():\n return uJCz(fIKL)", "def pUbX(YKHO):\n bo34.debug('Gathering plugins')\n for t0qN in c4tt.__all__:\n try:\n yR_P = ANWz.import_module('plugins.' + t0qN)\n for lJxW in dir(yR_P):\n YEnM = ge...
[ "0.6735405", "0.66043264", "0.650954", "0.64748436", "0.64669555", "0.643517", "0.63911194", "0.6242945", "0.6209864", "0.6205564", "0.61808336", "0.61710685", "0.61484873", "0.612865", "0.6111989", "0.6072629", "0.60619515", "0.60354775", "0.6008729", "0.60030824", "0.598250...
0.6453168
5
Concatenates a onehot encoded vector to each RPM panel. The concatenated vector indicates panel absolute position in the RPM.
def KVH6(YKHO, NbYf: torch.Tensor) -> ht2j.Tensor: Ep8u = NbYf.shape[0] dJ1p = ht2j.zeros((16, 9), device=NbYf.device).type_as(NbYf) dJ1p[:8, :8] = ht2j.eye(8, device=NbYf.device).type_as(NbYf) dJ1p[8:, 8] = ht2j.ones(8, device=NbYf.device).type_as(NbYf) dJ1p = dJ1p.expand((Ep8u, -1, -1)) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(WKvO):\n FJch, CN6s, iC6e, FE74 = WKvO\n lPn0 = int((FJch - mLAc) / (MvqV - mLAc) * 4)\n VTk9 = int((FJch - ud24) / (W4JH - ud24) * 4)\n pwCk = [-1, 0, 1]\n D5uW = 3\n for YRbF, Ty9i in enumerate(pwCk):\n if CN6s < Ty9i:\n D5uW = YRbF\n break\n ykSj = [-1,...
[ "0.55365413", "0.55269253", "0.5357809", "0.5352891", "0.5336082", "0.5294722", "0.5246824", "0.5220979", "0.5219759", "0.5049173", "0.50068355", "0.49787402", "0.49613884", "0.49555156", "0.49389276", "0.4911241", "0.49001494", "0.48984644", "0.48862463", "0.4884721", "0.487...
0.4847689
23
Calculates the Levenshtein distance between a and b.
def NUkK(jzdc, Fg_i): exwG, r8hN = (len(jzdc), len(Fg_i)) if exwG > r8hN: jzdc, Fg_i = (Fg_i, jzdc) exwG, r8hN = (r8hN, exwG) kaNW = range(exwG + 1) for YRbF in range(1, r8hN + 1): LrTp, kaNW = (kaNW, [YRbF] + [0] * exwG) for r845 in range(1, exwG + 1): H2v5, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F5xV(jzdc, Fg_i):\n exwG, r8hN = (len(jzdc), len(Fg_i))\n if exwG > r8hN:\n jzdc, Fg_i = (Fg_i, jzdc)\n exwG, r8hN = (r8hN, exwG)\n jvSB = list(range(exwG + 1))\n for YRbF in range(1, r8hN + 1):\n AOBR, jvSB = (jvSB, [YRbF] + [0] * exwG)\n for r845 in range(1, exwG + 1):...
[ "0.81196135", "0.8061979", "0.8007472", "0.79360425", "0.7880766", "0.782595", "0.77866226", "0.7770954", "0.7759011", "0.775676", "0.77136683", "0.76485026", "0.7608955", "0.75842834", "0.7575895", "0.7543106", "0.74887395", "0.73577785", "0.7349137", "0.7305391", "0.7281674...
0.7849661
5
Getter method for clear_tm_voq_slot_id_egress_port_name, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_slot_id_egress_port_name (rpc)
def h14q(YKHO): return YKHO.__clear_tm_voq_slot_id_egress_port_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cd82(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=Kja8.clear_tm_voq_slot_id_egress_port_name, is_leaf=True, yang_name='clear-tm-voq-slot-id-egress-port-name', rest_name='clear-tm-voq-slot-id-egress-port-name', parent=YKHO,...
[ "0.8380977", "0.51061934", "0.5053889", "0.49880573", "0.44527662", "0.42978463", "0.42249706", "0.41936684", "0.40940163", "0.40901285", "0.40319827", "0.39897114", "0.39746502", "0.396577", "0.39576235", "0.39416566", "0.3941277", "0.3941277", "0.39389524", "0.39276487", "0...
0.8280778
1
Setter method for clear_tm_voq_slot_id_egress_port_name, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_slot_id_egress_port_name (rpc)
def Cd82(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=Kja8.clear_tm_voq_slot_id_egress_port_name, is_leaf=True, yang_name='clear-tm-voq-slot-id-egress-port-name', rest_name='clear-tm-voq-slot-id-egress-port-name', parent=YKHO, path_hel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h14q(YKHO):\n return YKHO.__clear_tm_voq_slot_id_egress_port_name", "def TQ7N(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=qyMd.clear_tm_voq_stat_slot_id_egr_all, is_leaf=True, yang_name='clear-tm-voq-stat-slot-id-egr...
[ "0.7909647", "0.51940197", "0.47994766", "0.47702354", "0.4696182", "0.435578", "0.4320762", "0.43001005", "0.42999896", "0.42156628", "0.4174083", "0.41670963", "0.41537562", "0.41464198", "0.41020843", "0.409769", "0.40957567", "0.4075875", "0.40555593", "0.40481025", "0.40...
0.84733033
0
Will find the comments that belong to an article.
def AMX5(YKHO, lo4R): try: Tj1O = jY1u.objects.all() Tj1O = list(filter(lambda WKvO: WKvO.article_id == lo4R, Tj1O)) return Tj1O except jY1u.DoesNotExist: raise uhgT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NBOS(nNXP: NytApi, h0TT: str, lo4R: Optional[str]=None, tmiY: int=100) -> x1iM[cuzp]:\n Tj1O = BTJM(nNXP, h0TT, pagination_size=tmiY)\n teV2(nNXP, h0TT, Tj1O, pagination_size=tmiY)\n if lo4R is not None:\n for aM_I in hAu3(Tj1O):\n aM_I['articleID'] = lo4R\n return Tj1O", "def w...
[ "0.76058275", "0.66884863", "0.65152144", "0.63971317", "0.6195603", "0.6018368", "0.5974487", "0.58989936", "0.58797586", "0.5828885", "0.5696869", "0.5686641", "0.5672013", "0.56442755", "0.560447", "0.55864495", "0.5573775", "0.5534188", "0.5531128", "0.54687077", "0.54574...
0.76167816
0
constructs a GraphLock from a json like dict
def n5rA(nPrm): jnr9 = WKVB() DpZH = nPrm.get('version') if DpZH and DpZH != eZrK: raise rfz_('This lockfile was created with an incompatible version. Please regenerate the lockfile') if 'requires' in nPrm: jnr9._requires = Y3my.deserialize(nPrm['requires']) if 'build_requires' in nP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SrYI(d6pt, BWXx):\n if isinstance(BWXx, dict):\n nPrm = BWXx\n elif BWXx:\n try:\n nPrm = qQXR.loads(BWXx)\n if not isinstance(nPrm, dict):\n nPrm = {}\n except (TypeError, ValueError):\n nPrm = {}\n else:\n nPrm = {}\n ret...
[ "0.59161556", "0.55723745", "0.5535344", "0.55212945", "0.5380052", "0.5357838", "0.53429693", "0.53420573", "0.5339505", "0.5304552", "0.52325046", "0.5219725", "0.5207795", "0.51974064", "0.5180291", "0.51347667", "0.5125672", "0.5124265", "0.5120414", "0.51198494", "0.5119...
0.6522771
0
Return a full name, neatly formatted.
def e1yb(c9ua, zp3f): eHMM = c9ua + ' ' + zp3f return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqj(YKHO):\n eHMM = '{0} {1} {2}'.format(YKHO.last_name, YKHO.first_name, YKHO.patronymic)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return ...
[ "0.87166595", "0.86399925", "0.860218", "0.860218", "0.8595642", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "...
0.84312713
47
Return a full name, neatly formatted.
def e1yb(c9ua, zp3f, w5Au=''): if w5Au: eHMM = c9ua + ' ' + w5Au + ' ' + zp3f else: eHMM = c9ua + ' ' + zp3f return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqj(YKHO):\n eHMM = '{0} {1} {2}'.format(YKHO.last_name, YKHO.first_name, YKHO.patronymic)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return ...
[ "0.87166595", "0.86399925", "0.860218", "0.860218", "0.8595642", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "...
0.80960333
86
Return a full name, neatly formatted.
def e1yb(c9ua, zp3f): eHMM = c9ua + ' ' + zp3f return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqj(YKHO):\n eHMM = '{0} {1} {2}'.format(YKHO.last_name, YKHO.first_name, YKHO.patronymic)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return ...
[ "0.87166595", "0.86399925", "0.860218", "0.860218", "0.8595642", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "...
0.84312713
45
Return a full name, neatly formatted.
def e1yb(c9ua, zp3f): eHMM = c9ua + ' ' + zp3f return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqj(YKHO):\n eHMM = '{0} {1} {2}'.format(YKHO.last_name, YKHO.first_name, YKHO.patronymic)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return ...
[ "0.87166595", "0.86399925", "0.860218", "0.860218", "0.8595642", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "...
0.84312713
46
Get 6D data with euler rotations.
def nKp0(YKHO, oOge=None, nPrm=None, s48C=None): AdfU = [] lT8C = AdfU.append for bGrB in range(oOge.body_count): s48C, dQgj = sYQ2._get_exact(BN7b, nPrm, s48C) s48C, URbk = sYQ2._get_exact(AQpG, nPrm, s48C) lT8C((dQgj, URbk)) return AdfU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CpP6(MMVx):\n SCXK = becR(ht2j.tensor(MMVx))\n Dblp = j_ot(SCXK, 'XYZ')\n dxks = ht2j.rad2deg(Dblp).numpy()\n return dxks", "def yBWk(YKHO):\n return qw7D([BHsk * YKHO.coords for BHsk in YKHO.coords])", "def LY2w(YKHO, oOge=None, nPrm=None, s48C=None):\n AdfU = []\n lT8C = AdfU.append\...
[ "0.6904597", "0.589714", "0.5865492", "0.5859117", "0.55872196", "0.55757153", "0.55594134", "0.5514884", "0.55014974", "0.5464851", "0.5457674", "0.54530776", "0.5432908", "0.5384823", "0.53621733", "0.53359264", "0.5306876", "0.5304603", "0.5298508", "0.5298508", "0.5281183...
0.7025416
0
Given a tuple (movieID, ratings_iterable) returns (movieID, (ratings_count, ratings_avg))
def Ma8y(R8Pu): bcX5 = len(R8Pu[1]) return (R8Pu[0], (bcX5, float(sum((WKvO for WKvO in R8Pu[1]))) / bcX5))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T8er(YKHO):\n bo34.info('Counting movie ratings...')\n pdqD = YKHO.ratings_RDD.map(lambda WKvO: (WKvO[1], WKvO[2])).groupByKey()\n IeBK = pdqD.map(Ma8y)\n YKHO.movies_rating_counts_RDD = IeBK.map(lambda WKvO: (WKvO[0], WKvO[1][0]))", "def T8er(YKHO):\n bo34.info('Counting movie ratings...')\n ...
[ "0.68075", "0.68075", "0.6171437", "0.6132043", "0.5948334", "0.5934083", "0.58630466", "0.5810497", "0.57895756", "0.5757613", "0.570192", "0.5666334", "0.5637965", "0.5607703", "0.5576736", "0.556161", "0.55576783", "0.5550189", "0.553845", "0.5524023", "0.55135083", "0.5...
0.76235443
1
Returns a reference to the shared dictionary used inside of this instance of RaspendApplication.
def SSkn(YKHO): return YKHO._sharedDict
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rKLW(YKHO):\n return YKHO._shared", "def NMoC(YKHO) -> dict:\n return i3ak(YKHO.__dict__)", "def Fk8j(YKHO):\n return YKHO.sharedVariables.copy()", "def hati(YKHO):\n return", "def FVUl(YKHO):\n return YKHO.__shared_details", "def P4t4(YKHO):\n return YKHO.__key.app()", "def k8jS(...
[ "0.619796", "0.6161163", "0.61526", "0.6066829", "0.6053754", "0.591395", "0.58666813", "0.5830868", "0.5811515", "0.579769", "0.579769", "0.579769", "0.579769", "0.579769", "0.579769", "0.579769", "0.5796947", "0.5774022", "0.5759996", "0.57593614", "0.57593614", "0.575458...
0.7664939
0
Differentable Dice coefficient with Softmax preactivates.
def qcZE(LVAh, a1PO, NkkI=True, FJiT=None, uisG=-1, Pusg='mean', SGf8=1e-08): LVAh = ht2j.softmax(LVAh, dim=1) return fF1T(LVAh, a1PO, NkkI, FJiT, uisG, Pusg, SGf8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cX6B(Y8eF, aMgO):\n gyoy = 1\n iQin = nMvt.sum((Y8eF * aMgO)[:, 1:, :, :, :])\n lk9W = (2.0 * iQin + gyoy) / (nMvt.sum(Y8eF[:, 1:, :, :, :]) + nMvt.sum(aMgO[:, 1:, :, :, :]) + gyoy)\n return 1.0 - lk9W", "def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)", "def ...
[ "0.69540524", "0.6292165", "0.6247388", "0.6247388", "0.6157475", "0.6152604", "0.612687", "0.612687", "0.6113807", "0.60982174", "0.60969585", "0.6096502", "0.6080982", "0.6080982", "0.6078945", "0.60597676", "0.60492057", "0.60404986", "0.6026444", "0.6023549", "0.6023549",...
0.6514192
1
Calculates the distance between two geolocations
def qjfR(YKHO, Elif): j5Un, LqAC = (epAf.radians(YKHO.latitude), epAf.radians(YKHO.longitude)) O8Ew, LbM3 = (epAf.radians(Elif.latitude), epAf.radians(Elif.longitude)) Ayfi = epAf.acos(epAf.sin(O8Ew) * epAf.sin(j5Un) + epAf.cos(O8Ew) * epAf.cos(j5Un) * epAf.cos(LbM3 - LqAC)) * 6380000 return int(Ayfi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(pOzQ, n09O):\n return GeVo(pOzQ.lng, pOzQ.lat, n09O.lng, n09O.lat)", "def Ayfi(jzdc, Fg_i):\n return CgaZ((float(jzdc.longitude), float(jzdc.latitude)), (float(Fg_i.longitude), float(Fg_i.latitude))).km", "def zOJ0(k0lF, tjUW=bNKr('Colosseo')):\n return jLKC.distance.vincenty(k0lF, tjUW).mete...
[ "0.7945632", "0.76421237", "0.75244564", "0.751724", "0.749793", "0.74441123", "0.7426564", "0.7426564", "0.7411345", "0.7404686", "0.7389596", "0.7353701", "0.7352377", "0.73441696", "0.7336581", "0.73332554", "0.7327947", "0.731202", "0.731202", "0.731202", "0.731202", "0...
0.0
-1
Instaniates the related resource.
def JtaD(YKHO, SjXD): cyLy = YKHO.to_class() if cyLy._meta.api_name is None: if YKHO._resource and (not YKHO._resource._meta.api_name is None): cyLy._meta.api_name = YKHO._resource._meta.api_name cyLy.instance = SjXD return cyLy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ebvA(YKHO, wIw1):\n pass", "def Wzk0(YKHO, ZMzz):\n KAOR = ZMzz.save()\n KAOR.run()", "def eLpg(YKHO):\n raise oKrw('InstanceResource creation not supported')", "def eLpg(YKHO):\n if YKHO.id:\n raise jIFg\n Mjw9 = {G1Hx: Ty9i for G1Hx, Ty9i in YKHO.to_dict().items() if Ty9i is no...
[ "0.5845391", "0.5785221", "0.5705785", "0.5677883", "0.56738544", "0.5657699", "0.55884725", "0.5555591", "0.5521157", "0.5487413", "0.54730403", "0.545823", "0.5415903", "0.5415903", "0.5415903", "0.5415903", "0.5415903", "0.5415903", "0.5415903", "0.5415903", "0.5415903", ...
0.0
-1
Set up sensors for UniFi Protect integration.
async def async_setup_entry(ajET: HomeAssistant, bTKY: ConfigEntry, QEEk: AddEntitiesCallback) -> None: nPrm: HZsG = ajET.data[Sugg][bTKY.entry_id] async def _add_new_device(begE: ProtectAdoptableDeviceModel) -> None: MMe4 = u3rY(nPrm, fTdq, camera_descs=V4fU, light_descs=nZ8P, sense_descs=rvsR, lock_d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _kZf(YKHO):\n super(Wcd4, YKHO).setup_sensors()\n YKHO._firmware_server_sensor = XTqt.string('firmware-server', description='The address of the firmware server started by this product', default='', initial_status=XTqt.UNKNOWN)\n YKHO.add_sensor(YKHO._firmware_server_sensor)\n YKHO._parent.mass_info...
[ "0.67818886", "0.6348507", "0.6333696", "0.612349", "0.6104325", "0.6080469", "0.59653234", "0.59606624", "0.5955412", "0.59149826", "0.58694327", "0.58491725", "0.5848738", "0.58478117", "0.5778198", "0.57764107", "0.57524383", "0.57455075", "0.57301486", "0.5711134", "0.570...
0.0
-1
Constructor text raw text as string to tokenize
def FIMM(YKHO, l5Ny=None, bjyK=False, XPB5='gap', oeNL=False, rur6=False, di0c=False, qpw9=False, xki2=False, l3QS=False, vqUk=False, aqh0=False, bAls=False, XYUo=False, r53g=False, _c1T=False, FGW3=False, kb2X=False, CQLj=False, mWFP=False, UTX6=False, El7S=False, EE3v=False, ZJe_=False, i_8Y=False, PXGI=False, Iyvg=F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NfQC(l5Ny):\n return l5Ny", "def wr3U(YKHO, fE52=0, l5Ny=None):\n pass", "def FIMM(YKHO, l5Ny, qcE4='O'):\n l5Ny = ZbWC.sub('[\\\\t\\\\s]+', ' ', l5Ny, flags=ZbWC.UNICODE)\n pA6j = [bPqj.strip() for bPqj in l5Ny.strip().split(' ')]\n YKHO.tokens = [_J2v(bPqj) for bPqj in pA6j if len(bPqj) > ...
[ "0.7256853", "0.7100983", "0.7034987", "0.6857148", "0.6805404", "0.67954487", "0.6794431", "0.67791134", "0.67680466", "0.67637867", "0.6679529", "0.6638259", "0.6634688", "0.6590373", "0.65711737", "0.6557855", "0.6552895", "0.6536491", "0.652172", "0.65156364", "0.6509384"...
0.0
-1
Tokenize the Text 1. Expand contractions. 2. Replace newlines, carriage returns, tabs with space. 3. Reduce multispaces into single space. 4. Split text by whitespace (tokenize). 5. Separate Punctuation.
def tFpc(YKHO): YKHO._words = [] l5Ny = YKHO._text.replace("'m ", ' am ') l5Ny = l5Ny.replace("'d ", ' would ') l5Ny = l5Ny.replace("'ll ", ' will ') l5Ny = l5Ny.replace("'ve ", ' have ') l5Ny = l5Ny.replace("'re ", ' are ') l5Ny = l5Ny.replace("can't ", 'can not ') l5Ny = l5Ny.replace("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dFss(l5Ny):\n for HlGW, m1Oc in Nb9k:\n l5Ny = finE(HlGW, m1Oc, l5Ny)\n l5Ny = ' ' + l5Ny + ' '\n for HlGW, m1Oc in KIq4:\n l5Ny = finE(HlGW, m1Oc, l5Ny)\n for HlGW in zKP0:\n l5Ny = finE(HlGW, '\\\\1 \\\\2 ', l5Ny)\n return l5Ny.split()", "def wr3U(YKHO, l5Ny):\n l5Ny ...
[ "0.76827204", "0.7573293", "0.73225594", "0.7272764", "0.72396535", "0.7202397", "0.7197636", "0.7165159", "0.7121119", "0.7107847", "0.70737785", "0.7035568", "0.7028956", "0.7014209", "0.7014108", "0.69960874", "0.6958896", "0.6939656", "0.6926935", "0.692405", "0.6923988",...
0.7082401
10
Check if word sequence is a number
def rZ1W(YKHO, V22M, d6pt): GIN8 = V22M[d6pt]['word'] try: TZ9E = CtWL[GIN8]['tag'] if yH2p.NUMBER in TZ9E: GIN8 = CtWL[GIN8]['lemma'][0] except: pass hex = False yKcO = 0 if GIN8[0] == '+': GIN8 = GIN8[1:] elif GIN8[0] == '-': yKcO = 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ye72(l5Ny):\n return l5Ny.lower() in a02f", "def Ozdp(yzQ0):\n rmc3 = list(yzQ0)\n for KCHu in rmc3:\n if KCHu in vIwR.digits:\n return '<NUM>'\n return yzQ0", "def PFSY(JOqi: str) -> list:\n if ZbWC.match('^(0|[1-9]\\\\d*)$', JOqi):\n eOtH = 'num_int'\n retur...
[ "0.7653302", "0.7393886", "0.73468804", "0.72089607", "0.71201444", "0.69770306", "0.69120735", "0.6910344", "0.6898426", "0.68923444", "0.68789536", "0.68592846", "0.68018556", "0.67899585", "0.67789197", "0.67390597", "0.6709563", "0.67085445", "0.66599053", "0.66525036", "...
0.7072063
5
writes the JSON string representation
def AHFl(Emd4, Nkld): Csk6 = [] with open(Emd4.__name__ + '.json', 'w', encoding='utf-8') as eHNT: if Nkld: for YEnM in Nkld: Csk6.append(YEnM.to_dictionary()) eHNT.write(Emd4.to_json_string(Csk6))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lsrz(YKHO):\n YKHO.json_o.write()", "def VacN(YKHO):\n with open(YKHO._file_path, 'w') as eHNT:\n qQXR.dump(YKHO._content, eHNT, indent=4, separators=None, encoding='utf-8', sort_keys=False)", "def Lsrz(YKHO):\n with open(YKHO.filename + '.json', mode='w') as wM3v:\n qQXR.dump(YKHO.d...
[ "0.82436025", "0.791761", "0.7664976", "0.75298595", "0.7348734", "0.7306143", "0.72687876", "0.7207324", "0.71442467", "0.7110311", "0.7084889", "0.70559585", "0.70559585", "0.70413476", "0.70283824", "0.7023981", "0.69812334", "0.69609225", "0.69597715", "0.6942405", "0.692...
0.0
-1
Generate number from normal distribution
def e6TI(yGTL, WTkW, es2x, tlxW): jzdc = tuKI.gauss(yGTL, WTkW) while (es2x <= jzdc <= tlxW) is False: jzdc = tuKI.gauss(yGTL, WTkW) return int(jzdc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zmG3():\n return K0SZ(tuKI.random())", "def zmG3():\n return K0SZ(tuKI.random())", "def YYaq():\n return oyIN.random.normal(0, 1)", "def mhAC(JBMS, M1Jx):\n return tuKI.gauss(JBMS, M1Jx)", "def gTYQ(PgWN=1, h7aq=100, JBMS=None, M1Jx=None):\n WKvO = oyIN.arange(PgWN, h7aq + 1)\n if JBM...
[ "0.7945893", "0.7891744", "0.7541156", "0.7368456", "0.72820294", "0.7186214", "0.7183629", "0.69981915", "0.69697905", "0.69555205", "0.68050873", "0.67746735", "0.6743393", "0.66912043", "0.667755", "0.6643354", "0.6580292", "0.65592647", "0.655722", "0.6482192", "0.6447789...
0.0
-1
bisect.bisect_left() and bisect.bisect_right(), O(log n)
def gHI8(YKHO, xYvp: List[int], pan_: int) -> x1iM[int]: def psL9() -> int: YRbF = -1 vC9B, Mkmy = (0, len(xYvp) - 1) while vC9B <= Mkmy: r8hN = (vC9B + Mkmy) // 2 if xYvp[r8hN] >= pan_: Mkmy = r8hN - 1 else: vC9B = r8hN + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UmSv(*qIxc, **B2fa):\n pass", "def Ad9l(*qIxc, **B2fa):\n pass", "def XJg_(jzdc, FYKK):\n nEeK = 0\n ekgN = len(jzdc)\n while nEeK < ekgN:\n x1fj = (nEeK + ekgN) // 2\n if FYKK(jzdc[:x1fj + 1]):\n ekgN = x1fj\n else:\n nEeK = x1fj + 1\n return nE...
[ "0.7929309", "0.77037466", "0.7604467", "0.7568933", "0.73911625", "0.7184369", "0.70828885", "0.6966312", "0.6963106", "0.69537395", "0.69504464", "0.6924052", "0.6858135", "0.6852241", "0.684031", "0.6807731", "0.6742448", "0.67277247", "0.66964006", "0.6679964", "0.6669578...
0.0
-1
TESTS Landing page appears on base route
def W82A(YKHO): geh0 = YKHO.app.get('/', follow_redirects=True) YKHO.assertEqual(geh0.status_code, 200) b7Is = geh0.get_data(as_text=True) YKHO.assertIn('input', b7Is) YKHO.assertIn('button', b7Is) YKHO.assertIn('Welcome to', b7Is)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gk60(YKHO):\n geh0 = YKHO.client.get(nKyW('home'))\n YKHO.assertEqual(geh0.status_code, 200)", "def gk60(YKHO):\n geh0 = YKHO.client.get(nKyW('home'))\n YKHO.assertEqual(geh0.status_code, 200)", "def vja_():\n return vKnz(nKyW(tajT, _external=True))", "def tbjH(YKHO):\n geh0 = YKHO.clie...
[ "0.7099039", "0.7099039", "0.7019454", "0.7011224", "0.6987353", "0.69293875", "0.6927794", "0.6924342", "0.69109404", "0.68550766", "0.68550766", "0.68550766", "0.68061125", "0.67942023", "0.6783623", "0.6770808", "0.67585415", "0.6734918", "0.67153966", "0.67124575", "0.670...
0.6292967
90
Given an activityType, return the name of a corresponding activity class to load
def Bc3q(wrd1): return 'activity_' + wrd1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VvcA(IpyH):\n try:\n return IpyH['activityType']['name']\n except KeyError:\n return None", "def eT6f(YKHO, EhYO):\n return dCYV.ActivityType(YKHO, EhYO)", "def FRul(YKHO):\n SnBA = dict(XKbQ)\n return SnBA.get(YKHO.activity_type, 'N/A')", "def pOAx(YKHO, WKvO):\n if WKvO ...
[ "0.7285912", "0.6731367", "0.65812504", "0.6324899", "0.6323988", "0.6070207", "0.6016259", "0.5947175", "0.5922396", "0.58859676", "0.5838706", "0.57408434", "0.57405984", "0.5679653", "0.5675441", "0.5621909", "0.55609584", "0.5559498", "0.55580854", "0.5544225", "0.5519178...
0.78647465
0
Test company partial updates
def jrkn(YKHO): LLPP = s9HI.objects.get(name=YKHO.admin.profile.company.name).pk bD7m = gxEw('Company-detail', kwargs={'pk': LLPP}) nPrm = {'name': 'NewTestCompany'} geh0 = YKHO.client.patch(bD7m, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) YKHO.assertEqual(s9HI.obj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pt2C(YKHO):\n pass", "def Tbie(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def klbD(YKHO):\n pass", "def xL7q(YKHO):\n pass", "def pAmh(YKHO):\n pass", "def b6pt(YKHO):\n pass", "def K23C(YKHO):\n YKHO.test_updat...
[ "0.8405181", "0.7361332", "0.7289887", "0.7289887", "0.7289887", "0.7175851", "0.71552473", "0.71548206", "0.7107742", "0.7086963", "0.7052727", "0.70422417", "0.6987401", "0.69828886", "0.686574", "0.685233", "0.6851256", "0.6827946", "0.6766758", "0.6754069", "0.67303234", ...
0.69702214
14
Test mail piece partial update
def MDN0(YKHO): kacc = KHnQ.objects.filter(user=YKHO.testUser.pk)[0].pk bD7m = gxEw('MailPiece-detail', kwargs={'pk': kacc}) nPrm = {'tracking': 9876543210} geh0 = YKHO.client.patch(bD7m, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) YKHO.assertEqual(KHnQ.objects.get(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVEs(YKHO):\n pass", "def oPJo(YKHO):\n yCkf = TlkN.format_email_body(True, YKHO.feature_1, [])\n YKHO.assertIn('Blink', yCkf)\n YKHO.assertIn('editor@example.com updated', yCkf)\n YKHO.assertNotIn('watcher_1,', yCkf)", "def xL7q(YKHO):\n pass", "def B8P6(YKHO):\n yCkf = TlkN.format_...
[ "0.6977899", "0.69292533", "0.69138545", "0.6890073", "0.6569598", "0.65129524", "0.6461569", "0.64342654", "0.6367003", "0.62970376", "0.62811625", "0.6278968", "0.6249511", "0.62025064", "0.61817515", "0.61595666", "0.6159012", "0.6141621", "0.6135496", "0.61185396", "0.609...
0.6809447
4
takes in month returns the date at the end of that month
def o4Rw(x0eS): return qcWV(2020, x0eS, 28)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sz_R(Csk6):\n return _c1T(Csk6.year, Csk6.month, wTnG(Csk6.year, Csk6.month)[1])", "def xjYu(_c1T):\n return qcWV(_c1T.year, _c1T.month, 1) + fCoM(days=-1)", "def JtWs():\n return qcWV.now() + enlf(months=-1)", "def pJte(WKvO: Optional[Date]=None) -> Qrp8:\n return (WKvO or gVTZ()).replace(da...
[ "0.82673883", "0.7853296", "0.77209604", "0.7452139", "0.74185383", "0.7279761", "0.7265548", "0.71855545", "0.71855545", "0.71202755", "0.70617753", "0.6995478", "0.6985946", "0.69100547", "0.6799235", "0.67846835", "0.673533", "0.67180926", "0.66488975", "0.65583044", "0.64...
0.82626677
1
takes in the dates return the end of month corresponding to the dates
def wf9s(YdD0): XdMZ = YdD0.tolist() sp3M = list(set([_c1T.month for _c1T in XdMZ])) lzhQ = [] for x0eS in sp3M: lzhQ.append(o4Rw(x0eS)) return lzhQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sz_R(Csk6):\n return _c1T(Csk6.year, Csk6.month, wTnG(Csk6.year, Csk6.month)[1])", "def o4Rw(x0eS):\n return qcWV(2020, x0eS, 28)", "def xjYu(_c1T):\n return qcWV(_c1T.year, _c1T.month, 1) + fCoM(days=-1)", "def kdII(j9Be):\n WH1_ = j9Be[0]\n GAe4 = j9Be[-1]\n WR2I = JRYC.datetime(WH1_....
[ "0.7457229", "0.7107462", "0.70389944", "0.677463", "0.67668647", "0.6746204", "0.6701193", "0.6595615", "0.6497764", "0.6462319", "0.64373785", "0.64317447", "0.64193964", "0.6399312", "0.6391627", "0.63371223", "0.63135964", "0.62835217", "0.6264982", "0.6217331", "0.616973...
0.7642561
0
Generic list view that only lists objects belonging to the current account.
def list(QePW, SR0I, *qIxc, **B2fa): return hst7(QePW, SR0I.filter(account=QePW.account), *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o9HX(QePW):\n uzu_ = tHSi.objects.all()\n QpfX = {'account_list': uzu_}\n return _1tc(QePW, 'accounts/account_list.html', QpfX)", "def bRrO(Emd4):\n return Emd4.account_list", "def OHZm(YKHO, QePW, fkz_=None):\n if QePW.user.has_perm('deflect.list_all'):\n YKHO.list_filter = YKHO._lis...
[ "0.639746", "0.6364481", "0.6342922", "0.6320445", "0.6303572", "0.62903935", "0.62903935", "0.6266129", "0.6207558", "0.61992425", "0.6105505", "0.6091649", "0.60878354", "0.60817415", "0.6067182", "0.60444105", "0.6028726", "0.60044736", "0.59957516", "0.5946876", "0.593737...
0.74392027
0
Get paths of all files in directory
def OTsP(vFCb): d6pt = [] Crrw = [] nDwL = Hy7s.path.join(vFCb, 'UCF-101') for xtX7 in Hy7s.listdir(nDwL): Crrw.append(xtX7) Hj7Z = Hy7s.path.join(nDwL, xtX7) if not Hy7s.path.isdir(Hj7Z): continue for Ux0P in Hy7s.listdir(Hj7Z): if 'avi' not in Ux...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dgSh(sWmO):\n return Hy7s.listdir(sWmO)", "def Fv66(YKHO, AGPF):\n VoQp = [Hy7s.path.join(AGPF, xtX7) for xtX7 in Hy7s.listdir(AGPF) if not xtX7.startswith('.')]\n CNwg = [[Hy7s.path.join(rNxu, X2qJ) for X2qJ in Hy7s.listdir(rNxu)] for rNxu in VoQp]\n return CNwg", "def RRlC(YKHO):\n YKHO._p...
[ "0.79865074", "0.79572505", "0.7941888", "0.79343253", "0.78643787", "0.78494847", "0.78145325", "0.78029734", "0.77628106", "0.77438855", "0.76659346", "0.7665848", "0.7665429", "0.7662502", "0.76436466", "0.763894", "0.7618266", "0.75888723", "0.75888723", "0.75888723", "0....
0.0
-1
Returns the immediate dominators of all nodes of a directed graph.
def vo6d(yvY1, yKcO): if yKcO not in yvY1: raise jHsn.NetworkXError('start is not in G') Kno9 = {yKcO: yKcO} T4Wy = list(jHsn.dfs_postorder_nodes(yvY1, yKcO)) jvgv = {P6bq: YRbF for YRbF, P6bq in enumerate(T4Wy)} T4Wy.pop() T4Wy.reverse() def XMlP(P6bq, Ty9i): while P6bq != ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FoB0(yvY1, megD=None):\n JqV7 = set(yvY1)\n if megD is None:\n megD = HjIY(JqV7)\n if megD not in yvY1:\n raise jHsn.NetworkXError('node {} is not in G'.format(megD))\n FoB0 = {megD}\n Oqoe = set(yvY1[megD])\n eFNT = JqV7 - Oqoe - FoB0\n while eFNT:\n Ty9i = eFNT.pop()...
[ "0.6574447", "0.612556", "0.6100296", "0.601274", "0.6006553", "0.5992949", "0.58927464", "0.5847104", "0.5821685", "0.58005524", "0.5796908", "0.5721396", "0.57110786", "0.57109314", "0.5701316", "0.5701316", "0.56869334", "0.5654642", "0.5654156", "0.56503075", "0.5639266",...
0.6462544
1
Returns the dominance frontiers of all nodes of a directed graph.
def vMWZ(yvY1, yKcO): Kno9 = jHsn.immediate_dominators(yvY1, yKcO) jQ3Z = {P6bq: set() for P6bq in Kno9} for P6bq in Kno9: if len(yvY1.pred[P6bq]) >= 2: for Ty9i in yvY1.pred[P6bq]: if Ty9i in Kno9: while Ty9i != Kno9[P6bq]: jQ3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ylHZ(Q6kx, pNZh):\n mC4V = []\n for tTpl in Q6kx.edges:\n if Q6kx.label <= pNZh.nodes[tTpl.to].label:\n mC4V.append(tTpl)\n return mC4V", "def vuvg(pNZh):\n return [XP5J for XP5J in pNZh if set(pNZh.neighbors(XP5J)) in hvVH(XP5J)]", "def gjdY(pNZh):\n return pNZh.get_nodes(...
[ "0.614761", "0.60324806", "0.5836381", "0.583247", "0.58069503", "0.57300746", "0.56516445", "0.56372494", "0.5633586", "0.5620129", "0.5507958", "0.55010647", "0.5468067", "0.5447666", "0.54475796", "0.541638", "0.5413432", "0.540533", "0.540151", "0.5399869", "0.53944933", ...
0.6461658
0
Cache `n` items. If `n` is 0 or None, then 1 item is cached.
def Qscq(YKHO, exwG: int | None) -> None: if not exwG: exwG = 1 try: while len(YKHO._cache) < exwG: YKHO._cache.append(next(YKHO._iterable)) except StopIteration: while len(YKHO._cache) < exwG: YKHO._cache.append(YKHO.sentinel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qscq(YKHO, exwG: int | None) -> None:\n if not exwG:\n exwG = 1\n try:\n while len(YKHO._cache) < exwG:\n YKHO._cache.append(YKHO.modifier(next(YKHO._iterable)))\n except StopIteration:\n while len(YKHO._cache) < exwG:\n YKHO._cache.append(YKHO.sentinel)", ...
[ "0.80676657", "0.71979535", "0.6745247", "0.5922751", "0.57654035", "0.5728475", "0.56772006", "0.566804", "0.566804", "0.566804", "0.56469357", "0.5639838", "0.5593492", "0.55919814", "0.5591171", "0.558503", "0.55345136", "0.5517681", "0.5493913", "0.5458366", "0.5445398", ...
0.8123894
0
Preview the next item or `n` items of the iterator. The iterator is not advanced when peek is called. Returns item or list of items The next item or `n` items of the iterator. If `n` is None, the item itself is returned. If `n` is an int, the items will be returned in a list. If `n` is 0, an empty list is returned. If ...
def T7C_(YKHO, exwG: int | None=None) -> ImMB: YKHO._fillcache(exwG) if exwG is None: Aofo = YKHO._cache[0] else: Aofo = [YKHO._cache[YRbF] for YRbF in range(exwG)] return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T7C_(YKHO, exwG: int) -> AzJI:\n nPrm = tuple(Hs6x.islice(YKHO._iterator, exwG))\n YKHO._iterator = Hs6x.chain(nPrm, YKHO._iterator)\n return nPrm", "def E_nZ(oHE7, exwG=None, next=next, uOgj=uOgj, MUE7=MUE7):\n if exwG is not None:\n next(uOgj(oHE7, exwG, exwG), None)\n else:\n ...
[ "0.734071", "0.69357634", "0.6848901", "0.6811865", "0.66998523", "0.6500856", "0.6498906", "0.6303447", "0.6216918", "0.61729753", "0.6157146", "0.6107556", "0.6093129", "0.60930955", "0.60930955", "0.60930955", "0.60626894", "0.6010948", "0.59882784", "0.59453166", "0.59284...
0.6420363
7
Returns starting state of the board.
def W9gz(): return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)", "def rEkR():\n return H66R.Board()", "def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(Y...
[ "0.8081514", "0.7890486", "0.7534929", "0.72789717", "0.72789717", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", ...
0.0
-1
Returns player who has the next turn on a board.
def oyg0(iBIi): if f9TP(iBIi): return 'X' hD2w = 0 Dtmf = 0 for rdlD in iBIi: for fvDH in rdlD: if fvDH == 'X': hD2w += 1 elif fvDH == 'O': Dtmf += 1 if hD2w > Dtmf: return 'O' else: return 'X' raise NotI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zia_(iBIi, UwI3):\n RUgX = VlLD.opponent(UwI3)\n if VlLD.any_legal_move(RUgX, iBIi):\n return RUgX\n elif VlLD.any_legal_move(UwI3, iBIi):\n return UwI3\n return None", "def Zia_(YKHO, iBIi, UwI3):\n RUgX = YKHO.opponent(UwI3)\n iiQJ = YKHO.any_legal_move(RUgX, iBIi)\n v5zX...
[ "0.7910981", "0.7522231", "0.74202156", "0.73700017", "0.7195211", "0.6975818", "0.6961524", "0.6925103", "0.6919324", "0.6899665", "0.6847661", "0.68389785", "0.6838656", "0.6825226", "0.6774813", "0.6774813", "0.6769727", "0.671182", "0.67078507", "0.6656021", "0.66138667",...
0.0
-1
Returns the optimal action for the current player on the board.
def SR1K(iBIi): if f9TP(iBIi): return None DBcx = xASv(iBIi) if oyg0(iBIi) == 'X': T6S7 = [] for jzdc in DBcx: T6S7.append(dgIT(Aofo(iBIi, jzdc))) return DBcx[T6S7.indexof(max(T6S7))] elif oyg0(iBIi) == 'O': T6S7 = [] for jzdc in DBcx: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction", "def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0,...
[ "0.77671057", "0.7631997", "0.75842696", "0.75282216", "0.7517242", "0.74665165", "0.74606633", "0.7424678", "0.7416178", "0.7394942", "0.7373605", "0.7333486", "0.731529", "0.7305602", "0.72842586", "0.7265362", "0.7265362", "0.725086", "0.72319955", "0.7203268", "0.717364",...
0.68846095
57
The mod_spectrum_filter class constructor stores the parameters passed from the psana configuration file in instance variables. address Full data source address of the FEE device peak_one_range_min the minimum x coordinate in pixel units of the first peak range on the detector peak_one_range_max the maximum x coordinat...
def FIMM(YKHO, UTX6, VQ1m, TYMo, E_ea, em87, iAVe=0.4, AQwk=0.4, HFLj=None, SxXP=None, paC9=None, Mbnt=20): YKHO.src = LSFv('%s' % UTX6) if HFLj is not None: YKHO.dark = F6Po.load(HFLj) else: YKHO.dark = None YKHO.peak_one_range_min = int(VQ1m) YKHO.peak_one_range_max = int(TYMo) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, JwLX, qcMJ, vZH3, dYOR, ifiy, OjJK, EfKg, IWfP):\n YKHO.filter = JwLX\n YKHO.fp = qcMJ\n YKHO.maskedImage = vZH3\n YKHO.psf = dYOR\n YKHO.psffwhm = ifiy\n YKHO.img = vZH3.getImage()\n YKHO.imbb = YKHO.img.getBBox()\n YKHO.varimg = vZH3.getVariance()\n YKHO.mask = vZH3.getM...
[ "0.5762015", "0.5650203", "0.5600045", "0.5519918", "0.55120784", "0.5432622", "0.5431912", "0.5391214", "0.53652555", "0.5355647", "0.5339674", "0.52946866", "0.52694", "0.5264956", "0.5239062", "0.52307314", "0.5229431", "0.52161956", "0.52149963", "0.52060485", "0.51943755...
0.6490121
0
Sets the buyer of this Order.
def azgM(YKHO, azgM): YKHO._buyer = azgM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOLI(YKHO, FOLI):\n YKHO._seller = FOLI", "def Ay8C(YKHO, Ay8C):\n YKHO._buys = Ay8C", "def Dsvc(YKHO, Dsvc):\n YKHO._buying_rate = Dsvc", "def JiUU(YKHO, JiUU):\n YKHO._buying_options = JiUU", "def m3Nh(YKHO, m3Nh):\n YKHO._customer = m3Nh", "def m3Nh(YKHO, m3Nh):\n YKHO._customer ...
[ "0.6177573", "0.6127115", "0.60092014", "0.57970613", "0.56605273", "0.56605273", "0.5634493", "0.5573989", "0.553321", "0.553321", "0.54974854", "0.5455709", "0.5446745", "0.53976", "0.5391277", "0.5366757", "0.5359536", "0.5248606", "0.5223483", "0.52103555", "0.5203496", ...
0.8651862
0
Sets the expire_date of this Order.
def PiTA(YKHO, PiTA): YKHO._expire_date = PiTA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pg_u(YKHO, pg_u):\n YKHO._expire = pg_u", "def ad72(YKHO, ad72):\n YKHO._expiration_date = ad72", "def e2iN(YKHO, e2iN):\n YKHO._expire_time = e2iN", "def yxS0(YKHO, yxS0):\n YKHO._expires = yxS0", "def yxS0(YKHO, BWXx):\n BWXx = gnPz.parse_valid_date(BWXx)\n YKHO._set_attr('expires',...
[ "0.75039524", "0.74140286", "0.6965082", "0.6805975", "0.6710961", "0.6539187", "0.6525755", "0.6384014", "0.6384014", "0.6384014", "0.61977273", "0.61916816", "0.61778295", "0.6158121", "0.60582846", "0.60169697", "0.5910887", "0.585936", "0.58383656", "0.5833318", "0.581461...
0.8412227
0
Sets the finish_time of this Order.
def SG2L(YKHO, SG2L): YKHO._finish_time = SG2L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lSz9(YKHO, lSz9):\n YKHO._time_finished = lSz9", "def Imx0(YKHO, SG2L=None):\n pass", "def _SIn(YKHO, a1PO: float=0.0) -> None:\n if not a1PO:\n a1PO = ITS7()\n YKHO.tfinish = a1PO\n YKHO.log.debug('%s %s', YKHO.prefix, {'end-time': YKHO.tfinish})", "def C7pn(YKHO, C7pn):\n YKHO....
[ "0.72230184", "0.71956855", "0.6935491", "0.6635693", "0.6635693", "0.6635693", "0.6584259", "0.6584259", "0.63883686", "0.6385583", "0.62401736", "0.6224735", "0.62061787", "0.6165997", "0.6079118", "0.5978925", "0.59677476", "0.5907319", "0.5815572", "0.58053815", "0.579875...
0.85402644
1
Sets the id of this Order.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.__id = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX", "def id...
[ "0.81298906", "0.80210376", "0.8019904", "0.7665343", "0.7624645", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.74727803", "0.7465057", "0.743258", "0.74245083", "0.74245083", "0.74245083"...
0.0
-1
Sets the pid of this Order.
def Ii1o(YKHO, Ii1o): YKHO._pid = Ii1o
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lkmU(YKHO, Ii1o):\n YKHO.pid = int(Ii1o)", "def A0BL(YKHO, Ii1o='0'):\n YKHO.PUID = Ii1o\n bo34.debug('parentID set to: %s' % YKHO.PID)", "def W0px(YKHO, iZHj=None, BOse=None, veDp=None):\n if iZHj is not None:\n YKHO.k_p = iZHj\n if BOse is not None:\n YKHO.k_i = BOse\n if ...
[ "0.7366482", "0.68527615", "0.6616559", "0.6570102", "0.6489096", "0.6489096", "0.64759046", "0.63508636", "0.63508636", "0.63508636", "0.62835795", "0.62443733", "0.6226913", "0.6157187", "0.6062493", "0.5977744", "0.59280884", "0.59280884", "0.58096075", "0.5757708", "0.574...
0.77717626
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, L9Jq): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
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 if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Shared logic for understanding numeric bounds. We then specialise this in the other functions below, to ensure that e.g. all the values are representable in the types that we're planning to generate so that the strategy validation doesn't complain.
def LKVs(lgNN: Predicate) -> xa4A: ZynR = xa4A.unchanged(lgNN) if isinstance(lgNN, YLnl) and len(lgNN.args) == 1 and (not lgNN.keywords): d7pR = lgNN.args[0] if isinstance(d7pR, ZjSO) and ZjSO.is_snan(d7pR) or not isinstance(d7pR, (int, float, kteF, ZjSO)) or epAf.isnan(d7pR): return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ftEJ(YKHO, wEf2):\n if wEf2 == True:\n Ylbp = YKHO._DEF_BOUNDS\n elif wEf2 in [False, None]:\n Ylbp = wEf2\n else:\n if len(wEf2) != 2:\n raise ValueError('Bound value is not recognized. ' % str(wEf2))\n if wEf2[0] > wEf2[1]:\n raise ValueError('Bound ...
[ "0.6514127", "0.64385295", "0.64048994", "0.6404713", "0.63986576", "0.6368383", "0.6354809", "0.6291628", "0.626724", "0.6263212", "0.6245941", "0.6199468", "0.61926216", "0.6169772", "0.6159545", "0.61390483", "0.6126931", "0.61063087", "0.6102706", "0.6097823", "0.6080457"...
0.0
-1
The ARN of the IAM role.
def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')", "def SQQ_(YKHO) -> str:\n return qe4Y.get(YKHO, 'iam_role_arn')", "def axXk(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'role_arn')", "def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')", "def axXk(YKH...
[ "0.8597219", "0.8543099", "0.8429708", "0.82891667", "0.8199977", "0.8199977", "0.8199977", "0.8199977", "0.816678", "0.816678", "0.77745074", "0.76877034", "0.76877034", "0.7625207", "0.75172746", "0.75172746", "0.7439461", "0.7333555", "0.7141667", "0.704542", "0.7017269", ...
0.66822326
61
The ARN of the IAM user.
def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQQ_(YKHO) -> str:\n return qe4Y.get(YKHO, 'iam_role_arn')", "def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')", "def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')", "def axXk(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'role_arn')", "def axXk(YKH...
[ "0.721466", "0.7080793", "0.69893414", "0.69029963", "0.6750214", "0.6750214", "0.6750214", "0.6750214", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0....
0.6530156
50
The identity for this access policy. Choose either an SSO user or group or an IAM user or role.
def FIMM(Ro_8, *, oJGu: Optional[pulumi.Input['AccessPolicyIamRoleArgs']]=None, XfYc: Optional[pulumi.Input['AccessPolicyIamUserArgs']]=None, CBIr: Optional[pulumi.Input['AccessPolicyUserArgs']]=None): if oJGu is not None: qe4Y.set(Ro_8, 'iam_role', oJGu) if XfYc is not None: qe4Y.set(Ro_8, 'iam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _E99(YKHO) -> qe4Y.Input['UserAssignedIdentityArgs']:\n return qe4Y.get(YKHO, 'identity')", "def _E99(YKHO) -> h8nf[qe4Y.Input['IdentityInfoArgs']]:\n return qe4Y.get(YKHO, 'identity')", "def _E99(YKHO) -> h8nf[qe4Y.Input['IdentityArgs']]:\n return qe4Y.get(YKHO, 'identity')", "async def authori...
[ "0.6820061", "0.67817515", "0.66912663", "0.66301644", "0.6491615", "0.6491615", "0.6359362", "0.6295484", "0.6289286", "0.6277557", "0.62760115", "0.62760115", "0.62567496", "0.6184985", "0.618172", "0.6137691", "0.6104738", "0.60895514", "0.607347", "0.6065044", "0.6011124"...
0.0
-1
The ID of the portal.
def id(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3RF(YKHO):\n return id(YKHO)", "def id(YKHO):\n return YKHO.properties.get('Id', None)", "def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')", "def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')", "def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')", "def id(YKHO) -> str:\n return ...
[ "0.74883795", "0.7421444", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.73...
0.0
-1
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources and services, such as AWS IoT Events.
def _MOp(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'alarm_role_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')", "def SQQ_(YKHO) -> str:\n return qe4Y.get(YKHO, 'iam_role_arn')", "def c44t(YKHO, LmAn, Qrt_='aws'):\n if not LmAn or LmAn.startswith('arn:aws'):\n return LmAn\n if not LmAn.startswith('role/'):\n LmAn = 'role/' + LmAn\n ...
[ "0.7481613", "0.74624676", "0.7237511", "0.7205812", "0.7192159", "0.70828927", "0.70828927", "0.70828927", "0.70828927", "0.7080943", "0.7080943", "0.7055542", "0.7055542", "0.70241874", "0.70241874", "0.6927906", "0.69029874", "0.6615075", "0.6504843", "0.6504843", "0.65048...
0.7792506
0
The ARN of the AWS Lambda function that manages alarm notifications. For more information, see Managing alarm notifications in the AWS IoT Events Developer Guide.
def yanj(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'notification_lambda_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DmI7(cuiw, Oa_R):\n if cuiw is None:\n return None\n x0hE = cuiw.client('lambda')\n geh0 = x0hE.get_function(FunctionName=Oa_R)\n if geh0 is None:\n return None\n else:\n return geh0['Configuration']['FunctionArn']", "def _MOp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe...
[ "0.6692711", "0.6401166", "0.6368992", "0.6054858", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.5...
0.6996809
0
The ID of the child asset to be associated.
def jFY6(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'child_asset_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tg5d(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'child_asset_model_id')", "def uY1h(YKHO) -> str:\n return YKHO.__asset_id", "def uY1h(YKHO) -> str:\n return YKHO._asset_id", "def _AKB(YKHO) -> 'Asset':\n if YKHO.parent_id is None:\n raise ValueError('parent_id is None')\n re...
[ "0.76940787", "0.7441687", "0.7331622", "0.6914369", "0.67871726", "0.6603691", "0.6508476", "0.64989436", "0.6439033", "0.64004517", "0.63968855", "0.6379784", "0.6371061", "0.63680714", "0.6363072", "0.6363072", "0.63569283", "0.63569283", "0.63569283", "0.63569283", "0.635...
0.82537496
0
The type of the composite model. For alarm composite models, this type is AWS/ALARM
def type(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DMw4(YKHO):\n return YKHO._model_type", "def jxGD(YKHO):\n return YKHO.prop.composite_class", "def TZh9(YKHO):\n pass", "def FRul(YKHO):\n return YKHO.mm_type + YKHO.meta_model.get_type()", "def C3ST(YKHO):\n return YKHO.device.settings['device']['type']", "def C3ST(YKHO):\n return ...
[ "0.6400311", "0.6334387", "0.6272664", "0.62698895", "0.6200585", "0.6200585", "0.6123535", "0.6034088", "0.603324", "0.59946233", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", ...
0.0
-1
The ID of the asset model. All assets in this hierarchy must be instances of the child AssetModelId asset model.
def tg5d(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'child_asset_model_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uY1h(YKHO) -> str:\n return YKHO.__asset_id", "def uY1h(YKHO) -> str:\n return YKHO._asset_id", "def mLJR(YKHO):\n return _VfD.Model_getId(YKHO)", "def mLJR(YKHO):\n return _VfD.Submodel_getId(YKHO)", "def jFY6(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'child_asset_id')", "def ...
[ "0.7476371", "0.73850274", "0.69034237", "0.6706386", "0.66927", "0.6556225", "0.64631426", "0.63754314", "0.63471025", "0.6247291", "0.616297", "0.6045895", "0.5971592", "0.59100705", "0.5861642", "0.58510584", "0.58325547", "0.5795688", "0.5795688", "0.5795688", "0.5795688"...
0.80172324
0
The list of variables used in the expression.
def kc1W(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input['AssetModelExpressionVariableArgs']]]: return qe4Y.get(YKHO, 'variables')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]", "def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}", "def kc1W(YKHO):\n return YKHO.get_field('variable')", "def Zjnb(YKHO):\n return YKHO.variable_names", "def qDIe(YKHO):\n return YKHO.project.get_variab...
[ "0.7897118", "0.78862035", "0.78723073", "0.77604645", "0.7701155", "0.7700531", "0.76904225", "0.76546437", "0.763842", "0.7633454", "0.7613394", "0.7607661", "0.7586817", "0.7525452", "0.7523912", "0.7484495", "0.7480878", "0.7431629", "0.7394834", "0.7389889", "0.73769414"...
0.70974094
34
The list of variables used in the expression.
def kc1W(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input['AssetModelExpressionVariableArgs']]]: return qe4Y.get(YKHO, 'variables')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]", "def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}", "def kc1W(YKHO):\n return YKHO.get_field('variable')", "def Zjnb(YKHO):\n return YKHO.variable_names", "def qDIe(YKHO):\n return YKHO.project.get_variab...
[ "0.7897118", "0.78862035", "0.78723073", "0.77604645", "0.7701155", "0.7700531", "0.76904225", "0.76546437", "0.763842", "0.7633454", "0.7613394", "0.7607661", "0.7586817", "0.7525452", "0.7523912", "0.7484495", "0.7480878", "0.7431629", "0.7394834", "0.7389889", "0.73769414"...
0.70974094
33
Contains a tumbling window, which is a repeating fixedsized, nonoverlapping, and contiguous time interval. This window is used in metric and aggregation computations.
def FIMM(Ro_8, *, VOlW: pulumi.Input[str], vgXP: Optional[pulumi.Input[str]]=None): qe4Y.set(Ro_8, 'interval', VOlW) if vgXP is not None: qe4Y.set(Ro_8, 'offset', vgXP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NmI_(hAVj):\n tyNF = hAVj.table('time_indexed_table')\n QpfX = (rLdf.Timestamp('20170102 07:00:00', tz='UTC'), rLdf.Timestamp('20170105', tz='UTC'))\n KnxT = q_Rr.trailing_window(preceding=q_Rr.interval(hours=1), order_by='time', group_by='key')\n m_7i = q_Rr.trailing_window(preceding=q_Rr.interval...
[ "0.6338297", "0.6299437", "0.6198821", "0.60527545", "0.60449326", "0.6026739", "0.6025878", "0.6007428", "0.5988193", "0.5924704", "0.59176815", "0.5905187", "0.5890818", "0.5859328", "0.5858464", "0.58554024", "0.58220613", "0.5814069", "0.5811806", "0.57510793", "0.5725276...
0.0
-1
The MQTT notification state (ENABLED or DISABLED) for this asset property.
def JIa6(YKHO) -> h8nf[qe4Y.Input['AssetPropertyNotificationState']]: return qe4Y.get(YKHO, 'notification_state')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QtQ8(YKHO):\n return YKHO.enabled", "def QTBn(YKHO):\n return YKHO._attributes['status']", "def QTBn(YKHO):\n return _rDc if YKHO.is_on else iKVK", "def QTBn(YKHO):\n return _rDc if YKHO.is_on else iKVK", "def QTBn(YKHO):\n return _rDc if YKHO.is_on else iKVK", "def QTBn(YKHO):\n re...
[ "0.6658457", "0.6651192", "0.64582354", "0.64582354", "0.64582354", "0.6409334", "0.6389017", "0.63683015", "0.63378423", "0.6330533", "0.63207865", "0.6280377", "0.6280377", "0.6280377", "0.6274154", "0.6264954", "0.6257253", "0.6257253", "0.6257253", "0.6257253", "0.6257253...
0.766176
0
The unit of measure (such as Newtons or RPM) of the asset property. If you don't specify a value for this parameter, the service uses the value of the assetModelProperty in the asset model.
def PXGI(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'unit')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._tasmota_entity.unit", "def b82i(YKHO):\n return '%'", "def b82i(YKHO):\n return YKHO._var_unit", "def b82i(YKHO):\n return YKHO._var_unit", "def b82i(YKHO) -> str:\n return YKHO._unit", "def b82i(YKHO):\n return '%'", "def b82i(YKHO) -> str:\n return ...
[ "0.6979667", "0.6911014", "0.68733656", "0.68733656", "0.68666184", "0.6799625", "0.6763631", "0.6763631", "0.6762317", "0.67297184", "0.67297184", "0.67297184", "0.67297184", "0.67297184", "0.67297184", "0.67297184", "0.6726695", "0.67138964", "0.6657289", "0.6626167", "0.66...
0.0
-1
Contains the CoreDeviceThingName of AWS IoT Greengrass Group V2 that the gateway runs on.
def FIMM(Ro_8, *, cPKa: pulumi.Input[str]): qe4Y.set(Ro_8, 'core_device_thing_name', cPKa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IXKo(YKHO):\n return 'device-%s' % YKHO.id", "def XZ_F(YKHO):\n return YKHO.groupname", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def IXKo(YKHO):\n return YKHO._group_name", "def IXKo(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'group_name')", "def c...
[ "0.72297645", "0.6742014", "0.66420823", "0.6442809", "0.6414164", "0.6401411", "0.63839084", "0.63590133", "0.63478893", "0.6236255", "0.6236255", "0.6186375", "0.6157659", "0.6141331", "0.6123666", "0.6103929", "0.60865384", "0.6068756", "0.60643613", "0.60584474", "0.60580...
0.0
-1
The name of the CoreDevice in GreenGrass V2.
def cPKa(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'core_device_thing_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def strs(YKHO):\n lnz_ = YKHO.MAX_BUF_SIZE\n LaVg = (gk2W.c_char * lnz_)()\n YKHO._dll.JLINKARM_Core2CoreName(YKHO.core_cpu(), LaVg, lnz_)\n return gk2W.string_at(LaVg).decode()", "def mWFP(YKHO):\n return YKHO._get_device_class_name()", "def mWFP(YKHO):\n return YKHO.device.name()", "def m...
[ "0.78604996", "0.7410133", "0.73506546", "0.72830427", "0.72830427", "0.72830427", "0.7246043", "0.7114171", "0.70769787", "0.7068931", "0.7011908", "0.7008784", "0.6973652", "0.695908", "0.6945182", "0.6918463", "0.6918463", "0.68944335", "0.68722546", "0.68697304", "0.68661...
0.7890021
0
Contains the ARN of AWS IoT Greengrass Group V1 that the gateway runs on.
def FIMM(Ro_8, *, R2Qp: pulumi.Input[str]): qe4Y.set(Ro_8, 'group_arn', R2Qp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R2Qp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'group_arn')", "def WtDz(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupArn')", "def WtDz(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupArn')", "def WtDz(YKHO) -> str:\n ...", "def KMT1(YKHO, h85P):\n sZw4 = YKHO.get_target_group_in...
[ "0.6775405", "0.66583544", "0.66583544", "0.6558225", "0.6248075", "0.612565", "0.6044565", "0.6034811", "0.60296947", "0.6021691", "0.5978623", "0.5967474", "0.5967474", "0.59498525", "0.5904577", "0.5859597", "0.5818136", "0.5803322", "0.57960916", "0.5790502", "0.57827365"...
0.0
-1
The ARN of the Greengrass group.
def R2Qp(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'group_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WtDz(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupArn')", "def WtDz(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupArn')", "def WtDz(YKHO) -> str:\n ...", "def KMT1(YKHO, h85P):\n sZw4 = YKHO.get_target_group_info(h85P)\n return sZw4['TargetGroupArn']", "def IXKo(YKHO):\n return 'ro...
[ "0.7121301", "0.7121301", "0.6718738", "0.6441257", "0.61211234", "0.61200625", "0.6072509", "0.60698336", "0.60488635", "0.60363644", "0.60363644", "0.6015363", "0.6008108", "0.60028356", "0.59818786", "0.59730136", "0.59730136", "0.5968545", "0.58982265", "0.58622694", "0.5...
0.73161924
0
Contains a gateway's platform information.
def FIMM(Ro_8, *, N42I: Optional[pulumi.Input['GatewayGreengrassArgs']]=None, iUKH: Optional[pulumi.Input['GatewayGreengrassV2Args']]=None): if N42I is not None: qe4Y.set(Ro_8, 'greengrass', N42I) if iUKH is not None: qe4Y.set(Ro_8, 'greengrass_v2', iUKH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zm07(YKHO):\n return YKHO.msg.platform_info", "def zm07(YKHO):\n return a9EH.uname()._asdict()", "def GBKs(YKHO):\n return None", "def a9EH(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'platform')", "def a9EH(YKHO):\n return YKHO.random.choice(['Laptop', 'Desktop', 'Workstation', '...
[ "0.76842517", "0.7210518", "0.67832595", "0.65446913", "0.65334094", "0.6525683", "0.6485484", "0.6397677", "0.6396071", "0.63869524", "0.63559747", "0.6348283", "0.63033354", "0.62875384", "0.6280884", "0.6276274", "0.6260246", "0.62073183", "0.62037545", "0.60448027", "0.60...
0.0
-1
Read certs from disk and apply them to runninch charms.
def dTeJ(VpPs): wg9Y = Hy7s.path.join(wxiN, VpPs) pq4L = [('ssl_ca', Hy7s.path.join(wxiN, 'cacert.pem')), ('ssl_cert', Hy7s.path.join(wg9Y, 'cert.pem')), ('ssl_key', Hy7s.path.join(wg9Y, 'cert.key'))] cmFm = {} for fgFA, Iq2A in pq4L: with open(Iq2A, 'rb') as eHNT: Ze9J = eHNT.read()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xe6W(YKHO, CMfu, zmtW: Optional[Any]=...):\n ...", "def dm96():\n if Hy7s.path.exists(_Fei.ca_private_key_path()):\n SvSf = tnQN(_Fei.ca_private_key_path())\n else:\n SvSf = U_TV(_Fei.ca_private_key_path())\n if Hy7s.path.exists(_Fei.ca_cert_path()):\n Y2jI(_Fei.ca_cert_path(...
[ "0.62702477", "0.5672679", "0.5651682", "0.56140655", "0.5445632", "0.5422684", "0.54218113", "0.53573155", "0.5347483", "0.5282273", "0.5278057", "0.526462", "0.5263325", "0.524413", "0.52412826", "0.51972663", "0.5196106", "0.51437515", "0.5121566", "0.5091246", "0.50804126...
0.6405964
0
Mock model amazon class.
def QHwS(): sZuJ = _I2x() sZuJ.carrot1 = 'cenoura normal' sZuJ.carrot2 = 'cenoura radioativa' sZuJ.carrot_number = 575 return sZuJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s0ER(YKHO):\n pass", "def l2Jd(YKHO, cOAi):\n cOAi().list_objects.return_value = list(liH3['bucket1'].keys())\n cOAi().stat_object.side_effect = list(liH3['bucket1'].values())\n en4D = PVaq.s3_storage_manager.BucketInfo(name='bucket1', size=60, last_modified=qcWV.datetime(year=2021, month=10, day...
[ "0.653624", "0.6257138", "0.6081607", "0.6022273", "0.59756184", "0.5929084", "0.592684", "0.5844616", "0.58282375", "0.580259", "0.5766654", "0.57569045", "0.57546294", "0.5732911", "0.5712084", "0.5674845", "0.56711346", "0.56508225", "0.56021875", "0.557902", "0.5542184", ...
0.8440551
0
make the class attribute values consistent with weights, in case after (re)setting the weights from input parameter ``weights``, post condition is also ``sum(self.postive_weights) == 1``. This method allows to set or change the weight list manually,
def FK0v(YKHO, _mSQ=None, pVKP=True): if _mSQ is not None: if not _mSQ[0] > 0: raise ValueError('the first weight must be >0 but was %f' % _mSQ[0]) if _mSQ[-1] > 0: raise ValueError('the last weight must be <=0 but was %f' % _mSQ[-1]) YKHO[:] = _mSQ _mSQ = YKHO ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNuA(YKHO, _mSQ):\n YKHO._weights = _mSQ\n YKHO.normalize_weights()", "def sNuA(YKHO, _mSQ):\n YKHO.weights = _mSQ", "def L1EB(YKHO, _mSQ):\n YRbF = iter(_mSQ)\n for xqoZ in YKHO.params:\n xqoZ.set_value(YRbF.next())", "def L1EB(YKHO, _mSQ):\n YRbF = iter(_mSQ)\n for xqoZ in Y...
[ "0.76464224", "0.7466416", "0.7340093", "0.7340093", "0.73016846", "0.72966117", "0.72698563", "0.7173162", "0.7140096", "0.70631933", "0.7058237", "0.6970455", "0.6949185", "0.6930126", "0.69235384", "0.6876305", "0.68118435", "0.6794376", "0.6794029", "0.6791608", "0.675825...
0.7376381
2
finalize negative weights using ``dimension`` and learning rates ``c1`` and ``cmu``. This is a rather intricate method which makes this class useful. The negative weights are scaled to achieve
def McFk(YKHO, e_2d, dg7v, TVOL): if e_2d <= 0: raise ValueError('dimension must be larger than zero, was ' + str(e_2d)) YKHO._c1 = dg7v YKHO._cmu = TVOL if YKHO[-1] < 0: if TVOL > 0: if dg7v > 10 * TVOL: print('WARNING: c1/cmu = %f/%f seems to assume a\n ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gIgl(YKHO):\n RHJb = YKHO.config.eta\n YKHO.w_xh -= RHJb * (YKHO.x.T @ YKHO.h)\n YKHO.w_th -= RHJb * (YKHO.t.T @ YKHO.h)\n YKHO.w_ho -= RHJb * (YKHO.h.T @ YKHO.o)\n YKHO.w_hz -= RHJb * (YKHO.h.T @ YKHO.z)", "def uI5I(YKHO):\n for G1Hx in range(len(YKHO)):\n YKHO[G1Hx] *= 0 if YKHO[G1...
[ "0.6761159", "0.6534004", "0.5907389", "0.59004915", "0.5741855", "0.5668231", "0.56536525", "0.5647156", "0.56434005", "0.5618861", "0.5615346", "0.56062585", "0.560569", "0.5603887", "0.5582926", "0.5576416", "0.5574724", "0.556881", "0.556881", "0.556881", "0.55591863", ...
0.8109045
0
finalize by setting all negative weights to zero
def uI5I(YKHO): for G1Hx in range(len(YKHO)): YKHO[G1Hx] *= 0 if YKHO[G1Hx] < 0 else 1 YKHO.finalized = True return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gIgl(YKHO):\n RHJb = YKHO.config.eta\n YKHO.w_xh -= RHJb * (YKHO.x.T @ YKHO.h)\n YKHO.w_th -= RHJb * (YKHO.t.T @ YKHO.h)\n YKHO.w_ho -= RHJb * (YKHO.h.T @ YKHO.o)\n YKHO.w_hz -= RHJb * (YKHO.h.T @ YKHO.z)", "def lfj2(YKHO):\n gnPz.raiseNotDefined()\n return", "def Y7Bk(YKHO):\n for ...
[ "0.76950234", "0.76265615", "0.7603855", "0.72185093", "0.70976794", "0.69549066", "0.6947605", "0.69272065", "0.6863057", "0.68447256", "0.68447256", "0.68447256", "0.68215257", "0.68195206", "0.6811828", "0.67657644", "0.67142224", "0.67142224", "0.6702658", "0.66994035", "...
0.8236944
0
NLTK's treebank tokenizer + lemmatizing. Works on more raw text.
def wr3U(l5Ny): s2mk = vWOF().tokenize(l5Ny) s2mk = v_nw(s2mk) s2mk = filter(lambda KCHu: len(KCHu) > 2, s2mk) return s2mk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n s2mk = dFss(l5Ny)\n LkXt = GFnk()\n zKDd = []\n for w2fL in s2mk:\n NM_J = LkXt.lemmatize(w2fL).lower().strip()\n zKDd.append(NM_J)\n return zKDd\n pass", "def wr3U(l5Ny):\n s2mk = Dhdw.word_tokenize(l5Ny)\n LkXt = Dhdw.WordNetLemmatizer()\n oNFO = []\n ...
[ "0.7408007", "0.73596334", "0.72752595", "0.7255971", "0.72425437", "0.7213678", "0.72054255", "0.71963614", "0.71893334", "0.71567446", "0.71332353", "0.71124214", "0.7110962", "0.705885", "0.6986419", "0.6977871", "0.69313085", "0.69313085", "0.69024557", "0.6866512", "0.68...
0.7520769
0
Wraps hidden states in new Tensors, to detach them from their history. This prevents Pytorch from trying to backpropagate into previous input sequences when we use the final hidden states from one minibatch as the initial hidden states for the next minibatch. Using the final hidden states in this way makes sense when t...
def IOWm(MKlR): if isinstance(MKlR, iQnE): return MKlR.detach_() else: return tuple((IOWm(Ty9i) for Ty9i in MKlR))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def It5M(YKHO, Zode, qxoj):\n if YKHO.rnn_type in ['lstm', 'mylstm']:\n MKlR = iQnE(Zode[0].data)\n Z9rn = iQnE(Zode[1].data)\n Zode = (MKlR, Z9rn)\n for Fg_i, I1mm in enumerate(qxoj):\n if I1mm.data[0] == 1:\n Zode[0][:, Fg_i, :].data.fill_(0)\n ...
[ "0.6448267", "0.64451784", "0.6423335", "0.6402785", "0.63460964", "0.63388354", "0.63340974", "0.62560886", "0.62560886", "0.62366307", "0.6222153", "0.6222153", "0.6169424", "0.6169424", "0.6150388", "0.6088709", "0.6086727", "0.6062662", "0.60230196", "0.59553653", "0.5892...
0.0
-1
Do not return anything, modify rooms inplace instead.
def awDp(YKHO, DFSo: List[List[int]]) -> None: if not DFSo or not DFSo[0]: return r8hN, exwG = (len(DFSo), len(DFSo[0])) vexM = MUE7([]) for YRbF in range(r8hN): for r845 in range(exwG): if DFSo[YRbF][r845] == 0: vexM.append((YRbF, r845)) YKHO.BFS(DFSo, ve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DFSo(YKHO, DFSo):\n YKHO._rooms = DFSo", "def eEEi(YKHO):\n DFSo = YKHO.model.get_all_rooms()\n for abiq in DFSo:\n YKHO._add_room(abiq)", "def DFSo(*qIxc):\n s_GD.system_message('\\n'.join(DFSo()))", "def pUc1(YKHO):\n pass", "def a12t(YKHO, gv2B: str, BdN0: str):\n for abiq i...
[ "0.67922723", "0.6150443", "0.5985418", "0.59520423", "0.5938853", "0.5910455", "0.5802791", "0.5788961", "0.57677865", "0.56960684", "0.56584203", "0.56518275", "0.5649922", "0.56375164", "0.5580176", "0.5570199", "0.5540112", "0.5534412", "0.5534412", "0.5529608", "0.549605...
0.49119845
90
Create new Identity gate.
def FIMM(YKHO, UXqs=None): super().__init__('id', 1, [], label=UXqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XD8v(YKHO) -> None:\n ...", "def VoC8(ROpF, yDqo=None, mWFP='Identity'):\n\n def NN4v(g4y1):\n if yDqo is None:\n return fhcK.Lambda(lambda a1PO: a1PO, output_shape=ROpF, name=mWFP)(g4y1)\n else:\n return fhcK.Lambda(lambda a1PO: nMvt.cast(a1PO, dtype=yDqo), output_s...
[ "0.7108182", "0.5959826", "0.59588265", "0.59442157", "0.5926761", "0.5915227", "0.58701605", "0.57825905", "0.57798356", "0.5741662", "0.56760454", "0.56539965", "0.5634331", "0.5625368", "0.5559021", "0.55474967", "0.5545471", "0.5539013", "0.55358475", "0.55226743", "0.550...
0.0
-1
Seconds to hours, minutes, seconds
def wfzq(C6wh): Wave, C6wh = divmod(C6wh, 60 ** 2) O66n, C6wh = divmod(C6wh, 60) return (int(Wave), int(O66n), C6wh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bQkZ(Wave, O66n, C6wh):\n return Wave * 60 ** 2 + O66n * 60 + C6wh", "def bQkZ(Wave, O66n, C6wh):\n return Wave * 3600 + O66n * 60 + C6wh", "def bQkZ(Wave, O66n, C6wh):\n return Wave * 3600 + O66n * 60 + C6wh", "def bQkZ(YKHO):\n return YKHO.hours * 3600 + YKHO.minutes * 60 + YKHO.seconds", ...
[ "0.84514225", "0.84189403", "0.84072274", "0.7883426", "0.7803939", "0.78034186", "0.7795887", "0.77733535", "0.77654386", "0.7587393", "0.75029397", "0.7491512", "0.7467401", "0.7467401", "0.7441624", "0.7425313", "0.74229103", "0.74225914", "0.73293287", "0.7319389", "0.731...
0.7971415
3
A generator that supports fancy indexing When sliced using any iterable with a known length, it return another object like itself, a SliceableIterable. When sliced with an integer, it returns the data payload. Also, this retains the attributes of the ultimate ancestor that created it (or its parent, or its parent's par...
def FIMM(YKHO, F_G6, _0VL, u54L=None): if u54L is None: try: u54L = len(_0VL) except TypeError: raise ValueError('The length parameter is required in this case because len(indices) is not valid.') YKHO._len = u54L YKHO._ancestor = F_G6 YKHO._indices = _0VL YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MPO8(uOgj, xhsw):\n if uOgj[0] is None:\n if uOgj[1] is None:\n return slice(xhsw)\n else:\n return slice(uOgj[1])\n elif uOgj[1] is None:\n return slice(uOgj[0], xhsw)\n else:\n return slice(uOgj[0], uOgj[1])", "def slice(OxJJ, *qIxc):\n return i...
[ "0.6000321", "0.592178", "0.5887195", "0.58659434", "0.58604765", "0.57758796", "0.5766051", "0.57205874", "0.5700211", "0.5686871", "0.5669446", "0.56094426", "0.5601843", "0.5573495", "0.55685866", "0.5558066", "0.5554972", "0.5550703", "0.5550227", "0.5548801", "0.55402523...
0.0
-1
List unique values in a series.
def McQV(dy_H: pd.Series) -> str: return ', '.join(set((str(Ty9i) for Ty9i in rLdf.Series.unique(dy_H))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcwm(YKHO, **B2fa):\n return nASC.register(CwDs.Series.unique)(YKHO, **B2fa)", "def kcwm(YKHO):\n return YKHO.d_series.map_partitions(lambda KCHu: KCHu.list.unique(), meta=YKHO.d_series._meta)", "def WRxH(dy_H: pd.Series) -> list:\n return list(dy_H.unique())", "def HZ_h(YKHO, hkxX):\n return...
[ "0.72554606", "0.7177377", "0.68870914", "0.67700475", "0.66918623", "0.6555451", "0.6501571", "0.63622105", "0.63266855", "0.6256994", "0.6160002", "0.6135204", "0.6129943", "0.60173583", "0.59977174", "0.5980264", "0.59779084", "0.5965695", "0.5874729", "0.58170915", "0.581...
0.8213465
0
Torch device run calculations on. This wrapper class will always attempt to use GPU if possible. Setting this as a "lazy object" so that remote worker can have a different configuration the interactive session.
def xYdp(YKHO): return ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, *qIxc, **B2fa) -> None:\n eaGt = YKHO.run_on_device(*qIxc, **B2fa)\n assert isinstance(eaGt, ivw6), f'Expected device outputs to be of type `DeviceOutputs`, but got `{type(eaGt)}`.'\n for or8S, vhpA in enumerate(eaGt.args):\n if isinstance(vhpA, ht2j.Tensor):\n eaGt.args[o...
[ "0.6774972", "0.67449373", "0.6737787", "0.6691643", "0.6651241", "0.6627094", "0.6607544", "0.65248734", "0.64546335", "0.6427391", "0.6417402", "0.6327907", "0.63050073", "0.6286983", "0.6269108", "0.6242427", "0.62012446", "0.6176676", "0.6158753", "0.61531866", "0.6127525...
0.70875615
0
Setup the initial variables to use when creating the face.
def FIMM(YKHO, TjAx, _Gtx='', HEZd='C'): YKHO.moduleName = BfDw.setupBodyPartName(_Gtx, HEZd) YKHO.extraName = _Gtx YKHO.side = HEZd YKHO.rig = TjAx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n uvNl = oyIN.full((3, 2), dtype=oyIN.float32, fill_value=0.1)\n yu2j = 'surface_downwelling_ultraviolet_flux_in_air'\n YKHO.cube_uv_down = j8pC(uvNl, name=yu2j, units='W m-2')\n YKHO.cube_down_badname = j8pC(uvNl, name='Wrong name', units='W m-2')", "def FIMM(YKHO, gWoW=None):\n Y...
[ "0.6395997", "0.6371132", "0.6340165", "0.63231075", "0.62696904", "0.62459016", "0.62443274", "0.6226305", "0.61786425", "0.61720705", "0.61303663", "0.61225885", "0.6092467", "0.6079521", "0.6051416", "0.6038669", "0.6017045", "0.60010594", "0.59842664", "0.5981145", "0.594...
0.0
-1
Calculate the residual where one subtracts new from old values.
def _U5S(nohl: List[Any], Dbmo: List[Any]) -> x1iM[float]: uuHL = [] for YRbF in range(len(nohl)): uuHL.append(nohl[YRbF] - Dbmo[YRbF]) return uuHL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E5KX(YKHO):\n VC3Q = YKHO.I - YKHO.E\n return VC3Q", "def ed_d(YKHO) -> eQHC.NDArray[oyIN.float64]:\n return YKHO.data - YKHO.theory", "def O5cp(NArs: List[float], fUYa: np.ndarray, bEXe: np.ndarray) -> float:\n return KFJf(params=NArs, xs=fUYa) - bEXe", "def UKy8(YKHO, NArs):\n nPrm = YKH...
[ "0.71409667", "0.70022213", "0.6837927", "0.6747596", "0.66030866", "0.6600291", "0.6478501", "0.64761144", "0.6464295", "0.6457937", "0.64278525", "0.6373832", "0.63501143", "0.63357", "0.633471", "0.6311972", "0.6292315", "0.62881404", "0.6266376", "0.6235627", "0.62327373"...
0.8036032
0
Renders the home page.
def kZiy(): return TvZl('index.html', title='Home Page', year=qcWV.now().year)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.85574406", "0.853399", "0.8351404", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.827363", "...
0.8061255
41
The function to load index page of the project.
def d6pt(QePW): return _1tc(QePW, 'index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j4m5():\n return TvZl('index.html')", "def d6pt():\n return TvZl('pages/index.html', isNav=True)", "def d6pt(YKHO):\n return YKHO.load_view('index.html')", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n return TvZl('index.html')"...
[ "0.7744821", "0.7721468", "0.7709105", "0.76461136", "0.76461136", "0.76461136", "0.7645356", "0.7643193", "0.76359475", "0.7631261", "0.7604954", "0.7594808", "0.7585097", "0.75747085", "0.7567051", "0.7567051", "0.75615305", "0.75615305", "0.75453025", "0.75305283", "0.7529...
0.0
-1
The function to load alumni home page of the project.
def K8NO(QePW): tO9_ = '' D3lj = QePW.session['email'] KCHu = "select tblalumni.* from tblalumni where tblalumni.alumniid='" + D3lj + "'" Z9rn.execute(KCHu) nPrm = Z9rn.fetchall() if QePW.POST: mWFP = QePW.POST['txtName'] EE3v = QePW.POST['txtGender'] i_8Y = QePW.POST['tx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')", "def kZiy() -> ImMB:\n return vja_()", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def PJpd():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html', title='Home Page',...
[ "0.73002464", "0.71974087", "0.7130479", "0.71011215", "0.70909894", "0.7088832", "0.7081981", "0.7028002", "0.7019553", "0.70135987", "0.70091295", "0.6998832", "0.6998832", "0.69830734", "0.69593585", "0.69529825", "0.69302016", "0.69175804", "0.69100183", "0.6908603", "0.6...
0.0
-1
Takes in an ycbcr numpy array (700, 700, 3) and returns an rgb numpy array (700, 700, 3)
def dTHQ(kepu): SZFh = oyIN.matrix('.299, .587, .114; -.16874, -.33126, .5; .5, -.41869, -.08131') GOZd = SZFh.getI() def miBC(kepu): return oyIN.array(oyIN.dot(GOZd, kepu))[0] return oyIN.apply_along_axis(miBC, 2, kepu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dTHQ(LNo8: torch.Tensor) -> ht2j.Tensor:\n LVAh: ht2j.Tensor = LNo8[..., 0, :, :]\n BBLH: ht2j.Tensor = LNo8[..., 1, :, :]\n KBgZ: ht2j.Tensor = LNo8[..., 2, :, :]\n RA_F: float = 0.5\n APbw: ht2j.Tensor = BBLH - RA_F\n Mjvg: ht2j.Tensor = KBgZ - RA_F\n Mkmy: ht2j.Tensor = LVAh + 1.403 * M...
[ "0.80003923", "0.7840803", "0.74493235", "0.7414404", "0.7108502", "0.7094321", "0.70170677", "0.6994948", "0.68217236", "0.67787987", "0.6719455", "0.66750664", "0.63073003", "0.6298126", "0.6212904", "0.62123626", "0.6191524", "0.617554", "0.6159965", "0.6149208", "0.614103...
0.769724
2
Takes in an ycbcr numpy array (700, 700, 3) and returns an rgb numpy array (700, 700, 3)
def r7Ub(d7Eb): SZFh = oyIN.matrix('.299, .587, .114; -.16874, -.33126, .5; .5, -.41869, -.08131') def miBC(WKvO): return oyIN.array(oyIN.dot(SZFh, WKvO))[0] return oyIN.apply_along_axis(miBC, 2, d7Eb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dTHQ(LNo8: torch.Tensor) -> ht2j.Tensor:\n LVAh: ht2j.Tensor = LNo8[..., 0, :, :]\n BBLH: ht2j.Tensor = LNo8[..., 1, :, :]\n KBgZ: ht2j.Tensor = LNo8[..., 2, :, :]\n RA_F: float = 0.5\n APbw: ht2j.Tensor = BBLH - RA_F\n Mjvg: ht2j.Tensor = KBgZ - RA_F\n Mkmy: ht2j.Tensor = LVAh + 1.403 * M...
[ "0.79998183", "0.7840752", "0.7695423", "0.74495894", "0.7109342", "0.7092524", "0.70184445", "0.69950616", "0.68228066", "0.6780074", "0.67230994", "0.66746396", "0.6308402", "0.63014287", "0.62159306", "0.621566", "0.61929667", "0.617629", "0.61626834", "0.61522776", "0.613...
0.7414534
4
Get binary predictions from probability.
def i_UG(BFeB, Hw9C): N6Z1 = [] for JxU2 in BFeB: o3Uj = oyIN.where(JxU2 > Hw9C)[0] if len(o3Uj) == 0: o3Uj = oyIN.array([oyIN.argmax(JxU2)]) N6Z1.append(o3Uj) return oyIN.array(N6Z1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fOCb(BFeB, gwAu=0.5):\n return (BFeB >= gwAu) * oyIN.ones(len(BFeB))", "def YEmv(YKHO, WKvO):\n return [1 if Q7Be > YKHO.decision_threshold else 0 for Q7Be in YKHO.predict_probs(WKvO)]", "def _rEY(Y8eF, ZxJs):\n assert len(Y8eF) == len(ZxJs)\n Crrw = oyIN.unique(Y8eF)\n if len(Crrw) > 2:\n ...
[ "0.78028536", "0.73020226", "0.70811003", "0.70603114", "0.70406", "0.70165074", "0.7004505", "0.6997905", "0.6989513", "0.6898919", "0.68484944", "0.68269336", "0.68238926", "0.6777199", "0.67615336", "0.67323494", "0.67320913", "0.6732008", "0.66919345", "0.6672312", "0.664...
0.7511883
1
Determine the path within CephFS where this volume will live
def j1XE(YKHO, LYvN): return Hy7s.path.join(YKHO.volume_prefix, LYvN.group_id if LYvN.group_id is not None else uZOy, LYvN.volume_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dt_8(YKHO, akib):\n rbx7 = akib['provider_location']\n weUZ = rbx7.split(':')[1].rstrip('/')\n return '%s/%s/volume' % (weUZ, akib['name'])", "def rAod(YKHO, akib):\n rbx7 = akib['provider_location']\n return Hy7s.path.join(YKHO._get_mount_point_for_share(rbx7), akib['name'], 'volume')", "de...
[ "0.74932253", "0.72519714", "0.70141333", "0.67669195", "0.6720136", "0.66887575", "0.66887575", "0.66783", "0.65969527", "0.65689933", "0.65463257", "0.6496567", "0.6467795", "0.6368771", "0.6363076", "0.63594776", "0.63594776", "0.6350182", "0.63313144", "0.63229966", "0.63...
0.6216511
31
Return a deserialized JSON object, or None
def EjEc(YKHO, pmON): Gcbu = YKHO.fs.open(pmON, 'r') jotK = YKHO.fs.read(Gcbu, 0, 4096 * 1024) YKHO.fs.close(Gcbu) if jotK: return qQXR.loads(jotK.decode()) else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MZ6z(YKHO, YEnM):\n if YEnM is None:\n return\n try:\n return qQXR.loads(YEnM)\n except Exception:\n return YEnM", "def n5rA(YKHO, YEnM):\n try:\n return qQXR.loads(YEnM.decode('utf-8'))\n except (bZdH, TypeError, UnicodeDecodeError):\n raise o3HX", "def lc...
[ "0.71287966", "0.70007676", "0.6860122", "0.6787295", "0.67388594", "0.67046165", "0.6599326", "0.6587907", "0.6584576", "0.6580279", "0.65464747", "0.6540127", "0.65148985", "0.6502088", "0.6499169", "0.648684", "0.6451059", "0.6391195", "0.6378702", "0.636906", "0.63559073"...
0.0
-1
Sets the price_of_previous_sale of this AdditionalFeatures.
def nOHq(YKHO, nOHq): if nOHq is not None and nOHq < 1: raise ValueError('Invalid value for `price_of_previous_sale`, must be a value greater than or equal to `1`') YKHO._price_of_previous_sale = nOHq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lnf7(YKHO, lnf7):\n YKHO._date_of_previous_sale = lnf7", "def dFsR(YKHO, dFsR):\n YKHO._last_sold_price = dFsR", "def YoBy(YKHO, YoBy):\n YKHO._price_low = YoBy", "def oe72(YKHO, oe72):\n YKHO._original_price = oe72", "def zufV(YKHO, zufV):\n YKHO._lastPrice = zufV", "def orlX(YKHO, FD...
[ "0.6628219", "0.6391776", "0.6156609", "0.6105894", "0.5995306", "0.5804479", "0.56330734", "0.55535257", "0.55040205", "0.5488214", "0.5485717", "0.5472077", "0.5471115", "0.5461934", "0.54406613", "0.54406613", "0.54406613", "0.54406613", "0.5413697", "0.5400038", "0.537844...
0.7697107
0
Sets the date_of_previous_sale of this AdditionalFeatures.
def lnf7(YKHO, lnf7): YKHO._date_of_previous_sale = lnf7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nOHq(YKHO, nOHq):\n if nOHq is not None and nOHq < 1:\n raise ValueError('Invalid value for `price_of_previous_sale`, must be a value greater than or equal to `1`')\n YKHO._price_of_previous_sale = nOHq", "def iHc5(YKHO, iHc5):\n YKHO._last_sold_date = iHc5", "def orlX(YKHO, FD1P):\n YKH...
[ "0.6447318", "0.6044715", "0.57442987", "0.5360343", "0.52730626", "0.52131224", "0.52006876", "0.51890606", "0.51727414", "0.51157707", "0.50980985", "0.50933754", "0.5051037", "0.5025343", "0.50124127", "0.4974506", "0.49563286", "0.49551412", "0.49551412", "0.4922393", "0....
0.8294784
0
Sets the leasehold_or_freehold of this AdditionalFeatures.
def AFXX(YKHO, AFXX): YKHO._leasehold_or_freehold = AFXX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m81r(YKHO) -> bool:\n return qe4Y.get(YKHO, 'has_legal_hold')", "def DQwx(YKHO, DQwx: float):\n if DQwx is None:\n raise ValueError('Invalid value for `holding`, must not be `None`')\n YKHO._holding = DQwx", "def VoPj(wzDi):\n tO9_ = efJj()\n tO9_.hold = wzDi\n auXc = sQC5.ServiceP...
[ "0.54863566", "0.53023446", "0.5094642", "0.49744886", "0.4941658", "0.4934552", "0.4934457", "0.48097223", "0.48018694", "0.4786281", "0.47780278", "0.47690627", "0.47347182", "0.47232643", "0.4703243", "0.46838185", "0.45683005", "0.4560419", "0.45039812", "0.45005536", "0....
0.8460294
0
Sets the wall_type of this AdditionalFeatures.
def uxlO(YKHO, uxlO): YKHO._wall_type = uxlO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TG_K(YKHO, Qy0e):\n YKHO.type_balle = Qy0e", "def AyI1(YKHO, AyI1):\n YKHO.container['side_wall'] = AyI1", "def s5CG(YKHO, s5CG):\n YKHO._wall_insulation = s5CG", "def SqLA(YKHO, XSoh, httR):\n if XSoh == LgK1.NORTH:\n YKHO.north_wall = httR\n elif XSoh == LgK1.SOUTH:\n YKHO....
[ "0.58527184", "0.57684755", "0.57125646", "0.5703303", "0.56837356", "0.5530436", "0.54732966", "0.54732966", "0.53980815", "0.5395366", "0.5373787", "0.53603256", "0.52729887", "0.52713954", "0.5247474", "0.5238552", "0.52124506", "0.5169901", "0.5135033", "0.50961864", "0.5...
0.85698783
0
Sets the roof_type of this AdditionalFeatures.
def z0FI(YKHO, z0FI): YKHO._roof_type = z0FI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TG_K(YKHO, AvtT=RqVe):\n YKHO.type = AvtT", "def TG_K(YKHO, Qy0e):\n YKHO.type_balle = Qy0e", "def y_sS(YKHO, qdJE, cM24):\n try:\n qQ1Y = yHyU.types.index(cM24)\n except ValueError:\n raise ValueError('The given type %s could not be found in available types: %' % (cM24, yHyU.type...
[ "0.64565873", "0.59542614", "0.5759301", "0.57546955", "0.572071", "0.57002836", "0.57002836", "0.56000966", "0.5581329", "0.55556244", "0.54885656", "0.54578686", "0.54271376", "0.54271376", "0.54271376", "0.54271376", "0.54271376", "0.5380205", "0.5378139", "0.5378139", "0....
0.8249253
0
Sets the window_glazing_type of this AdditionalFeatures.
def gc6T(YKHO, gc6T): YKHO._window_glazing_type = gc6T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TG_K(YKHO, Qy0e):\n YKHO.type_balle = Qy0e", "def xO_s(YKHO, Pbul):\n YKHO.hgType = Pbul", "def xO_s(YKHO, Pbul):\n YKHO.huntGroup.setHgType(Pbul)", "def ieF_(YKHO, rUJE):\n YKHO._agwStyle = YKHO._originalStyle = rUJE\n if YKHO._art:\n YKHO._art.SetAGWFlags(YKHO._agwStyle)\n if r...
[ "0.57397866", "0.57030624", "0.55855316", "0.50848544", "0.5073721", "0.5049477", "0.5046113", "0.50177735", "0.5008673", "0.49510878", "0.4948846", "0.49217704", "0.4882645", "0.4882032", "0.487688", "0.48735413", "0.48560783", "0.4835571", "0.481089", "0.47649255", "0.47649...
0.8794708
0