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
If dask is enabled for this environment, return dask array of values. Otherwise, return values.
def hC8Q(T6S7): try: import dask.array as SG6Y return SG6Y.from_array(T6S7, chunks=2) except ImportError: return T6S7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eGoy(YKHO):\n L4cE = YKHO.client.map(F3Sm, YKHO.vecDask, pure=False)\n Sk_F = YKHO.client.gather(L4cE)\n return Sk_F", "def xC1g(YKHO, ztRo=(1, 6000, 6000)):\n try:\n import dask.array as SG6Y\n except ImportError:\n raise ImportError('to_dask_array requires optional dependency d...
[ "0.6385144", "0.5988612", "0.59288013", "0.59288013", "0.59189385", "0.5897733", "0.58678585", "0.58226806", "0.5817331", "0.5713514", "0.57126224", "0.5692706", "0.5659076", "0.5645981", "0.56129605", "0.5596002", "0.5583527", "0.55436844", "0.5494371", "0.5455237", "0.54032...
0.6958613
0
Get the drone's current acceleration, angles and position.
def X2_6(YKHO): sgTf = YKHO.gyro.getValues() bLm4 = YKHO.imu.getRollPitchYaw() dQgj = YKHO.gps.getValues() Wbqi = YKHO.compass.getValues() rd75 = oyIN.arctan2(Wbqi[0], Wbqi[1]) rd75 = (rd75 - 1.5708) / oyIN.pi * 180 if rd75 < 0.0: rd75 += 360.0 return (sgTf, bLm4, dQgj, rd75)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UgEb(YKHO):\n return YKHO.acceleration", "def sgTf(YKHO):\n return YKHO.__accel", "def CsNC(YKHO):\n zUbX = YKHO.orbit()\n return (zUbX.apoapsis_altitude, zUbX.periapsis_altitude, zUbX.inclination, zUbX.eccentricity)", "def QyPm(YKHO):\n oeNL, XyWv = XP5J.getBasePositionAndOrientation(YKHO...
[ "0.6734967", "0.657277", "0.6041919", "0.60196203", "0.60196203", "0.60196203", "0.600712", "0.600095", "0.5997669", "0.59740686", "0.59517837", "0.59185386", "0.5823333", "0.57753307", "0.5772175", "0.57661915", "0.57624006", "0.57556576", "0.57218945", "0.568433", "0.568429...
0.6740883
0
Plots the predicted vs the observed values Arguments > the test target variable values, the predictions, a boolean indicating if predictions are from a ols model, and the glm fitted model to make tests on pearson / deviance residuals the figure size, a boolean to indicate if the plot has to be saved or not, the prefix ...
def gyA6(CjQX, gjpc, E7TW=False, Rvfk=None, wytA=(15, 10), xkzz=False, FeZg='', xtX7='Charts'): FeZg = FeZg + '_' if FeZg is not None else '' LZpg, aNZO = QrM1.subplots(figsize=wytA) aNZO.scatter(CjQX, gjpc) if E7TW == False: aNZO.plot([CjQX.min(), CjQX.max()], [CjQX.min(), CjQX.max()], 'k--', l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xymb(LVAh, amiz, leAC='Predictions vs Actual', kmfe=None):\n LZpg = QrM1.figure(figsize=(15, 6))\n QrM1.xlabel('Time')\n QrM1.ylabel('PM10')\n QrM1.plot(LVAh, label='actual', figure=LZpg)\n QrM1.plot(amiz, label='predicted', figure=LZpg)\n QrM1.title(leAC)\n LZpg.legend()\n if kmfe != N...
[ "0.7064655", "0.69476485", "0.66331583", "0.6632691", "0.657829", "0.65760475", "0.6493739", "0.6390811", "0.63791186", "0.636725", "0.636572", "0.63477945", "0.63430333", "0.63425857", "0.6339547", "0.6329973", "0.63261044", "0.6313217", "0.6296309", "0.6284836", "0.6281209"...
0.7368396
0
returns channel vertical unit
def BFK2(YKHO) -> float: return YKHO.__channel_v_unit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k590(YKHO) -> float:\n return YKHO.__channel_h_unit", "def FvGo(YwkQ):\n YwkQ = YwkQ / 255.0\n if YwkQ <= 0.03928:\n YwkQ = YwkQ / 12.92\n else:\n YwkQ = ((YwkQ + 0.055) / 1.055) ** 2.4\n return YwkQ", "def ZGVe(YKHO) -> int:\n return YKHO._get_divisible_channel(YKHO.args[0]...
[ "0.7504972", "0.66034764", "0.6283613", "0.61666226", "0.6021952", "0.59227955", "0.59116703", "0.5894933", "0.583893", "0.5770274", "0.5755843", "0.5745898", "0.57395035", "0.5708975", "0.57006365", "0.5696517", "0.564767", "0.5642291", "0.5637985", "0.56072503", "0.56072193...
0.75776786
0
returns channel horizontal unit
def k590(YKHO) -> float: return YKHO.__channel_h_unit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BFK2(YKHO) -> float:\n return YKHO.__channel_v_unit", "def ZGVe(YKHO) -> int:\n return YKHO._get_divisible_channel(YKHO.args[0] * YKHO.width_multiply)", "def FvGo(YwkQ):\n YwkQ = YwkQ / 255.0\n if YwkQ <= 0.03928:\n YwkQ = YwkQ / 12.92\n else:\n YwkQ = ((YwkQ + 0.055) / 1.055) ...
[ "0.6576367", "0.65336204", "0.65198475", "0.6282698", "0.60510427", "0.6022523", "0.5969941", "0.59571755", "0.5952133", "0.59292036", "0.5856703", "0.57807666", "0.5776836", "0.5775047", "0.57557046", "0.5753962", "0.5749723", "0.5748173", "0.5718844", "0.5693396", "0.563825...
0.79741836
0
Sets up ImageNet dataset for the tests.
def FCbF(YKHO): YKHO.batch_size = 1 YKHO.imagenet_inception_v3 = hAbN.imagenet_inception_v3(YKHO.batch_size)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eCGt(YKHO):\n YMBJ, gIsw, bD7m, xORj = YKHO.resource\n M77W = Hy7s.path.join(YKHO.data_root, YMBJ)\n if not Hy7s.path.exists(M77W):\n L4R2.download_and_extract_archive(bD7m, M77W, xORj, gIsw)\n aLdE = _7Zj.Compose([_7Zj.ToTensor(), _7Zj.Lambda(lambda WKvO: WKvO.permute(1, 2, 0))])\n qKcN ...
[ "0.73884267", "0.73769605", "0.73480946", "0.7330498", "0.7310901", "0.7310901", "0.7258694", "0.7240208", "0.71069247", "0.699991", "0.6989749", "0.6985504", "0.69805586", "0.6951331", "0.69471484", "0.69404054", "0.6881817", "0.6881221", "0.676448", "0.6756336", "0.6737488"...
0.6964756
13
Helper to create an initialized Variable with weight decay. Note that the Variable is initialized with a truncated normal distribution. A weight decay is added only if one is specified.
def xSbR(YKHO, mWFP, ROpF, TI1B): SRYB = YKHO._variable_on_device(mWFP, ROpF, ZylS.contrib.layers.xavier_initializer_conv2d(uniform=True)) if TI1B is not None: oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss') ZylS.add_to_collection('losses', oNEO) return SRYB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xSbR(mWFP, ROpF, z2bo, TI1B):\n SRYB = Es0b(mWFP, ROpF, initializer=ZylS.truncated_normal_initializer(stddev=z2bo, dtype=ZylS.float32))\n if TI1B is not None:\n oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss')\n ZylS.add_to_collection('losses', oNEO)\n return SRYB", ...
[ "0.75135535", "0.74281675", "0.74257743", "0.7330802", "0.7330802", "0.7315695", "0.7315142", "0.72744447", "0.72729135", "0.726398", "0.7253641", "0.7236708", "0.7194579", "0.71026814", "0.69684446", "0.67315996", "0.6716141", "0.66752493", "0.6562407", "0.65493554", "0.6548...
0.67978245
15
Test that the Calendar Page can be accessed
def d41K(YKHO): geh0 = YKHO.app.get('/schedule') YKHO.assertTrue(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P7_r(YKHO):\n geh0 = YKHO.client.get('/module/calendar/')\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'frontend/appointment/calendar/list.html')\n QePW = YKHO.factory.get('/module/calendar/')\n QePW.user = YKHO.user\n QePW.session = {}\n geh0 = JUKr(QePW)\n ...
[ "0.7689714", "0.7473764", "0.73709065", "0.73606986", "0.72446615", "0.71482205", "0.70722246", "0.6964074", "0.69296104", "0.69061553", "0.68505865", "0.681398", "0.67192847", "0.6714032", "0.6704237", "0.6704237", "0.66931295", "0.6682147", "0.664953", "0.6631372", "0.65950...
0.7985945
0
Test that the Calendar Page can be accessed
def HlIq(YKHO): geh0 = YKHO.app.get('/campers') YKHO.assertTrue(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d41K(YKHO):\n geh0 = YKHO.app.get('/schedule')\n YKHO.assertTrue(geh0.status_code, 200)", "def P7_r(YKHO):\n geh0 = YKHO.client.get('/module/calendar/')\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'frontend/appointment/calendar/list.html')\n QePW = YKHO.factory...
[ "0.7985945", "0.7689714", "0.7473764", "0.73709065", "0.73606986", "0.72446615", "0.71482205", "0.70722246", "0.6964074", "0.69296104", "0.69061553", "0.68505865", "0.681398", "0.67192847", "0.6714032", "0.6704237", "0.6704237", "0.66931295", "0.6682147", "0.664953", "0.66313...
0.0
-1
Tests whether put event endpoint is working fine
def BoeW(YKHO): m8X5 = WRmF('falcons', 'yellow') yKcO = qcWV.now() Os4s = qcWV.now() UkTQ = mKDj('basketball', yKcO, Os4s) m8X5.events.append(UkTQ) NCls.session.add(m8X5) NCls.session.add(UkTQ) NCls.session.commit() Elsm = 'soccer' zgjV = {'id': mKDj.query.filter_by(title='basket...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YdEn(YKHO):\n bD7m = gxEw('events:EventView')\n geh0 = YKHO.client.post(bD7m, YKHO.valid_payload, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n bD7m = gxEw('events:EventUpdateDeleteView', args={geh0.data['id']})\n geh0 = YKHO.client.post(bD7m, YKHO.valid_payload, f...
[ "0.8075736", "0.7791941", "0.76807094", "0.75236446", "0.7523296", "0.74803066", "0.7453159", "0.73838425", "0.7259203", "0.7256426", "0.7205512", "0.71617454", "0.7017496", "0.7013021", "0.699852", "0.69816107", "0.6972454", "0.69720274", "0.6957384", "0.69355863", "0.688974...
0.61890584
83
Get currently active restrictions.
async def current(YKHO) -> dict: return await YKHO._request('get', 'restrictions/currently')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b2wM(YKHO, rQ2r):\n return [a1PO for a1PO in YKHO.temporal_constraints if a1PO.is_active(rQ2r)]", "def D6B2(YKHO):\n return YKHO.get_challenges().filter(status='A')", "def lZ95(YKHO):\n return YKHO._attribute_restrictions", "async def universal(YKHO) -> dict:\n return await YKHO._request('get...
[ "0.61726195", "0.604122", "0.60070765", "0.5842691", "0.5729121", "0.5638984", "0.56301856", "0.5566356", "0.55462164", "0.5517872", "0.5517572", "0.5499043", "0.54741156", "0.54694414", "0.5435181", "0.5429092", "0.5385967", "0.5385967", "0.5385967", "0.53777176", "0.5370474...
0.7281368
0
Get a list of restrictions that are active over the next hour.
async def hourly(YKHO) -> list: nPrm: dict = await YKHO._request('get', 'restrictions/hourly') return nPrm['hourlyRestrictions']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FxBd():\n Oxrr = {'M': ['7:00', '9:30'], 'A': ['16:00', '19:30']}\n return Oxrr", "def i_wy(YKHO, CjKC, XEri):\n if XEri == 'close':\n pass\n FDPd = [YRbF for YRbF in range(28)]\n if not YKHO.availabilities:\n return [(YRbF, str(YRbF) + ':00') for YRbF in range(23)]\n jhR7 = [...
[ "0.5671755", "0.56123126", "0.54429984", "0.54202163", "0.54171014", "0.5416793", "0.5391014", "0.5375272", "0.5334575", "0.52817655", "0.5269839", "0.52209896", "0.5206575", "0.5148325", "0.5117789", "0.5111155", "0.51000863", "0.50923085", "0.5064847", "0.50285864", "0.5023...
0.7541006
0
Test the accesprtrisk POST endpoint is fails if fingerprint/token empty or not passed
def y79o(x0hE): Oa1e.test_authorized_for = [] Ylbp = x0hE.post('/v0/acceptrisk', json={'fingerprint': '', 'token': ''}) assert Ylbp.json.get('message') == 'acceptrisk failed' Ylbp = x0hE.post('/v0/acceptrisk', json={}) assert Ylbp.json.get('status') == 'error'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sra8(YKHO):\n _hkX = YKHO.client.post('/')\n JBvl = _hkX.status_code\n YKHO.assertTrue(JBvl == 403)", "def VIC5(x0hE):\n Oa1e.test_authorized_for = []\n Ylbp = x0hE.get('/v0/acknowledge')\n assert Ylbp.status == '500 INTERNAL SERVER ERROR'", "def aAJY(YKHO):\n Ylbp = YKHO.client.post(p...
[ "0.63460875", "0.6291374", "0.62895226", "0.61612487", "0.61563206", "0.61203927", "0.6111593", "0.6083697", "0.6049535", "0.6027298", "0.6026439", "0.60003674", "0.59834933", "0.59827775", "0.59636027", "0.5960315", "0.5936208", "0.5921884", "0.59144443", "0.5904803", "0.589...
0.69678193
0
Test the snooze endpoint fails when no data is passed
def cNBu(aDNe): Ylbp = aDNe.post('/v0/snooze') assert Ylbp.json assert Ylbp.status == '500 INTERNAL SERVER ERROR'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FeKE(x0hE):\n Oa1e.test_authorized_for = []\n Ylbp = x0hE.post('/v0/snooze', json={'fingerprint': 'forseti_f0743042e3bbea4a1b163f5accd4c366', 'token': '7ec8a1ee4308d2d07f71fd5a1c844582cfcca56e915c06fc9518ad5e22c5e718'})\n assert Ylbp.json.get('status') != 'error'", "def sdeY(P4t4):\n xOrX = [None...
[ "0.6614686", "0.6248566", "0.62112606", "0.6006811", "0.5996833", "0.59901345", "0.5988002", "0.5897616", "0.5870692", "0.58668613", "0.5857681", "0.58492845", "0.58399224", "0.58320653", "0.58241725", "0.5823704", "0.5816402", "0.57879", "0.57765996", "0.5753684", "0.5747796...
0.690529
0
Test the falsepositive GET endpoint works
def hWMM(x0hE): Oa1e.test_authorized_for = [] Ylbp = x0hE.get('/v0/falsepositive' + TJwI) assert 'Thanks! We’ve marked this as a false positive' in Ylbp.data.decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gGOn(YKHO):\n if not YKHO.url:\n return\n geh0 = YKHO.client.get(YKHO.url, {}, format='json')\n YKHO.assertIn(geh0.status_code, [jGRS.HTTP_405_METHOD_NOT_ALLOWED, jGRS.HTTP_401_UNAUTHORIZED])", "def PnJP(YKHO):\n _hkX, hGN5 = YKHO._two_legged('GET')\n YKHO.assertEqual(int(_hkX['status']...
[ "0.80965966", "0.8055937", "0.78537846", "0.77405953", "0.76633084", "0.7638649", "0.7638649", "0.7624558", "0.7624558", "0.7622345", "0.7564098", "0.7564098", "0.7528899", "0.7374196", "0.73609835", "0.73575425", "0.73251873", "0.7317519", "0.7306199", "0.73061717", "0.72877...
0.7528197
13
Test the falsepositive POST endpoint works
def wH5T(x0hE): Oa1e.test_authorized_for = [] Ylbp = x0hE.post('/v0/falsepositive', json=dV8n) O0Fa = '{"msg":"Thanks! We\\u2019ve marked this as a false positive","status":"ok"}' assert O0Fa in Ylbp.data.decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hiBY(YKHO):\n if not YKHO.url:\n return\n geh0 = YKHO.client.post(YKHO.url, {}, format='json')\n YKHO.assertIn(geh0.status_code, [jGRS.HTTP_405_METHOD_NOT_ALLOWED, jGRS.HTTP_401_UNAUTHORIZED])", "def AWhd(YKHO):\n YKHO.assertEqual(jGRS.HTTP_405_METHOD_NOT_ALLOWED, YKHO.response.status_code...
[ "0.78419614", "0.7821615", "0.77443194", "0.75878584", "0.75878584", "0.75724036", "0.75543857", "0.75409836", "0.75027764", "0.74899936", "0.7487769", "0.7457565", "0.73363507", "0.73339754", "0.7309678", "0.7300413", "0.72734815", "0.72463965", "0.7244759", "0.7231521", "0....
0.79738975
0
Total fitness for a population.
def mnkg(YKHO, LELs, m2Zb): EhgW = [] for CHNM in LELs: EhgW.append(sum([m2Zb.fit(*d7pR) for d7pR in CHNM])) return EhgW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kgIf(YKHO):\n wkbQ: float = 0\n for Z9rn in YKHO.characters:\n wkbQ += Z9rn.fitness\n YKHO.sum_fitness = round(wkbQ, 3)", "def xrb1(YKHO):\n return sum([tTpl.fitness for tTpl in YKHO.population]) / len(YKHO.population)", "def wkbQ(YKHO):\n FLXQ = YKHO.history\n return sum(FLXQ) / l...
[ "0.7726892", "0.7629518", "0.7619074", "0.7609879", "0.76037", "0.7589788", "0.7589788", "0.75354797", "0.74984604", "0.74781245", "0.7415565", "0.7409352", "0.7398601", "0.73509455", "0.7200175", "0.7166285", "0.7107916", "0.71075547", "0.71062714", "0.7098343", "0.7047722",...
0.74317366
10
Return the fitness for a population.
def DwCH(YKHO, LELs, _BHl, OgYb): mFTL = YKHO._clean_populations(LELs) cyg8 = YKHO._get_total_fitness(mFTL, _BHl) EhgW = sum(cyg8) L_UO = YKHO._get_fitness_increes(cyg8, _BHl) EhZU = YKHO._get_best(mFTL, _BHl) bPlY = abs(_BHl.fit(*OgYb[0]) - _BHl.fit(*EhZU)) return EhgW * 0.15 + L_UO * 0.15 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkbQ(YKHO):\n pass", "def wkbQ(YKHO, *wEf2):\n if len(wEf2):\n YKHO._fitness = wEf2[0]\n return YKHO._fitness", "def wkbQ(YKHO) -> float:\n return YKHO._fitness", "def wkbQ(YKHO):\n return 1", "def hmlP(YKHO, **B2fa):\n YKHO.__fitness = YKHO.fitness_function.calculate(YKHO.__ge...
[ "0.7603592", "0.75739765", "0.7481248", "0.7422643", "0.7410513", "0.73986024", "0.73078567", "0.7185464", "0.71550083", "0.7110808", "0.708471", "0.70745575", "0.706798", "0.70573884", "0.70544034", "0.7023663", "0.69622827", "0.68912315", "0.68696064", "0.68443084", "0.6828...
0.0
-1
r""" Normalize the rows of a CSR matrix by their L2 norm. If copy is True, returns a copy of the normalized matrix.
def h96s(vb7U, jth9=False, **PECO): if jth9 is True: vb7U = vb7U.copy() HN6s = vb7U.shape[0] _NIw = vb7U.nnz QyVM, wEf2, AsCw = (vb7U.indices, vb7U.data, vb7U.indptr) for YRbF in range(HN6s): sR6b = 0.0 for r845 in range(AsCw[YRbF], AsCw[YRbF + 1]): sR6b += wEf2[r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h96s(vb7U, jth9=False, **PECO):\n if jth9 is True:\n vb7U = vb7U.copy()\n HN6s = vb7U.shape[0]\n _NIw = vb7U.nnz\n QyVM, wEf2, AsCw = (vb7U.indices, vb7U.data, vb7U.indptr)\n for YRbF in range(HN6s):\n sR6b = 0.0\n for r845 in range(AsCw[YRbF], AsCw[YRbF + 1]):\n ...
[ "0.8116126", "0.8116126", "0.8104463", "0.625892", "0.6154076", "0.6145391", "0.6106992", "0.5897903", "0.5848271", "0.5841817", "0.5835596", "0.5824375", "0.5809842", "0.5804764", "0.5788648", "0.5748995", "0.57324773", "0.5712761", "0.56899893", "0.56520987", "0.5616385", ...
0.8099067
3
Construct an instance of 'cls' wrapping the given Z3 ref object.
def Suzb(Emd4, txrs): if not isinstance(txrs, Emd4._z3_ref_type): raise TypeError('%s expected %s, got %s' % (Emd4.__name__, Emd4._z3_ref_type.__name__, B3Wo(txrs))) YEnM = Emd4.__new__(Emd4) YEnM._v = txrs return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i39x(Emd4, **B2fa):\n return Emd4(**B2fa)", "def i39x(pJOu, **nPrm):\n _yOu = pJOu()\n setattr(_yOu, 'data', nPrm)\n for H5ew, wEf2 in _qLf(nPrm).items():\n setattr(_yOu, H5ew, wEf2)\n return _yOu", "def DfnM(Emd4, *qIxc):\n return Emd4.__new__(Emd4, *qIxc)", "def FLGC(Emd4):\n ...
[ "0.5984306", "0.5936363", "0.58834", "0.56847954", "0.56678057", "0.56522536", "0.55891865", "0.55891865", "0.55503154", "0.55362654", "0.5494425", "0.5493427", "0.5492987", "0.54186773", "0.54163224", "0.54092693", "0.53798634", "0.53672254", "0.53672254", "0.53672254", "0.5...
0.82835186
0
Convert a value to a simsym.Symbolic. If ref is a Z3 symbolic value, wraps it in a simsym.Symbolic. Otherwise, if ref is a concrete type supported by the symbolic engine, returns value. Otherwise, raises TypeError.
def GDMi(bf9h): if isinstance(bf9h, (bool, int, Swre, float)): return bf9h if not isinstance(bf9h, Exmq.ExprRef): raise TypeError('Not a bool, int, long, float, or z3.ExprRef') if isinstance(bf9h, Exmq.ArithRef): return u2xw._wrap(bf9h) if isinstance(bf9h, Exmq.BoolRef): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XFw0(wEf2):\n if isinstance(wEf2, BUXp):\n return wEf2._v\n return wEf2", "def UaTq(k1Pn, PJ6c, rfnr):\n if not isinstance(k1Pn, str) and isinstance(k1Pn, ftIh.Iterable):\n return tuple([UaTq(jzdc, PJ6c, rfnr) for jzdc in k1Pn])\n Ty9i = k1Pn\n if isinstance(Ty9i, float) or isins...
[ "0.5515622", "0.51134956", "0.5090437", "0.5090437", "0.5056816", "0.49731916", "0.49648315", "0.48597607", "0.48476207", "0.47848654", "0.47534943", "0.46728557", "0.46585596", "0.46440724", "0.46035984", "0.46020555", "0.4579055", "0.44834858", "0.44757518", "0.44642594", "...
0.606186
0
Check if this is a Platts or Argus Symbol
def jXp_(o61b): if len(o61b) == 7 and o61b[:2] in ['PC', 'PA', 'AA', 'PU', 'F1', 'PH', 'PJ', 'PG', 'PO', 'PP']: return True if '.' in o61b: vg0C = o61b.split('.')[0] if len(vg0C) == 9 and vg0C.startswith('PA'): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GoVZ(XP5J):\n return len(XP5J) == 1 and XP5J.isalpha()", "def GoVZ(YEnM):\n return isinstance(YEnM, wZLS)", "def aJu6(o61b):\n return True", "def gCNP(KCHu):\n return GoVZ(KCHu) and KCHu[0].isupper() and (KCHu != 'TRUE') and (KCHu != 'FALSE')", "def _z7e(YEnM):\n return GoVZ(YEnM) and (n...
[ "0.68986434", "0.6448035", "0.6361411", "0.6275516", "0.60835963", "0.60694957", "0.6053714", "0.60150236", "0.59025276", "0.5873287", "0.58428925", "0.58054507", "0.5776006", "0.56334746", "0.56215125", "0.55964434", "0.55645627", "0.5558268", "0.5543414", "0.55267763", "0.5...
0.64930016
1
Modified by is set to None if modified outside of django admin. Modified is still changed on save call.
def hNEa(YKHO): YKHO.subject.title = 'Subject 1(modified)' YKHO.now += CsFy YKHO.subject.save(update_fields=['title']) YKHO.assert_object_fields(YKHO.subject, modified_by=None, modified=YKHO.now)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n if nZuS:\n YEnM.updated_by = QePW.user\n YEnM.save()", "def lac1(YKHO, QePW, KAOR, L03z, nZuS):\n KAOR.updated_by = QePW.user\n KAOR.save()", "def lac1(YKHO, QePW, KAOR, L03z, nZuS):\n KAOR.updated_by = QePW.user\n KAOR.save()", "def lwXz(YKH...
[ "0.7437896", "0.7180372", "0.7180372", "0.7090333", "0.70522547", "0.6615123", "0.6615123", "0.65913403", "0.65204614", "0.6418178", "0.6414522", "0.6414522", "0.6414522", "0.63978577", "0.63685197", "0.63685197", "0.63355553", "0.6331915", "0.6259178", "0.625399", "0.625399"...
0.64805883
9
Created_by remains untouched, modified_by is set to logged user.
def tyBE(YKHO): YKHO.update_object(YKHO.subject, created_by=YKHO.test_user, modified_by=YKHO.test_user) super().test_changeform_save() YKHO.assert_object_fields(YKHO.subject, created_by=YKHO.test_user, modified_by=YKHO.superuser)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lwXz(YKHO, L03z):\n L03z.instance.last_modified_by = YKHO.request.user\n return super().form_valid(L03z)", "def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n if nZuS:\n YEnM.updated_by = QePW.user\n YEnM.save()", "def tC0c(YKHO):\n return YKHO._created_by", "def tC0c(YKHO, tC0c):\n YKHO....
[ "0.7216171", "0.69248897", "0.6874285", "0.6831821", "0.6831821", "0.6831821", "0.6831821", "0.6831821", "0.6831821", "0.67866844", "0.67866844", "0.67866844", "0.67866844", "0.6761844", "0.6704343", "0.66462237", "0.66462237", "0.663191", "0.6616106", "0.64910734", "0.647867...
0.0
-1
Return the degree of this vertex.
def tjON(YKHO) -> int: return len(YKHO.neighbours)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjON(YKHO):\n return YKHO.graph.degree()", "def tjON(YKHO):\n return YKHO._degree", "def tjON(YKHO):\n return YKHO._degree", "def tjON(YKHO):\n return YKHO._deg", "def tjON(YKHO):\n return YKHO.parent()._degree", "def tjON(YKHO, Ty9i):\n YKHO._validateVertex(Ty9i)\n return YKHO._...
[ "0.8183806", "0.7921751", "0.7921751", "0.79165566", "0.77771294", "0.76639247", "0.75070786", "0.7499989", "0.736234", "0.73322713", "0.72892946", "0.69866824", "0.6893338", "0.68803465", "0.6878239", "0.6846072", "0.68184274", "0.6766892", "0.659883", "0.64483196", "0.64088...
0.67819
19
Initialize an empty graph (no vertices or edges).
def FIMM(YKHO) -> None: YKHO._vertices = {} YOCD.__init__(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZqyB(YKHO):\n YKHO.G = jHsn.Graph()\n YKHO.G.add_nodes_from([1, 2, 3, 4, 5])\n YKHO.G.add_edges_from([(1, 2), (2, 3), (2, 4), (2, 5), (3, 4), (4, 5)])", "def meF5():\n from weighted_graph import Graph\n return Graph()", "def FIMM(YKHO):\n YKHO.graph = {}\n YKHO.edges = 0\n YKHO.vert...
[ "0.7230173", "0.7162825", "0.7122258", "0.69666773", "0.69421315", "0.6894478", "0.68916893", "0.6838316", "0.6832277", "0.66973096", "0.6604605", "0.6588477", "0.65383786", "0.64769727", "0.64750296", "0.6468457", "0.64567405", "0.64469624", "0.6436645", "0.63707316", "0.635...
0.65639895
12
Add a vertex with the given name to this graph. The new vertex is not adjacent to any other vertices. Do nothing if the given item is already in this graph.
def ohmD(YKHO, mWFP: Any, bD7m: str) -> None: if mWFP not in YKHO._vertices: YKHO._vertices[mWFP] = DjCP(mWFP, bD7m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO", "def ohmD(YKHO, ZfUD: Any, eJTR: str) -> None:\n if ZfUD not in YKHO._vertices:\n YKHO._vertices[ZfUD] = lIO6(ZfUD, eJTR)", "def FOdN(YKHO, SLBp):\n if isinstance(SLBp, Yegm):\n u6eo = SLBp.name\n YK...
[ "0.78088045", "0.76754266", "0.7170296", "0.7009771", "0.6965828", "0.69535965", "0.6944086", "0.68660486", "0.68256646", "0.6762711", "0.66448575", "0.66357887", "0.6628702", "0.66168725", "0.6543393", "0.65381444", "0.65115047", "0.64644927", "0.64432496", "0.6432111", "0.6...
0.7446481
2
Add an edge between the two vertices with the given items in this graph, with the given weight. Raise a ValueError if name1 or name2 do not appear as vertices in this graph.
def rz7z(YKHO, S1R7: Any, zuPL: Any, upAO: float=1.0) -> None: if S1R7 in YKHO._vertices and zuPL in YKHO._vertices: hQHm = YKHO._vertices[S1R7] jlSq = YKHO._vertices[zuPL] hQHm.neighbours[jlSq] = upAO jlSq.neighbours[hQHm] = upAO else: raise ValueError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, CZxs: Any, AhJh: Any, upAO: Union[int, float]) -> None:\n if CZxs in YKHO._vertices and AhJh in YKHO._vertices:\n hQHm = YKHO._vertices[CZxs]\n jlSq = YKHO._vertices[AhJh]\n hQHm.neighbours[jlSq] = upAO\n jlSq.neighbours[hQHm] = upAO\n else:\n raise ValueErro...
[ "0.8471875", "0.7469214", "0.7435859", "0.7384033", "0.73706025", "0.73696065", "0.73466545", "0.73101956", "0.71395665", "0.7016145", "0.6925965", "0.6905159", "0.68877935", "0.6885009", "0.6875684", "0.68618804", "0.68274486", "0.6823421", "0.6819064", "0.68122125", "0.6793...
0.89244914
0
The subscriber MUST confirm that the hub.topic corresponds to a pending subscription or unsubscription that it wishes to carry out. If so, the subscriber MUST respond with an HTTP success (2xx) code with a response body equal to the hub.challenge parameter. If the subscriber does not agree with the action, the subscrib...
def blQf(YKHO, QePW, kb2X): if 'hub.challenge' not in QePW.GET: bo34.error(f'Missing hub.challenge in subscription verification {kb2X.pk}!') xCjU.save.delay(pk=kb2X.pk, subscribe_status='verifyerror', verifyerror_count=kb2X.verifyerror_count + 1) return oGir('Missing hub.challenge', status=L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EoIr(YKHO):\n yzq9 = 'challenge-string'\n nPrm = {'hub.mode': 'subscribe', 'hub.verify_token': gCuF.VERIFY_TOKEN, 'hub.challenge': yzq9}\n Z9rn = i9zE()\n geh0 = Z9rn.get(YKHO.webhook, data=nPrm)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertEqual(str(geh0.content, 'utf-8'), yzq9)", ...
[ "0.60750276", "0.5895427", "0.5820841", "0.58171", "0.5772382", "0.5770824", "0.56958306", "0.5681194", "0.5680302", "0.56726277", "0.5623982", "0.5599367", "0.5583839", "0.5580166", "0.55568177", "0.5552328", "0.5538173", "0.5511604", "0.5500044", "0.5446147", "0.5441971", ...
0.6904333
0
Function to return the best movies for specific user
def K5R7(Cce9, EE3v, ZJe_): def Uqmr(ZJe_): WAvA = ((18, 25), (26, 30), (31, 35), (36, 40), (41, 45), (46, 50), (51, 55), (56, 60)) Q_5R = None for range in WAvA: if ZJe_ < range[0]: Q_5R = range break if range[0] <= ZJe_ <= range[1]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ktcg(YKHO, CBIr):\n nMvt = YKHO.n_sim_user\n ywwl = YKHO.n_rec_movie\n fdMZ = dict()\n E4gM = YKHO.trainset[CBIr]\n for Ty9i, hJgd in sorted(YKHO.user_sim_mat[CBIr].items(), key=TU9R(1), reverse=True)[0:nMvt]:\n for LHvA in YKHO.trainset[Ty9i]:\n if LHvA in E4gM:\n ...
[ "0.7131356", "0.6987773", "0.66233724", "0.6575672", "0.6495953", "0.6458982", "0.64512557", "0.6430177", "0.64061326", "0.63526034", "0.62809634", "0.62043494", "0.61872363", "0.61540073", "0.6107974", "0.60853076", "0.6071952", "0.6060481", "0.60545695", "0.6022957", "0.601...
0.6071229
17
Tokenization which casts a chunking problem into a tagging problem. This task has to create batch of tokens containing both [CLS] and [SEP] since it's usually the first task and later tasks might need them.
def FIMM(YKHO, UaBn: str=None, M4N3: str=None, Ntj0: str=None, aNkq: SamplerBuilder=None, SMAd: str=None, XvKa: ScalarMixWithDropoutBuilder=None, tjs1=False, tspZ=0.001, cKJF=False, fuRw=True, kcOp=True, TDw3=None, ZM6q=None, v0vv=None, SnUq=False, Yqlp=False, SZFh=None, nIQl='BMES', g4up=False, Gdj9='token', UcuJ: Uni...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rh2M(yOAJ, format=[ofzz, GrQm, Bk3d, DNxW, AH7h, unmP, zPMK]):\n s2mk = []\n if not (yOAJ.tag == v76w or yOAJ.tag == OiJt):\n return []\n type = yOAJ.get(Y_km, 'O')\n if type == 'PNP':\n for Npgh in yOAJ:\n s2mk.extend(Rh2M(Npgh, format))\n if DNxW in format:\n ...
[ "0.62005997", "0.60916", "0.59187293", "0.5694986", "0.5670036", "0.56464285", "0.56464094", "0.55769926", "0.5563655", "0.5544452", "0.5516463", "0.5512171", "0.5492686", "0.54837084", "0.5482791", "0.54778945", "0.54392177", "0.543641", "0.543641", "0.5435659", "0.543473", ...
0.0
-1
Initialize datasets for training
def r_T9(YKHO, iIG5=False): print('==> Loading images from ', YKHO.img_dir) YKHO.image_data_gen = aPXM(rescale=1.0 / 255, validation_split=0.2) YKHO.train_dataset = YKHO.image_data_gen.flow_from_directory(batch_size=Pp2K, directory=YKHO.img_dir, shuffle=True, target_size=YKHO.img_size, class_mode='sparse', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EcIH(YKHO):\n try:\n YKHO.train_dataset = YKHO.datasets['train']\n YKHO.val_dataset = YKHO.datasets['val']\n try:\n YKHO.test_dataset = YKHO.datasets['test']\n except:\n pass\n except Exception as e:\n print('Data was not succesfully prepared:', tT...
[ "0.79750913", "0.75937706", "0.75151575", "0.7498987", "0.74836475", "0.74688107", "0.7395552", "0.73210615", "0.71998334", "0.719473", "0.71639323", "0.7152245", "0.7140968", "0.7117662", "0.7117109", "0.7109672", "0.7083545", "0.7082305", "0.70727843", "0.70727843", "0.7037...
0.7470057
5
Return a shallow copy of the context with the given span.
def uo3i(YKHO, uvMl): return YKHO.__class__(trace_id=uvMl.trace_id, span_id=uvMl.span_id, meta=YKHO._meta, metrics=YKHO._metrics, lock=YKHO._lock)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQYC(YKHO) -> 'SpanContext':\n return vC9t(trace_id=int(YKHO.elastic_span.transaction.trace_parent.trace_id, base=16), span_id=int(YKHO.elastic_span.id, base=16), is_remote=False, trace_flags=xDQx(xDQx.SAMPLED if YKHO.elastic_span.transaction.is_sampled else xDQx.DEFAULT), trace_state=Y2Fg(list(YKHO.elastic...
[ "0.63736594", "0.63414156", "0.6171217", "0.6128476", "0.6102834", "0.5706204", "0.56493527", "0.53448355", "0.5241233", "0.5175", "0.5158708", "0.5064938", "0.50357324", "0.5028173", "0.502645", "0.49929136", "0.49408257", "0.4898603", "0.48948324", "0.484029", "0.4827315", ...
0.7799171
0
Get the origin of the trace.
def R1ID(YKHO): return YKHO._meta.get(oxLC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLRM(YKHO):\n return getattr(YKHO.canvas.layout, 'origin', I2Kl._origin)", "def hLRM(YKHO):\n return YKHO._origin", "def hLRM(YKHO):\n return YKHO._origin", "def hLRM(YKHO):\n return YKHO._origin", "def hLRM(YKHO):\n return YKHO._origin", "def Wkq0(YKHO):\n return YKHO.zero", "def...
[ "0.77281773", "0.7687419", "0.7687419", "0.7687419", "0.7687419", "0.76614225", "0.7512945", "0.750142", "0.74824816", "0.7455095", "0.74301136", "0.7393026", "0.73884094", "0.7311039", "0.7311039", "0.7311039", "0.7167827", "0.71040565", "0.70231783", "0.69829834", "0.696334...
0.6581665
26
Set the origin of the trace.
def R1ID(YKHO, BWXx): with YKHO._lock: if BWXx is None: if oxLC in YKHO._meta: del YKHO._meta[oxLC] return YKHO._meta[oxLC] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lqoY(YKHO, hLRM):\n YKHO.origin = hLRM\n YKHO.__symbol_set.update(hLRM)", "def lqoY(YKHO, WCTB, bcFp):\n YKHO.x = WCTB - YKHO.rect.width / 2\n YKHO.y = bcFp + YKHO.rect.height\n YKHO._update_rect()", "def MGPi(YKHO, hLRM):\n YKHO.origin_value = hLRM", "def Wwr3(YKHO):\n YKHO.origin =...
[ "0.73052305", "0.7164384", "0.71055984", "0.7035219", "0.68193966", "0.67631555", "0.67419386", "0.64130515", "0.63981974", "0.6355662", "0.6251785", "0.6050141", "0.6046345", "0.5972191", "0.5972191", "0.5972191", "0.59647226", "0.5962997", "0.5924368", "0.5924368", "0.59243...
0.5966799
16
Apply a transform to a given pose.
def SZFh(YKHO, gsFi): SZFh = IVoa() SZFh.header = sQC5.get_rostime() SZFh.transform.translation = PvyL(YKHO.translation[0], YKHO.translation[1], 0.0) SZFh.transform.rotation = R5H8(YKHO.rotation[0], YKHO.rotation[1], YKHO.rotation[2], YKHO.rotation[3]) shtX = dKgy.do_transform_pose(gsFi, SZFh) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o6QY(SZFh: Transform, shtX: Pose) -> bYdR:\n dKht = rqHt.math.transformation_matrix_from_array(rqHt.ros.transform_to_numpy(SZFh))\n NdN7 = rqHt.math.transformation_matrix_from_array(rqHt.ros.pose_to_numpy(shtX))\n g7oK = oyIN.matmul(dKht, NdN7)\n return rqHt.ros.numpy_to_pose(rqHt.math.transformati...
[ "0.77716047", "0.6756425", "0.67537993", "0.66222256", "0.64996296", "0.64882475", "0.6372686", "0.636316", "0.63158613", "0.62992144", "0.62744737", "0.619426", "0.6129586", "0.60735744", "0.60518163", "0.60129255", "0.5996214", "0.5935687", "0.592775", "0.5924709", "0.59177...
0.708058
1
Return number of edges. Note that for undirected graphs each edges are counted twice.
def n8F9(YKHO): return sum((len(Ty9i.adj) for Ty9i in YKHO.vertices.values()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fOCg(YKHO) -> int:\n return YKHO.graph.number_of_edges()", "def epQE(YKHO):\n return sum(map(lambda WKvO: len(WKvO), YKHO.__adj))", "def n8F9(YKHO):\n return sum((1 for bGrB in YKHO.iteredges()))", "def L1_y(YKHO) -> int:\n return YKHO._n_edges", "def L1_y(YKHO):\n return int(sum((YKHO.d...
[ "0.8719795", "0.8660583", "0.8626477", "0.8551925", "0.8549056", "0.85058194", "0.84867245", "0.847382", "0.835261", "0.8274995", "0.8218321", "0.82064015", "0.8188518", "0.8179152", "0.81417686", "0.8128503", "0.8081128", "0.8048379", "0.8033064", "0.8028972", "0.8015658", ...
0.8539096
5
Return number of vertices.
def poMF(YKHO): return len(YKHO.vertices)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qppV(YKHO):\n return YKHO.__size", "def poMF(YKHO):\n return len(YKHO)", "def VVUP(YKHO) -> int:\n raise NotImplementedError", "def nAk3(YKHO):\n return YKHO._nVertices", "def poMF(YKHO):\n return YKHO._top_exp.number_of_vertices()", "def CGB3(YKHO):\n return len(YKHO.V)", "def t8...
[ "0.8946443", "0.89405364", "0.8939045", "0.8931984", "0.887809", "0.87912714", "0.87674755", "0.8682573", "0.8579149", "0.85759246", "0.8522487", "0.8505311", "0.83833855", "0.80782884", "0.8061895", "0.802625", "0.78798425", "0.7853293", "0.7685195", "0.7587386", "0.75402313...
0.8981266
1
Set email template id.
def Rhla(YKHO, k9aT): YKHO.email_template_id = k9aT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p8MC(YKHO, p8MC):\n YKHO._template_id = p8MC", "def bAWB(YKHO):\n return YKHO.email_template_id", "def h8mO(YKHO, h8mO):\n YKHO._id_template_notificacao = h8mO", "def yNOe(YKHO, rPXJ, umgu, QLAf=1):\n return YKHO.execute('metaWeblog.setTemplate', YKHO.appkey, QLAf, YKHO.username, YKHO.passwor...
[ "0.73850626", "0.7111155", "0.6877127", "0.6289229", "0.62773335", "0.6274462", "0.62440306", "0.60256773", "0.5934045", "0.5934045", "0.5932743", "0.5932743", "0.566941", "0.5656785", "0.5649218", "0.5597014", "0.5583831", "0.5582144", "0.5545122", "0.5469994", "0.54267526",...
0.84797746
0
Get email template id.
def bAWB(YKHO): return YKHO.email_template_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p8MC(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'template_id')", "def p8MC(YKHO):\n return YKHO._template_id", "def p8MC(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'template_id')", "def p8MC(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'template_id')", "def X...
[ "0.79660094", "0.78993857", "0.7757478", "0.7757478", "0.7056596", "0.70498353", "0.7020445", "0.6945055", "0.6945055", "0.6942765", "0.6774855", "0.6714761", "0.6714761", "0.6622749", "0.6394606", "0.6352376", "0.6161674", "0.60567147", "0.5967014", "0.5947593", "0.59383005"...
0.8802528
0
Draws the 3D axes on an image.
def Kdat(LNo8, X1qI, fufY=None, O7P1=None, zNig=100.0): xTkQ, H2HG, rKSe = r9wH(X1qI, to_list=True, right_hand=True) if fufY != None and O7P1 != None: fufY = fufY O7P1 = O7P1 else: H2v2, TVTK = LNo8.shape[:2] fufY = upAO / 2 O7P1 = H2v2 / 2 o4D3 = zNig * (YhSR(xTk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B0E6(YKHO):\n jyIp(YKHO)", "def siUq(ufon):\n JI1i = QrM1.figure()\n KwM3(ufon, figure=JI1i)\n aNZO = QrM1.subplot(111)\n KwM3(ufon, axes=aNZO)\n QrM1.close()", "def lPFX(aNZO, lEHr, Jw9H, erQK):\n NXpY = 255\n aNZO.set_xlim(*(0, 255 / NXpY))\n aNZO.set_ylim(*(0, 255 / NXpY))\n ...
[ "0.64506495", "0.6278418", "0.6254556", "0.6205596", "0.6161973", "0.60464656", "0.6046308", "0.600582", "0.5994575", "0.5968867", "0.59513676", "0.5934624", "0.58870924", "0.5857459", "0.58425695", "0.5815853", "0.58145833", "0.58145833", "0.57967013", "0.5794237", "0.577449...
0.73046637
0
Checks whether the board is solved or not.
def Yprr(YKHO): if not YKHO._find_empty(): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oQYC(YKHO):\n for VmPb in YKHO.board.values():\n if not VmPb.value:\n return False\n return True", "def Yprr(YKHO):\n if not YKHO.is_legal():\n return False\n for VmPb in YKHO._cells_iterable():\n if VmPb == YKHO.EMPTY_CELL:\n return False\n return Tr...
[ "0.8470595", "0.8114887", "0.7891128", "0.77872354", "0.7759085", "0.7747135", "0.76414233", "0.75952727", "0.7529135", "0.7492625", "0.7371261", "0.73381066", "0.7332263", "0.7331484", "0.7326093", "0.73241985", "0.72522503", "0.72451514", "0.72391206", "0.7230613", "0.72227...
0.7082771
27
Checks whether the board has a valid solution.
def dd1_(YKHO): Ji0Q = _qLf(YKHO) return Ji0Q.solve()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oQYC(YKHO):\n for VmPb in YKHO.board.values():\n if not VmPb.value:\n return False\n return True", "def Yprr(YKHO):\n if not YKHO.is_legal():\n return False\n for VmPb in YKHO._cells_iterable():\n if VmPb == YKHO.EMPTY_CELL:\n return False\n return Tr...
[ "0.8348135", "0.82367474", "0.8045484", "0.79936874", "0.77613413", "0.76790583", "0.7624782", "0.7575733", "0.7532027", "0.7502791", "0.7450173", "0.7407652", "0.7395023", "0.72859126", "0.7277562", "0.72702205", "0.72692674", "0.72460085", "0.7218122", "0.7200171", "0.71942...
0.0
-1
Gets an artifact object by parsing metadata or creating one from uri.
def I9zd(YKHO) -> dIeA.Artifact: if YKHO.metadata_file and YKHO.output_name: return vdvU.get_artifact_from_output(YKHO.metadata_file, YKHO.output_name) else: Aofo = dIeA.Artifact(instance_schema=dIeA.DEFAULT_ARTIFACT_SCHEMA) Aofo.uri = YKHO.uri return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I9zd(YKHO) -> dIeA.Artifact:\n if YKHO.metadata_file and YKHO.output_name:\n return vdvU.get_artifact_from_output(YKHO.metadata_file, YKHO.output_name)\n else:\n Aofo = dIeA.Artifact(instance_schema=dIeA.DEFAULT_ARTIFACT_SCHEMA)\n Aofo.uri = YKHO.uri\n return Aofo", "def NMo...
[ "0.73309535", "0.63287866", "0.6281482", "0.60381526", "0.59055823", "0.58875287", "0.5870152", "0.5822744", "0.5775459", "0.57070494", "0.55334526", "0.5480483", "0.54525334", "0.54401195", "0.5386478", "0.538284", "0.5382396", "0.5366674", "0.5360486", "0.5255901", "0.52537...
0.7244576
1
Model Initializer You can declare and initialize any layer if you want.
def FIMM(YKHO, GPtr: BertConfig): super().__init__(GPtr) YKHO.num_labels = GPtr.num_labels YKHO.bert = gCSU(GPtr) YKHO.qa_outputs = U78l.Linear(GPtr.hidden_size, GPtr.num_labels) YKHO.init_weights()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fPO8(YKHO):\n pass", "def Gv23(YKHO):\n pass", "def uIcm(YKHO, C3ST):\n pass", "def FIMM(YKHO, **B2fa):\n super(wOed, YKHO).__init__(**B2fa)", "def FIMM(YKHO, GPtr):\n super().__init__()\n YKHO.model_list = []\n YKHO.model_name_list = []\n for H5ew in GPtr['Models']:\n dy...
[ "0.77228475", "0.76004523", "0.727436", "0.7254214", "0.7250149", "0.71041113", "0.69881296", "0.69840264", "0.69840264", "0.6958712", "0.6927824", "0.6921423", "0.69014156", "0.6867702", "0.6867702", "0.6867702", "0.6867702", "0.6837752", "0.6812339", "0.6773809", "0.675587"...
0.0
-1
Return the name of the sensor.
def mWFP(YKHO) -> str: return YKHO.dev.label
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'", "def mWFP(YKHO):\n return f'{YKHO._na...
[ "0.9189599", "0.91678053", "0.8901546", "0.87707126", "0.8511107", "0.84797406", "0.84445643", "0.82992035", "0.8186399", "0.8105673", "0.807955", "0.80660135", "0.8049639", "0.7702056", "0.7613606", "0.76128423", "0.7602013", "0.7602013", "0.7602013", "0.75404775", "0.751766...
0.0
-1
Return the measurement unit for the sensor.
def qraf(YKHO) -> str | None: if YKHO.dev.name.endswith('_temp'): if YKHO.dev.system.temp_unit == 'F': return GS5a.FAHRENHEIT return GS5a.CELSIUS return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO.sensor_type['unit']", "def b82i(YKHO):\n return lc9R[YKHO.sensor][1]", "def b82i(YKHO):\n return U6Th.get(YKHO._sensor_name, None)", "def b82i(YKHO):\n return U6Th.get(YKHO._sensor_name, None)", "def b82i(YKHO):\n return YKHO._sensor.unit", "def b82i(YKHO):\n ...
[ "0.9089372", "0.9006016", "0.90041214", "0.90041214", "0.8983275", "0.89551437", "0.89438057", "0.8915654", "0.8915654", "0.88822985", "0.8880866", "0.8862371", "0.8862371", "0.88586926", "0.88586926", "0.8844444", "0.8844444", "0.88438356", "0.8706195", "0.86535406", "0.8639...
0.79812896
75
Return one buffer from the output queue Blocks until a buffer is processed. Use this as an alternative to accessing `output_queue` directly.
def nrOS(YKHO) -> NRcB.Buffer: ibXc = YKHO.output_queue.get() return ibXc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gzio(YKHO):\n return YKHO.__output_queue", "def Gzio(YKHO):\n return YKHO.__output_queue", "def Gzio(YKHO):\n return YKHO.__output_queue", "def Gzio(YKHO):\n return YKHO.__output_queue", "def Gzio(YKHO):\n return YKHO.__output_queue", "def Gzio(YKHO):\n return YKHO.__output_queue", ...
[ "0.68955415", "0.68955415", "0.68955415", "0.68955415", "0.68955415", "0.68955415", "0.68779105", "0.68635947", "0.67699355", "0.67699355", "0.6705216", "0.6668473", "0.65481323", "0.6357703", "0.6357703", "0.63442063", "0.63387764", "0.63279146", "0.6314779", "0.63071185", "...
0.773006
0
Creates graph embedding from an objectfeature matrix, initialize weights with squared euclidian distances |x_i x_j|^2_2
def ggxs(EcVT, *, HzPS, NzQ3=0, e_MI=0, BVh9=True, Zh7o=True, PJWX=False, lRRB=False, SDpK=eyVz, **B2fa): lieh, t9fZ = EcVT.shape EcVT = oyIN.require(SqRE(EcVT), dtype=oyIN.float32, requirements=['C_CONTIGUOUS']) if e_MI != 0: if PJWX: print('Creating virtual vertices by k-means') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r7Qb(EcVT, bw9N):\n Ib8g = oyIN.zeros((len(bw9N), len(EcVT[list(EcVT.keys())[0]])))\n YRbF = 0\n for D70y in bw9N:\n Ib8g[YRbF] = oyIN.power(EcVT[str(D70y[0])] - EcVT[str(D70y[1])], 2)\n YRbF += 1\n return Ib8g", "def qESB(qIxc, pNZh):\n bOOl = [D70y[0] for D70y in pNZh.edges()]\...
[ "0.5758024", "0.57548845", "0.57177687", "0.5623388", "0.5577876", "0.5574585", "0.5535546", "0.55147815", "0.5509414", "0.5494725", "0.5489557", "0.5439207", "0.5389404", "0.53848916", "0.5372104", "0.5353971", "0.532885", "0.529276", "0.5291068", "0.5269377", "0.52516", "...
0.5256838
20
Creates, updates, or removes campaign budgets. Operation statuses are returned.
def QUZ6(YKHO, QePW, QpfX): QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED) QpfX.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DFbd(x0hE, di0Y):\n ozZd = x0hE.get_service('CampaignBudgetService')\n pF9s = x0hE.get_type('CampaignBudgetOperation')\n Cduq = pF9s.create\n Cduq.name = f'Interplanetary Cruise #{kxTZ()}'\n Cduq.amount_micros = 50000000\n Cduq.delivery_method = x0hE.enums.BudgetDeliveryMethodEnum.STANDARD\n ...
[ "0.6464796", "0.63622", "0.59848386", "0.5884108", "0.5866087", "0.58280236", "0.56706417", "0.5582636", "0.55547863", "0.5508841", "0.5488699", "0.5474242", "0.5391885", "0.53655475", "0.53486246", "0.5348118", "0.53460944", "0.5308283", "0.52788013", "0.51960504", "0.515808...
0.67903715
0
Returns a JSON Response, transferring 'context' to make the payload.
def EK31(YKHO, QpfX, **TIVb): return jnRN(YKHO.get_data(QpfX), **TIVb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(YKHO.convert_context_to_json(QpfX))", "def EK31(YKHO, QpfX, **TIVb):\n return igJ6(YKHO.convert_context_to_json(QpfX), content_type='application/json', **TIVb)", "def EK31(YKHO, QpfX, **TIVb):\n return igJ6(YKHO.convert_context_to_json(QpfX), conte...
[ "0.7552076", "0.7530701", "0.7530701", "0.75134236", "0.7465408", "0.74349207", "0.741543", "0.7136026", "0.70741844", "0.69158274", "0.678056", "0.67733705", "0.65795076", "0.6515663", "0.6512717", "0.6507841", "0.6491044", "0.64715093", "0.6464057", "0.6464057", "0.6464057"...
0.73916304
11
Evaluate the inputs passing through the neural network using the network's current weights. Do not pass the outputs through the activation function.
def nKQ3(YKHO, g4y1): if YKHO.bias: g4y1 = oyIN.concatenate((g4y1, oyIN.ones((g4y1.shape[0], 1))), axis=1) YKHO.outputNodes = oyIN.dot(g4y1, YKHO.weights.T) return YKHO.outputNodes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GvK6(YKHO, g4y1):\n Ylbp = g4y1\n for gEmA in range(YKHO.layersNumber):\n upAO = YKHO.weights[gEmA]\n oug5 = YKHO.biases[gEmA]\n Ylbp = kqLz(oyIN.dot(upAO, Ylbp) + oug5)\n return Ylbp", "def b27A(YKHO, g4y1):\n v5sB = []\n for YRbF in range(YKHO.hidden_layer_size):\n ...
[ "0.73332393", "0.70607084", "0.6857448", "0.6832462", "0.68274665", "0.67964464", "0.678698", "0.67697275", "0.673289", "0.6725282", "0.66532546", "0.6651004", "0.6644665", "0.66444266", "0.66286016", "0.6607871", "0.6593125", "0.65469193", "0.6541385", "0.65374684", "0.65189...
0.59410363
95
Create a temporary directory and set it as the working directory. The directory will be deleted after the test has finished.
def LSqH(YKHO): TLI7 = eJQD() Hy7s.chdir(TLI7) return TLI7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U9hK():\n return gbPf.mkdtemp()", "def zy16():\n Hy7s.chdir(gbPf.mkdtemp())", "def eJQD():\n global _TEMPDIR\n if not P0S5:\n P0S5 = gbPf.mkdtemp()\n return P0S5", "def r8ks():\n if not Hy7s.path.exists(Hy7s.path.join(Hy7s.curdir, '.tempTestDir')):\n Hy7s.mkdir(Hy7s.path.j...
[ "0.8053021", "0.7932606", "0.778138", "0.7732583", "0.76873714", "0.7661656", "0.76601213", "0.76544577", "0.7649532", "0.7639966", "0.7621081", "0.762085", "0.7582958", "0.756467", "0.7545179", "0.75436336", "0.75006163", "0.7482322", "0.7482083", "0.74478585", "0.7441297", ...
0.7606997
13
Return the transport associated with a RBClient. This allows tests to avoid reaching into
def _NcU(YKHO, x0hE): return x0hE._transport
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PdI0(YKHO):\n return YKHO._transport", "def PdI0(YKHO) -> XLc3:\n return YKHO._client.transport", "def PdI0(YKHO) -> JKRZ:\n return YKHO._client.transport", "def mo8Z(YKHO):\n try:\n return YKHO._transportprotocol\n except Exception as e:\n raise tTpl", "def PdI0(YKHO) -> h...
[ "0.720157", "0.715187", "0.68909246", "0.6889413", "0.68748546", "0.6810661", "0.6787923", "0.6758744", "0.67065334", "0.66278625", "0.6612025", "0.6505736", "0.6481111", "0.644201", "0.6407169", "0.639981", "0.6343092", "0.6295848", "0.62566745", "0.6161145", "0.61522084", ...
0.80893886
0
Get the current central core configuration.
def NMoC(YKHO): return YKHO._get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n if YKHO.allow_reco():\n return YKHO.chs_config()\n else:\n return YKHO.get_config_j(YKHO.id)", "def tgzD(YKHO):\n return YKHO.config", "def zoFt(YKHO):\n return YKHO.cp", "def GPtr(YKHO):\n return YKHO._cfg", "def tgzD(YKHO):\n if YKHO.faucet is not None:\n...
[ "0.70110065", "0.68458223", "0.6843044", "0.6755136", "0.67283046", "0.67258465", "0.67065775", "0.6673397", "0.66640633", "0.6652268", "0.66416216", "0.6632141", "0.65946966", "0.65592647", "0.65592647", "0.65592647", "0.65592647", "0.65592647", "0.65592647", "0.65592647", "...
0.0
-1
Get the current central core configuration.
def jxrn(YKHO): pmON = YKHO.router.central_core geh0 = YKHO.request(method='get', path=pmON) return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n if YKHO.allow_reco():\n return YKHO.chs_config()\n else:\n return YKHO.get_config_j(YKHO.id)", "def tgzD(YKHO):\n return YKHO.config", "def zoFt(YKHO):\n return YKHO.cp", "def GPtr(YKHO):\n return YKHO._cfg", "def tgzD(YKHO):\n if YKHO.faucet is not None:\n...
[ "0.70110065", "0.68458223", "0.6843044", "0.6755136", "0.67283046", "0.67258465", "0.67065775", "0.6673397", "0.66640633", "0.6652268", "0.66416216", "0.6632141", "0.65946966", "0.65592647", "0.65592647", "0.65592647", "0.65592647", "0.65592647", "0.65592647", "0.65592647", "...
0.0
-1
Return mean huber loss. Same as huber_loss, but takes the mean over all values in the output tensor.
def kipJ(Y8eF, aMgO, QqcX=1.0): return ZylS.reduce_mean(kxPL(Y8eF, aMgO, QqcX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kipJ(Y8eF, aMgO, QqcX=0.5):\n P1dF = Y8eF - aMgO\n try:\n N77f = ZylS.select(ZylS.abs(P1dF) < QqcX, 0.5 * ZylS.square(P1dF), QqcX * (ZylS.abs(P1dF) - 0.5 * QqcX))\n except:\n N77f = ZylS.where(ZylS.abs(P1dF) < QqcX, 0.5 * ZylS.square(P1dF), ZylS.abs(P1dF) - 0.5)\n return ZylS.reduce_m...
[ "0.6766739", "0.67017496", "0.6599769", "0.65873843", "0.6584056", "0.6450187", "0.6385766", "0.6323731", "0.6271205", "0.6257646", "0.62275946", "0.622599", "0.6188861", "0.61835504", "0.61835504", "0.6156784", "0.6153587", "0.61460465", "0.6117496", "0.6111047", "0.6105345"...
0.7829019
0
Serialises the data from the output from find_and_replace_non_unique_ids to file, using yaml.
def Ez0i(Ux0P: str, tyiL: dict, F7ba: dict) -> None: TTm1 = {'old_positions': tyiL, 'new_positions': F7ba} with open(Ux0P, 'w') as eHNT: eJb6.dump(TTm1, eHNT) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dz0o(__n6, Oc0v):\n with open(Oc0v, 'w') as _RR0:\n eJb6.safe_dump(__n6, _RR0, default_flow_style=False)", "def q5JU():\n a9EH = LKTK.mitx.name\n feu_ = gCuF.DUPLICATE_COURSES_URL\n if feu_ is not None:\n geh0 = G4JS.get(feu_)\n geh0.raise_for_status()\n KRAe = eJb6.sa...
[ "0.61111265", "0.60390544", "0.5931046", "0.59104526", "0.590826", "0.58810896", "0.58156246", "0.57599306", "0.5737577", "0.5737577", "0.5736008", "0.57307065", "0.5666501", "0.563186", "0.5608232", "0.55911064", "0.55909365", "0.55868685", "0.5571124", "0.55708694", "0.5559...
0.52302486
61
Is the field an instance of ForeignKeyField
def hCko(Emd4, q8R2): return isinstance(q8R2, V_D6.ForeignKeyField)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hCko(YKHO):\n return YKHO._foreignKey", "def NvpY(Emd4, q8R2):\n return isinstance(q8R2, V_D6.ReferenceField)", "def KnhH(YKHO, H5ew):\n return YKHO._in_keys(H5ew, YKHO._foreign_keys)", "def dcPV(YKHO, Jyyj):\n if isinstance(Jyyj, FYrf.ForeignKey):\n if YKHO._join_allowed(Jyyj.model, J...
[ "0.7385436", "0.6818853", "0.66329867", "0.639971", "0.63582295", "0.60421264", "0.59516984", "0.59092355", "0.59085447", "0.5867065", "0.58271986", "0.5801916", "0.5727197", "0.5721409", "0.56951076", "0.5641257", "0.56094176", "0.5575522", "0.5509661", "0.54601115", "0.5435...
0.84272885
0
Is the field an instance of ReferenceField
def NvpY(Emd4, q8R2): return isinstance(q8R2, V_D6.ReferenceField)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m338(YKHO):\n return YKHO.resource.is_reference()", "def CK20(BWXx):\n return isinstance(BWXx, Ky4Y)", "def IXMJ(Q6kx):\n return bool(isinstance(Q6kx, Ziit.Referential) and Q6kx.get(o_8Q, None))", "def m338(type):\n ThyU = Nl70(type)\n return isinstance(ThyU, ZdIm.reference_t)", "def m33...
[ "0.70503026", "0.6971584", "0.6860959", "0.6648625", "0.6475184", "0.64700997", "0.6323128", "0.63142174", "0.6276078", "0.62411976", "0.62350345", "0.62182367", "0.60769534", "0.6070035", "0.6047259", "0.60373795", "0.60080355", "0.59823424", "0.59769225", "0.59321284", "0.5...
0.89687663
0
Transform a list with items that can be commaseparated strings, into a pure list where the commaseparated strings become multiple items.
def pkI8(aLNT): YBMh = [] for D8Af in aLNT: for ZfUD in D8Af.split(','): YBMh.append(ZfUD) return YBMh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YYDj(ZfUD, mte6=False):\n if not ZfUD:\n return []\n elif isinstance(ZfUD, list):\n return ZfUD\n elif isinstance(ZfUD, jUrF) and ZfUD.count(','):\n if mte6:\n return [eOtH.strip() for eOtH in ZfUD.split(',')]\n else:\n return ZfUD.split(',')\n else...
[ "0.7179106", "0.66279626", "0.6516726", "0.64671993", "0.642363", "0.6416306", "0.6330024", "0.6321033", "0.6118869", "0.6109607", "0.6100593", "0.6099057", "0.608053", "0.607933", "0.6059785", "0.6039588", "0.60308623", "0.5940047", "0.5934668", "0.5923463", "0.5922006", "...
0.66680217
1
Returns the expected filename for a field mapping.
def YmNm(vXX7: str, bO6T: str) -> str: return Hy7s.path.join(bO6T, vXX7 + '.csv')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yFjF(YKHO):\n mWFP, YBcr = YKHO.fkit.filename.rsplit('.', 1)\n if YKHO._field.extension():\n YBcr = YKHO._field.extension()\n return '.'.join((mWFP, YBcr))", "def sx1R(YKHO, H5ew):\n return Hy7s.path.join(YKHO.root, H5ew[:2], H5ew)", "def yFjF(YKHO, Ilfj=None):\n if not YKHO.filename:...
[ "0.66968954", "0.61458874", "0.60980326", "0.6046104", "0.6001821", "0.5956408", "0.5899312", "0.58976954", "0.5891226", "0.5888431", "0.58561045", "0.5848892", "0.5842924", "0.584156", "0.57972866", "0.57848626", "0.5770495", "0.5770495", "0.5770495", "0.5770495", "0.5770495...
0.7250896
0
Creates a button, binds click function, then returns bound button.
def ms0h(_AKB, RRxr, oeNL=QCtM, zNig=Vjkb, _Cnz=lnPd.BU_AUTODRAW, wEf2=gJVE, mWFP='button', id=tXeu, IzVU=None, Y9ei=None): F3hE = lnPd.BitmapButton(_AKB, id, RRxr, oeNL, zNig, _Cnz, wEf2, mWFP) if IzVU: F3hE.Bind(lnPd.EVT_BUTTON, IzVU) if Y9ei: F3hE.SetToolTip(MWtk(Y9ei)) return F3hE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vVul(YKHO, esTe='default text', oUZx=None):\n mZAE = xNQ_.Button(YKHO.bottom_inner_frame, width=YKHO.button_width, height=YKHO.button_height, text=esTe)\n mZAE.grid(row=YKHO.button_row, column=YKHO.button_column)\n YKHO.button_column += 1\n if oUZx is not None:\n mZAE.config(command=oUZx)\n ...
[ "0.7435694", "0.7229133", "0.71560407", "0.7127161", "0.7080185", "0.67517674", "0.67455953", "0.67308664", "0.67093664", "0.6638193", "0.65848595", "0.6583531", "0.6475878", "0.64487845", "0.6426186", "0.6332437", "0.6271003", "0.6233129", "0.622035", "0.6219451", "0.6213258...
0.54861474
63
Creates a button, binds click function, then returns bound button.
def oD_N(_AKB, UXqs='', oeNL=QCtM, zNig=Vjkb, _Cnz=0, wEf2=gJVE, mWFP='button', id=tXeu, IzVU=None, Y9ei=None): F3hE = lnPd.Button(_AKB, id, UXqs, oeNL, zNig, _Cnz, wEf2, mWFP) if IzVU: F3hE.Bind(lnPd.EVT_BUTTON, IzVU) if Y9ei: F3hE.SetToolTip(MWtk(Y9ei)) return F3hE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vVul(YKHO, esTe='default text', oUZx=None):\n mZAE = xNQ_.Button(YKHO.bottom_inner_frame, width=YKHO.button_width, height=YKHO.button_height, text=esTe)\n mZAE.grid(row=YKHO.button_row, column=YKHO.button_column)\n YKHO.button_column += 1\n if oUZx is not None:\n mZAE.config(command=oUZx)\n ...
[ "0.7435694", "0.7229133", "0.71560407", "0.7127161", "0.7080185", "0.67517674", "0.67308664", "0.67093664", "0.6638193", "0.65848595", "0.6583531", "0.6475878", "0.64487845", "0.6426186", "0.6332437", "0.6271003", "0.6233129", "0.622035", "0.6219451", "0.62132585", "0.6154361...
0.67455953
6
Creates a checkBox, binds check function, then returns bound button.
def uKt5(_AKB, UXqs='', oeNL=QCtM, zNig=Vjkb, _Cnz=0, wEf2=gJVE, mWFP='checkBox', id=tXeu, Ahgi=None, Y9ei=None): l69l = lnPd.CheckBox(_AKB, id, UXqs, oeNL, zNig, _Cnz, wEf2, mWFP) if Ahgi: l69l.Bind(lnPd.EVT_CHECKBOX, Ahgi) if Y9ei: l69l.SetToolTip(MWtk(Y9ei)) return l69l
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ThAH(YKHO, f4IJ, mWFP, X4I6):\n return Kt_s.Checkbutton(f4IJ, variable=YKHO._tkvars[mWFP], **X4I6)", "def eN4u(YKHO, l5Ny, UW_c, MWtk, G3WP=True, etR_=True, aAh5=True):\n G0yO = x5x0.QCheckBox('' if aAh5 else l5Ny, YKHO)\n YKHO.control.layout().addWidget(G0yO)\n xFfn = None\n if aAh5:\n ...
[ "0.7246346", "0.6896391", "0.67318606", "0.67060286", "0.66508985", "0.6586965", "0.6507119", "0.64163613", "0.6388825", "0.622165", "0.6055966", "0.60486764", "0.60372674", "0.5997291", "0.58785844", "0.5864053", "0.58617795", "0.5830746", "0.57529384", "0.57421136", "0.5724...
0.666468
4
Show as save dialog and return selected path(s).
def yl3V(_AKB, leAC='', kwFm='', SqqQ='', DwPX='', _Cnz=lnPd.OPEN | lnPd.MULTIPLE): return KrmC(_AKB, leAC, kwFm, SqqQ, DwPX, _Cnz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iJ8a(YKHO):\n bo34.debug('Popping SaveDir browser')\n return XqpT.askdirectory(**YKHO._kwargs)", "def fHGa(YKHO):\n YKHO.getPath = CsJA.QFileDialog.getExistingDirectory(YKHO, u'请选择保存目录', 'D:/')\n if YKHO.getPath:\n YKHO.save_path.setText(YKHO.getPath)", "def sb6z(YKHO):\n SQP_ = lZdW....
[ "0.7375323", "0.7187845", "0.7127748", "0.70555836", "0.70133", "0.7002035", "0.6954976", "0.69275206", "0.67720366", "0.66581434", "0.6636599", "0.6636599", "0.6636599", "0.6636599", "0.6602468", "0.6563865", "0.6540085", "0.6533056", "0.65095466", "0.6434699", "0.6398928", ...
0.0
-1
Show as save dialog and return selected path(s).
def cCP6(_AKB, leAC='', kwFm='', SqqQ='', DwPX='', _Cnz=lnPd.OVERWRITE_PROMPT): return KrmC(_AKB, leAC, kwFm, SqqQ, DwPX, lnPd.SAVE | _Cnz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iJ8a(YKHO):\n bo34.debug('Popping SaveDir browser')\n return XqpT.askdirectory(**YKHO._kwargs)", "def fHGa(YKHO):\n YKHO.getPath = CsJA.QFileDialog.getExistingDirectory(YKHO, u'请选择保存目录', 'D:/')\n if YKHO.getPath:\n YKHO.save_path.setText(YKHO.getPath)", "def sb6z(YKHO):\n SQP_ = lZdW....
[ "0.7375577", "0.71880114", "0.7128151", "0.70571244", "0.7013393", "0.7001609", "0.6956035", "0.69280124", "0.67726994", "0.66591763", "0.6636251", "0.6636251", "0.6636251", "0.6636251", "0.66033393", "0.6540389", "0.65326446", "0.6509606", "0.64357394", "0.63991845", "0.6392...
0.65645885
15
Handles check/uncheck of listbox item.
def M7Ad(YKHO, tvqc): d6pt = tvqc.GetSelection() ZfUD = YKHO.items[d6pt] if YKHO.list.IsChecked(d6pt): YKHO.data.check(ZfUD) else: YKHO.data.uncheck(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gS8G(YKHO):\n for ZfUD in YKHO.getItemsToModify():\n G3WP = ZfUD.checkState() == uaAZ.Checked\n ZfUD.setCheckState(uaAZ.Unchecked if G3WP else uaAZ.Checked)", "def gS8G(YKHO):\n for ZfUD in YKHO.getItemsToModify():\n G3WP = ZfUD.checkState() == uaAZ.Checked\n ZfUD.setCheckSt...
[ "0.6389433", "0.6389433", "0.63568246", "0.615058", "0.6132804", "0.6095146", "0.6073441", "0.6053361", "0.60470706", "0.6043434", "0.6015061", "0.5820112", "0.58010817", "0.5760291", "0.57388926", "0.57261515", "0.5700131", "0.5675417", "0.566511", "0.5608375", "0.5608375", ...
0.78296554
0
Refreshes detail view associated with data from item.
def oPGs(YKHO, ZfUD=None): if YKHO.details: return YKHO.details.RefreshDetails(ZfUD) ZfUD = ZfUD or YKHO.GetDetailsItem() if ZfUD not in YKHO.data: ZfUD = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uHgi(YKHO):\n YKHO.query_header.content.text = Xbky(YKHO.shared_state)\n YKHO.layout.focus(YKHO.query_window)", "def nDRg(YKHO):\n YKHO.View._viewData = YKHO.Model.ModelViewData", "def TtYs(YKHO):\n YKHO._controller.model.refresh(YKHO._controller.model.activeIndex)", "def nUHY(YKHO, ht7m):\n ...
[ "0.5743998", "0.57085985", "0.56979203", "0.5664591", "0.5640707", "0.56036884", "0.5577011", "0.5474274", "0.5447553", "0.5367607", "0.5362728", "0.531397", "0.5282327", "0.5262525", "0.5258731", "0.5255793", "0.5245294", "0.52236515", "0.5215616", "0.5215616", "0.5215616", ...
0.6904836
0
Get the lines of code that the node and its subnodes use.
def hmx8(Q6kx): QP4x = Q6kx.lineno LyyQ = RnGR(Q6kx).lineno return LyyQ - QP4x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hz_u(YKHO, Q6kx):\n Nqlg = []\n for pmON, L5ld in Q6kx.filter(Hg6I.tree.BinaryOperation):\n if L5ld.operator == 'instanceof' and L5ld.operandl.position is not None:\n DWeO = L5ld.operandl.position.line or L5ld.operandr.position.line\n Nqlg.append(DWeO)\n for pmON, L5ld in ...
[ "0.7152288", "0.66824484", "0.66344756", "0.6440581", "0.6206178", "0.6206178", "0.61716527", "0.6089086", "0.6060339", "0.600778", "0.59911066", "0.5978553", "0.59715766", "0.5950308", "0.5936817", "0.59323347", "0.5916408", "0.5860236", "0.5823209", "0.582284", "0.5802366",...
0.5695479
25
Converts the given filenames to a TFRecord dataset.
def _qCn(QWQX, iumf, A47G, tETI, Kp4Y): assert QWQX in ['train', 'validation'] iUZQ = int(epAf.ceil(len(iumf) / float(j80k))) with ZylS.Graph().as_default(): HvOG = rzlF() with ZylS.Session('') as cb_Q: for vVrl in range(j80k): cRRG = Egiv(tETI, QWQX, vVrl) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUGu(iumf, Crrw):\n __n6 = ZylS.data.Dataset.from_tensor_slices((iumf, Crrw))\n __n6.shuffle(buffer_size=MKWZ)\n __n6 = __n6.map(bKOT, num_parallel_calls=RBrm)\n __n6 = __n6.batch(Pp2K)\n __n6 = __n6.prefetch(buffer_size=RBrm)\n return __n6", "def Vp8A(YKHO, iumf, ZiPl=None, KIH4=None, LpL4...
[ "0.71074826", "0.70367724", "0.683471", "0.6802104", "0.6760165", "0.66578007", "0.66416466", "0.6630453", "0.6606462", "0.65135723", "0.6509902", "0.64944094", "0.64616096", "0.64320374", "0.6403151", "0.6399892", "0.63923943", "0.6390357", "0.6380028", "0.6367752", "0.63493...
0.646716
12
Return host system operating system name.
def MR8c(): BQnn = a9EH.system() print('This platform OS is: ', BQnn) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mToc():\n return PSrQ.osName_", "def uR89() -> str:\n Oz1B = a9EH.system().lower()\n if Oz1B == 'linux':\n fwgd = Hy7s.uname().machine\n if fwgd.startswith('arm') or fwgd.startswith('aarch'):\n Oz1B = 'pi'\n return Oz1B + '_' + a9EH.architecture()[0]", "def pqhZ():\n ...
[ "0.8023683", "0.79081106", "0.78539985", "0.78465235", "0.7843631", "0.7767595", "0.7758105", "0.77418315", "0.7710122", "0.7709596", "0.76654994", "0.7644235", "0.7627454", "0.7567968", "0.7565096", "0.75471234", "0.74880415", "0.74880415", "0.74636155", "0.74636155", "0.743...
0.7787934
5
Take a string and convert it into a double.
def plSv(xqoZ, nrbE): try: return float(nrbE) except ValueError: return Uo7r(f"Bad Request: Wrong type, expected 'number' for parameter '{xqoZ}'")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iOox(KCHu):\n try:\n KCHu = float(KCHu)\n except Exception as e:\n RKD7.debug('Caught `{e!s}` trying to cast {s!r} to numeric'.format(**locals()))\n pass\n return KCHu", "def LTA_(rIkN: str) -> float:\n return float(rIkN.rstrip('x'))", "def nzLS(nPrm):\n QWw7 = '=%s' % F...
[ "0.6272326", "0.62525314", "0.6190242", "0.6158842", "0.61583114", "0.6114014", "0.61105806", "0.6098815", "0.6037773", "0.59816813", "0.5963465", "0.5907899", "0.5887347", "0.5861354", "0.58581877", "0.5845295", "0.5836272", "0.5803914", "0.5790063", "0.5752489", "0.57493865...
0.52444255
61
Returns a connection to the censys collection in MongoDB
def cbDj(YKHO): return YKHO.m_connection.censys
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jqi5(YKHO):\n w2B8 = DpgL.MongoClient(YKHO._config.get('mongodb', 'host'), YKHO._config.getint('mongodb', 'port'))\n NCls = w2B8[YKHO._config.get('mongodb', 'db')]\n return NCls[YKHO._config.get('mongodb', 'collection')]", "def yS5T():\n bIwZ = 'mongodb://localhost:27017/'\n x0hE = DpgL.MongoC...
[ "0.782547", "0.77023333", "0.74356955", "0.7431915", "0.73336554", "0.7140692", "0.70895797", "0.7088628", "0.70545083", "0.7052098", "0.70196015", "0.70158327", "0.6987332", "0.69450134", "0.68569076", "0.684479", "0.6824026", "0.68133295", "0.674745", "0.67216206", "0.67141...
0.69530636
13
Returns a connection to the last_ct_ids collection in MongoDB
def jBGs(YKHO): return YKHO.m_connection.ct_last_index
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N1p7():\n return PiVN('nldn').cursor()", "def PTw5():\n x0hE = BFCm(P4t4.config['MONGODB_URI'], connectTimeoutMS=P4t4.config['MONGODB_TIMEOUT'], serverSelectionTimeoutMS=P4t4.config['MONGODB_TIMEOUT'] + P4t4.config['MONGODB_TIMEOUT_EXTRA'])\n NCls = x0hE[P4t4.config['MONGODB_DATABASE']]\n xUwc = ...
[ "0.60253525", "0.5974483", "0.5882721", "0.58384573", "0.5731674", "0.5711065", "0.5651506", "0.56328756", "0.558326", "0.5581118", "0.5569706", "0.555313", "0.5533397", "0.5526276", "0.55135167", "0.5508135", "0.5498127", "0.5482214", "0.54733324", "0.5447398", "0.54338455",...
0.6688377
0
Returns a connection to the graphs_data collection in MongoDB
def aIbb(YKHO): return YKHO.m_connection.graphs_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8I6():\n P4LB = Hy7s.environ.get('DATABASE_URI', '') or 'mongodb://localhost:27017'\n x0hE = DpgL.MongoClient(P4LB)\n return x0hE.insights_db", "def jqi5(YKHO):\n w2B8 = DpgL.MongoClient(YKHO._config.get('mongodb', 'host'), YKHO._config.getint('mongodb', 'port'))\n NCls = w2B8[YKHO._config.ge...
[ "0.71303535", "0.6752937", "0.66683614", "0.6662404", "0.662421", "0.65790325", "0.6575704", "0.6527069", "0.64899653", "0.6472103", "0.64191157", "0.639359", "0.62934864", "0.6265373", "0.62650543", "0.61731476", "0.6150299", "0.61460453", "0.61189723", "0.604981", "0.602790...
0.6227059
15
Returns a connection to the tpd_graphs collection in MongoDB
def tXyg(YKHO): return YKHO.m_connection.tpd_graphs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8I6():\n P4LB = Hy7s.environ.get('DATABASE_URI', '') or 'mongodb://localhost:27017'\n x0hE = DpgL.MongoClient(P4LB)\n return x0hE.insights_db", "def jqi5(YKHO):\n w2B8 = DpgL.MongoClient(YKHO._config.get('mongodb', 'host'), YKHO._config.getint('mongodb', 'port'))\n NCls = w2B8[YKHO._config.ge...
[ "0.71814483", "0.672997", "0.6666397", "0.66459334", "0.6629866", "0.65488553", "0.65435636", "0.65285206", "0.6513681", "0.64366007", "0.6434958", "0.63366956", "0.6257432", "0.62558484", "0.62114686", "0.61865944", "0.6184602", "0.6152251", "0.61175215", "0.61008173", "0.60...
0.646508
9
Removes all tables from the soup that have no text. Returns the new soup without modifying the given one.
def b2kZ(Z9JV): return Q2wS(Z9JV, 'table')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def as8h(l5Ny):\n global cleanr\n global cleann\n global cleans\n try:\n l5Ny = rKuS(l5Ny)\n for tyNF in l5Ny.findAll('table'):\n tyNF.extract()\n l5Ny = l5Ny.text\n l5Ny = ZbWC.sub(p8Nh, '', l5Ny)\n l5Ny = ZbWC.sub(MFGl, '', l5Ny)\n l5Ny = ZbWC.sub(...
[ "0.6805244", "0.6785531", "0.6287626", "0.6243459", "0.6180959", "0.6091687", "0.6030799", "0.5865926", "0.5837205", "0.57718617", "0.5563778", "0.5542399", "0.55412924", "0.5487297", "0.5471029", "0.5457722", "0.54362434", "0.5379455", "0.5378453", "0.53756607", "0.5370078",...
0.847815
0
Removes all tags from the soup that have no text. Returns the new soup without modifying the given one.
def anGo(Z9JV): return Q2wS(Z9JV, Z9JV.name, recursive=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q2wS(Z9JV, hLhr, znBS=False):\n hmuR = rKuS(str(Z9JV))\n for TZ9E in hmuR.findAll(hLhr, recursive=znBS):\n if not TZ9E.text:\n TZ9E.extract()\n return hmuR", "def LQp6(Z9JV: bs4.BeautifulSoup):\n for TZ9E in Z9JV.find_all(['script', 'style']):\n TZ9E.decompose()", "def ...
[ "0.79349655", "0.71811426", "0.70803815", "0.7009293", "0.7009293", "0.7007247", "0.69525814", "0.6898706", "0.6779394", "0.67730886", "0.6750407", "0.67294395", "0.6721262", "0.671552", "0.67132527", "0.66762805", "0.6676049", "0.66689956", "0.66639185", "0.6656823", "0.6641...
0.7659507
1
UserPassesTestMixin func to check that currently logged in user only updates his own posts
def Iw6c(YKHO): m8z6 = YKHO.get_object() return YKHO.request.user == m8z6.author
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n if YKHO.request.user == m8z6.author:\n return True\n return False", "def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n if YKHO.request.user == m8z6.author:\n return True\n return False", "def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n ...
[ "0.76159376", "0.76159376", "0.76159376", "0.7577924", "0.7215892", "0.71615696", "0.7070172", "0.7012062", "0.69996357", "0.6907214", "0.6874985", "0.6816819", "0.6779473", "0.6739526", "0.67211556", "0.6709576", "0.66801035", "0.66151124", "0.65749997", "0.65714014", "0.656...
0.7478359
4
UserPassesTestMixin func to check that currently logged in user only updates his own posts
def Iw6c(YKHO): m8z6 = YKHO.get_object() return YKHO.request.user == m8z6.author
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n if YKHO.request.user == m8z6.author:\n return True\n return False", "def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n if YKHO.request.user == m8z6.author:\n return True\n return False", "def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n ...
[ "0.76159376", "0.76159376", "0.76159376", "0.7577924", "0.7215892", "0.71615696", "0.7070172", "0.7012062", "0.69996357", "0.6907214", "0.6874985", "0.6816819", "0.6779473", "0.6739526", "0.67211556", "0.6709576", "0.66801035", "0.66151124", "0.65749997", "0.65714014", "0.656...
0.7478359
5
r"""Computes the sum of elements across dimensions of a tensor.
def WEi6(FRUf: remote_blob_util.BlobDef, jDK_: Optional[Union[int, Sequence[int]]]=None, JsoO: bool=False, mWFP: Optional[str]=None) -> ixV5.BlobDef: mWFP = BtEI(mWFP, 'ReduceSum_') jDK_ = j07w(jDK_, FRUf.shape) if len(jDK_) == 0: return FRUf khtY = _uqo.user_op_builder(mWFP).Op('reduce_sum').In...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sum(vhpA, jDK_=None):\n raise NotImplementedError", "def D6g4(WKvO: Tensor) -> llWB:\n return ht2j.sum(WKvO, dim=0)", "def mlob(vhpA):\n return vhpA.sum(dim=0).sum(dim=-1)", "def xCvY(vhpA):\n return vhpA.sum(dim=0).sum(dim=-1)", "def sum(input, jDK_=None, yDqo=None, JsoO=False, DTEE=None):...
[ "0.7880893", "0.7370583", "0.7248803", "0.71802616", "0.70768285", "0.70659", "0.69955844", "0.68799156", "0.6748178", "0.6718928", "0.66578144", "0.6611527", "0.6543459", "0.6539365", "0.6538227", "0.6531902", "0.650106", "0.637124", "0.63639957", "0.6327988", "0.63081074", ...
0.62859255
23
Create a Bspline object.
def FIMM(YKHO, dABd, T4Wy): aoD7 = oyIN.atleast_1d(dABd) if aoD7.ndim > 1: raise ValueError('knot_vector must be Python list or rank-1 array, but got rank = %d' % aoD7.ndim) YKHO.knot_vector = aoD7 T4Wy = int(T4Wy) if T4Wy < 0: raise ValueError('order must be integer >= 0, but got %d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ThsO():\n AdZ9 = JP8B.Curve()\n AdZ9.degree = 3\n AdZ9.ctrlpts = [[5.0, 5.0], [10.0, 10.0], [20.0, 15.0], [35.0, 15.0], [45.0, 10.0], [50.0, 5.0]]\n AdZ9.knotvector = [0.0, 0.0, 0.0, 0.0, 0.33, 0.66, 1.0, 1.0, 1.0, 1.0]\n AdZ9.sample_size = Ud9B\n return AdZ9", "def XUVy(YKHO, s2mk, KJF0):\...
[ "0.73281366", "0.70782965", "0.7023574", "0.69228184", "0.6487202", "0.63032895", "0.6302113", "0.62486124", "0.6045412", "0.60236543", "0.59955406", "0.5938153", "0.59154654", "0.58759046", "0.57749164", "0.5767548", "0.5693311", "0.5595948", "0.5594315", "0.5577319", "0.555...
0.0
-1
Return the configuration of the task.
def wOGa(YKHO) -> cuzp[str, ImMB]: return {YKHO.__class__.__qualname__: YKHO._param_names}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr(YKHO):\n if YKHO._config is None:\n try:\n GTNu = SAs9.workflow.tasks[YKHO.task_type]\n except KeyError:\n GTNu = {}\n YKHO._config = SAs9.workflow.task_defaults.overlay(GTNu)\n return YKHO._config", "def tgzD(YKHO):\n return YKHO.config", "def GPtr(...
[ "0.8110393", "0.74886656", "0.743297", "0.74315304", "0.7273687", "0.72494054", "0.72271204", "0.71950656", "0.71950656", "0.71662724", "0.71640706", "0.71592134", "0.71592134", "0.71592134", "0.71592134", "0.71592134", "0.71592134", "0.71592134", "0.71592134", "0.71592134", ...
0.0
-1
Given a json, parses it into a ``Release`` object instance.
def Nw5e(Emd4, qcz6: str, U6dZ: str, pB3N: Dict[str, Any]) -> 'Release': try: rKMs: qcWV.datetime = qcWV.datetime.strptime(pB3N['inserted_at'], '%Y-%m-%dT%H:%M:%S%z') except ValueError: rKMs = qcWV.datetime.strptime(pB3N['inserted_at'], '%Y-%m-%dT%H:%M:%SZ') if pB3N['download_url'] is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pktP(Emd4, ixH4):\n return Emd4.from_dict(qQXR.loads(ixH4))", "def WC_0(zEKB):\n Csk6 = qQXR.loads(zEKB)\n return ZGCE.from_dict(Csk6)", "def pktP(Emd4, Fg_i):\n return Emd4.from_dict(qQXR.loads(Fg_i))", "def lYpi(qQXR):\n raise NotImplementedError('Returns instance')", "def pktP(Emd4, K...
[ "0.6226123", "0.59959364", "0.5992087", "0.5930515", "0.59220415", "0.59220415", "0.5918766", "0.58461064", "0.58219", "0.57936513", "0.57768416", "0.5772652", "0.5772421", "0.5766209", "0.5733358", "0.5732681", "0.5729308", "0.5729308", "0.5729308", "0.56183887", "0.5568135"...
0.6493187
0
Returns the path o the given shared library.
def CGpL(mWFP): import ctypes.util as b1kr pmON = b1kr.find_library(mWFP) if pmON is None: raise RuntimeError('Library {} not found'.format(mWFP)) if a9EH == 'darwin': return pmON print('Searching for: {}'.format(pmON)) Kp9J = ['/lib64/', '/lib/', '/usr/lib64/', '/usr/lib/', '/us...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pgPT(wohN, N6LA):\n E_oG = Hy7s.path.join(LrUC, sovd(wohN, N6LA))\n if Hy7s.name == 'nt':\n return E_oG.replace('\\\\', '/')\n return E_oG", "def OyQC(jr6f, pmON):\n H4yH = pmON.split('/')\n if len(H4yH) == 0:\n raise Exception('cannot determine library')\n Czl_ = H4yH[0]\n ...
[ "0.73209095", "0.7305792", "0.6953573", "0.6795129", "0.677516", "0.6719516", "0.6588378", "0.65015465", "0.64732563", "0.6451129", "0.6404593", "0.6404315", "0.639825", "0.63355803", "0.6322773", "0.6201567", "0.61907214", "0.6188458", "0.6153564", "0.611482", "0.61111724", ...
0.5577048
78
check for invalid chars since json won't like them.
def LTkL(Ra7F, fpBc): for vC9B in Ra7F: if vC9B in vIwR.letters: continue if vC9B in vIwR.digits: continue if vC9B == '_': continue print('your ' + fpBc + ' (' + Ra7F + ') contains invalid characters, please choose another one!') return Fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CuM0(Fb5b):\n try:\n Fb5b.encode('ascii')\n except UnicodeEncodeError:\n return True\n return False", "def xzCw(nPrm, r3_g):\n assert all((Fg_i not in nPrm for Fg_i in r3_g))", "def cuy2(YKHO):\n P61E = YKHO.reverse_hash.get_hash('123')\n YKHO.assertEqual(P61E['error'], 'all...
[ "0.6663892", "0.65883464", "0.64845735", "0.6477893", "0.64567995", "0.6448015", "0.6395608", "0.63609254", "0.6267732", "0.6266307", "0.62547594", "0.62412846", "0.6224537", "0.62145126", "0.621228", "0.61963785", "0.61885875", "0.61489767", "0.61423796", "0.6141949", "0.613...
0.56976396
64
Sets the download_forward_video_url of this SafetyEvent.
def Klza(YKHO, Klza): YKHO._download_forward_video_url = Klza
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k1Hi(YKHO, k1Hi):\n YKHO._download_inward_video_url = k1Hi", "def ilZX(YKHO, ilZX):\n YKHO._download_tracked_inward_video_url = ilZX", "def MNJP(YKHO, MNJP):\n YKHO._download_url = MNJP", "def MNJP(YKHO, MNJP):\n YKHO._download_url = MNJP", "def ywly(YKHO, MNJP):\n if MNJP is not None an...
[ "0.71895134", "0.66868573", "0.6335735", "0.624638", "0.6107497", "0.5783416", "0.57079214", "0.55839044", "0.5492797", "0.5484394", "0.54561996", "0.5448861", "0.5382462", "0.53666663", "0.53569263", "0.5281433", "0.5225917", "0.52033174", "0.51723194", "0.5118871", "0.50897...
0.8657472
0
Sets the download_inward_video_url of this SafetyEvent.
def k1Hi(YKHO, k1Hi): YKHO._download_inward_video_url = k1Hi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ilZX(YKHO, ilZX):\n YKHO._download_tracked_inward_video_url = ilZX", "def Klza(YKHO, Klza):\n YKHO._download_forward_video_url = Klza", "def MNJP(YKHO, MNJP):\n YKHO._download_url = MNJP", "def MNJP(YKHO, MNJP):\n YKHO._download_url = MNJP", "def ywly(YKHO, MNJP):\n if MNJP is not None a...
[ "0.7921948", "0.70898306", "0.635656", "0.63039243", "0.6151189", "0.5616079", "0.55175763", "0.5511", "0.5356824", "0.53234196", "0.5307592", "0.52722126", "0.525273", "0.52520794", "0.5231377", "0.51995486", "0.5195516", "0.51579744", "0.5133653", "0.5133653", "0.51084244",...
0.8604821
0
Sets the download_tracked_inward_video_url of this SafetyEvent.
def ilZX(YKHO, ilZX): YKHO._download_tracked_inward_video_url = ilZX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k1Hi(YKHO, k1Hi):\n YKHO._download_inward_video_url = k1Hi", "def Klza(YKHO, Klza):\n YKHO._download_forward_video_url = Klza", "def MNJP(YKHO, MNJP):\n YKHO._download_url = MNJP", "def MNJP(YKHO, MNJP):\n YKHO._download_url = MNJP", "def ywly(YKHO, MNJP):\n if MNJP is not None and (not ...
[ "0.82232356", "0.6819027", "0.612807", "0.6037965", "0.58802545", "0.57711107", "0.53986216", "0.5358078", "0.5297466", "0.52838945", "0.5227802", "0.5189525", "0.5168482", "0.5149672", "0.5143424", "0.51138514", "0.50846434", "0.4995515", "0.49805617", "0.49324816", "0.48966...
0.85388047
0
Sets the id of this SafetyEvent.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, id):\n if id is not None and (not isinstance(id, int)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: int', None, None)\n YKHO.__id = id\n YKHO.__key_modified['id'] = 1", "def ...
[ "0.74641925", "0.7451308", "0.73163545", "0.72352475", "0.7202481", "0.7130674", "0.7130674", "0.7130674", "0.70476913", "0.70476913", "0.70476913", "0.70476913", "0.70476913", "0.7015671", "0.70018154", "0.70018154", "0.70018154", "0.70018154", "0.70018154", "0.70018154", "0...
0.0
-1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, JS3F): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, JS3F): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Create and save a User with the given email and password.
def xWi2(YKHO, CJFr, fV9G, RnYf, PHBT, jTXt=None, **wdCM): if not (CJFr and fV9G): raise ValueError("The user's Name must be set") if not RnYf: raise ValueError('The given EmailId must be set') if not jTXt: raise ValueError('The given password must be set') if not PHBT: r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save(using=YKHO._db)\n return CBIr", "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n ...
[ "0.85437864", "0.8511318", "0.85077024", "0.8502027", "0.85019606", "0.84889764", "0.84889764", "0.84882575", "0.84882575", "0.84882575", "0.84854496", "0.84765774", "0.84759104", "0.8474798", "0.8474798", "0.8474798", "0.8474798", "0.8474798", "0.8474798", "0.8474798", "0.84...
0.0
-1
Tries to create and return a Reikna Thread object to use for running some computations on the GPU
def SlBJ(YKHO, sXTW, DHvX): try: import reikna as y_A8 except ModuleNotFoundError: if DHvX: raise YKHO.logger.warningglobal("Reikna isn't installed. Please install with 'pip install reikna' to use GPU devices.") return None try: nNXP = y_A8.cluda.ocl_api()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wUHi(YKHO, pan_=None, **B2fa):\n return nAsv(target=pan_, **B2fa)", "def rQMI(YKHO):\n pass", "def TLzD():\n return B4Is()", "def xYdp(YKHO):\n return ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu')", "def FIMM(YKHO, XEri, _Fei, WpIo):\n T6FA.Thread.__init__(YKHO)\n YKHO.co...
[ "0.6633362", "0.63477606", "0.598097", "0.5869066", "0.5738364", "0.56859076", "0.56484777", "0.56102", "0.5587253", "0.5574241", "0.5572997", "0.55295205", "0.5514328", "0.5500659", "0.5500659", "0.54142284", "0.54116327", "0.53980833", "0.5387243", "0.53567404", "0.5355811"...
0.8046737
0
Sync all models to tables.
def NHrN(): hThf(VlsX) hThf(mv1M) hThf(qZuN) hThf(UPGR) hThf(L0eh) hThf(w55X) hThf(SYRW) hThf(YM9Z) ktgO(EWvl) ktgO(peB3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jJZ4(YKHO):\n WY3t('python manage.py syncdb')\n WY3t('python manage.py migrate')\n WY3t('python manage.py syncdb --all')", "def UAaB():\n for C3ST in [C1zu, MuDO, jtTm, kImZ, KUOg, i2DM, qz4K, yQaM, oPx1, DCHL]:\n C3ST.objects.all().delete()", "def s4SU(YKHO):\n for gXYV in YKHO.files...
[ "0.6620603", "0.6476668", "0.6472778", "0.63637924", "0.6263696", "0.6245379", "0.6230628", "0.6226646", "0.61964387", "0.613512", "0.6112172", "0.61082697", "0.6099713", "0.60785496", "0.6072165", "0.6035786", "0.602687", "0.602687", "0.602687", "0.600396", "0.60036236", "...
0.732601
0
Converts a datetime into a unix timestamp
def Jj31(JRYC): return ITS7.mktime(JRYC.timetuple())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ffVq(_c1T):\n return int(ITS7.mktime(_c1T.timetuple()) * 1000)", "def gmQs(JRYC):\n azw4 = (JRYC - qcWV(1970, 1, 1)).total_seconds()\n return azw4", "def n99j(YKHO, JRYC):\n return ITS7.mktime(JRYC.timetuple())", "def _v3t(E3oo):\n _c1T = qcWV.strptime(E3oo, '%Y-%m-%d %H:%M:%S')\n retur...
[ "0.7977827", "0.79362136", "0.78430486", "0.78125924", "0.77786964", "0.75946146", "0.7588915", "0.74927264", "0.7470787", "0.7444948", "0.743911", "0.7392661", "0.7367776", "0.731468", "0.7310463", "0.72314173", "0.72071636", "0.7172963", "0.71390635", "0.71252745", "0.71217...
0.737631
12
Records a persistent mapping from Target to CMakeTargetPair. set_persisted_canonical_name allows a persistent predefined mapping from bazel target to a cmake name/alias. This allows overriding the name generated automatically by bazel_to_cmake, and is set from the third_party_http_archive target_mapping setting.
def IS_f(YKHO, MCsb: TargetId, Mwfu: CMakeTargetPair): assert Mwfu.cmake_package is not None assert Mwfu.cmake_package == YKHO.cmake_project_name assert MCsb.repository_id == YKHO.repository_id YKHO.persisted_canonical_name[MCsb] = Mwfu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XNHl(YKHO, XNHl):\n YKHO._target_name = XNHl", "def XNHl(YKHO, XNHl):\n YKHO._target_name = XNHl", "def kETx(MCsb: TargetId, fXB0: CMakePackage) -> owh2:\n SQ3m: x1iM[str] = []\n SQ3m.extend((WKvO for WKvO in IAHH.split(MCsb.package_name) if WKvO))\n SQ3m.extend((WKvO for WKvO in IAHH.split(...
[ "0.49158657", "0.49158657", "0.4695424", "0.4620354", "0.45314237", "0.45199314", "0.45183888", "0.44321936", "0.4429328", "0.44133565", "0.44092792", "0.44066602", "0.43756932", "0.43690133", "0.43675116", "0.43641126", "0.4340352", "0.4329119", "0.4303348", "0.4303009", "0....
0.70736945
0
Return a D1 system metadata object for the given resource as pyxb object.
def _a_a(YKHO): vg0C = tUSy() vg0C.access_policy = YKHO._acl vg0C.checksum_algorithm = YKHO._checksum_algorithm vg0C.checksum_value = YKHO._checksum_value vg0C.file_name = YKHO._file_name vg0C.format_identifier = YKHO._format_identifier vg0C.identifier = YKHO._identifier vg0C.replication...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yIVm(YKHO):\n return JKCy.Metadata(YKHO)", "def C0wX(_eu6):\n __n6 = pbH_.get(id=_eu6, ignore=404, _source='_meta')\n if __n6:\n return m3Mg.wraps(__n6).meta\n raise DuWf(f'dataset {_eu6} does not exist.')", "def VB17(QC2U, kFeU):\n VHwr = At8b[kFeU]\n wy4N = VHwr['retrieved_from_c...
[ "0.53266287", "0.531142", "0.53103733", "0.5187505", "0.51795727", "0.51647687", "0.5113323", "0.51082945", "0.50071", "0.49793917", "0.49203324", "0.4915369", "0.49085894", "0.49076936", "0.48395476", "0.4825762", "0.4812233", "0.47979882", "0.47979882", "0.47979882", "0.479...
0.590774
0
Returns torch.utils.data.DataLoader for train and validation datasets
def pYAW(kvra, VvAY, CtWL, uShO, Ep8u=100, I7Gy=2, rR_R=2, JMQx=None, TKLQ=None, tDlM=None, DVDJ=None, TDdi=0): if TKLQ != None and tDlM != None: if TDdi == 0: tgCD = {'train': zGPN(kvra['train'], VvAY['train'], uShO, CtWL, video2frames=JMQx['train'], video2frames_target=TKLQ['train'], visual_fe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vPeV(__n6, sTd8, w66i=0.2):\n Pnm3 = int(len(__n6) * (1 - w66i))\n K_if = len(__n6) - Pnm3\n XxFT, t4zr = ht2j.utils.data.random_split(__n6, [Pnm3, K_if])\n Pa1c = ht2j.utils.data.DataLoader(XxFT, batch_size=sTd8, shuffle=True)\n Blhr = ht2j.utils.data.DataLoader(t4zr, batch_size=1, shuffle=Fals...
[ "0.8140166", "0.8118663", "0.8117353", "0.8068962", "0.8051284", "0.79718786", "0.7915507", "0.78709507", "0.7857036", "0.7831179", "0.7831179", "0.7831179", "0.7831179", "0.7831179", "0.7831179", "0.7831179", "0.7831179", "0.7831179", "0.78008175", "0.7796776", "0.7746052", ...
0.0
-1