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
Recursively add children from a list of nodes and levels. Return True on success, False if data levels are not valid.
def MZrx(YKHO, iYGA, LUkO=-1): while iYGA: aUGN, ABDL = iYGA[0] if ABDL == LUkO + 1: del iYGA[0] YKHO.childList.append(aUGN) if not aUGN.loadChildNodeLevels(iYGA, ABDL): return False else: return -1 < ABDL <= LUkO return Tru...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NC3Q(YKHO, Q6kx, ABDL):\n YKHO.get_node(Q6kx.identifier).data.level = ABDL\n for aUGN in YKHO.children(Q6kx.identifier):\n YKHO.add_levels_to_node(aUGN, ABDL + 1)", "def IJox(YKHO, dQgj: int, DumB: list) -> bool:\n if 0 <= dQgj < len(YKHO.child_items):\n for YRbF, ZfUD in enumerate(Dum...
[ "0.59459263", "0.59368676", "0.5875626", "0.5740495", "0.5718897", "0.5679425", "0.55676025", "0.5567547", "0.5565759", "0.55261123", "0.5510942", "0.5495765", "0.5443155", "0.5439044", "0.54017115", "0.53974885", "0.5375933", "0.5347057", "0.5334221", "0.52758664", "0.527586...
0.6807439
0
Return True if node format, data and descendants are identical. Also returns False if checkParents & the nodes have parents in common.
def lYHM(YKHO, Q6kx, JqKD=True): if YKHO.formatRef != Q6kx.formatRef or len(YKHO.childList) != len(Q6kx.childList) or YKHO.data != Q6kx.data or (JqKD and (not YKHO.parents().isdisjoint(Q6kx.parents()))): return False for klM_, ZsMc in zip(YKHO.childList, Q6kx.childList): if not klM_.isIdentical(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InF8(YKHO, Q6kx):\n return YKHO.name == Q6kx.name and YKHO.parents == Q6kx.parents and (YKHO.meta == Q6kx.meta)", "def hHbZ(YKHO, zO88):\n return YKHO.set_subtree(YKHO.root) == zO88.set_subtree(zO88.root)", "def Avg2(vsJz, OWJi):\n if vsJz.node_count() != OWJi.node_count():\n return False\n...
[ "0.6909719", "0.6758042", "0.6627602", "0.6601614", "0.6565616", "0.65596014", "0.6391412", "0.63761735", "0.637215", "0.6369711", "0.63659173", "0.63121074", "0.6291724", "0.62893814", "0.6257595", "0.624398", "0.6228114", "0.62201154", "0.6195313", "0.618475", "0.61836076",...
0.8174145
0
Generates random string whose length is of `ID_LENGTH`
def V7Es() -> str: return LIlJ(qxeD.uuid4().int)[:fWUB]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kn3U(u54L: int=6) -> str:\n return ''.join(tuKI.choices(vIwR.ascii_uppercase, k=u54L))", "def Kn3U(u54L: int) -> str:\n return ''.join(tuKI.sample(MbzS, k=u54L))", "def KdFI(u54L):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for hcXw in range(u54L)))", "def...
[ "0.89111733", "0.8904729", "0.8754948", "0.86508685", "0.86337656", "0.85244375", "0.8513616", "0.838443", "0.83031005", "0.82806164", "0.82415724", "0.8170152", "0.8148429", "0.814023", "0.8115245", "0.8081191", "0.80529183", "0.8000344", "0.7971536", "0.7953812", "0.7953812...
0.8002929
17
Creates the Dash children for a specific timeseries. They include a line plot, histogram, box plot and autocorrelation plot. For each model on the timeseries the prediction plot and performance plot are also added. Crosscorrelation plots and graphs are shown, if the the `timeseries_container` have it. If the `timeserie...
def uMY8(ywUu: TimeSeriesContainer, wyBi: dict): afYC = [] eCQp = wyBi['visualization_parameters'] oUsI = ywUu.timeseries_data mWFP = oUsI.columns[0] vETi = oAb3.Path(Hy7s.path.abspath(xAKo)).parent / 'locales' global _ try: _ger = OCoQ.translation('messages', localedir=vETi, languag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mqm2(YCVJ: [TimeSeriesContainer], wyBi: dict):\n afYC = []\n for KCHu in YCVJ:\n afYC.extend(uMY8(KCHu, wyBi))\n return afYC", "def VzbH(BM1S: DataFrame, BVx4: DataFrame, EckS: DataFrame) -> _R2e.Div:\n Xvui = []\n LZpg = cqbg(rows=2, cols=1, shared_xaxes=True, vertical_spacing=0.02)\n ...
[ "0.6399017", "0.6184794", "0.5889123", "0.5853947", "0.57445973", "0.57343733", "0.5593593", "0.55276585", "0.5519593", "0.5504736", "0.5484726", "0.54800844", "0.5419466", "0.5417512", "0.5389557", "0.53843665", "0.5350135", "0.5342861", "0.5337935", "0.5309856", "0.530826",...
0.8556317
0
Create and return the line plot for a dataframe.
def O42U(jQ3Z: DataFrame) -> zoLL.Graph: LZpg = iEax.Figure(data=iEax.Scatter(x=jQ3Z.index, y=jQ3Z.iloc[:, 0], mode='lines+markers')) LZpg.update_layout(title=bGrB('Line plot'), xaxis_title=jQ3Z.index.name, yaxis_title=jQ3Z.columns[0]) Oa1e = zoLL.Graph(figure=LZpg) return Oa1e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DcAv(YKHO, **B2fa):\n return YKHO.plot(**roQF(dict(trace_kwargs=dict(mode='lines')), B2fa))", "def fC19():\n LZpg = QrM1.figure(figsize=(10, 3))\n QrM1.plot(jQ3Z['value'], color='r')\n QrM1.xlabel('Date')\n QrM1.ylabel('Page Views')\n QrM1.title('Daily freeCodeCamp Forum Page Views 5/2016-1...
[ "0.7508487", "0.74817836", "0.73183936", "0.7272983", "0.7191973", "0.7125133", "0.7099356", "0.70964867", "0.7082346", "0.6951909", "0.6785651", "0.6733763", "0.6727393", "0.67113584", "0.6707911", "0.6692055", "0.66860586", "0.66854936", "0.66281193", "0.66258544", "0.66059...
0.8426017
0
Create and return the autocorrelation plot for a dataframe.
def SfWw(jQ3Z: DataFrame) -> zoLL.Graph: exwG = len(jQ3Z) nPrm = oyIN.asarray(jQ3Z) JBMS = oyIN.mean(nPrm) Ngpo = oyIN.sum((nPrm - JBMS) ** 2) / float(exwG) def Mkmy(MKlR): return ((nPrm[:exwG - MKlR] - JBMS) * (nPrm[MKlR:] - JBMS)).sum() / float(exwG) / Ngpo WKvO = oyIN.arange(exwG) + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SfWw(RkFZ):\n rLdf.plotting.autocorrelation_plot(RkFZ)\n QrM1.show()", "def UU07(nPrm, ZLJ_=['Official', 'Instagram', 'Twitter', 'Flickr']):\n for fvDH in ZLJ_:\n SfWw(nPrm[fvDH])", "def WN7Z(YKHO, bySB):\n \"\"\"\n :param features: pandas Dataframe, it represents the features tha...
[ "0.79250354", "0.79245627", "0.78119755", "0.7391692", "0.69522774", "0.6941544", "0.68301976", "0.6738038", "0.661925", "0.65914154", "0.65703255", "0.6546838", "0.65288943", "0.65038884", "0.65013844", "0.649282", "0.64571613", "0.63888276", "0.636672", "0.636672", "0.63589...
0.82137495
0
Create and return the aggregate box plot for a dataframe, i.e. a box plot which shows, for each day of the week/for each month of the year the distribution of the values. Now also with aggregation over minute, hour, week, month, year.
def kX5O(jQ3Z: DataFrame, eCQp: dict) -> zoLL.Graph: n7y3 = ['minute', 'hour', 'weekday', 'day', 'month', 'year'] gPrE = [bGrB('minute'), bGrB('hour'), bGrB('weekday'), bGrB('day'), bGrB('month'), bGrB('year')] ycBG = jQ3Z.iloc[:, 0] try: P5op = eCQp['aggregate_box_plot_frequency'] except Ke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVC6(jQ3Z: DataFrame, eCQp: dict) -> zoLL.Graph:\n ycBG = jQ3Z.iloc[:, 0]\n n7y3 = ['1W', '2W', '1M', '3M', '4M', '6M', '1Y']\n try:\n P5op = eCQp['box_plot_frequency']\n except KeyError:\n P5op = '1W'\n gXuE = []\n for QTg7 in n7y3:\n rVDy = True if P5op == QTg7 else 'le...
[ "0.70943826", "0.6885623", "0.66487724", "0.6286355", "0.6282019", "0.6192847", "0.61818886", "0.6155841", "0.6084049", "0.6058558", "0.60385245", "0.60231453", "0.60139656", "0.6013827", "0.6004362", "0.5986456", "0.59818834", "0.5933318", "0.59323233", "0.59103197", "0.5869...
0.8066792
0
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() try: ajgj = jQ3Z['Start Time'].dt.month.mode()[0] sve5 = DOrt[ajgj - 1].title() print('The most popular month is:', sve5) except Exception as e: print('There was an Error that...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.8001165", "0.7922243", "0.7893095", "0.78627574", "0.7860645", "0.78407425", "0.78012186", "0.77861416", "0.7736663", "0.7724549", "0.77149576", "0.7709874", "0.7705828", "0.77031857", "0.76912403", "0.7687133", "0.76814157", "0.7680444", "0.7673816", "0.7662959", "0.76615...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() try: _8rG = jQ3Z['Start Station'].mode()[0] print('Most popular start station is', _8rG, 'in city') except Exception as e: print('There was an Error that occurred: {}'.format(tTpl)) ...
{ "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 v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665293", "0.76262546", "0.76101285", "0.7584847", "0.75762314", "0.7566649", "0.755761", "0.75378233", "0.7529349", "0.7501873", "0.7499639", "0.7496067", "0.74869275", "0.7483704", "0.7475383", "0.74727637", "0.7437347", "0.74363554", "0.74328583", "0.7427906", "0.742675...
0.71659994
90
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() try: jQ3Z['time difference'] = jQ3Z['End Time'] - jQ3Z['Start Time'] aPoH = jQ3Z['time difference'].sum() print('the total travel time was:', aPoH) except Exception as e: print('There was an Erro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.0
-1
Normalizes image data to have variance of 1
def ognh(nPrm: np.ndarray, ngai: bool=False) -> oyIN.ndarray: if not ngai: nPrm = hgjH(nPrm) nPrm = oyIN.divide(nPrm, oyIN.sqrt(oyIN.var(nPrm))) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(VXjJ):\n Aofo = VXjJ.astype(oyIN.float64)\n Aofo -= oyIN.mean(Aofo)\n Aofo /= oyIN.std(Aofo)\n return Aofo", "def l9RK(VXjJ, JBMS, M1Jx):\n VXjJ = VXjJ * 255.0\n VXjJ = (VXjJ - JBMS[:, None, None]) / M1Jx[:, None, None]\n return VXjJ", "def NkkI(Yw_3):\n Yw_3 -= Yw_3.mean(axis=...
[ "0.7855995", "0.7833194", "0.7818036", "0.7760263", "0.77453876", "0.7730679", "0.7696297", "0.76561743", "0.75906813", "0.75730765", "0.75673133", "0.75232303", "0.75217706", "0.7516157", "0.7498722", "0.7482174", "0.7481749", "0.7476134", "0.74539596", "0.7429019", "0.74242...
0.0
-1
Reshapes a vectorized image back to its original shape.
def dxij(VXjJ: np.ndarray, JNn7: tuple, yMhW: np.ndarray, Rf07: np.ndarray) -> oyIN.ndarray: if yMhW.ndim > 1 or Rf07.ndim > 1: raise ValueError('Invalid input') if len(yMhW) != len(Rf07): raise ValueError('Dimensions do not match') if len(JNn7) != len(yMhW): raise ValueError('Dimens...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDA0(YKHO, LNo8):\n MKlR, yzQ0 = LNo8.shape[:2]\n LNo8 = oyIN.reshape(LNo8, (MKlR, yzQ0, -1))\n return LNo8", "def xExj(LNo8):\n return oyIN.reshape(a=LNo8, newshape=xBlr.reduce(seET.mul, LNo8.shape))", "def q3V_(VXjJ):\n Fg_i = oyIN.zeros((len(VXjJ[0, 0, :]), len(VXjJ[0, :, 0]), len(VXjJ[:,...
[ "0.7483241", "0.7257859", "0.7000537", "0.6944437", "0.6703798", "0.64184266", "0.6413935", "0.63201714", "0.6302973", "0.6294232", "0.624929", "0.62098175", "0.6188704", "0.61857927", "0.6155474", "0.61411184", "0.6127557", "0.6124545", "0.6122074", "0.6115421", "0.61068094"...
0.0
-1
Sets the pension_company_id of this InlineObject37.
def DJsb(YKHO, DJsb): YKHO._pension_company_id = DJsb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwoj(YKHO, pwoj):\n YKHO._company_id = pwoj", "def pwoj(YKHO, pwoj):\n YKHO._company_id = pwoj", "def pwoj(YKHO, pwoj):\n YKHO._company_id = pwoj", "def dPEY(YKHO, q9zX):\n YKHO._company = q9zX", "def q9zX(YKHO, q9zX):\n YKHO._company = q9zX", "def q9zX(YKHO, q9zX):\n YKHO._company ...
[ "0.74915123", "0.74915123", "0.74915123", "0.6564447", "0.6341762", "0.6341762", "0.6341762", "0.6341762", "0.6341762", "0.6341762", "0.6341762", "0.6027858", "0.6004791", "0.59021014", "0.58438367", "0.5821891", "0.57784855", "0.5764512", "0.5735197", "0.5698569", "0.5610010...
0.82679427
0
Sets the pension_customer_id of this InlineObject37.
def p5Nm(YKHO, p5Nm): YKHO._pension_customer_id = p5Nm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def di0Y(YKHO, di0Y):\n YKHO._customer_id = di0Y", "def di0Y(YKHO, di0Y):\n YKHO._customer_id = di0Y", "def di0Y(YKHO, di0Y: str):\n YKHO._customer_id = di0Y", "def z0G7(YKHO, z0G7):\n YKHO._customer_profile_id = z0G7", "def di0Y(YKHO, di0Y: int):\n if di0Y is None:\n raise ValueError...
[ "0.7328566", "0.7328566", "0.72571295", "0.7191201", "0.6975813", "0.69396037", "0.67859256", "0.67400086", "0.67003435", "0.6693316", "0.64954144", "0.64881384", "0.64881384", "0.64881384", "0.6476681", "0.6448235", "0.6392078", "0.6287112", "0.62764806", "0.6146809", "0.612...
0.8383272
0
Sets the pension_employee_fixed_amount of this InlineObject37.
def fOKA(YKHO, fOKA): YKHO._pension_employee_fixed_amount = fOKA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ifJR(YKHO, ifJR):\n YKHO._pension_employer_fixed_amount = ifJR", "def lewz(YKHO, lewz):\n if YKHO.local_vars_configuration.client_side_validation and lewz is not None and (lewz < 0):\n raise ValueError('Invalid value for `fee_fixed`, must be a value greater than or equal to `0`')\n YKHO._fee_...
[ "0.8202015", "0.616412", "0.5980777", "0.55543166", "0.5508033", "0.5378613", "0.53411466", "0.52850366", "0.52821773", "0.5194915", "0.5177819", "0.51442546", "0.51312584", "0.5130834", "0.5130834", "0.51264584", "0.5119096", "0.50992197", "0.5001744", "0.49839935", "0.49726...
0.89242643
0
Sets the pension_employer_fixed_amount of this InlineObject37.
def ifJR(YKHO, ifJR): YKHO._pension_employer_fixed_amount = ifJR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fOKA(YKHO, fOKA):\n YKHO._pension_employee_fixed_amount = fOKA", "def SN7V(YKHO, SN7V):\n YKHO._pension_employer_percentage = SN7V", "def Ltgg(YKHO, Ltgg):\n YKHO._pension_employee_percentage = Ltgg", "def lewz(YKHO, lewz):\n if YKHO.local_vars_configuration.client_side_validation and lewz is...
[ "0.8101912", "0.67784125", "0.5864402", "0.54170066", "0.5248544", "0.51086026", "0.49817532", "0.4966849", "0.49128756", "0.49017867", "0.48222023", "0.48033422", "0.4785555", "0.47610942", "0.47566745", "0.47340542", "0.47340515", "0.47252682", "0.47092938", "0.46914342", "...
0.90784323
0
Sets the valid_from of this InlineObject37.
def kY59(YKHO, kY59): YKHO._valid_from = kY59
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def haVx(YKHO, haVx):\n if haVx is None:\n raise ValueError('Invalid value for `_from`, must not be `None`')\n YKHO.__from = haVx", "def Dbo5(YKHO, BWXx):\n return YKHO._set_attr('from', str(BWXx))", "def Dbo5(YKHO, BWXx):\n return YKHO._set_attr('from', str(BWXx))", "def haVx(YKHO, haVx):...
[ "0.64261305", "0.6121361", "0.6068381", "0.6057139", "0.6055045", "0.60374516", "0.5969436", "0.5969436", "0.5969436", "0.5935162", "0.5935162", "0.5935162", "0.59135246", "0.58362633", "0.5820158", "0.5820158", "0.5742215", "0.5650287", "0.5650287", "0.56390464", "0.5635222"...
0.7858172
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, R1rN): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Gets the actual attribute on the resource class. Calling cls.get_class_attr() is preferred to calling getattr(cls, attr.key) in the case of dynamic attributes, where a value needs to be passed before the attribute can be used in filters or order_by or what not. This function simplifies all that
def p3Mr(YKHO, QePW): if YKHO.dynamic_params: return getattr(YKHO.cls, YKHO.key)(**{XP5J['name']: QePW.GET[XP5J['name']] for XP5J in YKHO.dynamic_params}) else: return getattr(YKHO.cls, YKHO.key)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g7Wb(ClCC, gitN, o8Kj):\n if ClCC in o8Kj:\n return o8Kj[ClCC]\n for P8oC in gitN[::-1]:\n if hasattr(P8oC, ClCC):\n return getattr(P8oC, ClCC)\n return None", "def hS7J(CQwJ, hkS8):\n for finE in CQwJ.__mro__:\n for H5ew, wEf2 in finE.__dict__.items():\n ...
[ "0.76214933", "0.72402436", "0.7089779", "0.69988394", "0.68846405", "0.68846405", "0.6819168", "0.68031573", "0.6796015", "0.6796015", "0.67559737", "0.6754556", "0.6689876", "0.66819286", "0.6677916", "0.6677916", "0.6677916", "0.6677916", "0.6677916", "0.6677916", "0.66779...
0.78326565
0
Creates and returns a dictionary with all keys and values of this resource's public attributes, for rendering to JSON (used in GET requests)
def AcRL(YKHO, QePW, LDzB=True): qi1U = [umfu('created_at', writable=False, reader=lambda WKvO: WKvO.strftime('%Y-%m-%dT%H:%M:%SZ') if WKvO else None, cls=YKHO.__class__), umfu('updated_at', writable=False, reader=lambda WKvO: WKvO.strftime('%Y-%m-%dT%H:%M:%SZ') if WKvO else None, cls=YKHO.__class__)] dzye = {h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azoT(YKHO):\n return {}", "def h6gc(YKHO):\n qXTy = {}\n qXTy['name'] = YKHO.name\n return qXTy", "def o8Kj(YKHO):\n return dict(YKHO.__dict__)", "def kZiL(YKHO):\n azoT = dict()\n if YKHO.name:\n azoT['name'] = YKHO.name\n if YKHO.dn:\n azoT['dn'] = YKHO.dn\n if ...
[ "0.74425524", "0.74065757", "0.7240589", "0.7214109", "0.7214109", "0.7199487", "0.7179527", "0.71755123", "0.7172098", "0.715632", "0.7142041", "0.71408087", "0.71074533", "0.7088545", "0.70506614", "0.70177555", "0.70044047", "0.6977579", "0.6971914", "0.6952908", "0.695290...
0.0
-1
Marks this resource as deleted.
def PTpj(YKHO): if YKHO.__traversal_parent__.delete_behavior == 'disassociate': RKD7.debug('Disassociating {} from {}'.format(YKHO, YKHO.__traversal_parent__)) YKHO.__traversal_parent__.disassociation_handler(YKHO, YKHO.__traversal_parent__.parent, YKHO.__request__) else: RKD7.debug('Del...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NtJl(YKHO) -> None:\n YKHO.deleted = True", "def PTpj(YKHO):\n YKHO.deleted = True", "def PTpj(YKHO):\n YKHO.deleted = True", "def PTpj(YKHO):\n YKHO.resource(YKHO.id).delete()", "def PTpj(YKHO):\n YKHO.deleted = True\n YKHO.save()", "def PTpj(YKHO):\n YKHO.update(is_deleted=True...
[ "0.7748758", "0.764434", "0.764434", "0.74345094", "0.7423259", "0.74024624", "0.73833", "0.73294455", "0.732088", "0.7082085", "0.7001309", "0.6960687", "0.6938074", "0.69326484", "0.68977416", "0.68977416", "0.68977416", "0.68977416", "0.68632424", "0.68305254", "0.6828146"...
0.0
-1
Initializes object with Qarnot connection information.
def FIMM(YKHO, wI0N, H79G='https://api.qarnot.com'): YKHO.conn = None YKHO.started_tasks = [] YKHO.client_token = wI0N YKHO.cluster_url = H79G YKHO.license_server = '' YKHO.license_mode = 'Standard' YKHO.repository = '' YKHO.proxy_crt = '' YKHO.proxy_crt_pwd = '' YKHO.proxy_ssl =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.client = t4S7.Client(vPBo.quantum_connection_host, vPBo.quantum_connection_port, format='json', logger=na1r)", "def FIMM(YKHO, UzPC):\n YKHO.connection = UzPC\n YKHO.init()", "def FIMM(YKHO):\n KcEq = GPtr.cass_host\n bIwZ = GPtr.cass_port\n zlZB = GPtr.cass_keyspace\n ...
[ "0.7439141", "0.687037", "0.6839006", "0.6762137", "0.67379725", "0.6717558", "0.6717558", "0.6706184", "0.6672707", "0.6656014", "0.6625855", "0.6616158", "0.6607035", "0.6578842", "0.65784466", "0.65670246", "0.6561637", "0.6561637", "0.65577805", "0.65498513", "0.65497273"...
0.0
-1
Applies a function to a grouped dataframe, using multiprocessing.
def zNlM(qDyV, JfyU): ZWCE, moMn = zip(*qDyV) print(ZWCE) with IIs7(YmkY()) as XP5J: lGpU = XP5J.map(JfyU, moMn) for mWFP, Ylbp in zip(ZWCE, lGpU): Ylbp['group_index'] = mWFP Ylbp.set_index(['group_index'], append=True, inplace=True) Ylbp.index = Ylbp.index.reorder_levels...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GyzW(jQ3Z, ga5z, JfyU, **B2fa):\n I7uC = jQ3Z.groupby(ga5z)\n dBuj = IIs7(Hy7s.cpu_count())\n h76o = YLnl(JfyU, **B2fa)\n lGpU = dBuj.map(h76o, [uOe2 for mWFP, uOe2 in I7uC])\n jQ3Z = rLdf.DataFrame()\n print('for loop')\n for BkYD in lGpU:\n jQ3Z = jQ3Z.append(BkYD, ignore_index=Tr...
[ "0.7635551", "0.74995786", "0.7472375", "0.72408277", "0.7117162", "0.6989639", "0.69309056", "0.6866597", "0.6700001", "0.6688078", "0.66646504", "0.6650248", "0.6566966", "0.6554358", "0.64812386", "0.6429436", "0.6420131", "0.63855934", "0.6331799", "0.6326663", "0.6313804...
0.7116631
5
Gets a user, or a list of all users in the database if the current user is an admin.
def NMoC(YKHO): qIxc = RTCt.parse_args() c5ow = HL13(qIxc['token']) cHfM(c5ow, 'Admin') if qIxc['email'] == 'all': DW23 = mv1M.query.all() return DW23 CBIr = mv1M.query.filter_by(email=qIxc['email']).first() if not CBIr: eTsH(404, message='Could not find user') return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n return OSYx.get_all_users()", "def d28D() -> mv1M:\n return mv1M.objects.filter(group__name='admin')", "def NMoC(YKHO):\n return l504()", "def NMoC(YKHO):\n return l504()", "def NMoC(YKHO):\n return l504()", "def NMoC(YKHO):\n return l504()", "def NMoC(YKHO):\n re...
[ "0.7761832", "0.7348215", "0.7305084", "0.7305084", "0.7305084", "0.7305084", "0.7305084", "0.7062163", "0.70335513", "0.7026898", "0.6997035", "0.6986619", "0.6984323", "0.6982616", "0.69365144", "0.6916951", "0.6909926", "0.69031906", "0.6895782", "0.68824136", "0.687809", ...
0.7490459
1
Set random seeds for both numpy and numba.
def PVng(yokr): oyIN.random.seed(yokr) EfPY(yokr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e3of(yokr):\n oyIN.random.seed(yokr)\n Qzi8(yokr)", "def jpBl(yokr):\n oyIN.random.seed(yokr)", "def ytSL(yokr):\n oyIN.random.seed(yokr)", "def igb0(yokr=None):\n oyIN.random.seed(yokr)\n if dLum and yokr is not None:\n ytSL(yokr)", "def e3of():\n oyIN.random.seed(1223)", ...
[ "0.8360583", "0.8113967", "0.80508953", "0.8041746", "0.7688297", "0.75975245", "0.7581765", "0.75541896", "0.7539858", "0.7503083", "0.74620485", "0.73912007", "0.73887616", "0.73644596", "0.73490167", "0.7347782", "0.73397577", "0.73139966", "0.73073274", "0.730538", "0.730...
0.7847959
4
Decorate routes to require login.
def uKii(eHNT): @zaGL(eHNT) def SzLu(*qIxc, **B2fa): if cuiw.get('user_id') is None: return vKnz('/login') return eHNT(*qIxc, **B2fa) return SzLu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if not 'logged_in' in cuiw:\n return vKnz(nKyW('index', next=QePW.url))\n return JfyU(*qIxc, **B2fa)\n return WS4m", "def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if Oa1e.user i...
[ "0.7088456", "0.69661", "0.69525415", "0.6949141", "0.6931404", "0.69277924", "0.69114035", "0.6908829", "0.68492377", "0.68424016", "0.68367666", "0.68357086", "0.6820801", "0.6820801", "0.6820801", "0.6820801", "0.6806658", "0.68059635", "0.67959154", "0.6781016", "0.677388...
0.656372
56
Set learning rate and momentum parameter for all updates.
def AaKM(YKHO, hQgx=0.01, GxeQ=0.01, IKi8=0.9, deoY=0.999): zfxz = oyIN.zeros((1,)) PHVw = zfxz + hQgx YKHO.lr_1.set_value(PHVw.astype(e89i.config.floatX)) p8v5 = zfxz + GxeQ YKHO.lr_2.set_value(p8v5.astype(e89i.config.floatX)) UkfO = zfxz + IKi8 YKHO.mom_1.set_value(UkfO.astype(e89i.config....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x2Fr(YKHO, b0Ix=0.01):\n for YRbF in range(0, len(YKHO._layers)):\n YKHO._layers[YRbF].update_params(b0Ix)", "def fggk(YKHO):\n pass", "def kVtO(YKHO, b0Ix=0.001, QMrN=None, **B2fa):\n if QMrN is None:\n YKHO.learning_rate = b0Ix\n else:\n B2fa['global_step'] = YKHO.global_...
[ "0.78835243", "0.7722466", "0.7572087", "0.75397754", "0.7371331", "0.73608035", "0.734484", "0.7271178", "0.72590464", "0.7231822", "0.7224635", "0.72229075", "0.71946746", "0.71547955", "0.7146012", "0.71343726", "0.71255845", "0.7032021", "0.7032021", "0.70074147", "0.7006...
0.0
-1
Set the relative strength of l2 regularization on network params.
def iXvg(YKHO, UzrV=0.001): zfxz = oyIN.zeros((1,)) O24H = zfxz + UzrV YKHO.lam_l2w.set_value(O24H.astype(e89i.config.floatX)) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UAk7(XcU5, jLje):\n N77f = jLje * oyIN.sum(oyIN.square(XcU5))\n Ro40 = 2 * jLje * XcU5\n return (N77f, Ro40)", "def UAk7(XcU5, jLje):\n N77f = jLje * oyIN.sum(oyIN.square(XcU5))\n Ro40 = 2 * oyIN.array(XcU5) * jLje\n return (N77f, Ro40)", "def UAk7(XcU5, jLje):\n N77f = jLje * oyIN.tra...
[ "0.6743104", "0.67196596", "0.6541687", "0.6433608", "0.6394007", "0.6360484", "0.63345015", "0.62213624", "0.61946994", "0.6181405", "0.6128792", "0.6127927", "0.61226815", "0.6101077", "0.6085168", "0.607987", "0.6067658", "0.5991139", "0.5988284", "0.59849596", "0.59794307...
0.0
-1
Set initial bias on the obs part of state.
def F8xj(YKHO, Q8Ay=None): assert Q8Ay.shape[0] == YKHO.obs_dim Oa09 = oyIN.zeros((YKHO.obs_dim,)) + Q8Ay Oa09 = Oa09.astype(e89i.config.floatX) YKHO.p_s0_obs_given_z_obs.mu_layers[-1].b.set_value(Oa09) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MEKq(YKHO, oug5: float) -> None:\n YKHO._bias = oug5", "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)", "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)", "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)"...
[ "0.7482971", "0.7406951", "0.7378305", "0.7378305", "0.7378305", "0.7347511", "0.7279239", "0.7279239", "0.7124824", "0.70564556", "0.6997709", "0.6949672", "0.68756926", "0.6873973", "0.68565047", "0.6847152", "0.68323207", "0.6786316", "0.671352", "0.670222", "0.6678992", ...
0.73878795
2
Returns a report scope with the current reporter. This is equivalent to ``get_current_reporter().scope(observation)``, except that it does not make the reporter current redundantly.
def K278(rNYq): jvSB = F5hI[-1] gv2B = jvSB.observation jvSB.observation = rNYq yield jvSB.observation = gv2B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BBxk(YKHO):\n return YKHO.scopes[0]", "def NCXm(YKHO):\n return YKHO.scope", "def NCXm(YKHO):\n return YKHO._scope", "def NCXm(Emd4):\n return Emd4.get().vars.current_scope", "def NCXm(YKHO):\n return YKHO._scope_data", "def rrBf(YKHO):\n return YKHO._parent.scope() if YKHO._scope i...
[ "0.66762555", "0.6609389", "0.66030115", "0.6598847", "0.6442263", "0.63991976", "0.62918544", "0.62918544", "0.62918544", "0.62918544", "0.62918544", "0.62248224", "0.62248224", "0.6222695", "0.6197757", "0.6197757", "0.6171749", "0.6171749", "0.6142993", "0.6142993", "0.614...
0.59796184
25
Computes and returns the mean and standard deviation values.
def FCmy(YKHO): WKvO, exwG = (YKHO._x, YKHO._n) JBMS = WKvO / exwG SRYB = YKHO._x2 / exwG - JBMS * JBMS M1Jx = epAf.sqrt(SRYB) return (JBMS, M1Jx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tIbu(hkxX):\n S8vG = sum(hkxX) / len(hkxX)\n return (S8vG, oyIN.sqrt(sum((hkxX - S8vG) ** 2) / (len(hkxX) - 1)))", "def cbUt(nPrm):\n JBMS = oyIN.mean(nPrm)\n M1Jx = oyIN.std(nPrm)\n return (JBMS, M1Jx)", "def sdUi(nPrm):\n JBMS, M1Jx = (oyIN.mean(nPrm), oyIN.std(nPrm))\n return (JBMS,...
[ "0.80647326", "0.80313116", "0.80294853", "0.77657086", "0.7730544", "0.7670622", "0.76418316", "0.759006", "0.75555193", "0.75415087", "0.74861276", "0.74608046", "0.7434722", "0.74304026", "0.7397675", "0.73953485", "0.73739517", "0.7369585", "0.7329315", "0.73289186", "0.7...
0.77874845
3
Creates a dictionary of mean values. It returns a single dictionary that holds a mean value for each entry added to the summary.
def kBrZ(YKHO): return {mWFP: QxIo.compute_mean() for mWFP, QxIo in jKi7.iteritems(YKHO._summaries)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kBrZ(YKHO):\n return {mWFP: QxIo.compute_mean() for mWFP, QxIo in YKHO._summaries.items()}", "def JBMS(YKHO) -> ImMB:\n return {G1Hx: Ty9i / YKHO.count for G1Hx, Ty9i in YKHO.data.items()}", "def B9EC(YKHO):\n return {H5ew: oyIN.mean([lmlm.x for lmlm in hKn5]) for H5ew, hKn5 in YKHO.items()}", "...
[ "0.79715574", "0.74099404", "0.70875174", "0.69990546", "0.6918627", "0.67702013", "0.6717671", "0.66973877", "0.6694908", "0.66596735", "0.66365665", "0.64356726", "0.6415049", "0.63940704", "0.6370673", "0.6351405", "0.6292172", "0.6273649", "0.62704223", "0.6258291", "0.62...
0.8146804
0
Apply a filter to an image. Return the filtered image. Args
def Euvd(LNo8, filter): assert filter.shape[0] % 2 == 1 assert filter.shape[1] % 2 == 1 r8hN = LNo8.shape[0] exwG = LNo8.shape[1] ycBG = oyIN.zeros((r8hN, exwG)) VErX = oyIN.dstack([LNo8, ycBG]) Z9rn = VErX.shape[2] LEev = filter.shape[0] Xyq7 = filter.shape[1] EBgd = LEev // 2 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, LNo8):\n return LNo8", "def rvE2(LNo8):\n ITiw = XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2GRAY)\n WZcn = oyIN.ones((5, 5), oyIN.float32) / 15\n iku2 = XC5k.filter2D(ITiw, -1, WZcn)\n QrM1.imshow(XC5k.cvtColor(iku2, XC5k.COLOR_BGR2RGB))\n QrM1.title('Filtered Image')\n return iku2"...
[ "0.8287006", "0.7683156", "0.7665719", "0.74485433", "0.7441456", "0.74414086", "0.74145967", "0.74062234", "0.74022037", "0.73669165", "0.7359249", "0.73220676", "0.72476614", "0.72309166", "0.72274315", "0.7220371", "0.71931523", "0.71765476", "0.7143511", "0.71098363", "0....
0.74132246
7
Create a paginator for an operation.
def oL8A(hTqE=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\...
[ "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.70472574", "0.67338336", "0.6382978",...
0.7726925
3
Decorate a function pass to the function the relevant arguments from a context (dictionary) based on the function arg names
def gxAA(QpfX, JfyU, VCKW=sbCW): Bif9 = B_2K(JfyU) @zaGL(JfyU, assigned=VCKW + vx0w) def AuU4(*qIxc, **B2fa): try: SF5P = {WLRG: QpfX[WLRG] if WmM4 is GVbD.empty else QpfX.get(WLRG, WmM4) for WLRG, WmM4 in Bif9[len(qIxc):] if WLRG not in B2fa} except KeyError as error: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AuU4(JfyU):\n for G1Hx in B2fa:\n setattr(JfyU, G1Hx, B2fa[G1Hx])\n return JfyU", "def Vbu3(FYKK):\n\n @ai9l.wraps(FYKK)\n def h3Xc(*qIxc, **B2fa):\n h3Xc.args = qIxc\n h3Xc.kwargs = B2fa\n return FYKK(*qIxc, **B2fa)\n return h3Xc", "def dMnD(JfyU):\n\n def mrM...
[ "0.742496", "0.7003403", "0.6931944", "0.6907863", "0.6886677", "0.6790457", "0.6604727", "0.65804386", "0.65699697", "0.6514393", "0.6493432", "0.647643", "0.64742893", "0.63739604", "0.6327865", "0.6321717", "0.6314453", "0.6277551", "0.6251415", "0.6240523", "0.62351286", ...
0.6241962
19
Decorate a function save to a context (dictionary) the function return value if the function is marked by decorator
def AHIV(QpfX, JfyU, VCKW=sbCW): KYvW = getattr(JfyU, _mJZ, None) if not KYvW: return JfyU a00f = len(KYvW) == 1 @zaGL(JfyU, assigned=VCKW + vx0w) def AuU4(*qIxc, **B2fa): BWXx = JfyU(*qIxc, **B2fa) if a00f: BWXx = [BWXx] for d6pt, mWFP in enumerate(KYvW)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SzLu(*qIxc):\n H5ew = qIxc\n if H5ew not in T5my:\n T5my[H5ew] = JfyU(*qIxc)\n return T5my[H5ew]", "def iOEG(JfyU):\n T5my = dict()\n\n def SzLu(*qIxc):\n \"\"\"Decorated function returned by the blender_fixture decorator\n when inside Blender\n\n It...
[ "0.7047006", "0.69830596", "0.6857778", "0.66857034", "0.6652797", "0.6645018", "0.66426325", "0.6636625", "0.6627516", "0.6607878", "0.66050535", "0.6587806", "0.6567826", "0.6567227", "0.6508206", "0.6502974", "0.6471294", "0.6464555", "0.6453839", "0.6444422", "0.6441924",...
0.7177772
0
Deep update target dict with src
def fqV4(pan_, zZcM, NM8A=[], EdbX=[]): if type(zZcM) == dict: for G1Hx, Ty9i in zZcM.items(): if G1Hx in NM8A: pan_[G1Hx] = jth9.deepcopy(Ty9i) elif type(Ty9i) == list: if not G1Hx in pan_: pan_[G1Hx] = jth9.deepcopy(Ty9i) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSBA(V_1d, zZcM):\n for G1Hx, Ty9i in zZcM.__dict__.items():\n try:\n if V_1d.__dict__.has_key(G1Hx):\n V_1d.__dict__[G1Hx] = Ty9i\n except:\n pass", "def FKGa(pan_: Dict[Any, Any], zZcM: Dict[Any, Any]) -> None:\n for G1Hx, Ty9i in zZcM.items():\n ...
[ "0.78114545", "0.7671226", "0.76328653", "0.7440433", "0.73389953", "0.71912014", "0.7190083", "0.71575093", "0.71356255", "0.6970587", "0.6970587", "0.6970587", "0.6956335", "0.6934301", "0.6874781", "0.67713654", "0.6749328", "0.67274284", "0.6588041", "0.6573743", "0.64205...
0.7645743
2
Extract values within parantheses someplace in a string.
def FIMM(YKHO): YKHO.paren = ZbWC.compile('^.*\\(([\\\\$a-zA-Z0-9_]+)\\).*$') " Map a few shortcut names to common biolink model concepts. Ok, there's really just one annoying one. " YKHO.shortcuts = {'chem': 'chemical_substance'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W4KS(KCHu):\n Ylbp = ''\n bJYl = False\n for YRbF in KCHu:\n if YRbF == '\"':\n if bJYl:\n bJYl = False\n else:\n bJYl = True\n elif YRbF == '(':\n if not bJYl:\n Ylbp = Ylbp + ' '\n else:\n ...
[ "0.67898095", "0.6459767", "0.6356063", "0.62515134", "0.6204446", "0.61551076", "0.6134808", "0.6104017", "0.6097059", "0.6071306", "0.6051988", "0.59963554", "0.5992061", "0.5981356", "0.5952779", "0.5949283", "0.59424263", "0.5921018", "0.58986837", "0.5894207", "0.5885016...
0.0
-1
Compute the maximum number of continuous segments that can be made from the inputs with specified params.
def b47X(kaUC, WbTE, dvgN=0): Gc2p = 2 * dvgN + WbTE return kaUC - Gc2p + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P5CC(YKHO):\n return len(nj5j.cutAndGetMultiple(YKHO.cmd, YKHO.cmd))", "def qPMI(yKcO, JCyR, YPaw=5):\n return mO7h(yKcO, JCyR, YPaw)", "def eOPN(YKHO):\n return len([pG0V for tC4R, tu7s in BVGD(YKHO.futures) for pG0V, nPrm, EqBn, YAq3 in tu7s])", "def P5CC(YKHO):\n return len(YKHO.segments)"...
[ "0.6622651", "0.61983657", "0.5913868", "0.5900125", "0.58584064", "0.5856065", "0.5717066", "0.5607715", "0.5548153", "0.5548153", "0.5510294", "0.5489304", "0.5485428", "0.5481474", "0.5479131", "0.5473194", "0.5471017", "0.54701596", "0.54441863", "0.54437065", "0.54406965...
0.62166804
1
Convert a number to a string in Nk represenation (eg, '48k') if the number is at least 1000k
def t1yE(mLGw): return str(mLGw) if mLGw < 1000 else '%sk' % (mLGw // 1000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VKN1(BWXx: Number, zfTE: int=1) -> str:\n\n def XWWA(BWXx: Number, P8oC: float, ZI14: str) -> str:\n pSDG: int = 10 ** zfTE\n return f'{str(epAf.floor(BWXx * pSDG / P8oC) / pSDG).rstrip('0').rstrip('.')}{ZI14}'\n if BWXx < 1000:\n return str(epAf.floor(BWXx))\n if BWXx < 1000000:\...
[ "0.7290118", "0.72662747", "0.7205041", "0.72038645", "0.71204245", "0.70880014", "0.70734394", "0.69783694", "0.69634414", "0.69299984", "0.69016504", "0.68292946", "0.67695457", "0.67682433", "0.6766732", "0.6761601", "0.6749146", "0.6747997", "0.66996616", "0.6691175", "0....
0.86188483
0
Remove the filename extension by removing text to the right of the last '.'
def MXbr(FYKK): return Hy7s.path.splitext(FYKK)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MXbr(gIsw):\n BJ1H = gIsw.rfind('.')\n if BJ1H > gIsw.rfind('\\\\'):\n return gIsw[:BJ1H]\n else:\n return gIsw", "def u93D(Ux0P):\n return Ux0P.rsplit('.', 1)[0]", "def u93D(Ux0P):\n mWFP = Ux0P[:Ux0P.find('.')]\n return mWFP", "def dbzI(mWFP):\n return mWFP[:mWFP.inde...
[ "0.8705954", "0.8686905", "0.8685051", "0.8547061", "0.854393", "0.8516036", "0.8499921", "0.83955896", "0.8358017", "0.8344591", "0.8284496", "0.8262066", "0.8131474", "0.80068797", "0.79164916", "0.7905852", "0.79047245", "0.7895307", "0.787785", "0.78158695", "0.7797337", ...
0.84118885
7
Return a quoted string if str is a string.
def MP3a(str: 'str to psql quote') -> 'quote_literal(str)': U5bT = str return U5bT if type(str) is type(''): U5bT = "'{}'".format(str) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r2tG(KCHu):\n return \"'\" + KCHu + \"'\"", "def edjR(BWXx):\n if isinstance(BWXx, (str, QMSQ)):\n return '\"{}\"'.format(BWXx)\n return BWXx", "def Rcnn(KCHu: str):\n SQ3m = KCHu.split()\n if len(SQ3m) < 2:\n return KCHu\n if '\"' in KCHu:\n raise ValueError(f'Double...
[ "0.70928204", "0.6980683", "0.67385787", "0.6637739", "0.66175765", "0.6585962", "0.65783006", "0.65425086", "0.6539182", "0.64862305", "0.6458906", "0.6430122", "0.6425728", "0.63704306", "0.63655627", "0.6353757", "0.63448757", "0.6341425", "0.6314139", "0.63041633", "0.628...
0.65485567
7
Initialize an empty stack
def FIMM(YKHO): YKHO.items = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HaB_():\n return S9Ut(0, None)", "def sWnq(YKHO):\n YKHO.stack = MUE7([YKHO.aut.Initial])", "def sWnq(YKHO):\n YKHO.stack = MUE7([{YKHO.aut.Initial}])", "def FIMM(YKHO):\n YKHO.stack = S9Ut()\n return", "def FIMM(YKHO):\n YKHO.l_stack = S9Ut()\n YKHO.r_stack = S9Ut()", "def FIMM(...
[ "0.84917223", "0.8019823", "0.80036175", "0.774203", "0.7711175", "0.7660235", "0.7582495", "0.75331527", "0.75331527", "0.7526611", "0.75227076", "0.74955446", "0.74504954", "0.74440336", "0.7439356", "0.7439356", "0.7439356", "0.7439356", "0.7439356", "0.7439356", "0.743935...
0.0
-1
Manages a single administrative unit membership within Azure Active Directory. > Warning Do not use this resource at the same time as the `members` property of the `AdministrativeUnit` resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed. API Permissi...
def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, p9rB: Optional[pulumi.Input[str]]=None, goqz: Optional[pulumi.Input[str]]=None, r6DL=None): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, p9rB: Optional[pulumi.Input[str]]=None, goqz: Optional[pulumi.Input[str]]=None) -> 'AdministrativeUnitMember':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = Vq2y.__new__(Vq2y)\n r6DL._...
[ "0.69435525", "0.64450026", "0.6045477", "0.5769719", "0.56109846", "0.5556494", "0.55530876", "0.55530876", "0.55398446", "0.551333", "0.54775447", "0.54597825", "0.54363775", "0.5424891", "0.539428", "0.53835887", "0.5327466", "0.5302059", "0.5299711", "0.5218342", "0.52162...
0.0
-1
Manages a single administrative unit membership within Azure Active Directory. > Warning Do not use this resource at the same time as the `members` property of the `AdministrativeUnit` resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed. API Permissi...
def FIMM(Ro_8, kFeU: str, qIxc: Optional[AdministrativeUnitMemberArgs]=None, VKhi: Optional[pulumi.ResourceOptions]=None): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, p9rB: Optional[pulumi.Input[str]]=None, goqz: Optional[pulumi.Input[str]]=None) -> 'AdministrativeUnitMember':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = Vq2y.__new__(Vq2y)\n r6DL._...
[ "0.69428825", "0.64446586", "0.60440767", "0.57717216", "0.5613188", "0.55556667", "0.55518025", "0.55518025", "0.55399525", "0.55132073", "0.54597676", "0.54359055", "0.5424255", "0.5393156", "0.5384612", "0.5328805", "0.53022885", "0.52989817", "0.52196646", "0.5217271", "0...
0.5478288
10
Resize the image to network input dimensions and transpose to network input shape with N,C,H,W layout. Images are expected to have dtype np.uint8 and shape (H,W,3) or (H,W)
def biH0(YKHO, g4y1): e5kH = {} LNo8 = g4y1[YKHO.input_layer] e5kH['frame'] = LNo8 if LNo8.shape[:2] != (YKHO.image_height, YKHO.image_width): LNo8 = XC5k.resize(LNo8, (YKHO.image_width, YKHO.image_height)) if len(LNo8.shape) == 3: d6hw = oyIN.expand_dims(oyIN.transpose(LNo8, (2, 0, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eB3a(LNo8, exwG, Z9rn, MKlR, yzQ0):\n vxw0 = jbYn.resize(LNo8, (yzQ0, MKlR))\n vxw0 = vxw0.transpose((2, 0, 1))\n vxw0 = vxw0.reshape((exwG, Z9rn, MKlR, yzQ0))\n return vxw0", "def VqWm(VXjJ):\n return oyIN.moveaxis(VXjJ, 3, 1)", "def Einh(ezWE, ROpF):\n return oyIN.array(hnIv.fromarray(e...
[ "0.6463291", "0.6393076", "0.6369948", "0.6271291", "0.62695116", "0.6246881", "0.62386894", "0.62316704", "0.62305856", "0.6220226", "0.61597663", "0.61464113", "0.6142035", "0.61397064", "0.61307764", "0.6117731", "0.6109303", "0.6100481", "0.60914266", "0.6070187", "0.6068...
0.0
-1
Load the stored model from storage.
def cL1I(nUeQ, JACg): if JACg == 'vgg11': C3ST = FYrf.vgg11(pretrained=True) elif JACg == 'vgg13': C3ST = FYrf.vgg13(pretrained=True) elif JACg == 'vgg19': C3ST = FYrf.vgg19(pretrained=True) elif JACg == 'mnasanet': C3ST = FYrf.mnasnet0_5(pretrained=True) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSvd(YKHO):\n wvXH = YKHO.load_model()\n if wvXH:\n YKHO.append_model_instance(YKHO.get_model())\n return wvXH", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def O5RJ(YKHO):\n pmON = YKHO._get_model_path()\n ...
[ "0.78702325", "0.7678744", "0.7678744", "0.7678744", "0.7678744", "0.7670595", "0.76639384", "0.7459715", "0.74018157", "0.73927945", "0.73869175", "0.7332108", "0.731915", "0.73158413", "0.73128176", "0.73020536", "0.7294023", "0.72817796", "0.7281012", "0.7271091", "0.72638...
0.0
-1
Reads the appropriate YAML file at the given path into a class attribute.
def kmvx(Emd4, pmON): if Hy7s.path.exists: baUL = WQbV(gzes(pmON, f'{Emd4.profile}-env.yaml')) with open(baUL, 'r') as wOb_: try: Emd4.yaml_config = eJb6.safe_load(wOb_) except eJb6.YAMLError: bo34.exception() else: raise RuntimeErr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(Emd4, pmON: str):\n fGC9 = dict()\n try:\n with open(pmON, 'r') as eHNT:\n fGC9 = eJb6.safe_load(eHNT)\n except eJb6.YAMLError:\n print(f'Error parsing {pmON}')\n except FileNotFoundError:\n print(f'No such file or directory: {pmON}')\n except fmDz.validator....
[ "0.76272655", "0.75353295", "0.7159896", "0.7086126", "0.70628655", "0.702083", "0.7002545", "0.6991125", "0.6899736", "0.68954366", "0.684895", "0.6845244", "0.6833465", "0.6825236", "0.671288", "0.6669581", "0.66644025", "0.66641235", "0.6653426", "0.66409445", "0.66370535"...
0.0
-1
The set of arguments for constructing a FlinkApplicationDeployment resource.
def FIMM(Ro_8, *, K6wN: pulumi.Input[str], bNKA: pulumi.Input[str], bSEa: pulumi.Input[str], mljj: pulumi.Input[str], QMHl: Optional[pulumi.Input[int]]=None, gj8M: Optional[pulumi.Input[bool]]=None, WGhb: Optional[pulumi.Input[str]]=None): qe4Y.set(Ro_8, 'application_id', K6wN) qe4Y.set(Ro_8, 'project', bNKA) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: FlinkApplicationDeploymentArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def _NS3(YKHO) -> None:\n YKHO.print_response(YKHO.client.flink_create_application_deployment(project=YKHO.args.project, service=YKHO.args.service_name, application_id=YKHO.args.applicatio...
[ "0.7353899", "0.65833133", "0.611248", "0.61103684", "0.59684736", "0.5853407", "0.56783605", "0.5597225", "0.55777025", "0.55428725", "0.55408996", "0.55307156", "0.5489514", "0.5472259", "0.5425436", "0.54184973", "0.5386222", "0.53854287", "0.5367252", "0.5364446", "0.5361...
0.0
-1
Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
def bSEa(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'service_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSEa(YKHO, BWXx: str):\n YKHO._properties['serviceName'] = BWXx", "def bSEa(YKHO, BWXx: str):\n YKHO._properties['serviceName'] = BWXx", "def zVa7(YKHO, mWFP, **B2fa):\n YKHO.add(ISu2('service', mWFP, **B2fa))", "def bSEa(Emd4):\n raise NotImplementedError", "def bSEa(YKHO) -> str:\n ret...
[ "0.77249676", "0.77249676", "0.76479274", "0.7312329", "0.7058845", "0.7058845", "0.69406974", "0.6904918", "0.6904918", "0.67616934", "0.6733892", "0.67311424", "0.67067134", "0.67067134", "0.67067134", "0.67067134", "0.6667631", "0.6514668", "0.6514668", "0.6503599", "0.650...
0.6724822
12
Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
def bSEa(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'service_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSEa(YKHO, BWXx: str):\n YKHO._properties['serviceName'] = BWXx", "def bSEa(YKHO, BWXx: str):\n YKHO._properties['serviceName'] = BWXx", "def zVa7(YKHO, mWFP, **B2fa):\n YKHO.add(ISu2('service', mWFP, **B2fa))", "def bSEa(Emd4):\n raise NotImplementedError", "def bSEa(YKHO) -> str:\n ret...
[ "0.7725456", "0.7725456", "0.7648689", "0.73133236", "0.7060382", "0.7060382", "0.6942006", "0.6904749", "0.6904749", "0.675979", "0.6733837", "0.6732109", "0.67263484", "0.67263484", "0.67263484", "0.67263484", "0.6708326", "0.6708326", "0.6708326", "0.6708326", "0.66703284"...
0.65047264
24
Get an existing FlinkApplicationDeployment resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, K6wN: Optional[pulumi.Input[str]]=None, aJ2e: Optional[pulumi.Input[str]]=None, tC0c: Optional[pulumi.Input[str]]=None, QMHl: Optional[pulumi.Input[int]]=None, bNKA: Optional[pulumi.Input[str]]=None, gj8M: Optional[pulumi.Input[bool...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, HEqj: Optional[pulumi.Input[str]]=None, C3ST: Optional[pulumi.Input[pulumi.InputType['DeploymentModelArgs']]]=None, mWFP: Optional[pulumi.Input[str]]=None, M9pC: Optional[pulumi.Input[str]]=None, NXpY: Optional[pulumi.Input[pul...
[ "0.64582187", "0.6235443", "0.60261464", "0.5866422", "0.576704", "0.5695311", "0.5640756", "0.5630704", "0.56214714", "0.556676", "0.5532606", "0.55168325", "0.54859513", "0.5483696", "0.5475809", "0.54650295", "0.5460091", "0.5457139", "0.5437941", "0.5427772", "0.5415501",...
0.70036566
0
Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
def bSEa(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'service_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSEa(YKHO, BWXx: str):\n YKHO._properties['serviceName'] = BWXx", "def bSEa(YKHO, BWXx: str):\n YKHO._properties['serviceName'] = BWXx", "def zVa7(YKHO, mWFP, **B2fa):\n YKHO.add(ISu2('service', mWFP, **B2fa))", "def bSEa(Emd4):\n raise NotImplementedError", "def bSEa(YKHO) -> str:\n ret...
[ "0.7725456", "0.7725456", "0.7648689", "0.73133236", "0.7060382", "0.7060382", "0.6942006", "0.6904749", "0.6904749", "0.675979", "0.6733837", "0.6732109", "0.67263484", "0.67263484", "0.67263484", "0.67263484", "0.6708326", "0.6708326", "0.6708326", "0.6708326", "0.66703284"...
0.6270009
40
Return a copy of the array.
def jth9(YKHO): return Pj0c(YKHO.A.copy(), YKHO.dim, YKHO.shape, YKHO.dtype)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MIGr(jzdc):\n jzdc = MF4b(jzdc)\n return jzdc.copy()", "def V0s1(YKHO):\n return oyIN.copy(YKHO.data)", "def jth9(YKHO, qw7D=True):\n return super().copy(array=qw7D)", "def KmGA(YKHO, qw7D: np.ndarray, jth9: bool=True) -> oyIN.ndarray:\n if jth9:\n return qw7D.copy()\n return qw7...
[ "0.7921194", "0.79189616", "0.7750929", "0.765234", "0.75941163", "0.7514057", "0.74630946", "0.7438932", "0.7419954", "0.7415252", "0.7387998", "0.73520553", "0.72722715", "0.72638303", "0.7250277", "0.7237456", "0.71928114", "0.7184019", "0.71686727", "0.71267897", "0.70715...
0.0
-1
write a variable zmatrix (bohr/radian) to a string (angstroms/degree)
def _cKi(m4FL): assert _hBH.zmatrix.v.is_valid(m4FL) amAl = _hBH.zmatrix.v.string(m4FL) return amAl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIwR(qWQH, qLmP=True, VI5M=True, tjON=True):\n DkWr = 1 if qLmP else 0\n BXqV = npaS.zmatrix.write(syms=rmc3(qWQH), key_mat=FnlY(qWQH, shift=DkWr), name_mat=YGkj(qWQH), val_dct=iZ8h(qWQH, angstrom=VI5M, degree=tjON))\n return BXqV", "def epIn(qWQH):\n assert _hBH.zmatrix.is_valid(qWQH)\n BXqV ...
[ "0.7515915", "0.7282141", "0.6429996", "0.62926364", "0.6290639", "0.61279917", "0.60538286", "0.60484993", "0.6008362", "0.5973375", "0.5965659", "0.59639966", "0.5961582", "0.5802498", "0.57830095", "0.57709986", "0.5722477", "0.57135946", "0.57083744", "0.5697007", "0.5688...
0.58118016
13
Generate a random string of fixed length
def BWvy(a__r=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(a__r)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))", "def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]", "def BWvy(a__r):\n return Hy7s.urandom(a__r)", "def MiNk(u54L):\n gLiZ = vIwR.ascii...
[ "0.8746205", "0.87138057", "0.86634374", "0.8589632", "0.85856813", "0.85634226", "0.8558564", "0.85515654", "0.853908", "0.8533391", "0.8508468", "0.85072726", "0.84704083", "0.84667903", "0.84667903", "0.84504145", "0.8449424", "0.8428432", "0.84244287", "0.8423231", "0.841...
0.0
-1
Gets the key of the resource
def H5ew(YKHO): return YKHO._key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yMUj(YKHO):\n C3ST = YKHO.get_model()\n if C3ST:\n return DP0r(C3ST)\n else:\n return YKHO.get_name()", "def naBt(Eorv: acl.AclResource) -> str:\n return (naBt(Eorv.parent) if Eorv.parent else 'resource__All') + '__' + QFRG(Eorv.name)", "def mexE(YKHO):\n return YKHO.key", "d...
[ "0.80625606", "0.78437954", "0.77424234", "0.77424234", "0.77424234", "0.77424234", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309", "0.7707309...
0.72056526
63
Gets the value of the resource
def BWXx(YKHO): return YKHO._value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T_L3(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_value')", "def BWXx(YKHO) -> h8nf[bdIy['outputs.SubResourceResponse']]:\n return qe4Y.get(YKHO, 'value')", "def E5Y9(YKHO, Eorv, lgNN):\n return YKHO.manifestgraph.value(subject=Eorv, predicate=lgNN, object=None)", "def Eorv(YKHO) -> qe4...
[ "0.79478717", "0.746524", "0.71528196", "0.7062742", "0.69877243", "0.6952211", "0.69463605", "0.69288766", "0.6928451", "0.6880705", "0.6879153", "0.6852295", "0.68381035", "0.6785213", "0.6781174", "0.6781174", "0.67611337", "0.6752913", "0.6750673", "0.6750673", "0.6749121...
0.0
-1
Builds a sparse matrix that represents this linear operation. Independent dimensions, those that can be treated as batch dimensions, are recognized automatically and ignored.
def dn86(YKHO): cn8Z = YKHO.independent_dims pfA5 = YKHO._shape.without(cn8Z) tFhq = YKHO.source.shape.without(cn8Z) WfCS = [] T6S7 = [] for DkWr, hkxX in YKHO.val.items(): JnVq = list(oyIN.unravel_index(oyIN.arange(pfA5.volume), pfA5.sizes)) for NmSx in tFhq.without(YKHO._shape)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NRUd(YKHO):\n rdlD = []\n fvDH = []\n nPrm = []\n Enzc = YKHO.id2i\n for YRbF, abTv in list(YKHO.neighbor_offsets.items()):\n dxhl = YKHO.cardinalities[YRbF]\n rdlD.extend([Enzc[YRbF]] * dxhl)\n fvDH.extend(abTv)\n nPrm.extend(YKHO.weights[YRbF])\n rdlD = oyIN.arra...
[ "0.76669025", "0.7520915", "0.7466646", "0.72350514", "0.68977755", "0.6823168", "0.66950405", "0.65826434", "0.6569584", "0.6553668", "0.6490942", "0.6466036", "0.64527917", "0.64332575", "0.6335524", "0.6330294", "0.6321892", "0.6281869", "0.6248173", "0.6248173", "0.624324...
0.7530296
1
Shifts all values of this tensor by `shifts`. Values shifted outside will be mapped with periodic boundary conditions when the matrix is built, see `build_sparse_coordinate_matrix()`.
def DkWr(YKHO, KIE5: dict, Q010, EZd9): wEf2 = {} for DkWr, hkxX in YKHO.val.items(): assert isinstance(DkWr, PhJ3) for tpio, RA_F in reversed(tuple(KIE5.items())): if tpio not in hkxX.shape: hkxX = epAf._expand_dim(hkxX, tpio, YKHO._shape.get_size(tpio), YKHO._shape....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WOVp(zZcM: torch.Tensor, KIE5: torch.LongTensor):\n assert zZcM.dim() == 3, zZcM.shape\n tjUW, Kt_s, o4sw = zZcM.shape\n assert KIE5.shape == (tjUW, Kt_s), (KIE5.shape, tjUW, Kt_s)\n d6pt = ht2j.arange(o4sw, device=zZcM.device).view((1, o4sw)).repeat((Kt_s, 1)).repeat((tjUW, 1, 1))\n d6pt = (d6p...
[ "0.6674019", "0.6632947", "0.6565622", "0.6551519", "0.6331723", "0.6308698", "0.6259686", "0.62362504", "0.6141565", "0.5885049", "0.58718437", "0.5855554", "0.58236706", "0.58145857", "0.5805002", "0.5799993", "0.5781105", "0.577441", "0.5761396", "0.57156694", "0.5702131",...
0.6476705
4
Decorate routes to require login.
def uKii(eHNT): @zaGL(eHNT) def SzLu(*qIxc, **B2fa): if cuiw.get('user_id') is None: return vKnz('/login') return eHNT(*qIxc, **B2fa) return SzLu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if not 'logged_in' in cuiw:\n return vKnz(nKyW('index', next=QePW.url))\n return JfyU(*qIxc, **B2fa)\n return WS4m", "def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if Oa1e.user i...
[ "0.7088456", "0.69661", "0.69525415", "0.6949141", "0.6931404", "0.69277924", "0.69114035", "0.6908829", "0.68492377", "0.68424016", "0.68367666", "0.68357086", "0.6820801", "0.6820801", "0.6820801", "0.6820801", "0.6806658", "0.68059635", "0.67959154", "0.6781016", "0.677388...
0.656372
54
Initializes the MPO loss for discrete (categorical) policies.
def FIMM(YKHO, _hZ2: float, jF5n: float, r42j: float, n4Qu: float): YKHO._epsilon = _hZ2 YKHO._epsilon_policy = jF5n YKHO._init_log_temperature = r42j YKHO._init_log_alpha = n4Qu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjsa():\n C3ST = JQ4E(env='CartPole-v0', batch_size=16, gamma=0.99)\n FhoB = C3ST.env.observation_space.shape[0]\n eq_x = ht2j.rand(8, FhoB)\n kKrc = ht2j.rand(8).long()\n ddLX = ht2j.rand(8)\n qU6A = ht2j.rand(8)\n N77f = C3ST.actor_loss(eq_x, kKrc, ddLX, qU6A)\n assert isinstance(N77f...
[ "0.62571186", "0.6160882", "0.6054348", "0.5863147", "0.58268243", "0.57627285", "0.5714189", "0.5714189", "0.5714189", "0.5714189", "0.56959796", "0.560597", "0.560597", "0.5597695", "0.5589732", "0.55796015", "0.55319154", "0.5526527", "0.5518552", "0.55086184", "0.55000705...
0.52390605
51
Computes the MPO loss for a categorical policy.
def nrOS(YKHO, NArs: CategoricalMPOParams, Swra: distrax.Categorical, luAR: distrax.Categorical, xASv: jnp.ndarray, gc9P: jnp.ndarray) -> AzJI[oLG2.ndarray, IpRA]: gc9P = oLG2.transpose(gc9P) ovGo = GhaD(NArs) Cwt5 = yOcR.nn.softplus(NArs.log_alpha) + r13S KvEo, _Lwx = UMG9(q_values=gc9P, logits=luAR.lo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjsa():\n C3ST = JQ4E(env='CartPole-v0', batch_size=16, gamma=0.99)\n FhoB = C3ST.env.observation_space.shape[0]\n eq_x = ht2j.rand(8, FhoB)\n kKrc = ht2j.rand(8).long()\n ddLX = ht2j.rand(8)\n qU6A = ht2j.rand(8)\n N77f = C3ST.actor_loss(eq_x, kKrc, ddLX, qU6A)\n assert isinstance(N77f...
[ "0.6645996", "0.6485573", "0.6356547", "0.6353531", "0.62457985", "0.62256455", "0.6201462", "0.617171", "0.61257464", "0.6098077", "0.6080401", "0.60546494", "0.6052398", "0.60358703", "0.6032809", "0.6013523", "0.6010819", "0.6003599", "0.598584", "0.5963709", "0.5960053", ...
0.0
-1
Returns project's root folder.
def phdL(): return str(GkAb(xAKo).parent.parent.parent)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mSqg(YKHO):\n return YKHO._project_dir", "def phdL() -> GkAb:\n KfRp = GkAb(xAKo).parent.resolve().parent\n return KfRp", "def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)", "def L59w():\n return Hy7s.path.dirname(Hy7s.path.dirname(xAKo))", "def Lw5n():\n VqRE = Hy7s.path.split(Hy7s.p...
[ "0.87264794", "0.86558384", "0.86468065", "0.8476229", "0.845149", "0.84121364", "0.84047836", "0.84047836", "0.84047836", "0.84047836", "0.83730847", "0.8368596", "0.8368596", "0.8357349", "0.8357167", "0.8349044", "0.83373153", "0.8309949", "0.8302555", "0.82995963", "0.828...
0.8228787
23
Returns the current target temp in degrees celsius if configured, otherwise returns None.
def ICVX(YKHO): fvDH = YKHO.db[Veyb] pan_ = fvDH.find_one('target_temp') if pan_: return pan_['value'] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T6n4(YKHO):\n if YKHO.is_on:\n return YKHO._target_temp\n else:\n return None", "def T6n4(YKHO):\n return YKHO._circuit.get('target_temperature')", "def T6n4(YKHO):\n if YKHO.hvac_mode == QM09:\n return None\n return float(YKHO.thermostat_device.target_temperature)", "...
[ "0.78661174", "0.782919", "0.7820602", "0.7815862", "0.7754048", "0.77514523", "0.7697151", "0.7696197", "0.7688274", "0.7675182", "0.76648873", "0.76566076", "0.7641028", "0.760324", "0.760324", "0.75958014", "0.75847256", "0.7561177", "0.75545496", "0.754622", "0.754622", ...
0.7043256
70
Checks whether the user can act as an owner of the page
def MXR9(B2Dn: Page, uJjO): if B2Dn.owner_user: return B2Dn.owner_user_id == uJjO return B2Dn.owner_cluster.admins.where(mv1M.id == uJjO).one_or_none() is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kinv(QePW, YEnM):\n if QePW.method in w0rQ.SAFE_METHODS:\n return True\n return QePW.user is not None and QePW.user.is_authenticated and (QePW.user.id == YEnM.creator.user.id)", "def I6_b(YKHO, CBIr):\n return YKHO.user == CBIr", "def b9HF(OaeV):\n return OaeV.author.id in i07_", "def ...
[ "0.7568963", "0.7544431", "0.75024265", "0.7456481", "0.7432934", "0.7422139", "0.7389034", "0.7302052", "0.7266165", "0.7261698", "0.7259729", "0.7255984", "0.7229566", "0.7226834", "0.7219907", "0.7215767", "0.71748906", "0.71698076", "0.71437407", "0.7137161", "0.7053059",...
0.809086
0
Checks if the user is allowed to moderate this page
def f5VI(B2Dn: Page, uJjO): with FNir() as cuiw: oJou = B2Dn.versions[-1] if oJou.geom is not None and DJzy(cuiw, uJjO, oJou.geom): return True if B2Dn.owner_cluster is not None and uagg(cuiw, uJjO, B2Dn.owner_cluster.parent_node_id): return True return uagg(c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e2FO(YKHO, QePW):\n if x3Ye(QePW) is None:\n return False\n FRPu = YKHO.Session.query(CXiN).join(CXiN.groups).join(cQ68.users).filter(mv1M.username == x3Ye(QePW)).filter(CXiN.name == 'moderate').all()\n if len(FRPu) > 0:\n return True\n return False", "def gGgH(YKHO, CBIr):\n ret...
[ "0.710197", "0.7082636", "0.7047261", "0.7046833", "0.70370233", "0.7029513", "0.6995173", "0.69568366", "0.69513977", "0.68904996", "0.68897265", "0.68897265", "0.6888795", "0.6888795", "0.6888795", "0.6863994", "0.68501985", "0.6836862", "0.6830706", "0.6830706", "0.6830706...
0.719899
0
Helper for del_gnfa_states Given a GNFA G and a list StatesLeft, choose first eligible state to delete, and return it plus the set of nondeleted entries. Called only if there is an eligible state to be deleted.
def lr7K(yvY1, qgPy): for vexM in qgPy: if vexM not in yvY1['Q0'] | yvY1['F']: return (vexM, [WKvO for WKvO in qgPy if WKvO != vexM])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vtXP(fQzI, zg0s=[]):\n yvY1 = jth9.deepcopy(fQzI)\n if zg0s == []:\n qgPy = list(yvY1['Q'])\n else:\n qgPy = zg0s + ['Real_I', 'Real_F']\n JL7H = [uu6p(yvY1)]\n while len(qgPy) > 2:\n RGYv, qgPy = lr7K(yvY1, qgPy)\n print('**** Eliminating state ' + RGYv + ' ****')\n ...
[ "0.6507879", "0.5902483", "0.5656236", "0.5483173", "0.5477619", "0.54457176", "0.537343", "0.534134", "0.5304089", "0.526097", "0.5166418", "0.51481503", "0.5128413", "0.5125652", "0.5121368", "0.5116382", "0.5075447", "0.5063267", "0.5061975", "0.50297683", "0.50223434", ...
0.82537997
0
Construct the argument parser and get the arguments Returns dict Dictionary of arguments and paramenters
def qElm() -> dict: VqfF = j1Jz.ArgumentParser(description=__doc__) VqfF.add_argument('-n', '--topN', type=int, help='the number of top rated movies for each genre. (example: 3)') VqfF.add_argument('-g', '--genres', type=str, help='user-defined genre filter. can be multiple. (example: Comedy|Adventure)') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q6DN():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--ra', help='right ascension', type=float, required=True)\n wvEv.add_argument('--dec', help='declination', type=float, required=True)\n qIxc = wvEv.parse_args()\n return qIxc.__dict__", "def dCXb(YKHO):\n return dict(vars(YKHO.arg_...
[ "0.7598473", "0.744763", "0.7365214", "0.73194057", "0.7303182", "0.7263114", "0.7247914", "0.7204293", "0.7180733", "0.7159442", "0.7159442", "0.71469164", "0.7135236", "0.7114104", "0.7098559", "0.70954645", "0.70719045", "0.70653284", "0.7059595", "0.70449704", "0.70446366...
0.7105536
14
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, oaFq): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Find if there exists any pair of numbers which sum is equal to the value.
def neBz(YKHO, BWXx: int) -> bool: if len(YKHO.array) < 2: return False if not YKHO.is_sorted: YKHO.array.sort() YKHO.is_sorted = True zNig = len(YKHO.array) gqRb = 0 ODP9 = zNig - 1 while gqRb < ODP9: Ty9i = YKHO.array[gqRb] + YKHO.array[ODP9] if Ty9i == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JQW5(mSrU, WjrA):\n for MxXY in mSrU:\n for cWFu in mSrU:\n if MxXY + cWFu == WjrA:\n return True\n return False", "def fDqS(ezWE, sum):\n for YRbF in range(0, len(ezWE) - 1):\n for r845 in range(len(ezWE)):\n if ezWE[YRbF] + ezWE[r845] == sum:\n ...
[ "0.77442986", "0.76204896", "0.7413616", "0.7362159", "0.72808427", "0.71782744", "0.70277184", "0.70250964", "0.70080066", "0.68966067", "0.68518955", "0.68386465", "0.68127775", "0.6806989", "0.6799336", "0.66677845", "0.6647333", "0.6628675", "0.6603409", "0.65381575", "0....
0.59568465
61
Reads an image from memory into the opencv numpy array format
def D627(llUt: bytes) -> lEJO: nPrm = XTiz.frombuffer(llUt, XTiz.uint8) VXjJ = XC5k.imdecode(nPrm, flags=XC5k.IMREAD_UNCHANGED) if VXjJ is None: raise ValueError(f'The data could not be read. Is it an image?') return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dzdw(nUeQ, I1mm=XC5k.IMREAD_UNCHANGED) -> oyIN.ndarray:\n if not GkAb(nUeQ).exists():\n raise FileNotFoundError(f'{nUeQ}')\n if isinstance(nUeQ, GkAb):\n nUeQ = str(nUeQ)\n dvtG = XC5k.imdecode(oyIN.fromfile(nUeQ, dtype=oyIN.uint8), I1mm)\n return dvtG", "def q5aE(QMAG):\n VXjJ =...
[ "0.7357666", "0.73390985", "0.7280753", "0.72280794", "0.7153706", "0.7139909", "0.7084488", "0.7076926", "0.70745724", "0.70545983", "0.7049088", "0.70488894", "0.70488894", "0.70457846", "0.70302427", "0.7002683", "0.700225", "0.700225", "0.697922", "0.6957552", "0.6953058"...
0.0
-1
Converts a bytes object to a string using utf8 encoding
def H9e7(nPrm: bytes) -> str: return nPrm.decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D6ho(TIvS: bytes) -> str:\n try:\n return TIvS.decode('utf-8')\n except UnicodeDecodeError:\n return str(TIvS)", "def xrD7(Fg_i):\n return Fg_i.decode('utf8')", "def nR9l(KCHu, tZ2K='utf8'):\n if isinstance(KCHu, QMSQ):\n return KCHu.encode(tZ2K)\n return str(KCHu)", "...
[ "0.79007256", "0.78978413", "0.7836608", "0.7810571", "0.7779622", "0.7764642", "0.7759733", "0.77398926", "0.7676998", "0.7604864", "0.7603774", "0.7545051", "0.7545051", "0.75269324", "0.74902856", "0.74462646", "0.74298966", "0.7416091", "0.74088424", "0.7396585", "0.73826...
0.7748782
7
Converts bytes to an array of bits.
def mFFv(nPrm: bytes) -> Tv8G: UOVU = R3u8.bitarray(endian='little') UOVU.frombytes(nPrm) return UOVU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tB5N(YKHO, BSLH, Zsg6=8):\n UOVU = []\n for YB8B in BSLH:\n for YRbF in range(Zsg6):\n UOVU.append((YB8B & 2 ** YRbF) >> YRbF)\n return UOVU", "def oGbW(ezWE):\n SJg5 = []\n for or8S in range(len(ezWE)):\n for YRbF in reversed(range(8)):\n SJg5.append(ezWE[o...
[ "0.82635105", "0.79126185", "0.7284606", "0.72133166", "0.71676874", "0.7140104", "0.7137997", "0.71177846", "0.70974785", "0.70935035", "0.7086964", "0.6995603", "0.698386", "0.69222945", "0.6914768", "0.6887022", "0.6844223", "0.6805607", "0.67624754", "0.6745838", "0.67352...
0.8175109
1
Returns the width, height, channels and bitdepth of an image in opencv numpy format
def ynYk(VXjJ: Img) -> AzJI: return (*VXjJ.shape, VXjJ.dtype.itemsize * 8) if len(VXjJ.shape) == 3 else (*VXjJ.shape, 1, VXjJ.dtype.itemsize * 8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TdZx(LNo8):\n if LNo8.ndim == 2:\n return LNo8.shape\n MKlR, yzQ0, Npgh = LNo8.shape\n return (MKlR, yzQ0)", "def kbUw(VXjJ):\n return oyIN.shape(VXjJ)[0:2]", "def HZKJ(Pmlm):\n VXjJ = jbYn.imread(Pmlm, 0)\n jbYn.imshow('image.png', VXjJ)\n jbYn.waitKey(0)\n jbYn.destroyAllWi...
[ "0.6718546", "0.6612809", "0.65054923", "0.6470193", "0.63558125", "0.6297413", "0.62955284", "0.6284521", "0.625287", "0.624662", "0.62438995", "0.6198988", "0.619816", "0.61752045", "0.61703056", "0.6162204", "0.6152796", "0.6129168", "0.6127739", "0.60935736", "0.6092997",...
0.5628736
100
Reads the least significant bits of image channels and returns them as a continuous bitarray
def YGIJ(VXjJ: Img, bS0K: Iterable[ImgIndex], h4OW: int, XxJb: int) -> R3u8: nPrm = R3u8.bitarray(endian='little') k8mx = le8N(h4OW, 8) riFU = ynYk(VXjJ)[3] if riFU < h4OW: raise ValueError('Image bit depth not big enough for decoding that many bits per channel') ZHfW = 2 ** h4OW - 1 wjR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qlIq(Fg_i: bitarray, jazf):\n Z9rn = 0\n for YRbF in range(jazf, 0, -1):\n qz2o = Fg_i.pop(0)\n bo34.debug('Read %i', qz2o)\n Z9rn |= qz2o << YRbF\n bo34.debug('New value: %s', str(bin(Z9rn)))\n return Z9rn >> 1", "def AVE6(LNo8):\n paXb = LNo8.getdata()\n return (E...
[ "0.6209628", "0.6209588", "0.61977035", "0.6108864", "0.61011964", "0.60106236", "0.5877872", "0.5864183", "0.5863673", "0.585193", "0.5850975", "0.5808081", "0.57990724", "0.57809097", "0.5759367", "0.5751386", "0.57257307", "0.5718479", "0.5712848", "0.57100075", "0.5699564...
0.5695221
21
Convert an iterable of formulas to a DataFrame Usage df = formulas2df(formulas) Arguments formulas = chemical formulas; iterable of strings Returns df = DataFrame of chemical compositions; keys are elements, entries are composition fractions
def TjuY(C2fO): WrfL = [Btf3(l9Ur) for l9Ur in C2fO] tzcD = [set(Csk6.keys()) for Csk6 in WrfL] IdD6 = Pusg(lambda j93S, Nqp_: j93S.union(Nqp_), tzcD) gbc3 = rLdf.DataFrame(columns=IdD6) for QyVM in range(len(WrfL)): gbc3 = gbc3.append(rLdf.DataFrame(columns=WrfL[QyVM].keys(), data=[WrfL[QyV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vXOu(rmc3, kepv, KhBf, AdfU=['Adj_Close']):\n YdD0 = rLdf.date_range(start=kepv, end=KhBf)\n K2kF = {}\n for yCnv in AdfU:\n K2kF[yCnv] = rLdf.DataFrame(index=YdD0)\n if 'SPY' not in rmc3:\n rmc3.append('SPY')\n for o61b in rmc3:\n m6_J = NaD_(o61b, kepv, KhBf)\n for ...
[ "0.5659974", "0.5477646", "0.5471854", "0.5437839", "0.5267371", "0.5250568", "0.5247627", "0.524746", "0.520932", "0.52045083", "0.51814306", "0.5181252", "0.5158986", "0.513527", "0.51128125", "0.5093405", "0.5092828", "0.5058746", "0.50537276", "0.50489825", "0.50329816", ...
0.82993716
0
Get the label used in the codebase from the site object passed in. The possible site names are limited by SITELABELS. So, if we have the value of the site name, we can retrieve the associated choices label. By default, the label of a choice is the name of the attribute (nudge and eindhoven in this case).
def KPku(Emd4, qpDA): try: return Emd4.values[qpDA.name] except KeyError: return Emd4.values[qpDA.domain]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXqs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'label')", "def UXqs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'label')", "def UXqs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'label')", "def UXqs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'label')", "def UXqs(YKHO) -> h8nf[str]:\n r...
[ "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "0.6408941", "...
0.7889908
0
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(...
[ "0.8317406", "0.8285652", "0.82828414", "0.8281149", "0.82362676", "0.82337403", "0.822514", "0.82245225", "0.82118344", "0.81912935", "0.81870127", "0.818126", "0.8180909", "0.8179992", "0.81788236", "0.81788236", "0.8178704", "0.81778836", "0.8177197", "0.81756", "0.8173057...
0.0
-1
Returns a list with the molecular feature for all geometries in `atoms`
def wYlA(RDhP, RR8p): return [xV8r.info[RDhP] for xV8r in RR8p]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p0iA(RDhP, RR8p):\n bySB = []\n for xV8r in RR8p:\n bySB.extend([kSH4 for kSH4, AzVN in zip(xV8r.arrays[RDhP], xV8r.get_chemical_symbols())])\n return bySB", "def D5ov(g8x2) -> list:\n return oyIN.array([YRbF.specie.Z for YRbF in g8x2], dtype='int32').tolist()", "def D5ov(YKHO, XCb3=Fals...
[ "0.8121373", "0.6917069", "0.674577", "0.66835517", "0.6679087", "0.66734535", "0.650338", "0.6440198", "0.6404919", "0.63494873", "0.62041503", "0.6202572", "0.6160904", "0.6082231", "0.6042642", "0.6041707", "0.60299104", "0.6023672", "0.60216916", "0.6013062", "0.5954323",...
0.79141885
1
Returns a list with the atomic features for all geometries in `atoms`
def p0iA(RDhP, RR8p): bySB = [] for xV8r in RR8p: bySB.extend([kSH4 for kSH4, AzVN in zip(xV8r.arrays[RDhP], xV8r.get_chemical_symbols())]) return bySB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wYlA(RDhP, RR8p):\n return [xV8r.info[RDhP] for xV8r in RR8p]", "def D5ov(g8x2) -> list:\n return oyIN.array([YRbF.specie.Z for YRbF in g8x2], dtype='int32').tolist()", "def D5ov(YKHO, XCb3=False, dvgN=None):\n dyCn = list()\n for XkN1 in YKHO.mol2_blocks:\n dyCn.append(XkN1.get_atom_fea...
[ "0.72753954", "0.7063269", "0.7040002", "0.69438934", "0.67182493", "0.6694306", "0.6667144", "0.64960724", "0.6467063", "0.6427398", "0.6341912", "0.6309213", "0.62862706", "0.6272221", "0.62399685", "0.6214837", "0.6096365", "0.60918427", "0.60810316", "0.60675365", "0.6055...
0.84406453
0
argument parsing helper, string to boolean converter basis taken from
def oOc6(Ty9i): if isinstance(Ty9i, bool): return Ty9i if Ty9i.lower() in ('yes', 'true', 't', 'y', '1', 'True', 'TRUE', 'YES', 'Yes'): return True elif Ty9i.lower() in ('no', 'false', 'f', 'n', '0', 'False', 'No', 'NO'): return False else: raise W66h('Boolean value expec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FLBk(d7pR):\n if isinstance(d7pR, bool):\n return d7pR\n elif isinstance(d7pR, str):\n if d7pR.lower() in ['true', '1']:\n return True\n elif d7pR.lower() in ['false', '0']:\n return False", "def fgVc(Ty9i):\n if isinstance(Ty9i, bool):\n return Ty9i...
[ "0.82800096", "0.8254858", "0.8219085", "0.8219085", "0.82013655", "0.8146882", "0.81278086", "0.8124847", "0.8124153", "0.8124153", "0.8124153", "0.8124153", "0.8085978", "0.8083586", "0.8073331", "0.8073331", "0.8073331", "0.8073331", "0.80578625", "0.80532384", "0.8051639"...
0.7692809
46
Only owner decorator Restricts access to view ony to profile owner
def TU8H(JfyU): def XIpm(*bGrB, **B2fa): id = B2fa['id'] if not c5ow.is_authenticated: eTsH(401) elif c5ow.id != id: eTsH(403) return JfyU(**B2fa) return XIpm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aj6W(FYKK):\n\n @zaGL(FYKK)\n def h3Xc(QePW, *qIxc, **B2fa):\n NtEF = B2fa.get('username', None)\n hHld = NtEF and QePW.user.username == NtEF\n if hHld or QePW.user.is_staff:\n return FYKK(QePW, *qIxc, **B2fa)\n raise BlEM()\n return h3Xc", "def ne3s(LfXz=None)...
[ "0.717592", "0.6863693", "0.6832902", "0.6703607", "0.6648273", "0.6601933", "0.6575782", "0.6526552", "0.6524322", "0.65220773", "0.6521908", "0.64959234", "0.64731705", "0.64543736", "0.64441943", "0.6440501", "0.6426091", "0.6411803", "0.640669", "0.63987994", "0.63981795"...
0.749923
0
Picks among actions randomly.
def wRjc(YKHO, Ov5A): """ You should change this in your own agent. """ BK8q = len(YKHO.getFood(Ov5A).asList()) if YKHO.getScore(Ov5A) > 0: YKHO.foodEachTime = 1 else: YKHO.foodEachTime = 1 if Ov5A.getAgentState(YKHO.index).numCarrying < YKHO.foodEachTime: xASv = YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tuKI(YKHO, xASv):\n return tuKI.choice(xASv)", "def LYYN(YKHO):\n return tuKI.choice(YKHO._action_list)", "def su1c(YKHO):\n return tuKI.choice(YKHO.action_space)", "def IIvl(bGrB, xASv):\n return oyIN.random.choice(xASv)", "def V5uW(YKHO, HU0t):\n return oyIN.random.choice(HU0t)", "de...
[ "0.86895263", "0.81253546", "0.8013322", "0.8000019", "0.79420555", "0.7815254", "0.7751514", "0.77179015", "0.7703808", "0.76638395", "0.76528525", "0.76425135", "0.7601561", "0.7599688", "0.7578885", "0.75778246", "0.7566575", "0.75574195", "0.75574195", "0.75574195", "0.75...
0.0
-1
Creates a donation object
def Ab1B(YKHO, _c1T='1995-12-05'): return dYlQ.objects.create(date=_c1T)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IfX6(YKHO, CBIr=None, jGRS=KLOv.NEW):\n T4Wy = L9Jq.objects.create(status=jGRS, user=CBIr)\n OOWi = dYlQ.objects.create(amount=100, project=YKHO.some_project, order=T4Wy)\n return OOWi", "def LyEe(prhC, Md20):\n assert prhC.get_total_donations() == 0\n prhC.create_donor(Md20)\n prhC.create_...
[ "0.7999273", "0.73040944", "0.73040944", "0.71135753", "0.7077129", "0.6961673", "0.6814876", "0.6743617", "0.6644106", "0.6643652", "0.6533414", "0.6529678", "0.64736235", "0.6374798", "0.6343406", "0.6342385", "0.6302589", "0.62925416", "0.62798595", "0.6278426", "0.6266752...
0.78885615
1
Form a rotation matrix from a unit length quaternion. Valid orderings are 'xyzw' and 'wxyz'.
def lsfI(Emd4, _Jov, mJZc='wxyz'): if mJZc is 'xyzw': jCyH = _Jov[:, 0] PMVZ = _Jov[:, 1] MDnR = _Jov[:, 2] zDbD = _Jov[:, 3] elif mJZc is 'wxyz': zDbD = _Jov[:, 0] jCyH = _Jov[:, 1] PMVZ = _Jov[:, 2] MDnR = _Jov[:, 3] vb7U = _Jov.new_empty(_Jo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C86k(kfBB):\n WKvO = kfBB[0]\n LVAh = kfBB[1]\n epBp = kfBB[2]\n yzQ0 = kfBB[3]\n ajwV = WKvO * WKvO\n skBL = LVAh * LVAh\n mPai = epBp * epBp\n xMw6 = yzQ0 * yzQ0\n M_DK = WKvO * LVAh\n O2PS = epBp * yzQ0\n dEWj = WKvO * epBp\n aIOq = LVAh * yzQ0\n eMFo = LVAh * epBp\n ...
[ "0.72367793", "0.70976", "0.707609", "0.7015435", "0.6949975", "0.6929002", "0.6924131", "0.6808566", "0.68058723", "0.6799543", "0.6782145", "0.67396957", "0.6694251", "0.66887474", "0.6677281", "0.667611", "0.6660743", "0.6629083", "0.66272575", "0.6582332", "0.65775245", ...
0.7098222
1
Convert a rotation matrix to a unit length quaternion. Valid orderings are 'xyzw' and 'wxyz'.
def Omrx(Emd4, pTmT, mJZc='wxyz'): jbXL = 1 + pTmT[:, 0, 0] + pTmT[:, 1, 1] + pTmT[:, 2, 2] jbXL[jbXL < 0] = 0 zDbD = 0.5 * ht2j.sqrt(jbXL) jCyH = zDbD.new_empty(zDbD.shape[0]) PMVZ = zDbD.new_empty(zDbD.shape[0]) MDnR = zDbD.new_empty(zDbD.shape[0]) PJZe = zDbD.abs() < Emd4.TOL if PJZe....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DXyK(G7_S):\n BV7b = [G7_S[3], G7_S[0], G7_S[1], G7_S[2]]\n return TcOH.quaternions.quat2mat(BV7b)", "def gpvy(DWJ0, f2pi=True) -> ht2j.Tensor:\n DWJ0 = X2bS(DWJ0)\n assert len(DWJ0.shape) == 2 and list(DWJ0.shape) == [3, 3], 'rotation must be a 3x3 matrix'\n lGE9 = DWJ0[0, 0] + DWJ0[1, 1] + D...
[ "0.6858534", "0.6798233", "0.67651254", "0.66926944", "0.6670043", "0.6649847", "0.65256023", "0.6508025", "0.6490006", "0.648568", "0.64726204", "0.6453089", "0.643934", "0.64323103", "0.6429449", "0.6429024", "0.6403088", "0.64010936", "0.6398302", "0.63786256", "0.6374253"...
0.64762515
10
Multiply quaternion(s) q with quaternion(s) r.
def vA_p(Emd4, vexM, Mkmy, mJZc='wxyz'): NHn2 = Emd4.bouter(Mkmy, vexM) yzQ0 = NHn2[:, 0, 0] - NHn2[:, 1, 1] - NHn2[:, 2, 2] - NHn2[:, 3, 3] WKvO = NHn2[:, 0, 1] + NHn2[:, 1, 0] - NHn2[:, 2, 3] + NHn2[:, 3, 2] LVAh = NHn2[:, 0, 2] + NHn2[:, 1, 3] + NHn2[:, 2, 0] - NHn2[:, 3, 1] epBp = NHn2[:, 0, 3] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vA_p(Emd4, vexM, Mkmy):\n NHn2 = Emd4.outer(Mkmy, vexM)\n yzQ0 = NHn2[0, 0] - NHn2[1, 1] - NHn2[2, 2] - NHn2[3, 3]\n WKvO = NHn2[0, 1] + NHn2[1, 0] - NHn2[2, 3] + NHn2[3, 2]\n LVAh = NHn2[0, 2] + NHn2[1, 3] + NHn2[2, 0] - NHn2[3, 1]\n epBp = NHn2[0, 3] - NHn2[1, 2] + NHn2[2, 1] + NHn2[3, 0]\n ...
[ "0.7989428", "0.789379", "0.788276", "0.788276", "0.71832204", "0.7180727", "0.69490933", "0.6826425", "0.6672233", "0.6670344", "0.66610456", "0.6652557", "0.6644651", "0.66004026", "0.65875155", "0.6575553", "0.65684307", "0.65651083", "0.64931214", "0.6460796", "0.6418151"...
0.79734516
1
Multiply quaternion(s) q with quaternion(s) r.
def vA_p(Emd4, vexM, Mkmy): NHn2 = Emd4.outer(Mkmy, vexM) yzQ0 = NHn2[0, 0] - NHn2[1, 1] - NHn2[2, 2] - NHn2[3, 3] WKvO = NHn2[0, 1] + NHn2[1, 0] - NHn2[2, 3] + NHn2[3, 2] LVAh = NHn2[0, 2] + NHn2[1, 3] + NHn2[2, 0] - NHn2[3, 1] epBp = NHn2[0, 3] - NHn2[1, 2] + NHn2[2, 1] + NHn2[3, 0] return ht2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vA_p(Emd4, vexM, Mkmy, mJZc='wxyz'):\n NHn2 = Emd4.bouter(Mkmy, vexM)\n yzQ0 = NHn2[:, 0, 0] - NHn2[:, 1, 1] - NHn2[:, 2, 2] - NHn2[:, 3, 3]\n WKvO = NHn2[:, 0, 1] + NHn2[:, 1, 0] - NHn2[:, 2, 3] + NHn2[:, 3, 2]\n LVAh = NHn2[:, 0, 2] + NHn2[:, 1, 3] + NHn2[:, 2, 0] - NHn2[:, 3, 1]\n epBp = NHn2...
[ "0.79734516", "0.789379", "0.788276", "0.788276", "0.71832204", "0.7180727", "0.69490933", "0.6826425", "0.6672233", "0.6670344", "0.66610456", "0.6652557", "0.6644651", "0.66004026", "0.65875155", "0.6575553", "0.65684307", "0.65651083", "0.64931214", "0.6460796", "0.6418151...
0.7989428
0
Get file extension from filename
def NNF6(knSv): t1xM = Hy7s.path.splitext(knSv)[1:][0] U5bT = t1xM.replace('.', '') return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oEsG(YKHO, Ux0P):\n return Hy7s.path.splitext(Ux0P)[1][1:]", "def u_Gy(Ux0P):\n return Ux0P.lower().split('.')[-1]", "def oIn5(Ux0P):\n return Hy7s.path.splitext(Ux0P)", "def DJty(Ux0P):\n return Hy7s.path.splitext(Ux0P)[1].lower().lstrip('.')", "def Fst3(Ux0P):\n return oAb3.Path(Ux0P)....
[ "0.91781765", "0.9162784", "0.90917367", "0.8976101", "0.8954962", "0.8889337", "0.8861895", "0.8806346", "0.8789731", "0.8741693", "0.87152916", "0.8686495", "0.86367035", "0.86367035", "0.8631398", "0.86069345", "0.8562073", "0.85601085", "0.8558063", "0.85536355", "0.85392...
0.849818
23
Return the hublocal id for this device.
def jf3N(YKHO) -> str: return YKHO._device.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zDmr(YKHO) -> str:\n return YKHO._id", "def CLML(YKHO) -> str:\n return YKHO._local_id", "def r1ER(YKHO) -> str:\n return YKHO._hub_uid if YKHO._hub_uid is not None else YKHO.client.uid", "def ShR8(YKHO):\n vzeF.debug('localtuya fan unique_id = %s', YKHO._device)\n return YKHO._device.id",...
[ "0.79171956", "0.77713513", "0.77400184", "0.7655528", "0.7365387", "0.731505", "0.731505", "0.7306936", "0.73016244", "0.7295287", "0.7279128", "0.727804", "0.7270406", "0.72180486", "0.7104683", "0.7104683", "0.7051955", "0.7023421", "0.7018336", "0.7004861", "0.69789666", ...
0.67252266
39
Return the device info.
def GWuV(YKHO) -> cGD3: PX_r = YKHO.device_id if YKHO._hub.id != YKHO.device_id: PX_r = f'{YKHO._hub.id}:{YKHO.device_id}' U34r: cGD3 = {'identifiers': {(Sugg, PX_r)}} if YKHO.device_id != YKHO._hub.id: U34r['name'] = YKHO._device.label U34r['suggested_area'] = YKHO.room ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GWuV(YKHO):\n return YKHO._device.device_info", "def GWuV(YKHO):\n return YKHO._api.device_info", "def GWuV(YKHO):\n return YKHO._device.device_info()", "def GWuV(YKHO):\n return YKHO._device.device_info()", "def GWuV(YKHO):\n return YKHO._device_info", "def GWuV(YKHO):\n return YKH...
[ "0.8863439", "0.8860873", "0.88422513", "0.88422513", "0.87083894", "0.87083894", "0.87083894", "0.87083894", "0.87083894", "0.8667184", "0.8620427", "0.85729885", "0.8472082", "0.84417117", "0.8430408", "0.8414165", "0.84125847", "0.8402571", "0.8400361", "0.8366213", "0.836...
0.79116803
67
Return a unique for this device.
def ShR8(YKHO) -> str: return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO):\n return YKHO._device_info.unique_id", "def ShR8(YKHO):\n return YKHO._device.device_uuid", "def ShR8(YKHO) -> str:\n return YKHO._device.device_id", "def ShR8(YKHO):\n return YKHO._device.unique_id", "def ShR8(YKHO):\n Hx9D = YKHO._device.getId()\n return f'{Hx9D}'", "d...
[ "0.8704585", "0.869351", "0.86908627", "0.8657768", "0.85939455", "0.8513754", "0.8504673", "0.8504673", "0.84908587", "0.84642076", "0.84271723", "0.84271723", "0.83891755", "0.82898855", "0.8278206", "0.826821", "0.8258811", "0.8234114", "0.8218355", "0.8202839", "0.8137271...
0.76213235
67
Return the type name of this device.
def type(YKHO) -> str: return YKHO._device.type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DS1x(YKHO) -> str:\n return type(YKHO).__name__", "def FTs5(YKHO):\n return YKHO._platform_backend.GetDeviceTypeName()", "def type(YKHO) -> str:\n return YKHO._device_dbus.Type", "def DKrT(YKHO):\n return YKHO._name", "def DS1x(YKHO) -> str:\n return YKHO._device_information['deviceType'...
[ "0.85482293", "0.84631413", "0.84620506", "0.8415922", "0.8364921", "0.8295331", "0.8253004", "0.8123627", "0.8040571", "0.8016425", "0.79840124", "0.79814327", "0.7953704", "0.79328114", "0.79166806", "0.78813934", "0.7865801", "0.7865801", "0.7865801", "0.7865801", "0.78658...
0.86490494
0
Return the last update time of this device.
def cV9T(YKHO) -> float: return YKHO._device.last_update
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vit6(YKHO):\n return YKHO._last_update_time", "def Vit6(YKHO):\n return YKHO.file_system.last_update_time(YKHO.relative_path)", "def Vit6(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_update_time')", "def dKMA(YKHO):\n return YKHO.__time_of_update", "def P1L_(YKHO) -> str:\n return qe4Y.ge...
[ "0.8749336", "0.8571252", "0.8546957", "0.8466681", "0.8331148", "0.83097935", "0.83097935", "0.8291009", "0.8273892", "0.8273892", "0.82501334", "0.82501334", "0.8243077", "0.8243077", "0.8243077", "0.8243077", "0.8243077", "0.8243077", "0.8243077", "0.8243077", "0.8243077",...
0.8693121
1
Indicate whether this device is currently disabled.
def gv1u(YKHO) -> bool: if YKHO.registry_entry: return YKHO.registry_entry.disabled_by is not None return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lbi2(YKHO):\n return YKHO.device_disabled", "def gv1u(YKHO):\n gv1u = YKHO.interface.is_disabled\n return gv1u", "def lbi2(YKHO) -> bool:\n return qe4Y.get(YKHO, 'disabled')", "def lbi2(YKHO) -> bool:\n return qe4Y.get(YKHO, 'disabled')", "def gv1u(YKHO):\n return YKHO._disabled", "...
[ "0.88408285", "0.86128527", "0.8545921", "0.8545921", "0.8467534", "0.8467534", "0.83768195", "0.8360266", "0.83132994", "0.82763964", "0.82147557", "0.8155801", "0.8064237", "0.80578667", "0.80578667", "0.80578667", "0.7996032", "0.7958461", "0.7901425", "0.7895884", "0.7886...
0.78354967
40
Get a dbt Cloud job run. Please note that this function will fail if any call to dbt Cloud APIs fail.
def hSrZ(Z31E: int, eOtH: str, ByBU: int, W7dx: int=None) -> dict: xUDu = 10 wy8A = 0 while not W7dx or wy8A <= W7dx: wa1f = G4JS.get(url=oE8H.format(accountId=Z31E, runId=ByBU), headers={'Authorization': f'Bearer {eOtH}'}) if wa1f.status_code != 200: raise OlSW(message=wa1f.reas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lQR_(YKHO, rjee: str) -> dM5j:\n try:\n YKHO.__api.get_project(int(rjee))\n except (Xwgg, ValueError):\n raise jbdl(\"Could not retrieve job with job_id '{}' \".format(rjee))\n return dM5j(YKHO, rjee, YKHO.__api)", "def UIzg(rjee, rJDA=None):\n rJDA = rJDA or Hy7s.environ['CROWDFLOW...
[ "0.6534968", "0.64671725", "0.6425851", "0.6331496", "0.62972677", "0.62850314", "0.6207878", "0.62064844", "0.6184198", "0.6142588", "0.61365587", "0.61287296", "0.61236125", "0.6055057", "0.6047232", "0.602607", "0.60077775", "0.5980419", "0.59802085", "0.59649146", "0.5896...
0.0
-1
Returns True if x i odd
def C_CQ(WKvO): return WKvO % 2 != 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XHAY(WKvO):\n return WKvO % 2 != 0", "def kYZq(WKvO):\n return WKvO % 2", "def kYZq(WKvO):\n if WKvO % 2 != 0:\n return True\n return False", "def C_CQ(WKvO):\n return not int(WKvO) % 2 == 0", "def wlbi(YRbF):\n return YRbF % 2 != 0", "def kYZq(WKvO):\n if WKvO - int(WKvO)...
[ "0.82361907", "0.82252854", "0.8193674", "0.8074962", "0.8028787", "0.7935307", "0.79261535", "0.78136426", "0.78136426", "0.78082764", "0.77974755", "0.7791882", "0.7713999", "0.77022135", "0.7647881", "0.7619484", "0.7608085", "0.7598099", "0.7587632", "0.75852233", "0.7579...
0.80287033
5