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
Checks if the current time is a different day and resets everyone's daily progress.
async def reset_dailies(YKHO): await YKHO.bot.wait_until_ready() while not YKHO.bot.is_closed(): if MgBb.is_next_day(): MgBb.reset_dailies() print('dailies updated successfully') await V7ok.sleep(zrQb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x38x(YKHO):\n xq10 = qcWV.now().toordinal() - YKHO.start_time.toordinal()\n if xq10:\n YKHO.save(days_ago=xq10)\n YKHO.start_time = qcWV.now()\n for Zohj in YKHO.row_detail_list:\n Zohj.time = '0:00:00'\n YKHO.refresh_display()", "def J24D(YKHO, y0Xp):\n y0Xp -...
[ "0.6460523", "0.6061517", "0.59513575", "0.5827571", "0.580728", "0.5756918", "0.57260054", "0.5628393", "0.5625456", "0.5613559", "0.5606751", "0.5550192", "0.5522786", "0.55055195", "0.5501299", "0.5501062", "0.54610264", "0.54459375", "0.5432968", "0.5391588", "0.53851056"...
0.53728604
21
Compare pvalue with alpha. The 'compute_pvalue' method needs to be evaluated first.
def e7zw(YKHO, Cwt5=0.01): MhOK = int((1 - Cwt5) * 100) if YKHO.p_value < Cwt5: print('Null hypothesis rejected at {:d}%CL => distributions are different'.format(MhOK)) else: print('Null hypothesis NOT rejected => distributions are the same')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xbws(YKHO):\n return GIWE(YKHO._pvalues_all, YKHO.use_const)[0]", "def WHAr(YKHO):\n return YKHO._pvalue_alpha", "def rTzL(YKHO, XP5J, Cwt5):\n if XP5J < Cwt5:\n YKHO._verbose('reject H0')\n return False\n else:\n YKHO._verbose('Fail to reject H0')\n return True", ...
[ "0.76247334", "0.7300634", "0.66975635", "0.6309796", "0.6250278", "0.62002856", "0.6131462", "0.6099995", "0.60863453", "0.6078437", "0.60200673", "0.6011325", "0.59004015", "0.58796567", "0.5879302", "0.5879302", "0.5879302", "0.5839784", "0.5822486", "0.5811683", "0.578805...
0.7278204
2
read file and make list of the content of the file, and \n>''
def kRUF(Ux0P): eHNT = open(Ux0P) Kt9y = [] while 1: KCHu = eHNT.readline() if KCHu == '': break KCHu = vIwR.replace(KCHu, '\n', '') if KCHu == '': continue Kt9y.append(KCHu) eHNT.close() return Kt9y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kBCW(XZ1i):\n return [zFiD.strip('\\n').strip('\\r') for zFiD in open(XZ1i)]", "def kBCW(XZ1i):\n return [zFiD.strip('\\n').strip('\\r') for zFiD in open(XZ1i)]", "def edtm(gIsw):\n with open(gIsw, 'r') as eHNT:\n l5Ny = eHNT.read().splitlines()\n return l5Ny", "def Nwr9(gIsw):\n wi...
[ "0.7155553", "0.7011796", "0.700364", "0.683458", "0.6744403", "0.667458", "0.666899", "0.6651556", "0.6608669", "0.6569813", "0.6522272", "0.65104836", "0.6499903", "0.6489195", "0.64538974", "0.64278674", "0.63977563", "0.6396454", "0.6391034", "0.6382648", "0.6369004", "...
0.6252156
31
Iterate over the corpus. If corpus was already batchified, return batches. Otherwise return a single indexed sentence at a time.
def Vs4Q(YKHO): while True: if YKHO.batches is None: for D5k_ in YKHO.indexed_sentences: yield D5k_ else: for Wc9F in YKHO.batches: yield (Wc9F[:-1, :], Wc9F[1:, :]) if not YKHO.repeat: return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IWA_(rrSk, QyVM, jXxl, begE, pFiN=300):\n Ep8u = len(QyVM)\n ITjR = oyIN.zeros((Ep8u, jXxl))\n for YRbF, oFUB in enumerate(QyVM):\n A97Q = rrSk[oFUB.data]\n aPd6 = len(A97Q)\n if oFUB != -1:\n for I0MX in A97Q:\n BWz1 = A97Q.count(I0MX)\n I...
[ "0.6667007", "0.63389766", "0.63235193", "0.6252998", "0.62049", "0.6185451", "0.6163989", "0.60826665", "0.608046", "0.60062975", "0.5961425", "0.59541905", "0.5936558", "0.5933394", "0.5921012", "0.5921012", "0.58837223", "0.5854147", "0.58537567", "0.5822864", "0.5822864",...
0.6869459
0
Returns the simulated 'healthy'/'unhealthy' status of the server.
def ZnpV(): global _is_healthy rPXJ = TvZl('health.html', healthy=bV9E) return Yxsy(rPXJ, 200 if bV9E else 500)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gasA(YKHO):\n return YKHO.__healthy", "def gasA(YKHO):\n return {'status': 'ok'}", "def Bhya(YKHO) -> str:\n return qe4Y.get(YKHO, 'health_status')", "def Bhya(YKHO) -> str:\n return qe4Y.get(YKHO, 'health_status')", "def VQuU(YKHO):\n return YKHO.connection.healthy", "def vzMz():\n ...
[ "0.73638076", "0.71246064", "0.7018728", "0.7018728", "0.6884675", "0.6833523", "0.66984886", "0.66973335", "0.66087794", "0.65907645", "0.65640926", "0.6512779", "0.6496031", "0.6481071", "0.64703673", "0.6463084", "0.6457128", "0.6438911", "0.64127326", "0.6386287", "0.6385...
0.6965366
4
Test parse of a filter param no time filter.
def hZyJ(YKHO): aubn = {'region': SlId.word(), 'payer_tenant_id': SlId.uuid4(), 'instance_type': SlId.word()} ZMzz = EE2b(data=aubn) YKHO.assertTrue(ZMzz.is_valid())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xDTO(YKHO):\n aubn = {'resolution': 'daily', 'time_scope_value': '-10', 'time_scope_units': 'day', 'region': SlId.word(), 'payer_tenant_id': SlId.uuid4(), 'product_service': SlId.word()}\n ZMzz = EE2b(data=aubn)\n YKHO.assertTrue(ZMzz.is_valid())", "def r413(fjHN):\n if fjHN != 'description' and ...
[ "0.6720833", "0.65087473", "0.61677974", "0.6083507", "0.6065226", "0.6057863", "0.6046605", "0.5964981", "0.59552073", "0.59505635", "0.5887956", "0.5869627", "0.5834402", "0.58257705", "0.5778015", "0.5774181", "0.5717222", "0.5694095", "0.5679404", "0.56767136", "0.5676713...
0.74389374
0
Test parse of filter params for invalid fields.
def XFoT(YKHO): aubn = {'invalid': 'param'} ZMzz = EE2b(data=aubn) with YKHO.assertRaises(IyFz.ValidationError): ZMzz.is_valid(raise_exception=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r413(fjHN):\n if fjHN != 'description' and fjHN != 'fulldescription' and (fjHN != 'completed'):\n return False\n else:\n return True", "def ZiZy(YKHO):\n aubn = {'resolution': 'monthly', 'time_scope_value': '-1', 'time_scope_units': 'month', 'limit': 'invalid'}\n ZMzz = EE2b(data=au...
[ "0.7271532", "0.71388686", "0.7096295", "0.70950526", "0.69934624", "0.69505024", "0.6913582", "0.6888075", "0.68010545", "0.67305076", "0.6686237", "0.6670382", "0.66702795", "0.6633449", "0.6485494", "0.6432723", "0.64264333", "0.6405936", "0.6370691", "0.63435113", "0.6213...
0.7751567
0
Test parse of filter params for invalid daily time_scope_units.
def iKoi(YKHO): aubn = {'resolution': 'daily', 'time_scope_value': '-1', 'time_scope_units': 'day'} ZMzz = EE2b(data=aubn) with YKHO.assertRaises(IyFz.ValidationError): ZMzz.is_valid(raise_exception=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuwZ(YKHO):\n aubn = {'resolution': 'monthly', 'time_scope_value': '-10', 'time_scope_units': 'month'}\n ZMzz = EE2b(data=aubn)\n with YKHO.assertRaises(IyFz.ValidationError):\n ZMzz.is_valid(raise_exception=True)", "def JXJ1(YKHO):\n aubn = {'resolution': 'monthly', 'time_scope_value': '-...
[ "0.7610319", "0.74666846", "0.6622102", "0.65876245", "0.6431835", "0.63949174", "0.6318742", "0.62995577", "0.6282231", "0.61682594", "0.61197054", "0.610867", "0.600287", "0.5956584", "0.5938147", "0.59147674", "0.5890246", "0.5862609", "0.5817062", "0.5772816", "0.57585", ...
0.8158492
0
Test parse of filter params for invalid resolution time_scope_units.
def JXJ1(YKHO): aubn = {'resolution': 'monthly', 'time_scope_value': '-10', 'time_scope_units': 'day'} ZMzz = EE2b(data=aubn) with YKHO.assertRaises(IyFz.ValidationError): ZMzz.is_valid(raise_exception=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iKoi(YKHO):\n aubn = {'resolution': 'daily', 'time_scope_value': '-1', 'time_scope_units': 'day'}\n ZMzz = EE2b(data=aubn)\n with YKHO.assertRaises(IyFz.ValidationError):\n ZMzz.is_valid(raise_exception=True)", "def uuwZ(YKHO):\n aubn = {'resolution': 'monthly', 'time_scope_value': '-10', ...
[ "0.77109426", "0.7643143", "0.68005836", "0.66362035", "0.6534466", "0.6324122", "0.6274827", "0.6158578", "0.6154997", "0.60168433", "0.6004294", "0.6002046", "0.59824705", "0.5975555", "0.59039766", "0.5876063", "0.5870864", "0.5856936", "0.5842652", "0.57993525", "0.578028...
0.78302085
0
Test parse of group_by params for invalid fields.
def Mh0n(YKHO): TGNP = {'region': [SlId.word()], 'invalid': 'param'} ZMzz = DfC_(data=TGNP) with YKHO.assertRaises(IyFz.ValidationError): ZMzz.is_valid(raise_exception=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mYBu(e3Cf):\n TihJ = set(['user_id', 'resource_id', 'project_id', 'source'])\n LBbc = set(e3Cf) - TihJ\n if LBbc:\n raise oRsN.exc.UnknownArgument(LBbc, 'Invalid groupby fields')\n return list(set(e3Cf))", "def Zcz1(YKHO):\n a1PO = [['#sample', 'loc', 'age', 'mal'], ['a', 'US', '5', 'n'...
[ "0.7524916", "0.71455574", "0.69295084", "0.6384155", "0.62468886", "0.61945975", "0.61482936", "0.61100626", "0.61078596", "0.607455", "0.6073177", "0.6056115", "0.60418767", "0.60262805", "0.60047853", "0.596763", "0.5894986", "0.5872457", "0.58607495", "0.58437365", "0.582...
0.7685201
0
Test that the output array is of type uint8.
def qGbe(YKHO): CcJf = KjqU(YKHO.array1) yDqo = CcJf.dtype YKHO.assertEqual(yDqo, 'uint8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8WF(YKHO):\n YKHO.assertEqual(No4W(phwN, dtype='byte').dtype, 'uint8')", "def nbNW(uR5F):\n assert uR5F.dtype == 'float' and oyIN.max(uR5F <= 1.0), 'improc.one_2_uint8() only accepts floats arrays from 0 to 1.'\n return (255 * uR5F).astype('uint8')", "def wdS4(YKHO):\n YKHO.assertEqual(No4W(d0...
[ "0.66685957", "0.6596452", "0.65869844", "0.651735", "0.64219433", "0.62898594", "0.61857265", "0.61634403", "0.6156263", "0.6106203", "0.6034091", "0.6017976", "0.59139544", "0.5870529", "0.5859585", "0.58485717", "0.58320916", "0.58291703", "0.58214", "0.58163875", "0.58081...
0.7416645
0
Return lowest common multiple of 1 or more integers. Examples >>> lcm(5) 5 >>> lcm(30, 40) 120 >>> lcm(120, 40, 60) 120
def BsJX(*mSrU): def BsJX(jzdc, Fg_i): return jzdc * Fg_i // ML2l(jzdc, Fg_i) return Pusg(BsJX, mSrU, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BsJX(aPd6):\n BsJX, E3D9 = (1, [])\n for YRbF in aPd6:\n for r845 in E3D9:\n if YRbF % r845 == 0:\n YRbF //= r845\n while YRbF > 1:\n BsJX *= ePb6(YRbF)\n E3D9.append(ePb6(YRbF))\n YRbF //= ePb6(YRbF)\n return BsJX", "def BsJX(...
[ "0.81527907", "0.8072617", "0.80314237", "0.80181545", "0.8002417", "0.79648894", "0.79210895", "0.78938544", "0.7893031", "0.78370124", "0.7823611", "0.7823611", "0.78217775", "0.7809821", "0.7804664", "0.7804664", "0.7804664", "0.7804664", "0.7804664", "0.7804664", "0.78046...
0.79516876
6
Get the bindings dependencies for this configuration item
def SMAd(YKHO, wOGa): for cM24, Aacj in YKHO.bindings.items(): if cM24 in wOGa: for ZfUD in Aacj.wanted(wOGa[cM24].values()): if ZfUD in wOGa[cM24]: yield wOGa[cM24][ZfUD].long_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SMAd(YKHO) -> laHg.Optional[laHg.List[lTJ4.core.IDependable]]:\n return YKHO._values.get('dependencies')", "def TiA1(YKHO):\n aeQa = []\n for pPTc in YKHO.resolve_variants():\n mWFP, BWXx = next(iter(pPTc.items()))\n if 'requires' in BWXx and BWXx['requires'] is not None:\n ...
[ "0.6958315", "0.66978264", "0.660991", "0.6569745", "0.63485926", "0.6325884", "0.62155646", "0.61045873", "0.6097252", "0.608737", "0.5985237", "0.5934503", "0.5864146", "0.58450717", "0.5816706", "0.5760295", "0.57166797", "0.57104576", "0.57050216", "0.5704221", "0.5663951...
0.6742327
1
Get back (exists, current) for this config
def R4Lq(YKHO, GPtr): try: bD7m = '/{0}/{1}'.format(GPtr.typ, GPtr.name) m5r4 = YKHO.content_type(GPtr.typ) jvSB = YKHO.get(bD7m, content_type=m5r4) return (True, jvSB) except CEHk as error: tO9_ = P1dF.kwargs.get('msg', '') if tO9_.startswith('No such resource') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD() -> h8nf[PSrQ]:\n return kNfJ.get()", "def Ldyb(YKHO):\n if YKHO.__during_ha_import:\n return YKHO.__config_before_ha_import\n try:\n return YKHO.core.config_manager.get(YKHO.NAME, which_configuration='applied')\n except (KeyError, BybI):\n return None", "def zKPb():\...
[ "0.69969046", "0.69082505", "0.67289513", "0.6674991", "0.6581849", "0.6539241", "0.64462054", "0.64425504", "0.64288723", "0.6413998", "0.6388934", "0.6388934", "0.6388934", "0.6388934", "0.6388934", "0.6388934", "0.6388934", "0.6388934", "0.6388934", "0.6388934", "0.6388934...
0.67833674
2
Gets the ticker label for the stocks in dataset.
def dEeh(YKHO): return YKHO.stock_labels
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeTJ(YKHO):\n return W9I1.all_labels[YKHO.rank]", "def SYlA(YKHO):\n return YKHO.__train_prop['ticker']", "def DeTJ(YKHO):\n return YKHO.label", "def nscJ(YKHO):\n return YKHO.label", "def DeTJ(YKHO):\n return YKHO.label", "def DeTJ(YKHO):\n return YKHO.label", "def DeTJ(YKHO):\n ...
[ "0.6800865", "0.6458131", "0.6314701", "0.6311462", "0.63044775", "0.63044775", "0.63044775", "0.63044775", "0.62723583", "0.62489575", "0.6221464", "0.6198633", "0.6184881", "0.61542374", "0.61493295", "0.61493295", "0.61351824", "0.60679054", "0.60620624", "0.60176915", "0....
0.73723894
0
a and b are packets packets are lists or ints (may be nested) Return 1 if a b This can be used as a comparator
def M64v(YKHO, jzdc, Fg_i) -> bool: Ylbp = YKHO.elements_in_order(jzdc, Fg_i, depth=0, debug=False) return -1 if Ylbp else 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zdf6(jzdc, Fg_i):\n\n def _llU(WKvO):\n return sorted(WKvO.astype(XTiz.int32))\n return _llU(jzdc) == _llU(Fg_i)", "def GFDZ(jzdc, Fg_i):\n Aofo = -eHkp(jzdc[2], Fg_i[2])\n if Aofo is not 0:\n return Aofo\n N6w2, k_vH = ja04(jzdc[0])\n g2Xm, kzA6 = ja04(Fg_i[0])\n if N6w2 =...
[ "0.64400196", "0.6348703", "0.62699956", "0.62214756", "0.6171453", "0.6152621", "0.610649", "0.6084915", "0.60667944", "0.60585934", "0.6014313", "0.5998065", "0.59808534", "0.59648234", "0.5929483", "0.5910543", "0.58833003", "0.5868059", "0.58467495", "0.58246297", "0.5823...
0.7024052
0
Return the sum of the indices of the pairs that are in order
def sg7z(YKHO) -> int: JFNU: int = 0 for YRbF in range(0, len(YKHO.packets), 2): if YKHO.packet_in_correct_order(YKHO.packets[YRbF], YKHO.packets[YRbF + 1]) == -1: JFNU += int(YRbF / 2) + 1 return JFNU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _LTO(YKHO, xYvp, pan_):\n for hIPb, YRbF in enumerate(xYvp):\n for LC1A, r845 in enumerate(xYvp[hIPb + 1:]):\n if r845 + YRbF == pan_:\n return [hIPb + 1, LC1A + hIPb + 2]", "def xhZA(ezWE: list, sum: int):\n YB4G = 0\n x1Sz = {}\n for YRbF in ezWE:\n if YR...
[ "0.64383143", "0.6359465", "0.6350773", "0.6292224", "0.62760055", "0.6256426", "0.62192696", "0.62122595", "0.61148226", "0.61118937", "0.61001295", "0.60718256", "0.60504526", "0.6045381", "0.602317", "0.6021156", "0.6017912", "0.6008013", "0.5988563", "0.5973825", "0.59488...
0.68311673
0
Override the equal operator
def xa14(YKHO, Elif): return YKHO.item_id == Elif.item_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n raise NotImplementedError('must be implemented by subclass')", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass...
[ "0.7795165", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.7772337", "0.7772337", "0.775098", "0.775098", "0.775098", "0.77436566", "0.77436566", "0.77436566", "0.77...
0.0
-1
Returns the name of the item
def W0tD(ht7m): if ht7m in RZ9F: return RZ9F[ht7m]['name'] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dvRm(YKHO):\n return YKHO.__item_name", "def Q0HP(YKHO, ZfUD):\n return ZfUD.s", "def dvRm(YKHO, YRbF):\n for ZfUD in YKHO.items:\n if ZfUD['id'] == YRbF:\n return ZfUD['localized_name']\n return 'Unknown Item'", "def W0tD(YKHO):\n if YKHO.name != None:\n return YK...
[ "0.9020054", "0.8990347", "0.8091048", "0.805832", "0.7946445", "0.79148144", "0.78918225", "0.7814328", "0.7692716", "0.7649157", "0.760299", "0.7569946", "0.75132275", "0.74614924", "0.74534607", "0.74534607", "0.74534607", "0.7448909", "0.7439888", "0.7439888", "0.74221456...
0.7923903
5
Constructor for a PoisonEffect
def FIMM(YKHO, Ghgm, N197): YKHO.p_id = '{}_{}'.format(Ghgm.item_id, N197) YKHO.dam = Ghgm.prop['poison'] YKHO.dur = Ghgm.prop['duration']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, BZ33):\n YKHO.particles = BZ33", "def FIMM(YKHO, XP5J=0.5):\n YKHO.p = XP5J", "def FIMM(YKHO, XP5J, pSDG=0.1):\n super().__init__(multiplier=pSDG)\n YKHO.p = XP5J", "def FIMM(YKHO, yrqc, L79Y, YLRl, avtp, HZTP, Ijqi):\n super().__init__(yrqc, L79Y, YLRl, avtp, HZTP, Ijqi)\n i...
[ "0.6111748", "0.6068915", "0.60570157", "0.6020604", "0.60116273", "0.5990433", "0.5988238", "0.5914012", "0.589367", "0.589367", "0.58877116", "0.58848286", "0.58779037", "0.5865742", "0.58635855", "0.5859797", "0.58528435", "0.58492893", "0.584343", "0.58426166", "0.5775549...
0.66233367
0
Override the equal operator
def xa14(YKHO, Elif): return YKHO.p_id == Elif.p_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n raise NotImplementedError('must be implemented by subclass')", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass...
[ "0.7795165", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.77812034", "0.7772337", "0.7772337", "0.775098", "0.775098", "0.775098", "0.77436566", "0.77436566", "0.77436566", "0.77...
0.0
-1
r""" String representation of the object.
def aRbh(YKHO): if YKHO._tensor._name is not None: mWFP = YKHO._tensor._name else: mWFP = 'X' if YKHO._con == '': return mWFP + '_' + YKHO._cov elif YKHO._cov == '': return mWFP + '^' + YKHO._con else: return mWFP + '^' + YKHO._con + '_' + YKHO._cov
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__dict__['_obj'])", "def zAg0(YKHO):\n return str(YKHO.serialize())", "def CZBi(YKHO):\n return YKHO.__repr__()", "def zAg0(YKHO):\n return str(YKHO.obj)", "def zAg0(YKHO):\n return repr(YKHO)", "def Sa1R(YKHO) -> str:\n raise NotImplementedError", "d...
[ "0.8314811", "0.83131737", "0.8141416", "0.81265575", "0.8124195", "0.81134546", "0.8111107", "0.8111107", "0.8098341", "0.8098341", "0.8098341", "0.8098341", "0.8098341", "0.80722225", "0.8065788", "0.80409765", "0.80188066", "0.7999481", "0.796723", "0.796723", "0.796723", ...
0.0
-1
Process a row of columnar entries from the poly(A) call file into a dictionary of values.
def next(YKHO): try: VECZ = YKHO.fhandle.readline().rstrip().split() if VECZ[0] != 'polya-samples': return next(YKHO) else: rdlD = {YKHO.names[G1Hx]: VECZ[G1Hx] for G1Hx in range(len(YKHO.names))} return rdlD except: raise StopIteration()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pjGW(zFiD):\n SQ3m = zFiD.strip().split('\\t')\n hlel = {}\n if len(SQ3m) != len(No5k):\n raise Exception('Incorrect number of columns in line.', SQ3m, No5k)\n for H5ew, BWXx in zip(No5k, SQ3m):\n if H5ew == 'attributes':\n hlel[H5ew] = pUB2(BWXx)\n elif H5ew == 'sta...
[ "0.58197576", "0.5631563", "0.5623386", "0.5572082", "0.5527829", "0.54525125", "0.5408792", "0.54046434", "0.53973174", "0.5378931", "0.5364883", "0.53536254", "0.5341481", "0.53275746", "0.5312663", "0.52973783", "0.5282404", "0.5277898", "0.5244735", "0.52215916", "0.52032...
0.49151155
78
Helper function that sets dtype to that of the given data in the fitting step. Fixes inv_eps data type to that of input data.
def PfNy(YKHO) -> None: YKHO.inv_eps = oyIN.array([YKHO.inv_eps]).astype(YKHO.dtype)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YKHO, yDqo):\n YKHO.dtype = oyIN.dtype(yDqo)\n YKHO.preprocess = False\n YKHO.set_data(YKHO.data)", "def eyKN(YKHO, nPrm):\n if isinstance(nPrm, llWB):\n nPrm = nPrm.asnumpy()\n elif isinstance(nPrm, list):\n nPrm = oyIN.array(nPrm)\n elif isinstance(nPrm, oyIN.ndarray):\...
[ "0.612807", "0.5669411", "0.56674576", "0.56642234", "0.5659786", "0.55416834", "0.5471718", "0.53629225", "0.5299172", "0.5283636", "0.524403", "0.5222983", "0.5202983", "0.5190106", "0.5179996", "0.5149133", "0.51054776", "0.5089787", "0.5062818", "0.5041003", "0.50399274",...
0.8101427
0
Create a deep copy of this client. Returns WOQLClient The copied client instance. Examples
def jth9(YKHO) -> 'WOQLClient': return jth9.deepcopy(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n Tlew = YKHO._client.copy()\n return YKHO.__class__(YKHO.instance_id, Tlew, YKHO._cluster_location_id, display_name=YKHO.display_name)", "def jth9(YKHO, **B2fa):\n with ux5v(B2fa) as G1Hx:\n y4ha = G1Hx.optional('deep', True)\n if y4ha:\n return jth9.deepcopy(YKHO)\n ...
[ "0.69454944", "0.6172662", "0.60668427", "0.60249084", "0.5981692", "0.5963893", "0.5948893", "0.59245646", "0.59202266", "0.59026885", "0.5897046", "0.5853876", "0.5846904", "0.5842724", "0.58397835", "0.58397835", "0.5826108", "0.582209", "0.582209", "0.582209", "0.582209",...
0.85636854
0
Get the current database. Returns str The current database identifier. Examples
def NCls(YKHO) -> str: return YKHO._db
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p9bx(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'database')", "def p9bx(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'database')", "def p9bx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'database')", "def p9bx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'da...
[ "0.79443175", "0.7683129", "0.7656967", "0.7656967", "0.7642972", "0.76349634", "0.75983447", "0.75898194", "0.7558618", "0.7528919", "0.7504084", "0.7482693", "0.7444181", "0.7435971", "0.7412634", "0.73912346", "0.72364855", "0.71959", "0.71725464", "0.713493", "0.71276045"...
0.75677705
8
Get the account identifier. Returns str The current account name. Examples
def ZrNc(YKHO) -> str: return YKHO._account
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E():\n return x0hE.get_caller_identity()['Account']", "def id(YKHO) -> str:\n Z31E = YKHO.__session.client('sts').get_caller_identity().get('Account')\n if Z31E:\n return Z31E\n raise ValueError('get_caller_identity did not return Account')", "def Z31E(YKHO) -> str:\n return qe4Y.g...
[ "0.8006036", "0.7899546", "0.7895239", "0.7895239", "0.7895239", "0.7895239", "0.7895239", "0.7895239", "0.7895239", "0.7895239", "0.7843793", "0.7843793", "0.7843793", "0.7800712", "0.7800712", "0.7569997", "0.7533123", "0.7477138", "0.7477138", "0.7477138", "0.7477138", "...
0.7509389
17
Set or get the repository identifier. If repoid is not provided, then the config will not be updated.
def boHx(YKHO, Ouy0: Optional[str]=None) -> str: if Ouy0: YKHO._repo = Ouy0 return YKHO._repo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SXQp(YKHO) -> str:\n raise NotImplementedError", "def bFeS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'repository_name')", "def bFeS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'repository_name')", "def bFeS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'repository_name')", "def KGbB(psSM):\...
[ "0.64819914", "0.573495", "0.573495", "0.573495", "0.5599369", "0.546896", "0.5394508", "0.53903854", "0.53500366", "0.5300593", "0.51603866", "0.5096333", "0.50858", "0.5063177", "0.5002114", "0.5002114", "0.49713087", "0.49406955", "0.49337834", "0.48938486", "0.48876157", ...
0.7765039
0
Get metadata as GeoDataFrame
def bNrH(H2M2, i31V=40): if i31V is not None and len(H2M2) > i31V: wD0w = laXl.cpu_count() with zKwq.futures.ProcessPoolExecutor(wD0w) as ZaUd: rl5G = list(ZaUd.map(CNhA, H2M2)) else: rl5G = [CNhA(apum) for apum in H2M2] NvbC = [] for apum, i912 in zip(H2M2, rl5G): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jaV2(*jzdc, **YSA3) -> quUU.GeoDataFrame:\n YSA3['geo'] = True\n return za6k(*jzdc, **YSA3)", "def Tvv2(YKHO) -> quUU.GeoDataFrame:\n pmON = str(OyQC('geojson/FeatureCollection02.json'))\n jQ3Z = quUU.read_file(pmON)\n return jQ3Z", "def Tvv2(YKHO) -> quUU.GeoDataFrame:\n return YKHO.just...
[ "0.65096146", "0.6496599", "0.63679963", "0.6333591", "0.63039553", "0.6258158", "0.6248611", "0.62454545", "0.61592084", "0.605968", "0.6046729", "0.6038987", "0.6001251", "0.5967043", "0.5965353", "0.596476", "0.5959358", "0.59422266", "0.5934539", "0.5931223", "0.593103", ...
0.0
-1
median lenght, rough approximation
def zH6b(YKHO, IGtf): return 1.0 / (500.0 * IGtf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apD8(YKHO, ybN4):\n \"\"\"TO BE DONE\"\"\"\n return 0", "def BjRM(YKHO):\n pass", "def BjRM(YKHO):\n FCya = sorted(YKHO.sample)\n luey = len(YKHO.sample)\n return FCya[(luey - 1) // 2] if luey % 2 == 1 else (FCya[(luey - 1) // 2] + FCya[luey // 2]) / 2", "def BjRM(YKHO):\n YKHO.data....
[ "0.8007823", "0.78969514", "0.77564573", "0.7621833", "0.7580164", "0.7575248", "0.7538985", "0.75274956", "0.7513776", "0.7491808", "0.74547285", "0.7437953", "0.7414458", "0.74045753", "0.738794", "0.73654443", "0.73572767", "0.73572564", "0.7351814", "0.73263496", "0.73256...
0.0
-1
Return the player's disc colour (Player 1 is always 'X').
def CZti(YKHO, mWFP): pbPD = YKHO.game['players'].index(mWFP) return YKHO.player_discs[pbPD]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oyg0(YKHO):\n return YKHO._color", "def wGtj(YKHO):\n return YKHO.colour", "def PICn(YKHO):\n if YKHO.color:\n return 'RED'\n else:\n return 'BLACK'", "def kop1(YKHO):\n if YKHO.__currentnode__ is None:\n return None\n else:\n return YKHO.__currentnode__.getP...
[ "0.7429318", "0.68470377", "0.67481935", "0.6625655", "0.6557002", "0.64882207", "0.6455063", "0.6435626", "0.6432927", "0.6418421", "0.6401265", "0.6357334", "0.63209325", "0.6310094", "0.6308087", "0.62127215", "0.621267", "0.61601156", "0.60931325", "0.60735196", "0.604145...
0.83922756
0
Get the name of the Redis key.
def NzFF(YKHO): return 'tesseract:table:%s' % YKHO.table_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAat(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_name')", "def zAat(YKHO):\n return YKHO._key_name", "def W0tD(YKHO):\n return YKHO.key().name().split(':', 1)[1]", "def zAat(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'key_name')", "def mWFP(YKHO):\n return YKHO.key", "def H5ew(YKHO) ->...
[ "0.8182606", "0.7997518", "0.7838483", "0.77446216", "0.7507293", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", "0.7498547", ...
0.0
-1
Generate a random table name.
def qNlu(YKHO): return 'tmp_%s_%s' % (YKHO._xid(), ''.join((tuKI.choice('abcdefghijklmnopqrstuvwxyz') for bGrB in range(8))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CXoo():\n Cwt5 = 'abcdefghijklmnopqrstuvwxyz'\n return ''.join((tuKI.choice(Cwt5) for bGrB in range(8)))", "def GTA_() -> str:\n pass", "def CnXH(YKHO, a2jN):\n return a2jN + '_' + YKHO.__id_generator()", "def LzkU() -> str:\n jf08 = ''.join(tuKI.choices(vIwR.ascii_uppercase + vIwR.digits,...
[ "0.8155827", "0.75677574", "0.7060786", "0.6989789", "0.6926941", "0.68452805", "0.6824041", "0.6813894", "0.67685103", "0.66852903", "0.6665112", "0.66630435", "0.66264844", "0.6622886", "0.6601651", "0.6598609", "0.6592808", "0.6573126", "0.6568668", "0.65446025", "0.654069...
0.86728096
0
Build a list of files at ``relative_paths`` with respect to the root ``root_directory`` directory Returns a list of absolute paths and a list of any relative paths that were not found. Falls back to a full recursive search of ``relative_paths`` with ``pathlib.Path.rglob`` to enable pathlib style pattern matching.
def FELB(Sd6D, rd4v): Sd6D = oAb3.Path(Sd6D).resolve() if isinstance(rd4v, str): rd4v = [rd4v] FELB = [] o3cf = [] for t_yv in rd4v: MVVZ = [] SOoY = Sd6D / t_yv if SOoY.is_file(): MVVZ.append(SOoY) elif SOoY.is_dir(): MVVZ = [pmON for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PgCR(mSqg, j28w):\n NmfV = []\n FjOS = (mSqg.name, [], [])\n LORR = j28w if isinstance(j28w, gXY8.PathSpec) else gXY8.PathSpec.from_lines('gitwildmatch', j28w)\n for _o7t in mSqg.iterdir():\n if not LORR.match_file(_o7t):\n if _o7t.is_dir():\n AmTw, fIAI = PgCR(_o7t...
[ "0.6552884", "0.655058", "0.6510189", "0.6302782", "0.62780374", "0.62780374", "0.6139298", "0.61177266", "0.60061085", "0.5984799", "0.5975271", "0.5971495", "0.5901511", "0.58819145", "0.58761376", "0.58685964", "0.5866942", "0.58556235", "0.5839728", "0.58288354", "0.58172...
0.76436776
0
Return the longest common file path prefix. The edge case of a single path is handled by returning the parent directory
def AQ77(MVVZ): if isinstance(MVVZ, str) or isinstance(MVVZ, oAb3.Path): MVVZ = [MVVZ] MVVZ = [oAb3.Path(pmON) for pmON in MVVZ] koFz = len(MVVZ) if koFz < 1: raise RuntimeError("No files in 'file_list'") elif koFz == 1: SNAf = MVVZ[0].parent else: SNAf = oAb3.Pat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def thFV(ckRy: 'List[str]') -> str:\n return Hy7s.path.commonprefix([pmON + '/' for pmON in ckRy]).rstrip('/')", "def boiQ(ckRy: Iterable[str]) -> str:\n KVdv: h8nf[str] = None\n for pmON in ckRy:\n if KVdv is None:\n KVdv = pmON\n continue\n if pmON.startswith(KVdv):...
[ "0.76350385", "0.6845331", "0.6800973", "0.67515665", "0.65777344", "0.6432661", "0.64265466", "0.64255476", "0.6406732", "0.6372219", "0.6257661", "0.62535745", "0.6244957", "0.623368", "0.62305105", "0.6173464", "0.6131038", "0.6084803", "0.60728383", "0.60520583", "0.60519...
0.823794
0
Check if char c is part of a number.
def ihEW(Z9rn: str) -> bool: return Z9rn.isdigit() or Z9rn == '.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ye72(Z9rn):\n return '0' <= Z9rn <= '9'", "def I6l3(WKvO):\n return ord('0') <= ord(WKvO) <= ord('9')", "def uvGH(YKHO, WKvO):\n return WKvO in '1234567890.-'", "def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except ValueError:\n return False", "def BAi_(exwG):\n...
[ "0.8534505", "0.7860635", "0.7279074", "0.7113034", "0.70901036", "0.70710176", "0.6992018", "0.697007", "0.6964018", "0.6963145", "0.6908057", "0.68372893", "0.6672422", "0.6671802", "0.66528183", "0.66478175", "0.6638793", "0.6629772", "0.6600584", "0.6545828", "0.6528396",...
0.8007064
1
Set the Y range on the histogram plot. This disables autoscaling.
def pdoG(YKHO, hgl7, RsfQ, dvgN=0.1): YKHO.vb.enableAutoRange(YKHO.vb.YAxis, False) if YKHO.orientation == 'horizontal': YKHO.vb.setXRange(hgl7, RsfQ, dvgN) elif YKHO.orientation == 'vertical': YKHO.vb.setYrange(hgl7, RsfQ, dvgN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSHX(YKHO, LSh8, CN9P):\n YKHO.Y_AXIS_RANGE = (LSh8, CN9P)", "def TPEh(YKHO):\n YKHO.vb.enableAutoRange(YKHO.vb.XAxis, True)\n YKHO.vb.enableAutoRange(YKHO.vb.YAxis, True)", "def NAGU():\n QrM1.ylim(QrM1.ylim()[::-1])", "def rVdw(YKHO, **chd1):\n if 'xrange' in chd1.keys():\n Ni9Y =...
[ "0.770465", "0.73213285", "0.704145", "0.6781482", "0.66490066", "0.6538384", "0.6378235", "0.63495", "0.633836", "0.6328066", "0.63124216", "0.63065165", "0.6299676", "0.6297037", "0.6208088", "0.6172041", "0.61706746", "0.61642826", "0.6117473", "0.6108551", "0.610324", "...
0.65926754
5
Proxy for the underlying connection's ``__enter__`` method.
def DMw_(YKHO): return YKHO.connection.__enter__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DMw_(YKHO) -> None:\n raise NotImplementedError()", "def DMw_(YKHO):\n pass", "def DMw_(YKHO):\n pass", "def DMw_(YKHO):\n pass", "def DMw_(YKHO):\n raise NotImplementedError", "def DMw_(YKHO):\n YKHO.connect()\n return YKHO", "def DMw_(YKHO):\n YKHO.manual_enter()\n retu...
[ "0.7537354", "0.74938166", "0.74534523", "0.74534523", "0.73512274", "0.73095393", "0.7271211", "0.7175744", "0.7146947", "0.71201944", "0.71201944", "0.7112627", "0.7108524", "0.70493174", "0.7042512", "0.7021737", "0.6987961", "0.69667435", "0.69667435", "0.6930869", "0.693...
0.84196335
0
Extracts a floating point number from string in data, if possible.
def pd4L(nPrm): return float(hr3c(nPrm))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dgek(YKHO, KCHu: str) -> float:\n eHNT = ZbWC.findall('([0-9]*[.]*[0-9]+)', KCHu)\n return float(eHNT[0]) if len(eHNT) > 0 else None", "def XSRO(nPrm):\n lvR3 = ZbWC.compile('([1-9][0-9]*)')\n V52X = nPrm.split('\\n')\n for Csk6 in V52X:\n r8hN = lvR3.search(Csk6)\n if r8hN is no...
[ "0.755782", "0.7219522", "0.71647894", "0.7011425", "0.683637", "0.68265843", "0.6761156", "0.6747051", "0.67294866", "0.6692276", "0.65983623", "0.65970683", "0.65940166", "0.6585006", "0.6562844", "0.6544855", "0.65241283", "0.65172917", "0.64691854", "0.6428348", "0.642470...
0.8111424
0
Counts pairs that can't form in sequence. Sequence must have a Pairs property that acts like a dictionary containing a 2element tuple for each valid pair. Can also pass in the pairs explicitly.
def rV1i(YKHO, aWuw, kgDL=None): rV1i = 0 if kgDL is None: try: kgDL = aWuw.Alphabet.Pairs except AttributeError: kgDL = aWuw.Pairs for vP2v, oTDq in YKHO.directed(): ZbOB = (aWuw[vP2v], aWuw[oTDq]) if ZbOB not in kgDL: rV1i += 1 return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bwoX(Q6uT):\n exwG = len(Q6uT)\n return int(exwG * (exwG - 1) / 2)", "def Gjrr(JmFG):\n kgDL = 0\n for exwG in JmFG:\n kgDL += 1\n G1Hx = 1\n while G1Hx * (G1Hx - 1) != kgDL * 2:\n G1Hx += 1\n return G1Hx", "def wF7J(YKHO, QTBn):\n kgDL = 0\n for YRbF in range(0, le...
[ "0.6764654", "0.64866036", "0.6195914", "0.6179769", "0.61465794", "0.61052096", "0.58531255", "0.56959087", "0.56959087", "0.55879396", "0.5585179", "0.55750227", "0.5555663", "0.5551605", "0.5490842", "0.5490247", "0.54788613", "0.5419092", "0.54078573", "0.54038346", "0.53...
0.6443498
2
Get list of connectors for a given project.
def NMoC(YKHO, QePW, nNbY): bNKA = oPx1.objects.get(name=nNbY) qwfr = bNKA.connector_set.all() ZMzz = dxaa(qwfr, many=True) return jnRN({'connectors': [nPrm['name'] for nPrm in ZMzz.data]})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tuM3(YKHO):\n pass", "def PqUj(YKHO):\n return []", "def pi1E(YKHO) -> laHg.List[MAqI]:\n return [MAqI.from_dict(w2B8) for w2B8 in YKHO.query(jmrv)]", "async def get_all(YKHO) -> laHg.List[MAqI]:\n return [MAqI.from_dict(w2B8) for w2B8 in await YKHO.query(jmrv)]", "def list(YKHO):\n if Y...
[ "0.63358647", "0.60401684", "0.59972143", "0.5953142", "0.58265674", "0.57676953", "0.5742635", "0.57345635", "0.5640241", "0.55795395", "0.5573758", "0.5571501", "0.55375767", "0.553626", "0.54609215", "0.54108053", "0.5363112", "0.535898", "0.53459543", "0.53381914", "0.533...
0.63066024
1
Function for the TensorBoard summaries Adds the mean, standard deviation and histogram to the TensorBoard summaries
def g4Yp(SRYB): JBMS = ZylS.reduce_mean(SRYB) z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS))) ZylS.summary.scalar('mean', JBMS) ZylS.summary.scalar('stddev', z2bo) ZylS.summary.histogram('histogram', SRYB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsI7(YKHO):\n YKHO._loss_summary = ZylS.summary.scalar('loss', YKHO._loss)\n YKHO._perplexity_summary = ZylS.summary.scalar('average_perplexity_per_sentence', YKHO._average_perplexity)", "def RlbR(YKHO):\n ZylS.summary.scalar('loss', YKHO.loss)\n XIcQ = ZylS.summary.merge_all()\n YKHO.summary_...
[ "0.7271124", "0.72650415", "0.72650415", "0.72441274", "0.7190665", "0.7118744", "0.71183115", "0.7065941", "0.70522046", "0.6875914", "0.6794841", "0.66870236", "0.66827965", "0.6650891", "0.6640594", "0.6622778", "0.6620697", "0.6608753", "0.6601737", "0.6597463", "0.657823...
0.6585561
20
Converts an index to the row/column indicies.
def cfIE(d6pt: int, qyHe: int) -> AzJI[int, int]: kWBL, Zhxh = divmod(d6pt, qyHe) return (kWBL, Zhxh - 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oehS(d6pt):\n WKvO = d6pt % ZLJ_\n LVAh = d6pt // ZLJ_\n return (WKvO, LVAh)", "def sFNH(YKHO, d6pt):\n fvDH = d6pt // YKHO.rows\n rdlD = d6pt % YKHO.rows\n return [rdlD, fvDH]", "def E34O(d6pt):\n Jy8Z = [0, 0]\n while d6pt >= len(Msgq):\n d6pt -= len(Msgq)\n Jy8Z[0] ...
[ "0.7331156", "0.7257097", "0.66820073", "0.6592278", "0.6565376", "0.65388197", "0.6299478", "0.6297067", "0.62251425", "0.6159972", "0.6128612", "0.61249006", "0.60653645", "0.6020815", "0.5975301", "0.58782876", "0.58668065", "0.5865818", "0.5834999", "0.57963645", "0.57797...
0.6619981
3
Return the index of the maximum in a numpy array.
def bKPk(EcVT): YRbF = 0 r845 = 0 if not isinstance(EcVT, oyIN.ndarray): raise ValueError('you should enter an array') if len(EcVT.shape) != 2: raise ValueError('you should enter a 2-D array') q1NN = oyIN.argmax(EcVT) YRbF, r845 = oyIN.unravel_index(q1NN, EcVT.shape) return (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYEG(jzdc):\n return jzdc.argmax()", "def BYEG(jzdc):\n return jzdc.argmax()", "def BYEG(jzdc):\n return jzdc.argmax()", "def max(YKHO):\n max = 0\n jzdc = YKHO.array_form\n for YRbF in Ni9Y(len(jzdc)):\n if jzdc[YRbF] != YRbF and jzdc[YRbF] > max:\n max = jzdc[YRbF]\n...
[ "0.8426581", "0.8426581", "0.8426581", "0.8021864", "0.77716297", "0.7517045", "0.74010915", "0.74010915", "0.73741704", "0.7339149", "0.73191357", "0.7299885", "0.7298626", "0.7276159", "0.7229451", "0.720949", "0.7146336", "0.7121334", "0.7116714", "0.7046598", "0.6985995",...
0.796435
4
Apply translation to transformation matrix
def hBUG(YKHO, WKvO=0, LVAh=0, epBp=0): y_o0 = oyIN.identity(4) y_o0[0, 3] += WKvO y_o0[1, 3] += LVAh y_o0[2, 3] += epBp YKHO.matrix = oyIN.matmul(YKHO.matrix, y_o0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SgEE(*qIxc, **B2fa):\n return nAU3.GraphicsMatrix_Translate(*qIxc, **B2fa)", "def _dUC(YKHO):\n KCHu = YKHO.scale\n kH1h = YKHO.rotation\n a1PO = YKHO.translation\n Kt_s = oyIN.eye(4)\n Kt_s[0:3, 3] = a1PO\n A3Vt = oyIN.eye(4)\n A3Vt[0:3, 0:3] = kH1h\n E3D9 = Kt_s.dot(A3Vt)\n if...
[ "0.7344373", "0.71070033", "0.70376515", "0.70143545", "0.6978896", "0.69560623", "0.6838419", "0.68325746", "0.6813717", "0.67443657", "0.6740027", "0.6729803", "0.6703098", "0.6701878", "0.6614008", "0.654868", "0.6510238", "0.6466499", "0.64654547", "0.64600724", "0.643911...
0.7269791
1
Writes the record dictionary to JSON Using the record dictionary we will write it to the backup filepath setup during initialization.
def uyD2(YKHO): G9jH.info('Writing records to JSON') with open(YKHO.backup, 'w') as ytgA: qQXR.dump(YKHO.record, ytgA) G9jH.info('Finished writing records to JSON')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VacN(n80H, J2us):\n n80H.write_text(qQXR.dumps(J2us))", "def xkzz(YKHO, Ux0P):\n with open(Ux0P, 'w') as eHNT:\n r8hN = {'order': YKHO.order, 'pad': YKHO.pad, 'records': {str(G1Hx): Ty9i for G1Hx, Ty9i in YKHO.records.items()}}\n qQXR.dump(r8hN, eHNT)", "def YdQL(cBbc, E282):\n ytgA ...
[ "0.7086049", "0.70803404", "0.69009393", "0.6821454", "0.67451125", "0.6525242", "0.65124065", "0.65117645", "0.64960265", "0.6495757", "0.64890444", "0.6430608", "0.64062184", "0.63896364", "0.63645947", "0.63552165", "0.63542473", "0.6343033", "0.6332018", "0.632005", "0.63...
0.821372
0
Returns the list of queries that the user has subscribed to
def gewy(YKHO): return map(_aLO.get, YKHO.subscriptions)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VOru(YKHO):\n return YKHO.subscriptions.all()", "def XU4s(YKHO):\n return YKHO.request('getAllSubscriptions')", "def qwGD(YKHO, JLBP=False):\n zbDt = YKHO.get_subscriptions(JLBP)\n return list(filter(lambda YEnM: isinstance(YEnM, mv1M), zbDt))", "def YGI8() -> object:\n NCls = aGHv()\n ...
[ "0.68164206", "0.6681832", "0.6594357", "0.6507611", "0.6497931", "0.6449514", "0.6430979", "0.6429039", "0.6401978", "0.637252", "0.63264805", "0.6317181", "0.6281191", "0.62794113", "0.62331855", "0.6230512", "0.621619", "0.6209856", "0.6203647", "0.61974454", "0.6156554", ...
0.8313021
0
adds the given query to the user's subscriptions if not already subscribed
def w8W0(YKHO, xDcj): H5ew = xDcj.key() if H5ew not in YKHO.subscriptions: YKHO.subscriptions += [H5ew] YKHO.put()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w8W0(YKHO, xDcj, hI0L):\n cuiw = DMju()\n finE = YKHO.cart.add_subscription(xDcj, hI0L)\n oMJa = cuiw.search(xDcj, YKHO.lat, YKHO.lon, YKHO.radius)\n list(finE.handle_offers(oMJa))\n finE.check_offers()\n YKHO.config_updated()", "def G86K(YKHO, CBIr):\n YKHO.ensure_one()\n if YKHO.has...
[ "0.6374994", "0.59569687", "0.5804311", "0.57796645", "0.5702056", "0.56925344", "0.5676158", "0.5606909", "0.5556698", "0.5553765", "0.5496701", "0.5492802", "0.5478927", "0.54748666", "0.5455696", "0.54477394", "0.5425517", "0.5420002", "0.5353651", "0.53360057", "0.5330451...
0.8049637
0
Return a datetime object representation of the start date and time
def EKFi(YKHO): JvEs = YKHO.data.get('Start date') ejIZ = YKHO.data.get('Start time') AzsX = '{date} {time}'.format(date=JvEs, time=ejIZ) return qcWV.datetime.strptime(AzsX, YKHO.datetime_format)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EKFi(YKHO):\n yKcO = '{0} {1}'.format(YKHO.data.get('Start date'), YKHO.data.get('Start time'))\n return qcWV.datetime.strptime(yKcO, YKHO.datetime_format)", "def EKFi(YKHO):\n yKcO = YKHO.data.get('start').split('+')[0]\n return qcWV.datetime.strptime(yKcO, YKHO.datetime_format)", "def yKcO(YK...
[ "0.8442556", "0.807055", "0.7946708", "0.7845828", "0.77040994", "0.76179266", "0.75686806", "0.74587137", "0.744614", "0.7374583", "0.7351325", "0.7220931", "0.71761405", "0.7164468", "0.7133027", "0.71056896", "0.7083072", "0.7081929", "0.70203364", "0.70203364", "0.7014949...
0.8394814
1
Return a datetime object representation of the start date and time
def EKFi(YKHO): yKcO = '{0} {1}'.format(YKHO.data.get('Start date'), YKHO.data.get('Start time')) return qcWV.datetime.strptime(yKcO, YKHO.datetime_format)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EKFi(YKHO):\n JvEs = YKHO.data.get('Start date')\n ejIZ = YKHO.data.get('Start time')\n AzsX = '{date} {time}'.format(date=JvEs, time=ejIZ)\n return qcWV.datetime.strptime(AzsX, YKHO.datetime_format)", "def EKFi(YKHO):\n yKcO = YKHO.data.get('start').split('+')[0]\n return qcWV.datetime.str...
[ "0.8394814", "0.807055", "0.7946708", "0.7845828", "0.77040994", "0.76179266", "0.75686806", "0.74587137", "0.744614", "0.7374583", "0.7351325", "0.7220931", "0.71761405", "0.7164468", "0.7133027", "0.71056896", "0.7083072", "0.7081929", "0.70203364", "0.70203364", "0.7014949...
0.8442556
0
Return a datetime object representation of the start date and time
def EKFi(YKHO): yKcO = YKHO.data.get('start').split('+')[0] return qcWV.datetime.strptime(yKcO, YKHO.datetime_format)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EKFi(YKHO):\n yKcO = '{0} {1}'.format(YKHO.data.get('Start date'), YKHO.data.get('Start time'))\n return qcWV.datetime.strptime(yKcO, YKHO.datetime_format)", "def EKFi(YKHO):\n JvEs = YKHO.data.get('Start date')\n ejIZ = YKHO.data.get('Start time')\n AzsX = '{date} {time}'.format(date=JvEs, ti...
[ "0.8442556", "0.8394814", "0.7946708", "0.7845828", "0.77040994", "0.76179266", "0.75686806", "0.74587137", "0.744614", "0.7374583", "0.7351325", "0.7220931", "0.71761405", "0.7164468", "0.7133027", "0.71056896", "0.7083072", "0.7081929", "0.70203364", "0.70203364", "0.701494...
0.807055
2
3dDeconvolve with multiple inputs.
def RzIw(RKD7, jXVS, V0PS, BPD7): RKD7.info('Deconvolve ramps.') RKD7.info('Outpref: %s', BPD7['outpref']) Qime = '/mnt/lnif-storage/urihas/AVaudvisppi/timing' eqQv = [] for YRbF in range(6): eqQv.append(Hy7s.path.join(Qime, 'concat_stim_times_cond%s.txt' % YRbF)) OwPw = lpha("3dDeconvol...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTgn(nPrm, MKlR, M4N3=None):\n if M4N3 is None:\n M4N3 = VeaS()\n if M4N3 is None:\n raise ValueError('no OpenCLDevice found...')\n yDqo = nPrm.dtype.type\n DhyX = {oyIN.float32: '', oyIN.uint16: '-D SHORTTYPE'}\n if not yDqo in DhyX:\n raise TypeError('data type %s not supp...
[ "0.65188265", "0.6501941", "0.642022", "0.6204043", "0.6180585", "0.59953636", "0.5964941", "0.5890555", "0.58856446", "0.58729553", "0.58644444", "0.58540785", "0.5769093", "0.57579046", "0.57470447", "0.57253677", "0.57224745", "0.57165873", "0.5709052", "0.5709052", "0.570...
0.55428743
70
Transition to basket page
def TNOV(YKHO): QZnA = YKHO.browser.find_element(*ryuU.BASKET_LINK) QZnA.click()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qpy0(QePW):\n return _1tc(QePW, 'basket/basket.html')", "def Qpy0(QePW):\n if QePW.GET:\n if 'q' in QePW.GET:\n return vKnz(Gxfl(QePW))\n QpfX = {'view': 'basket'}\n return _1tc(QePW, 'basket/basket.html', QpfX)", "def Ylqb(QePW):\n return {'basket': cGTY(QePW)}", "def Cb...
[ "0.6700586", "0.66839695", "0.66816956", "0.6663487", "0.65550375", "0.64891684", "0.6325859", "0.6210368", "0.6102068", "0.5982805", "0.5971532", "0.59343696", "0.59066445", "0.58864886", "0.58712906", "0.5831746", "0.5788494", "0.57087815", "0.57087815", "0.57087815", "0.57...
0.749148
0
Function to remove html tags.
def aAsi(l5Ny): if l5Ny is oyIN.nan: return l5Ny njyT = ZbWC.compile('<.*?>') return ZbWC.sub(njyT, '', l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UcIF(YKHO):\n oVDR = ZbWC.compile('<.*?>')\n d_Go = ZbWC.sub(oVDR, '', YKHO.doc)\n d_Go = ZbWC.sub('[\\n\\t]', '', d_Go)\n YKHO.doc = d_Go", "def JZhs(YKHO, l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)", "def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n re...
[ "0.8933504", "0.8669408", "0.8387825", "0.8356436", "0.8356436", "0.8321704", "0.8281729", "0.8259817", "0.82189393", "0.81578255", "0.81566375", "0.8149778", "0.8145298", "0.81348276", "0.8119738", "0.8105272", "0.8078383", "0.8078383", "0.80572355", "0.8028358", "0.80017114...
0.7961071
21
Make a plot of the detector's exposure
def nUHY(YKHO, tTee=None, xkzz=False, clHY=None, iMGt=None): if iMGt == None: _Cnz = LLFv(cmap_name='macplus') else: _Cnz = LLFv(cmap_name=iMGt) if tTee == None: tTee = YKHO._view_options[0] elif tTee not in YKHO._view_options: print('ERROR:', 'view option', tTee, 'is not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pMSX(YKHO, VYvU=1000.0):\n _Fei = wOGa.Configuration(Hy7s.path.expandvars('.'), quiet=True)\n kLQb = _Fei.irfs.exposure(0, VYvU)\n CVOT = MMSN.HPskyfun('front-1000 exp', kLQb, 64)\n nDoj = CVOT.getcol()\n iuHx = nDoj.mean()\n ib1r = MMSN.HParray('FRONT exposure @ {} MeV / {:.2e}'.format(VYvU,...
[ "0.7131385", "0.6327257", "0.62717843", "0.62560207", "0.6169152", "0.61292404", "0.59710896", "0.5960917", "0.59589154", "0.59421265", "0.5902232", "0.5860999", "0.5842394", "0.5833555", "0.5813926", "0.5810965", "0.5805624", "0.5790395", "0.5783922", "0.5777166", "0.5775552...
0.5640063
40
Draw a line marking the edge of the detector's exposure.
def tN8p(YKHO, fUCv): Llmj = oyIN.linspace(-180, 180, YKHO.num_points) cvDp = YKHO.limiting_dec.deg l9pg = oyIN.tile(cvDp, YKHO.num_points) Z9rn = UJNH(ra=Llmj * P6bq.degree, dec=l9pg * P6bq.degree, frame='icrs') FDPT = Z9rn.galactic.l.deg QnmL = Z9rn.galactic.b.deg fUCv.scatter(FDPT, QnmL, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H0yp(VXjJ, yKcO, Os4s, qfpW=(0, 0, 255), dGrG=3):\n XC5k.line(VXjJ, yKcO, Os4s, qfpW, dGrG)", "def cbEp(YKHO):\n return YKHO.cv.create_line(0, 0, 0, 0, fill='', width=2, capstyle=cqfR.ROUND)", "def lXKT(vb7U, X3qZ, ZYCo, qfpW=(0, 0, 255), dGrG=1):\n XC5k.line(vb7U, X3qZ, ZYCo, qfpW, thickness=dGrG...
[ "0.6470188", "0.61930037", "0.6103336", "0.606673", "0.6030914", "0.60294956", "0.6024785", "0.60088515", "0.5994126", "0.59701174", "0.59507483", "0.591901", "0.5910069", "0.5904537", "0.5886255", "0.58550847", "0.58204764", "0.57815695", "0.5775708", "0.5766204", "0.5765443...
0.53786737
53
Returns the row index of the given transistor name.
def CXOt(YKHO, mWFP): if mWFP == 'but': mWFP = 'casc' if mWFP not in YKHO._row_lookup: raise ValueError('row %s not found.' % mWFP) return YKHO._row_lookup[mWFP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CXOt(YKHO):\n for rdlD in range(YKHO.model.rowCount()):\n F6v9 = YKHO.model.item(rdlD, YKHO.COL_NAME)\n GSwS = F6v9.data(YKHO.ROLE_FULLPATH)\n if GSwS == YKHO.filepath:\n return rdlD", "def FD9k(YKHO, rdlD: Row) -> int:\n begg = -1\n for d6pt, idYx in enumerate(YKHO.t...
[ "0.7154485", "0.6555717", "0.62896043", "0.6271246", "0.61939764", "0.6120093", "0.61105597", "0.6097573", "0.6015041", "0.60059005", "0.5945495", "0.5879304", "0.584931", "0.5836516", "0.58325493", "0.58269495", "0.58244103", "0.58224356", "0.57373387", "0.5725114", "0.57194...
0.7787664
0
Returns True if at least one of the digits of k is a 7, False otherwise. >>> has_seven(3) False >>> has_seven(7) True >>> has_seven(2734) True >>> has_seven(2634) False >>> has_seven(734) True >>> has_seven(7777) True >>> from construct_check import check >>> check(HW_SOURCE_FILE, 'has_seven', ... ['Assign', 'AugAssign...
def DeAc(G1Hx): if G1Hx == 0: return False else: if G1Hx % 10 == 7: return True return DeAc(G1Hx // 10)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeAc(G1Hx):\n if G1Hx % 10 == 7:\n return True\n elif G1Hx < 10:\n return False\n else:\n return DeAc(G1Hx // 10)", "def DeAc(G1Hx):\n if G1Hx % 10 == 7:\n return True\n elif G1Hx < 10:\n return False\n else:\n return DeAc(G1Hx // 10)", "def DeAc(...
[ "0.8422782", "0.8167209", "0.8167209", "0.8167209", "0.81542903", "0.5718169", "0.562933", "0.533635", "0.5200341", "0.5120379", "0.508192", "0.5079923", "0.50689566", "0.50628406", "0.5033837", "0.50293195", "0.5010518", "0.49650836", "0.4963276", "0.49314642", "0.49256438",...
0.81315416
5
Check if the user has a permission on a specific object. Returns boolean.
def M1EP(QpfX, IuXB, YEnM): return uEDt.has_perm(QpfX['request'].user, IuXB, YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m4il(YKHO, QePW, tTee, YEnM):\n return QePW.user == YEnM", "def m4il(YKHO, QePW, tTee, YEnM):\n return QePW.user == YEnM", "def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.SAFE_METHODS:\n return True\n return YEnM.user_profile.id == QePW.user.id", "def m4il(YKHO, QePW, tTee,...
[ "0.84080106", "0.8395755", "0.83648664", "0.83601016", "0.8297963", "0.8297465", "0.82912165", "0.82658327", "0.8210199", "0.8193177", "0.81619567", "0.81552976", "0.81460965", "0.8138135", "0.8135119", "0.81144565", "0.8103343", "0.8072119", "0.80661094", "0.8064911", "0.806...
0.82467103
8
Check if the user has a permission or owns the object. Ownership is determined by comparing perm_obj.field_name to the user in context.
def Wz2N(QpfX, IuXB, YEnM, pB8m, vXX7='creator'): CBIr = QpfX['request'].user if CBIr.is_anonymous(): return False return uEDt.has_perm_or_owns(CBIr, IuXB, YEnM, pB8m, vXX7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.user.is_superuser:\n return True\n if QePW.user.profile.role == HSUm.CLIENT and YEnM.owner != QePW.user:\n return False\n if QePW.user.profile.role == HSUm.EXECUTOR and YEnM.executor != QePW.user:\n return False\n return True", "def M1E...
[ "0.80214953", "0.7787865", "0.7784035", "0.77189565", "0.7712523", "0.76838154", "0.7657391", "0.7649249", "0.7647127", "0.76313275", "0.7628494", "0.7626478", "0.76214373", "0.76107144", "0.7604496", "0.7597459", "0.7594831", "0.75788295", "0.7576019", "0.7575273", "0.756498...
0.8491552
0
Inverts the pixels of an `image` above a certain `threshold`.
def CQcQ(LNo8, gwAu, mWFP=None): LLWI(LNo8) with ZylS.name_scope(mWFP or 'solarize'): gwAu = ZylS.cast(gwAu, LNo8.dtype) Tu0k = CX33(LNo8) LHHx = ZylS.where(LNo8 < gwAu, LNo8, Tu0k) return LHHx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G9cR(LNo8, gwAu):\n LNo8 = LNo8.copy()\n if gwAu == None:\n gwAu = frG3.filters.threshold_isodata(LNo8)\n LNo8[LNo8 > gwAu] = 255\n LNo8[LNo8 <= gwAu] = 0\n return LNo8", "def CX33(VXjJ):\n print('invert image')\n bGrB, hGax = XC5k.threshold(VXjJ, 140, 255, XC5k.THRESH_BINARY_INV)...
[ "0.7089746", "0.69118756", "0.6902617", "0.6795254", "0.67894113", "0.67894113", "0.67894113", "0.66447294", "0.65949637", "0.64090466", "0.63662684", "0.6238197", "0.6207296", "0.6177463", "0.6154518", "0.6055879", "0.5994631", "0.59379", "0.593744", "0.59322757", "0.5881737...
0.5671955
33
Equalizes the histogram of a grayscale (2D) image.
def n6Z0(Pn8Z): Pyrc = ZylS.constant(256, ZylS.int32) thJw = ZylS.math.bincount(Pn8Z, minlength=Pyrc) waS5 = ZylS.where(ZylS.math.not_equal(thJw, 0)) Ekbj = ZylS.reshape(ZylS.gather(thJw, waS5), [-1]) YPaw = (ZylS.reduce_sum(Ekbj) - Ekbj[-1]) // (Pyrc - 1) def NkkI(thJw, YPaw): JdLG = (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NcFt(WkuO):\n if WkuO.ndim == 3:\n return Eqmh(WkuO)\n return FfOF(WkuO)", "def ZmjJ(VXjJ):\n if len(VXjJ.shape) == 3:\n quCl = oyIN.copy(VXjJ)\n pPPK = quCl[:, :, 0]\n pPPK = NcFt(pPPK)\n jlxe = quCl[:, :, 1]\n jlxe = NcFt(jlxe)\n Z5Q9 = quCl[:, :, 2...
[ "0.80498624", "0.7737783", "0.76677626", "0.74716926", "0.74577636", "0.74470735", "0.7421014", "0.7396376", "0.73674595", "0.73609906", "0.7358955", "0.734753", "0.7195066", "0.71570283", "0.71212757", "0.7057941", "0.70332956", "0.6886283", "0.67977077", "0.67902124", "0.67...
0.65032023
32
Extract query id from file name.
def Dml0(Ux0P: str) -> h8nf[str]: kUBT = ZbWC.match('(.*/)?q?([0-9]+[ab]?)\\.sql$', Ux0P) if kUBT: return kUBT.group(2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nU1z(qaEx):\n return Hy7s.path.splitext(Hy7s.path.basename(qaEx))[0][9:]", "def K69M(YKHO, Ux0P: str) -> str:\n XbyX = Ux0P.split('/')\n y0cW = XbyX[1]\n ZI14 = XbyX[-1].split('.')[0].zfill(3)\n if len(ZI14) == 5:\n return ZI14\n else:\n return y0cW + ZI14", "def SZoG(fOLK):...
[ "0.6883117", "0.67513525", "0.6550357", "0.6394347", "0.6213194", "0.61280656", "0.61213773", "0.6094093", "0.6089687", "0.6080195", "0.60369694", "0.60317045", "0.60203123", "0.59576195", "0.5928019", "0.59126025", "0.5906766", "0.58831525", "0.5881412", "0.58564776", "0.585...
0.79092497
0
Initializes the workload with AppCrawlerWorkUnits. Initializes workload attribute with many AppCrawlerWorkUnits, configured with configurations coming from config file.
def XPT2(YKHO, sKYw, xoet=None, BjEE=None): YKHO.workload = Q4UA() GPtr = YKHO.__load_config_file() cIz3 = YKHO.get_config('tests_per_app', 20) for YRbF in range(0, cIz3): qeyC = Yoic(YKHO.executable_prefix) qeyC.config(id=None, **GPtr) YKHO.workload.add_unit(qeyC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iZll(YKHO):\n YKHO.script_dir = Hy7s.path.dirname(xAKo)\n with open(Hy7s.path.join(YKHO.script_dir, 'config.json')) as eHNT:\n YKHO.configs = qQXR.load(eHNT)\n YKHO.resource_folder = Hy7s.path.join(YKHO.script_dir, YKHO.configs['resource_path'], YKHO.resource_type, YKHO.language)\n YKHO.pre_...
[ "0.60698134", "0.5841843", "0.5801487", "0.571989", "0.56594145", "0.5658567", "0.5650999", "0.55947536", "0.55689925", "0.55557066", "0.5548184", "0.55367625", "0.5514136", "0.55045736", "0.55022645", "0.5500091", "0.5450607", "0.54477733", "0.54475707", "0.5433647", "0.5427...
0.70429766
0
This function return the actual hour.
def b8wz(): b8wz = qcWV.now() return str(b8wz.hour) + ':' + str(b8wz.minute) + ':' + str(b8wz.second)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ROt1(YKHO) -> int:\n return qe4Y.get(YKHO, 'hour')", "def ROt1(YKHO) -> int:\n return YKHO._hour", "def ROt1(YKHO) -> int:\n return YKHO._hour", "def ROt1(YKHO):\n return YKHO._hour", "def ROt1(YKHO):\n return '%s:00:00' % YKHO.timestamp[:13]", "def AQ5N(YKHO):\n return _VfD.Date_ge...
[ "0.8546035", "0.8330114", "0.8330114", "0.8289124", "0.8058077", "0.799573", "0.79943264", "0.79889685", "0.7908588", "0.7908588", "0.7908588", "0.7786807", "0.77731854", "0.7713117", "0.7707409", "0.76532084", "0.7601065", "0.7320924", "0.72807765", "0.72200453", "0.7198588"...
0.8004799
5
Test NGroupSplitter alongside with the reversal of the order of spit out datasets
def ZCqy(YKHO): ObL9 = CyfF(2) for yiMx, wAJt in enumerate((ObL9, ObL9)): if yiMx: n8x3 = dHAJ(attr='partitions', reverse=True) else: n8x3 = dHAJ(attr='partitions') RYsB = [list(n8x3.generate(XP5J)) for XP5J in ObL9.generate(YKHO.data)] YKHO.assertTrue(len...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J4ti(YKHO):\n with YKHO.subTest(input='list', chunk_size=1, n_splits=6):\n YKHO.assertEqual(uk8N(YKHO.test_data, iterable_len=None, chunk_size=1, n_splits=6, n_jobs=None), 13)\n with YKHO.subTest(input='numpy', chunk_size=1, n_splits=6):\n YKHO.assertEqual(uk8N(YKHO.test_data_numpy, iterabl...
[ "0.68311375", "0.6592899", "0.6578127", "0.63387126", "0.62665665", "0.6192359", "0.61918896", "0.61779445", "0.61767304", "0.6143197", "0.610464", "0.6080793", "0.60456276", "0.6042441", "0.60224473", "0.6016693", "0.599408", "0.5982329", "0.59721696", "0.59473497", "0.59439...
0.8082041
0
r"""Test that `_givens_matrix` builds the correct Givens rotation matrices.
def _K7Y(jzdc, Fg_i, LFlW): gaHz = U16d(jzdc, Fg_i, LFlW) assert oyIN.isreal(gaHz[0, 1]) and oyIN.isreal(gaHz[1, 1]) g8Tz = gaHz @ oyIN.array([jzdc, Fg_i]).T d884 = Fg_i / oyIN.abs(Fg_i) * oyIN.hypot(oyIN.abs(jzdc), oyIN.abs(Fg_i)) if Fg_i else 1.0 cQpd = oyIN.array([0.0, d884]).T if LFlW else oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izgW(ROpF, _0VL, rdlD, LFlW):\n SppC = oyIN.random.rand(*ROpF) * 1j + oyIN.random.rand(*ROpF)\n KxZe, (YRbF, r845) = (SppC.copy(), _0VL)\n if rdlD:\n jzdc, Fg_i = SppC[_0VL, r845 - 1]\n gaHz = U16d(jzdc, Fg_i, LFlW)\n KxZe[_0VL] = gaHz @ KxZe[_0VL]\n Ylbp = Fg_i / oyIN.abs(...
[ "0.72518843", "0.6978185", "0.6266273", "0.6247118", "0.61445117", "0.60841614", "0.60031706", "0.59559727", "0.59314954", "0.5929475", "0.58726823", "0.5852261", "0.5838742", "0.582861", "0.5727887", "0.5666725", "0.5637228", "0.56362426", "0.56059223", "0.55997443", "0.5595...
0.74653274
0
return a TokenList with the mentions tokens (with acronyms expanded) that are not symbols, stop words, or common group words.
def SnuX(YKHO, I24A=[]): list = Keew.TokenList() for eOtH in YKHO.tokens: if eOtH.isAcronym(): ecqT = eOtH.getAcronymExpansion() if ecqT == None or len(ecqT) == 0: list.append(eOtH) else: for a1PO in eOtH.getAcronymExpansion(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jAvL(YKHO):\n A1xJ = set([])\n for eOtH in YKHO.importantTokenList():\n if eOtH.isStopWord() == False:\n A1xJ.add(eOtH.lemma)\n return A1xJ", "def s2mk(YKHO):\n H0of = list(Hs6x.chain.from_iterable(list(YKHO.term_to_tokens.values())))\n s2mk = set(list(Hs6x.chain.from_iterabl...
[ "0.68181217", "0.6731075", "0.66251916", "0.64552665", "0.6452468", "0.6414509", "0.6391794", "0.63228506", "0.6313925", "0.6306399", "0.6260907", "0.62403584", "0.62347203", "0.6226176", "0.61970437", "0.61720175", "0.6102917", "0.60629946", "0.6052487", "0.60445684", "0.604...
0.70068365
0
return the list of words (actual token text) in mention. Do not filter out any text
def mdL3(YKHO): V22M = set([]) for eOtH in YKHO.tokens: V22M.add(eOtH.text) return V22M
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TUDJ(YKHO):\n V22M = set([])\n for eOtH in YKHO.importantTokenList():\n if eOtH.isStopWord() == False:\n V22M.add(eOtH.text.lower())\n return V22M", "def tAXU(YKHO, I24A=[]):\n V22M = set([])\n for eOtH in YKHO.importantTokenList(ignoreSemanticTagList=I24A):\n V22M.add...
[ "0.75205255", "0.72772205", "0.7101586", "0.7048652", "0.70209545", "0.6907876", "0.6894764", "0.6894764", "0.6894619", "0.68776697", "0.6833491", "0.6825688", "0.68131024", "0.6809152", "0.673239", "0.6717672", "0.6681532", "0.6669037", "0.66661894", "0.66627425", "0.6662259...
0.7089172
3
return list of important words (actual token text) in mention. Exclude symbols and ['the','a','of', 'an', 'group', 'groups','arm', 'had']
def tAXU(YKHO, I24A=[]): V22M = set([]) for eOtH in YKHO.importantTokenList(ignoreSemanticTagList=I24A): V22M.add(eOtH.text.lower()) return V22M
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TUDJ(YKHO):\n V22M = set([])\n for eOtH in YKHO.importantTokenList():\n if eOtH.isStopWord() == False:\n V22M.add(eOtH.text.lower())\n return V22M", "def g4iT(YKHO):\n aroh = YKHO.text.split()\n vs9o = YKHO._words_plus_punc()\n aroh = [FxX7 for FxX7 in aroh if len(FxX7) > ...
[ "0.7632719", "0.7365619", "0.731918", "0.71499056", "0.6999598", "0.6959447", "0.6705039", "0.6627817", "0.66056615", "0.6571179", "0.6539035", "0.6538817", "0.6528402", "0.6497419", "0.64748526", "0.64306045", "0.63868517", "0.638122", "0.63695484", "0.6353311", "0.634189", ...
0.77576894
0
return list of important lemmas (lemma of actual token text) in mention. Exclude symbols and ['the','a','of', 'an', 'group', 'groups','arm', 'had']
def TpoA(YKHO, I24A=[]): A1xJ = set([]) for eOtH in YKHO.importantTokenList(ignoreSemanticTagList=I24A): A1xJ.add(eOtH.lemma.lower()) return A1xJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jAvL(YKHO):\n A1xJ = set([])\n for eOtH in YKHO.importantTokenList():\n if eOtH.isStopWord() == False:\n A1xJ.add(eOtH.lemma)\n return A1xJ", "def nnLc(YKHO):\n e1T3 = [set(Ltnc(gmS1(XP5J).words.lemmatize())) for XP5J in YKHO.blob.noun_phrases]\n return [' '.join(XP5J) for XP...
[ "0.78210175", "0.7099474", "0.69423145", "0.68825656", "0.67949134", "0.67949134", "0.6741339", "0.67152625", "0.6660616", "0.66185766", "0.6528543", "0.65127474", "0.65070057", "0.6483213", "0.6474462", "0.646695", "0.6448815", "0.6425245", "0.64224833", "0.64033395", "0.639...
0.79324937
0
return the set of lemmas in the mention that are not symbols, stop words, or common group words
def jAvL(YKHO): A1xJ = set([]) for eOtH in YKHO.importantTokenList(): if eOtH.isStopWord() == False: A1xJ.add(eOtH.lemma) return A1xJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TpoA(YKHO, I24A=[]):\n A1xJ = set([])\n for eOtH in YKHO.importantTokenList(ignoreSemanticTagList=I24A):\n A1xJ.add(eOtH.lemma.lower())\n return A1xJ", "def nnLc(YKHO):\n e1T3 = [set(Ltnc(gmS1(XP5J).words.lemmatize())) for XP5J in YKHO.blob.noun_phrases]\n return [' '.join(XP5J) for XP5...
[ "0.7484814", "0.69189405", "0.6774722", "0.6717577", "0.66284263", "0.6553996", "0.653918", "0.651242", "0.64191705", "0.6410705", "0.6370175", "0.6365117", "0.6360182", "0.63402086", "0.63402086", "0.6303887", "0.62870455", "0.62384754", "0.622087", "0.621689", "0.61757904",...
0.7699475
0
return the set of words in the mention that are not symbols, stop words, or common group words
def TUDJ(YKHO): V22M = set([]) for eOtH in YKHO.importantTokenList(): if eOtH.isStopWord() == False: V22M.add(eOtH.text.lower()) return V22M
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6AQ(V22M: list[str]) -> list[str]:\n return [epBp for epBp in list(set(V22M)) if epBp in YKHO.words]", "def d6AQ(V22M):\n return set((yzQ0 for yzQ0 in V22M if yzQ0 in hRXf))", "def V22M(YKHO):\n WKvO = str(YKHO.text).lower()\n LVAh = WKvO.split()\n LVAh = set([''.join((Z9rn for Z9rn in KCHu...
[ "0.71346545", "0.70909905", "0.707125", "0.7068036", "0.69499826", "0.68125534", "0.68009627", "0.6760351", "0.6702838", "0.66900724", "0.66473407", "0.6638761", "0.66048694", "0.6596988", "0.657948", "0.6571927", "0.65484476", "0.65443814", "0.65243626", "0.65189874", "0.650...
0.74152803
0
return the number of nonstopword, nonsymbol tokens in the positional overlap between this mention and the given annotated mention. The overlap is based on position in the sentence.
def QQII(YKHO, hgEz): if YKHO.tokens[0].sentence != hgEz.tokens[0].sentence: return 0 if YKHO.end < hgEz.start or YKHO.start > hgEz.end: return 0 if YKHO.start == hgEz.start and YKHO.end == hgEz.end: return len(YKHO.tokens) kVet = 0 for eOtH in YKHO.tokens: if eOtH.in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hgcj(eOtH: Token, FUBn: int, ccTV: int) -> bool:\n return FUBn <= eOtH.idx <= ccTV or eOtH.idx <= FUBn <= eOtH.idx + len(eOtH)", "def O4S7(YKHO, A97Q):\n return len(N3rN(A97Q))", "def qzJU(n2Q1, SpII):\n yHH9 = set([s1k6 for s1k6 in n2Q1.leaves() if s1k6 in SpII.leaves()])\n return mBkc(yHH9)",...
[ "0.59847397", "0.5822316", "0.56207633", "0.56020826", "0.5597752", "0.55727875", "0.55027694", "0.5490109", "0.5450844", "0.5441014", "0.5434364", "0.54072094", "0.5399751", "0.52970916", "0.52939355", "0.5293714", "0.5287647", "0.52833784", "0.5250938", "0.52500004", "0.524...
0.8331072
0
Generate an altered version of a nickname that caused a collision in an effort to create an unused related name for subsequent registration.
def xQxR(YKHO, dP7V): return dP7V + '^'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9vJ(Emd4, CBIr):\n mWFP = dP7V = CBIr.email().split('@', 1)[0]\n Ynym = chr(ord(dP7V[0].lower()) + 1)\n K6m_ = [ZrNc.lower_nickname for ZrNc in Emd4.gql('WHERE lower_nickname >= :1 AND lower_nickname < :2', dP7V.lower(), Ynym)]\n ZI14 = 0\n while dP7V.lower() in K6m_:\n ZI14 += 1\n ...
[ "0.65738004", "0.652622", "0.652622", "0.6411534", "0.63314277", "0.6291293", "0.6260818", "0.6217638", "0.6191276", "0.61710066", "0.6148368", "0.6127089", "0.6016413", "0.5986026", "0.59544337", "0.59229255", "0.5879868", "0.5863843", "0.5855191", "0.5850092", "0.5839864", ...
0.65603524
1
Normal vector at v Normal vector at v
def _VcU(YKHO, Ty9i): GfDA = YKHO.grad_f_v(Ty9i) xtY6 = oyIN.linalg.norm(GfDA, axis=1) return GfDA / xtY6[:, oyIN.newaxis]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhAC(YKHO, P6bq, Ty9i):\n Aofo = oyIN.cross(YKHO.du(P6bq, Ty9i), YKHO.dv(P6bq, Ty9i))\n Aofo = Aofo / oyIN.sqrt(ya0a(Aofo, Aofo))[:, None]\n return Aofo", "def qvqi(YKHO, P6bq, Ty9i, EmUK=True):\n P6bq = P6bq * mM0K\n Ty9i = Ty9i * KiGg\n WKvO = YhSR(P6bq) * YUNn(Ty9i)\n LVAh = YUNn(P6bq...
[ "0.808961", "0.7777928", "0.7612097", "0.75472355", "0.74701715", "0.74098366", "0.7264414", "0.72299755", "0.72165364", "0.7211524", "0.7131051", "0.7068893", "0.70622516", "0.705551", "0.7027712", "0.696597", "0.695656", "0.69412875", "0.6937271", "0.6936448", "0.6924996", ...
0.78114426
1
Applies replacements to env and kw.
def mT9o(YKHO, sEAN, **YSA3): FdLb = YKHO.replacements.apply(sEAN) YSA3 = YKHO.replacements.apply(YSA3, True) return (sEAN.Override(FdLb), YSA3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def URmm(**B2fa):\n for H5ew, BWXx in B2fa.items():\n Hy7s.environ[H5ew.upper()] = str(BWXx)\n yield\n for H5ew in B2fa:\n if H5ew.upper() in Hy7s.environ:\n del Hy7s.environ[H5ew.upper()]", "def viIj(YKHO, l5Ny: str) -> str:\n for YSA3 in YKHO.spaces:\n if YSA3 in l5N...
[ "0.63780546", "0.6186776", "0.5726015", "0.56851", "0.5642801", "0.56234396", "0.5606323", "0.5564118", "0.55023897", "0.5486018", "0.5468531", "0.54321545", "0.5331313", "0.5305731", "0.52920645", "0.5283365", "0.5270817", "0.52574927", "0.5222636", "0.5219035", "0.52135867"...
0.7270186
0
Returns the string that word2 maps to, using word1 and key as the key for a chartochar mapping. Raises KeyError if word2 includes any characters not in word1. It is assumed that the letters in word1 are mapped consistently to the chars in key, i.e. that every occurrence of char X in word1 is mapped to the same char Y i...
def hBUG(UrE_, H5ew, MP_r): H5ew = dict(zip(UrE_, H5ew)) return ''.join((H5ew[aDi_] for aDi_ in MP_r))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vwqL(B2hD: bytes, gfpw: bytes=b'\\x00'):\n if gfpw == b'\\x00':\n return B2hD.decode('latin1')\n else:\n return c65Z.CombinationCharacters[B2hD, gfpw]", "def lY6y(xGGK: str, _zYY: str) -> bool:\n K9Fg = {}\n for dg7v, iYf1 in zip(xGGK, _zYY):\n if dg7v not in K9Fg:\n ...
[ "0.68999416", "0.6366879", "0.59578866", "0.5761041", "0.57436913", "0.57308483", "0.5491457", "0.5462704", "0.5238012", "0.52363217", "0.5190533", "0.51380503", "0.50953144", "0.5089767", "0.50745773", "0.5052357", "0.50384426", "0.5009672", "0.4976689", "0.49600413", "0.495...
0.7534547
0
Create and configure a new app instance for each test.
def P4t4(): P4t4 = LUif({'TESTING': True, 'DATABASE_NAME': 'AAPI_DB_Test'}) with P4t4.app_context(): JawI() yield P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fkN9():\n xqoZ = {'DEBUG': True, 'TESTING': True}\n wMcu = LUif(settings_override=xqoZ)\n OaeV = wMcu.app_context()\n OaeV.push()\n yield wMcu\n OaeV.pop()", "def LUif(YKHO):\n P4t4.config.from_object('config.TestingConfig')\n return P4t4", "def LUif(YKHO):\n P4t4 = LUif()\n P...
[ "0.7984731", "0.7973278", "0.7952626", "0.7774617", "0.7610121", "0.75586873", "0.7514867", "0.748489", "0.7457632", "0.7457632", "0.7457632", "0.74221593", "0.7392862", "0.7378533", "0.73515075", "0.7331986", "0.7303747", "0.7297693", "0.7282327", "0.7275915", "0.7273931", ...
0.7423435
11
Writes te plt to a csv format
def TIVs(YKHO, Jmpp, wf9g=None, INXM=None): if not wf9g: wf9g = YKHO._data_sets.keys() with open(Jmpp, 'wb') as z36O: for wDWA in wf9g: nPrm = [wDWA] + [str(WKvO) for WKvO in YKHO._data_sets[wDWA]] z36O.write(','.join(nPrm) + '\n') for oPhP, xfJD, wQab in INXM: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ihWX(jQ3Z):\n if Hy7s.path.exists('files/converted.csv'):\n Hy7s.remove('files/converted.csv')\n jQ3Z.to_csv('files/converted.csv')", "def rl5L(YKHO, pmON):\n with open(pmON, 'w') as eHNT:\n eHNT.write('# h,hr,m')\n if YKHO.rho is not None:\n eHNT.write(',rho')\n ...
[ "0.7071125", "0.700507", "0.68645436", "0.6772939", "0.67049706", "0.659019", "0.6566172", "0.65297526", "0.6488416", "0.64864486", "0.6480746", "0.6395022", "0.63751966", "0.63560915", "0.6336254", "0.6314688", "0.6295094", "0.6294207", "0.6282209", "0.62731856", "0.625395",...
0.0
-1
Initialize a RunFromText instance with rules collection.
def FIMM(YKHO, xUwc): YKHO.collection = xUwc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, jJKu=None):\n if jJKu is None:\n jJKu = pmON.join(pmON.dirname(pmON.realpath(xAKo)), 'pattern_sentence_filter.yaml')\n YKHO.rulespath = jJKu\n YKHO.rules = Y4lh(eJb6.safe_load(open(jJKu)))", "def FIMM(YKHO, c_NS: Union[Dict[str, dict], Set[str]], Kwd0: str=''):\n if isinstance(c...
[ "0.62595606", "0.5783694", "0.57742023", "0.5690404", "0.5666691", "0.5653171", "0.5643387", "0.56314296", "0.56272453", "0.5619323", "0.5599984", "0.5595632", "0.5582686", "0.55695283", "0.55594057", "0.5517832", "0.5514935", "0.5483685", "0.5470324", "0.546789", "0.5458907"...
0.0
-1
Load json from file at path.
def M_9t(Emd4, pmON: str): with open(pmON) as eHNT: return qQXR.load(eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H(pmON):\n with open(pmON) as KAfx:\n return qQXR.load(KAfx)", "def lc9H(pmON):\n with open(ENtY(pmON), 'r', encoding='utf-8') as nUeQ:\n return qQXR.load(nUeQ)", "def tyeH(YKHO, pmON):\n with open(pmON, 'rt') as Ki2L:\n nPrm = qQXR.load(Ki2L)\n return nPrm", "def lc9H...
[ "0.87353", "0.86052334", "0.86043715", "0.84109616", "0.83911884", "0.8288491", "0.8279082", "0.8256817", "0.8174376", "0.81695944", "0.8165952", "0.81521696", "0.81354743", "0.8118189", "0.80910146", "0.8088549", "0.80864394", "0.8058881", "0.80484354", "0.8003946", "0.79896...
0.8335796
5
Serialize mapping to string.
def OSuz(Emd4, nPrm: Mapping) -> str: return qQXR.dumps(nPrm, indent=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bizs(YKHO) -> str:\n return BfDw.to_json(YKHO.mapping)", "def ChRH(YKHO) -> str:\n return '\\n'.join(map(str, YKHO._mappings.values()))", "def vIwR(YKHO):\n return str(YKHO._dict)", "def zAg0(YKHO):\n GChh = kJm3()\n for G1Hx in YKHO:\n GChh.write('%s %s\\n' % (repr(G1Hx), repr(YKHO...
[ "0.82183963", "0.7204121", "0.6642456", "0.65922433", "0.6446452", "0.64427364", "0.6402611", "0.63784313", "0.63705784", "0.6354923", "0.6297855", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.62688416", "0.6256627...
0.0
-1
Load data from yaml formatted string.
def U_xc(Emd4, hGN5: str) -> ImMB: Emd4._check_yaml() return eJb6.safe_load(hGN5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InB_(Emd4, vIwR):\n return Emd4(UEZb(vIwR))", "def UEZb(zZcM):\n if not isinstance(zZcM, str):\n try:\n IcOY = zZcM.name\n except AttributeError:\n IcOY = '<yaml stringio>'\n zZcM = zZcM.read()\n else:\n IcOY = '<yaml string>'\n try:\n retu...
[ "0.75267714", "0.71212053", "0.70336205", "0.7005339", "0.69791245", "0.6961655", "0.69315034", "0.6912102", "0.6910845", "0.6895913", "0.6864176", "0.683359", "0.6808981", "0.6806027", "0.6752888", "0.67240447", "0.6704119", "0.6595653", "0.65911555", "0.65749264", "0.654575...
0.68321246
12
Load data from path containing a yaml file.
def M_9t(Emd4, pmON: str) -> ImMB: Emd4._check_yaml() with open(pmON) as eHNT: return eJb6.safe_load(eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aF8O(pmON):\n import yaml\n ytgA = None\n try:\n ytgA = open(pmON)\n nPrm = yaml.load(ytgA)\n finally:\n if ytgA:\n ytgA.close()\n return nPrm", "def jnN0(YKHO, pmON):\n with pmON.open('r') as nVrR:\n nPrm = f9B0(nVrR)\n YKHO.set_all(**YKHO.SCHEMA.l...
[ "0.8245972", "0.81248933", "0.7858508", "0.78034705", "0.78005546", "0.75352955", "0.7512427", "0.7505387", "0.748309", "0.7475744", "0.7465097", "0.74182844", "0.7405493", "0.7358135", "0.7326122", "0.73151976", "0.7309648", "0.72987473", "0.7225925", "0.71979517", "0.715375...
0.7909828
2
Serialize mapping to string.
def OSuz(Emd4, nPrm: Mapping) -> str: Emd4._check_yaml() KCHu = eJb6.safe_dump(nPrm, default_flow_style=False) KCHu = '---\n' + KCHu return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bizs(YKHO) -> str:\n return BfDw.to_json(YKHO.mapping)", "def ChRH(YKHO) -> str:\n return '\\n'.join(map(str, YKHO._mappings.values()))", "def vIwR(YKHO):\n return str(YKHO._dict)", "def zAg0(YKHO):\n GChh = kJm3()\n for G1Hx in YKHO:\n GChh.write('%s %s\\n' % (repr(G1Hx), repr(YKHO...
[ "0.82183963", "0.7204121", "0.6642456", "0.65922433", "0.6446452", "0.64427364", "0.6402611", "0.63784313", "0.63705784", "0.6354923", "0.6297855", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.62688416", "0.6256627...
0.0
-1
Serialize mapping to string.
def OSuz(Emd4, nPrm: Mapping) -> str: Emd4._check_toml() KCHu = kRlw.dumps(U8Lr(sorted(nPrm.items()))) KCHu = KCHu.replace('\n[', '\n\n[') return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bizs(YKHO) -> str:\n return BfDw.to_json(YKHO.mapping)", "def ChRH(YKHO) -> str:\n return '\\n'.join(map(str, YKHO._mappings.values()))", "def vIwR(YKHO):\n return str(YKHO._dict)", "def zAg0(YKHO):\n GChh = kJm3()\n for G1Hx in YKHO:\n GChh.write('%s %s\\n' % (repr(G1Hx), repr(YKHO...
[ "0.82183963", "0.7204121", "0.6642456", "0.65922433", "0.6446452", "0.64427364", "0.6402611", "0.63784313", "0.63705784", "0.6354923", "0.6297855", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.6287331", "0.62688416", "0.6256627...
0.0
-1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(keQN, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: print('Normalized.') keQN = keQN.astype('float') / keQN.sum(axis=1)[:, oyIN.newaxis] QrM1.imshow(keQN, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(K...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.0
-1
Always predict the previous day's Y value
def udeI(Csk6, Tuqy='test'): LVAh = getattr(Csk6, Tuqy + 'Y') aTLP = DkWr(LVAh, 1, cval=0.0) return (G9D4(Csk6, aTLP, Tuqy), A1GZ(Csk6, aTLP, Tuqy), ZDrO(Csk6, aTLP, Tuqy))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, EcVT: np.ndarray) -> oyIN.ndarray:\n if not YKHO._fitted:\n raise ValueError('Model is not fitted.')\n EcVT = (EcVT / YKHO.timestamp_interval).astype(int)\n DkWr = (EcVT - YKHO.y.size) // YKHO.ts_period\n noZV = EcVT - YKHO.ts_period * (1 + DkWr)\n if oyIN.any(noZV < 0):\n ...
[ "0.6405679", "0.6252587", "0.62223417", "0.62130874", "0.61953014", "0.6139881", "0.60652834", "0.6041764", "0.6036851", "0.59749174", "0.59699637", "0.5963044", "0.59580517", "0.59262055", "0.59192497", "0.5874986", "0.587133", "0.58677804", "0.5864295", "0.5864295", "0.5864...
0.0
-1
Indent an XML document by inserting newlines and indentation space after elements. tree is the ElementTree or Element to modify. The (root) element itself will not be changed, but the tail text of all elements in its subtree will be adapted. space is the whitespace to insert for each indentation level, two space charac...
def MnRD(J_Es: Union[ET.ElementTree, ET.Element], n294=' ', ABDL=0): if isinstance(J_Es, GXnK.ElementTree): J_Es = J_Es.getroot() if ABDL < 0: raise ValueError(f'Initial indentation level must be >= 0, got {ABDL}') if not len(J_Es): return g9IA = ['\n' + ABDL * n294] def qk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MggD(LihS, ABDL=0):\n YRbF = '\\n' + ABDL * ' '\n if len(LihS) != 0:\n if not (LihS.text and LihS.text.strip()):\n LihS.text = YRbF + ' '\n for tTpl in LihS:\n MggD(tTpl, ABDL + 1)\n if not (tTpl.tail and tTpl.tail.strip()):\n tTpl.tail = YRbF\n ...
[ "0.6343905", "0.6279833", "0.57824814", "0.56691325", "0.5639944", "0.56115377", "0.55853206", "0.55853206", "0.5443844", "0.52399105", "0.5238794", "0.51072747", "0.5069729", "0.50547427", "0.5006501", "0.4998406", "0.4985729", "0.4985729", "0.49748728", "0.4968278", "0.4962...
0.7260658
0
Define Residual Block showed in Zhuang (2019) CONV => BATCH => RELU => DROPOUT => CONV => BATCH | | | SHARED LAYER |
def ZZtZ(FRUf, KUnM): dFGd = yHwh(filters=KUnM, kernel_size=3, padding='same', kernel_initializer='he_normal') TaDF = dFGd(FRUf) Lcod = GVKG()(TaDF) sGmh = MroH('relu')(Lcod) KjIF = lARV(ReNU)(sGmh) KNin = dFGd(KjIF) Lcod = GVKG()(KNin) return Lcod
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MidL(ZVqN=[1, 2, 3], fdcO=None, mdiS=None):\n Hydj = X6a0(shape=(None, None, 3))\n z5f9 = 3\n mBM4 = 1 not in ZVqN\n WKvO = yHwh(64, (7, 7), strides=(2, 2), padding='same', name='conv1', trainable=mBM4, use_bias=False, kernel_regularizer=fdcO, bias_regularizer=mdiS)(Hydj)\n WKvO = GVKG(axis=z5f9...
[ "0.6686205", "0.66425824", "0.6553319", "0.64887875", "0.6457436", "0.6445349", "0.6370009", "0.6346104", "0.6310595", "0.6291182", "0.628418", "0.62781084", "0.62603647", "0.62469715", "0.62353355", "0.62347627", "0.6233347", "0.6230214", "0.62244767", "0.6214197", "0.621175...
0.625466
13
Convert an axisangle rotation into a 4x4 transformation matrix
def Zh02(he6J): YylR = ht2j.norm(he6J, 2, 2, True) jDK_ = he6J / (YylR + 1e-07) ZLSD = ht2j.cos(YylR) RyuO = ht2j.sin(YylR) Nq1b = 1 - ZLSD WKvO = jDK_[..., 0].unsqueeze(1) LVAh = jDK_[..., 1].unsqueeze(1) epBp = jDK_[..., 2].unsqueeze(1) fUYa = WKvO * RyuO bEXe = LVAh * RyuO ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _eYH(jDK_):\n return KakW(GhxC(jDK_))", "def bULF(YylR, jDK_):\n CBO5 = D785(YylR)\n tw3e = OB3T(jDK_)\n ShHK = oyIN.linalg.inv(tw3e)\n return Pusg(oyIN.dot, [tw3e, CBO5, ShHK])", "def DWJ0(YKHO, YylR, jDK_):\n HpT6 = jDK_.x * jDK_.x\n CwFP = jDK_.y * jDK_.y\n LdZT = jDK_.z * jDK_.z...
[ "0.77115244", "0.73975813", "0.7377383", "0.7102505", "0.70717114", "0.6948339", "0.6948339", "0.68917334", "0.6866125", "0.684384", "0.6811629", "0.6698329", "0.66897124", "0.66434497", "0.66267127", "0.6610687", "0.6588424", "0.65657914", "0.6565408", "0.65514225", "0.65482...
0.6112975
77
Convert a translation vector into a 4x4 transformation matrix
def hYGs(U3qI): Kt_s = ht2j.zeros(U3qI.shape[0], 4, 4).to(device=U3qI.device) a1PO = U3qI.contiguous().view(-1, 3, 1) Kt_s[:, 0, 0] = 1 Kt_s[:, 1, 1] = 1 Kt_s[:, 2, 2] = 1 Kt_s[:, 3, 3] = 1 Kt_s[:, :3, 3, None] = a1PO return Kt_s
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sDby(XSoh):\n E3D9 = XTiz.identity(4)\n E3D9[:3, 3] = XSoh[:3]\n return E3D9", "def kAD3(YTKZ, jCkM, tDjx, EJog, X0Mf):\n SZFh = [[YTKZ, 0.0, 0.0, tDjx], [0.0, jCkM, 0.0, EJog], [0.0, 0.0, 1.0, X0Mf], [0.0, 0.0, 0.0, 1.0]]\n return SZFh", "def AEUj(he6J):\n y_o0 = he6J[:, :3].unsqueeze(-1...
[ "0.7007117", "0.70055926", "0.68361574", "0.6773908", "0.67304254", "0.66777366", "0.6620615", "0.66142714", "0.659806", "0.6578421", "0.65442073", "0.6473578", "0.63781995", "0.6365026", "0.6361383", "0.63528883", "0.6328717", "0.6317793", "0.6236431", "0.6167888", "0.615644...
0.7313729
0
Return datetime formatted string
def E3oo(_c1T, ITS7, rIAI): if _c1T and ITS7 and rIAI: return rIAI.localize(qcWV.datetime.strptime(_c1T + ITS7[:6], '%Y%m%d%H%M%S'), rIAI) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l7Na():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime())", "def dFdi():\n return JRYC.strftime(JRYC.now(), '%Y %m %d, %H:%M:%S')", "def Wq7q(YKHO, JRYC):\n if RlMg == '':\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', JRYC.timetuple())\n else:\n return ITS7.strftime(RlMg...
[ "0.7997798", "0.77770823", "0.76630706", "0.76426226", "0.75177515", "0.73710805", "0.7323137", "0.7318248", "0.724719", "0.72237486", "0.72237486", "0.71478397", "0.7129341", "0.71061337", "0.70944095", "0.7075704", "0.70343536", "0.70224285", "0.70098084", "0.69884104", "0....
0.0
-1
Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.
def k66M(YKHO): return YKHO._queryset_class(model=YKHO.model, using=YKHO._db, hints=YKHO._hints, query=iFpJ(YKHO.model))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO) -> ZYvt:\n raise NotImplementedError()", "def umWR(YKHO) -> b5hG:\n if isinstance(YKHO, type):\n raise TypeError(f'Calling qs() from class level is prohibited. Use {YKHO.__name__}.objects instead.')\n return YKHO._meta.model.objects.filter(pk=YKHO.pk)", "def k66M(YKHO):\n if Y...
[ "0.7948888", "0.7931393", "0.77572906", "0.7595054", "0.75879604", "0.7561867", "0.7481679", "0.7441888", "0.7441205", "0.7320367", "0.73123765", "0.72582096", "0.7242138", "0.723204", "0.7203037", "0.7075036", "0.6977017", "0.68811005", "0.6878501", "0.6877603", "0.6873012",...
0.814202
0
Show API version details Use raw_request in order to have access to the endpoints minus version and project in order to add version only back. For a full list of available parameters, please refer to the official
def wyhE(YKHO, DpZH): VWOq = TDhU(YKHO._get_base_version_url(), DpZH + '/') MOPg = YKHO.get_headers() MOPg['X-Auth-Token'] = YKHO.token _hkX, TBsA = YKHO.raw_request(VWOq, 'GET', headers=MOPg) YKHO._error_checker(_hkX, TBsA) TBsA = qQXR.loads(TBsA) YKHO.validate_response(uPxI.volume_api_vers...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ej5t(YKHO):\n S7eM = YKHO._session.get('/api/version', logon_required=False)\n YKHO._api_version = S7eM\n return YKHO._api_version", "def nUHY(YKHO, QePW):\n na1r.debug('request: %s ' % QePW)\n nPrm = ya8a['1.0']\n na1r.debug('data: %s ' % nPrm)\n na1r.debug('conf: sections:%s' % Fv2L.se...
[ "0.68244195", "0.67963713", "0.6789128", "0.6607861", "0.6575691", "0.65686363", "0.6542279", "0.6368842", "0.62973464", "0.6294424", "0.6278644", "0.62525284", "0.62256086", "0.62120175", "0.6207745", "0.62050945", "0.61999255", "0.61521757", "0.61321557", "0.6085211", "0.60...
0.6877292
0
Called when the user specifies an intent for this skill
def E97p(McO3, cuiw): print('on_intent requestId: %s, Session: %s' % (McO3['requestId'], cuiw)) E2VF = McO3['intent'] q8Qy = McO3['intent']['name'] if q8Qy == 'SendHevantePoints': return S1ST(E2VF, cuiw) elif q8Qy == 'GetPoints': return nkGx(E2VF, cuiw) elif q8Qy == 'GetName': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r...
[ "0.7143966", "0.6956116", "0.6949057", "0.6905333", "0.68928874", "0.67641324", "0.6754843", "0.6722764", "0.6720773", "0.67161995", "0.6699252", "0.6691263", "0.6670276", "0.6645522", "0.6642719", "0.6638686", "0.6607724", "0.6594981", "0.6575682", "0.65620786", "0.65609014"...
0.6570076
19
This function merges a bounding box based on bounding boxes from dets. It averages coordinates of `dets` proportional to their score.
def nx0A(c8oy, BFeB, Ylkb, X4bx=0.05): NAx7, NgKA = Ylkb Z84Z = XTiz.zeros(shape=4) assert BFeB.min() >= 0 if BFeB.max() == 0: for YRbF in range(c8oy.shape[0]): Z84Z += c8oy[YRbF] / c8oy.shape[0] else: D2Wo = 0 for YRbF in range(c8oy.shape[0]): JxU2 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lIj3(YKHO, l40E, cCrA):\n o4D3 = l40E[:, 0]\n si3g = l40E[:, 1]\n ajwV = l40E[:, 2]\n skBL = l40E[:, 3]\n ILBk = (ajwV - o4D3) * (skBL - si3g)\n T4Wy = cCrA.argsort()[::-1]\n uZq5 = []\n while T4Wy.size > 0:\n YRbF = T4Wy[0]\n uZq5.append(YRbF)\n frsW = oyIN.maximum...
[ "0.6488668", "0.64282006", "0.61744756", "0.5937983", "0.57044613", "0.5593589", "0.54668784", "0.5348895", "0.5347397", "0.5327971", "0.52798074", "0.5219619", "0.5205347", "0.51898164", "0.51837665", "0.5183669", "0.51730627", "0.51685834", "0.51186675", "0.5108181", "0.510...
0.5146696
18
Tokenizes the text using the rules in pattern tokens_re
def wr3U(l5Ny): return JVRB.findall(l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n ug3y = Dhdw.RegexpTokenizer(pattern='\\\\s+', gaps=True)\n s2mk = ug3y.tokenize(l5Ny)\n return s2mk", "def wr3U(YKHO, l5Ny):\n pRF9 = []\n for eOtH in WPdW(l5Ny):\n gLiZ = list(eOtH)\n if len(gLiZ) > YKHO.max_input_chars_per_word:\n pRF9.append(YKHO.unk_t...
[ "0.7344497", "0.72871596", "0.7249173", "0.7206536", "0.71866214", "0.7163994", "0.71570456", "0.71203876", "0.710686", "0.71013886", "0.7100129", "0.70861703", "0.7083121", "0.70809937", "0.7072553", "0.70716727", "0.7067638", "0.7033012", "0.70195645", "0.7012334", "0.69996...
0.781842
0
Allows all crossorigin traffic. This method can be used to restrict traffic from specific origins.
def s9hz(YKHO, hLRM): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c_tA(YKHO, c_tA):\n YKHO._allow_origins = c_tA", "def DMFV():\n if mjmQ(gCuF.STATIC_URL).startswith(xAU6.get('system.url-prefix')):\n return ''\n return ' crossorigin=\"anonymous\"'", "def FR1l(YKHO):\n return YKHO._allowed_origins", "def c_tA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y...
[ "0.7331257", "0.6995993", "0.67794615", "0.6632004", "0.6494943", "0.6382702", "0.63460565", "0.62882674", "0.6132412", "0.6128998", "0.59765357", "0.59584856", "0.5919484", "0.5883876", "0.5848344", "0.58368444", "0.57624024", "0.57331353", "0.57331353", "0.5718", "0.5689661...
0.5182645
57