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
when server is activated, load weight or use joblib or pickle for performance improvement. then, assign pretrained model instance to self.model.
def tyeH(YKHO, VqRE=''): N5MO(20) pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO, SoQP: FLContext) -> ZztC:\n if Hy7s.path.exists(YKHO.save_path):\n YKHO.logger.info('Loading server model')\n C3ST = tyeH(YKHO.save_path)\n else:\n YKHO.logger.info(f'Initialization, sending global settings: {YKHO.initial_params}')\n C3ST = YKHO.initial_params\n ...
[ "0.7513821", "0.7489698", "0.7478855", "0.7212139", "0.70114887", "0.6966133", "0.69644463", "0.6957568", "0.6946004", "0.6917416", "0.6904301", "0.6886772", "0.6873792", "0.6843547", "0.67922795", "0.6770596", "0.672967", "0.66816485", "0.6676346", "0.66728187", "0.667176", ...
0.0
-1
Creates a correct path no matter where the test is run from
def xJSV(mWFP: str, ZI14: str='', abs: bool=True, YBcr: str='.ipynb') -> str: WuTt = Hy7s.path.dirname(xAKo) pmON = f'{WuTt}/testdata/{mWFP}{ZI14}{YBcr}' return Hy7s.path.abspath(pmON) if abs else pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x2kL() -> GkAb:\n return fmoX", "def u090(YKHO):\n l_jd = GkAb('test_dir')\n n80H = XNgG.make_new_dir(YKHO.base_dir, l_jd)\n YMM5 = 'test_dir'\n iu9b = GkAb(YKHO.base_dir, YMM5)\n with YKHO.subTest():\n YKHO.assertTrue(iu9b.is_dir())\n with YKHO.subTest():\n YKHO.assertEqua...
[ "0.7541922", "0.75215554", "0.7488188", "0.7374937", "0.7367222", "0.7318101", "0.73051554", "0.73038644", "0.7288415", "0.721187", "0.70553327", "0.7012223", "0.6976073", "0.6903619", "0.689646", "0.6838243", "0.6822362", "0.6813825", "0.6802102", "0.67775834", "0.677625", ...
0.0
-1
Ordena una lista de tiles en un diccionario donde pueden ser accedidos mediante una fila y una columna.
def jyU5(YKHO, gEmA): TVTK = YKHO.width gU_t = gEmA.arranged_tiles rdlD = -1 for fvDH, eL5z in enumerate(gEmA.tiles): fvDH %= TVTK if fvDH == 0: rdlD += 1 if eL5z != 0: gU_t[rdlD, fvDH] = eL5z gEmA.tiles = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L_OW(YKHO):\n PttE = []\n for WKvO in range(YKHO.position[0], YKHO.position[0] + m9dq if YKHO.is_horizontal else YKHO.position[0] + hKMD):\n for LVAh in range(YKHO.position[1], YKHO.position[1] + hKMD if YKHO.is_horizontal else YKHO.position[1] + m9dq):\n PttE.append((WKvO, LVAh))\n ...
[ "0.6678496", "0.6630207", "0.6557136", "0.65312195", "0.6426528", "0.6223165", "0.61086667", "0.6080225", "0.60731256", "0.60001016", "0.5878228", "0.5664136", "0.56525993", "0.5641407", "0.5634587", "0.56290716", "0.56286156", "0.5628193", "0.5623876", "0.55987686", "0.55888...
0.72410774
0
String representation of the BoutDataset. Accessed by print(ds.bout)
def zAg0(YKHO): g3PU = YLnl(B7GO, indent=4, compact=True) l5Ny = '<xbout.BoutDataset>\n' + 'Contains:\n{}\n'.format(str(YKHO.data)) + 'Metadata:\n{}\n'.format(g3PU(YKHO.metadata)) if YKHO.options: l5Ny += 'Options:\n{}'.format(YKHO.options) return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n g3PU = YLnl(B7GO, indent=4, compact=True)\n l5Ny = '<xbout.BoutDataset>\\n' + 'Contains:\\n{}\\n'.format(str(YKHO.data)) + 'Metadata:\\n{}\\n'.format(g3PU(YKHO.metadata))\n if YKHO.options:\n l5Ny += 'Options:\\n{}'.format(g3PU(YKHO.options))\n return l5Ny", "def zAg0(YKHO):\...
[ "0.7738638", "0.68448293", "0.6820169", "0.6812283", "0.6772967", "0.6755283", "0.67315626", "0.66959274", "0.66763437", "0.6670186", "0.6663785", "0.66437835", "0.658378", "0.6578823", "0.65750813", "0.65570045", "0.6543551", "0.653589", "0.6528994", "0.6528994", "0.6521988"...
0.76001686
1
Create a new Dataset with all 3d variables transformed to fieldaligned coordinates, which are shifted with respect to the base coordinates by an angle zShift
def e2FR(YKHO): Aofo = YKHO.data.copy() for Ty9i in eNCK(Aofo, Aofo.coords): SG6Y = Aofo[Ty9i] if Aofo.metadata['bout_zdim'] in SG6Y.dims and SG6Y.attrs.get('direction_y', None) == 'Standard': Aofo[Ty9i] = SG6Y.bout.to_field_aligned() return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UQeK(WKvO: float, LVAh: float, epBp: float, A3Vt: np.array) -> oyIN.array:\n Kt_s = oyIN.zeros((4, 4))\n Kt_s[:3, :3] = A3Vt\n Kt_s[:, 3] = [WKvO, LVAh, epBp, 1.0]\n return Kt_s", "def NrEr(WKvO, LVAh, epBp):\n return MDiY(WKvO) + (MDiY(LVAh) << 1) + (MDiY(epBp) << 2)", "def pegQ(jQ3Z):\n ...
[ "0.59011894", "0.584848", "0.578346", "0.5717035", "0.57152915", "0.5705876", "0.56149644", "0.54895145", "0.5485159", "0.54805505", "0.547275", "0.5451591", "0.54237884", "0.5406863", "0.5382211", "0.5367371", "0.53520966", "0.53291565", "0.5325628", "0.5318034", "0.53115976...
0.54179764
13
Get bounding surfaces. Surfaces are returned as arrays of points describing a polygon, assuming the third spatial dimension is a symmetry direction.
def es7e(YKHO, jNOo=('R', 'Z')): return rAH7(YKHO.data, jNOo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _d3g(quXY):\n _w9w = quXY.getsurfaces() + quXY.getshadingsurfaces() + quXY.getsubsurfaces()\n return _w9w", "def _w9w(YKHO):\n return YKHO._surfaces", "def _w9w(YKHO):\n _w9w = []\n for YRbF in range(1000):\n J20S = YKHO.surfaceInfo(YRbF)\n if J20S is not None:\n _w9...
[ "0.6530279", "0.6434113", "0.6411715", "0.6280182", "0.6126913", "0.5993448", "0.57987916", "0.57056105", "0.56974256", "0.56121373", "0.556502", "0.55179393", "0.5502502", "0.5479062", "0.54683447", "0.54181874", "0.54075956", "0.5395107", "0.53748316", "0.53256476", "0.5316...
0.704489
0
compute the 2's complement of int value val
def h7al(wEf2, UOVU): if wEf2 & 1 << UOVU - 1 != 0: wEf2 = wEf2 - (1 << UOVU) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rD0N(wEf2):\n Fg_i = bin(wEf2)\n Fg_i = Fg_i.replace('0', 'x')\n Fg_i = Fg_i.replace('1', '0')\n Fg_i = Fg_i.replace('x', '1')\n Fg_i = Fg_i.replace('1b', '0b')\n return int(Fg_i, 2)", "def CX33(wEf2):\n return -1 * MQck(wEf2)", "def X1Vv(wEf2, UOVU):\n if wEf2 & 1 << UOVU - 1 != 0:...
[ "0.7548196", "0.7474319", "0.74621737", "0.7444895", "0.7372613", "0.7227137", "0.7093456", "0.7083535", "0.6965524", "0.69272786", "0.6796253", "0.6767744", "0.6730829", "0.66353106", "0.6527896", "0.64418924", "0.63548034", "0.63548034", "0.6349893", "0.633111", "0.633111",...
0.5890496
51
Extract the cell and previous output tensors from the given state.
def jqrQ(YKHO, QTBn): Fv2L = YKHO._config HKhg = [None] * Fv2L.num_dims b6G4 = [None] * Fv2L.num_dims tCDP = YKHO._cell_state_size() ZxSu = tCDP - Fv2L.num_units if YKHO._state_is_tuple: if len(Fv2L.recurrents) != len(QTBn): raise ValueError('Expected state as a tuple of {} e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xhfp(YKHO, hlel):\n dn5x = hlel[:, :-1, 0:YKHO._hidden_size]\n DW23 = hlel[:, 1:, YKHO._hidden_size:]\n v6fy = hlel[:, -1, 0:YKHO._hidden_size]\n XhSs = hlel[:, 0, YKHO._hidden_size:]\n XU9L = ht2j.cat((v6fy, XhSs), -1)\n return (XU9L, dn5x, DW23)", "def KVH6(YKHO, FRUf, RQrb=None):\n if...
[ "0.6254729", "0.621857", "0.62071514", "0.60771316", "0.60678285", "0.603823", "0.5995742", "0.59708154", "0.5964992", "0.59554535", "0.5947492", "0.59370697", "0.5930274", "0.58716804", "0.58503854", "0.58397615", "0.5837682", "0.5797076", "0.5784501", "0.5777019", "0.577603...
0.77416164
0
Total size of the state of the inner cell used in this grid.
def OMmU(YKHO): hP8_ = YKHO._cells[0].state_size if isinstance(hP8_, tuple): return sum(hP8_) return hP8_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vVLY(YKHO):\n raise NotImplementedError('Please implement this method')", "def zNig(YKHO):\n if YKHO.right and YKHO.left:\n return YKHO.left.height() + YKHO.right.height()\n elif not YKHO.right:\n return YKHO.left.size()\n elif not YKHO.left:\n return YKHO.right.size()\n e...
[ "0.74167323", "0.7394969", "0.7364005", "0.72789454", "0.7233926", "0.72176397", "0.7182249", "0.7145923", "0.714297", "0.7078754", "0.70768565", "0.706027", "0.7049083", "0.69589293", "0.69470435", "0.6859403", "0.68581504", "0.68440723", "0.68406284", "0.6830058", "0.681499...
0.8483224
0
Propagates through all the cells in dim_indices dimensions.
def RMp9(LpEQ, Fv2L, JnVq, HKhg, b6G4, UlEb, AJEJ, cVc2): if len(LpEQ) == 0: return if Fv2L.num_dims > 1: rXRE = [None] * (Fv2L.num_dims - 1) for Csk6 in Fv2L.dims[:-1]: if UlEb[Csk6.idx] is None: rXRE[Csk6.idx] = b6G4[Csk6.idx] else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vAXT(YKHO, _0VL):\n for PiUU in reversed(range(YKHO.get_n_dimensions())):\n _0VL[PiUU] += 1\n if _0VL[PiUU] < YKHO.get_n_points_of_dim(PiUU):\n return True\n _0VL[PiUU] = 0\n return False", "def Vah4(Pfcj, X0Yi, ulBT):\n return Pfcj * ulBT + X0Yi", "def kopU(YKHO, _...
[ "0.57592505", "0.5570539", "0.5558024", "0.5444846", "0.53574795", "0.5317625", "0.530076", "0.5242168", "0.5230099", "0.52238643", "0.5221276", "0.52102256", "0.5180341", "0.5174899", "0.5166367", "0.51390105", "0.51300037", "0.51170236", "0.5116153", "0.5102122", "0.5083281...
0.5909939
0
This function renders the 404 error page
def Ffnu(P1dF): LeZt = ['business', 'entertainment', 'general', 'health', 'science', 'sports', 'technology'] return (TvZl('notfound.html', categories=LeZt), 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF():\n return TvZl('404.html')", "def o3cf(tTpl):\n return (TvZl('errors/404.html'), 404)", "def m7kB(tTpl):\n return (TvZl('404.html'), 404)", "def m7kB(tTpl):\n return (TvZl('404.html'), 404)", "def m7kB(tTpl):\n return (TvZl('404.html'), 404)", "def m7kB():\n return (TvZl('err...
[ "0.8861111", "0.8804941", "0.8779312", "0.87674886", "0.87674886", "0.8756718", "0.87511665", "0.87232023", "0.86958873", "0.8680467", "0.8637485", "0.8631379", "0.86279774", "0.8570346", "0.85587156", "0.85438836", "0.85120314", "0.84958667", "0.8494395", "0.8490128", "0.848...
0.8093695
36
Get the unique DataGrid identifier. Will only exists if the DataGrid has been persisted.
def unpH(YKHO) -> h8nf[str]: return YKHO.id_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9Ym(YKHO):\n return YKHO.unique_id", "def ShR8(YKHO) -> str:\n return f'{YKHO.entry_id}_{YKHO.module_id}_{YKHO.data_id}'", "def ShR8(YKHO):\n return YKHO._table.id", "def ShR8(YKHO):\n return YKHO._id", "def ShR8(YKHO):\n return YKHO._id", "def OyzV(YKHO):\n return YKHO.__id", "d...
[ "0.6836633", "0.6829037", "0.6819352", "0.674742", "0.674742", "0.6684496", "0.66426384", "0.66365415", "0.6628134", "0.6628134", "0.660426", "0.6586553", "0.6578854", "0.6578854", "0.6578854", "0.6578854", "0.6578825", "0.65748423", "0.65732265", "0.657314", "0.65684", "0....
0.0
-1
Opens the DataGrid in the default browser.
def open(YKHO): if YKHO.id_ is None: raise Jd_X('DataGrid must be created or saved before opening.') zrIJ = ligQ.current.domain.replace('.web', '') if zrIJ == 'https://api.gs.com': zrIJ = 'https://marquee.gs.com' bD7m = f'{zrIJ}/s/markets/grids/{YKHO.id_}' HywK.open(bD7m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QM3s(YKHO):\n HywK.open(YKHO.url)", "def theH(YKHO):\n bD7m = 'http://kfc.matrix.io'\n YKHO.browser.openurl(bD7m)\n YKHO.OnlyDisplay(f'start {bD7m}')", "def hfft(QpfX, vbQv):\n\n def kMqd(BWXx):\n if BWXx.startswith('`') and BWXx.endswith('`'):\n return jZ4I.literal_eval(BW...
[ "0.6684423", "0.6295892", "0.60630506", "0.6011398", "0.5945774", "0.5920018", "0.5900473", "0.58411974", "0.5792295", "0.57660633", "0.57613224", "0.57578784", "0.5740384", "0.5725768", "0.5719649", "0.5717693", "0.56893307", "0.5677102", "0.5672921", "0.56497353", "0.563292...
0.77590376
0
Set the sorts parameter of the grid response
def MzEz(YKHO, zS5u: List[DataGridSort]): YKHO.sorts = zS5u
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hHsm(YKHO):\n ...", "def AxH8(YKHO, Ata7):\n YKHO.model.sort_data(Ata7)", "def AxH8(YKHO):\n pass", "def AwKv(YKHO, nXcQ: epl_imagery_pb2.SortDirection):\n if YKHO.metadata_filters.sorted_by:\n YKHO.metadata_filters.sorted_by.query_params.sort_direction = DNjB.NOT_SORTED\n YKHO.meta...
[ "0.6800051", "0.65857226", "0.64096016", "0.6198106", "0.61229455", "0.59775925", "0.595352", "0.5918668", "0.5892415", "0.5884207", "0.58277094", "0.5788118", "0.5744081", "0.5704034", "0.55871105", "0.55828655", "0.558249", "0.55728805", "0.55708957", "0.5558602", "0.555426...
0.64888066
2
initialize the parent class and the face_mesh model.
def FIMM(YKHO): DDBf.AbstractMeasurement.__init__(YKHO) YKHO.face_mesh = YlxU.FaceMesh(min_detection_confidence=0.5, min_tracking_confidence=0.5) YKHO.drawing_spec = fVwJ.DrawingSpec(thickness=1, circle_radius=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, rR8k):\n YKHO._mesh = rR8k", "def FIMM(YKHO, gWoW=None):\n YKHO.detector = uouW.get_frontal_face_detector()\n if gWoW != None:\n YKHO.predictor = uouW.shape_predictor(gWoW)\n else:\n YKHO.predictor = None", "def FIMM(YKHO, rR8k, cAlv):\n super().__init__(rR8k, cAlv)\...
[ "0.7453505", "0.6851489", "0.6842294", "0.6824078", "0.6807889", "0.6781852", "0.6758116", "0.66532725", "0.66532314", "0.66333944", "0.644714", "0.64381653", "0.6411551", "0.63970214", "0.63875043", "0.6386501", "0.6369439", "0.6361478", "0.6348545", "0.63335305", "0.6315081...
0.71858
1
Given an array of numbers arr. A sequence of numbers is called an arithmetic progression if the difference between any two consecutive elements is the same.Return true if the array can be rearranged to form an arithmetic progression, otherwise, return false. >>> canMakeArithmeticProgression([3,5,1]) True >>> canMakeAri...
def YX2s(ezWE): OeK1 = sorted(ezWE) yk4i = OeK1[1] - OeK1[0] for or8S, mLGw in enumerate(OeK1): if or8S == 0: pass elif mLGw - OeK1[or8S - 1] != yk4i: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HfLV(ezWE):\n if len(ezWE) < 3:\n return 0\n m3Cy = ezWE[1] - ezWE[0]\n OMYo = ezWE[1] / ezWE[0]\n effl = True\n J4n1 = True\n for mLGw in range(1, len(ezWE)):\n if ezWE[mLGw] - ezWE[mLGw - 1] != m3Cy:\n effl = False\n if ezWE[mLGw] / ezWE[mLGw - 1] != OMYo:\n ...
[ "0.66149616", "0.647907", "0.6376644", "0.6320006", "0.62170225", "0.62060744", "0.60170907", "0.5871938", "0.5855737", "0.5823819", "0.5690678", "0.5627322", "0.5579443", "0.5552384", "0.55418354", "0.5513993", "0.5461593", "0.54601616", "0.5458909", "0.5411442", "0.5406272"...
0.864427
0
Ensure that the sender ID is valid, based on the email's intent. Many emails are only allowed to be sent by a certain user or type of user, e.g. 'admin' or an admin/moderator. This function will raise an exception if the given sender is not allowed to send this type of email.
def nFJk(E2VF, duDf): if E2VF not in lIMs: raise Exception('Invalid email intent string: %s' % E2VF) elif not lIMs[E2VF](duDf): G9jH.error("Invalid sender_id %s for email with intent '%s'" % (duDf, E2VF)) raise Exception("Invalid sender_id for email with intent '%s'" % E2VF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jjkn(YKHO, duDf):\n if not isinstance(duDf, int):\n raise TypeError('It has to be an integer identifier')\n if duDf < 0:\n raise ValueError('There are not negative identifiers')\n YKHO.__sender_id = duDf", "def uaON(YKHO) -> bool:\n return GLG2.is_valid_str(YKHO.sender)", "def vC9...
[ "0.63011056", "0.60451776", "0.5974665", "0.5636324", "0.55161345", "0.54815364", "0.5412664", "0.5280462", "0.5246744", "0.52253884", "0.5225088", "0.5218983", "0.52032375", "0.5185404", "0.5149468", "0.5148969", "0.51131505", "0.5094248", "0.50170064", "0.5002656", "0.49936...
0.7997367
0
Returns if users can receive email.
def fm1c(Zuw5, RjQS, yJVO): qU7b = SW3v.get_users_email_preferences(Zuw5) Vede = SW3v.get_users_email_preferences_for_exploration(Zuw5, RjQS) n8Nd = zip(qU7b, Vede) Aofo = [] if yJVO: for Buw5, vibz in n8Nd: Aofo.append(Buw5.can_receive_feedback_message_email and (not vibz.mute_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQqc(YKHO, XE3D):\n return bySB.is_enabled(bySB.EMAIL_NOTIFICATIONS) and YKHO.notification_settings.via_email and nNXP.can_email_user(YKHO.user) and super().can_notify(XE3D)", "def qJLQ(YKHO):\n return 'gmail.compose' in YKHO.scopes or 'gmail.send' in YKHO.scopes", "def D4HK(YKHO):\n return YKHO.u...
[ "0.67877007", "0.6707869", "0.65218943", "0.6409309", "0.63130254", "0.6297347", "0.6297347", "0.6206325", "0.62061167", "0.6101321", "0.6101321", "0.60814977", "0.60814977", "0.60814977", "0.60761756", "0.6066136", "0.60443467", "0.60337234", "0.60288686", "0.59087044", "0.5...
0.62996846
5
__init__(itkArray2DD self) > itkArray2DD __init__(itkArray2DD self, unsigned int rows, unsigned int cols) > itkArray2DD __init__(itkArray2DD self, itkArray2DD array) > itkArray2DD __init__(itkArray2DD self, vnl_matrixD matrix) > itkArray2DD
def FIMM(YKHO, *qIxc): UHEl.itkArray2DD_swiginit(YKHO, UHEl.new_itkArray2DD(*qIxc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc):\n UHEl.itkArray2DF_swiginit(YKHO, UHEl.new_itkArray2DF(*qIxc))", "def FIMM(YKHO, *qIxc):\n UHEl.itkArray2DUI_swiginit(YKHO, UHEl.new_itkArray2DUI(*qIxc))", "def FIMM(YKHO, *qIxc):\n u2cm.itkMapContainerULLQEMPF3GQEULLULLBBT_swiginit(YKHO, u2cm.new_itkMapContainerULLQEMPF3GQEULLU...
[ "0.78698415", "0.7478759", "0.64136213", "0.6410877", "0.63646346", "0.63412094", "0.63412094", "0.63412094", "0.6274328", "0.62616503", "0.6219141", "0.6165293", "0.6112146", "0.60364133", "0.6021272", "0.60208875", "0.60110205", "0.60078305", "0.5997586", "0.59894484", "0.5...
0.84896344
0
__init__(itkArray2DF self) > itkArray2DF __init__(itkArray2DF self, unsigned int rows, unsigned int cols) > itkArray2DF __init__(itkArray2DF self, itkArray2DF array) > itkArray2DF __init__(itkArray2DF self, vnl_matrixF matrix) > itkArray2DF
def FIMM(YKHO, *qIxc): UHEl.itkArray2DF_swiginit(YKHO, UHEl.new_itkArray2DF(*qIxc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc):\n UHEl.itkArray2DD_swiginit(YKHO, UHEl.new_itkArray2DD(*qIxc))", "def FIMM(YKHO, *qIxc):\n UHEl.itkArray2DUI_swiginit(YKHO, UHEl.new_itkArray2DUI(*qIxc))", "def FIMM(YKHO, *qIxc):\n u2cm.itkQuadEdgeMeshCellTraitsInfo2FFULLULLUCQEMPGQEULLQEMPF2GQEULLULLBBTGQE_swiginit(YKHO, u2cm....
[ "0.7764629", "0.7177791", "0.63070595", "0.624977", "0.62463087", "0.6222416", "0.61589444", "0.6103977", "0.6060324", "0.6058261", "0.6057244", "0.6029068", "0.59877056", "0.5977644", "0.5977644", "0.5977644", "0.5973117", "0.595984", "0.595467", "0.59331894", "0.59264046", ...
0.86677057
0
__init__(itkArray2DUI self) > itkArray2DUI __init__(itkArray2DUI self, unsigned int rows, unsigned int cols) > itkArray2DUI __init__(itkArray2DUI self, itkArray2DUI array) > itkArray2DUI __init__(itkArray2DUI self, vnl_matrixUI matrix) > itkArray2DUI
def FIMM(YKHO, *qIxc): UHEl.itkArray2DUI_swiginit(YKHO, UHEl.new_itkArray2DUI(*qIxc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc):\n UHEl.itkArray2DD_swiginit(YKHO, UHEl.new_itkArray2DD(*qIxc))", "def FIMM(YKHO, *qIxc):\n UHEl.itkArray2DF_swiginit(YKHO, UHEl.new_itkArray2DF(*qIxc))", "def FIMM(YKHO, *qIxc):\n Ywzx.itkRGBAPixelUC_swiginit(YKHO, Ywzx.new_itkRGBAPixelUC(*qIxc))", "def FIMM(YKHO, *qIxc):\n ...
[ "0.80487615", "0.777564", "0.69835806", "0.68892384", "0.68715703", "0.67145765", "0.64858663", "0.64536214", "0.6435996", "0.6420875", "0.6387748", "0.6356113", "0.63242954", "0.6317986", "0.6293345", "0.6236154", "0.6188177", "0.61849767", "0.6184558", "0.61808354", "0.6175...
0.8610839
0
GetElement(itkArray2DUI self, unsigned long long row, unsigned long long col) > unsigned int const &
def KTHc(YKHO, rdlD: 'unsigned long long', fvDH: 'unsigned long long') -> 'unsigned int const &': return UHEl.itkArray2DUI_GetElement(YKHO, rdlD, fvDH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KTHc(YKHO, rdlD: 'unsigned long long', fvDH: 'unsigned long long') -> 'double const &':\n return UHEl.itkArray2DD_GetElement(YKHO, rdlD, fvDH)", "def KTHc(YKHO, rdlD: 'unsigned long long', fvDH: 'unsigned long long') -> 'float const &':\n return UHEl.itkArray2DF_GetElement(YKHO, rdlD, fvDH)", "def XU...
[ "0.7785524", "0.7625416", "0.68500215", "0.6774247", "0.670162", "0.644203", "0.63044876", "0.62142974", "0.6013558", "0.5961701", "0.5959366", "0.59231186", "0.59009427", "0.5897651", "0.5849272", "0.5831127", "0.5822153", "0.58043116", "0.5800766", "0.57987154", "0.5794374"...
0.8432618
0
Odd little function to return the number of significant figures in a number. It kills everything to the right of the e and removes the period
def CbYT(WKvO): swNX = ZbWC.compile('([0-9.]+)') r8hN = swNX.search('{:e}'.format(float(WKvO))) if r8hN: wEf2 = r8hN.group(1).replace('.', '') while wEf2[-1:] == '0': wEf2 = wEf2[0:-1] return len(wEf2) return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vVtN(mLGw, LUIE):\n if mLGw != 0:\n return round(mLGw, -int(epAf.floor(epAf.log10(abs(mLGw))) - (LUIE - 1)))\n else:\n return 0", "def MYeq(WKvO):\n assert isinstance(WKvO, (int, float)), 'Invalid number.'\n n73o = '%E' % WKvO\n ZkaR = n73o.split('E')[0].rstrip('0').rstrip('.')\n...
[ "0.7250692", "0.68816465", "0.6669559", "0.6556427", "0.6467628", "0.6467628", "0.6347691", "0.62990284", "0.62122464", "0.6182709", "0.6169792", "0.6169034", "0.6145245", "0.6109955", "0.6031198", "0.59817976", "0.59817976", "0.59702784", "0.59157544", "0.5914876", "0.589825...
0.8002274
0
Returns n to the nearest number
def UYdI(exwG, FGW3): return epAf.floor(exwG / FGW3 + 0.5) * FGW3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MJ6n(mLGw):\n return int(oyIN.round(mLGw))", "def KnuN(mLGw):\n ANfV = 0\n while (ANfV + 1) ** 2 < mLGw:\n ANfV += 1\n return ANfV ** 2", "def gt4e(WKvO, exwG=5):\n return exwG * epAf.floor(float(WKvO) / exwG)", "def ZGXZ(WKvO, exwG=5):\n return exwG * epAf.ceil(float(WKvO) / exw...
[ "0.79727787", "0.7289314", "0.7277677", "0.7213795", "0.7167367", "0.7123137", "0.7002838", "0.67128956", "0.67010766", "0.6675226", "0.6635987", "0.6608803", "0.6608738", "0.6587024", "0.65679616", "0.6504897", "0.648127", "0.64677525", "0.64274275", "0.642367", "0.642367", ...
0.86348236
0
Return checkout shipping price. It takes in account all plugins.
def SdNt(*, p_z1: 'PluginsManager', qPXc: 'CheckoutInfo', Nqlg: Iterable['CheckoutLineInfo'], UTX6: Optional['Address'], bnZy: Optional[Iterable[DiscountInfo]]=None) -> 'TaxedMoney': CcA_ = p_z1.calculate_checkout_shipping(qPXc, Nqlg, UTX6, bnZy or []) return wDOT(CcA_, qPXc.checkout.currency)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aluC(qPXc: 'CheckoutInfo', Nqlg: Iterable['CheckoutLineInfo']=None) -> _ys5:\n VIXL = qPXc.checkout.currency\n MvV9 = UFPL(qPXc, Nqlg)\n hZ7s = qPXc.voucher.type == vwK0.SHIPPING if qPXc.voucher else False\n if hZ7s:\n FMQW = qPXc.checkout.discount\n MvV9 = max(UW8t(VIXL), MvV9 - FMQW...
[ "0.7024894", "0.67271966", "0.66116214", "0.6588111", "0.6499324", "0.6466315", "0.6371215", "0.6371215", "0.63457894", "0.6332819", "0.62777066", "0.62607366", "0.61951643", "0.6179664", "0.61160535", "0.61160535", "0.61160535", "0.60824025", "0.6081641", "0.60458434", "0.60...
0.7875183
0
Return the total cost of all the checkout lines, taxes included. It takes in account all plugins.
def rKmu(*, p_z1: 'PluginsManager', qPXc: 'CheckoutInfo', Nqlg: Iterable['CheckoutLineInfo'], UTX6: Optional['Address'], bnZy: Optional[Iterable[DiscountInfo]]=None) -> 'TaxedMoney': vfgT = p_z1.calculate_checkout_subtotal(qPXc, Nqlg, UTX6, bnZy or []) return wDOT(vfgT, qPXc.checkout.currency)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mlTw(*, p_z1: 'PluginsManager', qPXc: 'CheckoutInfo', Nqlg: Iterable['CheckoutLineInfo'], hHFI: 'CheckoutLineInfo', bnZy: Iterable[DiscountInfo]=[]) -> 'TaxedMoney':\n UTX6 = qPXc.shipping_address or qPXc.billing_address\n CDtS = p_z1.calculate_checkout_line_total(qPXc, Nqlg, hHFI, UTX6, bnZy or [])\n ...
[ "0.73588604", "0.69469416", "0.6694762", "0.64847225", "0.64227974", "0.63552034", "0.630178", "0.62969834", "0.62609583", "0.62545556", "0.62270117", "0.62178963", "0.62009585", "0.619866", "0.6145637", "0.6144571", "0.6133934", "0.6109146", "0.60690856", "0.60615283", "0.60...
0.6543316
3
Return the total cost of the checkout. Total is a cost of all lines and shipping fees, minus checkout discounts, taxes included. It takes in account all plugins.
def D4aa(*, p_z1: 'PluginsManager', qPXc: 'CheckoutInfo', Nqlg: Iterable['CheckoutLineInfo'], UTX6: Optional['Address'], bnZy: Optional[Iterable[DiscountInfo]]=None) -> 'TaxedMoney': EC6a = p_z1.calculate_checkout_total(qPXc, Nqlg, UTX6, bnZy or []) return wDOT(EC6a, qPXc.checkout.currency)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mlTw(*, p_z1: 'PluginsManager', qPXc: 'CheckoutInfo', Nqlg: Iterable['CheckoutLineInfo'], hHFI: 'CheckoutLineInfo', bnZy: Iterable[DiscountInfo]=[]) -> 'TaxedMoney':\n UTX6 = qPXc.shipping_address or qPXc.billing_address\n CDtS = p_z1.calculate_checkout_line_total(qPXc, Nqlg, hHFI, UTX6, bnZy or [])\n ...
[ "0.699066", "0.69352424", "0.67948633", "0.67613196", "0.6739813", "0.67147726", "0.6710645", "0.6695521", "0.6640341", "0.66280836", "0.6603674", "0.6602697", "0.6597623", "0.6572456", "0.65218973", "0.64966685", "0.64876944", "0.6487631", "0.64736366", "0.64667153", "0.6438...
0.7395403
0
Return the total price of provided line, taxes included. It takes in account all plugins.
def mlTw(*, p_z1: 'PluginsManager', qPXc: 'CheckoutInfo', Nqlg: Iterable['CheckoutLineInfo'], hHFI: 'CheckoutLineInfo', bnZy: Iterable[DiscountInfo]=[]) -> 'TaxedMoney': UTX6 = qPXc.shipping_address or qPXc.billing_address CDtS = p_z1.calculate_checkout_line_total(qPXc, Nqlg, hHFI, UTX6, bnZy or []) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CpL8(YKHO, KBgZ, PObu, A07C, QWcs, XJYn, kN2l):\n Ylbp = {}\n IIDk = YKHO.pool.get('account.tax')\n iF4v = YKHO.pool.get('res.currency')\n for zFiD in YKHO.browse(KBgZ, PObu, A07C):\n hI0L = zFiD.price_unit * (1 - (zFiD.discount or 0.0) / 100.0)\n MvzV = IIDk.compute_all(KBgZ, PObu, z...
[ "0.68811136", "0.68807936", "0.6563494", "0.65322506", "0.6364763", "0.61911374", "0.6189038", "0.6171741", "0.6161707", "0.61553276", "0.61261326", "0.6070365", "0.59981155", "0.5983958", "0.5981905", "0.5974914", "0.59643763", "0.5950477", "0.5905625", "0.5893934", "0.58819...
0.733931
0
Computes the forward pass for a layer of rectified linear units (ReLUs).
def wN5Y(WKvO): yvT9 = None yvT9 = WKvO * (WKvO > 0) wyyA = WKvO return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drfk(YKHO):\n\n def XVC9(yR_P, g6LF, EYyA):\n \"\"\"\n If there is a negative gradient, change it to zero\n \"\"\"\n nWP1 = YKHO.forward_relu_outputs[-1]\n nWP1[nWP1 > 0] = 1\n e1d4 = nWP1 * ht2j.clamp(g6LF[0], min=0.0)\n del YKHO.forward_relu_outputs...
[ "0.67765754", "0.6630487", "0.6603554", "0.6524658", "0.65097666", "0.64478433", "0.6385381", "0.62672025", "0.62047166", "0.6179713", "0.61535424", "0.61385596", "0.6061572", "0.6055216", "0.6048094", "0.6018342", "0.59974337", "0.59908754", "0.59696555", "0.59634507", "0.59...
0.6047937
15
Computes the backward pass for a layer of rectified linear units (ReLUs).
def PPFh(zYcP, wyyA): Jw7X, WKvO = (None, wyyA) Jw7X = zYcP * (WKvO > 0) return Jw7X
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PPFh(YKHO, gEpz, wyyA):\n WKvO = wyyA\n WKvO = oyIN.array(WKvO, copy=True)\n WKvO[WKvO <= 0] = 0\n WKvO[WKvO > 0] = 1\n cf5c = gEpz * WKvO\n return cf5c", "def ZD5u(OaeV, pwN3):\n N77f, lQ3t, P6bq, OCi3 = OaeV.saved_tensors\n begE = P6bq.device\n SGf8 = 1e-10\n Ro40, = ht2j.auto...
[ "0.70412636", "0.694716", "0.6897693", "0.6847592", "0.6847592", "0.6846935", "0.6841099", "0.68178034", "0.6766849", "0.6754919", "0.67536426", "0.67530656", "0.67419785", "0.6739244", "0.6713423", "0.6708748", "0.6699276", "0.66860896", "0.6665928", "0.6665928", "0.6665928"...
0.6696307
17
Forward pass for batch normalization. During training the sample mean and (uncorrected) sample variance are computed from minibatch statistics and used to normalize the incoming data. During training we also keep an exponentially decaying running mean of the mean and variance of each feature, and these averages are use...
def d3MU(WKvO, KMvS, UqYS, Y7R2): Tuqy = Y7R2['mode'] SGf8 = Y7R2.get('eps', 1e-05) H0zq = Y7R2.get('momentum', 0.9) ywwl, lWPh = WKvO.shape zsZT = Y7R2.get('running_mean', oyIN.zeros(lWPh, dtype=WKvO.dtype)) xl1j = Y7R2.get('running_var', oyIN.zeros(lWPh, dtype=WKvO.dtype)) yvT9, wyyA = (No...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO, WKvO, EvQg=True):\n if EvQg is not None:\n JBMS, I8JS = ZylS.nn.moments(WKvO, [0, 1, 2])\n ghdg = YKHO.mean.assign(JBMS)\n RPPm = YKHO.variance.assign(I8JS)\n with ZylS.control_dependencies([ghdg, RPPm]):\n return ZylS.nn.batch_norm_with_global_normalization...
[ "0.7338229", "0.7017974", "0.6941108", "0.6935646", "0.6931301", "0.68716776", "0.6846148", "0.67670196", "0.6757623", "0.6714577", "0.67050827", "0.6647122", "0.6601053", "0.6599012", "0.6576987", "0.6517213", "0.6512478", "0.645963", "0.6453668", "0.64110935", "0.6388228", ...
0.689029
5
A naive implementation of the forward pass for a maxpooling layer.
def LUxS(WKvO, cjPb): yvT9 = None ywwl, Nq1b, C7Ls, XcU5 = WKvO.shape ZdOB, dvGM = (cjPb['pool_height'], cjPb['pool_width']) _0fC = cjPb['stride'] Mh8E = 1 + (C7Ls - ZdOB) // _0fC CRzg = 1 + (XcU5 - dvGM) // _0fC _N7p = WKvO[0][0].strides FEri = tuple(oyIN.array(_N7p) * _0fC) yvT9 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gORb(WKvO, cjPb):\n yvT9 = None\n ywwl, Nq1b, C7Ls, XcU5 = WKvO.shape\n dvGM = cjPb['pool_width']\n ZdOB = cjPb['pool_height']\n _0fC = cjPb['stride']\n nAIO = int((XcU5 - dvGM) / _0fC + 1)\n Ya8v = int((C7Ls - ZdOB) / _0fC + 1)\n yvT9 = oyIN.zeros((ywwl, Nq1b, Ya8v, nAIO))\n for YRb...
[ "0.78478473", "0.77464086", "0.7588915", "0.75831836", "0.75474185", "0.74050933", "0.7378611", "0.7318571", "0.72232896", "0.71326613", "0.7098723", "0.70758176", "0.6990659", "0.69255495", "0.69221073", "0.68792313", "0.68130654", "0.68058133", "0.6792034", "0.6792034", "0....
0.74184185
5
Check if two objects are equal
def IzcV(u7RQ: object, KQB2: object) -> bool: if u7RQ is None and KQB2 is None: return True if u7RQ is None: return False return u7RQ == KQB2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPi6(YKHO, YEnM: object) -> bool:\n ...", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return YKHO.__dict__ == Elif.__dict__", "def up4I(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.N...
[ "0.78094596", "0.7773827", "0.7773827", "0.7751994", "0.7720267", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", "0.77175474", ...
0.7832948
0
Return False if word already in trie, otherwise return True and add
def eJKM(YKHO, GIN8): kMLo = YKHO.root_node Syeu = False for hcXw in GIN8: if hcXw not in kMLo: Syeu = True kMLo[hcXw] = {} kMLo = kMLo[hcXw] if 'End of Word' not in kMLo: Syeu = True kMLo['End on Word'] = {} return Syeu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, GIN8):\n kMLo = YKHO.root\n for hcXw in GIN8:\n if hcXw not in kMLo.children:\n kMLo.children[hcXw] = ep_x()\n kMLo = kMLo.children[hcXw]\n kMLo.is_word = True", "def e0k0(YKHO, GIN8):\n AsCw = YKHO.root\n for G1Hx in GIN8:\n if G1Hx in AsCw.child:\n ...
[ "0.79426163", "0.7905646", "0.7855985", "0.7796953", "0.77269894", "0.77027094", "0.7695847", "0.76716083", "0.76421124", "0.7621175", "0.7495033", "0.7321256", "0.73114586", "0.73099375", "0.72996986", "0.7260195", "0.7251777", "0.72487164", "0.72439677", "0.7241073", "0.723...
0.8097152
0
Returns the list of performances for all models associated with this job. The variances of all metrics will be set to 0.
def CSL8(YKHO) -> list[q_T_]: return [q_T_(training_time=d_mb(XP5J['training']['duration'], 0), latency=d_mb(YKHO.static_metrics['latency'], 0), num_model_parameters=d_mb(YKHO.static_metrics['num_model_parameters'], 0), num_gradient_updates=d_mb(XP5J['training']['num_gradient_updates'], 0), **{G1Hx: d_mb(XP5J['test...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l9oo(YKHO):\n Aofo = YKHO.getReportMetrics()\n Aofo.update(YKHO.getOptimizationMetrics())\n return Aofo", "def Wbxz(YKHO) -> list[dict[str, dict[str, float | int]]]:\n return YKHO.performance['performances']", "def ANpP(YKHO):\n MhWk = YKHO.uptime()\n _HtM = YKHO.downtime()\n x1Ab = YK...
[ "0.6068686", "0.5906195", "0.5847855", "0.5822046", "0.5807015", "0.5726623", "0.57113206", "0.5709921", "0.57070005", "0.567055", "0.5655657", "0.5631146", "0.5530707", "0.5509825", "0.5500033", "0.549014", "0.5486122", "0.548038", "0.54691386", "0.5466722", "0.54654914", ...
0.70373994
0
Retrieves a Keras metric as a `function`/`Metric` class instance. The `identifier` may be the string name of a metric function or class. >>> metric = tf.keras.metrics.get("categorical_crossentropy") >>> type(metric) >>> metric = tf.keras.metrics.get("CategoricalCrossentropy") >>> type(metric) You can also specify `conf...
def NMoC(Ilxn): if isinstance(Ilxn, dict): nC4W = 'module' not in Ilxn return n5rA(Ilxn, use_legacy_format=nC4W) elif isinstance(Ilxn, str): return n5rA(str(Ilxn)) elif callable(Ilxn): return Ilxn else: raise ValueError(f'Could not interpret metric identifier: {Il...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P7BO(AcYW, oLRV=None, GT2U=None):\n if AcYW not in ['accuracy', 'acc', 'crossentropy', 'ce']:\n return mOem.get(AcYW)\n GRgJ = isinstance(GT2U, N8L0.SparseCategoricalCrossentropy) or (isinstance(GT2U, N8L0.LossFunctionWrapper) and GT2U.fn == N8L0.sparse_categorical_crossentropy)\n tl1N = isinst...
[ "0.64331776", "0.5918581", "0.58575666", "0.56548023", "0.56092954", "0.5603099", "0.56016564", "0.55089456", "0.5492291", "0.5395595", "0.5324814", "0.5318652", "0.5310939", "0.5292794", "0.5289496", "0.5235254", "0.5227662", "0.5165119", "0.5161693", "0.5140593", "0.5140334...
0.65417695
0
Activation of a neuron, defined using threshold function.
def YDYE(MKlR): if MKlR > 0: return 1 else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gwAu(YDYE):\n if YDYE >= 0.0:\n return 1\n else:\n return 0", "def ECMu(YKHO, epBp):\n return 1.0 / (1.0 + oyIN.exp(-oyIN.clip(epBp, -250, 250)))", "def YDYE(YKHO, epBp):\n return 1.0 / (1.0 + oyIN.exp(-oyIN.clip(epBp, -250, 250)))", "def YDYE(WKvO):\n return oyIN.maximum(0, ...
[ "0.7202802", "0.7172909", "0.6912251", "0.6873214", "0.67690814", "0.6693703", "0.6669316", "0.6660287", "0.66569805", "0.6627929", "0.6624198", "0.660525", "0.64802074", "0.64802074", "0.6447413", "0.6420548", "0.6408398", "0.6391625", "0.6356477", "0.6353994", "0.6353831", ...
0.6057262
48
Update a weight Wij for a misclassified sample, based on a simple error formula and learning rate.
def vvCV(aDrl, Jbmc, uGSB, Y7fn, tspZ=0.25): hpTs = aDrl - tspZ * ((Jbmc - uGSB) * Y7fn) hpTs = round(hpTs, 3) return hpTs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(HCgY, jILw, dYlE):\n for XP5J in HCgY:\n if XP5J in jILw:\n HCgY[XP5J] *= id2V(1, 2) * id2V(1, dYlE)\n else:\n HCgY[XP5J] *= id2V(1, 2) * id2V(1, 1 - dYlE)\n return HCgY", "def MyUA(YKHO):\n YKHO.w += YKHO.learn_rate * (YKHO.X.T.dot(YKHO.T - YKHO.Y) - YKHO.re...
[ "0.70156485", "0.69537055", "0.67131054", "0.663877", "0.6624332", "0.6624332", "0.6562418", "0.64811146", "0.64668864", "0.6356914", "0.63369185", "0.6277679", "0.6265873", "0.625182", "0.6227805", "0.6213026", "0.6190236", "0.6186102", "0.61665684", "0.61655754", "0.6157591...
0.6022994
31
Complete a forward pass for one input sample through the perceptron.
def Yorg(EcVT, f9cr, XcU5): OB2k = YDYE(Sv4c(XcU5, EcVT)) print('\tI/P:', EcVT, ' O/P:', f9cr, ' W:', XcU5, ' W_Sum:', round(Sv4c(XcU5, EcVT), 3)) if OB2k != f9cr: for r845 in range(len(XcU5)): XcU5[r845] = vvCV(XcU5[r845], OB2k, f9cr, EcVT[r845]) return XcU5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, g4y1):\n if lARV.train_flag:\n rHGW = tF9S.Binomial(probs=YKHO.p)\n YKHO.data = rHGW.sample(g4y1.size())\n return g4y1 * YKHO.data * (1.0 / YKHO.p)\n return g4y1", "def H4ov(ppBc, XcU5, qtWj=3):\n for Kt_s in range(qtWj):\n print('\\nEpoch:', Kt_s + 1)\n ...
[ "0.66141886", "0.64519197", "0.63713896", "0.6370811", "0.63531744", "0.6311084", "0.63019276", "0.6288141", "0.62637824", "0.62491006", "0.6244735", "0.6241942", "0.62399524", "0.62244314", "0.6223819", "0.61948806", "0.6189457", "0.61839896", "0.61742866", "0.61642253", "0....
0.0
-1
This form allows for a staff user to create a new post. It does not publish the post, but it redirects to a page where the post can be reviewed and published.
def BdN0(QePW): L03z = L39s(QePW.POST or None) if QePW.method == 'POST': if L03z.is_valid(): KAOR = L03z.save(commit=False) KAOR.user = QePW.user KAOR.save() return Yd7Q(gxEw('posts:toggle_publish', args=(KAOR.id,))) QpfX = {'form': L03z} return _1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6():\n L03z = H6V6.PostForm()\n if L03z.validate_on_submit():\n FYrf.Post.create(title=L03z.title.data, date=L03z.date.data, time_spent=L03z.time_spent.data, details=L03z.details.data, remember=L03z.remember.data)\n return vKnz(nKyW('index'))\n return TvZl('new.html', form=L03z)", "...
[ "0.79286516", "0.7790115", "0.7599431", "0.7587134", "0.7394764", "0.738566", "0.73643744", "0.7342422", "0.7233937", "0.7230526", "0.72145677", "0.7199045", "0.71644497", "0.71152514", "0.7108066", "0.7101365", "0.7094009", "0.7087318", "0.7075863", "0.7038664", "0.70323056"...
0.7743201
2
Gets altitudes for each point in the dataset.
def okLf(LTIa): zrPp = oyIN.zeros((len(LTIa),), dtype='float64') for YRbF, AU8u in PRqg(enumerate(LTIa), desc='GETTING ALTITUDE'): XP5J = PvyL(AU8u[0], AU8u[1]) zrPp[YRbF] = Zc6P.NM_COTA.iloc[oyIN.argmin([XP5J.distance(Zc6P.geometry.iloc[r845]) for r845 in range(Zc6P.shape[0])])] return zrPp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhfU(YKHO, Zc6P):\n if Zc6P.unit == P6bq.km:\n if 150 <= Zc6P.value < 500:\n RpNh = YKHO._altitude_profile(500)\n else:\n RpNh = YKHO._altitude_profile(Zc6P.value)\n return [XVAW[int(Zc6P.value)] for XVAW in RpNh]", "def n_Ej(YKHO) -> int:\n return YKHO._point.alt...
[ "0.63002145", "0.6118353", "0.6036766", "0.59432745", "0.5901361", "0.5760974", "0.5740872", "0.5735877", "0.5718014", "0.5718014", "0.5513645", "0.54787827", "0.5413163", "0.5357624", "0.5353968", "0.5290058", "0.52800673", "0.52408457", "0.5229023", "0.521252", "0.52060795"...
0.74086666
0
Returns the corrected geopandas df for ruido.
def NxDN(): STpq = quUU.read_file('./ZPAE/ZPAE/TODAS_ZPAE_ETRS89.shp') twTb = Tdq0(STpq, 'zpae', ruido=True) twTb['zpae']['ruido'] = STpq.ZonaSupera return rLdf.DataFrame(twTb['zpae'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SI5L(jQ3Z):\n jQ3Z['geometry'] = [PvyL(M_DK) for M_DK in zip(jQ3Z.latitude, jQ3Z.longitude)]\n ucxv = {'init': 'epsg:4326'}\n jQ3Z = quUU.GeoDataFrame(jQ3Z, crs=ucxv, geometry=jQ3Z['geometry'])\n return jQ3Z", "def xws5() -> SsVK.GeoDataFrame:\n K_Ex: SsVK.GeoDataFrame = SsVK.read_file(Y7rv / ...
[ "0.6548063", "0.6490673", "0.63116944", "0.60756516", "0.5959022", "0.59559715", "0.59439325", "0.5891471", "0.58897126", "0.5877445", "0.5872587", "0.57912934", "0.57821393", "0.5766436", "0.57658875", "0.5742322", "0.5710453", "0.5685683", "0.5681982", "0.5672761", "0.56706...
0.5889741
8
Creates a df with the subdictionary of that variable (name).
def dKGY(QhXx): qC6E = [] zU3o = [] for G1Hx, Ty9i in twTb[QhXx]['contador'].items(): qC6E.append(G1Hx) zU3o.append(Ty9i) return rLdf.DataFrame({'CODIGO_POSTAL': qC6E, f'contadores_{QhXx}': zU3o})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fIqG(nPrm: dict) -> rLdf.DataFrame:\n jQ3Z = rLdf.DataFrame(nPrm)\n jQ3Z.index.name = 'coin_name'\n return jQ3Z", "def zaB4(YKHO, mWFP):\n wEf2 = YKHO.get(mWFP)\n if isinstance(wEf2, dict):\n jQ3Z = CwDs.DataFrame(wEf2)\n return jQ3Z", "def xpSY(p6jh, mWFP=None, d6pt=None) -> r...
[ "0.669707", "0.65590453", "0.6476345", "0.6387227", "0.62743527", "0.6246774", "0.60631156", "0.6041356", "0.5965891", "0.5887306", "0.58411694", "0.581768", "0.58128387", "0.5803478", "0.5788514", "0.57829964", "0.5765014", "0.57620895", "0.5761268", "0.57274526", "0.5718506...
0.60856134
6
Constructor for the GridPerslayWeight class.
def FIMM(YKHO, Cs6h, TvU0, **B2fa): super().__init__(dynamic=True, **B2fa) YKHO.grid = ZylS.Variable(initial_value=Cs6h, trainable=True) YKHO.grid_bnds = TvU0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, upAO: float=1.0):\n super().__init__()\n YKHO.weight = upAO", "def FIMM(YKHO, _mSQ):\n YKHO._weights = _mSQ", "def FIMM(YKHO, Cwt5=80, UqYS=13, KMvS=3, uAHT=3, qHOC=10):\n YKHO.alpha = Cwt5\n YKHO.beta = UqYS\n YKHO.gamma = KMvS\n YKHO.spatial_ker_weight = uAHT\n YKHO.bil...
[ "0.7288295", "0.70269555", "0.67524683", "0.6720217", "0.6693398", "0.6499695", "0.6480581", "0.64385366", "0.64092577", "0.63991016", "0.6376484", "0.63614315", "0.63444906", "0.63351786", "0.6313429", "0.6297171", "0.62740016", "0.6259921", "0.6207", "0.61881584", "0.616264...
0.0
-1
Constructor for the GridPerslayWeight class.
def FIMM(YKHO, nEj5, **B2fa): super().__init__(dynamic=True, **B2fa) YKHO.W = ZylS.Variable(initial_value=nEj5, trainable=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, upAO: float=1.0):\n super().__init__()\n YKHO.weight = upAO", "def FIMM(YKHO, _mSQ):\n YKHO._weights = _mSQ", "def FIMM(YKHO, Cwt5=80, UqYS=13, KMvS=3, uAHT=3, qHOC=10):\n YKHO.alpha = Cwt5\n YKHO.beta = UqYS\n YKHO.gamma = KMvS\n YKHO.spatial_ker_weight = uAHT\n YKHO.bil...
[ "0.7288295", "0.70269555", "0.67524683", "0.6720217", "0.6693398", "0.6499695", "0.6480581", "0.64385366", "0.64092577", "0.63991016", "0.6376484", "0.63614315", "0.63444906", "0.63351786", "0.6313429", "0.6297171", "0.62740016", "0.6259921", "0.6207", "0.61881584", "0.616264...
0.0
-1
Provide helpful representation when printed.
def wHJl(YKHO): return f'<User user_id={YKHO.user_id} email={YKHO.email}>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)", "def atpV(YKHO):\n return YKHO.des", "def atpV(YKHO):\n return YKHO.des", "def zAg0(YKHO):\n return YKHO.printable()", "def T37n(YKHO):\n GGQD = 'Qubit ID: ' + str(YKHO.qubit_id) + ' '\n GGQD = GGQD + 'Outcome: ' + str(YKHO.outco...
[ "0.7529561", "0.7511525", "0.7511525", "0.74975544", "0.7394847", "0.72965956", "0.7293301", "0.7226869", "0.7225389", "0.7205555", "0.71771973", "0.71743053", "0.7146052", "0.7134735", "0.71325094", "0.71289283", "0.7126178", "0.71148866", "0.7109676", "0.7082562", "0.707800...
0.0
-1
Predict user's rating of a movie.
def z0tD(YKHO, LHvA): zKeK = NCls.aliased(t0o2) Tr70 = NCls.aliased(t0o2) xDcj = NCls.session.query(t0o2.user_id, t0o2.score, zKeK.score, Tr70.score).join(zKeK, zKeK.movie_id == t0o2.movie_id).join(Tr70, t0o2.user_id == Tr70.user_id).filter(zKeK.user_id == YKHO.user_id).filter(Tr70.movie_id == LHvA.movie_id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pnwY(YKHO, CBIr, LHvA, k7Eg, jnR1, mLW6):\n YEmv = mLW6[CBIr]\n M6pt, UUZ1 = (0.0, 0.0)\n for sg14, AAbN in k7Eg:\n if LHvA in jnR1[AAbN]:\n M6pt += sg14 * (jnR1[AAbN][LHvA] - mLW6[AAbN])\n UUZ1 += sg14\n YEmv += M6pt / UUZ1\n return YEmv", "def DFCi(YKHO, dWdB):\n...
[ "0.78892064", "0.7792879", "0.74371594", "0.7412951", "0.7374177", "0.7269824", "0.7124", "0.6878768", "0.68674034", "0.684111", "0.68178344", "0.68040067", "0.67578256", "0.6705585", "0.6636941", "0.6573993", "0.6565604", "0.65183765", "0.64657164", "0.6458849", "0.6446155",...
0.74766874
2
Provide helpful representation when printed.
def wHJl(YKHO): return f'<Movie movie_id={YKHO.movie_id} title={YKHO.title}>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)", "def atpV(YKHO):\n return YKHO.des", "def atpV(YKHO):\n return YKHO.des", "def zAg0(YKHO):\n return YKHO.printable()", "def T37n(YKHO):\n GGQD = 'Qubit ID: ' + str(YKHO.qubit_id) + ' '\n GGQD = GGQD + 'Outcome: ' + str(YKHO.outco...
[ "0.7529561", "0.7511525", "0.7511525", "0.74975544", "0.7394847", "0.72965956", "0.7293301", "0.7226869", "0.7225389", "0.7205555", "0.71771973", "0.71743053", "0.7146052", "0.7134735", "0.71325094", "0.71289283", "0.7126178", "0.71148866", "0.7109676", "0.7082562", "0.707800...
0.0
-1
Provide helpful representation when printed.
def wHJl(YKHO): return f'<Rating rating_id={YKHO.rating_id} \n movie_id={YKHO.movie_id} \n user_id={YKHO.user_id} \n score={YKHO.score}>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)", "def atpV(YKHO):\n return YKHO.des", "def atpV(YKHO):\n return YKHO.des", "def zAg0(YKHO):\n return YKHO.printable()", "def T37n(YKHO):\n GGQD = 'Qubit ID: ' + str(YKHO.qubit_id) + ' '\n GGQD = GGQD + 'Outcome: ' + str(YKHO.outco...
[ "0.7529561", "0.7511525", "0.7511525", "0.74975544", "0.7394847", "0.72965956", "0.7293301", "0.7226869", "0.7225389", "0.7205555", "0.71771973", "0.71743053", "0.7146052", "0.7134735", "0.71325094", "0.71289283", "0.7126178", "0.71148866", "0.7109676", "0.7082562", "0.707800...
0.0
-1
Returns the PE header TimeDateStamp timestamp as a datetime
def xyTN(Ux0P): pmON = Ojua(Ux0P) Wmjn = H3Ml.PE(pmON) return qcWV.fromtimestamp(Wmjn.FILE_HEADER.TimeDateStamp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3oo(YKHO):\n return cExx(YKHO.unpack_qword(4))", "def kMp9(YKHO):\n return YKHO.pair.data['timestamp']", "def ItX3(YKHO):\n XP5J = YKHO._get_sub_text('timestamp')\n if not XP5J:\n return None\n else:\n return TOuC.datetime(XP5J)", "def E3oo(YKHO):\n if YKHO.has_timestamp(...
[ "0.6832173", "0.67735803", "0.67274374", "0.6611854", "0.6602513", "0.65818363", "0.65330577", "0.6511616", "0.64462173", "0.6416544", "0.6368149", "0.63491523", "0.6342346", "0.63253987", "0.63169414", "0.62999403", "0.629035", "0.62888193", "0.6261896", "0.61841553", "0.618...
0.6180562
26
Takes the conditions in tuple format and converts it to a proper SQL WHERE clause
def pjDG(iPqd: List[Tuple[Any, RelationalOperator, Any]]) -> str: xXGv = [] for Ilxn in iPqd: AAHb, koMu, BWXx = Ilxn if koMu == z7ka.Between and len(BWXx) != 2: raise ValueError('Between relational operator requires the value parameter to be a list of length 2') if koMu != z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lqT4(**VUsd):\n woks = []\n NArs = []\n DumB = VUsd.items()\n DumB = sorted(DumB, key=lambda WKvO: WKvO[0])\n for H5ew, wEf2 in DumB:\n if AVNT(wEf2):\n woks.append(H5ew + ' IN (%s)' % ', '.join('?' * len(wEf2)))\n for WKvO in wEf2:\n NArs.append(WKvO)...
[ "0.75511324", "0.751034", "0.7240489", "0.72299075", "0.719078", "0.7017938", "0.6985508", "0.6978745", "0.6949176", "0.67960805", "0.6721013", "0.66881025", "0.66401166", "0.6640089", "0.6536709", "0.6489517", "0.64729446", "0.64506096", "0.64329875", "0.64316744", "0.639672...
0.81629884
0
Tests if customer credit is updated properly
def mJkA(YKHO): m5mT() W95g(**sLQ1) lFWR(sLQ1['customer_id'], 5000.0) xDcj = xp_p.get(xp_p.customer_id == sLQ1['customer_id']) YKHO.assertEqual(5000.0, xDcj.customer_limit) with YKHO.assertRaises(ValueError): lFWR('456879', 5000.0) with YKHO.assertRaises(TypeError): lFWR(sLQ1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T5EC(YKHO):\n OMLj()\n W95g(*YKHO.test_customer)\n lFWR(1, 500000.0)\n YKHO.assertEqual(500000.0, xp_p.get_by_id(1).credit_limit)", "def mJkA(U0HL):\n for m3Nh in U0HL:\n b60H.add_customer(m3Nh[0], m3Nh[1], m3Nh[2], m3Nh[3], m3Nh[4], m3Nh[5], m3Nh[6], m3Nh[7])\n b60H.update_customer_...
[ "0.8305819", "0.80290574", "0.75516087", "0.7267804", "0.7253308", "0.7070037", "0.69136304", "0.6900081", "0.68455887", "0.6795171", "0.6761935", "0.67578834", "0.6740684", "0.6669304", "0.66241044", "0.65113044", "0.65072", "0.6483263", "0.6420876", "0.642009", "0.63513494"...
0.79188365
2
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = DDLl.sum(DDLl.round(DDLl.clip(Y8eF * aMgO, 0, 1))) z5jX = DDLl.sum(DDLl.round(DDLl.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + DDLl.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.7605524", "0.74488467", "0.7404089", "0.7280915", "0.72097343", "0.7165874", "0.7157609", "0.7145226", "0.7145226", "0.7145226", "0.7145226", "0.7145226", "0.7145226", "0.71317255", "0.71007556", "0.70970625", "0.70970625", "0.70970625", "0.70970625", "0.70970625", "0.7097...
0.7064473
35
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = DDLl.sum(DDLl.round(DDLl.clip(Y8eF * aMgO, 0, 1))) ftZB = DDLl.sum(DDLl.round(DDLl.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + DDLl.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.7490099", "0.7288635", "0.7159222", "0.71532124", "0.7065768", "0.69861007", "0.6965821", "0.695451", "0.6912438", "0.68347067", "0.6817215", "0.68093604", "0.6804893", "0.6804893", "0.6804893", "0.6804893", "0.6804893", "0.6804893", "0.6785599", "0.6757522", "0.6757522", ...
0.666084
50
resize image into (target_width,target_height) target_width/target_height = ow/oh raise ValueError, if target_height<=0 or target_width<=0
def aNy9(VXjJ, wsRA=None, zvOU=None, NKcE=hnIv.BICUBIC): if zvOU > 0 and wsRA: raise ValueError(f'Expected target_width>0 and target_height>0, but got target_width={wsRA}, target_height={zvOU}') xvJ_, QYSp = VXjJ.size if wsRA is not None and zvOU is None: zvOU = int(wsRA * QYSp) / xvJ_ e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dXdG(zXzj, hAXo, wsRA, zvOU):\n if zXzj == wsRA and hAXo == zvOU:\n return 1.0\n Vuak = zXzj / hAXo\n RnJR = wsRA / zvOU\n if RnJR < Vuak:\n NXpY = wsRA / zXzj\n else:\n NXpY = zvOU / hAXo\n return NXpY", "def oi4u(ziCA, Yr3N, kpNk, DWPn):\n YduS = float(ziCA) / Yr3N...
[ "0.69097227", "0.6889423", "0.68845344", "0.68554175", "0.65885615", "0.6567776", "0.656434", "0.65358025", "0.65114975", "0.6474362", "0.6377472", "0.6357848", "0.6300716", "0.6294298", "0.62883276", "0.6286805", "0.62836665", "0.62668663", "0.62576365", "0.6256997", "0.6242...
0.7334319
0
A collection of methods for retrieving or updating data about organizations in the Code42 environment.
def CAeL(YKHO): return YKHO._sdk_dependencies.org_client
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mUrV(YKHO):\n return YKHO.get('{}/orgs'.format(gsRm.A1.value))", "def mUrV(YKHO):\n YKHO.elements('organizations')", "def mUrV(YKHO):\n return mUrV.Organizations(YKHO)", "def GoVm(YKHO):\n pass", "def GCTr(YKHO):\n pass", "def rdhS(YKHO):\n pass", "async def get_organizations(QePW...
[ "0.7770788", "0.7441841", "0.71230346", "0.70017755", "0.69816107", "0.6894589", "0.6852633", "0.68488604", "0.6838045", "0.67236596", "0.66748446", "0.66748446", "0.66183585", "0.65913135", "0.6523041", "0.65115166", "0.6468701", "0.64438", "0.6426665", "0.64244294", "0.6384...
0.5501677
81
The 'run' part of the course_id.
def dZ4Q(YKHO): return YKHO.course_key.run
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ByBU(YKHO) -> str:\n return YKHO._step_execution_context.run_id", "def P0ak(YKHO):\n return YKHO.runid", "def ByBU() -> int:\n return Zze5.config['flows']['glass']['run_id']", "def ByBU(YKHO):\n if YKHO._run_id is not None:\n return YKHO._run_id\n iXC1 = wKU_.active_run()\n if iX...
[ "0.69273543", "0.6729144", "0.6449546", "0.63787335", "0.6318323", "0.6145828", "0.61315894", "0.6059584", "0.6059379", "0.5939561", "0.59369683", "0.5874441", "0.58349293", "0.58319956", "0.5768009", "0.5733007", "0.5631648", "0.5627364", "0.5596727", "0.55490065", "0.554147...
0.80205244
0
Accessor for a setting specific to the current course.
def DB7O(YKHO, YqMg): return gCuF.data['courses'][YKHO.course_id][YqMg]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o59G(YKHO, id):\n return KNMi.getSetting(id)", "def YqMg(_DBc):\n return getattr(gCuF, _DBc)", "def U5a0(YKHO, leAC, YqMg):\n return YKHO.parser.get(leAC, YqMg)", "def o59G(YKHO, YqMg):\n return YKHO.do_rpc('get_setting', key=H5ew)", "def o59G(YKHO, Ghho, YqMg):\n Ghho = YKHO.get_setting...
[ "0.65132785", "0.636397", "0.6298962", "0.6220281", "0.61941284", "0.60064334", "0.5998761", "0.59896207", "0.59571224", "0.5849541", "0.58394676", "0.5810019", "0.580563", "0.5740989", "0.5691655", "0.566663", "0.56624395", "0.5644879", "0.5626616", "0.5624554", "0.5621901",...
0.8053865
0
Assert that resolution is calculated correctly when using the xarray rasterio backend.
def sSsk(): with zuVY.open_rasterio(D8Qu) as zZcM: hE0z = oxOY.utils.calc_res(zZcM) with B9Vf.open(D8Qu) as zZcM: _B9g = zZcM.res assert oyIN.allclose(hE0z, _B9g)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aeCN(YKHO, WKvO, LVAh):\n assert WKvO <= 10 ** 3, 'Width larger than 1000'\n assert LVAh <= 10 ** 3, 'Height larger than 1000'\n assert WKvO * LVAh <= 3 * 10 ** 5, 'Resolution larger than 300000'", "def oqfO(YKHO):\n\n def QOe9(Cs6h, *m61e):\n assert (Cs6h.L, Cs6h.M, Cs6h.N, Cs6h.NFP) == m...
[ "0.6372065", "0.6015322", "0.59938735", "0.59033257", "0.5852334", "0.58278245", "0.57994336", "0.5751685", "0.57348406", "0.5724172", "0.5697906", "0.56943977", "0.56537974", "0.5647166", "0.5645956", "0.56367785", "0.5599529", "0.55876565", "0.5581748", "0.5569151", "0.5512...
0.67046434
0
Assert that bounding boxes are calculated correctly when using the xarray rasterio backend.
def pftD(): with zuVY.open_rasterio(D8Qu) as zZcM: hE0z = oxOY.utils.calc_res(zZcM) sJjf = oxOY.utils.calc_bbox(zZcM.x.values, zZcM.y.values, hE0z) with B9Vf.open(D8Qu) as zZcM: pbor = zZcM.bounds assert oyIN.allclose(sJjf, pbor, atol=1.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjG1(YKHO):\n WKvO = MDcw.VersionInfo('').replace('dev', '').split()\n LVAh = WKvO[1].split('.')[:2]\n epBp = ''.join(LVAh)\n if epBp.endswith(','):\n epBp = epBp[:-1]\n OCDH = {'tsunami_building_exposure.shp': [150.15238387897742, -35.71084183517241, 150.18779267086208, -35.7013176815517...
[ "0.69227684", "0.6805225", "0.6798895", "0.6790871", "0.6737685", "0.6674402", "0.66645247", "0.65982324", "0.6555925", "0.6520993", "0.6493282", "0.6447653", "0.6408337", "0.6389575", "0.6373378", "0.636101", "0.6274943", "0.6265265", "0.6229025", "0.62180036", "0.6209007", ...
0.7428076
0
Ensure that the padding values respect the supplied nan_value.
def cvSI(): XQzp = oxOY.Canvas(plot_height=3, plot_width=3, x_range=(0, 2), y_range=(0, 2)) qw7D = oyIN.array([[9999, 1, 2, 3], [4, 9999, 6, 7], [8, 9, 9999, 11]]) L1dC = zuVY.DataArray(qw7D, coords={'x': oyIN.linspace(0, 1, 4), 'y': oyIN.linspace(0, 1, 3)}, dims=['y', 'x']) waEm = XQzp.raster(L1dC, dow...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(WbAn):\n nPrm = WbAn.copy()\n P7a9 = oyIN.isnan(nPrm)\n m3tl = oyIN.logical_not(P7a9)\n osoZ = nPrm[m3tl]\n jCt1 = oyIN.interp(P7a9.nonzero()[0], m3tl.nonzero()[0], osoZ)\n nPrm[P7a9] = jCt1\n return nPrm", "def zJ0G(jzdc, BWXx):\n return peS3(jzdc, oyIN.isnan(jzdc), BWXx)", "d...
[ "0.6362923", "0.6118399", "0.6104213", "0.60608983", "0.5984181", "0.5929942", "0.58872026", "0.5882277", "0.5866498", "0.5788626", "0.5778013", "0.57249594", "0.56639737", "0.5657834", "0.5648293", "0.5603864", "0.5603864", "0.5585006", "0.5581461", "0.5573491", "0.5542404",...
0.5690284
12
Ensure that the padding values respect the supplied nan_value.
def TGXF(): XQzp = oxOY.Canvas(plot_height=3, plot_width=3, x_range=(0, 2), y_range=(0, 2)) qw7D = oyIN.array([[oyIN.nan, 1.0, 2.0, 3.0], [4.0, oyIN.nan, 6.0, 7.0], [8.0, 9.0, oyIN.nan, 11.0]]) L1dC = zuVY.DataArray(qw7D, coords={'x': oyIN.linspace(0, 1, 4), 'y': oyIN.linspace(0, 1, 3)}, dims=['y', 'x']) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(WbAn):\n nPrm = WbAn.copy()\n P7a9 = oyIN.isnan(nPrm)\n m3tl = oyIN.logical_not(P7a9)\n osoZ = nPrm[m3tl]\n jCt1 = oyIN.interp(P7a9.nonzero()[0], m3tl.nonzero()[0], osoZ)\n nPrm[P7a9] = jCt1\n return nPrm", "def zJ0G(jzdc, BWXx):\n return peS3(jzdc, oyIN.isnan(jzdc), BWXx)", "d...
[ "0.6362923", "0.6118399", "0.6104213", "0.5984181", "0.5929942", "0.58872026", "0.5882277", "0.5866498", "0.5788626", "0.5778013", "0.57249594", "0.5690284", "0.56639737", "0.5657834", "0.5648293", "0.5603864", "0.5603864", "0.5585006", "0.5581461", "0.5573491", "0.5542404", ...
0.60608983
3
Center a Tkinter window
def hgjH(KnxT): KnxT.update_idletasks() k_Ti = KnxT.winfo_screenwidth() fsQy = KnxT.winfo_screenheight() zNig = tuple((int(bGrB) for bGrB in KnxT.geometry().split('+')[0].split('x'))) WKvO = k_Ti / 2 - 7 * zNig[0] / 13 LVAh = fsQy / 2 - 6 * zNig[1] / 11 KnxT.geometry('+%d+%d' % (WKvO, LVAh))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgjH(ufJO):\n ufJO.update_idletasks()\n TVTK = 1120\n OqEn = ufJO.winfo_rootx() - ufJO.winfo_x()\n hkd_ = TVTK + 2 * OqEn\n H2v2 = 630\n p9IH = ufJO.winfo_rooty() - ufJO.winfo_y()\n gydM = H2v2 + p9IH + OqEn\n WKvO = ufJO.winfo_screenwidth() // 2 - hkd_ // 2\n LVAh = ufJO.winfo_scree...
[ "0.8368151", "0.82453644", "0.80583024", "0.7998017", "0.79803646", "0.77359706", "0.7735821", "0.76757854", "0.7672477", "0.76220495", "0.75433594", "0.75433594", "0.7457788", "0.7398319", "0.73812884", "0.7374819", "0.7374819", "0.7361669", "0.73200536", "0.73154825", "0.73...
0.8301223
1
Reset the main window back to its normal form
def SiRx(): for f4IJ in BenW: f4IJ.destroy() rBJv.clear() PDLd.clear() N8XO.delete(0, FRMp) N8XO.insert(0, '1') __Qh.delete(0, FRMp) __Qh.insert(0, '1') kKNn.delete(0, FRMp) kKNn.insert(0, '0') TRws.delete(0, FRMp) TRws.insert(0, '0') LaZw.set('') jDK8.delete(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AnTw(YKHO):\n YKHO.controller.set_new_model_running(False)\n YKHO.controller.show_frame('MainWindow')", "def SiRx(YKHO, KnxT, QpfX):\n pass", "def SiRx(YKHO, KnxT):\n YKHO.__close_preview(KnxT)\n YKHO.__clear_context()", "def Y6_N(YKHO):\n YKHO.removeFrame(YKHO.frame1)\n YKHO.removeF...
[ "0.7170496", "0.71491414", "0.71396357", "0.7086003", "0.70491433", "0.7047483", "0.69494206", "0.68865824", "0.6855393", "0.66847247", "0.6682493", "0.66793257", "0.65595937", "0.6546918", "0.65085506", "0.64938176", "0.6483989", "0.64576966", "0.64576966", "0.64576966", "0....
0.6070226
56
Returns the xst output directory location
def j4U7(GPtr, BWoA=False): SfyY = BfDw.get_build_directory(GPtr, BWoA) BO3w = Hy7s.path.join(SfyY, XwBT) return BO3w
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kmfe(YKHO):\n return Hy7s.path.join(YKHO._sandbox, 'output' + Hy7s.path.sep)", "def _8MX():\n return V2eH", "def fwu5():\n return Hy7s.getcwd() + '/output/'", "def VMpO(GPtr):\n SfyY = BfDw.create_build_directory(GPtr)\n BO3w = Hy7s.path.join(SfyY, XwBT)\n if not Hy7s.path.exists(BO3w):...
[ "0.77528447", "0.75811684", "0.72909534", "0.7255375", "0.7193283", "0.71428543", "0.7055263", "0.70138097", "0.6954999", "0.6911982", "0.68772864", "0.6844121", "0.6839963", "0.68019074", "0.6775591", "0.675935", "0.6717077", "0.6663757", "0.66097856", "0.65427166", "0.65425...
0.7388661
2
A missing email display an appropriate message.
def ZGiz(YKHO): CBIr = YKHO.make_user() nPrm: dict = {} with YKHO.login(CBIr): geh0 = YKHO.post('referrals:create', data=nPrm) Ol8d = list(LnrL(geh0.wsgi_request))[0] assert str(Ol8d) == "'missing email' is an invalid email address."
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVBn(YKHO):\n rRzo = JvNO(YKHO.org_name, YKHO.user_id)\n fRTZ = 'missing@' + YKHO.email_dom\n Aofo = rRzo.get(fRTZ)['data']\n Ggta = []\n YKHO.assertEqual(Aofo, Ggta)", "def Px_p(YKHO):\n YAq3 = TVpy(YKHO.org_name, YKHO.user_id)\n fRTZ = 'missing@' + YKHO.email_dom\n Aofo = YAq3.get(f...
[ "0.6928912", "0.6731997", "0.6649233", "0.64417475", "0.6429581", "0.62306696", "0.62065804", "0.61677516", "0.61022824", "0.60859764", "0.60510504", "0.6042622", "0.60390025", "0.6019587", "0.60085803", "0.60079044", "0.5975839", "0.5964878", "0.59508574", "0.59180194", "0.5...
0.6705873
2
Generates a new access key on behalf of the user and stores the new access key in secrets manager. Then, send a notification email to users to notify them to rotate the key for their applications. It returns a JSON with status 200 if successful and 500 if error occurs.
def vdJ4(GFl7): try: geh0 = ENHu.create_access_key(UserName=GFl7) MYjm = geh0['AccessKey']['AccessKeyId'] QDug = geh0['AccessKey']['SecretAccessKey'] zgjV = qQXR.dumps({'AccessKey': MYjm, 'SecretKey': QDug}) GeiM.put_secret_value(SecretId=GFl7, SecretString=zgjV) p4Da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def generate_new_refesh_key(pB3N: dict=JHvC(Zu9X)):\n if pB3N['type'] != 'refresh':\n raise pgG1(status_code=jGRS.HTTP_401_UNAUTHORIZED, detail='You gave the access key, but we need the refresh key', headers={'WWW-Authenticate': 'Bearer'})\n kgBw = zJTZ.copy()\n kgBw['sub'] = pB3N['sub']\n ...
[ "0.67813015", "0.6723537", "0.63754004", "0.62938106", "0.62400305", "0.6215626", "0.61407065", "0.60760754", "0.59956634", "0.5931377", "0.5928745", "0.58910877", "0.58691543", "0.58685136", "0.5854402", "0.5829179", "0.58209795", "0.58133996", "0.5811484", "0.5800694", "0.5...
0.72491354
0
Applies Link notes in the given DataFrame, adding the value of each linked transaction onto the one it targets The DataFrame needs to include both the original transactions and the ones linked to them. The values of the linked transactions will be set to 0 as they are added onto the target transaction
def jsSf(YKHO, jQ3Z: pd.DataFrame) -> rLdf.DataFrame: GVCU = YKHO.get_notes_by_type(fytP.Link) gup9 = GVCU.apply(lambda exwG: exwG.id in jQ3Z['id'].values) T_Xb = GVCU.apply(lambda exwG: exwG.target in jQ3Z['id'].values) jQ3Z = jQ3Z.reset_index().set_index('id') try: for exwG in GVCU[gup9 & ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iOR0(YKHO):\n jQ3Z = YKHO.get_all_data()\n fwXD = YKHO.get_target_df().copy(deep=True)\n fwXD['ft_data_dt'] = fwXD['ft_data_dt'].astype('datetime64[M]') - rLdf.DateOffset(months=2) + x8oc(1)\n jQ3Z = jQ3Z.merge(fwXD, on=['idd', 'ft_data_dt'], how='left')\n hkxX = {'target': 0}\n jQ3Z['target'...
[ "0.57571226", "0.56453544", "0.55956817", "0.52005714", "0.5119747", "0.50915694", "0.5087886", "0.5079737", "0.50389576", "0.50111914", "0.49917713", "0.49096105", "0.48220557", "0.48141253", "0.47970462", "0.47765523", "0.4753686", "0.47471696", "0.47465235", "0.47281483", ...
0.83887
0
splits array into subarrays of manageable size
def Q6HL(A3Vt, Nq1b, E0wO=36): def zNig(si3g, o4D3, skBL, ajwV): return (skBL - si3g + 1) * (ajwV - o4D3 + 1) def B0gN(si3g, o4D3, skBL, ajwV): nonlocal max_size if zNig(si3g, o4D3, skBL, ajwV) <= E0wO: return [(si3g, o4D3, skBL, ajwV)] if skBL - si3g > ajwV - o4D3:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wMk8(qw7D, zNig):\n Sk_F = []\n while len(qw7D) > zNig:\n HK5E = qw7D[:zNig]\n Sk_F.append(HK5E)\n qw7D = qw7D[zNig:]\n Sk_F.append(qw7D)\n return Sk_F", "def wMk8(ezWE, yhdM):\n zNig = ezWE.shape[0]\n if zNig < yhdM:\n return [ezWE[YRbF:YRbF + 1] for YRbF in ran...
[ "0.8016469", "0.79614633", "0.79138887", "0.7440732", "0.73997337", "0.7187824", "0.7152501", "0.714002", "0.713293", "0.7023754", "0.7019663", "0.6934593", "0.68764275", "0.6829127", "0.6773426", "0.674591", "0.6696536", "0.66604143", "0.66232187", "0.6603562", "0.65704185",...
0.0
-1
Get API_KEY that is set environment variant
def tBlX(Emd4) -> str: Sbmk = GkAb(xAKo).absolute().parents[2] / '.env' if Sbmk.exists(): ikv7(Sbmk) try: rSTc: str = Hy7s.environ['API_KEY'] except KeyError: print("API_KEY doesn't exist") raise KeyError return rSTc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p7gc():\n if not Hy7s.getenv('SPOON_API_KEY'):\n raise RuntimeError('SPOON_API_KEY is not set')\n return Hy7s.getenv('SPOON_API_KEY')", "def rLF4():\n try:\n return Hy7s.environ['GOOGLE_APPLICATION_CREDENTIALS']\n except Exception:\n raise ryun()", "def rJDA():\n YK1n = ...
[ "0.8036626", "0.801071", "0.79444003", "0.7788649", "0.7664907", "0.7644209", "0.7598372", "0.7510571", "0.73695594", "0.7326174", "0.7326174", "0.73016196", "0.72453666", "0.7241101", "0.7237927", "0.7237927", "0.7237927", "0.7237927", "0.72267175", "0.71169055", "0.71147156...
0.8249006
0
Get your current location (from communication information, not GPS) Retrun
def zRTr(YKHO) -> dict: bNKr: dict = YKHO.gmaps.geolocate() return bNKr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXqx(YKHO):\n kveW = 'https://ipinfo.io'\n Mkmy = G4JS.get(kveW)\n _hkX = qQXR.loads(Mkmy.text)\n G9jH.info('GeoLoc: {}'.format(_hkX))\n return _hkX", "def hbd3(YKHO):\n MKlR = YKHO.acquire_response(b'AT-MSGEO')\n if isinstance(MKlR, bytes):\n MKlR = MKlR.decode('utf-8')\n ...
[ "0.7818189", "0.7763614", "0.7342305", "0.7308877", "0.72012997", "0.7174754", "0.7170001", "0.7141341", "0.7062528", "0.7005175", "0.6923108", "0.69004935", "0.6854951", "0.6824511", "0.6766033", "0.67655355", "0.6760595", "0.67200446", "0.6687575", "0.6671531", "0.66587687"...
0.7245154
4
Returns the distances between all ndimensional vectors in X and ndimensional vector y.
def Dm2A(EcVT, LVAh): return oyIN.sqrt(oyIN.sum((EcVT - LVAh) ** 2, 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AifU(EcVT, fuBA):\n lWPh = oyIN.zeros((EcVT.shape[0], fuBA.shape[0]))\n for fRmk in range(EcVT.shape[0]):\n for Dlv2 in range(fuBA.shape[0]):\n lWPh[fRmk, Dlv2] = oyIN.sqrt(oyIN.sum((EcVT[fRmk, :] - fuBA[Dlv2, :]) ** 2))\n return lWPh", "def yuq1(YKHO, EcVT):\n TaUL = oyIN.zeros...
[ "0.74059653", "0.6929111", "0.6926564", "0.6815422", "0.68040687", "0.6800284", "0.67897314", "0.6781078", "0.67199755", "0.67070866", "0.67065346", "0.65892094", "0.65764457", "0.6501597", "0.64582014", "0.64434946", "0.64303213", "0.6429057", "0.63746005", "0.63658524", "0....
0.68727297
3
Test that viewlist does not show when not signed in
def Ci56(YKHO): im04 = YKHO.app.get('/viewcategory') YKHO.assertEqual(im04.status_code, 302, 'viewlist page should not load unless signed in')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yj8w(YKHO):\n with YKHO.client as Z9rn:\n Ylbp = Z9rn.get('/lists/111111')\n _R2e = Ylbp.get_data(as_text=True)\n YKHO.assertEqual(Ylbp.status_code, 200)\n YKHO.assertIn('title1', _R2e)\n YKHO.assertIn('tester1', _R2e)\n YKHO.assertNotIn('<nav class=\"navbar navbar-...
[ "0.74585307", "0.7115753", "0.67430013", "0.6679924", "0.6672844", "0.66420466", "0.659895", "0.6596849", "0.65905243", "0.65247446", "0.6443451", "0.6420938", "0.64023024", "0.63713837", "0.6369523", "0.6331869", "0.632814", "0.632814", "0.632814", "0.632814", "0.6324371", ...
0.7162531
1
Perform a left AVL rotation on the node. Returns new root of the subtree.
def dZvb(YKHO) -> 'Node': LSh8 = YKHO.right YKHO.right = LSh8.left if YKHO.right is not None: YKHO.right.parent = YKHO YKHO.__update_all() _AKB = YKHO.parent LSh8.left = YKHO YKHO.parent = LSh8 LSh8.__update_all() LSh8.parent = _AKB if _AKB is not None and _AKB.left == YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Epaa(YKHO, Q6kx: _AVLTreeNode) -> BC02:\n DzdB = Q6kx.right\n if DzdB.left is not None:\n DzdB.left.parent = Q6kx\n Q6kx.right = DzdB.left\n DzdB.left = Q6kx\n DzdB.parent = Q6kx.parent\n Q6kx.parent = DzdB\n YKHO.__update(Q6kx)\n YKHO.__update(DzdB)\n return DzdB", "def tsd...
[ "0.823624", "0.812622", "0.80962366", "0.80546755", "0.7587448", "0.7493736", "0.74702257", "0.74329686", "0.741219", "0.7404897", "0.73054975", "0.72558427", "0.71970874", "0.7146071", "0.7045855", "0.7014996", "0.6885685", "0.6872428", "0.68049574", "0.68011016", "0.6787932...
0.76611906
4
Perform a right AVL rotation on the node. Returns new root of the subtree.
def jYLE(YKHO) -> 'Node': LSh8 = YKHO.left YKHO.left = LSh8.right if YKHO.left is not None: YKHO.left.parent = YKHO YKHO.__update_all() _AKB = YKHO.parent LSh8.right = YKHO YKHO.parent = LSh8 LSh8.__update_all() LSh8.parent = _AKB if _AKB is not None and _AKB.left == YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y079(YKHO, Q6kx: _AVLTreeNode) -> BC02:\n nkt6 = Q6kx.left\n if nkt6.right is not None:\n nkt6.right.parent = Q6kx\n Q6kx.left = nkt6.right\n nkt6.right = Q6kx\n nkt6.parent = Q6kx.parent\n Q6kx.parent = nkt6\n YKHO.__update(Q6kx)\n YKHO.__update(nkt6)\n return nkt6", "def C...
[ "0.81320274", "0.7924442", "0.77287066", "0.7605345", "0.74074155", "0.72882193", "0.7284075", "0.72831017", "0.72699213", "0.7263043", "0.7248768", "0.722771", "0.7189504", "0.7180443", "0.7096929", "0.70909923", "0.7081724", "0.7043513", "0.6995719", "0.6993479", "0.6941867...
0.72508013
10
Add left child, return new root. Raises an exception when such child exists.
def _CXM(YKHO, H5ew: int) -> 'Node': if YKHO.left is None: if H5ew >= YKHO.key: raise ValueError("Key isn't less than parent's key") YKHO.left = o7DN(key=H5ew) YKHO.left.parent = YKHO else: raise ValueError('Left child exists') return YKHO.__balance()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BK4L(YKHO, XP5J, tTpl):\n Q6kx = YKHO._validate(XP5J)\n if Q6kx._left is not None:\n raise ValueError('Left child exists')\n YKHO._size += 1\n Q6kx._left = YKHO._Node(tTpl, Q6kx)\n return YKHO._make_position(Q6kx._left)", "def BK4L(YKHO, XP5J, tTpl):\n Q6kx = YKHO._validate(XP5J)\n ...
[ "0.8026997", "0.79748166", "0.7903746", "0.7896721", "0.7884345", "0.7800504", "0.74801576", "0.74304515", "0.740037", "0.7077946", "0.70299447", "0.69355273", "0.6933015", "0.68624973", "0.68349683", "0.6831818", "0.67962545", "0.6777617", "0.6777617", "0.6767131", "0.676518...
0.74754745
7
Add right child, return new root. Raises an exception when such child exists.
def C0mQ(YKHO, H5ew: int) -> 'Node': if YKHO.right is None: if H5ew <= YKHO.key: raise ValueError("Key isn't bigger than parent's key") YKHO.right = o7DN(key=H5ew) YKHO.right.parent = YKHO else: raise ValueError('Right child exists') return YKHO.__balance()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qG47(YKHO, XP5J, tTpl):\n Q6kx = YKHO._validate(XP5J)\n if Q6kx._right is not None:\n raise ValueError('Right child exists')\n YKHO._size += 1\n Q6kx._right = YKHO._Node(tTpl, Q6kx)\n return YKHO._make_position(Q6kx._right)", "def qG47(YKHO, XP5J, tTpl):\n Q6kx = YKHO._validate(XP5J)...
[ "0.74777585", "0.7392239", "0.7312011", "0.7263651", "0.722797", "0.7161967", "0.7052025", "0.70148784", "0.68271995", "0.6816213", "0.68017006", "0.6742966", "0.6742966", "0.6734805", "0.6597567", "0.6581646", "0.64369655", "0.6433921", "0.635994", "0.63588625", "0.6315375",...
0.69075346
8
Return element with minimal key in this subtree.
def min(YKHO) -> 'Node': jvSB = YKHO while jvSB.left is not None: jvSB = jvSB.left return jvSB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def min(YKHO):\n if not YKHO.root:\n return None\n Q6kx, _AKB = wzfx._traverse(YKHO.root, 'left')\n return Q6kx.key", "def ohV5(YKHO):\n if YKHO.root is None:\n return float('+inf')\n jvSB = YKHO.root\n while jvSB.left is not None:\n jvSB = jvSB.left\n return jvSB.key", ...
[ "0.79236364", "0.7705381", "0.7569925", "0.7567042", "0.7528494", "0.73429924", "0.72934717", "0.7246371", "0.7239702", "0.70945776", "0.7030463", "0.7024217", "0.7019277", "0.6956292", "0.6930639", "0.69278634", "0.6922238", "0.6914457", "0.69040287", "0.68854064", "0.687283...
0.66461504
35
Return element with next key.
def U08W(YKHO) -> uLKX['Node', None]: if YKHO.right is not None: return YKHO.right.min() else: jvSB = YKHO while jvSB.parent is not None: if jvSB == jvSB.parent.left: return jvSB.parent else: jvSB = jvSB.parent return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UDAb(YKHO):\n NlZ_ = next(YKHO.tree)\n if NlZ_ is not None:\n return NlZ_.key", "def next(YKHO):\n YKHO.iterator.next()\n return YKHO.iterator.prevKey", "def UDAb(YKHO):\n if YKHO._idx < len(YKHO._rib):\n t8Sb = YKHO._rib.get_key(YKHO._idx)\n Aofo = YKHO._rib[t8Sb]\n ...
[ "0.74874026", "0.74018556", "0.68905276", "0.6866874", "0.67324036", "0.67118484", "0.6613288", "0.65915877", "0.658028", "0.6493138", "0.64679515", "0.6467849", "0.646503", "0.6458305", "0.6456633", "0.6425064", "0.6425064", "0.6424453", "0.64010406", "0.6393898", "0.6368315...
0.0
-1
Return the number of nodes in the tree.
def zNig(YKHO) -> int: return YKHO.root.size if not YKHO.empty() else 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO):\n return YKHO.__tree.node_count", "def kRap(YKHO):\n return YKHO._root.count()", "def Kytq(YKHO):\n if YKHO.is_empty():\n return 0\n elif YKHO.is_leaf():\n return 1\n elif YKHO.get_left():\n if YKHO.get_right():\n return 1 + YKHO.get_left().count_n...
[ "0.8657407", "0.86321473", "0.8440881", "0.8408121", "0.83953786", "0.83919847", "0.8296218", "0.8293678", "0.8292415", "0.8275337", "0.8275337", "0.8275212", "0.8231219", "0.8218265", "0.8179485", "0.81324744", "0.80809873", "0.80389524", "0.7983352", "0.796868", "0.79305387...
0.72755015
72
Dot product between two vectors. >>> dot_product([1,2,3], [4,5,6]) 32 >>> dot_product([1,2], [10, 30]) 70
def uYbU(rdlD, iVRZ): return Pusg(lambda WKvO, LVAh: WKvO + LVAh, [WKvO * LVAh for WKvO, LVAh in zip(rdlD, iVRZ)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pxL1(lSjb, v8Fa):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(lSjb, v8Fa)))", "def yYJc(WKvO, LVAh):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(WKvO, LVAh)))", "def X6_J(hQHm, jlSq):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(hQHm, jlSq)))", "def pxL1(lSjb, v8Fa):\n import opera...
[ "0.8571262", "0.8506308", "0.84716433", "0.84622484", "0.8362988", "0.8359964", "0.83132523", "0.82927454", "0.8287948", "0.8285501", "0.82436854", "0.8237967", "0.8227244", "0.81958866", "0.8184732", "0.8119292", "0.80656284", "0.80418396", "0.801797", "0.7958846", "0.793099...
0.0
-1
Matrix equality. >>> m = Matrix(2,3, data=[1,2,3,4,5,6]) >>> n = Matrix(2,3, data=[1,2,3,4,5,6]) >>> m == n True >>> m = Matrix(2,3, data=[1,2,3,4,5,6]) >>> n = Matrix(3,2, data=[1,2,3,4,5,6]) >>> m == n False >>> m = Matrix(2,3, data=[1,2,3,4,5,6]) >>> n = Matrix(2,3, data=[1,5,3,4,2,1]) >>> m == n False
def xa14(YKHO, Elif): if not issubclass(type(Elif), aLMY): return False if YKHO.rows != Elif.rows or YKHO.columns != Elif.columns: return False return YKHO.data == Elif.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if isinstance(Elif, aLMY):\n return YKHO.data == Elif.data\n else:\n raise TypeError('other is not a Matrix')", "def xa14(YKHO, Elif):\n if not isinstance(Elif, aLMY):\n return NotImplemented\n if YKHO.num_cols != Elif.num_cols:\n return False\n ...
[ "0.77442706", "0.7616774", "0.7541274", "0.73873246", "0.7328286", "0.7172422", "0.7158907", "0.70418817", "0.69518113", "0.6880581", "0.6836746", "0.67580706", "0.6729691", "0.66712886", "0.66344106", "0.6621957", "0.65759283", "0.65587467", "0.65123016", "0.64831966", "0.64...
0.7703764
1
Apply the Gaussian Algorithm to produce a matrix in row echelon form. Returns the resulting matrix and a list of the elementary operations applied. >>> x = Matrix(4, 6, data = [0, 0, 0, 2, 1, 9, 0, 2, 6, 2, 0, 2, 0, 2, 6, 2, 2, 0, 0, 3, 9, 2, 2, 19]) >>> x.is_row_echelon() False >>> x.is_reduced_row_echelon() False >>>...
def aCFo(YKHO): return YKHO._to_row_echelon(fully_reduce=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lShg(YKHO):\n biCq = aLMY(YKHO.Matrix)\n print('This is the row reduced echelon form of your matrix: \\n', biCq.rref())", "def Q_b8(YKHO, erz3=False):\n SppC, IPme = INZx(YKHO.data.copy(), True)\n if erz3:\n return (aLMY(SppC), IPme)\n else:\n return aLMY(SppC)", "def SDfm(IEr5...
[ "0.6142419", "0.5927133", "0.5843437", "0.58102345", "0.5803057", "0.574778", "0.57285506", "0.56704384", "0.5545705", "0.5516162", "0.5460262", "0.54235905", "0.53553396", "0.52844626", "0.5037948", "0.50374824", "0.4956029", "0.49052173", "0.48710987", "0.48451102", "0.4820...
0.6018045
1
Apply the Gaussian Algorithm to produce a matrix in row echelon form. Returns the resulting matrix and a list of the elementary operations applied. >>> x = Matrix(4, 6, data = [0, 0, 0, 2, 1, 9, 0, 2, 6, 2, 0, 2, 0, 2, 6, 2, 2, 0, 0, 3, 9, 2, 2, 19]) >>> x.is_row_echelon() False >>> y, ops = x.to_row_echelon() >>> y.is...
def jbYH(YKHO): return YKHO._to_row_echelon(fully_reduce=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ajlW(YKHO, erz3=False):\n SppC, IPme = Xy8w(YKHO.data.copy(), True)\n if erz3:\n return (aLMY(SppC), IPme)\n else:\n return aLMY(SppC)", "def snpA(YKHO):\n if all([all([YKHO[YRbF, r845] == 0 for r845 in range(YKHO.n)]) for YRbF in range(YKHO.m)]):\n return aLMY.makeZero(YKHO....
[ "0.5780302", "0.5641073", "0.56297666", "0.5594284", "0.5564156", "0.55236244", "0.5496969", "0.54073936", "0.53759384", "0.53267175", "0.53152555", "0.5219486", "0.52194047", "0.5208904", "0.514854", "0.5139676", "0.51020676", "0.50896704", "0.5068453", "0.5015525", "0.49995...
0.57338876
1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=45) QrM1.yticks(wIWT, KndY) if NkkI: Bcwd = Bcwd.astype...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81920755", "0.8093736", "0.8028212", "0.8017333", "0.79923165", "0.7989431", "0.79789335", "0.7974398", "0.795948", "0.79555666", "0.7935652", "0.7932704", "0.7932632", "0.7929465", "0.7924336", "0.7922666", "0.79221356", "0.7921299", "0.79209703", "0.7920307", "0.7916008"...
0.0
-1
In the constructor we instantiate two nn.Linear modules and assign them as member variables.
def FIMM(YKHO, ykHV, C7Ls, A7LZ): super(CaVF, YKHO).__init__() YKHO.linear1 = ht2j.nn.Linear(ykHV, C7Ls) YKHO.linear2 = ht2j.nn.Linear(C7Ls, A7LZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc):\n super(byfJ, YKHO).__init__()\n YKHO.fc = U78l.Linear(*qIxc)", "def FIMM(YKHO, Ce0Y, Q9YM, N93T=False):\n super(zSGR, YKHO).__init__()\n assert len(Q9YM) == len(Ce0Y) - 1\n G1Hx = len(Ce0Y)\n assert all([Ce0Y[r845][1] == Ce0Y[r845 + 1][0] for r845 in range(G1Hx - 1)])\n ...
[ "0.77401125", "0.75483596", "0.75074446", "0.74346", "0.7366003", "0.7335429", "0.73152226", "0.7286699", "0.7273464", "0.7268201", "0.72429734", "0.72211164", "0.72030157", "0.7167753", "0.7111596", "0.7077496", "0.7065618", "0.7063983", "0.7053454", "0.7018263", "0.70144415...
0.72729063
10
Sets the _from of this CampaignResults.
def haVx(YKHO, haVx): YKHO.__from = haVx
{ "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, icTz):\n if isinstance(icTz, (str,)):\n YKHO.set_parameter('from', icTz)\n if isinstance(icTz, (qcWV,)):\n YKHO.set_parameter('from'...
[ "0.7719465", "0.7172963", "0.6993555", "0.6008711", "0.6008711", "0.5949448", "0.59235334", "0.5904632", "0.58908695", "0.58452606", "0.5829207", "0.5807383", "0.5807383", "0.5807383", "0.5803843", "0.5799895", "0.5795903", "0.5749504", "0.5740872", "0.5683139", "0.5594621", ...
0.69589686
5
Sets the last_page of this CampaignResults.
def Qzhh(YKHO, Qzhh): YKHO._last_page = Qzhh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jCBC(YKHO, B2Dn):\n YKHO.last_page = B2Dn\n if YKHO.get_page() > B2Dn:\n YKHO.set_page(B2Dn)", "async def last_page(YKHO):\n await YKHO.show_page(YKHO.maximum_pages)", "def lhtP(YKHO, FFn8):\n if FFn8 > 0:\n YKHO.max_per_page = FFn8\n if YKHO.page == 0:\n YKHO.pa...
[ "0.7550727", "0.6282344", "0.61206865", "0.59512246", "0.5883743", "0.5856963", "0.58023655", "0.56850874", "0.566858", "0.56101155", "0.55056155", "0.5464263", "0.5453732", "0.5417057", "0.53806823", "0.535176", "0.52850085", "0.5262985", "0.5236791", "0.5229718", "0.5226469...
0.8125105
0
Sets the prev_page_url of this CampaignResults.
def v_yT(YKHO, v_yT): YKHO._prev_page_url = v_yT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GQKu(YKHO, THkp):\n YKHO.prev = THkp", "def Ynkd(YKHO):\n if YKHO._start == 0:\n raise ValueError('Already at the first page.')\n YKHO._start = YKHO._start - YKHO._num if YKHO._start > YKHO._num else 0", "def THkp(YKHO, THkp):\n YKHO._prev = THkp", "def DWos(YKHO):\n if YKHO.page.ha...
[ "0.6999146", "0.6881566", "0.68198353", "0.65889996", "0.6501186", "0.6464601", "0.6144432", "0.6135618", "0.61000425", "0.60942054", "0.60596913", "0.59559035", "0.5934246", "0.59099567", "0.5888289", "0.5879898", "0.5819527", "0.5816416", "0.5723854", "0.5703113", "0.566889...
0.8607853
0
Sets the to of this CampaignResults.
def Br5Q(YKHO, Br5Q): YKHO._to = Br5Q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dixj(YKHO, dixj):\n YKHO._results = dixj", "def dixj(YKHO, dixj):\n YKHO._results = dixj", "def dixj(YKHO, dixj):\n YKHO._results = dixj", "def dixj(YKHO, dixj):\n YKHO._results = dixj", "def dixj(YKHO, dixj):\n YKHO._results = dixj", "def dixj(YKHO, dixj):\n YKHO._results = dixj", ...
[ "0.57430834", "0.57430834", "0.57361543", "0.57361543", "0.57361543", "0.57361543", "0.57361543", "0.5642243", "0.5534631", "0.5256359", "0.5178283", "0.5048085", "0.5048085", "0.50193495", "0.49595615", "0.4937751", "0.49203742", "0.49203742", "0.48180714", "0.48172152", "0....
0.5006281
14
Sets the total of this CampaignResults.
def wjRY(YKHO, wjRY): YKHO._total = wjRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wjRY(YKHO, wjRY):\n if YKHO.local_vars_configuration.client_side_validation and wjRY is None:\n raise ValueError('Invalid value for `total`, must not be `None`')\n YKHO._total = wjRY", "def GFu9(YKHO, GFu9):\n YKHO._total_hits = GFu9", "def wjRY(YKHO):\n return YKHO._results.total", "d...
[ "0.7075226", "0.67510086", "0.6703441", "0.66641736", "0.665505", "0.65984243", "0.6525502", "0.64461493", "0.6331838", "0.6308661", "0.6305285", "0.6245067", "0.6214662", "0.617007", "0.6129666", "0.60962206", "0.60649616", "0.60427755", "0.59653556", "0.5922873", "0.5907423...
0.749527
6
Sets the results of this CampaignResults.
def dixj(YKHO, dixj): YKHO._results = dixj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dixj(YKHO, dixj):\n YKHO._results = dixj", "def dixj(YKHO, dixj):\n YKHO._results = dixj", "def wnGA(YKHO, dixj):\n pass", "def Qk3B(YKHO, dixj):\n if dixj is None or len(dixj) == 0:\n YKHO._results = None\n else:\n YKHO._results = dixj", "def zIzQ(YKHO, dixj):\n YKHO.re...
[ "0.7884495", "0.7884495", "0.68379533", "0.66841173", "0.6682566", "0.6517576", "0.6409468", "0.6209654", "0.61726713", "0.6151921", "0.6151921", "0.61044806", "0.60944104", "0.6093786", "0.6015532", "0.6015532", "0.59821796", "0.59821796", "0.58353394", "0.5809639", "0.57756...
0.7906392
2
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, utcr): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.84568954", "0.83923674", "0.81447554", "0.81407183", "0.81326675", "0.80941343", "0.8092415", "0.8092415", "0.8092415", "0.8085536", "0.8085536", "0.8076502", "0.8076502", "0.8066026" ]
0.0
-1
Given any number of dicts, shallow copy and merge into a new dict, same valued added to a same key
def roQF(*c974): Aofo = g760.defaultdict(list) for cmPJ in c974: for G1Hx in cmPJ.keys(): Aofo[G1Hx].append(cmPJ.get(G1Hx)) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QY1j(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def nSnN(KYzv, TDnD):\n XgFU = KYzv.copy()\n for G1Hx, Ty9i in TDnD.items():\n if G1Hx in XgFU:\n XgFU[G1Hx].append(Ty9i)\n else:\n XgFU[G1Hx] = [Ty9i]\n return XgFU", "def hOKH...
[ "0.73747516", "0.73708177", "0.7368447", "0.7322814", "0.7322814", "0.7322814", "0.7270092", "0.71929705", "0.7125913", "0.71019256", "0.7082811", "0.7041538", "0.70241237", "0.7020566", "0.7020566", "0.70176697", "0.7003488", "0.6998595", "0.69811296", "0.69748175", "0.69735...
0.6473379
97
test support for method references to 'new'.
def IdBe(YKHO): YKHO.assert_contains_method_reference_expression_in_m(hfK9.parse(dCPZ('String::new;')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwuD(*qIxc, **B2fa):\n pass", "def fwuD(*qIxc, **B2fa):\n pass", "def fwuD(*qIxc, **B2fa):\n pass", "def fwuD(*qIxc, **B2fa):\n pass", "def fwuD(*qIxc, **B2fa):\n pass", "def fwuD(*qIxc, **B2fa):\n pass", "def fwuD(*qIxc, **B2fa):\n pass", "def c5Wt(YKHO):\n YKHO.assert_co...
[ "0.74459124", "0.74459124", "0.74459124", "0.74459124", "0.74459124", "0.74459124", "0.73973083", "0.73797446", "0.73705107", "0.73705107", "0.73705107", "0.73705107", "0.73705107", "0.73705107", "0.73705107", "0.73705107", "0.73705107", "0.73705107", "0.73705107", "0.73705107"...
0.7648247
0
Restores network parameters to last saved values
def wBIE(YKHO): if Hy7s.path.isfile(Hy7s.path.join(YKHO.network_path, 'net_parameters.nnprm.index')): YKHO.load_network_parameters(file_name='net_parameters', file_path=YKHO.network_path) else: YKHO.log('Could not load previous network parameters from:\n{}'.format(Hy7s.path.join(YKHO.network_pat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBIE(YKHO):\n vt2H = list(YKHO.net.parameters())\n oHsZ = list(YKHO.saved_net.parameters())\n for lOR9, JBAi in zip(vt2H, oHsZ):\n Tnxt = lOR9.shape\n XUXc = JBAi.shape\n lOR9 = lOR9.flatten()\n JBAi = JBAi.flatten()\n for YRbF, bGrB in enumerate(lOR9.data):\n ...
[ "0.7624994", "0.7181976", "0.68304336", "0.67606837", "0.66665417", "0.6624656", "0.66192657", "0.660528", "0.65803695", "0.65579176", "0.65551466", "0.654185", "0.6491765", "0.6453688", "0.64398676", "0.6435174", "0.6413157", "0.640428", "0.6402615", "0.6373396", "0.6373396"...
0.79007125
0
return a full name neatly formatted
def e1yb(c9ua, zp3f): eHMM = f'{c9ua} {zp3f}' return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T37t(YKHO):\n YKHO.full_name = YKHO.first + ' ' + YKHO.last", "def e1yb(cntZ, XVAW):\n eHMM = cntZ + ' ' + XVAW\n return eHMM.title()", "def e1yb(c9ua, zp3f):\n eHMM = f'{c9ua} {zp3f}'\n return eHMM.title()", "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()", ...
[ "0.8597531", "0.8530935", "0.85293806", "0.85130614", "0.8495344", "0.8480073", "0.8445132", "0.840572", "0.840572", "0.840572", "0.8397775", "0.8366714", "0.83608186", "0.835093", "0.835093", "0.8342666", "0.8342666", "0.8342666", "0.83416414", "0.83273774", "0.83023435", ...
0.8451673
6
Return a friendly HTTP greeting.
def Wzeq(): anCO(uthh) zzPo = 'PROJECT TO TEST FOR VALIDATION' if zzPo in cuiw['projects']: cuiw['validated'] = 1 return TvZl('index.html') else: [cuiw.pop('validated') if cuiw.get('validated') else None] WsL5.abort(403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tz38(mWFP):\n BYLU = f\"Hello, {mWFP.title()}. It's nice to meet you!\"\n return BYLU", "def uthR():\n return 'Welcome to Flask!'", "def Y7u5(mWFP):\n print('My name is ' + mWFP)", "def qjYe():\n return f\"Welcome to the Surf's Up API!Available Routes:<br/>/api/v1.0/surfs-up\"", "def Wze...
[ "0.67860854", "0.6719625", "0.67095745", "0.6680697", "0.6663219", "0.6638394", "0.6633062", "0.6628187", "0.6556032", "0.6536937", "0.64776874", "0.6477268", "0.64715713", "0.64644194", "0.6443056", "0.6435385", "0.6400719", "0.6400167", "0.637615", "0.637615", "0.6367243", ...
0.0
-1
Return a custom 404 error.
def m7kB(tTpl): return ("Hey Bozo. You don't belong here -- scramo.", 403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf():\n return c1Bu(404)", "def RQdI(P1dF):\n return '404 Error'", "def RQdI(P1dF):\n return 'Bummer, there is nothing at this URL.'", "def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)", "def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)", "def m7kB(XObx):\...
[ "0.81159586", "0.80410045", "0.7738874", "0.77369535", "0.77182025", "0.7689595", "0.7670471", "0.76112473", "0.7602477", "0.7570698", "0.75528365", "0.7545827", "0.751882", "0.74745256", "0.7458403", "0.7455682", "0.74548143", "0.74505144", "0.7442062", "0.7428278", "0.74065...
0.0
-1