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
Fits lane lines to a street image (largely based on project sample code).
def PRuv(d6hw, yikj=cqI4, RRWm=mJBT, qbly=LwNE, Up9G=True, T4vF=None, ZOX2=None): wkEy = oyIN.sum(d6hw[int(d6hw.shape[0] / 2):, :], axis=0) HfO7 = oyIN.dstack((d6hw, d6hw, d6hw)) * 255 op3g = oyIN.int(wkEy.shape[0] / 2) iung = oyIN.argmax(wkEy[:op3g]) sKGF = oyIN.argmax(wkEy[op3g:]) + op3g aqgV ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0wT(LNo8):\n uA4E = hnIv.fromarray(LNo8).resize(size=(160, 80))\n uA4E = oyIN.array(uA4E)\n uA4E = uA4E[None, :, :, :]\n o3Uj = C3ST.predict(uA4E)[0] * 255\n vO4O.recent_fit.append(o3Uj)\n if len(vO4O.recent_fit) > 5:\n vO4O.recent_fit = vO4O.recent_fit[1:]\n vO4O.avg_fit = oyIN.me...
[ "0.74831456", "0.74524933", "0.74252206", "0.7420873", "0.73513305", "0.7169658", "0.68818915", "0.6699519", "0.65269643", "0.64993006", "0.6492225", "0.6490653", "0.6480769", "0.64776236", "0.6463158", "0.64532447", "0.6427028", "0.63709706", "0.63664937", "0.6324946", "0.62...
0.62707144
20
Refits lane lines to a street image (enhances earlier fit; largely based on project sample code).
def Kr_8(d6hw, h5qW, sJxO, RRWm=mqi6, Up9G=True, T4vF=None, ZOX2=None): gZN8 = d6hw.nonzero() W0kh = oyIN.array(gZN8[0]) SS5m = oyIN.array(gZN8[1]) qEIt = (SS5m > h5qW[0] * W0kh ** 2 + h5qW[1] * W0kh + h5qW[2] - RRWm) & (SS5m < h5qW[0] * W0kh ** 2 + h5qW[1] * W0kh + h5qW[2] + RRWm) tsKe = (SS5m > sJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0wT(LNo8):\n uA4E = hnIv.fromarray(LNo8).resize(size=(160, 80))\n uA4E = oyIN.array(uA4E)\n uA4E = uA4E[None, :, :, :]\n o3Uj = C3ST.predict(uA4E)[0] * 255\n vO4O.recent_fit.append(o3Uj)\n if len(vO4O.recent_fit) > 5:\n vO4O.recent_fit = vO4O.recent_fit[1:]\n vO4O.avg_fit = oyIN.me...
[ "0.7763724", "0.7724919", "0.771323", "0.77069104", "0.7662132", "0.74225914", "0.69978976", "0.6779064", "0.6598243", "0.65877867", "0.658547", "0.65727997", "0.6564109", "0.6555664", "0.6553537", "0.65276575", "0.65076125", "0.65036255", "0.6485075", "0.64731485", "0.643411...
0.63170075
24
Code coverage for multiple templates when a disabled template is enabled for a specific tenant while another template remains in its default state.
def amYV(YKHO): IBRk = 'https://api.new_region.example.com:9090' bjSJ = 'NEW_REGION' svz4 = u'uuid-alternate-endpoint-template' kSQC = oprl(name=YKHO.eeapi_name, endpoint_uuid=svz4, region=bjSJ, url=IBRk) YKHO.eeapi.add_template(kSQC) Pht4 = S7RP(YKHO, YKHO.root, YKHO.tenant_enabled_for, YKHO.te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H_OE(YKHO, ZH2n):\n CWsz = QRtk.website_template_override(LFRI())\n QpfX = {'website': 'site1'}\n CWsz(None, **QpfX)\n ZH2n.assert_not_called()", "def AUtZ(YKHO):\n Iaaf = {PtXs.INDEX_TMP: PtXs.INDEX_URL, PtXs.GROUP_TMP: PtXs.GROUP_URL, PtXs.NEW_POST_TMP: PtXs.NEW_POST_URL, PtXs.ABOUT_TMP: PtX...
[ "0.60306597", "0.6008629", "0.5985722", "0.5911144", "0.5895831", "0.5866532", "0.5818921", "0.5818636", "0.5809858", "0.5780907", "0.57793784", "0.57332385", "0.57177305", "0.5717705", "0.5712883", "0.56826955", "0.5671528", "0.5628679", "0.5622757", "0.55938184", "0.5536383...
0.6520593
0
Return a copy of lst with nontrue elements removed. >>> compact([0, 1, 2, '', [], False, (), None, 'All done']) [1, 2, 'All done']
def Xbam(yv6U): _ruc = [DHtb for DHtb in yv6U if not not DHtb] return _ruc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xbam(yv6U):\n S06t = []\n for YRbF in yv6U:\n S06t.append(YRbF) if bool(YRbF) == True else None\n return S06t", "def Xbam(IqQl):\n return [ZfUD for ZfUD in IqQl if ZfUD]", "def Xbam(qw7D, all=False):\n if all:\n return wncN(qw7D, [None, False, ''])\n return wncN(qw7D, None)"...
[ "0.78443235", "0.73782057", "0.66848564", "0.6170434", "0.6144932", "0.6076116", "0.5868029", "0.57911897", "0.5782236", "0.5668233", "0.5601665", "0.5580718", "0.55406064", "0.5527867", "0.552006", "0.55125123", "0.55030835", "0.54919034", "0.54358417", "0.54201347", "0.5409...
0.74379855
1
generate a random string.
def BWvy(zNig=16, gLiZ=vIwR.ascii_lowercase + vIwR.digits): return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eTqN():\n return str(qxeD.uuid4())[:10]", "def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(20)))", "def nj6L():\n Aofo = Gmzq.rand_uuid()\n return Aofo", "def YzjY(YKHO, u54L=10):\n return ''.join((tuKI.SystemRandom().cho...
[ "0.8528612", "0.8352222", "0.81561357", "0.81511337", "0.81499356", "0.8090658", "0.80429006", "0.8033241", "0.8011146", "0.7999038", "0.79624486", "0.79232526", "0.79152536", "0.79099894", "0.79028106", "0.79028106", "0.7871499", "0.78637403", "0.78475547", "0.78475547", "0....
0.0
-1
Endow the class record being created, with a registry of instances of all classes whose base it is. The implementation here attaches a {weakset} of instances to the first class in a hierarchy that mentions {Extent} as its metaclass, by taking advantage of the way python metaclasses work. Do not forget that {Extent} wil...
def fwuD(Emd4, mWFP, gitN, azoT, *, A1ie=False, **c_sp): AIu6 = super().__new__(Emd4, mWFP, gitN, azoT, **c_sp) if A1ie or not hasattr(AIu6, 'pyre_extent'): AIu6.pyre_extent = ZUBR.WeakSet() return AIu6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tf0a():\n\n class Base(metaclass=gXhI):\n \"\"\"\n An extent aware base class\n \"\"\"\n\n class Derived(i_Aq):\n \"\"\"\n A derived class whose extent is counted by {Base}\n \"\"\"\n\n class Root(RXzu, pyre_extent=True):\n \"\"\"\n Another deriv...
[ "0.67044073", "0.65299034", "0.62458247", "0.61745375", "0.6126963", "0.61202526", "0.60564214", "0.60436535", "0.6039832", "0.60237914", "0.6015068", "0.58781177", "0.58610654", "0.5822034", "0.5747056", "0.57401437", "0.57381094", "0.56826895", "0.56137824", "0.55929345", "...
0.74382144
0
Get the name of the policy file for this application.
def c2eC(): VpPs = RMC9.service_name() return '{}/charm-{}.policy'.format(u0mH, VpPs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CX3n(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'policy_name')", "def CX3n(YKHO) -> str:\n return qe4Y.get(YKHO, 'policy_name')", "def CX3n(YKHO) -> str:\n return qe4Y.get(YKHO, 'policy_name')", "def CX3n(YKHO) -> str:\n return qe4Y.get(YKHO, 'policy_name')", "def CX3n(YKHO) -> str:...
[ "0.77969325", "0.77434266", "0.77434266", "0.77434266", "0.77434266", "0.77434266", "0.77434266", "0.77434266", "0.7624831", "0.7624831", "0.7624831", "0.75806373", "0.75806373", "0.75806373", "0.75806373", "0.75806373", "0.7386032", "0.72807497", "0.72807497", "0.72670174", ...
0.8564342
0
Get list of available signatures.
def X9nP() -> list: njXK = ['high_q_freq', 'high_q_dur', 'low_q_freq', 'low_q_dur', 'zero_q_freq', 'q95', 'q5', 'q_mean', 'hfd_mean', 'baseflow_index', 'slope_fdc', 'stream_elas', 'runoff_ratio'] return njXK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def njXK(YKHO):\n try:\n return YKHO._signatures\n except Exception as e:\n raise tTpl", "def njXK(YKHO):\n return YKHO._signatures", "def njXK(YKHO):\n return list(YKHO.registry.keys())", "def njXK(YKHO) -> bdIy['outputs.EnvelopeSignatureResponse']:\n return qe4Y.get(YKHO, 'sign...
[ "0.7508842", "0.72439784", "0.7185176", "0.7141781", "0.7141781", "0.67599356", "0.6750968", "0.66878825", "0.66489697", "0.61975795", "0.61114526", "0.6070373", "0.6049117", "0.5976658", "0.58761984", "0.5829907", "0.58033824", "0.5792867", "0.5748415", "0.5735929", "0.56758...
0.81382084
0
Constructs a SpatialRef instance based on 'arg' which can be
def FIMM(YKHO, d7pR, s6oh=None): YKHO.__arg = d7pR YKHO.spref = BYPk.SpatialReference() if s6oh is None: if isinstance(d7pR, int): s6oh = 'epsg' elif isinstance(d7pR, dict): s6oh = 'proj4' vIwR = '' for G1Hx, Ty9i in d7pR.items(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jJAl(*qIxc, **B2fa):\n pass", "def FIMM(YKHO, Bx1_='', iAXw='user', iQfg=None):\n if not isinstance(iQfg, (sbtK, MoL7)):\n raise ValueError('SpatialReference.axis_order must be an AxisOrder instance.')\n YKHO.axis_order = iQfg or MoL7.TRADITIONAL\n if iAXw == 'wkt':\n YKHO.ptr = ff6...
[ "0.60235214", "0.5830922", "0.5628907", "0.5594818", "0.5565148", "0.5510866", "0.5501139", "0.54963964", "0.5441706", "0.5390601", "0.5387644", "0.53835624", "0.5350162", "0.52872187", "0.52797705", "0.5277189", "0.5277189", "0.5268096", "0.5261594", "0.52351487", "0.5222139...
0.70654875
0
Compute the shortest distance from Pacman to any ghost.
def gd06(hKnD, g_p1): uYq_ = epAf.inf for Oa1e in g_p1: pImw = q0Tb(hKnD, Oa1e) if pImw < uYq_: uYq_ = pImw return uYq_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lXXS(YKHO, oeNL, g_p1, DHvp, YJgV):\n TI1T = [(oeNL[0], oeNL[1], 0)]\n Tdem = set()\n while TI1T:\n cizC, Ydjp, pImw = TI1T.pop(0)\n if (cizC, Ydjp) in Tdem:\n continue\n Tdem.add((cizC, Ydjp))\n if any((komd == (cizC, Ydjp) and YJgV[g_p1.index(komd)].scaredTimer...
[ "0.66232693", "0.64924884", "0.5927872", "0.5912602", "0.5778795", "0.5694343", "0.56743956", "0.5668519", "0.5649572", "0.5599084", "0.5597576", "0.5592011", "0.5576394", "0.55732405", "0.5567601", "0.5543341", "0.5543256", "0.5535534", "0.55197525", "0.54932714", "0.5492649...
0.7641003
0
Get the closest an two neighbouring times
def dUU3(YKHO, ITS7): mp07 = oyIN.argmin(oyIN.absolute(YKHO.time_samples - ITS7)) _0VL = [mp07 + P2GO for P2GO in [-1, 0, 1]] ufiu = (_0VL[0] >= 0) & (_0VL[2] < YKHO.time_samples.size) return (_0VL, ufiu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UYdI(YKHO, ITS7):\n return oyIN.argmin(oyIN.abs(YKHO - ITS7))", "def FcvX(ITS7, ZpyY):\n return oyIN.argmin(oyIN.abs(ITS7 - ZpyY))", "def mp07(YKHO, Ydqt):\n mp07 = Ydqt[0]\n for Elif in Ydqt[1:]:\n Wr9x = YKHO.get_epoch_time() - Elif.get_epoch_time()\n rg8F = YKHO.get_epoch_time(...
[ "0.72241706", "0.7174567", "0.69335866", "0.6760658", "0.6736335", "0.6549466", "0.6506884", "0.64422256", "0.6408484", "0.6384523", "0.63690746", "0.6350009", "0.63488734", "0.6336003", "0.6250476", "0.6148745", "0.61293674", "0.60995716", "0.6095497", "0.6092217", "0.608483...
0.62728745
14
Find the named symbol table and return it.
def ccBJ(YKHO, mWFP): return YKHO._symbol_tables[mWFP.lower()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ccBJ(YKHO, mWFP):\n return YKHO.SYMBOL_TABLE.get(mWFP)", "def ccBJ(YKHO, mWFP):\n for YRbF in range(len(YKHO.symbols)):\n Csk6 = YKHO.symbols[YRbF][1]\n if Csk6.has_key(mWFP):\n return Csk6[mWFP]\n raise od5i('Symbol Table: Undefine symbol: ', mWFP)", "def IFkU(YKHO, mWFP)...
[ "0.76507926", "0.75257427", "0.6968325", "0.69505674", "0.69505674", "0.69505674", "0.69505674", "0.6942136", "0.689239", "0.68875635", "0.68673825", "0.6840144", "0.6787584", "0.65056014", "0.6414453", "0.63820153", "0.6380846", "0.63580585", "0.63367814", "0.63334465", "0.6...
0.8205516
0
Set the parent scope for this symbol table.
def _AKB(YKHO, BWXx): if BWXx is not None and (not isinstance(BWXx, O9Pb)): raise TypeError(f"Unless it is None, the parent of a SymbolTable must also be a SymbolTable but got '{type(BWXx).__name__}'") YKHO._parent = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oRtd(YKHO):\n return YKHO._parent_scope", "def Vf8Q(YKHO):\n XP5J = YpV_.getParentNode(YKHO.node)\n return c7I0(XP5J) if XP5J is not None else None", "def _AKB(YKHO):\n return EZps.Builtin.scope", "def rPzY(YKHO, _AKB):\n pass", "def _AKB(YKHO, _AKB: int):\n YKHO._parent = _AKB", "d...
[ "0.7341054", "0.69562334", "0.6850323", "0.67779005", "0.6608599", "0.65804774", "0.65789205", "0.65740484", "0.6554434", "0.65208113", "0.65208113", "0.65208113", "0.6515498", "0.6508964", "0.64956933", "0.64956933", "0.64740914", "0.64623946", "0.64608705", "0.6445962", "0....
0.70624167
1
Return the us.states.State object associated with this boundary
def QTBn(YKHO): return bypm.states.lookup(YKHO.state_abbrev)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n QTBn = YKHO.states[YKHO.state] if YKHO.states else YKHO.state\n return QTBn", "def QTBn(YKHO):\n QTBn = YKHO.world.state[YKHO.state_name]\n assert QTBn is not None\n return QTBn", "def ja6o(YKHO):\n return QTBn.State(YKHO._roads, YKHO._switch_time)", "def ja6o(YKHO) -> wHL...
[ "0.769492", "0.7615358", "0.7566143", "0.7539327", "0.7453772", "0.7453772", "0.7418041", "0.73729026", "0.73716944", "0.73716944", "0.72201365", "0.7175873", "0.7175873", "0.7175873", "0.7175873", "0.7175873", "0.7175873", "0.7175873", "0.7151885", "0.7146833", "0.7146833", ...
0.77507347
0
Run episode with given policy and initial state
def wbX_(sEAN, mM0K, QTBn): XeOP = mM0K[QTBn[0], QTBn[1]] _ins = False yvY1 = 0 sEAN.plot_racetrack(QTBn) while not _ins: AJEJ, vOGg, _ins, IaaG = sEAN.step(QTBn, XeOP) yvY1 = KMvS * yvY1 + vOGg if QTBn == AJEJ or AJEJ[0][0] == 0: print('Policy failed for initial ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n5Kk(YKHO):\n YKHO.policy.set_eval()\n YKHO.policy.reset()", "def U4d5(YKHO, Qabx):\n wspz = []\n xASv = []\n vwlo = []\n RbaI = []\n QTBn = YKHO.env.reset()\n _ins = False\n while not _ins:\n XeOP, ieu9 = Qabx.getAction(QTBn)\n wspz.append(QTBn)\n xASv.append(...
[ "0.7567949", "0.7391681", "0.73245484", "0.725803", "0.7194703", "0.71888936", "0.71296936", "0.7065382", "0.7065382", "0.7039139", "0.70118773", "0.6955742", "0.69349366", "0.6878494", "0.6854958", "0.6847449", "0.6837999", "0.6798066", "0.67846954", "0.67789567", "0.6777426...
0.0
-1
Return a binarized version of the input image.
def rS0F(input, min, max, bJYl, SW0z): dUxB = tJpJ.itk.medipy_image_to_itk_image(input, False) ipIS = eZaJ.BinaryThresholdImageFilter[dUxB, dUxB].New(LowerThreshold=min, UpperThreshold=max, InsideValue=bJYl, OutsideValue=SW0z) ipIS(dUxB) NY2F = ipIS[0] return tJpJ.itk.itk_image_to_medipy_image(NY2F,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ffz0(YKHO, LNo8):\n yzQ0, MKlR = LNo8.shape\n llUt = LNo8.copy()\n QzFq = o2YJ.compute_histogram(YKHO, LNo8)\n a1PO = o2YJ.find_optimal_threshold(YKHO, QzFq)\n for YRbF in range(yzQ0):\n for r845 in range(MKlR):\n if LNo8[YRbF][r845] <= a1PO:\n llUt[YRbF][r845] =...
[ "0.78715855", "0.785521", "0.7841116", "0.7789251", "0.7707696", "0.76161265", "0.74294", "0.73914135", "0.7361936", "0.7156835", "0.7094123", "0.70449615", "0.7029191", "0.6943272", "0.6942614", "0.69417506", "0.69201684", "0.6850874", "0.6848076", "0.68339247", "0.67767537"...
0.6013437
66
Return a thresholded version of the input image.
def gwAu(input, min, max, SW0z): dUxB = tJpJ.itk.medipy_image_to_itk_image(input, False) ipIS = eZaJ.ThresholdImageFilter[dUxB].New(Lower=min, Upper=max, OutsideValue=SW0z) ipIS(dUxB) NY2F = ipIS[0] return tJpJ.itk.itk_image_to_medipy_image(NY2F, None, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wFao(iBJn):\n LNo8 = XC5k.imread(iBJn)\n LNo8 = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2GRAY)\n LNo8 = XC5k.threshold(LNo8, 0, 255, XC5k.THRESH_BINARY | XC5k.THRESH_OTSU)[1]\n return LNo8", "def wFao(VXjJ):\n N4uf = Sk6z(VXjJ, orient='x', thresh=(20, 255))\n cIjR = Sk6z(VXjJ, orient='y', thresh=...
[ "0.7155749", "0.7076928", "0.70764345", "0.69555897", "0.6933529", "0.6890685", "0.68675834", "0.68470824", "0.6838105", "0.6832299", "0.6802746", "0.6743099", "0.6710605", "0.67101187", "0.6630523", "0.6626909", "0.66125476", "0.6570107", "0.65617913", "0.65615594", "0.65513...
0.65033835
25
Retrieve the previously set juju workload state and message If the statusget command is not found then assume this is juju < 1.23 and return 'unknown', ""
def W4Y7(): HCmI = ['status-get', '--format=json', '--include-data'] try: Lhcn = Yn3K.check_output(HCmI) except OSError as e: if tTpl.errno == d1hN.ENOENT: return ('unknown', '') else: raise else: jGRS = qQXR.loads(Lhcn.decode('UTF-8')) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLTN():\n return '1' if K98B.status else '0'", "def VLTN(jGRS):\n return jGRS", "def ja6o(YKHO) -> str:\n if YKHO.state_cmd is None:\n return 'unknown'\n return YKHO.status", "def jGRS(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO) -> h8nf[qe4Y...
[ "0.6667119", "0.66434646", "0.6598018", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", "0.65612286", ...
0.6682816
0
Validates that the old_password field is correct.
def XLEN(YKHO): if not YKHO.isEmployeePwd(): super(w_jj, YKHO).clean_old_password()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XLEN(YKHO):\n BfIX = YKHO.cleaned_data['old_password']\n if not YKHO.user.check_password(BfIX):\n raise H6V6.ValidationError(YKHO.error_messages['password_incorrect'], code='password_incorrect')\n return BfIX", "def XLEN(YKHO):\n aQqY = YKHO.cleaned_data['old_password']\n if not EvfH(pa...
[ "0.8666899", "0.8658502", "0.86518246", "0.8646207", "0.8646207", "0.8646207", "0.8646207", "0.86354536", "0.85778624", "0.8571695", "0.8571695", "0.8571695", "0.84845865", "0.81431395", "0.7739608", "0.76729065", "0.75963897", "0.7555035", "0.7549429", "0.7504232", "0.746428...
0.68561393
52
Saves the new password.
def xkzz(YKHO): if 'employee' in YKHO.request.session: tTpl = YKHO.request.session['employee'] tTpl.Passwd = YKHO.cleaned_data['new_password1'] tTpl.save() else: super(w_jj, YKHO).save() G1Hx = 'user_id_%s' % YKHO.request.user.pk wyyA.delete(G1Hx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nCXD(YKHO, jTXt):\n YKHO._password = jTXt", "def nCXD(YKHO):\n XDID.passwords.append(YKHO)", "def xkzz(YKHO, *qIxc, **B2fa):\n YKHO.password = D2Lq(YKHO.password)\n super(mv1M, YKHO).save(*qIxc, **B2fa)", "def xkzz(YKHO, *LFbw, **B2fa):\n YKHO.set_password(YKHO.password)\n super(mv1M, Y...
[ "0.7924277", "0.7890919", "0.76715326", "0.7465345", "0.72128814", "0.71888673", "0.716012", "0.7144528", "0.7119652", "0.7083416", "0.70829344", "0.7062069", "0.7039709", "0.70303315", "0.70152944", "0.6989287", "0.6960057", "0.6938513", "0.6913441", "0.69093657", "0.6907866...
0.69857734
16
Adds a segment to self.segments
def jkgi(YKHO, hTWD): YKHO.segments.append(hTWD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, hTWD):\n YKHO.segments.append(hTWD)", "def v7IL(YKHO, *PXIy: Segment):\n for pG0V in PXIy:\n if not pG0V.segment_id or pG0V.segment_id in YKHO.segments:\n YKHO.assign_seg_id(pG0V)\n YKHO.update_stock_dates(pG0V)\n YKHO.segments[pG0V.segment_id] = pG0V\...
[ "0.84401363", "0.80785507", "0.7742902", "0.720412", "0.70480496", "0.69634503", "0.69121325", "0.68619597", "0.68401456", "0.6816757", "0.6765751", "0.67641664", "0.6746823", "0.6728521", "0.6648801", "0.65540314", "0.6551835", "0.6507083", "0.65040886", "0.6491812", "0.6473...
0.811339
1
Generate a formatted and colored string for this row.
def zAg0(YKHO): def fVQB(qfpW, ZfUD): iVRZ, BWXx = ZfUD TVTK = YKHO.table.column_widths[iVRZ] return qfpW(' {0}'.format(BWXx).ljust(1 + TVTK)) DumB = [(iVRZ, YKHO[iVRZ]) for iVRZ in YKHO.table.columns] nPaY = zip(n2fR(YKHO.table.colors), DumB) JnVq = [fVQB(qfpW, ZfUD) for qfpW, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n vIwR = hXe9._header()\n for rdlD in YKHO.chart.rows:\n ZLJ_ = ' | '.join(map(('C', 'G', 'B', 'P', '*', ' ').__getitem__, rdlD['colors']))\n vIwR += '{} {:^15} | {} |\\n'.format(rdlD['date'], rdlD['name'], ZLJ_)\n vIwR += YKHO._footer()\n return vIwR", "def gTzM(YKHO):\...
[ "0.7656581", "0.7504568", "0.7452355", "0.72819364", "0.7248862", "0.7084935", "0.69956654", "0.6977533", "0.6969324", "0.6969324", "0.69616073", "0.69475937", "0.68529856", "0.6837037", "0.6810328", "0.6803747", "0.68020505", "0.6799425", "0.6773608", "0.67559385", "0.673151...
0.8221525
0
This function takes in the html of the table we are trying to extract from and finds the headers for each column
def E_hp(tyNF): WBPg = tyNF.find_all('tr')[0] MOPg = [] for idx7 in WBPg.find_all('th'): MOPg.append(idx7.text) return MOPg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d9WA(nXPU, hs0t):\n P9vT = '<th.*?>(?P<value>.*?)<\\\\/th'\n jO3t = ZbWC.finditer(P9vT, nXPU, flags=ZbWC.IGNORECASE)\n rdlD = hs0t.create_row()\n for JY3R in jO3t:\n rdlD.add_cell(JY3R.group('value'))\n if len(rdlD.cells) == 0:\n hs0t.cancel_row()\n return False\n hs0t.se...
[ "0.73105294", "0.70972013", "0.7078361", "0.7011109", "0.6964363", "0.69534177", "0.6892724", "0.6754847", "0.6745673", "0.6687737", "0.6658704", "0.6643757", "0.661366", "0.6584132", "0.6580701", "0.65747076", "0.6525215", "0.65229076", "0.64656985", "0.6463776", "0.6455526"...
0.7344374
0
This function gets the statistics for each team. then returns a pandas dataframe that has a row for every team and their statistics.
def DlQp(tyNF, rJco, MOPg): for YRbF, yKIT in enumerate(tyNF.find_all('tr')[1:]): eQSh = [rJco[YRbF]] for g75m in yKIT.find_all('td'): eQSh.append(g75m.text) if YRbF == 0: H902 = rLdf.DataFrame(oyIN.array([eQSh]), columns=MOPg) else: x_f_ = rLdf.Da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YSIW(ZWQJ: pd.DataFrame) -> rLdf.DataFrame:\n ZWQJ['count'] = 1\n ZWQJ['champion'] = (ZWQJ['rank'] == 1).astype(int)\n K8oz = {'score': 'sum', 'count': 'count', 'champion': 'sum', 'rank': 'mean'}\n VXH6 = ZWQJ.groupby('Team', as_index=False).agg(K8oz).sort_values('score', ascending=False)\n VXH6...
[ "0.7403429", "0.73995227", "0.7243412", "0.72110415", "0.71414125", "0.7069881", "0.6920945", "0.6897338", "0.6833547", "0.68194664", "0.68138313", "0.67371094", "0.67132145", "0.66767955", "0.66715956", "0.66665417", "0.6665898", "0.6588822", "0.6569999", "0.65637386", "0.65...
0.8034053
0
Get the current date formatted as "YYYYMMDD". Because the API separates games by day of start, we will consider and return the date in the Pacific timezone. The objective is to avoid reading future games anticipatedly when the day rolls over at midnight, which would cause us to ignore games in progress that may have st...
def F3mQ(YKHO): yo7_ = YKHO._pacificTimeNow().date() L0xm = yo7_.isoformat() return L0xm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rg4j(rIAI: int=0):\n uXX2 = qcWV.now() + fCoM(hours=rIAI)\n return uXX2.strftime('[%H:%M:%S] - %d, %B of %Y')", "def zZ5v() -> str:\n return qcWV.now().strftime('%Y-%m-%d')", "def m6Z7() -> str:\n pass", "def rg4j(YKHO, MbZJ):\n return qcWV.now(rIAI(MbZJ)).strftime('%d/%m/%Y')", "def m6Z...
[ "0.71562815", "0.6880688", "0.67589724", "0.6674974", "0.66247964", "0.66230977", "0.6589977", "0.6534895", "0.646229", "0.64607483", "0.6455459", "0.6418764", "0.64185846", "0.6404726", "0.6375012", "0.6301211", "0.62949884", "0.6291615", "0.6281431", "0.62557817", "0.625491...
0.6135103
29
Convert a humanreadable like 'yesterday' to a datetime object and return a 'YYYYMMDD' string.
def HZor(YKHO, _c1T): if _c1T == 'lastweek': kWNG = -7 elif _c1T == 'yesterday': kWNG = -1 elif _c1T == 'today' or _c1T == 'tonight': kWNG = 0 elif _c1T == 'tomorrow': kWNG = 1 elif _c1T == 'nextweek': kWNG = 7 elif _c1T[:3] == 'sun': JvEs = t_XE.n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lDrD():\n azY1 = qcWV.datetime.today()\n azY1 -= qcWV.timedelta(days=1)\n azY1 = str(azY1)\n azY1 = azY1[:-16]\n return azY1", "def ZJeS(RA_F=1):\n return (qcWV.date.today() - qcWV.timedelta(RA_F)).strftime('%Y%m%d')", "def nbXy():\n return (qcWV.datetime.utcnow() - qcWV.timedelta(days...
[ "0.69482833", "0.6621568", "0.64933234", "0.6492853", "0.6475483", "0.64704055", "0.63224584", "0.6311458", "0.6311268", "0.6266779", "0.62242794", "0.6214029", "0.61774945", "0.6137752", "0.60887897", "0.6074747", "0.6056343", "0.60557455", "0.6044094", "0.6034621", "0.60153...
0.0
-1
Computes the crossentropy loss using the internal variable _logits
def xBoL(YKHO): N77f = ZylS.nn.softmax_cross_entropy_with_logits(labels=YKHO.labels, logits=YKHO.logits_op, name='softmax_cross_entropy_loss') N77f = ZylS.reduce_mean(N77f, name='mean_cross_entropy_loss') ZylS.summary.scalar('mean cross-entropy loss', N77f) return N77f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qN0O(KeL5, GQ7f):\n lBeH = yOcR.nn.log_softmax(KeL5)\n return -oLG2.sum(GQ7f * lBeH) / GQ7f.shape[0]", "def aPWd(KeL5: JaxArray, Crrw: JaxArray) -> DKWv:\n zxk8 = 'cross_entropy_logits'\n if KeL5.shape != Crrw.shape:\n qmLP.warn(' {} {} : arg1 {} and arg2 {}'.format(u_uE, zxk8, KeL5.shape,...
[ "0.81743044", "0.7992741", "0.79167956", "0.7893779", "0.7826255", "0.77918446", "0.77918446", "0.7765062", "0.77525645", "0.77284724", "0.7714251", "0.76639414", "0.7663334", "0.76333696", "0.7622038", "0.7617526", "0.7609945", "0.7594368", "0.75331485", "0.7518859", "0.7511...
0.0
-1
Create a new user with an encrypted password and return it.
def eLpg(YKHO, vGfb): tTya = vGfb.pop('password2') return mv1M.objects.create_user(**vGfb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYUQ(mWFP, jTXt):\n Q5YQ = mv1M(mWFP, jTXt)\n return Q5YQ", "def lYUQ(D3lj, jTXt):\n Q5YQ = mv1M(D3lj, jTXt)\n return Q5YQ", "def CfQI(NtEF, jTXt):\n Q5YQ = mv1M(NtEF, jTXt)\n return Q5YQ", "def xWi2(YKHO, jTXt, **wdCM):\n CBIr = YKHO.model(**wdCM)\n CBIr.set_password(jTXt)\n C...
[ "0.84061986", "0.8337634", "0.82698876", "0.82160825", "0.812978", "0.812978", "0.81217253", "0.8040982", "0.8034148", "0.80079997", "0.79528", "0.7930969", "0.7905383", "0.7899831", "0.7881268", "0.78674597", "0.78622824", "0.78366584", "0.7820891", "0.78202885", "0.78201354...
0.766795
46
Change axes label padding of all axes according to font size. Call this after the figure is made.
def g5bZ(hhRS): import matplotlib.pyplot as QrM1 ofSf = hhRS / 12.0 LZpg = QrM1.gcf() for aNZO in LZpg.axes: qvHc = aNZO.xaxis.labelpad h7kf = aNZO.yaxis.labelpad aNZO.xaxis.labelpad = qvHc * ofSf aNZO.yaxis.labelpad = h7kf * ofSf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HaoB(aNZO, GAJY, MPlV=('x', 'y')):\n G9jH.info('changing axis label sizes in matplotlib axis')\n for jDK_ in MPlV:\n if jDK_ == 'x':\n aNZO.xaxis.label.set_fontsize(GAJY)\n elif jDK_ == 'y':\n aNZO.yaxis.label.set_fontsize(GAJY)\n elif jDK_ == 'z':\n ...
[ "0.7483148", "0.72332466", "0.6982581", "0.69367015", "0.69073176", "0.6838064", "0.6787212", "0.67781883", "0.6742479", "0.6663382", "0.65684867", "0.6551426", "0.651814", "0.6513301", "0.6466993", "0.6388274", "0.6383393", "0.63488364", "0.6345936", "0.6277487", "0.62599", ...
0.8366292
0
Test the card with a null due date is not considered as overdue.
def L5P9(YKHO, pqJ8): from datetime import datetime with Po4F(__name__ + '.datetime.datetime') as hDaH: hDaH.now.return_value = datetime(2018, 3, 9) pqJ8.return_value = '{"id": "x", "dateLastActivity":"2018-03-05T11:00:00.000Z", "url": "", "lists": [], "cards": [{"idList": "xx", "name": "Test ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PRpX() -> bool:\n YzvF = hfK9(dxhl['due']) if dxhl.get('due') else qcWV.max\n return YzvF < qcWV.now(tz=YzvF.tzinfo)", "def Gjmh(YKHO):\n return YKHO._due < LgWF.now()", "def Gjmh(YKHO, _c1T=None):\n if _c1T == None:\n _c1T = qcWV.date.today()\n mh02 = YKHO.find_days_overdue(_c1T)\n ...
[ "0.81587356", "0.70636314", "0.6755114", "0.65950954", "0.6569806", "0.65573734", "0.63861537", "0.63585633", "0.6275575", "0.6274853", "0.6219995", "0.6187377", "0.61307126", "0.6081022", "0.6058578", "0.6038847", "0.6037831", "0.6020744", "0.60182583", "0.6015149", "0.59694...
0.6627241
3
Test the card without a due date is not considered as overdue.
def Unqy(YKHO, pqJ8): from datetime import datetime with Po4F(__name__ + '.datetime.datetime') as hDaH: hDaH.now.return_value = datetime(2018, 3, 9) pqJ8.return_value = '{"id": "x", "dateLastActivity":"2018-03-05T11:00:00.000Z", "url": "", "lists": [], "cards": [{"idList": "xx", "name": "Test ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PRpX() -> bool:\n YzvF = hfK9(dxhl['due']) if dxhl.get('due') else qcWV.max\n return YzvF < qcWV.now(tz=YzvF.tzinfo)", "def Gjmh(YKHO):\n return YKHO._due < LgWF.now()", "def CeyM(YKHO):\n yo7_ = qcWV.now().date()\n YKHO.assertFalse(YKHO.order.is_overdue)\n YKHO.order.target_date = yo7_ -...
[ "0.8516746", "0.74988425", "0.7085854", "0.70417535", "0.66960186", "0.6675676", "0.66182286", "0.660309", "0.6532924", "0.6526993", "0.65054405", "0.646714", "0.642627", "0.63946444", "0.6391834", "0.63611466", "0.63124174", "0.6296388", "0.62928843", "0.6255188", "0.6213599...
0.6331377
16
Test that when there is an HTTP error during retrieval, it returns an empty list as inactive cards.
def NY3D(YKHO, zzXh): zzXh.side_effect = uRlK.error.HTTPError(None, None, None, None, None) jtbR = Ygs8('appkeyX', 'tokenX') YKHO.assertEqual([], jtbR.inactive_cards_url('board_id'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLHH(YKHO):\n OA8W = YKHO.client.cards.list('AAAA')\n YKHO.assertEqual(len(OA8W), 0, 'List returned the wrong number of cards')", "def iTFf(YKHO, zzXh):\n zzXh.side_effect = uRlK.error.HTTPError(None, None, None, None, None)\n jtbR = Ygs8('appkeyX', 'tokenX')\n YKHO.assertEqual(-1, jtbR.nr_of_...
[ "0.7140085", "0.7034042", "0.66729444", "0.6647873", "0.6458068", "0.6433949", "0.6409358", "0.6405264", "0.6393927", "0.6351242", "0.63480496", "0.6328797", "0.62779075", "0.6213338", "0.61994225", "0.61787295", "0.61614645", "0.6155069", "0.6155069", "0.61508834", "0.614622...
0.71580964
0
Test that the card with dateLastActivity equal to null is not counted as inactive.
def iCvC(YKHO, pqJ8): from datetime import datetime with Po4F(__name__ + '.datetime.datetime') as hDaH: hDaH.now.return_value = datetime(2018, 3, 21) hDaH.max = datetime.max pqJ8.return_value = '{"id": "x", "dateLastActivity":"2018-03-05T11:00:00.000Z", "url": "", "lists": [], "cards": [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def El75() -> bool:\n kXMr = hfK9(dxhl['dateLastActivity'])\n return xq10(kXMr) > int(YWvJ(int, YKHO._parameter('inactive_days')))", "def akbh(x0hE, geh0, X80K):\n assert not S6iO.objects.get(account__pk=1).is_active()", "def MGFK(YKHO):\n YKHO.timecard.submitted = False\n YKHO.timecard.save()\n...
[ "0.7272043", "0.62089795", "0.5956589", "0.5952679", "0.59385407", "0.58664376", "0.5778688", "0.5741004", "0.5739163", "0.5694116", "0.5659174", "0.5632511", "0.56254274", "0.55969095", "0.55654526", "0.5543014", "0.5509804", "0.550012", "0.5492972", "0.548994", "0.5461959",...
0.6421194
1
Test the nr_of_over_due_actions is alias for nr_of_over_due_cards.
def W3xt(YKHO, qZgo): Ygs8('appkeyX', 'tokenX').nr_of_over_due_actions('board_id') YKHO.assertTrue(qZgo.assert_called_once)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _FBm(YKHO, *jl9v: str) -> int:\n xzxd = YKHO._get_issues_older_than(*jl9v, limit_date=qcWV.datetime.now())\n return len(xzxd) if xzxd is not None else -1", "def cit8(YKHO, pqJ8):\n from datetime import datetime\n with Po4F(__name__ + '.datetime.datetime') as hDaH:\n hDaH.now.return_value =...
[ "0.6618525", "0.6274616", "0.6254122", "0.6201413", "0.61547226", "0.60292745", "0.5805283", "0.5783618", "0.57682276", "0.57433385", "0.5734966", "0.5714193", "0.5694907", "0.56783324", "0.5673894", "0.56724566", "0.5586637", "0.5555198", "0.55354226", "0.55257857", "0.55246...
0.7704955
0
Test the nr_of_inactive_actions is alias for nr_of_inactive_cards.
def NHcw(YKHO, sqYd): Ygs8('appkeyX', 'tokenX').nr_of_inactive_actions('board_id') YKHO.assertTrue(sqYd.assert_called_once)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def El75() -> bool:\n kXMr = hfK9(dxhl['dateLastActivity'])\n return xq10(kXMr) > int(YWvJ(int, YKHO._parameter('inactive_days')))", "def YMjk(YKHO, sqYd):\n Ygs8('appkeyX', 'tokenX').inactive_actions_url('board_id')\n YKHO.assertTrue(sqYd.assert_called_once)", "def GpXD(YKHO, *jl9v: str) -> int:\n...
[ "0.63946354", "0.6186682", "0.60730326", "0.59805274", "0.5696685", "0.5641854", "0.5627979", "0.56243384", "0.55867976", "0.5571086", "0.55311817", "0.5522203", "0.5520653", "0.55116284", "0.5499046", "0.54846567", "0.54315525", "0.5427732", "0.5427732", "0.5421609", "0.5420...
0.7729524
0
Checks that the file list contains each file extension.
def _4OI(Emd4, RRlC, CBZq): bo34.debug('Checking that all required files exist.') xds0 = dict.fromkeys(CBZq, False) for eHNT in RRlC: for YBcr in CBZq: if Emd4.file_has_extension(eHNT, YBcr): xds0[YBcr] = True bo34.debug('Check directory results: {}'.format(xds0)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EAEZ(YKHO, nUeQ, CBZq):\n if CBZq is None:\n return True\n if type(CBZq) is list and len(CBZq) == 0:\n return True\n if type(CBZq) is not list:\n CBZq = [str(CBZq)]\n tTpl = Hy7s.path.splitext(nUeQ)[1][1:]\n for YBcr in CBZq:\n if tTpl == YBcr:\n return Tru...
[ "0.76600075", "0.7638349", "0.7618896", "0.76141566", "0.7531363", "0.72651654", "0.721675", "0.719177", "0.7190167", "0.71869975", "0.71757084", "0.7118163", "0.7105885", "0.7105885", "0.7105885", "0.7105885", "0.7105885", "0.7097418", "0.70901155", "0.7035308", "0.7023892",...
0.6666997
83
Return the resource type in the collection.
def FRul(Emd4) -> eBH2[_KnH]: return _KnH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO):\n return YKHO._get_field('type')", "def styj(YKHO):\n Co34 = YKHO.resource_type\n if Co34 == 'serviceResource':\n return 'services'\n elif Co34 == 'fileResource':\n return 'files'\n elif Co34 == 'packageResource':\n return 'packages'\n elif Co34 == 'userReso...
[ "0.8489933", "0.84144336", "0.84130675", "0.84130675", "0.8374653", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.8324851", "0.81395096", "0.81395096"...
0.0
-1
map x in Interval[src_lb, src_ub] to y in Interval[dst_lb, dst_ub]
def uhQC(WKvO, bF9J, XkWL, fnE_, hiEU): SnCn = (hiEU - fnE_) / (XkWL - bF9J) FB1E = (WKvO >= bF9J) & (WKvO <= XkWL) yzDL = fnE_ + (WKvO - bF9J) * SnCn return oLG2.where(FB1E, yzDL, oyIN.nan)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SlZZ(wEf2, RYbY, Mvpj, RqhY, fkdE):\n return RqhY + float(wEf2 - RYbY) / (Mvpj - RYbY) * (fkdE - RqhY)", "def SlZZ(wEf2, RYbY, Mvpj, RqhY, fkdE):\n rCKu = float(Mvpj - RYbY)\n R9RW = float(fkdE - RqhY)\n return R9RW / rCKu * (wEf2 - RYbY) + RqhY", "def KUB8(exwG: float, QuC0: float, NIWF: float...
[ "0.6682855", "0.66696846", "0.6617442", "0.66019946", "0.65808356", "0.6561221", "0.6543417", "0.6505488", "0.6434744", "0.6414001", "0.6413754", "0.6384994", "0.63804245", "0.6361932", "0.6341914", "0.6322016", "0.6311587", "0.62680453", "0.6243378", "0.6226132", "0.6180578"...
0.8442234
0
Converts an bgr8 image into a grayscale image.
def kvHv(VXjJ): H2v2, TVTK, rb7a = VXjJ.shape qWz7 = oyIN.empty((H2v2, TVTK), dtype=oyIN.float64) Wxnj = '\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n for (int j = 0; j < width; j++) {\n\n double mean = 0;\n for (int k = 0; k < de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PuKS(VXjJ):\n CmPs = BVZ5(VXjJ)\n if CmPs.ndim == 2:\n o8mw = XC5k.cvtColor(CmPs[..., oyIN.newaxis], XC5k.COLOR_GRAY2BGR)\n else:\n o8mw = XC5k.cvtColor(CmPs, XC5k.COLOR_GRAY2BGR)\n return o8mw", "def DvdL(VXjJ):\n return XC5k.cvtColor(VXjJ, neC1('bgr2gray'))", "def a2gH(LNo8: ...
[ "0.77566105", "0.7672927", "0.76182103", "0.7591365", "0.74568594", "0.74118954", "0.73619485", "0.7349248", "0.7294972", "0.7261427", "0.71154433", "0.71154433", "0.7092926", "0.7092054", "0.7091216", "0.7076587", "0.7068423", "0.70456576", "0.7036179", "0.7028701", "0.70241...
0.0
-1
Creation of the bias vector
def k0Dq(YKHO, EcVT): ywwl = oyIN.size(EcVT, 1) A_1m = oyIN.ones([ywwl, 1], dtype=int) return A_1m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AQBQ():\n cpyE = oyIN.array([1.0 * po2l[URt2[YRbF]] for YRbF in URt2])\n cpyE /= oyIN.sum(cpyE)\n cpyE = oyIN.log(cpyE)\n cpyE -= oyIN.max(cpyE)\n return cpyE", "def kwym(YKHO):\n return tuKI.uniform(*YKHO.BIASRANGE)", "def oug5(exwG, yDqo=oyIN.float32):\n return oyIN.zeros(exwG, yDqo)...
[ "0.7314524", "0.71306825", "0.71121264", "0.71074927", "0.7059235", "0.69684887", "0.6929801", "0.69095534", "0.6888721", "0.6862634", "0.6849122", "0.684611", "0.6829674", "0.6787276", "0.67513734", "0.67492634", "0.6746014", "0.67418313", "0.6722857", "0.67019665", "0.66851...
0.7673163
0
The mean_logsigma passed as argument is converted into the text conditioning variable.
def gfZn(WKvO): JBMS = WKvO[:, :128] SgQ6 = WKvO[:, 128:] z2bo = ZylS.math.exp(SgQ6) _hZ2 = nMvt.random_normal(shape=nMvt.constant((JBMS.shape[1],), dtype='int32')) Z9rn = JBMS + z2bo * _hZ2 return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SgQ6(YKHO):\n return YKHO._log_sigma", "def DJUr(YKHO, Y8eF, SGPK):\n AdfU = nMvt.reshape(SGPK, [-1, YKHO._n_seq + 2, YKHO._n_distr])\n yGTL = AdfU[:, :YKHO._n_seq, :]\n WTkW = AdfU[:, YKHO._n_seq, :]\n Cwt5 = AdfU[:, YKHO._n_seq + 1, :]\n Cwt5 = nMvt.softmax(nMvt.clip(Cwt5, 1e-08, 1.0))\n ...
[ "0.63158065", "0.61036944", "0.6039785", "0.60235995", "0.5958902", "0.5844512", "0.5843384", "0.5813354", "0.5791993", "0.5781561", "0.57708997", "0.57546383", "0.57401496", "0.5710046", "0.5699351", "0.56918555", "0.5689231", "0.5686665", "0.5655686", "0.5640359", "0.563121...
0.5428113
43
An Upsample block with Upsampling2D, Conv2D, BatchNormalization and a ReLU activation.
def kG7R(WKvO, VGx2): WKvO = wJ8e(size=(2, 2))(WKvO) WKvO = yHwh(VGx2, kernel_size=(3, 3), padding='same', strides=1, use_bias=False, kernel_initializer='he_uniform')(WKvO) WKvO = GVKG(gamma_initializer='ones', beta_initializer='zeros')(WKvO) WKvO = QQIR()(WKvO) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, UDrg, sqUk, WZcn, _0fC, hVLt):\n super(mCRR, YKHO).__init__()\n yIp6 = U78l.Conv2d\n c9qO = U78l.UpsamplingBilinear2d\n XkN1 = U78l.Sequential()\n XkN1.add_module('conv_1', yIp6(UDrg, sqUk, WZcn, _0fC, hVLt))\n XkN1.add_module('upsample_2', c9qO(scale_factor=2))\n YKHO.biup_bloc...
[ "0.7263029", "0.71239936", "0.6983129", "0.6835437", "0.68294233", "0.6815465", "0.6809479", "0.6721719", "0.6631023", "0.66083807", "0.6537517", "0.6477829", "0.6459879", "0.6409122", "0.6400098", "0.6374678", "0.6352169", "0.6306567", "0.622865", "0.621215", "0.6210487", ...
0.7011095
2
A ConvBlock with a Conv2D, BatchNormalization and LeakyReLU activation.
def jO9g(WKvO, VGx2, Ot1W=(4, 4), FEri=2, YDYE=True): WKvO = yHwh(VGx2, kernel_size=Ot1W, padding='same', strides=FEri, use_bias=False, kernel_initializer='he_uniform')(WKvO) WKvO = GVKG(gamma_initializer='ones', beta_initializer='zeros')(WKvO) if YDYE: WKvO = ybb1(alpha=0.2)(WKvO) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ApQ8, dxEX, _Ycl, dvgN, hr1G, uNRR):\n super(kMOE, YKHO).__init__()\n XkN1 = []\n XkN1.append(U78l.Conv2d(ApQ8, dxEX, kernel_size=3, padding=int(dvgN), bias=False))\n XkN1.append(_Ycl)\n if uNRR:\n XkN1.append(U78l.BatchNorm2d(dxEX))\n if hr1G > 0.0:\n XkN1.append(U78...
[ "0.7593794", "0.7484372", "0.7418315", "0.7363992", "0.73232716", "0.73232716", "0.73232716", "0.72561777", "0.7239313", "0.71871686", "0.71684766", "0.7162173", "0.7136563", "0.712968", "0.7110268", "0.71039253", "0.7099493", "0.7077475", "0.70635927", "0.7062459", "0.705125...
0.800091
0
Builds the Stage 2 Discriminator that uses the 256x256 resolution images from the generator and the compressed and spatially replicated embeddings.
def FklE(): qnTx = X6a0(shape=(256, 256, 3)) WKvO = yHwh(64, kernel_size=(4, 4), padding='same', strides=2, use_bias=False, kernel_initializer='he_uniform')(qnTx) WKvO = ybb1(alpha=0.2)(WKvO) WKvO = jO9g(WKvO, 128) WKvO = jO9g(WKvO, 256) WKvO = jO9g(WKvO, 512) WKvO = jO9g(WKvO, 1024) WKv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jrAh():\n qnTx = X6a0(shape=(64, 64, 3))\n WKvO = yHwh(64, kernel_size=(4, 4), strides=2, padding='same', use_bias=False, kernel_initializer='he_uniform')(qnTx)\n WKvO = ybb1(alpha=0.2)(WKvO)\n WKvO = jO9g(WKvO, 128)\n WKvO = jO9g(WKvO, 256)\n WKvO = jO9g(WKvO, 512)\n omvr = X6a0(shape=(4,...
[ "0.7184744", "0.6960079", "0.68180966", "0.6719283", "0.65728194", "0.64284647", "0.6410188", "0.63791484", "0.6311362", "0.6297917", "0.6265764", "0.6251014", "0.6228225", "0.62157553", "0.6204881", "0.6196745", "0.6150234", "0.6144447", "0.6123925", "0.61029494", "0.6093572...
0.76597166
0
Generate a random walk (brownian motion). Data is scaled to produce a soft "flickering" effect.
def UL3h(YKHO, YRbF): if callable(YKHO.data): return YKHO.data() else: return YKHO.data[YRbF]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JYfK(Fb9w):\n ZAda = []\n LVAh = 0\n for bGrB in range(Fb9w):\n if tuKI.randint(0, 1):\n LVAh += 1\n else:\n LVAh -= 1\n ZAda.append(LVAh)\n return oyIN.array(ZAda)", "def JYfK(YKHO, N3Vf, pu_z=None, DyFO=None, SiRx=0.0, aXEN=[0.99], ffTp=False):\n as...
[ "0.6496117", "0.6364815", "0.6274543", "0.6263713", "0.62158734", "0.6157409", "0.6100296", "0.6069054", "0.6059818", "0.60512996", "0.6027179", "0.6024276", "0.6008593", "0.5959823", "0.5959022", "0.5956365", "0.5949082", "0.59442466", "0.5937601", "0.5920073", "0.5919539", ...
0.0
-1
Iterates through and lemmatizes words in each document in the corpus.
def CA6d(YKHO, rrSk): return [YKHO.lemmatize_document(C13M) for C13M in rrSk]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def glG9(YKHO, C13M):\n DlzR = ''\n for _dZy in N3rN(C13M):\n b66g = ''\n for eOtH in YcFa(_dZy):\n j2La = YKHO.lemmatizer.lemmatize(eOtH)\n b66g += j2La + ' '\n DlzR += b66g.strip()\n return DlzR", "def glG9(d_Go):\n LkXt = GFnk()\n return [[LkXt.lemmati...
[ "0.76277614", "0.7485828", "0.7485225", "0.7300889", "0.721228", "0.7081265", "0.70189226", "0.7018721", "0.69902396", "0.69853365", "0.6952552", "0.69259286", "0.6892979", "0.6856193", "0.68316627", "0.6827853", "0.68095607", "0.67636275", "0.676198", "0.67584026", "0.674069...
0.79097265
0
String representation of the IP subnet.
def zAg0(YKHO) -> str: return f'{YKHO.octets[0]}.{YKHO.octets[1]}.{YKHO.octets[2]}.{YKHO.octets[3]}/{YKHO.cidr}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VWZy(YKHO) -> str:\n return qe4Y.get(YKHO, 'subnet')", "def Mphx(YKHO):\n Z9rn = YKHO.given_cidr\n KCHu = '{}\\n'.format(YKHO.iparg)\n KCHu += str('%-20s' % 'CIDR' + '\\t' + str('%-20s' % YKHO.subnets[Z9rn]['cidr']) + '\\n')\n KCHu += str('%-20s' % 'Mask' + '\\t' + str('%-20s' % YKHO.subnets[Z...
[ "0.81818235", "0.75738794", "0.7534533", "0.7511549", "0.74430656", "0.7353247", "0.7239689", "0.72295743", "0.72295743", "0.72295743", "0.72295743", "0.7185165", "0.7138218", "0.707488", "0.707488", "0.707488", "0.707488", "0.69500375", "0.69203067", "0.68851835", "0.6825058...
0.7427568
5
Returns a deep copy of the object. This method is to be used in place of the standard copy.deepcopy, that will raise an exception.
def x8te(YKHO): i_PE = YKHO._multiplied_objs YKHO._multiplied_objs = [] piAD = jth9.deepcopy(YKHO) piAD._multiplied_objs = i_PE YKHO._multiplied_objs = i_PE return piAD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _qLf(YKHO) -> object:\n return qA7W.deepcopy(YKHO)", "def _9K6(YKHO):\n raise NotImplementedError", "def d9kX(YKHO):\n return YKHO.dup()", "def d9kX(YKHO):\n raise NotImplementedError()", "def w9Jj(YKHO, bYu0):\n uGqW = jth9.deepcopy(bYu0)\n return uGqW", "def d9kX(YKHO):\n pass"...
[ "0.8444126", "0.8159285", "0.8157701", "0.81192946", "0.8010766", "0.7899872", "0.78872937", "0.7835999", "0.78121674", "0.78119415", "0.77921355", "0.778144", "0.77572757", "0.77514184", "0.77499485", "0.7749198", "0.7739614", "0.7736911", "0.7722941", "0.77087", "0.76976645...
0.0
-1
Sets the switch CLOSED.
def DDI8(YKHO): YKHO.disablestring = ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PDFC(YKHO):\n return bool(YKHO.STATUS & EloR.SW_F)", "def S0np(YKHO, ymPF=1):\n YKHO.set_status('stop', ymPF)", "def xe2L(YKHO):\n if YKHO.state[0] == 'Closed':\n YKHO.state = ('Open', YKHO.off_time)\n else:\n YKHO.state = ('Closed', 0.0)", "def ul7O(YKHO, BH3N):\n if YKHO.st...
[ "0.6435993", "0.6351788", "0.6224345", "0.62242174", "0.621877", "0.62043023", "0.61962926", "0.61767775", "0.6151769", "0.6119383", "0.6068844", "0.6059584", "0.6025525", "0.60011", "0.59796935", "0.5923521", "0.5898577", "0.5877268", "0.5871336", "0.58502626", "0.5840419", ...
0.56233984
50
Test pull method when it raises a ResourceNotExistError exception. Hard to test the behaviour without exceptions inside Redis. This test is expected to fail without mocking.
def sBFe(QePW, AZgw, Eorv): if not s4Yz: trZe.xfail('need mocking') H5ew = QePW.node.name if s4Yz: AZgw.patch('redis.Redis.hgetall') AZgw.patch('redis.Redis.exists', return_value=False) with trZe.raises(FSXD): Eorv.pull(H5ew) if s4Yz: OeZe.Redis.hgetall.assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pQLo(QePW, AZgw, Eorv):\n if not s4Yz:\n trZe.xfail('need mocking')\n H5ew = QePW.node.name\n if s4Yz:\n AZgw.patch('redis.Redis.hgetall', side_effect=OeZe.RedisError())\n AZgw.patch('redis.Redis.exists', return_value=True)\n with trZe.raises(S21B):\n Eorv.pull(H5ew)\n ...
[ "0.8221346", "0.6882026", "0.6782348", "0.67822146", "0.6744209", "0.6737748", "0.6679967", "0.66089904", "0.6596907", "0.65659344", "0.652011", "0.64900964", "0.64855534", "0.6479769", "0.6455296", "0.64231473", "0.6407888", "0.6382861", "0.63766754", "0.6355098", "0.6338557...
0.8438848
0
Test lock method when it raises a ResourceNotExistError exception. Hard to test the behaviour without exceptions inside Redis. This test is expected to fail without mocking.
def XXpA(QePW, AZgw, Eorv): if not s4Yz: trZe.xfail('need mocking') H5ew = QePW.node.name if s4Yz: AZgw.patch('redis.Redis.exists', return_value=False) AZgw.patch('redis.Redis.set') with trZe.raises(FSXD): Eorv.lock(H5ew) if s4Yz: OeZe.Redis.set.assert_not_cal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BJJB(YKHO):\n H5ew = 'test_resource'\n NzFF = YKHO.key_format.format(H5ew)\n YKHO.redis.set(NzFF, 'MOCK')\n YKHO.assertEqual('MOCK', YKHO.redis.get(NzFF).decode('utf-8'))\n FcNP = F859(YKHO.redis, H5ew, 'test_worker')\n with FcNP.lock() as dynJ:\n YKHO.assertFalse(dynJ, 'reserved lock,...
[ "0.84592247", "0.8287472", "0.82373524", "0.8139109", "0.81178737", "0.7944554", "0.77910393", "0.76473033", "0.7594324", "0.73824865", "0.7290416", "0.72850704", "0.7117721", "0.71087235", "0.69527805", "0.6937521", "0.6861283", "0.67997664", "0.67947733", "0.6785623", "0.67...
0.85356873
0
Test lock method when it raises a ResourceLockError exceptions. Hard to test the behaviour without exceptions inside Redis. This test is expected to fail without mocking.
def jIl_(QePW, AZgw, Eorv): if not s4Yz: trZe.xfail('need mocking') H5ew = QePW.node.name if s4Yz: AZgw.patch('redis.Redis.exists', return_value=True) AZgw.patch('redis.Redis.set', side_effect=OeZe.RedisError()) with trZe.raises(BdpR): Eorv.lock(H5ew) if s4Yz: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BJJB(YKHO):\n H5ew = 'test_resource'\n NzFF = YKHO.key_format.format(H5ew)\n YKHO.redis.set(NzFF, 'MOCK')\n YKHO.assertEqual('MOCK', YKHO.redis.get(NzFF).decode('utf-8'))\n FcNP = F859(YKHO.redis, H5ew, 'test_worker')\n with FcNP.lock() as dynJ:\n YKHO.assertFalse(dynJ, 'reserved lock,...
[ "0.85713863", "0.8459665", "0.8359849", "0.810123", "0.79876965", "0.7785219", "0.77505577", "0.7709255", "0.7606362", "0.75577563", "0.7341205", "0.7318847", "0.7286632", "0.72837335", "0.72562015", "0.72106206", "0.72072273", "0.7191787", "0.69698906", "0.69275063", "0.6889...
0.86917096
0
Test unlock method when it raises a ResourceNotExistError exception. Hard to test the behaviour without exceptions inside Redis. This test is expected to fail without mocking.
def GNLb(QePW, AZgw, Eorv): if not s4Yz: trZe.xfail('need mocking') H5ew = QePW.node.name if s4Yz: AZgw.patch('redis.Redis.exists', return_value=False) AZgw.patch('redis.Redis.set') with trZe.raises(FSXD): Eorv.unlock(H5ew) if s4Yz: OeZe.Redis.set.assert_not_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ILHa(QePW, AZgw, Eorv):\n if not s4Yz:\n trZe.xfail('need mocking')\n H5ew = QePW.node.name\n if s4Yz:\n AZgw.patch('redis.Redis.exists', return_value=True)\n AZgw.patch('redis.Redis.set', side_effect=OeZe.RedisError())\n with trZe.raises(wXmi):\n Eorv.unlock(H5ew)\n ...
[ "0.8223734", "0.7814744", "0.78099155", "0.7648302", "0.7618571", "0.75864935", "0.75301266", "0.7518619", "0.744999", "0.72271556", "0.7147185", "0.70090544", "0.6936103", "0.68599755", "0.6844048", "0.6828288", "0.6814174", "0.6644307", "0.6615619", "0.6584502", "0.65842515...
0.8352274
0
Test delete method when it raises a ResourceNotExistError exception. Hard to test the behaviour without exceptions inside Redis. This test is expected to fail without mocking.
def Ifk1(QePW, AZgw, Eorv): if not s4Yz: trZe.xfail('need mocking') H5ew = QePW.node.name if s4Yz: AZgw.patch('redis.Redis.delete') AZgw.patch('redis.Redis.exists', return_value=False) with trZe.raises(FSXD): Eorv.delete(H5ew) if s4Yz: OeZe.Redis.delete.assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mtOG(QePW, AZgw, Eorv):\n if not s4Yz:\n trZe.xfail('need mocking')\n H5ew = QePW.node.name\n if s4Yz:\n AZgw.patch('redis.Redis.delete', side_effect=OeZe.RedisError())\n AZgw.patch('redis.Redis.exists', return_value=True)\n with trZe.raises(esQA):\n Eorv.delete(H5ew)\n ...
[ "0.8401525", "0.75980043", "0.7562833", "0.75097525", "0.74746543", "0.74219215", "0.74079776", "0.7262443", "0.72372043", "0.71708584", "0.7126423", "0.7122911", "0.7122911", "0.7122911", "0.71206415", "0.71198106", "0.7092488", "0.7089748", "0.7056411", "0.705101", "0.70371...
0.8353785
1
Test delete method when it raises a ResourceDeleteError exception. Hard to test the behaviour without exceptions inside Redis. This test is expected to fail without mocking.
def mtOG(QePW, AZgw, Eorv): if not s4Yz: trZe.xfail('need mocking') H5ew = QePW.node.name if s4Yz: AZgw.patch('redis.Redis.delete', side_effect=OeZe.RedisError()) AZgw.patch('redis.Redis.exists', return_value=True) with trZe.raises(esQA): Eorv.delete(H5ew) if s4Yz: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ifk1(QePW, AZgw, Eorv):\n if not s4Yz:\n trZe.xfail('need mocking')\n H5ew = QePW.node.name\n if s4Yz:\n AZgw.patch('redis.Redis.delete')\n AZgw.patch('redis.Redis.exists', return_value=False)\n with trZe.raises(FSXD):\n Eorv.delete(H5ew)\n if s4Yz:\n OeZe.Redi...
[ "0.80256885", "0.76942074", "0.76204747", "0.7402283", "0.7179532", "0.70834947", "0.7078322", "0.70744413", "0.7041229", "0.7041151", "0.7026237", "0.70123225", "0.70018244", "0.7000524", "0.7000184", "0.7000184", "0.7000184", "0.6997727", "0.6984", "0.69641477", "0.69546133...
0.8645285
0
Enforce valid email addresses.
def eUwU(CBIr, UrTq): from openedx.core.djangoapps.user_api.accounts.api import get_email_validation_error, get_secondary_email_validation_error if get_email_validation_error(UrTq): raise ValueError(bGrB('Valid e-mail address required.')) if hasattr(CBIr, 'account_recovery'): if CBIr.account...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WIr9(YKHO):\n if not abGk.match(YKHO.email):\n raise iO0w(bGrB('Given email address is not valid!'))", "def WIr9(YKHO):\n if not abGk.match(YKHO.email):\n raise iO0w(bGrB('Your email address is not valid!'))", "def qgkF(YKHO):\n YKHO._validate_email()", "def ke7i(YKHO):\n if YKH...
[ "0.7706493", "0.76641977", "0.7592925", "0.7562898", "0.73600775", "0.7351078", "0.7342095", "0.7318579", "0.7282709", "0.71975654", "0.7155408", "0.7149103", "0.7129335", "0.7087087", "0.7034428", "0.70309496", "0.6972455", "0.6965513", "0.6962137", "0.6925438", "0.6912707",...
0.0
-1
User requested a new email. This is called when the activation link is clicked. We confirm with the old email, and update
def hVSO(QePW, H5ew): with Kh6j.atomic(): try: QuaE = vZEr.objects.get(activation_key=H5ew) except vZEr.DoesNotExist: geh0 = SGJU('invalid_email_key.html', {}) Kh6j.set_rollback(True) return geh0 CBIr = QuaE.user ihCL = {'old_email': CB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FI4I(CBIr, UrTq, OYTW=None, eFYy=False):\n if not OYTW:\n OYTW = qxeD.uuid4().hex\n vVcP = gxEw('confirm_email_change', kwargs={'key': OYTW})\n if eFYy:\n k1EM.objects.update_or_create(user=CBIr, defaults={'new_secondary_email': UrTq, 'activation_key': OYTW})\n vVcP = gxEw('activa...
[ "0.7883003", "0.7845646", "0.7746891", "0.76217914", "0.7414367", "0.73492014", "0.73488426", "0.72283053", "0.71608496", "0.7160462", "0.7149396", "0.70488393", "0.7043144", "0.70363885", "0.69998384", "0.69546115", "0.6944372", "0.69192594", "0.6912582", "0.69080305", "0.68...
0.73186195
7
The Amazon Resource Name (ARN) of the site.
def esas(YKHO) -> str: return qe4Y.get(YKHO, 'site_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def h...
[ "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.7066716", "0.67055196", "0.6644672", "0.6644672", "0.6644672", ...
0.8182417
0
The ID of the site.
def COo8(YKHO) -> str: return qe4Y.get(YKHO, 'site_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def COo8(YKHO):\n return YKHO._site_id", "def COo8(YKHO) -> int:\n return YKHO._site_id", "def COo8(YKHO):\n return YKHO.properties.get('SiteId', None)", "def COo8(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'site_id')", "def COo8(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'si...
[ "0.8670566", "0.8609096", "0.8514968", "0.8277383", "0.8277383", "0.8117546", "0.8101237", "0.8101237", "0.8071004", "0.784467", "0.784467", "0.784467", "0.78352076", "0.78352076", "0.78352076", "0.7745681", "0.74487394", "0.741625", "0.73941875", "0.7322969", "0.7322969", ...
0.8845217
0
Gets the current knob color.
def PICn(YKHO): Z5Q9 = YKHO.read_byte(YKHO.TWIST_RED) jlxe = YKHO.read_byte(YKHO.TWIST_GREEN) pPPK = YKHO.read_byte(YKHO.TWIST_BLUE) return [Z5Q9, jlxe, pPPK]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PICn(YKHO):\n return YKHO.color", "def PICn(YKHO):\n return YKHO.color", "def JWJh(YKHO):\n return YKHO.color.value", "def gKFS(YKHO):\n return YKHO._current_color", "def PICn(YKHO):\n return YKHO._color", "def PICn(YKHO):\n return YKHO.color", "def PICn(YKHO):\n return YKHO._c...
[ "0.7506234", "0.7506234", "0.7506111", "0.74922657", "0.746642", "0.74401164", "0.7428596", "0.7428596", "0.7428596", "0.7428596", "0.7364681", "0.73524904", "0.7304049", "0.7294206", "0.72850156", "0.72388494", "0.72376955", "0.72209287", "0.7128644", "0.7128644", "0.7121975...
0.0
-1
Unicode representation of Measurement.
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return '일 후 만료'", "def b82i(YKHO):\n return ''", "def b82i(YKHO):\n return ''", "def b82i(YKHO):\n if not YKHO._isUpdate:\n return ''\n if YKHO._view_type == 'S':\n return '초'\n else:\n return ''", "def qraf(YKHO):\n return YKHO._quote", "def PX...
[ "0.7048071", "0.6998435", "0.6998435", "0.6955278", "0.6954237", "0.68748677", "0.68245226", "0.6819383", "0.67718166", "0.6737746", "0.67143327", "0.6671616", "0.66266453", "0.66081494", "0.6590774", "0.65813655", "0.65319896", "0.65290695", "0.6522652", "0.65171105", "0.648...
0.0
-1
Returns the score on the given data, if the estimator has been refit. This uses the score defined by ``scoring`` where provided, and the ``best_estimator_.score`` method otherwise.
def p1kx(YKHO, EcVT, LVAh=None): nvEb = YKHO.predict(EcVT) p1kx = Wbxz.accuracy_score(LVAh, nvEb) return p1kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1kx(YKHO, EcVT, LVAh, SrUS=None):\n mrZR(YKHO, 'estimator_')\n SrUS = SrUS if SrUS is not None else YKHO.scoring\n HjDq = DmSo(YKHO.estimator_, scoring=SrUS, allow_none=False)\n return HjDq(YKHO.estimator_, YKHO.transform(EcVT), LVAh)", "def p1kx(YKHO, EcVT, LVAh=None):\n YKHO._check_is_fitte...
[ "0.7615567", "0.69113964", "0.6838314", "0.6676315", "0.6638912", "0.6571808", "0.65441847", "0.65310335", "0.6509599", "0.65071714", "0.64779043", "0.63516873", "0.63266253", "0.6309994", "0.6295895", "0.6287818", "0.6284853", "0.628369", "0.6280151", "0.6271179", "0.6268711...
0.0
-1
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter.
def cfQO(tvqc, QpfX): """ Uncomment this if statement and populate with your skill's application ID to prevent someone else from configuring a skill that sends requests to this function. """ if tvqc['session']['new']: WZhd({'requestId': tvqc['request']['requestId']}, tvqc['session']) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])...
[ "0.69186115", "0.6761318", "0.65827686", "0.64889985", "0.6455944", "0.6376048", "0.6285098", "0.626961", "0.6269503", "0.62446874", "0.6217709", "0.62142766", "0.6193362", "0.61783606", "0.6151918", "0.6143191", "0.6131928", "0.6130525", "0.60501736", "0.6007801", "0.5980844...
0.59349614
21
Function to convert the prefix expression back to infix notation.
def vMeq(YKHO, LoYm): for tTpl in LoYm[::-1]: if tTpl not in L6Am.operations: YKHO.stack.append(tTpl) else: xfJD = YKHO.stack.pop(-1) wQab = YKHO.stack.pop(-1) khtY = tTpl YKHO.stack.append('({}{}{})'.format(xfJD, khtY, wQab)) return YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dQt5(lsX7):\n Gmg8 = Erru(lsX7)\n C6ne = list(reversed(Gmg8))\n C6ne = [yfUW(WKvO) for WKvO in C6ne]\n WVZn = RDrR(C6ne)\n WVZn = [WKvO for WKvO in WVZn if WKvO != ',']\n IdVy = list(reversed(WVZn))\n return IdVy", "def zxXc(n_L_):\n \"\"\"Input argument: a string containing a prefix ...
[ "0.7656246", "0.71188426", "0.7093798", "0.6921315", "0.69109434", "0.6901609", "0.6872294", "0.6821847", "0.6797918", "0.67928064", "0.6708492", "0.6703432", "0.6700627", "0.6692375", "0.66705054", "0.6619981", "0.66084963", "0.66084963", "0.6558151", "0.6547634", "0.6532606...
0.7591407
1
Return the value associated with the key item in the MutableMapping.
def OP2O(YKHO, ZfUD): raise NotImplementedError('must be implemented by subclass.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _oqe(YKHO, H5ew):\n for G1Hx, Ty9i in YKHO._map:\n if H5ew == G1Hx:\n return Ty9i\n return None", "def Zmkp(YKHO, H5ew):\n d6pt = YKHO.find_index(H5ew)\n if d6pt is not None:\n return YKHO._map_entries[d6pt].value\n else:\n print('Key is not in the map')\n ...
[ "0.7599688", "0.75462234", "0.72247857", "0.72247857", "0.7050474", "0.7050474", "0.70184875", "0.6828793", "0.68125385", "0.6771623", "0.67400676", "0.673835", "0.6726418", "0.67208326", "0.6712501", "0.6712419", "0.67103237", "0.66956335", "0.66858655", "0.66841316", "0.668...
0.0
-1
If key k exists in the map, simply return M[k]; if key k does not exist, set M[k] = d and return that value.
def zsoT(YKHO, G1Hx, Csk6): try: return YKHO[G1Hx] except KeyError: YKHO[G1Hx] = Csk6 return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(Csk6, G1Hx):\n return Csk6.get(G1Hx, None)", "def cNH6(Csk6, G1Hx):\n return Csk6[G1Hx]", "def NMoC(YKHO, G1Hx, Csk6=None):\n try:\n return YKHO[G1Hx]\n except KeyError:\n return Csk6", "def lPpl(Csk6, H5ew, BWXx):\n return Csk6.setdefault(H5ew, BWXx)", "def cNH6(Csk6,...
[ "0.6713495", "0.6496554", "0.64848304", "0.64465964", "0.6225314", "0.6183371", "0.58934474", "0.58212125", "0.5777859", "0.57366526", "0.57296133", "0.57124394", "0.56809926", "0.5647977", "0.56290936", "0.5627932", "0.5595676", "0.55797", "0.55782574", "0.55682933", "0.5567...
0.6575299
1
Return True if maps M and M2 have identical keyvalue associations
def xa14(YKHO, MQ4f): if len(YKHO) == len(MQ4f): for LEev in iter(YKHO): if YKHO[LEev] != MQ4f[LEev]: return False return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FQd5(N4_n):\n WfCS = N4_n._columns\n for fvDH in WfCS[1:N4_n._key_columns]:\n if len(getattr(N4_n, fvDH)) != len(N4_n):\n return False\n for H5ew, bTKY in N4_n.items():\n for fvDH in WfCS[1:N4_n._key_columns]:\n if getattr(N4_n, fvDH)[getattr(bTKY, fvDH)] != bTKY:\n...
[ "0.75526184", "0.746131", "0.73316044", "0.7196827", "0.7196797", "0.7164371", "0.71299434", "0.711298", "0.7027484", "0.69747126", "0.69390756", "0.6884103", "0.68758976", "0.6870106", "0.68437886", "0.6827636", "0.68187404", "0.68048286", "0.6783792", "0.6736417", "0.673136...
0.738244
2
Return attributes for the sensor.
def R1i3(YKHO): return YKHO._attributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeFr(YKHO):\n return ['Body temperature', 'Systolic B.P', 'Diastolic B.P', 'Heart rate', 'Breath Rate']", "def NnzV(Emd4):\n return Emd4._ATTRIBUTES", "def R1i3(YKHO):\n hkS8 = YKHO.collector.observations_data['metadata']\n hkS8.update(YKHO.collector.observations_data['data']['station'])\n h...
[ "0.73506296", "0.72224325", "0.71944743", "0.7183605", "0.71828437", "0.7173806", "0.7173026", "0.7130898", "0.70755446", "0.705257", "0.7051805", "0.7028014", "0.70023996", "0.6992769", "0.69857025", "0.69568425", "0.69102585", "0.688678", "0.68758184", "0.68714947", "0.6868...
0.0
-1
Almost the same as CharResCNN, but the output dimension is >1 (not yet logits)
def FIMM(YKHO, tYiq=170, bsCo=70): super().__init__() YKHO.out_channels = tYiq YKHO.relu = U78l.ReLU() YKHO.conv1 = U78l.Sequential(U78l.Conv1d(bsCo, 256, kernel_size=7, stride=1), U78l.ReLU(), U78l.BatchNorm1d(256)) YKHO.pool1 = U78l.MaxPool1d(3) YKHO.conv2 = U78l.Sequential(U78l.Conv1d(256, 25...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _NnR(PLSm, s3Vn, oM7x, EDoJ):\n Hydj = X6a0(shape=(s3Vn, PLSm, oM7x))\n WKvO = yHwh(32, (5, 5), strides=[3, 3], padding='valid')(Hydj)\n WKvO = MroH('relu')(WKvO)\n WKvO = yHwh(32, (3, 3), strides=[2, 2], padding='valid')(WKvO)\n WKvO = MroH('relu')(WKvO)\n WKvO = BzBX(pool_size=(2, 2), strid...
[ "0.6671345", "0.6596295", "0.6596225", "0.6539732", "0.65339595", "0.6518474", "0.6510889", "0.6478938", "0.6472937", "0.64680785", "0.64465207", "0.6442562", "0.64374584", "0.643097", "0.643097", "0.6428024", "0.6428", "0.64045227", "0.63962716", "0.6394182", "0.6394114", ...
0.63208634
28
Gets the output stream encoder configuration. Gets the output stream encoder (coupled with x264 implementation) configuration.
def jRM5(YKHO, b8V_=True): if b8V_: CxmQ = YKHO.videoEncoderId elif YKHO.grid: CxmQ = YKHO.videoEncoder2Id else: raise Exception('There is no grid mode enabled') QTBn = YKHO.lms.getState() for X9SN in QTBn['filters']: if X9SN['id'] == CxmQ: return X9SN ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WoBv(YKHO):\n if hasattr(YKHO.mgfile.info, 'encoder_settings'):\n return YKHO.mgfile.info.encoder_settings\n else:\n return ''", "def pm0g(YKHO):\n return YKHO.connection_pool.get_encoder()", "def Al9G(YKHO):\n if hasattr(YKHO.mgfile.info, 'encoder_info'):\n return YKHO.mgf...
[ "0.6892073", "0.64644027", "0.61648", "0.611968", "0.611968", "0.5789434", "0.57637805", "0.5717628", "0.5710364", "0.56839675", "0.56069434", "0.5598351", "0.5555114", "0.5509333", "0.54883593", "0.54797626", "0.5431051", "0.5401683", "0.536145", "0.530387", "0.52839583", ...
0.49162817
49
Conver crf++ result into IOB2tag tuples.
def PrGN(YKHO, Nz73): return [zFiD.rstrip().split('\t') for zFiD in Nz73]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTfe(TZ9E):\n return (TZ9E.tagClass, TZ9E.tagNumber, TZ9E.tagLVT, TZ9E.tagData)", "def NKKP(YKHO):\n S0MI.debug('read_tag rec %s', T_Uj.encode(YKHO.__response, 'hex'))\n iVFh = YKHO.__response_shift_var()\n S0MI.info(' EPC(%i) = %s', len(iVFh), T_Uj.encode(iVFh, 'hex'))\n bu3F = YKHO.__respons...
[ "0.5721069", "0.5677971", "0.56583655", "0.56376415", "0.5571919", "0.548444", "0.54610354", "0.5368725", "0.5327598", "0.52726614", "0.5225063", "0.5175817", "0.5138218", "0.5121714", "0.5067814", "0.50609744", "0.50439245", "0.503698", "0.50337476", "0.5025323", "0.502475",...
0.58803797
0
return whether this blog allows questions
def _PtV(YKHO): return YKHO.ask
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EhYu(YKHO):\n npjt = getattr(YKHO.context, 'allowQuestions', False)\n return npjt", "def zB2c(YKHO):\n return YKHO.kind == YKHO.STUDENT_QUESTION and YKHO.title and YKHO.text", "def ejup(YKHO):\n return YKHO.question_type in ['multiple choice', 'single choice', 'single choice dropdown']", "def...
[ "0.7873905", "0.70724964", "0.6952765", "0.66681325", "0.65538806", "0.6492659", "0.6483267", "0.64519024", "0.6441751", "0.6413789", "0.64012015", "0.63648975", "0.6238934", "0.6224319", "0.6178455", "0.6133269", "0.61292285", "0.6128895", "0.6107061", "0.6107061", "0.603147...
0.64271224
9
return whether this blog allows anonymous questions
def Be2U(YKHO): return YKHO.ask_anon
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EhYu(YKHO):\n npjt = getattr(YKHO.context, 'allowQuestions', False)\n return npjt", "def dYnP(QePW):\n try:\n GUEx = p8LT.objects.get(user=QePW.user.username)\n except:\n GUEx = False\n if QePW.user.is_superuser:\n return True\n elif GUEx or not QePW.user.is_authenticat...
[ "0.7037735", "0.66464525", "0.65780973", "0.6536195", "0.6536195", "0.65199894", "0.6471009", "0.6471009", "0.6452869", "0.64373165", "0.6425375", "0.6425375", "0.6425375", "0.641849", "0.641849", "0.641849", "0.641849", "0.641849", "0.641849", "0.641849", "0.641849", "0.64...
0.6992718
1
Initalizes new point Object
def FIMM(YKHO, UXqs, giw8, WKvO, LVAh=0): YKHO.label = UXqs YKHO.pollution_value = float('NaN') if giw8 < 0: raise Exception('Set a negative actual_pollution_value') YKHO.actual_pollution_value = giw8 YKHO.x = WKvO YKHO.y = LVAh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, WKvO=0, LVAh=0, AU8u=None):\n if AU8u != None:\n YKHO.x = AU8u.x\n YKHO.y = AU8u.y\n else:\n YKHO.x = WKvO\n YKHO.y = LVAh", "def FIMM(YKHO, LTIa=None):\n if LTIa is not None:\n YKHO.setCoordinate(LTIa)", "def FIMM(YKHO, LTIa):\n YKHO.points = LTIa"...
[ "0.80179393", "0.797599", "0.7855616", "0.7843425", "0.78281873", "0.7803787", "0.77793396", "0.77626956", "0.77624434", "0.7655076", "0.7654875", "0.7631922", "0.75581586", "0.7524732", "0.7510784", "0.7388245", "0.737463", "0.73603445", "0.72753775", "0.72578144", "0.725781...
0.0
-1
This test is testing parser for ignore all one line comments
def mvWj(YKHO): YKHO.filename = 'parser_tests/java_comments.txt' YKHO.run_parser() v1Xp = [] xOfT = [] YKHO.assertListEqual(xOfT, YKHO.p.operations) YKHO.assertListEqual(v1Xp, YKHO.p.keywords)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XmEM(YKHO):\n gx26 = ' ; This is a comment line'\n YKHO.assertEquals(YKHO.parser.parse_line(gx26), [None, None, None, None])", "def byNz(YKHO):\n YKHO.filename = 'parser_tests/java_2_lines_comments.txt'\n YKHO.run_parser()\n v1Xp = []\n xOfT = []\n YKHO.assertListEqual(xOfT, YKHO.p.ope...
[ "0.83375925", "0.78327715", "0.78174984", "0.7283495", "0.72396743", "0.718526", "0.71616274", "0.71455854", "0.7088965", "0.7004082", "0.70001894", "0.6990064", "0.6976858", "0.6963746", "0.692317", "0.6903478", "0.6871238", "0.68589884", "0.6853376", "0.6793715", "0.6753203...
0.83470494
0
This test is testing parser for ignore all two lines comments
def byNz(YKHO): YKHO.filename = 'parser_tests/java_2_lines_comments.txt' YKHO.run_parser() v1Xp = [] xOfT = [] YKHO.assertListEqual(xOfT, YKHO.p.operations) YKHO.assertListEqual(v1Xp, YKHO.p.keywords)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XmEM(YKHO):\n gx26 = ' ; This is a comment line'\n YKHO.assertEquals(YKHO.parser.parse_line(gx26), [None, None, None, None])", "def mvWj(YKHO):\n YKHO.filename = 'parser_tests/java_comments.txt'\n YKHO.run_parser()\n v1Xp = []\n xOfT = []\n YKHO.assertListEqual(xOfT, YKHO.p.operations)...
[ "0.8253098", "0.7990396", "0.7628077", "0.7185377", "0.7088389", "0.70875657", "0.7056682", "0.69325644", "0.6912121", "0.6907988", "0.68754", "0.686884", "0.68509173", "0.6849771", "0.6779181", "0.6771469", "0.67240965", "0.66981435", "0.6679817", "0.6674401", "0.6639135", ...
0.82442594
1
Method used to flatten a list.
def nWgH(vC9B, VbKG=None): if VbKG is None: VbKG = [] for YRbF in vC9B: if isinstance(YRbF, list): nWgH(YRbF, VbKG) else: VbKG.append(YRbF) return VbKG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(YKHO, qgK3):\n FWg_ = []\n for ZfUD in qgK3:\n if isinstance(ZfUD, list):\n FWg_.extend(YKHO.flatten(ZfUD))\n else:\n FWg_.append(ZfUD)\n return FWg_", "def PWgb(vC9B):\n\n def cWjI(vC9B, Mkmy):\n if type(vC9B) is not list:\n Mkmy.append(...
[ "0.82991415", "0.81306165", "0.8043854", "0.8032358", "0.8025596", "0.8025596", "0.8025596", "0.8017675", "0.80095005", "0.7989996", "0.79863006", "0.79852474", "0.79770803", "0.79682505", "0.7960495", "0.79530084", "0.7946209", "0.79240686", "0.7911961", "0.790717", "0.79022...
0.727789
95
Compute the Generalized Anisotropy (GA) and Meand Diffusivity (MD) of fourth order tensors.
def Pm6O(bXeI, LEev=5000.0, Xyq7=250.0): IkaY = bXeI.reshape((-1, bXeI.shape[-1])) fAu8 = XTiz.zeros((len(IkaY), 1)) PEil = XTiz.zeros((len(IkaY), 1)) for vhpA, mQYJ, J87D in zip(IkaY, fAu8, PEil): J87D[:] = 0.2 * (vhpA[14] + vhpA[4] + vhpA[0] + 1 / 3 * (vhpA[11] + vhpA[2] + vhpA[9])) if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y4I9(YKHO):\n YKHO.g = YKHO.tensor.calcBhattacharyya(YKHO.l)", "def YSma(lWPh):\n return oyIN.array([lWPh['transfer'].values / (lWPh['comp'].values + lWPh['mem'].values), lWPh['coalesced'].values / lWPh['mem'].values, lWPh['localmem'].values / lWPh['mem'].values * lWPh['wgsize'].values, lWPh['comp'].va...
[ "0.5735793", "0.5695739", "0.56773436", "0.56278765", "0.56248236", "0.5612338", "0.55115116", "0.5500158", "0.5473882", "0.5469736", "0.53817105", "0.53817105", "0.5365083", "0.5357317", "0.5331381", "0.5270915", "0.5269968", "0.5244109", "0.5237981", "0.5227041", "0.5220548...
0.5770971
0
Compute a distance measure between 4th order diffusion tensor D1 and D2 by computing the normalized L2 distance between the corresponding diffusivity functuions d1(g) and d2(g).
def CQXp(UKqa, Hu0o): yk4i = UKqa - Hu0o pImw = 0.0 jzdc = 1 / 9 Fg_i = 1 / 105 Z9rn = 1 / 63 Csk6 = 1 / 315 pImw += Csk6 * (yk4i[14] + yk4i[4] + yk4i[0] + yk4i[11] + yk4i[2] + yk4i[9]) ** 2 pImw += (Fg_i - Csk6) * (yk4i[14] + yk4i[4] + yk4i[0]) ** 2 pImw += (Z9rn - Csk6) * ((yk4i[14...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ijuC(AjzU, _sQW):\n pImw = oyIN.linalg.norm(AjzU - _sQW)\n return pImw", "def gkpK(YKHO, gRx1, id4L):\n Csk6 = gRx1 - id4L", "def Js8v(Bu2M, UCbH):\n from math import log\n if sum(Bu2M) != 1.0:\n Bu2M = NkkI(Bu2M)\n if sum(UCbH) != 1.0:\n UCbH = NkkI(UCbH)\n assert len(Bu...
[ "0.7658123", "0.6903772", "0.68636566", "0.6817777", "0.6750312", "0.6709115", "0.6694115", "0.6687722", "0.66364837", "0.66261846", "0.6611235", "0.6595057", "0.65937275", "0.65843827", "0.65199125", "0.651474", "0.6513584", "0.6509045", "0.64946014", "0.64757943", "0.646308...
0.0
-1
r""" Returns the start time of the simulation
def SWox(YKHO): return YKHO.time_list[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSV8(YKHO):\n return YKHO._clock.start", "def jSV8(YKHO):\n return YKHO._clock.start", "def R4lU(YKHO):\n pass", "def R4lU(YKHO):\n return YKHO.start", "def SWox(YKHO) -> ITS7:\n return YKHO._starttime", "def SWox(YKHO):\n return YKHO.start().time", "def SWox(YKHO):\n return YK...
[ "0.83266246", "0.83266246", "0.82515866", "0.824663", "0.8240792", "0.81995517", "0.81995517", "0.8135442", "0.8092715", "0.80363303", "0.8035613", "0.80143565", "0.801148", "0.8010764", "0.80070513", "0.8003026", "0.80010855", "0.7981869", "0.79759794", "0.79759794", "0.7975...
0.7962367
25
Gets the number of layers within a vector
def vNP1(lfri): oxOY = MDcw.OpenEx(lfri, MDcw.OF_VECTOR) CLda = oxOY.GetLayerCount() oxOY = None return CLda
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WAZ4(C3ST):\n return tXd4(C3ST, 1)", "def t9fZ(Ty9i):\n return len(Ty9i)", "def CLda(YKHO):\n UxQk = YKHO._num_layers()\n return UxQk", "def zWuF(YKHO):\n return YKHO.layers", "def YAaY(YKHO):\n return YKHO.config.layer_count", "def CLda(YKHO):\n return len(YKHO.layers)", "def ...
[ "0.7378975", "0.7229285", "0.70721585", "0.7064183", "0.7005325", "0.70031923", "0.698959", "0.698959", "0.6977789", "0.68553615", "0.6838381", "0.67872643", "0.6678871", "0.66401273", "0.66036046", "0.6571827", "0.6523332", "0.6472008", "0.6428966", "0.6405063", "0.6389872",...
0.7970995
0
Checks whether the 'candidate' Spiral is a an actual spiral (i.e. if it has >1 "mint" and >1 "borrow" events). If so it returns true, else it is not a spiral and it returns false.
def C8w2(SkC9: Spiral) -> bool: W5Ek = (1 for G1Hx in SkC9.events if G1Hx.event == 'Borrow') if sum(W5Ek) <= 1: return False o7iV = (1 for G1Hx in SkC9.events if G1Hx.event == 'Mint') if sum(o7iV) <= 1: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k0ww(YKHO):\n if abs(YKHO.slope) < NmP1.APPROX_HORIZONTAL_LINE_SLOPE:\n return False\n return True", "def HXQk(YKHO, yvGc):\n Nqlg = [(0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6)]\n for zFiD in Nqlg:\n if not oyIN.isnan(yvGc[zFiD[0]]) and (n...
[ "0.65134037", "0.634504", "0.6240195", "0.6221319", "0.62022704", "0.61763996", "0.6143565", "0.6116855", "0.60705143", "0.6035063", "0.60338175", "0.6030556", "0.6027642", "0.59943765", "0.5977918", "0.5976412", "0.59622204", "0.5960641", "0.59418845", "0.5934568", "0.592068...
0.8984023
0
Send a message when the command ``/help`` is issued.
def XLUH(QdZT: Update, QpfX: CallbackContext): Ol8d = QdZT.message Ol8d.reply_text('DEMO Author: William Lee')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h7na(YKHO, vC92: CommandSender):\n pass", "async def help(OaeV):\n Q1PJ = tPZM()\n await OaeV.send(embed=Q1PJ)", "async def send_command_help(OaeV):\n await OaeV.send_help(OaeV.invoked_subcommand or OaeV.command)", "def foDF():\n BFGp(hqD_.message.user.user_id, \"🔹 Bot's help.\\n\\n/start...
[ "0.8462534", "0.8357669", "0.8243056", "0.82172686", "0.8176311", "0.8135091", "0.8135091", "0.8067247", "0.79967254", "0.798937", "0.798937", "0.798937", "0.798937", "0.79888844", "0.7976274", "0.797377", "0.7968442", "0.7963474", "0.7892286", "0.78609735", "0.7859441", "0...
0.0
-1
Log Errors caused by Updates.
def P1dF(QdZT: Update, QpfX: CallbackContext): bo34.warning('Update "{}" caused error "{}"', QdZT, QpfX.error)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)", "def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')", "def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err...
[ "0.7897143", "0.7886391", "0.7878073", "0.78757316", "0.7832897", "0.7791798", "0.7787711", "0.7786072", "0.7786072", "0.7786072", "0.7786072", "0.7786072", "0.7783898", "0.7766397", "0.7748688", "0.7748688", "0.7748688", "0.7748688", "0.7748688", "0.7748688", "0.7748688", ...
0.75910443
67
Returns a tuple containing a slice of the full list starting at next_token and ending with at most the max_results number of elements, and the new next_token which can be passed back in for the next segment of the full list.
def qLoe(nibk, zD4t, vDzF): tu39 = sorted(nibk) bjsK = len(tu39) yKcO = tu39.index(vDzF) if vDzF else 0 Os4s = min(yKcO + zD4t, bjsK) lbA4 = None if Os4s == bjsK else tu39[Os4s] return (tu39[yKcO:Os4s], lbA4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1At(xTyj=None, aSFH=None):\n pass", "def yOAJ(aNS8, Lli3):\n Lli3 = max(1, Lli3)\n return [aNS8[YRbF:YRbF + Lli3] for YRbF in range(0, len(aNS8), Lli3)]", "def next(YKHO) -> AzJI(_J2v, VOc9):\n return (YKHO.tokenlist[0], VOc9(YKHO.tokenlist[1:]))", "def next(YKHO):\n if YKHO.resultListInd...
[ "0.5671311", "0.5579372", "0.5506629", "0.549581", "0.5460856", "0.5447355", "0.54343605", "0.5431684", "0.5340563", "0.5294934", "0.52829874", "0.5270877", "0.52625525", "0.52158487", "0.52109945", "0.52031124", "0.5201069", "0.51884973", "0.518591", "0.5181883", "0.5179574"...
0.79737425
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.8043786
72
Calculate evaluation metrics RMSE and relative RMSE
def xXnN(YKHO): C3ST = YKHO._build_model(YKHO.training, YKHO.predictors) PjQx = qzeP(C3ST, YKHO.validation[YKHO.predictors], YKHO.validation['SalePrice'], cv=10) iAxY = oyIN.sqrt(oyIN.mean((PjQx - YKHO.validation['SalePrice']) ** 2)) drSb = iAxY / oyIN.mean(YKHO.training['SalePrice']) return drSb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7La(YKHO, Z5wO, H96n):\n aMgO = YKHO.pipeline.predict(Z5wO)\n iAxY = K9sQ(aMgO, H96n)\n YKHO.mlflow_log_metric('RMSE', iAxY)\n return iAxY", "def b7La(YKHO, Z5wO, H96n):\n aMgO = YKHO.pipeline.predict(Z5wO)\n kmMN = K9sQ(aMgO, H96n)\n YKHO.mlflow_log_metric('rmse', kmMN)\n return rou...
[ "0.7863175", "0.77554303", "0.7711495", "0.76675665", "0.7579595", "0.7502011", "0.74509406", "0.7435839", "0.7404073", "0.73701435", "0.736598", "0.73491347", "0.72943133", "0.7235007", "0.7233904", "0.7227902", "0.7220431", "0.7189357", "0.71755505", "0.7155992", "0.7140747...
0.7745452
2
Builds a residual block with repeating bottleneck blocks.
def Yskf(TBMp, KUnM, rmyT, EtM5, Xt5n=None, B_0p=None, asUQ=None, eje_=False, hr1G=None, w6KO=TZZ1): if B_0p is None: B_0p = [(1, 1)] * rmyT if Xt5n is None: Xt5n = [(1, 1)] * rmyT if asUQ is None: asUQ = [1] * rmyT def eHNT(WKvO): for YRbF in range(rmyT): x8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NFrR(YKHO, ivFb):\n QufS = RfXF(YKHO.res_layers_num, YKHO.skip_layers_num, ivFb)\n return QufS", "def b1Or(WKvO, KUnM, _0fC=1):\n o4D3 = FeL1(WKvO, KUnM, _0fC)\n ajwV = FeL1(WKvO, KUnM, _0fC)\n if _0fC > 1:\n WKvO = xK0d(WKvO, KUnM, _0fC)\n return XVRe()([WKvO, wwet()([o4D3, ajwV])])...
[ "0.7053662", "0.689902", "0.6828384", "0.67788535", "0.64531577", "0.6342876", "0.63340425", "0.6293546", "0.62573665", "0.6222496", "0.6222496", "0.61785287", "0.6172297", "0.61522156", "0.6134631", "0.6131882", "0.60738444", "0.60738444", "0.6038037", "0.6034686", "0.602021...
0.0
-1
Basic 3 X 3 convolution blocks for use on resnets with layers <= 34.
def Ehbh(KUnM, EtM5, XkN1, Xt5n=(1, 1), fiu3=(1, 1), XgsO=False, hr1G=None, w6KO=TZZ1): def eHNT(_JTT): RmTP, lPXw = bLKz(EtM5, XkN1) if XgsO: WKvO = yHwh(filters=KUnM, kernel_size=(3, 3), strides=Xt5n, dilation_rate=fiu3, padding='same', kernel_initializer='he_normal', kernel_regulariz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cxer(YKHO, g4y1, KUnM, Cwt5, WZcn=(3, 3), FEri=(1, 1)):\n UJgg = 1 if nMvt.image_data_format() == 'channels_first' else -1\n KUnM = int(KUnM * Cwt5)\n WKvO = l2Dx(padding=(1, 1), name='conv1_pad')(g4y1)\n WKvO = yHwh(KUnM, WZcn, padding='valid', use_bias=False, strides=FEri, name='conv1')(WKvO)\n ...
[ "0.74014413", "0.7395318", "0.7394386", "0.73685545", "0.73434407", "0.7274833", "0.72396106", "0.72292274", "0.7212999", "0.7212999", "0.7212999", "0.7188222", "0.7126378", "0.71243435", "0.71228755", "0.7107396", "0.7095021", "0.70898026", "0.7061306", "0.7050952", "0.70346...
0.0
-1
Builds a custom ResNet like architecture. Defaults to ResNet50 v2.
def S1Vm(GhuM=None, KndY=10, XkN1='bottleneck', w6KO='v2', ISIR=None, ZwYf=64, YDYE='softmax', ao6X=True, FRUf=None, hr1G=None, TxEm=(1, 1), NvNW=(1, 1), cHsS=(3, 3), RnDx=None, BMVd=None, tlxW='classification'): if YDYE not in ['softmax', 'sigmoid', None]: raise ValueError('activation must be one of "softm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zmIt(YKHO):\n YKHO.compile(loss='binary_crossentropy', optimizer=qhl4(0.0001))\n return YKHO", "def NBx0(rvDU: str='ResNet50V2', GhuM: Tuple[int, int, int]=None):\n if rvDU not in ['ResNet50V2', 'ResNet101V2', 'ResNet152V2']:\n raise ValueError(\"Base model should be from 'ResNet50V2', 'ResNe...
[ "0.71308255", "0.7058771", "0.7006754", "0.6873657", "0.6683421", "0.6658913", "0.65934855", "0.6590498", "0.6576474", "0.65754265", "0.6574744", "0.65562344", "0.65327877", "0.6532", "0.65255123", "0.6522883", "0.6520579", "0.6519294", "0.65174955", "0.65174955", "0.65174955...
0.0
-1
ResNet with 18 layers and v2 residual units
def AS23(GhuM=(28, 28, 1), KndY=10, hr1G=None): return S1Vm(GhuM, KndY, Ehbh, repetitions=[2, 2, 2, 2], dropout=hr1G)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MIwg(GhuM, crg_, zBu_, ik2X=10, LMWo=False):\n ZY3Q = 16\n g4y1 = bdPE.layers.Input(shape=GhuM)\n WKvO = zUti(inputs=g4y1, train_size=zBu_, n_filter=ZY3Q, conv_first=True, bayesian=LMWo)\n for EtM5 in range(3):\n for DFIV in range(crg_):\n YDYE = 'relu'\n uNRR = True\n ...
[ "0.7444212", "0.7372806", "0.73463744", "0.725739", "0.722477", "0.7180111", "0.71263874", "0.70833594", "0.708017", "0.7073209", "0.7066349", "0.70241684", "0.6993773", "0.6981292", "0.6977493", "0.69591755", "0.6947873", "0.69355255", "0.6927976", "0.6927097", "0.69133353",...
0.6989382
13
ResNet with 34 layers and v2 residual units
def PzmQ(GhuM=(28, 28, 1), KndY=10, hr1G=None): return S1Vm(GhuM, KndY, Ehbh, repetitions=[3, 4, 6, 3], dropout=hr1G)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MIwg(GhuM, crg_, zBu_, ik2X=10, LMWo=False):\n ZY3Q = 16\n g4y1 = bdPE.layers.Input(shape=GhuM)\n WKvO = zUti(inputs=g4y1, train_size=zBu_, n_filter=ZY3Q, conv_first=True, bayesian=LMWo)\n for EtM5 in range(3):\n for DFIV in range(crg_):\n YDYE = 'relu'\n uNRR = True\n ...
[ "0.75539327", "0.7524055", "0.74833643", "0.73764473", "0.7350569", "0.7292948", "0.7260823", "0.72126865", "0.7197214", "0.7190072", "0.7078567", "0.7057214", "0.7055472", "0.7043289", "0.7021917", "0.70208406", "0.6999152", "0.6997373", "0.6949894", "0.6930082", "0.692507",...
0.65174264
98
ResNet with 101 layers and v2 residual units
def d3yt(GhuM, KndY): return S1Vm(GhuM, KndY, RzcG, repetitions=[3, 4, 23, 3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MIwg(GhuM, crg_, zBu_, ik2X=10, LMWo=False):\n ZY3Q = 16\n g4y1 = bdPE.layers.Input(shape=GhuM)\n WKvO = zUti(inputs=g4y1, train_size=zBu_, n_filter=ZY3Q, conv_first=True, bayesian=LMWo)\n for EtM5 in range(3):\n for DFIV in range(crg_):\n YDYE = 'relu'\n uNRR = True\n ...
[ "0.76010066", "0.7476732", "0.745386", "0.7330289", "0.728293", "0.7274669", "0.7216248", "0.72000676", "0.71924454", "0.7133419", "0.70994544", "0.70954096", "0.70815", "0.70815", "0.7059523", "0.7051666", "0.70434713", "0.7039519", "0.70026344", "0.6976141", "0.69532645", ...
0.0
-1
ResNet with 152 layers and v2 residual units
def axAq(GhuM, KndY): return S1Vm(GhuM, KndY, RzcG, repetitions=[3, 8, 36, 3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MIwg(GhuM, crg_, zBu_, ik2X=10, LMWo=False):\n ZY3Q = 16\n g4y1 = bdPE.layers.Input(shape=GhuM)\n WKvO = zUti(inputs=g4y1, train_size=zBu_, n_filter=ZY3Q, conv_first=True, bayesian=LMWo)\n for EtM5 in range(3):\n for DFIV in range(crg_):\n YDYE = 'relu'\n uNRR = True\n ...
[ "0.76028645", "0.7565397", "0.7440291", "0.74391514", "0.73908037", "0.7362591", "0.73221725", "0.72863334", "0.727084", "0.7154353", "0.70776284", "0.70604455", "0.7011296", "0.69994634", "0.6982067", "0.6979734", "0.69666606", "0.69534284", "0.69473636", "0.69465595", "0.69...
0.0
-1
Instantiate the Wide Residual Network architecture, optionally loading weights pretrained on CIFAR10. Note that when using TensorFlow, for best performance you should set `image_dim_ordering="tf"` in your Keras config at ~/.keras/keras.json. The model and the weights are compatible with both TensorFlow and Theano. The ...
def DfSh(rb7a=16, TVTK=4, lo24=0.25, ao6X=True, _mSQ=None, FRUf=None, GhuM=None, KndY=10, YDYE='softmax'): if _mSQ not in {'cifar10', None}: raise ValueError('The `weights` argument should be either `None` (random initialization) or `cifar10` (pre-training on CIFAR-10).') if _mSQ == 'cifar10' and ao6X a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AcBQ(CLda, JOzn=1, TyPQ=0.0, mL4f=False, OaeV=VGCm(), tk5Y=Hy7s.path.join('~', '.mxnet', 'models'), **B2fa):\n assert (CLda - 4) % 6 == 0\n exwG = (CLda - 4) // 6\n fhcK = [exwG] * 3\n xMux = [16, 16 * JOzn, 32 * JOzn, 64 * JOzn]\n Zxma = mcAy(fPtX, fhcK, xMux, TyPQ, **B2fa)\n if mL4f:\n ...
[ "0.6901417", "0.6804782", "0.67894906", "0.670203", "0.64138746", "0.6387631", "0.625134", "0.6249167", "0.6229623", "0.62002665", "0.61864823", "0.61864823", "0.61864823", "0.61617255", "0.6129533", "0.61265105", "0.60780424", "0.6069078", "0.6062795", "0.605503", "0.6054491...
0.7148915
0
Layer repeating Residual Blocks
def N9wW(WKvO, KUnM, rmyT, _0fC): WKvO = b1Or(WKvO, KUnM, _0fC) for YRbF in range(1, rmyT): WKvO = b1Or(WKvO, KUnM, 1) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QufS(oubr, KUnM):\n Csk6 = yHwh(KUnM, kernel_size=3, strides=1, padding='same')(oubr)\n Csk6 = MroH('relu')(Csk6)\n Csk6 = GVKG(momentum=0.8)(Csk6)\n Csk6 = yHwh(KUnM, kernel_size=3, strides=1, padding='same')(Csk6)\n Csk6 = GVKG(momentum=0.8)(Csk6)\n Csk6 = XVRe()([Csk6, oubr])\n return C...
[ "0.7388465", "0.7310589", "0.72972155", "0.7292981", "0.7266116", "0.7266116", "0.70627433", "0.7016166", "0.6824243", "0.6768323", "0.67676806", "0.67560554", "0.6713099", "0.6692689", "0.6686191", "0.66814035", "0.6664739", "0.66429585", "0.6640905", "0.6634555", "0.66005",...
0.68346226
9
Residual Network with ShakeShake regularization modeled after ResNet32
def bdwr(TFPw=10, fOZ4=[2, 2, 2, 2], GhuM=(32, 32, 1), YDYE='softmax'): dqxq = X6a0(shape=GhuM) WKvO = yHwh(64, kernel_size=7, strides=2, padding='same', kernel_initializer='he_normal', kernel_regularizer=V70B(0.0001), use_bias=False)(dqxq) WKvO = GVKG()(WKvO) WKvO = BzBX(pool_size=3, strides=2, padding...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pyd8(GhuM, crg_, zBu_, ik2X=10, LMWo=False):\n amza = 16\n g4y1 = bdPE.layers.Input(shape=GhuM)\n WKvO = zUti(inputs=g4y1, train_size=zBu_, bayesian=LMWo)\n for E5BI in range(3):\n for DFIV in range(crg_):\n FEri = 1\n if E5BI > 0 and DFIV == 0:\n FEri = ...
[ "0.6708633", "0.65789133", "0.6575063", "0.65426105", "0.653558", "0.65342236", "0.64736146", "0.6444166", "0.64328086", "0.64277095", "0.64270216", "0.6415965", "0.64084977", "0.63534355", "0.63452744", "0.6325628", "0.631838", "0.6315215", "0.631143", "0.6286877", "0.626786...
0.5862739
94
Function to get the interface ID number. Returns the interface ID if found, False if not found.
def y144(rh3n, rJDA, jf3N): eOtH = 'Token %s' % rJDA MOPg = {'Authorization': eOtH, 'content-type': 'application/json'} YaV_ = f'{DZRr}/api/dcim/interfaces/?device_id=' YaV_ = YaV_ + str(jf3N) geh0 = G4JS.get(YaV_, headers=MOPg) nPrm = geh0.json() for Aofo in nPrm['results']: if Aofo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SYmt(YKHO):\n return YKHO.__interface_id", "def SYmt(YKHO):\n return YKHO.__interface_id", "def SYmt(YKHO):\n return YKHO.__interface_id", "def SYmt(YKHO):\n return YKHO.__interface_id", "def SYmt(YKHO):\n return YKHO.__interface_id", "def SYmt(YKHO):\n return YKHO.__interface_id", ...
[ "0.7240729", "0.7240729", "0.7240729", "0.7240729", "0.7240729", "0.7240729", "0.7240729", "0.7240729", "0.7240729", "0.7197243", "0.7159473", "0.7159473", "0.6966969", "0.6966969", "0.6807658", "0.6807658", "0.6807658", "0.6807658", "0.6784851", "0.67386776", "0.66687787", ...
0.7614255
0
Function to get the tenant id from the tenant name.
def hqpR(xQy_): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get...
[ "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.7893753", "0.77500445", "0.77500445", "0.77500445", ...
0.8266568
0