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
should not be able to edit to remove the text of an own post and return 400
def P3hB(YKHO): CBIr = vbsz() MOPg = pNmI(CBIr) VXyY = sLSo() m8z6 = CBIr.create_public_post(text=VXyY) bD7m = YKHO._get_url(m8z6) nPrm = {'text': ''} geh0 = YKHO.client.patch(bD7m, nPrm, **MOPg) YKHO.assertTrue(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) m8z6.refresh_from_db() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iFLV(YKHO):\n CBIr = vbsz()\n MOPg = pNmI(user=CBIr)\n m8z6 = CBIr.create_public_post(text=sLSo())\n NW0B = 'nonexistinguser'\n h1Oz = 'Hello @' + NW0B\n nPrm = {'text': h1Oz}\n bD7m = YKHO._get_url(post=m8z6)\n geh0 = YKHO.client.patch(bD7m, nPrm, **MOPg, format='multipart')\n YKHO....
[ "0.6500936", "0.64329076", "0.63959825", "0.6341921", "0.6280006", "0.6146676", "0.6070617", "0.6004829", "0.60014784", "0.59965825", "0.593422", "0.58844334", "0.5823814", "0.58126026", "0.5786978", "0.578138", "0.5774058", "0.5761471", "0.5752722", "0.573627", "0.57234794",...
0.70537955
0
should NOT be able to edit own closed community post and return 200
def OazJ(YKHO): CBIr = vbsz() MOPg = pNmI(CBIr) KK9R = vbsz() v7nJ = zmVP(creator=KK9R) CBIr.join_community_with_name(community_name=v7nJ.name) KnbE = sLSo() oGQP = CBIr.create_community_post(text=KnbE, community_name=v7nJ.name) oGQP.is_closed = True oGQP.save() bD7m = YKHO._get_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dano(YKHO):\n CBIr = vbsz()\n MOPg = pNmI(CBIr)\n p3ae = vbsz()\n v7nJ = zmVP(creator=p3ae, type=icdm.COMMUNITY_TYPE_PRIVATE)\n m8z6 = p3ae.create_community_post(text=sLSo(), community_name=v7nJ.name)\n bD7m = YKHO._get_url(m8z6)\n geh0 = YKHO.client.get(bD7m, **MOPg)\n YKHO.assertEqual...
[ "0.70131505", "0.69952434", "0.69368845", "0.69056576", "0.6841727", "0.6831389", "0.68042743", "0.67698425", "0.6717267", "0.6704535", "0.6671692", "0.6599194", "0.65955436", "0.65871567", "0.65637565", "0.65390366", "0.65228426", "0.6516586", "0.6514692", "0.6495028", "0.64...
0.6881889
4
should not be able to edit foreign post
def yZ9Z(YKHO): CBIr = vbsz() bymo = vbsz() MOPg = pNmI(CBIr) KnbE = sLSo() m8z6 = bymo.create_public_post(text=KnbE) bD7m = YKHO._get_url(m8z6) WCwo = sLSo() nPrm = {'text': WCwo} geh0 = YKHO.client.patch(bD7m, nPrm, **MOPg) YKHO.assertTrue(geh0.status_code, jGRS.HTTP_400_BAD_RE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AyhX(YKHO):\n pass", "def qD7h(YKHO):\n YKHO.test_create_post_if_authorized()\n YKHO.client.logout()\n m8z6 = T97t.objects.first()\n jtaf = mv1M.objects.create(username='second_user')\n YKHO.client.force_login(jtaf)\n geh0 = YKHO.client.put('/posts/{}/'.format(m8z6.id), data=qQXR.dumps({...
[ "0.739359", "0.69845927", "0.69663805", "0.69294405", "0.68684757", "0.6858376", "0.68222845", "0.68112713", "0.68091846", "0.6798143", "0.6770211", "0.66134065", "0.6601799", "0.6574245", "0.6573634", "0.65727115", "0.65112513", "0.6506925", "0.64965856", "0.6467011", "0.645...
0.7819079
0
should not be able to retrieve reported community post
def EEk1(YKHO): CBIr = vbsz() KK9R = vbsz() v7nJ = zmVP(creator=KK9R) ma1L = vbsz() CBIr.join_community_with_name(community_name=v7nJ.name) ma1L.join_community_with_name(community_name=v7nJ.name) m8z6 = ma1L.create_community_post(community_name=v7nJ.name, text=sLSo()) CBIr.report_post(po...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PnhB(YKHO):\n CBIr = vbsz()\n MOPg = pNmI(CBIr)\n p3ae = vbsz()\n v7nJ = zmVP(creator=p3ae)\n m8z6 = p3ae.create_community_post(text=sLSo(), community_name=v7nJ.name)\n bD7m = YKHO._get_url(m8z6)\n geh0 = YKHO.client.get(bD7m, **MOPg)\n YKHO.assertEqual(jGRS.HTTP_200_OK, geh0.status_cod...
[ "0.7026633", "0.6688095", "0.6528097", "0.65145564", "0.6406954", "0.623499", "0.6206813", "0.61747086", "0.6138795", "0.60624695", "0.6041247", "0.59730405", "0.59446526", "0.5936998", "0.5926612", "0.58799624", "0.5845989", "0.5845806", "0.5817512", "0.580841", "0.5807787",...
0.77281487
0
should not be able to mute own post if already muted and return 400
def xiA5(YKHO): CBIr = vbsz() MOPg = pNmI(CBIr) m8z6 = CBIr.create_public_post(text=sLSo()) bD7m = YKHO._get_url(m8z6) CBIr.mute_post_with_id(m8z6.pk) geh0 = YKHO.client.post(bD7m, **MOPg) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertTrue(CBIr.has_muted_post_w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _o2v(YKHO):\n CBIr = vbsz()\n MOPg = pNmI(CBIr)\n m8z6 = CBIr.create_public_post(text=sLSo())\n bD7m = YKHO._get_url(m8z6)\n geh0 = YKHO.client.post(bD7m, **MOPg)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertFalse(CBIr.has_muted_post_with_id(m8z6.pk))", "d...
[ "0.71822613", "0.6647641", "0.6642995", "0.64383954", "0.64199036", "0.63889635", "0.63657415", "0.6296122", "0.6252472", "0.62134004", "0.6199848", "0.6199848", "0.6199848", "0.6142109", "0.612765", "0.6109165", "0.6056093", "0.6053597", "0.6051133", "0.60434115", "0.6018928...
0.7394676
0
should not be able to close post if not moderator/administrator of a community
def nE84(YKHO): CBIr = vbsz() dp9S = vbsz() v7nJ = zmVP(dp9S) CBIr.join_community_with_name(community_name=v7nJ.name) m8z6 = CBIr.create_community_post(v7nJ.name, text=sLSo()) bD7m = YKHO._get_url(m8z6) MOPg = pNmI(CBIr) geh0 = YKHO.client.post(bD7m, **MOPg) YKHO.assertTrue(geh0.stat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bvJG(YKHO):\n CBIr = vbsz()\n dp9S = vbsz()\n v7nJ = zmVP(dp9S)\n CBIr.join_community_with_name(community_name=v7nJ.name)\n m8z6 = CBIr.create_community_post(v7nJ.name, text=sLSo())\n m8z6.is_closed = True\n m8z6.save()\n bD7m = YKHO._get_url(m8z6)\n MOPg = pNmI(CBIr)\n geh0 = YKH...
[ "0.77450186", "0.76274025", "0.75120413", "0.7498296", "0.74954015", "0.7447825", "0.7437487", "0.7393146", "0.71845657", "0.7110576", "0.7052061", "0.7039165", "0.70315784", "0.6984951", "0.6932427", "0.69225466", "0.6895787", "0.68742764", "0.68190867", "0.68163717", "0.675...
0.7972316
0
should be able to open post if administrator of a community
def pkvo(YKHO): CBIr = vbsz() dp9S = vbsz() v7nJ = zmVP(dp9S) CBIr.join_community_with_name(community_name=v7nJ.name) m8z6 = CBIr.create_community_post(v7nJ.name, text=sLSo()) m8z6.is_closed = True m8z6.save() bD7m = YKHO._get_url(m8z6) MOPg = pNmI(dp9S) geh0 = YKHO.client.post(b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bvJG(YKHO):\n CBIr = vbsz()\n dp9S = vbsz()\n v7nJ = zmVP(dp9S)\n CBIr.join_community_with_name(community_name=v7nJ.name)\n m8z6 = CBIr.create_community_post(v7nJ.name, text=sLSo())\n m8z6.is_closed = True\n m8z6.save()\n bD7m = YKHO._get_url(m8z6)\n MOPg = pNmI(CBIr)\n geh0 = YKH...
[ "0.73183924", "0.71889526", "0.7005352", "0.69049984", "0.6858863", "0.6711613", "0.655653", "0.6546907", "0.6541996", "0.65230227", "0.64438117", "0.64272493", "0.6401826", "0.6338283", "0.629646", "0.6289061", "0.6272109", "0.6271111", "0.62561655", "0.62301075", "0.6230107...
0.7665081
0
should not be able to open post if not moderator/administrator of a community
def bvJG(YKHO): CBIr = vbsz() dp9S = vbsz() v7nJ = zmVP(dp9S) CBIr.join_community_with_name(community_name=v7nJ.name) m8z6 = CBIr.create_community_post(v7nJ.name, text=sLSo()) m8z6.is_closed = True m8z6.save() bD7m = YKHO._get_url(m8z6) MOPg = pNmI(CBIr) geh0 = YKHO.client.post(b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nE84(YKHO):\n CBIr = vbsz()\n dp9S = vbsz()\n v7nJ = zmVP(dp9S)\n CBIr.join_community_with_name(community_name=v7nJ.name)\n m8z6 = CBIr.create_community_post(v7nJ.name, text=sLSo())\n bD7m = YKHO._get_url(m8z6)\n MOPg = pNmI(CBIr)\n geh0 = YKHO.client.post(bD7m, **MOPg)\n YKHO.assert...
[ "0.7550383", "0.74813986", "0.7324544", "0.7042509", "0.70201945", "0.69615704", "0.6946836", "0.693548", "0.6903443", "0.6894388", "0.6864505", "0.68400335", "0.6784552", "0.6783731", "0.67364174", "0.6699632", "0.6668561", "0.6664688", "0.6575301", "0.6542638", "0.64805484"...
0.8005434
0
should not be able to publish a draft post with no image nor text and return 200
def k7Pr(YKHO): CBIr = vbsz() MOPg = pNmI(CBIr) m8z6 = CBIr.create_public_post(is_draft=True) bD7m = YKHO._get_url(post=m8z6) geh0 = YKHO.client.post(bD7m, **MOPg, format='multipart') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertFalse(T97t.objects.filter(pk=m8z6.p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ToUj(YKHO):\n CBIr = vbsz()\n MOPg = pNmI(CBIr)\n h1Oz = sLSo()\n m8z6 = CBIr.create_public_post(text=h1Oz, is_draft=False)\n bD7m = YKHO._get_url(post=m8z6)\n geh0 = YKHO.client.post(bD7m, **MOPg, format='multipart')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKH...
[ "0.75446", "0.7161226", "0.7105719", "0.70330966", "0.69958925", "0.6976976", "0.69072247", "0.6855731", "0.6806383", "0.67642415", "0.6728709", "0.6728457", "0.67255044", "0.6718178", "0.6687101", "0.65768933", "0.65558034", "0.65462464", "0.6537924", "0.6514594", "0.6498874...
0.82160515
0
should not be able to publish a foreign user draft community post
def WHLW(YKHO): CBIr = vbsz() bymo = vbsz() MOPg = pNmI(CBIr) h1Oz = sLSo() v7nJ = zmVP() bymo.join_community_with_name(community_name=v7nJ.name) m8z6 = bymo.create_community_post(text=h1Oz, is_draft=True, community_name=v7nJ.name) bD7m = YKHO._get_url(post=m8z6) geh0 = YKHO.client.p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iMbX(YKHO):\n CBIr = vbsz()\n bymo = vbsz()\n MOPg = pNmI(CBIr)\n h1Oz = sLSo()\n m8z6 = bymo.create_public_post(text=h1Oz, is_draft=True)\n bD7m = YKHO._get_url(post=m8z6)\n geh0 = YKHO.client.post(bD7m, **MOPg, format='multipart')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FOR...
[ "0.7553291", "0.7094806", "0.7006267", "0.7003547", "0.69666755", "0.6930188", "0.69048804", "0.6856326", "0.68158096", "0.68124527", "0.6804877", "0.6801759", "0.6783445", "0.67429197", "0.6730024", "0.672992", "0.6700633", "0.66662633", "0.65879", "0.6570656", "0.65456283",...
0.7866561
0
Function to compute the geo mean for a list of numeric values.
def R_RW(OxJJ: List[float]): if not OxJJ or any((dCof <= 0.0 for dCof in OxJJ)): raise aeG_('Invalid values cannot be aggregated.') jzdc = oyIN.array(OxJJ) return jzdc.prod() ** (1.0 / len(jzdc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWD3(OxJJ):\n ezWE = oyIN.fromiter(OxJJ, dtype='float')\n if not ezWE.size:\n raise ValueError(\"Can't compute geomean of empty list.\")\n return ezWE.prod() ** (1 / len(ezWE))", "def Mqwv(OxJJ):\n jzdc = oyIN.array(OxJJ)\n return jzdc.prod() ** (1.0 / len(jzdc))", "def QI7W(mSrU):\n ...
[ "0.7965239", "0.79349333", "0.77269554", "0.74896604", "0.7433571", "0.7422725", "0.73680556", "0.73680556", "0.7360275", "0.7360061", "0.732405", "0.7276196", "0.7254693", "0.72365475", "0.72072804", "0.72060275", "0.71797246", "0.7164439", "0.71275365", "0.7071893", "0.7044...
0.74461526
4
Method to get the query's completion time in secs.
def uKJL(YKHO) -> float: return YKHO.performance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pARd(YKHO) -> str:\n return qe4Y.get(YKHO, 'completion_time')", "def pARd(YKHO) -> str:\n return qe4Y.get(YKHO, 'completion_time')", "def he64(YKHO):\n return YKHO._estimated_completion_time", "def V8h4(YKHO):\n try:\n return (YKHO.completed_at - YKHO.started_at).total_seconds()\n e...
[ "0.7457816", "0.7457816", "0.7055809", "0.69027346", "0.68523073", "0.68054646", "0.67706496", "0.67118335", "0.6679553", "0.66748834", "0.6659928", "0.6659928", "0.6659928", "0.66488713", "0.66488713", "0.66283315", "0.6625453", "0.6616735", "0.6548975", "0.65386736", "0.647...
0.0
-1
Returns the django.contrib.staticfiles handler.
def wGeu(YKHO): DCgT = qiSj() try: from django.contrib.staticfiles.handlers import StaticFilesHandler except ImportError: return DCgT ljJ2 = YKHO.use_static_handler TiE4 = YKHO.insecure_serving if gCuF.DEBUG and ljJ2 or (ljJ2 and TiE4): DCgT = StaticFilesHandler(DCgT) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Un5R(YKHO) -> h8nf['outputs.FlexibleAppVersionHandlerStaticFiles']:\n return qe4Y.get(YKHO, 'static_files')", "def Un5R(YKHO) -> h8nf['outputs.StandardAppVersionHandlerStaticFiles']:\n return qe4Y.get(YKHO, 'static_files')", "def SfGk(pmON, Dq5F):\n return rbVf(TOMP(pmON, Dq5F))", "def L8wK(YKHO...
[ "0.59447366", "0.5816191", "0.5737269", "0.5679114", "0.5625085", "0.5615298", "0.55869806", "0.5510299", "0.55075806", "0.55002654", "0.5431794", "0.53486115", "0.53200257", "0.52964085", "0.52696186", "0.5254984", "0.5244147", "0.5244041", "0.52230096", "0.52097934", "0.520...
0.7680167
0
Function to determine if a south cell in distance 2 exist
def a43r(wjlB, ls4I, xWuA, THsq): b5if = False try: if wjlB[ls4I + 2][xWuA] == 0: if ls4I + 2 > 0 and ls4I + 2 < THsq - 1: if xWuA > 0 and xWuA < THsq - 1: b5if = True except: b5if = False return b5if
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n2by(YKHO, rdlD, fvDH):\n if YKHO.in_bounds(rdlD + 1, fvDH):\n ZbOB = YKHO.get_room(rdlD, fvDH)\n ICtY = ZbOB.doors()\n GsVy = YKHO.get_room(rdlD + 1, fvDH)\n XPhO = GsVy.doors()\n if ICtY['south'] > 2 or XPhO['north'] > 2:\n return True\n else:\n retu...
[ "0.73001385", "0.6940953", "0.6838811", "0.6732098", "0.673024", "0.669021", "0.66599417", "0.66039777", "0.65514237", "0.6544646", "0.6504907", "0.6482818", "0.64269507", "0.64229745", "0.6402879", "0.63882035", "0.636464", "0.6334257", "0.62550735", "0.625017", "0.6242374",...
0.70920396
1
Function to determine if a cell is a walkway based on walls
def Dcvw(ls4I, xWuA, wjlB, THsq): b5if = False GsVy = False bMLW = False z35_ = False jeB_ = True GsVy = OPnG(wjlB, ls4I, xWuA, THsq) b5if = a43r(wjlB, ls4I, xWuA, THsq) bMLW = UpIz(wjlB, ls4I, xWuA, THsq) z35_ = at7F(wjlB, ls4I, xWuA, THsq) if (GsVy or b5if or bMLW or z35_) == F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OC7g(YKHO, rdlD, fvDH):\n return YKHO.maze[rdlD][fvDH] == GNtq", "def JuW1(YKHO, VmPb):\n for cEyu in uNlj:\n BZN_ = uNlj[cEyu]\n A3mO = 2 * VmPb[0] + BZN_[0]\n ijL8 = 2 * VmPb[1] + BZN_[1]\n if YKHO.in_bound(A3mO, ijL8) and (not (A3mO, ijL8) in YKHO.walls):\n ret...
[ "0.76499426", "0.75157213", "0.74808097", "0.74107355", "0.7371987", "0.734728", "0.7319272", "0.73130894", "0.72554606", "0.7096944", "0.7087719", "0.6971443", "0.6966474", "0.6957749", "0.69501823", "0.6931651", "0.68734676", "0.68587637", "0.6847473", "0.68110794", "0.6784...
0.6647181
25
thorough check of whether the socket has been closed, even if by another entity (e.g. ctx.destroy). Only used by the `closed` property. returns True if closed, False otherwise
def gLpC(YKHO): if YKHO._closed: return True try: YKHO.get(pgdZ.TYPE) except bu2G as e: if tTpl.errno == pgdZ.ENOTSOCK: YKHO._closed = True return True elif tTpl.errno == pgdZ.ETERM: pass else: raise return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SEEh(YKHO) -> bool:\n return not YKHO._channel0 or (YKHO._channel0 and YKHO._channel0.is_closed) or YKHO._state in [cxOn, Cy2T, xd5K, QTBn.STATE_EXCEPTION, QTBn.STATE_UNINITIALIZED] or (not YKHO._transport)", "def Fvsv(iG42):\n try:\n Zohj, bGrB, bGrB = EfUA.select([iG42], [], [], 0)\n except...
[ "0.78266275", "0.76668406", "0.7632926", "0.74968797", "0.7482605", "0.7482605", "0.74530286", "0.745097", "0.7441515", "0.7425893", "0.7394432", "0.7356936", "0.7341999", "0.7301185", "0.72339654", "0.7219711", "0.71673274", "0.7132806", "0.71300495", "0.7124651", "0.706797"...
0.78924674
0
return a string with the formated date (e.g. u'31. Dezember 2013')
def pbww(YKHO, CjKC, URRM, lO87): slvu = RAnV.translate(YKHO.site, V8MO, fallback=False) return slvu.format(day=CjKC, monthName=URRM, year=lO87)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JvEs(_c1T):\n return _c1T.isoformat()", "def mbyn(YKHO):\n return YKHO.date.strftime('%Y-%m-%d')", "def mbyn(YKHO):\n return YKHO.date.strftime('%A %d %B %y')", "def Net5(Csk6: datetime.date) -> str:\n return f'{Csk6.year}-{Csk6.month:02}-{Csk6.day:02}'", "def PFu5(_c1T):\n return '%d %s...
[ "0.76325625", "0.7568816", "0.75564617", "0.7306485", "0.7266238", "0.72465634", "0.72267747", "0.71909446", "0.71730727", "0.71376944", "0.7127972", "0.7073682", "0.7067287", "0.7033139", "0.7031878", "0.7023106", "0.7021864", "0.7000256", "0.69801325", "0.6963917", "0.69518...
0.0
-1
Return the dimensions (width, height) for a figure based on the scale, width (in points), and aspect ratio.
def fGPL(Enm2: Union[float]=kUlD, pAIe: Union[float]=bnU7, Focb: Optional[float]=None, Cwt_: Union[float]=1): Enm2 = Enm2 * Cwt_ if Focb is None: Focb = Enm2 / pAIe return (round(Enm2, 2), round(Focb, 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SUj9(v9Pp):\n TVTK = 2.5 + v9Pp['project_id'].unique().shape[0] * 0.15\n H2v2 = 4.5\n return (TVTK, H2v2)", "def kTuT(TVTK):\n dMYj = F_Dn / owrL\n return (TVTK, TVTK / dMYj)", "def Z6Cv(N9bb, wA3x=1, dMYj=(5 ** 0.5 - 1) / 2, nlwp=(1, 1)):\n afcy = N9bb * wA3x\n qUd3 = 1 / 72.27\n H...
[ "0.71779203", "0.71739644", "0.7081622", "0.70454913", "0.7000108", "0.69601697", "0.6959955", "0.69343996", "0.6856366", "0.6805788", "0.66982365", "0.6668228", "0.665316", "0.66520077", "0.65991116", "0.63848907", "0.63806295", "0.63707346", "0.63660824", "0.6354079", "0.63...
0.79820555
0
Save the current matplotlib figure as an image to a file.
def oiPL(mWFP: str, BrK6: Optional[os.PathLike]=None, Vanz: str='pdf', efxn: bool=True, kMq5: bool=True) -> GkAb: pmON = GkAb(BrK6 or GkAb.cwd()) / f'{mWFP}.{Vanz}' BfDw.ensure_parents_exist(pmON) if kMq5: QrM1.savefig(str(pmON), bbox_inches='tight', transparent=efxn) else: QrM1.savefig(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eJct(Emd4, JI1i, Ux0P):\n VXjJ = Emd4.get(JI1i)\n P8oC, YBcr = Hy7s.path.splitext(Ux0P)\n if not YBcr:\n Ux0P += '.png'\n eHNT = open(Ux0P, 'w')\n VXjJ = WR89.b64decode(VXjJ)\n eHNT.write(VXjJ)\n eHNT.close()", "def a2vR(YKHO, Ux0P, Vanz='eps', jk7u=None, rTQi=None):\n QrM1 = Y...
[ "0.79805374", "0.7922339", "0.79055834", "0.7876416", "0.7764917", "0.7759402", "0.77245903", "0.7694224", "0.7660774", "0.7589543", "0.75787973", "0.7572807", "0.75626576", "0.75609136", "0.7560275", "0.7530644", "0.74834454", "0.7465311", "0.73507035", "0.73365307", "0.7333...
0.6971219
63
Sets the comment of this ODMcomplexTypeDefinitionAnnotation.
def aM_I(YKHO, aM_I): YKHO._comment = aM_I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fVat(YKHO, A97Q, aM_I):\n if not YKHO.doc_comment_set:\n YKHO.doc_comment_set = True\n A97Q.comment = aM_I\n else:\n raise NIWX('Document::Comment')", "def TDCb(YKHO, aM_I):\n YKHO.options['comment'] = aM_I", "def aM_I(YKHO, aM_I):\n YKHO._comment = aM_I", "def aM_I(YKHO,...
[ "0.7471012", "0.7366258", "0.71382684", "0.6955792", "0.6893192", "0.68250835", "0.6777179", "0.6740201", "0.6740201", "0.66750574", "0.66589415", "0.66549397", "0.6651092", "0.6574067", "0.6499433", "0.6341392", "0.6326372", "0.630187", "0.6296331", "0.6290372", "0.621584", ...
0.71367484
6
Sets the seq_num of this ODMcomplexTypeDefinitionAnnotation.
def Px4Q(YKHO, Px4Q): YKHO._seq_num = Px4Q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P61R(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='sequence-number', parent=YKHO, path_helper=YKHO._path_helper, ext...
[ "0.660795", "0.660795", "0.6178317", "0.6178317", "0.6028361", "0.6028361", "0.6028361", "0.6019041", "0.6019041", "0.6019041", "0.59596556", "0.57081187", "0.5662073", "0.5662073", "0.5662073", "0.5662073", "0.5662073", "0.5662073", "0.5644567", "0.55934334", "0.55934334", ...
0.7564026
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, tW_e): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Given a category slug, display all items in a category.
def Ghho(QePW, s5ru): Ghho = Iofl(qZuN, slug=s5ru) K5CE = QATa.objects.filter(category=Ghho) cEyu = 'Category: %s' % Ghho.label return SGJU('story_list.html', locals())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSb_(Ghho):\n LeZt = cuiw.query(qZuN).all()\n qo2T = cuiw.query(qZuN).filter_by(name=Ghho).one()\n R54a = cuiw.query(l7Mk).filter_by(category_name=Ghho).all()\n return TvZl('category_items.html', category=qo2T, items=R54a, categories=LeZt)", "def mKVR(Ghho):\n Ghho = Ghho.replace('-', ' ')\n ...
[ "0.73111576", "0.72693163", "0.6900977", "0.68064183", "0.67839515", "0.6693961", "0.65939015", "0.6587914", "0.65877825", "0.648621", "0.6453516", "0.64474684", "0.64197594", "0.637138", "0.6319217", "0.630726", "0.6304101", "0.62865645", "0.62453765", "0.6240388", "0.618851...
0.68115026
3
Sets the incident_action_type_id of this IncidentActionItem.
def ZOFM(YKHO, ZOFM): YKHO._incident_action_type_id = ZOFM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tLOd(YKHO, tLOd):\n YKHO._incident_action_id = tLOd", "def PgMf(YKHO, BWXx):\n YKHO._action_type = BWXx", "def EhYO(YKHO, EhYO):\n YKHO._type_id = EhYO", "def EhYO(YKHO, EhYO):\n YKHO._type_id = EhYO", "def EhYO(YKHO, EhYO):\n YKHO._type_id = EhYO", "def fRP1(YKHO, fRP1):\n YKHO._ac...
[ "0.6995051", "0.6557676", "0.6307491", "0.6307491", "0.6307491", "0.62489915", "0.6049899", "0.59536296", "0.5914148", "0.59088624", "0.57614106", "0.56694794", "0.5638811", "0.5510317", "0.5503795", "0.5473684", "0.5462717", "0.54203904", "0.537748", "0.53555495", "0.5342988...
0.86771864
0
Sets the incident_action_date of this IncidentActionItem.
def fIu7(YKHO, fIu7): YKHO._incident_action_date = fIu7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tLOd(YKHO, tLOd):\n YKHO._incident_action_id = tLOd", "def HXyI(YKHO, HXyI):\n YKHO._inception_date = HXyI", "def IsVG(YKHO, IsVG):\n YKHO._encounter_date = IsVG", "def AlCo(YKHO, AlCo: date):\n YKHO._dt_invoice_date = AlCo", "def izQJ(YKHO, izQJ):\n YKHO._event_date = izQJ", "def WqxT...
[ "0.66691667", "0.63277537", "0.6176734", "0.6165689", "0.5992618", "0.5978195", "0.5963169", "0.5960243", "0.5960243", "0.5960243", "0.5960243", "0.5960243", "0.59465486", "0.5929772", "0.5895548", "0.5894781", "0.5865974", "0.58620816", "0.58620816", "0.58556116", "0.5834052...
0.89743465
0
Sets the date_complete of this IncidentActionItem.
def nRV5(YKHO, nRV5): YKHO._date_complete = nRV5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v9c6(YKHO, v9c6):\n YKHO._completed_date = v9c6", "def v9c6(YKHO, v9c6):\n YKHO._completed_date = v9c6", "def M43e(YKHO, M43e):\n YKHO._completion_date = M43e", "def Fd4y(YKHO, Fd4y):\n YKHO._complete = Fd4y", "def Fd4y(YKHO, Fd4y):\n YKHO._complete = Fd4y", "def gUiw(YKHO):\n if YK...
[ "0.7458782", "0.7458782", "0.7246044", "0.6486125", "0.6486125", "0.6395774", "0.6221486", "0.62086886", "0.61996406", "0.61653566", "0.61372143", "0.61313736", "0.60901505", "0.60589737", "0.6043867", "0.6043787", "0.6025402", "0.6025402", "0.60240096", "0.60240096", "0.6023...
0.84391874
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.8043786
23
Maximum number of seconds that expires_at can differ
def j8GW(YKHO): return int(YKHO.get('max_expires_at_delta'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aHsu(YKHO):\n return ITS7.time() - YKHO.session_time * 60", "def eVhb(YKHO, wzkt=None):\n if wzkt is None:\n wzkt = int(ITS7.time())\n return max(0, YKHO.issued + YKHO.lifetime - wzkt)", "def ihMv(YKHO) -> int:\n return YKHO._expires_in", "def p_Tc(YKHO) -> int:\n return laHg.cast(i...
[ "0.7691497", "0.75167304", "0.7502508", "0.7456317", "0.74266285", "0.7425289", "0.7425289", "0.7404744", "0.7251437", "0.7244176", "0.7242575", "0.7183321", "0.71605766", "0.71402496", "0.7110478", "0.71019584", "0.70915043", "0.7040495", "0.70333445", "0.70295674", "0.69991...
0.8549673
0
Path to json file which contains the tasks schema data
def iVGh(YKHO): return YKHO.get('tasks_schema_json')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qol6(YKHO):\n return YKHO.get('task_schema_json')", "def Vici(YKHO):\n return GkAb(YKHO.workdir) / 'scheduler.json'", "def TLr7(YKHO):\n return Hy7s.path.join(YKHO.__dest_dirname, YKHO.__json_filename)", "def LX7q(YKHO):\n return 'tasks'", "def sNTp():\n B6Qo = Hy7s.path.join(vsYd, 'trai...
[ "0.70294064", "0.6405559", "0.6278883", "0.61499083", "0.6055931", "0.58540136", "0.57788515", "0.576309", "0.57530874", "0.57468784", "0.57447964", "0.5716749", "0.57162046", "0.5715028", "0.5706549", "0.5672797", "0.56347173", "0.56347173", "0.5629128", "0.56252384", "0.561...
0.7147866
0
Count the model parameters
def EfDR(C3ST): r9Hf = sum((XP5J.numel() for XP5J in C3ST.parameters() if XP5J.requires_grad)) print('Total Params {}'.format(r9Hf))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ca6I(YKHO):\n return eQ5t(YKHO.model)", "def VgCS(C3ST):\n return sum((XP5J.numel() for XP5J in C3ST.parameters()))", "def eQ5t(C3ST: nn.Module) -> int:\n return sum(map(lambda XP5J: XP5J.data.numel(), C3ST.parameters()))", "def UqPz(C3ST):\n return oyIN.sum([XP5J.numel() for XP5J in C3ST.par...
[ "0.86609304", "0.85267377", "0.8365283", "0.8343768", "0.83402234", "0.83402234", "0.8246988", "0.8137951", "0.8021346", "0.79880023", "0.7971267", "0.79092216", "0.7828576", "0.7787564", "0.778496", "0.7773005", "0.7766154", "0.7667186", "0.75909567", "0.7574935", "0.7564038...
0.70041436
63
Constructor for DetectionPipeline class.
def FIMM(YKHO, QwO3, rpgT=None, Ep8u=60, Einh=None): YKHO.detector = QwO3 YKHO.n_frames = rpgT YKHO.batch_size = Ep8u YKHO.resize = Einh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nPIK):\n YKHO.pipeline = nPIK", "def FIMM(YKHO, bCYe, M_NZ):\n YKHO.pipeline = bCYe\n YKHO.clf = M_NZ", "def FIMM(YKHO, nPIK: Pipeline=Fyf6, mWFP: str='confidence_estimator'):\n super().__init__(pipeline=nPIK, name=mWFP)", "def FIMM(YKHO):\n aOxl = Hy7s.path.dirname(Hy7s.path.re...
[ "0.7533454", "0.7473611", "0.72422945", "0.7090889", "0.70277965", "0.6944596", "0.6878273", "0.6856961", "0.68346167", "0.68331844", "0.67727345", "0.67233974", "0.66669923", "0.6633637", "0.66193676", "0.6591071", "0.65698946", "0.6564389", "0.65302265", "0.65267855", "0.65...
0.6654678
13
Convert query results to a Dictionary using 'date' as the key and 'precipitation' as the value.
def cBYs(): cuiw = DMju(eHpk) nVWr = cuiw.query(Ny6I.date, Ny6I.prcp).all() cuiw.close() CEyq = [] for _c1T, OScg in nVWr: gOcu = {} gOcu['date'] = _c1T gOcu['prcp'] = OScg CEyq.append(gOcu) return pz3A(CEyq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aCqS(YKHO):\n Csk6 = {}\n for JRYC, NZA8, WyFx, Lg1t, sOCm in YKHO.get_queryset().values_list('date', 'team1', 'team2', 'team1_result', 'team2_result'):\n H5ew = (NZA8, JRYC)\n Csk6[H5ew] = Lg1t\n gfpw = (WyFx, JRYC)\n Csk6[gfpw] = sOCm\n return Csk6", "def tWbQ(YKHO):\n ...
[ "0.7117836", "0.68359846", "0.68008626", "0.6736741", "0.6674056", "0.6638163", "0.66196", "0.6607648", "0.6597804", "0.6581364", "0.655107", "0.65345615", "0.65326947", "0.6524746", "0.64940023", "0.6481452", "0.6466275", "0.64637345", "0.64628214", "0.6450182", "0.64501053"...
0.66909796
4
Calls the camera driver to stop the camera's acquisition. Note that the acquisition may be _required_ to stop, since other processes may be preparing to synchronize with the camera's exposure signal.
def Vet5(YKHO): raise NotImplementedError('Function must be reimplemented in subclass.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCyR(YKHO):\n YKHO.c.stopCapture()\n YKHO.c.disconnect()\n print('Camera acquisition stopped')", "def Qdcf(YKHO) -> None:\n if YKHO.camera_process is not None:\n print('[Tracking] Stopping camera')\n YKHO.camera_process.kill()\n YKHO.camera_process = None", "def B6Lf(YKHO):...
[ "0.8308263", "0.80577314", "0.7720894", "0.75976557", "0.75755763", "0.74857396", "0.73808193", "0.7366515", "0.73604834", "0.7305775", "0.7297421", "0.72910196", "0.7264316", "0.7257821", "0.7231587", "0.71899945", "0.7163458", "0.7131074", "0.71064866", "0.70675594", "0.706...
0.7533495
5
Stop camera and acquisition thread
def JCyR(YKHO, XkN1=True): YKHO.acqThread.stop(block=XkN1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jpUR(YKHO) -> None:\n YKHO.terminate = True\n YKHO.thread.join()\n YKHO.thread = None", "def JCyR(YKHO):\n if not YKHO.running:\n return\n assert YKHO._cam\n YKHO._worker.abort()\n YKHO._worker.join()\n YKHO._queue = None\n YKHO._dll.dc1394_capture_stop(YKHO._cam)\n YKHO....
[ "0.8435407", "0.8339381", "0.8291859", "0.8259039", "0.79804593", "0.78647876", "0.7673363", "0.7621274", "0.7620638", "0.75915956", "0.75351804", "0.7520397", "0.7475623", "0.741657", "0.73441017", "0.7332208", "0.7270691", "0.7248219", "0.72242165", "0.722023", "0.720998", ...
0.0
-1
Return the boundaries of the camera sensor in global coordinates. If globalCoords==False, return in local coordinates.
def kST2(YKHO, RRL_=True): zNig = YKHO.getParam('sensorSize') X7zS = uaAZ.QPainterPath() X7zS.addRect(uaAZ.QRectF(0, 0, *zNig)) if RRL_: return g74T.SRTTransform(YKHO.globalTransform()).map(X7zS) else: return X7zS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7zS(YKHO):\n if YKHO._bounds is None:\n YKHO._computeRaytracingData()\n return YKHO._bounds", "def UMN4(YKHO) -> lNLu:\n return YKHO._call_java('boundaries')", "def knNY(YKHO):\n iNXf = AmSr()\n iNXf.readFile(YKHO.filename)\n K_96 = [iNXf.src_geotransform[0], iNXf.src_geotransform...
[ "0.6523089", "0.6420925", "0.63974035", "0.6340238", "0.63180345", "0.62712586", "0.62712586", "0.62712586", "0.6261706", "0.6251527", "0.62489414", "0.62483084", "0.6245928", "0.62458146", "0.6229344", "0.6211789", "0.61974275", "0.6193117", "0.6166147", "0.6130437", "0.6089...
0.7398461
0
Return a list of camera boundaries for all objectives
def KrHv(YKHO): p9NO = YKHO.scopeDev.listObjectives() return [YKHO.getBoundary(z1Rg) for z1Rg in p9NO]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMN4(YKHO) -> lNLu:\n return YKHO._call_java('boundaries')", "def X7zS(YKHO):\n if YKHO._bounds is None:\n YKHO._computeRaytracingData()\n return YKHO._bounds", "def KrHv(YKHO):\n return YKHO.boundary_segments", "def uPF7(YKHO, zn0c, kwih):\n iGch = {}\n cZRb = YKHO.regions_dict[...
[ "0.68381023", "0.6612922", "0.6611711", "0.65611464", "0.65283227", "0.6473226", "0.6450549", "0.64416915", "0.6399735", "0.62779725", "0.6271411", "0.6211535", "0.6187582", "0.617594", "0.61731195", "0.61328006", "0.6132737", "0.6120302", "0.6120302", "0.6120302", "0.6102518...
0.76417685
0
Return metainfo for the first frame recorded or {} if there were no frames.
def U34r(YKHO): if len(YKHO._frames) == 0: return {} U34r = YKHO._frames[0].info().copy() U34r.update({'preciseTiming': YKHO._frameTimesPrecise}) return U34r
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WWsB(YKHO):\n WmM4 = (None, None)\n return next(iter(jKi7.iterkeys(YKHO._counts)), WmM4)[0]", "def WWsB(YKHO):\n return YKHO._frames[0]", "def UtTi(YKHO):\n if YKHO._metadata_parsed is not None:\n return YKHO._metadata_parsed\n DUkp = YKHO._parse_total_images_per_channel()\n YKHO._...
[ "0.6386409", "0.60945505", "0.5937089", "0.58678925", "0.58427143", "0.5819108", "0.58183086", "0.5721553", "0.5716918", "0.5707904", "0.5681901", "0.5658251", "0.5654693", "0.5630695", "0.5611932", "0.5608634", "0.5598593", "0.55956113", "0.5515454", "0.54932123", "0.5470529...
0.63007736
1
If the status code is not 204 (No Content), write the error page as a JSON blob containing information about the error.
def i6F6(YKHO, JBvl, lo9Y='unknown', aeup={}, **B2fa): nPrm = None if JBvl != 204: nPrm = {'error': True, 'status': JBvl, 'message': B3z0.responses[JBvl], 'reason': lo9Y, 'detail': aeup} if YKHO.settings.get('debug') and 'exc_info' in B2fa: nPrm['exception'] = wVCK.format_exception(*...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i6F6(YKHO, JBvl, **B2fa):\n if JBvl == 404:\n YKHO.render(Hy7s.path.join(HwRy.path[0], '../static/404.html'))", "def P1dF(YKHO, QePW, JBvl, xsp2=None):\n if not xsp2:\n xsp2 = u8uZ()\n geh0 = igJ6(mimetype=YKHO.mimetype)\n geh0.write('%d %s' % (JBvl, Wyjl[JBvl]))\n if xsp2:\n ...
[ "0.717274", "0.7003533", "0.6975477", "0.6937581", "0.69148976", "0.6865585", "0.685094", "0.68420917", "0.68403083", "0.68341964", "0.68041795", "0.6778258", "0.67447686", "0.6694915", "0.6691998", "0.6678031", "0.66520995", "0.6632161", "0.66310275", "0.66189086", "0.661085...
0.701349
1
Send and object as a JSON response. This is required for types that cyclone does not automatically convert to json (such as Lists).
def DG_U(YKHO, YEnM): YKHO.write(qQXR.dumps(YEnM)) YKHO.set_header('Content-Type', 'application/json') YKHO.finish()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQXR(YKHO):\n return geh0", "def qQXR(YKHO):\n return geh0", "def qQXR(YKHO):\n return geh0", "def NULH(YKHO):\n return oGir(response=YKHO.serialize(), status=200, mimetype='application/json')", "def pz3A(YEnM, *qIxc, **B2fa):\n return oGir(oD7C(YEnM, *qIxc, **B2fa), mimetype='applicatio...
[ "0.7412281", "0.7412281", "0.7412281", "0.7320387", "0.7247022", "0.72285825", "0.7181274", "0.715012", "0.7149345", "0.71276873", "0.71043384", "0.7103801", "0.70979303", "0.70906365", "0.6999969", "0.6998134", "0.6996801", "0.69896084", "0.6981234", "0.6974417", "0.69609785...
0.734127
3
Get a copy of the list of runs.
def k245(YKHO): return list(YKHO._runs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f2GM(YKHO):\n return YKHO.runs", "def jth9(YKHO):\n return list(YKHO.__iter__())", "def Kt_F(YKHO):\n k245 = nNTj.objects.filter(site=YKHO.id)\n return [{'start': iXC1.start, 'end': iXC1.end, 'offers': iXC1.scraped, 'errors': YKHO.get_errors(iXC1.start, iXC1.end)} for iXC1 in k245]", "def xP0...
[ "0.69205654", "0.6678244", "0.6632813", "0.66014063", "0.65049237", "0.64279723", "0.64279723", "0.63615525", "0.6174408", "0.61506355", "0.6126262", "0.6082028", "0.6076319", "0.6023183", "0.599457", "0.59451354", "0.59265697", "0.5899771", "0.58656836", "0.5833312", "0.5785...
0.71780676
0
Get the likelihood instance.
def NzrI(YKHO): try: return YKHO._likelihood except AttributeError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETH1(YKHO, **B2fa):\n return YKHO.get_value('log_likelihood', **B2fa)", "def NMoC(YKHO):\n if YKHO.lik == 'app':\n return YKHO.app()\n elif YKHO.lik == 'admit':\n return YKHO.admit()\n elif YKHO.lik == 'matric':\n return YKHO.matric()\n else:\n raise RuntimeError('I...
[ "0.7468969", "0.7129495", "0.70237905", "0.7001506", "0.6940995", "0.69385177", "0.69333315", "0.68699926", "0.68644273", "0.6839496", "0.67991763", "0.67571807", "0.6588824", "0.65530986", "0.65437186", "0.6535765", "0.65214413", "0.65013915", "0.6452951", "0.6439496", "0.64...
0.8009105
0
Add item to the queuez.
def H2v5(YKHO, ZfUD): q2Xo = (YKHO.key(ZfUD), ZfUD) _eVy.heappush(YKHO.items, q2Xo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, ZfUD):\n YKHO.queue.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO._queue.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO._items.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO._items.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO.__queu...
[ "0.83274484", "0.824214", "0.8099937", "0.8064686", "0.8064686", "0.8019202", "0.79711026", "0.7947169", "0.793968", "0.7890588", "0.78783417", "0.7874621", "0.7874621", "0.7874621", "0.7874621", "0.7874621", "0.7857026", "0.78541", "0.7836705", "0.783539", "0.78345674", "0...
0.73592925
67
Pads id tensor to the match the `max_seq_len`.
def ojLL(vhpA, ZM6q, jDK_=0): ROpF = jPbk.get_shape_list(vhpA) PjCD = ZM6q - ROpF[jDK_] PjCD = ZylS.convert_to_tensor([PjCD]) _0VL = ZylS.constant([[jDK_]]) Vhxs = ZylS.pad(PjCD, paddings=[[1, 0]]) Vhxs = ZylS.expand_dims(Vhxs, axis=0) ROpF = ZylS.constant([len(ROpF), 2]) LkVj = ZylS.sca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHnj(YKHO, DNs0, wzH_):\n if len(DNs0) < wzH_:\n SXLe = wzH_ - len(DNs0)\n dvgN = [pA9D.PAD_WITH] * SXLe\n if YKHO._padding_type == pA9D.PAD_BEGINNING:\n return dvgN + DNs0\n else:\n return DNs0 + dvgN\n else:\n return DNs0[:wzH_]", "def gc7n(Crr...
[ "0.78629595", "0.73709434", "0.7112465", "0.6810316", "0.6803033", "0.6773766", "0.6699611", "0.6694963", "0.66871136", "0.66820264", "0.666043", "0.66568816", "0.6644675", "0.66174656", "0.66162", "0.65821385", "0.6570545", "0.65548956", "0.65368986", "0.65287155", "0.652082...
0.72030115
2
To get password from command line argument
def YyTK(wvEv): wvEv.addoption('--password', action='store', default='test', help='password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gPLX():\n return AOO4()", "def QVq7():\n return YvUC().password or AOO4.getpass(u'Input your password: ')", "def skZW():\n wvEv = j1Jz.ArgumentParser(description='WebLogin to UW')\n wvEv.add_argument('username')\n wvEv.add_argument('password')\n return wvEv.parse_args()", "def xqI3(idDS...
[ "0.7743282", "0.76066965", "0.75475997", "0.74714434", "0.7402371", "0.73888654", "0.7312548", "0.72466975", "0.71866155", "0.7151404", "0.7093418", "0.70897985", "0.70897985", "0.70897985", "0.70897985", "0.70897985", "0.70897985", "0.70897985", "0.70897985", "0.70897985", "...
0.0
-1
Loading weights from trained GMF model
def _FMD(YKHO): GPtr = YKHO.config CnaU = niX_(GPtr) if GPtr['use_cuda'] is True: CnaU.cuda() DSYN(CnaU, model_dir=GPtr['pretrain_mf'], device_id=GPtr['device_id']) YKHO.embedding_user.weight.data = CnaU.embedding_user.weight.data YKHO.embedding_item.weight.data = CnaU.embedding_item.wei...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _FMD(YKHO):\n CnaU = niX_(YKHO.config['model'])\n u4Xm = Hy7s.path.join(YKHO.config['system']['model_save_dir'], YKHO.config['model']['gmf_config']['save_name'])\n YKHO.resume_checkpoint(u4Xm, CnaU)\n YKHO.model.embedding_user_mf.weight.data = CnaU.embedding_user.weight.data\n YKHO.model.embeddi...
[ "0.77654463", "0.7731955", "0.7536516", "0.747933", "0.7392049", "0.7392049", "0.7392049", "0.72511935", "0.7212814", "0.7212814", "0.7192464", "0.7189666", "0.718517", "0.71805876", "0.71805876", "0.71805876", "0.7143412", "0.7139594", "0.7138471", "0.71318865", "0.71216136"...
0.781213
0
Downsample a 2D array by averaging over factor pixels in each axis. Crops upper edge if the shape is not a multiple of factor. This code is pure numpy and should be fast.
def myXy(liX5, aM8h, BHCt=JBMS): bEXe, fUYa = liX5.shape jaDg = liX5[:bEXe - bEXe % int(aM8h), :fUYa - fUYa % int(aM8h)] uNlZ = BHCt(XTiz.concatenate([[jaDg[YRbF::aM8h, r845::aM8h] for YRbF in range(aM8h)] for r845 in range(aM8h)]), axis=0) return uNlZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def myXy(VXjJ, aM8h):\n assert VXjJ.shape[0] % aM8h == 0\n assert VXjJ.shape[1] % aM8h == 0\n VXjJ = VXjJ.reshape([VXjJ.shape[0] // aM8h, aM8h, VXjJ.shape[1] // aM8h, aM8h, 3])\n VXjJ = VXjJ.mean(axis=3)\n VXjJ = VXjJ.mean(axis=1)\n return VXjJ", "def myXy(ezWE, pWj2):\n Os4s = pWj2 * int(le...
[ "0.7954561", "0.7386298", "0.7339626", "0.73009735", "0.7236856", "0.71816915", "0.6908312", "0.6774811", "0.6699716", "0.6586051", "0.65601397", "0.65548027", "0.6483259", "0.64655703", "0.64405644", "0.6393402", "0.63897777", "0.6363378", "0.63192284", "0.62874854", "0.6263...
0.65039235
12
Downsample a 3D array by averaging over factor pixels on the last two axes.
def O6ro(liX5, aM8h, HmwS=0): if HmwS > 0: liX5 = liX5.swapaxes(0, HmwS) YBbd, bEXe, fUYa = liX5.shape jaDg = liX5[:, :bEXe - bEXe % int(aM8h), :fUYa - fUYa % int(aM8h)] uNlZ = JBMS(XTiz.concatenate([[jaDg[:, YRbF::aM8h, r845::aM8h] for YRbF in range(aM8h)] for r845 in range(aM8h)]), axis=0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def myXy(VXjJ, aM8h):\n assert VXjJ.shape[0] % aM8h == 0\n assert VXjJ.shape[1] % aM8h == 0\n VXjJ = VXjJ.reshape([VXjJ.shape[0] // aM8h, aM8h, VXjJ.shape[1] // aM8h, aM8h, 3])\n VXjJ = VXjJ.mean(axis=3)\n VXjJ = VXjJ.mean(axis=1)\n return VXjJ", "def myXy(ezWE, pWj2):\n Os4s = pWj2 * int(le...
[ "0.778981", "0.709664", "0.69585764", "0.68234843", "0.6712723", "0.66404516", "0.66146415", "0.6541993", "0.64873207", "0.63175505", "0.63107014", "0.6293348", "0.62363183", "0.62095207", "0.618038", "0.6139774", "0.6131062", "0.6111887", "0.6038409", "0.6031783", "0.5997066...
0.7263334
1
Check if the query is a single term. A query is a single term if it is a single word, if it doesn't contain the syntax from a simple query string, and if `self.use_advanced_query` is False.
def NTBE(YKHO, xDcj): OqyB = not YKHO.use_advanced_query and xDcj and (len(xDcj.split()) <= 1) and (not YKHO._is_advanced_query(xDcj)) return OqyB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rRLN(YKHO):\n dixj = YKHO.i.search('cow')\n YKHO.assertEquals(len(dixj.hits), 1)", "def LZR3(YKHO, xDcj):\n s2mk = {'+', '|', '-', '\"', '*', '(', ')', '~'}\n rcBr = set(xDcj)\n return not s2mk.isdisjoint(rcBr)", "def fn2K(YKHO, xDcj):\n if not YKHO.multiple_word_re.match(xDcj):\n ...
[ "0.6482826", "0.6420733", "0.6352311", "0.6069757", "0.6028011", "0.6021189", "0.584608", "0.57975966", "0.5714232", "0.5699136", "0.56595176", "0.56230044", "0.56015587", "0.55996776", "0.5597255", "0.5574062", "0.5565225", "0.5517522", "0.5513224", "0.5504077", "0.5485174",...
0.8574866
0
Generates onehot vector of word in vocabulary Input
def IEi0(YKHO, GIN8): if GIN8 in YKHO.word_to_id.keys(): VRiR = [0 for YRbF in range(0, YKHO.v)] acax = YKHO.word_to_id[GIN8] VRiR[acax] = 1 return VRiR else: raise ValueError('Word does not exist in the vocabulary')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sOXo(GIN8, rrSk):\n zNig = len(rrSk.values())\n LVAh = oyIN.zeros(zNig)\n LVAh[rrSk[GIN8]] = 1.0\n return LVAh", "def BqHn(KJOC):\n G1Hx = KJOC.__len__()\n XcU5 = oyIN.zeros(shape=(KJOC.__len__() + 1, G1Hx + 1))\n for GIN8 in KJOC:\n XcU5[KJOC[GIN8], KJOC[GIN8]] = 1.0\n return ...
[ "0.86970675", "0.8078713", "0.79843646", "0.7871783", "0.7710875", "0.7693947", "0.7679544", "0.7656878", "0.7651743", "0.76476014", "0.75964355", "0.75833744", "0.75575984", "0.7507696", "0.7505384", "0.74936694", "0.7475679", "0.74674046", "0.74630237", "0.7457667", "0.7451...
0.81839216
1
Normalizes vector into a probability distribution. Each element of the vector will be compressed to a range [0,1] while the sum of all elements will be equal to 1. Input x (numpy array) Output Softmax of input vector (numpy array)
def anMS(YKHO, WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum(axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n WKvO = oyIN.exp(WKvO)\n return WKvO / oyIN.sum(WKvO)", "def N93T(WKvO):\n return oyIN.exp(WKvO) / sum(oyIN.exp(WKvO))", "def N93T(WKvO):\n bgro = WKvO - oyIN.max(WKvO)\n return oyIN.exp(bgro) / oyIN.sum(oyIN.exp(bgro), axis=0)", "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oy...
[ "0.7693793", "0.768", "0.7678508", "0.7656509", "0.76480657", "0.7642202", "0.76353", "0.7631283", "0.76299125", "0.76299125", "0.76201516", "0.7616746", "0.76102304", "0.76100177", "0.7608608", "0.7606544", "0.76046073", "0.76046073", "0.76046073", "0.76046073", "0.76046073"...
0.0
-1
Returns the matching parent interface if any. parent_type can be 'parent_link' (for vlan subint parent physical), or 'parent_bridge' (for bridge member parent bridge).
def dXBD(YKHO, begE, PyML, SH9l): try: return yF2U.objects.get(name=PyML[SH9l], device=begE) except (yF2U.DoesNotExist, KeyError): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iZD2(mbHt):\n _AKB = w6j3._current_frame\n while _AKB is not None and (not isinstance(_AKB, mbHt)):\n _AKB = _AKB._parent\n return _AKB", "def tImL(YKHO, _AKB):\n SH9l = _AKB\n if not isinstance(SH9l, type):\n SH9l = type(SH9l)\n return SH9l", "def ByGo(YKHO, aUGN, SH9l):\n ...
[ "0.73073435", "0.72545594", "0.6929164", "0.6633739", "0.6392488", "0.6276022", "0.62757635", "0.6213543", "0.61645645", "0.61491466", "0.6123822", "0.60916805", "0.6089347", "0.6053015", "0.6047256", "0.60313326", "0.60279787", "0.60248756", "0.60248756", "0.60248756", "0.60...
0.71303225
2
Add an interface to the device.
def lG7h(YKHO, mWFP, begE, *, DlVq, TwsR=False): YmHP = yF2U(name=mWFP, mgmt_only=TwsR, device=begE, type=DlVq) YmHP.save() YKHO.log_success(f'{begE}: created interface {mWFP} (mgmt={TwsR})') return YmHP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZkH_(YKHO, wohN):\n YKHO.add_interfaces([wohN])", "def ZkH_(YKHO, wohN):\n if not isinstance(wohN, yF2U):\n raise TypeError\n YKHO._interfaces[wohN.name] = wohN", "def ZkH_(YKHO, YmHP):\n if YmHP is None:\n raise V0Dt('attempt to add a null interface')\n if YmHP.name is None:\n...
[ "0.8426652", "0.7976987", "0.7921441", "0.76021063", "0.75658315", "0.7452132", "0.7420236", "0.7217477", "0.7165852", "0.715583", "0.70887214", "0.7082888", "0.7077136", "0.69975674", "0.69340634", "0.6919406", "0.6916914", "0.69146883", "0.68937624", "0.67863435", "0.678281...
0.7346036
7
Get numpy array for both cuda and not.
def DATX(WKvO): if ds3w: return WKvO.cpu().data.numpy() return WKvO.data.numpy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DATX(WKvO):\n if ht2j.cuda.is_available():\n return WKvO.cpu().data.numpy()\n return WKvO.data.numpy()", "def DATX(WKvO):\n if ds3w:\n return WKvO.cpu().numpy()\n return WKvO.numpy()", "def DATX(WKvO):\n if ds3w:\n return WKvO.cpu().data.numpy()\n return WKvO.data.num...
[ "0.64123404", "0.6369972", "0.63133734", "0.619486", "0.6176284", "0.6117168", "0.6102801", "0.60739875", "0.6064488", "0.6021622", "0.5998782", "0.599359", "0.5937787", "0.5921841", "0.59191406", "0.5908114", "0.58786476", "0.58786476", "0.5878445", "0.58330065", "0.58147794...
0.62226707
3
Create a dir if not exists
def S2kk(pmON): if not Hy7s.path.exists(pmON): Hy7s.makedirs(pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S2kk(Csk6):\n if Hy7s.path.exists(Csk6):\n return\n else:\n Hy7s.mkdir(Csk6)", "def nDYT(pmON):\n if not Hy7s.path.exists(pmON):\n Hy7s.makedirs(pmON)", "def Nv74(eHKs):\n if not Hy7s.path.exists(eHKs):\n Hy7s.makedirs(eHKs)", "def S2kk(dir: str):\n if not LR7z(...
[ "0.88175964", "0.8570551", "0.8475458", "0.8465905", "0.84616", "0.84616", "0.84572583", "0.8429912", "0.8414669", "0.8405758", "0.8405758", "0.83458537", "0.8311967", "0.8311779", "0.82821214", "0.8277876", "0.8272057", "0.8269922", "0.82668775", "0.8264555", "0.82619286", ...
0.8399519
11
Returns whether or not the current header should be traced.
def xvF8(YKHO, fwPH): J6Du = Vr0b(fwPH) RKD7.debug("Checking header '%s' tracing in allowlist %s", J6Du, YKHO._allowlist_headers) return J6Du in YKHO._allowlist_headers
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w2wV(YKHO):\n return False", "def w2wV(YKHO):\n return True", "def LKHn(zgsA):\n pass", "def Y7C6(YKHO):\n return YKHO.log.isEnabledFor(G9jH.TRACE)", "def Y7C6(YKHO):\n return YKHO.log.isEnabledFor(G9jH.TRACE)", "def hvgT(YKHO):\n return YKHO._deco & mk9C.HEADER > 0", "def Iv66(YK...
[ "0.6550041", "0.6459864", "0.645068", "0.644723", "0.644723", "0.6298425", "0.62886524", "0.5978787", "0.596131", "0.58294004", "0.58068407", "0.5728403", "0.5725272", "0.5722576", "0.5711539", "0.5710052", "0.56903845", "0.5679241", "0.56619966", "0.5658958", "0.5644752", ...
0.6683606
0
Designed to be used on files. Yields only direct children, or children of batches.
def ZNIK(xXL1): for pG0V in xXL1.segments: if pG0V.is_type('batch'): for JAXd in pG0V.segments: if JAXd.is_type('statement'): yield JAXd elif pG0V.is_type('statement'): yield pG0V
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iter(YKHO):\n E5BI = [(YKHO.root, '')]\n while len(E5BI):\n kMLo, zOGz = E5BI.pop()\n yield (kMLo, zOGz)\n if isinstance(kMLo, mLe5):\n for hDyy, XJxn in kMLo.children.items():\n E5BI.append((XJxn, Hy7s.path.join(zOGz, hDyy)))", "def Vs4Q(YKHO):\n if no...
[ "0.67779744", "0.67514104", "0.66827124", "0.65915364", "0.651093", "0.64992785", "0.64715385", "0.64415663", "0.6434563", "0.6431283", "0.6412933", "0.641277", "0.638403", "0.63615954", "0.63497883", "0.63378763", "0.63297373", "0.63225573", "0.63197595", "0.62982976", "0.62...
0.0
-1
Adds schema dict marshaled data to resource_fields dict
def Ey46(uPxI, S1Yh): for hkS8 in uPxI: if not isinstance(uPxI[hkS8]['type'], V_D6.Raw): S1Yh[hkS8] = sdgl(uPxI[hkS8]['type']) else: S1Yh[hkS8] = uPxI[hkS8]['type'] if uPxI[hkS8].get('nested', False): S1Yh[hkS8].__init__(attribute=uPxI[hkS8]['dict'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wvQ2(V_D6):\n rIKJ = []\n for Jyyj in V_D6:\n U34r = {'name': Jyyj.name, 'type': Jyyj.field_type, 'mode': Jyyj.mode}\n if Jyyj.description is not None:\n U34r['description'] = Jyyj.description\n if Jyyj.fields:\n U34r['fields'] = wvQ2(Jyyj.fields)\n rIKJ....
[ "0.6413657", "0.6398909", "0.63955194", "0.6349039", "0.62373894", "0.61831224", "0.61815625", "0.61761063", "0.61239445", "0.60539913", "0.6013254", "0.60047734", "0.600157", "0.5972142", "0.5946412", "0.59214926", "0.5872348", "0.58702946", "0.5838663", "0.58320236", "0.583...
0.70049024
0
Create a circular array of length length
def FIMM(YKHO, u54L): YKHO.length = u54L YKHO._array = oyIN.array(int(YKHO.length) * [None]) YKHO._last_key = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d3cs(ezWE, u54L):\n Aofo = oyIN.empty((u54L,), dtype='float32')\n vC9B = len(ezWE)\n oeNL = 0\n while oeNL + vC9B <= u54L:\n Aofo[oeNL:oeNL + vC9B] = ezWE\n oeNL += vC9B\n if oeNL < u54L:\n Aofo[oeNL:u54L] = ezWE[:u54L - oeNL]\n return Aofo", "def H6TC(qw7D):\n ycBG ...
[ "0.713351", "0.64406323", "0.6159187", "0.6145807", "0.6145807", "0.61428154", "0.61161625", "0.60642785", "0.5989911", "0.59640026", "0.5945223", "0.59138083", "0.5908265", "0.58862275", "0.5882077", "0.57798713", "0.57798713", "0.57798713", "0.57798713", "0.57798713", "0.57...
0.5725701
26
Check that the API key is passed through from the config via environ
def broL(rpIy): YWSi = ZfKA() YWSi.client._get_auth_tenant = CFMy(return_value='ID') sEAN = YWSi.populate_env_vars(KfdY) assert sEAN['PREFECT__CLOUD__API_KEY'] == rpIy.cloud.api_key assert sEAN['PREFECT__CLOUD__TENANT_ID'] == rpIy.cloud.tenant_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K5hn(rJDA, Sxga):\n if not rJDA:\n xfNW = Hy7s.getenv(Sxga)\n return xfNW\n xfNW = rJDA\n return xfNW", "def bPgV():\n VBXq = Hy7s.getenv('USING_API_KEY')\n return VBXq is not None", "def gA5b(P4t4, LIlF):\n if P4t4.config['OWASP_NETTACKER_CONFIG']['api_access_key'] != Zmkp(...
[ "0.80964494", "0.79366666", "0.7652649", "0.75528735", "0.74517304", "0.74143004", "0.7317551", "0.72453415", "0.7174768", "0.7171846", "0.71651226", "0.7105933", "0.70940024", "0.70925206", "0.7000315", "0.6989982", "0.69814986", "0.69378346", "0.6920434", "0.6915684", "0.69...
0.74145776
5
Calculates the ESS from an array of log weights.
def CPgf(yzQ0): HBfW = NkkI(yzQ0) return oyIN.sum(HBfW, axis=-1) ** 2 / oyIN.sum(HBfW ** 2, axis=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rA75(ui_e):\n tpio = 1 if ui_e.ndimension() == 2 else 0\n return 2 * ht2j.logsumexp(ui_e, dim=tpio) - ht2j.logsumexp(2 * ui_e, dim=tpio)", "def JZ5P(YX7c):\n return 1 / oyIN.exp(vqBa(2 * (YX7c - vqBa(YX7c))))", "def LYnm(YKHO, _mSQ):\n LVAh = hxFl(YKHO.A, L8LP(_mSQ))\n P1dF = 0\n for YRbF...
[ "0.71974754", "0.7012523", "0.64965796", "0.626175", "0.60036373", "0.5974342", "0.593762", "0.58408815", "0.57269216", "0.57200825", "0.56665075", "0.5641686", "0.5538611", "0.55223924", "0.551202", "0.5510263", "0.5498246", "0.5484146", "0.54633516", "0.5461539", "0.5448404...
0.57577693
8
Expand dimensions to the right to target the dimensions of ndims.
def ko0w(qw7D, kvqa): if qw7D.ndim == kvqa: return qw7D jth9 = oyIN.expand_dims(qw7D, -1) return ko0w(jth9, kvqa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tNug(WKvO, jDK_):\n for aNZO in jDK_:\n WKvO = wmvz(WKvO, aNZO)\n return WKvO", "def XGCT(vhpA, kvqa, xo9a=0):\n assert xo9a >= 0\n for YRbF in range(kvqa):\n vhpA = ht2j.unsqueeze(vhpA, -1 - xo9a)\n return vhpA", "def wmvz(ezWE: array_like, jDK_: int) -> KvM0:\n return oyIN...
[ "0.67977977", "0.6782094", "0.6602904", "0.6560908", "0.6557422", "0.65505433", "0.6524477", "0.6468799", "0.6359463", "0.63439876", "0.6338674", "0.6275261", "0.62432265", "0.6222953", "0.62220645", "0.6212118", "0.6203579", "0.62029463", "0.61338955", "0.6125344", "0.612447...
0.7127954
0
Serialize the BenchmarkResult object to string.
def yLCI(YKHO): O_4W = dict() for H5ew in YKHO.__dict__: OLwC = H5ew.split('__')[1] if isinstance(YKHO.__dict__[H5ew], bHD7): O_4W[OLwC] = YKHO.__dict__[H5ew].value else: O_4W[OLwC] = YKHO.__dict__[H5ew] return qQXR.dumps(O_4W)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ra6v(YKHO):\n return YKHO._result.to_string()", "def zAg0(YKHO):\n Ebev = ', '.join(['result: ' + str(YKHO.result), 'result_str: ' + str(YKHO.result_str)])\n return f'ServerUtilityResult: [{Ebev}]'", "def zAg0(YKHO):\n return str(YKHO.result)", "def Wobt(Aofo: Any) -> str:\n return PjZe(Ao...
[ "0.7255818", "0.66552013", "0.63693863", "0.61770666", "0.61715317", "0.61619556", "0.6137313", "0.61185527", "0.61162734", "0.61022973", "0.61022973", "0.6092259", "0.60245603", "0.60220796", "0.6014562", "0.60094595", "0.59895223", "0.5978756", "0.59588754", "0.5955605", "0...
0.7052472
1
Decoration function to access __name.
def mWFP(YKHO): return YKHO.__name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lbtt(YKHO):\n return YKHO.__name___", "def wGWt(YKHO):\n return YKHO.__name", "def wGWt(YKHO):\n return YKHO.__name", "def wGWt(YKHO):\n return YKHO.__name", "def wGWt(YKHO):\n return YKHO.__name", "def wGWt(YKHO):\n return YKHO.__name", "def wGWt(YKHO):\n return YKHO.__name", ...
[ "0.8908797", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.877475", "0.8774...
0.0
-1
Decoration function to access __start_time.
def SWox(YKHO): return YKHO.__start_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSV8(YKHO):\n raise NotImplementedError", "def jSV8(YKHO):\n raise NotImplementedError", "def jSV8(YKHO):\n return YKHO.start_time", "def SWox(YKHO):\n raise NotImplementedError()", "def jSV8(YKHO):\n return YKHO.start_time", "def jSV8(YKHO):\n return YKHO.__start_time", "def jSV8...
[ "0.86766577", "0.86766577", "0.85463476", "0.84041375", "0.83222866", "0.83061326", "0.83061326", "0.83057564", "0.8213435", "0.8201825", "0.819544", "0.8129796", "0.80950886", "0.8091876", "0.8091876", "0.8091354", "0.80614156", "0.8060556", "0.8060556", "0.8060556", "0.8060...
0.81870663
11
Strip off unnecessary characters from child_support_act value
def Kzra(h2IT, sdRi): u_ln = h2IT.get('child_support_act', '').replace('"', '').replace('[', '').replace(']', '').replace(' ,', ' and ') return u_ln
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LORx(YKHO, BWXx):\n return BWXx.replace('-', '').replace(' ', '')", "def x0SS(YKHO, BWXx):\n return super().clean(BWXx).strip()", "def Zw8w(BWXx):\n for sWfS in '()-\\xa0 ':\n BWXx = BWXx.replace(sWfS, '')\n return BWXx", "def ZBoV(Bewq: str) -> str:\n Bewq = Bewq.replace('+[Proper=...
[ "0.60635", "0.6014001", "0.59126425", "0.5896287", "0.58780545", "0.58464557", "0.58464533", "0.578291", "0.57795966", "0.5726849", "0.57210094", "0.5717357", "0.56869686", "0.56735456", "0.56722975", "0.56612355", "0.5630695", "0.5619283", "0.5609531", "0.5607273", "0.557765...
0.6208869
0
Adds an attribute node_ids to the given dataset.
def LK_K(__n6, eVVj, z0q4, Ehky, PqEP): __n6[z0q4] = eVVj.get_node_ids(__n6[Ehky].values, __n6[PqEP].values)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GqAU(YKHO, r3r7):\n lmpc = rLdf.DataFrame({'@id': r3r7})\n lmpc = lmpc.set_index('@id')\n YKHO._nodes = YKHO._nodes.append(lmpc)", "def BHBn(YKHO, r3r7, PNdJ: Dict[int, Iterable[int]], tckm: Dict[int, Dict], JqSK: bool=True) -> None:\n for Lnes in r3r7:\n YKHO._add_node(node_id=Lnes, adjac...
[ "0.70817965", "0.64245594", "0.6391196", "0.6184071", "0.6112079", "0.59204316", "0.5882932", "0.5757114", "0.5726444", "0.56944484", "0.5663935", "0.5639693", "0.55927527", "0.5537913", "0.55032617", "0.54998475", "0.54329306", "0.54127294", "0.5393406", "0.53754663", "0.537...
0.6575806
1
Returns the subgraph of G induced by the given path (ordered collection of nodes)
def GAgv(yvY1, pmON, mC4V): RCEU = yvY1.subgraph(pmON).copy() mC4V = set(mC4V) lV4j = [] for tTpl in RCEU.edges_iter(): if not tTpl in mC4V and (not tTpl[::-1] in mC4V): lV4j.append(tTpl) RCEU.remove_edges_from(lV4j) return RCEU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gv1B(YKHO, ckRy):\n Ziit, mC4V = yXil(ckRy)\n return YKHO.subgraph(nodes_to_include=Ziit, edges_to_include=mC4V)", "def RCEU(yvY1, q6sX):\n return yvY1.subgraph(q6sX)", "def E4p8(YKHO):\n return YKHO._graph", "def dE7a(YKHO, pmON):\n return [(YRbF, r845) for YRbF, r845 in zip(pmON[:-1], pm...
[ "0.7490534", "0.7125748", "0.6807799", "0.67253023", "0.6529081", "0.6455525", "0.6440098", "0.63699365", "0.63656783", "0.63445085", "0.6331719", "0.6328752", "0.63239217", "0.6281948", "0.6273081", "0.6271507", "0.62629706", "0.6237819", "0.61925644", "0.6183546", "0.614612...
0.7336072
1
Function which add two numbers
def rpLM(gdXy, DWMs, KmXJ): QAki = 0 jzdc = len(gdXy) for YRbF in range(jzdc - 1, -1, -1): gdXy[YRbF] = int(gdXy[YRbF]) + int(DWMs[YRbF]) + QAki if gdXy[YRbF] >= int(KmXJ): gdXy[YRbF] = int(gdXy[YRbF]) - int(KmXJ) QAki = 1 else: QAki = 0 if QAk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(gdXy, DWMs):\n return gdXy + DWMs", "def NfUt(jzdc, Fg_i):\n return jzdc + Fg_i", "def hoYO(jzdc, Fg_i):\n return jzdc + Fg_i", "def H2v5(B58t, XfrR):\n return B58t + XfrR", "def NfUt(jzdc, Fg_i):\n return jzdc + Fg_i", "def V6lN(WKvO, LVAh):\n epBp = WKvO + LVAh\n return ep...
[ "0.86765677", "0.865798", "0.86060965", "0.8580867", "0.8575884", "0.8531531", "0.85191596", "0.85191596", "0.85191596", "0.85191596", "0.85191596", "0.8518698", "0.8511193", "0.8497197", "0.8497197", "0.8470744", "0.846254", "0.84555644", "0.8444977", "0.8432452", "0.8430999...
0.0
-1
Convert a number from bases {2, 4, 8, 16} into base 2
def iyTq(FGW3, L5nw): ijjw = {'0': [0, 0, 0, 0], '1': [0, 0, 0, 1], '2': [0, 0, 1, 0], '3': [0, 0, 1, 1], '4': [0, 1, 0, 0], '5': [0, 1, 0, 1], '6': [0, 1, 1, 0], '7': [0, 1, 1, 1], '8': [1, 0, 0, 0], '9': [1, 0, 0, 1], '10': [1, 0, 1, 0], '11': [1, 0, 1, 1], '12': [1, 1, 0, 0], '13': [1, 1, 0, 1], '14': [1, 1, 1, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hr7C(P8oC: t.Literal[2, 8, 16], FGW3: int) -> str:\n if P8oC == 2:\n return bin(FGW3).replace('0b', '')\n elif P8oC == 8:\n return oct(FGW3).replace('0o', '')\n elif P8oC == 16:\n return hex(FGW3).replace('0x', '')", "def _gLu(mLGw, P8oC):\n BHGE = '0123456789ABCDEF'\n if ...
[ "0.75609314", "0.7559264", "0.7450546", "0.7347686", "0.73327464", "0.72710156", "0.7260708", "0.7246401", "0.724357", "0.7208574", "0.71702814", "0.7160621", "0.71556425", "0.71234953", "0.70855784", "0.7079847", "0.707708", "0.70677155", "0.702166", "0.6998611", "0.6993122"...
0.6957229
22
Convert a number from a base using the substitution method (b < h)
def V67d(juQb, FGW3, L5nw, vgZx): jj3Q = [0] for YRbF in range(len(FGW3) - 1, -1, -1): z0CX = iS3a(bhBO(L5nw, len(FGW3) - 1 - YRbF, vgZx, juQb), [FGW3[YRbF]], vgZx) jj3Q, z0CX = huCZ(jj3Q, z0CX) jj3Q = rpLM(jj3Q, z0CX, vgZx) return jj3Q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y7I5(exwG, Fg_i):\n if not 2 <= Fg_i <= 36:\n raise ValueError('base b must be between 2 and 36')\n TK2h = ''\n while exwG > 0:\n Mkmy = exwG % Fg_i\n exwG //= Fg_i\n TK2h = k0lF[Mkmy] + TK2h\n return TK2h", "def _gLu(mLGw, P8oC):\n BHGE = '0123456789ABCDEF'\n if...
[ "0.7306325", "0.73057365", "0.7277307", "0.72252375", "0.7223046", "0.7213544", "0.71887785", "0.7171901", "0.7087847", "0.7044921", "0.70257556", "0.7003597", "0.69946796", "0.6977396", "0.6958899", "0.69350517", "0.6917515", "0.6848133", "0.6846724", "0.6845443", "0.6844964...
0.62481844
79
Convert a number from a base using the successive divisions and multiplications method (b > h)
def jARA(juQb, FGW3, L5nw, vgZx): FPP6 = [] afy7 = FGW3[:] if int(L5nw) == 16 and int(vgZx) == 10: tOYt, K0A_ = QBke(afy7, [10], L5nw) else: tOYt, K0A_ = QBke(afy7, [vgZx], L5nw) FPP6.insert(0, K0A_) while oFAL(tOYt) != len(tOYt): afy7 = tOYt[:] if int(L5nw) == 16...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _j1y(mLGw, P8oC):\n jzdc = mLGw\n KCHu = ''\n while jzdc > 0:\n Fg_i = jzdc % P8oC\n jzdc = jzdc / P8oC\n KCHu = str(Fg_i) + KCHu\n return KCHu", "def Hr7C(exwG, Fg_i):\n if exwG == 0:\n return [0]\n Ylbp = []\n while exwG > 0:\n Ylbp.insert(0, exwG % F...
[ "0.70786095", "0.70570445", "0.6939256", "0.6903838", "0.6899916", "0.6889908", "0.68719894", "0.68485993", "0.6831334", "0.6793453", "0.67931294", "0.67881763", "0.67809236", "0.6771081", "0.6756249", "0.6754807", "0.67332685", "0.6732375", "0.6702821", "0.6672834", "0.66720...
0.66621345
21
Test uploading an invalid image
def gopI(YKHO): bD7m = xx5i(YKHO.product.id) Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='multipart') YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zwC5(YKHO):\n bD7m = xx5i(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='multipart')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def Vt_3(YKHO):\n bD7m = nXsP(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'not image'}, format='...
[ "0.8583424", "0.8558244", "0.85374063", "0.8413656", "0.8373553", "0.83652174", "0.8360783", "0.8360783", "0.8359964", "0.83317864", "0.8331326", "0.8331326", "0.83073425", "0.8270422", "0.8270132", "0.82606834", "0.8249335", "0.820451", "0.80751884", "0.78633493", "0.7782769...
0.8296584
13
Test returning categories with specific products
def Cm7g(YKHO): t3Zk = hkDa(user=YKHO.user, title='Posh beans on toast') NSyJ = hkDa(user=YKHO.user, title='Chicken cacciatore') W51C = KeVq(user=YKHO.user, name='Feta cheese') G2h1 = KeVq(user=YKHO.user, name='Chicken') t3Zk.products.add(W51C) NSyJ.products.add(G2h1) e1Ai = hkDa(user=YKHO.u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bW0m(YKHO):\n pass", "def Vl6z(YKHO):\n pass", "def jrbh(YKHO):\n geh0 = YKHO.client.get('/products/?category=test')\n QpfX = geh0.context\n YKHO.assertFalse(QpfX['query_term'])\n YKHO.assertTrue(QpfX['category_name'])\n YKHO.assertEqual(QpfX['category_name'], 'test')", "def az2a(YKH...
[ "0.81909364", "0.8148824", "0.7833059", "0.74372476", "0.71978325", "0.7163504", "0.7113056", "0.70121807", "0.68887794", "0.6870717", "0.6869987", "0.6829095", "0.6807382", "0.66532826", "0.66458917", "0.66114366", "0.6599232", "0.65825826", "0.65757066", "0.6516138", "0.651...
0.78001565
3
Load a tabular demo. If a dataset name is given, it is downloaded from the sdvdatasets S3 bucket. Otherwise, a toy dataset with a single table that contains data from a short fake collection of employees. If ``metadata`` is ``True``, the output will be a tuple with a ``Metadata`` instance for the dataset and a ``pandas...
def AaXR(j3aw=None, GTA_=None, i0XC=qclk, yIVm=False): if j3aw: e5kH, xU0C = BeMM(j3aw, i0XC) if GTA_ is None: GTA_ = e5kH.get_tables()[0] tyNF = JlZp(xU0C[GTA_]) if yIVm: return (TQJD.from_dict(e5kH.get_table_meta(GTA_)), tyNF) return tyNF tyNF = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a2CV(j3aw=None, i0XC=qclk, yIVm=False):\n if j3aw:\n e5kH, xU0C = BeMM(j3aw, i0XC)\n else:\n e5kH, xU0C = ggRX()\n if yIVm:\n return (e5kH, xU0C)\n return xU0C", "def I6v0(j3aw=None, GTA_=None, yIVm=False):\n j3aw = j3aw or 'nasdaq100_2019'\n return AaXR(j3aw, GTA_, dat...
[ "0.7501771", "0.71574616", "0.5979941", "0.5946118", "0.5877469", "0.58026654", "0.5794716", "0.56813514", "0.56622976", "0.5647182", "0.5627489", "0.5600877", "0.5583878", "0.5552177", "0.5534821", "0.55320096", "0.55284816", "0.55276644", "0.5518489", "0.5517979", "0.550024...
0.7139615
2
Get available demos and information about them.
def dzxy(): return rLdf.read_csv(qMCi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mKIR(YKHO, Z50W):\n raise NotImplementedError()", "def O7PV(YKHO, YEnM):\n return YEnM.brainbankdemo_set.count()", "def mKIR(YKHO, Z5kt: int, ciIU: bool=False, iXTm: bool=False, EhAe: Callable[[Observation], None]=None, Cpim: int=IHWQ) -> x1iM[Rpit]:\n if not ciIU and (YKHO._dataset_root is None o...
[ "0.6448416", "0.5949603", "0.58965397", "0.5893409", "0.58640075", "0.58640075", "0.58322036", "0.57588506", "0.5756047", "0.56167006", "0.55888844", "0.55406964", "0.5489271", "0.5468401", "0.5459546", "0.54217064", "0.5417489", "0.5369056", "0.5355885", "0.5355885", "0.5355...
0.7100675
0
Given a list of torch modules, returns a list of their parameters.
def OqPV(KZ52: Iterable[Module]): UNGc = [] for yR_P in KZ52: UNGc += list(yR_P.parameters()) return UNGc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xqoZ(YKHO):\n NArs = []\n for yR_P in YKHO.modules:\n NArs.append(yR_P.param())\n return NArs", "def xqoZ(YKHO):\n NArs = []\n for r8hN in YKHO.modules:\n for xqoZ in r8hN.param():\n NArs.append(xqoZ)\n return NArs", "def jaTU(YKHO) -> iu5r[U78l.Module]:\n yiel...
[ "0.68795645", "0.6797529", "0.6706283", "0.65414244", "0.6395375", "0.6370392", "0.6347882", "0.61563534", "0.6154256", "0.61520755", "0.61280864", "0.6098294", "0.60895914", "0.605066", "0.603823", "0.59894425", "0.59699017", "0.59440005", "0.59381366", "0.59367895", "0.5928...
0.7887586
0
Return path to variant QC root folder
def E8tE(DpZH: str=ocI2) -> str: return f'gs://gnomad/variant_qc/genomes_v{DpZH}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NbVg(YKHO):\n return Hy7s.path.join(YKHO.par['rdx']['redux_path'], YKHO.par['rdx']['qadir'])", "def NbVg(YKHO):\n return Hy7s.path.join(YKHO.par['rdx']['redux_path'], YKHO.par['rdx']['qadir'])", "def uVi9():\n bin = Hy7s.path.join(mSqg(), 'qmls')\n if not Hy7s.path.exists(bin):\n Hy7s.ma...
[ "0.69731426", "0.69731426", "0.67741233", "0.67358327", "0.6717727", "0.6672732", "0.6623486", "0.6619155", "0.6498311", "0.6451356", "0.6416223", "0.6409836", "0.6379771", "0.63780123", "0.6361424", "0.635969", "0.6347081", "0.6318149", "0.6300623", "0.6272684", "0.6242548",...
0.6921586
2
Get the path to the RF model for a given run
def GryT(tsEk: str, Tl0b: str=ocI2) -> str: return f'{E8tE(Tl0b)}/rf/models/{tsEk}/rf.model'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XqaY(Tl0b: str=ocI2):\n return f'{E8tE(Tl0b)}/rf/rf_runs.json'", "def nmkS():\n uqvc = Hy7s.path.join(L7vK, 'models')\n if not Hy7s.path.exists(uqvc):\n Hy7s.makedirs(uqvc)\n return uqvc", "def JE3y(YKHO):\n return Hy7s.path.join(YKHO.testdata_dir, 'saved_model_half_plus_two_tflite')"...
[ "0.6921758", "0.6803193", "0.6765665", "0.66791326", "0.65784484", "0.6541623", "0.6520871", "0.6506636", "0.6436681", "0.6427902", "0.6413341", "0.6372907", "0.6361408", "0.63137335", "0.62706906", "0.6244929", "0.62425697", "0.62209445", "0.62121606", "0.6166426", "0.615456...
0.7342875
0
Calculate area of the surface
def Aw0V(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def B7Mv(YKHO):\n if YKHO.surface_area_ is None:\n f0tD = 0.0\n for nXnc in YKHO.triangles:\n huCq = YKHO._area_of_tri(nXnc)\n f0tD += huCq\n YKHO.surface_area_ = f0tD\n return YKHO.surface_area_...
[ "0.8430907", "0.80974746", "0.7913394", "0.7802329", "0.7775167", "0.7717083", "0.7695123", "0.76825255", "0.7648828", "0.76081526", "0.75823534", "0.75691736", "0.7566324", "0.75528634", "0.7506911", "0.74963444", "0.7493336", "0.74760425", "0.74717677", "0.7469968", "0.7455...
0.74229795
22
Return area of the shape.
def drdQ(YKHO): return YKHO.area
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return rSWe(YKHO.dimensions).area()", "def WCve(YKHO):\n return YKHO.area_shape", "def f0tD(YKHO):\n f0tD = 4.0 * oyIN.pi * YKHO.primitive.radius ** 2\n return f0tD", "def f0tD(YKHO):\n tjC2 = 0.0\n for ROpF in YKHO.body.shapes:\n tjC2 += ROpF.area\n return tjC2"...
[ "0.86834663", "0.86151546", "0.8595593", "0.8521124", "0.8488804", "0.8377597", "0.8363348", "0.8346011", "0.8344343", "0.8340725", "0.83345103", "0.83215964", "0.8316195", "0.8314431", "0.8308138", "0.82930046", "0.8273906", "0.8270389", "0.8257784", "0.82499343", "0.8246293...
0.0
-1
Calculate area of the rectangle
def Aw0V(YKHO): jzdc = epAf.sqrt(sum((YKHO.coords[1, :] - YKHO.coords[0, :]) ** 2)) Fg_i = epAf.sqrt(sum((YKHO.coords[2, :] - YKHO.coords[1, :]) ** 2)) YKHO.area = jzdc * Fg_i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAdl(mawX: np.ndarray) -> float:\n Jw7X = mawX[2] - mawX[0]\n eUWA = mawX[3] - mawX[1]\n return Jw7X * eUWA", "def Aw0V(YKHO):\n pass", "def f0tD(YKHO):\n TLbF = YKHO.flatten()\n f0tD = 0\n for KCHu in TLbF.asSegments():\n f0tD = f0tD + (KCHu.start.x + KCHu.end.x) * (KCHu.end.y ...
[ "0.82862324", "0.82799566", "0.81135404", "0.8085102", "0.8050522", "0.80356246", "0.80056053", "0.7993665", "0.79928046", "0.7929619", "0.79142463", "0.78945833", "0.7864912", "0.78556705", "0.78507704", "0.78505915", "0.7843051", "0.783467", "0.7825525", "0.77992445", "0.77...
0.8010464
6
Response with an incident team payload.
def FIMM(dMHm, nPrm: IncidentTeamResponseData, WKiq: Union[List[Union[IncidentTeamIncludedItems, User]], UnsetType]=VplZ, **B2fa): if WKiq is not VplZ: B2fa['included'] = WKiq super().__init__(B2fa) dMHm.data = nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uw2e(pB3N: dict):\n l5Ny = G4JS.get(NKRf + 'teams', params=pB3N).text\n return qQXR.loads(l5Ny)", "def dZPi(x0hE, format, id):\n dZPi = x0hE.team(id)\n print(Napc('team', dZPi['team'], format))", "def FwkO(YKHO, mLXZ, b2mu):\n bD7m = '{0}/v2/organizations/{1}/teams/{2}'.format('https://' + Y...
[ "0.61419797", "0.612161", "0.5872888", "0.57746977", "0.57633704", "0.5727047", "0.5672843", "0.56528586", "0.559823", "0.5556712", "0.5537472", "0.5477793", "0.5451373", "0.53785616", "0.5376551", "0.5345296", "0.5343601", "0.53390545", "0.53390545", "0.5337742", "0.53252757...
0.0
-1
Clean password form fields and perform validation.
def E5La(YKHO, K_Sa, GUUE, tTya): if GUUE: if GUUE != tTya: YKHO.errors[K_Sa] = hjyQ(["Passwords don't match."]) if len(GUUE) < 6: YKHO.errors[K_Sa] = hjyQ(['Passwords must contain at least 6 characters.']) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0SS(YKHO):\n BfIX = YKHO.cleaned_data.get('old_password')\n if not YKHO.request.user.check_password(BfIX):\n raise H6V6.ValidationError('invalid old password')\n uGpu = YKHO.cleaned_data.get('new_password')\n KtKn = YKHO.cleaned_data.get('confirm_password')\n if uGpu and uGpu != KtKn:\n ...
[ "0.75395197", "0.7341197", "0.7324077", "0.73121613", "0.7307037", "0.73068064", "0.723071", "0.7226254", "0.7220474", "0.72120935", "0.7119137", "0.7084922", "0.70512563", "0.70512563", "0.7051015", "0.70474976", "0.7032471", "0.7017722", "0.6991818", "0.69887", "0.698", "...
0.0
-1
This validates the single phone number field.
def SR9Q(YKHO, JSoq, vXX7, ngUu=False): if not ZbWC.match('\\d{10}$', str(JSoq)): YXxD = 'Please enter the 10 digit number of your cell phone' if ngUu: YXxD = 'Please enter a 10 digit phone number.' YKHO.errors[vXX7] = hjyQ([YXxD])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgqE(L03z, Jyyj):\n if Jyyj.data:\n try:\n int(Jyyj.data)\n except ValueError:\n raise sUXu('Please only include digits in this field')\n if len(Jyyj.data) not in {10, 11}:\n raise sUXu('Phone number must be 10 or 11 digits long')", "def aju0(YKHO):\n ...
[ "0.8116233", "0.7982238", "0.7958889", "0.78538543", "0.7842363", "0.7782812", "0.7771502", "0.775578", "0.7577469", "0.75295097", "0.7430587", "0.74282694", "0.7410061", "0.7349346", "0.73087746", "0.7288236", "0.7259941", "0.7197228", "0.7169271", "0.71566004", "0.7153151",...
0.77278084
8
Test that the genesis transactions are correctly returned
def VZup(zmFL): ZrNc = NE8o('0xC951900c341aBbb3BAfbf7ee2029377071Dbc36A') NCls = zmFL.database with NCls.user_write() as N1p7: NCls.add_blockchain_accounts(write_cursor=N1p7, account_data=[CYT9(chain=Ed5c.ETHEREUM, address=ZrNc)]) zmFL.single_address_query_transactions(address=ZrNc, start_ts=uev...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XdOU(P2Mq):\n print('\\n\\nTEST: test_create_transaction:')\n Wqkv = len(P2Mq.current_transactions)\n P2Mq.new_transaction(origin='block', weights=sfh0.tolist(), bias=l_ac, sender_public_key=f2Pj, sender_private_key=ZKhO)\n VOX3 = len(P2Mq.current_transactions)\n assert VOX3 == Wqkv + 1\n ass...
[ "0.6782119", "0.66903037", "0.6632761", "0.66308707", "0.64975375", "0.6479941", "0.6446464", "0.6423568", "0.6408352", "0.6381663", "0.636643", "0.6366151", "0.6352512", "0.63103443", "0.62940216", "0.62869185", "0.62746245", "0.6259151", "0.6254388", "0.6241474", "0.6240601...
0.683888
0
Returns a list that is a column in a list of lists.
def iVRZ(nPrm, fvDH): return [rdlD[fvDH] for rdlD in nPrm]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S0Ed(YKHO, IqQl, iVRZ):\n Aofo = []\n for ZfUD in IqQl:\n Aofo.append(ZfUD[iVRZ])\n return Aofo", "def iYZ_(fvDH, hcfj):\n Aofo = []\n for U6D_ in hcfj:\n Aofo.append(U6D_[fvDH])\n return Aofo", "def HfTe(nPrm, d6pt):\n JN9H = [ZfUD[d6pt] for ZfUD in nPrm]\n return JN9...
[ "0.7447367", "0.7357187", "0.7300427", "0.71880907", "0.6986862", "0.6986862", "0.66469055", "0.65741885", "0.65656555", "0.6552385", "0.6499409", "0.64946187", "0.64922565", "0.64645493", "0.6464531", "0.6460609", "0.64421326", "0.638039", "0.63803357", "0.6361551", "0.63083...
0.67981845
6
Returns a list of indices where an item can be found within a given list.
def d6pt(nPrm, ZfUD): return [YRbF for YRbF, WKvO in enumerate(nPrm) if WKvO == ZfUD]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neBz(M1i2, LihS):\n return [[YRbF for YRbF, WKvO in enumerate(M1i2) if tTpl in WKvO] for tTpl in LihS]", "def TBFZ(xpKR: list, oMB_: List[int], Ty9i: object) -> x1iM[int]:\n _0VL = []\n for YRbF in range(len(xpKR)):\n if xpKR[YRbF] == Ty9i and YRbF in oMB_:\n _0VL.append(YRbF)\n ...
[ "0.7577211", "0.7542054", "0.7158514", "0.7143028", "0.71228725", "0.7014826", "0.69086224", "0.69046694", "0.68631536", "0.68258387", "0.6792179", "0.6771747", "0.67237175", "0.6700524", "0.6680473", "0.65922433", "0.6576477", "0.6576244", "0.6560729", "0.6549121", "0.653021...
0.62326264
39
Identifies the most recent common ancestor of two objects. Accepts either leaf or node objects.
def cevy(YKHO, iH01, gM9S): Xvch = iH01 r9gC = gM9S EaGF = {} swsU = {} while Xvch.parent != None: Xvch = Xvch.parent EaGF[Xvch.index] = Xvch while r9gC.parent != None: r9gC = r9gC.parent swsU[r9gC.index] = r9gC if EaGF.has_key(r9gC.index): H5e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wlam(YKHO, i4Va, rUTj):\n jtyf = [YKHO.root] + YKHO.trace(YKHO.root, i4Va)\n V70B = [YKHO.root] + YKHO.trace(YKHO.root, rUTj)\n return [exwG for exwG in jtyf if exwG in V70B][-1]", "def GUVG(gtqQ, GFxT, tk5Y):\n yIW5 = []\n XXB5 = []\n S0gq = tk5Y\n if not tk5Y:\n return []\n w...
[ "0.7344732", "0.7316979", "0.7209405", "0.71385074", "0.7007525", "0.6898848", "0.6864167", "0.6823855", "0.67495304", "0.6710451", "0.6692419", "0.6613853", "0.65905845", "0.65849465", "0.6533385", "0.6481354", "0.6371507", "0.63414717", "0.6301359", "0.62960523", "0.6254207...
0.0
-1
Converts a list of numbers into the compact representation of the numbers. >>> compact_frame_range([1, 2, 3, 4]) '14' >>> compact_frame_range([1, 2, 5, 3]) '13 5' >>> compact_frame_range([1, 2, 5, 7, 8, 9]) '12 5 79'
def H6iA(VIPT: Sequence[int]): xYvp = sorted(VIPT) e27C = [] YRbF = 0 while YRbF < len(VIPT): UHFx = 0 while YRbF + UHFx < len(xYvp) and xYvp[YRbF] + UHFx == xYvp[YRbF + UHFx]: UHFx = UHFx + 1 e27C.append(str(xYvp[YRbF]) + ('' if UHFx == 1 else '-' + str(xYvp[YRbF] + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LZTU(mSrU):\n Qx72 = []\n yKcO = mSrU[0]\n Os4s = mSrU[0]\n for YRbF in range(1, len(mSrU)):\n if mSrU[YRbF] - mSrU[YRbF - 1] == 1:\n Os4s = mSrU[YRbF]\n else:\n if yKcO == Os4s:\n Qx72.append(str(yKcO))\n else:\n Qx72.app...
[ "0.64582485", "0.5530384", "0.5501528", "0.54919165", "0.5298317", "0.52880013", "0.52823395", "0.5277347", "0.51792127", "0.5140087", "0.49769038", "0.4976159", "0.49678758", "0.49622348", "0.49276775", "0.4911165", "0.4875391", "0.48506027", "0.48394534", "0.48359835", "0.4...
0.74773276
0
Get all models built in this project
def Dwrj(): GPtr = tgzD() return list(GPtr['models'].keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izSj():\n return eLIH", "def ArHU(YKHO) -> x1iM[str]:\n pass", "def FYrf(YKHO):\n return YKHO._models", "def FYrf(YKHO) -> x1iM[str]:\n return []", "def ArHU(YKHO) -> list:\n return YKHO.messenger.model_listing()", "def FYrf(YKHO):\n return YKHO._models", "def Dwrj(YKHO):\n FYr...
[ "0.7830786", "0.77453697", "0.76963323", "0.7569531", "0.7561682", "0.75137365", "0.7486569", "0.74812746", "0.7387627", "0.7326495", "0.7324253", "0.72854483", "0.72460115", "0.7245982", "0.7244354", "0.7236066", "0.7235828", "0.72353154", "0.7222939", "0.71936315", "0.71298...
0.75819916
3
Checks if name contains first, middle and last names
def Zt4Y(mWFP: str): if len(mWFP.split(' ')) < 3: raise UAju.NotFullNameException('Please enter your full name including your first, middle and last names') return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hAOr(YKHO):\n syah = e1yb('wolfgang', 'mozart', 'amadeus')\n YKHO.assertEqual(syah, 'Wolfgang Amadeus Mozart')", "def Ypw4(YKHO):\n syah = e1yb('odin', 'elperro', 'perro')\n YKHO.assertEqual(syah, 'Odin Perro Elperro')", "def hAOr(YKHO):\n syah = e1yb('nelson', 'ripoll', 'richard')\n YKHO...
[ "0.76473176", "0.76416904", "0.7568388", "0.75281763", "0.7427674", "0.7415858", "0.73784953", "0.7376796", "0.7324737", "0.72557455", "0.7215106", "0.7081813", "0.7073603", "0.70066273", "0.69939953", "0.6973254", "0.6911854", "0.6911854", "0.6892646", "0.6882884", "0.688112...
0.61810225
73
Get the path to a particular resource group
def crrl(YKHO, kFeU): return Hy7s.path.join(YKHO.get_fs_resource_root(), kFeU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F9GP(yqOM, mWFP):\n PcW4 = e0IN(yqOM, mWFP)\n return PcW4.split('/')[4]", "def NnZd(YKHO):\n pass", "def U7du(uOe2, pmON):\n y0Da = uOe2.context\n pmON = pmON.format(**uOe2.get_patterns())\n pmON = Hy7s.path.expanduser(pmON)\n if Hy7s.path.isabs(pmON):\n if pmON.endswith(Hy7s.pa...
[ "0.74067265", "0.7063262", "0.6901332", "0.682543", "0.682543", "0.682543", "0.682543", "0.682543", "0.682543", "0.682543", "0.682543", "0.682543", "0.682543", "0.6791816", "0.6730529", "0.6730529", "0.6730529", "0.6730529", "0.6730529", "0.6730529", "0.6730529", "0.6730529...
0.0
-1
Method to determine the height of a given binary tree.
def H2v2(tk5Y): if tk5Y is None: return -1 return max(H2v2(tk5Y.left), H2v2(tk5Y.right)) + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x7yD(J_Es):\n if J_Es is None:\n return -1\n uu_g = x7yD(J_Es.left)\n EV81 = x7yD(J_Es.right)\n H2v2 = max(uu_g, EV81) + 1\n return H2v2", "def H2v2(YKHO):\n\n def Uk87(tlxW):\n \"\"\"\n Helper function\n :param top: BSTNode\n :return: int\n ...
[ "0.8433892", "0.8277926", "0.82687885", "0.8264242", "0.8264242", "0.82074517", "0.81596434", "0.8144409", "0.81318045", "0.81102884", "0.81074923", "0.8081776", "0.8068482", "0.79736686", "0.7967838", "0.78106266", "0.78091276", "0.78008074", "0.7781812", "0.77757025", "0.77...
0.7584357
38
Return the kwargs to create a copy of the instance.
def foPr(YKHO, **B2fa): return super()._copy_kwargs(source=YKHO._source, loaded_from_path=YKHO._loaded_from_path, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B2fa(YKHO):\n return YKHO._kwargs.copy()", "def jth9(YKHO, **B2fa):\n azoT = vars(YKHO).copy()\n azoT.update(B2fa)\n return YKHO.__class__(**azoT)", "def foPr(t8sT):\n return jth9.copy(t8sT)", "def i3ak(YKHO, **B2fa):\n YFsy = YKHO.__class__()\n YFsy.options = YKHO.options.push(B2fa)...
[ "0.78636557", "0.77898484", "0.7718133", "0.7535677", "0.75010234", "0.7499284", "0.727163", "0.72190475", "0.7022741", "0.69617885", "0.6958677", "0.6929943", "0.6923637", "0.6916696", "0.69009054", "0.6867841", "0.68674684", "0.6852755", "0.68490654", "0.68428195", "0.68282...
0.75543153
3
Return True if the value is a valid email
def d8RH(BWXx): if ZbWC.match('^[^@]+@[^@]+\\.[^@]+', BWXx): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xxbx(BWXx: str) -> bool:\n if ZbWC.match(yoSF, str(BWXx)):\n return True\n else:\n return False", "def GfdN(BWXx):\n return True if SIHQ.match(BWXx) else False", "def gqOy(BWXx, **B2fa):\n try:\n BWXx = _FIc.email(BWXx, **B2fa)\n except SyntaxError as error:\n rai...
[ "0.85248965", "0.8433465", "0.84235823", "0.8250437", "0.8091563", "0.8087018", "0.8067053", "0.80589074", "0.80413395", "0.8004543", "0.7975178", "0.79534674", "0.78938836", "0.78780514", "0.7874265", "0.78644204", "0.78602654", "0.7837031", "0.7801198", "0.7747497", "0.7746...
0.83566236
3
Return ecas user's email.
def NiwR(YKHO, wvnM): if YKHO.internalMapping: AWrH = YKHO.getEcasIDUser(wvnM) if AWrH: return AWrH.email else: return 'Internal ECAS mapping disabled'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RC0X(YKHO):\n CBIr = getattr(YKHO, YKHO.USER_FIELD)\n return CBIr.get_email()", "def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')", "def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')", "def D3lj(YKHO):\n return YKHO._user_dat['email']", "async def email(YKHO):\n ...
[ "0.88163984", "0.8807261", "0.8807261", "0.85968906", "0.8476738", "0.847595", "0.845345", "0.84518856", "0.83730775", "0.8333531", "0.82652503", "0.8248273", "0.824543", "0.8229059", "0.8212382", "0.8187074", "0.8178759", "0.79996276", "0.79996276", "0.79996276", "0.7985436"...
0.78347003
35
Converts api endpoint to mTLS endpoint. Convert ".sandbox.googleapis.com" and ".googleapis.com" to ".mtls.sandbox.googleapis.com" and ".mtls.googleapis.com" respectively.
def Bvbt(I6gc): if not I6gc: return I6gc Nfcn = ZbWC.compile('(?P<name>[^.]+)(?P<mtls>\\.mtls)?(?P<sandbox>\\.sandbox)?(?P<googledomain>\\.googleapis\\.com)?') r8hN = Nfcn.match(I6gc) mWFP, e3iS, TtgT, lhgC = r8hN.groups() if e3iS or not lhgC: return I6gc if TtgT: return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gn8I(Emd4, FbeO: Optional[client_options_lib.ClientOptions]=None):\n if FbeO is None:\n FbeO = ZbB_.ClientOptions()\n fRRL = Hy7s.getenv('GOOGLE_API_USE_CLIENT_CERTIFICATE', 'false')\n eU_O = Hy7s.getenv('GOOGLE_API_USE_MTLS_ENDPOINT', 'auto')\n if fRRL not in ('true', 'false'):\n rai...
[ "0.5710207", "0.5710207", "0.5710207", "0.5710207", "0.52712595", "0.52172863", "0.5211772", "0.519896", "0.51021284", "0.50844496", "0.49965182", "0.49170417", "0.49149403", "0.4886391", "0.48581985", "0.48531377", "0.48423848", "0.4804833", "0.47967434", "0.47613013", "0.47...
0.7549644
0
Creates an instance of this client using the provided credentials file.
def eWUZ(Emd4, Ux0P: str, *qIxc, **B2fa): Vt89 = zOZf.Credentials.from_service_account_file(Ux0P) B2fa['credentials'] = Vt89 return Emd4(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adK6(Emd4, *, bD7m: str, NtEF: Union[str, StrStorage], jTXt: Union[str, StrStorage], emKz: Optional[FileTransfer]=None) -> i9zE:\n return i9zE(client=WX3b.from_credentials(url=bD7m, username=NtEF, password=jTXt), file_transfer=emKz)", "def vuB2(Nu1S=None, QpfX=None, mwuo=None, MYjm=None, QDug=None, NtEF=N...
[ "0.7249915", "0.7053171", "0.68975395", "0.68081045", "0.6802571", "0.6738844", "0.67199385", "0.6675532", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6646984", "0.6643617", "0.6623292", ...
0.66432035
20