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
Renders the about page.
def FR_8(QePW): assert isinstance(QePW, eu5F) if len(QePW.user.groups.all()) > 0: raise wPvU elif not nNXP.get_patient_id(QePW.user.username)[0]: return vKnz('/register') if 'selected_package' not in QePW.session or 'selected_doctor' not in QePW.session or 'selected_date' not in QePW.ses...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85647297", "0.8503022", "0.8448552", "0.8404981", "0.83938396", "0.82932264", "0.8270508", "0.8270508", "0.8270508", "0.8270508", "0.8270508", "0.8270508", "0.8270508", "0.8270508", "0.8270508", "0.8270508", "0.8270508", "0.8270508", "0.8270508", "0.82675695", "0.82430005"...
0.0
-1
Returns an MLWriter instance for this ML instance.
def Lsrz(YKHO): return iw9c(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fNaR(YKHO) -> 'SpectrumWriter':\n p93H = YKHO.get_writer_class()\n Cx8Z = YKHO.get_common_options(p93H)\n eWb7 = YKHO.get_options_sub_list(Cx8Z)\n return p93H(eWb7)", "def WJI9(YKHO):\n return YKHO._w", "def fNaR(YKHO):\n return YKHO.writer", "def zNNH(Emd4):\n return pRc1", "def y...
[ "0.68583494", "0.6371153", "0.6350456", "0.58435446", "0.56768924", "0.56760025", "0.56751126", "0.56653947", "0.5613375", "0.5522314", "0.5490886", "0.5457195", "0.5382449", "0.5356257", "0.5338692", "0.5296676", "0.52941763", "0.52941555", "0.5291349", "0.512562", "0.509649...
0.7473607
0
Returns an MLReader instance for our clarrier class.
def Ueki(Emd4): return JqH1(WuY8._getCarrierClass())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _QmQ(YKHO) -> ozT7:\n yNgc = YKHO.get_reader_class()\n Cx8Z = YKHO.get_common_options(yNgc)\n eWb7 = YKHO.get_options_sub_list(Cx8Z)\n return yNgc(eWb7)", "def p5wI(Emd4) -> eBH2[ozT7]:\n raise NotImplementedError(f6qd.get_reader_class.__qualname__)", "def _QmQ(FYKK):\n if oWPI(FYKK):\n ...
[ "0.67145205", "0.63031405", "0.60826933", "0.5918452", "0.5871343", "0.5871343", "0.5871343", "0.5871343", "0.58587795", "0.5790805", "0.578385", "0.5756405", "0.5725925", "0.5680944", "0.5567093", "0.5440979", "0.5423475", "0.5418237", "0.53865045", "0.5371842", "0.5369173",...
0.6619721
1
Convert this instance to a dill dump, then to a list of strings with the unicode integer values of each character. Use this list as a set of dumby stopwords and store in a StopWordsRemover instance
def wk_I(YKHO): u63I = Twxo.dumps(YKHO) u63I = g5Ba.compress(u63I) Sa_m = XYQe._active_spark_context LTYm = [str(YRbF) + ',' for YRbF in bytearray(u63I)] LTYm = [''.join(LTYm)] LTYm.append(WuY8._getPyObjId()) XriF = Sa_m._gateway.jvm.java.lang.String iQKb = Sa_m._gateway.new_array(XriF, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4Z4(YKHO):\n return [YKHO.id2word[or8S] for or8S in range(len(YKHO))]", "def o8c1(YKHO, nPrm):\n nPrm = nPrm.lower()\n A97Q = K9NE(nPrm, disable=['parser', 'ner'])\n s2mk = [eOtH.lemma_ for eOtH in A97Q if not (eOtH.is_stop or eOtH.is_digit or eOtH.is_punct)]\n s2mk = ' '.join(s2mk)\n retu...
[ "0.60043377", "0.5608391", "0.556416", "0.5543508", "0.55396116", "0.5526597", "0.5515431", "0.5506938", "0.5474769", "0.5450249", "0.5447673", "0.5434373", "0.5406406", "0.5399833", "0.53742355", "0.53567433", "0.5352834", "0.5352834", "0.53350633", "0.53278655", "0.5326807"...
0.0
-1
Return the target price for sell. Returning a None value means no price adjustment in next period.
def lqUA(YKHO): return super(mVZ4, YKHO).target_sell_price
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X6CX(YKHO):\n if YKHO.period_tick == 0:\n return tuKI.randint(1, 10)\n elif YKHO.period_tick % YKHO.perseverance == 0:\n qkN6, yA2c, _7x7 = YKHO.market.get_stock_price_last_period()\n naF9 = YKHO.period_tick / YKHO.perseverance\n iwjV = min(_7x7 + naF9, YKHO.money_balance * 0....
[ "0.81419784", "0.6844672", "0.66242075", "0.6513748", "0.64971614", "0.64535356", "0.6420463", "0.6391589", "0.6361705", "0.6354096", "0.6354096", "0.6354096", "0.6341095", "0.632262", "0.6271193", "0.62572587", "0.6253424", "0.62272304", "0.6215978", "0.6211557", "0.6207857"...
0.7485557
1
Return the target price for buy. Returning a None value means no price adjustment in next period.
def X6CX(YKHO): if YKHO.period_tick == 0: return tuKI.randint(1, 10) elif YKHO.period_tick % YKHO.perseverance == 0: qkN6, yA2c, _7x7 = YKHO.market.get_stock_price_last_period() naF9 = YKHO.period_tick / YKHO.perseverance iwjV = min(_7x7 + naF9, YKHO.money_balance * 0.5) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def okLh(YKHO):\n return YKHO.price", "def PeIU(YKHO):\n global target_buy_policy\n return f55Z", "def lqUA(YKHO):\n return super(mVZ4, YKHO).target_sell_price", "def pafM(YKHO):\n J2Xb = YKHO.standard_init_price()\n if YKHO.planet.status in [YKHO.tradeitem.dps]:\n J2Xb = J2Xb * 5 / ...
[ "0.7087548", "0.70154685", "0.69083875", "0.68033594", "0.66515213", "0.65531516", "0.6548589", "0.6430609", "0.6416498", "0.64011014", "0.6275642", "0.6267764", "0.62466043", "0.61733824", "0.6164931", "0.61350363", "0.61279386", "0.61251664", "0.611749", "0.61131585", "0.60...
0.8436822
0
Update enemy when spawned on screen
def QdZT(YKHO, Vjhr: pygame.Surface): Vjhr.blit(YKHO.game_obj, (YKHO.rect.x, YKHO.rect.y)) if YKHO.rect.y < Pu5K: YKHO.rect.centery += YKHO.speed else: PKex = tuKI.randint(0, Qd70 - 50) YKHO.rect.center = (PKex, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def udEL(YKHO):\n oeTy = afmj(YKHO)\n lrIf = oeTy.rect.width\n oeTy.x = YKHO.screen_width\n YKHO.aliens.add(oeTy)", "def iO1X(YKHO, YTVa):\n for tvqc in YTVa:\n if tvqc.type == a9eO.KEYDOWN:\n if tvqc.key == a9eO.K_k:\n YKHO.enemies.append(lUw0(1080, ajWY(0, 256)))...
[ "0.7218356", "0.71670794", "0.71525747", "0.7077861", "0.66883826", "0.64779687", "0.64769065", "0.64690465", "0.6459043", "0.63974386", "0.63718426", "0.6363147", "0.6314236", "0.6303166", "0.6279154", "0.62597454", "0.6242612", "0.6239759", "0.62307024", "0.62129307", "0.61...
0.7203382
1
Initialize explosion sprite object
def FIMM(YKHO, WKvO: int, LVAh: int, TVTK: int, H2v2: int): a9eO.sprite.Sprite.__init__(YKHO) YKHO.x = WKvO YKHO.y = LVAh YKHO.width = TVTK YKHO.height = H2v2 YKHO.curr_frame = 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, i1q_, OHQf):\n a9eO.sprite.Sprite.__init__(YKHO)\n YKHO.image = a9eO.image.load('image/hero.png')\n YKHO.rect = YKHO.image.get_rect()\n YKHO.rect.left, YKHO.rect.top = ((i1q_ - YKHO.rect.width) // 2, OHQf - YKHO.rect.height - 60)\n YKHO.speed = 10\n YKHO.active = True\n YKHO.exp...
[ "0.80656964", "0.7574345", "0.74488246", "0.74242085", "0.72471136", "0.72109133", "0.7178741", "0.71093243", "0.71093243", "0.70706517", "0.7042659", "0.7034842", "0.703393", "0.7002594", "0.6993242", "0.696758", "0.69625944", "0.6957768", "0.6939183", "0.6936095", "0.691895...
0.6731061
38
Home Page / Starting Page
def d6pt(QePW): return _1tc(QePW, 'index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)", "def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def kZiy():\n return TvZl('home_page.html')", "def bIYZ(YKHO, khtY,...
[ "0.8078616", "0.8078616", "0.7965687", "0.78534234", "0.7820242", "0.78082174", "0.77683127", "0.776779", "0.77405614", "0.7721624", "0.7712807", "0.7683539", "0.76715803", "0.766572", "0.766572", "0.766572", "0.766572", "0.766572", "0.766572", "0.766572", "0.766572", "0.76...
0.0
-1
Adds the undirected edge e to this edgeweighted graph.
def F1KG(YKHO, tTpl): Ty9i = tTpl.either() yzQ0 = tTpl.other(Ty9i) YKHO._validateVertex(Ty9i) YKHO._validateVertex(yzQ0) YKHO._adj[Ty9i].add(tTpl) YKHO._adj[yzQ0].add(tTpl) YKHO._E += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, tTpl):\n Ty9i, yzQ0 = tTpl\n YKHO[Ty9i][yzQ0] = tTpl\n YKHO[yzQ0][Ty9i] = tTpl", "def rz7z(YKHO, tTpl):\n WKvO = min(tTpl)\n LVAh = max(tTpl)\n if WKvO not in YKHO._vertices:\n YKHO.add_vertex(WKvO)\n if LVAh not in YKHO._vertices:\n YKHO.add_vertex(LVAh)\n YK...
[ "0.7664378", "0.74235487", "0.7333858", "0.7089898", "0.6960973", "0.6932024", "0.67674756", "0.6720188", "0.6709351", "0.6675252", "0.6548256", "0.65330565", "0.6486671", "0.64824134", "0.6456003", "0.644494", "0.6433653", "0.64014375", "0.6391925", "0.6390308", "0.6380196",...
0.8015526
0
Returns the degree of vertex v.
def tjON(YKHO, Ty9i): YKHO._validateVertex(Ty9i) return YKHO._adj[Ty9i].size()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjON(YKHO, Ty9i):\n YKHO._validateVertex(Ty9i)\n return YKHO._adj[Ty9i].size()", "def Mu_a(YKHO):\n return YKHO._degree_v", "def tjON(YKHO, Ty9i, ctM_=True):\n eQUr = YKHO._outgoing if ctM_ else YKHO._incoming\n return len(eQUr[Ty9i])", "def tURI(YKHO, SLBp: np.int_):\n return len(YKHO....
[ "0.8654037", "0.77240205", "0.7249587", "0.67295986", "0.67287475", "0.65444237", "0.6420053", "0.6316466", "0.62405914", "0.61732084", "0.6006609", "0.5992578", "0.5976445", "0.58604306", "0.58168817", "0.58168817", "0.5815217", "0.57448727", "0.57133615", "0.56907606", "0.5...
0.8718748
0
This function will be mounted on "/" and display a link to the hello world page.
def d6pt(PNq_, MP2k): MP2k('200 OK', [('Content-Type', 'text/html')]) return [str.encode('Hello World Application\n This is the Hello World application:\n\n`continue <hello/>`_\n\n')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wzeq():\n return TvZl('index.html')", "def Wzeq():\n return TvZl('hello.html')", "def HFT1():\n return TvZl('hello.html')", "def HFT1():\n return TvZl('hello.html')", "def HFT1():\n return TvZl('hello.html')", "def HFT1():\n return TvZl('hello.html')", "def HFT1():\n return TvZ...
[ "0.7291471", "0.6948371", "0.681084", "0.681084", "0.681084", "0.681084", "0.681084", "0.679947", "0.6770196", "0.6669932", "0.6659465", "0.66351384", "0.66299856", "0.66134864", "0.65835524", "0.65782815", "0.6545467", "0.6542566", "0.6542106", "0.65369827", "0.65193814", ...
0.0
-1
Return the name of this sensor.
def mWFP(YKHO) -> str: return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'", "def mWFP(YKHO):\n return f'{YKHO._na...
[ "0.94373417", "0.90874785", "0.9082654", "0.8935356", "0.8910483", "0.8826392", "0.8737171", "0.84649163", "0.84309494", "0.83938766", "0.82723033", "0.8232919", "0.8222632", "0.820558", "0.8143354", "0.8103642", "0.8097264", "0.8097264", "0.8097264", "0.8013187", "0.7928938"...
0.0
-1
Return the state of this sensor.
def QTBn(YKHO) -> str: return YKHO._state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO.device.device_data[YKHO.device_id][YKHO._sensor_type]", "def QTBn(YKHO):\n if YKHO.coordinator.data:\n return YKHO.coordinator.data[YKHO._sensor]", "def QTBn(YKHO):\n return YKHO.device.value()", "def QTBn(YKHO):\n return YKHO._device.value", "def QTBn(YKHO)...
[ "0.899807", "0.8458876", "0.8428019", "0.8406747", "0.8316484", "0.8255243", "0.8250053", "0.8179804", "0.8154293", "0.80524457", "0.8020047", "0.80064696", "0.785572", "0.785572", "0.78027344", "0.77941775", "0.77535903", "0.7744199", "0.7731679", "0.7731679", "0.7731679", ...
0.0
-1
Return the attributes of this sensor.
def R1i3(YKHO) -> str: return {'remo_device_id': YKHO._remo_device.id, 'remo_device_name': YKHO._remo_device.name, 'remo_firmware_version': YKHO._remo_device.firmware_version, 'remo_temperature_offset': YKHO._remo_device.temperature_offset, 'remo_humidity_offset': YKHO._remo_device.humidity_offset}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def lZBZ(YKHO):\n return YKHO.attributes", "def lZBZ(YKHO):\n return YKHO.attributes", "def h6gc(YKHO):\n return YKHO.attributes", "def h6gc(Emd4):\n return Emd4._attributes", "def azoT(YKHO) -> qe4Y.Output[h8nf[GySg[str, ImMB]]]:\n return qe4...
[ "0.7385076", "0.73819625", "0.73819625", "0.7373273", "0.7310102", "0.72853273", "0.72835916", "0.7242273", "0.72297716", "0.72171766", "0.72053057", "0.7192198", "0.7133266", "0.7133266", "0.7133266", "0.7133266", "0.7133266", "0.7133266", "0.7133266", "0.7133266", "0.713326...
0.68466836
61
return the first index of item in array or None if item is not found
def TrX4(qw7D, ZfUD): return Ngua(qw7D, ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KWqh(qw7D, ZfUD):\n qJWj = oyIN.where(qw7D == ZfUD)\n if len(qJWj) == 0:\n raise ValueError('{0} not found in array'.format(ZfUD))\n return qJWj[0][0]", "def Zgjh(ezWE, wEf2):\n if wEf2 is not None:\n return XTiz.searchsorted(ezWE, wEf2)\n else:\n return wEf2", "def tGyG...
[ "0.7654498", "0.76485795", "0.73254657", "0.7152995", "0.70068246", "0.6965024", "0.6964481", "0.6916574", "0.6872765", "0.6827316", "0.67693734", "0.6750015", "0.66990155", "0.668622", "0.66723377", "0.6657315", "0.66358805", "0.66342586", "0.661365", "0.6607807", "0.6569612...
0.6043014
66
return the index of item in sorted array or None if item is not found
def jUbz(qw7D, ZfUD): return Vrw5(qw7D, ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zgjh(ezWE, wEf2):\n if wEf2 is not None:\n return XTiz.searchsorted(ezWE, wEf2)\n else:\n return wEf2", "def tGyG(ezWE):\n for H5ew, BWXx in enumerate(ezWE):\n if BWXx == H5ew:\n return BWXx\n return -1", "def jUbz(LihS: int, ezWE: Sequence) -> h8nf[int]:\n if...
[ "0.7913142", "0.7233686", "0.7095712", "0.70499206", "0.7026747", "0.7015841", "0.69785255", "0.6939009", "0.6912953", "0.69073117", "0.688271", "0.6863251", "0.68293405", "0.6824078", "0.6762747", "0.6725547", "0.6689355", "0.6677653", "0.6647194", "0.6569108", "0.656099", ...
0.0
-1
Add a new experience to memory
def ilp5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins): GsKL = (QTBn, XeOP, vOGg, rxHc, _ins) for YRbF, G1Hx in enumerate(YKHO.data_keys): getattr(YKHO, G1Hx).append(GsKL[YRbF]) YKHO.size += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)", "def H2v5(YKHO, GsKL):\n YKHO.buffer.append(GsKL)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)\n YK...
[ "0.7760072", "0.7590868", "0.755468", "0.752751", "0.7450783", "0.72245246", "0.7153905", "0.70797545", "0.6969529", "0.691223", "0.691223", "0.691223", "0.691223", "0.691223", "0.691223", "0.691223", "0.691223", "0.691223", "0.691223", "0.691223", "0.6853843", "0.68222356"...
0.6956846
9
Return all experiences currently stored in memory and create an additional list containing all next_actions needed for calculating the Sarsa target
def mvm2(YKHO): Wc9F = {G1Hx: getattr(YKHO, G1Hx) for G1Hx in YKHO.data_keys} Wc9F['next_actions'] = oyIN.zeros_like(Wc9F['actions']) Wc9F['next_actions'][:-1] = Wc9F['actions'][1:] for G1Hx in Wc9F: Wc9F[G1Hx] = oyIN.array(Wc9F[G1Hx]) Wc9F[G1Hx] = ht2j.from_numpy(Wc9F[G1Hx].astype(oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tIKk(CLpY, mHdo, zNig):\n CLpY.reset()\n QTBn, vOGg, _ins, bGrB = CLpY.step(CLpY.action_space.sample())\n for nPrm in range(zNig):\n XeOP = CLpY.action_space.sample()\n rxHc, vOGg, _ins, bGrB = CLpY.step(XeOP)\n vOGg = max(0, vOGg * (1 - abs(rxHc[0] / 2.4)))\n if _ins:\n ...
[ "0.65599126", "0.64187276", "0.627804", "0.62750834", "0.62167037", "0.6204232", "0.6201586", "0.6178816", "0.61643094", "0.6137928", "0.61209476", "0.6115777", "0.60816115", "0.60333836", "0.59984523", "0.5971031", "0.5963727", "0.59198016", "0.5918101", "0.5852568", "0.5847...
0.0
-1
Applies 1 dimentional PassFilter function along the 'x' axis.
def LOAJ(bK54, V9So, T4Wy=5, drjR='high', QTg7=None, tAX0=None): Vb5F = (bK54.shape[0] - 1) / abs(bK54.max() - bK54.min()) Ud7_ = oyIN.zeros_like(V9So) for P6bq, YRbF in enumerate(V9So): Ud7_[P6bq] = pufA(bK54, YRbF, fs=Vb5F, order=T4Wy, btype=drjR, freq=QTg7, cutoff=tAX0) return Ud7_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yorg(YKHO, WKvO):\n YKHO.x = WKvO\n O48W = oyIN.exp(WKvO)\n T63k = oyIN.sum(axis=1)\n return O48W / T63k", "def KVH6(YKHO, WKvO):\n CzSl = YKHO.embedding(WKvO)\n WKvO = ht2j.unsqueeze(CzSl, 1)\n fUYa = []\n for yIp6 in YKHO.convs:\n ajwV = ht2j.tanh(yIp6(WKvO))\n ajwV = ...
[ "0.6332229", "0.60679555", "0.6055485", "0.6055485", "0.6055485", "0.6055485", "0.6055142", "0.6037685", "0.6035331", "0.6029113", "0.6011019", "0.6001742", "0.59940946", "0.5986207", "0.59413314", "0.59226274", "0.5894207", "0.58769023", "0.5873952", "0.5852246", "0.5844234"...
0.57574034
24
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)", "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\...
[ "0.8331214", "0.8284662", "0.82381004", "0.8229767", "0.82202226", "0.81864446", "0.81847763", "0.8175173", "0.8171541", "0.81699467", "0.81664646", "0.81645083", "0.81637454", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "...
0.7876496
63
Returns representation of the element in a orgmode format.
def rtRD(YKHO): l5Ny = '' l5Ny += '*' * YKHO.getLevel() + ' ' if YKHO.isTODO(): l5Ny += 'TODO ' if YKHO.isDONE(): l5Ny += 'DONE ' l5Ny += YKHO.getTitle() return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.element)", "def wHJl(YKHO):\n return f'<Element: {YKHO.name}, symbol: {YKHO.symbol}, atomic number: {YKHO.atomic_number}, mass: {YKHO.mass.to('amu')}>'", "def wHJl(YKHO) -> str:\n return '-'.join(eNCK(('OID',), map(str, YKHO.value)))", "def fXnP(YKHO):\n return f...
[ "0.62339616", "0.6186848", "0.61250925", "0.6067119", "0.60645974", "0.60282725", "0.602172", "0.6014843", "0.5955164", "0.594241", "0.59409225", "0.5921626", "0.5900952", "0.5885882", "0.5864846", "0.58377665", "0.58251494", "0.5807315", "0.5805708", "0.580071", "0.57953954"...
0.0
-1
Get the first day of the previous month.
def yeD3(JRYC): MOYU, fR9w, aY6a = (JRYC.year, JRYC.month, JRYC.day) if fR9w == 1: fR9w = 12 MOYU -= 1 else: fR9w -= 1 aY6a = 1 return _c1T(MOYU, fR9w, aY6a)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IBVe():\n return (qcWV.now().replace(day=1) + enlf(months=-1) + fCoM(days=-1)).strftime('%d-%m-%Y')", "def UAd2():\n return qcWV.now().replace(day=1).strftime('%d-%m-%Y')", "def I9bT(OKVy=1):\n f_eo = (yo7_ - enlf(months=OKVy)).replace(day=1)\n return f_eo", "def PPvI(_c1T):\n return _c1T....
[ "0.78284603", "0.72850215", "0.713952", "0.70345163", "0.70345163", "0.68359745", "0.6828617", "0.6729497", "0.6648446", "0.6602412", "0.6591734", "0.6583441", "0.6539718", "0.6396435", "0.63960034", "0.63960034", "0.63424087", "0.63333315", "0.6290044", "0.62161916", "0.6173...
0.75131726
1
Returns the arguments and options passed to the script.
def dCXb(): wvEv = j1Jz.ArgumentParser(description='Downloads all filings contained in the given EDGAR RSS feed from the SEC archive (skips already existing local files).') wvEv.add_argument('rss_feeds', metavar='RSS', nargs='+', help='EDGAR RSS feed file') wvEv.add_argument('--log', metavar='LOGFILE', dest...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mbGV(YKHO):\n pass", "def S8Uj(YKHO):\n raise NotImplementedError", "def hvVX():\n import argparse\n from pydft import base\n LgjS = 'Numerical DFT code.'\n wvEv = argparse.ArgumentParser(parents=[base.bparser], description=LgjS)\n for d7pR, xAU6 in xBHC.items():\n wvEv.add_argu...
[ "0.7738617", "0.7472278", "0.74134374", "0.723028", "0.71813923", "0.71432185", "0.7111274", "0.7094404", "0.70486176", "0.70251954", "0.7016088", "0.70114917", "0.6982486", "0.69504076", "0.6937289", "0.69269013", "0.6923406", "0.6922578", "0.69217217", "0.68955815", "0.6886...
0.0
-1
This function exports the shelve_variable value within the shelve file stored at path. This network is then converted to a networkx object and exported in GEXF format at filename.
def JzNi(ux0F='.', GR2d='hospital_network2', Tmv3='hospital_network.gexf', xA7f=None, Gkmm=None, irx1=None): NCls = mnO2.open(filename=ux0F) Cefo = NCls[GR2d] if xA7f or Gkmm: jHsn = DAnm.convert_to_attribute_nx(network=Cefo, is_regional_weight=irx1, state_dict=xA7f, region_dict=Gkmm) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZwQ(cuiw, sjh1, qaEx):\n uJiZ = cuiw.run(sjh1)\n with open(qaEx, mode='wb') as eHNT:\n t2lc.dump(uJiZ, eHNT)", "def utX4(YKHO, pmON):\n if pmON.split('.')[-1] == 'gexf':\n jHsn.write_gexf(YKHO.graph, pmON)\n else:\n jHsn.write_gpickle(YKHO.graph, pmON)", "def eVhC(RyIZ, Vq...
[ "0.5712423", "0.5633751", "0.5484997", "0.5479284", "0.5331205", "0.5299281", "0.5290899", "0.51925623", "0.51891124", "0.51826143", "0.5163183", "0.51541483", "0.5134981", "0.51240766", "0.51055336", "0.509559", "0.5079701", "0.5074755", "0.5072387", "0.50215954", "0.5000518...
0.5800383
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues, AGPF='plots', iiJX=''): if not leAC: if NkkI: leAC = 'Normalized confusion matrix' else: leAC = 'Confusion matrix, without normalization' Bcwd = YsYU(Y8eF, aMgO) KndY = OrFa(Y8eF, aMgO) if NkkI:...
{ "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
Remove items which values are set to None/False
def guY0(fil5): for G1Hx in list(fil5.keys()): if not fil5.get(G1Hx): fil5.pop(G1Hx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuKH(cmPJ):\n return list(map(cmPJ.pop, [YRbF for YRbF in cmPJ if cmPJ[YRbF] is None]))", "def qMA8(F6AI):\n return [WKvO for WKvO in F6AI if WKvO is not None]", "def qMA8(WKvO):\n if isinstance(WKvO, dict):\n return {G1Hx: qMA8(Ty9i) for G1Hx, Ty9i in WKvO.items() if Ty9i is not None}\n ...
[ "0.70964295", "0.6864615", "0.6724444", "0.67202586", "0.67028236", "0.6670721", "0.6594698", "0.65770525", "0.65501803", "0.6526514", "0.6467112", "0.64417225", "0.64248604", "0.64140356", "0.64122325", "0.6384041", "0.6372308", "0.6319401", "0.63018274", "0.62933004", "0.61...
0.0
-1
Split a multisentence text string into list of sentences.
def c0FK(l5Ny: str) -> x1iM[str]: return N3rN(l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UQZR(KCHu):\n KCHu = ZbWC.sub('\\\\s+', ' ', KCHu)\n KCHu = ZbWC.sub('[\\\\\\\\.\\\\\\\\?\\\\\\\\!]', '\\n', KCHu)\n return KCHu.split('\\n')", "def UQZR(KCHu):\n KCHu = ZbWC.sub('\\\\s+', ' ', KCHu)\n KCHu = ZbWC.sub('[\\\\\\\\.\\\\\\\\?\\\\\\\\!]', '\\n', KCHu)\n return KCHu.split('\\n')"...
[ "0.7635702", "0.7635702", "0.7540487", "0.7496285", "0.7493634", "0.7492456", "0.7425475", "0.739842", "0.73629653", "0.72575045", "0.7240598", "0.7196901", "0.6951527", "0.69097686", "0.6899655", "0.6832241", "0.68016315", "0.6789286", "0.6786462", "0.6726182", "0.66542006",...
0.758255
2
Create list chunks from a nested list of items using a moving window of a set size n. See Example for further details.
def Hpsi(DumB: List[Union[List[Any], Tuple]], exwG: int) -> x1iM[x1iM[ImMB]]: return [eHxA[YRbF:YRbF + exwG] for eHxA in DumB for YRbF in range(len(eHxA) - (exwG - 1))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VgfD(vC9B, exwG):\n return [vC9B[YRbF:YRbF + exwG] for YRbF in range(0, len(vC9B), exwG)]", "def DBDV(vC9B, exwG):\n for YRbF in Ni9Y(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRb...
[ "0.75400966", "0.75009805", "0.7482323", "0.74147797", "0.74140453", "0.7404512", "0.7395237", "0.7395237", "0.73797274", "0.735831", "0.73520947", "0.73436993", "0.73436993", "0.73436993", "0.73436993", "0.73436993", "0.7320747", "0.7320747", "0.7320747", "0.7320747", "0.732...
0.0
-1
take 1D float array of rewards and compute discounted reward
def AC1_(Mkmy): g2lU = oyIN.zeros_like(Mkmy) S8qo = 0 for a1PO in reversed(Ni9Y(0, Mkmy.size)): S8qo = S8qo * KMvS + Mkmy[a1PO] g2lU[a1PO] = S8qo return g2lU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for a1PO in reversed(range(0, len(vwlo))):\n S8qo = S8qo * lA6Z + vwlo[a1PO]\n g2lU[a1PO] = S8qo\n return g2lU", "def AC1_(vwlo, KMvS):\n AFmI = vwlo.shape\n if len(AFmI) == 1:\n g2lU = oyIN.zeros(shape=(*AFmI, 1),...
[ "0.8099422", "0.7838401", "0.77921754", "0.77410257", "0.7653085", "0.7597682", "0.75828874", "0.758029", "0.7578166", "0.7535342", "0.75183475", "0.7504073", "0.74670184", "0.7456061", "0.7433833", "0.74262124", "0.7393682", "0.73703516", "0.7355635", "0.73281944", "0.720141...
0.7405633
16
return une liste de deplacements et actions . 'deplacement' can be called to return a new taquin that results in sliding the '0' tile in the direction of 'action'.
def xASv(YKHO): def ar0Z(MDzo, iw9k): return lambda: YKHO._move(MDzo, iw9k) azOP = [] for YRbF, r845 in Hs6x.product(range(YKHO.width), range(YKHO.width)): TUcM = {'La gauche': (YRbF, r845 - 1), 'La droite': (YRbF, r845 + 1), 'Le haut': (YRbF - 1, r845), 'Le bas': (YRbF + 1, r845)} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ushV(YKHO, DNHh=None):\n if not YKHO._has_blocks_to_place(exclude=DNHh):\n return []\n AQSv = [joet(0, 2, 0)]\n for Kwmb in f8_X():\n AQSv.extend([Kwmb, Kwmb + joet(0, 1, 0)])\n if YKHO._get_block(YKHO._pos + Kwmb) in [z3yr, eZmG]:\n AQSv.append(Kwmb + joet(0, -1, 0))\n...
[ "0.62141126", "0.60475904", "0.5843229", "0.58258206", "0.5787421", "0.575338", "0.5712959", "0.56326526", "0.5626725", "0.562313", "0.55794054", "0.55721587", "0.55189013", "0.54927516", "0.54714584", "0.5457487", "0.54550946", "0.54527247", "0.5421905", "0.5417531", "0.5394...
0.8028319
0
Release a job server token.
def IksN(YKHO): Hy7s.write(YKHO.job_pipe[1], b'+')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A0Ys(YKHO, uIVB: int) -> None:\n pass", "def A1Qu(YKHO, GJIy: str, wnqS):\n eOtH = B0CY(hostname=GJIy, idp=YKHO.idp, access_token=wnqS)\n XIlI = yXnH(eOtH)\n YKHO.access_token = eOtH\n YKHO.expire = qcWV.fromtimestamp(XIlI['exp'])", "def ffZv(eOtH):\n eOtH.delete_instance()", "def ffZv(...
[ "0.5992998", "0.59886146", "0.58653545", "0.56642586", "0.5661181", "0.56066257", "0.5496472", "0.5405208", "0.5392759", "0.5392759", "0.5392759", "0.53320926", "0.53293824", "0.5267446", "0.5261687", "0.51501423", "0.51364803", "0.50824445", "0.50253326", "0.50114554", "0.49...
0.48641917
30
Get block by blockheight.
def wUnb(YKHO, I9Bo): for XkN1 in YKHO.blocks: if XkN1['height'] == int(I9Bo): return XkN1['hash']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o1MH(YKHO, H2v2: int):\n try:\n return YKHO.blocks[H2v2]\n except:\n return None", "def rQDC(H2v2, MOPg):\n if H2v2 == 0:\n print('retrieving genesis block...')\n return SHMZ\n else:\n c42p = MOPg[0]['height']\n Aofo = MOPg[c42p + H2v2 - 2]\n asser...
[ "0.7910839", "0.75199866", "0.7199962", "0.71526796", "0.6957179", "0.69451857", "0.6825774", "0.6778368", "0.6683295", "0.663941", "0.6634847", "0.65858114", "0.6550846", "0.65192556", "0.6489794", "0.6376854", "0.63726526", "0.6347726", "0.6345037", "0.63094896", "0.6278615...
0.68918943
6
Return the total number of blocks. When there is only one block in the blockchain, this function will return zero.
def hvui(YKHO): return len(YKHO.blocks) - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s7hW(YKHO) -> int:\n return YKHO._call_command(['getblockcount'])", "def hvui(YKHO):\n return YKHO.proxy.getblockcount()", "def HRKx(YKHO, SYlA: str) -> int:\n Aofo = YKHO.rpc_getblockcount()\n return int(Aofo)", "def HwCn(aBkf):\n Ylbp = 0\n for HHWj, Fg_i in aBkf.processed.items():\n ...
[ "0.81495243", "0.7846166", "0.7289228", "0.7109182", "0.7106814", "0.7081178", "0.7009169", "0.6926956", "0.6910237", "0.6862077", "0.6658309", "0.65508133", "0.65204716", "0.65009326", "0.6494726", "0.64684755", "0.64250606", "0.6421615", "0.6336308", "0.63043356", "0.630433...
0.71506417
3
Will turn off specified media player or all.
def Z_rv(ajET, g2g3=None): nPrm = {TYBi: g2g3} if g2g3 else {} ajET.services.call(Sugg, GrHz, nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z_rv(YKHO) -> None:\n YKHO._media_title = None\n YKHO._state = YKHO._player.turn_off()", "def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()", "def Z_rv(YKHO, **B2fa: Any) -> None:\n with YKHO._wemo_call_wrapper('turn off'):\n YKHO.wemo.off()", "async def async_turn_off(YKHO):\n aw...
[ "0.7197437", "0.66705227", "0.6556167", "0.6450495", "0.64414865", "0.6318604", "0.6179437", "0.6145305", "0.61380565", "0.6121687", "0.61111295", "0.6099013", "0.60869426", "0.59903985", "0.5958687", "0.59478444", "0.591615", "0.5904606", "0.59014803", "0.5888351", "0.587750...
0.0
-1
Send the media player the command for prev track.
def Piaw(ajET, g2g3=None): nPrm = {TYBi: g2g3} if g2g3 else {} ajET.services.call(Sugg, ujuC, nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOFw(YKHO):\n YKHO.handleCommand(28)", "async def async_media_previous_track(YKHO):\n await YKHO.local_meural.send_key_left()", "async def async_media_previous_track(YKHO):\n if not YKHO._slave_mode:\n if not YKHO._playing_mass:\n BWXx = await YKHO.async_call_linkplay_httpapi('se...
[ "0.8422303", "0.8077023", "0.8065289", "0.7757686", "0.76979566", "0.7632006", "0.76124644", "0.75877494", "0.7529895", "0.7453965", "0.7412885", "0.74040926", "0.7396807", "0.71261555", "0.69101214", "0.6822161", "0.678125", "0.6732375", "0.66207445", "0.6550796", "0.645439"...
0.70565987
14
Check if sharded table exists.
def sGru(YKHO, ko6r, NCls='default'): e5kH = getattr(YKHO.model, '_meta') tadn = '%s_%s_%s' % (str(e5kH.app_label), str(YKHO.model.__name__.lower()), ko6r) try: with siZ_[NCls].cursor() as N1p7: N1p7.execute('SHOW TABLES LIKE "%s%%"' % tadn) usx6 = N1p7.fetchall() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H3yv(YKHO, tyNF):\n YKHO.__open()\n xDcj = \"SHOW TABLES LIKE '{}'\".format(tyNF)\n YKHO.__cursor.execute(xDcj)\n Aofo = YKHO.__cursor.fetchall()\n YKHO.__close()\n if Aofo:\n return True\n else:\n return False", "def HBKT(YKHO, GTA_: str) -> bool:\n return i48E.inspect(...
[ "0.75403416", "0.7465445", "0.7445992", "0.7409866", "0.7366113", "0.7322037", "0.72624993", "0.7239359", "0.7191151", "0.7175744", "0.7163879", "0.71594816", "0.7132092", "0.7121704", "0.71188855", "0.70720303", "0.7068984", "0.7033991", "0.7027258", "0.6997101", "0.6990357"...
0.73350227
5
Return a list of products for the reaction.
def Ldyl(YKHO): return [G1Hx for G1Hx, Ty9i in BVGD(YKHO._metabolites) if Ty9i >= 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LnUU(YKHO, *qIxc):\n return _VfD.Reaction_getListOfProducts(YKHO, *qIxc)", "def Ldyl(YKHO):\n return YKHO._products", "def Ldyl(YKHO):\n return YKHO._products", "def uQsB(YKHO):\n return YKHO._make_get_request(YKHO._urls['products'])", "def Ldyl(YKHO):\n return list(msfn.select())", "d...
[ "0.7850744", "0.7386481", "0.7352541", "0.72666794", "0.7262857", "0.7106698", "0.70979744", "0.6962542", "0.6916809", "0.6908457", "0.685404", "0.6853027", "0.6771403", "0.67444324", "0.67289656", "0.672097", "0.67090744", "0.6664001", "0.66601497", "0.66251796", "0.6606335"...
0.0
-1
Initialize a count dictionary with words from the vocabulary
def rfYj(): JwHo = ['../_semtag_dataset_webanno_tfidf_inimigo.txt', '../_semtag_dataset_webanno_tfidf_publico.txt'] FUjE = [] for nHI3 in JwHo: with T_Uj.open(nHI3, 'r', 'utf-8') as hOYR: FUjE += hOYR.readlines() V22M = [yzQ0 for r8hN in FUjE for yzQ0 in r8hN.split()] V22M = list...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZFlL(YKHO, ziIx=3):\n yFuw = oRi_(int)\n for yAmx in YKHO.tokenized_corpus:\n for GIN8 in yAmx:\n yFuw[GIN8] += 1\n oF_s = {}\n oF_s['PAD'] = {'id': 0}\n oF_s['UNK'] = {'id': 1}\n for GIN8 in yFuw:\n if yFuw[GIN8] >= ziIx:\n oF_s[GIN8] = {'id': len(oF_s), '...
[ "0.7601095", "0.73794025", "0.7366958", "0.73403233", "0.7246775", "0.72317404", "0.7195916", "0.71952516", "0.7185713", "0.71781933", "0.7151542", "0.71442306", "0.706082", "0.7031777", "0.70280826", "0.70263475", "0.6974297", "0.69604725", "0.69459844", "0.6941313", "0.6934...
0.69051254
26
get method for getting the X axis point.
def TqJk(YKHO): return YKHO.__x_axis
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkBi(YKHO):\n return YKHO.__xaxis", "def NkBi(YKHO):\n return YKHO.__xaxis", "def NkBi(YKHO):\n return YKHO.__xaxis", "def NkBi(YKHO):\n return YKHO._xaxis", "def nIKw(YKHO):\n return YKHO.coords[0]", "def p5xg(YKHO):\n return YKHO.x_coord", "def WKvO(YKHO):\n return _VfD.Point...
[ "0.8184666", "0.8184666", "0.8174522", "0.7848605", "0.7667471", "0.75564843", "0.75510025", "0.7472178", "0.74503064", "0.7439643", "0.7432336", "0.7424268", "0.74176836", "0.74152404", "0.7327405", "0.7313518", "0.7263925", "0.725688", "0.7240946", "0.71747917", "0.7172833"...
0.80252904
3
get method for getting the Y axis point.
def OwtU(YKHO): return YKHO.__y_axis
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4e5(YKHO):\n return YKHO.__yaxis", "def i4e5(YKHO):\n return YKHO.__yaxis", "def yDCK(YKHO):\n return YKHO.__y", "def yDCK(YKHO):\n return YKHO.coords[1]", "def i4e5(YKHO):\n return YKHO._yaxis", "def bDS1(YKHO):\n return YKHO.y", "def bDS1(YKHO):\n return YKHO.y", "def bDS1...
[ "0.8018359", "0.8018359", "0.7782793", "0.77314866", "0.76514375", "0.7642088", "0.7642088", "0.7620652", "0.76143646", "0.7606231", "0.75195414", "0.75004864", "0.74970174", "0.74919397", "0.74416965", "0.74407864", "0.7425478", "0.7416375", "0.7407005", "0.7407005", "0.7399...
0.8224228
0
get method for getting the Y speed on axis.
def yLMQ(YKHO): return YKHO.__y_speed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLMQ(YKHO):\n return YKHO.__speed_y", "def OwtU(YKHO):\n return YKHO.__y_axis", "def ERGf(YKHO):\n return (YKHO.__x_speed, YKHO.__y_speed)", "def DppO(YKHO):\n return YKHO.Direction['y']", "def IN3Q(YKHO):\n return YKHO.yvelocity", "def i4e5(YKHO):\n return YKHO.__yaxis", "def i4e...
[ "0.846187", "0.73009276", "0.71485925", "0.7112363", "0.71077454", "0.7096992", "0.7096992", "0.7030312", "0.6988315", "0.6929665", "0.6924849", "0.6924849", "0.6877729", "0.6860263", "0.6856702", "0.68413603", "0.6839264", "0.68323064", "0.67850566", "0.6782221", "0.6755415"...
0.8630101
0
set method for updating the Y axis point.
def ZRnD(YKHO, K3Ez): YKHO.__y_axis = K3Ez
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z9NM(YKHO, *qIxc):\n return _VfD.Point_setY(YKHO, *qIxc)", "def lcEV(YKHO, eLqP):\n YKHO.y = eLqP", "def z9NM(YKHO, LVAh):\n YKHO.y = LVAh\n pass", "def z9NM(YKHO, LVAh):\n YKHO._y = LVAh", "def z9NM(YKHO, BWXx):\n YKHO.components[1] = BWXx", "def z9NM(YKHO, BWXx):\n YKHO.compone...
[ "0.8262282", "0.8131621", "0.7988872", "0.7881037", "0.7824714", "0.7824714", "0.77847975", "0.77512825", "0.7736993", "0.7734033", "0.7662968", "0.76068664", "0.75417495", "0.750359", "0.7495629", "0.7360112", "0.73216695", "0.7209196", "0.7143445", "0.7080116", "0.7080116",...
0.8447287
0
Returns starting state of the board.
def W9gz(): return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)", "def rEkR():\n return H66R.Board()", "def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(Y...
[ "0.8081514", "0.7890486", "0.7534929", "0.72789717", "0.72789717", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", ...
0.0
-1
Gets the bounding box.
def Mdqk(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JcC1(YKHO):\n return YKHO._domain.get_bounding_box()", "def HV3G(YKHO):\n YKHO._updateExtents()\n return YKHO.mBoundingBox", "def C1GJ(YKHO):\n if YKHO.bbox is None:\n YKHO.bbox = C1GJ(YKHO)\n return YKHO.bbox", "def C1GJ(YKHO):\n if YKHO.bbox is None:\n YKHO.bbox = C1GJ(Y...
[ "0.88838214", "0.87883323", "0.87609977", "0.87609977", "0.86359984", "0.83344686", "0.82580936", "0.81066144", "0.80679077", "0.8010906", "0.7966284", "0.79299307", "0.7926205", "0.78929335", "0.7884134", "0.7847089", "0.78388464", "0.781127", "0.7810267", "0.7750749", "0.77...
0.80430377
9
Converts the path to Python list. flat By default, this function returns a list of 2tuples [(x, y), ...]. If this argument is true, it returns a flat list [x, y, ...] instead. A list of coordinates.
def lovD(YKHO, TLbF=0): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U0vA(pmON):\n jNOo = []\n for Q6kx in pmON:\n jNOo.append(Q6kx.coords)\n return jNOo", "def hNWb(KhKn):\n HANU = KhKn.split(Hy7s.pathsep)\n mmBX = '\\n'.join(HANU)\n return mmBX", "def mFWN(YKHO):\n pmON = []\n for AU8u in YKHO.points:\n pmON.append(AU8u.to_dict())\n ...
[ "0.6834748", "0.6364971", "0.62120545", "0.60419685", "0.602828", "0.5930141", "0.5919437", "0.59075147", "0.58640325", "0.58632755", "0.5854564", "0.5850302", "0.5837483", "0.5694189", "0.56770545", "0.564585", "0.56415975", "0.56283337", "0.5617978", "0.5611478", "0.5605737...
0.5959347
5
Should raise value error for missing paramters
def au_q(YKHO): DQkc(ValueError, KHfJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iGZr(YKHO):\n raise NotImplementedError", "def u2Wo(YKHO):\n pass", "def pbtP(YKHO):\n raise NotImplementedError('Must be implemented in subclasses.')", "def OohG(AZgw, NArs, _Tn7):\n with cR0t(PLdA) as AJ5d:\n KYhi(**NArs)\n assert _Tn7 == str(AJ5d.value)", "def JskD():\n from...
[ "0.7665842", "0.7422029", "0.7388969", "0.7165575", "0.71186155", "0.6958547", "0.6919545", "0.6915483", "0.6876228", "0.68740815", "0.6863264", "0.6822957", "0.6819474", "0.6799659", "0.67493075", "0.6745627", "0.6743629", "0.67200637", "0.67170924", "0.6689392", "0.6677924"...
0.67942256
14
Test that mamba is called when set, and that we fail when mamba is not available or is not working. We mock the calls so we do not actually execute mamba (which is not installed in the test environment anyway)
def LC6e(Ehsq): def rwpW(HCmI, *qIxc, **B2fa): if HCmI[-1] == '--json': return Yn3K.CompletedProcess(HCmI, 0, qQXR.dumps({'envs': ['mlflow-mock-environment']}), None) else: return Yn3K.CompletedProcess(HCmI, 0) def aYYk(HCmI, *qIxc, **B2fa): if Hy7s.path.basenam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZtD_(xBHs, tfaR, RJyM, tCxN):\n KEkS('mpileaks')\n yvT9 = tyeH('mpileaks', fail_on_error=False)\n assert 'To set up shell support' in yvT9", "def t4zr(YKHO):\n TMAJ = CFMy(return_value={'retcode': 0, 'stderr': 'error', 'stdout': 'salt'})\n with Po4F.dict(YnUr.__salt__, {'cmd.run_all': TMAJ}):\...
[ "0.625824", "0.624828", "0.59064263", "0.5862657", "0.5823975", "0.5786053", "0.5762527", "0.57063794", "0.56847775", "0.5672596", "0.566921", "0.56542104", "0.56403804", "0.5640097", "0.56069046", "0.5606823", "0.56067246", "0.5604071", "0.5587542", "0.5574236", "0.55651575"...
0.7149246
0
Checks to see if bullets have hit targets. Updates scores and removes dead items.
def txKg(YKHO): for YBnT in YKHO.bullets: for pan_ in YKHO.targets: if YBnT.alive and pan_.alive: eLr0 = YBnT.radius + pan_.radius if abs(YBnT.center.x - pan_.center.x) < eLr0 and abs(YBnT.center.y - pan_.center.y) < eLr0: YBnT.alive = False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def txKg(YKHO):\n for YBnT in YKHO.bullets:\n for pan_ in YKHO.targets:\n if YBnT.alive and pan_.alive:\n eLr0 = YBnT.radius + pan_.radius\n if abs(YBnT.center.x - pan_.center.x) < eLr0 and abs(YBnT.center.y - pan_.center.y) < eLr0:\n if pan_.ty...
[ "0.8087623", "0.75796044", "0.7170211", "0.70926243", "0.7072155", "0.7008395", "0.6980659", "0.6949243", "0.69336337", "0.6897648", "0.6896673", "0.6882957", "0.68572", "0.68194926", "0.68054694", "0.6718617", "0.66884947", "0.6674571", "0.6637598", "0.6636564", "0.66161734"...
0.7868973
1
Checks to see if bullets, targets, or clouds have left the screen and if so, removes them from their lists.
def MQqD(YKHO): for YBnT in YKHO.bullets: if YBnT.is_off_screen(zMH2, vkJL): YKHO.bullets.remove(YBnT) for pan_ in YKHO.targets: if pan_.is_off_screen(zMH2, vkJL): YKHO.targets.remove(pan_) for tH0x in YKHO.clouds: if tH0x.is_off_screen(zMH2, vkJL): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRcs(YKHO):\n YKHO.bullets.update()\n for YBnT in YKHO.bullets.copy():\n if YBnT.rect.bottom <= 0:\n YKHO.bullets.remove(YBnT)\n YKHO._check_bullet_alien_collisions()", "def MQqD(YKHO):\n for YBnT in YKHO.bullets:\n if YBnT.is_off_screen(zMH2, vkJL):\n YKHO.bul...
[ "0.7334409", "0.7168508", "0.7166979", "0.69657123", "0.6924826", "0.6890432", "0.67304355", "0.6716313", "0.66257566", "0.6598381", "0.65911835", "0.65833485", "0.64644897", "0.63929385", "0.6364882", "0.6358019", "0.63353753", "0.63051176", "0.6267892", "0.620167", "0.61521...
0.7732627
0
Generates a WordCloud from text data using the wordcloud module. It will display 'max_words' words from the input text as a WordCloud image, which randomly displays the most frequently occurring words in a horizontal or vertical arrangement, making more frequent words larger in size. It is a useful visualization to qui...
def _ENN(nPrm, leAC=None, nUeQ=None, _TAj='black', di0c=None, nyMv=200, ln8n=40, NXpY=3, t3eI=None, m9uV=0.9): from wordcloud import WordCloud import matplotlib.pyplot as QrM1 wordcloud = WordCloud(background_color=_TAj, stopwords=di0c, max_words=nyMv, max_font_size=ln8n, scale=NXpY, random_state=t3eI, pref...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J4nh(YKHO, l5Ny):\n l5Ny = ' '.join((f'{GIN8}' for GIN8 in l5Ny))\n ZHfW = oyIN.array(hnIv.open(Hy7s.path.join(MWUr, 'cloud.png')))\n Uf4h = pWra(background_color='white', max_words=200, mask=ZHfW)\n Uf4h.generate(l5Ny)\n Uf4h.to_file(kePn, 'wordle.png')", "def J4nh(KSfM, Ux0P):\n QcNK.clf(...
[ "0.8311014", "0.7881627", "0.7864689", "0.7824832", "0.7822245", "0.74558395", "0.7449931", "0.73168725", "0.72181463", "0.71403974", "0.7072831", "0.70099926", "0.69715935", "0.69093853", "0.6890484", "0.6880627", "0.68572515", "0.68412375", "0.6635734", "0.65747505", "0.645...
0.7417773
7
Return a dictionary of sequences.
def rhje(uPnQ): KCHu = Rg82.parse(uPnQ, 'fasta') F_uu = Rg82.to_dict(KCHu) SPJf = {} for UB03 in F_uu: SPJf[UB03.split('_')[0]] = F_uu[UB03] return SPJf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i1Hk(YKHO):\n with open(YKHO.ff) as puyL:\n jWe2 = {}\n for mWFP, Q6uT in YKHO.readFasta(puyL):\n jWe2[mWFP] = Q6uT\n return jWe2", "def LCEf(YKHO):\n lWZq = {}\n Nyss = q9bz.objects.all().values('code_id', 'gene_code', 'sequences').order_by('code_id')\n for Q6uT in Ny...
[ "0.8054893", "0.72187805", "0.7113814", "0.6932926", "0.675327", "0.6697221", "0.6585134", "0.65065116", "0.64636534", "0.64041495", "0.635399", "0.6334322", "0.63191307", "0.6285398", "0.62833446", "0.62581813", "0.6243067", "0.6215262", "0.6188618", "0.6185774", "0.61823845...
0.0
-1
Extract the unique elements from a list of lists
def td0m(EKZF): return list(set(igrv(EKZF)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _QxW(Zuws):\n return list(dict.fromkeys(Zuws))", "def UwEG(iHrl):\n tisH = []\n for ZfUD in iHrl:\n if ZfUD not in tisH:\n tisH.append(ZfUD)\n return tisH", "def vaOw(uBiB):\n return set(uBiB)", "def ONhe(BDwY):\n return list(set(BDwY))", "def kcwm(qgK3):\n PwWw =...
[ "0.7752285", "0.7622415", "0.76199424", "0.75675076", "0.75641954", "0.75631917", "0.7473472", "0.74457526", "0.74089354", "0.7378857", "0.7292243", "0.7274385", "0.71824473", "0.714957", "0.7135371", "0.71213824", "0.7110844", "0.7102604", "0.7084292", "0.7068677", "0.701543...
0.8023848
0
Computes the optimal global threshold for a grayscale image by maximizing the variance between the two classes of pixels (i.e., light and dark). Operates efficiently by using the image histogram of the input image.
def qEmL(UvuN): QzFq = UvuN.histogram() P6Dd = None for a1PO in range(len(QzFq)): LFlW = QzFq[:a1PO + 1] _tIi = QzFq[a1PO + 1:] if sum(LFlW) * sum(_tIi) == 0: continue qZCl = sum(LFlW) * sum(_tIi) * (zHcj(LFlW) - zHcj(_tIi, len(LFlW))) ** 2 if P6Dd == None...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def op3j(LNo8, UNqI, vs6m, nxR3, YPaw=1):\n if UNqI >= 1:\n LNo8 = lgDm(LNo8, UNqI)\n Kn9d, Qx9S = q7H4(LNo8, vs6m)\n D4vZ = LNo8.mean()\n if nxR3 == 2:\n GvOD = oyIN.zeros(vs6m)\n Dogw = oyIN.arange(0, vs6m, 1).reshape(vs6m, 1)\n for P2GO in range(0, vs6m - 1, YPaw):\n ...
[ "0.6778451", "0.66713446", "0.66291255", "0.65077215", "0.6492973", "0.6267796", "0.6199048", "0.6120128", "0.60671455", "0.60521626", "0.5945233", "0.59353375", "0.59348774", "0.5884918", "0.58665776", "0.5853676", "0.5838776", "0.582108", "0.5816684", "0.5811029", "0.580289...
0.53212446
82
Get coordinates for vertices based on the rectangles rotation.
def R4Ss(YKHO): R4Ss = [] for Ty9i in YKHO.non_rotated_vertices(): WKvO, LVAh = (Ty9i[0], Ty9i[1]) BtFM = YKHO.pos.x + (WKvO - YKHO.pos.x) * epAf.cos(YKHO.rotation) - (LVAh - YKHO.pos.y) * epAf.sin(YKHO.rotation) ZYMa = YKHO.pos.y + (WKvO - YKHO.pos.x) * epAf.sin(YKHO.rotation) + (LVAh -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gFT2(YKHO):\n T8d8 = [YKHO.pos.x - YKHO.width / 2, YKHO.pos.y - YKHO.height / 2]\n hQHm = [YKHO.pos.x + YKHO.width / 2, YKHO.pos.y - YKHO.height / 2]\n jlSq = [YKHO.pos.x + YKHO.width / 2, YKHO.pos.y + YKHO.height / 2]\n bUZ8 = [YKHO.pos.x - YKHO.width / 2, YKHO.pos.y + YKHO.height / 2]\n return...
[ "0.7354635", "0.6756148", "0.6677719", "0.6611818", "0.64872533", "0.6416529", "0.6327575", "0.6281346", "0.6269531", "0.6269531", "0.6269531", "0.621683", "0.6213612", "0.617489", "0.60842246", "0.6039863", "0.60148287", "0.6014572", "0.59983444", "0.59813225", "0.5957984", ...
0.6830937
1
Moves all lines to center of window.
def Jsh1(YKHO): yzx_ = x7Ls.center(YKHO.window_width, YKHO.window_height) for zFiD in YKHO.lines.values(): zFiD.pos = lNLu(*yzx_) zFiD.set_vertices()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1AK(YKHO):\n rw4S = YKHO.frameGeometry()\n uZz5 = x5x0.QApplication.desktop().cursor().pos()\n Vjhr = x5x0.QApplication.desktop().screenNumber(uZz5)\n MppY = x5x0.QApplication.desktop().screenGeometry(Vjhr).center()\n rw4S.moveCenter(MppY)\n YKHO.move(rw4S.topLeft())", "def e39W(YKHO):\n ...
[ "0.68792963", "0.68393695", "0.6779639", "0.67767423", "0.67747927", "0.6710224", "0.6697853", "0.66565084", "0.65981454", "0.65597856", "0.65552425", "0.65437317", "0.65426046", "0.65303344", "0.6528591", "0.64767516", "0.64730334", "0.64730334", "0.6457272", "0.6419874", "0...
0.81741714
0
Deletes all TextLabel objects.
def WcMc(Emd4): del Emd4.text_labels[:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E4eK(YKHO):\n for iKQO in YKHO.list_labels:\n if iKQO is not None:\n iKQO.deleteLater()\n YKHO.list_labels.clear()", "def xnov(Emd4):\n Emd4.text_labels[:] = [GPIy for GPIy in Emd4.text_labels if not isinstance(GPIy, BatR)]\n del Emd4.markers[:]", "def QZHk(YKHO):\n for TZ9...
[ "0.7286506", "0.67453706", "0.6338942", "0.6310421", "0.6281789", "0.62800646", "0.625658", "0.62412405", "0.61279625", "0.6112248", "0.6076884", "0.6074945", "0.597047", "0.5952516", "0.5944838", "0.5940013", "0.59279794", "0.5896391", "0.5882896", "0.5865422", "0.58512825",...
0.83194375
0
Gets the Unicode Script property of any character. Based on Scripts.txt from Unicode Consortium.
def B6sC(hcXw): global scripts, indexes if not bS0K: for zFiD in open(FF0Z).readlines(): bS0K.append(int(zFiD[:5], 16)) JXH8.append(zFiD[6:-1]) try: H5ew = ord(hcXw) except: H5ew = ord(zVCt.normalize('NFC', hcXw)) return JXH8[Ce1H.bisect_right(bS0K, H5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def io9v(YKHO, B6sC):\n if B6sC in YKHO.script_characters['Script'].values:\n ovNB = list(YKHO.script_characters['Script'].values).index(B6sC)\n ajMr = list(YKHO.script_characters['Characters'][ovNB].decode('utf-8'))\n ZZqa = len(ajMr)\n bseI = ajMr[oyIN.random.randint(0, ZZqa)]\n ...
[ "0.6111511", "0.5640766", "0.5639877", "0.5502361", "0.5497456", "0.5497258", "0.5483367", "0.53710276", "0.53265375", "0.52960926", "0.526431", "0.52602774", "0.52389055", "0.52199024", "0.520892", "0.51514155", "0.5137121", "0.5132685", "0.5121968", "0.51209444", "0.5089513...
0.69344753
0
get unique values in a list
def kcwm(Kt9y): B6x2 = set(Kt9y) vaOw = list(B6x2) for WKvO in vaOw: return (WKvO,)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ONhe(BDwY):\n return list(set(BDwY))", "def vaOw(uBiB):\n return set(uBiB)", "def kcwm(BDwY):\n PwWw = set()\n aygV = PwWw.add\n return [WKvO for WKvO in BDwY if not (WKvO in PwWw or aygV(WKvO))]", "def kcwm(IqQl):\n hlel = []\n for ZfUD in IqQl:\n if ZfUD not in hlel:\n ...
[ "0.8291187", "0.78947407", "0.7867298", "0.78405404", "0.7671379", "0.7668306", "0.7664602", "0.7614855", "0.7596702", "0.75874764", "0.75768155", "0.75405586", "0.74842453", "0.74721646", "0.74668306", "0.74595475", "0.74502337", "0.74249834", "0.7391009", "0.7389136", "0.73...
0.76895905
4
Get the access control resource type of this resource.
def Qjbs(YKHO) -> str: return 'TABLE'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def a0Lp(YKHO) -> str:\n return qe4Y.get(YKHO, 'request_resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_t...
[ "0.7154274", "0.7154274", "0.68819296", "0.68560386", "0.68560386", "0.68560386", "0.68560386", "0.68560386", "0.6771251", "0.67627525", "0.6702661", "0.6587663", "0.6300098", "0.6292621", "0.6292621", "0.6257884", "0.62372", "0.62372", "0.6234189", "0.6218725", "0.6209053", ...
0.0
-1
Returns a random vector around the default mean
def ipzz(): return [tuKI.gauss(huOn, Efzr) for bGrB in range(uY1T)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhAC(JBMS, M1Jx):\n return tuKI.gauss(JBMS, M1Jx)", "def ADdS(YKHO, JBMS, UHFx=1, min=0, max=XTiz.inf):\n jzdc = (min - JBMS) / XTiz.sqrt(JBMS)\n Fg_i = (max - JBMS) / XTiz.sqrt(JBMS)\n return XTiz.int64(XTiz.round(eQSh.truncnorm.rvs(jzdc, Fg_i, loc=JBMS, scale=XTiz.sqrt(JBMS), size=UHFx)))", "...
[ "0.709052", "0.69539094", "0.6781963", "0.6727938", "0.6624372", "0.65475935", "0.6544358", "0.64601034", "0.63965577", "0.63930357", "0.637999", "0.6368736", "0.6358028", "0.63561004", "0.6350929", "0.6325413", "0.63241917", "0.63169307", "0.6315985", "0.63061875", "0.626604...
0.6042923
44
Returns all mirrors from database.
async def get_mirrors(QePW): B2Dn = QePW.GET.getone('page', None) bNfU = QePW.GET.getone('page_size', None) cAx9 = QePW.GET.getone('q', '') if B2Dn: try: B2Dn = int(B2Dn) except (ValueError, TypeError): return jA2G.Response(text='Incorrect value for page', status=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wJf8():\n return UG_t[:]", "def n8zX():\n return [iBIi for iBIi in J3Nq.find('board')]", "def pi1E(YKHO):\n return YKHO.db", "def aoD6(JZXy, Td1T, DHvp, eQYj, xedf):\n bo34.info('_ism_get_mirror_sources: Determining mirror sources.')\n C3ST = HdOI.Model(walls=DHvp, source=JZXy, receiver=Td...
[ "0.60189897", "0.5737089", "0.5689003", "0.5664445", "0.5648987", "0.5647171", "0.55707955", "0.5502979", "0.54678285", "0.5449182", "0.54244107", "0.539391", "0.53781986", "0.5354574", "0.53465503", "0.5312634", "0.52797055", "0.5229054", "0.5226839", "0.52085924", "0.518863...
0.63651407
0
Initialize dataset; store relevant data as attributes.
def VdMv(YKHO, gnAD='', gMbG={}): YKHO.datasets = gMbG YKHO.datasets_keys = gMbG.keys() YKHO.station = gnAD nPrm = {} Myuu = {} ' Looping over the datasets ' G9jH.info('*** Reading and Initializing the data from the netCDF files ') for G1Hx, Ty9i in gMbG.items(): G9jH.info(' Init...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, __n6):\n YKHO._dataset = __n6", "def FIMM(YKHO):\n YKHO.__dataset = None", "def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6", "def qqxd(YKHO, nPrm):\n assert type(nPrm) is dict, 'dict expected: %r' % type(nPrm)\n assert len(nPrm) is 1, 'size of dict should be 1: %r' % len(n...
[ "0.7702452", "0.75354517", "0.7373921", "0.7361813", "0.7323394", "0.7168059", "0.6972844", "0.6954769", "0.6882971", "0.6862791", "0.68157107", "0.67726296", "0.67627436", "0.6714026", "0.67115414", "0.670148", "0.67003167", "0.66919523", "0.6674322", "0.66650957", "0.664380...
0.0
-1
Converting to proper date_time adding the time_delta. Removes minutes rounding to closest integer hour.
def Iy05(KyOc, ppPa, __n6): if 'minutes' in Zsej: TlBy = [fCoM(minutes=float(YRbF)) + KyOc for YRbF in ppPa] elif 'hours' in Zsej: TlBy = [fCoM(hours=float(YRbF)) + KyOc for YRbF in ppPa] elif 'seconds' in Zsej: TlBy = [fCoM(seconds=float(YRbF)) + KyOc for YRbF in ppPa] "\n ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I3hM(JRYC=None, HlDX=60):\n if hasattr(JRYC, 'tzinfo'):\n JRYC.replace(tzinfo=None)\n yk4i = JRYC - JRYC.replace(hour=0, minute=0, second=0, microsecond=0)\n C6wh = yk4i.seconds\n Y3rN = (C6wh + HlDX / 2) // HlDX * HlDX\n return JRYC + qcWV.timedelta(0, Y3rN - C6wh, -JRYC.microsecond)", ...
[ "0.6142199", "0.608963", "0.6073281", "0.59808344", "0.5857538", "0.5805205", "0.58038676", "0.57710093", "0.5740354", "0.57135093", "0.5662744", "0.56545866", "0.56228036", "0.56104416", "0.5603499", "0.5587284", "0.5581943", "0.55743235", "0.5565142", "0.55090785", "0.54979...
0.58411443
5
Create a list of dictionaries, one for each station to be merged.
def ZTNC(ZEsH): Byax = {} for G1Hx, Ty9i in ZEsH.items(): RRlC = Hy7s.listdir(Ty9i) for eHNT in RRlC: gnAD = eHNT.split('_')[0] if gnAD not in Byax.keys(): Byax[gnAD] = {} if G1Hx == 'ncar': if 'trhc' in eHNT: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IeOM() -> x1iM[cuzp]:\n return oTFO", "def UPGP(YKHO):\n AF4l = sorted(YKHO.station_dict, key=YKHO.station_dict.get)\n return AF4l", "def Oj45():\n fxMV = cuiw.query(njvh.station, njvh.name)\n E1r2 = []\n for KCHu, exwG in fxMV:\n oD9Q = {}\n oD9Q['station'] = KCHu\n ...
[ "0.7072738", "0.6419095", "0.64149207", "0.63952416", "0.6348605", "0.63195777", "0.63054585", "0.629061", "0.62635905", "0.62019837", "0.613927", "0.6128751", "0.60761607", "0.6073298", "0.6069121", "0.6039403", "0.5968959", "0.59462744", "0.593414", "0.59236866", "0.5904651...
0.50811815
81
This routine returns the widget ID of a child widget by index. Indexes are 0 based, from 0 to one minus the number of widgets in the parent, inclusive. If the index is invalid, 0 is returned.
def eBR7(v3Zv, uQW8): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qY8h(YKHO, or8S):\n jIUO = YKHO.mdi_w.get_nth_page(or8S)\n return YKHO._native_to_child(jIUO)", "def qY8h(YKHO, or8S):\n jIUO = YKHO.widget.get_nth_page(or8S)\n return YKHO._native_to_child(jIUO)", "def F34A(YKHO, NxKu: int) -> int:\n d6pt = (NxKu - 1) // 2\n return d6pt if d6pt >= 0 else...
[ "0.7063816", "0.70228857", "0.68753934", "0.6642251", "0.65843135", "0.6494", "0.640338", "0.6398749", "0.6383007", "0.6326655", "0.63057804", "0.6271183", "0.61896485", "0.6182927", "0.6162978", "0.60978836", "0.6095024", "0.60679233", "0.6052714", "0.5999034", "0.59484094",...
0.745608
0
This routine returns the parent of a widget, or 0 if the widget has no parent. Root widgets never have parents and therefore always return 0.
def DsG_(v3Zv): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAwq(YKHO):\n if YKHO.parent:\n return YKHO.parent()\n else:\n return None", "def _AKB(Ty9i=None):\n if Ty9i is None or isinstance(Ty9i, PY8A):\n return Ty9i\n else:\n raise ValueError('parent must be a widget or None')", "def KwgP(Q6kx):\n if Q6kx == qpKq():\n ...
[ "0.7445262", "0.7267686", "0.70662576", "0.703078", "0.7023011", "0.6921735", "0.6909813", "0.690397", "0.6888465", "0.6866056", "0.6818259", "0.6818259", "0.6818259", "0.6814847", "0.6753504", "0.67467874", "0.67467874", "0.6732227", "0.6709426", "0.668803", "0.661991", "0...
0.76840097
0
This routine makes the specified widget be in the front most widget hierarchy. If this widget is a root widget, its widget hierarchy comes to front, otherwise the widget's root is brought to the front. If this widget is not in an active widget hiearchy (e.g. there is no root widget at the top of the tree), this routine...
def egKu(v3Zv): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X4OG(YKHO, mlUL):\n if mlUL in YKHO.widgets:\n YKHO.widgets.remove(mlUL)\n YKHO.widgets.insert(0, mlUL)\n for YRbF in YKHO.widgets:\n if YRbF.get_visible():\n if not YRbF == mlUL:\n YRbF.unfocus()", "def BBTk(YKHO, TEdI):\n KnxT = TEdI.get_toplevel()\n K...
[ "0.6002634", "0.5885957", "0.587441", "0.58202004", "0.5596649", "0.540797", "0.53865844", "0.52786", "0.52619934", "0.5255655", "0.5190883", "0.51295906", "0.5122694", "0.5016563", "0.50136936", "0.50136936", "0.49593613", "0.49176466", "0.48844266", "0.48817748", "0.4830086...
0.80461305
0
This routine returns true if this widget's hierarchy is the front most hierarchy. It returns false if the widget's hierarchy is not in front, or if the widget is not in a rooted hierarchy.
def fEtD(v3Zv): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def boPh(YKHO) -> bool:\n return bool(YKHO.tk_ref.wm_attributes('-topmost'))", "def alu6(YKHO):\n return YKHO.top", "def yAVs(YKHO) -> bool:\n COq6 = False\n YRcN = False\n if YKHO.boolean_expression:\n COq6 = YKHO.boolean_expression.check_for_top()\n if YKHO.expression:\n YRcN ...
[ "0.7081847", "0.67697656", "0.6670092", "0.66259086", "0.65124255", "0.6458956", "0.6443464", "0.6312447", "0.6308285", "0.62849045", "0.6203926", "0.6195798", "0.6183352", "0.61829406", "0.6163055", "0.61531126", "0.6105784", "0.6102047", "0.60829717", "0.60690075", "0.60681...
0.0
-1
Change the log level of the underlying nio lib Called every time the user changes the log level or log category configuration option.
def LhtV(Ghho, ABDL): if Ghho == 'encryption': Ghho = 'crypto' if Ghho == 'all': GDL6.setLevel(ABDL) else: GDL6.getChild(Ghho).setLevel(ABDL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pcXt(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['logLevel'] = BWXx", "def aFXM(ABDL):\n if 'debug' in ABDL:\n na1r.setLevel(G9jH.DEBUG)\n elif 'info' in ABDL:\n na1r.setLevel(G9jH.INFO)\n elif 'warning' in ABDL:\n na1r.setLevel(G9jH.WARNING)\n elif 'error' in ABDL:\n ...
[ "0.70830905", "0.679609", "0.67650396", "0.6763283", "0.6749128", "0.66922617", "0.6683922", "0.66680866", "0.6662998", "0.6593313", "0.65644073", "0.6507537", "0.6498464", "0.648326", "0.64190096", "0.6407268", "0.640491", "0.63788426", "0.6362697", "0.63389504", "0.633415",...
0.80028075
0
Determines the peak of this isotopic trace.
def hfRT(YKHO) -> PvyL: return YKHO.most_intense_point()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfRT(YKHO):\n pass", "def hfRT(YKHO):\n return YKHO.peak", "def hfRT(YKHO):\n return YKHO._data[0]", "def hfRT(YKHO) -> AzJI[aIGO, QFe1]:\n assert YKHO._data\n return YKHO._data[0][2]", "def CLuu(YKHO):\n P6sS = max(YKHO.data.max(), -YKHO.data.min())\n return float(P6sS) / YKHO.get...
[ "0.8299433", "0.8156179", "0.7843446", "0.7664795", "0.71375835", "0.6886308", "0.6848139", "0.66643375", "0.665419", "0.6631917", "0.65613925", "0.65507126", "0.65457046", "0.6545673", "0.65370995", "0.64345163", "0.6401966", "0.6293412", "0.6284962", "0.6264075", "0.6231685...
0.7977741
2
Generator (yield) for the main block of XSAMS for the atoms, with an inner loop for the states. The QuerySet that comes in needs to have a nested QuerySet called States attached to each entry in Atoms.
def cCXG(geHR): if not geHR: return yield '<Atoms>' for k3IH in _lQ4(geHR): v9Lt, U5bT = V8rm(k3IH) if v9Lt: yield U5bT continue yvY1 = lambda mWFP: RZMD(mWFP, Atom=k3IH) yield ('<Atom>\n<ChemicalElement>\n<NuclearCharge>%s</NuclearCharge>\n<El...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nnxq(YKHO):\n for eNCK in YKHO.chain_list:\n for jKyr in eNCK.fragment_list:\n for XUbj in jKyr.atom_list:\n yield XUbj", "def Nnxq(YKHO):\n for jKyr in YKHO.fragment_list:\n for XUbj in jKyr.atom_list:\n yield XUbj", "def qUBI(YKHO):\n for jKyr i...
[ "0.6705081", "0.65286386", "0.6414294", "0.64098495", "0.6398519", "0.6389361", "0.634098", "0.6316727", "0.6279771", "0.6216665", "0.6214714", "0.6159597", "0.6150255", "0.5910688", "0.57855797", "0.57404", "0.5729179", "0.571993", "0.5686551", "0.56258243", "0.56053466", ...
0.6096699
13
Generator for the XSAMS radiative transitions.
def xVuy(uhh_): if not kUz6(uhh_): return for ROjB in uhh_: v9Lt, U5bT = V8rm(ROjB) if v9Lt: yield U5bT continue yvY1 = lambda mWFP: RZMD(mWFP, RadTran=ROjB) yield '<RadiativeTransition>' JZ1r = yvY1('RadTransComment') if JZ1r: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rZ13(REGG, wspz, bhDI=None):\n rRVp = oyIN.array([HjSO] * len(REGG), dtype=Vi1E)[:, None]\n if not YKHO.use_previous_direction:\n REGG = oyIN.c_[REGG, rRVp]\n else:\n REGG = oyIN.c_[REGG, rRVp, bhDI]\n dixj = eHNT(REGG, *wspz)\n wCQ8 = dixj[0]\n BKVD = dixj[1:]\n return (wCQ8...
[ "0.6354086", "0.60217786", "0.59698755", "0.5910758", "0.59103173", "0.5873266", "0.56603825", "0.558565", "0.5538359", "0.55088437", "0.549612", "0.54885244", "0.5413966", "0.5388982", "0.5388166", "0.53495365", "0.5310545", "0.5292158", "0.52900004", "0.5254223", "0.5253228...
0.6279515
1
A wrapper class for a world model, adding functionality. This class is a wrapper for world models, taking care of initializing and training a new keras model, having different loss functions at its disposal and being able to save the currently held world model.
def FIMM(YKHO): YKHO.model = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZNAj(YKHO):\n raise NotImplementedError()", "def EmUK(YKHO):\n return q9wD(YKHO)", "def EmUK(YKHO) -> q9wD:\n return q9wD(YKHO)", "def iJjn(YKHO):\n G9jH.debug('Setting vanilla model')\n dnGG = YKHO.embed_word()\n SVxv = YKHO.embed_pos()\n Y3tf = YKHO.stack_latent_layers(YKHO.num_of_...
[ "0.66986465", "0.62097526", "0.6127516", "0.6087696", "0.6049108", "0.5847272", "0.5800785", "0.5653023", "0.5640337", "0.5625104", "0.5605086", "0.5602619", "0.5587485", "0.55251116", "0.5512752", "0.5511496", "0.5490208", "0.5470876", "0.5460689", "0.54506254", "0.54335976"...
0.0
-1
Returns currently held model.
def YrZb(YKHO) -> ZylS.keras.Model: if YKHO.model is None: YKHO._raise_none_model() return YKHO.model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FfJq(YKHO):\n return YKHO._model", "def AdDk():\n return ArHU()[-1]", "def Dety(YKHO):\n return YKHO._model", "def C3ST(YKHO):\n return _vtG.get(YKHO._model, YKHO._model)", "def YrZb(YKHO):\n return YKHO._model", "def YrZb(YKHO):\n return YKHO._model", "def LClM(YKHO):\n return...
[ "0.75744104", "0.7324611", "0.72642297", "0.7159412", "0.7104039", "0.7104039", "0.70187896", "0.70026296", "0.70026296", "0.70026296", "0.70026296", "0.70026296", "0.70026296", "0.70026296", "0.70026296", "0.70026296", "0.70026296", "0.6990008", "0.69863427", "0.6973448", "0...
0.61784714
67
Builds a sequential keras model with the given parameters. Using the parameters, this function builds a keras model with at least one fully connected Dense input layer and a Dropout layer before the output layer.
def HPKz(YKHO, vNnt: int=20, Y3Wb: int=2, GhuM: tuple=(4,), oLRV: tuple=3, lo24: float=0.5) -> ZylS.keras.Model: gMm8 = max(0, Y3Wb - 1) C3ST = ZylS.keras.Sequential() C3ST.add(ZylS.keras.layers.Dense(vNnt, input_shape=GhuM, activation=ZylS.nn.relu, dtype='float32')) for bGrB in range(gMm8): C3S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8cN(jHsn, fhcK, YoQM, AXU1, sMyr):\n C3ST = nMvt.Sequential()\n for YRbF in range(len(fhcK)):\n C3ST.add(nMvt.layers.Dense(fhcK[YRbF], activation=YoQM[YRbF], input_shape=(jHsn,), kernel_regularizer=nMvt.regularizers.l2(AXU1)))\n if YRbF + 1 < len(fhcK):\n C3ST.add(nMvt.layers.Dr...
[ "0.77884585", "0.76663834", "0.76144964", "0.74677616", "0.74079067", "0.74065465", "0.74048346", "0.73590547", "0.7356875", "0.72643083", "0.7247535", "0.72382766", "0.72290796", "0.7195372", "0.7178062", "0.7123901", "0.711823", "0.71028495", "0.709271", "0.7088976", "0.707...
0.7644446
2
Get a list of Spotify featured playlists.
def s5gJ(YKHO, vxW9: str=None, NCqB: str=None, E3oo: str=None, qoqK: int=20, vgXP: int=0) -> tuple: qQXR = YKHO._get('browse/featured-playlists', locale=NCqB, country=vxW9, timestamp=E3oo, limit=qoqK, offset=vgXP) return (qQXR['message'], Hugb(**qQXR['playlists']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s5gJ(YKHO, NCqB=None, vxW9=None, E3oo=None, qoqK=20, vgXP=0, **B2fa):\n return YKHO._get(ExMO.FEATURED_PLAYLISTS.value, locale=NCqB, country=vxW9, timestamp=E3oo, limit=qoqK, offset=vgXP, **B2fa)", "def u6Nl(YKHO):\n if YKHO.youtube is None:\n YKHO.youtube = k4Zd()\n return YKHO.youtube.playl...
[ "0.72855633", "0.6391307", "0.6188068", "0.61724615", "0.6140784", "0.60877794", "0.60118544", "0.5992542", "0.59573156", "0.59223896", "0.5908522", "0.57533693", "0.57139707", "0.57082343", "0.5702044", "0.5697859", "0.5627029", "0.5626732", "0.56253463", "0.56213564", "0.56...
0.6965126
1
Get a list of Spotify playlists tagged with a particular category.
def uK72(YKHO, VMw8: str=None, vxW9: str=None, qoqK: int=20, vgXP: int=0) -> Hugb: qQXR = YKHO._get(f'browse/categories/{VMw8}/playlists', country=vxW9, limit=qoqK, offset=vgXP) return Hugb(**qQXR['playlists'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V1zR(VMw8):\n UH1B = []\n for ZfUD in AY4k.category_playlists(VMw8)['playlists']['items']:\n UH1B.append(ZfUD['uri'])\n return UH1B", "def uK72(YKHO, VMw8=None, vxW9=None, qoqK=20, vgXP=0, **B2fa):\n return YKHO._get(ExMO.CATEGORY_PLAYLISTS.value.format(id=VMw8), country=vxW9, limit=qoqK, ...
[ "0.75077975", "0.70420605", "0.67834294", "0.6735561", "0.61261374", "0.5938397", "0.5816827", "0.5774014", "0.5679268", "0.5655356", "0.5645608", "0.5614732", "0.55989313", "0.55900055", "0.5434805", "0.5425665", "0.54161894", "0.5330487", "0.53260225", "0.53129303", "0.5307...
0.66011864
4
Blocks the thread, and returns the final generator return value. For now, always returns None.
def BWXx(YKHO): if YKHO._exception: raise YKHO._exception else: return YKHO.future.value()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r_eL(YKHO):\n while YKHO._is_running():\n yield YKHO._queue.get()", "def r_eL(YKHO):\n while YKHO._is_running():\n yield YKHO._queue.get()", "async def locked_next():\n async with stkY:\n try:\n Y3LQ = await anext(oHE7)\n except StopAsyncIteration:\n ...
[ "0.6590165", "0.6590165", "0.6345912", "0.62626296", "0.62183034", "0.60619", "0.6031922", "0.5923642", "0.5911255", "0.5910728", "0.5864941", "0.5858307", "0.5839081", "0.57928205", "0.576134", "0.57186776", "0.5717848", "0.57156634", "0.57009244", "0.56727815", "0.5653098",...
0.5303773
64
Look up dates in (lower) text and convert it to format YYYYMMDD
def pbww(FUjE): yLen = '(?P<day>0?[1-9]|[12][0-9]|3[01])([/.-]|\\s|\\s/\\s|\\.\\s)(?P<month>0[1-9]|1[012])([/.-]|\\s?|\\s/\\s|\\.\\s)(?P<y1>19|20)(?P<y2>[0-9][0-9])' FUjE = ZbWC.sub(yLen, '\\g<y1>\\g<y2>\\g<month>\\g<day>', FUjE) yABm = '(?P<month>janvier|janv.|févr.|février|mars|avr.|avril|mai|juin|juill.|...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JDE9(_c1T):\n if len(_c1T) > 10:\n _c1T = _c1T[:_c1T.rfind('-')]\n return j9eg(_c1T)", "def iCkc(hYEa):\n sp3M = ['Jan ', 'Feb ', 'Mar ', 'Apr ', 'May ', 'Jun ', 'Jul ', 'Aug ', 'Sep ', 'Oct ', 'Nov ', 'Dec ']\n x0eS = int(hYEa[5:7]) - 1\n CjKC = str(int(hYEa[-2:]))\n return sp3M[x0e...
[ "0.64162254", "0.63980806", "0.6351707", "0.6349577", "0.6349557", "0.62981117", "0.62629354", "0.62503743", "0.6236636", "0.62227446", "0.6221019", "0.6213746", "0.61752427", "0.6167384", "0.61662686", "0.6152096", "0.61512935", "0.61507475", "0.6108177", "0.60920626", "0.60...
0.6326153
5
Remove stop words from list of tokenized words
def aUcs(V22M): g68O = [] for GIN8 in V22M: if GIN8 not in Dhdw.corpus.stopwords.words('french'): g68O.append(GIN8) return g68O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g8pp(a1Ws, s2mk):\n return [a1PO for a1PO in s2mk if len(a1PO) > 2 and (not a1PO in a1Ws)]", "def aUcs(s2mk):\n hwHU = set(di0c.words('english'))\n s2mk = [yzQ0 for yzQ0 in s2mk if yzQ0 not in hwHU]\n return s2mk", "def g8pp(jKE7):\n hwHU = set(Dhdw.corpus.stopwords.words('english'))\n i6...
[ "0.86630034", "0.86183923", "0.85973936", "0.8596811", "0.8580546", "0.8363658", "0.8350171", "0.8328014", "0.8318595", "0.8263289", "0.82468146", "0.820217", "0.81783086", "0.81630206", "0.8158307", "0.8138284", "0.81271654", "0.8113883", "0.8099041", "0.8048383", "0.8027641...
0.77397335
45
Take a string and return a valid filename constructed from the string.
def LWVQ(YKHO, KCHu): jUwZ = '-_ %s%s' % (vIwR.ascii_letters, vIwR.digits) Ux0P = ''.join((Z9rn for Z9rn in KCHu if Z9rn in jUwZ)) Ux0P = Ux0P.replace(' ', '_') return Ux0P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LWVQ(KCHu: str):\n jUwZ = '-_.() %s%s' % (vIwR.ascii_letters, vIwR.digits)\n Ux0P = ''.join((Z9rn for Z9rn in KCHu if Z9rn in jUwZ))\n Ux0P = Ux0P.replace(' ', '_')\n return Ux0P", "def XZ66(KCHu):\n assert KCHu is not '' or KCHu is not None\n KCHu = str(KCHu).strip().replace(' ', '_')\n ...
[ "0.80483997", "0.7990114", "0.79504967", "0.78790665", "0.7862302", "0.7855451", "0.7855451", "0.7855451", "0.77264357", "0.7713825", "0.7674114", "0.75051665", "0.74796885", "0.74357426", "0.73312765", "0.7305911", "0.7069366", "0.7055742", "0.68535733", "0.6846436", "0.6834...
0.75294495
11
vat_return_reader(file_name) It creates a dataframe where key is file name and values are last column(2) of the VAT return table. In dataframe index name is file_name which function used
def AjTe(gIsw): jQ3Z = h3Xc.read_pdf(gIsw, pandas_options={'header': None}, encoding='cp775') print('tabula_read executed') Wa56 = jQ3Z.loc[0:45, 2] z0q4 = jQ3Z.loc[0:45, 1] Wa56 = Wa56.astype(str).str.replace(',', '.') Wa56 = rLdf.to_numeric(Wa56, errors='coerce') Wa56 = Wa56.rename(index=f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aB8y(cJgY):\n VEfa = []\n for gIsw in cJgY:\n VEfa.append(AjTe(gIsw))\n jQ3Z = rLdf.DataFrame(VEfa)\n jQ3Z = rLdf.concat([jQ3Z, rLdf.DataFrame(jQ3Z.sum(axis=0), columns=['Total']).T])\n return jQ3Z", "def Nwr9(IznC: str) -> rLdf.DataFrame:\n WPdU = rLdf.read_hdf(IznC).to_frame().rese...
[ "0.6553381", "0.6267433", "0.61484784", "0.60837567", "0.6040107", "0.6013871", "0.60014725", "0.5962569", "0.5934665", "0.59078276", "0.5901774", "0.585681", "0.5851989", "0.5822987", "0.58062553", "0.578261", "0.5773132", "0.57500386", "0.5749944", "0.5743115", "0.5730495",...
0.7444267
0
Restores the weights to its initial state.
def Jl8N(YKHO, cb_Q): cb_Q.run(YKHO._init_ops)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMkV(YKHO):\n YKHO._weights = _qLf(YKHO._tmp_weights)\n YKHO._tmp_weights = None", "def SiRx(YKHO):\n YKHO._weights.clear()", "def UMkV(YKHO):\n YKHO.head.reset_weights()", "def SiRx(YKHO):\n for YRbF in range(0, len(YKHO.current_state)):\n YKHO.current_state[YRbF] = 0\n for YRbF...
[ "0.83292174", "0.81181496", "0.8036005", "0.79819536", "0.7841501", "0.77813065", "0.74129915", "0.7284286", "0.7232603", "0.7145851", "0.71326935", "0.7121111", "0.7108211", "0.70592415", "0.70592415", "0.70592415", "0.70592415", "0.70592415", "0.70592415", "0.70592415", "0....
0.0
-1
Get the inverse map of a dictionary.
def _k4u(PqCj): ELIW = {} for G1Hx, Ty9i in PqCj.items(): ELIW[Ty9i] = ELIW.get(Ty9i, []) ELIW[Ty9i].append(G1Hx) return ELIW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FiZo(adIv):\n return dict(zip(adIv.values(), adIv.keys()))", "def GOZd(fGC9):\n ioID = dict([(BWXx, H5ew) for H5ew, BWXx in fGC9.iteritems()])\n if len(ioID) != len(fGC9):\n raise ValueError('Dictionary has no inverse (values not unique).')\n return ioID", "def DFu8(chwN):\n T1r2 = {T...
[ "0.7823355", "0.78208536", "0.7660109", "0.73263896", "0.71609616", "0.7050323", "0.704076", "0.6869903", "0.6867391", "0.684721", "0.6831286", "0.6781073", "0.6750609", "0.66596115", "0.66323453", "0.6607763", "0.6562681", "0.63653296", "0.6356175", "0.635491", "0.62886053",...
0.65597886
17
Calculates quantiles of the performance measure (EUR, CUM).
def NVga(nPrm, dfu2): o7bE = rLdf.qcut(x=nPrm[dfu2], q=4, labels=['q1', 'q2', 'q3', 'q4']) Pyrc = o7bE.to_frame(name=dfu2 + '_quantiles') zc1L = rLdf.merge(nPrm, Pyrc, right_index=True, left_index=True) zc1L.dropna(inplace=True) zc1L.sort_values(dfu2 + '_quantiles', inplace=True) return zc1L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7bE(YKHO):\n return YKHO._quantiles", "def zhWo(YKHO):\n nPrm = ['1.0', '2.0', '3.0', '4.0']\n jQ3Z = rLdf.Series(nPrm)\n HV8V = wzEN(jQ3Z.name)\n HV8V.update(jQ3Z)\n z39Z = HV8V.profile\n mudm = z39Z['quantiles']\n GxXX = mudm[249]\n tnty = mudm[499]\n yJVA = mudm[749]\n Eg...
[ "0.6870374", "0.6593091", "0.6546431", "0.6466556", "0.64169776", "0.6282493", "0.6277967", "0.6269792", "0.6266668", "0.62217057", "0.62207866", "0.61678153", "0.6154875", "0.6112417", "0.6062465", "0.59961915", "0.5946187", "0.59094936", "0.58980155", "0.58954215", "0.58683...
0.6700071
1
Formats duration in seconds into hours/minutes/seconds.
def DhpL(C6wh: float) -> str: if C6wh < 60: return f'{C6wh:.0f}s' elif C6wh < 3600: O66n = epAf.floor(C6wh / 60) C6wh -= O66n * 60 return f'{O66n}m{C6wh:.0f}s' else: Wave = epAf.floor(C6wh / 3600) C6wh -= Wave * 3600 O66n = epAf.floor(C6wh / 60) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TmWH(WbTE):\n return tz8A.format_seconds(WbTE)", "def TmWH(KCHu):\n return '%dh %dm' % (KCHu // 3600, KCHu // 60 % 60)", "def bFOe(C6wh):\n zbR6 = C6wh // 3600\n C6wh -= 3600 * zbR6\n eRPr = C6wh // 60\n C6wh -= 60 * eRPr\n return '%02dh%02dm%02ds' % (zbR6, eRPr, C6wh)", "def DhpL(Wb...
[ "0.85217184", "0.7836833", "0.7555421", "0.7504165", "0.74291956", "0.73961717", "0.7374347", "0.7245979", "0.7220644", "0.71687937", "0.7145608", "0.7116123", "0.7102851", "0.706115", "0.69954896", "0.6993543", "0.6990384", "0.6982351", "0.69813305", "0.6980337", "0.69369954...
0.79533637
1
Returns False if there is no record of this request in the queue.
def _Pzh(YKHO, QePW: str): try: YKHO.create_request_queue_if_not_exists() gGq6 = [] NCls = YKHO.get_db_safely() N1p7 = NCls.cursor() N1p7.execute('SELECT rowid FROM queue WHERE request = ?', (QePW,)) for rdlD in N1p7: gGq6.append(rdlD) if len(gGq6)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ebnO(YKHO):\n AIu6 = YKHO.db.crawl_queue.find_one({'status': {'$ne': YKHO.COMPLETE}})\n return True if AIu6 else False", "def A4KR(YKHO):\n if len(YKHO.queue) >= 1:\n return False\n else:\n return True", "def lsmZ(YKHO):\n return not YKHO.queue", "def FBfn(YKHO):\n return ...
[ "0.7761254", "0.7353593", "0.73497045", "0.7282266", "0.72345406", "0.72313976", "0.7220145", "0.7214304", "0.7213382", "0.7209384", "0.72033054", "0.719638", "0.71829516", "0.71829516", "0.7171092", "0.7171092", "0.7138942", "0.71205044", "0.7073632", "0.7073417", "0.7062273...
0.7227363
6
render the shipping index page
def yWpt(YKHO): bD7m = gxEw('shipping.views.index') geh0 = YKHO.client.get(bD7m) NaW5(geh0.status_code, 200) YKHO.assert_all_embeds(geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(QePW):\n return _1tc(QePW, 'order/index.html')", "def d6pt(YKHO):\n return TvZl('index.html')", "def d6pt(QePW):\n return _1tc(QePW, 'shop/index.html')", "def d6pt(QePW):\n return _1tc(QePW, 'county/index.html')", "def d6pt(YKHO):\n return TvZl('main/index.html')", "def d6pt(YKHO)...
[ "0.6734996", "0.6664564", "0.6596895", "0.64984626", "0.64853853", "0.6452392", "0.6431255", "0.6395023", "0.63930255", "0.6363208", "0.6333068", "0.6328872", "0.6289476", "0.626058", "0.6256419", "0.624702", "0.62385374", "0.61948824", "0.61948824", "0.619028", "0.6184865", ...
0.6123476
31
render the about milestone page and check all static files
def ORGs(YKHO): bD7m = gxEw('shipping.views.milestone.about', args=['junk']) geh0 = YKHO.client.get(bD7m) NaW5(geh0.status_code, 404) IaaG, iIep = YKHO._create_appver_milestone() bD7m = gxEw('shipping.views.milestone.about', args=[iIep.code]) geh0 = YKHO.client.get(bD7m) NaW5(geh0.status_cod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('pages/about.html')", "def vsuQ():\n return TvZl('/home/about.html')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def vsuQ():\n return TvZl('about.html')", "def vsuQ():\n return TvZl('about.html')"...
[ "0.673524", "0.66560435", "0.66424024", "0.6590649", "0.6590649", "0.65828234", "0.65828234", "0.65828234", "0.65828234", "0.65828234", "0.65828234", "0.65828234", "0.65828234", "0.65828234", "0.6553456", "0.6548892", "0.65428144", "0.6536933", "0.6530543", "0.65157187", "0.6...
0.71152353
0
Test that l10nchangesets is OK
def IjV1(YKHO): bD7m = gxEw('shipping.views.status.l10n_changesets') bD7m += '?av=fx1.0' geh0 = YKHO.client.get(bD7m) NaW5(geh0.status_code, 200) NaW5(geh0.content, 'da l10n da 0003\nde l10n de 0002\n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R6ur(YKHO):\n bD7m = gxEw('shipping.views.status.l10n_changesets')\n geh0 = YKHO.client.get(bD7m, dict(ms=''))\n NaW5(geh0.status_code, 404)\n geh0 = YKHO.client.get(bD7m, dict(av=''))\n NaW5(geh0.status_code, 404)\n geh0 = YKHO.client.get(bD7m, dict(ms='junk'))\n NaW5(geh0.status_code, 40...
[ "0.7990798", "0.5928953", "0.5864109", "0.5853911", "0.5824027", "0.5759493", "0.5725435", "0.57250375", "0.5697272", "0.5695094", "0.5680913", "0.56565404", "0.56111", "0.56110805", "0.5611074", "0.56000656", "0.5561978", "0.55356634", "0.55194396", "0.5493299", "0.54834634"...
0.85174173
0
Test that the ETag is sent correctly for the signoff() view.
def wf4S(YKHO): NOKp = YKHO.av NCqB = Uvqi.objects.get(code='de') bD7m = gxEw('shipping.views.signoff.signoff', args=[NCqB.code, NOKp.code]) geh0 = YKHO.client.get(bD7m) NaW5(geh0.status_code, 200) ajCK = geh0.get('etag', None) Ej5C(ajCK) xASv = eax5.objects.filter(signoff__locale__code=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxUH(YKHO):\n aevO = BJER(service='http://example.com')\n with Po4F('requests.post') as TMAJ:\n TMAJ.return_value.status_code = 500\n aevO.request_sign_out()\n YKHO.assertEqual(TMAJ.call_count, 0)", "def NZsr(YKHO, cb_Q):\n Mkmy = cb_Q.get(YKHO.etag_url)\n Mkmy.headers['Date'...
[ "0.63734233", "0.6311133", "0.6304702", "0.60959196", "0.6094256", "0.6070649", "0.59782", "0.59770703", "0.5951071", "0.5882903", "0.5880999", "0.587797", "0.58760524", "0.5840975", "0.5807254", "0.58063394", "0.57902133", "0.5758098", "0.57533705", "0.5744317", "0.57426274"...
0.8056692
0
Define a property to get the current moisture.
def BTJF(YKHO) -> int: return int(YKHO.get_state(YKHO.entity_ids['current_moisture']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lGmO(YKHO):\n if YKHO.moisture_sensor is None:\n return None\n else:\n return YKHO.moisture_sensor.percent", "def hrI1(YKHO) -> str:\n if HwRy.version_info[0] == 2:\n return YKHO.prop_unit\n else:\n return YKHO.prop_unit", "def tIhg() -> g_7g:\n return g_7g.meter"...
[ "0.716615", "0.6442214", "0.60769063", "0.5929878", "0.591405", "0.58590025", "0.58097017", "0.58088255", "0.58088255", "0.57895005", "0.5760491", "0.574464", "0.571247", "0.5703729", "0.56826425", "0.5652912", "0.5641939", "0.56413794", "0.56413794", "0.56413794", "0.5641379...
0.71711445
0
Return True if the product contains all given attributes
def IS06(YKHO, Lx3t, *o8Kj): for xC3W in list(o8Kj[0]): if not Lx3t.get(xC3W): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MwwV(YKHO):\n pass", "def hjmp(YKHO, NErK, Ct_v):\n getattr = GMHI('attribute_id')\n for H5ew, uOe2 in wk71(Ct_v, getattr):\n if set(NErK).intersection([WKvO.id for WKvO in uOe2]):\n return True\n return False", "def ceTe(YKHO):\n return _VfD.GeneProduct_hasRequiredAttribut...
[ "0.6555103", "0.65427995", "0.6379255", "0.63788354", "0.63499427", "0.63258404", "0.6317505", "0.63015825", "0.6262672", "0.6135526", "0.60812986", "0.607756", "0.607756", "0.60741305", "0.606284", "0.6059075", "0.60357183", "0.6017514", "0.60081744", "0.599927", "0.5997857"...
0.83780164
0
Retrieving a nonexistent object results in L{NonexistentObject}.
def km6D(YKHO): M5g4 = u'sha256:NOSUCHOBJECT' Csk6 = YKHO.remoteEntropyStore.getObject(M5g4) geh0 = YKHO.agent.responses.pop() YKHO.assertEqual([], YKHO.agent.responses) geh0.code = Xqgu.NOT_FOUND geh0.respond('Not found') eHNT = YKHO.failureResultOf(Csk6, sVX0) YKHO.assertEqual(eHNT.val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def km6D(YKHO):\n M5g4 = u'sha256:NOSUCHOBJECT'\n Csk6 = YKHO.contentStore.getObject(M5g4)\n return YKHO.assertFailure(Csk6, sVX0).addCallback(lambda tTpl: YKHO.assertEquals(tTpl.objectId, M5g4))", "def PnQU(YKHO, _sei):\n try:\n return YKHO.model.objects.get(pk=_sei)\n except YKHO.model.Do...
[ "0.7824186", "0.67373073", "0.6563881", "0.65270096", "0.6480515", "0.6472633", "0.64088774", "0.63989216", "0.6367677", "0.6307737", "0.62628543", "0.62545633", "0.62467724", "0.6230026", "0.61704266", "0.6144375", "0.6132909", "0.609876", "0.60891306", "0.6072646", "0.60597...
0.79790324
0
Retrieving a nonexistent object results in L{NonexistentObject}.
def km6D(YKHO): M5g4 = u'sha256:NOSUCHOBJECT' Csk6 = YKHO.contentStore.getObject(M5g4) return YKHO.assertFailure(Csk6, sVX0).addCallback(lambda tTpl: YKHO.assertEquals(tTpl.objectId, M5g4))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def km6D(YKHO):\n M5g4 = u'sha256:NOSUCHOBJECT'\n Csk6 = YKHO.remoteEntropyStore.getObject(M5g4)\n geh0 = YKHO.agent.responses.pop()\n YKHO.assertEqual([], YKHO.agent.responses)\n geh0.code = Xqgu.NOT_FOUND\n geh0.respond('Not found')\n eHNT = YKHO.failureResultOf(Csk6, sVX0)\n YKHO.assertE...
[ "0.79796344", "0.6737059", "0.6564446", "0.65277773", "0.648138", "0.64730996", "0.6409583", "0.6399509", "0.6368211", "0.6308746", "0.62631327", "0.6254307", "0.6247656", "0.62296337", "0.6170459", "0.61443335", "0.61339784", "0.6100137", "0.60886854", "0.6072009", "0.606000...
0.7825362
1
L{LocalStoreMigration._nextObject} obtains the next object after the most recently processed object, and flags it for migration.
def wud_(YKHO): H7lc = UlT0(store=YKHO.store, start=0, current=-1, end=1000, source=YKHO.contentStore, destination=YKHO.contentStore) BzZr = YKHO._mkObject() RL4V = YKHO._mkObject() gpRq = H7lc._nextObject() YKHO.assertIdentical(gpRq.obj, BzZr) E43s = H7lc._nextObject() YKHO.assertIdentical(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a6fL(raTv):\n if raTv.GetDown():\n return raTv.GetDown()\n while not raTv.GetNext() and raTv.GetUp():\n raTv = raTv.GetUp()\n return raTv.GetNext()", "def F8pI(YKHO):\n if not YKHO._buffer_size():\n return None\n return next(YKHO.delegate)", "def qalF(YKHO):\n try:\n ...
[ "0.6460679", "0.61260676", "0.56566924", "0.56364876", "0.5634483", "0.55991524", "0.5597627", "0.53920066", "0.53469473", "0.5307084", "0.5303236", "0.5228546", "0.5222105", "0.52044445", "0.51993746", "0.51993746", "0.5168968", "0.51581377", "0.5142219", "0.5108682", "0.509...
0.8178091
0
L{ImmutableObject.getContent} returns the contents of the object.
def JM1K(YKHO): YKHO.assertEquals(YKHO.successResultOf(YKHO.testObject.getContent()), 'somecontent')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kGys(YKHO):\n if not hasattr(YKHO, '_content'):\n YKHO._content = YKHO.get_content()\n return YKHO._content", "def kGys(YKHO):\n return YKHO._contents", "def BuGO(YKHO):\n return YKHO.contents", "def BoLg(YKHO) -> object:\n ...", "def EPt3(YKHO) -> GJ_A:\n pass", "def hGN5(YK...
[ "0.764971", "0.74619573", "0.74483526", "0.7428314", "0.73426175", "0.73295903", "0.73250276", "0.73224974", "0.73224974", "0.73224974", "0.73224974", "0.72086394", "0.71307653", "0.70915455", "0.69875276", "0.69052374", "0.6876712", "0.6835042", "0.6826521", "0.675867", "0.6...
0.5568083
94
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, Bs8Q): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80885184", "0.80885184", "0.805514", "0.7983044", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1