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
Download the COCO dataset/annotations if requested.
def tHXL(YKHO, nsY5, eYpX, RLJX): if eYpX == 'minival' or eYpX == 'valminusminival': cU5D = '{}/{}{}'.format(nsY5, 'val', RLJX) CUKU = '{}/{}{}.zip'.format(nsY5, 'val', RLJX) xLOK = 'http://images.cocodataset.org/zips/{}{}.zip'.format('val', RLJX) else: cU5D = '{}/{}{}'.format(ns...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def psr_():\n Hy7s.makedirs(Hy7s.path.join('data', 'coco', 'train'), exist_ok=True)\n Hy7s.makedirs(Hy7s.path.join('data', 'coco', 'dev'), exist_ok=True)\n Hy7s.makedirs(Hy7s.path.join('data', 'coco', 'test'), exist_ok=True)\n print('Downloading COCO dataset.')\n bD7m = 'http://images.cocodataset.or...
[ "0.72907704", "0.71969664", "0.64465344", "0.633483", "0.61967856", "0.61923695", "0.59949607", "0.59754235", "0.5947754", "0.5928412", "0.5897793", "0.5720691", "0.5706716", "0.56930333", "0.56358683", "0.5610616", "0.5585786", "0.55818254", "0.553139", "0.55226374", "0.5510...
0.51952803
50
Load instance masks for the given image. Different datasets use different ways to store masks. This function converts the different mask format to one format in the form of a bitmap [height, width, instances].
def FEdX(YKHO, r8m5): F5V2 = YKHO.image_info[r8m5] if F5V2['source'] != 'coco': return super(lbrf, YKHO).load_mask(r8m5, BJsk.COCO_NUM_CLASSES) xjrI = [] WEJA = [] XgyP = YKHO.image_info[r8m5]['annotations'] for ICn2 in XgyP: V8Gh = YKHO.map_source_class_id('coco.{}'.format(ICn2[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FEdX(YKHO, r8m5):\n U34r = YKHO.image_info[r8m5]\n GRho = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.dirname(U34r['path'])), 'masks')\n ZHfW = []\n r8hN = frG3.io.imread(Hy7s.path.join(GRho, U34r['id'] + '.png')).astype(oyIN.bool)\n ZHfW.append(r8hN)\n ZHfW = oyIN.stack(ZHfW, axis=-1)\n re...
[ "0.75807637", "0.75707793", "0.7464837", "0.74508286", "0.73990464", "0.7395329", "0.73903126", "0.733224", "0.72805625", "0.72684896", "0.72458494", "0.7228455", "0.7193414", "0.71730536", "0.7096771", "0.70429015", "0.69910985", "0.688985", "0.6886687", "0.6880056", "0.6802...
0.6600161
30
Updates this store's current state with incoming data from the network. data should be a mapping containing 'metacontacts', 'order', and 'info' structures (see comment at top of file)
def r7tU(YKHO, nPrm): XYC2 = False l9V2 = nPrm.get('metacontacts', {}) if not isinstance(l9V2, dict): RKD7.critical('invalid metacontacts dictionary') l9V2 = {} YKHO.info = oRi_(dict) QJlQ = YKHO.info if 'info' in nPrm: for G1Hx, Ty9i in nPrm['info'].iteritems(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hTdC(YKHO, nPrm):\n YKHO.channel_data.update(nPrm)\n YKHO.sync_data_update_ha()", "def QdZT(YKHO, nPrm):\n G9jH.info('update state', nPrm)\n YKHO._client.update_state(nPrm)\n YKHO._state.update(nPrm)", "def QdZT(YKHO, nPrm):\n YKHO.data.update(nPrm)", "def QdZT(YKHO, nPrm):\n pass", ...
[ "0.6476063", "0.62110347", "0.61491877", "0.6079043", "0.6079043", "0.6079043", "0.6079043", "0.60150313", "0.59856397", "0.592851", "0.5848428", "0.58295083", "0.58125436", "0.579534", "0.5732395", "0.5716034", "0.56988144", "0.5688092", "0.5683766", "0.5636451", "0.5636451"...
0.70325893
0
Get the front element.
def T7C_(YKHO): return YKHO.queue[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1", "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def vYJ5(YKHO):\n if YKHO.items:\n r...
[ "0.82009244", "0.79261875", "0.7852642", "0.7791182", "0.77886623", "0.75723046", "0.752337", "0.7510604", "0.7478953", "0.7379256", "0.7379256", "0.734284", "0.7323573", "0.7320296", "0.7291721", "0.72772557", "0.7269801", "0.72657627", "0.7253295", "0.72355044", "0.72213495...
0.66313344
60
Returns whether the queue is empty.
def lsmZ(YKHO): return YKHO.queue == []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return not YKHO._queue"...
[ "0.9270249", "0.92506766", "0.923635", "0.923635", "0.9155843", "0.9098441", "0.9095006", "0.90922606", "0.90731245", "0.9053733", "0.89205354", "0.89137155", "0.8877591", "0.88436323", "0.88436323", "0.88038146", "0.8758203", "0.87577534", "0.87310195", "0.86462456", "0.8628...
0.8835949
15
Get the last code indentation index tracked as reference.
def stj0(YKHO): return YKHO.indentindex[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHeM(YKHO) -> int:\n return YKHO._last_index", "def ISiG(YKHO):\n return YKHO._indentation_levels[-1]", "def YrHt(YKHO):\n return YKHO.last_sequence_ind_", "def Y6LH():\n return max(K9Ce) + 2", "def SpV6(YKHO):\n return len(YKHO.chain) - 1", "def nT2z(YKHO):\n return YKHO.source_fra...
[ "0.6989419", "0.68731844", "0.67984694", "0.65894204", "0.64901143", "0.64773256", "0.63904345", "0.6377186", "0.6306196", "0.6305273", "0.62961644", "0.62961644", "0.62961644", "0.62961644", "0.62961644", "0.62961644", "0.6286268", "0.62604773", "0.6259666", "0.61679256", "0...
0.66052157
3
Ensure that kafka actions are not overwritten in the IAM definition
def l1Uu(YKHO): xASv = ['kafka:BatchAssociateScramSecret', 'kafka:BatchDisassociateScramSecret', 'kafka:CreateClusterV2', 'kafka:DeleteConfiguration', 'kafka:DescribeClusterV2', 'kafka:ListClustersV2', 'kafka:ListConfigurationRevisions', 'kafka:ListKafkaVersions', 'kafka:ListScramSecrets', 'kafka:RebootBroker', 'ka...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ovgf(YKHO):\n raise NotImplementedError", "def Q6sW(YKHO, QePW):\n xASv = super().get_actions(QePW)\n if not gCuF.PUBLISHER_CODE:\n del xASv['create_cwr']\n if 'delete_selected' in xASv:\n del xASv['delete_selected']\n return xASv", "def uget(YKHO):\n dixj = NrqG('cassandra'...
[ "0.57733667", "0.5674129", "0.5623118", "0.55654687", "0.54859173", "0.5416407", "0.53971905", "0.5386766", "0.5313959", "0.5262459", "0.52369434", "0.5227309", "0.5218352", "0.5207143", "0.51959413", "0.51855755", "0.5174657", "0.51633334", "0.51326454", "0.51265115", "0.506...
0.67827463
0
View function that handles inserting new/editing previously existing comments via Ajax
def LNxR(QePW, oqOl=True): try: aM_I, AGRF = podV(QePW) except IvGy as e: Kh6j.rollback() return jnRN({'ok': False, 'error_message': str(tTpl)}) irql = aM_I.parent nQYr = irql.get_root() Vb8o = nQYr.content_object if not xcOb(QePW, aM_I): Kh6j.set_rollback(True) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pyqe():\n MNKD = int(QePW.form.get('id'))\n XeOP = QePW.form.get('action')\n if XeOP.lower() == 'none':\n XeOP = None\n Tj1O = QePW.form.get('comments')\n JdrA = ZCwo()\n JdrA.update_by_id(MNKD, XeOP, Tj1O)\n return (pz3A({'success': True}), 200)", "def Lgxa(YKHO, QePW, kBYg):\n ...
[ "0.67972344", "0.6647041", "0.663194", "0.66208017", "0.65695584", "0.6565645", "0.6551287", "0.65155035", "0.6482362", "0.6476776", "0.6422695", "0.6392417", "0.6366266", "0.6361407", "0.63019305", "0.6271926", "0.6269781", "0.6195616", "0.61950845", "0.61534417", "0.6148189...
0.6193762
19
Returns the output tensor at the given index.
def QEIX(YKHO, d6pt): T8hE = YKHO.interpreter.get_output_details()[d6pt] vhpA = oyIN.squeeze(YKHO.interpreter.get_tensor(T8hE['index'])) return vhpA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QEIX(d6pt):\n T8hE = mh5P.get_output_details()[d6pt]\n vhpA = oyIN.squeeze(mh5P.get_tensor(T8hE['index']))\n return vhpA", "def QEIX(YKHO, d6pt):\n T8hE = YKHO.model.get_output_details()[d6pt]\n vhpA = oyIN.squeeze(YKHO.model.get_tensor(T8hE['index']))\n return vhpA", "def QDxD(YKHO, d6pt...
[ "0.88110566", "0.8773681", "0.86581725", "0.8473132", "0.8446493", "0.8446493", "0.8446493", "0.75534517", "0.7171569", "0.68134344", "0.6715133", "0.6542007", "0.65397805", "0.65058136", "0.6436549", "0.6430624", "0.63161963", "0.6215072", "0.6104049", "0.6095873", "0.608248...
0.87153566
2
returns True if employee has rejoined otherwise False
def RumL(YKHO): return len(YKHO._start_date) > 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fp1n():\n return osSi('uw_employee')", "def CJbn(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.date_joined + ad72 <= qcWV.datetime.now()", "def CJbn(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.user.date_joined + ad72 <= qc...
[ "0.6680365", "0.587085", "0.58500487", "0.57760894", "0.5741819", "0.57230127", "0.56929135", "0.56781346", "0.56605685", "0.5577466", "0.55369276", "0.5530934", "0.55146056", "0.55014586", "0.54542553", "0.5392969", "0.5388207", "0.53847474", "0.5377452", "0.53713554", "0.53...
0.61320335
1
Return a string for the |cmd| list w/reasonable quoting.
def eH5C(HCmI): if isinstance(HCmI, str): return HCmI QJFU = [] for d7pR in HCmI: if isinstance(d7pR, GkAb): d7pR = str(d7pR) if ' ' in d7pR: d7pR = '"%s"' % (d7pR,) QJFU.append(d7pR) return ' '.join(QJFU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wCdD(YKHO):\n return ' '.join(Hs6x.chain([Xw26(YKHO.command, '[\\\\s^()]')], (Xw26(d7pR, '[\\\\s^]') for d7pR in YKHO.args)))", "def S5pY(oUZx):\n return ' '.join((N89E.quote(YRbF) for YRbF in oUZx))", "def QtZT(HCmI):\n U5bT = ''\n ZDAZ = 0\n for jzdc in HCmI:\n if ZDAZ == 0 and len(...
[ "0.7206458", "0.7059188", "0.6501883", "0.6480349", "0.6454796", "0.6273626", "0.6229917", "0.620037", "0.61765164", "0.6134786", "0.610084", "0.6098873", "0.60828114", "0.6048522", "0.6045765", "0.602606", "0.6023066", "0.6018371", "0.5999344", "0.59954375", "0.59915906", ...
0.67177594
2
Align trigger on display (> 0 is right of center, < 0 is left of center)
def q6zE(YKHO, ZLhD=None): if ZLhD is not None: if not isinstance(ZLhD, (int, float)): raise TypeError('delay_sec must be numeric value') YKHO.command(f'SET Horizontal Offset of Trigger {-ZLhD} sec {('LEFT' if ZLhD < 0 else 'RIGHT')} of center') else: return YKHO.query_float(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgjH(YKHO):\n if YKHO.pos != 0.0:\n YKHO.pos = 0.0", "def qxRG(YKHO):\n YKHO.rect.midbottom = YKHO.screen_rect.midbottom\n YKHO.x = float(YKHO.rect.x)", "def hgjH(YKHO):\n U7YL = YKHO.dat.flowsheet.getCenter()\n YKHO.centerOn(U7YL[0], U7YL[1])", "def VLeV():\n KUch.center()", "...
[ "0.61338747", "0.60391134", "0.5984671", "0.5806344", "0.57887024", "0.57887024", "0.57887024", "0.57887024", "0.5788586", "0.5779757", "0.5755072", "0.5707836", "0.57064337", "0.57064337", "0.5662579", "0.5656464", "0.5644351", "0.5622311", "0.5614773", "0.5609005", "0.56051...
0.0
-1
Return current sample rate in Sa/s
def fQqb(YKHO): return YKHO.query_float('ENTER Current Sample Rate (Sa/s)')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fQqb(YKHO):\n return YKHO.config.sample_rate", "def fQqb(YKHO):\n return YKHO._sample_rate", "def fQqb(YKHO):\n return YKHO._sample_rate", "def fQqb(YKHO):\n return YKHO._sample_rate", "def fQqb(YKHO, JvR2=None):\n return YKHO._sample_rate", "def IPKG(YKHO):\n return YKHO._samp_rate...
[ "0.81212515", "0.8000023", "0.8000023", "0.7969299", "0.7864392", "0.7847092", "0.782177", "0.7783444", "0.7727639", "0.76789045", "0.763086", "0.74798954", "0.7479725", "0.7386037", "0.7357198", "0.73316765", "0.7272404", "0.72663385", "0.7222648", "0.70849174", "0.6931208",...
0.86877906
0
The constructor for Particle Class
def FIMM(YKHO, dQgj=oyIN.array([0, 0, 0], dtype=float), p8Jz=oyIN.array([0, 0, 0], dtype=float), sgTf=oyIN.array([0, 0, 0], dtype=float), mWFP='A Particle', F_vt=1.0, WJkG=PtXs.elementary_charge): YKHO.name = mWFP YKHO.position = oyIN.array(dQgj, dtype=float) YKHO.velocity = oyIN.array(p8Jz, dtype=float) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, BZ33):\n YKHO.particles = BZ33", "def FIMM(YKHO, il4J):\n YKHO.par = il4J", "def il4J(YKHO) -> HnbY:\n return HnbY()", "def il4J(YKHO) -> HnbY:\n return HnbY()", "def FIMM(YKHO, e82P, yOur, FNdN, wADC, TMrS, jk7d):\n YKHO.p1 = HnbY(e82P, FNdN)\n YKHO.p2 = HnbY(yOur, wADC)\n...
[ "0.846487", "0.8411835", "0.7966551", "0.7966551", "0.7707181", "0.76299787", "0.74913836", "0.7429638", "0.73224574", "0.72718245", "0.7198867", "0.699789", "0.6965769", "0.6918702", "0.6917369", "0.68837965", "0.68785137", "0.68018293", "0.67048806", "0.6683209", "0.6675657...
0.7450836
7
Method that returns the Lorentz Factor of the particle.
def KLAX(YKHO): return 1 / abs(1 - HnbY.BetaVelocity(YKHO) * HnbY.BetaVelocity(YKHO)) ** 0.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPd6(YKHO) -> float:\n return YKHO._L", "def QbAs(WKvO, nJ9F, k0lF, tjUW, Csk6):\n return tjUW + k0lF / (((WKvO - nJ9F) / Csk6) ** 2 + 1)", "def DeCm(WKvO, KMvS):\n return 1 / gtI8.pi * 0.5 * KMvS / (0.5 * KMvS ** 2 + WKvO ** 2)", "def QZir(epBp: float) -> float:\n return epBp if epBp > 0 els...
[ "0.65476906", "0.65036815", "0.6469627", "0.638012", "0.6348522", "0.6347106", "0.6341828", "0.6334289", "0.6333599", "0.63280964", "0.62715966", "0.62416214", "0.6189796", "0.61773413", "0.61520237", "0.6139124", "0.6098995", "0.60558134", "0.60534275", "0.5988797", "0.59480...
0.8493009
0
Method that returns the total energy of the particle
def mMM6(YKHO): return epAf.sqrt(HnbY.RestEnergy(YKHO) ** 2 + (oyIN.linalg.norm(HnbY.Momentum(YKHO)) * PtXs.speed_of_light) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VYvU(YKHO):\n VYvU = -0.5 * oyIN.sum(YKHO.phi) + 0.5 * oyIN.sum(YKHO.mass * oyIN.sqrt(YKHO.particles.momentum[:, 0] ** 2 + YKHO.particles.momentum[:, 1] ** 2) ** 2)\n return VYvU", "def zrlw(YKHO):\n pY2p = uwaB.physical_constants['speed of light in vacuum'][0]\n if YKHO.mass is None:\n ra...
[ "0.84132123", "0.8266951", "0.7991302", "0.7920243", "0.7864987", "0.7718018", "0.76988596", "0.76899403", "0.76686484", "0.76565665", "0.76121676", "0.7568719", "0.7546202", "0.75326943", "0.75047314", "0.7501236", "0.74609464", "0.7411283", "0.7411283", "0.74109715", "0.738...
0.821929
2
Plots the extraction region.
def BqR1(aNZO, R2jK, **B2fa): Cwt5 = 0.1 if R2jK['shape'] == 'box': aNZO.plot([R2jK['params']['blcx']] * 2, [R2jK['params']['blcy'], R2jK['params']['trcy']], 'r-', **B2fa) aNZO.plot([R2jK['params']['blcx'], R2jK['params']['trcx']], [R2jK['params']['blcy']] * 2, 'r-', **B2fa) aNZO.plot([R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj9G(YKHO):\n pass", "def kj9G(YKHO):\n YKHO.plotOfXray().plot()", "def nUHY(YKHO):\n Mkmy = 4\n eHNT, Lh6J = QrM1.subplots(Mkmy, Mkmy, figsize=(8, 8))\n ewCu = 0\n for YRbF in range(Mkmy):\n for r845 in range(Mkmy):\n ycBG = YKHO.x[ewCu, :]\n ewCu += 1\n ...
[ "0.64836633", "0.63798314", "0.63485694", "0.63415164", "0.62981063", "0.6228685", "0.6214679", "0.61689097", "0.6165796", "0.61613774", "0.611915", "0.60805905", "0.60388714", "0.6032662", "0.6006002", "0.5967216", "0.5963205", "0.59328747", "0.5918682", "0.59050053", "0.589...
0.0
-1
Splits text from digits in a string.
def CzMB(str): bo34 = G9jH.getLogger(__name__) bo34.debug('{0}'.format(str)) kUBT = ZbWC.match('([0-9]+.?\\d{0,32}?)(d|m|s)', str) if kUBT: DumB = kUBT.groups() return (DumB[0], DumB[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B37A(KCHu):\n Ylbp = []\n for r8hN in ZbWC.finditer('(\\\\d*)(\\\\D*)', KCHu):\n for Oa1e in r8hN.groups():\n if Oa1e != '':\n try:\n Ylbp.append(int(Oa1e))\n except ValueError:\n Ylbp.append(Oa1e)\n return tuple(Ylb...
[ "0.69932103", "0.69409627", "0.6516405", "0.6497158", "0.6497158", "0.6333978", "0.62500066", "0.62345093", "0.6181007", "0.61332566", "0.6114605", "0.60910285", "0.6013863", "0.59716225", "0.59670913", "0.59426206", "0.59077483", "0.5873073", "0.58616483", "0.58398443", "0.5...
0.6069437
12
Get the current status of the pool.
def Svzv(YKHO, Bv4a): wspz = dict(idle=0, rebooting=0, reimaging=0, running=0, unusable=0, creating=0, starting=0, waiting_for_start_task=0, start_task_failed=0, unknown=0, leaving_pool=0, offline=0, preempted=0) if not YKHO.batch_client.pool.exists(pool_id=Bv4a.pool_name): return ('N/A', 'N/A', wspz) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Svzv():\n JP8r = gcVA(X9Fn('zpool status'.split()))\n CsDk = []\n for XP5J in JP8r:\n CsDk.append(jGRS.PoolStatus(XP5J))\n return CsDk", "def jGRS(YKHO):\n YKHO._refresh_state()\n return YKHO._data.get('status')", "def Jxmr(YKHO):\n return YKHO.__status", "def VLTN(YKHO):\n ...
[ "0.75640756", "0.7310082", "0.73063296", "0.7286715", "0.7214205", "0.7214205", "0.7214205", "0.72092366", "0.71747327", "0.71360385", "0.7126846", "0.71214384", "0.7102766", "0.7091428", "0.70774436", "0.70774436", "0.7071764", "0.70652586", "0.70541", "0.70418775", "0.70287...
0.71968305
8
Get a string for the status of the storage container.
def Ev_w(YKHO, Bv4a): jGRS = YKHO.get_storage_container_status(Bv4a) KCHu = 'Storage container status: {}'.format(jGRS) return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VHRi(YKHO) -> str:\n return qe4Y.get(YKHO, 'container_status')", "def Ptxh(YKHO) -> str:\n return qe4Y.get(YKHO, 'storage_bytes_status')", "def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO) -> str:\n ret...
[ "0.8081375", "0.7568696", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", "0.72568953", ...
0.7668451
1
Shows a simple scatterplot of X, colored by the classes in y. Technically, this shows the 1st three principal components of X if X has more than 3 dimensions. If X only has 2 dimensions, then just a 2dimensional scatterplot is returned. This will not produce a plot for 1 dimensional data.
def d8hr(EcVT, LVAh): wVRM = EcVT.shape[1] if wVRM == 1: print('plot_data not gonna bother with 1 dimensional data') return if wVRM == 2: QrM1.scatter(EcVT[:, 0], EcVT[:, 1], c=LVAh) QrM1.show() return if wVRM >= 4: zxDJ = EHUa(n_components=3) zxDJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VE_a(YKHO):\n EcVT = YKHO.reduce_dimension(n_components=2)\n QrM1.figure()\n QrM1.scatter(EcVT[:, 0], EcVT[:, 1])\n return QrM1", "def DaY3(EcVT, KndY):\n nPrm = rLdf.DataFrame(EcVT, columns=['x', 'y'])\n nPrm['dataset'] = KndY\n uuEx.lmplot('x', 'y', data=nPrm, hue='dataset', fit_reg=Fa...
[ "0.68430007", "0.66364133", "0.6596344", "0.6580677", "0.65084815", "0.645392", "0.6410972", "0.6298724", "0.6219223", "0.621192", "0.61827666", "0.61542743", "0.6125981", "0.60232717", "0.59843695", "0.590425", "0.59014237", "0.5894517", "0.58731264", "0.58717024", "0.586803...
0.7091436
0
This function tokenizes the input text and performs necessary cleaning.
def wr3U(l5Ny): gwet = 'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+' QfPA = ZbWC.findall(gwet, l5Ny) for bD7m in QfPA: l5Ny = l5Ny.replace(bD7m, 'urlplaceholder') s2mk = dFss(l5Ny) LkXt = GFnk() zKDd = [] for w2fL in s2mk: NM_J = LkXt.lemm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QrZ9(l5Ny):\n global cleaned_text\n BWfM = ZbWC.sub('\\\\d+', '', l5Ny)\n cN_o = ''.join([hcXw.lower() for hcXw in BWfM if hcXw not in vIwR.punctuation])\n yo5D = ZbWC.sub('\\\\s+', ' ', cN_o).strip()\n _R3r = yo5D.split()\n for GIN8 in _R3r:\n if len(GIN8) == 1:\n _R3r.remo...
[ "0.75570065", "0.7090177", "0.7041805", "0.7033546", "0.6981678", "0.696288", "0.6919464", "0.691603", "0.6914198", "0.6900118", "0.6900118", "0.6900118", "0.6900118", "0.6900118", "0.6900118", "0.68975586", "0.6874092", "0.6874056", "0.6841664", "0.6819344", "0.6789257", "...
0.0
-1
Get current date and time string.
def jn0M(VPot='%Y%m%d-%H%M%S'): return ITS7.strftime(VPot, ITS7.localtime()) + '\t'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f1rh():\n return B72W().strftime('%Y%m%d-%H%M%S')", "def ApjM():\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S', ITS7.localtime())", "def EUP2():\n wzkt = JRYC.datetime.now()\n LLuI = wzkt.strftime('%d/%m %H:%M')\n return LLuI", "def ATe7(YKHO):\n B1Il = qcWV.now()\n return B1Il.strftime...
[ "0.8746683", "0.8295901", "0.8274269", "0.8213029", "0.81925744", "0.81858903", "0.8185167", "0.81688607", "0.80856556", "0.8042373", "0.7992371", "0.78575885", "0.7848898", "0.78472054", "0.78358054", "0.779838", "0.7789519", "0.77884716", "0.77856934", "0.7751212", "0.77394...
0.0
-1
Number of days left.
def rgaJ(ulaE): yxS0 = qos3(ulaE) return yxS0 - qcWV.datetime.utcnow().date()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F4g0(YKHO):\n return 1", "def opNw(YKHO) -> int:\n return (qcWV.today() - YKHO.release_datetime).days", "def rbgk(YKHO):\n try:\n return YKHO.count_days_from_now(YKHO.current_period_ends_at)\n except AttributeError:\n return 0", "def Ezo4(YKHO) -> int:\n return qe4Y.get(YKHO,...
[ "0.7505091", "0.7279096", "0.7158447", "0.71100044", "0.7087657", "0.70665115", "0.7026382", "0.7017739", "0.6946899", "0.69389665", "0.6917387", "0.6910316", "0.6885656", "0.68470883", "0.6816302", "0.6804258", "0.6734145", "0.670508", "0.6679895", "0.6673183", "0.66385496",...
0.0
-1
In the initialization of the blanc canvas the number of rows and columns can be defined, finally the canvas is placed into the parent frame.
def FIMM(YKHO, _AKB, usx6=1, ZLJ_=1, RDKs=False, *qIxc, **B2fa): super().__init__(_AKB, *qIxc, highlightthickness=0, **B2fa) YKHO.grid_propagate(RDKs) YKHO.set_num_of_rows(usx6) YKHO.set_num_of_columns(ZLJ_) YKHO.grid(sticky='NESW')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IhH2(YKHO):\n YKHO.world_container = on8l.Frame(YKHO, width=YKHO.world_size[1], height=YKHO.world_size[0])\n YKHO.world_container.grid(row=1, column=0, sticky=on8l.W + on8l.N)\n YKHO.canvas = on8l.Canvas(YKHO.world_container, width=YKHO.world_size[1], height=YKHO.world_size[0], borderwidth=1, highligh...
[ "0.7390701", "0.7325227", "0.7284718", "0.7152517", "0.7130581", "0.7130581", "0.7130581", "0.70996016", "0.6822051", "0.6757563", "0.67494226", "0.66495013", "0.66449696", "0.6612262", "0.66097903", "0.65810424", "0.6549738", "0.6528398", "0.6521471", "0.64550036", "0.644386...
0.6334319
26
Checks whether the given ISBN10 code is valid. >>> isISBN10('9971502100') True >>> isISBN10('9971502108') False
def LwZS(Wxnj): def LIWp(Wxnj): GfdN = sum(((YRbF + 1) * int(Wxnj[YRbF]) for YRbF in range(9))) % 11 return 'X' if GfdN == 10 else str(GfdN) if not isinstance(Wxnj, str): return False if len(Wxnj) != 10: return False if not Wxnj[:9].isdigit(): return False re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _9xF(Wxnj):\n if not (isinstance(Wxnj, str) and len(Wxnj) == 10 and Wxnj[:9].isdigit()):\n return False\n return bKao(Wxnj) == Wxnj[-1]", "def bPmH(LdrC):\n LdrC = ZbWC.sub('[^0-9X]', '', LdrC.replace('x', 'X'))\n if len(LdrC) != 10:\n return False\n return False if YDbx(LdrC[:-1...
[ "0.82796675", "0.8265154", "0.7875872", "0.76414096", "0.7556362", "0.734542", "0.73319346", "0.72045577", "0.7138764", "0.7138109", "0.704493", "0.64504737", "0.6407236", "0.6328351", "0.63012135", "0.6227752", "0.6151876", "0.60880727", "0.60821617", "0.60790056", "0.601290...
0.8820598
0
>>> isISBN('9789027439642', False) False >>> isISBN('9789027439642', True) True >>> isISBN('9789027439642') True >>> isISBN('080442957X') False >>> isISBN('080442957X', False) True
def _9xF(Wxnj, uwQH=True): return VIby(Wxnj) if uwQH else LwZS(Wxnj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SNBI(wEf2):\n if OFAs(wEf2) or mwL7(wEf2):\n if wEf2[0:3] in ['978', '979'] or not s6Oc(wEf2):\n return True\n return False", "def _9xF(Wxnj):\n if not (isinstance(Wxnj, str) and len(Wxnj) == 10 and Wxnj[:9].isdigit()):\n return False\n return bKao(Wxnj) == Wxnj[-1]", "...
[ "0.7865637", "0.7720685", "0.7428631", "0.7180673", "0.71515095", "0.7052291", "0.68789357", "0.6845327", "0.6841594", "0.6841162", "0.6837004", "0.6813746", "0.68048567", "0.675236", "0.66869426", "0.6474136", "0.64726096", "0.64508146", "0.640185", "0.6327851", "0.621259", ...
0.7591935
2
>>> codes = ['0012345678', '0012345679', '9971502100', '080442957X', 5, True, 'The Practice of Computing Using Python', '9789027439642', '5486948320146'] >>> areISBN(codes) [False, True, True, True, False, False, False, True, False] >>> areISBN(codes, True) [False, False, False, False, False, False, False, True, False]...
def s9n6(cwhV, uwQH=None): tZoW = [] for Wxnj in cwhV: if isinstance(Wxnj, str): if uwQH is None: tZoW.append(_9xF(Wxnj, len(Wxnj) == 13)) else: tZoW.append(_9xF(Wxnj, uwQH)) else: tZoW.append(False) return tZoW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SNBI(wEf2):\n if OFAs(wEf2) or mwL7(wEf2):\n if wEf2[0:3] in ['978', '979'] or not s6Oc(wEf2):\n return True\n return False", "def _9xF(Wxnj, uwQH=True):\n return VIby(Wxnj) if uwQH else LwZS(Wxnj)", "def _9xF(Wxnj):\n if not (isinstance(Wxnj, str) and len(Wxnj) == 10 and Wxnj...
[ "0.74519074", "0.72815156", "0.7090671", "0.65742284", "0.65578085", "0.6463269", "0.63166803", "0.6275632", "0.6265059", "0.62025166", "0.6028817", "0.59755796", "0.58285195", "0.5798127", "0.5781443", "0.5775947", "0.570381", "0.563113", "0.5504642", "0.54982454", "0.548243...
0.8204821
0
Calculates a one's complement integer from the given input value's bits
def rD0N(WKvO, UOVU=16): return WKvO ^ (1 << UOVU) - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rD0N(wEf2):\n Fg_i = bin(wEf2)\n Fg_i = Fg_i.replace('0', 'x')\n Fg_i = Fg_i.replace('1', '0')\n Fg_i = Fg_i.replace('x', '1')\n Fg_i = Fg_i.replace('1b', '0b')\n return int(Fg_i, 2)", "def y8ay(WKvO):\n yvT9 = 1 - WKvO\n return yvT9", "def X1Vv(UnuI, uSbu=16):\n ZHfW = 2 ** (uSb...
[ "0.80567867", "0.7861335", "0.75720483", "0.7485613", "0.7387961", "0.73278314", "0.7293334", "0.70973384", "0.6932238", "0.6895889", "0.68579566", "0.6638871", "0.663495", "0.66179526", "0.6587711", "0.6580346", "0.6573302", "0.6573302", "0.6572931", "0.6572931", "0.6572931"...
0.75856197
2
Clears the prefix dictionary, this needs to be done before creating a new typecode for a message (ie. before, and after creating a new message typecode)
def qHK9(YKHO): YKHO._getPrefixDict().clear()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.footnotes = U8Lr()\n YKHO.unique_prefix += 1", "def JpJy(YKHO, xA7f, y0cW):\n print(\"remove prefix '{}'\".format(y0cW))\n eHNT = lambda WKvO: WKvO.split(y0cW, 1)[-1] if WKvO.startswith(y0cW) else WKvO\n return {eHNT(H5ew): BWXx for H5ew, BWXx in xA7f.items()}", "def SiRx(...
[ "0.661214", "0.6500577", "0.6333235", "0.60439557", "0.6028406", "0.60041296", "0.5998321", "0.59930265", "0.59643847", "0.59600914", "0.59294903", "0.5922057", "0.5883665", "0.5853302", "0.58453923", "0.5836675", "0.5826535", "0.5804847", "0.5762894", "0.5750483", "0.5747566...
0.8281239
0
Visit assignment node with at least one compound target.
def StAu(YKHO, Q6kx): lv5r = {len(pan_.elts) for pan_ in Q6kx.targets if bddX(pan_)} if len(lv5r) > 1: raise SyntaxError('Multiple assignment with different arities') lv5r = lv5r.pop() H3EF = [R2vh() for YRbF in range(lv5r)] pHmp = [] if bddX(Q6kx.value) and len(Q6kx.value.elts) == lv5r:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pqrG(YKHO, Q6kx):\n YKHO.generic_visit(Q6kx)\n g8Dk = len(Q6kx.targets) > 1\n Idpl = any(map(bddX, Q6kx.targets))\n kL6g = not Idpl\n if kL6g and g8Dk:\n return YKHO.visit_simple_assign(Q6kx)\n elif Idpl and (g8Dk or bddX(Q6kx.value)):\n return YKHO.visit_compound_assign(Q6kx)\n...
[ "0.7261902", "0.6757224", "0.64843816", "0.63659924", "0.624103", "0.62127984", "0.6177989", "0.61282015", "0.60786444", "0.604624", "0.60448", "0.5942896", "0.59183824", "0.5750465", "0.57303625", "0.5648947", "0.55960566", "0.5571266", "0.5543112", "0.5511169", "0.5493238",...
0.7176904
1
Returns a Python value contained in this atomic element.
def BWXx(YKHO): return cZ_d.deserialize(YKHO._tokens[YKHO._value_token_index()])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def baOo(YKHO):\n return aKaX.getvalue(YKHO)", "def BWXx(YKHO):\n return YKHO.__value", "def BWXx(YKHO):\n return YKHO._read()", "def BWXx(YKHO) -> ImMB:\n return YKHO._value", "def BWXx(YKHO):\n return YKHO.__value", "def BWXx(YKHO):\n return YKHO.__value", "def BWXx(YKHO):\n retu...
[ "0.75496817", "0.7389974", "0.7359954", "0.7347043", "0.733962", "0.733962", "0.7327104", "0.7327104", "0.7303945", "0.7303945", "0.7303945", "0.7290579", "0.7290579", "0.7290579", "0.7290579", "0.7290579", "0.7290579", "0.7290579", "0.7290579", "0.7290579", "0.7290579", "0...
0.68537635
87
Returns an interator of sentences being read from disk.
def Y2KJ(YKHO, Wc9F=None): for HKwb in YKHO.get_paragraphs(Wc9F): for yAmx in HKwb['sentences']: yield yAmx['tokens']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PjKH(pmON):\n Rhv4 = []\n yAmx = []\n mLGw = 0\n with T_Uj.open(pmON, 'r', 'utf8') as wCaX:\n print('Read from {:s}'.format(pmON))\n for CDKK, zFiD in enumerate(wCaX):\n assert CDKK == mLGw, 'ER'\n mLGw += 1\n zFiD = zFiD.rstrip()\n if not z...
[ "0.691375", "0.6559297", "0.6529974", "0.647818", "0.64719594", "0.6423339", "0.6421859", "0.640695", "0.63902426", "0.63782775", "0.6366519", "0.630013", "0.62926716", "0.61867374", "0.6146142", "0.60801035", "0.60796994", "0.6057292", "0.60563534", "0.605594", "0.605538", ...
0.5305037
78
Returns the ``BatchStats`` for a specific batch.
def StCe(YKHO, Wc9F): return YKHO.batch_stats[Wc9F]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sq25():\n DkWr = ZylS.add(YKHO._moving_mean, 0)\n BWz1, wE7F, xswq, bGrB = ZylS.nn.sufficient_statistics(j9VG, dCoA, keep_dims=True, shift=DkWr, name='batch_norm_ss')\n JBMS, I8JS = ZylS.nn.normalize_moments(BWz1, wE7F, xswq, DkWr, name='normalize_moments')\n return (JBMS, I8JS)", "def Qo36(YKHO)...
[ "0.65609884", "0.65114206", "0.65014577", "0.6211535", "0.59668744", "0.5954246", "0.58340657", "0.5821755", "0.57448745", "0.57334435", "0.57184416", "0.5670613", "0.56242794", "0.560072", "0.55778915", "0.5565209", "0.55386823", "0.5498818", "0.54651314", "0.5450578", "0.54...
0.89985496
0
Return a usable Boto object without creating a class around it. In the context of a krux.cli (or similar) interface the 'args', 'logger' and 'stats' objects should already be present. If you don't have them, however, we'll attempt to provide usable ones for the boto setup. (If you omit the add_boto_cli_arguments() call...
def rapo(qIxc=None, bo34=None, eQSh=None): return m9RY(**Blxc(qIxc, bo34, eQSh))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UwO4(qIxc=None, bo34=None, eQSh=None):\n return hS27(**Blxc(qIxc, bo34, eQSh))", "def Blxc(qIxc=None, bo34=None, eQSh=None):\n if not qIxc:\n wvEv = EpPs()\n TIYA(wvEv)\n qIxc = wvEv.parse_known_args()[0]\n if not bo34:\n bo34 = fZx2(name=d0Dv)\n if not eQSh:\n ...
[ "0.7120333", "0.6446755", "0.53901947", "0.53732514", "0.5315737", "0.5265874", "0.5252197", "0.522644", "0.5211605", "0.521066", "0.5205573", "0.51422757", "0.5054793", "0.5037921", "0.5032993", "0.50301266", "0.49558958", "0.49513885", "0.49364442", "0.491438", "0.49119216"...
0.81121886
0
cleans data by lowers cases and removing accentuated chars then extracts word tokens of at least 2 chars
def nRT6(KCHu): ZbWC.compile('\\b\\w\\w + \\b', ZbWC.U).findall(KCHu) KCHu.translate(UDnp('?!,.', ' ')) with open('stopwords.txt') as hwHU: hwHU = {zFiD.strip().lower() for zFiD in hwHU if zFiD != '\n'} return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OTws(przZ):\n b0j5 = M9Fq('\\\\w+')\n s2mk = b0j5.tokenize(przZ.lower())\n hwHU = set(Dhdw.corpus.stopwords.words('english'))\n i6lF = [yzQ0 for yzQ0 in s2mk if not yzQ0 in hwHU]\n return i6lF", "def O85a(Nqlg):\n return", "def thS1(TfmK):\n yHU5 = N3rN(TfmK)\n ksBH = [GIN8 for _dZy...
[ "0.6861259", "0.6852118", "0.67767626", "0.6744147", "0.67203104", "0.6711012", "0.6704925", "0.66891634", "0.66849273", "0.6602998", "0.6546478", "0.65269834", "0.65201867", "0.65182596", "0.64966595", "0.6496125", "0.64865", "0.6471367", "0.6440876", "0.64231676", "0.640726...
0.60811347
61
Construct and return an empty network model.
def X7er(OZUW=kQbG): return griF({'id': OZUW, 'subnets': [], 'ports': [], 'tenant_id': 'calico', 'mtu': fGzC.DEFAULT_NETWORK_MTU})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQs7():\n\n class Net(U78l.Cell):\n\n def l_xx(YKHO, WKvO, LVAh):\n return WKvO\n Zxma = Zgf_()\n hKzX = wOed(Zxma)\n return hKzX", "def TCIu(YKHO):\n print('Creating network, changing data will have no effect beyond this point.')\n exwG = PMix.IMNN(parameters=YKHO.paramet...
[ "0.703458", "0.6730677", "0.6650045", "0.66165984", "0.65974486", "0.65902346", "0.6558993", "0.645672", "0.6456341", "0.6397473", "0.6397053", "0.63881767", "0.6345971", "0.6332582", "0.63210064", "0.62721264", "0.62575936", "0.6252461", "0.62491995", "0.6246717", "0.6237882...
0.749267
0
Construct and return a copy of an existing network model.
def vjWw(xGvx): return griF({'id': xGvx.id, 'subnets': xGvx.subnets, 'ports': xGvx.ports, 'tenant_id': xGvx.tenant_id, 'mtu': xGvx.mtu})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n wJ4v = wOed(name=YKHO.name, functions=jth9.deepcopy(YKHO.functions), domain=YKHO.domain.copy(), density=YKHO.density.copy())\n wJ4v.update()\n return wJ4v", "def i3ak(YKHO):\n return _VfD.Model_clone(YKHO)", "def jth9(YKHO):\n K2_r = Xyjm()\n K2_r.add_nodes_from(YKHO.nodes()...
[ "0.7690615", "0.7457661", "0.7384238", "0.7347668", "0.69865394", "0.6961353", "0.6951828", "0.6855561", "0.6832441", "0.6813686", "0.6811424", "0.6808021", "0.66637117", "0.66387904", "0.66021425", "0.6570278", "0.65329057", "0.65179616", "0.6502068", "0.64940655", "0.644854...
0.68326706
8
Get data for the specified subnet.
def vgaU(YKHO, pyfM): na1r.debug('Get subnet %s', pyfM) if pyfM not in YKHO.subnets_by_id: return None nPrm = YKHO.subnets_by_id[pyfM] na1r.debug('Subnet data: %s', nPrm) mVJr = 6 if ':' in nPrm['cidr'] else 4 VWZy = {'enable_dhcp': True, 'ip_version': mVJr, 'cidr': nPrm['cidr'], 'dns_na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qwn3(YKHO, VWZy, **Vlb9):\n return YKHO.get(YKHO.subnet_path % VWZy, params=Vlb9)", "def BHVZ(YKHO, UkFk='dummy_subnet', pyfM=None):\n Qi1G = 'http://' + YKHO.host_ip + ':9696/v2.0/subnets'\n kkzV = {'x-auth-token': YKHO.project_info['token_project']}\n x4rd = None\n Aofo = YKHO.request('GET',...
[ "0.65944624", "0.6546326", "0.64507025", "0.61743736", "0.6011078", "0.6010956", "0.58433086", "0.58370644", "0.57784945", "0.57641536", "0.5734289", "0.57341164", "0.5653118", "0.56335646", "0.556625", "0.556153", "0.5557205", "0.54509723", "0.54425985", "0.5385783", "0.5367...
0.6255019
3
>>> isinstance(lab8_q3(), str) True
def C01e(): return '\n YOUR EXPLANATION HERE\n '
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sd4x(nPrm):\n return len(nPrm) and isinstance(I4W5(nPrm).flat[0], str)", "def sd4x(d7pR):\n return isinstance(d7pR, SnBA.StringTypes)", "def J1TN(YKHO, KCHu):\n return isinstance(KCHu, type(str()))", "def ka6R(YKHO):\n YKHO.assertIsInstance(ietf.Card(10, 1).__str__(), str)", "def ArHY(WKvO)...
[ "0.69046277", "0.66528326", "0.6531326", "0.6531229", "0.6520508", "0.6515218", "0.6508465", "0.6506103", "0.64962703", "0.64860326", "0.647134", "0.6461159", "0.64014983", "0.636057", "0.6318982", "0.63128656", "0.6281687", "0.6279039", "0.626913", "0.6251587", "0.6250445", ...
0.0
-1
>>> isinstance(lab9_q3(), str) True
def rpxe(): return '\n YOUR EXPLANATION HERE\n '
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J1TN(WKvO):\n return isinstance(WKvO, str)", "def ka6R(YKHO):\n YKHO.assertIsInstance(ietf.Card(10, 1).__str__(), str)", "def ArHY(WKvO):\n if type(WKvO) == str:\n return True\n else:\n return False", "def sd4x(nPrm):\n return len(nPrm) and isinstance(I4W5(nPrm).flat[0], str)...
[ "0.67149335", "0.66803926", "0.66799915", "0.66795844", "0.6666466", "0.6657703", "0.662522", "0.6536551", "0.64925563", "0.6467223", "0.64577836", "0.64136744", "0.64020425", "0.6394686", "0.63700676", "0.63617307", "0.63562024", "0.6313202", "0.62957275", "0.6292955", "0.62...
0.0
-1
>>> isinstance(lab10_q3(), str) True
def WSo4(): return "\n Make a 'total' to add up the total revenue as while loop plays.\n\titem = qvm.dispense, makes it so item is the juice. \n\tWhile item: because if there is a juice this while loop will continue. If there aren't two fruits, there wont be a juice so while loop stops.\n\ttotal += qvm.collect_m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ka6R(YKHO):\n YKHO.assertIsInstance(ietf.Card(10, 1).__str__(), str)", "def J1TN(WKvO):\n return isinstance(WKvO, str)", "def ArHY(WKvO):\n if type(WKvO) == str:\n return True\n else:\n return False", "def J1TN(YKHO, KCHu):\n return isinstance(KCHu, type(str()))", "def sd4x...
[ "0.6767156", "0.662008", "0.65915257", "0.65897584", "0.6570212", "0.6540568", "0.6512019", "0.6466866", "0.6387287", "0.6369226", "0.634048", "0.6340179", "0.6338254", "0.633478", "0.6307848", "0.6269958", "0.6269275", "0.6240808", "0.6229523", "0.62286043", "0.62249273", ...
0.0
-1
If an iteriter_op is given an iterator as input, no exception should be thrown, and we should return the wrapped function's output.
def TFrh(): @IPme.iteriter_op def eHNT(WKvO): return iter([4, 5, 6]) Aofo = eHNT(iter([1, 2, 3])) assert isinstance(Aofo, g760.abc.Iterator), f'{Aofo}' assert list(Aofo) == [4, 5, 6]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PKAm():\n\n @IPme.iteriter_op\n def eHNT(WKvO):\n return [4, 5, 6]\n with trZe.raises(ValueError):\n Aofo = eHNT(iter([1, 2, 3]))", "def b8Bn():\n\n @IPme.iteriter_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n with trZe.raises(ValueError):\n eHNT([1, 2, 3])", ...
[ "0.734651", "0.7288327", "0.6928596", "0.6799886", "0.66857606", "0.6591529", "0.6551025", "0.6511721", "0.63353145", "0.59754914", "0.5973058", "0.59268594", "0.5852119", "0.58467436", "0.5843037", "0.583689", "0.57858115", "0.5740564", "0.5712443", "0.56730723", "0.5633042"...
0.74068475
0
If an iteriter_op returns something besides an iterator as output, raise a ValueError.
def PKAm(): @IPme.iteriter_op def eHNT(WKvO): return [4, 5, 6] with trZe.raises(ValueError): Aofo = eHNT(iter([1, 2, 3]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8Bn():\n\n @IPme.iteriter_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n with trZe.raises(ValueError):\n eHNT([1, 2, 3])", "def FqoV():\n\n @IPme.listiter_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n with trZe.raises(ValueError):\n eHNT(iter([1, 2, 3]))", ...
[ "0.76426315", "0.73116994", "0.7197692", "0.69156325", "0.6845044", "0.6789451", "0.63753885", "0.6361283", "0.62555766", "0.6095181", "0.6085253", "0.59735376", "0.5929287", "0.5857033", "0.58470154", "0.58267", "0.57885355", "0.57856303", "0.57807213", "0.576038", "0.573720...
0.7515847
1
If a listlist_op is given something besides a list as input, raise a ValueError.
def m0uT(): @IPme.listlist_op def eHNT(WKvO): return [4, 5, 6] with trZe.raises(ValueError): eHNT(iter([1, 2, 3]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xv5_():\n\n @IPme.listlist_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n with trZe.raises(ValueError):\n Aofo = eHNT([1, 2, 3])", "def QTWt(khtY):\n return isinstance(khtY, (list, tuple))", "def ef1_(YKHO, list):\n H5ew = ('test', 'demo', 'list_key')\n try:\n H5ew, ...
[ "0.6896146", "0.6843723", "0.6687192", "0.66674805", "0.6584861", "0.650589", "0.64047855", "0.6385669", "0.6318132", "0.62996775", "0.6293289", "0.62533414", "0.6251247", "0.62425464", "0.62239265", "0.62199765", "0.6166311", "0.61608076", "0.6119108", "0.6056942", "0.600924...
0.71428686
0
If a listiter_op is given something besides a list as input, raise a ValueError.
def FqoV(): @IPme.listiter_op def eHNT(WKvO): return iter([4, 5, 6]) with trZe.raises(ValueError): eHNT(iter([1, 2, 3]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m0uT():\n\n @IPme.listlist_op\n def eHNT(WKvO):\n return [4, 5, 6]\n with trZe.raises(ValueError):\n eHNT(iter([1, 2, 3]))", "def gPu6():\n\n @IPme.iterlist_op\n def eHNT(WKvO):\n return [4, 5, 6]\n with trZe.raises(ValueError):\n eHNT([1, 2, 3])", "def Xv5_():...
[ "0.76405627", "0.7451966", "0.7407579", "0.73711157", "0.7272287", "0.6842472", "0.67784035", "0.6713179", "0.65655285", "0.6331", "0.62677497", "0.62505025", "0.6126729", "0.6060513", "0.60524344", "0.60413057", "0.5994478", "0.5923151", "0.5910163", "0.5815476", "0.5803793"...
0.75528175
1
If a listiter_op returns something besides an iterator as output, raise a ValueError.
def tx6r(): @IPme.listiter_op def eHNT(WKvO): return [4, 5, 6] with trZe.raises(ValueError): Aofo = eHNT([1, 2, 3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FqoV():\n\n @IPme.listiter_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n with trZe.raises(ValueError):\n eHNT(iter([1, 2, 3]))", "def gY9k():\n\n @IPme.iterlist_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n with trZe.raises(ValueError):\n Aofo = eHNT(iter([1,...
[ "0.800803", "0.7905361", "0.77610767", "0.77083707", "0.77032125", "0.75699127", "0.7554352", "0.70976245", "0.70190036", "0.67172563", "0.6027455", "0.58875996", "0.5732145", "0.57207274", "0.57120436", "0.57120436", "0.5675813", "0.5638414", "0.5630779", "0.5580102", "0.555...
0.77557844
3
If an iterlist_op is given an iterator as input, no exception should be thrown, and we should return the wrapped function's output.
def Vg7O(): @IPme.iterlist_op def eHNT(WKvO): return [4, 5, 6] Aofo = eHNT(iter([1, 2, 3])) assert isinstance(Aofo, list), f'{Aofo}' assert Aofo == [4, 5, 6]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FqoV():\n\n @IPme.listiter_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n with trZe.raises(ValueError):\n eHNT(iter([1, 2, 3]))", "def B9ai():\n\n @IPme.listiter_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n Aofo = eHNT([1, 2, 3])\n assert isinstance(Aofo, g760.ab...
[ "0.76466507", "0.76008874", "0.7570353", "0.7508546", "0.74234086", "0.7396815", "0.7382202", "0.73407215", "0.7291801", "0.72297966", "0.6824224", "0.666192", "0.6128793", "0.60040385", "0.5923186", "0.58794075", "0.58676404", "0.57020146", "0.56718487", "0.5595165", "0.5567...
0.76173055
1
If an iterlist_op is given something besides an iterator as input, raise a ValueError.
def gPu6(): @IPme.iterlist_op def eHNT(WKvO): return [4, 5, 6] with trZe.raises(ValueError): eHNT([1, 2, 3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FqoV():\n\n @IPme.listiter_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n with trZe.raises(ValueError):\n eHNT(iter([1, 2, 3]))", "def gY9k():\n\n @IPme.iterlist_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n with trZe.raises(ValueError):\n Aofo = eHNT(iter([1,...
[ "0.78835404", "0.7705365", "0.7613191", "0.7498913", "0.7423901", "0.74038625", "0.73198646", "0.67817676", "0.6730599", "0.6505109", "0.5887717", "0.5857515", "0.58052135", "0.5753452", "0.5708452", "0.5689192", "0.56823623", "0.5681861", "0.56544685", "0.56081665", "0.56028...
0.7661832
2
If an iterlist_op returns something besides a list as output, raise a ValueError.
def gY9k(): @IPme.iterlist_op def eHNT(WKvO): return iter([4, 5, 6]) with trZe.raises(ValueError): Aofo = eHNT(iter([1, 2, 3]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m0uT():\n\n @IPme.listlist_op\n def eHNT(WKvO):\n return [4, 5, 6]\n with trZe.raises(ValueError):\n eHNT(iter([1, 2, 3]))", "def Xv5_():\n\n @IPme.listlist_op\n def eHNT(WKvO):\n return iter([4, 5, 6])\n with trZe.raises(ValueError):\n Aofo = eHNT([1, 2, 3])", ...
[ "0.77509636", "0.76935655", "0.76132554", "0.7517712", "0.7484861", "0.7235555", "0.70362914", "0.7030836", "0.6869668", "0.66613793", "0.6354757", "0.630842", "0.6297937", "0.61403257", "0.60431194", "0.6029395", "0.6019079", "0.6019079", "0.59903765", "0.5965533", "0.595312...
0.75992316
3
Constant evaluation should ignore the existing fitness function and set the fitness of all individuals to the same value.
def CZ2k(): BEuN = gwXj BEuN = IPme.const_evaluate(BEuN, value=123456789.0) for QyVM in BEuN: assert trZe.approx(123456789.0) == QyVM.fitness
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L69a(YKHO):\n for DpUl in YKHO.population:\n if DpUl['fitness'] is None:\n DpUl['fitness'] = YKHO.op.fitness(DpUl['individual'])", "def wkbQ(YKHO):\n pass", "def b7La(YKHO, wkbQ):\n YKHO.fitness = wkbQ(YKHO.phenotype)", "def zYm9(YKHO):\n for lJZH in YKHO.population:\n ...
[ "0.74931896", "0.7079468", "0.69477665", "0.6825639", "0.67214495", "0.6705714", "0.6655073", "0.6554352", "0.6519272", "0.6481715", "0.6447769", "0.62911665", "0.61991894", "0.6193287", "0.6174193", "0.6151497", "0.6150842", "0.6150842", "0.610781", "0.60786945", "0.607092",...
0.6333001
11
Builds an projection block as described in Deep Residual Learning for Image Recognition (2015) You can assume the input data will have shape (224, 224, 3) All convolutions inside and outside the blocks should be followed by batch normalization along the channels axis and a rectified linear activation (ReLU), respective...
def uwZX(): MuED = nMvt.initializers.he_normal(seed=None) EcVT = nMvt.Input(shape=(224, 224, 3)) gEmA = nMvt.layers.Conv2D(filters=64, kernel_size=(7, 7), strides=(2, 2), padding='same', kernel_initializer=MuED)(EcVT) gEmA = nMvt.layers.BatchNormalization(axis=3)(gEmA) gEmA = nMvt.layers.Activation(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HuZ5(g4y1, KUnM, Y9ns, ktiQ, FEri, wH3T):\n PWHU = g4y1\n if ktiQ is not None:\n PWHU = ktiQ(g4y1)\n PWHU = idFg(inputs=PWHU, training=Y9ns, data_format=wH3T)\n g4y1 = yN4c(inputs=g4y1, filters=KUnM, kernel_size=3, strides=FEri, data_format=wH3T)\n g4y1 = idFg(g4y1, Y9ns, wH3T)\n g...
[ "0.6879483", "0.6712965", "0.6681837", "0.6617764", "0.65615404", "0.65488005", "0.6432119", "0.64201134", "0.6342974", "0.6342974", "0.63249046", "0.63225436", "0.62239516", "0.6200089", "0.6196667", "0.6185265", "0.61718935", "0.6138998", "0.61151755", "0.6111726", "0.60973...
0.57862914
74
Data loader. Note that batchsize is the local (per GPU) batchsize.
def rgP6(__n6, c2vO, I7Gy, lM6R, VgNf=None): aDYX = YBs1.get_data_parallel_world_size() fdMZ = YBs1.get_data_parallel_rank() RFg8 = ht2j.utils.data.distributed.DistributedSampler(__n6, num_replicas=aDYX, rank=fdMZ) zQKy = ht2j.utils.data.DataLoader(__n6, batch_size=c2vO, sampler=RFg8, shuffle=False, num...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zQKy(YKHO, Ep8u: int=1, cNjm: int=0, Bv_w: bool=True) -> pVAc:\n nPrm = YKHO.data\n gMbG = []\n for bGrB, BkYD in nPrm.items():\n gMbG.append(BkYD.dataset())\n if len(gMbG) < 1:\n raise FileNotFoundError('no datasets available for this model to create a loader from')\n return pVAc(...
[ "0.7391102", "0.7355233", "0.7307113", "0.7191186", "0.7188778", "0.71511465", "0.7052301", "0.69866663", "0.6968007", "0.69573814", "0.6949311", "0.69279605", "0.6880958", "0.68485147", "0.6814167", "0.68017983", "0.6782323", "0.6779926", "0.67751354", "0.67704856", "0.67450...
0.6592258
37
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep", "def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join...
[ "0.8370706", "0.8281029", "0.8249505", "0.81395245", "0.81143504", "0.80990154", "0.8094557", "0.8080119", "0.8068112", "0.8067861", "0.806291", "0.806291", "0.806291", "0.806291", "0.806291", "0.806291", "0.806291", "0.80574095", "0.80550015", "0.80407953", "0.80257154", "...
0.8045328
29
Returns isoformat string of beginning of past x day(s). Assumes Europe/Amsterdam locale.
def ItX3(YKHO, Sm0u=1): vgXP = qcWV.datetime.utcnow().date() - qcWV.timedelta(days=Sm0u - 1) rIAI = '+02:00' yKcO = qcWV.datetime(vgXP.year, vgXP.month, vgXP.day) return yKcO.isoformat() + rIAI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c4lW(YKHO, Sm0u):\n czZv = qcWV.now() - fCoM(days=Sm0u)\n return czZv.isoformat()", "def Y0Lr(lTsW):\n if lTsW < 367:\n return '#Date prior to 1901-01-01'\n return _c1T.fromordinal(693594 + int(lTsW)).isoformat()", "def Jv5M(YKHO):\n return YKHO.strftime(YKHO.FORMAT_PRECISION_DAY)", ...
[ "0.58592373", "0.57152444", "0.57139474", "0.55301887", "0.5470207", "0.5442907", "0.5421798", "0.54160655", "0.53812414", "0.53812414", "0.5367235", "0.5362113", "0.5331076", "0.5325458", "0.5298497", "0.5294768", "0.5270717", "0.5265063", "0.52353704", "0.5232425", "0.52232...
0.5205546
22
Checks if the shards_metadata is compatible with the provided tensor dims.
def r3uf(gzGT, LeQ8) -> None: t_6o = len(LeQ8) C5UY = len(gzGT[0].shard_offsets) if t_6o != C5UY: raise ValueError(f'Rank of tensor is {t_6o}, but shards rank is {C5UY}') LnOX = 0 for OWrw in gzGT: FyiY = 1 for YRbF, hXvC in enumerate(OWrw.shard_lengths): FyiY *= ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xquo(Ghvf, Htse, eJTR):\n if isinstance(Htse, str):\n Htse = [Htse]\n if not all((tpio in Ghvf.dims for tpio in Htse)):\n raise oTVD(f'Your {eJTR} object must contain the following dimensions at the minimum: {Htse}')\n return True", "def Fz8m(YKHO, ta28):\n for YRbF in range(YKHO._r...
[ "0.70428336", "0.6533978", "0.6469752", "0.6321749", "0.6268698", "0.6185657", "0.6185021", "0.605668", "0.5926702", "0.5918645", "0.5908207", "0.58480775", "0.57827824", "0.5772328", "0.5762425", "0.57193136", "0.57082486", "0.5685897", "0.5651482", "0.5640664", "0.562222", ...
0.83699447
0
Push the item in the front of the deque
def wbHw(YKHO, ZfUD): YKHO._items.insert(0, ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, ZfUD):\n super().add_item_to_front(ZfUD)", "def byB9(YKHO, tTpl):\n if YKHO.size_ >= YKHO.capacity_:\n YKHO.resize_front()\n YKHO.data_[YKHO.front_] = tTpl\n YKHO.size_ += 1\n elif YKHO.front_ == -1 and YKHO.size_ == 0:\n YKHO.front_ = 0\n YKHO.back_ = 0...
[ "0.7934391", "0.79339534", "0.7679568", "0.74891657", "0.74482065", "0.7417094", "0.7404675", "0.7363072", "0.7294415", "0.72747624", "0.7242487", "0.7242487", "0.72093624", "0.71174246", "0.707182", "0.7052566", "0.70389926", "0.70353955", "0.701858", "0.70012", "0.6997899",...
0.8026828
0
Return True if the deque is empty.
def FBfn(YKHO): return len(YKHO._items) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.deque) == 0", "def lsmZ(YKHO) -> bool:\n return len(YKHO._deque) == 0", "def lsmZ(YKHO) -> bool:\n return YKHO.que == []", "def FBfn(YKHO) -> bool:\n return YKHO.peek(1) == []", "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n ret...
[ "0.92402023", "0.9101068", "0.86111414", "0.8478603", "0.8439654", "0.83985174", "0.83917534", "0.83707136", "0.83707136", "0.8296455", "0.8283977", "0.8280236", "0.8280236", "0.8274057", "0.82652426", "0.8263581", "0.8238711", "0.8222698", "0.82093155", "0.82078135", "0.8205...
0.0
-1
Return the length of the deque.
def szAg(YKHO): return len(YKHO._items)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return len(YKHO.deque)", "def szAg(YKHO):\n return len(YKHO.deque)", "def szAg(YKHO) -> int:\n return len(YKHO._data_queue)", "def szAg(YKHO):\n return len(YKHO.cumulative_length)", "def u54L(YKHO):\n return len(YKHO.container)", "def szAg(YKHO):\n return len(YKHO._que...
[ "0.86527514", "0.86125225", "0.74804485", "0.7163367", "0.7139454", "0.7136019", "0.7052766", "0.7052766", "0.70522916", "0.7034566", "0.7034566", "0.70223486", "0.70223486", "0.7014049", "0.7014049", "0.7014049", "0.7014049", "0.70028573", "0.6997984", "0.6995006", "0.698651...
0.0
-1
Return the representation of the deque
def wHJl(YKHO): return 'Front -> ' + repr(YKHO._items) + ' <- Rear'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return 'Deque([{0}])'.format(','.join((str(ZfUD) for ZfUD in YKHO)))", "def wHJl(YKHO):\n return 'Deque([{0}])'.format(','.join((str(ZfUD) for ZfUD in YKHO)))", "def zAg0(YKHO):\n return str(YKHO.deque)", "def wHJl(YKHO):\n return 'Deque({})'.format(YKHO.length())", "def wHJl(...
[ "0.82023656", "0.82023656", "0.7984831", "0.7795593", "0.6640371", "0.6613635", "0.65820986", "0.64977366", "0.6457218", "0.64357615", "0.6344762", "0.6335218", "0.63308865", "0.6327256", "0.6327256", "0.6296222", "0.62726325", "0.62721485", "0.6218142", "0.61443806", "0.6133...
0.60730755
29
Returns the full path for a relative path
def t_yv(xAKo, pmON): return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), pmON))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NE63(pmON: str):\n return Hy7s.path.relpath(pmON, phdL())", "def Qth0(YKHO, pmON):\n return ZbWC.sub(YKHO.path_regex, '', pmON).lstrip(Hy7s.sep)", "def OyQC(t_yv=None):\n mSqg = Hy7s.path.dirname(Hy7s.path.dirname(xAKo))\n if t_yv is None:\n return mSqg\n else:\n return Hy7s.pa...
[ "0.8088731", "0.8012601", "0.7939858", "0.7906186", "0.78002477", "0.77519965", "0.77290946", "0.76823074", "0.7662462", "0.76563984", "0.76526093", "0.76337326", "0.7589994", "0.7561121", "0.7560908", "0.7560908", "0.7560908", "0.7560908", "0.7560908", "0.755059", "0.7486504...
0.7933692
3
Returns an array of full paths for a relative path with globs
def GHAV(xAKo, LUIn): return SC2F.glob(t_yv(xAKo, LUIn))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VWrm(qaEx):\n return SC2F(pmON.join(qaEx, '*'))", "def SC2F(pmON: str) -> list[str]:\n Vb5F, t_yv = PRlN(pmON)\n return YWvJ(list[str], Vb5F.glob(t_yv))", "def VWrm(mXDZ):\n if not LXuR:\n mXDZ = '../' + mXDZ\n RRlC = SC2F.glob(Hy7s.path.normpath(Hy7s.path.join(Os5O, mXDZ)))\n retu...
[ "0.78830874", "0.74837524", "0.73281705", "0.7273039", "0.7240019", "0.7209716", "0.7107599", "0.7090277", "0.70357305", "0.69723034", "0.69063663", "0.68546826", "0.68303967", "0.6820884", "0.68082666", "0.6802939", "0.6779365", "0.67275643", "0.6712124", "0.67007935", "0.66...
0.7740084
1
Merge dictionaries, presumes no overlap in keys
def roQF(irHP): return dict(Hs6x.chain.from_iterable([WKvO.items() for WKvO in irHP]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSKQ(WbPA, S69B):\n TTm1 = dict(WbPA)\n TTm1.update(S69B)\n return TTm1", "def RSKQ(WbPA, S69B):\n TTm1 = dict(WbPA)\n TTm1.update(S69B)\n return TTm1", "def vGZu(WbPA: dict, S69B: dict):\n if WbPA is None or S69B is None:\n return None\n WLxZ = WbPA.keys()\n AyHA = S69B.k...
[ "0.76170945", "0.76170945", "0.7527569", "0.749968", "0.7440527", "0.7404144", "0.73930734", "0.73853135", "0.73769873", "0.73720855", "0.7343238", "0.72534424", "0.7251481", "0.72268325", "0.7226796", "0.72029424", "0.7192793", "0.71703434", "0.7158246", "0.71368694", "0.712...
0.6827089
59
Sets the id of this EscrowTransactionResponse.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.__id = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n if id is not None and (not isinstance(id, int)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: i...
[ "0.7112411", "0.68683225", "0.6860865", "0.6837625", "0.6821203", "0.67498773", "0.6711314", "0.6711314", "0.6711314", "0.6711314", "0.6711314", "0.6605837", "0.6605837", "0.6605837", "0.6605837", "0.6605837", "0.6605837", "0.6605837", "0.6605837", "0.6605837", "0.6605837" ]
0.6603375
92
Sets the payee_wallet_id of this EscrowTransactionResponse.
def N8op(YKHO, N8op): YKHO._payee_wallet_id = N8op
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXtn(YKHO, aXtn):\n YKHO._payer_wallet_id = aXtn", "def zhQ4(YKHO, zhQ4):\n YKHO._payor_id = zhQ4", "def iB84(YKHO, iB84):\n YKHO._payee_zip = iB84", "def kPlE(YKHO, vkFH):\n YKHO.merchant_transaction_id = vkFH", "def y1r7(YKHO, y1r7):\n YKHO._payee_name = y1r7", "def flsf(YKHO, flsf):...
[ "0.7311907", "0.573136", "0.54004514", "0.53062975", "0.53006345", "0.5269258", "0.5153421", "0.5153421", "0.4994353", "0.4974469", "0.49704325", "0.49286303", "0.49132255", "0.4910477", "0.4855245", "0.48479044", "0.48479044", "0.48479044", "0.48202246", "0.47650665", "0.474...
0.81508285
0
Sets the payer_wallet_id of this EscrowTransactionResponse.
def aXtn(YKHO, aXtn): YKHO._payer_wallet_id = aXtn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N8op(YKHO, N8op):\n YKHO._payee_wallet_id = N8op", "def zhQ4(YKHO, zhQ4):\n YKHO._payor_id = zhQ4", "def kPlE(YKHO, vkFH):\n YKHO.merchant_transaction_id = vkFH", "def aCFu(YKHO, aCFu):\n YKHO._merchant_id = aCFu", "def vkFH(YKHO, vkFH):\n YKHO._transaction_id = vkFH", "def vkFH(YKHO, ...
[ "0.7696529", "0.60767055", "0.56332916", "0.56299317", "0.5272401", "0.5272401", "0.5213051", "0.5161533", "0.51283133", "0.5097511", "0.4929194", "0.48645753", "0.48536748", "0.48232916", "0.4775775", "0.47211295", "0.47165722", "0.4694163", "0.46884617", "0.4682201", "0.465...
0.84063405
0
Sets the record_status of this EscrowTransactionResponse.
def HiQx(YKHO, HiQx): YKHO._record_status = HiQx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VaH9(YKHO):\n Aofo = YKHO._get_status()\n if Aofo and Aofo[0]['state'] == 'aborted':\n raise Exception(\"Aborted because the status flag is set to 'aborted' in dynamodb\")\n YKHO.status['timestamp'] = ITS7.strftime('%Y-%m-%dT%H:%M:%SZ')\n YKHO.db_handler.update_item({'api_version': MYtQ.api_...
[ "0.5884911", "0.5822956", "0.5775433", "0.56188405", "0.56188405", "0.56188405", "0.561294", "0.55961376", "0.5581018", "0.5559708", "0.5559708", "0.5559708", "0.5559708", "0.5559708", "0.5559708", "0.5559708", "0.5553998", "0.5553998", "0.5553998", "0.5553998", "0.5553998", ...
0.783832
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, jY7J): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.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): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(YKHO, H96n, aMgO, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): HOVt = ['Thông thường', 'Đầu cơ'] Bcwd = YsYU(H96n, aMgO) QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(HOVt)) QrM1.xticks(wIWT, HOVt, rotation...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.0
-1
Removes strings starting with http
def o5jW(YKHO, l5Ny: str) -> str: mXDZ = 'http\\S+' return ZbWC.sub(mXDZ, ' ', str(l5Ny))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RG0J(mvm2):\n return ZbWC.sub('http\\\\S+', '', mvm2)", "def EGZf(YKHO, l5Ny):\n return ZbWC.sub('http.?://[^\\\\s]+[\\\\s]?', '', l5Ny)", "def Yk6F(FUjE):\n return ' '.join(ZbWC.sub('([^0-9A-Za-z \\t])|(\\\\w+:\\\\/\\\\/\\\\S+)', '', FUjE).split())", "def Yk6F(l5Ny):\n return ZbWC.sub('http\...
[ "0.78006214", "0.7698079", "0.7578181", "0.74963003", "0.7458265", "0.74112725", "0.73307616", "0.72641194", "0.72031736", "0.7188069", "0.71281874", "0.70712876", "0.7058085", "0.7049562", "0.7030817", "0.69787", "0.6963308", "0.69407505", "0.6912276", "0.68773633", "0.68092...
0.780052
1
Replaces accents with plain alphabets
def bwWQ(YKHO, l5Ny: str) -> str: mezp = zVCt.normalize('NFKD', l5Ny) return ''.join([hcXw for hcXw in mezp if not zVCt.combining(hcXw)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mObG(l5Ny: str) -> str:\n return XKrx.unidecode(l5Ny)", "def QDJq(l5Ny):\n l5Ny = XKrx.unidecode(l5Ny)\n return l5Ny", "def n9yW(n_L_):\n O9_k = zVCt.normalize('NFKD', n_L_)\n return u''.join([Z9rn for Z9rn in O9_k if not zVCt.combining(Z9rn)])", "def QDJq(l5Ny):\n l5Ny = zVCt.normalize...
[ "0.7602486", "0.7276023", "0.7271902", "0.7019935", "0.6963169", "0.6874722", "0.682965", "0.67585826", "0.66468215", "0.6607765", "0.6562943", "0.6530856", "0.64882517", "0.6410148", "0.640093", "0.63787353", "0.628986", "0.6249889", "0.6244368", "0.6241801", "0.61995006", ...
0.6086533
31
Removes stopwords as defined by self.stop_words
def ZtIO(YKHO, l5Ny: str) -> str: mXDZ = '\n (?x) # Set flag to allow verbose regexps\n \\w+(?:-\\w+)* # Words with optional internal hyphens \n | \\s* # Any space\n | [][!"#$%&\'*+,-./:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)", "def EPjn(YKHO, V22M):\n return [GIN8 for GIN8 in V22M if GIN8.lower() not in YKHO.stopwords]", "def ZtIO(YKHO, V22M):\n g68O = []\n for GIN8...
[ "0.85951626", "0.8196474", "0.8164273", "0.813838", "0.81174606", "0.80364287", "0.80274475", "0.7989631", "0.7988493", "0.7958696", "0.79517734", "0.7930331", "0.7930331", "0.7930331", "0.7930331", "0.7913143", "0.7845168", "0.7843913", "0.7841652", "0.7822895", "0.7813601",...
0.7446543
40
Removes tabs, newlines and any kind of space characters
def _gpT(YKHO, l5Ny: str) -> str: return ' '.join(ZbWC.sub('\xa0', ' ', str(l5Ny)).split())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bPnd(l5Ny):\n return l5Ny", "def x0SS(l5Ny):\n BdN0 = l5Ny.replace('\\r', '')\n BdN0 = BdN0.replace('\\t', '')\n BdN0 = BdN0.replace('\\n', '')\n BdN0 = BdN0.replace('- ', '-')\n BdN0 = BdN0.replace(' ', ' ')\n return BdN0", "def Yczo(KCHu):\n return ZbWC.sub('\\\\s+', ' ', KCHu.st...
[ "0.8449928", "0.7658336", "0.73809946", "0.7345701", "0.7265191", "0.726251", "0.7227112", "0.7216958", "0.7216958", "0.7206436", "0.72063667", "0.7186538", "0.71344566", "0.7107262", "0.70810986", "0.7080624", "0.7078933", "0.6926076", "0.6899674", "0.68935776", "0.6882423",...
0.6948386
17
Reduces multiple whitespaces to single whitespace
def xbFe(YKHO, l5Ny: str) -> str: return ZbWC.sub(' +', ' ', l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uH_F(YKHO) -> None:\n YKHO.text = ZbWC.sub('\\\\s+', ' ', YKHO.text)", "def EKcg(oykL):\n RKD7.debug('Condensing all unnecessary white spaces.')\n return ZbWC.sub('\\\\s+', ' ', oykL)", "def ccMH(l5Ny):\n return hHll.sub(' ', l5Ny)", "def mQFJ(YKHO) -> None:\n YKHO.text = ZbWC.sub('\\\\s[^...
[ "0.80924445", "0.7733814", "0.77270997", "0.7487072", "0.7446078", "0.73546934", "0.7331565", "0.73040843", "0.72991526", "0.72107947", "0.7194275", "0.7159008", "0.7136506", "0.7133596", "0.71249396", "0.70942706", "0.70841247", "0.70305616", "0.70219487", "0.69447887", "0.6...
0.68979657
22
Fix Flask environment according to ``XForwarded_`` headers.
def ND_0(i_PC=None): def NMs8(P4t4, **B2fa): HEBM = i_PC(P4t4, **B2fa) if i_PC else P4t4.wsgi_app aTDX = P4t4.config.get('WSGI_PROXIES') BOoO = P4t4.config.get('PROXYFIX_CONFIG') if BOoO and (not uEvJ): return hmY8(HEBM, **BOoO) elif aTDX: qmLP.warn('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSvJ(YKHO, r9bb):\n N5z6 = r9bb.get('SERVER_URL')\n aEYs = r9bb.get('HTTP_X_FORWARDED_SERVER') or r9bb.get('HTTP_X_HOST')\n FNkx = r9bb.get('HTTP_X_REAL_IP')\n QlPM = r9bb.get('HTTP_X_URI')\n if N5z6 and aEYs:\n mLim = r9bb.get('HTTP_X_METHOD') or SBfM(N5z6)[0]\n KcEq, bIwZ = YBQF(...
[ "0.57845724", "0.5618568", "0.53275186", "0.5303353", "0.529868", "0.5294957", "0.52365404", "0.5180683", "0.5151824", "0.51268667", "0.5117508", "0.5112825", "0.5058677", "0.5011258", "0.5004951", "0.5002801", "0.49961042", "0.49657816", "0.49571234", "0.4935363", "0.4928755...
0.5541965
2
Renders the about page.
def vsuQ(): return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='Your applicati...
[ "0.85650355", "0.85034525", "0.84489655", "0.84044397", "0.82935613", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82680845", "0.8243358",...
0.8394454
4
Post endpoint to delete item. Redirects to home.
def lpn5(zDRZ, bNIC): try: ZfUD = kLxY.fetch_by_name_and_catagory_name(zDRZ, bNIC) except ELJA: eTsH(404) ZfUD.delete() return vKnz(nKyW('home'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpn5(QePW):\n if QePW.json_body[u'type'] == u'post':\n if GhOX.query(T97t).filter(T97t.name == QePW.json_body[u'name']).delete() == 1:\n return {'deletion_status': 'success'}\n import ipdb\n x6vh.set_trace()\n return {'deletion_status': 'error'}", "def XWLa(YKHO, *qI...
[ "0.7321518", "0.7296745", "0.7259978", "0.7202219", "0.70292133", "0.70238733", "0.70196456", "0.6984477", "0.69794494", "0.6974444", "0.6911067", "0.68968356", "0.6894365", "0.68761015", "0.6870689", "0.6862545", "0.6816911", "0.6768796", "0.6750122", "0.674466", "0.6742463"...
0.680767
17
Set Log category name to be used.
def Ials(YKHO, ipek): try: LCet = mQsN(ipek) yjFQ = ANWz.import_module('gi.repository.' + LCet) if not yjFQ: bo34.error('Module %s is not found to be added as log category for %s', LCet, ipek) print('Module %s is not found to be added as log category for %s', LCet, ip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YuJZ(YKHO, YuJZ):\n YKHO._rider_category_name = YuJZ", "def Ghho(YKHO, Ghho: str):\n YKHO._category = Ghho", "def rgds(Ghho):\n Os2G._SCRIBE_CATEGORY = Ghho", "def Ials(YKHO, Ghho):\n if Ghho is not None and (not isinstance(Ghho, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: category...
[ "0.71033996", "0.656124", "0.6451363", "0.64011025", "0.63785875", "0.6319959", "0.6303118", "0.6279708", "0.6278118", "0.61796457", "0.608429", "0.608429", "0.608429", "0.608429", "0.608429", "0.60362625", "0.6006342", "0.59686434", "0.5840249", "0.57967573", "0.57849914", ...
0.7935372
0
No real implementation necessary. Only for heapq.
def JWbp(YKHO, Elif): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZno(WKvO):\n pass", "def K4RN(VDWz):\n for YRbF in range(5):\n VDWz.insert([YRbF, YRbF + 3])\n VDWz.pop()\n assert len(VDWz.heap_list) == 4\n VDWz.pop()\n assert len(VDWz.heap_list) == 3\n VDWz.pop()\n assert len(VDWz.heap_list) == 2", "def z94O(gGCN):\n pass", "def QA4...
[ "0.73582697", "0.7054749", "0.6949152", "0.6781712", "0.67741895", "0.6711578", "0.6673364", "0.6665171", "0.66525424", "0.66385454", "0.65639687", "0.6450138", "0.64492726", "0.6448973", "0.6430282", "0.6409417", "0.639338", "0.639338", "0.639338", "0.6392037", "0.63643914",...
0.0
-1
Tests that the testuser was found.
def ovG1(YKHO): geh0 = YKHO.client.get('/tests/dashboard/') YKHO.assertEqual(geh0.status_code, 200) YKHO.assertContains(geh0, 'testuser', html=True) YKHO.assertContains(geh0, 'none@nowhere.none', html=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b5K5(YKHO):\n return True", "def XHhx(YKHO):\n print('(' + YKHO.test_contains_user.__name__ + ')', YKHO.test_contains_user.__doc__)\n YKHO.assertTrue(YKHO.connection.contains_user(gePh))\n YKHO.assertTrue(YKHO.connection.contains_user(YL6h))", "def SN_I(YKHO):\n YKHO.new_user.save_user()\n ...
[ "0.76748985", "0.7660696", "0.7656335", "0.75119334", "0.7449909", "0.73115385", "0.72937554", "0.72691184", "0.72514313", "0.7239464", "0.7218272", "0.71586215", "0.7152206", "0.71307015", "0.71049184", "0.7088999", "0.70759594", "0.7050742", "0.70313215", "0.7025326", "0.70...
0.6536369
86
Return an shellescaped version of the string using double quotes. Reliably quote a string which may contain unsafe characters (e.g. space or quote characters), while retaining some shell features such as variable interpolation. The returned value can be used in a shell command line as one token that gets to be further ...
def QqN4(KCHu): if not KCHu: return '""' elif all((Z9rn in a_Gr for Z9rn in KCHu)): return KCHu else: return '"' + KCHu.replace('"', '\\"') + '"'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHj1(KCHu):\n if not KCHu:\n return \"''\"\n if bmfD(KCHu) is None:\n return KCHu\n return \"'\" + KCHu.replace(\"'\", '\\'\"\\'\"\\'') + \"'\"", "def eHj1(KCHu):\n if not KCHu:\n return \"''\"\n return \"'\" + KCHu.replace(\"'\", '\\'\"\\'\"\\'') + \"'\"", "def L9lW(KCH...
[ "0.7271046", "0.7253869", "0.72336555", "0.7229503", "0.70458126", "0.6944718", "0.6929941", "0.69232047", "0.69232047", "0.6779495", "0.67524135", "0.6597111", "0.65538913", "0.6536574", "0.65330154", "0.65087634", "0.6507119", "0.64975196", "0.64822", "0.646473", "0.644913"...
0.7298411
0
If a new email address is posted, remember it.
def ZEOv(YKHO, QePW): if QePW.method == 'POST': L03z = QUiT(QePW.POST) if L03z.is_valid(): QePW.session[gnZR] = L03z.cleaned_data['email'] else: return L03z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eSEi(YKHO, D3lj):\n QePW = YKHO.req_factory.post('unused_url', data={'new_email': D3lj, 'password': 'test'})\n QePW.user = YKHO.user\n YKHO.assertFailedRequest(YKHO.run_request(QePW), 'An account with this e-mail already exists.')", "def RloI(YKHO, eOtH):\n P4t4 = wk5E._get_current_object()\n ...
[ "0.65422535", "0.64260054", "0.63118654", "0.63064903", "0.60563016", "0.6038557", "0.6014613", "0.5898787", "0.58314365", "0.5781677", "0.577932", "0.5769288", "0.575497", "0.5719079", "0.57139456", "0.5708547", "0.5708547", "0.5700854", "0.5699276", "0.56723505", "0.5661490...
0.6590844
0
update learning rate of optimizers
def d9M4(YKHO, qtWj): YKHO.lr = oTIY(epoch=qtWj, opt=YKHO.opt) if isinstance(YKHO.model, list): UHFx = 0 for Lwm5 in YKHO.optimzer.param_groups: Lwm5['lr'] = YKHO.lr UHFx += 1 else: for Lwm5 in YKHO.optimzer.param_groups: Lwm5['lr'] = YKHO.lr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor * YKHO._get_lr_scale()\n for Lwm5 in YKHO._optimizer.param_groups:\n Lwm5['lr'] = tspZ", "def fggk(YKHO):\n YKHO.scheduler.step()\n tspZ = YKHO.optimizer.param_groups[0]['lr']\n print('learning rate = %.7f' % tspZ)", "def fggk(YK...
[ "0.82430375", "0.8091104", "0.8081948", "0.8057003", "0.7882125", "0.7729992", "0.7728464", "0.7728464", "0.77180463", "0.7680515", "0.7672647", "0.7670474", "0.76550764", "0.76442766", "0.762199", "0.76109266", "0.7595715", "0.758477", "0.7532394", "0.7522077", "0.75184435",...
0.81921303
1
get list of available actions
def Q6sW(YKHO, hiqU: Set['Entity'], JjEH: Set['Entity']) -> AzJI[fHNa['Action'], fHNa['Entity'], fHNa['Entity']]: HU0t = set() for XeOP in YKHO.actions: if XeOP.cool_down.name not in [yK6F.name for yK6F in YKHO.effects.effects]: HU0t.add(XeOP) return (HU0t, hiqU, JjEH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CA6v(YKHO):\n return YKHO.actions", "def Q6sW(YKHO):\n return []", "def eqLF(YKHO):\n return YKHO.actions", "def xASv(YKHO):\n return YKHO._action_list", "def CA6v(YKHO, QTBn):\n pass", "def lch7(YKHO):\n return YKHO.__actions", "def lch7(YKHO):\n return YKHO.__actions", "def...
[ "0.88604504", "0.8727885", "0.8649391", "0.8512479", "0.8356988", "0.8249469", "0.8249469", "0.8249469", "0.8200832", "0.80950415", "0.80412275", "0.7978333", "0.7978333", "0.7912648", "0.7903887", "0.7893374", "0.78658706", "0.77716225", "0.77087396", "0.7706551", "0.7704463...
0.0
-1
Return a full name, neatly formatted.
def e1yb(c9ua, zp3f, w5Au=''): if w5Au: eHMM = c9ua + ' ' + w5Au + ' ' + zp3f else: eHMM = c9ua + ' ' + zp3f return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqj(YKHO):\n eHMM = '{0} {1} {2}'.format(YKHO.last_name, YKHO.first_name, YKHO.patronymic)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return ...
[ "0.87166595", "0.86399925", "0.860218", "0.860218", "0.8595642", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "...
0.8130383
83
Test if the path holder contains a shot render.
def QOe9(Emd4, kkzZ, OphR): if not super(LBia, Emd4).test(kkzZ, OphR): return False WNvQ = kkzZ.baseName().split('.')[0].split('_')[-1] return WNvQ == 'sr'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QsK4(YKHO, AU8u: Point):\n return AU8u in YKHO.shot_locations", "def QOe9(Emd4, kkzZ, OphR):\n if not super(R24U, Emd4).test(kkzZ, OphR):\n return False\n WNvQ = kkzZ.baseName().split('.')[0].split('_')[-1]\n return WNvQ == 'tt'", "def QOe9(Emd4, kkzZ, OphR):\n if not super(ype4, Emd4...
[ "0.66429377", "0.6288864", "0.6145428", "0.6053248", "0.6007993", "0.5842656", "0.5803181", "0.5795196", "0.57627773", "0.5747576", "0.56485415", "0.56485415", "0.5615542", "0.55867237", "0.5571235", "0.55255395", "0.55035883", "0.54886705", "0.5453938", "0.545361", "0.542327...
0.7443225
0
Plot an image along with its histogram and cumulative histogram.
def _htN(LNo8, MPlV, Pyrc=256): LNo8 = qjPU(LNo8) GmVY, DKlr = MPlV qk9S = DKlr.twinx() GmVY.imshow(LNo8, cmap=QrM1.cm.gray) GmVY.set_axis_off() DKlr.hist(LNo8.ravel(), bins=Pyrc, histtype='step', color='black') DKlr.ticklabel_format(axis='y', style='scientific', scilimits=(0, 0)) DKlr.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _htN(LNo8, MPlV, Pyrc=256):\n GmVY, DKlr = MPlV\n qk9S = DKlr.twinx()\n GmVY.imshow(LNo8, cmap=QrM1.cm.gray)\n GmVY.set_axis_off()\n DKlr.hist(LNo8.ravel(), bins=Pyrc, histtype='step', color='black')\n DKlr.ticklabel_format(axis='y', style='scientific', scilimits=(0, 0))\n DKlr.set_xlabel(...
[ "0.7969631", "0.78266644", "0.7776819", "0.74996084", "0.7412575", "0.72977114", "0.68852156", "0.6873014", "0.6869999", "0.668876", "0.66544735", "0.66544735", "0.66544735", "0.66200167", "0.652162", "0.6493563", "0.64923745", "0.6483739", "0.64781225", "0.6413293", "0.63585...
0.7809336
3
Recursively searches for 'datacubedefinition.prj' in a level2 directory and returns its parent directory.
def V83M(AGPF): jJWy = [] for pmON in GkAb(AGPF).rglob('datacube-definition.prj'): jJWy.append(pmON) if len(jJWy) < 1: raise FileNotFoundError(f"'datacube-definition.prj' not found in {AGPF}") elif len(jJWy) > 1: raise RuntimeError(f"'datacube-definition.prj' multiple copies foun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Chi4(YKHO):\n return Hy7s.path.join(Hy7s.getcwd(), 'src', 'data', 'genes')", "def eX6A(IznC):\n XP5J = Hy7s.path.abspath(Hy7s.path.curdir)\n while not Hy7s.path.exists(Hy7s.path.join(XP5J, vYPM)):\n anqW, XP5J = (XP5J, Hy7s.path.dirname(XP5J))\n if XP5J == anqW:\n return Non...
[ "0.59310746", "0.5910224", "0.5907544", "0.56730086", "0.567043", "0.54829234", "0.5468787", "0.5349158", "0.53045815", "0.52922255", "0.52142084", "0.52010685", "0.519746", "0.51958925", "0.51642823", "0.5158747", "0.51506376", "0.51362514", "0.5133889", "0.51276433", "0.511...
0.72337234
0
Instantiate a Missing Data Error.
def FIMM(YKHO, Ol8d: str) -> None: super().__init__('Data requested from a class could not be found: {}'.format(Ol8d))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=''):\n super(AT0X, YKHO).__init__(Ol8d)", "def rOPW(nPrm):\n return type(nPrm)._from_sequence([None, nPrm[0]])", "def fqlS(YKHO):\n with YKHO.assertRaises(LookupError):\n bGrB = ZCQP({'name': 'fake_data'})", "def FIMM(YKHO, P1dF=''):\n VAT6.__init__(YKHO, P1dF)", "def...
[ "0.7335149", "0.65505475", "0.65356326", "0.62742686", "0.62742686", "0.62742686", "0.6204105", "0.6189645", "0.6147461", "0.6143845", "0.6142353", "0.6132027", "0.60576224", "0.60308665", "0.6008944", "0.5981049", "0.5965471", "0.5946241", "0.5938257", "0.59336597", "0.58896...
0.60894585
12
Determines the convective heat transfer coefficient, either free, or forced. In the absence of any wind, the "free" wind_heat_transfer_coefficient is returned. If there is wind present, then this parameter is known as the "forced" wind_heat_transfer_coefficient.
def CquF(YKHO) -> float: return 3.8 + 2 * YKHO.wind_speed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DaJg(YKHO, xNQ_=None, VWrU=None):\n xNQ_ = YRCA(VWrU, xNQ_)\n YKHO.checkPropertyTempRange('thermal conductivity', xNQ_)\n DaJg = 2.13014e-08 * xNQ_ ** 3 - 6.31916e-05 * xNQ_ ** 2 + 0.111629 * xNQ_ - 2.00043\n return DaJg * 0.001", "def JyNF(YKHO) -> float:\n return YKHO.send(YKHO.cmd.GET_COOLI...
[ "0.6343963", "0.59971076", "0.59249985", "0.5791971", "0.576443", "0.5683115", "0.565232", "0.55878526", "0.5570194", "0.54607165", "0.5381237", "0.52986056", "0.5273817", "0.5269059", "0.5203606", "0.5199913", "0.5169069", "0.5163147", "0.5161178", "0.51067317", "0.510497", ...
0.69990456
0
Names of exogenous variables
def CqH1(YKHO): return YKHO.data.xnames
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSGb(YKHO):\n return [WKvO['variable'] for WKvO in YKHO.variable_dicts()]", "def qDIe(YKHO):\n return YKHO.project.get_variable_names() + YKHO.design.get_variable_names()", "def gIlb(YKHO):\n return [SRYB[1] for SRYB in YKHO.variables]", "def Zjnb(YKHO):\n Aofo = []\n for vC9B in YKHO.equ_...
[ "0.69048613", "0.6785922", "0.67740816", "0.6711591", "0.6687262", "0.6663156", "0.6635133", "0.66310126", "0.6589906", "0.6581961", "0.6580228", "0.6575236", "0.6552368", "0.6544824", "0.6535504", "0.6525284", "0.6511582", "0.64991194", "0.64609987", "0.641673", "0.6381078",...
0.5873568
61
Initialize (possibly reinitialize) a Model instance. For instance, the design matrix of a linear model may change and some things must be recomputed.
def uIcm(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gv23(YKHO):\n pass", "def fPO8(YKHO):\n pass", "def uIcm(YKHO, C3ST):\n pass", "def FIMM(YKHO, C3ST: Model1D):\n YKHO._model = C3ST", "def yccF(YKHO):\n YKHO.latent.re_init()\n if 're_init' in dir(YKHO.inference_model):\n YKHO.inference_model.re_init()\n if 're_init' in dir(...
[ "0.7124921", "0.6987733", "0.6885349", "0.6875176", "0.68088514", "0.67898726", "0.6724793", "0.6722912", "0.66522413", "0.6631922", "0.6631922", "0.66145754", "0.66093516", "0.66029775", "0.65747577", "0.65733886", "0.65632457", "0.6534131", "0.6534131", "0.6534131", "0.6534...
0.0
-1
Returns the confidence interval of the fitted parameters.
def pENl(YKHO, Cwt5=0.05, WfCS=None, NKcE=None): if NKcE is not None: raise NotImplementedError('`method` argument is not actually supported. Upstream silently ignores it.') ovSg = YKHO.bse if YKHO.use_t: pImw = eQSh.t szis = getattr(YKHO, 'df_resid_inference', YKHO.df_resid) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def la9G(YKHO) -> float:\n return YKHO._confidence", "def la9G(YKHO):\n return YKHO._confidence", "def la9G(YKHO):\n return YKHO._confidence", "def la9G(YKHO) -> float:\n return float(YKHO.class_scores[YKHO.class_num])", "def HmdB(WbAn, Ix1C=0.95):\n Ag54 = YR9U._calculate_error_margin(WbAn,...
[ "0.68219185", "0.6498113", "0.6498113", "0.64727414", "0.6388635", "0.6311576", "0.62752163", "0.6229275", "0.6110395", "0.60803914", "0.60660297", "0.60526866", "0.6051802", "0.6024401", "0.60003996", "0.590071", "0.5890141", "0.58519065", "0.5841124", "0.58395547", "0.57960...
0.51247424
73
Takes a list of words and returns a string formatted to camel case.
def MDZz(V22M): l1kM = '' for GIN8 in V22M: if l1kM == '': l1kM = GIN8[:1].lower() + GIN8[1:] else: l1kM = '%s%s' % (l1kM, GIN8.capitalize()) return l1kM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zCVq(ErFc):\n return ''.join([GIN8.capitalize() for GIN8 in ErFc])", "def mPcS(l5Ny):\n hlel = ''\n for YRbF, yzQ0 in enumerate(l5Ny.split(' ')):\n if YRbF > 0:\n hlel += yzQ0[0].upper() + yzQ0[1:]\n else:\n hlel += yzQ0\n return hlel", "def c3S0(BWXx: str, *...
[ "0.8251883", "0.7825327", "0.7563968", "0.7526195", "0.7506611", "0.7506611", "0.7482835", "0.72373885", "0.7220596", "0.7182877", "0.7105976", "0.7050961", "0.70338947", "0.7015833", "0.70085067", "0.6960694", "0.6957555", "0.6947957", "0.69223166", "0.69102275", "0.6900598"...
0.8511594
0
Cleans up the text before formatting to camel, pascal or snake case. Removes dashes, underscores, single quotes (apostrophes) and replaces them with a space character. Multiple spaces, tabs or new line characters are collapsed to one space character. Returns the result as a string.
def Aa9f(l5Ny): UTG4 = '' M_G5 = '' if l5Ny.startswith('-'): UTG4 += '-' if l5Ny.startswith('_'): UTG4 += '_' if l5Ny.endswith('-'): M_G5 += '-' if l5Ny.endswith('_'): M_G5 += '_' l5Ny = l5Ny.strip() l5Ny = l5Ny.replace('-', ' ') l5Ny = l5Ny.replace('_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYyC(YKHO, l5Ny):\n l5Ny = l5Ny.lower()\n if YKHO.remove_stopwords:\n l5Ny = YKHO.remove_stopwords_f(l5Ny, keep_neg_words=True)\n l5Ny = ZbWC.sub('[^a-zA-Z]+', ' ', l5Ny)\n l5Ny = ZbWC.sub(' +', ' ', l5Ny)\n if YKHO.apply_normalization:\n l5Ny = YKHO.normalize_text(l5Ny)\n retur...
[ "0.6987627", "0.69115055", "0.68299866", "0.68170524", "0.6792189", "0.6779221", "0.6683785", "0.6663541", "0.66497254", "0.661544", "0.66122067", "0.6598049", "0.65703285", "0.6562379", "0.6545204", "0.6541442", "0.6536878", "0.6534535", "0.6511388", "0.64796376", "0.6465856...
0.7590578
0
Returns the device to be used for training.
def begE() -> str: import torch if torch.cuda.is_available() and torch.cuda.device_count() > 0: if hasattr(PSrQ().trainer, 'parallelized') and PSrQ().trainer.parallelized: begE = 'cuda' else: begE = 'cuda:' + str(tuKI.randint(0, torch.cuda.device_count() - 1)) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def begE(YKHO) -> ht2j.device:\n for xqoZ in YKHO.parameters():\n return xqoZ.device\n return VeaS('cpu')", "def VeaS():\n import torch\n if torch.cuda.is_available():\n return torch.device('cuda')\n return torch.device('cpu')", "def begE():\n return ht2j.device('cuda:0' if ht2j...
[ "0.8276948", "0.8204713", "0.81753296", "0.80565923", "0.79779685", "0.79452527", "0.79452527", "0.79452527", "0.79452527", "0.79452527", "0.78916585", "0.78675044", "0.7835675", "0.77565765", "0.77542937", "0.77542937", "0.77542937", "0.77542937", "0.7713507", "0.7709037", "...
0.8220512
1
return True if the number_str can be truncated from both left and right and always be prime, e.g. 3797
def ATjx(KNSD, QUiM): vC9B = len(KNSD) for YRbF in range(vC9B): if KNSD[YRbF:] not in QUiM or KNSD[:vC9B - YRbF] not in QUiM: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EDoL(FGW3: int):\n nhGt = str(FGW3)\n d6pt = 0\n while d6pt < len(nhGt):\n if not T1qg(int(nhGt[d6pt:])):\n return False\n d6pt += 1\n d6pt = len(nhGt)\n while d6pt > 0:\n if not T1qg(int(nhGt[:d6pt])):\n return False\n d6pt -= 1\n return True...
[ "0.8172049", "0.72789836", "0.69700235", "0.6308689", "0.61999017", "0.6155211", "0.6115153", "0.6111989", "0.6109884", "0.6073659", "0.6044184", "0.6039048", "0.60375977", "0.60341597", "0.60208774", "0.6020748", "0.601937", "0.60004914", "0.5998233", "0.5982962", "0.5968794...
0.7736553
1
Determine fixed modifications in case the reference shift is not at zero. Needs localization.
def pzT7(aC0l, ZyRE, nPrm): BfDw.internal('Localizations for %s: %s', aC0l, ZyRE.at[aC0l, 'localization']) hksT = qe83(aC0l, ZyRE) UXqs = aC0l Mjw9 = nPrm.ms_stats().copy() while hksT is None: del Mjw9[UXqs] UXqs = max(Mjw9, key=lambda G1Hx: Mjw9[G1Hx][1]) hksT = qe83(UXqs, Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HNcq(ZW1s, nPrm, BDvi):\n VHAq = BDvi['fix_mod_zero_thresh']\n Gq5R = BDvi['min_fix_mod_pep_count_factor']\n O8OU = {}\n aC0l = BfDw.mass_format(0)\n ra0Z = ZW1s[aC0l][2]\n BfDw.internal('aa_rel:\\n%s', ra0Z)\n kbGe = ra0Z[ra0Z < VHAq].index\n bo34.debug('Fixed mod candidates: %s', kbGe...
[ "0.61892533", "0.6004834", "0.5786946", "0.5511628", "0.54182035", "0.5341413", "0.52645195", "0.5253012", "0.5237", "0.5225602", "0.52148324", "0.5205912", "0.5189934", "0.5129188", "0.51038384", "0.51002914", "0.5086002", "0.50812876", "0.49967453", "0.4983229", "0.49150836...
0.59622836
2
Determine fixed modifications in case the reference shift is at zero. Does not need localization.
def HNcq(ZW1s, nPrm, BDvi): VHAq = BDvi['fix_mod_zero_thresh'] Gq5R = BDvi['min_fix_mod_pep_count_factor'] O8OU = {} aC0l = BfDw.mass_format(0) ra0Z = ZW1s[aC0l][2] BfDw.internal('aa_rel:\n%s', ra0Z) kbGe = ra0Z[ra0Z < VHAq].index bo34.debug('Fixed mod candidates: %s', kbGe) for YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pzT7(aC0l, ZyRE, nPrm):\n BfDw.internal('Localizations for %s: %s', aC0l, ZyRE.at[aC0l, 'localization'])\n hksT = qe83(aC0l, ZyRE)\n UXqs = aC0l\n Mjw9 = nPrm.ms_stats().copy()\n while hksT is None:\n del Mjw9[UXqs]\n UXqs = max(Mjw9, key=lambda G1Hx: Mjw9[G1Hx][1])\n hksT =...
[ "0.6245811", "0.5993922", "0.58981633", "0.54384756", "0.5420952", "0.5370132", "0.5319682", "0.52733696", "0.52633834", "0.5207875", "0.5174516", "0.5168301", "0.5162118", "0.5160096", "0.5155298", "0.5127173", "0.5121005", "0.50911295", "0.49932376", "0.4955329", "0.4909749...
0.63415945
0