query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
The detail view of a question with a pub_date in the future should return a 404 not found
def MfRe(YKHO): vS5o = II0Q(question_text='Future question', days=5) geh0 = YKHO.client.get(gxEw('polls:detail', args=(vS5o.id,))) YKHO.assertEqual(geh0.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MfRe(YKHO):\n vS5o = II0Q(question_text='Future question.', days=5)\n geh0 = YKHO.client.get(gxEw('polls:detail', args=(vS5o.id,)))\n YKHO.assertEqual(geh0.status_code, 404)", "def MfRe(YKHO):\n vS5o = II0Q(question_text='Future question', days=5)\n bD7m = gxEw('polls:detail', args=(vS5o.id,))...
[ "0.7465095", "0.74370164", "0.7328822", "0.696667", "0.6928491", "0.68733644", "0.68635327", "0.6860058", "0.6852723", "0.67572737", "0.6734475", "0.6692591", "0.6686302", "0.66791445", "0.66613936", "0.66373783", "0.65971273", "0.6587561", "0.6572185", "0.6571939", "0.657109...
0.7454056
1
The detail of a question with a pub_date in the past should display the qeustion's text
def AVfH(YKHO): g3ow = II0Q(question_text='Past question', days=-30) geh0 = YKHO.client.get(gxEw('polls:detail', args=(g3ow.id,))) YKHO.assertContains(geh0, g3ow.question_text, status_code=200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return 'question_text: ' + YKHO.question_text + '\\npub_date:' + YKHO.pub_date.__str__()", "def AVfH(YKHO):\n g3ow = II0Q(question_text='Past question', days=-5)\n bD7m = gxEw('polls:detail', args=(g3ow.id,))\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertContains(geh0, g3ow.questio...
[ "0.7231983", "0.65183586", "0.65135074", "0.64287055", "0.6427096", "0.640454", "0.63872045", "0.61895484", "0.60544944", "0.6033458", "0.6027797", "0.6027278", "0.6018954", "0.6007511", "0.59893477", "0.59845465", "0.5980241", "0.59787977", "0.59606546", "0.5934973", "0.5934...
0.6508841
3
Tests the WriteProjects function.
def Cci4(YKHO): o3Ni = JKCy.VSSolutionProject('name', 'file', 'guid') kIdj = mKSm.VSSolutionFileWriter() kIdj._file = xDSY.BytesIO() kIdj.WriteProjects([o3Ni]) kIdj._file.seek(0, Hy7s.SEEK_SET) VdBn = kIdj._file.read() YKHO.assertEqual(VdBn, b'')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FWbI(YKHO):\n o3Ni = JKCy.VSSolutionProject('name', 'filename', 'guid')\n kIdj = mKSm.VS2010SolutionFileWriter()\n kIdj._file = xDSY.BytesIO()\n kIdj.WriteProject(o3Ni)\n kIdj._file.seek(0, Hy7s.SEEK_SET)\n VdBn = kIdj._file.read()\n _fPm = b'Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942...
[ "0.77998793", "0.7701273", "0.7217734", "0.7195361", "0.7166878", "0.7027338", "0.6999884", "0.6944488", "0.69393265", "0.6915377", "0.6915377", "0.6915377", "0.68632686", "0.6814088", "0.67203605", "0.67108923", "0.67108923", "0.6631687", "0.66254747", "0.6597005", "0.659700...
0.8232287
0
Hide the left list with associated buttons.
def k7CA(YKHO): YKHO._hideitemlist(CcJz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvj2(YKHO):\n if hasattr(YKHO, '_details'):\n YKHO._details.hide()\n aHWu = [YKHO.toolbar] if isinstance(YKHO.toolbar, str) else YKHO.toolbar\n if aHWu:\n for z1Rg in aHWu:\n if z1Rg and hasattr(YKHO, z1Rg):\n getattr(YKHO, z1Rg).show()\n YKHO._list.show()\n ...
[ "0.7199304", "0.71847236", "0.7032018", "0.6765964", "0.67150974", "0.63869405", "0.6375561", "0.6357977", "0.6335562", "0.6312002", "0.62731373", "0.62177813", "0.61750305", "0.61573493", "0.60736567", "0.5938489", "0.59095347", "0.59063184", "0.58670026", "0.58586365", "0.5...
0.7500013
0
Add items to the left list.
def HcYl(YKHO, DumB, oeNL): YKHO._leftlist.insert(oeNL, DumB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YUDv(YKHO, tCDc):\n YKHO.items = tCDc + YKHO.items\n return YKHO.items", "def rwLV(YKHO, *qIxc, **B2fa):\n pass", "def lTKf(YKHO, DumB, oeNL):\n YKHO._rightlist.insert(oeNL, DumB)", "def rwLV(YKHO, ZfUD):\n X1Cd = o7DN(ZfUD, YKHO.head.next)\n YKHO.head.next = X1Cd\n YKHO._size += 1",...
[ "0.7398808", "0.6948977", "0.68690693", "0.6832749", "0.6806612", "0.65225494", "0.6519588", "0.64178354", "0.6410609", "0.63751113", "0.6339531", "0.6339531", "0.6338133", "0.6337803", "0.6288872", "0.6284949", "0.6279986", "0.624332", "0.6136764", "0.61081666", "0.6046776",...
0.85111964
0
Replace an item in the left list.
def xPEL(YKHO, oeNL, Kvup): YKHO._leftlist.replace(oeNL, Kvup)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drnH(YKHO, oeNL, Kvup):\n YKHO._rightlist.replace(oeNL, Kvup)", "def HcYl(YKHO, DumB, oeNL):\n YKHO._leftlist.insert(oeNL, DumB)", "def JR58(aPd6):\n F67R = aPd6[0]\n for YRbF in range(1, len(aPd6)):\n aPd6[YRbF - 1] = aPd6[YRbF]\n aPd6[-1] = F67R", "def rwLV(YKHO, ZfUD):\n X1Cd ...
[ "0.7316302", "0.6619246", "0.6389923", "0.61740845", "0.61405146", "0.6124647", "0.6102235", "0.6070367", "0.5963874", "0.5925284", "0.5913263", "0.5843293", "0.57933193", "0.5772171", "0.57672626", "0.575624", "0.57463413", "0.57104033", "0.57059133", "0.57059133", "0.570474...
0.82617414
0
Return the left list as a list of strings.
def B6dI(YKHO): return YKHO._leftlist.get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eohS():\n return [['wrath', 'anger', 'delight'], ['fond', 'enamored', 'averse'], ['guide', 'usher', 'jam'], ['outfit', 'garb', 'follow'], ['diligent', 'employed', 'idle']]", "def BtSI(YKHO) -> list:\n gGq6 = []\n LFlW = []\n gGq6.append(YKHO)\n while len(gGq6) > 0:\n for YRbF in range(l...
[ "0.68093973", "0.65685374", "0.6259618", "0.6227167", "0.62120026", "0.6176302", "0.6133818", "0.6035178", "0.6029446", "0.59406936", "0.59406936", "0.5810261", "0.5777096", "0.57002753", "0.5653908", "0.56286365", "0.56286365", "0.56265116", "0.561089", "0.5610578", "0.56103...
0.72812694
0
Hide the right list with associated buttons.
def ox2K(YKHO): YKHO._hideitemlist(udO1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvj2(YKHO):\n if hasattr(YKHO, '_details'):\n YKHO._details.hide()\n aHWu = [YKHO.toolbar] if isinstance(YKHO.toolbar, str) else YKHO.toolbar\n if aHWu:\n for z1Rg in aHWu:\n if z1Rg and hasattr(YKHO, z1Rg):\n getattr(YKHO, z1Rg).show()\n YKHO._list.show()\n ...
[ "0.770959", "0.71673775", "0.6930048", "0.68198544", "0.6734804", "0.6733009", "0.671899", "0.6582263", "0.6574639", "0.6568872", "0.6519914", "0.6506404", "0.6482521", "0.6369918", "0.627988", "0.624365", "0.61586857", "0.61329514", "0.61112493", "0.6107773", "0.6096466", ...
0.74686515
1
Return the right list as a list of strings.
def DsGo(YKHO): return YKHO._rightlist.get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sCS9(aPd6):\n o4sw = ''\n for WKvO in aPd6:\n o4sw += str(WKvO)\n return o4sw", "def JGq5(YKHO):\n pass", "def NOSI(aPd6):\n return [str(WKvO) for WKvO in aPd6]", "def jL8G(uBiB):\n OFuV = []\n for ZfUD in uBiB:\n if not isinstance(ZfUD, list):\n if not isins...
[ "0.71020573", "0.70432144", "0.70036364", "0.69376296", "0.68838024", "0.6803394", "0.6741269", "0.67406344", "0.6711513", "0.658475", "0.65800935", "0.65538466", "0.6546351", "0.6543239", "0.65323985", "0.65034825", "0.65028024", "0.64866114", "0.6441124", "0.64124703", "0.6...
0.0
-1
Builds the spatial gaussian filter
def sN1C(exwG, WTkW): UU6M = oyIN.zeros((exwG, exwG)) _9an = exwG // 2 for YRbF in range(exwG): for r845 in range(exwG): wEf2 = ((YRbF - _9an) ** 2 + (r845 - _9an) ** 2) ** 0.5 UU6M[YRbF][r845] = IAWS(wEf2, WTkW) return UU6M
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apUX(WKvO):\n return IAwP(WKvO, 3)", "def apUX(YKHO, WTkW):\n ZHfW = YKHO.get_weighted_mask()\n xop7 = RMvl.gaussian_filter(ZHfW, sigma=WTkW)\n return Zrk1(xop7, YKHO.altPos, YKHO.aziPos, sign=YKHO.sign, temporalWindow=YKHO.temporalWindow, pixelSizeUnit=YKHO.pixelSizeUnit, dataType=YKHO.dataType,...
[ "0.70848453", "0.6906198", "0.6858145", "0.67343736", "0.66166544", "0.6580515", "0.65506697", "0.65310293", "0.6440362", "0.6429863", "0.6310756", "0.6308838", "0.626769", "0.6187668", "0.61803114", "0.6164105", "0.6160716", "0.611656", "0.60857046", "0.60747415", "0.6060514...
0.63107806
10
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues, l5Ny=False): if not leAC: if NkkI: leAC = 'Normalized confusion matrix' else: leAC = 'Confusion matrix, without normalization' Bcwd = YsYU(Y8eF, aMgO, labels=KndY) if NkkI: Bcwd = Bcwd.astyp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.0
-1
Declare exchange for queue.
async def declare_exchange(YKHO) -> V7ok.Future: KS9L = YKHO._backend._create_future() def BkmB(f4IJ): KS9L.set_result(f4IJ) YKHO.log.debug('Exchange `%s` declared ok', YKHO.exchange) YKHO._channel.exchange_declare(BkmB, YKHO.exchange, YKHO.exchange_type) return KS9L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzLm(YKHO):\n YKHO.logger.info('declaring exchange %s', YKHO.exchange)\n YKHO._channel.exchange_declare(YKHO.on_exchange_declareok, YKHO.exchange, YKHO.exchange_type)", "async def declare(YKHO) -> 'Queue':\n YKHO._channel = await YKHO._backend.channel()\n YKHO.log.debug('Channel acquired CHANNEL%...
[ "0.7781021", "0.7508126", "0.7418307", "0.71911263", "0.7166336", "0.70669943", "0.7066749", "0.6991603", "0.6963174", "0.69463104", "0.6867439", "0.68669176", "0.68404776", "0.6791428", "0.67669785", "0.66712964", "0.66649693", "0.6560258", "0.64725375", "0.64126927", "0.631...
0.7245586
3
Computes the difference in days between two dates.
def Sm0u(n2Q1, SpII, x8us): yKcO = qcWV.strptime(n2Q1, x8us) JCyR = qcWV.strptime(SpII, x8us) RA_F = JCyR - yKcO return RA_F.days
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fb4y(Ilc0, w0do):\n return abs(w0do - Ilc0).days", "def RQrg(w0do, Ilc0):\n _sQW = qcWV.datetime.strptime(w0do, '%Y-%m-%d').date()\n AjzU = qcWV.datetime.strptime(Ilc0, '%Y-%m-%d').date()\n return (_sQW - AjzU).days", "def qfAF(YKHO, AjzU, _sQW):\n YKHO.is_not_used()\n try:\n AjzU ...
[ "0.8406581", "0.7928747", "0.78135186", "0.7656524", "0.75229293", "0.74860615", "0.7472408", "0.7375814", "0.7362236", "0.72220373", "0.7219344", "0.71616554", "0.70720047", "0.6945283", "0.6847314", "0.6791213", "0.66582143", "0.6651553", "0.66408193", "0.6610453", "0.65629...
0.73380524
9
Return the nuclear binding energy associated with an isotope.
def KGIa(il4J: Particle, M7au: Optional[Integral]=None) -> P6bq.J: return il4J.binding_energy.to(P6bq.J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rXxE(YKHO):\n return YKHO._bind_energy", "def M6MN(YKHO):\n return YKHO.momentum * YKHO.momentum / (2 * YKHO.mass)", "def VYvU(YKHO):\n FJKp = 0.0\n for YRbF in range(0, YKHO.natoms - 1):\n for r845 in range(YRbF + 1, YKHO.natoms):\n e9XQ = YKHO.atoms[YRbF].xyz - YKHO.atoms[r8...
[ "0.6126995", "0.60313594", "0.6021848", "0.594922", "0.59394354", "0.5862146", "0.5848031", "0.5780028", "0.57739526", "0.5684939", "0.5671667", "0.56603223", "0.56538826", "0.5640235", "0.5640109", "0.55997443", "0.55997443", "0.556194", "0.55206907", "0.55113035", "0.548834...
0.71787757
0
Return a particle's mass energy. If the particle is an isotope or nuclide, return the nuclear mass energy only.
def WEVm(il4J: Particle, M7au: Optional[Integral]=None) -> P6bq.J: return il4J.mass_energy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f_4S(YKHO):\n return YKHO.params['particleMass']", "def jxP3(YKHO):\n return bMU8.reactor_intEnergy_mass(YKHO.__reactor_id)", "def WEVm():\n iYf1 = GPBl.c.value ** 2\n return jApF([(QJlQ.kg, QJlQ.J, lambda WKvO: WKvO * iYf1, lambda WKvO: WKvO / iYf1), (QJlQ.kg / QJlQ.m ** 2, QJlQ.J / QJlQ.m ** ...
[ "0.73471344", "0.7179936", "0.7131407", "0.70101446", "0.6928021", "0.6886441", "0.6879889", "0.68210626", "0.67972165", "0.67203254", "0.67010635", "0.6693287", "0.6679324", "0.6621035", "0.6528675", "0.6483354", "0.6446284", "0.6393113", "0.6393113", "0.63216066", "0.631784...
0.819669
0
to_categorical. Convert class vector (integers from 0 to nb_classes) to binary class matrix, for use with categorical_crossentropy.
def fKLU(LVAh, Ybg9): LVAh = oyIN.asarray(LVAh, dtype='int32') if not Ybg9: Ybg9 = oyIN.max(LVAh) + 1 fuBA = oyIN.zeros((len(LVAh), Ybg9)) for YRbF in range(len(LVAh)): fuBA[YRbF, LVAh[YRbF]] = 1.0 return fuBA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fKLU(WKvO, jTqs):\n return oyIN.eye(jTqs, dtype='uint8')[WKvO]", "def fKLU(LVAh, jTqs):\n return oyIN.eye(jTqs, dtype='uint8')[LVAh]", "def fKLU(LVAh, jTqs):\n return oyIN.eye(jTqs, dtype='uint8')[LVAh]", "def fKLU(LVAh, jTqs):\n return oyIN.eye(jTqs, dtype='uint8')[LVAh]", "def fKLU(LVAh, ...
[ "0.82260484", "0.80667555", "0.80667555", "0.80667555", "0.80667555", "0.80667555", "0.8048802", "0.80279225", "0.789644", "0.78796744", "0.77850944", "0.77732944", "0.77316386", "0.77169", "0.77133614", "0.77082926", "0.7661918", "0.7549069", "0.735227", "0.7332984", "0.7316...
0.7958936
8
Construct a DataSet. one_hot arg is used only if fake_data is true. `dtype` can be either `uint8` to leave the input as `[0, 255]`, or `float32` to rescale into `[0, 1]`.
def FIMM(YKHO, Yw_3, Crrw, Ep8u, I9qO=False, KLLm=False, yDqo=ZylS.float32, n7Bx=False): yDqo = ZylS.as_dtype(yDqo).base_dtype if yDqo not in (ZylS.uint8, ZylS.float32): raise TypeError('Invalid image dtype %r, expected uint8 or float32' % yDqo) if I9qO: YKHO._num_examples = 10000 YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(WKvO, jTqs, yDqo=oLG2.float32):\n return yOcR.nn.one_hot(WKvO, jTqs).astype(yDqo)", "def OVnz(Crrw: np.ndarray, LeZt: int, jDK_: int=0, JsoO=False, yDqo=bool):\n if JsoO:\n assert Crrw.shape[jDK_] == 1\n nbIQ = Crrw.ndim\n else:\n nbIQ = Crrw.ndim + 1\n if jDK_ < 0:\n ...
[ "0.69277316", "0.63685834", "0.6323719", "0.632244", "0.6283671", "0.62293434", "0.6220528", "0.619714", "0.61865234", "0.6174522", "0.61674124", "0.6167214", "0.61601204", "0.61573094", "0.61573094", "0.6152494", "0.61482465", "0.6141931", "0.6114069", "0.61127585", "0.61126...
0.0
-1
Returns subscription from RH marketplace. None returned if no subscription is found.
def U0zg(MqZd): bJnU = [] if MqZd.organization: xDcj = BJV0.get_org_subscriptions(MqZd.id) mot3 = list(xDcj.dicts()) if xDcj is not None else [] for mouR in mot3: JuHa = mouR['subscription_id'] PXIM = WwuI.get_subscription_sku(JuHa) bJnU.append(oXNc(PX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Iew(YKHO):\n geh0 = G4JS.get('https://www.googleapis.com/youtube/v3/subscriptions', params={'part': 'snippet', 'mine': 'true', 'forChannelId': YKHO.channel_id}, headers=YKHO.headers)\n if geh0.status_code == 200:\n return geh0.json()\n return {}", "def nxRy(YKHO):\n return YKHO.request({'...
[ "0.6917027", "0.68124664", "0.6391136", "0.6391136", "0.63900375", "0.6244377", "0.6237581", "0.6237581", "0.6227604", "0.62093335", "0.6112149", "0.6108837", "0.6075639", "0.6073726", "0.6056227", "0.6023441", "0.5971113", "0.5897838", "0.58673143", "0.56633675", "0.5612202"...
0.0
-1
Fetch any existing subscription for the user.
def NMoC(YKHO): a2p3 = None CBIr = DjFc() PJLj = C3ST.user.get_private_repo_count(CBIr.username) if CBIr.stripe_id: try: a2p3 = HK3E.Customer.retrieve(CBIr.stripe_id) except OtaY.error.APIConnectionError as e: eTsH(503, message='Cannot contact Stripe') if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n CBIr = DjFc()\n lb7m = Uib0.get_account_number(CBIr)\n if not lb7m:\n raise oEgM()\n FMSH = WwuI.get_list_of_subscriptions(lb7m)\n for mouR in FMSH:\n BP_5, wbiw = BJV0.subscription_bound_to_org(mouR['id'])\n if BP_5:\n mouR['assigned_to_org'] = wbiw...
[ "0.727217", "0.702665", "0.694784", "0.68337953", "0.6749732", "0.6716749", "0.6694756", "0.66495746", "0.6613002", "0.66031724", "0.65029895", "0.64654076", "0.6443347", "0.64124423", "0.6382712", "0.63508177", "0.6342305", "0.62917507", "0.62909585", "0.6280539", "0.6239422...
0.6490319
11
Fetch any existing subscription for the org.
def NMoC(YKHO, mhSX): a2p3 = None Uvf2 = gekv(mhSX) if Uvf2.can(): PJLj = C3ST.user.get_private_repo_count(mhSX) wbiw = C3ST.organization.get_organization(mhSX) if wbiw.stripe_id: try: a2p3 = HK3E.Customer.retrieve(wbiw.stripe_id) except OtaY.e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, mhSX):\n Uvf2 = gekv(mhSX)\n if Uvf2.can():\n wbiw = C3ST.organization.get_organization(mhSX)\n xDcj = C3ST.organization_skus.get_org_subscriptions(wbiw.id)\n if xDcj:\n eSe8 = list(xDcj.dicts())\n for mouR in eSe8:\n mouR['sku'] = WwuI...
[ "0.7433474", "0.676344", "0.66400635", "0.6486406", "0.6395439", "0.63730305", "0.63252914", "0.6200402", "0.61924785", "0.6181714", "0.61109835", "0.60879236", "0.60788506", "0.6046341", "0.6037981", "0.60107756", "0.59909296", "0.5943589", "0.5937596", "0.58616847", "0.5857...
0.66069144
3
Get sku assigned to org
def NMoC(YKHO, mhSX): Uvf2 = gekv(mhSX) if Uvf2.can(): wbiw = C3ST.organization.get_organization(mhSX) xDcj = C3ST.organization_skus.get_org_subscriptions(wbiw.id) if xDcj: eSe8 = list(xDcj.dicts()) for mouR in eSe8: mouR['sku'] = WwuI.get_subscrip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXIM(YKHO):\n return YKHO._sku", "def PXIM(YKHO) -> qe4Y.Output[h8nf['outputs.SkuDescriptionResponse']]:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> qe4Y.Output[h8nf['outputs.SkuDescriptionResponse']]:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> 'outputs.SkuResponse':\n return...
[ "0.7663973", "0.7591175", "0.7591175", "0.75838256", "0.75838256", "0.757788", "0.757788", "0.747845", "0.747845", "0.7452164", "0.7315075", "0.72443485", "0.7187031", "0.7187031", "0.7187031", "0.71775377", "0.7167821", "0.71613175", "0.710244", "0.7020652", "0.69835085", ...
0.5972239
32
The ID of the EFS volume, e.g. `fs0123cdef`. Required. Immutable.
def aUdr(YKHO) -> str: return qe4Y.get(YKHO, 'file_system_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z5cL(YKHO):\n return YKHO._volume_id", "def Z5cL(YKHO):\n if YKHO.volume:\n return YKHO.volume.id\n else:\n return None", "def qxeD(YKHO):\n if KrGg.string.is_fs_uuid(YKHO._id):\n return YKHO._id\n return YKHO.get_udev_property('ID_FS_UUID')", "def ym_7(YKHO, FNha):\n ...
[ "0.76780653", "0.75158453", "0.66730714", "0.6299974", "0.6277481", "0.62374896", "0.62069404", "0.62069404", "0.6206588", "0.6060854", "0.6040502", "0.6040502", "0.60053104", "0.59713244", "0.59494144", "0.5912962", "0.58968335", "0.5864999", "0.58258766", "0.5804685", "0.57...
0.63653195
3
This function prints and plots the confusion matrix.
def LwSz(Bcwd, KndY, YAq3, iMGt=QrM1.cm.Reds): QrM1.figure(figsize=(10, 8)) leAC = 'Confusion Matrix (Accuracy: %0.3f%%)' % (YAq3 * 100) print(Bcwd) QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC, fontsize=16) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xtic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()", "def zd4X(YKHO):\n gAeH.heatmap(YKHO.conf_matrix, annot=True)\n QrM1.plot(label='Accuracy')\n QrM1.plot(label='Error')\n QrM1.figtext(0, 0, 'Accuracy: {}\\nError: {}\\nRecall: {}\\nPrecision: {}'.format(YKHO...
[ "0.80894613", "0.80770946", "0.79976976", "0.7946727", "0.7921785", "0.78448296", "0.7833224", "0.7781221", "0.7775631", "0.77574563", "0.77061635", "0.7692213", "0.76785815", "0.76588994", "0.7641414", "0.7622791", "0.7611233", "0.7610989", "0.7598244", "0.758727", "0.758452...
0.77016985
11
Copies the current state dictionary (`self.state`) to the simulation state dictionary (`self.sim_state`)
def Zbwd(YKHO): YKHO.sim_state = {G1Hx: Ty9i for G1Hx, Ty9i in YKHO.state.iteritems()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVzl(xA7f: dict):\n vR9f.set_env_state(xA7f)", "def hdXp(YKHO, xA7f):\n super().set_state(jth9.deepcopy(xA7f))\n YKHO._client_state = jth9.deepcopy(xA7f.get('_client_state'))\n YKHO._trials_map = jth9.deepcopy(xA7f.get('_trials_map'))", "def cNOv(YKHO):\n QTBn = YKHO.rigid_body_state\n QT...
[ "0.71074384", "0.6782745", "0.6732431", "0.6727195", "0.6662992", "0.6634903", "0.66279715", "0.66120386", "0.65967447", "0.6583836", "0.6487327", "0.6452144", "0.64447504", "0.64050144", "0.63940907", "0.638837", "0.6377453", "0.6366176", "0.63551056", "0.6346229", "0.633461...
0.83781934
0
Decorator to wrap chainable commands, allowing for immediate execution of the wrapped command by passing in an `execute=True` kwarg.
def rpAb(JfyU): @zaGL(JfyU) def VlRU(YKHO, *qIxc, **B2fa): nhfz = False if 'execute' in B2fa: nhfz = B2fa.pop('execute') if 'minimal_reset' in B2fa: BivX = B2fa.pop('minimal_reset') else: BivX = False JfyU(YKHO, *qIxc, **B2fa) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBWT(eHNT, HCmI):\n\n def NJG4(YKHO, *qIxc, **B2fa):\n qIxc = (HCmI,) + qIxc\n return eHNT(*qIxc, **B2fa)\n return NJG4", "def oUZx(b6ry=None, PVn9=(), WO1f='', Zode=False, fG5q=False, umFI=False):\n\n def mrMx(FYKK):\n FYKK.is_command = True\n FYKK.synonyms = PVn9\n ...
[ "0.67380124", "0.6521982", "0.6192524", "0.6141728", "0.6096048", "0.6013635", "0.5874178", "0.5783662", "0.57833076", "0.57513505", "0.5655654", "0.5646015", "0.5546433", "0.55205965", "0.551244", "0.5505672", "0.5488535", "0.5472915", "0.5452738", "0.54519683", "0.54362726"...
0.74900055
0
Get a Kubernetes Dashboard access URL for this Cluster.
def UkHq(YKHO): Aofo = YKHO._client.get('{}/dashboard'.format(dh8u.api_endpoint), model=YKHO) return Aofo['url']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MOIE(YKHO) -> str:\n return YKHO._dashboard_url", "def zoLr(Y7oe):\n rg9C = ''\n from deployment.environment import *\n zjkT = jx8I(Y7oe)\n if zjkT:\n rg9C = 'http://' + zjkT[0]['ip'] + '/'\n return rg9C", "def rUDn(YKHO):\n bD7m = 'http://127.0.0.1/horizon'\n WKvO = KVWQ(YKH...
[ "0.7049282", "0.658814", "0.6374867", "0.622899", "0.5916835", "0.5835267", "0.564587", "0.5611031", "0.5587467", "0.55657405", "0.5496111", "0.5494705", "0.5464434", "0.5422584", "0.5366286", "0.53152597", "0.52988446", "0.5274182", "0.5267831", "0.52314776", "0.5222616", ...
0.7632947
0
Removes user defined changes from config
def Mcdd(): WGVT = EPgv.config.config _Fei = EPgv.config.Configuration() aPr_ = EPgv.names.config_file_basename sQ_Z = Hy7s.path.join(EPgv.paths.etc_path, 'defaults', aPr_) muwo = EPgv.config.load_config(sQ_Z) _Fei.push_scope('defaults', muwo) TLI7 = nfKA.path.local(gbPf.mkdtemp()) EPgv....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0SS(YKHO):\n RC9R = YKHO.__class__.CONFIG_PROPERTIES\n for YWBp in YKHO._modified:\n rumn = RC9R.get(YWBp)\n if rumn and rumn.input_func:\n YKHO._config[YWBp] = rumn.input_func(YKHO._config[YWBp])\n YKHO._modified.clear()", "def YXOW(YKHO):\n EYw0 = [Byma.ADDED_USER, Bym...
[ "0.69350046", "0.689565", "0.68783915", "0.68354017", "0.6730011", "0.66864425", "0.6645544", "0.6619824", "0.6591215", "0.6562911", "0.6473854", "0.6387824", "0.63778603", "0.63579047", "0.6336389", "0.6331546", "0.6196735", "0.61814016", "0.61658597", "0.61461383", "0.61270...
0.0
-1
returns the train (and test if selected) loaders for the olivetti rotated faces dataset
def NewG(Ep8u=128, QOe9=True, i0XC='./data/'): BkYD = oyIN.load(i0XC + 'rotated_faces_data.npz') sVsK = ht2j.FloatTensor(BkYD['train_images']) JCJW = ht2j.FloatTensor(BkYD['train_angles']) YTfV = ht2j.utils.data.TensorDataset(sVsK, JCJW) AHI0 = ht2j.utils.data.DataLoader(YTfV, batch_size=Ep8u, shuff...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BMpb():\n U538 = kHEQ(dAVq, transform=dOxh, face=True)\n xOBn = kHEQ(dAVq, transform=dOxh, face=False)\n D6cr = MGYz(U538, 0.2, 0.0)\n VNYo = MGYz(xOBn, 0.2, 0.0)\n gMbG = {}\n gMbG['train'] = D6cr['train'] + VNYo['train']\n gMbG['test'] = VNYo['test']\n gMbG['val'] = D6cr['val'] + VNYo...
[ "0.69626784", "0.69410944", "0.6818357", "0.66996723", "0.66670394", "0.66224897", "0.6561423", "0.64823896", "0.64003897", "0.6352537", "0.63319135", "0.6238648", "0.6206694", "0.619519", "0.61648226", "0.6148471", "0.6135325", "0.6104861", "0.6077645", "0.60772943", "0.6070...
0.7952971
0
Add the item to the last level of the stack.
def _jXH(YKHO, ZfUD) -> None: YKHO.items.append(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO.stack.insert(0, ZfUD)", "def _jXH(YKHO, ZfUD: Any) -> None:\n if YKHO.hit is True and YKHO._stack:\n bo...
[ "0.80668455", "0.7656692", "0.7656692", "0.76038665", "0.753395", "0.7454897", "0.741971", "0.73342085", "0.7237736", "0.71183443", "0.70895195", "0.7011326", "0.6972942", "0.68915206", "0.6885691", "0.6846061", "0.6832934", "0.68147594", "0.66794455", "0.66783357", "0.667631...
0.6773966
18
Get the last item from the top of the stack. If the stack is empty, will print that the stack is empty.
def BEuN(YKHO) -> object or None: if len(YKHO.items) > 0: return YKHO.items.pop() else: print('Stack is empty! \n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tlxW(YKHO):\n try:\n if YKHO.size() > 0:\n return YKHO.items[len(YKHO.items) - 1]\n else:\n raise IndexError('Cannot get top item, stack is empty.')\n except IndexError as err:\n print(XObx)\n raise", "def tlxW(YKHO):\n if YKHO.is_empty():\n r...
[ "0.7735729", "0.7613924", "0.7610834", "0.76019424", "0.75833285", "0.749229", "0.7423774", "0.7411805", "0.7411552", "0.7388405", "0.7366177", "0.73643327", "0.73507077", "0.7338133", "0.73219585", "0.7316381", "0.7295624", "0.7248007", "0.72400844", "0.72378695", "0.723399"...
0.72282594
24
test if the stack is empty.
def b7Vy(YKHO) -> bool: return YKHO.items == []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n if YKHO.num_items ==...
[ "0.92184854", "0.91338575", "0.89801025", "0.8934814", "0.8934814", "0.89057714", "0.8879942", "0.8874342", "0.88432723", "0.8818194", "0.88143766", "0.88084346", "0.87563837", "0.86835235", "0.86590123", "0.86310226", "0.8619374", "0.85913885", "0.85913885", "0.8586636", "0....
0.0
-1
Return the number of levels of the stack.
def H2v2(YKHO) -> int: return len(YKHO.items)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vZKM(YKHO) -> int:\n return len(YKHO._levels)", "def qqoI(YKHO):\n return YKHO._nlevels", "def Cb9n(YKHO):\n return YKHO.primary_header['Number of levels']", "def nM1o(YKHO):\n return len(YKHO._Psi)", "def pC6d(YKHO):\n UHFx = 0\n for YRbF in range(0, len(YKHO.matrix)):\n for r...
[ "0.818606", "0.79850614", "0.77469826", "0.7497867", "0.7483659", "0.7447236", "0.71516824", "0.7103937", "0.7100037", "0.70526385", "0.70526385", "0.6889827", "0.6850176", "0.6824847", "0.6822693", "0.68187076", "0.6769535", "0.6765189", "0.6764915", "0.6750579", "0.6731889"...
0.0
-1
Removes the input node from its current spot in the List and inserts it as the new head node of the List.
def Tmr3(YKHO, Q6kx): if Q6kx is YKHO.head: return BWXx = Q6kx.value YKHO.delete(Q6kx) YKHO.add_to_head(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rm5c(IqQl):\n try:\n sdCG = o7DN(IqQl.pop(0))\n while len(IqQl) > 0:\n kMLo = sdCG\n while kMLo.next:\n kMLo = kMLo.next\n kMLo.next = o7DN(IqQl.pop(0))\n except IndexError:\n sdCG = None\n return sdCG", "def RHuc(YKHO, Q6kx):\n ...
[ "0.6993568", "0.69826233", "0.6885242", "0.682928", "0.6725177", "0.66019416", "0.65920186", "0.65714943", "0.6519824", "0.6516198", "0.65063757", "0.6482394", "0.6480161", "0.64429533", "0.6419488", "0.6414184", "0.63835144", "0.63743514", "0.63153565", "0.6288156", "0.62872...
0.68576205
3
Retrieves the value associated with the given key. Moves the keyvalue pair to the end of the order such that the pair is considered mostrecently used. Returns the value associated with the key or None if the keyvalue pair doesn't exist in the cache.
def NMoC(YKHO, H5ew): Q6kx = YKHO.head BWXx = None vtfo = False while Q6kx: if Q6kx.key == H5ew: vtfo = True break if vtfo: if Q6kx is YKHO.head: BWXx = Q6kx.value else: YKHO.delete(Q6kx) Esd_ = Ta6i(H5ew, BWXx) YKHO.len...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew):\n if H5ew in YKHO.cache:\n BWXx = YKHO.cache[H5ew].value\n YKHO._re_enqueue(YKHO.cache[H5ew])\n return BWXx\n else:\n return -1", "def NMoC(YKHO, H5ew):\n ekgN = YKHO.hash_index(H5ew)\n if YKHO.storage[ekgN]:\n if YKHO.storage[ekgN].next:\n ...
[ "0.7695546", "0.76105016", "0.75953025", "0.7400571", "0.73538", "0.7351288", "0.7315402", "0.72210455", "0.72210455", "0.7210519", "0.71965694", "0.71468765", "0.7130234", "0.71035", "0.7097476", "0.7012658", "0.69800293", "0.69739383", "0.6951334", "0.69302875", "0.69174176...
0.72985613
7
Customized line plot with error bars.
def o4Zw(aNZO, WKvO, LVAh, P1dF, r2gD, Qzoi, qfpW='red'): aNZO.errorbar(WKvO, LVAh, yerr=P1dF, color=qfpW, ls='--', marker='o', capsize=5, capthick=1, ecolor='black') aNZO.set_xlim(r2gD) aNZO.set_ylim(Qzoi) return aNZO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RvHf(YKHO, aNZO):\n return aNZO.errorbar(YKHO.lefts + YKHO.widths * 0.5, YKHO.values, yerr=YKHO.yerr, xerr=0.5 * YKHO.widths, marker='o', color=YKHO.color, label=YKHO.label, capsize=0, ls='', **YKHO.options)", "def qmWk(WKvO, LVAh, EGG0, **B2fa):\n for CAzz, Jd40, snFj in zip(WKvO, LVAh, EGG0):\n ...
[ "0.78423524", "0.69838136", "0.6818331", "0.6670741", "0.66513264", "0.6619109", "0.65707105", "0.6398022", "0.63810647", "0.6375475", "0.6350077", "0.6331567", "0.63089806", "0.6297852", "0.6188824", "0.6188333", "0.61311907", "0.6128361", "0.6103672", "0.60867417", "0.60640...
0.85290176
0
Customized boxplot with solid black lines for box, whiskers, caps, and outliers.
def yER9(aNZO, WKvO, LVAh, P1dF, r2gD, Qzoi, kTL8='magenta'): I0M6 = {'color': kTL8, 'linewidth': 2} plHX = {'color': 'black', 'linestyle': '-'} W7B7 = {'color': 'black', 'linestyle': '-'} dCyh = {'color': 'black', 'linestyle': '-'} uLCq = {'color': 'black', 'marker': 'x'} aNZO.boxplot(LVAh, pos...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wLS1(nPrm):\n uuEx.boxplot(nPrm, width=0.5, palette='colorblind')\n uuEx.swarmplot(nPrm, color='red', alpha=0.75)", "def yEL6(CkYf, eJh7):\n vI3f = QrM1.boxplot([CkYf, eJh7], notch=False, patch_artist=True)\n for FlUN in vI3f['boxes']:\n FlUN.set(color='red')\n FlUN.set(color='blue'...
[ "0.70407164", "0.66608655", "0.6588415", "0.6580331", "0.65196794", "0.6432254", "0.6352408", "0.62743556", "0.6255782", "0.6254831", "0.6136106", "0.59850377", "0.59607583", "0.5899478", "0.58290935", "0.5790138", "0.5778857", "0.5775175", "0.5744307", "0.57214344", "0.56601...
0.717696
0
converts DataStream object into pandas dataframe
def oaze(oxOY, uJjO=None) -> rLdf.DataFrame: if uJjO: oxOY = oxOY.filter_user(uJjO) kzAT = oxOY._data.toPandas() if 'timestamp' in kzAT.columns: return kzAT.sort_values('timestamp') return kzAT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o87x(YKHO, L9ga: bool=True) -> rLdf.DataFrame:\n J2us = YKHO.to_dict()\n nPrm = []\n for dy_H in J2us:\n jQ3Z = rLdf.DataFrame(dy_H.pop('data'), columns=['period', 'value'])\n if L9ga:\n jQ3Z = jQ3Z.assign(**dy_H)\n nPrm.append(jQ3Z)\n return rLdf.concat(nPrm, ignore...
[ "0.7035526", "0.69650245", "0.6941309", "0.6900751", "0.68732417", "0.68625087", "0.67257357", "0.67257357", "0.6699086", "0.66855824", "0.6677696", "0.6628184", "0.6595813", "0.6585852", "0.6538645", "0.6528156", "0.64805573", "0.63646656", "0.6360085", "0.631015", "0.629770...
0.0
-1
Returns a list of pages with no parent. Pages can be filtered out by the model name.
def eDvs(C3ST=None): return PMr6(page=None, model=C3ST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mw1I(YKHO):\n return YKHO._slice_objects(0, 0)", "def k66M(YKHO, QePW):\n xDcj = super(NtfH, YKHO).get_queryset(QePW)\n return xDcj.filter(parent__isnull=True)", "def PMr6(B2Dn, C3ST=None):\n afYC = I0sS.objects.published().filter(parent=B2Dn).order_by('_order')\n afYC = [XP5J.get_content_mo...
[ "0.649871", "0.6280055", "0.61724627", "0.60865504", "0.6009684", "0.5800925", "0.57715493", "0.5712619", "0.5686647", "0.56529677", "0.5648767", "0.5529058", "0.5529058", "0.5494876", "0.5494876", "0.54580605", "0.54401034", "0.54350066", "0.5416232", "0.5413267", "0.541212"...
0.639352
1
Test response with no login
def WBua(YKHO): YKHO.logout() JV8H = {'submission_id': YKHO.status_check_submission_id} geh0 = YKHO.app.post_json('/v1/check_status/', JV8H, expect_errors=True, headers={'x-session-id': YKHO.session_id}) YKHO.assertEqual(geh0.status_code, 401)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gu_g(YKHO):\n aqR5 = x0hE.post(J9XU, json=YKHO.post_data1)\n YKHO.assertEqual(aqR5.status_code, 401)\n YKHO.assertEqual(aqR5.get_json()['msg'], 'Incorrect username.')", "def lhe6(YKHO):\n geh0 = YKHO.client.post('/api/v1/login')\n nPrm = geh0.get_json()\n YKHO.assertEqual(geh0.status_code, ...
[ "0.7744629", "0.7690361", "0.7510976", "0.74756134", "0.74720526", "0.74238825", "0.74206483", "0.7405921", "0.7382385", "0.7344785", "0.7344138", "0.73346186", "0.73196286", "0.7280091", "0.72752887", "0.7260706", "0.7256556", "0.7245649", "0.72340417", "0.72314936", "0.7213...
0.0
-1
Setup test data for the route test
def iDr7(Emd4, cb_Q, K7Em): ASje = j9tP['ready'] G8Gs = Pm1E['csv_record_validation'] oCfW = l4zC.insert_job(cb_Q, filetype=Qj1N['award'], status=ASje, type_id=G8Gs, submission=K7Em) l4zC.insert_file(cb_Q, oCfW.job_id, ynLa['complete']) oCfW = l4zC.insert_job(cb_Q, filetype=Qj1N['award_financial'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def as4H(YKHO):\n assert YKHO.route.route['transform'] == 'transform'\n assert YKHO.route.route['output'] == 'output'\n assert 'api' not in YKHO.route.route", "def FCbF(YKHO):\n YKHO.test_data_path = 'testing/test_data/'", "def izSt(Emd4):\n Emd4.url = gxEw('add')", "def izSt(Emd4):\n Emd4....
[ "0.7366975", "0.71438843", "0.69367987", "0.68899727", "0.68884945", "0.6870735", "0.685306", "0.6830321", "0.6771594", "0.67587346", "0.6699362", "0.6694154", "0.66576296", "0.66038483", "0.6592709", "0.65701246", "0.6568628", "0.65566003", "0.6556225", "0.6556225", "0.65562...
0.0
-1
Does User.authenticate successfully return False when given an invalid password?
def Kq7Y(YKHO): CBIr = mv1M.authenticate('test1', 'wrong_password') YKHO.assertEqual(CBIr, False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c9Uh(YKHO):\n YKHO.assertFalse(mv1M.authenticate(YKHO.user1.username, 'invalid'))", "def OcQ7(YKHO):\n CBIr = mv1M.authenticate('wrong_username', 'password')\n YKHO.assertEqual(CBIr, False)", "def shE5(YKHO, NtEF, jTXt):\n return YKHO.user_table[NtEF]['pwd'] == jTXt", "def BybN(YKHO, NtEF, jT...
[ "0.80827516", "0.7856305", "0.7839419", "0.7817098", "0.7672274", "0.7538237", "0.7526854", "0.7498649", "0.7493765", "0.7488445", "0.74725235", "0.74384", "0.7394176", "0.73738176", "0.7325638", "0.7318276", "0.73145956", "0.7286394", "0.72837985", "0.72792107", "0.7251427",...
0.84543574
0
Data from json file is deserialised into a dictionary.
def lc9H(YKHO, Ux0P): with open(Ux0P, 'r', encoding='utf-8') as eHNT: Mjw9 = qQXR.load(eHNT) return Mjw9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D20L(aRNY):\n with open(aRNY) as ECmi:\n tbx9 = qQXR.load(ECmi)\n return tbx9", "def V9dS(YKHO) -> dict:\n with open(YKHO.path, encoding='utf8') as wM3v:\n return qQXR.load(wM3v)", "def Nw5e(wM3v: str) -> dict:\n zgjV = {}\n if not Hy7s.path.isfile(wM3v):\n UtPW(Hy7s.pat...
[ "0.7662508", "0.7612877", "0.7480616", "0.74537855", "0.74229026", "0.73885584", "0.73731846", "0.73652744", "0.73300326", "0.7319904", "0.7271273", "0.726505", "0.7210867", "0.7197051", "0.7192927", "0.7184347", "0.7177804", "0.71282387", "0.7113085", "0.71126056", "0.709995...
0.7956624
0
This method abstracts the methods involved in loading the json files, creating the tables into the database, and then putting information from the json files into the respective tables.
def IzHM(YKHO): w2B8 = YKHO.get_conn() Z9rn = w2B8.cursor() Z9rn.execute(_VPC['delete_services']) Z9rn.execute(_VPC['delete_stops']) Z9rn.execute(_VPC['delete_routes']) Ex_S = YKHO.load_json('bus_routes.json') N4oj = YKHO.load_json('bus_services.json') ZMol = YKHO.load_json('bus_stops.js...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GuWS():\n nar2()\n for nUeQ in Hy7s.listdir(FZKc):\n if nUeQ.endswith('.json'):\n GIN8 = eIcJ(nUeQ)\n print('inserting ' + GIN8 + ' data into db')\n pmON = Hy7s.path.join(FZKc, nUeQ)\n qQXR = J_n5(pmON)\n JPHp(TNsn(qQXR))\n Jxjs.execute('CR...
[ "0.67310596", "0.6527111", "0.63684064", "0.6316117", "0.6209801", "0.6190348", "0.6181301", "0.6179863", "0.614958", "0.61169547", "0.61078864", "0.60955846", "0.60891885", "0.60687226", "0.6045678", "0.6030447", "0.60164297", "0.6013029", "0.60127383", "0.6005869", "0.59988...
0.54974216
96
Location of local calibration data. Returns
def EBxN(): VKvI = Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.realpath(xAKo))) + Hy7s.path.sep _9a_ = Hy7s.path.join(*[VKvI, 'data', 'models']) return _9a_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RrRR(YKHO):\n return YKHO.setup_location.name", "def vsIU(YKHO):\n kQ1p = XC5k.FileStorage('calib_images/calibration.yaml', XC5k.FILE_STORAGE_READ)\n hkak = kQ1p.getNode('camera_matrix').mat()\n oWao = kQ1p.getNode('dist_coeff').mat()\n print('[INFO]: Extracted camera parameters.')\n kQ1p.r...
[ "0.6289211", "0.60119855", "0.59688276", "0.5820788", "0.58124167", "0.5799819", "0.5771125", "0.57589465", "0.57328206", "0.5727503", "0.5718998", "0.57092756", "0.57054657", "0.56861365", "0.56754994", "0.56533015", "0.565292", "0.56421167", "0.56401783", "0.5632828", "0.56...
0.641669
0
Create a dataset (train or train+eval) loader(s).
def vPeV(C3ST, __n6, Ep8u, fHUa, i9MG): GDYZ = dict(num_frames=C3ST['num_frames'], channels=C3ST['input_type'], action_space=C3ST['action_space'], steps_action=C3ST['steps_action'], num_signals=C3ST['num_signals'], num_skills=C3ST['num_skills']) if C3ST['mode'] == 'regression': GEud = MewD else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NIm3(GPtr):\n EPL3, IrSd = (iFos(2, 5), iFos(2, 5))\n Pa1c = pVAc(EPL3, batch_size=GPtr['batch_size'])\n o7Up = pVAc(IrSd, batch_size=GPtr['batch_size'])\n return (Pa1c, o7Up)", "def BMpb():\n U538 = kHEQ(dAVq, transform=dOxh, face=True)\n xOBn = kHEQ(dAVq, transform=dOxh, face=False)\n ...
[ "0.8084211", "0.804269", "0.7670781", "0.7563746", "0.75341815", "0.747422", "0.7432337", "0.73526055", "0.73348397", "0.73244625", "0.7313343", "0.7301754", "0.7259058", "0.72562855", "0.7240378", "0.72354746", "0.72234017", "0.720571", "0.719146", "0.7169255", "0.71683335",...
0.6838605
86
Split a dataset into nonoverlapping sets (train and eval).
def FJfc(__n6, i9MG, hXNa=False): XpXF = [1.0 - i9MG, i9MG] EegQ = [] vuCY = [] Z50W = __n6.get_num_demos() gzN6 = [int(wA3x * Z50W) for wA3x in XpXF] gzN6[0] += Z50W - sum(gzN6) Ep5Y = len(__n6) O7PV = list(range(Z50W)) if hXNa: oyIN.random.shuffle(O7PV) Dvh2 = 0 for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.valid, YKHO.valid, test_size=0.5)", "def FJfc(YKHO, lpha):\n lYSb = epAf.ceil((1 - lpha) * len(YKHO.Pos))\n kMf_ = epAf.ceil((1 - lpha) * len(YKHO.Neg))\n ...
[ "0.7561424", "0.7495133", "0.7297663", "0.7247306", "0.7174917", "0.7172446", "0.71542263", "0.71387476", "0.70992184", "0.70808214", "0.7037028", "0.7019662", "0.7019662", "0.7019662", "0.69708747", "0.69504017", "0.69376594", "0.6934545", "0.6927647", "0.69221956", "0.69182...
0.68902886
23
Integration test for the EnrollmentTermsAPI.update_enrollment_term method.
def nNdD(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUAn(YKHO):\n pass", "def hTIv(YKHO):\n Z31E = None\n id = None\n Mkmy = YKHO.client.delete_enrollment_term(Z31E, id)", "def inqp(YKHO):\n gtbI, bGrB, JVBp, cvsF = YKHO.add_answer()\n MOPg = YKHO.get_request_header(gtbI)\n nPrm = qQXR.dumps(YKHO.update_answer)\n bD7m = f'/questions/...
[ "0.6819804", "0.67411304", "0.62845933", "0.61786294", "0.6086481", "0.6036968", "0.58932084", "0.5853434", "0.58438593", "0.58378583", "0.58280605", "0.58277136", "0.578213", "0.5777458", "0.5731706", "0.5706508", "0.5700337", "0.5687344", "0.5600578", "0.5597065", "0.559361...
0.8364353
0
Integration test for the EnrollmentTermsAPI.delete_enrollment_term method.
def hTIv(YKHO): Z31E = None id = None Mkmy = YKHO.client.delete_enrollment_term(Z31E, id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FQIP(YKHO, DCKO, S7Jr, LHKn, OXAZ):\n w2B8 = iHv3.connect(YKHO.db_path)\n N1p7 = w2B8.cursor()\n try:\n with w2B8:\n N1p7.execute('\\n DELETE FROM course_enrollments\\n WHERE student_id = ?, course_id = ?, course_section_id = ?, term = ?\\n ...
[ "0.6511221", "0.64519113", "0.6254601", "0.6235663", "0.61850995", "0.61253476", "0.60750425", "0.6053782", "0.6052067", "0.60492104", "0.6037095", "0.6028256", "0.60219586", "0.6007957", "0.5973642", "0.5968307", "0.5938068", "0.59368503", "0.5933476", "0.59305567", "0.59122...
0.87833923
0
Integration test for the EnrollmentTermsAPI.retrieve_enrollment_term method.
def eh2g(YKHO): Z31E = None id = None Mkmy = YKHO.client.retrieve_enrollment_term(Z31E, id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ic4L(YKHO):\n Z31E = None\n Mkmy = YKHO.client.list_enrollment_terms(Z31E, include=None, workflow_state=None)", "def hTIv(YKHO):\n Z31E = None\n id = None\n Mkmy = YKHO.client.delete_enrollment_term(Z31E, id)", "def nUAn(YKHO):\n pass", "def nNdD(YKHO):\n pass", "def v6DJ(YKHO):\n ...
[ "0.7324393", "0.6751618", "0.66040576", "0.6033588", "0.58641404", "0.5367064", "0.5329835", "0.52798575", "0.51613075", "0.50997883", "0.5036937", "0.50354064", "0.50215054", "0.5013197", "0.4992815", "0.4991575", "0.49663225", "0.49651244", "0.49602875", "0.49538556", "0.49...
0.8650747
0
Returns the pitch distance between two notes Only used for chords for efficiency
def Ayfi(jzdc, Fg_i): jzdc = jzdc[0] Fg_i = Fg_i[0] if LSh8.search(jzdc): if LSh8.search(Fg_i): return abs(ord(Fg_i) - ord(jzdc)) % 8 elif CN9P.search(Fg_i): return abs(ord(Fg_i.lower()) - ord(jzdc)) % 5 + 8 elif CN9P.search(jzdc): if LSh8.search(Fg_i): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AUp_(H2HG):\n zvOU = 60\n JJcY = 40\n Py8F = zvOU - JJcY\n Ayfi = epAf.fabs(Py8F / epAf.tan(epAf.radians(H2HG)))\n return Ayfi", "def rtJb(WKvO, LVAh):\n xIT5 = len(WKvO)\n Csk6 = abs(WKvO - LVAh)\n uwo0 = Csk6 != 0\n rCx7 = xIT5 - oyIN.sum(uwo0)\n Q7s6 = oyIN.sum(Csk6[uwo0] <= ...
[ "0.70702267", "0.70452297", "0.67824394", "0.6312901", "0.61211693", "0.594408", "0.5772439", "0.5715479", "0.5678745", "0.56702936", "0.5643879", "0.56335485", "0.56276625", "0.5619626", "0.56019664", "0.5596408", "0.5549633", "0.5538705", "0.55376786", "0.5536231", "0.55097...
0.0
-1
Checks if a file is an allowed extension.
def DVFM(Ux0P, CBZq): GzHq = Ux0P.lower() return any((GzHq.endswith(YBcr) for YBcr in CBZq))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YgKf(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in UWr8", "def XT0o(Ux0P, kqN1):\n return '.' in Ux0P and Enu0(Ux0P) in kqN1", "def jxyL(Ux0P, KrOO):\n YBcr = Ux0P.rsplit('.', 1)[1].lower() in KrOO\n return YBcr and '.' in Ux0P", "def jxyL(Ux0P):\n KrOO = Ux0P.rsplit('.', 1)[1]...
[ "0.895309", "0.8786745", "0.8764468", "0.87614024", "0.8612598", "0.8612598", "0.8612598", "0.8612598", "0.8612598", "0.8612598", "0.85909545", "0.85909545", "0.85555506", "0.8541878", "0.8525629", "0.8525629", "0.85190576", "0.85190576", "0.85155004", "0.8498841", "0.8496414...
0.8021
46
Construct a tensor by repeating A the number of times given by reps. If `reps` has length ``d``, the result will have dimension of ``max(d, A.ndim)``. If ``A.ndim d``, `reps` is promoted to `A`.ndim by prepending 1's to it. Thus for an `A` of shape (2, 3, 4, 5), a `reps` of (2, 2) is treated as (1, 1, 2, 2).
def eL5z(k0lF, ZgWB): from ..merge import concatenate try: SjLr = tuple(ZgWB) except TypeError: SjLr = (ZgWB,) Csk6 = len(SjLr) if k0lF.ndim < Csk6: k0lF = k0lF[tuple((oyIN.newaxis for bGrB in range(Csk6 - k0lF.ndim)))] elif k0lF.ndim > Csk6: SjLr = (1,) * (k0lF.n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BpgY(WKvO, ZgWB):\n return hk3F(ZgWB)(WKvO)", "def wPFE(jzdc, DVQL, jDK_=None):\n return gC0V.asarray(jzdc).repeat(DVQL, axis=jDK_)", "def Tlrw(YKHO, vhpA, sWfS):\n return Zlsf(lambda WKvO, aUJL: nMvt.repeat_elements(WKvO, aUJL, axis=3), arguments={'repnum': sWfS})(vhpA)", "def dJly(jzdc, DVQL):...
[ "0.7010756", "0.69201905", "0.6788992", "0.67606866", "0.6689007", "0.6596998", "0.6543955", "0.64954805", "0.64878523", "0.64004296", "0.6326022", "0.6198227", "0.610638", "0.60829735", "0.58644223", "0.5831188", "0.57215774", "0.572062", "0.57173556", "0.5711844", "0.565361...
0.74626184
0
Calculate the CARLA camera transform
def bonY(YKHO): if not YKHO.pose: sQC5.loginfo('no pose!') return None if YKHO.pose.header.frame_id != YKHO.role_name: sQC5.logwarn('Unsupported frame received. Supported {}, received {}'.format(YKHO.role_name, YKHO.pose.header.frame_id)) return None wSdG = CRxp.Location(x=YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wStH(YKHO):\n o9mH = YKHO.stp_to_camera_transform()\n MmOs = YKHO.object_to_stp_transform()\n RzAt = o9mH.dot(MmOs)\n return RzAt", "def qVc5(YKHO):\n epBp = 4.0\n YKHO.evaluator.camera_height = epBp\n vtCZ = XTiz.array([[0, 0, epBp], [2, 0, epBp], [2, 5, epBp], [0, 5, epBp]], dtype=XTiz...
[ "0.70585823", "0.66587365", "0.66284215", "0.6568111", "0.64501894", "0.6386731", "0.62909544", "0.62674826", "0.61941993", "0.6190472", "0.6133707", "0.61225355", "0.61224616", "0.60645795", "0.60601604", "0.60598254", "0.6010653", "0.5994196", "0.5984358", "0.5944682", "0.5...
0.69467866
1
Extract a channel from the rgb image, so that a widthheight1 matrix is achieved.
def vjRF(Uw2I): xV4z = VXjJ.fromarray(Uw2I[0]).convert('L') S_dd = oyIN.array(xV4z) jIHT = S_dd[oyIN.newaxis, :, :] return jIHT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def igNQ(zZcM, YwkQ):\n return XC5k.extractChannel(zZcM, int(YwkQ + 0.5))", "def FC_D(d6hw):\n return d6hw[:, :, 1]", "def iRkX(dyAD):\n if not E4ec(dyAD):\n aelS = ofDI(dyAD)\n return aelS[:, :, df5o].copy()\n return dyAD.copy()", "def Ludk(VXjJ):\n pPPK = oyIN.zeros(VXjJ.shape,...
[ "0.74041396", "0.7108255", "0.6975584", "0.67663795", "0.66270936", "0.6571454", "0.65473956", "0.6413759", "0.6221979", "0.6164107", "0.6164107", "0.6160663", "0.6122491", "0.6112303", "0.6098109", "0.60962886", "0.60876286", "0.6065009", "0.6064434", "0.6044475", "0.5990675...
0.0
-1
Exclusive cumulative product [a, b, c] => [1, a, a b]
def GNyU(WKvO): Ep8u, NXmX = WKvO.size() if ht2j.cuda.is_available(): z6My = ht2j.cat([ht2j.ones(Ep8u, 1).cuda(), WKvO], dim=1)[:, :-1] else: z6My = ht2j.cat([ht2j.ones(Ep8u, 1), WKvO], dim=1)[:, :-1] return ht2j.cumprod(z6My, dim=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GNyU(WKvO):\n return ht2j.cumprod(ht2j.cat([WKvO.new_ones(WKvO.size(0), WKvO.size(1), WKvO.size(2), 1), WKvO[:, :, :, :-1]], dim=-1), dim=-1)", "def wnaF(jzdc, Fg_i):\n return [jzdc[1] * Fg_i[2] - jzdc[2] * Fg_i[1], jzdc[2] * Fg_i[0] - jzdc[0] * Fg_i[2], jzdc[0] * Fg_i[1] - jzdc[1] * Fg_i[0]]", "def ...
[ "0.6981249", "0.64026594", "0.63499177", "0.62118256", "0.6153056", "0.6088237", "0.60767", "0.6069449", "0.6062044", "0.60343254", "0.6004297", "0.5996002", "0.59782344", "0.5973283", "0.59523827", "0.59431183", "0.58982944", "0.5862979", "0.58599454", "0.5832812", "0.577326...
0.6441153
1
Cosineweighted attention. Calculates the cosine similarity between a query and each word in memory, then applies a weighted softmax to return a sharp distribution.
def KVH6(YKHO, _p7a, sjXb, eHV2): BJ1H = ht2j.matmul(sjXb, ht2j.transpose(_p7a, 1, 2)) n_zR = YKHO._vector_norms(_p7a) U9ij = YKHO._vector_norms(sjXb) CkYf = ht2j.matmul(U9ij, ht2j.transpose(n_zR, 1, 2)) sg14 = BJ1H / (CkYf + ntp8) return YKHO._weighted_softmax(sg14, eHV2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qIr8(YKHO, xDcj, ol4k):\n F7tz = YKHO.dictionary.doc2bow(xDcj)\n OQrm = [YKHO.dictionary.doc2bow(C13M) for C13M in ol4k]\n d6pt = Jg33(OQrm, YKHO.matrix)\n tP_m = d6pt[F7tz]\n return tP_m", "def efO9(YKHO):\n g50O = YKHO.calculate_tfidf()\n gKk5 = uZQ7(g50O, g50O)\n return gKk5", "d...
[ "0.67910004", "0.6393309", "0.63338214", "0.62562424", "0.62043566", "0.6111229", "0.6033046", "0.5948057", "0.59330124", "0.5932089", "0.58731794", "0.5859279", "0.58306706", "0.57961726", "0.577468", "0.5772171", "0.5764055", "0.5732465", "0.57154137", "0.5709897", "0.57069...
0.55578536
28
Returns batched `gather` for every row in the input. Equivalent of batch_gather function of original implementation
def _Mru(YKHO, hkxX, _0VL): or8S = _0VL.unsqueeze(-1) or8S = or8S.int() zNig = _0VL.shape[0] a9Hh = ht2j.arange(zNig, dtype=ht2j.int32).to(YKHO.device) a9Hh = a9Hh.unsqueeze(-1) a9Hh = a9Hh.repeat([1, int(_0VL.shape[-1])]) a9Hh = a9Hh.unsqueeze(-1) LQvf = ht2j.cat((a9Hh, or8S), -1) L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ko8u(hkxX, _0VL):\n return ZylS.gather(ZylS.reshape(hkxX, [-1]), ZylS.range(0, ZylS.shape(hkxX)[0]) * ZylS.shape(hkxX)[1] + _0VL)", "def _Mru(cRc2, _0VL):\n et8c = not isinstance(cRc2, (list, tuple))\n if et8c:\n cRc2 = [cRc2]\n bKXq = len(_0VL.get_shape()) - 1\n if bKXq > 1:\n o...
[ "0.65561455", "0.6500587", "0.6462384", "0.63635355", "0.6346882", "0.62854534", "0.62808883", "0.6277979", "0.6229866", "0.61978686", "0.6136924", "0.6118713", "0.6064382", "0.60396457", "0.60053056", "0.5996159", "0.59531736", "0.5913855", "0.586571", "0.585065", "0.577589"...
0.6642534
0
Creates enough cells to fill the board. Returns initial state of the board.
def Xuj1(YKHO): QTBn = list() TVTK = Wl2e / Mfmt H2v2 = dVi8 / Mfmt for d6pt in range(0, TVTK * H2v2): if ajWY(1, 100) >= 100 - mcnG: jGRS = UxMK QTBn.append(1) else: jGRS = azhC QTBn.append(0) VmPb = YKHO.canvas.create_rectangle(d6...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W9gz():\n iBIi = [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]\n return iBIi", "def C6M2():\n global BOARD\n next = [[0] * yXc0 for bGrB in range(jRFz)]\n for WKvO in range(jRFz):\n for LVAh in range(yXc0):\n A_IW = 0\n for YRbF in range(-1, 2):\n ...
[ "0.7066474", "0.70664686", "0.6937328", "0.69232416", "0.6899434", "0.68691885", "0.68123144", "0.6763205", "0.67400753", "0.6735691", "0.67156506", "0.6669941", "0.66644937", "0.6644526", "0.6607779", "0.65886736", "0.65883726", "0.6531028", "0.6523078", "0.6519401", "0.6514...
0.68562424
6
Gets the current organization
def yu6g(YKHO, tjyd=False): return OqHK.deserialize(YKHO._get_raw('org', {}, tjyd))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbiw(YKHO):\n return YKHO._tower.get_organization_by_id(YKHO._data.get('organization'))", "def PI_r(YKHO):\n return YKHO.reference[Issx][NNfF]", "def jOes(QePW):\n if QePW.organization:\n return QePW.organization.slug\n else:\n return None", "def pBok(YKHO):\n return _VfD.Mod...
[ "0.8365602", "0.83431554", "0.78126556", "0.78037596", "0.76222175", "0.7610173", "0.7515312", "0.7455882", "0.7285391", "0.7284314", "0.72149926", "0.72015625", "0.714974", "0.7137949", "0.7126743", "0.6981135", "0.6948353", "0.69405967", "0.69192415", "0.6896074", "0.689607...
0.6982778
15
Edit sys.argv to add "default_file" as an arguments file with the prefix character ("@" by default). "default_file" should be the base filename, and it should be in the same directory as the script itself. Returns a a version of sys.argv with the first element removed, ready to be given as an argument to argparse.Argum...
def Ydzi(E0cB, Ncq3, y0cW='@'): for d7pR in E0cB: if d7pR.startswith(y0cW): return E0cB[1:] Qeo_ = Hy7s.path.dirname(Hy7s.path.realpath(HwRy.argv[0])) _FY8 = Hy7s.path.join(Qeo_, Ncq3) if not Hy7s.path.isfile(_FY8): return E0cB[1:] return [y0cW + _FY8] + E0cB[1:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bJ9S(uRP3):\n import os\n pmON, IznC = os.path.split(uRP3)\n if len(pmON) == 0:\n pmON = os.curdir\n pmON = os.path.abspath(pmON)\n for Ti0F in HwRy.path:\n if os.path.abspath(Ti0F) == pmON:\n break\n else:\n HwRy.path.append(pmON)\n return os.path.splitext(...
[ "0.5995099", "0.5980831", "0.59179515", "0.5840327", "0.5823032", "0.5605689", "0.55885106", "0.5571621", "0.55287594", "0.54189533", "0.53742045", "0.53261673", "0.5316988", "0.52907586", "0.52078867", "0.5197276", "0.51917404", "0.51614296", "0.51202774", "0.5097696", "0.50...
0.79300225
0
Creates an AdaGrad optimizer.
def FIMM(YKHO, zwdk, eVVj, *qIxc, **B2fa): YKHO._params = Jczo() for pmON, xqoZ in eVVj.get_variables().items(): YKHO._params.add(pmON + '_gradient', XTiz.zeros_like(xqoZ.get_value())) YKHO._params.add(pmON + '_sum_sqr_gradient', XTiz.zeros_like(xqoZ.get_value())) super().__init__(zwdk, eVVj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q818():\n if wOGa['others']['verbose']:\n HwRy.stdout.write(eZIr.seperator + eZIr.tabs + 'Optimizer : Adagrad, learning rate = {0}'.format(wOGa['mlp']['lr']) + eZIr.seperator)\n return KES0.Adagrad(lr=wOGa['mlp']['lr'], epsilon=None, decay=0.0)", "def Z2AK(WAjq, C3ST, GPtr):\n if WAjq == 'ad...
[ "0.6777755", "0.66637987", "0.6495587", "0.6492645", "0.6474558", "0.64368254", "0.63411576", "0.6316253", "0.62532336", "0.623105", "0.6213288", "0.61988634", "0.61832523", "0.6173872", "0.6162354", "0.6160834", "0.61492646", "0.6144174", "0.61296046", "0.6120179", "0.610382...
0.0
-1
Initialize the model. Needs to set self.size_joint_feature, the dimensionality of the joint features for an instance with labeling (x, y).
def FIMM(YKHO): YKHO.size_joint_feature = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Agjb):\n super(cGCt, YKHO).__init__()\n C3ST = FYrf.vgg19(pretrained=True)\n PhLZ = C3ST.classifier[-1].in_features\n C3ST.classifier = U78l.Sequential(*list(C3ST.classifier.children())[:-1])\n YKHO.model = C3ST\n YKHO.fc = U78l.Linear(PhLZ, Agjb)", "def lWLw(YKHO, mz1U, mc9O, Ep...
[ "0.6122261", "0.60752666", "0.60161114", "0.59313625", "0.59208596", "0.5913641", "0.5853696", "0.5850947", "0.58409256", "0.58349967", "0.5801639", "0.58004314", "0.57956225", "0.57744664", "0.5741678", "0.5733682", "0.573256", "0.57032645", "0.57031393", "0.5685491", "0.567...
0.80585605
0
Populates private member variables and initializes table.
def FIMM(YKHO, _AKB, GPtr, I26_, *qIxc): wDYU.QAbstractTableModel.__init__(YKHO, _AKB, *qIxc) YKHO._config = GPtr YKHO._market_data = I26_ YKHO._start_timestamp = rLdf.Timestamp.now() YKHO._price_ladder_df = None YKHO._mutex = wDYU.QMutex()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.table = {}", "def FIMM(YKHO):\n YKHO.table = {}\n YKHO.ls = []", "def euOf(YKHO, tyNF: 'Table'):\n if not YKHO.columns:\n YKHO.columns = tyNF.columns\n YKHO._data = tyNF.data", "def FIMM(YKHO):\n YKHO.table = []", "def FIMM(YKHO):\n YKHO.table = []", "de...
[ "0.74742454", "0.74440867", "0.72557044", "0.72140807", "0.7126197", "0.6904814", "0.68833375", "0.6782636", "0.6772627", "0.66694677", "0.66558826", "0.6628482", "0.6622588", "0.65866613", "0.65580225", "0.6543205", "0.6516175", "0.64912254", "0.64622104", "0.64527917", "0.6...
0.0
-1
Get the count of rows.
def jOFs(YKHO, _AKB): return YKHO._config['row_count']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _1Ox(YKHO):\n return YKHO._num_rows", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def k0BV(YKHO):\n with YKHO.conn:\n return len(YKHO.select_all_rows())", "def AbqG(YKHO):\n return YKHO._count", "def AbqG(YKHO):\n retur...
[ "0.86639076", "0.86461794", "0.86461794", "0.86253", "0.86170936", "0.8585912", "0.8537923", "0.8481067", "0.8460337", "0.8455046", "0.8450657", "0.8425329", "0.84247357", "0.84024286", "0.8394152", "0.82703274", "0.82522273", "0.8218048", "0.8196027", "0.81005085", "0.809844...
0.7511381
42
UserDevice a model defined in Swagger
def FIMM(YKHO): YKHO.swagger_types = {'id': 'str', 'name': 'str', 'device_token': 'str', 'notification_id': 'str', 'make': 'str', 'model': 'str', 'accept_notifications': 'bool', 'type': 'str', 'session_hash': 'str', 'self_uri': 'str'} YKHO.attribute_map = {'id': 'id', 'name': 'name', 'device_token': 'deviceToke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def begE(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('device'), B2fa)", "def begE(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('device'), B2fa)", "def begE(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('device'), B2fa)", "def begE(YKH...
[ "0.5964049", "0.5964049", "0.5964049", "0.5964049", "0.587134", "0.5759424", "0.5684606", "0.5645136", "0.5617441", "0.5614575", "0.5574818", "0.556786", "0.5512877", "0.5511858", "0.5494178", "0.5463347", "0.5426104", "0.5406459", "0.5365637", "0.53573716", "0.5355642", "0...
0.53365785
23
Gets the id of this UserDevice. The globally unique identifier for the object.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO):\n return YKHO._device_id", "def ShR8(YKHO):\n return YKHO.device_id", "def jf3N(YKHO):\n return YKHO.unique_id", "def ShR8(YKHO):\n return YKHO._deviceId", "def unpH(YKHO):\n return YKHO.uid", "def jf3N(YKHO) -> str:\n return YKHO._device_info['ID']", "def unpH(YKHO):\...
[ "0.83807796", "0.83277017", "0.81345356", "0.80505246", "0.80429274", "0.7910526", "0.788508", "0.7860357", "0.78577715", "0.78436506", "0.77864236", "0.77864236", "0.77864236", "0.7758965", "0.7733454", "0.7724927", "0.7724927", "0.766592", "0.766592", "0.7654858", "0.764149...
0.0
-1
Sets the id of this UserDevice. The globally unique identifier for the object.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.id = id\n print('self id = ' + str(YKHO.id))", "def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\...
[ "0.7655291", "0.7334978", "0.73056704", "0.72966933", "0.7283792", "0.7255186", "0.7206847", "0.7117988", "0.7089016", "0.70514214", "0.70514214", "0.70514214", "0.70514214", "0.70514214", "0.70514214", "0.70514214", "0.70514214", "0.70514214", "0.70514214", "0.70514214", "0....
0.7033964
26
Gets the name of this UserDevice.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name']", "def mWFP(YKHO):\n return YKHO._device.device_data[YKHO._uuid]['name']", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def...
[ "0.84919244", "0.84816146", "0.8452498", "0.8452498", "0.8452498", "0.8294042", "0.82549566", "0.8132761", "0.8061604", "0.7966753", "0.7876267", "0.7873436", "0.7873436", "0.78019863", "0.7668528", "0.7645159", "0.7602345", "0.7602345", "0.75328076", "0.7519385", "0.7468166"...
0.0
-1
Sets the name of this UserDevice.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zPdd(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):...
[ "0.73049664", "0.72883326", "0.72883326", "0.72883326", "0.72883326", "0.72883326", "0.72771645", "0.72492427", "0.72492427", "0.7208986", "0.72032297", "0.71394604", "0.7092161", "0.7064969", "0.7051504", "0.70501816", "0.70501816", "0.7024094", "0.70052266", "0.70052266", "...
0.0
-1
Sets the notification_id of this UserDevice. notification id of the device.
def MZKG(YKHO, MZKG): YKHO._notification_id = MZKG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f5t3(YKHO, f5t3):\n if f5t3 is None:\n raise ValueError('Invalid value for `notification`, must not be `None`')\n YKHO._notification = f5t3", "def MZKG(YKHO):\n return YKHO._notification_id", "def NpNj(YKHO, MZKG):\n uJjO = Zul5()\n CBIr = BlJI(uJjO)\n if not gjOb(CBIr, MZKG):\n ...
[ "0.62736607", "0.62735814", "0.6114358", "0.60952616", "0.60952616", "0.58309174", "0.58309174", "0.58006257", "0.5716078", "0.554765", "0.5388697", "0.5290159", "0.5219884", "0.5187295", "0.51364005", "0.5093066", "0.50767183", "0.50728047", "0.49882188", "0.4979377", "0.496...
0.81615084
0
Gets the model of this UserDevice. Device model
def C3ST(YKHO): return YKHO._model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3ST(YKHO):\n return YKHO._device.device_data[YKHO._uuid]['model']", "def YrZb(YKHO):\n return YKHO._model", "def YrZb(YKHO):\n return YKHO._model", "def YrZb(YKHO):\n return YKHO.model", "def YrZb(YKHO):\n return YKHO.model", "def YrZb(YKHO):\n return YKHO.model", "def YrZb(YKHO)...
[ "0.8258449", "0.7447884", "0.7447884", "0.7400542", "0.7400542", "0.7400542", "0.7400542", "0.7400542", "0.7400542", "0.7400542", "0.7400542", "0.7400542", "0.7400542", "0.7335135", "0.7307975", "0.72778255", "0.72778255", "0.71696603", "0.71695936", "0.7156349", "0.71435314"...
0.7243297
20
Gets the type of this UserDevice. type of the device; ios or android
def type(YKHO): return YKHO._type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DS1x(YKHO):\n return YKHO._meta['device_type']", "def DS1x(YKHO) -> str:\n if YKHO.android_feature_phone():\n return 'smartphone'\n JRYC = YKHO.all_details.get('device', {}).get('type', '')\n if JRYC:\n return JRYC\n xK1x = YKHO.android_device_type()\n if xK1x:\n return...
[ "0.78153837", "0.77710843", "0.7586601", "0.75778747", "0.7514533", "0.7476161", "0.7448529", "0.7303262", "0.72996503", "0.72996503", "0.72996503", "0.7201239", "0.718353", "0.718353", "0.7098551", "0.7098551", "0.70021087", "0.68975157", "0.68926036", "0.6794617", "0.679302...
0.0
-1
Gets the session_hash of this UserDevice.
def W75d(YKHO): return YKHO._session_hash
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t0x1(YKHO):\n CH5O = 'django.contrib.auth.models.AbstractBaseUser.get_session_auth_hash'\n return qAUk(CH5O, YKHO.password).hexdigest()", "def wRip(YKHO):\n return YKHO.session_key", "def LJMO(YKHO):\n return YKHO._device_session_identifier", "def T1Hh(YKHO):\n return dict(YKHO._get_sessio...
[ "0.71795845", "0.66435903", "0.6443983", "0.6155984", "0.61391836", "0.61064327", "0.60874784", "0.5987246", "0.5978604", "0.59475154", "0.5934164", "0.59297305", "0.59297305", "0.5897742", "0.5886878", "0.5876288", "0.58610773", "0.58066595", "0.57777715", "0.57614744", "0.5...
0.82030624
0
Sets the session_hash of this UserDevice.
def W75d(YKHO, W75d): YKHO._session_hash = W75d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JkXK(YKHO, JkXK):\n YKHO._session_id = JkXK", "def RASD(YKHO, H5ew, BWXx):\n YKHO.session[H5ew] = BWXx", "def W75d(YKHO):\n return YKHO._session_hash", "def MlNu(YKHO, JkXK):\n if not isinstance(JkXK, str):\n raise TypeError('Session Id must be a string')\n YKHO.token['sessionId'] =...
[ "0.5874235", "0.57262015", "0.5667066", "0.56650466", "0.562398", "0.562398", "0.5560218", "0.5537229", "0.5487958", "0.5440087", "0.54296845", "0.5423286", "0.5386625", "0.5354536", "0.5349379", "0.5271652", "0.5253677", "0.5222333", "0.5175303", "0.51140374", "0.5111057", ...
0.78317153
0
Gets the self_uri of this UserDevice. The URI for this object
def lmpq(YKHO): return YKHO._self_uri
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zFcP(YKHO):\n return YKHO.__uri", "def j8eK(YKHO) -> str:\n return YKHO._uri", "def zFcP(YKHO):\n return YKHO.url", "def j8eK(YKHO):\n return YKHO._uri", "def j8eK(YKHO):\n return YKHO._uri", "def j8eK(YKHO):\n return YKHO._uri", "def j8eK(YKHO):\n return YKHO._uri", "def j8e...
[ "0.73277", "0.7053481", "0.7013657", "0.6980373", "0.6980373", "0.6980373", "0.6980373", "0.6980373", "0.6980373", "0.69782317", "0.6965982", "0.69104326", "0.67957205", "0.67015046", "0.66543776", "0.6536721", "0.6536721", "0.6536721", "0.6536721", "0.6536721", "0.6536721", ...
0.830942
2
Sets the self_uri of this UserDevice. The URI for this object
def lmpq(YKHO, lmpq): YKHO._self_uri = lmpq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmpq(YKHO):\n return YKHO._self_uri", "def lmpq(YKHO):\n return YKHO._self_uri", "def lmpq(YKHO):\n return YKHO._self_uri", "def lmpq(YKHO):\n return YKHO._self_uri", "def EP4S(YKHO, j8eK):\n DZCA = uRlK.parse.urlparse(j8eK)\n q7Hu = Hy7s.path.basename(DZCA.path.strip('/'))\n dmnP ...
[ "0.6955246", "0.6955246", "0.6955246", "0.6955246", "0.62720096", "0.61720395", "0.6076184", "0.58331436", "0.58331436", "0.58093965", "0.58093965", "0.5804451", "0.57336235", "0.56859803", "0.56314474", "0.56309474", "0.56309474", "0.56309474", "0.56309474", "0.56309474", "0...
0.8075644
2
Returns true if both objects are equal
def xa14(YKHO, Elif): return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.7961088", "0.7961088", "0.79433626", "0.79303336", "0.7926563", "0.7897525", "0.78826123", "0.78826123", "0.78806067", "0.7872423", "0.7868354", "0.78668815", "0.7825702", "0.7819993", "0.78162885", "0.78078854", "0.78068...
0.79670393
27
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8456063", "0.83918154", "0.8144437", "0.8140196", "0.8132038", "0.8093834", "0.80918837", "0.80918837", "0.80918837", "0.80852824", "0.80852824", "0.807626", "0.807626", "0.80657643" ]
0.0
-1
Extract feature vector for part of speech frequencies
def wZiF(nPrm): def SGj5(l5Ny): s2mk = Dhdw.word_tokenize(l5Ny) return [XP5J[1] for XP5J in Dhdw.pos_tag(s2mk)] lubV = [SGj5(l5Ny) for id, l5Ny, taDc in nPrm] Hn_9 = ['NN', 'NNP', 'DT', 'IN', 'JJ', 'NNS'] YbVB = oyIN.array([[l5Ny.count(oeNL) for oeNL in Hn_9] for l5Ny in lubV]).astype(o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def carQ(C7H1, RDhP, _rWM=16000):\n GXAC, JvR2 = gLif.core.load(C7H1, _rWM, mono=True, dtype='float')\n if RDhP == 'MFCC':\n rjUI = gLif.feature.mfcc(GXAC, _rWM, n_fft=400, hop_length=160, n_mfcc=13, fmin=75, fmax=5999)\n elif RDhP == 'FBANK':\n rjUI = gLif.feature.melspectrogram(GXAC, _rWM,...
[ "0.7022054", "0.68769157", "0.67879695", "0.6669208", "0.66360474", "0.65516335", "0.6532978", "0.65210253", "0.645916", "0.6439157", "0.63850725", "0.63202065", "0.62929547", "0.62248653", "0.61840606", "0.61550015", "0.61509633", "0.61480546", "0.6124066", "0.6108371", "0.6...
0.0
-1
Set userdata for state machine.
def Cmd9(YKHO, j9sO): sQC5.loginfo('Getting parameters from server') YKHO.sm.userdata.sm_obj_desc = qQXR.loads(j9sO) YKHO.sm.userdata.state = 'pose_selection' YKHO.sm.userdata.sm_min_objs = sQC5.get_param('min_objs', 1) YKHO.sm.userdata.sm_max_objs = sQC5.get_param('max_objs', 1) YKHO.sm.userdat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h_9i(YKHO, H5ew, nPrm):\n YKHO._userdata[H5ew] = nPrm", "def h_9i(YKHO, vC9B):\n YKHO.user_data = vC9B", "def DDBU(YKHO, EcOR, ldlt):\n raise NotImplementedError()", "def lT6e(YKHO, CBIr):\n YKHO._user = CBIr", "def lT6e(YKHO, CBIr):\n YKHO.user = CBIr", "def _DuO(YKHO, gFsc, VCCg):\n ...
[ "0.67750424", "0.6624653", "0.6378264", "0.62329", "0.61468405", "0.61283535", "0.60416687", "0.5984344", "0.59561646", "0.59118533", "0.5888574", "0.5867694", "0.586069", "0.58523023", "0.58391786", "0.5812252", "0.58050495", "0.57789344", "0.5746965", "0.5721594", "0.566803...
0.5069503
99
Derivative of the sigmoid function.
def hj5n(epBp): return m1Hg(epBp) * (1 - m1Hg(epBp))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZml(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n return WKvO * (1.0 - WKvO)", "def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox...
[ "0.8473345", "0.8448888", "0.839508", "0.8346479", "0.8346479", "0.8297725", "0.80530924", "0.7752295", "0.77066267", "0.7497277", "0.74647295", "0.74512917", "0.74003476", "0.7383002", "0.73813754", "0.7346715", "0.73203295", "0.73073524", "0.7191011", "0.71132654", "0.70895...
0.0
-1
Mock responses for Fronius Symo inverter with meter.
def kUNp(bFCs: AiohttpClientMocker, Bw8j: bool=False) -> None: bFCs.clear_requests() D8ZE = 'night' if Bw8j else 'day' bFCs.get(f'{UMmp}/solar_api/GetAPIVersion.cgi', text=dMy2('symo/GetAPIVersion.json', 'fronius')) bFCs.get(f'{UMmp}/solar_api/v1/GetInverterRealtimeData.cgi?Scope=Device&DeviceId=1&DataC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_symo_meter(ajET, bFCs):\n\n def JXA1(g2g3, KmI4):\n QTBn = ajET.states.get(g2g3)\n assert QTBn\n assert QTBn.state == str(KmI4)\n kUNp(bFCs)\n GPtr = {PbC4: R3t1, hwcP: uDIf, KDAg: 0}\n await wyh_(ajET, [GPtr])\n assert len(ajET.states.async_all()) == 39\n JXA1...
[ "0.67791754", "0.61868787", "0.6113946", "0.59232605", "0.589949", "0.5847982", "0.5805583", "0.56743664", "0.56128174", "0.5587881", "0.5572566", "0.5564778", "0.55594957", "0.5542061", "0.55386007", "0.55244476", "0.55188125", "0.5517258", "0.5515892", "0.5514214", "0.55059...
0.6162463
2
Retrieve the Billing/Root AWS Account Id of the organization.
def e7s3(): pwBQ = iVGz.client('organizations') geh0 = pwBQ.describe_organization() return geh0['Organization']['MasterAccountId']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZ75(YKHO) -> str:\n return qe4Y.get(YKHO, 'organization_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return...
[ "0.7483909", "0.72347695", "0.72347695", "0.72347695", "0.72347695", "0.72347695", "0.72347695", "0.72347695", "0.72347695", "0.7161343", "0.7149964", "0.71368206", "0.71078295", "0.71078295", "0.71078295", "0.71078295", "0.71078295", "0.706152", "0.7042881", "0.70268255", "0...
0.75122535
0
Get exposure value. See swagger definition for further details.
def j702(): xzCw(QePW.json, 'exposureValueRequestSchema', 'swagger/getExposureValue.yml') G9jH.info('get_exposure_value({0})'.format(QePW.json)) return p9bx.get_exposure_value(loc=QePW.json['loc'], stime=dU8L.to_timestamp(QePW.json['stime']), etime=dU8L.to_timestamp(QePW.json['etime']), tres=QePW.json['tres...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vMGq(YKHO):\n ITaD = float(YKHO._driver.ExposureTime)\n return ITaD", "def ITaD(YKHO) -> f9X8:\n if YKHO._exp is None:\n raise pbAB('There are no XSPEC fits associated with this Spectrum')\n else:\n kLQb = f9X8(YKHO._exp, 's')\n return kLQb", "def ITaD():\n\n def Mkmy(WKvO):...
[ "0.7036424", "0.6912415", "0.67658675", "0.66248137", "0.63765323", "0.62100214", "0.61073315", "0.61073315", "0.58474326", "0.579713", "0.5743248", "0.57325727", "0.5712513", "0.57012856", "0.5687988", "0.56328267", "0.5583496", "0.5545581", "0.5542657", "0.55397105", "0.552...
0.800687
0
Get exposure score. See swagger spec for further details.
def MZt7(): xzCw(QePW.json, 'exposureScoreRequestSchema', 'swagger/getExposureScore.yml') G9jH.info('get_exposure_score({0})'.format(QePW.json)) return p9bx.get_exposure_score(loc=QePW.json['loc'], stime=dU8L.to_timestamp(QePW.json['stime']), etime=dU8L.to_timestamp(QePW.json['etime']), tres=QePW.json['tres...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1kx(YKHO):\n return YKHO.client.call('GET', YKHO.name + 'score')", "def hckV(YKHO):\n return YKHO.score", "def hckV(YKHO):\n return YKHO.score", "def hckV(YKHO):\n return YKHO.score", "def hckV(YKHO):\n return YKHO._score", "def hckV(YKHO):\n return YKHO._score", "def hckV(YKHO):...
[ "0.664749", "0.63467395", "0.63467395", "0.63467395", "0.62751466", "0.62751466", "0.62751466", "0.62751114", "0.6262026", "0.6244419", "0.619337", "0.61548054", "0.6143085", "0.61291313", "0.60853", "0.602019", "0.6010291", "0.5995096", "0.593023", "0.5927252", "0.5923142", ...
0.83044446
0
Get the convolutional layers of the model.
def cYKn(): WKvO = ZylS.placeholder(ZylS.float32, [None, None, None]) LRQE = E9N2([5, 5, 1, 48]) CHbg = Y7ph([48]) u4DI = ZylS.expand_dims(WKvO, 3) XGGl = ZylS.nn.relu(b_zE(u4DI, LRQE) + CHbg) xo5x = Bnd8(XGGl, ksize=(2, 2), stride=(2, 2)) iKl0 = E9N2([5, 5, 48, 64]) yIB5 = Y7ph([64]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jmcv(C3ST):\n lzjZ = 'conv2d_1'\n _mSQ = C3ST.get_layer(lzjZ).get_weights()\n _mSQ = oyIN.asarray(_mSQ[0])\n A0xG = oyIN.mean(_mSQ, axis=0)\n A0xG = oyIN.reshape(A0xG, (3, 3, 1, 16))\n return A0xG", "def fhcK(YKHO):\n return YKHO._flc.layers", "def fhcK(YKHO) -> h8nf[U78l.ModuleList]:\...
[ "0.68047774", "0.67132866", "0.65962714", "0.65422004", "0.64981174", "0.6487465", "0.64524734", "0.63964885", "0.6396046", "0.6345043", "0.6323719", "0.6287003", "0.6269246", "0.6257411", "0.6252408", "0.6245447", "0.620835", "0.6193992", "0.6188288", "0.6174506", "0.6053155...
0.5947855
26
The same as the training model, except it acts on an arbitrarily sized input, and slides the 128x64 window across the image in 8x8 strides. The output is of the form `v`, where `v[i, j]` is equivalent to the output of the training model, for the window at coordinates `(8 i, 4 j)`.
def PwbO(): WKvO, VZhH, pS_G = cYKn() clqZ = E9N2([8 * 32 * 128, 2048]) LRQE = ZylS.reshape(clqZ, [8, 32, 128, 2048]) d1Xb = Y7ph([2048]) XGGl = ZylS.nn.relu(b_zE(VZhH, LRQE, stride=(1, 1), padding='VALID') + d1Xb) p6SW = E9N2([2048, 1 + 15 * len(BJsk.CHARS)]) iKl0 = ZylS.reshape(p6SW, [1, 1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DzgS(yMhW, _0fC=1):\n\n def ghCI(__n6):\n return DeI5(__n6, yMhW, _0fC)\n return ghCI", "def bQTl(C3ST, EcVT, GhuM, aGjg=32):\n Na99 = RujX(EcVT.shape, GhuM, aGjg)\n cDK5, aI3m, H2v2, TVTK = EcVT.shape\n Nk6w = oyIN.zeros(EcVT.shape, dtype=oyIN.float32)\n Nq1b = oyIN.zeros(EcVT.shape...
[ "0.59790486", "0.59699625", "0.5960328", "0.59106994", "0.58591735", "0.58518153", "0.5787106", "0.5781153", "0.57626766", "0.5681135", "0.5677316", "0.56466204", "0.56298655", "0.56181514", "0.5592573", "0.5590441", "0.5578087", "0.557281", "0.55574584", "0.5552292", "0.5537...
0.0
-1
Returns enrollment status for current student
def tyHd(YPqY, g3Gt=None): if nCBc(): return True if not g3Gt: g3Gt = hoVx() if g3Gt and jCnK('program', YPqY, g3Gt.name): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TthM(YKHO):\n return Sy9q.status_mapping_student[YKHO.status]", "def fxdD():\n if YKHO.status == YKHO.CH_GRADED or (YKHO.status == YKHO.CH_AUTOGRADED and YKHO.autograderresult.visible):\n return 'Graded'\n elif YKHO.status == YKHO.CH_PREVIOUS:\n return 'Previous Sub.'\n return 'Subm...
[ "0.68060905", "0.67830354", "0.6620853", "0.6398365", "0.6398299", "0.62936723", "0.6291253", "0.6276027", "0.60898286", "0.59986585", "0.59485316", "0.58606446", "0.5842786", "0.5824142", "0.5819161", "0.5782286", "0.5760636", "0.57470477", "0.57194996", "0.5709267", "0.5667...
0.0
-1
Returns the variation coefficient (standard error / mean, give relative value of variation around mean) of x.
def _2HX(WKvO): JBMS = oyIN.mean(WKvO) if JBMS != 0: return oyIN.std(WKvO) / JBMS else: return oyIN.nan
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RcjL(YKHO):\n M1Jx, JBMS = YKHO.std()\n RcjL = M1Jx / JBMS\n print(f'Coefficient of Variation is: {RcjL}')\n return RcjL", "def gFIc(WKvO, P_MT=1):\n with g2zq.extraprec(16):\n KCHu = M1Jx(WKvO, ddof=P_MT)\n r8hN = JBMS(WKvO)\n return KCHu / r8hN", "def D6Dt(KCHu):\n ...
[ "0.7909317", "0.7035592", "0.6954637", "0.64724946", "0.6365021", "0.62133896", "0.61405116", "0.61317706", "0.61226314", "0.6110114", "0.6071603", "0.6050877", "0.6047893", "0.603136", "0.6008346", "0.5995891", "0.5995891", "0.5995891", "0.5978501", "0.5963829", "0.5920986",...
0.8378508
0
Returns the sum of all data points, that are present in the time series more than once. For example sum_of_reoccurring_data_points([2, 2, 2, 2, 1]) = 8 as 2 is a reoccurring value, so all 2's are summed up. This is in contrast to ``sum_of_reoccurring_values``, where each reoccuring value is only counted once.
def Tg3Q(WKvO): kcwm, BWz1 = oyIN.unique(WKvO, return_counts=True) BWz1[BWz1 < 2] = 0 return oyIN.sum(BWz1 * kcwm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sum(YKHO):\n return sum(YKHO.values)", "def sum(YKHO):\n return YKHO.values.sum()", "def sum(YKHO):\n return YKHO.values.sum()", "def ppCQ(nPrm: Tensor) -> llWB:\n ycBG = nPrm.detach().clone()\n ycBG = ycBG.sort()[0]\n nZuS = ht2j.cat([ht2j.tensor([True], device=ycBG.device), ycBG[1:] !...
[ "0.53387666", "0.52904224", "0.52904224", "0.5285019", "0.5227271", "0.51509017", "0.5125435", "0.50964093", "0.50549966", "0.50523293", "0.5037906", "0.5007963", "0.50075114", "0.50075114", "0.50075114", "0.49943295", "0.49478376", "0.49454275", "0.49193886", "0.49066535", "...
0.7830956
0
Test incorrect type for first name
def bjaV(YKHO): TBsA = qQXR.dumps({'first_name': 200, 'last_name': 'Holmes', 'email': 'sherlock@example.com', 'password': 'ilovek@ndA!'}) FCKt = {'error': 'Bad request', 'field_errors': {'first_name': ['Invalid field type']}} Aofo = YKHO.simulate_post('/', body=TBsA, headers=MOPg) YKHO.assertEqual(Aofo....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wygs(YKHO):\n pass", "def fpZT(c9ua, zp3f=''):\n xsYf = 'first_name must be a string'\n uEHG = 'last_name must be a string'\n if type(c9ua) != str:\n raise TypeError(xsYf)\n if type(zp3f) != str:\n raise TypeError(uEHG)\n print('My name is {} {}'.format(c9ua, zp3f))", "def f...
[ "0.727722", "0.7194198", "0.70320505", "0.6965598", "0.69349045", "0.69256306", "0.69127303", "0.6882609", "0.6753938", "0.67475325", "0.67253995", "0.67253995", "0.6684063", "0.66585547", "0.6653791", "0.66537595", "0.66360795", "0.6626911", "0.66116583", "0.6600295", "0.659...
0.62752175
42
Get the Wordpress version installed in the given path.
def vh6r(YKHO): try: hGN5 = YKHO.get_content() kUBT = ZbWC.search("\\$wp_version = \\'(.+)\\';", hGN5) if kUBT: return kUBT.group(1) else: raise Exception except: 'Unable to find Wordpress in the path specified.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(pmON=z08f):\n _63S = {}\n exec(Ueki(pmON), _63S)\n return _63S['get_version'](short=True)", "def btkI(pmON):\n DpZH = None\n if Hy7s.path.exists(pmON):\n DpZH = open(pmON, 'r', encoding='utf-8').read().strip()\n if DpZH:\n return ZbWC.sub('^python-', '', DpZH)\n return...
[ "0.6568822", "0.64892745", "0.6449087", "0.61906093", "0.6187556", "0.61727047", "0.61563313", "0.6069648", "0.6019967", "0.5984326", "0.5970913", "0.5962816", "0.5937086", "0.590367", "0.58822143", "0.58765835", "0.5849401", "0.58353716", "0.58333415", "0.58020604", "0.57573...
0.7808661
0
Gets states up to `n_quanta` over `n_modes`
def YnjE(Emd4, bhv9, ayXM, BVA9=None, zISP=False): if isinstance(bhv9, int): bhv9 = range(bhv9 + 1) BNqL = [oyIN.flip(WKvO) for WKvO in b2NU.from_quanta(s5_D(ayXM), bhv9).excitations] if BVA9 is not None: BNqL = [XP5J for XP5J in BNqL if sum(XP5J) == 0 or any((XP5J[YRbF] > 0 for YRbF in BVA9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bjr2(YKHO):\n jZA5 = []\n c5uu = (50, 2 * Rvld.pi, 50, 50, 50, 50, 50, 50, 50)\n for or8S, qoqK in enumerate(c5uu):\n QOe9 = [0 for YRbF in Ni9Y(len(c5uu))]\n GfdN = rE6w(-qoqK, qoqK, qoqK / 1000.0)\n wmQo = 0\n for Ty9i in GfdN:\n QOe9[or8S] = Ty9i\n ...
[ "0.6026449", "0.6025942", "0.5941962", "0.5855448", "0.5796622", "0.5796622", "0.57090497", "0.5633561", "0.5625631", "0.56219906", "0.56085443", "0.56046927", "0.55898184", "0.55821943", "0.5576002", "0.5568537", "0.556061", "0.5543732", "0.55277145", "0.5483961", "0.544658"...
0.7525478
0
Name of the process utilizing the GPU. When job_id is provided, is the unique (to the pipelinejob) name of the pipelinejob operator utilizing the GPU. When job_id is not provided, is the name of the Clara Platform managed, nonpipeline process utilizing the GPU.
def mWFP(YKHO) -> str: return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._job", "def Pty3(YKHO):\n return f'{YKHO.config.pipeline.name}-pypette'[:12]", "def rjee(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'job_id')", "def wxIh(YKHO) -> str:\n return YKHO._step_execution_context.job_name", "def wxIh(YKHO) -> str:\n return qe4Y...
[ "0.66767174", "0.6538658", "0.64989036", "0.64652693", "0.64171666", "0.6405671", "0.63670844", "0.63662565", "0.6213871", "0.59919184", "0.5988425", "0.5974089", "0.5974089", "0.59574825", "0.5923408", "0.58923274", "0.5878281", "0.5858601", "0.5856997", "0.5856997", "0.5856...
0.0
-1
Name of the process utilizing the GPU. When job_id is provided, is the unique (to the pipelinejob) name of the pipelinejob operator utilizing the GPU. When job_id is not provided, is the name of the Clara Platform managed, nonpipeline process utilizing the GPU.
def mWFP(YKHO, mWFP: str): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._job", "def Pty3(YKHO):\n return f'{YKHO.config.pipeline.name}-pypette'[:12]", "def rjee(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'job_id')", "def wxIh(YKHO) -> str:\n return YKHO._step_execution_context.job_name", "def wxIh(YKHO) -> str:\n return qe4Y...
[ "0.66765225", "0.6538495", "0.64990157", "0.6465572", "0.64171207", "0.6406069", "0.63673866", "0.63659126", "0.62134993", "0.5993193", "0.5987865", "0.5973934", "0.5973934", "0.5957488", "0.5923433", "0.5892624", "0.5877707", "0.5857968", "0.58571935", "0.58571935", "0.58571...
0.0
-1
Unique identifier of the pipelinejob utilizing the GPU. Only provided when the process utilizing the GPU is a pipelinejob.
def rjee(YKHO) -> EUd7: return YKHO._job_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO) -> str:\n return FShH(YKHO._config_entry.entry_id, 'gpu_load', YKHO._gpu_name)", "def ShR8(YKHO) -> str:\n return FShH(YKHO._config_entry.entry_id, f'{YKHO._process_type}_cpu_usage', YKHO._cam_name)", "def l_ss(YKHO):\n return qxeD.uuid4().hex", "def KWNo():\n f3yi = str(qxeD.uuid4...
[ "0.7250749", "0.7132626", "0.7028703", "0.68948746", "0.656959", "0.6464921", "0.6420556", "0.6420506", "0.64076847", "0.6367568", "0.63559586", "0.63001496", "0.6271227", "0.6262974", "0.62471324", "0.6238898", "0.6235813", "0.6215683", "0.62028885", "0.6202303", "0.6138686"...
0.608985
27
Unique identifier of the pipelinejob utilizing the GPU. Only provided when the process utilizing the GPU is a pipelinejob.
def rjee(YKHO, rjee: JobId): YKHO._job_id = rjee
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO) -> str:\n return FShH(YKHO._config_entry.entry_id, 'gpu_load', YKHO._gpu_name)", "def ShR8(YKHO) -> str:\n return FShH(YKHO._config_entry.entry_id, f'{YKHO._process_type}_cpu_usage', YKHO._cam_name)", "def l_ss(YKHO):\n return qxeD.uuid4().hex", "def KWNo():\n f3yi = str(qxeD.uuid4...
[ "0.72507715", "0.7131893", "0.7030559", "0.68964815", "0.6570852", "0.64670855", "0.642124", "0.6418267", "0.6408361", "0.6368568", "0.6356273", "0.63021004", "0.62713104", "0.6263336", "0.6248902", "0.6239466", "0.62372863", "0.6215814", "0.6204541", "0.62031984", "0.6139967...
0.0
-1
Unique (to the cluster) name of the node which contains the GPU.
def Lnes(YKHO) -> int: return YKHO._node_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CUOW(YKHO):\n return gnPz.join_names_underscore(YKHO.name, str(YKHO.as_pointer()))", "def mWFP(YKHO):\n vzeF.debug(YKHO._shelly_cloud_device_name + ' >>> ' + YKHO._shelly_cloud_entity_name + ' >>> name() >>> ' + YKHO._shelly_cloud_device_name)\n return YKHO._shelly_cloud_device_name", "def ShR8(YK...
[ "0.7296611", "0.7248437", "0.715425", "0.71135443", "0.70933753", "0.7092233", "0.70309335", "0.7003493", "0.69928217", "0.69928217", "0.6941008", "0.6930989", "0.691941", "0.6903885", "0.6903885", "0.6903885", "0.68518186", "0.68437785", "0.68378633", "0.6818385", "0.6805029...
0.0
-1
Unique (to the cluster) name of the node which contains the GPU.
def Lnes(YKHO, Lnes: int): YKHO._node_id = Lnes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CUOW(YKHO):\n return gnPz.join_names_underscore(YKHO.name, str(YKHO.as_pointer()))", "def mWFP(YKHO):\n vzeF.debug(YKHO._shelly_cloud_device_name + ' >>> ' + YKHO._shelly_cloud_entity_name + ' >>> name() >>> ' + YKHO._shelly_cloud_device_name)\n return YKHO._shelly_cloud_device_name", "def ShR8(YK...
[ "0.72953373", "0.7248576", "0.7155137", "0.7113853", "0.7092226", "0.7090676", "0.70290893", "0.7003835", "0.69920355", "0.69920355", "0.69400066", "0.69309366", "0.6919785", "0.6904492", "0.6904492", "0.6904492", "0.6850059", "0.6844273", "0.6839056", "0.68187106", "0.680526...
0.0
-1
PCIE device identifier of the GPU.
def eRSr(YKHO) -> int: return YKHO._pcie_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IQ8c():\n return MTKo['device_id']", "def rnNN(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_num')", "def w8MO(wqL3):\n if isinstance(wqL3, ht2j.device):\n return wqL3\n if wqL3 is None or not UPcG.hasaccelerator():\n return -1\n if isinstance(wqL3, bool):\n return 0 if ...
[ "0.7404472", "0.7280904", "0.7158367", "0.6986045", "0.6983866", "0.6885753", "0.6861455", "0.68434936", "0.68403655", "0.6832853", "0.67388356", "0.6709373", "0.6707698", "0.6704712", "0.66910625", "0.6667681", "0.6649495", "0.6628434", "0.66172594", "0.66172594", "0.6617259...
0.73434716
1