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
Function that checks if sting is float.
def _Pvj(KCHu): try: float(KCHu) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QpCZ(wbrg):\n try:\n float(wbrg)\n return True\n except:\n return False", "def ZPAH(KCHu):\n try:\n float(KCHu)\n return True\n except ValueError:\n return False", "def QpCZ(KCHu):\n try:\n float(KCHu)\n except:\n return False\n r...
[ "0.8743747", "0.8554218", "0.85408074", "0.8486252", "0.8460242", "0.8411741", "0.8389973", "0.8389973", "0.8389973", "0.8389973", "0.83627003", "0.83584994", "0.83290523", "0.8324075", "0.8287351", "0.8287351", "0.8287351", "0.8287351", "0.8273946", "0.8268596", "0.8265739",...
0.7405887
83
Replacing real values in the row with the average of last n games (before currently selected game!!!). That average is calculated in df_grouped_means.
def CHFl(rdlD, YP6U): kT81 = YP6U.loc[int(rdlD.TEAM_ID)].index.values.tolist().index(int(rdlD.name)) ZKHD = YP6U.loc[int(rdlD.TEAM_ID)].index.values.tolist()[kT81 - 1] gAQa = YP6U.loc[int(rdlD.TEAM_ID), int(ZKHD)] gAQa.name = rdlD.name return gAQa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aJfc(nPrm):\n jQ3Z = rqSw(nPrm)\n qIxc = D7Yl()\n if '+' in qIxc['average_n']:\n exwG = int(qIxc['average_n'][:-1])\n emQu = True\n else:\n exwG = int(qIxc['average_n'])\n emQu = False\n vyBi = qIxc['label']\n jQ3Z['indexcol'] = jQ3Z.index\n jQ3Z.sort_values(['G...
[ "0.67672783", "0.648243", "0.6313622", "0.6129989", "0.6072989", "0.60332763", "0.6018992", "0.5964074", "0.59420186", "0.5884184", "0.58601856", "0.58410347", "0.5834099", "0.5833401", "0.5829598", "0.5827374", "0.58042496", "0.5797402", "0.5785885", "0.5785239", "0.57396036...
0.6995973
0
Originaly dataframe should have two rows for one game, each row for one team. This function puts it all in one row.
def CrE_(jQ3Z): Crrw = jQ3Z.columns.values.tolist() Mlmp = list(map(lambda WKvO: 'OPP_' + WKvO, Crrw)) jQ3Z = jQ3Z.reindex(columns=Crrw + Mlmp) bncL = 0 for A0tR in jQ3Z['GAME_ID']: if A0tR == bncL: continue NejB = jQ3Z.loc[(jQ3Z['GAME_ID'] == A0tR) & ((jQ3Z['WINNER'].ast...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NTnK(_NcA, GcHt):\n jQ3Z = rLdf.DataFrame({})\n return jQ3Z", "def zjbk(C01e):\n jQ3Z = rLdf.DataFrame.from_dict(C01e['team'], orient='index')\n yKFY = jQ3Z.transpose()\n yKFY = yKFY.rename(columns={'id': 'teamId'})\n return yKFY", "def _Mur(jQ3Z, dZPi):\n mCdQ = jQ3Z.loc[jQ3Z['HomeTea...
[ "0.6987387", "0.67965585", "0.6659719", "0.6556032", "0.6553682", "0.6317428", "0.6208835", "0.61413854", "0.6131098", "0.61236334", "0.60938686", "0.60895205", "0.60777193", "0.6023818", "0.60001475", "0.59834176", "0.5961793", "0.59367883", "0.593048", "0.58697474", "0.5844...
0.7466599
0
Add StreamHandler that log to stdout and stderr to the logger. INFO and lower logs are streamed to stdout while WARNING and higher are streamed to stderr. If the MRIDC_ENV_VARNAME_REDIRECT_LOGS_TO_STDERR environment variable is set, all logs are sent to stderr instead.
def E5ok(YKHO, uaPq=JqCH): if YKHO._logger is None: raise RuntimeError('Impossible to set handlers if the Logger is not predefined') if kXOE(spQ5, False): YKHO._handlers['stream_stdout'] = KWKZ.StreamHandler(HwRy.stderr) else: YKHO._handlers['stream_stdout'] = KWKZ.StreamHandler(HwRy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I3oN() -> G9jH.StreamHandler:\n G9jH.getLogger().setLevel(G9jH.DEBUG)\n cedc = G9jH.StreamHandler()\n cedc.setLevel(G9jH.INFO)\n uaPq = G9jH.Formatter(Pfbk, _tsJ)\n cedc.setFormatter(uaPq)\n G9jH.getLogger().addHandler(cedc)\n return cedc", "def A4Lu(Fv2L):\n\n class StdoutFilter(G9jH...
[ "0.6935726", "0.6902746", "0.66477764", "0.6644529", "0.663281", "0.6505121", "0.6472216", "0.6452436", "0.6427135", "0.63915133", "0.63511974", "0.63511974", "0.6305552", "0.6300272", "0.6298946", "0.6255032", "0.62012804", "0.61927605", "0.61884445", "0.6162328", "0.6135668...
0.6811538
2
Add a FileHandler to logger that logs all messages to a file. If the logger had a MemoryHandler at self._handlers["memory_all"], those buffered messages are flushed to the new file, and the MemoryHandler is closed.
def ixQI(YKHO, R5Jy): if YKHO._logger is None: raise RuntimeError('Impossible to set handlers if the Logger is not predefined') YKHO._handlers['file'] = KWKZ.FileHandler(R5Jy) uaPq = JqCH YKHO._handlers['file'].setFormatter(uaPq()) YKHO._logger.addHandler(YKHO._handlers['file']) if YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fJ_P(YKHO):\n if isinstance(YKHO.file_logging, G9jH.NullHandler):\n Bwei = YKHO.file_logging.level\n YKHO._logger.removeHandler(YKHO.file_logging)\n del YKHO.file_logging\n YKHO.file_logging = G9jH.FileHandler(YKHO.log_file, mode='w', delay=False)\n YKHO.file_logging.setLe...
[ "0.71376675", "0.7082903", "0.70168245", "0.7002052", "0.6745289", "0.6703291", "0.6686438", "0.6550995", "0.648128", "0.6438535", "0.64258313", "0.63980865", "0.63928413", "0.630579", "0.6278523", "0.6268591", "0.62514627", "0.6234236", "0.62323904", "0.6216868", "0.6200501"...
0.8035509
0
Add a FileHandler to logger that logs all WARNING and higher messages to a file. If the logger had a MemoryHandler at self._handlers["memory_err"], those buffered messages are flushed to the new file, and the MemoryHandler is closed.
def na83(YKHO, R5Jy): if YKHO._logger is None: raise RuntimeError('Impossible to set handlers if the Logger is not predefined') YKHO._handlers['file_err'] = KWKZ.FileHandler(R5Jy) YKHO._handlers['file_err'].addFilter(lambda AIu6: AIu6.levelno > KWKZ.INFO) uaPq = JqCH YKHO._handlers['file_err...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ixQI(YKHO, R5Jy):\n if YKHO._logger is None:\n raise RuntimeError('Impossible to set handlers if the Logger is not predefined')\n YKHO._handlers['file'] = KWKZ.FileHandler(R5Jy)\n uaPq = JqCH\n YKHO._handlers['file'].setFormatter(uaPq())\n YKHO._logger.addHandler(YKHO._handlers['file'])\n...
[ "0.74124813", "0.68878007", "0.67881006", "0.67277354", "0.65878004", "0.6525649", "0.6523935", "0.65167946", "0.63901216", "0.6380065", "0.6376626", "0.62638", "0.62108797", "0.61954665", "0.617481", "0.61715376", "0.6168495", "0.6163205", "0.61469626", "0.6130615", "0.61068...
0.7384829
1
Sends messages that should log to stderr to stream instead. Useful for unittests
def Nf_U(YKHO, wOb_): if YKHO._logger is None: raise RuntimeError('Impossible to patch logging handlers if handler does not exist') try: WDXJ = YKHO._handlers['stream_stderr'].stream if WDXJ is None: raise ValueError YKHO._handlers['stream_stderr'].acquire() t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c_kF(wOb_=HwRy.stderr):\n import warnings\n warnings.warn('setupStderr() is deprecated. If you write text to stderr that might be non-ASCII use the \"logging\" module instead.', DeprecationWarning, 2)\n HwRy.stderr = T_Uj.getwriter('utf8')(wOb_)", "def wIbz():\n return QZXY.redirect_stderr(xDSY.S...
[ "0.73368055", "0.70233655", "0.69954807", "0.6988243", "0.6897542", "0.68131703", "0.6806198", "0.680334", "0.6754894", "0.6717497", "0.67013514", "0.6667141", "0.66348326", "0.66346014", "0.660226", "0.6574936", "0.65521586", "0.6547033", "0.652198", "0.64907753", "0.6473892...
0.6327657
37
Return a rectangular string representation of this maze.
def zAg0(YKHO): usx6, WfCS = zip(*YKHO._spaces) lhUV, GF7e = (min(usx6), max(usx6)) LyK2, g_kY = (min(WfCS), max(WfCS)) g_qg = list() for rdlD in range(lhUV, GF7e + 1): Vhhf = list() for fvDH in range(LyK2, g_kY + 1): W0Eb = YKHO.Coordinates(rdlD, fvDH) try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n vIwR = ' '\n for YRbF in range(YKHO.getColSize()):\n YRbF = str(YRbF)[-1]\n vIwR += YRbF\n vIwR += '\\n'\n vUxx = 0\n for rdlD in YKHO.theMaze:\n d6ou = str(vUxx)[-1]\n vIwR += d6ou\n for Npgh in rdlD:\n vIwR += str(Npgh)\n vIwR ...
[ "0.8059047", "0.7890464", "0.7828198", "0.7659668", "0.7539516", "0.75228477", "0.75177234", "0.7470865", "0.74620813", "0.74162066", "0.7385389", "0.7340603", "0.73250246", "0.73250246", "0.73096013", "0.72962826", "0.7273751", "0.72477883", "0.7232535", "0.7217047", "0.7207...
0.72734827
17
List all available courses
def NMoC(YKHO): return V_Pk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i8S6():\n zVa7 = b8V_()\n try:\n sDlr = []\n shLb = None\n yv6U = []\n while True:\n geh0 = zVa7.courses().list(pageToken=shLb, pageSize=100).execute()\n sDlr.extend(geh0.get('courses', []))\n shLb = geh0.get('nextPageToken', None)\n ...
[ "0.8116479", "0.81052953", "0.7995987", "0.79003525", "0.78673106", "0.7833276", "0.7817992", "0.7774911", "0.7736474", "0.77022094", "0.76954836", "0.76056635", "0.7491942", "0.74520093", "0.7400894", "0.73649573", "0.7343003", "0.7306695", "0.724478", "0.72236085", "0.72066...
0.0
-1
returns true if the box described by other intersects with this one
def ooL1(YKHO, Elif): return not (Elif.Top > YKHO.Bottom or Elif.Bottom < YKHO.Top or Elif.Left > YKHO.Right or (Elif.Right < YKHO.Left))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P10m(YKHO, Elif: 'BoundingBox') -> bool:\n return YKHO.minx <= Elif.maxx and YKHO.maxx >= Elif.minx and (YKHO.miny <= Elif.maxy) and (YKHO.maxy >= Elif.miny) and (YKHO.mint <= Elif.maxt) and (YKHO.maxt >= Elif.mint)", "def P10m(YKHO, *Elif):\n Elif = FpTk(*Elif)\n if not (YKHO and Elif):\n re...
[ "0.8386574", "0.83565736", "0.83502764", "0.8258016", "0.81592596", "0.80879617", "0.8037195", "0.79164785", "0.7855852", "0.7833324", "0.7831739", "0.7772803", "0.7735223", "0.7725657", "0.7678433", "0.7565998", "0.7555835", "0.75327325", "0.75327325", "0.7528883", "0.748841...
0.702214
41
Compute accuracy of classifier predictions.
def OoPX(EcVT, LVAh, C3ST): m4wF = pQ08(EcVT) aMgO = C3ST.predict(m4wF) vjyh = 1 - oyIN.mean(aMgO - LVAh) return vjyh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(Crrw: List[str], N6Z1: List[str]) -> float:\n gXXc = sum([1 if UXqs == o3Uj else 0 for UXqs, o3Uj in zip(Crrw, N6Z1)])\n return gXXc / len(Crrw)", "def ouiP(YKHO):\n YKHO.accuracy = sum([1 if aMgO == ibJh else 0 for aMgO, ibJh in zip(YKHO.preds, YKHO.y_test)]) / len(YKHO.preds)", "def pH6b(YK...
[ "0.8341065", "0.83361673", "0.8280051", "0.82304335", "0.8191916", "0.8123141", "0.81131834", "0.8111864", "0.8053205", "0.80451745", "0.80421513", "0.80346084", "0.80337936", "0.80298436", "0.8008792", "0.8004626", "0.7993014", "0.7988762", "0.79845655", "0.7979821", "0.7974...
0.0
-1
Function to reshape N x trials x time into a single array, N is number of neurons or PCs
def pQ08(bySB, ViJE=0, X3yk=1, fbkh=2): yvT9 = oyIN.zeros((bySB.shape[X3yk], bySB.shape[ViJE] * bySB.shape[fbkh])) for YRbF in range(bySB.shape[X3yk]): yvT9[YRbF, :] = bySB[:, YRbF, :].T.flatten() return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q3V_(EcVT):\n PAI2, bJn4 = (oyIN.shape(EcVT)[0], oyIN.shape(EcVT)[1])\n etdq, LzmV = CH8B.setNetworkSpace(bJn4, oyIN.ndim(EcVT))\n print('X entering network reshaping len = {} when will become = {}'.format(bJn4, LzmV))\n ueTo = []\n for dbXs in EcVT:\n dbXs = dbXs[:LzmV]\n ueTo.app...
[ "0.65005344", "0.603757", "0.5981091", "0.5981091", "0.59463334", "0.594304", "0.59110713", "0.58495986", "0.5841629", "0.582444", "0.5787351", "0.57108235", "0.56905276", "0.56844324", "0.56708294", "0.5660092", "0.5635283", "0.562314", "0.5615187", "0.5614817", "0.5577753",...
0.6605582
0
Create instances of the Amenity Class
def FCbF(YKHO): YKHO.clawfoot_tub = HvY3() YKHO.free_nutella = HvY3() YKHO.free_nutella.save()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r4eE(YKHO):\n Io0e = HvY3(1)\n ZgoV = HvY3('hola')\n qPB1 = HvY3([1, 2, 3])\n QRZD = HvY3({'hola': 'chau'})", "def emag(YKHO, qIxc):\n YKHO.inst_class('Amenity', qIxc)", "def tdIX(YKHO):\n YEnM = HvY3()\n YKHO.assertIsInstance(YEnM, HvY3)", "def FCbF(Emd4):\n Emd4.amenity = HvY3()...
[ "0.76047856", "0.75620157", "0.7408055", "0.6974169", "0.6863212", "0.6485664", "0.64751256", "0.64488554", "0.62827843", "0.6257886", "0.62306356", "0.6225359", "0.6217775", "0.62136763", "0.6208037", "0.61882865", "0.61138463", "0.6094603", "0.6084161", "0.6076845", "0.6069...
0.6286569
8
Dropout for sparse tensors.
def zSpM(WKvO, sMyr, ZqPb): FzVw = sMyr FzVw += ZylS.random_uniform(ZqPb) Vwv8 = ZylS.cast(ZylS.floor(FzVw), dtype=ZylS.bool) TYvy = ZylS.sparse_retain(WKvO, Vwv8) return TYvy * (1.0 / sMyr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T7wl(YKHO, EcVT, sMyr, f3d9):\n ZqPb = [f3d9]\n FzVw = sMyr\n FzVw += ZylS.random_uniform(ZqPb)\n Vwv8 = ZylS.cast(ZylS.floor(FzVw), dtype=ZylS.bool)\n TYvy = ZylS.sparse_retain(EcVT, Vwv8)\n return TYvy * ZylS.div(1.0, sMyr)", "def zSpM(WKvO, TyPQ, ZqPb):\n sMyr = 1 - TyPQ\n FzVw = s...
[ "0.7382427", "0.72637916", "0.71140844", "0.7038627", "0.7024649", "0.70230925", "0.7022436", "0.70041454", "0.6718469", "0.67061806", "0.662041", "0.66152745", "0.6608801", "0.65626824", "0.6550052", "0.6497698", "0.6336324", "0.62281615", "0.62091625", "0.61031187", "0.6091...
0.7043489
5
Given a LXML tag, return contents as a string >>> html = "Sample sentence with tags." >>> node = lxml.html.fragment_fromstring(html) >>> extract_html_content(node) "Sample sentence with tags."
def VpBj(Q6kx): if Q6kx is None or (len(Q6kx) == 0 and (not getattr(Q6kx, 'text', None))): return '' Q6kx.attrib.clear() Ch8B = len(Q6kx.tag) + 2 Gnn2 = -(len(Q6kx.tag) + 3) return _R2e.tostring(Q6kx)[Ch8B:Gnn2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EPt3(YKHO, KCHu):\n return B0gN.return_valid_html(KCHu)", "def NEUe(bD7m):\n _R2e = G4JS.get(bD7m)\n return _R2e.content", "def FCjo(hGN5: str) -> str:\n Z9JV = rKuS(hGN5, 'html.parser')\n return Z9JV.get_text()", "def EPt3(bD7m):\n nM3r = VHUT(bD7m)\n if nM3r is not None:\n t...
[ "0.64592856", "0.6379633", "0.62810606", "0.62568843", "0.6187593", "0.6041517", "0.6016486", "0.60087967", "0.5994363", "0.59809184", "0.5975045", "0.5936183", "0.5919051", "0.59088194", "0.58901596", "0.5857324", "0.58015275", "0.5800375", "0.5742053", "0.57384855", "0.5737...
0.0
-1
I return the list of my parents with the root first and me last.
def ACnF(YKHO): if YKHO.parent is None: return [YKHO] else: return YKHO.parent.parents.append(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rKzm(YKHO):\n ACnF = []\n _AKB = YKHO._parent\n while _AKB is not None:\n ACnF.append(_AKB)\n _AKB = _AKB._parent\n ACnF.reverse()\n return ACnF", "def HqGg(YKHO):\n ACnF = []\n ZfUD = YKHO\n while ZfUD.parent is not None:\n ACnF.append(ZfUD.parent)\n ZfUD ...
[ "0.7908304", "0.7603164", "0.74654424", "0.7360421", "0.73316044", "0.7327777", "0.73112875", "0.731", "0.72546494", "0.72125554", "0.72000223", "0.7189603", "0.71749485", "0.7079516", "0.70777744", "0.70453286", "0.7038995", "0.7009136", "0.70003444", "0.6999565", "0.6999565...
0.70805264
13
I work out the end date by simply adding 6 days to the start date.
def QZjw(YKHO, osIs): RA_F = qcWV.timedelta(days=6) return osIs + RA_F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eiFi(YKHO) -> _c1T:\n eiFi = YKHO.startdate() + fCoM(days=6)\n return eiFi", "def zzUH(_c1T):\n return nktf(_c1T) + qcWV.timedelta(days=6)", "def JlsV(kepv):\n KhBf = kepv + qcWV.timedelta(days=7)\n return KhBf", "def G7s0(YKHO, kepv, KhBf=None, Sm0u=None):\n if KhBf is not None:\n ...
[ "0.82154614", "0.71403885", "0.6553901", "0.6490672", "0.6259946", "0.62196577", "0.6137031", "0.61312294", "0.6111053", "0.60807824", "0.6049283", "0.6017121", "0.5978702", "0.5978702", "0.5978702", "0.5978702", "0.5970107", "0.5967261", "0.5894248", "0.5859141", "0.5858265"...
0.80905527
1
Return the corresponding estimator.
def z099(mWFP): RVWO = ['LinearRegression', 'Ridge', 'Lasso', 'BayesianRidge', 'DecisionTreeRegressor', 'RandomForestRegressor', 'SVR', 'GradientBoostingRegressor', 'MLPRegressor', 'RandomForestClassifier', 'ExtraTreesClassifier', 'SVC', 'MLPClassifier', 'MultinomialNB'] if mWFP not in RVWO: raise Excep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BHCt(YKHO):\n if YKHO._estimator is None:\n if YKHO.plugin:\n if YKHO.alpha is None:\n YKHO._estimator = YKHO._plugin_estimator\n else:\n\n def bxT9(_sei, G1Hx):\n return YKHO._pseudocounts_estimator(_sei, G1Hx, YKHO.alpha)\n ...
[ "0.845517", "0.8364688", "0.7801749", "0.77566355", "0.77566355", "0.77517104", "0.75844926", "0.7262625", "0.7248115", "0.72050035", "0.7187316", "0.71501917", "0.7095685", "0.7095445", "0.6830344", "0.680005", "0.67846763", "0.67846763", "0.6774327", "0.6742444", "0.6691559...
0.73158634
7
Check if one individual dominates another. Returns true if individual 1 is better than individual 2
def vIBh(YKHO, pVNR: list, Cj9J: list) -> bool: oIhf = pVNR[YKHO._f1_index] aUM0 = pVNR[YKHO._f2_index] GQFA = Cj9J[YKHO._f1_index] AfJ8 = Cj9J[YKHO._f2_index] vIBh = False if oIhf == GQFA and aUM0 < AfJ8: vIBh = True elif oIhf < GQFA and aUM0 == AfJ8: vIBh = True elif oI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIBh(YKHO, Elif):\n THPY = False\n for RuJL, KI0a in zip(YKHO._weighted_fitness, Elif.weighted_fitness):\n if RuJL > KI0a:\n THPY = True\n elif RuJL < KI0a:\n return False\n return THPY", "def RTcM(a0GJ, TLv5):\n vIBh = False\n for YRbF, YEnM in enumerate(X3...
[ "0.8039347", "0.75545037", "0.72086596", "0.72028553", "0.72028553", "0.71971214", "0.71559095", "0.70934814", "0.70909834", "0.7085738", "0.7081991", "0.7070714", "0.70646465", "0.6991025", "0.69867134", "0.6977579", "0.69594437", "0.6919069", "0.69151676", "0.68924236", "0....
0.79775894
1
Tests Add two values together and returns the values.
def dEhe(): assert a0GJ.add_two(3, 4) == 7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, hkxX):\n Aofo = 0\n jvSB = YKHO.value_check(hkxX)\n for wEf2 in jvSB:\n Aofo += wEf2\n print(str(hkxX) + ' adds up to ' + str(Aofo))\n return Aofo", "def H2v5(E_TU, OyNW):\n return E_TU + OyNW", "def H2v5(UXsi, c163):\n return UXsi + c163", "def gH_V(YKHO):\n UXs...
[ "0.76507056", "0.7523288", "0.74659574", "0.74120516", "0.73897445", "0.7268299", "0.7245958", "0.7225964", "0.72126806", "0.7132849", "0.7118937", "0.71131486", "0.7111903", "0.7073045", "0.70401996", "0.7023113", "0.7023113", "0.70198715", "0.70198715", "0.70198715", "0.700...
0.0
-1
Tests Add three values together and returns the values.
def NoKA(): assert a0GJ.add_three(3, 4, 5) == 12
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n6Ya(YKHO):\n BWXx = YKHO.calculate.add('1, 2, 3')\n YKHO.assertNotEqual(3, BWXx)\n YKHO.assertEqual(6, BWXx)", "def KB4q(hQHm, jlSq, bUZ8):\n XP5J = hQHm + jlSq + bUZ8\n return XP5J", "def KbCR():\n return 3 + 4", "def FLxT():\n return 2 + 3", "def i9kc(YKHO):\n map(YKHO.stats....
[ "0.74581534", "0.73770934", "0.7264178", "0.71597826", "0.69243956", "0.6909455", "0.6743716", "0.6680119", "0.66780674", "0.66398287", "0.66031927", "0.6587577", "0.65817577", "0.65705544", "0.6567247", "0.6557572", "0.6546765", "0.6544728", "0.6544728", "0.6527119", "0.6454...
0.6398509
25
Returns the sum of null in each column
def l86c(YKHO): return YKHO.df.isna().sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l86c(jQ3Z):\n print(jQ3Z.isnull().sum().sum())", "def vmJq(jQ3Z):\n return jQ3Z.isnull().sum()", "def l86c(jQ3Z):\n return jQ3Z.isnull().sum()", "def bFSP(jQ3Z):\n if type(jQ3Z) == rLdf.core.frame.DataFrame:\n return jQ3Z.isnull().sum()", "def Jb8S(UrXw):\n iRPO = lambda WKvO: rou...
[ "0.7377029", "0.736209", "0.7018437", "0.6865758", "0.6860433", "0.6849928", "0.67774075", "0.67522025", "0.6613899", "0.65763104", "0.65041226", "0.64097637", "0.6353468", "0.63382375", "0.63334054", "0.6326774", "0.63020074", "0.62437785", "0.6232778", "0.616988", "0.611428...
0.685658
5
Broadcasts a message to all the clients.
def iJtT(tO9_, y0cW=''): for iG42 in WNQt: iG42.send(bytes(y0cW, 'utf8') + tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iJtT(tO9_):\n for x0hE in D74A:\n x0hE.send(tO9_)", "def iJtT(tO9_):\n for mWFP in Onn9:\n Onn9[mWFP].send(bytes(tO9_, 'utf8'))", "def wBki(tO9_):\n iJtT(tO9_)\n for x0hE in YJXy.LOBBY:\n x0hE.send(tO9_)", "def iJtT(tO9_):\n for iG42 in Onn9:\n print('sock', iG4...
[ "0.82788026", "0.80906296", "0.79221004", "0.78849614", "0.7863455", "0.7689409", "0.7600799", "0.75450814", "0.75362855", "0.7479366", "0.74786234", "0.74779105", "0.7453509", "0.7449087", "0.74008024", "0.73870194", "0.7377045", "0.7366334", "0.73518723", "0.7322387", "0.73...
0.75304943
9
A view to return the index page
def d6pt(QePW): a0lH = msfn.objects.filter(category__name='new_arrivals') QpfX = {'home_new_arrivals': a0lH} return _1tc(QePW, 'home/index.html', QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(QePW):\n return SGJU('index.bp', {})", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt(YKHO):\n ...
[ "0.87294537", "0.8663693", "0.8601577", "0.8601577", "0.85746473", "0.85515493", "0.8549059", "0.8502971", "0.8490058", "0.8488612", "0.8488612", "0.8488612", "0.8488612", "0.8488612", "0.8488612", "0.8470704", "0.8463888", "0.846367", "0.84634066", "0.84347516", "0.8416772",...
0.0
-1
Pooling with a convolution of stride 2.
def SJmD(i92A, he5B, r7hl): vY24 = bdPE.layers.convolutional.Conv2D(filters=he5B, kernel_size=(3, 3), strides=(2, 2), padding='same', activation='linear', kernel_regularizer=bdPE.regularizers.l2(vFW_ * r7hl['l2_weight_reg_mult']))(i92A) if r7hl['use_BN']: vY24 = tF9S(vY24) return vY24
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xC4s(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 2, 2, 1], padding='VALID')", "def vW4G(WKvO, amza, Ot1W, FEri=(1, 1), dvgN='same', YDYE='relu'):\n WKvO = yHwh(amza, Ot1W, strides=FEri, padding=dvgN)(WKvO)\n WKvO = GVKG(axis=3)(WKvO)\n WKvO = MroH(YDYE)(WKvO)\n return WKvO", ...
[ "0.72705007", "0.7159572", "0.7073414", "0.69322443", "0.6913427", "0.68931335", "0.6832763", "0.6817464", "0.6817365", "0.68069774", "0.6773793", "0.6773793", "0.6773793", "0.6750682", "0.67501175", "0.67455906", "0.67455906", "0.6714806", "0.6693521", "0.6676285", "0.666218...
0.716916
1
Convert the scrapped text to a clean team name In particular, removes the " " between local and visitor and removes the "" "markups
def vKEt(xAqx): if isinstance(xAqx, OhYN): xAqx = xAqx.contents[0] xAqx = str(xAqx).replace(' - ', '') return xAqx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MXOF(UpvF):\n return ZbWC.sub('[^\\\\s^\\\\d^\\\\w]', '', UpvF.lower()).replace(' ', '')", "def QrZ9(mWFP):\n mWFP = mWFP.strip()\n mWFP = mWFP.lower()\n mWFP = mWFP.title()\n return mWFP", "def QrZ9(YKHO, mWFP):\n mWFP = mWFP.strip()\n mWFP = mWFP.lower()\n mWFP = mWFP.title()\n ...
[ "0.6706616", "0.65784484", "0.6466091", "0.6387462", "0.62555254", "0.6197555", "0.6176692", "0.61657786", "0.61655325", "0.6155723", "0.608195", "0.6078459", "0.6072362", "0.6065901", "0.60483676", "0.60433215", "0.6031197", "0.59942514", "0.598402", "0.59816676", "0.5955999...
0.71842676
0
Should raise a FileNotFoundError exception if file not exists
def _gq4(YKHO, VqRE): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oBXM(YKHO):\n raise NotImplementedError()", "def OloY(ZqHk):\n YB6w = ZqHk / GkAb('missing.txt')\n with trZe.raises(FileNotFoundError):\n BfDw.file_or_fail(YB6w)", "def uS51(YKHO):\n gfLF = 'f' * 200\n with YKHO.assertRaises(FileNotFoundError) as OaeV:\n jwfB(gfLF)\n YKHO.as...
[ "0.79430324", "0.7895815", "0.78116876", "0.7726289", "0.77089506", "0.7616026", "0.75767887", "0.75171506", "0.74978405", "0.7416155", "0.7354257", "0.7347896", "0.73325664", "0.7319784", "0.73122555", "0.73067033", "0.730606", "0.7301841", "0.72972816", "0.7295415", "0.7274...
0.0
-1
smooths the data and plots the loss of the validation data and the training data It uses a semilogy scale
def mBbd(YKHO): NiXp, pUHX = YKHO.smooth_data(YKHO.network.train_loss) FJpE, t05a = YKHO.smooth_data(YKHO.network.validate_loss) QrM1.plot(pUHX, NiXp, color='blue', linewidth=1, label='train loss') if FJpE: pass QrM1.ylabel('loss') QrM1.xlabel('Trainingsschritte') QrM1.legend() Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZjD3(YPaw, EvQg):\n QrM1.style.use('seaborn')\n QrM1.plot(YPaw, EvQg, color='red', label='Smooth Loss')\n QrM1.xlabel('Update step')\n QrM1.ylabel('Loss')\n QrM1.legend()\n QrM1.savefig('results/loss')\n QrM1.close()", "def VJ37(YKHO):\n WKvO = range(len(YKHO.last_train_losses))\n ...
[ "0.7322494", "0.7248883", "0.7096309", "0.7044409", "0.70223194", "0.7010942", "0.70057696", "0.70055485", "0.69807804", "0.6934347", "0.6924807", "0.69073856", "0.68826133", "0.6840807", "0.68366116", "0.682955", "0.68250406", "0.6804051", "0.6778305", "0.6766785", "0.676562...
0.77647513
0
Calculate loss given Discriminator's output and grount truth labels.
def Lvgp(YKHO, o3Uj: torch.Tensor, nbSS: bool): if YKHO.gan_mode in ['lsgan', 'vanilla']: zvoY = YKHO.get_target_tensor(o3Uj, nbSS) N77f = YKHO.loss(o3Uj, zvoY) elif YKHO.gan_mode == 'wgangp': if nbSS: N77f = -o3Uj.mean() else: N77f = o3Uj.mean() elif ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOC4(SZIZ, JQTb):\n CqbS = ZylS.keras.losses.BinaryCrossentropy(from_logits=True)\n qxD9 = CqbS(ZylS.ones_like(SZIZ), SZIZ)\n PMF5 = CqbS(ZylS.zeros_like(JQTb), JQTb)\n dxS6 = qxD9 + PMF5\n return dxS6", "def AOC4(Y8eF, aMgO):\n N77f = kT60(Y8eF, aMgO)\n Ok3P = -nMvt.log(0.5)\n return...
[ "0.7592818", "0.74335176", "0.7343635", "0.7277257", "0.72039294", "0.71900475", "0.7187789", "0.7071669", "0.6989969", "0.6988932", "0.6985067", "0.6985067", "0.6946276", "0.6946228", "0.6944675", "0.6925412", "0.6921441", "0.6907748", "0.6887785", "0.6874062", "0.68531615",...
0.0
-1
Calculate loss given Discriminator's output and ground truth labels.
def KVH6(YKHO, o3Uj: Union[Dict[str, torch.Tensor], torch.Tensor], nbSS: bool): if isinstance(o3Uj, dict): gc_b = [YKHO.calculate_loss(nvEb, nbSS) for nvEb in o3Uj.values()] N77f = ht2j.stack(gc_b).mean() else: N77f = YKHO.calculate_loss(o3Uj, nbSS) return N77f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOC4(SZIZ, JQTb):\n CqbS = ZylS.keras.losses.BinaryCrossentropy(from_logits=True)\n qxD9 = CqbS(ZylS.ones_like(SZIZ), SZIZ)\n PMF5 = CqbS(ZylS.zeros_like(JQTb), JQTb)\n dxS6 = qxD9 + PMF5\n return dxS6", "def AOC4(Y8eF, aMgO):\n N77f = kT60(Y8eF, aMgO)\n Ok3P = -nMvt.log(0.5)\n return...
[ "0.75100666", "0.735951", "0.7302409", "0.7239078", "0.7235403", "0.71448153", "0.71314824", "0.71212614", "0.7087719", "0.7073749", "0.70678884", "0.7057943", "0.6991042", "0.6991042", "0.69691986", "0.69681", "0.6940646", "0.69393677", "0.6924265", "0.6879858", "0.68690413"...
0.0
-1
ELMo bias term before softmax.
def oug5(YKHO): return YKHO.loaded[YKHO.model_name]['elmo_softmax_b']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)", "def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)", "def N93T(WKvO):\n bgro = WKvO - oyIN.max(WKvO)\n return oyIN.exp(bgro) / oyIN.sum(oyIN.exp(bgro), axis=0)", "def N93T(WKvO):\n uw5A = oyIN...
[ "0.74834985", "0.7378286", "0.73512435", "0.7350816", "0.7265742", "0.7265742", "0.7265742", "0.7265742", "0.7265742", "0.72640175", "0.7263584", "0.7262327", "0.7218127", "0.7212236", "0.7210866", "0.720059", "0.71925765", "0.7191712", "0.7191712", "0.7191712", "0.7191712", ...
0.767906
0
Get path to the model parts by name or exact path to model directory.
def oStY(YKHO, U0Yo: str) -> AzJI[GkAb, ...]: if U0Yo in Txqs: uqvc = Ow0y(U0Yo, weights_dir=YKHO.weights_path) else: uqvc = GkAb(U0Yo) return (uqvc / 'options.json', uqvc / 'weights.hdf5', uqvc / 'softmax_weights.hdf5', uqvc / 'vocab.txt')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uqvc(YKHO) -> str:\n if YKHO.short_name is not None:\n return Hy7s.path.join(CB7x, YKHO.short_name)\n else:\n raise ValueError('No short name specified!!!')", "def tyq0(pmON):\n return Hy7s.path.join(Hy7s.path.basename(Hy7s.path.dirname(pmON)), Hy7s.path.basename(pmON))", "def nmkS(m...
[ "0.73561233", "0.7177312", "0.7175839", "0.717577", "0.70743006", "0.70209676", "0.6979176", "0.6847548", "0.6815043", "0.67734754", "0.6692884", "0.6572752", "0.6571743", "0.65636766", "0.65573007", "0.6520557", "0.65069646", "0.64745075", "0.6441978", "0.6438589", "0.638417...
0.73065567
1
Loads ELMo model if needed.
def Ow0y(ZGE9: str, BXLT: Union[str, Path]=PjxR, SBt6: str=None) -> GkAb: if ZGE9 not in Txqs: raise ValueError(f'Wrong model name: {ZGE9}, choose one from {Txqs.keys()}.') nDlk = BXLT / 'resources' / ZGE9 if not nDlk.exists(): nDlk.mkdir(parents=True, exist_ok=False) mDCG = Txqs[ZGE9] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl():\n return None", "def n7La(YKHO) -> None:\n pass", "def uyMl():\n return", "def uyMl(YKHO):\n with YKHO._wl:...
[ "0.7785556", "0.7785556", "0.7758442", "0.7758442", "0.7758442", "0.7758442", "0.76658505", "0.74745125", "0.74043524", "0.72630984", "0.720164", "0.7192208", "0.71734256", "0.7134831", "0.71338457", "0.7094713", "0.7079447", "0.70747054", "0.70474416", "0.7027256", "0.701319...
0.6798851
44
Return the device class of the sensor.
def rM2U(YKHO): return YKHO._device_class
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return YKHO.sensor_details[4]", "def rM2U(YKHO):\n return YKHO._sensor_type", "def rM2U(YKHO):\n return YKHO._sensor_type", "def rM2U(YKHO):\n return YKHO._sensor_type", "def rM2U(YKHO):\n return YKHO._sensor_type", "def rM2U(YKHO):\n return FBLU[YKHO.sensor_name][1]",...
[ "0.9265827", "0.9238925", "0.9238925", "0.9238925", "0.9238925", "0.9214035", "0.91404665", "0.91343194", "0.8650176", "0.859345", "0.85366833", "0.8477653", "0.8437519", "0.83840185", "0.83799666", "0.8379769", "0.8359422", "0.8357003", "0.83563316", "0.8323163", "0.8314785"...
0.82700175
25
Return the unit of measurement of the sensor.
def b82i(YKHO): return YKHO._unit_of_measurement
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO.sensor_details[2]", "def b82i(YKHO):\n return YKHO._sensor.unit", "def b82i(YKHO):\n return FBLU[YKHO.sensor_name][0]", "def b82i(YKHO):\n return lc9R[YKHO._sensor_type][znBy]", "def b82i(YKHO):\n return lc9R[YKHO._sensor_type][znBy]", "def b82i(YKHO):\n re...
[ "0.9225522", "0.91912925", "0.9182646", "0.9151368", "0.9151368", "0.91252875", "0.9092593", "0.90909225", "0.9056699", "0.90454113", "0.89893603", "0.89889205", "0.8988497", "0.87850195", "0.8759265", "0.87568754", "0.8740964", "0.87168163", "0.87168163", "0.87150747", "0.87...
0.8670435
29
Return False as this device should never be polled.
def KZ_I(YKHO) -> bool: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KZ_I(YKHO):\n return False", "def KZ_I(YKHO):\n return False", "def KZ_I(YKHO):\n return False", "def KZ_I(YKHO):\n return False", "def KZ_I(YKHO):\n return False", "def KZ_I(YKHO):\n return False", "def KZ_I(YKHO):\n return False", "def KZ_I(YKHO):\n return False", "def...
[ "0.8436692", "0.8054975", "0.8054975", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", "0.80179507", ...
0.78750587
54
Return the device state attributes.
def R1i3(YKHO): H5ew = VQR1[YKHO._name][1] return {H5ew: YKHO._boiler.status[H5ew]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3...
[ "0.9288312", "0.92827606", "0.92461693", "0.92461693", "0.92461693", "0.9220751", "0.9220751", "0.9220751", "0.9215518", "0.9215518", "0.9215518", "0.9215518", "0.92101526", "0.92101526", "0.92101526", "0.92101526", "0.92101526", "0.92046595", "0.92007667", "0.92007667", "0.9...
0.8450751
71
Computes the backward pass for an affine layer.
def Kt1o(zYcP, wyyA): WKvO, q7In, z9RD = wyyA Jw7X, ABxu, wv7z = (None, None, None) CAzz = WKvO.reshape((oyIN.shape(WKvO)[0], -1)) kFSp = zYcP @ q7In.T Jw7X = kFSp.reshape(oyIN.shape(WKvO)) ABxu = CAzz.T @ zYcP wv7z = zYcP.T @ oyIN.ones(oyIN.shape(WKvO)[0]) pass return (Jw7X, ABxu, w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kt1o(zYcP, wyyA):\n WKvO, yzQ0, Fg_i = wyyA\n Jw7X, ncXl, NCls = (None, None, None)\n Jw7X = zYcP.dot(yzQ0.T).reshape(WKvO.shape)\n ncXl = WKvO.reshape(WKvO.shape[0], -1).T.dot(zYcP)\n NCls = oyIN.ones((1, zYcP.shape[0])).dot(zYcP)\n return (Jw7X, ncXl, NCls)", "def Kt1o(zYcP, wyyA):\n W...
[ "0.7367061", "0.7366208", "0.7323748", "0.7315326", "0.7315326", "0.7301392", "0.7301392", "0.7301392", "0.7301392", "0.7301392", "0.7294111", "0.72859037", "0.72501343", "0.72417885", "0.72236574", "0.71980554", "0.7133653", "0.7117284", "0.7052766", "0.7050946", "0.7048173"...
0.71572304
16
Computes the forward pass for a layer of rectified linear units (ReLUs).
def wN5Y(WKvO): yvT9 = None yvT9 = WKvO * (WKvO > 0) pass wyyA = WKvO return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO = ht2j.from_numpy(WKvO).type(ht2j.FloatTensor).unsqueeze(0)\n WKvO = ht2j.autograd.Variable(WKvO)\n WKvO = vuvg.relu(YKHO.l1(WKvO))\n WKvO = YKHO.l2(WKvO)\n return WKvO", "def KVH6(YKHO, WKvO: Tensor) -> llWB:\n return StA9.reglu(WKvO)", "def drfk(YKHO):\n\n de...
[ "0.6679781", "0.66286653", "0.6547163", "0.6460596", "0.64428824", "0.64364123", "0.63979214", "0.6371656", "0.6319996", "0.63163096", "0.6305067", "0.6300998", "0.62817127", "0.62416285", "0.62340057", "0.6208523", "0.6186704", "0.6181222", "0.61805546", "0.6180527", "0.6142...
0.61818707
17
Computes the loss and gradient for softmax classification.
def w7Eo(WKvO, LVAh): BFeB = oyIN.exp(WKvO - oyIN.max(WKvO, axis=1, keepdims=True)) BFeB /= oyIN.sum(BFeB, axis=1, keepdims=True) r8hN = WKvO.shape[0] N77f = -oyIN.sum(oyIN.log(BFeB[oyIN.arange(r8hN), LVAh])) / r8hN Jw7X = BFeB.copy() Jw7X[oyIN.arange(r8hN), LVAh] -= 1 Jw7X /= r8hN retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vyIu(XcU5, EcVT, LVAh, lQ3t):\n N77f = 0.0\n HFON = oyIN.zeros_like(XcU5)\n jTqs = XcU5.shape[1]\n o6yt = EcVT.shape[0]\n N77f = 0.0\n for YRbF in range(o6yt):\n cCrA = EcVT[YRbF].dot(XcU5)\n IUaw = N93T(cCrA)\n HUaR = IUaw[LVAh[YRbF]]\n N77f += -oyIN.log(HUaR)\n ...
[ "0.7839425", "0.78304684", "0.7753366", "0.7729938", "0.7727774", "0.7578895", "0.7563663", "0.74926066", "0.7474452", "0.7455784", "0.74416703", "0.7431377", "0.74229133", "0.7422538", "0.740921", "0.74013317", "0.739999", "0.73985493", "0.73796654", "0.7371129", "0.73416007...
0.0
-1
Returns the analyzer type.
def pbgS(YKHO): return YKHO.TOOL_NAME
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZPJ(YKHO):\n return YKHO.content_type.model", "def fpam(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'analysis_type')", "def rSDZ(YKHO):\n return YKHO._analyzer", "def type(YKHO):\n return YKHO._type.get_waarde()", "def type(YKHO):\n return YKHO._type.get_waarde()", "def type(YKHO):\n ...
[ "0.82918334", "0.75069875", "0.71369034", "0.6754918", "0.6754918", "0.6754918", "0.6754918", "0.6754918", "0.6754918", "0.6754918", "0.6754918", "0.6754918", "0.6754918", "0.66443586", "0.6636018", "0.66285855", "0.66220015", "0.6610018", "0.6596911", "0.6596911", "0.6596911...
0.81698334
1
Estimate the autocorrelation time of a time series
def a8MM(nPrm, _Drm=10): return wMyZ.acor(oyIN.array(nPrm), _Drm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fSQ5(YKHO):\n WmbL = YKHO.noise.shape[0]\n try:\n YKHO.acf = oyIN.zeros([WmbL, YKHO.N - 1])\n for YRbF in range(WmbL):\n YKHO.acf[YRbF, :] = RkFZ.acf(YKHO.noise[YRbF, :])\n except ValueError:\n u54L = RkFZ.acf(YKHO.noise[0, :]).size\n YKHO.acf = oyIN.zeros([WmbL,...
[ "0.75899714", "0.73787695", "0.7362934", "0.7342298", "0.73208904", "0.710477", "0.7058795", "0.7058358", "0.7028679", "0.7021149", "0.6985425", "0.69661534", "0.6907058", "0.68398523", "0.6792917", "0.678888", "0.6608839", "0.64926946", "0.64820564", "0.64660215", "0.6435602...
0.0
-1
Given a specific DataFrame in the bikeshare data, this function will return the most popular month traveled.
def sve5(jQ3Z): jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month_name() sve5 = jQ3Z['month'].mode() print('The most popular month taveled is {}.\n'.format(sve5).replace('0 ', ''))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sve5(jQ3Z):\n X_bn = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n Y7hz = int(jQ3Z['month'].mode()[0])\n vswJ = X_bn[Y7hz - 1]\n print('Most popular Month of travel is {}'.format(vswJ))\n print()\n print()", "def...
[ "0.7806607", "0.69288397", "0.6541148", "0.6538922", "0.65092504", "0.64157605", "0.63772637", "0.6362098", "0.63553804", "0.6295363", "0.62674713", "0.62350583", "0.6229142", "0.62242526", "0.6217705", "0.6193328", "0.6185384", "0.6177976", "0.61650544", "0.61303234", "0.611...
0.75126266
1
Given a specific DataFrame in the bikeshare data, this function will return the most popular day traveled.
def StUT(jQ3Z): jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name StUT = jQ3Z['day_of_week'].mode() print('The most popular day of the week traveled is{}.\n'.format(StUT).replace('0 ', ''))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def StUT(jQ3Z):\n VXVO = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']\n NO20 = jQ3Z['day_of_week'].mode()[0]\n print('The most popular day of week is {}.'.format(NO20))\n print()\n print()", "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Tr...
[ "0.7356976", "0.6296062", "0.6292771", "0.6243111", "0.62291974", "0.62245345", "0.62196714", "0.6209739", "0.6190135", "0.6173108", "0.61691934", "0.615117", "0.61368185", "0.6131918", "0.6122489", "0.6104648", "0.6102524", "0.6098236", "0.6086494", "0.60856533", "0.60803264...
0.72551006
1
Given a specific DataFrame in the bikeshare data, this function will return the most popular hour traveled.
def pRsb(jQ3Z): jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour pRsb = jQ3Z['hour'].mode()[0] print('The most popular hour to start to travel is {}.\n'.format(pRsb).replace('0 ', ''))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AgEN():\n jQ3Z = Bcwd.load_chicago_data()\n TE5N(jQ3Z)\n pRsb = jQ3Z['hour'].mode()[0]\n print('Most Frequent Start Hour:', pRsb)", "def dWJR(jQ3Z):\n print(\"All right, let's take a look at the data for {}.\".format(j5sA.title()))\n print('\\nCalculating The Most Frequent Times of Travel.....
[ "0.73360956", "0.69150513", "0.68519264", "0.6829422", "0.6817214", "0.6815492", "0.6802193", "0.675414", "0.6749985", "0.6733802", "0.67262614", "0.670432", "0.67025906", "0.66913146", "0.6691182", "0.66900414", "0.6682277", "0.6678535", "0.66680515", "0.6650583", "0.6648156...
0.7524878
0
Given a specific DataFrame in the bikeshare data, this function will return the most popular stations visited.
def Sv38(jQ3Z): _8rG = jQ3Z['Start Station'].mode() print('The most commonly used start station is\n{}.\n'.format(_8rG).replace('0', '')) oFx8 = jQ3Z['End Station'].mode() print('The most commonly used end station is\n{}.\n'.format(oFx8).replace('0', ''))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n CuPk = jQ3Z['Start Station'].mode().values[0]\n print('The most popular station start station \\n', CuPk)\n nG3J = jQ3Z['End Station'].mode().values[0]\n print('\\n The most popular station e...
[ "0.7357309", "0.7303896", "0.7269213", "0.7263169", "0.7196147", "0.718066", "0.7120482", "0.71147484", "0.7100947", "0.70990884", "0.7088948", "0.70694745", "0.7063066", "0.7043753", "0.70407647", "0.7039144", "0.70337504", "0.70315176", "0.7029596", "0.7023402", "0.7011559"...
0.72001463
4
Given a specific DataFrame in the bikeshare data, this function will return the most popular trips.
def _Ek3(jQ3Z): d2iE = jQ3Z.groupby(['Start Station', 'End Station']).size().sort_values(ascending=False).nlargest(1) print('The most commonly used start and end station is\n{}.\n'.format(d2iE))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(XxEM):\n print('\\nCalculating The Most Popular Stations and Trips...\\n')\n SWox = ITS7.time()\n uxom = XxEM['Start Station'].mode()[0]\n print('Most common start station: ' + uxom)\n vjeN = XxEM['End Station'].mode()[0]\n print('Most common end station: ' + vjeN)\n aLXf = XxEM.group...
[ "0.6253745", "0.62391204", "0.6134595", "0.6068835", "0.60449076", "0.6029851", "0.60021573", "0.5995254", "0.59868646", "0.59839725", "0.5973437", "0.5946282", "0.5907793", "0.59039956", "0.59020025", "0.5892315", "0.58790535", "0.58659375", "0.58532965", "0.5834049", "0.583...
0.70754796
0
Reads model from Pickle file.
def oLG2(Enyt): FtKE = open(Enyt, 'rb') efKw = t2lc.load(FtKE) FtKE.close() return efKw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO):\n nUeQ = open(YKHO.model_filename, 'rb')\n C3ST = t2lc.load(nUeQ)\n nUeQ.close()\n return C3ST", "def uyMl(qaEx):\n with open(qaEx, 'br') as tyeH:\n nPrm = t2lc.load(tyeH)\n return nPrm", "def tyeH(YKHO, pmON):\n RKD7.info(f'Reading model from {pmON.absolute()}.')\n ...
[ "0.7719769", "0.77003765", "0.76364774", "0.7611275", "0.7610421", "0.7609804", "0.75665253", "0.7556387", "0.7540534", "0.7494502", "0.7451434", "0.7450369", "0.740624", "0.7392698", "0.7389853", "0.7375445", "0.73673755", "0.73653316", "0.73574317", "0.7343207", "0.7238333"...
0.81035876
0
Override this method to provide a transformation for the yaxis grid and ticks.
def bW3D(YKHO, Nygx='grid'): if Nygx not in ['tick1', 'tick2', 'grid']: raise ValueError("'which' must be one of 'tick1', 'tick2', or 'grid'") return YKHO._yaxis_transform
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bW3D(YKHO, Nygx='grid'):\n assert Nygx in ['tick1', 'tick2', 'grid']\n return YKHO._yaxis_transform", "def bW3D(YKHO, Nygx='grid'):\n if Nygx == 'grid':\n return YKHO._yaxis_transform\n elif Nygx == 'tick1':\n return YKHO.spines['left'].get_spine_transform()\n elif Nygx == 'tick2...
[ "0.72449684", "0.6656178", "0.6614399", "0.65941703", "0.64425486", "0.64353037", "0.6363623", "0.6357817", "0.62770075", "0.6263442", "0.62609184", "0.62515193", "0.6249834", "0.624365", "0.6201398", "0.61573935", "0.61490315", "0.61459714", "0.61206686", "0.6104313", "0.610...
0.69555086
1
Override this method to provide a transformation for the yaxis tick labels. Returns a tuple of the form (transform, valign, halign)
def FR9F(YKHO, hVLt): return (YKHO._yaxis_text1_transform, 'center', 'right')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EJRu(YKHO, U_zW):\n lQs7 = I8kJ.rcParams['ytick.alignment']\n return (YKHO.get_yaxis_transform(which='tick2') + zBuo.ScaledTranslation(U_zW / 72.0, 0, YKHO.figure.dpi_scale_trans), lQs7, 'left')", "def EJRu(YKHO, hVLt):\n return (YKHO._yaxis_text2_transform, 'center', 'left')", "def EJRu(YKHO, hVL...
[ "0.7046533", "0.69903815", "0.69903815", "0.69759566", "0.6865246", "0.67250776", "0.671091", "0.67045027", "0.666181", "0.6645234", "0.6645234", "0.65885544", "0.6495433", "0.64710015", "0.6450685", "0.6445588", "0.6367382", "0.6367382", "0.6336793", "0.627837", "0.62662876"...
0.6715985
6
Override this method to provide a transformation for the secondary yaxis tick labels. Returns a tuple of the form (transform, valign, halign)
def EJRu(YKHO, hVLt): return (YKHO._yaxis_text2_transform, 'center', 'left')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EJRu(YKHO, U_zW):\n lQs7 = I8kJ.rcParams['ytick.alignment']\n return (YKHO.get_yaxis_transform(which='tick2') + zBuo.ScaledTranslation(U_zW / 72.0, 0, YKHO.figure.dpi_scale_trans), lQs7, 'left')", "def EJRu(YKHO, U_zW):\n return (YKHO.get_yaxis_transform(which='tick2') + zBuo.ScaledTranslation(U_zW ...
[ "0.7441807", "0.73114765", "0.70224804", "0.7012101", "0.6975142", "0.692286", "0.692286", "0.67901117", "0.67636335", "0.67441684", "0.67441684", "0.6716187", "0.65203774", "0.6419853", "0.64149183", "0.64149183", "0.640035", "0.6222013", "0.6141116", "0.6096682", "0.6082568...
0.7321167
1
Inserts a word into the trie.
def JPHp(YKHO, GIN8: str) -> None: if not GIN8: YKHO.is_end = True return None Z9rn = GIN8[0] if Z9rn not in YKHO.children: exwG = YKHO.children[Z9rn] = etby() else: exwG = YKHO.children[Z9rn] exwG.insert(GIN8[1:])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True", "def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y...
[ "0.89354694", "0.8876187", "0.88760144", "0.8867064", "0.8846206", "0.8835824", "0.88300204", "0.88247544", "0.8822012", "0.88030744", "0.8797663", "0.8792274", "0.87875485", "0.8786605", "0.8786306", "0.8780714", "0.87802637", "0.87769246", "0.87714195", "0.87679803", "0.875...
0.8507666
62
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8: str) -> bool: if not GIN8: return YKHO.is_end Z9rn = GIN8[0] if Z9rn in YKHO.children: return YKHO.children[Z9rn].search(GIN8[1:]) else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word", "def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')...
[ "0.82730556", "0.8268669", "0.8264989", "0.821454", "0.8189983", "0.81762034", "0.81695247", "0.81329536", "0.7981468", "0.7973667", "0.7966321", "0.79540753", "0.7881218", "0.7876813", "0.78663623", "0.7835046", "0.7819606", "0.7812851", "0.7811768", "0.7795306", "0.77902055...
0.0
-1
Returns if there is any word in the trie that starts with the given prefix.
def BYxH(YKHO, y0cW: str) -> bool: if not y0cW: return True Z9rn = y0cW[0] if Z9rn in YKHO.children: return YKHO.children[Z9rn].startsWith(y0cW[1:]) else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals...
[ "0.86418957", "0.8456077", "0.8439758", "0.84152204", "0.8414917", "0.8406607", "0.83812594", "0.8369774", "0.83355415", "0.8326945", "0.83266926", "0.8239315", "0.8228612", "0.8172047", "0.81602836", "0.81522566", "0.81466633", "0.811517", "0.80111045", "0.79831576", "0.7983...
0.0
-1
Polls for a device request from your Digi Remote Manager account. The returned ``device_request`` object is a filelike object containing the payload of the request that can be read and answered using the ``write`` method.
def gZHs() -> h8nf[gDGA]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cwQI(YKHO, QePW):\n G9jH.info('User %s', wnQ_.get_current_user())\n vCWU = Jpbe.AuthUser(wnQ_.get_current_user())\n if not vCWU:\n raise wnQ_.ForbiddenException('Unauthorized client device')\n begE = C3ST.RelayDevice.get_or_insert('%s%s' % (QePW.device_id, vCWU.key.id()), parent=vCWU.key)\n ...
[ "0.6097309", "0.59524965", "0.5704876", "0.5619557", "0.56071496", "0.56071496", "0.56071496", "0.56071496", "0.56071496", "0.56071496", "0.56071496", "0.5597484", "0.5544205", "0.55023557", "0.5485756", "0.5384945", "0.53615946", "0.5286691", "0.52825606", "0.5236725", "0.52...
0.52641976
19
Class constructor. Instantiates a new ``DataPoints`` object with the provided parameters.
def FIMM(YKHO, PdI0: int=uRmg) -> None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HZHS(Emd4, nPrm):\n return Emd4(nPrm['points'])", "def FIMM(YKHO, JBZA: str=None, u54L: int=None, nPrm: List[DataPoint]=None):\n YKHO.swagger_types = {'description': str, 'length': int, 'data': x1iM[N1L3]}\n YKHO.attribute_map = {'description': 'description', 'length': 'length', 'data': 'data'}\n ...
[ "0.69570947", "0.6787069", "0.6781498", "0.67619294", "0.668128", "0.6669261", "0.6517516", "0.649733", "0.64657634", "0.6436929", "0.6432483", "0.64015776", "0.63633674", "0.63515264", "0.6337682", "0.628871", "0.6286835", "0.6277628", "0.6262209", "0.6253067", "0.6232248", ...
0.0
-1
View for signing out of an account. Signs the user out, and returns them to the home page.
def enVg(QePW): erK4(QePW) return vKnz('index')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F377(QePW):\n Jpbe.logout(QePW)\n return vKnz('home')", "def F377(QePW):\n erK4(QePW)\n yEHD.info(QePW, 'Logged out successfully!')\n return vKnz('index')", "def OJVg(YKHO):\n YKHO.get('/sign-out', follow_redirects=False)", "def cerm():\n oLi7()\n return vKnz(nKyW('sign_in'))", ...
[ "0.84149957", "0.8313628", "0.82637763", "0.8248464", "0.82477117", "0.8243649", "0.81073385", "0.8056319", "0.8001773", "0.7990817", "0.79417336", "0.7924187", "0.7918952", "0.7865805", "0.7864602", "0.7854355", "0.7853286", "0.7836374", "0.78292155", "0.7825364", "0.7812331...
0.868234
0
Get the bounds of the image. Returns ``(lon_min, lon_max, lat_min, lat_max)``, in radians. Latitudes should be "unwrapped", so that ``lat_min=30, lat_max=60`` implies that the image spans 30 degrees in latitude. ``lat_min=60, lat_max=390`` has the same effective bounding values, but represents an image that spans 330 d...
def NI1i(YKHO): W50V = oyIN.pi / 180 sLNq = 32 r0ez, TeV4 = YKHO._image.shape hLDV = oyIN.empty((sLNq, sLNq, 2)) XxA4 = oyIN.linspace(0.5, TeV4 + 0.5, sLNq) O3fn = oyIN.linspace(0.5, r0ez + 0.5, sLNq) hLDV[..., 0] = XxA4.reshape((-1, 1)) hLDV[..., 1] = O3fn.reshape((1, -1)) vyji = YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7zS(YKHO):\n c5uu = []\n for E1Oi in YKHO.polygons:\n c5uu.append(E1Oi.bounds)\n c5uu = oyIN.array(c5uu)\n BQGg = oyIN.min(c5uu[:, 0])\n h3cg = oyIN.min(c5uu[:, 1])\n bYzl = oyIN.max(c5uu[:, 2])\n Z3uP = oyIN.max(c5uu[:, 3])\n return (BQGg, h3cg, bYzl, Z3uP)", "def bCHG(YKHO):...
[ "0.7410743", "0.73927724", "0.737702", "0.72654396", "0.72138536", "0.7183928", "0.70861447", "0.70715606", "0.6956048", "0.6925081", "0.69156706", "0.6909185", "0.68555665", "0.684689", "0.6835135", "0.6768393", "0.6717379", "0.671024", "0.6686438", "0.6649709", "0.66488343"...
0.69356775
9
Takes a list with lists and normal strings and flattens it.
def PWgb(yv6U): for WKvO in yv6U: if hasattr(WKvO, '__iter__') and (not isinstance(WKvO, str)): for LVAh in PWgb(WKvO): yield LVAh else: yield WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uSwp(LzUd: List[List[str]]) -> x1iM[str]:\n hlel = []\n for YRbF in LzUd:\n hlel.extend(YRbF)\n return hlel", "def GarA(vC9B):\n S06t = []\n for YRbF in vC9B:\n if isinstance(YRbF, str) or isinstance(YRbF, QMSQ):\n S06t.append(YRbF)\n elif isinstance(YRbF, (list...
[ "0.7829508", "0.7256879", "0.7256675", "0.72343904", "0.7212649", "0.71764386", "0.7141177", "0.70835614", "0.70699376", "0.7036611", "0.69940466", "0.6990137", "0.6986312", "0.6982095", "0.6956357", "0.69456756", "0.69402605", "0.6923385", "0.6910335", "0.6906449", "0.689885...
0.67025566
39
Property which gets the API version of this Google chart container.
def nNXP(YKHO): return YKHO._api
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def clva(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('apiVersion'))", "def clva(YKHO):\n return YKHO._client._config.version", "def clva(YKHO) -> str:\n return qe4Y.get(YKHO, 'api_version')", "def clva(YKHO):\n return YKHO._api_version", "def clva(YKHO) -> str:\n return YKHO._...
[ "0.7726", "0.7623374", "0.76153845", "0.7598014", "0.7592174", "0.7592174", "0.7472045", "0.74681157", "0.7272321", "0.7272321", "0.7272321", "0.7272321", "0.7272321", "0.7272321", "0.72229475", "0.7205719", "0.7205719", "0.7205719", "0.7200789", "0.7188515", "0.7078703", "...
0.0
-1
Property which gets the data table of this chart.
def nPrm(YKHO): return YKHO._data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja1s(YKHO):\n return YKHO._data", "def Bdii(YKHO):\n return YKHO._data_field_table", "def tyNF(YKHO):\n return YKHO.to_pandas()", "def tyNF(YKHO):\n return YKHO.to_pandas()", "def tyNF(YKHO):\n return YKHO._table", "def tyNF(YKHO):\n return YKHO._table", "def tyNF(YKHO):\n retu...
[ "0.7842658", "0.7214427", "0.7108629", "0.7108629", "0.7006422", "0.7006422", "0.7006422", "0.7006422", "0.7006422", "0.7006422", "0.7006422", "0.69813126", "0.69110805", "0.6880804", "0.6848905", "0.684141", "0.68131894", "0.6781349", "0.67627037", "0.6709706", "0.66725546",...
0.0
-1
Property which can be used to get and set the title of this chart.
def leAC(YKHO): try: return YKHO.options['title'] except KeyError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XIus(YKHO, leAC=''):\n return YKHO.title", "def leAC(YKHO):\n return YKHO.properties.get('Title', None)", "def leAC(YKHO):\n return YKHO.properties.get('Title', None)", "def leAC(YKHO):\n if 'title' in YKHO._prop_dict:\n return YKHO._prop_dict['title']\n else:\n return None",...
[ "0.81777096", "0.8164753", "0.81519634", "0.8122681", "0.8077275", "0.80454516", "0.80454516", "0.804519", "0.804519", "0.804519", "0.8036539", "0.8036539", "0.8036539", "0.8036539", "0.8036539", "0.8036539", "0.8036539", "0.8036539", "0.8036539", "0.8036539", "0.8036539", ...
0.0
-1
Helper to create a Variable stored on CPU memory.
def js1U(mWFP, ROpF, MuED, ISDQ=False, XJsN=True): with ZylS.device('/cpu:0'): yDqo = ZylS.float16 if ISDQ else ZylS.float32 SRYB = ZylS.get_variable(mWFP, ROpF, initializer=MuED, dtype=yDqo, trainable=XJsN) return SRYB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def js1U(mWFP, ROpF, MuED, XJsN):\n with ZylS.device('/cpu:0'):\n yDqo = ZylS.float32\n SRYB = ZylS.get_variable(mWFP, ROpF, initializer=MuED, dtype=yDqo, trainable=XJsN)\n return SRYB", "def js1U(mWFP, ROpF, MuED, yDqo):\n with ZylS.device('/cpu:0'):\n SRYB = ZylS.get_variable(mWFP...
[ "0.7053174", "0.68374807", "0.68162715", "0.6711794", "0.670901", "0.6693301", "0.6679854", "0.66779804", "0.6661204", "0.6656669", "0.66533124", "0.66533124", "0.6645065", "0.6637938", "0.6597281", "0.65675366", "0.6566952", "0.6566952", "0.6555388", "0.65545285", "0.6546156...
0.669595
5
Helper to create an initialized Variable with weight decay. Note that the Variable is initialized with a truncated normal distribution. A weight decay is added only if one is specified.
def xSbR(mWFP, ROpF, z2bo, TI1B, gfK_=True): if gfK_: MuED = ZylS.contrib.layers.xavier_initializer() else: MuED = ZylS.truncated_normal_initializer(stddev=z2bo) SRYB = js1U(mWFP, ROpF, MuED) if TI1B is not None: oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJ6q(mWFP, ROpF, z2bo, TI1B):\n yDqo = ZylS.float32\n SRYB = Es0b(mWFP, ROpF, initializer=ZylS.compat.v1.truncated_normal_initializer(stddev=z2bo, dtype=yDqo))\n if TI1B is not None:\n oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss')\n ZylS.compat.v1.add_to_collectio...
[ "0.74697876", "0.7434061", "0.7426555", "0.7365209", "0.733189", "0.7322436", "0.7322436", "0.7308587", "0.7303356", "0.7302539", "0.7286937", "0.72847134", "0.72843325", "0.72805214", "0.727914", "0.72651875", "0.72611326", "0.72611326", "0.7257363", "0.7246702", "0.72118825...
0.72432566
20
Batch normalization on convolutional maps and beyond...
def gJFC(g4y1, LT6S, rrBf, jWwT, okEi): with ZylS.variable_scope(rrBf) as Sa_m: Qi3c = g4y1.get_shape()[-1].value UqYS = ZylS.Variable(ZylS.constant(0.0, shape=[Qi3c]), name='beta', trainable=True) KMvS = ZylS.Variable(ZylS.constant(1.0, shape=[Qi3c]), name='gamma', trainable=True) _...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lS53(CK9p):\n assert len(CK9p.get_shape()) == 4\n yphq = CK9p.get_shape().as_list()\n JBMS, SRYB = ZylS.nn.moments(CK9p, axes=[0, 1, 2])\n tYiq = yphq[3]\n vgXP = ZylS.Variable(ZylS.zeros([tYiq]))\n NXpY = ZylS.Variable(ZylS.ones([tYiq]))\n idFg = ZylS.nn.batch_normalization(CK9p, JBMS, SR...
[ "0.72721136", "0.71196085", "0.70102", "0.69890773", "0.6937775", "0.6896041", "0.68219525", "0.68068975", "0.6798221", "0.6770462", "0.6764394", "0.67466676", "0.6742447", "0.6721099", "0.66890913", "0.6688255", "0.66618615", "0.6646878", "0.66231436", "0.6621553", "0.661774...
0.0
-1
This return a new_inbox queryset. Serves similar function as newest_messages_with_inclusion_tag()
def zu4o(CBIr): return CBIr.messages_received.exclude(flag=LuKW.FLAG_ACTIVE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AKXl(YKHO):\n Z9JV = A0Fa(cuiw.base_get('inbox.php').text, 'html.parser')\n YKHO.new_messages = YKHO.__parse_new_messages(Z9JV)\n return YKHO.new_messages", "def k66M(YKHO):\n return LuKW.objects.order_by('-createAt')[:5]", "def lCDu(CBIr, leAC='Inbox'):\n yEHD = LuKW.objects.filter(T8ck(rec...
[ "0.7062635", "0.69904006", "0.6681712", "0.65163064", "0.6323332", "0.62438035", "0.62232023", "0.61750525", "0.6101731", "0.6003273", "0.59370446", "0.58935994", "0.5890954", "0.587549", "0.58745813", "0.58615464", "0.5860711", "0.5860477", "0.5827555", "0.5801552", "0.57872...
0.0
-1
Creates a random float32 tensor
def X1kN(ROpF, NXpY=1.0, xlLU=None, mWFP=None): if xlLU is None: xlLU = XdDr q5Rz = 1 for tpio in ROpF: q5Rz *= tpio hkxX = [] for bGrB in range(q5Rz): hkxX.append(xlLU.random() * NXpY) return ht2j.tensor(data=hkxX, dtype=ht2j.float).view(ROpF).contiguous()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vWdF(ROpF):\n return ht2j.rand(ROpF).float()", "def kM13():\n M4N3 = tuKI.choice(YfpN)\n ROpF = tuKI.choice((1, (2, 3), (4, 5, 6), (7, 8, 9, 10)))\n a1PO = ht2j.rand(ROpF).to(M4N3)\n nonlocal expected\n aEqx += a1PO.numel()\n return a1PO", "def gFiC(WKvO):\n return ZylS.multiply(WKv...
[ "0.68233454", "0.6793567", "0.64884657", "0.6343461", "0.6248594", "0.6216999", "0.620934", "0.61665493", "0.61665493", "0.6158765", "0.61475813", "0.6124621", "0.6122952", "0.6115069", "0.61085624", "0.61016935", "0.6061143", "0.6041315", "0.6035566", "0.6021247", "0.6020824...
0.65166676
2
Validates a given input is of type boolean.
def _J6_(xHuz): if VBj0(xHuz): ZuGZ = xHuz @zaGL(ZuGZ) def XIpm(BWXx): k3xU(isinstance(BWXx, bool), 'not of type boolean') return ZuGZ(BWXx) return XIpm k3xU(isinstance(xHuz, bool), 'not of type boolean')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TX7R(BWXx):\n if isinstance(BWXx, bool):\n return BWXx\n elif str(BWXx).lower() in ['true', 't', '1']:\n return True\n elif str(BWXx).lower() in ['false', 'f', '0']:\n return False\n else:\n raise sUXu(message='Invalid boolean value: %(value)s', params={'value': BWXx})",...
[ "0.8274274", "0.8064266", "0.80642533", "0.8032287", "0.7648174", "0.7606254", "0.7571177", "0.7491935", "0.7450819", "0.7395391", "0.73848826", "0.73532516", "0.73515975", "0.7347581", "0.73401594", "0.7337816", "0.7328883", "0.7276933", "0.72493106", "0.72454876", "0.723815...
0.0
-1
return a Gaussian distribution over x
def IAWS(WKvO, yGTL, wEsz): return 1 / (wEsz * oyIN.sqrt(2 * oyIN.pi)) * oyIN.exp(-1 / 2 * ((WKvO - yGTL) / wEsz) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / PZyS(2.0 * mM0K * WTkW ** 2)", "def HqNy(yGTL=0, WTkW=1, WKvO=None):\n return oyIN.exp(-oyIN.power(WKvO - yGTL, 2) / (2 * oyIN.power(WTkW, 2)))", "def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKvO) ** 2 / WTkW ** ...
[ "0.8757841", "0.8739892", "0.87374705", "0.8639443", "0.86275756", "0.8624056", "0.8608669", "0.86085516", "0.8546459", "0.85387707", "0.85356206", "0.8507351", "0.84733", "0.8461972", "0.83779764", "0.8306478", "0.8277164", "0.81782335", "0.8163687", "0.81589127", "0.8139397...
0.8292228
16
Gets width of the histogram bucket.
def TVTK(YKHO): return YKHO._width
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bFc4(YKHO):\n YKHO.binWidth = (YKHO.range[1] - YKHO.range[0]) / YKHO.numBins\n YKHO.initFrequencies()", "def mHtI(YKHO):\n return YKHO._time[1]", "def FNTW(YKHO):\n return YKHO._scroll.bar_width", "def iNq5(YKHO):\n return oyIN.diff(YKHO.energy_edges, axis=0)", "def zNig(YKHO):\n retu...
[ "0.7199999", "0.70566326", "0.691566", "0.6776221", "0.67516154", "0.67516154", "0.67174673", "0.6692103", "0.6656128", "0.66531813", "0.66348624", "0.66135055", "0.6575138", "0.65714836", "0.6520894", "0.6518168", "0.649606", "0.6489917", "0.6470251", "0.64630616", "0.646306...
0.0
-1
Gets the bucket as tuple.
def pTc2(YKHO): return (YKHO._left, YKHO._width, YKHO._count)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gSR0(YKHO, sPB1=True):\n if not YKHO._re_sampled_buckets:\n YKHO._re_sample_buckets()\n if not sPB1:\n return YKHO._re_sampled_buckets\n return tuple((WE7e.as_tuple() for WE7e in YKHO._re_sampled_buckets))", "def czD3(YKHO):\n return YKHO._bucket", "def OP2O(YKHO, d6pt):\n Wb05...
[ "0.68618834", "0.67013896", "0.6622456", "0.6488076", "0.64387053", "0.6429433", "0.6406717", "0.638986", "0.6272201", "0.6272201", "0.6272201", "0.6240633", "0.62389326", "0.6216681", "0.6208957", "0.61653614", "0.60747933", "0.6067737", "0.60395813", "0.5957896", "0.5938729...
0.5665536
48
Read data from products from id categories and search
def bUgS(YKHO, qL4X): OQ7l.DB_CONNECT.execute("select id_product,name_product from products where id_categories= '%s'" % qL4X) ficO = OQ7l.DB_CONNECT.fetchall() print('N° | Products names\n________________________\n') for yoUu, Ldyl in enumerate(ficO, start=1): YKHO.index.append(Ldyl[0]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AI9R(YKHO):\n Y5dh = YKHO.get_category()\n Nsmo = []\n xfqf = {}\n for YRbF in range(10):\n for B2Dn in range(1, 20):\n Mkmy = G4JS.get(YKHO.url_cat[0:-8] + '/' + Y5dh[YRbF] + '/' + str(B2Dn) + '.json')\n F0em = Mkmy.json()\n QDq6 = F0em['products']\n ...
[ "0.71757025", "0.7147264", "0.7089576", "0.7055428", "0.6985191", "0.68030083", "0.67291445", "0.67116326", "0.6700196", "0.66746455", "0.66640353", "0.6641719", "0.66350996", "0.66151553", "0.6592221", "0.65541875", "0.653644", "0.65077806", "0.6493022", "0.6490951", "0.6467...
0.7159218
1
Read data from products from id categories and search
def wzLQ(YKHO, DEno): OQ7l.DB_CONNECT.execute('select * from products where id_product= %s ' % DEno) mbwC = OQ7l.DB_CONNECT.fetchone() qL4X = mbwC[3] OQ7l.DB_CONNECT.execute("select name_categories from product_categories where id_categories='%s'" % qL4X) ipek = OQ7l.DB_CONNECT.fetchone() OQ7l.D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AI9R(YKHO):\n Y5dh = YKHO.get_category()\n Nsmo = []\n xfqf = {}\n for YRbF in range(10):\n for B2Dn in range(1, 20):\n Mkmy = G4JS.get(YKHO.url_cat[0:-8] + '/' + Y5dh[YRbF] + '/' + str(B2Dn) + '.json')\n F0em = Mkmy.json()\n QDq6 = F0em['products']\n ...
[ "0.71757025", "0.7159218", "0.7147264", "0.7089576", "0.7055428", "0.6985191", "0.68030083", "0.67291445", "0.67116326", "0.6700196", "0.66746455", "0.66640353", "0.6641719", "0.66350996", "0.6592221", "0.65541875", "0.653644", "0.65077806", "0.6493022", "0.6490951", "0.64672...
0.66151553
14
lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.
def Q1wy(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'last_transition_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1wy(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('lastTransitionTime'))", "def Q1wy(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('lastTransitionTime'))", "def Q1wy(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('lastTransitionTime'))", "def Q1wy(YKHO) -> ...
[ "0.69840163", "0.69840163", "0.69840163", "0.69840163", "0.69840163", "0.69840163", "0.6954563", "0.6954563", "0.6954563", "0.6954563", "0.6954563", "0.6954563", "0.684586", "0.684586", "0.684586", "0.684586", "0.684586", "0.684586", "0.684586", "0.684586", "0.684586", "0.6...
0.6833545
21
Status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be "False" or "Unknown". Defaults to "True". If unset, should be treated as "True".
def jGRS(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yOZO(z1Rg):\n return z1Rg.status and str(z1Rg.status).upper() != 'DISABLED'", "def eRwN(YKHO):\n return YKHO.status", "def XEri(YKHO) -> 'outputs.BotCondition':\n return qe4Y.get(YKHO, 'condition')", "def iPqd(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['ApplicationStatusConditionsArgs']]]]:\n r...
[ "0.6324119", "0.62898165", "0.6230701", "0.61547595", "0.61437476", "0.61363006", "0.610908", "0.6061203", "0.60245085", "0.60245085", "0.5980635", "0.5960665", "0.5951528", "0.59322935", "0.5901043", "0.58969367", "0.5852383", "0.5835422", "0.5830082", "0.5830082", "0.583008...
0.5814397
29
Return the article title.
def zAg0(YKHO): return YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Upwb(l3QS):\n return OfZp(l3QS.title)", "def w4v2(YKHO):\n try:\n leAC = YKHO.soup.find('h1', class_='article_header_title').text\n except:\n raise Rwlq('Url may not be gunosy article page one.')\n return leAC", "def Upwb(YKHO):\n return YKHO.title", "def Upwb(YKHO):\n ret...
[ "0.8647945", "0.822472", "0.7920065", "0.7920065", "0.79188323", "0.7910552", "0.7910552", "0.7906482", "0.7906482", "0.7906482", "0.7906482", "0.7906482", "0.7906482", "0.7906482", "0.7906482", "0.7906482", "0.7906482", "0.7906482", "0.7906482", "0.7906482", "0.7894413", "...
0.0
-1
Verifies that the testsuites and testcases referenced in .preqs files exist. Also verifies that the ranges specified for given metrics are valid. list of violations messages for this check
def HGB1(vEq1, YPJ1, _PsJ): qXBU, Kd8W = CxWG(vEq1, YPJ1, _PsJ) xbrj = {'metrics', 'testcases'} uVd6 = {iC1E(IznC) for IznC in _PsJ['TSUITES']} lvSE = {iC1E(IznC) for IznC in _PsJ['TCASES']} def L7kY(IznC, xlLU): try: AVsp(xlLU) except (TypeError, wS0G) as ex: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzCw(YKHO):\n x9a2 = True\n for gjht, AQSv, RRlC in Hy7s.walk(YKHO.__qa_dir):\n o0Dy = (eHNT for eHNT in RRlC if '.yml' in eHNT)\n for Pcn2 in o0Dy:\n try:\n YKHO.__validate_case(Hy7s.path.join(gjht, Pcn2))\n except nzHN as e:\n k8wH.secho...
[ "0.6290527", "0.5886837", "0.5835361", "0.5739202", "0.5706372", "0.56930673", "0.56648105", "0.56360656", "0.5627566", "0.55990857", "0.5595384", "0.55900353", "0.5541995", "0.55301636", "0.54985255", "0.5491091", "0.5471456", "0.546699", "0.5462382", "0.54415417", "0.543886...
0.60564286
1
Initializes a MapQDistribution class. Computes the mapping quality distribution of an AlignmentDataset. This Dataset can have data for multiple samples.
def FIMM(YKHO, KG9w, OxAa, mvm2=1.0): YKHO.sc = KG9w.sparkContext YKHO.sample = mvm2 YKHO.rdd = OxAa.transform(lambda Mkmy: Mkmy.filter(Mkmy.readMapped)).toDF().rdd.map(lambda Mkmy: ((Mkmy['readGroupSampleId'], int(Mkmy['mappingQuality'] or 0)), 1)) NhaF.__init__(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uZm5(YKHO):\n if YKHO.mapQDistribution == None:\n print('Computing MapQ distributions...')\n YKHO.mapQDistribution = i1gV(YKHO.ss, YKHO.dataset, sample=YKHO.sample)\n return YKHO.mapQDistribution", "def FIMM(YKHO, KG9w, OxAa, mvm2=1.0):\n YKHO.sc = KG9w.sparkContext\n YKHO.sample = ...
[ "0.746876", "0.58419824", "0.56344223", "0.55355084", "0.550597", "0.54818666", "0.54364806", "0.5425112", "0.535196", "0.53506124", "0.5319357", "0.5300038", "0.52568287", "0.5243729", "0.52406526", "0.52274895", "0.522395", "0.5218477", "0.5201589", "0.52008075", "0.5184035...
0.6039487
1
A list of all internally maintained parameters of the main network currently in use. If all parameters are assumed to be generated externally, then this attribute will be ``None``. Simply speaking, the parameters listed here should be passed to the optimizer.
def ZEXP(YKHO): return YKHO._internal_params
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vlb9(YKHO) -> x1iM[llWB]:\n return []", "def OqPV(YKHO):\n return MTf8.layers.get_all_param_values(YKHO._network)", "def NArs(YKHO):\n return [xqoZ for gEmA in YKHO.internal_layers for xqoZ in gEmA.params]", "def _5B9(YKHO):\n Bqzj = YKHO.data_stats.tot_entity\n Q2LY = YKHO.data_stats.tot_...
[ "0.73475856", "0.71758384", "0.71585846", "0.7144043", "0.7144043", "0.71264505", "0.7105323", "0.7084575", "0.7038306", "0.7038306", "0.6997527", "0.6991745", "0.6946684", "0.6946649", "0.6939406", "0.6900243", "0.6883019", "0.6879484", "0.68755335", "0.68529624", "0.6850458...
0.70039815
10
A list of integers. Each entry either represents an index within
def cPZj(YKHO): if YKHO.internal_params is None: return None if len(YKHO.internal_params) == 0: return [] try: cCEK = YKHO.param_shapes_meta except: raise NotImplementedError('Attribute "internal_params_ref" ' + 'requires that attribute "param_shapes_meta" is implemented ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxAj(aNZO, yv6U):\n if aNZO.increment <= 0:\n return (None,)\n jbXL = list((min(int(round(max(SCpB - aNZO.min, 0) / aNZO.increment)), aNZO.size - 1) for SCpB in yv6U))\n return jbXL", "def bS0K(YKHO) -> x1iM[int]:\n return list(range(len(YKHO)))", "def _0VL(YKHO) -> bDy6[int]:\n ...",...
[ "0.71685976", "0.7144684", "0.709428", "0.7005742", "0.6842643", "0.6751668", "0.67033815", "0.67009073", "0.66856474", "0.66695374", "0.6656831", "0.6653059", "0.66466904", "0.6633204", "0.662231", "0.65959096", "0.65959096", "0.65651786", "0.65106994", "0.6447147", "0.64394...
0.0
-1
A list of integers. Each entry either represents an index within
def kNhm(YKHO): if YKHO._hyper_shapes_learned is not None and YKHO._hyper_shapes_learned_ref is None: raise NotImplementedError('Attribute not implemented for this ' + 'network') return YKHO._hyper_shapes_learned_ref
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxAj(aNZO, yv6U):\n if aNZO.increment <= 0:\n return (None,)\n jbXL = list((min(int(round(max(SCpB - aNZO.min, 0) / aNZO.increment)), aNZO.size - 1) for SCpB in yv6U))\n return jbXL", "def bS0K(YKHO) -> x1iM[int]:\n return list(range(len(YKHO)))", "def _0VL(YKHO) -> bDy6[int]:\n ...",...
[ "0.71685976", "0.7144684", "0.709428", "0.7005742", "0.6842643", "0.6751668", "0.67033815", "0.67009073", "0.66856474", "0.66695374", "0.6656831", "0.6653059", "0.66466904", "0.6633204", "0.662231", "0.65959096", "0.65959096", "0.65651786", "0.65106994", "0.6447147", "0.64394...
0.0
-1
Is ``True`` if no nonlinearity is applied in the output layer.
def iSnd(YKHO): return YKHO._has_linear_out
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w7Jn(YKHO):\n return False", "def yj1Q(YKHO):\n U42z = len(YKHO._model.getVariable())\n zNig = int((U42z + 1) * U42z / 2)\n FFmJ = [0.0] * zNig\n Tem2 = [0.0] * zNig\n TYWQ = [0.0] * zNig\n YKHO._model.getmqobj(FFmJ, Tem2, TYWQ, zNig, 0, U42z - 1)\n return len(TYWQ) != 0", "def FlPO...
[ "0.7296517", "0.70028913", "0.6586821", "0.6404874", "0.6385763", "0.6383056", "0.63819396", "0.6378937", "0.63114184", "0.6213768", "0.6194363", "0.61936265", "0.61936265", "0.61777145", "0.61555177", "0.61123145", "0.61047816", "0.61047816", "0.61021453", "0.6097191", "0.60...
0.75976247
0
The number of internally maintained parameters as prescribed by
def s2aC(YKHO): if YKHO._num_internal_params is None: if YKHO.internal_params is None: YKHO._num_internal_params = 0 else: YKHO._num_internal_params = int(sum((XP5J.numel() for XP5J in YKHO.internal_params))) return YKHO._num_internal_params
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gi2P(YKHO):\n return 0", "def gi2P(YKHO):\n return 3", "def bXZ1(YKHO):\n UHFx = 0\n for mWFP, xqoZ in YKHO.named_parameters():\n UHFx += xqoZ.numel()\n return UHFx", "def oHc6(YKHO) -> int:\n ...", "def gi2P(YKHO):\n return sum(YKHO.n_params)", "def gi2P(YKHO):\n retur...
[ "0.85170233", "0.84027594", "0.8324109", "0.83068734", "0.81121093", "0.81121093", "0.8103797", "0.8103797", "0.8065521", "0.8065521", "0.80481607", "0.79734397", "0.79673374", "0.79673374", "0.7945609", "0.7939268", "0.79032815", "0.7902994", "0.78608334", "0.784986", "0.784...
0.7806142
23
Add batchnorm layers to the network.
def Nxor(YKHO, vT4U, fDRf, DY1N=None, lso5=False, s78B=True): assert DY1N is None or len(DY1N) == len(vT4U) if YKHO._batchnorm_layers is None and len(vT4U) > 0: YKHO._batchnorm_layers = ht2j.nn.ModuleList() if lso5 and YKHO._hyper_shapes_distilled is None: YKHO._hyper_shapes_distilled = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qlQ2(YKHO):\n raise NotImplementedError", "def vmzx(YKHO, NXpY=False):\n with ZylS.variable_scope(YKHO._get_layer_str()):\n yvT9 = ZylS.contrib.layers.batch_norm(YKHO.get_output(), scale=NXpY)\n YKHO.outputs.append(yvT9)\n return YKHO", "def vmzx(YKHO, NXpY=False):\n with ZylS.variabl...
[ "0.8039404", "0.7375117", "0.7357796", "0.73065174", "0.7303361", "0.68770444", "0.684423", "0.67937386", "0.6778225", "0.67644745", "0.6736064", "0.668016", "0.66450894", "0.6642794", "0.661876", "0.6617719", "0.6550012", "0.6543632", "0.6523669", "0.64948744", "0.64733654",...
0.7324921
3
Flatten a list of parameter tensors. This function will take a list of parameter tensors and flatten them into a single vector. This flattening operation can also be undone using the argument ``unflatten``.
def _b5j(NArs, pynE=None, T1hL=False): if T1hL: assert pynE is not None U5bT = [] QyVM = 0 for KCHu in pynE: mLGw = int(oyIN.prod(KCHu)) XP5J = NArs[QyVM:QyVM + mLGw] XP5J = XP5J.view(*KCHu) U5bT.append(XP5J) QyVM += mLGw ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(YKHO, NArs):\n return ZylS.concat([ZylS.reshape(Vlb9, [-1]) for Vlb9 in NArs], axis=0)", "def ww3c(TLbF: torch.Tensor, cRc2: List[torch.Tensor]) -> x1iM[ht2j.Tensor]:\n o4Jx = []\n vgXP = 0\n for vhpA in cRc2:\n hDhB = vhpA.numel()\n o4Jx.append(TLbF.narrow(0, vgXP, hDhB).view_...
[ "0.699756", "0.69221973", "0.67282826", "0.640981", "0.63732827", "0.63732827", "0.63720655", "0.63613653", "0.62890553", "0.6284505", "0.6231235", "0.6143231", "0.61126834", "0.6055661", "0.60547316", "0.6042674", "0.6012858", "0.5980903", "0.59677595", "0.5965413", "0.59540...
0.6654129
3
Return an array of the primes below n.
def KwQv(exwG): ffYW = XTiz.ones(exwG // 3 + (exwG % 6 == 2), dtype=XTiz.bool) for YRbF in range(3, int(exwG ** 0.5) + 1, 3): if ffYW[YRbF // 3]: XP5J = YRbF + 1 | 1 ffYW[XP5J * XP5J // 3::2 * XP5J] = False ffYW[XP5J * (XP5J - 2 * (YRbF & 1) + 4) // 3::2 * XP5J] = Fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7wK(exwG):\n return [XP5J for XP5J in rPed(exwG)]", "def zXaj(exwG: int) -> oyIN.ndarray:\n KwQv = oyIN.ones(exwG // 3 + (exwG % 6 == 2), dtype=oyIN.bool)\n KwQv[0] = False\n for YRbF in range(int(exwG ** 0.5) // 3 + 1):\n if KwQv[YRbF]:\n G1Hx = 3 * YRbF + 1 | 1\n K...
[ "0.84975964", "0.79115945", "0.7904993", "0.7831277", "0.7712334", "0.7703636", "0.77012026", "0.763057", "0.75886965", "0.75607574", "0.75063574", "0.7468215", "0.7427995", "0.74127907", "0.7407602", "0.7407348", "0.7404669", "0.7404669", "0.7392584", "0.73851544", "0.736219...
0.0
-1
Lorentzian corresponding to exponential PVD sigma'. k should be in (km/s)^1.
def QbAs(WTkW, G1Hx): return 1.0 / (1 + 2 * (epAf.pi * WTkW * G1Hx) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q1hk(YKHO, Wmca, a6r4, Iuka=None, SEfR=None):\n if Iuka is not None and SEfR is not None:\n H5pP = ht2j.exp(a6r4)\n VuXB = ht2j.exp(SEfR)\n bISY = (H5pP + (Wmca - Iuka) ** 2) / (VuXB + 1e-06)\n bISY = bISY - 1 + SEfR - a6r4\n bISY = 0.5 * ht2j.sum(bISY, dim=-1)\n else:\...
[ "0.6861156", "0.6855346", "0.6801536", "0.67184544", "0.6709268", "0.667021", "0.667021", "0.6636641", "0.65653324", "0.65533966", "0.6547376", "0.65435183", "0.6540952", "0.6529372", "0.65251124", "0.6499078", "0.6451318", "0.6447216", "0.6414726", "0.6410071", "0.6404507", ...
0.7911079
0
Sets random seeds for reproducible experiments. This may not work as expected if you use this from within a python project in which you have already imported Keras. If you use the scripts/run_model.py entry point to training models with this library, your experiments should be reproducible. If you are using this from y...
def Bzv9(NArs: Union[Params, dict]): yokr = NArs.pop('random_seed', 13370) a2XT = NArs.pop('numpy_seed', 1337) if 'keras' in HwRy.modules: bo34.warning('You have already imported Keras in your code. If you are using DeepQAfunctionality to set random seeds, they will have no effect, as codeprior to c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwb1() -> None:\n yokr(GPtr.RANDOM_SEED)\n ZylS.random.set_seed(GPtr.RANDOM_SEED)", "def woxE(yokr=42):\n from keras import backend as nMvt\n Hy7s.environ['PYTHONHASHSEED'] = '0'\n oyIN.random.seed(yokr)\n b50Q.seed(yokr)\n LCSx = ZylS.ConfigProto(intra_op_parallelism_threads=1, inter_op...
[ "0.7906258", "0.7684679", "0.76768565", "0.7635959", "0.75533813", "0.7481684", "0.74546987", "0.74473774", "0.7437536", "0.7436754", "0.7385225", "0.73404545", "0.7336393", "0.73125", "0.7296045", "0.7293587", "0.7289756", "0.72815", "0.7274445", "0.7226276", "0.7219923", ...
0.0
-1
Loads and returns a model.
def uyMl(DT3r: str, jxGD=None): y8rd = vpop.ConfigFactory.parse_file(DT3r) NArs = FD5x(nr0t(y8rd)) Bzv9(NArs) from deep_qa.models import concrete_models if jxGD is None: DMw4 = NArs.pop_choice('model_class', concrete_models.keys()) jxGD = concrete_models[DMw4] elif NArs.pop('mode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n return", "def O5RJ(YKHO) -> wOed:\n return uyMl('models/' + YKHO._model_name, custom_objects={})", "def uyMl(YKHO) -> awyi:\n if YKHO.is_loaded:\n return YKHO.model\n return tyeH(YKHO.fpath)", "def uyMl(YKHO):\n with YKHO._wl:\n return YKHO._e.load_model()", "def ...
[ "0.8987802", "0.8650618", "0.845863", "0.84284097", "0.84106773", "0.8379036", "0.8379036", "0.8379036", "0.8379036", "0.8360534", "0.82867503", "0.8203012", "0.8203012", "0.8134793", "0.80681854", "0.80677366", "0.792569", "0.79213834", "0.7920531", "0.7907156", "0.78799033"...
0.0
-1
Loads the wiki `jsonl` file from `path`
def UkbQ(pmON: str=ulyE): return rLdf.read_json(pmON, lines=True).drop(0).set_index(['id'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(pmON):\n with open(pmON) as eHNT:\n return qQXR.load(eHNT)", "def tyeH(YKHO, pmON):\n nPrm = qQXR.load(open(pmON, 'rb'))\n YKHO.load_json(nPrm)", "def u7gK(Emd4, pmON):\n with open(pmON) as eHNT:\n return qQXR.load(eHNT)", "def tyeH(YKHO, pmON):\n Zg0d = YKHO.resolve_pat...
[ "0.74719334", "0.74023587", "0.71612924", "0.7152005", "0.71239334", "0.7082729", "0.7061406", "0.70369697", "0.7022325", "0.6995991", "0.698809", "0.6885237", "0.6880232", "0.6858755", "0.68414724", "0.67335474", "0.6687161", "0.6685408", "0.6669465", "0.6666311", "0.6653415...
0.63441694
43
Creates a padded tensor from a batch of inputs
def JFRx(YKHO, bEXe): qHtv = max(bEXe, key=lambda WKvO: WKvO.shape[0]).shape[0] cQXX = ht2j.full(size=(len(bEXe), qHtv), fill_value=YKHO.output_pad_idx, dtype=ht2j.long) for YRbF, LVAh in enumerate(bEXe): lJq1 = len(LVAh) cQXX[YRbF, :lJq1] = LVAh return cQXX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bh8h(CK9p, I6Dw, KHPh=-100000000.0):\n nZ1f = I6Dw.max()\n hlel = CK9p.split(I6Dw.cpu().numpy().tolist())\n hlel = ht2j.stack([vuvg.pad(pKvL, (0, nZ1f - pKvL.size(0)), 'constant', KHPh) for pKvL in hlel], dim=0)\n return hlel", "def ED9e(g4y1, Ot1W=3, wH3T='channels_last'):\n FpMw = Ot1W - 1\n...
[ "0.7319281", "0.7100685", "0.70826966", "0.7078921", "0.7075453", "0.70495355", "0.704409", "0.70431995", "0.702165", "0.69982785", "0.698482", "0.6973132", "0.6965027", "0.69577205", "0.6953476", "0.69496936", "0.6932197", "0.6874286", "0.6837045", "0.68167406", "0.680544", ...
0.6333367
63
Creates a padded tensor from a batch of inputs
def qU61(YKHO, sIOC): qHtv = max(sIOC, key=lambda WKvO: WKvO.shape[0]).shape[0] bGrB, lhva = sIOC[0].shape cQXX = ht2j.full(size=(len(sIOC), qHtv, lhva), fill_value=YKHO.output_pad_idx, dtype=ht2j.float) for YRbF, WKvO in enumerate(sIOC): lJq1, bGrB = WKvO.shape cQXX[YRbF, :lJq1, :] = WK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bh8h(CK9p, I6Dw, KHPh=-100000000.0):\n nZ1f = I6Dw.max()\n hlel = CK9p.split(I6Dw.cpu().numpy().tolist())\n hlel = ht2j.stack([vuvg.pad(pKvL, (0, nZ1f - pKvL.size(0)), 'constant', KHPh) for pKvL in hlel], dim=0)\n return hlel", "def ED9e(g4y1, Ot1W=3, wH3T='channels_last'):\n FpMw = Ot1W - 1\n...
[ "0.7319281", "0.7100685", "0.70826966", "0.7075453", "0.70495355", "0.704409", "0.70431995", "0.702165", "0.69982785", "0.698482", "0.6973132", "0.6965027", "0.69577205", "0.6953476", "0.69496936", "0.6932197", "0.6874286", "0.6837045", "0.68167406", "0.680544", "0.67857563",...
0.7078921
3
Construct sizes vector for k parts of size floor(n / k) or ceil(n / k)
def vzUQ(exwG, G1Hx): maxY = [exwG // G1Hx for bGrB in range(G1Hx)] dDGN = exwG - sum(maxY) for YRbF in range(dDGN): maxY[YRbF] += 1 assert sum(maxY) == exwG return maxY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T2_v(exwG, G1Hx, XP5J, KCHu):\n return (exwG - G1Hx + 2 * XP5J) // KCHu + 1", "def c8NX(YKHO, exwG, G1Hx):\n gbnR = YKHO.__numbers.shape[0]\n gMPl = YKHO.__numbers.shape[1]\n if gbnR < exwG or gMPl < G1Hx:\n if gbnR < exwG:\n exwG = max(exwG, 2 * gbnR)\n else:\n ...
[ "0.6704885", "0.65108997", "0.6453555", "0.64187604", "0.6256879", "0.61687696", "0.6120682", "0.6091024", "0.60857034", "0.6082341", "0.6081752", "0.6068861", "0.60560083", "0.60517246", "0.60232556", "0.5992851", "0.5972018", "0.5942588", "0.5934815", "0.5932538", "0.592849...
0.8137959
0
compute the 2's compliment of int value val
def h7al(wEf2, UOVU): if wEf2 & 1 << UOVU - 1 != 0: wEf2 = wEf2 - (1 << UOVU) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HeEe(wEf2):\n assert all([Ty9i in ['0', '1'] for Ty9i in wEf2]), 'val may contain [0,1]'\n kAne = UnkV(wEf2)\n if wEf2[0] == '1':\n kAne -= 1\n return kAne", "def Ppne(wEf2, BHGE=32):\n assert isinstance(wEf2, float), 'val must be float'\n UOVU = BQpl(wEf2, BHGE)\n if UOVU[0] == '...
[ "0.7236958", "0.71468997", "0.6957991", "0.69546944", "0.6950571", "0.6538271", "0.6464252", "0.64419705", "0.6427225", "0.63970083", "0.63878846", "0.62785333", "0.6258334", "0.62322795", "0.61946887", "0.61868984", "0.61861575", "0.61579794", "0.61036366", "0.60959834", "0....
0.58520967
41
extract data from within comma separated, roundbraces string return list of strings >>> ASDL.get_braces_content('(a,b,c)') ['a', 'b', 'c']
def XzQn(nPrm): bhqF = nPrm.split('(') if len(bhqF) > 1: return bhqF[1].split(')')[0].split(',') return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mFWN(m6Me: str) -> list:\n m6Me = m6Me.strip()\n RI88 = []\n if m6Me[0] == '[' and m6Me[-1] == ']':\n for ZfUD in m6Me[1:-1].split(','):\n RI88 += [ZfUD.strip().strip('\\'\"')]\n else:\n RI88 += [m6Me]\n return RI88", "def AjBh(zFiD):\n if zZfY:\n print('star...
[ "0.6122381", "0.61083543", "0.6041553", "0.5975907", "0.5949232", "0.5935292", "0.5791123", "0.5750771", "0.57500464", "0.57500464", "0.57500464", "0.5721971", "0.5694189", "0.5690772", "0.56649745", "0.5656731", "0.5628156", "0.5612919", "0.55977", "0.55951524", "0.55770224"...
0.7922382
0
Return configured entries with the given entity ids.
async def async_setup_entities(ajET, AYRJ): PhL6 = Mcdd() PhL6.add_to_hass(ajET) assert await ajET.config_entries.async_setup(PhL6.entry_id) await ajET.async_block_till_done() wMDS = D4AW.async_get(ajET) return [wMDS.async_get(g2g3) for g2g3 in AYRJ]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_config(YKHO, KUnM=None, A07C=None):\n raise NotImplementedError", "def pi1E(YKHO, *A07C):\n return YKHO.__model__.query.filter(YKHO.__model__.id.in_(A07C)).all()", "def pi1E(Emd4, *A07C):\n return Emd4.query.filter(Emd4.id.in_(A07C)).all()", "def TgwQ(Emd4, AYRJ: Optional[List[EntityId...
[ "0.61692894", "0.6157248", "0.6092336", "0.6029963", "0.59695077", "0.5962577", "0.59167176", "0.58711594", "0.58119804", "0.5728289", "0.567868", "0.5658977", "0.5630577", "0.5560462", "0.55552346", "0.5554979", "0.55421764", "0.54683447", "0.54451376", "0.5435038", "0.54334...
0.6172463
0
Return a configured entry with the given entity_id.
async def async_setup_entity(ajET, g2g3): return (await Gywp(ajET, [g2g3]))[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lxP9(g2g3: Optional[str]) -> h8nf[ldDE]:\n P8oC = pmSS()\n LEXu: h8nf[ldDE] = None\n if g2g3 is not None and g2g3 != '':\n LEXu = next((nlyi for nlyi in P8oC.entities if nlyi[LoMa] == g2g3), None)\n else:\n return None\n if LEXu is None:\n raise qjHC.error.SchemaError(f\"Can...
[ "0.70819384", "0.6961882", "0.69289863", "0.65404636", "0.6528102", "0.6404332", "0.6273679", "0.62682545", "0.6244301", "0.61974716", "0.6067263", "0.60249346", "0.59982103", "0.59960175", "0.597462", "0.59675026", "0.59421647", "0.59419984", "0.5940309", "0.5917819", "0.591...
0.5422735
55
r"""Compute the elementwise addition.
def H2v5(g4y1, **B2fa): g4y1 = OWoE.remove_scalars(g4y1) if QpfX.executing_eagerly(): return fwpB.execute('Add', g4y1) return fwpB.add('Add', g4y1, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CaoY(YKHO, Elif):\n return YKHO + Elif", "def FOdN(jzdc, Fg_i):\n return LLmd(jzdc.x + Fg_i.x, jzdc.dx + Fg_i.dx)", "def IIdf(WKvO, LVAh):\n return WKvO + LVAh", "def CaoY(YKHO, Elif):\n return YKHO + Elif", "def K7GD(YKHO, geyT):\n return YKHO + geyT", "def CaoY(YKHO, BWXx) -> None:\n...
[ "0.7673086", "0.7563882", "0.75000405", "0.74956423", "0.74955916", "0.74814177", "0.74126774", "0.736849", "0.73653054", "0.7342373", "0.72168446", "0.71994597", "0.7192896", "0.7173986", "0.717103", "0.71559286", "0.7148937", "0.7148937", "0.71373266", "0.7124584", "0.71083...
0.0
-1
r"""Compute the cos of input.
def YhSR(g4y1, **B2fa): if QpfX.executing_eagerly(): return fwpB.execute('Cos', g4y1) return fwpB.add('Cos', g4y1, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YhSR(WKvO):\n return uEWC(WKvO.dtype, 'cos', WKvO)", "def YhSR(BWXx):\n return epAf.cos(BWXx)", "def YhSR(WKvO: float) -> float:\n return epAf.cos(WKvO)", "def w_V3(WKvO):\n return YhSR(WKvO)", "def avIK(WKvO):\n return epAf.cos(WKvO)", "def tFNH(WKvO):\n return oyIN.cos(WKvO)", "...
[ "0.8335953", "0.8216224", "0.82104635", "0.8143148", "0.81217813", "0.7991452", "0.7908718", "0.7855001", "0.78362113", "0.77417463", "0.7671432", "0.76659423", "0.7661747", "0.7634092", "0.76296955", "0.7601693", "0.75801957", "0.75642705", "0.75443006", "0.7506299", "0.7491...
0.8064244
5
r"""Compute the largest integer not greater than input.
def pBSp(g4y1, **B2fa): if QpfX.executing_eagerly(): return fwpB.execute('Floor', g4y1) return fwpB.add('Floor', g4y1, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MpUI(exwG):\n if exwG < 0:\n exwG *= -1\n CjUr = 0\n return QmsO(exwG, CjUr)", "def max(input: list[int]) -> int:\n if len(input) == 0:\n raise ValueError('max() arg is an empty List')\n if len(input) == 1:\n return input[0]\n YRbF: int = 0\n sSaq: int = input[0]\n ...
[ "0.74213386", "0.7397668", "0.7349321", "0.72584474", "0.71676683", "0.7144696", "0.71385133", "0.7065982", "0.70322865", "0.7006968", "0.6996923", "0.69931203", "0.69834155", "0.6983219", "0.69809633", "0.696854", "0.6918962", "0.69154966", "0.68734545", "0.68719906", "0.685...
0.0
-1