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
Returns a ProjectCollection with objects which match the xpath. xp is the xpath which is used for the search (either an Expression object or a string).
def HeAU(fsgT, **B2fa): pmON = '/search/project' if 'schema' not in B2fa: B2fa['schema'] = rwpw.SCHEMA ynhF = {'collection': rwpw, 'project': KYed} return Go4X(pmON, fsgT, ynhF, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UqER(u8IA):\n E_qD = jJDz().connect()\n return E_qD.find_elements_by_xpath(u8IA)", "def FW4f(fsgT, **B2fa):\n pmON = '/search/package'\n if 'schema' not in B2fa:\n B2fa['schema'] = LBc9.SCHEMA\n ynhF = {'collection': LBc9, 'package': ij4P}\n return Go4X(pmON, fsgT, ynhF, **B2fa)", ...
[ "0.5264987", "0.5037761", "0.5019994", "0.49843824", "0.49831843", "0.49377376", "0.4897356", "0.48519707", "0.4850672", "0.48110655", "0.47897774", "0.4785051", "0.4735383", "0.4722277", "0.47054696", "0.45902702", "0.45883238", "0.4580754", "0.45582223", "0.45063794", "0.44...
0.6296943
0
This will set the root directory of the data folder. This is likely the `utahforge` Google Drive folder that was shared with you
def xd_Z(pmON): JGPV.DATA_DIRECTORY = pmON return JGPV.DATA_DIRECTORY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JwSR(pmON):\n global dataRoot\n F0j1 = Hy7s.path.realpath(pmON)", "def xe5l():\n return GkAb(wk5E.config['USER_DIR']) / 'data'", "def t5la():\n global DATA_HOME\n nuok = ''", "def Jify(fdHB):\n global _USER_PROJ_DATA\n global _VALIDATED_PROJ_DATA\n SPoW = fdHB\n tw_v = None", ...
[ "0.7542222", "0.7123245", "0.700307", "0.6985151", "0.6983758", "0.69206136", "0.68818986", "0.6850674", "0.68334407", "0.6821367", "0.6817746", "0.67900044", "0.6762616", "0.67504424", "0.67495114", "0.6730406", "0.6722486", "0.67182124", "0.6675456", "0.66745245", "0.666685...
0.6950269
5
Returns the root directory for the data files
def fq70(): return JGPV.DATA_DIRECTORY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uRIH(YKHO):\n return YKHO.get_raw('data_directory')", "def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data')", "def h_xa():\n return viqz.datadir", "def lCFC():\n return '../data/'", "def wR32():\n PSbX = './MedData/'\n if not Hy7s.path.isdir(PSbX):\n...
[ "0.8143534", "0.8008033", "0.78029495", "0.7800692", "0.7797279", "0.7785489", "0.77839833", "0.776535", "0.7732685", "0.77152073", "0.77124554", "0.7694146", "0.7694146", "0.7668176", "0.7665909", "0.7644671", "0.7635647", "0.7619169", "0.7610469", "0.7602355", "0.75967616",...
0.71793807
41
Calculates the ratio between the highest resolution image and lowest resolution image. Returns the ratio as a tuple (Xratio, Yratio).
def _19n(mX4p): IQC9 = oyIN.asarray(mX4p[0]) bLd1 = oyIN.asarray(mX4p[-1]) Y6jL, ObFd = IQC9 / bLd1 return (Y6jL, ObFd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def waMo(lNai: Tuple[int, int], JRC0: float, LChT: float, IA3S: float, dCLF: float):\n xG2C = lNai[1]\n KtOa = lNai[0]\n q_cO = IA3S - JRC0\n Q_eH = dCLF - LChT\n WDBs = xG2C / q_cO\n E9vb = KtOa / Q_eH\n if not oyIN.isclose(WDBs, E9vb):\n G9jH.info(f'Resolution in x and y axes differ: ...
[ "0.72195196", "0.71032196", "0.6577099", "0.64753616", "0.6439772", "0.64074016", "0.6393361", "0.6141478", "0.6115658", "0.6099829", "0.6093291", "0.60600996", "0.6044847", "0.5948316", "0.59124255", "0.5852547", "0.57684225", "0.5760546", "0.57544696", "0.5742023", "0.57306...
0.74833775
0
[summary] Generate setup for first run and check if the directory and files are created.
def HR57(): tlma('.', True, extra_context={'number_of_iterations': 2, 'project_name': 'first_run_test', 'logging_frequency': 1, 'enable_cuda': False}) U456 = GkAb('first_run_test') assert U456.is_dir() assert (U456 / 'facades' / 'train' / 'A').is_dir() assert (U456 / 'facades' / 'train' / 'B').is_di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eCGt():\n print('...')\n for AGPF in [yt7q, uU6S, fLyE]:\n Hy7s.makedirs(AGPF, exist_ok=True)", "def eCGt(PJWX=True):\n global _SETUP_DONE\n if L4cA:\n return\n RekY(verbose=False)\n DtIG()\n L4cA = True", "def uQlB(YKHO):\n YKHO.logDesc('Pre Run Setup')\n YKHO.veri...
[ "0.76154", "0.7207719", "0.712347", "0.7008008", "0.68532056", "0.68011016", "0.6778339", "0.67208", "0.6719176", "0.66747105", "0.666325", "0.66376376", "0.66376376", "0.66376376", "0.66376376", "0.66376376", "0.66376376", "0.66376376", "0.66376376", "0.66376376", "0.6637637...
0.6865181
4
Converting Time Stamp to Readable Format
def HjKB(G91o): C6wh, HVCe = divmod(int(G91o), 1000) O66n, C6wh = divmod(C6wh, 60) Wave, O66n = divmod(O66n, 60) Sm0u, Wave = divmod(Wave, 24) jbXL = (str(Sm0u) + ' Days, ' if Sm0u else '') + (str(Wave) + ' Hours, ' if Wave else '') + (str(O66n) + ' Minutes, ' if O66n else '') + (str(C6wh) + ' Secon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def netS(VwNh):\n BWXx = qcWV.fromtimestamp(VwNh)\n return BWXx.strftime('%Y-%m-%d %H:%M:%S')", "def XrpE(S0TS):\n G9jH.debug('in_time = %s', S0TS)\n yvT9 = S0TS.strftime('%a, %d %b %Y %H:%M:%S %z+0000')\n G9jH.debug('out = %s, out')\n return yvT9", "def xOP3(a1PO):\n if a1PO is None:\n ...
[ "0.71227694", "0.6895622", "0.6891608", "0.6883996", "0.687463", "0.6826833", "0.67968166", "0.67659545", "0.6745593", "0.67369527", "0.66802406", "0.66692656", "0.66562194", "0.66522354", "0.6646907", "0.6633156", "0.6605878", "0.6591294", "0.65409946", "0.65310043", "0.6524...
0.0
-1
Returns leftmost atom in p.
def Ux9C(YKHO, XP5J): if XP5J.type == YKHO.PT.atomic: return XP5J.v1 else: return YKHO.get_leftmost_atom(XP5J.v1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LFlW(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._left)", "def LFlW(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx.left)", "def LFlW(YKHO, XP5J):\n Q6kx = YKHO._validate_position(XP5J)\n return YKHO._make_position(Q6kx.left)",...
[ "0.7379185", "0.73784184", "0.73633677", "0.73547095", "0.73547095", "0.7014217", "0.6914837", "0.68129015", "0.68106556", "0.6807587", "0.67974186", "0.67950267", "0.67447543", "0.67447543", "0.6734669", "0.6727005", "0.6716256", "0.6640088", "0.6608549", "0.65990144", "0.65...
0.8858748
0
Tests that the barracks helper cannot be built without api_key argument
def uIjO(): try: I68A(None, CNHY) assert False except ValueError: assert True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cOap(nNXP):\n with trZe.raises(fh46.APIKeyError):\n cMOq = fh46.TopStoriesAPI()", "def WGnV():\n B0gN = I68A(tGWO)\n assert B0gN.get_api_key() == tGWO\n assert B0gN.get_base_url() == CNHY\n assert B0gN.update_checker_helper\n assert B0gN.update_checker_helper._apiKey == tGWO\n ass...
[ "0.7188455", "0.7150424", "0.6868079", "0.6843092", "0.68007284", "0.6641392", "0.65708363", "0.6499072", "0.64861906", "0.64667827", "0.6463625", "0.6444715", "0.6391974", "0.6325179", "0.6301825", "0.62591594", "0.61920804", "0.6184099", "0.6144185", "0.6124961", "0.6124961...
0.8481922
0
Finalize all values that are the only choice for a unit. Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box.
def rIvV(hkxX): for PXGI in dzni: for Ko6S in '123456789': S5Zo = [FlUN for FlUN in PXGI if Ko6S in hkxX[FlUN]] if len(S5Zo) == 1: hkxX[S5Zo[0]] = Ko6S return hkxX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIvV(hkxX):\n for PXGI in dzni:\n oaZA = list(PXGI)\n for FlUN in PXGI:\n oaZA.remove(FlUN)\n Bk8B = []\n for Fg_i in oaZA:\n Bk8B += hkxX[Fg_i]\n Bk8B = list(set(Bk8B))\n for BWXx in hkxX[FlUN]:\n if BWXx not...
[ "0.61507905", "0.5738942", "0.5613085", "0.5567472", "0.553151", "0.55125004", "0.5460724", "0.54593384", "0.54504025", "0.54492325", "0.54200757", "0.54182386", "0.53875345", "0.5362483", "0.53121895", "0.52773565", "0.52573943", "0.52477384", "0.52414405", "0.52017206", "0....
0.52565664
17
Return a threadspecific storage dictionary.
def W4Ha(YKHO, Tl1c=None): if Tl1c is None: Tl1c = MgeT.get_ident() try: return L0zA._tss[Tl1c] except KeyError: LJVj = L0zA._tss[Tl1c] = {} return LJVj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SSkn(YKHO):\n return YKHO._sharedDict", "def v9KJ(YKHO) -> cuzp[str, ImMB]:\n return YKHO.data.dict()", "def K0y7(YKHO):\n return dict([(G1Hx, getattr(YKHO, G1Hx)) for G1Hx in cFqH.STORED_KEYS])", "def lvCQ(YKHO):\n return YKHO.storage", "def DOSA():\n\n def ProQ(YKHO):\n WY3t = Y...
[ "0.6215964", "0.61273575", "0.6037959", "0.6016725", "0.5994203", "0.5977398", "0.5924003", "0.58914196", "0.58765364", "0.58751744", "0.57997715", "0.57680607", "0.568655", "0.563845", "0.56246895", "0.5611149", "0.55896187", "0.5578572", "0.5547232", "0.55118096", "0.548565...
0.69267035
0
Filter ``dictionary`` by its values using ``function``.
def BoNY(m2Zb, cmPJ): return {G1Hx: Ty9i for G1Hx, Ty9i in cmPJ.items() if m2Zb(Ty9i)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XbYF(cmPJ, nvEb):\n return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in cmPJ.items() if nvEb(G1Hx, Ty9i)))", "def KnIY(JfyU, uxij):\n return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in uxij.items() if JfyU(G1Hx)))", "def filter(YKHO, JfyU):\n YKHO._sets.filter(key=JfyU)", "def XbYF(VIkw, ZHfW):\n if VIkw is...
[ "0.70143163", "0.69534475", "0.6837467", "0.6674849", "0.64855725", "0.64559966", "0.6397897", "0.6368482", "0.63502276", "0.623713", "0.6150504", "0.61269593", "0.61043084", "0.60623217", "0.6016967", "0.59909564", "0.5987634", "0.596273", "0.5946462", "0.59055525", "0.58641...
0.86716884
0
Reading a environment variable as text.
def nBmD(H5ew: str) -> str: return str(Hy7s.environ.get(H5ew) or '').strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E6J6(H5ew: str) -> str:\n BWXx = Hy7s.getenv(H5ew)\n assert isinstance(BWXx, str), f'the {H5ew} environment variable must be set and a string, value={BWXx!r}'\n return BWXx", "def AAKL(YKHO):\n pass", "def tv8Y(YqMg, WmM4=''):\n return Hy7s.environ.get(YqMg, WmM4)", "def TYk2(XuY2: str) ->...
[ "0.64903164", "0.61682165", "0.6142988", "0.60816246", "0.6054548", "0.60263807", "0.59471285", "0.59415185", "0.5887559", "0.58568513", "0.5842627", "0.5826633", "0.5815658", "0.5800363", "0.5800218", "0.57895327", "0.5763488", "0.57547617", "0.5748358", "0.57209665", "0.566...
0.67881423
0
Reading a environment variable as binary.
def UYdb(H5ew: str) -> bool: return nBmD(H5ew).upper() in ('TRUE', 'ON', 'YES')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sEAN(H5ew, WmM4=None, jeGQ=False):\n try:\n BWXx = Hy7s.environ[H5ew]\n return jZ4I.literal_eval(BWXx)\n except (SyntaxError, ValueError):\n return BWXx\n except KeyError:\n if WmM4 or not jeGQ:\n return WmM4\n raise rqaQ(\"Missing required environment var...
[ "0.58533394", "0.5844853", "0.57677346", "0.57160974", "0.5641666", "0.5635812", "0.56246585", "0.5559182", "0.5552668", "0.5509054", "0.5503753", "0.54874474", "0.54418606", "0.54234785", "0.5408707", "0.5379324", "0.53728795", "0.5350132", "0.5333961", "0.5308252", "0.52976...
0.47837228
81
Reading a environment variable as list, source line should be divided by commas.
def ut83(H5ew: str) -> list: return list(filter(None, map(str.strip, nBmD(H5ew).split(','))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edtm(mWFP, WmM4=_mcN, g8rx=','):\n BWXx = Hy7s.environ.get(mWFP)\n if BWXx is None:\n if WmM4 is _mcN:\n return []\n else:\n return WmM4\n return [Ty9i.strip() for Ty9i in BWXx.split(g8rx) if Ty9i.strip()]", "def pQCv(H5ew, *WmM4, **B2fa):\n g8rx = B2fa.get('se...
[ "0.71439314", "0.67040265", "0.61332095", "0.60854524", "0.60168445", "0.5877769", "0.58456564", "0.57908124", "0.5651809", "0.5635019", "0.5613625", "0.56000316", "0.554496", "0.5539179", "0.5369789", "0.53643876", "0.53479964", "0.5345841", "0.5324846", "0.52787125", "0.527...
0.73379016
0
Testing that nonconsecutive slices are allowed.
def UFHm(HNEm, gEPY, lsX7, b4rG): J_Es = gEPY(KVHS.format(lsX7)) jbn3 = bW7P(b4rG, tree=J_Es) jbn3.run() HNEm(jbn3, [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iHnI(HNEm, gEPY, lsX7, b4rG):\n J_Es = gEPY(KVHS.format(lsX7))\n jbn3 = bW7P(b4rG, tree=J_Es)\n jbn3.run()\n HNEm(jbn3, [MzE1])", "def PlUQ(HNEm, gEPY, lsX7, b4rG):\n J_Es = gEPY(KVHS.format(lsX7))\n jbn3 = bW7P(b4rG, tree=J_Es)\n jbn3.run()\n HNEm(jbn3, [MzE1, MzE1])", "def C1yV(KC...
[ "0.7345154", "0.7249012", "0.6932884", "0.6407439", "0.63771796", "0.63202316", "0.62831414", "0.6248222", "0.62466073", "0.6198403", "0.61956537", "0.6193969", "0.61901194", "0.6171453", "0.60545284", "0.6024803", "0.60172975", "0.60140014", "0.5984232", "0.59660274", "0.595...
0.6957985
2
Return a filename from file obj or a path. If given file, the asumption is that the filename is within the value of its `name` attribute. If given a `Path`, assumes it is a path to an actual file, not a directory. If given an unnamed object, this returns None.
def gQmc(Emd4, O_1m: Union[BinaryIO, Path]) -> h8nf[str]: if Emd4._is_unnamed_or_directory(O_1m): return None if isinstance(O_1m, GkAb): return O_1m.name else: Ux0P = GkAb(O_1m.name).name return Ux0P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PgHl(object, sx1R=None):\n if sx1R is None:\n sx1R = fQjr(object) or bEPt(object)\n return Hy7s.path.normcase(Hy7s.path.abspath(sx1R))", "def ci5Q(Vg8d: dict) -> h8nf[str]:\n if 'name' in Vg8d and Vg8d['name']:\n return Vg8d['name']\n for Za6K in Vg8d['access_methods']:\n bD7...
[ "0.6543205", "0.65163434", "0.64702183", "0.6166343", "0.6082145", "0.60737973", "0.60737973", "0.6067047", "0.6064387", "0.6030024", "0.6028483", "0.60068804", "0.5997551", "0.59268546", "0.5924116", "0.59208626", "0.5917195", "0.59133685", "0.58956224", "0.58722764", "0.586...
0.7912477
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, WdBw): 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
x is the training data tensor (no embedding) returns the mask to use for negating the padding effect on the attention add this mask before taking the softmax!
def TaYf(WKvO): ZHfW = ht2j.zeros(len(WKvO), len(WKvO[0])) for YRbF in range(len(WKvO)): try: d6pt = oyIN.where(WKvO[YRbF] == 1)[0][0] ZHfW[YRbF][d6pt:] = -oyIN.inf except: pass return ZHfW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TaYf(C3ST, WKvO):\n GPtr = C3ST.config\n qV0r = C3ST.inputs['input_mask']\n VGsW = C3ST.builder.customOp(opName='AttentionMask', opVersion=1, domain='ai.graphcore', inputs=[qV0r, WKvO], attributes={'dataType': C3ST.config.popart_dtype})[0]\n VGsW = C3ST.detach(VGsW)\n return VGsW", "def mTPO(W...
[ "0.7421151", "0.7217545", "0.7167106", "0.7079211", "0.6706677", "0.6682437", "0.66159326", "0.6599417", "0.65964437", "0.65885895", "0.6551673", "0.6500141", "0.6487599", "0.6473447", "0.6453691", "0.64491236", "0.640918", "0.6409067", "0.6409067", "0.63933337", "0.63802826"...
0.7250042
1
split Train and Val
def ES7b(mSqg, ugUs=0.8, gXgy='/usr/', ErbH=False): Oewq = [] qz1X = [] tk5Y = oAb3.Path(mSqg) OXK7 = tk5Y.glob('*') for vypL in OXK7: MVVZ = list(map(str, list(vypL.glob('*')))) oyIN.random.shuffle(MVVZ) u54L = len(MVVZ) Oewq.extend(MVVZ[:int(ugUs * u54L)]) q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h5v_(YKHO):\n or8S = oyIN.arange(YKHO.num_data)\n oyIN.random.shuffle(or8S)\n XTsY = int(YKHO.ratio * YKHO.num_data)\n a2Z0 = int(YKHO.dev_ratio * YKHO.num_data)\n YKHO.num_train = YKHO.num_data - XTsY\n YKHO.val_data = YKHO.data[or8S[:XTsY]]\n YKHO.val_label = YKHO.label[or8S[:XTsY]]\n ...
[ "0.77425194", "0.7551636", "0.73735857", "0.72925365", "0.7008135", "0.6984488", "0.6949306", "0.6883564", "0.68748647", "0.67738163", "0.6678159", "0.66354245", "0.66354245", "0.6626996", "0.66244847", "0.6595214", "0.65646714", "0.6555515", "0.651365", "0.651329", "0.646571...
0.0
-1
Test two noise models are not equal
def uBun(YKHO): P1dF = q_RB([['X', 1]]) ox54 = sJ4G() ox54.add_all_qubit_quantum_error(P1dF, ['u3'], False) HqmB = sJ4G(basis_gates=['u3', 'cx']) HqmB.add_all_qubit_quantum_error(P1dF, ['u3'], False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nk4S(YKHO):\n FSgf = [[0.9, 0.1], [0.5, 0.5]]\n xsYf = q_RB([['X', 1]], standard_gates=False)\n uEHG = q_RB([['X', 1]], standard_gates=True)\n ox54 = sJ4G()\n ox54.add_all_qubit_quantum_error(xsYf, ['u3'], False)\n ox54.add_quantum_error(xsYf, ['u3'], [2], False)\n ox54.add_nonlocal_quantu...
[ "0.820037", "0.69289684", "0.6738332", "0.66467637", "0.6599596", "0.65457606", "0.65447915", "0.6543903", "0.6452476", "0.64383215", "0.64159083", "0.638408", "0.6375067", "0.6360007", "0.63317573", "0.62647396", "0.626305", "0.62161314", "0.6211834", "0.6180281", "0.615478"...
0.8125664
1
Hash plaintext ``password`` using the ``password_hash`` specified in the constructor.
def qzFd(YKHO, jTXt): vhgk = YKHO.password_crypt_context.encrypt(jTXt) return vhgk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password = jf1V.encrypt(jTXt)", "def L4rx(YKHO, jTXt):\n NTfD = B8ni.gensalt()\n YKHO.password_hash = B8ni.hashpw(jTXt.encode(), NTfD)", "def qzFd(YKHO):\n YKHO.__password = YKHO.str_to_hash(YKHO.__password...
[ "0.80770516", "0.7985083", "0.7809836", "0.78066474", "0.76533467", "0.7524308", "0.7405602", "0.7384351", "0.7284495", "0.7262829", "0.720181", "0.7125376", "0.71128464", "0.7088065", "0.70239127", "0.6987111", "0.69834787", "0.69761825", "0.6966714", "0.6963797", "0.6942130...
0.7933982
2
Verify plaintext ``password`` against ``hashed password``.
def sNjs(YKHO, jTXt, vhgk): if isinstance(vhgk, YKHO.user_manager.db_manager.UserClass): print('Deprecation warning: verify_password(password, user) has been changed to: verify_password(password, password_hash). The user param will be deprecated. Please change your call with verify_password(password, user) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k0jf(jTXt, kg40):\n return N7bY.verify(jTXt, kg40)", "def yHOQ(jTXt, kg40):\n return NByB.verify(jTXt, kg40)", "def EvfH(kg40, jTXt):\n return z8jj(kg40, jTXt)", "def sNjs(M56W, kg40):\n return Fm8B.pwd_context.verify(M56W, kg40)", "def pcP9(jTXt: str, Nzyw: str) -> bool:\n return jf1V.v...
[ "0.8334267", "0.81941295", "0.8188339", "0.8055229", "0.80275786", "0.799583", "0.7938551", "0.7932387", "0.79291874", "0.7900916", "0.78792185", "0.78108615", "0.77867365", "0.7760918", "0.77177227", "0.766537", "0.7652974", "0.7648142", "0.7648142", "0.7648142", "0.7648142"...
0.7072096
46
Creates one hot vector of n classes with "index" class
def HTA3(d6pt, exwG): WKvO = oyIN.zeros(exwG) WKvO[d6pt] = 1 return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aFAW(d6pt):\n AdYp = 2\n aFAW = oyIN.zeros(AdYp)\n aFAW[d6pt] = 1.0\n return aFAW", "def UPru(nPrm, Ybg9):\n x6A0 = oyIN.array(nPrm).reshape(-1)\n return oyIN.eye(Ybg9)[x6A0]", "def UPru(nPrm, Ybg9):\n x6A0 = oyIN.array(nPrm).reshape(-1)\n return oyIN.eye(Ybg9)[x6A0]", "def UPru(n...
[ "0.8317261", "0.81406474", "0.81406474", "0.81406474", "0.81406474", "0.8102245", "0.80313605", "0.80136204", "0.8009317", "0.79900396", "0.7881947", "0.77704865", "0.7754152", "0.7703118", "0.765413", "0.7646331", "0.7600033", "0.74995023", "0.74995023", "0.7410096", "0.7407...
0.83001465
1
Construct a layernorm module in the TF style (epsilon inside the square root).
def FIMM(YKHO, wjbX, SGf8=1e-12): super().__init__() YKHO.weight = U78l.Parameter(ht2j.ones(wjbX)) YKHO.bias = U78l.Parameter(ht2j.zeros(wjbX)) YKHO.variance_epsilon = SGf8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D__v(uMfm, lGE9, ZylS, SGf8, IBR4, KMvS, nMvt):\n eHNT = lambda LVAh, a1PO: KMvS * LVAh * (1 - LVAh / nMvt)\n fuBA = _o7n(uMfm, lGE9, ZylS, SGf8, eHNT, IBR4)\n return fuBA", "def V0YA(uMfm, lGE9, ZylS, SGf8, IBR4, KMvS):\n eHNT = lambda LVAh, a1PO: KMvS * LVAh\n fuBA = _o7n(uMfm, lGE9, ZylS, S...
[ "0.62769747", "0.6015288", "0.5793189", "0.5741642", "0.5536562", "0.5520984", "0.5423341", "0.54136443", "0.5391356", "0.5368255", "0.5352737", "0.52882403", "0.5258299", "0.52317435", "0.5227515", "0.5227515", "0.5221651", "0.52209145", "0.51954937", "0.5194189", "0.5194189...
0.0
-1
initialize (open) a bdb frequency hash
def jbwB(QKV0, oc1B=None): return zF0N(QKV0, oc1B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.freq = {}", "def zF0N(QKV0, oc1B=None):\n vi2_ = TLI7(QKV0)\n if not LR7z(vi2_):\n eviw(vi2_)\n NCls = pths()\n if oc1B is None:\n oc1B = SToD\n NCls.set_cachesize(oc1B / (1024 * 1024 * 1024), oc1B % (1024 * 1024 * 1024))\n NCls.open(QKV0, dbtype=FJo3, fl...
[ "0.6704742", "0.65338004", "0.64289284", "0.63803357", "0.62496257", "0.6220571", "0.6148755", "0.6134633", "0.60455704", "0.59618205", "0.59502053", "0.59428495", "0.5888558", "0.58844864", "0.5863423", "0.5857028", "0.5841682", "0.5838687", "0.5838318", "0.5813352", "0.5767...
0.8135423
0
Return the trace level for this TraceSpecification instance.
def j1GH(YKHO): return YKHO.level
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oF9B():\n return zT4D.traceSpec", "def j1GH(YKHO):\n return _VfD.SBase_getLevel(YKHO)", "def ABDL(YKHO):\n assert isinstance(YKHO._level, int)\n assert isinstance(YKHO._steps, list)\n assert isinstance(YKHO._outter, Otor) or YKHO._outter is None\n return YKHO._level", "def spvT(YKHO) ->...
[ "0.69140166", "0.65237033", "0.64862216", "0.64667183", "0.6404112", "0.6403319", "0.6403319", "0.63872886", "0.63872886", "0.63872886", "0.63872886", "0.63473237", "0.63473237", "0.6322858", "0.6315086", "0.6305815", "0.6282526", "0.628008", "0.6228734", "0.61862147", "0.616...
0.5164355
78
Return "true" if the given trace level is a valid string or integer representation of a trace level.
def D6Rz(YKHO, ABDL): if type(ABDL) == type(0): Aofo = ABDL >= LDHv.NONE and ABDL <= LDHv.FINEST elif type(ABDL) == type('') or type(ABDL) == type(u''): ABDL = ABDL.lower() E_j0 = zT4D.traceLevels.get(ABDL) Aofo = E_j0 != None else: Aofo = 0 return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jxo5(ABDL):\n try:\n ABDL = int(ABDL)\n except:\n pass\n if isinstance(ABDL, (int, Swre)):\n im04 = ABDL\n elif str(ABDL) == ABDL:\n if ABDL not in G9jH._levelNames:\n raise ValueError('Unknown level: %r' % ABDL)\n im04 = G9jH._levelNames[ABDL]\n els...
[ "0.64003354", "0.63713634", "0.6259688", "0.6041013", "0.5832999", "0.568361", "0.5626215", "0.5560428", "0.5560428", "0.5522911", "0.55040485", "0.54773974", "0.54651505", "0.5385012", "0.5354778", "0.53337514", "0.53284377", "0.53162473", "0.5291516", "0.5280502", "0.524399...
0.8185287
0
Set the trace level for this instance of the trace class based on the Trace class traceSpec. If there is no trace spec that has a module pattern that matches this trace instance module name, then the trace level is not modified.
def Wsoe(YKHO): for Cqok in zT4D.traceSpec: if Cqok.compiledRegex.match(YKHO.entityName): YKHO.traceLevel = Cqok.level break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frjm(Faif):\n edsu(Faif)\n Fo0Y = zT4D.tracedEntities.keys()\n for yR_P in Fo0Y:\n for Cqok in zT4D.traceSpec:\n if Cqok.compiledRegex.match(yR_P):\n zgsA = zT4D.tracedEntities[yR_P]\n zgsA.setTraceLevel(Cqok.level)\n break", "def s6mP(Y...
[ "0.61845666", "0.5965638", "0.58020526", "0.55751276", "0.55380774", "0.5459781", "0.54203385", "0.53951794", "0.53279537", "0.5266613", "0.52020276", "0.5173878", "0.51630473", "0.51576376", "0.50914013", "0.50914013", "0.50914013", "0.5078109", "0.5073327", "0.50539666", "0...
0.65092444
0
Return the module traceSpec used by all instances of Trace.
def oF9B(): return zT4D.traceSpec
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yhTX(YKHO, HtHC: str) -> cuzp[str, ImMB]:\n return YKHO._specs['testbenches'][HtHC]", "def eplj(YKHO):\n return []", "def zgsA(YKHO):\n return YKHO._trace", "def uG_5(YKHO):\n return YKHO.__trace", "def OGBj(r3q6, yR_P):\n Cqok = ANWz.util.spec_from_file_location(r3q6, yR_P)\n return ...
[ "0.56054235", "0.5599977", "0.5386948", "0.5383461", "0.5374143", "0.53723806", "0.5286025", "0.5286025", "0.5230701", "0.5191652", "0.5066103", "0.5061323", "0.50166225", "0.49577042", "0.4929801", "0.48848036", "0.4884137", "0.48701167", "0.48573104", "0.48374268", "0.48327...
0.7961328
0
will receive as its arguments the directory being visited by copytree(), and a list of its contents, as returned by os.listdir(). will be called once for each directory that is copied. return a sequence of directory and file names relative to the current directory (i.e. a subset of the items in its second argument); th...
def PrmE(YKHO, AGPF, RRlC): SKLc = [] cehU = ('build', 'var') Cc7Y = Hy7s.path.join(AGPF, 'build') SRYB = Hy7s.path.join(AGPF, 'var') for Ux0P in RRlC: Zg0d = Hy7s.path.join(AGPF, Ux0P) if Zg0d.startswith(Cc7Y): SKLc.append(Ux0P) if Zg0d.startswith(SRYB): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jijp(YKHO, TLI7, mXDZ):\n ZWCE = YKHO.listdir(TLI7)\n if mXDZ[0] != '.':\n ZWCE = filter(lambda WKvO: WKvO[0] != '.', ZWCE)\n return jlVJ.filter(ZWCE, mXDZ)", "def flkJ(TLI7, mXDZ='*conll'):\n for pmON, eQqJ, RRlC in Hy7s.walk(TLI7):\n for mWFP in RRlC:\n if jlVJ(mWFP, mX...
[ "0.6814111", "0.6523735", "0.6426169", "0.639931", "0.6324866", "0.6295407", "0.6295337", "0.627235", "0.62287736", "0.6195708", "0.6195708", "0.6174021", "0.6166514", "0.6151967", "0.6143554", "0.61431247", "0.6123214", "0.6122508", "0.60991424", "0.6087915", "0.6078148", ...
0.0
-1
Initialize the encoder hidden state.
def X8hH(YKHO, r5GU): if r5GU is None: return None if isinstance(r5GU, tuple): r5GU = tuple([YKHO._cat_directions(MKlR) for MKlR in r5GU]) else: r5GU = YKHO._cat_directions(r5GU) return r5GU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mDs7(YKHO, E9hj: torch.Tensor):\n pass", "def MAw8(YKHO):\n return ZylS.zeros(shape=(YKHO.batch_size, YKHO.enc_units))", "def mDs7(YKHO, E9hj):\n VWHf = []\n Mzw3 = E9hj.mean(dim=1)\n MKlR = YKHO.init_h(Mzw3)\n Z9rn = YKHO.init_c(Mzw3)\n VWHf.append((MKlR, Z9rn))\n for YRbF in range...
[ "0.83275086", "0.74040484", "0.7290414", "0.7279931", "0.7215229", "0.7215229", "0.70479804", "0.69852823", "0.6901168", "0.68980813", "0.689464", "0.68280524", "0.6804546", "0.67857987", "0.6757444", "0.6757444", "0.6757444", "0.66996604", "0.6488062", "0.6274202", "0.620734...
0.77102697
2
If the encoder is bidirectional, do the following transformation. (directions layers, batch, hidden_size) > (layers, batch, directions hidden_size)
def S7uz(YKHO, MKlR): if YKHO.bidirectional_encoder: MKlR = ht2j.cat([MKlR[0:MKlR.size(0):2], MKlR[1:MKlR.size(0):2]], 2) return MKlR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgaU(g4y1, qqqI):\n rxlp = []\n ERVO = g4y1\n rxlp.append(ERVO)\n for YRbF in range(GPtr.encoder_layers):\n ERVO = xDxz(ERVO, YRbF, qqqI)\n rxlp.append(ERVO)\n rxlp.reverse()\n AgdR = rxlp[0]\n for YRbF in range(GPtr.encoder_layers):\n AgdR = nfV7(AgdR, rxlp[YRbF + 1],...
[ "0.63277006", "0.62737", "0.62708133", "0.6247839", "0.6214003", "0.6086999", "0.6009488", "0.6006527", "0.5992325", "0.59688765", "0.59140205", "0.59026414", "0.58474416", "0.5840555", "0.5829343", "0.5823497", "0.58028907", "0.58008033", "0.5790106", "0.5757703", "0.5755313...
0.0
-1
Yield successive nsized chunks from l.
def eHxA(gFok, RcgH): eHxA = [] for YRbF in range(0, len(gFok), RcgH): eHxA.append(gFok[YRbF:YRbF + RcgH]) return eHxA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.0
-1
Returns DatasetDict. For convenience, create a symbolic link to the dataset folder here with the same name as this source file (ie. "./hwu64_sub").
def tyeH(h_xa=None, **B2fa): Id76 = GkAb(xAKo) if not h_xa: h_xa = Id76.with_suffix('') with open(GkAb(h_xa).joinpath('categories.json')) as ytgA: bySB = gMbG.Features({'id': gMbG.Value('string'), 'text': gMbG.Value('string'), 'label': gMbG.features.ClassLabel(names=qQXR.load(ytgA))}) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Py3N(YKHO) -> dict:\n return YKHO.data_dict", "def Vp8A(YKHO, RrEj: Path=None):\n if RrEj is None:\n RrEj = GkAb(xAKo).parent\n cvpa = YKHO.generate_folds()\n NCPj = RrEj / f'{YKHO.name}.json'\n with NCPj.open('w') as eHNT:\n qQXR.dump(cvpa, eHNT, indent=4)\n SHH6(NCPj)", "d...
[ "0.65284914", "0.6132502", "0.6075398", "0.60550034", "0.6037064", "0.6032477", "0.59447306", "0.59425604", "0.5926367", "0.5903601", "0.58924866", "0.5877742", "0.5876197", "0.5874779", "0.5861709", "0.58251023", "0.58087957", "0.5790877", "0.5788899", "0.577416", "0.5772506...
0.0
-1
Standardizes the data. Set the mean to 0 and the standard deviation to 1 for each feature
def YE9v(nPrm): return (nPrm - oyIN.mean(nPrm, axis=0)) / (oyIN.std(nPrm, axis=0) + 10 ** (-16))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ERn(YKHO):\n nGWB = []\n for fvDH in YKHO.X.columns:\n if YKHO.X[fvDH].dtype != 'object':\n nGWB.append(fvDH)\n Y5YY = ZvG6.StandardScaler().fit(YKHO.X[nGWB])\n YKHO.X[nGWB] = Y5YY.transform(YKHO.X[nGWB])", "def hWT_(nPrm):\n z2bo = nPrm.std()\n if z2bo != 0.0:\n n...
[ "0.78466344", "0.7838906", "0.77958804", "0.7640424", "0.757655", "0.7567484", "0.74750763", "0.74082744", "0.7365555", "0.73645383", "0.73510474", "0.7329236", "0.7317205", "0.7313734", "0.72673106", "0.72601336", "0.72580695", "0.7251312", "0.72179574", "0.7200806", "0.7193...
0.75030494
6
Returns the frontend application instance
def LUif(sCKU: Optional[object]=None): sWmO = Hy7s.path.dirname(Hy7s.path.abspath(xAKo)) Cui_ = [sWmO] P4t4 = i_PC.create_app(__name__, Cui_, sCKU) v1d8(P4t4) if not P4t4.debug: for tTpl in [500, 404]: P4t4.errorhandler(tTpl)(Dj64) return P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTdB(YKHO):\n return m36K()", "def P4t4(YKHO):\n if YKHO._application is None:\n YKHO._application = m36K(client=YKHO)\n return YKHO._application", "def WTdB():\n return DVUM()", "def P4t4(YKHO):\n return YKHO._app", "def P4t4(YKHO):\n return YKHO._app", "def jS1C(YKHO):\n ...
[ "0.7723572", "0.76000047", "0.75873435", "0.7540403", "0.7532672", "0.74980134", "0.74751335", "0.7392383", "0.7380304", "0.7349788", "0.72383267", "0.72109705", "0.72109705", "0.71205443", "0.70990086", "0.7083661", "0.70442337", "0.70070684", "0.6985948", "0.6953829", "0.69...
0.0
-1
Blur or cover personal data
def pEHR(YKHO): AesY = YKHO.filesList.selectedItems()[0].text(2) YKHO.filesList.doBackup(AesY) YKHO.filesList.hidePersonalData(AesY) YKHO.pDataCancelButton.show() YKHO.pDataCommitButton.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jUwU(YKHO):\n if YKHO:\n pass", "def DN9O(YKHO):\n print('--Blurring Main Image--')\n YKHO.blurButton.setDown(True)\n Xn71 = hnIv.open(YKHO.ActivePhoto)\n WUZM = Xn71.filter(x5w2.GaussianBlur(1))\n WUZM.save(YKHO.ActivePhoto)\n YKHO.photo.setPixmap(CsJA.QPixmap(YKHO.ActivePhoto))"...
[ "0.6730632", "0.6552181", "0.644512", "0.62446153", "0.60509676", "0.60488176", "0.60446644", "0.6036078", "0.60102564", "0.5982348", "0.59714705", "0.59629935", "0.5957498", "0.5952269", "0.5940835", "0.5926084", "0.5925411", "0.59178287", "0.5878362", "0.5844492", "0.584313...
0.0
-1
Cleans up/ stops directory listening
def _wh9(YKHO): YKHO.dirMonitor.stop() YKHO.filesList.cleanUp()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def os8w(YKHO):\n if YKHO.listener:\n YKHO.listener.stopListening()", "def AppG(YKHO) -> None:\n assert YKHO.client_recv\n YKHO.client_recv = None", "def JCyR(YKHO) -> None:\n YKHO.stop_listening = True", "def WoCN(YKHO):\n YKHO.stop_full()\n YKHO.ctrl_sock.close()\n YKHO.context....
[ "0.639561", "0.6386928", "0.63720554", "0.63348967", "0.6326714", "0.629778", "0.62563723", "0.62169605", "0.61858577", "0.61770916", "0.61436224", "0.6142668", "0.6057893", "0.5991837", "0.59901917", "0.5986199", "0.59773576", "0.5976742", "0.5976742", "0.596212", "0.5957386...
0.6175645
10
calculate the Shannon Entropy of each uncollapsed state and choose one of the lowest entroy states at random to target for the next wavefunction collapse event
def Vh0y(Cs6h): cL1f = epAf.inf FEH7 = [] for YRbF in range(len(Cs6h[0])): for r845 in range(len(Cs6h)): if not Cs6h[r845][YRbF].collapsed: yzQ0 = Cs6h[r845][YRbF].block_weights OxsJ = sum([-epAf.log(geyT) for geyT in yzQ0]) if OxsJ < cL1f:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Idpj(YKHO, QTBn):\n Ylbp = []\n for tTpl in range(YKHO.n_emissions):\n YzER = oyIN.cumsum(YKHO.B[tTpl][QTBn, :])\n Ylbp.append((YzER > oyIN.random.rand()).argmax())\n return oyIN.asarray(Ylbp)", "def MqX0(w4U1, DjXB, Rfe4, u7K2, oqGu, xASv):\n global eps, actions_list_size\n NntV...
[ "0.6576303", "0.62612516", "0.6254021", "0.6207933", "0.62071717", "0.602948", "0.6005654", "0.5981178", "0.59725267", "0.58691674", "0.5848436", "0.58375967", "0.5802087", "0.58004194", "0.5785645", "0.57806087", "0.5771553", "0.5749972", "0.5742528", "0.57319415", "0.572457...
0.56017274
43
Initializes the particles with supplied values for charge c, mass m, and position r.
def FIMM(YKHO, WJkG, bMbF, dQgj): YKHO.c = WJkG YKHO.m = bMbF YKHO.r = dQgj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, jxyJ, okNM):\n YKHO.nparticles = jxyJ\n YKHO.particles = oyIN.array([HnbY(bMbF, WKvO, LVAh) for WKvO, LVAh, bMbF in okNM])\n YKHO.mass = oyIN.array([YKHO.particles[YRbF].mass for YRbF in range(len(YKHO.particles))])\n YKHO.position = oyIN.array([YKHO.particles[YRbF].position for YRbF in ...
[ "0.6975022", "0.6936636", "0.683775", "0.6779028", "0.67131174", "0.6454496", "0.64482003", "0.63693637", "0.63533765", "0.63069123", "0.6258959", "0.62416065", "0.6235465", "0.61987317", "0.6110885", "0.60588974", "0.6033223", "0.60294825", "0.60294825", "0.5966522", "0.5964...
0.7580843
0
Converts image of type torch.tensor to numpy.ndarray for matplotlib display image
def HY6T(rWax): VXjJ = rWax.to('cpu').clone().detach() VXjJ = VXjJ.numpy().squeeze(0) VXjJ = VXjJ.transpose(1, 2, 0) VXjJ = VXjJ * oyIN.array((0.229, 0.224, 0.225)) + oyIN.array((0.485, 0.456, 0.406)) VXjJ = VXjJ.clip(0, 1) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FH0B(d6hw, JHWS=oyIN.float64):\n if not isinstance(d6hw, oyIN.ndarray):\n if isinstance(d6hw, ht2j.Tensor):\n aEZk = d6hw.data\n else:\n return d6hw\n kVTe = aEZk[0].cpu().float().numpy()\n return kVTe.astype(JHWS)", "def MD8Z(xKOL):\n if not Ve1f(xKOL):\n ...
[ "0.7048809", "0.6880173", "0.68093735", "0.6792789", "0.6757762", "0.67456317", "0.67265105", "0.6707813", "0.6678656", "0.665678", "0.6621333", "0.66024065", "0.6597689", "0.6589251", "0.65755355", "0.6522425", "0.6516791", "0.651404", "0.6482893", "0.64826477", "0.64555347"...
0.70222735
1
Check if item is a container (list, tuple, dict, set).
def m32S(ZfUD): if isinstance(ZfUD, str): return False elif hasattr(ZfUD, '__iter__'): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YoTJ(YKHO):\n try:\n 1 in YKHO.collection\n except TypeError:\n tO9_ = \"'Collection' object is not container\"\n YKHO.fail(tO9_)", "def m32S(BWXx: object) -> OnHT[ROaB]:\n if isinstance(BWXx, pa4n):\n return True\n if hasattr(BWXx, '__pt_container__'):\n return...
[ "0.7344212", "0.71971273", "0.7153404", "0.6666673", "0.6665677", "0.6573487", "0.6531076", "0.65197587", "0.6327977", "0.6293779", "0.62678146", "0.61821836", "0.61464983", "0.6091407", "0.5965194", "0.5935714", "0.59311116", "0.58759165", "0.58688784", "0.5863264", "0.58010...
0.8535093
0
Return a list given either a string or a list.
def MdLO(Ux0P): if isinstance(Ux0P, (str, bytes)): return [Ux0P] elif isinstance(Ux0P, list): return Ux0P elif m32S(Ux0P): return [WKvO for WKvO in Ux0P] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OE6J(fruk):\n if isinstance(fruk, str):\n return [fruk]\n else:\n return list(fruk)", "def nUOy(BWXx):\n if isinstance(BWXx, list):\n return BWXx\n return [BWXx]", "def YYDj(d7pR):\n if isinstance(d7pR, list):\n return d7pR\n else:\n return [d7pR]", "d...
[ "0.78165823", "0.77030873", "0.7492109", "0.74841166", "0.745672", "0.73737615", "0.737239", "0.7279729", "0.7265163", "0.72602797", "0.7260265", "0.71768546", "0.71763855", "0.7049043", "0.6904514", "0.68732405", "0.6862538", "0.68492305", "0.6840291", "0.6814017", "0.679982...
0.58984005
91
Initialize the Instrument object with instrument specific values.
def DbxN(YKHO): YKHO.acknowledgements = _BRd.acknowledgements() YKHO.references = _BRd.references(YKHO.name) bo34.info(YKHO.acknowledgements) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, YKiD, NArs=None):\n super(FeFw, YKHO).__init__(YKiD)\n YKHO.params = NArs", "def FIMM(YKHO, YKiD):\n w2IS = YKHO.ENDPOINT.format(instrument=YKiD)\n super(RmZZ, YKHO).__init__(w2IS, method=YKHO.METHOD)", "def FIMM(YKHO, azoT=None):\n YKHO.coil_combine_method = 'Siemens'\n YKHO.f...
[ "0.71079105", "0.6918038", "0.6634698", "0.65949595", "0.65349096", "0.65126014", "0.6457258", "0.6383584", "0.6344141", "0.63246757", "0.6318041", "0.63137233", "0.62786555", "0.61960465", "0.61337537", "0.61337537", "0.61337537", "0.61337537", "0.61197734", "0.6036409", "0....
0.0
-1
Sets the id of this JsonJdbcIngestionProperties.
def id(YKHO, id): if id is None: raise ValueError('Invalid value for `id`, must not be `None`') YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n if id is not None and (not isinstance(id, int)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: int', None, None)\n YKHO.__i...
[ "0.65863365", "0.6388497", "0.6282591", "0.6189276", "0.61389524", "0.6096918", "0.6095033", "0.60891026", "0.60891026", "0.60891026", "0.60882795", "0.6072969", "0.6060029", "0.6059565", "0.6059565", "0.6059565", "0.6059565", "0.6059565", "0.6019579", "0.6019579", "0.6019579...
0.0
-1
Sets the created_by of this JsonJdbcIngestionProperties.
def tC0c(YKHO, tC0c): YKHO._created_by = tC0c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tC0c(YKHO, tC0c: 'str'):\n YKHO._attrs['createdBy'] = tC0c", "def tC0c(YKHO, tC0c: 'str'):\n YKHO._attrs['createdBy'] = tC0c", "def tC0c(YKHO, tC0c: 'str'):\n YKHO._attrs['createdBy'] = tC0c", "def tC0c(YKHO, tC0c: 'str'):\n YKHO._attrs['createdBy'] = tC0c", "def tC0c(YKHO, wxxj=False):\n ...
[ "0.6884949", "0.6884949", "0.6884949", "0.6884949", "0.64285046", "0.6103104", "0.6093415", "0.6045686", "0.60291886", "0.5996269", "0.5996269", "0.5996269", "0.5996269", "0.5996269", "0.5996269", "0.5990751", "0.5918606", "0.5910671", "0.58679223", "0.58679223", "0.58679223"...
0.69827163
5
Sets the user of this JsonJdbcIngestionProperties.
def CBIr(YKHO, CBIr): YKHO._user = CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lT6e(YKHO, CBIr):\n YKHO._user = CBIr", "def lT6e(YKHO, CBIr):\n YKHO.user = CBIr", "def lT6e(YKHO, CBIr: User):\n YKHO.__user = CBIr", "def Qr55(YKHO, Qr55):\n YKHO._user_settings = Qr55", "def pJIh(YKHO, property, BWXx):\n YKHO._user_properties.update({property: BWXx})", "def FpkF(YK...
[ "0.6504722", "0.6457927", "0.6223949", "0.60973", "0.5991649", "0.5949811", "0.59363204", "0.5775053", "0.5741735", "0.5670421", "0.56619525", "0.561382", "0.5581107", "0.55489427", "0.5522327", "0.5476951", "0.5474973", "0.54653454", "0.54653454", "0.54653454", "0.54653454",...
0.5960796
11
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, Ckct): 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.8457179", "0.8393067", "0.81457263", "0.8140635", "0.8133462", "0.8094992", "0.8093376", "0.8093376", "0.8093376", "0.80863357", "0.80863357", "0.8077303", "0.8077303", "0.8066831" ]
0.0
-1
Returns a timedelta indicating how old this comment is. Can be used to display relative times in the UI.
def ZpyY(YKHO): wzkt = qcWV.datetime.utcnow() return wzkt - YKHO.creation_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yk4i(YKHO):\n return qcWV.datetime.now() - YKHO.stamp", "def RFna(YKHO):\n wzkt = qcWV.now(rIAI.utc)\n aJ2e = YKHO.created_at.astimezone(rIAI.utc)\n RA_F = lYHg.naturaldelta(abs(aJ2e - wzkt))\n uGgB = 'from now' if wzkt < aJ2e else 'ago'\n return f'{RA_F} {uGgB}'", "def Os8H(YKHO):\n r...
[ "0.7003338", "0.67855084", "0.6684347", "0.65254706", "0.65060973", "0.64506257", "0.6377078", "0.6352957", "0.6338396", "0.6303744", "0.6240539", "0.6105612", "0.6070187", "0.605494", "0.6048218", "0.60426277", "0.6031029", "0.5995616", "0.597023", "0.59599", "0.5957175", ...
0.67010707
2
restores the state of the graph from a previous copy made. If there is at least one copy to restore from
def II9C(YKHO): if len(YKHO._graph_copies) == 0: print('No copies to restore!') return YKHO._graph = YKHO._graph_copies.pop(-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBIE(YKHO):\n YKHO.nodes.restore()", "def hnQs(YKHO) -> None:\n YKHO._SetNodes(YKHO._nodes)", "def BaU5(YKHO):\n if jHsn.is_directed(YKHO.g):\n YKHO.tempG = jHsn.DiGraph(YKHO.g)\n else:\n YKHO.tempG = jHsn.Graph(YKHO.g)\n YKHO.deletedEdges = []\n YKHO.deletedNodes = []", "...
[ "0.74744827", "0.7448601", "0.74397695", "0.73925924", "0.7309107", "0.70217335", "0.69016004", "0.6828779", "0.68268186", "0.67718124", "0.6744612", "0.67356306", "0.6699239", "0.66833806", "0.6653536", "0.65983886", "0.6584011", "0.65656936", "0.65646636", "0.6524735", "0.6...
0.7628298
0
convert a matplotlib colormap into a PIL palette
def XnA2(iMGt): return 255.0 * oyIN.array([iMGt(WKvO)[:3] for WKvO in oyIN.linspace(0, 1, 256)]).ravel().astype('int')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MYQr(YKHO):\n tn62 = [(0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), (111, 74, 0), (81, 0, 81), (128, 64, 128), (244, 35, 232), (250, 170, 160), (230, 150, 140), (70, 70, 70), (102, 102, 156), (190, 153, 153), (180, 165, 180), (150, 100, 100), (150, 120, 90), (153, 153, 153), (153, 153, 153), (250, ...
[ "0.6967287", "0.68760455", "0.68467826", "0.68011427", "0.6650869", "0.6646248", "0.66290563", "0.66052055", "0.6603507", "0.65802604", "0.655248", "0.6547776", "0.6542165", "0.6542165", "0.65381736", "0.65381736", "0.6538096", "0.6535332", "0.6535332", "0.6523931", "0.651459...
0.8015995
0
Provides a colormap, based on IDL colortable==4.
def Vbhv(): Mkmy = '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NiXE(YKHO):\n return x5MY.colors.ListedColormap(YKHO.get_colors().astype(float) / 255.0)", "def MYQr(YKHO):\n tn62 = [(0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), (111, 74, 0), (81, 0, 81), (128, 64, 128), (244, 35, 232), (250, 170, 160), (230, 150, 140), (70, 70, 70), (102, 102, 156), (190, ...
[ "0.7344688", "0.72561145", "0.71103466", "0.69729865", "0.69729865", "0.6959782", "0.6959782", "0.6862821", "0.68386716", "0.68061894", "0.6763739", "0.6758933", "0.67216367", "0.66895336", "0.6673322", "0.6651191", "0.6651191", "0.6638331", "0.6638331", "0.6638331", "0.66137...
0.7060548
3
Set up the test data within the test db.
def izSt(Emd4): Emd4.user = NqOl() Emd4.auth = f93t() Emd4.device = WeYP.objects.create(user=Emd4.user) Emd4.relate = WeYP.challenge.objects.create(device=Emd4.device, token=Emd4.auth) Emd4.algorithm = BURc()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.data = GfzA()", "def FCbF(YKHO):\n YKHO.client = P4t4.test_client()\n P4t4.config['Testing'] = True\n P4t4.config['SECRET_KEY'] = 'test'\n WlyJ(P4t4, db_uri='postgresql:///testdb', echo=False)\n NCls.create_all()\n Bhx9()", "def FCbF(YKHO):\n YKHO.client = P4t4.te...
[ "0.8215563", "0.815659", "0.81436336", "0.814079", "0.8134137", "0.808585", "0.80417037", "0.8031054", "0.7985807", "0.7928265", "0.79002374", "0.78746784", "0.7868997", "0.78627014", "0.7855398", "0.78518444", "0.78222054", "0.780507", "0.78001684", "0.7794243", "0.7772306",...
0.0
-1
Return the system date and time.
def zhU5(): return F803('%A %B %d, %I:%M %p')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zOBZ(YKHO):\n return YKHO.mycam.devicemgmt.GetSystemDateAndTime()", "def t8Vt():\n xDcj = {'type': 'op', 'cmd': '<show><clock></clock></show>'}\n return j1tI['panos.call'](xDcj)", "def tmL2():\n from datetime import datetime\n wzkt = datetime.now()\n return wzkt.strftime('%d/%m/%Y %H:%M:%...
[ "0.8723423", "0.7782115", "0.7577801", "0.74857414", "0.73962903", "0.73928094", "0.73701227", "0.7323168", "0.7285211", "0.7279496", "0.7271345", "0.7213184", "0.71804595", "0.71647644", "0.71306205", "0.7119985", "0.7116023", "0.7107069", "0.7105287", "0.7090682", "0.707719...
0.6895697
48
Tear down the test case by cleaning up the temporary cache directory.
def tBIc(YKHO) -> None: YKHO.directory.cleanup()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO) -> None:\n YKHO.temp_env_file.close()\n Hy7s.remove(YKHO.temp_env_file.name)\n del YKHO.temp_env_file\n del YKHO.test_name\n del YKHO.helper", "def tBIc(YKHO):\n YKHO.tempdir.cleanup()", "def tBIc(YKHO):\n BfDw.rm_rf(ZglR)", "def tBIc(YKHO):\n YKHO.tmp.cleanup()", "de...
[ "0.8058195", "0.7839386", "0.78150296", "0.76571995", "0.7613605", "0.75815177", "0.7559772", "0.7559772", "0.7550829", "0.75465405", "0.75414556", "0.7497284", "0.73838615", "0.7376315", "0.7365212", "0.7365212", "0.73495364", "0.73450947", "0.7338276", "0.7332211", "0.73305...
0.75804555
6
Get the name of the last directory in the path.
def D5n3(pmON): sdCG, J3uN = lpha(pmON) while not J3uN: sdCG, J3uN = lpha(sdCG) return J3uN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e0vz(YKHO, pGQh):\n return pGQh.split('/')[-1]", "def ZvZh(pmON: str) -> str:\n TbQY = pmON.replace('\\\\', '/')\n return ZbWC.search('(?:[^/](?!/))+$', TbQY).group(0)", "def IOXk(pmON):\n oeNL = vIwR.rfind(pmON, Hy7s.sep)\n if oeNL != -1:\n return pmON[oeNL + 1:]\n else:\n ...
[ "0.7505416", "0.74623406", "0.74319196", "0.73088986", "0.7307475", "0.7292277", "0.7252292", "0.7176553", "0.71378094", "0.7074937", "0.7073228", "0.7056331", "0.70458376", "0.70192856", "0.6981031", "0.69700545", "0.69595456", "0.6891311", "0.6724386", "0.67243403", "0.6723...
0.83793795
0
return the document viewer
def Fo4j(YKHO): return YKHO.parent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xAQR(YKHO, Gwav=-1) -> vjgB:\n RV2C = YKHO.getViewerController(Gwav)\n if RV2C is None:\n return None\n return RV2C.view", "def GVKn(YKHO):\n return YKHO._sceneviewer", "def yQsB(YKHO):\n npaS = YKHO.activeWindow()\n if npaS:\n YKHO.newEditorView(npaS.getFileName(), npaS, np...
[ "0.69375134", "0.69163793", "0.6853111", "0.67617315", "0.6756576", "0.6754555", "0.6550173", "0.6465868", "0.6302576", "0.6270481", "0.62411624", "0.6146605", "0.6146425", "0.60257083", "0.6004018", "0.59994894", "0.59861445", "0.5976136", "0.59636796", "0.59499943", "0.5945...
0.7425443
0
Return how many minutes, rounded to 2 decimals, Python 2 has left on Planet Miller (calculated from start_date) 1 hour to 7 earth years
def SkWN(kepv=hoZ2): g75m = lphC - kepv return round((g75m.days * 24 + g75m.seconds / 3600) / 1022, 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O66n(YKHO):\n return int((YKHO.end - YKHO.start).total_seconds()) / 60", "def SkWN():\n LFlW = eA99 - hoZ2\n fLRx = round(LFlW.total_seconds() / 60, 2)\n J9zh = fLRx / 3679200\n DoQt = round(J9zh * 60, 2)\n return DoQt", "def IfOg(YKHO):\n return YKHO.time_base / 1000.0 / 60.0", "def...
[ "0.72144586", "0.71424174", "0.679107", "0.6736059", "0.6701586", "0.66801083", "0.65883243", "0.65240306", "0.6497183", "0.6496166", "0.6441139", "0.6368439", "0.62966055", "0.6288888", "0.6269495", "0.6244679", "0.624116", "0.62262", "0.61815953", "0.6092379", "0.6091683", ...
0.65792114
7
Inits Pyramid app for testing environment
def GmIz(qIxc, tqPq=True): if tqPq: Ywea.paster.setup_logging(qIxc.config) gCuF = Ywea.paster.get_appsettings(qIxc.config) if 'environment' not in gCuF: raise KeyError('Missing key "environment" in config. Specify environment in INI file "{}".'.format(qIxc.config)) if not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uXHy(YKHO):\n if not hasattr(YKHO, 'APP'):\n return\n YKHO.pyramid_config = DhCp()\n YKHO.pyramid_config.add_notfound_view(_Wjv(YKHO.APP))\n YKHO.app = UG4b(YKHO.pyramid_config.make_wsgi_app())", "def vY7J(QePW):\n from webtest import TestApp\n\n def b8V_(ePNl, **gCuF):\n \"\"...
[ "0.7997598", "0.7775401", "0.7503169", "0.7409454", "0.73890924", "0.73610425", "0.73567116", "0.7348028", "0.7332093", "0.72746086", "0.72744983", "0.72346026", "0.72128606", "0.7209323", "0.7177989", "0.7148255", "0.71474487", "0.71195924", "0.71195924", "0.71195924", "0.71...
0.68561405
46
Create a training dataset pipeline.
def JHXJ(YKHO, okKT, imwH): Ig7N = okKT.batch(YKHO.batch_size).prefetch(3) _M_u = imwH.batch(YKHO.batch_size).prefetch(3) return (Ig7N, _M_u)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CStp(YKHO, EvQg: LAMLDataset) -> tNe5:\n raise NotImplementedError", "def ZRjb(xAU6, LT6S, DGXn=None):\n __n6 = ZylS.data.Dataset.list_files(xAU6.input_pattern[:], shuffle=LT6S)\n Ep8u = xAU6.batch_size\n if DGXn:\n if DGXn.num_input_pipelines > 1:\n __n6 = __n6.shard(DGXn.num_i...
[ "0.7439487", "0.72224694", "0.69541425", "0.6920243", "0.6915928", "0.68751854", "0.6871379", "0.6854996", "0.6828431", "0.68151575", "0.6742136", "0.6717399", "0.6695433", "0.66758174", "0.6674722", "0.66709757", "0.6669457", "0.66510606", "0.66476166", "0.6641585", "0.66279...
0.0
-1
Create a training dataset pipeline.
def BEHh(YKHO, okKT, imwH): KHnU = YKHO.n_examples - YKHO.val_count NGZp = int(KHnU // YKHO.batch_size) iS0s = YKHO.n_epochs * NGZp Hyaw = ZylS.data.Dataset.zip((okKT, imwH)) oxOY = Hyaw.shuffle(KHnU, seed=YKHO.seed + 10, reshuffle_each_iteration=True).repeat(count=iS0s).batch(YKHO.batch_size).prefe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CStp(YKHO, EvQg: LAMLDataset) -> tNe5:\n raise NotImplementedError", "def ZRjb(xAU6, LT6S, DGXn=None):\n __n6 = ZylS.data.Dataset.list_files(xAU6.input_pattern[:], shuffle=LT6S)\n Ep8u = xAU6.batch_size\n if DGXn:\n if DGXn.num_input_pipelines > 1:\n __n6 = __n6.shard(DGXn.num_i...
[ "0.7442308", "0.721942", "0.6953127", "0.6918337", "0.69162345", "0.68741584", "0.68702596", "0.68258655", "0.68167907", "0.67419225", "0.67142075", "0.66946465", "0.6675091", "0.66722", "0.6667091", "0.6664823", "0.6653677", "0.6644421", "0.6638923", "0.66252214", "0.6611089...
0.6852532
7
Load images and labels for all sets (training, test, etc.) Args
def lPhd(fYLC, mghR): WpRI = tuple((OzyS.name for OzyS in fYLC.glob('*.csv'))) r63W = [Oc0v[:Oc0v.find('_')] for Oc0v in WpRI] if len(WpRI) == 3: T8sY = ['training', 'validation', 'test'] q09K = tuple((WpRI.index(f'{mWFP}_set.csv') for mWFP in T8sY)) XyBM = 3 else: GUao =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(YKHO):\n lNWu = ['train', 'val']\n Yw_3 = []\n Crrw = []\n YKHO.labels_dic = {}\n nUeQ = open(YKHO.path + 'wnids.txt')\n h4TO = nUeQ.read().split()\n if YKHO.train:\n for FYKK in range(YKHO.num_classes):\n eHNT = h4TO[FYKK]\n for YRbF in Hy7s.listdir(YKHO....
[ "0.76732665", "0.7217497", "0.7213508", "0.69727165", "0.69624805", "0.6955935", "0.69448864", "0.6890891", "0.68819493", "0.68260866", "0.6816322", "0.676275", "0.6753097", "0.6715485", "0.66991544", "0.6669895", "0.66598284", "0.6654237", "0.6638387", "0.66322577", "0.66232...
0.6972215
4
Return a friendly HTTP greeting.
def Wzeq(): return 'Hello World!'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tz38(mWFP):\n BYLU = f\"Hello, {mWFP.title()}. It's nice to meet you!\"\n return BYLU", "def uthR():\n return 'Welcome to Flask!'", "def Y7u5(mWFP):\n print('My name is ' + mWFP)", "def qjYe():\n return f\"Welcome to the Surf's Up API!Available Routes:<br/>/api/v1.0/surfs-up\"", "def Wze...
[ "0.67860854", "0.6719625", "0.67095745", "0.6680697", "0.6663219", "0.6638394", "0.6633062", "0.6628187", "0.6556032", "0.6536937", "0.64776874", "0.6477268", "0.64715713", "0.64644194", "0.6443056", "0.6435385", "0.6400719", "0.6400167", "0.637615", "0.637615", "0.6367243", ...
0.0
-1
Given a variable X, get amplitude gain and phase lag time series
def ZEbE(EcVT): K4sN, bJvf, glrM = EcVT.shape ITS7 = EcVT.getTime()[::12] j8ci = x62P.createAxis(ITS7) j8ci.designateTime() aXHR = EcVT.getTime().attributes for G1Hx in aXHR: setattr(j8ci, G1Hx, aXHR[G1Hx]) Zjdi = [j8ci, EcVT.getLatitude(), EcVT.getLongitude()] zps_ = K4sN / 12 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SZFh(YKHO, WKvO):\n if YKHO.mode == 'lag':\n Dooq = [WKvO.shift(-abs(z1Rg), axis=0) for z1Rg in YKHO.offsets]\n return rLdf.concat(Dooq, axis=1)", "def O5F6(nPrm):\n NkkI = [YRbF for YRbF in range(1, len(nPrm[0]) + 1)]\n NkkI += NkkI[-2::-1]\n or8S = len(nPrm[0]) // 4\n\n def ufJ...
[ "0.5732996", "0.5515259", "0.549662", "0.54693466", "0.54272705", "0.54181474", "0.540088", "0.53992254", "0.53992254", "0.532405", "0.52426326", "0.52271324", "0.52215606", "0.52203465", "0.52015924", "0.5173188", "0.5163655", "0.5147492", "0.51406777", "0.51367784", "0.5133...
0.5104675
22
define the X and Y axis limits
def zVoP(YKHO, AtCm=[], a8WT=[]): YKHO.data['Xmin'] = AtCm[0] YKHO.data['Xmax'] = AtCm[1] YKHO.data['Ymin'] = a8WT[0] YKHO.data['Ymax'] = a8WT[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BHzl(BQGg=None, bYzl=None, h3cg=None, Z3uP=None):\n QrM1.axis(xmin=BQGg, xmax=bYzl, ymin=h3cg, ymax=Z3uP)", "def TCfm(YKHO) -> None:\n I8kJ.pyplot.xlim(0, YKHO.imgsz[0])\n I8kJ.pyplot.ylim(YKHO.imgsz[1], 0)", "def wJnd(YKHO, BQGg=None, bYzl=None, h3cg=None, Z3uP=None):\n YKHO._myCanvas.axes.set...
[ "0.7596813", "0.7430736", "0.73098594", "0.73097605", "0.72856957", "0.7243441", "0.71406424", "0.7069249", "0.70277447", "0.6997044", "0.6965993", "0.6949617", "0.69271195", "0.69196284", "0.68260384", "0.68236095", "0.6807305", "0.6789631", "0.6702974", "0.6700313", "0.6699...
0.8024198
0
Return statistics about the current state of this lock.
def Dz7Y(YKHO) -> saY8: return saY8(YKHO.locked(), YKHO._owner_task, len(YKHO._waiters))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jxmr(YKHO):\n with YKHO.lock:\n return (YKHO.status, YKHO.time_start)", "def eQSh(YKHO):\n Ylbp = YKHO.read_block(vNxa, 9)\n U5bT = {'completed_cycles': (Ylbp[1] << 8) + (Ylbp[0] << 0), 'last_boot': {'retries': Ylbp[2], 'duration': (Ylbp[6] << 24) + (Ylbp[5] << 16) + (Ylbp[4] << 8) + (Ylbp[3]...
[ "0.70566237", "0.6653602", "0.66055226", "0.6495829", "0.643085", "0.6398969", "0.6388215", "0.6358421", "0.63350755", "0.6322747", "0.6304496", "0.62816703", "0.6240129", "0.61882067", "0.61520123", "0.6146637", "0.6145223", "0.614285", "0.6135839", "0.61339086", "0.61233103...
0.7832995
0
The current value of the semaphore.
def BWXx(YKHO) -> int: return YKHO._value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JkD2(YKHO):\n assert YKHO.is_started()\n return YKHO.currValue", "def izFS(YKHO):\n return YKHO.current_counter.value", "def LXG0(YKHO):\n if not hasattr(YKHO._local, '_value'):\n YKHO._local._value = YKHO._root_value\n return YKHO._local._value", "def NMoC(YKHO):\n with YKHO.mut...
[ "0.7580243", "0.73534614", "0.71068543", "0.67414755", "0.6692586", "0.66004103", "0.65688044", "0.652247", "0.65035623", "0.6430214", "0.640594", "0.63366646", "0.6329491", "0.63124686", "0.63021564", "0.6300144", "0.6289142", "0.6279947", "0.62717307", "0.62699604", "0.6260...
0.6042083
76
The maximum value of the semaphore.
def bQ6z(YKHO) -> h8nf[int]: return YKHO._max_value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bQ6z(YKHO) -> int:\n return YKHO.__max_value", "def aohu(YKHO):\n return YKHO.MAX_VALUE", "def max(YKHO):\n return YKHO.__max", "def qfB5(YKHO):\n return YKHO._max", "def max(YKHO):\n assert YKHO.__stack\n return YKHO.__max_values[-1]", "def max(YKHO):\n return YKHO._max", "def...
[ "0.774042", "0.7570058", "0.73789096", "0.73633814", "0.7329304", "0.7328723", "0.7328723", "0.73230714", "0.72984636", "0.72764724", "0.72456115", "0.71789867", "0.7158917", "0.7152428", "0.7152428", "0.71417916", "0.7105671", "0.7084379", "0.70440257", "0.70406324", "0.7023...
0.735529
4
Name of this connection.
def mWFP(YKHO): return 'RPCConnection'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o0oP(YKHO) -> str:\n return qe4Y.get(YKHO, 'connection_name')", "def o0oP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection_name')", "def o0oP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'connection_name')", "def mWFP(YKHO):\n return '{} {}'.format(YKHO._clientname, Y...
[ "0.87946135", "0.8647344", "0.8022843", "0.7838024", "0.778027", "0.76356965", "0.7633844", "0.7633844", "0.7633844", "0.7633844", "0.7633844", "0.7633844", "0.7633844", "0.7633844", "0.7633844", "0.7633844", "0.7625225", "0.7625225", "0.7625225", "0.7625225", "0.7625225", ...
0.0
-1
Gets the total expected size of the embedding.
def vMaO(YKHO) -> uLKX[int, x1iM[int]]: bySB = YKHO._config.context_features + YKHO._config.sequential_features V1sM = [YKHO._embed_dim_dict[_x49] for _x49 in bySB] if YKHO._config.embedding_combination_method == SnBA.EmbeddingCombinationMethod.SUM_ALL: assert vRNf.all_elements_equal(V1sM), 'All emb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jiw9(YKHO) -> int:\n B2mP = 0\n for bTKY in YKHO.__entries:\n B2mP += bTKY.get_size()\n return B2mP", "def q0CJ(YKHO):\n zNig = YKHO.n_layers * 1 * 2 * YKHO.hidden_size\n return zNig", "def TwHh(YKHO):\n return YKHO.embedding_size + YKHO.hidden_size", "def zNig(YKHO) -> int:\n ...
[ "0.72786283", "0.726968", "0.7224457", "0.71614337", "0.7145755", "0.7144727", "0.71412814", "0.71291584", "0.7115016", "0.71070266", "0.7092374", "0.7082026", "0.7068235", "0.7061945", "0.7058983", "0.7046681", "0.7035419", "0.7003102", "0.7002194", "0.698089", "0.69800216",...
0.72793114
0
Combines embeddings into one input for the model. The embeddings can be combined in different ways and this function encapsulates that logic and returns an input vector based on the combination method that is specified.
def xB3o(YKHO, KWjb: Dict[str, int]) -> ZylS.Tensor: if YKHO._config.embedding_combination_method == SnBA.EmbeddingCombinationMethod.SUM_ALL: return sum(KWjb.values()) elif YKHO._config.embedding_combination_method == SnBA.EmbeddingCombinationMethod.CONCATENATE: return ZylS.concat(list(KWjb.valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOv4(YKHO, WKvO, *qIxc, **B2fa):\n with ZylS.name_scope('embedding'):\n o5r0 = ZylS.cast(WKvO > YKHO.vocab_size - 1, dtype=ZylS.int32)\n WKvO *= 1 - o5r0\n WKvO += o5r0 * ZylS.cast(YKHO.pad_sym, dtype=ZylS.int32)\n KTQ3 = ZylS.gather(YKHO.shared_weights, WKvO)\n if YKHO.em...
[ "0.5955232", "0.58174616", "0.58171684", "0.57225627", "0.56999433", "0.5671518", "0.5625221", "0.55981785", "0.55981785", "0.5576363", "0.5552107", "0.55190223", "0.545595", "0.5426745", "0.53774136", "0.5334926", "0.5326682", "0.5315223", "0.5301722", "0.5273913", "0.527373...
0.7343154
0
creates a json file to be downloaded
def k6Vk(c55i, LXAO): TgwQ = tfBL(c55i) round = TgwQ[TgwQ.round_id == int(LXAO)].to_dict(orient='records')[0] Csk6 = {} for H5ew in ['solution', 'pipeline', 'model_params', 'mode', 'model_class', 'level']: Csk6[H5ew] = round[H5ew] GERS = Fc99[round['solution']] if GERS.early_stopping != ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MvqE(YKHO):\n if not YKHO.path.is_dir():\n YKHO.path.mkdir(parents=True)\n with YKHO.file.open('w') as wM3v:\n try:\n zgjV = qQXR.dumps(G4JS.get(YKHO.endpoint).json())\n wM3v.write(zgjV)\n except qQXR.JSONDecodeError as error:\n print('Error fetching ...
[ "0.80391324", "0.7390677", "0.7256598", "0.7225713", "0.7204014", "0.7105369", "0.7105369", "0.69785666", "0.69550407", "0.69457996", "0.69399256", "0.68880796", "0.6882244", "0.6880714", "0.68150705", "0.68146074", "0.6795779", "0.6781171", "0.67139083", "0.66577566", "0.665...
0.0
-1
Strips the string value if and only if all the characters in the string are not " ".
def sg_b(BWXx): if any([YRbF != ' ' for YRbF in BWXx]): return BWXx.strip() return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RdG2(YKHO, CTpi):\n return ''.join((tTpl for tTpl in CTpi if tTpl.isalnum()))", "def filter(vIwR):\n return hYRG.sub(' ', vIwR)", "def KUFG(input):\n return input.lower().replace(' ', '')", "def Yczo(YKHO, vIwR):\n return ZbWC.sub('\\\\s+', ' ', vIwR).strip()", "def G2XZ(CBIr, str):\n if...
[ "0.7316561", "0.7145191", "0.7046523", "0.7038135", "0.70192903", "0.69609845", "0.6947088", "0.6947088", "0.69281536", "0.69197446", "0.6914073", "0.690112", "0.6887776", "0.6860018", "0.683223", "0.6832113", "0.6808764", "0.6795601", "0.67919624", "0.677004", "0.6751491", ...
0.7467689
0
Here the core idea is, we can only form subarray of length starting till len(nums)k+1 Since only the first element matters we only need to start from there This is a greedy approach.
def Ba8E(YKHO, xYvp: List[int], G1Hx: int) -> x1iM[int]: if G1Hx == 1: return [max(xYvp)] Pgpp = {} for YRbF, exwG in enumerate(xYvp): Pgpp[exwG] = YRbF kbGe = xYvp[:len(xYvp) - G1Hx + 1] print(kbGe) RsfQ = max(kbGe) ixaI = Pgpp[RsfQ] khtY = xYvp[ixaI:ixaI + G1Hx] ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _eBC(xYvp, G1Hx):\n Ylbp = Fkrq = 0\n Op6c = {0: 1}\n for YRbF in xYvp:\n Fkrq += YRbF\n Ylbp += Op6c.get(Fkrq - G1Hx, 0)\n Op6c[Fkrq] = Op6c.get(Fkrq, 0) + 1\n return Ylbp", "def FYKK(ezWE, G1Hx):\n TK2h = []\n for YRbF, WKvO in enumerate(ezWE):\n while TK2h and...
[ "0.7522313", "0.69626874", "0.6730335", "0.6651089", "0.65581834", "0.65444934", "0.6417753", "0.6347547", "0.6309304", "0.6245642", "0.6223539", "0.62230957", "0.6071673", "0.6068064", "0.60648125", "0.6046987", "0.60413206", "0.60287267", "0.6010355", "0.5999114", "0.599673...
0.6954997
2
Constructs a ResNet50 model.
def OgPC(wRBz, mL4f=False, **B2fa): C3ST = Yrqy(wRBz, E586, [3, 4, 6, 3], **B2fa) if mL4f: C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50'])) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST", "def uwZX(**B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n return C3ST", "def uwZX(m...
[ "0.7557751", "0.75548905", "0.74759895", "0.74759895", "0.74759895", "0.74759895", "0.74557495", "0.7386862", "0.7386862", "0.73601955", "0.7355623", "0.724254", "0.724254", "0.7191571", "0.7158499", "0.7101107", "0.70165247", "0.69687796", "0.68687624", "0.6822836", "0.68010...
0.0
-1
Supply boundary conditions for an xarray.DataArray da according along the specified dimension. Returns a raw dask or numpy array, depending on the underlying data.
def Cnz9(SG6Y, tpio, LFlW, zXil=None, xgWT=0.0): if zXil not in ['fill', 'extend', 'extrapolate']: raise ValueError("`boundary` must be 'fill', 'extend' or 'extrapolate', not %r." % zXil) wHWe = SG6Y.get_axis_num(tpio) ROpF = list(SG6Y.shape) ROpF[wHWe] = 1 DbiY = SG6Y.data d6pt = slice(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZ0a(YKHO: Union[pd.DataFrame, pd.Series], zXil: dict, *, yYKB: bool=True) -> gyIm:\n pass\n irgE = oyIN.full(YKHO.__getattribute__('shape')[0], fill_value=True)\n for kQ_H, FB2x in zXil.items():\n irgE = oyIN.bitwise_and(irgE, YKHO[kQ_H].between(*FB2x, inclusive=yYKB).values)\n return irgE"...
[ "0.55187356", "0.5427349", "0.51378554", "0.5105014", "0.510499", "0.50856996", "0.5008775", "0.49854606", "0.49854606", "0.49708956", "0.49670136", "0.4929073", "0.49227515", "0.4882665", "0.48811394", "0.48774448", "0.4864481", "0.4864481", "0.48592335", "0.48482525", "0.48...
0.62297755
0
Pad an xarray.DataArray da according to the boundary conditions along dim. Return a raw dask or numpy array, depending on the underlying data.
def cTGM(SG6Y, tpio, LFlW=False, zXil=None, xgWT=0.0): if zXil not in ['fill', 'extend']: raise ValueError("`boundary` must be `'fill'` or `'extend'`") wHWe = SG6Y.get_axis_num(tpio) ROpF = list(SG6Y.shape) ROpF[wHWe] = 1 DbiY = SG6Y.data d6pt = slice(0, 1) if LFlW else slice(-1, None) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dvgN(jzdc, tpio):\n return oyIN.pad(jzdc, (0, tpio - len(jzdc)), 'constant', constant_values=0)", "def hVLt(nPrm, dD6c=False):\n LaQD = nPrm.copy()\n P7a9 = oyIN.isnan(nPrm)\n m3tl = oyIN.logical_not(P7a9)\n osoZ = nPrm[m3tl]\n jCt1 = oyIN.interp(P7a9.nonzero()[0], m3tl.nonzero()[0], osoZ)\...
[ "0.5916931", "0.555809", "0.55494297", "0.5496643", "0.54872304", "0.5461839", "0.5435356", "0.5432517", "0.53927624", "0.53607583", "0.5343201", "0.5320598", "0.5312922", "0.52983654", "0.52979755", "0.5248074", "0.52351177", "0.5210277", "0.5204645", "0.5204212", "0.5164592...
0.7270703
0
Obstacles created by self.create_obstacles are drawn on self.windows as a black rectangles.
def ulEo(YKHO): for fhZS in YKHO.obstacles: fhZS.draw(YKHO.window, Dbee.BLACK.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ulEo():\n for fhZS in rM81:\n QrM1.gca().add_patch(fhZS)", "def UXzo():\n lTdq = oyIN.random.randint(0, YKHO.map_dimensions[1], size=YKHO.N_obstacles)\n dlth = oyIN.random.randint(0, YKHO.map_dimensions[0], size=YKHO.N_obstacles)\n ksua = zip(lTdq, dlth)\n j8aQ = []\n for eJ2R in ksu...
[ "0.70438933", "0.69378084", "0.68815863", "0.685203", "0.6783483", "0.666752", "0.6614215", "0.6580512", "0.65752584", "0.6495871", "0.64657646", "0.6459727", "0.6416091", "0.63066995", "0.6299761", "0.6271255", "0.61703116", "0.61362374", "0.60891026", "0.6071949", "0.607047...
0.85527563
0
Grabs fuel esc from EERC
def Ft08(LFLG, l1aq='NG'): cdiC = {'NG': 'Natural Gas', 'COAL': 'Coal', 'PETRO': 'Residual'} return soWk.eerc_esc.loc[LFLG, cdiC[l1aq]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ivSL(YKHO, X8Rw=1.0):\n P069 = None\n with open(YKHO.path, 'r') as eHNT:\n for zFiD in eHNT:\n if 'FINAL SINGLE POINT ENERGY' in zFiD:\n P069 = float(zFiD.split()[-1])\n if P069 is None:\n raise F7R6('Unable to find energy in Orca output file.')\n return P069...
[ "0.614474", "0.61137724", "0.61131305", "0.58843523", "0.5829121", "0.576634", "0.5709528", "0.5694991", "0.5688178", "0.564943", "0.56155294", "0.5608964", "0.55574423", "0.554091", "0.55266964", "0.55205625", "0.5486249", "0.54649156", "0.53992087", "0.53921926", "0.5388455...
0.6570786
0
Create a remote resource from this instance.
def eLpg(YKHO, cuiw): YKHO.create_by_id(cuiw, None, YKHO.id, path_args=YKHO) YKHO._reset_dirty() return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P5Hm(YKHO, mWFP: str, bD7m: str, **B2fa: Any) -> wNEQ:\n return wNEQ.create(YKHO, mWFP, bD7m, **B2fa)", "def msER(YKHO, **B2fa):\n dixj = YKHO.api.action.resource_create(**B2fa)\n YKHO.get_ckan_metadata(True)\n if 'id' in dixj:\n YKHO._import_resource_to_cache(B2fa['upload'], dixj['id'])\n...
[ "0.6997501", "0.6764199", "0.6608829", "0.6342341", "0.6059206", "0.60024816", "0.59422565", "0.59315217", "0.5917065", "0.5904616", "0.5880331", "0.58677787", "0.5837186", "0.5768227", "0.57088333", "0.56948733", "0.56938636", "0.56754684", "0.5659072", "0.56500465", "0.5639...
0.0
-1
Computes the backward pass, i.e., gradients.
def ZD5u(YKHO, EcVT, fuBA, V6IE, C7Ls, TacR): yvY1 = -(fuBA - V6IE) bGrB, M_93 = V6IE.shape hUTg = len(YKHO.hidden_units) Juzu = [] aazc = [] for YRbF in range(hUTg, -1, -1): if YRbF == 0: PKQa = yvY1 @ EcVT.T * (1 / M_93) + 2 * TacR * YKHO.W[YRbF] f__d = yvY1 @ o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZD5u(YKHO, ICX2):\n pass", "def ZD5u(YKHO, ICX2):\n pass", "def ZD5u(YKHO, ICX2):\n raise NotImplementedError()", "def ZD5u(YKHO):\n ICX2 = MrDr\n return ICX2", "def ZD5u(YKHO):\n ICX2 = MrDr\n return ICX2", "def ZD5u(YKHO, ICX2: Tensor) -> llWB:\n YKHO.b_grad = oyIN.sum(ICX2,...
[ "0.82310915", "0.82310915", "0.8200846", "0.80617994", "0.80617994", "0.8000902", "0.7897286", "0.78913283", "0.7866503", "0.78530025", "0.7852304", "0.7824065", "0.78089327", "0.7790098", "0.7779452", "0.7766099", "0.7762307", "0.7718012", "0.7675431", "0.76700395", "0.76692...
0.7445272
41
Get the description of a job.
def s9El(YKHO, oCfW, QpfX=None): return YKHO._client.call_method('UserAndJobState.get_job_description', [oCfW], YKHO._service_ver, QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lGgU(YKHO):\n pass", "def Kz5w(EUd7=None):\n pass", "def UIzg(YKHO) -> cuzp[I2jr, I2jr]:\n QePW = YKHO._client.projects().jobs().get(name=YKHO._job_name)\n return QePW.execute()", "def jCRD(hKyS=None):\n pass", "def Eot7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'long_descrip...
[ "0.7607637", "0.7192499", "0.67830104", "0.6780596", "0.6714741", "0.6707569", "0.6679356", "0.66656226", "0.66656226", "0.66567254", "0.66285944", "0.65982926", "0.65800416", "0.65800416", "0.65800416", "0.65800416", "0.65800416", "0.65800416", "0.65800416", "0.65800416", "0...
0.83598095
0
Get the detailed error message, if any
def FxAc(YKHO, oCfW, QpfX=None): return YKHO._client.call_method('UserAndJobState.get_detailed_error', [oCfW], YKHO._service_ver, QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(YKHO):\n UAju = YKHO._info.get('error', {}).get('errors')\n if not UAju:\n return None\n return ' '.join((XObx.get('message', 'unknown') for XObx in UAju))", "def jv0C(YKHO):\n return YKHO.error_message.get_error_message()", "def rhwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'error_...
[ "0.8469181", "0.8417391", "0.83349466", "0.83349466", "0.83349466", "0.8247297", "0.8156396", "0.8156396", "0.8156396", "0.8156396", "0.8156396", "0.8156396", "0.8156396", "0.8105616", "0.80623436", "0.805907", "0.8025505", "0.79834616", "0.7958321", "0.793723", "0.79117244",...
0.0
-1
Get the owner of a job.
def uBKC(YKHO, oCfW, QpfX=None): return YKHO._client.call_method('UserAndJobState.get_job_owner', [oCfW], YKHO._service_ver, QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qsJ6(YKHO) -> None:\n return YKHO.bot.get_user(YKHO.bot.config.owner_ids[0])", "def Fqw8(YKHO):\n return YKHO.__owner", "def Fqw8(YKHO, YEnM):\n return YEnM.user.username", "def qsJ6(YKHO):\n ANfV = YKHO._call('owner')\n return ANfV.owner", "def Fqw8(YKHO):\n return YKHO.settings.get(...
[ "0.7093864", "0.705176", "0.6957282", "0.69351876", "0.692269", "0.6863196", "0.68565017", "0.68523395", "0.68463093", "0.68463093", "0.682809", "0.680491", "0.67452174", "0.67452174", "0.671068", "0.669592", "0.6671211", "0.666671", "0.666671", "0.6664125", "0.6561198", "0...
0.8874359
0
Set our public name on the server.
def w2B8(YKHO): YKHO.send('setname/{}/{}'.format(YKHO.msg_id, YKHO.name)) YKHO.msg_id += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO._name = n_Rt", "def WZrJ(YKHO, L15R=''):\n YKHO.name = L15R", "def WZrJ(YKHO, VpPs):\n YKHO._name = VpPs", "def WZrJ(YKHO, mWFP):\n YKHO.settings['name'] = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "async def set_name(YKHO, mWFP: str):\n qQXR = {**...
[ "0.70426464", "0.70157635", "0.6988657", "0.6926462", "0.6868796", "0.6825859", "0.6794912", "0.6791303", "0.6785273", "0.67521185", "0.67521185", "0.67521185", "0.67521185", "0.66850334", "0.66850334", "0.66785395", "0.6673879", "0.6654393", "0.6654393", "0.6654393", "0.6654...
0.0
-1
set window at the center of window
def hgjH(YKHO): Vjhr = YIq1().screenGeometry() zNig = YKHO.geometry() YKHO.move(int((Vjhr.width() - zNig.width()) / 2), int((Vjhr.height() - zNig.height()) / 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgjH(KnxT):\n KnxT.update_idletasks()\n k_Ti = KnxT.winfo_screenwidth()\n fsQy = KnxT.winfo_screenheight()\n zNig = tuple((int(bGrB) for bGrB in KnxT.geometry().split('+')[0].split('x')))\n WKvO = k_Ti / 2 - 7 * zNig[0] / 13\n LVAh = fsQy / 2 - 6 * zNig[1] / 11\n KnxT.geometry('+%d+%d' % (...
[ "0.8669063", "0.8547829", "0.85407895", "0.83933437", "0.8392298", "0.837827", "0.82572865", "0.81704116", "0.81422913", "0.81422913", "0.8075503", "0.7866476", "0.78477573", "0.7807001", "0.779239", "0.77475125", "0.7680406", "0.7653157", "0.7630904", "0.76215637", "0.761899...
0.8295385
6
Returns a UserConfig object from an environment variable.
def y8ny(Emd4, IH1p): return Emd4.load_from_filename(Hy7s.environ.get(IH1p))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBzm():\n ZqCk = Hy7s.getenv('APP_ENV', 'TEST')\n return PnW9.get_config(ZqCk)", "def GPtr(sEAN=guTn, WmM4=None, eHpk=None):\n GPtr = {}\n KCHu = Hy7s.environ.get(sEAN, WmM4)\n if KCHu:\n GPtr = hfK9(KCHu, eHpk)\n return GPtr", "def j3mc(oagM, sEAN=None):\n wvEv = enR0.ConfigPar...
[ "0.6596632", "0.6080266", "0.60578686", "0.60304", "0.5918862", "0.58581537", "0.58541805", "0.57985073", "0.5791923", "0.5786983", "0.5778541", "0.56761557", "0.56284994", "0.562235", "0.56174785", "0.5572147", "0.55627424", "0.5561496", "0.55554324", "0.5537923", "0.5531441...
0.62398374
1
Function to determine if list of topics is in the general topics table.
def mXOr(YKHO, WEmU): for DpUl in WEmU: YKHO.db_cursor.execute('SELECT COUNT(*) FROM Topic WHERE name = %s', (DpUl,)) lY0q = YKHO.db_cursor.fetchone() lY0q = lY0q[0] if lY0q == 0: print('topic does not exist, we must create new one or cancel') return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yjrS(rlUa):\n x0hE = xiEW({'bootstrap.servers': 'PLAINTEXT://localhost:9092'})\n ufKn = x0hE.list_topics(timeout=5)\n return rlUa in set((a1PO.topic for a1PO in iter(ufKn.topics.values())))", "def XlVK(Emd4) -> bool:\n return True", "def XlVK(Emd4) -> bool:\n return True", "def XlVK(Emd4) ...
[ "0.6132043", "0.6128616", "0.6128616", "0.6128616", "0.5831514", "0.565989", "0.5636484", "0.5567121", "0.54846406", "0.5403851", "0.53999376", "0.5375112", "0.53463024", "0.5318869", "0.52974755", "0.52945495", "0.528952", "0.52721524", "0.52409536", "0.5238508", "0.5227265"...
0.60205173
4
Fucntion to set the course in the db
def rTKK(YKHO, eDpb, LlSq=False): MAMl = 'UPDATE Course SET subject_code = %s, credit_hours = %s, description = %s WHERE name = %s' if LlSq else 'INSERT INTO Course (subject_code, credit_hours, description, name) VALUES (%s, %s, %s, %s)' YKHO.db_cursor.execute(MAMl, (eDpb.subject_code, eDpb.credit_hours, eDpb.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PPjy(YKHO):\n YKHO.course.save()\n YKHO.store.update_item(YKHO.course, YKHO.user.id)", "def ysO6(YKHO, GQfX):\n hB1Q = 'UPDATE Course SET subject_code = %s, credit_hours = %s, description = %s WHERE name = %s'\n YKHO.db_cursor.execute(hB1Q, (GQfX.subject_code, GQfX.credit_hours, GQfX.description,...
[ "0.76697034", "0.69201535", "0.69193166", "0.6838468", "0.682473", "0.6684611", "0.66294444", "0.6570262", "0.6566537", "0.65445465", "0.6534536", "0.64993685", "0.6451552", "0.64059365", "0.6341957", "0.6327892", "0.6260288", "0.62347114", "0.61435986", "0.6129142", "0.61188...
0.69831127
1
Returns whether there are commands in the dictionary.
def FBfn(YKHO): return len(YKHO.commands) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HyYS(YKHO) -> bool:\n return len(YKHO.commands) > 0", "def opZp(YKHO, H5ew):\n YX0Z = False\n for YRbF in iCuF.keys():\n if H5ew == YRbF:\n YX0Z = True\n break\n return YX0Z", "def fXz8(YKHO, Asoz):\n return Asoz in YKHO.commands", "def K54w(YKHO, oUZx: str) ->...
[ "0.84124696", "0.7831274", "0.73959315", "0.73806435", "0.73750824", "0.7207478", "0.7203815", "0.71357805", "0.7119071", "0.7004909", "0.6871515", "0.68641925", "0.6806875", "0.68040174", "0.6730361", "0.6730361", "0.67239463", "0.6710142", "0.66958606", "0.6610057", "0.6589...
0.71805626
7
Returns a dictionary of files and folders for a given reference and path. Implemented using ``git lstree``. If an invalid reference and/or path None is returned.
def kLVT(aC0l, pmON=None, AGPF=None): o7vC(aC0l, directory=AGPF) HCmI = 'git ls-tree ' + aC0l if pmON is not None and pmON != '': HCmI += ':' + pmON CgsD, yvT9, XObx = NJG4(HCmI, autofail=False, silent_error=True, cwd=AGPF, return_io=True) if CgsD != 0: return None DumB = {} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H9SI(Emd4, Bicb, qaEx, AQSv, RRlC, Vzvc):\n tGT9 = sorted([Vzvc['%s/%s' % (qaEx, nUeQ)]['hash'] for nUeQ in RRlC])\n kBpD = sorted([Vzvc['%s/%s' % (qaEx, Z0kE)]['hash'] for Z0kE in AQSv])\n yCfU = {}\n yCfU['path'] = qaEx\n yCfU['content'], yCfU['hash'] = Emd4.get_tree_contents(qaEx, AQSv, RRlC,...
[ "0.61584675", "0.5878132", "0.58635056", "0.5799189", "0.57655996", "0.57045203", "0.5640728", "0.55679065", "0.55450636", "0.5512755", "0.5477827", "0.54668874", "0.54139876", "0.54109913", "0.52307737", "0.5205111", "0.5195961", "0.51922023", "0.5183229", "0.5154966", "0.51...
0.7030277
0
Returns True is the working branch has untracked files, False otherwise.
def D0mQ(AGPF=None): yvT9 = CD35('git status', shell=True, cwd=AGPF) if '# Untracked files:' in yvT9: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PpMh():\n Y42I = WY3t('git diff --quiet || echo \"*\"', capture=True)\n if Y42I == '*':\n return True\n b6e0 = int(WY3t('git status --porcelain 2>/dev/null| grep \"^??\" | wc -l', capture=True))\n if b6e0 > 0:\n return True\n return False", "def QiVE(boHx):\n Yn3K.check_call([...
[ "0.7369675", "0.7245063", "0.7186721", "0.6902411", "0.69018334", "0.6766072", "0.6752072", "0.67305964", "0.6614926", "0.66121066", "0.6557952", "0.6492854", "0.6405835", "0.64045507", "0.62953687", "0.626833", "0.6249092", "0.6208174", "0.61656004", "0.6162128", "0.6151879"...
0.8167415
0
Returns True if the working branch has local changes, False otherwise.
def Pxxl(AGPF=None): yvT9 = CD35('git status', shell=True, cwd=AGPF) if 'nothing to commit (working directory clean)' in yvT9: return False if 'nothing to commit, working directory clean' in yvT9: return False if 'nothing to commit, working tree clean' in yvT9: return False i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z2py():\n Aofo, hlel = Slaj('git status', False, False)\n try:\n return not hlel[-1].startswith('nothing to commit')\n except IndexError:\n return True", "def PpMh():\n Y42I = WY3t('git diff --quiet || echo \"*\"', capture=True)\n if Y42I == '*':\n return True\n b6e0 = ...
[ "0.8103679", "0.70879", "0.70589244", "0.7040565", "0.6930281", "0.6911634", "0.6874067", "0.65720373", "0.6568718", "0.65084153", "0.6473522", "0.6444226", "0.63482803", "0.6299093", "0.62665546", "0.62546307", "0.6243886", "0.62398034", "0.6228319", "0.61778355", "0.6164162...
0.65647006
9
Returns a list of tags in the git repository.
def Qwli(AGPF=None): yvT9 = CD35('git tag -l', shell=True, cwd=AGPF) return [vC9B.strip() for vC9B in yvT9.splitlines()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fd1B(gtI8, qIxc):\n _hkX, dJ1p = gtI8.repositories.list_tags(qIxc.repository)\n dJ1p = [{'Tag': a1PO} for a1PO in dJ1p]\n BfDw.print_list(dJ1p, ['Tag'], sortby='Tag')", "def Qwli(YKHO):\n dJ1p = []\n for LNo8 in YKHO.client.images.list():\n for TZ9E in LNo8.tags:\n if TZ9E.st...
[ "0.7660419", "0.76550305", "0.7644801", "0.75672406", "0.74624276", "0.73732084", "0.7258995", "0.72259563", "0.72047967", "0.71400553", "0.70663697", "0.7060839", "0.7045013", "0.6962905", "0.6937564", "0.6937564", "0.6908174", "0.688024", "0.68553925", "0.68434227", "0.6831...
0.7836319
0
Returns the git root directory above the given dir. If the given dir is not in a git repository, None is returned.
def LIOs(AGPF=None): HCmI = 'git rev-parse --show-toplevel' try: hlel = CD35(HCmI, shell=True, cwd=AGPF, stderr=h5ye) except JaPI: return None return hlel.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lfxX(dir=''):\n nBpD = 'git rev-parse --show-toplevel ' + dir + ' 2> ' + Hy7s.devnull\n if dir:\n YpVC = Hy7s.getcwd()\n Hy7s.chdir(dir)\n try:\n kO9O = Yn3K.check_output(nBpD, shell=True)\n CH7A = kO9O.decode().rstrip().splitlines()[0]\n except:\n CH7A = ''\n ...
[ "0.78679776", "0.73824674", "0.7373398", "0.72000515", "0.6936625", "0.67536604", "0.6708627", "0.6543182", "0.6528905", "0.6458582", "0.6412014", "0.64080334", "0.6274935", "0.6274888", "0.62603515", "0.6223945", "0.6156869", "0.60560584", "0.6029711", "0.59609705", "0.59524...
0.7278139
3
Generates a random string of the specified length.
def e7Tf(u54L=30): dLKT = C1SZ + BHGE return ''.join((Acvy(dLKT) for bGrB in Ni9Y(u54L)))
{ "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 DsQ5(u54L):\n return ''.join((tuKI.choice('ACDEFGHJKMNPQRTWXYZ') for bGrB...
[ "0.8940031", "0.88641787", "0.868772", "0.86801916", "0.86554873", "0.8636561", "0.86250025", "0.85664594", "0.85466874", "0.8533055", "0.8530097", "0.8500764", "0.8437358", "0.8421766", "0.84211844", "0.84199953", "0.8400087", "0.8391604", "0.83819515", "0.8348653", "0.83343...
0.87689024
2
Close the connection to the manager.
def DDI8(YKHO): if YKHO.socket is not None: try: YKHO.socket.shutdown(2) except Exception: pass try: YKHO.socket.close() except Exception: pass YKHO.socket = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n YKHO.session.close()", "def DDI8(YKHO):\n YKHO._connection.close()", "def ngVb(YKHO):\n try:\n edQT.close(YKHO.connection_handle)\n except pNB7:\n pass", "def ngVb(YKHO):\n YKHO.connection.close()", "def ngVb(YKHO):\n YKHO.connection.close()", "def DDI8(Y...
[ "0.7840157", "0.7811793", "0.7789384", "0.77485055", "0.77485055", "0.7745745", "0.77249795", "0.7716535", "0.77129763", "0.77098423", "0.7700003", "0.76821756", "0.76821756", "0.76821756", "0.76821756", "0.76821756", "0.76821756", "0.76821756", "0.76603454", "0.76227885", "0...
0.0
-1
change the due date
def zvAj(YKHO, Id2S): YKHO.end_date = Id2S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzvF(YKHO, YzvF):\n YKHO._due_date = YzvF", "def YzvF(YKHO, YzvF: date):\n YKHO._due_date = YzvF", "def uKC7(YKHO, uKC7):\n YKHO._date_due = uKC7", "def jsmn(YKHO, YzvF):\n O1bv = None\n if YzvF != '':\n O1bv = YzvF\n else:\n O1bv = YKHO.get_date(last_day_of_current_month=...
[ "0.7644258", "0.7636794", "0.7599661", "0.7203695", "0.7072922", "0.68700165", "0.6858573", "0.67680717", "0.6686194", "0.66313714", "0.6627486", "0.6271072", "0.62584436", "0.62204534", "0.62119794", "0.6169781", "0.6045487", "0.5993843", "0.59719455", "0.59285605", "0.59240...
0.53747684
60