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
Test that the username field is unique.
def MXK5(YKHO): fGmO = 'EC2R 8AH' CBIr = mv1M.objects.create_user(username='testusername', email='test@test.com', password='test123', first_name='test', last_name='username') qT6Z = BFpK(user=CBIr, postcode=fGmO) qT6Z.save() kIIA = BFpK(user=CBIr, postcode=fGmO) YKHO.assertRaises(sUXu, kIIA.save...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OmTV(YKHO):\n x0hE = iJSR()\n geh0 = x0hE.post(gxEw('create-account'), YKHO.user1, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n geh0 = x0hE.post(gxEw('create-account'), YKHO.user1, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)\n ...
[ "0.8169013", "0.78831977", "0.7857638", "0.7848006", "0.78425545", "0.783968", "0.7814686", "0.77582544", "0.7681706", "0.767609", "0.76420015", "0.76222795", "0.76157176", "0.7595075", "0.75900936", "0.75893575", "0.7562834", "0.7552611", "0.7508421", "0.7434448", "0.7411023...
0.78886557
1
Test that the database can store a decimal rating.
def FWza(YKHO): fGmO = 'EC2R 8AH' bbT_ = 2.5 SGll = BFpK(user=mv1M.objects.create_user(username='testrating', email='test@test.com', password='test123', first_name='test', last_name='rating'), postcode=fGmO, rating=bbT_) SGll.save() YKHO.assertEqual(bbT_, SGll.rating)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jyhc(YKHO):\n pass", "def bUEQ(YKHO):\n YKHO.assertEqual(YKHO.m.rating, 5)", "def V9oY(YKHO):\n ZrNc = mv1M.objects.create_user(username='username', password='password')\n B1q9 = M0p4.objects.create(account=ZrNc, phone_number=12345, vehicle_type='M', profile_photo='/drivers/tests/sample.jpg')\n...
[ "0.7127632", "0.70225805", "0.6898037", "0.6743201", "0.6603639", "0.65742326", "0.6552754", "0.6496926", "0.6496081", "0.6487512", "0.6412529", "0.6397241", "0.6378142", "0.6358354", "0.6349065", "0.6343973", "0.63416743", "0.6339719", "0.63045895", "0.63043666", "0.6281267"...
0.7800891
0
Test that the database stores a valid number.
def ZVRe(YKHO): fGmO = 'EC2R 8AH' wwt5 = '02079304832' SGll = BFpK(user=mv1M.objects.create_user(username='testphonenumber', email='test@test.com', password='test123', first_name='test', last_name='phonenumber'), postcode=fGmO, phone=wwt5) SGll.save() YKHO.assertEqual(wwt5, SGll.phone)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R2pM(FGW3):\n if sum([1 for tTpl in h7by if tTpl in FGW3]) > 0:\n return False\n else:\n return True", "def R2pM(FGW3):\n if sum([1 for tTpl in h7by if tTpl in FGW3]) > 0:\n return False\n else:\n return True", "def Dnqj(YKHO):\n YKHO.assertFalse(kYUf(YKHO.num3))\...
[ "0.7058501", "0.7058501", "0.6812656", "0.672719", "0.65739304", "0.65614825", "0.6449807", "0.644062", "0.6438831", "0.64163375", "0.6414064", "0.6363557", "0.632142", "0.63140893", "0.6309676", "0.6288016", "0.6264372", "0.62608624", "0.6245991", "0.62429947", "0.623204", ...
0.61679125
28
Test that the categories are different if their title is different.
def x91F(YKHO): t3Zk = qZuN(title='Test1') NSyJ = qZuN(title='Test2') YKHO.assertNotEqual(t3Zk, NSyJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNZ3(YKHO):\n t3Zk = qZuN(title='Test1')\n t3Zk.save()\n NSyJ = qZuN(title='Test1')\n YKHO.assertRaises(sUXu, NSyJ.save)", "def SLdP(YKHO):\n YKHO.app.add_category('testthree')\n YKHO.app.delete_category('testthree')\n YKHO.assertFalse('testthree' in YKHO.app.get_categories())", "def e...
[ "0.68768424", "0.6487509", "0.6275476", "0.6257735", "0.623746", "0.6197572", "0.6161105", "0.61354643", "0.61098653", "0.60935175", "0.6075874", "0.6070788", "0.60566676", "0.6012801", "0.60033256", "0.59849954", "0.59742785", "0.59561586", "0.59163713", "0.5896181", "0.5894...
0.8134793
0
Test that if the item does not exist, the view raises a 404.
def TcrM(YKHO): bYpv = '71c0baa2-aab8-4880-86e2-3d4f0b65e585' geh0 = YKHO.client.get(gxEw('tailored:show_item', kwargs={'itemID': bYpv})) YKHO.assertEqual(404, geh0.status_code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(ZfUD):\n return (TvZl('item_not_found.html', item=ZfUD), 404)", "def gEvm(YKHO):\n geh0 = YKHO.app.get('/items/100')\n assert geh0.status_code == 404", "def SFO9(QePW):\n raise uhgT", "def rbxv(QePW):\n QePW.response.status = 404\n return {}", "def c2kx(YKHO):\n _sei = 0\n ...
[ "0.83223027", "0.78250283", "0.75939035", "0.75639635", "0.75318116", "0.74618286", "0.7375315", "0.73500127", "0.73347527", "0.72858834", "0.72379315", "0.7230366", "0.7224456", "0.72000116", "0.71970683", "0.7184126", "0.71686393", "0.7145961", "0.71352464", "0.7120296", "0...
0.8484519
0
Test that if the item does not exist, the view raises a 404.
def SsSa(YKHO): geh0 = YKHO.client.get(gxEw('tailored:show_seller_profile', kwargs={'seller_username': 'test'})) YKHO.assertEqual(404, geh0.status_code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TcrM(YKHO):\n bYpv = '71c0baa2-aab8-4880-86e2-3d4f0b65e585'\n geh0 = YKHO.client.get(gxEw('tailored:show_item', kwargs={'itemID': bYpv}))\n YKHO.assertEqual(404, geh0.status_code)", "def o3cf(ZfUD):\n return (TvZl('item_not_found.html', item=ZfUD), 404)", "def gEvm(YKHO):\n geh0 = YKHO.app.g...
[ "0.8484519", "0.83223027", "0.78250283", "0.75939035", "0.75639635", "0.75318116", "0.74618286", "0.7375315", "0.73500127", "0.73347527", "0.72858834", "0.72379315", "0.7230366", "0.7224456", "0.72000116", "0.71970683", "0.7184126", "0.71686393", "0.7145961", "0.71352464", "0...
0.0
-1
This method computes the Hessian matrix of each equality constraint individually, rather than the sum of Hessians times multipliers.
def kUCL(YKHO): K9NE = YKHO._nlp WKvO = YKHO.input_vars LVAh = YKHO.external_vars eHNT = YKHO.residual_cons Oa1e = YKHO.external_cons Fc15 = K9NE.extract_submatrix_jacobian(WKvO, eHNT) Ff_l = K9NE.extract_submatrix_jacobian(LVAh, eHNT) FF1C = YKHO.evaluate_jacobian_external_variables() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def crm0(YKHO):\n AAzP = YKHO.evaluate_hessians_of_residuals()\n mf_s = YKHO.residual_con_multipliers\n MCOv = sum((hObQ * SppC for hObQ, SppC in zip(mf_s, AAzP)))\n o7sj = zabH(MCOv)\n return Zi12.tril(o7sj)", "def OAFk(YKHO, *qIxc):\n return jCDq.FEmTool_ElementaryCriterion_Hessian(YKHO, *qIx...
[ "0.736462", "0.69049704", "0.6682297", "0.6659581", "0.6533049", "0.6528501", "0.6478902", "0.6473423", "0.64671636", "0.6357631", "0.6354673", "0.6331996", "0.6329271", "0.6315213", "0.62988603", "0.62859285", "0.6273216", "0.62636346", "0.62636346", "0.62573415", "0.6254708...
0.6706091
2
Save json to file.
def U1ai(XgSV, wX0i): with open(wX0i, 'w') as _RR0: qQXR.dump(XgSV, _RR0, sort_keys=False, indent=4) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZMos(YKHO):\n with open(YKHO.file, 'w') as _RR0:\n qQXR.dump(YKHO.fileContent, _RR0, sort_keys=True, indent=4)", "def xkzz(YKHO):\n YGFP = YKHO.to_dict()\n with open(YKHO.filename, 'w', encoding='utf8') as wM3v:\n qQXR.dump(YGFP, wM3v, indent=4)", "def U1ai(YKHO, nPrm):\n with ope...
[ "0.84094614", "0.8326539", "0.82617724", "0.82404584", "0.82157737", "0.82002836", "0.81909734", "0.8164269", "0.8164269", "0.8164269", "0.8148435", "0.81447864", "0.81277", "0.8085556", "0.8063937", "0.8050851", "0.80243695", "0.7995307", "0.7995307", "0.79896027", "0.798384...
0.76754606
63
Create filename for backup file.
def eYna(): pKv0 = 'backup/' S6cj = str(qcWV.date.today()).replace('-', '') MzB9 = [eHNT for eHNT in Hy7s.listdir(pKv0) if Hy7s.path.isfile(Hy7s.path.join(pKv0, eHNT))] for YRbF in range(100): RtNK = S6cj + '_' + str(YRbF).zfill(3) Gpxr = 'initial_data_backup_' + RtNK + '.json' i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def loba(mWFP):\n if not mWFP:\n _c1T = qcWV.datetime.today().strftime('%Y-%m-%d')\n return '/tmp/backup-{}.tar.gz.gpg'.format(_c1T)\n elif Hy7s.path.isdir(mWFP):\n _c1T = qcWV.datetime.today().strftime('%Y-%m-%d')\n mWFP = mWFP.rstrip('/')\n return '{}/backup-{}.tar.gz.gpg...
[ "0.8128274", "0.8054322", "0.77825767", "0.77533066", "0.7681478", "0.74060154", "0.740449", "0.7372473", "0.73456466", "0.73030984", "0.727937", "0.727214", "0.7262525", "0.724847", "0.72224873", "0.7217047", "0.72003335", "0.7186477", "0.714755", "0.71470046", "0.7137672", ...
0.79377407
2
Returns all the prime factors of a positive integer
def uBVK(exwG): Llmz = [] Csk6 = 2 while exwG > 1: while exwG % Csk6 == 0: Llmz.append(Csk6) exwG /= Csk6 Csk6 = Csk6 + 1 return Llmz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uBVK(exwG: int) -> list:\n ZgWQ = []\n while exwG % 2 == 0:\n ZgWQ.append(2)\n exwG = int(exwG / 2)\n for YRbF in range(3, int(epAf.sqrt(exwG)) + 1, 2):\n while exwG % YRbF == 0:\n ZgWQ.append(YRbF)\n exwG = int(exwG / YRbF)\n if exwG > 2:\n ZgWQ.ap...
[ "0.8344955", "0.821398", "0.820775", "0.81873024", "0.8185039", "0.81585824", "0.81418306", "0.81402606", "0.8117796", "0.8115476", "0.81149673", "0.81007606", "0.8098441", "0.8097519", "0.8087952", "0.80615395", "0.806103", "0.806103", "0.806083", "0.80596936", "0.8057257", ...
0.8051624
21
Create an Nbin discrete colormap from the input map
def HX90(ywwl, j9kp=None): P8oC = QrM1.cm.get_cmap(j9kp) F4JO = P8oC(oyIN.linspace(0, 1, ywwl)) em8M = P8oC.name + str(ywwl) return P8oC.from_list(em8M, F4JO, ywwl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmzj(exwG, iMGt):\n RFG3 = [iMGt(YRbF) for YRbF in range(iMGt.N)]\n RFG3[0] = (0, 0, 0, 1.0)\n iMGt = iMGt.from_list('discrete-cmap', RFG3, exwG)\n iMGt = [iMGt(YRbF) for YRbF in range(iMGt.N)]\n return iMGt", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN...
[ "0.75380796", "0.7250218", "0.7240079", "0.72183996", "0.7214751", "0.7062487", "0.706151", "0.70173734", "0.697593", "0.697593", "0.697593", "0.6972705", "0.6962587", "0.6940316", "0.693275", "0.69240195", "0.69240195", "0.6917173", "0.6917173", "0.6917173", "0.6917173", "...
0.7296761
1
........Saves json string to output directory.
def v2Du(YKHO, maKa, IznC, nMY2, tSrk): assert type(nMY2) == str, 'json must be a string' if not LR7z(YKHO.OUTPUT_ANN_DIR): try: eviw(YKHO.OUTPUT_ANN_DIR) except OSError: print('Creation of the directory {} failed'.format(YKHO.OUTPUT_ANN_DIR)) SejU = gzes(YKHO.OUTPUT_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1ai(n80H, qQXR):\n with open(n80H, 'w') as CQmM:\n ZePR.dump(qQXR, CQmM, indent=4)", "def FGN8(YKHO):\n hz11 = qQXR.dumps({'directories': YKHO.directories, 'libFiles': YKHO.libFiles})\n with open(YKHO.saveFilePath, 'w') as D2fd:\n D2fd.write(hz11)", "def gZox(YKHO, pmON=None):\n ...
[ "0.8034461", "0.80050826", "0.78512347", "0.76508003", "0.74857175", "0.7440822", "0.7413501", "0.7381601", "0.7369914", "0.7338875", "0.7336597", "0.7304466", "0.72689307", "0.7263854", "0.7262413", "0.7251674", "0.7246321", "0.7219567", "0.71989506", "0.7179716", "0.7155562...
0.0
-1
Create a multi node stacked RNN link from a Chainer stacked RNN link. Multi node stacked RNN link is used for modelparallel. The created link will receive initial hidden states from the process specified by ``rank_in`` (or do not receive if ``None``), execute the original RNN compuation, and then send resulting hidden ...
def kwOe(pImL, USaL, g_b9=None, i9sh=None): F1PJ.utils.experimental('chainermn.links.create_multi_node_n_step_rnn') return MmZP(pImL, USaL, g_b9, i9sh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wum8(YKHO, Iqhy):\n super(YESl, YKHO).add_link(Iqhy)\n if Iqhy.to_fn and Iqhy.attr['direction'] == 'outward' or (not Iqhy.to_fn and Iqhy.attr['direction'] == 'inward'):\n assert isinstance(Iqhy.vn, MCzk) and len(Iqhy.vn.ran_vars) == 1", "def AIro(YKHO, **B2fa):\n return YKHO._newfeature(Rkv8,...
[ "0.5431199", "0.54144496", "0.5236513", "0.50935245", "0.4967291", "0.49610814", "0.49406064", "0.489649", "0.48894498", "0.4830911", "0.48211917", "0.48021227", "0.47873864", "0.47847164", "0.4780919", "0.47762904", "0.4765572", "0.47622806", "0.47618216", "0.47596067", "0.4...
0.6970341
0
(str) > list of str Return a list of strings based on a sentence in which all punctuation in each word is removed Inner punctuation is left intact >>> pure_words('Happy Birthday!!!') ['happy', 'birthday'] >>> pure_words("> It's on your lefthand side.") ["it's", 'on', 'your', 'lefthand', 'side']
def Cry4(yAmx): NZzQ = Sgc0(yAmx.split()) Aofo = [] for V22M in NZzQ: Aofo.append(WoCN(V22M)) Aofo = Sgc0(Aofo) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TiMP(YKHO, V22M):\n if isinstance(V22M, list):\n g68O = []\n for GIN8 in V22M:\n zmME = ZbWC.sub('[^\\\\w\\\\s]', '', GIN8)\n if zmME != '':\n g68O.append(zmME)\n return g68O\n elif isinstance(V22M, str):\n return ZbWC.sub('[^\\\\w\\\\s]', ...
[ "0.76114804", "0.75225997", "0.74770814", "0.74652857", "0.74652857", "0.74652857", "0.7419189", "0.7419189", "0.7419189", "0.7419189", "0.7419189", "0.72943455", "0.7235263", "0.72202", "0.72199804", "0.7219939", "0.7193056", "0.7142283", "0.7118673", "0.7092109", "0.7091079...
0.801045
0
Instead of returning a QuerySet, use SpecializedQuerySet instead
def wc3e(YKHO): return ctuC(YKHO.model)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wc3e(YKHO):\n return YKHO.get_queryset()", "def SI9R(YKHO):\n return super(ZYvt, YKHO)._get_objs()", "def all(Emd4) -> ZYvt:\n return ZYvt(Emd4)", "def wc3e(YKHO):\n return YKHO.get_queryset()", "def pi1E(Emd4) -> ZYvt:\n return Emd4.objects.all()", "def pi1E(Emd4) -> ZYvt:\n return...
[ "0.72526306", "0.7162097", "0.7065769", "0.7062631", "0.70246977", "0.70246977", "0.7004187", "0.6857155", "0.68300575", "0.681301", "0.681301", "0.67954", "0.67697054", "0.6705859", "0.67043", "0.6636762", "0.6618186", "0.6614599", "0.6577939", "0.65753525", "0.6552682", "...
0.8105264
0
Override get to ensure a specialized model instance is returned.
def NMoC(YKHO, *qIxc, **B2fa): if 'specialization_type' in B2fa: Gn_r = B2fa.pop('specialization_type') else: try: Gn_r = super(ctuC, YKHO).filter(*qIxc, **B2fa).values_list('specialization_type', flat=True)[0] except IndexError: raise YKHO.model.DoesNotExist('%s ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n return C3ST", "def NMoC(Emd4, **B2fa: dict) -> 'Meta.Model':\n return Emd4.Meta.model.objects.get(**B2fa)", "def YrZb(YKHO) -> object:\n raise NotImplementedError()", "def YrZb(YKHO, H5ew):\n try:\n C3ST = super().get_model(H5ew)\n return C3ST\n except RuntimeEr...
[ "0.7391613", "0.72744", "0.7148772", "0.70160747", "0.68938094", "0.68753004", "0.6842996", "0.68070906", "0.67859", "0.67420983", "0.6656635", "0.66546655", "0.6598813", "0.65985906", "0.65851974", "0.6572114", "0.65366316", "0.65306157", "0.6517545", "0.6506052", "0.6481291...
0.7006887
4
Returns a SpecializedQuerySet from a BaseGeneralizedModel subclass, SpecializationManager, or SpecializedQuerySet.
def gWcE(rV9y): from djeneralize.manager import SpecializationManager from djeneralize.query import SpecializedQuerySet if isinstance(rV9y, SpecializedQuerySet): return rV9y elif isinstance(rV9y, SpecializationManager): p_z1 = rV9y else: p_z1 = rV9y._default_specialization_ma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wc3e(YKHO):\n return ctuC(YKHO.model)", "def oHE7(YKHO):\n wdCM = set(YKHO.query.extra.keys())\n w3zx = set((Jyyj.lstrip('-') for Jyyj in YKHO.query.order_by))\n osa6 = list(wdCM & w3zx)\n CDLO = ['specialization_type', 'id'] + osa6\n Vt5h = YKHO._clone().values(*CDLO)\n nKuR = oRi_(list...
[ "0.7881831", "0.65223587", "0.6416265", "0.60527724", "0.6043917", "0.6026763", "0.6021537", "0.5956599", "0.59304637", "0.5895303", "0.58740425", "0.586708", "0.58549136", "0.5846739", "0.57512856", "0.5701345", "0.56918883", "0.5673242", "0.5663401", "0.5649932", "0.5643931...
0.69718814
1
Uses get() to return an specializaed object, or raises a Http404 exception if the object does not exist. klass may be a BaseGeneralizedModel, SpecializationManager, or SpecializedQuerySet object. All other passed arguments and keyword arguments are used in the get() query.
def _Nve(rV9y, *qIxc, **B2fa): SR0I = gWcE(rV9y) try: return SR0I.get(*qIxc, **B2fa) except SR0I.model.DoesNotExist: raise uhgT('No %s matches the given query.' % SR0I.model._meta.object_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iofl(rV9y, *qIxc, **B2fa):\n SR0I = gWcE(rV9y)\n try:\n return SR0I.get(*qIxc, **B2fa)\n except SR0I.model.DoesNotExist:\n raise uhgT('No %s matches the given query.' % SR0I.model._meta.object_name)", "def NMoC(YKHO, *qIxc, **B2fa):\n if 'specialization_type' in B2fa:\n Gn_r ...
[ "0.7152801", "0.6535109", "0.63996786", "0.634296", "0.634296", "0.634296", "0.63084805", "0.6299832", "0.625485", "0.62173605", "0.6200512", "0.6190786", "0.6129324", "0.6078443", "0.60487556", "0.6048155", "0.60481435", "0.5984664", "0.5938268", "0.5898487", "0.58862835", ...
0.7964683
0
Factory to mask TypeError in metaclass for testing
def k77y(): class General(TRkb): pass class Specialized(x7Qt): pass return Ss4Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0we():\n with Xf84.raises(TypeError):\n qihE()", "def ICXm(YKHO):\n\n def mqzJ():\n return YKHO.Person('Test User', 42, name='Bad User')\n YKHO.assertRaises(TypeError, mqzJ)", "def fVLM(YKHO):\n XP5J = eva1()\n YKHO.assertRaises(acbC.TraitError, setattr, XP5J, 'foo', 1)\n Y...
[ "0.6709823", "0.6654253", "0.6492089", "0.64861155", "0.63757485", "0.63274676", "0.61970246", "0.61844283", "0.613447", "0.612679", "0.6124693", "0.60684323", "0.6054798", "0.60437226", "0.6021583", "0.6014522", "0.59625447", "0.5952228", "0.5945576", "0.5923234", "0.5918452...
0.0
-1
Factory to mask TypeError in metaclass for testing
def MmyK(): class General(TRkb): pass class Specialized(x7Qt): class Meta: SI3n = 'my_model' return Ss4Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0we():\n with Xf84.raises(TypeError):\n qihE()", "def ICXm(YKHO):\n\n def mqzJ():\n return YKHO.Person('Test User', 42, name='Bad User')\n YKHO.assertRaises(TypeError, mqzJ)", "def fVLM(YKHO):\n XP5J = eva1()\n YKHO.assertRaises(acbC.TraitError, setattr, XP5J, 'foo', 1)\n Y...
[ "0.6709823", "0.6654253", "0.6492089", "0.64861155", "0.63757485", "0.63274676", "0.61970246", "0.61844283", "0.613447", "0.612679", "0.6124693", "0.60684323", "0.6054798", "0.60437226", "0.6021583", "0.6014522", "0.59625447", "0.5952228", "0.5945576", "0.5923234", "0.5918452...
0.0
-1
Factory to mask ValueError in metaclass for testing
def Vfmm(): class General(TRkb): pass class Specialized(x7Qt): class Meta: Gn_r = 'Naughty specialization!' return Ss4Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FWVh(YKHO):\n with YKHO.assertRaises(e1Lq) as W6pw:\n w2Sl('a')\n YKHO.assertEqual(W6pw.exception.value_type, 'input')\n YKHO.assertEqual(W6pw.exception.actual_value, 'a')\n YKHO.assertEqual(W6pw.exception.expected_value, 'integer')\n YKHO.assertEqual(str(W6pw.exception), \"Unsupported va...
[ "0.6607895", "0.6536906", "0.6448734", "0.6190622", "0.6159643", "0.6152571", "0.611568", "0.6072151", "0.60424715", "0.60329956", "0.6029544", "0.60274357", "0.60061765", "0.60043615", "0.60041577", "0.599933", "0.59905005", "0.5985363", "0.5980735", "0.59744835", "0.5955587...
0.0
-1
Returns the number of live neighbours.
def xKYr(YKHO, LVAh, WKvO): UHFx = 0 if LVAh > 0: if YKHO.table[LVAh - 1][WKvO]: UHFx = UHFx + 1 if WKvO > 0: if YKHO.table[LVAh - 1][WKvO - 1]: UHFx = UHFx + 1 if YKHO.width > WKvO + 1: if YKHO.table[LVAh - 1][WKvO + 1]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LCix(YKHO):\n A_IW = YKHO.board.find_neighbors(YKHO)\n return sum([YKHO.board.get_cell(oeNL).status for oeNL in A_IW])", "def BvsR(YKHO):\n return YKHO._num_neighbors", "def BXrO(OUsw: list, _zM9: dict) -> int:\n Lvst = 0\n for AAbN in OUsw:\n if _zM9[AAbN] is not None:\n i...
[ "0.83733714", "0.77964085", "0.7667957", "0.7504318", "0.73318976", "0.7227748", "0.71943206", "0.7098867", "0.7090482", "0.7089298", "0.7024995", "0.6990445", "0.69823134", "0.69501626", "0.69361055", "0.6923832", "0.6906637", "0.69054514", "0.68975574", "0.6875143", "0.6851...
0.6605659
44
Constructor for the creation of a TICPMessageAllSensorData Object from Bytes. Use this Constructor to generate an Object out of a given Payload from the UART Interface. If you want to create an Messae Object out of given Data, use the from_sensor_values() Class Methode.
def FIMM(YKHO, pB3N: bytes): super(tPSw, YKHO).__init__(UlS_.RES_ALL_SENSOR_DATA_MSG, pB3N)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, bytes=None):\n pB3N = mUWO.Field('payload', len(bytes) * 8)\n mUWO.Packet.__init__(YKHO, [pB3N], bytes=bytes)\n YKHO.description = 'Data'\n YKHO.data = None", "def FIMM(YKHO, nPrm: bytes) -> None:\n if not isinstance(nPrm, bytes):\n raise TypeError('Invalid data')\n YKHO._...
[ "0.6379781", "0.6348765", "0.62376505", "0.6157822", "0.6141772", "0.60531306", "0.6048084", "0.601217", "0.59909356", "0.596072", "0.59584886", "0.595275", "0.59382606", "0.59108484", "0.590516", "0.587851", "0.5876971", "0.5875703", "0.58484185", "0.58257496", "0.57989573",...
0.7841336
0
Converts 8bit TOF Data to bytes. Throws ValueError if the given int is bigger than 255.
def GHUJ(qCIu: int) -> bytes: if qCIu <= 255: return qCIu.to_bytes(1, byteorder=HwRy.byteorder, signed=False) else: raise ValueError("Value of TOF1 is bigger than 255 and therefor can't be decoded to 1 Byte block")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KA36(EfNi, abwh='big'):\n return EfNi.to_bytes(max(1, pqtO(EfNi.bit_length(), 8)), abwh)", "def JA72(jqlT: int) -> bytes:\n if 0 <= jqlT <= 255:\n return jqlT.to_bytes(1, byteorder=HwRy.byteorder, signed=False)\n else:\n raise ValueError(\"Value of FSM Data is bigger than 255 and there...
[ "0.69352716", "0.68498033", "0.67647207", "0.66555256", "0.6620964", "0.6595071", "0.6543619", "0.6531126", "0.6515887", "0.6477903", "0.64689016", "0.6459992", "0.64421237", "0.64264715", "0.64049065", "0.6394563", "0.6393866", "0.6383901", "0.6378804", "0.63426775", "0.6341...
0.78713876
0
Determine whether a player can afford to assassinate.
def t1Gj(YKHO, LZbL: int) -> None: assert 0 <= LZbL < YKHO.get_n_players() return YKHO._players[LZbL].get_coins() >= XofI(None).cost
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ATH_(YKHO):\n return YKHO.player_allowed", "def i0KT(YKHO, oyg0):\n return oyg0.is_valid(mVZ4)", "def GRll(YKHO) -> bool:\n return YKHO.cooldown < 1", "def GRll(YKHO) -> bool:\n return YKHO.cooldown < 1", "def TMOi(Ilxn):\n if EaD_ == 0:\n return False\n return EaD_ - ql7k.PRIC...
[ "0.62895757", "0.621693", "0.6124712", "0.6124712", "0.6058797", "0.6058148", "0.60014004", "0.60007316", "0.5987503", "0.59322983", "0.5916256", "0.5906194", "0.5906194", "0.58918166", "0.5889707", "0.588498", "0.58526134", "0.5837575", "0.5835489", "0.58138347", "0.5807587"...
0.74322194
0
Build a json representation of the current state for a given player. Set unmask=True to return a representation with all characters revealed.
def CxW0(YKHO, LZbL: int=None, d6Dr: bool=False) -> str: assert not (LZbL is None and (not d6Dr)) RcY8 = {} RcY8['currentPlayer'] = YKHO._current_player_id RcY8['playerId'] = LZbL RcY8['players'] = [XP5J.get_json(mask=XP5J.get_id() != LZbL and (not d6Dr)) for XP5J in YKHO._players] return qQXR.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lY9Q(BH3N, tZxz):\n oyg0 = BH3N.players[tZxz]\n oyg0.playerId = tZxz\n oyg0.bonus = bvvx(oyg0)\n mfEH = oyg0.to_dict()\n mfEH['numPlayers'] = BH3N.numPlayers\n mfEH['curPlayer'] = tZxz\n mfEH['itemsCountRemaining'] = len(BH3N.itemDeck)\n mfEH['questsCountRemaining'] = len(BH3N.questDeck...
[ "0.6148459", "0.58614904", "0.56066763", "0.53491443", "0.53397787", "0.53078884", "0.52997714", "0.5278801", "0.5274137", "0.5273892", "0.5271151", "0.52203", "0.5217988", "0.5179418", "0.51341736", "0.51174265", "0.5102833", "0.5095251", "0.50925964", "0.50855803", "0.50634...
0.8167853
0
plt.subplot(2, 1, 2) plt.plot(solver.train_acc_history, 'o') plt.plot(solver.val_acc_history, 'o') plt.legend(['train', 'val'], loc='upper left') plt.xlabel('epoch') plt.ylabel('accuracy') plt.show()
def PsiB(ox54, HqmB, c1tf): QrM1.rcParams['figure.figsize'] = (10.0, 8.0) QrM1.rcParams['image.interpolation'] = 'nearest' QrM1.rcParams['image.cmap'] = 'gray' QrM1.plot(ox54, '-o') QrM1.plot(HqmB, '-o') QrM1.plot(c1tf, '-o') QrM1.xlabel('epoch') QrM1.ylabel('validation mcc score') Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rzaM(YbcW, YSue, vjyh):\n LZpg, MPlV = QrM1.subplots(2)\n ta2H = MPlV[0].plot(YbcW, label=' Train Loss')\n qTVs = MPlV[0].plot(YSue, label=' Test Loss')\n YuU8 = MPlV[1].plot(vjyh, label=' Test Accuracy')\n QrM1.xlabel(' Training Epoch')\n MPlV[0].legend()\n MPlV[1].legend()\n QrM1....
[ "0.83119607", "0.80934894", "0.80904734", "0.80188674", "0.79941833", "0.79885685", "0.79797006", "0.7912109", "0.78973013", "0.7897244", "0.78774816", "0.7864074", "0.7851835", "0.782136", "0.7810197", "0.7808946", "0.77985245", "0.7749747", "0.7738717", "0.77283776", "0.772...
0.0
-1
Reads a CSV file into Panda's data frame
def Nwr9(Ux0P): jQ3Z = rLdf.read_csv(Ux0P, sep=';', comment='#', na_values=['ERR', 'TO', 'MISSING']) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QFyr(u9X4) -> hxoQ:\n try:\n nPrm = rLdf.read_csv(u9X4)\n except Exception as e:\n print('read_csv_file failed: ', tTpl)\n raise\n return nPrm", "def SYt4(okC2):\n jQ3Z = rLdf.read_csv(okC2)\n return jQ3Z", "def ZK4F(YKHO, z36O):\n YKHO.dataframe = rLdf.read_csv(z36O,...
[ "0.8117736", "0.8096222", "0.79638445", "0.7936526", "0.78912574", "0.78804743", "0.78776866", "0.78120285", "0.7747512", "0.7729918", "0.7725582", "0.77180964", "0.77159375", "0.76718605", "0.76561594", "0.76485765", "0.7636145", "0.7635042", "0.76346827", "0.76259327", "0.7...
0.0
-1
Iterate over the unique, ordered elements of ``it``.
def kcwm(WhY1): return dict.fromkeys(WhY1).keys()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcwm(yv6U: Iteratable) -> HRJ_.Iterator[Kt_s]:\n OOFy = set()\n for LihS in yv6U:\n if LihS not in OOFy:\n OOFy.add(LihS)\n yield LihS", "def kcwm(oHE7):\n PwWw = set()\n for YRbF in oHE7:\n if YRbF in PwWw:\n na1r.debug('ignoring duplicate %r', YRbF...
[ "0.69891614", "0.68762046", "0.6868326", "0.6867756", "0.6701089", "0.6574934", "0.657188", "0.6497056", "0.6492742", "0.6483416", "0.64072824", "0.62828684", "0.62730795", "0.62496006", "0.61793584", "0.6163817", "0.61196375", "0.6111276", "0.61109656", "0.6097492", "0.60451...
0.6842402
4
Compute the result of this lazy node, first computing all lazy children.
def GvK6(YKHO): return YKHO.f(*(d7pR.compute() if isinstance(d7pR, nyZ4) else d7pR for d7pR in YKHO.args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eNvf(YKHO) -> a1PO.Iterator[tPEx]:\n yield YKHO\n for aUGN in YKHO.children:\n yield from aUGN.traverse()", "def eNvf(YKHO):\n if not YKHO.children:\n return [YKHO.val]\n Aofo = []\n for aUGN in YKHO.children.values():\n for ZfUD in aUGN.traverse():\n if YKHO.va...
[ "0.61331934", "0.6018716", "0.5951624", "0.59394425", "0.5904581", "0.5877375", "0.58444434", "0.5831741", "0.58071274", "0.5787656", "0.57658327", "0.57532465", "0.5745574", "0.5736817", "0.57365227", "0.5730379", "0.57172537", "0.5711338", "0.56947625", "0.56901747", "0.568...
0.63096356
0
A function to generate genesis block and appends it to the chain. The block has index 0, previous_hash as 0, and a valid hash.
def M3bq(YKHO): BZTK = n3Kt() BZTK.indice = 0 BZTK.transacciones = 'genesis' BZTK.fecha = ITS7.ctime(ITS7.time()) hash = YKHO.prueba_de_trabajo(BZTK) BZTK.set_hash(hash) YKHO.__cadena.append(BZTK) YKHO.controller.add_genesis(BZTK) YKHO.genesis = BZTK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RsZu(YKHO):\n BZTK = n3Kt(0, [], ITS7.time(), '0')\n BZTK.hash = BZTK.compute_hash()\n YKHO.chain.append(BZTK)", "def RsZu(YKHO):\n XkN1 = {'index': 1, 'timestamp': 0, 'transactions': [], 'proof': 42, 'previous_hash': 1}", "def _Pic():\n XkN1 = n3Kt(index=0, timestamp=qcWV.now(), data='Genes...
[ "0.8299752", "0.7755162", "0.7638583", "0.7613142", "0.7540473", "0.74778044", "0.7457216", "0.74503756", "0.743651", "0.74140227", "0.74140227", "0.73853856", "0.7343464", "0.7295358", "0.72668904", "0.720693", "0.7160115", "0.7142238", "0.71420825", "0.70896965", "0.7085210...
0.71560705
17
Replace underscores with dashes in a word. Examples >>> dasherize('puni_puni') 'punipuni'
def NmzD(GIN8): return GIN8.replace('_', '-')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUMU(BWXx: str) -> str:\n return BWXx.replace('-', '_')", "def nIop(l5Ny):\n return ZbWC.sub('[\\\\W_]+', '-', l5Ny)", "def x06z(GIN8, KoG3):\n M0p7 = list(set(GIN8) - set(KoG3))\n for YRbF in M0p7:\n GIN8 = GIN8.replace(YRbF, '_')\n return GIN8", "def QoZA(yAmx):\n yAmx = ZbWC.s...
[ "0.7672033", "0.7464838", "0.7288497", "0.72165936", "0.7161684", "0.7161684", "0.7145135", "0.70979846", "0.68742627", "0.6750031", "0.66964066", "0.6656727", "0.6597056", "0.655342", "0.64953274", "0.64912784", "0.64905846", "0.64438754", "0.64210373", "0.6409335", "0.63905...
0.89777493
0
Test if a set of slots is ready to be processed. By default, this methods checks that the slot set is complete, but an agent can overload it to have incomplete sets to processed anyway, for instance if one slot is not mandatory.
def pMO0(YKHO, FLFa): return len(FLFa) == len(YKHO._process_slots_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJ7Q(YKHO, ug2S):\n raise NotImplementedError('Must be implemented by subclass')", "def C46r(YKHO):\n for ZfUD in YKHO.slots:\n if YKHO.slots[ZfUD] == None:\n return True\n return False", "def DFYc():\n if len(kqoo()) < a5kX:\n return True", "def WwZM(YKHO, oQ6W):\n ...
[ "0.6703058", "0.6613775", "0.64333254", "0.6365892", "0.63648665", "0.63392055", "0.62865317", "0.6265298", "0.62288964", "0.6226319", "0.6213474", "0.61850077", "0.6144996", "0.61390966", "0.6125857", "0.6113385", "0.60865057", "0.6076374", "0.6053985", "0.60399485", "0.6019...
0.6907724
0
CARMA neg log likelihood function. This method will catch 'overflow/underflow' runtimeWarning and return inf as probablility.
def xUf1(d6n_, LVAh, U_NH): assert U_NH.kernel.p >= 2, 'Use neg_param_ll() instead!' P_tP = 'raise' oyIN.seterr(over=P_tP) oyIN.seterr(under=P_tP) ujKW = oyIN.inf try: U_NH.kernel.set_log_fcoeffs(d6n_) ujKW = -U_NH.log_likelihood(LVAh) except AnYw.solver.LinAlgError as c: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def psNE(YKHO):\n YKHO.trA = YKHO.sumstats.S @ YKHO.inv_cov\n YKHO.trB = YKHO.inv_cov_sum @ YKHO.trA.sum(axis=1)\n YKHO.tr = oyIN.trace(YKHO.trA) - YKHO.trB / YKHO.denom\n ut5U = YKHO.X + oyIN.diag(YKHO.sumstats.q)\n YKHO.det = oyIN.linalg.det(ut5U) * YKHO.graph.o / YKHO.denom\n Rhem = YKHO.sumst...
[ "0.71640843", "0.7121377", "0.7110245", "0.6906807", "0.68857354", "0.68267393", "0.67938536", "0.6731931", "0.66992944", "0.6669437", "0.66007036", "0.6594657", "0.6580989", "0.65470374", "0.65450877", "0.6517479", "0.6512682", "0.6489946", "0.64664954", "0.6465524", "0.6461...
0.62928355
36
CARMA neg log likelihood function. This method will catch 'overflow/underflow' runtimeWarning and return inf as probablility.
def kDg5(NArs, LVAh, U_NH): P_tP = 'raise' oyIN.seterr(over=P_tP) oyIN.seterr(under=P_tP) ujKW = oyIN.inf try: U_NH.set_parameter_vector(NArs) ujKW = -U_NH.log_likelihood(LVAh) except AnYw.solver.LinAlgError as c: pass except Exception as e: pass return uj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def psNE(YKHO):\n YKHO.trA = YKHO.sumstats.S @ YKHO.inv_cov\n YKHO.trB = YKHO.inv_cov_sum @ YKHO.trA.sum(axis=1)\n YKHO.tr = oyIN.trace(YKHO.trA) - YKHO.trB / YKHO.denom\n ut5U = YKHO.X + oyIN.diag(YKHO.sumstats.q)\n YKHO.det = oyIN.linalg.det(ut5U) * YKHO.graph.o / YKHO.denom\n Rhem = YKHO.sumst...
[ "0.7162829", "0.7118985", "0.7108016", "0.69052476", "0.68836445", "0.68244123", "0.6792545", "0.6730064", "0.6667831", "0.659801", "0.6593331", "0.6578499", "0.65442127", "0.65425193", "0.65151316", "0.650991", "0.648724", "0.6465935", "0.64647835", "0.64600945", "0.642965",...
0.66977525
8
Randomly generate DHO parameters from [8, 1] in log.
def SWg6(tpio): WFfu = oyIN.random.uniform(-5, 5, int(tpio)) return WFfu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J6sH():\n yYLf = oyIN.random.uniform(-10, 5, 1)[0]\n vVVG = oyIN.random.uniform(-10, 0, 1)[0]\n A8Zg = oyIN.random.uniform(-10, 0, 1)[0]\n b78R = oyIN.random.uniform(-10, 0, 1)[0]\n return oyIN.array([yYLf, vVVG, A8Zg, b78R])", "def pz1S(gqRb, ODP9, zNig=1):\n Mkmy = oyIN.exp(oyIN.random.un...
[ "0.71424264", "0.62090814", "0.6190624", "0.6164937", "0.61099976", "0.60967153", "0.60695827", "0.6050997", "0.6048811", "0.60333085", "0.6001286", "0.5977413", "0.596974", "0.595957", "0.58785385", "0.58535755", "0.5842985", "0.5794202", "0.57928395", "0.57867235", "0.57581...
0.6009212
10
Randomly generate DHO parameters from [8, 1] in log.
def WYQD(tpio): WFfu = oyIN.random.uniform(-6, 3, int(tpio)) return WFfu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J6sH():\n yYLf = oyIN.random.uniform(-10, 5, 1)[0]\n vVVG = oyIN.random.uniform(-10, 0, 1)[0]\n A8Zg = oyIN.random.uniform(-10, 0, 1)[0]\n b78R = oyIN.random.uniform(-10, 0, 1)[0]\n return oyIN.array([yYLf, vVVG, A8Zg, b78R])", "def pz1S(gqRb, ODP9, zNig=1):\n Mkmy = oyIN.exp(oyIN.random.un...
[ "0.71424264", "0.62090814", "0.6190624", "0.6164937", "0.61099976", "0.60967153", "0.60695827", "0.6050997", "0.6048811", "0.60333085", "0.6009212", "0.6001286", "0.5977413", "0.596974", "0.595957", "0.58785385", "0.58535755", "0.5842985", "0.5794202", "0.57928395", "0.578672...
0.5588912
37
Split a dict of variables up into sharded dummy variables.
def wI2u(kc1W, nJ0e, eval): ZrDu = {} WvZG = (list(kc1W.values())[0].size(0) - 1) // nJ0e + 1 mvI0 = [{} for bGrB in range(WvZG)] for G1Hx in kc1W: if isinstance(kc1W[G1Hx], iQnE) and kc1W[G1Hx].requires_grad: ZrDu[G1Hx] = iQnE(kc1W[G1Hx].data, requires_grad=not eval, volatile=eval) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def up0v(nPrm):\n BY56 = ['job', 'marital', 'education', 'default', 'housing', 'loan', 'contact', 'month', 'day_of_week', 'poutcome']\n for SRYB in BY56:\n pjtn = 'var' + '_' + SRYB\n pjtn = rLdf.get_dummies(nPrm[SRYB], prefix=SRYB)\n BZgl = nPrm.join(pjtn)\n nPrm = BZgl\n qz7Z...
[ "0.5934037", "0.540871", "0.54022837", "0.5339068", "0.53318495", "0.53137964", "0.52238387", "0.5213901", "0.5187919", "0.5174181", "0.5132431", "0.51276416", "0.5098823", "0.5048464", "0.50464934", "0.50314", "0.49914086", "0.49491212", "0.4940875", "0.49086532", "0.4904746...
0.6181348
0
Reads eset object and loads it into the experiment_hub as an attribute.
def itrD(YKHO, Kqk4): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itrD(Kqk4):\n pass", "def thE_(knAr):\n return t2lc.load(open(knAr, 'rb'))", "def Nwr9(nUeQ):\n if nUeQ in YKHO.experiment_hub.keys:\n m6_J = YKHO.read_csv()\n YKHO.experiment_hub.file = m6_J\n else:\n YKHO.esetReader.read_file(nUeQ)", "def xnsz(YKHO):\n Mkmy = fNjh()\...
[ "0.6323914", "0.57726824", "0.57725", "0.5428522", "0.5359939", "0.53369343", "0.53321004", "0.5331759", "0.53258514", "0.53226566", "0.52905023", "0.52271575", "0.5209705", "0.5177962", "0.5173909", "0.51673347", "0.5165319", "0.5164634", "0.51635176", "0.5160294", "0.515681...
0.6761671
0
Return the problem type. Returns
def krYj(YKHO): return YKHO.problem_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tKA5(YKHO):\n return YKHO._problem_type", "def tKA5(YKHO):\n return YKHO._problem_type", "def S5vz(YKHO):\n return jxQ2.getprobtype(YKHO._env._e, YKHO._lp)", "def tKA5(YKHO) -> avzv:\n vmCu = YKHO.json_dict.get('problem_type', None)\n return avzv(vmCu)", "def SeLS(tKA5):\n if isinstan...
[ "0.91596544", "0.91596544", "0.83865476", "0.8338297", "0.69295365", "0.6840023", "0.6786318", "0.6769289", "0.6769289", "0.6769289", "0.6690018", "0.66857046", "0.66857046", "0.66573167", "0.66227365", "0.6532765", "0.6532765", "0.6532765", "0.6532765", "0.6532765", "0.65327...
0.7485707
4
Recursively put desired batch norm in nn.module module. set module = net to start code.
def BxFw(yR_P, mWFP): for WhvP in dir(yR_P): w2EI = getattr(yR_P, WhvP) if type(w2EI) == ht2j.nn.BatchNorm2d: sfOe = ht2j.nn.BatchNorm2d(w2EI.num_features, w2EI.eps, w2EI.momentum, w2EI.affine, track_running_stats=False) setattr(yR_P, WhvP, sfOe) for mWFP, ggLJ in yR_P.na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pH1I(yR_P: nn.Module) -> U78l.Module:\n r6Jf = yR_P\n qgOe = [ht2j.nn.modules.batchnorm.SyncBatchNorm]\n if eNUj():\n from mmcv.ops import SyncBatchNorm\n qgOe.append(SyncBatchNorm)\n if isinstance(yR_P, tuple(qgOe)):\n r6Jf = SdKJ(yR_P.num_features, yR_P.eps, yR_P.momentum, yR...
[ "0.6906527", "0.6855755", "0.6781448", "0.6612123", "0.65559226", "0.655181", "0.6489351", "0.6447249", "0.641501", "0.6330769", "0.6319261", "0.62850523", "0.628483", "0.627593", "0.62534827", "0.6241549", "0.6217339", "0.6203031", "0.6163816", "0.61451644", "0.61411434", ...
0.7154843
0
Convert dict to dict with leafs only being strings. So it recursively makes keys to strings if they are not dictionaries.
def zLtj(cmPJ): if type(cmPJ) != dict: return str(cmPJ) Csk6 = {G1Hx: zLtj(Ty9i) for G1Hx, Ty9i in cmPJ.items()} return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V1i3(chwN):\n Xjhz = dict()\n for H5ew, BWXx in chwN.items():\n if isinstance(BWXx, dict):\n Xjhz[H5ew] = V1i3(BWXx)\n elif isinstance(BWXx, type):\n Xjhz[H5ew] = str(BWXx.__name__)\n else:\n Xjhz[H5ew] = str(BWXx)\n return Xjhz", "def ice4(Csk6)...
[ "0.73619145", "0.68184906", "0.67915803", "0.6607866", "0.65492934", "0.6385071", "0.6360709", "0.6360709", "0.63160694", "0.629595", "0.629595", "0.62640864", "0.6263348", "0.62216645", "0.6218358", "0.621717", "0.621466", "0.62027764", "0.61876005", "0.6182872", "0.61509186...
0.6354677
8
Find all entities in database. Returns list of found entities ordered by name ascending.
def rFRb(NCls): xDcj = 'SELECT description, id, info, ingredients, rating, serving_size, title, user_id FROM recipes ORDER BY title COLLATE NOCASE ASC' N1p7 = NCls.cursor() N1p7.execute(xDcj) Aofo = [] for rdlD in N1p7.fetchall(): Aofo.append(LC16.from_row(NCls, rdlD)) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def find_entities(mWFP):\n return [tTpl.key for tTpl in await UVYx.loosely_match(mWFP)]", "def rFRb(YKHO):\n return YKHO._entities.values()", "def pi1E(Emd4, *qIxc, **YSA3):\n N1p7 = Emd4.query.find(*qIxc, **YSA3)\n return [Csk6 for Csk6 in N1p7]", "def rFRb(Emd4) -> object:\n return Emd...
[ "0.6977089", "0.69633824", "0.6907982", "0.6677517", "0.6677517", "0.66035056", "0.65910983", "0.6565598", "0.6549153", "0.6514971", "0.65063256", "0.65044", "0.6498139", "0.64367265", "0.64259756", "0.63935596", "0.6380593", "0.63746", "0.631719", "0.63004607", "0.6293638", ...
0.5786932
84
Find entities by category in database or entities without category if category is None. Returns list of found entities ordered by name ascending.
def Y62e(NCls, Ghho): xDcj = 'SELECT description, id, info, ingredients, rating, serving_size, title, user_id FROM recipes WHERE id NOT IN (SELECT recipe_id FROM recipe_has_category) ORDER BY title COLLATE NOCASE ASC' NArs = [] if Ghho: xDcj = 'SELECT r.description, r.id, r.info, r.ingredients, r.ra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N38c(Emd4, Ghho):\n bo34.info('Processing category query for %s ...', Ghho)\n return Emd4.query.filter(Emd4.category == Ghho)", "def s5el(Ghho, rb7a=0):\n cvlc = [jzdc for jzdc in Ghho]\n mrVf = [jzdc for jzdc in cvlc if jzdc.namespace == _yzS]\n LeZt = [Z9rn for Z9rn in cvlc if Z9rn.namespace...
[ "0.6516739", "0.640255", "0.61927634", "0.61549604", "0.6039204", "0.58032966", "0.5745911", "0.5675739", "0.56436104", "0.5589937", "0.55609953", "0.54855967", "0.54844713", "0.5460904", "0.5442623", "0.54133326", "0.53670985", "0.5360627", "0.52975905", "0.52436453", "0.523...
0.6026664
5
Convert Tensorflow model to ONNX model.
def MBZO(uqvc, tRiF, yr4k, hdOL=12): ZylS = tF99('tensorflow') but1 = tF99('tf2onnx') IyJL = getattr(but1, 'tfonnx') G3HT = getattr(IyJL, 'process_tf_graph') uwaB = getattr(but1, 'constants') BfDw = getattr(but1, 'utils') K0do = getattr(but1, 'optimizer') jJrR = getattr(but1, 'tf_loader'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XNvz(C3ST, g4y1):\n assert isinstance(C3ST, ht2j.nn.Module)\n\n def Xqsm(yR_P):\n assert not yR_P.training\n C3ST.apply(Xqsm)\n with ht2j.no_grad():\n with xDSY.BytesIO() as eHNT:\n ht2j.onnx.export(C3ST, g4y1, eHNT, operator_export_type=McOg.ONNX_ATEN_FALLBACK)\n ...
[ "0.7588753", "0.7417796", "0.7390045", "0.7317495", "0.72602004", "0.70930326", "0.6956326", "0.6941433", "0.691616", "0.6632693", "0.6629441", "0.6602966", "0.65773576", "0.65621275", "0.6558235", "0.6552256", "0.65517783", "0.6525697", "0.65173787", "0.6496209", "0.6491114"...
0.7143279
5
Perform the transformation to the covariancedomain.
def YLcF(fuBA, aPd6, sQfT, E3D9): ZanY = int(aPd6 / sQfT) fuBA = fuBA.T[:ZanY * sQfT].T EDNH = oyIN.split(fuBA, ZanY, axis=1) vFK0 = oyIN.zeros([int(E3D9 * (E3D9 + 1) / 2.0), ZanY]) for r845 in range(ZanY): r_TP = oyIN.cov(EDNH[r845]) vFK0.T[r845] = qHlj(r_TP, E3D9) return vFK0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ioae(YKHO):\n raise RuntimeError('Internal cosmosis error in SingleValueGaussianLikelihood')", "def H5Dv(YKHO):\n RAs8 = jth9.deepcopy(YKHO.est_cov)\n RAs8 = oyIN.ravel(RAs8)\n PFC2 = _vFj()\n for YRbF, wEf2 in enumerate(RAs8):\n PFC2.covariance[YRbF] = wEf2\n YKHO.cov_pub.publish(PF...
[ "0.6251577", "0.61609304", "0.61413866", "0.6115918", "0.6064643", "0.6032088", "0.6023733", "0.60168326", "0.5993691", "0.59505236", "0.588641", "0.5873415", "0.585629", "0.5776894", "0.57711774", "0.5770252", "0.57403284", "0.5740312", "0.5731491", "0.5719687", "0.566959", ...
0.0
-1
Creates a matrix that rotates t radians around the y axis.
def A9Me(a1PO): Z9rn = oyIN.cos(a1PO) KCHu = oyIN.sin(a1PO) return oyIN.array([[Z9rn, 0, KCHu], [0, 1, 0], [-KCHu, 0, Z9rn]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lR5V(rxEN):\n return oyIN.array([[Z9rn(rxEN), 0.0, KCHu(rxEN)], [0.0, 1, 0.0], [-KCHu(rxEN), 0.0, Z9rn(rxEN)]])", "def KM4n(a1PO):\n tjUW = a1PO.shape[0]\n xEPK = ht2j.zeros((tjUW, 9, 1), dtype=ht2j.float)\n Z9rn = ht2j.cos(a1PO)\n KCHu = ht2j.sin(a1PO)\n pSfY = ht2j.ones(tjUW)\n xEPK[:,...
[ "0.7999669", "0.76807755", "0.7163939", "0.7058621", "0.69414866", "0.6937725", "0.692724", "0.6793151", "0.67381954", "0.6722267", "0.66999614", "0.66894203", "0.6594164", "0.6558072", "0.6552657", "0.6551664", "0.64768624", "0.64620894", "0.64535856", "0.6402718", "0.637103...
0.63912576
21
Creates a matrix that rotates t radians around the z axis.
def P1gh(a1PO): Z9rn = oyIN.cos(a1PO) KCHu = oyIN.sin(a1PO) return oyIN.array([[Z9rn, -KCHu, 0], [KCHu, Z9rn, 0], [0, 0, 1]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3Wc(a1PO):\n tjUW = a1PO.shape[0]\n LaXt = ht2j.zeros((tjUW, 9, 1), dtype=ht2j.float)\n Z9rn = ht2j.cos(a1PO)\n KCHu = ht2j.sin(a1PO)\n pSfY = ht2j.ones(tjUW)\n LaXt[:, 0, 0] = Z9rn\n LaXt[:, 1, 0] = -KCHu\n LaXt[:, 3, 0] = KCHu\n LaXt[:, 4, 0] = Z9rn\n LaXt[:, 8, 0] = pSfY\n ...
[ "0.8183908", "0.80930495", "0.80890083", "0.79900694", "0.76973295", "0.7500226", "0.7392089", "0.7141807", "0.70911336", "0.69670504", "0.69547015", "0.68878466", "0.68846244", "0.68699026", "0.685838", "0.6839339", "0.68043125", "0.6778547", "0.6755327", "0.6751253", "0.671...
0.7989493
4
Can be used to determine if a source object is live or offline. The result is always False for a FS Resouce.
def UVGt(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mKzH(YKHO):\n return False", "def Zs2h(YKHO):\n return not YKHO.poll(tree='offline')['offline']", "def UVGt(YKHO) -> bool:\n geh0 = YKHO._connection.run_rest('/.well-known/live', DkU8)\n if geh0.status_code == 200:\n return True\n return False", "def UVGt(YKHO):\n return YKHO.sta...
[ "0.68493736", "0.6839583", "0.6837509", "0.67654955", "0.6736676", "0.66824615", "0.66455626", "0.6641173", "0.66313607", "0.65451056", "0.65326947", "0.65295047", "0.65289676", "0.6524461", "0.6522234", "0.6474883", "0.6451862", "0.6448449", "0.6430673", "0.6418158", "0.6395...
0.6657961
6
Given a json representation of a file returns the correct class that represent that file
def _BWG(Emd4, o36Q): if o36Q['type'] in Emd4.types: vvSS = Emd4.types[o36Q['type']] else: vvSS = WzSd return vvSS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pktP(vOsx, j7fj):\n with open(j7fj, 'r') as eHNT:\n fK8P = qQXR.load(eHNT, cls=L9pg)\n if fK8P['type'] != lLL1.JITTER.value['type']:\n tO9_ = \"Can't open file type '{}' when '{}' is expected\".format(fK8P['type'], lLL1.JITTER.value['type'])\n raise Exception(tO9_)\n return vOsx(f...
[ "0.8167942", "0.7774801", "0.7386631", "0.72931576", "0.6728782", "0.6697369", "0.6674626", "0.66226053", "0.66216373", "0.6599889", "0.659432", "0.65910405", "0.6576594", "0.6559885", "0.65528595", "0.653904", "0.65321076", "0.6528448", "0.65277857", "0.65277857", "0.6526398...
0.0
-1
An object that represents a StackTack Deployment Response Entity.
def FIMM(YKHO, id, mWFP): super(c3e5, YKHO).__init__() YKHO.id = id YKHO.name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVFe(Emd4, j2zV):\n Eeeb = c3e5(id=j2zV.get('#'), name=j2zV.get('Name'))\n return Eeeb", "def pB3N(YKHO) -> P3NJ:\n return YKHO._payload", "def o0Vf(YKHO) -> SVDh:\n return SVDh(bucket_name=YKHO.deployment_package.bucket.name, code_sha256=YKHO.deployment_package.code_sha256, compatible_architec...
[ "0.59656006", "0.5730402", "0.55752593", "0.55551636", "0.54018223", "0.53616184", "0.53057307", "0.5294886", "0.5218338", "0.52078253", "0.52056885", "0.5198125", "0.51979584", "0.51900357", "0.51540715", "0.5124379", "0.50926137", "0.5081721", "0.5080674", "0.5080674", "0.5...
0.0
-1
Helper method to turn dictionary into StackTach Deployment Entity instance.
def QVFe(Emd4, j2zV): Eeeb = c3e5(id=j2zV.get('#'), name=j2zV.get('Name')) return Eeeb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVFe(Emd4, j2zV):\n Eeeb = wWXR(host_name=j2zV.get('Host Name'))\n return Eeeb", "def jG8h(Emd4, qHj0) -> 'DeploymentEvent':\n return gnPz.deserialize_model(qHj0, Emd4)", "def QVFe(Emd4, j2zV):\n Eeeb = EW58(event_name=j2zV.get('Event'), timing=j2zV.get('Time'), uuid=j2zV.get('UUID'), deploymen...
[ "0.6919229", "0.6843794", "0.65576774", "0.6415658", "0.63138103", "0.62260455", "0.617662", "0.6063802", "0.6048535", "0.6039483", "0.6036194", "0.60268813", "0.5931834", "0.5926138", "0.58983415", "0.58870137", "0.58855057", "0.5852904", "0.5741422", "0.57313025", "0.572303...
0.7925747
0
Helper method to turn dictionary into StackTach Deployment Entity instance.
def QVFe(Emd4, j2zV): Eeeb = aXnD(event_name=j2zV.get('Event'), count=j2zV.get('N'), minimum=j2zV.get('Min'), maximum=j2zV.get('Max'), average=j2zV.get('Avg')) return Eeeb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVFe(Emd4, j2zV):\n Eeeb = c3e5(id=j2zV.get('#'), name=j2zV.get('Name'))\n return Eeeb", "def QVFe(Emd4, j2zV):\n Eeeb = wWXR(host_name=j2zV.get('Host Name'))\n return Eeeb", "def jG8h(Emd4, qHj0) -> 'DeploymentEvent':\n return gnPz.deserialize_model(qHj0, Emd4)", "def QVFe(Emd4, j2zV):\n ...
[ "0.7925747", "0.6919229", "0.6843794", "0.65576774", "0.6415658", "0.63138103", "0.62260455", "0.617662", "0.6063802", "0.6048535", "0.6039483", "0.6036194", "0.60268813", "0.5931834", "0.5926138", "0.58983415", "0.58870137", "0.58855057", "0.5852904", "0.5741422", "0.5731302...
0.5544253
25
Helper method to turn dictionary into StackTach UuidTimingsSummary Entity instance.
def QVFe(Emd4, j2zV): Eeeb = YsFC(state=j2zV.get('?'), event_name=j2zV.get('Event'), timing=j2zV.get('Time (secs)')) return Eeeb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVFe(Emd4, j2zV):\n Eeeb = aXnD(event_name=j2zV.get('Event'), count=j2zV.get('N'), minimum=j2zV.get('Min'), maximum=j2zV.get('Max'), average=j2zV.get('Avg'))\n return Eeeb", "def QVFe(Emd4, j2zV):\n Eeeb = KGZt(timing=j2zV.pop('Time'), event_name=j2zV.keys()[0])\n return Eeeb", "def QVFe(Emd4, ...
[ "0.7503493", "0.6284556", "0.57476974", "0.5678956", "0.55440134", "0.55351883", "0.5402615", "0.5384505", "0.53633654", "0.53177387", "0.5235642", "0.52121156", "0.5204002", "0.52026194", "0.5173288", "0.5170349", "0.51669836", "0.5162176", "0.5146948", "0.5135314", "0.51118...
0.79446834
0
Helper method to turn dictionary into StackTach UuidTimingsSummary Entity instance.
def QVFe(Emd4, j2zV): Eeeb = KGZt(timing=j2zV.pop('Time'), event_name=j2zV.keys()[0]) return Eeeb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVFe(Emd4, j2zV):\n Eeeb = YsFC(state=j2zV.get('?'), event_name=j2zV.get('Event'), timing=j2zV.get('Time (secs)'))\n return Eeeb", "def QVFe(Emd4, j2zV):\n Eeeb = aXnD(event_name=j2zV.get('Event'), count=j2zV.get('N'), minimum=j2zV.get('Min'), maximum=j2zV.get('Max'), average=j2zV.get('Avg'))\n r...
[ "0.79446834", "0.7503493", "0.57476974", "0.5678956", "0.55440134", "0.55351883", "0.5402615", "0.5384505", "0.53633654", "0.53177387", "0.5235642", "0.52121156", "0.5204002", "0.52026194", "0.5173288", "0.5170349", "0.51669836", "0.5162176", "0.5146948", "0.5135314", "0.5111...
0.6284556
2
Helper method to turn dictionary into StackTach KpiDetail Entity instance.
def QVFe(Emd4, j2zV): Eeeb = EW58(event_name=j2zV.get('Event'), timing=j2zV.get('Time'), uuid=j2zV.get('UUID'), deployment=j2zV.get('Deployment')) return Eeeb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVFe(Emd4, j2zV):\n Eeeb = djQl(event_id=j2zV.get('#'), routing_key_type=j2zV.get('?'), when=j2zV.get('When'), deployment=j2zV.get('Deployment'), event_name=j2zV.get('Event'), host_name=j2zV.get('Host'), status=j2zV.get('Status'))\n return Eeeb", "def jG8h(Emd4, qHj0: dict) -> 'NeighborEntities':\n ...
[ "0.65599215", "0.64688194", "0.6451283", "0.6410043", "0.6347789", "0.6274481", "0.6273524", "0.61609715", "0.61495143", "0.61009914", "0.60176265", "0.58624905", "0.5819741", "0.5816997", "0.57972723", "0.57911026", "0.57752216", "0.5770062", "0.5770062", "0.5770062", "0.577...
0.7575982
0
Restrict the user from deleting this assistant if no permission was given.
def FLyC(YKHO, QePW, YEnM=None): if QePW.user.is_superuser: return True sDlr = QePW.user.courses.all() if YEnM is not None: return YEnM.course in sDlr else: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, QePW, *qIxc, **B2fa):\n if not YKHO.can_delete(QePW):\n raise wPvU\n return super().delete(QePW, *qIxc, **B2fa)", "def FLyC(YKHO, QePW, id=None):\n return False", "def FLyC(YKHO, QePW, YEnM=None):\n if QePW.user.is_superuser:\n return True\n else:\n False", ...
[ "0.64763826", "0.6475084", "0.6445519", "0.6419563", "0.6418199", "0.6418199", "0.6418199", "0.6418199", "0.6418199", "0.6418199", "0.6418199", "0.6418199", "0.6418199", "0.6418199", "0.6418199", "0.637774", "0.6359493", "0.6336551", "0.6305311", "0.62645125", "0.6259227", ...
0.0
-1
T.__new__(S, ...) > a new object with type S, a subtype of T
def fwuD(o4sw, *SPTI): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw...
[ "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497"...
0.7382608
21
Returns a list of the lanes that the traffic light controlls broken up by incoming direction
def D5BN(wEwg): G3eG = By1I.trafficlight.getControlledLanes(wEwg) G3eG = set(G3eG) E5cQ = ['e_0', 'e_1', 'e_2', 'e_3', 'e_4', 'e_5'] llC0 = [] for YRbF in range(cEgw): llC0.append([J2l3 for J2l3 in G3eG if 'e_{}'.format(YRbF) in J2l3]) llC0 = EAeq(wEwg, llC0) return llC0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TXiT(YKHO) -> x1iM[YBa6.Lane]:\n raise NotImplementedError()", "def vO4O(YKHO) -> x1iM[YBa6.Lane]:\n raise NotImplementedError()", "def vO4O(YKHO):\n if YKHO.basecalls_dir is None or not Hy7s.path.isdir(YKHO.basecalls_dir):\n return []\n vO4O = []\n for Csk6 in Hy7s.listdir(YKHO.basec...
[ "0.73034793", "0.7022249", "0.6769968", "0.66869247", "0.66869247", "0.6659331", "0.6592155", "0.65317124", "0.64952385", "0.64848655", "0.6471771", "0.64262384", "0.64239204", "0.6423174", "0.63503236", "0.63239306", "0.630916", "0.6305079", "0.6304808", "0.6284198", "0.6274...
0.67383003
3
Sets the traffic phases passed to it by setting each light in the order provided by traci.trafficlight.getIDList()
def fEIX(YPTI): k4zD = ljTn() jYoz = 0 for YRbF in range(len(k4zD)): jYoz += wD5m(k4zD[YRbF], YPTI[YRbF]) return jYoz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fWvJ(YKHO, Z5Q9, jlxe, pPPK, **cZLd):\n YKHO.resolve_lights(**cZLd)\n for agxD in YKHO.lights:\n YKHO.unset_fade(agxD)\n t0iP = YKHO.resolve_pi(agxD)\n Rpax = YKHO.resolve_pi_lights(agxD)\n print('light: {}: {}\\n'.format(agxD, YKHO.lights[agxD]))\n t0iP.set_PWM_dutycyc...
[ "0.64953244", "0.6446591", "0.64373225", "0.5988772", "0.5955864", "0.59085333", "0.59009683", "0.56714296", "0.56356186", "0.56017905", "0.559883", "0.5549843", "0.5503988", "0.54575306", "0.5442839", "0.5439496", "0.5426816", "0.5392303", "0.5379568", "0.53665555", "0.53615...
0.67505366
0
Bivariate gaussan distribution for equal shape X, Y
def c5LJ(EcVT, fuBA, dnsz=1.0, Tovs=1.0, vsOj=0.0, dta0=0.0, IQAA=0.0): k4lJ = EcVT - vsOj UVbV = fuBA - dta0 oZuG = IQAA / (dnsz * Tovs) epBp = k4lJ ** 2 / dnsz ** 2 + UVbV ** 2 / Tovs - 2 * oZuG * k4lJ * UVbV / (dnsz * Tovs) return 1.0 / (2 * mM0K * dnsz * Tovs * (1 - oZuG ** 2)) * kLQb(-epBp / (2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ocx5(XP5J, EcVT, fuBA):\n k0lF, nJ9F, nxyw, KCHu, Fg_i, UqXK, rLcl = XP5J\n Mkmy = IdsO(EcVT, fuBA, k0lF, nJ9F, nxyw, KCHu, Fg_i, UqXK, rLcl)\n return Mkmy", "def wE9c(WKvO, LVAh, yGTL, XXgC):\n return oyIN.exp(-1.0 * (((WKvO - yGTL[0]) ** 2.0 + (LVAh - yGTL[1]) ** 2.0) / (2.0 * oyIN.sqrt(XXgC **...
[ "0.73034406", "0.70967025", "0.7011375", "0.6889969", "0.6801022", "0.6686714", "0.6664573", "0.66549236", "0.6623483", "0.6603876", "0.65943533", "0.65820026", "0.65583944", "0.6552954", "0.6517758", "0.6513046", "0.6494913", "0.6452608", "0.64512205", "0.6449062", "0.642837...
0.0
-1
Reshapes a numpy array of patches to a single image.
def uYyx(ohfT, lNai): if len(ohfT.shape) != 4: raise ValueError('Input array has shape %s but must be 4D.' % str(ohfT.shape)) ryV4 = ohfT.shape[0] lHG0 = ohfT.shape[1] NwL4 = lNai[0] // lHG0 ulBT = lNai[1] // lHG0 if NwL4 * ulBT != ryV4: raise ValueError('image_shape %s not valid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xjbo(YKHO, Po4F):\n assert isinstance(Po4F, oyIN.ndarray)\n if Po4F.ndim == 3:\n Po4F = Po4F.reshape((1, 1) + Po4F.shape)\n elif Po4F.ndim == 4:\n Po4F = Po4F.reshape((1,) + Po4F.shape)\n return Po4F", "def ZQQ_(YKHO, ohfT, TVTK, H2v2):\n FTrt = ohfT[0].shape[0]\n Jw9H = 1\n ...
[ "0.7637806", "0.74356383", "0.7405907", "0.7317715", "0.73107296", "0.7069564", "0.67659104", "0.6733259", "0.6704385", "0.66875523", "0.6679332", "0.6586089", "0.65675527", "0.6532338", "0.65270543", "0.6491658", "0.6487377", "0.6369007", "0.6361286", "0.63433486", "0.630998...
0.74327034
2
find the nearest neighbors for each element of trainData.
def gtTm(VagV, G1Hx=3): u54L = VagV.shape[0] h2IT = oyIN.arange(0, u54L).astype(oyIN.float32) PYVH = XC5k.ml.KNearest_create() PYVH.train(VagV, XC5k.ml.ROW_SAMPLE, h2IT) HKFw = [] for UXoO in VagV: xDcj = oyIN.reshape(UXoO, (1, 2)) U5bT, dixj, A_IW, pImw = PYVH.findNearest(xDcj, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BTfj(EvQg, Zwka, G1Hx):\n TaUL = list()\n for ppBc in EvQg:\n pImw = zG70(Zwka, ppBc)\n TaUL.append((ppBc, pImw))\n TaUL.sort(key=lambda SjLr: SjLr[1])\n A_IW = list()\n for YRbF in range(G1Hx):\n A_IW.append(TaUL[YRbF][0])\n return A_IW", "def O6Zz(YKHO, **B2fa):\n ...
[ "0.74340504", "0.7394757", "0.7277465", "0.71009505", "0.70915407", "0.7078841", "0.7068616", "0.70666295", "0.70439535", "0.69631356", "0.6960554", "0.6906368", "0.6906368", "0.6820442", "0.67977184", "0.67523956", "0.67489636", "0.67291546", "0.67255706", "0.67208236", "0.6...
0.76848257
0
Computes the backward pass for an affine layer.
def Kt1o(zYcP, wyyA): WKvO, yzQ0, Fg_i = wyyA Jw7X = zYcP.dot(yzQ0.T).reshape(WKvO.shape) ncXl = WKvO.reshape(WKvO.shape[0], -1).T.dot(zYcP) NCls = oyIN.sum(zYcP, axis=0) return (Jw7X, ncXl, NCls)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kt1o(zYcP, wyyA):\n WKvO, yzQ0, Fg_i = wyyA\n Jw7X, ncXl, NCls = (None, None, None)\n Jw7X = zYcP.dot(yzQ0.T).reshape(WKvO.shape)\n ncXl = WKvO.reshape(WKvO.shape[0], -1).T.dot(zYcP)\n NCls = oyIN.ones((1, zYcP.shape[0])).dot(zYcP)\n return (Jw7X, ncXl, NCls)", "def Kt1o(zYcP, wyyA):\n W...
[ "0.73662406", "0.73652834", "0.732474", "0.7313612", "0.7313612", "0.72996736", "0.72996736", "0.72996736", "0.72996736", "0.72996736", "0.7293254", "0.7285048", "0.7250458", "0.72409606", "0.7224414", "0.7196709", "0.7155475", "0.7131797", "0.7116419", "0.70520604", "0.70500...
0.7038236
22
Computes the forward pass for a layer of rectified linear units (ReLUs).
def wN5Y(WKvO): yvT9 = oyIN.maximum(0, WKvO) wyyA = WKvO return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO = ht2j.from_numpy(WKvO).type(ht2j.FloatTensor).unsqueeze(0)\n WKvO = ht2j.autograd.Variable(WKvO)\n WKvO = vuvg.relu(YKHO.l1(WKvO))\n WKvO = YKHO.l2(WKvO)\n return WKvO", "def KVH6(YKHO, WKvO: Tensor) -> llWB:\n return StA9.reglu(WKvO)", "def drfk(YKHO):\n\n de...
[ "0.6679781", "0.66286653", "0.6547163", "0.6460596", "0.64428824", "0.64364123", "0.63979214", "0.6371656", "0.6319996", "0.63163096", "0.6305067", "0.6300998", "0.62817127", "0.62416285", "0.62340057", "0.6208523", "0.6186704", "0.61818707", "0.6181222", "0.61805546", "0.618...
0.0
-1
Create a MeanField from a list of priors. This works because priors are a kind of variable and messages can be derived from priors.
def _3uw(Emd4, f0BO: Iterable[Prior]) -> 'MeanField': return vZjX({f2rf: f2rf.message for f2rf in f0BO})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6BM(qQTo, Jyyj):\n nPrm = {}\n for vXX7 in [Jyyj] if Jyyj else ZmPh(qQTo):\n JBMS = ooYd(vXX7, qQTo)\n nPrm.update({vXX7: oyIN.round(JBMS, ecwm)})\n return nPrm", "def zmIg(Jyyj, xN6E, Sipp, *usx6):\n return Dk2J(Jyyj, xN6E, Sipp, *usx6) / float(Sipp)", "def fcVX(rCeD):\n B9EC...
[ "0.5056845", "0.49997434", "0.4869915", "0.4760787", "0.4710765", "0.4664835", "0.4659337", "0.46333307", "0.46328476", "0.4628214", "0.46056485", "0.45831496", "0.4576496", "0.4527461", "0.4475926", "0.4465908", "0.44654128", "0.44495848", "0.44389677", "0.44389677", "0.4436...
0.86225176
0
Return the new expression of computing atomic add between self and a given operand.
def NKle(YKHO, Elif): return IPme.atomic_add(YKHO, Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOdN(YKHO, VN2L):\n from supriya.tools import synthdeftools\n return oALW._compute_binary_op(YKHO, VN2L, synthdeftools.BinaryOperator.ADDITION)", "def FOdN(YKHO, Elif):\n return sH7s(YKHO, Elif, '+')", "def FOdN(YKHO, Elif):\n return lsX7([YKHO]) + Elif", "def FOdN(YKHO, Elif):\n return YK...
[ "0.7761891", "0.75833553", "0.75787836", "0.7532886", "0.7504145", "0.74311316", "0.73784375", "0.73235416", "0.7321977", "0.7270019", "0.72591007", "0.72501254", "0.7199992", "0.7177984", "0.71725106", "0.7151741", "0.71284556", "0.7066371", "0.70501333", "0.7033372", "0.702...
0.781862
0
Deserializes a DataFrame object containing extracted features.
def SapM(Ux0P: str): if not Hy7s.path.exists(Ux0P): raise FileNotFoundError("Specified file for deserializing doesn't exist") bySB, i0gQ = (None, None) ovYX = k6eJ.load(Ux0P) if type(ovYX) == tuple: try: bySB, i0gQ = ovYX except ValueError: raise ValueErro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def snJH(YKHO) -> rLdf.DataFrame:\n return rLdf.DataFrame(dict(YKHO[eiqf.AXIS].coords))", "def gbu6(jQ3Z: pd.DataFrame) -> rLdf.DataFrame:\n jQ3Z['attributes'] = jQ3Z['attributes'].apply(qQXR.loads)\n jQ3Z['device_class'] = jQ3Z['attributes'].apply(H1Tu)\n jQ3Z['unit_of_measurement'] = jQ3Z['attribut...
[ "0.66268665", "0.65307003", "0.62704843", "0.62520117", "0.62441164", "0.61198854", "0.61083597", "0.6085354", "0.60220987", "0.60085446", "0.60085446", "0.5976084", "0.5972147", "0.59689933", "0.5964894", "0.59484905", "0.5908922", "0.5906617", "0.58933204", "0.5892278", "0....
0.6667799
0
Returns phone number of message sender.
def fDAc(QePW, H5ew='From'): JSoq = QePW.data[H5ew].replace('+', '') return GO6m.clean_fone_number(phone_number=JSoq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ou5s(YKHO) -> str:\n return qe4Y.get(YKHO, 'messaging_sender_id')", "def P0V4(tO9_):\n return tO9_.split(',')[2]", "def duDf(YKHO) -> int:\n return YKHO.__sender_id", "def ESYf(YKHO):\n return YKHO.__phone_number", "def JSoq(YKHO) -> int:\n return YKHO.__phone_number", "def VGNJ(YKHO):...
[ "0.734387", "0.7301063", "0.7222677", "0.7168626", "0.71036494", "0.70471907", "0.70294356", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.7019052", "0.69461125", "0.6935517", "0.69305336", "0.6827566", "0.67654675", "0.6729077", "0.6724185", "0.66977996...
0.64366835
41
Generate a fake instance of the "User" class. The instance cannot be saved
def Kimp() -> 'User': ygSt = ab3Y(save=False) ygSt.save = vAF9 return ygSt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QgNo():\n CBIr = FYrf.User(name='Foo Bar', email='foo@bar.baz')\n CBIr.save()\n return CBIr", "def CBIr():\n return NqOl()", "def CBIr():\n b5K5 = mv1M(g_id='923423', first_name='Jane', last_name='Doe', email='janedoe1@tests.com')\n b5K5.id = 1\n return b5K5", "def vbsz(YKHO):\n C...
[ "0.7701206", "0.7555004", "0.7294388", "0.7158183", "0.7069274", "0.7069274", "0.7069274", "0.7049384", "0.69936675", "0.69849616", "0.6979202", "0.69789565", "0.69683456", "0.69062364", "0.6904582", "0.6872832", "0.6864455", "0.68393266", "0.68386227", "0.68384165", "0.68358...
0.8719933
0
Test the welcome DM by sending a DM to you.
async def test(YKHO, OaeV: Context): await YKHO.sendWelcomeMessage(OaeV.message.author, test=True) await OaeV.send('If this server has been configured, you should have received a DM.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def testwelcome(YKHO, OaeV):\n lSCo = OaeV.guild\n Npgh = ZOrr.utils.get(YKHO.bot.get_all_channels(), id=int(YKHO.settings.ServerConfig(lSCo.id, 'WelcomeChannel')))\n YJv1 = []\n for CBIr in lSCo.members:\n if str(CBIr.status) != 'offline':\n YJv1.append(CBIr.name)\n if Npgh ...
[ "0.72227126", "0.68392307", "0.6736742", "0.6725964", "0.6661423", "0.66476", "0.65681934", "0.65521455", "0.6513961", "0.6478878", "0.64730847", "0.6468516", "0.64655983", "0.63860065", "0.6367461", "0.6352885", "0.63508135", "0.63451564", "0.6338025", "0.63020074", "0.62906...
0.82308143
0
Toggle sending a welcome DM.
async def toggledm(YKHO, OaeV: Context): async with YKHO.config.guild(OaeV.guild).all() as O6vm: if O6vm[yRV8]: O6vm[yRV8] = False tMjQ = False else: O6vm[yRV8] = True tMjQ = True if tMjQ: await OaeV.send(':white_check_mark: Server Welcome ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def toggle(YKHO, OaeV: commands.Context) -> None:\n lSCo = OaeV.message.guild\n if not await YKHO.config.guild(lSCo).toggle():\n await YKHO.config.guild(lSCo).toggle.set(True)\n await OaeV.send(bGrB('I will reply when I am mentioned.'))\n else:\n await YKHO.config.guild(lSCo).to...
[ "0.7598342", "0.7240938", "0.6886762", "0.66389227", "0.6625568", "0.65322036", "0.648668", "0.6469756", "0.64624685", "0.645739", "0.64538", "0.64439434", "0.6405053", "0.6366127", "0.63504916", "0.6317344", "0.6294744", "0.6284518", "0.6266823", "0.625958", "0.6245678", "...
0.7830581
0
Add a simple field to the form data.
def FxjZ(YKHO, mWFP, BWXx): YKHO.form_fields.append((mWFP, BWXx)) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FxjZ(YKHO, mWFP, BWXx):\n if BWXx == None:\n BWXx = ''\n YKHO.form_fields.append((mWFP, BWXx))\n return", "def FxjZ(YKHO, mWFP, BWXx):\n YKHO.form_fields.append((mWFP, str(BWXx)))\n return", "def FxjZ(YKHO, mWFP, BWXx):\n YKHO.form_fields.append((mWFP, BWXx))", "def FxjZ(YKHO, mW...
[ "0.77396107", "0.7532339", "0.75041944", "0.7480176", "0.74195635", "0.70563614", "0.6577264", "0.65586555", "0.65559816", "0.652799", "0.6499838", "0.64679384", "0.6424529", "0.63825905", "0.6360701", "0.6315716", "0.62694174", "0.6265489", "0.6244443", "0.6218714", "0.61642...
0.7440676
4
TEST Creating user with email is successful
def jH7C(YKHO): D3lj = 'test@gmail.com' jTXt = 'test@123' CBIr = egNl().objects.create_user(email=D3lj, password=jTXt) YKHO.assertEqual(CBIr.email, D3lj) YKHO.assertTrue(CBIr.check_password(jTXt))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WVkE(YKHO):\n D3lj = 'testemail@Airbase.io'\n jTXt = 'Test@123'\n CBIr = egNl().objects.create_user(email=D3lj, password=jTXt)\n YKHO.assertEqual(D3lj.lower(), CBIr.email)", "def jH7C(YKHO):\n syqx = {'email': 'test@ezmeetup.ca', 'password': 'testpass123', 'first_name': 'Firstname', 'last_name...
[ "0.86731905", "0.8567618", "0.8380951", "0.83730024", "0.8369362", "0.8361996", "0.83603466", "0.8352954", "0.8343585", "0.8315544", "0.83076215", "0.8274453", "0.827313", "0.8270273", "0.8254292", "0.82531273", "0.8245207", "0.82443625", "0.8240079", "0.82264274", "0.8225508...
0.8253369
15
TEST Creating user with normalised email
def ho5W(YKHO): D3lj = 'test@GMAIL.com' CBIr = egNl().objects.create_user(D3lj, 'test@123') YKHO.assertEqual(CBIr.email, D3lj.lower())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ho5W(YKHO):\n D3lj = 'test@TEST.FR'\n CBIr = egNl().objects.create_user(D3lj, 'testtest')\n YKHO.assertEqual(CBIr.email, D3lj.lower())", "def RvL8(YKHO):\n D3lj = 'tanvirfaisaldev@GMAIL.COM'\n CBIr = egNl().objects.create_user(D3lj, 'test123')\n YKHO.assertEqual(CBIr.email, D3lj.lower())", ...
[ "0.8688597", "0.8579017", "0.8491944", "0.8433743", "0.84270996", "0.8398596", "0.83985496", "0.8382836", "0.8379376", "0.8373845", "0.8364063", "0.8356366", "0.8347138", "0.83346933", "0.83229244", "0.83160806", "0.83131355", "0.8310987", "0.83032393", "0.83027554", "0.82653...
0.8637913
1
Test creating user with no email raise error
def hXDu(YKHO): with YKHO.assertRaises(ValueError): egNl().objects.create_user(None, 'test@123')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CnXP(YKHO):\n with YKHO.assertRaises(ValueError):\n D3lj = None\n KaGP = 'test1234'\n egNl().objects.create_user(email=D3lj, password=KaGP)", "def WhLD(YKHO):\n with YKHO.assertRaises(ValueError):\n mv1M.objects.create_user(None, YKHO.password)", "def dv9i(YKHO):\n with...
[ "0.8910682", "0.8876055", "0.8855163", "0.8795879", "0.8793678", "0.8708223", "0.86965716", "0.86947966", "0.868938", "0.8689297", "0.8688272", "0.8688272", "0.86872476", "0.86872476", "0.86872476", "0.86872476", "0.86872476", "0.8686832", "0.868612", "0.8682607", "0.86732876...
0.8743801
5
Test create new super user
def LqR1(YKHO): CBIr = egNl().objects.create_superuser('testsuper@gmail.com', 'test@123') YKHO.assertTrue(CBIr.is_superuser) YKHO.assertTrue(CBIr.is_staff)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LqR1(YKHO):\n CBIr = egNl().objects.create_superuser('test@undeinveti.ro', 'test123')\n YKHO.assertTrue(CBIr.is_superuser)\n YKHO.assertTrue(CBIr.is_staff)", "def LqR1(YKHO):\n jTXt = 'test@123#'\n D3lj = 'test@WEBgurus.co.ke'\n CBIr = egNl().objects.create_superuser(D3lj, jTXt)\n YKHO.a...
[ "0.8594029", "0.8572593", "0.8556802", "0.85509473", "0.8536586", "0.85340726", "0.8513585", "0.84915876", "0.8485204", "0.84696263", "0.8456965", "0.8441155", "0.8382149", "0.8370461", "0.8345308", "0.83292675", "0.8308421", "0.82861257", "0.8283691", "0.8233222", "0.8225651...
0.8598376
0
compute the prime factorization of n, return them as an array
def TLYS(exwG): YRbF = 2 rPed = [] while not _f0Y(exwG): if not _f0Y(YRbF): YRbF = YRbF + 1 continue vPob, wXAI = divmod(exwG, YRbF) if wXAI == 0: exwG = vPob rPed.append(YRbF) else: YRbF = YRbF + 1 rPed.append(e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aWCg(exwG):\n Aofo = oyIN.array([], dtype=oyIN.int)\n while exwG % 2 == 0:\n Aofo = oyIN.append(Aofo, 2)\n exwG = exwG / 2\n for YRbF in range(3, int(oyIN.sqrt(exwG)) + 1, 2):\n while exwG % YRbF == 0:\n Aofo = oyIN.append(Aofo, YRbF)\n exwG = exwG / YRbF\n ...
[ "0.83204937", "0.8272741", "0.80764383", "0.79296386", "0.78773767", "0.7860954", "0.78562194", "0.78472006", "0.78297675", "0.7829693", "0.78166556", "0.78144145", "0.7805495", "0.7798463", "0.77954173", "0.7793578", "0.7765099", "0.77571684", "0.7755195", "0.77545595", "0.7...
0.75112176
49
Once the number of labels n_labels are known, this method initializes the torch linear layer.
def uIcm(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super(wOed, YKHO).__init__()\n YKHO.linear = ht2j.nn.Linear(1, 1)", "def FIMM(YKHO):\n super(K1Wl, YKHO).__init__()\n YKHO.linear1 = ht2j.nn.Linear(784, 100)\n YKHO.linear2 = ht2j.nn.Linear(100, 10)", "def FIMM(YKHO, qepc, Bdz4, xlLU, mWFP):\n super(AVrT, YKHO).__init__()\n ...
[ "0.67362165", "0.66639984", "0.6644187", "0.66036755", "0.6589157", "0.6570937", "0.65568525", "0.65393436", "0.6514211", "0.6494553", "0.6470195", "0.6458218", "0.6439628", "0.6436355", "0.6407439", "0.6385952", "0.637865", "0.63775176", "0.63763624", "0.6371738", "0.6359072...
0.0
-1
Returns the index.html file
def d6pt(QePW): return _1tc(QePW, 'index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t7ng():\n with open('index.html', 'r') as t7ng:\n return t7ng.read()", "def d6pt():\n return CfgF(open('index.html').read())", "def d6pt(YKHO):\n return nUeQ('C:/Users/ASchwenker/Documents/GitHub/GPS_Project/index.html')", "def WPsv():\n return TvZl(DIkr, server_debug_mode=_i16)", "d...
[ "0.8561371", "0.8518338", "0.8327076", "0.8031276", "0.8021792", "0.79577017", "0.79551554", "0.79330677", "0.79105616", "0.79022974", "0.78923905", "0.788849", "0.788849", "0.788849", "0.788849", "0.788849", "0.788849", "0.788849", "0.788849", "0.788849", "0.788849", "0.78...
0.0
-1
Check whether the trajectory is within the robot's DOF limits.
def ODf5(fQxG, jpeS): W4mG = vIwR.split(jpeS, '\n') YzQK = float(W4mG[0]) dYfT = int(W4mG[1]) _P6G, TDis = fQxG.GetDOFLimits() wy3c = fQxG.GetDOFVelocityLimits() for YRbF in range(dYfT): n0ed = [float(r845) for r845 in vIwR.split(W4mG[YRbF + 2])] n0ed.reverse() vexM = oyI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YTIk(fQxG, vexM):\n _P6G, TDis = fQxG.GetDOFLimits()\n for YRbF, wEf2 in enumerate(vexM):\n if wEf2 < _P6G[YRbF] or wEf2 > TDis[YRbF]:\n return False\n return True", "def KINq(fQxG, vexM=None):\n if vexM is None:\n vexM = fQxG.GetActiveDOFValues()\n LSh8, CN9P = fQxG.G...
[ "0.6913449", "0.690683", "0.67124987", "0.66924775", "0.6533453", "0.6484842", "0.64083093", "0.63915455", "0.6314892", "0.6283679", "0.62536615", "0.62144804", "0.62129503", "0.6193714", "0.61935663", "0.61798173", "0.61747706", "0.6173937", "0.6157618", "0.61556166", "0.614...
0.73294175
0
Return a single trajectory string by combining all trajectories in the given list.
def pEV4(wsDJ): NPkv = [str(dlZb) for dlZb in wsDJ] jpeS = '' for YRbF in range(len(NPkv)): jpeS += '\n' jpeS += str(NPkv[YRbF]) jpeS = vIwR.lstrip(jpeS) return jpeS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XQ0m(YKHO, IqQl):\n oPTj = ''\n for WKvO in IqQl[:-1]:\n oPTj = oPTj + WKvO + '\\n'\n oPTj = oPTj + IqQl[-1]\n return oPTj", "def sA23(YKHO, list):\n if not list:\n return ''\n return ','.join(list)", "def A7xx(list):\n Aofo = ''\n for U6D_ in list:\n Aofo += st...
[ "0.70597124", "0.67428946", "0.66729146", "0.6462374", "0.645694", "0.6434173", "0.6360787", "0.63561046", "0.63517576", "0.632964", "0.63189536", "0.6281965", "0.6250853", "0.6244339", "0.623094", "0.62264705", "0.6202812", "0.6182025", "0.61779803", "0.6176224", "0.6170435"...
0.7649451
0
Return distance between the given two translational 3vector.
def YMpp(y4fz, EBgd): TifC = y4fz - EBgd return oyIN.sqrt(BJ1H(TifC, TifC))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CsC0(G4Li: int, O7j9: int) -> float:\n pass", "def zG70(Pmo0, iB1H):\n return Ayfi.euclidean(zczK.vector3_to_array(Pmo0), zczK.vector3_to_array(iB1H))", "def Ayfi(YKHO, Elif: Vec3) -> float:\n return Rvld.sqrt((Elif.x - YKHO.x) ** 2 + (Elif.y - YKHO.y) ** 2 + (Elif.z - YKHO.z) ** 2)", "def _85E(...
[ "0.812307", "0.77721125", "0.74648786", "0.7457082", "0.7340181", "0.7317269", "0.7307895", "0.72320485", "0.71651083", "0.7155843", "0.712175", "0.71037215", "0.7049981", "0.7043911", "0.70154566", "0.6975257", "0.69515955", "0.6950341", "0.694945", "0.69492275", "0.6903806"...
0.66841435
34
Return a list of accumulated SE3 distances at each timestamp of the given trajectory. The trajectory is to be sliced into M{n} segments.
def zVtY(guyG, UxEf, Kptc, o15N): KSXx = [] iD10 = oyIN.eye(4) mc_X = oyIN.eye(4) iD10[0:3, 0:3] = guyG.EvalRotation(0) iD10[0:3, 3] = UxEf.Eval(0) M_Ra = oyIN.arange(o15N, guyG.duration, o15N) if not oyIN.isclose(M_Ra[-1], guyG.duration): oyIN.append(M_Ra, guyG.duration) dMCi = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EA4H(dlZb):\n sjXb = dlZb.keys()\n sjXb.sort()\n PETh = [uiSp(dlZb[sjXb[YRbF + 1]], dlZb[sjXb[YRbF]]) for YRbF in range(len(sjXb) - 1)]\n TaUL = [0]\n wjRY = 0\n for a1PO in PETh:\n wjRY += mOUS(a1PO)\n TaUL.append(wjRY)\n return TaUL", "def hqkK(guyG, UxEf, lGE9=None, n2Q1...
[ "0.6275748", "0.5939921", "0.5854668", "0.57689637", "0.5647938", "0.5646365", "0.5630355", "0.5588131", "0.5544024", "0.545462", "0.54526544", "0.53435457", "0.5332825", "0.5320136", "0.5306626", "0.5281717", "0.52706915", "0.5234136", "0.52234054", "0.5218089", "0.519535", ...
0.6856593
0
Check wether the two given axis (extracted from their respective quaternion) belong to the same class.
def NLtz(jDK_, OZUW): kmtC = jDK_ * -1.0 if sum(abs(jDK_ - OZUW)) < sum(abs(kmtC - OZUW)): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BI0m(YKHO, Elif: 'AxisType') -> bool:\n ...", "def MIDq(YKHO, vcn7):\n TXzq = len(vcn7[0])\n XiP7 = vcn7[0][TXzq - 1]\n for YRbF in range(1, len(vcn7)):\n if vcn7[YRbF][TXzq - 1] != XiP7:\n return False\n return True", "def G_RE(YKHO, **B2fa):\n if not YKHO._isKeyDict(_l...
[ "0.64965475", "0.6273585", "0.61946243", "0.6184176", "0.6177408", "0.616022", "0.6127659", "0.61129963", "0.6085039", "0.6070051", "0.6022386", "0.59938353", "0.59922314", "0.59195805", "0.591337", "0.5911456", "0.5900036", "0.5859325", "0.5856923", "0.5852673", "0.58470947"...
0.5626988
86
Return a list of waypoints by merging all lists of waypoints in the given list.
def ovSG(wof8, SGf8=0.001): Nbvh = [] for XcU5 in wof8: if not Nbvh == []: if Ayfi(XcU5[0], Nbvh[-1]) > SGf8: raise Exception('Waypoints not match') XcU5.pop(0) Nbvh = Nbvh + XcU5 return Nbvh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iCII(UHhk, T4Wy='agony'):\n assert UHhk is not None, 'lists is None'\n if len(UHhk) == 0:\n return []\n if len(UHhk) == 1:\n return UHhk[0]\n Ylbp = AjW1.merge(UHhk[0], UHhk[1], T4Wy)\n for YRbF in range(2, len(UHhk)):\n Ylbp = AjW1.merge(Ylbp, UHhk[YRbF], T4Wy)\n return ...
[ "0.6380347", "0.61733717", "0.61090493", "0.60525185", "0.6039838", "0.59909785", "0.58222264", "0.5795814", "0.57759464", "0.575593", "0.57398367", "0.57055736", "0.5688654", "0.5655413", "0.56423837", "0.55737257", "0.5569931", "0.55494964", "0.5515282", "0.5486226", "0.548...
0.64490116
0
Convert multiple values into an array. Single values are also put into a array with a single value for easy processing. >>> s = parse(EXAMPLE_TEXT) >>> s = fixup_default(s) >>> fixup_arrays(s, set(['foo']))
def fDmy(UOrz, wXCW=set()): u9lK = {} for M8YW, sEQ7 in UOrz.items(): sNAB = u9lK.setdefault(M8YW, {}) for G1Hx, Ty9i in sEQ7: if G1Hx in wXCW: sNAB.setdefault(G1Hx, []).append(Ty9i) else: sNAB[G1Hx] = [Ty9i] return u9lK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YSmH(BWXx):\n if isinstance(BWXx, list):\n return BWXx\n elif isinstance(BWXx, exCv):\n return [BWXx]", "def HJI4(WKvO):\n if isinstance(WKvO, list):\n WKvO = oyIN.asarray(WKvO)\n return WKvO", "def mF97(WKvO):\n return oyIN.array(WKvO).flatten()", "def rdjk(hkxX):\n ...
[ "0.66109836", "0.6163226", "0.5914292", "0.57973784", "0.5739829", "0.57079333", "0.56773686", "0.56531644", "0.5649994", "0.56482375", "0.5631687", "0.5560598", "0.5545818", "0.5529104", "0.5524748", "0.5482468", "0.54602647", "0.54419434", "0.54409885", "0.54368764", "0.540...
0.0
-1
Mocked AWS Credentials for moto.
def AP1z(): Hy7s.environ['AWS_ACCESS_KEY_ID'] = 'testing' Hy7s.environ['AWS_SECRET_ACCESS_KEY'] = 'testing' Hy7s.environ['AWS_SECURITY_TOKEN'] = 'testing' Hy7s.environ['AWS_SESSION_TOKEN'] = 'testing'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PUyH():\n Hy7s.environ['AWS_ACCESS_KEY_ID'] = 'testing'\n Hy7s.environ['AWS_DEFAULT_REGION'] = 'ap-southeast-2'\n Hy7s.environ['AWS_SECRET_ACCESS_KEY'] = 'testing'\n Hy7s.environ['AWS_SECURITY_TOKEN'] = 'testing'\n Hy7s.environ['AWS_SESSION_TOKEN'] = 'testing'", "def MU4w(eXVH, Ehsq):\n Ehs...
[ "0.8539649", "0.7609735", "0.72904336", "0.72635967", "0.7212455", "0.7182388", "0.71761876", "0.71761876", "0.71761876", "0.71761876", "0.7141403", "0.7063853", "0.66895556", "0.64615655", "0.6426863", "0.64185965", "0.633513", "0.63053906", "0.62641495", "0.6187777", "0.617...
0.7143531
10
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.unsqueeze(0).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].contiguous().view(-1).float().sum(0, keepdim=True) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003109", "0.797514", "0.79735994", "0.79411817", "0.78640723", "0.7803957", "0.77072597", "0.76212215", "0.75934887", "0.7561503", "0.75209886", "0.743037", "0.74132675", "0.73754424", "0.73745584", "0.7320635", "0.7253765", "0.7236923", "0.72290605", "0.7204713", "0.7136...
0.0
-1
Updates the entry with the specified id for the given model via the REST API.
def Q_bo(YKHO, C3ST=None, nPrm=None): if not C3ST: C3ST = YKHO._model_name if not nPrm: raise SWMn('Keyword argument "data" requires a value.') tsEk = int(nPrm['id']) geh0 = YKHO.api_request('PUT', YKHO.get_model_url(C3ST) + '/%s' % tsEk, auth=YKHO.api_auth, json=nPrm) return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, C3ST, id, YEnM):\n YKHO._connect()\n return YKHO._sock.execute(YKHO._database, YKHO._uid, YKHO._password, C3ST, 'write', id, YEnM)", "def NpNj(YKHO, id):\n try:\n YEnM = Iofl(YKHO.resource_object, id)\n sPBL = YEnM.update(QePW.get_json())\n return sPBL\n except qDZ...
[ "0.7316365", "0.7244676", "0.719947", "0.71445495", "0.70871454", "0.70279443", "0.6901714", "0.68879986", "0.6884446", "0.6818383", "0.68112844", "0.68112844", "0.6776054", "0.67547", "0.6745313", "0.67431444", "0.6729531", "0.6722468", "0.6684809", "0.6684809", "0.6684809",...
0.7874587
0
Takes text and tokenizes. Removes stop words, verbs, punctuations, digits, and characters. Lemmatizes the token as well.
def NInT(YKHO, l5Ny): l5Ny = ZbWC.sub('[\\W0-9]+', ' ', l5Ny) s2mk = Dhdw.word_tokenize(l5Ny) s2mk = [ZfUD for ZfUD in s2mk if len(ZfUD) > 1 if not ZfUD in YKHO._stop_words] OMQy = [YKHO._lemmatizer.lemmatize(ZfUD) for ZfUD in s2mk] return OMQy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n l5Ny = ZbWC.sub('[^A-Za-z0-9]', ' ', l5Ny.lower())\n l5Ny = dFss(l5Ny)\n V22M = [yzQ0.strip() for yzQ0 in l5Ny if yzQ0 not in di0c.words('english')]\n LkXt = GFnk()\n zKDd = [GFnk().lemmatize(yzQ0) for yzQ0 in V22M]\n return zKDd", "def wr3U(l5Ny):\n l5Ny = ZbWC.sub('[^a-zA...
[ "0.82963634", "0.82898176", "0.82521063", "0.82245886", "0.8155942", "0.8148607", "0.81291246", "0.81166255", "0.80966794", "0.80685043", "0.80481267", "0.80461085", "0.8019486", "0.80044425", "0.79903966", "0.7973965", "0.79724354", "0.7970246", "0.7959943", "0.79369456", "0...
0.7392196
80
Sets the did_group_id of this InlineResponse20015Data.
def Z1Pt(YKHO, Z1Pt): YKHO._did_group_id = Z1Pt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hE03(YKHO, hE03):\n YKHO._group_id = hE03", "def hE03(YKHO, hE03):\n YKHO._group_id = hE03", "def hE03(YKHO, hE03):\n YKHO._group_id = hE03", "def hE03(YKHO, hE03):\n YKHO._group_id = hE03", "def hE03(YKHO, hE03):\n YKHO._group_id = hE03", "def hE03(YKHO, hE03):\n YKHO._group_id = h...
[ "0.6481897", "0.6481897", "0.6481897", "0.6481897", "0.6481897", "0.6481897", "0.6481897", "0.60423255", "0.57601655", "0.5724106", "0.55570346", "0.5528556", "0.5462516", "0.53864723", "0.53626364", "0.53211504", "0.5312666", "0.52971375", "0.529295", "0.52551067", "0.524403...
0.79376847
0
Sets the area_code of this InlineResponse20015Data.
def PnOR(YKHO, PnOR): YKHO._area_code = PnOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xGo7(YKHO, Wxnj):\n YKHO.code = Wxnj", "def Da88(aNZO, Wxnj):\n aNZO.set_extent(fSBj[Wxnj], crs=gDdM.PlateCarree())", "def xGo7(YKHO, Wxnj):\n YKHO.__code = Wxnj", "def PnOR(YKHO):\n return YKHO._area_code", "def Wxnj(YKHO, Wxnj):\n if Wxnj is None:\n raise ValueError('Invalid val...
[ "0.617361", "0.6146512", "0.610185", "0.60538965", "0.5982575", "0.5963957", "0.5963957", "0.5963957", "0.5963957", "0.5963957", "0.5963957", "0.5963957", "0.5963957", "0.5963957", "0.5963957", "0.5963957", "0.58467406", "0.5822673", "0.5813673", "0.5813673", "0.5813673", "...
0.7759797
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.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
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.0
-1
Return a Keras model from the contained array
def lb06(): C3ST = ileL() C3ST.add(l6ZH(8, input_shape=(16,))) C3ST.add(l6ZH(4, activation='sigmoid')) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHDC(YKHO, Dcx5: list) -> ZylS.keras.Model:\n s8Nx = YKHO.build_search_space()\n return s8Nx.sample(Dcx5)", "def YZe9():\n C3ST = ileL()\n C3ST.add(D2Bo())\n C3ST.add(l6ZH(units=64, activation='relu'))\n C3ST.add(l6ZH(units=3, activation='softmax'))\n C3ST.compile(loss='categorical_cross...
[ "0.7169511", "0.6714754", "0.66652846", "0.6659604", "0.66169006", "0.6582028", "0.6571691", "0.65399444", "0.6535444", "0.64980096", "0.6470219", "0.6450022", "0.64482135", "0.64423186", "0.64186877", "0.6395169", "0.6385127", "0.63685876", "0.63593155", "0.6359172", "0.6358...
0.0
-1
Crosses two genomes and returns a single child Each gene is inherited from gen2 with probability rate For low rate, children are similar to gen1
def jWUT(ut8I, UPFq, mVUw=0.5): xl3_ = ut8I.genes aeKf = UPFq.genes ZHfW = oyIN.random.rand(172) > mVUw zP79 = oyIN.where(ZHfW, xl3_, aeKf) return N7AY.fromArray(zP79)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EkNH(pSdJ, UvTl):\n Wa36 = []\n GnCH = int(tuKI.random() * len(pSdJ))\n Lpu4 = int(tuKI.random() * len(pSdJ))\n q4hV = min(GnCH, Lpu4)\n zjEE = max(GnCH, Lpu4)\n for YRbF in range(q4hV, zjEE):\n Wa36.append(pSdJ[YRbF])\n Q2WT = [ZfUD for ZfUD in UvTl if ZfUD not in Wa36]\n aUGN =...
[ "0.71691424", "0.7149268", "0.71092826", "0.6972854", "0.69096416", "0.69038045", "0.6861618", "0.685663", "0.68431216", "0.6835184", "0.68334955", "0.680339", "0.6796415", "0.6787162", "0.67455745", "0.6678278", "0.6673607", "0.66502386", "0.65574944", "0.65381354", "0.65236...
0.0
-1
Given a tensor of images, uses the torchvision normalization method to convert floating point data to integers. See reference
def xBNz(Yw_3): kpLf = float(Yw_3.min()) JCoA = float(Yw_3.max()) Yw_3.clamp_(min=kpLf, max=JCoA) Yw_3.add_(-kpLf).div_(JCoA - kpLf + 1e-05) Yw_3 = Yw_3.mul_(255).add_(0.5).clamp_(0, 255).permute(0, 2, 3, 1).to('cpu', ht2j.uint8).numpy() return Yw_3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO):\n YKHO._images = YKHO._images.astype('float32')\n YKHO._images -= 127.5\n YKHO._images /= 127.5\n YKHO._images *= YKHO._normalization_factor\n pass", "def NkkI(vhpA: torch.Tensor) -> ht2j.Tensor:\n if vhpA.dtype == ht2j.float32:\n pass\n elif vhpA.dtype == ht2j.int32:\...
[ "0.7325915", "0.72608185", "0.7219633", "0.70526797", "0.70526797", "0.7021093", "0.6973266", "0.6935811", "0.691447", "0.69068706", "0.689726", "0.6888867", "0.6821586", "0.6821155", "0.6809529", "0.6795646", "0.67927897", "0.67824835", "0.67710453", "0.6770448", "0.6768732"...
0.7430412
0
Reduce the loss dictionary from all processes so that process with rank 0 has the averaged results. Returns a dict with the same fields as loss_dict, after reduction.
def zD6D(WdtA): aDYX = OZRt() if aDYX < 2: return WdtA with ht2j.no_grad(): ZDdy = [] s_xK = [] for G1Hx in sorted(WdtA.keys()): ZDdy.append(G1Hx) s_xK.append(WdtA[G1Hx]) s_xK = ht2j.stack(s_xK, dim=0) pImw.reduce(s_xK, dst=0) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zD6D(WdtA: dict) -> dict:\n aDYX = VVSc()\n if aDYX < 2:\n return WdtA\n with ht2j.no_grad():\n ZDdy = []\n s_xK = []\n for G1Hx in sorted(WdtA.keys()):\n ZDdy.append(G1Hx)\n s_xK.append(WdtA[G1Hx])\n s_xK = ht2j.stack(s_xK, dim=0)\n pImw...
[ "0.68149406", "0.67693603", "0.6204686", "0.59170705", "0.5775018", "0.5767663", "0.57337195", "0.5718259", "0.5603478", "0.5593352", "0.5582469", "0.5569651", "0.5504923", "0.55031997", "0.55030113", "0.5493006", "0.5483163", "0.5456761", "0.5451883", "0.54133564", "0.539217...
0.6788404
1
Get the current FPS.
def kgix(uOR6: int=60) -> float: fkZM = ITS7.perf_counter() if len(D8r0) == 0: return 0 if len(D8r0) < uOR6: uOR6 = len(D8r0) SWox = D8r0[-uOR6] RGHr = fkZM - SWox bW5R = uOR6 / RGHr return bW5R
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kgix(YKHO):\n return YKHO._fps", "def kgix(YKHO):\n return YKHO.fps", "def kgix(YKHO):\n return YKHO.fps", "def kgix(YKHO):\n return YKHO.fps", "def kgix(YKHO):\n return YKHO.fps", "def kgix(YKHO):\n return YKHO.properties['fps']", "def bW5R(YKHO):\n return YKHO._fps", "def R...
[ "0.83044434", "0.82254785", "0.82254785", "0.82254785", "0.82254785", "0.79880464", "0.7964474", "0.78003967", "0.779082", "0.77127177", "0.7674384", "0.7664283", "0.76283085", "0.76088554", "0.75955796", "0.74548256", "0.7426891", "0.73458534", "0.7250322", "0.7239386", "0.7...
0.7178944
20