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
Close the application after tests
def tBIc(YKHO): YKHO.app.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)", "def tBIc(YKHO):\n YKHO.dlg.close(0...
[ "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7670811", "0.7670811", "0.7670811", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789", "0.7370458"...
0.8269683
0
Return information about the precursor ion, if any, that this scan was derived form. Returns `None` if this scan has no precursor ion
def _RWt(YKHO, amup: ScanBase) -> s6bf: Rxt9 = super(KWRs, YKHO)._precursor_information(amup) if Rxt9 is None: return None Rxt9.orphan = Rxt9.annotations.pop('ms_deisotope:orphan', None) == 'true' Rxt9.defaulted = Rxt9.annotations.pop('ms_deisotope:defaulted', None) == 'true' uWpf = Rxt9.ann...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hTQU(YKHO):\n return YKHO.precursor_onnx_node_dict", "def Ps4b(YKHO, Ruml):\n pPTc = IO_k.automation.VARIANT()\n _hF9 = Q8vf()\n P1dF = YKHO.source.GetPrecursorInfoFromScanNum(Ruml, pPTc, dWW6(_hF9))\n if P1dF:\n raise IOError('GetPrecursorInfoFromScanNum error :', P1dF)\n if pPTc.va...
[ "0.6237895", "0.6222567", "0.5665408", "0.5577752", "0.536285", "0.53193295", "0.52701044", "0.5228429", "0.52049154", "0.51697373", "0.51310706", "0.51073563", "0.5099859", "0.50936157", "0.50504726", "0.50162107", "0.49991596", "0.49991596", "0.49839443", "0.49665812", "0.4...
0.6967907
0
Change Magoji's perfix per guild
async def prefix(YKHO, OaeV: Context, *, XP5J: Optional[str]): if not XP5J: return await OaeV.send_help(OaeV.invoked_with) if len(XP5J) >= 255: return await OaeV.send("That's an invalid prefix!") await YKHO.bot.db.update_guild_prefix(OaeV.guild.id, XP5J) await OaeV.send(f'Your prefix for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def punish(YKHO, OaeV, mS46: discord.Member):\n if OaeV.invoked_subcommand is None:\n if mS46:\n tO9_ = ''\n N5z6 = OaeV.message.server\n VlDb = YKHO.bot.get_cog('Mod')\n if N5z6.id not in YKHO.json:\n YKHO.json[N5z6.id] = {}\n j...
[ "0.57961524", "0.5518897", "0.54845047", "0.547572", "0.54441726", "0.5373057", "0.5365912", "0.52676183", "0.52659696", "0.5265599", "0.5262725", "0.5243225", "0.52266884", "0.52208185", "0.5207555", "0.5196051", "0.51312745", "0.51265585", "0.5109829", "0.50937295", "0.5089...
0.5670204
1
Serializes this instance to a Python dictionary.
def MNRr(YKHO): hlel = jth9.deepcopy(YKHO.__dict__) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> dict:\n pass", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def sS6L(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO) -> dict:\n return YKHO.__data__", "def _fYl(YKHO) -> cuzp[str, ImMB]:\n return B4us(YKHO)", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(Y...
[ "0.8867926", "0.8861291", "0.8325109", "0.8323158", "0.8313032", "0.8288802", "0.8288802", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8251281", "0.8234439", "0.8234439", "0.8216978", "...
0.0
-1
Returns the output tensor at the given index.
def QEIX(mh5P, d6pt): T8hE = mh5P.get_output_details()[d6pt] vhpA = oyIN.squeeze(mh5P.get_tensor(T8hE['index'])) return vhpA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QEIX(YKHO, d6pt):\n T8hE = YKHO.od_interpreter.get_output_details()[d6pt]\n vhpA = oyIN.squeeze(YKHO.od_interpreter.get_tensor(T8hE['index']))\n return vhpA", "def QEIX(mh5P, d6pt):\n T8hE = mh5P.get_output_details()[d6pt]\n vhpA = oyIN.squeeze(mh5P.get_tensor(T8hE['index']))\n return vhpA"...
[ "0.871562", "0.85215604", "0.847111", "0.847111", "0.84471357", "0.8276496", "0.8211913", "0.81790316", "0.8004202", "0.8002591", "0.7881674", "0.76799023", "0.763172", "0.7389989", "0.7274202", "0.7253508", "0.72314173", "0.7168275", "0.67699057", "0.6659459", "0.6655133", ...
0.84590614
4
Selects an action uniformly at random.
def GHEz(YKHO, rNYq): XeOP = oyIN.random.randint(YKHO._num_actions) return XeOP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tuKI(YKHO, xASv):\n return tuKI.choice(xASv)", "def RcWY(YKHO):\n return tuKI.choice(YKHO.action_space)", "def V5uW(YKHO, HU0t):\n return oyIN.random.choice(HU0t)", "def XeOP(YKHO, QTBn):\n return tuKI.randrange(YKHO.action_space.n)", "def su1c(YKHO):\n return tuKI.choices(YKHO.primordia...
[ "0.82174164", "0.81158274", "0.80707705", "0.8005483", "0.7974927", "0.7955447", "0.7942861", "0.7942861", "0.7942861", "0.78995126", "0.7884848", "0.78589565", "0.7848741", "0.78362644", "0.7771238", "0.7761339", "0.77523583", "0.7725801", "0.7669097", "0.76610184", "0.76560...
0.7845691
13
Carriage Return Helper Function Prints an arbitrary number of blank spaces followed by a carriage return to clear the terminal line.
def WZxr(): print(70 * ' ', end='\r')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7Bk():\n Y7Bk = '\\n' * 50\n print(Y7Bk)", "def Y7Bk():\n print('\\n' * 100)", "def n294():\n print('\\n')", "def epZp(u54L=Iyjy, E_J_=True):\n mDhr(' ', no_border=E_J_, length=u54L)", "def OTQF(vIwR):\n HwRy.stdout.write('\\r{0}'.format(vIwR))\n HwRy.stdout.flush()", "def WZxr(...
[ "0.74624467", "0.730859", "0.7188103", "0.71716017", "0.7157726", "0.71332735", "0.71153957", "0.6982753", "0.6974863", "0.6917888", "0.6896277", "0.6889062", "0.6884775", "0.6850949", "0.6760801", "0.6735351", "0.67151964", "0.67140436", "0.6699015", "0.6644807", "0.6643989"...
0.79985726
0
Returns the postal address as dictionary.
def psDQ(YKHO): if YKHO.address is None: return {} else: return {'line1': YKHO.address.line1, 'line2': YKHO.address.line2, 'city': YKHO.address.city, 'state': YKHO.address.state, 'code': YKHO.address.zip_code, 'country': YKHO.address.country.code.upper()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xb2b(YKHO):\n return YKHO._postal_address", "def _fYl(YKHO):\n nPrm = {'address_id': YKHO.address_id, 'address_type': YKHO.address_type, 'address': YKHO.address, 'city': YKHO.city, 'state': YKHO.state, 'zip': YKHO.zip}\n return nPrm", "def Fm4y(YKHO):\n return {'first_name': (YKHO.name or '').s...
[ "0.7160712", "0.7014068", "0.6981556", "0.6752296", "0.6739923", "0.67391634", "0.659999", "0.65878254", "0.6516534", "0.6507783", "0.64617705", "0.64598006", "0.6451981", "0.64362377", "0.6417217", "0.64123946", "0.63464963", "0.6259066", "0.6248969", "0.6242967", "0.623273"...
0.80178654
0
Delete a product from the store
def wL2u(QePW, Mc9N): if not QePW.user.is_superuser: yEHD.error(QePW, 'Sorry, only FitIt owners can do that.') return vKnz(gxEw('home')) Lx3t = Iofl(msfn, pk=Mc9N) Lx3t.delete() yEHD.success(QePW, 'Product deleted!') return vKnz(gxEw('products'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(Mc9N):\n Lx3t = NMoC(Mc9N)\n NCls.session.delete(Lx3t)\n NCls.session.commit()", "def wL2u(QePW, Mc9N):\n if not QePW.user.is_superuser:\n yEHD.error(QePW, 'Sorry, only store owners can do that.')\n return vKnz(gxEw('home'))\n Lx3t = Iofl(msfn, pk=Mc9N)\n Lx3t.delete()\n ...
[ "0.83055526", "0.8085745", "0.8052908", "0.8027032", "0.8021017", "0.7918575", "0.78619266", "0.786019", "0.78178996", "0.77837086", "0.7782625", "0.77742875", "0.77440405", "0.76977885", "0.76881593", "0.7682733", "0.7680423", "0.7645175", "0.76359785", "0.7632395", "0.76215...
0.77429307
13
return self != other
def Vdqg(YKHO: T[K], Elif: T[K]) -> bool: return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return not YKHO != Elif", "def xa14(YKHO, Elif):\n return not YKHO != Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return n...
[ "0.9052793", "0.9052793", "0.9009141", "0.8982134", "0.8982134", "0.8982134", "0.8982134", "0.8982134", "0.8980366", "0.8980366", "0.8980366", "0.8980366", "0.8980366", "0.8980366", "0.8980366", "0.8980366", "0.8980366", "0.8980366", "0.8980366", "0.8980366", "0.8980366", "...
0.0
-1
return self < other
def JWbp(YKHO: T[K], Elif: T[K]) -> bool: return YKHO != Elif and YKHO <= Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWbp(YKHO, Elif):\n return not YKHO > Elif", "def JWbp(YKHO, Elif):\n return YKHO.__cmp__(Elif) < 0", "def JWbp(YKHO, Elif):\n return YKHO <= Elif and YKHO != Elif", "def JWbp(YKHO, Elif):\n return YKHO._value < Elif._value", "def JWbp(YKHO, Elif):\n return True", "def JWbp(YKHO, Elif)...
[ "0.89979815", "0.8990163", "0.89768904", "0.8926173", "0.8899682", "0.8883686", "0.8880734", "0.88783556", "0.8869751", "0.8869751", "0.8869751", "0.8865533", "0.8865533", "0.8865533", "0.881367", "0.87941426", "0.87498534", "0.8745352", "0.8724775", "0.87067443", "0.86752313...
0.86511123
23
return self <= other
def TPjt(YKHO: T[K], Elif: T[K]) -> bool: return (YKHO / Elif).is_never
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zcf_(YKHO, Elif):\n return Elif <= YKHO", "def TPjt(YKHO, Elif):\n return YKHO <= Elif", "def jmxi(YKHO, Elif):\n return Elif <= YKHO and YKHO != Elif", "def Zcf_(YKHO, Elif):\n return YKHO == Elif or YKHO > Elif", "def Zcf_(YKHO, Elif):\n return YKHO == Elif or YKHO > Elif", "def JWbp...
[ "0.9060758", "0.8910563", "0.8809175", "0.8731923", "0.8702487", "0.8647356", "0.86326563", "0.86326563", "0.86071485", "0.86046755", "0.85978293", "0.8579771", "0.8565842", "0.85495466", "0.85424817", "0.85384625", "0.8532441", "0.85151273", "0.85151273", "0.8501154", "0.848...
0.0
-1
return self > other
def jmxi(YKHO: T[K], Elif: T[K]) -> bool: return Elif < YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, Elif):\n return not (YKHO == Elif or YKHO < Elif)", "def jmxi(YKHO, Elif):\n return YKHO.value > Elif.value", "def jmxi(YKHO, Elif):\n return YKHO.value > Elif.value", "def jmxi(YKHO, Elif):\n return YKHO.value > Elif.value", "def jmxi(YKHO, Elif):\n return YKHO.__cmp__(Elif) ...
[ "0.88184917", "0.87747055", "0.87747055", "0.87747055", "0.8774127", "0.8734969", "0.87047094", "0.86886746", "0.8684662", "0.86766976", "0.86766976", "0.86512464", "0.8583884", "0.8468499", "0.84215045", "0.84112865", "0.8392849", "0.8375853", "0.8365308", "0.8342715", "0.83...
0.840723
16
return self >= other
def Zcf_(YKHO: T[K], Elif: T[K]) -> bool: return Elif <= YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zcf_(YKHO, Elif):\n return Elif <= YKHO", "def Zcf_(YKHO, Elif):\n return YKHO >= Elif", "def Zcf_(YKHO, Elif):\n return YKHO == Elif or YKHO > Elif", "def Zcf_(YKHO, Elif):\n return YKHO > Elif or YKHO == Elif", "def Zcf_(YKHO, Elif):\n return YKHO == Elif or YKHO > Elif", "def jmxi(Y...
[ "0.89219475", "0.8910245", "0.88480777", "0.8815551", "0.8811358", "0.87796193", "0.87559485", "0.87559485", "0.86520183", "0.86481386", "0.86254364", "0.86045015", "0.8601975", "0.8588879", "0.85808456", "0.8578022", "0.8551003", "0.8551003", "0.8551003", "0.8449457", "0.843...
0.83614415
26
Initialize the Instance object for the given Virtual Server instance. Args class_object (backupset_object, subclient_name, subclient_id) instance of the backupset class, subclient name, subclient id
def FIMM(YKHO, JORJ, zgY3, mr1c=None): super(cFHq, YKHO).__init__(JORJ, zgY3, mr1c)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, CNw8):\n from .agent import Agent\n from .instance import Instance\n from .backupset import Backupset\n YKHO._agent_object = None\n YKHO._instance_object = None\n YKHO._backupset_object = None\n if isinstance(CNw8, Agent):\n YKHO._agent_object = CNw8\n elif isinstance(...
[ "0.7399713", "0.71202683", "0.6714028", "0.6489383", "0.6402793", "0.6388495", "0.637286", "0.63152474", "0.567965", "0.55778784", "0.55707383", "0.54708594", "0.54351145", "0.5383439", "0.53735083", "0.5343758", "0.529916", "0.527672", "0.5259988", "0.52557015", "0.5238879",...
0.68293434
2
gets black pixel walls from image, stores in array 'walls' contains start and end point of all walls
def szKh(YKHO): print('Getting Walls') TVTK = YKHO.width H2v2 = YKHO.height DHvp = [] gtmY, oYkr = QrM1.subplots() oYkr.axis([0, H2v2, 0, TVTK]) LKPm = YKHO.array Fm7f = 0.5 cQsC = 0.99999 for WKvO in range(1, TVTK - 1): for LVAh in range(1, H2v2 - 1): if LKPm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szKh(YKHO):\n if oyIN.any(oyIN.isnan(YKHO.walls)):\n print('Warning one of the cells in the grid is nan')\n return YKHO.walls", "def jEK8(YKHO):\n for r8hN in range(0, YKHO.dungeon_width):\n for exwG in range(0, YKHO.dungeon_height):\n if YKHO.pre_map2D[r8hN][exwG] == 'floor...
[ "0.6754171", "0.67447776", "0.6692533", "0.6667559", "0.65333366", "0.63502896", "0.63297653", "0.63297653", "0.6320242", "0.63185865", "0.6306846", "0.62546545", "0.6237146", "0.6230653", "0.6226957", "0.62001276", "0.61989963", "0.61932397", "0.6184939", "0.61719155", "0.61...
0.72540337
0
All cocktails without forbidden elements, but with required. If owned is not None, all cocktails returned will use only owned ingredients.
def TgwQ(YKHO, ro4a=None, jeGQ=None, e_b4=None): if jeGQ: jeGQ = {uBMr for uBMr in jeGQ if uBMr in YKHO._ingredients} if e_b4: e_b4 = {uBMr for uBMr in e_b4 if uBMr in YKHO._ingredients} if ro4a: ro4a = {uBMr for uBMr in ro4a if uBMr in YKHO._ingredients} if not ro4a and (not jeG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RPj9(YKHO, ro4a, jeGQ=None, e_b4=None, NLOT=0):\n if ro4a:\n ro4a = {uBMr for uBMr in ro4a if uBMr in YKHO._ingredients}\n else:\n ro4a = set([])\n if jeGQ:\n jeGQ = {uBMr for uBMr in jeGQ if uBMr in YKHO._ingredients}\n if e_b4:\n e_b4 = {uBMr for uBMr in e_b4 if uBMr i...
[ "0.61886585", "0.5477577", "0.5414297", "0.5410211", "0.49096254", "0.48248053", "0.48247868", "0.4816481", "0.48114303", "0.4749497", "0.47311717", "0.47033557", "0.4693677", "0.46907216", "0.46819028", "0.46768275", "0.46757844", "0.4669797", "0.46624652", "0.46583277", "0....
0.6481712
0
Plot2d_create(data) > retval . Creates Plot2d object . . data \f$1xN\f$ or \f$Nx1\f$ matrix containing \f$Y\f$ values of points to plot. \f$X\f$ values . will be equal to indexes of correspondind elements in data matrix. Plot2d_create(dataX, dataY) > retval . Creates Plot2d object . . dataX \f$1xN\f$ or \f$Nx1\f$ matri...
def FUty(nPrm): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qm1W(nPrm):\n WKvO, LVAh = nPrm.T\n QrM1.scatter(WKvO, LVAh)\n QrM1.savefig('original2d.png')", "def AQA2(nPrm, leAC, NKcE, kn2i=[], Pdtb=False):\n if nPrm.shape[0] == 0 or nPrm.shape[1] != 2:\n raise ValueError('Incorrect dimensions of data for 2D plotting.')\n WKvO = nPrm[:, 0]\n L...
[ "0.713118", "0.66646165", "0.6642049", "0.62790596", "0.6189036", "0.61880946", "0.6163001", "0.6099226", "0.6026066", "0.60060346", "0.5965314", "0.59417397", "0.592589", "0.58731246", "0.5801567", "0.5791801", "0.5784265", "0.57781166", "0.57754105", "0.5775271", "0.5734132...
0.8749062
0
f (a > b) > f a > f b Equivalent to Haskell
def dRO0(eHNT, jzdc): raise kF6g() pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _5Kr(jzdc, Fg_i):\n return jzdc > Fg_i", "def qk7K(jzdc, Fg_i):\n return jzdc > Fg_i", "def _5Kr(WKvO, LVAh):\n return HFDh(LVAh, WKvO)", "def z8cV(YKHO, jzdc, Fg_i, gxEw):\n if gxEw:\n return jzdc.get_data() > Fg_i.get_data()\n return jzdc.get_data() < Fg_i.get_data()", "def cQu_...
[ "0.76917505", "0.7344724", "0.713", "0.6959583", "0.6891854", "0.6886332", "0.685629", "0.685629", "0.68435407", "0.6818321", "0.6804546", "0.6796509", "0.67523664", "0.671417", "0.67022854", "0.6641326", "0.6632977", "0.66174424", "0.6599735", "0.6561019", "0.65290606", "0...
0.0
-1
Test num_buses where there are more people than will fit on a single bus.
def xwlK(YKHO): n5sN = XOOk.num_buses(75) aEqx = 2 YKHO.assertEqual(n5sN, aEqx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def egsE(YKHO):\n n5sN = XOOk.num_buses(149)\n aEqx = 3\n YKHO.assertEqual(n5sN, aEqx)", "def UAAC(YKHO):\n MxXY = 50\n GANk = DYIr(MxXY)\n Hyid = 1\n YKHO.assertEqual(GANk, Hyid)\n cWFu = 100\n UY9E = DYIr(cWFu)\n utND = 2\n YKHO.assertEqual(UY9E, utND)", "def _zDg(YKHO):\n ...
[ "0.7571544", "0.74946964", "0.74175006", "0.73351324", "0.71924275", "0.71844834", "0.7168806", "0.70928144", "0.7090857", "0.6843417", "0.6729789", "0.6631249", "0.66003674", "0.6581842", "0.6533824", "0.65161407", "0.64802974", "0.64000374", "0.629709", "0.61221606", "0.599...
0.7272428
4
Test num_buses where there are no people
def G0eO(YKHO): n5sN = XOOk.num_buses(0) aEqx = 0 YKHO.assertEqual(n5sN, aEqx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rn9a(YKHO):\n exwG = 0\n wNjg = DYIr(exwG)\n _YeL = 0\n YKHO.assertEqual(wNjg, _YeL)", "def eTiw(YKHO):\n MxXY = 28\n GANk = DYIr(MxXY)\n Hyid = 1\n YKHO.assertEqual(GANk, Hyid)\n cWFu = 321\n UY9E = DYIr(cWFu)\n utND = 7\n YKHO.assertEqual(UY9E, utND)", "def _zDg(YKHO):...
[ "0.79375124", "0.72208863", "0.71031624", "0.70405215", "0.69600296", "0.6958483", "0.69024813", "0.68893707", "0.68780303", "0.6807427", "0.6727975", "0.6673517", "0.6590767", "0.6431211", "0.6422409", "0.6415602", "0.63882375", "0.6323739", "0.6128926", "0.60517955", "0.596...
0.705931
3
Returns the ML translated Hour and Minute of a formatted duration string
def HHyk(YKHO, WbTE): nrEk = YKHO._(u'%H hours %M minutes') return qcWV.strptime(WbTE, '%fd%H:%M:%S').strftime(nrEk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVB4(WbTE: str) -> str:\n if not ZbWC.fullmatch('P(?:[\\\\d.]+[YMWD]){0,4}T(?:[\\\\d.]+[HMS]){0,3}', WbTE):\n raise ValueError(f'\"{WbTE}\" is not a valid ISO 8601 duration string.')\n iiEX, zaKM = WbTE.replace('T', ',T').split(',')\n iiEX = ZbWC.findall('([\\\\d.]+[A-Z])', iiEX)\n zaKM = Zb...
[ "0.7058601", "0.6991897", "0.6969374", "0.6922338", "0.69110763", "0.6816686", "0.67565805", "0.6737065", "0.67307174", "0.6700724", "0.6679864", "0.6643149", "0.6626731", "0.66212755", "0.6592476", "0.65832204", "0.654504", "0.65443975", "0.6525609", "0.6522936", "0.6522936"...
0.7214469
0
Returns the platform if available or an empty string
def kF_1(YKHO, a9EH): ddvv = YKHO._(u'on platform {}') if a9EH == None: return '' else: return ddvv.format(a9EH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z5O9():\n return a9EH.system()", "def h1o9():\n Wju4 = a9EH.uname()\n return '-'.join([Wju4[0], Wju4[4]]).lower()", "def Z5O9():\n import platform\n if platform.system() == 'Windows':\n return platform.system()\n elif platform.system() == 'Linux':\n return platform.system()\...
[ "0.86248946", "0.84855807", "0.83711994", "0.8347959", "0.8292385", "0.82582444", "0.8224012", "0.8215281", "0.8169232", "0.8148198", "0.8137389", "0.8108608", "0.8107167", "0.80357784", "0.80251807", "0.80161655", "0.8010981", "0.7971364", "0.7957899", "0.7931114", "0.792839...
0.80882
13
Returns the dictonary with connections information for the given stations.
def uRhM(YKHO, kOkg, us6y, VECZ=1, zRNS=None): if zRNS == None: xDcj = {'from': kOkg, 'to': us6y, 'limit': VECZ} else: xDcj = {'from': kOkg, 'to': us6y, 'limit': VECZ, 'datetime': zRNS.isoformat()} bD7m = l1D_ + 'connections' try: Aofo = G4JS.get(bD7m, params=xDcj) rxEN =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bG1w(YKHO):\n if len(YKHO.conn_map):\n return\n YKHO.conn_map = YWvJ(SnBA.StationPrnMap[QNH2], {})\n for gnAD, zm4i in YKHO.station_data.items():\n YKHO.conn_map[gnAD] = {}\n for DuY5, pR3T in zm4i.items():\n sDym = YKHO._get_connections_internal(gnAD, DuY5, pR3T)\n ...
[ "0.6442978", "0.64361984", "0.63344204", "0.62331206", "0.6197222", "0.6179224", "0.61752003", "0.6008108", "0.6002998", "0.60025597", "0.59999996", "0.597117", "0.597035", "0.5965906", "0.5947274", "0.5924678", "0.5902967", "0.5878405", "0.5868028", "0.58635527", "0.5860968"...
0.59326774
15
Produce all lists of `size` positive integers in decreasing order that add up to `n`.
def WFmP(exwG, zNig, qoqK=None): if zNig == 1: yield [exwG] return if qoqK is None: qoqK = exwG yKcO = (exwG + zNig - 1) // zNig JCyR = min(qoqK, exwG - zNig + 1) + 1 for YRbF in range(yKcO, JCyR): for J3uN in WFmP(exwG - YRbF, zNig - 1, YRbF): yield ([YRb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WFmP(exwG, zNig, qoqK=None):\n if zNig == 1:\n yield [exwG]\n return\n if qoqK is None:\n qoqK = exwG\n yKcO = (exwG + zNig - 1) // zNig\n JCyR = min(qoqK, exwG - zNig + 1) + 1\n for YRbF in range(yKcO, JCyR):\n for J3uN in WFmP(exwG - YRbF, zNig - 1, YRbF):\n ...
[ "0.7960395", "0.7637883", "0.752179", "0.6844599", "0.65599024", "0.6520507", "0.64237976", "0.64204186", "0.6402201", "0.63178974", "0.6294766", "0.6292518", "0.6283911", "0.62771636", "0.6274655", "0.62640303", "0.6253008", "0.62347996", "0.6209149", "0.6205808", "0.620313"...
0.7634971
2
Returns the current page's url.
def GwPS(): GPtr = lxNi() PNq_ = GPtr.environ umWR = PNq_.get('QUERY_STRING', '') if umWR: umWR = '?' + umWR return nKyW() + umWR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNjf(YKHO):\n return str(YKHO.driver.current_url)", "def bW0a(YKHO):\n return YKHO.driver.current_url", "def bW0a(YKHO):\n return YKHO.driver.current_url", "def hKhs(YKHO):\n return YKHO.currentUrl", "def bW0a(YKHO):\n return str(YKHO.driver.current_url)", "def GwPS(YKHO):\n return ...
[ "0.8426784", "0.81270623", "0.81270623", "0.8115405", "0.80937636", "0.8084841", "0.80310476", "0.7999592", "0.7996146", "0.7977458", "0.794538", "0.794538", "0.7808961", "0.7775652", "0.7760604", "0.77282375", "0.7678056", "0.7664703", "0.7650408", "0.76049846", "0.7536108",...
0.7572268
20
Creates a link tag for starting an email to the specified ``email_address``, which is also used as the name of the link unless ``name`` is specified. Additional HTML options, such as class or id, can be passed in the ``html_options`` hash. You can also make it difficult for spiders to harvest email address by obfuscati...
def jatM(Hxmi, mWFP=None, EqBn=None, luEl=None, U4ZT=None, TBsA=None, NmUR=None, mmb9=None, kLcZ=None, **Vywn): qVE2 = {} for H5ew, MTKo in (('cc', EqBn), ('bcc', luEl), ('subject', U4ZT), ('body', TBsA)): if MTKo: qVE2[H5ew] = MTKo u3yn = uRlK.urlencode(qVE2).replace('+', '%20') iqu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vqzd(Hxmi):\n U_w2 = Hxmi.replace('@', '[aT]')\n QRLd = '<a href=\"mailto:{}\">{}</a>'.format(Hxmi, U_w2)\n return QRLd", "def N0o7(YKHO, QZnA, gqOy=False):\n l5Ny = QZnA = IguF(QZnA)\n if gqOy:\n QZnA = 'mailto:%s' % QZnA\n return '<a href=\"%s\">%s</a>' % (QZnA, l5Ny)", "def Hxmi...
[ "0.7078398", "0.5770775", "0.56647444", "0.5664538", "0.56592476", "0.56592476", "0.56592476", "0.5640751", "0.55862546", "0.55298924", "0.5514863", "0.5513789", "0.54361224", "0.5278035", "0.5268436", "0.525135", "0.5231516", "0.5196558", "0.51919115", "0.5178057", "0.516202...
0.6593446
1
Returns type of the query.
def kdD5(YKHO) -> str: if YKHO._query_type: return YKHO._query_type if not YKHO._tokens: bGrB = YKHO.tokens s2mk: x1iM[GzaI] = list(filter(lambda eOtH: not eOtH.is_comment, YKHO._tokens or [])) if not s2mk: raise ValueError('Empty queries are not supported!') d6pt = 0 if not ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kdD5(YKHO):\n return YKHO._query_type", "def kdD5(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'query_type')", "def Vb_I(uPxI):\n return uPxI.get_query_type().name", "def grPF(YKHO):\n return YKHO._sql_type", "def D3B4(YKHO) -> str:\n return YKHO._known_query_type_id", "def jz6I(YKHO):\...
[ "0.89071035", "0.8566099", "0.74840957", "0.72859776", "0.72079843", "0.7072811", "0.69601756", "0.67980075", "0.67879975", "0.67290235", "0.6725217", "0.66933745", "0.6679649", "0.65822715", "0.6452631", "0.6446356", "0.6387375", "0.63666207", "0.63422966", "0.63083506", "0....
0.8156674
2
Returns the list columns this query refers to
def ZLJ_(YKHO) -> x1iM[str]: if YKHO._columns is not None: return YKHO._columns ZLJ_ = c9_7() for eOtH in YKHO._not_parsed_tokens: if eOtH.is_name or eOtH.is_keyword_column_name: if eOtH.is_column_definition_inside_create_table(query_type=YKHO.query_type): eOtH.to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZLJ_(YKHO):\n return YKHO.query.columns", "def ZLJ_(YKHO):\n Aofo = YKHO.query.result()\n return [Jyyj.name for Jyyj in Aofo.schema]", "def ToWh(YKHO):\n if YKHO._query is not None:\n return jth9.copy(YKHO._query.colnames)", "def NsxM(YKHO):\n return YKHO.container['list_columns']",...
[ "0.87411803", "0.8462661", "0.8174322", "0.8099322", "0.8031664", "0.79828376", "0.79661286", "0.792934", "0.7921394", "0.7891497", "0.7841891", "0.7841891", "0.7841891", "0.7841891", "0.7841891", "0.77995646", "0.7796216", "0.77926844", "0.77834266", "0.7754863", "0.7743804"...
0.7045835
94
Returns a dictionary of column aliases with columns
def oOlz(YKHO) -> cuzp: if YKHO._columns_aliases is not None: return YKHO._columns_aliases E1DT = {} bGrB = YKHO.columns YKHO._aliases_to_check = list(YKHO._columns_with_tables_aliases.keys()) + YKHO.columns_aliases_names + ['*'] for eOtH in YKHO.tokens: if eOtH.is_potential_column_a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BbfY(YKHO) -> cuzp[str, x1iM[str]]:\n if YKHO._columns_aliases_dict:\n return YKHO._columns_aliases_dict\n bGrB = YKHO.columns_aliases_names\n return YKHO._columns_aliases_dict", "def l0c7(YKHO) -> x1iM[AzJI[str, str]]:\n YY7I = []\n for vbQv, LX_4 in YKHO._table_alias_map.items():\n ...
[ "0.80586517", "0.762711", "0.7613195", "0.6723503", "0.6689889", "0.66836303", "0.66652715", "0.66621774", "0.66317236", "0.659426", "0.64851284", "0.6432152", "0.6424485", "0.6420521", "0.6395251", "0.63563013", "0.6341", "0.6341", "0.6340448", "0.63250303", "0.6290851", "...
0.7932527
1
Extract names of the column aliases used in query
def ITqP(YKHO) -> x1iM[str]: if YKHO._columns_aliases_names is not None: return YKHO._columns_aliases_names f_Hj = c9_7() beAv = YKHO.with_names JAPb = YKHO.subqueries_names for eOtH in YKHO._not_parsed_tokens: if eOtH.is_potential_alias: if eOtH.value in f_Hj: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l0c7(YKHO) -> x1iM[AzJI[str, str]]:\n YY7I = []\n for vbQv, LX_4 in YKHO._table_alias_map.items():\n YY7I += list([(vbQv, fvDH.name) for fvDH in LX_4.columns])\n for vbQv, lhvR in YKHO._derived_table_alias_map.items():\n YY7I += list([(vbQv, fvDH.name) for fvDH in lhvR])\n return YY7I...
[ "0.793813", "0.7071807", "0.70242816", "0.689675", "0.6667087", "0.66381073", "0.66062987", "0.65588254", "0.65279734", "0.6527718", "0.64638245", "0.64251447", "0.64225024", "0.6384644", "0.62619513", "0.62317765", "0.6231237", "0.62243617", "0.62012845", "0.6175328", "0.615...
0.75647
1
Returns dictionary of columnvalue pairs. If columns are not set the auto generated column_ are added.
def UMY8(YKHO) -> cuzp: hkxX = YKHO.values if YKHO._values_dict or not hkxX: return YKHO._values_dict ZLJ_ = YKHO.columns if not ZLJ_: ZLJ_ = [f'column_{QyVM + 1}' for QyVM in range(len(hkxX))] UMY8 = dict(zip(ZLJ_, hkxX)) YKHO._values_dict = UMY8 return YKHO._values_dict
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WfCS(YKHO) -> cuzp[str, cuzp[str, int]]:\n return YKHO.__col_dict.copy()", "def gJQb(ZLJ_):\n h96P = {}\n for q_DO in ZLJ_:\n z0q4 = list(q_DO.keys())[0]\n h96P[z0q4] = None\n return h96P", "def nXn5(YKHO) -> cuzp[str, x1iM[str]]:\n if not YKHO._columns_dict:\n bGrB = YK...
[ "0.7296407", "0.7293267", "0.70692044", "0.6928263", "0.6917054", "0.6852674", "0.6852674", "0.6809947", "0.6807411", "0.67668366", "0.6703092", "0.6672156", "0.66607887", "0.66550946", "0.6648802", "0.66466016", "0.66423434", "0.6596653", "0.6584416", "0.6580603", "0.6516563...
0.611245
42
Returns only tokens that have no type assigned yet
def fDcS(YKHO): return [WKvO for WKvO in YKHO.tokens if WKvO.token_type is None]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g2R0(YKHO):\n return YKHO.get_type_tokens()[0].tokens", "def thS1(YKHO, *SnBA: str) -> 'list[Token]':\n return [a1PO for a1PO in YKHO.tokens if a1PO.type in SnBA]", "def s2mk(YKHO):\n s2mk = [G1Hx for G1Hx in YKHO.tok2ind.keys() if G1Hx not in {'<NULL>', '<UNK>'}]\n return s2mk", "def s2mk(YK...
[ "0.69708127", "0.66736084", "0.64434594", "0.64434594", "0.63935983", "0.6339163", "0.6309712", "0.6256731", "0.6256731", "0.61739886", "0.6084225", "0.60155225", "0.60155225", "0.58829814", "0.58649075", "0.58568454", "0.58450174", "0.5835843", "0.57974195", "0.5793783", "0....
0.83275306
0
Checks if columns comes from a with query that has columns defined cause if it does that means that column name is an alias and is already resolved in aliases.
def GfLi(YKHO, BctZ: str) -> bool: SQ3m = BctZ.split('.') if len(SQ3m) != 2 or SQ3m[0] not in YKHO.with_names: return False if YKHO._with_queries_columns.get(SQ3m[0]): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wagU(YKHO, beAv: List[str]) -> bool:\n return YKHO.is_in_parenthesis and (YKHO.find_nearest_token('(').previous_token.value in beAv or YKHO.last_keyword_normalized == 'INTO')", "def N5iX(YKHO, ITqP: List[str], E1DT: Dict) -> bool:\n return YKHO.value in ITqP and YKHO.value not in E1DT and (not YKHO.pre...
[ "0.6646977", "0.6616231", "0.6412447", "0.6407974", "0.61861557", "0.6171834", "0.61540306", "0.6098494", "0.6034216", "0.6018744", "0.5948802", "0.5947186", "0.5796384", "0.57954264", "0.57939655", "0.5783062", "0.57654554", "0.5744143", "0.57404244", "0.57242227", "0.568015...
0.7717079
0
returns a service object based on a connection
def rVwF(YKHO, oU1u, UzPC=None): try: return FNYZ(url=oU1u, connection=YKHO._con) except: raise ValueError('Cannot access the service, verify the inputs')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lxP0(YKHO):\n MgeT = T6FA.current_thread()\n vEq1 = MgeT.ident\n zVa7 = YKHO._service_pool.get(vEq1)\n if zVa7 is None:\n Vt89 = YKHO.credentials_manager.get_credentials()\n pu1N = YKHO._HTTPClass()\n Vt89.authorize(pu1N)\n zVa7 = XHf1.discovery.build('storage', 'v1', ht...
[ "0.70411795", "0.6612609", "0.6595615", "0.65699387", "0.65163845", "0.65163845", "0.6512129", "0.64932793", "0.6464472", "0.63977456", "0.63976973", "0.6393135", "0.63916427", "0.63537645", "0.6327623", "0.63102806", "0.617168", "0.6107113", "0.6102594", "0.6089958", "0.6087...
0.70467556
0
Calls IsSessionActive to check if the session token is still active and returns the context.ApiContext. Catches ApiException if the session is inactive. Catches BunqException if the conf file does not exist.
def _tMY(Emd4): QFHL = Emd4._get_directory_test_root() + Emd4._FILENAME_BUNQ_CONFIG try: AyO8 = QpfX.ApiContext.restore(QFHL) except FileNotFoundError: AyO8 = QpfX.ApiContext(QpfX.ApiEnvironmentType.SANDBOX, Emd4._API_KEY, Emd4._DEVICE_DESCRIPTION, []) else: AyO8.ensure_session_a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aeil():\n eOtH = Hy7s.environ.get('API_TOKEN')\n CBIr = Hy7s.environ.get('USER')\n clva = Hy7s.environ.get('VERSION', '21.1.4')\n ehIZ = Hy7s.environ.get('TENANT', 'admin')\n nNXP = drjH.get_session(Hy7s.environ.get('DOCKER_GATEWAY'), CBIr, token=eOtH, tenant=ehIZ, api_version=clva)\n return ...
[ "0.55039537", "0.548955", "0.53865695", "0.5356083", "0.5330893", "0.52951837", "0.5259877", "0.5254367", "0.5250906", "0.5234114", "0.5226533", "0.51738364", "0.5164586", "0.5148776", "0.5123208", "0.510067", "0.5077931", "0.5032818", "0.5019267", "0.5014831", "0.49899578", ...
0.6446631
0
Value of the type header field.
def type(YKHO) -> NbvL: return YKHO.header.type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3xR(YKHO):\n return YKHO.type.value", "def lC7b(YKHO):\n return YKHO._get_value('TYPE')", "def fX1C(YKHO) -> str:\n return qe4Y.get(YKHO, 'value_type')", "def fX1C(YKHO) -> str:\n return qe4Y.get(YKHO, 'value_type')", "def BWXx(YKHO):\n return YKHO.type(YKHO._value)", "def type(YKHO):...
[ "0.82032764", "0.80762726", "0.7769455", "0.7769455", "0.7664492", "0.76302236", "0.7573808", "0.7573808", "0.75248176", "0.7515244", "0.7477273", "0.7465392", "0.745819", "0.7436544", "0.73877203", "0.73836017", "0.7345239", "0.7300724", "0.73005253", "0.72566575", "0.721428...
0.7369456
16
Build a proposal generator from `cfg.MODEL.PROPOSAL_GENERATOR.NAME`. The name can be "PrecomputedProposals" to use no proposal generator.
def XmT4(_Fei, GhuM): mWFP = _Fei.MODEL.PROPOSAL_GENERATOR.NAME if mWFP == 'PrecomputedProposals': return None return qovf.get(mWFP)(_Fei, GhuM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XmT4(_Fei, GhuM, **qIxc):\n mWFP = _Fei.MODEL.PROPOSAL_GENERATOR.NAME\n if mWFP == 'PrecomputedProposals':\n return None\n return qovf.get(mWFP)(_Fei, GhuM, **qIxc)", "def n5Ip(_Fei, **B2fa):\n R0pi = _Fei.MODEL.GENERATOR.NAME\n c2Yh = EyXh.get(R0pi).from_config(_Fei, **B2fa)\n asser...
[ "0.8179227", "0.5854582", "0.54500425", "0.543606", "0.5346236", "0.5333602", "0.5330394", "0.52872986", "0.52532744", "0.5146201", "0.5117562", "0.50703126", "0.5055981", "0.5055895", "0.50349104", "0.5030706", "0.5024735", "0.5006256", "0.49938855", "0.4963148", "0.49332106...
0.8200326
0
Update the discriminator (`disc`) and the generator (`gen`) using `data`
def AagK(nPrm, QkbE, eK5b): eAYh = 200 Th55 = nPrm _dIt = eK5b.sample(eAYh) ysqc = QkbE.loss(Th55, _dIt) QCT4 = QADO(ysqc, QkbE) QdZT(QkbE, QCT4) _dIt = eK5b.sample(eAYh) v2T8 = eK5b.loss(_dIt, QkbE.classify) OKXx = QADO(v2T8, eK5b) QdZT(eK5b, OKXx) print('Your implementation...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pPnj(YKHO):\n hK6P(YKHO.discriminator_instance.random_tag, {'encounter_trace': YKHO.discriminator_instance.encounter_trace, 'self_error': YKHO.discriminator_instance.real_error, 'gen_error_map': YKHO.discriminator_instance.gen_error_map, 'current_fitness': YKHO.discriminator_instance.current_fitness})\n ...
[ "0.6485023", "0.6481376", "0.63756794", "0.60813916", "0.59887445", "0.59371376", "0.59122103", "0.59086144", "0.58997375", "0.5893297", "0.5879356", "0.58509046", "0.58447427", "0.5833851", "0.58144087", "0.5798982", "0.57817584", "0.5735923", "0.5724898", "0.5720696", "0.57...
0.6601949
0
Generates a model name from the current time.
def Ry74(): wzkt = qcWV.now() return f'{oiD0.value}-{wzkt.strftime('%d-%m-%Y-%H%M%S')}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VaIt(YKHO) -> str:\n return f'{qcWV.now().strftime('%Y-%m-%d')}'", "def T8R7():\n bINn = qcWV.now()\n return bINn.strftime('%Y-%m-%d_%H-%M-%S')", "def UmjN(YKHO, BIuc=None):\n if BIuc is None:\n FYKK = qcWV.datetime.now().strftime(YKHO.modelSaveTimeTemplate)\n else:\n FYKK = BI...
[ "0.73234046", "0.714535", "0.68634766", "0.6676422", "0.6596086", "0.6596086", "0.6577429", "0.6546607", "0.6531709", "0.651513", "0.64947873", "0.6478273", "0.6478273", "0.64555556", "0.6422219", "0.6422219", "0.6414937", "0.6372535", "0.6338214", "0.6332124", "0.63092685", ...
0.84679854
0
Check if another field has an equal type.
def CbTw(YKHO, Skxc: 'Field') -> bool: return YKHO.type == Skxc.type and YKHO.size == Skxc.size and (YKHO.scale == Skxc.scale)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s2DK(YKHO, Elif):\n return YKHO._type == Elif._type", "def l_QA(YKHO, Elif):\n return True", "def kJ0s(YKHO, Elif):\n if not super().same_as(Elif):\n return False\n assert isinstance(Elif, wsY0)\n return g057(YKHO._identifier, Elif._identifier)", "def xa14(YKHO, Elif):\n if not i...
[ "0.7664215", "0.7339084", "0.72008896", "0.7153818", "0.70745623", "0.6847231", "0.68458706", "0.6828434", "0.6828434", "0.67455447", "0.6741301", "0.6740265", "0.67275393", "0.67164356", "0.6675428", "0.6666844", "0.6646929", "0.66220963", "0.661031", "0.6608779", "0.6603144...
0.8302611
0
Test creating a user with an email works
def llXF(YKHO): D3lj = 'test@example.com' jTXt = 'testpass123' CBIr = egNl().objects.create_user(email=D3lj, password=jTXt) YKHO.assertEqual(CBIr.email, D3lj) YKHO.assertTrue(CBIr.check_password(jTXt))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WVkE(YKHO):\n D3lj = 'testemail@Airbase.io'\n jTXt = 'Test@123'\n CBIr = egNl().objects.create_user(email=D3lj, password=jTXt)\n YKHO.assertEqual(D3lj.lower(), CBIr.email)", "def OE4O(YKHO):\n D3lj = 'testing@gmail.com'\n jTXt = 'testingModels123'\n CBIr = egNl().objects.create_user(emai...
[ "0.8725629", "0.8589007", "0.8530167", "0.84848154", "0.84754854", "0.8471949", "0.8436788", "0.8414144", "0.8409224", "0.83968633", "0.838035", "0.8379469", "0.83728176", "0.8359661", "0.8358986", "0.8354009", "0.83526456", "0.8350761", "0.8343167", "0.833364", "0.8325638", ...
0.83973914
9
Test email is normalized for new users
def saHt(YKHO): Pfys = [['test1@EXAMPLE.com', 'test1@example.com'], ['Test2@Example.com', 'Test2@example.com'], ['TEST3@EXAMPLE.COM', 'test3@example.com']] for D3lj, aEqx in Pfys: CBIr = egNl().objects.create_user(D3lj, 'testpassword123') YKHO.assertEqual(CBIr.email, aEqx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4Gr(YKHO):\n D3lj = 'test@EMRE.COM'\n CBIr = egNl().objects.create_user(D3lj, 'test123')\n YKHO.assertEqual(CBIr.email, D3lj.lower())", "def bf1q(YKHO):\n D3lj = 'ali@Gmail.com'\n CBIr = egNl().objects.create_user(D3lj, '12523213M')\n YKHO.assertEqual(CBIr.email, D3lj.lower())", "def ho5...
[ "0.7944131", "0.7873625", "0.7824251", "0.78120905", "0.78034854", "0.7775942", "0.77731144", "0.7765161", "0.7755667", "0.77495307", "0.7745195", "0.77424496", "0.7724647", "0.7710942", "0.76985866", "0.7696876", "0.76940227", "0.76854026", "0.7681934", "0.7674131", "0.76505...
0.7912555
1
Test if user can register without a username
def d49_(YKHO): with YKHO.assertRaises(TypeError) as tTpl: mv1M.objects.create_user(email='user1@mail.com', username=None, password='password') YKHO.assertEqual(str(tTpl.exception), 'Users must have a username.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iOGC():\n NtEF = QePW.form.get('username')\n if NtEF in SV71:\n return pz3A(False)\n return pz3A(True)", "def qY2a(YKHO):\n YKHO.user_dict.pop('username', None)\n geh0 = Z9rn.post('/author/registration/', YKHO.user_dict)\n YKHO.assertEquals(geh0.status_code, 400, 'User should not be ...
[ "0.74235475", "0.7315912", "0.7187844", "0.71331483", "0.70776504", "0.7025673", "0.6994855", "0.69448024", "0.6903471", "0.68934464", "0.6865533", "0.6863153", "0.6850529", "0.6845611", "0.6822787", "0.68105626", "0.6805661", "0.67879605", "0.6773392", "0.6767804", "0.676704...
0.63828397
99
Test if a user can register without an email
def aAgs(YKHO): with YKHO.assertRaises(TypeError) as tTpl: mv1M.objects.create_user(username='user2', email=None, password='password') YKHO.assertEqual(str(tTpl.exception), 'Users must have an email address.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eXT6(YKHO):\n YKHO.user_dict.pop('email', None)\n geh0 = Z9rn.post('/author/registration/', YKHO.user_dict)\n YKHO.assertEquals(geh0.status_code, 400, 'User should not be created')", "def sr2p(Q6kx, xqoZ):\n QePW = sZip()\n CBIr = YMnk.find_user(xqoZ)\n if CBIr is None:\n return True...
[ "0.75079805", "0.74613416", "0.7372044", "0.7198975", "0.71436673", "0.7104947", "0.70787334", "0.7056697", "0.6965071", "0.69606125", "0.693969", "0.69192225", "0.68981516", "0.6883389", "0.68715954", "0.6858213", "0.6852121", "0.6836167", "0.6809146", "0.67894757", "0.67894...
0.6566235
52
Test if a superuser can register without a password
def Yo9E(YKHO): with YKHO.assertRaises(TypeError) as tTpl: mv1M.objects.create_superuser(username='superuser', email='superuser@mail.com', password=None) YKHO.assertEqual(str(tTpl.exception), 'Superusers must have a password.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pama(YKHO) -> bool:\n return qe4Y.get(YKHO, 'allow_password_signup')", "def MgmU(YKHO) -> None:\n Q5YQ = mv1M.objects.create_superuser(email='test@gmail.com', username='test', employee_id='DT1001', password='wsxwsx@123')\n YKHO.assertTrue(Q5YQ.is_admin)\n YKHO.assertTrue(Q5YQ.is_superuser)\n Y...
[ "0.7034352", "0.6854004", "0.6827696", "0.68229276", "0.6800655", "0.6795943", "0.67895067", "0.6749531", "0.6737956", "0.67372036", "0.67341226", "0.6714286", "0.67062896", "0.66778123", "0.6663565", "0.6659656", "0.66377497", "0.6634259", "0.6631884", "0.66078967", "0.65913...
0.6841663
2
Test if we can successfully create a superuser
def Z1cN(YKHO): AroK = mv1M.objects.create_superuser(username='superuser', email='superuser@mail.com', password='password') YKHO.assertTrue(AroK.is_superuser) YKHO.assertTrue(AroK.is_staff)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MgmU(YKHO) -> None:\n Q5YQ = mv1M.objects.create_superuser(email='test@gmail.com', username='test', employee_id='DT1001', password='wsxwsx@123')\n YKHO.assertTrue(Q5YQ.is_admin)\n YKHO.assertTrue(Q5YQ.is_superuser)\n YKHO.assertTrue(Q5YQ.is_active)\n YKHO.assertTrue(Q5YQ.is_staff)", "def rCAj(...
[ "0.8236004", "0.8220224", "0.80931544", "0.8049934", "0.8045334", "0.80042464", "0.7998079", "0.79922944", "0.7980193", "0.7952543", "0.79434943", "0.79434747", "0.7922346", "0.79046714", "0.78983676", "0.7881583", "0.78534395", "0.7848379", "0.7845993", "0.7831652", "0.78299...
0.8041388
5
It should not Create a Pet with missing data
def apWb(YKHO): geh0 = YKHO.client.post(zDeW, json={}) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WltT(YKHO):\n hxjC = YKHO._create_pets()[0]\n Uhbc = hxjC.serialize()\n del Uhbc['name']\n G9jH.debug('Pet no name: %s', Uhbc)\n geh0 = YKHO.client.post(zDeW, json=Uhbc)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def h_kN(YKHO):\n wIQq = Zptg()\n G9jH.debug(wIQ...
[ "0.7755883", "0.71935433", "0.69766045", "0.67954046", "0.6627403", "0.6627403", "0.6543542", "0.6543542", "0.63326025", "0.6311211", "0.6308795", "0.6275993", "0.62680876", "0.6265636", "0.6249658", "0.6248264", "0.62405443", "0.6221072", "0.619779", "0.6191393", "0.61896026...
0.78173167
0
In the constructor we instantiate two nn.Linear modules and assign them as member variables.
def FIMM(YKHO, UoOD, Gzv5, Norb): super(Z7v8, YKHO).__init__() YKHO.enc = ht2j.nn.Linear(Gzv5, Norb) YKHO.dec = ht2j.nn.Linear(Norb, Gzv5) YKHO.scales = ht2j.nn.Parameter(ht2j.ones(UoOD))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, input, Zode, hlel):\n super().__init__()\n YKHO.linear1 = U78l.Linear(input, Zode)\n YKHO.linear2 = U78l.Linear(Zode, hlel)", "def FIMM(YKHO):\n super(wOed, YKHO).__init__()\n YKHO.linear = ht2j.nn.Linear(1, 1)", "def FIMM(YKHO):\n super(K1Wl, YKHO).__init__()\n YKHO.linear1...
[ "0.8130107", "0.7799952", "0.7761073", "0.7635929", "0.76163185", "0.7568382", "0.7530264", "0.746845", "0.7436324", "0.7395517", "0.73796", "0.7321771", "0.72897077", "0.72754264", "0.72664905", "0.7264293", "0.726177", "0.72441095", "0.71937", "0.71937", "0.7161486", "0.7...
0.0
-1
Creates reset entry and sends email with password reset link.
def E4vE(YKHO, D3lj): BdN0 = Flko(D3lj) NCls.session.add(BdN0) NCls.session.commit() Td1T = [D3lj] DTHW(Td1T)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AQ9c(YKHO, QePW):\n YKHO.validation_key = qxeD.uuid4()\n YKHO.save()\n YKHO._send_html_mail('Password Reset Request', 'email/user_reset_password.html', 'email/user_reset_password.txt', url='http://' + gCuF.SITE_DOMAIN + gxEw('reset-request', kwargs={'validation_key': YKHO.validation_key}))", "def wk...
[ "0.77667046", "0.7571504", "0.75300413", "0.7471995", "0.7352894", "0.73438114", "0.73085195", "0.7212313", "0.71452063", "0.7128322", "0.7083892", "0.70796186", "0.7068189", "0.7052699", "0.7048291", "0.70155704", "0.70155555", "0.7002667", "0.69781744", "0.6928663", "0.6913...
0.68291765
26
create the learning matrice [sn_sample,10] from the rating_matrix, and the user movie pair. the feature vector is composed with the total number of rank1 given by the user, total of rank2 given by the user, ... the total of rank 1 received by the movie, the total of rank 2 received by the movie, ...
def JL9Y(fQYO, mCRz): with shq3('Building learning matrix'): AzFM = oyIN.zeros((fQYO.shape[0], 5)) for d0Qf in range(fQYO.shape[0]): _1jD, RcGb, LOvA = o7sj.find(fQYO[d0Qf, :]) for fdMZ in LOvA: AzFM[d0Qf, fdMZ - 1] += 1 fAap = oyIN.zeros((fQYO.shape[1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fIkB(fQYO, mCRz):\n fQYO = fQYO.tocsr()\n nW7T = fQYO[mCRz[:, 0]]\n fQYO = fQYO.tocsc()\n g0WR = fQYO[:, mCRz[:, 1]].transpose()\n EcVT = o7sj.hstack((nW7T, g0WR))\n return EcVT.tocsr()", "def wSSc(Q5_q):\n \"\"\"\n rows = np.array(user_movie_rating_triplets[:, 0:3])\n cols = np.ar...
[ "0.7550878", "0.71884483", "0.6941247", "0.66200465", "0.6563338", "0.64681196", "0.64357704", "0.6390625", "0.6370543", "0.63542503", "0.6279195", "0.6207159", "0.6192332", "0.618499", "0.6152148", "0.610289", "0.6071287", "0.6066252", "0.60505944", "0.6046586", "0.6037121",...
0.76776785
0
Compute the symbolic shape resulting from `a[indices]` for `a.shape == array_shape`. This function uses NumPy's basic and advanced indexing logic. It can also handle combinations of advanced and basic indices.
def JvM_(b13I, _0VL, r4PI=False): A1s9 = () dGwQ = range(EQrd.tensor.basic.get_vector_length(b13I)) qw6Z = DzrZ(_0VL) if len(qw6Z) > 2 or (len(qw6Z) > 1 and (not qw6Z[0][0])): qw6Z = sorted(qw6Z, key=lambda WKvO: WKvO[0]) qw6Z = wk71(eNCK.from_iterable((j_H9 for bGrB, j_H9 in qw6Z)), key...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xg5M(ROpF, _0VL):\n A1s9 = ()\n for or8S, exwG in zip(_0VL, ROpF):\n if isinstance(or8S, slice):\n A1s9 += (GSeS(or8S, exwG),)\n elif isinstance(getattr(or8S, 'type', None), QD3A):\n if or8S.owner:\n vz8x = or8S.owner.inputs\n else:\n ...
[ "0.64283514", "0.64268696", "0.597213", "0.58374244", "0.58264136", "0.54767114", "0.5439677", "0.53609765", "0.53575015", "0.521734", "0.5215267", "0.5204036", "0.5186021", "0.5173526", "0.5156608", "0.5064447", "0.5041554", "0.50234306", "0.5019294", "0.50053746", "0.499031...
0.72330165
0
Extract slice elements conditional on a given predicate function.
def hc3T(DNs0: List, Q3Ge: Callable) -> x1iM: U5bT = [] def B0gN(bTKY): if Q3Ge(bTKY): U5bT.append(bTKY) elif isinstance(bTKY, slice): B0gN(bTKY.start) B0gN(bTKY.stop) B0gN(bTKY.step) for or8S in DNs0: B0gN(or8S) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lvr_(WKvO, DNs0):\n return WKvO[DNs0]", "def filter(YKHO, MzmK: Callable[[object], bool]):\n return aC7w.of((ZfUD for ZfUD in YKHO.items if MzmK(ZfUD)))", "def XLp3(J_Es, tpio, vexM, JfyU, pKvL):\n if J_Es.dim > 1 and pKvL is None:\n pKvL = [(-1, 0)]\n\n def _Nku(exwG, tpio, pKvL, vexM, ...
[ "0.65734166", "0.62943023", "0.6253776", "0.62509406", "0.6244744", "0.6192068", "0.61438644", "0.61261714", "0.6125804", "0.60494304", "0.5979871", "0.5940111", "0.5919998", "0.5919704", "0.5916589", "0.5875337", "0.5874262", "0.58691746", "0.58589625", "0.5849765", "0.58274...
0.68582904
0
Returns a dictionary of default arguments to helper_c_code.
def uBhk(): return {'c_prefix': 'PyArray', 'strides_mul': 1}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dkNE(YKHO):\n return Ui1U.default_helper_c_code_args()", "def evVq(YKHO):\n return {}", "def c3_8(JfyU: Callable[[Any], Component]) -> cuzp[str, ImMB]:\n return getattr(JfyU, dhAc, {})", "def vC4d():\n return {}", "def vFiW(m2Zb: Callable) -> cuzp[str, ImMB]:\n NArs = aadv(m2Zb).paramete...
[ "0.7285417", "0.6924238", "0.67104757", "0.6574949", "0.64295524", "0.64118654", "0.63725215", "0.634646", "0.6332587", "0.63187796", "0.6232853", "0.6232768", "0.62327576", "0.6210828", "0.62002784", "0.61519045", "0.61499107", "0.6144153", "0.61438", "0.60983783", "0.607316...
0.6493269
4
Constructor for the Value_Data class
def FIMM(YKHO, YUtD=None, kHt3=None, ljkB=None, xLUR=None): YKHO.bytes_value = YUtD YKHO.double_value = kHt3 YKHO.int_64_value = ljkB YKHO.string_value = xLUR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, BWXx):\n YKHO.data = oyIN.array(BWXx)", "def FIMM(YKHO, mWFP, BWXx):\n super(WnaT, YKHO).__init__(mWFP)\n YKHO.Value = BWXx", "def FIMM(YKHO, nPrm=None):\n if nPrm is None:\n YKHO._value = YKHO.DEFAULT_VALUE\n else:\n YKHO._value = YKHO._to_raw_(nPrm)", "def FIMM(Y...
[ "0.7770618", "0.7728751", "0.76670074", "0.76216316", "0.7619741", "0.72902685", "0.7183793", "0.71826935", "0.7157269", "0.71319807", "0.70795375", "0.7070008", "0.7059112", "0.7045745", "0.69974667", "0.6986104", "0.69731164", "0.6972449", "0.69517976", "0.6945235", "0.6945...
0.67565334
70
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None YUtD = cmPJ.get('bytesValue') kHt3 = cmPJ.get('doubleValue') ljkB = cmPJ.get('int64Value') xLUR = cmPJ.get('stringValue') return Emd4(YUtD, kHt3, ljkB, xLUR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78543913", "0.78...
0.79221934
10
MAD (Median Absolute Deviation).
def DAvx(hkxX): if not isinstance(hkxX, oyIN.ndarray): hkxX = oyIN.array(hkxX) BjRM = oyIN.median(hkxX) return oyIN.median(oyIN.abs(hkxX - BjRM))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ezom(WKvO, BjRM):\n XNqj = oyIN.median(oyIN.abs(WKvO - BjRM))\n return 1.4826 * XNqj", "def DAvx(WKvO):\n CXuR = usD_.median_filter(WKvO, size=(3, 3))\n CtCg = oyIN.abs(WKvO - CXuR)\n lWrn = oyIN.shape(WKvO)\n WTkW = 1.48 * oyIN.median(CtCg)\n return WTkW", "def wvz3(nPrm):\n BjRM =...
[ "0.82212967", "0.79919595", "0.7802492", "0.771391", "0.7704853", "0.7647798", "0.7533623", "0.7515002", "0.7511463", "0.7503946", "0.74794644", "0.7414258", "0.73711467", "0.7368744", "0.72507054", "0.72504926", "0.7194927", "0.71870214", "0.6965172", "0.6960413", "0.6882036...
0.75100553
9
Convolve array with a square pulse. Sum of array values is preserved.
def v7L4(fvO8: int, hkxX): assert isinstance(fvO8, int), '`window_width` must be expressed in a number of bins, and so must be an integer' Ty9i = oyIN.ones(fvO8) Ty9i /= len(Ty9i) return oyIN.convolve(hkxX, Ty9i, mode='same')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P79G(YKHO, K2t5):\n if YKHO.shape[0] % 2 == 0 or YKHO.shape[1] % 2 == 0:\n raise BQDi.ConvolutionException('PrimaryBeam Kernel must be odd')\n return Zxt2.signal.convolve2d(K2t5, YKHO, mode='same')", "def P79G(YKHO, K2t5):\n if YKHO.shape[0] % 2 == 0 or YKHO.shape[1] % 2 == 0:\n raise ...
[ "0.6606503", "0.65320647", "0.6452828", "0.6248138", "0.624472", "0.6241208", "0.62117726", "0.61958504", "0.60608536", "0.59832776", "0.59508896", "0.59209883", "0.59113693", "0.58679485", "0.58407944", "0.5812159", "0.5785877", "0.5776755", "0.5771444", "0.5752224", "0.5741...
0.5469441
51
Convolve array of values with a gaussian. Sum of array values is preserved.
def OAjL(WTkW: float, hkxX): WKvO = oyIN.arange(int(-6 * WTkW), int(6 * WTkW) + 1) Ty9i = CkYf.pdf(x=WKvO, scale=WTkW) Ty9i /= sum(Ty9i) return oyIN.convolve(hkxX, Ty9i, mode='same')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apUX(zNig):\n JRjm = oyIN.array([1])\n for bGrB in range(1, zNig):\n JRjm = oyIN.convolve(JRjm, oyIN.array([1, 1]))\n return (JRjm / oyIN.sum(JRjm)).reshape(1, zNig)", "def at2V(nPrm: np.ndarray, CS3p: int=21) -> oyIN.ndarray:\n CkYf = eQSh.norm(0, CS3p)\n EcVT = oyIN.linspace(CkYf.ppf(...
[ "0.7090292", "0.7076776", "0.703922", "0.69348896", "0.67740417", "0.6748028", "0.67103773", "0.6691477", "0.6648963", "0.6623919", "0.6581022", "0.6580218", "0.653233", "0.6532161", "0.6500222", "0.64576143", "0.642902", "0.6339314", "0.6312177", "0.6300333", "0.62762785", ...
0.68062776
4
test whether bin widths are all equal.
def Gls8(YKHO): KOP7 = True for Fg_i in YKHO.bin_widths: if not oyIN.isclose(Fg_i, YKHO.bin_widths[0]): KOP7 = False break return KOP7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eNkQ(YKHO):\n MKlR = zt50(5)\n MKlR.add(3)\n MKlR.add(4)\n MKlR.finalize()\n YKHO.assertEqual(0.2, MKlR.binWidth)", "def Qkt3(YKHO):\n MKlR = zt50()\n MKlR.add(3)\n MKlR.finalize()\n YKHO.assertEqual(0.0, MKlR.binWidth)", "def FrwM(YKHO):\n Q2UN = YKHO.bins._calculate_bin_inde...
[ "0.7221477", "0.6820174", "0.6703364", "0.6454267", "0.62967104", "0.6262867", "0.62557715", "0.6183436", "0.6093324", "0.60692436", "0.60415107", "0.5922012", "0.590443", "0.5818477", "0.577474", "0.5771979", "0.57265735", "0.572047", "0.5718497", "0.57184076", "0.57102334",...
0.64871407
3
Return a human readable version of , according to information available in this LocationDB instance
def H2bK(YKHO, Wb0t): ZWCE = YKHO.get_location_names(Wb0t) ukjG = set() for mWFP in ZWCE: try: mWFP = mWFP.decode() except AttributeError: pass ukjG.add(mWFP) ZWCE = list(ukjG) if ZWCE: return ZWCE[0] vgXP = YKHO.get_location_offset(Wb0t) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rci7(YKHO):\n return ', '.join([str(YKHO.venue), str(YKHO.city), str(YKHO.state)])", "def zAg0(YKHO):\n zYh3 = []\n for gx6J in YKHO.loci:\n zYh3.append('%s..%s' % (gx6J.start, gx6J.stop))\n Eb5_ = ','.join(zYh3)\n return '%s %s (%s) %s' % (YKHO.name, YKHO.chrom, Eb5_, YKHO.size)", "d...
[ "0.70906216", "0.69928235", "0.6913409", "0.6813811", "0.6771264", "0.66833156", "0.6663998", "0.6554753", "0.6500403", "0.649377", "0.64769757", "0.6470128", "0.6466993", "0.6453469", "0.6453294", "0.64449346", "0.6417788", "0.6400887", "0.6360464", "0.6351016", "0.63081646"...
0.0
-1
Calculates area of rectangle
def f0tD(YKHO): return YKHO.width * YKHO.height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAdl(mawX: np.ndarray) -> float:\n Jw7X = mawX[2] - mawX[0]\n eUWA = mawX[3] - mawX[1]\n return Jw7X * eUWA", "def X8lI(u54L, TVTK):\n return u54L * TVTK", "def Aw0V(YKHO):\n pass", "def jGjA(u54L, TVTK):\n f0tD = u54L * TVTK\n return f0tD", "def Rqyz(q1iG, iv9J):\n return q1iG ...
[ "0.8278505", "0.8170475", "0.8165945", "0.8139026", "0.8082557", "0.80554473", "0.8009998", "0.79643255", "0.79552", "0.7953868", "0.79518694", "0.7944665", "0.7940053", "0.79022384", "0.78965497", "0.7888334", "0.7866132", "0.7865619", "0.78434974", "0.78431135", "0.7812349"...
0.74406064
87
Add the qos with id qos_id to the switch. tp_ofid is assumed to be the openflow id of the port
def jZtw(YKHO, Lnes, MGIf, Btdl): GpuQ = YKHO.__place_qos_on_port(Lnes, MGIf, Btdl) while True: if YKHO.is_qos_on_tp(Lnes, Btdl): _9jN = YKHO.get_ovsnode(Lnes) _9jN.set_port_data(Btdl, GpuQ) _9jN.set_qos_on_port(MGIf, Btdl) break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vGTB(YKHO, Lnes, MGIf, Btdl):\n PJGE = int(Btdl.split(':')[-1])\n try:\n zicO = YKHO.switchid_to_oftopid[Lnes]\n except KeyError:\n return\n OYfr = YKHO.tops[zicO]\n _9jN = OYfr.nodes[Lnes]\n pc47 = _9jN.ovsdb_top_id\n lqVq = _9jN.ovsdb_id\n criA = _9jN.br_ovsdb_id\n bS...
[ "0.7162364", "0.71268076", "0.6743811", "0.6630955", "0.6564198", "0.6304203", "0.61035156", "0.6089133", "0.6031838", "0.5925801", "0.5889758", "0.5879597", "0.57869774", "0.5784974", "0.57628703", "0.5724873", "0.56981736", "0.56488806", "0.5640109", "0.56156015", "0.557153...
0.78113955
0
Return the port speed of the port with the corresponding OF id.
def IW5X(YKHO, mWFh): Lnes = mWFh.rsplit(':', 1)[0] zicO = YKHO.switchid_to_oftopid[Lnes] OYfr = YKHO.tops[zicO] Q6kx = OYfr.get_node(Lnes) z2ht = Q6kx.get_port_speed(mWFh) z2ht *= 1000 return z2ht
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _1xG(YKHO):\n return YKHO.__port_speed", "def _1xG(YKHO):\n return YKHO.__port_speed", "def PW4g(YKHO, id):\n if id == 'veh_1':\n return 5\n elif id == 'veh_2':\n return 10\n elif id == 'veh_3':\n return 15\n elif id == 'veh_4':\n return 20\n elif id == 'veh...
[ "0.78383964", "0.7680194", "0.6978631", "0.6619823", "0.6585585", "0.6547491", "0.6395616", "0.6365637", "0.63565034", "0.63311905", "0.63121593", "0.63097674", "0.6301746", "0.6301746", "0.62720656", "0.62488854", "0.6243944", "0.6223305", "0.62178224", "0.6214453", "0.62076...
0.84255534
0
Compute output shape. Notes This is a mandatory method to implement for custom Keras layers.
def dOsr(YKHO, hB0Y): H2v2, TVTK, ATUR, YDR7 = hB0Y[0][1:] return (None, YKHO._tgt_h, YKHO._tgt_w, ATUR, YDR7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vxfh(YKHO, GhuM):\n oLRV = GhuM\n for gEmA in YKHO.layers:\n oLRV = gEmA._compute_output_shape(oLRV)\n return oLRV", "def dOsr(YKHO, GhuM):\n return nMvt.int_shape(YKHO.final_state)", "def I_E2(YKHO):\n return YKHO._input_shape", "def oLRV(YKHO):\n pass", "def dOsr(YKHO, GhuM):...
[ "0.8686616", "0.8579218", "0.847221", "0.84618944", "0.84460425", "0.8414627", "0.836013", "0.836013", "0.83129525", "0.83129525", "0.81886286", "0.81486535", "0.81486535", "0.81276745", "0.8100345", "0.80335134", "0.80263984", "0.80156845", "0.7989183", "0.7989183", "0.79891...
0.76024425
39
get list of python requirements and return a list of dicts with possible patchable dependencies versions,
def yyPs(gas1=None): HnBp = b0f8(gas1) mgUq = [] for uiGr in HnBp: if uiGr.version.is_valid_semantic_version(): i91T = qRjm(uiGr.package_name) LCWT = i91T.get('releases').keys() uiGr.identify_possible_patch(LCWT) mgUq.append(uiGr.get_dict()) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wgym() -> cuzp[str, str]:\n hlel = Yn3K.check_output('pip freeze', shell=True, text=True)\n L3_C: cuzp[str, str] = {}\n for rdlD in hlel.split('\\n'):\n if '==' not in rdlD:\n continue\n PXIy = rdlD.split('==')\n L3_C[PXIy[0]] = PXIy[1]\n return L3_C", "def EibP():...
[ "0.74517393", "0.7347251", "0.7289312", "0.72777826", "0.7274765", "0.7259293", "0.7251189", "0.7234707", "0.7227114", "0.71287894", "0.7122194", "0.7092831", "0.7076756", "0.7067134", "0.7057522", "0.7031739", "0.701391", "0.70001274", "0.69863546", "0.69830245", "0.69725686...
0.77861315
0
Get list of members, including bots.
def CMgi(YKHO, mWFP=None): DgAC = YKHO.user.get_members(mWFP) if mWFP is None: DgAC += [Fg_i for Fg_i in YKHO.user.get_bots() if Fg_i['group_id'] == YKHO.user.group_id] return DgAC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CMgi(YKHO):\n return YKHO.request('members', method='get').json()", "def hfrA() -> laHg.List:\n iBIi = Ygs8()\n fSX_ = iBIi.get_members()\n return fSX_", "def DgAC(YKHO):\n return YKHO.rosters['guild'].members", "def xV5X(mE3u, LOJ7):\n _hkX = mE3u.channels.get('conversations.members', ...
[ "0.77097553", "0.7550833", "0.7500157", "0.74978167", "0.7379909", "0.7379909", "0.7365931", "0.73489565", "0.72965074", "0.72806233", "0.7276836", "0.72753835", "0.72476435", "0.7241487", "0.7240199", "0.7225859", "0.71818423", "0.7162568", "0.7160556", "0.7130329", "0.71098...
0.7834219
0
Return JSON of groups.
def MvIi(YKHO): return G4JS.get(YKHO.build_url('groups')).json()['response']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def moMn(YKHO):\n return nC76(YKHO.p / 'groups.json').read()", "def NMoC(YKHO):\n return pz3A(moMn)", "def dGwA():\n moMn = cQ68.query.all()\n _hkX = []\n for Oa1e in moMn:\n _hkX.append(Oa1e.to_dict())\n return pz3A(_hkX)", "def moMn():\n moMn = FYrf.Submission.objects().distinct...
[ "0.87123823", "0.86948675", "0.8022814", "0.79831", "0.7978017", "0.7775253", "0.77365613", "0.76128906", "0.74251026", "0.71309334", "0.7098299", "0.7012209", "0.6884111", "0.6876598", "0.68739593", "0.6809523", "0.6809455", "0.68066466", "0.6804239", "0.67920494", "0.678962...
0.7751419
6
Return list of bots.
def xgLJ(YKHO): return G4JS.get(YKHO.build_url('bots')).json()['response']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FW4i(Emd4) -> list:\n global bots\n FW4i = []\n FW4i.append(Emd4.conf.get('host'))\n return FW4i", "def QT6D(YKHO):\n all = []\n for JyK9 in YKHO.data.keys():\n all.append((JyK9, YKHO.data[JyK9]['nickserv']))\n return all", "def FW4i(YKHO):\n return YKHO._bots", "def JyK9(Y...
[ "0.8273816", "0.8148425", "0.8030826", "0.80063254", "0.7482741", "0.7435063", "0.7383032", "0.72551924", "0.7205783", "0.700422", "0.69275075", "0.6830616", "0.68142813", "0.6718338", "0.6667585", "0.65230924", "0.6515792", "0.6485094", "0.6357782", "0.63461417", "0.6338915"...
0.78553873
4
The average operator. Computes the average of an observable sequence of values that are in the sequence or obtained by invoking a transform function on each element of the input sequence if present.
def S8vG(NTpD: Optional[Mapper[_T, float]]=None) -> YrBT[[cBwQ[sb5H]], cBwQ[float]]: from ._average import average_ return average_(NTpD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S8vG(Q6uT: list[Optional[float]]) -> float:\n wjRY, UHFx = (0.0, 0)\n for Ty9i in filter(None, Q6uT):\n wjRY += Ty9i\n UHFx += 1\n return wjRY / UHFx", "def yUQ1(aWuw: List) -> float:\n return sum(aWuw) / len(aWuw)", "def zsZT(aWuw):\n for YRbF, Ty9i in enumerate(pD6w(aWuw)):\n...
[ "0.7191153", "0.7161236", "0.70129454", "0.6965295", "0.6965295", "0.6953548", "0.68943423", "0.6859001", "0.67515415", "0.6727921", "0.6595199", "0.6484531", "0.64776534", "0.6463124", "0.64595115", "0.64410293", "0.6433408", "0.64275277", "0.6422556", "0.6401686", "0.639972...
0.6242364
48
Returns the first element of an observable sequence that satisfies the condition in the predicate, or a default value if no such element exists.
def lIPo(lgNN: Optional[Predicate[_T]]=None, HyJ9: Optional[_T]=None) -> YrBT[[cBwQ[sb5H]], cBwQ[sb5H]]: from ._firstordefault import first_or_default_ return first_or_default_(lgNN, HyJ9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lIPo(aWuw: Iterable, XEri: Callable[[], bool], WmM4=None):\n return next((ZfUD for ZfUD in aWuw if XEri(ZfUD)), WmM4)", "def g8tW(OxJJ, XEri=lambda WKvO: True):\n return next((WKvO for WKvO in OxJJ if XEri(WKvO)))", "def Y8gI(YKHO, lgNN, HyJ9):\n return YKHO.filter(lgNN).single_or_default(None, Hy...
[ "0.83824444", "0.7622866", "0.75993353", "0.7565796", "0.74887145", "0.74489075", "0.7367643", "0.7315207", "0.7306233", "0.724079", "0.7172437", "0.7119751", "0.7111222", "0.7064381", "0.6967014", "0.69163597", "0.69003767", "0.68552434", "0.68460435", "0.6833565", "0.680479...
0.7825398
1
Determines whether an observable sequence is empty.
def FBfn() -> YrBT[[cBwQ[ImMB]], cBwQ[bool]]: from ._isempty import is_empty_ return is_empty_()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A4KR(YKHO):\n return YKHO._count == 0", "def A4KR(YKHO):\n return YKHO._count == 0", "def A4KR(YKHO):\n return YKHO._count == 0", "def FBfn(YKHO):\n return YKHO._first is None", "def FBfn(YKHO):\n return YKHO._first is None", "def FBfn(YKHO):\n return YKHO._first is None", "def FB...
[ "0.76926565", "0.76926565", "0.76926565", "0.767174", "0.767174", "0.767174", "0.76653695", "0.76653695", "0.76653695", "0.76653695", "0.7663384", "0.7661559", "0.7661559", "0.7661256", "0.7647291", "0.76390076", "0.76390076", "0.7637146", "0.7637146", "0.7626611", "0.7626611...
0.81957555
0
The pairwise operator. Returns a new observable that triggers on the second and subsequent triggerings of the input observable. The Nth triggering of the input observable passes the arguments from the N1th and Nth triggering as a pair. The argument passed to the N1th triggering is held in hidden internal state until th...
def Zu14() -> YrBT[[cBwQ[sb5H]], cBwQ[AzJI[sb5H, sb5H]]]: from ._pairwise import pairwise_ return pairwise_()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zip(*qIxc: Observable[Any]) -> YrBT[[cBwQ[ImMB]], cBwQ[ImMB]]:\n from ._zip import zip_\n return zip_(*qIxc)", "def hzo9(CsFy: Iterable[_T2]) -> YrBT[[cBwQ[IqIn]], cBwQ[AzJI[IqIn, cP0J]]]:\n from ._zip import zip_with_iterable_\n return zip_with_iterable_(CsFy)", "def mFPj() -> YrBT[[cBwQ[cBwQ[...
[ "0.546468", "0.52543044", "0.5144719", "0.5110409", "0.5069426", "0.50135255", "0.4851839", "0.4851839", "0.48514214", "0.48100865", "0.48043528", "0.47853798", "0.4782503", "0.4776368", "0.47596332", "0.47491565", "0.47475308", "0.4744774", "0.47413814", "0.47349316", "0.471...
0.691644
0
Returns two observables which partition the observations of the source by the given function. The first will trigger observations for those values for which the predicate returns true. The second will trigger observations for those values where the predicate returns false. The predicate is executed once for each subscr...
def Qrt_(lgNN: Predicate[_T]) -> YrBT[[cBwQ[sb5H]], x1iM[cBwQ[sb5H]]]: from ._partition import partition_ return partition_(lgNN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(lgNN: Predicate[_T]) -> YrBT[[cBwQ[sb5H]], cBwQ[sb5H]]:\n from ._filter import filter_\n return filter_(lgNN)", "def zOjg(JZXy: Observable[_T]) -> cBwQ[bool]:\n\n def FxIp(LiTy: abc.ObserverBase[bool], IesV: Optional[abc.SchedulerBase]=None):\n\n def T7oM(bGrB: _T):\n LiTy.o...
[ "0.66159487", "0.6605491", "0.6148379", "0.6128991", "0.609651", "0.6060971", "0.60518277", "0.6024857", "0.59467447", "0.59419", "0.59245014", "0.59240013", "0.5764755", "0.5690974", "0.5627833", "0.5614218", "0.5545229", "0.5538685", "0.5510823", "0.5507379", "0.5485725", ...
0.661223
1
Retrieves the value of a specified key using dictlike access (as in element[key]) from all elements in the Observable sequence. To pluck an attribute of each element, use pluck_attr.
def IDAB(H5ew: _TKey) -> YrBT[[cBwQ[cuzp[z9Kz, uQGy]]], cBwQ[uQGy]]: from ._pluck import pluck_ return pluck_(H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, H5ew):\n return YKHO.get_attribute(H5ew)", "def OP2O(YKHO, H5ew):\n return YKHO.get_attribute(H5ew)", "def OP2O(YKHO, H5ew):\n return YKHO._getAttrMap()[H5ew]", "def h7hs(QWcs: str) -> YrBT[[cBwQ[ImMB]], cBwQ[ImMB]]:\n from ._pluck import pluck_attr_\n return pluck_attr_(QWcs)",...
[ "0.65843564", "0.65843564", "0.65217", "0.64449584", "0.64378095", "0.6397428", "0.6397428", "0.63960445", "0.6363487", "0.62882507", "0.6278378", "0.6165432", "0.60966647", "0.6056755", "0.6038003", "0.6033627", "0.6011784", "0.598515", "0.597652", "0.5974088", "0.5974088", ...
0.67334735
0
Returns an observable sequence that is the result of invoking the mapper on a connectable observable sequence that shares a single subscription to the underlying sequence and starts with initial_value. This operator is a specialization of Multicast using a BehaviorSubject.
def ndCb(lJf5: _T1, YAg3: Optional[Mapper[Observable[_T1], Observable[_T2]]]=None) -> YrBT[[cBwQ[IqIn]], uLKX[cBwQ[cP0J], wuKS[IqIn]]]: from ._publishvalue import publish_value_ return publish_value_(lJf5, YAg3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FmUx(U4ZT: Optional[abc.SubjectBase[_T]]=None, *, b8DQ: Optional[Callable[[Optional[abc.SchedulerBase]], abc.SubjectBase[_T]]]=None, YAg3: Optional[Callable[[Observable[_T]], Observable[_T2]]]=None) -> YrBT[[cBwQ[sb5H]], uLKX[cBwQ[cP0J], wuKS[sb5H]]]:\n from ._multicast import multicast_\n return multica...
[ "0.61298275", "0.5931462", "0.58159614", "0.57529503", "0.56954914", "0.5667975", "0.56404877", "0.5470157", "0.5465168", "0.5432166", "0.5413157", "0.53822255", "0.5381221", "0.53599256", "0.53191537", "0.53137213", "0.5282417", "0.52740335", "0.52557105", "0.52273506", "0.5...
0.6838689
0
Bypasses elements in an observable sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.
def DmuK(lgNN: typing.PredicateIndexed[_T]) -> YrBT[[cBwQ[sb5H]], cBwQ[sb5H]]: from ._skipwhile import skip_while_indexed_ return skip_while_indexed_(lgNN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xLl0(OxJJ, lgNN):\n return (WKvO for WKvO in OxJJ if not lgNN(WKvO))", "def cmRv(lgNN: Callable, eK5b: Iterable) -> jd6F:\n for YRbF in eK5b:\n if lgNN(YRbF):\n break\n for YRbF in eK5b:\n yield YRbF", "def Lpr_(OxJJ, lgNN):\n for ZfUD in OxJJ:\n if not lgNN(ZfUD...
[ "0.66403526", "0.6503451", "0.6454696", "0.6405637", "0.62768054", "0.6241379", "0.6149545", "0.6112739", "0.6063642", "0.59783405", "0.5889187", "0.58828557", "0.58747673", "0.58740497", "0.5871536", "0.5842705", "0.58241457", "0.58236206", "0.5787176", "0.5757794", "0.57343...
0.6808233
0
Projects each source value to an Observable which is merged in the output Observable, emitting values only from the most recently projected Observable.
def yhpU(bNKA: Optional[Mapper[_T1, Observable[_T2]]]=None) -> YrBT[[cBwQ[IqIn]], cBwQ[cP0J]]: return capf(map(bNKA), whEX())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wa_u(JZXy: Observable) -> cBwQ:\n return JZXy.pipe(IPme.map(YAg3), IPme.switch_latest())", "def nSnN(*qIxc: Union[Observable, Iterable[Observable]]) -> cBwQ:\n c7pe = qIxc[:]\n if isinstance(c7pe[0], iu5r):\n c7pe = c7pe[0]\n return ydZk.from_iterable(c7pe).pipe(IPme.merge_all())", "def ...
[ "0.70499", "0.633115", "0.5971283", "0.57885134", "0.56441355", "0.561939", "0.5599977", "0.554375", "0.5508518", "0.5465893", "0.54183364", "0.5378309", "0.5363992", "0.5344173", "0.52360266", "0.5213238", "0.5199284", "0.51908356", "0.5168929", "0.5163103", "0.5105597", "...
0.51166683
20
Projects each source value to an Observable which is merged in the output Observable, emitting values only from the most recently projected Observable.
def RTi4(bNKA: Optional[MapperIndexed[_T1, Observable[_T2]]]=None) -> YrBT[[cBwQ[IqIn]], cBwQ[cP0J]]: return capf(_cFW(bNKA), whEX())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wa_u(JZXy: Observable) -> cBwQ:\n return JZXy.pipe(IPme.map(YAg3), IPme.switch_latest())", "def nSnN(*qIxc: Union[Observable, Iterable[Observable]]) -> cBwQ:\n c7pe = qIxc[:]\n if isinstance(c7pe[0], iu5r):\n c7pe = c7pe[0]\n return ydZk.from_iterable(c7pe).pipe(IPme.merge_all())", "def ...
[ "0.7051092", "0.63327664", "0.5972246", "0.57884884", "0.5645998", "0.5621026", "0.5602045", "0.5542888", "0.5507627", "0.54669434", "0.54181445", "0.5379734", "0.53647417", "0.5346505", "0.5236977", "0.5214633", "0.51984006", "0.5192165", "0.516884", "0.51659375", "0.5117361...
0.4376007
81
Returns a specified number of contiguous elements from the end of an observable sequence.
def Kuh3(UHFx: int) -> YrBT[[cBwQ[sb5H]], cBwQ[sb5H]]: from ._takelast import take_last_ return take_last_(UHFx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jWe2(OxJJ, exwG):\n SQ3m = []\n yKcO = 0\n for YRbF in range(len(OxJJ)):\n aWuw = OxJJ[YRbF:YRbF + exwG]\n if len(aWuw) == exwG:\n SQ3m.append(aWuw)\n yKcO += 1\n return SQ3m", "def V6FO(WKvO):\n YRbF = 0\n while YRbF < len(WKvO):\n YRbF += 1\n ...
[ "0.67938185", "0.6567997", "0.6456588", "0.6456588", "0.64039326", "0.63448226", "0.63377863", "0.6328942", "0.6324801", "0.6320883", "0.6319019", "0.6303585", "0.6292529", "0.6290635", "0.62876254", "0.62876254", "0.6283419", "0.6273325", "0.6270697", "0.6266665", "0.6266665...
0.0
-1
Returns the source observable sequence or the other observable sequence if duetime elapses.
def vYBr(O34w: typing.AbsoluteOrRelativeTime, Elif: Optional[Observable[_T]]=None, IesV: Optional[abc.SchedulerBase]=None) -> YrBT[[cBwQ[sb5H]], cBwQ[sb5H]]: from ._timeout import timeout_ return timeout_(O34w, Elif, IesV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uBTr(JZXy: Observable[_T]) -> cBwQ[sb5H]:\n\n def FxIp(LiTy: abc.ObserverBase[_T], D15J: Optional[abc.SchedulerBase]=None):\n RJ4a = IesV or D15J or XvhI.singleton()\n open = [False]\n\n def XeOP(IesV: abc.SchedulerBase, QTBn: Any) -> None:\n open[0] = True\n a1PO = RJ...
[ "0.58814204", "0.57598555", "0.5655272", "0.5455649", "0.54339755", "0.5389276", "0.5341159", "0.51347995", "0.50252444", "0.5012294", "0.49804842", "0.4942174", "0.48905438", "0.4890139", "0.4866154", "0.48401198", "0.48361883", "0.48211098", "0.48187923", "0.4794277", "0.47...
0.49292302
12
Returns the source observable sequence, switching to the other observable sequence if a timeout is signaled.
def NpPu(W4mn: Optional[Observable[Any]]=None, pn3k: Optional[Callable[[_T], Observable[Any]]]=None, Elif: Optional[Observable[_T]]=None) -> YrBT[[cBwQ[sb5H]], cBwQ[sb5H]]: from ._timeoutwithmapper import timeout_with_mapper_ return timeout_with_mapper_(W4mn, pn3k, Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lpr_(YKHO, Elif: AsyncObservable[Any]) -> xyy8[LSeX]:\n from .filtering import Lpr_\n return xyy8(bCYe(YKHO, Lpr_(Elif)))", "def uBTr(JZXy: Observable[_T]) -> cBwQ[sb5H]:\n\n def FxIp(LiTy: abc.ObserverBase[_T], D15J: Optional[abc.SchedulerBase]=None):\n RJ4a = IesV or D15J or XvhI.singleton(...
[ "0.5922007", "0.5801532", "0.57540214", "0.57344526", "0.5717105", "0.5643895", "0.5405852", "0.52873117", "0.52873117", "0.52301896", "0.52010643", "0.5189737", "0.51820844", "0.5161282", "0.51503253", "0.5111763", "0.508713", "0.501654", "0.4989919", "0.4959469", "0.4895332...
0.49030474
20
Converts an existing observable sequence to a Future.
def GsXd(LBhX: Optional[Callable[[], 'Future[_T]']]=None) -> YrBT[[cBwQ[sb5H]], 'Future[_T]']: from ._tofuture import to_future_ return to_future_(LBhX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GsXd(YKHO) -> V7ok.Future:\n KS9L: V7ok.Future = V7ok.Future()\n hkxX = []\n\n def T7oM(Ty9i):\n hkxX.append(Ty9i)\n\n def vadG(aTqo):\n KS9L.set_exception(aTqo)\n\n def AvyP():\n Ty9i = hkxX.pop() if hkxX else None\n KS9L.set_result(Ty9i)\n YKHO.subscribe(T7oM, va...
[ "0.71648616", "0.5807866", "0.55375725", "0.55282724", "0.55040896", "0.5494196", "0.53660864", "0.5288942", "0.5226167", "0.51363575", "0.511711", "0.51155037", "0.50195396", "0.5003364", "0.49868464", "0.49803752", "0.49261788", "0.49226356", "0.4884782", "0.48662934", "0.4...
0.6871551
1
Projects each element of an observable sequence into zero or more windows.
def KnxT(UMN4: Observable[Any]) -> YrBT[[cBwQ[sb5H]], cBwQ[cBwQ[sb5H]]]: from ._window import window_ return window_(UMN4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w_5H() -> jd6F[x1iM[ao30], None, None]:\n ofwy = xzXV({0: 3})\n ofwy.setup()\n yield ofwy.windows[0]\n ofwy.destroy()", "def CsNT(OxJJ, zNig):\n tWnD = g760.deque(maxlen=zNig)\n for YRbF in OxJJ:\n tWnD.append(YRbF)\n if len(tWnD) == zNig:\n yield list(tWnD)", "de...
[ "0.70830536", "0.6217682", "0.62150955", "0.6030324", "0.60226977", "0.5949336", "0.59289426", "0.5913715", "0.5911195", "0.5864642", "0.583762", "0.5764334", "0.5763887", "0.5763887", "0.57607764", "0.5730836", "0.57077765", "0.57077765", "0.56636995", "0.56387776", "0.56328...
0.5931895
6
Projects each element of an observable sequence into zero or more windows.
def zMAx(xfDF: Callable[[], Observable[Any]]) -> YrBT[[cBwQ[sb5H]], cBwQ[cBwQ[sb5H]]]: from ._window import window_when_ return window_when_(xfDF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w_5H() -> jd6F[x1iM[ao30], None, None]:\n ofwy = xzXV({0: 3})\n ofwy.setup()\n yield ofwy.windows[0]\n ofwy.destroy()", "def CsNT(OxJJ, zNig):\n tWnD = g760.deque(maxlen=zNig)\n for YRbF in OxJJ:\n tWnD.append(YRbF)\n if len(tWnD) == zNig:\n yield list(tWnD)", "de...
[ "0.7082188", "0.62177086", "0.62146527", "0.60305995", "0.60228074", "0.59496003", "0.59338397", "0.5929071", "0.59142154", "0.5911459", "0.58648956", "0.5836097", "0.5764966", "0.5763976", "0.5763976", "0.5761055", "0.5730756", "0.57079816", "0.57079816", "0.56649303", "0.56...
0.53561187
42
Projects each element of an observable sequence into zero or more windows.
def m7o3(EiUo: Observable[Any], xfDF: Callable[[Any], Observable[Any]]) -> YrBT[[cBwQ[sb5H]], cBwQ[cBwQ[sb5H]]]: from ._window import window_toggle_ return window_toggle_(EiUo, xfDF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w_5H() -> jd6F[x1iM[ao30], None, None]:\n ofwy = xzXV({0: 3})\n ofwy.setup()\n yield ofwy.windows[0]\n ofwy.destroy()", "def CsNT(OxJJ, zNig):\n tWnD = g760.deque(maxlen=zNig)\n for YRbF in OxJJ:\n tWnD.append(YRbF)\n if len(tWnD) == zNig:\n yield list(tWnD)", "de...
[ "0.70830536", "0.6217682", "0.62150955", "0.6030324", "0.60226977", "0.5949336", "0.5931895", "0.59289426", "0.5913715", "0.5911195", "0.5864642", "0.583762", "0.5764334", "0.5763887", "0.5763887", "0.57607764", "0.5730836", "0.57077765", "0.57077765", "0.56636995", "0.563877...
0.0
-1
Projects each element of an observable sequence into zero or more windows which are produced based on element count information.
def JcHi(UHFx: int, EdbX: Optional[int]=None) -> YrBT[[cBwQ[sb5H]], cBwQ[cBwQ[sb5H]]]: from ._windowwithcount import window_with_count_ return window_with_count_(UHFx, EdbX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CsNT(OxJJ, zNig):\n tWnD = g760.deque(maxlen=zNig)\n for YRbF in OxJJ:\n tWnD.append(YRbF)\n if len(tWnD) == zNig:\n yield list(tWnD)", "def YHwD(YKHO, UHFx=64, IJYZ=(256, 256)):\n if UHFx is None:\n while True:\n yield YKHO.randwindow(IJYZ)\n else:\n ...
[ "0.6384976", "0.6277066", "0.6223907", "0.6211911", "0.61237264", "0.60942656", "0.60253847", "0.60201204", "0.6018664", "0.6018664", "0.60141695", "0.5900708", "0.5887331", "0.5887331", "0.58782107", "0.58237576", "0.5817534", "0.57964", "0.5759664", "0.57499945", "0.5703306...
0.57131845
20
Reset the wavefunction to the ``|000...00>`` state.
def SiRx(YKHO) -> 'ReferenceWavefunctionSimulator': YKHO.wf.fill(0) YKHO.wf[0] = complex(1.0, 0) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tdUQ(YKHO, *qIxc):\n YKHO.set_wavefunction('0')", "def ktaR(YKHO):\n pass", "def SiRx(YKHO):\n for UsS3 in YKHO.wires:\n UsS3.bit = 0", "def VEUF(YKHO):\n YKHO.writeAndRead('c')", "def ktaR(YKHO):\n YKHO.currentState = zZgD.lowResOffset\n YKHO.View.PlotOpt.SplitIntoApprRetract ...
[ "0.74293476", "0.71006876", "0.67321026", "0.66020507", "0.6494001", "0.6459461", "0.64482576", "0.64463526", "0.6414228", "0.6395171", "0.6376535", "0.63636637", "0.6350209", "0.63415223", "0.6341493", "0.63393146", "0.63250023", "0.63211405", "0.6318095", "0.6310223", "0.63...
0.7143525
1
Construct a matrix corresponding to the tensor product of `n` ground states ``|0><0|``.
def dJN2(Tr6b: int) -> oyIN.ndarray: oHJP = oyIN.zeros((2 ** Tr6b, 2 ** Tr6b), dtype=oyIN.complex128) oHJP[0, 0] = complex(1.0, 0) return oHJP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ocA9(YKHO, CM2R):\n U5bT = XTiz.zeros((CM2R, CM2R))\n for YRbF in range(0, CM2R - 1):\n U5bT[YRbF][YRbF + 1] = 1.0\n return U5bT", "def yjj_(QTBn: TensorProductState, Hswb: List[int]) -> oyIN.ndarray:\n vb7U: oyIN.ndarray = oyIN.eye(1)\n for t3jy in Hswb:\n S5Lj = QTBn[t3jy]\n ...
[ "0.63868856", "0.6236399", "0.6187396", "0.61823165", "0.6163247", "0.6068445", "0.604594", "0.601808", "0.601808", "0.6007107", "0.5996846", "0.59520054", "0.5937596", "0.59315044", "0.59086955", "0.5897565", "0.58970773", "0.5888743", "0.587457", "0.587191", "0.5868269", ...
0.5804456
29
Resets the current state of ReferenceDensitySimulator ``self.density`` to ``self.initial_density``.
def SiRx(YKHO) -> 'AbstractQuantumSimulator': YKHO.density = YKHO.initial_density return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NFIB(YKHO, InLe):\n YKHO.params.density = InLe\n YKHO.recalculate_params()", "def SiRx(YKHO):\n YKHO.diameter = YKHO.inactive_diameter", "def SiRx(YKHO):\n YKHO[:] = 0.0", "def SiRx(YKHO):\n YKHO[:] = 0.0", "def v4BY(YKHO):\n YKHO.density = YKHO.GetDensity()\n return", "def SiRx(...
[ "0.6642789", "0.6550274", "0.64342654", "0.64342654", "0.6426684", "0.64074266", "0.64074266", "0.64074266", "0.64074266", "0.6402393", "0.63675845", "0.63568854", "0.6356209", "0.63388336", "0.633236", "0.63170284", "0.63048166", "0.62960243", "0.62960243", "0.62960243", "0....
0.78949875
0
Creates a Priority Queue of all possible App Instance numbers. To create any App instance, the next available number is dequeued from this priority queue only.
def p5fB(): ix4j = sijU() for YRbF in range(1, DoiZ + 1): ix4j.put(YRbF) return ix4j
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bmrp():\n gGq6 = g5js()\n for YRbF in range(1, 7):\n gGq6.enqueue(YRbF)\n return gGq6", "def FIMM(YKHO, c1Ib: int):\n YKHO.queue = g5js(maxsize=c1Ib)\n YKHO.used = set()\n for YRbF in range(c1Ib):\n YKHO.queue.put(YRbF)", "def yLF8():\n return sijU(0, None, None)", "def...
[ "0.64829284", "0.6153145", "0.5905468", "0.5707566", "0.5701125", "0.5543799", "0.5535366", "0.55302", "0.54328454", "0.5431787", "0.5399847", "0.5395812", "0.53797793", "0.5362928", "0.53520614", "0.5351256", "0.53382653", "0.53237605", "0.53139573", "0.5309157", "0.53084254...
0.7828379
0
Cleans up a slug by removing slug separator characters that occur at the beginning or end of a slug. If an alternate separator is used, it will also replace any instances of the default '' separator with the new separator.
def nuSZ(BWXx, g8rx='-'): g8rx = g8rx or '' if g8rx == '-' or not g8rx: lKuz = '-' else: lKuz = '(?:-|%s)' % ZbWC.escape(g8rx) if g8rx != lKuz: BWXx = ZbWC.sub('%s+' % lKuz, g8rx, BWXx) if g8rx: if g8rx != '-': lKuz = ZbWC.escape(g8rx) BWXx = ZbWC....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nuSZ(BWXx, g8rx=None):\n if g8rx == '-' or not g8rx:\n lKuz = '-'\n else:\n lKuz = '(?:-|%s)' % ZbWC.escape(g8rx)\n BWXx = ZbWC.sub('%s+' % lKuz, g8rx, BWXx)\n return ZbWC.sub('^%s+|%s+$' % (lKuz, lKuz), '', BWXx)", "def nuSZ(BWXx, g8rx=None):\n if g8rx == '-' or not g8rx:\n ...
[ "0.80964077", "0.80964077", "0.80715984", "0.7304485", "0.7206218", "0.6700232", "0.66855764", "0.66719574", "0.66054034", "0.65768814", "0.65612787", "0.653376", "0.6533704", "0.6526323", "0.6516821", "0.6506681", "0.65050334", "0.64820313", "0.6478151", "0.6444244", "0.6444...
0.80918014
2
Builds `StatefulBroadcastFn` for weights of model returned by `model_fn`. This method creates a `SimpleEncoder` for every weight of model created by `model_fn`, as returned by `encoder_fn`.
def Jm5u(JnVv, ZA6s): gw9A.check_callable(JnVv) gw9A.check_callable(ZA6s) _mSQ = LHxI(JnVv) YuKy = ZylS.nest.map_structure(ZA6s, _mSQ) return ulZV.utils.build_encoded_broadcast(_mSQ, YuKy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zglZ(JnVv, ZA6s):\n gw9A.check_callable(JnVv)\n gw9A.check_callable(ZA6s)\n pnNX = LHxI(JnVv).trainable\n YuKy = ZylS.nest.map_structure(ZA6s, pnNX)\n return ulZV.utils.build_encoded_sum(pnNX, YuKy)", "def kt_Z() -> ulZV.utils.StatefulBroadcastFn:\n return ulZV.utils.StatefulBroadcastFn(ini...
[ "0.6744148", "0.6360013", "0.63431525", "0.58093476", "0.57608306", "0.5747569", "0.5657727", "0.56293315", "0.55851686", "0.5535066", "0.5524622", "0.5524622", "0.5524622", "0.5504782", "0.5499216", "0.54725885", "0.5463948", "0.54505545", "0.5435492", "0.539204", "0.5380315...
0.7933744
0
Builds `StatefulAggregateFn` for weights of model returned by `model_fn`. This method creates a `GatherEncoder` for every trainable weight of model created by `model_fn`, as returned by `encoder_fn`.
def zglZ(JnVv, ZA6s): gw9A.check_callable(JnVv) gw9A.check_callable(ZA6s) pnNX = LHxI(JnVv).trainable YuKy = ZylS.nest.map_structure(ZA6s, pnNX) return ulZV.utils.build_encoded_sum(pnNX, YuKy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jm5u(JnVv, ZA6s):\n gw9A.check_callable(JnVv)\n gw9A.check_callable(ZA6s)\n _mSQ = LHxI(JnVv)\n YuKy = ZylS.nest.map_structure(ZA6s, _mSQ)\n return ulZV.utils.build_encoded_broadcast(_mSQ, YuKy)", "def b081(JnVv, ZA6s):\n gw9A.check_callable(JnVv)\n gw9A.check_callable(ZA6s)\n pnNX = ...
[ "0.70272976", "0.6982344", "0.6311388", "0.61997014", "0.57951593", "0.56767553", "0.5659583", "0.5598609", "0.55372405", "0.5530574", "0.5530458", "0.5506575", "0.5503316", "0.5438147", "0.54344946", "0.5430688", "0.5430658", "0.5402618", "0.53925514", "0.5389799", "0.536317...
0.7343575
0
Builds `StatefulAggregateFn` for weights of model returned by `model_fn`. This method creates a `GatherEncoder` for every trainable weight of model created by `model_fn`, as returned by `encoder_fn`.
def b081(JnVv, ZA6s): gw9A.check_callable(JnVv) gw9A.check_callable(ZA6s) pnNX = LHxI(JnVv).trainable YuKy = ZylS.nest.map_structure(ZA6s, pnNX) return ulZV.utils.build_encoded_mean(pnNX, YuKy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zglZ(JnVv, ZA6s):\n gw9A.check_callable(JnVv)\n gw9A.check_callable(ZA6s)\n pnNX = LHxI(JnVv).trainable\n YuKy = ZylS.nest.map_structure(ZA6s, pnNX)\n return ulZV.utils.build_encoded_sum(pnNX, YuKy)", "def Jm5u(JnVv, ZA6s):\n gw9A.check_callable(JnVv)\n gw9A.check_callable(ZA6s)\n _mS...
[ "0.7344883", "0.7029095", "0.6310966", "0.6199644", "0.57948035", "0.56792766", "0.56615347", "0.5598702", "0.55374146", "0.5531366", "0.55298245", "0.55098975", "0.55040926", "0.5438465", "0.54342425", "0.54315794", "0.54310185", "0.5404251", "0.5392901", "0.53898895", "0.53...
0.6983865
2
splits string in words then iterates through resulted lists and strips punctuation from each word then sorts the string ignoring capital letters
def KXXs(XB3W): IMve = [GIN8.strip(vIwR.punctuation) for GIN8 in XB3W.split()] IMve.sort(key=lambda Ty9i: Ty9i.upper()) return IMve
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ANJd(KCHu):\n V22M = ZbWC.findall('[\\\\wöäåÖÄÅ]+', KCHu)\n KdNo = set([str(WKvO).upper() for WKvO in V22M])\n return ''.join(sorted(KdNo))", "def ZPZR(V22M):\n mpXM = sorted(V22M, key=lambda WKvO: WKvO.lower())\n return sorted(mpXM, key=lambda WKvO: WKvO[0].isdigit())", "def ZPZR(V22M):\n ...
[ "0.76256686", "0.74305457", "0.71808225", "0.7061653", "0.7046922", "0.7033963", "0.70299506", "0.7021912", "0.7021912", "0.70194715", "0.6980719", "0.69283026", "0.69268167", "0.6897293", "0.6897293", "0.6897293", "0.6853256", "0.6853256", "0.6853256", "0.6853256", "0.685325...
0.704573
5
Convert a letter, a sequence of letters, or a matrix of letters to a corresponding integer, sequence of integers, or matrix of integers. This also works for lists of sequences of unequal lengths.
def UnH3(YKHO, Xtuq): if len(YKHO._letters) == 0: raise KeyError('to_int called on empty alphabet.') if oyIN.ndim(Xtuq) == 0: return YKHO._map[Xtuq] xYqO = False if oyIN.ndim(Xtuq) == 1: if len(Xtuq) == 0: return [] if oyIN.ndim(Xtuq[0]) == 0: Xtuq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzqp(YKHO, VHqL):\n if len(YKHO._letters) == 0:\n raise KeyError('from_int called on empty alphabet.')\n if oyIN.ndim(VHqL) == 0:\n return YKHO._letters[VHqL]\n xYqO = False\n if oyIN.ndim(VHqL) == 1:\n if len(VHqL) == 0:\n return []\n if oyIN.ndim(VHqL[0]) ==...
[ "0.62711334", "0.6035926", "0.5959037", "0.5805861", "0.5690641", "0.5663077", "0.5645271", "0.56030756", "0.5581466", "0.55097187", "0.5474227", "0.5433448", "0.5426311", "0.54080695", "0.5346329", "0.53438765", "0.53335214", "0.5333307", "0.5328927", "0.53083944", "0.528882...
0.69817716
0
Whether the keyboard interface is currently enabled. Setting this value to False will disable all key presses. The value is True by default.
def RMS3(YKHO): return YKHO._keyboard_enabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def etR_(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'enabled')", "def etR_(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'enabled')", "def etR_(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'enabled')", "def etR_(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'enabled')", ...
[ "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727", "0.71879727"...
0.87504256
0
Creates a new view for display This constructor does very little. It does not hook up the view to the game window. That functionality happens behind the scenes with hidden methods. You should only use use the object provided in the `view` attribute of
def FIMM(YKHO): MyXA.__init__(YKHO) YKHO._frame = IW7u() YKHO.bind(pos=YKHO._reset) YKHO.bind(size=YKHO._reset) YKHO._reset() YKHO._contents = set()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J3ya(YKHO):\n tTee = Rv6M(kLxY(name='viewport', show_label=False, editor=yjpB()))\n return tTee", "def FIMM(YKHO, gUxw):\n super().__init__()\n YKHO.game_view = gUxw", "def X70j(YKHO):\n YKHO.view = XR78.ViewManagement()\n YKHO.setCentralWidget(YKHO.view)", "def tTee(tTee, **B2fa):\n ...
[ "0.7259825", "0.69587827", "0.6882092", "0.68371755", "0.6807711", "0.66862464", "0.66414785", "0.66017014", "0.65725726", "0.65708023", "0.6550633", "0.6541751", "0.6487138", "0.6471193", "0.6471193", "0.6471193", "0.64680564", "0.64499336", "0.64232963", "0.6412782", "0.639...
0.0
-1
Shuffle an iterator with unknown length in a memory efficient way but with less randomizing power. This works by holding `bufsize` items back and yielding them sometime later. It's not theoretically randomized. The limitation is that no item can be displaced from its original location by more than the buffer size. If w...
def VsmN(OxJJ, vK3y=1000): OxJJ = iter(OxJJ) LaVg = [] try: while True: for YRbF in range(tuKI.randint(1, vK3y - len(LaVg))): LaVg.append(next(OxJJ)) tuKI.shuffle(LaVg) for YRbF in range(tuKI.randint(1, vK3y)): if LaVg: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CH8T(nPrm, vK3y=1000):\n LaVg = []\n for mvm2 in nPrm:\n if len(LaVg) < vK3y:\n LaVg.append(next(nPrm))\n G1Hx = JseQ.randint(0, len(LaVg) - 1)\n mvm2, LaVg[G1Hx] = (LaVg[G1Hx], mvm2)\n yield mvm2", "def CH8T(nPrm, vK3y=1000):\n LaVg = []\n for mvm2 in nPrm:...
[ "0.81628686", "0.8143618", "0.7828793", "0.7828793", "0.7081863", "0.6286154", "0.62588847", "0.5935376", "0.59105897", "0.583716", "0.57211405", "0.571838", "0.57133186", "0.5686923", "0.56843853", "0.5545421", "0.55343145", "0.5533259", "0.55145085", "0.54758656", "0.547057...
0.78971
2