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
The number of complex components required to store `self.n_components` real values. When `self.n_components` is even, this will be exactly `self.n_components / 2`. When it is odd, it will be the first integer larger than `self.n_components / 2`. The final imaginary part of the last component will be superfluous.
def KVCb(YKHO): return YKHO.n_components // 2 + YKHO.n_components % 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YKua(YKHO):\n return YKHO._components.shape[0]", "def YKua(YKHO):\n return 1", "def Td5c(YKHO):\n return YKHO.numberOfComponents", "def AdfU(YKHO):\n return YKHO.num_components", "def Npy1(YKHO) -> int:\n vfHt = oyIN.prod(YKHO.shape)\n if YKHO.n_timesteps > 1:\n vfHt = int(vfHt...
[ "0.7240709", "0.7238164", "0.71666574", "0.6786088", "0.6500541", "0.6454424", "0.64439607", "0.630045", "0.62663865", "0.62208223", "0.6142444", "0.6125171", "0.6113677", "0.6085901", "0.60725677", "0.60527974", "0.6037869", "0.60263354", "0.5976681", "0.59763", "0.59419096"...
0.8941237
0
The number of trees in the Deduplicator.
def VjyD(YKHO): return len(YKHO.data_kd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AHQ7(YKHO) -> int:\n return len(YKHO.nodes)", "def AHQ7(YKHO):\n return YKHO._ll_tree_sequence.get_num_trees()", "def ESP5(YKHO) -> int:\n T8ck = g5js()\n UHFx = 0\n T8ck.put(YKHO.root)\n while not T8ck.empty():\n Q6kx = T8ck.get()\n UHFx += 1\n for aUGN in Q6kx.child...
[ "0.79976815", "0.79958075", "0.77839524", "0.77313733", "0.7635082", "0.7615049", "0.7488677", "0.7465807", "0.7463311", "0.74288374", "0.74173415", "0.7382103", "0.73811615", "0.732395", "0.7315135", "0.7302796", "0.7301912", "0.7298887", "0.72675365", "0.72401077", "0.72381...
0.848073
0
A helper function used by `show_umap_bokeh` to build an array of color data for use by Bokeh.
def WfUB(yIVm, vdxD, QR6r, yDqo=None, tn62=snrf): tn62 = tn62(QR6r) if vdxD is None: Gnu6 = yIVm else: Gnu6 = yIVm[vdxD] if yDqo is None: yDqo = type(Gnu6[0]) Jyyj = [eHNT if isinstance(eHNT, yDqo) else yDqo() for eHNT in Gnu6] QR6r = QR6r if len(set(Jyyj)) >= QR6r else l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kt7N():\n return ['#8c99fc', '#cacefd', '#fff1d7', '#feda98', '#fda85a', '#fc6647']", "def gQ4D(lXH0):\n U5bT = []\n for YRbF in range(len(lXH0)):\n U5bT.append('#' + lXH0[YRbF]['@rgb'])\n return U5bT", "def qfpW(YKHO, nPrm):\n Z5Q9 = oyIN.interp(nPrm, YKHO.range, YKHO.r)\n pPPK = ...
[ "0.6931707", "0.6698643", "0.6680369", "0.6671751", "0.6602958", "0.6553288", "0.6450207", "0.6448156", "0.6438136", "0.6398265", "0.6398265", "0.63950753", "0.6352892", "0.6350359", "0.6239184", "0.62187016", "0.6171562", "0.61550665", "0.614368", "0.61311966", "0.6117753", ...
0.58662444
43
Generate a Bokeh scatterplot based on a UMAP model. Colors points based on the metadata field indicated by `color_field`. If no color field is provided, a third UMAP dimension is used instead.
def tAlu(nPrm, yIVm, vdxD=None, hKUR=10, uYq_=0.001, AcYW='euclidean'): if vdxD is None: Htse = 3 else: Htse = 2 Xw1j = qKQ2.UMAP(n_neighbors=hKUR, n_components=Htse, min_dist=uYq_, metric=AcYW) XmRU = Xw1j.fit_transform(nPrm) if vdxD is None: qfpW = WfUB(XmRU[:, 2], None, 20...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ocop(AX_D, EpVc, NkBi, **B2fa):\n if 'cato' in B2fa:\n Mdbn = B2fa['cato']\n else:\n Mdbn = False\n if 'col' in B2fa:\n fvDH = B2fa['colors']\n else:\n fvDH = RdnS[9]\n if 'metric_attrib' in B2fa:\n o6JB = B2fa['metric_attrib']\n else:\n o6JB = False\...
[ "0.5492606", "0.5483295", "0.53167456", "0.5283011", "0.5192205", "0.5092238", "0.5048542", "0.5032877", "0.50081116", "0.49516362", "0.49432778", "0.49351755", "0.4933292", "0.4930656", "0.48160133", "0.48076048", "0.47774604", "0.47606358", "0.4737379", "0.4736001", "0.4734...
0.6745194
0
This is the home view. It is called when the user goes to the '/' route.
def kZiy(QePW): CBIr = QePW.user QpfX = S1GR() QpfX.update(awai(QePW)) return SGJU('coreapp/home.html', QpfX, context_instance=K1Ja(QePW))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return SGJU('home.html', {}, K1Ja(QePW))", "def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')", "def kZiy():\n return TvZl('home.html', face=cuiw.get(P4t4.config['SESSION_KEY'], None))", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", ...
[ "0.8226537", "0.81130207", "0.808595", "0.80539376", "0.80247283", "0.80203336", "0.79686517", "0.7932893", "0.7923409", "0.79155874", "0.78881216", "0.7881082", "0.7878804", "0.7848929", "0.7848929", "0.7848929", "0.7848929", "0.7848929", "0.7848929", "0.7848929", "0.7848929...
0.0
-1
Makes sure form has first_name and last_name and a volunteer exists, otherwise raise form error.
def x0SS(YKHO): VMhS = super(bMG6, YKHO).clean() z_JI = v32P(VMhS) VMhS['volunteer'] = z_JI return YKHO.cleaned_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lwXz(YKHO, L03z, QePW):\n nPrm = L03z.data\n jTXt = D2Lq(nPrm.get('password1'))\n z_JI = False\n I1mm = nPrm.get('volunteer')\n if I1mm is not None and I1mm != 'false' and (I1mm != 'False'):\n z_JI = True\n ZWCE = nPrm.get('name').strip().split(' ')\n c9ua = ZWCE[0]\n zp3f = ''\n...
[ "0.6447232", "0.6308293", "0.62191516", "0.604255", "0.5990323", "0.5868001", "0.5857009", "0.5840189", "0.5782123", "0.5722739", "0.569707", "0.5681966", "0.5670703", "0.56222343", "0.56193906", "0.5606477", "0.5586893", "0.5580236", "0.5574601", "0.5568516", "0.5561518", ...
0.5788098
8
return elapsed time in days
def Sm0u(YKHO): return int(YKHO.hours / 24)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def opNw(YKHO) -> int:\n return (qcWV.today() - YKHO.release_datetime).days", "def ew3z(yKcO, Os4s):\n return '%s days, %s hours, %s minutes, %s seconds' % gRDk(zgJG(yKcO, Os4s))", "def Ri7a(ITS7):\n return int(ITS7 / 86400)", "def EdTY(YKHO):\n return (YKHO.stop_day - YKHO.start_day) * (24 * 60)...
[ "0.75203794", "0.7310724", "0.7111851", "0.7087292", "0.7065484", "0.7040637", "0.7039696", "0.6973917", "0.69536227", "0.6918072", "0.68997335", "0.6899401", "0.6785087", "0.6765446", "0.66785306", "0.6673294", "0.661461", "0.658672", "0.657657", "0.65385485", "0.65277886", ...
0.65850383
18
return elapsed time in days. accepts pid or datetime
def Sm0u(input=None): return NMoC(input).days
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ew3z(yKcO, Os4s):\n return '%s days, %s hours, %s minutes, %s seconds' % gRDk(zgJG(yKcO, Os4s))", "def Ri7a(ITS7):\n return int(ITS7 / 86400)", "def qZ2m(YKHO, Ii1o, D70y):\n return YKHO.get_process_speed(Ii1o) * D70y.get_time()", "def NMoC(input=None):\n if isinstance(input, qcWV.datetime):\...
[ "0.65062827", "0.6486112", "0.63390917", "0.6304434", "0.62099266", "0.6180133", "0.61510646", "0.61460197", "0.60833615", "0.59980273", "0.5985598", "0.597571", "0.5966315", "0.59606063", "0.5928423", "0.59140605", "0.5879989", "0.58758616", "0.58654225", "0.57962495", "0.57...
0.0
-1
Redirects to make_mosaic endpoint
def vgKM(): return vKnz(nKyW('index'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n eVV_ = []\n J41j = 2048\n wWM4 = 2048\n qibb = QePW.args.to_dict(flat=False)\n if 'rozdzielczosc' in qibb:\n J41j, wWM4 = map(int, qibb['rozdzielczosc'][0].split('x'))\n if 'zdjecia' in qibb:\n eVV_ = qibb['zdjecia'][0].split(',')\n if 'losowo' in qibb and qibb['los...
[ "0.69172907", "0.58282906", "0.5780604", "0.559005", "0.5521633", "0.5335325", "0.5273091", "0.516737", "0.5115533", "0.508551", "0.5068684", "0.5065837", "0.50605345", "0.5048209", "0.50465894", "0.50379694", "0.5031413", "0.5018871", "0.50124556", "0.50124484", "0.5012191",...
0.0
-1
Calculate the cross product of two 3d vectors.
def WHx2(lSjb, v8Fa): Aofo = oyIN.zeros(3) return hmBT(lSjb, v8Fa, Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnaF(hQHm, jlSq):\n return _J6W.CG3dVector(hQHm[1] * jlSq[2] - jlSq[1] * hQHm[2], hQHm[2] * jlSq[0] - jlSq[2] * hQHm[0], hQHm[0] * jlSq[1] - jlSq[0] * hQHm[1])", "def WHx2(hQHm: Vector, jlSq: Vector) -> lNLu:\n if len(hQHm.coords) != 3 or len(jlSq.coords) != 3:\n raise ValueError('Vectors have t...
[ "0.8495347", "0.8209283", "0.8185948", "0.80265963", "0.80217946", "0.7996431", "0.78594023", "0.7847778", "0.783515", "0.7797106", "0.77203244", "0.7618056", "0.75972885", "0.7588651", "0.75682247", "0.75304353", "0.74432504", "0.7407693", "0.73927504", "0.73378044", "0.7336...
0.8005173
5
Calculate the cross product of two 3d vectors.
def hmBT(lSjb, v8Fa, Aofo): XOOk, pHXX, MgfK = (aj0M(lSjb[0]), aj0M(lSjb[1]), aj0M(lSjb[2])) kYGz, ftz7, _2fo = (aj0M(v8Fa[0]), aj0M(v8Fa[1]), aj0M(v8Fa[2])) Aofo[0] = pHXX * _2fo - MgfK * ftz7 Aofo[1] = MgfK * kYGz - XOOk * _2fo Aofo[2] = XOOk * ftz7 - pHXX * kYGz return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnaF(hQHm, jlSq):\n return _J6W.CG3dVector(hQHm[1] * jlSq[2] - jlSq[1] * hQHm[2], hQHm[2] * jlSq[0] - jlSq[2] * hQHm[0], hQHm[0] * jlSq[1] - jlSq[0] * hQHm[1])", "def WHx2(hQHm: Vector, jlSq: Vector) -> lNLu:\n if len(hQHm.coords) != 3 or len(jlSq.coords) != 3:\n raise ValueError('Vectors have t...
[ "0.8495347", "0.8209283", "0.8185948", "0.80265963", "0.8005173", "0.7996431", "0.78594023", "0.7847778", "0.783515", "0.7797106", "0.77203244", "0.7618056", "0.75972885", "0.7588651", "0.75682247", "0.75304353", "0.74432504", "0.7407693", "0.73927504", "0.73378044", "0.73366...
0.80217946
4
Return length of the inner dictionary.
def szAg(YKHO): return len(YKHO._d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JHl1(aARk):\n return sum((len(Ty9i) for Ty9i in aARk.itervalues()))", "def szAg(YKHO) -> int:\n return len(YKHO._dict)", "def zNig(YKHO):\n return dict.__len__(YKHO)", "def jLdk(cmPJ):\n zNig = len(cmPJ.keys())\n for BWXx in cmPJ.values():\n zNig += len(BWXx)\n return zNig", "d...
[ "0.84953874", "0.78595334", "0.78409594", "0.78223604", "0.75585836", "0.7551311", "0.7432247", "0.72399694", "0.72072756", "0.71813524", "0.71331716", "0.71331716", "0.70996034", "0.70890045", "0.6994044", "0.6984488", "0.69334716", "0.6919532", "0.69120383", "0.6882344", "0...
0.6446852
51
Human representation of a course.
def zAg0(YKHO): C3ST = YKHO._meta.verbose_name.title() leAC = YKHO.extended_object.get_title() return f'{C3ST:s}: {leAC:s}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LEwc(YKHO):\n print('Course name: {}'.format(YKHO._course_name))\n print('Lead teacher: {}'.format(YKHO._teacher))\n if len(YKHO._students) == 0:\n print('Course does not enrolled by any student')\n else:\n print('Enrolled: {}/{}'.format(len(YKHO._students), YKHO._total_place))", "d...
[ "0.6712629", "0.6652738", "0.65715927", "0.6560029", "0.655198", "0.6348229", "0.63459116", "0.6335602", "0.6285528", "0.6113067", "0.60122883", "0.5997732", "0.5987578", "0.59715575", "0.58722246", "0.58378285", "0.5810509", "0.57896405", "0.578161", "0.573549", "0.5726865",...
0.0
-1
Get the admin url of the form to add a course run with the "direct_course" field prepopulated to self.
def fdmZ(YKHO, QePW): NKRf = gxEw('admin:courses_courserun_add') return f'{NKRf:s}?direct_course={YKHO.id:d}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bD7m(YKHO):\n VXBI = 'slashes:{course_org}+{course_num}+{course_run}'.format(**YKHO.course_info)\n return '/'.join([zDeW, YKHO.url_path, VXBI])", "def mRPN(YKHO, GQfX):\n YKHO.url = gxEw('instructor_dashboard', kwargs={'course_id': str(GQfX.id)})", "def ZpNJ(YKHO):\n if YKHO.get_submit_save_and...
[ "0.66739416", "0.6661041", "0.64736366", "0.64344704", "0.64329773", "0.6306608", "0.60825247", "0.59089434", "0.5888406", "0.58553123", "0.5828043", "0.56737375", "0.5618978", "0.55820453", "0.5549834", "0.5549834", "0.55185103", "0.5517158", "0.5487873", "0.54796034", "0.54...
0.8541032
0
Return the main organization linked to the course via an organization plugin on the course detail page. Plugins are sortable by draganddrop in the plugin bar so we use this "position" information to return the first one as the main organization. We assume that only one placeholder holds organization plugins and return ...
def tAzZ(YKHO): return YKHO.get_organizations().order_by('extended_object__organization_plugins__cmsplugin_ptr__position').first()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PI_r(YKHO):\n oJ7E = YKHO.position.to_object\n if oJ7E is None:\n return None\n elif oJ7E.portal_type == 'position':\n return oJ7E.get_organization()\n elif oJ7E.portal_type == 'organization':\n return oJ7E", "def H20S(YKHO):\n for QAIN in YKHO.list_orgs():\n RrVN =...
[ "0.68587244", "0.5907531", "0.59008014", "0.589964", "0.58633107", "0.5859542", "0.5687222", "0.56385535", "0.54986006", "0.54873925", "0.54269475", "0.5400147", "0.5375925", "0.5355582", "0.5343183", "0.5303373", "0.5293673", "0.52927893", "0.5241732", "0.521707", "0.5217016...
0.7510171
0
Returns a query that sum the enrollment count of each course run. They may be directly related to the course or to a snapshot of the course. The draft and the public page have their own course runs. The course runs on the draft page are copied to the public page when the course is published (for any language).
def gHrK(YKHO): u2sf = YKHO.extended_object.publisher_is_draft Q6kx = YKHO.extended_object.node Vccm = Q6kx.__class__.get_tree(parent=Q6kx) return gPGD.objects.filter(direct_course__extended_object__node__in=Vccm, direct_course__extended_object__publisher_is_draft=u2sf).aggregate(sum=zphJ('enrollment_co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V5Wa(Emd4, S7Jr):\n xDcj = WRXK(Emd4.objects.filter(course_id=S7Jr, is_active=True).values('mode').order_by().annotate(kbH2('mode')))\n wjRY = 0\n Csk6 = oRi_(int)\n for ZfUD in xDcj:\n Csk6[ZfUD['mode']] = ZfUD['mode__count']\n wjRY += ZfUD['mode__count']\n Csk6['total'] = wjRY\n ...
[ "0.6074521", "0.6041419", "0.5362961", "0.533614", "0.5182698", "0.5091506", "0.50852716", "0.50764984", "0.5037924", "0.50357306", "0.49651933", "0.48697788", "0.48279262", "0.4770447", "0.4768722", "0.47138315", "0.47057799", "0.47032812", "0.47006965", "0.47005245", "0.468...
0.8019578
0
Returns a dict of course runs grouped by their state.
def Op1k(YKHO): Op1k = {YRbF: [] for YRbF in range(len(fyJE.STATE_CALLS_TO_ACTION))} for iXC1 in YKHO.course_runs: Op1k[iXC1.state['priority']].append(iXC1) return dict(Op1k)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k245(YKHO):\n return {'passed': YKHO._runs_passed, 'failed': YKHO._runs_failed, 'missed': YKHO._runs_missed}", "def YHtp(uBpu):\n Aofo = {}\n for rlcK in sorted(uBpu.keys()):\n s9pl = {gRxe.job_id: True for gRxe, bGrB in uBpu[rlcK]}\n Aofo[rlcK] = s9pl\n return Aofo", "def NmXq(Kv...
[ "0.6321693", "0.5944419", "0.5908994", "0.5876156", "0.57753927", "0.5741247", "0.5722565", "0.567515", "0.5672037", "0.5663396", "0.5651055", "0.5647436", "0.5644651", "0.5570746", "0.5570746", "0.5480025", "0.5380726", "0.5376638", "0.5369025", "0.53606087", "0.5335316", ...
0.7880021
0
Human representation of a licence.
def zAg0(YKHO): C3ST = YKHO._meta.verbose_name.title() return f'{C3ST:s}: {YKHO.name:s}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.licence.name:s}'", "def TmMv(YKHO) -> str:\n return YKHO.numerify(YKHO.generator.parse(YKHO.random_element(YKHO.license_formats)))", "def DMY2(_63S):\n print(q1HU(b9vX.legal_disclaimer))", "def Mqow(YKHO, HtFf):\n...
[ "0.7081381", "0.68673426", "0.6803742", "0.6774465", "0.6750214", "0.66850436", "0.6660056", "0.6571109", "0.6337733", "0.6134125", "0.61280495", "0.60734", "0.60600924", "0.60434854", "0.6034573", "0.6034573", "0.5965436", "0.595446", "0.58522457", "0.5847454", "0.582143", ...
0.0
-1
Remove a contact group from the database.
async def delete_contact_group(tqlg: DBConnection, AmHx: int) -> None: if not await UnXR(tqlg, AmHx): raise UAju.InvalidArguments('contact group does not exist') vexM = 'delete from contact_groups where id=%s' await tqlg.operation(vexM, (AmHx,))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kbX7(YKHO, QAIN, Mxk0, uOe2):\n pass", "async def delete_contact_from_contact_group(tqlg: DBConnection, AmHx: int, dRbn: int) -> None:\n vexM = 'delete from contact_group_contacts where contact_group_id=%s and contact_id=%s'\n ijsi = (AmHx, dRbn)\n await tqlg.operation(vexM, ijsi)", "def xsZs()...
[ "0.8200162", "0.76832724", "0.7679055", "0.7605949", "0.73162013", "0.7294787", "0.71709603", "0.7098276", "0.6971708", "0.69195086", "0.6847481", "0.68159044", "0.6741174", "0.67268705", "0.67192996", "0.66935956", "0.66856873", "0.6685614", "0.6621922", "0.6575301", "0.6559...
0.7935461
1
Compute the sigmoid of z
def m1Hg(YKHO, epBp): KCHu = 1 / (1 + oyIN.exp(-epBp)) return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(epBp):\n return mFhB(epBp)", "def m1Hg(epBp):\n return 1 / (1 + oyIN.e ** (-epBp))", "def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))", "def m1Hg(epBp):\n return 1 / (1 + tTpl ** (-epBp))", "def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-1 * epBp))", "def m1Hg(YKHO, epBp):\n ...
[ "0.9236618", "0.9115387", "0.9034685", "0.90323716", "0.8983045", "0.898196", "0.89817816", "0.89586", "0.8936467", "0.89277345", "0.8924896", "0.89058656", "0.88911504", "0.88880706", "0.8871708", "0.88684934", "0.88618755", "0.8860814", "0.88562065", "0.88487744", "0.884515...
0.8874702
14
This function creates vector of zeros of shape (dim, 1) for w and initializes b to 0.
def uIcm(YKHO, tpio): YKHO.w = oyIN.zeros((tpio, 1)) YKHO.b = 0 assert YKHO.w.shape == (tpio, 1) assert isinstance(YKHO.b, float) or isinstance(YKHO.b, int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yw0A(tpio):\n yzQ0 = oyIN.zeros((tpio, 1))\n Fg_i = 0\n return (yzQ0, Fg_i)", "def yw0A(tpio):\n yzQ0 = oyIN.zeros([tpio, 1])\n Fg_i = 0\n assert yzQ0.shape == (tpio, 1)\n assert isinstance(Fg_i, float) or isinstance(Fg_i, int)\n return (yzQ0, Fg_i)", "def yw0A(tpio):\n yzQ0 = oy...
[ "0.78281647", "0.74974597", "0.73732233", "0.72463846", "0.7071679", "0.6665771", "0.6609793", "0.6556628", "0.6540469", "0.64331144", "0.6398242", "0.6317353", "0.6290744", "0.6290744", "0.6290744", "0.62891424", "0.62828666", "0.6271031", "0.6248183", "0.6223827", "0.618452...
0.6644284
6
Pull all values of specified key from nested JSON.
def SMfb(YEnM, H5ew): ezWE = [] def JDhM(YEnM, ezWE, H5ew): """Recursively search for values of key in JSON tree.""" if isinstance(YEnM, dict): for G1Hx, Ty9i in YEnM.items(): if isinstance(Ty9i, (dict, list)): JDhM(Ty9i, ezWE, H5ew) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SMfb(YEnM, H5ew):\n ezWE = []\n\n def JDhM(YEnM, ezWE, H5ew):\n \"\"\"Recursively search for values of key in JSON tree.\"\"\"\n if isinstance(YEnM, dict):\n for G1Hx, Ty9i in YEnM.items():\n if isinstance(Ty9i, (dict, list)):\n JDhM(Ty9i, ezWE, ...
[ "0.7465364", "0.744467", "0.73683906", "0.73683906", "0.7286594", "0.7276108", "0.6437917", "0.6150235", "0.6105374", "0.6105374", "0.6105374", "0.6105374", "0.6105374", "0.609175", "0.60788906", "0.60494304", "0.60182303", "0.5951623", "0.5826152", "0.5795389", "0.57927316",...
0.7370781
2
Gets JSON file as a dictionary.
def c3ht(Ux0P): with open(Ux0P) as eHNT: NqAa = eHNT.read() nPrm = qQXR.loads(NqAa) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YGFP(pmON):\n wM3v = open(pmON)\n nMY2 = wM3v.read()\n zgjV = qQXR.loads(nMY2)\n return zgjV", "def dftL(gIsw: str) -> cuzp[str, ImMB]:\n with open(gIsw) as nUeQ:\n return qQXR.load(nUeQ)", "def YGFP(pmON):\n wM3v = open(pmON)\n nMY2 = wM3v.read()\n zgjV = _1kr(nMY2)\n ret...
[ "0.8013772", "0.80073994", "0.8005784", "0.7953202", "0.79398215", "0.78763324", "0.7790268", "0.77846634", "0.7781607", "0.77340037", "0.77132505", "0.77044356", "0.7674398", "0.7646241", "0.76253676", "0.76036257", "0.7593111", "0.7574853", "0.7568953", "0.7563689", "0.7539...
0.8079181
0
Get the front item from the deque.
def uW34(YKHO) -> int: if not YKHO.isEmpty(): return YKHO.q[YKHO.move_forward(YKHO.front)] else: return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vYJ5(YKHO):\n if YKHO.is_empty() or YKHO.data_[YKHO.front_] == None:\n raise IndexError\n return YKHO.data_[YKHO.front_]", "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def vYJ5(YKHO):\n if YKHO.is_empty():\n raise IndexError()\n return YKHO.fro...
[ "0.85059357", "0.8490365", "0.841699", "0.8373131", "0.8284386", "0.8258886", "0.82038033", "0.79905766", "0.7978276", "0.79609853", "0.79590595", "0.79549676", "0.7929272", "0.7900703", "0.7898534", "0.78633916", "0.78493965", "0.78493965", "0.7750533", "0.7747822", "0.77285...
0.7571963
24
Get the last item from the deque.
def Ugyj(YKHO) -> int: if not YKHO.isEmpty(): return YKHO.q[YKHO.rear] else: return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XVAW(YKHO):\n return YKHO.deque[-1]", "def ScHw(YKHO):\n return YKHO.container[YKHO.length - 1]", "def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._trailer._prev._element", "def XVAW(OxJJ):\n Csk6 = MUE7(OxJJ, maxlen=1)\n try:\n return Cs...
[ "0.873561", "0.84392744", "0.8213561", "0.8139774", "0.7803814", "0.7800985", "0.7751803", "0.7621705", "0.7618637", "0.75757027", "0.75228494", "0.7490607", "0.74851626", "0.7431453", "0.7431453", "0.7409974", "0.73955023", "0.7393824", "0.7360437", "0.7358974", "0.7358188",...
0.0
-1
Checks whether the circular deque is full or not.
def Yykn(YKHO) -> bool: if YKHO.move_forward(YKHO.rear) == YKHO.front: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.deque) == 0", "def Yykn(YKHO):\n return len(YKHO.queue) == YKHO.size", "def Yykn(YKHO):\n if len(YKHO.queue) == YKHO.maxlen:\n return True\n else:\n return False", "def lsmZ(YKHO) -> bool:\n return len(YKHO._deque) == 0", "def Yykn(YKHO) -> boo...
[ "0.7989078", "0.7895886", "0.7891434", "0.7660478", "0.75128245", "0.7484213", "0.7483096", "0.73029816", "0.73029816", "0.72759694", "0.7268464", "0.7253773", "0.7235688", "0.72299623", "0.72299623", "0.72278905", "0.72223043", "0.7189977", "0.7189218", "0.7189218", "0.71661...
0.6976988
42
Given a string representation of document content, this function splits it into a list of TextContent objects representing the lines of the document
def mTzm(hGN5: str) -> x1iM[QqCw]: dZhl = hGN5.splitlines(True) Nqlg = [] for IULY in dZhl: Nqlg.append(QqCw(content=IULY)) return Nqlg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QN9s(hGN5: str) -> x1iM[QqCw]:\n return [QqCw(content=hGN5)]", "def Ueki(YKHO, hGN5: str):\n ol4k = []\n hGN5 = hGN5.split('-DOCSTART- -X- O O')\n for A97Q in hGN5:\n if A97Q != '':\n V22M = []\n Rhv4 = []\n Crrw = []\n yKcO = 0\n FZ6K...
[ "0.79900974", "0.71688455", "0.6962049", "0.67655903", "0.6740423", "0.66443825", "0.66100544", "0.6367101", "0.6315669", "0.6315603", "0.62921154", "0.61634886", "0.6135387", "0.6135006", "0.61063814", "0.60974294", "0.6091374", "0.6072826", "0.60515374", "0.6042577", "0.604...
0.7881781
1
Given a string representation of document content, this function splits it into a list of TextContent objects at an optionally given level of granularity
def bgcW(hGN5: str, dbbf='document') -> x1iM[QqCw]: return Kfro[dbbf](hGN5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QN9s(hGN5: str) -> x1iM[QqCw]:\n return [QqCw(content=hGN5)]", "def lpha(l5Ny):\n mrVf = ZbWC.split('<doc>', l5Ny)\n del mrVf[0]\n return mrVf", "def Ueki(YKHO, hGN5: str):\n ol4k = []\n hGN5 = hGN5.split('-DOCSTART- -X- O O')\n for A97Q in hGN5:\n if A97Q != '':\n V2...
[ "0.7345478", "0.6747749", "0.6354209", "0.6328884", "0.6093199", "0.6083863", "0.6051214", "0.6047963", "0.60374886", "0.6019502", "0.6018944", "0.60116994", "0.59527236", "0.57839215", "0.57355374", "0.5702328", "0.56594014", "0.5633477", "0.5573477", "0.5531004", "0.5519658...
0.70896304
1
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.7448925
85
split strings, but only keep splits if they result in actual words
def YzrT(NPoT): iLj7 = False W78r = iDi8.split(NPoT) for vIwR in W78r: if rbhx(vIwR) and vIwR not in {'a', 'o', 'A', 'O'}: iLj7 = True if iLj7: return ' '.join(W78r) else: return NPoT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vGQR(l5Ny):\n wAJt = ZbWC.compile('\\\\W*')\n return [KCHu.lower() for KCHu in wAJt.split(l5Ny) if KCHu != '']", "def nGs0(HH9L):\n V22M = HH9L.split(' ')\n return V22M", "def nGs0(HH9L):\n V22M = HH9L.split(' ')\n return V22M", "def nGs0(HH9L):\n V22M = HH9L.split(' ')\n return V...
[ "0.7137161", "0.70054454", "0.70054454", "0.70007706", "0.6931502", "0.6897904", "0.6870416", "0.6870416", "0.6870416", "0.6870416", "0.6870416", "0.68608433", "0.68608433", "0.6859621", "0.6845815", "0.6844826", "0.6844826", "0.68411094", "0.6801817", "0.67611885", "0.675539...
0.68730825
6
Returns state, reward and done flag given an action.
def PtHv(XeOP: np.ndarray) -> AzJI[oyIN.ndarray, oyIN.ndarray, oyIN.ndarray]: QTBn, vOGg, _ins, bGrB = sEAN.step(XeOP) return (QTBn.astype(oyIN.float32), oyIN.array(vOGg, oyIN.float32), oyIN.array(_ins, oyIN.int32))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPaw(YKHO, XeOP):\n vOGg = YKHO.__execute(XeOP)\n YKHO.__totalReward += vOGg\n jGRS = YKHO.__status()\n QTBn = YKHO.__observe()\n G9jH.debug('action: {:10s} | reward: {: .2f} | status: {}'.format(eax5(XeOP).name, vOGg, jGRS))\n return (QTBn, vOGg, jGRS)", "def YPaw(YKHO, XeOP):\n Ylbp = ...
[ "0.7696786", "0.75491583", "0.7476857", "0.7464613", "0.7378774", "0.73376304", "0.7302427", "0.72069573", "0.7199904", "0.71545213", "0.71231115", "0.71169156", "0.70998794", "0.7034533", "0.70221037", "0.70158213", "0.6965064", "0.6963189", "0.6962916", "0.6939048", "0.6937...
0.0
-1
Check to see if this was built with pyinstaller.
def xsTA(YEnM): if not YEnM.filedata: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IZT0(YKHO, FFUf):\n DZKW.shutit_global_object.yield_to_draw()\n _Fei = YKHO.cfg\n if _Fei[FFUf.module_id]['shutit.core.module.build']:\n return True\n return YKHO.is_installed(FFUf)", "def QvDL(mWFP):\n return lr1t(mWFP) is not None", "def Gc0g(YKHO):\n return YKHO.is_valid_platfor...
[ "0.6855228", "0.6374993", "0.6320093", "0.6280286", "0.6278099", "0.6242287", "0.6234321", "0.6199551", "0.6194903", "0.6194867", "0.61548555", "0.61246425", "0.61246425", "0.6097033", "0.607904", "0.6032464", "0.60257787", "0.6021375", "0.60101235", "0.59989274", "0.5962461"...
0.0
-1
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.7635831
22
Example numbers here are represented by binary digit. if x is 11010 then x & (~(x1)) is 10
def fnCj(WKvO): return WKvO & ~(WKvO - 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxd7(WKvO):\n return WKvO & WKvO - 1", "def jM75(YKHO):\n YKHO.assertEqual(BfDw.binary_complement('11010', '000010'), '00000')", "def X2fP(WKvO, exwG):\n return WKvO & 2 ** exwG", "def k486(YKHO):\n YKHO.assertEqual(BfDw.binary_complement('11010', '00010'), '00000')\n YKHO.assertEqual(BfDw...
[ "0.68127704", "0.6666352", "0.65994275", "0.65612304", "0.65415096", "0.6524083", "0.6516807", "0.64680827", "0.6350648", "0.63479346", "0.632111", "0.63167477", "0.6303793", "0.62875175", "0.62749535", "0.627356", "0.6257102", "0.62329364", "0.62329364", "0.6232761", "0.6219...
0.56949663
78
hide inputs on selection
def e3Mh(): for Q6kx in nUiC.selectedNodes(): Q6kx.knob('hide_input').setValue(not Q6kx.knob('hide_input').value())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Afoa(YKHO):\n YKHO.row_box.grid_remove()\n YKHO.field_name_box.grid_remove()\n YKHO.field_name_label.grid_remove()\n YKHO.value_box.grid_remove()\n YKHO.active_value_widget.grid_remove()", "def Afoa(YKHO):\n YKHO.visible = False", "def nUHY(YKHO):\n P70E.show(YKHO)\n YKHO.input.sele...
[ "0.68803406", "0.6391345", "0.6389261", "0.6389261", "0.63629895", "0.6243904", "0.6220035", "0.61587775", "0.61403745", "0.61403745", "0.6098808", "0.60608405", "0.5947613", "0.5893146", "0.5810868", "0.5780752", "0.5780367", "0.5743026", "0.56984985", "0.56751376", "0.56726...
0.7560828
0
Substitutes numbers for words.
def Wtmp(YKHO, vIwR): A28B = '_'.join(vIwR.split()) for GIN8 in YKHO.math_words['words']: A28B = ZbWC.sub('_'.join(GIN8.split(' ')), YKHO.math_words['words'][GIN8], A28B) for FGW3 in YKHO.math_words['numbers']: A28B = ZbWC.sub(FGW3, str(YKHO.math_words['numbers'][FGW3]), A28B) for NXpY i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FGhF(V22M):\n XP5J = goHf.engine()\n g68O = []\n for GIN8 in V22M:\n if GIN8.isdigit():\n zmME = XP5J.number_to_words(GIN8)\n g68O.append(zmME)\n else:\n g68O.append(GIN8)\n return ' '.join(g68O)", "def FGhF(V22M):\n XP5J = goHf.engine()\n g68O...
[ "0.78815424", "0.78815424", "0.76899475", "0.7578668", "0.75603855", "0.7543888", "0.7543888", "0.7543888", "0.7543888", "0.7543888", "0.7543888", "0.7543888", "0.74002683", "0.73591626", "0.73477817", "0.6909062", "0.68585044", "0.68140036", "0.68121225", "0.67885137", "0.67...
0.6855777
17
Return `text` with spurious words stripped. For example, Google includes the word "Cached" in many search summaries, and this word should therefore mostly be ignored.
def AEX8(l5Ny): _E1f = ['Cached', 'Similar', '的'] for GIN8 in _E1f: l5Ny = l5Ny.replace(GIN8, '') return ZbWC.sub('[.、”“::a-zA-Z%?=()()—「 /-]', ' ', l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W4mU(l5Ny):\n l5Ny = l5Ny.split()\n GIN8 = [GIN8 for GIN8 in l5Ny if GIN8 not in ['pertain', 'estimate', 'link', 'and', 'more', 'fetch', 'be', 'there', 'do', 'you', 'have', 'any', 'is', 'my', 'on', 'can', 'i', 'get', 'some', 'am', 'look', 'for', 'the', 'to', 'share', 'me', 'of', 'please', 'a', 'very', 'a...
[ "0.76660633", "0.7518357", "0.74872106", "0.7423958", "0.7423958", "0.7423958", "0.7423958", "0.7423958", "0.7423958", "0.7299608", "0.7297694", "0.7292363", "0.7215531", "0.72045904", "0.7203306", "0.7144507", "0.7128469", "0.7086231", "0.7060873", "0.7038596", "0.70112026",...
0.7851087
0
Return all the `n`grams in the list `words`. The ngrams are returned as a list of tuples, each tuple containing an ngram, as per the description in `candidate_answers`.
def pCSA(V22M, exwG=1): return [tuple(V22M[r845:r845 + exwG]) for r845 in range(len(V22M) - exwG + 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pCSA(YKHO, V22M):\n if V22M[0] in YKHO._locs:\n for hksT in YKHO._locs[V22M[0]]:\n u8Mh = IaXp.from_loc(len(V22M), hksT)\n if u8Mh.words == V22M:\n yield u8Mh", "def xg2I(_dZy, exwG):\n yCs1 = wr3U(_dZy)\n if exwG != 1:\n yCs1.insert(0, '<s>')\n ...
[ "0.74296814", "0.7207111", "0.7156558", "0.68480724", "0.683955", "0.6824584", "0.6824584", "0.6815814", "0.6815814", "0.6810911", "0.679814", "0.6745664", "0.6715491", "0.66801095", "0.6589672", "0.6581412", "0.65408325", "0.652116", "0.65170217", "0.6511866", "0.64707834", ...
0.7871076
0
Represents the primitive Boolean object.
def FIMM(YKHO, wEf2: bool) -> None: if type(wEf2) != bool: raise TypeError(f"Invalid literal {wEf2} with type '{wEf2.__class__.__name__}' for parameter 'val'") YKHO._val: bool = wEf2 return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WhGw(YKHO):\n return YKHO.as_type(bool)", "def ODtP(YKHO):\n raise Bx6I.NotImplementedError()", "def SDZP(YKHO):\n return _VfD.ASTNode_isBoolean(YKHO)", "def Vo18(YKHO, a1PO):\n a1PO.value = False if a1PO.value == '#false' else True\n return a1PO", "def Sp_5(YKHO):\n ANfV = YKHO._call...
[ "0.7802424", "0.7252334", "0.7200947", "0.7155087", "0.7127187", "0.703225", "0.6972011", "0.696523", "0.69525456", "0.6942381", "0.69281906", "0.69140244", "0.6912753", "0.6891855", "0.6883718", "0.68571824", "0.681882", "0.68157387", "0.67950046", "0.6693864", "0.66900116",...
0.0
-1
Return indices corresponding to start and end indices, strings as defined in self.ind
def J8lb(YKHO, yKcO, Os4s, js_5): if js_5 is None: js_5 = oyIN.arange(YKHO.ind[yKcO].size) QyVM = oyIN.array([]) for G1Hx, wEf2 in enumerate(js_5): QyVM = oyIN.append(QyVM, oyIN.arange(YKHO.ind[yKcO][wEf2], YKHO.ind[Os4s][wEf2])) return QyVM.astype(int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0VL(YKHO):\n return tuple([slice(*Mkmy) for Mkmy in YKHO.location])", "def _1yY(YKHO):\n return (YKHO.i1, YKHO.i2)", "def DFtw(_5yy, zFiD):\n _0VL = [YRbF for YRbF, HcKE in enumerate(zFiD) if HcKE == _5yy]\n yKcO = _0VL[0:-1:2]\n Os4s = [YRbF + 1 for YRbF in _0VL[1::2]]\n assert len(yKcO...
[ "0.6613252", "0.65965605", "0.6544618", "0.6431059", "0.6364212", "0.63390064", "0.6300627", "0.6292207", "0.6190158", "0.6163438", "0.6141324", "0.60766125", "0.6073179", "0.60501415", "0.6031483", "0.6014726", "0.60144985", "0.59757674", "0.5963542", "0.59562665", "0.594752...
0.6896402
0
Represents the Server instance as a string.
def wHJl(YKHO): return 'Server %s at Node %s' % (YKHO.id_number, YKHO.node.id_number)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.socket.__str__()", "def wHJl(YKHO):\n return 'API Server Running at: ' + str(YKHO.host) + ' on Port:' + str(YKHO.port) + '/records: Return records\\n' + '/response_time: Return All response_times\\n' + '/response_time/max: Return max response_times\\n' + '/response_time/min: R...
[ "0.70346725", "0.702829", "0.68264943", "0.6764361", "0.6764361", "0.6743984", "0.6655925", "0.66538006", "0.6634197", "0.6550206", "0.6547462", "0.65176344", "0.65027064", "0.6497352", "0.6479447", "0.6467043", "0.6450142", "0.6426703", "0.63892514", "0.63801646", "0.6379929...
0.74702674
0
Get an iterator to go over all vertices on this face
def iXlf(YKHO): YOBx = DTHg.TopologyExplorer(YKHO.topods_shape(), ignore_orientation=True) return map(Yegm, YOBx.vertices())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n return iter(YKHO._vertices.values())", "def Vs4Q(YKHO):\n return iter(YKHO.vertices.values())", "def _kYX(YKHO):\n for cAlv in YKHO.Vrepresentation():\n if cAlv.is_vertex():\n yield cAlv", "def oHE7(YKHO):\n return hPFK.VertexList_iterator(YKHO)", "def fQ9P(Y...
[ "0.7754764", "0.77251667", "0.76747346", "0.75961226", "0.7524729", "0.74594074", "0.7436522", "0.72085536", "0.7203449", "0.715892", "0.69165814", "0.68816936", "0.68550915", "0.68550915", "0.68022317", "0.6798917", "0.6790471", "0.66502005", "0.66284955", "0.66284955", "0.6...
0.0
-1
Get the face surface geometry
def J20S(YKHO): return yPLI(YKHO.topods_shape())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J20S(YKHO):\n return YKHO._surface", "def J20S():\n \"\"\"\n Get surface for plotting.\n\n :return fsaverage: surface locations as in nilearn\n :return surf: surface for plotting\n \"\"\"\n dCtQ = Gwnr('fsaverage')\n C5Es = {}\n for H5ew in [a1PO + '_' + MKlR for a1...
[ "0.680215", "0.67266846", "0.6512448", "0.6512448", "0.6383799", "0.6345213", "0.63189715", "0.6280069", "0.6251288", "0.62504005", "0.6235906", "0.62328655", "0.62249625", "0.62249625", "0.62133723", "0.6187063", "0.61621284", "0.61621034", "0.61154896", "0.60494953", "0.604...
0.60977256
19
Is this face on the left hand side of the given edge. We take the orientation of the edge into account here Edge direction ^ | Left | Right face | face |
def xwks(YKHO, D70y): AMBO = False for UsS3 in YKHO.wires(): for yxBX in UsS3.ordered_edges(): if D70y == yxBX: if D70y.reversed() == yxBX.reversed(): return True else: AMBO = True assert AMBO, "Edge doesn't belong t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SYSN(YKHO, cXyw):\n if len(YKHO._dims) == 1:\n return cXyw == 0\n return cXyw < YKHO._dims[1]", "def zHQS():\n TxAA.turn_right()\n if TxAA.go():\n TxAA.turn_right()\n TxAA.turn_right()\n TxAA.go()\n TxAA.turn_right()\n return True\n else:\n TxAA...
[ "0.7298923", "0.67701554", "0.66744465", "0.62685955", "0.62516993", "0.621695", "0.61714643", "0.6140334", "0.6125345", "0.6123193", "0.61086607", "0.61075264", "0.6033908", "0.60122323", "0.59473485", "0.5942818", "0.59123516", "0.5909268", "0.5878878", "0.5861554", "0.5858...
0.8736889
0
Compute the mean curvature of the surface geometry at given parameter
def leRv(YKHO, NFIp): Pwzh = xQN8(YKHO.surface(), NFIp[0], NFIp[1], 2, 1e-09).MeanCurvature() if YKHO.reversed(): Pwzh *= -1 return Pwzh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X74i(YKHO):\n return YKHO.circle().curvature(YKHO.o, YKHO.r, p=YKHO.a)", "def NHi6(YKHO, xqoZ):\n with YKHO.fix_evaluator():\n fsgT, j7aV = YKHO.diff(xqoZ, diff=1)\n w51Z, i3rL = YKHO.diff(xqoZ, diff=2)\n exwG = oyIN.sqrt(fsgT ** 2 + j7aV ** 2)\n return abs(fsgT * i3rL - w51...
[ "0.6968003", "0.67775613", "0.6562867", "0.6457239", "0.64446145", "0.6442057", "0.6376508", "0.63385653", "0.6325697", "0.63190585", "0.62529796", "0.62448597", "0.62369734", "0.6039628", "0.59965503", "0.5932112", "0.57973164", "0.57961893", "0.579356", "0.57590014", "0.572...
0.688378
1
Compute the area of the face
def f0tD(YKHO): PgZZ = Dmhd() D72x(YKHO.topods_shape(), PgZZ) return PgZZ.Mass()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO) -> eQHC.NDArray[oyIN.float_]:\n return oyIN.sum(YKHO.faces.area)", "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def f0tD(YKHO) -> ht2j.Tensor:\n FlUN = YKHO.tensor\n f0tD = (FlUN[:, 2] - FlUN[:, 0]) * (FlUN[:, 3] - FlUN[:, 1])\n return f0tD", "def v3_0(YKHO...
[ "0.8075365", "0.75477207", "0.7409792", "0.73411655", "0.73229676", "0.7243535", "0.7236911", "0.7189196", "0.71172404", "0.709804", "0.7077326", "0.70591605", "0.70460397", "0.7045543", "0.70402086", "0.699596", "0.6990804", "0.69881445", "0.69680536", "0.6962157", "0.694803...
0.0
-1
Get the given edge's curve geometry as a 2D parametric curve on this face
def RNJ5(YKHO, D70y): AY2l, Vvpx, VIDK = ql_G().CurveOnSurface(D70y.topods_shape(), YKHO.topods_shape()) return (AY2l, Kx1f(Vvpx, VIDK))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DTl9(YKHO, *qIxc):\n return tmhh.ShapeBuild_Edge_TransformPCurve(YKHO, *qIxc)", "def Zx_s(YKHO, QpfX):\n AdZ9 = kZw_.data.curves.new('LINE', type='CURVE')\n AdZ9.dimensions = '2D'\n xzMX = AdZ9.splines.new('POLY')\n xzMX.use_endpoint_u = False\n xzMX.use_cyclic_u = False\n y5bX = YKHO.pt...
[ "0.594334", "0.58956635", "0.5850334", "0.56354296", "0.5602325", "0.5592754", "0.5577196", "0.55470103", "0.55455935", "0.55170935", "0.54957074", "0.54723036", "0.5438827", "0.5429558", "0.54181516", "0.54023826", "0.54004747", "0.5396389", "0.53569096", "0.53291345", "0.53...
0.7469369
0
Get the UV parameter by projecting the point on this face
def dEHt(YKHO, Xf84): NFIp = Qlnv(YKHO.surface()).ValueOfUV(qawM(Xf84[0], Xf84[1], Xf84[2]), 1e-09) return oyIN.array(NFIp.Coord())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oKud(YKHO, XP5J):\n rPz6 = YKHO.position - YKHO.sx * YKHO.n0 / 2 - YKHO.sy * YKHO.n1 / 2\n iHhD = XP5J - rPz6\n P6bq = oyIN.dot(iHhD, YKHO.n0) / YKHO.sx\n Ty9i = oyIN.dot(iHhD, YKHO.n1) / YKHO.sy\n return (P6bq, Ty9i)", "def oKud(YKHO, XP5J):\n lqyv = (XP5J - YKHO.position) / YKHO.radius\n ...
[ "0.74567586", "0.72020894", "0.6987332", "0.68170387", "0.6740343", "0.64852583", "0.6426348", "0.631582", "0.63151157", "0.6213298", "0.61232054", "0.61133444", "0.60805804", "0.6071526", "0.60660106", "0.6035578", "0.6008279", "0.60076493", "0.59738916", "0.59698856", "0.59...
0.7431836
1
Whether the surface is closed along the Udirection
def I18e(YKHO): RyuO = Qlnv(YKHO.surface()) return RyuO.IsUClosed()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EOEz(YKHO):\n w0rx = ftu3(YKHO.topods_shape())\n return w0rx.IsUPeriodic()", "def EsGQ(YKHO):\n RyuO = Qlnv(YKHO.surface())\n return RyuO.IsVClosed()", "def nrqQ(YKHO):\n return YKHO.radius == 0.0", "def CVSN(YKHO):\n return YKHO.z < 0", "def Wcic(YKHO):\n if YKHO.infinity:\n ...
[ "0.6720064", "0.6552915", "0.6457255", "0.63541704", "0.62969494", "0.62857306", "0.6279894", "0.6199884", "0.6155958", "0.61556506", "0.6103687", "0.6102787", "0.6075759", "0.6073888", "0.6072125", "0.6046026", "0.6037678", "0.60334384", "0.6031402", "0.6007667", "0.6001204"...
0.77395856
0
Whether the surface is closed along the Vdirection
def EsGQ(YKHO): RyuO = Qlnv(YKHO.surface()) return RyuO.IsVClosed()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yHAf(Ty9i, VnzS, LFlW, _tIi, QWcs):\n if QWcs.open_side == 'LEFT':\n if Ty9i in LFlW.verts and Ty9i not in VnzS.verts:\n return True\n elif QWcs.open_side == 'RIGHT':\n if Ty9i in _tIi.verts and Ty9i not in VnzS.verts:\n return True\n return False", "def yzpR(YKHO...
[ "0.6927587", "0.6569981", "0.64208853", "0.6407151", "0.639047", "0.62821025", "0.6270388", "0.6258616", "0.6196833", "0.61622787", "0.614954", "0.61195624", "0.61181366", "0.6080501", "0.60649216", "0.60649216", "0.6062318", "0.6049763", "0.6019987", "0.60188407", "0.5972964...
0.76044774
0
Whether the surface is periodic along the Udirection
def EOEz(YKHO): w0rx = ftu3(YKHO.topods_shape()) return w0rx.IsUPeriodic()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k4QA(YKHO):\n w0rx = ftu3(YKHO.topods_shape())\n return w0rx.IsVPeriodic()", "def vmcZ(YKHO):\n if oyIN.all(oyIN.abs(YKHO.arroots) > 1.0):\n return True\n else:\n return False", "def tazO(PItd):\n Sw3p = o43M(PItd)\n if xpeN(*Sw3p) < oyIN.pi / 2:\n return True\n el...
[ "0.6646627", "0.61730313", "0.6131752", "0.5937108", "0.5841844", "0.57729334", "0.5770635", "0.57558036", "0.56387997", "0.5601028", "0.5582384", "0.5564862", "0.5559984", "0.5556545", "0.55439967", "0.5532087", "0.55265665", "0.55261064", "0.55203736", "0.551137", "0.550807...
0.79861295
0
Yield successive nsized chunks from lst.
def eHxA(yv6U, exwG): for YRbF in range(0, len(yv6U), exwG): yield yv6U[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield...
[ "0.83071756", "0.81939614", "0.81910837", "0.81910837", "0.81267184", "0.81218547", "0.81218547", "0.80773693", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457"...
0.8190213
4
Updates the contents of the analysis text box.
def QdZT(YKHO, *bGrB): if not YKHO.input_main.edit_modified(): return l4pn = YKHO.create_analysis() YKHO.output_main['state'] = on8l.NORMAL YKHO.output_main.delete('1.0', on8l.END) YKHO.output_main.insert('1.0', l4pn) YKHO.output_main['state'] = on8l.DISABLED YKHO.input_main.edit_mod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uUrB(YKHO, tvqc):\n YKHO.updatetext(YKHO.textfunc, YKHO.textargs)", "def LGrP(YKHO):\n YKHO.text = YKHO.ui.plainTextEdit.toPlainText()\n e55Z = vfzC(YKHO.text)\n YKHO.ui.label.setText(f'{vfzC(YKHO.text)} sentences in source text')\n YKHO.ui.spinBox.setMaximum(e55Z)", "def QdZT(YKHO):\n YK...
[ "0.70499164", "0.69921833", "0.6784368", "0.66810155", "0.6622882", "0.65331525", "0.6486708", "0.6376039", "0.63442814", "0.6257796", "0.6184613", "0.6184613", "0.616388", "0.6135382", "0.61353534", "0.61353534", "0.61115617", "0.61001474", "0.6061367", "0.6051179", "0.60337...
0.7827922
0
Generate a random string of fixed length
def BWvy(a__r=15): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(a__r)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.8679777", "0.8572563", "0.85476273", "0.8527712", "0.8520763", "0.8431956", "0.8430901", "0.8414719", "0.84101564", "0.83888966", "0.83451134", "0.8343124", "0.8339913", "0.83331096", "0.8322297", "0.8297985", "0.8291266", "0.82815176", "0.8280923", "0.82804364", "0.826402...
0.78849506
64
Generate a random string of fixed length
def z2lz(): return tuKI.randint(0, 9999)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.8680464", "0.8573714", "0.85486245", "0.85297275", "0.85209286", "0.84331024", "0.8432044", "0.84157014", "0.84120053", "0.8389201", "0.8345882", "0.8343962", "0.83406156", "0.83348686", "0.83240855", "0.82986933", "0.82911193", "0.8281826", "0.82818025", "0.82811046", "0....
0.0
-1
Return a list of all Concerts in the database.
def NMoC(YKHO, QePW): q3zD = Z63S.objects.order_by('date_time') if q3zD: mn17 = q3zD[0].date_scraped else: mn17 = qcWV(1900, 1, 1) QpfX = {'concert_list': q3zD, 'last_updated': mn17} return _1tc(QePW, 'concerts/concert_list.html', QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list():\n return {'cncs': [{'id': id.split('/')[-1]} for id in sorted(WsL5.current_app.redis.keys('/cnc/*'))]}", "def EsPr(YKHO):\n bD7m = YKHO._get_url() + 'citations'\n S8VF = YKHO._request(bD7m)\n return S8VF.json()", "def ymqH():\n yuVB = NCls.session.query(WZyy).order_by(WZyy.id).all()\...
[ "0.6729277", "0.66297257", "0.64498377", "0.6415649", "0.6382938", "0.63697636", "0.6329437", "0.62263405", "0.6207303", "0.61637545", "0.6128165", "0.609323", "0.607647", "0.6072333", "0.6071385", "0.6048761", "0.60121936", "0.59947985", "0.5945403", "0.5934015", "0.59317696...
0.5669912
44
Perform a horizontal shift on all rows. Pass left=True for left and left=False for right. The grid will be changed inplace.
def uDGi(Cs6h, LFlW=True): for YRbF, rdlD in enumerate(Cs6h): Cs6h[YRbF] = Jh44(rdlD, LFlW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VfNG(YKHO):\n z2tq = rApN(oyIN.rot90(oyIN.rot90(oyIN.rot90(YKHO.grid))))\n YKHO.grid = oyIN.rot90(z2tq.swipeBase())", "def asS5(Cs6h):\n for rdlD in range(4):\n XLMv = []\n for fvDH in range(4):\n XLMv.append(Cs6h[rdlD][fvDH])\n H2v5(XLMv)\n for YRbF in range(4...
[ "0.67095685", "0.6561249", "0.650597", "0.6432329", "0.6376621", "0.63711894", "0.6282684", "0.6199841", "0.6176549", "0.6171532", "0.6097904", "0.60967135", "0.59959304", "0.5982909", "0.5982516", "0.59429663", "0.59148717", "0.5884634", "0.58775246", "0.5843569", "0.5837161...
0.6738214
0
Return a list of coordinate pairs corresponding to empty cells.
def gfID(Cs6h): lsmZ = [] for r845, rdlD in enumerate(Cs6h): for YRbF, wEf2 in enumerate(rdlD): if not wEf2: lsmZ.append((r845, YRbF)) return lsmZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gfID(Cs6h):\n lsmZ = []\n for r845, rdlD in enumerate(Cs6h):\n for YRbF, wEf2 in enumerate(rdlD):\n if not wEf2:\n lsmZ.append((r845, YRbF))\n return lsmZ", "def Dn0W(QTBn):\n JnVq = []\n for WKvO, rdlD in enumerate(QTBn):\n for LVAh, VmPb in enumerate(r...
[ "0.82016677", "0.8106722", "0.7881721", "0.78399885", "0.7816201", "0.7774224", "0.76896685", "0.7566796", "0.75358933", "0.7367822", "0.7362139", "0.7313527", "0.72766584", "0.7221659", "0.7109574", "0.7071009", "0.7039268", "0.6926364", "0.6887955", "0.68496126", "0.6788944...
0.82954764
0
Compute the kernel matrix between A and B. Might get called with A = X, B = X, or A = X, B = Y, etc. Should return a tensor of shape [A.shape[0], B.shape[0]]. This default, slow, version calls self._compute_one(a, b) in a loop. If you override this, you don't need to implement _compute_one at all.
def tBwn(YKHO, k0lF, tjUW): return ht2j.stack([ht2j.stack([ht2j.as_tensor(YKHO._compute_one(jzdc, Fg_i)) for Fg_i in tjUW]) for jzdc in k0lF])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, k0lF, tjUW):\n assert len(k0lF.shape) == len(tjUW.shape)\n if len(k0lF.shape) == 2 and len(tjUW.shape) == 2:\n k0lF = k0lF[None]\n tjUW = tjUW[None]\n Pna4 = True\n tpio += 1\n elif len(k0lF.shape) == 3 and len(tjUW.shape) == 3:\n Pna4 = False\n pas...
[ "0.62648165", "0.6137887", "0.6037008", "0.5923665", "0.5819289", "0.5785836", "0.5755274", "0.5726333", "0.5710969", "0.56440824", "0.56375194", "0.5636588", "0.5634933", "0.5603411", "0.5581478", "0.5559403", "0.55582786", "0.55526364", "0.5540945", "0.5519009", "0.5502999"...
0.6028569
3
Compute something extra for each part A. Can be used to share computation between kernel(X, X) and kernel(X, Y). We end up calling basically (but with caching) self._compute(A, self._precompute(A), B, self._precompute(B)) This default _precompute returns an empty tuple, so it's self._compute(A, B) But if you return [A_...
def YOv_(YKHO, k0lF): return ()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBwn(YKHO, k0lF, tjUW):\n return ht2j.stack([ht2j.stack([ht2j.as_tensor(YKHO._compute_one(jzdc, Fg_i)) for Fg_i in tjUW]) for jzdc in k0lF])", "def P9L0(YKHO, sk4W, mF43, wW7t):\n YKHO.reduce_A(sk4W)\n YKHO.reduce_B(mF43)\n YKHO.reduce_C(wW7t)\n return (YKHO.A_reduced, YKHO.B_reduced, YKHO.C_r...
[ "0.6791557", "0.62104493", "0.60345423", "0.59312725", "0.591139", "0.58817303", "0.57777464", "0.5768677", "0.55885524", "0.558009", "0.5484722", "0.5465948", "0.54596984", "0.54596984", "0.54454696", "0.5422421", "0.54032713", "0.53993064", "0.5396079", "0.5364988", "0.5359...
0.6353818
1
Takes UTC datetime object and return ISO8601 string
def pHDu(JRYC): return JRYC.format(wkYx) + 'Z'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpCw(YEnM: datetime.datetime) -> str:\n return YEnM.replace(tzinfo=qcWV.timezone.utc).isoformat().replace('+00:00', 'Z')", "def NN8z(YEnM):\n return YEnM.strftime('%Y-%m-%dT%H:%M:%SZ')", "def Weve(ppPa):\n assert not ppPa.utcoffset()\n return ppPa.strftime('%Y-%m-%dT%H:%M:%S.%f') + 'Z'", "def...
[ "0.8141941", "0.79252195", "0.7835218", "0.77787304", "0.75846547", "0.7471046", "0.7303033", "0.7273685", "0.7231081", "0.7222901", "0.72224396", "0.71815675", "0.71231914", "0.71199864", "0.7076541", "0.70720387", "0.7069851", "0.700888", "0.6998697", "0.6990029", "0.696071...
0.7102107
14
The function search the closest math symbol to input symbol on the right side and returns his index.
def mhOU(o61b, d6pt): Za_q = -1 uYq_ = float('inf') for H_RK in range(len(Q8aX)): if H_RK != d6pt: vwkg = Q8aX[H_RK] sP7T = BhgN(o61b, vwkg) xeYM = vwkg.center[0] d1QL = o61b.center[0] if sP7T and d1QL < xeYM: yKYQ = vwkg.bo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hHJL(o61b, d6pt):\n DtgA = -1\n uYq_ = float('inf')\n for H_RK in range(len(Q8aX)):\n if H_RK != d6pt:\n vwkg = Q8aX[H_RK]\n sP7T = BhgN(o61b, vwkg)\n xeYM = vwkg.center[0]\n d1QL = o61b.center[0]\n if sP7T and xeYM < d1QL:\n ...
[ "0.71953446", "0.67018914", "0.6351156", "0.6343793", "0.6289443", "0.6196905", "0.6167313", "0.6005686", "0.60014474", "0.60012966", "0.598553", "0.5813043", "0.57776487", "0.561742", "0.56140614", "0.5576748", "0.5576558", "0.5575744", "0.5556814", "0.55048174", "0.54939574...
0.71717495
1
The function search the closest symbol to symbol on the left side and returns his index.
def hHJL(o61b, d6pt): DtgA = -1 uYq_ = float('inf') for H_RK in range(len(Q8aX)): if H_RK != d6pt: vwkg = Q8aX[H_RK] sP7T = BhgN(o61b, vwkg) xeYM = vwkg.center[0] d1QL = o61b.center[0] if sP7T and xeYM < d1QL: Q0Lq = vwkg.bo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhOU(o61b, d6pt):\n Za_q = -1\n uYq_ = float('inf')\n for H_RK in range(len(Q8aX)):\n if H_RK != d6pt:\n vwkg = Q8aX[H_RK]\n sP7T = BhgN(o61b, vwkg)\n xeYM = vwkg.center[0]\n d1QL = o61b.center[0]\n if sP7T and d1QL < xeYM:\n ...
[ "0.71731657", "0.6783734", "0.63910544", "0.6198357", "0.61702436", "0.6149031", "0.61278903", "0.6110517", "0.60872394", "0.60468185", "0.6033304", "0.59687793", "0.59586424", "0.5955617", "0.59552675", "0.59451944", "0.59365183", "0.5935274", "0.5933324", "0.591271", "0.590...
0.82870704
0
Returns the n'th occurrence of s splitted with the delimiter.
def nHKl(KCHu, TDw3, B34d): return KCHu.split(TDw3)[B34d]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(KCHu):\n return int(KCHu[KCHu.find('[') + 1:KCHu.find(']')])", "def kyws(WpvP: str, wb_y: str, lpha: str=','):\n yv6U = [WKvO.strip().lower() for WKvO in str(WpvP).split(lpha)]\n fdMZ = -1\n for or8S in range(len(yv6U)):\n try:\n yv6U[or8S].index(wb_y)\n fdMZ = o...
[ "0.627772", "0.6240202", "0.6105271", "0.6012377", "0.59757066", "0.59426624", "0.5932078", "0.58777165", "0.56676006", "0.5625075", "0.5619137", "0.56100154", "0.5606043", "0.5595186", "0.5577129", "0.55570596", "0.55358815", "0.55144393", "0.55008495", "0.5477959", "0.54745...
0.7550748
0
Return a list of numbers from 'bgn' to 'end' (inclusive), separated by at LEAST 'stepSize'
def jHSg(x9FB, Os4s, ua7R): return oyIN.linspace(x9FB, Os4s, num=JNU5((Os4s - x9FB) / ua7R), endpoint=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xuVq(x9FB, Os4s, ua7R):\n bQRs = (Os4s - x9FB) / ua7R\n ulFG = [x9FB + YRbF * ua7R for YRbF in Ni9Y(JNU5(bQRs) + 1)]\n if bQRs % 1 > 0:\n ulFG.append(Os4s)\n return ulFG", "def uIC0(yKcO, Os4s, paSp=1):\n list = []\n YRbF = yKcO\n while YRbF < Os4s:\n list.append(YRbF)\n ...
[ "0.7503607", "0.67077297", "0.65793264", "0.6468329", "0.6410941", "0.6394417", "0.63912874", "0.62909937", "0.6212184", "0.61731505", "0.6156595", "0.6086265", "0.60644144", "0.60462826", "0.6028342", "0.60192126", "0.6010421", "0.5993806", "0.59905833", "0.5950705", "0.5949...
0.7509704
0
Return a list of numbers from 'bgn' to 'end' (inclusive), separated by at MOST 'stepSize'
def xuVq(x9FB, Os4s, ua7R): bQRs = (Os4s - x9FB) / ua7R ulFG = [x9FB + YRbF * ua7R for YRbF in Ni9Y(JNU5(bQRs) + 1)] if bQRs % 1 > 0: ulFG.append(Os4s) return ulFG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jHSg(x9FB, Os4s, ua7R):\n return oyIN.linspace(x9FB, Os4s, num=JNU5((Os4s - x9FB) / ua7R), endpoint=True)", "def uIC0(yKcO, Os4s, paSp=1):\n list = []\n YRbF = yKcO\n while YRbF < Os4s:\n list.append(YRbF)\n YRbF += paSp\n return list", "def uXWz(yKcO, Os4s, paSp, xMdD=None):\n...
[ "0.72661185", "0.68283045", "0.66001165", "0.6527431", "0.65084", "0.65026414", "0.63567674", "0.6327457", "0.62562716", "0.6225763", "0.61354244", "0.61353606", "0.61297274", "0.6098803", "0.6096684", "0.60566485", "0.60063785", "0.5986516", "0.59771997", "0.595036", "0.5938...
0.7589755
0
Create a very simple SparseTensor with dimensions (batch, time).
def t9Ww(WKvO): _HTG = [] rfpI = [] for a2Ls, Wc9F in enumerate(WKvO): for ITS7, wEf2 in enumerate(Wc9F): _HTG.append([a2Ls, ITS7]) rfpI.append(wEf2) OOcW = [len(WKvO), oyIN.asarray(_HTG).max(0)[1] + 1] return (_HTG, rfpI, OOcW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t9Ww(WKvO):\n _HTG = []\n rfpI = []\n for a2Ls, Wc9F in enumerate(WKvO):\n for ITS7, wEf2 in enumerate(Wc9F):\n _HTG.append([a2Ls, ITS7])\n rfpI.append(wEf2)\n OOcW = [len(WKvO), oyIN.asarray(_HTG).max(0)[1] + 1]\n _HTG = ZylS.constant(_HTG, ZylS.int64)\n rfpI = Z...
[ "0.806455", "0.698965", "0.69786584", "0.6715365", "0.65662026", "0.6559799", "0.64801747", "0.6436444", "0.6337114", "0.63059366", "0.6297952", "0.62593", "0.6196853", "0.6183319", "0.6165012", "0.6125902", "0.6123623", "0.61051357", "0.6100126", "0.6088683", "0.6075629", ...
0.7715332
1
Sets the id of this VersionList.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id", ...
[ "0.72839373", "0.7283293", "0.72781837", "0.7143824", "0.6959204", "0.6959204", "0.6959204", "0.6959204", "0.6959204" ]
0.0
-1
Sets the description of this VersionList.
def JBZA(YKHO, JBZA): if YKHO.local_vars_configuration.client_side_validation and JBZA is not None and (len(JBZA) > 200): raise ValueError('Invalid value for `description`, length must be less than or equal to `200`') YKHO._description = JBZA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO._description = JBZA", "def prlj(YKHO, JBZA):\n YKHO.description = str(JBZA)", "def JBZA(YKHO, JBZA):\n ...
[ "0.7628644", "0.7612122", "0.76053977", "0.7595256", "0.7502267", "0.73817474", "0.73817474", "0.73817474", "0.73817474", "0.73747677", "0.73747677", "0.73747677", "0.73747677", "0.73747677", "0.73747677", "0.73747677", "0.73747677", "0.73747677", "0.73747677", "0.73747677", ...
0.6477355
90
Sets the error_message of this VersionList.
def rhwM(YKHO, rhwM): if YKHO.local_vars_configuration.client_side_validation and rhwM is not None and (len(rhwM) > 500): raise ValueError('Invalid value for `error_message`, length must be less than or equal to `500`') YKHO._error_message = rhwM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhwM(YKHO, rhwM: str):\n YKHO._error_message = rhwM", "def rhwM(YKHO, rhwM):\n YKHO._error_message = rhwM", "def _iCh(YKHO, Gs2B):\n YKHO._errorMessage = Gs2B", "def gpJ9(YKHO, P1dF):\n YKHO._set_sub_text('error', text=str(P1dF))\n return YKHO", "def rhwM(YKHO, rhwM):\n if rhwM is not...
[ "0.78350246", "0.78121287", "0.7400095", "0.7005561", "0.69827324", "0.65354335", "0.6524109", "0.62657756", "0.61801594", "0.61469555", "0.61469555", "0.61469555", "0.61430734", "0.61283404", "0.61283404", "0.61283404", "0.61243135", "0.60951674", "0.6088888", "0.6087473", "...
0.7075057
3
Sets the memory_allocation of this VersionList.
def dIS4(YKHO, dIS4): if YKHO.local_vars_configuration.client_side_validation and dIS4 is not None and (dIS4 > 1048576): raise ValueError('Invalid value for `memory_allocation`, must be a value less than or equal to `1048576`') if YKHO.local_vars_configuration.client_side_validation and dIS4 is not None...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ChB9(YKHO, ChB9):\n YKHO._allocated_memory = ChB9", "def _p7a(YKHO, _p7a):\n YKHO._memory = _p7a", "def r7yH(YKHO, r7yH):\n BbPm = ['AUTOMATIC', 'IN_CORE', 'MEMORY_DEMAND_EVALUATION', 'OUT_OF_CORE']\n if YKHO.local_vars_configuration.client_side_validation and r7yH not in BbPm:\n raise V...
[ "0.74491113", "0.708843", "0.63942", "0.6375137", "0.6355916", "0.63141024", "0.60862654", "0.6064399", "0.6025613", "0.6020074", "0.6008263", "0.596554", "0.5952661", "0.5853796", "0.58076775", "0.5722856", "0.56539494", "0.5615019", "0.5561028", "0.55372864", "0.55322236", ...
0.74105346
1
Sets the maximum_instances of this VersionList.
def K3g3(YKHO, K3g3): if YKHO.local_vars_configuration.client_side_validation and K3g3 is not None and (K3g3 > 2147483647): raise ValueError('Invalid value for `maximum_instances`, must be a value less than or equal to `2147483647`') if YKHO.local_vars_configuration.client_side_validation and K3g3 is no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M2E_(YKHO, Ty9i):\n return YKHO._set(maxEpochs=Ty9i)", "def JM8H(Emd4, cAZP: int, *qIxc: BuiltInTypes, **B2fa: BuiltInTypes) -> dTft:\n if Emd4._max_val_is_changed:\n return 'The maximum number of class instances has already been changed.'\n else:\n Emd4._max_val_is_changed = True\n ...
[ "0.64629024", "0.644348", "0.63426554", "0.6230698", "0.6230698", "0.6204371", "0.6128207", "0.60930145", "0.60930145", "0.60541433", "0.60541433", "0.60541433", "0.6049028", "0.603094", "0.60249895", "0.59941524", "0.5989461", "0.5984751", "0.5982129", "0.59422135", "0.59355...
0.75081205
0
Sets the last_updated of this VersionList.
def mn17(YKHO, mn17): YKHO._last_updated = mn17
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mn17(YKHO, mn17: str):\n YKHO._last_updated = mn17", "def mn17(YKHO, BWXx):\n YKHO._last_updated = BWXx", "def sPBL(YKHO, sPBL: datetime):\n YKHO._updated = sPBL", "def Tlir(YKHO, Tlir):\n YKHO._last_update_timestamp = Tlir", "def cV9T(YKHO, cV9T):\n YKHO._last_update = cV9T", "def TO1...
[ "0.783156", "0.742845", "0.7095724", "0.70114964", "0.6935989", "0.6897056", "0.68349934", "0.68167955", "0.68167955", "0.6754715", "0.6660729", "0.66458774", "0.66458774", "0.66458774", "0.66458774", "0.6567543", "0.6507392", "0.64871097", "0.64871097", "0.64871097", "0.6487...
0.7990411
3
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, TXDq): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, TXDq): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Moves the horizontal print position relative to the left margin in 1/60th of inches. The printer ignores this command if the specified position is to the right of the right margin.
def ILP0(YKHO, ILP0=0): if not 0 <= ILP0 <= 4095 or type(ILP0) is not int: raise ValueError('horizontalPosition must be a int between 0 and 4095 and not ' + str(ILP0)) else: ZXIx = ILP0 >> 8 fX91 = ILP0 - (ZXIx << 8) YKHO._write(YKHO.__class__.__ESC + '$' + chr(fX91) + chr(ZXIx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jDQv(YKHO):\n if YKHO.xcor() < -230:\n YKHO.setx(-255)\n else:\n kNbz = YKHO.xcor() - 40\n YKHO.setx(kNbz)", "def pf6j(YKHO, pf6j=10):\n if not 0 <= pf6j <= 65535 or type(pf6j) is not int:\n raise ValueError('leftMargin must be a int between 0 and 65535')\n else:\n ...
[ "0.67172843", "0.66747254", "0.6126015", "0.610396", "0.6089386", "0.60388637", "0.5968692", "0.5838799", "0.5829698", "0.5821977", "0.5765187", "0.5720383", "0.5713015", "0.5703716", "0.56930363", "0.5654981", "0.5646541", "0.55797887", "0.5579431", "0.55454755", "0.5500115"...
0.5974407
6
Sets the left margin for printing. Set the left margin at the beginning of a line. The printer ignores any data preceding this command on the same line in the buffer. In page mode sets the left margin to leftMargin x (horizontal motion unit) from the left edge of the printable area
def pf6j(YKHO, pf6j=10): if not 0 <= pf6j <= 65535 or type(pf6j) is not int: raise ValueError('leftMargin must be a int between 0 and 65535') else: ZXIx = pf6j >> 8 fX91 = pf6j - (ZXIx << 8) YKHO._write(YKHO.__class__.__GS + 'L' + chr(fX91) + chr(ZXIx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uEHG(YKHO):\n YKHO.worksheet.set_margins(left=0.5)\n YKHO.worksheet._write_page_margins()\n kLQb = '<pageMargins left=\"0.5\" right=\"0.7\" top=\"0.75\" bottom=\"0.75\" header=\"0.3\" footer=\"0.3\"/>'\n nLhi = YKHO.fh.getvalue()\n YKHO.assertEqual(nLhi, kLQb)", "def EMoC(YKHO, EMoC):\n YKH...
[ "0.6157114", "0.60113204", "0.60113204", "0.59523124", "0.5837685", "0.583633", "0.57008284", "0.567002", "0.5639263", "0.55910116", "0.5498445", "0.54898745", "0.5487963", "0.54803205", "0.54713064", "0.5425386", "0.53695226", "0.53454417", "0.53319454", "0.52931565", "0.529...
0.77645415
0
Compute the pairwise distance matrix between a and b which both have size [m, n, d] or [n, d]. The result is a tensor of
def lAMv(jzdc, Fg_i, XP5J=2): u3bp = False if len(jzdc.shape) == 2 and len(Fg_i.shape) == 2: jzdc = ZylS.expand_dims(jzdc, 0) Fg_i = ZylS.expand_dims(jzdc, 0) u3bp = True U5bT = ZylS.reduce_sum(ZylS.keras.backend.pow(ZylS.math.abs(ZylS.expand_dims(jzdc, 2) - ZylS.expand_dims(Fg_i, 1)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usGr(jzdc, Fg_i):\n ywwl, lWPh = (ZylS.shape(jzdc)[0], ZylS.shape(jzdc)[1])\n E3D9 = ZylS.shape(Fg_i)[0]\n jzdc = ZylS.tile(ZylS.expand_dims(jzdc, axis=1), (1, E3D9, 1))\n Fg_i = ZylS.tile(ZylS.expand_dims(Fg_i, axis=0), (ywwl, 1, 1))\n quHw = ZylS.reduce_mean(ZylS.square(jzdc - Fg_i), axis=2)\n...
[ "0.6902652", "0.67911065", "0.6719337", "0.66482395", "0.66320753", "0.65923566", "0.6484438", "0.643346", "0.63322103", "0.62631416", "0.6201301", "0.6182633", "0.61790967", "0.6174446", "0.6154466", "0.6112784", "0.60769695", "0.60753304", "0.6055228", "0.6037735", "0.59989...
0.7342199
0
This will return the number of connections.
def BFf7(): nPrm = wQcs.getoutput('netstat -n | grep -c tcp') return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iT_a(YKHO):\n return YKHO.proxy.getconnectioncount()", "def dVDm(YKHO):\n return len(YKHO._available_connections) + len(YKHO._in_use_connections)", "def XZgE(YKHO):\n hXtV = 0\n for vb7U in YKHO.weights:\n hXtV += vb7U.size\n return hXtV", "def RDfO(YKHO):\n return len(YKHO._conn...
[ "0.87262654", "0.79701847", "0.7888119", "0.77742416", "0.7731998", "0.7409358", "0.7396894", "0.7315347", "0.7295333", "0.7286989", "0.72343886", "0.7207752", "0.7160435", "0.7069122", "0.70655435", "0.7047154", "0.7040733", "0.7027381", "0.7017638", "0.7006243", "0.69963837...
0.7330322
7
Shortest distance between two sets of spherical coordinates. Given a set of groundtruth spherical coordinates, and its respective predicted coordinates, we calculate the spherical distance between each of the spherical coordinate pairs resulting in a matrix of distances, where one axis represents the number of groundtr...
def o6mN(ilMA, UEcl): osDH, BEW_ = (ilMA.shape[0], UEcl.shape[0]) qYoe = oyIN.array([[WKvO, LVAh] for LVAh in range(BEW_) for WKvO in range(osDH)]) ytNa = oyIN.zeros((osDH, BEW_)) if osDH and BEW_: IYby, Br6z, V9Ud, EBWD = (ilMA[qYoe[:, 0], 0], ilMA[qYoe[:, 0], 1], UEcl[qYoe[:, 1], 0], UEcl[qYoe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZOEP(WKvO, LVAh):\n ohxs = oyIN.sqrt((WKvO ** 2).sum(axis=1))\n SKbT = oyIN.sqrt((LVAh ** 2).sum(axis=1))\n qK70 = oyIN.dot(WKvO, LVAh.T) / (ohxs[:, None] * SKbT[None, :])\n qK70 = oyIN.clip(qK70, -1, 1)\n return ohxs[:, None] * oyIN.arccos(qK70)", "def sC_M(igSk, GgQG, TGuP, tk0B):\n NbhI ...
[ "0.57881534", "0.5718847", "0.5637151", "0.5613649", "0.56097025", "0.5563413", "0.5557891", "0.5539134", "0.550624", "0.54595786", "0.5453537", "0.542221", "0.54142886", "0.54104954", "0.54030025", "0.5357205", "0.53551453", "0.53439796", "0.533596", "0.53135914", "0.5306946...
0.0
-1
Angular distance between two spherical coordinates
def ZlP0(IYby, Br6z, V9Ud, EBWD): pImw = oyIN.sin(Br6z) * oyIN.sin(EBWD) + oyIN.cos(Br6z) * oyIN.cos(EBWD) * oyIN.cos(oyIN.abs(IYby - V9Ud)) pImw = oyIN.clip(pImw, -1, 1) pImw = oyIN.arccos(pImw) * 180 / oyIN.pi return pImw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9cH(igSk, GgQG, TGuP, tk0B):\n jfap = mM0K / 180\n return fH9s(YhSR(igSk * jfap) * YhSR(GgQG * jfap) * YhSR(TGuP * jfap) * YhSR(tk0B * jfap) + YhSR(igSk * jfap) * YUNn(GgQG * jfap) * YhSR(TGuP * jfap) * YUNn(tk0B * jfap) + YUNn(igSk * jfap) * YUNn(TGuP * jfap))", "def Z9cH(iT5T, igSk, JSDM, TGuP):\n ...
[ "0.771338", "0.7457169", "0.6832781", "0.67985874", "0.67935944", "0.67864627", "0.6754118", "0.66961193", "0.6659209", "0.66559553", "0.6639117", "0.661399", "0.6601418", "0.65968424", "0.65929717", "0.6591951", "0.6563591", "0.6545598", "0.6481332", "0.64763004", "0.6475621...
0.6501094
18
Including A moving object into the gridworld, which moves uniformly at random in all accessible directions (including idle), without
def KmCR(YKHO, KCHu, dnR4=True, dM6E=True): if dnR4: YKHO.background() WKvO, LVAh = YKHO.indx2coord(KCHu, center=True) a9eO.draw.circle(YKHO.surface, (205, 92, 0), (LVAh, WKvO), YKHO.size / 2) if dM6E: YKHO.screen.blit(YKHO.surface, (0, 0)) a9eO.display.flip() return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VHEX(YKHO):\n Mkmy = tuKI.randint(0, 3)\n if Mkmy == 0:\n YKHO.x += 1\n elif Mkmy == 1:\n YKHO.y += 1\n elif Mkmy == 2:\n YKHO.x -= 1\n elif Mkmy == 3:\n YKHO.y -= 1", "def QdZT(YKHO):\n if YKHO.x < 0:\n YKHO.x = 0\n if YKHO.y < 0:\n YKHO.y = 0\n...
[ "0.7344722", "0.72038114", "0.698939", "0.6971952", "0.69340324", "0.6897358", "0.689688", "0.6845048", "0.67559236", "0.6707663", "0.6658819", "0.6650899", "0.66193163", "0.6580656", "0.65782386", "0.65782386", "0.64878494", "0.6484331", "0.64633733", "0.64251995", "0.642348...
0.0
-1
Perform top k accuracy.
def nrOS(YKHO, hlel, pan_, *qIxc, **B2fa): if isinstance(hlel, tuple): hlel = hlel[0] if isinstance(pan_, tuple) or isinstance(pan_, list): pan_ = pan_[0] Ylbp = vjyh(hlel, pan_, YKHO.topk) exwG = hlel.size(0) YKHO.data_num += exwG YKHO.sum = [YKHO.sum[d6pt] + ZfUD.item() * exwG ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ivK8(hlel, pan_, hz5a=(5, 10)):\n Gq8e = max(hz5a)\n Ep8u = pan_.size(0)\n bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True)\n ...
[ "0.7956461", "0.76888674", "0.76277393", "0.7607592", "0.7501635", "0.75003934", "0.75003934", "0.7492706", "0.7491988", "0.74913317", "0.7485141", "0.7484721", "0.7476828", "0.7476828", "0.7476828", "0.7476828", "0.7476828", "0.7476828", "0.7476828", "0.7476828", "0.7476828"...
0.0
-1
Reset states for new evaluation after each epoch.
def SiRx(YKHO): YKHO.sum = [0.0] * len(YKHO.topk) YKHO.data_num = 0 YKHO.pfm = [0.0] * len(YKHO.topk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.train_loss.reset_states()\n YKHO.train_accuracy.reset_states()\n YKHO.val_loss.reset_states()\n YKHO.val_accuracy.reset_states()\n YKHO.train_mIoU.reset_states()\n YKHO.val_mIoU.reset_states()", "def s0Da(YKHO):\n nMvt.batch_set_value([(Ty9i, 0) for Ty9i in YKHO.variab...
[ "0.80495393", "0.78997624", "0.78915554", "0.7809362", "0.7702101", "0.7452878", "0.7401274", "0.73966926", "0.7392122", "0.73909366", "0.7355613", "0.7320188", "0.7273222", "0.72527194", "0.7237268", "0.72339463", "0.72228444", "0.72228444", "0.7216148", "0.7116189", "0.7116...
0.0
-1
Perform top k accuracy.
def nrOS(YKHO, hlel, pan_, *qIxc, **B2fa): bGrB, aMgO = hlel.topk(1, 1, True, True) aMgO = aMgO.t().detach().cpu().numpy()[0] Y8eF = pan_.detach().cpu().numpy() YKHO.pfm = YKHO.metric_func(Y8eF, aMgO) return YKHO.pfm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ivK8(hlel, pan_, hz5a=(5, 10)):\n Gq8e = max(hz5a)\n Ep8u = pan_.size(0)\n bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True)\n ...
[ "0.7956461", "0.76888674", "0.76277393", "0.7607592", "0.7501635", "0.75003934", "0.75003934", "0.7492706", "0.7491988", "0.74913317", "0.7485141", "0.7484721", "0.7476828", "0.7476828", "0.7476828", "0.7476828", "0.7476828", "0.7476828", "0.7476828", "0.7476828", "0.7476828"...
0.0
-1
Reset states for new evaluation after each epoch.
def SiRx(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.train_loss.reset_states()\n YKHO.train_accuracy.reset_states()\n YKHO.val_loss.reset_states()\n YKHO.val_accuracy.reset_states()\n YKHO.train_mIoU.reset_states()\n YKHO.val_mIoU.reset_states()", "def s0Da(YKHO):\n nMvt.batch_set_value([(Ty9i, 0) for Ty9i in YKHO.variab...
[ "0.80500746", "0.7900075", "0.7892623", "0.7809766", "0.7701779", "0.7452834", "0.74003196", "0.73978704", "0.7391068", "0.73904717", "0.73551613", "0.73188496", "0.72726554", "0.72525", "0.7236549", "0.72333264", "0.72223294", "0.72223294", "0.72152805", "0.7116018", "0.7116...
0.0
-1
Type payee phone into "Phone" field Raise NoSuchElementException on failure
def TocJ(YKHO, bWtk): with xgRs.step('Type payee phone'): U6D_ = cFlk(driver=YKHO.driver, explicit_wait_time=YKHO.explicit_wait_time, locator=fM5n.PHONE_INPUT) U6D_.write(bWtk) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rqRT(L03z, Jyyj):\n if len(Jyyj.data) > 16:\n raise sUXu('Invalid phone number')\n try:\n YnnA = MBR5.parse(Jyyj.data)\n if not MBR5.is_valid_number(YnnA):\n raise sUXu('Invalid phone number')\n except Exception:\n YnnA = MBR5.parse('+1' + Jyyj.data)\n if ...
[ "0.63507754", "0.6292955", "0.6292955", "0.6279666", "0.6223703", "0.62006015", "0.6068031", "0.60555166", "0.6040544", "0.60141146", "0.59224", "0.59070563", "0.58461493", "0.5844821", "0.5844821", "0.5844821", "0.5844821", "0.5844821", "0.5782861", "0.5779016", "0.57526994"...
0.75374633
0
Get payee phone from "Phone" field Raise NoSuchElementException on failure
def bWtk(YKHO): U6D_ = cFlk(driver=YKHO.driver, explicit_wait_time=YKHO.explicit_wait_time, locator=fM5n.PHONE_INPUT) return U6D_.element_value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_phone(YKHO):\n tTpl = await YKHO.request.request(url='https://accountinformation.roblox.com/v1/phone', method='get')\n return tTpl", "def TocJ(YKHO, bWtk):\n with xgRs.step('Type payee phone'):\n U6D_ = cFlk(driver=YKHO.driver, explicit_wait_time=YKHO.explicit_wait_time, locator=fM5...
[ "0.6897545", "0.6485001", "0.6464395", "0.6464395", "0.63824224", "0.6265222", "0.6233421", "0.6213375", "0.61879885", "0.6149147", "0.6137433", "0.60983044", "0.6048351", "0.6035856", "0.6035856", "0.6023397", "0.5987126", "0.5981656", "0.5981656", "0.5981656", "0.59740716",...
0.6829676
1
Returns resultant quaternion of 3 rotation quaternions. First gets the resultant quaternion of q_sweq_fla and rotates the wing axis by that quaternion. Then gets q_fea, which is a rotation about the wing axis(which is why q_sweq_fla needs to be calculated first). The gets resultant quaternion q_feaq_sweq_fla.
def qAHs(CmT9, iSqK, RHFi, H8BZ): coME = iSqK.__mul__(CmT9) WImX = coME.rotate(H8BZ) OmKh = sqRO.Quaternion(axis=WImX, angle=RHFi) return OmKh.__mul__(coME)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def At55(rQ8K, OaeL):\n TTm1 = R5H8()\n TTm1.w = rQ8K.w * OaeL.w - rQ8K.x * OaeL.x - rQ8K.y * OaeL.y - rQ8K.z * OaeL.z\n TTm1.x = rQ8K.x * OaeL.w + rQ8K.w * OaeL.x + rQ8K.y * OaeL.z - rQ8K.z * OaeL.y\n TTm1.y = rQ8K.w * OaeL.y - rQ8K.x * OaeL.z + rQ8K.y * OaeL.w + rQ8K.z * OaeL.x\n TTm1.z = rQ8K.w *...
[ "0.6281801", "0.58474183", "0.5839346", "0.5722328", "0.5649433", "0.56389904", "0.55813515", "0.5550359", "0.55407625", "0.55036485", "0.5487441", "0.5478441", "0.5470156", "0.54384583", "0.54284835", "0.5422494", "0.538703", "0.5369212", "0.5361896", "0.535905", "0.5346346"...
0.7129776
0
Rotate 3D vectors by quaternion 'q'. 'vec' should be an Nby3 numpy array, where N is the number of vectors to rotate. Returns an array of the same size as 'vec', with each vector rotated by 'q'
def VNgS(vexM, he6J): GhpR = [] for YRbF, Ty9i in enumerate(he6J): GhpR.append(vexM.rotate(Ty9i)) return GhpR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTr0(vexM, Ty9i):\n assert vexM.shape[-1] == 4\n assert Ty9i.shape[-1] == 3\n assert vexM.shape[:-1] == Ty9i.shape[:-1]\n V2Fb = vexM[..., 1:]\n NFIp = ht2j.cross(V2Fb.double(), Ty9i.double(), dim=len(vexM.shape) - 1)\n c_iR = ht2j.cross(V2Fb.double(), NFIp.double(), dim=len(vexM.shape) - 1)\...
[ "0.713796", "0.71102613", "0.7014051", "0.6781593", "0.66422695", "0.66422695", "0.66227746", "0.662108", "0.6602797", "0.6575993", "0.6534116", "0.64992374", "0.6448314", "0.6429001", "0.6342501", "0.63213795", "0.6317977", "0.62170136", "0.6201201", "0.6198141", "0.61677426...
0.7858003
0
Create a JSON object representing an error and return 404 Response
def LbBU(lYY4): return oGir(qQXR.dumps({'error': lYY4}), status=404, mimetype='application/json')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)", "def a5AH(tTpl):\n return (pz3A({'error': 'Not found'}), 404)", "def o3cf(P1dF):\n geh0 = pz3A({'success': False, 'error_code': 404, 'message': 'Not Found'})\n return (geh0, 404)", "def DCL3(P1dF):\n return (pz3A({'success': ...
[ "0.83780223", "0.8175947", "0.8148857", "0.8093175", "0.8065299", "0.80618864", "0.8054956", "0.80440694", "0.79954505", "0.7986744", "0.7930817", "0.78934455", "0.78742594", "0.7629958", "0.7615865", "0.7615865", "0.7566938", "0.74541277", "0.74468863", "0.74427444", "0.7442...
0.75599664
17
Returns the shortest first name (str). You can assume there is only one shortest name.
def zdTz(ZWCE): ZWCE = uGrO(ZWCE) ZoCV = [mWFP.split() for mWFP in ZWCE] ZoCV.sort(key=L4ZV) AwQ6 = [' '.join(mWFP) for mWFP in ZoCV] return AwQ6[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zdTz(ZWCE):\n ZWCE = uGrO(ZWCE)\n mggN = [mWFP.split(' ') for mWFP in ZWCE]\n c9ua = [cntZ for cntZ, XVAW in mggN]\n gJUm = c9ua[0]\n for mWFP in c9ua:\n if len(mWFP) < len(gJUm):\n gJUm = mWFP\n return gJUm", "def zdTz(ZWCE):\n ZWCE = uGrO(ZWCE)\n return sorted([mWF...
[ "0.84954876", "0.84290755", "0.83644813", "0.81783897", "0.7850813", "0.7567559", "0.7426242", "0.7413317", "0.74103856", "0.7284431", "0.7284431", "0.7284431", "0.7284431", "0.7284431", "0.7284431", "0.7284431", "0.7284431", "0.7284431", "0.7284431", "0.7284431", "0.7284431"...
0.8405048
2
Tabulates and outputs a table of next episodes for each show in shows.
def X87U(fNDO): dvgN = 3 MOPg = ['Show', 'Next episode', 'Rating', 'Title'] fNDO = sorted(fNDO) x3Hz = [len(MKlR) for MKlR in MOPg] Oj2d = max((len(KCHu.title) for KCHu in fNDO)) Uupc = max((len(KCHu._next.title) for KCHu in fNDO)) O7hk = [Oj2d, 6, 6, Uupc] AeBl = [max(MKlR, tTpl) for MK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jzg1(YKHO):\n YKHO.load_shows()\n print()\n for GViE in sorted(YKHO.shows_data, key=lambda GViE: YKHO.shows_data[GViE]['title']):\n Pvmm = YKHO.shows_data[GViE]\n if Pvmm['watchedEpisodes'] <= 0:\n DI9U = '-'\n elif Pvmm['watchedEpisodes'] < Pvmm['totalEpisodes']:\n ...
[ "0.72311586", "0.6727877", "0.6667352", "0.63191134", "0.6001607", "0.5962473", "0.59517664", "0.59280515", "0.5919233", "0.5898998", "0.58696705", "0.585247", "0.5823006", "0.57642514", "0.5753256", "0.5742879", "0.5731514", "0.5702913", "0.5695918", "0.56855905", "0.5654781...
0.7177147
1
Clean and extract episode details response. Take an episode details response and cleans the data. Extract the relevant fields needed to construct an Episode object.
def aQzE(qqDt, SXKn): try: RrWF = float(SXKn['imdbRating']) except ValueError: RrWF = None return {'title': SXKn['Title'], 'episode': int(SXKn['Episode']), 'season': qqDt, 'ratings': {'imdb': RrWF}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aDwb(YKHO, xgXB):\n OChG = xgXB.url.get()\n if hasattr(OChG, '__iter__'):\n OChG = OChG[0]\n YKHO.parser.set_buffer(1, OChG)\n YKHO.parser.set_buffer(2, xgXB.id)\n bLPM = YKHO.parser.parse(jaRv, YKHO.settings)\n YKHO.logger.debug('Episode details: %s' % bLPM)\n xgXB.set_details(bLPM...
[ "0.7203547", "0.6758013", "0.6681653", "0.6353754", "0.61681914", "0.61393476", "0.61391693", "0.59553236", "0.5943734", "0.5897874", "0.5745463", "0.565098", "0.56336325", "0.5554903", "0.5539353", "0.5535537", "0.55113834", "0.55002975", "0.54995906", "0.5497507", "0.549673...
0.70539284
1
Reconstruct an object if the class has been registered. Check if the key in deserialized_data corresponds to a registered class and if so, construct and return an instance of the class with keyword arguments given in value in deserialized_data.
def SFgD(O2wG): for H5ew, BWXx in O2wG.items(): H5ew = H5ew.strip('__') if H5ew in nqEK: B2fa = dict(BWXx.items()) return nqEK[H5ew](**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KOAx(Emd4, pB3N):\n VVma = pB3N['type']\n RTrr, HGq1 = VVma.rsplit('.', 1)\n try:\n _cwG = getattr(tF99(RTrr), HGq1)\n except (AttributeError, ImportError):\n raise ImportError('Unable to locate value type %s' % VVma)\n qIxc = tuple((GFa9(fFGV) for fFGV in pB3N['args']))\n B2fa ...
[ "0.6607428", "0.6560893", "0.6464798", "0.630142", "0.621104", "0.6123421", "0.61056954", "0.61031395", "0.61001456", "0.608511", "0.59696656", "0.59675705", "0.5954092", "0.5942543", "0.5940531", "0.59133", "0.5888015", "0.5867093", "0.58607334", "0.58199954", "0.5772865", ...
0.8193221
0
A strategy for generating email addresses as strings.
def mMbP() -> aevO.SearchStrategy[str]: return aevO.emails().map(lambda KCHu: KCHu.lower()).map(cxgF).filter(xnAH).map(lambda r8hN: r8hN.normalized)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def POt2(YKHO):\n return '%s.%s@%s' % (qxeD.uuid4(), YKHO.mailbox, 'mailosaur.io')", "def FEhW():\n zBqa = [Z9rn for Z9rn in range(48, 57)] + [Z9rn for Z9rn in range(65, 90)] + [Z9rn for Z9rn in range(97, 122)] + [45]\n NtEF = ''.join(lx9M(10, mh6X))\n ulaE = ''.join(lx9M(10, zBqa))\n zrIJ = tuKI....
[ "0.7134931", "0.6899943", "0.6820698", "0.6697338", "0.6679038", "0.6355258", "0.6354774", "0.62803566", "0.62622255", "0.62215036", "0.62215036", "0.61614406", "0.60821813", "0.60776705", "0.603496", "0.600464", "0.5944022", "0.59114844", "0.58966064", "0.5859411", "0.584651...
0.6092325
12
Tokenize, extract features and create dataloaders for train, validation and test datasets.
def Sz5v(EvQg, wEf2, QOe9): b0j5 = YL5X.from_pretrained('bert-base-uncased', do_lower_case=True) ppBc = E9Lq(EvQg, b0j5, pad_token_label_id=Rdw3) TnHC = E9Lq(wEf2, b0j5, pad_token_label_id=Rdw3) Zwka = E9Lq(QOe9, b0j5, pad_token_label_id=Rdw3) K1Op = UgZ6(ppBc) su9O = UgZ6(TnHC) M_QP = UgZ6(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pYAW(qIxc, b0j5):\n nCwY = dD7q(b0j5, qIxc.dataset_path, qIxc.dataset_cache, qIxc.train_lang)\n bGrB = nCwY.pop('test', None)\n bo34.info('Build inputs and labels')\n gMbG = {'train': [], 'valid': []}\n if qIxc.train_lang in ['En', 'Fr', 'It', 'Id', 'Jp', 'Ko', 'Zh']:\n for j3aw, __n6 in ...
[ "0.7140566", "0.6850385", "0.673339", "0.67242247", "0.6703386", "0.66814893", "0.6673964", "0.6616081", "0.6600683", "0.6570088", "0.65100056", "0.6471666", "0.6446229", "0.64296216", "0.6409746", "0.6392946", "0.6376742", "0.6365234", "0.63433605", "0.6307133", "0.62951416"...
0.0
-1
Calculate the great circle distance between two points on the earth (specified in decimal degrees)
def GeVo(GgQG, igSk, tk0B, TGuP): GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP]) H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2 Z9rn = 2 * P099(PZyS(jzdc)) q5XV = 6367 * Z9rn return e6SF(q5XV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6", "def T97B(GgQG, ...
[ "0.8146076", "0.7864454", "0.7633271", "0.76056963", "0.75972307", "0.7595696", "0.7593779", "0.75715214", "0.7563679", "0.7556733", "0.752954", "0.7516531", "0.74944276", "0.7466583", "0.7451814", "0.74339056", "0.73920107", "0.7358634", "0.73481995", "0.73311156", "0.732847...
0.0
-1
Create slices of a list
def azsS(YNKD, Ep8u): assert len(YNKD) > 1 LsQR = [] ekHH = len(YNKD) for fsWt in range(0, ekHH, Ep8u): _KoX = fsWt + Ep8u lMu4 = YNKD[fsWt:_KoX] if len(lMu4) < Ep8u: pFZj = lMu4 * epAf.ceil(Ep8u / len(lMu4)) lMu4 = pFZj[:Ep8u] assert len(lMu4) == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slice(list, AU8u):\n d6pt = list.index(AU8u)\n SuPp = []\n SuPp.append(list[:d6pt])\n SuPp.append(list[d6pt + 1:])\n return SuPp", "def qJ9d(YKHO, bCES, yKcO=0, Os4s=None):\n yKcO = YKHO._index_to_int(yKcO, True)\n if Os4s is not None:\n Os4s = YKHO._index_to_int(Os4s)\n return...
[ "0.7789472", "0.73200864", "0.7111179", "0.6968356", "0.683307", "0.6811933", "0.6790205", "0.6783199", "0.6685886", "0.6664954", "0.66613954", "0.6595111", "0.65604013", "0.65525025", "0.6550791", "0.65335923", "0.65285903", "0.65054154", "0.6485275", "0.6481337", "0.6429342...
0.6889797
4
Initialize the weights for a threelayer NeurAlnet.
def TRcd(QIk7=1, Lpf8=0, KRmS=786, jTqs=10, FwdM=(20, 30)): assert len(FwdM) == 2, 'You must provide number of neurons for two layers...' C3ST = {} C3ST['W1'] = oyIN.random.rand(KRmS, FwdM[0]) * QIk7 * epAf.sqrt(2.0 / KRmS) C3ST['b1'] = oyIN.zeros(FwdM[0]) a1PO = len(C3ST['W1'][0]) C3ST['W2'] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTi3(YKHO):\n for gEmA in YKHO._cnn_layers:\n dIoi.WeightsInitializer.initialize_layer_or_model(gEmA)", "def vB93(YKHO, wOp_=0.003):\n YKHO.l3.weight.data.uniform_(-wOp_, wOp_)\n YKHO.l3.bias.data.uniform_(-wOp_, wOp_)", "def vB93(YKHO, wOp_=0.003):\n YKHO.l3.weight.data.uniform_(-wOp_, ...
[ "0.79067075", "0.7669529", "0.7669529", "0.7632534", "0.7572091", "0.7540383", "0.7451609", "0.74509233", "0.7328358", "0.72914076", "0.72808665", "0.7278476", "0.72780025", "0.7255002", "0.7246403", "0.7240769", "0.722558", "0.7191863", "0.71906", "0.71878254", "0.7182721", ...
0.7196815
17