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
Getter method for conf_rx_queue_interface, mapped from YANG variable /capabilities/qos/conf_rx_queue_interface (boolean)
def SuC0(YKHO): return YKHO.__conf_rx_queue_interface
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r5fh(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='conf-rx-queue-interface', rest_name='conf-rx-queue-interface', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, regis...
[ "0.8304297", "0.7134488", "0.63257766", "0.57679176", "0.52689", "0.5158903", "0.5131039", "0.5099192", "0.505387", "0.49801153", "0.4966893", "0.496393", "0.49489012", "0.49302208", "0.49252102", "0.48986483", "0.48610798", "0.48590916", "0.4853773", "0.48420402", "0.4826870...
0.76679814
1
Setter method for conf_rx_queue_interface, mapped from YANG variable /capabilities/qos/conf_rx_queue_interface (boolean)
def r5fh(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='conf-rx-queue-interface', rest_name='conf-rx-queue-interface', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xeXd(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='show-rx-queue-interface', rest_name='show-rx-queue-interface', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, regis...
[ "0.74906677", "0.72015256", "0.58936197", "0.53546965", "0.5273465", "0.5265554", "0.5233824", "0.5183233", "0.51512897", "0.5125854", "0.5097545", "0.50964355", "0.508184", "0.50776356", "0.5068148", "0.5061122", "0.50588137", "0.5057155", "0.50553375", "0.5042281", "0.50419...
0.8762045
0
Convert list of column names to dummy column dfs
def KvPR(jQ3Z, E2dj): vU9z = [] for Vo9x in E2dj: vU9z.append(rLdf.get_dummies(jQ3Z[Vo9x])) return vU9z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mZvp(nPrm, JN9H):\n for iVRZ in JN9H:\n h3qM = rLdf.get_dummies(nPrm[iVRZ]).add_prefix(str(iVRZ + '_'))\n nPrm = nPrm.drop(iVRZ, axis=1)\n nPrm = rLdf.concat([nPrm, h3qM], axis=1)\n return nPrm", "def _4L9(jQ3Z, AAHb, iK09):\n bQav = jQ3Z.columns\n jQ3Z = rLdf.get_dummies(jQ3...
[ "0.73333853", "0.6972105", "0.68513703", "0.67846733", "0.6571617", "0.65462494", "0.65356404", "0.6469272", "0.6458965", "0.64564615", "0.6446359", "0.64428484", "0.637251", "0.6335248", "0.61981004", "0.6197539", "0.6170319", "0.6112488", "0.6087712", "0.6082923", "0.608292...
0.75368893
0
Convert list of column names to dummy column dfs
def hB1c(jQ3Z, bySB, vU9z): Gs9A = jQ3Z[bySB] for ewrA in vU9z: Gs9A = rLdf.concat([Gs9A, ewrA], axis=1) return Gs9A
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KvPR(jQ3Z, E2dj):\n vU9z = []\n for Vo9x in E2dj:\n vU9z.append(rLdf.get_dummies(jQ3Z[Vo9x]))\n return vU9z", "def mZvp(nPrm, JN9H):\n for iVRZ in JN9H:\n h3qM = rLdf.get_dummies(nPrm[iVRZ]).add_prefix(str(iVRZ + '_'))\n nPrm = nPrm.drop(iVRZ, axis=1)\n nPrm = rLdf.con...
[ "0.75368893", "0.73333853", "0.6972105", "0.68513703", "0.67846733", "0.6571617", "0.65462494", "0.65356404", "0.6469272", "0.6458965", "0.64564615", "0.6446359", "0.64428484", "0.637251", "0.6335248", "0.61981004", "0.6197539", "0.6170319", "0.6112488", "0.6087712", "0.60829...
0.52983105
80
Will like and dislike according the the calling
def moVP(YKHO, Zc_g, GY74, bABr, qRCH): GWE6 = _JxO.fetchByID('photos', aA6B(GY74)) bGl1 = _JxO.fetchByID('photos', aA6B(Zc_g)) GXvr = str(GWE6['personID']) def hPkU(): vDPl = -1 if 'likedUsers' in bGl1 and 'likedUsers' in GWE6: vDPl = GXvr in bGl1['likedUsers'] and bABr in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qRCH():\n return None", "def NTWF(YKHO):\n YKHO.user_prefer['music'][YKHO.cur_music_id] = 2\n print('probabilty of %s is improved' % YKHO.cur_music_id)\n print('user prefer: %s' % YKHO.user_prefer)", "def Y906(YKHO):\n pass", "def YuHv(YKHO):\n pass", "def M7cL(nPrm):\n print(nPrm)...
[ "0.70567816", "0.6962222", "0.68843585", "0.67930925", "0.65636355", "0.6496651", "0.6487763", "0.6447814", "0.639251", "0.63639456", "0.63497967", "0.6342594", "0.6333019", "0.6328977", "0.6297549", "0.62122846", "0.6185668", "0.6134998", "0.60675126", "0.6057134", "0.599724...
0.57583857
34
Constructor for the Vehicle class
def FIMM(YKHO, id=None, Tfb5=None, NnSv=None, mWFP=None, fytP=None, Zsox=None, STXJ=None): YKHO.engine_hours = Tfb5 YKHO.fuel_level_percent = NnSv YKHO.id = id YKHO.name = mWFP YKHO.note = fytP YKHO.odometer_meters = Zsox YKHO.vin = STXJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, gKPu, _Wrt, SWox, Uqdo):\n YKHO.vehicle_type = gKPu\n YKHO.vehicle_plate = _Wrt\n YKHO.start_time = SWox\n YKHO.end_time = None\n YKHO.car_lot = Uqdo\n YKHO.fee = 0", "def FIMM(YKHO, QOxj, SCLJ):\n super(Cd7S, YKHO).__init__(QOxj, SCLJ)", "def FIMM(YKHO, mWFP, u54L, Rci7, C3...
[ "0.7561334", "0.74751574", "0.7367619", "0.72657835", "0.72601086", "0.72580093", "0.72422653", "0.72422653", "0.71160877", "0.71054703", "0.69797933", "0.6966073", "0.6924673", "0.68839157", "0.68812317", "0.6822345", "0.6709704", "0.67059225", "0.670353", "0.66761446", "0.6...
0.67786676
16
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None id = cmPJ.get('id') Tfb5 = cmPJ.get('engineHours') NnSv = cmPJ.get('fuelLevelPercent') mWFP = cmPJ.get('name') fytP = cmPJ.get('note') Zsox = cmPJ.get('odometerMeters') STXJ = cmPJ.get('vin') return Emd4(id, Tfb5, NnSv, mWFP,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
Approximation to the reconstruction error.
def _qpT(YKHO, Vhxs, PHIz): CqbS = Kt_s.mean(Kt_s.sum(YKHO.input * Kt_s.log(Kt_s.nnet.sigmoid(PHIz)) + (1 - YKHO.input) * Kt_s.log(1 - Kt_s.nnet.sigmoid(PHIz)), axis=1)) return CqbS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RDdK(YKHO, qqrj):\n wGcT = YKHO._meanFibersFr - YKHO._meanFiringRateProfile\n P1dF = qqrj - wGcT\n return P1dF", "def P1dF(YKHO):\n return (YKHO.eta * YKHO.N, 1 - YKHO.delta)", "def P1dF(YKHO):\n return YKHO.data.difference.sum() / (2 * YKHO.n)", "def RDdK(YKHO, pan_):\n pass", "def G...
[ "0.7365054", "0.73396033", "0.7204564", "0.7141956", "0.7093875", "0.7090419", "0.7084423", "0.70662105", "0.6936501", "0.69170934", "0.6878291", "0.6872729", "0.68693316", "0.68363816", "0.68296313", "0.68188995", "0.6799576", "0.6780028", "0.6770416", "0.6764496", "0.674821...
0.0
-1
Filter dict to remove None values.
def JcH2(Csk6): return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in Csk6.items() if Ty9i is not None))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vdvM(dict):\n return {G1Hx: Ty9i for G1Hx, Ty9i in dict.items() if Ty9i is not None}", "def IOyy(nPrm):\n return {(G1Hx, Ty9i) for G1Hx, Ty9i in nPrm.items() if Ty9i is not None}", "def ZORp(fGC9):\n\n def a1PO(WKvO):\n return WKvO is None or (isinstance(WKvO, float) and oyIN.isnan(WKvO))\n...
[ "0.87394387", "0.8317561", "0.825869", "0.81609106", "0.8086089", "0.8053175", "0.80402875", "0.8008597", "0.79945767", "0.7989527", "0.79583585", "0.7836824", "0.7751848", "0.7750381", "0.77126193", "0.76705176", "0.76606244", "0.76582086", "0.756625", "0.7470482", "0.746431...
0.7982079
10
Instance slot modification test.
def F1Q0(YKHO): ZTix = YKHO.env.find_class('ConcreteClass') ZTix.make_instance('some-instance') KAOR = ZTix.make_instance('test-instance', Slot=wZLS('value')) KAOR.modify_slots(Slot=wZLS('another-value')) YKHO.assertEqual(KAOR['Slot'], wZLS('another-value')) KAOR.delete()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZikT(YKHO):\n\n class MyFlow(i2pj):\n oQ6W = Lm2N()\n r8hN = WkNZ()\n assert getattr(r8hN, '__flow_available') == {'slot': 0}", "def tUCs(YKHO):\n oQ6W = Lm2N(day=YKHO.day, start_time=lWPh.time(11, 0, 0), end_time=lWPh.time(12, 30, 0))\n oQ6W.save()\n YKHO.assertEqual(Lm2N.objects.co...
[ "0.6777494", "0.6430287", "0.6366298", "0.63247216", "0.6322863", "0.62425214", "0.61479497", "0.61325246", "0.61178446", "0.604995", "0.6027424", "0.60018975", "0.5982644", "0.59367585", "0.59292823", "0.59243", "0.59187156", "0.59187156", "0.5918349", "0.59104913", "0.58869...
0.7885302
0
View function for home page of site.
def d6pt(QePW): O0UD = rON5.objects.all().count() Uzcf = Hw0P.objects.filter(status__exact='a').count() arni = k8JY.objects.count() RTwz = QePW.session.get('num_visits', 0) QePW.session['num_visits'] = RTwz + 1 QpfX = {'num_animal': O0UD, 'num_pet_available': Uzcf, 'num_breeder': arni, 'num_visi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def kZiy():\n ...
[ "0.8521128", "0.8379754", "0.8353459", "0.83415544", "0.83415544", "0.83171177", "0.830583", "0.8298624", "0.8296122", "0.8263442", "0.8224959", "0.8217078", "0.8206788", "0.81901366", "0.81901366", "0.8182092", "0.8176577", "0.81756383", "0.8147583", "0.81347877", "0.8134787...
0.0
-1
get default aggregation buckets for all facets
def az0M(E3Ky): kXUa = wxaU(qIxc.elastic_hosts) TBsA = YKHO._aggregation(E3Ky) raise my7k.gen.Return(kXUa.msearch(body=TBsA, request_timeout=60))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oXFQ(YKHO, E3Ky):\n TBsA = []\n d6pt = YKHO.index\n zNig = YKHO.get_query_argument('size', 10)\n R7S5 = YKHO.get_query_argument('q', '*')\n if len(R7S5) == 0:\n R7S5 = '*'\n if not E3Ky:\n return None\n for XoFj in E3Ky['facets'].keys():\n dBxG, IUGi = XoFj.split('.')\...
[ "0.6641006", "0.65733784", "0.6529492", "0.63893735", "0.6370197", "0.6354708", "0.6238043", "0.61553746", "0.6132157", "0.60556346", "0.6052439", "0.5985332", "0.5959239", "0.5927421", "0.5857004", "0.5837806", "0.580087", "0.5780449", "0.5743192", "0.5740251", "0.5711335", ...
0.5752358
18
for all facets, get default buckets (top 10)
def oXFQ(YKHO, E3Ky): TBsA = [] d6pt = YKHO.index zNig = YKHO.get_query_argument('size', 10) R7S5 = YKHO.get_query_argument('q', '*') if len(R7S5) == 0: R7S5 = '*' if not E3Ky: return None for XoFj in E3Ky['facets'].keys(): dBxG, IUGi = XoFj.split('.') if 'typ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kjts(YKHO):\n return {**YKHO.default_facets, **YKHO.facets}", "def AqyT():\n pass", "def qKu2(YKHO):\n raise NotImplementedError", "def qKu2(YKHO):\n return YKHO.buckets", "def SaIu():\n Irqc = UlWi('tst2013_ids.en', 'tst2013_ids.vi')\n p7fw = UlWi('train_ids.en', 'train_ids.vi')\n ...
[ "0.6610791", "0.64889705", "0.64135337", "0.6093682", "0.6067153", "0.5952032", "0.5930413", "0.5898771", "0.5872195", "0.5871216", "0.58685046", "0.5772335", "0.574614", "0.5724894", "0.5722332", "0.56980413", "0.5695726", "0.5670504", "0.566399", "0.5654601", "0.5635454", ...
0.57435226
13
Finds the set of words that cooccur with two given words.
def hKEq(A3CN, UrE_, MP_r, OaWc, qiSP, gwAu=0, vElM=False): TCFr = A3CN[OaWc[UrE_], :].todense().A1 ANWL = set(oyIN.where(TCFr > gwAu)[0]) Q_FQ = A3CN[OaWc[MP_r], :].todense().A1 YbLV = set(oyIN.where(Q_FQ > gwAu)[0]) wOSP = list(ANWL.intersection(YbLV)) Ox22 = [qiSP[yzQ0] for yzQ0 in wOSP] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kNoB(j93S, Nqp_):\n j93S = j93S.lower()\n Nqp_ = Nqp_.lower()\n ZJfo = j93S.split()\n ePrI = Nqp_.split()\n print(ZJfo)\n print(ePrI)\n gRvG = set(ZJfo)\n ljJQ = set(ePrI)\n kaX9 = gRvG.intersection(ljJQ)\n return kaX9", "def MTjg(lUSc: str, Uvq3: str):\n XVN6 = set(lUSc.spli...
[ "0.7402765", "0.7340614", "0.72631717", "0.7195923", "0.71503484", "0.7053953", "0.70355994", "0.70355994", "0.69739634", "0.69180703", "0.68409854", "0.67837715", "0.67165285", "0.6677353", "0.66555184", "0.6632683", "0.65832007", "0.6579677", "0.6572034", "0.6569241", "0.65...
0.6326743
44
Get the location of the custom x data
def SLsv(YKHO): return YKHO._get_location(jKi7.b('CustomData|X!'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIKw(YKHO):\n return YKHO.__locx", "def WKvO(YKHO):\n return YKHO._location", "def qy9g(YKHO) -> str:\n return qe4Y.get(YKHO, 'x_axis_location')", "def qy9g(YKHO) -> str:\n return qe4Y.get(YKHO, 'x_axis_location')", "def qy9g(YKHO) -> str:\n return qe4Y.get(YKHO, 'x_axis_location')", "...
[ "0.72669333", "0.6800798", "0.6788113", "0.6788113", "0.6788113", "0.66809225", "0.66651094", "0.6507392", "0.64606047", "0.6460255", "0.6453878", "0.64244944", "0.64070493", "0.638716", "0.6331725", "0.63288206", "0.6291375", "0.62864345", "0.628016", "0.6268161", "0.6232505...
0.8308917
0
Return if the cover is closed.
def SEEh(YKHO) -> bool | None: if YKHO.current_cover_position is None: return None return YKHO.current_cover_position == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SEEh(YKHO) -> bool:\n return YKHO.get_cover_state() == ovfH.CLOSED", "def SEEh(YKHO):\n return YKHO.current_cover_position <= 0", "def SEEh(YKHO):\n if YKHO.current_cover_position is None:\n return None\n if YKHO.current_cover_position > 0:\n return False\n return True", "def...
[ "0.8674357", "0.85929483", "0.8581903", "0.83912706", "0.8091718", "0.78868335", "0.7867775", "0.77911067", "0.77088606", "0.76900125", "0.762978", "0.76188684", "0.75890225", "0.7524626", "0.7510817", "0.75064564", "0.7499444", "0.7487342", "0.7457982", "0.7421807", "0.74211...
0.8514324
3
Return if the door is closed or not.
def SEEh(YKHO) -> bool | None: QTBn = YKHO.channel_data.get('state') if QTBn and 'hi' in QTBn: return QTBn.get('hi') return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SEEh(YKHO) -> bool | None:\n S0MI.info('Processing is_closed %s for %s', YKHO._device.state, YKHO.name or YKHO._device.name)\n if not YKHO._device.malfunction:\n match YKHO._device.state:\n case uELJ.DeviceState.OPEN | v0ur.DeviceState.OPEN:\n return False\n ca...
[ "0.79748124", "0.78398335", "0.7766349", "0.77395403", "0.7700307", "0.76726884", "0.76265347", "0.7611975", "0.758694", "0.7556342", "0.75546104", "0.7536819", "0.7529679", "0.7501533", "0.7491627", "0.7491174", "0.74820673", "0.7474624", "0.7474624", "0.747452", "0.7467518"...
0.7479548
17
Return the class of this device, from component DEVICE_CLASSES.
def rM2U(YKHO) -> RDEN: return RDEN.GARAGE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return YKHO._sensor.get(F6ct)", "def rM2U(YKHO):\n return YKHO._handle('device_class')", "def rM2U(YKHO):\n return eeT9", "def rM2U(YKHO) -> str:\n return eeT9", "def rM2U(YKHO) -> str:\n return YKHO._device_class_from_type", "def rM2U(YKHO) -> str:\n return YKHO._dev_...
[ "0.85304403", "0.8427226", "0.83756787", "0.83750737", "0.83277243", "0.8324431", "0.8292755", "0.8292755", "0.8292755", "0.82483685", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754"...
0.0
-1
1hot encodes a tensor
def fKLU(LVAh, jTqs): return oyIN.eye(jTqs, dtype='uint8')[LVAh]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(WKvO):\n return oyIN.eye(WKvO.max() + 1)[WKvO]", "def zGX0(WKvO):\n KLLm = []\n jzdc = oyIN.array([0, 0, 0, 0, 0, 0, 0, 0])\n jzdc[WKvO] = 1\n KLLm.append(jzdc)\n return oyIN.asarray(KLLm).astype('int32')", "def GpPk(or8S, tpio):\n ycBG = [0] * tpio\n ycBG[or8S] = 1\n return...
[ "0.8397239", "0.8342454", "0.82294697", "0.81629807", "0.8143967", "0.81028515", "0.809962", "0.8062199", "0.80533415", "0.8046785", "0.8038851", "0.8029096", "0.79069096", "0.7860194", "0.7850401", "0.7841131", "0.7838329", "0.78013283", "0.77874726", "0.7751093", "0.7746245...
0.0
-1
Ensure the /ping route behaves correctly.
def zeVW(YKHO): geh0 = YKHO.client.get('/ping') nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertIn('pong!', nPrm['message']) YKHO.assertIn('success', nPrm['status'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BMCL(YKHO):\n geh0 = YKHO.client.get('/ping')\n YKHO.assert200(geh0)", "def BMCL(x0hE):\n geh0 = x0hE.get('/ping')\n assert geh0.data == b'Ping!'", "def BMCL(YKHO):\n x0hE = fUla.Client('vilfotestrouter', 'testtoken')\n h2IT.add(h2IT.GET, 'http://vilfotestrouter/api/v1/system/ping', json=...
[ "0.777479", "0.70533836", "0.69570583", "0.695673", "0.67540026", "0.6720369", "0.6682007", "0.6673324", "0.6634377", "0.6611171", "0.66073304", "0.6600694", "0.65949297", "0.65567964", "0.65567964", "0.65567964", "0.6546748", "0.65350163", "0.6524784", "0.6515431", "0.649419...
0.0
-1
Ensure error is thrown if the email already exists.
def _ooq(YKHO): with YKHO.client: YKHO.client.post('/users', data=qQXR.dumps(dict(username='john', email='john@foo.com')), content_type='application/json') geh0 = YKHO.client.post('/users', data=qQXR.dumps(dict(username='john', email='john@foo.com')), content_type='application/json') nPrm = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YHxn(YKHO):\n geh0 = YKHO.client().post('/api/v1/auth/register', data=qQXR.dumps(YKHO.email_user), content_type='application/json')\n YKHO.assertIn('Email already exists. Try another one', str(geh0.data))", "def Bt7w(YKHO, D3lj):\n _fe8 = mv1M.query.filter_by(email=D3lj.data).first()\n if _fe8:\n...
[ "0.75875545", "0.75378776", "0.7426973", "0.7393495", "0.7379356", "0.73411506", "0.7319012", "0.72703755", "0.71969396", "0.7182326", "0.7147385", "0.7137475", "0.7132454", "0.70863795", "0.70474094", "0.70302683", "0.70138055", "0.699558", "0.6986511", "0.69731313", "0.6959...
0.0
-1
Public method that returns the area value of the Rectangle instance
def f0tD(YKHO): return YKHO.__width * YKHO.__height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n f0tD = YKHO.__width * YKHO.__height\n return f0tD", "def f0tD(YKHO):\n f0tD = YKHO.length * YKHO.width\n return f0tD", "def f0tD(YKHO):\n return (YKHO.xmax - YKHO.xmin) * (YKHO.ymax - YKHO.ymin)", "def f0tD(YKHO):\n return YKHO.__width * YKHO.__height", "def f0tD(YKHO):\...
[ "0.8310626", "0.83080184", "0.82504773", "0.81755275", "0.81503236", "0.8141829", "0.81188136", "0.8112581", "0.8112581", "0.811095", "0.8103394", "0.8103394", "0.8098885", "0.8098885", "0.8098885", "0.80338997", "0.80338997", "0.80338997", "0.80338997", "0.80331653", "0.8015...
0.80300564
28
Adding a node to build an ordered tree. Inorder traversal through such a tree will process values in sorted order
def g5gD(YKHO, d6pt: int, nPrm: Optional[str]=None) -> 'BinaryNode': if d6pt < YKHO.index: if not YKHO.left_child: YKHO.left_child = bBBw(d6pt, nPrm) YKHO.left_child.parent = YKHO return YKHO.left_child else: YKHO.left_child.add_node(d6pt, nPrm) el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, BWXx: object) -> None:\n if YKHO.root is None:\n YKHO.root = i8DB(BWXx)\n return\n aUGN = YKHO.root\n _AKB = None\n while aUGN is not None:\n _AKB = aUGN\n if BWXx < aUGN.value:\n aUGN = aUGN.left\n else:\n aUGN = aUGN.right\n i...
[ "0.7329367", "0.7067043", "0.7029297", "0.6816398", "0.6704008", "0.66995966", "0.6637113", "0.662456", "0.6621455", "0.66051143", "0.6594586", "0.656078", "0.652393", "0.6521961", "0.65083486", "0.6448093", "0.6447382", "0.64458025", "0.64196044", "0.6419565", "0.64132863", ...
0.0
-1
Helper function that removes duplicate meta columns and rename others within convention. Also quick clean where possible.
def DJ4P(__n6): """ link """ __n6['document_link'] = __n6['link'] __n6 = __n6.drop(['link'], axis=1) '\n meta_lang\n ' __n6 = __n6.drop(['meta_lang'], axis=1) '\n meta_originId\n ' '\n meta_baseId\n ' '\n meta_mapsId\n ' '\n meta_dita:mapPath\n '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTfy(e5kH, YAg3):\n _8YQ(e5kH['lib']['values'], YAg3)\n ScsW(e5kH['masks'], YAg3, T3n2)\n grxX(e5kH['columns'], YAg3, T3n2)\n zyFI(e5kH['sets'], YAg3, T3n2)\n if not T3n2:\n e1F9(e5kH['sets'], YAg3)", "def grxX(nPrm):\n import re\n gv2B = nPrm.columns\n BdN0 = [re.sub('\\\\(\\\...
[ "0.7252955", "0.63523895", "0.63034534", "0.6128604", "0.609761", "0.6084327", "0.6055716", "0.6050132", "0.6043702", "0.6027872", "0.59953165", "0.59613097", "0.5950142", "0.59465826", "0.5943751", "0.5937414", "0.5937414", "0.59051436", "0.5901306", "0.58741224", "0.5837218...
0.5719448
27
Computes a normal vector to the Trend Plane, given as input a data frame with columns (x,y,z) representing the coordinates of the points of thalweg.
def J050(jQ3Z): bLJw = oyIN.polyfit(jQ3Z['x'], jQ3Z['y'], 1) C2WU = oyIN.polyfit(jQ3Z['distance'], jQ3Z['z'], 1) F_I9 = jQ3Z['x'][0] r0g6 = jQ3Z['x'].iloc[-1] ca7K = bLJw[0] * F_I9 + bLJw[1] iYbk = bLJw[0] * r0g6 + bLJw[1] OGq0 = jQ3Z['z'].iloc[-1] g5M0 = oyIN.sqrt((F_I9 - r0g6) ** 2 + (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iSV7(YKHO):\n hQHm = YKHO.points[0].vector3D\n jlSq = YKHO.points[1].vector3D\n bUZ8 = YKHO.points[2].vector3D\n pO9Q = jlSq - hQHm\n yzPe = bUZ8 - hQHm\n q0Kk = oyIN.cross(pO9Q, yzPe)\n if q0Kk[-1] < 0:\n q0Kk = oyIN.cross(yzPe, pO9Q)\n return q0Kk / 2", "def glfv(y4fz, imdf):...
[ "0.67262393", "0.6569685", "0.65552807", "0.6551228", "0.64766985", "0.64350504", "0.6401278", "0.63882744", "0.6353704", "0.63315505", "0.632342", "0.6283494", "0.6276624", "0.62561315", "0.6243281", "0.6225802", "0.62128013", "0.6207899", "0.62034595", "0.6188267", "0.61339...
0.7881769
0
Normalize the Trend Plane such that it can be subtracted by the altitudes of the raster's band array.
def uBc1(Ebru, kEC0): NwL4, ulBT = Ebru.shape BYdG = kEC0.median() * oyIN.ones((NwL4, ulBT)) xiGX = oyIN.asarray(kEC0).reshape(NwL4, ulBT) - BYdG return xiGX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO, Os_7=1.0):\n YKHO.ys = NkkI(YKHO.ys, amp=Os_7)", "def jnV4(YKHO, qw7D, JCoA, kpLf):\n return oyIN.subtract(qw7D, kpLf) / oyIN.subtract(JCoA, kpLf)", "def jnV4(YKHO, nPrm):\n if YKHO.clip:\n return nPrm.clip(0, 1)\n return oyIN.mod(nPrm, 1)", "def l9RK(YKHO):\n YKHO._norm_...
[ "0.63798547", "0.62646216", "0.6251941", "0.6245569", "0.6214235", "0.61961603", "0.618673", "0.61797774", "0.6155307", "0.6147006", "0.60990745", "0.60990393", "0.6087105", "0.6081174", "0.605974", "0.6058023", "0.60532105", "0.6042804", "0.60389614", "0.60329515", "0.602434...
0.660369
0
Get the name of the audio source.
def W0tD(Emd4) -> str: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZXy(YKHO) -> str | None:\n return YKHO._currently_playing.get('device', {}).get('name')", "def _9jk(YKHO) -> str:\n pass", "def PYkF(YKHO) -> str:\n return YKHO._audio_filepath.name", "def KoHv(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'source_name')", "def KoHv(YKHO) -> h8nf[qe4Y....
[ "0.78419083", "0.7429356", "0.729622", "0.72184724", "0.71874756", "0.71874756", "0.71874756", "0.7043844", "0.7005184", "0.6996467", "0.6825861", "0.6786765", "0.6761182", "0.6741607", "0.6643697", "0.66387594", "0.661233", "0.661233", "0.661233", "0.661233", "0.6611151", ...
0.0
-1
Used to freeze all parameters except 'bn2_skip' and 'fc_skip' layers.
def egNU(Zxma): for yR_P in Zxma.modules(): if isinstance(yR_P, (U78l.BatchNorm2d, U78l.GroupNorm)): yR_P.eval() for xqoZ in Zxma.parameters(): xqoZ.requires_grad = False for YRbF in range(1, 4): gEmA = getattr(Zxma, 'layer' + str(YRbF)) gEmA[1].coeff_conv2_skip.w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FiJ9(fhcK):\n for xqoZ in fhcK.parameters():\n xqoZ.requires_grad = False", "def OGtb(r8hN):\n r8hN = jWIY(r8hN)\n for XP5J in r8hN.parameters():\n XP5J.requires_grad = False\n return r8hN", "def pNsM(YKHO):\n YKHO.freeze()\n for k78t in YKHO.pretrain.layer4[1].parameters():...
[ "0.76772016", "0.75580364", "0.7411932", "0.7299723", "0.72741765", "0.7258957", "0.7239014", "0.7218861", "0.7214198", "0.7182191", "0.7170427", "0.7159162", "0.7159162", "0.70457965", "0.701431", "0.6982088", "0.6956786", "0.6938864", "0.6897822", "0.68649906", "0.6863897",...
0.71856344
9
Defreeze all parameters and enable training. Must be called to enable training.
def rec5(Zxma): for xqoZ in Zxma.parameters(): xqoZ.requires_grad = True Zxma.train()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9ns(YKHO):\n YKHO.training = True", "def Y9ns(YKHO):\n YKHO.config.is_train = True", "def yPym(YKHO):\n E4N8('Hard-freeze training params')\n YKHO.likelihood.variance.trainable = False\n for V3HY in YKHO.kern_list:\n V3HY.trainable = False\n YKHO.X0.trainable = False\n YKHO.h_s...
[ "0.7291561", "0.72821015", "0.7250862", "0.7097174", "0.7001689", "0.6928825", "0.69118863", "0.6907795", "0.6861564", "0.6843259", "0.67602265", "0.67363775", "0.6733731", "0.67331713", "0.6724294", "0.67188454", "0.67107326", "0.6701152", "0.66921014", "0.6690922", "0.66773...
0.640076
63
Finds the average happiness score of an input string by finding words in happiness_dictionary. Returns a float of the happiness score of input string.
def GooF(l5Ny): qzJD = 0 zVrk = 0.0 X9z1 = ZbWC.findall('\\w+', l5Ny) for GIN8 in X9z1: GIN8 = GIN8.lower() for H5ew, p1kx in lUki.items(): if GIN8 == H5ew: qzJD += 1 zVrk += p1kx return zVrk / qzJD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u6eW(GIN8):\n p1kx = 0\n for sZqf in list(GIN8):\n if sZqf in IXen:\n p1kx += IXen[sZqf]\n return p1kx", "def VapQ(YKHO, GERS):\n return sum((YKHO.word_scores[GIN8] for GIN8 in YKHO.words_in_string(GERS)))", "def hckV(YKHO, GIN8, hEKL):\n RI88 = 0.0\n vIwR = GIN8['string...
[ "0.68285245", "0.6823775", "0.6769279", "0.66275024", "0.66217434", "0.6600231", "0.6600231", "0.659789", "0.6591541", "0.65849835", "0.65586406", "0.6541304", "0.65367085", "0.64751536", "0.6463883", "0.6462018", "0.6410092", "0.6404334", "0.6381035", "0.63807297", "0.635049...
0.8292208
0
return a new image by inverting the brightness of the pixels in the source image.
def CX33(YKHO): return OFAI()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CX33(YKHO):\n d7Eb = YKHO.tonumpy()\n nPrm = 255 - oyIN.array(d7Eb)\n YKHO._update(e4GL(nPrm))\n YKHO.pipeline = BfDw.OperationNode('invert', parents=[YKHO], c='#f28482')\n return YKHO", "def tsq2(LNo8):\n return uiJH(LNo8, lambda Z9rn: 255 - Z9rn)", "def tsq2(LNo8):\n return uiJH(LNo8...
[ "0.7126689", "0.70235145", "0.7017231", "0.699468", "0.6987229", "0.6948921", "0.69001806", "0.687845", "0.68447006", "0.68280804", "0.67948645", "0.67672527", "0.67661613", "0.6625176", "0.66155654", "0.66134983", "0.6582148", "0.6537868", "0.65139294", "0.6503837", "0.64923...
0.6485027
22
Return a new image by inverting the brightness of the pixels in the source image. Cannot be used on inbuilt images.
def LGJQ(YKHO, BWXx): return OFAI()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ma8A(YKHO, VXjJ):\n return Y4jz.invert(VXjJ)", "def tsq2(LNo8):\n return uiJH(LNo8, lambda Z9rn: 255 - Z9rn)", "def tsq2(LNo8):\n return uiJH(LNo8, lambda Z9rn: 255 - Z9rn)", "def I8aW(hOiy: Image.Image, ABDL: float):\n ABDL = olHd(aysR(ABDL), 1.8) + 0.1\n return eCWE.Brightness(hOiy).enha...
[ "0.7200471", "0.71582806", "0.71464354", "0.70576125", "0.70309484", "0.7015252", "0.69940937", "0.6972844", "0.69373894", "0.69355655", "0.6934146", "0.68937576", "0.680315", "0.67984736", "0.6775534", "0.6765048", "0.6737305", "0.66436756", "0.6640084", "0.66006064", "0.660...
0.0
-1
cover unseen data items never seen are dropped out Examples >>> from skmine.itemsets import SLIM >>> D = ["ABC", "AB", "BCD"] >>> s = SLIM().fit(D) >>> s.cover(["BC", "AB"]) (A, B) (B,) (A,) (C,) 0 False True False True 1 True False False False Returns pd.DataFrame
def SkWX(YKHO, lWPh) -> rLdf.DataFrame: if hasattr(lWPh, 'shape') and len(lWPh.shape) == 2: lWPh = N_E_(lWPh) Oqj0 = {G1Hx: IaTv(oyIN.where(lWPh[G1Hx])[0]) for G1Hx in lWPh.columns if G1Hx in YKHO.standard_codetable_} else: Oqj0 = QvSx(lWPh) XHPD = YKHO.transform(lWPh, singletons=Tru...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQKy(oF9E):\n if oF9E:\n SkWX = alba[0]\n for LNo8 in alba[1:]:\n if LNo8.find('cover') > -1:\n SkWX = LNo8\n return SkWX\n return ''", "def SkWX(YKHO, lWPh):\n if hasattr(lWPh, 'shape') and len(lWPh.shape) == 2:\n lWPh = N_E_(lWPh)\n Oqj0...
[ "0.5524307", "0.5447883", "0.53251725", "0.53191775", "0.5175643", "0.51049113", "0.5065202", "0.50233936", "0.49889058", "0.49845755", "0.49813688", "0.4958849", "0.49076152", "0.48693767", "0.47886902", "0.47690222", "0.47354594", "0.47016108", "0.46915814", "0.46586317", "...
0.57463163
0
Add convolutional layer. If batch norm flag is True, the convolutional layer will be followed by a batchnormalization layer
def fUcY(YKHO, SOyF=False, **B2fa): vHnr = YKHO.input_layer if not YKHO.all_layers else YKHO.all_layers[-1] YKHO.n_conv_layers += 1 mWFP = 'conv%i' % YKHO.n_conv_layers mk8e = NQE4(vHnr, name=mWFP, **B2fa) YKHO.all_layers += (mk8e,) YKHO.trainable_layers += (mk8e,) if SOyF: YKHO.n_bn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CNdY(YKHO, GhuM, oLRV, YDYE='sigmoid'):\n YKHO.layers.append(VZhH(GhuM, oLRV, YDYE))", "def H9_D(YKHO, g4y1, gt4n=16, Ot1W=3, FEri=1, YDYE='relu', zjgh=None, uNRR=True, RIw7=True, mWFP='conv'):\n if zjgh is None:\n yIp6 = lTlC(filters=gt4n, kernel_size=Ot1W, strides=FEri, padding='same', kernel_...
[ "0.7353353", "0.7192794", "0.7118284", "0.706505", "0.7061769", "0.7061769", "0.7061769", "0.7052355", "0.6977056", "0.6926439", "0.66583717", "0.66387993", "0.662956", "0.6617461", "0.6594131", "0.6569843", "0.6551046", "0.6537928", "0.65369976", "0.65130675", "0.6501826", ...
0.78417116
0
Add dense layer. If batch norm flag is True, the dense layer will be followed by a batchnormalization layer. If normalize flag is True, the dense layer will be followed by a weightnormalization layer.
def LGRK(YKHO, SOyF=False, NkkI=False, **B2fa): vHnr = YKHO.input_layer if not YKHO.all_layers else YKHO.all_layers[-1] YKHO.n_dense_layers += 1 mWFP = 'dense%i' % YKHO.n_dense_layers mk8e = d1az(vHnr, name=mWFP, normalize=NkkI, **B2fa) YKHO.all_layers += (mk8e,) YKHO.trainable_layers += (mk8e,)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def meuU(YKHO, vHnr, m1Qc, JfyU='relu', tF9S=True):\n XcU5 = YKHO._weight_variable(shape=m1Qc[0])\n Fg_i = YKHO._bias_variable(shape=m1Qc[1])\n cOV1 = ZylS.reshape(vHnr, shape=[-1, m1Qc[0][0]])\n if tF9S:\n return YKHO._batch_normalize(YKHO._nonlinearity(JfyU)(ZylS.matmul(cOV1, XcU5) + Fg_i))\n ...
[ "0.6713352", "0.6651558", "0.66100645", "0.6519085", "0.64721763", "0.6470639", "0.6434408", "0.6151816", "0.606712", "0.6043456", "0.6040942", "0.5945959", "0.5903745", "0.59025425", "0.5900537", "0.58997345", "0.5760812", "0.5742551", "0.57039064", "0.56997716", "0.56285584...
0.81354564
0
Add layer which normalizes its input to length 1.
def _BYV(YKHO, **B2fa): vHnr = YKHO.input_layer if not YKHO.all_layers else YKHO.all_layers[-1] YKHO.n_norm_layers += 1 mWFP = 'norm%i' % YKHO.n_norm_layers mk8e = nCkR(vHnr, name=mWFP, **B2fa) YKHO.all_layers += (mk8e,)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IQc0(rD8m, CJGY=None):\n return WC0m.layer_norm(rD8m, scope='LayerNorm', reuse=CJGY)", "def MOY7(vhpA):\n return nYIM.divide(nYIM.tsum(vhpA, axis=1, keepdims=True), vhpA)", "def rL2h(YKHO, WKvO):\n raise NotImplementedError", "def VZ6N(YKHO):\n YKHO.layers.append(Fd7m.deeplearning.layers.Flat...
[ "0.6446845", "0.6307548", "0.61128604", "0.60769594", "0.60607505", "0.6004695", "0.60007554", "0.5989929", "0.59720945", "0.59613526", "0.59186465", "0.58977634", "0.589512", "0.5878636", "0.58655524", "0.5842777", "0.5830537", "0.5790142", "0.57734686", "0.5722917", "0.5718...
0.6465733
0
Add ReLU activation layer.
def H0ty(YKHO, **B2fa): vHnr = YKHO.input_layer if not YKHO.all_layers else YKHO.all_layers[-1] YKHO.n_relu_layers += 1 mWFP = 'relu%i' % YKHO.n_relu_layers mk8e = QQIR(vHnr, name=mWFP, **B2fa) YKHO.all_layers += (mk8e,)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k5he(YKHO):\n YKHO.layers.append(Fd7m.deeplearning.layers.RectifiedLinearLayer())\n return", "def svN6(YKHO):\n with ZylS.variable_scope(YKHO._get_layer_str()):\n yvT9 = ZylS.nn.relu(YKHO.get_output())\n YKHO.outputs.append(yvT9)\n return YKHO", "def svN6(YKHO):\n with ZylS.variabl...
[ "0.7750338", "0.7484286", "0.7470993", "0.7206218", "0.71321124", "0.70785314", "0.7003988", "0.69477963", "0.69345", "0.69262123", "0.6890463", "0.67551976", "0.67035764", "0.66896474", "0.66248", "0.66248", "0.66248", "0.65991974", "0.65874577", "0.65542006", "0.6513732", ...
0.8142487
0
Add leaky ReLU activation layer. (with leakiness=0.01)
def OeDO(YKHO, **B2fa): vHnr = YKHO.input_layer if not YKHO.all_layers else YKHO.all_layers[-1] YKHO.n_leaky_relu_layers += 1 mWFP = 'leaky_relu%i' % YKHO.n_leaky_relu_layers mk8e = ybb1(vHnr, name=mWFP, **B2fa) YKHO.all_layers += (mk8e,)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M1cy(YKHO, aqpm=0.2):\n with ZylS.variable_scope(YKHO._get_layer_str(), reuse=ZylS.AUTO_REUSE):\n n2Q1 = 0.5 * (1 + aqpm)\n SpII = 0.5 * (1 - aqpm)\n yvT9 = n2Q1 * YKHO.get_output() + SpII * ZylS.abs(YKHO.get_output())\n YKHO.outputs.append(yvT9)\n return YKHO", "def M1cy(YKHO, ...
[ "0.7986903", "0.7960455", "0.78506476", "0.75572693", "0.75225824", "0.75138456", "0.7512854", "0.7505255", "0.7488667", "0.7472642", "0.7467941", "0.7456124", "0.7334674", "0.7334674", "0.73241055", "0.7321787", "0.7321787", "0.7321787", "0.7321787", "0.7321787", "0.7321787"...
0.8113308
0
Add reshape layer to reshape dimensions
def qEIu(YKHO, **B2fa): vHnr = YKHO.input_layer if not YKHO.all_layers else YKHO.all_layers[-1] YKHO.n_reshape_layers += 1 mWFP = 'reshape%i' % YKHO.n_reshape_layers mk8e = hekC(vHnr, name=mWFP, **B2fa) YKHO.all_layers += (mk8e,)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q3V_(nPrm):\n return nMvt.reshape(x=nPrm, shape=(nMvt.shape(nPrm)[0], 1, OKZQ))", "def mVSW(YKHO):\n with QpfX.eager_mode():\n input = oyIN.random.rand(5, 10, 4).astype(oyIN.float32)\n Aofo = fhcK.Reshape((100, 2))(input)\n assert Aofo.shape == (100, 2)", "def q3V_(YKHO, *qIxc, *...
[ "0.70351833", "0.6975724", "0.67150927", "0.6591208", "0.6498981", "0.64780396", "0.6466986", "0.6345528", "0.6342147", "0.63163483", "0.6307772", "0.6301021", "0.63003904", "0.63003904", "0.6275463", "0.6262546", "0.6254661", "0.62352073", "0.62179345", "0.6186126", "0.61766...
0.76980126
0
Get/Set name of active PD Element. Returns null string if active element is not PDElement type.
def av29(*qIxc): if len(qIxc) == 0: return SnfU(so3_(_e0h.PDElements_Get_Name())) WnaT, = qIxc if type(WnaT) is not bytes: WnaT = WnaT.encode(ZGum) so3_(_e0h.PDElements_Set_Name(WnaT))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L69z(YKHO):\n return YKHO.DSSCktElement.Name", "def W0tD(YKHO):\n return YKHO._element.tag", "def mWFP(YKHO):\n return YKHO.el.name.text", "def mWFP(YKHO):\n return YKHO.element.Name", "def mWFP(YKHO):\n dDkX = YKHO._name_elements\n return YKHO._editor.get_element_value(dDkX[0])", "...
[ "0.7409501", "0.65483177", "0.652062", "0.6411444", "0.63325703", "0.62580085", "0.6246102", "0.6160687", "0.60401815", "0.6036839", "0.59896", "0.5982369", "0.59727037", "0.5942311", "0.5941106", "0.5901976", "0.5888235", "0.5869106", "0.582988", "0.5819878", "0.58191496", ...
0.0
-1
(readonly) Advance to the next PD element in the circuit. Enabled elements only. Returns 0 when no more elements.
def PsdP(): return so3_(_e0h.PDElements_Get_Next())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next(YKHO):\n return YKHO.current + 1", "def QNle(YKHO):\n YKHO.level.go_next()\n while YKHO.level.at_end() and YKHO.level.implicit:\n YKHO.leave_compound()\n YKHO.level.go_next()", "def GO0e(YKHO):\n YKHO._current += 1", "def GO0e(YKHO):\n YKHO._current += 1", "def next(YK...
[ "0.62869066", "0.62754875", "0.62162596", "0.61856353", "0.6176962", "0.6154795", "0.6150926", "0.6091428", "0.6075546", "0.60740304", "0.6072442", "0.60393125", "0.59904355", "0.59673154", "0.59673154", "0.59516287", "0.5922176", "0.5903093", "0.58547586", "0.584873", "0.583...
0.7194645
0
Array of doubles with the maximum current across the conductors as a percentage of the Normal Ampere Rating, for each PD element. By default, only the first terminal is used for the maximum current, matching the behavior of the "export capacity" command. Pass `AllNodes=True` to force the analysis to all terminals.
def TqqL(M4RH=False): return so3_(Ak4w(_e0h.PDElements_Get_AllPctNorm, M4RH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uxqh(M4RH=False):\n return so3_(Ak4w(_e0h.PDElements_Get_AllMaxCurrents, M4RH))", "def TkvF(M4RH=False):\n return so3_(Ak4w(_e0h.PDElements_Get_AllPctEmerg, M4RH))", "def wqHM(YKHO):\n xhJN = list()\n for YRbF in range(YKHO.n_joints):\n i9Rn = 0\n for r845 in range(10):\n ...
[ "0.5814812", "0.5683763", "0.56118786", "0.55557907", "0.5406648", "0.53685015", "0.5366286", "0.53134507", "0.52795964", "0.5248934", "0.5239134", "0.515673", "0.5115646", "0.51139694", "0.5113925", "0.51108056", "0.5092587", "0.5090442", "0.5080796", "0.50796074", "0.507472...
0.57027555
1
Array of doubles with the maximum current across the conductors as a percentage of the Emergency Ampere Rating, for each PD element. By default, only the first terminal is used for the maximum current, matching the behavior of the "export capacity" command. Pass `AllNodes=True` to force the analysis to all terminals.
def TkvF(M4RH=False): return so3_(Ak4w(_e0h.PDElements_Get_AllPctEmerg, M4RH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uxqh(M4RH=False):\n return so3_(Ak4w(_e0h.PDElements_Get_AllMaxCurrents, M4RH))", "def wqHM(YKHO):\n xhJN = list()\n for YRbF in range(YKHO.n_joints):\n i9Rn = 0\n for r845 in range(10):\n if YKHO.joints_TP[r845][YRbF] == 0:\n i9Rn += 0\n else:\n ...
[ "0.5884725", "0.5685079", "0.55190074", "0.5389854", "0.53571254", "0.53325117", "0.52697664", "0.5222791", "0.5151791", "0.51484203", "0.5146624", "0.5126601", "0.51134914", "0.5092464", "0.5077508", "0.5074882", "0.5056217", "0.504528", "0.5030575", "0.5029818", "0.50230455...
0.58661884
1
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)", "def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)", "def JFat(t_yv):\n try:\n ...
[ "0.86645055", "0.8190357", "0.8175001", "0.8163073", "0.8086095", "0.80784917", "0.8077746", "0.8073863", "0.8065137", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.8059543", "0.80573195", "0.8054556", "0.8054348", "0.804...
0.80863976
4
Turn the initial string of pots into a dictionary who's index is the location of the pot.
def iTSf(QTBn: str): ahhF = {-3: '.', -2: '.', -1: '.'} for d6pt, sZqf in enumerate(QTBn): ahhF[d6pt] = sZqf XGmV = max(ahhF) + 1 for lN_6 in range(XGmV, XGmV + 11): ahhF[lN_6] = '.' return ahhF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rsRv(JZXy, oeNL):\n a1PO = JZXy.split()\n return {WKvO[:1 if YRbF + 1 in oeNL else 2]: YRbF + 1 for YRbF, WKvO in list(enumerate(a1PO))}", "def E0Pw(KCHu):\n KCHu = KCHu.lower()\n BcCR = min(len(KCHu), u54L)\n d4cl = oyIN.zeros(u54L, dtype='int64')\n for YRbF in range(1, BcCR + 1):\n ...
[ "0.6003526", "0.58494544", "0.584894", "0.56944644", "0.5693205", "0.566875", "0.559806", "0.5582371", "0.55508715", "0.5537073", "0.5514349", "0.55013275", "0.5481916", "0.54546285", "0.54429996", "0.5442892", "0.5430625", "0.5415411", "0.5400638", "0.5383224", "0.53816926",...
0.56727767
5
Return a dictionary, initialized using two lists
def rXLW(EXD7, xzK9): PiPd = dict() PiPd.fromkeys(EXD7) assert len(EXD7) == len(xzK9) for YRbF in range(len(EXD7)): PiPd[EXD7[YRbF]] = xzK9[YRbF] return PiPd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def naEX(AtYR, trrW):\n Op6c = {}\n pZWG = {}\n for YRbF in range(len(AtYR)):\n Op6c[AtYR[YRbF]] = trrW[YRbF]\n pZWG[trrW[YRbF]] = AtYR[YRbF]\n return (Op6c, pZWG)", "def TZaC(Kt9y, I_KI):\n rqc3 = zip(Kt9y, I_KI)\n _WSh = dict(rqc3)\n return _WSh", "def TZaC(Kt9y, I_KI):\n ...
[ "0.7479897", "0.74277395", "0.736863", "0.7340743", "0.7258812", "0.7242732", "0.7088013", "0.7066612", "0.6887184", "0.6820156", "0.68124914", "0.6655291", "0.6649115", "0.66393113", "0.65521145", "0.6357256", "0.63421386", "0.6326644", "0.63149273", "0.63021183", "0.6299869...
0.6817319
10
Gaussian helper function for lmfit
def ufxv(WKvO, JBMS, WTkW, caa_, vgXP): LVAh = IAWS(WKvO, JBMS, WTkW, caa_, vgXP) return LVAh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y4xs(NArs, WKvO, or8S=0):\n if type(NArs) == oyIN.ndarray:\n hgl7 = NArs[0]\n WTkW = NArs[1]\n else:\n hgl7 = NArs['c{}'.format(or8S)].value\n WTkW = NArs['s{}'.format(or8S)].value\n return 1 / oyIN.sqrt(2 * oyIN.pi * WTkW ** 2) * oyIN.exp(-(WKvO - hgl7) ** 2 / (2 * WTkW **...
[ "0.8034235", "0.7759179", "0.7636525", "0.75755817", "0.75636363", "0.754207", "0.7505218", "0.75008476", "0.748432", "0.7484246", "0.7464569", "0.7386178", "0.7340526", "0.7331965", "0.731002", "0.73012483", "0.7299478", "0.7283977", "0.72706026", "0.7266521", "0.72280836", ...
0.7116157
32
Gaussian helper function for lmfit
def ufxv(WKvO, JBMS, WTkW, caa_): LVAh = IAWS(WKvO, JBMS, WTkW, caa_) return LVAh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y4xs(NArs, WKvO, or8S=0):\n if type(NArs) == oyIN.ndarray:\n hgl7 = NArs[0]\n WTkW = NArs[1]\n else:\n hgl7 = NArs['c{}'.format(or8S)].value\n WTkW = NArs['s{}'.format(or8S)].value\n return 1 / oyIN.sqrt(2 * oyIN.pi * WTkW ** 2) * oyIN.exp(-(WKvO - hgl7) ** 2 / (2 * WTkW **...
[ "0.8034235", "0.7759179", "0.7636525", "0.75755817", "0.75636363", "0.754207", "0.7505218", "0.75008476", "0.748432", "0.7484246", "0.7464569", "0.7386178", "0.7340526", "0.7331965", "0.731002", "0.73012483", "0.7299478", "0.7283977", "0.7266521", "0.72280836", "0.72053105", ...
0.72706026
18
Returning dictionary representation of instance attributes
def oD7C(YKHO, o8Kj=None): if type(o8Kj) is list or type(o8Kj) is tuple: zDmb = {} for hkS8 in YKHO.__dict__: if hkS8 in o8Kj: zDmb[hkS8] = YKHO.__dict__[hkS8] return zDmb return dict(YKHO.__dict__)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azoT(Emd4):\n return dict(Emd4._attributes)", "def o8Kj(YKHO):\n return dict(YKHO.__dict__)", "def h6gc(YKHO):\n qXTy = {}\n qXTy['name'] = YKHO.name\n return qXTy", "def MNRr(YKHO):\n return {hkS8: getattr(YKHO, hkS8) for hkS8 in YKHO.ATTRIBUTES if hasattr(YKHO, hkS8)}", "def o8Kj(YK...
[ "0.8327544", "0.82133925", "0.8018472", "0.7985992", "0.78233635", "0.7762367", "0.7756888", "0.7748476", "0.77445674", "0.7740083", "0.77293295", "0.77189666", "0.76734376", "0.76720554", "0.7661873", "0.7653349", "0.7651156", "0.7651156", "0.76452917", "0.7638837", "0.76307...
0.0
-1
Getter for name, (for logging)
def W0tD(YKHO): return YKHO.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F0up(YKHO):\n return YKHO._name", "def wGWt(YKHO):\n return YKHO.__name", "def wGWt(YKHO):\n return YKHO.__name", "def wGWt(YKHO):\n return YKHO.__name", "def wGWt(YKHO):\n return YKHO.__name", "def wGWt(YKHO):\n return YKHO.__name", "def wGWt(YKHO):\n return YKHO.__name", "d...
[ "0.87302357", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", "0.8457604", ...
0.0
-1
Called if all forms are valid. Creates a Avances instance along with associated Noticias and then redirects to a success page.
def lwXz(YKHO, L03z, **B2fa): L03z.instance.status = 'Borrador' YKHO.object = L03z.save() q8Im = YKHO.object.id vC92 = 'guadarramaangel@gmail.com' iqsC = YKHO.horario muZM = YKHO.object.titulo_mensaje bgFN = YKHO.object.cuerpo_mensaje n6_N = YKHO.object.listas.all() I9Za = [] for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def epsH(YKHO, ig2i):\n for yLdD, L03z in ig2i.items():\n HBgS = YKHO.get_success_url(form_name=yLdD)\n return vKnz(HBgS)", "def lwXz(YKHO, L03z):\n YKHO.object = L03z.save()\n for DDLl in kqIa():\n DDLl.add(YKHO.object)\n yEHD.success(YKHO.request, bGrB(u\"{0} '{1}' saved.\").fo...
[ "0.63932496", "0.62883824", "0.62110037", "0.6207288", "0.61917627", "0.6081314", "0.6015302", "0.5972554", "0.5967996", "0.5967996", "0.5967996", "0.59398633", "0.59251714", "0.59120405", "0.5908608", "0.5900075", "0.5865725", "0.58569133", "0.58290964", "0.5824736", "0.5808...
0.0
-1
Called if a form is invalid. Rerenders the context data with the datafilled forms and errors.
def ee9W(YKHO, L03z, dBAz): return YKHO.render_to_response(YKHO.get_context_data(form=L03z))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee9W(YKHO, QePW, L03z, wL1m, mYto):\n return _1tc(QePW, YKHO.template_name, YKHO.get_context_data(form=L03z, status_form=wL1m, files_form=mYto))", "def ee9W(YKHO, L03z):\n return YKHO.render_to_response(YKHO.get_context_data())", "def ee9W(YKHO, L03z, **B2fa):\n QpfX = YKHO.get_context_data(**B2fa...
[ "0.8202664", "0.79836166", "0.7913726", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7870576", "0.7840268", "0.7816142", "0.7789248", "0.77881104", "0.7781492", "0.7736866", "0.770091", "0.7684558", "0.76332664", "0.75929683", ...
0.77720207
16
Define a Gaussian kernel
def VU7a(aOex, WTkW): eeYG = MOYU = (aOex - 1) / 2 WKvO, LVAh = oyIN.mgrid[-eeYG:eeYG + 1, -MOYU:MOYU + 1] yvY1 = oyIN.exp(-0.5 * (WKvO ** 2 + LVAh ** 2) / WTkW ** 2) return yvY1 / yvY1.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(WKvO, LVAh, WTkW=5.0):\n return oyIN.exp(-aJJu.norm(WKvO - LVAh) ** 2 / (2 * WTkW ** 2))", "def VU7a(Emd4, WKvO, epBp, WTkW):\n retu...
[ "0.82592034", "0.8047334", "0.78190887", "0.771654", "0.76431555", "0.75935286", "0.7547109", "0.75386065", "0.75297594", "0.75181913", "0.7506612", "0.74949574", "0.7370971", "0.7362601", "0.73595655", "0.7359308", "0.73562634", "0.7341218", "0.73277223", "0.7302034", "0.729...
0.6860382
74
Downsampling an image by a factor of 2
def R_qy(WKvO, aOex=5, WTkW=1.4): Xn71 = gvf8(WKvO, VU7a(aOex, WTkW), boundary='symm', mode='same') yzQ0, MKlR = (Xn71.shape[1], Xn71.shape[0]) g86m, HgQS = (int(yzQ0 / 2), int(MKlR / 2)) oD5i = oyIN.empty((HgQS, g86m)) for YRbF in range(HgQS): for r845 in range(g86m): oD5i[YRbF,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def myXy(VXjJ, aM8h):\n oTDq = VXjJ[::aM8h, ::aM8h].copy()\n return oTDq", "def UfYa(Xn71: np.array, A3Vt: int) -> oyIN.array:\n BJd9 = XC5k.resize(Xn71, (int(Xn71.shape[1] / A3Vt), int(Xn71.shape[0] / A3Vt)), interpolation=XC5k.INTER_CUBIC)\n return BJd9", "def myXy(VXjJ, aOex=(5, 5), WTkW=1.4):\n...
[ "0.76724905", "0.74597704", "0.7459214", "0.7365577", "0.7277488", "0.7095783", "0.708129", "0.6947723", "0.69341266", "0.68647027", "0.6861787", "0.6818433", "0.6801494", "0.67458266", "0.6682828", "0.66659474", "0.66492724", "0.65918547", "0.65905386", "0.65164596", "0.6505...
0.6881603
9
Utility function to normalize the intensities of the pixels in the image
def Ekx3(VXjJ): VXjJ = VXjJ - VXjJ.min() VXjJ = VXjJ / VXjJ.max() * 255 VXjJ = oyIN.uint8(VXjJ) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(LNo8):\n return [WKvO / VvR1 for WKvO in LNo8]", "def NkkI(VXjJ):\n return VXjJ.astype(float) / 255.0", "def NkkI(VXjJ):\n return VXjJ.astype(float) / 255.0", "def Ekx3(WKvO):\n if oyIN.ndim(WKvO) == 3:\n YDR7 = oyIN.shape(WKvO)[0]\n elif oyIN.ndim(WKvO) == 4:\n YDR7 = o...
[ "0.7962511", "0.79169434", "0.79169434", "0.7807213", "0.7781143", "0.76988757", "0.7688978", "0.7655587", "0.765149", "0.7644782", "0.76176393", "0.7600112", "0.7587513", "0.7582943", "0.7582943", "0.7570976", "0.75690424", "0.7531319", "0.75231695", "0.75223476", "0.7518582...
0.74618536
25
Returns a string with the current datetime stamp
def lByS() -> str: U1_3 = str(qcWV.now()).split('.')[0] for YRbF in ['-', ':', ' ']: U1_3 = U1_3.replace(YRbF, '_') print('{}.txt'.format(U1_3)) return '{}.txt'.format(U1_3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iBai():\n return f'{p37n()} - {ZYlg()}'", "def f1rh(YKHO):\n return qcWV.now().strftime(AozU())", "def otuc(YKHO):\n wzkt = qcWV.datetime.now()\n return wzkt.strftime(YKHO.date_format)", "def iBai():\n return str(ITS7.strftime('%a %d %b %Y %I:%M:%S %p'))", "def AT3T():\n return qcWV.u...
[ "0.87071675", "0.86246395", "0.8589744", "0.85591644", "0.8514553", "0.8472139", "0.84474653", "0.8380112", "0.8337121", "0.833171", "0.83280104", "0.83247125", "0.8299368", "0.82873744", "0.8287172", "0.82584476", "0.8216752", "0.821577", "0.82056886", "0.82037735", "0.81962...
0.0
-1
Get a list of the most recent trades for the given symbol.
def WZsM(YKHO, **NArs): o61b = NArs.pop('symbol') w2IS = 'trades/' + o61b return YKHO.request(w2IS, auth=False, params=NArs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZsM(YKHO, o61b):\n return YKHO.market.get_trades(o61b)", "def Gv_l(YKHO, GT8I, o61b):\n return YKHO._post(YKHO.url_for(d80z), params={'market': GT8I, 'pair': o61b})", "def ooeb(YKHO, o61b, Kt_s=15):\n RA_F = JRYC.datetime.now() - JRYC.timedelta(minutes=15)\n sQg9 = []\n for IYUG in YKHO.tra...
[ "0.76424086", "0.7502823", "0.7469385", "0.7249072", "0.70478934", "0.68236303", "0.67905056", "0.6746547", "0.6696916", "0.66820407", "0.66522497", "0.66408366", "0.65532476", "0.65513474", "0.6518068", "0.6518068", "0.6518068", "0.6509565", "0.6505864", "0.64714974", "0.645...
0.5892637
68
View your active orders.
def YvWe(YKHO, **NArs): w2IS = 'orders' return YKHO.request(w2IS, method='POST', payload_params=NArs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vnOf():\n print('Work is in progress')\n hBmo.customer_action()", "def Ldtt(YKHO):\n return YKHO._query('/orders/open', auth=True)", "def b4IK():\n CBIr = aRY6(QePW)\n if not CBIr.is_laundryman():\n return GtGV({'message': 'Unauthorized'}, qed_.UNAUTHORIZED)\n T4Wy = N6Ql(status=N6...
[ "0.75639814", "0.70463294", "0.6878772", "0.6775018", "0.67352647", "0.6711085", "0.6690003", "0.65903324", "0.6492178", "0.64754754", "0.63981235", "0.63846797", "0.6334884", "0.63059235", "0.62915015", "0.6262797", "0.62545943", "0.6253396", "0.62473696", "0.6245851", "0.62...
0.7272532
1
Returns the view for the main login page
def SiZE(QePW, rPXJ='account/login.html'): mlZd = {'selectlogin': True, 'userlogin': True} return _1tc(QePW, rPXJ, mlZd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WrfV():\n return TvZl('login.html')", "def QyXo():\n return TvZl('login.html')", "def RMV5():\n return TvZl('login.html')", "def RMV5():\n return TvZl('login.html')", "def RMV5():\n return TvZl('login.html')", "def RMV5():\n return TvZl('login.html')", "def NMoC(YKHO):\n YKHO.r...
[ "0.8044358", "0.80101603", "0.79279035", "0.7894808", "0.7894808", "0.7894808", "0.78753257", "0.78012", "0.77981436", "0.77267575", "0.76972866", "0.76600575", "0.76600575", "0.7657331", "0.7640661", "0.7640661", "0.76324075", "0.76207685", "0.7618399", "0.7614478", "0.76098...
0.7377675
40
Log out the user given by the request by calling auth_views.logout. It redirects the user to the /account/login/ URL.
def lViG(QePW, rPXJ='account/logout.html'): rEm4.logout(QePW) yEHD.success(QePW, 'You have been successfully logged out.') return vKnz('/account/login/')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kmwo(QePW):\n erK4(QePW)\n return vKnz('/')", "def erK4(QePW):\n oLi7(QePW)\n return SGJU('auth/logout.html', {}, K1Ja(QePW))\n Br5Q = QePW.META.get('HTTP_REFERER', '/')\n bD7m = '{0}?next={1}'.format(gxEw('auth_login'), Br5Q)\n return Yd7Q(bD7m)", "def oLi7(QePW):\n erK4(QePW)\n ...
[ "0.803185", "0.7877344", "0.7842508", "0.78078836", "0.77777547", "0.7751195", "0.773722", "0.7696173", "0.76568156", "0.76356", "0.7614122", "0.75957084", "0.75887185", "0.75792086", "0.75777876", "0.75703883", "0.7559812", "0.75530744", "0.75518775", "0.7550472", "0.7531291...
0.76550925
9
Handles the view for editing the user profile
def Mrmc(QePW, rPXJ='account/edit.html'): if QePW.method == 'POST': if 'cancel' in QePW.POST: return vKnz('/account/profile/') if 'delete-img' in QePW.POST: otWV = MMeA(instance=QePW.user.profile, data=QePW.POST, files=QePW.FILES) z39Z = otWV.save(commit=False) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _KOf():\n if not CBIr.logged_in:\n return vKnz(nKyW('index'))\n else:\n return TvZl('profile/edit_profile.html', user=CBIr)", "def B97N(QePW):\n if QePW.method == 'POST':\n L03z = L50a(QePW.POST, instance=QePW.user)\n if L03z.is_valid():\n L03z.save()\n ...
[ "0.8151668", "0.8022137", "0.7976934", "0.7886626", "0.786655", "0.78391516", "0.7769292", "0.7716789", "0.76889837", "0.7682053", "0.7678318", "0.76734436", "0.765388", "0.7648278", "0.763833", "0.76168513", "0.7614597", "0.7598986", "0.7596952", "0.7590919", "0.7571006", ...
0.7562666
21
adds email to person
def D3lj(YKHO, D3lj): YKHO._email = D3lj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NVmH(YKHO, D3lj):\n YKHO.emails.append(D3lj)", "def NVmH(YKHO, D3lj):\n YKHO.emails.append(D3lj)", "def nRki(YKHO, a70H):\n YKHO._open_inline_edit()\n D3lj = a70H.email\n YKHO._root.text_field(placeholder='Add person').set(D3lj)\n tCqz = YKHO._root.element(class_name='ui-menu-item', text=...
[ "0.714939", "0.714939", "0.711904", "0.677673", "0.67745405", "0.6746341", "0.67104375", "0.66378623", "0.66142523", "0.6602353", "0.65796703", "0.65104043", "0.6497179", "0.6494296", "0.64592874", "0.64489293", "0.6445845", "0.643652", "0.6419482", "0.6419482", "0.6419482", ...
0.6602713
9
Returns a list of VISnapshot instances of this VM
def i0ID(YKHO): YKHO.refresh_snapshot_list() return YKHO._snapshot_list[:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bUWH(YKHO):\n dByU = YKHO.connection.get_all_instances()\n bUWH = list()\n for Mkmy in dByU:\n for YRbF in Mkmy.instances:\n YRbF.formatted = YKHO._formatInstance(YRbF)\n bUWH.append(YRbF)\n return bUWH", "def y5NJ(YKHO):\n raise NotImplementedError()", "def Yb3x...
[ "0.7113515", "0.7104534", "0.70793295", "0.70658714", "0.70404565", "0.70052195", "0.6975291", "0.69605094", "0.69534063", "0.6925807", "0.69166714", "0.68767256", "0.68489826", "0.67576563", "0.6747325", "0.6744636", "0.67333746", "0.6731478", "0.6724454", "0.6719677", "0.67...
0.67724466
13
Returns the name of the current snapshot (if any).
def Fass(YKHO): YKHO.__update_properties() if not YKHO.__current_snapshot: return None for vZa6 in YKHO._snapshot_list: if str(YKHO.__current_snapshot) == str(vZa6._mor): return vZa6._name return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzcX(YKHO) -> str:\n return qe4Y.get(YKHO, 'snapshot_name')", "def Q0HP(YKHO):\n return 'Snapshot at %(time)s' % {'time': ITS7.strftime('%H:%M:%S', YKHO._time)}", "def mWFP(YKHO):\n return YKHO._snapshot.get('name')", "def EsMw(YKHO):\n return YKHO._parent_snapshot_name", "def IzcX(NCls, sE...
[ "0.88657874", "0.76460713", "0.76146907", "0.75107455", "0.74935067", "0.7203228", "0.71589005", "0.715793", "0.7153904", "0.7153904", "0.7153904", "0.7153904", "0.7153904", "0.7095101", "0.7095101", "0.7095101", "0.7039731", "0.7030319", "0.70175886", "0.69578624", "0.689870...
0.8907341
0
Returns the matching score of a search string against another one. If case matters, the apply_same_case_bonus argument can be set to ``True`` to apply a bonus on a matching characters that have the same case. You usually do not want this though since it might feel quite unnatural to the enduser.
def c94V(TgwQ, syyp, psfe=False): return l8sG.fuzzy_score(TgwQ, syyp, psfe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fMjc(lz9e, EI9L, o9ng, Dn_O):\n if lz9e == EI9L:\n return o9ng\n else:\n return Dn_O", "def qY5y(j93S, Nqp_, ESJm, vYai=False):\n n2S_ = j93S.split()\n Rzdv = Nqp_.split()\n if len(n2S_) > len(Rzdv):\n n2S_ = Nqp_.split()\n Rzdv = j93S.split()\n UHFx = 0\n G17...
[ "0.6563723", "0.6448971", "0.6415193", "0.63481164", "0.63401246", "0.6261723", "0.62595475", "0.62205344", "0.6194877", "0.61865467", "0.6106655", "0.61058915", "0.61058915", "0.60854316", "0.60800993", "0.6010317", "0.5985469", "0.5976969", "0.59036446", "0.590105", "0.5868...
0.7131218
0
Splits and unquotes (the Windows way) the given command line (string).
def NgHW(twdW): return l8sG.cmdline_split(twdW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aLzX(YKHO, hpqK):\n AdfU = URgV.split(xDSY.StringIO(QMSQ(hpqK)), posix=False)\n return (AdfU[0].strip('\"'), AdfU[1:])", "def AWhu(hpqK):\n FiiE = []\n d7pR = ''\n zKnX = 0\n n93h = 0\n iuo3 = 0\n for Z9rn in hpqK:\n if Z9rn == '\\\\':\n iuo3 = 1\n elif Z9rn =...
[ "0.7668121", "0.7642737", "0.7456689", "0.71675086", "0.71055335", "0.68864834", "0.67585665", "0.6664695", "0.6658374", "0.65876687", "0.65254676", "0.6506927", "0.6397195", "0.6340001", "0.62831175", "0.62664855", "0.6153133", "0.60942024", "0.60741705", "0.60591376", "0.60...
0.66317517
9
Tries to resolve path_or_name using environment ``PATH`` and ``PATHEXT`` variables. path_or_name can be a path or just the name of the executable to find, in which case ``PATHEXT`` will be used to find a match in the directories listed in the ``PATH`` value. Returns ``None`` if executable could not be found or if an er...
def SZHR(yfmQ): return l8sG.shell_resolve_exe_path(yfmQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lr1t(mdek, pmON=None):\n if pmON is None:\n pmON = Hy7s.environ['PATH']\n ckRy = pmON.split(Hy7s.pathsep)\n lrZh = ['']\n if Hy7s.name == 'os2':\n P8oC, YBcr = Hy7s.path.splitext(mdek)\n if not YBcr:\n mdek = mdek + '.exe'\n elif HwRy.platform == 'win32':\n ...
[ "0.71133703", "0.70562816", "0.6985597", "0.69430345", "0.6937291", "0.6921655", "0.6824236", "0.67498994", "0.67463773", "0.67389596", "0.672914", "0.6643006", "0.6642356", "0.656541", "0.65498275", "0.65458035", "0.6535981", "0.6469855", "0.6447581", "0.6372767", "0.6344857...
0.7205651
0
Generates data loader from movielens dataset. The method downloads and prepares dataset, then generates for train/eval.
def KVtG(Emd4, h_xa, p2Nx, XNCD: recommendation_config.InputSpec, DVMK=None, JKXB=3, KQ9B=10, FUhW=10, hZyM=None, JmlH=0.9, xUyt=True, Xsix='train_movielens_1m.tfrecord', tYcn='test_movielens_1m.tfrecord', NCh4='movie_vocab.json', cPlR='meta.json'): if p2Nx not in ('train', 'test'): raise ValueError('Expect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P39p(YKHO):\n EPL3 = C4hb.data.Kinetics(data_path=Hy7s.path.join(YKHO._DATA_PATH, 'train'), clip_sampler=C4hb.data.make_clip_sampler('random', YKHO._CLIP_DURATION), decode_audio=False, transform=K3I5())\n P39p = ht2j.utils.data.DataLoader(EPL3, batch_size=YKHO._BATCH_SIZE, num_workers=YKHO._NUM_WORKERS)\...
[ "0.7511237", "0.7410948", "0.72171664", "0.72151875", "0.7194341", "0.7126434", "0.71002424", "0.709663", "0.70329434", "0.70161307", "0.697203", "0.6966161", "0.6958661", "0.6942911", "0.6936971", "0.6933208", "0.69271636", "0.69180226", "0.6912836", "0.6896438", "0.68841153...
0.0
-1
Multiply the 'self' vector by a number 'other'.
def E_tF(YKHO, Elif): return fnvC(YKHO.x * Elif, YKHO.y * Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_tF(YKHO, Elif: Vector) -> int:\n return YKHO[0] * Elif[0] + YKHO[1] * Elif[1] + YKHO[2] * Elif[2]", "def E_tF(YKHO, Elif):\n if isinstance(Elif, lNLu):\n return YKHO[0] * Elif[0] + YKHO[1] * Elif[1] + YKHO[2] * Elif[2]\n return lNLu(*(Elif * ZfUD for ZfUD in YKHO))", "def E_tF(YKHO, Elif)...
[ "0.81672955", "0.774522", "0.7711583", "0.76823854", "0.76728237", "0.7662106", "0.7628703", "0.7613194", "0.76041913", "0.7584514", "0.7561868", "0.75540435", "0.7549431", "0.7536997", "0.7519048", "0.74918985", "0.74321115", "0.7431895", "0.7429663", "0.741815", "0.7391994"...
0.73622507
21
Division of the 'self' vector by the number 'other'.
def HVh8(YKHO, Elif): return fnvC(YKHO.x / Elif, YKHO.y / Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)", "def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)", "def M9fH(YKHO, Elif):\n if isinstance(Elif, iArr):\n if not len(YKHO) == len(Elif):\n raise OjpR\n vC9B = []\n for exwG in range(len(YKHO)):\n vC...
[ "0.78606", "0.78606", "0.7761729", "0.7725767", "0.7713217", "0.7696393", "0.759714", "0.7574332", "0.7497446", "0.7468362", "0.73194015", "0.73137933", "0.7271631", "0.7262439", "0.72572994", "0.72418654", "0.7237638", "0.72064084", "0.7198651", "0.7196436", "0.7195473", "...
0.7199983
18
Return the length of the vector.
def PKV0(YKHO): return abs(complex(YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def len(YKHO):\n WKvO = YKHO.vector\n return epAf.sqrt(WKvO[0] * WKvO[0] + WKvO[1] * WKvO[1])", "def fMD5(YKHO):\n return xnhW.itkVectorImageUL2_GetVectorLength(YKHO)", "def c_JT(YKHO):\n return YKHO.length", "def fMD5(YKHO):\n return xnhW.itkVectorImageUS2_GetVectorLength(YKHO)", "def fMD5(...
[ "0.8515618", "0.83682567", "0.8301935", "0.8237966", "0.8228827", "0.816923", "0.81528854", "0.8126544", "0.8119104", "0.80677456", "0.80434245", "0.8042327", "0.8020372", "0.8010494", "0.7985728", "0.79694563", "0.79386884", "0.7894176", "0.78883034", "0.78395534", "0.782970...
0.0
-1
Create new Annotation instance
def FIMM(YKHO, H5ew: tuple, vNnt: list): YKHO.key = H5ew YKHO.neurons = vNnt YKHO.neuron_dims = [tuple(exwG.shape) for exwG in vNnt] YKHO.clicks = oRi_(list) YKHO.type = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, **B2fa) -> jetH:\n return YKHO.constructor(**B2fa)", "def Nmru(YKHO, XgyP):\n Emd4 = type(YKHO)\n return Emd4(YKHO[0], YKHO[1], YKHO[2], YKHO[3], XgyP, YKHO[5])", "def eLpg(QePW):\n uPxI = _aaJ(QePW)\n aPjC = uPxI.validate(dOxV(QePW))\n ICn2 = QePW.find_service(Nh3c).create_ann...
[ "0.6693994", "0.64128023", "0.64016265", "0.6325855", "0.6291071", "0.62659883", "0.61868495", "0.6096044", "0.6080911", "0.6057743", "0.59778774", "0.5974272", "0.59687746", "0.59582853", "0.5956476", "0.5921033", "0.59103274", "0.5886236", "0.58797854", "0.58687407", "0.584...
0.0
-1
Compute the great circle offsets between two points. Transform to pixel offsets if a pix_scale is given.
def oguT(gwqK: SkyCoord, yCTS: SkyCoord, IWeq: u=None): gQVb = gwqK.spherical_offsets_to(yCTS) if IWeq is None: return IWeq gQVb = (-(gQVb[0].to(P6bq.arcsecond) / IWeq.to(P6bq.arcsecond)), gQVb[1].to(P6bq.arcsecond) / IWeq.to(P6bq.arcsecond)) return gQVb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MqI3(c7pe, eMyk, mrIa, auSd, kj9G=False):\n Aofo = Zxt2.full(mrIa, Zxt2.nan, dtype=[('x_off', Zxt2.float64), ('y_off', Zxt2.float64), ('norm', Zxt2.float64), ('zero_point', Zxt2.float64)])\n rKLW = Zxt2.full(mrIa, False, dtype=bool)\n rO_E = Zxt2.spatial.cKDTree(Zxt2.c_[c7pe['x'], c7pe['y']])\n ZwL...
[ "0.6087619", "0.6044179", "0.60428596", "0.56919056", "0.56919056", "0.5609593", "0.5604931", "0.55801195", "0.55683255", "0.5556309", "0.5545105", "0.55347973", "0.55115634", "0.549371", "0.5461452", "0.54341435", "0.5409884", "0.54023963", "0.5372854", "0.53526276", "0.5348...
0.8369243
0
If the switch is currently on or off.
def Debg(YKHO): return YKHO._is_on
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO):\n return YKHO._switch", "def Debg(YKHO) -> bool:\n return YKHO.get_str_attr('switch') == 'on'", "def Debg(YKHO):\n return YKHO._device.switch_state", "def Debg(YKHO) -> bool:\n return YKHO._device.status.switch", "def Debg(YKHO) -> bool:\n return YKHO.get_str_attr(jjvs) == 'o...
[ "0.8622614", "0.8613022", "0.84652126", "0.84003735", "0.82908374", "0.82907444", "0.81824076", "0.8158265", "0.814302", "0.80246764", "0.8017051", "0.7972047", "0.7916716", "0.79151005", "0.77629644", "0.7754428", "0.7677055", "0.766804", "0.766804", "0.7666531", "0.7665185"...
0.0
-1
Return the state attributes of the device.
def R1i3(YKHO): o8Kj = {} if YKHO.result: YKHO._current_watt = float(YKHO.result['value_watt']) YKHO._month_watt = float(YKHO.result['value_watth']) YKHO._connection = YKHO.result['conn_status'] o8Kj[CXJM] = '{:,.2f}'.format(YKHO._current_watt) o8Kj[VKK2] = '{}'.format(Bj03) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3...
[ "0.92501426", "0.92424875", "0.92059964", "0.92059964", "0.92059964", "0.91724473", "0.915227", "0.915227", "0.915227", "0.915227", "0.915227", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", ...
0.0
-1
Return the unit the value is expressed in.
def b82i(YKHO): return YKHO.var_units
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82...
[ "0.84137076", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.82590276", "0.8214496", "0.8192878", "0.8180198", "0.81793565", "0.8151953", "0.8094752", "0.8094752", "0.8061112", "0.80569327",...
0.78460014
66
Return information about the device.
def GWuV(YKHO): return {'name': YKHO._device, 'manufacturer': 'DAWONDNS', 'model': YKHO._device_model, 'sw_version': '0.0.2'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GWuV(YKHO):\n return YKHO._api.device_info", "def GWuV(YKHO):\n return YKHO._device.device_info", "def GWuV(YKHO):\n return YKHO._device.device_info()", "def GWuV(YKHO):\n return YKHO._device.device_info()", "def GWuV(YKHO):\n return YKHO._device_info", "def GWuV(YKHO):\n return YKH...
[ "0.8571633", "0.8564862", "0.853171", "0.853171", "0.83501416", "0.83501416", "0.83501416", "0.83501416", "0.83501416", "0.8320688", "0.8291291", "0.82804507", "0.8240793", "0.82283336", "0.8210656", "0.81934214", "0.8191795", "0.8167364", "0.8163408", "0.81544816", "0.814302...
0.81233084
22
Return the device state attributes.
def R1i3(YKHO): return {'model': YKHO._device_model, 'id': YKHO._device_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3...
[ "0.9288312", "0.92827606", "0.92461693", "0.92461693", "0.92461693", "0.9220751", "0.9220751", "0.9220751", "0.9215518", "0.9215518", "0.9215518", "0.9215518", "0.92101526", "0.92101526", "0.92101526", "0.92101526", "0.92101526", "0.92046595", "0.92007667", "0.92007667", "0.9...
0.8605855
56
Get the default environment information.
def I0_M(): def Ucb9(l5Ny): return '{{%s}}' % l5Ny sEAN = dict(typhos=vqtZ.__version__, user=AOO4.getuser(), hostname=g7Pg(GGmw.getfqdn), python_env=Ucb9(HwRy.base_prefix), python_path='\n '.join((Ucb9(pmON) for pmON in HwRy.path)), **Dmtc) return '\n'.join((f'* *{H5ew}*: {BWXx}' for H5ew, BWXx in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQMU(YKHO):\n return None", "def WDib(YKHO):\n if wUxt.DefaultKey in YKHO.__virtualEnvironments:\n return (wUxt.DefaultKey, jth9.copy(YKHO.__virtualEnvironments[wUxt.DefaultKey]))\n else:\n YHau = HwRy.executable.replace('w.exe', '.exe')\n for EfsF in YKHO.__virtualEnvironments:...
[ "0.81034213", "0.7730261", "0.73382485", "0.73342246", "0.73326457", "0.730222", "0.7180022", "0.7133933", "0.7113573", "0.70815545", "0.70753455", "0.70311755", "0.7020951", "0.7015674", "0.6984165", "0.6984165", "0.6984165", "0.6973949", "0.6963955", "0.6962727", "0.6941313...
0.7084202
9
Parses a single tf.Example into image and label tensors.
def wvEv(YKHO, lGjS): bySB = ZylS.parse_single_example(lGjS, features={'image': ZylS.FixedLenFeature([], ZylS.string), 'label': ZylS.FixedLenFeature([], ZylS.int64), 'height': ZylS.FixedLenFeature([], ZylS.int64), 'width': ZylS.FixedLenFeature([], ZylS.int64)}) LNo8 = ZylS.decode_raw(bySB['image'], ZylS.uint8) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m6aZ(lGjS):\n bySB = {'img': ZylS.io.FixedLenFeature([], ZylS.string), 'height': ZylS.io.FixedLenFeature([], ZylS.int64), 'width': ZylS.io.FixedLenFeature([], ZylS.int64), 'depth': ZylS.io.FixedLenFeature([], ZylS.int64), 'label': ZylS.io.FixedLenFeature([], ZylS.string)}\n TlBS = ZylS.io.parse_single_ex...
[ "0.852457", "0.84096956", "0.8257769", "0.8219901", "0.8038398", "0.79636776", "0.7843783", "0.78039736", "0.77566904", "0.7680211", "0.7657514", "0.76265574", "0.76150835", "0.7596309", "0.7581701", "0.7571179", "0.7541142", "0.75348026", "0.75238085", "0.74700123", "0.74666...
0.827123
2
Converts a passphrase to a hash.
def mW1t(G32E): return HBct.sha256(G32E).digest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a2tF(jTXt):\n return ogP4.django_pbkdf2_sha256.hash(jTXt)", "def R6Hp(jTXt):\n return B2KD(jTXt.encode('utf-8')).hexdigest().upper()", "def uf8S(Bpww):\n return IMHX.sha(Bpww).hexdigest()", "def a2tF(jTXt):\n return B8ni.hashpw(jTXt.encode('utf-8'), B8ni.gensalt())", "def EcAW(Emd4, jTXt):\...
[ "0.67825615", "0.67321163", "0.6631363", "0.65290606", "0.64955527", "0.6483775", "0.64632857", "0.64571625", "0.64571625", "0.6450783", "0.63858485", "0.63796794", "0.6369205", "0.63641906", "0.63606864", "0.63210374", "0.6309857", "0.6309771", "0.6288726", "0.6286299", "0.6...
0.87022686
0
Kernel mean of the ExpQuad kernel w.r.t. its first argument against a Gaussian measure.
def CSAn(WKvO: np.ndarray, WZcn: ExpQuad, Tcon: GaussianMeasure) -> oyIN.ndarray: tpio = WZcn.input_dim if Tcon.diagonal_covariance: khB7 = oyIN.diag(oyIN.atleast_2d(Tcon.cov)) k0ue = (WKvO - Tcon.mean) / oyIN.sqrt(WZcn.lengthscale ** 2 + khB7) En8D = WZcn.lengthscale ** tpio / oyIN.sqrt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def koTY(YKHO):\n pass", "def IAWS(JBMS, SAMx, WKvO):\n return 1 / (oyIN.sqrt(2 * oyIN.pi) * SAMx) * oyIN.e ** (-0.5 * (float(WKvO - JBMS) / SAMx) ** 2)", "def JBMS(YKHO):\n return epAf.exp(YKHO.mu + YKHO.sigma ** 2 / 2)", "def ufxv(WKvO, JBMS, WTkW, caa_, vgXP):\n LVAh = IAWS(WKvO, JBMS, WTkW, c...
[ "0.7056825", "0.7043945", "0.69166654", "0.68202466", "0.6798748", "0.67892826", "0.67817944", "0.677369", "0.6761959", "0.6748649", "0.67481875", "0.67406696", "0.66861355", "0.6642576", "0.6628104", "0.6628104", "0.6607361", "0.65722376", "0.6571977", "0.65711313", "0.65512...
0.75321156
0
If the encoder is bidirectional, do the following transformation. (directions layers, batch, dim_hidden) > (layers, batch, directions dim_hidden)
def S7uz(YKHO, MKlR): if YKHO.bidirectional_encoder: MKlR = ht2j.cat([MKlR[0:MKlR.size(0):2], MKlR[1:MKlR.size(0):2]], 2) return MKlR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def duja(YKHO, Wc9F):\n Zode = YKHO._init_hidden(len(Wc9F))\n bGrB, Zode = YKHO.encoder(Wc9F, Zode)\n return Zode", "def OY9Q(Zode):\n CLda = Zode.size(0) // 2\n bGrB, Ep8u, wjbX = Zode.size()\n return Zode.view(CLda, 2, Ep8u, wjbX).transpose(1, 2).contiguous().view(CLda, Ep8u, wjbX * 2)", "d...
[ "0.678823", "0.6693877", "0.6665551", "0.65358555", "0.6494986", "0.642964", "0.63415194", "0.63198304", "0.6310242", "0.629898", "0.62792546", "0.6263136", "0.625873", "0.62051237", "0.61943775", "0.6141421", "0.6123982", "0.61158085", "0.61046827", "0.6094316", "0.6092499",...
0.0
-1
If the given type is a name reference, returns the referenced type.
def KacI(zuJ9: Type, De3_: SymbolTable[Type]) -> eBH2: if isinstance(zuJ9, mq76): return De3_.find(zuJ9.symbol) return zuJ9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HxG4(YKHO, mWFP: str) -> str:\n (kN9s, bGrB), bGrB = YKHO._find_name(mWFP)\n return kN9s", "def FRul(YKHO, l87X):\n return YKHO._registery[l87X.lower()]", "def sQeM(YKHO):\n if YKHO.is_ref:\n return YKHO.schema.get_defined_type(YKHO._raw_value)\n return None", "def FRul(YKHO, mWFP):...
[ "0.69419813", "0.6921342", "0.68255895", "0.679544", "0.67283773", "0.6552922", "0.6443706", "0.64414805", "0.64052135", "0.6401342", "0.638961", "0.6373423", "0.63646615", "0.6351154", "0.6338953", "0.63215405", "0.62899405", "0.6246079", "0.62383944", "0.62335575", "0.62230...
0.67925555
4
Import and create instance of view
def nrOS(YKHO, *qIxc, **B2fa): try: Aofo = YKHO.view(*qIxc, **B2fa) return Aofo except ImportError: XObx = 'Failed to import {}. If it exists, check that it does not ' XObx += 'import something non-existent itself! ' XObx += 'Try to manually import it to debug.' r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIcm(YKHO):\n if YKHO.__class__.view:\n YKHO.view.handler = YKHO\n YKHO.view.request = YKHO.request\n return\n with qVy8.imports():\n from views.index import View\n YKHO.__class__.view = View(company=L0CQ, request=YKHO.request, handler=YKHO)", "def Tf3P(Emd4):\n pass",...
[ "0.75135267", "0.7213941", "0.7019549", "0.69093686", "0.6809326", "0.6750617", "0.67135656", "0.66852313", "0.6667448", "0.66623163", "0.6577067", "0.6577067", "0.6577067", "0.64527225", "0.64368093", "0.6431093", "0.6423303", "0.6403259", "0.64024323", "0.63885736", "0.6371...
0.0
-1
add the node at link's position, pos start with '0'
def JPHp(YKHO, oeNL, LihS): if oeNL <= 0: YKHO.add(LihS) elif oeNL > YKHO.length() - 1: YKHO.append(LihS) else: uv6v = YKHO._head UHFx = 0 while UHFx < oeNL - 1: uv6v = uv6v.next UHFx += 1 Q6kx = o7DN(LihS) Q6kx.next = uv6v.next...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5gD(YKHO):\n _AKB = YKHO.nodes[-1]\n UvTl = _AKB.parent\n Jw7X = _AKB.pos[0] - UvTl.pos[0]\n eUWA = _AKB.pos[1] - UvTl.pos[1]\n oeNL = (_AKB.pos[0] + Jw7X, _AKB.pos[1] + eUWA)\n Q6kx = o7DN(oeNL, _AKB)\n YKHO.nodes.append(Q6kx)", "def qxUf(YKHO, dQgj, BWXx):\n YRbF = 1\n BQJU = o7...
[ "0.7123397", "0.7000519", "0.6830311", "0.6827296", "0.6827296", "0.6811278", "0.67481154", "0.67404145", "0.6712471", "0.6690422", "0.6682421", "0.66504335", "0.6642278", "0.66237795", "0.66158897", "0.66158897", "0.65834445", "0.6582976", "0.6570201", "0.6554683", "0.655427...
0.6459517
32
Create game if not exists.
def kXMh(YKHO, BH3N): uOe2 = YKHO.init_group(BH3N['group'], oV5M().groupstage) QlO9 = FWDD.all().filter('fifaId =', int(BH3N['id'])).get() if QlO9 is None: QlO9 = FWDD(fifaId=int(BH3N['id']), group=uOe2) QlO9.time = BH3N['time'] QlO9.location = BH3N['location'] QlO9.group_ref = uOe2 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def gamecreate(YKHO, OaeV: commands.Context, BH3N: str):\n jbdi = await YKHO.config.GAMES()\n if BH3N.lower() in jbdi:\n await OaeV.send('This game does already exist')\n else:\n jbdi[BH3N.lower()] = {}\n await YKHO.config.GAMES.set(jbdi)\n await OaeV.send('Game created')...
[ "0.7991692", "0.7855125", "0.7553289", "0.745597", "0.7418751", "0.73199034", "0.7174151", "0.7011852", "0.6939369", "0.69115186", "0.689752", "0.6880888", "0.6857518", "0.6760567", "0.675932", "0.6698872", "0.6678313", "0.6608103", "0.6601522", "0.65529984", "0.6524768", "...
0.0
-1
Inverse of the covariance operator. Returns
def GOZd(YKHO) -> 'IdentityLinearOperator': return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fr7K(YKHO):\n return oyIN.linalg.inv(YKHO.cov)", "def wJ2d(YKHO) -> oyIN.ndarray:\n GvHN = YKHO.covariance_matrix()\n return Zxt2.linalg.inv(GvHN + 1e-06 * oyIN.eye(GvHN.shape[0]))", "def GOZd(YKHO):\n return YKHO.conjugate() / YKHO.norm_squared()", "def GOZd(YKHO):\n if YKHO._inverse is N...
[ "0.8207455", "0.7941904", "0.73231006", "0.71392554", "0.70852476", "0.70256597", "0.7014745", "0.7014745", "0.69921845", "0.6948847", "0.6939705", "0.6882629", "0.68384314", "0.6825364", "0.6811106", "0.6811106", "0.6799822", "0.678499", "0.6749227", "0.67341334", "0.6728325...
0.651755
46
Am I in the righthand side of this particular bit of the tree where I am? Returns boolean.
def b47t(YKHO): if YKHO.AmRoot(): return False if YKHO.parent.right == YKHO: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hu5_(YKHO):\n return YKHO.r is not None", "def kjp6(YKHO):\n return YKHO._leftchild is None and YKHO._rightchild is None", "def m6Na(YKHO):\n Ylbp = False\n if YKHO.getDegree():\n Ylbp = YKHO.getTag() == 0\n for afYC in YKHO.getConnections():\n Ylbp &= afYC.getTag() == ...
[ "0.7070479", "0.6925207", "0.6854663", "0.68397945", "0.6829361", "0.6800109", "0.6796921", "0.67886007", "0.6777157", "0.67705595", "0.67314446", "0.6727825", "0.67162836", "0.66631323", "0.66631323", "0.6645933", "0.6643241", "0.66318977", "0.6608076", "0.6608076", "0.65934...
0.68677354
2
Am I the root? Returns boolean.
def ZsiC(YKHO): if YKHO.parent == None: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kFcs(YKHO):\n return YKHO.root is True", "def kFcs(YKHO):\n return False", "def kFcs(YKHO):\n return YKHO is YKHO.root", "def bvxX(YKHO):\n return YKHO.root is not None", "def kFcs(YKHO) -> xpzE:\n return YKHO.parent is None", "def kFcs(YKHO) -> bool:\n return YKHO.parent is None", ...
[ "0.90422267", "0.87904763", "0.8724852", "0.8487416", "0.83877563", "0.8380015", "0.83731246", "0.8357433", "0.83467495", "0.8310953", "0.8310953", "0.8301463", "0.82669693", "0.8194791", "0.8194791", "0.8182331", "0.8163245", "0.8163245", "0.81373394", "0.8135441", "0.812398...
0.780255
39
Count the inserted nodes in the tree; i.e., the ones marked as used.
def LkmU(YKHO): UHFx = 0 for Q6kx in YKHO.IterateNodes(): UHFx += 1 return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kytq(J_Es):\n pass", "def TM4l(YKHO, i8WE):\n YKHO.numnodes = 0\n i8WE.foreach(YKHO.__count_node_cb, YKHO.numnodes)\n return YKHO.numnodes", "def lU1W(YKHO):\n return len(YKHO.nodes.keys())", "def B7SB(YKHO):\n return sum(JaxB(lambda Q6kx: 1, YKHO.iterRegularNodes()))", "def OtzW(YKHO...
[ "0.78377926", "0.76915014", "0.75455076", "0.74128366", "0.734006", "0.7316134", "0.72851306", "0.7240461", "0.7220793", "0.72004104", "0.71666837", "0.71313804", "0.7115145", "0.71005815", "0.7076163", "0.7072131", "0.70716256", "0.70602316", "0.7054397", "0.7044939", "0.703...
0.76459926
2
Convert date and time to Unix seconds
def m7L9(YKHO): if not hasattr(YKHO, 'unix_time'): YKHO.unix_time = None _c1T = '' YKHO.unix_time = [] for d6pt, BWXx in enumerate(YKHO.data_dict['Date(UTC)']): _c1T = '%s%s%s' % (BWXx[0:4], BWXx[5:7], BWXx[8:10]) ejIZ = YKHO.data_dict['Time(UTC)'][d6pt] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWVw(VmuV):\n return (VmuV - QXXU).total_seconds()", "def Svn0(Ir3V: int) -> int:\n pass", "def EDSZ(ITS7):\n sUJb = ITS7 // (24 * 3600)\n ITS7 %= 24 * 3600\n rsPw = ITS7 // 3600\n ITS7 %= 3600\n fg7a = ITS7 // 60\n ITS7 %= 60\n yfby = ITS7\n return (sUJb, rsPw, fg7a, yfby)", ...
[ "0.77514225", "0.7467857", "0.7323881", "0.7294281", "0.72379464", "0.7176788", "0.71703684", "0.70476604", "0.70275426", "0.70275426", "0.70096856", "0.6999797", "0.69928575", "0.6934949", "0.693366", "0.68993896", "0.6899035", "0.6871665", "0.6844661", "0.6844661", "0.68446...
0.0
-1
Gets the current age of the pet in seconds
def r3IN(YKHO): return v2gS.get_total_seconds_difference(v2gS.todays_date(), YKHO.__birth_date)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJe_(YKHO) -> int:\n return (qcWV.now() - YKHO.date()).seconds // 1000", "def ZJe_(YKHO) -> float:\n return ITS7.time() - YKHO.determination_time", "def N_N1(YKHO):\n return (YKHO.created_on - qcWV.datetime(1970, 1, 1)).total_seconds()", "def N_N1(YKHO):\n return (YKHO.created_on - qcWV.datet...
[ "0.814942", "0.79731977", "0.7833169", "0.7830941", "0.7830941", "0.7703528", "0.76766694", "0.76709914", "0.76525706", "0.7639676", "0.7633847", "0.7612302", "0.7600023", "0.7595562", "0.7593304", "0.759215", "0.7582625", "0.7560754", "0.75576895", "0.75246394", "0.7521421",...
0.8108667
1
Gets the age of the pet in a human readable string
def hEUH(YKHO): QZj0 = v2gS.get_difference_as_relative_delta(v2gS.todays_date(), YKHO.__birth_date) return 'Your pet is currently %d years %d months %d days %d hours %d minutes old' % (QZj0.years, QZj0.months, QZj0.days, QZj0.hours, QZj0.minutes)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJe_(YKHO):\n return f'{YKHO.first_name} is {qcWV.datetime.now().year - YKHO.birth_year} years old'", "def P3fz(YKHO):\n lrNJ = YKHO.age * 7\n print(YKHO.name + ' is ' + str(lrNJ) + ' years old in dog years.')", "def N_N1(ehDb: Actor, LHvA: Movie) -> str:\n return f'{ehDb.name} was {enlf(hfK9(L...
[ "0.75511193", "0.735331", "0.7291329", "0.7245049", "0.7233342", "0.7229892", "0.7174329", "0.71382403", "0.7098878", "0.7079999", "0.7066557", "0.70403415", "0.7037154", "0.70137626", "0.70087546", "0.6988226", "0.6945546", "0.6930122", "0.68998605", "0.6897837", "0.68883455...
0.78633785
0
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter.
def cfQO(tvqc, QpfX): print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId']) "\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill that sends requests to this\n function.\n " i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])...
[ "0.6919228", "0.6762499", "0.65828645", "0.6490292", "0.645727", "0.637779", "0.62864256", "0.62710816", "0.62686974", "0.62461996", "0.6219076", "0.6215725", "0.61949486", "0.6179929", "0.6152384", "0.61419386", "0.6133499", "0.613178", "0.60512537", "0.6010108", "0.59821844...
0.5674202
48
Return delta Z scaling term (in nanometers).
def oSGv(YKHO): return YKHO.delta_z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VeiJ(YKHO, epBp):\n return epBp * YKHO.z_scale", "def RjGm(YKHO) -> float:\n AjzU = YKHO.get_d1()\n _sQW = YKHO.get_d2()\n KMvS = YKHO.gamma()\n return KMvS * ((AjzU * _sQW - 1) / YKHO.sigma)", "def BRVj(YKHO):\n return YKHO.mean_dens * (1 + YKHO.z) ** 3", "def aUJK(YKHO):\n return Y...
[ "0.72830594", "0.6767982", "0.66775924", "0.6661057", "0.658482", "0.65511394", "0.6547658", "0.6501579", "0.6487036", "0.6486105", "0.6449414", "0.6438473", "0.6425914", "0.641214", "0.641214", "0.641214", "0.641214", "0.63778234", "0.6355484", "0.63545656", "0.63204277", ...
0.6585235
5
UNANSWERED Messages that do not have the \Answered flag set.
def JE7h(YKHO) -> 'SearchQueryBuilder': YKHO.__items.add('UNANSWERED') return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bNdW(YKHO):\n return YKHO.filter(approved=True).exclude(answer__isnull=True).exclude(answer__exact='')", "def rBiN(YKHO):\n LaVg = aKaX()\n ANfV = wAWK.RRHeader(payload=wAWK.Record_A('1.2.3.4', ttl=0))\n ANfV.encode(LaVg)\n Ol8d = wAWK.Message()\n Ol8d.fromStr(b'\\x01\\x00\\x00\\x00\\x00\\x...
[ "0.6376915", "0.63261753", "0.62627155", "0.62513447", "0.610048", "0.60648084", "0.60548806", "0.60442895", "0.5956817", "0.58592254", "0.5834625", "0.58182144", "0.5737393", "0.57186687", "0.57092416", "0.56898504", "0.5686649", "0.5669564", "0.5664241", "0.5629171", "0.561...
0.7010623
0
put the ordered kv list into a & serperated string
def l2Pc(nPrm): pfdq = LVlv(nPrm) dud2 = '&'.join(('{}={}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in pfdq if len(Ty9i) != 0)) return dud2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZScP(YKHO, BWXx):\n DumB = ['%s:%s' % (YKHO.encode(G1Hx), YKHO.encode(Ty9i)) for G1Hx, Ty9i in jKi7.iteritems(BWXx)]\n return '{%s}' % ','.join(DumB)", "def ice4(ZVgY):\n return [[str(ZfUD) for ZfUD in vC9B] for vC9B in ZVgY]", "def zAg0(YKHO):\n return '[' + ', '.join((f'{str(H5ew)}: {str(wEf2...
[ "0.6583873", "0.6576832", "0.6505789", "0.64867544", "0.64403677", "0.64403677", "0.64403677", "0.64403677", "0.64403677", "0.6428537", "0.64207107", "0.6409307", "0.64007735", "0.6349948", "0.6322512", "0.63049966", "0.62868404", "0.6188945", "0.61878693", "0.61824954", "0.6...
0.0
-1
Inserts a word into the trie.
def JPHp(YKHO, GIN8: str) -> None: Q6kx = YKHO.root for Z9rn in GIN8: if Z9rn not in Q6kx: Q6kx = Q6kx.setdefault(Z9rn, {}) else: Q6kx = Q6kx[Z9rn] Q6kx[YKHO.end_of_words] = YKHO.end_of_words
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True", "def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y...
[ "0.89349246", "0.8875727", "0.88754433", "0.88664436", "0.8845666", "0.88351166", "0.8829387", "0.88241696", "0.88215303", "0.88025844", "0.87970716", "0.87917984", "0.87870646", "0.8786165", "0.8785743", "0.87801075", "0.8779744", "0.87764865", "0.87708014", "0.8767584", "0....
0.8308461
85
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8: str) -> bool: Q6kx = YKHO.root for Z9rn in GIN8: if Z9rn not in Q6kx: return False else: Q6kx = Q6kx[Z9rn] if YKHO.end_of_words in Q6kx: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word", "def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')...
[ "0.82730556", "0.8268669", "0.8264989", "0.821454", "0.8189983", "0.81762034", "0.81695247", "0.81329536", "0.7981468", "0.7973667", "0.7966321", "0.79540753", "0.7881218", "0.7876813", "0.78663623", "0.7835046", "0.7819606", "0.7812851", "0.7811768", "0.7795306", "0.77902055...
0.7607522
41