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
Create a Postgres database for the tests, and drop it when the tests are done.
def atkZ(QePW): bkil = LV7V.DB_OPTS.get('username') jeeF = LV7V.DB_OPTS.get('host') jmUs = LV7V.DB_OPTS.get('port') rZ7a = LV7V.DB_OPTS['database'] KI4Z = LV7V.DB_OPTS.get('password') unwe = _5Fu(bkil, jeeF, jmUs, rZ7a, LV7V.POSTGRES_VER, KI4Z) try: unwe.init() except GWiR: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def atkZ():\n w2B8 = ehoX.connect(dbname='postgres')\n w2B8.autocommit = True\n w2B8.set_isolation_level(0)\n QZBC(w2B8, '02_create_new_database.sql')\n w2B8.close()", "def atkZ():\n _gH8 = 'expensetracker'\n j8AR = 'beta'\n tadn = 'expensetracker'\n WY3t('psql -U postgres -c \"DROP RO...
[ "0.776207", "0.7680002", "0.76642394", "0.757462", "0.7534672", "0.7435785", "0.739832", "0.73600656", "0.73262256", "0.732539", "0.728773", "0.728773", "0.728773", "0.728773", "0.728773", "0.728773", "0.728773", "0.728773", "0.728773", "0.728773", "0.728773", "0.7232359", ...
0.7403443
6
Return Z(beta) / Z(0).
def h8Lx(YKHO): return YKHO.overall_norm ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _gQ_(epBp, WKvO, znmT):\n return 3 * (4 * epBp ** 2 - znmT * WKvO ** 2) / 4 / znmT / (1 + WKvO)", "def XVR1(YKHO):\n return oyIN.matmul(YKHO.sigma_zinv, YKHO.sigma_zw)", "def RHJb(epBp, WKvO, znmT):\n return -6 * epBp / znmT / (1 + WKvO)", "def tjUW(Cwt5: float, UqYS: float) -> float:\n retur...
[ "0.7207195", "0.71908647", "0.67439836", "0.67266196", "0.65687174", "0.6522762", "0.65185684", "0.65185684", "0.65185684", "0.6507113", "0.6436142", "0.6432959", "0.64171547", "0.64145976", "0.64072835", "0.63866526", "0.63737375", "0.6356866", "0.63502914", "0.63470757", "0...
0.0
-1
Inits queue with given size.
def FIMM(YKHO, zNig): YKHO.size = zNig YKHO.last_valid = 0 YKHO.q = [None] * zNig YKHO.modder = YKHO.ModIndex(zNig)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, zNig):\n YKHO.size = zNig\n YKHO.queue = []", "def FIMM(YKHO, zNig):\n YKHO.queue = g760.deque(maxlen=zNig)", "def FIMM(YKHO, zNig):\n YKHO.queue = g760.deque(maxlen=zNig)", "def FIMM(YKHO, zNig: int):\n YKHO.size = zNig\n YKHO.queue = []\n YKHO.sum = 0", "def FIMM(YKHO,...
[ "0.7813", "0.77176875", "0.76755893", "0.7579916", "0.7481742", "0.73940295", "0.72465456", "0.7217905", "0.7099745", "0.7090391", "0.7063163", "0.6991237", "0.69631743", "0.68137074", "0.6805051", "0.6799446", "0.67937726", "0.67270404", "0.6659662", "0.6647465", "0.6645319"...
0.65062517
35
Returns an int64_list from a bool / enum / int / uint.
def Oety(BWXx): return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo", ...
[ "0.68822104", "0.6595804", "0.6461252", "0.6448161", "0.6367609", "0.62926817", "0.6269916", "0.621823", "0.6104528", "0.59533274", "0.5947467", "0.5901199", "0.5863832", "0.5863832", "0.58563983", "0.5844792", "0.58434534", "0.5829844", "0.5801042", "0.5793561", "0.5793561",...
0.55193657
51
Builds an embedding layer according to specification
def eFKZ(QeoX, lhva, mWFP=None): FRUf = X6a0(shape=(1,)) WKvO = DilS(QeoX, lhva, name=mWFP)(FRUf) WKvO = hekC(target_shape=(lhva,))(WKvO) return (FRUf, WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7di(eBSA, jXxl, Agjb):\n wjQX = ZylS.Variable(ZylS.random_uniform((jXxl, Agjb), -1, 1))\n Q1PJ = ZylS.nn.embedding_lookup(wjQX, eBSA)\n return Q1PJ", "def eFKZ(YKHO):\n with ZylS.name_scope('Embedding_Layer'):\n HhfJ = len(YKHO.vocab)\n q4ee = len(YKHO.embed[0])\n aFCP = Zyl...
[ "0.7847509", "0.74038506", "0.7232749", "0.71730524", "0.70281374", "0.7011193", "0.68792635", "0.6869052", "0.6842294", "0.6838194", "0.68053776", "0.67777616", "0.6740172", "0.6727347", "0.67109203", "0.6710299", "0.6694613", "0.66663635", "0.66533905", "0.66500413", "0.664...
0.6686802
17
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) Gq8e = 3 bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() if pan_.ndimension() > 1: pan_ = pan_.max(1)[1] gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R...
[ "0.76427615", "0.74189496", "0.7418079", "0.72710466", "0.72456723", "0.72446615", "0.7237539", "0.72213703", "0.7210107", "0.7058935", "0.6852219", "0.6786084", "0.67836976", "0.6768417", "0.67273885", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0....
0.0
-1
Does the font have a DSIG table?
def yU5h(E2QD): if 'DSIG' not in E2QD: yield (iFFG, 'ok') else: yield (K6V8, LuKW('found-DSIG', 'This font has a digital signature (DSIG table) which is only required - even if only a placeholder - on old programs like MS Office 2013 in order to work properly.\nThe current recommendation is to c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DsZj(E2QD):\n cSJa = {'cmap', 'head', 'hhea', 'hmtx', 'maxp', 'name', 'OS/2', 'post'}\n dUcA = {'cvt ', 'fpgm', 'loca', 'prep', 'VORG', 'EBDT', 'EBLC', 'EBSC', 'BASE', 'GPOS', 'GSUB', 'JSTF', 'DSIG', 'gasp', 'hdmx', 'LTSH', 'PCLT', 'VDMX', 'vhea', 'vmtx', 'kern'}\n w2dN = [y7GR for y7GR in dUcA if y7G...
[ "0.59934574", "0.59934574", "0.5824857", "0.5736564", "0.5736564", "0.5735894", "0.569441", "0.5688455", "0.5677906", "0.5677906", "0.56572485", "0.56278217", "0.56196815", "0.55831844", "0.5579034", "0.5579034", "0.5538577", "0.5521863", "0.5506661", "0.5506661", "0.54903156...
0.68253064
0
Initializer for the multi_taper_SNR object
def FIMM(YKHO, input=None, lUK_=None, qbr2=False, eajG=False): YKHO.input = input YKHO.signal, YKHO.noise = h3Pv(input) YKHO.bandwidth = lUK_ YKHO.adaptive = qbr2 YKHO.low_bias = eajG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, hPrG, Bj8b):\n YKHO.snps = hPrG\n YKHO.phenotype = Bj8b", "def FIMM(YKHO):\n super(FGEj, YKHO).__init__(name='trise', observed=False)", "def FIMM(YKHO, Tbe_: float=10.0, A4Ls: Tuple[float, float]=(0.0, 0.0), UTpH: Tuple[float, float]=(0.0, 0.0), WTkW: float=1.0):\n super().__init__(c...
[ "0.6361351", "0.62873816", "0.62516755", "0.6224382", "0.6122122", "0.612157", "0.60911614", "0.6089674", "0.60531944", "0.6003193", "0.59939253", "0.5990127", "0.59710664", "0.5948857", "0.59174925", "0.59138083", "0.5893346", "0.58692956", "0.58531463", "0.58289856", "0.581...
0.0
-1
Test if an already existing user tries to register
def t8aO(YKHO): iQ7K(YKHO, 'Some', 'Name', 'another@gmail.com', 'aaaAAA111') with YKHO.client: geh0 = iQ7K(YKHO, 'Dalin', 'Oluoch', 'another@gmail.com', 'aaaAAA111') nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertTrue(nPrm['status'] == 'fail') YKHO.assertTrue(nPrm['message'] ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YcIQ(YKHO):\n mv1M.objects.create_user('existing@example.com', 'existing@example.com', '123existing')\n geh0 = YKHO.client.post('/o/register', {'email': 'existing@example.com', 'password': '123existing', 'terms_acceptance': True})\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(...
[ "0.79712856", "0.79350907", "0.77660507", "0.76720273", "0.7506476", "0.7480796", "0.74105114", "0.73593783", "0.73551697", "0.7318291", "0.7296268", "0.72917557", "0.728213", "0.7263887", "0.72618484", "0.72223836", "0.72191167", "0.72113657", "0.7206867", "0.7196935", "0.71...
0.66571075
95
Test if user enters the wrong email
def R697(YKHO): with YKHO.client: geh0 = iQ7K(YKHO, 'Dalin', 'Oluoch', 'anothergmail.com', 'aaaAAA111') nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertTrue(nPrm['status'] == 'fail') YKHO.assertTrue(nPrm['message'] == 'Validation errors.') YKHO.assertTrue(geh0.content_type =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NDUF(YKHO):\n pass", "def Bt7w(YKHO):\n D3lj = input('Email: ').strip()\n if D3lj is None or D3lj == '':\n print(YKHO.INVALID_INPUT)\n YKHO.display_cust_unlock()\n else:\n return D3lj", "def Bt7w(YKHO, D3lj):\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if...
[ "0.7915598", "0.7787377", "0.7774535", "0.77604157", "0.77096564", "0.75518966", "0.75518966", "0.7548443", "0.75349414", "0.74937814", "0.7446299", "0.7445429", "0.7414767", "0.7366799", "0.73470056", "0.7332964", "0.7332288", "0.7323587", "0.7321922", "0.7319019", "0.729804...
0.0
-1
Test for login of a not registereduser
def C2HA(YKHO): with YKHO.client: geh0 = CGuU(YKHO, 'another@gmail.com', 'aaaAAA111') nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertTrue(nPrm['status'] == 'fail') YKHO.assertTrue(nPrm['message'] == "Sorry, email 'another@gmail.com' does not exist.") YKHO.assertTrue(geh0.co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _H44(YKHO):\n YKHO.user.list_of_accounts = [{'username': 'Parseen', 'pwd': 'mypassword', 'email': 'david.parseen@yahoo.com'}]\n tO9_ = YKHO.user.login('nonuser@yahoo.com', 'idontevenhaveone')\n YKHO.assertEqual(tO9_, 'Account not registered, sign up')", "def _05g(YKHO):\n Ylbp = YKHO.client().pos...
[ "0.805826", "0.79458356", "0.7919867", "0.7917346", "0.77196324", "0.7659807", "0.76254034", "0.76254034", "0.76254034", "0.76254034", "0.7598764", "0.7591861", "0.7574496", "0.7569983", "0.7406102", "0.73805517", "0.7336406", "0.7311062", "0.72941387", "0.7286501", "0.723111...
0.7336884
16
Test for invalid email while logging in
def NKPL(YKHO): with YKHO.client: geh0 = CGuU(YKHO, 'joegmail.com', 'aaaAAA111') nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertTrue(nPrm['status'] == 'fail') YKHO.assertTrue(nPrm['message'] == 'Validation errors.') YKHO.assertTrue(geh0.content_type == 'application/json') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NDUF(YKHO):\n pass", "def R697(YKHO):\n im04 = YKHO.login('Bo_wrong@example.com', 'Bo1995')\n YKHO.assertIn(b'Invalid email! Please try again', im04.data)", "def Lrio(YKHO):\n im04 = YKHO.login('wrong@email.com')\n assert im04.status_code in [404]\n assert b'The provided email is invalid'...
[ "0.8879", "0.78242165", "0.7704486", "0.75051355", "0.73828447", "0.71739274", "0.7119462", "0.7092057", "0.70652634", "0.7017356", "0.70051026", "0.69813544", "0.69536006", "0.69379807", "0.6922429", "0.69124645", "0.68967354", "0.68820167", "0.6864128", "0.6839974", "0.6835...
0.69588065
12
Generate a random string of fixed length
def TJC9(FVpJ=5): KoG3 = vIwR.ascii_lowercase oCyZ = ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))).upper() lCuN = ''.join(ZbWC.findall('[0-9]', str(qcWV.datetime.now()))) return oCyZ + lCuN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.86790425", "0.8572561", "0.8547258", "0.852836", "0.851953", "0.8431486", "0.84306955", "0.84141517", "0.8410671", "0.838781", "0.8344199", "0.8342652", "0.8339121", "0.83334655", "0.8322878", "0.82970816", "0.8291549", "0.8280295", "0.82800275", "0.82795703", "0.8262815",...
0.0
-1
Returns the current timestamp as an ISO8601 time
def E3oo(): exwG = qcWV.datetime.now() return '%04d-%02d-%02dT%02d:%02d:%02d' % (exwG.year, exwG.month, exwG.day, exwG.hour, exwG.minute, exwG.second)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3oo():\n return qcWV.now().strftime('%Y%m%dT%H%M%S')", "def aqVz() -> str:\n return str(qcWV.now().astimezone())", "def aqVz() -> str:\n return str(qcWV.now().astimezone())", "def SNmG():\n return aCN7(wzkt())", "def E3oo():\n return qcWV.datetime.now().strftime('%Y-%m-%d-T%H-%M-%S')", ...
[ "0.79599655", "0.7882267", "0.7882267", "0.7643051", "0.7611295", "0.7544059", "0.749689", "0.74401885", "0.7434092", "0.7414801", "0.7402058", "0.73545414", "0.73104", "0.73046815", "0.72885007", "0.7282078", "0.7280685", "0.72740364", "0.7267963", "0.72604704", "0.7258439",...
0.76224047
4
Like timestamp, but just the numbers.
def CFP5(): exwG = qcWV.datetime.now() return '%04d%02d%02d%02d%02d%02d' % (exwG.year, exwG.month, exwG.day, exwG.hour, exwG.minute, exwG.second)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X2x9(YKHO, E3oo):\n return int(E3oo * 1000000.0)", "def E3oo(YKHO, a1PO):\n if isinstance(a1PO, qcWV):\n a1PO = ITS7.mktime(a1PO.timetuple())\n return a1PO - 631065600", "def M_Ra():\n M_Ra = (1459516622.1, 1459516622.2, 1459516622.3, 1459516623.0, 1459516623.1, 1459516623.3, 1459516624....
[ "0.6919378", "0.6772277", "0.6677465", "0.65541595", "0.64814615", "0.63953924", "0.6391543", "0.63282734", "0.63058114", "0.6192976", "0.61834365", "0.616754", "0.6157074", "0.61511034", "0.6120546", "0.6099835", "0.6068512", "0.6048619", "0.6022974", "0.60184264", "0.601661...
0.0
-1
Returns the memory usage (between 0.0 and 1.0) on this system, which is total memory free memory cached memory.
def MmP_(Emd4): K2d7 = Emd4.MemoryInfo() return (K2d7['MemTotal'] - K2d7['MemFree'] - K2d7['Cached']) / float(K2d7['MemTotal'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QUO2():\n return NBjn.memory_info().rss / 1024.0 ** 2", "def B7U_():\n NBjn = O0k5.Process()\n return NBjn.memory_info().rss / float(2 ** 20)", "def t5I6(YKHO):\n return YKHO.total_mem", "def _lEJ():\n try:\n import psutil\n Hv7E = mqdF(psutil.__version__)\n if Hv7E < ...
[ "0.8351866", "0.80991274", "0.80778897", "0.80132693", "0.7924828", "0.7865128", "0.7654336", "0.7642362", "0.763168", "0.7580143", "0.7578932", "0.7561593", "0.75514424", "0.7491898", "0.7461666", "0.743066", "0.7418507", "0.74144953", "0.7410928", "0.7373577", "0.73711276",...
0.8610762
0
Create an instance of the Aligner.
def FIMM(YKHO, d4r9: Analysis) -> None: YKHO.analysis = d4r9 YKHO.output_basename = Hy7s.path.join('REPORTS', YKHO.analysis.basename) YKHO.only_human = True YKHO.max_records_str = BfDw.get_picard_max_records_string(YKHO.analysis.parameters['picard_max_records']) YKHO.sort_tempdir = Hy7s.path.join(YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, NArs):\n Vlb9 = {'Application': 'Infernal'}\n Vlb9.update(NArs)\n YuQm.__init__(YKHO, Vlb9)", "def FIMM(YKHO, NArs):\n Vlb9 = {'min_pct': 75.0, 'min_len': 150, 'blast_db': None, 'template_filepath': None, 'pairwise_alignment_method': 'blast', 'Application': 'PyNAST', 'Algorithm': 'NAST...
[ "0.70814776", "0.6833375", "0.6664503", "0.64062136", "0.62592906", "0.56576014", "0.55688393", "0.54800266", "0.5377553", "0.5345019", "0.53145707", "0.52934265", "0.5245701", "0.5245421", "0.5187404", "0.51757675", "0.51574594", "0.51375043", "0.51354563", "0.51268804", "0....
0.0
-1
Resample all data in the dictionary to 1 Hz data. This function recursively looks for all dataframes in the dictionary and resamples data to 1 Hz using
def VgLG(Mjw9: Dict[str, Any]) -> cuzp[str, ImMB]: aCqS = {} for H5ew, BWXx in Mjw9.items(): if isinstance(BWXx, (rLdf.DataFrame, rLdf.Series)): aCqS[H5ew] = svWI(BWXx) elif isinstance(BWXx, dict): aCqS[H5ew] = VgLG(BWXx) else: raise TypeError('Invalid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VsGh(YKHO, L9AY, QTg7='5s'):\n for jQ3Z in L9AY:\n yield jQ3Z.resample(QTg7, fill_method='bfill')", "def VsGh(nPrm, vruP=16000):\n for mvm2 in nPrm:\n assert 'sample_rate' in mvm2\n assert 'wav' in mvm2\n fQqb = mvm2['sample_rate']\n Zog8 = mvm2['wav']\n if fQq...
[ "0.67451787", "0.6404874", "0.6007783", "0.57603705", "0.56952775", "0.56782204", "0.56607044", "0.5642602", "0.56016624", "0.5583797", "0.55751604", "0.55430216", "0.54909056", "0.5460196", "0.5451945", "0.53688246", "0.53585273", "0.53539455", "0.5352452", "0.528387", "0.52...
0.6414204
1
r"""Loads pretrianed weights to model.
def hxbM(C3ST, zRNV): vauY = Nh79(zRNV) if 'state_dict' in vauY: xA7f = vauY['state_dict'] else: xA7f = vauY BJY9 = C3ST.state_dict() af80 = U8Lr() vevH, WlTL = ([], []) for G1Hx, Ty9i in xA7f.items(): if G1Hx.startswith('module.'): G1Hx = G1Hx[7:] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n if isinstance(YKHO.pretrained, str):\n bo34 = UKxV()\n bo34.info(f'load model from: {YKHO.pretrained}')\n Nh79(YKHO, YKHO.pretrained, strict=False, logger=bo34)\n elif YKHO.pretrained is None:\n pass\n else:\n raise TypeError('pretrained must be a str o...
[ "0.76692337", "0.7443287", "0.7316537", "0.7286118", "0.7229796", "0.71891063", "0.7157569", "0.71416897", "0.7127207", "0.7119067", "0.704319", "0.7027611", "0.7010938", "0.69966173", "0.69303477", "0.6925683", "0.69127953", "0.6867772", "0.6840399", "0.6821841", "0.6821207"...
0.7080426
10
Blur the original image to achieve the requested level of blur init_sigma
def mVbU(YKHO): if YKHO.init_sigma > YKHO.cur_sigma: WTkW = PZyS(YKHO.init_sigma * YKHO.init_sigma - YKHO.cur_sigma * YKHO.cur_sigma) YKHO.data = apUX(YKHO.raw, WTkW) else: YKHO.data = YKHO.raw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AktH(VXjJ, M6vu=(5, 5), WTkW=10):\n zr3f = oyIN.zeros_like(VXjJ)\n XC5k.GaussianBlur(src=VXjJ, dst=zr3f, ksize=M6vu, sigmaX=0)\n return zr3f", "def IgYM(YKHO, VXjJ, Ot1W=3):\n return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W), 0)", "def lYjW(YKHO, d6hw, Ot1W, WTkW):\n NMPo = XC5k.GaussianBlur(d6hw...
[ "0.751022", "0.7463227", "0.7286162", "0.72624356", "0.7252277", "0.72099334", "0.72099334", "0.7175162", "0.7166989", "0.71255344", "0.71129066", "0.70982486", "0.70982486", "0.70982486", "0.70982486", "0.70982486", "0.70982486", "0.70982486", "0.70982486", "0.70982486", "0....
0.7438709
2
Calculate all sigma to blur an image within an octave
def Y3Dt(YKHO): if YKHO.data is None: YKHO._initial_blur() AOBR = YKHO.init_sigma EI5i = 0 YKHO.sigmas = [(AOBR, EI5i)] for YRbF in range(1, YKHO.scale_per_octave + 3): b5b8 = YKHO.init_sigma * (YKHO.dest_sigma / YKHO.init_sigma) ** (1.0 * YRbF / YKHO.scale_per_octave) Powu =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rgum(Xn71, exwG, pvd3=None):\n Oa1e = hvqX(exwG, sizey=pvd3)\n ZEU6 = Gaon.convolve(Xn71, Oa1e, mode='same')\n return ZEU6", "def YLnZ(YKHO, G1Hx, VXjJ):\n Wkjm = YKHO.sigma\n wEsz = [Wkjm, G1Hx * Wkjm, G1Hx * G1Hx * Wkjm, G1Hx * G1Hx * G1Hx * Wkjm, G1Hx * G1Hx * G1Hx * G1Hx * Wkjm]\n sXy7 ...
[ "0.7623635", "0.7279466", "0.7246422", "0.72202635", "0.7187415", "0.71213794", "0.7077226", "0.70205796", "0.7004607", "0.7002188", "0.69619244", "0.6929818", "0.6917997", "0.6917997", "0.68812877", "0.68627197", "0.6852142", "0.6852142", "0.6852142", "0.6852142", "0.6852142...
0.65550315
52
Converts a date to a millisecond accuracy timestamp. Equivalent to Date.UTC(d.year, d.month1, d.day) in Javascript
def ACWr(Csk6): return GRk0.timegm(qcWV.combine(Csk6, ITS7(0, 0, 0)).replace(tzinfo=FXGE.UTC).utctimetuple()) * 1000
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jO12(_c1T):\n return Ir3V(_c1T, float=True) * 1000.0", "def IJMq():\n return UsKa(h5YN())", "def DeWg(Csk6):\n if isinstance(Csk6, rLdf.tslib.Timestamp):\n if Csk6.tz != FXGE.utc:\n Csk6 = Csk6.tz_localize('UTC')\n elif Csk6.tzinfo != FXGE.utc:\n Csk6 = FXGE.utc.localiz...
[ "0.728515", "0.7048117", "0.6665483", "0.65586203", "0.6473058", "0.64467794", "0.63545495", "0.63019687", "0.62854236", "0.62761515", "0.6258863", "0.6236034", "0.61951363", "0.61670613", "0.61646944", "0.61426383", "0.60565823", "0.6056321", "0.6024606", "0.59626627", "0.59...
0.740372
0
Converts a datetime to a microsecond accuracy timestamp
def P0Lj(JRYC): C6wh = GRk0.timegm(JRYC.utctimetuple()) return C6wh * 1000000 + JRYC.microsecond
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJMq():\n return UsKa(h5YN())", "def L2ys(BWXx):\n return MF4A + qcWV.timedelta(microseconds=BWXx)", "def Z8x9(YEnM: 'datetime') -> float:\n g75m = ri_H(YEnM)\n return (g75m.days * 86400 + g75m.seconds) * 10 ** 6 + g75m.microseconds", "def jO12(_c1T):\n return Ir3V(_c1T, float=True) * 1000...
[ "0.72529066", "0.70968264", "0.7032166", "0.7006187", "0.6993755", "0.699352", "0.6958667", "0.6932001", "0.67451006", "0.6707826", "0.66934925", "0.6637661", "0.65551037", "0.65199524", "0.6482659", "0.64510804", "0.64466745", "0.6440227", "0.64201826", "0.63682145", "0.6329...
0.78731877
0
Converts a microsecond accuracy timestamp to a datetime
def oiCh(NmYP): return qcWV.utcfromtimestamp(NmYP / 1000000.0).replace(tzinfo=FXGE.utc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k_T9(BWXx):\n if not isinstance(BWXx, (int, Swre, float)):\n raise ValueError('Expecting a number, got %s instead' % type(BWXx).__name__)\n return QXXU + qcWV.timedelta(microseconds=BWXx)", "def QuBe(BWXx):\n assert isinstance(BWXx, qcWV.time)\n return qcWV.datetime(1970, 1, 1, BWXx.hour, ...
[ "0.72197497", "0.72195035", "0.72044027", "0.7151784", "0.69175553", "0.6827507", "0.67991424", "0.67348254", "0.67316675", "0.6656708", "0.662968", "0.66295", "0.662285", "0.6554271", "0.6492199", "0.6461113", "0.6452887", "0.6444923", "0.6387432", "0.6385543", "0.63840055",...
0.7604913
0
Gets the UTC start and end (exclusive) of a month
def n74p(vgXP, wzkt=None): if not wzkt: wzkt = rIAI.now() wzkt = wzkt.astimezone(FXGE.UTC) jHIC = wzkt.replace(day=1, hour=0, minute=0, second=0, microsecond=0) return (jHIC + enlf(months=vgXP), jHIC + enlf(months=vgXP + 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NQCc(lO87, x0eS):\n yKcO = qcWV.datetime(lO87, x0eS, 1)\n if x0eS == 12:\n Os4s = qcWV.datetime(lO87 + 1, 1, 1)\n else:\n Os4s = qcWV.datetime(lO87, x0eS + 1, 1)\n print(yKcO)\n print(Os4s)\n return (yKcO, Os4s)", "def fjgq(lO87, x0eS):\n wEtp = qcWV.date(lO87, x0eS, 1)\n ...
[ "0.7382513", "0.7311475", "0.7045957", "0.66243297", "0.6563402", "0.62430537", "0.6215595", "0.6173497", "0.6137645", "0.6006517", "0.5968439", "0.59126496", "0.5894336", "0.5866319", "0.58337104", "0.5827581", "0.5768964", "0.576167", "0.56839186", "0.5668931", "0.5654958",...
0.61849755
7
A list of monsters inside dungeon.
def U2l7(): MWFc = [('Elfy the Elf', 'A small elvin creature with a bow and arrows around its back.', 2, 1, 1), ('Bazilisk', 'A long snake with piercing eyes', 3, 2, 1), ('Shrak the Ogre', 'A large green ogre with a penchant for eating people', 4, 2, 2), ('Wanda the Witch', 'A tall scary looking witch riding a broo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HaqE(YKHO):\n BXRB = []\n epBp = 0\n while epBp < 10:\n Z9rn = 0\n while Z9rn == 0:\n WKvO = tuKI.randint(0, YKHO.map.width - 1)\n LVAh = tuKI.randint(0, YKHO.map.height - 1)\n if YKHO.map.map[WKvO][LVAh].blocked == False:\n BXRB.append(dl2...
[ "0.69287133", "0.63263077", "0.5886569", "0.5824322", "0.57758963", "0.5768761", "0.5732632", "0.57172227", "0.57103765", "0.5675186", "0.5659909", "0.5647063", "0.56430095", "0.5635332", "0.56214225", "0.5607423", "0.56003904", "0.5582513", "0.55810535", "0.55605525", "0.555...
0.6744559
1
sets the price of the Book Object
def rTNb(YKHO, wEf2): YKHO.price = wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hI0L(YKHO, hI0L):\n YKHO._price = hI0L", "def hI0L(YKHO, hI0L):\n YKHO._price = hI0L", "def hI0L(YKHO, hI0L):\n YKHO._price = hI0L", "def hI0L(YKHO, hI0L):\n YKHO._price = hI0L", "def Wb4o(YKHO, I_t4):\n YKHO.price = I_t4\n return YKHO.price", "def hI0L(YKHO, hI0L: float):\n YKHO...
[ "0.808748", "0.808748", "0.808748", "0.808748", "0.793506", "0.78641707", "0.7607287", "0.7455669", "0.734119", "0.7282174", "0.71559685", "0.71559685", "0.70682216", "0.70339733", "0.67559224", "0.65906763", "0.6582842", "0.6581897", "0.6484479", "0.64573675", "0.6444084", ...
0.7991626
4
Returns list of variables without scopes that start with exclude_scopes .
def jbKh(SII_, d6QS=None): if d6QS is not None: yUkU = [rrBf.strip() for rrBf in d6QS] mK7E = [SRYB for SRYB in Fz20.get_model_variables() if not oyIN.any([SRYB.op.name.startswith(aTqo) for aTqo in yUkU])] else: mK7E = [SRYB for SRYB in Fz20.get_model_variables()] return mK7E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hjmx():\n d9X6 = ['DeInceptionV4']\n yUkU = [rrBf.strip() for rrBf in d9X6]\n mK7E = []\n for SRYB in Fz20.get_model_variables():\n em9o = False\n for mlB2 in yUkU:\n if SRYB.op.name.startswith(mlB2):\n em9o = True\n break\n if not em9o:...
[ "0.720917", "0.69072914", "0.66063374", "0.6404244", "0.6290807", "0.6250691", "0.6105175", "0.6102679", "0.6044578", "0.6044243", "0.5991366", "0.59767663", "0.59064114", "0.5837804", "0.57819754", "0.5755795", "0.5755795", "0.5748342", "0.57453793", "0.5731443", "0.571667",...
0.72680116
0
Reflect pads input by adding pad_size to h x w dimensions
def hVLt(input, x_5g): if not x_5g: return input return ZylS.pad(input, [[0, 0], [x_5g, x_5g], [x_5g, x_5g], [0, 0]], 'REFLECT')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xso3(input, zNig):\n nyWF = ZylS.concat([input[:, :, -zNig[1]:, :], input, input[:, :, 0:zNig[1], :]], 2)\n nyWF = ZylS.concat([nyWF[:, -zNig[0]:, :, :], nyWF, nyWF[:, 0:zNig[0], :, :]], 1)\n return nyWF", "def e9aF(aBvC: Union[int, Tuple[int, int]], x_5g: Union[int, Tuple[int, int], Tuple[int, int,...
[ "0.7233095", "0.697727", "0.681642", "0.68118125", "0.6807323", "0.6792372", "0.67235726", "0.6717754", "0.66783816", "0.66661566", "0.6654894", "0.66179925", "0.6610793", "0.65578634", "0.6521711", "0.6488787", "0.6449627", "0.644732", "0.64341927", "0.6410827", "0.63995403"...
0.7037951
1
Return the timezone map, generating it if needed.
def bVn0(DpZH=fim5): DkLM() return yqG9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ooA1(DpZH=fim5):\n DkLM()\n return jCzQ", "def Es1_():\n HWrC = {}\n pPvV = RyEm.copy()\n for cF4F in FXGE.all_timezones:\n if not bool(pPvV):\n break\n if cF4F in pPvV:\n HWrC[cF4F] = cF4F\n pPvV.discard(cF4F)\n continue\n if '/...
[ "0.74370706", "0.6570189", "0.65298337", "0.6491904", "0.6434843", "0.6367455", "0.6088126", "0.6056394", "0.6036855", "0.60350317", "0.5913512", "0.5857469", "0.5765073", "0.5715903", "0.57140595", "0.5703094", "0.56877476", "0.56223917", "0.55516887", "0.5518664", "0.549725...
0.80604345
0
Retrieve the Haystack timezone
def rIAI(avvD, DpZH=fim5): HWrC = bVn0(version=DpZH) try: gwzY = HWrC[avvD] except KeyError: raise ValueError('%s is not a recognised timezone on this host' % avvD) return FXGE.timezone(gwzY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIAI():\n return ITS7.timezone", "def rIAI():\n pass", "def Vsdc():\n return YdD0.get_timezone(_meq())", "def rIAI(YKHO):\n return YKHO.data.get('timezone')", "def rIAI(YKHO):\n o7b4 = YKHO._router_request(YKHO._make_request_data('getTimeZone', data=dict()))\n return o7b4['data']", ...
[ "0.77479905", "0.7721948", "0.75319725", "0.7416946", "0.740689", "0.7368421", "0.7307687", "0.7137479", "0.7072381", "0.7056761", "0.7053391", "0.7005167", "0.7005167", "0.7005167", "0.6946315", "0.69427586", "0.69363457", "0.6882567", "0.6851317", "0.67188483", "0.6709543",...
0.7296891
7
Determine an appropriate timezone for the given date/time object
def bdHc(JRYC, DpZH=fim5): taFx = ooA1(version=DpZH) if JRYC.tzinfo is None: raise ValueError('%r has no timezone' % JRYC) try: gwzY = JRYC.tzinfo.zone return taFx[gwzY] except KeyError: pass except AttributeError: pass vgXP = JRYC.utcoffset() AFp_ = J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rsd1(yl4j):\n if not 'pytz' in str(type(yl4j)):\n yl4j = FXGE.timezone(yl4j)\n return yl4j", "def csYv(YKHO, JRYC):\n if jkBK(JRYC):\n if JRYC.tzinfo == None or JRYC.tzinfo.utcoffset(JRYC) == None:\n return JRYC\n else:\n return JRYC.astimezone(YKHO.args.tz...
[ "0.7208187", "0.67281437", "0.6471432", "0.64455163", "0.63459593", "0.631303", "0.62642616", "0.623493", "0.6224854", "0.61935174", "0.6175609", "0.6166606", "0.6164198", "0.61475104", "0.6121453", "0.6106717", "0.61061585", "0.6087046", "0.60728097", "0.60716987", "0.606527...
0.0
-1
Prints a confusion matrix, as returned by sklearn.metrics.confusion_matrix, as a heatmap.
def o3Oc(YsYU, tGDF, wytA=(10, 7), GAJY=14): bOjG = rLdf.DataFrame(YsYU, index=tGDF, columns=tGDF) LZpg, hh7H = QrM1.subplots(1, 1, figsize=wytA) try: Y4Ek = uuEx.heatmap(bOjG, annot=True, fmt='d') except ValueError: raise ValueError('Confusion matrix values must be integers.') Y4Ek....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RRX_(H96n, aTLP, SoKf):\n Crrw = list(set(H96n))\n fHMk = [CLNC + ' (' + str(vC9B) + ')' for CLNC, vC9B in zip(SoKf, Crrw)]\n Bcwd = YsYU(H96n, aTLP, labels=Crrw)\n LZpg = QrM1.figure(figsize=(20, 20))\n aNZO = LZpg.add_subplot(111)\n k13D = aNZO.matshow(Bcwd)\n QrM1.title('Confusion matri...
[ "0.8297264", "0.82069093", "0.8130575", "0.8099851", "0.800933", "0.79787314", "0.7917066", "0.7809642", "0.77835274", "0.7764853", "0.7712924", "0.76667136", "0.7654817", "0.76424736", "0.76402396", "0.76334995", "0.76270396", "0.7624555", "0.7618538", "0.7610822", "0.760697...
0.8130302
3
Test creating a new product category
def oIRU(YKHO): SKOh.objects.create(name='test name', description='new name') wReU = SKOh.objects.values()[0] pB3N = {'name': 'Test Tag', 'product_category_id': wReU.get('id'), 'unit_price': 100, 'quantity': 12, 'description': 'Test description'} Ylbp = YKHO.client.post(LgSG, pB3N) YKHO.assertEqual(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XnPT(YKHO):\n pass", "def XnPT(YKHO):\n Ylbp = YKHO.client().post('/categories/', data=YKHO.category)\n YKHO.assertEqual(Ylbp.status_code, 201)\n YKHO.assertIn('Stews', str(Ylbp.data))", "def R1ZT(YKHO):\n MC83 = YKHO.autheniticate()\n eOtH = qQXR.loads(MC83.data.decode()).get('token')\n ...
[ "0.8666074", "0.8083804", "0.80333173", "0.8018478", "0.80060804", "0.79673266", "0.7897619", "0.7886233", "0.7873304", "0.7858809", "0.76521426", "0.75928867", "0.75764745", "0.74452746", "0.7441107", "0.73869574", "0.7349622", "0.73455846", "0.73388535", "0.72651356", "0.72...
0.8309495
1
Test viewing a product detail
def HQfI(YKHO): SKOh.objects.create(name='Test Product Category #1', description='Test Description #1') SKOh.objects.create(name='Test Product Category #2', description='Test Description #1') SKOh.objects.create(name='Test Product Category #3', description='Test Description #1') wReU = SKOh.objects.valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K2Xv(YKHO):\n Lx3t = KeVq(supplier_id=YKHO.user)\n bD7m = iLuo(Lx3t.id)\n Ylbp = YKHO.client.get(bD7m)\n ZMzz = m1o5(Lx3t)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(Ylbp.data, ZMzz.data)", "def OTu7(YKHO):\n id = YKHO._create_model('product', YKHO.product_...
[ "0.85004866", "0.81269187", "0.8001429", "0.78238064", "0.77813274", "0.772321", "0.76463157", "0.75317925", "0.74812466", "0.73388106", "0.7258478", "0.72385216", "0.723755", "0.7053988", "0.70289075", "0.7020849", "0.6970813", "0.69646883", "0.69444525", "0.69102246", "0.68...
0.74560344
9
Return this command's name. The name of a Django management command is nothing more than the name of the file where it sits, with the extension stripped out.
def mWFP(YKHO): ZyXc = tq_1.getfile(type(YKHO)) pqZE = Hy7s.path.basename(ZyXc) Asoz, bGrB = Hy7s.path.splitext(pqZE) return Asoz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Asoz(YKHO):\n return None", "def PapV(YKHO, oUZx, type):\n return 'cmd_%s_%s' % (type, oUZx)", "def PMSI(qIxc):\n if len(qIxc) < 2:\n i15K.print_to_err(f'Name of command missing. Valid commands are - {UBZU}')\n return qIxc[1]", "def Cd_8(YKHO):\n for zFiD in YKHO.helplines:\n ...
[ "0.7221757", "0.68458074", "0.6797556", "0.6686816", "0.6499827", "0.6428203", "0.64199543", "0.6405688", "0.639326", "0.6377145", "0.62805665", "0.6224193", "0.6212611", "0.62076145", "0.62063813", "0.6203215", "0.6191002", "0.6135667", "0.6128957", "0.6126173", "0.609243", ...
0.7605796
0
Tokenize and Lemmatize text
def hGAh(iVRZ, qU5y=2): K9NE = CNQv.load('en', disable=['tagger', 'parser', 'ner']) Q5mJ = iVRZ.tolist() def RY7g(eOtH): return not eOtH.is_punct | eOtH.is_space and len(eOtH.text) >= qU5y i6lF = [] for A97Q in K9NE.pipe(Q5mJ): s2mk = [eOtH.lemma_ for eOtH in A97Q if RY7g(eOtH)] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n s2mk = dFss(l5Ny)\n LkXt = GFnk()\n zKDd = []\n for w2fL in s2mk:\n NM_J = LkXt.lemmatize(w2fL).lower().strip()\n zKDd.append(NM_J)\n return zKDd\n pass", "def wr3U(l5Ny):\n s2mk = Dhdw.word_tokenize(l5Ny)\n LkXt = Dhdw.WordNetLemmatizer()\n oNFO = []\n ...
[ "0.7661149", "0.75969845", "0.75545335", "0.7543559", "0.75218743", "0.7449707", "0.7449498", "0.74465096", "0.74316734", "0.7404093", "0.7404067", "0.73993343", "0.732467", "0.7315226", "0.73007417", "0.7290746", "0.7244986", "0.71804565", "0.71688104", "0.71072215", "0.7086...
0.0
-1
Get and update cluster name from cookiecutter.json.
def YWvt(): l7AZ = GkAb('cookiecutter.json') tIqo = qQXR.loads(l7AZ.read_text()) c0yN = '' try: c0yN = tIqo['cluster_name'] except KeyError: while not c0yN: c0yN = input('Please insert the cluster name: ') finally: tIqo['cluster_name'] = c0yN l7AZ.writ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'cluster_name')", "def tYR...
[ "0.6458336", "0.6458336", "0.6439198", "0.6439198", "0.6339771", "0.6323489", "0.6309117", "0.62971157", "0.62971157", "0.62971157", "0.62971157", "0.62971157", "0.6198518", "0.5919496", "0.58436006", "0.5747788", "0.57337683", "0.5638161", "0.5595323", "0.55599266", "0.55261...
0.8430586
0
Find free ipv4 subnet with the given prefix length in the freifunk range (10.0.0.0/8)
def rtEs(R8kh, KvrH): def wND7(eVVj, T3s_): """ Check if given network is colliding with an already allocated networks """ for Z7OH in T3s_: if eVVj.overlaps(Z7OH): return True return False for MTKo in toOX(T6tB).subnets(new_prefix=Kvr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def muq_(y0cW):\n try:\n HZeM = QMSQ(y0cW)\n except NameError as ex:\n HZeM = str(y0cW)\n return OSeg('1.0.0.0/' + HZeM).netmask", "def R3Ym(D8Ke, pP5j, NCls):\n PyOf = 0\n UziS = []\n D8Ke = yQpV.IP(D8Ke)\n for Zxma in YQK9([pP5j], NCls)[0][1]:\n if D8Ke.version == Zxma...
[ "0.7031105", "0.628563", "0.6167392", "0.6117675", "0.6071933", "0.6042414", "0.60167956", "0.5985993", "0.59358686", "0.5917043", "0.5829789", "0.5783567", "0.5774751", "0.576267", "0.57365376", "0.5706467", "0.56903154", "0.56880146", "0.56600106", "0.5620678", "0.5558388",...
0.7617754
0
Returns True if this category contains 0 ebuilds.
def lsmZ(YKHO): return len(YKHO._subdirs) == 0 or all((Csk6.empty() for Csk6 in YKHO._subdirs.values()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return Npgh.prod(Npgh.tensor(YKHO.x.shape)).item() == 0", "def FBfn(YKHO):\n return YKHO._sum() == 0", "def FBfn(YKHO):\n return not bool(YKHO.categories)", "def PNxx(YKHO):\n return YKHO.count == 0", "def ebnO(YKHO):\n for tTpl in YKHO:\n if tTpl != 0:\n ...
[ "0.6983546", "0.68920785", "0.6848093", "0.67854583", "0.67258286", "0.6676877", "0.6667772", "0.66578114", "0.66559225", "0.66371566", "0.66371566", "0.66349393", "0.65957147", "0.65957147", "0.65798116", "0.65798116", "0.6561025", "0.65476406", "0.6545098", "0.65422285", "0...
0.0
-1
Validates whether or not the password is equal to password confirmation
def FYxJ(Jyyj, BWXx, P1dF): if YKHO.params['password'] != BWXx: P1dF(Jyyj, 'does not match the password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JM9u(YKHO):\n if YKHO.validated_data['new_password'] != YKHO.validated_data['confirm_password']:\n raise IyFz.ValidationError({'error': 'Please enter matching passwords'})\n return True", "def wGkt(YKHO, jTXt, KtKn):\n return jTXt == KtKn", "def NjG1(YKHO):\n jTXt = YKHO.cleaned_data.get...
[ "0.8019631", "0.79434407", "0.7710261", "0.74721235", "0.7388005", "0.73307633", "0.73180133", "0.7315029", "0.7309858", "0.72781426", "0.7277938", "0.7271391", "0.72655904", "0.7261927", "0.72463167", "0.7189866", "0.71847016", "0.71724015", "0.71440816", "0.71399295", "0.71...
0.7847406
2
given a sklearn confusion matrix (cm), make a nice plot Arguments
def LwSz(Bcwd, HOVt, leAC='Confusion matrix', iMGt=None, NkkI=True): import matplotlib.pyplot as QrM1 import numpy as oyIN import itertools vjyh = oyIN.trace(Bcwd) / float(oyIN.sum(Bcwd)) YBwF = 1 - vjyh if iMGt is None: iMGt = QrM1.get_cmap('Blues') QrM1.figure(figsize=(8, 6)) Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyIN.arange(len(tGDF))\n QrM1.xticks(wIWT, tGDF, rotation=45)\n QrM1.yticks(wIWT, tGDF)\n for YRbF, r845 ...
[ "0.79997694", "0.79955804", "0.7947871", "0.79360676", "0.79129595", "0.7897813", "0.7879448", "0.786082", "0.786082", "0.78540397", "0.78501374", "0.78499055", "0.78404397", "0.7835427", "0.7828328", "0.78253037", "0.78049725", "0.78017557", "0.77822274", "0.77789044", "0.77...
0.0
-1
Return hex colors as a list.
def fRt4(Nqlg): MTCs = ZbWC.compile('\\#\\w+') return [MTCs.search(zFiD).group(0) for zFiD in Nqlg if MTCs.search(zFiD)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JTXs(Emd4):\n return ['#{:02x}{:02x}{:02x}'.format(*Emd4._COLORS[KCHu]) for KCHu in Emd4._STATES]", "def Kt7N():\n return ['#8c99fc', '#cacefd', '#fff1d7', '#feda98', '#fda85a', '#fc6647']", "def P1TO(YKHO):\n return [''.join(['{:02X}'.format(Fg_i) for Fg_i in nPrm]) for nPrm in YKHO.buffers()]", ...
[ "0.79856694", "0.783498", "0.77486", "0.74567974", "0.7360376", "0.7357425", "0.73567826", "0.7354677", "0.7244235", "0.719961", "0.7091762", "0.7078886", "0.7042989", "0.70378083", "0.69909", "0.69909", "0.6985355", "0.68711084", "0.686212", "0.6801104", "0.67720383", "0.6...
0.66294473
25
Test reading/writing/fidelity of json.
def Z5gg(Zwka, ZqHk): for Csk6 in Zwka: j0Xe = OQbM(wildtype=Csk6['wildtype'], genotype=Csk6['genotype'], phenotype=Csk6['phenotype'], uncertainty=Csk6['uncertainty']) wM3v = Hy7s.path.join(ZqHk, 'tmp.json') j0Xe.to_json(filename=wM3v) assert Hy7s.path.isfile(wM3v) Xzvh = EcL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pn57(YKHO):\n from test.resources import simple_json\n YKHO.assertEqual(simple_json._data, 'test')", "def f2B_(YKHO):\n try:\n IJ1Q()\n vGu9 = {'array': [1, 2, 3], 'string': 'trololo', 'int': 1, 'float': 4.32, 'true': True, 'false': False, 'null': None}\n with open(AnsC, 'w+') a...
[ "0.7217971", "0.6938442", "0.6835149", "0.68225974", "0.68042815", "0.6765999", "0.67454845", "0.6681335", "0.6678542", "0.6670595", "0.66417533", "0.66327286", "0.66059375", "0.6555721", "0.6533295", "0.65258557", "0.65028566", "0.65018135", "0.6497468", "0.6446527", "0.6428...
0.0
-1
1. At a new node at the end of the list 2. Heapify up the new node
def _jXH(YKHO, Esd_): YKHO.data.append(Esd_) YKHO.heapify_up(len(YKHO.data) - 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENpy(YKHO):\n yKcO = YKHO._parent(len(YKHO) - 1)\n for YRbF in range(yKcO, -1, -1):\n YKHO._down_heap(YRbF)", "def QZno(YKHO):\n if YKHO._size:\n yKcO = YKHO._parent(len(YKHO._data) - 1)\n for d6pt in range(yKcO, -1, -1):\n YKHO.down_heap(d6pt)", "def H2v5(YKHO, Q6k...
[ "0.74264336", "0.73963284", "0.7290254", "0.72568786", "0.72482026", "0.7244978", "0.7069481", "0.6995931", "0.6968657", "0.6963902", "0.69190514", "0.6899713", "0.68756896", "0.68756896", "0.68658453", "0.68619037", "0.68616194", "0.68428886", "0.68379295", "0.68222404", "0....
0.6533837
37
Universal bucket name for use throughout testing
def D0Kj(): return 'test_bucket'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l7rj(YKHO) -> str:\n ...", "def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')", "def h47C(YKHO, TZ9E) -> str:\n zn0c = YKHO.node.try_get_context('region')\n ZrNc = YKHO.node.try_get_context('account')\n m57A = f'{zn0c}-{ZrNc}-{TZ9E}'\n KHO8 = HBct.md5(m57A.encode()).hexdigest(...
[ "0.8432413", "0.7825941", "0.78217864", "0.76706684", "0.76706684", "0.74040335", "0.74040335", "0.74040335", "0.74040335", "0.74040335", "0.73684615", "0.733012", "0.733012", "0.733012", "0.733012", "0.733012", "0.733012", "0.733012", "0.733012", "0.733012", "0.733012", "0...
0.7646228
5
Sets up a bucket with no contents.
def lJw_(Zds0, D0Kj): pGmv = iVGz.client('s3') pGmv.create_bucket(Bucket=D0Kj) yield
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kAdP(YKHO):\n YKHO.s3_handle = gP7g.connect_s3()\n clcX.bucket_name = YKHO.generate_unique_name()\n clcX.bucket = YKHO.s3_handle.create_bucket(clcX.bucket_name)\n clcX.bucket.delete_keys([H5ew.name for H5ew in clcX.bucket])", "def R22P(kAdP):\n kAdP.insert('key 1', 'value 1')\n return kAdP"...
[ "0.7592298", "0.7092944", "0.6925842", "0.68444556", "0.6762064", "0.6678218", "0.6617833", "0.6469845", "0.64586926", "0.6428456", "0.6376333", "0.6369308", "0.6365494", "0.6349191", "0.63306063", "0.63299114", "0.61904687", "0.614448", "0.6139349", "0.61301214", "0.6112814"...
0.58068466
41
Sets up a bucket with no contents.
def pPgq(Zds0, D0Kj, RubI, Dmme): pGmv = iVGz.client('s3') pGmv.create_bucket(Bucket=D0Kj) with uwwb() as gN37: Dmme.to_csv(gN37.name, index=False, header=False) pGmv.upload_file(gN37.name, D0Kj, RubI) yield
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kAdP(YKHO):\n YKHO.s3_handle = gP7g.connect_s3()\n clcX.bucket_name = YKHO.generate_unique_name()\n clcX.bucket = YKHO.s3_handle.create_bucket(clcX.bucket_name)\n clcX.bucket.delete_keys([H5ew.name for H5ew in clcX.bucket])", "def R22P(kAdP):\n kAdP.insert('key 1', 'value 1')\n return kAdP"...
[ "0.7592222", "0.7092216", "0.69243556", "0.68434757", "0.6761147", "0.6677206", "0.6616504", "0.647066", "0.6458352", "0.64281553", "0.63751495", "0.63697803", "0.63649005", "0.63492256", "0.6329824", "0.6329308", "0.6190852", "0.6144858", "0.61389583", "0.6129301", "0.611247...
0.0
-1
Reset the ratings and counts of a user.
def RWTS(uJjO): hAVj = Ykhp() N1p7 = hAVj.cursor() N1p7.execute(f'\n START TRANSACTION;\n \n DELETE FROM ratings\n WHERE user_id = {uJjO};\n \n DELETE FROM counts_by_rating_type\n WHERE user_id = {uJjO};\n \n {aMxq(uJjO, 1)}\n {aMxq(u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r0Qt(YKHO, CBIr):\n YKHO.set_user_module_score(CBIr, None, None)", "def wffz():\n global pollResults\n EZC1 = dict()\n tdTx()", "def SiRx(YKHO):\n YKHO.correct_count = 0\n YKHO.total_count = 0", "def txK3(YKHO):\n bD7m = 'https://habitica.com/api/v4/user/reset'\n return v5po(bD7m,...
[ "0.65553725", "0.6545137", "0.6491719", "0.63327324", "0.6324312", "0.63229364", "0.6307174", "0.6305125", "0.6279662", "0.62600213", "0.62177336", "0.62018025", "0.612058", "0.60814464", "0.6065281", "0.60376483", "0.6017353", "0.596416", "0.59252435", "0.59211504", "0.59151...
0.7341955
0
The set of arguments for constructing a SyntheticsPrivateLocation resource.
def FIMM(Ro_8, *, mWFP: pulumi.Input[str], JBZA: Optional[pulumi.Input[str]]=None, yIVm: Optional[pulumi.Input['SyntheticsPrivateLocationMetadataArgs']]=None, dJ1p: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None): qe4Y.set(Ro_8, 'name', mWFP) if JBZA is not None: qe4Y.set(Ro_8, 'description', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: SyntheticsPrivateLocationArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, JBZA: Optional[pulumi.Input[str]]=None, yIVm: Optional[pulumi.Input[pulumi.InputType['SyntheticsPrivateLocationMetadataAr...
[ "0.7672276", "0.6676975", "0.63364583", "0.58349913", "0.5595418", "0.5591775", "0.5519098", "0.54712766", "0.5462107", "0.5459883", "0.5437219", "0.5403041", "0.5386545", "0.53785187", "0.5370117", "0.5313365", "0.53130496", "0.52866066", "0.5285694", "0.5283026", "0.5276887...
0.6529915
2
Return a random character between ASCII 32 and 126 (i.e. spaces, symbols, letters, and digits). All characters returned will be nicely printable.
def R71E(): return chr(tuKI.randrange(32, 126, 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VR0L() -> chr:\n return chr(int(tuKI.randrange(32, 126, 1)))", "def wAgY():\n return chr(ajWY(97, 122))", "def CbOq():\n mLGw = tuKI.randint(0, 26 + 26 + 10)\n if mLGw < 26:\n return chr(mLGw + 65)\n mLGw -= 26\n if mLGw < 26:\n return chr(mLGw + 97)\n return chr(mLGw + 4...
[ "0.8830268", "0.83026904", "0.812296", "0.789522", "0.7702148", "0.741143", "0.7320534", "0.7207496", "0.7204395", "0.71742284", "0.7081044", "0.6991104", "0.6858148", "0.68478876", "0.6807224", "0.67977804", "0.6793784", "0.6784956", "0.67772675", "0.6769406", "0.6760741", ...
0.87171346
1
Return a list of POP_SIZE individuals, each randomly generated via iterating DNA_SIZE times to generate a string of random characters with random_char().
def Vurp(): BEuN = [] for YRbF in range(EwB9): ytkQ = '' for Z9rn in range(mFR6): ytkQ += R71E() BEuN.append(ytkQ) return BEuN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vurp() -> x1iM:\n BEuN = []\n for bGrB in range(Iwk2):\n ytkQ = ''\n for Z9rn in range(mFR6):\n ytkQ += VR0L()\n BEuN.append(ytkQ)\n return BEuN", "def _WqJ(jrD8):\n Vurp = []\n for YWSi in range(jrD8):\n Vurp.append(Bif9())\n return Vurp", "def FJcQ...
[ "0.8334825", "0.7507812", "0.7216187", "0.70892304", "0.70369464", "0.6994599", "0.6967262", "0.6770745", "0.6711861", "0.66882414", "0.6684687", "0.6656384", "0.6647211", "0.6642518", "0.6612839", "0.6530116", "0.6445024", "0.644333", "0.63814443", "0.6314523", "0.6274228", ...
0.8597554
0
For each gene in the DNA, this function calculates the difference between it and the character in the same position in the OPTIMAL string. These values are summed and then returned.
def wkbQ(ytkQ): wkbQ = 0 for Z9rn in range(mFR6): if ytkQ[Z9rn] == fDjo[Z9rn]: wkbQ += 1 return wkbQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eu25(Y0Fj, Pb4f):\n assert len(Y0Fj) == len(Pb4f)\n ynZz = 0\n q5IZ = False\n for YRbF, ni3Z in enumerate(Y0Fj):\n if ni3Z == '-' or Pb4f[YRbF] == '-':\n if not q5IZ:\n q5IZ = True\n ynZz += 1\n else:\n q5IZ = False\n if n...
[ "0.5892284", "0.58377594", "0.58111554", "0.5802616", "0.5717742", "0.5716548", "0.57153755", "0.56435704", "0.551983", "0.5448549", "0.5402146", "0.54016054", "0.539039", "0.537256", "0.53583044", "0.5353069", "0.5352566", "0.53354", "0.5329248", "0.53220797", "0.5319295", ...
0.5015547
67
Slices both dna1 and dna2 into two parts at a random index within their length and merges them. Both keep their initial sublist up to the crossover index, but their ends are swapped.
def jWUT(_q5S, DkcB): oeNL = int(tuKI.random() * mFR6) kDLX = _q5S[:oeNL] + DkcB[oeNL:] return kDLX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jWUT(YKHO, _q5S, DkcB):\n oeNL = int(tuKI.random() * YKHO.DNA_SIZE)\n return (_q5S[:oeNL] + DkcB[oeNL:], DkcB[:oeNL] + _q5S[oeNL:])", "def fe47(uYDe, D1zF):\n M7Zd = uYDe.network\n xJU3 = D1zF.network\n zNig = min(len(M7Zd.index), len(xJU3.index))\n UV8M = tuKI.randint(1, zNig - 1)\n ycB...
[ "0.79468405", "0.64652693", "0.6431925", "0.63530046", "0.63031685", "0.6258021", "0.6250199", "0.61653215", "0.61324793", "0.611977", "0.6083309", "0.6076303", "0.6054012", "0.603311", "0.60196644", "0.60068965", "0.59649265", "0.5931624", "0.58927554", "0.58507705", "0.5846...
0.7660745
1
Exclude from the map any items matching the supplied `keys`
def DNHh(r8hN, sjXb): return {G1Hx: Ty9i for G1Hx, Ty9i in r8hN.items() if G1Hx not in sjXb}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PT5g(*sjXb):\n\n def DNHh(rdlD):\n Ylbp = dict(rdlD)\n for G1Hx in sjXb:\n if G1Hx in Ylbp:\n del Ylbp[G1Hx]\n return Ylbp\n return 'Exclude' >> DAMg.Map(DNHh)", "def xzdj(sjXb):\n sjXb = frozenset(sjXb)\n return fDnw(GavU(YLnl(seET.contains, sjXb)))...
[ "0.832762", "0.8284591", "0.7660164", "0.763909", "0.7577073", "0.7575485", "0.75332195", "0.74556494", "0.74054796", "0.7190924", "0.71356505", "0.711559", "0.69812787", "0.69447625", "0.6933798", "0.6836416", "0.68151444", "0.67578346", "0.67199636", "0.670535", "0.6682315"...
0.82236594
2
Compute the logistic loss between two 1dimensional tensors
def nrOS(YKHO, si3g: torch.Tensor, skBL: torch.Tensor) -> ht2j.Tensor: return ht2j.log(1 + ht2j.exp(-si3g * skBL))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nqOO(WKvO, LVAh):\n ywwl = WKvO.shape[0]\n x1Kq = oyIN.squeeze(WKvO)\n aTqo = oyIN.exp(x1Kq)\n N77f = oyIN.sum(-LVAh * x1Kq + oyIN.log(1 + aTqo)) / ywwl\n Jw7X = (-LVAh + aTqo / (1 + aTqo)) / ywwl\n return (N77f, Jw7X)", "def iQU3(YKHO, KeL5, x6A0):\n return -oyIN.sum(x6A0 * oyIN.log(KeL...
[ "0.73667127", "0.7276115", "0.72511435", "0.72035146", "0.7087668", "0.70256746", "0.70013016", "0.69948107", "0.6942272", "0.694043", "0.6900394", "0.6890458", "0.6888869", "0.68474", "0.6840868", "0.67284733", "0.67221576", "0.6688829", "0.6672678", "0.6661949", "0.66361964...
0.67374295
15
Sets the account_holder of this AggregationAccount.
def nHch(YKHO, nHch): YKHO._account_holder = nHch
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZrNc(YKHO, ZrNc):\n YKHO._account = ZrNc", "def ZrNc(YKHO, ZrNc):\n YKHO._account = ZrNc", "def ZrNc(YKHO, ZrNc):\n YKHO._account = ZrNc", "def ZrNc(YKHO, ZrNc):\n YKHO._account = ZrNc", "def ZrNc(YKHO, ZrNc: str):\n YKHO._account = ZrNc", "def UY7e(YKHO, UY7e):\n YKHO._account_amou...
[ "0.6924906", "0.6924906", "0.6924906", "0.6924906", "0.6671255", "0.62825865", "0.6206143", "0.6206143", "0.61406523", "0.6094236", "0.59822476", "0.5938164", "0.5938164", "0.5938164", "0.5938164", "0.5938164", "0.5938164", "0.5930323", "0.5860685", "0.58295083", "0.5732997",...
0.84885687
0
Sets the account_name of this AggregationAccount.
def n8Ek(YKHO, n8Ek): if n8Ek is None: raise ValueError('Invalid value for `account_name`, must not be `None`') YKHO._account_name = n8Ek
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8Ek(YKHO, n8Ek):\n YKHO._account_name = n8Ek", "def n8Ek(YKHO, n8Ek):\n YKHO._account_name = n8Ek", "def OnKS(YKHO, OnKS):\n YKHO._funding_account_account_name = OnKS", "def ZrNc(YKHO, ZrNc: str):\n YKHO._account = ZrNc", "def nPha(YKHO, Z31E):\n YKHO.data_struct['_setAccount'] = Z31E",...
[ "0.8531283", "0.8531283", "0.73625", "0.6907245", "0.66520196", "0.6651609", "0.6612716", "0.6612716", "0.6612716", "0.6612716", "0.6532169", "0.64073396", "0.64073396", "0.64073396", "0.64073396", "0.64073396", "0.64073396", "0.6365183", "0.6246568", "0.62052125", "0.5977221...
0.80760205
2
Sets the account_number of this AggregationAccount.
def lb7m(YKHO, lb7m): YKHO._account_number = lb7m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FTpm(YKHO, FTpm):\n YKHO._funding_account_account_number = FTpm", "def UY7e(YKHO, UY7e):\n YKHO._account_amount = UY7e", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z31E(YK...
[ "0.71602434", "0.69586164", "0.6714518", "0.6714518", "0.6714518", "0.6714518", "0.6714518", "0.6714518", "0.6713965", "0.66300505", "0.66222477", "0.65513325", "0.65513325", "0.65513325", "0.65513325", "0.65343106", "0.6525909", "0.6525909", "0.6513819", "0.651157", "0.65115...
0.8458874
0
Sets the category of this AggregationAccount.
def Ghho(YKHO, Ghho): if Ghho is None: raise ValueError('Invalid value for `category`, must not be `None`') YKHO._category = Ghho
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho: str):\n YKHO._categor...
[ "0.72488546", "0.72488546", "0.72488546", "0.72488546", "0.72488546", "0.7141554", "0.6977312", "0.6924974", "0.64782375", "0.62679183", "0.62516356", "0.5956036", "0.5926578", "0.5888262", "0.57670707", "0.5694292", "0.5654999", "0.5566089", "0.5539788", "0.55187076", "0.549...
0.6543072
8
Sets the currency_code of this AggregationAccount.
def uvmn(YKHO, uvmn): YKHO._currency_code = uvmn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9p9(YKHO, Y9p9):\n YKHO._transaction_currency_code = Y9p9", "def SEoG(YKHO, SEoG):\n YKHO._card_currency = SEoG", "def VIXL(YKHO, VIXL):\n YKHO._currency = VIXL", "def VIXL(YKHO, VIXL):\n YKHO._currency = VIXL", "def VIXL(YKHO, VIXL):\n YKHO._currency = VIXL", "def VIXL(YKHO, VIXL):\n...
[ "0.71388793", "0.652888", "0.6388667", "0.6388667", "0.6388667", "0.6388667", "0.6275365", "0.6244496", "0.6107394", "0.59897774", "0.5983945", "0.5983945", "0.5983945", "0.591998", "0.59195846", "0.58713216", "0.58154637", "0.58140785", "0.5690212", "0.5608463", "0.5608463",...
0.8090148
1
Sets the financial_offer_id of this AggregationAccount.
def Ec8r(YKHO, Ec8r): YKHO._financial_offer_id = Ec8r
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aZe0(YKHO, aZe0):\n YKHO._marketplace_id = aZe0", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E):\n YKHO...
[ "0.5447066", "0.54168266", "0.5382723", "0.5382723", "0.5382723", "0.5382723", "0.5382723", "0.5382723", "0.53303015", "0.5329313", "0.5329313", "0.53122294", "0.52502966", "0.52336097", "0.5228167", "0.52234524", "0.5196071", "0.5146304", "0.5146304", "0.5140973", "0.5139524...
0.8436625
0
Sets the id of this AggregationAccount.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.__id = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z3...
[ "0.70221865", "0.7015892", "0.6934906", "0.6927255", "0.6884149", "0.6884149", "0.6884149", "0.6884149", "0.6884149", "0.6884149", "0.68659735", "0.67952436", "0.66813457", "0.6565205", "0.6565205", "0.6565205", "0.6565205", "0.6565205", "0.65563506", "0.65563506", "0.6556350...
0.0
-1
Sets the institution_name of this AggregationAccount.
def NdAA(YKHO, NdAA): if NdAA is None: raise ValueError('Invalid value for `institution_name`, must not be `None`') YKHO._institution_name = NdAA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pl8n(YKHO, pl8n):\n YKHO._bank_name = pl8n", "def MSpD(YKHO, MSpD):\n YKHO._instrumentName = MSpD", "def yrxi(YKHO, yrxi):\n YKHO._facility_name = yrxi", "def n8Ek(YKHO, n8Ek):\n YKHO._account_name = n8Ek", "def n8Ek(YKHO, n8Ek):\n YKHO._account_name = n8Ek", "def OnKS(YKHO, OnKS):\n ...
[ "0.5938996", "0.56928295", "0.5605794", "0.55565816", "0.55565816", "0.5502676", "0.5432991", "0.5284322", "0.5204407", "0.5204407", "0.5195806", "0.5135655", "0.5091485", "0.50777316", "0.50777316", "0.5073244", "0.5073244", "0.5067159", "0.5032579", "0.50145525", "0.5014552...
0.8017624
0
Sets the is_active of this AggregationAccount.
def ksfB(YKHO, ksfB): YKHO._is_active = ksfB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ksfB(YKHO, ksfB):\n YKHO._is_active = ksfB", "def ksfB(YKHO, ksfB: bool):\n if ksfB is None:\n raise ValueError('Invalid value for `is_active`, must not be `None`')\n YKHO._is_active = ksfB", "def eLjN(YKHO, WZHJ):\n YKHO._active = WZHJ", "def j6OK(YKHO, WZHJ):\n YKHO._active = WZHJ...
[ "0.7454107", "0.71265876", "0.69811344", "0.6859411", "0.68504834", "0.6791862", "0.6791862", "0.6791862", "0.6791862", "0.6702404", "0.66094273", "0.6598806", "0.6562007", "0.6370421", "0.63038766", "0.62582433", "0.62325966", "0.62325966", "0.62325966", "0.62325966", "0.610...
0.7450062
4
Sets the is_investment of this AggregationAccount.
def s6_I(YKHO, s6_I): YKHO._is_investment = s6_I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tbmn(YKHO, tbmn):\n YKHO._is_mitigated = tbmn", "def TJ38(YKHO, TJ38):\n YKHO._principal_investigator = TJ38", "def zJBG(YKHO, zJBG):\n YKHO._amendment_indicator = zJBG", "def j6ar(YKHO, W6mH):\n YKHO.tax_group_enabled = W6mH", "def oCiM(YKHO, oCiM):\n YKHO._is_asset = oCiM", "def osIL...
[ "0.5097351", "0.5068996", "0.50063145", "0.48730448", "0.47092852", "0.46525034", "0.46502492", "0.4646032", "0.46318653", "0.46020898", "0.45735154", "0.45568922", "0.4538752", "0.4471161", "0.44599771", "0.4458245", "0.440301", "0.4402626", "0.43737462", "0.43727973", "0.43...
0.84728205
0
Sets the secondary_id of this AggregationAccount.
def mm2J(YKHO, mm2J): YKHO._secondary_id = mm2J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sUId(YKHO, sUId):\n YKHO._secondary_ids = sUId", "def mm2J(YKHO, BWXx):\n YKHO._write(w72M, BWXx)", "def xyYP(YKHO, xyYP):\n YKHO._secondary_endpoint = xyYP", "def mm2J(YKHO):\n return YKHO._read(w72M)", "def V1Lh(YKHO, V1Lh):\n YKHO._sub_id = V1Lh", "def V1Lh(YKHO, V1Lh):\n YKHO._s...
[ "0.6860491", "0.65105164", "0.5838739", "0.5646", "0.5629142", "0.5629142", "0.5517279", "0.5298134", "0.524187", "0.524187", "0.524187", "0.524187", "0.524187", "0.524187", "0.5192299", "0.5170567", "0.5134338", "0.51300097", "0.50660044", "0.50495285", "0.50088453", "0.49...
0.7990619
0
Sets the subcategory of this AggregationAccount.
def MctT(YKHO, MctT): YKHO._subcategory = MctT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qyX_(YKHO, mWFP, VMw8, QuYu, **B2fa):\n B2fa['parent_category_id'] = QuYu\n YKHO.client._put(f'/categories/{VMw8}.json', **B2fa)", "def IlWN(YKHO, IlWN):\n if IlWN is None:\n raise ValueError('Invalid value for `subgroup`, must not be `None`')\n YKHO._subgroup = IlWN", "def m1sc(YKHO, m1...
[ "0.6567586", "0.6106146", "0.6010167", "0.5866044", "0.5787018", "0.55635303", "0.55635303", "0.55635303", "0.55635303", "0.55635303", "0.5546346", "0.5489791", "0.53721625", "0.5330354", "0.53196156", "0.53196156", "0.5306686", "0.52605003", "0.5117423", "0.50916606", "0.508...
0.8087874
0
Sets the update_date of this AggregationAccount.
def XXYj(YKHO, XXYj): YKHO._update_date = XXYj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG", "def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG", "def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG", "def s4tG(YKHO, s4tG):\n if s4tG is None:\n raise ValueError('Invalid value for `updated_date`, must not be `None`')\n YKHO._upda...
[ "0.7028067", "0.7028067", "0.69888735", "0.6127192", "0.5768496", "0.5695969", "0.56914717", "0.5615422", "0.54885596", "0.54544485", "0.54544485", "0.54544485", "0.54544485", "0.54544485", "0.54544485", "0.54544485", "0.54544485", "0.54544485", "0.54544485", "0.5358629", "0....
0.7637999
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, HwLx): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Compute the propellers' RPMs for the target state, given the current state.
def Q1d8(YKHO, uKWF, Mc2s, aAqh, Y4aT, m4VY, hTvN=oyIN.zeros(3)): YKHO.control_counter += 1 if YKHO.control_counter % (1 / YKHO.timestep) == 0: print(uKWF) print(Mc2s) print(aAqh) print(Y4aT) print(m4VY) print(hTvN) tHqv = oyIN.sqrt(YKHO.gravity / (4 * YKHO.kf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f_U_(YKHO) -> None:\n XLLv = YKHO.getGenerators()\n Sj8S = 0\n for c2Yh in XLLv:\n Yh3y = c2Yh['BPT']\n Z5kt = c2Yh['amount']\n Sj8S = Sj8S + Yh3y * Z5kt\n YKHO.bpt = Sj8S\n l8Si = YKHO.getUpgrades()\n print(l8Si)", "def XJ9s(YKHO, uZQJ):\n t1c9 = uZQJ / RBLI.SECONDS...
[ "0.5776805", "0.56187654", "0.5562017", "0.5546919", "0.54127926", "0.53492814", "0.53231275", "0.5300642", "0.5271428", "0.5269524", "0.52555203", "0.5238739", "0.5231703", "0.5211316", "0.5209404", "0.5194866", "0.51925224", "0.51744086", "0.5174335", "0.5152968", "0.513542...
0.0
-1
Return True if subscribed to this medium/source combination.
def vAnE(YKHO, JZXy, hcid, LEXu, iYOY=None): if iYOY is None: return YKHO._is_subscribed_individual(JZXy, hcid, LEXu) else: return YKHO._is_subscribed_group(JZXy, hcid, LEXu, iYOY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vAnE(YKHO) -> bool:\n return bool(YKHO._subscriptions)", "def Pgxq(YKHO, JZXy, hcid, LEXu):\n A7Gx = LEXu.super_relationships.all().values_list('super_entity')\n RaQX = T8ck(subentity_kind__isnull=True, entity=LEXu)\n ZemL = T8ck(subentity_kind=LEXu.entity_kind, entity__in=A7Gx)\n vAnE = YKHO....
[ "0.73627967", "0.69143784", "0.68922627", "0.67649895", "0.65634066", "0.65466535", "0.65386415", "0.65123314", "0.6453093", "0.6344606", "0.6293652", "0.6268312", "0.62414736", "0.61606604", "0.61563706", "0.61312485", "0.60808045", "0.5965283", "0.5951208", "0.5920487", "0....
0.64922965
8
Return true if an entity is subscribed to that source/medium combo.
def Pgxq(YKHO, JZXy, hcid, LEXu): A7Gx = LEXu.super_relationships.all().values_list('super_entity') RaQX = T8ck(subentity_kind__isnull=True, entity=LEXu) ZemL = T8ck(subentity_kind=LEXu.entity_kind, entity__in=A7Gx) vAnE = YKHO.filter(RaQX | ZemL, source=JZXy, medium=hcid).exists() BVhY = n0AB.objec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RPTr(YKHO, JZXy, hcid, LEXu, iYOY):\n OKQs = LEXu.sub_relationships.select_related('sub_entity').filter(sub_entity__entity_kind=iYOY).values_list('sub_entity')\n pAjv = aYQa.objects.filter(sub_entity__in=OKQs).values_list('super_entity')\n vAnE = YKHO.filter(source=JZXy, medium=hcid, subentity_kind=iY...
[ "0.7469926", "0.72573686", "0.7074537", "0.6418469", "0.6417108", "0.6218657", "0.60834473", "0.6046867", "0.6036681", "0.60346395", "0.6033711", "0.60305303", "0.59133565", "0.59072524", "0.59002316", "0.58361083", "0.58039796", "0.5787606", "0.5756602", "0.5723546", "0.5703...
0.7970441
0
Utility function to convert dict to a list object
def oRQa(dict): return map(lambda WKvO: WKvO[0], dict.iterkeys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eqLo(dict: Dict, X0NW: str='name', rAxx: str='value'):\n if not p7VF(dict):\n raise AttributeError(\"Argument must be a dictionary, invalid argument received '{}'.\".format(dict))\n list = []\n for H5ew, wEf2 in dict.items():\n list.append({X0NW: H5ew, rAxx: wEf2})\n return list", "...
[ "0.79184854", "0.78315353", "0.77300966", "0.76776123", "0.7634673", "0.73632056", "0.73497635", "0.72802705", "0.7248395", "0.7179507", "0.7135971", "0.71098083", "0.71098083", "0.71079075", "0.70322603", "0.69594324", "0.68989635", "0.6843161", "0.6761351", "0.6738432", "0....
0.69449604
16
Instantiates Selenium WebDriver and Chrome instance. Chrome is headless or not
def FIMM(YKHO): YKHO.m_logger = G9jH.getLogger('BrowserDriver') YKHO.m_creationDate = qcWV.datetime.now(tz=FXGE.utc) YKHO.m_expirationDate = qcWV.datetime.now(tz=FXGE.utc) + qcWV.timedelta(days=3650) YKHO.m_vpn_handle = None YKHO.m_phantomID = '' YKHO.m_user_api = '' YKHO.m_pass_api = '' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C0FU(zlwC):\n xAU6 = nXHX()\n xAU6.headless = zlwC\n E_qD = cSpz.Chrome(JQMo().install(), options=xAU6)\n return E_qD", "def ypqP():\n xAU6 = lE6K()\n xAU6.add_argument('--headless')\n xAU6.add_argument('--incognito')\n return cSpz.Chrome(options=xAU6)", "def FM0M(zlwC=False) -> cSp...
[ "0.81668353", "0.7849356", "0.77846044", "0.77780116", "0.77614725", "0.7665669", "0.7638293", "0.75628316", "0.75537574", "0.75337976", "0.7520328", "0.7505075", "0.7442266", "0.72529954", "0.72291136", "0.7180246", "0.715662", "0.7136139", "0.7109921", "0.7098185", "0.70526...
0.6067454
78
Change player of the game.
def LIR6(BWXx: Tuple[Any, int], oyg0: str) -> None: se2i, d6pt = BWXx print(f'Selected player: "{se2i}" ({oyg0}) at index {d6pt}') l0Jp[0] = oyg0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IH60(YKHO, XWqO):\n YKHO.player = XWqO", "def jOj6(YKHO):\n YKHO.player = S8lm.other_player(YKHO.player)", "def B33o(YKHO):\n YKHO.player = S8lm.otherPlayer(YKHO.player)", "def LIR6(YKHO):\n if YKHO.__root.children is None:\n if YKHO.__root.win[0] == 1:\n YKHO.win = yELo.PLA...
[ "0.85088545", "0.8482292", "0.82166225", "0.80544436", "0.779732", "0.77649176", "0.7410997", "0.7406438", "0.7184081", "0.71748734", "0.71748734", "0.71107703", "0.6973077", "0.6962489", "0.6952246", "0.6902073", "0.68362105", "0.6783613", "0.6781193", "0.6693374", "0.664540...
0.6971278
13
Returns a list of unspent transaction inputs in the wallet
def VGpQ(g18Y, mgsG=1, or0T=99999999): mgsG = str(mgsG) or0T = str(or0T) jzdc = [g18Y] try: zJsh = Yn3K.check_output(['litecoin-cli', 'listunspent', mgsG, or0T, qQXR.dumps(jzdc)]) LgZ4 = qQXR.loads(zJsh.decode()) except: HwRy.exit(1) return LgZ4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SJKJ(YKHO, qlJM=1, dVPD=999999):\n return [JqVY(**UShr) for UShr in YKHO.proxy.listunspent(qlJM, dVPD)]", "def mnGa(r2iI, Sbmc):\n nPrm = '{\"jsonrpc\":\"2.0\",\"id\":\"1\",\"method\":\"listunspentcoins\"}'\n return yREu(r2iI, Sbmc, nPrm)", "def Y4R6(YKHO, mgsG: int=1, or0T: int=99999999, KYrJ: li...
[ "0.7140887", "0.6816929", "0.6552434", "0.6360092", "0.63267684", "0.6296591", "0.6198887", "0.61820614", "0.6140737", "0.6122582", "0.6118104", "0.6111352", "0.5980861", "0.58738786", "0.5858009", "0.5787929", "0.57647544", "0.56986237", "0.56699467", "0.55791104", "0.554443...
0.61405736
9
Returns the balance for litecoinaddress
def oxN9(g18Y): XplW = 0 LgZ4 = VGpQ(g18Y) for XkN1 in LgZ4: XplW += float(XkN1['amount']) return XplW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rCkj(YKHO, UTX6):\n wMl7 = 0\n for XkN1 in YKHO.chain:\n for a1PO in XkN1['transactions']:\n if a1PO['recipient'] == UTX6:\n wMl7 += a1PO['amount']\n elif a1PO['sender'] == UTX6:\n wMl7 -= a1PO['amount']\n return wMl7", "def YPCa(YKHO, UTX6)...
[ "0.7711186", "0.7699477", "0.7616533", "0.72856987", "0.7274785", "0.7060863", "0.6971426", "0.6923127", "0.6680456", "0.6627595", "0.66212493", "0.6599131", "0.659477", "0.6551434", "0.65255404", "0.65177476", "0.6513604", "0.65034276", "0.64847016", "0.6483719", "0.63952076...
0.8466337
0
Returns the balance in the account.
def u0LD(ZrNc): wMl7 = 0 for UTX6 in ZQfO(ZrNc): wMl7 += oxN9(UTX6) return float(wMl7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rCkj(YKHO):\n return YKHO._call_account_method('getBalance')", "def u0LD(YKHO):\n return int(YKHO.request('get', 'fort/accounts')['balance'])", "def wMl7(YKHO):\n return YKHO.selectedAccount.balance", "def bzWM(YKHO):\n return YKHO._account_balance", "def rCkj(YKHO):\n return YKHO.balanc...
[ "0.9109696", "0.8955735", "0.8783172", "0.873993", "0.8614841", "0.8614841", "0.85886765", "0.85573524", "0.85556316", "0.8521406", "0.8441863", "0.8417558", "0.83927006", "0.8383246", "0.83819866", "0.83375466", "0.8330962", "0.8283836", "0.82716376", "0.82374823", "0.812889...
0.78636056
31
Remove the parentheses and hyphens from a song name.
def WqpQ(mWFP): return ZbWC.sub('-[\\S\\s]*', '', ZbWC.sub('\\([\\w\\W]*\\)', '', mWFP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uD9m(mWFP):\n return kkJB.sub('-', mWFP.lower()).strip('-')", "def DhAv(mWFP: str) -> str:\n return ZbWC.sub('[^A-Za-z0-9_-]', '-', mWFP)[0:128]", "def DhAv(mWFP):\n return mWFP.replace('-', '_')", "def aGUM(h5p_):\n M6hN = h5p_.find(',')\n return ' '.join([h5p_[M6hN + 1:].strip(), h5p_[:M...
[ "0.70703393", "0.70367986", "0.7035329", "0.70162845", "0.6974878", "0.6958907", "0.684572", "0.6767284", "0.67154896", "0.66887105", "0.6685595", "0.6648311", "0.658791", "0.6556827", "0.6536671", "0.65230227", "0.65006196", "0.64723617", "0.64384997", "0.6431085", "0.642351...
0.7115448
0
A `input_fn` returning features and labels.
def HMOD(NArs): Ep8u = NArs['batch_size'] g4y1, Crrw, Fbjb = NfSK.get_padded_batch(xXFf, Ep8u, zi3C, WAcC) bySB = {'inputs': g4y1, 'lengths': Fbjb} return (bySB, Crrw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kTGD(YKHO) -> SnBA.FeatureAndLabelTensors:\n return YKHO._input_fn_from_file(YKHO._train_path)", "def HMOD(NArs):\n Ep8u = NArs['batch_size']\n g4y1, Crrw, Fbjb = NfSK.get_fake_data_batch(Ep8u, zi3C, WAcC)\n bySB = {'inputs': g4y1, 'lengths': Fbjb}\n return (bySB, Crrw)", "def hbsH(NArs, LT6...
[ "0.754075", "0.7477171", "0.74368423", "0.742067", "0.71742415", "0.7124143", "0.7107588", "0.7039249", "0.7015979", "0.7001931", "0.7000006", "0.6968949", "0.68859965", "0.68649995", "0.6848503", "0.6828859", "0.6823528", "0.68101823", "0.67985994", "0.67934674", "0.67358327...
0.69833744
11
A `input_fn` returning features and labels.
def HMOD(NArs): Ep8u = NArs['batch_size'] g4y1, Crrw, Fbjb = NfSK.get_fake_data_batch(Ep8u, zi3C, WAcC) bySB = {'inputs': g4y1, 'lengths': Fbjb} return (bySB, Crrw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kTGD(YKHO) -> SnBA.FeatureAndLabelTensors:\n return YKHO._input_fn_from_file(YKHO._train_path)", "def hbsH(NArs, LT6S):\n bySB = ZylS.constant(0)\n Crrw = ZylS.constant(0)\n return (bySB, Crrw)", "def hbsH():\n bySB = {BZ2A: ZylS.constant(m7jz[YRbF]) for YRbF, BZ2A in enumerate(OeUg)}\n r...
[ "0.754075", "0.74368423", "0.742067", "0.71742415", "0.7124143", "0.7107588", "0.7039249", "0.7015979", "0.7001931", "0.7000006", "0.69833744", "0.6968949", "0.68859965", "0.68649995", "0.6848503", "0.6828859", "0.6823528", "0.68101823", "0.67985994", "0.67934674", "0.6735832...
0.7477171
1
Normalizes X into the 0.5, 0.5 range.
def pmQu(EcVT): EcVT = (EcVT - EcVT.min()) / (EcVT.max() - EcVT.min()) return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WKvO):\n Nc3t = oyIN.max(WKvO)\n WJZ9 = oyIN.min(WKvO)\n WKvO = (WKvO - WJZ9) / (Nc3t - WJZ9)\n return WKvO", "def OEry(WKvO, wBZN=-5.12, re6M=5.12):\n for YRbF in range(len(WKvO.vect)):\n WKvO.vect[YRbF] = wBZN + WKvO.vect[YRbF] * (re6M - wBZN)\n return WKvO", "def NkkI(WKvO,...
[ "0.7771135", "0.75992376", "0.7551736", "0.7547507", "0.7512404", "0.74885225", "0.7394593", "0.7393532", "0.724465", "0.724465", "0.72432923", "0.7223587", "0.7214084", "0.72109354", "0.718745", "0.7170745", "0.71423274", "0.71203613", "0.70543194", "0.70311123", "0.70311123...
0.75293523
4
Does Non Max Suppression given bboxes
def lIj3(c8oy, PKpG, gwAu, s_HA='corners'): assert type(c8oy) == list c8oy = [FlUN for FlUN in c8oy if FlUN[1] > gwAu] c8oy = sorted(c8oy, key=lambda WKvO: WKvO[1], reverse=True) qIa5 = [] while c8oy: Nhh0 = c8oy.pop(index=0) c8oy = [FlUN for FlUN in c8oy if FlUN[0] != Nhh0[0] or rP5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zh61(c8oy, PKpG, gwAu, s_HA='corners'):\n assert type(c8oy) == list\n c8oy = [FlUN for FlUN in c8oy if FlUN[1] > gwAu]\n c8oy = sorted(c8oy, key=lambda WKvO: WKvO[1], reverse=True)\n qIa5 = []\n while c8oy:\n Nhh0 = c8oy.pop(0)\n KIsf = c8oy.copy()\n c8oy = []\n for F...
[ "0.7529383", "0.71505386", "0.7068207", "0.68700755", "0.66532415", "0.6589723", "0.6535061", "0.64538574", "0.6422521", "0.6403534", "0.6393737", "0.6314318", "0.63047516", "0.6272402", "0.62160397", "0.61747664", "0.6077163", "0.6019672", "0.5983947", "0.59781563", "0.59757...
0.634647
11
Pad text with character, treating ANSI escape sequences as zero width
def CN_i(l5Ny, TVTK, hcXw, LFlW=False): CJdE = len(gqke.sub('', l5Ny)) SQ3m = [l5Ny, (TVTK - CJdE) * hcXw] if LFlW: SQ3m = reversed(SQ3m) return ''.join(SQ3m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(l5Ny, TVTK, qK9g=' '):\n u54L = len(l5Ny)\n if TVTK < 0 and u54L < -TVTK:\n return l5Ny + (-TVTK - u54L) * qK9g\n elif TVTK > 0 and u54L < TVTK:\n return (TVTK - u54L) * qK9g + l5Ny\n else:\n return l5Ny", "def HThn(YKHO):\n eusk = 8 - len(YKHO.text) % 8\n YKHO.tex...
[ "0.73150593", "0.7059062", "0.6732868", "0.67187804", "0.6615262", "0.6600697", "0.6529842", "0.65296227", "0.6500602", "0.6477309", "0.64648044", "0.6409835", "0.624386", "0.6237719", "0.6234958", "0.6218235", "0.6185038", "0.61723506", "0.615966", "0.6159123", "0.6120037", ...
0.82812154
0
What happens if ~/.azure is empty
def zU0N(): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbnT(M1Cb):\n with tjSP(M1Cb):\n FZSm = zjC9()\n GfdN.equal(FZSm.cloud, 'global')\n GfdN.is_in('env', FZSm.auth_methods)\n GfdN.is_in('msi', FZSm.auth_methods)\n GfdN.is_in('cli', FZSm.auth_methods)\n GfdN.is_in('interactive', FZSm.auth_methods)\n XZ_w = kyfF.AZURE_PUBLIC_CLOUD.endp...
[ "0.56525844", "0.55135584", "0.5395982", "0.53500265", "0.53271735", "0.5318726", "0.5263498", "0.5259756", "0.5251716", "0.52478904", "0.5229304", "0.5199787", "0.51650083", "0.5117374", "0.51080805", "0.5083474", "0.5016934", "0.5015275", "0.49819854", "0.49533382", "0.4944...
0.72771066
0
Initiate weights and biases of a twolayer NN model.
def Y965(zi3C, wjbX, jTqs, DyFO=None, **B2fa): H0q3 = oyIN.random.RandomState(seed=DyFO) C3ST = {} lWPh, C7Ls, Nq1b = (zi3C, wjbX, jTqs) C3ST['W1'] = H0q3.rand(lWPh, C7Ls) C3ST['b1'] = H0q3.rand(C7Ls) C3ST['W2'] = H0q3.rand(C7Ls, Nq1b) C3ST['b2'] = H0q3.rand(Nq1b) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)", "def vB93(C3ST):\n ...", "def Qod3(zi3C, wjbX, a6Jb):\n C3ST = {}\n C3ST['W1'] = 1e-05 * oyIN.random.randn(zi3C, wjbX)\n C3ST['b1'] = oyIN.zeros(wjbX)\n C3ST['W2'] = 1e-05 * oyIN.random.rand...
[ "0.73397094", "0.72905093", "0.71707326", "0.7106496", "0.7020638", "0.70197505", "0.69642586", "0.6882098", "0.68305355", "0.68139184", "0.6799241", "0.67788005", "0.6765046", "0.6742682", "0.67080957", "0.67036754", "0.6689718", "0.6672929", "0.6672302", "0.66707325", "0.66...
0.0
-1
The content of the rc_file.
def rYzF(y9Uv): return eJb6.dump(y9Uv, Dumper=lFmc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sffg(YKHO):\n return YKHO.file.read()", "def LMRe(YKHO):\n with open(YKHO.file_name, mode='rb') as nUeQ:\n YKHO.file_content = nUeQ.read()", "def BuGO(YKHO):\n with W5SF(YKHO.open()) as nVrR:\n return nVrR.read()", "def hGN5(YKHO) -> str:\n if YKHO._content is None:\n wit...
[ "0.72386634", "0.6774665", "0.67209566", "0.6697371", "0.66879237", "0.6669324", "0.65156746", "0.63755214", "0.6356878", "0.6340705", "0.6326233", "0.6320554", "0.6294522", "0.6279988", "0.62730396", "0.6269665", "0.6256518", "0.6238862", "0.6225016", "0.6215008", "0.6207343...
0.60009426
32
Given a partially filled np array (valid column count, but less than 22 rows), this utility method fills the state the rest of the way.
def MDmD(QTBn): H2v2, TVTK = QTBn.shape assert TVTK == wsY0.WIDTH return oyIN.vstack([oyIN.full((wsY0.HEIGHT - H2v2, TVTK), 0, dtype=oyIN.uint8), QTBn])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXeI(YKHO):\n if YKHO.imagearray is None:\n if YKHO.gs.isfixed:\n for exwG in range(0, YKHO.numcols):\n YKHO.vspins[exwG].setValue(YKHO.currentvalues[exwG])\n elif YKHO.gs.isperc:\n for exwG in range(0, YKHO.numcols):\n YKHO.fillinpercent(exw...
[ "0.5919509", "0.59103376", "0.57226", "0.5703246", "0.5658327", "0.5596019", "0.55945796", "0.55218744", "0.54737306", "0.5458633", "0.54267544", "0.5423887", "0.537788", "0.53699356", "0.5342563", "0.53341424", "0.5295545", "0.5292082", "0.52698135", "0.5268607", "0.5260933"...
0.5169968
28
Uses action to obtain next state, reward, done.
def YPaw(YKHO, WTSp): vOGg = 0 zdUJ = [] for bGrB in range(YKHO.action_repeat): R8QJ = YKHO.sim.pose[:3] _ins = YKHO.sim.next_timestep(WTSp) R8mN = YKHO.sim.pose[:3] vOGg += YKHO.get_reward(R8QJ, R8mN, cos=0) zdUJ.append(YKHO.sim.pose) rxHc = oyIN.concatenate(zdUJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPaw(YKHO, XeOP):\n EpMx, BFeB = zip(*YKHO.get_next_states(YKHO._current_state, XeOP).items())\n rxHc = XvqG(EpMx, p=BFeB)\n vOGg = YKHO.get_reward(YKHO._current_state, XeOP, rxHc)\n J1ea = YKHO.is_terminal(rxHc)\n YKHO._current_state = rxHc\n return (rxHc, vOGg, J1ea, {})", "def YPaw(YKHO,...
[ "0.8107008", "0.80822814", "0.79322904", "0.7890215", "0.7873637", "0.78711975", "0.7752803", "0.7744573", "0.7679886", "0.76718366", "0.76401633", "0.7632102", "0.76127946", "0.76031494", "0.7581104", "0.75581264", "0.75561917", "0.753357", "0.75242126", "0.7513636", "0.7492...
0.0
-1
r""" Returns a dictionary containing ALL pore data from all netowrk and/or phase objects received as arguments
def BfjV(p9NO=[], TDw3='_'): if type(p9NO) is not list: p9NO = list(p9NO) _d_K = {} yWAb = TDw3 zJTk = ['pore.centroid', 'pore.vertices', 'throat.centroid', 'throat.offset_vertices', 'throat.vertices', 'throat.normal', 'throat.perimeter', 'pore.vert_index', 'throat.vert_index'] for ZfUD in p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jbKh():\n y2QL = {'policer_data': {'name': 'policy1', 'cir': 450, 'cb': 50000, 'rate-type': 'kbps', 'round-type': 'closest', 'type': '1r2c', 'conform-action': {'meter-action-type': 'meter-action-transmit'}, 'exceed-action': {'meter-action-type': 'meter-action-drop'}}, 'policer_data_oper': {'name': 'policy1'...
[ "0.5974678", "0.5821198", "0.5745917", "0.5739407", "0.5672095", "0.5581523", "0.5578456", "0.55391955", "0.5414546", "0.5410114", "0.5405513", "0.5392099", "0.5380054", "0.53719944", "0.5358579", "0.535784", "0.5347108", "0.5339806", "0.5322268", "0.53221494", "0.5301466", ...
0.0
-1
Get null Boolean value.
async def get_null(YKHO, **B2fa: Any) -> h8nf[bool]: KVtY = {401: lhwm, 404: llBy, 409: DKDz, 304: AVtL} KVtY.update(B2fa.pop('error_map', {}) or {}) kkzV = B2fa.pop('headers', {}) or {} Vlb9 = B2fa.pop('params', {}) or {} Emd4: urG6[h8nf[bool]] = B2fa.pop('cls', None) QePW = RrUR(headers=kkzV, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uYVM(YKHO):\n return YKHO.value is None", "def Xdw0(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'allow_null_values')", "def Xdw0(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'allow_null_values')", "def fm7D(YEnM):\n BWXx = qaz5(YEnM)\n if BWXx is None:\n re...
[ "0.74350286", "0.71980995", "0.71458703", "0.705052", "0.7013555", "0.69958496", "0.6968041", "0.6968041", "0.6968041", "0.6968041", "0.6968041", "0.6959913", "0.6933754", "0.6911359", "0.6847203", "0.67280614", "0.6721219", "0.6706624", "0.66830575", "0.66720784", "0.664851"...
0.0
-1
Returns a string representation of a message.
def Ku9n(YKHO): return "'" + YKHO.text + "' logged on " + EdeD.strftime('%a, %d, %B, %Y at %X')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.message.as_string()", "def Ol8d(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('message'))", "def Ol8d(YKHO) -> str:\n return YKHO.fields.get('msg', YKHO.raw_string)", "def zAg0(YKHO):\n return YKHO.message", "def zAg0(YKHO) -> str:\n return 'Envelop...
[ "0.7643055", "0.760663", "0.75257295", "0.7401041", "0.7224426", "0.7207394", "0.7197409", "0.7174652", "0.7174652", "0.7141438", "0.7141438", "0.7141438", "0.7141438", "0.7141438", "0.7141438", "0.7136344", "0.71200395", "0.71200395", "0.71200395", "0.71200395", "0.71200395"...
0.0
-1
Filter Description based on description keyword.
def JBZA(YKHO, seET: Enum, JBZA: list | str): if isinstance(JBZA, list) and seET not in YKHO.list_types: raise RuntimeError('Operator must be CONTAINS, NOT_CONTAINS, INor NOT_IN when filtering on a list of values.') YKHO._tql.add_filter('description', seET, JBZA, LynD.STRING)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b5dA(Emd4, JBZA):\n nNXP = tUML()\n try:\n ei4T = nNXP.filter_by_description(JBZA)\n except wrr3:\n ei4T = Emd4.objects.filter(description__startswith=JBZA)\n return ei4T", "def Mhbb(YKHO, jQ3Z):\n jQ3Z = jQ3Z[jQ3Z['Description'].str.contains('and')]\n jQ3Z['Description'] = jQ...
[ "0.72910744", "0.6737357", "0.6421571", "0.6058544", "0.5966701", "0.56998295", "0.56963193", "0.56778526", "0.56636345", "0.56406564", "0.55873966", "0.5537824", "0.55292904", "0.55285573", "0.5493067", "0.54706013", "0.5447359", "0.54468805", "0.54079825", "0.53593236", "0....
0.635064
4
Filter Associated Group based on hasGroupAttribute keyword.
def A7MK(YKHO, seET: Enum, A7MK: int | list): if isinstance(A7MK, list) and seET not in YKHO.list_types: raise RuntimeError('Operator must be CONTAINS, NOT_CONTAINS, INor NOT_IN when filtering on a list of values.') YKHO._tql.add_filter('hasGroupAttribute', seET, A7MK, LynD.INTEGER)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def moMn(YKHO):\n BdN0 = YKHO.copy()\n BdN0._filter = ['groups']\n return BdN0", "def pCnZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'groupfilter')", "def pCnZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'groupfilter')", "def Mkql(YKHO):\n from tcex.api.tc.v3.group...
[ "0.6293052", "0.61592096", "0.61592096", "0.5857845", "0.5853963", "0.583097", "0.58033013", "0.5696321", "0.5584365", "0.55672073", "0.5535851", "0.5465301", "0.5465269", "0.54211557", "0.5398379", "0.5343377", "0.5271181", "0.5253097", "0.52527404", "0.52527404", "0.5233976...
0.6256147
1
Copies the first n items from q.
def sf7S(YKHO, vexM, exwG): jbXL = vexM.copy() return MUE7(reversed([jbXL.pop() for bGrB in range(exwG)]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iMd(YKHO, exwG):\n return x1iM(uehb(YKHO, exwG))", "def _iMd(exwG, Q6uT):\n return Hs6x.islice(Q6uT, exwG)", "def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))", "def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))", "def _iMd(OxJJ, exwG):\n return list(Hs6x.islice(OxJJ, exwG))", ...
[ "0.64387465", "0.6300363", "0.6298109", "0.6298109", "0.6225375", "0.619442", "0.61891025", "0.61891025", "0.59269166", "0.5898483", "0.5890745", "0.5890017", "0.58869463", "0.5769344", "0.5731915", "0.5716537", "0.5715462", "0.5715462", "0.568876", "0.5663788", "0.5588568", ...
0.72947156
0
Find a group for val and add it there. A group key is calculated by group_by. If no such key exists, a new group is created. If a formatting key was not found for val,
def QdZT(YKHO, wEf2): try: H5ew = YKHO._group_by(wEf2) except m66p.core.LenaKeyError: raise m66p.core.LenaValueError('could not find a key for {}'.format(wEf2)) if H5ew in YKHO.groups: YKHO.groups[H5ew].append(wEf2) else: YKHO.groups[H5ew] = [wEf2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p35E(YKHO, MvN2):\n\n def QZee(H5ew, uOe2):\n YKHO[H5ew].send(uOe2)\n N8gi = (yield from YcfV(QZee, MvN2))", "def jdoK(YKHO, H5ew):\n C4gk = QzxI(YKHO, H5ew)\n YKHO._grps[H5ew] = C4gk\n return C4gk", "def uOe2(YKHO, wEf2):\n YKHO.set_property('Group', wEf2)", "def GiuQ(YKHO, H5ew...
[ "0.62460804", "0.5931766", "0.5929217", "0.5738482", "0.55488914", "0.5493878", "0.53995466", "0.53692806", "0.5329505", "0.524783", "0.5219613", "0.51948535", "0.51936805", "0.5187539", "0.5174229", "0.5158574", "0.51375973", "0.5133945", "0.51203275", "0.5119256", "0.508099...
0.72430766
0
Performs ResNetstyle weight initialization.
def vB93(r8hN): if isinstance(r8hN, U78l.Conv2d): XNhq = r8hN.kernel_size[0] * r8hN.kernel_size[1] * r8hN.out_channels r8hN.weight.data.normal_(mean=0.0, std=epAf.sqrt(2.0 / XNhq)) elif isinstance(r8hN, U78l.BatchNorm2d): ylHS = _Fei.BN.ZERO_INIT_FINAL_GAMMA ylHS = hasattr(r8hN, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)", "def i7WW(YKHO):\n uHk4(YKHO.norm0)", "def C0Lv(YKHO):\n pass", "def vB93(C3ST):\n ...", "def vJuA(YKHO):\n raise NotImplementedError", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights...
[ "0.79430866", "0.7930602", "0.78607583", "0.7798889", "0.77401495", "0.76641744", "0.7662896", "0.7567101", "0.74287575", "0.7413079", "0.73909485", "0.7377951", "0.73493147", "0.73207176", "0.7318793", "0.72907203", "0.726746", "0.7248521", "0.7204027", "0.7199431", "0.71977...
0.0
-1
Sets all model weights from a single flat vector.
def CAYu(C3ST, BvF_): G1Hx = 0 for XP5J in C3ST.parameters(): exwG = XP5J.data.numel() XP5J.data.copy_(BvF_[G1Hx:G1Hx + exwG].view_as(XP5J.data)) G1Hx += exwG assert G1Hx == BvF_.numel()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L1EB(YKHO, _mSQ):\n YKHO.weights = _mSQ.reshape(YKHO.output_size, YKHO.input_size + 1)", "def sNuA(YKHO, _mSQ):\n YKHO.forcing_term.weights_[:, :] = _mSQ.reshape(*YKHO.forcing_term.shape)", "def sNuA(YKHO, _mSQ):\n SqIz = []\n for gEmA in YKHO.layers:\n ThSC = len(gEmA.weights)\n ...
[ "0.7298198", "0.72855574", "0.7152028", "0.71171165", "0.7112108", "0.7080838", "0.70481706", "0.70481706", "0.70098025", "0.6777375", "0.6718739", "0.67022854", "0.6671261", "0.6660021", "0.66521096", "0.66359806", "0.6623057", "0.6608641", "0.6599572", "0.6599149", "0.65855...
0.7406195
0