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
Update_all metadata of this snapshot.
def Sr11(YKHO, yIVm): return YKHO.manager.update_all_metadata(YKHO, yIVm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CMLf(YKHO):\n YKHO.update_head_node_ip()\n YKHO.get_database_info()\n YKHO.update_users()", "def uUrB(YKHO):\n p7VJ = {'hashes': None, 'length': Vohw.conf.DEFAULT_TIMESTAMP_REQUIRED_LENGTH}\n YKHO._update_metadata('timestamp', p7VJ)\n YKHO._update_metadata_if_changed('release', referenced_m...
[ "0.6868728", "0.6319508", "0.6261929", "0.622208", "0.6167493", "0.6163127", "0.61615056", "0.6157004", "0.60849595", "0.60840976", "0.6017378", "0.5946436", "0.5910082", "0.5863472", "0.5857743", "0.5834939", "0.5809947", "0.5766356", "0.5738539", "0.5737868", "0.57173395", ...
0.7930917
0
Zero pad to numpy array.
def Qf2F(bySB: List[np.ndarray], u5Om: tuple) -> x1iM[oyIN.ndarray]: QZOY = [] for RDhP in bySB: a3CE = RDhP.shape if len(a3CE) < len(u5Om): for YRbF in range(len(u5Om) - len(a3CE)): RDhP = oyIN.expand_dims(RDhP, axis=len(RDhP.shape) + 1) a3CE = RDhP.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOVh(nPrm):\n ywwl = len(nPrm)\n F_2A = oyIN.ceil(oyIN.log2(ywwl))\n return oyIN.pad(nPrm, (0, int(2 ** F_2A - ywwl)), 'constant')", "def AOVh(qI8f, ROpF=(1024, 1024), WJBW=0):\n if len(qI8f.shape) > 2:\n lSCz = list(qI8f.shape)\n lSCz[-1] = ROpF[1]\n lSCz[-2] = ROpF[0]\n ...
[ "0.7998153", "0.7387653", "0.73454505", "0.73405844", "0.72548026", "0.7242509", "0.70905924", "0.7005037", "0.67003804", "0.66725624", "0.65684724", "0.65642804", "0.65267915", "0.64349526", "0.6415267", "0.6409547", "0.6373104", "0.63685095", "0.63581", "0.63202703", "0.630...
0.0
-1
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! Let's explore some US bikeshare data!\n") gysO = ['Chicago', 'New York city', 'Washington'] j5sA = Uuo7(gysO, 'city') X_bn = ['All', 'Jan', 'Feb', 'Mar', 'Apr', 'Jun'] x0eS = Uuo7(X_bn, 'month') Sm0u = ['All', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Sat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.66718096", "0.6536446", "0.64608175", "0.63732874", "0.6349621", "0.6310782", "0.62876326", "0.6260145", "0.6230216", "0.62113076", "0.62061083", "0.61823773", "0.61707395", "0.6170415", "0.6160548", "0.6158978", "0.6154724", "0.61454946", "0.6130887", "0.61055917", "0.610...
0.0
-1
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): dBfS = j5sA.lower() if ldnZ: print(dBfS) try: print('getting data from: ', OerS[dBfS]) jQ3Z = rLdf.read_csv(OerS[dBfS]) except OSError as e: print('Error: cannot find the data files') print(' Please make sure they are available in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.797905", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.788921...
0.75334424
87
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() vswJ = jQ3Z['Month'].mode()[0] print('The most popular rental month: {0}'.format(GRk0.month_name[vswJ])) NO20 = jQ3Z['Start Day'].mode()[0] print('The most popular start day of the week: {0}'.format(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80234534", "0.80220866", "0.7914726", "0.7826028", "0.7821531", "0.7813864", "0.7765123", "0.7739495", "0.7735815", "0.773377", "0.76860726", "0.7667975", "0.7651258", "0.7644125", "0.76395637", "0.763636", "0.7624526", "0.76224995", "0.7612101", "0.7599869", "0.7583085", ...
0.71190524
82
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() CuPk = jQ3Z['Start Station'].value_counts().idxmax() print('Most Commonly used start station:\n', CuPk) nG3J = jQ3Z['End Station'].value_counts().idxmax() print('\nMost Commonly used end station:\n'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7446617", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198...
0.7248859
36
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() SYcA = sum(jQ3Z['Trip Duration']) print('Total of trip duration is:') Maxe(SYcA) RB_u = jQ3Z['Trip Duration'].mean() print('The mean travel is:') Maxe(RB_u) print('\nThis took %s seconds.' % (ITS7.time() - S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.77180123
66
Construct a StanModel instance from a ``.stan`` file, compiling if necessary.
def CJF4(Emd4, F2Ad: str, iGq6: Optional[str]=None, *, sUe0: List[str]=[], HGIJ: List[str]=[], yokr: int=1234, rMta: bool=True): Aofo = m5Rz(F2Ad, stanc_args=sUe0, make_args=HGIJ) return Emd4(str(Aofo), iGq6, seed=yokr, capture_stan_prints=rMta)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m5Rz(F2Ad: str, *, sUe0: List[str]=[], HGIJ: List[str]=[]) -> GkAb:\n sJOw(IMzY())\n qaEx = GkAb(F2Ad).resolve()\n nweS(str(qaEx))\n if qaEx.suffix != '.stan':\n raise ValueError(f\"File '{F2Ad}' does not end in .stan\")\n sUe0\n hlel = Wofl(qaEx)\n HCmI = [U5tc] + HGIJ + ['STANCFLA...
[ "0.6995783", "0.6872816", "0.6239374", "0.62104636", "0.61302114", "0.591248", "0.58029556", "0.5776385", "0.5688892", "0.5659147", "0.56055087", "0.55270445", "0.5511881", "0.5499894", "0.54569024", "0.5448554", "0.5443375", "0.54289037", "0.54172283", "0.5381617", "0.531048...
0.8602972
0
Retorna la pagina about.
def vsuQ(): return 'about Python Flask'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html')", "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='Your application description page.')", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now()...
[ "0.81096554", "0.8085279", "0.80593985", "0.80501866", "0.80427057", "0.79795784", "0.7971144", "0.7971144", "0.7971144", "0.7971144", "0.7971144", "0.7971144", "0.7971144", "0.7971144", "0.7971144", "0.7971144", "0.7971144", "0.7971144", "0.7971144", "0.7960417", "0.7956225"...
0.0
-1
Get the versioned client implementation corresponding to the current profile.
def MeN_(YKHO): clva = YKHO._get_api_version(None) if clva not in YKHO._client_impls: YKHO._create_client_impl(clva) return YKHO._client_impls[clva]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxbw(lZwM, aGvo, TJdH, Qb9h={}):\n cuiw = KfiN(lZwM, aGvo)\n x0hE = cuiw.client(TJdH, **Qb9h)\n return x0hE", "def V1VQ(YKHO, z39Z: str):\n _uqo = YKHO.hass.data[AUAL]\n zb3C = _uqo[PtXs.CLIENT_ID]\n Cxz5 = _uqo[PtXs.CLIENT_SECRET]\n NKRf = _uqo[PtXs.BASE_URL].rstrip('/')\n ZYXu = '{}...
[ "0.6323861", "0.61060524", "0.5968721", "0.59572214", "0.59455395", "0.59148544", "0.5796345", "0.57577384", "0.5755577", "0.57547855", "0.5727445", "0.5711889", "0.5696628", "0.56956995", "0.5681377", "0.56442153", "0.5604289", "0.56028265", "0.55928457", "0.5545612", "0.553...
0.6911792
0
Calls __enter__ on all client implementations which support it
def DMw_(YKHO, *qIxc, **B2fa): for bGrB, m5hN in YKHO._client_impls.items(): if hasattr(m5hN, '__enter__'): m5hN.__enter__(*qIxc, **B2fa) YKHO._entered = True return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def __aenter__(YKHO):\n if YKHO._closed:\n raise RuntimeError('The client cannot be started again after closing. Retrieve a new client with `get_client()` instead.')\n if YKHO._started:\n raise RuntimeError('The client cannot be started more than once.')\n YKHO._loop = V7ok.get_running...
[ "0.69587845", "0.68039227", "0.6670977", "0.6559515", "0.65116143", "0.6491946", "0.6491946", "0.63118905", "0.6193657", "0.61641634", "0.614035", "0.61303926", "0.61303926", "0.6099078", "0.6055862", "0.6009713", "0.5942098", "0.5940076", "0.59198815", "0.5909059", "0.590875...
0.7726076
0
Update the parameters with learning rate lr
def M5Pf(YKHO, tspZ): YKHO.W = YKHO.W - tspZ * YKHO.W_grad YKHO.b = YKHO.b - tspZ * YKHO.b_grad
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor * YKHO._get_lr_scale()\n for Lwm5 in YKHO._optimizer.param_groups:\n Lwm5['lr'] = tspZ", "def NcuP(YKHO):\n b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num_epoch) ** YKHO.params.power\n for Lwm5 in YKHO.opt.param...
[ "0.8386066", "0.82096964", "0.8102654", "0.801989", "0.799177", "0.7950852", "0.7886401", "0.7846111", "0.78382576", "0.7830275", "0.7826277", "0.7826277", "0.7810395", "0.7810395", "0.7810395", "0.77781767", "0.77379185", "0.7728301", "0.77279466", "0.77225894", "0.76930004"...
0.80124676
4
Enable propertyaccess style access to registered services, i.e., registry.MyClass.
def JgjC(YKHO, Ki9o): return YKHO._retrieve_registered_value(Ki9o)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWZW(Emd4):\n\n def mrMx(JfyU):\n JfyU.enable = lambda: pjRd(Emd4, [O0GR(JfyU)], JfyU)\n JfyU.disable = lambda: iBV9(Emd4, [O0GR(JfyU)], JfyU)\n return JfyU\n return mrMx", "def PCU8(YKHO, mWFP, BWXx):\n if YKHO.serviceimplementation == 'basic':\n if mWFP in ('serviceprop...
[ "0.589596", "0.5747291", "0.53648424", "0.52845883", "0.509775", "0.49864194", "0.49589944", "0.4913165", "0.4913165", "0.4913165", "0.4913165", "0.4913165", "0.4913165", "0.4913165", "0.4913165", "0.4913165", "0.4913165", "0.4913165", "0.4913165", "0.4913165", "0.4913165", ...
0.0
-1
Return a Playbook object.
def sI6o(YKHO) -> 'Playbook': return YKHO.app.playbook
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YERn(Eorv):\n try:\n zIBG = open(Eorv, 'r')\n except (IOError, OSError) as e:\n bo34.error('Could not load workflow from {0}. Reason: {1}'.format(Eorv, DG5C(tTpl)))\n return None\n else:\n with zIBG:\n Yali = zIBG.read()\n try:\n kwgo = ...
[ "0.6649455", "0.61967385", "0.5653815", "0.557339", "0.5398821", "0.536496", "0.5301132", "0.5204363", "0.51931626", "0.5162674", "0.51115096", "0.5109811", "0.5097064", "0.50876683", "0.5086429", "0.5076074", "0.5076074", "0.5076074", "0.5054297", "0.5046929", "0.5030425", ...
0.8063025
0
String for representing the Model object (in Admin site etc.)
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta....
[ "0.7801624", "0.77112937", "0.767426", "0.767426", "0.7524702", "0.74020135", "0.7398639", "0.7378346", "0.7328583", "0.7270028", "0.7244434", "0.7233179", "0.7205981", "0.7174358", "0.7165676", "0.7108926", "0.70379156", "0.70379156", "0.7012156", "0.69865996", "0.6968002", ...
0.0
-1
String for representing the Model object (in Admin site etc.)
def zAg0(YKHO): return YKHO.regions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta....
[ "0.7801624", "0.77112937", "0.767426", "0.767426", "0.7524702", "0.74020135", "0.7398639", "0.7378346", "0.7328583", "0.7270028", "0.7244434", "0.7233179", "0.7205981", "0.7174358", "0.7165676", "0.7108926", "0.70379156", "0.70379156", "0.7012156", "0.69865996", "0.6968002", ...
0.0
-1
String for representing the Model object (in Admin site etc.)
def zAg0(YKHO): return '{0} ({1})'.format(YKHO.rajons, YKHO.region_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta....
[ "0.7801624", "0.77112937", "0.767426", "0.767426", "0.7524702", "0.74020135", "0.7398639", "0.7378346", "0.7328583", "0.7270028", "0.7244434", "0.7233179", "0.7205981", "0.7174358", "0.7165676", "0.7108926", "0.70379156", "0.70379156", "0.7012156", "0.69865996", "0.6968002", ...
0.0
-1
String for representing the Model object (in Admin site etc.)
def zAg0(YKHO): return '%s, %s, %s' % (YKHO.last_name, YKHO.first_name, YKHO.patron_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta....
[ "0.78016543", "0.7712146", "0.7675692", "0.7675692", "0.7525264", "0.740416", "0.7396687", "0.73751175", "0.732573", "0.72692174", "0.7241136", "0.7235689", "0.72075593", "0.7174236", "0.71677464", "0.710979", "0.70352644", "0.70352644", "0.70127875", "0.6987778", "0.6966356"...
0.0
-1
Normalize file names from file URL to local file names.
def nYEy(bD7m): IznC = bD7m.replace('file://', '') if Hy7s.sep != '/' and (not Hy7s.path.exists(IznC)): IznC = IznC.lstrip('/') return IznC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pj60(YKHO, bD7m, IznC):\n if IznC:\n Ux0P = gzes(YKHO.cache_dir, IznC)\n else:\n Ux0P = YKHO.filename_from_url(bD7m)\n return Ux0P", "def NVCy(bD7m):\n jUwZ = '-_() %s%s' % (vIwR.ascii_letters, vIwR.digits)\n rHjQ = bD7m.replace('.', '_').replace(':', '_')\n Ux0P = ''.join([Z9...
[ "0.68801403", "0.6818065", "0.6798775", "0.66266495", "0.6521036", "0.6470824", "0.64068335", "0.6389993", "0.6358907", "0.63168097", "0.6216324", "0.6215801", "0.62091863", "0.6144447", "0.6135389", "0.6124519", "0.61192256", "0.6061179", "0.60269904", "0.60117525", "0.59759...
0.77696913
0
Apply a workaround for CSSUtils, which replaces `\0` tokens in the code with actual 0bytes. `\0` is used as a IE hack, e.g. by Twitter's Bootstrap.
def jEv6(l5Ny): return l5Ny.replace('\x00', '\\0')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VTG1(l5Ny):\n return l5Ny.replace('\\x00', '<NUL>')", "def J5wb(oykL):\n RKD7.debug('Condensing all zeroes on values.')\n return ZbWC.sub('([\\\\s:])(0)(px|em|%|in|q|ch|cm|mm|pc|pt|ex|rem|s|ms|deg|grad|rad|turn|vw|vh|vmin|vmax|fr)', '\\\\1\\\\2', oykL)", "def heBZ(Dhyu):\n b9co = Dhyu.find('\\x...
[ "0.6808445", "0.641989", "0.58655035", "0.5839831", "0.58389693", "0.5788328", "0.57769346", "0.57070446", "0.56950766", "0.5682172", "0.56806463", "0.567098", "0.56177825", "0.55880415", "0.5579823", "0.5536991", "0.5493856", "0.5452998", "0.545274", "0.54504776", "0.5438553...
0.8189479
0
Return a logistic map function with fixed mu. Logistic map f(x) = 4 mu x (1x), which folds the unit interval (0,1) into itself.
def D7Jk(yGTL): FDJ9 = 4 * yGTL def eHNT(WKvO): return FDJ9 * WKvO * (1.0 - WKvO) return eHNT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3D9(eHNT):\n return 1127 * XTiz.log(1 + eHNT / 700.0)", "def D7Jk(yGTL, qEJV, WKvO):\n exwG = oyIN.exp(-((WKvO - yGTL) / (0.477 * qEJV)) ** 2)\n return 2.0 * exwG / (1 + exwG)", "def zDgH(WKvO, Mkmy=1):\n\n def M_t2(WKvO):\n return Mkmy * WKvO * (1 - WKvO)\n hlel = M_t2(WKvO)\n wh...
[ "0.65187085", "0.6192753", "0.60016406", "0.57829744", "0.57829744", "0.5699263", "0.56904465", "0.56516844", "0.56114656", "0.5568615", "0.55212724", "0.5497562", "0.5486157", "0.5486157", "0.5486157", "0.5486157", "0.54477966", "0.54423857", "0.54328924", "0.54153717", "0.5...
0.7953905
0
Initialize the derived quantities from the inputs that must be compute one time only.
def VcYf(YKHO): YKHO.initialized = True if YKHO.ids_to_consider is None: YKHO.V_tot = oyIN.sum(YKHO.V[YKHO.p_ids - 1]) else: YKHO.V_tot = oyIN.sum(YKHO.V[YKHO.ids_to_consider - 1]) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super(VEO0, YKHO).__init__()\n YKHO.init_pop_size = rLdf.Series([], dtype='float')\n YKHO.growth_rate = rLdf.Series([], dtype='float')\n YKHO.time_steps = rLdf.Series([], dtype='float')", "def Mmyb(YKHO) -> None:\n YKHO.inputs.lifts_per_truck_day = YKHO.operations.lifts_per_truck...
[ "0.65032315", "0.638384", "0.6367897", "0.62992376", "0.6211577", "0.61994267", "0.61531717", "0.6152471", "0.6133698", "0.61155415", "0.60800415", "0.6013803", "0.6004064", "0.5986231", "0.59809536", "0.59678334", "0.596487", "0.5950653", "0.59262246", "0.59189475", "0.58956...
0.6454027
1
Checks if a theme is installed.
def qDs5(w7QH): try: vk7f(w7QH) except KeyError: raise oHZn('Theme {} not found.'.format(w7QH), fg='red')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ltjQ(w7QH: str) -> bool:\n GmB3 = ['dark', 'light']\n return w7QH in GmB3", "def Djdv(yocm, yJtM=None):\n for w7QH in W52U(themes_dir=yJtM):\n if w7QH.theme_dir_name == yocm:\n return True\n return False", "def N6fg(khoC, w7QH):\n for dxhl in khoC:\n if dxhl.CARDTYPE...
[ "0.77949214", "0.7444488", "0.6910317", "0.67785037", "0.6739074", "0.6561798", "0.6532176", "0.64617276", "0.64524174", "0.6302741", "0.62921214", "0.624466", "0.6232153", "0.62213564", "0.62017083", "0.6197273", "0.6175501", "0.61491346", "0.61464965", "0.6139323", "0.60790...
0.68968505
3
Generate a random string of fixed length
def e7Tf(FVpJ=4): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "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.8680464", "0.8573714", "0.85486245", "0.85297275", "0.85209286", "0.84331024", "0.8432044", "0.84157014", "0.84120053", "0.8389201", "0.8345882", "0.8343962", "0.83406156", "0.83348686", "0.83240855", "0.82986933", "0.82911193", "0.8281826", "0.82818025", "0.82811046", "0....
0.8137093
30
returns start time of the pulse. This is typically set by the sequence element at the time the pulse is added to the element.
def lGE9(YKHO): return YKHO._t0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWox(YKHO):\n return Ybv7.GetAudioAccessorStartTime(YKHO.id)", "def rvsq(YKHO) -> float:\n try:\n return YKHO.times[0]\n except IndexError:\n return 0.0", "def SWox(YKHO) -> float:\n return YKHO._start_time", "def SWox(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, ...
[ "0.7604898", "0.7364986", "0.72931373", "0.72430485", "0.718628", "0.71772695", "0.7154747", "0.7154747", "0.708563", "0.7068199", "0.7068199", "0.70155215", "0.70155215", "0.70155215", "0.70155215", "0.70155215", "0.70155215", "0.70155215", "0.70155215", "0.69938636", "0.698...
0.0
-1
returns the end time of the pulse.
def Os4s(YKHO): return YKHO._t0 + YKHO.length
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MJWj(YKHO) -> float:\n try:\n return YKHO.times[-1]\n except IndexError:\n return 0.0", "def C7pn(YKHO):\n return Ybv7.GetAudioAccessorEndTime(YKHO.id)", "def C7pn(YKHO) -> float:\n ...", "def C7pn(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'end_time')", "def ...
[ "0.773276", "0.76763105", "0.76053137", "0.7577121", "0.7404534", "0.7400363", "0.73741764", "0.73741764", "0.7276144", "0.7276144", "0.7276144", "0.7276144", "0.7276144", "0.7276144", "0.72444224", "0.7241606", "0.7210781", "0.71499836", "0.71275824", "0.7079189", "0.6996447...
0.6442744
54
In order to be flexible regarding comparison, the equality rules for a record permit comparison with any other Sequence or Mapping.
def xa14(YKHO, Elif: object) -> bool: jG5X = isinstance(Elif, bdIy) tvKX = isinstance(Elif, GySg) if jG5X and tvKX: Elif = a1PO.cast(a1PO.Mapping, Elif) return list(YKHO) == list(Elif) and dict(YKHO) == dict(Elif) elif jG5X: Elif = a1PO.cast(a1PO.Sequence, Elif) return li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wuey(YKHO):\n YKHO.assertTrue(Ky4Y(1, 2) == Ky4Y(1, 2))\n YKHO.assertFalse(Ky4Y(1, 2) == Ky4Y(1, 3))\n YKHO.assertFalse(Ky4Y(1, 2) == Ky4Y(2, 2))\n YKHO.assertFalse(Ky4Y(1, 2) == Ky4Y(3, 4))", "def rh2H(YKHO):\n lhKE = kpgd('test.example.com')\n nPrm = {'type': 'A', 'ttl': 30, 'values': ['1...
[ "0.7252796", "0.71938896", "0.71783465", "0.71072346", "0.6887125", "0.67846924", "0.671754", "0.6609199", "0.6596293", "0.65892416", "0.6579389", "0.65446275", "0.6495156", "0.6469961", "0.6469961", "0.6439405", "0.64190996", "0.6409007", "0.6408959", "0.64071876", "0.634609...
0.70394677
4
Return the fields of the record as a list of key and value tuples
def DumB(YKHO, *sjXb): if sjXb: Csk6 = [] for H5ew in sjXb: try: YRbF = YKHO.index(H5ew) except KeyError: Csk6.append((H5ew, None)) else: Csk6.append((YKHO.__keys[YRbF], YKHO[YRbF])) return Csk6 return li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_D6(YKHO):\n return [eHNT[1] for eHNT in sorted(YKHO.dd.fields.items())]", "def V_D6(YKHO):\n return {G1Hx: getattr(YKHO, G1Hx, None) for G1Hx in YKHO.schema.fields}", "def V_D6(YKHO):\n return YKHO._by_name.iteritems()", "def jqfw(YKHO):\n return YKHO.description['fields']['values'].keys()"...
[ "0.67695063", "0.6748261", "0.6744186", "0.67139703", "0.67065036", "0.6686762", "0.6618695", "0.6567906", "0.65404093", "0.6536849", "0.65270287", "0.64849865", "0.64679915", "0.6450809", "0.6448236", "0.63870263", "0.6347598", "0.63242847", "0.6276803", "0.62702715", "0.626...
0.0
-1
calculate the function F(x,y)=exp((xx_0)2(yy_0)2) x x value y y value
def PFkq(YKHO, WKvO, LVAh): return oyIN.exp(-(WKvO - YKHO.x_0) ** 2.0 - (LVAh - YKHO.y_0) ** 2.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vuvg(WKvO):\n return epAf.exp(-0.5 * WKvO ** 2)", "def Vw3p(YKHO):\n\n def stDt(XP5J):\n y4fz, EBgd = XP5J\n tTpl = UN2R.exp(-(y4fz + EBgd) * YKHO.ts)\n WKvO = 1 / (-y4fz - EBgd) * UN2R.array([[-EBgd - y4fz * tTpl, -EBgd + EBgd * tTpl], [-y4fz + y4fz * tTpl, -y4fz - EBgd * tTpl]])\...
[ "0.71134853", "0.7094464", "0.7051571", "0.6987379", "0.68706274", "0.68641293", "0.68641293", "0.67642224", "0.6753491", "0.6740192", "0.6723798", "0.6723798", "0.66501915", "0.66483563", "0.6629544", "0.6610866", "0.65891457", "0.65567136", "0.6539632", "0.6508368", "0.6504...
0.7207828
0
calculate the function F(x,y)=exp((xx_0)2(yy_0)2) x_vec list containint the x and y value
def JfyU(YKHO, Ldf2): WKvO = Ldf2[0] LVAh = Ldf2[1] return oyIN.exp(-(WKvO - YKHO.x_0) ** 2.0 - (LVAh - YKHO.y_0) ** 2.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h44Y(YKHO, Ldf2):\n WKvO = Ldf2[0]\n LVAh = Ldf2[1]\n epBp = oyIN.array([2 * (YKHO.x_0 - WKvO), 2 * (YKHO.y_0 - LVAh)])\n return epBp * YKHO.sfunc(WKvO, LVAh)", "def eHNT(WKvO):\n return -epAf.exp(WKvO[0] ** 3 / -3 + WKvO[0] - WKvO[1] ** 2)", "def eHNT(WKvO):\n return -epAf.exp(WKvO[0] **...
[ "0.68436044", "0.67586005", "0.67586005", "0.67331713", "0.6510066", "0.6494334", "0.64943016", "0.64839154", "0.6428267", "0.6421599", "0.6421599", "0.64144254", "0.6411929", "0.6356152", "0.6329997", "0.6321216", "0.62545985", "0.6244694", "0.61959976", "0.61943984", "0.616...
0.81820416
0
! Compute the proximal operator of the \f$\ell_1\f$norm \f$ prox_{\lambda \|.\|_1} = {arg\min_x}\left\{\|.\|_1^2 + \frac{1}{2\lambda}\|x w\|^2\right\} \f$
def nVu9(yzQ0, gYZ3): return oyIN.sign(yzQ0) * oyIN.maximum(oyIN.abs(yzQ0) - gYZ3, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_SW(YKHO, WKvO):\n if YKHO.regularize:\n WKvO[:YKHO.offset(WKvO)] /= 1 + 2 * YKHO.tau * YKHO.lambda_\n return WKvO", "def A_SW(YKHO, WKvO):\n if YKHO.regularize:\n WKvO[:YKHO.offset(WKvO)] /= 1 + 2 * YKHO.tau * YKHO.lambda_\n return WKvO", "def A_SW(YKHO, WKvO):\n if YKHO.regu...
[ "0.70907074", "0.70907074", "0.70907074", "0.6738347", "0.66969883", "0.66456556", "0.6434906", "0.6348603", "0.6244805", "0.6243417", "0.6214859", "0.6150981", "0.6128996", "0.6062726", "0.6054258", "0.6032138", "0.60086906", "0.5869223", "0.5868149", "0.58659613", "0.586596...
0.6361919
7
Returns the User model that is active in this project.
def egNl(YKHO): try: return QDl1.get_model('clientArea.CustomUser') except ValueError: raise rqaQ("AUTH_USER_MODEL must be of the form 'app_label.model_name'") except LookupError: raise rqaQ("AUTH_USER_MODEL refers to model '%s' that has not been installed" % gCuF.AUTH_USER_MODEL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBIr(YKHO):\n return YKHO.user_model", "def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None", "def CBIr(YKHO):\n return DW23.User(YKHO)", "def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n if fnHH is None:\n G9jH....
[ "0.7897438", "0.74299675", "0.7307265", "0.71993166", "0.7174365", "0.7168708", "0.71579576", "0.71151614", "0.70262516", "0.69746816", "0.6940687", "0.6889999", "0.68655735", "0.68325156", "0.68325156", "0.67975175", "0.6794607", "0.67897165", "0.6764167", "0.67618823", "0.6...
0.67863804
18
Transport the incoming target samples `x` under condition `condition` to the gauss distribution. This is referred to as the normalizing flow direction. Notes Whether normalizing is the forward pass or the inverse pass through the flow architecture is defined in the parameter `normalize_forward`.
def PaAI(YKHO, pan_: torch.Tensor, XEri: Optional[torch.Tensor]=None): return YKHO(pan_, condition=XEri, reverse=not YKHO.normalize_forward)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G6aD(YKHO, u8R3: torch.Tensor, XEri: Optional[torch.Tensor]=None):\n return YKHO(u8R3, condition=XEri, reverse=YKHO.normalize_forward)", "def KVH6(YKHO, input, XEri):\n NXpY, oug5 = YKHO.mlp(XEri).chunk(2, dim=-1)\n NXpY = vuvg.tanh(NXpY) * YKHO.rescale\n hlel = (input + oug5) * NXpY.exp()\n z...
[ "0.58286285", "0.57342637", "0.5553101", "0.55244946", "0.538692", "0.5337871", "0.5253329", "0.52393633", "0.51728386", "0.5171997", "0.51601815", "0.51430124", "0.5092782", "0.5084006", "0.5072118", "0.50681967", "0.5064389", "0.5046059", "0.5018628", "0.5012299", "0.501229...
0.6771285
0
Transport the incoming gaussian samples `x` under condition `condition` to the target distribution. This is referred to as the generating flow direction. Notes Whether normalizing is the forward pass or the inverse pass through the flow architecture is defined in the parameter `normalize_forward`.
def G6aD(YKHO, u8R3: torch.Tensor, XEri: Optional[torch.Tensor]=None): return YKHO(u8R3, condition=XEri, reverse=YKHO.normalize_forward)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PaAI(YKHO, pan_: torch.Tensor, XEri: Optional[torch.Tensor]=None):\n return YKHO(pan_, condition=XEri, reverse=not YKHO.normalize_forward)", "def KVH6(YKHO, input, XEri):\n NXpY, oug5 = YKHO.mlp(XEri).chunk(2, dim=-1)\n NXpY = vuvg.tanh(NXpY) * YKHO.rescale\n hlel = (input + oug5) * NXpY.exp()\n ...
[ "0.6617518", "0.5749227", "0.53497016", "0.53390455", "0.51415384", "0.50822854", "0.50691295", "0.5045852", "0.50381243", "0.50260586", "0.50260586", "0.5013777", "0.4998375", "0.4998375", "0.49836564", "0.49763075", "0.49717024", "0.4937533", "0.4930079", "0.49256432", "0.4...
0.61870396
1
modelPropertiesDictionary(sql_row_list) transforms a row gotten via SQL request (list), to a dictionary affects .get_models_list.py
def CzVT(tCuu): ttHo = {'id': tCuu[0], 'name': tCuu[1], 'last_deploy_timestamp': tCuu[2], 'active_version': tCuu[3], 'build_id': tCuu[4]} return ttHo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(C3ST):\n ZLJ_ = [Z9rn.key for Z9rn in FUEm(C3ST.__class__).columns]\n return dict(((Z9rn, getattr(C3ST, Z9rn)) for Z9rn in ZLJ_))", "def Napc(C3ST):\n ZLJ_ = [Z9rn.key for Z9rn in FUEm(C3ST.__class__).columns]\n return dict(((Z9rn, getattr(C3ST, Z9rn)) for Z9rn in ZLJ_))", "def Napc(C3ST):...
[ "0.61147195", "0.61147195", "0.61147195", "0.61054325", "0.60919845", "0.5964863", "0.5924218", "0.58927095", "0.587125", "0.5767751", "0.57551026", "0.57421476", "0.5709395", "0.5651531", "0.56401426", "0.5628836", "0.5603076", "0.55090725", "0.54904616", "0.54904616", "0.54...
0.8361938
0
Rotation about the yaxis.
def A9Me(a1PO): Z9rn = oyIN.cos(a1PO) KCHu = oyIN.sin(a1PO) return oyIN.array([[Z9rn, 0, KCHu], [0, 1, 0], [-KCHu, 0, Z9rn]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CSjm(YKHO):\n return epAf.degrees(YKHO._rot_y_rad)", "def VFbY(YKHO):\n return YKHO._rot_y_rad", "def PQG0(YKHO, *qIxc, **B2fa) -> ImMB:\n pass", "def a60O(YKHO, YylR):\n YylR *= oyIN.pi / 180\n return YKHO.transform(oyIN.matrix([[oyIN.cos(YylR), 0, oyIN.sin(YylR)], [0, 1, 0], [-oyIN.sin(Y...
[ "0.75396633", "0.7354722", "0.7102622", "0.7064357", "0.7036538", "0.6986756", "0.6895528", "0.6895528", "0.68484044", "0.68028474", "0.6717387", "0.66640604", "0.66279566", "0.6614649", "0.658053", "0.6575346", "0.6554816", "0.6505504", "0.63935125", "0.6393029", "0.63855916...
0.0
-1
Compute 3D bounding box IoU.
def YEqQ(LLSR, O66f): VRm2 = [(LLSR[YRbF, 0], LLSR[YRbF, 2]) for YRbF in range(3, -1, -1)] elcS = [(O66f[YRbF, 0], O66f[YRbF, 2]) for YRbF in range(3, -1, -1)] bzU2 = FyA_(oyIN.array(VRm2)[:, 0], oyIN.array(VRm2)[:, 1]) Eq1k = FyA_(oyIN.array(elcS)[:, 0], oyIN.array(elcS)[:, 1]) C7_8, wpbH = BVj6(VR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m4_N(FlUN, oUSw):\n ab__ = (FlUN[2] - FlUN[0]) * (FlUN[3] - FlUN[1])\n f0tD = (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])\n frsW = oyIN.maximum(FlUN[0], oUSw[:, 0])\n TdlV = oyIN.maximum(FlUN[1], oUSw[:, 1])\n yjMy = oyIN.minimum(FlUN[2], oUSw[:, 2])\n YvNL = oyIN.minimum(FlUN[3], o...
[ "0.6807879", "0.6628364", "0.6574111", "0.64615715", "0.6447401", "0.6393963", "0.6388835", "0.63740015", "0.63392276", "0.63392276", "0.6334302", "0.6305478", "0.6278959", "0.6204237", "0.6183429", "0.6178647", "0.6178647", "0.6178647", "0.6162913", "0.6159242", "0.61493546"...
0.5763203
54
the function of sorting the heap
def sEWy(ezWE): if not isinstance(ezWE, list) or len(ezWE) == 0: return for YRbF in range(len(ezWE) // 2 - 1, -1, -1): QZno(ezWE, YRbF, len(ezWE)) for YRbF in range(len(ezWE) - 1, 0, -1): ezWE[0], ezWE[YRbF] = (ezWE[YRbF], ezWE[0]) QZno(ezWE, 0, YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sEWy(list):\n pass", "def sEWy(YKHO, k0lF):\n pass", "def sEWy(YKHO, k0lF):\n pass", "def qMzV(gGCN):\n p06G = gGCN.tamanio\n for YRbF in range(0, gGCN.tamanio - 1):\n geT8(gGCN)\n gGCN.tamanio = p06G", "def sEWy(k0lF):\n X6SM(k0lF)\n for YRbF in range(len(k0lF) - 1, 1, -...
[ "0.8365011", "0.8087424", "0.8087424", "0.7874067", "0.7869051", "0.77728605", "0.7690831", "0.7642304", "0.76183164", "0.7606037", "0.75127214", "0.7480076", "0.745218", "0.7442317", "0.7392429", "0.7375208", "0.73326707", "0.73326707", "0.73134375", "0.72971314", "0.7265115...
0.7769539
6
Return the cumulative sum. >>> cumulative_sum([1,2,3]) [1, 3, 6] >>> cumulative_sum([2,3,4]) [2, 5, 9] >>> cumulative_sum([1,3,5,7]) [1, 4, 9, 16] >>> cumulative_sum([2,4,6,8]) [2, 6, 12, 20] >>> cumulative_sum([3,6,9,12]) [3, 9, 18, 30]
def IJGg(WKvO): wjRY = 0 sum = [] for mLGw in WKvO: wjRY += mLGw sum.append(wjRY) return sum
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJGg(YKHO, qgK3):\n S06t = []\n for YRbF in range(len(qgK3)):\n if YRbF == 0:\n S06t.append(qgK3[YRbF])\n else:\n S06t.append(S06t[YRbF - 1] + qgK3[YRbF])\n return S06t", "def ncqH(fUYa):\n _3JK = 0\n for WKvO in fUYa:\n _3JK += WKvO\n yield _3...
[ "0.73092616", "0.7289155", "0.7164371", "0.7145016", "0.7107696", "0.68762434", "0.67078376", "0.659947", "0.65752566", "0.64420354", "0.6387023", "0.6387023", "0.6387023", "0.63601846", "0.62622476", "0.62622476", "0.62622476", "0.62274414", "0.62189204", "0.6063389", "0.606...
0.7361421
0
Return True if the list is sorted in ascending order and False otherwise. >>> is_sorted([1,2,2]) True >>> is_sorted([3,2,1]) False >>> is_sorted([1,2,3]) True >>> is_sorted(['a','b','c','d','e']) True >>> is_sorted(['a','a','c','b','c','d']) False
def mwCj(WKvO): vC9B = len(WKvO) for YRbF in range(vC9B - 1): if WKvO[YRbF + 1] < WKvO[YRbF]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ3J(bCES):\n THkp = -1\n for ZfUD in bCES:\n if ZfUD < THkp:\n return False\n THkp = ZfUD\n return True", "def mwCj(JTgH):\n tu39 = sorted(JTgH)\n if tu39 == JTgH:\n return True\n else:\n return False", "def mwCj(vC9B):\n for YRbF in range(len(vC...
[ "0.7908684", "0.7807076", "0.74725604", "0.7448854", "0.7348423", "0.7291354", "0.72348017", "0.7209357", "0.7070187", "0.7012517", "0.7000839", "0.6808817", "0.680441", "0.6709827", "0.6693405", "0.6687246", "0.66658926", "0.6639185", "0.65513176", "0.6390741", "0.611132", ...
0.6752697
13
Return the mean average of a list of numbers. >>> average([1,2,3,4]) 2.5 >>> average([2,4,6,8]) 5.0 >>> average([1,3,5,7,9]) 5.0 >>> average([2,3,4,5,6]) 4.0 >>> average([1,4,7,2,5,6,1,8]) 4.25
def S8vG(mLGw): return sum(mLGw) / len(mLGw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ewCO(mSrU):\n return sum(mSrU) / len(mSrU)", "def qqgr(list):\n return sum(list) / len(list)", "def S8vG(yv6U):\n return sum(yv6U) / len(yv6U)", "def S8vG(YKHO, aO51):\n try:\n wjRY = 0\n alQJ = 0\n for FGW3 in aO51:\n try:\n wjRY += FGW3\n ...
[ "0.8373265", "0.8305487", "0.8218591", "0.8124167", "0.8065615", "0.8042003", "0.803353", "0.8024007", "0.8004564", "0.7992938", "0.7979272", "0.79767454", "0.79683584", "0.7947543", "0.7920081", "0.7887312", "0.7823136", "0.78204495", "0.77918065", "0.7729199", "0.7724063", ...
0.73175114
52
Return the reverse pair of the input sentence. >>> reverse_pair('I love my dog') 'dog my love I' >>> reverse_pair('You are so cute') 'cute so are You' >>> reverse_pair('i and you') 'you and i' >>> reverse_pair('cooking is mom my') 'my mom is cooking' >>> reverse_pair('you for best is exercise') 'exercise is best for yo...
def dHeW(l5Ny): _jcb = l5Ny.split(' ') _jcb = _jcb[-1::-1] return ' '.join(_jcb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dHeW(V1HT):\n j4hX = V1HT.split(' ')\n j4hX.reverse()\n return ' '.join(j4hX)", "def uYdw(yAmx):\n try:\n XDax = ''\n V22M = yAmx.split(' ')\n if len(V22M) == 1:\n return yAmx\n for YRbF in range(len(V22M) - 1, -1, -1):\n XDax = XDax + V22M[YRbF]\...
[ "0.822284", "0.5707565", "0.5681943", "0.56458193", "0.5633633", "0.56239855", "0.55746955", "0.5542935", "0.5538515", "0.5495714", "0.54940957", "0.5479357", "0.54656786", "0.5446815", "0.54374003", "0.5412716", "0.54062796", "0.5405488", "0.5379989", "0.535588", "0.53486055...
0.7500032
1
Given an array of characters with spaces, expands those spaces into %20. Size is the length of the array, after this expansion. Runs in linear time, constant space consumption.
def We_H(pan_, zNig): _PG7 = zNig - 1 NE2N = zNig - 1 for YRbF in range(zNig): if pan_[zNig - 1 - YRbF] != ' ': _PG7 = zNig - 1 - YRbF break SiIh = '%20' for YRbF in range(_PG7 + 1): if pan_[_PG7] != ' ': pan_[NE2N] = pan_[_PG7] NE2N -=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def We_H(cWgI: list or str, TK9Z: int) -> list:\n if type(cWgI) is str:\n cWgI = list(cWgI)\n g5RM = AgvD(cWgI, TK9Z) * 2 + TK9Z - 1\n if g5RM < len(cWgI) - 1:\n cWgI = cWgI[:g5RM + 1]\n gj0S = TK9Z - 1\n while gj0S != g5RM:\n if cWgI[gj0S] != ' ':\n cWgI[g5RM] = cWgI...
[ "0.58216846", "0.56283873", "0.5576782", "0.55301964", "0.5525383", "0.5410249", "0.5292325", "0.5282109", "0.5206234", "0.52056396", "0.51980877", "0.5188956", "0.51611125", "0.515688", "0.51556945", "0.51408786", "0.51385635", "0.51234424", "0.50713104", "0.50430036", "0.50...
0.6343691
0
Check that for each round the quantities exchanged are below the dataset specific limit.
def haLZ(KLfo, Znu6, rYO3='bytes'): assert rYO3 in ['bytes', 'bits', 'megabytes', 'gigabytes'] assert isinstance(KLfo, list), 'You should provide a list of tensors.' assert all([isinstance(a1PO, oyIN.ndarray) or isinstance(a1PO, ht2j.Tensor) for a1PO in KLfo]) mVY3 = 0 for a1PO in KLfo: if i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZN0O(YKHO) -> bool:\n JBMS = YKHO.current / YKHO.num_cuts\n if YKHO.max_frames is not None:\n return YKHO.current + JBMS > YKHO.max_frames\n if YKHO.max_samples is not None:\n return YKHO.current + JBMS > YKHO.max_samples\n if YKHO.max_duration is not None:\n return YKHO.curren...
[ "0.62934023", "0.6217444", "0.6157898", "0.6111242", "0.60851705", "0.6080632", "0.6041288", "0.6027621", "0.6008189", "0.6006377", "0.59716", "0.59412503", "0.59119004", "0.5908256", "0.5894076", "0.58465946", "0.58308846", "0.5819678", "0.5819678", "0.5819678", "0.5792459",...
0.0
-1
Sending an incorrect (or missing) API key returns a 401 response.
def NeLG(YKHO): with YKHO.subTest('Missing API key'): geh0 = YKHO.client.get(YKHO.url, HTTP_AUTHORIZATION=f'ApiKey {YKHO.web_user.username}:') YKHO.assertEqual(geh0.status_code, 401) with YKHO.subTest('Missing username'): geh0 = YKHO.client.get(YKHO.url, HTTP_AUTHORIZATION=f'ApiKey :{YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V7R4(R_du: str=LvNm(iK6s)):\n if R_du != WXSU:\n raise pgG1(status_code=jGRS.HTTP_401_UNAUTHORIZED, detail='Invalid API Key')", "def QcFs():\n EMZs.abort(404, P6bq._('Not Found. Provided transport key id is invalid.'))", "def CLJy(YKHO):\n geh0 = YKHO.client.get(YKHO.url, HTTP_AUTHORIZATION...
[ "0.81268555", "0.68491673", "0.6840191", "0.6803841", "0.6788906", "0.67644507", "0.67117035", "0.6709757", "0.6702719", "0.66960347", "0.6691066", "0.668381", "0.6678785", "0.666984", "0.6633901", "0.6632781", "0.65885884", "0.65647525", "0.65426606", "0.65273446", "0.651127...
0.7776993
1
Test sending requests by unsupported HTTP methods to the view.
def RYij(YKHO): JkRY = ['POST', 'PUT', 'PATCH', 'DELETE'] for Si4S in JkRY: with YKHO.subTest(method_name=Si4S): jZqH = getattr(YKHO.client, Si4S.lower()) geh0 = jZqH(YKHO.url) YKHO.assertEqual(geh0.status_code, 405)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _cTK(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 405)\n geh0 = YKHO.client.put(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 405)\n geh0 = YKHO.client.patch(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 405)", "def wx4s(YKHO, P4t4, NKcE, nfqd):\n YKHO...
[ "0.7945279", "0.76810914", "0.7637595", "0.7497539", "0.74799687", "0.74295086", "0.74111307", "0.7278926", "0.7148101", "0.71479183", "0.7146442", "0.71168035", "0.7060972", "0.7023295", "0.69648427", "0.69576424", "0.69309413", "0.6897298", "0.68926686", "0.68536603", "0.68...
0.8171519
0
Rightaddition, e.g. G(x) = 3.0 + F(x)
def K7GD(YKHO, fh3O): return YKHO.__opExpand2(fh3O, oyIN.add)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K7GD(YKHO, LFlW):\n return YKHO.value() + LFlW", "def Y5Gl(Q6kx):\n return 2 * Q6kx + 2", "def edTK(YKHO):\n YKHO.R = YKHO.R + 1.0\n YKHO.Ne = YKHO.Ne + 1", "def krLs(YKHO, JfyU, DbxN=None):\n return YKHO.reverse().reduce(JfyU, DbxN)", "def ags5():\n WKvO = tl3z(0.11)\n epBp = 0.5 ...
[ "0.69091254", "0.6221106", "0.61848044", "0.5959027", "0.59278053", "0.5909182", "0.58639485", "0.58628154", "0.58122766", "0.58077633", "0.57911164", "0.5786499", "0.57331365", "0.5727222", "0.56799936", "0.56660634", "0.56653994", "0.56514305", "0.562768", "0.56243634", "0....
0.59544605
4
Rightsubtraction, e.g. G(x) = 3.0 F(x)
def eRcp(YKHO, fh3O): tjUW = fh3O if isinstance(fh3O, ggep) else ggep([], fh3O) return tjUW.__opExpand2(YKHO, oyIN.subtract)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eRcp(YKHO, LFlW):\n return LFlW - YKHO.value()", "def eRcp(YKHO, Elif):\n return (-YKHO).__add__(float(Elif))", "def _tIi(WKvO):\n return rUp2(HEZd(WKvO.v, 0))", "def _tIi(a1PO):\n return a1PO(2)", "def eRcp(YKHO, Elif):\n if type(Elif) == int:\n Elif = float(Elif)\n if type(El...
[ "0.6686299", "0.63346964", "0.61410016", "0.61263365", "0.6067482", "0.6052178", "0.602366", "0.5976862", "0.5968889", "0.59320855", "0.5930968", "0.5874837", "0.58520085", "0.58507216", "0.58236057", "0.5812895", "0.57986474", "0.5778816", "0.576851", "0.57638204", "0.575193...
0.5546807
45
Rightdivide, e.g. G(x) = 3.0 / F(x)
def jrvB(YKHO, fh3O): tjUW = fh3O if isinstance(fh3O, ggep) else ggep([], fh3O) return tjUW.__opExpand2(YKHO, oyIN.divide)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fjjh(YKHO, Elif):\n return YKHO.__rtruediv__(Elif)", "def jrvB(YKHO, nFP1):\n return YKHO / nFP1", "def BX9Y(LFlW: float, _tIi: float) -> float:\n return LFlW / _tIi", "def rNEK(yLHq, RKYb):\n return sfxH.trunc_divide(yLHq, RKYb)", "def sG0r(LFlW: float, _tIi: float) -> float:\n return L...
[ "0.6240735", "0.61607087", "0.6153503", "0.6148325", "0.6148228", "0.6146565", "0.60842264", "0.60826284", "0.6074625", "0.59847254", "0.5973192", "0.5964287", "0.5913716", "0.58533293", "0.58533293", "0.5840758", "0.5840515", "0.5828072", "0.5813278", "0.58076805", "0.580578...
0.63304573
0
Eliminate via powered sum, e.g., f(x_2) = \\root^{1/p}{ sum_{x_1} F(x_1,x_2)^p } = F.sumPower(x[1],p)
def hiD8(YKHO, IFsr=None, naF9=1.0, yvT9=None): if IFsr is None: IFsr = YKHO.v jbXL = (YKHO ** naF9).sum(IFsr) jbXL **= 1.0 / naF9 return jbXL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x1g7(YKHO, WKvO):\n oifh = Kt_s.dot(WKvO, YKHO.W) + YKHO.bhid\n return -Kt_s.sum(Kt_s.log(1 + Kt_s.exp(oifh)), axis=1) - Kt_s.dot(WKvO, YKHO.b)", "def V3hn(YKHO):\n for G1Hx, eHNT in YKHO.fs.items():\n if len(eHNT.edges) == 1:\n pass\n elif len(eHNT.edges) == 2:\n ...
[ "0.5904637", "0.57738376", "0.5554831", "0.5510145", "0.54901695", "0.5440214", "0.5413614", "0.54016566", "0.538343", "0.53741807", "0.53630435", "0.53037375", "0.53037375", "0.53030276", "0.5300678", "0.5289527", "0.5289527", "0.5279551", "0.52718353", "0.52614033", "0.5252...
0.5366928
10
Find the argmax of the factor, with partial conditioning (as var list + value list) if desired. Returns a maximizing configuration of f(x|xc=Xc) as a tuple of states
def PMqN(YKHO, KZLc=None, oFvF=None): if KZLc is None: return YKHO.v.ind2sub(YKHO.t.argmax()) aNZO = tuple(map(lambda WKvO: oFvF[KZLc.index(WKvO)] if WKvO in KZLc else slice(None), YKHO.v)) return YKHO.v.ind2sub(YKHO.t[aNZO].argmax())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y8Na(JfyU: Callable[[Tuple], np.ndarray], lT6G: Iterable[Tuple], QTBn: Tuple[Union[int, float]]) -> AzJI[float, AzJI[uLKX[int, float]], None]:\n T6S7 = [JfyU(oyIN.asarray((*QTBn, *XeOP)).reshape(1, -1))[0, 0] for XeOP in lT6G]\n PtQX = max(T6S7)\n return (PtQX, lT6G[T6S7.index(PtQX)], None)", "def i...
[ "0.6689191", "0.65820867", "0.6492417", "0.6163992", "0.6096673", "0.6096673", "0.6068535", "0.60282433", "0.600794", "0.5991795", "0.59668076", "0.5946501", "0.59321004", "0.59265363", "0.59069014", "0.5888452", "0.58845335", "0.58637625", "0.5861456", "0.5846718", "0.583741...
0.5679655
36
Find the argmax of the factor, with partial conditioning (as dict evidence[v]) if desired Returns a maximizing configuration of f(x|xc=Xc) as a tuple of states
def q1NN(YKHO, zF7g={}): if len(zF7g) == 0: return YKHO.v.ind2sub(YKHO.t.argmax()) aNZO = tuple([zF7g[Ty9i] if Ty9i in zF7g else slice(None) for Ty9i in YKHO.v]) return YKHO.v.ind2sub(YKHO.t[aNZO].argmax())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bQ6z(YKHO, QTBn, unOp, hRsd, qi10):\n if QTBn.terminal_test():\n return QTBn.utility(0)\n if qi10 <= 0:\n return YKHO.score(QTBn)\n Ty9i = float('-inf')\n for jzdc in QTBn.actions():\n Ty9i = max(Ty9i, YKHO.min_value(QTBn.result(jzdc), unOp, hRsd, qi10 - 1))\n if Ty9i >=...
[ "0.6500263", "0.63943756", "0.62971264", "0.61945826", "0.61632526", "0.60480374", "0.59705585", "0.5968373", "0.59409153", "0.5935895", "0.5935895", "0.59261817", "0.5923711", "0.5883495", "0.5882632", "0.58768344", "0.5861613", "0.5843548", "0.5797955", "0.5786985", "0.5750...
0.6707185
0
Draw a random sample (as a tuple of states) from the factor (assumes positive) If option Z= set, the function will assume normalization factor Z
def mvm2(YKHO, Nk6w=None): Nk6w = Nk6w if Nk6w is not None else YKHO.sum() assert Nk6w > 0, 'Non-normalizable factor (perhaps log factor?)' wunm = 0.0 KzCo = Nk6w * oyIN.random.random_sample() WhY1 = oyIN.nditer(YKHO.t, op_flags=['readonly'], flags=['multi_index']) while not WhY1.finished: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO, QTBn):\n\n def mvm2(KCHu):\n return YKHO._rng.choice(YKHO.transition_matrix.shape[1], p=YKHO.transition_matrix[KCHu, :])\n _Z__ = oyIN.frompyfunc(mvm2, 1, 1)\n return _Z__(QTBn)", "def mvm2(YKHO):\n WKvO = YKHO.state\n Jw7X = YKHO.theta * (YKHO.mu - WKvO) + YKHO.sigma * oyIN....
[ "0.64751554", "0.6366395", "0.6327836", "0.62230915", "0.6215435", "0.6215435", "0.6215435", "0.6215435", "0.6215435", "0.6201173", "0.61641943", "0.61022377", "0.6094658", "0.6076678", "0.60046065", "0.59643483", "0.585948", "0.5824711", "0.58066237", "0.58066237", "0.578953...
0.7170954
0
Compute the entropy of the factor (normalizes, assumes positive)
def oqGu(YKHO): Nk6w = YKHO.sum() assert Nk6w > 0, 'Non-normalizable factor (perhaps log factor?)' C7Ls = 0.0 for WKvO in oyIN.nditer(YKHO.t, op_flags=['readonly']): XP5J = WKvO / Nk6w C7Ls += 0.0 if XP5J == 0 else -XP5J * oyIN.log(XP5J) return C7Ls
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oqGu(YKHO):\n ShoO = 0.0\n for eHNT in YKHO.byte_freq:\n if eHNT > 0:\n QTg7 = float(eHNT) / YKHO.byte_total\n ShoO = ShoO + QTg7 * epAf.log(QTg7, 2)\n return -ShoO", "def oqGu(VXjJ):\n thJw = VXjJ.histogram()\n AjAp = sum(thJw)\n thJw = [float(MKlR) / AjAp for ...
[ "0.80674815", "0.7990321", "0.7982297", "0.7978052", "0.7883377", "0.7861225", "0.78607386", "0.7805381", "0.7802631", "0.77277195", "0.7715365", "0.7694677", "0.7688067", "0.7687217", "0.76785034", "0.7661731", "0.76324254", "0.7621125", "0.7605698", "0.758206", "0.7523188",...
0.8400203
0
Convert a scipy sparse matrix to a torch sparse tensor.
def uaVT(On0F): On0F = On0F.tocoo().astype(oyIN.float32) _0VL = ht2j.from_numpy(oyIN.vstack((On0F.row, On0F.col)).astype(oyIN.int64)) hkxX = ht2j.from_numpy(On0F.data) ROpF = ht2j.Size(On0F.shape) return ht2j.sparse.FloatTensor(_0VL, hkxX, ROpF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TWjY(YKHO, SppC: sp.csr_matrix):\n SppC = SppC.tocoo()\n WKvO = ht2j.sparse.FloatTensor(ht2j.LongTensor(oyIN.array([SppC.row, SppC.col])), ht2j.FloatTensor(SppC.data.astype(oyIN.float32)), SppC.shape).to(YKHO.device)\n return WKvO", "def FXf_(On0F):\n _0VL = ht2j.from_numpy(oyIN.vstack((On0F.row,...
[ "0.8300125", "0.8148143", "0.80456305", "0.8032249", "0.80297565", "0.80297565", "0.80297565", "0.80297565", "0.80297565", "0.80297565", "0.80297565", "0.80297565", "0.80297565", "0.80297565", "0.80297565", "0.80297565", "0.80297565", "0.80130917", "0.79970765", "0.79970765", ...
0.79767966
23
Return all the attributes as a dictionary. This may be useful for caching purposes. The dictionary is mutable, unlike this object's attributes.
def _fYl(YKHO): return dict(YKHO._d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h6gc(YKHO):\n return dict(YKHO.attributes)", "def h6gc(YKHO):\n return dict(YKHO.attributes)", "def h6gc(YKHO):\n return dict(YKHO.attributes)", "def azoT(YKHO):\n return dict(YKHO.__attributes)", "def iLfU(YKHO):\n return dict(YKHO._attrs)", "def MNRr(YKHO):\n if YKHO._dict is not ...
[ "0.8891561", "0.8891561", "0.8891561", "0.87858796", "0.8734159", "0.8606031", "0.8510128", "0.84829414", "0.8404565", "0.8395117", "0.81567943", "0.8133866", "0.81195474", "0.8111543", "0.8063337", "0.7994951", "0.79841113", "0.79776764", "0.7911372", "0.7898794", "0.7896333...
0.0
-1
Check if we have any more jumps in this space
def ae00(YKHO): if YKHO._c >= YKHO._C: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rGB5(YKHO) -> bool:\n ...", "def r9gc(YKHO, XVAW):\n CPpJ = XVAW.a - YKHO.a_cursor\n eE6h = XVAW.b - YKHO.b_cursor\n return CPpJ <= YKHO.gap_length and eE6h <= YKHO.gap_length", "def TLAx(YKHO, u9l_):\n for n294 in u9l_.touching:\n if YKHO.direction == 1:\n if n294.position...
[ "0.70401275", "0.68786925", "0.6684202", "0.66491807", "0.63142025", "0.6243326", "0.6199923", "0.61586815", "0.61583394", "0.6154761", "0.6108435", "0.6082089", "0.6072242", "0.60702604", "0.6046645", "0.60016304", "0.5991472", "0.5987496", "0.59555167", "0.5922997", "0.5912...
0.0
-1
checks if the neuron is in tabu list
def sglk(YKHO, d6pt): if abs(YKHO._k - YKHO._tabu_list[d6pt]) <= YKHO.__l: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azEp(YKHO):\n return len(YKHO._tabu_list) > 0 and len(YKHO._tabu_list) == YKHO._size", "def b8ZE(WKvO):\n if not isinstance(WKvO, list) or len(WKvO) != 5 or (not isinstance(IoH6(WKvO), int)):\n return False\n for vC9B in range(len(WKvO) - 1):\n for Z9rn in range(len(WKvO[vC9B])):\n ...
[ "0.7216161", "0.5996803", "0.597985", "0.5777033", "0.5738896", "0.5730707", "0.5662886", "0.55287546", "0.55183595", "0.5502102", "0.5478067", "0.54759586", "0.54146636", "0.53840506", "0.53650284", "0.5339329", "0.53287363", "0.52933294", "0.5280032", "0.52773154", "0.52772...
0.68748516
1
Checks if the given list contains only 0
def jsMf(YKHO, o5v_): tIoT = True for YRbF in o5v_: if YRbF != 0: tIoT = False break return tIoT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def waS5(bCES):\n for jzdc in bCES:\n if jzdc != 0:\n return True\n return False", "def VDDj(he6J):\n PZES = [PNxx(tTpl) for tTpl in he6J]\n return all(PZES)", "def qljQ(vC9B):\n return any([XP5J > 0 for XP5J in vC9B])", "def ebnO(YKHO):\n for tTpl in YKHO:\n if tTp...
[ "0.83467907", "0.706947", "0.70507485", "0.68978894", "0.6760666", "0.67068", "0.6683227", "0.6645245", "0.6636877", "0.6597197", "0.658791", "0.6571269", "0.6456779", "0.6440866", "0.63938373", "0.63810587", "0.63762647", "0.6368606", "0.6308632", "0.62846214", "0.6235762", ...
0.6224715
22
The constructor for CounterCalls class.
def FIMM(YKHO, UAE4='city'): YKHO.how = UAE4 YKHO.X = None YKHO.y = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.num_calls = 0", "def FIMM(YKHO, ewCu):\n YKHO.counter: mBkc = ewCu", "def FIMM(YKHO, *qIxc, **B2fa) -> None:\n super().__init__(*qIxc, **B2fa)\n YKHO._counter = d2xd()", "def FIMM(YKHO):\n YKHO.counts = mBkc()", "def FIMM(YKHO):\n YKHO._generic_signal.connect(YKHO._...
[ "0.7434541", "0.7187601", "0.7142184", "0.69054747", "0.6825243", "0.66586745", "0.65800947", "0.6453831", "0.64171165", "0.63743865", "0.6368835", "0.6351189", "0.6307314", "0.6299756", "0.6293485", "0.62909025", "0.6268675", "0.61792445", "0.6170651", "0.61396104", "0.61168...
0.0
-1
Iterate through the given sequence n at a time, consuming only one each iteration.
def Y8pi(aWuw: Sequence[T], exwG: int) -> x1iM[Kt_s]: for YRbF in range(len(aWuw) - (exwG - 1)): yield aWuw[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wPFE(Q6uT, exwG):\n for tTpl in Q6uT:\n for bGrB in range(exwG):\n yield tTpl", "def m7ij(Q6uT, exwG):\n d6pt = 0\n while d6pt + exwG <= len(Q6uT):\n yield Q6uT[d6pt:d6pt + exwG]\n d6pt = d6pt + 1", "def _iMd(exwG, Q6uT):\n Q6uT = iter(Q6uT)\n Aofo = []\n t...
[ "0.7660409", "0.76409584", "0.7470258", "0.7090508", "0.70472777", "0.6971245", "0.6952211", "0.6764021", "0.67500675", "0.67159224", "0.6697274", "0.66913295", "0.6671169", "0.6670856", "0.6625391", "0.6613651", "0.66029435", "0.6566227", "0.6521684", "0.6510899", "0.6488458...
0.7321573
3
Return the distance in meters between the two given coordinates (in the New York area).
def rkEX(dg7v: Coordinates, iYf1: Coordinates=None) -> float: bF9h = (dg7v.lat - iYf1.lat) * G1Ql VWRT = (dg7v.lon - iYf1.lon) * CF_N return epAf.sqrt(bF9h ** 2 + VWRT ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Sbn(mAYH, pks6):\n return CgaZ(mAYH, pks6).meters", "def FoD6(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5", "def FoD6(Bz2B, WDnu):\n n_9K = WDnu.lat - Bz2B.lat\n fOkK = WDnu.lon - Bz2B.lon\n return epA...
[ "0.76660734", "0.75017685", "0.7493413", "0.7457614", "0.7310704", "0.73079336", "0.73029757", "0.7300426", "0.73001254", "0.7280035", "0.7274717", "0.72648305", "0.7234587", "0.72293293", "0.7191838", "0.7176526", "0.7127137", "0.7127137", "0.7127137", "0.7127137", "0.712713...
0.6983037
41
Return the total distance traveled by the coordinate path, in meters.
def y1eH(pmON: Path) -> float: return sum((rkEX(*gtI8) for gtI8 in Y8pi(pmON, 2)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrUv(YKHO):\n return YKHO.totalDistance", "def Jbde(YKHO) -> float:\n if len(YKHO) < 2:\n raise ValueError('Need at least 2 points in the route to calculate adistance.')\n wjRY = 0.0\n Elif = False\n for AU8u in YKHO:\n if not Elif:\n Elif = AU8u\n continue\...
[ "0.75343287", "0.7511744", "0.75041777", "0.74047446", "0.7182328", "0.7127821", "0.7095384", "0.6986745", "0.69609094", "0.6888761", "0.687757", "0.68732846", "0.6868973", "0.6859147", "0.6837931", "0.6829699", "0.6812627", "0.6780055", "0.6754843", "0.66988504", "0.66839653...
0.72663015
4
Return the average of the items of the given iterable.
def qqgr(OxJJ: Iterable[Num]) -> float: dRWG = 0 xYvp = 0 for mLGw in OxJJ: dRWG += mLGw xYvp += 1 return dRWG / xYvp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DH4Z(OxJJ):\n return sum(OxJJ) / len(OxJJ)", "def qqgr():\n JBMS = sum(uBiB) / len(uBiB)\n return JBMS", "def NgYo(Emd4, vC9B):\n return sum(vC9B) / float(len(vC9B))", "def S8vG(yv6U):\n return sum(yv6U) / len(yv6U)", "def qqgr(yv6U: list):\n return sum(yv6U) / len(yv6U)", "def qqgr...
[ "0.829116", "0.737815", "0.73306614", "0.73205376", "0.7273613", "0.72509784", "0.72010463", "0.7200777", "0.7124966", "0.7073672", "0.70215756", "0.6910773", "0.6747254", "0.6725859", "0.6688164", "0.667409", "0.6662498", "0.6656647", "0.66358584", "0.6635419", "0.66180164",...
0.8306279
0
Returns project root folder
def phdL(): return GkAb(xAKo).parent.parent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L59w() -> GkAb:\n return lkbE", "def ez41():\n return KfRp", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.par...
[ "0.8921447", "0.86931896", "0.85417926", "0.85417926", "0.85417926", "0.85417926", "0.8528684", "0.8528684", "0.84760284", "0.84725773", "0.84698427", "0.8427023", "0.8359873", "0.83151823", "0.8282492", "0.8273041", "0.8225639", "0.82116413", "0.8178799", "0.817541", "0.8102...
0.85720927
2
Implement the step of equation \dot(u) = u u^3 v
def ylNn(WQjc, gE_k, JRYC, jJ5t): return WQjc + JRYC * (WQjc - WQjc ** 3 - gE_k + foq8(WQjc, jJ5t))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0b0(YKHO, P6bq, Ty9i, pdhd):\n MJJ3 = Ty9i + YKHO.dt * (0.04 * Ty9i ** 2 + 5 * Ty9i + 140 - P6bq + pdhd)\n RDhu = P6bq + YKHO.dt * (YKHO.a * (YKHO.b * Ty9i - P6bq))\n return (MJJ3, RDhu)", "def CnDI(YKHO, LVAh, P6bq, Ty9i):\n NFIp = -0.5 * (LVAh.float().t() @ (P6bq + Ty9i))\n return NFIp", ...
[ "0.70422417", "0.67478263", "0.6614003", "0.6244449", "0.6228861", "0.61208874", "0.60831577", "0.6067274", "0.6064658", "0.60515594", "0.60435903", "0.597949", "0.5918871", "0.590761", "0.58739454", "0.5867638", "0.5854488", "0.5849085", "0.58423597", "0.58064985", "0.579931...
0.7109581
0
Implement the step of equation \dot(v) = e(u + a)
def lzud(WQjc, gE_k, JRYC, jJ5t): return gE_k + JRYC * (tTpl * (WQjc + L1dM) + RA_F * foq8(gE_k, jJ5t))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0b0(YKHO, P6bq, Ty9i, pdhd):\n MJJ3 = Ty9i + YKHO.dt * (0.04 * Ty9i ** 2 + 5 * Ty9i + 140 - P6bq + pdhd)\n RDhu = P6bq + YKHO.dt * (YKHO.a * (YKHO.b * Ty9i - P6bq))\n return (MJJ3, RDhu)", "def ylNn(WQjc, gE_k, JRYC, jJ5t):\n return WQjc + JRYC * (WQjc - WQjc ** 3 - gE_k + foq8(WQjc, jJ5t))", ...
[ "0.6853443", "0.6633423", "0.65036654", "0.64710236", "0.627423", "0.6252341", "0.61948675", "0.61440885", "0.6094799", "0.6069599", "0.5988743", "0.5900063", "0.5892302", "0.58811086", "0.58667785", "0.5866512", "0.58549136", "0.5800178", "0.57693774", "0.5764226", "0.573180...
0.6905849
0
Gets the filter_enable_safe_user_agents of this ComAdobeGraniteCsrfImplCSRFFilterProperties.
def Qz72(YKHO) -> MH_9: return YKHO._filter_enable_safe_user_agents
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qz72(YKHO, Qz72: ConfigNodePropertyBoolean):\n YKHO._filter_enable_safe_user_agents = Qz72", "def qfww(YKHO) -> tpYs:\n return YKHO._filter_safe_user_agents", "def qfww(YKHO, qfww: ConfigNodePropertyArray):\n YKHO._filter_safe_user_agents = qfww", "def l0Id(YKHO) -> tpYs:\n return YKHO._org_a...
[ "0.76933867", "0.7510559", "0.71527714", "0.5910388", "0.5211892", "0.4999339", "0.49708423", "0.48400402", "0.47660205", "0.47466105", "0.46761164", "0.45882198", "0.4581342", "0.45596823", "0.45588526", "0.44854364", "0.44695738", "0.4464841", "0.44624287", "0.44194758", "0...
0.8127575
0
Gets the filter_safe_user_agents of this ComAdobeGraniteCsrfImplCSRFFilterProperties.
def qfww(YKHO) -> tpYs: return YKHO._filter_safe_user_agents
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qz72(YKHO) -> MH_9:\n return YKHO._filter_enable_safe_user_agents", "def qfww(YKHO, qfww: ConfigNodePropertyArray):\n YKHO._filter_safe_user_agents = qfww", "def Qz72(YKHO, Qz72: ConfigNodePropertyBoolean):\n YKHO._filter_enable_safe_user_agents = Qz72", "def l0Id(YKHO) -> tpYs:\n return YKHO...
[ "0.7643321", "0.7358117", "0.71622956", "0.62809354", "0.5066206", "0.5007971", "0.4974434", "0.49650303", "0.4933795", "0.4916978", "0.49080795", "0.4896216", "0.47388366", "0.46265602", "0.46050337", "0.46005735", "0.46005735", "0.45527127", "0.45247063", "0.4522474", "0.45...
0.79454964
0
Sets the filter_safe_user_agents of this ComAdobeGraniteCsrfImplCSRFFilterProperties.
def qfww(YKHO, qfww: ConfigNodePropertyArray): YKHO._filter_safe_user_agents = qfww
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qz72(YKHO, Qz72: ConfigNodePropertyBoolean):\n YKHO._filter_enable_safe_user_agents = Qz72", "def Qz72(YKHO) -> MH_9:\n return YKHO._filter_enable_safe_user_agents", "def qfww(YKHO) -> tpYs:\n return YKHO._filter_safe_user_agents", "def l0Id(YKHO, l0Id: ConfigNodePropertyArray):\n YKHO._org_a...
[ "0.83087236", "0.7382046", "0.6873159", "0.5212695", "0.50199115", "0.493303", "0.4623475", "0.45591816", "0.45438543", "0.4517408", "0.44958052", "0.44913065", "0.44911823", "0.44717", "0.44650334", "0.44569734", "0.44501454", "0.44369078", "0.43446073", "0.42930415", "0.424...
0.84417343
0
Gets the filter_excluded_paths of this ComAdobeGraniteCsrfImplCSRFFilterProperties.
def Gcan(YKHO) -> tpYs: return YKHO._filter_excluded_paths
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIjC(YKHO) -> tpYs:\n return YKHO._org_apache_felix_jetty_gzip_excluded_paths", "def wYyi(YKHO) -> tpYs:\n return YKHO._org_apache_felix_http_path_exclusions", "def Gcan(YKHO, Gcan: ConfigNodePropertyArray):\n YKHO._filter_excluded_paths = Gcan", "def j28w(YKHO):\n return YKHO._excludes", "...
[ "0.6920902", "0.68333584", "0.682466", "0.5935741", "0.5776294", "0.565493", "0.5638689", "0.5630091", "0.5506123", "0.5504244", "0.5489355", "0.54808366", "0.5479383", "0.54620594", "0.54569167", "0.5445827", "0.54218125", "0.5386669", "0.53649026", "0.52905107", "0.5272563"...
0.7737465
0
Returns True if x is zero.
def a3cq(WKvO): return getattr(WKvO, 'is_zero', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Witr(YKHO):\n return YKHO._express.is_zero()", "def Witr(YKHO) -> bool:\n return YKHO.field.zero == YKHO", "def CgEI(WKvO):\n if not hasattr(WKvO, 'type'):\n return oyIN.all(WKvO == 0.0)\n if isinstance(WKvO.type, tbLX):\n return 'no'\n if isinstance(WKvO.type, wzLr):\n ...
[ "0.7721805", "0.7717134", "0.77024066", "0.76980704", "0.7679771", "0.76286954", "0.76187515", "0.755145", "0.753478", "0.7440336", "0.7337006", "0.7325177", "0.72701687", "0.7248809", "0.72391427", "0.7227053", "0.7205203", "0.7197679", "0.7191518", "0.7188681", "0.718545", ...
0.8065645
0
Combine lists. >>> concat_lists([1, 2], [3, 4]) [1, 2, 3, 4] >> > concat_lists([], [1, 2]) [1, 2] >>> concat_lists([1, 2], []) [1, 2] >>> concat_lists([], []) []
def K1oJ(Kt9y, I_KI): for ZfUD in I_KI: Kt9y.append(ZfUD) return Kt9y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENFq(nwEZ):\n return Pusg(lambda jzdc, Fg_i: jzdc + Fg_i, nwEZ, [])", "def FMRY(Kt9y, I_KI):\n RJ3U = []\n if len(Kt9y) == 0:\n RJ3U.append(Kt9y)\n elif isinstance(Kt9y[0], list):\n for YRbF in range(len(Kt9y)):\n RJ3U.append(Kt9y[YRbF])\n else:\n RJ3U.append(Kt...
[ "0.7550362", "0.73840106", "0.7038871", "0.66273177", "0.662588", "0.6451714", "0.63251", "0.63130045", "0.6269502", "0.6255573", "0.61849356", "0.615213", "0.61327803", "0.6131909", "0.6092731", "0.59225786", "0.5881282", "0.5880444", "0.5766092", "0.5762399", "0.57535046", ...
0.7221829
2
Set up the Bitcoin sensors.
def AbqV(ajET, GPtr, uVcJ, tR5e=None): VIXL = GPtr[WXVH] if VIXL not in ImWa.get_ticker(): vzeF.warning('Currency %s is not available. Using USD', VIXL) VIXL = O0NR nPrm = VDVu() M4N3 = [] for Es0b in GPtr[CaGg]: M4N3.append(xcsl(nPrm, Es0b, VIXL)) uVcJ(M4N3, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n import protolibs.ics_servers as IEA9\n from point import Point\n from configobj import ConfigObj\n mmls = '/'.join(['sims', 'rtutank', 'config'])\n GPtr = ConfigObj(infile=mmls, unrepr=True)\n YKHO.config = GPtr\n sJ_G = GPtr['vdevs']['slave']\n LTIa = {}\n for XP5J in ...
[ "0.6420655", "0.63682836", "0.6331749", "0.62936944", "0.62344927", "0.6220634", "0.6179077", "0.6101424", "0.6028544", "0.60281724", "0.60234445", "0.60139316", "0.59621227", "0.5935511", "0.59276354", "0.591465", "0.59119093", "0.59100586", "0.5866999", "0.5866698", "0.5860...
0.57191217
32
Retrieve current Ensembl or EnsemblGenomes release version.
def PQNM(YKHO, wF_l: bool) -> int: YBcr = '/info/data/?' if wF_l else '/info/eg_version?' U5bT = ZFzw(gf_J, 3, YKHO._url, YBcr) return int(U5bT['releases'][0] if wF_l else U5bT['version'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w5up(YKHO):\n try:\n return YKHO.release_set.order_by('-created')[0].version\n except IndexError:\n return '0.0.0'", "def jwTA(YKHO):\n return YKHO.get_property(_lH2.VERSION_RELEASE_PROPERTY)", "def kaPv():\n k8wH.echo(ur3a())", "def kaPv():\n iw9k = ['%(major)i.%(minor)i' % ...
[ "0.73196614", "0.7051302", "0.7008202", "0.6952404", "0.6939467", "0.69044435", "0.6854368", "0.6844711", "0.6842973", "0.6839751", "0.6813325", "0.68121374", "0.681192", "0.67914706", "0.67801565", "0.6750511", "0.6750511", "0.6750511", "0.6750511", "0.6750511", "0.6749468",...
0.6504694
65
Compare sorted function with true sorted array
def yLfj(iK09, ezWE): BKut = sorted(ezWE[:]) if iK09(ezWE[:]) == BKut: print('Test Passed') else: print('Error: Test not passed')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ko3S(JfyU, J4de, BhCF):\n assert JfyU(J4de) == BhCF", "def gMQm(ezWE):\n pass", "def v4yH(YKHO):\n Bj_2 = oyIN.inf\n for UHFx in YKHO.Nx:\n if UHFx > Bj_2:\n YKHO.sorted = False\n return YKHO.sorted\n Bj_2 = UHFx\n YKHO.sorted = True\n return YKHO.sorte...
[ "0.69240177", "0.686875", "0.6835802", "0.6794516", "0.66428745", "0.6623882", "0.6598583", "0.6597872", "0.65877247", "0.6526115", "0.65189993", "0.6503774", "0.6478704", "0.6442569", "0.643328", "0.64310294", "0.63715136", "0.6255671", "0.62050265", "0.6158009", "0.6152472"...
0.6920494
1
Retrieve a value previously set with `set_user_attribute`.
def xzf3(YKHO, H5ew, WmM4=None): return YKHO._user_attributes.get(H5ew, WmM4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bbZP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'userattr')", "def bbZP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'userattr')", "def cvGd(mWFP: str, CBIr: User):\n return PSrQ.get_system_value(mWFP)", "def bbZP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'use...
[ "0.72331965", "0.72331965", "0.71271604", "0.6960585", "0.6624007", "0.6527188", "0.6329833", "0.63145614", "0.62933725", "0.6279518", "0.62319076", "0.62137157", "0.620829", "0.6197883", "0.6197883", "0.6197883", "0.6177166", "0.6159512", "0.6157236", "0.61345583", "0.611433...
0.7555947
0
Converts roll, yaw, pitch to a quaternion.
def v7Kd(rKSe, xTkQ, H2HG): vHO5 = epAf.cos(epAf.radians(rKSe) * 0.5) BhJz = epAf.sin(epAf.radians(rKSe) * 0.5) U7YL = epAf.cos(epAf.radians(xTkQ) * 0.5) H4yH = epAf.sin(epAf.radians(xTkQ) * 0.5) KBgZ = epAf.cos(epAf.radians(H2HG) * 0.5) JvR2 = epAf.sin(epAf.radians(H2HG) * 0.5) yzQ0 = vHO5 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Omrx(YKHO, rKSe=0.0, H2HG=0.0, xTkQ=0.0):\n lGE9 = epAf.cos(epAf.radians(xTkQ * 0.5))\n n2Q1 = epAf.sin(epAf.radians(xTkQ * 0.5))\n SpII = epAf.cos(epAf.radians(rKSe * 0.5))\n WotO = epAf.sin(epAf.radians(rKSe * 0.5))\n RtYL = epAf.cos(epAf.radians(H2HG * 0.5))\n WfMD = epAf.sin(epAf.radians(...
[ "0.8035221", "0.78544", "0.7854085", "0.7843692", "0.7771143", "0.7728366", "0.7728366", "0.7719018", "0.7616216", "0.7499768", "0.7301791", "0.7250658", "0.7218019", "0.7099127", "0.69965523", "0.69716936", "0.69629115", "0.69288945", "0.6884879", "0.6879215", "0.6839856", ...
0.75951743
9
Returns project root folder.
def phdL(): return str(GkAb(xAKo).parent.parent)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L59w() -> GkAb:\n return lkbE", "def ez41():\n return KfRp", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.par...
[ "0.8855307", "0.8816829", "0.8488286", "0.8488286", "0.8488286", "0.8488286", "0.847031", "0.8462203", "0.8425219", "0.8419815", "0.83712715", "0.8356894", "0.83145547", "0.8294601", "0.828788", "0.8250647", "0.82296336", "0.8205302", "0.81644493", "0.8087945", "0.8083112", ...
0.84460264
9
Convert a datetime to a timestamp string
def Errs(nPrm): return str(ITS7.mktime(nPrm.timetuple()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O27N(SMut):\n try:\n return SMut.timestamp()\n except AttributeError:\n return ITS7.mktime(SMut.timetuple()) + SMut.microsecond / 1000000.0", "def lc7r(JRYC: datetime.datetime) -> str:\n return JRYC.strftime(TcNi)", "def E3oo():\n gi6l = qcWV.utcnow()\n VtEH = gi6l.strftime('%d...
[ "0.77440983", "0.75256854", "0.7340884", "0.7339002", "0.72939825", "0.7286755", "0.7220415", "0.71823347", "0.71823347", "0.7143056", "0.71386886", "0.71142983", "0.70903033", "0.70748335", "0.70722795", "0.7065951", "0.702819", "0.69846857", "0.6983898", "0.6979848", "0.694...
0.7307548
4
Convert a timestamp to a datetime object
def F0Fn(nPrm): try: return qcWV.datetime.fromtimestamp(float(nPrm)) except ValueError: return qcWV.datetime.fromisoformat(nPrm.decode('utf-8'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbtj(E3oo):\n return qcWV.fromtimestamp(E3oo * 0.001, tz=rIAI.utc)", "def k_T9(E3oo: int) -> qcWV:\n return qcWV.fromtimestamp(E3oo, tz=rIAI.utc)", "def Cxh3(Emd4, E3oo, yl4j=None):\n return qcWV()", "def gUmT(E3oo: float, PXGI: TimeUnit=r5MW.SECONDS) -> qcWV:\n UTxh: float = E3oo / 1000 ** i...
[ "0.82815135", "0.8021166", "0.765658", "0.74902123", "0.7401416", "0.7386257", "0.7384789", "0.7380946", "0.737658", "0.737345", "0.7298191", "0.72845083", "0.7276975", "0.71696174", "0.7134575", "0.71150595", "0.710896", "0.70817333", "0.7064934", "0.70348823", "0.70065016",...
0.7410249
4
Close and remove the database from disk.
def mTtn(YKHO): try: YKHO._close(True) except: pass try: Hy7s.unlink(Hy7s.path.join(YKHO.home_dir, YkUy)) except FileNotFoundError as _: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DunT(YKHO):\n import os.path\n Hy7s.remove(YKHO.filepath)", "def HySU(YKHO):\n if Hy7s.path.exists(YKHO._db):\n Hy7s.remove(YKHO._db)", "def DDI8(YKHO):\n YKHO.db.remove()\n YKHO.engine.dispose()", "def tBIc(YKHO):\n Hy7s.close(YKHO.db_fd)\n Hy7s.unlink(Pnk4.app.config['DATABA...
[ "0.8282476", "0.8071048", "0.80617005", "0.78800195", "0.78357464", "0.7827832", "0.77825093", "0.7766468", "0.7750411", "0.77248734", "0.7707664", "0.7663666", "0.7629601", "0.7629601", "0.7629601", "0.75946754", "0.75798786", "0.7570094", "0.75438446", "0.75124466", "0.7488...
0.777051
7
Static method to close the database and remove it from disk.
def xSHO(Emd4): try: yRBH.__instance.close() yRBH.__instance = None yRBH.__refcount = 0 except: pass try: Hy7s.unlink(Hy7s.path.join(Emd4.home_dir, YkUy)) except: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DunT(YKHO):\n import os.path\n Hy7s.remove(YKHO.filepath)", "def DDI8(YKHO):\n YKHO.db.remove()\n YKHO.engine.dispose()", "def HySU(YKHO):\n if Hy7s.path.exists(YKHO._db):\n Hy7s.remove(YKHO._db)", "def tBIc(YKHO):\n Hy7s.close(YKHO.db_fd)\n Hy7s.unlink(Pnk4.app.config['DATABA...
[ "0.8155037", "0.79321796", "0.7914927", "0.7891795", "0.7842873", "0.782811", "0.77808005", "0.7748151", "0.7716098", "0.76745987", "0.7667488", "0.765487", "0.76497185", "0.75757074", "0.75757074", "0.75757074", "0.75685126", "0.75030243", "0.7497834", "0.74779767", "0.74688...
0.7452762
22
Return the display name of the template.
def y0hN(YKHO): return YKHO._display_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l6tp(YKHO) -> str:\n return qe4Y.get(YKHO, 'inspect_template_name')", "def Btki(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'arm_template_display_name')", "def Btki(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'arm_template_display_name')", "def qm1k(YKHO) -> qe4Y.Output[...
[ "0.83380896", "0.8207735", "0.7993113", "0.79663354", "0.79220074", "0.79220074", "0.79220074", "0.79220074", "0.79220074", "0.79220074", "0.79220074", "0.79220074", "0.79220074", "0.79220074", "0.79220074", "0.79220074", "0.788991", "0.76624733", "0.76624733", "0.76624733", ...
0.72165805
69
Converts 'under_score_string' > 'underScoreString'
def TY6I(BWXx): wOmD = BWXx.split('_') return wOmD[0] + ''.join((GIN8.title() for GIN8 in wOmD[1:]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jQs0(vIwR):\n KCHu = OnYg(vIwR.replace('_', ' '))\n return KCHu", "def YqDO(YKHO, vIwR):\n bD3d = vIwR.replace('_', '-')\n return bD3d", "def quP3(YKHO, uzwS):\n if '_' in uzwS or sum((RBVb.isupper() for RBVb in uzwS)) == 1:\n return uzwS\n rwHg = uzwS[0]\n for RBVb in uzwS[1:]:...
[ "0.633552", "0.61862546", "0.57923436", "0.5747389", "0.55415684", "0.55218595", "0.5417373", "0.53867453", "0.526234", "0.52477044", "0.5197041", "0.5152706", "0.5152649", "0.5139977", "0.5139977", "0.5139977", "0.5139977", "0.5139975", "0.51082957", "0.5088655", "0.50882125...
0.0
-1
Inherit all parent settings that the current config does not define.
def nGP8(YKHO, _AKB): return YKHO.__class__(Nlk2._mergedicts(YKHO, _AKB, False))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jRxN(YKHO, _AKB):\n return YKHO.__class__(Nlk2._mergedicts(YKHO, _AKB, True))", "def Oj93(aUGN, _AKB, sjXb):\n for H5ew in sjXb:\n if H5ew not in aUGN.keys():\n aUGN[H5ew] = _AKB[H5ew]\n print('{} not found in io.yaml file, falling back to main config'.format(H5ew))\n re...
[ "0.7187587", "0.6955679", "0.6364189", "0.6303008", "0.62866473", "0.62807673", "0.61913365", "0.6125954", "0.5891813", "0.5826386", "0.57407653", "0.5734138", "0.5713583", "0.5695681", "0.56921166", "0.56659466", "0.5665835", "0.56089467", "0.5593219", "0.5591946", "0.556341...
0.7394419
0
Set the logging level
def wgh3(YKHO, ABDL): YKHO.lvl = ABDL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aQ22(YKHO, ABDL):\n if ABDL == 'info':\n ABDL = G9jH.INFO\n if ABDL == 'debug':\n ABDL = G9jH.DEBUG\n if ABDL == 'error':\n ABDL = G9jH.ERROR\n YKHO._log.setLevel(ABDL)", "def fTst(YKHO, ABDL: str):\n YKHO._logger.setLevel(getattr(G9jH, ABDL))", "def ABDL(YKHO, wiAm):\n ...
[ "0.84037143", "0.83317757", "0.83228004", "0.83176285", "0.8308071", "0.82121253", "0.81788355", "0.8134428", "0.8041248", "0.8018885", "0.79927987", "0.791394", "0.78645366", "0.7787451", "0.77767855", "0.77482855", "0.7738889", "0.77361447", "0.77008474", "0.7683267", "0.76...
0.72255605
37
Find project root path from specified file/directory path, based on common project root file pattern.
def TG53(zOGz=None, mXDZ=None): zOGz = zOGz or Hy7s.getcwd() zOGz = pmON.abspath(pmON.normpath(pmON.expanduser(zOGz))) mXDZ = mXDZ or fVI7 if not pmON.isdir(zOGz): zOGz = pmON.dirname(zOGz) def p4nN(zOGz, mXDZ=None): if isinstance(mXDZ, jKi7.string_types): mXDZ = ZbWC.co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mlYH() -> oAb3.Path:\n sWmO = oAb3.Path.cwd()\n while not (oAb3.Path(sWmO, 'pyproject.toml').exists() or oAb3.Path(sWmO, 'poetry.lock').exists() or oAb3.Path('/') == sWmO):\n sWmO = sWmO.parent\n return sWmO", "def L59w() -> GkAb:\n return lkbE", "def phdL() -> GkAb:\n return GkAb(xAK...
[ "0.70532906", "0.6910879", "0.68903977", "0.68903977", "0.68903977", "0.68903977", "0.6866365", "0.6816584", "0.68093336", "0.67833585", "0.67828333", "0.6778225", "0.6734109", "0.671775", "0.65446144", "0.65446144", "0.6493771", "0.6414587", "0.63842404", "0.63672185", "0.62...
0.6444914
17
Split from the right side >>> rsplit('', None, 1) [] >>> rsplit('', '.', 1) [''] >>> rsplit('abc', '.', 1) ['abc'] >>> rsplit('a.b.c.d.e.f.g', '.', 1) ['a.b.c.d.e.f', 'g'] >>> rsplit('a.b.c.d.e.f.g', '.', 2) ['a.b.c.d.e', 'f', 'g']
def Bdjs(BWXx, VWe_, rZdO=None): lAwZ = BWXx.split(VWe_) if rZdO is not None and len(lAwZ) > 1: return [str.join(VWe_, lAwZ[:-rZdO])] + lAwZ[-rZdO:] return lAwZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8Y1(YKHO) -> x1iM[FgBH]:\n pass", "def X8Y1(KCHu, VWe_, X0i0=0):\n aPd6 = KCHu.split(VWe_)\n if not 0 < X0i0 <= len(aPd6):\n return aPd6\n return [VWe_.join(aPd6[0:-X0i0])] + aPd6[-X0i0:]", "def X8Y1(YKHO, VWe_=None, rZdO=None):\n return X8Y1(YKHO, VWe_, rZdO)", "def c6pt(pmON, Aof...
[ "0.6834162", "0.6382411", "0.62000066", "0.6112162", "0.6087543", "0.6048714", "0.6048714", "0.60298634", "0.5903098", "0.5897892", "0.5674078", "0.559032", "0.558471", "0.5579754", "0.5538265", "0.5537575", "0.5443441", "0.5394327", "0.5384527", "0.5380799", "0.53627264", ...
0.63941896
1
Create an empty timeline slot and sets its segment to a new, empty `aaf2.components.Sequence` component. Timeline slots are for continuous, monotonicallychanging media, like picture and sound.
def Q8dh(YKHO, vc9D, rqe0=None, wCIG=None): oQ6W = YKHO.create_timeline_slot(vc9D, rqe0) aWuw = YKHO.root.create.Sequence(media_kind=wCIG) aWuw['Components'].value = [] oQ6W.segment = aWuw return oQ6W
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zp9x(YKHO, vc9D=25):\n return YKHO.create_empty_sequence_slot(vc9D, media_kind='sound')", "def FIMM(YKHO):\n super().__init__()\n YKHO._points = 0\n YKHO._segments = []\n YKHO.fill_list()\n YKHO.reset()", "def nTWX(YKHO, oQ6W):\n oQ6W.set_location(len(YKHO.slots) + 1)\n YKHO.slots.a...
[ "0.5516654", "0.5348298", "0.52002007", "0.5134494", "0.5134494", "0.50891614", "0.49253228", "0.4921563", "0.4913621", "0.49094787", "0.49060673", "0.4816216", "0.48095387", "0.4795349", "0.4763048", "0.47387367", "0.47359204", "0.4734855", "0.473055", "0.47220668", "0.46820...
0.8448822
0
Create an empty timeline slot, with the 'sound' media kind, and sets its segment to a new, empty `aaf2.components.Sequence` component.
def zp9x(YKHO, vc9D=25): return YKHO.create_empty_sequence_slot(vc9D, media_kind='sound')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q8dh(YKHO, vc9D, rqe0=None, wCIG=None):\n oQ6W = YKHO.create_timeline_slot(vc9D, rqe0)\n aWuw = YKHO.root.create.Sequence(media_kind=wCIG)\n aWuw['Components'].value = []\n oQ6W.segment = aWuw\n return oQ6W", "def xc0X(YKHO, pmON, vc9D=None, J4QZ=None, u54L=None, RRjc=False):\n YLwM = YKHO....
[ "0.78113693", "0.48640096", "0.4783314", "0.4722068", "0.47105065", "0.46823877", "0.46748075", "0.46200013", "0.46146122", "0.46091688", "0.45786828", "0.45253932", "0.4496662", "0.44885072", "0.44663453", "0.4460587", "0.4444967", "0.4425024", "0.4396923", "0.4382409", "0.4...
0.6981341
1
computes a gumbel softmax sample
def nrOS(YKHO, KeL5): js4S = YKHO._srng.uniform(KeL5.shape, low=0, high=1) t_rd = -Kt_s.log(-Kt_s.log(js4S + YKHO.eps) + YKHO.eps) return Kt_s.nnet.softmax((KeL5 + t_rd) / YKHO.temperature)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZS1(YKHO, KeL5, ovGo):\n LVAh = KeL5 + YKHO._sample_gumbel(ZylS.shape(KeL5))\n return ZylS.nn.softmax(LVAh / ovGo, axis=-1)", "def DuOe(KeL5, ovGo):\n LVAh = KeL5 + hOcl(ZylS.shape(KeL5))\n return ZylS.nn.softmax(LVAh / ovGo)", "def DuOe(KeL5, ovGo):\n LVAh = KeL5 + hOcl(ZylS.shape(KeL5))\n...
[ "0.7603841", "0.756124", "0.756124", "0.75271124", "0.74172735", "0.72264516", "0.7056274", "0.70431995", "0.7041923", "0.70368147", "0.70283055", "0.69943583", "0.6993845", "0.6993845", "0.69925344", "0.6985711", "0.6985711", "0.6952511", "0.6938342", "0.69357854", "0.693462...
0.7100669
6
computes a hard onehot vector encoding maximum
def xAV3(KeL5): return Kt_s.extra_ops.to_one_hot(Kt_s.argmax(KeL5, -1), KeL5.shape[-1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ELEM(GQ7f):\n return oyIN.argmax(GQ7f, axis=1)", "def ymiX(LNo8):\n LNo8 = LNo8.permute(1, 2, 0)\n WKvO = ht2j.argmax(LNo8, dim=-1)\n return WKvO", "def ymiX(LNo8):\n WKvO = oyIN.argmax(LNo8, axis=-1)\n return WKvO", "def E3DW(ezWE: np.ndarray) -> oyIN.ndarray:\n return QfEj(oyIN.arg...
[ "0.77916473", "0.7714328", "0.7474593", "0.7424082", "0.7412359", "0.73833036", "0.7357814", "0.7140046", "0.70794755", "0.7046214", "0.7037539", "0.703162", "0.70090854", "0.693742", "0.6935294", "0.6920711", "0.6873614", "0.68454146", "0.6828821", "0.67562354", "0.6753241",...
0.7894884
0
Get the val out of the _cache dict object, or None if it doesn't exist.
def eUFv(YKHO, H5ew): return YKHO._cache.get(H5ew, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew):\n if H5ew:\n return YKHO.cache_data.get(H5ew)\n else:\n return None", "def NMoC(YKHO, H5ew):\n if H5ew and H5ew in YKHO.cache_data.keys():\n return YKHO.cache_data[H5ew]\n else:\n return None", "def NMoC(YKHO, H5ew):\n if H5ew and H5ew in YKHO.ca...
[ "0.7864897", "0.7863922", "0.7863922", "0.78314173", "0.7738695", "0.7485548", "0.7355947", "0.730668", "0.73027575", "0.7170514", "0.71698326", "0.7143345", "0.7127229", "0.7091024", "0.70304585", "0.6929117", "0.6828941", "0.67976004", "0.676879", "0.67623097", "0.67537737"...
0.6473062
31
Get the chute's configuration object.
def eEPS(YKHO): GPtr = {} for H5ew in YKHO.__dict__: if H5ew in YKHO.CONFIG_FIELDS: GPtr[H5ew] = YKHO.__dict__[H5ew] return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eMhT(YKHO) -> dict:\n return YKHO.config", "def tgzD(YKHO):\n return YKHO.config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return Y...
[ "0.77727985", "0.7751714", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586", "0.76845586",...
0.0
-1
Get the chute's host_config options for Docker. Returns an empty dictionary if there is no host_config setting.
def pOaD(YKHO): GPtr = getattr(YKHO, 'host_config', None) if GPtr is None: GPtr = {} return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xsOI(YKHO, GnR9, **B2fa):\n return {}", "def Z_mx(YKHO) -> h8nf['outputs.RuleRuleConditionHostConfig']:\n return qe4Y.get(YKHO, 'host_config')", "def KcEq(YKHO, KcEq):\n for XP5J, Z9rn in YKHO.configs_:\n if KcEq in Z9rn.hosts_:\n return Z9rn.host(KcEq)\n return {}", "def EV...
[ "0.71173173", "0.69000447", "0.6485871", "0.6391189", "0.6383279", "0.62348825", "0.623061", "0.60981375", "0.6098008", "0.603031", "0.60087997", "0.6002737", "0.5935141", "0.5923315", "0.58907", "0.58178556", "0.58160335", "0.58108926", "0.58108926", "0.5806871", "0.57947445...
0.7622666
0
Returns a random color with full alpha.
def pirq(): fvDH = [ajWY(0, 255) for bGrB in range(3)] return TA3K.Color(tuple(fvDH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OLAd():\n return tuKI.randint(0, 255)", "def pph3():\n CRwB(255)\n return (ajWY(0, 255), ajWY(0, 255), ajWY(0, 255))", "def pph3():\n Mkmy = lambda: tuKI.randint(0, 255)\n qfpW = '%02X%02X%02X' % (Mkmy(), Mkmy(), Mkmy())\n return qfpW", "def E2Hz():\n Z5Q9 = tuKI.randrange(0, 256)\n ...
[ "0.7846053", "0.7743438", "0.77175266", "0.75389934", "0.7484088", "0.7468291", "0.7452694", "0.7440028", "0.7379802", "0.73493963", "0.7336826", "0.7328525", "0.72962385", "0.7233501", "0.7225034", "0.7183882", "0.71625113", "0.7161208", "0.7136256", "0.70487565", "0.7027125...
0.66425306
28
Returns a random color that is guaranteed to be fully saturated. Min brightness clamped to 40.
def s09k(BWXx=255): xMux = [0, ajWY(0, 255), 255] fvDH = [0, 0, 0] BWXx = DZbg(BWXx, 40, 255) for YRbF in range(3): YwkQ = Acvy(xMux) fvDH[YRbF] = YwkQ * BWXx // 255 xMux.remove(YwkQ) return TA3K.Color(tuple(fvDH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OLAd():\n return tuKI.randint(0, 255)", "def pph3():\n CRwB(255)\n return (ajWY(0, 255), ajWY(0, 255), ajWY(0, 255))", "def rYs4(YKHO):\n z2lz = tuKI.random()\n if z2lz <= 1 / 3.0:\n return HRmL.RED\n else:\n return HRmL.BLACK", "def cdH4():\n return (qukk(0, 256), qukk...
[ "0.75250447", "0.72310495", "0.71573436", "0.69791514", "0.6915051", "0.6911662", "0.68701315", "0.6855806", "0.6852881", "0.68140125", "0.6748551", "0.674631", "0.673296", "0.6703766", "0.6657214", "0.6590976", "0.65833795", "0.65768826", "0.65442944", "0.6543563", "0.654240...
0.69938666
3
Returns a random color that is guaranteed to have low saturation and high brightness like a pastel color.
def s9nj(): fvDH = s09k() vgXP = 175 for YRbF in range(3): if fvDH[YRbF] == 255: continue elif fvDH[YRbF] != 0: fvDH[YRbF] = min(fvDH[YRbF] + vgXP, 255) else: fvDH[YRbF] += vgXP return TA3K.Color(tuple(fvDH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OLAd():\n return tuKI.randint(0, 255)", "def pph3():\n CRwB(255)\n return (ajWY(0, 255), ajWY(0, 255), ajWY(0, 255))", "def yTL5():\n return (ajWY(0, 255), ajWY(0, 255), ajWY(0, 255))", "def MP1f():\n Mkmy = tuKI.randint(0, 255)\n Oa1e = tuKI.randint(0, 255)\n Fg_i = tuKI.randint(0, ...
[ "0.79295254", "0.7750443", "0.7505849", "0.75024605", "0.7443906", "0.7428781", "0.74055505", "0.73909706", "0.73689026", "0.73467857", "0.72735995", "0.72468287", "0.7231096", "0.72151077", "0.72074807", "0.7155639", "0.7128901", "0.7087909", "0.70793265", "0.7034686", "0.70...
0.72404534
12
Returns a random color that is guaranteed to have lowish saturation. Brightness of output is ceilinged at 253 to contrast with pure white, and floored at 40 to contrast with pure black (outlines of sprites etc.) The 'saturation' input controls how desaturated the color should be. This value should both be in the range ...
def ee28(dU3c, asva=100): asva = DZbg(asva, 40, 255) pKYF = DZbg(dU3c, 0, 255 - asva) fvDH = [asva, asva, asva] for YRbF in range(3): Mkmy = ajWY(-pKYF, pKYF) if abs(Mkmy - asva) < pKYF // 2: if Mkmy < 0: Mkmy = ajWY(-pKYF, -pKYF // 2) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s09k(BWXx=255):\n xMux = [0, ajWY(0, 255), 255]\n fvDH = [0, 0, 0]\n BWXx = DZbg(BWXx, 40, 255)\n for YRbF in range(3):\n YwkQ = Acvy(xMux)\n fvDH[YRbF] = YwkQ * BWXx // 255\n xMux.remove(YwkQ)\n return TA3K.Color(tuple(fvDH))", "def OLAd():\n return tuKI.randint(0, 255...
[ "0.65370274", "0.6521516", "0.6467848", "0.6419299", "0.6298796", "0.6178765", "0.6177154", "0.61520714", "0.61471254", "0.6135859", "0.6056515", "0.59852934", "0.59727925", "0.5963029", "0.59549916", "0.59314835", "0.5901054", "0.58933413", "0.58916295", "0.5887236", "0.5875...
0.7329998
0