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
Gets the last completed order placed from the host and returns that date as an datetime object
def CNwV(): e0Y6 = GssM.fetch_last_order('completed') vVBc = e0Y6[0]['date_created'].replace('T', ' ') gRoi = Oa8f.datetime.strptime(vVBc, '%Y-%m-%d %H:%M:%S') print('Last completed order:', gRoi, 'is of type', type(gRoi)) return gRoi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eYNC():\n f7UT = GssM.fetch_all_orders('completed')\n vVBc = f7UT[0]['date_created'].replace('T', ' ')\n bP2_ = Oa8f.datetime.strptime(vVBc, '%Y-%m-%d %H:%M:%S')\n print('First completed order:', bP2_, 'is of type', type(bP2_))\n return bP2_", "def qRSG():\n try:\n Aofo = TJFQ.fetch_...
[ "0.6536291", "0.6186755", "0.5795035", "0.57812345", "0.56554884", "0.5634876", "0.562118", "0.55577594", "0.5545278", "0.5533255", "0.54844326", "0.54518455", "0.54200506", "0.54075253", "0.5383949", "0.53831035", "0.53605646", "0.5359958", "0.5359541", "0.53583366", "0.5347...
0.78496575
0
Get the StackOutput object that holds this CfnOutput's value in this pipeline. ``StackOutput`` can be used in validation actions later in the pipeline.
def eyad(YKHO, khRI: aws_cdk.core.CfnOutput) -> 'StackOutput': return HEOD.invoke(YKHO, 'stackOutput', [khRI])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iYXR(YKHO):\n if YKHO._pipeline:\n f4IJ = YKHO._pipeline[-1].frame\n if not isinstance(f4IJ, str):\n f4IJ = f4IJ.name\n return getattr(YKHO, f4IJ)\n else:\n return None", "def FbfL(mWFP: Optional[pulumi.Input[str]]=None, dJ1p: Optional[pulumi.Input[Optional[Mappin...
[ "0.65397376", "0.638205", "0.6357826", "0.6246987", "0.62197644", "0.6091926", "0.6088984", "0.6088984", "0.6088984", "0.6088984", "0.60769296", "0.60208875", "0.60208875", "0.5989248", "0.593176", "0.5929026", "0.58691335", "0.5858505", "0.5784105", "0.5784105", "0.5784105",...
0.7867236
0
Artifact ids of the artifact this stack artifact depends on. stability
def FIeJ(YKHO) -> laHg.List[str]: return HEOD.get(YKHO, 'dependencyStackArtifactIds')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIeJ(YKHO) -> laHg.Optional[laHg.List[str]]:\n return YKHO._values.get('dependency_stack_artifact_ids')", "def GnsD(YKHO):\n return []", "def cPdt(YKHO):\n return [['uuid', 'ossp-uuid']]", "def cB6Z(YKHO) -> laHg.Optional[laHg.List[lTJ4.aws_codepipeline.Artifact]]:\n return YKHO._values.get('...
[ "0.72691715", "0.6290392", "0.6125184", "0.5872462", "0.58218217", "0.5762439", "0.56844926", "0.56844926", "0.56844926", "0.56844926", "0.568201", "0.561038", "0.56081355", "0.5579714", "0.55571055", "0.5542359", "0.5437167", "0.5408803", "0.54084086", "0.537252", "0.537062"...
0.7398607
0
Additional artifacts to use as input for the CodeBuild project. You can use these files to load more complex test sets into the shellscript build environment. The files artifact given here will be unpacked into the current working directory, the other ones will be unpacked into directories which are available through t...
def cB6Z(YKHO) -> laHg.Optional[laHg.List[lTJ4.aws_codepipeline.Artifact]]: return YKHO._values.get('additional_artifacts')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w2lt():\n z_es = GkAb(qf3c())\n vQxz = z_es / 'figures'\n vQxz.mkdir()\n rgaV = qqRc()\n sWmO = GkAb.cwd()\n Hy7s.chdir(vQxz)\n a0BP = rgaV / 'tests' / 'data' / 'drop.zip'\n Z4hz(a0BP)\n assert len(list(GkAb('.').rglob('*.png'))) == 1\n Hy7s.chdir(sWmO)\n RDuA.rmtree(z_es)", ...
[ "0.5560894", "0.54928625", "0.5466143", "0.5261282", "0.522758", "0.52014333", "0.5179792", "0.5111493", "0.50836635", "0.5064454", "0.49854892", "0.49793285", "0.4972865", "0.49527463", "0.49389592", "0.4925521", "0.4923901", "0.49213648", "0.49207842", "0.49162236", "0.4912...
0.5499438
1
Create a standard Yarn synth action. Uses ``yarn install frozenlockfile`` to install dependencies and ``npx cdk synth`` to synthesize.
def c9th(Emd4, *, mYdS: typing.Optional[str]=None, kN_L: typing.Optional[str]=None, GW86: typing.Optional[str]=None, Ev6w: aws_cdk.aws_codepipeline.Artifact, AGDZ: aws_cdk.aws_codepipeline.Artifact, PQh7: typing.Optional[str]=None, cB6Z: typing.Optional[typing.List['AdditionalArtifact']]=None, BVHB: typing.Optional[typ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ART5(Emd4, *, mYdS: typing.Optional[str]=None, kN_L: typing.Optional[str]=None, GW86: typing.Optional[str]=None, Ev6w: aws_cdk.aws_codepipeline.Artifact, AGDZ: aws_cdk.aws_codepipeline.Artifact, PQh7: typing.Optional[str]=None, cB6Z: typing.Optional[typing.List['AdditionalArtifact']]=None, BVHB: typing.Optiona...
[ "0.6879207", "0.48962367", "0.48847836", "0.4700812", "0.46315747", "0.4566909", "0.4505575", "0.44857824", "0.4466076", "0.44554296", "0.44528747", "0.4437628", "0.44294474", "0.44234598", "0.4379099", "0.43504727", "0.4327021", "0.4318552", "0.42928928", "0.42913115", "0.42...
0.7798978
0
Build a StackOutput from a known artifact and an output name.
def FIMM(YKHO, Hz6x: aws_cdk.aws_codepipeline.ArtifactPath, xYGm: str) -> None: HEOD.create(_vX1, YKHO, [Hz6x, xYGm])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VI14(YKHO, hhFm: str) -> laHg.Optional[lTJ4.aws_codepipeline.Artifact]:\n ...", "def VI14(YKHO, hhFm: str) -> laHg.Optional[lTJ4.aws_codepipeline.Artifact]:\n return HEOD.invoke(YKHO, 'stackOutputArtifact', [hhFm])", "def fvc7(YKHO, cL6_, **g4y1):\n if cL6_ == 'invscale':\n return YKHO.buil...
[ "0.7238093", "0.71386063", "0.6145249", "0.5928054", "0.57297945", "0.56829995", "0.55917084", "0.54596764", "0.5438652", "0.53737164", "0.52452224", "0.5164888", "0.5122732", "0.5117584", "0.5110983", "0.51023734", "0.509085", "0.50850993", "0.50850993", "0.50850993", "0.508...
0.71786094
1
Split a code statement into a list by conserving tailing newlines e.g. tmpl2list('line 1\\nline 2\\nline 3\\n') > ['line 1\\n', 'line 2\\n', 'line 3\\n', '\\n']
def JQOH(YKHO, ZlgM): ycBG = ['%s\n' % zFiD for zFiD in ZlgM.split('\n')] return ycBG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PL9q(YKHO) -> x1iM[FgBH]:\n pass", "def wRZy(BWXx):\n return BWXx.strip().splitlines()", "def R_Rz(YKHO):\n Nqlg = []\n zFiD = YKHO._get_line()\n Nqlg.append(zFiD)\n if zFiD[3:4] == '-':\n Wxnj = zFiD[:3]\n while 1:\n GOFd = YKHO._get_line()\n Nqlg.appe...
[ "0.670812", "0.65087885", "0.636279", "0.62716734", "0.6222171", "0.61382824", "0.6080598", "0.602109", "0.59996814", "0.5994081", "0.59313875", "0.59283394", "0.5885597", "0.583633", "0.57313144", "0.5713366", "0.56950265", "0.56937873", "0.5693046", "0.5669202", "0.5668267"...
0.6348806
3
Returns a list of event handlers defined for the given object (CodeObject instance).
def zAWU(YKHO, YEnM): U5bT = [] if not YEnM.events: return U5bT YTVa = [(mWFP, DCgT) for mWFP, DCgT in YEnM.events if DCgT.strip()] if not YTVa: return U5bT try: IE6a = YKHO.config['events']['default']['type'] except KeyError: IE6a = 'wxCommandEvent' for tvqc,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iSCP(YKHO):\n return map(YKHO._handlers.get, YKHO._frame_names)", "def bOqc(YKHO):\n return YKHO.__eventHandlers.values()", "def jM3M(YKHO):\n return list(YKHO._registry.values())", "def iSCP(YKHO):\n oCWm = []\n ckRy = YKHO.get_paths()\n for XP5J in ckRy:\n KCHu = ZbWC.sub('(?<=...
[ "0.6546502", "0.6474016", "0.6473531", "0.64269596", "0.64245796", "0.640051", "0.6351428", "0.6225964", "0.6179672", "0.6173571", "0.6041907", "0.5966236", "0.590395", "0.5902057", "0.5852003", "0.5828646", "0.5822516", "0.5796398", "0.57779044", "0.5745389", "0.5721911", ...
0.77092576
0
Factory function that adds the headers necessary for Crossdomain calls.
def vrjI(PNq_): QePW = VNUm(PNq_) yDgX.debug('trunctated request body: {b}'.format(b=QePW.body[:1000])) return QePW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYz4(geh0):\n geh0.headers['Access-Control-Allow-Origin'] = '*'\n return geh0", "def PYz4(geh0):\n geh0.headers['Access-Control-Allow-Origin'] = '*'\n geh0.headers['Access-Control-Allow-Credentials'] = True\n geh0.headers['Access-Control-Allow-Methods'] = 'GET,POST,OPTIONS'\n geh0.headers['...
[ "0.7143466", "0.70181596", "0.68069255", "0.6795806", "0.6609109", "0.65431607", "0.6487679", "0.6464441", "0.6434146", "0.643167", "0.63983136", "0.63965094", "0.6395157", "0.63833845", "0.6357092", "0.6322372", "0.63044524", "0.6296122", "0.6287792", "0.6270755", "0.6228759...
0.0
-1
Decorator for views that checks that the user is student, redirecting to the login page if necessary.
def nMD7(LpBI=None, _HK_=w9Un, XKMW=None): RpqM = QsG4(MnKq.is_student, login_url=XKMW, redirect_field_name=_HK_) if LpBI: return RpqM(LpBI) return RpqM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPtH(m2Zb):\n\n @zaGL(m2Zb)\n def XIpm(*qIxc, **B2fa):\n if fi5j():\n CBIr = W84Y()\n if CBIr is not None and CBIr.type == mv1M.STUDENT:\n return m2Zb(*qIxc, **B2fa)\n return vKnz('/')\n return XIpm", "def i4pR(JfyU):\n\n @zaGL(JfyU, assigned=OZf...
[ "0.82914144", "0.8117436", "0.77864337", "0.70429796", "0.69824237", "0.69799453", "0.6957657", "0.69545084", "0.69183606", "0.6907927", "0.68822753", "0.68725085", "0.6871822", "0.6871822", "0.6858893", "0.6857358", "0.6807119", "0.68045485", "0.67395777", "0.6656187", "0.66...
0.80613977
2
Decorator for views that checks that the user is employee, redirecting to the login page if necessary.
def ULXA(LpBI=None, _HK_=w9Un, XKMW=None): RpqM = QsG4(MnKq.is_employee, login_url=XKMW, redirect_field_name=_HK_) if LpBI: return RpqM(LpBI) return RpqM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ULXA(FYKK):\n\n @zaGL(FYKK)\n def h3Xc(*qIxc, **B2fa):\n DUh2()\n uJjO = Zul5()\n tgfs = mv1M.query.filter_by(id=uJjO).first()\n if tgfs is None:\n return vKnz('admin/login.html', code=403)\n if tgfs.role != PP24.ADMINISTRATOR and tgfs.role != PP24.EMPLOYEE:\...
[ "0.7644161", "0.719595", "0.70616484", "0.69400984", "0.68991584", "0.68760085", "0.68370706", "0.682452", "0.68174565", "0.67803574", "0.6773391", "0.6744806", "0.670757", "0.670757", "0.66833115", "0.6670779", "0.6657728", "0.66535753", "0.6640055", "0.66349876", "0.6617133...
0.8029253
0
Returns an HTML table as an iterator.
def Ad3r(YKHO): yield ("\n<table border=%r summary='a table'>\n" % YKHO.border) WBPg = YKHO.header for rdlD in YKHO: yield '<tr>\n ' for geyT in rdlD: if WBPg: yield ('<th>%s</th> ' % geyT) else: yield ('<td bgcolor="%s">%s</td> ' % (g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bDy6():\n return ED7W.Iterator()", "def r0z8(YKHO):\n return nXPU(YKHO)", "def U0fo(YKHO):\n _R2e = '<table id=%s>' % (YKHO._id,)\n for rdlD in range(YKHO.rows):\n _R2e += '<tr>'\n for fvDH in range(YKHO.columns):\n if rdlD == 0 and YKHO.header_row or (fvDH == 0 and YKH...
[ "0.7502347", "0.6866452", "0.67777157", "0.6730487", "0.6604962", "0.6577296", "0.6466574", "0.6440531", "0.6419215", "0.63335806", "0.6309176", "0.6249988", "0.61952907", "0.61913353", "0.6190692", "0.61787504", "0.6171232", "0.6169583", "0.616084", "0.6111468", "0.6081547",...
0.6927267
1
Generates an HTML table.
def J5QQ(YKHO, WBPg=False): YKHO.header = WBPg return ''.join(YKHO._gen_html())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ad3r(YKHO):\n yield (\"\\n<table border=%r summary='a table'>\\n\" % YKHO.border)\n WBPg = YKHO.header\n for rdlD in YKHO:\n yield '<tr>\\n '\n for geyT in rdlD:\n if WBPg:\n yield ('<th>%s</th> ' % geyT)\n else:\n yield ('<td bgcolor=...
[ "0.8026575", "0.7591776", "0.7567255", "0.72545326", "0.7236654", "0.72127455", "0.7134308", "0.7084482", "0.70551914", "0.7004152", "0.70018345", "0.6983542", "0.6956146", "0.69424593", "0.6942297", "0.6935835", "0.69322395", "0.69282573", "0.69082344", "0.6903103", "0.68995...
0.0
-1
Predict binary labels for each sample in X, using a 0.5 threshold. Outputs a POSITIVE_CLASS/NEGATIVE_CLASS labels vector.
def YEmv(YKHO, EcVT): Ylbp = YKHO.predict_proba(EcVT) vRcw = Ylbp >= 0.5 yn07 = Ylbp < 0.5 Ylbp[vRcw] = YKHO.POSITIVE_CLASS Ylbp[yn07] = YKHO.NEGATIVE_CLASS return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, gwAu=0.5):\n WErR = YKHO.probability_array()\n KndY = oyIN.zeros(YKHO.N)\n KndY[WErR > gwAu] = 1\n return KndY", "def YEmv(YKHO, EcVT, Tyi7=0.5):\n WvFA = YKHO.predict_proba(EcVT)\n Crrw = oyIN.piecewise(WvFA, [WvFA <= Tyi7, WvFA > Tyi7], [0, 1])\n return Crrw", "def YEmv(YK...
[ "0.7652478", "0.75816154", "0.7474808", "0.7402312", "0.7303921", "0.72909087", "0.7204888", "0.7186723", "0.71679455", "0.71629083", "0.7139296", "0.7129836", "0.710376", "0.70986944", "0.7081686", "0.7059521", "0.70578593", "0.70393467", "0.70216274", "0.70009613", "0.70000...
0.755881
2
Test we get nothing when nothing is in ZooKeeper
def eQny(YKHO): epBp = UwkY(YKHO.client, '/services/db', YKHO.conf) epBp.loop(2, timeout=YKHO.TIMEOUT) YKHO.conf.write.assert_called_with({}) return epBp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i_PB(YKHO):\n C9Hl = egBD()\n Q6kx = igy8('somewhere')\n C9Hl.onMessage(None, ovZ1(Q6kx))\n YKHO.assertEqual(IweG(C9Hl, 'myservice', 'sandbox'), [])", "def xEz_(YKHO):\n x0hE = hM31.client.KazooClient()\n YDyP.ensure_exists(x0hE, '/foo/bar', data='foo')\n hM31.client.KazooClient.create.a...
[ "0.63214934", "0.6105583", "0.6102444", "0.59096754", "0.5881586", "0.58467233", "0.5755672", "0.5737874", "0.571416", "0.57031614", "0.5643269", "0.56215245", "0.5606141", "0.55610543", "0.5534905", "0.55066943", "0.54752105", "0.546851", "0.54284704", "0.5425977", "0.542158...
0.5151897
81
Sets the _user attribute. A user object is needed for validation. This method has to be called before is_valid() is called to allow us to validate if a email address given in account belongs to the same user.
def lT6e(YKHO, CBIr): YKHO._user = CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lT6e(YKHO, CBIr: User):\n YKHO.__user = CBIr", "def lT6e(YKHO, CBIr):\n YKHO.user = CBIr", "def lT6e(YKHO, vCWU):\n YKHO.user_model = vCWU\n return YKHO", "def CBIr(YKHO, CBIr):\n YKHO._user = CBIr", "def CBIr(YKHO, CBIr):\n YKHO._user = CBIr", "def CBIr(YKHO, CBIr):\n YKHO._user...
[ "0.7737714", "0.7617895", "0.73148245", "0.7230377", "0.7230377", "0.7230377", "0.7230377", "0.7230377", "0.7230377", "0.7230377", "0.7230377", "0.7230377", "0.6997955", "0.6870113", "0.66602147", "0.65622747", "0.6561295", "0.65504503", "0.64524555", "0.6402611", "0.62993854...
0.7363035
2
Helper returning a string of random bytes of given length.
def iy0C(exwG): return ''.join(map(chr, (tuKI.randrange(256) for YRbF in Ni9Y(exwG))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d4SM(len):\n return WR89.urlsafe_b64encode(Hy7s.urandom(len))[0:len]", "def BWvy(u54L):\n return Xbr4(Hy7s.urandom(u54L))[:u54L]", "def GLL2(u54L):\n return '{0:0{1}x}'.format(tuKI.getrandbits(u54L * 4), u54L)", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urand...
[ "0.8670452", "0.86600834", "0.8614691", "0.84062463", "0.833677", "0.83200914", "0.83086944", "0.8220126", "0.8199334", "0.81379706", "0.81350684", "0.81068856", "0.80998856", "0.80960995", "0.808688", "0.80533993", "0.8051482", "0.8021092", "0.80173206", "0.8010817", "0.8007...
0.73487157
65
//description Gets/Sets an issue's description. Used by upload.py or similar scripts.
def JBZA(QePW): if QePW.method != 'POST': JBZA = QePW.issue.description or '' return vNxZ(JBZA) if not QePW.issue.edit_allowed: if not TWX9: return vNxZ('Login required', status=401) rfQU = QePW.issue rfQU.description = QePW.POST.get('description') rfQU.put() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBZA(YKHO, JBZA):\n try:\n YKHO._description = JBZA\n except Exception as e:\n raise tTpl", "def JBZA(YKHO, JBZA):\n if JBZA is None:\n raise ValueError('Invalid value for `description`, must not be `None`')\n YKHO._description = JBZA", "def JBZA(YKHO, JBZA: str):\n if J...
[ "0.78110486", "0.7719359", "0.77010083", "0.77010083", "0.7644476", "0.7644476", "0.760939", "0.760939", "0.760939", "0.760939", "0.760468", "0.7603084", "0.75988793", "0.75988793", "0.75988793", "0.75988793", "0.75776166", "0.7552404", "0.7528036", "0.7502163", "0.7502163", ...
0.7217959
68
//patch// View a raw patch.
def Po4F(QePW): return aPUm(QePW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Po4F(YKHO):\n return YKHO._get('patch')", "def aPUm(QePW, hDl0='patch'):\n XKMN(QePW.patchset, QePW.patch)\n QePW.patch.nav_type = hDl0\n DPLm = fGBS.ParsePatchToLines(QePW.patch.lines)\n if DPLm is None:\n return vNxZ(\"Can't parse the patch to lines\", status=404)\n usx6 = eHpk.Ren...
[ "0.67000836", "0.65868145", "0.6518518", "0.64399576", "0.6363925", "0.6178472", "0.61600274", "0.6126409", "0.6076045", "0.60431945", "0.60422283", "0.6014399", "0.60054797", "0.6000284", "0.5998863", "0.59665835", "0.5934909", "0.5930298", "0.5930298", "0.5930298", "0.59236...
0.6038363
11
Returns the context setting for a user. The value is validated against models.CONTEXT_CHOICES. If an invalid value is found, the value is overwritten with django_settings.DEFAULT_CONTEXT.
def ySIn(QePW): _OGd = QePW.GET.get('context') or None if 'context' in QePW.GET and _OGd is None: return _OGd if QePW.user: ZrNc = FYrf.Account.current_user_account sYcT = ZrNc.default_context else: sYcT = POek.DEFAULT_CONTEXT QpfX = rqkw(_OGd, sYcT) if QpfX is no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G_wZ(YKHO, UWkl=None, **B2fa):\n OaeV = {'user': YKHO.user}\n if UWkl:\n OaeV.update(UWkl)\n OaeV.update(B2fa)\n return OaeV", "def gNqV(QpfX, mWFP):\n if mWFP in QpfX:\n return QpfX[mWFP]\n return getattr(gCuF, 'DEFAULT_' + mWFP.upper())", "def gNqV(QpfX, mWFP):\n if mWF...
[ "0.59225595", "0.5921223", "0.58996725", "0.58719546", "0.5744914", "0.5714082", "0.5681708", "0.5681178", "0.5650444", "0.5636944", "0.56178945", "0.5576094", "0.54802835", "0.54787105", "0.5448423", "0.5419284", "0.53989184", "0.539145", "0.53791237", "0.5362797", "0.535963...
0.7498166
1
Remove control chars other than \r\n\t from a string to be put in XML.
def GEih(KCHu): if aGZf.search(KCHu): return ''.join((Z9rn for Z9rn in KCHu if Z9rn >= ' ' or Z9rn in '\r\n\t')) else: return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHJG(zEKB):\n return ZbWC.sub('[\\x00-\\x1f]', '', zEKB)", "def KXjL(YKHO, vIwR):\n if HwRy.version_info.major >= 3 and isinstance(vIwR, bytes):\n vIwR = vIwR.decode('utf8')\n elif HwRy.version_info.major < 3:\n if not isinstance(vIwR, QMSQ):\n vIwR = QMSQ(vIwR, encoding='ut...
[ "0.7087268", "0.6831735", "0.66091347", "0.6537698", "0.65153325", "0.6500246", "0.6463212", "0.6442503", "0.6408627", "0.6394706", "0.62945247", "0.6222547", "0.6211024", "0.61732936", "0.6157662", "0.612993", "0.61210096", "0.60657114", "0.6057351", "0.60438573", "0.6037395...
0.66834563
3
Helper to turn a unicode string into 8bit bytes.
def ZsuQ(KCHu): if isinstance(KCHu, QMSQ): KCHu = KCHu.encode('utf-8') return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rSlX(KCHu):\n return KCHu.encode(encoding='utf-8', errors='ignore')", "def e__i(KCHu):\n return KCHu.encode('utf-8')", "def PQSR(vIwR):\n return vIwR.encode('utf8') if isinstance(vIwR, str) else vIwR", "def ntSl(vIwR):\n assert isinstance(vIwR, exCv)\n if HwRy.version_info[0] >= 3:\n ...
[ "0.73470974", "0.70944417", "0.70463693", "0.69863045", "0.6947016", "0.6893256", "0.67903465", "0.67711526", "0.6763625", "0.6741012", "0.67372686", "0.67371225", "0.6686542", "0.667001", "0.6648873", "0.6599519", "0.6578914", "0.6557802", "0.654903", "0.6534082", "0.6514486...
0.0
-1
Helper to return objects to put() and a list of draft comments. If preview is True, the list of objects to put() is empty to avoid changes to the datastore.
def LL8D(QePW, rfQU, LPxM=False): Tj1O = [] ZrQI = [] for Id5I in rfQU.patchsets: NKbK = list(FYrf.Comment.query(FYrf.Comment.author == QePW.user, FYrf.Comment.draft == True, ancestor=Id5I.key)) if NKbK: ohfT = dict(((XP5J.key, XP5J) for XP5J in Id5I.patches)) for XP5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pUhg(QePW):\n try:\n\n def aSeI(aM_I):\n Po4F = FYrf.Patch.get_by_id(int(aM_I.patch_id), parent=QePW.patchset.key)\n assert not Po4F is None\n KREW = (str(aM_I.message_id) if KREW in aM_I else None,)\n return {CBIr: QePW.user, rfQU: QePW.issue, Po4F: Po4F, ...
[ "0.5961487", "0.58654416", "0.55798465", "0.5332614", "0.51287365", "0.5100907", "0.50504154", "0.5032014", "0.50249255", "0.5021608", "0.4997695", "0.49810854", "0.49804017", "0.48766726", "0.48738325", "0.4838518", "0.4788224", "0.47702613", "0.4767966", "0.47546077", "0.47...
0.6633048
0
Helper that converts return value of ParsePatchToLines for caching. Each line in patchlines is (old_line_no, new_line_no, line). When comment is on the left we store the old_line_no, otherwise new_line_no.
def Je9i(WSR_, LFlW): if LFlW: WhY1 = ((gv2B, zFiD) for gv2B, bGrB, zFiD in WSR_) else: WhY1 = ((BdN0, zFiD) for bGrB, BdN0, zFiD in WSR_) return dict(WhY1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CH6_(YKHO, ezF6):\n UyjI, lovD, L15G = ([], [], [])\n for ZYCo, ufWI, I1mm in ezF6:\n try:\n UyjI.append(YKHO._format_line(0, I1mm, *ZYCo))\n lovD.append(YKHO._format_line(1, I1mm, *ufWI))\n except TypeError:\n UyjI.append(None)\n lovD.append(None...
[ "0.6652859", "0.6465227", "0.63774097", "0.59211504", "0.5903729", "0.5852003", "0.58275306", "0.5823793", "0.57426924", "0.573186", "0.57025135", "0.565802", "0.56378937", "0.5629356", "0.55975884", "0.55868965", "0.5574778", "0.55647933", "0.5514326", "0.5498986", "0.549683...
0.6658525
0
Create a directed path graph of length n A convenience constructor, mainly for ease of use to pass as a lambda and because it's too easy to just use `directed=True` by accident.
def GOjq(exwG): return jHsn.path_graph(exwG, create_using=jHsn.DiGraph)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KwJn(exwG):\n Oa1e = jHsn.DiGraph()\n for YRbF in range(0, exwG):\n Oa1e.add_node(YRbF)\n return Oa1e", "def y_B_(Zh7o=False):\n if Zh7o:\n pNZh = u_5c()\n else:\n pNZh = rHkU()\n pNZh.new_node()\n pNZh.new_node()\n pNZh.new_node()\n pNZh.new_edge(1, 2, 1)\n ...
[ "0.62655723", "0.619524", "0.61409754", "0.59677345", "0.5912754", "0.58619857", "0.580544", "0.56773865", "0.5665193", "0.56303877", "0.5622251", "0.5611494", "0.5590827", "0.554269", "0.5537473", "0.549015", "0.5464962", "0.5454921", "0.5445214", "0.5440324", "0.5428103", ...
0.7730273
0
Get the front element.
def T7C_(YKHO) -> int: Nneu = h1Oq(10) for YRbF in range(YKHO.data.get_size()): if YKHO.data.get_size() == 1: Ylbp = YKHO.data.pop() Nneu.push(Ylbp) else: Nneu.push(YKHO.data.pop()) YKHO.data = h1Oq(10) for YRbF in range(Nneu.get_size()): YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1", "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def vYJ5(YKHO):\n if YKHO.items:\n r...
[ "0.82009244", "0.79261875", "0.7852642", "0.7791182", "0.77886623", "0.75723046", "0.752337", "0.7510604", "0.7478953", "0.7379256", "0.7379256", "0.734284", "0.7323573", "0.7320296", "0.7291721", "0.72772557", "0.7269801", "0.72657627", "0.7253295", "0.72355044", "0.72213495...
0.0
-1
Returns whether the queue is empty.
def lsmZ(YKHO) -> bool: return YKHO.data.get_size() == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return not YKHO._queue"...
[ "0.9270249", "0.92506766", "0.923635", "0.923635", "0.9155843", "0.9098441", "0.9095006", "0.90922606", "0.90731245", "0.9053733", "0.89205354", "0.89137155", "0.8877591", "0.88436323", "0.88436323", "0.8835949", "0.88038146", "0.8758203", "0.87577534", "0.87310195", "0.86462...
0.0
-1
This method swaps out the default for ModelMultipleChoiceField, which by default just calls __string__ on the object. In the case of a user object, this would normally be the username, which for COMSC has no relation to the actual name of the person. If first or last name are empty, we revert to the username (but this ...
def WHPE(YEnM): if len(YEnM.first_name) > 0 and len(YEnM.last_name) > 0: return '{} {}'.format(YEnM.first_name, YEnM.last_name) else: return '<{}>'.format(YEnM.username)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NvFm(YKHO):\n if 'phone' in YKHO.initial_data:\n return 'phone'\n if 'user_name' in YKHO.initial_data:\n return 'user_name'\n return FcLM()", "def zAg0(YKHO) -> str:\n return YKHO.name or YKHO.username", "def zAg0(YKHO):\n return YKHO.user.first_name", "def W0tD(YKHO):\n C...
[ "0.6458757", "0.62930816", "0.6244813", "0.62168217", "0.6207836", "0.6136375", "0.6087484", "0.6012785", "0.60124004", "0.6010782", "0.6006394", "0.598917", "0.59536874", "0.5922701", "0.5893618", "0.58863354", "0.58862513", "0.58862513", "0.5857749", "0.58394754", "0.581580...
0.56506
37
Checks if an IP address is valid_ip
def SAfb(Y0SL): try: MDi9(Y0SL) return True except P1dF: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mty4(D8Ke):\n ...", "def RPkW(YKHO, UTX6):\n try:\n z05X.IPNetwork(UTX6)\n except ValueError:\n return False\n return True", "def ZSEV(D8Ke):\n try:\n GGmw.inet_aton(D8Ke)\n return True\n except GGmw.error:\n return False", "def mty4(UTX6):\n return...
[ "0.8788866", "0.8643154", "0.847893", "0.84176743", "0.8414608", "0.84130836", "0.83910894", "0.83453107", "0.83429843", "0.83269805", "0.81883335", "0.8187151", "0.81761545", "0.8101587", "0.8080452", "0.80172515", "0.8004289", "0.7958583", "0.7925622", "0.78388196", "0.7804...
0.8642605
2
Fetch the projects owned by the user.
def PKRp(YKHO): return YKHO._gitlab.owned_projects(per_page=1000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bDA_(YKHO, uJjO):\n Ylbp = YKHO.conn.cursor().execute('SELECT * FROM projects p JOIN users_projects up \\n ON p.id = up.project_id \\n WHERE owner=? OR up.user_id=?\\n GROUP BY p.id\\n ORDER BY last_update DESC', (uJjO, uJjO))\n return Ylbp.fetchall()", "def ayXM(CBIr):\n ...
[ "0.7949967", "0.7864142", "0.7472023", "0.74375963", "0.73811096", "0.73742294", "0.70902073", "0.7052204", "0.70082676", "0.7002907", "0.6844756", "0.6823138", "0.6822262", "0.67505366", "0.6717337", "0.6677379", "0.6675373", "0.6662964", "0.6630164", "0.66060114", "0.658497...
0.73000604
6
Tinh toan 13 he so MFCC dau tien + delta (12 he so) va delta & delta (14 he so) = 39 he so
def Oalu(): global ARGS mWFP = '' J7Cn = open('weka/MFCC78_TUNNING_{}_dataset.arff'.format(mWFP), 'w') J7Cn.write('@RELATION {}_dataset\n\n'.format(mWFP)) J7Cn.write('@ATTRIBUTE MEAN_MFCC1\tREAL\n') J7Cn.write('@ATTRIBUTE MEAN_MFCC2\tREAL\n') J7Cn.write('@ATTRIBUTE MEAN_MFCC3\tREAL\n') J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yaJB(YKHO):\n HRJ_ = YKHO.tp\n pWm4 = YKHO.tn\n ytgA = YKHO.fp\n FYKK = YKHO.fn\n return HRJ_ * pWm4 / oyIN.sqrt((HRJ_ + ytgA) * (HRJ_ + FYKK) * (pWm4 + ytgA) * (pWm4 + FYKK))", "def XUF6(YKHO, Bc4p, kTwQ):\n return 1.0 + (kTwQ ** 2.0 - 1.0) / Bc4p", "def FQj4(a1PO):\n return round(5 /...
[ "0.6168721", "0.5944499", "0.59130716", "0.5867983", "0.5847796", "0.5843194", "0.58149666", "0.5807609", "0.58073646", "0.57989436", "0.5763735", "0.5705264", "0.56746817", "0.56224364", "0.5594686", "0.55850685", "0.5576668", "0.5562141", "0.55291146", "0.55107003", "0.5504...
0.0
-1
Fetch dataset by `name`
def dD7q(mWFP): from ._ids import _datasets if mWFP in _datasets: return mH7g(*_datasets[mWFP]) else: raise IndexError(f'Uknown company name. {mWFP} was given. Available datasets are {_datasets.keys()}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LrZq(mWFP):\n return iujc[mWFP.lower()]", "def NMoC(YKHO, mWFP):\n assert mWFP, 'Must input a valid dataset name.'\n return YKHO.manager.get_data(mWFP)", "def j_oG(YKHO, mWFP: str) -> h8nf['Dataset']:\n raise NotImplementedError", "def yLtf(YKHO, mWFP):\n assert mWFP, 'Must input a valid d...
[ "0.80699867", "0.8062106", "0.8053193", "0.77994764", "0.742339", "0.7414992", "0.74137646", "0.7407203", "0.7291326", "0.71872944", "0.71409565", "0.70937485", "0.6897206", "0.6868761", "0.6801467", "0.6728015", "0.6683693", "0.6659733", "0.66476035", "0.6637579", "0.6578376...
0.78054494
3
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7797116", "0.77627903", "0.7760451", "0.7757387", "0.7658399", "0.7658399", "0.7658399", "0.7658399", "0.7587644", "0.7433347", "0.7409716", "0.73956805", "0.73604953", "0.7319298", "0.72706646", "0.72645944", "0.7263417", "0.72585905", "0.7231768", "0.7216702", "0.7203891...
0.7175595
22
Apply scatter operation on input data using specified root and scatter_data.
def exec(YKHO, nPrm=None, etkr=None): return YKHO.scatter_op(YKHO.root, nPrm, *etkr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wR4G(qIxc):\n sY6z.scatter.run(input_fp=qIxc.input, output_fp=qIxc.output, width=qIxc.width, height=qIxc.height, scale=qIxc.scale, font_family=qIxc.font_family)", "def wR4G(YKHO, wR4G):\n if wR4G is None:\n YKHO._scatter = None\n return None\n wR4G = oyIN.array(wR4G).flatten()\n if ...
[ "0.6041208", "0.6008654", "0.5903399", "0.5840719", "0.5598227", "0.5552449", "0.546685", "0.54189706", "0.541332", "0.5365131", "0.5283065", "0.5273687", "0.52680576", "0.5265316", "0.5181001", "0.5163181", "0.5155929", "0.5097137", "0.509628", "0.5082195", "0.5078108", "0...
0.77398664
0
Set the origin id in a packet, so the packet can be tracked. All endpoint classes should use this for passing packets further.
def sG_3(YKHO, Y69S): Y69S.module_id = YKHO.id YKHO._notify_listeners(Y69S)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UcQn(YKHO, UcQn):\n YKHO._origin_id = UcQn", "def V_9M(YKHO, LZbL):\n pass", "def f6Qh(YKHO):\n raise NotImplementedError()", "def pDMb(YKHO, VBUC):\n if not isinstance(VBUC, str):\n raise TypeError('Origin Stream Id must be a string')\n YKHO.token['originStreamId'] = VBUC\n retu...
[ "0.74704087", "0.6206297", "0.600978", "0.5987041", "0.5958155", "0.5938467", "0.5856864", "0.5809487", "0.57974374", "0.5771269", "0.57405525", "0.5717702", "0.5710059", "0.5681008", "0.56733155", "0.56534827", "0.5583766", "0.5575671", "0.55745983", "0.5573191", "0.5571177"...
0.0
-1
Get the postprocessed output of the given state.
def U92v(YKHO, QTBn: str) -> cuzp[str, ImMB]: return xRMc(YKHO._dir_path / f'{QTBn}.yaml')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlel(YKHO, QTBn):\n MKlR, a1PO = QTBn\n return MKlR", "def lzml(YKHO, QTBn):\n return ht2j.tensor(QTBn, dtype=ht2j.float, device=YKHO.device)", "def LI2u(YKHO, QTBn: NestedMap) -> omfu:\n raise NotImplementedError('Abstract method')", "def SjOz(YKHO):\n return YKHO.__output", "def SjOz(Y...
[ "0.66730475", "0.6018711", "0.6010726", "0.58573234", "0.58573234", "0.58573234", "0.58573234", "0.58573234", "0.58573234", "0.58283436", "0.57614267", "0.57537675", "0.5640639", "0.5630592", "0.56224805", "0.5538781", "0.5538781", "0.55384886", "0.5509997", "0.55078715", "0....
0.6103959
1
Returns the data directory path for the given measurement.
def xe5l(YKHO, k9vs: str, SKCf: str) -> GkAb: return YKHO._root_dir.joinpath(k9vs, SKCf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mC1D(__n6, BuX_=GDa9.WORK_DIR):\n return zOLB(BuX_, GDa9.DATA_DIR, __n6)", "def wR32():\n PSbX = './MedData/'\n if not Hy7s.path.isdir(PSbX):\n Hy7s.makedirs(PSbX)\n return PSbX", "def WpES():\n return Whwd('cdat_lite.test.test_cdms', 'sample_data')", "def PzIn() -> oAb3.Path:\n ...
[ "0.69714224", "0.69661665", "0.69080025", "0.6898069", "0.68550664", "0.6834466", "0.6829885", "0.6813854", "0.67971146", "0.67942923", "0.6790493", "0.67518944", "0.67347854", "0.67285895", "0.67275155", "0.67199266", "0.6705296", "0.6635025", "0.65847003", "0.6566443", "0.6...
0.7290949
0
Returns a list of valid sweep variable values. Parameter
def vF5V(YKHO, SRYB: str) -> x1iM[ImMB]: return YKHO._sweep_params[SRYB]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BMxH(YKHO, LZ_D):\n return []", "def BUcg(MVNe):\n UHhk = []\n for SRYB in MVNe:\n try:\n ycBG = MVNe[SRYB].getValue()\n except ValueError:\n UHhk.append(SRYB)\n return UHhk", "def KXlO(YKHO, vars):\n raise NotImplementedError()", "def Zjnb(YKHO):\n r...
[ "0.6259837", "0.6005813", "0.58366203", "0.58016974", "0.5747502", "0.57386756", "0.57256407", "0.5689537", "0.5640568", "0.5636825", "0.5603753", "0.55786663", "0.5534839", "0.551313", "0.5511146", "0.55060375", "0.5496398", "0.54896486", "0.5487881", "0.5487881", "0.5487881...
0.7161371
0
This view should return the details of the clicked on project
def OI9t(HNPp, ekCf=0): XP5J = Iofl(oPx1, pk=ekCf) return SGJU('project_detail.html', {'project': XP5J})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bKG9():\n VB5n = QePW.args.get('title')\n JBZA, U1mj = FWaO.get_project_info(VB5n)\n MHlt = FWaO.list_students_by_completed_project(VB5n)\n return TvZl('project_info.html', title=VB5n, description=JBZA, max_grade=U1mj, student_grades=MHlt)", "def njGH(QePW, ekCf):\n try:\n bNKA = oPx1.o...
[ "0.7520839", "0.75088644", "0.72007066", "0.7145585", "0.709296", "0.70759654", "0.6979045", "0.6933197", "0.6922431", "0.6893129", "0.6872643", "0.68558043", "0.6824157", "0.6801652", "0.67938805", "0.6753069", "0.6733425", "0.6668932", "0.66145647", "0.6568839", "0.65330714...
0.797493
0
Take the list of allowed permutations and build the symmetry operations allowed for the operation, modifying `symmetry` in place.
def A3mg(rrK4: List[Any]) -> None: tpio = len(rrK4[0][0]) PXGI = XTiz.identity(tpio, dtype=int) for cZDQ in rrK4: IuXB = PXGI[:, XTiz.argsort(cZDQ[0])] cZDQ[0] = IuXB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vuzH(YKHO):\n YKHO.command_stack.do(C3ST.structure.ApplySymmetry(YKHO._structure))", "def rrK4(r8hN, MicQ, N0Pp):\n\n def rJfl(r8hN):\n return tuple(reversed(r8hN))\n\n def SjGj(r8hN):\n return tuple((tuple(reversed(r8hN[WKvO][:])) for WKvO in range(len(r8hN))))\n X2PW = {r8hN}\n ...
[ "0.6503778", "0.5792072", "0.5780069", "0.564733", "0.55899084", "0.54170614", "0.53754944", "0.5347642", "0.531617", "0.52893186", "0.52363664", "0.5220204", "0.5203415", "0.5188878", "0.51688164", "0.5160333", "0.51599336", "0.51452094", "0.51094013", "0.5107083", "0.507669...
0.83704025
0
return values along a specified column i.e., column = 0, return [1, 4, 7]
def J7sY(YKHO, iVRZ): yKcO = YKHO.VERTICAL_GROUP[iVRZ] Os4s = yKcO + 10 YPaw = 3 return YKHO.grid[yKcO:Os4s:YPaw]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xfPt(YKHO, fvDH: str) -> gyIm:\n yDqo, hksT = YKHO._get_col_dtype_loc(fvDH)\n return YKHO._data[yDqo][:, hksT]", "def CUXk(YKHO, iVRZ):\n GyLV = list()\n for rdlD in YKHO._value:\n GyLV.append(rdlD[iVRZ])\n return GyLV", "def TSF4(YKHO, fvDH):\n if fvDH not in YKHO.cols:\n r...
[ "0.70178735", "0.6877587", "0.6764869", "0.66130155", "0.64246017", "0.6383252", "0.6379804", "0.6378404", "0.62872016", "0.62872016", "0.627957", "0.62494963", "0.62211233", "0.6195247", "0.6169044", "0.6116049", "0.610059", "0.6096069", "0.6096069", "0.6096069", "0.6000891"...
0.0
-1
Compute the KL divergence KL(dist1, dist2) between two Gaussians. The KL is factorised into two terms `kl_mean` and `kl_cov`. This factorisation is specific to multivariate gaussian distributions and arises from its analytic form. Specifically, if we assume two multivariate Gaussian distributions with rank k and means,...
def yQo9(h53z, S4Lf, JIni, IfIT, V18Z=False): if V18Z: v41e = h53z.get_shape().ndims S4Lf.get_shape().assert_has_rank(v41e) o3ZY = JIni.get_shape().ndims IfIT.get_shape().assert_has_rank(o3ZY) Bsvx = KCQP.distributions.MultivariateNormalDiag else: Bsvx = KCQP.dist...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SDO4(ryEI, WNRf, _RNt, UkX0):\n G1Hx = len(ryEI)\n try:\n OpKk = oyIN.trace(oyIN.matmul(oyIN.linalg.inv(UkX0), _RNt))\n itg4 = oyIN.matmul(oyIN.matmul((WNRf - ryEI).T, oyIN.linalg.inv(UkX0)), WNRf - ryEI)\n pkRX = McfA(_RNt)\n OKko = McfA(UkX0)\n s404 = oyIN.log(OKko)\n...
[ "0.7555137", "0.7541546", "0.7307189", "0.7146576", "0.706692", "0.706692", "0.6981758", "0.6952957", "0.6952957", "0.6885862", "0.68184644", "0.67867994", "0.67211604", "0.6714059", "0.66621876", "0.6659812", "0.6631165", "0.6611222", "0.65988135", "0.65978724", "0.6584791",...
0.8313713
0
Hide the spinner to allow for custom writing to the terminal.
def Afoa(YKHO) -> None: HKKS = YKHO._spin_thread and YKHO._spin_thread.is_alive() if YKHO._hide_spin is None: raise RuntimeError('hide_spin is None') if HKKS and (not YKHO._hide_spin.is_set()): with YKHO._stdout_lock: YKHO._hide_spin.set() YKHO._clear_line() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUHY(YKHO) -> None:\n HKKS = YKHO._spin_thread and YKHO._spin_thread.is_alive()\n if YKHO._hide_spin is None:\n raise RuntimeError('hide_spin is None')\n if HKKS and YKHO._hide_spin.is_set():\n with YKHO._stdout_lock:\n YKHO._hide_spin.clear()\n YKHO._clear_line()",...
[ "0.7670902", "0.69344175", "0.67467153", "0.666301", "0.6641358", "0.6528165", "0.64071685", "0.63921535", "0.6347983", "0.62813294", "0.61500007", "0.60965544", "0.60659087", "0.5928634", "0.587604", "0.58676946", "0.5849713", "0.5832292", "0.58265", "0.58175707", "0.5803010...
0.78274095
0
Set up the Sense HAT sensor platform.
def AbqV(ajET, GPtr, uVcJ, tR5e=None): try: DE83 = ANWz.import_module('envirophat') except OSError: vzeF.error('No Enviro pHAT was found') return False nPrm = eLsL(DE83, GPtr.get(cNWo)) mF2q = GPtr[CaGg] MMe4 = [jXip(nPrm, JBZA) for JBZA in lc9R if JBZA.key in mF2q] uVcJ(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1tQ(YKHO):\n YKHO._sense_hat = mOUY()\n YKHO._show_message('Init Sensors', (255, 255, 0), (0, 0, 255))\n YKHO._sense_hat.get_humidity()\n YKHO._sense_hat.get_pressure()\n YKHO._sense_hat.stick.direction_up = YKHO._change_weather_entity\n YKHO._sense_hat.stick.direction_down = YKHO._change_we...
[ "0.71746033", "0.7131173", "0.6977677", "0.6932417", "0.68636554", "0.6752213", "0.6712316", "0.6710212", "0.6699971", "0.6668581", "0.663625", "0.6583184", "0.65720475", "0.6562509", "0.65424454", "0.6501312", "0.64917994", "0.6474022", "0.64402205", "0.6421672", "0.6414937"...
0.70362663
2
Get a dictionary of the class parameters. This is useful for checkpointing.
def ja6o(YKHO) -> cuzp: return {'patience': YKHO.patience, 'cooldown': YKHO.cooldown, 'cooldown_counter': YKHO.cooldown_counter, 'mode': YKHO.mode, 'threshold': YKHO.threshold, 'threshold_mode': YKHO.threshold_mode, 'best': YKHO.best, 'num_bad_epochs': YKHO.num_bad_epochs, 'mode_worse': YKHO.mode_worse, 'last_epoch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W6RH(YKHO):\n return {'classifier': YKHO.classifier, 'grid_param': YKHO.grid_param, 'n_param_comb': YKHO.n_param_comb, 'top_bagging': YKHO.bagging, 'bagging_param': YKHO.bagging_param, 'comb_seed': YKHO.comb_seed}", "def W6RH(YKHO):\n return {'threshold': YKHO.threshold, 'subsample': YKHO.subsample, 'e...
[ "0.75779", "0.72351277", "0.7176595", "0.71378803", "0.710437", "0.70930046", "0.7037302", "0.7034231", "0.69965476", "0.6991677", "0.6989277", "0.68902266", "0.68827075", "0.6839028", "0.68168473", "0.68164754", "0.679379", "0.6788686", "0.678755", "0.67795855", "0.67620134"...
0.0
-1
reduce the amount of channels to prevent final embeddings overwhelming shallow feature maps out_ch could be 512, 256, 128
def FIMM(YKHO, vC8u=2048, nrLm=256): super(h_7V, YKHO).__init__() waTm = 1000 fVHX = [] fVHX += [U78l.Linear(vC8u, waTm)] fVHX += [U78l.BatchNorm1d(waTm)] fVHX += [U78l.ReLU()] fVHX += [U78l.Linear(waTm, 500)] fVHX += [U78l.BatchNorm1d(500)] fVHX += [U78l.ReLU()] fVHX += [U78l.Li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, DYuh=128, NQks=128, xMux=64, tYiq=1, Aiko=100, yGwT=128, uC8B=128, IdDT=False, Ot1W=9, ivFb=2, oug5=True, gNAf=[11, 2, 2, 2], _yFr='LeakyReLU', _rpu={'negative_slope': 0.2}, vTym=[2, 2, 2, 2, 2, 2, 2, 2, 1], k7rT='nearest', k1DN='softmax', C0cw=True):\n super().__init__()\n YKHO.in_channels = ...
[ "0.6237221", "0.5925426", "0.58344674", "0.5801917", "0.5762518", "0.5760416", "0.5757824", "0.5731919", "0.5731234", "0.57279295", "0.57170784", "0.5715821", "0.5707814", "0.5689758", "0.56811297", "0.56678456", "0.5659796", "0.5626509", "0.5617514", "0.56143296", "0.5612925...
0.59050995
2
Set whether to trace transforms.
def SJ6E(YKHO, uG_5: bool) -> None: YKHO.tracing = uG_5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FZyl(YKHO, wVji: bool):\n THkp = YKHO.tracing\n YKHO.tracing = wVji\n yield\n YKHO.tracing = THkp", "def rxPv(YKHO, SZFh):\n YKHO._transform = SZFh", "def V4uS(kzff):\n KzzM.set_trace_on(kzff)", "def xHBm(YKHO, Ymkf):\n YKHO._legacy = False\n if Ymkf:\n YKHO._transforms.upd...
[ "0.6861118", "0.6440577", "0.6141075", "0.60119647", "0.58907974", "0.5662466", "0.55978405", "0.55971104", "0.55454814", "0.55315375", "0.55033636", "0.5488744", "0.54184145", "0.54135126", "0.5377368", "0.53588504", "0.53340125", "0.53179204", "0.53148067", "0.5293111", "0....
0.7146517
0
Return a date object from an ORM date string value
def xz5z(BWXx, kP3h=BcmF, WmM4=None): if not BWXx: return WmM4 return qcWV.strptime(BWXx, kP3h).date()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z3Lu(_c1T):\n Hghu = type(_c1T)\n try:\n if Hghu == qcWV.date:\n return _c1T\n elif Hghu == qcWV.datetime:\n return qcWV.datetime.date(_c1T)\n else:\n return qcWV.datetime.date(qcWV.datetime.strptime(_c1T, '%Y-%m-%d'))\n except ValueError:\n ...
[ "0.6831481", "0.67224175", "0.67156255", "0.6658647", "0.6647625", "0.66400206", "0.6627768", "0.66248477", "0.6579367", "0.6563045", "0.65532774", "0.65484756", "0.64829266", "0.6469934", "0.64355284", "0.64017427", "0.6391011", "0.6386152", "0.6378269", "0.6371653", "0.6361...
0.67417675
1
Return an int timestamp from a datetime (with or without millisecond)
def XoWi(BWXx, MaIc=False): if MaIc: return int(ITS7.mktime(BWXx.timetuple())) else: return int(round((ITS7.mktime(BWXx.timetuple()) + BWXx.microsecond / 1000000.0) * 1000))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aEIX(gin6: datetime) -> int:\n return GRk0.timegm(gin6.timetuple())", "def ItX3():\n return int(ITS7.time() * 1000)", "def ItX3() -> int:\n return int(ITS7.time() * 1000)", "def MWa5(JRYC):\n return int(ITS7.mktime(JRYC.timetuple()))", "def l2cW(JRYC):\n E3oo = JRYC.timestamp()\n E3oo...
[ "0.7509812", "0.7329008", "0.7322407", "0.7307471", "0.728801", "0.7248286", "0.724126", "0.7173804", "0.7125151", "0.7080407", "0.70256644", "0.70042866", "0.6994447", "0.69616383", "0.68958694", "0.6880351", "0.68778443", "0.6874275", "0.68356675", "0.68139106", "0.6810356"...
0.7285113
5
Return a datetime from a int timestamp (with or without millisecond)
def KNUd(BWXx, MaIc=False): return qcWV.fromtimestamp(BWXx / (MaIc and 1000.0 or 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k_T9(E3oo: int) -> qcWV:\n return qcWV.fromtimestamp(E3oo, tz=rIAI.utc)", "def k_T9(BWXx):\n if not isinstance(BWXx, (int, Swre, float)):\n raise ValueError('Expecting a number, got %s instead' % type(BWXx).__name__)\n return QXXU + qcWV.timedelta(microseconds=BWXx)", "def wbtj(E3oo):\n ...
[ "0.76783377", "0.7367238", "0.7330841", "0.7202563", "0.70727855", "0.70551383", "0.7045366", "0.6999372", "0.6974602", "0.6889763", "0.68086857", "0.6621983", "0.6606532", "0.6589143", "0.6556031", "0.6545194", "0.65261626", "0.6519245", "0.65168583", "0.6510207", "0.6496882...
0.7373631
1
True if string looks like a valid package instance tag.
def YzmI(TZ9E): if not TZ9E or ':' not in TZ9E or len(TZ9E) > zopH: return False return bool(yveE.match(TZ9E.split(':', 1)[0]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cv6h(KCHu):\n if KCHu.lower().startswith('xml'):\n return False\n return ZbWC.match('[^\\\\W\\\\d][\\\\w\\\\-_.]*', KCHu)", "def bfKT(KAOR):\n return ZbWC.match('^[a-z0-9\\\\-_]+$', KAOR)", "def juYD(hxGQ):\n return hxGQ and bool(Yxly.match(hxGQ)) and all((Z9rn.replace('.', '') != '' for...
[ "0.6406384", "0.61601585", "0.6154608", "0.598311", "0.5982821", "0.59686965", "0.58920383", "0.58079845", "0.56722105", "0.5651788", "0.5645807", "0.5644239", "0.56165916", "0.5589895", "0.55282813", "0.551523", "0.5501837", "0.54960585", "0.54737246", "0.5467853", "0.546376...
0.626691
1
Returns True if |version| is an instance_id. I.e. it is either a 40char long hex strings (for legacy SHA1 ids), or a sufficiently long urlsafe base64encoded unpadded string (for newer ids, in particular SHA256 ones).
def nvyh(DpZH): return bool(nnBo.match(DpZH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uju0(YKHO, B7c0):\n try:\n W0uT = S7kj(B7c0)\n njyT = CZRA[0]\n r8hN = njyT.search(B7c0)\n if not r8hN:\n return False\n elif W0uT or r8hN:\n return True\n except ValueError:\n return False", "def _43m(wEf2):\n if not wEf2:\n ret...
[ "0.5955192", "0.58531183", "0.5785968", "0.5747305", "0.5564219", "0.55364764", "0.55073184", "0.55073184", "0.5500049", "0.5494151", "0.5491942", "0.5420474", "0.54116887", "0.5402278", "0.53982353", "0.53625035", "0.53603745", "0.5358079", "0.5352393", "0.5302176", "0.52303...
0.796884
0
Returns True if |version| is pinned.
def _ZUm(DpZH): return nvyh(DpZH) or YzmI(DpZH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zqn5(YKHO):\n Pe9W = 'SELECT is_pinned FROM hive_posts WHERE id = :id'\n return bool(pths.query_one(Pe9W, id=YKHO.post_id))", "def RboN(YKHO):\n if 'query' in YKHO.query:\n vexM = YKHO.query['query']\n else:\n vexM = YKHO.query\n if 'pinned_ids' in vexM:\n return bool(len(...
[ "0.68700564", "0.62286377", "0.6044816", "0.5729679", "0.5567676", "0.55376637", "0.547604", "0.5406997", "0.5394052", "0.53202367", "0.51067346", "0.50909615", "0.5082229", "0.5074023", "0.50581986", "0.50308985", "0.5023997", "0.50119734", "0.4988513", "0.4987271", "0.49844...
0.78000677
0
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep", "def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join...
[ "0.83695436", "0.8280479", "0.82485795", "0.8139178", "0.8114118", "0.80985415", "0.80940944", "0.80797124", "0.80677074", "0.80673695", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.80569947", "0.80545217", "0.80448323", "0.804...
0.7951494
38
Creates a pipeline of primitives.
def CStp(YKHO, LvfL, UwBq=None): YKHO.primitive = YKHO.check_path(LvfL) if UwBq is not None: UwBq = YKHO.check_path_hyperparameters(UwBq) nPIK = k9M6(YKHO.primitive, UwBq) else: nPIK = k9M6(YKHO.primitive) return nPIK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hu7H(YKHO) -> Y0rt:\n nPIK = Y0rt([('extract_data', jg41(YKHO.get_numerical_features)), ('impute', zBcB(missing_values=oyIN.nan)), ('standard_scaler', BiKi())])\n return nPIK", "def nPIK(qIxc):\n from pipeliner import create_pipeline\n create_pipeline(qIxc)", "def TkMt():\n QJkK = IbFw(d3VK)...
[ "0.61798215", "0.61173534", "0.5997139", "0.58952326", "0.5893748", "0.58808076", "0.5872877", "0.5810411", "0.58073366", "0.5719939", "0.56979126", "0.5693223", "0.569222", "0.5669602", "0.56535953", "0.56421936", "0.5639609", "0.5572614", "0.55566245", "0.55338943", "0.5524...
0.6683296
0
Translates a rgb tuple to the same tuple from the range 01 to the range 0255.
def ZLtZ(KFm3): cDM3 = [] for UksD in KFm3: cDM3.append(hBUG(UksD, 0, 1, 0, 255)) return tuple(cDM3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LyyR(WKvO):\n JDof = int(1000 * WKvO % 255)\n FdQZ = int(10000 * WKvO % 255)\n L_To = int(100000 * WKvO % 255)\n return (JDof, FdQZ, L_To)", "def fZcQ(Jw9H):\n return (Jw9H[0] * 255.0, Jw9H[1] * 255.0, Jw9H[2] * 255.0)", "def SDfS(YKHO, BWXx):\n BWXx = BWXx.lstrip('#')\n iB6t = len(BWX...
[ "0.7705764", "0.73138994", "0.706653", "0.7000178", "0.69928914", "0.6973792", "0.6963842", "0.6931905", "0.6929159", "0.68408823", "0.6829972", "0.6828486", "0.6754302", "0.67361355", "0.67361355", "0.67361355", "0.67361355", "0.67156404", "0.67156404", "0.67156404", "0.6715...
0.8059268
0
Calculates the euclidean distance between two colors
def MY7C(jCRz, ZfdO): ZRUQ = jCRz[0] - ZfdO[0] vPgk = jCRz[1] - ZfdO[1] JqGE = jCRz[2] - ZfdO[2] return PZyS(ZRUQ * ZRUQ + vPgk * vPgk + JqGE * JqGE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AxsX(dg7v, iYf1):\n return sum(((jzdc - Fg_i) ** 2 for jzdc, Fg_i in zip(x49m(dg7v), x49m(iYf1))))", "def WUxf(jCRz, ZfdO):\n AmyA = oyIN.array(jCRz, dtype=int)\n gXjG = oyIN.array(ZfdO, dtype=int)\n return PZyS(2 * (AmyA[0] - gXjG[0]) ** 2 + 4 * (AmyA[1] - gXjG[1]) ** 2 + 3 * (AmyA[2] - gXjG[2])...
[ "0.86011326", "0.8484401", "0.829997", "0.8252177", "0.8199349", "0.8190325", "0.8000533", "0.7919303", "0.7651752", "0.7431277", "0.70807165", "0.7004771", "0.69348663", "0.68690914", "0.6844022", "0.6757201", "0.6732118", "0.67291284", "0.67271715", "0.67157966", "0.6667949...
0.8426169
2
Finds all words and figures in string `s`, strips diacritics from them, lowercases them and returns them as a list.
def l4Z4(KCHu): return wr3U(d720(KCHu))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d720(KCHu):\n return filter(lambda P6bq: not iwVN(P6bq), NkkI('NFKD', KCHu)).lower()", "def JgZ3(KCHu):\n if Ot66(KCHu):\n KCHu = iCQO('--', ' ', KCHu)\n KCHu = KCHu.lower().split()\n vwCE = []\n for GIN8 in KCHu:\n vwCE.append(ykip(GIN8))\n return vwCE", "def uajn(KCHu):\n ...
[ "0.6988526", "0.6872961", "0.64936674", "0.64372414", "0.63879293", "0.63436854", "0.6306243", "0.63019013", "0.60846066", "0.6064704", "0.60423464", "0.6023796", "0.5970452", "0.5944302", "0.59092796", "0.58806944", "0.5867269", "0.58281916", "0.5806929", "0.5806929", "0.577...
0.73699296
0
Get data from yaml files (nonrecursively) from target_directory Skip files that throw YAML Parsing exceptions
def DWvi(rIuK): import os import yaml Aofo = {} for nUeQ in os.listdir(rIuK): qaEx = os.path.join(rIuK, nUeQ) try: with open(qaEx) as eHNT: cwkY = yaml.load(eHNT) Aofo[nUeQ] = cwkY except yaml.YAMLError: continue return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W4bW(pmON) -> dict:\n kcNx = pmON / 'vulns'\n for nUeQ in kcNx.glob('**/*.yaml'):\n with open(nUeQ) as eHNT:\n yield Pywa.load(eHNT.read())", "def WheD(xtX7):\n for ZfUD in teCm(xtX7 + '/*.yaml'):\n KAfx = Hy7s.path.join(xtX7, ZfUD)\n nPrm = eJb6.load(open(KAfx))\n ...
[ "0.65056974", "0.63148654", "0.6114606", "0.6090967", "0.60024095", "0.5967427", "0.59651536", "0.59386647", "0.59229004", "0.59107566", "0.5898885", "0.58953834", "0.5871489", "0.57461804", "0.5670247", "0.5640978", "0.56377107", "0.5629801", "0.56153256", "0.56035024", "0.5...
0.683706
0
Get the theoretical spouting velocity for a turbine.
def Hsw9(uH86, oB8n, Nb9x, KMvS, re34): E0aV = PjAi(uH86, oB8n, Nb9x, KMvS, re34) MANu = (2 * E0aV) ** 0.5 return MANu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uxsC(YKHO):\n return YKHO.momentum / YKHO.mass", "def Uk5V(YKHO):\n return YKHO.v", "def uxsC(YKHO):\n return YKHO._I85_msg_from_device(YKHO.node.sdo[24684].phys) / 10", "def zohc(YKHO):\n p8Jz = YKHO.orbitalAngularVelocity * YKHO.r\n return p8Jz", "def GTEB(YKHO):\n return 1 / oyIN.s...
[ "0.67023915", "0.6370546", "0.63463503", "0.62100834", "0.6199746", "0.6172964", "0.60821986", "0.6058657", "0.6058657", "0.604352", "0.59885174", "0.5954467", "0.58171827", "0.5805677", "0.5750838", "0.5735915", "0.5733193", "0.5728575", "0.5710927", "0.57105345", "0.5709628...
0.6990736
0
Return a random album selected from the library.
def m0M0(YKHO): _e0h = YKHO.ctrl.library h5p_, wphz = _e0h.get_random_album() return YKHO.resp_from_data({'artist': h5p_, 'album': wphz, 'path': _e0h.get_path(h5p_, wphz)})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def random_album_popularity():\n IJM4 = 0.8\n X74i = 40\n IDsK = -1\n A2Fp = tVah(epAf.sqrt(X74i) * (1 - IJM4))\n WKvO = tuKI.uniform(IDsK, A2Fp)\n LVAh = _qg4(WKvO) / epAf.sqrt(X74i) + IJM4\n return LVAh", "def ZqcG(YKHO):\n return tuKI.choice(YKHO.song_list)", "def wphz(YKHO, ve...
[ "0.6916328", "0.6749973", "0.6617715", "0.6394853", "0.6393976", "0.6377687", "0.6252139", "0.6071143", "0.6010934", "0.59721214", "0.5936897", "0.5918393", "0.5895841", "0.5895841", "0.58860755", "0.58859646", "0.58753175", "0.58413947", "0.5838833", "0.5824986", "0.58041847...
0.8329697
0
Test that when events are created without both of end_date and end_time, end_datetime() returns None.
def joTP(YKHO): tTpl = QRWf(title=YKHO.TITLE, creator=YKHO.USER, end_date=YKHO.END.date()) YKHO.assertIsNone(tTpl.end_datetime()) eHNT = QRWf(title=YKHO.TITLE, creator=YKHO.USER, end_time=YKHO.END.time()) YKHO.assertIsNone(eHNT.end_datetime())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gFD_(YKHO):\n tTpl = QRWf(title=YKHO.TITLE, creator=YKHO.USER, end_date=YKHO.END.date(), end_time=YKHO.END.time())\n YKHO.assertEqual(tTpl.end_datetime(), YKHO.END)", "def ORU4(YKHO):\n tTpl = QRWf(title=YKHO.TITLE, creator=YKHO.USER, start_date=YKHO.START.date())\n YKHO.assertIsNone(tTpl.start_d...
[ "0.76450753", "0.751534", "0.7167959", "0.6886683", "0.6881873", "0.6838561", "0.6762366", "0.6731533", "0.67256707", "0.66983646", "0.65614927", "0.6417475", "0.6349643", "0.63006175", "0.6267911", "0.62460816", "0.6207779", "0.62029594", "0.6191031", "0.60991603", "0.609837...
0.8692231
0
Test that when the `/admin/events/publish/` routeis POSTed to by a nonpublisher an error is thrown.
def DbFK(YKHO): tTpl = YKHO.make_event() tTpl.save() RQ6U = tTpl.id _hkX = YKHO.request_with_role('/admin/events/publish/%s' % RQ6U, role='editor', method='POST') YKHO.assertEqual(_hkX.status_code, 401) YKHO.assertEqual(QRWf.objects(published=True).count(), 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVvj(YKHO):\n tTpl = YKHO.make_event()\n tTpl.save()\n ouk8 = aA6B()\n _hkX = YKHO.request_with_role('/admin/events/publish/%s' % ouk8, role='publisher', method='POST', follow_redirects=True)\n YKHO.assertIn('Invalid event id', _hkX.data)\n YKHO.assertEqual(_hkX.status_code, 200)\n YKHO.as...
[ "0.7952381", "0.7566972", "0.73306483", "0.71861696", "0.6695914", "0.6489431", "0.6459664", "0.64445794", "0.6430859", "0.6391497", "0.63351536", "0.6309055", "0.62898", "0.62731737", "0.6268083", "0.62196976", "0.6172309", "0.61555916", "0.61272013", "0.6126173", "0.6077381...
0.67065763
4
Return true if the binary_sensor is on.
def Debg(YKHO): return YKHO.coordinator.data.get('title', '') == 'foo'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO):\n return YKHO._sensor_state()", "def Debg(YKHO):\n return getattr(YKHO.coordinator.data[0], YKHO._sensor) is True", "def Debg(YKHO):\n nPrm = YKHO.sensor_data\n if nPrm and nPrm['model'] == 'SML' and nPrm['changed']:\n return nPrm['state'] == _rDc\n return False", "def Y...
[ "0.7884619", "0.7740934", "0.74744123", "0.7355086", "0.711196", "0.7103455", "0.70885575", "0.70885575", "0.70885575", "0.70857835", "0.70182335", "0.70182335", "0.70131624", "0.6916831", "0.6902558", "0.6866156", "0.68592364", "0.68461555", "0.6827404", "0.68255574", "0.681...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 at every specified step
def e_63(K0do, KMvS, YPaw): tspZ = qIxc.lr * KMvS ** YPaw for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj, qIxc, YPaw):\n tspZ = qIxc.lr * 0.1 ** (qtWj // YPaw)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ", "def e_63(K0do, tspZ, YPaw, qIxc):\n tspZ = tspZ * 0.95 ** (YPaw // qIxc.lr_decay_every)\n print('current learning rate: {:.6f}'.format(tspZ))\n Lwm5 = K0do.para...
[ "0.76771075", "0.7676736", "0.7549009", "0.7542777", "0.75322485", "0.7501413", "0.7474216", "0.7464822", "0.74627334", "0.7447572", "0.74462754", "0.74462754", "0.74231374", "0.74231374", "0.74188375", "0.74147916", "0.73997957", "0.7390569", "0.7386777", "0.7375202", "0.736...
0.7350159
22
class constructor that creates the layers attributes for fc_block
def FIMM(YKHO, ySSZ, oNEO, lo24): super(nclm, YKHO).__init__() YKHO.dense = ZylS.keras.layers.Dense(ySSZ, use_bias=False, kernel_regularizer=ZylS.keras.regularizers.l2(l=oNEO)) YKHO.batch_norm = ZylS.keras.layers.BatchNormalization()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, **B2fa):\n P8oC.Layer.__init__(YKHO, **B2fa)\n YKHO._group = YKHO.spec['group']\n YKHO._conv_args = dict(YKHO.spec)\n YKHO._conv_args['name'] = YKHO.spec['name'] + '_sub'\n del YKHO._conv_args['group']\n YKHO._bottom_sub = [P8oC.Blob() for bGrB in range(YKHO._group)]\n YKHO._top...
[ "0.7007447", "0.7000033", "0.6898863", "0.6715587", "0.66981447", "0.6684075", "0.66690004", "0.6645492", "0.66444635", "0.6621342", "0.66101295", "0.6539464", "0.65268224", "0.648005", "0.6467482", "0.6453752", "0.6450583", "0.64445084", "0.63873464", "0.6372524", "0.6314705...
0.69783986
2
class constructor that creates the layers attributes for fully connected model
def FIMM(YKHO, C3ST, ySSZ, oNEO, lo24, DHcC, qR49): super(TFrw, YKHO).__init__() YKHO.model_name = None YKHO.model = C3ST YKHO.checkpoint_dir = '../Saved_Models/' + qR49 + '_' + 'best_models/' YKHO.checkpoint_path = None YKHO.block_1 = nclm(ySSZ[0], oNEO[0], lo24[0]) YKHO.block_2 = nclm(ySSZ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, fhcK):\n YKHO.layers = fhcK", "def FIMM(YKHO, Zt8E, dIM5, yB6h=None, NCJH=None, prGP=None):\n assert len(Zt8E) > 1, 'At least one input layer and one output layer is needed'\n uPrp = IT1r.getSizeOfWeightVector(Zt8E) * dIM5\n if yB6h is None:\n if NCJH is None:\n NCJH ...
[ "0.73490006", "0.70959204", "0.7080801", "0.70626026", "0.7043414", "0.70004934", "0.6997669", "0.6987128", "0.6958773", "0.68995047", "0.6890252", "0.68599576", "0.6845717", "0.68412167", "0.68173575", "0.67875355", "0.67715716", "0.6763323", "0.6721514", "0.6714114", "0.671...
0.0
-1
Returns sum of residuals squared for all data points.
def P618(YKHO): p9YG = oyIN.sum((YKHO.eta_model - YKHO.eta_exp) ** 2.0) return p9YG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VmMl(YKHO):\n return sum((WKvO ** 2 for WKvO in YKHO.data))", "def dF78(YKHO):\n return oyIN.dot((YKHO.demeaned ** 2).T, YKHO.weights)", "def ed_d(YKHO) -> eQHC.NDArray[oyIN.float64]:\n return YKHO.data - YKHO.theory", "def lGZJ(YKHO):\n return (YKHO.resid * YKHO.resid).sum(0)", "def ZfiW(Y...
[ "0.7260284", "0.7104986", "0.70855296", "0.69749516", "0.6850986", "0.6681976", "0.6676204", "0.6665276", "0.6624208", "0.6594622", "0.6576358", "0.6576358", "0.65492713", "0.6489132", "0.6483268", "0.64332604", "0.63574106", "0.6350852", "0.63213056", "0.6260967", "0.6221822...
0.0
-1
Write the given input texts and (optionally) labels to the file pointed to by ``input_path``.
def TeA7(YKHO, EcVT: List[str], Crrw: Optional[Union[List[str], List[List[str]]]], O38l: Path): jQ3Z = rLdf.DataFrame({'Text': EcVT}) if Crrw is not None: jQ3Z['Label'] = Crrw jQ3Z.to_csv(O38l, sep='\t', index=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TeA7(YKHO, EcVT: List[str], Crrw: Optional[List[List[str]]], O38l: Path):\n jQ3Z = rLdf.DataFrame({'Text': EcVT})\n if Crrw is not None:\n jQ3Z['Label'] = Crrw\n jQ3Z.to_csv(O38l, sep='\\t', index=False)", "def O56d(YKHO, Crrw: List[str], Tq8L: Path):\n Tq8L.write_text(Ctmv(Crrw))", "def...
[ "0.6839173", "0.6668793", "0.6668793", "0.635559", "0.6217582", "0.6160168", "0.577795", "0.576962", "0.5678321", "0.55674744", "0.5549849", "0.5538833", "0.55052674", "0.54890496", "0.5488365", "0.5448648", "0.543804", "0.542459", "0.53980565", "0.5387054", "0.5384514", "0...
0.684504
0
Returns True if s is a valid numerical string; it returns False otherwise. A valid numerical string is one with only digits and commas, and commas only appear at every three digits. In addition, a valid string only starts with a 0 if it has exactly one character. Pay close attention to the precondition, as it will help...
def vELI(KCHu): if len(KCHu) > 7: return False elif '0' in KCHu and len(KCHu) == 1: return True elif KCHu[0] == '0' and len(KCHu) > 1: return False elif O2CP.isalpha(KCHu): return False elif len(KCHu) > 3 and O2CP.count_str(KCHu, ',') == 0: return False el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tIyV(KCHu):\n try:\n float(KCHu)\n return True\n except ValueError:\n return False", "def ye72(YKHO, KCHu):\n try:\n float(KCHu.replace(' ', ''))\n return True\n except ValueError:\n return False", "def tIyV(YKHO, KCHu):\n try:\n jbXL = float(...
[ "0.7657637", "0.76408625", "0.7621778", "0.75774306", "0.75520647", "0.75507283", "0.7514705", "0.7499453", "0.7474801", "0.7470164", "0.7470164", "0.7470164", "0.7439354", "0.74321604", "0.7375063", "0.7337118", "0.7260752", "0.7191079", "0.71780807", "0.70994633", "0.707099...
0.75005597
7
Reads each item type in ItemTypes.txt and builds a dictionary of ITypeNode objects keyed by itype code.
def wJSa(UsCK): ZqIG = {} lhgi = {} for Lojf in UsCK: Wxnj = Lojf['Code'] if not Wxnj: continue if Wxnj in ZqIG: raise KeyError(f"Duplicate itype code '{Wxnj}' found") Q6kx = ZqIG[Wxnj] = CYDz(Wxnj) a4Rn = lhgi[Wxnj] = [] if Lojf['Equiv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lvvd(YKHO):\n SnBA = {}\n for r8hN in ZbWC.finditer('TYPE (.*) = (.*);', YKHO.data):\n QNO6, lQJ5 = r8hN.groups()\n if lQJ5 in YKHO.SIMPLETYPES:\n SnBA[QNO6] = lQJ5\n else:\n SnBA[QNO6] = '#' + lQJ5\n return SnBA", "def xIjp(YKHO):\n SnBA = {}\n for r...
[ "0.6651521", "0.61460525", "0.5919965", "0.5877177", "0.5852831", "0.5707935", "0.56872416", "0.55287296", "0.55161977", "0.54911435", "0.54846144", "0.5477757", "0.5425206", "0.5380841", "0.53064394", "0.5279703", "0.52651685", "0.52185273", "0.5201807", "0.5188381", "0.5183...
0.7792256
0
Given code, returns a sequence of Tokens.
def wr3U(Wxnj): s2mk = [] eOtH = _J2v() for Z9rn in Wxnj: VgeL = Z9rn in vIwR.whitespace WGaL = Z9rn == '&' QoTA = Z9rn == '|' U2l0 = Z9rn == '(' mX4X = Z9rn == ')' INj9 = Z9rn == '!' QS4E = not (VgeL or WGaL or QoTA or U2l0 or mX4X) tpts = WGa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VixA(YKHO, Wxnj):\n Wxnj = ZbWC.sub('([^A-Za-z0-9_])', ' \\\\1 ', Wxnj)\n Wxnj = ZbWC.sub('([a-z])([A-Z])', '\\\\1 \\\\2', Wxnj)\n Wxnj = ZbWC.sub('\\\\s+', ' ', Wxnj)\n Wxnj = Wxnj.replace('\"', '`')\n Wxnj = Wxnj.replace(\"'\", '`')\n s2mk = [a1PO for a1PO in Wxnj.split(' ') if a1PO]\n r...
[ "0.7328229", "0.716463", "0.7139289", "0.7052186", "0.6861001", "0.6613604", "0.6529043", "0.64652187", "0.64321333", "0.6351658", "0.6172038", "0.6071586", "0.60517174", "0.6022528", "0.59974664", "0.5972395", "0.5971003", "0.5965546", "0.5963339", "0.5941569", "0.59030056",...
0.74279535
0
Sets up the testing environment
def Baw8(Emd4): i_Aq._Base__nb_objects = 0 Emd4.b1 = i_Aq() Emd4.b2 = i_Aq() Emd4.b3 = i_Aq(22) Emd4.b4 = i_Aq(2.2) Emd4.b5 = i_Aq('two') Emd4.r1 = x7Ls(10, 7, 2, 8) Emd4.r2 = x7Ls(2, 4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n G9jH.debug('setting up')", "def FCbF(YKHO):\n G9jH.debug('setting up')", "def FCbF(YKHO):\n YKHO.setup_beets()", "def HTzG(YKHO):\n pass", "def FCbF(YKHO) -> None:\n YKHO.helper = inme()\n YKHO.test_name = 'PYFUNCEBLE_TESTING'\n YKHO.t...
[ "0.84215105", "0.7873159", "0.7873159", "0.7567148", "0.7552537", "0.75011325", "0.74919206", "0.748369", "0.7463765", "0.7463765", "0.7421059", "0.74175394", "0.74058324", "0.7382671", "0.7381207", "0.73785275", "0.7347812", "0.732771", "0.7314868", "0.73102283", "0.7307878"...
0.0
-1
Tests if the JSON string representation is working
def m3jj(YKHO): cmPJ = YKHO.r1.to_dictionary() anz0 = i_Aq.to_json_string([cmPJ]) YKHO.assertTrue(type(cmPJ), dict) YKHO.assertTrue(type(anz0), str)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U8bG(vIwR):\n try:\n YEnM = qQXR.loads(vIwR)\n except ValueError:\n return False\n else:\n return qQXR.dumps(YEnM)", "def tOYP(vIwR):\n if len(vIwR) == 0:\n return False\n if vIwR[0] is not '{' and vIwR[0] is not '[':\n return False\n try:\n qQXR.lo...
[ "0.78802836", "0.77933025", "0.7716961", "0.7647663", "0.74915034", "0.7471144", "0.74005824", "0.7377683", "0.73771983", "0.73279905", "0.73137385", "0.73077095", "0.7301245", "0.7272826", "0.7266663", "0.72648877", "0.72640103", "0.7239499", "0.71751946", "0.7163578", "0.71...
0.66619647
47
Initialize cards, decks, players for game
def rfmQ(as5Q: int, CacS: bool, iGjw: str, OsYs: int) -> x1iM[mVZ4]: ka0a = sTex hXNa(ka0a) if iGjw: ZWCE = [iGjw] + ka0a[:OsYs - 1] else: ZWCE = ka0a[:OsYs] ex_6 = jtr5(as5Q) AsCp = n4m7(ex_6, len(ex_6) // OsYs) Bwa6: x1iM[mVZ4] = [] for oyg0, RZ8t in zip(ZWCE, AsCp): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j_Vi(YKHO):\n YKHO.deck.fill(104)\n YKHO.deck.shuffle()\n YKHO.field.initialize(YKHO.deck.draw(4))\n YKHO.field.sortField()\n for XP5J in YKHO.players:\n XP5J.bulls = 0\n XP5J.setHand(YKHO.deck.draw(10))", "def uIcm(YKHO):\n khoC = [F1Hz(fdMZ, iCfd) for iCfd in YKHO._suits for...
[ "0.7737999", "0.76391125", "0.7360046", "0.73220366", "0.7267212", "0.72554815", "0.72282505", "0.7198225", "0.7194274", "0.71909773", "0.717267", "0.7153211", "0.7148592", "0.70615304", "0.70490485", "0.7040893", "0.70309526", "0.70241433", "0.6956643", "0.6941083", "0.69406...
0.63367677
72
Escalation email will be visible if proctortrack is the proctoring provider, and there is an escalation email provided.
def PRg5(YKHO): YKHO.setup_course_with_proctoring_backend('proctortrack', 'foo@bar.com') YKHO.instructor.is_staff = True YKHO.instructor.save() YKHO._assert_escalation_email_available(True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yR5s(YKHO, K9up, usia):\n YKHO.setup_course_with_proctoring_backend(K9up, usia)\n YKHO.instructor.is_staff = True\n YKHO.instructor.save()\n YKHO._assert_escalation_email_available(False)", "def RC0X(Emd4, NVzx):\n return None", "def bsTh(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO,...
[ "0.6877295", "0.6027823", "0.58905375", "0.5660323", "0.5529722", "0.55204546", "0.5512198", "0.54833275", "0.5448476", "0.5448476", "0.53752875", "0.5364299", "0.53391045", "0.530013", "0.52827674", "0.5230018", "0.52141845", "0.5198444", "0.518013", "0.51746964", "0.5157717...
0.68462604
1
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: yT1k = await ajET.config_entries.async_unload_platforms(bTKY, jjXj) if yT1k: jZmz: E_mo = ajET.data[Sugg].pop(bTKY.entry_id) jZmz.listen_task.cancel() await jZmz.adapter.matter_client.disconnect() if bTKY.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.69729054", "0.688811", "0.6779906", "0.67475253", "0.6689114", "0.6657885", "0.66162664", "0.6603484", "0.65926456", "0.65596145", "0.6541213", "0.65076923", "0.65076923", "0.65076923", "0.65076923", "0.6497813", "0.6493226", "0.6486651", "0.6486651", "0.6486651", "0.64866...
0.55235124
97
Checks if two values are equal. The operation can be performed over values of any type.
def p6XU(UXsi, c163): if UXsi == None or c163 == None: return True if UXsi == None or c163 == None: return False return UXsi == c163
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JutH(YKHO, jzdc, Fg_i):\n return jzdc == Fg_i", "def TBl0(a1PO: Type, hQHm, jlSq) -> bool:\n return LEuw(a1PO, hQHm, jlSq) == tYeO", "def GsBJ(YKHO, wNuL, Mlb1):\n if YKHO.f_supports(wNuL) != YKHO.f_supports(Mlb1):\n return False\n if not YKHO.f_supports(wNuL) and (not YKHO.f_supports(Ml...
[ "0.81308645", "0.7778836", "0.77097344", "0.72997165", "0.7186668", "0.71511114", "0.71174115", "0.7062709", "0.705435", "0.70398104", "0.7029143", "0.69358814", "0.68888134", "0.68493885", "0.68417853", "0.6813937", "0.68024653", "0.67398846", "0.67343354", "0.6661131", "0.6...
0.75891024
3
Checks if two values are NOT equal. The operation can be performed over values of any type.
def T2bx(UXsi, c163): return not H7gC.are_equal(UXsi, c163)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, hkxX):\n YKHO = YKHO.__eq__(hkxX)\n return YKHO.__invert__()", "def BOI2(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i = ei4T.OpaqueObject(YKHO.bytes_b, aVkO.OpaqueDataType.NONE)\n YKHO.assertTrue(jzdc != Fg_i)\n YKHO.assertTrue(Fg_i != jzdc)", ...
[ "0.7947506", "0.7776476", "0.77183795", "0.7694495", "0.7588671", "0.74666506", "0.74621", "0.74038714", "0.7367064", "0.7334391", "0.73289937", "0.73280066", "0.7310195", "0.7301686", "0.7289725", "0.7287741", "0.7287741", "0.7287741", "0.7285617", "0.72851324", "0.72851324"...
0.8256167
0
Redirect user to homepage.
def VlQv(): return vKnz('/upload_file')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C_QL():\n if Oa1e.user:\n return vKnz(f'/user/{Oa1e.user.id}')\n else:\n return vKnz('/landing')", "def vja_():\n return vKnz('/users')", "def vja_():\n return vKnz(nKyW(tajT, _external=True))", "def C_QL():\n return vKnz('index.html')", "def C_QL():\n return vKnz('/post...
[ "0.85024", "0.79325074", "0.7915098", "0.78631073", "0.7602217", "0.7551001", "0.7411325", "0.7262429", "0.7262429", "0.7217574", "0.720093", "0.71057284", "0.7104039", "0.70794016", "0.7072314", "0.7011575", "0.6956946", "0.6940536", "0.69288236", "0.6921044", "0.6880167", ...
0.6972406
16
Sets the id of this ClusterNodeTypeExt.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jq5z(YKHO, Lnes):\n YKHO._node_id = Lnes", "def Lnes(YKHO, Lnes: int):\n YKHO._node_id = Lnes", "def Lnes(YKHO, Lnes):\n YKHO._node_id = Lnes", "def cWZK(YKHO, vaxa):\n if YKHO.cursor:\n YKHO.cursor.nodeId = vaxa", "def V_9M(YKHO, id):\n YKHO.__id = id", "def f6Qh(YKHO, Ty9i, ty...
[ "0.7051521", "0.6915476", "0.6738046", "0.641449", "0.6372802", "0.6310869", "0.6310869", "0.6310869", "0.6310869", "0.6310869", "0.6310869", "0.63044417", "0.63044417", "0.63044417", "0.63044417", "0.63044417", "0.63044417", "0.62787855", "0.6263974", "0.62579685", "0.618361...
0.0
-1
Sets the name of this ClusterNodeTypeExt.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AwDt(YKHO, BWXx: str):\n YKHO._properties['nodeName'] = BWXx", "def WZrJ(YKHO, mWFP):\n YKHO.stream.set_node_name(YKHO.node, mWFP)", "def oSgC(YKHO, mWFP):\n L3iJ.xmlNodeSetName(YKHO._o, mWFP)", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP\n YKHO.labels.change_name(mWFP)", "def WZrJ(YKHO, m...
[ "0.74600965", "0.738636", "0.68940526", "0.67724484", "0.6585441", "0.6585441", "0.6580282", "0.65797925", "0.65734583", "0.6568306", "0.6548846", "0.6548846", "0.6548846", "0.6548846", "0.6548846", "0.64733064", "0.64645076", "0.6446455", "0.64342356", "0.6425983", "0.642598...
0.0
-1
Sets the description of this ClusterNodeTypeExt.
def JBZA(YKHO, JBZA): YKHO._description = JBZA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBZA(YKHO, JBZA: ConfigNodePropertyString):\n YKHO._description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA", "def lc0P(YKHO, lc0P):\n YKHO._cluster_type = lc0P", "def AqxA(YKHO, JBZA):\n YKHO._description = JBZA", "d...
[ "0.62267756", "0.5760493", "0.5745829", "0.5738135", "0.57222444", "0.5673848", "0.5663078", "0.5645218", "0.55802816", "0.5547709", "0.55310875", "0.5493465", "0.5463977", "0.5454126", "0.5443208", "0.539936", "0.53808105", "0.53808105", "0.53808105", "0.53808105", "0.537310...
0.5423449
43
Sets the number_of_nodes of this ClusterNodeTypeExt.
def OtzW(YKHO, OtzW): YKHO._number_of_nodes = OtzW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kRap(YKHO, kRap):\n YKHO._node_count = kRap", "def w5cd(YKHO, FGW3):\n if FGW3 == 0:\n return\n YKHO._f.dimensions['num_nod_var'] = FGW3\n YKHO._f.create_variable('name_nod_var', ('num_nod_var', 'len_name'), dtype='|S1', **YKHO._comp_opts)\n for WFmf in range(FGW3):\n mWFP = 'val...
[ "0.7291631", "0.6504585", "0.6363424", "0.608234", "0.6053881", "0.60215235", "0.5928358", "0.5919301", "0.58629084", "0.58415383", "0.58327425", "0.5832642", "0.58317924", "0.58317924", "0.58317924", "0.58317924", "0.58317924", "0.58317924", "0.57976985", "0.5781155", "0.577...
0.80338645
0
Sets the cores_per_node of this ClusterNodeTypeExt.
def VBUz(YKHO, VBUz): YKHO._cores_per_node = VBUz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MUY4(YKHO, NAlt):\n YKHO.cores = NAlt\n return", "def mQN7(YKHO, Xcsh: int) -> None:\n if YKHO.batch:\n if YKHO.launcher in ['pbs', 'cobalt']:\n if hasattr(YKHO, 'batch_settings') and YKHO.batch_settings:\n if hasattr(YKHO.batch_settings, 'set_ncpus'):\n ...
[ "0.68911874", "0.6468362", "0.629136", "0.601545", "0.598136", "0.59321094", "0.5842676", "0.5802815", "0.5773071", "0.57560277", "0.5735677", "0.57267785", "0.5688703", "0.55844986", "0.55470073", "0.5494605", "0.5459274", "0.5454222", "0.53781134", "0.5355706", "0.53498286"...
0.87283945
0
Sets the projects of this ClusterNodeTypeExt.
def llaM(YKHO, llaM): YKHO._projects = llaM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def llaM(YKHO, llaM):\n if YKHO.local_vars_configuration.client_side_validation and llaM is not None and (not isinstance(llaM, int)):\n raise ValueError('Parameter `projects` must be an integer')\n YKHO._projects = llaM", "def sc4G(YKHO, sc4G):\n YKHO._num_projects = sc4G", "def ymUA(YKHO, AJSj...
[ "0.6651427", "0.6174502", "0.5456987", "0.5429296", "0.5398397", "0.5382199", "0.53765255", "0.5374092", "0.53731316", "0.5337573", "0.53000635", "0.52953625", "0.5290864", "0.5257576", "0.51513475", "0.51491076", "0.50772727", "0.50395334", "0.50132835", "0.5010245", "0.4987...
0.72606957
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, rgzj): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Refresh parcel information. For CM API versions without support for the REST endpoint, this will simply sleep.
def pkn4(YKHO): if YKHO.api_client.api_version < 'v16': bo34.warning('Detected API version without support for refreshParcelRepos (%s). Sleeping instead ...', YKHO.api_client.api_version) N5MO(30) else: return YKHO.api_client.refresh_parcel_repos()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HtAx(YKHO):\n _hkX = YKHO._cb.get_object(YKHO._build_api_request_uri())\n YKHO._info = _hkX\n YKHO._last_refresh_time = ITS7.time()\n return True", "def HtAx(YKHO):\n _hkX = YKHO._cb.get_object(YKHO._build_api_request_uri())\n YKHO._info = _hkX\n YKHO._last_refresh_time = ITS7.time()\n ...
[ "0.6602508", "0.6602508", "0.6191611", "0.6191611", "0.6191611", "0.61795735", "0.61657506", "0.61194515", "0.5994885", "0.5947069", "0.59129643", "0.59129643", "0.59129643", "0.59097993", "0.59094274", "0.5906419", "0.5882981", "0.5868612", "0.58388704", "0.58388704", "0.582...
0.71351945
0
Get a list of all services in the cluster.
def l9Uz(YKHO, c0yN, tTee='summary'): return YKHO.api_client.get_cluster_services(cluster_name=c0yN, view=tTee)['items']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ttkl(YKHO):\n return eWrP()", "def l9Uz(YKHO, c0yN, tTee='summary'):\n return YKHO._get(endpoint='{}/clusters/{}/services'.format(YKHO.api_version, c0yN), params={'view': tTee}).json()", "def n_Tu(YKHO):\n B373 = jjYN.all_service_names()\n for KCHu in B373:\n print(KCHu)\n print('#tot...
[ "0.7930092", "0.7710456", "0.7576366", "0.7547326", "0.74353623", "0.73736095", "0.7348278", "0.73317814", "0.7238655", "0.723498", "0.72269535", "0.7198663", "0.71666217", "0.70819306", "0.7049139", "0.7006544", "0.7004622", "0.69799525", "0.6965898", "0.692149", "0.6907456"...
0.7990671
0
This function adds all spots that a specific knight is threatening to it's correct 'boardThreat' list based on color. It also adds all possible moves of a knight to the correct color move list, either "blackMoves" or "whiteMoves."
def Tz7L(YKHO, qfpW, f2CB, NOIU): if qfpW == 'black': TTLn = YKHO.blackThreat else: TTLn = YKHO.whiteThreat LTZZ = [[1, 2], [1, -2], [-1, 2], [-1, -2], [2, 1], [-2, 1], [2, -1], [-2, -1]] g5J1 = [] for BZN_ in LTZZ: EUtV = f2CB + BZN_[0] Nlbv = NOIU + BZN_[1] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Byc5(YKHO, qfpW, f2CB, NOIU):\n if qfpW == 'black':\n TTLn = YKHO.blackThreat\n KsAQ = YKHO.whiteThreat\n else:\n TTLn = YKHO.whiteThreat\n KsAQ = YKHO.blackThreat\n g5J1 = []\n Zsot = [[1, 0], [0, 1], [-1, 0], [0, -1], [1, 1], [-1, 1], [-1, -1], [1, -1]]\n for XSoh i...
[ "0.7595879", "0.75084245", "0.74657094", "0.717769", "0.71558434", "0.7092006", "0.6876316", "0.67519677", "0.6491278", "0.643525", "0.63885033", "0.63552976", "0.62486285", "0.6217798", "0.6153114", "0.61202824", "0.60848093", "0.6067523", "0.60082424", "0.59673965", "0.5896...
0.78540707
0
This function adds all spots that a specific rook is threatening to it's correct 'boardThreat' list based on color. It also adds all possible moves of a rook to the correct color move list, either "blackMoves" or "whiteMoves."
def EB_d(YKHO, qfpW, f2CB, NOIU): if qfpW == 'black': TTLn = YKHO.blackThreat else: TTLn = YKHO.whiteThreat g5J1 = [] Zsot = [[1, 0], [0, 1], [-1, 0], [0, -1]] for XSoh in Zsot: QW17 = True EUtV = f2CB Nlbv = NOIU while QW17: EUtV = EUtV + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gcR7(YKHO, mJ0E, TTLn, qfpW, f2CB, NOIU):\n mZsw = []\n for BZN_ in mJ0E:\n if YKHO.pieces.piece_color(YKHO.board.squares[BZN_[0]][BZN_[1]]) == qfpW:\n mZsw.append((BZN_[0], BZN_[1]))\n continue\n mZsw.append((BZN_[0], BZN_[1]))\n if qfpW == 'black':\n ...
[ "0.74368006", "0.7140955", "0.70608765", "0.7001164", "0.69477445", "0.692461", "0.66382354", "0.6613016", "0.6513307", "0.64287746", "0.6416538", "0.63329566", "0.63019055", "0.61429566", "0.6114337", "0.6105798", "0.60194975", "0.5995588", "0.59851027", "0.5898062", "0.5875...
0.7662325
0
This function adds all spots that the queen is threatening to it's correct 'boardThreat' list based on color. It also adds all possible moves of the queen to the correct color move list, either "blackMoves" or "whiteMoves."
def RGwr(YKHO, qfpW, f2CB, NOIU): if qfpW == 'black': TTLn = YKHO.blackThreat else: TTLn = YKHO.whiteThreat g5J1 = [] Zsot = [[1, 0], [0, 1], [-1, 0], [0, -1], [1, 1], [-1, 1], [-1, -1], [1, -1]] for XSoh in Zsot: QW17 = True EUtV = f2CB Nlbv = NOIU wh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gcR7(YKHO, mJ0E, TTLn, qfpW, f2CB, NOIU):\n mZsw = []\n for BZN_ in mJ0E:\n if YKHO.pieces.piece_color(YKHO.board.squares[BZN_[0]][BZN_[1]]) == qfpW:\n mZsw.append((BZN_[0], BZN_[1]))\n continue\n mZsw.append((BZN_[0], BZN_[1]))\n if qfpW == 'black':\n ...
[ "0.72192377", "0.71610683", "0.7143938", "0.69613636", "0.69304377", "0.6914719", "0.667094", "0.66395825", "0.6487746", "0.6440213", "0.63892585", "0.6365279", "0.62765074", "0.62414324", "0.61076206", "0.6019843", "0.60192627", "0.5961828", "0.5900985", "0.5899532", "0.5894...
0.78746355
0
This function adds all spots that the king is threatening to it's correct 'boardThreat' list based on color. It also adds all possible moves of the king to the correct color move list, either "blackMoves" or "whiteMoves."
def Byc5(YKHO, qfpW, f2CB, NOIU): if qfpW == 'black': TTLn = YKHO.blackThreat KsAQ = YKHO.whiteThreat else: TTLn = YKHO.whiteThreat KsAQ = YKHO.blackThreat g5J1 = [] Zsot = [[1, 0], [0, 1], [-1, 0], [0, -1], [1, 1], [-1, 1], [-1, -1], [1, -1]] for XSoh in Zsot: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EB_d(YKHO, qfpW, f2CB, NOIU):\n if qfpW == 'black':\n TTLn = YKHO.blackThreat\n else:\n TTLn = YKHO.whiteThreat\n g5J1 = []\n Zsot = [[1, 0], [0, 1], [-1, 0], [0, -1]]\n for XSoh in Zsot:\n QW17 = True\n EUtV = f2CB\n Nlbv = NOIU\n while QW17:\n ...
[ "0.7548627", "0.7468794", "0.7364418", "0.7237601", "0.7223278", "0.71354675", "0.7062136", "0.67925566", "0.6791472", "0.66947573", "0.66032565", "0.6597939", "0.65907973", "0.6512205", "0.64479977", "0.64268255", "0.641909", "0.6271571", "0.6271571", "0.6271571", "0.6219263...
0.7776547
0
Checks the board to see if there's enough pieces left to win. Pawns can be promoted, so the presence of a pawn, queen, or rook automatically returns False. If there are fewer than 2 bishops or knights, there is insufficient material
def zdms(YKHO): cqUI = set() for rdlD in range(8): for fvDH in range(8): mrj1 = YKHO.board.squares[rdlD][fvDH] if mrj1 is None: continue if mrj1 == codf.W_PAWN or mrj1 == codf.B_PAWN or mrj1 == codf.W_QUEEN or (mrj1 == codf.B_QUEEN) or (mrj1 == codf.W_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gWWQ(YKHO):\n for rdlD in range(Sfqr.rows):\n for fvDH in range(Sfqr.columns):\n if YKHO.board[rdlD][fvDH] == 0:\n return False\n return True", "def oqoh(YKHO, iBIi, Bwa6):\n vVxE = iBIi.get_rows() * iBIi.get_cols()\n if vVxE < (6 - len(Bwa6)) * len(Bwa6):\n ...
[ "0.70218146", "0.701897", "0.688691", "0.6836031", "0.67937773", "0.67550886", "0.6714514", "0.668451", "0.6676716", "0.66749626", "0.66699153", "0.6668765", "0.66402584", "0.66359913", "0.6624023", "0.65983933", "0.6593862", "0.6556356", "0.654139", "0.6515111", "0.65092564"...
0.7671263
0
A list of lists of specified population size.
def zosN(YKHO, llPL): MYFY = [] while llPL > 0: MYFY.append(YKHO.newList()) llPL -= 1 return MYFY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bZYR(YKHO, zNig):\n return [YKHO._individual(YKHO._individualSize) for WKvO in range(zNig)]", "def j9Ba(vYLb, DJVm):\n CHNM = []\n for YRbF in range(vYLb):\n CHNM.append(A_L0(DJVm))\n return CHNM", "def n058(YKHO, zi3C: int, a6Jb: int, D5gV: str, vYLb: int, GPtr: dict) -> list:\n CHNM...
[ "0.73682225", "0.7036232", "0.7034892", "0.6946159", "0.6802049", "0.67953455", "0.6762997", "0.6670901", "0.6574322", "0.65217537", "0.64555347", "0.6442852", "0.6382579", "0.6368306", "0.6312928", "0.6294945", "0.6276508", "0.6261121", "0.62043214", "0.6160766", "0.61595553...
0.78915256
0
Converts one image/segmentation pair to tf example
def i_qi(UiEM, rTBW, H2v2, TVTK, vyBi, Fge7): return ZylS.train.Example(features=ZylS.train.Features(feature={'image/encoded': uvxA(UiEM), 'image/filename': uvxA(rTBW), 'image/height': ZjqL(H2v2), 'image/width': ZjqL(TVTK), 'image/label': ZjqL(vyBi), 'image/labeldesc': uvxA(Fge7)}))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sn_v(zjcD, nafB):\n IcBZ = open('temp.png', 'rb').read()\n PU1l = ZylS.train.Example(features=ZylS.train.Features(feature={'image/encoded': NhGy(IcBZ), 'past_traj': NhGy(zjcD.tostring()), 'future_traj': NhGy(nafB.tostring())}))\n return PU1l", "def wvEv(YKHO, lGjS):\n bySB = {'image/height': ZylS...
[ "0.68263364", "0.66693515", "0.65681934", "0.65612555", "0.6532016", "0.6515011", "0.6479861", "0.6446259", "0.6420206", "0.6377717", "0.6347156", "0.63123596", "0.6303564", "0.6270331", "0.6216305", "0.6214322", "0.6204555", "0.62044835", "0.6193902", "0.6149134", "0.6147339...
0.5987154
41
Test error handling of a file id that isn't in the OVF.
def J2Kl(YKHO): YKHO.command.package = YKHO.input_ovf YKHO.command.file_id = 'e-dad' YKHO.assertRaises(mFlu, YKHO.command.run)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4oZ(YKHO):\n Oa1e = Rkpw.open(YKHO.fid, '/')\n Oa1e._close()\n YKHO.assertRaises(ValueError, tRfH.get_file_id, Oa1e)", "def _ExT(YKHO):\n bD7m = gxEw('file', kwargs={'file_id': '3efcd977-184d-4124-acb4-d5c50cdffc79'})\n nPrm = {}\n YKHO.client.force_authenticate(user=YKHO.test_user_obj)\n ...
[ "0.669916", "0.6672789", "0.6394868", "0.6376446", "0.6274202", "0.6270715", "0.6269701", "0.6262398", "0.62503344", "0.61936915", "0.61718446", "0.6150319", "0.6146174", "0.6120413", "0.61140424", "0.6110164", "0.6104394", "0.6084722", "0.6047298", "0.59929436", "0.5987996",...
0.7053955
0
Return an instance of the Database class.
def JgjC(YKHO, _M9w): if _M9w == '__name__': return super(VTKb, YKHO).__name__ else: return YKHO.__getitem__(_M9w)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NCls(YKHO) -> FfT0:\n return YKHO.impl.db", "def NCls(YKHO):\n return VCLV(YKHO)", "def u_OD(YKHO, p9bx, KAOR=None):\n return YKHO._get(t8hf.Database, p9bx)", "def NMoC(Emd4) -> tdMG:\n if Emd4.database_instance is None:\n Emd4.database_instance = tdMG(GPtr.DATABASE_PATH, pragmas={'jou...
[ "0.8304717", "0.81511277", "0.8004637", "0.80035734", "0.7900513", "0.788104", "0.7828194", "0.77566564", "0.772421", "0.76034975", "0.75110656", "0.75013053", "0.74948174", "0.7488735", "0.74659693", "0.7462993", "0.74615395", "0.74420714", "0.74136084", "0.7413051", "0.7310...
0.0
-1
Return an instance of the Database class.
def OP2O(YKHO, _M9w): return FfT0(dbname=_M9w, connection=YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NCls(YKHO) -> FfT0:\n return YKHO.impl.db", "def NCls(YKHO):\n return VCLV(YKHO)", "def u_OD(YKHO, p9bx, KAOR=None):\n return YKHO._get(t8hf.Database, p9bx)", "def NMoC(Emd4) -> tdMG:\n if Emd4.database_instance is None:\n Emd4.database_instance = tdMG(GPtr.DATABASE_PATH, pragmas={'jou...
[ "0.8304717", "0.81511277", "0.8004637", "0.80035734", "0.7900513", "0.788104", "0.7828194", "0.77566564", "0.772421", "0.76034975", "0.75110656", "0.75013053", "0.74948174", "0.7488735", "0.74659693", "0.7462993", "0.74615395", "0.74420714", "0.74136084", "0.7413051", "0.7310...
0.7022874
37