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
Calculate the AREA of the circle
def sAdl(YKHO): f0tD = O05v * YKHO.radius * YKHO.radius return '%.2f' % f0tD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yX2h(r1VO):\n return mM0K * r1VO * r1VO", "def yX2h(Mkmy):\n return mM0K * Mkmy ** 2", "def yX2h(r1VO):\n return mM0K * r1VO ** 2", "def yX2h(r1VO):\n return Lr0q.pi * r1VO * r1VO", "def Bjvh(Mkmy):\n return mM0K * Mkmy * Mkmy", "def OoO_(Mkmy):\n return epAf.pi * Mkmy * Mkmy", "d...
[ "0.7908877", "0.78265834", "0.780764", "0.7791404", "0.77833885", "0.7756851", "0.77489007", "0.7728949", "0.7683373", "0.7668705", "0.7663832", "0.7661132", "0.76513225", "0.7615031", "0.7604879", "0.75989664", "0.75518125", "0.75518125", "0.75518125", "0.7551508", "0.752235...
0.7481662
28
Caclculate the perimeter of the circle
def M4SZ(YKHO): return 2 * O05v * YKHO.radius
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjaT(r1VO):\n return mM0K * r1VO * 2", "def cDmO(r1VO):\n import math\n return 2 * math.pi * r1VO", "def cDmO(YKHO):\n return 2 * oyIN.pi * YKHO.radius", "def cDmO(YKHO):\n return Lr0q.perimeter(YKHO) * 1.25", "def cDmO(YKHO):\n return jmzt * YKHO.clad_outer_radius", "def cDmO(YKHO)...
[ "0.838275", "0.8379585", "0.83266175", "0.8277491", "0.8049807", "0.8041144", "0.78657466", "0.78580254", "0.7841084", "0.7793418", "0.7783059", "0.7754686", "0.76860535", "0.76736516", "0.76575094", "0.7645757", "0.7641186", "0.7633181", "0.7621511", "0.761819", "0.760856", ...
0.81617314
4
Build and get an "div" function.
def rPpq(): def maVb(WKvO): return oyIN.nan_to_num(WKvO[0] / WKvO[1]) return Q6kx.Function(2, maVb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hFiK(m2Zb, Jw7X):\n\n def xW8L(WKvO):\n return (m2Zb(WKvO + Jw7X) - m2Zb(WKvO - Jw7X)) / (2 * Jw7X)\n return xW8L", "def Tu1f():\n jzdc = int(QePW.args.get('a'))\n Fg_i = int(QePW.args.get('b'))\n return str(hFiK(jzdc, Fg_i))", "def T3ve():\n jzdc = int(QePW.args.get('a'))\n Fg_...
[ "0.64113283", "0.63709366", "0.6300375", "0.6288849", "0.62201893", "0.619859", "0.61945873", "0.61737025", "0.608453", "0.60699135", "0.6023551", "0.5960195", "0.5953527", "0.5936455", "0.5936455", "0.59286803", "0.59231925", "0.59223044", "0.59123373", "0.59094983", "0.5781...
0.6802857
0
Retrieve version of a single commandline program.
def yz1J(XP5J, GPtr): try: N3HV = L17V.get_program(XP5J['cmd'], GPtr) except L17V.CmdNotFound: return '' qIxc = XP5J.get('args', '') HCmI = '{prog} {args}' cnjH = Yn3K.Popen(HCmI.format(**locals()), stdout=Yn3K.PIPE, stderr=Yn3K.STDOUT, shell=True) with QZXY.closing(cnjH.stdout) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xhfZ(YPqY):\n assert YPqY is not None\n try:\n _QGW = Yn3K.check_output([YPqY, '--version'])\n except Yn3K.CalledProcessError as e:\n _QGW = tTpl.output\n return _QGW", "def DpZH(YKHO, mdek):\n return YKHO._version_from_tool(mdek, arg='-version')", "def kaPv(YPqY: str) -> str:\...
[ "0.8015733", "0.76874995", "0.7578662", "0.740924", "0.73738635", "0.735862", "0.73107344", "0.72742134", "0.7206821", "0.7161971", "0.71364915", "0.7135859", "0.71243244", "0.709726", "0.70951945", "0.70863146", "0.70849913", "0.7054228", "0.7031672", "0.70250463", "0.702504...
0.69000816
25
Update the player position.
def QdZT(YKHO): YKHO.rect.x += QESC.moveX AN1x = a9eO.sprite.spritecollide(YKHO, YKHO.walls, False) for XkN1 in AN1x: if YKHO.moveX > 0: YKHO.rect.right = XkN1.rect.left else: YKHO.rect.left = XkN1.rect.right YKHO.rect.y += pKlf AN1x = a9eO.sprite.spritecollid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VDGG(YKHO):\n YKHO.x, YKHO.y = (YKHO.rect.x, YKHO.rect.y)\n YKHO.handle_movement()", "def chpw(YKHO):\n YKHO.player.move()", "def F9YE(YKHO, tvqc):\n pass", "def F9YE(YKHO):\n if YKHO.state == EXca:\n YKHO._pos = YKHO.pos\n return\n u6Z5 = YKHO.pos + YKHO._vel\n WKvO = ...
[ "0.81450707", "0.80353236", "0.7680116", "0.759285", "0.7577341", "0.7446306", "0.7390612", "0.73541015", "0.7340218", "0.7289704", "0.72651935", "0.7240929", "0.7205212", "0.7200487", "0.71500295", "0.7147511", "0.7140668", "0.71168333", "0.7082527", "0.7057869", "0.70550156...
0.0
-1
Add ``item`` to the queue if doesn't already exist.
def H2v5(YKHO, sjXb, ZfUD): ZfUD = tuple(sjXb) + tuple((next(YKHO.tiebreaker),)) + tuple(ZfUD) if len(YKHO.heap) >= YKHO.max_size: YKHO.pop_smallest() _eVy.heappush(YKHO.heap, ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, ZfUD):\n if YKHO._unique:\n H5ew = YKHO._key(ZfUD) if YKHO._key else ZfUD\n if H5ew in YKHO._seen:\n return\n YKHO._seen.add(H5ew)\n YKHO._work.append(ZfUD)\n YKHO._count += 1", "def _jXH(YKHO, ZfUD):\n if ZfUD is None:\n raise ValueError('Cannot ...
[ "0.81854814", "0.8074399", "0.79528093", "0.7754731", "0.77264076", "0.7685068", "0.76829845", "0.7677778", "0.7599613", "0.75482434", "0.7532925", "0.75212806", "0.7505758", "0.75023425", "0.7492407", "0.7488549", "0.7488549", "0.7476681", "0.7476681", "0.7476681", "0.747668...
0.0
-1
Apply the derivative activation function to raw inputs
def gSj0(YKHO, woP8): return NotImplemented
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PwbB(WKvO):\n LVAh = YDYE(WKvO) * (1.0 - YDYE(WKvO))\n return LVAh", "def gSj0(Emd4, woP8):\n wEsz = Emd4._sigmoid(woP8)\n return wEsz * (1 - wEsz)", "def kZgV(YKHO):\n assert YKHO.output.size > 0\n return oyIN.multiply(YKHO.output, 1 - YKHO.output)", "def kZgV(YKHO):\n assert YKHO.o...
[ "0.80251163", "0.7924658", "0.7861708", "0.7672793", "0.76703537", "0.74360967", "0.73068464", "0.7266576", "0.72593147", "0.7219978", "0.70640427", "0.7043048", "0.7039725", "0.70363694", "0.6974525", "0.6922222", "0.6888798", "0.68844825", "0.6834763", "0.67953634", "0.6790...
0.7735012
3
Apply the derivative activation function to raw inputs
def gSj0(Emd4, woP8): wEsz = Emd4._sigmoid(woP8) return wEsz * (1 - wEsz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PwbB(WKvO):\n LVAh = YDYE(WKvO) * (1.0 - YDYE(WKvO))\n return LVAh", "def kZgV(YKHO):\n assert YKHO.output.size > 0\n return oyIN.multiply(YKHO.output, 1 - YKHO.output)", "def gSj0(YKHO, woP8):\n return NotImplemented", "def kZgV(YKHO):\n assert YKHO.output.size > 0\n return 1.0 / (1...
[ "0.8024445", "0.7860974", "0.77351177", "0.76717496", "0.76704365", "0.74346256", "0.7306196", "0.7264822", "0.7258375", "0.7218633", "0.70631754", "0.7041722", "0.7039211", "0.7035527", "0.69743425", "0.69211566", "0.6889101", "0.6883386", "0.68339765", "0.6794888", "0.67898...
0.79242235
1
Apply the derivative activation function to raw inputs
def gSj0(woP8): return (woP8 > 0).astype(float)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PwbB(WKvO):\n LVAh = YDYE(WKvO) * (1.0 - YDYE(WKvO))\n return LVAh", "def gSj0(Emd4, woP8):\n wEsz = Emd4._sigmoid(woP8)\n return wEsz * (1 - wEsz)", "def kZgV(YKHO):\n assert YKHO.output.size > 0\n return oyIN.multiply(YKHO.output, 1 - YKHO.output)", "def gSj0(YKHO, woP8):\n return ...
[ "0.80251163", "0.7924658", "0.7861708", "0.7735012", "0.7672793", "0.74360967", "0.73068464", "0.7266576", "0.72593147", "0.7219978", "0.70640427", "0.7043048", "0.7039725", "0.70363694", "0.6974525", "0.6922222", "0.6888798", "0.68844825", "0.6834763", "0.67953634", "0.67905...
0.76703537
5
Writes data to checkpoint state file
def Lsrz(YKHO, nPrm: SingleCheckpoint) -> None: with open(YKHO._checkpoint_state_path, 'w') as Gcbu: Gcbu.write(nPrm.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KjjL(YKHO, nPrm):\n with open(YKHO.state_file, 'w') as eHNT:\n try:\n eHNT.write(nPrm)\n except Exception as e:\n YKHO.log('Error :: %s' % tTpl)\n pass", "def IRyE(YKHO):\n YKHO.save_to_file(YKHO.checkpoint_file, 'checkpoint file')", "def XgQU(YKHO):\n ...
[ "0.7811426", "0.7459259", "0.7380731", "0.7368951", "0.72568935", "0.7251897", "0.72180223", "0.7208362", "0.7208362", "0.71174973", "0.71013176", "0.7040358", "0.70192933", "0.7005759", "0.69595647", "0.6954452", "0.69512194", "0.6922778", "0.6880542", "0.68719226", "0.68536...
0.8445642
0
Tries to read the checkpoint state file. If that fails, discovers latest by reading the entire directory.
def pGiD(YKHO) -> RXut: fsbt = YKHO._checkpoint_state_file.read() if fsbt is None and YKHO._checkpoint_state_optional: x2_h = BS4D(Hy7s.listdir(YKHO._checkpoint_dir)) if len(x2_h) > 0: fsbt = x2_h[-1] return fsbt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nh79(YKHO, vkH3):\n try:\n CNwg = VYWi.get_filepaths(vkH3, endswith_str='.tar', startswith_str='checkpoint')\n if len(CNwg) == 0:\n return None\n CNwg = sorted(CNwg)\n VqRE = CNwg[-1]\n vauY = ht2j.load(VqRE)\n YKHO.model.load_state_dict(vauY['model_state...
[ "0.6992745", "0.6831663", "0.6749186", "0.6739689", "0.6738872", "0.6691341", "0.6674534", "0.6647159", "0.664194", "0.65848774", "0.6564812", "0.6494842", "0.6464733", "0.6438206", "0.6436007", "0.64219445", "0.64179295", "0.6410228", "0.6410228", "0.63993067", "0.6366922", ...
0.69990486
0
Tries to parse the filename using the checkpoint filename pattern. If successful, it returns tuple of (checkpointnumber, checkpointname). Otherwise it returns None.
def hfK9(YKHO, Ux0P: str) -> uLKX[None, RXut]: r8hN = YKHO._prog.search(Ux0P) if r8hN is not None and (r8hN.group(2) is not None or r8hN.group(4) is not None): assert r8hN.group(2) is None or r8hN.group(4) is None kAHM = int(r8hN.group(2) if r8hN.group(2) is not None else r8hN.group(4)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ueki(YKHO) -> uLKX[None, RXut]:\n if not YKHO.exists():\n return None\n with open(YKHO._checkpoint_state_path, 'r') as Gcbu:\n return YAwY().parse(Gcbu.read(256))", "def nDwN(V1C0):\n Cvde = ZbWC.compile('.*checkpoints/epoch_(?P<epoch>\\\\d+)(_\\\\w+)?\\\\.\\\\w+')\n kUBT = Cvde.mat...
[ "0.6511783", "0.6391852", "0.6267512", "0.62503177", "0.6061057", "0.6005195", "0.6004189", "0.5982067", "0.59059227", "0.5873371", "0.5798166", "0.5780676", "0.5775936", "0.57722926", "0.5757298", "0.56802016", "0.5673429", "0.56482726", "0.5639041", "0.56293213", "0.5628441...
0.7769388
0
C = A + B
def EVbZ(jzdc, SG6Y, Fg_i, NCls, jLbF=0): return (jzdc + Fg_i, oyIN.sqrt(SG6Y ** 2 + NCls ** 2 + 2 * jLbF))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(k0lF, tjUW):\n return k0lF + tjUW", "def H2v5(jzdc, Fg_i):\n Z9rn = jzdc + Fg_i\n return Z9rn", "def H2v5(jzdc, Fg_i):\n Z9rn = jzdc + Fg_i\n return Z9rn", "def zDf_(jzdc, Fg_i):\n return [jzdc[0] + Fg_i[0], jzdc[1] + Fg_i[1]]", "def FOdN(jzdc, Fg_i):\n return LLmd(jzdc.x + Fg...
[ "0.7990205", "0.76434165", "0.76321316", "0.75878716", "0.7552828", "0.74016035", "0.74016035", "0.73897564", "0.73755926", "0.7370669", "0.73678076", "0.73678076", "0.73678076", "0.7355813", "0.7337085", "0.7311268", "0.73072684", "0.72979265", "0.72926825", "0.7286948", "0....
0.0
-1
Fill registration form fields and press Register button
def t3K8(YKHO, m3Nh: CustomerData): YKHO.fill_in_registration_form(customer=m3Nh) uL2X = YKHO.click_register_button() return uL2X
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FpnU(YKHO, RFT9):\n YKHO.driver.find_text_box(BFjT).enter_text(SpgM(d0Dv, ifCF(RFT9)))\n YKHO.driver.find_text_box(ddfM).enter_text(SpgM(qZNp, ifCF(RFT9)))\n YKHO.driver.find_text_box(AwA1).enter_text(SpgM(_hBd, ifCF(RFT9)))\n YKHO.driver.find_text_box(MM0J).enter_text(SpgM(HYaX, ifCF(RFT9)))\n ...
[ "0.76004934", "0.75895625", "0.7586919", "0.75633115", "0.7466216", "0.7431848", "0.73664916", "0.7331314", "0.73211646", "0.7300648", "0.7225194", "0.72016233", "0.71963924", "0.71518856", "0.71009964", "0.7099871", "0.70943177", "0.70943177", "0.70943177", "0.70943177", "0....
0.0
-1
A function for denoising an image. The function accepts a noisy gray scale image, denoises the different patches of it and then reconstructs the image.
def QiGj(fuBA, C3ST, W7jU, _Jd0, FTrt=(8, 8)): MKlR, yzQ0 = oyIN.shape(fuBA) BK0d = MKlR - FTrt[0] + 1 DrP1 = yzQ0 - FTrt[1] + 1 ICaj = int(FTrt[0] / 2 * FTrt[1] + FTrt[1] / 2) KZSd = swwr(fuBA, FTrt) yKcO = ITS7.time() QQMf = W7jU(KZSd, C3ST, _Jd0) Os4s = ITS7.time() uw4J = Os4s - y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s2wf(YKHO, WZVJ):\n if YKHO.Method == 'DnCNN':\n C3ST = Cn6v(channels=YKHO.DnCNNchannels, num_of_layers=YKHO.DnCNNlayers)\n C3ST.load_state_dict(ht2j.load(YKHO.DnCNNfile))\n C3ST.eval()\n KD4k = WZVJ.std()\n WZVJ = WZVJ[oyIN.newaxis, oyIN.newaxis, ...] / KD4k * YKHO.DnCNNn...
[ "0.7035352", "0.7011328", "0.7009094", "0.6876649", "0.6842646", "0.6723764", "0.6701037", "0.6640645", "0.6484693", "0.6457795", "0.64403456", "0.64262325", "0.6421987", "0.63822204", "0.63627255", "0.63443625", "0.61723316", "0.61674935", "0.6133507", "0.61045134", "0.60515...
0.65769297
8
Given a matrix in log space, return the matrix with normalized columns in log space.
def gCJq(EcVT): MKlR, yzQ0 = oyIN.shape(EcVT) return EcVT - oyIN.matlib.repmat(vqBa(EcVT, axis=0), MKlR, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KoWW(YKHO, SppC):\n return NkkI(SppC, norm='l1', axis=0)", "def NSM9(k0lF):\n Ylbp = yKIT.zeros(k0lF.shape[1], dtype=k0lF.dtype)\n for YRbF in range(len(Ylbp)):\n Ylbp[YRbF] = vqBa(k0lF[:, YRbF])\n return Ylbp", "def YewZ(E3D9):\n X6rE = oyIN.max(E3D9, 1)[:, oyIN.newaxis]\n E3D9 /=...
[ "0.6964113", "0.6848762", "0.6818415", "0.6797614", "0.6789868", "0.6787676", "0.675059", "0.6723867", "0.6688929", "0.6649736", "0.6648552", "0.66209185", "0.6615479", "0.65678537", "0.6526545", "0.63879746", "0.6364459", "0.6359219", "0.6345447", "0.63210684", "0.63210684",...
0.7141377
0
Helper function to read minim encoded instruction from PM ram. [in] self Pointer to the current object [in] address PM address with minim encoding
def hR8P(YKHO, UTX6): BWXx = YKHO.chipdata.get_data_pm(UTX6) if UTX6 % MuDO.addr_per_word != 0: BWXx = BWXx >> 16 return BWXx & 65535
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QkQE(YKHO):\n YKHO.ir = YKHO._ram_read(YKHO.pc)", "def _dX1():\n global PC\n global IR\n uBEc = bkcz[W8R2] + Iava[W8R2]\n W8R2 += 1", "def FIMM(YKHO):\n YKHO.ram = [0] * 256\n YKHO.register = [0] * 8\n YKHO.PC = 0\n YKHO.running = True\n YKHO.set_PC = True\n YKHO.previous =...
[ "0.64451987", "0.57647395", "0.5712388", "0.56596804", "0.55623275", "0.5495551", "0.5490477", "0.5459149", "0.5320703", "0.5293423", "0.5259463", "0.5258102", "0.5255347", "0.519093", "0.5190468", "0.51681566", "0.51671463", "0.5159396", "0.5157023", "0.5132921", "0.5113528"...
0.0
-1
Check if the minim pm encoded address is a call. [in] self Pointer to the current object [in] address PM address with minim encoding [out] True if the address holds a call.
def eBMm(YKHO, UTX6): if UTX6 & 1: UTX6 = UTX6 - 1 else: return False try: Xdi0 = YKHO.debuginfo.get_instruction(UTX6 - 2) NUsR = YKHO.debuginfo.get_instruction(UTX6 - 4) odW2 = YKHO.debuginfo.get_instruction(UTX6 - 6) except lY0q.BundleMissingError: if Mu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_Sx(YKHO, UTX6):\n try:\n bGrB = YKHO.debuginfo.get_instruction(UTX6)\n except lY0q.InvalidPmAddress:\n return False\n except lY0q.BundleMissingError:\n YKHO.formatter.alert('Bundle missing _maxim_address_is_call returned False')\n return False\n if MuDO.kal_arch == 3:\...
[ "0.79091954", "0.7031121", "0.6985248", "0.6630831", "0.61667174", "0.6028029", "0.5974351", "0.5955863", "0.58975726", "0.5733069", "0.56407964", "0.56162816", "0.5606593", "0.56060356", "0.5594741", "0.5575879", "0.55443597", "0.5540694", "0.5537902", "0.55075496", "0.54844...
0.78087145
1
Reads the program counter (PC) register of the chip. [in] self Pointer to the current object
def _WBj(YKHO): TOTP = YKHO.chipdata.get_reg_strict('REGFILE_PC').value if MuDO.get_pm_region(TOTP, False) is None: YKHO._display_alert('PC 0x%08x is not a valid program memory address! 0x%08x will be used instead.' % (TOTP, 0)) TOTP = 0 return TOTP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qoeU(YKHO):\n TOTP = neaT.unpack_le32(YKHO.check_response(YKHO.jtagice3_command_response(bytearray([YKHO.CMD_AVR8_PC_READ, YKHO.CMD_VERSION0])), YKHO.RSP_AVR8_PC))\n tO9_ = 'PC read as 0x{:08X}'.format(TOTP)\n YKHO.logger.debug(tO9_)\n return TOTP", "def LBZd(YKHO):\n return YKHO.getRegister(Y...
[ "0.81402415", "0.6738677", "0.6392748", "0.6305969", "0.5964432", "0.59575367", "0.5956804", "0.5876794", "0.5797843", "0.5719047", "0.56564623", "0.56455106", "0.55401045", "0.54931957", "0.54645807", "0.54232717", "0.539974", "0.5361873", "0.5347056", "0.5345347", "0.534459...
0.6876822
1
Function to get corresponding pixel location in an image given pixel location in another image. Uses camera_intrinsics and depth images to first get 3D positions of pixels in target frame, then projects to another image using cv2.projectPoints().
def EVIl(YKHO, g4y1, VeCf): if len(g4y1) == 0: return [] OXIo = iUUf.compose(oyIN.array(VeCf[:3]), vzPo.quat2mat(oyIN.array([VeCf[-1]] + VeCf[3:-1])), oyIN.ones(3)) RdDd = [] for Xf84, rb7a, shtX in g4y1: if not isinstance(rb7a, oyIN.ndarray) or not isinstance(shtX, list): co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mW6M(YKHO, e3Fk, AbmE: CameraSetup):\n jveJ = YKHO.points[oyIN.where(YKHO.points[:, 2] > 0.1)]\n if len(jveJ) == 0:\n return None\n bVDv = AbmE.get_intrinsic_matrix()\n nHe6 = oyIN.dot(dKc3(bVDv), oyIN.array([[e3Fk.x], [e3Fk.y], [1.0]]))\n if YKHO._lidar_setup.lidar_type == 'sensor.lidar....
[ "0.67983425", "0.67729074", "0.6456205", "0.632548", "0.6321137", "0.6320919", "0.6261057", "0.62344843", "0.6222464", "0.6174469", "0.6148542", "0.60133255", "0.6010435", "0.5973673", "0.5968995", "0.5959594", "0.59478426", "0.5940713", "0.5940402", "0.5939073", "0.5930415",...
0.61364216
11
For each GO namespace, number of proteins annotated with allowed
def JX_F(inB2, U1pC: Iterable[str], Dl0U: Optional[Iterable]=hHbH, dAOG: Optional[Iterable]=PskT) -> dict: TONz = {str(haex) for haex in U1pC} ESWW = oRi_(int) inB2.seek(0) YwIq = yJHR.parse(inB2) hX_h = [ETu_ for ETu_ in YwIq if kjy7(ETu_) and bool(TONz & set(ETu_.taxonomy_id))] for jZ8c in hX_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Veyw(FXAr: Iterable, U1pC: Iterable[str], nWvQ: Optional[Iterable]=hHbH, ilzY: Optional[Iterable]=PskT) -> dict:\n U1pC = [str(JeYQ) for JeYQ in U1pC]\n zeea = []\n for Ux0P in FXAr:\n with open(Ux0P, 'r') as inB2:\n me7R = JX_F(inB2, U1pC, namespaces=nWvQ, evidence_codes=ilzY)\n ...
[ "0.59420353", "0.5862705", "0.56486505", "0.5582072", "0.5579633", "0.55612063", "0.5466412", "0.5454561", "0.5447897", "0.54432505", "0.5429416", "0.5423818", "0.54111326", "0.54110974", "0.5407106", "0.54007107", "0.53991973", "0.53900546", "0.5374363", "0.5371574", "0.5357...
0.59449893
0
Computes characteristic matrix of a single layer M=F.P.Fi, Numpy broadcasting rules apply.
def wVWq(FsXZ, Csk6, y4Hj, k69E, drcH=0.0, NKcE='4x4', ZHfW=None): if NKcE not in ('4x4', '4x4_1'): raise ValueError("Unsupported method: '{}'".format(NKcE)) FsXZ = oyIN.asarray(FsXZ) ROpF = y4Hj.shape[-2] if ZHfW is None: ZHfW = Nrkj(ROpF, FsXZ) uBQv = hYbW(ROpF, FsXZ) _...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MWrv(T3TX, PjpC):\n hmey = oyIN.dot(PjpC[None, :], T3TX)\n return hmey.flatten()", "def MeVC(OAgx, z9RD, LPwa, XshN, T0xl):\n mnsd = oyIN.cos(z9RD)\n OpKk = 1 / (2 * OAgx * mnsd)\n itg4 = oyIN.asarray([[OAgx, mnsd], [OAgx, -mnsd]])\n if len(LPwa) > 1:\n s404 = Pusg(oyIN.matmul, LPwa)...
[ "0.6084979", "0.6062852", "0.6051368", "0.59103245", "0.5891868", "0.58672506", "0.58289593", "0.58225626", "0.5796587", "0.5718601", "0.56950194", "0.567604", "0.56502444", "0.5649501", "0.5639533", "0.5626002", "0.5621578", "0.5607735", "0.56065625", "0.55942076", "0.559331...
0.0
-1
save json to file
def PF_N(UxL2, Ux0P): with open(Ux0P, 'w') as eHNT: return eHNT.write(qQXR.dumps(UxL2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZMos(YKHO):\n with open(YKHO.file, 'w') as _RR0:\n qQXR.dump(YKHO.fileContent, _RR0, sort_keys=True, indent=4)", "def U1ai(YKHO, nPrm):\n with open(YKHO.filename, 'w') as UXEK:\n qQXR.dump(nPrm, UXEK, indent=4)", "def QN9E(gIsw, TLbt):\n with open(gIsw, 'w') as nUeQ:\n qQXR.du...
[ "0.83569586", "0.8253726", "0.82386214", "0.82048476", "0.81817704", "0.81694573", "0.81555927", "0.8136083", "0.811813", "0.8084498", "0.8083169", "0.80742556", "0.8060414", "0.8054342", "0.8023888", "0.80188566", "0.7996104", "0.7996104", "0.79947656", "0.798782", "0.798411...
0.77155304
67
Prints Restaurant is open
def IY3P(YKHO): print(f'{YKHO.restaurant_name} is now open.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IY3P(YKHO):\n print(f'The restaurant {YKHO.restaurant_name} is open today')", "def oXw0(YKHO):\n print(f'{YKHO.restaurant_name} is open.')", "def IY3P(YKHO):\n print(f'{YKHO.name} restaurant is now open')", "def IY3P(YKHO):\n print('\\tThe restaurant is open now.')", "def IY3P(YKHO):\n p...
[ "0.81191075", "0.8097664", "0.80777", "0.80166835", "0.7985952", "0.7903476", "0.7903476", "0.7896358", "0.7856135", "0.7830987", "0.77723897", "0.77523655", "0.773229", "0.77305883", "0.77085525", "0.77072096", "0.7680304", "0.7680304", "0.7680304", "0.76714486", "0.7668083"...
0.77654886
11
Create an SQLAlchemy session factory from an engine instance.
def MfMW(eHpk: Engine) -> ib06: HD6d = FJ3D(bind=eHpk) if eHpk.driver == asJf: print('WARNING: Sqlite backend detected. Using single threaded executor - DO NOT USE IN PRODUCTION!') ZaUd = _u6t(max_workers=1) Zps3(global_executor=ZaUd) def i_PC(f05T: Optional[Session]=None) -> Mw8w: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gte4(Emd4, eHpk):\n DMju = FJ3D(bind=eHpk)\n cuiw = DMju()\n return cuiw", "def sQUo(NUw6):\n return oCsa(FJ3D(bind=NUw6))", "def sQUo(NUw6):\n return oCsa(FJ3D(bind=NUw6))", "def f57V():\n V112.metadata.create_all(EmnT)\n return _hSU()", "def gte4(YKHO):\n bD7m = YKHO._sqlalche...
[ "0.8199188", "0.79514015", "0.79514015", "0.7633183", "0.735715", "0.7337006", "0.7170847", "0.70469815", "0.699453", "0.6987565", "0.69862235", "0.6906834", "0.6874509", "0.6869215", "0.6869215", "0.68632936", "0.685913", "0.6846573", "0.6846573", "0.68305194", "0.68222326",...
0.8517223
0
Create an SQLAlchemy session factory.
def VC1I(j8eK: str, P8oC: Optional[DeclarativeMeta]=None, **p494: Dict[Any, Any]) -> ib06: eHpk = y2U9(j8eK, **p494) if P8oC is not None: P8oC.metadata.create_all(eHpk) return MfMW(eHpk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f57V():\n V112.metadata.create_all(EmnT)\n return _hSU()", "def gte4():\n eQSh.up('alchemy', 'sessions')\n cuiw = DMju()\n return cuiw", "def sQUo(NUw6):\n return oCsa(FJ3D(bind=NUw6))", "def sQUo(NUw6):\n return oCsa(FJ3D(bind=NUw6))", "def gte4(YKHO):\n bD7m = YKHO._sqlalchemy...
[ "0.81251466", "0.80156076", "0.7699029", "0.7699029", "0.7691723", "0.76195055", "0.7522369", "0.7520085", "0.7513401", "0.7495613", "0.7407908", "0.73555696", "0.73521215", "0.7346163", "0.73226035", "0.73226035", "0.73173875", "0.7304589", "0.72564954", "0.72564954", "0.725...
0.754
6
Get n evenly spaced RGB colors.
def AVQ4(exwG): bQ6z = 16581375 VOlW = int(bQ6z / exwG) Jw9H = [hex(pdhd)[2:].zfill(6) for pdhd in range(0, bQ6z, VOlW)] um2A = [(int(YRbF[:2], 16), int(YRbF[2:4], 16), int(YRbF[4:], 16)) for YRbF in Jw9H] return um2A
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fRt4(exwG):\n import matplotlib.pyplot as QrM1\n Bcwd = QrM1.get_cmap('gist_rainbow')\n return [Bcwd(1.0 * YRbF / exwG) for YRbF in range(exwG)]", "def DFKP(exwG):\n yfUf = (360.0 / exwG * YRbF for YRbF in range(exwG))\n ObL9 = (epAf.floor(Hafq / 60) % 6 for Hafq in yfUf)\n Vb5F = (Hafq / 6...
[ "0.7801074", "0.7670911", "0.7626565", "0.75199157", "0.7448905", "0.7353738", "0.7300851", "0.7287205", "0.7260443", "0.71582216", "0.7146209", "0.7111073", "0.710437", "0.70834917", "0.69382685", "0.6936851", "0.69159544", "0.68419445", "0.681346", "0.681067", "0.6718563", ...
0.83358186
0
Remove HTML tags from a string
def JZhs(l5Ny): return ZbWC.sub('<[^>]+>\\s?', '', l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)", "def Iw0V(vIwR):\n return ZbWC.sub('<[^>]*?>', ' ', vIwR)", "def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', input)\n return Bopb", "def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return Zb...
[ "0.869061", "0.8613456", "0.8523993", "0.851191", "0.84596586", "0.84346515", "0.8429957", "0.8429957", "0.8422435", "0.836207", "0.836207", "0.836207", "0.836207", "0.836207", "0.836207", "0.8340485", "0.8340485", "0.8340485", "0.83142936", "0.8302855", "0.8277046", "0.827...
0.8288439
20
Generic function that strips out comments passed on the given pattern.
def gU2l(l5Ny, yttk=False): njyT = TN1f def bSLV(uOe2, yttk=False): """Remove comments.""" return ''.join([WKvO[0] for WKvO in vNZt.findall(uOe2)]) if yttk else '' def b7La(r8hN, yttk): """Search for comments.""" Oa1e = r8hN.groupdict() return Oa1e['code'] if Oa1e['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VuKm(KCHu):\n return fUJd.sub('', KCHu)", "def bSLV(zZcM):\n return ZbWC.sub('#.*', '', zZcM)", "def QXL5(mXDZ, l5Ny, yttk):\n\n def bSLV(uOe2, yttk=False):\n \"\"\"Remove comments.\"\"\"\n return ''.join([WKvO[0] for WKvO in vNZt.findall(uOe2)]) if yttk else ''\n\n def b7La(r8hN,...
[ "0.7163522", "0.71470714", "0.7134203", "0.71058345", "0.689442", "0.68877345", "0.6785436", "0.6748502", "0.6743105", "0.6730111", "0.670574", "0.6677007", "0.6612113", "0.65659946", "0.65599936", "0.65487295", "0.6534747", "0.6510289", "0.6502095", "0.6441071", "0.64325416"...
0.6551456
15
Search for dangling comma.
def b7La(r8hN, yttk): Oa1e = r8hN.groupdict() return pHd_(Oa1e, yttk) if Oa1e['code'] is None else Oa1e['code']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HoVG(YKHO):\n return YKHO.tokenizer.symbol() == ','", "def psFD(vIwR):\n vIwR = vIwR.replace(',', '')\n return vIwR", "def t9qq(BWXx):\n return '{:,}'.format(BWXx)", "def qOri(BWXx):\n return BWXx.replace(',', ', ')", "def z8JC(YKHO, Nlxd):\n M6hN = ZbWC.search(',', Nlxd)\n if M6hN...
[ "0.6816731", "0.62523454", "0.60257936", "0.5963422", "0.588601", "0.5868412", "0.58586645", "0.5854301", "0.573721", "0.573721", "0.573721", "0.573721", "0.573721", "0.57299286", "0.5667459", "0.5659612", "0.5657305", "0.5641344", "0.5596988", "0.5580349", "0.55600935", "0...
0.0
-1
Return the filename without extension
def Ux0P(Sd0C): return Hy7s.path.splitext(Hy7s.path.basename(Sd0C))[0] '\n Mediainfo:\n codec_cc\n display_aspect_ratio\n frame_count\n width\n height\n frame_rate\n duration (in ms)\n ' '\n format_url\n proportion_of_this_stream\n frame_count\n stream_identifier\n other_scan_type\n count_of_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AjhE(YKHO):\n return Hy7s.path.basename(YKHO.file.name).split('.')[0]", "def t5OZ(qaEx):\n return gLx5(aPr_(qaEx))[0]", "def icfS(pmON):\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0]", "def AjhE(qaEx):\n return Hy7s.path.basename(qaEx).split('.')[0]", "def LnvH(nUeQ):\n return...
[ "0.89759564", "0.88089806", "0.87231827", "0.86060345", "0.8474374", "0.83913887", "0.8387412", "0.8368056", "0.8361476", "0.83491373", "0.8279016", "0.8273779", "0.82038337", "0.81896967", "0.80506164", "0.79836285", "0.79728043", "0.795647", "0.79231924", "0.79137516", "0.7...
0.0
-1
Create new query. This method creates a new query (report).
def T7sP(YKHO, TBsA): QePW = YKHO.__api.queries().createquery(body=TBsA) Aofo = UVo8(QePW).execute() return Aofo.get('queryId')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hj4I(YKHO):\n raise NotImplementedError", "def SFJi(xDcj, JlaQ):\n yvTx = CmGq.FStoredASQLQuery()\n yvTx.Query(xDcj)\n yvTx.Name(JlaQ)\n yvTx.AutoUser(False)\n yvTx.User(None)\n EvTH.commit_and_retry(yvTx)\n print(\"Created eligibility query '%s'\" % JlaQ)", "def SFJi(YKHO, cuiw, xD...
[ "0.675741", "0.6707093", "0.6516557", "0.6509715", "0.63816357", "0.63292986", "0.6242022", "0.62163305", "0.6197912", "0.6100154", "0.60425067", "0.60193676", "0.6004407", "0.5954452", "0.59397113", "0.59343636", "0.5926843", "0.59204215", "0.59175205", "0.5829524", "0.57331...
0.6344803
5
Given a list of pieces, determines if any of them touch an empty space.
def egLE(YUf_, BH3N): if len(YUf_) == 0: return True for KGtH in YUf_: WKvO, LVAh = KGtH for YRbF in (-1, 1): O_dB = WKvO + YRbF if O_dB < 19 and O_dB >= 0 and (BH3N[O_dB][LVAh] == 0): return True for r845 in (-1, 1): sdZa = LVA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yykn(iBIi):\n return all((KCHu != ' ' for KCHu in iBIi))", "def SA9F(YKHO):\n for mrj1 in YKHO.pieces_left:\n if not YKHO.__has_space(mrj1):\n return False\n return YKHO.__no_unusable_space()", "def ZOBW(qw7D):\n for rdlD in iBIi:\n for mrj1 in rdlD:\n if mrj...
[ "0.7167004", "0.70842946", "0.69726825", "0.6820869", "0.67067635", "0.6703172", "0.6694935", "0.66613346", "0.64754677", "0.64313215", "0.64051366", "0.63125086", "0.6297403", "0.6295793", "0.62634987", "0.62618923", "0.6228488", "0.62206405", "0.62206405", "0.6217339", "0.6...
0.0
-1
Converts array to hashable tuple.
def ZgIk(_XET, yfR9): yfR9.add(tuple([tuple(rdlD) for rdlD in _XET]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EV8W(qw7D):\n return (qw7D[0], qw7D[1], qw7D[2], qw7D[3])", "def Qyk5(OxJJ):\n return [tuple(ZfUD) for ZfUD in OxJJ]", "def HgvB(qw7D):\n if H4yH.sparse.issparse(qw7D):\n if qw7D.getnnz() > 0:\n return tuple([tuple(vC9B) for vC9B in oyIN.nonzero(qw7D)])\n else:\n ...
[ "0.7845408", "0.6907022", "0.6717878", "0.65288407", "0.6476197", "0.6476197", "0.6476197", "0.6378694", "0.635768", "0.6322824", "0.62143576", "0.6195673", "0.60941875", "0.60518694", "0.60509884", "0.59853137", "0.5957214", "0.5907125", "0.5863539", "0.5823431", "0.58184564...
0.0
-1
Create a view that allows us to create or edit a bug depending if the PostID is null or not
def UaFK(QePW, _sei=None): RDhP = Iofl(V_n5, pk=_sei) if _sei else None if QePW.method == 'POST': L03z = SmWZ(QePW.POST, instance=RDhP) if L03z.is_valid(): RDhP = L03z.save(commit=False) RDhP.author = QePW.user RDhP.save() return vKnz(M3Yz, RDhP.pk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khOD(QePW, _sei=None):\n YXSb = Iofl(QgSC, pk=_sei) if _sei else None\n NtEF = QePW.user.username\n if QePW.method == 'POST':\n L03z = pAhY(QePW.POST, instance=YXSb)\n if L03z.is_valid():\n YXSb = L03z.save(commit=False)\n YXSb.type = 'BUG'\n YXSb.author ...
[ "0.6220375", "0.6161618", "0.58484364", "0.58222044", "0.577802", "0.569455", "0.56831676", "0.56370527", "0.5630127", "0.5540751", "0.5503838", "0.54879934", "0.5483476", "0.545223", "0.5432663", "0.54061186", "0.53838915", "0.5380288", "0.5373524", "0.53650707", "0.5350624"...
0.0
-1
Returns the robot's password.
def AFDB(YKHO): return YKHO.get('password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ox0V():\n return globals.password", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "d...
[ "0.84367025", "0.8415943", "0.8415943", "0.8415943", "0.8415943", "0.8351232", "0.8334861", "0.8334063", "0.8295637", "0.829165", "0.8267971", "0.8267971", "0.826384", "0.826384", "0.826384", "0.82538456", "0.8230623", "0.8229152", "0.81952447", "0.8159677", "0.81525254", "...
0.81257224
21
Returns True if value is something we consider to be "on". Otherwise, return False.
def QWiF(BWXx): if type(BWXx) == str: return BWXx.lower() == 'on' elif BWXx: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO) -> bool:\n return bool(YKHO.value)", "def Debg(YKHO) -> bool:\n return bool(YKHO.value)", "def Debg(YKHO) -> bool:\n return bool(YKHO.value)", "def Debg(YKHO) -> bool:\n return bool(YKHO.value)", "def Debg(YKHO) -> bool:\n return bool(YKHO.value)", "def BFEr(YKHO):\n if Y...
[ "0.87545365", "0.87545365", "0.87545365", "0.87545365", "0.87545365", "0.8700422", "0.8592904", "0.84803253", "0.8140852", "0.8074686", "0.8003723", "0.8003723", "0.8003723", "0.79415005", "0.78109616", "0.77647185", "0.7757982", "0.76943976", "0.76765466", "0.7635514", "0.76...
0.8150202
8
Combine a list of dictionaries and return the results.
def JBVv(fgcx): exwG = {} for Csk6 in fgcx: exwG.update(Csk6) return exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roQF(*GBaN):\n hlel = {}\n for qHj0 in GBaN:\n for G1Hx, Ty9i in qHj0.items():\n if not hlel.get(G1Hx):\n hlel[G1Hx] = Ty9i\n else:\n hlel[G1Hx].extend(Ty9i)\n hlel[G1Hx] = list(set(hlel[G1Hx]))\n return hlel", "def roQF(fgcx)...
[ "0.78156614", "0.75714725", "0.75161", "0.7477607", "0.74647903", "0.73974854", "0.7299102", "0.72070086", "0.7165605", "0.7151517", "0.71365434", "0.70605046", "0.705918", "0.7057339", "0.7045776", "0.70439816", "0.7040596", "0.70239764", "0.7017094", "0.69861263", "0.698586...
0.68688315
48
Test for the utils.f2c() function
def kRED(YKHO): Suxm = oyIN.array([oyIN.NaN, 32, 212, 100, 72, 98.6, 150, -15]) x6ZM = oyIN.array([oyIN.NaN, 0, 100, 37.78, 22.22, 37, 65.56, -26.11]) oyIN.testing.assert_allclose(x6ZM, BfDw.f2c(Suxm), atol=0.01, equal_nan=True, err_msg='Incorrect Fahrenheit to Celsius conversion')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cnU4():\n assert abs(gnPz.c2f(0) - 32) < 0.01", "def uSYO():\n assert abs(gnPz.c2f([0])[0] - 32) < 0.01", "def X0za(YKHO):\n for RITR, em5t, eDa2 in YKHO.knownC_F_K:\n dixj = BLjT.convert('farhenheit', 'celcius', em5t)\n YKHO.assertEqual(RITR, dixj)", "def mJGB(YKHO):\n for RITR...
[ "0.7776991", "0.73747", "0.71109605", "0.69855917", "0.67157394", "0.6642781", "0.6519941", "0.63810015", "0.6380124", "0.6373872", "0.63378173", "0.6276085", "0.62597466", "0.62520385", "0.62325954", "0.62291276", "0.61994565", "0.6176242", "0.60690665", "0.60627604", "0.600...
0.73003584
2
Convert bytes to string if not string already Required because Popen returns str in older versions but bytes in python 3+
def xrD7(pKvt): if isinstance(pKvt, bytes): return pKvt.decode('utf-8') else: return pKvt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FdOz(HCmI):\n return Yn3K.Popen(HCmI, shell=True, stdout=Yn3K.PIPE).communicate()[0]", "def xrD7(Fg_i: bytes, /, tZ2K: str | None=None, UAju: str='strict') -> str:\n if tZ2K is not None:\n return Fg_i.decode(tZ2K, UAju)\n try:\n return Fg_i.decode('utf-8', UAju)\n except UnicodeDeco...
[ "0.6657947", "0.65614176", "0.64721334", "0.64041144", "0.63810587", "0.6322137", "0.6318622", "0.63110816", "0.6285285", "0.6263377", "0.6260495", "0.6259553", "0.6229584", "0.619609", "0.61560655", "0.6155395", "0.61183745", "0.6107385", "0.6091992", "0.6080603", "0.6078204...
0.64494544
3
Get gpu util from nvidiasmi command
def L4Am(N3md, ykT9=0): wqL3 = N3md.findall('gpu')[ykT9] gnPz = wqL3.find('utilization') XsSx = float(gnPz.find('gpu_util').text.rstrip('%')) Mwc_ = float(gnPz.find('memory_util').text.rstrip('%')) UJ7Z = wqL3.find('fb_memory_usage') SAAr = float(UJ7Z.find('free').text.rstrip('MiB')) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BSsj():\n return []", "def wqL3(YKHO):\n try:\n hlel = Yn3K.check_output(['/usr/sbin/system_profiler', 'SPDisplaysDataType'])\n for KCHu in [LVAh.strip() for LVAh in hlel.split('\\n')]:\n if KCHu.startswith('Chipset Model'):\n ws5F.Debug.debug('GPU: %s' % KCHu)\n...
[ "0.7169622", "0.68492883", "0.67345446", "0.67323124", "0.66088015", "0.6576558", "0.6576357", "0.6576357", "0.6538317", "0.65373915", "0.64805543", "0.6470806", "0.643798", "0.6425493", "0.63697815", "0.6278526", "0.622675", "0.62210566", "0.61980855", "0.61692715", "0.61674...
0.77120954
0
Returns the title of the book.
def Upwb(YKHO): return YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rnpP(YKHO):\n return YKHO.bookTitle", "def leAC(YKHO):\n return YKHO._if_object_is_true_return_string(YKHO._soup_handler.select_one(bhcQ.TITLE))", "def Mdns(YKHO, leAC):\n return f'The title of this book is {leAC}'", "def Upwb(YKHO) -> str:\n return YKHO._title", "def Upwb(YKHO) -> str:\n ...
[ "0.87588584", "0.8208332", "0.7954157", "0.7947581", "0.7890714", "0.7890714", "0.7820535", "0.7817371", "0.7817371", "0.7817371", "0.7814466", "0.780625", "0.77928394", "0.77928394", "0.77293", "0.77293", "0.7725613", "0.7723379", "0.7723379", "0.7700977", "0.768492", "0.7...
0.77378315
17
Return string equivalent of python boolean value, for use in XML.
def PAwx(Fg_i): return 'true' if Fg_i else 'false'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LzVg(YKHO, Fg_i):\n if Fg_i:\n return '1'\n else:\n return '0'", "def XEI0(wEf2):\n return 'true' if wEf2 else 'false'", "def nyoX(WKvO):\n return CenH('True') if WKvO else CenH('False')", "def zAg0(YKHO) -> str:\n return 'true' if YKHO.value else 'false'", "def Ux8e(YKHO, ...
[ "0.81061447", "0.80105996", "0.79388535", "0.7925831", "0.7907033", "0.78910977", "0.78724605", "0.7794163", "0.77563184", "0.76758903", "0.7635395", "0.76217717", "0.75893915", "0.7546899", "0.75458384", "0.75263345", "0.75166094", "0.74491394", "0.7438587", "0.7437687", "0....
0.77765363
8
Factorize the camera matrix into K,R,t as P = K[R|t].
def aM8h(YKHO): nMvt, A3Vt = aJJu.rq(YKHO.P[:, :3]) Kt_s = A2lD(Zihr(A2lD(nMvt))) YKHO.K = BJ1H(nMvt, Kt_s) YKHO.R = BJ1H(Kt_s, A3Vt) YKHO.t = BJ1H(aJJu.inv(YKHO.K), YKHO.P[:, 3]) return (YKHO.K, YKHO.R, YKHO.t)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wU6K(A3Vt, a1PO, nMvt):\n if isinstance(A3Vt, oyIN.ndarray):\n return nMvt @ A3Vt.T @ oyIN.concatenate((oyIN.eye(3), -a1PO.reshape(3, 1)), axis=1)\n else:\n return nMvt @ A3Vt.T @ ht2j.cat((ht2j.eye(3), -a1PO.view(3, 1)), dim=1)", "def SF1h(nMvt, A3Vt, a1PO):\n h4Tb = oyIN.zeros((4, 4)...
[ "0.6900138", "0.6882169", "0.6588097", "0.64749753", "0.6413141", "0.6398275", "0.63369316", "0.61867726", "0.6179419", "0.6085098", "0.6038221", "0.58939236", "0.58161956", "0.5783848", "0.5731151", "0.5731151", "0.5731151", "0.5731151", "0.5731151", "0.5731151", "0.5730738"...
0.64838284
3
Return a single string generated from random characters according to the given parameters.
def j9F_(Lx0h: int=5, BcCR: int=25, Tfq4: int=1, Xfsf: int=5, a10p: bool=True, qjYY: bool=True, pC3l: bool=True, mSrU: bool=True) -> str: if Lx0h > BcCR: raise ValueError("'min_length' cannot be > 'max_length'") if Tfq4 > Xfsf: raise ValueError("'min_tokens' cannot be > 'max_tokens'") for BW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(20)))", "def TDq5():\n if tuKI.random() < 0.2:\n return Vt_K()\n else:\n return tuKI.choice(['', 'a', 'um', 'foo', 'quack', ',', ':', '\"', '}{'])", "def wc7e():\n retu...
[ "0.7947413", "0.7869378", "0.7836327", "0.7816801", "0.78090906", "0.7795201", "0.774765", "0.77296644", "0.7729207", "0.77233577", "0.77174765", "0.76919734", "0.7669028", "0.7664451", "0.76540613", "0.76411", "0.7627646", "0.76181865", "0.76100594", "0.7589547", "0.75895345...
0.0
-1
He kaiming normal initalizer A truncated normal distribution centered on 0 with "stddev = sqrt(2 / fan_in)"
def dqOW(ROpF): IddF = ROpF[0] return oyIN.random.randn(*ROpF) * oyIN.sqrt(2.0 / IddF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PD2w(YKHO, WKvO, IddF, XNhq):\n z2bo = oyIN.sqrt(1 / IddF)\n return ZylS.Variable(ZylS.random.normal(shape=(IddF, XNhq), mean=0, stddev=z2bo, dtype=ZylS.float32))", "def S3eG(ROpF, M6tx=True):\n IddF, XNhq = plcV(ROpF, M6tx)\n M1Jx = oyIN.sqrt(2.0 / IddF)\n return pjBP(shape=ROpF, mean=0.0, st...
[ "0.680485", "0.67321646", "0.64663416", "0.6461298", "0.6443165", "0.6335054", "0.62927395", "0.62626046", "0.62621444", "0.6215445", "0.61305636", "0.60879815", "0.6064065", "0.6053825", "0.597139", "0.5968061", "0.5955688", "0.59442323", "0.5916305", "0.590139", "0.5878501"...
0.71970135
0
LeCun normal initializer. A truncated normal distribution centered on 0 with "stddev = sqrt(1 / fan_in)"
def WGpl(ROpF): IddF = ROpF[0] return oyIN.random.randn(*ROpF) * oyIN.sqrt(1.0 / IddF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h6h3(JBMS=0.0, M1Jx=0.01):\n\n def PvP4(r8hN):\n if isinstance(r8hN, U78l.Linear):\n tpio = r8hN.weight.data.size()\n DbxN.normal_(r8hN.weight.data, mean=JBMS, std=M1Jx / tpio[1])\n if isinstance(r8hN, cR9W):\n tpio = r8hN.centres.data.size()\n DbxN....
[ "0.7037068", "0.7013458", "0.7013458", "0.6942459", "0.69079596", "0.6903998", "0.6809042", "0.67559284", "0.66875327", "0.6648533", "0.6589503", "0.6578084", "0.65697074", "0.6558925", "0.65505815", "0.65505815", "0.6542421", "0.6516661", "0.6515323", "0.65148133", "0.650622...
0.71903867
0
Helper to create a Variable stored on CPU memory.
def js1U(mWFP, ROpF, MuED): with ZylS.device('/cpu:0'): yDqo = ZylS.float16 if vPBo.use_fp16 else ZylS.float32 SRYB = ZylS.get_variable(mWFP, ROpF, initializer=MuED, dtype=yDqo) return SRYB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def js1U(mWFP, ROpF, MuED, XJsN):\n with ZylS.device('/cpu:0'):\n yDqo = ZylS.float32\n SRYB = ZylS.get_variable(mWFP, ROpF, initializer=MuED, dtype=yDqo, trainable=XJsN)\n return SRYB", "def js1U(mWFP, ROpF, MuED, yDqo):\n with ZylS.device('/cpu:0'):\n SRYB = ZylS.get_variable(mWFP...
[ "0.7053174", "0.68374807", "0.68162715", "0.6711794", "0.670901", "0.669595", "0.6693301", "0.6679854", "0.66779804", "0.6661204", "0.6656669", "0.66533124", "0.66533124", "0.6645065", "0.6637938", "0.6597281", "0.65675366", "0.6566952", "0.6566952", "0.6555388", "0.65545285"...
0.65094215
28
Helper to create an initialized Variable with weight decay. Note that the Variable is initialized with a truncated normal distribution. A weight decay is added only if one is specified.
def xSbR(mWFP, ROpF, z2bo, TI1B): yDqo = ZylS.float16 if vPBo.use_fp16 else ZylS.float32 SRYB = js1U(mWFP, ROpF, ZylS.truncated_normal_initializer(stddev=z2bo, dtype=yDqo)) if TI1B is not None: oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss') ZylS.add_to_collection('loss...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJ6q(mWFP, ROpF, z2bo, TI1B):\n yDqo = ZylS.float32\n SRYB = Es0b(mWFP, ROpF, initializer=ZylS.compat.v1.truncated_normal_initializer(stddev=z2bo, dtype=yDqo))\n if TI1B is not None:\n oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss')\n ZylS.compat.v1.add_to_collectio...
[ "0.7469258", "0.7433716", "0.7426145", "0.73647183", "0.7331403", "0.7321968", "0.7321968", "0.7308166", "0.7302963", "0.7302145", "0.72869086", "0.72846025", "0.72843224", "0.7279023", "0.7265157", "0.72611165", "0.72611165", "0.72569346", "0.72462213", "0.72432286", "0.7243...
0.728014
13
Removes None entries from (the first level of) a dictionary.
def ofz1(cmPJ): return dict(((H5ew, BWXx) for H5ew, BWXx in cmPJ.iteritems() if BWXx is not None))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iNs_(Csk6: dict):\n KuU0 = []\n for H5ew, wEf2 in Csk6.items():\n if isinstance(wEf2, dict):\n iNs_(wEf2)\n elif wEf2 is None:\n KuU0.append(H5ew)\n for H5ew in KuU0:\n del Csk6[H5ew]\n return Csk6", "def o9k8(Csk6: dict) -> dict:\n TDnD = {}\n for...
[ "0.81216806", "0.7793679", "0.77767986", "0.7753056", "0.7740419", "0.7719552", "0.7655001", "0.7635442", "0.760051", "0.7597955", "0.7566836", "0.7562917", "0.7522341", "0.75175035", "0.7514391", "0.7456182", "0.7401511", "0.739769", "0.72661173", "0.72619885", "0.7242775", ...
0.6729106
46
Ensure that a NoHostAvailable Exception is thrown when a cluster cannot connect to given hosts
def cJY2(YKHO): hKn5 = Jmac(contact_points=['127.1.2.9', '127.1.2.10'], protocol_version=YzSa) YKHO.assertRaises(XKki, hKn5.connect)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NNcg(YKHO):\n x0hE = JR3Z(_ll5(nOgj))\n YKHO._test_network_error(x0hE, x0hE.method_network_error)", "def Vaug(YKHO):\n YKHO.run_tool('init --replicaset --hostname this_host')\n YKHO.read_config()", "def JhIw(Of0F: Sequence[Tuple[int, Text, Text]]) -> None:\n dixj, UAju = ps_8(zl2A.GET, Of0F,...
[ "0.69069034", "0.6887989", "0.66949886", "0.6656131", "0.65736336", "0.6539793", "0.6514566", "0.649992", "0.64486074", "0.6441124", "0.64082825", "0.63621813", "0.63558793", "0.6291623", "0.6274336", "0.6268794", "0.62435436", "0.61774004", "0.6174726", "0.60871303", "0.6084...
0.8572027
0
[return area of square]
def f0tD(YKHO): return YKHO.__size * YKHO.__size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FmDM(HEZd):\n return HEZd ** 2", "def FmDM(HEZd):\n return HEZd * HEZd", "def FmDM(jzdc):\n return UEQj(jzdc, jzdc)", "def f0tD(YKHO):\n return YKHO._Square__size ** 2", "def wMqN(zPAF, BsXG):\n f0tD = zPAF * BsXG\n return f0tD", "def f0tD(TVTK, H2v2):\n return TVTK * H2v2", "d...
[ "0.858263", "0.8540786", "0.8464656", "0.82469124", "0.8156659", "0.8138913", "0.80510414", "0.803906", "0.7994541", "0.7990868", "0.79546183", "0.78950197", "0.7882534", "0.7844374", "0.78406674", "0.78026414", "0.77509457", "0.7747001", "0.77429086", "0.77358913", "0.773589...
0.0
-1
Sets the dihedral forcegroup to a number other than 0, which will be used by serial tempering
def BA93(Oz1B, Oa1e=2): print('Scanning forces:') for eHNT in Oz1B.getForces(): if isinstance(eHNT, kYzE.openmm.openmm.PeriodicTorsionForce): print('Found the torsions - setting group to 2') eHNT.setForceGroup(2) print(eHNT.getForceGroup(), eHNT.__class__)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qbik(YKHO):\n YKHO.flag = oyIN.zeros(len(YKHO), dtype=oyIN.uint8)", "def oC6H(YKHO, hE03):\n if oyIN.isscalar(hE03):\n hE03 = hE03 * oyIN.ones(YKHO.n_trial, dtype=oyIN.int32)\n else:\n hE03 = YKHO._check_group_id(hE03)\n YKHO.group_id = jth9.copy(hE03)\n YKHO._set_configuration_d...
[ "0.60470015", "0.6000477", "0.5900901", "0.57414293", "0.5646298", "0.5625114", "0.5432721", "0.5432721", "0.5414761", "0.53944063", "0.53935647", "0.53847694", "0.5357935", "0.5344817", "0.5344817", "0.5344817", "0.5329533", "0.5301846", "0.5263128", "0.5254089", "0.5253579"...
0.6667724
0
List user communication channels. Returns a list of communication channels for the specified user, sorted by position.
def wf1i(YKHO, uJjO): pmON = {} nPrm = {} NArs = {} 'ID' pmON['user_id'] = uJjO YKHO.logger.debug('GET /api/v1/users/{user_id}/communication_channels with query params: {params} and form data: {data}'.format(params=NArs, data=nPrm, **pmON)) return YKHO.generic_request('GET', '/api/v1/users/{...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVHo(YKHO, BaHi):\n try:\n BdPz = YKHO.__db.smembers('{}{}'.format(BaHi, YKHO.USER_CHANNELS_POSTFIX))\n except:\n return (jGRS.HTTP_500_INTERNAL_SERVER_ERROR, 'something went wrong')\n if BdPz is None:\n return (jGRS.HTTP_404_NOT_FOUND, 'no data against this')\n BdPz = list(BdP...
[ "0.74172753", "0.67697346", "0.67576015", "0.65220314", "0.6505283", "0.648195", "0.6476732", "0.64460945", "0.64438814", "0.64077455", "0.63926405", "0.6389197", "0.62917405", "0.62738156", "0.6254233", "0.6165743", "0.61013985", "0.60984886", "0.6071259", "0.6062832", "0.60...
0.78653485
0
The address, or path, of the communication channel.
def UTX6(YKHO): return YKHO._address
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UTX6(YKHO):\n if YKHO._server is not None:\n return YKHO._server.sockets[0].getsockname()", "def qgw1(YKHO):\n if YKHO.x_channel is None:\n return None\n return YKHO.x_channel.address", "def vAkW(YKHO):\n return YKHO.__tcpServer.serverAddress()", "def iNkx():\n pass", "def ...
[ "0.6701904", "0.66879547", "0.6637495", "0.6605968", "0.65473187", "0.65094054", "0.6501452", "0.6487792", "0.64320874", "0.641446", "0.64121085", "0.6368264", "0.6284999", "0.628171", "0.62719464", "0.62353057", "0.62353057", "0.62353057", "0.62353057", "0.6230463", "0.62177...
0.5947369
58
The position of this communication channel relative to the user's other channels when they are ordered.
def dQgj(YKHO): return YKHO._position
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dQgj(YKHO):\n return YKHO.__position", "def dQgj(YKHO):\n return YKHO.pos", "def dQgj(YKHO):\n return YKHO.__position", "def dQgj(YKHO):\n return YKHO.__position", "def dQgj(YKHO):\n return YKHO.__position", "def dQgj(YKHO):\n return YKHO.__position", "def dQgj(YKHO):\n return ...
[ "0.674433", "0.67288774", "0.6725789", "0.6725789", "0.6725789", "0.6725789", "0.6725789", "0.6725789", "0.6725789", "0.6725789", "0.6725789", "0.6725789", "0.6725789", "0.6723044", "0.66723734", "0.66600573", "0.66600573", "0.66600573", "0.66600573", "0.66600573", "0.6660057...
0.6729273
1
The ID of the communication channel.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO) -> int:\n return YKHO.channel.QueryChannelId()", "def ShR8(YKHO):\n return YKHO._channel.id", "def x8BK(YKHO):\n return YKHO.msg.channel.id", "def LOJ7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'channel_id')", "def LOJ7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO,...
[ "0.86053103", "0.836089", "0.8317491", "0.7933432", "0.7933432", "0.7578519", "0.755405", "0.7480039", "0.7480039", "0.7308205", "0.7308205", "0.72880435", "0.72258", "0.72247094", "0.72247094", "0.72066844", "0.7204299", "0.72017986", "0.71901554", "0.70605755", "0.7039446",...
0.0
-1
Returns the service subnet value of the default network
def M17r(le6P): s9RN = cBye(le6P) if s9RN: return s9RN[GDa9.SRVC_SUB_KEY]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S2Ag(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'default_subnet_id')", "def IrNQ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'node_svc_subnet')", "def VWZy(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'subnet')", "def VWZy(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '...
[ "0.73362917", "0.72977203", "0.7212221", "0.7122562", "0.7122562", "0.7122562", "0.7122562", "0.7108858", "0.7108858", "0.7096494", "0.707129", "0.7001195", "0.7001195", "0.6993775", "0.6993775", "0.6993528", "0.6985215", "0.6972282", "0.695544", "0.6888945", "0.6880463", "...
0.7748152
0
Returns the pod subnet value of the default network
def weBn(le6P): s9RN = cBye(le6P) if s9RN: return s9RN[GDa9.POD_SUB_KEY]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VWZy(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'subnet')", "def zyw2(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'gbp_pod_subnet')", "def VWZy(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'subnet')", "def VWZy(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 's...
[ "0.7442327", "0.7381242", "0.72838193", "0.72838193", "0.72838193", "0.72838193", "0.72245914", "0.72245914", "0.72021294", "0.72021294", "0.7177829", "0.71736723", "0.70932597", "0.70932597", "0.70932597", "0.70932597", "0.70932597", "0.7077549", "0.7077549", "0.7035307", "0...
0.8011793
0
Returns the Kubernetes version
def kaPv(le6P): return GetU(le6P)[GDa9.K8_VER_KEY]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prQz(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'kubernetes_version')", "def azp_(YKHO) -> str:\n return YKHO._get_kubernetes_version(read_only=False)", "def prQz(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'kubernetes_version')", "def SiRe(YKHO) -> qe4Y.Output[str]:\n ret...
[ "0.87702847", "0.8643349", "0.85554886", "0.8222775", "0.7831197", "0.7131518", "0.71069187", "0.7035741", "0.6968395", "0.6950176", "0.6950176", "0.6950176", "0.6950176", "0.6859499", "0.6851973", "0.68313295", "0.6830585", "0.68107617", "0.67937773", "0.67921406", "0.679214...
0.7906968
4
Returns the project location
def lLku(le6P): AGPF = UhfZ(le6P) B5PH = QGfZ(le6P) return '{}/{}/{}'.format(AGPF, GDa9.PROJ_DIR_NAME, B5PH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def peEB(YKHO) -> str:\n return Hy7s.path.join(YKHO.location, 'projects')", "def EL0N(YKHO):\n try:\n O0al = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..'))\n return O0al\n except Exception:\n raise Exception('Unable to get project path')", "def Ao59(YKHO):\n r...
[ "0.85985774", "0.7657676", "0.76161754", "0.75203454", "0.7439388", "0.74251235", "0.741362", "0.7308794", "0.7295702", "0.7281165", "0.72332436", "0.7229474", "0.7216225", "0.7188394", "0.7173132", "0.7168872", "0.7104266", "0.7101474", "0.709253", "0.708162", "0.7056493", ...
0.0
-1
Returns the kubespray location
def D7Ft(le6P): AGPF = UhfZ(le6P) return '{}/{}'.format(AGPF, GDa9.KUBESPRAY_FOLDER_NAME)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbd3(YKHO):\n return YKHO.get_string('getLocation', [])", "def hbd3(YKHO):\n return YKHO.get_string('getLocation', [])", "def DqYW(YKHO):\n return YKHO['location']", "def Rci7(YKHO) -> str:\n return qe4Y.get(YKHO, 'location')", "def Rci7(YKHO) -> str:\n return qe4Y.get(YKHO, 'location')"...
[ "0.65972793", "0.65972793", "0.64311117", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", "0.6405569", ...
0.0
-1
Returns a list of the configured Ceph control hosts
def aVLN(le6P): yvT9 = list() x9NH = Dmez(le6P) for Qsv7 in x9NH: if Qsv7[GDa9.NODE_TYPE_KEY] == GDa9.CEPH_CTRL_TYPE: yvT9.append(Qsv7) return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dmez(le6P):\n Wm_E = GetU(le6P)[GDa9.PERSIST_VOL_KEY]\n _nCI = Wm_E.get(GDa9.CEPH_VOLUME_KEY)\n yvT9 = list()\n if _nCI:\n for Qsv7 in _nCI:\n if GDa9.HOST_KEY in Qsv7:\n yvT9.append(Qsv7[GDa9.HOST_KEY])\n return yvT9", "def Doi1(le6P):\n yvT9 = list()\n ...
[ "0.7340236", "0.70430404", "0.7008457", "0.70003945", "0.6952709", "0.6893823", "0.68773127", "0.6862145", "0.68587154", "0.68504405", "0.6823955", "0.6811808", "0.6811808", "0.67620444", "0.6721385", "0.67125905", "0.6678405", "0.66717124", "0.666508", "0.6658203", "0.658471...
0.7252322
1
Convert detection results to a list of numpy arrays.
def _Q3a(c8oy, Crrw, jTqs): if c8oy.shape[0] == 0: return [oyIN.zeros((0, 5), dtype=oyIN.float32) for YRbF in range(jTqs - 1)] else: c8oy = c8oy.cpu().numpy() Crrw = Crrw.cpu().numpy() return [c8oy[Crrw == YRbF, :] for YRbF in range(jTqs - 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZgHU(dixj: List[SimulationResult]):\n fUYa = oyIN.array([Mkmy.xs for Mkmy in dixj])\n O1jJ = oyIN.array([Mkmy.du_dls for Mkmy in dixj])\n OGMd = oyIN.array([Mkmy.du_dps for Mkmy in dixj], dtype=object)\n return (fUYa, O1jJ, OGMd)", "def NBjn(YKHO, SVFM: np.ndarray) -> oyIN.ndarray:\n ...", "...
[ "0.7434402", "0.68806976", "0.67749083", "0.67036223", "0.6504912", "0.6435243", "0.6414056", "0.63995785", "0.6385279", "0.63432074", "0.6314237", "0.6293125", "0.6243589", "0.62279564", "0.62090623", "0.6151189", "0.6150064", "0.6132532", "0.6123654", "0.60776025", "0.60749...
0.0
-1
Returns True if the connection is closed, False otherwise.
def msNV(YKHO) -> bool: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SEEh(YKHO):\n return YKHO.connection is None", "def SEEh(YKHO):\n return YKHO.connection is None", "def DDI8(YKHO):\n if YKHO.connection_is_open:\n YKHO.connection.close()\n return not YKHO.connection_is_open", "def FXBA(YKHO):\n try:\n return YKHO.connection is not None and ...
[ "0.8398654", "0.8398654", "0.8232479", "0.8028263", "0.8003788", "0.7968486", "0.77730024", "0.77483976", "0.7728724", "0.7614391", "0.75916976", "0.758614", "0.75541604", "0.74850416", "0.7479098", "0.7389151", "0.7389151", "0.7389151", "0.7389151", "0.7384445", "0.73590547"...
0.6959375
50
Retrieve the (previously registered) converter function for the SQL type.
def f80w(YKHO, xkJ7: int, /) -> h8nf[YrBT]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SVyP(YKHO, xkJ7: int, JfyU: Optional[Callable], /) -> None:\n ...", "def SVyP(YKHO, xkJ7, JfyU):\n S8Ct = YKHO._execute(YKHO._conn.add_output_converter, xkJ7, JfyU)\n return S8Ct", "def Lb2i(QNO6, callable):\n pass", "def VISe(aDxC: str, *qIxc, **B2fa):\n return up6l[aDxC](*qIxc, **B2fa)",...
[ "0.6800239", "0.6777003", "0.6720334", "0.6712135", "0.64922345", "0.6478677", "0.64664143", "0.6419716", "0.63307697", "0.62140834", "0.6168146", "0.61563313", "0.6144468", "0.6101327", "0.6090114", "0.6051888", "0.60315824", "0.60209984", "0.5976915", "0.59446394", "0.59076...
0.78461164
0
Retrieve the next row in the current result set for the query.
def IdyN(YKHO) -> h8nf[d3C6]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next(YKHO):\n if YKHO.__result is None:\n raise jvnz('No result available. execute() or executemany() must be called first.')\n elif not YKHO.__is_close:\n return next(YKHO.__rows)\n else:\n raise jvnz('Cursor closed!')", "def next(YKHO):\n rdlD = YKHO.fetchone()\n if rdlD...
[ "0.79557395", "0.7793858", "0.76477295", "0.7273105", "0.7260364", "0.6985277", "0.6942724", "0.6934441", "0.69177705", "0.6893561", "0.688032", "0.6851496", "0.6849841", "0.6843029", "0.6843029", "0.68180954", "0.68107975", "0.68042505", "0.6789526", "0.6786949", "0.67684025...
0.0
-1
Retrieve the next rows in the current result set for the query, as a list.
def mqUu(YKHO, zNig: int, /) -> x1iM[d3C6]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yEmi(YKHO):\n try:\n yKcO = int(YKHO.results.start)\n except AttributeError:\n yKcO = 0\n yKcO += len(YKHO.results)\n NArs = dict(YKHO._params)\n NArs['start'] = yKcO\n vexM = NArs['q']\n del NArs['q']\n return YKHO._connection.query(vexM, **NArs)", "def next(YKHO):\n ...
[ "0.74248344", "0.68190825", "0.68182546", "0.67500055", "0.6693626", "0.6591919", "0.65892327", "0.6521773", "0.64747673", "0.64684176", "0.64185166", "0.6392617", "0.63415194", "0.6265362", "0.62564886", "0.62494063", "0.62183607", "0.62158597", "0.6206881", "0.6192745", "0....
0.6045255
36
Return the column(s) in a database table that make up the primary key on the table. Parameter values can include wildcard characters.
def utZ1(YKHO, tyNF: str, Piln: Optional[str]=None, uPxI: Optional[str]=None) -> IshC: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ftQ8(tyNF):\n return tyNF.primary_key.columns.keys()", "def xAfl(NCls, GTA_):\n dt2u = [Z9rn[1] for Z9rn in YjEu(NCls.cursor(), GTA_) if Z9rn[5] == 1]\n if len(dt2u) == 0:\n return None\n _0VL = [GYmF(NCls.cursor(), YRbF) for YRbF in yoIA(NCls.cursor(), GTA_)]\n frAc = [or8S for or8S in...
[ "0.701369", "0.69599354", "0.6956355", "0.6919906", "0.6911715", "0.6774974", "0.655876", "0.65567166", "0.6511937", "0.6444111", "0.6414248", "0.63969624", "0.6353398", "0.62738734", "0.61901206", "0.6188907", "0.6174064", "0.61695105", "0.61488336", "0.61427313", "0.613431"...
0.6253126
14
Return the foreign keys in a database table, i.e. any columns that refer to primary key columns on another table. Parameter values can include wildcard characters.
def kMY1(YKHO, tyNF: Optional[str]=None, Piln: Optional[str]=None, uPxI: Optional[str]=None, o0M7: Optional[str]=None, Wu2n: Optional[str]=None, m7v9: Optional[str]=None) -> IshC: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZGQj(DzVA):\n if isinstance(DzVA, RyuO.Table):\n xU0C = [DzVA]\n else:\n xU0C = d_72(DzVA)\n yjEi = set()\n for tyNF in DzVA.metadata.tables.values():\n if tyNF not in xU0C:\n for oVM8 in tyNF.constraints:\n if isinstance(oVM8, RyuO.sql.schema.ForeignK...
[ "0.73519224", "0.70080525", "0.6981649", "0.68012506", "0.66558653", "0.66200984", "0.64489144", "0.64373326", "0.6385459", "0.6377615", "0.62456435", "0.61246616", "0.6081254", "0.60396415", "0.6029814", "0.59834623", "0.5923823", "0.59087527", "0.58842963", "0.5871848", "0....
0.7414023
0
Performs a descent step (as return by `tf.train.Optimizer.apply_gradients`) and computes the values of the variables after it.
def dfHy(YKHO): if YKHO._iteration is None: with ZylS.control_dependencies([YKHO._updates_op]): YKHO._iteration = YKHO._state_read() return YKHO._iteration
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iauk(YKHO):\n for exwG in range(len(YKHO.x_batch)):\n YKHO.y_tensor[:, :, exwG], YKHO.grad_1, YKHO.grad_2 = YKHO.model.back_propagation(YKHO.x_batch[exwG], YKHO.t_vec[exwG])\n YKHO.total_grad_1 += YKHO.grad_1\n YKHO.total_grad_2 += YKHO.grad_2\n YKHO.total_grad_1 = YKHO.total_grad_1 ...
[ "0.725934", "0.70536417", "0.69053394", "0.67560226", "0.6741696", "0.6690719", "0.666865", "0.6648282", "0.6638384", "0.6613164", "0.65815073", "0.6539199", "0.64754313", "0.64438903", "0.6431174", "0.6426956", "0.64228576", "0.64191824", "0.6402784", "0.6398353", "0.6397993...
0.0
-1
Returns the list of operation params of all authorized grants.
def poeH(YKHO): JNtF = [] for FUdM in YKHO.grant_objects.itervalues(): if FUdM.isGrantAuthorizedInLastHeartbeat(): JNtF.append(FUdM.getRequestOperationParam()) return JNtF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yEAJ(YKHO):\n return YKHO._policy.get_param_values()", "def LQOL(YKHO):\n return YKHO.__api_cftools_session.get(YKHO.__grants_url, headers=YKHO.__api_cftools_headers)", "def W6RH(YKHO):\n return []", "def NArs(YKHO):\n return YKHO.keys()", "def NArs(YKHO):\n return YKHO.keys()", "def N...
[ "0.64187896", "0.6373951", "0.6229278", "0.62244505", "0.62244505", "0.62140214", "0.6195281", "0.6131984", "0.6120222", "0.61019856", "0.60980004", "0.6080622", "0.6080622", "0.6080622", "0.6080622", "0.6080622", "0.6069876", "0.6063757", "0.6034299", "0.60218763", "0.598630...
0.83762187
0
Add a meta data keyvalue pair to the report.
def bpqj(YKHO, H5ew, BWXx): YKHO.meta[H5ew] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kkZX(YKHO, H5ew, BWXx):\n assert H5ew is not None, 'The key for the adding data cannot be None'\n if YKHO.meta_data is None:\n YKHO.meta_data = {}\n YKHO.meta_data[H5ew] = BWXx", "def D3Kd(YKHO, H5ew, BWXx):\n YKHO.metadata[H5ew] = BWXx", "def D3Kd(YKHO, UTX6, H5ew, BWXx):\n if YKHO.a...
[ "0.77564657", "0.7512392", "0.71533364", "0.7126851", "0.7124046", "0.7089034", "0.70854956", "0.7080225", "0.70156085", "0.69956255", "0.6925671", "0.6904879", "0.68007475", "0.6730216", "0.66950303", "0.6694607", "0.6675205", "0.6630453", "0.6514619", "0.6507275", "0.649805...
0.80180824
0
Predict class probabilities for X. The predicted class probabilities of an input sample are computed as the mean predicted class of the trees in the forest.
def KR85(YKHO, Yw_3): Xn71 = YKHO.convolve_predict(YKHO, Yw_3) Xn71 = Xn71.reshape(len(Yw_3), -1) return YKHO.random_forest.predict_proba(Xn71)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, EcVT):\n return YKHO.classify(YKHO.tree_, EcVT)", "def VQQj(YKHO, EcVT):\n exwG, Csk6 = EcVT.shape\n UnIO = oyIN.zeros((exwG, YKHO.K))\n for YRbF in range(exwG):\n rdlD = EcVT[YRbF, :]\n for r845 in range(YKHO.K):\n ZzPh = oyIN.multiply(YKHO.attributeClassifica...
[ "0.7455703", "0.73768383", "0.73700553", "0.73402184", "0.73240143", "0.72904485", "0.72897834", "0.7289759", "0.7274034", "0.7229537", "0.72275275", "0.7225515", "0.7225307", "0.72150284", "0.72016895", "0.717109", "0.7167826", "0.7166096", "0.71637744", "0.7151853", "0.7149...
0.0
-1
Calculate the area of the section
def vn7_(YKHO): type = YKHO._type if type == 'rectangular': TVTK = YKHO._data[0] H2v2 = YKHO._data[1] return TVTK * H2v2 elif type == 'general': return YKHO._data[0] elif type == 'circular': r1VO = YKHO._data[0] return oyIN.pi * r1VO ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aw0V(YKHO):\n pass", "def __AN(YKHO):\n pass", "def f0tD(YKHO):\n TLbF = YKHO.flatten()\n f0tD = 0\n for KCHu in TLbF.asSegments():\n f0tD = f0tD + (KCHu.start.x + KCHu.end.x) * (KCHu.end.y - KCHu.start.y)\n f0tD = f0tD / 2.0\n return abs(f0tD)", "def vn7_(EbWA):\n pass", ...
[ "0.84261954", "0.7804667", "0.7670208", "0.76562387", "0.76343524", "0.7629692", "0.7616968", "0.761473", "0.7571681", "0.7556351", "0.75549287", "0.7544452", "0.7527331", "0.75210214", "0.75204456", "0.74903274", "0.7477705", "0.7437982", "0.7430256", "0.74172217", "0.739922...
0.7103523
64
Returns the printable string for this object
def zAg0(YKHO): return 'Beam Section: {name}, type: {t}'.format(name=YKHO._name, t=YKHO._type)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return _RHq(YKHO)", "def zAg0(YKHO):\n return _RHq(YKHO)", "def zAg0(YKHO) -> str:\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n jbXL = jKi7.StringIO()\...
[ "0.8425284", "0.8425284", "0.8402153", "0.8400741", "0.8400741", "0.8397861", "0.8396444", "0.83569705", "0.83569705", "0.8208663", "0.8190151", "0.81871706", "0.81871706", "0.81871706", "0.81871706", "0.81871706", "0.81871706", "0.81871706", "0.8175441", "0.8168967", "0.8168...
0.0
-1
Returns the printable string for this object
def wHJl(YKHO): return 'Beam Section: {name}, type: {t}'.format(name=YKHO._name, t=YKHO._type)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return _RHq(YKHO)", "def zAg0(YKHO):\n return _RHq(YKHO)", "def zAg0(YKHO) -> str:\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n jbXL = jKi7.StringIO()\...
[ "0.84247506", "0.84247506", "0.8401467", "0.8400122", "0.8400122", "0.8397285", "0.8395577", "0.83563703", "0.83563703", "0.8207752", "0.81901014", "0.8187027", "0.8187027", "0.8187027", "0.8187027", "0.8187027", "0.8187027", "0.8187027", "0.8174484", "0.81686616", "0.8168013...
0.0
-1
Return True if the gramplet has data, else return False.
def KEfV(YKHO, YEnM): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUSK(YKHO):\n return False", "def LUSK(YKHO):\n return bool(YKHO.data)", "def LUSK(YKHO):\n return len(YKHO.data) > 0", "def LUSK(YKHO):\n return len(YKHO.data) > 0", "def LUSK(YKHO):\n return YKHO.connector.has_data()", "def LUSK(YKHO):\n return YKHO.dataset.has_data()", "def LUS...
[ "0.78902686", "0.7789454", "0.764398", "0.764398", "0.7462082", "0.74451673", "0.74094766", "0.7339812", "0.7307086", "0.72974694", "0.725359", "0.7221159", "0.7214597", "0.71729183", "0.7133979", "0.7123199", "0.71214724", "0.71163315", "0.70705307", "0.70543444", "0.6986785...
0.6381453
95
Constructor for the IdpUserInfo class
def FIMM(YKHO, R05g=None, moMn=None, Ruda=None, UT9E=None, Wb9V=None, uJjO=None, V3AY=None): YKHO.group_sids = R05g YKHO.groups = moMn YKHO.idp_id = Ruda YKHO.is_floating_user = UT9E YKHO.issuer_id = Wb9V YKHO.user_id = uJjO YKHO.vendor = V3AY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, uJjO=None, VCCg=None):\n if VCCg:\n YKHO.__INFO = VCCg\n elif uJjO:\n YKHO.__INFO = mv1M.get_users_info([uJjO])[0]\n else:\n raise Exception('wrong user creation')", "def FIMM(YKHO, n10L, jTXt, eOtH, CBIr=None):\n YKHO._userid = n10L\n YKHO._password = jTXt\n ...
[ "0.69724756", "0.67944884", "0.6750684", "0.65118283", "0.64733386", "0.646555", "0.6411919", "0.62839705", "0.6235898", "0.6223036", "0.6211758", "0.6186281", "0.61045706", "0.6083117", "0.60787934", "0.6046082", "0.60281163", "0.5977918", "0.59450936", "0.59442794", "0.5919...
0.0
-1
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None R05g = cmPJ.get('groupSids') moMn = cmPJ.get('groups') Ruda = cmPJ.get('idpId') UT9E = cmPJ.get('isFloatingUser') Wb9V = cmPJ.get('issuerId') uJjO = cmPJ.get('userId') V3AY = cmPJ.get('vendor') return Emd4(R05g, moMn, Ruda, U...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
Given two lists of boxes of size N and M, compute the IoU (intersection over union) between all N x M pairs of boxes. The box order must be (xmin, ymin, xmax, ymax).
def gqSh(wGB6, QFOH) -> ht2j.Tensor: bzU2 = f0tD(wGB6) Eq1k = f0tD(QFOH) C7_8 = Wi5U(wGB6, QFOH) RjuK = ht2j.where(C7_8 > 0, C7_8 / (bzU2[:, None] + Eq1k - C7_8), ht2j.zeros(1, dtype=C7_8.dtype, device=C7_8.device)) return RjuK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ySfS(knvf, IkxF):\n rn1I = knvf[2]\n De7X = knvf[3]\n mIwi = IkxF[2]\n GD1K = IkxF[3]\n Z9pq = rn1I * De7X\n d_Zw = mIwi * GD1K\n RsfQ = min(knvf[0] - rn1I / 2.0, IkxF[0] - mIwi / 2.0)\n DIq2 = max(knvf[0] + rn1I / 2.0, IkxF[0] + mIwi / 2.0)\n B5ql = DIq2 - RsfQ\n suhQ = min(knvf[...
[ "0.8305495", "0.8125816", "0.80859655", "0.80830014", "0.7967024", "0.79651886", "0.79587555", "0.7937537", "0.79121673", "0.7863946", "0.785276", "0.785276", "0.785276", "0.785276", "0.78491557", "0.78453714", "0.7831597", "0.78189987", "0.77704656", "0.7763964", "0.7757232"...
0.78855824
9
Given two lists of boxes of size N and M, compute the intersection area between __all__ N x M pairs of boxes. The box order must be (xmin, ymin, xmax, ymax)
def Wi5U(wGB6, QFOH) -> ht2j.Tensor: BCFB = ht2j.min(wGB6[:, None, 2:], QFOH[:, 2:]) - ht2j.max(wGB6[:, None, :2], QFOH[:, :2]) BCFB.clamp_(min=0) iQin = BCFB.prod(dim=2) return iQin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQin(knvf, IkxF):\n a4TF, muDC, tBwn, _AAi = knvf\n Xn4L, QTZF, mZ91, b8lW = IkxF\n LFlW = max(a4TF, Xn4L)\n _tIi = min(tBwn, mZ91)\n es2x = min(_AAi, b8lW)\n tlxW = max(muDC, QTZF)\n if LFlW < _tIi and tlxW < es2x:\n return f0tD((LFlW, tlxW, _tIi - LFlW, es2x - tlxW))\n else:\n ...
[ "0.7853763", "0.7430721", "0.74024117", "0.7384787", "0.7278236", "0.72696847", "0.7252607", "0.7247797", "0.72177184", "0.7184189", "0.71782404", "0.7169021", "0.7160464", "0.7159591", "0.7159591", "0.7148901", "0.71422124", "0.71092355", "0.70661503", "0.7039035", "0.703903...
0.7290546
4
Computes the area of all the boxes.
def f0tD(FlUN) -> ht2j.Tensor: f0tD = (FlUN[:, 2] - FlUN[:, 0]) * (FlUN[:, 3] - FlUN[:, 1]) return f0tD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ab__(oUSw):\n return (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])", "def ab__(oUSw):\n return (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])", "def ab__(oUSw):\n oUSw = ACWl(oUSw)\n KxnW = (oUSw[:, v5LI.X2] - oUSw[:, v5LI.X1]) * (oUSw[:, v5LI.Y2] - oUSw[:, v5LI.Y1])\n return ...
[ "0.82655174", "0.82655174", "0.8074211", "0.7759269", "0.7730318", "0.76592433", "0.7653963", "0.7567312", "0.75155705", "0.75037473", "0.74665457", "0.74008524", "0.73179996", "0.73083705", "0.7297536", "0.71995354", "0.7147615", "0.71223956", "0.71057856", "0.7083441", "0.7...
0.6911651
26
Returns the value of the nextPageToken for this SearchResponseBuilder.
def dzB6(YKHO): return YKHO._nextPageToken
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wIDR(YKHO, PFhN):\n YKHO._nextPageToken = PFhN", "def HB4w(YKHO, geh0: requests.Response) -> h8nf[GySg[str, ImMB]]:\n nPrm = geh0.json().get('data')\n if nPrm:\n return {'scroll_param': geh0.json().get('scroll_param')}", "def HB4w(YKHO) -> str:\n return YKHO._next_page_token", "def HB4...
[ "0.61657846", "0.58213556", "0.57691324", "0.5737876", "0.5718629", "0.56680256", "0.5612", "0.56064206", "0.56064206", "0.5535622", "0.55332464", "0.55332464", "0.53082377", "0.52781546", "0.5230615", "0.5172352", "0.5141406", "0.51307756", "0.51027524", "0.5059415", "0.5048...
0.7638083
0
Returns True if all fields in this protocol element are equal to the fields in the specified protocol element.
def xa14(YKHO, Elif): if type(Elif) != type(YKHO): return False qPqU = Hs6x.imap(lambda eHNT: eHNT.name, YKHO.schema.fields) return all((getattr(YKHO, G1Hx) == getattr(Elif, G1Hx) for G1Hx in qPqU))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, geyT):\n if YKHO.p != geyT.p or YKHO.n != geyT.n:\n return False\n if YKHO.exp_coefs != geyT.exp_coefs:\n return False\n if YKHO.field_list != geyT.field_list:\n return False\n return True", "def xa14(YKHO, Elif: object) -> bool:\n if not isinstance(Elif, Ve9k):...
[ "0.63333505", "0.621315", "0.6110325", "0.5896793", "0.5801636", "0.57757586", "0.5766277", "0.57439184", "0.57238126", "0.5680311", "0.5675461", "0.5663253", "0.5657104", "0.56323075", "0.56049216", "0.56040275", "0.55818725", "0.5571001", "0.55693346", "0.5557487", "0.55420...
0.63437283
0
Returns a JSON encoded string representation of this ProtocolElement.
def HOkh(YKHO): return qQXR.dumps(YKHO, cls=cLr6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oD7C(YKHO):\n return YKHO.protocol", "def GS_w(YKHO):\n return qQXR.dumps(YKHO._elements_dict)", "def ghvY(YKHO):\n return qQXR.dumps(YKHO).encode('utf-8')", "def qQXR(YKHO) -> str:\n return qQXR.dumps(YKHO.as_dict(), indent=4)", "def vmDR(YKHO) -> str:\n return qQXR.dumps({'type': YKHO....
[ "0.7610963", "0.7199196", "0.7074648", "0.70352554", "0.7015738", "0.7002761", "0.699767", "0.699181", "0.6957799", "0.69545573", "0.6949588", "0.69442683", "0.6943007", "0.6913404", "0.6876346", "0.6857473", "0.6856571", "0.6856571", "0.6856571", "0.6839635", "0.683953", "...
0.8698507
0
Returns a decoded ProtocolElement from the specified JSON string.
def OXhe(Emd4, Hd4e): ufKf = qQXR.loads(Hd4e) return Emd4.fromJsonDict(ufKf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H3LU(zEKB):\n return ITJE.decode(zEKB)", "def iquo(SFc5: dict) -> FYrf.JsonProtocol:\n return FYrf.JsonProtocol.parse_obj(SFc5)", "def B333(nMY2):\n return S25Q.decode(nMY2)", "def rXBt(vRJ_):\n return qQXR.loads(vRJ_.decode())", "def x8I_(YKHO, zEKB):\n return qQXR.loads(zEKB)", "def ...
[ "0.68660676", "0.6810259", "0.6644965", "0.66263974", "0.65112823", "0.64446235", "0.6384337", "0.63170284", "0.62681675", "0.624232", "0.61638063", "0.6113479", "0.6027624", "0.60010916", "0.5993441", "0.5986347", "0.59334517", "0.5920271", "0.5908988", "0.58870447", "0.5875...
0.0
-1
Returns a decoded ProtocolElement from the specified JSON dictionary.
def C4AP(Emd4, ufKf): if ufKf is None: raise ValueError('Required values not set in {0}'.format(Emd4)) KAOR = Emd4() for Jyyj in Emd4.schema.fields: c_1q = Jyyj.default if Jyyj.name in ufKf: wEf2 = ufKf[Jyyj.name] if Emd4.isEmbeddedType(Jyyj.name): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iquo(SFc5: dict) -> FYrf.JsonProtocol:\n return FYrf.JsonProtocol.parse_obj(SFc5)", "def _eLY(Emd4, qQXR, U3Fm=False):\n return XHrM(Emd4, HjBM.loads(qQXR), U3Fm)", "def _eLY(Emd4, qQXR, U3Fm=False):\n return XHrM(Emd4, HjBM.loads(qQXR), U3Fm)", "def lcde(qQXR: bytes) -> ImMB:\n pass", "def...
[ "0.690607", "0.6326909", "0.6326909", "0.61126125", "0.60674495", "0.6017839", "0.5970135", "0.59393674", "0.5852533", "0.5822428", "0.57898223", "0.57461643", "0.56192446", "0.5615139", "0.5541376", "0.5540171", "0.55312645", "0.55253226", "0.5493972", "0.54796237", "0.54751...
0.0
-1
Returns all the protocol classes that are subclasses of the specified superclass. Only 'leaf' classes are returned, corresponding directly to the classes defined in the protocol.
def Sve9(ICGX=L1TZ): D_YD = set([L1TZ, Y_rk, tno9]) djUe = HwRy.modules[__name__] Hh7E = [] for mWFP, vOsx in tq_1.getmembers(djUe): if tq_1.isclass(vOsx) and issubclass(vOsx, ICGX) and (vOsx not in D_YD): Hh7E.append(vOsx) return Hh7E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sXxB(kAug):\n kAug.__subclasses__()\n Hh7E = set()\n wKX3 = [kAug]\n while wKX3:\n _AKB = wKX3.pop()\n for aUGN in _AKB.__subclasses__():\n if aUGN not in Hh7E:\n Hh7E.add(aUGN)\n wKX3.append(aUGN)\n return sorted(Hh7E, key=lambda WKvO: WKvO...
[ "0.7163538", "0.70452714", "0.69755286", "0.6918677", "0.69182", "0.69182", "0.6916122", "0.6889063", "0.67986035", "0.6793067", "0.6786033", "0.6718044", "0.66781145", "0.6579342", "0.65487087", "0.6544897", "0.654338", "0.64755756", "0.64394975", "0.6431376", "0.6424878", ...
0.8373703
0
Test that our dummy jinja filters are discovered.
def oIDs(): yido = '{}.{}'.format('.'.join(__name__.split('.')[0:-1]), 'jinjafilters') aese = FyRt(yido) assert 'context_filter' in aese assert aese['context_filter'] == vfNk.context_filter assert 'eval_context_filter' in aese assert aese['eval_context_filter'] == vfNk.eval_context_filter as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mRgv(QePW):\n\n def Xbtq(filter: typing.Callable, TBsA: str, aEqx: str, **globals: typing.Optional[typing.Dict[str, typing.Any]]) -> str:\n tTpl = zAej(loader=g_QK({'test': TBsA}))\n cAx9 = filter.__name__[7:]\n if hasattr(filter, BgEZ) and getattr(filter, BgEZ):\n tTpl.filte...
[ "0.78560156", "0.73923606", "0.7078207", "0.6393596", "0.62212974", "0.6204958", "0.6201236", "0.61758894", "0.6125457", "0.6105057", "0.60946316", "0.6083854", "0.60490674", "0.60312563", "0.6019474", "0.5990635", "0.5983891", "0.5980837", "0.5965941", "0.5964567", "0.593983...
0.7633954
1
Softmax cost function for word2vec models Implement the cost and gradients for one predicted word vector and one target word vector as a building block for word2vec models, assuming the softmax prediction function and cross entropy loss.
def HoUx(Ty9i, oTCO, GNIF, __n6): nzxT = oyIN.zeros(GNIF.shape[0]) nzxT[oTCO] = 1 OfDw = oyIN.sum(-nzxT * oyIN.log(N93T(oyIN.dot(Ty9i, GNIF.T)))) epBp = [] for rdlD in GNIF: epBp.append(oyIN.dot(rdlD, Ty9i)) HxFI = N93T(oyIN.array(epBp)) 'i = 0\n gradv_temp = 0\n for u in outpu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HoUx(PjQx, pan_, GNIF):\n lWPh = len(PjQx)\n vCec = oyIN.dot(PjQx, GNIF.T)\n RrmH = N93T(vCec)\n sSN_ = -oyIN.log(RrmH[pan_])\n Ev9i = -GNIF[pan_, :] + oyIN.dot(RrmH, GNIF)\n Ro40 = oyIN.tile(RrmH, (lWPh, 1)).T * PjQx\n Ro40[pan_, :] -= PjQx\n return (sSN_, Ev9i, Ro40)", "def HoUx(PjQ...
[ "0.84585917", "0.83015585", "0.8139625", "0.7226001", "0.7221102", "0.7155576", "0.7001077", "0.69972336", "0.6967725", "0.6934143", "0.6890378", "0.68742824", "0.68186533", "0.68123984", "0.68034726", "0.6747586", "0.67426735", "0.67337817", "0.6732881", "0.67185676", "0.671...
0.7385153
3
Row normalization function Implement a function that normalizes each row of a matrix to have unit length.
def U95B(WKvO): ciZM = oyIN.apply_along_axis(lambda WKvO: oyIN.sqrt(WKvO.T.dot(WKvO)), 1, WKvO) WKvO /= ciZM[:, None] return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U95B(WKvO):\n return WKvO / oyIN.linalg.norm(WKvO, axis=1)[:, None]", "def U95B(WKvO):\n assert WKvO.shape == (WKvO.shape[0], WKvO.shape[1])\n WzsH = oyIN.linalg.norm(WKvO, axis=1, keepdims=True)\n WKvO = WKvO / WzsH\n return WKvO", "def aB7J(k0lF):\n return k0lF / oyIN.linalg.norm(k0lF, ...
[ "0.8210387", "0.8011394", "0.7998892", "0.79885274", "0.79567784", "0.78860784", "0.785453", "0.76173145", "0.7533845", "0.7526114", "0.74109495", "0.74109495", "0.7303111", "0.7233656", "0.7210111", "0.7170918", "0.7128225", "0.70556974", "0.70447946", "0.7018054", "0.696696...
0.7933255
5
Create a Google API service. Load an API service from a discovery document and authorize it with the provided credentials.
def PG5p(zVa7, DpZH, GoZD=None): Xqgu = OBHh.Http() if GoZD: GoZD.authorize(Xqgu) return Cc7Y(zVa7, DpZH, http=Xqgu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PG5p():\n try:\n Vt89 = TNQQ()\n Xqgu = Vt89.authorize(OBHh.Http())\n EfiP = 'https://sheets.googleapis.com/$discovery/rest?version=v4'\n zVa7 = PdUZ.build('sheets', 'v4', http=Xqgu, discoveryServiceUrl=EfiP, cache_discovery=False)\n return zVa7\n except FileNotFoundErr...
[ "0.7696685", "0.7308171", "0.7215469", "0.720777", "0.7150942", "0.7113043", "0.71110195", "0.6958435", "0.6920959", "0.69119745", "0.69101954", "0.68903434", "0.68862915", "0.6820172", "0.67776674", "0.6770037", "0.6758061", "0.67384845", "0.67320794", "0.6704738", "0.669435...
0.62188834
55
A decorator to require that the user has authorized the Glassware.
def tPR3(t7Hc): def gDhF(YKHO, *qIxc): YKHO.userid, YKHO.credentials = esoP(YKHO) YKHO.mirror_service = PG5p('mirror', 'v1', YKHO.credentials) if not YKHO.credentials: YKHO.redirect('/auth') return else: t7Hc(YKHO, *qIxc) return gDhF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YyIL(eHNT):\n\n @xBlr.wraps(eHNT)\n def h3Xc(*qIxc, **B2fa):\n return oAWu(eHNT, False, *qIxc, **B2fa)\n return h3Xc", "def tPR3(eHNT):\n\n @zaGL(eHNT)\n def SzLu(*qIxc, **B2fa):\n if not Oa1e.user and (not None):\n Dwep('Access unauthorized.', 'danger')\n r...
[ "0.7652668", "0.7490166", "0.748146", "0.7416827", "0.73358476", "0.73324233", "0.73157907", "0.7238985", "0.7169845", "0.7103623", "0.70786697", "0.70317805", "0.70171833", "0.7009116", "0.7007956", "0.7004923", "0.6987186", "0.69607913", "0.6959107", "0.6951805", "0.6915598...
0.0
-1
Useful for wrapping lists in tuples for caching purposes
def e8zo(eHNT): def ZCRC(WKvO): if isinstance(WKvO, (Ze2u, s1Pi)): return WKvO if isinstance(WKvO, list): return s1Pi(WKvO) if isinstance(WKvO, dict): return Ze2u(WKvO) return WKvO @xBlr.wraps(eHNT) def b6ry(*qIxc): qIxc = [ZCRC(W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hXWe(IqQl):\n return tuple(IqQl)", "def LnqA(bCES):\n AZ0k = [ZfUD if Oa8f.isiterable(ZfUD) else (ZfUD,) for ZfUD in bCES]\n return AZ0k", "def qsp4(yv6U: list) -> tuple:\n return tuple((qsp4(YRbF) if isinstance(YRbF, list) else YRbF for YRbF in yv6U))", "def Z5S0(a1PO):\n return tuple(map...
[ "0.7339043", "0.7295657", "0.7100654", "0.7048566", "0.7027085", "0.70037377", "0.6833294", "0.6804597", "0.67979115", "0.6794323", "0.6786856", "0.67777675", "0.67624056", "0.6732899", "0.6697882", "0.66916746", "0.66482466", "0.661328", "0.65786743", "0.6573261", "0.6545509...
0.0
-1
Link a user to an external id.
def xKOp(CBIr, WhG7=None): try: with NCls.session.begin_nested(): NCls.session.add(EOE9(id=WhG7['id'], method=WhG7['method'], id_user=CBIr.id)) except yXsM: raise nVAL(CBIr, WhG7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def whVA(CBIr, WhG7=None):\n EOE9.create(CBIr, WhG7['method'], WhG7['id'])", "def NSLx(YKHO, CBIr):\n return CBIr", "def b4vN(QTiD, MJH0):\n return Nc2H._linkToUserId(userId=QTiD, replace={'googleId': MJH0})", "def b4vN(QTiD, VY55):\n return Nc2H._linkToUserId(userId=QTiD, replace={'facebookId': ...
[ "0.7828567", "0.72675365", "0.7205312", "0.7070452", "0.70329356", "0.69948155", "0.6770296", "0.6751005", "0.67279714", "0.66650397", "0.6652257", "0.6597035", "0.6484935", "0.6425086", "0.63356096", "0.6232273", "0.6214033", "0.6187224", "0.6180658", "0.61676466", "0.614554...
0.7853933
0
Assert that creating a UserProfile object from JSON works as expected.
def Idi5(cuiw, x0hE, DvJO, zgjV): z39Z = BFpK.create_from_json(zgjV, 12343) assert z39Z assert z39Z.payment_confirmation assert z39Z.search_selection_confirmation assert z39Z.default_table_filters assert z39Z.default_drop_downs if 'registrationsTable' in zgjV: assert 'showColumn1' in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TBO3(cuiw, x0hE, DvJO):\n CBIr = mv1M.find_by_jwt_token(Yw5Q)\n if not CBIr:\n CBIr = mv1M.create_from_jwt_token(Yw5Q, 'PS12345')\n SGll = BFpK.create_from_json(SJBG, CBIr.id)\n SGll.save()\n U1ai = SGll.json\n assert U1ai['paymentConfirmationDialog'] == SJBG['paymentConfirmationDialog...
[ "0.76248294", "0.71603453", "0.6989062", "0.69385123", "0.6927982", "0.67766327", "0.67707425", "0.67219776", "0.6709821", "0.668806", "0.66506684", "0.6640438", "0.6606696", "0.6602726", "0.66014683", "0.65842116", "0.65826625", "0.65760744", "0.65478015", "0.6546103", "0.65...
0.8421124
0
Assert that user jwt properties are as expected.
def thhm(cuiw, x0hE, DvJO, eOtH): assert DvJO fcCO = eOtH.get('given_name', None) if not fcCO: fcCO = eOtH.get('firstname', None) jBHA = eOtH.get('family_name', None) if not jBHA: jBHA = eOtH.get('lastname', None) CBIr = mv1M(username=eOtH.get('username', None), firstname=fcCO, l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def algI(YKHO):\n yX69 = widx.JWT_PAYLOAD_HANDLER\n rJp2 = widx.JWT_ENCODE_HANDLER\n CBIr = mv1M.objects.create_user(username='user', email='user@foo.com', password='pass')\n CBIr.is_active = True\n CBIr.save()\n pB3N = yX69(CBIr)\n eOtH = rJp2(pB3N)\n QTUw = gxEw('api-jwt-verify')\n Vt8...
[ "0.6973856", "0.6786607", "0.677072", "0.6723175", "0.66795605", "0.65607", "0.6547511", "0.6520391", "0.65185213", "0.65128833", "0.6494636", "0.64822495", "0.64601064", "0.64340943", "0.6431264", "0.64205337", "0.63975215", "0.63882875", "0.63792753", "0.63707316", "0.63637...
0.81328535
0
Assert that updating a user profile is working as expected.
def fk7V(cuiw, x0hE, DvJO): CBIr = mv1M.find_by_jwt_token(Yw5Q) if not CBIr: CBIr = mv1M.create_from_jwt_token(Yw5Q, 'PS12345') CBIr.user_profile = BFpK.create_from_json(SJBG, CBIr.id) SGll = CBIr.user_profile SGll.update_profile(C543) U1ai = SGll.json assert U1ai['paymentConfirm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DvDo(YKHO, mWFP, V_D6, xK1s):\n YKHO.client.login(username='member', password='password')\n geh0 = YKHO.client.post(gxEw('user-profile-update'), V_D6)\n if xK1s:\n YKHO.assertRedirects(geh0, gxEw('user-profile'))\n YKHO.user.refresh_from_db()\n if V_D6.get('email'):\n YKHO.assertEq...
[ "0.8526396", "0.8487245", "0.8417519", "0.8293986", "0.82871306", "0.8246469", "0.8246469", "0.8246469", "0.8217646", "0.82085603", "0.81836694", "0.8166115", "0.8160194", "0.8131994", "0.8125567", "0.81211907", "0.81194955", "0.8099803", "0.8069356", "0.801428", "0.7997565",...
0.78556156
29
The name of the Resource Group where the Stream Analytics Job should exist. Changing this forces a new resource to be created.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(Y...
[ "0.7456965", "0.7456965", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "0.7327737", "...
0.7446655
11