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
Percentencode the first segment of a URL path for a URL without a scheme specified.
def GEyZ(l5Ny, cLr1=True): if cLr1: TIvS = NkkI('NFC', l5Ny).encode('utf8') return u''.join([QYU1[Fg_i] for Fg_i in TIvS]) return u''.join([QYU1[a1PO] if a1PO in lkw4 else a1PO for a1PO in l5Ny])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rkBf():\n assert gmoQ('http://example.com/hello world{}') == 'http://example.com/hello%20world%7B%7D'", "def OJc6(D3T3):\n return uRlK.parse.quote(D3T3, safe=\"%/:=&?~#+!$,;'@()*[]|\")", "def BkLH(KCHu, p4k2='utf-8'):\n if isinstance(KCHu, QMSQ):\n KCHu = KCHu.encode(p4k2, 'ignore')\n ht...
[ "0.69515634", "0.65919477", "0.6536265", "0.6473818", "0.6298947", "0.62756145", "0.6270277", "0.6228756", "0.622486", "0.60647047", "0.60530454", "0.60281134", "0.6006414", "0.6005046", "0.59993607", "0.59897137", "0.59709895", "0.596607", "0.5951233", "0.59484327", "0.59419...
0.58089596
29
Percentencode a tuple of path parts into a complete path. Setting maximal to False percentencodes only the reserved characters that are syntactically necessary for serialization, preserving any IRIstyle textual data. Leaving maximal set to its default True percentencodes everything required to convert a portion of an I...
def piOV(ohXG, A9bD=False, _gEp=True, rqwC=True, XVFa=True, cLr1=True): if not ohXG: return u'' if XVFa else ohXG if A9bD: ohXG = (u'',) + ohXG KrVb = [] if _gEp: KrVb = [A_Py(Q7me, maximal=cLr1) if Q7me else Q7me for Q7me in ohXG] else: KrVb = [GEyZ(ohXG[0])] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GEyZ(l5Ny, cLr1=True):\n if cLr1:\n TIvS = NkkI('NFC', l5Ny).encode('utf8')\n return u''.join([QYU1[Fg_i] for Fg_i in TIvS])\n return u''.join([QYU1[a1PO] if a1PO in lkw4 else a1PO for a1PO in l5Ny])", "def rkBf():\n assert gmoQ('http://example.com/hello world{}') == 'http://example.co...
[ "0.63581383", "0.57102215", "0.5471671", "0.5374249", "0.5238488", "0.51968086", "0.5165959", "0.51602685", "0.5149088", "0.5138075", "0.5114686", "0.5065956", "0.5055887", "0.5052824", "0.5023501", "0.49322093", "0.49182388", "0.4896321", "0.48926297", "0.48829225", "0.48339...
0.63382965
1
Percentencode a single query string key or value.
def xTPY(l5Ny, cLr1=True): if cLr1: TIvS = NkkI('NFC', l5Ny).encode('utf8') return u''.join([Fteu[Fg_i] for Fg_i in TIvS]) return u''.join([Fteu[a1PO] if a1PO in CgVF else a1PO for a1PO in l5Ny])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KcBn():\n assert gmoQ('http://example.com/?a=hello{}') == 'http://example.com/?a=hello%7B%7D'", "def PEyk(BWXx):\n return uRlK.quote(BWXx.encode('utf8'))", "def Xt7e():\n assert gmoQ('http://example.com/?a=b%c2') == 'http://example.com/?a=b%C2'", "def ORXE(nPrm, KXjL=None):\n if nPrm is None:...
[ "0.74184614", "0.6984509", "0.69428843", "0.67584896", "0.66555846", "0.66384226", "0.6440499", "0.63806623", "0.6343305", "0.6313485", "0.62320954", "0.6217586", "0.6214832", "0.6211704", "0.6156959", "0.61490625", "0.61067253", "0.60983014", "0.6032843", "0.6026147", "0.602...
0.56846964
47
Percentencode a single query string key or value.
def VFQv(l5Ny, cLr1=True): if cLr1: TIvS = NkkI('NFC', l5Ny).encode('utf8') return u''.join([R4mR[Fg_i] for Fg_i in TIvS]) return u''.join([R4mR[a1PO] if a1PO in HX4O else a1PO for a1PO in l5Ny])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KcBn():\n assert gmoQ('http://example.com/?a=hello{}') == 'http://example.com/?a=hello%7B%7D'", "def PEyk(BWXx):\n return uRlK.quote(BWXx.encode('utf8'))", "def Xt7e():\n assert gmoQ('http://example.com/?a=b%c2') == 'http://example.com/?a=b%C2'", "def ORXE(nPrm, KXjL=None):\n if nPrm is None:...
[ "0.7418123", "0.69857657", "0.6942315", "0.67587477", "0.6654725", "0.66400814", "0.6441494", "0.63818866", "0.6345995", "0.6314268", "0.62331235", "0.62174475", "0.62163043", "0.6213482", "0.6158453", "0.61513036", "0.6107483", "0.6101127", "0.60347784", "0.6028213", "0.6023...
0.5947809
24
Quote the fragment part of the URL. Fragments don't have subdelimiters, so the whole URL fragment can be passed.
def _0Or(l5Ny, cLr1=True): if cLr1: TIvS = NkkI('NFC', l5Ny).encode('utf8') return u''.join([XpgG[Fg_i] for Fg_i in TIvS]) return u''.join([XpgG[a1PO] if a1PO in F6m0 else a1PO for a1PO in l5Ny])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D2vs(vIwR):\n return NCC9(vIwR.encode('utf-8'))", "def uUYO(bD7m, qIxc):\n eHxA = list(KVWQ(bD7m))\n eHxA[5] = QIYp(qIxc)\n return Hfci(eHxA)", "def YUxO(KCHu, dT6y='/', tZ2K=None):\n if isinstance(KCHu, QMSQ):\n if tZ2K is None:\n tZ2K = IT1t\n KCHu = KCHu.encode(tZ...
[ "0.61974275", "0.59924036", "0.5939213", "0.5747138", "0.57312095", "0.57294613", "0.5690359", "0.5590902", "0.5539244", "0.5538318", "0.53728986", "0.53687245", "0.5364224", "0.53525794", "0.52671957", "0.52668244", "0.5259217", "0.52539384", "0.5233805", "0.5195989", "0.519...
0.5404409
10
>>> _decode_path_part(u'%61%77%2f%7a') u'aw%2fz' >>> _decode_path_part(u'%61%77%2f%7a', normalize_case=True) u'aw%2Fz'
def _N3y(l5Ny, VVVf=False, xUFm=False): return bVgB(l5Ny, normalize_case=VVVf, encode_stray_percents=xUFm, _decode_map=mTJv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ng9e(pmON):\n pmON = ZbWC.sub('--[0-9A-Fa-f]{32}', u'…', pmON)\n pmON = ZbWC.sub('-([0-9a-f]{4})', lambda kUBT: mYtf(int(kUBT.group(1), 16)), pmON)\n return pmON", "def NkkI(pmON):\n return Hy7s.path.normcase(Hy7s.path.realpath(pmON))", "def keKf():\n assert gmoQ('http://example.com/résumé')...
[ "0.6174186", "0.596646", "0.59375584", "0.58684134", "0.57936233", "0.56972635", "0.55720794", "0.5566638", "0.55595", "0.5549183", "0.55356246", "0.5523528", "0.5509594", "0.5505011", "0.546507", "0.5442592", "0.53878486", "0.5373581", "0.53517896", "0.5349128", "0.53461236"...
0.7498919
0
Normalize the URL path by resolving segments of '.' and '..'. For more details, see `RFC 3986 section 5.2.4, Remove Dot Segments`_.
def QrM8(pmON): VytY = [] for pG0V in pmON: if pG0V == u'.': pass elif pG0V == u'..': if VytY: VytY.pop() else: VytY.append(pG0V) if list(pmON[-1:]) in ([u'.'], [u'..']): VytY.append(u'') return VytY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l1RA():\n assert gmoQ('http://www.example.com/../a/b/../c/./d.html') == 'http://www.example.com/a/c/d.html'", "def NkkI(Emd4, pan_):\n SQ3m = g760.deque()\n for XP5J in pan_.split('/'):\n if (XP5J == '' or XP5J == '.') and len(SQ3m) > 0:\n pass\n elif XP5J == '..' and len(SQ...
[ "0.7755275", "0.74218404", "0.68000025", "0.6756878", "0.6730546", "0.66204673", "0.6587858", "0.654032", "0.6529061", "0.6492139", "0.6474724", "0.6392452", "0.63307244", "0.63173574", "0.6199412", "0.61959326", "0.6179483", "0.61668575", "0.6159764", "0.61401755", "0.613001...
0.6575333
7
The scheme is a string, and the first part of an absolute URL, the part before the first colon, and the part which defines the semantics of the rest of the URL. Examples include "http", "https", "ssh", "file", "mailto", and many others. See
def ht58(YKHO): return YKHO._scheme
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzhZ(bD7m):\n _rrB = 'abcdefghijklmnopqrstuvwxyz0123456789+-.'\n ht58 = ''\n wOmD = bD7m\n Dn4b = bD7m.split(':', 1)\n if len(Dn4b) == 2:\n Dn4b[0] = Dn4b[0].lower()\n if Dn4b[0] and Dn4b[0][0].isalpha():\n for hcXw in Dn4b[0]:\n if hcXw not in _rrB:\n ...
[ "0.753768", "0.70505", "0.6949365", "0.68439734", "0.6724282", "0.6701892", "0.66623825", "0.66535646", "0.6614464", "0.6475012", "0.6472128", "0.6469419", "0.64590096", "0.6393495", "0.6352747", "0.63165903", "0.6304048", "0.62795925", "0.6275786", "0.6260491", "0.62590736",...
0.6224932
23
A tuple of strings, created by splitting the slashseparated hierarchical path. Started by the first slash after the host, terminated by a "?", which indicates the start of the
def pmON(YKHO): return YKHO._path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GHle(pmON):\n XPB5, aPr_ = Hy7s.path.split(pmON)\n if XPB5 == '':\n return (aPr_,)\n if XPB5 == pmON:\n return (pmON,)\n return GHle(XPB5) + (aPr_,)", "def ZFQX(P8oC, pmON):\n for YRbF in range(len(pmON)):\n if isinstance(P8oC, jUrF):\n return (pmON[:YRbF], pmON...
[ "0.6889111", "0.6870747", "0.67441666", "0.66227365", "0.6527906", "0.65210426", "0.6467041", "0.6419429", "0.64044595", "0.64031863", "0.63737077", "0.63047993", "0.6289111", "0.62169623", "0.62022346", "0.6195827", "0.61938584", "0.61756563", "0.6155794", "0.6132837", "0.61...
0.0
-1
Convert from JSON dict to an instance
def ZYJm(Emd4, nPrm): return _klG[nPrm['timeref_type']].fromJSON(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYpi(qQXR):\n raise NotImplementedError('Returns instance')", "def pQM9(Emd4, Op6c):\n YEnM = Emd4.__new__(Emd4)\n for hkS8, cM24 in Emd4._attrs_to_save.items():\n setattr(YEnM, hkS8, cM24.to_python(Op6c[hkS8]))\n return YEnM", "def pktP(Emd4, Fg_i):\n return Emd4.from_dict(qQXR.loads...
[ "0.79551023", "0.76986384", "0.7660535", "0.7658723", "0.7658723", "0.7658723", "0.73792714", "0.7363552", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", ...
0.66820604
99
Convert from JSON dict to an instance
def ZYJm(Emd4, nPrm): return Emd4(start=nPrm['start'], end=nPrm['end'], interval=nPrm['interval'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYpi(qQXR):\n raise NotImplementedError('Returns instance')", "def pQM9(Emd4, Op6c):\n YEnM = Emd4.__new__(Emd4)\n for hkS8, cM24 in Emd4._attrs_to_save.items():\n setattr(YEnM, hkS8, cM24.to_python(Op6c[hkS8]))\n return YEnM", "def pktP(Emd4, Fg_i):\n return Emd4.from_dict(qQXR.loads...
[ "0.79551023", "0.76986384", "0.7660535", "0.7658723", "0.7658723", "0.7658723", "0.73792714", "0.7363552", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", "0.7323774", ...
0.0
-1
Initialise the GameObject with the given Game as its parent.
def FIMM(YKHO, BH3N): a9eO.sprite.Sprite.__init__(YKHO) YKHO.game_ref = BH3N YKHO.initialise()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def acr_(YKHO):\n YKHO.game = Zupk(YKHO.game_config)", "def u7Ba(YKHO):\n BH3N = _apf(YKHO.data['gamename'])\n YKHO.game = BH3N\n return BH3N", "def FIMM(YKHO, K4el):\n YKHO.gui: zkQV = K4el\n super().__init__(YKHO.gui.top, 'New Game')", "def qwMB(YKHO) -> None:\n YKHO.highscore = 0\n ...
[ "0.64174336", "0.63924277", "0.5975358", "0.5823752", "0.5801307", "0.57709646", "0.57504463", "0.56525224", "0.5644515", "0.5583254", "0.5555567", "0.55288976", "0.55288976", "0.5512438", "0.5511699", "0.55100304", "0.5500407", "0.5493451", "0.5492681", "0.5477946", "0.54767...
0.61519575
2
Generates list of outputnodenames used in nnet3 model configuration. It will normally return 'output'.
def dskm(SkYi, tA_a=True): if tA_a: bHpK = eOPu.get_command_stdout("nnet3-am-info --print-args=false {0} | grep -e 'output-node' | cut -f2 -d' ' | cut -f2 -d'=' ".format(SkYi)) else: bHpK = eOPu.get_command_stdout("nnet3-info --print-args=false {0} | grep -e 'output-node' | cut -f2 -d' ' | cut -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OnZF(YKHO):\n return []", "def OnZF(YKHO):\n tO9_ = 'output_names() is not implemented by op {}'\n raise NotImplementedError(tO9_.format(YKHO.op_type))", "def twxp(YKHO):\n YKHO.layersNames = YKHO.net.getLayerNames()\n return [YKHO.layersNames[YRbF[0] - 1] for YRbF in YKHO.net.getUnconnected...
[ "0.68937975", "0.66486293", "0.6558798", "0.65374", "0.6536277", "0.6467489", "0.64337146", "0.6412757", "0.6358682", "0.6328964", "0.6319807", "0.63165987", "0.62814003", "0.6272172", "0.6254628", "0.6254628", "0.625364", "0.61701953", "0.61687934", "0.613509", "0.6091971", ...
0.6364424
8
Displays the index page accessible at '/'
def b8V_(): return TvZl('index.html', title='Home', heading='Dublin Bus')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j4m5():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html', title='Home')", "def d6pt():\n...
[ "0.8617144", "0.8612428", "0.86105794", "0.86065364", "0.86065364", "0.8585549", "0.8561872", "0.8558644", "0.8546361", "0.85463387", "0.85293406", "0.85190517", "0.85190517", "0.8458544", "0.84501946", "0.8403687", "0.8400753", "0.8383512", "0.8383512", "0.8383512", "0.83835...
0.0
-1
Returns Tile image sequence duration.
def y9pu(YKHO): return YKHO._image_sequence_duration
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EdTY(YKHO):\n Hv7J = YKHO.get_frame_duration()\n c1sR = YKHO.get_num_frames()\n liRQ = Hv7J * (c1sR - 1)\n return liRQ", "def ONFB(YKHO):\n try:\n YzQK = YKHO.im.info['duration'] / 1000.0\n except KeyError:\n YzQK = QirI / 1000.0\n return YzQK", "def YvUS(YKHO):\n retu...
[ "0.76041716", "0.74942654", "0.7319031", "0.72677875", "0.722871", "0.69734913", "0.6957251", "0.69290537", "0.69061404", "0.6869168", "0.6839367", "0.6831297", "0.68133473", "0.68023664", "0.679833", "0.679833", "0.67943233", "0.67884487", "0.6784803", "0.67680544", "0.67680...
0.8232446
0
Tests that controller cache is deleted.
def u2E6(YKHO): PObu = YKHO._game.uid YKHO._game.delete_cache(YKHO._ds) YKHO._game = None YKHO.assertIsNone(YKHO._ds.get_strict_controller(_apf, PObu), 'Game controller did not clear from cache.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNgc(YKHO):\n YKHO.cache.set('superman', 'clark kent')\n YKHO.cache.set('recipe', {'sugar': 2, 'wine': 5}, 10)\n YKHO.cache.set('secret', ['remains secret'], 0)\n YKHO.cache.delete('superman')\n YKHO.cache.delete('recipe')\n YKHO.cache.delete('secret')\n YKHO.cache.delete('ghost')\n YKH...
[ "0.76176715", "0.7068884", "0.70276535", "0.70243865", "0.7022364", "0.6687986", "0.66680443", "0.6613503", "0.65807366", "0.65715605", "0.6570813", "0.65270036", "0.6526597", "0.6489077", "0.6476169", "0.64710987", "0.64673775", "0.6458829", "0.6428761", "0.63977754", "0.638...
0.81209487
0
Tests that controller and model is deleted.
def _4cr(YKHO): PObu = YKHO._game.uid YKHO._game.save(YKHO._ds) YKHO._game.delete(YKHO._ds) YKHO._game = None YKHO.assertIsNone(YKHO._ds.get_strict_controller(_apf, PObu)) with YKHO.assertRaises(ValueError): YKHO._ds.get_controller(_apf, PObu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _4cr(YKHO):\n pass", "def ErQc(YKHO):\n _6NH = CSmO.objects.first()\n _6NH.delete_from_appsearch()\n YKHO.assertEqual(YKHO.client_destroy.call_count, 1)", "def uLcu(YKHO):\n pass", "def AWqA(YKHO):\n as18.create(id=15)\n geh0 = YKHO.unath_client.get(gxEw('doctor-detail', args=[15]))\...
[ "0.78814876", "0.77263176", "0.75959426", "0.75892895", "0.75365204", "0.75348675", "0.75308096", "0.75233346", "0.73897266", "0.737479", "0.7354918", "0.7342948", "0.73071134", "0.7298923", "0.7296815", "0.7296456", "0.7296456", "0.7271298", "0.723112", "0.7230284", "0.72236...
0.7514735
8
The email address to send notifications to. The email address does not need to be a Google Account.
def D3lj(YKHO) -> str: return qe4Y.get(YKHO, 'email')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hxmi() -> str:\n return Hy7s.environ.get('EMAIL_NOTIFICATION', '')", "def RC0X(YKHO):\n return YKHO.reference[XMvj][NNfF]", "def Hxmi(YKHO) -> str:\n return YKHO._email_address", "def LpCf(YKHO) -> str:\n return qe4Y.get(YKHO, 'contact_email')", "def ofQZ(YKHO) -> qe4Y.Output[str]:\n ret...
[ "0.8170227", "0.7686174", "0.7657145", "0.7641621", "0.7640317", "0.7623239", "0.7623239", "0.7498176", "0.736614", "0.7340284", "0.7325949", "0.7325949", "0.7325949", "0.7325949", "0.72881", "0.72881", "0.72881", "0.72881", "0.7272182", "0.72689915", "0.72494495", "0.72125...
0.76684576
4
2D gaussian mask should give the same result as MATLAB's fspecial('gaussian',[shape],[sigma])
def IeI1(ROpF=(3, 3), WTkW=0.5): r8hN, exwG = [(KG9w - 1.0) / 2.0 for KG9w in ROpF] LVAh, WKvO = oyIN.ogrid[-r8hN:r8hN + 1, -exwG:exwG + 1] MKlR = oyIN.exp(-(WKvO * WKvO + LVAh * LVAh) / (2.0 * WTkW * WTkW)) MKlR[MKlR < oyIN.finfo(MKlR.dtype).eps * MKlR.max()] = 0 MjEv = MKlR.sum() if MjEv != 0:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(zNig, WTkW):\n jzdc, Fg_i = oyIN.ogrid[-zNig / 2:zNig / 2, -zNig / 2:zNig / 2]\n ZHfW = jzdc ** 2 + Fg_i ** 2\n ZHfW = oyIN.exp(-ZHfW.astype('float') / (2 * float(WTkW ** 2)))\n return ZHfW", "def ZIa9(YKHO, ZHfW=None):\n nPrm = YKHO.data\n ZHfW = XTiz.logical_or(ZHfW, XTiz.ma.getmaska...
[ "0.7830274", "0.7225701", "0.7157045", "0.69491535", "0.6849642", "0.6787778", "0.6769758", "0.6751879", "0.6751879", "0.6716543", "0.6712592", "0.66879416", "0.6682756", "0.667663", "0.6641985", "0.6612434", "0.65852946", "0.6566338", "0.6559973", "0.6504771", "0.65046597", ...
0.75631243
1
Convert a date string to filenamefriendly format
def x8us(mbyn): return mbyn.replace('/', '_')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AZfo(XSj5, t0Nt):\n t0Nt = t0Nt[:-1]\n x0eS, CjKC, lO87 = t0Nt.split('/')\n t_yv = '{}/{}/{}.md'.format(lO87, x0eS, CjKC)\n return XSj5 / t_yv", "def Zntt(k3xj):\n _c1T = k3xj.split('/')\n return f'{_c1T[2]}-{_c1T[0]}-{_c1T[1]}'", "def Zntt(k3xj):\n x0eS, CjKC, lO87 = k3xj.split('/')\n...
[ "0.7654617", "0.730857", "0.71832246", "0.71288854", "0.704033", "0.6926674", "0.6919468", "0.6835124", "0.682005", "0.68199503", "0.68073237", "0.6784583", "0.67121476", "0.6677838", "0.6669579", "0.6640443", "0.66307676", "0.65710634", "0.6555773", "0.6538748", "0.64573705"...
0.771194
0
Estimate the uncertainties of the background polarisation, model and stellar model.
def LlmL(NArs, bVmN=None, fvwS=None, gu4i=None, Mzf9=False): if Mzf9 is True: print('Estimate uncertainties for the parameters') WTkW = Lk88(NArs) return WTkW elif bVmN is not None: ywwl = len(bVmN[0, :]) E5pP = oyIN.zeros((3, ywwl)) j4n_ = oyIN.zeros((3, ywwl)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oBGK(YKHO):\n ChLP = JOjg(YKHO.file_with_cat, bounding_box=YKHO.bounding_box)\n VNfz = JOjg(YKHO.file_witout_cat, bounding_box=YKHO.bounding_box)\n Vfr4 = epAf.fabs((VNfz[0] - ChLP[0]) / VNfz[0])\n YKHO.assertLess(Vfr4, 0.01)", "def vIC0(YKHO):\n YKHO.groupFormation()\n YKHO.rootGraftFormat...
[ "0.58547527", "0.5688463", "0.55919516", "0.55232096", "0.54342407", "0.54130036", "0.5409423", "0.5409373", "0.538953", "0.53668743", "0.53398883", "0.5282908", "0.52204335", "0.5216535", "0.52021134", "0.51936644", "0.5191932", "0.51914936", "0.51444906", "0.51400286", "0.5...
0.0
-1
Returns the reward associated with each action taken
def H89J(QTBn: tuple, XeOP: int) -> float: assert len(QTBn) == 3 and QTBn[0] < 5 and (QTBn[1] < 4) and (QTBn[2] < 3) and (XeOP < 3) if QTBn[0] == 0: return 0.0 if QTBn[0] == 1 and XeOP == 0: return -20.0 + 10.0 * 0.5 return -20.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xyVK(YKHO, pR3T, xASv):\n YKHO.reward_dict = {}\n if len(pR3T.shape) == 1:\n pR3T = oyIN.expand_dims(pR3T, axis=0)\n xASv = oyIN.expand_dims(xASv, axis=0)\n QEsZ = False\n else:\n QEsZ = True\n oMLs = pR3T[:, 9].copy()\n BNli = pR3T[:, 2].copy()\n r_iP = pR3T[:, 6]...
[ "0.7573057", "0.7519566", "0.74534875", "0.7440747", "0.7432859", "0.7312876", "0.719975", "0.7198886", "0.71635175", "0.71419847", "0.7139158", "0.7131", "0.7092686", "0.7084796", "0.7084796", "0.7084004", "0.70262176", "0.7025256", "0.7001349", "0.6992559", "0.69917744", ...
0.0
-1
Just renders a page for /
def d6pt(QePW): rPXJ = 'pages/index.html' return _1tc(QePW, rPXJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OsD3():\n return TvZl('index.html')", "def hXw_():\n return TvZl('index.html')", "def NMoC(YKHO):\n YKHO.render('index.html')", "def Ozko():\n return TvZl('index.html')", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n return...
[ "0.7847489", "0.77737665", "0.77508414", "0.7691625", "0.7687196", "0.7687196", "0.7687196", "0.76506484", "0.7637517", "0.76325065", "0.76239765", "0.76239765", "0.7619322", "0.7618352", "0.758153", "0.75491834", "0.75319755", "0.752033", "0.75080985", "0.75080985", "0.75080...
0.7283151
48
Get the height of the board.
def VAHQ(YKHO): return YKHO._height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v2(YKHO):\n return YKHO.board.shape[0]", "def bAiv(YKHO):\n return YKHO.height", "def bAiv(YKHO):\n return YKHO.height", "def bAiv(YKHO):\n return YKHO._height", "def xglF(YKHO):\n return YKHO._height", "def xglF(YKHO):\n return YKHO._height", "def xglF(YKHO):\n return YKHO._...
[ "0.8506178", "0.7828281", "0.7828281", "0.7792005", "0.77683884", "0.77683884", "0.77683884", "0.77683884", "0.77662206", "0.7763028", "0.776071", "0.77545404", "0.7742475", "0.77377915", "0.7721646", "0.769687", "0.76945823", "0.76945823", "0.76945823", "0.7678935", "0.76789...
0.7788401
4
Create a ``Dense`` layer.
def FIMM(YKHO, rYO3, YDYE=None, e5sz=True, RG9Q='glorot_uniform', wdin='zeros', zjgh=None, mdiS=None, **B2fa): super(l6ZH, YKHO).__init__(**B2fa) YKHO.input_dim = B2fa.get('input_dim', None) YKHO.units = int(rYO3) YKHO.activation = YoQM.get(YDYE) YKHO.use_bias = e5sz YKHO.kernel_initializer = Ec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A0RF(PL8k):\n return l6ZH(vNnt, kernel_initializer=MuED())(PL8k)", "def A0RF(YKHO, FRUf, rYO3, mWFP, YDYE='linear'):\n with ZylS.variable_scope('Dense', mWFP):\n wOp_ = ZylS.truncated_normal(shape=(YKHO.num_channels(FRUf), rYO3), dtype=ZylS.float32)\n yzQ0 = ZylS.Variable(wOp_)\n F...
[ "0.75564796", "0.73921734", "0.7307958", "0.70343965", "0.6820574", "0.68191934", "0.6804003", "0.6723038", "0.6525088", "0.6481959", "0.64693815", "0.6426125", "0.6416243", "0.63848716", "0.63337976", "0.6285083", "0.6280479", "0.6274717", "0.6228125", "0.6204087", "0.619936...
0.6335794
14
Create a ``Dropout`` layer.
def FIMM(YKHO, mVUw, **B2fa): super(lARV, YKHO).__init__(**B2fa) YKHO.rate = mVUw YKHO.inplace = B2fa.get('inplace', False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MKgL(YKHO):\n return ZylS.keras.layers.Dropout(rate=YKHO.dropout)", "def fH_T(THkp, exwG, YDYE, sMyr):\n DbxN = ZylS.contrib.layers.variance_scaling_initializer(mode='FAN_AVG')\n lQ3t = ZylS.layers.Dropout(sMyr)\n VlDb = ZylS.layers.Dense(exwG, YDYE, kernel_initializer=DbxN, kernel_regularizer=lQ...
[ "0.86633456", "0.7532193", "0.7481706", "0.746232", "0.73892367", "0.7186784", "0.7115536", "0.7003306", "0.6755994", "0.6658514", "0.65808827", "0.65121865", "0.6507173", "0.64662296", "0.6463499", "0.63817304", "0.6333375", "0.63092995", "0.63043326", "0.63043326", "0.63043...
0.52865225
72
Create (unnormalized) probability array for a discretization grid. Lower edge/corner probabilities.
def YySe(ROpF): XP5J = oyIN.ones(ROpF) or8S = oyIN.nonzero(XP5J) exwG = oyIN.zeros(XP5J.size) for YRbF, zNig in zip(or8S, ROpF): exwG += oyIN.all([YRbF > 0, YRbF < zNig - 1], axis=0) XP5J[or8S] = 2 ** exwG return XP5J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P7Pw(YKHO, w1uq=False):\n if YKHO.dice_array is not None:\n raise Exception('P-array when using a dice_array not implemented yet.')\n else:\n if YKHO.sides is not 6 or YKHO.number is not 2:\n raise Exception('Anything but two six-sided dice not supported yet.')\n zn6u = YK...
[ "0.61458087", "0.6035294", "0.5958914", "0.59196705", "0.5877442", "0.57685053", "0.5734798", "0.57225114", "0.5673937", "0.5623372", "0.5542015", "0.5541386", "0.5540159", "0.55077606", "0.55069613", "0.5503933", "0.54912883", "0.54310286", "0.54272133", "0.5425883", "0.5422...
0.5894462
4
Block until media is playing, typically useful in a script. Another way to do the same is to check if the controller is_active or by using self.status.player_state.
def HHfp(YKHO, qoQs=None, vYBr=None, **B2fa): YKHO.play_media_event.clear() YKHO.play_media(qoQs, **B2fa) YKHO.play_media_event.wait(vYBr) YKHO.play_media_event.clear()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HHfp(YKHO, ZfUD, vYBr=None):\n YKHO.play_media_event.clear()\n YKHO.play_media(ZfUD)\n YKHO.play_media_event.wait(vYBr)\n YKHO.play_media_event.clear()", "def BKK6(YKHO):\n yIVm = BaAN(playback_state=eyBA.Interrupted)\n YKHO.state.set_player_state(Q995, yIVm)\n YKHO.state.set_active_play...
[ "0.73112506", "0.69484967", "0.6918306", "0.68083113", "0.67477334", "0.6725133", "0.670313", "0.66943944", "0.66783804", "0.667731", "0.66683555", "0.6566635", "0.65630853", "0.6546677", "0.6496603", "0.6494565", "0.64776367", "0.64410144", "0.64197254", "0.64197254", "0.641...
0.7741685
0
Get current media_item, media, & part for PMS.
def IjIw(YKHO): H5ew = int(YKHO.status.content_id.split('/')[-1]) Xqgo = YKHO.pms.fetchItem(H5ew).reload() hcqM = YKHO.status.media_custom_data.get('mediaIndex', 0) UIin = YKHO.status.media_custom_data.get('partIndex', 0) qoQs = Xqgo.media[hcqM] Q7me = qoQs.parts[UIin] return (Xqgo, qoQs, Q7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0LT(YKHO):\n return YKHO._current_item['name']", "def dnF2(YKHO):\n return YKHO._current_item['description']", "def ynlQ(YKHO):\n return YKHO._media_track", "def OuuU(YKHO):\n return int(YKHO._gallery_status['current_item'])", "def P44R(nPrm):\n CBIr = nPrm['user']\n Rci7 = nPrm.get(...
[ "0.57332", "0.5687245", "0.5607989", "0.5556231", "0.55452216", "0.55167013", "0.5467086", "0.5464833", "0.542255", "0.54173946", "0.5386879", "0.5362278", "0.5362278", "0.5350001", "0.53148407", "0.53147006", "0.53125274", "0.52915543", "0.5279683", "0.5263635", "0.5262892",...
0.8217627
0
Get the next valid run id
def MheT(YKHO): xDcj = "SELECT NEXTVAL(pg_get_serial_sequence('task_history', 'run_id'))" DpUl = YKHO.conn.cursor() DpUl.execute(xDcj) YKHO.conn.commit() return DpUl.fetchone()[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qjoF(U7_R: str) -> int:\n GRVp = [Csk6 for Csk6 in Hy7s.listdir(U7_R) if Hy7s.path.isdir(Hy7s.path.join(U7_R, Csk6))]\n Mkmy = ZbWC.compile('^\\\\d+')\n ByBU = 0\n for Z0kE in GRVp:\n r8hN = Mkmy.match(Z0kE)\n if r8hN is not None:\n YRbF = int(r8hN.group())\n ByB...
[ "0.74003047", "0.72451735", "0.70934284", "0.70767295", "0.70419943", "0.70079046", "0.6985732", "0.6972058", "0.69625205", "0.68697035", "0.6842018", "0.6842018", "0.68060046", "0.66828555", "0.65902674", "0.65631014", "0.6561333", "0.655831", "0.6554891", "0.65479845", "0.6...
0.8212941
0
Creates a Keras model as in the paper.
def LQs7(): GhuM = (768,) input = bdPE.Input(shape=GhuM) WKvO = fhcK.Dense(64, activation='sigmoid')(input) WKvO = fhcK.Dense(64, activation='sigmoid')(WKvO) WKvO = fhcK.Dense(64, activation='sigmoid')(WKvO) WKvO = fhcK.Dense(64, activation='sigmoid')(WKvO) yvT9 = fhcK.Dense(1, activation='s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQs7():\n C3ST = ileL()\n C3ST.add(l6ZH(units=128, activation='relu', input_shape=(784,)))\n C3ST.add(l6ZH(units=128, activation='relu'))\n C3ST.add(l6ZH(units=128, activation='relu'))\n C3ST.add(l6ZH(units=10, activation='softmax'))\n C3ST.compile(optimizer=EW5f(0.001), loss='categorical_cro...
[ "0.7983285", "0.77246064", "0.7609753", "0.75745094", "0.75697845", "0.74997264", "0.7463886", "0.7451531", "0.7434139", "0.7413985", "0.7410586", "0.73816967", "0.7353634", "0.7353367", "0.7304792", "0.7296666", "0.7291704", "0.72805613", "0.72532266", "0.7236777", "0.722012...
0.7537234
5
Returns string dictionary serialization cast as string.
def rIkN(YKHO) -> str: return PjZe(YKHO.as_dict(), cls=l3dz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIwR(YKHO):\n return str(YKHO._dict)", "def kjxD(Csk6):\n yxzR = xDSY.StringIO()\n KFPx(Csk6, output=yxzR)\n return yxzR.getvalue()", "def oDPF(Csk6: dict) -> str:\n return str({str(P6bq): str(Ty9i) for P6bq, Ty9i in Csk6.items()})", "def Rekt(YKHO) -> str:\n kcsq = []\n for H5ew, BW...
[ "0.78481305", "0.77717197", "0.7389359", "0.7012255", "0.6923015", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", "0.6915299", ...
0.0
-1
Assembles a Structure object from a dictionary parameterizing one.
def jG8h(cmPJ: dict) -> 'flare.struc.Structure': Qpq_ = Ij4F(cell=oyIN.array(cmPJ['cell']), positions=oyIN.array(cmPJ['positions']), species=cmPJ['coded_species'], forces=cmPJ.get('forces'), mass_dict=cmPJ.get('mass_dict'), species_labels=cmPJ.get('species_labels')) Qpq_.energy = cmPJ.get('energy') Qpq_.str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Svug(FS3o, bo34=None):\n from aiida.orm import DataFactory\n adb5 = DataFactory('structure')\n BlNT = adb5(cell=FS3o['lattice'])\n BlNT.set_pbc(FS3o['pbc'])\n GyzE = FS3o.get('kinds', None)\n if GyzE is None:\n if bo34:\n bo34.warning(\"no 'kinds' available, creating new kin...
[ "0.6756273", "0.60232925", "0.5969138", "0.5862488", "0.5862488", "0.5857976", "0.5829684", "0.58186454", "0.57709754", "0.572965", "0.5728529", "0.57243526", "0.5684932", "0.5681282", "0.56764966", "0.5660098", "0.56598914", "0.56507903", "0.56427306", "0.5627443", "0.558776...
0.68902653
0
Returns FLARE structure as a pymatgen structure.
def sexC(YKHO): if not b08U: raise ModuleNotFoundError('Pymatgen is not present. Please install Pymatgen and try again') QY5n = {'force:': YKHO.forces, 'std': YKHO.stds} return o5eM.Structure(lattice=YKHO.cell, species=YKHO.species_labels, coords=YKHO.positions, coords_are_cartesian=True, site_prope...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QlZ_(YKHO):\n QlZ_ = getattr(YKHO.vasprun_obj, 'final_structure', None)\n if not QlZ_:\n return None\n return uHx8('structure', pymatgen=QlZ_)", "def _tpO(YKHO):\n NI4b = YKHO.name\n nJxq = YKHO.__residues__(NI4b)\n return Ij4F(list(nJxq), pdb=NI4b)", "def HI7L(g8x2: 'pymatgen Stru...
[ "0.6244702", "0.6154664", "0.60991675", "0.6053404", "0.60274804", "0.59549284", "0.5843134", "0.5812698", "0.580171", "0.576196", "0.5713444", "0.56651855", "0.5619667", "0.5600445", "0.5589753", "0.5585757", "0.5580204", "0.5575376", "0.5570575", "0.5570575", "0.5570575", ...
0.63120776
0
given an expression of the form ${lhs} = ${rhs} where $lhs is a sequence or object unpacking syntax return a new expression which can be minified returns None if the lhs is already trivialbly minifiable objects unpacking where the object attribute is assigned a default value need to have the expression rewritten to a f...
def hGUU(YKHO, yLHq, RKYb): Q1bM = yLHq.line SCpB = yLHq.index mWFP = '$js$unpack$%d$%d_' % (Q1bM, SCpB) vEq1 = _J2v(_J2v.T_TEXT, Q1bM, SCpB, mWFP) M6hN = _J2v(_J2v.T_COMMA, Q1bM, SCpB, ',') M6hN.children.append(YKHO._h_assign(vEq1, RKYb)) gDh8 = False E5BI = [(vEq1, yLHq.clone())] w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ot_D(TMbP, VjZK):\n if type(TMbP.rvalue).__name__ == 'FuncCall':\n nDno, vhyM = xauI(TMbP.rvalue, VjZK)\n if type(TMbP.lvalue).__name__ == 'ID' and TMbP.lvalue.name in VjZK or (type(TMbP.lvalue).__name__ == 'UnaryOp' and TMbP.lvalue.expr.name in VjZK):\n if not nDno:\n ...
[ "0.5632931", "0.5438055", "0.536297", "0.5360628", "0.5308538", "0.52829945", "0.5236419", "0.5138689", "0.50687164", "0.506529", "0.505845", "0.505845", "0.5031756", "0.5027583", "0.5001796", "0.4952994", "0.49004197", "0.48766077", "0.4871658", "0.48715335", "0.48708108", ...
0.5078407
8
Singleton factory that builds the Brendel (2020) Measured Commercial LED Spectra dataset loader.
def Riqv(tyeH: bool=True) -> D7IB: global _DATASET_LOADER_BRENDEL2020 if I7Zc is None: I7Zc = D7IB() if tyeH: I7Zc.load() return I7Zc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def syqS(lHmx, zqIf):\n __n6 = sAMW(qsuW(), Te1x())\n __n6 = sAMW(qsuW(), Wu99())\n return pVAc(__n6, batch_size=lHmx, shuffle=zqIf, num_workers=0)", "def FIMM(YKHO, mWFP, GPtr):\n YKHO.name = mWFP\n YKHO.config = GPtr\n qbdk.__init__(YKHO, mWFP, GPtr)\n INLD = '{0}D0EEG'.format(mWFP)\n d...
[ "0.61916256", "0.592501", "0.5912945", "0.5823901", "0.5788497", "0.5757547", "0.571573", "0.57085186", "0.56964743", "0.5692073", "0.5662569", "0.5631852", "0.56311184", "0.5606542", "0.5579585", "0.5576443", "0.55410516", "0.5526542", "0.5525028", "0.5520259", "0.55074954",...
0.6056415
1
Route for welcome page, it's like menu for further interactions
def b8V_(): return TvZl('main.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j3Yc():\n return vKnz('/static/welcome.html')", "def kZiy():\n G9jH.info('Entering route: HOME')\n G9jH.info('Rendering template: main.html')\n return TvZl('main.html')", "def d6pt():\n _Kb1 = egk6.is_admin(c5ow())\n return TvZl('./welcome.html', username=c5ow(), is_admin=_Kb1)", "def u...
[ "0.7553658", "0.7425674", "0.7334936", "0.7309308", "0.7142669", "0.71309763", "0.71199995", "0.7073812", "0.7059673", "0.7013033", "0.70088494", "0.6990227", "0.69771266", "0.69632554", "0.6933642", "0.6923838", "0.69135517", "0.6910152", "0.69044995", "0.6869287", "0.686795...
0.0
-1
Read a DataFrame from the file. Load only the columns that show up in the feature guide and set the index intelligently using `PandasDataset.index_colname`. Currently this assumes csv files.
def h66N(IznC, tTXP): if isinstance(tTXP, exCv): tTXP = b_h9(tTXP) B2fa = {'index_col': IL8C.index_from_feature_guide(tTXP), 'usecols': tTXP.all_names} return rLdf.read_csv(IznC, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(pmON, nUeQ, PJWX=False, d6pt=0):\n jQ3Z = rLdf.read_csv(pmON + nUeQ, index_col=d6pt)\n if PJWX:\n ROpF = f'{jQ3Z.shape}'\n m1c7 = f'{jQ3Z.dtypes[:30]}'\n sdCG = f'{jQ3Z.head()[:10]}'\n mWFP = nUeQ.split('.')[0]\n print(f'{mWFP} shape'.center(80, '-'))\n prin...
[ "0.7135056", "0.70180535", "0.69924194", "0.69288963", "0.68164325", "0.67823493", "0.6770035", "0.6711918", "0.670997", "0.670997", "0.670997", "0.6634391", "0.66080666", "0.65084815", "0.65068966", "0.6501852", "0.65007675", "0.64886314", "0.64809924", "0.6410559", "0.64054...
0.64697146
19
Read a DataFrame from the file. Load only the columns that show up in the feature guide and set the index intelligently using `PandasDataset.index_colname`. Currently this assumes csv files.
def Ueki(YKHO, IznC): return YKHO.read_using_fguide(IznC, YKHO.fguide)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(pmON, nUeQ, PJWX=False, d6pt=0):\n jQ3Z = rLdf.read_csv(pmON + nUeQ, index_col=d6pt)\n if PJWX:\n ROpF = f'{jQ3Z.shape}'\n m1c7 = f'{jQ3Z.dtypes[:30]}'\n sdCG = f'{jQ3Z.head()[:10]}'\n mWFP = nUeQ.split('.')[0]\n print(f'{mWFP} shape'.center(80, '-'))\n prin...
[ "0.71359694", "0.70168364", "0.6993094", "0.69270647", "0.6815675", "0.678472", "0.6769766", "0.6713086", "0.67110735", "0.67110735", "0.67110735", "0.66336733", "0.6609732", "0.65095335", "0.65073806", "0.6502085", "0.6501412", "0.64894307", "0.64816475", "0.64686495", "0.64...
0.0
-1
Split the dataset based on a rowwise mask. This allows users to perform comparisons with fields of the DataFrame in the function call,
def lpha(YKHO, LncD, FPWK): EvQg = YKHO.dataset.loc[LncD] QOe9 = YKHO.dataset.loc[FPWK] return vkVF.from_dfs(EvQg, QOe9, YKHO.fguide)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gru_(jQ3Z, Fetj):\n LVAh = jQ3Z.filter(Fetj)\n WKvO = jQ3Z.drop(Fetj, axis=1)\n return (WKvO, LVAh)", "def Xfh7(jQ3Z, lpha):\n EvQg = jQ3Z.iloc[:int(len(jQ3Z) * lpha)]\n QOe9 = jQ3Z.iloc[int(len(jQ3Z) * lpha):]\n return (EvQg, QOe9)", "def tfwz(jQ3Z):\n aXns = jQ3Z[MlJX].apply(lambda W...
[ "0.6170406", "0.6055912", "0.6014616", "0.59700924", "0.5885788", "0.58658326", "0.5769585", "0.5756288", "0.57470036", "0.5727175", "0.57257", "0.56966984", "0.5672393", "0.56576735", "0.5649688", "0.5627125", "0.5607778", "0.5600751", "0.55790555", "0.5525489", "0.5509274",...
0.66029644
0
Initialize a dataset from DataFrame objects and a FeatureGuide already in memory.
def XctP(Emd4, x4W3, Dmme, tTXP): QTq5 = tTXP.all_names DfZ1 = Emd4.index_from_feature_guide(tTXP) if DfZ1 is None: EvQg = x4W3.reset_index(drop=True)[QTq5] QOe9 = Dmme.reset_index(drop=True)[QTq5] else: EvQg = x4W3.set_index(DfZ1)[QTq5] QOe9 = Dmme.set_index(DfZ1)[QTq5] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PK3w(YKHO, jQ3Z, **B2fa):\n return jQ3Z", "def EcIH(qIxc):\n bo34.info('Loading dataframe from %s' % qIxc.newspath)\n jQ3Z = rLdf.read_csv(qIxc.newspath, encoding='gb18030')\n bo34.info('Dataframe size: %d observations %d features after loaded' % (jQ3Z.shape[0], jQ3Z.shape[1]))\n bo34.info('Da...
[ "0.6769931", "0.62991035", "0.6292388", "0.62793726", "0.6244421", "0.62356234", "0.6220347", "0.61635345", "0.61570656", "0.61564827", "0.6148513", "0.61482173", "0.6145672", "0.6118643", "0.6099741", "0.60887766", "0.6059033", "0.6030796", "0.6023561", "0.59719825", "0.5950...
0.6334622
1
Return True if the given column has only NaN values, else False.
def mHHt(jQ3Z, iVRZ): return jQ3Z[iVRZ].isnull().sum() == len(jQ3Z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hEhj(YKHO) -> bool:\n return any([WKvO is oyIN.NaN for WKvO in YKHO.values])", "def L6uT(WKvO):\n return WKvO is oyIN.nan or WKvO != WKvO", "def hEhj(jzdc):\n return oyIN.any(oyIN.isnan(jzdc))", "def BBnQ(YKHO, RDhP: np.array) -> bool:\n if not oyIN.any(oyIN.isnan(RDhP)):\n return True...
[ "0.77780175", "0.7462633", "0.73858464", "0.7221337", "0.7219205", "0.72079015", "0.71758157", "0.7150138", "0.711477", "0.7046322", "0.698421", "0.697042", "0.6937544", "0.68773717", "0.68398887", "0.67971754", "0.67560625", "0.67355484", "0.67075855", "0.67024904", "0.66911...
0.7809844
0
Onehot encode the given columns of the train and test data. The encoded features are returned as two `scipy.sparse.csr_matrix`
def zGX0(YKHO, ZLJ_): if not ZLJ_: return None G9jH.info('one-hot-encoding columns: %s' % ','.join(ZLJ_)) MtOy = rLdf.concat((YKHO.train[ZLJ_], YKHO.test[ZLJ_])) MnDN = ZvG6.OneHotEncoder() ERVO = MnDN.fit_transform(MtOy).sorted_indices() CXnw = YKHO.train.shape[0] gx8m = ERVO[:CXnw]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(jQ3Z, BsPh):\n return rLdf.get_dummies(jQ3Z, columns=BsPh)", "def xpzK(jQ3Z, BsPh):\n for fvDH in BsPh:\n Nwha = rLdf.get_dummies(jQ3Z[fvDH], preffix=fvDH)\n jQ3Z = rLdf.concat([jQ3Z, Nwha], axis=1)\n jQ3Z.drop(fvDH, axis=1, inplace=True)\n return jQ3Z", "def ruz7(jQ3Z, W...
[ "0.7900512", "0.7832099", "0.7777277", "0.7775682", "0.776482", "0.7756541", "0.7702387", "0.7678082", "0.7646962", "0.7593864", "0.7557105", "0.7461908", "0.73693955", "0.72528243", "0.720281", "0.7194157", "0.7184027", "0.7180836", "0.71731234", "0.7060334", "0.7059996", ...
0.7848153
1
Returns the full path of a Sikuli project module. To load a module in a Sikuli script, use execfile(getmodulepath(modulename)).
def ruJ1(ZUSD): return umZ9 + '\\' + ZUSD + '.sikuli\\' + ZUSD + '.py'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MJH2():\n return Hy7s.path.dirname(QMSQ(xAKo, HwRy.getfilesystemencoding()))", "def H5Mn():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))", "def PNOv(YKHO, mWFP):\n return Hy7s.path.join(YKHO.modulesDir, mWFP)", "def WJI7(yR_P):\n return oAb3.Path(Hy7s.path.dirname(Hy7s.path.abspath(tq...
[ "0.77119386", "0.7525079", "0.7456764", "0.7422012", "0.7397728", "0.73364455", "0.7238491", "0.70865417", "0.7049372", "0.7019027", "0.68733454", "0.6868767", "0.68665034", "0.68108463", "0.67949843", "0.6792065", "0.6792065", "0.67199206", "0.6654636", "0.66390073", "0.6631...
0.77303064
0
Get the kafka topic string for a message.
def _IYl(YKHO, Dfxc: str, vk6L: str, maxk: typing.Optional[str]=None, JTkG: typing.Optional[str]=None): maxk = maxk if maxk is not None else YKHO.component_name JTkG = JTkG if JTkG is not None else YKHO.component_site return '{}.{}.{}.{}.{}'.format(C3ST.CNC_STRING, Dfxc, vk6L, maxk, JTkG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RHgQ(YKHO):\n from corehq.apps.change_feed.topics import get_topic_for_doc_type\n return get_topic_for_doc_type(YKHO.document_class().to_json()['doc_type'])", "def RHgQ(YKHO) -> str:\n return YKHO._kafka_topic", "def rlUa(YKHO):\n return YKHO._topic_name", "def rlUa(YKHO) -> str:\n return ...
[ "0.7280731", "0.71249217", "0.6897625", "0.6821359", "0.6702523", "0.6694478", "0.66248417", "0.658877", "0.649405", "0.6483746", "0.6370398", "0.6282885", "0.62503797", "0.62101936", "0.6167804", "0.6078987", "0.6077721", "0.6020825", "0.5996986", "0.59561086", "0.5913355", ...
0.5851098
22
Return the timestamp formatted correctly as per the ICD.
def X2x9(): return '{}Z'.format(qcWV.datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ItX3():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S')", "def X2x9():\n return str(int(ITS7.time()))", "def X2x9() -> str:\n JRYC = rIAI('UTC').localize(qcWV.utcnow()).strftime('%b. %d, %Y#%H:%M UTC')\n _c1T, ITS7 = JRYC.split('#')\n return f'Event Timestamp: 📅 {_c1T} 🕒 {ITS7}'", "def E3oo...
[ "0.7789721", "0.7708999", "0.7569324", "0.75247693", "0.7492911", "0.7475871", "0.74352854", "0.7311915", "0.7289902", "0.7261527", "0.72393423", "0.72393423", "0.72045416", "0.7202777", "0.71884894", "0.7179104", "0.71713656", "0.71064085", "0.7097272", "0.7083421", "0.70767...
0.7502949
4
Return the MAC address of the default interface. Platformspecific hack for Linux per
def QiWP(): if not HwRy.platform.startswith('linux'): raise RuntimeError('Cannot get the MAC address on non-Linux platforms') fD9V = AWvr() KCHu = GGmw.socket(GGmw.AF_INET, GGmw.SOCK_DGRAM) U34r = AiF7.ioctl(KCHu.fileno(), 35111, BlNT.pack('256s', bytes(fD9V, 'utf-8')[:15])) return ''.join((...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KBOU():\n _C8X = 'eth0'\n KYrJ = bT5T.ifaddresses(_C8X)[bT5T.AF_LINK][0]\n HXjy = KYrJ['addr']\n return HXjy", "def Oi9q(YKHO):\n import netifaces\n U4Kw = ['eth0', 'wlan0']\n try:\n U4Kw.append(netifaces.gateways()['default'][netifaces.AF_INET][1])\n except:\n pass\n ...
[ "0.8076195", "0.8065709", "0.8045768", "0.78374714", "0.78374714", "0.77098304", "0.76101416", "0.74770516", "0.7271252", "0.71261764", "0.70321023", "0.70158494", "0.70158494", "0.7015012", "0.6997866", "0.69784534", "0.6974591", "0.6931664", "0.6882667", "0.6875614", "0.685...
0.8543561
0
Get padding and out padding for deconv layers.
def JhwG(aswy): if aswy == 4: dvgN = 1 EJc2 = 0 elif aswy == 3: dvgN = 1 EJc2 = 1 elif aswy == 2: dvgN = 0 EJc2 = 0 else: raise ValueError(f'Not supported num_kernels ({aswy}).') return (aswy, dvgN, EJc2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pUci(YKHO, aswy):\n if aswy == 4:\n dvgN = 1\n EJc2 = 0\n elif aswy == 3:\n dvgN = 1\n EJc2 = 1\n elif aswy == 2:\n dvgN = 0\n EJc2 = 0\n else:\n raise ValueError('Unsupported deconvolution kernel: {}'.format(aswy))\n return (aswy, dvgN, EJc2)", ...
[ "0.78015393", "0.74816775", "0.7480797", "0.7480797", "0.7480797", "0.7480797", "0.7480797", "0.7210895", "0.69440395", "0.6634688", "0.6626668", "0.6540815", "0.65065384", "0.6496972", "0.637711", "0.6264684", "0.61886394", "0.61839074", "0.61690956", "0.60535216", "0.597913...
0.76353306
1
Return the number of publishers on a given topic. `topic_name` may be a relative, private, or fully qualifed topic name. A relative or private topic is expanded using this node's namespace and name. The queried topic name is not remapped.
def x812(YKHO, O7Jy): return YKHO._count_publishers_or_subscribers(O7Jy, H8PP.rclpy_count_publishers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Emrm(YKHO, O7Jy):\n return YKHO._count_publishers_or_subscribers(O7Jy, H8PP.rclpy_count_subscribers)", "def EoFm(YKHO, rlUa):\n return len(YKHO.client.cluster.partitions_for_topic(rlUa))", "def ArJE():\n xDcj = Ubqg.RawQuery(T97t, 'select topic, count(topic) from post group by topic').tuples()\n ...
[ "0.73476803", "0.6390559", "0.5956282", "0.5552248", "0.55169606", "0.5452071", "0.53669447", "0.5326968", "0.5271389", "0.52647334", "0.50830483", "0.4969086", "0.49304906", "0.49007905", "0.4855666", "0.48467386", "0.47765368", "0.47557527", "0.47360197", "0.47356427", "0.4...
0.8178514
0
Return the number of subscribers on a given topic. `topic_name` may be a relative, private, or fully qualifed topic name. A relative or private topic is expanded using this node's namespace and name. The queried topic name is not remapped.
def Emrm(YKHO, O7Jy): return YKHO._count_publishers_or_subscribers(O7Jy, H8PP.rclpy_count_subscribers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x812(YKHO, O7Jy):\n return YKHO._count_publishers_or_subscribers(O7Jy, H8PP.rclpy_count_publishers)", "def VOru(YKHO, O7Jy):\n _hkX = YKHO._make_request('get', 'topics/%s/subscriptions' % O7Jy)\n return _hkX.json()", "def EoFm(YKHO, rlUa):\n return len(YKHO.client.cluster.partitions_for_topic(r...
[ "0.74618065", "0.64858437", "0.5836567", "0.56168777", "0.5537765", "0.5465071", "0.5459392", "0.54025996", "0.52928007", "0.5251367", "0.5238064", "0.52199054", "0.5174787", "0.51182085", "0.5116878", "0.50683266", "0.50647384", "0.50384855", "0.5021121", "0.49982363", "0.49...
0.80566245
0
Unicode representation of ProductImage.
def zAg0(YKHO): return f'{YKHO.product.title} - Color {YKHO.product.color}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EjLe(VfIt, **B2fa):\n zZas = B2fa['char_set']\n AmrY = B2fa['x256']\n H2v2 = 20\n TVTK = 10\n if VfIt == '-':\n JZXy = HwRy.stdin.buffer\n VfIt = aKaX()\n VfIt.write(JZXy.read())\n Xn71 = hnIv.open(VfIt)\n nW6T, GdnS = Xn71.size\n for rdlD in range(GdnS // H2v2):\n ...
[ "0.6025282", "0.59525174", "0.59301233", "0.58355874", "0.5823471", "0.5746074", "0.57269967", "0.57226336", "0.5686665", "0.5661257", "0.56381625", "0.5606962", "0.5586364", "0.55677336", "0.55675006", "0.55636615", "0.5533607", "0.5518763", "0.55176735", "0.5501053", "0.550...
0.0
-1
Sets the reg_id of this AttachmentViewModel.
def QfhL(YKHO, QfhL): YKHO._reg_id = QfhL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NEqR(YKHO, NEqR):\n YKHO._registration_id = NEqR", "def bx1m(YKHO, bx1m):\n YKHO._registration_tid = bx1m", "def guPV():\n if not QePW.json or not 'regID' in QePW.json or (not 'id' in QePW.json):\n eTsH(400)\n nMvs = QePW.json.get('regID', '')\n id = QePW.json['id']\n DW23 = FYrf.U...
[ "0.6523132", "0.6015378", "0.575837", "0.5464582", "0.5390868", "0.5271694", "0.5264238", "0.5261741", "0.52247727", "0.52247727", "0.5173646", "0.51274043", "0.51070744", "0.5075839", "0.5070825", "0.5049064", "0.5049064", "0.5049064", "0.5049064", "0.5049064", "0.5049064", ...
0.765568
0
Sets the picture_id of this AttachmentViewModel.
def U6MO(YKHO, U6MO): YKHO._picture_id = U6MO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r8m5(YKHO, r8m5):\n YKHO._image_id = r8m5", "def r8m5(YKHO, r8m5):\n YKHO._image_id = r8m5", "def r8m5(YKHO, r8m5):\n if r8m5 is None:\n raise ValueError('Invalid value for `image_id`, must not be `None`')\n YKHO._image_id = r8m5", "def QcCx(YKHO, QcCx):\n YKHO._avatar_id = QcCx", ...
[ "0.67307395", "0.67307395", "0.604427", "0.597608", "0.5769138", "0.56159526", "0.55635685", "0.55197793", "0.53957415", "0.5338598", "0.5192693", "0.5186238", "0.51631904", "0.5058312", "0.5040226", "0.5020933", "0.4985115", "0.49697262", "0.49579874", "0.49571392", "0.49186...
0.7987821
0
Sets the photographer of this AttachmentViewModel.
def xfsB(YKHO, xfsB): YKHO._photographer = xfsB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K2C3(YKHO, K2C3):\n YKHO._pathogen_morphology = K2C3", "def HGqR(YKHO, HGqR):\n YKHO.logger.debug(\"In 'mother' setter.\")\n YKHO._mother = HGqR", "def kxye(YKHO, kxye):\n YKHO._photos = kxye", "def BUMl(YKHO, BWXx: str):\n YKHO._properties['attacher'] = BWXx", "def FIMM(YKHO, xfsB=None,...
[ "0.55737853", "0.49111912", "0.48010647", "0.4714482", "0.45989436", "0.45147127", "0.45114234", "0.44495958", "0.43712753", "0.43663102", "0.43161353", "0.43023735", "0.42809683", "0.4270284", "0.42601532", "0.42583272", "0.423015", "0.4226989", "0.41979557", "0.41914412", "...
0.8057541
0
Sets the geo_hazard_name of this AttachmentViewModel.
def YVfB(YKHO, YVfB): YKHO._geo_hazard_name = YVfB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jfex(YKHO, Jfex):\n YKHO._geo_hazard_tid = Jfex", "def Jfex(YKHO, Jfex):\n YKHO._geo_hazard_tid = Jfex", "def ncr6(YKHO, ncr6: 'str'):\n YKHO._attrs['triggerName'] = ncr6", "def _p5_(YKHO, _p5_):\n YKHO._land_slide_trigger_name = _p5_", "def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe", "def ...
[ "0.63634187", "0.63634187", "0.626276", "0.5714656", "0.55655044", "0.55584437", "0.544792", "0.5383463", "0.5328067", "0.5297784", "0.5274341", "0.527407", "0.527407", "0.5270802", "0.5270802", "0.5265966", "0.5255302", "0.5254347", "0.5254258", "0.5249294", "0.5247349", "...
0.87623584
0
Sets the registration_tid of this AttachmentViewModel.
def bx1m(YKHO, bx1m): YKHO._registration_tid = bx1m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NEqR(YKHO, NEqR):\n YKHO._registration_id = NEqR", "def PeJ8(YKHO, Huo2):\n YKHO.__tid = Huo2", "def UAmN(YKHO, UAmN):\n YKHO._registration_number = UAmN", "def Artt(YKHO, Artt):\n YKHO._guid = Artt", "def QfhL(YKHO, QfhL):\n YKHO._reg_id = QfhL", "def Artt(YKHO, Artt):\n YKHO._guid...
[ "0.6504463", "0.5935002", "0.56884325", "0.5423006", "0.5363919", "0.53467065", "0.53467065", "0.53467065", "0.5211674", "0.5161539", "0.5161539", "0.5161539", "0.5161539", "0.51089466", "0.5069953", "0.50696445", "0.5059008", "0.49867812", "0.49268264", "0.49058896", "0.4904...
0.80538756
0
Sets the registration_name of this AttachmentViewModel.
def RPcJ(YKHO, RPcJ): YKHO._registration_name = RPcJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, ...
[ "0.60173804", "0.60173804", "0.60173804", "0.60173804", "0.60173804", "0.60173804", "0.60173804", "0.60173804", "0.60173804", "0.60173804", "0.60173804", "0.60173804", "0.60098237", "0.5997677", "0.59962857", "0.59962857", "0.59962857", "0.59962857", "0.5991271", "0.5991271", ...
0.78067887
0
Sets the is_main_attachment of this AttachmentViewModel.
def HB8t(YKHO, HB8t): YKHO._is_main_attachment = HB8t
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vou7(yoQV):\n if not Hy7s.path.exists(aDug):\n open(aDug, 'x').close()\n eHNT = open(aDug, 'r')\n try:\n nPrm = qQXR.loads(eHNT.read())\n except bZdH:\n nPrm = {}\n finally:\n eHNT.close()\n nPrm[loi_] = yoQV\n eHNT = open(aDug, 'w')\n eHNT.write(qQXR.dumps(n...
[ "0.5437872", "0.54004514", "0.52261674", "0.51949036", "0.5187433", "0.5119293", "0.51087487", "0.5040282", "0.4755697", "0.4724633", "0.4722109", "0.47153226", "0.46702316", "0.4653628", "0.46515274", "0.45999354", "0.45999354", "0.4573638", "0.45614552", "0.4529129", "0.452...
0.88589025
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, gfTt): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Generate a random string of stringLength
def TJC9(FVpJ=8): return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(u54L)))", "def BWvy(u54L=8):\n return ''.join([tuKI.choice(vIwR.letters + vIwR.digits) f...
[ "0.86925906", "0.85734475", "0.84746855", "0.8443599", "0.843952", "0.84287953", "0.8417807", "0.84153235", "0.84066963", "0.840435", "0.84028375", "0.8392971", "0.8386087", "0.83850694", "0.83840364", "0.8364928", "0.8349178", "0.8348809", "0.8345499", "0.8329673", "0.832430...
0.8211052
34
Collection of options that are allowed for a specific property.
def xAU6(YKHO) -> uLKX[object, bdIy]: return YKHO._options
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xAU6(YKHO):\n sOFw = YKHO.get_product_class().options.all()\n return sOFw | YKHO.product_options.all()", "def xAU6(YKHO):\n return list(YKHO._moptions.keys())", "def knO1(YKHO, YfSL: unicode) -> RnTg.framework.options.Options:\n ...", "def bPKo(YKHO):\n return YKHO._options.items()", "de...
[ "0.6242525", "0.6212377", "0.6205646", "0.61794347", "0.617692", "0.61510175", "0.6101245", "0.6053434", "0.60511816", "0.59264433", "0.589645", "0.58952796", "0.5883731", "0.58265036", "0.57641643", "0.5742871", "0.57256293", "0.57115996", "0.568958", "0.568504", "0.56811434...
0.5564841
25
Add item to end of stack.
def _jXH(YKHO, ZfUD): YKHO._list.append(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO.stack.insert(0, ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO._stack.append(ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO...
[ "0.8617164", "0.84178674", "0.84178674", "0.8400367", "0.8213554", "0.8037595", "0.8036368", "0.79968196", "0.7918985", "0.7892842", "0.7885461", "0.77812266", "0.77094644", "0.7647425", "0.7624902", "0.7624902", "0.7624902", "0.7624902", "0.7624902", "0.76033556", "0.7603019...
0.73176414
38
r"""Take a single view dataset and split it into multiple views.
def hKRt(YKHO, EcVT): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GVVz(YKHO, tTee=None):\n jQ3Z = rLdf.read_csv(YKHO.splitsFile, index_col='d3mIndex')\n if tTee is None:\n return jQ3Z\n elif tTee.upper() == 'TRAIN':\n jQ3Z = jQ3Z[jQ3Z['type'] == 'TRAIN']\n return jQ3Z\n elif tTee.upper() == 'TEST':\n jQ3Z = jQ3Z[jQ3Z['type'] == 'TEST']...
[ "0.65484107", "0.6540357", "0.6141009", "0.60056204", "0.5775292", "0.57197875", "0.5670629", "0.56295514", "0.5619426", "0.5580253", "0.55065316", "0.5441773", "0.53670347", "0.5363159", "0.53577036", "0.53539145", "0.5341736", "0.5321063", "0.5316874", "0.5315638", "0.53136...
0.0
-1
r"""Take a single view dataset and split it into multiple views. The input dimension must match the fitted dimension of the multiview dataset.
def hKRt(YKHO, EcVT): mrZR(YKHO) z8Mv = EcVT.shape[1] if z8Mv != YKHO.n_total_features_: raise ValueError('The number of features in the input array ({}) does not match the total number of features in the multiview dataset ({})'.format(z8Mv, YKHO.n_total_features_)) return oyIN.split(EcVT, oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kFRw(YKHO):\n YKHO.addSplit()", "def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.valid, YKHO.valid, test_size=0.5)", "def h7f1(YKHO, NI2E=0.3, tTee=0):\n Lcqa, Z5wO, VJv0, H96n = bHtP(YKHO.data[tTee...
[ "0.61281", "0.60384375", "0.6011891", "0.59815747", "0.5902314", "0.5897515", "0.58491033", "0.58137226", "0.5764436", "0.57559013", "0.5673649", "0.5663032", "0.56512034", "0.56171703", "0.56047", "0.5518049", "0.54144454", "0.5402312", "0.5400078", "0.53878117", "0.53835684...
0.0
-1
Constructor for the EmailSettingsSample object. Takes an email, password and an app id corresponding to a google apps admin account to demo the Email Settings API.
def FIMM(YKHO, zrIJ, D3lj, jTXt, P4t4): YKHO.client = tZyp(domain=zrIJ) YKHO.client.ClientLogin(email=D3lj, password=jTXt, source=P4t4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, D3lj, x03U, GQl3=None, QUSx=None, x0hE=None):\n YKHO.adapters = {}\n YKHO.email = D3lj\n YKHO.refresh_token = GQl3\n YKHO.private_key = x03U\n YKHO.feed = QUSx\n YKHO.client = x0hE", "def FIMM(YKHO, D3lj, zrIJ, jTXt):\n YKHO.gd_client = HBzi.apps.service.AppsService()\n YKH...
[ "0.6125843", "0.6063301", "0.60597956", "0.58747786", "0.5871965", "0.5835401", "0.57823735", "0.57516176", "0.57399696", "0.5736076", "0.5729424", "0.57175773", "0.5671739", "0.5661746", "0.56279176", "0.5615302", "0.5575449", "0.55207294", "0.55168694", "0.5511044", "0.5504...
0.7435816
0
Computation pipeline based on a encoder + emotion classifier.
def GQj7(YKHO, Wc9F, EtM5): Wc9F = Wc9F.to(YKHO.device) fi17, tm40 = Wc9F.sig LyKa = YKHO.modules.compute_features(fi17) LyKa = YKHO.modules.mean_var_norm(LyKa, tm40) KTQ3 = YKHO.modules.embedding_model(LyKa) o4Jx = YKHO.modules.classifier(KTQ3) return o4Jx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TkMt():\n UEw6 = IbFw([P2B6])\n u5cU(P2B6)\n Cv0v = o_DD(inputs=[OK3L.high], mask=UEw6)\n XcCC = PePl(inputs=[OK3L.low], mask=UEw6)\n UwMY = i3ya(inputs=[OK3L.open, OK3L.high, OK3L.low, OK3L.close], mask=UEw6)\n wW5K = Vgvu(inputs=[OK3L.open, OK3L.high, OK3L.low, OK3L.close], mask=UEw6)\n ...
[ "0.6151563", "0.6076978", "0.60287476", "0.6008339", "0.59602565", "0.59006834", "0.58996844", "0.5843488", "0.578489", "0.57457525", "0.5732154", "0.57270837", "0.5723349", "0.57033813", "0.5699445", "0.56970775", "0.567495", "0.56680554", "0.5655927", "0.5636237", "0.563019...
0.5307159
90
return jenks configuration file
def IQtO(): pmON = Hy7s.path.abspath(Hy7s.curdir) while pmON != Hy7s.sep: lqQH = Hy7s.path.join(pmON, vg61) if Hy7s.path.exists(lqQH): return lqQH pmON = Hy7s.path.dirname(pmON) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nu1S(YKHO):\n return YKHO[ByCR]", "def Nu1S(YKHO):\n return zOLB(YKHO.prefix.etc.bohrium, 'config.ini')", "def rbWw(YKHO):\n return YKHO._kube_config", "def zoFt():\n VqRE = rW6z + 'config'\n with open(VqRE, mode='r', encoding='utf-8') as eHNT:\n rmaw = qQXR.load(eHNT)\n retu...
[ "0.68726814", "0.68500286", "0.6820392", "0.66428393", "0.65919834", "0.6558856", "0.65458685", "0.65399057", "0.65298325", "0.65003353", "0.6479525", "0.6474058", "0.64501226", "0.63529766", "0.6322193", "0.6300796", "0.62968624", "0.62951607", "0.62798166", "0.6241388", "0....
0.5924413
45
Creates the self and global components. Self is a matrix of probability distributions (one for each user) and global is vector, that is the probability distribution of the entire population. Self is essentially the rows of the training data, normalized to sum to 1, after adding some smoothing.
def aMrE(EvQg, wEf2, QOe9, en8t=False): Mkmy, Z9rn = XON9(EvQg, wEf2, QOe9) p7zy = 1.0 / Z9rn if en8t: EvQg = oyIN.vstack((EvQg, wEf2)) r4Zn = lqeT(MC8w(EvQg, p7zy)) fjAV = lqeT(ZFWz(r4Zn, p7zy)) return (r4Zn, fjAV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ytC1(YKHO):\n YKHO.endIndexOfClassConditionalProbability = YKHO.numOfGridsIn1D * YKHO.numOfGridsIn1D * YKHO.numOfClasses\n YKHO.endIndexOfObjectProbability = YKHO.endIndexOfClassConditionalProbability + YKHO.numOfGridsIn1D * YKHO.numOfGridsIn1D * YKHO.numOfBoxesPerGrid\n YKHO.classConditionalProbabili...
[ "0.6079281", "0.6070321", "0.59109205", "0.58092386", "0.5717721", "0.5695477", "0.56727225", "0.5653412", "0.5638205", "0.5620746", "0.56021786", "0.55986905", "0.5573674", "0.5558025", "0.5552711", "0.5544971", "0.55136496", "0.5511706", "0.5497658", "0.5494264", "0.5476132...
0.0
-1
Initialize the weights of Convolution2D and BatchNorm2D with normal.
def vg4I(r8hN): if isinstance(r8hN, U78l.Conv2d): r8hN.weight.data.normal_(0.0, 0.02) elif isinstance(r8hN, U78l.BatchNorm2d): r8hN.weight.data.normal_(1.0, 0.02) r8hN.bias.data.fill_(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n for r8hN in YKHO.cls_convs:\n h6h3(r8hN.conv, std=0.01)\n for r8hN in YKHO.reg_convs:\n h6h3(r8hN.conv, std=0.01)\n dc8C = FQWJ(0.01)\n h6h3(YKHO.retina_cls, std=0.01, bias=dc8C)\n h6h3(YKHO.retina_reg, std=0.01)", "def vB93(YKHO):\n for r8hN in YKHO.cls_convs:\n...
[ "0.7976904", "0.7765352", "0.7706577", "0.76230925", "0.7612297", "0.7437348", "0.7425489", "0.7368854", "0.7261255", "0.7261255", "0.70941347", "0.70114374", "0.6989831", "0.6984422", "0.6981498", "0.6978294", "0.6978294", "0.6978294", "0.6964283", "0.6958896", "0.6957243", ...
0.7415096
7
Calculate the true positive, true negative, false positive and false negative ratios. Only a binary mask is considered zero and nonzero
def M9qo(_ger, nvEb): a1PO = nvEb == (_ger != 0) eHNT = ~a1PO exwG = float(_ger.numel()) HRJ_ = ht2j.sum(nvEb[a1PO]) / exwG pWm4 = ht2j.sum(a1PO) / exwG - HRJ_ ytgA = ht2j.sum(nvEb[eHNT]) / exwG FYKK = ht2j.sum(eHNT) / exwG - ytgA return (HRJ_, pWm4, ytgA, FYKK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LF6C(wu1V, kOTd, or8S):\n wXuO = oyIN.sum(oyIN.logical_and(wu1V == 255, kOTd == 255))\n uBv5 = oyIN.sum(oyIN.logical_and(kOTd == 255, wu1V != kOTd))\n Rw7j = oyIN.sum(oyIN.logical_and(wu1V == 255, wu1V != kOTd))\n rhd_ = wXuO / (wXuO + uBv5)\n AOzf = wXuO / (wXuO + Rw7j)\n XZhL = 2 * (rhd_ * ...
[ "0.650884", "0.6118591", "0.6086604", "0.60788125", "0.57446456", "0.5701512", "0.56907797", "0.56736296", "0.56639135", "0.56230164", "0.56180304", "0.56076044", "0.5573995", "0.55338037", "0.5530362", "0.55251527", "0.54982984", "0.54792", "0.54779714", "0.54730976", "0.544...
0.0
-1
Get the recall for specific label or avalanche certainty only
def K5td(_ger, nvEb, UXqs): ZHfW = _ger == UXqs PQm6 = nvEb[ZHfW] exwG = float(PQm6.numel()) HRJ_ = ht2j.sum(PQm6 == 1) return HRJ_ / exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(o3Uj, yLaY):\n return RXOj(o3Uj, yLaY)[1]", "def _3a6(YKHO):\n return round(Uw2c(YKHO.actual, YKHO.predicted) * 100, 2)", "def AOzf(YKHO, MTKo='average'):\n if MTKo == 'classwise':\n return YKHO.class_recall_\n elif MTKo == 'average':\n return YKHO.avg_recall_", "def AOzf(J...
[ "0.70314246", "0.6760457", "0.6602591", "0.6599917", "0.65377766", "0.65101206", "0.649898", "0.64902014", "0.64599717", "0.64528483", "0.64167106", "0.6372914", "0.6331544", "0.6244571", "0.6200351", "0.6150671", "0.6123118", "0.6112943", "0.61094767", "0.60813296", "0.60790...
0.65624356
4
Takes a torch tensor of shape BxCxHxW and crops by border pixels in the spatial dimensions
def agWf(vhpA, MX3a=50): return vhpA[:, :, MX3a:-MX3a, MX3a:-MX3a]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WQxU(xkjI, WQxU):\n if WQxU == 0:\n return xkjI\n elif isinstance(xkjI, list):\n return [Ty9i[WQxU:-WQxU, WQxU:-WQxU, ...] for Ty9i in xkjI]\n else:\n return xkjI[WQxU:-WQxU, WQxU:-WQxU, ...]", "def fZkN(VXjJ, WKvO: torch.Tensor, LVAh: torch.Tensor, Z9rn: torch.Tensor) -> AzJI[h...
[ "0.64218587", "0.63688177", "0.6275371", "0.62342787", "0.61113167", "0.6034517", "0.5995558", "0.5994732", "0.59880173", "0.59177023", "0.5892089", "0.58792394", "0.5867771", "0.5842663", "0.5838215", "0.5823392", "0.5811195", "0.5779398", "0.5769167", "0.57649446", "0.57416...
0.6872003
0
read an arrow file from disk as cuxfilter.DataFrame
def PX3O(Emd4, NCSq): if isinstance(NCSq, str): jQ3Z = Y3tb.DataFrame.from_arrow(Q7OJ(NCSq)) else: jQ3Z = Y3tb.DataFrame.from_arrow(NCSq) return Emd4(jQ3Z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DMrX(YKHO):\n YKHO.df = YKHO.sqlContext.read.csv(YKHO.source, sep=YKHO.sep, header=True, inferSchema=True)", "def tyeH() -> hxoQ:\n return DMrX(xAKo, 'default.csv.gz')", "def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z", "def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return ...
[ "0.62870735", "0.6285025", "0.61814964", "0.61814964", "0.61814964", "0.60843694", "0.6063316", "0.60483366", "0.60481346", "0.6045804", "0.6042656", "0.6037168", "0.6018507", "0.59801924", "0.5947044", "0.59286124", "0.59248435", "0.5893717", "0.5871253", "0.5842906", "0.583...
0.0
-1
return the cell with minimum f_score from open cells
def peR5(YKHO): return sorted(YKHO.open_cells, key=lambda VmPb: VmPb.f)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AjsF(YKHO):\n return min(YKHO._extract_set('score') or [0])", "def AeOG(sD4a, DM2A):\n Q8ua = dict([jzdc for jzdc in DM2A.items() if jzdc[0] in sD4a])\n return min(Q8ua, key=Q8ua.get)", "def AeOG(sD4a, DM2A):\n Q8ua = dict([jzdc for jzdc in DM2A.items() if jzdc[0] in sD4a])\n return min(Q8ua...
[ "0.71012366", "0.701438", "0.701438", "0.68588877", "0.663567", "0.6630316", "0.6630316", "0.6589216", "0.6501682", "0.6465526", "0.64638966", "0.63998306", "0.63667846", "0.6299849", "0.62363106", "0.6224894", "0.6213931", "0.61984265", "0.61663485", "0.61574626", "0.6157077...
0.8075693
0
Compute the discounted reward for a batch of data. reward, value, and discount are all shape [horizon 1, batch, 1] (last element is cut off) Bootstrap is [batch, 1]
def qyL3(vOGg: th.Tensor, BWXx: th.Tensor, FMQW: th.Tensor, OHct: th.Tensor, w4rS: float): hyTp = idx7.cat([BWXx[1:], OHct[None]], 0) pan_ = vOGg + FMQW * hyTp * (1 - w4rS) L4bz = list(range(vOGg.shape[0] - 1, -1, -1)) o4Jx = [] X4i2 = OHct for a1PO in L4bz: pKvt = pan_[a1PO] tzv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KbRe(YKHO, FMQW):\n GPIy = len(YKHO)\n return (1 - FMQW) * oyIN.sum(FMQW ** oyIN.arange(GPIy) * YKHO.rewards)", "def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for a1PO in reversed(range(0, len(vwlo))):\n S8qo = S8qo * lA6Z + vwlo[a1PO]\n g2lU[a1PO] = S8qo\n retur...
[ "0.6907771", "0.65610665", "0.6544231", "0.64829147", "0.6421873", "0.6185052", "0.6184409", "0.6167062", "0.61610484", "0.61480516", "0.6147162", "0.6146092", "0.6121334", "0.6115139", "0.61095023", "0.60967433", "0.60859716", "0.60778403", "0.60237706", "0.601486", "0.59936...
0.6947871
0
String for representing the Model object.
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.82368803", "0.79901737", "0.7849152", "0.78468513", "0.77520275", "0.7625378", "0.7625378", "0.76225406", "0.76225406", "0.75483394", "0.7522958", "0.7470355", "0.7469358", "0.7447144", "0.7447144", "0.74314755", "0.7427648", "0.7389925", "0.7351721", "0.73424315", "0.7322...
0.0
-1
String for representing the Model object.
def zAg0(YKHO): return YKHO.nickname
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.82368803", "0.79901737", "0.7849152", "0.78468513", "0.77520275", "0.7625378", "0.7625378", "0.76225406", "0.76225406", "0.75483394", "0.7522958", "0.7470355", "0.7469358", "0.7447144", "0.7447144", "0.74314755", "0.7427648", "0.7389925", "0.7351721", "0.73424315", "0.7322...
0.0
-1
Convert given time into seconds
def E7kw(ITS7): r8hN, KCHu = (ITS7[-4:-2], ITS7[-2:]) if ITS7[-4:2] == '': r8hN = 0 if ITS7[-2:] == '': KCHu = 0 return int(r8hN) * 60 + int(KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bQkZ(ITS7):\n return 3600 * ITS7", "def hpAa(ITS7):\n O66n = ITS7.hour * 60 + ITS7.minute\n C6wh = O66n * 60 + ITS7.second\n return C6wh", "def Ba5_(ITS7):\n W_9F = ITS7.split(':')\n ROt1 = int(W_9F[0])\n yVtz = int(W_9F[1])\n CsFy = int(W_9F[2])\n return 3600 * ROt1 + 60 * yVtz ...
[ "0.8537402", "0.7818949", "0.7668338", "0.7579564", "0.75568086", "0.7500476", "0.74179965", "0.7350185", "0.73016363", "0.7252342", "0.7242871", "0.7165478", "0.71569246", "0.7092923", "0.70715237", "0.70549816", "0.69871014", "0.6968615", "0.69579184", "0.69352514", "0.6928...
0.7343156
8
Convert a given board into many onehot encoded vectors for each position on the board
def OoHm(iBIi): Q7o4 = str(iBIi).replace('\n', ' ') xK6j = oyIN.zeros(shape=(8, 8, 12)) WKvO = 0 LVAh = 0 for mrj1 in Q7o4: if mrj1 == ' ': continue xK6j[LVAh, WKvO, :] = JBM1(mrj1) if WKvO <= 7: WKvO += 1 if WKvO > 7: WKvO = 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel", "def GpPk(KCHu):\n all = []\n for Z9rn in KCHu:\n WKvO = oyIN.zeros(dVLm)\n d6pt = DTDK[Z9rn]\n WKvO[d6pt] = 1\n all.append(WKvO)\n ...
[ "0.7204259", "0.7146975", "0.7110916", "0.69924283", "0.698124", "0.6953453", "0.68940675", "0.67805755", "0.67777807", "0.6676537", "0.66121763", "0.65840894", "0.65519315", "0.6542645", "0.6541865", "0.6515476", "0.6513955", "0.65102726", "0.6502783", "0.64924246", "0.64738...
0.62903535
48
Read in pgn files as numpy arrays.
def Znj3(VqRE, IW8M=100000, BydE=300, type='Lichess Standard'): U5Xr = open(VqRE) Aehj = AqHU(U5Xr, maxGames=IW8M) eo07 = [] eQwP, xvmJ = ([], []) JxR5, TYzR = ([], []) NblY = [] dixj = [] cGCl = 0 lH9u = 0 BrSS = 0 Os4s = len(Aehj) print(len(Aehj), ' Games will now be re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xB50(Ux0P):\n p891 = oyIN.load(Ux0P)\n return p891", "def Nwr9(YKHO, gIsw):\n nPrm = oyIN.genfromtxt(gIsw)\n return nPrm", "def UlWi(cJUo):\n nPrm = oyIN.recfromtxt(cJUo)\n nPrm = oyIN.asarray(nPrm)\n return nPrm", "def V6x0(aUJW):\n cInq = len(aUJW.keys())\n return [aUJW['arr_...
[ "0.7176929", "0.66945636", "0.66931856", "0.6684813", "0.66607994", "0.662475", "0.66039217", "0.65459985", "0.6544069", "0.65379864", "0.65302354", "0.6483311", "0.64821357", "0.6479137", "0.64659876", "0.6461799", "0.6428993", "0.6424379", "0.6394051", "0.6352607", "0.63401...
0.0
-1
Returns the data dictionary for the torrent.
def nPrm(YKHO): if YKHO._data: return YKHO._data else: raise Bx6I.TorrentNotGeneratedException
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iIby(YKHO):\n return dict(YKHO._dump_data)", "def nPrm(YKHO) -> dict[str, ImMB]:\n raise NotImplementedError()", "def yLtf(YKHO) -> dict:\n nPrm = {'title': YKHO.get_title(), 'link': YKHO.get_link(), 'store': YKHO.get_store_name()}\n return nPrm", "def nPrm(YKHO) -> dict:\n raise NotImplem...
[ "0.71905684", "0.6911929", "0.6852552", "0.68070734", "0.67941827", "0.67941827", "0.6750308", "0.6729866", "0.6664181", "0.66370493", "0.66336566", "0.65980446", "0.6592327", "0.64179623", "0.64173204", "0.6380297", "0.63329786", "0.62949944", "0.62420464", "0.6236113", "0.6...
0.6939043
1
Initializes and tie weights if needed.
def vB93(YKHO): YKHO.apply(YKHO._init_weights) YKHO.tie_weights()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def vJuA(YKHO):\n raise NotImplementedError", "def i7WW(YKHO):\n uHk4(YKHO.norm0)", "def Y7Gu(YKHO, _mSQ):\n YKHO.init_w = _mSQ", "def lfj2(YKHO):\n gnPz.raiseNotDefined()\n return", "def FIMM(YKHO, _mSQ)...
[ "0.8227321", "0.8045011", "0.7986906", "0.76697594", "0.76092225", "0.7489868", "0.74560624", "0.7443789", "0.7420978", "0.73176545", "0.7313504", "0.73104966", "0.72690845", "0.7233648", "0.7220441", "0.7210592", "0.72080487", "0.71652585", "0.71536386", "0.7092526", "0.7088...
0.86048186
0
Return absolute path relative to this file.
def L_VP(YKHO, *qIxc): return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), *qIxc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLgJ(YKHO) -> str:\n return YKHO._path", "def Zg0d(YKHO):\n return Hy7s.path.abspath(YKHO.path)", "def BWoA(YKHO):\n if YKHO.relative == '':\n return YKHO.root\n return Hy7s.path.join(YKHO.root, YKHO.relative)", "def OyQC(YKHO):\n try:\n return YKHO._file.path\n except Att...
[ "0.82320285", "0.8011656", "0.8003671", "0.7928333", "0.7849155", "0.77982527", "0.77763045", "0.77440715", "0.7694889", "0.7652381", "0.76253605", "0.76253605", "0.76253605", "0.76253605", "0.76253605", "0.7616306", "0.7609166", "0.7593681", "0.75501186", "0.75297886", "0.74...
0.6899035
75
Build command line argument list for running ansibleplaybook, optionally using sshagent for public/private key authentication.
def f49E(YKHO, oCfW, c_tK, CyXm): GoZD = oCfW.machine_credential uuly, Qu6A, JxbM = ('', '', '') if GoZD: uuly = GoZD.get_input('username', default='') JxbM = GoZD.get_input('become_method', default='') Qu6A = GoZD.get_input('become_username', default='') else: JxbM = Non...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f49E(YKHO, TSPE, c_tK, CyXm):\n GoZD = TSPE.credential\n uuly, Qu6A, JxbM = ('', '', '')\n if GoZD:\n uuly = GoZD.get_input('username', default='')\n JxbM = GoZD.get_input('become_method', default='')\n Qu6A = GoZD.get_input('become_username', default='')\n else:\n JxbM ...
[ "0.7224383", "0.6457395", "0.6417497", "0.610729", "0.6095293", "0.6046027", "0.6007417", "0.6000504", "0.5994628", "0.5967205", "0.59651315", "0.5960397", "0.59461427", "0.5922495", "0.58986247", "0.58935344", "0.5889287", "0.58890074", "0.58791995", "0.586997", "0.58459544"...
0.67797923
1
Build command line argument list for running ansibleplaybook, optionally using sshagent for public/private key authentication.
def f49E(YKHO, lzPD, c_tK, CyXm): qIxc = [] if getattr(gCuF, 'PROJECT_UPDATE_VVV', False): qIxc.append('-vvv') if lzPD.job_tags: qIxc.extend(['-t', lzPD.job_tags]) return qIxc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f49E(YKHO, TSPE, c_tK, CyXm):\n GoZD = TSPE.credential\n uuly, Qu6A, JxbM = ('', '', '')\n if GoZD:\n uuly = GoZD.get_input('username', default='')\n JxbM = GoZD.get_input('become_method', default='')\n Qu6A = GoZD.get_input('become_username', default='')\n else:\n JxbM ...
[ "0.7223298", "0.67804986", "0.64566386", "0.6419229", "0.61107004", "0.60923404", "0.60045815", "0.60006285", "0.5993651", "0.5965917", "0.5964988", "0.5957174", "0.59459865", "0.5920196", "0.5894896", "0.5893464", "0.5888387", "0.588718", "0.5879304", "0.58677304", "0.584279...
0.6044322
6
Return private data needed for inventory update. Returns a dict of the form {
def q5dq(YKHO, z34O, c_tK): if z34O.source in FRp6.injectors: n6uJ = FRp6.injectors[z34O.source]() return n6uJ.build_private_data(z34O, c_tK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dict(YKHO):\n return {'data': YKHO.data.dict(), 'inventory': YKHO.inventory.dict()}", "def uE9K(YKHO):\n ZfUD = joJ7.return_as_dictionary(YKHO)\n ZfUD['Brand'] = YKHO.brand\n ZfUD['Voltage'] = YKHO.voltage\n return ZfUD", "def uE9K(YKHO):\n m4Nl = joJ7.return_as_dictionary(YKHO)\n m4Nl...
[ "0.7707523", "0.70861936", "0.70596814", "0.6866257", "0.6856666", "0.68244636", "0.6626564", "0.65547276", "0.6325076", "0.6291212", "0.6250423", "0.6249767", "0.62026376", "0.61874783", "0.6133226", "0.6117816", "0.6089917", "0.60667646", "0.6065576", "0.60608584", "0.60356...
0.65157926
8
Build command line argument list for running ansible, optionally using sshagent for public/private key authentication.
def f49E(YKHO, TSPE, c_tK, CyXm): GoZD = TSPE.credential uuly, Qu6A, JxbM = ('', '', '') if GoZD: uuly = GoZD.get_input('username', default='') JxbM = GoZD.get_input('become_method', default='') Qu6A = GoZD.get_input('become_username', default='') else: JxbM = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f49E(YKHO, oCfW, c_tK, CyXm):\n GoZD = oCfW.machine_credential\n uuly, Qu6A, JxbM = ('', '', '')\n if GoZD:\n uuly = GoZD.get_input('username', default='')\n JxbM = GoZD.get_input('become_method', default='')\n Qu6A = GoZD.get_input('become_username', default='')\n else:\n ...
[ "0.6774776", "0.6553633", "0.65022385", "0.6144694", "0.61194015", "0.60842276", "0.607607", "0.602129", "0.6010651", "0.5997569", "0.59881717", "0.59745854", "0.59689087", "0.5955851", "0.5933324", "0.59283304", "0.5902776", "0.58957416", "0.5887024", "0.58835477", "0.587284...
0.7301881
0
Change dict to dataframe
def Q1P1(nPrm): return rLdf.DataFrame.from_dict(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v8Pp(YKHO, dict):\n return rLdf.concat(dict.values(), axis=1)", "def o87x(YKHO, Mjw9):\n return rLdf.DataFrame.from_dict(Mjw9, orient='index')", "def AXtL(YuiX):\n jQ3Z = rLdf.DataFrame.from_dict(YuiX, orient='index')\n return jQ3Z", "def Hr9l(nPrm: dict) -> rLdf.DataFrame:\n nPrm = nPrm['...
[ "0.7878239", "0.7803382", "0.77804554", "0.7761469", "0.7597851", "0.75740963", "0.75558746", "0.7321931", "0.7303326", "0.72096354", "0.7103137", "0.6910475", "0.68261313", "0.6781579", "0.6765897", "0.6759807", "0.67590094", "0.6758431", "0.6729074", "0.67287093", "0.668857...
0.815136
0
Parse the requirements file and generate a requirements list.
def emMa(): AzeS = VnMZ(gzes(tf7k, 'requirements', 'base.txt'), session=False) return [str(_ABP.req) for _ABP in AzeS]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khiT():\n tk5Y = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n fA3L = []\n SMAd = []\n with open(Hy7s.path.join(tk5Y, 'requirements.txt'), 'r') as eHNT:\n for zFiD in eHNT.readlines():\n zFiD = zFiD.rstrip()\n if not zFiD or zFiD.startswith('#'):\n continu...
[ "0.7541879", "0.7441446", "0.7433949", "0.7422065", "0.736894", "0.73661757", "0.73356616", "0.7276237", "0.7165952", "0.7158944", "0.71030784", "0.7063986", "0.70134634", "0.7011347", "0.6969856", "0.6946507", "0.6944478", "0.69370407", "0.6887447", "0.6861928", "0.6857336",...
0.60182375
66
Letter from number position on alphabet.
def a6LO(mLGw: int): if abs(mLGw) > 26 or mLGw == 0: yltv = ord('a') + 26 - 1 else: yltv = ord('a') + abs(mLGw) - 1 return chr(yltv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KCQ5(FGW3):\n return chr(FGW3 + 96)", "def KCQ5(FGW3):\n return chr(FGW3 + 96)", "def oN24(sZqf):\n BWXx = ord(sZqf.lower()) - ord('a') + 10\n return BWXx + BWXx // 11", "def tdR8(sZqf):\n return ord(sZqf.lower()) - PeHq", "def tdR8(sZqf):\n return ord(sZqf.lower()) - PeHq", "def LG...
[ "0.8121449", "0.8121449", "0.8002449", "0.795019", "0.795019", "0.79070413", "0.79070413", "0.7844844", "0.7706609", "0.7661966", "0.764664", "0.74979883", "0.7428942", "0.7414222", "0.737544", "0.72239643", "0.7197244", "0.7153131", "0.71479833", "0.713399", "0.70821875", ...
0.8129342
0
Determines the existence of a triangle and its type.
def GSLm(jzdc: int, Fg_i: int, Z9rn: int): if jzdc + Fg_i > Z9rn and jzdc + Z9rn > Fg_i and (Fg_i + Z9rn > jzdc): print('Триугольник существует') if jzdc == Fg_i == Z9rn: print('Триугольник равносторонний') elif jzdc == Fg_i or jzdc == Z9rn or Fg_i == Z9rn: print('Три...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def moLX(WKvO, LVAh, epBp):\n if WKvO > 0 and LVAh > 0 and (epBp > 0):\n if WKvO == LVAh and WKvO == epBp and (LVAh == epBp):\n return 'equilateral'\n elif WKvO == LVAh and WKvO != epBp and (LVAh != epBp):\n return 'isoscels'\n elif WKvO != LVAh and WKvO != epBp and (L...
[ "0.6924511", "0.67670095", "0.6645036", "0.663136", "0.65511346", "0.64432466", "0.6426845", "0.6417205", "0.63622016", "0.63501287", "0.6325353", "0.63036644", "0.63032264", "0.62927425", "0.62727374", "0.6267121", "0.62669677", "0.62657875", "0.6265345", "0.6259769", "0.618...
0.5612531
48
Returns the filename of an example FASTA file with DOS line endings
def ySSz(): return QKLE('barcodes-ed65-450.fasta')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LWVQ(y0cW, ZI14, tsWk, XZVu):\n pvEO = 'seq-{}'.format(tsWk)\n if XZVu:\n SMNp = 'uncased'\n else:\n SMNp = 'cased'\n gIsw = '{}.{}.{}.{}'.format(y0cW, pvEO, SMNp, ZI14)\n return gIsw", "def rIoa(Ux0P, oaF_=False, RksB=0):\n zu3G = open(Ux0P, 'r')\n J7Cn = open(Ux0P + '_out...
[ "0.58929396", "0.58524936", "0.5828511", "0.5777155", "0.57519245", "0.5663198", "0.56470215", "0.5640949", "0.5606232", "0.55877906", "0.557865", "0.5571862", "0.5570751", "0.5542712", "0.54881424", "0.54868406", "0.5462561", "0.5455307", "0.5454465", "0.5447287", "0.5400683...
0.67360175
0
Whether we can ingest images from this provider.
def etR_(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMjU(YKHO):\n return len(YKHO.images) > 0", "def PyG8(YKHO):\n return len(YKHO.getImages()) > 0", "def PyG8(YKHO):\n return len(YKHO.getImages()) > 0", "def rSqr(YKHO):\n return YKHO._create_image_allowed", "def WKzz(YKHO):\n return hasattr(YKHO, '_image') and YKHO._image is not None", ...
[ "0.7355688", "0.7155173", "0.7155173", "0.7025366", "0.69973564", "0.6919165", "0.685426", "0.68231755", "0.67908454", "0.6682904", "0.659401", "0.65397656", "0.65102494", "0.6497241", "0.6497241", "0.6488279", "0.6484416", "0.6484416", "0.64373523", "0.64204943", "0.64031196...
0.0
-1
Returns lowerLimit of first element
def fSEB(YKHO): if len(YKHO.elements) > 0: return YKHO.elements[0].lowerLimit else: raise KeyError('No elements in Computation object')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aScC(YKHO):\n return YKHO.get_first()", "def min(YKHO):\n return YKHO.get_first()", "def min():\n return r0hN(int.__gt__)", "def XcNI(YKHO):\n return YKHO.min", "def XcNI(YKHO):\n return YKHO.min", "def vELP(YKHO):\n return min(YKHO.numbers)", "def min(YKHO):\n return min(YKHO)...
[ "0.7316412", "0.7178489", "0.68751484", "0.6844093", "0.6844093", "0.68231964", "0.6786693", "0.67832243", "0.6758008", "0.6709427", "0.6709427", "0.66715294", "0.6655896", "0.66491675", "0.66305906", "0.66046894", "0.66041017", "0.65965027", "0.65590477", "0.65477914", "0.64...
0.7797041
0
test 2 street numbers if the second street number in the first suit of numbers.
def yra5(list, bTKY): l5Ny = list.replace('-', '') if '-' not in bTKY and bTKY.isdigit() is True and (l5Ny.isdigit() is True): Kt9y = list.split('-') WKvO = int(Kt9y[0]) iCfd = set() iCfd.add(WKvO) while WKvO < int(Kt9y[len(Kt9y) - 1]): WKvO += 1 i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d0XH(DcQK, KrJP, j5sA):\n if iCeB('geocoding', [DcQK, KrJP, j5sA], return_response_fields=None):\n if 'intersection' in iCeB('geocoding', [DcQK, KrJP, j5sA], return_response_fields=None)[0]['type']:\n return True\n return False", "def L4JC(mLGw):\n hlel = True\n if not y_ql(mLGw...
[ "0.61335754", "0.5994295", "0.57982147", "0.5796614", "0.5776554", "0.577239", "0.5743518", "0.56935084", "0.56190383", "0.5556794", "0.5533563", "0.55294347", "0.5497245", "0.54913056", "0.54717803", "0.54515034", "0.5447432", "0.5444272", "0.54145133", "0.53839993", "0.5367...
0.5301174
26
Adds experiences to each agent's experience history.
def XmF9(YKHO, njvI: AllBrainInfo, nLru: AllBrainInfo, zzOC: ActionInfoOutputs) -> None: YKHO.trainer_metrics.start_experience_collection_timer() if zzOC: YKHO.stats['Policy/Entropy'].append(zzOC['entropy'].mean()) YKHO.stats['Policy/Learning Rate'].append(zzOC['learning_rate']) for mWFP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XmF9(YKHO, njvI: AllBrainInfo, nLru: AllBrainInfo, zzOC: ActionInfoOutputs) -> None:\n raise Ytnd('The process_experiences method was not implemented.')", "def ilp5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = (QTBn, XeOP, vOGg, rxHc, _ins)\n for YRbF, G1Hx in enumerate(YKHO.data_keys):\n ge...
[ "0.6780885", "0.6708535", "0.63891804", "0.6367637", "0.6343329", "0.6295685", "0.6218456", "0.61876434", "0.61502427", "0.6147631", "0.6035422", "0.60262704", "0.59708136", "0.59177655", "0.5908662", "0.5831165", "0.5742608", "0.57266676", "0.56935716", "0.56664", "0.5655005...
0.5889737
15
Computes discounted sum of future rewards for use in updating value estimate.
def AC1_(Mkmy, KMvS=0.99, gR5j=0.0): g2lU = oyIN.zeros_like(Mkmy) S8qo = gR5j for a1PO in reversed(range(0, Mkmy.size)): S8qo = S8qo * KMvS + Mkmy[a1PO] g2lU[a1PO] = S8qo return g2lU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hse8(YKHO, vwlo, mVUw=None):\n mVUw = YKHO.gamma if mVUw is None else mVUw\n vwlo = oyIN.array(vwlo)\n WLJS = list(pD6w(vwlo[::-1], lambda U5bT, jFFD: mVUw * U5bT + jFFD))\n WLJS = oyIN.array(WLJS)[::-1]\n return WLJS", "def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for ...
[ "0.7462175", "0.73983705", "0.71932304", "0.7150695", "0.70557845", "0.6931184", "0.68214566", "0.6785478", "0.6768839", "0.6743024", "0.6694214", "0.668374", "0.6677737", "0.666717", "0.6662684", "0.6659934", "0.66545933", "0.6653859", "0.6636681", "0.6625439", "0.6592249", ...
0.6381669
26
forward pass including input transformation and splitting, model prediction and loss calculation
def Yorg(YKHO, mvm2): g4y1, x6A0 = YKHO._transform(mvm2) o4Jx = YKHO.model(g4y1) WoWX = Xf84.ones(1).float().cuda() if YKHO.cuda else Xf84.ones(1).float() N77f = YKHO.criterion(YKHO._cast(o4Jx, other=WoWX), x6A0) return (o4Jx, N77f)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ILQa(YKHO, *qIxc, **B2fa):\n pass", "def KVH6(YKHO, WKvO):\n WKvO = YKHO.pool1(vuvg.relu(YKHO.batch1(YKHO.conv1(WKvO))))\n WKvO = YKHO.pool2(vuvg.relu(YKHO.batch2(YKHO.conv2(WKvO))))\n WKvO = vuvg.relu(YKHO.batch3a(YKHO.conv3a(WKvO)))\n WKvO = YKHO.pool3(vuvg.relu(YKHO.batch3b(YKHO.conv3b(WKvO...
[ "0.7382235", "0.7301255", "0.7278421", "0.7190183", "0.7178049", "0.71772987", "0.7130936", "0.7115816", "0.71021324", "0.7047377", "0.7022828", "0.6990766", "0.698745", "0.6975952", "0.6967287", "0.69659674", "0.69559413", "0.69291586", "0.69184726", "0.6912634", "0.6905289"...
0.0
-1
backward pass including resetting gradients, gradient calculation and optimizer step
def fIbT(YKHO, N77f): YKHO.optimizer.zero_grad() YKHO.optimizer.backward(N77f) YKHO.optimizer.step()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SU2j(YKHO, N77f):\n YKHO.opt.zero_grad()\n N77f.backward()\n YKHO.opt.step()", "def NQAC(YKHO, WL52):\n WL52.optimizer.zero_grad()\n WL52.loss.backward()\n WL52.optimizer.step()", "def WIl5(YKHO, N77f):\n N77f.backward()\n YKHO.optimizer.step()\n YKHO.optimizer.zero_grad()", "d...
[ "0.79875684", "0.7893537", "0.7643079", "0.76038754", "0.7600277", "0.7584493", "0.7584493", "0.7568484", "0.7383987", "0.73573744", "0.73573744", "0.73371553", "0.7309111", "0.7307651", "0.7282246", "0.72703415", "0.7244259", "0.7227183", "0.7168998", "0.7139221", "0.7132038...
0.77561975
2