query
stringlengths
9
9.05k
document
stringlengths
10
222k
metadata
dict
negatives
listlengths
30
30
negative_scores
listlengths
30
30
document_score
stringlengths
4
10
document_rank
stringclasses
2 values
Wait for a MiFare card to be available and return its UID when found. Will wait up to timeout_sec seconds and return None if no card is found, otherwise a bytearray with the UID of the found card is returned.
def read_passive_target(self, card_baud=PN532_MIFARE_ISO14443A, timeout_sec=1): # Send passive read command for 1 card. Expect at most a 7 byte UUID. response = self.call_function(PN532_COMMAND_INLISTPASSIVETARGET, params=[0x01, card_baud], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def waitForCard(self):\n try:\n cardService = self.cardrequest.waitforcard()\n self.timer.stop()\n\n cardService.connection.connect()\n\n self.cardUid = self.getUID(cardService)\n self.ATR = self.getATR(cardService)\n\n account = self.action....
[ "0.62463236", "0.6032987", "0.58942306", "0.5577885", "0.5545059", "0.53622025", "0.5340399", "0.52729225", "0.52715975", "0.5253832", "0.5179526", "0.5144436", "0.5121541", "0.5097975", "0.50842637", "0.5078678", "0.5072297", "0.5067856", "0.50263375", "0.49729967", "0.49608...
0.6123983
1
Authenticate specified block number for a MiFare classic card. Uid should be a byte array with the UID of the card, block number should be the block to authenticate, key number should be the key type (like MIFARE_CMD_AUTH_A or MIFARE_CMD_AUTH_B), and key should be a byte array with the key data. Returns True if the blo...
def mifare_classic_authenticate_block(self, uid, block_number, key_number, key): # Build parameters for InDataExchange command to authenticate MiFare card. uidlen = len(uid) keylen = len(key) params = bytearray(3+uidlen+keylen) params[0] = 0x01 # Max card numbers params[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _authenticate(self, block, uid, key = \"\\xff\\xff\\xff\\xff\\xff\\xff\", use_b_key = False):\n if nfc.nfc_device_set_property_bool(self.__device, nfc.NP_EASY_FRAMING, True) < 0:\n raise Exception(\"Error setting Easy Framing property\")\n abttx = (ctypes.c_uint8 * 12)()\n abttx...
[ "0.6981285", "0.6474285", "0.5887836", "0.56798244", "0.55281013", "0.5323026", "0.513906", "0.49946004", "0.47671604", "0.4749905", "0.46871525", "0.4663608", "0.4657547", "0.4649148", "0.45941955", "0.45273697", "0.4526289", "0.4523787", "0.44979268", "0.44730172", "0.44645...
0.84857506
0
Read a block of data from the card. Block number should be the block to read. If the block is successfully read a bytearray of length 16 with data starting at the specified block will be returned. If the block is not read then None will be returned.
def mifare_classic_read_block(self, block_number): # Send InDataExchange request to read block of MiFare data. response = self.call_function(PN532_COMMAND_INDATAEXCHANGE, params=[0x01, MIFARE_CMD_READ, block_number & 0xFF], resp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def read_block(self, block_num):\n data = self.get_block(block_num)\n if not data:\n return None\n block = self.apfs.Block(\n KaitaiStream(BytesIO(data)), self.apfs, self.apfs)\n return block", "def _read_block(self, block):\n if nfc.nfc_device_set_propert...
[ "0.7678251", "0.6894051", "0.6490072", "0.6132873", "0.61017615", "0.6095849", "0.58794993", "0.5807787", "0.58048725", "0.5784632", "0.57640815", "0.5751629", "0.5729077", "0.5717017", "0.565664", "0.5618712", "0.54798514", "0.5474873", "0.54609674", "0.5443317", "0.5434078"...
0.75587887
1
Write a block of data to the card. Block number should be the block to write and data should be a byte array of length 16 with the data to write. If the data is successfully written then True is returned, otherwise False is returned.
def mifare_classic_write_block(self, block_number, data): assert data is not None and len(data) == 16, 'Data must be an array of 16 bytes!' # Build parameters for InDataExchange command to do MiFare classic write. params = bytearray(19) params[0] = 0x01 # Max card numbers params...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __write_block(self, block, data):\n if nfc.nfc_device_set_property_bool(self.__device, nfc.NP_EASY_FRAMING, True) < 0:\n raise Exception(\"Error setting Easy Framing property\")\n if len(data) > 16:\n raise ValueError(\"Data value to be written cannot be more than 16 charact...
[ "0.6411925", "0.6160572", "0.60935676", "0.5896025", "0.5801763", "0.5746129", "0.5735304", "0.5688695", "0.5621799", "0.5563178", "0.5504564", "0.5497006", "0.54746", "0.5335436", "0.5323116", "0.5260121", "0.524276", "0.51936084", "0.51689655", "0.5155919", "0.5153973", "...
0.750902
0
Calculates and returns accidents counts from data for specific year
def get_counts_for_year(data, year): accidents_counts = list(map(list, zip(*list((filter(lambda x: x[0] == year, data))))))[2] return accidents_counts
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_physician_counts_year_lastyear(physician):\n try:\n today = datetime.today()\n day_of_year = today.timetuple().tm_yday\n last_year = today.year - 1\n start_date = date(last_year, 1, 1)\n end_date = start_date + timedelta(day_of_year - 2)\n\n all_referls = Referr...
[ "0.63774574", "0.63208497", "0.6308322", "0.62176275", "0.6169353", "0.6049569", "0.6044647", "0.60388345", "0.60388345", "0.5917705", "0.5872267", "0.5840972", "0.5834059", "0.5819307", "0.57939315", "0.5789127", "0.5717608", "0.56385005", "0.5632541", "0.5622453", "0.562184...
0.82716763
0
Makes and returns dict of years, regions and counts of accidents in data
def parse_counts(data): results = {} region_year = np.stack([data[0], data[4].astype('datetime64[Y]').astype(int) + 1970], axis=0) region_years, counts = np.unique(region_year, return_counts=True, axis=1) region_years_counts = list(zip(region_years[1], region_years[0], counts)) results['y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_counts_for_year(data, year):\r\n \r\n accidents_counts = list(map(list, zip(*list((filter(lambda x: x[0] == year, data))))))[2]\r\n return accidents_counts", "def make_project_count_dict(df):\n year_lists = []\n null_date_info_projects = 0\n for i in range(len(df)):\n ...
[ "0.693727", "0.64374924", "0.635889", "0.6100228", "0.6077147", "0.6069897", "0.60208815", "0.597632", "0.5968418", "0.5961757", "0.5893076", "0.58736545", "0.5742016", "0.56639445", "0.5614337", "0.5601276", "0.55821264", "0.55799425", "0.5579411", "0.5557755", "0.55569965",...
0.76852596
0
Plots a basic statistics from data_source about how much accidents specific regions in some period of time.
def plot_stat(data_source, fig_location = None, show_figure = False): accidents_counts = parse_counts(data_source[1]) years = list(accidents_counts['years']) fig, axes = plt.subplots(ncols=1, nrows=len(years), sharey=True, constrained_layout=True, figsize=(7, 13)) fig.suptitle("Počet nehôd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def visualizations():\r\n raise NotImplementedError\r\n # df = pandas.read_csv('accidents_by_hour.csv', index_col=0, header=0)\r\n # plt.plot(0, 0, data=df)\r\n # plt.show()\r", "def continent_data_le(data):\n data_1997 = data[data.year == 1997]\n europe_1997 = data_1997[data_1997.continent == ...
[ "0.6411126", "0.5754953", "0.5680762", "0.56270784", "0.56213826", "0.55109555", "0.5507886", "0.5480753", "0.54531354", "0.5368442", "0.53625417", "0.5360403", "0.5340164", "0.53197074", "0.53190684", "0.5310325", "0.53083396", "0.52906734", "0.5278583", "0.527714", "0.52672...
0.65011793
0
Load the Scotvote data and returns a Dataset instance. Returns
def load(): filepath = dirname(abspath(__file__)) data = recfromtxt(filepath + '/scotvote.csv', delimiter=",", names=True, dtype=float, usecols=(1,2,3,4,5,6,7,8)) names = list(data.dtype.names) endog = array(data[names[0]], dtype=float) endog_name = names[0] exog = column_stack(data[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_dataset(file_path):\n return Dataset.load(file_path)", "def _read_dataset(self, dataset_path):\n dataset = pd.read_pickle(dataset_path)\n return dataset", "def load(train_dir=train_dir, test_dir=test_dir):\n\n # Path for the cache-file.\n cache_path = os.path.abspath(\"signature...
[ "0.6553038", "0.65217006", "0.62202615", "0.6213669", "0.6198153", "0.61555433", "0.60953766", "0.6092552", "0.60717404", "0.6058518", "0.6050462", "0.60382", "0.6022558", "0.60219085", "0.6015641", "0.60102904", "0.5962156", "0.59610623", "0.59482116", "0.5927299", "0.592011...
0.7297298
0
Compute the NCE scores for predicting r_src>r_trg.
def forward(self, r_src, r_tgt, pos_matrix, neg_matrix): # compute src->trg raw scores for batch # (n_batch, n_keys) raw_scores = torch.mm(r_src, r_tgt.transpose(0, 1)).float() raw_scores /= self.temperature ''' pos_scores includes scores for all the positive samples ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compute(self) -> Tensor:\n\n if self.samples:\n return self.average_precisions.float() / self.total\n else:\n # pred_image_indices = torch.cat(self.pred_image_indices, dim=0)\n pred_probs = torch.cat(self.pred_probs, dim=0)\n pred_labels = torch.cat(sel...
[ "0.6138721", "0.59510255", "0.5778195", "0.5754427", "0.57248545", "0.57071966", "0.5706541", "0.57054514", "0.56885904", "0.5685436", "0.5664184", "0.5654811", "0.5627929", "0.56269944", "0.56239164", "0.56218827", "0.5617952", "0.5617167", "0.5611026", "0.5594154", "0.55900...
0.65781194
0
Uses model to predict the sentiment of a sentence, then uses Integrated Gradients to compute attributions
def interpret_sentence(self, model, sentence, tokenizer, min_len = 32): model = WrapperModel(model) lig = LayerIntegratedGradients(model, model.model.roberta.embeddings) PAD_IND = tokenizer.pad_token_id token_reference = TokenReferenceBase(reference_token_idx=PAD_IND) indexed = t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sentiment_analysis(self):\n train_pos = pd.read_csv(\"data/train_Arabic_tweets_positive_20190413.tsv\", sep='\\t', names=[\"label\", \"tweet\"])\n train_neg = pd.read_csv(\"data/train_Arabic_tweets_negative_20190413.tsv\", sep='\\t', names=[\"label\", \"tweet\"])\n train = pd.concat([train...
[ "0.64977103", "0.6496122", "0.6404855", "0.6370389", "0.62936604", "0.6291925", "0.62337244", "0.61912674", "0.6148702", "0.61286753", "0.6095504", "0.6091648", "0.60875124", "0.6079303", "0.5982429", "0.5971649", "0.593188", "0.5904768", "0.59028155", "0.5873035", "0.5849244...
0.7086589
0
Return list of class/instance special names. Compute the list of special names based on the list of class attributes that are a DynamicProperty. Check also for class variables with special name and copy them at instance level Internal method, not intended to be accessed at user level.
def _setup_special_names(self): special_names = [] dynamic_params = tuple(set(self._fget_params_list + self._fset_params_list)) # Check whether class variables of DynamicProperty type are present for attr_name, attr in getmembers(self.__class__): if isinstance(attr, DynamicPr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getattrnames(instance):\n return tuple(sorted([attr_name for attr_name in vars(instance).keys()\n if not attr_name.startswith('_')]))", "def _get_base_class_names(frame):\n co, lasti = frame.f_code, frame.f_lasti\n code = co.co_code\n i = 0\n extended_arg = 0\n exten...
[ "0.60409045", "0.6027323", "0.5997323", "0.5961061", "0.5894905", "0.583427", "0.57759935", "0.5728819", "0.5728213", "0.56711036", "0.56624967", "0.5654291", "0.56385523", "0.5613845", "0.56111926", "0.5595863", "0.55634046", "0.556145", "0.55537665", "0.5537942", "0.5517978...
0.8194097
0
Return a list of all the Instrument's ChannelCreator and MultiChannelCreator instances
def get_channels(cls): class_members = getmembers(cls) channels = [] for name, member in class_members: if isinstance(member, CommonBase.BaseChannelCreator): channels.append((name, member)) return channels
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _create_channels(self):\n for name, creator in CommonBase.get_channels(self.__class__):\n for cls, id in creator.pairs:\n # If channel pair was created with MultiChannelCreator\n # add channel interface to collection with passed attribute name\n if...
[ "0.6278074", "0.60471743", "0.60443133", "0.5980667", "0.58879066", "0.57821476", "0.57419497", "0.57028615", "0.5699824", "0.56870085", "0.5604088", "0.56024224", "0.55938405", "0.55506915", "0.5541182", "0.5534557", "0.54939073", "0.5472506", "0.54567045", "0.5436444", "0.5...
0.7067966
0
Return a list of all the Instrument's channel pairs
def get_channel_pairs(cls): channel_pairs = [] for name, creator in CommonBase.get_channels(cls): for pair in creator.pairs: channel_pairs.append(pair) return channel_pairs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def channel_list(self):\n return_str = self.scpi.query_channel_catalog().split(',')\n channel_dct = {}\n for i in range(int(len(return_str)/2)):\n channel_dct[int(return_str[2 * i])] = return_str[2 * i + 1]\n return channel_dct", "def get_channels(self):\n return [se...
[ "0.75370383", "0.6683904", "0.66317636", "0.6564761", "0.65500194", "0.6517167", "0.6471759", "0.64695144", "0.6439618", "0.639889", "0.63295305", "0.6286318", "0.62854683", "0.6231061", "0.62215227", "0.6181272", "0.61773455", "0.61458886", "0.6135437", "0.6109448", "0.61018...
0.72065693
1
Create channel interfaces for all the Instrument's channel pairs.
def _create_channels(self): for name, creator in CommonBase.get_channels(self.__class__): for cls, id in creator.pairs: # If channel pair was created with MultiChannelCreator # add channel interface to collection with passed attribute name if isinstanc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setup_channels():\n\n # Setup channel encoders\n for c in channels:\n channels[c].setup()\n print()", "def _create_ib(self, in_channels, out_channels, mid_channels):\n raise NotImplementedError", "def _fillChannels(self):\n\n # Add extra disabled channels as needed\n in...
[ "0.6242191", "0.5995452", "0.5779585", "0.5778451", "0.5726264", "0.566813", "0.5660835", "0.56336737", "0.56319976", "0.5604177", "0.5556227", "0.5528376", "0.5503923", "0.54326487", "0.5413902", "0.540965", "0.540965", "0.5397236", "0.5371579", "0.53647685", "0.5361", "0....
0.68550915
0
Prevent read access to variables with special names used to support dynamic property behaviour.
def __getattribute__(self, name): if name in ('_special_names', '__dict__'): return super().__getattribute__(name) if hasattr(self, '_special_names'): if name in self._special_names: raise AttributeError( f"{name} is a reserved variable name an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_var_ignore(self):\n self._var_ignore = [k for k in self.__dict__.keys() if k[0] != '_']", "def _setup_special_names(self):\n special_names = []\n dynamic_params = tuple(set(self._fget_params_list + self._fset_params_list))\n # Check whether class variables of DynamicProperty ...
[ "0.7153968", "0.6245621", "0.5982171", "0.58669454", "0.57737863", "0.5766411", "0.57256955", "0.56664485", "0.56664485", "0.5564751", "0.5555923", "0.5535534", "0.5517942", "0.55090797", "0.54723567", "0.54636544", "0.5386284", "0.5377557", "0.5375478", "0.5354461", "0.53449...
0.7661764
0
Return a property for the class based on the supplied commands. This property may be set and read from the
def control( # noqa: C901 accept that this is a complex method get_command, set_command, docs, validator=lambda v, vs: v, values=(), map_values=False, get_process=lambda v: v, set_process=lambda v: v, command_process=None, check_set_errors...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_cmd(self, command):\n return self.commands[command][\"cmd\"]", "def __getattr__(self, name):\n return Command(self.cmd, name)", "def __call__(self, arg):\n return self.get_property(arg)", "def get_command(self,command):\n\t\treturn self.command_handlers[command]", "def prop(sel...
[ "0.6207058", "0.61455566", "0.6099742", "0.6050299", "0.60144246", "0.59868026", "0.58092386", "0.57959485", "0.57579505", "0.5730137", "0.5719287", "0.5680559", "0.5661992", "0.5661992", "0.5644181", "0.5570356", "0.5567267", "0.5567267", "0.5567267", "0.5567267", "0.5567267...
0.63154703
0
Check for errors after having set a property and log them.
def check_set_errors(self): raise NotImplementedError("Implement it in a subclass.")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def do_error(self, propertyname: str, exception: Exception, tb: str) -> bool:\n logger.error(\n 'Device error. Variable name: {}. Exception: {}. Traceback: {}'.format(\n propertyname, str(exception), tb))\n return False", "def test_set_property_invalid(self):\r\n tr...
[ "0.6246108", "0.608773", "0.59986526", "0.58297026", "0.57573265", "0.57518435", "0.5724499", "0.56898665", "0.5682462", "0.5678919", "0.56516117", "0.5631371", "0.56310195", "0.561515", "0.5600137", "0.5592686", "0.5583842", "0.55740476", "0.5568653", "0.55478656", "0.546267...
0.6300757
0
Sum passed sample reads from all lanes and runs. Return total reads in Milions
def _sum_reads_per_pool(self, pool): total_reads = 0.0 for sample in pool.samples: nr_lanes = 0 arts = lims.get_artifacts(samplelimsid = sample.id, process_type = self.process_types) for art in arts: if art.qc_flag == 'PASSED' and '# Reads' in art.udf:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sum_reads(self, sample):\n total_reads = 0.0\n arts = lims.get_artifacts(samplelimsid = sample.id, process_type = self.process_types)\n for art in arts:\n if art.qc_flag == 'PASSED' and '# Reads' in art.udf:\n total_reads += float(art.udf.get('# Reads'))\n ...
[ "0.74408776", "0.6654822", "0.6481333", "0.62745345", "0.6052417", "0.59267116", "0.58626086", "0.5834682", "0.57828516", "0.5772605", "0.57420045", "0.5736043", "0.5720593", "0.57124656", "0.56845903", "0.56643623", "0.5623122", "0.56034935", "0.56015736", "0.5577122", "0.55...
0.6954153
1
Sum passed sample reads from all lanes and runs. Return total reads in Milions
def sum_reads(self, sample): total_reads = 0.0 arts = lims.get_artifacts(samplelimsid = sample.id, process_type = self.process_types) for art in arts: if art.qc_flag == 'PASSED' and '# Reads' in art.udf: total_reads += float(art.udf.get('# Reads')) return tota...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _sum_reads_per_pool(self, pool):\n total_reads = 0.0\n for sample in pool.samples:\n nr_lanes = 0\n arts = lims.get_artifacts(samplelimsid = sample.id, process_type = self.process_types)\n for art in arts:\n if art.qc_flag == 'PASSED' and '# Reads' ...
[ "0.6954864", "0.6656752", "0.64795655", "0.62726665", "0.60528564", "0.5924277", "0.58597374", "0.5837701", "0.57805896", "0.5770979", "0.5742074", "0.5738621", "0.57219094", "0.57122225", "0.5681607", "0.5665793", "0.56238085", "0.5602042", "0.5601436", "0.5579475", "0.55713...
0.7440369
0
Set Total Reads on all samps
def set_udfs(self): for samp in self.samples: M_reads = self.sum_reads(samp) try: samp.udf['Total Reads (M)'] = M_reads samp.put() self.passed_samps +=1 except: self.failed_samps +=1 pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reads_total(self, reads_total):\n\n self._reads_total = reads_total", "def _set_udfs(self, pool, M_reads):\n for samp in pool.samples:\n samp.udf['Total Reads (M)'] = M_reads\n samp.put()", "def _update_base_stats(self, base_stats):\n self.total_samples += base_s...
[ "0.6657328", "0.6449283", "0.6143652", "0.6111972", "0.5977703", "0.5782529", "0.57482004", "0.57133746", "0.57000345", "0.569683", "0.56876945", "0.5634396", "0.56162834", "0.5604197", "0.55961615", "0.5575144", "0.55701655", "0.55687106", "0.55628973", "0.55427915", "0.5498...
0.71487993
0
Test last() for proper output in test cases ASSERTIONS.
def test_last(n, result): from last import last assert last(n) == result
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_9999_last(self):\n self.lasttest = True", "def test_last(self):\n l_list = DoubleLinkedList()\n l_list.push(1234)\n l_list.push(12)\n self.assertEqual(l_list.get_list()[-1], l_list.last())", "def test_last(self):\n\n test_cases = [\n Case(\n ...
[ "0.8035714", "0.7782251", "0.77015525", "0.756331", "0.74530196", "0.7107836", "0.6909534", "0.68964", "0.6892731", "0.6796417", "0.652054", "0.6499414", "0.64989656", "0.64520764", "0.6402129", "0.63546234", "0.635262", "0.6322733", "0.6305264", "0.62974834", "0.62930435", ...
0.78101474
1
Check if a node has children. It is assumped that if a node has children it should not be polled, thus throw an error.
def _check_for_children(self): if len(self.node.get_children()) > 0: raise ValueError('This Node is not a leaf node. Children of this node ' 'are {}'.format(self.client.get_children()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_children(self):\n\n pass", "def hasChildren():", "def has_children(self):\n return len(self._children) > 0", "def has_children(self):\n return False", "def has_children(self) -> bool:\n\n return False", "def hasChildren(self):\n return self.childCount() > 0", ...
[ "0.77108085", "0.7601748", "0.759721", "0.7523171", "0.7522333", "0.74234545", "0.73685634", "0.73506767", "0.72561467", "0.69444305", "0.6644715", "0.6503918", "0.6481027", "0.63400245", "0.63289917", "0.6302561", "0.62785935", "0.62481415", "0.624402", "0.61594224", "0.6156...
0.8104082
0
Connects to O2 Sensor identified by Serial Number.
def connect(self): if self.port is not None: p = portscan(self.port) if p is not None: self.port = p.device self.ID = p.serial_number self.name = get_sensor_name(self.ID) else: raise serial.SerialException("Can't...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def connect(self):\n self.arduino = Serial(self.port, self.baud_rate, timeout=self.timeout)", "def connect(self):\n # open serial port\n try:\n #device = self.get_device_name(self.serial_number)\n device = \"/dev/ttyAMA0\"\n self.serial.port = device\n ...
[ "0.70166117", "0.6946173", "0.6648011", "0.6619445", "0.6568164", "0.6507599", "0.64911604", "0.6402433", "0.6401939", "0.63798654", "0.6376096", "0.63271326", "0.6327054", "0.6319435", "0.6278038", "0.6234475", "0.61890376", "0.61842793", "0.61752695", "0.61325395", "0.61305...
0.76212883
0
Write last read batches of Temp and O2 to separate files in useful units.
def write_TempO2_batch(self, Tpath='Temp.csv', O2path='O2.csv', mode='water'): if mode == 'water': o2ind = 3 o2unit = 'umol/L' elif mode == 'air': o2ind = 13 o2unit = '% O2' else: raise ValueError("mode must be either 'water' or 'air'")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def write_trajectory_files(self,suffix='--filtered'):\n for downD in self.case.downstreamD:\n xi = downD * self.case.turbine.D\n inputs = self.case.get_outputs(self.method,downD)\n outputs = self.case.get_outputs(self.method,downD,suffix=suffix)\n print(outputs['t...
[ "0.58446544", "0.5737523", "0.5651895", "0.5605316", "0.5524518", "0.5488752", "0.54873925", "0.54744554", "0.54699415", "0.546359", "0.540852", "0.5394232", "0.53807425", "0.5369868", "0.53191286", "0.53128034", "0.53019434", "0.5270752", "0.5253188", "0.5231057", "0.523045"...
0.68782985
0
Returns the number of 'a's in the first n letters of a string consisting of infinitely repeating strings, s.
def repeatedString(s, n): count = 0 s_count_a = s.count('a') count += math.floor(n / len(s)) * s_count_a for _ in range(n % len(s)): if s[_] == 'a': count += 1 return count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def numberOfSubstrings(self, s: str) -> int:\n i = 0\n res = 0\n d = {c:0 for c in 'abc'}\n \n for j, val in enumerate(s):\n d[val] += 1\n while all(d.values()):\n d[s[i]] -= 1\n i += 1\n res += i\n \n ...
[ "0.7491834", "0.7288899", "0.712554", "0.71176744", "0.70166576", "0.7003553", "0.69686353", "0.6889074", "0.6807421", "0.67932975", "0.67932975", "0.6698381", "0.65513337", "0.6454787", "0.6448401", "0.6438012", "0.64374185", "0.64309555", "0.6425085", "0.64157695", "0.64076...
0.8981734
0
Get the hostname from the environment. Returns str The hostname of the simulation running computer.
def get_hostname(): host = os.getenv("OPSIM_HOSTNAME") if host is None or host == "": import socket host = socket.gethostname() host = host.split('.')[0] return host
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hostname():\n return socket.gethostname()", "def get_hostname():\n\thostname = socket.gethostname()\n\n\treturn hostname", "def hostname(self):\n return 'localhost'", "def get_hostname():\n global HOST\n if '.' in HOST:\n HOST = HOST.split('.')[0]\n return HOST", "def get_host...
[ "0.8160026", "0.8067583", "0.7880809", "0.7857123", "0.7840652", "0.78405493", "0.7815816", "0.78079975", "0.7764813", "0.77361053", "0.76725847", "0.7666893", "0.7655483", "0.76524085", "0.7637509", "0.7620079", "0.7615368", "0.76129395", "0.7594552", "0.7546816", "0.7543461...
0.8392212
0
Obtain image of a weather state given the abbreviation code for the weather state
def update_weather_image(self, weather_state_abbr): future = concurrent.futures.ThreadPoolExecutor().submit( getter.get_weather_image, weather_state_abbr ) image = future.result() return image
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def state_img(self):\n if self.master.v_state == 'victory':\n return self.vict_img\n elif self.master.v_state == 'draw':\n return self.draw_img\n if self.master.v_state == 'defeat':\n return self.def_img", "def weather_icon(weather_category):\n if 200 <= w...
[ "0.60176057", "0.5819082", "0.5811722", "0.5787838", "0.5773076", "0.57385194", "0.57216376", "0.5614472", "0.5592041", "0.5522915", "0.5465673", "0.5447698", "0.5399646", "0.5391438", "0.539076", "0.5390401", "0.53872997", "0.53872997", "0.5357801", "0.5339662", "0.5333912",...
0.6663331
0
Updates woeid, which is the location ID for getting weather from the metaweather API.
def update_weather_location_woeid(self): future = concurrent.futures.ThreadPoolExecutor().submit( getter.get_weather_location_woeid ) self.woeid = future.result()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_weather(self):\n future = concurrent.futures.ThreadPoolExecutor().submit(\n getter.get_weather, self.woeid\n )\n weather = future.result()\n return weather", "def update_weather(location_request, db):\n with open(expanduser(\"~/bin/my_utilities/config/darksky-...
[ "0.613411", "0.5743348", "0.55990386", "0.559584", "0.553423", "0.5449658", "0.52043563", "0.51832354", "0.5158994", "0.5128107", "0.5126428", "0.5104061", "0.5103697", "0.50314105", "0.501529", "0.4965596", "0.4958697", "0.4936866", "0.48988956", "0.48778626", "0.48207998", ...
0.7405325
0
Updates text for current weather condition, current temp, high temp, low temp and the weather picture.
def update(self, *args): if (datetime.datetime.now() - self.last_update_time).total_seconds() >= 1800: self.update_weather_location_woeid() self.weather = self.update_weather() self.weather_text.text = self.weather["weather_state_name"] self.image.texture = Core...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def current_weather(self):\n weather = DarkSky(self.coordinates)\n current_weather = weather.current_weather\n reply = [f\"*Current Weather in {self.format_location(self.location)}*\"]\n summary = current_weather['summary']\n temp = current_weather['temperature']\n feels_l...
[ "0.67788404", "0.610458", "0.60709995", "0.60183847", "0.599252", "0.5973777", "0.58877945", "0.58831084", "0.588108", "0.5875087", "0.5748651", "0.5739567", "0.5668345", "0.56675637", "0.56640285", "0.5654684", "0.56540763", "0.56509113", "0.56394625", "0.5628591", "0.559402...
0.78814197
0
Returns the relative conversion efficiency modifier as a function of irradiance and ambient temperature. All parameters can be either float or pandas.Series.
def panel_relative_efficiency(self, irradiance, tamb, windspeed=None): if windspeed is None: windspeed = self.ref_windspeed if isinstance(self.temperature_params, str): self.temperature_params = pvlib.temperature.TEMPERATURE_MODEL_PARAMETERS[ "sapm" ][...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def airfoilEffT(self):\n return float(Importer(Component='Evaluations',\n VariableName='Wing airfoil efficiency factor',\n Default=.95,\n Path=self.filePath).getValue)", "def temperature() -> float:", "def airfoilEffW...
[ "0.6414693", "0.59776217", "0.584842", "0.58148474", "0.57260185", "0.5651547", "0.56481624", "0.5578185", "0.5520527", "0.55030984", "0.5479487", "0.5468762", "0.5468762", "0.546397", "0.54252017", "0.54160506", "0.5406557", "0.5402615", "0.53943986", "0.5391913", "0.5389249...
0.6388743
1
Returns an optimal tilt angle for the given ``lat``, assuming that the panel is facing towards the equator, using a simple method from [1]. This method only works for latitudes between 0 and 50. For higher latitudes, a static 40 degree angle is returned. These results should be used with caution, but there is some evid...
def optimal_tilt(lat): lat = abs(lat) if lat <= 25: return lat * 0.87 elif lat <= 50: return (lat * 0.76) + 3.1 else: # lat > 50 # raise NotImplementedError('Not implemented for latitudes beyond 50.') return 40 # Simply use 40 degrees above lat 50
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def latToTheta(lat):\n return (90.0 - lat) * (np.pi/180.0)", "def circumference(self, lat):\n return 2 * np.pi * self.rsphere * np.cos(np.deg2rad(lat))", "def omega_sun_snodgrass90(lat):\n return differential_rotation(lat, 14.71, -2.39, -1.78)", "def parang (hourangle, declination, latitude):\n\...
[ "0.61864376", "0.6092892", "0.5899306", "0.5657286", "0.56436867", "0.5591971", "0.5550305", "0.55345213", "0.54766", "0.54505646", "0.54489547", "0.5403515", "0.53509307", "0.5327661", "0.53179705", "0.5313336", "0.5301394", "0.52920055", "0.52608395", "0.5248129", "0.521598...
0.76557124
1
Calculate the mean of a list of tensors for each tensor in the list. In our case the list typically contains a tensor for each class, such as the per class z values.
def get_means(tensors_list): means = [] for i in range(len(tensors_list)): if isinstance(tensors_list[i], torch.Tensor): means.append(torch.mean(tensors_list[i], dim=0)) else: means.append([]) return means
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def average_tensors(tensor_list, norm_fn=None, weights=None):\n n_tensors = len(tensor_list)\n if weights is None:\n weights = [1.0 / float(n_tensors)] * n_tensors\n if not isinstance(norm_fn, list):\n norm_fn = [norm_fn] * n_tensors\n assert n_tensors == len(weights)\n assert n_tensor...
[ "0.7428753", "0.7156988", "0.68296605", "0.682667", "0.68160766", "0.6749408", "0.6735543", "0.6678286", "0.66619396", "0.66619396", "0.6623647", "0.65696245", "0.6566125", "0.64203674", "0.6402873", "0.63840735", "0.63723844", "0.6371211", "0.6359747", "0.63577247", "0.63542...
0.7859351
0
Function to calculate distances between tensors, in our case the mean zs per class and z for each input. Wrapper around torch.nn.functonal distances with specification of which distance function to choose.
def calc_distances_to_means(means, tensors, distance_function='cosine'): def distance_func(a, b, w_eucl, w_cos): """ Weighted distance function consisting of cosine and euclidean components. Parameters: a (torch.Tensor): First tensor. b (torch.Tensor): Second tensor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nn_distance(xyz1, xyz2):\n return _op_library.nn_distance(xyz1, xyz2)", "def node_distance(self, inputs):\n tmp = 0\n for i in len(self.inputs):\n tmp += np.power(data[i] - self.weights[i], 2)\n return np.sqrt(tmp)", "def distance((x,y,z),(x0,y0,z0)):\n return sqrt((x-x0...
[ "0.61389583", "0.606288", "0.6021471", "0.59162295", "0.58170724", "0.58092034", "0.57765865", "0.57305336", "0.5701696", "0.5686961", "0.564321", "0.5631158", "0.56077176", "0.5559587", "0.55580735", "0.5557122", "0.55477434", "0.5522238", "0.55142546", "0.54778117", "0.5470...
0.65619946
0
Weighted distance function consisting of cosine and euclidean components.
def distance_func(a, b, w_eucl, w_cos): d = w_cos * (1 - torch.nn.functional.cosine_similarity(a.view(1, -1), b)) + \ w_eucl * torch.nn.functional.pairwise_distance(a.view(1, -1), b, p=2) return d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _distance_from_weights(self, data):\n input_data = array(data)\n weights_flat = self._weights.reshape(-1, self._weights.shape[2])\n input_data_sq = power(input_data, 2).sum(axis=1, keepdims=True)\n weights_flat_sq = power(weights_flat, 2).sum(axis=1, keepdims=True)\n cross_te...
[ "0.65470004", "0.64531606", "0.64359385", "0.643337", "0.642202", "0.6417422", "0.64035493", "0.6397934", "0.63716274", "0.6370506", "0.63622254", "0.6320452", "0.6312444", "0.6310667", "0.63054824", "0.63012826", "0.62932307", "0.6285165", "0.6271251", "0.6268898", "0.625966...
0.73951614
0
Function to fit weibull models on distribution values per class. The distribution values in our case are the distances of an inputs approximate posterior value to the per class mean latent z, i.e. The Weibull model fits regions of high density and gives credible intervals. The tailsize specifies how many outliers are e...
def fit_weibull_models(distribution_values, tailsizes, num_max_fits=50): weibull_models = [] # loop through the list containing distance values per class for i in range(len(distribution_values)): # for each class set the initial success to False and number of attempts to 0 is_valid = False...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __train_hebbs__(self):\n\n rho = self.__get_rho__()\n\n copied_train_data = np.copy(self.train_data)\n\n for curr_train_sample in tqdm(copied_train_data,\n disable=not self.verbose,\n postfix=f'Model training...'):\n...
[ "0.59202635", "0.5450671", "0.530593", "0.52487195", "0.52292633", "0.50492483", "0.5037859", "0.50144225", "0.49903977", "0.49882603", "0.49655813", "0.4963908", "0.49383718", "0.49295232", "0.4918053", "0.49111438", "0.4877735", "0.48762935", "0.48229924", "0.48210123", "0....
0.70036924
0
Calculates statistical outlier probability using the weibull models' CDF. Note that we have coded this function to loop over each class because we have previously categorized the distances into their respective classes already.
def calc_outlier_probs(weibull_models, distances): outlier_probs = [] # loop through all classes, i.e. all available weibull models as there is one weibull model per class. for i in range(len(weibull_models)): # optionally convert the type of the distance vectors if isinstance(distances[i],...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_statistical_outlier(pcd, nb_neighbors=25, std=8):\n cl, ind = pcd.remove_statistical_outlier(nb_neighbors,std)\n return pcd.select_by_index(ind)", "def identify_and_handel_outliers(self):\n col_list = [] # This will hold the column names created for the administration of the modified z-sc...
[ "0.59288496", "0.5872115", "0.5743819", "0.5735717", "0.57210696", "0.5657533", "0.5635382", "0.5555669", "0.55309546", "0.54858434", "0.5479885", "0.5472277", "0.54604244", "0.54302895", "0.53987384", "0.53918296", "0.5332668", "0.5328947", "0.5325305", "0.5321641", "0.53211...
0.72184795
0
Adds the given card(s) to the Hand. Accepts a single card or a list of cards.
def add_card(self, card): #Determines if there are more than one. if isinstance(card,list): for element in range(len(card)): #Creates a new hand new_hand=Hand([card[element]]) #Adds hand to list self.cards+= new_hand.cards ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_cards(self, cards):\n self.get_cards().extend(cards)", "def add_card(self, card):\n self.cards.append(card)\n self.sum_hand(self.cards)", "def add_card(self, card):\n self.hand.append(card)", "def add_card(self, card):\n \n self.hand.append(card)\n \n ...
[ "0.8197131", "0.8061863", "0.803706", "0.80294114", "0.802164", "0.79161346", "0.7887622", "0.7859493", "0.7858807", "0.7829556", "0.78015405", "0.78015405", "0.78015405", "0.78015405", "0.77522886", "0.77257115", "0.77145284", "0.7676073", "0.76657116", "0.76347816", "0.7592...
0.8290612
0
Returns the number of cards in the Hand.
def num_cards(self): length=len(self.cards) return length
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_num_cards(self):\n \n return self._hand.get_size()", "def count(self):\n return(len(self.cards))", "def count(self):\n return len(self.deck)", "def get_length(self):\n return len(self.cards)", "def size(self):\n return len(self.cards)", "def total_cards(s...
[ "0.8969304", "0.85190046", "0.8123425", "0.7880857", "0.7817959", "0.77815235", "0.77754945", "0.76814455", "0.75479573", "0.7493387", "0.739398", "0.7355211", "0.73478025", "0.72952586", "0.72045", "0.71798974", "0.71228373", "0.70966595", "0.70762944", "0.70397943", "0.7017...
0.85816056
1
Returns True if the Hand contains a card of the given name; otherwise, returns False.
def has_any(self, name): counter = 0 for element in self.cards: if name in str(element): counter += 1 if counter > 0: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def does_player_have_card(self, player, card):\n return card in self.hands[player]", "def has_name(self, name: str):\n name_bytes = str_to_bytes_pad(name, MAX_NAME_LEN)\n res = self.dev.apdu_exchange(0x0e, name_bytes)\n assert len(res) == 1\n assert res[0] in (0, 1)\n re...
[ "0.74428433", "0.70208025", "0.7007768", "0.68508714", "0.65834326", "0.6491011", "0.6420414", "0.63788605", "0.63730437", "0.63544995", "0.6343014", "0.6313782", "0.62854934", "0.6235166", "0.6205011", "0.6121567", "0.61062884", "0.6072079", "0.60583013", "0.6032441", "0.601...
0.78979546
0
Test case for connect_post_namespaced_binary_build_request_options_instantiatebinary
def test_connect_post_namespaced_binary_build_request_options_instantiatebinary(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def connect_post_namespaced_binary_build_request_options_instantiatebinary(self, namespace, name, **kwargs):\n\n all_params = ['namespace', 'name', 'as_file', 'revision_commit', 'revision_message', 'revision_author_name', 'revision_author_email', 'revision_committer_name', 'revision_committer_email']\n ...
[ "0.79831326", "0.64206696", "0.60861635", "0.59662026", "0.5899714", "0.569417", "0.54958487", "0.5320582", "0.5250495", "0.51140046", "0.50908613", "0.5051946", "0.5051672", "0.49857652", "0.49632534", "0.49060354", "0.4879726", "0.48622626", "0.48483625", "0.4841808", "0.48...
0.94142145
0
Test case for connect_post_namespaced_status_webhooks
def test_connect_post_namespaced_status_webhooks(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_connect_post_namespaced_status_webhooks_with_path(self):\n pass", "def connect_post_namespaced_status_webhooks(self, namespace, name, **kwargs):\n\n all_params = ['namespace', 'name', 'path']\n all_params.append('callback')\n\n params = locals()\n for key, val in iteri...
[ "0.84653294", "0.753091", "0.7042313", "0.62319297", "0.59414625", "0.59319776", "0.5880926", "0.58741474", "0.5659001", "0.56450313", "0.5643753", "0.5643753", "0.5643346", "0.56238633", "0.560473", "0.5592699", "0.55496615", "0.5530896", "0.5526888", "0.5486367", "0.5466561...
0.93654233
0
Test case for connect_post_namespaced_status_webhooks_with_path
def test_connect_post_namespaced_status_webhooks_with_path(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_connect_post_namespaced_status_webhooks(self):\n pass", "def connect_post_namespaced_status_webhooks_1(self, namespace, name, path2, **kwargs):\n\n all_params = ['namespace', 'name', 'path2', 'path']\n all_params.append('callback')\n\n params = locals()\n for key, val ...
[ "0.81542915", "0.72567916", "0.70768386", "0.6168528", "0.56414336", "0.55579436", "0.5390352", "0.5262062", "0.5236467", "0.5224782", "0.51910794", "0.5176027", "0.51725316", "0.5153039", "0.5123162", "0.50873536", "0.50747126", "0.5051635", "0.5045923", "0.5044757", "0.5032...
0.94886124
0
Test case for create_build_config_for_all_namespaces
def test_create_build_config_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_build_for_all_namespaces(self):\n pass", "def test_create_namespaced_build_config(self):\n pass", "def test_list_build_config_for_all_namespaces(self):\n pass", "def test_read_namespaced_build_config(self):\n pass", "def test_create_deployment_config_for_all_name...
[ "0.87801343", "0.85399884", "0.8192892", "0.79236645", "0.7825686", "0.77693194", "0.7725645", "0.7663362", "0.756818", "0.6956902", "0.6922336", "0.6921679", "0.68856287", "0.68557286", "0.67203915", "0.66627884", "0.6472079", "0.6464558", "0.6462633", "0.6435497", "0.641069...
0.9607131
0
Test case for create_build_for_all_namespaces
def test_create_build_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_build_config_for_all_namespaces(self):\n pass", "def test_create_namespaced_build(self):\n pass", "def test_replace_namespaced_build(self):\n pass", "def test_read_namespaced_build(self):\n pass", "def test_create_namespaced_build_config(self):\n pass", ...
[ "0.8524425", "0.851385", "0.7624888", "0.7573429", "0.75008315", "0.7489518", "0.70057875", "0.69654775", "0.69643843", "0.69148815", "0.67734516", "0.67481446", "0.6708565", "0.66453755", "0.6594325", "0.6587665", "0.65825397", "0.65751356", "0.657134", "0.65532255", "0.6515...
0.95908934
0
Test case for create_cluster_network
def test_create_cluster_network(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_cluster_network(self):\n pass", "def test_replace_cluster_network(self):\n pass", "def test_delete_cluster_network(self):\n pass", "def test_read_cluster_network(self):\n pass", "def test_patch_cluster_network(self):\n pass", "def test_create_hyperflex_clu...
[ "0.80198145", "0.78185844", "0.77847433", "0.77735484", "0.77392256", "0.75973094", "0.71898115", "0.7116302", "0.70774406", "0.7038242", "0.7038065", "0.69673526", "0.69559616", "0.69492555", "0.69237256", "0.68882716", "0.68843836", "0.6843166", "0.68242574", "0.67698485", ...
0.94705796
0
Test case for create_cluster_policy
def test_create_cluster_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_hyperflex_cluster_network_policy(self):\n pass", "def test_create_cluster_policy_binding(self):\n pass", "def test_create_hyperflex_cluster_storage_policy(self):\n pass", "def test_replace_cluster_policy(self):\n pass", "def test_list_cluster_policy(self):\n ...
[ "0.8472836", "0.82916313", "0.8109668", "0.80557895", "0.7968556", "0.7850694", "0.7833129", "0.7531815", "0.7441938", "0.717151", "0.70858634", "0.7079511", "0.7017204", "0.6990637", "0.6949837", "0.6898801", "0.6870366", "0.68697345", "0.68629205", "0.6847723", "0.68101865"...
0.9468233
0
Test case for create_cluster_policy_binding
def test_create_cluster_policy_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_replace_cluster_policy_binding(self):\n pass", "def test_patch_cluster_policy_binding(self):\n pass", "def test_create_cluster_policy(self):\n pass", "def test_list_cluster_policy_binding(self):\n pass", "def test_read_cluster_policy_binding(self):\n pass", "de...
[ "0.83813953", "0.8145838", "0.81336695", "0.812454", "0.80653524", "0.7848182", "0.78294617", "0.749682", "0.74239266", "0.71431196", "0.7133026", "0.712732", "0.70731646", "0.6901979", "0.68334264", "0.6704872", "0.6652197", "0.6632674", "0.66216904", "0.6559863", "0.6552701...
0.94919705
0
Test case for create_cluster_resource_quota
def test_create_cluster_resource_quota(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_cluster_resource_quota(self):\n pass", "def test_replace_cluster_resource_quota(self):\n pass", "def test_patch_cluster_resource_quota(self):\n pass", "def test_delete_cluster_resource_quota(self):\n pass", "def test_read_cluster_resource_quota(self):\n pass...
[ "0.8515611", "0.84694064", "0.8390536", "0.82592463", "0.8206396", "0.80579615", "0.8049592", "0.79953414", "0.777024", "0.7658167", "0.764499", "0.6988188", "0.68070745", "0.6724373", "0.6227229", "0.61830336", "0.6098153", "0.6084005", "0.6031625", "0.5979446", "0.594918", ...
0.95099825
0
Test case for create_cluster_role
def test_create_cluster_role(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_cluster_role_binding(self):\n pass", "def test_replace_cluster_role(self):\n pass", "def test_list_cluster_role(self):\n pass", "def test_patch_cluster_role(self):\n pass", "def test_delete_cluster_role(self):\n pass", "def test_read_cluster_role(self):\...
[ "0.8375753", "0.82681155", "0.81862533", "0.8085345", "0.80188364", "0.79624635", "0.78484935", "0.74721336", "0.73887193", "0.73865646", "0.73238784", "0.71745485", "0.7170588", "0.7160438", "0.7160281", "0.71327025", "0.7083041", "0.7077474", "0.7076559", "0.704596", "0.703...
0.9609484
0
Test case for create_cluster_role_binding
def test_create_cluster_role_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_replace_cluster_role_binding(self):\n pass", "def test_patch_cluster_role_binding(self):\n pass", "def test_list_cluster_role_binding(self):\n pass", "def test_read_cluster_role_binding(self):\n pass", "def test_create_cluster_role(self):\n pass", "def test_cre...
[ "0.8530497", "0.8370947", "0.829607", "0.82909805", "0.82817835", "0.8118653", "0.7975749", "0.76617676", "0.73893994", "0.7309578", "0.7271901", "0.72667706", "0.71700627", "0.7121565", "0.7056896", "0.68415546", "0.6837009", "0.68115795", "0.6772715", "0.6747619", "0.663227...
0.9553703
0
Test case for create_deployment_config_for_all_namespaces
def test_create_deployment_config_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_deployment_config(self):\n pass", "def test_generate_namespaced_deployment_config(self):\n pass", "def test_list_deployment_config_for_all_namespaces(self):\n pass", "def test_create_deployment_config_rollback_for_all_namespaces(self):\n pass", "def te...
[ "0.85046566", "0.84217197", "0.8307326", "0.8202546", "0.8076627", "0.7913194", "0.7489807", "0.74375576", "0.741452", "0.7411587", "0.738982", "0.71172184", "0.7045521", "0.7022951", "0.70039016", "0.7001934", "0.6981919", "0.69025004", "0.6868767", "0.6774191", "0.6662611",...
0.9581299
0
Test case for create_deployment_config_rollback_for_all_namespaces
def test_create_deployment_config_rollback_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_deployment_config_rollback_rollback(self):\n pass", "def test_create_namespaced_deployment_config_rollback(self):\n pass", "def test_create_deployment_config_for_all_namespaces(self):\n pass", "def create_namespaced_deployment_config_rollback(self, body, namesp...
[ "0.89757127", "0.88415843", "0.785864", "0.7208575", "0.71539915", "0.6927837", "0.69010705", "0.6846791", "0.6619666", "0.65857625", "0.6573812", "0.64794433", "0.63812906", "0.636598", "0.62240165", "0.60874295", "0.60763305", "0.60422796", "0.6026212", "0.5838301", "0.5817...
0.95348305
0
Test case for create_egress_network_policy_for_all_namespaces
def test_create_egress_network_policy_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_egress_network_policy(self):\n pass", "def test_list_egress_network_policy_for_all_namespaces(self):\n pass", "def test_list_namespaced_egress_network_policy(self):\n pass", "def test_replace_namespaced_egress_network_policy(self):\n pass", "def test_p...
[ "0.8664481", "0.8521904", "0.8020849", "0.7897353", "0.7703624", "0.7572405", "0.74850076", "0.72024673", "0.6883535", "0.66519046", "0.62801635", "0.62497866", "0.60414034", "0.60309887", "0.5821768", "0.5754535", "0.57487166", "0.5718347", "0.5717843", "0.5671705", "0.56091...
0.95230854
0
Test case for create_group
def test_create_group(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_verify_that_you_can_create_a_new_group():", "def test_create_resource_group(self):\n pass", "def test_createGroup(self):\n\t\tself.client.force_authenticate(user=User.objects.get(id=1))\n\t\turl = \"/groups/\"\n\t\tdata = {\n\t\t\t'name' : 'testGroup3',\n\t\t\t'description' : 'This is another t...
[ "0.87275153", "0.8562568", "0.8524377", "0.8486679", "0.8467842", "0.83988947", "0.8226243", "0.79144555", "0.7811437", "0.78054166", "0.77216476", "0.74178314", "0.7417153", "0.7408696", "0.73916656", "0.73892444", "0.73880035", "0.7341276", "0.7339944", "0.7339944", "0.7333...
0.94677377
1
Test case for create_host_subnet
def test_create_host_subnet(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_subnet(self):\n client_token = generate_client_token()\n subnet_name = 'test_subnet_name1' + client_token\n subnet_cidr = '192.168.0.64/26'\n self.assertEqual(\n type(self.the_client.create_subnet(subnet_name,\n 'cn-b...
[ "0.82311416", "0.8099609", "0.786235", "0.78414226", "0.7819034", "0.77749956", "0.76466227", "0.7387885", "0.7366757", "0.7088527", "0.70560205", "0.70493746", "0.7023433", "0.6906042", "0.68175185", "0.6802236", "0.6766335", "0.6751081", "0.6750027", "0.66836554", "0.664375...
0.95313084
0
Test case for create_identity
def test_create_identity(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_id_identity(self):\n self.assertIs(Rectangle.create(id=True).id, True)\n self.assertIs(Rectangle.create(id=type).id, type)\n self.assertIs(Rectangle.create(id=None).id, None)", "def test_create_user_identity_mapping(self):\n pass", "def makeIdentity(self) -> None:\n ...
[ "0.7450213", "0.74495286", "0.73977137", "0.7109684", "0.7081239", "0.70776415", "0.6876343", "0.68289983", "0.67890537", "0.66537106", "0.66407704", "0.6592529", "0.648872", "0.6464403", "0.63917136", "0.6384225", "0.63801837", "0.63801837", "0.63801837", "0.636469", "0.6361...
0.9415145
0
Test case for create_image
def test_create_image(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_image_signature(self):\n pass", "def maketestimage(self, *args, **kwargs):\n return _image.image_maketestimage(self, *args, **kwargs)", "def test_created_image_successful(self):\n with tempfile.NamedTemporaryFile(suffix='.png') as ntf:\n img = Image.new('RGB', (1...
[ "0.81402105", "0.7546244", "0.7508462", "0.7169344", "0.70587856", "0.69910264", "0.69853866", "0.69825745", "0.69472307", "0.6928164", "0.68932194", "0.68912756", "0.6871344", "0.68372226", "0.6834992", "0.6755376", "0.6742533", "0.67287624", "0.6721094", "0.6718269", "0.669...
0.9327704
0
Test case for create_image_signature
def test_create_image_signature(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_image(self):\n pass", "def test_delete_image_signature(self):\n pass", "def test_create_namespaced_image_stream(self):\n pass", "def test_created_image_successful(self):\n with tempfile.NamedTemporaryFile(suffix='.png') as ntf:\n img = Image.new('RGB', (...
[ "0.7970006", "0.7767127", "0.65766406", "0.6531542", "0.6489188", "0.64588", "0.64358777", "0.64035594", "0.6182134", "0.6159298", "0.6134219", "0.6127842", "0.6117065", "0.61164683", "0.61160994", "0.6111134", "0.61092824", "0.60865974", "0.6084437", "0.60758597", "0.6057979...
0.95597017
0
Test case for create_image_stream_for_all_namespaces
def test_create_image_stream_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_image_stream_tag_for_all_namespaces(self):\n pass", "def test_create_image_stream_mapping_for_all_namespaces(self):\n pass", "def test_create_namespaced_image_stream(self):\n pass", "def test_create_image_stream_import_for_all_namespaces(self):\n pass", "def test...
[ "0.9088928", "0.89130735", "0.889287", "0.8872689", "0.8536201", "0.84663653", "0.8451075", "0.8336805", "0.8129746", "0.81173295", "0.8034135", "0.7941872", "0.77382636", "0.76966006", "0.76674956", "0.74966055", "0.7485253", "0.7450198", "0.7190685", "0.71756494", "0.713151...
0.96039075
0
Test case for create_image_stream_import_for_all_namespaces
def test_create_image_stream_import_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_image_stream_import(self):\n pass", "def test_create_image_stream_for_all_namespaces(self):\n pass", "def test_create_image_stream_mapping_for_all_namespaces(self):\n pass", "def test_create_image_stream_tag_for_all_namespaces(self):\n pass", "def test...
[ "0.8958092", "0.886222", "0.835668", "0.8331445", "0.8163908", "0.7932511", "0.7851598", "0.78005266", "0.7746258", "0.7556122", "0.7476707", "0.73902404", "0.7253503", "0.72491485", "0.7233775", "0.7157064", "0.6953136", "0.68886954", "0.68099636", "0.6708648", "0.6689925", ...
0.95803815
0
Test case for create_image_stream_mapping_for_all_namespaces
def test_create_image_stream_mapping_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_image_stream_mapping(self):\n pass", "def test_create_image_stream_for_all_namespaces(self):\n pass", "def test_create_image_stream_tag_for_all_namespaces(self):\n pass", "def test_create_image_stream_import_for_all_namespaces(self):\n pass", "def test...
[ "0.91913676", "0.86851203", "0.82696706", "0.8137074", "0.8079493", "0.78463507", "0.7824447", "0.76287913", "0.7525219", "0.74611545", "0.7450136", "0.7445924", "0.74190575", "0.7334009", "0.71233606", "0.7078349", "0.70638067", "0.70420635", "0.695995", "0.6948085", "0.6753...
0.96181995
0
Test case for create_image_stream_tag_for_all_namespaces
def test_create_image_stream_tag_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_image_stream_tag(self):\n pass", "def test_create_image_stream_for_all_namespaces(self):\n pass", "def test_list_image_stream_tag_for_all_namespaces(self):\n pass", "def test_create_namespaced_image_stream(self):\n pass", "def test_create_image_stream_...
[ "0.9022087", "0.89572585", "0.84723455", "0.8460006", "0.8300947", "0.8295887", "0.8221194", "0.8150661", "0.81465834", "0.8077093", "0.80084735", "0.79796576", "0.7938574", "0.7702984", "0.7635124", "0.75892824", "0.7580561", "0.73845553", "0.73158324", "0.7285486", "0.72293...
0.9592984
0
Test case for create_local_resource_access_review_for_all_namespaces
def test_create_local_resource_access_review_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_resource_access_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_local_resource_access_review(self):\n pass", "def test_create_local_subject_access_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_resource_access_review(self):\n ...
[ "0.8901764", "0.86484456", "0.83292806", "0.8152231", "0.7614643", "0.7595457", "0.727164", "0.68095934", "0.64966995", "0.64552003", "0.64425", "0.640721", "0.6266356", "0.618264", "0.6176252", "0.60174143", "0.58575183", "0.5827571", "0.5796689", "0.5691992", "0.5654502", ...
0.948246
0
Test case for create_local_subject_access_review_for_all_namespaces
def test_create_local_subject_access_review_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_subject_access_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_local_subject_access_review(self):\n pass", "def test_create_namespaced_subject_access_review(self):\n pass", "def test_create_local_resource_access_review_for_all_namespaces(self):\n ...
[ "0.90018356", "0.8949623", "0.83789283", "0.8202618", "0.78597677", "0.76823825", "0.75124013", "0.7469965", "0.74598575", "0.7259152", "0.7247358", "0.7104957", "0.68606955", "0.68398", "0.6802648", "0.6599427", "0.65417445", "0.64984524", "0.6415799", "0.60436964", "0.58291...
0.9539208
0
Test case for create_namespaced_build
def test_create_namespaced_build(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_build_for_all_namespaces(self):\n pass", "def test_create_namespaced_build_config(self):\n pass", "def test_replace_namespaced_build(self):\n pass", "def test_read_namespaced_build(self):\n pass", "def test_patch_namespaced_build(self):\n pass", "def tes...
[ "0.8530625", "0.8417138", "0.82268775", "0.81617975", "0.80366176", "0.77519846", "0.7740092", "0.7529223", "0.7479315", "0.7324547", "0.72639734", "0.7197562", "0.7184945", "0.7144477", "0.7107239", "0.6864148", "0.6862723", "0.68625736", "0.6789749", "0.6729888", "0.6638920...
0.93899393
0
Test case for create_namespaced_build_config
def test_create_namespaced_build_config(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_build_config_for_all_namespaces(self):\n pass", "def test_read_namespaced_build_config(self):\n pass", "def test_replace_namespaced_build_config(self):\n pass", "def test_patch_namespaced_build_config(self):\n pass", "def test_create_namespaced_build(self):\n ...
[ "0.8390357", "0.83538175", "0.833125", "0.8276811", "0.8259123", "0.7840799", "0.7711901", "0.7612198", "0.759606", "0.75942606", "0.73392516", "0.7312688", "0.72951406", "0.70803857", "0.69286376", "0.68896776", "0.67186266", "0.66469157", "0.6568455", "0.65197074", "0.65183...
0.9304347
0
Test case for create_namespaced_build_request_clone
def test_create_namespaced_build_request_clone(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_build_request_instantiate(self):\n pass", "def create_namespaced_build_request_clone(self, body, namespace, name, **kwargs):\n\n all_params = ['body', 'namespace', 'name', 'pretty']\n all_params.append('callback')\n\n params = locals()\n for key, val ...
[ "0.8146872", "0.78550905", "0.7141217", "0.6954805", "0.64625037", "0.6384412", "0.6225193", "0.6211751", "0.6194858", "0.6170727", "0.6025129", "0.5986756", "0.59718937", "0.58461773", "0.5831983", "0.58244306", "0.57895935", "0.5776999", "0.5758112", "0.5757935", "0.5756703...
0.94719195
0
Test case for create_namespaced_build_request_instantiate
def test_create_namespaced_build_request_instantiate(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_deployment_request_instantiate(self):\n pass", "def test_create_namespaced_build_request_clone(self):\n pass", "def create_namespaced_build_request_instantiate(self, body, namespace, name, **kwargs):\n\n all_params = ['body', 'namespace', 'name', 'pretty']\n ...
[ "0.8502078", "0.83170307", "0.76645523", "0.74378824", "0.67364556", "0.66046137", "0.65032786", "0.6417477", "0.63983643", "0.63728017", "0.6030284", "0.6030111", "0.6029587", "0.60130584", "0.59885395", "0.59660023", "0.58713955", "0.5854541", "0.5824336", "0.58161306", "0....
0.94818825
0
Test case for create_namespaced_deployment_config
def test_create_namespaced_deployment_config(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_generate_namespaced_deployment_config(self):\n pass", "def test_create_deployment_config_for_all_namespaces(self):\n pass", "def test_create_namespaced_deployment_config_rollback(self):\n pass", "def test_replace_namespaced_deployment_config(self):\n pass", "def test_pa...
[ "0.90208375", "0.8209942", "0.8146177", "0.80212843", "0.7990842", "0.793712", "0.7865985", "0.77581066", "0.7747018", "0.7700346", "0.7516933", "0.73865527", "0.7349639", "0.7249784", "0.71158814", "0.7051148", "0.7023652", "0.68583107", "0.6829023", "0.6737736", "0.6664528"...
0.9388213
0
Test case for create_namespaced_deployment_config_rollback
def test_create_namespaced_deployment_config_rollback(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_deployment_config_rollback_rollback(self):\n pass", "def test_create_deployment_config_rollback_for_all_namespaces(self):\n pass", "def test_create_namespaced_deployment_config(self):\n pass", "def create_namespaced_deployment_config_rollback(self, body, namesp...
[ "0.95496124", "0.876369", "0.7729952", "0.75151396", "0.7498242", "0.73134464", "0.72640294", "0.7052112", "0.70098376", "0.69794977", "0.6806187", "0.65818095", "0.646597", "0.6447228", "0.6445448", "0.6261418", "0.6249298", "0.61448437", "0.6122219", "0.60377884", "0.596242...
0.9451514
1
Test case for create_namespaced_deployment_config_rollback_rollback
def test_create_namespaced_deployment_config_rollback_rollback(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_deployment_config_rollback(self):\n pass", "def test_create_deployment_config_rollback_for_all_namespaces(self):\n pass", "def create_namespaced_deployment_config_rollback(self, body, namespace, **kwargs):\n\n all_params = ['body', 'namespace', 'pretty']\n ...
[ "0.9274602", "0.8626157", "0.76450515", "0.7275244", "0.7047108", "0.68757814", "0.68461037", "0.68035114", "0.6572638", "0.6572585", "0.65713704", "0.6433421", "0.6146313", "0.6136469", "0.6077359", "0.60721695", "0.594927", "0.593165", "0.5907874", "0.58826965", "0.584168",...
0.95047075
0
Test case for create_namespaced_deployment_request_instantiate
def test_create_namespaced_deployment_request_instantiate(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_build_request_instantiate(self):\n pass", "def test_create_namespaced_build_request_clone(self):\n pass", "def test_create_namespaced_deployment_config(self):\n pass", "def create_namespaced_build_request_instantiate(self, body, namespace, name, **kwargs):\n\n ...
[ "0.848718", "0.72598684", "0.6961696", "0.6730869", "0.65543026", "0.65338725", "0.63395345", "0.6294449", "0.6169637", "0.6159322", "0.60053974", "0.5977857", "0.5956605", "0.59537166", "0.5938256", "0.59331006", "0.58611876", "0.58389896", "0.58209556", "0.5806656", "0.5758...
0.9507465
0
Test case for create_namespaced_egress_network_policy
def test_create_namespaced_egress_network_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_replace_namespaced_egress_network_policy(self):\n pass", "def test_create_egress_network_policy_for_all_namespaces(self):\n pass", "def test_delete_namespaced_egress_network_policy(self):\n pass", "def test_patch_namespaced_egress_network_policy(self):\n pass", "def tes...
[ "0.85500234", "0.85020465", "0.8327282", "0.8308975", "0.8153974", "0.8132251", "0.7349736", "0.70806813", "0.6439708", "0.61834925", "0.60855883", "0.5994976", "0.58577484", "0.5675303", "0.5673527", "0.5646572", "0.5635577", "0.5631561", "0.5623684", "0.55165076", "0.542628...
0.9485625
0
Test case for create_namespaced_image_stream
def test_create_namespaced_image_stream(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_image_stream_tag(self):\n pass", "def test_create_namespaced_image_stream_import(self):\n pass", "def test_create_namespaced_image_stream_mapping(self):\n pass", "def test_create_image_stream_for_all_namespaces(self):\n pass", "def test_read_namespaced...
[ "0.9074419", "0.8997049", "0.88357306", "0.86543673", "0.8494418", "0.8480215", "0.8346549", "0.8278387", "0.8177445", "0.80639005", "0.7946452", "0.78927475", "0.78850615", "0.7807048", "0.7767278", "0.775735", "0.77389866", "0.772621", "0.74732554", "0.7464653", "0.7323373"...
0.95837915
0
Test case for create_namespaced_image_stream_import
def test_create_namespaced_image_stream_import(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_image_stream(self):\n pass", "def test_create_image_stream_import_for_all_namespaces(self):\n pass", "def test_create_namespaced_image_stream_tag(self):\n pass", "def test_create_namespaced_image_stream_mapping(self):\n pass", "def test_read_namespaced...
[ "0.914461", "0.8810778", "0.8651879", "0.8548657", "0.8406771", "0.84033275", "0.8376729", "0.8086984", "0.8073045", "0.805253", "0.79443", "0.77436376", "0.773594", "0.7619955", "0.7598826", "0.7590755", "0.7555989", "0.7538121", "0.73467183", "0.7318656", "0.7120735", "0....
0.96332693
0
Test case for create_namespaced_image_stream_mapping
def test_create_namespaced_image_stream_mapping(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_image_stream_mapping_for_all_namespaces(self):\n pass", "def test_create_namespaced_image_stream(self):\n pass", "def test_create_namespaced_image_stream_import(self):\n pass", "def test_create_namespaced_image_stream_tag(self):\n pass", "def test_create_image_st...
[ "0.89398944", "0.8848656", "0.8484017", "0.84818804", "0.8191045", "0.80822265", "0.7962002", "0.7901439", "0.78981113", "0.779059", "0.771194", "0.7656804", "0.76329035", "0.75881535", "0.7520886", "0.74736154", "0.7459581", "0.735906", "0.7176009", "0.7122044", "0.6997119",...
0.9681065
0
Test case for create_namespaced_image_stream_tag
def test_create_namespaced_image_stream_tag(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_image_stream(self):\n pass", "def test_create_image_stream_tag_for_all_namespaces(self):\n pass", "def test_replace_namespaced_image_stream_tag(self):\n pass", "def test_patch_namespaced_image_stream_tag(self):\n pass", "def test_read_namespaced_image_...
[ "0.89600205", "0.873407", "0.84832454", "0.84246355", "0.83724564", "0.83174497", "0.8240987", "0.8072651", "0.8021808", "0.78888726", "0.7838388", "0.7737442", "0.7690326", "0.76177514", "0.7451997", "0.7383333", "0.7354368", "0.721079", "0.7178022", "0.71441764", "0.7141273...
0.96030164
0
Test case for create_namespaced_local_resource_access_review
def test_create_namespaced_local_resource_access_review(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_resource_access_review(self):\n pass", "def test_create_local_resource_access_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_local_subject_access_review(self):\n pass", "def test_create_resource_access_review_for_all_namespaces(self):\n ...
[ "0.86689955", "0.8598542", "0.7941337", "0.7766395", "0.7418849", "0.730348", "0.6976435", "0.6538376", "0.6496826", "0.64750427", "0.6311006", "0.61978716", "0.60786754", "0.6051682", "0.5989073", "0.5942939", "0.5938958", "0.5880371", "0.5880273", "0.58254516", "0.57635087"...
0.940623
0
Test case for create_namespaced_local_subject_access_review
def test_create_namespaced_local_subject_access_review(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_subject_access_review(self):\n pass", "def test_create_local_subject_access_review_for_all_namespaces(self):\n pass", "def test_create_subject_access_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_local_resource_access_review(self):\n ...
[ "0.88866955", "0.8753824", "0.8224597", "0.7894797", "0.77134854", "0.7585319", "0.75217044", "0.72628343", "0.7259053", "0.72015387", "0.7122134", "0.6877161", "0.6840564", "0.68367285", "0.6818058", "0.6802144", "0.66375524", "0.65448123", "0.65413296", "0.6315185", "0.6178...
0.94674575
0
Test case for create_namespaced_pod_security_policy_review
def test_create_namespaced_pod_security_policy_review(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_pod_security_policy_subject_review(self):\n pass", "def test_create_namespaced_pod_security_policy_self_subject_review(self):\n pass", "def test_create_pod_security_policy_review_for_all_namespaces(self):\n pass", "def test_create_pod_security_policy_subject_re...
[ "0.91099143", "0.87703824", "0.87325585", "0.8281268", "0.81559813", "0.78384876", "0.6911392", "0.6884812", "0.6676987", "0.6674108", "0.66300714", "0.6588382", "0.65482754", "0.64584625", "0.6453993", "0.64402235", "0.6327952", "0.6307666", "0.63071185", "0.62481487", "0.61...
0.95652115
0
Test case for create_namespaced_pod_security_policy_self_subject_review
def test_create_namespaced_pod_security_policy_self_subject_review(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_pod_security_policy_subject_review(self):\n pass", "def test_create_pod_security_policy_self_subject_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_pod_security_policy_review(self):\n pass", "def test_create_pod_security_policy_subject_re...
[ "0.91454023", "0.89536476", "0.8558195", "0.84508944", "0.7929238", "0.7433228", "0.7082314", "0.69961935", "0.68619114", "0.67855215", "0.6334922", "0.62115645", "0.6157037", "0.60863394", "0.60768753", "0.58363783", "0.58181775", "0.5789456", "0.578296", "0.5721847", "0.569...
0.9542857
0
Test case for create_namespaced_pod_security_policy_subject_review
def test_create_namespaced_pod_security_policy_subject_review(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_pod_security_policy_self_subject_review(self):\n pass", "def test_create_pod_security_policy_subject_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_pod_security_policy_review(self):\n pass", "def test_create_pod_security_policy_self_subje...
[ "0.907722", "0.8850439", "0.88305086", "0.8541379", "0.8246502", "0.7641548", "0.73712593", "0.7152709", "0.71513295", "0.6908093", "0.66712636", "0.6374191", "0.6345974", "0.6310135", "0.6178523", "0.6142125", "0.61253786", "0.6121054", "0.5968019", "0.5910762", "0.5841365",...
0.9521095
0
Test case for create_namespaced_policy
def test_create_namespaced_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_policy_binding(self):\n pass", "def test_create_policy_for_all_namespaces(self):\n pass", "def test_create_namespaced_pod_security_policy_review(self):\n pass", "def test_replace_namespaced_policy(self):\n pass", "def test_create_namespaced_pod_securit...
[ "0.8328139", "0.83136094", "0.7929725", "0.7657052", "0.75435853", "0.74992865", "0.7413273", "0.7398919", "0.73692733", "0.73265564", "0.7284671", "0.7074059", "0.68835217", "0.6880968", "0.6851964", "0.6808157", "0.67670083", "0.67465657", "0.6724354", "0.66848195", "0.6639...
0.9380289
0
Test case for create_namespaced_policy_binding
def test_create_namespaced_policy_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_policy(self):\n pass", "def test_create_policy_binding_for_all_namespaces(self):\n pass", "def test_replace_namespaced_policy_binding(self):\n pass", "def test_patch_namespaced_policy_binding(self):\n pass", "def test_read_namespaced_policy_binding(sel...
[ "0.84590375", "0.8220456", "0.8165595", "0.78607124", "0.78552896", "0.76295924", "0.7627882", "0.7422", "0.7364754", "0.7327115", "0.73057556", "0.72808963", "0.7274273", "0.6991942", "0.68144697", "0.6777888", "0.67765397", "0.6713866", "0.670911", "0.6675343", "0.6605467",...
0.94703835
0
Test case for create_namespaced_processed_template
def test_create_namespaced_processed_template(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_template(self):\n pass", "def test_create_processed_template_for_all_namespaces_v1(self):\n pass", "def test_create_template_for_all_namespaces(self):\n pass", "def test_read_namespaced_template(self):\n pass", "def test_replace_namespaced_template(sel...
[ "0.8774372", "0.826261", "0.7973146", "0.7525232", "0.74579394", "0.72425276", "0.69610995", "0.6892354", "0.6822811", "0.6793285", "0.6640391", "0.64176494", "0.6414897", "0.6406918", "0.6380365", "0.6345976", "0.6197154", "0.61853707", "0.6177289", "0.61240983", "0.61018217...
0.9450272
0
Test case for create_namespaced_resource_access_review
def test_create_namespaced_resource_access_review(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_resource_access_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_local_resource_access_review(self):\n pass", "def test_create_namespaced_subject_access_review(self):\n pass", "def test_create_local_resource_access_review_for_all_namespaces(self):\n ...
[ "0.84853894", "0.8388937", "0.7883514", "0.77488244", "0.749628", "0.74303234", "0.7335768", "0.6819785", "0.6791199", "0.66249764", "0.65099764", "0.64683306", "0.64654547", "0.64338446", "0.6429376", "0.6367493", "0.6316877", "0.626278", "0.61675453", "0.6113542", "0.610345...
0.9307612
0
Test case for create_namespaced_role
def test_create_namespaced_role(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_role_for_all_namespaces(self):\n pass", "def test_create_namespaced_role_binding(self):\n pass", "def test_create_cluster_role(self):\n pass", "def test_replace_namespaced_role(self):\n pass", "def test_create_namespaced_role_binding_restriction(self):\n p...
[ "0.85649836", "0.83033484", "0.783981", "0.7770748", "0.7743243", "0.7678724", "0.76069176", "0.7559762", "0.7537983", "0.7534534", "0.7465364", "0.73516494", "0.72866964", "0.72550946", "0.7237439", "0.7227171", "0.71830875", "0.7102726", "0.70945835", "0.7060393", "0.695555...
0.9516448
0
Test case for create_namespaced_role_binding
def test_create_namespaced_role_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_role_binding_restriction(self):\n pass", "def test_create_namespaced_role(self):\n pass", "def test_create_role_binding_for_all_namespaces(self):\n pass", "def test_replace_namespaced_role_binding(self):\n pass", "def test_create_cluster_role_binding(s...
[ "0.89016575", "0.8535264", "0.83762336", "0.825378", "0.8092187", "0.8072715", "0.80282414", "0.78814507", "0.7819468", "0.78118175", "0.77375346", "0.7596982", "0.75738597", "0.74879694", "0.7451836", "0.74033034", "0.7268823", "0.7260591", "0.7252245", "0.7243034", "0.71605...
0.9518742
0
Test case for create_namespaced_role_binding_restriction
def test_create_namespaced_role_binding_restriction(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_role_binding(self):\n pass", "def test_replace_namespaced_role_binding_restriction(self):\n pass", "def test_create_role_binding_restriction_for_all_namespaces(self):\n pass", "def test_patch_namespaced_role_binding_restriction(self):\n pass", "def tes...
[ "0.8825415", "0.86202425", "0.85828614", "0.84861803", "0.8273354", "0.8103265", "0.79578567", "0.7955803", "0.7955281", "0.7866802", "0.7853996", "0.773564", "0.75298023", "0.7327444", "0.72259253", "0.7177987", "0.7160341", "0.7147115", "0.7123267", "0.70621806", "0.7001513...
0.95170784
0
Test case for create_namespaced_route
def test_create_namespaced_route(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_route_for_all_namespaces(self):\n pass", "def test_replace_namespaced_route(self):\n pass", "def test_patch_namespaced_route(self):\n pass", "def test_read_namespaced_route(self):\n pass", "def test_list_namespaced_route(self):\n pass", "def create_names...
[ "0.83822095", "0.79478455", "0.77725613", "0.7664274", "0.7533141", "0.7413956", "0.7236707", "0.7198782", "0.687994", "0.6793015", "0.67491585", "0.67317766", "0.6596346", "0.65922016", "0.6580498", "0.6486518", "0.6480092", "0.64339334", "0.6400338", "0.6358479", "0.6214070...
0.9503767
0
Test case for create_namespaced_self_subject_rules_review
def test_create_namespaced_self_subject_rules_review(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_subject_rules_review(self):\n pass", "def test_create_self_subject_rules_review_for_all_namespaces(self):\n pass", "def test_create_subject_rules_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_subject_access_review(self):\n pass", ...
[ "0.89919", "0.87299865", "0.82122886", "0.8003907", "0.7658842", "0.7605954", "0.74005216", "0.7370446", "0.7322079", "0.7126504", "0.6919436", "0.65064037", "0.6488618", "0.62308323", "0.60331285", "0.59710264", "0.59544426", "0.59442174", "0.5913251", "0.5677531", "0.566065...
0.94844383
0
Test case for create_namespaced_subject_access_review
def test_create_namespaced_subject_access_review(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_local_subject_access_review(self):\n pass", "def test_create_subject_access_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_subject_rules_review(self):\n pass", "def test_create_local_subject_access_review_for_all_namespaces(self):\n ...
[ "0.8691152", "0.8668913", "0.8117195", "0.79792494", "0.784427", "0.7794664", "0.76211315", "0.749667", "0.730179", "0.72686255", "0.71741617", "0.70845556", "0.7058258", "0.68964833", "0.67860377", "0.6762451", "0.67181814", "0.66449463", "0.63819665", "0.63189125", "0.62274...
0.93854207
0
Test case for create_namespaced_subject_rules_review
def test_create_namespaced_subject_rules_review(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_subject_rules_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_self_subject_rules_review(self):\n pass", "def test_create_self_subject_rules_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_subject_access_review(self):\n pa...
[ "0.87527484", "0.864196", "0.8340897", "0.83395404", "0.77852213", "0.7692982", "0.76032466", "0.743721", "0.713967", "0.69997925", "0.6894162", "0.6727836", "0.65426594", "0.6521743", "0.65150785", "0.6346348", "0.63360554", "0.6250166", "0.6147444", "0.5890275", "0.5866507"...
0.94416314
0
Test case for create_namespaced_template
def test_create_namespaced_template(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_processed_template(self):\n pass", "def test_create_template_for_all_namespaces(self):\n pass", "def test_create_processed_template_for_all_namespaces_v1(self):\n pass", "def test_replace_namespaced_template(self):\n pass", "def test_read_namespaced_te...
[ "0.9063057", "0.8424793", "0.76685053", "0.75706923", "0.75180113", "0.7437994", "0.7421317", "0.7137956", "0.71133035", "0.6957671", "0.6931303", "0.6799837", "0.6730453", "0.665336", "0.6586745", "0.65825903", "0.6562071", "0.649238", "0.6459614", "0.6456076", "0.64054525",...
0.9389032
0
Test case for create_net_namespace
def test_create_net_namespace(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_replace_net_namespace(self):\n pass", "def test_patch_net_namespace(self):\n pass", "def test_list_net_namespace(self):\n pass", "def create_namespace(node, namespace, delete_before_create=True):\n if delete_before_create:\n Namespaces.delete_namespace(node, na...
[ "0.7759162", "0.74978065", "0.7487891", "0.7465961", "0.7397625", "0.73676527", "0.7116934", "0.7098071", "0.7013119", "0.69430435", "0.68694407", "0.6854316", "0.6814299", "0.68097496", "0.6795307", "0.67870086", "0.67310244", "0.6648795", "0.6644044", "0.6622623", "0.661692...
0.9513551
0
Test case for create_o_auth_access_token
def test_create_o_auth_access_token(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_o_auth_authorize_token(self):\n pass", "def test_read_o_auth_access_token(self):\n pass", "def test_list_o_auth_access_token(self):\n pass", "def test_access_token_post(self):\n client = oauth.Client(self.consumer, None)\n resp, content = client.request(self...
[ "0.81766874", "0.7844291", "0.77870536", "0.7538751", "0.7524757", "0.7469308", "0.7321858", "0.7285482", "0.71384555", "0.705267", "0.70449823", "0.7003405", "0.69649833", "0.6961895", "0.69602996", "0.69434386", "0.6942516", "0.6924677", "0.69217265", "0.6909075", "0.687921...
0.94835085
0
Test case for create_o_auth_authorize_token
def test_create_o_auth_authorize_token(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_o_auth_access_token(self):\n pass", "def test_read_o_auth_authorize_token(self):\n pass", "def test_list_o_auth_authorize_token(self):\n pass", "def test_patch_o_auth_authorize_token(self):\n pass", "def test_replace_o_auth_authorize_token(self):\n pass", ...
[ "0.82119906", "0.81164664", "0.80142766", "0.77870846", "0.772073", "0.73748153", "0.72575486", "0.7154286", "0.7105832", "0.7101054", "0.6872084", "0.68605083", "0.679444", "0.6780994", "0.6768756", "0.66981155", "0.66753817", "0.66364247", "0.6621737", "0.6621375", "0.66010...
0.9448739
0
Test case for create_o_auth_client
def test_create_o_auth_client(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_o_auth_client_authorization(self):\n pass", "def test_create_client(self):\n pass", "def test_client_create(self):\n pass", "def test_read_o_auth_client(self):\n pass", "def test_replace_o_auth_client(self):\n pass", "def test_client_verification_create(...
[ "0.9028773", "0.806127", "0.78265065", "0.778311", "0.7708662", "0.76266295", "0.7599346", "0.75552", "0.75375646", "0.7521711", "0.7507909", "0.74780416", "0.7438388", "0.73571885", "0.73456657", "0.7196681", "0.71837", "0.717732", "0.71646917", "0.7092022", "0.7067458", "...
0.9368728
0
Test case for create_o_auth_client_authorization
def test_create_o_auth_client_authorization(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_o_auth_client(self):\n pass", "def test_replace_o_auth_client_authorization(self):\n pass", "def test_read_o_auth_client_authorization(self):\n pass", "def test_list_o_auth_client_authorization(self):\n pass", "def test_patch_o_auth_client_authorization(self):\n ...
[ "0.86155874", "0.7900972", "0.7896313", "0.7753028", "0.7589106", "0.7485101", "0.74720734", "0.7339221", "0.7294155", "0.72583526", "0.7211064", "0.7198834", "0.70936495", "0.698751", "0.6973961", "0.6940471", "0.68962914", "0.6894741", "0.67974263", "0.6749787", "0.6719089"...
0.928411
0
Test case for create_pod_security_policy_review_for_all_namespaces
def test_create_pod_security_policy_review_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_pod_security_policy_subject_review_for_all_namespaces(self):\n pass", "def test_create_pod_security_policy_self_subject_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_pod_security_policy_review(self):\n pass", "def test_create_namespaced_pod_securit...
[ "0.9196541", "0.8888181", "0.88094187", "0.8515079", "0.814648", "0.7544316", "0.71425086", "0.709908", "0.6955186", "0.6808823", "0.6664247", "0.6653211", "0.6614513", "0.6614365", "0.6499971", "0.6470749", "0.64345855", "0.636653", "0.63553905", "0.6262463", "0.6196626", ...
0.9593711
0