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
Sets the harbor_version of this GeneralInfo.
def gsvy(YKHO, gsvy): YKHO._harbor_version = gsvy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gSe9(YKHO, DpZH):\n YKHO._config['submodule \".\"']['version'] = DpZH", "def fvEA(YKHO):\n YKHO.h5.attrs['version'] = BtDU\n YKHO.h5.attrs['full_version_record'] = qQXR.dumps(YKHO.full_version_record)\n YKHO.h5.attrs['package'] = 'sup3r'", "def R2V2(YKHO, DpZH):\n YKHO.version = DpZH", "de...
[ "0.7244535", "0.7025788", "0.679751", "0.67611885", "0.6704862", "0.6668948", "0.6668559", "0.66344833", "0.65931755", "0.65236115", "0.65236115", "0.64961255", "0.64458835", "0.6441627", "0.6441627", "0.6441627", "0.6441627", "0.6441627", "0.6441627", "0.6441627", "0.6441627...
0.8531918
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
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
Creates training history diagrams for a desired model that has already been trained.
def F83N(GPtr, ZGE9, vauY=None, ZsYj=None): eG0V = Hy7s.path.join(GPtr['data']['dir'], 'models', ZGE9) zXWf = [eHNT for eHNT in Hy7s.listdir(eG0V) if eHNT.startswith('train_history_ep')] HasU = oyIN.array([int(ZbWC.search('\\d+', eHNT.split('_')[2]).group()) for eHNT in zXWf], dtype=oyIN.int32) gTGp = z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UI24(YKHO):\n QzFq.create_history()", "def pTX5(FLXQ):\n print(FLXQ.history.keys())\n QrM1.plot(FLXQ.history['acc'])\n QrM1.plot(FLXQ.history['val_acc'])\n QrM1.title('model accuracy')\n QrM1.ylabel('accuracy')\n QrM1.xlabel('epoch')\n QrM1.legend(['train', 'test'], loc='upper left')\...
[ "0.66076714", "0.64860684", "0.64556533", "0.64544344", "0.63466674", "0.6322263", "0.6293792", "0.6249438", "0.6243416", "0.624164", "0.6223959", "0.6114542", "0.6103211", "0.608336", "0.6058484", "0.60449314", "0.6042919", "0.603441", "0.60088384", "0.6006295", "0.5992158",...
0.6818884
0
Generate a random string of fixed length
def TJC9(YKHO, FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3 + ' ,.') for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))", "def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]", "def BWvy(a__r):\n return Hy7s.urandom(a__r)", "def MiNk(u54L):\n gLiZ = vIwR.ascii...
[ "0.8746205", "0.87138057", "0.86634374", "0.8589632", "0.85856813", "0.85634226", "0.8558564", "0.85515654", "0.853908", "0.8533391", "0.8508468", "0.85072726", "0.84704083", "0.84667903", "0.84667903", "0.84504145", "0.8449424", "0.8428432", "0.84244287", "0.8423231", "0.841...
0.0
-1
Creates a new embed field with the given parameters.
def fwuD(Emd4, mWFP=..., bD7m=...): if mWFP is ...: mWFP = None else: mWFP = fUbN(mWFP) if bD7m is ...: bD7m = None else: bD7m = KSw8(bD7m) YKHO = object.__new__(Emd4) YKHO.name = mWFP YKHO.url = bD7m return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YvKs():\n ztt8 = True\n mWFP = 'orin'\n BWXx = 'okuu'\n Jyyj = KTu2(name=mWFP, value=BWXx, inline=ztt8)\n iaTU(Jyyj)\n Qg87.assert_eq(Jyyj.inline, ztt8)\n Qg87.assert_eq(Jyyj.name, mWFP)\n Qg87.assert_eq(Jyyj.value, BWXx)", "def ILOE(YKHO, **B2fa):\n YKHO.fields.append({'name': B2f...
[ "0.7254751", "0.72032565", "0.70704156", "0.70043796", "0.69858944", "0.653196", "0.6506506", "0.6372719", "0.6294851", "0.61934525", "0.6157541", "0.6131473", "0.59703946", "0.59532994", "0.594698", "0.59466356", "0.5940557", "0.59199834", "0.5891139", "0.5876", "0.5816279",...
0.0
-1
Log Errors caused by Updates.
def P1dF(JyK9, QdZT, P1dF): bo34.warning('Update "%s" caused error "%s"', QdZT, P1dF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)", "def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')", "def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err...
[ "0.7895395", "0.788395", "0.78750193", "0.7873498", "0.78300834", "0.7790406", "0.7785151", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.7781314", "0.77660847", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.774618...
0.75354177
83
Compute the distance of a point p to a line y=mx+b
def TLYV(YKHO, XP5J, zFiD): return epAf.fabs(zFiD.m * XP5J[0] - XP5J[1] + zFiD.b) / epAf.sqrt(1 + zFiD.m * zFiD.m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TCaN(YKHO, r8hN, LVAh, AU8u):\n jzdc = r8hN\n Fg_i = -1\n Z9rn = LVAh\n r8hN = AU8u[0]\n exwG = AU8u[1]\n return abs(jzdc * r8hN + Fg_i * exwG + Z9rn) / (jzdc ** 2 + Fg_i ** 2) ** 0.5", "def iPYf(YKHO, XP5J):\n return XP5J.distanceToLine(YKHO)", "def RRuS(r8hN, Fg_i, WKvO, LVAh):\n ...
[ "0.80340344", "0.75705624", "0.7506132", "0.7434732", "0.7314244", "0.72893476", "0.72008", "0.71918595", "0.7190622", "0.7178174", "0.7135556", "0.71129686", "0.7106464", "0.7096386", "0.70867187", "0.70682776", "0.7059152", "0.7042392", "0.6971849", "0.697127", "0.6961442",...
0.0
-1
Verify that the email is unique for user
def YBiq(YKHO): D3lj = YKHO.cleaned_data.get('email') if not D3lj: return D3lj DW23 = mv1M.objects.filter(email=D3lj).exclude(id=YKHO.instance.user.id) if len(DW23) > 0: raise H6V6.ValidationError(bGrB('That e-mail is already used.')) else: return D3lj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4p5(L03z, Jyyj):\n OSYx = Nc2H.query(Nc2H.email == Jyyj.data).count()\n if OSYx >= 1:\n raise ffF6.ValidationError('This Email is already in use. Please try another one.')", "def PC4t(D3lj):\n return not mv1M.objects.filter(email=D3lj).exists()", "def a4p5(L03z, Jyyj):\n OSYx = YJv1.obj...
[ "0.8090745", "0.8034169", "0.7999429", "0.79633003", "0.7944012", "0.79275405", "0.7849685", "0.7847315", "0.7832113", "0.7830583", "0.7820947", "0.78187203", "0.7816918", "0.781529", "0.78126216", "0.7805888", "0.78037214", "0.7801625", "0.78002375", "0.7799146", "0.77894855...
0.7239348
85
Returns a TFFeature of int64s.
def xJYY(hkxX): if not isinstance(hkxX, (tuple, list)): hkxX = [hkxX] return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=hkxX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OohW(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=rjpT.listify(BWXx)))", "def pOqB(hkxX):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=hkxX))", "def Oety(hkxX):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=list(hkxX)))", "def ...
[ "0.72672063", "0.7045259", "0.70384324", "0.69825697", "0.6930378", "0.6849915", "0.683336", "0.6796961", "0.6785067", "0.67849743", "0.6768229", "0.6768045", "0.6766184", "0.67615885", "0.6750155", "0.6748884", "0.6748884", "0.6748884", "0.67479914", "0.6739774", "0.6739774"...
0.66717666
63
Returns a TFFeature of bytes.
def r2_2(hkxX): return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=[hkxX]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XE7d(eHNT):\n return BlNT.pack('f', eHNT)", "def bytes(BWXx):\n return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=rjpT.listify(BWXx)))", "def NhGy(vhpA) -> ZylS.train.Feature:\n return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=[vhpA.numpy()]))", "def NhGy(BWXx):\n ...
[ "0.6626078", "0.6542266", "0.63718194", "0.6336037", "0.6330923", "0.6315992", "0.6296196", "0.6253901", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", ...
0.5999547
60
Check the username to see if a matching user exists, then if the PW is correct. Raises a purposefully vague message about either the username or password not matching.
def tg18(L03z, Jyyj): deVW = False CBIr = mv1M.objects.filter(username=L03z.username.data).first() if CBIr: deVW = k3yQ.check_password(plaintext_pw=Jyyj.data, hashed_pw=CBIr.password) if not deVW: raise sUXu('Invalid Username or Password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gvth(YKHO, NtEF, jTXt):\n N1p7 = YKHO.db.cursor()\n Pe9W = \"SELECT PASSWORD FROM USER WHERE Username = '%s'\" % NtEF\n N1p7 = YKHO.query(N1p7, Pe9W)[0]\n Aofo = N1p7.fetchone()\n if Aofo:\n return 0 if jTXt != Aofo[0] else 1\n else:\n return None", "def GfdN(YKHO):\n if YK...
[ "0.772972", "0.74540615", "0.74149126", "0.73719966", "0.7357147", "0.73220617", "0.72575563", "0.72388256", "0.7213377", "0.71538293", "0.71508735", "0.7149285", "0.7148707", "0.71170044", "0.7112934", "0.71003646", "0.7093881", "0.70905936", "0.7083138", "0.70527905", "0.70...
0.0
-1
Validate that the username does not already exist.
def Z3WL(L03z, Jyyj): if mv1M.objects.filter(username=Jyyj.data).first(): raise sUXu('Username already exists.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z3WL(YKHO, NtEF):\n CBIr = mv1M.query.filter_by(username=NtEF.data).first()\n if CBIr:\n raise sUXu('The username is used already')", "def Z3WL(YKHO, NtEF):\n CBIr = mv1M.query.filter_by(username=NtEF.data).first()\n if CBIr:\n raise sUXu('The username is already taken. Please try a...
[ "0.85138655", "0.84748924", "0.84161377", "0.8407884", "0.8383252", "0.83589834", "0.83342445", "0.8321965", "0.8234852", "0.81533897", "0.81481177", "0.81446266", "0.80594945", "0.8020071", "0.8003504", "0.7973019", "0.7957185", "0.7905001", "0.78967243", "0.78672206", "0.78...
0.8426674
2
Validate that the email does not already exist.
def Bt7w(L03z, Jyyj): if mv1M.objects.filter(email=Jyyj.data).first(): raise sUXu('Email is already in use.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bt7w(YKHO, D3lj):\n D3lj = mv1M.query.filter_by(email=D3lj.data).first()\n if D3lj:\n raise sUXu('The email is used already')", "def Bt7w(L03z, Jyyj):\n if CBIr.Account.Retrieve.find_account_by_email(L03z.email.data):\n raise sUXu('The email address already exists')", "def Bt7w(YKHO,...
[ "0.8359072", "0.82863647", "0.8216847", "0.8202566", "0.82019013", "0.81805587", "0.8140802", "0.81294435", "0.8043569", "0.80315727", "0.8001615", "0.8000544", "0.7985852", "0.7912395", "0.79107016", "0.79059476", "0.7900609", "0.7895124", "0.7895124", "0.7895124", "0.786859...
0.8030667
10
Recursively walk from root_dir, selecting files by the provided extensions, and return those files having a line matching expr.
def UUJ3(VN2L, jNha, *KHrI): Mkmy = Wklg(VN2L) for eHNT in TLtP(jNha, *KHrI): if hLSd(Mkmy, eHNT): yield eHNT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ernm(lsX7, jNha, S93R):\n uRGD = EjND.directories_in_dir_recursive(jNha, S93R)\n J3Ut = []\n for AGPF in uRGD:\n print('Searching ' + AGPF)\n iumf = EjND.files_in_dir(AGPF, S93R)\n for Ux0P in iumf:\n KQNA = fst7(lsX7, AGPF, Ux0P)\n if KQNA is not None:\n ...
[ "0.68115836", "0.6563208", "0.65052587", "0.6497346", "0.6486062", "0.64771557", "0.63709176", "0.6314159", "0.6266861", "0.62551683", "0.617628", "0.6164091", "0.61473167", "0.6132777", "0.6115944", "0.6093457", "0.60678667", "0.6065515", "0.60584503", "0.60569334", "0.60518...
0.7247116
0
Gets the surface_type of this SurfacePropertySchema.
def w4yF(YKHO) -> float: return YKHO._surface_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Br1N(YKHO):\n return YKHO._surfaceType", "def type(YKHO):\n if 'type' in YKHO._prop_dict:\n return YKHO._prop_dict['type']\n else:\n return None", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def ...
[ "0.79453635", "0.6660711", "0.6551855", "0.6551855", "0.6551855", "0.6551855", "0.6551855", "0.6551855", "0.6551855", "0.6505321", "0.64965993", "0.64806384", "0.64806384", "0.64249086", "0.64249086", "0.6374632", "0.6374632", "0.636919", "0.6354197", "0.6354197", "0.6354197"...
0.78204894
1
Gets the rad_properties of this SurfacePropertySchema.
def oEre(YKHO) -> DLyY: return YKHO._rad_properties
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jVqo(YKHO):\n if not YKHO._surfaceProperties:\n return None\n else:\n return YKHO._surfaceProperties.radProperties", "def jVqo(YKHO):\n return YKHO._radProperties", "def JWM4(YKHO) -> sMnY:\n return YKHO._surface_properties", "def Y9H4(YKHO):\n return YKHO._surfaceProperties"...
[ "0.8539569", "0.8490274", "0.75088465", "0.6993666", "0.66712904", "0.663414", "0.663414", "0.6540985", "0.6523978", "0.6514172", "0.6514172", "0.647734", "0.6471096", "0.6471096", "0.6471096", "0.6471096", "0.6471096", "0.6471096", "0.6471096", "0.6471096", "0.6471096", "0...
0.8603527
0
Sets the rad_properties of this SurfacePropertySchema.
def oEre(YKHO, oEre: MaterialSchema): if oEre is None: raise ValueError('Invalid value for `rad_properties`, must not be `None`') YKHO._rad_properties = oEre
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oEre(YKHO) -> DLyY:\n return YKHO._rad_properties", "def jVqo(YKHO):\n if not YKHO._surfaceProperties:\n return None\n else:\n return YKHO._surfaceProperties.radProperties", "def jVqo(YKHO):\n return YKHO._radProperties", "def FIMM(YKHO, w4yF: float=None, oEre: MaterialSchema=No...
[ "0.6822428", "0.6577395", "0.6333174", "0.60560894", "0.5920102", "0.5920102", "0.5920102", "0.5920102", "0.5920102", "0.5920102", "0.5920102", "0.5920102", "0.5920102", "0.590409", "0.590409", "0.5845994", "0.5811995", "0.57291055", "0.55369675", "0.54972935", "0.54829997", ...
0.75436413
0
Name of the share.
def IBbU(YKHO): return YKHO._share_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IBbU(YKHO) -> str:\n return qe4Y.get(YKHO, 'share_name')", "def A7yv(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_share_name')", "def IBbU(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'share_name')", "def hJ85(YKHO):\n mWFP = YKHO.name()\n if YKHO.sharedResourceT...
[ "0.9117425", "0.812666", "0.8095591", "0.79391587", "0.7864048", "0.7738527", "0.7595566", "0.75837", "0.750423", "0.7288923", "0.71685445", "0.71284276", "0.7002079", "0.69587934", "0.695003", "0.6922337", "0.68715847", "0.6871178", "0.6861197", "0.68599075", "0.6859003", ...
0.88935053
1
This function optimizes w and b by running a gradient descent algorithm
def WIl5(YKHO, Xejw, b0Ix, nqYr=False): KmmF = [] for YRbF in range(Xejw): vtNT, sSN_ = YKHO.propagate() ncXl = vtNT['dw'] NCls = vtNT['db'] YKHO.w = YKHO.w - b0Ix * ncXl YKHO.b = YKHO.b - b0Ix * NCls if YRbF % 100 == 0: KmmF.append(sSN_) if nq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i6uH(XcU5, Fg_i, EcVT, fuBA, tspZ, OnWS):\n KmmF = []\n _iCn = XcU5\n dGTp = Fg_i\n for YRbF in range(OnWS):\n NfqM, sSN_ = sNVR(XcU5, Fg_i, EcVT, fuBA)\n HFON = NfqM['dW']\n NCls = NfqM['db']\n _iCn -= tspZ * HFON\n dGTp -= tspZ * NCls\n if YRbF % 100 == 0...
[ "0.81628644", "0.797661", "0.79118687", "0.76585674", "0.7632454", "0.76308846", "0.7499726", "0.7481269", "0.7437948", "0.74336976", "0.7327186", "0.7324996", "0.726429", "0.72581226", "0.72348535", "0.7212009", "0.7211496", "0.71951807", "0.7163573", "0.71607137", "0.714999...
0.0
-1
Return the words in the string in reverse order by splitting on whitespace, reversing the list of word strings, then joining again on a single whitespace character.
def Q4K1(vIwR): V22M = vIwR.split() V22M.reverse() J8RG = ' '.join(V22M) return J8RG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uRmS(vIwR):\n Beie = [GIN8 for GIN8 in vIwR.split(' ') if GIN8 != '']\n return ' '.join(Beie[::-1])", "def Thwe(YKHO, KCHu):\n n8x3 = KCHu.split()\n o5Dc = [KCHu[::-1] for KCHu in n8x3]\n return ' '.join(o5Dc)", "def QHdE(vIwR):\n YRbF = r845 = 0\n exwG, Yfn9 = (len(vIwR), ' ')\n V2...
[ "0.8353995", "0.82307446", "0.81042254", "0.8075772", "0.80240756", "0.79582477", "0.7904694", "0.7843756", "0.78070325", "0.7780035", "0.7773083", "0.777273", "0.7677909", "0.7673145", "0.7649955", "0.759851", "0.7582838", "0.75607795", "0.75361913", "0.74643224", "0.7414028...
0.79200155
6
Convenience Method. Given an angle in degrees, return the cosine value, or the adjacent side/hypotenuse
def tFNH(Emd4, _IXK): return epAf.cos(_IXK * epAf.pi / 180)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzI3(YylR):\n assert type(YylR) == int or type(YylR) == float\n return epAf.cos(epAf.radians(YylR))", "def dzI3(YylR):\n Ylbp = oyIN.cos(oyIN.radians(YylR))\n return Ylbp", "def dzI3(YylR):\n Ylbp = oyIN.cos(oyIN.radians(YylR))\n return Ylbp", "def tZiV(qIr8):\n rFbg = 1 - qIr8 ** 2 ...
[ "0.7835831", "0.77638006", "0.77638006", "0.7252648", "0.72387755", "0.7188151", "0.71182764", "0.71031594", "0.7102514", "0.7074919", "0.6969846", "0.69652945", "0.69419944", "0.6918968", "0.6911606", "0.68842214", "0.6882557", "0.68748176", "0.68748176", "0.6872495", "0.686...
0.7079619
9
Getter method for vlan_list, mapped from YANG variable /overlay_gateway/enable/statistics/vlan_list (vfabrangetype)
def uhTY(YKHO): return YKHO.__vlan_list
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0nb(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_dict={'pattern': u'[0-9]+(-[0-9]+)?(,[0-9]+(-[0-9]+)?)*'}), is_leaf=True, yang_name='vlan-list', rest_name='vlan-list', parent=YKHO, path_h...
[ "0.70793724", "0.63291454", "0.6289768", "0.619021", "0.5864161", "0.5853465", "0.5845975", "0.5770392", "0.57569873", "0.57496935", "0.57496935", "0.57037634", "0.5691547", "0.5691547", "0.5691547", "0.56764174", "0.56761193", "0.5670194", "0.56462395", "0.5644747", "0.56284...
0.70921624
0
T.__new__(S, ...) > a new object with type S, a subtype of T
def fwuD(o4sw, *SPTI): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw):\n pass", "def fwuD(YKHO, o4sw...
[ "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497", "0.74194497"...
0.72600895
33
Gets the result_data of this TransactionCreatedSuccessfully.
def wQXe(YKHO) -> rx4e: return YKHO._result_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wQXe(YKHO) -> qQ0Q:\n return YKHO._result_data", "def wQXe(YKHO) -> rtcx:\n return YKHO._result_data", "def wQXe(YKHO, wQXe: AllOfTransactionCreatedSuccessfullyResultData):\n YKHO._result_data = wQXe", "def yLtf(YKHO):\n return YKHO._result", "def FIMM(YKHO, wQXe: AllOfTransactionCreatedSuc...
[ "0.7772346", "0.69612354", "0.6958284", "0.67289895", "0.6535283", "0.6522074", "0.6514425", "0.6514425", "0.6514425", "0.6430551", "0.6427337", "0.6390261", "0.63809854", "0.63519526", "0.63504374", "0.6308928", "0.62561834", "0.62561834", "0.62344265", "0.62247205", "0.6224...
0.86870044
0
Calculates the error, given the Gaussian mixture parameters and the target The loss is the negative log likelihood of the data given the Gaussian mixture parameters.
def Hha8(mM0K, WTkW, yGTL, pan_): JxU2 = mM0K * cXzr(WTkW, yGTL, pan_) Rhem = -ht2j.log(ht2j.sum(JxU2, dim=1) + 1e-06) return ht2j.mean(Rhem)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D56w(EcVT, fuBA, XcU5, pan_=(0.1, 0.9), hr1G=False):\n from math import sqrt\n wE4A, r9am = pan_\n fuBA = (r9am - wE4A) * fuBA\n fuBA += wE4A\n fuBA -= TYyO(PXbL(XcU5, EcVT), hr1G)\n fuBA *= fuBA\n return sqrt(fuBA.mean())", "def RDdK(YKHO, pan_):\n Mkpn = oyIN.array([0, 0, 0, 0, 0, 0...
[ "0.66518056", "0.6442384", "0.63831604", "0.6351138", "0.61718166", "0.61593103", "0.6080305", "0.60671455", "0.605668", "0.6028757", "0.60036707", "0.59797794", "0.5965974", "0.5950479", "0.5937853", "0.5937853", "0.5933197", "0.5925261", "0.5923474", "0.5922825", "0.5899598...
0.0
-1
Return the multivariate Gaussian distribution on array pos. pos is an array constructed by packing the meshed arrays of variables x_1, x_2, x_3, ..., x_k into its _last_ dimension.
def rBuZ(oeNL, yGTL, KSVb): exwG = yGTL.shape[0] W27b = oyIN.linalg.det(KSVb) CzKr = oyIN.linalg.inv(KSVb) ywwl = oyIN.sqrt((2 * oyIN.pi) ** exwG * W27b) rZpw = oyIN.einsum('...k,kl,...l->...', oeNL - yGTL, CzKr, oeNL - yGTL) return oyIN.exp(-rZpw / 2) / ywwl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rBuZ(oeNL, yGTL, KSVb):\n print('mduabfjds', yGTL)\n exwG = yGTL.shape[0]\n W27b = oyIN.linalg.det(KSVb)\n CzKr = oyIN.linalg.inv(KSVb)\n ywwl = oyIN.sqrt((2 * oyIN.pi) ** exwG * W27b)\n rZpw = oyIN.einsum('...k,kl,...l->...', oeNL - yGTL, CzKr, oeNL - yGTL)\n return oyIN.exp(-rZpw / 2) / ...
[ "0.75824815", "0.73805773", "0.70906955", "0.67255616", "0.64460015", "0.63856363", "0.6220352", "0.6220352", "0.6184905", "0.61225903", "0.6045525", "0.60350466", "0.6032505", "0.6017837", "0.60121113", "0.6006296", "0.59508806", "0.5913181", "0.5901883", "0.5853693", "0.585...
0.74990386
1
Calculate the second moment (variance) of a multimodal distribution using law of total variance mu is the tensor while mixture_mu is the mean of the entire mixture as calculated by dist_mu
def UXWq(mM0K, yGTL, as9z, WTkW): if mM0K.shape != yGTL.shape: mM0K = oyIN.expand_dims(mM0K, 2) if as9z.shape != yGTL.shape: as9z = oyIN.expand_dims(as9z, -1) SRYB = oyIN.sum(mM0K * WTkW * WTkW, 1) + oyIN.sum(mM0K * yGTL * yGTL, 1) - (as9z ** 2).squeeze(1) return SRYB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PH5G(mM0K, yGTL, as9z, WTkW):\n if mM0K.shape != yGTL.shape:\n mM0K = oyIN.expand_dims(mM0K, 2)\n if as9z.shape != yGTL.shape:\n as9z = oyIN.expand_dims(as9z, -1)\n lx6_ = (yGTL - as9z) * (yGTL - as9z)\n VXAf = WTkW * WTkW + lx6_\n return oyIN.sum(mM0K * VXAf, 1)", "def I8JS(YKHO...
[ "0.65409803", "0.6219032", "0.61684895", "0.6165542", "0.6085383", "0.602271", "0.602271", "0.59246904", "0.59217757", "0.5891329", "0.5871595", "0.5865733", "0.58513266", "0.57807916", "0.5771217", "0.57634354", "0.5746395", "0.5734239", "0.5734011", "0.5730501", "0.570808",...
0.6481528
1
Circle nice string representation
def wHJl(YKHO): return 'Circle({})'.format(YKHO.radius)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n sI3h = 'Cricle(center = Point({}), radius = {})'.format(YKHO.center, YKHO.radius)\n return sI3h", "def zAg0(YKHO):\n return 'Circle with radius: {:0.6f}'.format(YKHO._radius)", "def zAg0(YKHO):\n return 'Circle({}, radius={})'.format(super().__str__(), YKHO.radius)", "def zAg0(Y...
[ "0.7529727", "0.7465729", "0.73157346", "0.7260313", "0.7201483", "0.71624416", "0.6861037", "0.6694466", "0.6682156", "0.66110027", "0.6554781", "0.6516464", "0.65111685", "0.6495208", "0.64477354", "0.64095324", "0.63487", "0.63426864", "0.6340559", "0.63398224", "0.6336358...
0.7309783
3
Get categories from Offers API
def LQuW(): MOPg = {'Auth': DLGy + ':' + rjWG} for bGrB in range(Mlrg): try: geh0 = G4JS.get(v0pY, headers=MOPg) if geh0.status_code == 200: return (geh0.json(), geh0.status_code) else: return (None, geh0.status_code) except G4J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eEY0(YKHO):\n bD7m = 'https://fr.openfoodfacts.org/categories&json=1'\n Ylbp = G4JS.get(bD7m)\n YKHO.stdout.write(YKHO.style.WARNING('Categories - Status code: %s' % Ylbp.status_code))\n return Ylbp.json()", "def nqPb(YKHO):\n QePW = G4JS.get('https://fr.openfoodfacts.org/categories.json')\n ...
[ "0.80390716", "0.7959639", "0.7422583", "0.7388122", "0.7370385", "0.734552", "0.73416203", "0.73400116", "0.73342526", "0.7333137", "0.7329528", "0.7285867", "0.72483927", "0.7225365", "0.7213688", "0.7194099", "0.7154473", "0.71426934", "0.7103646", "0.7099627", "0.7097552"...
0.0
-1
Generate data by sampling from latent space. If z_mu is not None, data for this point in latent space is generated. Otherwise, z_mu is drawn from prior in latent space.
def C6M2(YKHO, g5a_=None): if g5a_ is None: g5a_ = oyIN.random.normal(size=YKHO.network_architecture['n_z']) return YKHO.sess.run(YKHO.x_reconstr_mean, feed_dict={YKHO.z: g5a_})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aU90(YKHO, yGTL, SRYB=1, Ep8u=None):\n assert 'variational' in YKHO.config, \"If you want to sample from a gaussian distribution to create images you need the key 'variational' in the config.\"\n if Ep8u == None:\n Ep8u = YKHO.config['batch_size']\n if type(yGTL) in [int, float]:\n yGTL ...
[ "0.6877996", "0.6750171", "0.67475635", "0.672936", "0.6685184", "0.66494155", "0.65689236", "0.65689236", "0.65689236", "0.6546438", "0.6538826", "0.65255666", "0.65202546", "0.6474461", "0.64662796", "0.6445715", "0.6376292", "0.63298637", "0.6278184", "0.6276138", "0.62672...
0.63662887
17
Get the optimizer from string self.optimizer
def iw5F(YKHO, C3ST): assert hasattr(ht2j.optim, YKHO.optimizer), 'The optimization method is not a torch.optim object' K0do = getattr(ht2j.optim, YKHO.optimizer)(C3ST.parameters(), lr=YKHO.learning_rate) return K0do
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K0do(YKHO):\n return YKHO._config.get('optimizer')", "def aaOI(qIxc):\n if qIxc.optimizer == 'adam':\n return KES0.Adam(qIxc.learningrate)\n elif qIxc.optimizer == 'sgd':\n return KES0.SGD(qIxc.learningrate)\n else:\n raise ValueError('Unknown optimizer')", "def K0do(YKHO):...
[ "0.7707643", "0.7477646", "0.740263", "0.7384656", "0.7250438", "0.71657336", "0.70611423", "0.7041685", "0.70219535", "0.6998555", "0.69920766", "0.69695455", "0.6884835", "0.685159", "0.68309164", "0.68266284", "0.68162185", "0.6759229", "0.6751787", "0.67368335", "0.669919...
0.6778696
17
Return a full name, neatly formatted.
def e1yb(c9ua, zp3f): eHMM = c9ua + ' ' + zp3f return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(YKHO):\n return '%s %s' % (YKHO.first_name, YKHO.last_name)", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def eHMM(YKHO):\n return '%s %s...
[ "0.86529046", "0.8640114", "0.8640114", "0.86111355", "0.8605745", "0.86024046", "0.85998344", "0.8597777", "0.85873055", "0.85823303", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586...
0.0
-1
Return a full name, neatly formatted.
def e1yb(c9ua, zp3f, w5Au=''): if w5Au: eHMM = c9ua + ' ' + w5Au + ' ' + zp3f else: eHMM = c9ua + ' ' + zp3f return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(YKHO):\n return '%s %s' % (YKHO.first_name, YKHO.last_name)", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def eHMM(YKHO):\n return '%s %s...
[ "0.86529046", "0.8640114", "0.8640114", "0.86111355", "0.8605745", "0.86024046", "0.85998344", "0.8597777", "0.85873055", "0.85823303", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586...
0.0
-1
Return a full name, neatly formatted.
def e1yb(c9ua, zp3f): eHMM = c9ua + ' ' + zp3f return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(YKHO):\n return '%s %s' % (YKHO.first_name, YKHO.last_name)", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def eHMM(YKHO):\n return '%s %s...
[ "0.86529046", "0.8640114", "0.8640114", "0.86111355", "0.8605745", "0.86024046", "0.85998344", "0.8597777", "0.85873055", "0.85823303", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586", "0.8579586...
0.84314424
89
Creates and saves a User with the given email, date of birth and password.
def lYUQ(YKHO, D3lj, Jr0g, jTXt=None): if not D3lj: raise ValueError('Users must have an email address') CBIr = YKHO.model(email=YKHO.normalize_email(D3lj), date_of_birth=Jr0g) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def xWi2(YKHO, D3lj, c9ua, zp3f, jTXt, **wdCM):\n D3lj = YKHO.normalize_em...
[ "0.8398513", "0.8242539", "0.8222285", "0.8134031", "0.8112516", "0.8107438", "0.8089521", "0.80854213", "0.8078641", "0.8076671", "0.8072227", "0.806547", "0.80622184", "0.8059587", "0.8059416", "0.805927", "0.8057694", "0.8056086", "0.8049341", "0.8048753", "0.80471236", ...
0.802257
25
Creates and saves a superuser with the given email, date of birth and password.
def Zp54(YKHO, D3lj, Jr0g, jTXt): CBIr = YKHO.create_user(D3lj, password=jTXt, date_of_birth=Jr0g) CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr", "def Zp54(YKHO, D3lj, jTXt, **w...
[ "0.8168399", "0.8164901", "0.8160056", "0.8151575", "0.81323993", "0.8129441", "0.81174445", "0.8079389", "0.80784804", "0.8075907", "0.8074884", "0.8074884", "0.8041249", "0.80323106", "0.80187106", "0.80032223", "0.7999742", "0.79904634", "0.7989641", "0.79873264", "0.79831...
0.81573236
3
Now this is for saving the User Profile in the database. Here Sender is the user model, instance is user object that is saved.
def hT79(vC92, KAOR, **B2fa): KAOR.profile.save()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hT79(vC92, KAOR, **B2fa):\n KAOR.profile.save()", "def hT79(vC92, KAOR, **B2fa):\n KAOR.profile.save()", "def Yr4I(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n SYRW.objects.create(user=KAOR)", "def hT79(vC92, KAOR, **B2fa):\n KAOR.account.save()", "def hT79(KAOR, **B2fa):\n KAOR.profil...
[ "0.7864275", "0.7840918", "0.7516465", "0.7468076", "0.74399793", "0.7377758", "0.7135812", "0.7098544", "0.7056999", "0.7045028", "0.7028757", "0.6999488", "0.6998957", "0.6998957", "0.6998957", "0.6998957", "0.6980685", "0.6969039", "0.69551396", "0.6934031", "0.68975633", ...
0.7791687
3
For each key in the dictionary of the form ., a separate dictionary for is formed for every "key" , while the s become the keys for the inner dictionary. Returns a dictionary of dictionary.
def eRac(Qxhz, VWe_='.'): Aofo = {} for sjXb in Qxhz: siSe = Aofo SQ3m = sjXb.split(VWe_) for Q7me in SQ3m[:-1]: siSe = siSe.setdefault(Q7me, {}) siSe[SQ3m[-1]] = Qxhz[sjXb] return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kjoz(Csk6):\n TXkI = {}\n for H5ew, BWXx in Csk6.items():\n if not isinstance(H5ew, str):\n TXkI[H5ew] = BWXx\n continue\n WMwn = TXkI\n if isinstance(H5ew, tuple):\n o8Kj = list(H5ew)\n else:\n o8Kj = [WKvO.strip() for WKvO in H5ew....
[ "0.6673674", "0.6635819", "0.65756816", "0.6516778", "0.6431666", "0.63676214", "0.63676214", "0.63520765", "0.63402915", "0.6318496", "0.62831205", "0.62600553", "0.6231023", "0.6196956", "0.6168972", "0.613218", "0.6124847", "0.61209893", "0.6111695", "0.61019784", "0.60930...
0.0
-1
Tests that the allocate_fixed_weights_capped returns the expected DataFrames.
def _6hR(YKHO): WOZF = rLdf.DataFrame(data={'FI12345': [1, 1, 1, 0, 0], 'FI23456': [0, -1, 1, 0, -1], 'FI34567': [1, 1, 1, -1, -1]}) IxwW = QBlo().allocate_fixed_weights_capped(WOZF, 0.34, cap=1.5) YKHO.assertDictEqual(IxwW.to_dict(orient='list'), {'FI12345': [0.34, 0.34, 0.34, 0.0, 0.0], 'FI23456': [0.0, -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cD9W(YKHO):\n WOZF = rLdf.DataFrame(data={'FI12345': [1, 1, 1, 0, 0], 'FI23456': [0, -1, 1, 0, -1], 'FI34567': [1, 1, 1, -1, -1]})\n IxwW = QBlo().allocate_fixed_weights(WOZF, 0.34)\n YKHO.assertDictEqual(IxwW.to_dict(orient='list'), {'FI12345': [0.34, 0.34, 0.34, 0.0, 0.0], 'FI23456': [0.0, -0.34, 0....
[ "0.7514846", "0.67299795", "0.6687404", "0.5714692", "0.5608893", "0.5604956", "0.5551356", "0.5503869", "0.54941607", "0.5466586", "0.54410064", "0.5429118", "0.5401967", "0.539775", "0.533428", "0.531916", "0.52762514", "0.52486557", "0.524795", "0.52381057", "0.52362764", ...
0.7650124
0
Anonymous user shouldn't be able to POST
def LC4Q(YKHO, Mcdd, ryQO): Mcdd.return_value = {'API_LONG_POLLING': 300} ryQO.return_value = i_PC.build(dict, FACTORY_CLASS=SRyr) geh0 = wZWi(False, {}) YKHO.assertEqual(geh0['status']['code'], 401)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m6S7(YKHO):\n geh0 = YKHO.testapp.get('/tools/user/add', status=302)\n vKnz = geh0.follow()\n YKHO.assertEqual(vKnz.status, '200 OK')\n YKHO.assertEqual(vKnz.request.path, '/login')\n YKHO.assertTrue('You are not connected.' in vKnz.body)", "def Gilk(YKHO):\n CBIr = k_g4.make(gCuF.AUTH_USER...
[ "0.7116899", "0.71022105", "0.7092676", "0.70423186", "0.69864833", "0.6926264", "0.6909029", "0.6896755", "0.6896755", "0.6896755", "0.6896755", "0.6896755", "0.6896755", "0.6896755", "0.6896755", "0.6867183", "0.68434244", "0.684035", "0.6839557", "0.6839044", "0.6829531", ...
0.0
-1
given a list of tokens and a max_len, returns a 1D array of length embedding_len max_len
def Q1PJ(YKHO, s2mk, wzH_=100): YKHO.max_len = wzH_ rWrZ = [] for YRbF in range(YKHO.max_len): eOtH = s2mk[YRbF] if YRbF < len(s2mk) else None rWrZ.append(YKHO.embeddings.get(eOtH, oyIN.zeros(YKHO.embedding_length))) return Pusg(lambda WKvO, LVAh: WKvO + LVAh, rWrZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S4Yi(s2mk, ixyV=6000, KLk8=12, hVLt='_PAD_', wb39='_UNK_', G2sS='Ⓑ', zQ15='end'):\n from collections import Counter\n import numpy as oyIN\n V22M = [GIN8 for _dZy in s2mk for GIN8 in _dZy]\n BWz1 = Counter(V22M)\n V22M = sorted(list(set(V22M)), key=BWz1.get, reverse=True)\n V22M = V22M[:ixyV ...
[ "0.7285352", "0.6606002", "0.65568763", "0.6535404", "0.6527666", "0.64930624", "0.64831567", "0.6474681", "0.64207876", "0.64207876", "0.6404535", "0.6382696", "0.6381369", "0.635409", "0.635409", "0.6344585", "0.6344585", "0.62970006", "0.6270843", "0.6231227", "0.62205637"...
0.781504
0
returns the error of the output vector
def RA_F(epBp, jzdc, LVAh): return jzdc - LVAh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(YKHO):\n GVWx = YKHO.a_tilde\n RoW6 = YKHO.V_tilde\n jmzt = YKHO.tau\n return epAf.fsum((WKvO ** 2 for WKvO in GVWx * RoW6 - jmzt))", "def P1dF(YKHO):\n return (YKHO.eta * YKHO.N, 1 - YKHO.delta)", "def Gv3L(YKHO):\n Ty9i = (YKHO.u - YKHO.old_u).flat\n return oyIN.sqrt(oyIN.dot(Ty...
[ "0.74306685", "0.73571277", "0.73404586", "0.71429014", "0.7052732", "0.7030135", "0.7027045", "0.6998505", "0.692642", "0.69221914", "0.68952966", "0.6885936", "0.68007624", "0.67997295", "0.6774464", "0.676068", "0.67559", "0.6751926", "0.6734625", "0.67217535", "0.67153376...
0.0
-1
If ``name`` is longer than 'max_length`` characters, it is mapped to a new identifier of length ``max_length``, being the concatenation of the first ``max_length rnd_digits`` characters of ``name``, followed by a random string of length ``hash_digits``.
def yNzd(mWFP: str, BcCR: int=63, I5vH: int=4) -> str: i0ax = len(mWFP) if i0ax <= BcCR: return mWFP else: assert 1 < I5vH < BcCR hEAh = BWvy(I5vH) return mWFP[:BcCR - I5vH] + hEAh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CnXH(YKHO, u54L=10):\n return WR89.b64encode(Hy7s.urandom(10)).translate(None, '=+/')", "def kQ6A(ZXVr, GTAc):\n return '^'.join([YoUZ(ZXVr, GTAc()) for bGrB in range(1, tuKI.randrange(2, 4))])", "def voq6(mWFP=''):\n PLe7 = str(tuKI.randint(1, 2147483647))\n if mWFP:\n return mWFP + '-'...
[ "0.7392307", "0.71950775", "0.7153795", "0.68470454", "0.68253213", "0.6807664", "0.6797667", "0.6783593", "0.67398345", "0.67019653", "0.6696555", "0.6676537", "0.6674895", "0.6670755", "0.6575712", "0.6562281", "0.65387106", "0.6528291", "0.6516042", "0.6485522", "0.6479342...
0.8695424
0
When an experiment with the local backend is run remotely (as SageMaker training job), we do not want checkpoints to be synced to S3, since this is expensive and errorprone (since several trials may write checkpoints at the same time). Pass the returned path to ``trial_backend_path`` when
def MPGe() -> GkAb: pmON = GkAb('/opt/ml/input/data/') pmON.mkdir(parents=True, exist_ok=True) return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CaVn(YKHO) -> str:\n return YKHO._local_backend_crd_path", "def CaVn(YKHO, CaVn: str):\n YKHO._local_backend_crd_path = CaVn", "def F28p(DDLl: str) -> str:\n ZI14 = {'sqlite': '.db', 'parquet': '.parquet'}[DDLl]\n pmON = Hy7s.path.join(M6cK, bkJI + ZI14)\n return pmON", "def ffJC(VKhi, pmO...
[ "0.6190878", "0.58698124", "0.5768545", "0.5731378", "0.5702807", "0.56902057", "0.5611186", "0.5600331", "0.55958563", "0.55712736", "0.5488637", "0.5487481", "0.54702723", "0.5466565", "0.54479825", "0.5417887", "0.5411549", "0.5397901", "0.5387562", "0.53671134", "0.533370...
0.6303925
0
Returns the URL for this menu if exists.
def bD7m(YKHO) -> str: bD7m = '#no-url' try: if YKHO.url_resolver: bD7m = gxEw(YKHO.url_resolver) if YKHO.extra_urls_args: bD7m += YKHO.extra_urls_args except Exception as ex: G9jH.warning("Resolver for '%s' may not exists.", YKHO.url_resolver) G9jH.er...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKhs(YKHO):\n if YKHO.url:\n return YKHO.url\n elif YKHO.url_name:\n return uXDP(YKHO.url_name, request=YKHO.datagrid.request)\n else:\n return super(Gu8g, YKHO).get_url()", "def bD7m(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'url')", "def bD7m(YKHO) -> h8nf[str]:\n re...
[ "0.7374745", "0.6591194", "0.6591194", "0.6591194", "0.6591194", "0.65703964", "0.6546786", "0.6490067", "0.6459556", "0.64493775", "0.6439717", "0.6429076", "0.6423912", "0.6407692", "0.63777083", "0.6368604", "0.6348589", "0.6330328", "0.6330047", "0.6325079", "0.6325079", ...
0.76451313
0
Takes in a array or numpy array and fills in missing data through interpolation.
def RPZT(ITS7): if len(ITS7) == 0 or isinstance(ITS7, str) or isinstance(ITS7, int): raise TypeError('ERROR: Input was not a proper iterable, ') YRbF = 0 r845 = 0 G1Hx = 0 a1PO = len(ITS7) - 1 while True: UHFx = 3 if ITS7[a1PO] == -999 or ITS7[0] == -999: ITS7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def foSh(YKHO, nPrm):\n nPrm = nPrm.filled(oyIN.nan)\n iomA, WKvO = (oyIN.isnan(nPrm), lambda epBp: epBp.nonzero()[0])\n nPrm[iomA] = oyIN.interp(WKvO(iomA), WKvO(~iomA), nPrm[~iomA])\n return nPrm", "def uLgv(nPrm, BWXx):\n assert len(nPrm.shape) == 2\n cw2l = (nPrm != BWXx).nonzero()\n cw2...
[ "0.82784873", "0.73874515", "0.73617005", "0.72293013", "0.7039765", "0.686122", "0.6791811", "0.67485917", "0.6724845", "0.66881144", "0.6675439", "0.6663645", "0.6601192", "0.6601192", "0.66009593", "0.65927047", "0.65853137", "0.6575703", "0.65649205", "0.65169334", "0.650...
0.0
-1
FullyConnectedVAE( in_features, hidden_features, num_layers, latent_features, dropout_probability=0.4, device=None, )
def FIMM(YKHO, PhLZ, HqPd, CLda, sZ3l, HEP5=0.4, begE=None): super().__init__() YKHO.device = ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu') YKHO._args = (PhLZ, HqPd, CLda, sZ3l, HEP5, begE) YKHO.in_features = PhLZ YKHO.hidden_features = HqPd YKHO.num_layers = CLda YKHO.latent_fe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, E1ho, AEzT, biYz, FtXE, DYuh, OVDz, tYiq, WTkW=False, O1jm=0, obfU=0, haib=U78l.ReLU(), X5MX=U78l.Tanh(), CY5b=True, iMbZ=True, Tj9J=None, E0pV=None, u3QC=True, P_lc=True, m4hn=False, rwlJ=0):\n super(h_QP, YKHO).__init__()\n YKHO.logger = fZx2('VAE_Model')\n YKHO.logger.debug('latent_dim: ...
[ "0.61185414", "0.5837255", "0.58285576", "0.5778956", "0.5768452", "0.57026094", "0.5624478", "0.5594773", "0.5511135", "0.5448467", "0.541738", "0.53937995", "0.53792375", "0.53484356", "0.53419745", "0.5336344", "0.533567", "0.533567", "0.53200233", "0.5307605", "0.5299621"...
0.60533094
1
Tests that a volume is loaded correctly by ID
def OmgZ(YKHO): akib = C8pN(YKHO.client, 1) YKHO.assertEqual(akib._populated, False) YKHO.assertEqual(akib.label, 'block1') YKHO.assertEqual(akib._populated, True) YKHO.assertEqual(akib.size, 40) YKHO.assertEqual(akib.linode, None) YKHO.assertEqual(akib.status, 'active') YKHO.assertIsIns...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QeVy(YKHO):\n pass", "def ykgQ(YKHO):\n Ty9i = YKHO.ep.get('volumes', 1)\n YKHO.assertEqual(Ty9i.id, 1, msg='Got bogus response instead of volume with id=1')", "def V00t(YKHO):\n YKHO.rsc.on_get(YKHO.req, YKHO.resp, Zfbw, HFZv)\n YKHO.assertEqual(200, YKHO.resp.status)\n akib = YKHO.resp....
[ "0.7619895", "0.720486", "0.72010374", "0.7041749", "0.6967522", "0.69300985", "0.6907498", "0.6898475", "0.6846359", "0.6817991", "0.675658", "0.67516583", "0.66904426", "0.6682714", "0.66635007", "0.665347", "0.66252655", "0.66135997", "0.65620697", "0.65571725", "0.6540895...
0.7117639
3
Tests that updating tags on an entity send the correct request
def ROae(YKHO): akib = YKHO.client.volumes().first() with YKHO.mock_put('volumes/1') as r8hN: akib.tags = ['test1', 'test2'] akib.save() assert r8hN.call_url == '/volumes/{}'.format(akib.id) assert r8hN.call_data['tags'] == ['test1', 'test2']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTcP(YKHO):\n YSCM = vETe(user=YKHO.user)\n pB3N = {'tags': [{'name': 'Lunch'}]}\n bD7m = iLuo(YSCM.id)\n Ylbp = YKHO.client.patch(bD7m, pB3N, format='json')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n MGzK = OhYN.objects.get(user=YKHO.user, name='Lunch')\n YKHO.assertIn(MGzK,...
[ "0.7590531", "0.75475174", "0.75325274", "0.7432867", "0.7384281", "0.73824435", "0.7357152", "0.7324317", "0.7315149", "0.7290385", "0.72295314", "0.7207507", "0.71739", "0.71531415", "0.7110249", "0.7108599", "0.7102427", "0.70948696", "0.7080978", "0.701336", "0.70080394",...
0.710075
17
Lazy property with a reference to the real git repository.
def ip_V(YKHO): if YKHO._internal_repository is None: YKHO._internal_repository = X9mY.Repository(YKHO.path) return YKHO._internal_repository
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def boHx(YKHO):\n return YKHO.repository", "def boHx(YKHO):\n return YKHO._repo", "def g1Bv(YKHO):\n if YKHO._git_repo:\n return xOcM().clone(YKHO._git_repo, YKHO._repository_directory)\n else:\n return Iz_c.init(YKHO._repository_directory)", "def boHx(YKHO):\n y5Cv = YKHO.git.ge...
[ "0.73166984", "0.7271774", "0.713276", "0.7103261", "0.7098727", "0.7046099", "0.7046099", "0.70410544", "0.69378394", "0.69312173", "0.6918895", "0.6891937", "0.68779147", "0.6824496", "0.6812955", "0.6797625", "0.67656296", "0.670066", "0.6680324", "0.66359144", "0.6632913"...
0.7462441
0
Get the value of a nested object field.
def APFr(YEnM, sjXb: list): if len(sjXb) == 0: return YEnM return APFr(YEnM[sjXb[0]], sjXb[1:])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GlCY(Jyyj, YEnM):\n Mzf9 = YEnM\n AdfU = Jyyj.split('__')\n for UksD in AdfU[:-1]:\n Mzf9 = getattr(Mzf9, UksD)\n if Mzf9 is None:\n break\n try:\n return getattr(Mzf9, AdfU[-1]) if Mzf9 else None\n except AttributeError:\n return Mzf9.extra_data.get(AdfU[-...
[ "0.76557547", "0.71563256", "0.7127703", "0.70808196", "0.7078964", "0.70576394", "0.690836", "0.68894285", "0.68539727", "0.6835358", "0.68080366", "0.68080366", "0.67758936", "0.6761504", "0.6756429", "0.6755164", "0.6754012", "0.6732153", "0.6719187", "0.66875327", "0.6644...
0.0
-1
Convert a GeoJSON object into a WKB hex string.
def EoeV(wFOJ): return LBWB.geometry.shape(wFOJ).wkb_hex
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PjZe(NZQz, hex=False, **YSA3):\n WJI9 = MIow.WKBWriter(MIow.lgeos, **YSA3)\n if hex:\n return WJI9.write_hex(NZQz)\n else:\n return WJI9.write(NZQz)", "def Qrvj(YKHO):\n return LBWB.to_wkb(YKHO, hex=True)", "def PjZe(NZQz):\n if NZQz is None or NZQz._geom is None:\n rais...
[ "0.71645635", "0.6982983", "0.6704073", "0.6602014", "0.641992", "0.6405642", "0.63692135", "0.6343287", "0.61755645", "0.6162963", "0.60765505", "0.60272086", "0.60227007", "0.5929105", "0.59154", "0.59094083", "0.5896962", "0.5827252", "0.5820457", "0.5820457", "0.58147496"...
0.82177794
0
get the length of the the common prefix of s and t.
def uN6g(KCHu, a1PO): if None == KCHu or None == a1PO or 0 == len(KCHu) or (0 == len(a1PO)): return 0 Q1bM = min(len(KCHu), len(a1PO)) for YRbF in range(Q1bM): if KCHu[YRbF] != a1PO[YRbF]: return YRbF return Q1bM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oHgb(KCHu):\n for y0cW in [2, 3]:\n if len(J3uN(KCHu)) > len(J3uN([y0cW] + KCHu)):\n return y0cW\n return 0", "def EbB_(j93S, Nqp_):\n return len(j93S + Nqp_)", "def ei0T(YKHO):\n return YKHO.__prefix_length", "def ei0T(YKHO):\n return YKHO.__prefix_length", "def qhfQ(Y...
[ "0.70428395", "0.69413716", "0.6829626", "0.6829626", "0.6821226", "0.67339694", "0.654166", "0.654166", "0.6500205", "0.64686185", "0.6411636", "0.6396835", "0.63806146", "0.63695925", "0.63413864", "0.6280676", "0.6222732", "0.6221793", "0.6194239", "0.61851555", "0.6173213...
0.873075
0
Returns the normal vector to two point.
def vj0b(WKvO, LVAh): rDXN = WKvO - LVAh mhAC = oyIN.array([-rDXN[1], rDXN[0]]) mhAC = mhAC / oyIN.linalg.norm(mhAC, 2) return mhAC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iSV7(YKHO):\n hQHm = YKHO.points[0].vector3D\n jlSq = YKHO.points[1].vector3D\n bUZ8 = YKHO.points[2].vector3D\n pO9Q = jlSq - hQHm\n yzPe = bUZ8 - hQHm\n q0Kk = oyIN.cross(pO9Q, yzPe)\n if q0Kk[-1] < 0:\n q0Kk = oyIN.cross(yzPe, pO9Q)\n return q0Kk / 2", "def mhAC(YKHO):\n ...
[ "0.80147105", "0.79525226", "0.78618175", "0.7781508", "0.7739346", "0.7728206", "0.77273804", "0.75557417", "0.7335511", "0.7316695", "0.72703606", "0.72457284", "0.71884435", "0.71184015", "0.7112863", "0.70967025", "0.7067021", "0.70626175", "0.704949", "0.7041735", "0.698...
0.818679
0
Perform an optimization step using gradients and states.
def YPaw(YKHO, _0VL, _mSQ, vtNT, wspz): for d6pt, upAO, Ro40, QTBn in zip(_0VL, _mSQ, vtNT, wspz): tspZ = YKHO._get_lr(d6pt) TI1B = YKHO._get_wd(d6pt) YKHO._update_count(d6pt) NwL4 = upAO.shape[0] if YKHO.momentum == 0.0: for rdlD in range(NwL4): R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rkBb(YKHO) -> None:\n YKHO.opt.step()\n YKHO.opt.zero_grad()", "def YPaw(YKHO, DMIq=None):\n N77f = None\n if DMIq is not None:\n with ht2j.enable_grad():\n N77f = DMIq()\n for uOe2 in YKHO.param_groups:\n for XP5J in uOe2['params']:\n if XP5J.grad is None:\...
[ "0.7416458", "0.73747367", "0.72115755", "0.71586734", "0.71324545", "0.71123767", "0.70975995", "0.709559", "0.7082693", "0.7072862", "0.70676696", "0.70594347", "0.7045332", "0.7037401", "0.7028993", "0.6988005", "0.6972619", "0.69427216", "0.69367486", "0.6926437", "0.6919...
0.0
-1
Perform an optimization step using gradients and states.
def YPaw(YKHO, _0VL, _mSQ, vtNT, wspz): for d6pt, upAO, Ro40, QTBn in zip(_0VL, _mSQ, vtNT, wspz): YKHO._update_count(d6pt) tspZ = YKHO._get_lr(d6pt) TI1B = YKHO._get_wd(d6pt) a1PO = YKHO._index_update_count[d6pt] JBMS, I8JS = QTBn NwL4 = upAO.shape[0] EZDW = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rkBb(YKHO) -> None:\n YKHO.opt.step()\n YKHO.opt.zero_grad()", "def YPaw(YKHO, DMIq=None):\n N77f = None\n if DMIq is not None:\n with ht2j.enable_grad():\n N77f = DMIq()\n for uOe2 in YKHO.param_groups:\n for XP5J in uOe2['params']:\n if XP5J.grad is None:\...
[ "0.7416458", "0.73747367", "0.72115755", "0.71586734", "0.71324545", "0.71123767", "0.70975995", "0.709559", "0.7082693", "0.7072862", "0.70676696", "0.70594347", "0.7045332", "0.7037401", "0.7028993", "0.6988005", "0.6972619", "0.69427216", "0.69367486", "0.6926437", "0.6919...
0.0
-1
Perform an optimization step using gradients and states.
def YPaw(YKHO, _0VL, _mSQ, vtNT, wspz): for d6pt, upAO, Ro40, QTBn in zip(_0VL, _mSQ, vtNT, wspz): YKHO._update_count(d6pt) TI1B = YKHO._get_wd(d6pt) tspZ = YKHO._get_lr(d6pt) NwL4 = upAO.shape[0] epBp, exwG = QTBn for rdlD in range(NwL4): rqik = RsfQ.test...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rkBb(YKHO) -> None:\n YKHO.opt.step()\n YKHO.opt.zero_grad()", "def YPaw(YKHO, DMIq=None):\n N77f = None\n if DMIq is not None:\n with ht2j.enable_grad():\n N77f = DMIq()\n for uOe2 in YKHO.param_groups:\n for XP5J in uOe2['params']:\n if XP5J.grad is None:\...
[ "0.7416458", "0.73747367", "0.72115755", "0.71586734", "0.71324545", "0.71123767", "0.70975995", "0.709559", "0.7082693", "0.7072862", "0.70676696", "0.70594347", "0.7045332", "0.7037401", "0.7028993", "0.6988005", "0.6972619", "0.69427216", "0.69367486", "0.6926437", "0.6919...
0.0
-1
Perform an optimization step using gradients and states.
def YPaw(YKHO, _0VL, _mSQ, vtNT, wspz): for d6pt, upAO, Ro40, QTBn in zip(_0VL, _mSQ, vtNT, wspz): YKHO._update_count(d6pt) TI1B = YKHO._get_wd(d6pt) tspZ = YKHO._get_lr(d6pt) NwL4 = upAO.shape[0] FLXQ = QTBn for rdlD in range(NwL4): rqik = RsfQ.test_utils...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rkBb(YKHO) -> None:\n YKHO.opt.step()\n YKHO.opt.zero_grad()", "def YPaw(YKHO, DMIq=None):\n N77f = None\n if DMIq is not None:\n with ht2j.enable_grad():\n N77f = DMIq()\n for uOe2 in YKHO.param_groups:\n for XP5J in uOe2['params']:\n if XP5J.grad is None:\...
[ "0.7416458", "0.73747367", "0.72115755", "0.71586734", "0.71324545", "0.71123767", "0.70975995", "0.709559", "0.7082693", "0.7072862", "0.70676696", "0.70594347", "0.7045332", "0.7037401", "0.7028993", "0.6988005", "0.6972619", "0.69427216", "0.69367486", "0.6926437", "0.6919...
0.6564024
95
Returns a string representing local time.
def Uv4C(): LElt = qcWV.today() E3oo = LElt.strftime(Y8L4) return E3oo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yc2n(E3oo=None):\n if E3oo is None:\n ejIZ = zwKp(qcWV.now())\n else:\n ejIZ = zwKp(qcWV.fromtimestamp(E3oo))\n return ejIZ", "def wpbf():\n Elpc = qcWV.datetime.now(rIAI('America/Los_Angeles'))\n return Elpc.strftime('%Y%m%d_%H%M%S')", "def oMjx(YKHO):\n return YKHO.utc_tim...
[ "0.81988937", "0.80879533", "0.7924668", "0.7671133", "0.7665156", "0.7573583", "0.755289", "0.752451", "0.7452911", "0.738344", "0.7371411", "0.72985756", "0.72834134", "0.72810066", "0.7258035", "0.7204186", "0.7180999", "0.7166601", "0.70792156", "0.706668", "0.7051538", ...
0.0
-1
Calculates the centroid from a bounding box.
def DZ83(C6id): W0Eb = C6id['bounding_box']['coordinates'][0] b7yC = oyIN.unique([WKvO[0] for WKvO in W0Eb]) LD1b = oyIN.unique([WKvO[1] for WKvO in W0Eb]) if len(b7yC) == 1 and len(LD1b) == 1: return (b7yC[0], LD1b[0]) elif len(b7yC) == 2 and len(LD1b) == 2: MQfN = oyIN.sum(b7yC) / ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IBzD(FlUN):\n assert isinstance(FlUN, oyIN.ndarray)\n assert FlUN.shape == (4,)\n o4D3, si3g, ajwV, skBL = FlUN\n return (int((o4D3 + ajwV) / 2), int((si3g + skBL) / 2))", "def uXnH(edvT, iK6n=1):\n edvT = oyIN.array(edvT) / iK6n\n WKvO = (edvT[2] + edvT[0]) / 2\n LVAh = (edvT[3] + edvT[...
[ "0.7741734", "0.7440103", "0.72881955", "0.7225208", "0.7183482", "0.7164596", "0.7072733", "0.7072459", "0.70628935", "0.7032328", "0.7027304", "0.7006934", "0.6983693", "0.6961663", "0.6957966", "0.6957966", "0.6943019", "0.6937588", "0.69185287", "0.69176245", "0.69101536"...
0.6856707
23
Sets the errors of this ImportResult.
def UAju(YKHO, UAju): if YKHO.local_vars_configuration.client_side_validation and UAju is None: raise ValueError('Invalid value for `errors`, must not be `None`') YKHO._errors = UAju
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UAju(YKHO, UAju):\n YKHO._errors = UAju", "def UAju(YKHO, UAju):\n YKHO._errors = UAju", "def UAju(YKHO, UAju):\n YKHO._errors = UAju", "def UAju(YKHO, UAju: ErrorErrors):\n YKHO._errors = UAju", "def UAju(YKHO, UAju: List[MessageErrors]):\n YKHO._errors = UAju", "def UAju(YKHO, UAju: ...
[ "0.7393731", "0.7393731", "0.7393731", "0.72084576", "0.6762759", "0.6574508", "0.64107543", "0.6380053", "0.6380053", "0.6380053", "0.6380053", "0.6380053", "0.62998575", "0.6198128", "0.61827147", "0.61539453", "0.61521685", "0.61521685", "0.61521685", "0.61521685", "0.6066...
0.62299925
13
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, tGpJ): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Return if flat table in this collection.
def vtfo(YKHO, T0uZ: str) -> bool: return T0uZ in YKHO._tables
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RPa5(YKHO):\n return YKHO.graphic.graphicData.uri == O3QD", "def Z5Jr(YKHO):\n return True if sum((YKHO._table[bTKY] for bTKY in YKHO.get_entrees())) == 1 else False", "def gIkp(YKHO):\n p_z1 = YKHO._getManager()\n if p_z1 is None:\n return -1\n return p_z1.isFlat()", "def RPa5(YKHO...
[ "0.6148616", "0.6002664", "0.58946705", "0.5846448", "0.57982427", "0.5791535", "0.56752783", "0.5662936", "0.56500113", "0.56488466", "0.56488466", "0.56488466", "0.56488466", "0.56488466", "0.56488466", "0.56488466", "0.56323814", "0.5626592", "0.5619006", "0.5611332", "0.5...
0.5812779
4
Function to compute the log of the normal CDF at value. This is based on the TFP implementation.
def dgce(BWXx: torch.Tensor): yDqo = BWXx.dtype if yDqo == ht2j.float64: LSh8, CN9P = (-20, 8) elif yDqo == ht2j.float32: LSh8, CN9P = (-10, 5) else: raise TypeError('value needs to be either float32 or float64') return ht2j.where(BWXx > CN9P, ht2j.log1p(-RLMV(-BWXx)), ht2j.w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cNgr(WKvO, JBMS, SRYB):\n K1Yq = JBMS ** 2\n return 0.5 * epAf.erfc(oyIN.log(K1Yq / (WKvO * oyIN.sqrt(K1Yq + SRYB))) / oyIN.sqrt(2 * oyIN.log(1 + SRYB / K1Yq)))", "def TgQi(epBp):\n try:\n return epAf.log(1 - _Ttn(epBp))\n except ValueError:\n return float('-inf')", "def QF3p(YKHO...
[ "0.7381549", "0.7190687", "0.71255356", "0.71255356", "0.71255356", "0.71255356", "0.7080088", "0.7011394", "0.69389707", "0.69205016", "0.687023", "0.68574154", "0.68366396", "0.68223006", "0.68165666", "0.67866313", "0.6786543", "0.6773565", "0.6772897", "0.67580646", "0.67...
0.6691033
22
yield sentences from data file
def MC8T(D6qv): YRbF = 0 with open(D6qv) as eHNT: Z9rn = m6_J.reader(eHNT, delimiter=',') for BDO5, rIlR, UXqs in Z9rn: if YRbF % 10000 == 0: print('%d samples' % (YRbF,)) try: BDO5 = BDO5.decode('utf8') rIlR = rIlR.decode('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eab6(YKHO, OGf6=None, LeZt=None):\n for HKwb in YKHO.paras(OGf6, LeZt):\n for yAmx in HKwb:\n yield yAmx", "def UfrL(YKHO):\n with open(YKHO.file, 'r') as eHNT:\n for zFiD in eHNT:\n wz_6 = []\n IyUv = lpha(zFiD, (' ', '\\n'))\n del IyUv[-1]\n ...
[ "0.72467464", "0.7246554", "0.72339666", "0.7218946", "0.7156007", "0.7108336", "0.71039236", "0.7056329", "0.7054062", "0.69726056", "0.6940315", "0.69315374", "0.6897298", "0.68633485", "0.6849557", "0.67660767", "0.67643356", "0.67319906", "0.667372", "0.6672416", "0.66595...
0.70502007
9
Test states of the weather with forecast.
async def test_weather_with_forecast(ajET: HomeAssistant) -> None: await OSs1(ajET, forecast=True) nqEK = D4AW.async_get(ajET) QTBn = ajET.states.get('weather.home') assert QTBn assert QTBn.state == 'sunny' assert QTBn.attributes.get(EYw8) == 67 assert QTBn.attributes.get(ttb5) == 1012.0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HI6K():\n yJiH = 0.01\n OZkM = oyIN.array([[0.7, 0.6], [0.3, 0.4]])\n WKvO = m0MD.steady_state(OZkM)\n b8N2 = m0MD.forecast(int(100000.0))\n assert b8N2.count(0) / len(b8N2) - WKvO[0] < yJiH, 'failed on ratio of hot days'\n assert b8N2.count(1) / len(b8N2) - WKvO[1] < yJiH, 'failed on ratio o...
[ "0.74760383", "0.7054075", "0.70333254", "0.6955979", "0.68358445", "0.67915606", "0.673205", "0.6656702", "0.66015697", "0.6601461", "0.65037894", "0.64204", "0.63718003", "0.63363284", "0.6313863", "0.6313319", "0.63019216", "0.6277058", "0.6259024", "0.6218524", "0.6212612...
0.71977574
1
Test manual update entity via service homeassistant/update_entity.
async def test_manual_update_entity(ajET: HomeAssistant) -> None: await OSs1(ajET, forecast=True) await C3TX(ajET, 'homeassistant', {}) jvSB = zefD('accuweather/current_conditions_data.json') QVeo = UUOX('accuweather/forecast_data.json') with Po4F('homeassistant.components.accuweather.AccuWeather.as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oZWf(YKHO):\n pass", "def NsjJ(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "async def test_switch_update_entity(ajET: HomeAssistant, jo6F, VPJ1, Uh19) -> None:\n await C3TX(ajET, zAH8, {})\n VPJ1.get_state.return_value = 1\n await ajET.services.async_call(zA...
[ "0.759104", "0.7545661", "0.74214727", "0.74214727", "0.7367416", "0.7338276", "0.72431135", "0.7232777", "0.718671", "0.7145961", "0.7094076", "0.70934564", "0.70808536", "0.7048197", "0.6991608", "0.69593334", "0.69381464", "0.6917936", "0.6917198", "0.68576133", "0.6845860...
0.78436995
0
Save this instance to a dictionary to be serialized.
def sS6L(YKHO): Csk6 = jth9.copy(YKHO.__dict__) del Csk6['_cache'] return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sS6L(YKHO):\n return YKHO.__dict__", "def sS6L(YKHO):\n raise NotImplementedError(Z9Ze)", "def Napc(YKHO) -> dict:\n pass", "def dRyi(YKHO):\n return YKHO.__dict__", "def xkzz(YKHO):\n with open(YKHO.filename, mode='wb') as nUeQ:\n t2lc.dump(YKHO.dictionary, nUeQ)", "def hJE7(YK...
[ "0.8217244", "0.800806", "0.7768675", "0.77473783", "0.7688856", "0.75161546", "0.7503635", "0.7466198", "0.7422249", "0.7265334", "0.7213589", "0.7191759", "0.71709645", "0.7155016", "0.71419024", "0.7114545", "0.7113782", "0.7113235", "0.711194", "0.7109053", "0.71054953", ...
0.7814812
2
Spell the null hypothesis.
def E577(YKHO): aDi_ = ' = '.join(['mu%d' % YRbF for YRbF in range(len(YKHO.groups))]) return 'All samples are not significantly different (%s)' % aDi_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9Xz(YKHO) -> str:\n return YKHO._java_model.nullHypothesis()", "def aarx(YKHO):\n BdPz = {'Human': 'ATGCGGCTCGCGGAGGCCGCGCTCGCGGAG', 'Mouse': 'ATGCCCGGCGCCAAGGCAGCGCTGGCGGAG', 'Opossum': 'ATGCCAGTGAAAGTGGCGGCGGTGGCTGAG'}\n HKyQ = hryh(data=BdPz, moltype='dna')\n J_Es = '((Mouse,Rat),Human,Opossu...
[ "0.65973616", "0.6484558", "0.63904184", "0.61466205", "0.6081689", "0.6059263", "0.60018206", "0.5986694", "0.5969391", "0.5955108", "0.5955108", "0.59424627", "0.5918325", "0.59035057", "0.5891118", "0.5891118", "0.5891118", "0.58389866", "0.58352786", "0.58352786", "0.5832...
0.0
-1
Calculate and return Tukey's HSD value.
def WhJH(YKHO): def tWNI(YKHO): dIaH = nja8.q_value(YKHO.alpha, YKHO.df_n(), YKHO.df_d()) xHa7 = YKHO.mean_squares_within() G1Hx = len(YKHO.groups) return dIaH * epAf.sqrt(sum([xHa7 / C4gk.n for C4gk in YKHO.groups]) / G1Hx) return YKHO.get_cached('tukeys_hsd', tWNI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ejKx(YKHO):\n if YKHO._update_on_read:\n YKHO.update()\n return YKHO.get_conv_val('ALL_HEAT_PUMPS__AMOUNT_OF_HEAT__VD_DHW_TOTAL__MWH') * 1000 + YKHO.get_conv_val('ALL_HEAT_PUMPS__AMOUNT_OF_HEAT__VD_DHW_TOTAL__KWH')", "def fYk1(YKHO):\n if YKHO._update_on_read:\n YKHO.update()\n retu...
[ "0.67149764", "0.6552922", "0.6472916", "0.644325", "0.63398194", "0.63004285", "0.61661625", "0.6127983", "0.6127983", "0.6127983", "0.60870296", "0.60631555", "0.60275096", "0.6018156", "0.6007538", "0.5991821", "0.5978641", "0.5966341", "0.5958956", "0.59361225", "0.592221...
0.7227023
0
Stores the list of reference field descriptors of a model.
def qK1h(jxGD, mWFP, gitN, o8Kj): jxGD._references = {} MKlR = {} uUiN = [] for _AKB in gitN: if not isinstance(_AKB, M45m): continue for G1Hx, Ty9i in _AKB._references.iteritems(): jxGD._references[G1Hx] = Ty9i JoNA = XgUI(jxGD, Ty9i) if J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0hE(YKHO, *qIxc, **B2fa):\n kC_t = B2fa.get('_refs', []) or []\n WHc2 = JieA('ReferenceField')\n aRvp = JieA('GenericReferenceField')\n for mWFP, Emd4 in YKHO._fields.items():\n if not isinstance(Emd4, (WHc2, aRvp)):\n continue\n bf9h = YKHO._data.get(mWFP)\n if not...
[ "0.60108185", "0.5946683", "0.58139646", "0.57492155", "0.56882215", "0.5497227", "0.54902214", "0.544475", "0.53368574", "0.5198839", "0.5189147", "0.5189147", "0.5188088", "0.51854986", "0.5178338", "0.51686037", "0.5141503", "0.5117787", "0.5115054", "0.5078462", "0.507715...
0.5394121
8
Saves the instance to the datastore.
def xkzz(YKHO): if not YKHO.is_valid(): return YKHO._errors L0jR = YKHO.is_new() if L0jR: YKHO._initialize_id() with F4rz(YKHO): YKHO._write(L0jR) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(Emd4, KAOR=None):\n if KAOR:\n NCls().add(KAOR)\n NCls().commit()", "def xkzz(YKHO):\n sYeH.instance().put(YKHO)\n if hasattr(YKHO, 'save_relations'):\n YKHO.save_relations()", "def xkzz(YKHO):\n bo34.info('Saving %s', YKHO.id)\n NCls.session.commit()", "def xkzz(YKHO...
[ "0.8028225", "0.7560867", "0.751144", "0.7417016", "0.73616225", "0.73254955", "0.7312427", "0.73086435", "0.7299491", "0.7299491", "0.7299491", "0.7299491", "0.7299491", "0.7299491", "0.7299491", "0.7299491", "0.7299491", "0.7299491", "0.7299491", "0.7299491", "0.7299491", ...
0.0
-1
Returns the Redis key where the values are stored.
def H5ew(YKHO, AniK=None): if AniK is not None: return YKHO._key[YKHO.id][AniK] else: return YKHO._key[YKHO.id]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NzFF(YKHO) -> str:\n H5ew = f'{YKHO._meta.db_table}:{YKHO.pk}'\n return H5ew", "def RYmo(YKHO, eOtH):\n return YKHO._redis_prefix + eOtH", "def mexE(YKHO):\n return YKHO._key_string", "def NzFF(YKHO) -> str:\n return _J2v._redis_key(YKHO.user_id)", "def mexE(YKHO):\n return YKHO.get_a...
[ "0.7579899", "0.7371787", "0.72519785", "0.7211647", "0.71518475", "0.71414745", "0.71414745", "0.71414745", "0.71414745", "0.7138429", "0.7127911", "0.7110148", "0.7110148", "0.7110148", "0.7110148", "0.707505", "0.707505", "0.707505", "0.707505", "0.707505", "0.707505", "...
0.0
-1
Deletes the object from the datastore.
def PTpj(YKHO): nPIK = YKHO.db.pipeline() nPIK.delete(YKHO.key()) nPIK.execute()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, YEnM=None):\n try:\n if YEnM is not None:\n YKHO.__engine.remove({'id': YEnM})\n except Exception as e:\n print('delete')\n print(tTpl)", "def PTpj(YKHO, YEnM):\n YKHO.backend.delete(YEnM)", "def PTpj(YKHO):\n YKHO._client.request(VksW, path=YKHO._obje...
[ "0.8023899", "0.80142695", "0.79575336", "0.7922991", "0.79098064", "0.79098064", "0.79098064", "0.79098064", "0.79098064", "0.79098064", "0.79066575", "0.79066575", "0.7881614", "0.78568536", "0.78568536", "0.783106", "0.783106", "0.783106", "0.783106", "0.783106", "0.783106...
0.71751475
89
Returns the id of the instance. Raises MissingID if the instance is new.
def id(YKHO): if not hasattr(YKHO, '_id'): raise nDd1 return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o_gm(YKHO):\n return YKHO.fetch('id')", "def eG8P(YKHO, zeTD, **B2fa):\n KAOR = YKHO._get_instance(zeTD, **B2fa)\n return KAOR.id", "def o_gm(YKHO) -> int:\n return qe4Y.get(YKHO, 'instance_id')", "def o_gm(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'instance_id')", "def o_g...
[ "0.8204671", "0.798547", "0.7957145", "0.78059864", "0.78059286", "0.77988124", "0.77464", "0.77464", "0.77464", "0.77464", "0.77464", "0.77464", "0.77464", "0.7687677", "0.7655949", "0.7622434", "0.7622434", "0.7622434", "0.7622434", "0.7587374", "0.7587374", "0.7587374", ...
0.82080984
0
Return the attributes of the model. Returns a dict with models attribute name as keys and attribute descriptors as values.
def azoT(Emd4): return dict(Emd4._attributes)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o8Kj(YKHO):\n return dict(((G1Hx, getattr(YKHO, G1Hx)) for G1Hx in YKHO.fields))", "def azoT(YKHO):\n azoT = {'BaseModel': {'id': str, 'created_at': qcWV.datetime, 'updated_at': qcWV.datetime}, 'User': {'email': str, 'password': str, 'first_name': str, 'last_name': str}, 'State': {'name': str}, 'City':...
[ "0.7568568", "0.7500955", "0.74655503", "0.7403573", "0.7403573", "0.7365732", "0.7365511", "0.7342819", "0.73080075", "0.7304846", "0.727949", "0.7254613", "0.72391117", "0.72146744", "0.7205394", "0.7203636", "0.71595263", "0.7117781", "0.7113052", "0.7111434", "0.71053904"...
0.699231
41
Returns the list of field names of the model.
def V_D6(YKHO): return YKHO.attributes.values() + YKHO.references.values()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kHEH(YKHO) -> bdIy[str]:\n return YKHO.config.get_model_fields(YKHO.opts.model)", "def Wq02(Emd4):\n if not hasattr(Emd4, '__fields__'):\n raise n6lj('fields not set')\n ZWCE = []\n for Jyyj in Emd4.__fields__.values():\n ZWCE.append(Jyyj.name)\n return ZWCE", "def zJN_(YKHO):\...
[ "0.8839974", "0.8716951", "0.8605006", "0.8564336", "0.83409435", "0.8244289", "0.8150884", "0.8136908", "0.8004365", "0.7946344", "0.79421306", "0.7942045", "0.7773526", "0.7758712", "0.7736715", "0.77289075", "0.77058136", "0.76840675", "0.7671078", "0.7630673", "0.76090485...
0.0
-1
Quicksort (sometimes called partitionexchange sort) is an efficient sorting algorithm. Developed by Tony Hoare in 1959. It is still a commonly used algorithm for sorting. When implemented well, it can be about two or three times faster than its main competitors, merge sort and heapsort.
def lguw(YKHO): YKHO.quick(YKHO.id, 0, len(YKHO.id) - 1) return YKHO.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vk7q(ezWE, gqRb, ODP9):\n if gqRb < ODP9:\n mM0K = Qrt_(ezWE, gqRb, ODP9)\n vk7q(ezWE, gqRb, mM0K - 1)\n vk7q(ezWE, mM0K + 1, ODP9)", "def vdyO(ezWE):\n return CnOE(ezWE, 0, len(ezWE))", "def lguw(nPrm):\n u54L = len(nPrm)\n return d7og(nPrm, 0, u54L - 1)", "def lguw(ezWE...
[ "0.7955589", "0.78963584", "0.78550726", "0.78247875", "0.7816318", "0.781287", "0.7776698", "0.7762677", "0.77534354", "0.77156204", "0.76754004", "0.7652377", "0.76452184", "0.7626576", "0.76241595", "0.762139", "0.7607348", "0.75999266", "0.7576511", "0.75739104", "0.75682...
0.0
-1
itersubclasses(cls) Generator over all subclasses of a given class, in depth first order. >>> list(itersubclasses(int)) == [bool] True
def QTsd(Emd4, LwWV=None): if not isinstance(Emd4, type): raise TypeError('itersubclasses must be called with new-style classes, not %.100r' % Emd4) if LwWV is None: LwWV = set() try: zbDt = Emd4.__subclasses__() except TypeError: zbDt = Emd4.__subclasses__(Emd4) for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w2nW(Emd4, LwWV=None):\n if not isinstance(Emd4, type):\n raise TypeError('itersubclasses must be called with new-style classes, not %.100r' % Emd4)\n if LwWV is None:\n LwWV = set()\n try:\n zbDt = Emd4.__subclasses__()\n except TypeError:\n zbDt = Emd4.__subclasses__(E...
[ "0.7725067", "0.7509242", "0.7374169", "0.7339065", "0.7338923", "0.7142913", "0.70743906", "0.7053797", "0.70427185", "0.70139295", "0.6987061", "0.69426656", "0.6941403", "0.69383544", "0.692192", "0.6868739", "0.68405724", "0.6816288", "0.6816288", "0.675586", "0.6746496",...
0.74721813
2
Get L2 weight regularizer.
def xGDc(oNEO): return ZylS.contrib.layers.l2_regularizer(oNEO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W_oh(WKvO):\n return ZylS.nn.l2_loss(WKvO)", "def UAk7(XcU5, jLje):\n N77f = jLje * oyIN.sum(oyIN.square(XcU5))\n Ro40 = 2 * oyIN.array(XcU5) * jLje\n return (N77f, Ro40)", "def UAk7(XcU5, jLje):\n N77f = jLje * oyIN.trace(oyIN.matmul(XcU5.T, XcU5))\n Ro40 = 2 * jLje * XcU5\n return (N...
[ "0.7109255", "0.6724722", "0.67165834", "0.67055374", "0.66831094", "0.6659413", "0.6656102", "0.66331035", "0.66026396", "0.65989876", "0.6595973", "0.6569354", "0.654782", "0.646678", "0.64476", "0.6386175", "0.6367702", "0.63241446", "0.6299193", "0.627881", "0.62546146", ...
0.79822266
0
Retrieves the properties of a certain device
def HCnI(YKHO): Gced, Y8Po = YKHO.devicesAPI.GetDeviceProperties(YKHO.deviceResponses.testDevice) for H5ew, BWXx in Gced.iteritems(): YKHO.assertEqual(H5ew in YKHO.deviceResponses.deviceProperties, True) if H5ew in YKHO.deviceResponses.deviceProperties: YKHO.assertEqual(BWXx, YKHO.de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iso7(smW4):\n Pjr8 = d2t1.SystemBus()\n begE = Pjr8.get_object('org.freedesktop.Hal', smW4)\n lhy8 = begE.GetAllProperties(dbus_interface='org.freedesktop.Hal.Device')\n return dict(lhy8)", "def tCDn(begE: Union[flow.device, str, int]=None):\n begE = wEf4(begE, optional=True)\n return _uqo....
[ "0.79057133", "0.7727748", "0.757147", "0.7468332", "0.7284892", "0.7252288", "0.7220001", "0.70598674", "0.70389974", "0.69988406", "0.6916837", "0.6897739", "0.6887117", "0.68723553", "0.68537635", "0.6818142", "0.68054783", "0.6792442", "0.67912924", "0.678524", "0.6779039...
0.7204628
7
Initialize coordinates for all nodes. Coordinates that are not known are marked with None.
def Zjb4(YKHO): YKHO._coords = [None for YRbF in range(len(YKHO._g))] for Q6kx in YKHO._g: YKHO._coords[Q6kx] = [[None for r845 in range(YKHO._t)] for YRbF in range(YKHO._m)] for YRbF in range(YKHO._m): for r845 in range(YKHO._t): if GaMm(Q6kx, YRbF, r845, YKHO._seed)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CbXR(YKHO):\n pass", "def qcxY(YKHO):\n YKHO.coords = tuKI.random(3) * 2 - 1", "def uIcm(YKHO):\n [bTKY.initialize_coordinates() for bTKY in YKHO]", "def zCfS(YKHO):\n ive3 = []\n for YRbF in YKHO.model.models:\n if hasattr(YRbF, 'positions') and (YRbF.positions is None or len(YRbF....
[ "0.7635261", "0.7268982", "0.726747", "0.715435", "0.710789", "0.7059838", "0.69774127", "0.6785315", "0.6722434", "0.6675569", "0.6655082", "0.6635372", "0.6603527", "0.6536029", "0.6413304", "0.63974255", "0.6373861", "0.6365151", "0.635838", "0.6343111", "0.63195324", "0...
0.7711243
0
Describes whether the control scope includes one or more types of resources, such as EFS or RDS.
def Eblr(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'compliance_resource_types')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fbrv(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'resource_types')", "def Fbrv(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'resource_types')", "def Fbrv(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'resource_types')", "def Fbrv():\...
[ "0.6654122", "0.6654122", "0.6530404", "0.6498748", "0.63357764", "0.63089985", "0.6202913", "0.618843", "0.611877", "0.61139005", "0.6021929", "0.6017244", "0.6017244", "0.6017244", "0.6017244", "0.59780204", "0.59780204", "0.59780204", "0.59780204", "0.59780204", "0.5978020...
0.65520495
2
Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to `{ WindowsVSS = "enabled" }` to enable Windows VSS backup option and create a VSS Windows backup.
def KTvC(YKHO) -> qe4Y.Input[GySg[str, qe4Y.Input[str]]]: return qe4Y.get(YKHO, 'backup_options')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _W5y(YKHO):\n YKHO._set_subclient_properties(\"_commonProperties['enableBackup']\", True)", "def jWPU(YKHO, jWPU):\n YKHO._set_subclient_properties(\"_snap_copy_info['dumpBasedBackupCopyOption']\", jWPU)", "def EVLG(YKHO, xAU6):\n return xAU6", "def JKMw(YKHO) -> h8nf[qe4Y.Input['BackupArgs']]:\...
[ "0.60161227", "0.59574115", "0.55337507", "0.54797024", "0.54601175", "0.5444414", "0.5442008", "0.5416805", "0.54096806", "0.53998446", "0.53998446", "0.53998446", "0.5387822", "0.5346061", "0.5321914", "0.52658206", "0.52641785", "0.5246018", "0.5212218", "0.52056646", "0.5...
0.52794117
15
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below.
def MHtH(YKHO) -> h8nf[qe4Y.Input['PlanRuleLifecycleArgs']]: return qe4Y.get(YKHO, 'lifecycle')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MHtH(YKHO) -> 'outputs.LifecycleResponse':\n return qe4Y.get(YKHO, 'lifecycle')", "def MHtH(YKHO, MHtH):\n YKHO._lifecycle = MHtH", "def MHtH(YKHO):\n return YKHO._lifecycle", "def nRKz(YKHO):\n return YKHO._lifecycle_details", "def pwxl(YKHO):\n return YKHO._lifecycle_state", "def pwx...
[ "0.69088703", "0.6396894", "0.6384532", "0.62132967", "0.6102625", "0.6102625", "0.6102625", "0.6102625", "0.6102625", "0.6102625", "0.60892063", "0.60738325", "0.59729767", "0.5858688", "0.5853568", "0.5853568", "0.5843625", "0.58269465", "0.5766862", "0.5766862", "0.5646680...
0.5939752
13
An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup.
def bcHn(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'destination_vault_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fy17(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'destination_arn')", "def Fy17(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'destination_arn')", "def Fy17(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'destination_arn')", "def Fy17(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(Y...
[ "0.65884274", "0.65884274", "0.65884274", "0.65884274", "0.6276712", "0.6212234", "0.6187334", "0.6128701", "0.6096769", "0.60657924", "0.59832036", "0.58812505", "0.57852536", "0.57621485", "0.57621485", "0.574366", "0.5732599", "0.5686334", "0.5617418", "0.55470115", "0.552...
0.7309036
0
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Fields documented below.
def MHtH(YKHO) -> h8nf[qe4Y.Input['PlanRuleCopyActionLifecycleArgs']]: return qe4Y.get(YKHO, 'lifecycle')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MHtH(YKHO) -> 'outputs.LifecycleResponse':\n return qe4Y.get(YKHO, 'lifecycle')", "def MHtH(YKHO, MHtH):\n YKHO._lifecycle = MHtH", "def MHtH(YKHO):\n return YKHO._lifecycle", "def nRKz(YKHO):\n return YKHO._lifecycle_details", "def pwxl(YKHO):\n return YKHO._lifecycle_state", "def pwx...
[ "0.69088703", "0.6396894", "0.6384532", "0.62132967", "0.6102625", "0.6102625", "0.6102625", "0.6102625", "0.6102625", "0.6102625", "0.60892063", "0.60738325", "0.59729767", "0.5939752", "0.5853568", "0.5853568", "0.5843625", "0.58269465", "0.5766862", "0.5766862", "0.5646680...
0.5858688
14
Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`.
def lcrb(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'delete_after')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k36O(YKHO) -> int:\n return qe4Y.get(YKHO, 'automatic_backup_retention_days')", "def srET(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'backup_retention_days')", "def k36O(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'automatic_backup_retention_days')", "def k36O(YKHO) -> h8nf[qe4Y.Inp...
[ "0.6418368", "0.6196307", "0.6160009", "0.6160009", "0.60853714", "0.60796326", "0.6070329", "0.596586", "0.596586", "0.596586", "0.596586", "0.59406894", "0.57656497", "0.5690552", "0.5690552", "0.5690552", "0.5683663", "0.567264", "0.5668853", "0.5656509", "0.5656509", "0...
0.5391989
50
Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`.
def lcrb(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'delete_after')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k36O(YKHO) -> int:\n return qe4Y.get(YKHO, 'automatic_backup_retention_days')", "def srET(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'backup_retention_days')", "def k36O(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'automatic_backup_retention_days')", "def k36O(YKHO) -> h8nf[qe4Y.Inp...
[ "0.641807", "0.61960435", "0.6159288", "0.6159288", "0.60868585", "0.6078896", "0.60700375", "0.5965238", "0.5965238", "0.5965238", "0.5965238", "0.59396106", "0.57657224", "0.56891054", "0.56891054", "0.56891054", "0.56835914", "0.56724477", "0.56710654", "0.5655142", "0.565...
0.5393133
51
The unique name of the S3 bucket that receives your reports.
def cFqg(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 's3_bucket_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cFqg(YKHO) -> str:\n return qe4Y.get(YKHO, 's3_bucket_name')", "def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')", "def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')", "def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')", "def l7rj(YKHO):\n return YKHO...
[ "0.81042176", "0.8089192", "0.8089192", "0.8089192", "0.7974506", "0.7885395", "0.7882175", "0.7841443", "0.78406477", "0.7774515", "0.77124065", "0.76905334", "0.76558787", "0.76010585", "0.7517593", "0.7508131", "0.7508131", "0.7508131", "0.7508131", "0.7508131", "0.7508131...
0.7558757
14
Initializes an empty Deque
def FIMM(YKHO): YKHO.items = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._data = [None] * SwiN.DEFAULT_CAPACITY\n YKHO._size = 0\n YKHO._front = 0\n YKHO._back = 0", "def FIMM(YKHO):\n YKHO._data = [None] * LpYu.DEFAULT_CAPACITY\n YKHO._size = 0\n YKHO._front = 0", "def FIMM(YKHO):\n YKHO._data = [None] * LpYu.DEFAULT_CAPACITY\n YKH...
[ "0.79800564", "0.7795023", "0.7763457", "0.7763457", "0.7763457", "0.7550325", "0.7512692", "0.75106174", "0.75055254", "0.75055254", "0.7452028", "0.73960274", "0.7395165", "0.73495036", "0.73495036", "0.73466325", "0.7339316", "0.7339316", "0.73332936", "0.73179185", "0.731...
0.0
-1
Computes the number of elements in the Deque
def szAg(YKHO): return len(YKHO.items)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n jvSB = YKHO.head\n UHFx = 0\n while jvSB != None:\n UHFx += 1\n jvSB = jvSB.get_next()\n return UHFx", "def zNig(YKHO):\n jvSB = YKHO.head\n UHFx = 0\n while jvSB:\n UHFx += 1\n ...
[ "0.7719402", "0.76611966", "0.7623674", "0.7608529", "0.75675887", "0.755743", "0.75244516", "0.74931306", "0.74931306", "0.7482478", "0.7446088", "0.7421106", "0.74187464", "0.73729414", "0.73442644", "0.73327047", "0.733024", "0.73110324", "0.7296793", "0.7292657", "0.72897...
0.0
-1
Inserts an element at the back of the Deque
def Rb2A(YKHO, tTpl): YKHO.items.append(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qKPK(hy32: Deque, d6pt: int, BWXx: any) -> None:\n hy32.rotate(-d6pt)\n hy32.appendleft(BWXx)\n hy32.rotate(d6pt)", "def J7qW(YKHO, BWXx):\n if YKHO.is_empty():\n BdN0 = VkCh(BWXx)\n YKHO.head = BdN0\n YKHO.tail = BdN0\n YKHO.size = 1\n else:\n BdN0 = VkCh(BW...
[ "0.74133414", "0.7183611", "0.71298903", "0.7124797", "0.70726544", "0.70101064", "0.70101064", "0.7009654", "0.69895834", "0.69337976", "0.6903142", "0.6875647", "0.6862097", "0.6789564", "0.6761988", "0.6740635", "0.66997266", "0.6694117", "0.6646163", "0.6640323", "0.66340...
0.65660274
22
Removes and returns the last element
def pdaJ(YKHO): if YKHO.is_empty(): raise IndexError() return YKHO.items.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qeks(YKHO) -> ImMB:\n wEf2 = YKHO.array[YKHO.size - 1]\n YKHO.array[YKHO.size - 1] = None\n return wEf2", "def Qeks(YKHO):\n if YKHO.size == 0:\n return None\n XVAW = YKHO.last.val\n if YKHO.size == 1:\n YKHO.head = None\n YKHO.last = None\n else:\n YKHO.last ...
[ "0.83281595", "0.82853806", "0.8216988", "0.8199412", "0.8094239", "0.8078397", "0.798707", "0.7955603", "0.79261655", "0.7872521", "0.7861227", "0.77780414", "0.77498835", "0.7741772", "0.7726913", "0.772059", "0.77094907", "0.7696817", "0.76854056", "0.7660413", "0.7651414"...
0.0
-1
Checks if the Deque is empty
def FBfn(YKHO): return len(YKHO) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsmZ(YKHO) -> bool:\n if len(YKHO.que) == 0:\n return True\n else:\n return False", "def lsmZ(YKHO) -> bool:\n return len(YKHO.que) == 0", "def lsmZ(YKHO) -> bool:\n return YKHO.que.empty()", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO...
[ "0.85074717", "0.85056525", "0.83172053", "0.81864524", "0.81735045", "0.81710875", "0.81206805", "0.8082637", "0.8069811", "0.80690354", "0.8067274", "0.8057589", "0.8032909", "0.8030323", "0.7993584", "0.7993584", "0.7993584", "0.79493093", "0.7941823", "0.79359514", "0.793...
0.0
-1
A string representation of this Deque
def wHJl(YKHO): return 'Deque([{0}])'.format(','.join((str(ZfUD) for ZfUD in YKHO)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n if YKHO.is_empty():\n return 'Empty queue'\n hkWs = [str(YKHO.data[(YKHO.head + YRbF) % YKHO.capacity]) for YRbF in range(YKHO.size)]\n return 'Queue: ' + ', '.join(hkWs)", "def zAg0(YKHO):\n gGq6 = ''\n if YKHO.size == 0:\n return 'None'\n for YRbF in range(len(...
[ "0.82209", "0.8162179", "0.80009216", "0.78895605", "0.77836233", "0.7777136", "0.7726896", "0.771998", "0.77149117", "0.764956", "0.7640639", "0.7634287", "0.7633542", "0.75545377", "0.75481874", "0.75048244", "0.74255925", "0.7417559", "0.73929685", "0.73884106", "0.7299825...
0.7973736
3
Returns a new Signature object where all arguments are positional only
def uSYl(wEsz: Signature) -> GVbD: rosz = [] for xqoZ in wEsz.parameters.values(): if xqoZ.kind in (XDS4.KEYWORD_ONLY, XDS4.VAR_KEYWORD): rosz.append(xqoZ) elif xqoZ.kind == XDS4.POSITIONAL_OR_KEYWORD: rosz.append(xqoZ.replace(kind=XDS4.KEYWORD_ONLY)) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return GVbD(required=YKHO.required, optional=YKHO.optional, vararg=YKHO.vararg, accepts_options=YKHO.accepts_options, is_method=YKHO.is_method)", "def exfI(ZWCE):\n return GVbD((VSbH(mWFP, VSbH.POSITIONAL_OR_KEYWORD, default=None) for mWFP in ZWCE))", "def nrOS(YKHO, *qIxc, **B2fa):\n ...
[ "0.6539556", "0.6524885", "0.64613503", "0.6126225", "0.6109598", "0.60415375", "0.5987984", "0.5978126", "0.59657604", "0.5930205", "0.5919849", "0.5919849", "0.5873419", "0.5844229", "0.5817125", "0.5760886", "0.5760886", "0.5755013", "0.57254285", "0.5719968", "0.5718912",...
0.61858654
3
Return the MODULEENTRY32 structure for the module that contains the address specified.
def yC15(YKHO, UTX6): EmMj = None for yR_P in YKHO.iterate_modules(): if yR_P.modBaseAddr < UTX6 < yR_P.modBaseAddr + yR_P.modBaseSize: EmMj = jth9.copy(yR_P) return EmMj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vfwJ(YKHO):\n return J8uC.SBAddress_GetModule(YKHO)", "def FlkD(UTX6):\n return BlNT.unpack('<L', poLx[UTX6:UTX6 + 4])[0]", "def x2TO(YKHO, UTX6):\n raise NotImplementedError", "def UPtg(YKHO) -> Swre:\n ...", "def i5WT(YKHO, UTX6):\n for dHat in YKHO.system_dlls:\n if dHat.base <...
[ "0.5556571", "0.5522819", "0.5379589", "0.5340667", "0.5301735", "0.52191645", "0.5130967", "0.51168305", "0.51145864", "0.5089783", "0.5032098", "0.49834055", "0.4977508", "0.49612758", "0.4900949", "0.48551273", "0.4839725", "0.4829679", "0.48064673", "0.4802346", "0.479247...
0.6463723
0