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
Load from JSON compatible format.
def hm0K(Emd4, BWXx: Dict[str, Any]) -> 'BaseDiscriminator': return Emd4.from_config(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H(YKHO):\n YKHO.load_json_str(YKHO.get_json_str())", "def tyeH(YKHO):\n with xDSY.open(YKHO.filename, encoding='utf-8') as eHNT:\n YKHO.load_from_dict(qQXR.loads(eHNT.read()))", "def Ddor(YKHO, Z9Vm: str):\n pass", "def ffSL(YKHO, eJTR, JZXy, **B2fa):\n if JZXy is None:\n rai...
[ "0.8049846", "0.77013475", "0.74174666", "0.7406429", "0.71775204", "0.71255094", "0.71053725", "0.71049905", "0.7072629", "0.7061254", "0.7052197", "0.7041943", "0.7013994", "0.6999872", "0.6999652", "0.69852495", "0.6983238", "0.69818085", "0.6940367", "0.69184947", "0.6871...
0.0
-1
Gets the time's string representation.
def zAg0(YKHO): return str(YKHO.date) + ' ' + str(YKHO.time_of_day)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7L9() -> str:\n return F803('%H:%M:%S')", "def Px7F(YKHO):\n try:\n if not YKHO._time:\n raise ValueError\n GUy1 = '%a, %d %b %Y %H:%M:%S'\n return qcWV.fromtimestamp(float(YKHO._time)).strftime(GUy1)\n except ValueError:\n return K3Yb()", "def m7L9() -> str...
[ "0.8195837", "0.79449576", "0.7916762", "0.7908522", "0.7828017", "0.7764987", "0.77443826", "0.7721839", "0.77108437", "0.7672309", "0.7598441", "0.7576887", "0.75741833", "0.7518744", "0.74774283", "0.7431244", "0.73107463", "0.7296751", "0.72737324", "0.7268088", "0.718042...
0.6514299
92
Finds out if two 'DateTime' instances are equal.
def xa14(YKHO, FtLW): return YKHO.date == FtLW.date and YKHO.time_of_day == FtLW.time_of_day
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, a1PO):\n if not isinstance(a1PO, cJ1g):\n return False\n return (YKHO._micros, YKHO._tz) == (a1PO._micros, a1PO._tz)", "def xii9(MJm0, bdHc):\n if isinstance(MJm0 and bdHc, (qcWV, type(None))):\n return (MJm0 == bdHc if all((str(bGrB.time()) != '00:00:00' for bGrB in [MJm0, ...
[ "0.7574963", "0.7486285", "0.73469615", "0.71358323", "0.7102583", "0.7069769", "0.6915766", "0.6913998", "0.6893281", "0.68712014", "0.67430377", "0.6737902", "0.66964835", "0.6637913", "0.65955794", "0.6516567", "0.6467195", "0.6431144", "0.64010376", "0.6383123", "0.633340...
0.68383235
10
Finds out if two 'DateTime' instances are not equal.
def Vdqg(YKHO, FtLW): return YKHO.date != FtLW.date or YKHO.time_of_day != FtLW.time_of_day
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AAQw(oF7G, tOwQ, TNru=fCoM(minutes=1)):\n return abs(oF7G - tOwQ) < TNru", "def xii9(MJm0, bdHc):\n if isinstance(MJm0 and bdHc, (qcWV, type(None))):\n return (MJm0 == bdHc if all((str(bGrB.time()) != '00:00:00' for bGrB in [MJm0, bdHc])) else MJm0.date() == bdHc.date()) if MJm0 and bdHc else MJ...
[ "0.7060995", "0.7005772", "0.69751614", "0.67829657", "0.67326754", "0.67311144", "0.66667795", "0.66145265", "0.6613488", "0.6596073", "0.6548462", "0.64864844", "0.6370382", "0.6360114", "0.6351058", "0.625587", "0.61844254", "0.61789215", "0.6171636", "0.6166754", "0.61339...
0.70775914
0
Finds out if this 'DateTime' instance is greater than or equal to the given 'DateTime' instance.
def Zcf_(YKHO, FtLW): return not YKHO < FtLW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, Elif):\n if YKHO.date > Elif.date:\n return True\n else:\n return False", "def jmxi(YKHO, Elif):\n return YKHO.to_seconds() > Elif.to_seconds()", "def jmxi(YKHO, Elif):\n return YKHO.to_seconds() > Elif.to_seconds()", "def _YhM(YKHO, JRYC: datetime) -> bool:\n retu...
[ "0.72755605", "0.716751", "0.716751", "0.6825432", "0.66495645", "0.6626132", "0.65438795", "0.6435386", "0.6390202", "0.63804585", "0.63540584", "0.63472325", "0.6277743", "0.6254085", "0.62447333", "0.6224724", "0.62006646", "0.6164806", "0.6164806", "0.6158685", "0.6129429...
0.0
-1
Gets this timestamp's date.
def _c1T(YKHO): return YKHO.date_value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slWZ(YKHO):\n return YKHO.date", "def slWZ(YKHO):\n return YKHO.date", "def slWZ(YKHO):\n return YKHO.date", "def slWZ(YKHO):\n return YKHO.date", "def dcJF(YKHO) -> qcWV:\n return YKHO.__date", "def _c1T(YKHO):\n return YKHO._date", "def _c1T(YKHO):\n return YKHO._date", "de...
[ "0.7927242", "0.7927242", "0.7927242", "0.7927242", "0.76219946", "0.7481876", "0.7481876", "0.7481876", "0.7479247", "0.7413321", "0.735938", "0.7345253", "0.73387563", "0.7326376", "0.7319995", "0.72933936", "0.7208753", "0.71970916", "0.7171507", "0.7161353", "0.70131135",...
0.7022817
20
Gets this timestamp's time of day.
def uNbF(YKHO): return YKHO.time_of_day_value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _SLd(YKHO):\n return YKHO.raw() // (60 * 24)", "def L8lD(YKHO, i8WE):\n MKlR, r8hN, KCHu = (i8WE.hour, i8WE.minute, i8WE.second)\n a1PO = int(MKlR) * 3600 + int(r8hN) * 60 + int(KCHu)\n if a1PO >= 0:\n return a1PO\n else:\n return a1PO + 24 * 3600", "def CCCh(YKHO):\n return...
[ "0.7439932", "0.74265647", "0.69092965", "0.6888736", "0.68819934", "0.6868406", "0.68665147", "0.68561435", "0.68515694", "0.684759", "0.684759", "0.684759", "0.6750747", "0.6740334", "0.67259836", "0.67207116", "0.671258", "0.671258", "0.671258", "0.67064935", "0.67064935",...
0.8198794
0
Gets the terminal columns size.
def Elv1(YKHO): try: bGrB, ZLJ_ = Hy7s.popen('stty size', 'r').read().split() return min(int(ZLJ_) - 10, 100) except ValueError: return YKHO.default_terminal_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZLJ_(YKHO):\n return DRL6()[1]", "def nTfx():\n return RDuA.get_terminal_size().columns", "def UE4s():\n return RDuA.get_terminal_size().columns", "def ZLJ_(YKHO):\n return int(_abU('tput cols'))", "def jXAr(YKHO):\n try:\n with open('/dev/tty') as cXoZ:\n HCmI = ['stty...
[ "0.8785557", "0.84571654", "0.83374625", "0.777216", "0.7632491", "0.7619383", "0.7613431", "0.7613431", "0.7584913", "0.7541525", "0.75300723", "0.74066603", "0.73375237", "0.7320377", "0.7304348", "0.72760767", "0.72512454", "0.7232911", "0.7211451", "0.71938956", "0.719232...
0.7834119
3
Dodaj rec u trie.
def H2v5(YKHO, GIN8, B2Dn, wEf2): UXiT = YKHO.root for sZqf in GIN8: if sZqf not in UXiT.children: UXiT.children[sZqf] = ep_x() UXiT = UXiT.children[sZqf] if UXiT is not YKHO.root: UXiT.pages.add(B2Dn, wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rPF0():\n from trie import Trie\n trie = Trie()\n trie.insert('alpha')\n trie.insert('alpaca')\n trie.insert('boy')\n return trie", "def FIMM(YKHO):\n YKHO.d = {}\n YKHO.root = ep_x()", "def FIMM(YKHO):\n YKHO.root = ep_x()\n YKHO.char_map = {}", "def FIMM(YKHO):\n YKHO.t...
[ "0.67697203", "0.6569115", "0.6549657", "0.64013875", "0.63839906", "0.63817024", "0.63809896", "0.6332669", "0.63097703", "0.6286225", "0.6282874", "0.62820023", "0.6279016", "0.6273746", "0.6273746", "0.6273746", "0.6273746", "0.6271161", "0.6261837", "0.62104523", "0.62012...
0.54784966
80
Extracts IPO data to a pandas Dataframe and saves it to specified path as a csv file
def I2na(n80H: str): Cm1A = 'https://www.affarsvarlden.se/ipo-guiden/screener' E_qD = PZiI.get_chrome_driver_for_url(url=Cm1A) import time time.sleep(2) PZiI.remove_ad(chrome_driver=E_qD) E_qD.execute_script(f'window.scrollTo(0, {1080})') PZiI.toggle_all_keys_to_true(chrome_driver=E_qD, is_d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zHPr(YKHO, pmON):\n for tyNF in ['datasets', 'dataruns', 'hyperpartitions', 'classifiers']:\n jQ3Z = rLdf.read_sql('SELECT * FROM %s' % tyNF, YKHO.session.bind)\n jQ3Z.to_csv(Hy7s.path.join(pmON, '%s.csv' % tyNF), index=False)", "def Edt8(jQ3Z, Jmpp):\n jQ3Z.to_csv(Jmpp, index=False)", ...
[ "0.6840877", "0.67457867", "0.646313", "0.637817", "0.6377898", "0.63628334", "0.6341153", "0.62978643", "0.62882537", "0.62629896", "0.6224393", "0.62167746", "0.6200531", "0.61713105", "0.6161895", "0.6100351", "0.6091226", "0.608358", "0.6077793", "0.6070303", "0.60672134"...
0.6539481
2
Return if the device is on.
def Debg(YKHO) -> bool: raise NotImplementedError('Device subclass needs to implement this.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO):\n return YKHO._device.is_on", "def Debg(YKHO):\n return YKHO._device.is_on", "def Debg(YKHO):\n return YKHO._device.is_on", "def Debg(YKHO) -> bool:\n return YKHO._device.is_on", "def Debg(YKHO):\n return YKHO._device.state", "def Debg(YKHO) -> bool:\n return YKHO.entity...
[ "0.90544605", "0.90544605", "0.90544605", "0.89779156", "0.8846996", "0.81471056", "0.81471056", "0.81411195", "0.8101262", "0.80237883", "0.7998118", "0.7977133", "0.7955842", "0.78938735", "0.7890516", "0.7878891", "0.78744787", "0.78288925", "0.7805855", "0.7805855", "0.78...
0.8219473
5
Creates json file and writes given dict to it
def n_wH(YKHO, gIsw): with open('saves/' + gIsw + '.json', 'w') as ytgA: qQXR.dump(YKHO.options, ytgA, indent=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uP8n(X4Oj, pmON, gIsw):\n with open(pmON + '/' + gIsw + '.json', 'w') as ytgA:\n qQXR.dump(X4Oj, ytgA)\n return None", "def M8gv(dict, nUeQ):\n with open(nUeQ, 'w') as eHNT:\n qQXR.dump(dict, eHNT, indent=2)\n return nUeQ", "def VUF1(eUNp, Ux0P):\n dk9M = qQXR.dumps(eUNp)\n ...
[ "0.8052829", "0.792586", "0.78987247", "0.78939533", "0.78021395", "0.77958584", "0.7777442", "0.772789", "0.7705852", "0.76111275", "0.7522913", "0.7510726", "0.75095475", "0.7500985", "0.749655", "0.74922687", "0.7479037", "0.7462201", "0.7421586", "0.73762804", "0.7351369"...
0.7059823
67
Get the name of the account set in the process' environment.
def TJxw(Emd4): return Hy7s.getenv('OIO_ACCOUNT', 'myaccount')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')", "def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')", "def n8Ek(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'account_name')", "def n8Ek(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'account_name')", "def n8E...
[ "0.7500614", "0.7500614", "0.6961114", "0.6961114", "0.6961114", "0.6924666", "0.6914403", "0.6914403", "0.68147266", "0.6794162", "0.6794162", "0.6737554", "0.6737554", "0.673424", "0.6720754", "0.67134804", "0.66795635", "0.663156", "0.6616375", "0.65609187", "0.65512997", ...
0.72896904
2
Assert that files are installed in GAC_MSIL.
def DtJq(ZSM7, IhMB): for c1ci in ZSM7: assert gYeK('%s.dll' % c1ci, nPWg + c1ci), '%s file not found in directory %s' % (c1ci, nPWg) for c1ci in IhMB: assert gYeK('%s.dll' % c1ci, b7TD + c1ci), '%s file not found in directory %s' % (c1ci, b7TD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XBgy():\n import sys\n assert 'mmelemental' in sys.modules", "def u1VI():\n for eHNT in _Fei.required_files:\n assert Hy7s.path.isfile(eHNT)", "def jzDD(YKHO):\n j7N_ = YKHO.host.check_output('readlink -f $(which matlab)')\n kK0L = GkAb(j7N_).parents[1]\n QTG0 = kK0L / 'licenses' /...
[ "0.5879728", "0.5766973", "0.5738156", "0.5738147", "0.569487", "0.56844616", "0.5623787", "0.5610653", "0.5580728", "0.5538616", "0.5493665", "0.54421926", "0.53928185", "0.53919005", "0.53829306", "0.5343697", "0.53233", "0.53141606", "0.5281856", "0.5258395", "0.5239167", ...
0.66300887
0
Use the 'bin count' function in numpy to calculate the unique values in every column of a dataframe clocked at about 34x faster than pandas_value_counts (df.apply(pd.value_counts))
def aLaE(ezWE, _mSQ=None): if isinstance(ezWE, rLdf.DataFrame): ezWE = ezWE.values elif not isinstance(ezWE, oyIN.ndarray): raise Exception('The provided parameter for arr is not a dataframe or numpy array') if len(ezWE.shape) == 1: ezWE = ezWE.reshape(-1, 1) Pyrc = [oyIN.bincoun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PHmb(jQ3Z, _mSQ=None):\n wEf2 = jQ3Z.values\n R2Dr = oyIN.unique(wEf2.reshape(-1))\n if _mSQ:\n pass\n Mkmy = {P6bq: oyIN.einsum('i, ij->j', _mSQ, wEf2 == P6bq) if _mSQ is not None else oyIN.einsum('ij->j', (wEf2 == P6bq).astype(int)) for P6bq in R2Dr}\n return rLdf.DataFrame(Mkmy).transp...
[ "0.66994005", "0.6697422", "0.6677125", "0.6585333", "0.6514379", "0.64696807", "0.6364872", "0.62600523", "0.6246666", "0.6239951", "0.6160835", "0.61516106", "0.61402774", "0.60592717", "0.60538626", "0.6040024", "0.6024756", "0.59998935", "0.59828293", "0.5966383", "0.5845...
0.6685012
2
find a notebook, given its fully qualified name and an optional path This turns "foo.bar" into "foo/bar.ipynb" and tries turning "Foo_Bar" into "Foo Bar" if Foo_Bar does not exist.
def iFGS(jeLr, pmON=None): mWFP = jeLr.rsplit('.', 1)[-1] if not pmON: pmON = [''] for Csk6 in pmON: eB1j = Hy7s.path.join(Csk6, mWFP + '.ipynb') if Hy7s.path.isfile(eB1j): return eB1j eB1j = eB1j.replace('_', ' ') if Hy7s.path.isfile(eB1j): re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AdQ1(YKHO, eB1j):\n if eB1j is None and YKHO._notebook is not None:\n eB1j = YKHO._notebook\n elif eB1j is None and SC2F('*.ipynb'):\n BkeR = SC2F('*.ipynb')\n assert len(BkeR) == 1, 'nb_path not specified and > 1 notebook in working directory'\n eB1j = BkeR[0]\n elif eB1j ...
[ "0.7191861", "0.6188864", "0.6052213", "0.58972746", "0.5611016", "0.55624646", "0.54965943", "0.54194707", "0.54043365", "0.5306842", "0.52780384", "0.5267952", "0.5224945", "0.51331246", "0.51177615", "0.50909376", "0.50849307", "0.50610876", "0.504978", "0.50256366", "0.50...
0.815862
0
Function returning preferred keyboard layouts for the given locale.
def ZqNS(NCqB): SQ3m = WM4K(NCqB) if 'language' not in SQ3m: raise EqX0("'%s' is not a valid locale" % NCqB) return YBxY.list_keyboards(languageId=SQ3m['language'], territoryId=SQ3m.get('territory', ''), scriptId=SQ3m.get('script', ''))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mPgR(OeFY: str):\n Nqlg = HLbS(OeFY)\n Nqlg = R700(Nqlg)\n yVTZ = gOIo(Nqlg)\n return soSq(yVTZ)", "def XTBy(YKHO):\n return YKHO._layout_infos.iterkeys()", "def pVPb(YKHO, mWFP: str, NCqB: str) -> list:\n fRFN = jth9.deepcopy(YKHO.__locales[NCqB]['keyboards']['arrangements'][mWFP])\n ...
[ "0.60228944", "0.5637982", "0.55843544", "0.5231292", "0.5200092", "0.51659167", "0.4992071", "0.4957695", "0.4894653", "0.48928568", "0.48863006", "0.47528282", "0.47521296", "0.4738308", "0.46856064", "0.46499667", "0.46469063", "0.46232203", "0.46160245", "0.4595352", "0.4...
0.6866152
0
Function returning preferred timezones for the given locale.
def uSte(NCqB): SQ3m = WM4K(NCqB) if 'language' not in SQ3m: raise EqX0("'%s' is not a valid locale" % NCqB) return YBxY.list_timezones(languageId=SQ3m['language'], territoryId=SQ3m.get('territory', ''), scriptId=SQ3m.get('script', ''))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Of8o():\n return FXGE.country_timezones('US')", "def MgRq():\n return sorted(list(b0Uy._zmap.values()))", "def dO43() -> set[str]:\n return aDyQ() - FWqm", "def WbDV(YKHO) -> PPt7.LocaleDataDict:\n return YKHO._data['time_zones']", "def WmLy(YKHO):\n return gCuF.TIME_ZONES_BY_LANG.get(YK...
[ "0.72454035", "0.6603862", "0.65251845", "0.6270924", "0.5843416", "0.58044297", "0.57158774", "0.5713681", "0.5672513", "0.5667701", "0.5554293", "0.55500525", "0.5534162", "0.5358738", "0.5318892", "0.53160745", "0.5300022", "0.52912754", "0.52506125", "0.5232472", "0.52239...
0.72785544
0
Function returning preferred scripts (writing systems) for the given locale.
def SGVI(NCqB): SQ3m = WM4K(NCqB) if 'language' not in SQ3m: raise EqX0("'%s' is not a valid locale" % NCqB) return YBxY.list_scripts(languageId=SQ3m['language'], territoryId=SQ3m.get('territory', ''), scriptId=SQ3m.get('script', ''))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MXeI(B6sC):\n iYeV = {'arab': ('ara', 'per'), 'cyrl': ('bel', 'chu', 'mac', 'rus', 'srp', 'ukr'), 'grek': ('grc', 'gre'), 'hani': ('chi', 'jpn'), 'hebr': ('heb', 'lad', 'yid'), 'jpan': ('jpn',), 'kore': ('kor',), 'zyyy': ('chi',)}\n if B6sC in iYeV:\n IbeW = [b9Et.lang_from_008] + b9Et.langs_from_...
[ "0.6649128", "0.5827049", "0.57364774", "0.5626669", "0.55779046", "0.53860724", "0.5307141", "0.53032994", "0.5285117", "0.5285105", "0.5262619", "0.52498895", "0.5218934", "0.5216045", "0.52101284", "0.52076274", "0.5197666", "0.5140851", "0.5096763", "0.5073295", "0.506578...
0.67950034
0
Shifts in direction provided by ``Direction`` enum.
def DkWr(YKHO, XSoh): try: if XSoh == LgK1.UP: return YKHO.shift_up() elif XSoh == LgK1.DOWN: return YKHO.shift_down() elif XSoh == LgK1.RIGHT: return YKHO.shift_right() elif XSoh == LgK1.LEFT: return YKHO.shift_left() else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DkWr(YKHO, XSoh):\n Cuyv, oeNL = tuple(XSoh)\n iBIi = {'L': YKHO.rows, 'R': YKHO.rows, 'D': YKHO.cols, 'U': YKHO.cols}[Cuyv]\n iBIi[int(oeNL)].shift(direction=YKHO.direct[Cuyv])", "def BZN_(YKHO, XSoh):\n pass", "def VRsT(YKHO, XSoh, exwG):\n assert LgK1.isDir(XSoh), 'incorrect type of arg d...
[ "0.774642", "0.692398", "0.6842757", "0.6679597", "0.66020656", "0.65728146", "0.6467691", "0.64622736", "0.64192796", "0.63760555", "0.63722444", "0.63722444", "0.6337595", "0.6268015", "0.62238383", "0.62154263", "0.61994225", "0.6179677", "0.6145385", "0.6136167", "0.61124...
0.7574775
1
Returns torch.utils.data.DataLoader for custom dataset.
def RuZU(nPrm, qQXR, Ep8u, hXNa, I7Gy): __n6 = uUr5(nPrm, qQXR) zQKy = ht2j.utils.data.DataLoader(dataset=__n6, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy, collate_fn=QxcP) return zQKy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v30Z(YKHO) -> pVAc:\n hxDW = pVAc(YKHO.dataset, batch_size=1)\n return hxDW", "def K1Op(YKHO) -> pVAc:\n return YKHO._custom_data_loader()", "def K1Op(YKHO) -> ht2j.utils.data.DataLoader:\n return ht2j.utils.data.DataLoader(YKHO.dataset_train, **YKHO.dl_kwargs)", "def Vf1V(YKHO, __n6):\n r...
[ "0.8505352", "0.8326725", "0.8071331", "0.7819584", "0.77159154", "0.76418966", "0.76353604", "0.7556762", "0.75347596", "0.7510609", "0.74715674", "0.7392785", "0.7373236", "0.7307978", "0.72721577", "0.72398967", "0.7218902", "0.71938694", "0.7193575", "0.7192087", "0.71672...
0.7682115
5
At the end of the web request, this makes sure to close the database connection. If you don't, the database could run out of memory!
def gBn5(AJ5d): try: Oa1e.conn.close() except Exception as e: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYe1():\n NCls.close()", "def DDI8(YKHO):\n YKHO.conn.close()\n gigf.collect()", "def HySU(bGrB):\n YKHO.db.close()", "def DDI8(YKHO):\n YKHO.connection.close()", "def rYe1(geh0):\n Oa1e.db.close()\n return geh0", "def rYe1(geh0):\n Oa1e.db.close()\n return geh0", "def rY...
[ "0.7949118", "0.77439415", "0.75642663", "0.7458906", "0.74517614", "0.74517614", "0.74517614", "0.74517614", "0.74517614", "0.74517614", "0.74517614", "0.74517614", "0.74517614", "0.74517614", "0.74517614", "0.73605776", "0.7334557", "0.7334557", "0.7332123", "0.73318386", "...
0.0
-1
Return a manifest for this sample.
def _pNd(YKHO): bD7m = f'samples/{YKHO.uuid}/manifest' return YKHO.knex.get(bD7m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _pNd(YKHO):\n if Hy7s.path.exists(YKHO.manifestfile):\n return kkUK(qQXR.loads(nUeQ(YKHO.manifestfile).read()))\n return kkUK({})", "def _pNd(YKHO):\n return YKHO.manifest", "def Kz8N(YKHO) -> qe4Y.Output[h8nf[GySg[str, ImMB]]]:\n return qe4Y.get(YKHO, 'manifest')", "def Kz8N(YKHO) -> ...
[ "0.7615293", "0.75619924", "0.7228468", "0.69406515", "0.67661595", "0.6721726", "0.67200625", "0.6517161", "0.65150267", "0.65150267", "0.6418849", "0.64011556", "0.632388", "0.6211856", "0.61604166", "0.61489534", "0.60881954", "0.6037556", "0.59305507", "0.58315796", "0.58...
0.814788
0
Returns the canvas size in pixels.
def WWZh(): return (g_NO.winfo_width(), g_NO.winfo_height())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8e4(YKHO):\n return YKHO.screen.get_size()", "def ykC9(YKHO):\n TVTK = H2v2 = 0\n for LNo8 in YKHO.images:\n WKvO = LNo8.x + LNo8.absolute_width\n LVAh = LNo8.y + LNo8.absolute_height\n if TVTK < WKvO:\n TVTK = WKvO\n if H2v2 < LVAh:\n H2v2 = LVAh\n...
[ "0.76065636", "0.7291654", "0.72000766", "0.71854603", "0.71594596", "0.7155651", "0.7155651", "0.7099896", "0.70850754", "0.70767885", "0.7060285", "0.7034011", "0.7029985", "0.7029985", "0.7029985", "0.7029985", "0.7029985", "0.7029985", "0.7029985", "0.69946253", "0.698392...
0.8923893
0
Make a get request to the API URI passed in
def NMoC(YKHO, JY51, **B2fa): YKHO.logger.debug('Calling base get with kwargs: {}'.format(B2fa)) if YKHO.config['use_https']: bD7m = 'https://' else: bD7m = 'http://' bD7m = bD7m + YKHO.config['hostname'] + JY51 MOPg = {'Authorization': 'Token ' + YKHO.config['api_token'], 'Accept': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxrn(YKHO, bD7m, **TcF5):\n bD7m = TDhU(YKHO.base_url, bD7m)\n if len(TcF5):\n bD7m += '?' + QIYp(TcF5)\n try:\n Mkmy = YKHO._make_request(**dict(method='GET', url=bD7m, auth=YKHO.auth, timeout=YKHO.timeout, hooks=YKHO.request_hooks, headers=YKHO.request_headers))\n except G4JS.except...
[ "0.7712504", "0.7646339", "0.7477385", "0.7469656", "0.7444595", "0.74294853", "0.74167407", "0.7398451", "0.7386533", "0.73546827", "0.73546827", "0.7321575", "0.73018205", "0.7279567", "0.7253399", "0.7243657", "0.7241146", "0.7240172", "0.7224812", "0.7203245", "0.71988714...
0.0
-1
Set up an Arlo media player.
async def async_setup_platform(ajET, viqz, QEEk, epX6=None): BBY4 = ajET.data.get(h8GZ) if not BBY4: return Bwa6 = [] for yDvq in BBY4.cameras: if yDvq.has_capability(iV6a): mWFP = '{0}'.format(yDvq.name) Bwa6.append(k5hs(mWFP, yDvq)) QEEk(Bwa6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BKcm(YKHO):\n print('1-1')\n YKHO.Media = YKHO.Instance.media_new(YKHO.youtube_url)\n YKHO.player.set_media(YKHO.Media)\n if a9EH.system() == 'Windows':\n print('1-3')\n YKHO.player.set_hwnd(YKHO.GetHandle())\n else:\n print('1-4')\n YKHO.player.set_xwindow(YKHO.GetHa...
[ "0.6124019", "0.6033745", "0.57720435", "0.5672428", "0.5659317", "0.56030464", "0.55808127", "0.5578291", "0.5571156", "0.5568045", "0.5557043", "0.55538464", "0.55161655", "0.5514134", "0.55140793", "0.5498919", "0.54745305", "0.54496276", "0.5445883", "0.54299134", "0.5420...
0.642649
0
Initialize an Arlo media player.
def FIMM(YKHO, mWFP, begE): YKHO._name = mWFP YKHO._unique_id = begE.entity_id YKHO._device = begE YKHO._name = mWFP YKHO._volume = None YKHO._muted = None YKHO._state = None YKHO._shuffle = None YKHO._position = 0 YKHO._track_id = None YKHO._playlist = [] vzeF.info('Arlo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RmEk(YKHO):\n assert YKHO.container is None\n ZFzw = 3\n while YKHO.container is None and 0 < ZFzw:\n ZFzw -= 1\n try:\n YKHO.container = EKeu.open(YKHO.tello.get_video_stream())\n except EKeu.AVError as ave:\n print(VQvZ)\n print('retry...')\n ...
[ "0.63464123", "0.6276088", "0.6197421", "0.60042477", "0.5966629", "0.5964369", "0.59573257", "0.5955853", "0.5942402", "0.59255", "0.59211975", "0.588976", "0.58767784", "0.58719885", "0.5865433", "0.5840495", "0.5824255", "0.581618", "0.58082753", "0.57726705", "0.57574016"...
0.659764
0
Boolean if volume is currently muted.
def qHHI(YKHO): return YKHO._muted
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHHI(YKHO):\n return YKHO._isMuted", "def qHHI(YKHO):\n return YKHO._state.get('mute', None)", "def qHHI(YKHO) -> bool:\n return int(YKHO._state.get('playback_mute', 0)) == 1", "def qHHI(YKHO):\n return YKHO._mute", "def UGFg(YKHO) -> bool:\n return YKHO._muted", "def qHHI(YKHO) -> str...
[ "0.8895486", "0.885142", "0.8814543", "0.8788216", "0.82374", "0.8191111", "0.7936918", "0.7865406", "0.77063185", "0.76781267", "0.6825295", "0.67568815", "0.65654856", "0.65410423", "0.64554507", "0.6447409", "0.64051235", "0.63987285", "0.63623446", "0.636172", "0.63581014...
0.88772947
3
Return the device class of the media player.
def rM2U(YKHO): return fw7V
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO....
[ "0.7867225", "0.78525764", "0.78241426", "0.78241426", "0.78241426", "0.78241426", "0.78241426", "0.7787847", "0.76760966", "0.76649296", "0.7664825", "0.7664825", "0.7664825", "0.7626044", "0.7612436", "0.7612436", "0.759167", "0.7555783", "0.7555783", "0.75409365", "0.74500...
0.6858363
42
Return the device state attributes.
def TzCU(YKHO): return {PlJk: KcmA, 'brand': WAEF, 'friendly_name': YKHO._name}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attrs", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._...
[ "0.93173087", "0.9245708", "0.92207897", "0.92147964", "0.92147964", "0.9210798", "0.9210798", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", "0.91909975", ...
0.0
-1
Return the score of the game if R is the next to move. R looks for low scores
def gAM9(YKHO): if YKHO.leafR(): return (YKHO.leafScore(), YKHO) else: eN17 = YKHO.R() w6Ju = eN17[0] AjsF = w6Ju.scoreL() for Oa1e in eN17[1:]: p1kx = Oa1e.scoreL() if p1kx[0] < AjsF[0]: w6Ju = Oa1e AjsF = p1kx ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cenc(BH3N, oyg0):\n if BH3N.is_loser(oyg0):\n return float('-inf')\n if BH3N.is_winner(oyg0):\n return float('inf')\n return float(len(BH3N.get_legal_moves(oyg0)))", "def hckV(YKHO) -> int:\n return YKHO.rstate.score()", "def Ohmf(YKHO, BZN_):\n YRbF = int(BZN_) // 7\n r845 ...
[ "0.71845496", "0.70455074", "0.7044914", "0.70207614", "0.7008354", "0.69949126", "0.69718325", "0.6961224", "0.69367784", "0.6910868", "0.6904701", "0.6903983", "0.6901333", "0.68918365", "0.68903387", "0.68803644", "0.6870168", "0.6866687", "0.68577814", "0.6853682", "0.684...
0.72899574
0
Find the play for R that minimizes the score under the worst circumstances, where L always works to maximize the score. Use the builtin leafScore by default, or you can supply your own scoring function to implement your own heuristic.
def PRMh(YKHO, rb7a=0, BduV=None): BduV = BduV if BduV != None else lambda Oa1e: Oa1e.leafScore() AjsF = aIrW.inf nVX1 = None for Oa1e in YKHO.R(): if rb7a > 0: Oa1e = Oa1e.bestAtDepthL(depth=rb7a - 1, scoreFunc=BduV) p1kx = BduV(Oa1e) if p1kx < AjsF: AjsF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jvjb(YKHO):\n if YKHO.leafL():\n return (YKHO.leafScore(), YKHO)\n else:\n eN17 = YKHO.L()\n GsOG = eN17[0]\n jB5X = GsOG.scoreR()\n for Oa1e in eN17[1:]:\n p1kx = Oa1e.scoreR()\n if p1kx[0] > jB5X[0]:\n GsOG = Oa1e\n ...
[ "0.79685", "0.79079926", "0.7275948", "0.7230208", "0.69229084", "0.6835073", "0.6829577", "0.6817073", "0.6812812", "0.67829514", "0.676703", "0.6740729", "0.66527176", "0.66354036", "0.6618874", "0.65562576", "0.65390605", "0.64303815", "0.6429865", "0.64100903", "0.6386772...
0.6973812
4
returns a tuple of tuples ((x_min, x_max), (y_min, y_max))
def pmnP(YKHO): xZT4 = YKHO.board.keys() JRC0 = min((XP5J[0] for XP5J in xZT4)) IA3S = max((XP5J[0] for XP5J in xZT4)) LChT = min((XP5J[1] for XP5J in xZT4)) dCLF = max((XP5J[1] for XP5J in xZT4)) return ((JRC0, IA3S), (LChT, dCLF))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mawX(jNOo: Tuple[int, int]) -> AzJI[int, int, int, int]:\n JRC0 = min([WKvO for WKvO, bGrB in jNOo])\n IA3S = max([WKvO for WKvO, bGrB in jNOo])\n LChT = min([LVAh for bGrB, LVAh in jNOo])\n dCLF = max([LVAh for bGrB, LVAh in jNOo])\n return (JRC0, IA3S, LChT, dCLF)", "def C1GJ(jNOo):\n JRC...
[ "0.7711794", "0.762906", "0.74494684", "0.7411606", "0.73266345", "0.72336084", "0.71397084", "0.7088061", "0.7053181", "0.69964576", "0.6976291", "0.6956182", "0.6947641", "0.6894108", "0.6877525", "0.68425024", "0.6816192", "0.6793504", "0.6792052", "0.6750146", "0.6742665"...
0.7093196
7
Lookup the 'all' and 'all_count' views from the metadata or construct defaults.
def Oz8R(JbpM, DMw4): yIVm = JbpM.pop('metadata') kxZP = yIVm.get('views', {}).get('all') if not kxZP: kxZP = '%s/all' % DMw4 GQMN = yIVm.get('views', {}).get('all_count') if not GQMN: GQMN = '%s/all_count' % DMw4 return (kxZP, GQMN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vVrK(QpfX, Mjw9):\n UFBs = qV44(Mjw9, 'frc')\n z5la = VetL.LocalCKAN(context=QpfX)\n hTBB = z5la.action.package_search(q='type:cube AND frc:{frc}'.format(frc=UFBs))\n ihRb = []\n for Inpr in hTBB.get('results') or []:\n if not Inpr.get('default_view_id'):\n continue\n _m...
[ "0.5791284", "0.5705834", "0.5399181", "0.53550243", "0.5300899", "0.5277965", "0.5185668", "0.51750314", "0.514737", "0.5087578", "0.50462204", "0.49970847", "0.4987755", "0.49721837", "0.49630272", "0.48864326", "0.48848885", "0.48412365", "0.48411632", "0.4757586", "0.4751...
0.6535335
0
Test output file name generation.
def FewA(): NArs = dict(id='TEST', db='nucleotide', rettype='gbwithparts') Ux0P = aM69._generate_filename(NArs, 'foo') assert Ux0P == 'foo.gbk' NArs['rettype'] = 'fasta' Ux0P = aM69._generate_filename(NArs, 'foo') assert Ux0P == 'foo.fa' NArs['rettype'] = 'ft' Ux0P = aM69._generate_filen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JuIT():\n xYGm = pSqN(u0s6, 'test_output.h5m')\n assert (xYGm == 'test_output.h5m') == True", "def HyG9():\n xYGm = pSqN(u0s6)\n assert (xYGm == u0s6[:-4] + '_no_grave.h5m') == True", "def txoW(YKHO):\n _c1T = '111111'\n QXse = 'A11A22BCXX'\n uDrL = 'P101_150B_index5'\n nLo2 = [('1_...
[ "0.78613776", "0.7624457", "0.75298786", "0.74659026", "0.73473567", "0.71891046", "0.7065759", "0.7055048", "0.70221645", "0.7004536", "0.6996478", "0.69264466", "0.6919238", "0.68895936", "0.6889224", "0.6877088", "0.6842153", "0.6781788", "0.67543066", "0.67513514", "0.674...
0.6747972
20
Test that there is a value of the right child in the small tree.
def l2fC(Qtjg): assert Qtjg.root.right.value == 11
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LsBP(Qtjg):\n assert Qtjg.root.right.right.value == 27", "def josp(viVk):\n assert viVk.root.value == 10", "def Yid2(Qtjg):\n assert Qtjg.root.value == 3", "def SiZd(smZQ):\n assert smZQ.root.val is 0", "def aNXv(IrWh):\n assert IrWh.root.value == 11", "def SQqX(ebAu):\n ebAu.insert...
[ "0.8579176", "0.69598657", "0.69145495", "0.6835501", "0.6834478", "0.67782515", "0.66623455", "0.66231143", "0.66171", "0.65439016", "0.65047574", "0.6443494", "0.6417503", "0.63988703", "0.63982207", "0.63054246", "0.62891006", "0.6267407", "0.6237089", "0.6206176", "0.6206...
0.7728338
1
Test that there is a right child of the small tree.
def LsBP(Qtjg): assert Qtjg.root.right.right.value == 27
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQqX(ebAu):\n ebAu.insert(10)\n ebAu.insert(15)\n assert ebAu.root.right\n assert not ebAu.root.left", "def sD6b(YKHO):\n if YKHO.parent == None:\n return False\n return YKHO.parent.right == YKHO", "def CC9G(ebAu):\n ebAu.insert(10)\n ebAu.insert(5)\n assert ebAu.root.left...
[ "0.7641996", "0.74434966", "0.717954", "0.7019246", "0.6967774", "0.69477737", "0.6912281", "0.68781763", "0.6797199", "0.6698184", "0.6681731", "0.66418415", "0.66311455", "0.6553698", "0.65529317", "0.64987636", "0.6466696", "0.64635324", "0.64635324", "0.64625084", "0.6458...
0.8620883
0
Test typical get request.
def e4G4(YKHO): YKHO.seed_static_data() NArs = {'id': 1, 'event_id': 1} geh0 = YKHO.app.get('/api/v1/tag', headers=YKHO.user1_headers, data=NArs) nPrm = qQXR.loads(geh0.data) YKHO.assertEqual(nPrm['id'], 1) YKHO.assertEqual(nPrm['event_id'], 1) YKHO.assertEqual(nPrm['tag_type'], 'RESPONSE') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykgQ(YKHO):\n return YKHO.doRequest(YKHO.url, method='GET', body=YKHO.input)", "def ykgQ(YKHO):\n bD7m, bIwZ = YKHO.server.address\n Mkmy = YKHO.client.get('http://{0}:{1}/'.format(bD7m, bIwZ))\n YKHO.assertEqual(200, Mkmy.status_code)\n Mkmy = YKHO.client.get('http://{0}:{1}'.format(bD7m, bIw...
[ "0.86652255", "0.84824306", "0.825025", "0.80968267", "0.80968267", "0.8014361", "0.7964762", "0.7964762", "0.7894122", "0.7894122", "0.7794559", "0.77163506", "0.7657678", "0.75957924", "0.75957924", "0.7545281", "0.7529781", "0.750443", "0.7470404", "0.7466768", "0.74493724...
0.0
-1
Check a non event admin can't get a tag.
def vCH2(YKHO): YKHO.seed_static_data() NArs = {'id': 1, 'event_id': 1} geh0 = YKHO.app.get('/api/v1/tag', headers=YKHO.user3_headers, data=NArs) YKHO.assertEqual(geh0.status_code, 403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bDwf(YKHO):\n YKHO.seed_static_data()\n NArs = {'id': 1, 'event_id': 1}\n geh0 = YKHO.app.get('/api/v1/tag', headers=YKHO.user2_headers, data=NArs)\n YKHO.assertEqual(geh0.status_code, 403)", "def RhS9():\n\n async def check(OaeV):\n if OaeV.author.id == OaeV.bot.owner_id:\n ...
[ "0.6792293", "0.6601816", "0.63957447", "0.61967623", "0.60017455", "0.59642684", "0.5937236", "0.59371203", "0.58762646", "0.584405", "0.5807968", "0.5800025", "0.574361", "0.5712198", "0.5655928", "0.56186956", "0.560578", "0.5597567", "0.5597526", "0.55895686", "0.5562843"...
0.6555421
2
retruns list of numbers which is relatively prime to N
def DfDh(ywwl): if ywwl <= 0: print('N <= 0 @GenerateCoprimes in ModulesFactorization') HwRy.exit() GkCV = list() for mLGw in range(1, ywwl + 1): if epAf.gcd(ywwl, mLGw) == 1: GkCV.append(mLGw) return GkCV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W9HL(mLGw):\n Yn7t = []\n for YRbF in range(mLGw):\n if _f0Y(YRbF + 1):\n Yn7t.append(YRbF)\n return Yn7t", "def rPed(exwG):\n return [YRbF for YRbF in Ni9Y(1, exwG + 1) if kU5Q(YRbF)]", "def hdnT(exwG):\n RTEw = list(range(3, int(pBSp(PZyS(exwG))), 2))\n ptlK = [Tru...
[ "0.7746709", "0.7742901", "0.76955163", "0.7626955", "0.7600571", "0.7584221", "0.75523394", "0.754826", "0.7538675", "0.7526856", "0.7490697", "0.7485215", "0.74690527", "0.7384667", "0.7366019", "0.73563635", "0.7326023", "0.7314516", "0.7314516", "0.7311255", "0.72974086",...
0.0
-1
Get a list of RPMs to blacklist
def D5LO(): global index z6XB = set() for wOb_ in XLHT.values(): z6XB = z6XB.union(wOb_.get_rpm_artifacts()) gJnT = set() for mWFP in d6pt.get_module_names(): yR_P = d6pt.get_module(mWFP) for wOb_ in yR_P.get_all_streams(): gJnT = gJnT.union(wOb_.get_rpm_artifacts...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ynSc(YKHO) -> x1iM[str]:\n return YKHO.raw_config.get('blacklist', [])", "def BXwr():\n NCls = gQfM.kv()\n ynSc = NCls.get(vPQX, [])\n for begE in d9U6():\n try:\n ynSc.remove(begE)\n except ValueError:\n raise xxyF('{}: Device not in blacklist.'.format(begE))\...
[ "0.65307343", "0.63255924", "0.62569094", "0.616089", "0.60532945", "0.5996806", "0.5904636", "0.58727056", "0.58684236", "0.58534366", "0.58209705", "0.57830745", "0.5761726", "0.5739948", "0.57301134", "0.5706825", "0.569636", "0.5680605", "0.56762797", "0.5670396", "0.5670...
0.81101996
0
Insert data into an empty linked list.
def sTnE(r5RM): r5RM.insert_head('A') assert r5RM.head.data == 'A'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, nPrm):\n if YKHO.head == None:\n YKHO.head = o7DN(nPrm)\n else:\n ZbOB = YKHO.head\n while ZbOB.link != None:\n ZbOB = ZbOB.link\n ZbOB.link = o7DN(nPrm)", "def Fpzv(YKHO, nPrm):\n Q6kx = o7DN(nPrm)\n if YKHO.is_empty():\n YKHO.head = Q6kx\...
[ "0.81877583", "0.8069094", "0.7965457", "0.79628056", "0.781661", "0.78147596", "0.7563759", "0.7527882", "0.7454431", "0.74378484", "0.73897225", "0.73817277", "0.73462945", "0.7345649", "0.7281895", "0.727968", "0.72706497", "0.72510695", "0.7246597", "0.71781087", "0.71492...
0.70314413
30
Insert head element to a single element linked list and check whether header node has expected data.
def iFGe(r5RM): r5RM.insert_head('A') r5RM.insert_head('B') assert r5RM.head.data == 'B'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTnE(r5RM):\n r5RM.insert_head('A')\n assert r5RM.head.data == 'A'", "def VClP(r5RM):\n r5RM.insert_head('A')\n assert r5RM.head.next is None", "def Bfa2(r5RM):\n r5RM.insert_head('A')\n r5RM.insert_head('B')\n assert r5RM.head.next.data == 'A'", "def YviU(YKHO, tTpl):\n if YKHO.i...
[ "0.7000382", "0.6920265", "0.68926394", "0.6658777", "0.664612", "0.6491131", "0.6382923", "0.63249904", "0.6275315", "0.62428296", "0.61293507", "0.6121938", "0.6120845", "0.6103657", "0.60847497", "0.5946656", "0.5900113", "0.5896753", "0.5894562", "0.5886943", "0.5839833",...
0.7153454
0
Insert head element to a single element linked list and check whether header node.next points to second element
def Bfa2(r5RM): r5RM.insert_head('A') r5RM.insert_head('B') assert r5RM.head.next.data == 'A'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VClP(r5RM):\n r5RM.insert_head('A')\n assert r5RM.head.next is None", "def iFGe(r5RM):\n r5RM.insert_head('A')\n r5RM.insert_head('B')\n assert r5RM.head.data == 'B'", "def __kH(r5RM):\n r5RM.insert_head('A')\n r5RM.insert_head('B')\n r5RM.insert_head('C')\n assert r5RM.head.data...
[ "0.68290764", "0.6784454", "0.67691284", "0.6407408", "0.6398689", "0.634001", "0.6122741", "0.6031908", "0.6015013", "0.5961826", "0.5920558", "0.5915399", "0.59067553", "0.5889279", "0.5888695", "0.58771574", "0.5876606", "0.5869111", "0.58359754", "0.5826269", "0.5800353",...
0.6998045
0
Insert head element to a two element linked list and check whether header node has expected data.
def __kH(r5RM): r5RM.insert_head('A') r5RM.insert_head('B') r5RM.insert_head('C') assert r5RM.head.data == 'C'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bfa2(r5RM):\n r5RM.insert_head('A')\n r5RM.insert_head('B')\n assert r5RM.head.next.data == 'A'", "def VClP(r5RM):\n r5RM.insert_head('A')\n assert r5RM.head.next is None", "def iFGe(r5RM):\n r5RM.insert_head('A')\n r5RM.insert_head('B')\n assert r5RM.head.data == 'B'", "def sTnE(...
[ "0.71093637", "0.6993354", "0.69920653", "0.6874157", "0.6395523", "0.6193493", "0.6157132", "0.610049", "0.59965223", "0.5888415", "0.58738816", "0.5845826", "0.58392084", "0.5838037", "0.57361645", "0.5719376", "0.5718986", "0.56913036", "0.5687391", "0.56646043", "0.564347...
0.71451944
0
Insert last element to an empty element linked list and check whether header node has expected data
def f3sq(r5RM): r5RM.insert_end('A') assert r5RM.head.data == 'A'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Foq2(YKHO, tTpl):\n if YKHO.is_empty():\n print('As you do not have any start node yet, the given element will be a start node.')\n YKHO._first_insert(tTpl)\n return\n try:\n YKHO._insert_between(tTpl, YKHO._start._prev, YKHO._start)\n except:\n print('insertion unsu...
[ "0.6620652", "0.65475994", "0.6387041", "0.63748395", "0.63285327", "0.63142574", "0.6290541", "0.625654", "0.6144856", "0.6062653", "0.6061434", "0.6054086", "0.60341364", "0.5983253", "0.5946131", "0.59438145", "0.5936144", "0.592606", "0.5887565", "0.58757454", "0.587368",...
0.7035622
0
Insert last element to a single element linked list and check whether the last node has expected data
def YOxB(r5RM): r5RM.insert_end('A') r5RM.insert_end('B') assert r5RM.head.data == 'A'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f3sq(r5RM):\n r5RM.insert_end('A')\n assert r5RM.head.data == 'A'", "def dVQh(YKHO):\n mumE = RRVT()\n jzdc = o7DN('a')\n Fg_i = o7DN('b')\n Z9rn = o7DN('c')\n mumE.insert_beg(jzdc)\n mumE.insert_end(Fg_i)\n mumE.insert_beg(Z9rn)\n n5sN = [YRbF.data for YRbF in mumE][-1]\n aE...
[ "0.72178334", "0.69149065", "0.69074094", "0.6875248", "0.6817494", "0.6682206", "0.65892625", "0.6489145", "0.6454365", "0.64060044", "0.6381768", "0.6363875", "0.6361612", "0.6344563", "0.6337286", "0.63229567", "0.63185537", "0.6296967", "0.62793654", "0.62726855", "0.6232...
0.7321098
0
Test to set the name
def Vysk(YKHO): YKHO.my_city.name = 'Denver' YKHO.assertEqual(YKHO.my_city.name, 'Denver')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(YKHO, L15R=''):\n YKHO.name = L15R", "def WZrJ(YKHO, mWFP):\n YKHO._name = n_Rt", "def YWKD(YKHO) -> None:\n VC5D = YKHO.test_name\n aEqx = VC5D\n YKHO.helper.set_name(VC5D)\n n5sN = YKHO.helper.name\n YKHO.assertEqual(aEqx, n5sN)"...
[ "0.802927", "0.79900384", "0.7861012", "0.78303534", "0.78269035", "0.77964073", "0.77105695", "0.7707535", "0.7706618", "0.7706618", "0.7706618", "0.7706618", "0.7667307", "0.76595765", "0.76595765", "0.76169777", "0.76024616", "0.76024616", "0.76024616", "0.76024616", "0.76...
0.0
-1
ORG / Organization Registry
def QAIN(): gCuF = jvSB.deployment_settings ePsc = jvSB.session.s3.system_roles.ADMIN v45c = 'Clusters' if gCuF.get_ui_label_cluster() else 'Sectors' eQSh = lambda YRbF: gCuF.has_module('stats') return E3D9(c='org')(E3D9('Organizations MSW', f='organisation')(E3D9('Create', m='create'), E3D9('Import...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHOH():\n pass", "def mUrV(YKHO):\n YKHO.elements('organizations')", "def GCTr(YKHO):\n pass", "def rdhS(YKHO):\n pass", "def QAIN():\n J8wm = jvSB.auth.get_system_roles()\n ePsc = J8wm.ADMIN\n JKFw = J8wm.ORG_GROUP_ADMIN\n return E3D9(c='org')(E3D9('Organizations', f='organisat...
[ "0.67622626", "0.64280254", "0.6281099", "0.6248272", "0.61873627", "0.6182633", "0.6163306", "0.60936064", "0.60586184", "0.60250324", "0.5994845", "0.5978774", "0.5963733", "0.5891216", "0.5847455", "0.5847007", "0.58193946", "0.57460207", "0.5737204", "0.5737204", "0.57372...
0.6491232
1
Set the buffer's index.
def zmqi(YKHO, or8S: int): if not (isinstance(or8S, int) or not 0 <= or8S < len(YKHO._buffer)): raise pWOL.ValueErr(given=or8S, ge_constraint='0 (int)', l_constraint=len(YKHO._buffer)) YKHO._ring_idx = or8S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1R3(YKHO, d6pt, BWXx):\n YKHO.buffer[d6pt] = BWXx", "def ACOY(YKHO, d6pt):\n YKHO.index = d6pt", "def K5_A(YKHO, d6pt: int, BWXx: object) -> None:\n YKHO.data[d6pt] = BWXx", "def d6pt(YKHO, d6pt):\n YKHO._index = d6pt", "def _yGE(YKHO):\n YKHO.index = 0\n YKHO.index = -min(0, YKHO._g...
[ "0.7110891", "0.71106434", "0.6945637", "0.6888288", "0.67648816", "0.6623153", "0.6582871", "0.656028", "0.648553", "0.64569163", "0.6440463", "0.64095294", "0.6348192", "0.6330599", "0.6319663", "0.6257496", "0.6217406", "0.6190503", "0.61772704", "0.6151941", "0.6133701", ...
0.6359728
12
Format an exception as a string. Limits the length of the traceback to 3.
def p3dY(_8EW: Exception) -> str: E5BI = wVCK.extract_stack()[:-3] + wVCK.extract_tb(_8EW.__traceback__) r7XA = wVCK.format_list(E5BI) return ''.join(r7XA) + f'\n {_8EW.__class__} {_8EW}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aS5t(YKHO, _n4O):\n gXuE = wVCK.format_exception(*_n4O)\n return '\\n'.join(gXuE)", "def iSjC(Ol8d):\n Ol8d = 'Exception Type: %s\\nDetails: %s\\nMessage: %s\\n' % (HwRy.exc_type, wVCK.format_exc(), Ol8d)\n return Ol8d", "def muz0(BQDi):\n vEqo = type(BQDi)\n cCim = vEqo.__qualname__\n ...
[ "0.7624566", "0.7558915", "0.75474006", "0.7497152", "0.7445153", "0.7413449", "0.7396047", "0.7388955", "0.7309555", "0.727759", "0.7244538", "0.7222153", "0.7207482", "0.7099169", "0.70663077", "0.7035034", "0.6965173", "0.6932354", "0.68746436", "0.6867291", "0.68640524", ...
0.7062025
15
The Constructor Method for the Accelerometer Class
def FIMM(YKHO): mbc4.__init__(YKHO) YKHO.__IRCodeDelegate = None YKHO.__IRLearnDelegate = None YKHO.__IRRawDataDelegate = None YKHO.__onIRCodeHandler = None YKHO.__onIRLearnHandler = None YKHO.__onIRRawDataHandler = None try: RGmU.getDll().CPhidgetIR_create(dWW6(YKHO.handle)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.dtype = oyIN.dtype([('fault_flags', oyIN.uint32), ('raw_x', oyIN.int16), ('raw_y', oyIN.int16), ('raw_z', oyIN.int16), ('accel_x', oyIN.float32), ('accel_y', oyIN.float32), ('accel_z', oyIN.float32), ('pitch', oyIN.float32), ('roll', oyIN.float32)])\n YKHO._accel_indices = [0, 4, 5, 6]...
[ "0.67325115", "0.6627993", "0.66174006", "0.6615042", "0.6574191", "0.65632313", "0.65572006", "0.65463364", "0.6523182", "0.6486957", "0.64627373", "0.64199865", "0.6381732", "0.6368715", "0.6354001", "0.63309085", "0.62914526", "0.6278993", "0.6259358", "0.6253952", "0.6252...
0.0
-1
Gets the last code the was learned.
def z_EN(YKHO): cdCz = (uCnm * ZCTR)() wVIP = aTac(ZCTR) smI0 = GM4p() try: Aofo = RGmU.getDll().CPhidgetIR_getLastLearnedCode(YKHO.handle, cdCz, dWW6(wVIP), dWW6(smI0)) except RuntimeError: raise if Aofo > 0: raise Ffsx(Aofo) else: Cf7U = Lt8i(WSiF(cdCz, smI0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IVIb(YKHO):\n cdCz = (uCnm * ZCTR)(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)\n wVIP = aTac(ZCTR)\n NreR = aTac()\n try:\n Aofo = RGmU.getDll().CPhidgetIR_getLastCode(YKHO.handle, cdCz, dWW6(wVIP), dWW6(NreR))\n except RuntimeError:\n raise\n if Aofo > 0:\n raise Ffs...
[ "0.70882255", "0.6817966", "0.65252477", "0.6414747", "0.6414747", "0.6414747", "0.6414747", "0.6366159", "0.6299188", "0.6299188", "0.6299188", "0.6299188", "0.6193091", "0.61307126", "0.6107682", "0.60453266", "0.6043935", "0.59798914", "0.5971125", "0.5961705", "0.59294826...
0.8201471
0
This function checks whether a number if odd or even
def Kehr(FGW3, C_CQ=True): if C_CQ: if FGW3 % 2 == 1: print(f'Correct, number {FGW3} is odd') else: print(f'wrong, number {FGW3} is not odd') elif FGW3 % 2 == 1: print(f'Correct, number {FGW3} is even') else: print(f'wrong, number {FGW3} is not even')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kYZq(FGW3):\n return FGW3 % 2 != 0", "def kYZq(FGW3):\n return FGW3 % 2 == 1", "def kYZq(FGW3: int) -> bool:\n return FGW3 % 2 != 0", "def ePD4(FGW3):\n if FGW3 % 2 == 0:\n return 0\n else:\n return 1", "def kYZq(WKvO):\n return WKvO % 2 != 0", "def kYZq(exwG):\n if...
[ "0.89699316", "0.8898966", "0.88266414", "0.8702352", "0.8698093", "0.8655987", "0.86295116", "0.8573111", "0.8547807", "0.8542004", "0.85138875", "0.84909666", "0.84850013", "0.84608066", "0.84457254", "0.84421366", "0.8373561", "0.8367002", "0.83280456", "0.8320662", "0.827...
0.8148552
23
Yield successive nsized chunks from lst.
def eHxA(yv6U, exwG): for YRbF in range(0, len(yv6U), exwG): yield yv6U[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield...
[ "0.83071756", "0.81939614", "0.81910837", "0.81910837", "0.8190213", "0.81267184", "0.81218547", "0.81218547", "0.80773693", "0.80526286", "0.80526286", "0.80526286", "0.80526286", "0.80526286", "0.80042696", "0.7871678", "0.7845623", "0.7828392", "0.7827006", "0.78138447", "...
0.80533457
24
Creates and saves a superuser with the given parameters.
def Zp54(YKHO, D3lj, jTXt=None): CBIr = YKHO.create_user(D3lj, password=jTXt) CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvMu():\n D3lj = idDS('User E-Mail')\n JAPf = idDS('Confirm E-Mail')\n if not D3lj == JAPf:\n HwRy.exit('\\nCould not create user: E-Mail did not match')\n if not abGk.match(D3lj):\n HwRy.exit('\\nCould not create user: Invalid E-Mail addresss')\n jTXt = GgOB('User password')\n ...
[ "0.76421744", "0.75859475", "0.7515691", "0.7462415", "0.7452859", "0.742045", "0.73830366", "0.7375057", "0.73690206", "0.73686683", "0.73630387", "0.7348849", "0.7334004", "0.730272", "0.73019826", "0.72855103", "0.7282453", "0.7273817", "0.72719747", "0.7266118", "0.726204...
0.0
-1
Provide a friendly representation
def wHJl(YKHO) -> str: return '<Twilio.Oauth.V1.TokenInstance>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpuU(YKHO) -> str:\n raise NotImplementedError()", "def zAg0(YKHO):\n return YKHO.make_flat()", "def zAg0(YKHO):\n return YKHO.format()", "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ...
[ "0.76010835", "0.7571921", "0.7230172", "0.7216933", "0.7194604", "0.71428955", "0.714158", "0.71369046", "0.7134454", "0.7134454", "0.7131177", "0.7104331", "0.70761895", "0.70686626", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70311874", "0.701...
0.0
-1
Provide a friendly representation
def wHJl(YKHO) -> str: return '<Twilio.Oauth.V1.TokenList>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpuU(YKHO) -> str:\n raise NotImplementedError()", "def zAg0(YKHO):\n return YKHO.make_flat()", "def zAg0(YKHO):\n return YKHO.format()", "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ...
[ "0.7601743", "0.75718004", "0.72295034", "0.7216429", "0.71937954", "0.71428096", "0.7140594", "0.7136909", "0.7135249", "0.7135249", "0.7130013", "0.7103256", "0.7075", "0.70674646", "0.70674646", "0.70674646", "0.70674646", "0.70674646", "0.70671123", "0.70313466", "0.70191...
0.0
-1
Write a warning message to stderr.
def pEH_(YKHO, Ol8d, *, qR6U=None): eJmI.warning(Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E4N8(tO9_):\n HwRy.stderr.write(str(tO9_))\n HwRy.stderr.write('\\n')", "def E4N8(tO9_):\n print(tO9_, file=HwRy.stderr)", "def E4N8(tO9_):\n print(tO9_, file=HwRy.stderr)", "def E4N8(tO9_):\n print(tO9_, file=HwRy.stderr)", "def E4N8(tO9_):\n print(tO9_, file=HwRy.stderr)", "def E4...
[ "0.7870333", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474", "0.78408474",...
0.6436404
67
String representation of Node object or inheriting class.
def zAg0(YKHO): return str(YKHO.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n KCHu = '--\\n'\n for Q6kx in YKHO:\n KCHu += Q6kx.__str__() + '\\n'\n return KCHu + '--'", "def wHJl(YKHO):\n return f'<Node {YKHO.data}>'", "def zAg0(YKHO) -> str:\n return 'Node({})'.format(YKHO.yaml_node)", "def wHJl(YKHO):\n return str(YKHO.nodes)", "def zAg0(...
[ "0.77331734", "0.7652458", "0.7638021", "0.759565", "0.75588655", "0.75499874", "0.7525615", "0.7520207", "0.75025684", "0.7499907", "0.7499907", "0.748745", "0.7410888", "0.73790246", "0.7330727", "0.73020655", "0.7258886", "0.7190272", "0.71691245", "0.7133538", "0.7128342"...
0.0
-1
Representation of Node object or inheriting class when inspected.
def wHJl(YKHO): return str(YKHO.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return 'Node({!r})'.format(YKHO.data)", "def wHJl(YKHO):\n return f'<Node {YKHO.data}>'", "def PGEZ(YKHO):\n return YKHO._node_type", "def BuMS(YKHO):\n return YKHO.node_type", "def Q6kx(YKHO):\n return o7DN(YKHO)", "def J_Es(YKHO) -> o7DN:\n return o7DN(YKHO.to_string...
[ "0.7123788", "0.70227534", "0.68973327", "0.6856256", "0.68377054", "0.67214316", "0.6642786", "0.6611929", "0.65653694", "0.6522132", "0.65069085", "0.65069085", "0.6506687", "0.64657015", "0.6461232", "0.6448232", "0.63595486", "0.63595444", "0.6359388", "0.6340873", "0.630...
0.0
-1
Returns hexencoded SHA512 hash for the given data.
def OBQL(nPrm): return HBct.sha512(str(nPrm).encode('utf-8')).hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sp_i(nPrm):\n return HBct.sha512(nPrm).hexdigest()", "def Eh5f(nPrm):\n return HBct.sha512(nPrm).hexdigest()", "def kQVZ(*YnUK):\n razo = HBct.sha512()\n for nPrm in YnUK:\n if isinstance(nPrm, str):\n razo.update(nPrm.encode('utf-8'))\n elif isinstance(nPrm, bytes):\n ...
[ "0.8828686", "0.86973995", "0.7896582", "0.76218396", "0.7582233", "0.74668616", "0.7320151", "0.71159804", "0.7114915", "0.6844553", "0.6821521", "0.6798221", "0.67327076", "0.66272634", "0.6615002", "0.65569", "0.65120775", "0.6504787", "0.6442338", "0.6394066", "0.6332879"...
0.7969169
2
Evaluate the population with respect to input data X and expected output.
def pK4W(YKHO, EcVT, fuBA): i94Y = ht2j.zeros(YKHO.population_size, device=YKHO.device) for YRbF in range(YKHO.population_size): mh2e = YKHO.population[YRbF].cpu() if YKHO.IDCT_from is not None: mh2e = ht2j.tensor(R1oI.idct(oyIN.array(mh2e), n=YKHO.model.total_parameters(), norm='ort...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7La(YKHO, EcVT):\n raise NotImplementedError('not implemented!')", "def b7La(YKHO, EcVT):\n pass", "def b7La(YKHO, __n6):\n return YKHO.model.evaluate(__n6.X_val, __n6.y_val)", "def b7La(CHNM, QpfX=None):\n for DM04 in CHNM:\n DM04.evaluate()\n return (CHNM, QpfX)", "def b7La(YKH...
[ "0.7122433", "0.68909365", "0.65685827", "0.6454497", "0.6450034", "0.64358103", "0.63450545", "0.63008964", "0.62551874", "0.6255135", "0.6235048", "0.62307996", "0.61885816", "0.61829305", "0.61514705", "0.6123133", "0.61000067", "0.6092697", "0.6065284", "0.6055261", "0.60...
0.71402115
0
Given the list of parents and an index on where to place the new individual, creates a new individual
def ceLY(YKHO, ACnF, NKcE='uniform_swap'): cPOD = None if NKcE == 'uniform_swap': cPOD = YKHO._uniform_swap elif NKcE == 'single_swap': cPOD = YKHO._single_swap elif NKcE == 'arithmetic': cPOD = lambda EBgd, HpuQ: (EBgd + HpuQ) / 2 aUGN = ACnF[0].clone().detach() for _AKB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aTef(YKHO, d6pt, hqvC):\n raise NotImplementedError()", "def tJu_(YKHO, d6pt):\n YKHO.add_parent(YKHO[d6pt])", "def CayY(YKHO, d6pt, hqvC):\n raise NotImplementedError()", "def WKFO(YKHO):\n pass", "def aTef(YKHO, d6pt, hqvC):\n if d6pt == 0:\n return hqvC\n elif d6pt == 1:\n ...
[ "0.6309031", "0.61675406", "0.59882504", "0.56271535", "0.55889696", "0.5584923", "0.5576614", "0.5532694", "0.55218256", "0.54842454", "0.5444961", "0.5444678", "0.5422788", "0.541323", "0.5402656", "0.5402029", "0.5355109", "0.53489935", "0.5334691", "0.53193784", "0.531016...
0.0
-1
Returns a dict of reasonable random parameters that can be used to do parameter search.
def es3T(): Ylbp = dict() Ylbp['population_size'] = tuKI.randrange(2, 21) Ylbp['mutation_prob'] = tuKI.choice([0.02, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5]) Ylbp['crossover'] = tuKI.choice([True, False]) Ylbp['selection'] = tuKI.choice([True, False]) Ylbp['sigma'] = tuKI.choice([0.1, 0.25, 0.5, 1]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AS1E(YKHO, rJrZ=True):\n pass", "def pcYs(YKHO) -> cuzp:\n rosz: cuzp = YKHO.gen_params()\n YKHO.set_params(rosz)\n return rosz", "def tuKI():\n K5WD = dict(scale=10 ** oyIN.random.uniform(1, 3), gamma=oyIN.random.uniform(0, 6), q_0=10 ** oyIN.random.uniform(-3, -1))\n return K5WD", "de...
[ "0.70701885", "0.706165", "0.7013774", "0.6762008", "0.6735659", "0.6637217", "0.6519411", "0.6440548", "0.63888425", "0.6324186", "0.63205343", "0.63086057", "0.62929904", "0.6286846", "0.6242564", "0.6231981", "0.6220546", "0.6217865", "0.6199372", "0.61903065", "0.6187879"...
0.8022944
0
using scipy.stats.multivariate_normal and scipy.stats.norm.logpdf
def zVUR(EcVT, r8hN, Nq1b): return nSzW(r8hN, Nq1b).logpdf(EcVT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NElx(EcVT, yGTL, PFC2):\n pImw = nSzW(yGTL, PFC2)\n V6IE = pImw.pdf(EcVT)\n return V6IE", "def Igbl(EcVT, B9EC, QYVD, T1hJ=1):\n cDK5, apZK = EcVT.shape\n U6s3 = len(B9EC)\n Vjik = oyIN.empty((cDK5, U6s3))\n zZFA = []\n EiIn = []\n for Z9rn, (yGTL, jbYn) in enumerate(zip(B9EC, QYVD...
[ "0.7157555", "0.68779457", "0.67325884", "0.66602916", "0.66465247", "0.6633968", "0.65824074", "0.65715814", "0.65288293", "0.65078455", "0.64698696", "0.645318", "0.6447839", "0.6406545", "0.6385113", "0.6371188", "0.6333469", "0.6324321", "0.6319994", "0.63143253", "0.6278...
0.64493066
12
Return min and max values.
def nJH5(mSrU: str) -> str: return f'{min(map(int, mSrU.split()))} {max(map(int, mSrU.split()))}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xOWs(fUYa):\n return (min(fUYa), max(fUYa))", "def eGB3(YKHO):\n IA3S = float('-inf')\n JRC0 = float('inf')\n dCLF = float('-inf')\n LChT = float('inf')\n Cbv1 = float('-inf')\n hIsG = float('inf')\n TK2h = (IA3S, dCLF, Cbv1, JRC0, LChT, hIsG)\n ewCu = 0\n for zZcM, Q6kx in YKHO...
[ "0.8033154", "0.78591096", "0.7818719", "0.77079254", "0.76304585", "0.75011563", "0.7481534", "0.74667835", "0.74421066", "0.7440306", "0.740863", "0.7367874", "0.7318964", "0.7301685", "0.72624475", "0.7226793", "0.7180699", "0.7172398", "0.7167464", "0.71605885", "0.714825...
0.0
-1
Return min and max values.
def kbWX(mSrU: str) -> str: fFAy = QI1n = int(mSrU[0]) for FGW3 in map(int, mSrU.split()): if FGW3 < fFAy: fFAy = FGW3 if FGW3 > QI1n: QI1n = FGW3 return f'{fFAy} {QI1n}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xOWs(fUYa):\n return (min(fUYa), max(fUYa))", "def eGB3(YKHO):\n IA3S = float('-inf')\n JRC0 = float('inf')\n dCLF = float('-inf')\n LChT = float('inf')\n Cbv1 = float('-inf')\n hIsG = float('inf')\n TK2h = (IA3S, dCLF, Cbv1, JRC0, LChT, hIsG)\n ewCu = 0\n for zZcM, Q6kx in YKHO...
[ "0.8031845", "0.7859441", "0.7818016", "0.77063936", "0.76289624", "0.75001776", "0.74813735", "0.74675804", "0.7440563", "0.7438437", "0.74092746", "0.73663896", "0.7317468", "0.7301293", "0.7261678", "0.72272754", "0.7179676", "0.7172163", "0.7167929", "0.71588", "0.7147334...
0.0
-1
max subarray containing ith element
def B0gN(xYvp, YRbF): if YRbF == 0: return xYvp[0] if B0gN(xYvp, YRbF - 1) > 0: return B0gN(xYvp, YRbF - 1) + xYvp[YRbF] else: return xYvp[YRbF]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oF7I(YKHO, xYvp) -> int:\n rsex = -10000000\n YRbF = 0\n rJDt = YKHO.create_matrix(xYvp)\n if len(xYvp) == 1:\n return xYvp[0]\n while YRbF <= len(xYvp) - 1:\n r845 = YRbF\n while r845 <= len(xYvp) - 1:\n Szdu = rJDt[YRbF][r845]\n if Szdu > rsex:\n ...
[ "0.74525464", "0.742486", "0.72699606", "0.7112033", "0.7101944", "0.70947534", "0.6958306", "0.6906481", "0.6848971", "0.68423826", "0.68038774", "0.6778717", "0.6761434", "0.6750676", "0.6740532", "0.6711446", "0.6711446", "0.6711446", "0.6679008", "0.6660688", "0.6648468",...
0.0
-1
Compute softmax values for each sets of scores in x.
def N93T(WKvO): return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=1, keepdims=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7796294", "0.7760558", "0.7759004", "0.77567077", "0.76577055", "0.76577055", "0.76577055", "0.76577055", "0.7585655", "0.743143", "0.7407772", "0.73941606", "0.7358175", "0.73174125", "0.72689486", "0.72623265", "0.72614294", "0.7256868", "0.723019", "0.7214918", "0.72017...
0.0
-1
Convert the given URL into a legal URL by escaping unsafe characters according to RFC3986. Also, ASCII tabs and newlines are removed
def rkMp(bD7m, tZ2K='utf8', fMNs='utf8'): AgdR = brQJ(bD7m, encoding=tZ2K, errors='percentencode') SQ3m = NoPH(Xz1f.sub('', AgdR)) try: RYr6 = SQ3m.netloc.encode('idna') except UnicodeError: RYr6 = SQ3m.netloc return izOI((C7Le(SQ3m.scheme), C7Le(RYr6).rstrip(':'), NCC9(ntSl(SQ3m.pat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _1lG(bD7m):\n KCHu = bD7m\n bD7m = bD7m.encode('utf8')\n bD7m = ''.join([uRlK.quote(Z9rn) if ord(Z9rn) >= 127 else Z9rn for Z9rn in bD7m])\n return bD7m", "def t123(YKHO, bD7m):\n return bD7m.replace(' ', '%20').replace('(', '%28').replace(')', '%29').replace('\"', '%22')", "def H3MP(YKHO, b...
[ "0.76104623", "0.76068425", "0.732039", "0.7172684", "0.6942655", "0.69398767", "0.6825457", "0.68161464", "0.67821115", "0.6776483", "0.6742143", "0.66165555", "0.66121686", "0.6591953", "0.655551", "0.6525111", "0.65196186", "0.64948666", "0.64945096", "0.647686", "0.647326...
0.66540754
11
Clean URL arguments leaving only those passed in the parameterlist keeping order >>> import w3lib.url >>> w3lib.url.url_query_cleaner("product.html?id=200&foo=bar&name=wired", ('id',)) 'product.html?id=200' >>> w3lib.url.url_query_cleaner("product.html?id=200&foo=bar&name=wired", ['id', 'name']) 'product.html?id=200&na...
def fSBG(bD7m, TFo4=(), VWe_='&', FYHp='=', kSdD=False, kcwm=True, MuoS=False): if isinstance(TFo4, (jKi7.text_type, bytes)): TFo4 = [TFo4] bD7m, vBtp = T2jy(bD7m) P8oC, bGrB, xDcj = bD7m.partition('?') PwWw = set() a_Ry = [] for Ibto in xDcj.split(VWe_): if not Ibto: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def raFM(YKHO):\n tisv = YKHO._render_tag(tag='{% querystring \"remove\" \"foo\" \"bar\" \"baz=1\" %}', query_str='foo=foo&bar=bar&foo=&baz=1&qux=qux')\n YKHO.assertTrue(tisv.startswith('?'))\n YKHO.assertEqual(GLng(tisv[1:]), GLng('qux=qux'))", "def _1lG(bD7m: str, sjXb: List[str]) -> str:\n P6bq = ...
[ "0.60887784", "0.59742236", "0.586768", "0.5849657", "0.5837156", "0.57429856", "0.5674179", "0.56159896", "0.55954355", "0.5503327", "0.54211736", "0.5406335", "0.5371822", "0.53556895", "0.5342783", "0.5247226", "0.52447885", "0.5231707", "0.5206317", "0.5175111", "0.514468...
0.80487144
0
Checks if a and b are in given distance d
def DHla(jzdc, Fg_i, Csk6): return Ayfi(jzdc, Fg_i) <= Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(YKHO, jzdc, Fg_i):\n if not (jzdc in YKHO and Fg_i in YKHO):\n raise RuntimeError('Can only compute distance for values within the space, not {} and {}.'.format(jzdc, Fg_i))\n return 1 if jzdc != Fg_i else 0", "def XFHj(jzdc, Fg_i, Ayfi, **B2fa):\n return _e0h.dwithin(jzdc, Fg_i, Ayfi, *...
[ "0.7185901", "0.7166674", "0.6720538", "0.6656798", "0.6656798", "0.6601606", "0.6598739", "0.65757394", "0.65753025", "0.65734214", "0.65687853", "0.6567245", "0.6496106", "0.6494706", "0.6463152", "0.6428333", "0.64235395", "0.64084", "0.63912725", "0.63847333", "0.63520175...
0.88950545
0
Build a grid of side 'box' centered in coordinates (x0,y0).
def ZXbQ(YKHO, nJ9F, nxyw, nPrm): PdzP, MOuq = nPrm.shape BQGg, bYzl = (max(nJ9F - YKHO._box / 2, 0), min(nJ9F + YKHO._box / 2 + 1, PdzP - 1)) h3cg, Z3uP = (max(nxyw - YKHO._box / 2, 0), min(nxyw + YKHO._box / 2 + 1, MOuq - 1)) return oyIN.mgrid[int(BQGg):int(bYzl), int(h3cg):int(Z3uP)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(WKvO: Bounds, LVAh: Bounds, qizI):\n nJ9F, nxyw = rApN.bounding_box(WKvO, LVAh, qizI)\n egQ5 = qizI / 2\n mMG6 = oyIN.arange(nJ9F.min + egQ5, nJ9F.max, qizI)\n VUzz = oyIN.arange(nxyw.max - egQ5, nxyw.min, -qizI)\n return (mMG6, VUzz)", "def R0O3(EcVT, fuBA):\n Cs6h = []\n for r845 ...
[ "0.68889046", "0.66959006", "0.6675402", "0.6625472", "0.65224016", "0.65156347", "0.64650273", "0.6447261", "0.6428468", "0.64268714", "0.6423173", "0.6399049", "0.6390738", "0.638039", "0.6375674", "0.6367894", "0.6358506", "0.63347507", "0.6316539", "0.6271705", "0.6253496...
0.6431293
8
The POST on `/institution` should create an institution
def CW30(YKHO, TUKg): geh0 = YKHO.client.post('/api/bce_institutions/0802145Y', content_type='application/json', headers={'Authorization': 'Bearer token'}, data=qQXR.dumps({'is_institution': True})) YKHO.assertEqual(geh0.status_code, 200) zs78 = qQXR.loads(geh0.data.decode('utf8')) YKHO.assertEqual(zs78...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(IkoO, ZAx8=True):\n YNFJ = OEN9(uai=IkoO, is_institution=ZAx8)\n return YNFJ.save()", "def MhA4(YKHO):\n geh0 = YKHO.client.post(gxEw('action-list'), data=YKHO.data)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n YKHO.assertEqual(geh0.data['name'], YKHO.data['name'])\n Y...
[ "0.6681688", "0.6539136", "0.64875925", "0.6482373", "0.6411193", "0.6297357", "0.59500855", "0.58625144", "0.578303", "0.5740273", "0.56996286", "0.56490153", "0.5545814", "0.55356705", "0.549819", "0.5479565", "0.54430705", "0.5442307", "0.54372895", "0.54182273", "0.538496...
0.6618002
1
The PUT on `/institution` should not update an institution's status if an error accured when deleting the institution
def o0Ge(YKHO, TUKg, Sdbo): Pv5X.create(uai='0802145Z', is_institution=True) MOPg = {'Authorization': 'Bearer token'} geh0 = YKHO.client.put('/api/bce_institutions/0802145Z', content_type='application/json', headers=MOPg, data=qQXR.dumps({'is_institution': False, 'id_esr': 4})) YKHO.assertEqual(Sdbo.cal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YNFJ(YNFJ):\n try:\n G9jH.info(f'Process a request for an institution resource\\nurl: {QePW.url}')\n NArs = dict({'institution_id': YNFJ})\n G9jH.info(f'Parameters: {NArs}')\n if not K13I(NArs):\n G9jH.error(f'valid_institution_params returned false for {NArs}')\n ...
[ "0.61864084", "0.6164646", "0.58117944", "0.55678725", "0.5484426", "0.5433848", "0.53900045", "0.5374685", "0.5373604", "0.5356047", "0.5295021", "0.5220352", "0.5209009", "0.5200172", "0.51999074", "0.5190467", "0.5157771", "0.5155514", "0.51446044", "0.51443547", "0.511867...
0.5944247
2
Overwrite the network's weights with a specified list of tensors or change weights along directions with a step size.
def sNuA(Zxma, _mSQ, TUcM=None, YPaw=None): if TUcM is None: for XP5J, yzQ0 in zip(Zxma.parameters(), _mSQ): XP5J.data.copy_(yzQ0.type(type(XP5J.data))) else: assert YPaw is not None, 'If a direction is specified then step must be specified as well' if len(TUcM) == 2: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNuA(YKHO, _mSQ):\n SqIz = []\n for gEmA in YKHO.layers:\n ThSC = len(gEmA.weights)\n PvFr = _mSQ[:ThSC]\n for yK2S, yzQ0 in zip(gEmA.weights, PvFr):\n SqIz.append((yK2S, yzQ0))\n _mSQ = _mSQ[ThSC:]\n nMvt.batch_set_value(SqIz)", "def L1EB(YKHO, _mSQ):\n YKH...
[ "0.70630175", "0.67701286", "0.6765941", "0.6713401", "0.6688865", "0.6647569", "0.66165936", "0.65347296", "0.6495384", "0.6468586", "0.6456321", "0.63830173", "0.63485736", "0.63249886", "0.6295442", "0.62903076", "0.62822104", "0.62651116", "0.62480175", "0.62394434", "0.6...
0.71305776
0
Produce a direction from 'states' to 'states2'.
def LKUB(wspz, RtE2): return [jlSq - Ty9i for (G1Hx, Ty9i), (Xyq7, jlSq) in zip(wspz.items(), RtE2.items())]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ijuD(Zxma, J0q5, CFqs='states'):\n assert J0q5 is not None\n if CFqs == 'weights':\n yzQ0 = wT46(Zxma)\n xMw6 = wT46(J0q5)\n XSoh = kOvu(yzQ0, xMw6)\n elif CFqs == 'states':\n KCHu = Zxma.state_dict()\n Nqp_ = J0q5.state_dict()\n XSoh = LKUB(KCHu, Nqp_)\n r...
[ "0.60298765", "0.56508666", "0.5566195", "0.5565897", "0.55477893", "0.54129285", "0.5381549", "0.53516096", "0.5290752", "0.5271821", "0.51909465", "0.51732534", "0.51598144", "0.515476", "0.5151006", "0.51224947", "0.5095679", "0.50913215", "0.5063281", "0.50172645", "0.501...
0.56152266
2
Set bias and bn parameters in directions to zero
def Lvv9(TUcM): for Csk6 in TUcM: if Csk6.dim() <= 1: Csk6.fill_(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)", "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)", "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)", "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.wei...
[ "0.77833873", "0.77833873", "0.77833873", "0.7729467", "0.73508996", "0.7334153", "0.7175856", "0.7175856", "0.71022403", "0.7068382", "0.69517934", "0.6918207", "0.6874045", "0.68622303", "0.68622303", "0.68622303", "0.6830006", "0.6819566", "0.6809465", "0.67975795", "0.674...
0.694256
11
Setup a random (normalized) direction with the same dimension as the weights or states.
def c7CH(Zxma, CFqs='weights', PrmE='biasbn', CkYf='filter'): if CFqs == 'weights': _mSQ = wT46(Zxma) XSoh = UK0j(_mSQ) QZg0(XSoh, _mSQ, CkYf, PrmE) elif CFqs == 'states': wspz = Zxma.state_dict() XSoh = wls3(wspz) lx43(XSoh, wspz, CkYf, PrmE) return XSoh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YcLs(YKHO):\n YKHO.mu = 2.0 * oyIN.random.rand(1)[0] - 1.0", "def uVf3(YKHO):\n rVnq = 2 * epAf.pi * tuKI.random()\n P6bq = 2 * tuKI.random() - 1\n Ty9i = epAf.sqrt(1 - P6bq * P6bq) * epAf.cos(rVnq)\n yzQ0 = epAf.sqrt(1 - P6bq * P6bq) * epAf.sin(rVnq)\n YKHO.direction = (P6bq, Ty9i, yzQ0)",...
[ "0.7573059", "0.74795043", "0.7203547", "0.66930014", "0.6545947", "0.6285585", "0.62221056", "0.6202065", "0.6187849", "0.6156173", "0.6156173", "0.61295575", "0.61139953", "0.60598457", "0.6046723", "0.6045034", "0.6041626", "0.6033324", "0.60133344", "0.59864545", "0.59550...
0.6744277
3
Given a json filename, return the corresponding python object.
def c3ht(Ux0P): Aofo = qQXR.load(open(Ux0P, 'r')) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGri(Emd4, Ux0P):\n with open(Hy7s.path.expanduser(Ux0P), encoding='utf-8') as eHNT:\n return qQXR.load(eHNT, object_hook=Ajl8)", "def EBvf(Ux0P):\n with open(Ux0P, 'r') as vNG7:\n HIk3 = vNG7.read()\n jWIJ = qQXR.loads(HIk3)\n return jWIJ", "def MCoo(NqAa):\n object = qQXR...
[ "0.80472356", "0.7941216", "0.793458", "0.783264", "0.7675068", "0.7587168", "0.75325394", "0.74979377", "0.748882", "0.74805737", "0.7463445", "0.74467254", "0.7425693", "0.7413434", "0.7390653", "0.7386579", "0.7386579", "0.7386579", "0.73783886", "0.73633784", "0.73633254"...
0.7294987
26
Fits a MinMaxScaler to development data or applies scaler to OOT data. Also creates an "Average Rank" column representing the average of all scaled column values. This should be applied on Massey ranks to create a single signal.
def qcRq(Slmt, Y5YY=None, xkzz=False): XSj5 = Hy7s.path.dirname(Hy7s.getcwd()) V5XR = rLdf.read_csv('{}/mmml/mmml/feature_list2.csv'.format(XSj5)) JTTI = yy45(V5XR) u9tX = JTTI['scale_cols'] u9tX = list(set([WKvO[:-2] for WKvO in u9tX])) Slmt = Slmt.copy() if Y5YY is None: bo34.info(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BVez(jQ3Z, ZLJ_):\n for fvDH in ZLJ_:\n Kk_C = fvDH + '_scld'\n LyK2 = jQ3Z[fvDH].min()\n g_kY = jQ3Z[fvDH].max()\n jQ3Z[Kk_C] = (jQ3Z[fvDH] - LyK2) / (g_kY - LyK2)", "def NkkI(YKHO, jQ3Z):\n return (jQ3Z - jQ3Z.mean()) / (jQ3Z.max() - jQ3Z.min())", "def Wal2(hkxX):\n b...
[ "0.5770062", "0.56782955", "0.56147903", "0.56083876", "0.55161643", "0.54930794", "0.54681605", "0.54584557", "0.54358935", "0.54310757", "0.5401743", "0.5384266", "0.5370906", "0.5360498", "0.53282046", "0.532685", "0.53093976", "0.5301164", "0.530092", "0.5299703", "0.5293...
0.0
-1
Set the learning rate for the optimizer. The method allows setting individual learning rates for the optimizer parameter groups as well as setting even learning rate for all parameters.
def LruE(YKHO, tspZ: Union[float, List[float]]): YKHO._check_train_ready() QT0b = YKHO.optimizer.param_groups if isinstance(tspZ, (list, tuple)): yj8H = list(tspZ) if len(yj8H) != len(QT0b): raise ValueError(f'Expected lrs length {len(QT0b)}, got {len(yj8H)}') elif isinstance...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVtO(K0do, tspZ):\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ", "def kVtO(K0do, tspZ):\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ", "def e_63(YKHO, K0do, qtWj, qIxc):\n tspZ = qIxc.learning_rate * 0.1 ** (qtWj // 30)\n for Lwm5 in K0do.param_groups:\n Lwm...
[ "0.84381807", "0.84381807", "0.79256344", "0.79106045", "0.79106045", "0.79106045", "0.7835213", "0.783462", "0.78325456", "0.78214085", "0.7805656", "0.77687013", "0.7746446", "0.77453303", "0.77390945", "0.7730638", "0.7725753", "0.77195853", "0.77195853", "0.77195853", "0....
0.0
-1
Get the learning rate from the optimizer. It could be a single value or a list of values in the case of multiple parameter groups.
def gWpO(YKHO) -> uLKX[float, x1iM[float]]: YKHO._check_train_ready() yj8H = [] for Lwm5 in YKHO.optimizer.param_groups: yj8H.append(Lwm5['lr']) if len(yj8H) == 1: return yj8H[0] return yj8H
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, Wc9F):\n tspZ = b0Ix\n for YRbF in range(len(paSp)):\n NXpY = m_03[YRbF] if YRbF < len(m_03) else 1\n if Wc9F >= paSp[YRbF]:\n tspZ = tspZ * NXpY\n if Wc9F == paSp[YRbF]:\n break\n else:\n break\n for Lwm5 in K0do.param_gr...
[ "0.73941463", "0.7334019", "0.7251728", "0.72500265", "0.72344977", "0.71991146", "0.71951616", "0.7191687", "0.7142387", "0.7111884", "0.70479566", "0.699817", "0.69968563", "0.6980459", "0.6967404", "0.6956034", "0.6931315", "0.6905979", "0.6896167", "0.68917185", "0.689171...
0.6898177
18
Make a prediction with the given input. The prediction process consists of the input tensor transferring to the model device, forward pass of the nn_module in eval mode and application of the prediction_transform to the raw prediction output.
def YEmv(YKHO, input): YKHO._check_predict_ready() with ht2j.no_grad(): YKHO.eval() input = qyqG(input, YKHO.device) o3Uj = YKHO.nn_module(input) o3Uj = YKHO.prediction_transform(o3Uj) return o3Uj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXC1(YKHO, input):\n with ht2j.no_grad():\n FRUf = YKHO.preprocess_input(input)\n a0JH, DADh = YKHO.predict_on_batch(FRUf)\n N6Z1 = oyIN.stack((a0JH, DADh), axis=1)\n return N6Z1", "def YEmv(Emd4, input):\n M_NZ = Emd4.get_model()\n print('input=')\n print(input)\n return M...
[ "0.72369206", "0.70280635", "0.69705504", "0.6882179", "0.6841684", "0.6813821", "0.678869", "0.65115666", "0.65115666", "0.65031374", "0.6496032", "0.6488619", "0.6483028", "0.6481794", "0.6461958", "0.64542216", "0.64486", "0.63823557", "0.6380704", "0.63725114", "0.6371604...
0.8179348
0
Test good IP address value but invalid username in the JSON. Verify that the correct exception is generated.
def ejzK(YKHO): qIxc = YKHO.get_args() GPtr = YKHO.create_empty_config_file() GPtr['config'][0]['site']['username'] = '' GPtr['config'][0]['site']['ip_address'] = '172.31.216.100' GPtr['config'][0]['site']['local'] = 'True' GPtr['config'][0]['site']['use_https'] = 'True' AeFH = 'testsuite_cf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dtz_(YKHO):\n YKHO.response = YKHO.client.post('/api/users/', {'user': {'username': '&*@#$', 'email': 'kakecom@gmail.com', 'password': 'irquoa12345678'}}, format='json')\n YKHO.assertEqual(YKHO.response.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertEqual('Invalid Username , it contains invalid ...
[ "0.7006392", "0.6932512", "0.6899381", "0.68273884", "0.67896706", "0.67825305", "0.6685398", "0.6628995", "0.6566174", "0.6500617", "0.64743435", "0.6448112", "0.64479417", "0.6442424", "0.6408166", "0.6395684", "0.6390587", "0.63865155", "0.63843244", "0.63840735", "0.63690...
0.0
-1
Pad the list of word indexes into 2D LongTensor
def STgu(Wc9F): u54L = [len(yAmx) for yAmx in Wc9F] return (gc7n([ht2j.LongTensor(KCHu) for KCHu in Wc9F], batch_first=True), ht2j.LongTensor(u54L))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fn7E(vhpA: torch.FloatTensor, Yisj: torch.LongTensor, r85G: int, Ytdj: int, KkRQ: int, fLs4: List[List[List[int]]], lePx: torch.LongTensor=None):\n assert vhpA.shape[:2] == Yisj.shape[:2]\n Ep8u = vhpA.size(0)\n j6I9 = vhpA.size(1)\n obHv = vhpA.size(-1)\n lZRp = ht2j.zeros(Ep8u, r85G, Ytdj, KkR...
[ "0.6416445", "0.6384599", "0.6330144", "0.6329812", "0.62912333", "0.6268383", "0.6264366", "0.6256124", "0.61932456", "0.61226124", "0.61226124", "0.61164695", "0.6044575", "0.6039593", "0.6025685", "0.60167325", "0.60122204", "0.59547096", "0.59527856", "0.59167624", "0.591...
0.6331113
2
Generate string from datetime object.
def Zb98(ppPa): return ppPa.strftime('%Y-%m-%d %H:%M:%S')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def hLAQ(YEnM):\n return YEnM.strftime('%Y-%m-%d %H:%M:%S')", "def QK8D(pdbK):\n if pdbK is None:\n return 'None'\n return ...
[ "0.7885655", "0.7885655", "0.76614475", "0.7659508", "0.75692374", "0.7458083", "0.7418672", "0.72611195", "0.7260455", "0.72175515", "0.72057724", "0.7152438", "0.7138391", "0.70583403", "0.7017343", "0.70044017", "0.69785815", "0.69494975", "0.69296825", "0.69287217", "0.69...
0.0
-1
Merge nested right dict into left nested dict recursively.
def cyBQ(yLHq, RKYb, jRxN=True): if not isinstance(yLHq, dict) or not isinstance(RKYb, dict): if jRxN: return RKYb else: return yLHq for H5ew, BWXx in RKYb.items(): if H5ew not in yLHq: yLHq[H5ew] = RKYb[H5ew] else: yLHq[H5ew] = cyB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p4Qt(YKHO):\n tMxp = {'key': {'deep_key_1': 'original_value_1', 'deep_key_2': 'original_value_2'}}\n LxWn = {'key': {'deep_key_2': 'new_value_2', 'deep_key_3': 'new_value_3'}}\n Aofo = p0Kn(tMxp, LxWn)\n assert tMxp == {'key': {'deep_key_1': 'original_value_1', 'deep_key_2': 'original_value_2'}}\n ...
[ "0.72850406", "0.70178735", "0.6922518", "0.6841134", "0.68263894", "0.68198365", "0.6808425", "0.6798862", "0.67184794", "0.6704432", "0.66804326", "0.6653708", "0.6621682", "0.6607646", "0.65745974", "0.6569284", "0.65582377", "0.652749", "0.65273535", "0.64916474", "0.6491...
0.6938452
2
Returns True if there are duplicate in list, false otherwise
def xscp(list): jth9 = list[:] jth9.sort() for ZfUD in range(len(list) - 1): if jth9[ZfUD] == jth9[ZfUD + 1]: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xscp(list):\n for YRbF in list:\n if list.count(YRbF) > 1:\n return True\n else:\n return False", "def xscp(aPd6):\n kcwm = []\n for tTpl in aPd6:\n if tTpl in kcwm:\n return True\n kcwm.append(tTpl)\n return False", "def xscp(yv6U):\...
[ "0.84518766", "0.82295084", "0.8025166", "0.8007515", "0.7981002", "0.79309684", "0.7747296", "0.7730481", "0.771165", "0.75825065", "0.74685645", "0.7462053", "0.7460879", "0.7451206", "0.7368277", "0.7247897", "0.7171966", "0.7130865", "0.7117366", "0.7059141", "0.7022133",...
0.80837643
2
Reduces a list of genotypes to distinct genotypes given ploidy
def CH0U(vVzx, QDIC): if len(QDIC) < 2: return QDIC else: cNxS = [] for Oa1e in QDIC: KCHu = '' for YRbF in Ni9Y(len(vVzx)): KCHu += ''.join(sorted(Oa1e[0:vVzx[YRbF]])) Oa1e = Oa1e[vVzx[YRbF]:] if KCHu not in cNxS: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jO1j(pNXf):\n return [''.join(ap9_) for ap9_ in V4qJ('ACGT-', pNXf)]", "def h2UH(vC9B):\n return set([ZfUD.replace('B-', '').replace('I-', '') for ZfUD in vC9B])", "def dDv2(YKHO, Zck9):\n aUlg = list(Zck9)\n SUko = []\n while True:\n xFUr = []\n if len(aUlg) == 0:\n ...
[ "0.6803628", "0.55451757", "0.5401281", "0.53964216", "0.5384058", "0.53527087", "0.5346865", "0.52951", "0.52865404", "0.5263895", "0.5255671", "0.5248324", "0.52449715", "0.523073", "0.5202335", "0.5185486", "0.51750034", "0.5166553", "0.51247567", "0.5120886", "0.5101648",...
0.7633764
0
Get account asset information.
async def get_user_account(YKHO): j8eK = '/v3/spot/assets' nyyK, P1dF = await YKHO.request('GET', j8eK, auth=True) return (nyyK, P1dF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RPW3(YKHO):\n if YKHO._session:\n dixj = YKHO._session.get_asset_details()\n if dixj.get('success'):\n return dixj.get('assetDetail', {})\n return {}", "def JZyE(YKHO):\n return YKHO._AssetInfo", "def oxv8(YKHO, uY1h):\n geh0 = YKHO._client.get('workbenches/assets/%(ass...
[ "0.7429606", "0.7401501", "0.7243802", "0.722088", "0.71087193", "0.7101562", "0.6901645", "0.6899573", "0.68298274", "0.6810045", "0.67111224", "0.6535242", "0.6509664", "0.6497271", "0.6461157", "0.64144397", "0.63877004", "0.638052", "0.63755345", "0.63709587", "0.63575983...
0.7496198
0
check if the stack is empty
def A4KR(YKHO): if YKHO.top == -1: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return YKHO.stack == []", "def lsmZ(YKHO) -> bool:\n if len(YKHO.stack) == 0:\n return True\n else:\n retu...
[ "0.899054", "0.89378405", "0.8896436", "0.88488156", "0.8803647", "0.8801893", "0.8801893", "0.8755084", "0.8730939", "0.86257416", "0.8616184", "0.8564391", "0.8551106", "0.84926367", "0.84474415", "0.84409744", "0.84366745", "0.84080905", "0.8403395", "0.8403395", "0.839545...
0.7673615
35
Main method to convert infix expression to postfix expression
def XtMr(YKHO, kLQb): try: for YRbF in kLQb: if YKHO.is_operand(YRbF): YKHO.postfix.append(YRbF) elif YRbF is '(': YKHO.push('(') elif YRbF is ')': while not YKHO.isEmpty() and YKHO.peek() is not '(': YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XtMr(n_L_):\n \"\"\"Input argument: a string containing an infix expression where tokens are \n space separated. Tokens are either operators + - * / ** << >> or numbers (integers or floats)\n Returns a String containing a postfix expression \"\"\"\n if n_L_ is None:\n raise ValueError\n ...
[ "0.83583", "0.8116467", "0.8104854", "0.8094464", "0.80649686", "0.80585086", "0.8023016", "0.7784465", "0.7780311", "0.7726206", "0.7704624", "0.76936716", "0.7660222", "0.7614875", "0.75796753", "0.75611275", "0.7486621", "0.74753785", "0.7403091", "0.73770356", "0.736011",...
0.8077742
4
Returns a string representation of this Solver object. String representation of this Solver object.
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n EIOD = 'Variables:\\n'\n for Es0b in YKHO.variables:\n EIOD += ' {}\\n'.format(str(Es0b))\n EIOD += '\\nConstraints:\\n'\n for oVM8 in YKHO.constraints:\n EIOD += ' {}\\n'.format(str(oVM8))\n return EIOD", "def Sa1R(YKHO):\n if not YKHO.coeff_map:\n ...
[ "0.73139703", "0.72417116", "0.7171263", "0.7147165", "0.69939476", "0.6970453", "0.69356996", "0.69356996", "0.69356996", "0.69356996", "0.69356996", "0.69076264", "0.68720555", "0.68416953", "0.68148965", "0.6810901", "0.68090653", "0.68089163", "0.6751696", "0.6708536", "0...
0.0
-1
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL.
def k66M(YKHO): SR0I = _9bG.objects.all().order_by('id') as9g = YKHO.request.query_params.get('is_class', None) wgSv = YKHO.request.query_params.get('is_click', None) if as9g is not None and wgSv is not None: SR0I = SR0I.filter(is_class=as9g, is_click=wgSv).order_by('id') elif wgSv is None a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)", "def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:...
[ "0.59691316", "0.59666115", "0.5933636", "0.5911969", "0.59060764", "0.5664847", "0.5654243", "0.5545357", "0.55417883", "0.55104214", "0.55045646", "0.5494846", "0.54883754", "0.5484133", "0.547296", "0.54719406", "0.54517895", "0.54165924", "0.54078025", "0.53811634", "0.53...
0.0
-1
Initializes a bank account.
def FIMM(YKHO, GeWQ: str, pl8n: str, l6Dm: float, rNpb: BudgetManager): YKHO.bank_account_no = GeWQ YKHO.bank_name = pl8n YKHO.bank_balance = l6Dm YKHO.transactions = [] YKHO.budget_manager = rNpb YKHO._locked = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.__account_number = YKHO.__generate_acct_number()\n YKHO.__account_pin = YKHO.__generate_pin()\n YKHO.card_number = fExc.BIN + YKHO.__account_number + YKHO.__calculate_checksum(fExc.BIN + YKHO.__account_number)\n YKHO.__balance = 0\n YKHO.__display_login_info()", "def FIMM(YK...
[ "0.74330753", "0.7418163", "0.71338934", "0.68308854", "0.6822508", "0.6773144", "0.66065884", "0.6591546", "0.6561337", "0.6539208", "0.6516019", "0.6513716", "0.64234877", "0.64219314", "0.6420932", "0.63918215", "0.6345676", "0.6317964", "0.6303646", "0.6286144", "0.628228...
0.69641596
3
Returns a list of transactions for the given budget category.
def rib8(YKHO, Ghho: BudgetCategory) -> list: return [Kh6j for Kh6j in YKHO.transactions if Kh6j.budget_category == Ghho]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tpyA(id, yKcO=None, Os4s=None):\n gQVK = None\n if yKcO is not None and Os4s is not None:\n gQVK = GGod().execute('SELECT * FROM transactions WHERE category_id = ? AND days >= ? AND days <= ? ORDER BY days ASC', (id, yKcO, Os4s)).fetchall()\n elif yKcO is None and Os4s is not None:\n gQV...
[ "0.6806576", "0.6658334", "0.65594226", "0.6545171", "0.6276733", "0.6153951", "0.6099856", "0.60981506", "0.6073485", "0.56966245", "0.56923014", "0.56610286", "0.56480473", "0.5619715", "0.56023616", "0.55917746", "0.55726683", "0.54196036", "0.5411472", "0.53702503", "0.53...
0.90207845
0
Returns a list of budgets.
def srkE(YKHO) -> list: return YKHO.budget_manager.get_budgets()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def srkE(YKHO) -> list:\n return list(YKHO.budgets.values())", "def eAbY(YKHO) -> None:\n x30U.prompt_view_budgets()\n for Jtpl in YKHO.user.budget_manager:\n print(f'{Jtpl}\\n')", "def uWf3(Emd4, wzkt):\n D8bS = {}\n tepw = Emd4.objects_visible.filter(is_distributed_evenly=True)\n tep...
[ "0.85214865", "0.7412498", "0.64458525", "0.63256943", "0.62178475", "0.61472815", "0.60853624", "0.6020937", "0.6002316", "0.5954649", "0.59180295", "0.5860765", "0.58439565", "0.57929516", "0.57694215", "0.57481736", "0.5706999", "0.56716955", "0.562081", "0.55899936", "0.5...
0.8720392
0
Creates and returns a test bank account.
def TVa7() -> fExc: rNpb = dEvR.load_test_budget_manager() return rHyW('123123', 'HSBC', 1000, rNpb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UCcY():\n return fExc('Test User', 1000.0)", "def ZrNc():\n b3He = hbgH.objects.create(name='R-Bank')\n KRiX = s9HI.objects.create(name='Tre Belarus', country='Belarus')\n ZrNc = tHSi.objects.create(iban_number='TEEdddddddfs', swift_code='tertrefdsf', bank=b3He, company=KRiX)\n return ZrNc", ...
[ "0.8158701", "0.77940786", "0.7747473", "0.76212186", "0.7560084", "0.7495021", "0.7118138", "0.7009641", "0.6978692", "0.6969263", "0.6830469", "0.67025876", "0.6648418", "0.6598755", "0.6555226", "0.6548302", "0.6513743", "0.6461734", "0.63989663", "0.63898635", "0.6336258"...
0.7865632
1