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
Update the graphics command stream to reflect appearance properties.
def QsQP(wOb_, k0lF): Rdvx = k0lF.get_graphics_state() if Rdvx.has_content(): wOb_.add(UCVK(CE9y)) wOb_.extend([iNpQ(*k0lF.stroke_color[:3]), DVU1(k0lF.stroke_width)]) if k0lF.fill is not None: wOb_.add(J4oI(*k0lF.fill[:3]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t7YG(YKHO):\n YKHO.draw()", "def VYoq(YKHO):\n YKHO.graphics.set(YKHO.lnp.read_graphics())", "def QdZT(YKHO):\n YKHO.redraw()\n YKHO._changed = False", "def QdZT(YKHO):\n YKHO.redraw()\n YKHO._changed = False", "def PhFm(YKHO):\n YKHO.draw(wait=False)\n JmFt(YKHO.values, color='...
[ "0.64846647", "0.63168716", "0.618399", "0.618399", "0.6150522", "0.6138483", "0.61381185", "0.61198586", "0.6044978", "0.60232055", "0.602067", "0.6009418", "0.59969217", "0.5952258", "0.5945161", "0.59364563", "0.5893696", "0.5881858", "0.5862772", "0.58571213", "0.5844122"...
0.5643241
40
Recharges battery to full for the robot
def Yd3j(YKHO): YKHO.battery = YKHO.full return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJkG(YKHO):\n YKHO.battery.charge_level = 100\n print('The vehicle is fully charged.')", "def WJkG(YKHO):\n YKHO.charge_level = 100\n print('The battery is fully charged.')", "def WJkG(YKHO):\n YKHO.charge_level = 100\n print('The battery is fully charged.')", "def sLxz(YKHO):\n YKHO...
[ "0.7847203", "0.78022724", "0.78022724", "0.7616893", "0.7258318", "0.7221551", "0.69768226", "0.68285954", "0.6589345", "0.6503826", "0.63644844", "0.62508595", "0.6239367", "0.6198437", "0.61726785", "0.6153093", "0.6151589", "0.6126337", "0.60840267", "0.60840267", "0.6004...
0.79994446
0
Makes the robot go one step back if it has energy and within its space and not colliding with any other obstacles
def mSsO(YKHO): if YKHO.row - 1 < 0: return False elif YKHO.battery == 0: return False elif YKHO.maze[YKHO.row - 1][YKHO.column] == False: return False else: YKHO.row -= 1 YKHO.battery -= 1 return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FiHK(YKHO):\n if YKHO.grounded == True:\n YKHO.vel.y = -13", "def Oz9h():\n if not p7QV(-134.76, -34.197):\n return\n hbl0(OzPk, 0)\n hbl0(tNJu, 0)\n icxl('Done')", "def YPaw(YKHO):\n oKyJ = [WKvO for WKvO in YKHO.model.space.get_neighbors(YKHO.pos, YKHO.vision + 20, False) ...
[ "0.70162576", "0.69764", "0.67612404", "0.66625553", "0.66102785", "0.65981543", "0.6487013", "0.6462569", "0.64322984", "0.64102584", "0.6403422", "0.6362306", "0.63522005", "0.6349368", "0.6318689", "0.62797546", "0.6268162", "0.62617797", "0.62586004", "0.6228403", "0.6219...
0.5993737
49
Makes the robot go one step left if it has energy and within its space and not colliding with any other obstacles
def lJA4(YKHO): if YKHO.column - 1 < 0: return False elif YKHO.battery == 0: return False elif YKHO.maze[YKHO.row][YKHO.column - 1] == False: return False else: YKHO.column -= 1 YKHO.battery -= 1 return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tiI0(YKHO):\n YKHO.roomba.TurnInPlace(DhWQ.VELOCITY_SLOW, 'ccw')\n ITS7.sleep(0.5)\n YKHO.roomba.Stop()", "def gQzB(YKHO):\n YKHO.roomba.TurnInPlace(DhWQ.VELOCITY_SLOW, 'cw')\n ITS7.sleep(0.5)\n YKHO.roomba.Stop()", "def LFlW(YKHO, xqoZ):\n global estop_flag, move_state\n if xqoZ:\n...
[ "0.7208208", "0.67593354", "0.6679505", "0.6585803", "0.64608604", "0.6458323", "0.64380366", "0.6418375", "0.63597184", "0.6354614", "0.629254", "0.6289452", "0.62779933", "0.62175804", "0.6214254", "0.6190879", "0.6180187", "0.617891", "0.612305", "0.6115944", "0.61070704",...
0.6218113
13
Evaluate detection proposal recall metrics.
def ZMcj(YKHO, Qlpt=None, Nhxk=None, f0tD='all', qoqK=None): ILBk = {'all': 0, 'small': 1, 'medium': 2, 'large': 3, '96-128': 4, '128-256': 5, '256-512': 6, '512-inf': 7} VJEO = [[0 ** 2, 100000.0 ** 2], [0 ** 2, 32 ** 2], [32 ** 2, 96 ** 2], [96 ** 2, 100000.0 ** 2], [96 ** 2, 128 ** 2], [128 ** 2, 256 ** 2], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(YKHO):\n YKHO.overall_recall = Uw2c(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_recall = Uw2c(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def AOzf(o3Uj, yLaY):\n return RXOj(o3Uj, yLaY)[1]", "def RS5M(aCCz, i9Bc):\...
[ "0.6943433", "0.688604", "0.66618407", "0.6595394", "0.658823", "0.6544603", "0.6522268", "0.6518944", "0.6463584", "0.6451868", "0.6446809", "0.6428194", "0.63338727", "0.63338727", "0.63338727", "0.63338727", "0.63338727", "0.63338727", "0.63317436", "0.6320232", "0.6318102...
0.0
-1
loads data from a file as a pd.DataFrame
def aBOe(Ux0P, TDw3): return rLdf.read_csv(Ux0P, sep=TDw3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eyt6(YKHO, qaEx: str) -> rLdf.DataFrame:\n return rLdf.read_csv(qaEx, sep='\\t')", "def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z", "def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z", "def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z", "def tyeH(YKH...
[ "0.82033116", "0.78748757", "0.78748757", "0.78748757", "0.7846813", "0.7663916", "0.7602644", "0.7587255", "0.75712645", "0.75670075", "0.75539184", "0.7529963", "0.750034", "0.74925834", "0.7474127", "0.7466889", "0.74624103", "0.7455554", "0.7449472", "0.74216306", "0.7408...
0.68976283
65
Sample from normal distribution.
def mvm2(YKHO, ROpF=None): if ROpF is None: ROpF = ZylS.shape(YKHO.mean) return ZylS.random.normal(ROpF) * ZylS.exp(YKHO.logstd) + YKHO.mean
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def goqB(yGTL, WTkW):\n return yGTL + WTkW * ht2j.randn_like(WTkW)", "def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (None, YKHO.latent_dim))", "def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (None, YKHO.latent_dim))", "def d39J(YKHO, qIxc):\n y906,...
[ "0.80387986", "0.7802694", "0.7802694", "0.7802694", "0.7802694", "0.7802694", "0.76857334", "0.7489225", "0.74875015", "0.7405976", "0.73989594", "0.7342455", "0.72987044", "0.72549987", "0.7231568", "0.6873994", "0.68688905", "0.6845441", "0.68117917", "0.67624605", "0.6732...
0.0
-1
A goal relating conjugate priors and their posterior forms. This goal unifies `y` with a tupleform expression for a dictionary specifying the graph's node replacements. Those replacements map prior random variable terms to their posteriors forms. All other terms depending on those terms essentially become posterior pre...
def nHWl(WKvO, LVAh): epBp = SRYB() geGr = ((Ni86, WKvO, epBp),) geGr += ((mdNX,) + OH_t,) geGr += ((cIT_, LVAh, (dict, [(WKvO, (ZYEE.observed, KxaQ, None)), (zhSU, epBp)])),) Ylbp = (mdNX, geGr) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KRlV(LVAh: torch.Tensor) -> ht2j.Tensor:\n PGvz, KCHu = rrUJ(LVAh)\n PGvz = ht2j.clamp(PGvz, min=CzNp[LVAh.dtype])\n N64H = KCHu @ ht2j.diag_embed(PGvz) @ KCHu.transpose(-1, -2)\n wWbQ = ht2j.all(PGvz > CzNp[LVAh.dtype], dim=-1, keepdim=True)\n ZHfW = wWbQ.unsqueeze(-1).expand_as(LVAh)\n retu...
[ "0.53076863", "0.5298841", "0.4953584", "0.4914561", "0.488892", "0.48730046", "0.48607993", "0.48525727", "0.48283637", "0.47539243", "0.4723074", "0.47104508", "0.4687376", "0.467654", "0.46292725", "0.46288237", "0.46280265", "0.46132", "0.46028486", "0.45882532", "0.45548...
0.6759026
0
Raw data like received from the hub.
def WPdU(YKHO): return YKHO._raw_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m6Me(YKHO):\n return YKHO.data", "def nPrm(YKHO) -> lsD8:\n return YKHO.__data", "def SwtT(YKHO):\n return YKHO.__data", "def WPdU(YKHO):\n return YKHO._buf[YKHO.data_offset():YKHO.data_offset() + YKHO.size()]", "def LUcQ(YKHO) -> str:\n return YKHO._data", "def WPdU(YKHO) -> str:\n ...
[ "0.78114355", "0.7800073", "0.77128446", "0.75956637", "0.746117", "0.7311341", "0.7311341", "0.7217426", "0.72078747", "0.7164414", "0.6922001", "0.68944204", "0.6813137", "0.6813137", "0.6813137", "0.67874646", "0.67874646", "0.67874646", "0.67874646", "0.67874646", "0.6787...
0.78098595
2
Computes relatedness ratio as detailed in the paper for the augmented algorithm.
def SZwi(g2F3, HXmc): tOoy = 0 r1um = 0 for S_hf in g2F3.sentences: for zWbv in HXmc.sentences: if eHkp(S_hf[2], zWbv[2]) == 0: tOoy = tOoy + 1 if S_hf[3] == zWbv[3]: r1um = r1um + 1 if tOoy == 0: return 0 else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GZVk(YKHO):\n if YKHO.het_1 * YKHO.het_2:\n return (YKHO.het_1_2 - 2 * YKHO.n_ibs0) * 2 / epAf.sqrt(YKHO.het_1 * YKHO.het_2)\n else:\n return 0.0", "def btS6(aden):\n dwOo = 0.0\n l25F = aden.get_edgelist()\n for YRbF in WhY1.permutations(range(aden.vcount()), 2):\n if YRb...
[ "0.7314351", "0.68028414", "0.6266785", "0.62531847", "0.62329304", "0.61807775", "0.605229", "0.6033515", "0.59394604", "0.58587176", "0.5846746", "0.581486", "0.5774218", "0.57668847", "0.5737077", "0.5727987", "0.57221746", "0.57221746", "0.57221746", "0.57221746", "0.5722...
0.5878658
9
Close the pooled connection.
def DDI8(YKHO): if YKHO._con is not None: YKHO._pool.returnConnection(YKHO._con) YKHO._con = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HuIG(YKHO):\n MAqI.__pool__.pop(YKHO.id)\n YKHO.connected = False", "def DDI8(YKHO):\n YKHO.conn.close()\n gigf.collect()", "def DDI8(YKHO):\n with YKHO.connlock:\n YKHO.conn.do_close()", "def ngVb(YKHO):\n YKHO.session.close()", "def ngVb(YKHO):\n YKHO.session.close()", "...
[ "0.7492703", "0.7404888", "0.7334038", "0.7268132", "0.7226714", "0.7206993", "0.71130574", "0.7104948", "0.7100774", "0.7083736", "0.70691955", "0.7068247", "0.7068247", "0.7068247", "0.7064333", "0.706051", "0.7045232", "0.7045066", "0.7031671", "0.7028513", "0.70266503", ...
0.77698314
0
Returns the repl of the object
def wHJl(YKHO): return f"Color('{YKHO.color}')"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RqeO(YKHO):\n raise NotImplementedError", "def wHJl(YKHO):\n sWfS = ''\n sWfS += str(YKHO.literal) + '\\n'\n sWfS += str(YKHO.bindings) + '\\n'\n sWfS += str(YKHO.facts) + '\\n'\n return sWfS", "def IAm3(Iup5):\n return repr(Iup5)", "def wHJl(YKHO) -> str:\n return YKHO.current_ob...
[ "0.7053237", "0.6670055", "0.63939816", "0.62073827", "0.61711717", "0.608401", "0.6063401", "0.5965866", "0.5965866", "0.5965866", "0.59549594", "0.5933642", "0.5890286", "0.587594", "0.587594", "0.587594", "0.587594", "0.587594", "0.587594", "0.587594", "0.587594", "0.587...
0.0
-1
Verifies that operations fail on expired/missing claims. Methods should raise an exception when the claim doesn't exists and/or has expired.
def wzJf(YKHO): qtWj = '000000000000000000000000' YKHO.assertRaises(S8SU.exceptions.ClaimDoesNotExist, YKHO.controller.get, YKHO.queue_name, qtWj, project=YKHO.project) BvDG, yEHD = YKHO.controller.create(YKHO.queue_name, {'ttl': 1, 'grace': 0}, project=YKHO.project) ITS7.sleep(1) YKHO.assertRaises(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bouf(YKHO, RZVq):\n if not YKHO.assertion_validator.validate_required(RZVq, YKHO._required_claims):\n RKD7.debug('Missing required claims. %s', RZVq)\n raise UAju.MissingRequiredClaimError(description='One or more required claims contained null value')\n if not YKHO.assertion_validator.vali...
[ "0.6694668", "0.6213893", "0.6140498", "0.60564893", "0.60551244", "0.5883677", "0.5877712", "0.58623165", "0.57845736", "0.5756104", "0.57401115", "0.5739251", "0.5720034", "0.5718771", "0.57158107", "0.57065064", "0.5696911", "0.5623538", "0.5617701", "0.56163347", "0.56085...
0.7136603
0
Set up switches for Cozytouch component. Switches are based same device class as heater in Cozytouch.
async def async_setup_entry(ajET, PhL6, QEEk): eCGt = ajET.data[Sugg][PhL6.unique_id] MMe4 = [] for QRgN in eCGt.heaters: MMe4.append(DkKW(QRgN)) QEEk(MMe4, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bepj(YKHO):\n for UfTy in YKHO.topo.get_p4switches():\n LV6D = YKHO.topo.get_thrift_port(UfTy)\n YKHO.controllers[UfTy] = yJjT(LV6D)", "def AbqV(ajET, GPtr, deL4, tR5e=None):\n mWFP = GPtr.get(BiEj)\n Pp4r = GPtr.get(POer)\n yQ5t = GPtr.get(OK13)\n deL4([BF0S(Pp4r, yQ5t, mWFP)])"...
[ "0.65123296", "0.63555175", "0.6256502", "0.6229577", "0.6218826", "0.6209023", "0.6204552", "0.6198191", "0.6165805", "0.60969234", "0.6045364", "0.60374457", "0.60279906", "0.6019495", "0.59347916", "0.5932955", "0.59136355", "0.58143383", "0.57802683", "0.57626027", "0.575...
0.5691208
28
Return the unique id of this switch.
def ShR8(YKHO): return YKHO.heater.id + '_switch'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO) -> str:\n return f'{YKHO._inst.lower()}-{YKHO._sid_data['sid']}_switch-{YKHO._data[YKHO._sid_data['sid_ref']]}'", "def ShR8(YKHO):\n return f'{YKHO._mac_address}:{YKHO._device_id}:{YKHO._zone_id}:switch'", "def ShR8(YKHO) -> str:\n return f'{YKHO._inst.lower()}-enable_switch-{YKHO._data...
[ "0.87085086", "0.84749526", "0.82009625", "0.80656266", "0.78457135", "0.7814984", "0.774047", "0.774047", "0.774047", "0.774047", "0.77301353", "0.77301353", "0.7700664", "0.7664124", "0.7664124", "0.7664124", "0.7664124", "0.7664124", "0.7664124", "0.7664124", "0.7664124", ...
0.8852805
0
Return the display name of this switch.
def mWFP(YKHO): return YKHO.heater.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y0hN(YKHO):\n return YKHO.display_name", "def y0hN(YKHO):\n return YKHO._display_name", "def y0hN(YKHO):\n return HYW6(YKHO._display_name)", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKH...
[ "0.83004475", "0.82291013", "0.82227296", "0.8164862", "0.8164862", "0.8164862", "0.8164862", "0.8164862", "0.8164862", "0.8164862", "0.8164862", "0.8164862", "0.8164862", "0.8164862", "0.8164862", "0.81415564", "0.80937237", "0.8086217", "0.8086217", "0.8086217", "0.8086217"...
0.0
-1
Return the device class.
def rM2U(YKHO): return 'heat'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def...
[ "0.91731", "0.916097", "0.916097", "0.916097", "0.916097", "0.916097", "0.90751135", "0.9070435", "0.90700305", "0.9045384", "0.9005979", "0.9005979", "0.9005979", "0.8895049", "0.88414824", "0.88414824", "0.88129085", "0.874694", "0.87423843", "0.87423843", "0.87018865", "...
0.7379799
54
Test updating an existing row.
def IsIF(YKHO): jkyf = WA2K('myreport', YKHO.manifest_id) wdyG = jkyf._get_db_obj_query() YKHO.assertEqual(wdyG.first().report_name, 'myreport') jkyf.update(cursor_position=33, last_completed_datetime=wvEv.parse('2011-1-1 11:11:11'), last_started_datetime=wvEv.parse('2022-2-2 22:22:22'), etag='myetag') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mmy9(YKHO):\n pass", "def IsIF(YKHO, jSYO, aEqx, NCls):\n CBIr = l0Pu(username='foo', email='foo@bar.com')\n CBIr.save()\n CBIr.update(commit=jSYO, username='bar')\n nhnb = NCls.session.execute('select * from testusers').fetchone()\n assert nhnb.username == aEqx", "def Tbie(YKHO):\n pa...
[ "0.80022866", "0.74984866", "0.7450605", "0.74160373", "0.72862136", "0.72231627", "0.72231627", "0.72231627", "0.71945214", "0.7020677", "0.6884862", "0.68618435", "0.68162286", "0.6805633", "0.6748307", "0.67288584", "0.67162484", "0.66855335", "0.6659906", "0.664967", "0.6...
0.0
-1
Converts the name into a safe name on Android.
def cxaQ(mWFP): return ZbWC.sub('\\s+', ' ', ZbWC.sub('[!/\\\\:<>"\\?\\*\\|]', '', mWFP)).strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hmue(mWFP: str) -> str:\n return zRaN('\\\\-|\\\\.|:', '', mWFP.replace(' ', '_'))", "def uD9m(Emd4, mWFP):\n return ' '.join(mWFP.lower().strip().split())", "def uD9m(Emd4, mWFP):\n return ' '.join(mWFP.lower().strip().split())", "def uD9m(Emd4, mWFP):\n return ' '.join(mWFP.lower().strip()....
[ "0.6718424", "0.6585809", "0.6585809", "0.6585809", "0.65619147", "0.654992", "0.6507024", "0.6464951", "0.6418022", "0.64071774", "0.63311315", "0.6322542", "0.62818384", "0.6256119", "0.62448776", "0.6242813", "0.62094414", "0.6195388", "0.61888885", "0.6183957", "0.613894"...
0.0
-1
The path to the bundle for the app in the output format. The bundle is the templategenerated source form of the app. The path will usually be a directory, the existence of which is indicative that the template has been rolled out for an app. This overrides the default behavior, using a "safe" formal name
def vY66(YKHO, P4t4): return YKHO.platform_path / YKHO.output_format / cxaQ(P4t4.formal_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4Jl(YKHO):\n vY66 = Hy7s.path.join(YKHO.working_dir, n_4G)\n return YKHO.config['app'].get('bundle', vY66)", "def e3ry():\n if vPBo.bundle_file is None:\n return None\n else:\n return Hy7s.path.expanduser(vPBo.bundle_file)", "def qqaY(YKHO) -> qe4Y.Output[h8nf[str]]:\n return ...
[ "0.74816334", "0.70072097", "0.6831255", "0.65515965", "0.65515965", "0.6485309", "0.62016255", "0.6141556", "0.60853475", "0.6048171", "0.603771", "0.60202736", "0.5977583", "0.59425217", "0.5933437", "0.5876704", "0.5876704", "0.58758", "0.58705336", "0.58670247", "0.585420...
0.833258
0
String representation for debugging.
def wHJl(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zKH4(YKHO):\n raise NotImplementedError", "def str(YKHO):\n yvT9 = '{0}:'.format(YKHO.gtype) if YKHO.gtype else ''\n yvT9 += '{0}'.format(repr(YKHO.coords))\n yvT9 += '[{0}]'.format(str(YKHO.goalPtr)) if YKHO.goalPtr else ''\n return yvT9", "def zAg0(YKHO):\n IEwk = '%s ::=' % str(YKHO.he...
[ "0.8545374", "0.8019418", "0.79999775", "0.7790358", "0.7776434", "0.770187", "0.76717454", "0.7651955", "0.75883985", "0.75883985", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0....
0.0
-1
Test for GULP 'badly_conditioned_spline' error encountered when writing Basak potential
def jl7y(TBXe): X1Oo = u'single\n\ncell\n5.468 5.468 5.468 90.0 90.0 90.0\n\nfrac\nU 0 0 0\nU 1/2 1/2 0\nU 1/2 0 1/2\nU 0 1/2 1/2\n\nO 1/4 1/4 1/4\nO 1/4 3/4 1/4\nO 3/4 3/4 1/4\nO 3/4 1/4 1/4\n\nO 1/4 1/4 3/4\nO 1/4 3/4 3/4\nO 3/4 3/4 3/4\nO 3/4 1/4 3/4\n\n\nspecies\nU 2.4\nO -1.2\n\ninclude potentials.lib' wit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OvBs() -> None:\n with trZe.raises(ValueError):\n xqU7(oyIN.array([]))", "def KxNn():\n try:\n B6eg = Inv7.get_spiral_slice()\n except SyntaxError:\n assert True\n else:\n assert False", "def Fmkc():\n b7La(oyIN.array([0, -1, -0.02, 1, 1, -0.1, -0, -12]))", "def...
[ "0.62505066", "0.6221024", "0.61017287", "0.60776955", "0.6071846", "0.60522187", "0.6028767", "0.59276116", "0.5904576", "0.58011734", "0.5792597", "0.5716259", "0.5684793", "0.567701", "0.5640711", "0.5633147", "0.5614474", "0.5607474", "0.55917287", "0.5569866", "0.5555658...
0.73258084
0
Add Vertex to graph
def ohmD(YKHO, UXqs=None, C9U5=None, OPcR=None): if OPcR is None: _ins = False while not _ins: PI0b = YKHO.get_next_id() if PI0b not in YKHO.vertices: OPcR = PI0b _ins = True elif OPcR in YKHO.vertices: raise Exception('Vertex with ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n raise NotImplementedError", "def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)\n YKHO.vertex_edge[SLBp] = []", "def ohmD(YKHO, oqUi):\n pass", "def ohmD(YKHO, SLBp):\n if SLBp not in YKHO.__graph_dict:\n YKHO.__graph_dict[SLBp] = []", "def ohmD(YKHO, SLBp):\n ...
[ "0.84831476", "0.8374248", "0.8256224", "0.82480884", "0.82480884", "0.8217305", "0.82042694", "0.8159382", "0.815056", "0.81291944", "0.80719405", "0.8069006", "0.80379397", "0.80282456", "0.8014925", "0.8013942", "0.7999782", "0.7998408", "0.79315525", "0.79189837", "0.7828...
0.724511
56
Add edge to graph
def rz7z(YKHO, OPcR=None, A5Ua=None, bHMc=None, UXqs=None, C9U5=None): if OPcR is None: _ins = False while not _ins: PI0b = YKHO.get_next_id() if PI0b not in YKHO.edges: OPcR = PI0b _ins = True elif OPcR in YKHO.edges: raise Excepti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, D70y):\n if YKHO.has_edge(D70y) == 0:\n YKHO.__graph_dict[D70y[0]].append(D70y[1])", "def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKHO.edges and e1vZ in YKHO.edges):\n raise ValueError('Node not in graph')\n YKHO.e...
[ "0.84528124", "0.8388235", "0.8271909", "0.8251631", "0.823839", "0.81696016", "0.81525034", "0.8130112", "0.81174165", "0.8095377", "0.80940336", "0.80918396", "0.80908763", "0.80584824", "0.80436015", "0.8036798", "0.802385", "0.8018984", "0.7985269", "0.79833496", "0.79631...
0.0
-1
Return the bitmap filename.
def XcwY(YKHO): return YKHO._filename
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fDSH(YKHO):\n q24Q = YKHO.contents_data[bf2t]\n if not q24Q:\n return None\n return 'portrait_' + q24Q + '.bmp'", "def parx(YKHO, Ux0P):\n pmON = 'images/{folder}/{filename}'.format(folder=YKHO.folder, filename=Ux0P)\n return pmON", "def yFjF(gV46):\n return '%s.svg' % gV46", "de...
[ "0.7694652", "0.71375257", "0.71177137", "0.71148324", "0.70119977", "0.69819796", "0.6928454", "0.68453723", "0.6795147", "0.6772218", "0.6764465", "0.67536247", "0.67435664", "0.6724111", "0.6709293", "0.669675", "0.6671853", "0.66673887", "0.6662574", "0.6662024", "0.66606...
0.0
-1
Assume that n1, n2 are positive integers Returns a tuple containing smallest common divisor > 1 and largest common divisor of n1 and n2. If no common divisor, returns (None, None)
def cydB(MxXY, cWFu): qzD7, Hqoa = (None, None) for YRbF in range(2, min(MxXY, cWFu) + 1): if MxXY % YRbF == 0 and cWFu % YRbF == 0: if qzD7 == None: qzD7 = YRbF Hqoa = YRbF return (qzD7, Hqoa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NGW5(MxXY, cWFu):\n qzD7, Hqoa = (None, None)\n for YRbF in range(2, min(MxXY, cWFu) + 1):\n if MxXY % YRbF == 0 and cWFu % YRbF == 0:\n if qzD7 == None:\n qzD7 = YRbF\n Hqoa = YRbF\n return (qzD7, Hqoa)", "def bdCO(MxXY, cWFu):\n oCcr = ()\n for YRb...
[ "0.7895104", "0.7590045", "0.7551443", "0.7527995", "0.75163907", "0.7449581", "0.73202807", "0.7145385", "0.71237224", "0.71205586", "0.7119193", "0.70423496", "0.7010799", "0.69791824", "0.6941742", "0.69291675", "0.68756026", "0.68261284", "0.6815777", "0.68140095", "0.679...
0.78746074
1
Returns lagged subsequences of a given sequence, this allows the model to receive the input from the past targets outside the sliding windows. This implementation is similar to gluonTS's implementation the only difference is that we pad the sequence that is not long enough
def nWxG(aWuw: torch.Tensor, d0F3: int, ofec: Optional[List[int]]=None, ZHfW: Optional[torch.Tensor]=None) -> AzJI[ht2j.Tensor, h8nf[ht2j.Tensor]]: Ep8u = aWuw.shape[0] HhVR = aWuw.shape[2] if ZHfW is None: if ofec is None: qmLP.warn('Neither lag_mask or lags_seq is given, we simply retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NDrj(aWuw: torch.Tensor, d0F3: int, ofec: List[int]) -> ht2j.Tensor:\n NXmX = aWuw.shape[1]\n Ep8u = aWuw.shape[0]\n RDR0 = []\n for Kn6H in ofec:\n QjGR = -Kn6H - d0F3\n ixQc = -Kn6H if Kn6H > 0 else None\n if ixQc is not None and ixQc < -NXmX:\n RDR0.append(ht2j.ze...
[ "0.79449797", "0.7679756", "0.6363476", "0.62020797", "0.6181386", "0.6178807", "0.61282563", "0.60695344", "0.5976677", "0.59474504", "0.58481675", "0.5840416", "0.58296466", "0.5794847", "0.5771518", "0.5771236", "0.5756376", "0.5751138", "0.5749928", "0.57133156", "0.56910...
0.79312795
1
pad tensor to meet the required length
def Bh8h(YKHO, D0by: torch.Tensor, DB_8: int) -> ht2j.Tensor: qiip = D0by.shape ARUe = [qiip[0], DB_8 - qiip[1], qiip[-1]] D0by = ht2j.cat([D0by.new_zeros(ARUe), D0by], dim=1) return D0by
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(vhpA, mLGw=1):\n return ZylS.pad(vhpA, [[0, 0], [mLGw, mLGw], [mLGw, mLGw], [0, 0]], 'CONSTANT')", "def Bh8h(vhpA, u54L, B8hl=UGgM):\n DbzX = u54L - vhpA.shape[0]\n assert DbzX >= 0\n if DbzX == 0:\n return vhpA\n dvgN = vhpA.new(DbzX, *vhpA.shape[1:]).fill_(B8hl)\n return ht2j....
[ "0.7798389", "0.7697797", "0.76575756", "0.76342046", "0.7632129", "0.75900644", "0.7464474", "0.7281519", "0.72158617", "0.7154794", "0.7148223", "0.7127681", "0.70717615", "0.7066624", "0.70175695", "0.6992459", "0.69829285", "0.6937472", "0.6919333", "0.69174874", "0.68749...
0.77046025
1
Maps a screen space point into the "index" space of the plot. Implements the AbstractPlotRenderer interface.
def KddN(YKHO, tJrW): if YKHO.orientation == 'h': WKvO, LVAh = tJrW else: LVAh, WKvO = tJrW return qw7D((YKHO.index_mapper.map_data(WKvO), YKHO.value_mapper.map_data(LVAh)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzdx(_yGr, WKvO, LVAh):\n YRbF = LVAh * _yGr.info.width + WKvO\n return int(YRbF)", "def XPFD(YKHO, BHsk):\n return BHsk + 1 if BHsk + 1 > YKHO.dimensions - 1 else 0", "def jp_7(WKvO, LVAh):\n d6pt = LVAh * ZLJ_ + WKvO\n return d6pt", "def Vn7Z(YKHO, AU8u, iagN):\n return (AU8u[1] / iag...
[ "0.61124253", "0.5953397", "0.57309145", "0.5716991", "0.56515443", "0.5559498", "0.55279315", "0.55175054", "0.5507188", "0.5507188", "0.55001485", "0.5494117", "0.54517835", "0.5424788", "0.53762674", "0.5370705", "0.5368631", "0.5345835", "0.5341659", "0.5336567", "0.53296...
0.59073997
2
Return a valid Elasticsearch client object
def bxbw(): x0hE = wxaU(host=EHMP, port=b60J, timeout=300) for bGrB in range(100): ITS7.sleep(0.1) try: x0hE.cluster.health(wait_for_status='yellow') return x0hE except ConnectionError: continue else: raise G8rZ('Elasticsearch failed to sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RIsT(Fv2L):\n return kZJV(Fv2L)", "def FiTT(YKHO):\n from elasticsearch._async.client import AsyncElasticsearch\n luU0 = YKHO._username is not None and YKHO._password is not None\n ZMzz = a9qP()\n if luU0:\n Jpbe = (YKHO._username, YKHO._password)\n return AsyncElasticsearch([YKH...
[ "0.80958706", "0.73511314", "0.72903967", "0.6976422", "0.68609506", "0.6821079", "0.67806816", "0.6768928", "0.67556524", "0.6750968", "0.6635067", "0.6613933", "0.6481584", "0.64225805", "0.63645875", "0.6296709", "0.6282455", "0.62577593", "0.62560034", "0.6253603", "0.625...
0.7351269
1
Test that a Wigner object can be successfully reconstructed from its repr() output with no loss of information.
def H4zp(YKHO): _63S = {} exec('tunneling = {0!r}'.format(YKHO.tunneling), globals(), _63S) YKHO.assertIn('tunneling', _63S) ohQ4 = _63S['tunneling'] YKHO.assertAlmostEqual(YKHO.tunneling.frequency.value, ohQ4.frequency.value, 2) YKHO.assertEqual(YKHO.tunneling.frequency.units, ohQ4.frequency.un...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H4zp(YKHO):\n Vo9x = yp3N()\n repr(Vo9x)", "def H4zp(YKHO, Mkmy, sWfS):\n assert repr(Mkmy) == sWfS", "def H4zp(YKHO):\n YKHO.assertTrue(repr(YKHO.obj1))\n YKHO.assertTrue(repr(YKHO.obj2))\n YKHO.assertTrue(repr(YKHO.obj3))\n YKHO.assertTrue(repr(YKHO.obj4))\n YKHO.assertTrue(repr(Y...
[ "0.74062407", "0.71504724", "0.7120728", "0.7020727", "0.701199", "0.69874465", "0.6890161", "0.68644017", "0.68616515", "0.6854533", "0.6844324", "0.680833", "0.679797", "0.67277485", "0.67127997", "0.66974735", "0.6632023", "0.6618176", "0.66134274", "0.66116977", "0.658434...
0.6105705
51
Test that an Eckart object can be successfully reconstructed from its repr() output with no loss of information.
def H4zp(YKHO): _63S = {} exec('tunneling = {0!r}'.format(YKHO.tunneling), globals(), _63S) YKHO.assertIn('tunneling', _63S) ohQ4 = _63S['tunneling'] YKHO.assertAlmostEqual(YKHO.tunneling.frequency.value, ohQ4.frequency.value, 2) YKHO.assertEqual(YKHO.tunneling.frequency.units, ohQ4.frequency.un...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H4zp():\n Z9rn = Lr0q(4)\n assert Z9rn.__repr__() == 'Circle(4)'", "def H4zp(YKHO):\n Vo9x = yp3N()\n repr(Vo9x)", "def H4zp(YKHO):\n YKHO.assertTrue(repr(YKHO.obj1))\n YKHO.assertTrue(repr(YKHO.obj2))\n YKHO.assertTrue(repr(YKHO.obj3))\n YKHO.assertTrue(repr(YKHO.obj4))\n YKHO.a...
[ "0.7420796", "0.7355144", "0.7324702", "0.72870576", "0.72741735", "0.7206706", "0.718442", "0.7026614", "0.70026714", "0.69436586", "0.6884402", "0.6757946", "0.6755908", "0.67521465", "0.67182326", "0.6702292", "0.6698909", "0.66903406", "0.66657907", "0.64848197", "0.64756...
0.58488035
75
Generates a random token with a length that is > 8 and < 32.
def LQMb(): u54L = tuKI.randint(8, 32) KdNR = ''.join((tuKI.choice(vIwR.printable) for YRbF in range(u54L))) return f'{KdNR}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQMb():\n reS5 = tuKI.randint(BQak, Js0E)\n eOtH = ''.join((tuKI.choice(JF06) for bGrB in range(reS5)))\n return eOtH", "def LQUb(u54L=30, gLiZ=uAXd):\n ADdS = tuKI.SystemRandom()\n return ''.join((ADdS.choice(gLiZ) for WKvO in range(u54L)))", "def LQUb(u54L=30, gLiZ=uAXd):\n ADdS = tuKI....
[ "0.8160557", "0.81090844", "0.81090844", "0.80169296", "0.7991109", "0.7943382", "0.78063107", "0.74373037", "0.7372431", "0.7357069", "0.722048", "0.71543074", "0.70842046", "0.7074404", "0.6992788", "0.6985047", "0.691498", "0.6879978", "0.683083", "0.67666435", "0.67290694...
0.8017513
3
Add a new experience to memory.
def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins): tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins) YKHO.memory.append(tTpl) if _ins and YKHO.episode % 50 == 0 and (YKHO.episode > 50): YKHO.episode += 1 YKHO.remove_bad_experience() elif _ins: YKHO.episode += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, GsKL):\n YK...
[ "0.79575163", "0.7904917", "0.7880746", "0.7578514", "0.75727165", "0.7448136", "0.7361892", "0.7218082", "0.71984065", "0.71984065", "0.71984065", "0.71984065", "0.71984065", "0.71984065", "0.71984065", "0.71984065", "0.71984065", "0.71984065", "0.71984065", "0.7146643", "0....
0.72705156
7
Return the current average reward of internal memory.
def S8vG(YKHO): wjRY = 0 for a1PO in YKHO.memory: wjRY += a1PO.reward return wjRY / YKHO.__len__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xyVK(YKHO):\n IvsU = 0.0\n for BWXx in YKHO.Q.itervalues():\n IvsU = IvsU + BWXx\n return IvsU", "def xyVK(YKHO):\n IvsU = 0.0\n for BWXx in YKHO.Q.itervalues():\n IvsU = IvsU + BWXx\n return IvsU", "def czp8(YKHO):\n Kt_s = len(YKHO)\n return oyIN.sum(YKHO.rewards / K...
[ "0.77477986", "0.77477986", "0.76918787", "0.76674396", "0.74763596", "0.74763596", "0.74763596", "0.72849846", "0.7250452", "0.7010016", "0.6913787", "0.6913787", "0.6909059", "0.6890584", "0.6829755", "0.68206453", "0.6819818", "0.6798162", "0.6766177", "0.6750567", "0.6725...
0.8633403
0
Return the current size of internal memory.
def szAg(YKHO): return len(YKHO.memory)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8e4(YKHO) -> int:\n return len(YKHO.mem)", "def R8e4(YKHO):\n return YKHO.bf.memory()", "def ZGo4(YKHO):\n return YKHO.xlist('get-memsize')[1][0] * 1024", "def zNig(YKHO):\n zNig = 0\n zNig += YKHO.data.size * HwRy.getsizeof(YKHO.data)\n return zNig / 1024.0 / 1024.0 / 1024.0", "def ...
[ "0.8571074", "0.8215767", "0.8198132", "0.80832005", "0.8020808", "0.7889389", "0.78188926", "0.7797308", "0.778622", "0.775998", "0.77557904", "0.7751391", "0.7751391", "0.7750454", "0.77327937", "0.77303255", "0.7716953", "0.77102315", "0.770489", "0.77028936", "0.7694357",...
0.7512535
60
Returns a boolean value representing if int n is a prime number. Recursive implementation.
def T1qg(exwG): if exwG == 1: return True def XWzv(di96): if di96 == 1: return True elif exwG % di96 == 0: return False else: return XWzv(di96 - 1) return XWzv(exwG // 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG: int) -> bool:\n if exwG > 1:\n for YRbF in range(2, int(exwG / 2) + 1):\n if exwG % YRbF == 0:\n return False\n else:\n return True\n else:\n return...
[ "0.87610006", "0.8757511", "0.8605975", "0.85548127", "0.8515093", "0.84381217", "0.8408406", "0.83987904", "0.8398676", "0.83806413", "0.83526146", "0.8344468", "0.83412135", "0.8332709", "0.83325803", "0.83299595", "0.8321076", "0.83180386", "0.8310392", "0.8308565", "0.830...
0.8252106
33
Convert axisangle representation to rotation matrix.
def bA5s(q7In, yDqo=ht2j.float32): Gnjs = ht2j.norm(q7In + 1e-08, p=2, dim=1) YylR = ht2j.unsqueeze(Gnjs, -1) HBfW = ht2j.div(q7In, YylR) YylR = YylR * 0.5 HqlT = ht2j.cos(YylR) Lnqc = ht2j.sin(YylR) _Jov = ht2j.cat([HqlT, Lnqc * HBfW], dim=1) return YOLk(_Jov).float()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _eYH(jDK_):\n return KakW(GhxC(jDK_))", "def bULF(YylR, jDK_):\n CBO5 = D785(YylR)\n tw3e = OB3T(jDK_)\n ShHK = oyIN.linalg.inv(tw3e)\n return Pusg(oyIN.dot, [tw3e, CBO5, ShHK])", "def k4PZ(YylR: torch.Tensor) -> ht2j.Tensor:\n dUBp = XBKw(YylR)\n _Lrm: ht2j.Tensor = ht2j.cos(dUBp)\n ...
[ "0.7975021", "0.7776975", "0.7642057", "0.75718856", "0.7484483", "0.73852175", "0.7374227", "0.7331798", "0.7323808", "0.72060734", "0.7166385", "0.7143978", "0.71211976", "0.7071612", "0.70691985", "0.7067156", "0.7056157", "0.7056157", "0.7034615", "0.7027953", "0.7001234"...
0.0
-1
Convert quaternion coefficients to rotation matrix.
def YOLk(_Jov): dt8o = _Jov dt8o = dt8o / dt8o.norm(p=2, dim=1, keepdim=True) yzQ0, WKvO, LVAh, epBp = (dt8o[:, 0], dt8o[:, 1], dt8o[:, 2], dt8o[:, 3]) tjUW = _Jov.size(0) xMw6, ajwV, skBL, mPai = (yzQ0.pow(2), WKvO.pow(2), LVAh.pow(2), epBp.pow(2)) lnPd, V1sm, cIs9 = (yzQ0 * WKvO, yzQ0 * LVAh, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9zH(slpS):\n RyRt, jylo, SInE, D_A6 = slpS\n AyER, rAHv, gZUC, ux4C = oyIN.square(slpS)\n CkYf = rAHv + gZUC + ux4C + AyER\n bULF = oyIN.zeros((3, 3))\n bULF[0, 0] = (+rAHv - gZUC - ux4C + AyER) / CkYf\n bULF[1, 1] = (-rAHv + gZUC - ux4C + AyER) / CkYf\n bULF[2, 2] = (-rAHv - gZUC + ux4C ...
[ "0.7666401", "0.7480785", "0.74480975", "0.7431791", "0.7220662", "0.72003317", "0.7190068", "0.7073628", "0.6884496", "0.6882422", "0.6881994", "0.685318", "0.68479955", "0.68037885", "0.67919123", "0.677245", "0.6759796", "0.672846", "0.670579", "0.66775787", "0.6654148", ...
0.6941468
8
Convert 6D rotation representation to 3x3 rotation matrix. Based on Zhou et al., "On the Continuity of Rotation Representations in Neural Networks", CVPR 2019
def PAlI(WKvO): WKvO = WKvO.view(-1, 3, 2) XOOk = WKvO[:, :, 0] pHXX = WKvO[:, :, 1] kYGz = vuvg.normalize(XOOk) ftz7 = vuvg.normalize(pHXX - ht2j.einsum('bi,bi->b', kYGz, pHXX).unsqueeze(-1) * kYGz) _2fo = ht2j.cross(kYGz, ftz7) return ht2j.stack((kYGz, ftz7, _2fo), dim=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAlI(WKvO):\n WKvO = WKvO.view(-1, 3, 2)\n XOOk = WKvO[:, :, 0]\n pHXX = WKvO[:, :, 1]\n kYGz = vuvg.normalize(XOOk)\n ftz7 = vuvg.normalize(pHXX - ht2j.einsum('bi,bi->b', kYGz, pHXX).unsqueeze(-1) * kYGz)\n _2fo = ht2j.cross(kYGz, ftz7)\n return ht2j.stack((kYGz, ftz7, _2fo), dim=-1)", ...
[ "0.77543277", "0.77543277", "0.6994243", "0.6880496", "0.66545445", "0.6611445", "0.65356976", "0.6473208", "0.64339525", "0.63568383", "0.63190615", "0.6281378", "0.62577486", "0.6244173", "0.62424606", "0.6231454", "0.6197409", "0.61918074", "0.6186133", "0.6180842", "0.617...
0.7786343
0
Calculate absolute magnitude from apparent magnitude and distance in meters
def kpe2(Wjo_, Ayfi): ZgNs = Ayfi / (648000.0 * H_fc / oyIN.pi) ZnHf = Wjo_ - 5 * oyIN.log10(ZgNs) + 5 return ZnHf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMT5(YKHO):\n if not YKHO.has_target():\n raise AttributeError(\"No target defined, I can't get the distance\")\n return YKHO.mag - 5 * (oyIN.log10(YKHO.target.distmpc * 1000000.0) - 1)", "def ZnHf(YKHO):\n return YKHO._absolute_magnitude", "def YXbZ(YKHO):\n return PZyS(YKHO.dot(YKHO))"...
[ "0.75686187", "0.7425207", "0.721044", "0.71361697", "0.7103473", "0.70636183", "0.70636183", "0.7009219", "0.6989118", "0.6947378", "0.6882786", "0.6879637", "0.66928095", "0.664699", "0.66155505", "0.66040146", "0.6582494", "0.65506285", "0.65086395", "0.64651424", "0.64219...
0.76287776
0
Get the latest data from the sensor and update the state.
def QdZT(YKHO): YKHO.data_service.update() YKHO._state = YKHO.data_service.data[YKHO._json_key]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO):\n if YKHO._api is not None:\n 'Fetch the latest data'\n YKHO._api.get()\n 'set our sensor values'\n YKHO._current_temperature = YKHO._api._temperature\n YKHO._current_humidity = YKHO._api._humidity\n YKHO._target_temperature_high = YKHO._api._coolto\n ...
[ "0.7439651", "0.73668504", "0.73454905", "0.7332049", "0.73009586", "0.72067946", "0.7145198", "0.7052421", "0.70145845", "0.69574773", "0.69449365", "0.6904694", "0.68926984", "0.6854156", "0.67607087", "0.669671", "0.6642103", "0.6639291", "0.6602712", "0.6583256", "0.65775...
0.6523815
22
Return the state attributes.
def R1i3(YKHO): return YKHO._attributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def upgy(YKHO)...
[ "0.8953404", "0.8953404", "0.85239846", "0.8366765", "0.8366765", "0.8363429", "0.83362615", "0.8334551", "0.8310377", "0.8292682", "0.8289349", "0.8289349", "0.8273077", "0.82236886", "0.8223562", "0.8205066", "0.8184393", "0.81659013", "0.8102565", "0.8064994", "0.8064994",...
0.82871646
24
Return the state attributes.
def R1i3(YKHO): return YKHO._attributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def upgy(YKHO)...
[ "0.8953404", "0.8953404", "0.85239846", "0.8366765", "0.8366765", "0.8363429", "0.83362615", "0.8334551", "0.8310377", "0.8292682", "0.8289349", "0.8289349", "0.8273077", "0.82236886", "0.8223562", "0.8205066", "0.8184393", "0.81659013", "0.8102565", "0.8064994", "0.8064994",...
0.82871646
21
Initialize the power flow sensor.
def FIMM(YKHO, UeG4, yotB, sv64): super().__init__(UeG4, yotB, sv64) YKHO._json_key = lc9R[YKHO.sensor_key][0] YKHO._attributes = {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OM8D(YKHO):\n YKHO.flush()\n print('Initializing sensor...')\n try:\n YKHO.get_sample()\n print('Initialization successful')\n except:\n print('Initialization failed. Please disconnect and reconnect sensor.')", "def DbxN(YKHO):\n YKHO.reset()\n YKHO.__interface.send_com...
[ "0.6835123", "0.6644227", "0.66136813", "0.6346254", "0.6305805", "0.63017976", "0.62985486", "0.6256741", "0.62453306", "0.6230699", "0.6230349", "0.6223901", "0.62211394", "0.6200156", "0.6111567", "0.60943276", "0.6092511", "0.6074873", "0.6073007", "0.60725117", "0.604756...
0.0
-1
Return the state attributes.
def R1i3(YKHO): return YKHO._attributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def upgy(YKHO)...
[ "0.8953404", "0.8953404", "0.85239846", "0.8366765", "0.8366765", "0.8363429", "0.83362615", "0.8334551", "0.8310377", "0.8292682", "0.8289349", "0.8289349", "0.8273077", "0.82236886", "0.8223562", "0.8205066", "0.8184393", "0.81659013", "0.8102565", "0.8064994", "0.8064994",...
0.82871646
23
Initialize the power flow sensor.
def FIMM(YKHO, UeG4, yotB, sv64): super().__init__(UeG4, yotB, sv64) YKHO._json_key = lc9R[YKHO.sensor_key][0] YKHO._attributes = {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OM8D(YKHO):\n YKHO.flush()\n print('Initializing sensor...')\n try:\n YKHO.get_sample()\n print('Initialization successful')\n except:\n print('Initialization failed. Please disconnect and reconnect sensor.')", "def DbxN(YKHO):\n YKHO.reset()\n YKHO.__interface.send_com...
[ "0.68382084", "0.6644406", "0.66150683", "0.63486034", "0.6305984", "0.6303345", "0.6299833", "0.62570703", "0.62462556", "0.62320715", "0.6231465", "0.62231946", "0.62231505", "0.62011117", "0.61137176", "0.609516", "0.60939276", "0.60756874", "0.6074491", "0.6073898", "0.60...
0.0
-1
Return the state attributes.
def R1i3(YKHO): return YKHO._attributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def upgy(YKHO)...
[ "0.8953404", "0.8953404", "0.85239846", "0.8366765", "0.8366765", "0.8363429", "0.83362615", "0.8334551", "0.8310377", "0.8292682", "0.8289349", "0.8289349", "0.8273077", "0.82236886", "0.8223562", "0.8205066", "0.8184393", "0.81659013", "0.8102565", "0.8064994", "0.8064994",...
0.82871646
22
Return the device_class of the device.
def rM2U(YKHO): return OJnG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_type", "def ...
[ "0.8983246", "0.8983246", "0.8983246", "0.8983246", "0.8983246", "0.8932369", "0.8920512", "0.8858923", "0.8786422", "0.8713565", "0.86982346", "0.8605397", "0.8605397", "0.8605397", "0.85082746", "0.8476465", "0.8469167", "0.8462864", "0.8374014", "0.8368908", "0.8368908", ...
0.681239
58
Canny edge detector finds all edges in an image. The user is required to specify the type of edge they are looking for.
def frnQ(VXjJ, MHo5): mC4V = XC5k.Canny(VXjJ, 0, 0) XC5k.namedWindow('Edges') XC5k.createTrackbar('Min', 'Edges', 0, 1000, JXPP) XC5k.createTrackbar('Max', 'Edges', 0, 1000, JXPP) while 1: K5lX = XC5k.getTrackbarPos('Min', 'Edges') GdPO = XC5k.getTrackbarPos('Max', 'Edges') m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xD4o(UFp3):\n mC4V = XC5k.Canny(UFp3, 100, 200)\n return mC4V", "def u9sK(YpkZ, zeY_, WTkW=1, n80H=None):\n if zeY_ == 'fp':\n dvtG = JcYw(YpkZ)\n elif zeY_ == 'np':\n dvtG = YpkZ\n else:\n return (zeY_, \" is not a supported mode. Supported modes are 'np' or 'fp'.\")\n ...
[ "0.77783626", "0.7586976", "0.74616116", "0.73955643", "0.7351781", "0.7206633", "0.708626", "0.7039831", "0.6972133", "0.6937285", "0.6899475", "0.68814063", "0.6842917", "0.671484", "0.67116356", "0.67091995", "0.66940844", "0.66704136", "0.66427654", "0.66427654", "0.66427...
0.68802387
12
Depth images become an XYZ point cloud in the camera frame with shape (depth.shape[0], depth.shape[1], 3). Transform a depth image into a point cloud in the camera frame with one point for each pixel in the image, using the camera transform for a camera centred at cx, cy with field of view fx, fy.
def YMv9(rb7a, W6ch, yDqo=oyIN.float32): rb7a = oyIN.squeeze(rb7a) RM3a = oyIN.zeros(rb7a.shape + (3,)) RM3a = QzqK(rb7a, W6ch, RM3a) return RM3a.astype(yDqo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HIlp(gLVc, km87):\n [H2v2, TVTK] = gLVc.shape\n jHsn = oyIN.linspace(0, TVTK - 1, TVTK)\n pvd3 = oyIN.linspace(0, H2v2 - 1, H2v2)\n P6bq, Ty9i = oyIN.meshgrid(jHsn, pvd3)\n WKvO = (P6bq.flatten() - km87.ppx) / km87.fx\n LVAh = (Ty9i.flatten() - km87.ppy) / km87.fy\n epBp = gLVc.flatten() /...
[ "0.8036142", "0.8003891", "0.79804736", "0.7381889", "0.7209336", "0.7113369", "0.68866074", "0.6861274", "0.6516945", "0.6516718", "0.64231616", "0.6279732", "0.6198881", "0.61596596", "0.6120213", "0.6097662", "0.6064686", "0.60550714", "0.60342205", "0.5999688", "0.5988467...
0.7000817
6
Depth images become an XYZ point cloud in the camera frame with shape (depth.shape[0], depth.shape[1], 3). Transform a depth image into a point cloud in the camera frame with one point for each pixel in the image, using the camera transform for a camera centred at cx, cy with field of view fx, fy.
def KLti(rb7a, W6ch, yDqo=oyIN.float32): rb7a = oyIN.squeeze(rb7a) RM3a = oyIN.zeros(rb7a.shape + (3,)) AOlJ = W6ch[0, 0] stDt = W6ch[1, 1] JPqE = W6ch[2, 0] fXzF = W6ch[2, 1] OV1s = rb7a.shape[0] MEXo = rb7a.shape[1] RM3a = Hfub(rb7a, OV1s, MEXo, fXzF, JPqE, stDt, AOlJ, RM3a) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HIlp(gLVc, km87):\n [H2v2, TVTK] = gLVc.shape\n jHsn = oyIN.linspace(0, TVTK - 1, TVTK)\n pvd3 = oyIN.linspace(0, H2v2 - 1, H2v2)\n P6bq, Ty9i = oyIN.meshgrid(jHsn, pvd3)\n WKvO = (P6bq.flatten() - km87.ppx) / km87.fx\n LVAh = (Ty9i.flatten() - km87.ppy) / km87.fy\n epBp = gLVc.flatten() /...
[ "0.8035264", "0.8002948", "0.797926", "0.7380857", "0.7112001", "0.7000127", "0.68844193", "0.6859599", "0.65162104", "0.6515538", "0.6422377", "0.6278209", "0.6197755", "0.6159936", "0.6118683", "0.6097045", "0.60638094", "0.60526395", "0.60344243", "0.6000417", "0.5987926",...
0.720821
4
Return the value of the row for a given label.
def UnfG(YKHO, UXqs, WmM4=None): if isinstance(UXqs, exCv): UXqs = LRW1(UXqs) return YKHO._labelDict.get(UXqs, WmM4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LXG0(YKHO, rdlD):\n return rdlD['_source'][YKHO.name]", "def Zmkp(YKHO, WBPg, aFUE):\n return YKHO.data[aFUE, YKHO.header2col[WBPg]]", "def Zmkp(YKHO, rdlD, tcLV):\n return YKHO[rdlD][YKHO._columns[tcLV]]", "def UnfG(YKHO):\n return YKHO._row[YKHO.name]", "def eGJQ(YKHO, UXqs):\n l6nm = ...
[ "0.67791533", "0.67668504", "0.6715832", "0.66683626", "0.6667606", "0.63243765", "0.6252401", "0.6224381", "0.62243116", "0.6151942", "0.6125786", "0.60242116", "0.5992618", "0.59564614", "0.59358144", "0.59293705", "0.58953416", "0.5852173", "0.5823469", "0.5821814", "0.581...
0.62321234
7
Return another Row that have exactly the same values as self.
def i3ak(YKHO): rdlD = d3C6() rdlD.copyFromRow(YKHO) rdlD._objId = YKHO._objId return rdlD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return type(YKHO) == type(Elif) and YKHO.row == Elif.row and (YKHO.column == Elif.column)", "def tAcF(YKHO, Elif):\n if YKHO.rows == Elif.rows and YKHO.columns == Elif.columns:\n return True\n else:\n return False", "def LbTe(YKHO, Elif):\n jbXL = [Mkmy for Mkm...
[ "0.6690975", "0.63903445", "0.6352478", "0.6341118", "0.62653095", "0.6134587", "0.61291504", "0.60655725", "0.5995635", "0.5980327", "0.5960788", "0.59576494", "0.5945998", "0.59376633", "0.5886213", "0.5845687", "0.57799685", "0.5777784", "0.5698563", "0.5665502", "0.565079...
0.70134485
0
Apply attention over encoder outputs and decoder state.
def IVLu(YKHO, ZDDV: torch.Tensor, QTBn: Dict[str, torch.Tensor]) -> ht2j.Tensor: p83V = QTBn['encoder_outputs'] BDAO = QTBn['source_mask'] dIhC = QTBn['attention'] zHZm = QTBn['att_keys'] aklI = QTBn['att_values'] Tuqy = 'soft' if YKHO.training else 'hard' if isinstance(YKHO._attention, CVE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chsV(YKHO, vkAz, S2jh, SCc6):\n assert len(S2jh) == len(SCc6)\n zx2e = len(S2jh)\n PXBJ = []\n for YRbF in range(zx2e):\n QTBn = oyIN.concatenate([S2jh[YRbF]['h'], SCc6[YRbF]['h']])\n PXBJ.append(QTBn)\n ZYJu = oyIN.concatenate(PXBJ, 1)\n JrbE = oyIN.tile(vkAz['h'], (1, zx2e))\n...
[ "0.7470629", "0.72167873", "0.6937865", "0.685253", "0.68191606", "0.6761815", "0.6761237", "0.6684725", "0.6528291", "0.65015036", "0.6455645", "0.64354664", "0.64287335", "0.64080626", "0.64048934", "0.63962084", "0.63941085", "0.6372968", "0.6362276", "0.6345817", "0.63451...
0.67974275
5
Compute loss. Takes logits (unnormalized outputs from the decoder) of size (batch_size, num_decoding_steps, num_classes), target indices of size (batch_size, num_decoding_steps+1) and corresponding masks of size (batch_size, num_decoding_steps+1) steps and computes cross entropy loss while taking the mask into account....
def lye5(YKHO, KeL5: torch.FloatTensor, N6Z1: torch.LongTensor, x6A0: torch.LongTensor, Z6T9: torch.LongTensor, kbGe: torch.LongTensor=None) -> ht2j.Tensor: LqJ8 = x6A0[:, 1:].contiguous() B6_p = Z6T9[:, 1:].contiguous() if YKHO._loss is not None: if isinstance(YKHO._loss, o7ns) or isinstance(YKHO._...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N77f(YKHO, Crrw, KeL5, ZHfW=None):\n N8L0 = ZylS.nn.softmax_cross_entropy_with_logits(ZylS.one_hot(Crrw, depth=KeL5.shape[-1]), KeL5, axis=-1)\n TIRP = ZHfW\n N77f = ZylS.reduce_mean(ZylS.boolean_mask(N8L0, TIRP))\n return N77f", "def ECCU(YKHO, o4Jx, x6A0, _0VL, hG11, RKD7=True):\n assert 'pr...
[ "0.70058495", "0.6829449", "0.6792782", "0.6687703", "0.66831034", "0.66598034", "0.65945166", "0.65499383", "0.64644146", "0.64490885", "0.6394254", "0.63340473", "0.63002336", "0.6235017", "0.61895174", "0.61076856", "0.6085291", "0.60850203", "0.6079257", "0.6068398", "0.6...
0.644908
10
Setter the tag_separator used in the preprocessed file.
def iLGL(YKHO, Pg9w): YKHO._tag_separator = Pg9w
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RPMq(YKHO, g8rx):\n YKHO._separator = g8rx", "def Pg9w(YKHO):\n return YKHO._tag_separator", "def JnFH(YKHO, tUng: str) -> None:\n YKHO._attr_sep = tUng\n YKHO._filters_tree = YKHO._generate_filters_tree()", "def MdDT(VWe_):\n if VWe_:\n viqz.contentsep = VWe_\n else:\n ue...
[ "0.741412", "0.68213713", "0.6610436", "0.63379514", "0.61462694", "0.61361474", "0.6119814", "0.60399306", "0.5972268", "0.591466", "0.58263826", "0.57769364", "0.57173836", "0.5694928", "0.56351495", "0.56226903", "0.5531465", "0.5517981", "0.5504511", "0.5436017", "0.54188...
0.8514293
0
Getter of the POS tagged abstract of the preprocessed file.
def veV6(YKHO): return YKHO._abstract
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oeNL(YKHO):\n if 'pos' not in YKHO.annotators:\n return None\n return [a1PO[YKHO.POS] for a1PO in YKHO.data]", "def oeNL(YKHO):\n if 'pos' not in YKHO.annotators:\n return None\n return [a1PO[YKHO.POS] for a1PO in YKHO.data]", "def BO5I(J_Es):\n pmON = '//h2[text() = \"Abstract...
[ "0.5791895", "0.5791895", "0.5547595", "0.5431506", "0.5342566", "0.52070963", "0.5190056", "0.51679295", "0.5111183", "0.5094322", "0.50934464", "0.5073222", "0.50289243", "0.50100195", "0.4988212", "0.49493816", "0.49490637", "0.49390373", "0.49315926", "0.4926357", "0.4925...
0.55036986
3
Returns the top rank for this program in the applicantList 1 if applicantList is empty
def iof5(YKHO, o7oi): oC1q = -1 for AfcQ in o7oi: MdvT = YKHO.GetApplicantRank(AfcQ) if oC1q == -1 or MdvT < oC1q: oC1q = MdvT return oC1q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M1QQ(YKHO, o7oi):\n TrL4 = []\n for AfcQ in o7oi:\n TrL4.append(YKHO.GetApplicantRank(AfcQ))\n TrL4.sort(reverse=True)\n return YKHO.GetApplicantByRank(TrL4[0])", "def IFgI(YKHO, tY95):\n return YKHO.rankList.index(tY95)", "def wvQq(YKHO):\n return YKHO.GetTopRankInApplicantList(YK...
[ "0.70736176", "0.7000888", "0.69737595", "0.63719654", "0.6267562", "0.61305654", "0.61280423", "0.6035504", "0.60074246", "0.59447724", "0.5842976", "0.57497114", "0.5712175", "0.5712175", "0.5712175", "0.5678015", "0.564668", "0.5640155", "0.5625737", "0.5565436", "0.555263...
0.82299405
0
Distribution of browser of the visitors given an OS.
def dyal(YKHO, aWEd): A07C = [] WErR = [] Pe9W = 'SELECT * FROM [browser_by_os] WHERE [os_id]=%d' % aWEd usx6 = YKHO.cursor.execute(Pe9W) for rdlD in usx6: A07C.append(int(rdlD['browser_id'])) WErR.append(float(rdlD['probability'])) return [usx6, A07C, WErR]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bIaS(QePW):\n SYsl = QePW.META['HTTP_USER_AGENT']\n SYsl = SYsl.lower()\n if 'firefox' in SYsl:\n SYsl = 'firefox'\n elif 'chrome' in SYsl:\n SYsl = 'chrome'\n else:\n SYsl = 'unknown'\n return SYsl", "def SYsl(QePW):\n SYsl = QePW.config.getoption('--browser').lower...
[ "0.6027", "0.595808", "0.5776524", "0.5774975", "0.5723559", "0.5644563", "0.5621359", "0.5621359", "0.5559177", "0.5556279", "0.5516961", "0.54802066", "0.54746634", "0.5455027", "0.5393856", "0.53758764", "0.53655475", "0.5334025", "0.5323154", "0.52898777", "0.5285139", ...
0.7124988
0
Initialize the weights in backbone.
def vB93(YKHO, mL4f=None): if isinstance(mL4f, str): bo34 = UKxV() Nh79(YKHO, mL4f, strict=False, logger=bo34) elif mL4f is None: for r8hN in YKHO.modules(): if isinstance(r8hN, U78l.Conv2d): h6h3(r8hN, std=0.001) elif isinstance(r8hN, (_bh1, U78l....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def vJuA(YKHO):\n raise NotImplementedError", "def vB93(C3ST):\n ...", "def Y7Gu(YKHO, _mSQ):\n YKHO.init_w = _mSQ", "def sTi3(YKHO...
[ "0.83809745", "0.83567804", "0.8318618", "0.80969334", "0.79236996", "0.79064524", "0.78415686", "0.76821744", "0.76756763", "0.7579746", "0.7504763", "0.75038546", "0.75038546", "0.75038546", "0.74933714", "0.7491974", "0.7485691", "0.7437889", "0.74249136", "0.7403326", "0....
0.0
-1
Initialize the weights in backbone.
def vB93(YKHO, mL4f=None): if isinstance(mL4f, str): bo34 = UKxV() Nh79(YKHO, mL4f, strict=False, logger=bo34) elif mL4f is None: for r8hN in YKHO.modules(): if isinstance(r8hN, U78l.Conv2d): h6h3(r8hN, std=0.001) elif isinstance(r8hN, (_bh1, U78l....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def vJuA(YKHO):\n raise NotImplementedError", "def vB93(C3ST):\n ...", "def Y7Gu(YKHO, _mSQ):\n YKHO.init_w = _mSQ", "def sTi3(YKHO...
[ "0.83809745", "0.83567804", "0.8318618", "0.80969334", "0.79236996", "0.79064524", "0.78415686", "0.76821744", "0.76756763", "0.7579746", "0.7504763", "0.75038546", "0.75038546", "0.75038546", "0.74933714", "0.7491974", "0.7485691", "0.7437889", "0.74249136", "0.7403326", "0....
0.0
-1
Initialize the weights in backbone.
def vB93(YKHO, mL4f=None): if isinstance(mL4f, str): bo34 = UKxV() Nh79(YKHO, mL4f, strict=False, logger=bo34) elif mL4f is None: for r8hN in YKHO.modules(): if isinstance(r8hN, U78l.Conv2d): h6h3(r8hN, std=0.001) elif isinstance(r8hN, (_bh1, U78l....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def vJuA(YKHO):\n raise NotImplementedError", "def vB93(C3ST):\n ...", "def Y7Gu(YKHO, _mSQ):\n YKHO.init_w = _mSQ", "def sTi3(YKHO...
[ "0.83809745", "0.83567804", "0.8318618", "0.80969334", "0.79236996", "0.79064524", "0.78415686", "0.76821744", "0.76756763", "0.7579746", "0.7504763", "0.75038546", "0.75038546", "0.75038546", "0.74933714", "0.7491974", "0.7485691", "0.7437889", "0.74249136", "0.7403326", "0....
0.0
-1
Initialize the weights in backbone.
def vB93(YKHO, mL4f=None): if isinstance(mL4f, str): bo34 = UKxV() Nh79(YKHO, mL4f, strict=False, logger=bo34) elif mL4f is None: for r8hN in YKHO.modules(): if isinstance(r8hN, U78l.Conv2d): h6h3(r8hN, std=0.001) elif isinstance(r8hN, (_bh1, U78l....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def vJuA(YKHO):\n raise NotImplementedError", "def vB93(C3ST):\n ...", "def Y7Gu(YKHO, _mSQ):\n YKHO.init_w = _mSQ", "def sTi3(YKHO...
[ "0.83809745", "0.83567804", "0.8318618", "0.80969334", "0.79236996", "0.79064524", "0.78415686", "0.76821744", "0.76756763", "0.7579746", "0.7504763", "0.75038546", "0.75038546", "0.75038546", "0.74933714", "0.7491974", "0.7485691", "0.7437889", "0.74249136", "0.7403326", "0....
0.0
-1
Stack InvertedResidual blocks to build a layer for MobileNetV2.
def B3yW(YKHO, tYiq, YIPF, _0fC, spnB): fhcK = [] for YRbF in range(YIPF): if YRbF >= 1: _0fC = 1 fhcK.append(Ywl1(YKHO.in_channels, tYiq, _0fC, expand_ratio=spnB, conv_cfg=YKHO.conv_cfg, norm_cfg=YKHO.norm_cfg, act_cfg=YKHO.act_cfg, with_cp=YKHO.with_cp)) YKHO.in_channels = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OxUo(YKHO, tYiq, YIPF):\n fhcK = []\n for YRbF in range(YIPF):\n _0fC = 2 if YRbF == 0 else 1\n fhcK.append(Ywl1(in_channels=YKHO.in_channels, out_channels=tYiq, stride=_0fC, conv_cfg=YKHO.conv_cfg, norm_cfg=YKHO.norm_cfg, act_cfg=YKHO.act_cfg, with_cp=YKHO.with_cp))\n YKHO.in_channe...
[ "0.6292122", "0.6129501", "0.61178213", "0.6102227", "0.60590327", "0.6018183", "0.60090405", "0.59772414", "0.59442794", "0.5885008", "0.5867726", "0.58391887", "0.5818666", "0.58165723", "0.5783878", "0.5753458", "0.5751327", "0.5726953", "0.5723741", "0.57175475", "0.56715...
0.58735776
10
Initialize the weights in backbone.
def vB93(YKHO, mL4f=None): if isinstance(mL4f, str): bo34 = UKxV() aqBD = aF1a(mL4f, logger=bo34, map_location='cpu') if 'state_dict' in aqBD: bY6o = aqBD['state_dict'] elif 'model' in aqBD: bY6o = aqBD['model'] else: bY6o = aqBD if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def vJuA(YKHO):\n raise NotImplementedError", "def vB93(C3ST):\n ...", "def Y7Gu(YKHO, _mSQ):\n YKHO.init_w = _mSQ", "def sTi3(YKHO...
[ "0.83809745", "0.83567804", "0.8318618", "0.80969334", "0.79236996", "0.79064524", "0.78415686", "0.76821744", "0.76756763", "0.7579746", "0.7504763", "0.75038546", "0.75038546", "0.75038546", "0.74933714", "0.7491974", "0.7485691", "0.7437889", "0.74249136", "0.7403326", "0....
0.0
-1
Weight initialization for model.
def vB93(YKHO, mL4f=None): if mL4f is not None: YKHO.pretrained = mL4f for dyc7 in YKHO.modality: getattr(YKHO.backbone, dyc7).init_weights(YKHO.pretrained.get(dyc7, None)) if hasattr(YKHO, 'neck'): YKHO.neck.init_weights() if hasattr(YKHO, 'cls_head'): YKHO.cls_head.init...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(C3ST):\n ...", "def vJuA(YKHO):\n raise NotImplementedError", "def C0Lv(YKHO):\n pass", "def i7WW(YKHO):\n uHk4(YKHO.norm0)", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def Y7Gu(YKHO, _mSQ):...
[ "0.85686207", "0.848473", "0.8421346", "0.8388901", "0.8246325", "0.8199929", "0.8101117", "0.80370206", "0.7984219", "0.7940452", "0.7931027", "0.79122275", "0.7875325", "0.78611803", "0.77435935", "0.77398425", "0.7737332", "0.7697887", "0.7692674", "0.76801425", "0.7677824...
0.0
-1
Calls either forward_train or forward_test depending on whether return_loss=True. Note this setting will change the expected inputs.
def KVH6(YKHO, f6W2, UXqs=None, Scjb=None, jQDc=True, **B2fa): if not isinstance(Scjb, (tuple, list)): Scjb = [Scjb.data] if jQDc: return YKHO.forward_train(f6W2, UXqs, Scjb[0], **B2fa) return YKHO.forward_test(f6W2, UXqs, Scjb[0], **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ILQa(YKHO, *qIxc, **B2fa):\n pass", "def KVH6(YKHO, EcVT, Y9ns=False):\n pass", "def KVH6(YKHO, VXjJ, Scjb=None, jQDc=False, **B2fa):\n if jQDc:\n return YKHO.forward_train(VXjJ, Scjb, **B2fa)\n return YKHO.forward_test(VXjJ, Scjb, **B2fa)", "def KVH6(YKHO, *qIxc, Tuqy='train', **B2fa)...
[ "0.68793446", "0.6742538", "0.67208356", "0.65698546", "0.6494433", "0.64842945", "0.6481234", "0.64600986", "0.6428341", "0.6426814", "0.6352076", "0.6299568", "0.62467784", "0.6203152", "0.6182667", "0.61751753", "0.6171513", "0.6162237", "0.61599505", "0.61579907", "0.6140...
0.56894004
82
Convert quaternion coefficients to rotation matrix.
def YOLk(_Jov): dt8o = _Jov dt8o = dt8o / dt8o.norm(p=2, dim=1, keepdim=True) yzQ0, WKvO, LVAh, epBp = (dt8o[:, 0], dt8o[:, 1], dt8o[:, 2], dt8o[:, 3]) tjUW = _Jov.size(0) xMw6, ajwV, skBL, mPai = (yzQ0.pow(2), WKvO.pow(2), LVAh.pow(2), epBp.pow(2)) lnPd, V1sm, cIs9 = (yzQ0 * WKvO, yzQ0 * LVAh, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9zH(slpS):\n RyRt, jylo, SInE, D_A6 = slpS\n AyER, rAHv, gZUC, ux4C = oyIN.square(slpS)\n CkYf = rAHv + gZUC + ux4C + AyER\n bULF = oyIN.zeros((3, 3))\n bULF[0, 0] = (+rAHv - gZUC - ux4C + AyER) / CkYf\n bULF[1, 1] = (-rAHv + gZUC - ux4C + AyER) / CkYf\n bULF[2, 2] = (-rAHv - gZUC + ux4C ...
[ "0.7666401", "0.7480785", "0.74480975", "0.7431791", "0.7220662", "0.72003317", "0.7190068", "0.7073628", "0.6941468", "0.6884496", "0.6881994", "0.685318", "0.68479955", "0.68037885", "0.67919123", "0.677245", "0.6759796", "0.672846", "0.670579", "0.66775787", "0.6654148", ...
0.6882422
10
Convert axisangle representation to rotation matrix.
def bA5s(q7In): wsvu = ht2j.norm(q7In + 1e-08, p=2, dim=1) YylR = ht2j.unsqueeze(wsvu, -1) HBfW = ht2j.div(q7In, YylR) YylR = YylR * 0.5 HqlT = ht2j.cos(YylR) Lnqc = ht2j.sin(YylR) _Jov = ht2j.cat([HqlT, Lnqc * HBfW], dim=1) return YOLk(_Jov)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _eYH(jDK_):\n return KakW(GhxC(jDK_))", "def bULF(YylR, jDK_):\n CBO5 = D785(YylR)\n tw3e = OB3T(jDK_)\n ShHK = oyIN.linalg.inv(tw3e)\n return Pusg(oyIN.dot, [tw3e, CBO5, ShHK])", "def k4PZ(YylR: torch.Tensor) -> ht2j.Tensor:\n dUBp = XBKw(YylR)\n _Lrm: ht2j.Tensor = ht2j.cos(dUBp)\n ...
[ "0.7975021", "0.7776975", "0.7642057", "0.75718856", "0.7484483", "0.73852175", "0.7374227", "0.7331798", "0.7323808", "0.72060734", "0.7166385", "0.7143978", "0.71211976", "0.7071612", "0.70691985", "0.7067156", "0.7056157", "0.7056157", "0.7034615", "0.7027953", "0.7001234"...
0.0
-1
Weight initialization for model.
def vB93(YKHO, mL4f=None): if mL4f is not None: YKHO.pretrained = mL4f YKHO.backbone.init_weights(YKHO.pretrained) YKHO.mesh_head.init_weights() if YKHO.with_gan: YKHO.discriminator.init_weights()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(C3ST):\n ...", "def vJuA(YKHO):\n raise NotImplementedError", "def C0Lv(YKHO):\n pass", "def i7WW(YKHO):\n uHk4(YKHO.norm0)", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def Y7Gu(YKHO, _mSQ):...
[ "0.85686207", "0.848473", "0.8421346", "0.8388901", "0.8246325", "0.8199929", "0.8101117", "0.80370206", "0.7984219", "0.7940452", "0.7931027", "0.79122275", "0.7875325", "0.78611803", "0.77435935", "0.77398425", "0.7737332", "0.7697887", "0.7692674", "0.76801425", "0.7677824...
0.70198435
88
Get 3D joints from 3D mesh using predefined joints regressor.
def akZ3(YKHO, iXlf): return ht2j.matmul(YKHO.joints_regressor, iXlf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yfyS(QGZq):\n G0Cu = fn43(QGZq)\n jmiK = G0Cu[0, 3]\n a2H_ = G0Cu[1, 3]\n u9rO = G0Cu[2, 3]\n n2vS = [jmiK, a2H_, u9rO]\n return n2vS", "def c0qM(XFc4, iXlf):\n return ht2j.einsum('bik,ji->bjk', [iXlf, XFc4])", "def c0qM(XFc4, iXlf):\n return ht2j.einsum('bik,ji->bjk', [iXlf, XFc4])...
[ "0.5559251", "0.55435926", "0.55435926", "0.5519641", "0.533805", "0.5321818", "0.52827793", "0.5226791", "0.52000743", "0.5160625", "0.51382494", "0.51370203", "0.5133971", "0.51308125", "0.5067422", "0.5030773", "0.4969826", "0.49660763", "0.49635682", "0.49610776", "0.4956...
0.7331685
0
Forward function. Calls either forward_train or forward_test depending on whether return_loss=True.
def KVH6(YKHO, VXjJ, Scjb=None, jQDc=False, **B2fa): if jQDc: return YKHO.forward_train(VXjJ, Scjb, **B2fa) return YKHO.forward_test(VXjJ, Scjb, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pftB(YKHO, *qIxc, NrPp=False):\n with F1PJ.using_config('train', False), F1PJ.no_backprop_mode():\n if NrPp:\n YKHO(*qIxc)\n return YKHO.y\n else:\n if YKHO.predictor is None:\n print('[ERROR] predictor is not set or not build yet.')\n ...
[ "0.71872735", "0.7128654", "0.70319444", "0.7026561", "0.6894758", "0.6802563", "0.6779703", "0.6705878", "0.66595113", "0.6588538", "0.65810764", "0.65727705", "0.6538105", "0.6522937", "0.652293", "0.65106237", "0.6506749", "0.64888895", "0.6474941", "0.6450967", "0.6450814...
0.7127736
2
Weight initialization for model.
def vB93(YKHO, mL4f=None): if mL4f is not None: YKHO.pretrained = mL4f YKHO.backbone.init_weights(YKHO.pretrained) if YKHO.with_necks: for NVdp in YKHO.necks: if hasattr(NVdp, 'init_weights'): NVdp.init_weights() for sdCG in YKHO.heads: if hasattr(sdCG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(C3ST):\n ...", "def vJuA(YKHO):\n raise NotImplementedError", "def C0Lv(YKHO):\n pass", "def i7WW(YKHO):\n uHk4(YKHO.norm0)", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def Y7Gu(YKHO, _mSQ):...
[ "0.85673505", "0.84834665", "0.8420753", "0.8389227", "0.82461745", "0.8199778", "0.810045", "0.8035721", "0.79831946", "0.79390824", "0.7930031", "0.7911559", "0.7874311", "0.78609335", "0.7743155", "0.7739889", "0.7736403", "0.7696626", "0.769211", "0.76797533", "0.7677288"...
0.0
-1
Draw bboxes with labels (optional) on an image. This is a wrapper of mmcv.imshow_bboxes.
def UMdH(VXjJ, c8oy, Crrw=None, Jw9H='green', y_EG='white', dGrG=1, dSvG=0.5, nUHY=True, d3qD='', z5fF=0, PcZo=None): c8oy = oyIN.split(c8oy, c8oy.shape[0], axis=0) if c8oy.shape[0] > 0 else [] if not isinstance(Jw9H, list): Jw9H = [Jw9H for bGrB in range(len(c8oy))] Jw9H = [bzBo.color_val(Z9rn) for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uI47(VXjJ, c8oy, Crrw):\n dGrG = 5\n qfpW = (0, 255, 0)\n for cviu in c8oy:\n o4D3, si3g, ajwV, skBL, JxU2, Ghho = (int(cviu[0]), int(cviu[1]), int(cviu[2]), int(cviu[3]), round(cviu[4], 2), Crrw[int(cviu[5])])\n VXjJ = jbYn.rectangle(VXjJ, (o4D3, si3g), (ajwV, skBL), qfpW, dGrG)\n ...
[ "0.8425356", "0.79669654", "0.7939032", "0.7938984", "0.787777", "0.78727245", "0.7775163", "0.76961917", "0.7486975", "0.74045867", "0.7395205", "0.7366733", "0.73514307", "0.7285908", "0.7165967", "0.7144592", "0.707343", "0.7056721", "0.7021131", "0.69743466", "0.6963432",...
0.81564605
1
Convert 6D rotation representation to 3x3 rotation matrix. Based on Zhou et al., "On the Continuity of Rotation Representations in Neural Networks", CVPR 2019
def PAlI(WKvO): WKvO = WKvO.view(-1, 3, 2) XOOk = WKvO[:, :, 0] pHXX = WKvO[:, :, 1] kYGz = vuvg.normalize(XOOk) ftz7 = vuvg.normalize(pHXX - ht2j.einsum('bi,bi->b', kYGz, pHXX).unsqueeze(-1) * kYGz) _2fo = ht2j.cross(kYGz, ftz7) return ht2j.stack((kYGz, ftz7, _2fo), dim=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAlI(WKvO):\n WKvO = WKvO.view(-1, 3, 2)\n XOOk = WKvO[:, :, 0]\n pHXX = WKvO[:, :, 1]\n kYGz = vuvg.normalize(XOOk)\n ftz7 = vuvg.normalize(pHXX - ht2j.einsum('bi,bi->b', kYGz, pHXX).unsqueeze(-1) * kYGz)\n _2fo = ht2j.cross(kYGz, ftz7)\n return ht2j.stack((kYGz, ftz7, _2fo), dim=-1)", ...
[ "0.77868396", "0.69944537", "0.6879761", "0.6653499", "0.6609096", "0.6535051", "0.64724016", "0.6432443", "0.63557816", "0.6317468", "0.62795895", "0.62564325", "0.62430626", "0.6241044", "0.62305796", "0.6196107", "0.6190647", "0.6184934", "0.61790997", "0.61746114", "0.615...
0.7754819
2
Forward function. x is the image feature map and is expected to be in shape (batch size x channel number x height x width)
def KVH6(YKHO, WKvO): Ep8u = WKvO.shape[0] WKvO = WKvO.mean(dim=-1).mean(dim=-1) aDpB = YKHO.init_pose.expand(Ep8u, -1) cd41 = YKHO.init_shape.expand(Ep8u, -1) Iczy = YKHO.init_cam.expand(Ep8u, -1) lHnU = aDpB voYM = cd41 MxUW = Iczy for bGrB in range(YKHO.n_iter): g0Hx = ht2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fqku(YKHO, WKvO):\n raise NotImplementedError", "def KVH6(YKHO, WKvO):\n WKvO = YKHO.features(WKvO)\n WKvO = WKvO.view(WKvO.size(0), 256 * 6 * 6)\n WKvO = YKHO.classifier(WKvO)\n return WKvO", "def KVH6(YKHO, WKvO):\n WKvO = YKHO.features(WKvO)\n return WKvO", "def KVH6(YKHO, WKvO):\...
[ "0.8109888", "0.783628", "0.7809797", "0.76811504", "0.7640014", "0.7578948", "0.75749266", "0.7573663", "0.75364065", "0.7531707", "0.7507958", "0.747236", "0.7470453", "0.7470453", "0.7401767", "0.7383301", "0.7383301", "0.7383016", "0.7380614", "0.7374642", "0.7372244", ...
0.7186885
42
Restore global position of the rootcentered joints.
def EiP7(WKvO, uN44, dPxK=None): WKvO = WKvO + uN44 if dPxK is not None: WKvO = oyIN.insert(WKvO, dPxK, uN44.squeeze(1), axis=1) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iqFv(YKHO):\n YKHO.translate_to_point_O()\n bULF = oyIN.stack((YKHO.pcs.i_hat, YKHO.pcs.j_hat, YKHO.pcs.k_hat), axis=0)\n YKHO.rotate(bULF)", "def iqFv(YKHO, WKvO, LVAh):\n YKHO.grid[WKvO][LVAh] = YKHO.terminal", "def LUmQ(YKHO):\n for or8S in range(YKHO.unFixJL):\n YKHO._p.resetJoint...
[ "0.6468122", "0.64039344", "0.6186904", "0.6128712", "0.6004282", "0.60020596", "0.5972203", "0.5965829", "0.594728", "0.5924122", "0.59190434", "0.58652675", "0.5814819", "0.5810724", "0.579582", "0.57915163", "0.57613224", "0.5712127", "0.56887126", "0.56887126", "0.5688712...
0.6400782
2
Restore the target weight of the root joint after the restoration of the global position.
def U4y8(lE_A, cP1c, dPxK=None): if dPxK is not None: cP1c = oyIN.full(lE_A.shape[0], cP1c, dtype=lE_A.dtype) lE_A = oyIN.insert(lE_A, dPxK, cP1c[:, None], axis=1) return lE_A
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBIE(YKHO):\n YKHO.weight = YKHO._backup_weight", "def hx0A(YKHO):\n YKHO.target_model.set_weights(YKHO.model.get_weights())", "def hx0A(YKHO):\n YKHO.target_model.set_weights(YKHO.model.get_weights())", "def hx0A(YKHO):\n YKHO.target_model.set_weights(YKHO.model.get_weights())", "def UMkV(...
[ "0.6532418", "0.626845", "0.626845", "0.626845", "0.61817044", "0.59743774", "0.59608006", "0.5948445", "0.5932581", "0.5902194", "0.58527577", "0.5794424", "0.5779515", "0.5766231", "0.57529676", "0.57319206", "0.57286066", "0.57243454", "0.57059324", "0.56769335", "0.564747...
0.73660153
0
Get indices in the 3D tensor.
def fJYO(_0VL, ROpF): Ep8u = _0VL.shape[0] yEQi = _0VL.shape[1] n7Q3 = (_0VL // (ROpF[1] * ROpF[2])).reshape(Ep8u, yEQi, -1) Roys = (_0VL % (ROpF[1] * ROpF[2]) // ROpF[2]).reshape(Ep8u, yEQi, -1) Egpt = (_0VL % ROpF[2]).reshape(Ep8u, yEQi, -1) _0VL = ht2j.cat([n7Q3, Roys, Egpt], dim=2) retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kS1Y(asm6, jmlw):\n WKvO, LVAh, epBp = asm6.size()\n a1PO = asm6.reshape(WKvO * LVAh, epBp)\n rxEN = jmlw.reshape(WKvO * LVAh)\n Ty9i = a1PO[ht2j.arange(WKvO * LVAh), rxEN]\n Ty9i = Ty9i.reshape(WKvO, LVAh)\n return Ty9i", "def eM4e():\n if nMvt.image_dim_ordering() == 'th':\n ret...
[ "0.77685285", "0.7458059", "0.71643627", "0.70784223", "0.69235426", "0.69099647", "0.6634774", "0.6597598", "0.6582917", "0.654125", "0.6490288", "0.64506537", "0.6442221", "0.6366239", "0.6352815", "0.63409746", "0.6336338", "0.6327924", "0.63188136", "0.6273791", "0.615544...
0.72924477
2
Compute 3D joints loss for the examples that 3D joint annotations are available. The loss is weighted by joints_3d_visible.
def yzuf(YKHO, xDqb, E9sn, pv6l): Fv2L = pv6l.float() if len(E9sn) > 0: E9_l = (E9sn[:, 2, :] + E9sn[:, 3, :]) / 2 E9sn = E9sn - E9_l[:, None, :] Ky7B = (xDqb[:, 2, :] + xDqb[:, 3, :]) / 2 xDqb = xDqb - Ky7B[:, None, :] return (Fv2L * YKHO.criterion_joints_3d(xDqb, E9sn))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vTG5(YKHO, _kVb, h1oi, lHqL):\n Fv2L = lHqL.float()\n N77f = (Fv2L * YKHO.criterion_joints_2d(_kVb, h1oi)).mean()\n return N77f", "def QNXu(aTLP, x6A0, LPGM, Iafa, r9gL, oHiW=None, bmXm=None):\n z5B1 = aTLP[0]\n WcxF = aTLP[1]\n vF73 = aTLP[2]\n GTDZ = aTLP[8]\n GTDZ = GTDZ.argmin(-1)...
[ "0.6756533", "0.60064924", "0.59600157", "0.5607383", "0.5360164", "0.53345627", "0.5324913", "0.528248", "0.52383", "0.52234066", "0.52091354", "0.519144", "0.51809406", "0.5140926", "0.5132388", "0.51157516", "0.51082975", "0.5080216", "0.5026056", "0.50177366", "0.49956354...
0.8305695
0
Perform orthographic projection of 3D points using the camera parameters, return projected 2D points in image plane.
def yjIk(YKHO, xloK, yDvq): Ep8u = xloK.shape[0] begE = xloK.device uwhB = ht2j.stack([yDvq[:, 1], yDvq[:, 2], 2 * YKHO.focal_length / (YKHO.img_res * yDvq[:, 0] + 1e-09)], dim=-1) TAUK = yDvq.new_zeros([Ep8u, 2]) wqnO = ht2j.eye(3, device=begE, dtype=xloK.dtype).unsqueeze(0).expand(Ep8u, -1, -1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bNKA(LTIa, NJx8, q7In):\n \"\"\"\n Function takes input of 3d_points, transformations and Convert 3-D points to 2-D by projecting onto images. \n Input:\n points: 3D points in world frame\n camera_params: parameters of camera corrosponding to the point\n theta: Needed For PAL came...
[ "0.71469444", "0.7131893", "0.70798355", "0.70352674", "0.69473964", "0.6943918", "0.6870089", "0.67666954", "0.6736476", "0.6724732", "0.671313", "0.6680877", "0.6620804", "0.64126754", "0.63342166", "0.6332999", "0.628593", "0.6259295", "0.6257777", "0.6186433", "0.6171103"...
0.7044382
3
Make zero inputs for AE loss.
def QOva(a1PO, _6Ge=False, begE=ht2j.device('cpu')): pKvt = ht2j.autograd.Variable(a1PO, requires_grad=_6Ge) pKvt = pKvt.sum() pKvt = pKvt return pKvt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _L75(YKHO):\n YKHO.h_e = oyIN.ones_like(YKHO.inputs.noise_flat.T) * YKHO.feed_forward_off_value\n YKHO.h = oyIN.vstack([YKHO.h_e, YKHO.h_i])", "def sbx9(YKHO):\n vexM = w8ed.neutral(YKHO.model)\n Ty9i = oyIN.zeros(YKHO.model.nv)\n return oyIN.concatenate([vexM.flat, Ty9i])", "def wD2I(YKHO):...
[ "0.69209635", "0.6261222", "0.62184983", "0.6188817", "0.6159907", "0.6061483", "0.60535985", "0.5981513", "0.5974199", "0.5957769", "0.59405655", "0.59405655", "0.5939206", "0.5891215", "0.5864115", "0.5849362", "0.5842028", "0.5831693", "0.58147335", "0.58132446", "0.580216...
0.0
-1
Project 3D joint coordinates to 2D image plane using camera intrinsic parameters.
def s79E(WKvO, SCWy): while SCWy.dim() < WKvO.dim(): SCWy.unsqueeze_(1) eHNT = SCWy[..., :2] Z9rn = SCWy[..., 2:4] eeYG = ht2j.clamp(WKvO[:, :, :2] / WKvO[:, :, 2:], -1, 1) if SCWy.shape[-1] == 9: G1Hx = SCWy[..., 4:7] XP5J = SCWy[..., 7:9] CYjz = ht2j.sum(eeYG[:, :, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yjIk(YKHO, xloK, yDvq):\n Ep8u = xloK.shape[0]\n begE = xloK.device\n uwhB = ht2j.stack([yDvq[:, 1], yDvq[:, 2], 2 * YKHO.focal_length / (YKHO.img_res * yDvq[:, 0] + 1e-09)], dim=-1)\n TAUK = yDvq.new_zeros([Ep8u, 2])\n wqnO = ht2j.eye(3, device=begE, dtype=xloK.dtype).unsqueeze(0).expand(Ep8u, ...
[ "0.6893198", "0.66906667", "0.64375496", "0.6386052", "0.63330364", "0.6250995", "0.6210345", "0.62045944", "0.61692065", "0.61516637", "0.6141883", "0.61296594", "0.6083696", "0.5989321", "0.5974358", "0.59156924", "0.5906794", "0.5904153", "0.5889489", "0.58657324", "0.5854...
0.5457731
61
Generates a random string out of given charactes.
def j9F_(gLiZ=vIwR.ascii_lowercase + vIwR.digits, len=16) -> str: return ''.join(tuKI.choices(gLiZ, k=len))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DAbY(exwG, Sc5p=''):\n if exwG == 0:\n return Sc5p\n Z9rn = tuKI.choice(vIwR.ascii_letters)\n return DAbY(exwG - 1, Sc5p + Z9rn)", "def Q_QB():\n yvT9 = ''\n for bGrB in range(24):\n yvT9 += Acvy(C1SZ)\n return yvT9", "def BWvy() -> str:\n KoG3 = vIwR.ascii_lowercase\n ...
[ "0.81032926", "0.806971", "0.7877198", "0.7849856", "0.7845163", "0.7842866", "0.7834733", "0.777338", "0.773708", "0.76797926", "0.7669728", "0.76126826", "0.7609616", "0.76057935", "0.7594953", "0.7582613", "0.75544643", "0.7537375", "0.75352347", "0.75326586", "0.7530695",...
0.7981308
2
This function applies the query function on each subset of the original df in a parallel way It takes a dictionary with 1011 pairs keyvalue. Each key is the df subset name and each value is the df subset It returns a df with the IdRef.
def tjvy(MU0J: dict) -> rLdf.DataFrame: Ylbp = [] with zKwq.futures.ThreadPoolExecutor(max_workers=11, thread_name_prefix='thread') as ZaUd: yaGc = {ZaUd.submit(xDcj, jQ3Z): jQ3Z for jQ3Z in MU0J.values()} for KS9L in zKwq.futures.as_completed(yaGc): qv1X = yaGc[KS9L] try...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xDcj(jQ3Z: pd.DataFrame) -> rLdf.DataFrame:\n Qph6 = I64Y.Pydref()\n bo34 = fZx2(T6FA.current_thread().name)\n bo34.info('start')\n HTrF = {'person_id': [], 'name_corrected': [], 'idref': []}\n for bGrB, Mkmy in jQ3Z.iterrows():\n try:\n Aofo = Qph6.identify(Mkmy['name_correcte...
[ "0.6329121", "0.6085262", "0.5936317", "0.5933766", "0.57985693", "0.55516374", "0.5514657", "0.55016136", "0.5495835", "0.54683244", "0.5375725", "0.5368782", "0.5349592", "0.5347283", "0.5343006", "0.5334667", "0.53258467", "0.53250384", "0.5321837", "0.53159046", "0.530732...
0.54051006
10
Gets configuration from environment variables that start with app_name Example with load_as_json=True
def crI6(kvcN, tG07=True): wOGa = {} y0cW = '{0}_'.format(kvcN.upper()) for H5ew, BWXx in Hy7s.environ.items(): if H5ew.startswith(y0cW): Zu8l = H5ew[len(y0cW):] wOGa[Zu8l] = BWXx if tG07: return mE0_(wOGa) return wOGa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgIG(V0Mo) -> cuzp:\n with open('config.json', 'r') as Nu1S:\n _fuv = qQXR.load(Nu1S)\n if V0Mo.startswith('develop'):\n if 'development' in _fuv:\n GPtr = _fuv['development']\n else:\n raise Exception(\"Missing 'development' section in config file\")\n elif ...
[ "0.6923006", "0.6858593", "0.68416387", "0.6788664", "0.6689209", "0.6604247", "0.6604247", "0.6558171", "0.6507442", "0.649356", "0.6432491", "0.63902104", "0.6373164", "0.6365966", "0.6318764", "0.6317983", "0.62802994", "0.6275604", "0.627509", "0.62469", "0.6237867", "0...
0.8213723
0
If the associated mod archive contains a directory named 'fomod', return the internal path to that folder. Otherwise, return None.
async def get_fomod_path(YKHO): async for tTpl in YKHO.archive_contents(files=False): if Hy7s.path.basename(tTpl.rstrip('/')).lower() == 'fomod': return tTpl return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dir(YKHO):\n if not YKHO.on:\n return None\n try:\n return YKHO._dir\n except AttributeError:\n pass\n try:\n hSrp = YKHO._parent.dir\n YQs2 = YKHO._ownername\n except AttributeError:\n return None\n if hSrp is None:\n return None\n return H...
[ "0.57813084", "0.5711752", "0.5658194", "0.56434447", "0.56254584", "0.56109285", "0.5583636", "0.5582432", "0.55571324", "0.55271435", "0.5511979", "0.55082214", "0.5504758", "0.54894316", "0.54800737", "0.5472066", "0.5468324", "0.54642063", "0.5460707", "0.5447479", "0.544...
0.84928703
0
Returns checkpoint instance id
def unpH(YKHO): return YKHO.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o_gm(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'instance_id')", "def o_gm(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'instance_id')", "def o_gm(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'instance_id')", "def o_gm(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'ins...
[ "0.75324494", "0.75324494", "0.75324494", "0.753174", "0.753174", "0.753174", "0.73345107", "0.73296505", "0.73296505", "0.73296505", "0.73296505", "0.73296505", "0.73296505", "0.73109585", "0.73109585", "0.73109585", "0.7289635", "0.7289635", "0.7289635", "0.7289635", "0.728...
0.0
-1
To get upload path for specific user
def aSzP(KAOR, Ux0P): WWtd = '{name}/{file}'.format(name=KAOR.user.username, file=Ux0P) JD2O = Hy7s.path.join('infocomp', WWtd) return JD2O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSzP(KAOR, Ux0P):\n return 'user_{username}/{goal}/{file}'.format(id=KAOR.user.username, goal=KAOR.name.slug, file=Ux0P)", "def JJkJ(KAOR, Ux0P: str) -> str:\n return 'user_{0}/{1}'.format(KAOR.profile.user.pk, Ux0P)", "def Oom9(KAOR, Ux0P):\n return f'profile/{KAOR.user.id}/{Ux0P}'", "def aSzP(...
[ "0.76164734", "0.74995077", "0.73748523", "0.6845557", "0.6799951", "0.67855966", "0.658465", "0.6570861", "0.656437", "0.65490043", "0.65289664", "0.64806134", "0.6428075", "0.6385826", "0.63577163", "0.63510114", "0.63019615", "0.6262501", "0.61959994", "0.6180763", "0.6177...
0.7651492
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, K...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81922984", "0.80933887", "0.80272716", "0.8016492", "0.79913706", "0.79885876", "0.79777396", "0.79729784", "0.7958926", "0.7954523", "0.79347897", "0.7931899", "0.7931772", "0.7928666", "0.7923684", "0.7921764", "0.79213995", "0.7920191", "0.792016", "0.7919876", "0.79153...
0.0
-1
Check if the pipeline executor build is enabled. Return
def ObFx(): return fnfy.contrib.pipeline_executor.pipeline_executor_enabled()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def meig(YKHO):\n return not isinstance(YKHO.io_owner, ifMI.ModuleWrapper)", "def yWbd():\n if 'MojoPipeline' not in OHPy.cluster().list_core_extensions():\n print('Cannot use MOJO Pipelines - runtime was not found.')\n return False\n else:\n return True", "def Gc0g(YKHO):\n re...
[ "0.67274827", "0.6549643", "0.6535526", "0.64671516", "0.6108377", "0.6032475", "0.6018949", "0.60120815", "0.6000826", "0.58864367", "0.5872304", "0.57963127", "0.5774401", "0.5767087", "0.5716949", "0.56814426", "0.56527084", "0.5635638", "0.5632141", "0.5623579", "0.560476...
0.8849949
0
Return a list with all nodes selected for compression. Each member list is a list with nodes that have identical formulas in the same level of derivation tree. The ProofGraph object has a attribute 'nodes_level', a dictionarylike object that stores nodes per level in derivation tree.
def GXVB(sd2D): ABDL = 0 Ddmn = {} VNXg = sd2D.get_nodes_level() for ABDL, Ziit in VNXg.items(): Ddmn[ABDL] = [] XGI8 = {} for Q6kx in Ziit: l9Ur = sd2D.get_node_attribute(Q6kx, uwaB.FORMULA) if l9Ur in XGI8: XGI8[l9Ur].append(Q6kx) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WKa2(YKHO):\n aeQa = set([ZfUD for XuXy in YKHO.edges.values() for ZfUD in XuXy])\n return (WKvO for WKvO in YKHO.nodes if WKvO not in aeQa)", "def Ziit(YKHO):\n nPrm = list(YKHO._nodes.values())\n nPrm.sort()\n return nPrm", "def CDNe(YKHO):\n return [Q6kx for Q6kx in sorted(YKHO._nodes....
[ "0.59449786", "0.59210926", "0.58997107", "0.5868533", "0.58245146", "0.57777065", "0.5772594", "0.5772203", "0.5772203", "0.5765101", "0.57511866", "0.5741092", "0.5740438", "0.57399815", "0.5738622", "0.57371634", "0.5712226", "0.57087314", "0.56831145", "0.56826526", "0.56...
0.5502048
42
Return True if exists a node that is out_neighbor of node_u and node_v. Return False if this node not exists.
def BHwx(pNZh, PW5R, B5_i): for kJX2 in pNZh.get_deductive_out_neighbors(PW5R): for avhS in pNZh.get_deductive_out_neighbors(B5_i): if kJX2 == avhS: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3U8(YKHO, Q6kx):\n if Q6kx in YKHO.neighbours:\n return True\n return False", "def UX57(YKHO, Godd, VasW):\n return VasW in YKHO._main_dictionary[Godd]", "def tWZB(YKHO, P6bq: str, Ty9i: str) -> bool:\n if Ty9i in YKHO.adj_list[P6bq]:\n return True\n else:\n return Fals...
[ "0.6862047", "0.6402426", "0.6183208", "0.6169514", "0.5991937", "0.5986089", "0.59851027", "0.59416634", "0.5934797", "0.5917179", "0.5912017", "0.5889982", "0.5870837", "0.5857063", "0.5856563", "0.58118707", "0.58051395", "0.57932913", "0.5790044", "0.5782719", "0.57803255...
0.67921066
1
Testing the Add function of the calculator
def vU7A(FfbK): assert sFjc.add_number(1, 2) == 3 assert sFjc.add_number(2, 2) == 4 assert sFjc.add_number(3, 2) == 5 assert sFjc.add_number(4, 2) == 6 assert sFjc.history_count() == 4 assert sFjc.get_result_of_last_calculation_added_to_history() == 6 CgYo.pprint(sFjc.history)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LCld():\n assert euR3.add(7, 3) == 10\n assert euR3.add(7.0, 3.0) == 10.0\n assert euR3.add(7, -3) == 4\n assert euR3.add(7.0, -3.0) == 4.0", "def Ftco(YKHO):\n Aofo = YKHO.calc.add(2, 2)\n YKHO.assertEqual(4, Aofo)", "def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)", "def nsFJ(YK...
[ "0.8440173", "0.8434948", "0.8202158", "0.8202158", "0.8202158", "0.81960595", "0.8010745", "0.80049014", "0.7991473", "0.7982925", "0.7965928", "0.79100037", "0.7906378", "0.78788674", "0.7748355", "0.7728935", "0.760771", "0.7594136", "0.7570065", "0.7547949", "0.7540929", ...
0.6875723
89
Testing the subtract method of the calculator
def Geul(): assert sFjc.subtract_number(1, 2) == -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tw2Z():\n assert euR3.subtract(7, 3) == 4\n assert euR3.subtract(7.0, 3.0) == 4.0\n assert euR3.subtract(7, -3) == 10\n assert euR3.subtract(7.0, -3.0) == 10.0", "def Geul():\n hzm0 = sFjc()\n hzm0.subtract(1)\n assert hzm0.get_result() == -1", "def S6G2():\n hzm0 = sFjc()\n hzm0...
[ "0.8693571", "0.8651895", "0.85075855", "0.8305262", "0.82759595", "0.8261573", "0.82330716", "0.82330716", "0.821264", "0.8152954", "0.8083025", "0.80597436", "0.7985497", "0.7983098", "0.77423507", "0.7734247", "0.7657529", "0.75747967", "0.7517118", "0.7416459", "0.7376896...
0.8192774
9
Generate Plots in the HTML index page.
def d6pt(): g_M3 = gkTj(filepath='sparkify_data.csv', title='Raw Sparkify Data') lnj9 = gkTj(filepath='cleaned_data.csv', title='Cleaned Sparkify Data') HcOV = [g_M3, lnj9] A07C = ['graph-{}'.format(YRbF) for YRbF, bGrB in enumerate(HcOV)] L4g7 = qQXR.dumps(HcOV, cls=Q8B8.utils.PlotlyJSONEncoder) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n HcOV = [R7yX(jQ3Z), bqxe(jQ3Z), Q9at(jQ3Z)]\n A07C = ['graph-{}'.format(YRbF) for YRbF, bGrB in enumerate(HcOV)]\n L4g7 = qQXR.dumps(HcOV, cls=Q8B8.utils.PlotlyJSONEncoder)\n return TvZl('master.html', ids=A07C, graphJSON=L4g7)", "def d6pt():\n return TvZl('charts.html')", "def DcU...
[ "0.7178311", "0.70505464", "0.70494276", "0.64869934", "0.6468016", "0.64508504", "0.6444026", "0.643546", "0.6432974", "0.6426685", "0.64226305", "0.64135414", "0.6410265", "0.6410265", "0.6407052", "0.6404297", "0.63878465", "0.6367806", "0.63612807", "0.6347655", "0.634359...
0.7129036
1
2D ndarray to pd.DataFrame
def XXqT(ywwl): jQ3Z = rLdf.DataFrame() jQ3Z['value'] = ywwl.reshape(-1) jQ3Z['time'] = list(range(ywwl.shape[1])) * ywwl.shape[0] jQ3Z['unit'] = oyIN.repeat(range(ywwl.shape[0]), ywwl.shape[1]) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMxI(CiHI: np.ndarray) -> rLdf.DataFrame:\n return rLdf.DataFrame(data=CiHI[1:, 1:], index=CiHI[1:, 0], columns=CiHI[0, 1:])", "def OI5z(fTPA, l7j3=''):\n if l7j3 == '':\n l1Rm = p64T.DataFrame(data=fTPA)\n else:\n l1Rm = p64T.DataFrame(data=fTPA, columns=l7j3)\n return l1Rm", "de...
[ "0.8012739", "0.7327064", "0.70615965", "0.70131636", "0.6823303", "0.68077964", "0.67281395", "0.67181456", "0.67167735", "0.67092234", "0.6660128", "0.6505619", "0.64926094", "0.6486184", "0.6472557", "0.6431895", "0.6426513", "0.6403305", "0.6307063", "0.6212939", "0.62013...
0.56146455
91
Returns the user provided name or the lower() class name for use when
def W0tD(Emd4): return Emd4.name or Emd4.__name__.lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _2sc(mWFP: str) -> str:\n return l5Ny.pascal_case(BfDw.safe_snake(mWFP, 'type'))", "def mPQc(Emd4):\n return Emd4.__name__.lower()", "def TNrv(mWFP):\n mWFP = JZFN(mWFP)\n return niPz(mWFP)", "def _2sc(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'class_name')", "def TNrv(z1Rg...
[ "0.7601749", "0.72795516", "0.72573864", "0.72564507", "0.7238398", "0.709797", "0.7060616", "0.7001694", "0.69945616", "0.6987685", "0.69607097", "0.69228125", "0.6897389", "0.6884109", "0.68566924", "0.6851744", "0.68311906", "0.6830754", "0.6827228", "0.68000424", "0.67342...
0.77838355
0
Handle Incoming PATCH requests and dispatch to handle_patch_request method.
def Po4F(YKHO, *qIxc, **B2fa): return YKHO.handle_patch_request()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fYra(YKHO):\n geh0 = YKHO.httpbin_4.test_requests_patch_method()\n YKHO.assertEqual(geh0.request.method, 'PATCH')\n YKHO.assertEqual(geh0.status_code, 200)", "def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)", "def b62G(YKHO, nNXP, oUZx):\n return YKHO._make_request_from...
[ "0.68794614", "0.68380874", "0.68149406", "0.6793358", "0.65440285", "0.6491982", "0.6459084", "0.64541936", "0.64541936", "0.64541936", "0.64171255", "0.6402273", "0.6372591", "0.630911", "0.62627673", "0.622556", "0.6204201", "0.6175774", "0.61528903", "0.61523855", "0.6145...
0.70530725
0