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
Construct a new implicit grant server.
def FIMM(YKHO, vdpX, jVr7=None, qt26=None, JOQT=None, **B2fa): qpu4 = dDYR(vdpX) Snh4 = W3Ix(vdpX, jVr7, qt26, JOQT) h6nT.__init__(YKHO, default_response_type='token', response_types={'token': qpu4}, default_token_type=Snh4) acPn.__init__(YKHO, default_token='Bearer', token_types={'Bearer': Snh4}) W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Mjh5, t_Yv):\n YKHO.grant_id = Mjh5\n YKHO.grant_request = t_Yv\n YKHO.authorized_in_last_heartbeat = False\n YKHO.is_terminated = False", "def N5z6(YKHO):\n if not YKHO._server:\n if not YKHO._validator:\n yWBw = ['_clientgetter', '_tokengetter', '_tokensetter', '...
[ "0.60154116", "0.5707103", "0.53195417", "0.5281257", "0.5256331", "0.52210414", "0.5183546", "0.50955105", "0.50791466", "0.50622416", "0.5056522", "0.50258625", "0.50160986", "0.50024265", "0.49913722", "0.4987235", "0.49531513", "0.494872", "0.4934262", "0.49197745", "0.49...
0.0
-1
Create a new access token from a refresh_token. If valid and authorized, the authorization server issues an access token as described in `Section 5.1`_. If the request failed verification or is invalid, the authorization server returns an error response as described in `Section 5.2`_. The authorization server MAY issue...
def ziae(YKHO, QePW, ObCX): MOPg = {'Content-Type': 'application/json', 'Cache-Control': 'no-store', 'Pragma': 'no-cache'} try: RKD7.debug('Validating refresh token request, %r.', QePW) YKHO.validate_token_request(QePW) except UAju.OAuth2Error as e: return (MOPg, tTpl.json, tTpl.stat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vCbK(zb3C, Cxz5, GQl3):\n geh0 = G4JS.post('https://www.googleapis.com/oauth2/v4/token', data={'client_id': zb3C, 'client_secret': Cxz5, 'refresh_token': GQl3, 'grant_type': 'refresh_token'}, timeout=D2fq)\n geh0.raise_for_status()\n NT__ = geh0.json()['access_token']\n return NT__", "def uUrB(YK...
[ "0.7860284", "0.7780541", "0.76813483", "0.76061773", "0.76021034", "0.7563639", "0.7513974", "0.7488629", "0.74737686", "0.7429586", "0.7422809", "0.7419756", "0.7407486", "0.7404941", "0.7375673", "0.7370252", "0.7333134", "0.72382635", "0.7231126", "0.72213596", "0.7192679...
0.0
-1
Parse the JSON token response body into a dict. The authorization server issues an access token and optional refresh token, and constructs the response by adding the following parameters
def LTt4(TBsA, rrBf=None): NArs = qQXR.loads(TBsA) if 'scope' in NArs: NArs['scope'] = RHoy(NArs['scope']) if 'expires_in' in NArs: NArs['expires_at'] = ITS7.time() + int(NArs['expires_in']) zmj_(NArs, rrBf) return NArs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WQdJ(YKHO, QePW, geh0):\n hGN5 = qQXR.loads(geh0.content.decode('utf-8'))\n NT__ = hGN5['access_token']\n rrBf = hGN5['scope']\n OlUp = YKHO.get_adapter(QePW).get_access_token(NT__)\n CBIr = OlUp.user\n uC2a = rrBf.split(' ')\n ihMv = hGN5['expires_in']\n return (ihMv, uC2a, CBIr)", "...
[ "0.6572165", "0.6546664", "0.6445044", "0.64075583", "0.640343", "0.6393321", "0.6365285", "0.63245374", "0.62811327", "0.6277874", "0.62543106", "0.6231057", "0.6220421", "0.6206398", "0.6204077", "0.61962146", "0.61695695", "0.6168622", "0.61473125", "0.6119286", "0.6092189...
0.6687272
0
Determine if client authentication is required for current request.
def pMXa(YKHO, QePW, *qIxc, **B2fa): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EV4y(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'client_auth')", "def trIL(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'client_auth_enabled')", "def HzdA(YKHO, QePW, *qIxc, **B2fa):\n Jpbe = QePW.headers.get('Authorization', None)\n RKD7.debug('Authenticate client %r'...
[ "0.7891608", "0.753008", "0.7490107", "0.7313109", "0.6971307", "0.69710886", "0.69250184", "0.6760371", "0.6760371", "0.6726248", "0.6661599", "0.6659395", "0.66238546", "0.6621883", "0.66115695", "0.66086817", "0.66047055", "0.6599955", "0.64850456", "0.64824796", "0.647879...
0.8382694
0
Ensure client_id belong to a nonconfidential client. A nonconfidential client is one that is not required to authenticate through other means, such as using HTTP Basic. Note, while not strictly necessary it can often be very convenient to set request.client to the client object associated with the given client_id.
def RraJ(YKHO, zb3C, QePW, *qIxc, **B2fa): raise NotImplementedError('Subclasses must implement this method.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G5_2(YKHO, zb3C, QePW, *qIxc, **B2fa):\n RKD7.debug('Validate client %r', zb3C)\n x0hE = QePW.client or YKHO._clientgetter(zb3C)\n if x0hE:\n QePW.client = x0hE\n return True\n return False", "def G5_2(YKHO, zb3C, QePW, *qIxc, **B2fa):\n raise NotImplementedError('Subclasses must...
[ "0.7110499", "0.688151", "0.6575333", "0.6575333", "0.64498466", "0.6336442", "0.6281073", "0.6254396", "0.6186493", "0.61738294", "0.61738294", "0.6151388", "0.60702723", "0.6068187", "0.5994666", "0.59553105", "0.5947771", "0.5946485", "0.59441835", "0.5938243", "0.5877265"...
0.61589646
11
Get the list of scopes associated with the refresh token.
def iN8e(YKHO, GQl3, QePW, *qIxc, **B2fa): raise NotImplementedError('Subclasses must implement this method.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iN8e(YKHO, GQl3, QePW, *qIxc, **B2fa):\n RKD7.debug('Obtaining scope of refreshed token.')\n w2fL = xETD(GQl3)\n return w2fL.scopes", "def iN8e(YKHO, GQl3, QePW, *qIxc, **B2fa):\n RKD7.debug('Obtaining scope of refreshed token.')\n w2fL = YKHO._tokengetter(refresh_token=GQl3)\n return w2fL....
[ "0.78115237", "0.75567967", "0.7145542", "0.70450294", "0.70450294", "0.6975232", "0.69682217", "0.6762457", "0.6762457", "0.6762457", "0.6747155", "0.66967815", "0.66544574", "0.6651532", "0.65503836", "0.6544005", "0.645652", "0.64364207", "0.64238113", "0.63894624", "0.637...
0.6678537
12
Determine whether to rotate the refresh token. Default, yes. When access tokens are refreshed the old refresh token can be kept or replaced with a new one (rotated). Return True to rotate and and False for keeping original.
def xglF(YKHO, QePW): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GQl3(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'refresh_token')", "def nWsg(YKHO) -> bool:\n return YKHO.lifetime_remaining_seconds < _J2v.MIN_TOKEN_LIFETIME", "def MZxJ(YKHO):\n return YKHO._expiry_from_epoch is None or YKHO._expiry_from_epoch <= qcWV.datetime.now()", "def TkOi(Y...
[ "0.6972392", "0.6826476", "0.681934", "0.6788955", "0.65806717", "0.65216845", "0.63927054", "0.63888", "0.636468", "0.631593", "0.62685305", "0.61891484", "0.6163426", "0.6080157", "0.6029212", "0.6011683", "0.6004367", "0.59874976", "0.59379977", "0.5912861", "0.5908577", ...
0.7758476
0
Ensure the Bearer token is valid and authorized access to scopes.
def k4oq(YKHO, eOtH, uC2a, QePW): raise NotImplementedError('Subclasses must implement this method.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k4oq(YKHO, eOtH, uC2a, qv1X):\n if not eOtH:\n return False\n OlUp = QePW.registry['oauth.access_token']\n qFsV = OlUp.search(QePW.cr, LEyJ, [('token', '=', eOtH)])\n if not qFsV:\n return False\n qFsV = qFsV[0]\n NT__ = OlUp.browse(QePW.cr, LEyJ, qFsV)\n if NT__.is_valid(uC2...
[ "0.70633155", "0.70087504", "0.6964112", "0.6909271", "0.69034415", "0.6902085", "0.6863903", "0.6835045", "0.68327886", "0.68327886", "0.6795301", "0.677393", "0.6729293", "0.67015195", "0.66522825", "0.6635064", "0.6593334", "0.6582493", "0.65773916", "0.6496637", "0.637522...
0.73874927
0
Ensure client_id belong to a valid and active client. Note, while not strictly necessary it can often be very convenient to set request.client to the client object associated with the given client_id.
def G5_2(YKHO, zb3C, QePW, *qIxc, **B2fa): raise NotImplementedError('Subclasses must implement this method.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G5_2(YKHO, zb3C, QePW, *qIxc, **B2fa):\n RKD7.debug('Validate client %r', zb3C)\n x0hE = QePW.client or YKHO._clientgetter(zb3C)\n if x0hE:\n QePW.client = x0hE\n return True\n return False", "def RraJ(YKHO, zb3C, QePW, *qIxc, **B2fa):\n if zb3C is None:\n zb3C, bGrB = YKH...
[ "0.8209585", "0.6808968", "0.6667945", "0.66566235", "0.6603963", "0.6603963", "0.6512297", "0.65102404", "0.6403973", "0.6326551", "0.6318503", "0.6295418", "0.618647", "0.60928047", "0.6092682", "0.6092682", "0.6092682", "0.6092682", "0.6092682", "0.6092682", "0.6092682", ...
0.7365832
1
Ensure the client is authorized access to requested scopes.
def aT5x(YKHO, zb3C, uC2a, x0hE, QePW, *qIxc, **B2fa): raise NotImplementedError('Subclasses must implement this method.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mn47(YKHO, d4y1):\n vC92 = WzfH(key_id='test-id-with-multiple-scopes', secret_key='test-key-with-multiple-scopes', url=MEB4)\n geh0 = d4y1.get(MEB4(), content_type='', HTTP_AUTHORIZATION=vC92.request_header)\n assert geh0.status_code == jGRS.HTTP_200_OK\n assert geh0.json() == {'content': 'hawk-tes...
[ "0.75133586", "0.7325764", "0.70015836", "0.6948289", "0.69214773", "0.66135055", "0.65619427", "0.6523265", "0.6482811", "0.64202404", "0.6418112", "0.6406899", "0.6406369", "0.63742244", "0.6334108", "0.63212854", "0.621992", "0.6200599", "0.6178256", "0.6166804", "0.615571...
0.71429706
2
Ensure the username and password is valid. OBS! The validation should also set the user attribute of the request to a valid resource owner, i.e. request.user = username or similar. If not set you will be unable to associate a token with a user in the persistance method used (commonly, save_bearer_token).
def Gvth(YKHO, NtEF, jTXt, x0hE, QePW, *qIxc, **B2fa): raise NotImplementedError('Subclasses must implement this method.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gvth(YKHO, NtEF, jTXt, x0hE, QePW, *qIxc, **B2fa):\n RKD7.debug('Validating username %r and password %r', NtEF, jTXt)\n if YKHO._usergetter is not None:\n CBIr = YKHO._usergetter(NtEF, jTXt, x0hE, QePW, *qIxc, **B2fa)\n if CBIr:\n QePW.user = CBIr\n return True\n ...
[ "0.720152", "0.70149094", "0.6890183", "0.6830155", "0.6752807", "0.67463815", "0.67291886", "0.6722217", "0.67090803", "0.6700344", "0.6650738", "0.6624116", "0.66155046", "0.66109234", "0.6592222", "0.65695", "0.65695", "0.65451413", "0.653915", "0.6513014", "0.64949393", ...
0.6955285
2
Add an `MAC Access Authentication`_ signature to headers. Unlike OAuth 1, this HMAC signature does not require inclusion of the request payload/body, neither does it use a combination of client_secret and token_secret but rather a mac_key provided together with the access token. Currently two algorithms are supported, ...
def SNrO(eOtH, j8eK, H5ew, GjSa, bEAa=None, MOPg=None, TBsA=None, YBcr='', bpcF='hmac-sha-1', q1Gl=None, S3dM=0): GjSa = GjSa.upper() KcEq, bIwZ = BfDw.host_from_uri(j8eK) if bpcF.lower() == 'hmac-sha-1': MKlR = HBct.sha1 elif bpcF.lower() == 'hmac-sha-256': MKlR = HBct.sha256 else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EiH4(YKHO, j8eK, GjSa='GET', TBsA=None, MOPg=None, mYfv=Z4Pu, YBcr=None, **B2fa):\n MOPg = s2mk.prepare_mac_header(YKHO.access_token, j8eK, YKHO.mac_key, GjSa, headers=MOPg, body=TBsA, ext=YBcr, hash_algorithm=YKHO.mac_algorithm, **B2fa)\n return (j8eK, MOPg, TBsA)", "def QtBS(NKcE, bD7m, TBsA, dAhD):\...
[ "0.6910941", "0.62677336", "0.6165059", "0.6140727", "0.5741819", "0.5667463", "0.5596239", "0.559037", "0.5562632", "0.55573475", "0.55500394", "0.5535518", "0.5480346", "0.54764986", "0.5457605", "0.54574436", "0.5396388", "0.5384358", "0.53701484", "0.53603524", "0.5341894...
0.68458647
1
Add a `Bearer Token`_ to the request body. access_token=h480djs93hd8
def nw5W(eOtH, TBsA=''): return G6WW(TBsA, [('access_token', eOtH)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b4l2(YKHO, MOPg: Dict[str, Any]):\n bPqj = 'Bearer {}'.format(YKHO._api_token)\n MOPg.update({'Authorization': bPqj})", "def pAv2(YKHO, eOtH, qv1X, *qIxc, **B2fa):\n i0PJ = 60 * 60\n yxS0 = qcWV.now() + fCoM(seconds=i0PJ)\n OlUp = QePW.registry['oauth.access_token']\n NT__ = OlUp.create(QeP...
[ "0.70095307", "0.69065547", "0.67974365", "0.6795769", "0.67653596", "0.67269", "0.6704222", "0.66106695", "0.6604303", "0.6600454", "0.65216666", "0.645549", "0.6436009", "0.6382262", "0.63694227", "0.63651633", "0.63561916", "0.6353351", "0.623707", "0.6194058", "0.6180101"...
0.7266311
0
Generate a age parameter for MAC authentication draft 00.
def ov2A(q1Gl): g75m = qcWV.datetime.now() - q1Gl ZJe_ = (g75m.microseconds + (g75m.seconds + g75m.days * 24 * 3600) * 10 ** 6) / 10 ** 6 return wCZ0(ZJe_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DJSN(YKHO):\n assert YKHO._init_timestamp\n return YKHO._init_timestamp - ITS7.time()", "def kjC_(YKHO, ZJe_):\n pass", "def ZJe_(YKHO, BWXx):\n if type(BWXx) is not int:\n BWXx = int(BWXx)\n YKHO.__age = BWXx", "def N_N1(YKHO, WmM4=''):\n return YKHO.get_age_at(n5nd.TODAY, defau...
[ "0.60728705", "0.6065459", "0.60507745", "0.59262186", "0.5917589", "0.5917589", "0.5915797", "0.59103346", "0.59103346", "0.59103346", "0.58847344", "0.5882553", "0.5860883", "0.5840169", "0.57939893", "0.5787407", "0.5778135", "0.5755635", "0.57405007", "0.5739407", "0.5736...
0.61808556
0
Assert that we are only escaping unicode
def _QOv(YKHO): YKHO.assertRaises(ValueError, IguF, b'I am a string type. Not a unicode type.') YKHO.assertEqual(IguF('I am a unicode type.'), 'I%20am%20a%20unicode%20type.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fxoL(YKHO):\n YKHO.t(\"add 'Price \\\\u20A43'\")\n Wxnj, yvT9, XObx = YKHO.t('_get 1.description')\n YKHO.assertEqual('Price ₤3\\n', yvT9)", "def fDHD(YKHO):\n YKHO._msg('test', 'safe_unicode', first=True)\n from garage.text_utils import safe_unicode\n FUjE = '你好'\n aEqx = QMSQ(FUjE)\n ...
[ "0.74979925", "0.7495347", "0.72833836", "0.71510315", "0.7124721", "0.7102899", "0.70780575", "0.7071798", "0.7049568", "0.7032316", "0.7011592", "0.6957676", "0.6894292", "0.68514585", "0.684044", "0.6837905", "0.6786688", "0.6783252", "0.67492276", "0.6736419", "0.6727285"...
0.7885821
0
Generate an infinite sequence of prime numbers.
def slx7(): lWPh = {} vexM = 2 while True: if vexM not in lWPh: yield vexM lWPh[vexM * vexM] = [vexM] else: for XP5J in lWPh[vexM]: lWPh.setdefault(XP5J + vexM, []).append(XP5J) del lWPh[vexM] vexM += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DzI6():\n YRbF = 1\n while True:\n if T1qg(YRbF):\n yield YRbF\n YRbF += 1", "def mPb3() -> int:\n xd2Y = []\n for exwG in UHFx(start=2):\n if all(lambda tTpl: exwG % tTpl != 0, xd2Y):\n xd2Y.append(exwG)\n yield exwG", "def rPed():\n YRb...
[ "0.82207215", "0.7956827", "0.7741498", "0.77003324", "0.7683854", "0.76620984", "0.7604251", "0.7596093", "0.7581087", "0.7403047", "0.73933476", "0.73786706", "0.73487204", "0.7314217", "0.7289382", "0.7286642", "0.7281246", "0.72608936", "0.7252423", "0.72450584", "0.72288...
0.6517279
97
Standardize input `x` to a unit normal.
def MzFU(hksT, NXpY, WKvO): return (WKvO - hksT) / NXpY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WKvO):\n return WKvO / CkYf(WKvO)", "def NkkI(WKvO):\n return WKvO", "def NkkI(WKvO):\n return (WKvO - 1.5) / 1.5", "def rSLU(YKHO, WKvO):\n return (WKvO - YKHO.input_mean) / YKHO.input_std", "def NkkI(YKHO, WKvO):\n pass", "def OEry(YKHO, WKvO):\n if len(WKvO) > 1:\n WK...
[ "0.8056959", "0.7795347", "0.76930505", "0.766434", "0.76315814", "0.7596961", "0.75003016", "0.7488215", "0.74837494", "0.7454017", "0.7443072", "0.74416256", "0.74416256", "0.74065554", "0.7401698", "0.7376882", "0.73422664", "0.7336232", "0.7321932", "0.72838676", "0.72673...
0.0
-1
Extracts the AuthSub token from the URL. Used after the AuthSub redirect has sent the user to the 'next' page and appended the token to the URL. This function returns the value to be used in the Authorization header.
def S5_W(bD7m): eOtH = tcc2(bD7m) if eOtH: return 'AuthSub token=%s' % eOtH return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XI8V(bD7m, LcGB='auth_sub_scopes', VUMo=None):\n if isinstance(bD7m, (str, QMSQ)):\n bD7m = WhQ6.url.parse_url(bD7m)\n if 'token' not in bD7m.params:\n return None\n uC2a = []\n if LcGB in bD7m.params:\n uC2a = bD7m.params[LcGB].split(' ')\n ABmd = bD7m.params['token']\n ...
[ "0.7013183", "0.69494903", "0.66429365", "0.64483595", "0.64237845", "0.6340256", "0.6272057", "0.6271217", "0.6240851", "0.62115324", "0.6200678", "0.6200678", "0.61883044", "0.6182513", "0.6178185", "0.61722994", "0.61622316", "0.61552083", "0.61547565", "0.61525804", "0.61...
0.8287874
0
Extracts the AuthSub token from the URL. Returns the raw token value.
def tcc2(bD7m): if bD7m.find('?') > -1: o2VW = bD7m.split('?')[1] else: o2VW = bD7m for q2Xo in o2VW.split('&'): if q2Xo.startswith('token='): return q2Xo[6:] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S5_W(bD7m):\n eOtH = tcc2(bD7m)\n if eOtH:\n return 'AuthSub token=%s' % eOtH\n return None", "def XI8V(bD7m, LcGB='auth_sub_scopes', VUMo=None):\n if isinstance(bD7m, (str, QMSQ)):\n bD7m = WhQ6.url.parse_url(bD7m)\n if 'token' not in bD7m.params:\n return None\n uC2a ...
[ "0.836744", "0.74268144", "0.6750876", "0.67224336", "0.66156167", "0.66007817", "0.653008", "0.6507138", "0.6498093", "0.6482349", "0.64250594", "0.64196074", "0.64108276", "0.63938415", "0.63864255", "0.63748294", "0.6347141", "0.6315996", "0.6287771", "0.627063", "0.625170...
0.61664015
26
Tells the caller if the token authorizes access to the desired URL.
def hxOi(YKHO, bD7m): if isinstance(bD7m, (str, QMSQ)): bD7m = WhQ6.url.parse_url(bD7m) for rrBf in YKHO.scopes: if rrBf == WhQ6.token_store.SCOPE_ALL: return True if isinstance(rrBf, (str, QMSQ)): rrBf = WhQ6.url.parse_url(rrBf) if rrBf == bD7m: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZRY8(YKHO, j8eK, RZVq):\n return True", "def ZRY8(YKHO, j8eK, RZVq):\n return True", "def qHTF(YKHO, QePW, tTee):\n eOtH = QePW.META.get(rLF8, '')\n if not eOtH or not E4Up:\n return False\n rJDA = QGEN.objects.filter(token=eOtH, revoked=False).first()\n if rJDA is None:\n r...
[ "0.68674994", "0.68674994", "0.67997193", "0.67839205", "0.6729066", "0.6684185", "0.66639614", "0.66490906", "0.65886307", "0.65706444", "0.6570046", "0.6552448", "0.6513175", "0.64911366", "0.64061177", "0.6389572", "0.6387862", "0.6382037", "0.63640946", "0.6358901", "0.63...
0.0
-1
Generates the Authorization header. The form of the secure AuthSub Authorization header is
def yoU3(YKHO, GjSa, KXAh): E3oo = int(epAf.floor(ITS7.time())) bEAa = '%lu' % tuKI.randrange(1, 2 ** 64) nPrm = '%s %s %d %s' % (GjSa, str(KXAh), E3oo, bEAa) wEsz = gc2A.bytesToBase64(YKHO.rsa_key.hashAndSign(nPrm)) WBPg = {'Authorization': '%s"%s" data="%s" sig="%s" sigalg="rsa-sha1"' % (iuXp, YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OANM(YKHO, xqoZ):\n H2rA = YKHO.signer.algorithm + ' ' + 'Credential=' + YKHO.signer.getAccessKey() + '/' + YKHO.make_credential_scope(xqoZ) + ', ' + 'SignedHeaders=' + YKHO.make_signed_headers() + ', ' + 'Signature=' + YKHO.make_signature(xqoZ)\n xqoZ.set_header('Authorization', H2rA)", "def MkeE(YKHO...
[ "0.72407657", "0.71553403", "0.70715165", "0.7032431", "0.7029021", "0.69674844", "0.6963439", "0.68110543", "0.6810906", "0.6733358", "0.67251325", "0.6667758", "0.66670805", "0.66123927", "0.65858537", "0.65658987", "0.65494543", "0.6525646", "0.65173423", "0.6515483", "0.6...
0.7083085
2
Returns matrix of Cech differential in (n_dim, deg) restricted on component (nerve_face_index, nerve_spx_index).
def vXcM(YKHO, apZK, mghH, fyPU, gyau, g_3X): dMeG = (-1) ** mghH if mghH == 0: zXil = oyIN.zeros((YKHO.subcomplexes[apZK - 1][gyau][mghH], YKHO.subcomplexes[apZK][fyPU][mghH])) for vKPk in range(YKHO.subcomplexes[apZK][fyPU][0]): Gm1T = oyIN.argmax(YKHO.points_IN[apZK - 1][gyau] == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bpIN(YKHO):\n return YKHO.cartan_type().coxeter_matrix()", "def mR7h(YKHO, QuBN, apZK, mghH, fyPU):\n RuQR = YKHO.nerve_differentials[apZK + 1][fyPU]\n ncWx = oyIN.nonzero(RuQR)[0]\n FN88 = RuQR[ncWx]\n XLLv = QuBN.ref[ncWx[0]]\n for U9Cf in ncWx[1:]:\n XLLv = oyIN.append(XLLv, QuBN....
[ "0.57524467", "0.5725995", "0.56845504", "0.55447763", "0.5388428", "0.5349251", "0.5306041", "0.51983726", "0.5192774", "0.518601", "0.5168835", "0.5140474", "0.51397175", "0.51159614", "0.5088103", "0.50774115", "0.50731415", "0.5068931", "0.50633967", "0.50384945", "0.5027...
0.6337046
0
Dictionary factory used for sqlite3 to return rows as dictionaries, with column names as keys.
def Z0Ic(N1p7, rdlD): Csk6 = {} for or8S, fvDH in enumerate(N1p7.description): Csk6[fvDH[0]] = rdlD[or8S] return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ij1k(N1p7, rdlD):\n N7QT = {}\n for or8S, fvDH in enumerate(N1p7.description):\n N7QT[XgtL[fvDH[0]]] = rdlD[or8S]\n return N7QT", "def ij1k(NKcn, usx6):\n return [dict(zip(NKcn, rdlD)) for rdlD in usx6]", "def R2qV(N1p7, rdlD):\n Csk6 = {}\n for d6pt, fvDH in enumerate(N1p7.descrip...
[ "0.78919995", "0.78700894", "0.7863444", "0.7857509", "0.7735298", "0.7735298", "0.7735298", "0.77290744", "0.7728742", "0.76895934", "0.76593083", "0.76508886", "0.7649139", "0.74928457", "0.7489597", "0.7489597", "0.7469041", "0.728139", "0.7207913", "0.71270806", "0.703545...
0.7633813
13
Deserializes a json text file
def xPxk(YKHO, pmON: str): if not Hy7s.path.isfile(pmON): return try: with open(pmON, 'r') as wM3v: nPrm = qQXR.load(wM3v) YKHO.data = nPrm except ValueError as err: raise Exception("Couldn't load json from file") from XObx except IOError: print('File ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AW0(qaEx):\n with open(qaEx, 'r') as nUeQ:\n return qQXR.loads(nUeQ.read())", "def EBvf(Ux0P):\n with open(Ux0P, encoding='utf-8', mode='r') as eHNT:\n l5Ny = eHNT.read()\n return qQXR.loads(l5Ny)", "def XFkv(pmON):\n with T_Uj.open(pmON, 'r', 'utf8') as eHNT:\n z1Rg =...
[ "0.75182617", "0.74282384", "0.7406574", "0.7385658", "0.7382473", "0.7370914", "0.7370914", "0.7370914", "0.7370914", "0.7370914", "0.7370914", "0.7365973", "0.7365973", "0.7356134", "0.73089457", "0.73089457", "0.7301789", "0.726716", "0.72552", "0.7245005", "0.72369945", ...
0.0
-1
Load YAML/JSON configuration from a file
def bsaa(Nu1S, hDyy='dockerConfiguration'): with open(Nu1S, 'r') as hOYR: Ylbp = {} if Nu1S.endswith('.yaml'): Ylbp = eJb6.load(hOYR) elif Nu1S.endswith('.json') or Nu1S.endswith('json'): Ylbp = qQXR.load(hOYR) return Ylbp.get(hDyy, Ylbp) if hDyy else Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOvK(Ux0P):\n if not Hy7s.path.exists(Ux0P):\n raise Exception('{0} does not exist'.format(Ux0P))\n with open(Ux0P, 'r') as eHNT:\n GPtr = eJb6.safe_load(eHNT)\n rHm2 = GPtr.pop('extends', None)\n if rHm2:\n rHm2 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(Ux0P), rHm2)...
[ "0.80308807", "0.796692", "0.7933013", "0.7927055", "0.79133475", "0.7881135", "0.7834467", "0.7825105", "0.78063405", "0.7787622", "0.77857596", "0.778276", "0.77763116", "0.77763116", "0.7768383", "0.7768383", "0.77653486", "0.7765098", "0.77517545", "0.7745305", "0.7742352...
0.0
-1
Save calibration data to a YAML file. This function writes the new calibration information to a YAML file, if possible.
def bb9c(yuVB, Ux0P, FLlb): eHNT = None try: eHNT = open(Ux0P, 'w') except IOError as e: if tTpl.errno in set([d1hN.EACCES, d1hN.EPERM]): pass elif tTpl.errno in set([d1hN.ENOENT]): rMS4 = Ux0P.rfind('/') if rMS4 < 0: sQC5.logerr('f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(Emd4):\n Emd4._remove_old_datapoints()\n with open(Emd4._location, 'w') as Ga6V:\n nPrm = eJb6.dump(Emd4._data, default_flow_style=False)\n Ga6V.write(nPrm)", "def xkzz(YKHO):\n with open(YKHO.config_file, 'w') as Tfxt:\n eJb6.dump(YKHO, Tfxt)", "def kHBd(YKHO, VqRE):\n ...
[ "0.71870023", "0.6893176", "0.6888556", "0.68042845", "0.67084646", "0.6698619", "0.6648609", "0.6643715", "0.66288614", "0.65728486", "0.6493365", "0.648739", "0.64854336", "0.64701015", "0.64448136", "0.6413381", "0.6406871", "0.63881034", "0.63836926", "0.63607335", "0.634...
0.64870036
12
Returns a fully resolved copy of this experiment. A fully resolved experiment has all implicit paths put into place, and is constructed by calling update_for_command for each command.
def D68O(YKHO): tTpl = _qLf(YKHO) for bxcz in im04.all_commands(): tTpl.update_for_command(bxcz, tTpl) return tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xBs1(YKHO):\n return YKHO.__class__(YKHO._lib.realpath(YKHO.path))", "def BWoA(YKHO):\n if YKHO._closed:\n YKHO._raise_closed()\n if YKHO.is_absolute():\n return YKHO\n YEnM = YKHO._from_parts([Hy7s.getcwd()] + YKHO._parts, init=False)\n YEnM._init(template=YKHO)\n return YEnM...
[ "0.5898041", "0.526365", "0.52404", "0.51412547", "0.5086883", "0.5072093", "0.5019749", "0.5004428", "0.5004428", "0.4952562", "0.49157235", "0.49137127", "0.4906166", "0.4904649", "0.49028715", "0.4900559", "0.48986804", "0.48985642", "0.4883572", "0.48760933", "0.48654756"...
0.65657085
0
Specifies the backend to be used, e.g. rv.TF_DEEPLAB.
def qcth(YKHO, DDLl): Fg_i = YKHO._copy() Fg_i.config['backend'] = DDLl return Fg_i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sJza(dor7):\n if dor7 == 'tensorflow':\n ldqK.backend = Dekf()\n elif dor7 == 'jax':\n ldqK.backend = UOKe()\n elif dor7 == 'numpy':\n ldqK.backend = PQw4()\n else:\n raise ValueError('Unsupported backend: {}'.format(dor7))", "def sJza(DDLl='custom'):\n if DDLl not ...
[ "0.77955085", "0.7767338", "0.7523373", "0.75055504", "0.7097945", "0.70878047", "0.703551", "0.6934576", "0.69022876", "0.6833241", "0.6693906", "0.6636836", "0.6612812", "0.6610689", "0.65660393", "0.6526124", "0.6436134", "0.63635623", "0.63631827", "0.63528705", "0.634052...
0.6304441
24
Sets the evaluators to use for the evaluation stage.
def X2d6(YKHO, OvdG): Fg_i = YKHO._copy() Fg_i.config['evaluators'] = OvdG return Fg_i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OvdG(YKHO) -> x1iM[SIE7]:\n return YKHO._evaluators", "def k07C(YKHO):\n raise NotImplementedError('You must implement a set estimator method')", "def ETzd(YKHO, ETzd):\n YKHO._jobsetevalinputs = ETzd", "def CcMJ(YKHO):\n YKHO.nets.eval()", "def etVU(YKHO, EnAn):\n Wbxz = [YKHO._default_...
[ "0.6308011", "0.6272555", "0.5900332", "0.58634156", "0.5767864", "0.57552665", "0.57471764", "0.57229376", "0.5715635", "0.5703042", "0.5684713", "0.56713736", "0.56416416", "0.5636112", "0.56334287", "0.55162483", "0.5494064", "0.548955", "0.5419709", "0.5408277", "0.532738...
0.75598854
0
Build a list of date between start and end with interval of time_step_second
def GMU1(yKcO, Os4s, oXOd=15 * 60): _XdW = [yKcO] yKcO = CHC7.datetime.strptime(yKcO, '%Y-%m-%d %H:%M:%S') Os4s = CHC7.datetime.strptime(Os4s, '%Y-%m-%d %H:%M:%S') while yKcO < Os4s: yKcO = yKcO + CHC7.timedelta(0, oXOd) _XdW.append(CHC7.datetime.strftime(yKcO, '%Y-%m-%d %H:%M:%S')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GyUS(yKcO: datetime.date, JCyR: datetime.date, YPaw: int) -> x1iM[qcWV.date]:\n YdD0 = []\n if yKcO == JCyR:\n return [yKcO]\n elif YPaw == 0:\n return []\n elif YPaw < 0:\n if yKcO < JCyR:\n return []\n else:\n while yKcO >= JCyR:\n ...
[ "0.72507787", "0.71668875", "0.71637625", "0.7061239", "0.7061239", "0.6828715", "0.6750711", "0.67170167", "0.66949946", "0.66801393", "0.6629163", "0.6597147", "0.6550167", "0.6523271", "0.6504756", "0.65013015", "0.6430853", "0.6395645", "0.6367273", "0.6363491", "0.635275...
0.8069727
0
Select the farest value from 0 between the mean of the n greater values and the mean of the n lower values of array m Aggregate before the normalization
def _nDg(r8hN, exwG=1): qCv9 = oyIN.copy(r8hN) qCv9.sort() jzdc = oyIN.array([qCv9[:exwG].mean(), qCv9[-exwG:].mean()]) return max(jzdc, key=lambda WKvO: abs(WKvO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(qw7D):\n nGW3, UJrs = (oyIN.nanmin(qw7D), oyIN.nanmax(qw7D))\n return (qw7D - nGW3) / (UJrs - nGW3)", "def NkkI(qw7D):\n nGW3, UJrs = (qw7D[~oyIN.isnan(qw7D)].min(), qw7D[~oyIN.isnan(qw7D)].max())\n return (qw7D - nGW3) / (UJrs - nGW3)", "def jnV4(YKHO, qw7D, JCoA, kpLf):\n return oyIN....
[ "0.63712543", "0.62900054", "0.62382436", "0.6232635", "0.6230072", "0.61832255", "0.6170362", "0.6170207", "0.6137472", "0.61203396", "0.60860217", "0.6044899", "0.6039645", "0.60394543", "0.60199034", "0.60158515", "0.6004663", "0.59859526", "0.5968489", "0.59480613", "0.59...
0.6123226
9
Select the farest value from 0 between the greater value and the lower value of array m Aggregate before the normalization
def YHTr(r8hN): return _nDg(r8hN, n=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(YKHO, qw7D, JCoA, kpLf):\n return oyIN.subtract(qw7D, kpLf) / oyIN.subtract(JCoA, kpLf)", "def NkkI(ezWE, emQY=0, wCw7=1):\n IgAt = ezWE.min()\n ycBG = ezWE - IgAt\n IvWy = ycBG.ptp()\n YqTR = ycBG / IvWy\n aM8h = abs(wCw7 - emQY)\n YqTR *= aM8h\n YqTR += emQY\n return YqTR", ...
[ "0.669295", "0.6687111", "0.6580757", "0.6565911", "0.6557967", "0.65443885", "0.6477934", "0.6425099", "0.6390752", "0.6370017", "0.636428", "0.63605624", "0.63346934", "0.633092", "0.62961394", "0.6291222", "0.62909025", "0.62894255", "0.62627345", "0.62314105", "0.61950094...
0.59811246
42
Select the farest value from 0 between the mean of the 4 greater values and the mean of the 4 lower values of array m Aggregate before the normalization
def OrMl(r8hN): return _nDg(r8hN, n=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(qw7D):\n nGW3, UJrs = (oyIN.nanmin(qw7D), oyIN.nanmax(qw7D))\n return (qw7D - nGW3) / (UJrs - nGW3)", "def NkkI(qw7D):\n nGW3, UJrs = (qw7D[~oyIN.isnan(qw7D)].min(), qw7D[~oyIN.isnan(qw7D)].max())\n return (qw7D - nGW3) / (UJrs - nGW3)", "def jnV4(YKHO, qw7D, JCoA, kpLf):\n return oyIN....
[ "0.65181893", "0.6413186", "0.6405972", "0.6392575", "0.6365348", "0.636232", "0.6274193", "0.62614006", "0.62209666", "0.6216679", "0.6216471", "0.6202632", "0.6176336", "0.613112", "0.6126704", "0.61238956", "0.6089795", "0.60837346", "0.6077328", "0.60722095", "0.6069454",...
0.0
-1
Normalize the dataframe df by the max of absolute values of all the values of df
def Z7La(jQ3Z, c9El='Datetime'): Rb9k = jQ3Z.set_index(c9El).copy() Rb9k = (Rb9k / oyIN.max(oyIN.abs(Rb9k.values))).reset_index() return Rb9k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N8lJ(jQ3Z):\n return (jQ3Z - jQ3Z.min()) / (jQ3Z.max() - jQ3Z.min())", "def N8lJ(jQ3Z):\n return (jQ3Z - jQ3Z.min()) / (jQ3Z.max() - jQ3Z.min())", "def Q7gV(jQ3Z):\n nPrm = jQ3Z.apply(lambda WKvO: (WKvO - oyIN.min(WKvO)) / (oyIN.max(WKvO) - oyIN.min(WKvO)))\n return nPrm", "def hPij(ezWE):\n ...
[ "0.7549518", "0.7549518", "0.7171889", "0.7034132", "0.6965717", "0.6917341", "0.6914026", "0.6813278", "0.6780572", "0.67548114", "0.6714307", "0.6707915", "0.6703363", "0.66817707", "0.66661245", "0.66495615", "0.66332316", "0.66069007", "0.6597013", "0.6591694", "0.6588601...
0.67632425
9
Normalize the dataframe df per row over all the columns by the max of absolute values of each row values
def rH2K(jQ3Z, c9El='Datetime'): Rb9k = jQ3Z.set_index(c9El).copy() for YRbF in Rb9k.index.values: Rb9k.loc[YRbF] = Rb9k.loc[YRbF] / oyIN.max(oyIN.abs(Rb9k.loc[YRbF].values)) Rb9k = Rb9k.reset_index() return Rb9k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GgGB(jQ3Z, c9El='Datetime'):\n Rb9k = jQ3Z.set_index(c9El).copy()\n for YRbF in Rb9k.columns.values:\n Rb9k[YRbF] = Rb9k[YRbF] / oyIN.max(oyIN.abs(Rb9k[YRbF].values))\n Rb9k = Rb9k.reset_index()\n return Rb9k", "def N8lJ(jQ3Z):\n return (jQ3Z - jQ3Z.min()) / (jQ3Z.max() - jQ3Z.min())", ...
[ "0.73772746", "0.7226387", "0.7226387", "0.72149324", "0.7209041", "0.7001254", "0.6990782", "0.6961255", "0.6951319", "0.68535477", "0.6843625", "0.6823404", "0.66034514", "0.65903664", "0.652569", "0.65131474", "0.64766943", "0.64718026", "0.6419764", "0.64075387", "0.63968...
0.7113268
5
Normalize the dataframe df per column over all the rows by the max of absolute values of each column values
def GgGB(jQ3Z, c9El='Datetime'): Rb9k = jQ3Z.set_index(c9El).copy() for YRbF in Rb9k.columns.values: Rb9k[YRbF] = Rb9k[YRbF] / oyIN.max(oyIN.abs(Rb9k[YRbF].values)) Rb9k = Rb9k.reset_index() return Rb9k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N8lJ(jQ3Z):\n return (jQ3Z - jQ3Z.min()) / (jQ3Z.max() - jQ3Z.min())", "def N8lJ(jQ3Z):\n return (jQ3Z - jQ3Z.min()) / (jQ3Z.max() - jQ3Z.min())", "def NkkI(jQ3Z, WfCS):\n G_PE = jQ3Z.copy()\n for fvDH in WfCS:\n G_PE[fvDH] = (G_PE[fvDH] - oyIN.min(G_PE[fvDH])) / (oyIN.max(G_PE[fvDH]) - ...
[ "0.73026985", "0.73026985", "0.72797596", "0.7091563", "0.7066892", "0.7045762", "0.703925", "0.6974937", "0.6970058", "0.6967022", "0.69360256", "0.6830113", "0.6720308", "0.6699567", "0.6673777", "0.66439164", "0.65871656", "0.65125215", "0.6504022", "0.64958036", "0.647415...
0.72799844
2
Normalize the dataframe df per day over all the columns by the max of absolute values of each day values
def qzXQ(jQ3Z, c9El='Datetime'): Rb9k = jQ3Z.copy() GxdB = Rb9k[c9El].values.copy() Rb9k[c9El] = [YRbF[:10] for YRbF in Rb9k[c9El].values] Rb9k = Rb9k.set_index(c9El) for YRbF in sorted(list(set(Rb9k.index.tolist()))): Rb9k.loc[YRbF] = Rb9k.loc[YRbF] / oyIN.max(oyIN.abs(Rb9k.loc[YRbF].values...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hho7(jQ3Z, c9El='Datetime'):\n Rb9k = jQ3Z.copy()\n GxdB = Rb9k[c9El].values.copy()\n Rb9k[c9El] = [YRbF[:10] for YRbF in Rb9k[c9El].values]\n Rb9k = Rb9k.set_index(c9El)\n for YRbF in sorted(list(set(Rb9k.index.tolist()))):\n for r845 in Rb9k.columns.values:\n Rb9k.loc[YRbF, r...
[ "0.7213483", "0.7147628", "0.70494574", "0.69460595", "0.69368887", "0.683673", "0.683673", "0.67314184", "0.6708762", "0.6622715", "0.6502976", "0.64826477", "0.64730567", "0.64191383", "0.6364043", "0.63089323", "0.63084483", "0.6279634", "0.6249977", "0.6181088", "0.613841...
0.70259136
3
Normalize the dataframe df per column per day by the max of absolute values of each column and day values
def Hho7(jQ3Z, c9El='Datetime'): Rb9k = jQ3Z.copy() GxdB = Rb9k[c9El].values.copy() Rb9k[c9El] = [YRbF[:10] for YRbF in Rb9k[c9El].values] Rb9k = Rb9k.set_index(c9El) for YRbF in sorted(list(set(Rb9k.index.tolist()))): for r845 in Rb9k.columns.values: Rb9k.loc[YRbF, r845] = Rb9k....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GgGB(jQ3Z, c9El='Datetime'):\n Rb9k = jQ3Z.set_index(c9El).copy()\n for YRbF in Rb9k.columns.values:\n Rb9k[YRbF] = Rb9k[YRbF] / oyIN.max(oyIN.abs(Rb9k[YRbF].values))\n Rb9k = Rb9k.reset_index()\n return Rb9k", "def NkkI(jQ3Z, WfCS):\n G_PE = jQ3Z.copy()\n for fvDH in WfCS:\n ...
[ "0.70940804", "0.7026237", "0.69510615", "0.6922176", "0.6922176", "0.6862774", "0.6809304", "0.67710817", "0.67670834", "0.66237646", "0.6622705", "0.65669835", "0.6561922", "0.651459", "0.6424052", "0.64136046", "0.63977754", "0.63950586", "0.638272", "0.63216555", "0.63118...
0.7188623
0
Stack dataframe df with index index_
def K87_(jQ3Z, c9El='Datetime'): Rb9k = jQ3Z.copy() Rb9k = Rb9k.set_index('Datetime').stack().reset_index() Rb9k.columns = [c9El, 'stop_id', 'value'] return Rb9k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bre8(jQ3Z):\n MGj7 = jQ3Z.schema.add('idx', Bme3(), False)\n return jQ3Z.rdd.zipWithIndex().map(lambda vC9B: list(vC9B[0]) + [vC9B[1]]).toDF(MGj7)", "def KmZn(jQ3Z):\n jQ3Z['index'] = oyIN.arange(jQ3Z.shape[0]).astype(int)\n jQ3Z.loc[0, 'index'] = jQ3Z.shape[0]\n jQ3Z.loc[1, 'index'] = 2\n ...
[ "0.74114996", "0.66368914", "0.6545645", "0.6491282", "0.63848543", "0.6349631", "0.6207377", "0.6014538", "0.601052", "0.60012025", "0.59663415", "0.5960294", "0.59595335", "0.5949213", "0.59469736", "0.59442395", "0.59278846", "0.59206456", "0.5904633", "0.5870344", "0.5843...
0.79987043
0
Plots the distribution of values of a dataset.
def f52L(i0XC: str, SQP_: str, Pyrc: int): DCxh = g_pu(i0XC) nPrm = yLtf(path=i0XC) x6A0 = nPrm.targets() Zgof, cQOW = (len(x6A0), len(DCxh)) hkxX = [[x6A0[YRbF][r845] for YRbF in range(Zgof)] for r845 in range(cQOW)] Z9pM = Hy7s.path.basename(i0XC).replace('.csv', '') for YRbF in range(cQOW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYip(Es0b, leAC=''):\n QrM1.figure(figsize=(7, 5))\n uuEx.distplot(Es0b).set_title(leAC)\n QrM1.show()", "def f52L(dy_H):\n pass", "def UpTk(hkxX=None, U4ZT='', B2fa={}):\n LZpg, aNZO = QrM1.subplots()\n uuEx.distplot(hkxX, hist=True, ax=aNZO, **B2fa)\n aNZO.set_title('Distribution of ...
[ "0.746614", "0.7149848", "0.71339834", "0.7029542", "0.70016384", "0.6984443", "0.6977704", "0.6938547", "0.6910323", "0.6901109", "0.6892078", "0.68865854", "0.68812776", "0.68675816", "0.6855476", "0.6835701", "0.67908645", "0.6771503", "0.67663753", "0.6763431", "0.6757096...
0.6284647
65
Create minibatch tensors from list of tuples We override the default collate_fn, because mergging caption (including padding) is not supported by the default collate_fn.
def QxcP(nPrm: List[Tuple]) -> AzJI: nPrm.sort(key=lambda WKvO: len(WKvO[1]), reverse=True) Yw_3, UrTZ = zip(*nPrm) print(f'Image shape: {Yw_3.shape}') Yw_3 = ht2j.stack(Yw_3, 0) Fbjb = [len(Fd1k) for Fd1k in UrTZ] x6A0 = ht2j.zeros(len(UrTZ), max(Fbjb)).long() for YRbF, Fd1k in enumerate(Ur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QF96(GQ6X):\n if isinstance(GQ6X[0], ht2j.Tensor):\n GQ6X = STsQ(GQ6X)\n yvT9 = None\n return ht2j.stack(GQ6X, 0, out=yvT9)\n elif isinstance(GQ6X[0], list):\n NPTA = zip(*GQ6X)\n return [QF96(Fg_i) for Fg_i in NPTA]\n elif isinstance(GQ6X[0], tuple):\n NPTA =...
[ "0.6955278", "0.6775377", "0.65593594", "0.6503726", "0.65016186", "0.6364819", "0.6125305", "0.6121846", "0.60160476", "0.59478074", "0.5927918", "0.5896555", "0.58933884", "0.5800227", "0.5800227", "0.5800227", "0.57679945", "0.57679945", "0.575788", "0.57074904", "0.570125...
0.54598784
55
User Agent header from the login request.
def Lb1u(YKHO): return YKHO._user_agent.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lb1u(YKHO) -> str:\n return YKHO.headers['User-Agent']", "def Lb1u(YKHO):\n return YKHO.default_headers['User-Agent']", "def Lb1u(YKHO):\n return YKHO.default_headers['User-Agent']", "def Lb1u(YKHO):\n return YKHO.default_headers['User-Agent']", "def Lb1u(YKHO):\n return YKHO.default_hea...
[ "0.7595904", "0.7572492", "0.7572492", "0.7572492", "0.7572492", "0.7478987", "0.73364705", "0.7333029", "0.7192668", "0.71089524", "0.71089524", "0.71089524", "0.7093845", "0.70782214", "0.7013842", "0.69990873", "0.6990166", "0.6854803", "0.6834309", "0.68230337", "0.681326...
0.6848423
18
Render the simulation as video (async)
def YFkY(YKHO, DHvp=True, WbTE=None, kzqU=50, C8Km=100, bW5R=None, iMGt=None): if not YKHO.simfile: YKHO.write() NbEe = Hy7s.path.abspath(YKHO.simfile) if ' ' in NbEe: NbEe = '"%s"' % NbEe qIxc = ['-avi', '-exit', '-file', NbEe, '-contrast', kzqU, '-quality', C8Km] if bW5R is not Non...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def gen(yDvq, geh0):\n lGbz = V7ok.get_event_loop()\n while True:\n f4IJ = await yDvq.get_frame()\n await geh0.write(b'--frame\\r\\nContent-Type: image/jpeg\\r\\n\\r\\n' + f4IJ + b'\\r\\n')\n await V7ok.sleep(1.0 / kDnD)", "def _1tc(YKHO):\n YKHO.screen.fill(255)\n for Mkmy...
[ "0.68781435", "0.67244077", "0.66493154", "0.66180944", "0.66007864", "0.6534624", "0.6525553", "0.64147437", "0.6373778", "0.63703877", "0.6364788", "0.6273283", "0.6229573", "0.61656207", "0.61430514", "0.61398625", "0.61103487", "0.60995686", "0.60994273", "0.60994273", "0...
0.71495146
0
X, Y = numpy meshgrid u0 = initial temperature lambda b0 = initial temperature lambda
def MF4x(EcVT, fuBA, nFdY, _qjy): XP5J.plotIC(EcVT, fuBA, nFdY, _qjy, W=None, T=None, top=None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X9Ln(P6bq, rR8k, B5vK, zKWA):\n WSSx = P6bq.vector().array()\n St0l = rR8k.coordinates()\n jWa5 = B5vK + 1\n Q9GL = zKWA + 1\n WKvO = St0l[0:jWa5, 0]\n LVAh = St0l[0:-1:jWa5, 1]\n EcVT, fuBA = oyIN.meshgrid(WKvO, LVAh)\n FYKc = oyIN.zeros((Q9GL, jWa5), 'float')\n for YRbF in range(Q9...
[ "0.6250701", "0.5896169", "0.5894079", "0.585054", "0.5844292", "0.58401704", "0.5836222", "0.581194", "0.5785701", "0.5763819", "0.5757136", "0.5747379", "0.5746512", "0.57353646", "0.57321477", "0.57321477", "0.57021815", "0.56954384", "0.56924766", "0.56897527", "0.5664149...
0.0
-1
Returns the production cost of this item
def sSN_(YKHO): ye9d = {} if YKHO.d_production_cost: for QRFO in YKHO.d_production_cost: sSN_ = QRFO.cost() for ZfUD in sSN_: if ZfUD in ye9d: ye9d[ZfUD] += sSN_[ZfUD] / YKHO.d_quantity else: ye9d[ZfUD] = sSN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kXRY(YKHO):\n return YKHO.quantity * YKHO.value", "def sSN_(YKHO):\n return YKHO.price * YKHO.quantity", "def kXRY(YKHO):\n return YKHO.cost", "def sSN_(YKHO):\n return YKHO._cost * YKHO.priceFactor", "def ozc7(YKHO):\n return YKHO.cost", "def Rpt6(YKHO):\n return YKHO.item_cost[YKH...
[ "0.8177206", "0.7939723", "0.77918744", "0.77228826", "0.76841104", "0.7566388", "0.74646765", "0.7390915", "0.72961164", "0.72923744", "0.72759765", "0.72759765", "0.72133386", "0.7207349", "0.7165327", "0.71508396", "0.70929164", "0.7082306", "0.70637083", "0.7062313", "0.7...
0.7760256
3
Get a random window of a given shape from within an image
def S9lh(YKHO, IJYZ): rdlD = tuKI.randrange(IJYZ[0], YKHO.shape[1]) fvDH = tuKI.randrange(IJYZ[1], YKHO.shape[2]) return YKHO[:, rdlD - IJYZ[0]:rdlD, fvDH - IJYZ[1]:fvDH]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MPWH(LNo8, ROpF):\n C7Ls, XcU5 = LNo8.shape[:2]\n if ROpF[0] >= C7Ls or ROpF[1] >= XcU5:\n return None\n wBZN = oyIN.random.randint(0, XcU5 - ROpF[1])\n KDmU = oyIN.random.randint(0, C7Ls - ROpF[0])\n re6M = int(wBZN + ROpF[1])\n rwK9 = int(KDmU + ROpF[0])\n hDNs = LNo8[KDmU:rwK9, w...
[ "0.6756803", "0.6744224", "0.6444226", "0.6251601", "0.62386686", "0.6220328", "0.62081087", "0.6189968", "0.6034385", "0.60028225", "0.60018396", "0.59771675", "0.5968283", "0.59477884", "0.5942472", "0.5942031", "0.5942031", "0.5922547", "0.5905656", "0.5877974", "0.5873109...
0.6827443
0
Iterate over random windows of an image
def YHwD(YKHO, UHFx=64, IJYZ=(256, 256)): if UHFx is None: while True: yield YKHO.randwindow(IJYZ) else: for YRbF in range(UHFx): yield YKHO.randwindow(IJYZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m4Cv(LNo8, uGeH, LRVS=10000):\n VXjJ = _4b6.GeoImage(LNo8)\n t76p = []\n for YRbF, x_MU in enumerate(VXjJ.iter_window_random(win_size=uGeH, no_chips=LRVS)):\n t76p.append(x_MU)\n if YRbF == LRVS - 1:\n break\n return t76p", "def ZhPI(VXjJ, w_5H, iyYY, yMhW=(64, 64)):\n ...
[ "0.6615671", "0.63423604", "0.6270645", "0.6220325", "0.6198243", "0.618094", "0.61479074", "0.5997533", "0.59928805", "0.59826094", "0.5972441", "0.5961003", "0.59527373", "0.5941509", "0.59405524", "0.59394044", "0.5929716", "0.59115285", "0.589449", "0.58901685", "0.587535...
0.7231449
0
Iterate over a grid of windows of a specified shape covering an image. The image is divided into a grid of tiles of size window_shape. Each iteration returns the next window.
def bofq(YKHO, IJYZ, hVLt=True): M06Y, Lkng = (IJYZ[0], IJYZ[1]) Zk1M, GnqT, OIuO = YKHO.shape imsv, fR9w = divmod(GnqT, M06Y) UUuh, xlFA = divmod(OIuO, Lkng) VXjJ = YKHO if hVLt is True: C2f8, BURA = (GnqT, OIuO) if fR9w != 0: C2f8 = (imsv + 1) * M06Y if xlFA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YHwD(YKHO, UHFx=64, IJYZ=(256, 256)):\n if UHFx is None:\n while True:\n yield YKHO.randwindow(IJYZ)\n else:\n for YRbF in range(UHFx):\n yield YKHO.randwindow(IJYZ)", "def wHe8(LNo8: np.ndarray, kF7E: Dict[str, Any]) -> AzJI[jd6F[oyIN.ndarray, None, None], jd6F[AzJI...
[ "0.7474002", "0.7374453", "0.72345734", "0.7087972", "0.7060707", "0.69231176", "0.6875693", "0.6873359", "0.6865582", "0.6843794", "0.6819274", "0.67330194", "0.6628042", "0.66209495", "0.6598472", "0.6551028", "0.6491541", "0.64655876", "0.6401439", "0.6397019", "0.6397019"...
0.64794636
17
Rebin an array to a SMALLER array. Rescales the values such that each element in the output array is the mean of the elememts which it encloses in the input array (i.e., not the total). Similar to the IDL rebin function. Dimensions of binned array must be an integer factor of the input array.
def JTPE(jzdc, Oyij, tPLZ): yVhk, pQee = oyIN.asarray(jzdc.shape) / oyIN.array([Oyij, tPLZ]) return jzdc.reshape(Oyij, int(yVhk), tPLZ, int(pQee)).mean(1).mean(2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _zYY(ezWE, EZd9):\n ROpF = (EZd9[0], ezWE.shape[0] // EZd9[0], EZd9[1], ezWE.shape[1] // EZd9[1])\n return ezWE.reshape(ROpF).mean(axis=(-1, 1))", "def kGvP(YKHO, ezWE, tCVS=False):\n dhaj = YKHO.max_len\n if ezWE.shape[0] > dhaj:\n iPPn = ezWE.shape\n wOmD = ezWE.shape[0] % dhaj\n ...
[ "0.7767431", "0.76387525", "0.7482987", "0.7222544", "0.7199664", "0.69979566", "0.6943654", "0.6650678", "0.6622595", "0.6606944", "0.65200025", "0.6492411", "0.6482084", "0.6423806", "0.6364935", "0.6325338", "0.6307075", "0.63023627", "0.6302297", "0.6261022", "0.6245758",...
0.6827798
7
Gets the name of this StackRequest. name of the stack
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IWgC(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'stack_name')", "def IWgC(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'stack_name')", "def IWgC(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'stack_name')", "def mvah(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKH...
[ "0.81112844", "0.7979151", "0.78481746", "0.72381455", "0.7204594", "0.7204594", "0.7088795", "0.7036736", "0.68878084", "0.6842829", "0.68219346", "0.6769975", "0.6769975", "0.6769975", "0.6741151", "0.6741151", "0.67284447", "0.67226005", "0.67197967", "0.67197967", "0.6719...
0.0
-1
Gets the availability_zone of this StackRequest. availability zone of the stack
def TUUx(YKHO): return YKHO._availability_zone
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TUUx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'availability_zone')", "def TUUx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'availability_zone')", "def TUUx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'availability_zone')", "def TUUx(YKHO) -> h8nf[qe4Y.Input...
[ "0.7930407", "0.7930407", "0.7930407", "0.7930407", "0.7930407", "0.7930407", "0.7930407", "0.7921871", "0.78077507", "0.77381665", "0.77381665", "0.77381665", "0.77381665", "0.77381665", "0.7699161", "0.7699161", "0.7699161", "0.7699161", "0.75638425", "0.7005176", "0.677448...
0.80392003
0
Gets the region of this StackRequest. region of the stack
def zn0c(YKHO): return YKHO._region
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oMHX(YKHO):\n return YKHO.region", "def mSOp(YKHO):\n return YKHO._region", "def oMHX(YKHO):\n return YKHO.region", "def zn0c(YKHO):\n return YKHO.get('region')", "def zn0c(YKHO) -> int:\n return YKHO._region", "def zn0c(YKHO):\n return YKHO._sec._region", "def zn0c(YKHO) -> str:\...
[ "0.78354895", "0.78349555", "0.7826567", "0.7803041", "0.762805", "0.7599843", "0.74416023", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", "0.742277", ...
0.7800038
4
Gets the on_failure_action of this StackRequest. action on failure
def fvHH(YKHO): return YKHO._on_failure_action
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pkQH(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'ArmUpgradeFailureAction']]]:\n return qe4Y.get(YKHO, 'failure_action')", "def PdPk(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'on_error_action')", "def fvHH(YKHO, fvHH):\n BbPm = ['ROLLBACK', 'DO_NOTHING']\n if fvHH not in BbPm:\n raise ValueErro...
[ "0.7256993", "0.68972385", "0.6803786", "0.6617114", "0.6617114", "0.6617114", "0.653398", "0.653398", "0.653398", "0.6524503", "0.6437229", "0.62546194", "0.62546194", "0.62546194", "0.62546194", "0.61041564", "0.60957754", "0.6062671", "0.6059157", "0.5973625", "0.5960452",...
0.8072132
0
Gets the network_id of this StackRequest. network resource id for the stack
def OZUW(YKHO): return YKHO._network_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OZUW(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('network_id'), B2fa)", "def OZUW(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'network_id')", "def Wssv(YKHO, OZUW):\n return YKHO.regRead(kVB4.NETWORK_ID, OZUW)", "def OZUW(YKHO):\n return None", "def d6xO(Y...
[ "0.78277594", "0.76393485", "0.7291294", "0.71172166", "0.7097594", "0.6923281", "0.6817126", "0.680812", "0.67923903", "0.6776125", "0.6776125", "0.6765864", "0.6745479", "0.67019856", "0.661898", "0.661898", "0.661898", "0.661898", "0.6605273", "0.6605273", "0.65894663", ...
0.77303255
2
Sets the network_id of this StackRequest. network resource id for the stack
def OZUW(YKHO, OZUW): YKHO._network_id = OZUW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OZUW(YKHO, OZUW):\n YKHO._network_id = OZUW", "def ELu1(YKHO, OZUW, RVHh=None):\n if not PJVr(OZUW):\n OZUW = vLjN(OZUW)\n return YKHO.setWrite(kVB4.NETWORK_ID, OZUW, RVHh)", "def DGNs(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n ...
[ "0.7904285", "0.75837195", "0.6966892", "0.6559881", "0.6476183", "0.643767", "0.643767", "0.6430546", "0.6399732", "0.6359451", "0.62915546", "0.62638664", "0.62056386", "0.6079944", "0.6079944", "0.6024047", "0.6024047", "0.60226035", "0.6014802", "0.59871733", "0.58653235"...
0.7966781
0
Gets the ambari_version of this StackRequest. specific version of ambari
def ZGhR(YKHO): return YKHO._ambari_version
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ip20(YKHO):\n if not YKHO.started():\n return None\n jGRS, nPrm = YKHO._rest.get_request('objects', 'system1', ['version', 'name'])\n return nPrm['version']", "def DpZH(YKHO):\n _hkX, Aofo = YKHO.resource.get()\n return Aofo['version']", "def kaPv(YKHO):\n with YKHO._shared_resourc...
[ "0.6399525", "0.62706053", "0.626205", "0.6116208", "0.6109984", "0.6109984", "0.6109984", "0.6109984", "0.61086816", "0.60672504", "0.60672504", "0.60672504", "0.6031331", "0.5994755", "0.59877", "0.59480816", "0.5935399", "0.5917524", "0.59141797", "0.59083426", "0.5900773"...
0.7801775
0
Sets the ambari_version of this StackRequest. specific version of ambari
def ZGhR(YKHO, ZGhR): YKHO._ambari_version = ZGhR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZGhR(YKHO):\n return YKHO._ambari_version", "def wCVg(YKHO, QePW):\n YKHO.set('capacitiveVersion', QePW[0], QePW[1])", "def DpZH(YKHO, DpZH):\n YKHO.asset_query_params['version'] = DpZH\n return YKHO", "def dPFR(YKHO, DpZH):\n assert float(DpZH) in YKHO.supportedVersions, 'Version ' + str(...
[ "0.6505432", "0.6168675", "0.6053966", "0.59625477", "0.5890805", "0.58511895", "0.58437985", "0.58363605", "0.58069515", "0.5772332", "0.5769245", "0.5769245", "0.5769245", "0.5757125", "0.57431173", "0.57415956", "0.57405615", "0.57371175", "0.57189983", "0.570172", "0.5685...
0.8162192
0
Sets the hdp_version of this StackRequest. specific version of HDP
def tIVJ(YKHO, tIVJ): YKHO._hdp_version = tIVJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aJQd(YKHO, aJQd):\n YKHO._hxdp_version = aJQd", "def ey5s(YKHO, ey5s):\n YKHO._hcl_firmware_version = ey5s", "def tIVJ(YKHO):\n return YKHO._hdp_version", "def fvEA(YKHO):\n YKHO.h5.attrs['version'] = BtDU\n YKHO.h5.attrs['full_version_record'] = qQXR.dumps(YKHO.full_version_record)\n Y...
[ "0.77154213", "0.65911233", "0.6271228", "0.61763424", "0.6170144", "0.60546666", "0.6006757", "0.59570223", "0.59100085", "0.58871216", "0.58704925", "0.58114696", "0.578954", "0.57811826", "0.57150537", "0.57076", "0.569351", "0.569351", "0.569351", "0.56894803", "0.5687530...
0.8253346
0
Gets the custom_domain of this StackRequest. custom domain name for the nodes in the stack
def BN4g(YKHO): return YKHO._custom_domain
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OHiI(YKHO) -> str:\n return qe4Y.get(YKHO, 'custom_domain_name')", "def BN4g(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'custom_domain')", "def BN4g(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'custom_domain')", "def BN4g(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y...
[ "0.7509257", "0.7465584", "0.7465584", "0.7418619", "0.7400067", "0.7387659", "0.7387659", "0.7241963", "0.7241963", "0.70282", "0.6956468", "0.65501845", "0.64405257", "0.64405257", "0.6416726", "0.6372557", "0.6371756", "0.6300522", "0.6300522", "0.6300522", "0.6300522", ...
0.757007
0
Sets the hostgroup_name_as_hostname of this StackRequest. using the hostgroup names to create hostnames
def QizD(YKHO, QizD): YKHO._hostgroup_name_as_hostname = QizD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GT6L(YKHO, GT6L):\n YKHO._host_name = GT6L", "def GT6L(YKHO, GT6L):\n YKHO._host_name = GT6L", "def QizD(YKHO):\n return YKHO._hostgroup_name_as_hostname", "def GT6L(YKHO, LYH0):\n YKHO._host_name = LYH0", "def aNy3(YKHO, UTX6):\n ayrW = YKHO.raw_hostname(UTX6)\n YKHO.resolved['hostna...
[ "0.68250924", "0.68250924", "0.67956024", "0.67300147", "0.67180055", "0.6668396", "0.6608487", "0.6571758", "0.6547412", "0.6519351", "0.63550323", "0.6347913", "0.63468343", "0.6338808", "0.6337332", "0.6335646", "0.6335646", "0.6335646", "0.6335646", "0.6335646", "0.633564...
0.8602013
0
Gets the application_tags of this StackRequest. stack related application tags
def dMW9(YKHO): return YKHO._application_tags
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> h8nf[bdIy['outputs.ApplicationTag']]:\n return qe4Y.get(YKHO, 'tags')", "def UVeu(YKHO):\n nPrm = {u'cd': 101}\n nyyK, Ol8d = YKHO.send_api_call(nPrm)\n if nyyK:\n if Ol8d.get(u'cd') == 219:\n for P4t4 in Ol8d.get(u'applications'):\n if P4t4.get(u'na...
[ "0.7513402", "0.72735834", "0.6788507", "0.6715024", "0.67057854", "0.6694544", "0.6667039", "0.6653799", "0.6641904", "0.6641904", "0.6631495", "0.65590227", "0.64974403", "0.64974403", "0.64974403", "0.64974403", "0.64974403", "0.64974403", "0.64974403", "0.64974403", "0.64...
0.8494267
0
Gets the user_defined_tags of this StackRequest. stack related userdefined tags
def yaLR(YKHO): return YKHO._user_defined_tags
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TSQL(YKHO):\n return YKHO._defined_tags", "def yaLR(YKHO, yaLR):\n YKHO._user_defined_tags = yaLR", "def tHnG(YKHO):\n pass", "def dJ1p(YKHO) -> h8nf[bdIy['outputs.UserTag']]:\n return qe4Y.get(YKHO, 'tags')", "def GzSl(YKHO):\n return OhYN.objects.filter(owner=YKHO.owner).order_by('name...
[ "0.6628551", "0.6418968", "0.6312835", "0.6249693", "0.6042295", "0.5932435", "0.59105915", "0.5877378", "0.58763903", "0.5868988", "0.58632946", "0.58612514", "0.58524483", "0.5850244", "0.5815943", "0.58123285", "0.5803852", "0.57972187", "0.57807255", "0.577542", "0.577372...
0.77913207
0
Gets the default_tags of this StackRequest. stack related default tags
def bVS6(YKHO): return YKHO._default_tags
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def muwo(YKHO):\n return {mWFP: WmM4 for mWFP, CLyW, a4HF, WmM4 in YKHO.tags.values()}", "def bVS6(YKHO, bVS6):\n YKHO._default_tags = bVS6", "def Qwli(YKHO, **B2fa):\n B2fa.update(YKHO.default_tags)\n return A_Eo(**B2fa)", "def dJ1p(YKHO) -> h8nf[ImMB]:\n return qe4Y.get(YKHO, 'tags')", "de...
[ "0.68770504", "0.6686387", "0.6599787", "0.6248574", "0.6162755", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", "0.6159578", ...
0.81929606
0
Gets the orchestrator of this StackRequest. the details of the container orchestrator api to use
def pmct(YKHO): return YKHO._orchestrator
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmct(YKHO) -> str:\n return qe4Y.get(YKHO, 'orchestrator')", "def skba(YKHO) -> h8nf['outputs.ContainerServiceOrchestratorProfileResponse']:\n return qe4Y.get(YKHO, 'orchestrator_profile')", "def upNv(YKHO):\n return YKHO.requester", "def Dwl1(YKHO) -> str:\n return qe4Y.get(YKHO, 'orchestrat...
[ "0.7409834", "0.6161294", "0.6148243", "0.61079675", "0.58240145", "0.5770717", "0.57284397", "0.5707823", "0.56889373", "0.56744975", "0.56661034", "0.56602246", "0.55237806", "0.5522556", "0.5522116", "0.5522116", "0.55114174", "0.55114174", "0.55114174", "0.54974544", "0.5...
0.754354
0
Gets the instance_groups of this StackRequest. collection of instance groupst
def dsNz(YKHO): return YKHO._instance_groups
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bk0s(YKHO):\n return list(YKHO._groups)", "def moMn(YKHO):\n return YKHO._groups", "def moMn(YKHO):\n return YKHO._groups", "def moMn(YKHO):\n return YKHO._groups", "def moMn(YKHO):\n return YKHO._groups", "def moMn(YKHO):\n return YKHO._groups", "def moMn(YKHO):\n return YKHO....
[ "0.7517302", "0.746967", "0.746967", "0.74217147", "0.74217147", "0.74217147", "0.74217147", "0.74217147", "0.74217147", "0.74217147", "0.74217147", "0.73196256", "0.7307727", "0.72344244", "0.7204149", "0.7204149", "0.71860665", "0.7166055", "0.7164699", "0.71404684", "0.712...
0.8388564
0
Gets the failure_policy of this StackRequest. failure policy in case of failures
def Buzv(YKHO): return YKHO._failure_policy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Buzv(YKHO) -> h8nf['outputs.FunctionEventTriggerFailurePolicy']:\n return qe4Y.get(YKHO, 'failure_policy')", "def Buzv(YKHO) -> h8nf['outputs.FunctionEventTriggerFailurePolicy']:\n return qe4Y.get(YKHO, 'failure_policy')", "def Mxxp(YKHO) -> bdIy['outputs.GetFunctionEventTriggerFailurePolicyResult']:...
[ "0.76948196", "0.76948196", "0.66905516", "0.6505596", "0.6228559", "0.6203608", "0.6169238", "0.6155883", "0.5946266", "0.5920537", "0.5920537", "0.5920537", "0.5907724", "0.5881168", "0.5853447", "0.5853447", "0.58215", "0.5742479", "0.5742479", "0.5742479", "0.5742479", ...
0.8328822
0
Sets the credential of this StackRequest. stack related credential
def mwuo(YKHO, mwuo): YKHO._credential = mwuo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vt89(YKHO, **B2fa):\n YKHO._credentials = B2fa", "def mwuo(YKHO, mwuo):\n if mwuo is None:\n raise ValueError('Invalid value for `credential`, must not be `None`')\n YKHO._credential = mwuo", "def WcAq(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_detail...
[ "0.6697382", "0.66597646", "0.657129", "0.653581", "0.653581", "0.6389984", "0.63422436", "0.63422436", "0.6274449", "0.6240199", "0.61927813", "0.6182131", "0.6038214", "0.5979033", "0.5900373", "0.5900373", "0.58991915", "0.5876103", "0.58525896", "0.5850312", "0.58466536",...
0.74873734
0
Sets the stack_authentication of this StackRequest. stack related authentication
def uuM5(YKHO, uuM5): YKHO._stack_authentication = uuM5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuM5(YKHO):\n return YKHO._stack_authentication", "def KUn3(YKHO, KUn3):\n YKHO._authentication = KUn3", "def KUn3(YKHO, KUn3):\n YKHO._authentication = KUn3", "def XpZu(YKHO, E5BI):\n YKHO.stack = E5BI", "def O4RY(YKHO, E5BI):\n aD4X.yutani_set_stack(Z1y8._ptr, YKHO._ptr, E5BI)", "def...
[ "0.66721535", "0.65132344", "0.65132344", "0.61434025", "0.61297095", "0.5988968", "0.5905808", "0.58066875", "0.56951296", "0.5597739", "0.557535", "0.54460907", "0.5428244", "0.5386398", "0.5386398", "0.53668207", "0.53143454", "0.5269971", "0.5269971", "0.5268456", "0.5250...
0.87738806
0
Gets the network of this StackRequest. stack related network
def eVVj(YKHO): return YKHO._network
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVVj(YKHO):\n try:\n return YKHO._network\n except Exception as e:\n raise tTpl", "def eVVj(YKHO) -> 'outputs.NetworkInfoResponse':\n return qe4Y.get(YKHO, 'network')", "def pkHe(YKHO):\n if YKHO.network != None:\n return YKHO.network\n pB3N = {'secret': YKHO.secret}\n ...
[ "0.8219925", "0.7883468", "0.7874978", "0.77928555", "0.7769454", "0.76843315", "0.7646643", "0.7646643", "0.7646643", "0.7646643", "0.7646643", "0.7646643", "0.7578979", "0.75695753", "0.75695753", "0.7502236", "0.7502236", "0.7502236", "0.7502236", "0.7502236", "0.7502236",...
0.7929782
1
Gets the image_id of this StackRequest. virtual machine image id from ImageCatalog, machines of the cluster will be started from this image
def r8m5(YKHO): return YKHO._image_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XHP_(YKHO):\n Yw_3 = YKHO.ec2_client.describe_images(Filters=[YKHO._create_name_filter()])\n return Yw_3['Images'][0]['ImageId']", "def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')", "def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')", "def r8m5(YKHO) -> str:\n return qe...
[ "0.73089", "0.71402943", "0.71402943", "0.71402943", "0.71402943", "0.71402943", "0.71402943", "0.7032847", "0.69133633", "0.69133633", "0.69133633", "0.69133633", "0.69133633", "0.69133633", "0.6902918", "0.6797395", "0.67891693", "0.6697776", "0.667666", "0.6665081", "0.661...
0.7098213
7
Gets the os of this StackRequest. os type of the image, this property is only considered when no specific image id is provided
def Hy7s(YKHO): return YKHO._os
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _gAJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'os_image')", "def kUUT(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'os_type')", "def kUUT(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'os_type')", "def kUUT(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'os_type')", "def kUUT(YKHO)...
[ "0.76410115", "0.74213135", "0.74213135", "0.74213135", "0.74213135", "0.73374355", "0.73374355", "0.73374355", "0.73374355", "0.73374355", "0.73253775", "0.73253775", "0.73253775", "0.72154135", "0.72154135", "0.72154135", "0.7111891", "0.7059076", "0.69614494", "0.68082404", ...
0.6504462
26
Gets the flex_id of this StackRequest. id of the related flex subscription
def L7b2(YKHO): return YKHO._flex_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO) -> int:\n return YKHO._req_id", "def JuHa(YKHO) -> str:\n return qe4Y.get(YKHO, 'subscription_id')", "def JuHa(YKHO) -> str:\n return qe4Y.get(YKHO, 'subscription_id')", "def gTi_(YKHO):\n return YKHO._request_id", "def laSb(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'linked_su...
[ "0.60622656", "0.5859044", "0.5859044", "0.58422375", "0.5790978", "0.57851267", "0.5777998", "0.5777998", "0.5726187", "0.5705093", "0.5705093", "0.5705093", "0.5705093", "0.5705093", "0.5699895", "0.5671988", "0.5666875", "0.56365997", "0.56335217", "0.56335217", "0.5631175...
0.6911772
0
Gets the gateway_port of this StackRequest. port of the gateway secured proxy
def qyvE(YKHO): return YKHO._gateway_port
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kgrk(YKHO):\n return YKHO._proxy_port", "def mD0k(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'http_gateway_endpoint_port')", "def FHhJ(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'http_gateway_connection_port')", "def FHhJ(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(...
[ "0.7400213", "0.73408276", "0.729405", "0.7249778", "0.7045715", "0.6798218", "0.64560443", "0.64304394", "0.62810266", "0.6273864", "0.62401974", "0.62401974", "0.6239783", "0.6226344", "0.6212372", "0.6209449", "0.6180785", "0.616414", "0.61505383", "0.61490184", "0.6081642...
0.80682033
0
Gets the cluster_to_attach of this StackRequest. Shared service request
def sDa1(YKHO): return YKHO._cluster_to_attach
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVCf(YKHO):\n return YKHO._cluster_request", "def XSLZ(YKHO):\n return YKHO.cluster", "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n return YKHO._values.get('cluster')", "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n return YKHO._values.get('cluster')", "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n...
[ "0.72621334", "0.6014948", "0.5862525", "0.5862525", "0.5862525", "0.5862525", "0.58398366", "0.5682552", "0.5673042", "0.5673042", "0.5673042", "0.5673042", "0.5673042", "0.56337893", "0.55178297", "0.5516399", "0.5510982", "0.5506992", "0.54938024", "0.54620224", "0.5443621...
0.767173
0
Gets the credential_name of this StackRequest. credential resource name for the stack
def doWn(YKHO): return YKHO._credential_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ieDO(YKHO, Ubkq):\n return XfyW.get_credential_name(Ubkq.tenant_id, Ubkq.credential_name)", "def pPc7(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cloud_credential_name')", "def lWVC(YKHO) -> str:\n return qe4Y.get(YKHO, 'cloud_credential_secret_name')", "def lWVC(YKHO) -> h8nf[qe4Y....
[ "0.73711234", "0.7198225", "0.6783148", "0.6585245", "0.6581464", "0.6558951", "0.65368134", "0.65368134", "0.65018517", "0.6414345", "0.6312929", "0.62082773", "0.61939746", "0.60870343", "0.6007941", "0.598455", "0.5959331", "0.5958697", "0.5933206", "0.5927841", "0.5927841...
0.7959503
0
Sets the credential_name of this StackRequest. credential resource name for the stack
def doWn(YKHO, doWn): YKHO._credential_name = doWn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L345(YKHO, doWn):\n raise NotImplementedError()", "def doWn(YKHO):\n return YKHO._credential_name", "def LSf9(YKHO, LSf9):\n YKHO._credential_key = LSf9", "def LSf9(YKHO, LSf9):\n YKHO._credential_key = LSf9", "def mwuo(YKHO, mwuo):\n YKHO._credential = mwuo", "def mwuo(YKHO, mwuo):\n ...
[ "0.65982723", "0.6583407", "0.65058345", "0.65058345", "0.6159781", "0.6159781", "0.6105852", "0.6105852", "0.61011964", "0.60346323", "0.6021315", "0.5941713", "0.5871843", "0.5841393", "0.5788913", "0.57722026", "0.5734111", "0.5734111", "0.5734111", "0.5656228", "0.5565114...
0.82708883
0
Gets the cluster_request of this StackRequest. cluster request object on stack
def TVCf(YKHO): return YKHO._cluster_request
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tYC2(YKHO, QePW):\n return WJYt.Cluster()", "def hKn5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cluster')", "def hKn5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cluster')", "def hKn5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cluster')", "def hKn5(...
[ "0.70373785", "0.65797496", "0.65797496", "0.65797496", "0.65797496", "0.65797496", "0.6467003", "0.6467003", "0.6467003", "0.6467003", "0.6372895", "0.6320379", "0.6206429", "0.61902434", "0.61361647", "0.6080328", "0.60590196", "0.6007225", "0.5967059", "0.59424704", "0.591...
0.8373697
0
Sets the cluster_request of this StackRequest. cluster request object on stack
def TVCf(YKHO, TVCf): YKHO._cluster_request = TVCf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", ...
[ "0.6832926", "0.6832926", "0.6832926", "0.6832926", "0.6832926", "0.6832926", "0.6784913", "0.6784913", "0.6784913", "0.6784913", "0.6784913", "0.6460787", "0.6460687", "0.6286925", "0.6284666", "0.6283983", "0.6173363", "0.61687464", "0.6081577", "0.5955764", "0.5955764", ...
0.8607899
0
Gets the cloud_platform of this StackRequest. type of cloud provider
def RZX2(YKHO): return YKHO._cloud_platform
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oIJ3(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'SupportedCloudEnum']]]:\n return qe4Y.get(YKHO, 'supported_cloud')", "def a9EH(YKHO) -> zR2c:\n return YKHO.region.platform", "def a9EH(YKHO):\n return YKHO.product.platform", "def Z5O9(YKHO):\n return YKHO.__platform", "def uzfw(YKHO) -> h8nf[qe4Y.I...
[ "0.6654837", "0.6648431", "0.65275985", "0.6474524", "0.6463461", "0.6447993", "0.6429823", "0.63723916", "0.6338597", "0.63143086", "0.6276274", "0.6273735", "0.625554", "0.625554", "0.62389636", "0.609115", "0.6069508", "0.60008526", "0.59293693", "0.59293693", "0.58767635"...
0.8106331
0
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Generate a random color from a base hue and return an rgb value.
def w_xV(Hafq, ooqv): Z9rn = ooqv.generate(hue=Hafq, format_='rgb')[0] return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hvFE():\n Wr7U = 0.618033988749895\n MKlR = oyIN.random.rand()\n MKlR += Wr7U\n MKlR %= 1.0\n return h478.hsv_to_rgb(MKlR, 0.7, 0.9)", "def aVD8():\n return kywG(tuKI.randint(0, 359), 1, 1)", "def MP1f():\n Mkmy = lambda: ajWY(0, 255)\n return int('%02X%02X%02X' % (Mkmy(), Mkmy(), M...
[ "0.763358", "0.7554321", "0.74451", "0.74076563", "0.71375257", "0.71145475", "0.70651025", "0.7023876", "0.6997492", "0.694577", "0.69247776", "0.69080913", "0.6887994", "0.6842685", "0.68005645", "0.67956835", "0.67745435", "0.6753753", "0.67323893", "0.6726649", "0.6722877...
0.80257666
0
Generate placeholder variables to represent the input tensors.
def i6iB(Ep8u, L4bz, HLKd, xMux): Cqbr = ZylS.placeholder(ZylS.float32, shape=(Ep8u, L4bz, HLKd, HLKd, xMux)) eqSH = ZylS.placeholder(ZylS.int64, shape=Ep8u) return (Cqbr, eqSH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q5nL(YKHO):\n YKHO.input = ZylS.placeholder(ZylS.int32, [None, YKHO.mx_len], name='input')\n YKHO.input_lengths = ZylS.placeholder(ZylS.int32, [None], name='input_lens')\n YKHO.y = ZylS.placeholder(ZylS.float32, [None], name='labels')", "def q5nL(YKHO):\n WKvO = ZylS.placeholder('float', [None, Y...
[ "0.7646915", "0.73809695", "0.73648906", "0.7337271", "0.7274506", "0.72464985", "0.72429454", "0.72288287", "0.7217413", "0.72106206", "0.7145604", "0.7087753", "0.7082243", "0.7074439", "0.7067055", "0.7061897", "0.7061721", "0.7056677", "0.7050065", "0.70416874", "0.702407...
0.6818461
40
Unload a config entry.
async def async_unload_entry(ajET, PhL6): ajET.data[Sugg][InmG].pop(PhL6.entry_id) await ajET.config_entries.async_forward_entry_unload(PhL6, 'air_quality') return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()...
[ "0.70418245", "0.69975436", "0.69197667", "0.69024074", "0.6896897", "0.6870464", "0.6840728", "0.67911863", "0.67835754", "0.6782968", "0.6776581", "0.67688036", "0.6730449", "0.6713354", "0.67085946", "0.6664857", "0.66411716", "0.6637687", "0.66157013", "0.66074973", "0.65...
0.6737991
12
Return true if the stack is empty.
def A4KR(YKHO): return YKHO.stack == []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def A4K...
[ "0.92254657", "0.92254657", "0.9220955", "0.9220955", "0.9220955", "0.9217537", "0.91647243", "0.9163005", "0.91374016", "0.91374016", "0.9132873", "0.9043839", "0.9039966", "0.90347207", "0.9029685", "0.90203696", "0.901148", "0.9006745", "0.90039366", "0.89958185", "0.89718...
0.9129126
11
Modifies UserAgent header of the Scalyr client session. fragments String fragments to append (in order) to the standard user agent data
def YtzK(YKHO, NZzQ): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sHSF(YKHO, P4t4: str=None, DpZH: str=None) -> None:\n if P4t4 is not None:\n YKHO.app = P4t4\n if DpZH is not None:\n YKHO.version = DpZH\n YKHO.headers.update({'User-Agent': Lb1u(YKHO.app, YKHO.version)})\n bo34.debug(f'set user agent {YKHO.app} - {YKHO.version}')", "def w01z():\n ...
[ "0.6159027", "0.6089391", "0.60841376", "0.6054457", "0.5951704", "0.59063715", "0.5869929", "0.586489", "0.58065146", "0.57390994", "0.56822103", "0.56733024", "0.56652504", "0.5651117", "0.56220615", "0.5595713", "0.55462927", "0.55151516", "0.55046123", "0.5490273", "0.549...
0.7446093
0
Initializes the copying manager worker session.
def FIMM(YKHO, wOGa, MYSq, JkXK, lOIc=False): h2Ys.__init__(YKHO, name='copying manager worker session thread #%s' % JkXK, is_daemon=lOIc) YKHO._id = jKi7.text_type(JkXK) YKHO.__config = wOGa YKHO.__worker_config_entry = MYSq YKHO.__new_scalyr_client = None YKHO.__rate_limiter = None if YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.FTP_Settings = zqTQ(YKHO.get_id())\n YKHO.VERIFY_DIR = YKHO.FTP_Settings['VERIFY_DIR']\n YKHO.ARCHIVE_STAGING_DIR = YKHO.FTP_Settings['ARCHIVE_STAGING_DIR']\n YKHO.connection_pool = B5uh()\n YKHO.download_threads = []\n YKHO.upload_threads = []\n YKHO.delete_threads = []...
[ "0.6490084", "0.63825417", "0.6378103", "0.62744373", "0.62744373", "0.61678576", "0.6142105", "0.61238575", "0.61100197", "0.61049515", "0.6055449", "0.60154545", "0.6013085", "0.6009239", "0.5991332", "0.59754103", "0.59743166", "0.59701747", "0.59701747", "0.5959317", "0.5...
0.5751442
46
Return better readable string representation of AttribDict object.
def cu8Q(YKHO, _4u0=[], KavN=16): sjXb = list(YKHO.keys()) try: YRbF = max(max([len(G1Hx) for G1Hx in sjXb]), KavN) except ValueError: return '' mXDZ = '%%%ds: %%s' % YRbF NksA = [G1Hx for G1Hx in sjXb if G1Hx not in _4u0] sjXb = _4u0 + sorted(NksA) sdCG = [mXDZ % (G1Hx, YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mDw1(YKHO, uQIk, r_dY):\n KCHu = ''\n azoT = filter(lambda WKvO: WKvO not in r_dY, YKHO.realOrder)\n for jZEZ in azoT:\n BWXx = str(uQIk[jZEZ])\n if len(BWXx) > 70:\n BWXx = BWXx[:67] + '...'\n KCHu += str(jZEZ) + ' : ' + BWXx + '\\n'\n return KCHu", "def zAg0(YKHO...
[ "0.740501", "0.732068", "0.71496767", "0.7052244", "0.69853806", "0.6983205", "0.6956716", "0.69241077", "0.6916766", "0.6910577", "0.68937683", "0.6849983", "0.6827413", "0.6827413", "0.6827413", "0.682597", "0.6811211", "0.6785491", "0.67854625", "0.6768505", "0.67562664", ...
0.0
-1
Magnitude of a vector.
def CkYf(P6bq: list) -> float: return BJ1H(P6bq, P6bq) ** 0.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(iArr):\n return tk5Y(oyIN.sum(oyIN.square(iArr)), 2)", "def YXbZ(iArr):\n return epAf.sqrt(sum([iArr[YRbF] ** 2 for YRbF in range(len(iArr))]))", "def Y...
[ "0.82624227", "0.81715083", "0.81677544", "0.80228496", "0.78297466", "0.7810585", "0.7711514", "0.7477175", "0.74040645", "0.74009585", "0.7352886", "0.7318926", "0.72333515", "0.7116442", "0.7110847", "0.7068595", "0.7057945", "0.70499533", "0.7012254", "0.69201493", "0.690...
0.0
-1
Returns the mean of the private list to two decimal places.
def JBMS() -> float: return round(sum(Bjnn.values()) / len(Bjnn), 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(yv6U):\n return float(sum(yv6U) / len(yv6U))", "def JBMS(YKHO):\n return sum(YKHO.lst) / len(YKHO.lst)", "def DH4Z(YKHO):\n return float(YKHO.total) / YKHO.count", "def O5mg(YKHO):\n return sum(YKHO.__my_list) / len(YKHO.__my_list)", "def JBMS(YKHO):\n return 3.2", "def DH4Z(YKHO)...
[ "0.72663105", "0.72452813", "0.72238404", "0.7152226", "0.7065311", "0.7024143", "0.702125", "0.6988959", "0.69493693", "0.6876598", "0.6873135", "0.68685895", "0.68623734", "0.6853293", "0.6834984", "0.682828", "0.6796264", "0.6787287", "0.6775691", "0.67707175", "0.6769034"...
0.8007153
0
Returns file path for CSV file
def TOuV(): u9X4 = GkAb.home().joinpath('Desktop', 'fisher_orders') u9X4.mkdir(exist_ok=True) return u9X4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zw1l(YKHO):\n return Hy7s.path.join(Xg1E.get_data_directory(), 'csv', YKHO.get_csv_name())", "def Yb80(Ux0P):\n return Hy7s.path.join(Hy7s.getcwd(), 'csv', f'{Ux0P}.csv')", "def rBJ4(YKHO):\n return YKHO._get_attribute('csvFilePath')", "def pmON(YKHO) -> 'int':\n return czGp.my_csv_path(YKHO)...
[ "0.8386729", "0.74990624", "0.7479083", "0.74544054", "0.72192496", "0.71661127", "0.7073058", "0.70459914", "0.70056164", "0.69754636", "0.6905516", "0.689716", "0.686566", "0.6854978", "0.68442756", "0.6843994", "0.68422085", "0.68358713", "0.6801552", "0.67934424", "0.6792...
0.7818338
1
Test that the setup form is served.
async def test_show_set_form(ajET: HomeAssistant) -> None: with Po4F('pynina.baseApi.BaseAPI._makeRequest', wraps=QjdP): Aofo: dict[str, ImMB] = await ajET.config_entries.flow.async_init(Sugg, context={'source': L8nN}) assert Aofo['type'] == hLjp.FlowResultType.FORM assert Aofo['step_id'] ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XOuB(YKHO):\n pass", "def s1lJ(YKHO):\n pass", "def TMgz(YKHO):\n geh0 = YKHO.client.get(gxEw('userena_signup'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'userena/signup_form.html')\n YKHO.failUnless(isinstance(geh0.context['form'], H6V6.SignupForm))", "...
[ "0.7445526", "0.722289", "0.71782696", "0.7139649", "0.71378237", "0.7116909", "0.70639914", "0.7058352", "0.6990731", "0.68888944", "0.68618685", "0.6861324", "0.68563473", "0.6854235", "0.6846737", "0.6828049", "0.6809302", "0.6806621", "0.680279", "0.679701", "0.6792856", ...
0.67759466
21
Computes the moving window average in O(1) time.
def pvUl(YKHO, Qj8D: float) -> float: KXcj = len(YKHO._value_deque) if KXcj < YKHO._value_deque.maxlen: pass else: YKHO._neumaier_sum(-YKHO._value_deque[0]) YKHO._neumaier_sum(Qj8D) YKHO._value_deque.append(Qj8D) return (YKHO._sum + YKHO._correction) / YKHO._window_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(hkxX, KnxT):\n _mSQ = oyIN.repeat(1.0, KnxT) / KnxT\n return oyIN.convolve(hkxX, _mSQ, 'valid')", "def ZCKv(hkxX, KnxT):\n _mSQ = oyIN.repeat(1.0, KnxT) / KnxT\n return oyIN.convolve(hkxX, _mSQ, 'valid')", "def ZCKv(hkxX, KnxT):\n _mSQ = oyIN.repeat(1.0, KnxT) / KnxT\n return oyIN.co...
[ "0.8433703", "0.8433703", "0.8433703", "0.8433703", "0.83273506", "0.8237775", "0.82279253", "0.81299937", "0.7974409", "0.79308736", "0.792251", "0.78975713", "0.7892843", "0.78917855", "0.78889835", "0.78434426", "0.78114223", "0.7765634", "0.77567726", "0.77386594", "0.772...
0.0
-1
sets up the deck with 1, 2, or 4 suits
def nb33(YKHO): KCHu = 8 MKlR = 0 Z9rn = 0 Csk6 = 0 if YKHO.suits == 2: KCHu = 4 MKlR = 4 elif YKHO.suits == 4: KCHu = 2 MKlR = 2 Z9rn = 2 Csk6 = 2 for YRbF in Ni9Y(KCHu): for r845 in Ni9Y(1, 14): YKHO._deck.append([r845, 'S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def INl9(YKHO):\n for YRbF in range(1, 5):\n for r845 in range(0, 4):\n O0tG = F1Hz(YRbF, VAfN.SuitValues[r845])\n YKHO.deck.append(O0tG)", "def MXqO(YKHO):\n QHsX.cards = [('1', 1), ('2', 2), ('3', 3), ('4', 4), ('5', 5), ('6', 6), ('7', 7), ('8', 8), ('9', 9), ('10', 10), ('J...
[ "0.729262", "0.7207704", "0.7137148", "0.7043675", "0.6985259", "0.6930354", "0.69027257", "0.6829647", "0.6829473", "0.68220854", "0.6793593", "0.6776224", "0.67641443", "0.669163", "0.6683359", "0.66703165", "0.66673326", "0.6666068", "0.6644986", "0.6639843", "0.66227007",...
0.75996387
0
checks if there are no cards left on board
def kTv5(YKHO): yzQ0 = [True for YRbF in YKHO.board if len(YRbF) > 0] return not True in yzQ0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P58M(YKHO):\n for rdlD in YKHO.board:\n for Ty9i in rdlD:\n if Ty9i == YKHO.empty:\n return True\n return False", "def dcUY(YKHO):\n return len(YKHO.hand.cards) != 0", "def t3lW(YKHO):\n nxUH = 0\n for YRbF in range(0, YKHO.height):\n for r845 in range...
[ "0.753056", "0.74185944", "0.72717863", "0.7265819", "0.7131742", "0.6987422", "0.69820154", "0.6919824", "0.6913861", "0.68983495", "0.6898162", "0.68911636", "0.6860524", "0.685246", "0.6849603", "0.6846349", "0.6819516", "0.68073994", "0.6791899", "0.6784702", "0.6779622",...
0.0
-1
Return the number of leaves in tree rooted at game_state_node.
def W8Ya(dWp6): if not dWp6.children: return 1 else: sum = 0 for Z9rn in dWp6.children: sum += W8Ya(Z9rn) return sum
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ARYw(YKHO) -> int:\n if YKHO.root is None:\n return 0\n return YKHO.count_leaves_helper(YKHO.root)", "def I9EE(YKHO):\n return YKHO._.n_leaves", "def ARYw(YKHO):\n if YKHO.children:\n return sum((aUGN.count_leaves() for aUGN in YKHO.children))\n else:\n return 1", "def...
[ "0.7766626", "0.7551868", "0.754747", "0.75117695", "0.7478174", "0.74637693", "0.74532396", "0.7379615", "0.73578143", "0.72745407", "0.7215393", "0.7075279", "0.70304215", "0.7015549", "0.6986731", "0.698242", "0.69346154", "0.69283503", "0.69144666", "0.6828014", "0.676165...
0.82184774
0
Reset the `health_meter` (assign default hit points)
def pmuM(YKHO): YKHO.health_meter = YKHO.max_hp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DQpF(YKHO, ZnpV):\n if ZnpV == 0:\n YKHO.__del__()\n else:\n YKHO.health = ZnpV", "def SiRx(YKHO, YWSi):\n YWSi['reputation'] = 0\n YWSi['value'] = 0", "def SiRx(YKHO):\n YKHO.health = 100\n YKHO.gold = 100\n YKHO.inventory = []", "def BJld(YKHO):\n YKHO.bottle_left ...
[ "0.71064436", "0.6925765", "0.6847325", "0.6693022", "0.6667873", "0.6579177", "0.64844686", "0.64591527", "0.645493", "0.6430194", "0.642136", "0.6415076", "0.64109355", "0.64062405", "0.64015293", "0.64002436", "0.6397948", "0.63475984", "0.6321195", "0.63208264", "0.630639...
0.8555978
0
Function to update the given trie with the given word.
def s4EI(GIN8, ZOCz): TXkI = ZOCz for sZqf in GIN8: TXkI = TXkI.setdefault(sZqf, {}) TXkI.setdefault('', 0) TXkI[''] += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e0k0(YKHO, GIN8):\n jvSB = YKHO.root\n for YRbF in GIN8:\n if jvSB.dict.get(YRbF, None) == None:\n jvSB.dict[YRbF] = ep_x()\n else:\n Q6kx = jvSB.dict[YRbF]\n jvSB = jvSB.dict[YRbF]\n jvSB.isEOW = True", "def e0k0(YKHO, GIN8):\n lHJN = YKHO.root\n for...
[ "0.75047725", "0.7489293", "0.7454186", "0.7432089", "0.7428094", "0.7420965", "0.7398464", "0.73869395", "0.7376246", "0.7350404", "0.7345019", "0.7330682", "0.7314077", "0.7302372", "0.7285314", "0.72489595", "0.7247941", "0.72394973", "0.7236557", "0.72309846", "0.7226597"...
0.782141
0
Return the unit the value is expressed in.
def b82i(YKHO): return YKHO.var_units
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82...
[ "0.84137076", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.82590276", "0.8214496", "0.8192878", "0.8180198", "0.81793565", "0.8151953", "0.8094752", "0.8094752", "0.8061112", "0.80569327",...
0.78460014
65
Return information about the device.
def GWuV(YKHO): return {'identifiers': {('air_korea', 'quality')}, 'name': 'Air Korea', 'manufacturer': 'data.go.kr', 'model': 'air_korea_quality'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GWuV(YKHO):\n return YKHO._api.device_info", "def GWuV(YKHO):\n return YKHO._device.device_info", "def GWuV(YKHO):\n return YKHO._device.device_info()", "def GWuV(YKHO):\n return YKHO._device.device_info()", "def GWuV(YKHO):\n return YKHO._device_info", "def GWuV(YKHO):\n return YKH...
[ "0.8572815", "0.8566065", "0.85328305", "0.85328305", "0.83513755", "0.83513755", "0.83513755", "0.83513755", "0.83513755", "0.8320819", "0.82921207", "0.82813597", "0.8241963", "0.8228769", "0.8211288", "0.8194108", "0.8192648", "0.81679314", "0.8164508", "0.81555027", "0.81...
0.0
-1