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
For each model variable, create the optimizer variable associated with it. TensorFlow calls these optimizer variables "slots".
def gaj9(YKHO, N7Fb): for SRYB in N7Fb: YKHO.add_slot(SRYB, 'previous_weight') for SRYB in N7Fb: YKHO.add_slot(SRYB, 'previous_gradient')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qxbw(*, C3ST: model_lib.Model, K0do: tf.keras.optimizers.Optimizer) -> x1iM[ZylS.Variable]:\n amu_ = ZylS.nest.map_structure(lambda Ty9i: ZylS.TensorSpec.from_tensor(Ty9i.read_value()), vRNf.ModelWeights.from_model(C3ST).trainable)\n ZylS.function(C51r).get_concrete_function(optimizer=K0do, model=C3ST, d...
[ "0.68967587", "0.6870244", "0.67795414", "0.6588679", "0.6534297", "0.64833534", "0.6414006", "0.6408052", "0.63996303", "0.638887", "0.637231", "0.6269204", "0.6214058", "0.62049294", "0.62016183", "0.61683965", "0.61612797", "0.61179113", "0.6102847", "0.6102143", "0.609110...
0.5710027
52
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() jQ3Z['month'] = rLdf.to_datetime(jQ3Z['Start Time']).dt.month r8hN = {1: 'January', 2: 'February', 3: 'March', 4: 'April', 5: 'May', 6: 'June'} x0eS = r8hN[jQ3Z['month'].mode()[0]] print('The most co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.8001252", "0.79222965", "0.78933024", "0.78628844", "0.78607917", "0.7840687", "0.78012836", "0.7786372", "0.7736968", "0.7724636", "0.7715267", "0.7709949", "0.77061343", "0.7703284", "0.76915216", "0.768726", "0.7681907", "0.7680392", "0.7673678", "0.76631093", "0.766182...
0.0
-1
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'].mode()[0] print('The most commonly used start station is: {}'.format(CuPk)) nG3J = jQ3Z['End Station'].mode()[0] print('The most commonly used end station is: {}'.format...
{ "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 v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() bJiw = jQ3Z['Trip Duration'].sum() print('The total travel time in minutes is {},\nin hours it is {},\nin days it would be {}\nand in years it would be {}.'.format(bJiw / 60, bJiw / 360, bJiw / 8640, bJiw / 3153600)) n0t6 =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.0
-1
Test if what is a question
def TR0X(RcQu): return bool(TgwQ('\\?\\s*$', RcQu))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bAls():\n return 'Sure.'", "def RSGw(EoWa):\n pass", "def TR0X(U5Jc):\n jsay = ['what', 'how']\n for a1PO in jsay:\n if Y8IB(U5Jc, a1PO):\n return True\n return False", "def pMxF(YKHO):\n pass", "def QgNj():\n mWFP = input(\"Hi! I'm Magic 8 Ball. What's your name?...
[ "0.7689747", "0.73432666", "0.6816655", "0.6734504", "0.6729741", "0.67084104", "0.6665999", "0.6658422", "0.6638231", "0.6604403", "0.65104055", "0.64977527", "0.64932764", "0.6475791", "0.6471493", "0.6463762", "0.6445834", "0.64239246", "0.6393455", "0.63817143", "0.636559...
0.688527
2
r"""Return the morphological gradient of an image.
def ICX2(vhpA: torch.Tensor, WZcn: torch.Tensor, Tns2: Optional[torch.Tensor]=None, hLRM: Optional[List[int]]=None, ou3g: str='geodesic', b8BR: float=0.0, JCoA: float=10000.0, eHpk: str='unfold') -> ht2j.Tensor: return ivFb(vhpA, kernel=WZcn, structuring_element=Tns2, origin=hLRM, border_type=ou3g, border_value=b8B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MvBs(VXjJ):\n WZcn = oyIN.ones((5, 5), oyIN.uint8)\n ICX2 = XC5k.morphologyEx(VXjJ, XC5k.MORPH_GRADIENT, WZcn)\n return ICX2", "def NRZ3(VXjJ):\n WZcn = XC5k.getStructuringElement(XC5k.MORPH_RECT, (5, 5))\n return XC5k.morphologyEx(VXjJ, XC5k.MORPH_GRADIENT, WZcn)", "def _jDC(LNo8):\n ICX...
[ "0.83305585", "0.8077242", "0.7834337", "0.72124916", "0.71618253", "0.7068309", "0.70028925", "0.69609284", "0.6928916", "0.6924207", "0.6911947", "0.6911947", "0.69116586", "0.6883577", "0.68650085", "0.685977", "0.6810381", "0.67934376", "0.6786666", "0.677851", "0.6758019...
0.0
-1
Deletes this `Imposter` from Mountebank. This object cannot be used afterwards.
def xSHO(YKHO): G4JS.delete(YKHO.url)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO):\n YKHO._delete()", "def PTpj(YKHO):\n YKHO._delete(YKHO._lookup('self'))", "def PTpj(YKHO):\n PTpj(YKHO)", "def PTpj(YKHO):\n YKHO._manager.delete(YKHO.id)", "def kSdD(YKHO):\n YKHO._delete()", "def PTpj(YKHO):\n YKHO.manager.delete(YKHO)", "def PTpj(YKHO):\n YKHO.m...
[ "0.70529175", "0.6848878", "0.67830324", "0.6718401", "0.65782136", "0.65764236", "0.6567158", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766", "0.652766",...
0.0
-1
Initialize from a `DataFrame` containing the fragmentmolecule pairs.
def FIMM(YKHO, kgDL, MnDN): YKHO.encoder = MnDN YKHO.pairs = iter(kgDL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vxs7():\n pass", "def FIMM(YKHO, bOBl):\n YKHO.df = bOBl", "def qSN5(Emd4, jQ3Z, **c_sp):\n CvdH = FZWC(jQ3Z)\n YKHO = Emd4(CvdH, **c_sp)\n return YKHO", "def vxs7(Emd4, jQ3Z):\n SJjh = Emd4()\n SJjh.num = jQ3Z['num'].astype(int)[0]\n SJjh.mean = nYIM.float_tensor(jQ3Z['mean'].ast...
[ "0.59117734", "0.5679217", "0.5539798", "0.5521354", "0.55014825", "0.549665", "0.549665", "0.5464286", "0.5422806", "0.5410383", "0.5402581", "0.53862345", "0.53850883", "0.53685313", "0.5358431", "0.53297865", "0.53150225", "0.53082234", "0.52994937", "0.52509254", "0.52488...
0.0
-1
Compares two PyTorch tensors elementwisely by means of the provided comparison operator. The provided tensors may be of any, possibly different types of PyTorch tensors except ``CharTensor``. They do have to be of equal shape, though. Notice further that this method expects actual tensors as opposed to PyTorch ``Parame...
def nsxo(cntZ, CsFy, DRHV: typing.Callable) -> laHg.Optional[laHg.List[laHg.Tuple[int, ...]]]: cntZ = cntZ.cpu().numpy() CsFy = CsFy.cpu().numpy() yCnv = DRHV(cntZ, CsFy) if yCnv.all(): return None cNgN = [list(vC9B) for vC9B in oyIN.where(oyIN.invert(yCnv))] jcPU = list(zip(*cNgN)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4aA(YKHO):\n for yCnv in ['gt', 'ge', 'lt', 'le', 'eq', 'ne']:\n for KvM0 in [lambda WKvO: WKvO, reUQ]:\n J9oU = YKHO._get_random_test_tensor(is_float=True)\n QCf9 = YKHO._get_random_test_tensor(is_float=True)\n lvzi = reUQ(J9oU)\n sBAV = KvM0(QCf9)\n ...
[ "0.67517346", "0.62419695", "0.6104945", "0.60321057", "0.59634054", "0.59080124", "0.58351016", "0.5830996", "0.5817115", "0.57907844", "0.57573783", "0.5687386", "0.5686325", "0.56816083", "0.5663133", "0.5656833", "0.564813", "0.56276083", "0.5620309", "0.55457777", "0.553...
0.6514127
1
Tests that correct user agent is returned.
def LJZE(YKHO): YKHO.assertEqual(YKHO.user_agent, b8XD.get_user_agent())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o83a(YKHO):\n YKHO.assertEqual(YKHO.user_agent, b8XD.get_user_agent_header()['User-Agent'])", "def UEiM(YKHO, QePW):\n _iO9 = hKhs(QePW)\n Xqgu = yWra(url=_iO9)\n assert BtDU in Xqgu.user_agent", "def UEiM(YKHO, QePW):\n _iO9 = N3Yo(QePW)\n Xqgu = yWra(url=_iO9)\n assert BtDU in Xqgu.u...
[ "0.7892086", "0.78199154", "0.78171104", "0.7741725", "0.76504004", "0.745695", "0.73097205", "0.72185487", "0.7191775", "0.7161268", "0.7121836", "0.70940495", "0.7081747", "0.70699614", "0.70699614", "0.70699614", "0.7031239", "0.7031239", "0.7031239", "0.7031239", "0.70308...
0.7863928
1
Generate blob names for each one of the edge. At this time, Keras does not support "fork" operation (a layer with more than 1 blob output). So we just use names of the src layer to identify a blob. We also assume all neural networks are singlyconnected graphs which should be the case.
def jKTf(YKHO): for gEmA in YKHO.layer_list: HPbj = YKHO.keras_layer_map[gEmA] if not isinstance(HPbj, cXTI.engine.topology.InputLayer): aTLP = YKHO.get_predecessors(gEmA) for nvEb in aTLP: zvSV = nvEb + '_output' oXHG(YKHO.layers_inputs, gEmA,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ourm():\n YvWY = ['data']\n if _Fei.RPN.ON:\n YvWY += F7QT.rpn.get_rpn_blob_names()\n else:\n YvWY += F7QT.fast_rcnn.get_fast_rcnn_blob_names()\n return YvWY", "def VDia(EmUp, y_PJ):\n N441 = EmUp.merge(y_PJ, on='TFID', how='left')\n Fi_A = N441[['FULLNAME', 'BLKID']].drop_dup...
[ "0.5965962", "0.5799598", "0.57804334", "0.5653206", "0.5579119", "0.55703485", "0.55456996", "0.55323213", "0.54964715", "0.54896605", "0.5409917", "0.53289455", "0.5326465", "0.5308656", "0.5301934", "0.52739745", "0.5222668", "0.52179426", "0.51912683", "0.5188305", "0.518...
0.8499821
0
Takes a csv file specified by the path csv_fp and converts it into an array of examples, each of which is a dictionary of keyvalue pairs where keys are column names and the values are column attributes.
def aVg3(DaLq): _73Q = [] with open(DaLq) as z36O: ixsc = m6_J.reader(z36O, delimiter=',') y7qt = 0 eU4s = None for rdlD in ixsc: if len(rdlD) == 0: continue if y7qt == 0: eU4s = rdlD for YRbF in range(len(eU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yTvH(Ux0P):\n DumB = []\n with open(Ux0P, newline='') as eHNT:\n N5Pj = m6_J.DictReader(eHNT)\n for rdlD in N5Pj:\n ZfUD = Bmcv()\n for Jyyj in aR0E:\n setattr(ZfUD, Jyyj, rdlD[Jyyj])\n DumB.append(ZfUD)\n return DumB", "def BD9K(YKHO, z3...
[ "0.6828675", "0.68081784", "0.6611183", "0.6545432", "0.6451896", "0.6412548", "0.64019316", "0.6344429", "0.634273", "0.63226146", "0.6252256", "0.6248288", "0.62298286", "0.62288576", "0.621991", "0.61913246", "0.6187338", "0.6173937", "0.61542624", "0.61162263", "0.6111392...
0.77245086
0
Cancels any current timer threads.
def A0m2(YKHO): if YKHO.thread != None: YKHO.thread.cancel() YKHO.thread = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A0m2(YKHO):\n for bGrB, FusX in YKHO._timers_container.items():\n FusX.cancel()", "def Ojd5(YKHO):\n for FusX in YKHO.timers:\n FusX.cancel()", "def KJUD(YKHO):\n if YKHO.room_timer is not None:\n YKHO.room_timer = None\n if YKHO._token_timer is not None:\n YKHO._tok...
[ "0.8023723", "0.75113696", "0.741006", "0.7332734", "0.7117783", "0.7096682", "0.7018", "0.7000598", "0.69572896", "0.6888751", "0.68362886", "0.6768757", "0.673075", "0.6695108", "0.6669051", "0.6601374", "0.6554326", "0.6495697", "0.6489364", "0.64810133", "0.64785", "0.6...
0.65781057
16
Get and parse arguments.
def rwTO(): import argparse wvEv = A3OT.base_cl_options() wvEv.add_argument('-i', '--interval', default=[120], nargs=1, help='Number of seconds between test attempts.') wvEv.add_argument('--timeout', default=None, help='Maximum time for test (even if cycles are not reached)') wvEv.add_argument('--ou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gGZX(YKHO):\n return YKHO._parser.parse_args()", "def rwTO():\n wvEv = xuJu()\n qIxc = wvEv.parse_args()\n return qIxc", "def rwTO(YKHO, qIxc):\n return YKHO.parser.parse_args(qIxc)", "def rwTO():\n wvEv = VqfF.ArgumentParser()\n wvEv.add_argument('--radius', type=float, help='Radius...
[ "0.78542644", "0.7766889", "0.775759", "0.7741062", "0.77067333", "0.76157117", "0.76034325", "0.75888324", "0.75888324", "0.7556249", "0.7523013", "0.74988586", "0.7490087", "0.74403757", "0.7394668", "0.7378221", "0.73713815", "0.7344367", "0.7338629", "0.7328819", "0.73213...
0.0
-1
Test that if both global and projectlevel secrets.toml files exist, secrets from both are present in st.secrets, and secrets from the projectlevel file "win" when secrets have conflicting names.
def qjS1(YKHO, Iovx): with Hy7s.fdopen(YKHO._fd1, 'w') as jbXL: jbXL.write(pfNg) with Hy7s.fdopen(YKHO._fd2, 'w') as jbXL: jbXL.write('\ndb_password="54321dvorak"\nhi="I\'m new"\n\n[subsection]\nemail2="eng2@streamlit.io"\n') BK9j = [YKHO._path1, YKHO._path2] FXSn = e4GQ(BK9j) YKHO.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qTI6(YKHO):\n YKHO.assertEqual(['/mock/home/folder/.streamlit/secrets.toml', Hy7s.path.abspath('./.streamlit/secrets.toml')], NGWM)", "def V_hD(YKHO):\n P4t4 = YKHO._app\n P4t4.vault.write_secret('posix/root_path', P4t4.config.user_library_import_symlink_allowlist[0])\n with YKHO._different_user(...
[ "0.6569812", "0.6561596", "0.6243614", "0.62170225", "0.6165379", "0.61598265", "0.6151492", "0.6128513", "0.61220837", "0.60619754", "0.60406643", "0.60005087", "0.5985894", "0.5972324", "0.59377235", "0.59270376", "0.5922628", "0.5919546", "0.5855147", "0.5816212", "0.58059...
0.6349152
2
Only the admin users can access the admin site.
def WJxI(YKHO): return YKHO.is_superuser or YKHO.is_administrator_of_search_pages
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4un():\n if not c5ow.username == 'admin':\n eTsH(403)", "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def l4un():\n if not c5ow.is_superadmin:\n ...
[ "0.8425496", "0.84016883", "0.84016883", "0.84016883", "0.83053553", "0.8051211", "0.8037984", "0.79366434", "0.7930263", "0.78365165", "0.77878475", "0.77878475", "0.7783282", "0.7720239", "0.76809204", "0.76339716", "0.76262224", "0.75440097", "0.7477263", "0.745031", "0.74...
0.0
-1
Retrieve the database instance of bdc_catalog.models.Provider.
def KAOR(YKHO) -> uBwj: return YKHO._db_provider
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iqfc(zn0c):\n return xyue.provider_for_region(zn0c)", "def xg_e(wnys, Hf0x=None, evWk=None):\n ynGO = siZ_.databases[qDOd].copy()\n MaYR = ynGO['NAME']\n ynGO.update({'NAME': wnys})\n if Hf0x:\n ynGO.update({'HOST': Hf0x})\n if evWk:\n ynGO.update({'PORT': evWk})\n if ynGO[...
[ "0.66952646", "0.65068376", "0.6410383", "0.6371624", "0.63279456", "0.630286", "0.6247716", "0.62059873", "0.6193321", "0.6173733", "0.6165292", "0.6135062", "0.6126114", "0.6121097", "0.6105517", "0.61024505", "0.60782576", "0.60729986", "0.6060864", "0.6048896", "0.6042170...
0.76534754
0
Initialize the BDCCollector extension, loading supported providers dynamically.
def GmIz(YKHO, P4t4: Flask, **B2fa): from .cli import cli x0Q6 = 'bdc:collector' if x0Q6 in P4t4.extensions: qmLP.warn(f'The module {x0Q6} was already initialized before.') return YKHO.init_providers(**B2fa) P4t4.extensions[x0Q6] = YKHO P4t4.cli.add_command(cli, 'bdc-collector')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o55l(YKHO, gBgG: str='bdc_collectors.providers', **B2fa):\n if gBgG:\n for Lqnw in RkCj.iter_entry_points(gBgG):\n kT1P = Lqnw.load()\n if hasattr(kT1P, 'init_provider') and callable(kT1P.init_provider):\n bTKY = kT1P.init_provider()\n for rlUT, kT1...
[ "0.6599015", "0.64128006", "0.634223", "0.63154167", "0.62988067", "0.6172553", "0.6110234", "0.60078573", "0.597576", "0.589177", "0.5883103", "0.57653326", "0.57331795", "0.57169014", "0.5660757", "0.5650407", "0.56224626", "0.56202877", "0.5599948", "0.5590705", "0.5554179...
0.6112934
6
Creates an instance of this client using the provided credentials file.
def eWUZ(Emd4, Ux0P: str, *qIxc, **B2fa): return Z0l3.from_service_account_file.__func__(nOG2, Ux0P, *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adK6(Emd4, *, bD7m: str, NtEF: Union[str, StrStorage], jTXt: Union[str, StrStorage], emKz: Optional[FileTransfer]=None) -> i9zE:\n return i9zE(client=WX3b.from_credentials(url=bD7m, username=NtEF, password=jTXt), file_transfer=emKz)", "def vuB2(Nu1S=None, QpfX=None, mwuo=None, MYjm=None, QDug=None, NtEF=N...
[ "0.7249915", "0.7053171", "0.68975395", "0.68081045", "0.6802571", "0.6738844", "0.67199385", "0.6675532", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6646984", "0.6643617", "0.66432035",...
0.64070684
30
Find by where clause and return one result. If multiple results found, only the first one returned. If no result found, return None.
def huPo(Emd4, qJWj, *qIxc): Csk6 = NCls.select_one('select * from %s %s' % (Emd4.__table__, qJWj), *qIxc) return Emd4(**Csk6) if Csk6 else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T_NJ(YKHO, filter=None, *qIxc, **B2fa):\n if filter is not None and (not isinstance(filter, ftIh.Mapping)):\n filter = {'_id': filter}\n N1p7 = YKHO.find(filter, *qIxc, **B2fa)\n for Aofo in N1p7.limit(-1):\n return Aofo\n return None", "def neBz(YKHO, lgNN):\n EmMj = YKHO.find_a...
[ "0.72083044", "0.7149198", "0.71447456", "0.70469517", "0.69417787", "0.6874782", "0.68635976", "0.6855585", "0.6774411", "0.6769685", "0.6751303", "0.6751303", "0.6750471", "0.6736125", "0.67033786", "0.6700806", "0.66932863", "0.66334146", "0.66318595", "0.65669674", "0.656...
0.73162895
0
Get original input name for reference.placeHolderList[] attribute. Returns the input attribute that the placeHolderList index entry refers so, e.g. the missing "cube.translateX" output.
def ywbC(B4sa): uNQU = B4sa.split('.', 1)[0] I4VY = None for ITwz in o0cV(uNQU): if B4sa in ITwz: ITwz = ITwz.strip() I4VY = ITwz.split(' ')[3].strip('"') return I4VY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qqw9(YKHO, d6pt):\n LlSf = TO1V()\n YKHO._api.LITE_get_input_name(YKHO._network, d6pt, dWW6(LlSf))\n return LlSf.value.decode('utf-8')", "def mWFP(YKHO):\n return YKHO._tmp", "def dvBq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'input_name')", "def dvBq(YKHO) -> qe4Y.Input[str]:\n ...
[ "0.5835974", "0.56348056", "0.56279916", "0.56279916", "0.5597327", "0.5501991", "0.5495104", "0.54640436", "0.54555905", "0.54104686", "0.533303", "0.5269679", "0.52441424", "0.5231801", "0.523", "0.52290696", "0.5218739", "0.52137893", "0.5194842", "0.5194842", "0.51904106"...
0.6699249
0
Reshape X into a stack of matrices based on feature names, one new 'layer' for each unique (sorted) entry in x. Note In order to ensure the layers are stackable, if the number of cols is off zero are added as pad whereever needed.
def HpNZ(EcVT, OeUg): EcVT = oyIN.array(EcVT) OeUg = oyIN.array(OeUg) Mgbh = oyIN.unique(OeUg) aUKP = EcVT.shape[0] if EcVT.shape[1] != OeUg.shape[0]: raise ValueError("Number of features in X doesn't match feature_names.") ZHfW = Mgbh[0] == OeUg assert ZHfW.shape[0] == OeUg.shape[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JvTu(WKvO, fKMN, C3ST):\n WpYq = []\n for Q1bM in fKMN:\n LCb9 = C3ST.get_layer(Q1bM)\n Ofoy = LCb9.output\n wH6b = gKuT.shape(Ofoy).eval(session=FBiP)\n hh0O = wH6b[-1]\n N7cM = wH6b[1] * wH6b[2]\n PE1j = gKuT.reshape(Ofoy, (N7cM, hh0O))\n PE1j = gKuT.tra...
[ "0.6338134", "0.63104755", "0.61344117", "0.6014698", "0.6005658", "0.5990192", "0.59205633", "0.59183216", "0.5868547", "0.58087265", "0.57750475", "0.57048815", "0.5673171", "0.5652107", "0.56198984", "0.5606116", "0.5578717", "0.5557575", "0.55413276", "0.54889137", "0.548...
0.76043576
0
Get the ExecuteCmd format string specified by the operator.
def nsqM(YKHO, mLim, bIwZ): DN9V = YKHO.getListenerMeta(mLim, bIwZ) if DN9V: return DN9V.cmd_template
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SFhb(YKHO):\n HCmI = YKHO.cmd_kind\n if YKHO.options:\n HCmI = '{} {} {}'.format(HCmI, YKHO.options, YKHO.path)\n else:\n HCmI = '{} {}'.format(HCmI, YKHO.path)\n return HCmI", "def HCmI(YKHO) -> str:\n return YKHO._cmd", "def ZKbS(YKHO, HCmI, qIxc):\n assert isinstance(qIxc...
[ "0.7153473", "0.6801841", "0.67663515", "0.6752653", "0.66638947", "0.66638947", "0.6637383", "0.6637383", "0.6613463", "0.65955555", "0.65955555", "0.65955555", "0.6562111", "0.6498084", "0.6474955", "0.64463156", "0.643752", "0.64283985", "0.6353404", "0.6341796", "0.634019...
0.6245802
28
Return original destination port, or None if it was not redirected. The proxy listener uses this method to obtain and provide port information to listeners in the taste() callback as an extra hint as to whether the traffic may be appropriate for parsing by that listener.
def SnjT(YKHO, resI, RqDB, mLim): Q6_r = uTqM.PacketCtx.gen_endpoint_key(mLim, resI, RqDB) with YKHO.port_fwd_table_lock: return YKHO.port_fwd_table.get(Q6_r)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LW0O(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'destination_port')", "def ignI(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'reverse_proxy_endpoint_port')", "def LW0O(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'destination_port')", "def LW0O(YKHO) -> h8nf[int]:\n re...
[ "0.6941708", "0.6917066", "0.68904287", "0.68904287", "0.68904287", "0.68904287", "0.6688632", "0.66418475", "0.65909195", "0.658116", "0.6573128", "0.6551338", "0.6402455", "0.6192872", "0.6184742", "0.61365", "0.60395247", "0.60019255", "0.5987375", "0.59578663", "0.5946389...
0.5956422
20
Test case for get_user Gets a user by ID
def K9hf(YKHO): geh0 = YKHO.client.open('/donff2/F21User/1.0.0/users/{userId}'.format(user_id='user_id_example'), method='GET') YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rbOu(YKHO):\n pass", "def rbOu(YKHO):\n pass", "def rbOu(YKHO):\n if YKHO.skip_tests:\n return\n h18y = x7_4.get_user_by_id(JYr2)\n YKHO.assertIsNotNone(h18y, f'Did not find user by ID {JYr2}')", "def rbOu(YKHO):\n geh0 = YKHO.client.open('/deepengine/Shopper/1.0.0/user/{userID}'...
[ "0.8711528", "0.8711528", "0.837941", "0.8351233", "0.8225093", "0.8114986", "0.8070219", "0.7845121", "0.7845121", "0.7825836", "0.7782095", "0.7776105", "0.77500635", "0.7734759", "0.7728128", "0.7705596", "0.7705596", "0.7691677", "0.7689837", "0.7621782", "0.7619293", "...
0.75214463
33
remove the dot from an extension
def QTwE(CBZq): if isinstance(CBZq, str): YBcr: str = CBZq CBZq = YBcr.replace('.', '') return CBZq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dbzI(YKHO, mWFP):\n RYPm = mWFP.find('.')\n if RYPm == -1:\n return mWFP\n return mWFP[:RYPm]", "def dbzI(mWFP):\n return mWFP[:mWFP.index('.')]", "def MXbr(mWFP):\n return mWFP.split('.')[0]", "def MXbr(gIsw):\n BJ1H = gIsw.rfind('.')\n if BJ1H > gIsw.rfind('\\\\'):\n ...
[ "0.854418", "0.8470256", "0.83590347", "0.823563", "0.8218167", "0.81940466", "0.81518495", "0.8141813", "0.81376284", "0.8131232", "0.80993384", "0.80070835", "0.79091555", "0.7895086", "0.7823053", "0.78131706", "0.7753564", "0.7743968", "0.7702082", "0.77004063", "0.768670...
0.8702592
0
Convert site name to safe string for config. Simply replaces any nonword chars with underscore. This could lead to multiple site names mapping to one config name but probably not too likely.
def Zuqu(YKHO, mWFP): return ZbWC.sub('[^\\w]', '_', mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bupn(YKHO, w1vn):\n return w1vn.replace(' ', '')", "def rHMI(KCHu):\n lfHk = KCHu.split('_')[0:3]\n lfHk = filter(None, lfHk)\n gzes = '_'.join(lfHk)\n return gzes", "def fASJ(mWFP: str) -> str:\n return mWFP.lower().strip().replace(' ', '-').replace('_', '-')", "def kzWO(mWFP: str) -> ...
[ "0.74554896", "0.7289696", "0.6769033", "0.67592305", "0.6641979", "0.664193", "0.6602989", "0.65584046", "0.65385044", "0.6533707", "0.65011126", "0.6477156", "0.64689785", "0.6436021", "0.6357356", "0.63237137", "0.6316849", "0.63136667", "0.6305636", "0.6301404", "0.628652...
0.8622836
0
(Maze, int, int) > bool Return true if and only if there is a wall at the given row and column of the maze.
def OC7g(YKHO, rdlD, fvDH): return YKHO.maze[rdlD][fvDH] == GNtq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OC7g(YKHO, rdlD, fvDH):\n return YKHO.maze[rdlD][fvDH] == GNtq", "def OC7g(YKHO, rdlD, fvDH):\n return YKHO.maze[rdlD][fvDH] == GNtq", "def OC7g(YKHO, rdlD, iVRZ):\n return YKHO.maze[rdlD][iVRZ] == GNtq", "def E3Xh(YRbF, r845):\n global width, height, wall_coords\n return abs(YRbF) == TVTK...
[ "0.8478464", "0.8373", "0.8263554", "0.7780568", "0.7776439", "0.7649013", "0.7599995", "0.7522889", "0.73192936", "0.7271556", "0.72644997", "0.7207679", "0.71986544", "0.7195862", "0.7192165", "0.7183952", "0.7172172", "0.7139379", "0.7126752", "0.7078707", "0.7070661", "...
0.829564
2
Allow crossdomain calls from other domains and port. Crossdomain also ensures that the content passed through flask request is safe if needed.
def NJWU(VQaI=None, P4t4=None, hLRM=None, na_E=None, MOPg=None, uqEL=21600, FKfh=True, XjB4=True): if na_E is not None: na_E = ', '.join(sorted((WKvO.upper() for WKvO in na_E))) if MOPg is not None and (not isinstance(MOPg, str)): MOPg = ', '.join((WKvO.upper() for WKvO in MOPg)) if not isin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def leCP(geh0: Response):\n geh0.headers['Access-Control-Allow-Origin'] = '*'\n geh0.headers['Access-Control-Allow-Headers'] = 'content-type'\n return geh0", "def xIaY(eHNT):\n\n @xBlr.wraps(eHNT)\n def h3Xc(QePW, *qIxc, **YSA3):\n geh0 = eHNT(QePW, *qIxc, **YSA3)\n \"If Access-Contr...
[ "0.73526645", "0.7331633", "0.67524034", "0.6699983", "0.6542372", "0.6503644", "0.6482524", "0.64106894", "0.6338132", "0.63203466", "0.6255889", "0.6247936", "0.62215227", "0.6201356", "0.614652", "0.60932875", "0.60794944", "0.6071211", "0.60375977", "0.60317117", "0.59809...
0.64137703
7
Gets the Area of Section 1 of the CTUBE.
def FaqQ(YKHO, YRbF): hPNz = YKHO.OD[YRbF, 0] if YKHO.t[YRbF] == 0: return mM0K / 4.0 * hPNz ** 2 By1t = hPNz - 2 * YKHO.t i8nr = mM0K / 4.0 * (hPNz * hPNz - By1t * By1t) return i8nr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drdQ(YKHO):\n return YKHO.area", "def drdQ(YKHO):\n return", "def drdQ(YKHO):\n return YKHO._area", "def f0tD(YKHO):\n return YKHO.container['area']", "def sAdl(YKHO, UXqs):\n return YKHO.get_areas(UXqs)[0]", "def sAdl(YKHO):\n return YKHO._area", "def sAdl(YKHO):\n return YKHO...
[ "0.70942324", "0.7070124", "0.6924393", "0.68724394", "0.6845408", "0.6835331", "0.68340546", "0.68340546", "0.680053", "0.680053", "0.67489064", "0.673085", "0.6701627", "0.6681466", "0.6662224", "0.66377443", "0.66332954", "0.66200244", "0.6591936", "0.6590542", "0.6569343"...
0.0
-1
Gets the Area of Section 2 of the CTUBE.
def Zf4q(YKHO, YRbF): hPNz = YKHO.OD[YRbF, 1] if YKHO.t[YRbF] == 0: return mM0K / 4.0 * hPNz ** 2 By1t = hPNz - 2 * YKHO.t vo6s = mM0K / 4.0 * (hPNz * hPNz - By1t * By1t) return vo6s
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return YKHO.__side_1_length * YKHO.__side_2_length", "def drdQ(YKHO):\n return", "def drdQ(YKHO):\n return YKHO.area", "def sAdl(YKHO):\n return (YKHO.len1 - 1) * (YKHO.len2 - 1)", "def sAdl(YKHO) -> float:\n return YKHO.side * YKHO.side", "def drdQ(YKHO):\n return YKH...
[ "0.69781256", "0.6896767", "0.6836579", "0.683388", "0.665116", "0.66173214", "0.65631616", "0.65631616", "0.6534639", "0.652599", "0.65127325", "0.64893514", "0.6474405", "0.6468824", "0.6463975", "0.6437977", "0.6435491", "0.6435491", "0.63879776", "0.6382949", "0.6371095",...
0.6304072
25
returns local path to saved file if not found returns ''
def F8fh(YKHO, bD7m: str, Z9JV: bs) -> str: Kz8N = YKHO._get_manifest(Z9JV) if Kz8N: pass return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n QN9E = '{0}/{1}'.format(YKHO.save_dir, Hy7s.path.basename(YKHO.local_file))\n if not Hy7s.path.exists(QN9E) or not Hy7s.path.samefile(YKHO.local_file, QN9E):\n RDuA.copy2(YKHO.local_file, QN9E)\n return QN9E", "def ffJC(YKHO):\n return Hy7s.path.join(YKHO.data_path, YKHO.get_...
[ "0.7784523", "0.7284591", "0.7269754", "0.71620744", "0.7048832", "0.70414984", "0.7036821", "0.7026135", "0.70010656", "0.6874231", "0.68729985", "0.68640095", "0.6792324", "0.6788023", "0.67735124", "0.6765078", "0.67531717", "0.67414725", "0.67148226", "0.66840947", "0.663...
0.0
-1
Flatten a nested dictionary Converts a dictionary with nested values to a single level flat dictionary, with dotted notation for each key.
def PWgb(Csk6, PUAf=''): DumB = [] for G1Hx, Ty9i in Csk6.items(): hU8D = PUAf + '.' + G1Hx if PUAf else G1Hx if isinstance(Ty9i, g760.abc.MutableMapping): DumB.extend(PWgb(Ty9i, hU8D).items()) else: DumB.append((hU8D, Ty9i)) return dict(DumB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(UtCB: Dict) -> cuzp:\n TLbF = {}\n for G1Hx, Ty9i in UtCB.items():\n if isinstance(Ty9i, cuzp):\n for ZTx5, HOFK in PWgb(Ty9i).items():\n UG18 = '.'.join([G1Hx, ZTx5])\n TLbF[UG18] = HOFK\n else:\n TLbF[G1Hx] = Ty9i\n return TLbF",...
[ "0.82562673", "0.79386705", "0.7893485", "0.77972084", "0.7746815", "0.7682428", "0.76737905", "0.757659", "0.75575167", "0.75553805", "0.74858135", "0.74522674", "0.7446577", "0.74459493", "0.7422644", "0.73800933", "0.7365501", "0.73565847", "0.729867", "0.7260337", "0.7255...
0.7421026
15
return HttpResponse("Hello, world. You're at the polls index.")
def xzCw(QePW): h9MM = QePW.GET.get('ser_name') UZrI = QePW.GET.get('ser_spl') JzA5 = QePW.GET.get('ser_location') uyIa = QePW.GET.get('ser_phNum') dc_e = QePW.GET.get('ser_psword') dnDh = QePW.GET.get('ser_addr') STsb = QePW.GET.get('ser_email') geh0 = {} if not j_Rb.objects.filter(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(QePW):\n return igJ6('HI!')", "def d6pt(QePW):\n return igJ6('Welcome to your app home-page! adsfasdfasdf')", "def vsuQ(QePW):\n return igJ6(\"I'm Cat Sandwich and I love rainbow sprinkles on everything.\")", "def d6pt(QePW):\n return igJ6(\"Hello world. You're at the codemarker index.\"...
[ "0.8656783", "0.85500515", "0.8323064", "0.8289776", "0.82743376", "0.82593966", "0.8225588", "0.809723", "0.806418", "0.80249894", "0.795681", "0.7938545", "0.7906239", "0.78833026", "0.7790202", "0.77819675", "0.7725595", "0.7719298", "0.76387215", "0.7614524", "0.7587252",...
0.0
-1
Given a list of (t,u) points of the minima and maxima of u, return an array of the corresponding local amplitudes.
def obqe(e6I6, PD4t): jzdc = [abs(PD4t[exwG][1] - e6I6[exwG][1]) / 2.0 for exwG in range(min(len(e6I6), len(PD4t)))] return qw7D(jzdc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ts39(P6bq, a1PO):\n return oyIN.asarray([jzdc + (P6bq - xHAs(a1PO)) ** 5])", "def Ts39(P6bq, a1PO):\n return oyIN.asarray([jzdc + (P6bq - xHAs(a1PO)) ** 5])", "def TFM7(P6bq, Ty9i, XYsm, c_ZQ=None, vgXP=[0.0, 0.0]):\n if c_ZQ is None:\n c_ZQ = oyIN.arange(0, max(P6bq.max() / 1000.0, Ty9i.ma...
[ "0.6880629", "0.68757534", "0.6052031", "0.60117424", "0.59798974", "0.5741975", "0.5674766", "0.56125915", "0.5597889", "0.5567982", "0.5551731", "0.5543201", "0.55009615", "0.54969317", "0.5482324", "0.5480446", "0.5476675", "0.54698926", "0.5464701", "0.5451137", "0.544156...
0.62882453
2
Return the active photos queryset.
def rItm(YKHO): return YKHO.sliderpicture_set.filter(active=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n return w55X.objects.filter(tags__slug=YKHO.kwargs.get('slug')).filter(published='PB').all()", "def k66M(YKHO):\n return super(kjPF, YKHO).get_queryset().filter(user__is_active=True)", "def k66M(YKHO):\n return hnIv.objects.all()", "def s6Gm(OaeV: click.Context):\n HkjQ = UoPt(ve...
[ "0.7630335", "0.75068825", "0.7229497", "0.7216964", "0.68847245", "0.66590166", "0.66394883", "0.6599494", "0.6597167", "0.65905064", "0.6544086", "0.6525836", "0.6440017", "0.64384526", "0.6423274", "0.6410054", "0.637391", "0.63315046", "0.6330884", "0.6233929", "0.6233929...
0.856627
0
Sends explanation on how to use the bot.
def yKcO(QdZT: Update, QpfX: CallbackContext) -> None: KCHu = 'I really hope you live in Bussolengo (VR) ' + "and in the B zone of it, otherwise this won't be useful (:" QdZT.message.reply_text(KCHu) help(QdZT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u6aU():\n return \"Hello! I'm Bot.<br>To learn more about my abilities type:<br>!! help\"", "async def about(OaeV):\n await OaeV.send('Luidenka Bot v1.0')\n await OaeV.send('A Discord Server bot made by Luidenka.')", "async def about(OaeV):\n await OaeV.send(JBZA)", "async def show_bot_help(Y...
[ "0.7942503", "0.7901459", "0.7631006", "0.7613692", "0.7613692", "0.7567465", "0.74532056", "0.74192756", "0.7316178", "0.7284241", "0.7249208", "0.72435963", "0.72270775", "0.71445876", "0.71311116", "0.711557", "0.711534", "0.710981", "0.7106788", "0.70708126", "0.70652485"...
0.0
-1
Compute softmax values for each sets of scores in x. Notice that we sum according to the axis=0. This is important when sending multidim nparrays to softmax
def N93T(WKvO): return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n if type(WKvO) is ...
[ "0.78939164", "0.7694699", "0.7673484", "0.7618763", "0.7618763", "0.7538326", "0.7450976", "0.7365262", "0.7355856", "0.7340165", "0.7334136", "0.7289318", "0.7285667", "0.72852594", "0.728524", "0.7282464", "0.72478986", "0.7227665", "0.7168997", "0.7166357", "0.7163621", ...
0.7207255
18
Get the `MNIST original` training data.
def bPNP(): VEDo.random.seed(1) cZDQ = VEDo.random.permutation(range(60000)) w37D = Aqyh('MNIST original', data_home=EeDH.path.join(O_Oy, 'MNIST_original')) return (w37D.data[:60000, :][cZDQ, :].reshape((60000, 1, 28, 28)).astype('float32'), w37D.target[:60000][cZDQ].reshape((60000, 1)).astype('float32'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jEop(YKHO):\n (cC56, SBxS), (sAoX, Yc8x) = w37D.load_data()\n ndi4 = (28, 28, 1)\n cC56 = oyIN.reshape(cC56, [-1, *ndi4])\n sAoX = oyIN.reshape(sAoX, [-1, *ndi4])\n cC56 = cC56.astype('float32') / 255.0\n sAoX = sAoX.astype('float32') / 255.0\n return (cC56, sAoX)", "def yLtf():\n fro...
[ "0.74527824", "0.7339945", "0.7317533", "0.726642", "0.7241378", "0.71994233", "0.71499044", "0.71308434", "0.7081411", "0.6880138", "0.6839336", "0.6815323", "0.6802386", "0.67786795", "0.6754069", "0.6729404", "0.66886765", "0.66803163", "0.6664703", "0.6663897", "0.6651761...
0.7889099
0
Create a new `dict` by taking a slice of of every array in a `dict`
def ARjm(mUif, m1HZ): R8cc = {} for H5ew, wEf2 in mUif.items(): try: R8cc[H5ew] = wEf2[m1HZ] except (KeyError, TypeError): R8cc[H5ew] = wEf2 return R8cc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uPHR(ezWE, A3OT):\n if isinstance(ezWE, dict):\n U5bT = U8Lr()\n for G1Hx, Ty9i in ezWE.items():\n U5bT[G1Hx] = Ty9i[A3OT]\n return U5bT\n else:\n return ezWE[A3OT]", "def m1HZ(YKHO, pKvL):\n XgkP = {}\n for G1Hx, Ty9i in YKHO.items():\n XgkP[G1Hx] = ...
[ "0.6731007", "0.6726687", "0.6726687", "0.65072906", "0.6236937", "0.60713947", "0.6026348", "0.6010558", "0.5990766", "0.59788835", "0.5976719", "0.5965322", "0.592217", "0.5920361", "0.5919112", "0.58687544", "0.5841219", "0.5821188", "0.5784754", "0.57564944", "0.57233787"...
0.65146196
3
Create a new `dict` by concatenate each array in `in_dicts`
def gc6M(eytm): if not eytm: return {} uno7(eytm) R8cc = {H5ew: None for H5ew in eytm[0].keys()} for H5ew in R8cc.keys(): R8cc[H5ew] = oyIN.concatenate([mUif[H5ew] for mUif in eytm]) return R8cc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VD3O(fgcx: Iterable[Dict]) -> cuzp:\n V_D6 = set(eNCK.from_iterable((Csk6.keys() for Csk6 in fgcx)))\n _jHa = {Jyyj: [] for Jyyj in V_D6}\n for Jyyj, Csk6 in Lx3t(V_D6, fgcx):\n if Jyyj in Csk6:\n if isinstance(Csk6[Jyyj], list):\n _jHa[Jyyj] += Csk6[Jyyj]\n ...
[ "0.67029816", "0.66413486", "0.6634268", "0.6618135", "0.6520243", "0.6441588", "0.6434052", "0.63900906", "0.63815755", "0.6326434", "0.6285445", "0.627346", "0.62512577", "0.6246491", "0.6222986", "0.6215133", "0.6205585", "0.62045", "0.61893046", "0.61760724", "0.61707544"...
0.80146414
0
Check that all the dicts in in_dicts match Returns
def nHpu(eytm): if not eytm: return True RVoq = eytm[0] for mUif in eytm[1:]: if not ZkSN(RVoq, mUif): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uno7(eytm):\n if not eytm:\n return\n BZpy = eytm[0].keys()\n for mUif in eytm[1:]:\n if mUif.keys() != BZpy:\n raise ValueError('Keys to not match: %s != %s' % (mUif.keys(), BZpy))", "def QnbL(YEnM) -> bool:\n return bool(YEnM) and all((isinstance(LihS, dict) for LihS in...
[ "0.75684977", "0.6960937", "0.6878803", "0.6795519", "0.6790909", "0.67136365", "0.6693408", "0.66886216", "0.6637577", "0.6633445", "0.66299945", "0.6621231", "0.6600255", "0.6571131", "0.6553649", "0.65450716", "0.64764786", "0.6462173", "0.64501387", "0.64345634", "0.64267...
0.7871998
0
Returns the full path of most project files, minus the extension. For example, if the spec file of this project is ``/home/ltlmop/examples/test/test.spec`` then this function will return ``/home/ltlmop/examples/test/test``
def cGna(YKHO): return Hy7s.path.join(YKHO.project_root, YKHO.project_basename)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EL0N() -> str:\n return str(GkAb(xAKo).parent.parent)", "def zwOA(YKHO, alsS=None):\n tk5Y = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..', '..'))\n if alsS:\n return Hy7s.path.join(tk5Y, alsS)\n else:\n return tk5Y", "def EL0N():\n return Hy7s.path.dirname(Hy7...
[ "0.72885597", "0.7203038", "0.7163805", "0.70156795", "0.6977829", "0.6966442", "0.6955535", "0.6922942", "0.6906545", "0.69049627", "0.6867984", "0.68594784", "0.6856909", "0.6838445", "0.6838445", "0.6838445", "0.6838445", "0.6824751", "0.67714435", "0.67683995", "0.6768399...
0.651567
37
Retrieve tags associated to the current node
def afYC(YKHO): dJ1p = {'*'} for TZ9E, b32v in YKHO.campaign.network.tags.items(): for GPtr in b32v: for Tuqy, Pe_m in GPtr.items(): if Tuqy == 'match': if Pe_m.match(YKHO.name): dJ1p.add(TZ9E) break ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qwli(YKHO):\n return YKHO.list", "def Qwli(YKHO):\n raise NotImplementedError", "def Qwli(YKHO):\n return YKHO.listafinal", "def dJ1p(YKHO):\n return YKHO._tags", "def Qwli(YKHO):\n if hasattr(YKHO.object, 'get_tags'):\n return YKHO.object.get_tags()\n else:\n raise NotI...
[ "0.74055517", "0.73236644", "0.72496796", "0.7185633", "0.70886797", "0.7027246", "0.7010342", "0.70101625", "0.70101625", "0.6965017", "0.6907378", "0.6883373", "0.6870839", "0.6868287", "0.68436086", "0.6833113", "0.6832441", "0.68106234", "0.68049264", "0.6796583", "0.6769...
0.0
-1
Returns a list of list of channel pairs, as created by serialize dispatch_seq.
def Rj17(ZnYK): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SS7a(YKHO):\n return YKHO._channel_list", "def xMux(YKHO) -> x1iM[cuzp[str, str]]:\n return YKHO._raw_details.get('lineup', [])", "def qtEK(YKHO):\n return YKHO._c_id_to_name.keys()", "def RoUE(YKHO):\n Jv5w = YKHO.sc.api_call('conversations.list', types='public_channel,private_channel')\n ...
[ "0.7250928", "0.6895245", "0.68503433", "0.6812868", "0.68086404", "0.6804373", "0.6803417", "0.67773104", "0.6758881", "0.67582333", "0.67257893", "0.67198014", "0.6691666", "0.6673405", "0.6671657", "0.6635887", "0.6522791", "0.6510736", "0.6486332", "0.6482199", "0.6476787...
0.6518245
17
Get the ARC logger (avoid having multiple entries of the logger).
def fZx2(): return bo34
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bo34():\n return I45O", "def fZx2():\n return S0MI", "def fZx2():\n return vzeF", "def fZx2(YKHO):\n pass", "def bo34():\n return bo34", "def fZx2():\n global LOG\n if na1r is not None:\n return na1r\n from dq2.common.DQLog import DQLog\n return DQLog('dq2.common')",...
[ "0.7503697", "0.7465839", "0.73833454", "0.7364429", "0.73237395", "0.7302693", "0.7295613", "0.7268846", "0.72326803", "0.7165802", "0.7165802", "0.7130246", "0.71222955", "0.7109674", "0.7109283", "0.70769", "0.70561475", "0.70549506", "0.7042723", "0.7026062", "0.70214385"...
0.7621306
0
Save a YAML file (usually an input / restart file, but also conformers file)
def uSnP(pmON: str, hGN5: list or dict) -> None: if not isinstance(pmON, str): raise DQrD(f'path must be a string, got {pmON} which is a {type(pmON)}') eJb6.add_representer(str, _bEI) bo34.debug('Creating a restart file...') hGN5 = eJb6.dump(data=hGN5) if Hy7s.path.dirname(pmON) and (not Hy7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MZB0(VqRE, **V_D6):\n hGN5 = BduI(V_D6)\n with open(VqRE, 'w') as eHNT:\n eHNT.write(hGN5 + '\\n')", "def POvz(pmON: str, nPrm: Dict):\n with open(pmON, 'w') as eHNT:\n eJb6.dump(nPrm, eHNT, default_flow_style=False)", "def POvz(nPrm: dict, pmON: str):\n with open(pmON, 'w') as eH...
[ "0.77570903", "0.77146244", "0.7710812", "0.7693329", "0.764946", "0.7599987", "0.7578383", "0.7491387", "0.74671084", "0.7430944", "0.73986936", "0.73660254", "0.7339081", "0.73037493", "0.7295858", "0.72577894", "0.72452706", "0.721261", "0.71759456", "0.7173976", "0.716918...
0.71523786
21
A helper function for checking whether two iterables are almost equal.
def cnQz(x39A: list or tuple or np.ndarray, deyf: list or tuple or np.ndarray, LL2J: float=1e-05, rU28: float=1e-08) -> bool: if len(x39A) != len(deyf): return False for Wc83, y0_o in zip(x39A, deyf): if isinstance(Wc83, (list, tuple, oyIN.ndarray)) and isinstance(y0_o, (list, tuple, oyIN.ndarra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OFYF(jzdc, Fg_i) -> bool:\n if len(jzdc) != len(Fg_i):\n return False\n return all((WKvO == LVAh for WKvO, LVAh in zip(jzdc, Fg_i)))", "def eHiH(oHE7):\n return len(set(oHE7)) <= 1", "def ac8g(jzdc, Fg_i) -> bool:\n if len(jzdc) != len(Fg_i):\n return False\n return all((WKvO =...
[ "0.8398414", "0.7701345", "0.75493485", "0.7319458", "0.731355", "0.7243876", "0.7218029", "0.71851206", "0.7173463", "0.71650916", "0.7157086", "0.7117639", "0.70356625", "0.7011227", "0.69979894", "0.69371194", "0.6927605", "0.6915087", "0.69121283", "0.6876003", "0.6867378...
0.7744556
1
Check whether a string can be converted to a floating number.
def YhPi(BWXx: str) -> bool: try: float(BWXx) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e5f3(YKHO, vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False", "def e5f3(vIwR):\n try:\n float(vIwR)\n except ValueError:\n return False\n return True", "def e5f3(vIwR):\n try:\n float(vIwR)\n return True\n ex...
[ "0.84736955", "0.8446255", "0.8436116", "0.8367293", "0.83442175", "0.83442175", "0.83287823", "0.8269574", "0.8261934", "0.82434195", "0.82406616", "0.82364076", "0.82241887", "0.8197639", "0.81956536", "0.8183565", "0.8173661", "0.8173661", "0.8173661", "0.8173661", "0.8053...
0.7841558
24
Obtain transition matrices governing transitions from each time point, and associated sample sizes.
def mbc4(TzU1, eY_N, wspz): CM2R = len(wspz) zr9x = oyIN.full((CM2R, CM2R, len(TzU1)), 0) czKK = oyIN.full((CM2R, CM2R, len(TzU1)), 0) q3RB = q9mE.allowed_transitions(wspz) for exwG in range(0, len(q3RB)): nvfM = wspz[q3RB[exwG][0]] ztDH = wspz[q3RB[exwG][1]] OZkM = nvfM + '-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WsLF(YKHO):\n SppC = oyIN.zeros(shape=(YKHO.d, YKHO.n_states))\n jzdc = 0\n for KCHu in range(YKHO.n_states):\n rdlD = oyIN.zeros(YKHO.n_states)\n if KCHu == 0:\n rdlD[0] = 0.4\n rdlD[1] = 0.6\n elif KCHu == YKHO.n_states - 1:\n rdlD[-1] = 0.6\n ...
[ "0.64241475", "0.639628", "0.6271725", "0.6238715", "0.6220109", "0.61792225", "0.61337614", "0.60890627", "0.6036448", "0.6025917", "0.60179794", "0.6008647", "0.5979854", "0.5973385", "0.59657085", "0.59431154", "0.59256464", "0.58930486", "0.5883618", "0.5877987", "0.58380...
0.51526475
83
assert the CSV filename var env is set
def paFm(YKHO): YKHO.assertIn('CSV_FILENAME', Hy7s.environ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tYcn(YKHO):\n mWFP = str(YKHO.s2csv.filename)\n YKHO.assertIn('csv', mWFP)\n YKHO.assertIn('test-management-survey.csv', mWFP)", "def MzRo():\n return 'tests/fixtures/valid_fluffy.csv'", "def o4Wt(OaeV, xqoZ, BWXx):\n if BWXx and (not BWXx.endswith('.csv')):\n raise k8wH.BadParameter(...
[ "0.7089171", "0.69213533", "0.6681181", "0.6651274", "0.66486984", "0.66001415", "0.6570865", "0.64833164", "0.64702284", "0.64664084", "0.645054", "0.64325374", "0.6351868", "0.62332845", "0.62241167", "0.619123", "0.6174192", "0.61677545", "0.612952", "0.61202323", "0.61184...
0.8478147
0
Convert JSON object to string
def brdk(KGvk): return qQXR.dumps(KGvk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gEyL(YEnM):\n return str(YEnM)", "def bBIT(YKHO, TLbt: Union[str, Dict, List]) -> str:\n\n def JqPF(bTKY: Dict) -> cuzp:\n for G1Hx, Ty9i in list(bTKY.items()):\n if G1Hx.startswith('@'):\n del bTKY[G1Hx]\n elif isinstance(Ty9i, dict):\n JqPF(T...
[ "0.7774878", "0.76798457", "0.7501386", "0.7457904", "0.73364604", "0.7308209", "0.72772014", "0.7262859", "0.725623", "0.7203192", "0.7203192", "0.7193653", "0.7181576", "0.7181576", "0.7171498", "0.71690124", "0.71690124", "0.71690124", "0.71690124", "0.71690124", "0.716901...
0.8859553
0
Should Not Have Value In JSON using JSONPath
def xgcH(YKHO, KGvk, RsFk): try: im04 = YKHO.get_value_from_json(KGvk, RsFk, fail_on_empty=True) except AssertionError: pass else: YIoF(f'Match found for parent {RsFk}: {im04}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JsHL(YKHO, Eicj: GraphQLResponseInfo, pmON: str):\n\n def OPAs(BCK_: GraphQLResponseInfo) -> AzJI[bool, str]:\n return (lpP5.search(pmON, BCK_.content) is None, f'path {pmON} exists in the response')\n YKHO.assert_json_path_satisfies(Eicj, OPAs)", "def KmHY(YKHO, KGvk, RsFk):\n try:\n ...
[ "0.7194205", "0.69991165", "0.683177", "0.62187374", "0.62092096", "0.61571527", "0.6137971", "0.60973835", "0.6038577", "0.6035943", "0.60296667", "0.5980965", "0.5971147", "0.5960814", "0.5902837", "0.5887166", "0.5885816", "0.5882751", "0.58691037", "0.5865044", "0.5839453...
0.81085604
0
Loads the FashionMNIST dataset. returns
def UlWi(): TLI7 = Hy7s.path.join('datasets', 'fashion-mnist') P8oC = 'http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/' RRlC = ['train-labels-idx1-ubyte.gz', 'train-images-idx3-ubyte.gz', 't10k-labels-idx1-ubyte.gz', 't10k-images-idx3-ubyte.gz'] ckRy = [] for nUeQ in RRlC: ckRy.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mBMX(ROpF=(-1, 784), pmON='data'):\n return lOC6(ROpF, pmON, name='fashion_mnist', url='http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/')", "def UlWi():\n JBMS, M1Jx = (0.5, 0.5)\n BmLB = Ymkf.Compose([Ymkf.ToTensor(), Ymkf.Normalize(JBMS, M1Jx)])\n EPL3 = gMbG.FashionMNIST(root='./da...
[ "0.7990108", "0.7918849", "0.76380503", "0.75493497", "0.75221497", "0.7512439", "0.75068706", "0.7495191", "0.7448632", "0.74478525", "0.7441829", "0.74311405", "0.741162", "0.74056375", "0.73884416", "0.7340876", "0.73388255", "0.7321594", "0.72495854", "0.72276485", "0.708...
0.7555145
3
Append current lane and target lane to the base observation.
def rNYq(YKHO): SNOM = nGVb.one_hot(YKHO.current_lane, n_classes=YKHO.n_lanes + 1) Y5cI = super().observation yHDr = ht2j.cat([Y5cI, SNOM], dim=0) return yHDr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _nhC(YKHO, KDm0: ILane):\n pass", "def JplF(YKHO, MP7u: ILane):\n pass", "def S9n9(YKHO, haVx: str, JDph: str, J2l3: AbstractLane) -> None:\n if haVx not in YKHO.graph:\n YKHO.graph[haVx] = {}\n if JDph not in YKHO.graph[haVx]:\n YKHO.graph[haVx][JDph] = []\n YKHO.graph[haVx][J...
[ "0.59165436", "0.5797574", "0.5465682", "0.5384885", "0.53661335", "0.5342989", "0.5337034", "0.52897006", "0.5273128", "0.52672863", "0.52515686", "0.5240531", "0.52359873", "0.5232385", "0.522243", "0.52147186", "0.520819", "0.5178542", "0.5161018", "0.5139911", "0.51346326...
0.6113844
0
The radius of curvature of rounded corners.
def r1VO(YKHO): return YKHO._radius
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T0Dp(YKHO):\n B9Au = YKHO.y_eval\n WgYu = YKHO.best_fit_m\n nfXe = (1 + (2 * WgYu[0] * B9Au + WgYu[1]) ** 2) ** 1.5 / oyIN.absolute(2 * WgYu[0])\n YKHO.radius_of_curvature = nfXe\n return", "def r1VO(YKHO):\n return YKHO.v[Q6r4.R]", "def r1VO(YKHO) -> float:\n return YKHO._meta_data.ge...
[ "0.8182644", "0.8139657", "0.78956646", "0.78956646", "0.7874298", "0.7858833", "0.7854458", "0.7854125", "0.7851009", "0.78253853", "0.78175336", "0.78175336", "0.7813263", "0.78130156", "0.78130156", "0.78130156", "0.78130156", "0.7802207", "0.7792884", "0.7722866", "0.7705...
0.78417975
10
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Checks if the table exists and the content.
def rFPB(rgBe, tyNF): xDcj = f'\n SELECT size_bytes FROM `{rgBe}` where table_id = "{tyNF}"; ' pSxt = slhS.job.QueryJobConfig() jQ3Z = slhS.Client().query(xDcj, job_config=pSxt).to_dataframe() if len(jQ3Z['size_bytes']) == 0: return 2 elif int(jQ3Z['size_bytes'][0]) <= 0: retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PJaC(YKHO):\n Ylbp = VoXU('GET', YKHO.taburl, None)\n return True if Ylbp.status_code == 200 else False", "def Lf2s() -> l1oh:\n xU0C = {'categories': 'create_categories_table()', 'budget': 'create_budget_table()', 'expenses': 'create_expenses_table()'}\n for tyNF in xU0C:\n N1p7.execute(\...
[ "0.76196486", "0.71303236", "0.7067711", "0.70593077", "0.7017068", "0.70123065", "0.6938794", "0.6928536", "0.69249815", "0.692419", "0.691862", "0.6902", "0.6898131", "0.68814623", "0.68797106", "0.68669814", "0.6864544", "0.68634325", "0.6850974", "0.6848664", "0.6824962",...
0.668128
32
Mock ArchiveFile.archive_count to return a number big enough to allow deletion.
def Xe2n(): @property def hSFn(YKHO): return 6 with Po4F('alpenhorn.archive.ArchiveFile.archive_count', hSFn): yield
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qXJK(YKHO, rZRz):\n nPrm = YKHO.read()\n if rZRz not in nPrm['archives']:\n YKHO.reload_archives()\n return len(nPrm['archives'][rZRz]['sequence'])", "def CyMz(B_oN, gGq6, aHZ6, ba4M, ii1p, NSQn, pTH1, Xe2n):\n Q6kx = ba4M(name='node', group=aHZ6, root='/node')\n WMUL = list()\n bhDr...
[ "0.6379785", "0.6150611", "0.6138835", "0.6131514", "0.61050755", "0.58515084", "0.58147657", "0.5806817", "0.5778772", "0.5777115", "0.57117534", "0.5651838", "0.5587612", "0.55816835", "0.5562792", "0.55077606", "0.55007565", "0.5442336", "0.54226", "0.54126775", "0.5404501...
0.74087614
0
Sets the metadata of this Profile.
def yIVm(YKHO, yIVm): YKHO._metadata = yIVm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HSI9(YKHO, yIVm):\n YKHO.metadata = yIVm\n return YKHO", "def HSI9(YKHO, yIVm):\n YKHO.metadata = yIVm\n return YKHO", "def yIVm(YKHO, yIVm):\n YKHO._metadata = yIVm", "def HSI9(YKHO, yIVm):\n YKHO._metadata = yIVm\n return YKHO", "def yIVm(YKHO, yIVm: AnyValue):\n YKHO._metadat...
[ "0.7698681", "0.7698681", "0.75840116", "0.7576147", "0.7514213", "0.7390173", "0.72889113", "0.72422796", "0.71235245", "0.70747584", "0.69223547", "0.6911455", "0.68663913", "0.6845863", "0.68402076", "0.68169963", "0.6787789", "0.6757235", "0.66835076", "0.659698", "0.6576...
0.75780445
6
Sets the strategy of this Profile.
def OuMq(YKHO, OuMq): YKHO._strategy = OuMq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o8qH(YKHO, OuMq):\n YKHO.strategy = OuMq", "def o8qH(YKHO, OuMq):\n YKHO.add_prim_attr('strategy', OuMq)\n return YKHO", "def FO9k(YKHO, OuMq):\n YKHO.strategy = OuMq", "def OuMq(YKHO, OuMq: Scrapper) -> None:\n YKHO._strategy = OuMq", "def OuMq(YKHO, BWXx: typing.Union['DeploymentStrate...
[ "0.8594537", "0.84076625", "0.7997472", "0.76407206", "0.65352565", "0.65032315", "0.65032315", "0.6502894", "0.6443225", "0.64344704", "0.6394318", "0.637284", "0.6327178", "0.6126875", "0.6114456", "0.59845066", "0.59771657", "0.59442127", "0.58979714", "0.58897054", "0.587...
0.7993346
3
Sets the resource of this Profile.
def Eorv(YKHO, Eorv): YKHO._resource = Eorv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eorv(YKHO, BWXx: str):\n YKHO._properties['resource'] = BWXx", "def qwD7(Emd4, mWFP, Eorv):\n Emd4._resources[mWFP] = Eorv", "def qwD7(YKHO, mWFP, BWXx=True):\n YKHO.resources[mWFP] = BWXx", "def Veg7(YKHO, Veg7):\n YKHO._src_resource = Veg7", "def Eorv(YKHO, BWXx: typing.Union['TypedLocalO...
[ "0.73857516", "0.70138586", "0.667918", "0.6617449", "0.649224", "0.62148684", "0.62148684", "0.6181311", "0.6161701", "0.60840887", "0.60646594", "0.6034869", "0.595222", "0.595222", "0.595222", "0.595222", "0.595222", "0.5950814", "0.59441036", "0.5911405", "0.5874667", "...
0.7167302
1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393829", "0.83557564", "0.8296152", "0.8133522", "0.81153053", "0.8100911", "0.8100133", "0.8098902", "0.8098902", "0.80937666", "0.80937666", "0.80937666", "0.80937666", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8067774", "0.80598664", "0.805856...
0.0
-1
r"""Get rotation matrix from quaternion
def EUPX(slpS, f2pi=True) -> ht2j.Tensor: slpS = X2bS(slpS) assert len(slpS.shape) == 1 and slpS.shape[0] == 4, 'quaternion must be a 4-length vector.' slpS = vuvg.normalize(slpS, dim=-1) if not f2pi: slpS = slpS[[3, 0, 1, 2]] DWJ0 = Phuy.geometry.get_rotation_matrix_from_quaternion(slpS) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8hI(slpS):\n SppC = oyIN.zeros((3, 3), dtype=oyIN.float32)\n yzQ0, WKvO, LVAh, epBp = slpS\n SppC[0, 0] = yzQ0 ** 2 + WKvO ** 2 - LVAh ** 2 - epBp ** 2\n SppC[1, 0] = 2 * (WKvO * LVAh + yzQ0 * epBp)\n SppC[2, 0] = 2 * (WKvO * epBp - yzQ0 * LVAh)\n SppC[0, 1] = 2 * (WKvO * LVAh - yzQ0 * epBp)...
[ "0.83530277", "0.8350521", "0.81784755", "0.8167626", "0.81441504", "0.8142905", "0.8103359", "0.81005657", "0.80749714", "0.8074154", "0.80318815", "0.8006013", "0.79785234", "0.79771596", "0.7937703", "0.791348", "0.79043573", "0.78865165", "0.7863076", "0.7862671", "0.7860...
0.7457008
33
r"""Get quaternion from rotation matrix
def gpvy(DWJ0, f2pi=True) -> ht2j.Tensor: DWJ0 = X2bS(DWJ0) assert len(DWJ0.shape) == 2 and list(DWJ0.shape) == [3, 3], 'rotation must be a 3x3 matrix' lGE9 = DWJ0[0, 0] + DWJ0[1, 1] + DWJ0[2, 2] n2Q1 = DWJ0[0, 0] - DWJ0[1, 1] - DWJ0[2, 2] SpII = DWJ0[1, 1] - DWJ0[0, 0] - DWJ0[2, 2] WotO = DWJ0[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r43z(SppC):\n vexM = XTiz.zeros(4)\n vexM[0] = 0.5 * XTiz.sqrt(1 + XTiz.trace(SppC))\n if XTiz.allclose(0.0, vexM[0], 1e-15, 1e-08) == False:\n vexM[1] = 1 / (4 * vexM[0]) * (SppC[2, 1] - SppC[1, 2])\n vexM[2] = 1 / (4 * vexM[0]) * (SppC[0, 2] - SppC[2, 0])\n vexM[3] = 1 / (4 * ve...
[ "0.8449467", "0.8007358", "0.7750188", "0.7708871", "0.7690348", "0.76687884", "0.76213", "0.76132953", "0.7610072", "0.7577826", "0.75593555", "0.7558818", "0.7550952", "0.75419265", "0.7527738", "0.74897397", "0.74830693", "0.74586964", "0.74464846", "0.7428444", "0.7412151...
0.76036906
9
Compute bounding boxes from masks.
def p5Lc(ZHfW): zQZR = Tcon.regionprops(ZHfW) if len(zQZR): si3g, o4D3, skBL, ajwV = zQZR[0].bbox cviu = oyIN.array([o4D3, si3g, ajwV, skBL]) return cviu.astype(oyIN.int32) else: return oyIN.array([0, 0, 0, 0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p5Lc(YKHO, ZHfW):\n oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)\n for YRbF in range(ZHfW.shape[-1]):\n r8hN = ZHfW[:, :, YRbF]\n GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]\n mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]\n if GO_b.shape[0]:\n o4D3, ajwV...
[ "0.8053253", "0.79046696", "0.78671235", "0.78134555", "0.78134555", "0.78134555", "0.78134555", "0.78134555", "0.78134555", "0.78134555", "0.78048664", "0.7801408", "0.7797915", "0.77164906", "0.77041256", "0.7686475", "0.7634595", "0.7510227", "0.74642205", "0.7463141", "0....
0.75643206
17
Test retrieve user unauthenticated
def z43T(YKHO): bD7m = gxEw('user-detail', args=[YKHO.user.id]) geh0 = YKHO.client.get(bD7m) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WDMb(YKHO):\n QePW = YKHO.client.get(gxEw('base:users-list'))\n YKHO.assertEqual(QePW.status_code, jGRS.HTTP_401_UNAUTHORIZED)", "def BRQ0(YKHO):\n YKHO.client.logout()\n geh0 = YKHO.client.get(gxEw('dictionary:admin_gloss_list'))\n YKHO.assertFalse(geh0.status_code == 200)", "def UDfU(YKHO)...
[ "0.84739673", "0.83649164", "0.83233273", "0.8245809", "0.81710374", "0.816712", "0.81492496", "0.8114265", "0.80717593", "0.8069672", "0.8031634", "0.79992557", "0.7985417", "0.79790354", "0.79507256", "0.79507256", "0.79507256", "0.79507256", "0.79507256", "0.783584", "0.78...
0.87389284
0
Test update user with invalid data
def hZ7u(YKHO): YKHO.client.force_authenticate(user=YKHO.user) bD7m = gxEw('user-detail', args=[YKHO.user.id]) nPrm = {'email': 'testuser@com', 'first_name': 'John', 'last_name': 'Doe'} geh0 = YKHO.client.put(bD7m, data=nPrm) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ymY4():\n AroK = Nc2H()\n F7Cp = oT4M()\n _hkX = F7Cp.create_user(AroK)\n G9jH.info('Validating STATUS_CODE is OK')\n assert _hkX.status_code == qed_.OK, f'Response is - {_hkX.status_code}'\n B3Hs = Nc2H()\n B3Hs.email = C2Zg().random_integer()\n B3Hs.phone = C2Zg().random_password()\n ...
[ "0.8288361", "0.81310093", "0.81310093", "0.81310093", "0.80697924", "0.7985269", "0.78850794", "0.78617465", "0.77858424", "0.7750922", "0.7687491", "0.7658268", "0.7611288", "0.7611252", "0.75702715", "0.7552864", "0.7536344", "0.7535361", "0.7490417", "0.7445784", "0.74370...
0.84520525
0
Test update user with existing email
def c3yS(YKHO): YKHO.client.force_authenticate(user=YKHO.user) SSsP = mv1M.objects.create_user(email='testuser2@test.com', password='top_secret') bD7m = gxEw('user-detail', args=[YKHO.user.id]) nPrm = {'email': SSsP.email, 'first_name': 'John', 'last_name': 'Doe'} geh0 = YKHO.client.put(bD7m, data=n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vx0g(YKHO):\n eOtH = YKHO.get_user_token()\n with YKHO.client:\n geh0 = YKHO.client.put('/user/update', content_type='application/json', json={'email': 'new_email@gmail.com'}, headers={'x-access-token': eOtH})\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertTrue(nPrm['error'] is...
[ "0.84335154", "0.8325587", "0.8183183", "0.8176457", "0.8154477", "0.8120968", "0.8106733", "0.8106733", "0.8106733", "0.80776453", "0.79644173", "0.7958727", "0.79533523", "0.79213065", "0.79105765", "0.787971", "0.78736186", "0.7838754", "0.7784036", "0.7753039", "0.7713653...
0.87091154
0
Test update user unauthenticated
def TOh2(YKHO): bD7m = gxEw('user-detail', args=[YKHO.user.id]) nPrm = {'email': 'testuser@test.com', 'first_name': 'John', 'last_name': 'Doe'} geh0 = YKHO.client.put(bD7m, data=nPrm) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sxtp(YKHO):\n EltV = mv1M.objects.create(email='user2@test.com', password='secret')\n YKHO.client.force_authenticate(EltV)\n bD7m = gxEw('user-detail', args=[YKHO.user.id])\n nPrm = {'email': 'testuser@test.com', 'first_name': 'John', 'last_name': 'Doe'}\n geh0 = YKHO.client.put(bD7m, data=nPrm)...
[ "0.83261997", "0.80033314", "0.79827017", "0.79827017", "0.79827017", "0.79663056", "0.79412544", "0.7937593", "0.7811925", "0.78046566", "0.77747166", "0.7686098", "0.76732737", "0.76668876", "0.76564306", "0.75935006", "0.75273216", "0.75257915", "0.7514513", "0.7487374", "...
0.85757476
0
Test update user unauthorized
def Sxtp(YKHO): EltV = mv1M.objects.create(email='user2@test.com', password='secret') YKHO.client.force_authenticate(EltV) bD7m = gxEw('user-detail', args=[YKHO.user.id]) nPrm = {'email': 'testuser@test.com', 'first_name': 'John', 'last_name': 'Doe'} geh0 = YKHO.client.put(bD7m, data=nPrm) YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TOh2(YKHO):\n bD7m = gxEw('user-detail', args=[YKHO.user.id])\n nPrm = {'email': 'testuser@test.com', 'first_name': 'John', 'last_name': 'Doe'}\n geh0 = YKHO.client.put(bD7m, data=nPrm)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)", "def Ovmz(YKHO):\n eOtH = YKHO.get_user_t...
[ "0.83363706", "0.8191433", "0.8098455", "0.8098455", "0.8098455", "0.79930604", "0.7941809", "0.7915965", "0.78780925", "0.7864268", "0.7839054", "0.7813647", "0.7796475", "0.7790257", "0.7733998", "0.7678821", "0.76703954", "0.76669604", "0.7641737", "0.75794965", "0.7566951...
0.8493725
0
Gets the description for the service.
def JBZA(YKHO): return YKHO._editor.get_element_value(YKHO._description_elements[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g0_7(YKHO, q6BW):\n q6BW, zVa7 = YKHO._fetch_service(q6BW)\n if 'desc' not in zVa7:\n YKHO._logger.debug('Retrieving the description for %s', zVa7['name'])\n try:\n zVa7['desc'] = zVa7['instance'].desc()\n except Exception:\n zVa7['desc'] = q6BW + ' service'\n ...
[ "0.8279002", "0.7924218", "0.77737874", "0.77107424", "0.7304717", "0.7207248", "0.7138138", "0.7121556", "0.709456", "0.709456", "0.7084648", "0.7084648", "0.70064026", "0.700312", "0.700312", "0.700312", "0.700312", "0.700312", "0.700312", "0.700312", "0.700312", "0.70031...
0.0
-1
Sets a boolean that describes if the service is set to high isolation (true) or low isolation (false).
def qbVq(YKHO, BWXx): YKHO._editor.set_element_value(YKHO._isolation_element, 'HIGH' if BWXx == True else 'LOW')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qbVq(YKHO):\n P5Kk = YKHO._editor.get_element_value(YKHO._isolation_element)\n return True if P5Kk.upper() == 'HIGH' else False", "def hnZi(YKHO):\n YKHO._operating_state = 3", "def sy30(QOe9: bool, zVa7: str) -> bool:\n if zVa7 == UN3S:\n return True\n if zVa7 == Q0pc:\n retur...
[ "0.60686314", "0.56955737", "0.54925907", "0.5448404", "0.54154825", "0.5401834", "0.5401468", "0.5400013", "0.5382774", "0.5363079", "0.5342587", "0.5335368", "0.53257966", "0.53136414", "0.5290136", "0.5270422", "0.52465254", "0.51892364", "0.51523507", "0.51461196", "0.514...
0.65508336
0
Gets the number of instances of this service can run per container (i.e. process). Only applicable when running in low isolation.
def y7q7(YKHO): return int(YKHO._editor.get_element_value(YKHO._instances_per_container_element))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9kr() -> int:\n return len(O0k5.pids())", "def D4CR():\n return len(lbzt())", "def qvGZ(YKHO) -> int:\n return YKHO._call_java('numInstances')", "def qvGZ(YKHO) -> int:\n return YKHO._call_java('numInstances')", "def JuY1(yqYz):\n SkJh = 0\n for zGKt in yqYz:\n if zGKt['runnin...
[ "0.7561984", "0.75530565", "0.74990684", "0.74990684", "0.737265", "0.72567177", "0.7133635", "0.696628", "0.6959931", "0.69270253", "0.69250345", "0.69250345", "0.69250345", "0.69250345", "0.69250345", "0.69250345", "0.69054717", "0.69054717", "0.6854506", "0.683706", "0.681...
0.69162744
16
Gets the maximum scale for this service.
def qt9D(YKHO): return float(YKHO._editor.get_element_value(YKHO._max_scale_element))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JI2L(YKHO):\n return YKHO.channel.QueryInfoByName('maxscale')", "def RS7X(YKHO):\n if YKHO._enabled:\n return YKHO._init_scale if YKHO._scale is None else YKHO._get_scale_async().item()\n else:\n return 1.0", "def NXpY(YKHO) -> float:\n return YKHO._scale", "def NXpY(YKHO) -> fl...
[ "0.8686633", "0.7386606", "0.7383886", "0.7374741", "0.7260632", "0.7260632", "0.72467804", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.7201218", "0.71994334", "0.71994334", "0.7169763", "0.7...
0.83895344
1
Gets the maximum scale for this service.
def MZZH(YKHO): return float(YKHO._editor.get_element_value(YKHO._min_scale_element))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JI2L(YKHO):\n return YKHO.channel.QueryInfoByName('maxscale')", "def qt9D(YKHO):\n return float(YKHO._editor.get_element_value(YKHO._max_scale_element))", "def RS7X(YKHO):\n if YKHO._enabled:\n return YKHO._init_scale if YKHO._scale is None else YKHO._get_scale_async().item()\n else:\n ...
[ "0.8686633", "0.83895344", "0.7386606", "0.7383886", "0.7374741", "0.7260632", "0.7260632", "0.72467804", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.72268593", "0.7201218", "0.71994334", "0.71994334", "0....
0.0
-1
Gets the name of the service.
def mWFP(YKHO): dDkX = YKHO._name_elements return YKHO._editor.get_element_value(dDkX[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._service_name", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, ...
[ "0.9006345", "0.8965423", "0.8965423", "0.8965423", "0.8965423", "0.88238055", "0.88238055", "0.88238055", "0.88238055", "0.86832047", "0.86832047", "0.8448302", "0.8448302", "0.83649933", "0.8361444", "0.8361444", "0.8361444", "0.8361444", "0.83037436", "0.819796", "0.819796...
0.0
-1
Gets a list of tags for the service.
def dJ1p(YKHO): return [YKHO._editor.get_element_value(LihS) for LihS in YKHO._tags_element]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y5bi(YKHO):\n bo34.info('List tags')\n return JKCy.Tag.list(YKHO).result()", "def list(YKHO):\n Vlb9 = {}\n return YKHO.master.call('tags/list', Vlb9)", "def Qwli(YKHO):\n return YKHO.list", "def Qwli(YKHO):\n NArs = YKHO._get_params()\n A97Q = YKHO._request(YKHO.ws_prefix + '.getTag...
[ "0.8079242", "0.7760144", "0.7743407", "0.76490074", "0.75223017", "0.7487353", "0.7487353", "0.7471713", "0.741552", "0.73456186", "0.73433924", "0.7326851", "0.73114896", "0.7306564", "0.7291471", "0.7283631", "0.724418", "0.7198124", "0.7198124", "0.7197572", "0.7196941", ...
0.0
-1
Gets a list of tags for the service.
def dJ1p(YKHO, hkxX): M3Ew = [YKHO._editor.create_element('String', BWXx) for BWXx in hkxX] YKHO._editor.set_element_value(YKHO._tags_element, M3Ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y5bi(YKHO):\n bo34.info('List tags')\n return JKCy.Tag.list(YKHO).result()", "def list(YKHO):\n Vlb9 = {}\n return YKHO.master.call('tags/list', Vlb9)", "def Qwli(YKHO):\n return YKHO.list", "def Qwli(YKHO):\n NArs = YKHO._get_params()\n A97Q = YKHO._request(YKHO.ws_prefix + '.getTag...
[ "0.8079242", "0.7760144", "0.7743407", "0.76490074", "0.75223017", "0.7487353", "0.7487353", "0.7471713", "0.741552", "0.73456186", "0.73433924", "0.7326851", "0.73114896", "0.7306564", "0.7291471", "0.7283631", "0.724418", "0.7198124", "0.7198124", "0.7197572", "0.7196941", ...
0.0
-1
Gets the value of the title attribute for the service.
def leAC(YKHO): return YKHO._editor.get_element_value(YKHO._editor.get_first_element_by_tag('Title', YKHO._item_info_element))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Upwb(YKHO):\n return YKHO.get_string('getTitle', [])", "def Upwb(YKHO):\n return YKHO.get_string('getTitle', [])", "def Upwb(YKHO):\n return YKHO._title", "def Upwb(YKHO):\n return YKHO._title", "def XIus(YKHO, leAC=''):\n return YKHO.title", "def Upwb(YKHO):\n return YKHO._title", ...
[ "0.81560916", "0.81560916", "0.80844146", "0.80844146", "0.80648094", "0.8060598", "0.8060598", "0.8060598", "0.80387324", "0.8025492", "0.80170155", "0.80029815", "0.8002231", "0.798567", "0.798567", "0.798567", "0.798567", "0.798567", "0.798567", "0.798567", "0.798567", "...
0.0
-1
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(...
[ "0.8317406", "0.8285652", "0.82828414", "0.8281149", "0.82362676", "0.82337403", "0.822514", "0.82245225", "0.82118344", "0.81912935", "0.81870127", "0.818126", "0.8180909", "0.8179992", "0.81788236", "0.81788236", "0.8178704", "0.81778836", "0.8177197", "0.81756", "0.8173057...
0.0
-1
Compute the average distance between neighboring vertices of the given mesh.
def J5Ad(rR8k): iXlf = oyIN.array(rR8k.vertices) y_PJ = oyIN.array(rR8k.faces) def pImw(Ty9i, UzVt, JJ7q): Csk6 = oyIN.sqrt(oyIN.sum((Ty9i[UzVt, :] - Ty9i[JJ7q, :]) ** 2, axis=1)) return oyIN.mean(Csk6) pKiF = pImw(iXlf, y_PJ[:, 0], y_PJ[:, 1]) AjzU = pImw(iXlf, y_PJ[:, 0], y_PJ[:, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pzTF(YKHO, T3TX):\n wjRY = 0\n for o_i3 in T3TX:\n for fQ14 in T3TX:\n wjRY += YKHO.euclid_dist(o_i3, fQ14)\n return wjRY / len(T3TX) ** 2", "def Uj1F(eQUr):\n vo6s = oyIN.sign(eQUr) * oyIN.abs(eQUr) ** (1 / 2)\n mLTO = oyIN.sign(eQUr) * oyIN.abs(eQUr) ** (1 / 3)\n E3zE = ...
[ "0.6816031", "0.6190962", "0.6169378", "0.61574996", "0.61539406", "0.6098578", "0.60538775", "0.5950435", "0.58908826", "0.58659005", "0.58274716", "0.5798559", "0.5765063", "0.57602894", "0.56858885", "0.5672978", "0.56578326", "0.56342864", "0.56022996", "0.55946493", "0.5...
0.79271585
0
Applies a random shift in x and y
def m2VA(YKHO, LNo8): UShr = oyIN.random.uniform(-YKHO.shift_range[0], YKHO.shift_range[0]) Yrvv = oyIN.random.uniform(-YKHO.shift_range[1], YKHO.shift_range[1]) sDby = oyIN.array([[1, 0, UShr], [0, 1, Yrvv], [0, 0, 1]]) cFTJ = sDby LNo8 = YKHO.__apply_transform(LNo8, cFTJ) return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DkWr(YKHO):\n \"\"\"\n shift cluster randomly within bounds of im\n \"\"\"\n Mkmy = YKHO.std\n x1fj = YKHO.mid_pixel\n RA_F = YKHO.im_size - YKHO.mid_pixel - Mkmy - 10\n WKvO = oyIN.random.randint(low=-1 * RA_F, high=RA_F, size=1)[0]\n LVAh = oyIN.random.randint(low=-1 * RA_F, h...
[ "0.71676326", "0.70440745", "0.70405793", "0.6978476", "0.68174887", "0.6779176", "0.6585018", "0.65281916", "0.6527331", "0.6506132", "0.64680743", "0.64660007", "0.6429297", "0.63872045", "0.62650234", "0.6214594", "0.62136155", "0.6194816", "0.6178734", "0.6168081", "0.616...
0.7156751
1
Flip the input x horizontally with 100% probability.
def zDnU(YKHO, LNo8): LNo8 = oyIN.fliplr(LNo8) return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fh2j(WKvO):\n return oyIN.sign(oyIN.random.rand(1) - 0.5) * WKvO", "def Nyya(WKvO):\n if oyIN.random.rand(1)[0] > 0.5:\n return oyIN.fliplr(WKvO)\n return WKvO", "def IM5U(WKvO):\n uPJy = [(slice(None, None, None), slice(None, None, tuKI.choice([-1, None])), slice(None, None, None)) for ...
[ "0.71800315", "0.7148985", "0.6862581", "0.6845895", "0.6788005", "0.6741034", "0.6717451", "0.6657975", "0.6639103", "0.65289575", "0.65074134", "0.64528906", "0.6441251", "0.6371063", "0.63696593", "0.6354649", "0.6292112", "0.6274201", "0.6198894", "0.61734647", "0.6033523...
0.5735023
43
Applies a random augmentation to pairs of images
def sPhQ(YKHO, Yw_3): xA5J = Yw_3[0].shape[0] xO_2 = oyIN.random.random(size=(xA5J * 2, 4)) for ebxF in range(xA5J): kXk9 = Yw_3[0][ebxF, :, :, :] QT5j = Yw_3[1][ebxF, :, :, :] if xO_2[ebxF * 2, 0] > 0.5: kXk9 = YKHO.__perform_random_contrast_stretching(kXk9) if x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vlc3(VXjJ, ZHfW):\n for pChn in EclH:\n if not pChn['common']:\n VXjJ = pChn['seq'].augment_images(VXjJ)\n continue\n for YRbF in range(len(VXjJ)):\n if oyIN.random.rand() > 0.5:\n VXjJ[YRbF] = pChn['seq'].augment_image(VXjJ[YRbF])\n ...
[ "0.791596", "0.7892367", "0.76030713", "0.7428992", "0.7360467", "0.7164218", "0.70879686", "0.70575696", "0.6969202", "0.6968368", "0.69476146", "0.69023967", "0.68688273", "0.6837239", "0.683687", "0.68321013", "0.6814178", "0.6813081", "0.6804623", "0.66793686", "0.6655952...
0.6927683
11
Pop out from the pqueue the first edge whose end node is not scanned. Return a tuple of Nones if no more unscanned edges found.
def _FsT(HONs, qp3n): assert HONs while True: lMFW, bGrB, D70y = _eVy.heappop(HONs) if not HONs or D70y.end_node not in qp3n: break if D70y.end_node in qp3n: assert not HONs return (None, None) return (lMFW, D70y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def urDg(YKHO):\n DUlw = oyIN.argmax(YKHO.weight)\n i4Va = YKHO.node_alpha[DUlw]\n rUTj = YKHO.node_beta[DUlw]\n upAO = YKHO.weight[DUlw]\n yk4i = YKHO.sum_diff[DUlw] / float(upAO)\n if upAO < 0:\n return (True, None)\n return (False, (i4Va, rUTj, upAO, yk4i, DUlw))", "def BEuN(YKHO):...
[ "0.6799465", "0.67796797", "0.67347956", "0.67140365", "0.6645915", "0.6608385", "0.6575784", "0.6558048", "0.6520673", "0.6510135", "0.64902425", "0.64902425", "0.64902425", "0.6458621", "0.6379762", "0.63728046", "0.63728046", "0.6371106", "0.6367012", "0.6361846", "0.63477...
0.8361546
0
Return a variable from a json file.
def ZDJ7(gIsw): eHNT = open(gIsw, 'r+') ERVO = eHNT.read() AgdR = FyMh.decode(ERVO) eHNT.close() return AgdR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fgV9(Ux0P):\n Ux0P = 'live_tweets/' + Ux0P\n print(Ux0P)\n with open(Ux0P, encoding='utf-8') as KAfx:\n nPrm = qQXR.load(KAfx)\n return nPrm", "def ku8p(yiHj):\n with open(yiHj, 'r') as apum:\n nPrm = qQXR.load(apum)\n return nPrm", "def THKy(oCFN: str):\n return qQXR...
[ "0.7473372", "0.74242544", "0.7254515", "0.72462356", "0.71737564", "0.7148988", "0.7110342", "0.70450944", "0.7035223", "0.7029363", "0.6989528", "0.69769096", "0.69698083", "0.69658285", "0.6954004", "0.6945751", "0.69391406", "0.6938631", "0.6934293", "0.6923187", "0.69176...
0.71848804
4
Push element x to the back of queue.
def _jXH(YKHO, WKvO): Etfb = [] for bGrB in Ni9Y(len(YKHO.stack)): Etfb.append(YKHO.stack.pop()) Etfb.append(WKvO) for bGrB in Ni9Y(len(Etfb)): YKHO.stack.append(Etfb.pop())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()", "def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)...
[ "0.86267436", "0.84755784", "0.8412219", "0.8278471", "0.8258072", "0.8200215", "0.8192353", "0.81426674", "0.81426674", "0.81026745", "0.8098478", "0.8092744", "0.8050653", "0.8050653", "0.80350053", "0.80320656", "0.7992449", "0.79570156", "0.79471266", "0.79430455", "0.789...
0.75086904
43
Removes the element from in front of queue and returns that element.
def BEuN(YKHO): return YKHO.stack.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()", "def BEuN(YKHO):\n if len(...
[ "0.85555553", "0.8329695", "0.81405824", "0.80353034", "0.791703", "0.78865194", "0.7882125", "0.7802728", "0.77982587", "0.7746587", "0.7715509", "0.77124494", "0.7696993", "0.76691186", "0.76638514", "0.7662351", "0.76441866", "0.7642656", "0.76400787", "0.7635912", "0.7620...
0.0
-1
Get the front element.
def T7C_(YKHO): return YKHO.stack[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.frontelem.elem", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]", "def TA6u(YKHO):\n return YKHO.storage[0]", "def VnzS(YKHO):\n return YKHO.head", "def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]", "def qnv...
[ "0.87835056", "0.83788836", "0.82574433", "0.80897844", "0.8012526", "0.7981897", "0.786668", "0.783555", "0.7815892", "0.77942365", "0.7735508", "0.769147", "0.76801795", "0.76465446", "0.7630563", "0.75877416", "0.7572392", "0.75053453", "0.74844474", "0.74813557", "0.74660...
0.0
-1
Push element x to the back of queue.
def _jXH(YKHO, WKvO): YKHO.inputStack.append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()", "def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)...
[ "0.8627964", "0.847768", "0.8414127", "0.827978", "0.8259876", "0.82024014", "0.81944746", "0.81445456", "0.81445456", "0.81041193", "0.81004506", "0.80947775", "0.805236", "0.805236", "0.8037114", "0.8033887", "0.79936236", "0.79584146", "0.7948628", "0.7944436", "0.7899758"...
0.6917803
91
Removes the element from in front of queue and returns that element.
def BEuN(YKHO): YKHO.peek() return YKHO.outputStack.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()", "def BEuN(YKHO):\n if len(...
[ "0.85555553", "0.8329695", "0.81405824", "0.80353034", "0.791703", "0.78865194", "0.7882125", "0.7802728", "0.77982587", "0.7746587", "0.7715509", "0.77124494", "0.7696993", "0.76691186", "0.76638514", "0.7662351", "0.76441866", "0.7642656", "0.76400787", "0.7635912", "0.7620...
0.0
-1
Get the front element.
def T7C_(YKHO): if not YKHO.outputStack: for bGrB in Ni9Y(len(YKHO.inputStack)): YKHO.outputStack.append(YKHO.inputStack.pop()) return YKHO.outputStack[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.frontelem.elem", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]", "def TA6u(YKHO):\n return YKHO.storage[0]", "def VnzS(YKHO):\n return YKHO.head", "def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]", "def qnv...
[ "0.87835056", "0.83788836", "0.82574433", "0.80897844", "0.8012526", "0.7981897", "0.786668", "0.783555", "0.7815892", "0.77942365", "0.7735508", "0.769147", "0.76801795", "0.76465446", "0.7630563", "0.75877416", "0.7572392", "0.75053453", "0.74844474", "0.74813557", "0.74660...
0.0
-1
Get updated values from 2 dict of values
def wTFP(We9c, MzYB): assert We9c.keys() == MzYB.keys() return dict([(G1Hx, [We9c[G1Hx], MzYB[G1Hx]]) for G1Hx in We9c.keys() if We9c[G1Hx] != MzYB[G1Hx]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yQxF(YKHO, WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(YKHO, WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(YKHO, WKvO, LVAh):\n ...
[ "0.7055653", "0.70318884", "0.70231616", "0.6974272", "0.68538654", "0.6846179", "0.68459886", "0.6794018", "0.67819864", "0.6757001", "0.6746477", "0.6746477", "0.6746477", "0.6746477", "0.6746477", "0.6746477", "0.6746477", "0.6746477", "0.6746477", "0.6746477", "0.6746477"...
0.71171117
0
preprocess 210x160x3 uint8 frame into 6400 (80x80) 1D float vector
def biH0(pdhd): pdhd = pdhd[35:195] pdhd = pdhd[::2, ::2, 0] pdhd[pdhd == 144] = 0 pdhd[pdhd == 109] = 0 pdhd[pdhd != 0] = 1 return pdhd.astype(oyIN.float).ravel()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biH0(f4IJ: np.ndarray) -> oyIN.ndarray:\n f4IJ = f4IJ[35:195]\n f4IJ = f4IJ[::2, ::2, 0]\n f4IJ[f4IJ == 144] = 0\n f4IJ[f4IJ == 109] = 0\n f4IJ[f4IJ != 0] = 1\n return f4IJ.astype(oyIN.float).ravel()", "def fjyB(WKvO):\n WKvO /= 128.0\n WKvO -= 1.0\n return WKvO.astype(oyIN.float32...
[ "0.6796112", "0.64553136", "0.63370645", "0.63370645", "0.6143101", "0.61264044", "0.61264044", "0.6106985", "0.6099454", "0.60831237", "0.6078293", "0.6061128", "0.6034814", "0.5994928", "0.5965961", "0.59482616", "0.59068805", "0.590544", "0.5899456", "0.5889508", "0.588906...
0.5618777
56
take 1D float array of rewards and compute discounted reward
def AC1_(Mkmy): g2lU = oyIN.zeros_like(Mkmy) S8qo = 0 for a1PO in reversed(range(0, Mkmy.size)): if Mkmy[a1PO] != 0: S8qo = 0 S8qo = S8qo * KMvS + Mkmy[a1PO] g2lU[a1PO] = S8qo return g2lU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AC1_(cAvO):\n g2lU = oyIN.zeros_like(cAvO)\n S8qo = 0\n for d6pt in reversed(range(cAvO.size)):\n S8qo = S8qo * BR4e + cAvO[d6pt]\n g2lU[d6pt] = S8qo\n return g2lU", "def AC1_(ezWE):\n bnZy = oyIN.zeros_like(ezWE)\n vOGg = 0\n for YRbF in reversed(range(ezWE.size)):\n ...
[ "0.8228387", "0.8101504", "0.794589", "0.79116005", "0.78897405", "0.78536695", "0.7846898", "0.7795935", "0.77391535", "0.77332956", "0.7728408", "0.7695219", "0.7656278", "0.75764155", "0.75764155", "0.7554488", "0.7541471", "0.75083315", "0.7498441", "0.74695385", "0.74671...
0.7427869
26
test irrugular tick price >>> test_irrugular_tick(0.011) False >>> test_irrugular_tick(0.0112) True >>> test_irrugular_tick(0.25) False >>> test_irrugular_tick(0.255) False >>> test_irrugular_tick(0.2525) False >>> test_irrugular_tick(0.2526) True
def zM9X(hI0L): if not eaIe(hI0L) and (not mLDz(hI0L)): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eaIe(hI0L):\n r5v8 = xrRg(hI0L)\n return abs(hI0L / r5v8 - int(round(hI0L / r5v8))) < 1e-05", "def mLDz(hI0L):\n if eaIe(hI0L):\n return False\n r5v8 = tATR(hI0L)\n return abs(hI0L / r5v8 - int(round(hI0L / r5v8))) < 1e-05", "def gXPG(YKHO):\n Aofo = r5v8.TickSimulationConstants(3,...
[ "0.77117556", "0.6715887", "0.6103053", "0.6050173", "0.5915677", "0.58807564", "0.58032465", "0.58032465", "0.5729414", "0.5716935", "0.571539", "0.56359714", "0.56014526", "0.5574135", "0.5564789", "0.5549529", "0.5533727", "0.5526396", "0.550873", "0.5501047", "0.5489827",...
0.8506058
0
Decay learning rate by a factor of 0.1 every lr_decay_epoch epochs.
def eDsF(K0do, qtWj, DJmW=0.001, jnHZ=7): tspZ = DJmW * 0.1 ** (qtWj // jnHZ) if qtWj % jnHZ == 0: print('LR is set to {}'.format(tspZ)) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ return K0do
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwoX(qtWj, b0Ix):\n return b0Ix / 1.1", "def PjIb(YKHO):\n if YKHO.decay:\n YKHO.lr = YKHO.decay * YKHO.lr", "def PjIb(qtWj):\n assert Nlk2.nn_solver in ('sgd', 'momentum', 'adam')\n if qtWj >= Nlk2.lr_decay_after_epoch:\n gxDU = Nlk2.lr_decay_after_epoch / Nlk2.floatX(qtWj) * Nlk...
[ "0.8291664", "0.8266521", "0.8234404", "0.82235026", "0.80433357", "0.78540355", "0.780998", "0.7805587", "0.7780508", "0.7773197", "0.7765782", "0.7732937", "0.7708644", "0.76925606", "0.76925606", "0.76925606", "0.7642324", "0.7628484", "0.76168543", "0.7587379", "0.7557118...
0.0
-1