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
Freeze all the weights by setting requires_grad to False
def OGtb(r8hN): for XP5J in r8hN.parameters(): XP5J.requires_grad = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FiJ9(YKHO):\n YKHO.frozen = True\n for xqoZ in YKHO.parameters():\n xqoZ.requires_grad = False", "def iFJl(YKHO):\n PF0a = YKHO._model._net\n for xqoZ in PF0a.parameters():\n xqoZ.requires_grad = False", "def FiJ9(YKHO) -> None:\n YKHO._set_requires_grad(False)\n for xqoZ in...
[ "0.8163218", "0.7909783", "0.7748271", "0.7748042", "0.769451", "0.74692297", "0.7455538", "0.7449576", "0.73030096", "0.72458893", "0.7239034", "0.7226676", "0.71990705", "0.7145645", "0.7145645", "0.71134984", "0.70635736", "0.7044902", "0.703389", "0.70303506", "0.6969782"...
0.6920431
21
Return the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = '%s %s' % (YKHO.firstname, YKHO.lastname) return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f", "def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f", "def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()", "def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name", "def xpqj(YKHO):\n return YKHO.first_name + ' ...
[ "0.83421856", "0.82273436", "0.80990887", "0.8067676", "0.80525744", "0.8043721", "0.7993416", "0.7992513", "0.7992513", "0.7992513", "0.7978309", "0.7963202", "0.7957057", "0.79399455", "0.7936728", "0.79338795", "0.79154027", "0.7901051", "0.7892942", "0.787005", "0.7855431...
0.7836986
23
Load a json file into a dictionary.
def y4Mn(VqRE): with open(VqRE, 'r') as eHNT: return qQXR.load(eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D20L(aRNY):\n with open(aRNY) as ECmi:\n tbx9 = qQXR.load(ECmi)\n return tbx9", "def lc9H(Ux0P: str) -> cuzp:\n with open(Ux0P, 'r') as wM3v:\n return qQXR.load(wM3v)", "def lc9H(qaEx):\n with open(qaEx, 'r') as wM3v:\n cmPJ = qQXR.loads(wM3v.read())\n return cmPJ", "d...
[ "0.8363557", "0.8338333", "0.8320464", "0.82969475", "0.82234544", "0.81782365", "0.8013226", "0.79915285", "0.7987343", "0.79690105", "0.7937751", "0.7909713", "0.7884572", "0.7804587", "0.7787159", "0.77430487", "0.7736438", "0.7696512", "0.76654094", "0.7624713", "0.761705...
0.7284489
55
Helper function to create a DNAC API endpoint URL
def PefW(pmON, RNke=lcrY): print('3') return 'https://%s:%s/api/v1/%s' % (RNke, hBWc, pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzyR(YKHO, w2IS):\n return YKHO.base_url + YKHO.api_path + w2IS.strip('/')", "def CDTZ(YKHO, w2IS: str, NArs: Dict[str, str]=None) -> str:\n if NArs:\n return f'{YKHO.BASE_URL}/{YKHO._api_version}{w2IS}?{QIYp(NArs)}'\n return f'{YKHO.BASE_URL}/{YKHO._api_version}{w2IS}'", "def EUdC(drt6, w2...
[ "0.74553895", "0.7263086", "0.71828544", "0.70809686", "0.7072189", "0.7025123", "0.6959241", "0.69526494", "0.6904076", "0.6899243", "0.68190056", "0.6773523", "0.6765315", "0.67568064", "0.670167", "0.6700871", "0.66979635", "0.66481155", "0.6630661", "0.6624139", "0.659704...
0.7301918
1
Return name of entity.
def Ku9n(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWCk(YKHO):\n return YKHO.__entity_name", "def tWCk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'entity_name')", "def tWCk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'entity_name')", "def qpoq() -> str:\n return 'NewsItemEntity'", "def mWFP(YKHO):\n return '{} {}'.format(YKH...
[ "0.8907802", "0.820066", "0.820066", "0.8056209", "0.7864174", "0.7640121", "0.74469143", "0.74123406", "0.73490596", "0.73426497", "0.73414713", "0.7337244", "0.7319754", "0.7319754", "0.7319754", "0.7296547", "0.72426", "0.72426", "0.72426", "0.72422755", "0.7239047", "0....
0.0
-1
Standard Gaussian resolution shape
def vJYJ(): ccKF = [] ccKF.append('r_m[0.0,-1,1]') ccKF.append('r_s[2.5,0,10]') ccKF.append('Gaussian::res(x,r_m,r_s)') return ccKF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qxPT(ROpF, WTkW):\n dYOR = xkW5.drawGaussiansXY(ROpF, XTiz.array([0.5 * ROpF[0]]), XTiz.array([0.5 * ROpF[1]]), sigma=WTkW)\n return dYOR / XTiz.sum(dYOR)", "def IAWS(a1PO, NArs):\n DeprecationWarning('Using standard width. Better use gaussian_sigma.')\n NArs['sigma'] = jgJd(value=NArs['t_final']...
[ "0.7061774", "0.68136966", "0.66752356", "0.66123235", "0.6581177", "0.6564699", "0.6488385", "0.6479203", "0.6461302", "0.64511245", "0.6427417", "0.6424794", "0.64032036", "0.6365047", "0.6363483", "0.634068", "0.63382334", "0.6334149", "0.6326717", "0.62985986", "0.6276975...
0.0
-1
Double Gaussian resolution shape
def ICKe(): ccKF = [] ccKF.append('r_m[0.0,-1,1]') ccKF.append('r_s[1.5,0,10]') ccKF.append('Gaussian::gaus_c(x,r_m,r_s)') ccKF.append('rt_m[0.0,-1,1]') ccKF.append('rt_s[3,0,10]') ccKF.append('Gaussian::gaus_t(x,rt_m,rt_s)') ccKF.append('f[0.85]') ccKF.append('SUM::res(f*gaus_c,gaus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qxPT(ROpF, WTkW):\n dYOR = xkW5.drawGaussiansXY(ROpF, XTiz.array([0.5 * ROpF[0]]), XTiz.array([0.5 * ROpF[1]]), sigma=WTkW)\n return dYOR / XTiz.sum(dYOR)", "def Ey6p(zNig, WTkW):\n r1VO = zNig // 2\n vgXP = 0.0\n yKcO, JCyR = (-r1VO, r1VO + 1)\n if zNig % 2 == 0:\n vgXP = 0.5\n ...
[ "0.6787509", "0.6654982", "0.66337276", "0.66337276", "0.66320175", "0.6613296", "0.65926105", "0.65867645", "0.6575697", "0.65732044", "0.6569151", "0.655808", "0.65469366", "0.65372825", "0.6490164", "0.648877", "0.6482354", "0.6478889", "0.6478889", "0.6478889", "0.6471241...
0.0
-1
Return the class of this device, from component DEVICE_CLASSES.
def rM2U(YKHO): return MQ2o.get(YKHO.sensor_data['model'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return YKHO.sensor_type['class']", "def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')", "def ZvYj(YKHO):\n return YfpN.get_class(YKHO.type)", "def rM2U(YKHO):\n return u32P[YKHO.info_type]['device_class']", "def rM2U(YKHO):\n return YKHO._device_class", "d...
[ "0.85230726", "0.84733164", "0.8445045", "0.8313233", "0.83095866", "0.82431525", "0.82431525", "0.82431525", "0.82431525", "0.82431525", "0.81998587", "0.8195822", "0.8126947", "0.811179", "0.811179", "0.811179", "0.80615914", "0.80560696", "0.80560696", "0.8038193", "0.8038...
0.8728038
0
Puts the current key in the set of keys that are being held. You will need to add things here to handle firing the bullet.
def DAJF(YKHO, H5ew: int, F1OP: int): YKHO.held_keys.add(H5ew) if H5ew == jIOH.key.SPACE: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DAJF(YKHO, H5ew: int, F1OP: int):\n if YKHO.ship.alive:\n YKHO.held_keys.add(H5ew)\n if H5ew == jIOH.key.SPACE:\n YBnT = GBVa()\n YBnT.fire(YKHO.ship.angle, YKHO.ship.center)\n YKHO.bullets.append(YBnT)", "def DAJF(YKHO, H5ew: int, F1OP: int):\n if YKHO.sh...
[ "0.7319262", "0.73013127", "0.65387064", "0.6480956", "0.6470683", "0.64591974", "0.6403872", "0.63643605", "0.63235325", "0.63204604", "0.62915784", "0.6281717", "0.62527555", "0.62524116", "0.62199354", "0.62199354", "0.6201979", "0.61854833", "0.6171041", "0.61541516", "0....
0.71870714
2
Function to return file names of non sequential files.
def kk2K(kUBT): y0cW = kUBT.string[:kUBT.start()] ZI14 = kUBT.string[kUBT.end():] rPXJ = y0cW + '%d' + ZI14 return kUBT.expand(rPXJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I3lW():\n iumf = []\n for Ux0P in GkAb('.').glob('*.pdf'):\n if 'reordered' not in Ux0P.stem:\n iumf.append(Ux0P)\n return iumf", "def gFok(LiO0):\n RKD7.info('anonymizer.py file_names {0}'.format(LiO0))\n HFXm = pmON(LiO0)\n _ins = -1\n for YBcr in Cl0U:\n MyJ3 ...
[ "0.69865555", "0.651861", "0.6497563", "0.6302609", "0.6282272", "0.62494314", "0.6221374", "0.6137554", "0.6136812", "0.61338407", "0.61069524", "0.6095974", "0.6037756", "0.59998757", "0.5997438", "0.5992087", "0.5979648", "0.59283125", "0.59123707", "0.5909974", "0.5887527...
0.0
-1
Updates status, with a potential orbit plot
def G2uS(jGRS, Dmps, qoQs): Jpbe = uXS6.OAuthHandler(BQAm, KiNl) Jpbe.set_access_token(emKQ, QgV7) nNXP = uXS6.API(Jpbe) Ol8d = WKCF.format(Dmps) if qoQs: nNXP.update_with_media(qoQs, status=Ol8d) else: nNXP.update_status(Ol8d) return 'Tweet Published'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V3yY():\n pass", "def TwT1(YKHO):\n YKHO._BusyDoOp(YKHO._UpdatePlotImpl)", "def Tsft(YKHO):\n YKHO.x_vals = oyIN.zeros((YKHO.n_bodies, len(YKHO.hist)))\n YKHO.y_vals = oyIN.zeros((YKHO.n_bodies, len(YKHO.hist)))\n YKHO.z_vals = oyIN.zeros((YKHO.n_bodies, len(YKHO.hist)))\n YKHO.r_vals = o...
[ "0.6796556", "0.63692766", "0.6116714", "0.6047096", "0.5933866", "0.5927585", "0.58541495", "0.5845447", "0.5773369", "0.57610697", "0.57588494", "0.57351047", "0.57293034", "0.5729273", "0.5715754", "0.57089525", "0.57027143", "0.56948096", "0.56861925", "0.5683036", "0.564...
0.0
-1
Takes an input string and a desired tab width and replaces each \\t in the string with ' 'tab_width.
def b5be(vIwR: str, s44w: int=4) -> str: return vIwR.replace('\t', ' ' * s44w)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def coTv(aevO: str, TVTK: int) -> str:\n assert TVTK % 8 == 0\n if len(aevO) >= TVTK:\n return f'{aevO}\\t'\n dvgN = TVTK - len(aevO)\n Hfhj = dvgN // 8\n if dvgN % 8 > 0:\n Hfhj += 1\n return aevO + '\\t' * Hfhj", "def nJ_J(l5Ny, oi6k=4):\n return l5Ny.replace('\\t', ' ' * oi6...
[ "0.79256225", "0.739376", "0.71211773", "0.681988", "0.67956686", "0.6614125", "0.64676315", "0.64483476", "0.60130465", "0.5952855", "0.5934942", "0.58639157", "0.58335614", "0.58081925", "0.5782443", "0.573624", "0.562251", "0.54950684", "0.5416732", "0.5385577", "0.5355708...
0.8873786
0
Returns a string that contains enough spaces to center the text in the context of the length given Defaults to centering the text in the width of the entire console text is stripped of leading and trailing whitespace before starting If length len(text) is odd, then the extra space is appended to the end of the string I...
def hv4d(l5Ny: str, u54L: int=-1) -> str: a1PO = l5Ny.strip() _FNQ = RDuA.get_terminal_size((80, 20)).columns if u54L > _FNQ: u54L = _FNQ if len(a1PO) >= u54L: return a1PO W542 = u54L - len(a1PO) ETjC = W542 // 2 n294 = ' ' * ETjC if W542 % 2 == 0: return n294 + a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgjH(l5Ny, TVTK=72, qK9g=' '):\n u54L = len(l5Ny)\n y0cW = (TVTK - u54L) // 2\n ZI14 = TVTK - y0cW - u54L\n return y0cW * ' ' + l5Ny + ZI14 * ' '", "def hv4d(l5Ny, TVTK=120):\n if l5Ny == '*':\n print('*' * TVTK)\n elif len(l5Ny) > TVTK - 4:\n raise ValueError('text:{} is more...
[ "0.7882105", "0.7357453", "0.71607906", "0.7024332", "0.69741356", "0.6834833", "0.67831206", "0.6599976", "0.659696", "0.63803214", "0.6379917", "0.6359718", "0.6241984", "0.62080324", "0.6192681", "0.61334115", "0.61273116", "0.6125977", "0.6117825", "0.6113696", "0.6087233...
0.8688855
0
Returns a string composed of num dashes
def RUzg(mLGw: int, x06z: str='#') -> str: ycBG = '' for YRbF in range(mLGw): ycBG += x06z return ycBG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZPR3(mLGw):\n if mLGw is None:\n return 'None'\n if mLGw == 0:\n return '0'\n mLGw = str(mLGw)\n mLGw = mLGw.strip('-')\n U5bT = ''\n Z9rn = 0\n for Ko6S in str(mLGw):\n if int(Ko6S) % 2 != 0:\n if Z9rn == 0 and len(str(mLGw)) == 1:\n U5bT += ...
[ "0.75286597", "0.7116371", "0.7006892", "0.6703599", "0.65451103", "0.6515679", "0.6462735", "0.63251245", "0.6288942", "0.6230601", "0.6169304", "0.6147508", "0.6146", "0.6102892", "0.60897624", "0.6087948", "0.60765064", "0.601851", "0.60087353", "0.5990099", "0.5989406", ...
0.7588893
0
Return all of the configurations we find in this slot. Can be more than one. We use this on startup to build the regions list.
def W77M(nqFi): IM6h = WAB2(nqFi) Trfq = Hy7s.path.join(IM6h, 'bin', 'Regions') ezn8 = SC2F.glob(Hy7s.path.join(Trfq, '*.xml')) Aofo = {} for GPtr in ezn8: if Hy7s.access(GPtr, Hy7s.O_RDONLY) == False: continue J_Es = GXnK.parse(GPtr) tk5Y = J_Es.getroot() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n return {XLMv: YKHO.sections[XLMv].get_values() for XLMv in YKHO.sections}", "def b32v(YKHO):\n return YKHO._configs", "def b32v(YKHO):\n return YKHO.__configs", "def GPtr(YKHO) -> dict:\n return YKHO._configs", "def b32v(YKHO) -> list[PSrQ]:\n return YKHO._configs", "def ...
[ "0.690648", "0.6745133", "0.66438174", "0.6623901", "0.66007847", "0.65331554", "0.6530625", "0.65080863", "0.6454023", "0.63908523", "0.6381798", "0.634091", "0.63036627", "0.626329", "0.6225224", "0.6216168", "0.6207627", "0.6207627", "0.6180901", "0.6180814", "0.61522985",...
0.62134564
16
Get last block height in one specific transform storage.
async def last_block_height(YKHO, PC8y: dict) -> h8nf[int]: rDf7: str = PC8y['transform_id'] NCls = YKHO.transform_storage_dbs[rDf7] BWXx = NCls.get(kF3y.LAST_BLOCK_HEIGHT_KEY) try: H2v2 = int(BWXx) except Exception: H2v2 = None return H2v2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xglF():\n return Einh.transforms[1].size", "def pZbc(YKHO):\n return YKHO.chain[len(YKHO.chain) - 1]", "def C9Py(YKHO, BBLH):\n YKHO.send_command('blockchain.fetch_last_height', cb=BBLH)", "def KvxX(YKHO):\n if len(YKHO.chain) == 0:\n return -1\n else:\n return YKHO.chain[len...
[ "0.6924638", "0.65283996", "0.6526843", "0.65190667", "0.6423764", "0.63814086", "0.63814086", "0.63433397", "0.6323127", "0.6305308", "0.6257912", "0.6246961", "0.6206633", "0.61390156", "0.6127977", "0.60946774", "0.60820806", "0.6063295", "0.6004294", "0.5996273", "0.59911...
0.7295609
0
Create a plain button with grey background and black text
def FIMM(YKHO, l5Ny='Ok', o9av=None, zNig=30, QTBn: int=D04X.INACTIVE) -> None: super().__init__(QTBn) YKHO._font = krdV(o9av, zNig) YKHO._text = l5Ny YKHO.rect = rbZs(0, 0, 0, 0) YKHO.redraw()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vVul(YKHO, _AKB, l5Ny='Button', oUZx=None, rdlD=0, iVRZ=0):\n _qFj = D04X(_AKB, text=l5Ny, command=oUZx, relief='flat', padx=5, pady=5)\n _qFj.grid(row=rdlD, column=iVRZ, sticky=Qnup)\n return _qFj", "def fNbL(YKHO, _AKB, I1mm):\n rMVG = {lnPd.ID_OK: (LIrB, 'ok'), lnPd.ID_CANCEL: (DUQn, 'cancel')...
[ "0.6861607", "0.67599237", "0.6582718", "0.65808904", "0.65053374", "0.6474949", "0.64376765", "0.6433827", "0.6399615", "0.6356601", "0.6275925", "0.6242429", "0.6238343", "0.6204678", "0.6166762", "0.6152648", "0.613938", "0.6084935", "0.6072933", "0.6066731", "0.6052635", ...
0.6228837
13
Yield successive nsized chunks from lst.
def eHxA(yv6U, exwG): for YRbF in range(0, len(yv6U), exwG): yield yv6U[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield...
[ "0.83071756", "0.81939614", "0.81910837", "0.81910837", "0.8190213", "0.81267184", "0.81218547", "0.81218547", "0.80773693", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457",...
0.80526286
35
Look up a user by their ID.
async def lookup(YKHO, OaeV, uJjO: int): if uJjO <= 0: return await OaeV.send('I can already tell you this guy does not exist. Try using an actual User ID.') elif len(str(uJjO)) == 4: return await OaeV.send('Did you mistake the User ID for their discriminator? For reference: \nThis is my discrim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(YKHO, id):\n return YKHO.users.get(id)", "def JuUv(YKHO, id):\n for CBIr in YKHO.users:\n if CBIr['id'] == id:\n return CBIr", "def idb7(YKHO, uJjO):\n Pe9W = \"SELECT * FROM Users WHERE id='%s'\" % uJjO\n Ylbp = YKHO.execute(Pe9W)\n l_Oj = Ylbp.fetchall()\n if l_Oj...
[ "0.8270228", "0.82623696", "0.8250017", "0.81246173", "0.81151164", "0.80321884", "0.7968494", "0.7942783", "0.7942783", "0.7942783", "0.7942783", "0.79169846", "0.7888149", "0.7873626", "0.78533673", "0.78477633", "0.7841482", "0.78250325", "0.7818835", "0.780344", "0.778755...
0.0
-1
Instantiate a new MongoClient and return the collection
def DMw_(YKHO): YKHO.client = DpgL.MongoClient(YKHO.conn_info['conn_str'], username=YKHO.conn_info['username'], password=YKHO.conn_info['password']) NCls = YKHO.client.get_database() try: xUwc = NCls.get_collection(YKHO.coll_str) except: YKHO.logger.error(f'Could not access collection {Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XERT():\n return BFCm(_IsU)", "def XERT(QePW):\n QtIL = BFCm()\n return QtIL", "def f_sV():\n return DpgL.MongoClient(LITF)", "def PTw5():\n x0hE = BFCm(P4t4.config['MONGODB_URI'], connectTimeoutMS=P4t4.config['MONGODB_TIMEOUT'], serverSelectionTimeoutMS=P4t4.config['MONGODB_TIMEOUT'] + P4...
[ "0.8032362", "0.7753136", "0.7738257", "0.7730823", "0.7597799", "0.7586646", "0.7473212", "0.7459132", "0.74169505", "0.7394337", "0.7370175", "0.72333086", "0.72165936", "0.7172144", "0.7111903", "0.70264876", "0.7000244", "0.6980332", "0.69779396", "0.6962124", "0.69039994...
0.7380584
10
Initialize the weights of a neural network.
def vB93(r8hN): if isinstance(r8hN, U78l.Linear): U78l.init.normal_(r8hN.weight, mean=0.1, std=0.01) U78l.init.constant_(r8hN.bias, 0.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C0Lv(YKHO):\n pass", "def sTi3(YKHO, dIoi, wdin):\n h0Df = [[YKHO.input_size, YKHO.hidden_size[0]], [YKHO.hidden_size[0], YKHO.hidden_size[1]], [YKHO.hidden_size[1], YKHO.output_size]]\n X9xv = [[1, YKHO.hidden_size[0]], [1, YKHO.hidden_size[1]], [1, YKHO.output_size]]\n YKHO.weights = [vB93(KCHu...
[ "0.8312774", "0.8191624", "0.8170487", "0.81307644", "0.81094116", "0.8052099", "0.80146927", "0.8012727", "0.7929012", "0.79015076", "0.78690237", "0.7849139", "0.7824348", "0.7817047", "0.7795276", "0.77776146", "0.7740009", "0.7719938", "0.76778454", "0.76582754", "0.76481...
0.7267429
57
Graphically show the clustering of the hidden representations. Saves the plot in 'cwd/plots' directory.
def szaL(F_On, Crrw, JXgT, nUHY=False): QrM1.figure(1) QrM1.clf() yo8O = cAlZ(n_components=2).fit_transform(F_On) Jw9H = n2fR('bgrcmykbgrcmykbgrcmykbgrcmyk') for G1Hx, fvDH in zip(range(JXgT), Jw9H): Jdtz = Crrw == G1Hx QJv1 = yo8O[Jdtz, :] print(QJv1) print(QJv1[:, 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HeFd(YKHO):\n pass", "def bAHj(YKHO):\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111, projection='3d')\n LZpg.set_size_inches(18.5, 9.5)\n aNZO.set_title('Identification of Cluster Particles with Voronoi Volumes', fontsize=22)\n aNZO.set_xlabel('x [m]', fontsize=18)\n aNZO.set_ylab...
[ "0.70459795", "0.6877346", "0.6616605", "0.66142416", "0.6459819", "0.6419078", "0.6390127", "0.63865054", "0.6370039", "0.6363703", "0.6351985", "0.6300115", "0.6241648", "0.62412906", "0.621885", "0.61625296", "0.609284", "0.60797143", "0.60749924", "0.60629463", "0.6057906...
0.6410482
6
Set the variables to their initial values. Needed when sampling modifies the variables and we want to sample again.
def taDe(YKHO): YKHO.pipeline_X = YKHO.init_pipeline_X YKHO.pipeline_y = YKHO.init_pipeline_y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mNs1(YKHO):\n YKHO.sess.run(YKHO.init)", "def SiRx(YKHO):\n for SRYB in YKHO.var_list:\n SRYB.value = None\n SRYB.domain = jth9.deepcopy(SRYB.init_domain)", "def XftE(YKHO):\n pass", "def aRSt(YKHO, nJ9F: Dict[str, ArrayType]) -> None:\n YKHO.x0 = YKHO.opt.decision_variables.dic...
[ "0.7115037", "0.6858043", "0.6843621", "0.6821857", "0.68065757", "0.67398846", "0.6738298", "0.67285854", "0.6668068", "0.6636889", "0.66340226", "0.66261333", "0.65688825", "0.6566039", "0.65651214", "0.6552995", "0.65356857", "0.65236604", "0.6481246", "0.6466567", "0.6463...
0.0
-1
A pandas dataframe representing the cashflows from the income stream.
def JKaI(YKHO) -> rLdf.DataFrame: kRLY = rLdf.DataFrame(index=YKHO.date_range, data=YKHO._values, columns=[YKHO.name]) return kRLY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FlmP(YKHO):\n tyNF = rLdf.DataFrame(index=[SdrH.buy_date for SdrH in YKHO.etfs.values()])\n tyNF['Ticker'] = [mWFP.split('-')[0].split('.')[0] for mWFP in YKHO.etfs.keys()]\n tyNF['Buying Price (€)'] = [SdrH.buy_price for SdrH in YKHO.etfs.values()]\n tyNF['Number of Shares'] = [SdrH.n_shares for S...
[ "0.663227", "0.6487351", "0.6382273", "0.6234031", "0.62265664", "0.60174555", "0.60097367", "0.5889223", "0.5876676", "0.5821334", "0.5777549", "0.57711875", "0.57652515", "0.57452124", "0.5738639", "0.57224095", "0.57214725", "0.57196844", "0.57148147", "0.5710445", "0.5704...
0.82112074
0
Returns the next nearest page boundary from `n`
def fmO_(exwG): Q55g = 4096 return (exwG + Q55g - 1) // Q55g * Q55g
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def haDU(exwG, XP5J):\n P8oC = 10 ** XP5J\n return epAf.ceil(round(P8oC * exwG * 2) / 2) / P8oC", "def UYdI(exwG, FGW3):\n return epAf.floor(exwG / FGW3 + 0.5) * FGW3", "def hKxl(jzdc, exwG):\n oeNL = SPuy(jzdc, exwG)\n if oeNL == 0:\n return jzdc[0]\n if oeNL == len(jzdc):\n re...
[ "0.6394747", "0.63907826", "0.6263046", "0.6243817", "0.6148424", "0.60373133", "0.60117996", "0.5871792", "0.5820438", "0.5804876", "0.57938933", "0.5791112", "0.57203776", "0.57193154", "0.57193154", "0.57193154", "0.57139105", "0.56849575", "0.5683129", "0.5679386", "0.567...
0.73715574
0
Format Event attributes to a dictionary in order to prepare data to be inserted to the database.
def ACfT(YKHO): e6kn = {'event_category': YKHO.event_category, 'event_location': YKHO.event_location, 'event_age_range': YKHO.event_age_range, 'event_date': YKHO.event_date, 'event_time': YKHO.event_time, 'event_description': YKHO.event_description, 'event_created_by': YKHO.event_created_by, 'event_joined_by': YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G9LC(YKHO, WjWk):\n tOlB = {}\n for _j8X, JBov in WjWk.GetAttributes():\n if _j8X in (u'pathspec', u'regvalue', u'tag'):\n continue\n tOlB[_j8X] = JBov\n JBov = vmlq.Timestamp.RoundToSeconds(WjWk.timestamp)\n JBov = vmlq.Timestamp.CopyToIsoFormat(JBov, timezone=YKHO._output...
[ "0.7052704", "0.69316", "0.6827482", "0.65590626", "0.6479102", "0.6476226", "0.64500475", "0.64383775", "0.6383981", "0.63700473", "0.625962", "0.6200087", "0.6140077", "0.6081016", "0.6049497", "0.6044852", "0.60055083", "0.60016525", "0.5958699", "0.5932972", "0.5893463", ...
0.7170539
0
Takes the ObjectId of the creator as param, Return an instance of the last event created by this user from the db.
def y1Py(Emd4, uJjO): try: tvqc = UQcK.find_one({'event_created_by': aA6B(uJjO)}, sort=[('_id', -1)]) return Emd4(**tvqc) except Exception as e: print(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wpME(YKHO, pw_q=None):\n N1p7 = YKHO.conn.cursor()\n pw_q = pw_q or ITS7.time()\n N1p7.execute('\\n SELECT * FROM events\\n WHERE date < ? AND countdown <= 0\\n ORDER BY date DESC LIMIT 1', (pw_q,))\n m6Me = N1p7.fetchone()\n if m6Me:\n tvqc = QRWf(*m6Me)\n ret...
[ "0.6150634", "0.60127324", "0.57242155", "0.5644116", "0.5644116", "0.56306756", "0.56165147", "0.5602574", "0.5574103", "0.5527292", "0.5523488", "0.5470176", "0.5441347", "0.5394686", "0.5383745", "0.5382348", "0.5325782", "0.5298208", "0.5248284", "0.52440834", "0.521903",...
0.7369775
0
Return whether the byteorder string is valid or not.
def x8VQ(abwh): if not abwh: print('WARN: byteorder not given, using system byteorder.', file=HwRy.stderr) return None elif abwh in kA_k.keys(): return abwh else: raise KTsD('%s not a valid byteorder. Try little or big.' % abwh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vru2(odS9):\n return bool(odS9.translate(None, sQN1))", "def EF2j(GOHe):\n if len(GOHe) == 33 and (GOHe[0] == 2 or GOHe[0] == 3):\n return True\n if len(GOHe) == 65 and GOHe[0] == 4:\n return True\n return False", "def AKkO(nPrm):\n for _9lj in nPrm:\n pSfY = JUyz(_9lj)\...
[ "0.64110535", "0.6280978", "0.62748444", "0.6236036", "0.6109709", "0.6071637", "0.6060703", "0.59746486", "0.59664", "0.5966033", "0.5957287", "0.59495014", "0.59452623", "0.59450674", "0.5902838", "0.58954924", "0.5853991", "0.5848576", "0.5842857", "0.5838136", "0.58200127...
0.59032995
14
gets _vy attribute of Ball
def IN3Q(YKHO): return YKHO._vy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r3u2(YKHO, *qIxc, **B2fa) -> ImMB:\n pass", "def _I6A(YKHO):\n YKHO._vy = tuKI.uniform(-1.1, -0.9) * YKHO._vy", "def CD56(YKHO, LVAh):\n YKHO.x = LVAh[0]\n YKHO.y = LVAh[1]\n YKHO.vx = LVAh[2]\n YKHO.vy = LVAh[3]", "def Uk5V(YKHO):\n return YKHO.v", "def jAHO(YKHO):\n Aofo = sup...
[ "0.6559114", "0.63365656", "0.62993044", "0.62750775", "0.6143195", "0.6141476", "0.61090714", "0.60762995", "0.6031575", "0.6014166", "0.6000758", "0.5994763", "0.59892905", "0.59534085", "0.59172595", "0.5902815", "0.589019", "0.58460635", "0.58299166", "0.58198285", "0.581...
0.62280494
4
getter for y pos of ball
def HQQh(YKHO): return YKHO.y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BBTF(YKHO):\n return YKHO.position.y", "def CU0i(YKHO):\n return YKHO.__pos_y", "def LVAh(YKHO):\n return YKHO.position.y", "def DppO(YKHO):\n return YKHO.Direction['y']", "def rjJy(YKHO) -> (int, int):\n return (YKHO.x, YKHO.y)", "def boAb(YKHO):\n return YKHO.rect.y", "def bDS1(...
[ "0.7891347", "0.7834176", "0.7785785", "0.76634204", "0.7573686", "0.7558997", "0.7516041", "0.750449", "0.74919546", "0.7452227", "0.7452227", "0.7451312", "0.7423825", "0.7392996", "0.73483646", "0.73150754", "0.73132163", "0.7293349", "0.72762716", "0.72368556", "0.7200504...
0.790157
0
For the curve C, Computes the locals extremas of curvature.
def A5sV(YKHO, *qIxc): return wSXc.Geom2dLProp_CurAndInf2d_PerformCurExt(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QtHY(YKHO, D8fe):\n DMVt = oyIN.equal(D8fe, YKHO.controlpoints).all()\n if DMVt:\n YKHO.crv_energies = []\n X74i = 0.0\n for YRbF in range(len(D8fe)):\n if YRbF < len(D8fe) - 2:\n yuVB = D8fe[YRbF]\n hG4W = D8fe[YRbF + 1]\n L310 = D8fe[YRbF + 2]\n ...
[ "0.67130774", "0.65826344", "0.65556866", "0.6366551", "0.6336396", "0.6316116", "0.6272855", "0.61964786", "0.6080913", "0.60582566", "0.60562235", "0.6024462", "0.5986874", "0.5933708", "0.5834163", "0.5833787", "0.58295995", "0.5770191", "0.5752753", "0.57357043", "0.56431...
0.0
-1
returns the last parameter bound of the curve. FirstParameter must be less than LastParameter.
def XkuO(*qIxc): return wSXc.Geom2dLProp_Curve2dTool_LastParameter(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yvre(*qIxc):\n return wSXc.Geom2dLProp_Curve2dTool_LastParameter(*qIxc)", "def pmnP(YKHO, SK6d=None):\n if SK6d is None:\n return [YKHO.get_bounds(XP5J) for XP5J in YKHO.shape_parameters]\n if SK6d in YKHO.shape_parameters.keys():\n X7zS = []\n for CLNC in YKHO.likelihood_list:\...
[ "0.6457522", "0.60364425", "0.6001334", "0.59667796", "0.5922735", "0.5891345", "0.587714", "0.58416635", "0.581489", "0.5797794", "0.579475", "0.5766311", "0.57518166", "0.57250553", "0.5715133", "0.56862664", "0.56837034", "0.5680519", "0.5672987", "0.5671046", "0.56687105"...
0.7123234
0
returns the last parameter bound of the curve. FirstParameter must be less than LastParameter.
def Yvre(*qIxc): return wSXc.Geom2dLProp_Curve2dTool_LastParameter(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XkuO(*qIxc):\n return wSXc.Geom2dLProp_Curve2dTool_LastParameter(*qIxc)", "def pmnP(YKHO, SK6d=None):\n if SK6d is None:\n return [YKHO.get_bounds(XP5J) for XP5J in YKHO.shape_parameters]\n if SK6d in YKHO.shape_parameters.keys():\n X7zS = []\n for CLNC in YKHO.likelihood_list:\...
[ "0.7122676", "0.6038244", "0.5999881", "0.5964987", "0.5922051", "0.5889614", "0.5876017", "0.5840431", "0.5814702", "0.57982117", "0.5793289", "0.5765686", "0.5750727", "0.5727082", "0.57131803", "0.5686352", "0.5685996", "0.56792235", "0.5671481", "0.56697", "0.5668643", ...
0.6457023
1
Reset the distance to 0
def MvZ8(YKHO): RKD7.trace('Neuron.reset_dist()') YKHO.dist = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO) -> None:\n YKHO._dist['current'] = oyIN.copy(YKHO._dist['initial'])", "def SiRx(YKHO):\n YKHO.m = NkkI(YKHO.m0)\n YKHO.t = 0.0", "def SiRx(YKHO):\n YKHO._x = 0\n YKHO._y = 0", "def aKSL(YKHO):\n pass", "def SiRx(YKHO):\n YKHO.z[:] = 0", "def SiRx(YKHO):\n YKHO.visit...
[ "0.7505246", "0.67828476", "0.6779062", "0.6744572", "0.674133", "0.66887504", "0.66600883", "0.6635699", "0.66124755", "0.660485", "0.660485", "0.65931296", "0.6554118", "0.6514976", "0.65002465", "0.649002", "0.64835036", "0.64688206", "0.6462586", "0.64298105", "0.6422773"...
0.7933506
0
Returns first n items of the iterable as a list.
def _iMd(OxJJ, exwG): return list(Hs6x.islice(OxJJ, exwG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iMd(exwG, OxJJ):\n return list(Hs6x.islice(OxJJ, exwG))", "def _iMd(exwG, OxJJ):\n return list(Hs6x.islice(OxJJ, exwG))", "def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))", "def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))", "def _iMd(mLGw, OxJJ):\n return list(uOgj(OxJJ, mLG...
[ "0.81575644", "0.81575644", "0.81350166", "0.81350166", "0.77691907", "0.76996034", "0.7413426", "0.71268004", "0.6986541", "0.6937001", "0.68909377", "0.68847245", "0.68090135", "0.6808583", "0.6805742", "0.6782021", "0.67778486", "0.6764092", "0.6736692", "0.6717172", "0.67...
0.82187545
0
Gets the keyguard_disabled of this EnterprisePolicyData. Should KeyGuard be disabled?
def n5P9(YKHO): return YKHO._keyguard_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n5P9(YKHO, n5P9):\n YKHO._keyguard_disabled = n5P9", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def GYZl(YKHO) -> bool:\n return YKHO._get_disable_secret_rotation(enable_validation=True)", "def lbi2(YKHO):\n return YKHO._disabled", "def lbi2(...
[ "0.7200868", "0.63610506", "0.63610506", "0.62397677", "0.59635055", "0.59635055", "0.59004337", "0.5887258", "0.58351266", "0.58351266", "0.5832192", "0.5817052", "0.576621", "0.57593375", "0.57593375", "0.57201785", "0.5690402", "0.56840986", "0.5679228", "0.56697977", "0.5...
0.8478754
0
Gets the safe_boot_disabled of this EnterprisePolicyData. Should SafeBoot be disabled?
def Y_ZA(YKHO): return YKHO._safe_boot_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y_ZA(YKHO, Y_ZA):\n YKHO._safe_boot_disabled = Y_ZA", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def cNBO(YKHO):\n return YKHO.disabled", "def cM7P(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'enable_secure_boot')", "def lbi2(YKH...
[ "0.7390593", "0.6653444", "0.6653444", "0.64111996", "0.6409013", "0.6250641", "0.6250641", "0.62343067", "0.62289745", "0.62265426", "0.6220577", "0.6220577", "0.6206231", "0.6206231", "0.61575866", "0.61411977", "0.61411977", "0.61411977", "0.61411977", "0.61411977", "0.614...
0.83765495
0
Gets the status_bar_disabled of this EnterprisePolicyData. Should Status Bar be disabled?
def VFA5(YKHO): return YKHO._status_bar_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VFA5(YKHO, VFA5):\n YKHO._status_bar_disabled = VFA5", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def n30Z(YKHO):\n etR_ = YKHO.settings.get('show_status_bar_text', False)\n if YKHO.template and (not etR_):\n YKHO.template = None\n ...
[ "0.74535227", "0.6722495", "0.6722495", "0.6646602", "0.6449252", "0.64188486", "0.63019514", "0.63019514", "0.621331", "0.621331", "0.61662", "0.6083129", "0.6083129", "0.6022058", "0.6003529", "0.6003529", "0.6002849", "0.59575355", "0.5948241", "0.593245", "0.5929588", "...
0.8697627
0
Gets the factory_reset_disabled of this EnterprisePolicyData. Should Factory Reset be disabled?
def NYyL(YKHO): return YKHO._factory_reset_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NYyL(YKHO, NYyL):\n YKHO._factory_reset_disabled = NYyL", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def lbi2(YKHO):\n return YKHO._disabled", "def lbi2(YKHO):\n return YKHO._disabled", "def cNBO(YKHO):\n return YKHO.disabled", "def l5xl...
[ "0.7113954", "0.6575864", "0.6575864", "0.63107055", "0.63107055", "0.621083", "0.59006196", "0.58927983", "0.58911175", "0.58911175", "0.5849069", "0.5849069", "0.5818833", "0.57972836", "0.5781367", "0.57740253", "0.57740253", "0.57740253", "0.57740253", "0.57740253", "0.57...
0.83381164
0
Gets the screenshot_disabled of this EnterprisePolicyData. Should Screenshot capability be disabled?
def wzvF(YKHO): return YKHO._screenshot_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzvF(YKHO, wzvF):\n YKHO._screenshot_disabled = wzvF", "def KKfT(YKHO):\n return YKHO.bmpDisabled", "def Sbrm(YKHO):\n return YKHO.GetRotatedBitmap(True)", "def fq11(*qIxc, **B2fa):\n return nAU3.Bitmap_ConvertToDisabled(*qIxc, **B2fa)", "def qhUu(YKHO):\n return YKHO._disabled", "def ...
[ "0.72738385", "0.6528808", "0.6448583", "0.593619", "0.5917232", "0.5917232", "0.56591266", "0.5643724", "0.5611778", "0.5580503", "0.5577834", "0.5573268", "0.55604684", "0.5482783", "0.54307055", "0.54307055", "0.54008627", "0.53978443", "0.53978443", "0.5394065", "0.538796...
0.8231866
0
Gets the usb_connectivity_disabled of this EnterprisePolicyData. Should USB connectivity be disabled?
def zWwx(YKHO): return YKHO._usb_connectivity_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zWwx(YKHO, zWwx):\n YKHO._usb_connectivity_disabled = zWwx", "def wF0B(YKHO):\n return YKHO._usb_file_transfer_disabled", "def WxAH(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'internet_advertising_disabled')", "def WxAH(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, '...
[ "0.73084444", "0.6636932", "0.66190463", "0.65761167", "0.65761167", "0.6522063", "0.6507995", "0.6430008", "0.6430008", "0.6398719", "0.6220172", "0.6180341", "0.60755545", "0.60755545", "0.60121185", "0.5991282", "0.59806025", "0.59806025", "0.59601355", "0.5942131", "0.594...
0.85685694
0
Gets the sms_disabled of this EnterprisePolicyData. Should SMS functionality be disabled?
def cQyc(YKHO): return YKHO._sms_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cQyc(YKHO, cQyc):\n YKHO._sms_disabled = cQyc", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def YCD2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'disabled_by_microsoft')", "def lbi2(YKHO):\n return YKHO._disabled", "def lbi2(YKHO):\n ...
[ "0.7172404", "0.6881718", "0.6881718", "0.6523218", "0.65190893", "0.65190893", "0.651552", "0.63809675", "0.6341673", "0.6341673", "0.6332978", "0.6332978", "0.62760913", "0.62579006", "0.62335503", "0.6168145", "0.6153863", "0.61510116", "0.61399907", "0.61192054", "0.61059...
0.8752758
0
Gets the outgoing_calls_disabled of this EnterprisePolicyData. Should Outgoing Calls be disabled?
def LIOP(YKHO): return YKHO._outgoing_calls_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LIOP(YKHO, LIOP):\n YKHO._outgoing_calls_disabled = LIOP", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def cQyc(YKHO):\n return YKHO._sms_disabled", "def zWwx(YKHO):\n return YKHO._usb_connectivity_disabled", "def gv1u(YKHO) -> qe4Y.Output[h8n...
[ "0.72864264", "0.6248445", "0.6248445", "0.59462637", "0.5855898", "0.58264804", "0.582112", "0.582112", "0.5801426", "0.578343", "0.5775901", "0.5728235", "0.5728235", "0.57163405", "0.5705044", "0.5642422", "0.5589621", "0.5560569", "0.5510928", "0.5505026", "0.5462166", ...
0.84614015
0
Gets the camera_disabled of this EnterprisePolicyData. Should Camera be disabled?
def CREj(YKHO): return YKHO._camera_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CREj(YKHO, CREj):\n YKHO._camera_disabled = CREj", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def Lfc2(YKHO):\n return YKHO.with_allowed_capture_methods(TqWD)", "def lbi2(YKHO):\n return YKHO._disabled", "def lbi2(YKHO):\n return YKHO._dis...
[ "0.67820245", "0.6464067", "0.6464067", "0.61199194", "0.60771465", "0.60771465", "0.60660094", "0.6052308", "0.60207635", "0.6010918", "0.60093695", "0.5928136", "0.5919576", "0.58646256", "0.5849397", "0.5849397", "0.583894", "0.58233166", "0.58186275", "0.58186275", "0.580...
0.83048266
0
Gets the nfc_beam_disabled of this EnterprisePolicyData. Should NFC capability be disabled?
def OqmA(YKHO): return YKHO._nfc_beam_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OqmA(YKHO, OqmA):\n YKHO._nfc_beam_disabled = OqmA", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def lbi2(YKHO):\n return YKHO._disabled", "def lbi2(YKHO):\n return YKHO._disabled", "def lbi2(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y....
[ "0.68498826", "0.65092266", "0.65092266", "0.61811626", "0.61811626", "0.6083915", "0.6083915", "0.6023776", "0.6023776", "0.6023776", "0.6023776", "0.6023776", "0.6023776", "0.6023776", "0.6023776", "0.6023776", "0.6023776", "0.6023776", "0.6023776", "0.6018145", "0.60106605...
0.83862484
0
Gets the disable_play_store of this EnterprisePolicyData. Should Google Play Store be disabled on the device?
def GrdZ(YKHO): return YKHO._disable_play_store
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GrdZ(YKHO, GrdZ):\n YKHO._disable_play_store = GrdZ", "def uKVB(YKHO):\n return YKHO._google_assistant_disabled", "def htPY(YKHO) -> bool:\n return YKHO._get_disable_vpa(enable_validation=True)", "def JmkF(YKHO):\n return YKHO._app_uninstall_disabled", "def l5xl(YKHO):\n return YKHO.dp.s...
[ "0.67411476", "0.62381124", "0.5966748", "0.5835287", "0.5787932", "0.5758111", "0.5758111", "0.54934967", "0.54858977", "0.5424671", "0.5370296", "0.53417575", "0.53410286", "0.53410286", "0.53338623", "0.53246135", "0.52758753", "0.52758753", "0.52413815", "0.5234032", "0.5...
0.7489574
0
Gets the usb_file_transfer_disabled of this EnterprisePolicyData. Should USB File transfer capability be disabled?
def wF0B(YKHO): return YKHO._usb_file_transfer_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wF0B(YKHO, wF0B):\n YKHO._usb_file_transfer_disabled = wF0B", "def zWwx(YKHO):\n return YKHO._usb_connectivity_disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO, YwkQ):\n return YKHO.disabled_extensions.get(YwkQ, set())", "d...
[ "0.7598133", "0.6734313", "0.61178195", "0.61178195", "0.59960717", "0.5880824", "0.5690624", "0.5690624", "0.5653857", "0.56121093", "0.553727", "0.55300695", "0.55204105", "0.55204105", "0.5482276", "0.5482276", "0.5481272", "0.5475121", "0.5470619", "0.54598343", "0.542640...
0.87092835
0
Gets the tethering_disabled of this EnterprisePolicyData. Should USB Tethering capability be enabled?
def OkeE(YKHO): return YKHO._tethering_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OkeE(YKHO, OkeE):\n YKHO._tethering_disabled = OkeE", "def cNBO(YKHO):\n return YKHO.disabled", "def zWwx(YKHO):\n return YKHO._usb_connectivity_disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def l5xl(YKHO):\n return YKHO.dp.state()...
[ "0.73254204", "0.68872803", "0.67699915", "0.6558379", "0.6558379", "0.6185234", "0.61407804", "0.6069275", "0.6066387", "0.6058252", "0.6055202", "0.6055202", "0.6051816", "0.6051816", "0.6040931", "0.6040931", "0.6005233", "0.5985059", "0.5978466", "0.5978466", "0.59162706"...
0.8331209
0
Gets the date_time_config_disabled of this EnterprisePolicyData. Should Date/Time configuration capability be disabled?
def Z5ED(YKHO): return YKHO._date_time_config_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z5ED(YKHO, Z5ED):\n YKHO._date_time_config_disabled = Z5ED", "def GzDx(YKHO):\n return YKHO._time_enabled", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def kAjm(YKHO):\n if 'whenPartnerDevicesWillBeMarkedAsNonCompliantDateTime' in YKHO._prop_dic...
[ "0.76061946", "0.61147267", "0.58484846", "0.58484846", "0.5555435", "0.55163604", "0.54714346", "0.54714346", "0.54160744", "0.5353573", "0.5353046", "0.5353046", "0.5340037", "0.5340037", "0.53051424", "0.5288566", "0.5288566", "0.5260728", "0.5248667", "0.5201838", "0.5185...
0.84551173
0
Gets the app_uninstall_disabled of this EnterprisePolicyData. Should App uninstall capability be disabled?
def JmkF(YKHO): return YKHO._app_uninstall_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmkF(YKHO, JmkF):\n YKHO._app_uninstall_disabled = JmkF", "def kiwm(YKHO):\n return YKHO._adb_disabled", "def EKPp(YKHO):\n return YKHO._disable_local_app_install", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def Y_ZA(YKHO):\n return YKHO._...
[ "0.74822974", "0.5971417", "0.5911451", "0.5854653", "0.5854653", "0.58457893", "0.571765", "0.5676504", "0.5659239", "0.55945665", "0.5547171", "0.5545721", "0.55407566", "0.5423077", "0.5422401", "0.54107237", "0.5398602", "0.53798693", "0.53621984", "0.5330927", "0.5330927...
0.84912926
0
Sets the app_uninstall_disabled of this EnterprisePolicyData. Should App uninstall capability be disabled?
def JmkF(YKHO, JmkF): YKHO._app_uninstall_disabled = JmkF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmkF(YKHO):\n return YKHO._app_uninstall_disabled", "def drCV(YKHO):\n YKHO._installed_apps_remove()", "def EKPp(YKHO, EKPp):\n YKHO._disable_local_app_install = EKPp", "def EKPp(YKHO):\n return YKHO._disable_local_app_install", "def r4sz(YKHO, kvcN=None):\n RBVb = YKHO.socket_command_wi...
[ "0.78517693", "0.64427704", "0.6069429", "0.5957001", "0.5747844", "0.57043254", "0.5674913", "0.549833", "0.5425248", "0.5392206", "0.53725624", "0.5351736", "0.5334732", "0.52983314", "0.5258369", "0.52551895", "0.52491987", "0.5238037", "0.52285385", "0.5210205", "0.521020...
0.86784655
0
Gets the google_assistant_disabled of this EnterprisePolicyData. Should Google Assistant feature be disabled?
def uKVB(YKHO): return YKHO._google_assistant_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKVB(YKHO, uKVB):\n YKHO._google_assistant_disabled = uKVB", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def lbi2(YKHO):\n return YKHO._disabled", "def lbi2(YKHO):\n return YKHO._disabled", "def lbi2(YKHO) -> qe4Y.Output[h8nf[bool]]:\n retu...
[ "0.71877706", "0.68915147", "0.68915147", "0.63962644", "0.63962644", "0.63898474", "0.63898474", "0.6332069", "0.6332069", "0.63273716", "0.63197803", "0.6299147", "0.62521595", "0.62521595", "0.623085", "0.62268746", "0.6211239", "0.6211239", "0.6211239", "0.6211239", "0.62...
0.8664455
0
Gets the adb_disabled of this EnterprisePolicyData. Should Android Debugger be disabled?
def kiwm(YKHO): return YKHO._adb_disabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kiwm(YKHO, kiwm):\n YKHO._adb_disabled = kiwm", "def l5xl(YKHO):\n return YKHO.dp.state() == Dosg.DevState.DISABLE", "def qhUu(YKHO):\n return YKHO._disabled", "def qhUu(YKHO):\n return YKHO._disabled", "def zWwx(YKHO):\n return YKHO._usb_connectivity_disabled", "def cNBO(YKHO):\n r...
[ "0.7170552", "0.71516275", "0.6721604", "0.6721604", "0.6597002", "0.6489791", "0.6427642", "0.63761896", "0.63761896", "0.63490367", "0.632234", "0.632234", "0.62178594", "0.6215352", "0.61542517", "0.61542517", "0.6152051", "0.6150517", "0.614931", "0.6102324", "0.6102324",...
0.84772503
0
Gets the phone_policy of this EnterprisePolicyData.
def C43n(YKHO): return YKHO._phone_policy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bWtk(YKHO):\n return YKHO._phone", "def bWtk(YKHO):\n return YKHO._phone", "def bWtk(YKHO):\n return YKHO._phone", "def bWtk(YKHO):\n return YKHO._phone", "def yJYn(YKHO):\n return YKHO._personal_phone", "def SB2j(YKHO):\n return YKHO.phone", "def C43n(YKHO, C43n):\n YKHO._phon...
[ "0.64020115", "0.63283277", "0.63283277", "0.63283277", "0.6299696", "0.62436295", "0.6183605", "0.59960383", "0.59289145", "0.592715", "0.59175825", "0.5837716", "0.5826304", "0.5793685", "0.5793685", "0.5772779", "0.5724893", "0.5711506", "0.55813533", "0.55791116", "0.5515...
0.8572655
0
Sets the phone_policy of this EnterprisePolicyData.
def C43n(YKHO, C43n): YKHO._phone_policy = C43n
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bWtk(YKHO, bWtk):\n if YKHO.local_vars_configuration.client_side_validation and bWtk is None:\n raise ValueError('Invalid value for `phone`, must not be `None`')\n YKHO._phone = bWtk", "def x3_F(YKHO, bWtk):\n YKHO.phone = bWtk\n return YKHO", "def x3_F(YKHO, bWtk):\n YKHO.phone = bWt...
[ "0.6692906", "0.659589", "0.6418374", "0.64074653", "0.64074653", "0.64074653", "0.64074653", "0.64074653", "0.633074", "0.6215301", "0.59624034", "0.59274197", "0.57776195", "0.5515008", "0.55033946", "0.5404319", "0.5404319", "0.5344793", "0.5344793", "0.5344793", "0.534479...
0.8585835
0
Gets the device_password_policy of this EnterprisePolicyData.
def FM1G(YKHO): return YKHO._device_password_policy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def blbd(YKHO) -> 'outputs.PasswordValidationPolicyResponse':\n return qe4Y.get(YKHO, 'password_validation_policy')", "def FM1G(YKHO, FM1G):\n YKHO._device_password_policy = FM1G", "def kAo5(YKHO):\n return YKHO._device_update_policy", "def aTif(YKHO):\n if 'passwordPolicies' in YKHO._prop_dict:\...
[ "0.6621351", "0.64411545", "0.63904023", "0.62989235", "0.62989235", "0.61246306", "0.61246306", "0.6047178", "0.6047178", "0.6033519", "0.6033519", "0.58371216", "0.570245", "0.55293566", "0.5502047", "0.54860216", "0.5485863", "0.5461407", "0.5431872", "0.534722", "0.534015...
0.85603786
0
Sets the device_password_policy of this EnterprisePolicyData.
def FM1G(YKHO, FM1G): YKHO._device_password_policy = FM1G
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FM1G(YKHO):\n return YKHO._device_password_policy", "def kAo5(YKHO, kAo5):\n YKHO._device_update_policy = kAo5", "def dGmD(begE, jTXt, CX3n=None, uC8k=None):\n if CX3n:\n GPtr = 'no enable common-criteria-policy {pol} password {ptype} {pwd}'.format(pol=CX3n, ptype=uC8k, pwd=jTXt)\n else:...
[ "0.67319477", "0.63873446", "0.6014038", "0.59457594", "0.54061604", "0.5340421", "0.5269174", "0.52671254", "0.52561945", "0.5237785", "0.52311504", "0.5182032", "0.51553065", "0.51503515", "0.51477236", "0.51477236", "0.51477236", "0.51477236", "0.5145184", "0.5092492", "0....
0.87224925
0
Gets the minimum_password_length of this EnterprisePolicyData. What is the minimum length for your device's password
def aZcx(YKHO): return YKHO._minimum_password_length
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OaGU(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'password_min_length')", "def OaGU(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'password_min_length')", "def OaGU(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'password_min_length')", "def JW3T(YKHO):\n retur...
[ "0.8269237", "0.81490684", "0.81490684", "0.73351914", "0.7320023", "0.72430795", "0.7170308", "0.71399117", "0.7060607", "0.6872928", "0.6872928", "0.6820458", "0.6628853", "0.6577", "0.64872855", "0.64872855", "0.6469215", "0.6380859", "0.6363847", "0.6363847", "0.6340418",...
0.8571683
0
Sets the minimum_password_length of this EnterprisePolicyData. What is the minimum length for your device's password
def aZcx(YKHO, aZcx): if aZcx is not None and aZcx < 4: raise ValueError('Invalid value for `minimum_password_length`, must be a value greater than or equal to `4`') YKHO._minimum_password_length = aZcx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aZcx(YKHO):\n return YKHO._minimum_password_length", "def Bjvo(wvEv):\n wvEv.add_argument('--password-policy-min-length', type=int, required=False, default=None, help='Minimum number of characters allowed in the password.')", "def OaGU(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'passw...
[ "0.7464518", "0.7165207", "0.710996", "0.710996", "0.7072664", "0.687956", "0.6592008", "0.6480402", "0.6480402", "0.6480402", "0.6480402", "0.6392565", "0.6348436", "0.6323774", "0.6073071", "0.6009355", "0.59730333", "0.59730333", "0.59248763", "0.58945364", "0.5894292", ...
0.8176562
0
Gets the device_update_policy of this EnterprisePolicyData.
def kAo5(YKHO): return YKHO._device_update_policy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kAo5(YKHO, kAo5):\n YKHO._device_update_policy = kAo5", "def FM1G(YKHO):\n return YKHO._device_password_policy", "def Qabx(YKHO) -> qlTl:\n return YKHO._policy", "def sZqe(YKHO) -> laHg.Optional[lTJ4.core.RemovalPolicy]:\n return YKHO._values.get('removal_policy')", "def sZqe(YKHO) -> laHg....
[ "0.6432895", "0.57799953", "0.56302893", "0.55358505", "0.55358505", "0.55358505", "0.54661334", "0.53477", "0.53179884", "0.52889603", "0.5261793", "0.5185718", "0.5161576", "0.5151737", "0.513496", "0.513496", "0.513496", "0.513496", "0.5073536", "0.49513724", "0.49513724",...
0.8377561
0
Gets the settings_app_password of this EnterprisePolicyData. Lock Password (optional) for the ESPER Settings app
def o8S8(YKHO): return YKHO._settings_app_password
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o8S8(YKHO, o8S8):\n YKHO._settings_app_password = o8S8", "def FM1G(YKHO):\n return YKHO._device_password_policy", "def Akm_(YKHO):\n if 'password' in YKHO._config:\n return YKHO._config['password']\n else:\n while True:\n jTXt = YKHO._UI.get_password('Please enter your ...
[ "0.7278267", "0.6232522", "0.62071407", "0.60912085", "0.60912085", "0.60771084", "0.6060172", "0.6055608", "0.59419876", "0.59418386", "0.593273", "0.59198594", "0.5890641", "0.5890315", "0.5867784", "0.5866768", "0.5865266", "0.5863915", "0.5863915", "0.5863915", "0.5840755...
0.8161488
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, ZKE7): 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.84560555", "0.83913696", "0.8143685", "0.81403786", "0.8131871", "0.8093231", "0.80915105", "0.80915105", "0.80915105", "0.8084564", "0.8084564", "0.8075547", "0.8075547", "0.8065006" ]
0.0
-1
Utility method to read a json file schema
def PSj2(wM3v): with open(wM3v) as uPxI: wEf2 = qQXR.load(uPxI) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGX2(Ux0P):\n t_yv = gzes('schemas', Ux0P)\n SOoY = gzes(TLI7(xAKo), t_yv)\n with open(SOoY) as Iw0D:\n return qQXR.loads(Iw0D.read())", "def CVxz(itjy):\n with open(itjy) as eHNT:\n uPxI = qQXR.load(eHNT)\n return uPxI", "def SGX2(Ux0P: str):\n t_yv = pmON.join('schemas', U...
[ "0.7936051", "0.7901159", "0.78531134", "0.7839239", "0.7739872", "0.7726507", "0.7724807", "0.76740587", "0.765706", "0.7566453", "0.69441533", "0.6715418", "0.6645315", "0.6624186", "0.6619392", "0.66133434", "0.6612658", "0.6610534", "0.65290445", "0.6522143", "0.65186304"...
0.7506015
10
Initialize a new Perceptron instance. A perceptron classifies data points as either belonging to a particular class (+1) or not (1). `dimensions` is the dimensionality of the data. For example, dimensions=2 would mean that the perceptron must classify 2D points.
def FIMM(YKHO, DbyF): YKHO.w = U78l.Parameter(1, DbyF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HH5O(Xi9O: List[SentimentExample], penX: FeatureExtractor) -> QvYK:\n raise Exception('Must be implemented')", "def HH5O(Xi9O: List[SentimentExample], penX: FeatureExtractor) -> QvYK:\n raise Exception('Must be implemented')", "def FIMM(YKHO, xhie, YDYE='relu', lQ3t=0.001, sSDk=5, t3eI=0):\n print...
[ "0.6328094", "0.6328094", "0.60307497", "0.57515126", "0.57284737", "0.57270014", "0.57080954", "0.56603783", "0.5654134", "0.5612423", "0.55629176", "0.55192095", "0.5508208", "0.5499397", "0.545328", "0.54508346", "0.5441534", "0.54262036", "0.5389387", "0.5385642", "0.5373...
0.5599541
11
Calculates the predicted class for a single data point `x`.
def wu2I(YKHO, WKvO): """*** YOUR CODE HERE ***""" X6_J = U78l.as_scalar(YKHO.run(WKvO)) if X6_J < 0: return -1 else: return 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, WKvO):\n aTLP = [J_Es.predict(WKvO) for J_Es in YKHO.forest]\n if YKHO.classify:\n h6DL = [0] * YKHO.param['numClasses']\n for XP5J in aTLP:\n h6DL[XP5J] += 1\n return q1NN(h6DL)\n else:\n return sum(aTLP) / (len(aTLP) * 1.0)", "def YEmv(YKHO, WKvO):...
[ "0.7661864", "0.75725013", "0.7557718", "0.754271", "0.751603", "0.7362721", "0.73497975", "0.73497975", "0.73248315", "0.72767216", "0.7252811", "0.72328496", "0.72281516", "0.7220185", "0.72055614", "0.71956426", "0.71938753", "0.71757466", "0.71692836", "0.71511495", "0.71...
0.0
-1
Set the action command object based on the yaml provided value.
def IW5F(YKHO): if YKHO.action.value == 'start': YKHO.action_command = YKHO.ServerStartSubCommand() else: YKHO.action_command = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FGnS(YKHO, BWXx):\n return YKHO._set(action=BWXx)", "def w47F(YKHO, XeOP):\n if YKHO.args.snapcheck is True:\n XeOP = 'snapcheck'\n if YKHO.args.check is True:\n XeOP = 'check'\n if YKHO.args.snap is True:\n XeOP = 'snap'\n if YKHO.args.diff is True:\n XeOP = 'diff'...
[ "0.60741985", "0.5902346", "0.5685571", "0.5663917", "0.5653658", "0.5653658", "0.5568884", "0.5453069", "0.5453069", "0.5453069", "0.5453069", "0.5453069", "0.5453069", "0.5444866", "0.5422436", "0.54030555", "0.5380244", "0.53319967", "0.53319967", "0.53319967", "0.5295152"...
0.5252781
27
Create a DaosServerConfig object.
def FIMM(YKHO): super(rHBG, YKHO).__init__('/run/server_config/*') YKHO.name = LlXQ(None, 'daos_server') YKHO.access_points = LlXQ(None) YKHO.port = LlXQ(None, 10001) YKHO.provider = LlXQ(None, 'ofi+sockets') YKHO.socket_dir = LlXQ(None) YKHO.nr_hugepages = LlXQ(None, 4096) YKHO.control_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BNGj(YKHO) -> None:\n pass", "def BNGj(YKHO) -> None:\n pass", "def FIMM(YKHO, d6pt=None):\n _63S = '/run/server_config/servers/*'\n if isinstance(d6pt, int):\n _63S = '/run/server_config/servers/{}/*'.format(d6pt)\n super(rHBG.SingleServerConfig, YKHO).__init__(_63S)\n nay6 = Hy7s...
[ "0.6484697", "0.6484697", "0.6008529", "0.59743756", "0.5901469", "0.5690002", "0.56122255", "0.55644786", "0.55335927", "0.54810846", "0.54810846", "0.5434671", "0.54337317", "0.5401697", "0.5370176", "0.5357134", "0.5341255", "0.53370327", "0.5334033", "0.5316994", "0.53133...
0.7148316
0
Create a yaml file from the parameter values.
def cur4(YKHO, Ux0P): N_e1 = Hy7s.environ.get('DAOS_TEST_LOG_DIR', '/tmp') cwkY = {'servers': []} for mWFP in YKHO.get_param_names(): if mWFP != 'servers_per_host': BWXx = getattr(YKHO, mWFP).value if BWXx is not None and BWXx is not False: if mWFP.endswith('l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FMA5(YKHO, Ux0P):\n pmON = Hy7s.path.dirname(xAKo) + '/' + Ux0P\n wOb_ = open(pmON, 'w')\n eJb6.dump(YKHO.parameters(), wOb_)", "def IuY5(YKHO):\n pass", "def eK0e(input, JMlD=None):\n KI0p = ['date_obs', 'time_obs']\n JMlD = JMlD or Hy7s.path.join(input['Output']['directory'], 'paramfile...
[ "0.7031866", "0.69381", "0.6852262", "0.6583802", "0.65791804", "0.63603985", "0.63350266", "0.632087", "0.6317282", "0.6237005", "0.6174158", "0.61437964", "0.61359924", "0.6088672", "0.60867244", "0.6028629", "0.5943792", "0.5898062", "0.5865599", "0.58397055", "0.5832636",...
0.664645
3
Attempts to get an iterable's itemtype without iterating over it, not even partly. Note that iterating over an iterable might modify its inner state, e.g. if it is an iterator. Note that obj is expected to be an iterable, not a typing.Iterable. This function leverages various alternative ways to obtain that info, e.g. ...
def fYiA(YEnM): if isinstance(YEnM, jKhx): return YEnM.itemtype try: if isinstance(YEnM, range): TPwt = tuple(u96A(YEnM.start), u96A(YEnM.stop), u96A(YEnM.step)) return uLKX[TPwt] except TypeError: pass if type(YEnM) is tuple: TPwt = tuple((u96A(a1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VHSk(YEnM):\n if YEnM is None:\n return ()\n if isinstance(YEnM, g760.Iterable) and (not isinstance(YEnM, jKi7.string_types)):\n return YEnM\n return (YEnM,)", "def aQZ9(object):\n oHE7 = None\n try:\n oHE7 = iter(object)\n except TypeError:\n pass\n return oH...
[ "0.6349445", "0.60908026", "0.6062485", "0.5892823", "0.58469146", "0.5830642", "0.5809319", "0.5732307", "0.5696652", "0.56577265", "0.56553054", "0.5632198", "0.5613213", "0.5610289", "0.54935426", "0.54694635", "0.543611", "0.53736067", "0.53349006", "0.53149056", "0.52387...
0.8030404
0
Python version independent function to check if a typing.Tuple object contains an ellipsis.
def ebYN(TPwt): try: return TPwt.__tuple_use_ellipsis__ except AttributeError: try: if TPwt.__args__ is None: return False if TPwt.__args__[-1] is Ellipsis: return True except AttributeError: pass return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H0rM(Q6kx):\n return isinstance(Q6kx, kayZ.Constant) and Q6kx.value == Ellipsis", "def zg_v(BWXx: Any, ICn2: Any) -> bool:\n return BWXx == ...", "def U0Mk(YKHO):\n if YKHO.is_function() and YKHO.args:\n return YKHO.args[-1].endswith('...')\n return False", "def flos(nPrm):\n try:\n...
[ "0.6667289", "0.6526774", "0.63408387", "0.62675333", "0.6230002", "0.61231893", "0.5935019", "0.59146523", "0.5835167", "0.5799875", "0.5777628", "0.5664965", "0.5664788", "0.565639", "0.5650909", "0.5643989", "0.56232226", "0.5580962", "0.55418825", "0.5530617", "0.55229425...
0.85951304
0
Tests if an object is an iterator. This function is intentionally not capitalized, because it does not check w.r.t. (capital) Iterator class from typing.
def aRHW(YEnM): return isinstance(YEnM, g760.Iterator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aRHW(YEnM: Any) -> bool:\n if isinstance(YEnM, g760.abc.Iterator):\n return True\n else:\n try:\n return iter(YEnM) is YEnM\n except TypeError:\n return False", "def aRHW(YEnM):\n Emd4 = YEnM.__class__\n return hasattr(Emd4, '__next__') and (not hasattr(...
[ "0.8979375", "0.8547539", "0.8483118", "0.81119794", "0.7411472", "0.74110585", "0.7298827", "0.72313434", "0.7209773", "0.7188771", "0.7155902", "0.7039577", "0.69884765", "0.6983092", "0.6875408", "0.67790437", "0.6655707", "0.66470045", "0.664298", "0.662143", "0.658055", ...
0.9035219
0
Python version independent check if an object is a type. For Python 3.7 onwards(?) this is not equivalent to ``isinstance(tp, type)`` any more, as that call would return ``False`` for PEP 484 types. Tested with CPython 2.7, 3.5, 3.6, 3.7 and Jython 2.7.1.
def Ykul(HRJ_): if isinstance(HRJ_, type): return True try: laHg._type_check(HRJ_, '') return True except TypeError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WUsn(YEnM):\n return type(YEnM) is type or type(YEnM) is SnBA.ClassType", "def WUsn(YEnM: Any) -> bool:\n return type(YEnM).__name__ == 'type'", "def ib6s(YEnM, ZGwW):\n return type(YEnM) == ZGwW", "def K5fQ(c13A):\n if c13A is None:\n return False\n if not DceF:\n return isi...
[ "0.7941886", "0.7800008", "0.76952165", "0.7620394", "0.7613953", "0.75986016", "0.7465807", "0.7419771", "0.7332141", "0.71256024", "0.7068957", "0.7029514", "0.69825554", "0.6938877", "0.6898511", "0.68506974", "0.6850466", "0.6807822", "0.67732465", "0.67732465", "0.677324...
0.76709735
3
Helper for _issubclass, a.k.a pytypes.issubtype. This subclasscheck treats Mappingvalues as covariant.
def YCux(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al): if V_gK(dm7U): LRWt = M84M(dm7U) if LRWt is None or not issubclass(LRWt, GySg): return aaFP(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al) if ICGX.__args__ is None: if not HYeo.check_unbound_types: raise T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9GV(BWXx, kN9s):\n try:\n return issubclass(BWXx, kN9s)\n except (TypeError, AttributeError):\n return False", "def Pdo3(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al):\n if SyxN(ICGX):\n return k5lg(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al)\n if ByBQ(ICGX):\n return QUUX(...
[ "0.72249764", "0.71801305", "0.70425856", "0.6948541", "0.64964324", "0.64868784", "0.64306223", "0.6357397", "0.63514256", "0.6306663", "0.62834364", "0.6234352", "0.6225228", "0.6199874", "0.61888766", "0.61707646", "0.6109152", "0.60952836", "0.6090366", "0.6071789", "0.59...
0.80307674
0
Retrieves the parameter value of a given TypeVar from a Generic. Returns None if the generic does not contain an appropriate value. Note that the TypeVar is compared by instance and not by name. E.g. using a local TypeVar T would yield different results than using typing.T despite the equal name.
def b48V(Fydu, ngUu, ecj3=None): if not V_gK(ngUu): ngUu = XIWv(ngUu) return _ZWE(Fydu, ngUu, ngUu if ecj3 is None else ecj3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rp_s(hAEw):\n return i9KP[type(hAEw)]", "def WISv(SRYB, a8Pe=None, WmM4=Pgc9):\n return tTNd(QePW.form, SRYB, a8Pe, WmM4)", "def NrTR(kN9s: Type, YRbF: int, cpuL: Type):\n a4kW = kN9s.__orig_bases__[0].__args__[YRbF]\n if isinstance(a4kW, tnwy):\n a4kW = a4kW.__bound__\n assert issubc...
[ "0.569946", "0.5491743", "0.54188025", "0.53047514", "0.5279419", "0.52657616", "0.52205276", "0.5170485", "0.51688814", "0.51482314", "0.508686", "0.50577927", "0.49991065", "0.49764058", "0.4957105", "0.4925923", "0.49086618", "0.4879741", "0.48618522", "0.48428175", "0.482...
0.71086454
0
Helper for _issubclass, a.k.a pytypes.issubtype.
def aaFP(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al): if dm7U is None: return False dm7U = AkLn(dm7U) hLRM = M84M(ICGX) if SyxN(dm7U): B2xR = _Gxf(dm7U) if not B2xR is None and len(B2xR) == 0: qGZL = ICGX if hLRM is None else hLRM qGZL = AkLn(qGZL) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ja3L(gaYL, StMt):\n try:\n return issubclass(gaYL, StMt)\n except TypeError:\n return False", "def Z9GV(BWXx, kN9s):\n try:\n return issubclass(BWXx, kN9s)\n except (TypeError, AttributeError):\n return False", "def issubclass(YEnM, Emd4):\n if isinstance(YEnM, LH...
[ "0.79693806", "0.77963567", "0.74987507", "0.74248827", "0.72930634", "0.7287544", "0.72473264", "0.7244965", "0.7235188", "0.7154764", "0.7133687", "0.7130599", "0.7103767", "0.7098614", "0.70740604", "0.7029137", "0.7010398", "0.69921726", "0.6990751", "0.69684446", "0.6958...
0.67713994
43
Helper for _issubclass, a.k.a pytypes.issubtype.
def k5lg(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al): dm7U = AkLn(dm7U) if not Ykul(dm7U): return False if not SyxN(dm7U): if V_gK(dm7U): try: return aaFP(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al) except: pass elif ByBQ(dm7U): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ja3L(gaYL, StMt):\n try:\n return issubclass(gaYL, StMt)\n except TypeError:\n return False", "def Z9GV(BWXx, kN9s):\n try:\n return issubclass(BWXx, kN9s)\n except (TypeError, AttributeError):\n return False", "def issubclass(YEnM, Emd4):\n if isinstance(YEnM, LH...
[ "0.79691404", "0.7796277", "0.74985415", "0.7425355", "0.72926915", "0.7287119", "0.72477835", "0.7245316", "0.7234554", "0.7154465", "0.7134522", "0.7129982", "0.7103742", "0.70984006", "0.7073698", "0.7029286", "0.70102906", "0.69922197", "0.69905996", "0.69680697", "0.6958...
0.6240112
77
Helper for _issubclass, a.k.a pytypes.issubtype.
def QUUX(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al): if not gElq: return EXET(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al) try: return EXET(dm7U, ICGX, R7TM, _stK, zhjW, False, r9Al) except HYeo.ForwardRefError: return EXET(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ja3L(gaYL, StMt):\n try:\n return issubclass(gaYL, StMt)\n except TypeError:\n return False", "def Z9GV(BWXx, kN9s):\n try:\n return issubclass(BWXx, kN9s)\n except (TypeError, AttributeError):\n return False", "def issubclass(YEnM, Emd4):\n if isinstance(YEnM, LH...
[ "0.79693806", "0.77963567", "0.74987507", "0.74248827", "0.72930634", "0.7287544", "0.72473264", "0.7244965", "0.7235188", "0.7154764", "0.7133687", "0.7130599", "0.7103767", "0.7098614", "0.70740604", "0.7029137", "0.7010398", "0.69921726", "0.6990751", "0.69684446", "0.6958...
0.66757864
52
Helper for _issubclass, a.k.a pytypes.issubtype.
def GOs4(Emd4, P8oC): if Emd4 is P8oC: return True elif Emd4 is None: return False try: for lHmx in Emd4.__bases__: if GOs4(lHmx, P8oC): return True except: pass return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ja3L(gaYL, StMt):\n try:\n return issubclass(gaYL, StMt)\n except TypeError:\n return False", "def Z9GV(BWXx, kN9s):\n try:\n return issubclass(BWXx, kN9s)\n except (TypeError, AttributeError):\n return False", "def issubclass(YEnM, Emd4):\n if isinstance(YEnM, LH...
[ "0.79704076", "0.7798395", "0.7501563", "0.74257004", "0.72929996", "0.72874963", "0.72472686", "0.7244967", "0.72380066", "0.71578413", "0.71344805", "0.713397", "0.7107198", "0.7102151", "0.7079654", "0.7029404", "0.7013383", "0.6995514", "0.6993804", "0.6972097", "0.696194...
0.6003606
96
Helper for _issubclass, a.k.a pytypes.issubtype.
def Pdo3(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al): if SyxN(ICGX): return k5lg(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al) if ByBQ(ICGX): return QUUX(dm7U, ICGX, R7TM, _stK, zhjW, gElq, r9Al) if ByBQ(dm7U): return all((ehvi(a1PO, ICGX, R7TM, _stK, zhjW, gElq, r9Al) for a1PO in eBnQ(dm7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ja3L(gaYL, StMt):\n try:\n return issubclass(gaYL, StMt)\n except TypeError:\n return False", "def Z9GV(BWXx, kN9s):\n try:\n return issubclass(BWXx, kN9s)\n except (TypeError, AttributeError):\n return False", "def issubclass(YEnM, Emd4):\n if isinstance(YEnM, LH...
[ "0.79691404", "0.7796277", "0.74985415", "0.7425355", "0.72926915", "0.7287119", "0.72477835", "0.7234554", "0.7154465", "0.7134522", "0.7129982", "0.7103742", "0.70984006", "0.7073698", "0.7029286", "0.70102906", "0.69922197", "0.69905996", "0.69680697", "0.6958379", "0.6922...
0.7245316
7
Access this via ``pytypes.is_of_type``. Works like ``isinstance``, but supports PEP 484 style types from ``typing`` module.
def RH_m(YEnM, Emd4, R7TM=None, _stK=None, zhjW=False, gElq=True, r9Al=None): if _stK is None: _stK = {} if V_gK(Emd4) and Emd4.__origin__ is laHg.Iterable: if not GfZ5(YEnM): return False miXq = fYiA(YEnM) if miXq is None: return True else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RH_m(Emd4, WKvO):\n return isinstance(WKvO, Emd4.PYTHON_TYPE_CHECK)", "def WUsn(BWXx):\n if isinstance(BWXx, type):\n return issubclass(BWXx, eBH2)\n return isinstance(BWXx, eBH2)", "def RH_m(YKHO, BWXx: Any, cM24: Any) -> bool:\n zl6T = getattr(cM24, '__args__', ())\n if hasattr(cM24...
[ "0.7589273", "0.75746596", "0.7396936", "0.70493704", "0.70258564", "0.69741166", "0.6971388", "0.6839726", "0.6817796", "0.6776496", "0.67656595", "0.6722682", "0.6706711", "0.64954865", "0.6452313", "0.6429848", "0.6421443", "0.63997704", "0.6382379", "0.6359887", "0.631984...
0.575237
76
User should not be able to sign up with invalid first name
def wygs(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SUp5(YKHO):\n ptj7 = mv1M.signup('test@test.com', 'testuser', 'testpass', None, 'User', None)\n PObu = 99999\n ptj7.id = PObu\n with YKHO.assertRaises(BQDi.IntegrityError) as QpfX:\n NCls.session.commit()", "def amiU(YKHO):\n nPrm = YKHO.user_data.copy()\n nPrm.pop('first_name')\n ...
[ "0.7791735", "0.74545634", "0.7342376", "0.73098814", "0.7102159", "0.7068166", "0.7065002", "0.6875844", "0.6863673", "0.6793918", "0.6748383", "0.67190206", "0.6716781", "0.67107785", "0.66857076", "0.6675032", "0.6674217", "0.6670775", "0.6659421", "0.6654315", "0.6651879"...
0.8829329
0
Return the area of a polygon. The node coordinates must be ordered, but the direction does not matter we return the absvalue >>> points_x = [4, 4, 8, 8, 4, 4] >>> points_z = [6, 4, 4, 8, 8, 6] >>> self._get_area_polygon(points_x, points_z) ... 128
def jFN1(ejx_, fofR): f0tD = 0 r845 = len(ejx_) - 1 for YRbF in range(len(ejx_)): f0tD = f0tD + (ejx_[r845] + ejx_[YRbF]) * (fofR[r845] - fofR[YRbF]) r845 = YRbF return oyIN.abs(f0tD / 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MwoA(LTIa):\n k0lF = 0\n ywwl = len(LTIa)\n for YRbF in Ni9Y(0, ywwl):\n kidU = LTIa[YRbF][0]\n me_t = LTIa[YRbF][1]\n PhjG = LTIa[(YRbF + 1) % ywwl][0]\n JKy8 = LTIa[(YRbF + 1) % ywwl][1]\n k0lF += kidU * JKy8 - PhjG * me_t\n return k0lF / 2", "def f0tD(YKHO):\...
[ "0.7786078", "0.7780968", "0.75890505", "0.72880936", "0.723615", "0.712512", "0.70573545", "0.7033072", "0.6938555", "0.688246", "0.6873714", "0.68340415", "0.6779926", "0.6709136", "0.6657601", "0.6601326", "0.6589193", "0.6557975", "0.64694965", "0.6412047", "0.6401731", ...
0.84951603
0
Knot vector for V direction.
def QFas(YKHO): return YKHO._knot_vector_v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIjM(YKHO):\n return YKHO._knot_vector_u", "def ru6p(YKHO):\n nMvt = YKHO.uv_vol + YKHO.Epsilon * YKHO.guv_vol + YKHO.Epsilon / YKHO.Beta * YKHO.uv_bound\n return nMvt", "def G1Hx(YKHO) -> oyIN.ndarray:\n return YKHO._vector[12:18]", "def nMvt(YKHO, P6bq, Ty9i):\n return (YKHO.L(P6bq, Ty9i...
[ "0.76220715", "0.6758518", "0.6702464", "0.6466854", "0.6342065", "0.63208073", "0.6267283", "0.6239728", "0.621496", "0.6190831", "0.6182039", "0.6182039", "0.6182039", "0.61748487", "0.61739725", "0.6055274", "0.60101086", "0.59867924", "0.59712756", "0.5943418", "0.5929724...
0.86731815
0
Size of the control points array in Vdirection.
def CKXp(YKHO): return YKHO._control_points_size_v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cxdz(YKHO) -> int:\n return len(YKHO.Nodes)", "def WRl5(YKHO):\n return YKHO._control_points_size_u", "def CMsB(YKHO):\n if len(YKHO):\n return len(YKHO.values()[0])\n else:\n return 0", "def cxdz(YKHO) -> int:\n return YKHO.nodes_on_graph", "def szAg(YKHO):\n return len...
[ "0.7082896", "0.69444096", "0.6854408", "0.67856467", "0.67614645", "0.6754222", "0.67497224", "0.6739692", "0.6684733", "0.66512626", "0.6612611", "0.661229", "0.6599841", "0.65916854", "0.65756106", "0.65467596", "0.65384233", "0.6515039", "0.64856726", "0.64856726", "0.647...
0.7896886
0
Assort the plots by their types
def vCJ8(NArs): NArs['internal']['user']['plots'] = dict() for a1PO in NArs['internal']['available']['plot_types']: NArs['internal']['user']['plots'][a1PO] = [] for YRbF in range(len(NArs['data'])): X0em = NArs['data'][YRbF]['plot_type'] NArs['internal']['user']['plots'][X0em].append...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mYpA(d8hr, xdot, PW9O, BF5e):\n if BF5e == 'median':\n gpXh = lambda ZfUD: oyIN.median(ZfUD[0])\n elif BF5e == 'alphabetical':\n gpXh = lambda ZfUD: ZfUD[1]\n else:\n raise ValueError(\"Invalid sort type '%s'.\" % BF5e)\n return zip(*sorted(zip(d8hr, xdot, PW9O), key=gpXh))", ...
[ "0.6878626", "0.5778905", "0.560378", "0.5590676", "0.55773777", "0.5572109", "0.5459261", "0.5459167", "0.5422412", "0.539574", "0.53957087", "0.5386678", "0.5363811", "0.53259015", "0.52869207", "0.5273937", "0.52533203", "0.5244021", "0.52354383", "0.5210002", "0.52080005"...
0.7245197
0
Examples >>> counts = np.array([np.arange(0, 10), np.arange(2, 12), ... np.arange(1, 11), np.arange(3, 13), ... np.arange(1, 11), np.arange(3, 13)]) >>> reb = quick_chan_rebin(counts, 2) >>> np.allclose(reb, [[2, 4, 6, 8, 10, 12, 14, 16, 18, 20], ... [4, 6, 8, 10, 12, 14, 16, 18, 20, 22], ... [4, 6, 8, 10, 12, 14, 16, ...
def QOCD(BWz1, LjrW): AXFa = BWz1.shape[0] OiBn = BWz1.shape[1] exwG = int(AXFa // LjrW) S09z = oyIN.sum(BWz1[:exwG * LjrW, :].reshape((exwG, LjrW, OiBn)), axis=1) return S09z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k_cM(BWz1, LjrW):\n AXFa = BWz1.shape[0]\n OiBn = BWz1.shape[1]\n exwG = int(OiBn // LjrW)\n rGCG = oyIN.copy(BWz1[:, :exwG * LjrW]).reshape((AXFa, exwG, LjrW))\n S09z = oyIN.zeros((rGCG.shape[0], rGCG.shape[1]))\n for YRbF in range(rGCG.shape[2]):\n S09z[:, :] += rGCG[:, :, YRbF]\n ...
[ "0.6885492", "0.56438416", "0.5496909", "0.54585487", "0.5378317", "0.5376209", "0.53373975", "0.5318333", "0.531653", "0.5288927", "0.5265355", "0.5235045", "0.52322924", "0.5184941", "0.5149579", "0.51289743", "0.5112643", "0.50999886", "0.5084255", "0.5074004", "0.50737196...
0.81301224
0
Convert a numerical value to a twobyte string, possibly scaling it.
def zyZ4(BWXx, RRSC=0, jiHV=False, i1fZ=False): HFWH(BWXx, description='inputvalue') GOSc(RRSC, minvalue=0, description='number of decimals') z3ni(jiHV, description='LsbFirst') z3ni(i1fZ, description='signed parameter') pSDG = 10 ** RRSC kAne = int(float(BWXx) * pSDG) if jiHV: Rwh4 =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FpR6(mLGw):\n for WKvO in ['_B', 'KB', 'MB', 'GB', 'TB']:\n if mLGw < 1000.0:\n return '%3.1f%s' % (mLGw, WKvO)\n mLGw /= 1000.0", "def FpR6(mLGw):\n for WKvO in ['bytes', 'KB', 'MB', 'GB', 'TB']:\n if mLGw < 1024.0:\n return '%3.1f %s' % (mLGw, WKvO)\n ...
[ "0.72740144", "0.7190377", "0.71665424", "0.71665424", "0.71658516", "0.71658516", "0.71658516", "0.71449167", "0.7040926", "0.70362234", "0.6840456", "0.6732123", "0.6657601", "0.66489995", "0.66304076", "0.6618418", "0.66145444", "0.6614358", "0.6596666", "0.65783983", "0.6...
0.633489
29
Convert a numerical value to a bytestring. Floats are stored in two or more consecutive 16bit registers in the subordinate. The encoding is according to the standard IEEE 754. ====================================== ================= =========== ================= Type of floating point number in subordinate Size Registe...
def BZ0R(BWXx, mLNM=2): HFWH(BWXx, description='inputvalue') GOSc(mLNM, minvalue=2, maxvalue=4, description='number of registers') Rwh4 = '>' if mLNM == 2: Rwh4 += 'f' GuWV = 4 elif mLNM == 4: Rwh4 += 'd' GuWV = 8 else: raise ValueError('Wrong number of re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PC3F(BWXx):\n return BlNT.pack('f', BWXx)", "def bGrB(bGrB: FloatType, BWXx: float) -> bytes:\n return FOAL.pack(BWXx)", "def ogHH(BWXx):\n if BWXx == 0:\n return b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00'\n if BWXx < 0:\n xTfc = 128\n BWXx = -BWXx\n else:\n xTfc...
[ "0.74674374", "0.71433324", "0.6903937", "0.6767149", "0.6660212", "0.64884853", "0.6483161", "0.6404", "0.636254", "0.6341348", "0.6275583", "0.62709236", "0.6114611", "0.60986537", "0.6035321", "0.6028881", "0.599403", "0.59838635", "0.58646595", "0.58136564", "0.5776636", ...
0.8276027
0
Convert a fourbyte string to a float. Floats are stored in two or more consecutive 16bit registers in the subordinate. For discussion on precision, number of bits, number of registers, the range, byte order
def U0e7(vRJ_, mLNM=2): I435(vRJ_, minlength=4, maxlength=8, description='bytestring') GOSc(mLNM, minvalue=2, maxvalue=4, description='number of registers') HhXL = Chhj * mLNM Rwh4 = '>' if mLNM == 2: Rwh4 += 'f' elif mLNM == 4: Rwh4 += 'd' else: raise ValueError('Wro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O2MO(BWXx):\n wn7d, pYYk, cq5u = BlNT.unpack('>HHL', BWXx)\n w520 = (wn7d & 32512) // 256 - 64\n vJbO = (((wn7d & 255) * 65536 + pYYk) * 4294967296 + cq5u) / 7.205759403792794e+16\n if wn7d & 32768:\n return -vJbO * 16.0 ** w520\n return vJbO * 16.0 ** w520", "def O2MO(BWXx):\n wn7d,...
[ "0.7470786", "0.74318516", "0.7103544", "0.7005888", "0.6994107", "0.6939263", "0.69239426", "0.68887585", "0.6880526", "0.68470025", "0.67834526", "0.6701328", "0.66949296", "0.6661138", "0.6644472", "0.66269624", "0.66118807", "0.65827215", "0.65448064", "0.6533189", "0.649...
0.7406645
2
Convert a bytestring to a text string. Each 16bit register in the subordinate are interpreted as two characters (1 byte = 8 bits). For example 16 consecutive registers can hold 32 characters (32 bytes). Not much of conversion is done, mostly error checking.
def cfPj(vRJ_, mLNM=16): GOSc(mLNM, minvalue=1, description='number of registers') f4X5 = Chhj * mLNM I435(vRJ_, 'byte string', minlength=f4X5, maxlength=f4X5) OJl7 = vRJ_ return OJl7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yf2C(BSLH: bytes) -> str:\n return ' '.join(['{:02x}'.format(WKvO) for WKvO in BSLH])", "def SnfU(neaT):\n st9m = ''\n for WKvO in range(len(neaT) // 8):\n exwG = int(neaT[WKvO * 8:WKvO * 8 + 8], 2)\n if exwG == 0:\n st9m += '\\\\x00'\n else:\n st9m += exwG...
[ "0.6858568", "0.6473457", "0.6466122", "0.6423756", "0.6343179", "0.62925404", "0.6059009", "0.6014008", "0.59258753", "0.58383787", "0.58005893", "0.5796121", "0.57599574", "0.5754958", "0.57511795", "0.5738729", "0.5706455", "0.5706418", "0.5699039", "0.56968075", "0.568890...
0.7891027
0
Convert a list of numerical values to a bytestring. Each element is 'unsigned INT16'.
def Muga(Msos, mLNM): JcUG = 0 APsQ = 65535 GOSc(mLNM, minvalue=1, description='number of registers') if not isinstance(Msos, list): raise TypeError('The valuelist parameter must be a list. Given {0!r}.'.format(Msos)) for BWXx in Msos: GOSc(BWXx, minvalue=JcUG, maxvalue=APsQ, descrip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _RV_(PVOR):\n return b''.join((chr(YRbF) for YRbF in PVOR))", "def CYVc(nPrm: List[int]) -> bytes:\n Aofo = b''\n for BWXx in nPrm:\n Aofo += bSr1(BWXx)\n return Aofo", "def FpjS(BWXx: list):\n return OGwj(len(BWXx)) + bytes([YRbF for r845 in BWXx for YRbF in r845])", "def KTwd(rLMJ...
[ "0.75301605", "0.70787585", "0.68788797", "0.6854181", "0.6844067", "0.67711735", "0.6754887", "0.6653223", "0.6611075", "0.6580483", "0.64618695", "0.6448465", "0.6376787", "0.63119197", "0.6294289", "0.62507117", "0.62284726", "0.6198753", "0.61360943", "0.61356246", "0.610...
0.71929723
1
Convert a bytestring to a list of numerical values. The bytestring is interpreted as 'unsigned INT16'.
def YPLF(vRJ_, mLNM): GOSc(mLNM, minvalue=1, description='number of registers') HhXL = Chhj * mLNM I435(vRJ_, 'byte string', minlength=HhXL, maxlength=HhXL) hkxX = [] for YRbF in range(mLNM): vgXP = Chhj * YRbF Npeo = vRJ_[vgXP:vgXP + Chhj] hkxX.append(dzYG(Npeo)) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PVOR(nPrm: bytes) -> list:\n JacK = aKaX(nPrm)\n hnjo = []\n dgqV = JacK.read(1)\n while dgqV != b'' and dgqV != '':\n AUHV = h4Vg(dgqV)\n hnjo.append(AUHV)\n dgqV = JacK.read(1)\n return hnjo", "def dDNz(wdHe: str) -> x1iM[int]:\n return eval(f'[{wdHe}]')", "def hXJW...
[ "0.67877626", "0.66386366", "0.65680945", "0.64775056", "0.64014256", "0.63623005", "0.6339995", "0.6328401", "0.62438655", "0.623285", "0.6220906", "0.6198238", "0.6154097", "0.61317194", "0.60831237", "0.6038976", "0.60374814", "0.60102326", "0.6003738", "0.5963996", "0.595...
0.73067546
0
Pack a value into a bytestring.
def aPEG(JxZo, BWXx): I435(JxZo, description='formatstring', minlength=1) try: Aofo = BlNT.pack(JxZo, BWXx) except: Ov4h = 'The value to send is probably out of range, as the num-to-bytestring conversion failed.' Ov4h += ' Value: {0!r} Struct format code is: {1}' raise ValueE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UyLA(BWXx: str) -> bytes:\n ezPH = BWXx.encode('utf-8')\n yPwV = eCL4(ezPH)\n return yPwV + ezPH", "def Ux5F(BWXx):\n return qk1z.packb(BWXx, default=wO7A, use_bin_type=True)", "def aPEG(YKHO, VPot: str, BWXx: Any):\n YKHO.write(tMMy(VPot, BWXx))", "def RfYD(YKHO, BWXx):\n raise NotImpl...
[ "0.79904985", "0.77829343", "0.73868775", "0.70446295", "0.6999573", "0.69184226", "0.6878612", "0.6849968", "0.6805581", "0.67667246", "0.67553693", "0.6753708", "0.6728836", "0.672388", "0.67206573", "0.6650723", "0.66414183", "0.66268575", "0.6622873", "0.6571734", "0.6510...
0.7552182
2
Calculate the two's complement of an integer. Then also negative values can be represented by an upper range of positive values.
def E4sB(WKvO, UOVU=16): GOSc(UOVU, minvalue=0, description='number of bits') GOSc(WKvO, description='input') f2sS = 2 ** (UOVU - 1) - 1 lDq6 = -2 ** (UOVU - 1) if WKvO > f2sS or WKvO < lDq6: raise ValueError('The input value is out of range. Given value is {0}, but allowed range is {1} to {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y8ay(WKvO):\n yvT9 = 1 - WKvO\n return yvT9", "def la4d(YKHO) -> 'SInt':\n return YKHO.complement()", "def X1Vv(wEf2, UOVU):\n if wEf2 & 1 << UOVU - 1 != 0:\n wEf2 = wEf2 - (1 << UOVU)\n return wEf2", "def X1Vv(wEf2, UOVU):\n if wEf2 & 1 << UOVU - 1 != 0:\n wEf2 = wEf2 - 2...
[ "0.7673055", "0.74100405", "0.7204772", "0.70886314", "0.7071715", "0.702452", "0.7006786", "0.6946817", "0.6868982", "0.68342626", "0.6753303", "0.6650397", "0.66471475", "0.6584071", "0.65299606", "0.6513974", "0.6448015", "0.64186406", "0.63782674", "0.637809", "0.63744247...
0.6432118
17
Rightshift an integer one step, and also calculate the carry bit.
def AAic(FALo): GOSc(FALo, minvalue=0) Dooq = FALo >> 1 M8y_ = FALo & 1 return (Dooq, M8y_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y32f(wEf2, exwG):\n return wEf2 % 4294967296 >> exwG", "def Y32f(wEf2, exwG):\n return wEf2 % 4294967296 >> exwG", "def Y32f(wEf2: int, exwG: int) -> int:\n return wEf2 % 4294967296 >> exwG", "def FrPO(WKvO, LVAh):\n return _gRY.bit_right_shift(WKvO, LVAh)", "def gzEI(wEf2, exwG) -> oyIN.in...
[ "0.6881094", "0.6881094", "0.68734413", "0.67862254", "0.6782557", "0.67665285", "0.6626058", "0.6525582", "0.65225726", "0.647796", "0.6458773", "0.6370935", "0.62755233", "0.6167496", "0.612109", "0.61006105", "0.608359", "0.60682523", "0.60189456", "0.60132194", "0.594768"...
0.7905371
0
Check that the given string is valid.
def I435(w95j, JBZA, RksB=0, Fn22=None): if not isinstance(JBZA, str): raise TypeError('The description should be a string. Given: {0!r}'.format(JBZA)) if not isinstance(w95j, str): raise TypeError('The {0} should be a string. Given: {1!r}'.format(JBZA, w95j)) if not isinstance(Fn22, (int, t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HZWo(YKHO, vIwR: str) -> bool:\n\n @jtAy(None)\n def TifC(d6pt, yk4i):\n \"\"\"\n index is the index of string\n diff the counts of '(' - counts of ')'\n \"\"\"\n if d6pt == OgoW:\n return yk4i == 0\n if abs(yk4i) > OgoW - d6pt:\n ...
[ "0.77626806", "0.7622991", "0.7488719", "0.73656934", "0.7357667", "0.72978127", "0.7295882", "0.7288676", "0.728027", "0.7244556", "0.7194718", "0.709045", "0.70549494", "0.7038595", "0.6993382", "0.6980381", "0.6907831", "0.68841237", "0.68814564", "0.68804586", "0.6865778"...
0.67308336
26
Mean absolute error function. This function computes mean absolute error between two variables. The mean is taken over the minibatch.
def W4jA(nJ9F, o4D3): return SNDC()(nJ9F, o4D3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FI0x(OY7P: Tensor, cnd2: int) -> llWB:\n return OY7P / cnd2", "def F8iE(Hd5D: List[float]):\n if len(Hd5D) != 0:\n W4jA = round(sum(Hd5D) / len(Hd5D), 5)\n return W4jA", "def a5kP(aTLP: Tensor, pan_: Tensor) -> AzJI[llWB, int]:\n PPMb(aTLP, pan_)\n aTLP = aTLP if aTLP.is_floating_...
[ "0.7518839", "0.72117823", "0.7206541", "0.7180533", "0.70980734", "0.70864487", "0.70370674", "0.700519", "0.6980781", "0.6948474", "0.6903865", "0.6829158", "0.68276733", "0.67975", "0.67879987", "0.6732591", "0.6696967", "0.6680107", "0.6675182", "0.66719604", "0.66518646"...
0.8043939
0
Assert if the Distribution's shape is compatible with the supplied values. A distribution's shape, ``dist_shape``, is made up by the sum of the ``batch_shape`` and the ``event_shape``. A value is considered to have a consistent shape with the distribution if two conditions are met. 1) It has a greater or equal number o...
def PCdl(h7m0: str, hkxX: Any, pImw: distribution.Distribution) -> None: NQAR = pImw.event_shape ooTa = pImw.batch_shape MlIH(h7m0, hkxX, ooTa, NQAR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MlIH(h7m0: str, hkxX: Any, ooTa: tf.TensorShape, NQAR: tf.TensorShape) -> None:\n fDxe = Q9Ka(hkxX)\n VfbY = ooTa + NQAR\n Ijh5 = fDxe.rank\n x9xY = VfbY.rank\n if Ijh5 < NQAR.rank or (x9xY < Ijh5 and (not VfbY.is_compatible_with(fDxe[Ijh5 - x9xY:]))) or (Ijh5 < x9xY and (not fDxe.is_compatible_...
[ "0.8349038", "0.68091184", "0.6405352", "0.63873285", "0.62411374", "0.622174", "0.604756", "0.6039485", "0.60304874", "0.60264164", "0.5980516", "0.5937609", "0.5935989", "0.59327763", "0.5924742", "0.5914814", "0.5900258", "0.5880172", "0.58776116", "0.5859543", "0.5806068"...
0.77673835
1
Assert if a supplied values are compatible with a distribution's TensorShape. A distribution's ``TensorShape``, ``dist_shape``, is made up by the sum of the ``batch_shape`` and the ``event_shape``. A value is considered to have a consistent shape with the distribution if two conditions are met. 1) It has a greater or e...
def MlIH(h7m0: str, hkxX: Any, ooTa: tf.TensorShape, NQAR: tf.TensorShape) -> None: fDxe = Q9Ka(hkxX) VfbY = ooTa + NQAR Ijh5 = fDxe.rank x9xY = VfbY.rank if Ijh5 < NQAR.rank or (x9xY < Ijh5 and (not VfbY.is_compatible_with(fDxe[Ijh5 - x9xY:]))) or (Ijh5 < x9xY and (not fDxe.is_compatible_with(VfbY[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PCdl(h7m0: str, hkxX: Any, pImw: distribution.Distribution) -> None:\n NQAR = pImw.event_shape\n ooTa = pImw.batch_shape\n MlIH(h7m0, hkxX, ooTa, NQAR)", "def MD95(YKHO, *Sk_F):\n ihqc = []\n for qw7D in Sk_F:\n if isinstance(qw7D, ZylS.Tensor):\n ihqc.append(qw7D.shape.as_li...
[ "0.77026945", "0.69207245", "0.6686863", "0.66555935", "0.6307519", "0.63041025", "0.6255147", "0.6187317", "0.61865914", "0.61768675", "0.61516327", "0.6116351", "0.6113589", "0.6076399", "0.6023457", "0.600301", "0.6001702", "0.59982944", "0.5987821", "0.59718394", "0.59371...
0.8264976
0