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
Validates if YARN is present in the configuration when the user specifies YARN as HAWQ's resource manager.
def hZyx(): import params if 'hawq-site' not in params.config['configurations']: raise jlxu('Configurations does not contain hawq-site. Please include HAWQ') WeZP = params.config['configurations']['hawq-site'].get('hawq_global_rm_type') if WeZP == 'yarn' and 'yarn-site' not in params.config['con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xEnU() -> bool:\n try:\n PurT.info(\"Checking if Hadoop 'yarn' tool is available\")\n hlel = Yn3K.check_output(['yarn', 'version']).decode('ascii')\n UJcZ = 'hadoop' in hlel.lower()\n PurT.info('Hadoop yarn available: {a}'.format(a=UJcZ))\n return UJcZ\n except Exceptio...
[ "0.6936385", "0.6073402", "0.5775916", "0.56421214", "0.56417525", "0.5630736", "0.5353883", "0.53529453", "0.53529453", "0.53403854", "0.5114844", "0.50337255", "0.49970788", "0.49672505", "0.49034274", "0.48393628", "0.48376715", "0.48361033", "0.48230928", "0.4802877", "0....
0.69335645
1
Constructs a ResNet18 model.
def qUH4(mL4f=False): C3ST = S1Vm(em1m, [2, 2, 2, 2]) if mL4f: C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18'])) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v19q(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18']))\n return C3ST", "def qUH4(mL4f=True, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['res...
[ "0.7803926", "0.7390156", "0.7378343", "0.73664486", "0.7343439", "0.7335423", "0.73043513", "0.73043513", "0.73043513", "0.73043513", "0.73043513", "0.73043513", "0.73043513", "0.73043513", "0.73043513", "0.73043513", "0.73043513", "0.73043513", "0.72931075", "0.7252459", "0...
0.7325746
6
Constructs a ResNet34 model.
def OwNx(mL4f=False): C3ST = S1Vm(em1m, [3, 4, 6, 3]) if mL4f: C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34'])) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwNx(nZt5=10):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], 2 * nZt5)\n return C3ST", "def OwNx(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34']))\n mLGw = C3ST.fc.in_features\n C3ST.fc = ht2j.nn.Linear(mLGw, _Fei.MO...
[ "0.7703386", "0.74675333", "0.74524", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7427917", "0.7407424", "0.73827267", "0.737552", "0.73492414", "0.73492414", "0.73492414", ...
0.7424663
15
Constructs a ResNet50 model.
def uwZX(mL4f=False): C3ST = S1Vm(MF6R, [3, 4, 6, 3]) if mL4f: C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50'])) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def abVM():\n global ResNet50_model\n L9vW = uwZX.ResNet50(weights='imagenet')\n L9vW._make_predict_function()", "def g4bj(YKHO):\n from tensorflow.keras.applications import ResNet50\n rvDU = ResNet50(input_shape=(uwaB.IMAGE_SIZE_EYES, uwaB.IMAGE_SIZE_EYES, 3), include_top=False, weights='imagenet...
[ "0.7942998", "0.7562238", "0.7498587", "0.74903464", "0.748225", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.74686694", "0.7453793", "0.7451919", "0.74174935", "0.7413509", "0.7386383", "0.7386383", ...
0.7455879
15
Constructs a ResNet152 model.
def hVyu(mL4f=False): C3ST = S1Vm(MF6R, [3, 8, 36, 3]) if mL4f: C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152'])) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], c2s7, **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n return C3ST", "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url...
[ "0.75556076", "0.7418448", "0.7414694", "0.74008536", "0.74008536", "0.74008536", "0.74008536", "0.74008536", "0.74008536", "0.74008536", "0.74008536", "0.74008536", "0.74008536", "0.73891246", "0.73891246", "0.7364337", "0.735828", "0.7355127", "0.7344731", "0.73230124", "0....
0.7307744
21
Get `count` random objects for a model object `model` or from a queryset. Returns an iterator that yield one object at a time. You model must have an auto increment id for it to work and it should be available on the `id` attribute.
def NY3m(C3ST=None, SR0I=None, UHFx=float('+inf')): if not SR0I: try: SR0I = C3ST.objects.all() except AttributeError: raise ValueError('You must provide a model or a queryset') Np5D = SR0I.aggregate(VYxc('id'))['id__max'] YRbF = 0 while YRbF < UHFx: try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO, C3ST, QpfX):\n assert issubclass(C3ST, ZFYC.Model)\n assert isinstance(QpfX, ZFYC.Context)\n return YKHO.next_response('count', C3ST, QpfX, default=0)", "def XjBI(YEnM, qoqK=None):\n Kyq_ = 'Count_' + YEnM.__name__\n UHFx = LgTF.get(Kyq_)\n if UHFx is not None:\n return UH...
[ "0.595174", "0.59170055", "0.5884362", "0.58179754", "0.5683996", "0.5555578", "0.547606", "0.54514724", "0.541128", "0.53887004", "0.53873116", "0.5315836", "0.5315836", "0.530399", "0.5295076", "0.52871317", "0.5243216", "0.5212545", "0.5204414", "0.5203318", "0.5187803", ...
0.81521446
1
Uses get() to return an object or None if the object does not exist. klass may be a Model, Manager, or QuerySet object. All other passed arguments and keyword arguments are used in the get() query.
def GyR0(rV9y, *qIxc, **B2fa): SR0I = gWcE(rV9y) try: return SR0I.get(*qIxc, **B2fa) except SR0I.model.DoesNotExist: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rTS8(rV9y, *qIxc, **B2fa):\n SR0I = gWcE(rV9y)\n try:\n return SR0I.get(*qIxc, **B2fa)\n except SR0I.model.DoesNotExist:\n return None", "def rTS8(rV9y, *qIxc, **B2fa):\n SR0I = gWcE(rV9y)\n try:\n return SR0I.get(*qIxc, **B2fa)\n except SR0I.model.DoesNotExist:\n ...
[ "0.7703715", "0.76141226", "0.7479011", "0.7101056", "0.6832215", "0.6568247", "0.65420884", "0.65071815", "0.6479658", "0.6470503", "0.6411505", "0.6378278", "0.63398343", "0.63139397", "0.6301336", "0.6242908", "0.6197056", "0.6192437", "0.6134093", "0.61267674", "0.6121301...
0.7582422
3
Return the best match instance of `model` using as many of the given query args as we can. Returns None if we can't find a combination of the args that gives us exactly one result.
def XirL(C3ST, **njSj): tu9d = C3ST.objects.filter(**njSj) if tu9d.count() == 1: return tu9d[0] if tu9d.count() > 1: return None sjXb = njSj.keys() if len(sjXb) <= 1: return None for eBaV in sjXb: PjDL = dict(njSj) del PjDL[eBaV] tu9d = C3ST.object...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _8gI(C3ST, **B2fa):\n xDcj = Qj6z(C3ST).filter_by(**B2fa)\n Ylbp = xDcj.one()\n return Ylbp", "def ihtl(xDcj, mrPm):\n if isinstance(mrPm, dict):\n eG1q = list(mrPm.keys())\n elif isinstance(mrPm, list):\n eG1q = mrPm\n else:\n raise ValueError('a list or dict of choice...
[ "0.6122714", "0.57691437", "0.5713459", "0.5704296", "0.5681809", "0.5678774", "0.5628798", "0.56023616", "0.55866396", "0.5519839", "0.5481797", "0.5481797", "0.54808164", "0.5466121", "0.53862864", "0.53862864", "0.53779566", "0.53632516", "0.5357641", "0.5352446", "0.53419...
0.71767724
0
Compute area of triangles in facevertex mesh format
def kE_V(hQHm, jlSq, bUZ8): return 0.5 * oyIN.linalg.norm(oyIN.cross(jlSq - hQHm, bUZ8 - hQHm), axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _w3c(_19w, y_PJ):\n assert _19w.ndim == 2 and _19w.shape[1] == 3\n assert y_PJ.ndim == 2 and y_PJ.shape[1] == 3\n wYGo, jF4l, zSuv = _19w[y_PJ.flatten()].reshape((-1, 3, 3)).transpose((1, 0, 2))\n tyFr = jF4l - wYGo\n uJrq = zSuv - wYGo\n return oyIN.sum(0.5 * oyIN.linalg.norm(oyIN.cross(tyFr...
[ "0.8158247", "0.79657036", "0.7435952", "0.74315816", "0.7299737", "0.72868496", "0.72694314", "0.71360105", "0.7078675", "0.7078675", "0.70284367", "0.7016656", "0.7000404", "0.6888741", "0.68880385", "0.68875504", "0.6853815", "0.67751026", "0.6771664", "0.6739172", "0.6680...
0.0
-1
Adds markdown to the card replacing the variable name in the CardTab template.
def BdEn(YKHO, mWFP: str, mSjq: str) -> hrEX: from mSjq import mSjq as Kj8u YKHO.add_html(mWFP, Kj8u(mSjq)) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I2Yi(YKHO, mWFP: str, uXvl: str) -> hrEX:\n if mWFP not in YKHO._variables:\n raise fokw(f\"{mWFP} is not a valid template variable defined in template: '{YKHO.template}'\", error_code=tKts)\n YKHO._context[mWFP] = uXvl\n return YKHO", "def WeoO(LHvA):\n return JhG_.format(movie_mpaa_ratin...
[ "0.62847894", "0.60884666", "0.5858794", "0.58467823", "0.5783948", "0.5776095", "0.56832", "0.56745595", "0.56577915", "0.55849355", "0.5555136", "0.5481468", "0.54784095", "0.5475017", "0.5456013", "0.5393514", "0.5368244", "0.53554916", "0.5352692", "0.5347909", "0.5343655...
0.7075638
0
Checks to see if user has access to the operation.
def gNjm(oPhP, CBIr): for RXdp in wYvq[oPhP]: if CBIr in ErAh[RXdp]: return (True, RXdp) return (False, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PVSl():\n return CmGq.User().IsAllowed('Regenerate Confirmation', 'Operation')", "def PVSl():\n return CmGq.User().IsAllowed('Rerun Operations STP', 'Application')", "def JL1u(YKHO):\n if Mi51.has_permission('access', YKHO, YKHO.request):\n return True\n else:\n return False", "...
[ "0.8206643", "0.81418514", "0.7909342", "0.77391243", "0.7643392", "0.7621522", "0.7555373", "0.7555373", "0.7554388", "0.75290513", "0.7467002", "0.7444121", "0.7444121", "0.74210167", "0.740273", "0.73987395", "0.73982614", "0.73800915", "0.7366829", "0.7358385", "0.7356648...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, QZI9): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393829", "0.83557564", "0.8296152", "0.8133522", "0.81153053", "0.8100911", "0.8100133", "0.8098902", "0.8098902", "0.80937666", "0.80937666", "0.80937666", "0.80937666", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8067774", "0.80598664", "0.805856...
0.0
-1
Build the Keras model for network, train in and return the Autoencoder object.
def ex5k(YKHO, coIu=False, **B2fa): C0yj = YKHO.build(**B2fa) FLXQ = YKHO.train(C0yj.full_model, **B2fa) return C0yj if not coIu else (C0yj, FLXQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8cN(YKHO):\n if not Hy7s.path.isdir(Hy7s.path.join(YKHO.save_dir, YKHO.name)):\n Hy7s.mkdir(Hy7s.path.join(YKHO.save_dir, YKHO.name))\n YKHO.fitted = False\n else:\n YKHO.fitted = True\n WbAn = X6a0(shape=(YKHO.dimension[0],))\n wNeA = X6a0(shape=(YKHO.dimension[2],))\n ERV...
[ "0.7833315", "0.74402285", "0.7430731", "0.7336053", "0.7317656", "0.72971004", "0.72857994", "0.72686744", "0.7247634", "0.7236579", "0.7095421", "0.70915556", "0.70847577", "0.7016144", "0.69877785", "0.69272923", "0.6909505", "0.68953633", "0.6868876", "0.68514186", "0.684...
0.67285997
31
Show list of users.
def _FVT(): DW23 = mv1M.query.all() return TvZl('user_list.html', users=DW23)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zidE():\n DW23 = mv1M.query.all()\n return TvZl('users.html', users=DW23)", "def zidE():\n ESns = NCls.session.query(mv1M).all()\n return TvZl('users.html', users=ESns)", "def s0TM():\n ESns = UXsa.get_all_users()\n return TvZl('users.html', all_users=ESns)", "def s0TM():\n DW23 = mv...
[ "0.87024087", "0.8689884", "0.8633615", "0.8621271", "0.86019754", "0.85985595", "0.85832936", "0.85663253", "0.8563847", "0.8526153", "0.85121965", "0.84972584", "0.8488131", "0.8488131", "0.8488131", "0.8488131", "0.8488131", "0.8488131", "0.8488131", "0.8488131", "0.848813...
0.8930896
0
Retrieve the RPC API URL for the specified cluster.
def Bjgo(hKn5: Optional[Cluster]=None, mizK: bool=True) -> str: pzVU = GJep.https if mizK else GJep.http if hKn5 is None: return pzVU.devnet return getattr(pzVU, hKn5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dlgx(YKHO):\n ZaX5 = \"--json | jq -r '.console.url'\"\n AXnt = YKHO.ocm_describe(filter=ZaX5)\n if AXnt is None:\n print('Unable to retrieve cluster console url for cluster name {}. EXITING'.format(YKHO.cluster_name))\n HwRy.exit(1)\n return AXnt.strip('\\n')", "def dh1p(hKn5: int)...
[ "0.6409004", "0.63956076", "0.6346578", "0.6251707", "0.6213571", "0.6213571", "0.5990026", "0.5909357", "0.5800438", "0.5777466", "0.57640374", "0.57221544", "0.5612685", "0.55889684", "0.557413", "0.5565076", "0.5548041", "0.55442166", "0.55196303", "0.5484425", "0.5469232"...
0.7915271
0
Gets the name of this Annotation.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aZkD(YKHO) -> str:\n return YKHO.split()[0]", "def WciS(YKHO):\n if YKHO.namespace is None:\n return '*.' + YKHO.name\n elif YKHO.get_level() >= 1 and YKHO.ast_node is not None:\n return '%s\\\\n(%s:%d)' % (YKHO.name, YKHO.filename, YKHO.ast_node.lineno)\n else:\n return YKHO...
[ "0.85412025", "0.74786025", "0.7453444", "0.7394655", "0.72970873", "0.72970873", "0.72970873", "0.72970873", "0.72970873", "0.72970873", "0.72564334", "0.7242122", "0.7242122", "0.7239765", "0.7239765", "0.7232157", "0.7232157", "0.7232157", "0.7232157", "0.7232157", "0.7232...
0.0
-1
Gets the type of this Annotation.
def type(YKHO): return YKHO._type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRu...
[ "0.71019787", "0.71019787", "0.71019787", "0.71019787", "0.71019787", "0.71019787", "0.71019787", "0.7083655", "0.7083655", "0.7075946", "0.7075946", "0.7075946", "0.7069143", "0.7069143", "0.7038626", "0.7029521", "0.70037663", "0.699681", "0.699681", "0.6984962", "0.6955228...
0.68234056
34
Gets the absolute_location of this Annotation. Offset of annotation (milliseconds) from start of recording.
def Y5dz(YKHO): return YKHO._absolute_location
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbd3(YKHO):\n hLRM = YKHO._frame.canvas.origin\n return (YKHO._x + hLRM[0] + YKHO._offset, YKHO._y + hLRM[1] - YKHO._frame.canvas.start_line)", "def vgXP(YKHO):\n return YKHO._offset if YKHO._offset else YKHO.POS_ORIGIN", "def ueuK(YKHO):\n return YKHO.offset", "def vgXP(YKHO):\n return YK...
[ "0.6961335", "0.6826584", "0.6692723", "0.65791804", "0.65584326", "0.65584326", "0.65584326", "0.6556938", "0.65249544", "0.6465501", "0.6436031", "0.6424949", "0.6420465", "0.64183235", "0.6415969", "0.64097816", "0.6407479", "0.6386471", "0.63550866", "0.6311653", "0.63050...
0.7496616
0
Gets the user of this Annotation. User that created this annotation (if any).
def CBIr(YKHO): return YKHO._user
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(YKHO):\n return YKHO.user", "def TKWP(YKHO):\n return YKHO.user", "def TKWP(YKHO):\n return YKHO.user", "def TKWP(YKHO):\n return YKHO.user", "def TKWP(YKHO):\n return YKHO.user", "def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.get_by_id(P6bq['user_id']) if...
[ "0.7811073", "0.7811073", "0.7811073", "0.7738732", "0.7738732", "0.77125436", "0.77125436", "0.77125436", "0.7640793", "0.7640793", "0.7591608", "0.7591608", "0.7591608", "0.7591608", "0.7591608", "0.7591608", "0.7591608", "0.7590174", "0.75756013", "0.7556561", "0.74990517"...
0.7546539
21
Gets the description of this Annotation. Text of annotation.
def JBZA(YKHO): return YKHO._description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KUG7(YKHO):\n return YKHO.description", "def KUG7(YKHO):\n return YKHO.description", "def KUG7(YKHO):\n return YKHO.description", "def KUG7(YKHO):\n return YKHO.description", "def KUG7(YKHO):\n return YKHO.description", "def t5do(YKHO):\n Aofo = YKHO.get_attribute(s6Cf.AttributeIds....
[ "0.77127904", "0.77127904", "0.77127904", "0.77127904", "0.77127904", "0.7663669", "0.76246315", "0.76246315", "0.76246315", "0.76246315", "0.76246315", "0.76246315", "0.76246315", "0.76246315", "0.76246315", "0.76131606", "0.75965255", "0.7594661", "0.75944716", "0.75735754", ...
0.0
-1
Sets the description of this Annotation. Text of annotation.
def JBZA(YKHO, JBZA): YKHO._description = JBZA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AqxA(YKHO, l5Ny):\n YKHO.description = l5Ny", "def JBZA(YKHO, JBZA):\n YKHO._description = JBZA", "def JBZA(YKHO, JBZA):\n YKHO._description = JBZA", "def JBZA(YKHO, JBZA):\n YKHO._description = JBZA", "def JBZA(YKHO, JBZA):\n YKHO._description = JBZA", "def JBZA(YKHO, JBZA):\n YKHO...
[ "0.8168272", "0.7847355", "0.7847355", "0.7847355", "0.7847355", "0.7847355", "0.7847355", "0.7847355", "0.7847355", "0.7847355", "0.7847355", "0.78157675", "0.7815158", "0.7764423", "0.7764423", "0.7764423", "0.7764423", "0.7764423", "0.7764423", "0.7764423", "0.7764423", ...
0.78316003
11
Gets the keyword_name of this Annotation. The word or phrase which is being looked for with speech recognition.
def sJ82(YKHO): return YKHO._keyword_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def peBr(YKHO):\n if len(YKHO.meanings) >= 1:\n return YKHO.meanings[0]", "def peBr(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'keyword')", "def mYWJ(YKHO):\n if YKHO.token[0] == WtT1:\n return wUfe[YKHO.token[1]]\n raise KR7U('Request for keyword when current token is ' + _JJj...
[ "0.7262299", "0.6706706", "0.67024887", "0.646042", "0.64259994", "0.6393596", "0.6327369", "0.6266259", "0.62512445", "0.62049043", "0.60956377", "0.60604286", "0.58328164", "0.5788911", "0.5779921", "0.57519066", "0.5729063", "0.5729063", "0.5716327", "0.5716099", "0.570777...
0.80200046
0
Sets the keyword_name of this Annotation. The word or phrase which is being looked for with speech recognition.
def sJ82(YKHO, sJ82): YKHO._keyword_name = sJ82
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def peBr(YKHO, peBr):\n YKHO._keyword = peBr", "def mGfS(YKHO, mGfS):\n YKHO._keyword_set_name = mGfS", "def cYWq(YKHO, HeLA: str) -> str:\n return HeLA.lower().replace(' ', '_')", "def sJ82(YKHO):\n return YKHO._keyword_name", "def hLhr(YKHO, hLhr):\n YKHO._tag_name = hLhr", "def ye4S(YKH...
[ "0.724554", "0.7154213", "0.65465754", "0.6456632", "0.61682", "0.60596067", "0.60342115", "0.5924524", "0.5886461", "0.5867963", "0.5859992", "0.5813321", "0.5803617", "0.5753373", "0.57519984", "0.5702504", "0.5695896", "0.56211364", "0.56211364", "0.56211364", "0.56147975"...
0.85420185
0
Gets the confidence of this Annotation. Actual confidence that this is an accurate match.
def la9G(YKHO): return YKHO._confidence
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def la9G(YKHO) -> float:\n return YKHO._confidence", "def la9G(YKHO) -> float:\n return YKHO.__confidence", "def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'confidence')", "def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'confidence')", "def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'c...
[ "0.84988356", "0.8481762", "0.8464232", "0.8464232", "0.8464232", "0.8464232", "0.83098394", "0.8212527", "0.8097974", "0.8097974", "0.8097974", "0.8097974", "0.7516499", "0.742976", "0.69969904", "0.69969904", "0.69299996", "0.6591955", "0.65085465", "0.64714587", "0.6461417...
0.8432917
8
Gets the keyword_set_id of this Annotation. A unique identifier for the keyword set to which this spotted keyword belongs.
def bevj(YKHO): return YKHO._keyword_set_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HNpE(YKHO):\n return YKHO._attribute_set_id", "def mGfS(YKHO):\n return YKHO._keyword_set_name", "def bevj(YKHO, bevj):\n YKHO._keyword_set_id = bevj", "def q0EM(YKHO) -> str:\n return qe4Y.get(YKHO, 'target_set_id')", "def xJ8o(YKHO):\n return YKHO._build_set_configuration_id", "def P...
[ "0.7094573", "0.70687795", "0.68521065", "0.6811373", "0.60144573", "0.5981335", "0.5981335", "0.58979017", "0.5877902", "0.5872", "0.5830411", "0.5827323", "0.58039385", "0.5772792", "0.57169527", "0.57047457", "0.5682633", "0.5648291", "0.5564848", "0.554232", "0.55341136",...
0.87745553
0
Gets the time_begin of this Annotation. Beginning time offset of the keyword spot match.
def yWMS(YKHO): return YKHO._time_begin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWox(YKHO) -> h8nf[float]:\n return YKHO._frames[0].timestamp if YKHO._frames else None", "def R4lU(YKHO):\n return hfK9(YKHO.extract_header(YKHO.segments[0], 'Date'))", "def jSV8(YKHO):\n raise NotImplementedError", "def jSV8(YKHO):\n raise NotImplementedError", "def _9an(YKHO):\n retur...
[ "0.6642471", "0.6592102", "0.6556394", "0.6556394", "0.65303916", "0.6499222", "0.6496771", "0.6488899", "0.6466261", "0.6449735", "0.6442103", "0.64136475", "0.64136475", "0.6407437", "0.6407437", "0.64027333", "0.64027333", "0.6395165", "0.638394", "0.6370927", "0.6357683",...
0.71873015
0
Gets the time_end of this Annotation. Ending time offset of the keyword spot match.
def usV_(YKHO): return YKHO._time_end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IElX(YKHO):\n if hasattr(YKHO, '_endtime'):\n return YKHO._endtime\n else:\n return None", "def C7pn(YKHO) -> ITS7:\n return YKHO._endtime", "def wirM(YKHO):\n return YKHO.end", "def NgWO(YKHO):\n return YKHO.endtime", "def wirM(YKHO):\n return YKHO.end_time", "def wir...
[ "0.76808894", "0.76462567", "0.76296055", "0.7623772", "0.76169986", "0.75949776", "0.75949776", "0.75219965", "0.75219965", "0.75219965", "0.75219965", "0.75219965", "0.75219965", "0.75219965", "0.75219965", "0.75212467", "0.75123733", "0.75123733", "0.75123733", "0.75123733",...
0.73392755
38
Gets the keyword_confidence_threshold of this Annotation. Configured sensitivity threshold that can be increased to lower false positives or decreased to reduce false negatives.
def _T9S(YKHO): return YKHO._keyword_confidence_threshold
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _T9S(YKHO, _T9S):\n YKHO._keyword_confidence_threshold = _T9S", "def ZrMi(YKHO) -> float:\n return YKHO.confidence_threshold", "def la9G(YKHO) -> float:\n return YKHO.__confidence", "def la9G(YKHO) -> float:\n return YKHO._confidence", "def la9G(YKHO):\n return YKHO._confidence", "def ...
[ "0.7908682", "0.77622527", "0.6727073", "0.66814333", "0.65279955", "0.65279955", "0.65279955", "0.65279955", "0.6437022", "0.6437022", "0.6437022", "0.6437022", "0.6402383", "0.64000195", "0.63882977", "0.6345552", "0.6313292", "0.6313292", "0.6313292", "0.6313292", "0.62666...
0.88318413
0
Sets the keyword_confidence_threshold of this Annotation. Configured sensitivity threshold that can be increased to lower false positives or decreased to reduce false negatives.
def _T9S(YKHO, _T9S): YKHO._keyword_confidence_threshold = _T9S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _T9S(YKHO):\n return YKHO._keyword_confidence_threshold", "def vm5J(YKHO, gwAu):\n if not 0.0 <= gwAu <= 1.0:\n raise Exception('Threshold {} must be between 0.0 and 1.0')\n YKHO.detection_threshold = gwAu", "def la9G(YKHO, la9G):\n YKHO._confidence = la9G", "def la9G(YKHO, la9G):\n ...
[ "0.7401949", "0.5994919", "0.59291893", "0.59242046", "0.58766615", "0.5848854", "0.58310133", "0.582926", "0.5775913", "0.5763425", "0.5624982", "0.5463563", "0.5434071", "0.54062575", "0.5370026", "0.5309175", "0.5269731", "0.5238405", "0.52292436", "0.51959854", "0.5164975...
0.91093427
0
Gets the agent_score_modifier of this Annotation. A modifier to the evaluation score when the phrase is spotted in the agent channel.
def rZkH(YKHO): return YKHO._agent_score_modifier
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rZkH(YKHO, rZkH):\n YKHO._agent_score_modifier = rZkH", "def O76X(YKHO):\n return YKHO._customer_score_modifier", "def fut_(Emd4):\n return Emd4.Ability[Emd4.get_ability()]['Modifier']", "def fut_(p1kx):\n return (p1kx - 10) / 2", "def LmUU(YKHO):\n return YKHO._agent._total_reward", "...
[ "0.72335136", "0.6433381", "0.59555143", "0.58617944", "0.5667925", "0.5592107", "0.55849963", "0.55643976", "0.5540277", "0.5540277", "0.551594", "0.5511534", "0.54891056", "0.54535156", "0.5440628", "0.5440352", "0.5437453", "0.54288036", "0.54225266", "0.5406171", "0.53960...
0.8670855
0
Gets the customer_score_modifier of this Annotation. A modifier to the evaluation score when the phrase is spotted in the customer channel.
def O76X(YKHO): return YKHO._customer_score_modifier
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O76X(YKHO, O76X):\n YKHO._customer_score_modifier = O76X", "def rZkH(YKHO):\n return YKHO._agent_score_modifier", "def fut_(p1kx):\n return (p1kx - 10) / 2", "def m3Nh(YKHO) -> int:\n return YKHO._customer", "def m3Nh(YKHO):\n return YKHO._customer", "def m3Nh(YKHO):\n return YKHO._...
[ "0.73877317", "0.65934706", "0.5930737", "0.5811786", "0.55361146", "0.55361146", "0.55064136", "0.5466074", "0.5466074", "0.5466074", "0.5466074", "0.5466074", "0.5453537", "0.5451837", "0.53779376", "0.5369375", "0.5367956", "0.5367956", "0.53577787", "0.53577787", "0.53459...
0.8486712
0
Gets the self_uri of this Annotation. The URI for this object
def lmpq(YKHO): return YKHO._self_uri
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zFcP(YKHO):\n return YKHO.raw.get('self')", "def z4dG(YKHO) -> str:\n Aofo = YKHO.get_self_href()\n if Aofo is None:\n raise ValueError(f'{YKHO} does not have a self_href set.')\n return Aofo", "def xSkb(YKHO):\n bD7m = YKHO._getLink(Sy0P)\n assert len(bD7m) > 0, 'Could not determi...
[ "0.8193774", "0.7742892", "0.7477172", "0.74758697", "0.73528093", "0.73528093", "0.73528093", "0.7327437", "0.73231816", "0.730456", "0.7277149", "0.7253999", "0.7253999", "0.7253999", "0.7253999", "0.7239735", "0.7230513", "0.71746516", "0.71730876", "0.71730876", "0.714502...
0.86208856
0
Sets the self_uri of this Annotation. The URI for this object
def lmpq(YKHO, lmpq): YKHO._self_uri = lmpq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmpq(YKHO):\n return YKHO._self_uri", "def zFcP(YKHO):\n return YKHO.raw.get('self')", "def z4dG(YKHO) -> str:\n Aofo = YKHO.get_self_href()\n if Aofo is None:\n raise ValueError(f'{YKHO} does not have a self_href set.')\n return Aofo", "def j8eK(YKHO) -> str:\n return YKHO._uri"...
[ "0.74242616", "0.6900951", "0.6678202", "0.6175667", "0.61704516", "0.6150286", "0.6150286", "0.6150286", "0.61309993", "0.6090287", "0.6057562", "0.6055777", "0.6055777", "0.6053785", "0.6053785", "0.60218704", "0.60060304", "0.59919333", "0.59919333", "0.59919333", "0.59919...
0.8695594
0
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): 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
Make mask tensor containing indices of padded part.
def saPS(Fbjb, fUYa=None, m0Cl=-1): if m0Cl == 0: raise ValueError('length_dim cannot be 0: {}'.format(m0Cl)) if not isinstance(Fbjb, list): Fbjb = Fbjb.tolist() lHmx = int(len(Fbjb)) if fUYa is None: KLk8 = int(max(Fbjb)) else: KLk8 = fUYa.size(m0Cl) V7sn = ht2j....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FPWK() -> ht2j.Tensor:\n return ht2j.tensor([[0, 1, 3, 3], [2, 4, 2, 1], [1, 2, 2, 0], [2, 255, 255, 255]], dtype=ht2j.int)", "def Mi3O(YKHO, input, KeVS):\n b7De = (input != KeVS).unsqueeze(1)\n return b7De", "def JB8t(YKHO, zZcM: Tensor):\n xZIv = (zZcM != YKHO.src_pad_idx).unsqueeze(1).unsqu...
[ "0.7132361", "0.71125203", "0.7055262", "0.6979102", "0.69215524", "0.6836372", "0.680794", "0.6802694", "0.67673177", "0.6764253", "0.66827184", "0.66620094", "0.66620094", "0.66504085", "0.6650218", "0.66321886", "0.6578812", "0.65767986", "0.65767986", "0.65643054", "0.656...
0.60907173
79
Add field 'fieldName' to an existing struct class
def hmom(rV9y, L5mN): ej8u = rV9y.__fieldmap__ if L5mN not in ej8u: ej8u[L5mN] = teP3 = len(ej8u) setattr(rV9y, L5mN, wV0u(L5mN, teP3)) rV9y.__fields__.append(L5mN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FxjZ(Emd4, mWFP, Jyyj):\n setattr(Emd4, mWFP, Jyyj)\n return Emd4", "def B2DT(YKHO, vF49, vXX7):\n YKHO.fields.append((vF49, tjIK(vXX7)))", "def FxjZ(YKHO, mWFP, Jyyj):\n YKHO.base_fields[mWFP] = Jyyj\n YKHO.fields.append(mWFP)", "def FxjZ(YKHO, Jyyj):\n YKHO.fields[Jyyj.name] = Jyyj", ...
[ "0.6804789", "0.66526115", "0.6516202", "0.63910556", "0.6205267", "0.6079254", "0.6074694", "0.6062988", "0.60320556", "0.6007014", "0.596346", "0.59243935", "0.59206724", "0.5901015", "0.5900626", "0.58803755", "0.5840149", "0.5820304", "0.5806097", "0.5804366", "0.58000875...
0.71783924
0
Create from arguments By default, this classmethod is where all the other creation methods "call down" to, so that you can do any validation or conversions. The default implementation just calls 'tuple.__new__' on the '__args' tuple. You should override this with a classmethod that takes the arguments you want, in the ...
def ZnY0(rV9y, *zl2J, **y21l): if y21l: raise TypeError('Invalid keyword arguments for ' + rV9y.__name__) return tuple.__new__(rV9y, zl2J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BdN0(Emd4, *qIxc, **B2fa):\n for YRbF, ATUZ in enumerate(qIxc):\n qIxc[YRbF] = ya19.py2ro(ATUZ)\n for G1Hx in B2fa:\n B2fa[G1Hx] = ya19.py2ro(B2fa[G1Hx])\n Ylbp = Emd4(Emd4.contructor)(*qIxc, **B2fa)\n return Ylbp", "def EWBr(YKHO) -> tuple[object, ...]:\n raise NotImplementedErr...
[ "0.68219197", "0.64729786", "0.64083034", "0.6363031", "0.63378894", "0.63355327", "0.6323726", "0.6288792", "0.62585825", "0.62226415", "0.6142387", "0.6057383", "0.6052659", "0.603501", "0.60310906", "0.60200566", "0.60114586", "0.5932156", "0.5861919", "0.58102894", "0.578...
0.66854674
1
Convert sparse matrix to tuple representation.
def nPep(On0F): def EV8W(RsfQ): if not H4yH.isspmatrix_coo(RsfQ): RsfQ = RsfQ.tocoo() jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose() hkxX = RsfQ.data ROpF = RsfQ.shape return (jNOo, hkxX, ROpF) if isinstance(On0F, list): for YRbF in range(len(On...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPep(On0F):\n\n def EV8W(RsfQ):\n if not H4yH.isspmatrix_coo(RsfQ):\n RsfQ = RsfQ.tocoo()\n jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()\n hkxX = RsfQ.data\n ROpF = RsfQ.shape\n return (jNOo, hkxX, ROpF)", "def nPep(On0F):\n\n def EV8W(RsfQ):\n ...
[ "0.85558724", "0.82866716", "0.8280783", "0.82645863", "0.82645863", "0.82645863", "0.82645863", "0.82645863", "0.82645863", "0.82645863", "0.82645863", "0.82645863", "0.82645863", "0.82525605", "0.82514536", "0.8240027", "0.82272243", "0.82272243", "0.82272243", "0.82272243", ...
0.82518
14
Symmetrically normalize adjacency matrix.
def ujN0(eQUr): eQUr = H4yH.coo_matrix(eQUr) mJjf = oyIN.array(eQUr.sum(1)) tvzN = oyIN.power(mJjf, -1).flatten() tvzN[oyIN.isinf(tvzN)] = 0.0 hEeC = H4yH.diags(tvzN) return hEeC.dot(eQUr).tocoo()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = H4yH.diags(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo()", "def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatte...
[ "0.79748905", "0.78841347", "0.78669816", "0.78669816", "0.78590506", "0.7824809", "0.7818386", "0.7787256", "0.77343863", "0.77217567", "0.77149534", "0.77057743", "0.7697704", "0.7697704", "0.7697704", "0.7697704", "0.7697704", "0.7697704", "0.7697704", "0.7697704", "0.7697...
0.76950645
26
Symmetrically normalize adjacency matrix.
def UaQj(eQUr): eQUr = H4yH.coo_matrix(eQUr) mJjf = oyIN.array(eQUr.sum(1)) tvzN = oyIN.power(mJjf, -0.5).flatten() tvzN[oyIN.isinf(tvzN)] = 0.0 hEeC = H4yH.diags(tvzN) return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = H4yH.diags(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo()", "def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatte...
[ "0.79748905", "0.78841347", "0.78669816", "0.78669816", "0.78590506", "0.7824809", "0.7818386", "0.7787256", "0.77343863", "0.77217567", "0.77149534", "0.77057743", "0.7697704", "0.7697704", "0.7697704", "0.7697704", "0.7697704", "0.7697704", "0.7697704", "0.7697704", "0.7697...
0.0
-1
Define the function in terms of x to return some value
def LVAh(YKHO): exwG = YKHO.calcProfile() WKvO = YKHO.x + YKHO.qoff EhIg = 6.62607004e-34 * 299792458.0 * 10000000000.0 / YKHO.E / 1000.0 / 1.60217662e-19 dqov, CYjz = XyDl(WKvO, EhIg, YKHO.__d__, YKHO.__rho__, YKHO.__beta__) if YKHO.rrf > 0: lESs = [YKHO.params['__rho__000'].value, YKHO.par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZZSa(eeYG):\n return 2 * eeYG + 1", "def eHNT(WKvO):\n return WKvO ** 2 + 1", "def eHNT(WKvO):\n return WKvO", "def eHNT(WKvO):\n return WKvO ** 2 + 1", "def eHNT(WKvO):\n return WKvO ** 2 + 1", "def eHNT(WKvO):\n return WKvO * WKvO", "def Zmkp(YKHO, WKvO):\n return YKHO.f(WKvO...
[ "0.7853826", "0.77868485", "0.77810216", "0.7724479", "0.7724479", "0.7694795", "0.76489586", "0.76245266", "0.7608383", "0.75921434", "0.75921434", "0.75502986", "0.75125515", "0.7439504", "0.74096066", "0.73597246", "0.7352435", "0.73419493", "0.7257273", "0.7257273", "0.72...
0.0
-1
Creates a spark session connecting to the master node and adds necessary packages.
def Yu9h(): ujem = lBG2.builder.master('spark://spark-master:7077').appName('cities_processor').config('spark.jars.packages', 'org.apache.hadoop:hadoop-aws:2.7.0').getOrCreate() return ujem
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yu9h():\n return lBG2.builder.appName('Sales processor').master('local[*]').getOrCreate()", "def Yu9h():\n ujem = lBG2.builder.config('spark.jars.packages', 'org.apache.hadoop:hadoop-aws:2.7.0').appName('Data Lake Sparkify').getOrCreate()\n return ujem", "def Yu9h():\n ujem = lBG2.builder.confi...
[ "0.7741013", "0.7721394", "0.7676988", "0.7676988", "0.76273334", "0.7614042", "0.7608431", "0.75905126", "0.75880474", "0.75504196", "0.75432914", "0.75374055", "0.75374055", "0.75374055", "0.75374055", "0.75374055", "0.75374055", "0.75374055", "0.75374055", "0.75374055", "0...
0.77619904
0
Return a dict containing all tags under 'product/stage' from Consul.
def IHd5(YNbL, Lx3t): H5ew = Lx3t + '/stage/' return mexE(YNbL, H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO, EtM5):\n cfbQ = []\n dJ1p = []\n p8BF = YKHO.environment.shotdirectory(show=YKHO.environment.SHOW, seq=YKHO.environment.SEQ, shot=YKHO.environment.SHOT)\n for q5sG in YKHO.fileTypes():\n Y9PO = '_st%s' % EtM5\n jgxC = '*%s*%s' % (Y9PO, q5sG)\n acAb = Hy7s.path.join(p...
[ "0.64201313", "0.61863923", "0.59669656", "0.5818955", "0.5783323", "0.56877786", "0.5620544", "0.56052625", "0.55611205", "0.55611205", "0.55611205", "0.55611205", "0.55611205", "0.55611205", "0.55611205", "0.55611205", "0.55611205", "0.55611205", "0.55611205", "0.55611205", ...
0.665153
0
Returns true if the goal facet as seen from the viewpoint is collision free.
def hn6W(gCpJ, BuJL, Csk6, E3Ky, u8R3): exwG = E3Ky.shape[0] XP5J = oyIN.zeros((exwG, 3)) a1PO = oyIN.zeros(exwG) for YRbF in range(exwG): vH1b = oyIN.dot(E3Ky[YRbF, 0] - BuJL, u8R3[YRbF]) a1PO[YRbF] = vH1b / oyIN.dot(Csk6, u8R3[YRbF]) if a1PO[YRbF] > 0: XP5J[YRbF] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r0FL(YKHO):\n return YKHO._ballPosition[0] > YKHO._allowedBallX[1] and XTiz.abs(YKHO._ballPosition[1]) <= 0.5 * YKHO._SP['goal_width']", "def Yprr(YKHO):\n for RpU_ in YKHO.cube.values():\n if len(Pusg(lambda WKvO, LVAh: WKvO | LVAh, map(set, RpU_))) != 1:\n return False\n return T...
[ "0.7004833", "0.6775282", "0.67042285", "0.67007226", "0.66931283", "0.6649063", "0.66198945", "0.6584848", "0.6568574", "0.6563656", "0.6531717", "0.6524307", "0.64648265", "0.6444459", "0.64441746", "0.64272577", "0.64226395", "0.64139664", "0.6402101", "0.6392047", "0.6380...
0.0
-1
Creates a new Query object from input.
def V8Ck(Emd4, NArs, **G8iJ): if isinstance(NArs, Emd4): return _qLf(NArs) elif isinstance(NArs, dict): G8iJ.update(**NArs) if Emd4 is IESR: if 'bbox' in NArs or 'start_range' in NArs or 'end_range' in NArs: return b4hG(**G8iJ) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJUI(YKHO, QePW: RequestInterface):\n zEKB = QePW.get_request_parameters()\n return YKHO.command.from_json(zEKB)", "def xDcj(Emd4):\n return Emd4().new_query()", "def eLpg(Emd4, mh5P, xDcj):\n EcVT = _aLO(mh5P)\n xDcj = efPJ(xDcj)\n if not xDcj:\n mh5P.raiseError('Error: Incomplete...
[ "0.73218304", "0.7317338", "0.69921327", "0.68561316", "0.6853457", "0.6852786", "0.6852786", "0.6756853", "0.673573", "0.6703543", "0.6695412", "0.666416", "0.6619649", "0.6592563", "0.6585697", "0.6539513", "0.6539513", "0.6521647", "0.64839554", "0.64781636", "0.6477681", ...
0.6151125
49
Ensure the input text is an existing file path.
def O2bA(cSAc): w88k('input config file: {}'.format(cSAc)) VqRE = GkAb(cSAc).expanduser() if not VqRE.exists(): raise j1Jz.ArgumentTypeError('The configuration file must exist. Use --help-config to see how to configure the Kitty Theme Changer.') return VqRE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiGg(YKHO):\n zOGz = YKHO.folder_path_line.text().strip()\n if not SMhQ.exists(zOGz):\n Khbd = fEpK.QCriticalBox()\n Khbd.setText('Path does not exists')\n Khbd.setWindowTitle('File Error')\n Khbd.setDetailedText('The following path does not exists on disk:\\n%s' % zOGz)\n ...
[ "0.6706451", "0.6706451", "0.6668689", "0.6604047", "0.6444167", "0.6444167", "0.643302", "0.6431247", "0.642628", "0.64232373", "0.63920546", "0.637556", "0.6374835", "0.63596964", "0.63596964", "0.6336734", "0.633549", "0.6323151", "0.63187253", "0.63179547", "0.6305481", ...
0.66278607
3
Initialize this Action object.
def FIMM(YKHO, xsZ2, e1vZ, **B2fa): super(Lzj4, YKHO).__init__(xsZ2, e1vZ, nargs=0, default=False, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, XeOP):\n YKHO.action = XeOP", "def FIMM(YKHO, XeOP):\n YKHO['Action'] = XeOP", "def FIMM(YKHO, XeOP):\n YKHO.action = XeOP", "def Hoxq(YKHO):\n return YKHO.__actionMgr.Initialize()", "def FIMM(YKHO, GPtr):\n super().__init__(GPtr)\n YKHO.action = None", "def GN4h(YKHO):\n...
[ "0.7695497", "0.7662502", "0.7647329", "0.7620227", "0.7403373", "0.7344981", "0.7294661", "0.72719336", "0.72519714", "0.72107226", "0.71701145", "0.71553814", "0.7098421", "0.7086006", "0.708326", "0.7034226", "0.703029", "0.69725037", "0.6970765", "0.6924232", "0.68963933"...
0.0
-1
get the positions of number of bags in the word list
def ph9w(V22M: List[str]) -> x1iM[int]: YRbF = 0 oeNL = [] for GIN8 in V22M: try: int(GIN8) oeNL.append(YRbF) except ValueError: pass YRbF += 1 return oeNL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W6mq(inR8: str):\n FA7h = NCTe[inR8]\n wjRY = 1\n WEaY = ZbWC.compile('(\\\\d+) ([^.]*)\\\\.?$')\n print(f'{inR8}: {FA7h}')\n for D79s in FA7h:\n if 'no other' in D79s:\n return 1\n kUBT = WEaY.match(D79s)\n FGW3 = int(kUBT[1])\n qfpW = kUBT[2]\n bJY...
[ "0.6776944", "0.6612677", "0.660836", "0.65914446", "0.63192475", "0.63002837", "0.6257143", "0.615675", "0.6144283", "0.6136212", "0.6066925", "0.6059787", "0.60448605", "0.6042844", "0.602907", "0.6018423", "0.601352", "0.60084623", "0.59735394", "0.5960353", "0.59267676", ...
0.64503413
4
add rd.val = rs.val + rt.val
def H2v5(Zohj: Registry, H0q3: Registry, QZcN: Registry) -> None: if Fv2L.DOLOG: print('add ${} ${} ${}'.format(Zohj.name, H0q3.name, QZcN.name)) Zohj.val = H0q3.val + QZcN.val
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K7GD(YKHO, Elif):\n return Elif + YKHO.value", "def K7GD(YKHO, Mkmy):\n return YKHO.__add__(Mkmy)", "def Z4cV(KCHu, z1Rg):\n if hasattr(z1Rg, 'getVal'):\n z1Rg = z1Rg.getVal()\n return z1Rg + KCHu.getVal()", "def K7GD(YKHO, Elif):\n Aofo = YKHO + Elif\n return Aofo", "def K7GD(...
[ "0.70550966", "0.69841367", "0.6977063", "0.6886368", "0.68486047", "0.677357", "0.67432207", "0.67432207", "0.67432207", "0.67432207", "0.67432207", "0.67432207", "0.67432207", "0.67148626", "0.67110026", "0.6707806", "0.66831326", "0.6633204", "0.6630699", "0.66204953", "0....
0.716492
0
Add a card to the deck
def lACn(YKHO, dxhl): if isinstance(dxhl, F1Hz): if not o2VL(dxhl): YKHO.cards.append(dxhl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lACn(YKHO, nf_0):\n YKHO.cards.append(nf_0.draw_card())", "def lACn(YKHO, dxhl: Card) -> None:\n YKHO._deck.append(dxhl)", "def lACn(YKHO, dxhl):\n if isinstance(dxhl, F1Hz):\n return YKHO.decks.append(dxhl)\n else:\n raise TypeError('card must be a Card object')", "def H2v5(YKH...
[ "0.8828897", "0.8797391", "0.8780908", "0.87723315", "0.87723315", "0.876536", "0.87348604", "0.8731824", "0.8731791", "0.8723826", "0.8723826", "0.8723826", "0.8723826", "0.8723826", "0.8723826", "0.8723826", "0.8723826", "0.8723826", "0.8723826", "0.8713455", "0.8707577", ...
0.8090256
45
Scales, crops, and normalizes a PIL image for a PyTorch model, returns an Numpy array
def Hmm2(VfIt): LNo8 = hnIv.open(VfIt) TVTK, H2v2 = LNo8.size zNig = (256, 256) if TVTK > H2v2: dMYj = float(TVTK) / float(H2v2) GkzL = dMYj * zNig[0] LNo8 = LNo8.resize((zNig[0], int(pBSp(GkzL))), hnIv.ANTIALIAS) else: dMYj = float(H2v2) / float(TVTK) b4Xl = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAhN(KAOR):\n daQb = Ymkf.Compose([Ymkf.ToTensor(), Ymkf.Normalize((0.1307,), (0.3081,))])\n J83E = WR89.b64decode(KAOR['image']['b64'])\n LNo8 = hnIv.open(xDSY.BytesIO(J83E))\n vhpA = daQb(LNo8).numpy()\n print(vhpA.shape)\n return vhpA", "def okCT(YKHO, LNo8):\n if not isinstance(LNo8,...
[ "0.7040547", "0.70142585", "0.7009017", "0.69208246", "0.69123685", "0.69058555", "0.6856984", "0.68557376", "0.6845798", "0.68229234", "0.6777775", "0.67643505", "0.6705681", "0.66480225", "0.6627521", "0.66066664", "0.6574146", "0.65483403", "0.6537623", "0.65342087", "0.65...
0.64608276
26
Semantics of arithmetic expressions Implements Table 1.2 from the book.
def wJcC(tTpl, KCHu): if type(tTpl) is aour: return tTpl.value elif type(tTpl) is cf81: return rxEN if m7W4(tTpl.a1, KCHu) == m7W4(tTpl.a2, KCHu) else i_Or elif type(tTpl) is JHwn: return rxEN if m7W4(tTpl.a1, KCHu) <= m7W4(tTpl.a2, KCHu) else i_Or elif type(tTpl) is Oc_p: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q3ol(YKHO):\n wEf2 = YKHO.calc.eval('(1 + 1) * 4')\n YKHO.assertEqual(wEf2, 8)", "def aMQE():\n return IYpI(Nd3T(), WsOa, BlEz)", "def x4Kj(YKHO, VN2L):\n try:\n return eval(VN2L)\n except:\n return None", "def QlZ5(YKHO, VN2L):\n if YKHO.RE_MATH.search(VN2L):\n ret...
[ "0.6721869", "0.6720946", "0.6654691", "0.6647152", "0.6577937", "0.65589374", "0.6526014", "0.65041894", "0.65041894", "0.64611435", "0.6450906", "0.6450302", "0.64466584", "0.6444641", "0.6436325", "0.643614", "0.64216805", "0.64135236", "0.6364261", "0.6356258", "0.6347376...
0.0
-1
Return a textual representation of this dataset.
def wHJl(YKHO): return '<Dataset at %s>' % YKHO.data_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO) -> str:\n FB6H = 'Dataset(' + repr(YKHO.data) + ', \\ndt = ' + repr(YKHO.dt)\n FB6H += ', t_init = ' + repr(YKHO.t_init) + ', \\nis_scaled = ' + repr(YKHO.is_scaled)\n FB6H += ', \\ndescriptions = ' + repr(YKHO.descriptions) + ', \\nc_inds = ' + repr(YKHO.c_inds)\n FB6H += ', \\np_inds =...
[ "0.8192674", "0.80663586", "0.7774065", "0.77502704", "0.77500904", "0.76867115", "0.76867115", "0.76867115", "0.76867115", "0.7607448", "0.75695914", "0.75695914", "0.75695914", "0.75686616", "0.75078285", "0.7478959", "0.7478959", "0.73562396", "0.73407274", "0.72776806", "...
0.7290215
19
Return a textual representation of the dataset state.
def QTBn(YKHO): if YKHO.complete(): return 'complete' elif YKHO.has_data_file() and (not YKHO.has_md5_file()): return 'missing md5sum' elif YKHO.has_md5_file() and (not YKHO.has_data_file()): return 'missing data file' else: return 'missing'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n QTBn = ''\n QTBn += '\\nname: {}'.format(YKHO.name)\n QTBn += '\\nis_plotting: {}'.format(YKHO.is_plotting)\n QTBn += '\\ncan_plot: {}'.format(YKHO.can_plot)\n QTBn += '\\nline_artist: {}'.format(YKHO.line_artist)\n return QTBn", "def zAg0(YKHO):\n QTBn = []\n QTBn.appen...
[ "0.7704636", "0.7596789", "0.7596299", "0.74585575", "0.73603404", "0.7269944", "0.72326255", "0.7209767", "0.71915746", "0.7157747", "0.7151185", "0.70619845", "0.7050116", "0.7006747", "0.6991181", "0.6988219", "0.698755", "0.6978464", "0.69617116", "0.69498336", "0.6945322...
0.0
-1
Given a Dataset object, return a matching Product resource at the Productstatus server, or None if no matching product is found.
def LhuW(YKHO, __n6): mWFP = __n6.name() umWR = YKHO.productstatus.product.objects.filter(source_key=mWFP, source=YKHO.productstatus.institution[YKHO.productstatus_source_key]) rI6D = "ECMWF stream name '%s'" % mWFP if umWR.count() == 0: raise gqNW.exceptions.ECReceiveProductstatusException('Pro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u0rk(YKHO, __n6):\n Lx3t = YKHO.get_productstatus_product(__n6)\n SGPK = {'product': Lx3t, 'reference_time': __n6.analysis_start_time(), 'version': __n6.version()}\n return YKHO.productstatus.productinstance.find_or_create(SGPK)", "def pEJL(id, lxmS):\n for Lx3t in lxmS:\n if Lx3t['id'] ==...
[ "0.678251", "0.66138095", "0.6429966", "0.6344771", "0.62911415", "0.62494034", "0.60981447", "0.6089918", "0.6084655", "0.6075032", "0.6053627", "0.600382", "0.5985266", "0.59792393", "0.5967853", "0.5967832", "0.5966986", "0.5935124", "0.5911625", "0.5872072", "0.585441", ...
0.7842619
0
Return a matching ProductInstance resource according to Product, reference time and version.
def u0rk(YKHO, __n6): Lx3t = YKHO.get_productstatus_product(__n6) SGPK = {'product': Lx3t, 'reference_time': __n6.analysis_start_time(), 'version': __n6.version()} return YKHO.productstatus.productinstance.find_or_create(SGPK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hPlW(YKHO, KAOR):\n if YKHO._product_version is None:\n YKHO._product_version = pLZ5.objects.filter(id__in=KAOR.lines.values_list('product_version', flat=True)).first()\n return YKHO._product_version", "def ZhLJ(YKHO, BqeW):\n for Lx3t in YKHO.products:\n if Lx3t[0] == BqeW:\n ...
[ "0.6751388", "0.6281136", "0.6209173", "0.59797156", "0.57907194", "0.5779963", "0.5675873", "0.56444675", "0.56444675", "0.56298155", "0.5628123", "0.56161416", "0.56158036", "0.560504", "0.55995095", "0.5527853", "0.54779947", "0.5475238", "0.54542416", "0.54337466", "0.541...
0.6928503
0
Refresh the list of messages that match the set filters.
def uUrB(YKHO): YKHO.filter_panel.msg_listCtrl.DeleteAllItems() YKHO.records = YKHO.getRecords() for YRbF, AIu6 in enumerate(YKHO.records): LSgh = YKHO.filter_panel.msg_listCtrl.InsertItem(YRbF, AIu6['dt'].strftime(KpLH.DATETIME_LOG_FMT)) YKHO.filter_panel.msg_listCtrl.SetItem(YRbF, 1, AIu6....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q2Xq(YKHO):\n YKHO._messages = [(hOrn, tO9_) for hOrn, tO9_ in YKHO._messages if all([ZWq1(tO9_) for ZWq1 in dRtA])]", "def V0Ud(YKHO):\n return", "def UoOt(YKHO, Ol8d):\n YKHO.message = Ol8d\n for x0hE in YKHO.clients:\n x0hE.refresh()", "def EkhD(YKHO):\n pass", "def V0Ud(YKHO):...
[ "0.71034473", "0.6586976", "0.6448128", "0.6368433", "0.63683873", "0.63683873", "0.62660086", "0.61551857", "0.61081904", "0.6105741", "0.6105741", "0.6105741", "0.6105741", "0.6105741", "0.6105741", "0.6105741", "0.6105741", "0.6105741", "0.6105741", "0.6105741", "0.6105741...
0.68633103
1
Initialize scispacy nlp object and virus terms to the vocabulary.
def rrvF(g9jK: str, B7QX: str='en_core_sci_lg'): K9NE = CNQv.load(B7QX, disable='parser') h0WD = QU1n(resolve_abbreviations=True) K9NE.add_pipe(h0WD) eeOT = taIo(K9NE) K9NE.add_pipe(eeOT) UDvL = K9NE('Positive-sense single‐stranded ribonucleic acid virus, subgenus sarbecovirus of the genus Betac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, K9NE: Language, tw0j: bool):\n YKHO.nlp = K9NE\n YKHO.is_spacy_3 = tw0j", "def DbxN():\n global nlp\n K9NE = CNQv.load('en_core_web_md')", "def FIMM(YKHO, NHn2: Generator[str, None, None]):\n YKHO.nlp = CNQv.load('en_core_web_sm')\n YKHO.nlp.add_pipe(YKHO.nlp.create_pipe('sente...
[ "0.69148237", "0.68386334", "0.6631638", "0.64841247", "0.63368076", "0.6264147", "0.6245688", "0.61862594", "0.6172855", "0.61576957", "0.61420983", "0.61420983", "0.61420983", "0.6119992", "0.6080093", "0.6060233", "0.5983845", "0.59808314", "0.5881054", "0.5868596", "0.586...
0.77518153
0
Return the contents of gender dictionary as a list of strings This may seem redundant as it contains 2 entries but is necessary to ensure translated versions are correctly checked against.
def IoKf(YKHO): hR7O = pp0i.__iter__() uvH_ = [] xWiE = True while xWiE: try: EE3v = hR7O.next() uvH_.append(EE3v.title) except StopIteration: xWiE = False return uvH_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L3jt(YKHO):\n return YKHO.base.get('gender', [])", "def Vng4(YKHO):\n return dict(YhYs.GENDER_CHOICES)[YKHO.gender]", "def EE3v():\n return (('Male', 'Male'), ('Female', 'Female'), ('Other', 'Other'))", "def IoKf(FjSf):\n if FjSf:\n if 'm' in FjSf:\n yield 'm'\n if 'f...
[ "0.67726624", "0.6627665", "0.63981736", "0.6323307", "0.62298965", "0.62202144", "0.6199887", "0.6192573", "0.6182333", "0.61605716", "0.61605716", "0.6096026", "0.6074843", "0.5965606", "0.5947711", "0.5916236", "0.58973897", "0.5880459", "0.5832861", "0.57318884", "0.56935...
0.74353665
0
Helper function to take a dictionary and flatten it. Keyvalue pairs in nested dicts are being translated to toplevel keyvalue pairs, where the nested keys are joined.
def fE84(DmbV, eI0z=lambda jzdc, Fg_i: '.'.join([jzdc, Fg_i])): for G1Hx in DmbV.keys(): if '.' in G1Hx: raise ValueError("There is a '.' in %s. This will cause problems, as '.' is part of the MongoDB search syntax." % G1Hx) P8T4 = {G1Hx: Ty9i for G1Hx, Ty9i in DmbV.iteritems() if type(Ty9i)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(Csk6: dict):\n\n def nDBw(Csk6: dict, PZrZ=False):\n for H5ew, wEf2 in Csk6.items():\n if isinstance(wEf2, dict):\n if PZrZ:\n H5ew = PZrZ + '.' + H5ew\n nDBw(wEf2, H5ew)\n elif isinstance(wEf2, list):\n for YR...
[ "0.80975217", "0.79937565", "0.7946586", "0.786654", "0.7850099", "0.7785252", "0.7777095", "0.7749486", "0.7684406", "0.7665646", "0.766393", "0.7663783", "0.7642696", "0.76407504", "0.7635462", "0.7611156", "0.75872016", "0.75812155", "0.7562099", "0.75617623", "0.75369847"...
0.7906513
3
Build an EventContext structure for a nonoutlier event. (for an outlier, call EventContext.for_outlier directly) This works out what the current state should be for the event, and generates a new state group if necessary.
async def compute_event_context(YKHO, tvqc: EventBase, oRug: Optional[StateMap[str]]=None, bQZD: Optional[bool]=None) -> Iv59: vIgl = await YKHO.calculate_context_info(event=tvqc, state_ids_before_event=oRug, partial_state=bQZD) return await vIgl.persist(tvqc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def calculate_context_info(YKHO, tvqc: EventBase, oRug: Optional[StateMap[str]]=None, bQZD: Optional[bool]=None, zQgu: Optional[int]=None) -> tiwu:\n assert not tvqc.internal_metadata.is_outlier()\n if oRug:\n urP2 = None\n b4AV = None\n assert bQZD is not None\n else:\n ...
[ "0.5507966", "0.5134592", "0.5066353", "0.4835534", "0.4824269", "0.47967684", "0.4761902", "0.47396797", "0.46947768", "0.46752086", "0.46716312", "0.46328777", "0.46322405", "0.4624076", "0.46216166", "0.45986122", "0.45914125", "0.4564886", "0.45507213", "0.45382684", "0.4...
0.56093115
0
Report metrics on the biggest rooms for state res
def yDdy(YKHO, ubPG: Callable[[_StateResMetrics], Any], pO5v: str, fYW4: Counter) -> None: mgpA = 10 if not JZLW.isEnabledFor(G9jH.DEBUG): mgpA = 1 DumB = YKHO._state_res_metrics.items() UOyk: x1iM[AzJI[str, OM0Y]] = _eVy.nlargest(mgpA, DumB, key=lambda YRbF: ubPG(YRbF[1])) JZLW.debug('%i bi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ubmp(YKHO, rvsq, MJWj):\n Hqoa = -HwRy.maxsize\n for d6pt in range(rvsq, MJWj + 1):\n d6pt = YKHO.get_tree_index(d6pt)\n if YKHO.tree[d6pt] > Hqoa:\n Hqoa = YKHO.tree[d6pt]\n return Hqoa", "def mYlK():\n return '{}\\n'.format(sum((1 for WKvO in ujem.rooms.list())))", "d...
[ "0.5970667", "0.5830863", "0.5658574", "0.5538224", "0.5451195", "0.5432812", "0.5422074", "0.5419692", "0.5330576", "0.5322426", "0.53016555", "0.5289473", "0.528759", "0.5287554", "0.5281316", "0.5273089", "0.5270283", "0.5255755", "0.5253537", "0.5244412", "0.5237231", "...
0.65448797
0
Given sets of state events figure out the auth chain difference (as per state res v2 algorithm). This equivalent to fetching the full auth chain for each set of state and returning the events that don't appear in each and every auth chain.
def tqB0(YKHO, cNcC: str, _G6u: List[Set[str]]) -> ld92[fHNa[str]]: return YKHO.store.get_auth_chain_difference(cNcC, _G6u)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O7PE(FST3, sWCQ) -> list:\n yk4i = []\n for QTBn in FST3:\n if QTBn not in sWCQ:\n yk4i.append(QTBn)\n return yk4i", "def mxZ7(DghZ: Iterable[State], TyOW: Iterable[State], rTIb: Iterable[str]) -> set[str]:\n DhQU = set()\n for Csk6 in TyOW:\n H0zo = [Z9rn for Z9rn in ...
[ "0.6034655", "0.5415931", "0.54114246", "0.5345766", "0.5337812", "0.53188246", "0.5267499", "0.5267499", "0.52456266", "0.52456266", "0.52060336", "0.52057755", "0.5194595", "0.5189239", "0.51512986", "0.51479", "0.51451254", "0.5138934", "0.5105111", "0.5104661", "0.5099147...
0.6899979
0
Returns random value in 'quidditch', which is the smallest unit for MagicCoin.
def ym2E(r3Kg, fugR): return int(tuKI.randint(r3Kg, fugR))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bjhZ(YKHO, WKvO):\n Fg_i = 1.0 + YKHO.q_pow\n vexM = (WKvO * (1.0 - YKHO.q_min ** Fg_i) + YKHO.q_min ** Fg_i) ** (1.0 / Fg_i)\n return vexM", "def I0dO(YKHO) -> int:\n return tuKI.randint(0, 3)", "def zlaX():\n return RjKZ('quotes.json', 'quote')", "def UIrZ(YKHO) -> int:\n return tuKI....
[ "0.6479196", "0.625668", "0.6223201", "0.61914325", "0.6137122", "0.6102458", "0.6097274", "0.59749997", "0.5938815", "0.5916701", "0.5893608", "0.58485305", "0.58473426", "0.58174616", "0.578547", "0.5768715", "0.5751934", "0.5748563", "0.57434064", "0.57383186", "0.57336426...
0.0
-1
Test creation of new item by POSTing.
def DFc8(YKHO): pB3N = {'name': 'Macbook Air', 'type': 'TRADE', 'quantity': '1', 'price': '', 'description': 'Lightweight lappy.', 'reason': '', 'is_draft': 'y', 'uuid': str(qxeD.uuid4())} QePW = VNUm({}, method='POST', body=qQXR.dumps(pB3N)) QePW.registry = YKHO.config.registry geh0 = DumB(QePW) YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J8bk(YKHO):\n YKHO.client.post('/lists/new', data={'item_text': 'A new list item'})\n YKHO.assertEqual(kLxY.objects.count(), 1)\n kr8D = kLxY.objects.first()\n YKHO.assertEqual(kr8D.text, 'A new list item')", "def AWhd(YKHO):\n ZfUD = {'name': 'bag'}\n geh0 = YKHO.app.post('/items', data=qQ...
[ "0.8554237", "0.8212173", "0.82079893", "0.8108775", "0.7959915", "0.788145", "0.7876482", "0.7810364", "0.77925295", "0.7767258", "0.7655292", "0.76178753", "0.7610706", "0.76021445", "0.75966555", "0.75964916", "0.7549085", "0.75031245", "0.7478089", "0.7473376", "0.7471987...
0.76718295
10
Test that when POSTing malformed payload, it'll raise HTTPBadRequest.
def Me4l(YKHO): pB3N = {'name': '', 'type': '', 'quantity': '', 'price': '', 'description': '', 'reason': '', 'is_draft': '', 'uuid': ''} QePW = VNUm({}, method='POST', body=qQXR.dumps(pB3N)) QePW.registry = YKHO.config.registry YKHO.assertRaises(ja9q, DumB, QePW) YKHO.assertEqual(GhOX.query(kLxY).c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_request_invalid_payload(YKHO):\n QePW = YKHO.get_request(method='POST', content=b'garbage', json_encode=False)\n with YKHO.assertRaises(jA2G.HTTPBadRequest) as Bcwd:\n await YKHO.endpoint.handle_collection(QePW)\n geh0 = Bcwd.exception\n YKHO.assertEqual(400, geh0.status)\n YKH...
[ "0.8284254", "0.7825558", "0.77609795", "0.7748553", "0.7748553", "0.7709866", "0.761099", "0.7556984", "0.7498328", "0.74819684", "0.7459077", "0.7414748", "0.74109924", "0.73813504", "0.73435307", "0.7331796", "0.73303777", "0.7299016", "0.72693205", "0.7263628", "0.726108"...
0.6773804
80
Test updating an item.
def MshN(YKHO): YKHO._create_item_status() pB3N = {'name': 'Macbook Air', 'type': 'TRADE', 'quantity': '1', 'price': '', 'description': 'Lightweight lappy.', 'reason': '', 'is_draft': 'y', 'uuid': str(qxeD.uuid4())} QePW = VNUm({}, method='POST', body=qQXR.dumps(pB3N)) QePW.registry = YKHO.config.regist...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xCG_(YKHO):\n boHx = FyT9()\n ZfUD = UNen(boHx)\n geh0 = ZfUD.put([], qQXR.loads('{ \"id\": 400, \"name\": \"item4\", \"content\": \"after test update\" }'), 4)\n YKHO.assertEqual(geh0.status_code, 204)\n YKHO.assertEqual(len(boHx.all()), 4)\n geh0 = ZfUD.get([], 4)\n YKHO.assertIsNotNone(...
[ "0.8172242", "0.81442696", "0.79999083", "0.79999083", "0.7929636", "0.791392", "0.7901353", "0.7876371", "0.78585696", "0.7847039", "0.78434557", "0.78025603", "0.77408767", "0.77120167", "0.7671502", "0.7611868", "0.7609054", "0.76048166", "0.75247043", "0.7505499", "0.7445...
0.7561694
18
Test that updating nonexistent item fails.
def dPJC(YKHO): pB3N = {'name': 'Macbook Pro', 'type': 'SALE', 'quantity': '5', 'price': '200.00', 'description': 'Lightweight lappy.', 'reason': '', 'is_draft': 'n', 'id': 1} QePW = VNUm({}, method='PUT', body=qQXR.dumps(pB3N)) QePW.registry = YKHO.config.registry QePW.matchdict = {'id': 1} QePW.me...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVgF(YKHO):\n with YKHO.client:\n eOtH = YKHO.token()\n YKHO.create_list('Travel', 'Visit places', eOtH)\n YKHO.create_item('Go_to_Nairobi', '5000', eOtH)\n kr8D = qQXR.dumps({'name': 'Travelling_bag', 'price': '5000'})\n geh0 = YKHO.client.put('/v1/shoppinglist/1/items/56...
[ "0.8204618", "0.79903406", "0.7805749", "0.76598364", "0.7653937", "0.75436544", "0.7537077", "0.7436934", "0.7425501", "0.73905635", "0.73797077", "0.73737264", "0.7346837", "0.73149544", "0.729152", "0.72182727", "0.71809924", "0.7163368", "0.714893", "0.7138528", "0.712091...
0.73982936
9
Test posting images for an item via uuid with invalid image fails.
def bByl(YKHO): YKHO._create_item_status() ZfUD = kLxY(name='iPhone', type='TRADE', quantity=1, description='A smart phone', status=YKHO.draft_status, reason='just because') GhOX.add(ZfUD) GhOX.commit() class DumbMockImage(object): nUeQ = kJm3('image') Ux0P = 'image1.jpg' CH2t =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aI24(YKHO):\n YKHO._create_item_status()\n ZfUD = kLxY(name='iPhone', type='TRADE', quantity=1, description='A smart phone', status=YKHO.draft_status, reason='just because')\n GhOX.add(ZfUD)\n GhOX.commit()\n CH2t = str(qxeD.uuid4())\n p5IW = CdTJ('image1.png')\n eJh7 = '%s.png' % CH2t\n ...
[ "0.8125007", "0.7905835", "0.7590691", "0.74150455", "0.7371538", "0.7313461", "0.7294588", "0.72688144", "0.7225576", "0.7225271", "0.7225271", "0.7213611", "0.71968925", "0.71829563", "0.7162299", "0.7162299", "0.71338415", "0.71051735", "0.71036565", "0.7094001", "0.707425...
0.87746954
0
Set the password of an entry
def LCCo(YKHO, jTXt, qxeD, PxFn): return YKHO.get_bytes(b'PASS', jTXt, qxeD, str(PxFn[0]).encode(), str(PxFn[1]).encode(), str(PxFn[2]).encode(), str(PxFn[3]).encode(), str(PxFn[4]).encode(), str(PxFn[5]).encode())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G3s8(YKHO, tvqc):\n beBk = ceT1(YKHO.drawer, YKHO.drawer.phrases.titles.password)\n if QwHj.OK == beBk.ShowModal():\n R6Hp = HBct.sha1(beBk.GetValue().encode('utf-8'))\n YKHO.config['readonly_password'] = R6Hp.hexdigest()\n beBk.Destroy()", "def jTXt(YKHO, BWXx):\n YKHO._password = ...
[ "0.82152", "0.8043642", "0.8043642", "0.79685515", "0.794522", "0.7938424", "0.7924248", "0.79124933", "0.78628063", "0.7847566", "0.7809593", "0.77835464", "0.77469945", "0.77405745", "0.76367795", "0.76202875", "0.7532995", "0.7518679", "0.7506948", "0.7497848", "0.7479637"...
0.0
-1
Return a float representing the number of errors in the minibatch over the total number of examples of the minibatch ; zero one loss over the size of the minibatch
def UAju(YKHO, LVAh): if LVAh.ndim != YKHO.y_pred.ndim: raise TypeError('y should have the same shape as self.y_pred', ('y', LVAh.type, 'y_pred', YKHO.y_pred.type)) if LVAh.dtype.startswith('int'): return Kt_s.mean(Kt_s.neq(YKHO.y_pred, LVAh)) else: raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D_X7(YKHO, HC_i, N77f=None):\n S4QH = 0\n for ajbO, Ei_1 in HC_i:\n DBcx = YKHO.fprop(ajbO)\n if N77f == None:\n S4QH += YKHO.layers[-1].error(Ei_1)\n else:\n S4QH += N77f(DBcx, Ei_1)\n return S4QH", "def vaCT(hlel, UXqs):\n bGrB, PjQx = hlel[0].max(1)\n...
[ "0.67922467", "0.65985465", "0.6585579", "0.64771014", "0.6414797", "0.6400729", "0.6349279", "0.63392174", "0.629973", "0.62354237", "0.61730796", "0.61574715", "0.61418134", "0.6136439", "0.6105712", "0.6093655", "0.609143", "0.6087934", "0.6076954", "0.60753447", "0.607418...
0.0
-1
Make a fake http.client.HTTPResponse based on a byte stream.
def Yxsy(YKHO, hGN5, jGRS='200 OK', MOPg={}): fRUo = '\r\n'.join(('{}: {}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in MOPg.items())) wOb_ = 'HTTP/1.1 {}\r\n{}\r\n{}'.format(jGRS, fRUo, hGN5) iG42 = X9I1(wOb_.encode('utf8')) geh0 = Xqgu.client.HTTPResponse(iG42) geh0.begin() return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B87b(YKHO, _hkX, F_lk):\n geh0 = oGir()\n geh0.status_code = _hkX.status_code\n if geh0.status_code < 300 and F_lk:\n geh0.body = hPpc(_hkX)\n else:\n geh0.body = _hkX.content\n return geh0", "def r9TG(pmON, bD7m):\n if not Hy7s.path.isfile(pmON):\n raise lW34(f'Could n...
[ "0.6401119", "0.62039536", "0.6163625", "0.602393", "0.59759384", "0.5941244", "0.5941163", "0.5908627", "0.5829363", "0.5734174", "0.57332426", "0.57042533", "0.56392246", "0.56284136", "0.5601109", "0.55841035", "0.55728126", "0.55700535", "0.55638194", "0.5544896", "0.5519...
0.69409776
0
Raise an OSError if the given path doesn't exist.
def UldI(pmON): if not vtfo(pmON): raise OSError('Invalid item path: {}'.format(pmON))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GMXW(pmON: str) -> None:\n YIBE(path=pmON)\n if Hy7s.path.exists(pmON):\n FUJB(d1hN.EEXIST, pmON)", "def H4si(pmON):\n if not Hy7s.path.exists(pmON):\n raise Z07W('The path provided does not exist.')", "def uqTw(pmON: str | None=None, Ol8d: str | None=None) -> None:\n FUJB(d1hN.EN...
[ "0.7997019", "0.78365815", "0.7782319", "0.7761172", "0.72190785", "0.7181517", "0.7166174", "0.70547277", "0.7023905", "0.7022828", "0.69733894", "0.6949097", "0.694082", "0.6931847", "0.6929081", "0.6923882", "0.69164705", "0.68514645", "0.6822097", "0.6765208", "0.6705233"...
0.7454955
4
Raise an OSError if the given path doesn't exist or it is not a file.
def V_ED(pmON): if not Nz4g(pmON): raise OSError('Invalid file path: {}'.format(pmON))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jHgb(pmON):\n if Nz4g(pmON):\n raise OSError('Invalid path, file already exists: {}'.format(pmON))", "def oVbx(pmON):\n if not EFYe(pmON):\n A6qd.error('Path to SVG-File invalid! Make sure the file is placed in the resources-folder')\n raise FileNotFoundError", "def QcvR(pmON):\n...
[ "0.7442681", "0.74115616", "0.7399557", "0.7370548", "0.7250523", "0.7206367", "0.7186006", "0.71768594", "0.71489567", "0.71474224", "0.71053296", "0.70851487", "0.69669443", "0.6928711", "0.6925426", "0.69121855", "0.6909655", "0.69026834", "0.68769306", "0.68718135", "0.68...
0.75496256
0
Raise an OSError if the given path is an existing file.
def jHgb(pmON): if Nz4g(pmON): raise OSError('Invalid path, file already exists: {}'.format(pmON))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GMXW(pmON: str) -> None:\n YIBE(path=pmON)\n if Hy7s.path.exists(pmON):\n FUJB(d1hN.EEXIST, pmON)", "def O2bA(pmON):\n if not Hy7s.path.isfile(pmON):\n raise j1Jz.ArgumentTypeError('No such file or directory: \"%s\"' % pmON)\n return pmON", "def poxP(pmON, AJ5d=ValueError, K1k_='`...
[ "0.7878724", "0.7630976", "0.7582036", "0.7575204", "0.7482431", "0.74760485", "0.7462753", "0.7356253", "0.73518485", "0.73383284", "0.7271071", "0.71834135", "0.7176003", "0.7157946", "0.71557164", "0.7122533", "0.7106647", "0.7086913", "0.7044135", "0.7033809", "0.70076025...
0.7489125
4
Check if a directory of a file exists at the given path.
def vtfo(pmON): return Hy7s.path.exists(pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HzAE(pmON):\n return Hy7s.path.exists(Hy7s.path.dirname(pmON))", "def KO6X(YKHO, pmON: PATH_TYPE) -> bool:\n return bool(YKHO.find_files(pmON, include_files=False))", "def PQkn(eHKs):\n if GkAb(eHKs).is_dir():\n return True\n return False", "def tQBm(YKHO, pmON):\n pmON = pmON.strip...
[ "0.8597584", "0.83700746", "0.8068902", "0.789481", "0.7881442", "0.7853443", "0.7798496", "0.7792695", "0.77789897", "0.7764617", "0.7756142", "0.7751267", "0.77487475", "0.7738344", "0.77082103", "0.769149", "0.76689553", "0.76583713", "0.75947493", "0.75836754", "0.7504176...
0.7173385
50
Filter paths relative to basepath according to the optional predicate function. If predicate is defined, paths are filtered using it, otherwise all paths will be listed.
def QRMi(iGvk, X3TW, lgNN=None): ckRy = [] for PsRC in X3TW: WQbV = Hy7s.path.join(iGvk, PsRC) if lgNN is None or lgNN(WQbV): ckRy.append(WQbV) ckRy.sort() return ckRy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HoZZ(YKHO, quY2=None):\n if YKHO._paths is None:\n YKHO._initPaths()\n return filter(quY2, YKHO._paths)", "def filter(YKHO, lgNN):\n Dyub = ZWYb(lgNN)\n return BTTw(filter(Dyub, YKHO))", "def sZE1(kTwa: Path, WsYz: str, FudG: Optional[Callable[[Path], bool]]=None) -> jd6F[GkAb, None, Non...
[ "0.6383337", "0.59348756", "0.5890604", "0.5747574", "0.56685984", "0.56359935", "0.5630899", "0.5617081", "0.5606069", "0.55197155", "0.5407089", "0.53954035", "0.53354573", "0.525942", "0.5250312", "0.5236883", "0.5213698", "0.51957846", "0.5169755", "0.51435393", "0.514143...
0.78904474
0
Get the directory last modification date.
def V3Rt(pmON): TMek(pmON) jFId = Hy7s.path.getmtime(pmON) for iGvk, iIh5, iumf in Hy7s.walk(pmON): for TLI7 in iIh5: pGQh = Hy7s.path.join(iGvk, TLI7) jFId = max(jFId, Hy7s.path.getmtime(pGQh)) for Ux0P in iumf: VqRE = Hy7s.path.join(iGvk, Ux0P) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TO1Y(YKHO):\n return qcWV.fromtimestamp(YKHO._info.file.mtime)", "def E7Ju(YKHO, pmON):\n return Hy7s.stat(pmON)[8]", "def l4lA(pmON):\n V_ED(pmON)\n jFId = Hy7s.path.getmtime(pmON)\n CHQE = JRYC.datetime.fromtimestamp(jFId)\n return CHQE", "def HO3c(pmON, format='%Y-%m-%d %H:%M:%S'):\n...
[ "0.78713006", "0.7820485", "0.760519", "0.75474787", "0.751343", "0.7496868", "0.7477675", "0.7477675", "0.73552483", "0.73427963", "0.7272812", "0.72572476", "0.7232405", "0.7227244", "0.722323", "0.71919465", "0.7185699", "0.7171171", "0.7171171", "0.7171171", "0.7170931", ...
0.7882441
0
Get the directory last modification date formatted using the given format.
def HO3c(pmON, format='%Y-%m-%d %H:%M:%S'): _c1T = V3Rt(pmON) return _c1T.strftime(format)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UQXg(pmON, format='%Y-%m-%d %H:%M:%S'):\n _c1T = l4lA(pmON)\n return _c1T.strftime(format)", "def eT_1(pmON, format='%Y-%m-%d %H:%M:%S'):\n _c1T = khKG(pmON)\n return _c1T.strftime(format)", "def GrKn(YKHO):\n return qcWV.datetime.strptime(YKHO.meta['modified'][:10], '%Y-%m-%d')", "def E7J...
[ "0.8118833", "0.7267216", "0.68014216", "0.6712253", "0.66486937", "0.6631371", "0.6533694", "0.6486389", "0.64806366", "0.6473933", "0.6454596", "0.64532787", "0.641654", "0.64005643", "0.6392861", "0.63569653", "0.6329032", "0.6317167", "0.6308559", "0.6293703", "0.6293703"...
0.8813831
0
Get the directory size in bytes.
def Qq36(pmON): TMek(pmON) zNig = 0 for iGvk, bGrB, iumf in Hy7s.walk(pmON): for Ux0P in iumf: VqRE = Hy7s.path.join(iGvk, Ux0P) if not Hy7s.path.islink(VqRE): zNig += cZkV(VqRE) return zNig
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jiw9(YKHO):\n from os import listdir\n try:\n return len(listdir(YKHO.dir))\n except:\n return 0", "def zNig(YKHO):\n return YKHO._lib.getsize(YKHO.path)", "def jiw9(YKHO) -> int:\n return Hy7s.stat(YKHO.path).st_size", "def zNig(YKHO):\n return pmON.getsize(YKHO.path)", ...
[ "0.82446134", "0.79848224", "0.79388183", "0.7901187", "0.77799934", "0.7751496", "0.7747537", "0.7724909", "0.7676515", "0.7654694", "0.7614312", "0.76077634", "0.75679326", "0.7565699", "0.7558969", "0.75441587", "0.75420284", "0.7519893", "0.7507396", "0.749349", "0.748398...
0.0
-1
Get the file creation date.
def sb0B(pmON): V_ED(pmON) OhEq = Hy7s.path.getctime(pmON) d8PD = JRYC.datetime.fromtimestamp(OhEq) return d8PD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d8PD(YKHO, WJHQ):\n if a9EH.system() == 'Windows':\n return Hy7s.path.getctime(WJHQ)\n else:\n QmN4 = Hy7s.stat(WJHQ)\n try:\n return QmN4.st_birthtime\n except AttributeError:\n return QmN4.st_mtime", "def AAki(WJHQ):\n if a9EH.system() == 'Windows'...
[ "0.8697517", "0.8596228", "0.8560446", "0.8498587", "0.8498587", "0.8498587", "0.8498587", "0.8455797", "0.84471476", "0.8395184", "0.83290476", "0.8175901", "0.81051546", "0.8096406", "0.798492", "0.797975", "0.7898355", "0.7809758", "0.77923506", "0.7748423", "0.7681748", ...
0.8678801
1
Get the file last modification date.
def l4lA(pmON): V_ED(pmON) jFId = Hy7s.path.getmtime(pmON) CHQE = JRYC.datetime.fromtimestamp(jFId) return CHQE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TO1Y(YKHO):\n return qcWV.fromtimestamp(YKHO._info.file.mtime)", "def E7Ju(YKHO, pmON):\n return Hy7s.stat(pmON)[8]", "def eFZM(YKHO):\n s537 = Hy7s.path.getmtime(YKHO.fname)\n return qcWV.datetime.fromtimestamp(s537)", "def zqMm(Ux0P):\n a1PO = Hy7s.path.getmtime(Ux0P)\n return qcWV.da...
[ "0.86688334", "0.8381769", "0.82413596", "0.81443", "0.8068517", "0.7931066", "0.7931066", "0.7916491", "0.79158235", "0.7909545", "0.7888568", "0.7860363", "0.7841243", "0.7837944", "0.7812563", "0.7742725", "0.77352345", "0.77222604", "0.7681784", "0.7672437", "0.7672437", ...
0.84160775
1
Get the file last modification date formatted using the given format.
def UQXg(pmON, format='%Y-%m-%d %H:%M:%S'): _c1T = l4lA(pmON) return _c1T.strftime(format)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HO3c(pmON, format='%Y-%m-%d %H:%M:%S'):\n _c1T = V3Rt(pmON)\n return _c1T.strftime(format)", "def qtbZ(YKHO, gIsw):\n if not Hy7s.path.isfile(gIsw):\n return 'missing'\n return ITS7.strftime('%Y-%m-%d %H:%M:%S\\n', ITS7.localtime(Hy7s.stat(gIsw)[QmN4.ST_MTIME]))", "def GrKn(YKHO):\n r...
[ "0.8475356", "0.71401924", "0.71021694", "0.7040177", "0.7024778", "0.70174503", "0.7013361", "0.69626313", "0.6950245", "0.6934252", "0.6915228", "0.68960094", "0.6868524", "0.6833077", "0.6824327", "0.68133205", "0.67769223", "0.67769223", "0.67769223", "0.67667425", "0.673...
0.873162
0
Get the directory size in bytes.
def cZkV(pmON): V_ED(pmON) zNig = Hy7s.path.getsize(pmON) return zNig
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jiw9(YKHO):\n from os import listdir\n try:\n return len(listdir(YKHO.dir))\n except:\n return 0", "def zNig(YKHO):\n return YKHO._lib.getsize(YKHO.path)", "def jiw9(YKHO) -> int:\n return Hy7s.stat(YKHO.path).st_size", "def zNig(YKHO):\n return pmON.getsize(YKHO.path)", ...
[ "0.82446134", "0.79848224", "0.79388183", "0.7901187", "0.77799934", "0.7751496", "0.7747537", "0.7724909", "0.7676515", "0.7654694", "0.7614312", "0.76077634", "0.75679326", "0.7565699", "0.7558969", "0.75441587", "0.75420284", "0.7519893", "0.7507396", "0.749349", "0.748398...
0.0
-1
Determine whether the specified path represents an existing file.
def Nz4g(pmON): return Hy7s.path.isfile(pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def poxP(pmON):\n return EFYe(pmON)", "def Hat5(pmON: str):\n if Hy7s.path.isfile(pmON):\n return True\n return False", "def poxP(pmON: str) -> bool:\n assert isinstance(pmON, str)\n return Hy7s.path.exists(pmON)", "def poxP(pmON: str) -> bool:\n return Hy7s.path.isfile(pmON)", "de...
[ "0.8385737", "0.82666796", "0.82002234", "0.8199088", "0.8190812", "0.8163773", "0.80791074", "0.80288595", "0.79840404", "0.7982048", "0.79820246", "0.7965492", "0.7954882", "0.7954882", "0.7945439", "0.7939796", "0.78920865", "0.78663963", "0.78549236", "0.7838789", "0.7818...
0.8116697
6
Create a filename joining the file basename and the extension.
def X_y2(aPr_, Fst3): aPr_ = aPr_.rstrip('.').strip() Fst3 = Fst3.replace('.', '').strip() Ux0P = '{}.{}'.format(aPr_, Fst3) return Ux0P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HsL2(YKHO, *sdA6, **B2fa):\n svLL = xWMQ(*sdA6)\n return pmON(B2fa.get('dirname', YKHO.work_dirname)) / B2fa.get('subdirname', '') / svLL", "def pMPi(BBZe: str, gIsw: str, YBcr: str) -> str:\n return str((GkAb(BBZe) / gIsw).with_suffix(NAQt(YBcr)))", "def HsL2(Ux0P, YBcr, nzu_=None, eJh7=False):\n...
[ "0.79906523", "0.79674226", "0.78030455", "0.7662736", "0.7651672", "0.7632984", "0.7551801", "0.7532093", "0.7530751", "0.7529243", "0.7456303", "0.7450188", "0.7436418", "0.7420615", "0.7401665", "0.73970145", "0.73548603", "0.73405427", "0.729107", "0.7291051", "0.7279428"...
0.79863
1
Create a filepath joining the directory path and the filename.
def L0Md(pGQh, Ux0P): return zOLB(pGQh, Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qacR(rKZV, dvAn, kBpi):\n Ux0P = dvAn + kBpi\n return Hy7s.path.join(rKZV, Ux0P)", "def qacR(rKZV, dvAn, kBpi):\n Ux0P = dvAn + kBpi\n return Hy7s.path.join(rKZV, Ux0P)", "def n8un(qaEx):\n Csk6 = Hy7s.path.dirname(qaEx)\n if not Hy7s.path.exists(Csk6):\n Hy7s.makedirs(Csk6)", "d...
[ "0.76600415", "0.76600415", "0.73251915", "0.72603095", "0.72040015", "0.71705097", "0.71032596", "0.7072543", "0.704545", "0.70395404", "0.70271564", "0.69774145", "0.6959294", "0.694593", "0.6938687", "0.6924918", "0.69133586", "0.6880722", "0.68441194", "0.6838118", "0.682...
0.7541489
2
Split a filename and returns its basename and extension.
def kdT2(pmON): Ux0P = yFjF(pmON) aPr_, Fst3 = Hy7s.path.splitext(Ux0P) Fst3 = Fst3.replace('.', '').strip() return (aPr_, Fst3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def efWQ(Ux0P):\n return Hy7s.path.splitext(Ux0P)[1]", "def ud_i(Ux0P):\n mWFP = Ux0P[:Ux0P.find('.')]\n YBcr = Ux0P[Ux0P.find('.'):]\n return (mWFP, YBcr)", "def kdT2(Ux0P):\n return Hy7s.path.splitext(Ux0P)[0]", "def ud_i(Ux0P):\n KCHu = Ux0P\n mWFP = KCHu[:KCHu.find('.')]\n YBcr = ...
[ "0.8630329", "0.8538003", "0.8501947", "0.84699374", "0.8256091", "0.8153023", "0.8129922", "0.8069218", "0.7965559", "0.79349583", "0.79102165", "0.78138727", "0.77732205", "0.76480234", "0.76303756", "0.76192015", "0.7615474", "0.7610623", "0.7609279", "0.75883794", "0.7562...
0.82083243
5
Split a filepath and returns its directorypath and filename.
def N739(pmON): pGQh = Hy7s.path.dirname(pmON) Ux0P = yFjF(pmON) return (pGQh, Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OYco(VqRE):\n Hj7Z, bGrB = Om__.split(VqRE)\n sdCG, ztnR = Hy7s.path.splitext(VqRE)\n Hj7Z, Ux0P = Om__.split(sdCG)\n return (Hj7Z, Ux0P, ztnR)", "def KkWy(pmON):\n Kwmb = pmON[:pmON.rfind('/') + 1]\n Ux0P = pmON[pmON.rfind('/') + 1:]\n return (Kwmb, Ux0P)", "def KkWy(pmON):\n Kwmb ...
[ "0.8343865", "0.8051898", "0.8051898", "0.79771584", "0.78359455", "0.76969206", "0.7573633", "0.75037444", "0.7390931", "0.73736453", "0.72934145", "0.7261139", "0.7201783", "0.7187672", "0.7126337", "0.71025354", "0.710066", "0.7088941", "0.7088941", "0.7038219", "0.7035703...
0.8542284
0
Split a path and returns its pathnames.
def KkWy(pmON): sdCG, J3uN = Hy7s.path.split(pmON) ZWCE = sdCG.split(Hy7s.sep) + [J3uN] ZWCE = list(filter(None, ZWCE)) return ZWCE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eQ8x(pmON):\n return Hy7s.path.split(pmON)", "def KkWy(pmON):\n pmON = pmON.rstrip('/')\n RVjQ = pmON.split('/')[1:]\n return RVjQ", "def eQ8x(pmON):\n return pmON.lstrip(Hy7s.sep).rstrip(Hy7s.sep).split(Hy7s.sep)", "def KkWy(YKHO, pmON):\n if len(pmON) > 0 and pmON[0] == '/':\n ...
[ "0.8635471", "0.8492997", "0.84836394", "0.8376977", "0.8375871", "0.8355231", "0.82942307", "0.8256415", "0.8256415", "0.82211214", "0.82126445", "0.81823283", "0.81721526", "0.8146616", "0.8123614", "0.8123614", "0.80737096", "0.7961186", "0.7878554", "0.7763531", "0.773447...
0.87011313
0
Computes the edge loss for a sequence given gold head indices and tags.
def N77f(YKHO, mT7n: torch.Tensor, M6_w: torch.Tensor, ZHfW: torch.Tensor) -> ht2j.Tensor: WcB3 = ZHfW.float() Ep8u, NXmX, bGrB = mT7n.size() iGCt = qriv(Ep8u, UUd9(mT7n)).unsqueeze(1) ra_t = n1Tc(mT7n, ZHfW) * WcB3.unsqueeze(2) * WcB3.unsqueeze(1) iDyX = qriv(NXmX, UUd9(mT7n)) NxKu = iDyX.view(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N77f(YKHO, EIao: torch.Tensor, ZHfW: torch.Tensor, ZhJm: torch.Tensor) -> ht2j.Tensor:\n WcB3 = ZHfW.float()\n Ep8u, NXmX, bGrB = EIao.size()\n iGCt = qriv(Ep8u, UUd9(EIao)).unsqueeze(1)\n T8ab = n1Tc(EIao, ZHfW.unsqueeze(-1)) * WcB3.unsqueeze(-1)\n iDyX = qriv(NXmX, UUd9(EIao))\n NxKu = iDyX...
[ "0.6798192", "0.6681141", "0.6364358", "0.6272134", "0.6077806", "0.59938574", "0.59834546", "0.59702104", "0.596734", "0.591872", "0.58295655", "0.58247757", "0.5810103", "0.5791151", "0.5764461", "0.5749441", "0.5733378", "0.5730715", "0.56901014", "0.5671618", "0.5670671",...
0.6241794
4
This function converts a power given in W to a power given in dBm.
def hqYQ(XcU5, pBSp=-100): if type(XcU5) != oyIN.ndarray: if XcU5 > 0: return 10.0 * oyIN.log10(XcU5) + 30 elif XcU5 == 0: return pBSp else: print(XcU5) raise ZeroDivisionError jzdc = 10.0 * oyIN.ma.log10(XcU5).filled(pBSp / 10 - 3) + 30 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tJ3a(EDjx):\n return oyIN.power(10, (EDjx - 30) / 10)", "def JtJ0(sYsB):\n return 10 ** (sYsB / 10)", "def kLxV(iBX1):\n return 0.001 * 10 ** (iBX1 / 10.0)", "def TenN(jeGy):\n return 10 * oyIN.log10(jeGy)", "def iBX1(YKHO):\n if YKHO.units == 'dBm':\n return YKHO\n return q3Qn...
[ "0.8180595", "0.7195042", "0.7041899", "0.7026373", "0.67690825", "0.6762339", "0.6762339", "0.6685716", "0.6681504", "0.64796305", "0.6217885", "0.61667603", "0.609826", "0.6057952", "0.6035437", "0.60262245", "0.6009494", "0.5892817", "0.58736074", "0.5793894", "0.5790774",...
0.5952041
17
Return the polling state.
def KZ_I(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def poll_and_get_state(YKHO):\n await eqv8(YKHO.hass, 60)\n QTBn = YKHO.hass.states.get(YKHO.entity_id)\n assert QTBn is not None\n return QTBn", "def ja6o(YKHO):\n IOKn = YKHO._alarm()\n return IOKn.state", "def lUir(YKHO):\n if YKHO.db_connection.poll() == CBZq.POLL_OK:\n aB...
[ "0.7293356", "0.7084267", "0.7076358", "0.70510584", "0.7025789", "0.6984706", "0.69791013", "0.69772166", "0.69690984", "0.6961726", "0.694051", "0.6920858", "0.6912413", "0.6905527", "0.68835574", "0.6876464", "0.6865388", "0.6865246", "0.6862717", "0.6855354", "0.6841702",...
0.0
-1
Return the name of the thermostat.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n return YKHO.THERMAL_NAME_LIST[YKHO.index]", "def mWFP(YKHO):\n return '{} {}'.format(Kb4M.climate_status[YKHO._id].location, 'Temperature')", "def mWFP(YKHO):\n return '{} {}'.format(Kb4M.temperature_status[YKHO._id]['label'], 'Temperature')", "def mWFP(YKHO):\n return YKHO._nuk...
[ "0.7090937", "0.701777", "0.67591095", "0.67566854", "0.6748152", "0.6691892", "0.66860455", "0.6620908", "0.6573677", "0.65147376", "0.6509249", "0.6492292", "0.6492292", "0.6492292", "0.647719", "0.6465455", "0.645245", "0.64446354", "0.6443063", "0.64269954", "0.64269954",...
0.0
-1
Return the unit of measurement.
def xklW(YKHO): return hMVl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82...
[ "0.90788347", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9013875", "0.90051067", "0.89462197", "0.89462197", "0.89366317", "0.89184356", "0.89184356", "0.89184356", "0.89184356", "0.8918...
0.0
-1
Return the sensor temperature.
def CMHP(YKHO): return YKHO._cur_temp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ovGo(YKHO):\n return YKHO.device.temperature()", "def ovGo(YKHO):\n ovGo = YKHO._readTemp()\n return ovGo", "def ovGo(YKHO) -> float:\n YKHO.measurement(Np2f)\n YKHO._measurement = 0\n ITS7.sleep(0.05)\n return YKHO._data() * 175.72 / 65536.0 - 46.85", "def rcrL(YKHO):\n return YK...
[ "0.8745717", "0.87412417", "0.8721165", "0.8698256", "0.8691214", "0.86806875", "0.86574376", "0.8646147", "0.8608337", "0.85915726", "0.8574843", "0.8560561", "0.8555494", "0.8545229", "0.85323673", "0.852896", "0.8524833", "0.85189575", "0.8513216", "0.8513186", "0.8494511"...
0.0
-1
Maximum temperature that allowed by Tion breezer.
def TWl1(YKHO) -> float: return 30
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TWl1(YKHO):\n return YKHO._climate.get_max_temp()", "def TWl1(YKHO):\n return l_wm", "def TWl1(YKHO):\n return pu1T", "def TWl1(YKHO):\n return pu1T", "def TWl1(YKHO):\n if YKHO.temperature_unit == ELtl:\n return 90\n return 32", "def TWl1(YKHO):\n return YKHO._temperature...
[ "0.8230455", "0.82294416", "0.81966245", "0.81966245", "0.81359255", "0.8112085", "0.8087094", "0.801191", "0.801191", "0.801191", "0.801191", "0.801191", "0.801191", "0.8002571", "0.7969305", "0.79580647", "0.79495287", "0.7945109", "0.7945042", "0.79218763", "0.78574926", ...
0.80217856
7
Return the current running hvac operation if supported. Need to be one of CURRENT_HVAC_.
def Wc11(YKHO): if YKHO._is_on: if YKHO._is_heating: FHOe = U1ye else: FHOe = SdV4 else: FHOe = h7b9 return FHOe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IT4j(YKHO):\n return YKHO._current_operation", "def IT4j(YKHO):\n return YKHO._current_state", "def Wc11(YKHO):\n if YKHO.controller.power_state.status is None:\n return None\n if YKHO.controller.power_state.status.turn_on is False:\n return h7b9\n if YKHO.controller.operation_...
[ "0.8404559", "0.7555348", "0.7370752", "0.7200216", "0.71754664", "0.71325463", "0.7119647", "0.7080572", "0.70681536", "0.7010892", "0.6984714", "0.6984714", "0.6984714", "0.6963674", "0.69358474", "0.6919994", "0.6905905", "0.6880291", "0.6871655", "0.68330073", "0.67954963...
0.73331046
3