query
stringlengths
10
2k
document
stringlengths
20
51.2k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Calculate the ionization fraction, in equilibrium, for all ions of the element. Calculate the population fractions for every ion of this element as a function of temperature, assuming ionization equilibrium. This returns a matrix with dimensions ``(n,Z+1)``, where ``n`` corresponds to the temperature dimension and ``Z+...
def equilibrium_ionization(self): # Solve system of equations using singular value decomposition _, _, V = np.linalg.svd(self._rate_matrix.value) # Select columns of V with smallest eigenvalues (returned in descending order) # NOTE: must take the absolute value as the SVD solution is onl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def calculate(self, temperature):\n self.Temperature = np.array(temperature, 'float64')\n if self.Temperature.size == 1:\n print(' temperature must be an array')\n return\n ionList = []\n chIons = []\n z = self.Z\n for stage in range(1, z+2):\n ...
[ "0.55999285", "0.5488472", "0.5296714", "0.50601256", "0.5011484", "0.4979466", "0.48647112", "0.48613384", "0.48146105", "0.4788765", "0.47775778", "0.475389", "0.47358677", "0.47119826", "0.47119826", "0.4689794", "0.46835712", "0.46832117", "0.4669735", "0.4662512", "0.465...
0.67447615
0
Initializing name, color and age attributes
def __init__(self, name, color, age): self.name = name self.color = color self.age = age self.breed = "something"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, name, color):\n self.name = name\n self.color = color", "def __init__(self, name, race, sex, age):\n self.Race = race\n self.Sex = sex\n self.Age = age\n self.Name = name", "def __init__(self, name, age):\n\t\tself.name = name\n\t\tself.age = age", "def __...
[ "0.7229465", "0.714791", "0.7094137", "0.7094137", "0.7094137", "0.7010226", "0.7001638", "0.69976294", "0.69976294", "0.69976294", "0.69976294", "0.69844526", "0.69432414", "0.6920252", "0.6920252", "0.6920252", "0.6920252", "0.6920252", "0.6920252", "0.6920252", "0.6920252"...
0.76693255
0
Initializing restaurat_name and cuisine_type attributes
def __init__(self, restaurant_name, cuisine_type): self.restaurant_name = restaurant_name self.cuisine_type = cuisine_type self.number_served = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, restaurant_name, cuisine_type):\r\n\t\tself.restaurant_name = restaurant_name\r\n\t\tself.cuisine_type = cuisine_type", "def __init__(self, restaurant_name, cuisine_type):\n\t\tself.restaurant_name = restaurant_name.title()\n\t\tself.cuisine_type = cuisine_type", "def __init__(self, restaura...
[ "0.8389735", "0.8383585", "0.8328781", "0.82111484", "0.82111484", "0.82111484", "0.8124199", "0.8124199", "0.8077414", "0.8044229", "0.80015045", "0.7825798", "0.7825798", "0.78211445", "0.78179175", "0.78085977", "0.76126933", "0.72067785", "0.7148248", "0.7136754", "0.7136...
0.7834019
12
Initializing first_name and last_name attributes
def __init__(self, first_name, last_name): self.first_name = first_name self.last_name = last_name self.email = "abc" self.age = 20
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, first_name, last_name):\r\n self.first_name = first_name\r\n self.last_name = last_name", "def __init__(self, first_name, last_name):\r\n\r\n self.first_name = first_name\r\n self.last_name = last_name", "def __init__(self, first_name: str, last_name: str):\n ...
[ "0.7961424", "0.79049575", "0.78520286", "0.7568153", "0.73494816", "0.72775275", "0.7264979", "0.7236755", "0.7119964", "0.70897245", "0.70897245", "0.70897245", "0.70897245", "0.70897245", "0.70897245", "0.70897245", "0.70897245", "0.7085531", "0.69607544", "0.6951678", "0....
0.72440577
7
Turn a json database file into a dicitonary
def json2dict(data): sub_all = data.get("values") keys = data.get("fields") dic_all = [] for sub in sub_all: x = dict(zip(keys, sub)) if not x['datastring'] is None: x['datastring'] = json.loads(x.get('datastring')) dic_all.append(x) return dic_all
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_from_json(path_to_db):\r\n with open(path_to_db, 'r') as fproc:\r\n data_ = json.load(fproc)\r\n \r\n return data_", "def read_db(self):\n with open(self.filename, 'r') as database:\n data = json.load(database)\n self.data = data", "def parse_database(d...
[ "0.74750674", "0.7113321", "0.7090973", "0.68696135", "0.6744415", "0.67084914", "0.66681075", "0.6646405", "0.6600848", "0.65745395", "0.6572555", "0.655719", "0.65471816", "0.65214896", "0.64806795", "0.64779276", "0.6433419", "0.6399373", "0.639519", "0.63337386", "0.63187...
0.0
-1
Generates a list of full paths corresponding to the files in a given source directory.
def compile_files(root): files = [os.path.join(root, f) for f in os.listdir(root) if not f.startswith(".")] return files
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_source_files(self):\n return [\n path.as_posix()\n for path in _Path(self.src_dir).rglob(\"*\")\n if not path.is_dir()\n ] + [\n (path / \"CMakeLists.txt\").as_posix()\n for path in _PurePath(self.src_dir).parents\n ]", "def get_...
[ "0.72855586", "0.7235734", "0.7105525", "0.7096677", "0.7070382", "0.7066401", "0.6954114", "0.69186455", "0.686106", "0.6853044", "0.6829583", "0.6822751", "0.67811435", "0.6775402", "0.6696862", "0.66400325", "0.6605563", "0.65650314", "0.6562673", "0.6506892", "0.64855105"...
0.6337624
32
Gets the filename sans extension from a file path.
def file_name(path): return os.path.basename(path).split('.')[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_file_name_with_ext(path: str) -> str:\n return os.path.basename(path)", "def getfilename(path):\r\n return path.split('\\\\').pop().split('/').pop().rsplit('.', 1)[0]", "def get_file_name(path: str) -> str:\n return os.path.splitext(os.path.basename(path))[0]", "def get_filename(path):\n ...
[ "0.87634933", "0.8712568", "0.8711577", "0.8615625", "0.85573363", "0.85461634", "0.85347843", "0.84573877", "0.8419906", "0.837513", "0.82898366", "0.8236268", "0.8124858", "0.8120405", "0.8083538", "0.803336", "0.79259366", "0.790618", "0.78862053", "0.78698707", "0.7816423...
0.8509036
7
Convenience function to return basename.
def base_name(path): return os.path.basename(path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def basename(path):\r\n return split(path)[1]", "def basename(self):\n return self._getbyspec(\"basename\")[0]", "def basename(path: str) -> str:\n pass", "def basename(path):\n\n return path.rpartition(\"/\")[2]", "def basename(self):\n return get_basename(self.filename)", "def base...
[ "0.834663", "0.83431476", "0.833451", "0.8248663", "0.8191109", "0.8124439", "0.80235136", "0.79853994", "0.7927616", "0.7927259", "0.7925511", "0.79180783", "0.79175466", "0.7858909", "0.785414", "0.78424525", "0.7744179", "0.7741232", "0.7652428", "0.76208675", "0.75588536"...
0.7424492
23
Opens a new database connection if there is none yet for the current application context.
def get_db(self): if not hasattr(g, 'sqlite_db'): g.sqlite_db = self.connect_db() return g.sqlite_db
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def db_open():\n if not hasattr(g, 'sqlite_db'):\n g.sqlite_db = db_connect()\n return g.sqlite_db", "def open_database(self):\n if self._conn is None:\n self._conn = sqlite3.connect(self._db_path)", "def open_db(db_name: str = DB_NAME) -> DBConnection:\n return sqlite3.connec...
[ "0.7737739", "0.75827533", "0.7317395", "0.7169041", "0.702287", "0.6966418", "0.69545615", "0.6949175", "0.689662", "0.6843248", "0.68287647", "0.6818979", "0.6806134", "0.6795601", "0.676938", "0.6762347", "0.67520237", "0.67473835", "0.67323875", "0.66999775", "0.6688061",...
0.0
-1
Checks if offer book is updated
def is_updated(self): return self.timestamp > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update(self, book_info, destroy):\n self.connect()\n is_issue = len(book_info) == 2\n\n bid = book_info[0].get()\n if is_issue:\n issue_to = book_info[1].get()\n\n if is_issue:\n extract_bid = f\"select bid from {self.book_table}\"\n else:\n ...
[ "0.66868323", "0.6317889", "0.63150305", "0.62709373", "0.62313783", "0.61310667", "0.6013151", "0.6004659", "0.59815544", "0.59777766", "0.5953053", "0.5926266", "0.59201884", "0.5893749", "0.58760464", "0.5870145", "0.58474725", "0.581722", "0.5815231", "0.58059347", "0.578...
0.6063135
6
Get brightness of image in RGB format
def estimate_brightness(self): intensity = self._get_intensity() self.avg_standard_lum = np.sum(intensity) / (self.img_height * self.img_width) return self.avg_standard_lum
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_image_brightness(image_path):\n # Convert the Image to greyscale\n img = Image.open(image_path).convert('L')\n # Get the average pixel brightness\n stat = ImageStat.Stat(img)\n return stat.rms[0]", "def brightness(rgb):\n # return (min(rgb) + max(rgb)) / 2\n return rgb_to_hls(rgb)[1]...
[ "0.8224858", "0.82156515", "0.80518216", "0.78450835", "0.7830698", "0.7777487", "0.77578187", "0.7643308", "0.7539643", "0.75163233", "0.74390584", "0.7405258", "0.7369598", "0.73672646", "0.7332657", "0.73181295", "0.71981156", "0.71961015", "0.71961015", "0.71961015", "0.7...
0.737651
12
Reads Excel sheet into panda DataFrame
def get_dataframe(path, sheet, header_row, data_row_start, data_row_end): skip_footer_nrows = get_skip_footer_length(path, sheet, header_row, data_row_end, verbose = SHOW_MESSAGES) # read data from sheet df = pd.read_excel(path, sheet, index_col=0, header=header_row-1, na_values=NA_LIST...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_excel_df(path_datafile):\n\treturn pd.read_excel(path_datafile, sheet_name=None)", "def readxl(df, file_name):\r\n print( 'reading the excel file') \r\n df = pd.read_excel(file_name, sheet_name = 'Sheet1')\r\n df.columns = [x.strip('/s+').lower().replace(' ','_').replace('.','_') for x in df.co...
[ "0.7615827", "0.7544734", "0.7537967", "0.7383408", "0.73060113", "0.7235353", "0.7133055", "0.70751494", "0.69122845", "0.6886774", "0.68643445", "0.6854895", "0.68512046", "0.6796116", "0.67596865", "0.67408925", "0.67245686", "0.66885316", "0.6684376", "0.6677183", "0.6668...
0.68317246
13
Takes a dataset string and return that data in a dataframe!
def get_dfs(dataset): test_slice = False if 'test_' in dataset: dataset = dataset.replace('test_', '') test_slice = True ratings_path = BUILTIN_DATASETS[dataset].path print('Path to ratings file is: {}'.format(ratings_path)) if not os.path.isfile(ratings_path): download_built...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_dataset() -> pd.DataFrame:\n\n data = load_iris(as_frame=True)\n\n dataset = data.frame\n dataset.rename(\n columns=lambda colname: colname.strip(' (cm)').replace(' ', '_'),\n inplace=True\n )\n\n return dataset", "def get_df(data):\n df = pd.read_csv(\n data,\n ...
[ "0.685447", "0.6847989", "0.67455137", "0.6680286", "0.66781944", "0.6504736", "0.6503377", "0.6491308", "0.64856774", "0.6466069", "0.64520776", "0.64179295", "0.64059526", "0.63421535", "0.63157284", "0.62972033", "0.6282964", "0.62732446", "0.626843", "0.6258372", "0.62007...
0.0
-1
This class is always instantiated with a DataHandler class instance. This instance should have the pipeline run, with extra columns included that identify the candidate sensors.
def __init__(self, data_handler_obj): self.data_handler = data_handler_obj self.sensor_keys = np.array(list(self.data_handler.extra_matrices.keys())) if len(self.sensor_keys) == 0: print("Please add sensor columns to DataHandler pipeline.") return self.coverage_sc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_pipeline(self):\n pipe_distance = make_pipeline(DistanceTransformer(), RobustScaler())\n pipe_time = make_pipeline(TimeFeaturesEncoder(time_column='pickup_datetime'), OneHotEncoder(handle_unknown='ignore'))\n dist_cols = ['pickup_latitude', 'pickup_longitude', 'dropoff_latitude', 'drop...
[ "0.5981283", "0.5748262", "0.5745058", "0.5740179", "0.573706", "0.5722975", "0.56946933", "0.5666524", "0.56656593", "0.5637534", "0.56011313", "0.5574644", "0.5571768", "0.55624294", "0.55260295", "0.5505294", "0.5492911", "0.54925513", "0.5490077", "0.5489706", "0.54857033...
0.7206935
0
Sets the name of this UpdateInboxOptions.
def name(self, name): self._name = name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_name(self, name):\n self.options['name'] = name", "def set_name(self, name):\n self.settings[\"name\"] = name", "def set_name(self, name):\n self.name = name # overwrite the existing name with the input name", "def set_name(self, name):\n self.name = name # overwrite the...
[ "0.70393825", "0.64819753", "0.64318216", "0.64318216", "0.6332718", "0.6325758", "0.6325758", "0.62993973", "0.62860096", "0.62860096", "0.62860096", "0.62860096", "0.62860096", "0.6271976", "0.6239054", "0.6220303", "0.6220303", "0.6220303", "0.6220303", "0.62160844", "0.61...
0.0
-1
Sets the tags of this UpdateInboxOptions.
def tags(self, tags): self._tags = tags
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tags(self, tags):\n self._tags = tags", "def tags(self, tags):\n self._tags = tags", "def tags(self, tags):\n self._tags = tags", "def set_tags(self, tags):\n for task in self._tasks:\n task.set_tags(tags)\n\n return self", "def tags(self, tags: List[Tag]):...
[ "0.6343181", "0.6343181", "0.6343181", "0.6208632", "0.6134204", "0.6123332", "0.5888338", "0.56895727", "0.56456083", "0.5643491", "0.5628214", "0.55469376", "0.54833806", "0.54451567", "0.5267078", "0.5214299", "0.51585424", "0.5012797", "0.5010836", "0.49723527", "0.496777...
0.63935703
9
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, UpdateInboxOptions): return False return self.to_dict() == other.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False", "def __eq__(self, other):\n if i...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def __ne__(self, other): if not isinstance(other, UpdateInboxOptions): return True return self.to_dict() != other.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other) -> bool:\n return not self.__eq__(other)", "def __eq__(self, other):\n ...
[ "0.8455985", "0.83913255", "0.81440157", "0.8140831", "0.8132328", "0.80937284", "0.809181", "0.809181", "0.809181", "0.808509", "0.808509", "0.8076134", "0.8076134", "0.8065528", "0.80422795", "0.80422795", "0.80422795", "0.80422795", "0.80422795", "0.80422795", "0.80422795"...
0.0
-1
Asks user to specify a city, month, and day to analyze.
def get_filters(): print('Hello! Let\'s explore some US bikeshare data!') # get user input for city (chicago, new york city, washington). HINT: Use a while loop to handle invalid inputs while True: city = input('Enter desired city (new york city, chicago, washington): ').lower() if city in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Raw_Data(city,month,day):\n print(\"The city you have entered is: \",city)\n print(\"The month you have entered is: \",month)\n print(\"The day you have entered is: \",day)", "def get_filters():\n city = None\n month = None\n day = None\n while day == None:\n # TO DO: get user input f...
[ "0.667135", "0.65355784", "0.6459417", "0.6372491", "0.6349019", "0.63104576", "0.62870693", "0.6259983", "0.62297434", "0.62112975", "0.62049454", "0.6181796", "0.6170252", "0.6170224", "0.6159359", "0.61588275", "0.6153817", "0.61454034", "0.61345667", "0.61054", "0.6103349...
0.5910564
42
Loads data for the specified city and filters by month and day if applicable.
def load_data(city, month, day): print('\nLoading Data...\n') path = os.getcwd().replace('\\', '/') + '/' dir_path = os.path.dirname(os.path.realpath(__file__)).replace('\\', '/') + '/' try: df = pd.read_csv(dir_path + CITY_DATA.get(city)) except FileNotFoundError as e: sys.exit('E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_data(city, month, day):\n df = pd.read_csv(CITY_DATA [city])\n \n # convert the Start Time column to datetime\n df['Start Time'] = pd.to_datetime(df['Start Time'])\n \n # extract month and day of week from Start Time to create new columns\n df['month'] = df['Start Time'].dt.month\n ...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.797905", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.788921...
0.7343438
99
Displays statistics on the most frequent times of travel.
def time_stats(df, month, day): print('\nCalculating Time Stats...\n') # display the most common month mode_month = df['month'].mode()[0] print('(Pre-filter) the most common month is {}'.format(months[mode_month-1])) # display the most common day of week mode_day = df['day_of_week'].mode()[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def time_stats(df):\n\n print('\\nDisplaying the statistics on the most frequent times of '\n 'travel...\\n')\n start_time = time.time()\n\n # display the most common month\n most_common_month = df['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' +\...
[ "0.80247396", "0.80233026", "0.7915788", "0.78266186", "0.7822246", "0.78143597", "0.77659196", "0.7740343", "0.773628", "0.77344066", "0.76867086", "0.7668633", "0.7651731", "0.7644636", "0.76399267", "0.76367253", "0.7625196", "0.7623158", "0.7612803", "0.76002145", "0.7583...
0.0
-1
Displays statistics on the most popular stations and trip.
def station_stats(df): print('\nCalculating Station Stats...\n') # display most commonly used start station mode_start_station = df['Start Station'].mode()[0] print('the most common start station is {}'.format(mode_start_station)) # display most commonly used end station mode_end_station ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def station_stats(df):\n\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n start_time = time.time()\n\n # display most commonly used start station\n print(popular_start_station(df))\n\n # display most commonly used end station\n print(popular_end_station(df))\n\n # display m...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7446617", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198...
0.6791951
97
Displays statistics on the total and average trip duration.
def trip_duration_stats(df): print('\nCalculating Duration Stats...\n') # display total travel time total_time = df['Trip Duration'].sum() hours, rem = divmod(total_time, 3600) minutes, seconds = divmod(rem, 60) print('The total travel time was {:02.0f}:{:02.0f}:{:05.2f}'.format(hours, minutes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def trip_duration_stats(data):\n print('\\nCalculating Trip Duration...\\n')\n start_time = time.time()\n # display total travel time\n total_trip_time= data['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'. format(total_trip_time/3600))\n # display mean travel time\n avg_tri...
[ "0.8141812", "0.8024182", "0.80032814", "0.7948688", "0.79363805", "0.79301584", "0.7925556", "0.79139745", "0.79132074", "0.79069036", "0.79044855", "0.7899693", "0.78905743", "0.7888294", "0.78858185", "0.7883996", "0.78832155", "0.7881429", "0.7872763", "0.78675747", "0.78...
0.7718519
64
Add add two values as unsigned 8bit values.
def _uint8_add(self, a, b): return ((a & 0xFF) + (b & 0xFF)) & 0xFF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _add(a, b):\n\n # Todo: What if numbers have bigger length than 8\n a = _I2B(a, fixed_length=8)\n b = _I2B(b, fixed_length=8)\n return _B2I([i ^ j for i, j in zip(a, b)])", "def add_binary(a, b):\n return bin(a + b)[2:]", "def add64(a,b):\n return(np.add(a, b, dtype=np.uint64))", "def a...
[ "0.7118355", "0.6863869", "0.6765149", "0.665138", "0.66207707", "0.64209676", "0.63915664", "0.63376117", "0.62058306", "0.6175232", "0.60576916", "0.603546", "0.6032429", "0.59999746", "0.5897095", "0.5881542", "0.5862601", "0.5828295", "0.58184725", "0.5767223", "0.5704461...
0.8304557
0
Add headers to prevent caching.
def add_headers(r): r.headers["Cache-Control"] = "no-cache, no-store, must-revalidate" r.headers["Pragma"] = "no-cache" return r
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_header(req):\n req.headers[\"Cache-Control\"] = \"no-cache\"\n return req", "def add_header(response):\n\n # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control\n response.cache_control.no_store = True\n return response", "def add_header(response):\n\n # ht...
[ "0.84266937", "0.841703", "0.841703", "0.8395993", "0.83906054", "0.8382698", "0.83295184", "0.83173895", "0.8296773", "0.8296285", "0.8296285", "0.8296285", "0.8296285", "0.8296285", "0.8296285", "0.8296285", "0.8296285", "0.8296285", "0.8296285", "0.8296285", "0.8296285", ...
0.8201493
34
Quaternary Phase Shift Keying (QPSK) signal.
def anaqpsk(n_points, n_comp=None, f0=0.25): if n_comp is None: n_comp = round(n_points / 5.0) if (f0 < 0) or (f0 > 0.5): raise TypeError("f0 must be between 0 and 0.5") m = int(np.ceil(n_points / n_comp)) jumps = np.floor(4 * np.random.rand(m)) jumps[jumps == 4] = 3 pm0 = (np.pi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p(self, q0, phase=DEF_PHASE, ctrl=None):\n self.__add_quantum_gate(kind=PHASE_SHIFT, qid=[q0], phase=phase, ctrl=ctrl)\n return self", "def pitch_gen(freq: float, duration: float, signal: np.array, sample_freq: int, alpha=0.99, ref_length=50):\n total_sample_number = int(sample_freq * durati...
[ "0.5408042", "0.53112704", "0.5284314", "0.5255777", "0.5245763", "0.52398986", "0.5203375", "0.515996", "0.5156246", "0.5156018", "0.5143576", "0.5109748", "0.5084516", "0.5084516", "0.49888036", "0.49568644", "0.4943298", "0.4911667", "0.4909686", "0.4904744", "0.4900166", ...
0.0
-1
Constructor for Hand objects. Optionally takes a card or list of cards.
def __init__(self, cards = []): self.cards=cards
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, cards_on_table=None, cards=[], hands_list=[]):\n self.cards = cards\n self.cards_on_table = cards_on_table\n self.hands_list = hands_list", "def add_card(self, card):\n #Determines if there are more than one.\n if isinstance(card,list):\n for eleme...
[ "0.8086171", "0.71335506", "0.7127037", "0.6982965", "0.6802928", "0.65441805", "0.6543608", "0.6504932", "0.6497756", "0.6464802", "0.64384717", "0.63839906", "0.63518137", "0.63354486", "0.63304275", "0.63034296", "0.6294396", "0.6281515", "0.6276011", "0.6274122", "0.62712...
0.70107305
3
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_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_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_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_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_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_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_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_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_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_self_subject_review_for_all_namespaces
def test_create_pod_security_policy_self_subject_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_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_namespaced_pod_securit...
[ "0.93095344", "0.8983847", "0.87683463", "0.8758628", "0.81381744", "0.76423675", "0.75585026", "0.74677485", "0.7313108", "0.7245934", "0.7128543", "0.7116196", "0.7099344", "0.70359945", "0.66174614", "0.6549184", "0.6200282", "0.58766776", "0.5834126", "0.5710886", "0.5675...
0.95557183
0
Test case for create_pod_security_policy_subject_review_for_all_namespaces
def test_create_pod_security_policy_subject_review_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_pod_security_policy_self_subject_review_for_all_namespaces(self):\n pass", "def test_create_pod_security_policy_review_for_all_namespaces(self):\n pass", "def test_create_namespaced_pod_security_policy_subject_review(self):\n pass", "def test_create_namespaced_pod_securit...
[ "0.9089189", "0.89108753", "0.8864628", "0.838307", "0.81015927", "0.7931425", "0.7709151", "0.76478916", "0.7458033", "0.7396261", "0.7382406", "0.7150249", "0.69822335", "0.69345266", "0.67130363", "0.6456883", "0.6415125", "0.61829835", "0.586133", "0.5840685", "0.57517153...
0.95695823
0
Test case for create_role_binding_for_all_namespaces
def test_create_role_binding_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_role_binding_restriction_for_all_namespaces(self):\n pass", "def test_create_namespaced_role_binding(self):\n pass", "def test_create_role_for_all_namespaces(self):\n pass", "def test_list_role_binding_for_all_namespaces(self):\n pass", "def test_create_namespace...
[ "0.9103006", "0.86585265", "0.8459771", "0.8394788", "0.8377843", "0.7971442", "0.79192793", "0.76226646", "0.7601138", "0.7563945", "0.75596726", "0.75144124", "0.75134003", "0.75008684", "0.7347723", "0.73392165", "0.73251927", "0.73176664", "0.6978599", "0.69578975", "0.68...
0.9585177
0
Test case for create_role_binding_restriction_for_all_namespaces
def test_create_role_binding_restriction_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_role_binding_restriction(self):\n pass", "def test_create_role_binding_for_all_namespaces(self):\n pass", "def test_list_role_binding_restriction_for_all_namespaces(self):\n pass", "def test_list_namespaced_role_binding_restriction(self):\n pass", "def...
[ "0.8878432", "0.88176525", "0.85561717", "0.8195311", "0.8186807", "0.80923605", "0.8036668", "0.7987786", "0.79452336", "0.79143465", "0.7488097", "0.74283165", "0.7307162", "0.7285516", "0.728321", "0.7227291", "0.71210515", "0.6999721", "0.6681523", "0.6649977", "0.654205"...
0.9557484
0
Test case for create_route_for_all_namespaces
def test_create_route_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_namespaced_route(self):\n pass", "def test_list_route_for_all_namespaces(self):\n pass", "def test_list_namespaced_route(self):\n pass", "def test_read_namespaced_route(self):\n pass", "def test_create_role_for_all_namespaces(self):\n pass", "def test_re...
[ "0.82805735", "0.81944215", "0.74122554", "0.7057854", "0.70103717", "0.70007586", "0.6872161", "0.6863963", "0.6791686", "0.67706263", "0.6641386", "0.65658057", "0.6387995", "0.6343293", "0.633438", "0.62537646", "0.6234159", "0.62249416", "0.6157473", "0.6134032", "0.60712...
0.9544573
0
Test case for delete_collection_namespaced_build_config
def test_delete_collection_namespaced_build_config(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_namespaced_build_config(self):\n pass", "def test_delete_collection_namespaced_deployment_config(self):\n pass", "def test_delete_collection_namespaced_build(self):\n pass", "def test_delete_namespaced_build(self):\n pass", "def test_delete_collection_net_namespa...
[ "0.87105393", "0.85826904", "0.83276486", "0.7966111", "0.7784211", "0.77130747", "0.73661524", "0.7247685", "0.7096329", "0.6976883", "0.6967644", "0.6918478", "0.6889459", "0.6879883", "0.686037", "0.6849961", "0.6762526", "0.66430926", "0.655027", "0.650822", "0.64469624",...
0.9338268
0
Test case for delete_collection_namespaced_policy
def test_delete_collection_namespaced_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_collection_namespaced_policy_binding(self):\n pass", "def test_delete_namespaced_policy(self):\n pass", "def test_delete_collection_net_namespace(self):\n pass", "def test_delete_collection_cluster_policy_binding(self):\n pass", "def test_delete_collection_namesp...
[ "0.9186656", "0.8532096", "0.83839655", "0.8102736", "0.8065399", "0.80626464", "0.79287684", "0.7919427", "0.7889485", "0.7801394", "0.7703894", "0.7695669", "0.7449543", "0.7335111", "0.73327845", "0.7319061", "0.7224661", "0.71204746", "0.7097772", "0.70312816", "0.6989023...
0.9541902
0
Test case for delete_collection_namespaced_policy_binding
def test_delete_collection_namespaced_policy_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_collection_namespaced_policy(self):\n pass", "def test_delete_namespaced_policy_binding(self):\n pass", "def test_delete_collection_cluster_policy_binding(self):\n pass", "def test_delete_collection_namespaced_role_binding_restriction(self):\n pass", "def test_de...
[ "0.9096359", "0.8651254", "0.8483308", "0.8321003", "0.8188139", "0.7967268", "0.7750436", "0.76248956", "0.7564997", "0.74818724", "0.7477099", "0.73974264", "0.7372265", "0.73352516", "0.72043705", "0.7163871", "0.7083335", "0.7028835", "0.7010488", "0.7003391", "0.6842556"...
0.96229213
0
Test case for delete_collection_namespaced_route
def test_delete_collection_namespaced_route(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_collection_namespaced_template(self):\n pass", "def test_delete_namespaced_route(self):\n pass", "def test_delete_collection(self):\n pass", "def test_delete_collection_namespaced_policy(self):\n pass", "def test_delete_collection_net_namespace(self):\n pa...
[ "0.8727557", "0.8353086", "0.8244764", "0.82009155", "0.8133968", "0.8009254", "0.7839451", "0.77908754", "0.7596726", "0.7594186", "0.74399334", "0.7427433", "0.7370278", "0.73658866", "0.733113", "0.7236678", "0.7141253", "0.7120295", "0.70706666", "0.7062712", "0.6913768",...
0.95453006
0
Test case for delete_collection_o_auth_access_token
def test_delete_collection_o_auth_access_token(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_collection_o_auth_authorize_token(self):\n pass", "def test_delete_o_auth_access_token(self):\n pass", "def test_delete_collection_o_auth_client_authorization(self):\n pass", "def test_delete_collection_o_auth_client(self):\n pass", "def test_delete_o_auth_author...
[ "0.89253896", "0.8636085", "0.8290429", "0.81794876", "0.80667055", "0.76929116", "0.7413754", "0.734917", "0.7304953", "0.7159078", "0.69740564", "0.6895119", "0.68829507", "0.6818793", "0.6794616", "0.6776235", "0.6754919", "0.67193395", "0.66921204", "0.66710985", "0.66434...
0.95910263
0
Test case for delete_collection_o_auth_authorize_token
def test_delete_collection_o_auth_authorize_token(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_o_auth_authorize_token(self):\n pass", "def test_delete_collection_o_auth_access_token(self):\n pass", "def test_delete_collection_o_auth_client_authorization(self):\n pass", "def test_delete_collection_o_auth_client(self):\n pass", "def test_delete_o_auth_access...
[ "0.8859185", "0.8828697", "0.8117271", "0.78548217", "0.7763415", "0.75740874", "0.7214835", "0.71455806", "0.709899", "0.70989406", "0.7025451", "0.70223886", "0.6963349", "0.68641454", "0.6823119", "0.67010117", "0.66327524", "0.65997624", "0.65668803", "0.65296376", "0.649...
0.95486134
0
Test case for delete_collection_o_auth_client
def test_delete_collection_o_auth_client(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_collection_o_auth_client_authorization(self):\n pass", "def test_delete_collection_o_auth_access_token(self):\n pass", "def test_delete_collection(self):\n pass", "def test_delete_o_auth_client(self):\n pass", "def test_delete_o_auth_client_authorization(self):\n...
[ "0.9397677", "0.8381249", "0.83508503", "0.8337235", "0.8296779", "0.8289998", "0.8262201", "0.8246754", "0.7866164", "0.7713604", "0.7619595", "0.7544593", "0.7507639", "0.7455466", "0.7437973", "0.73492235", "0.72750443", "0.727301", "0.7243627", "0.7223031", "0.7205993", ...
0.95537156
0
Test case for delete_collection_o_auth_client_authorization
def test_delete_collection_o_auth_client_authorization(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_collection_o_auth_client(self):\n pass", "def test_delete_o_auth_client_authorization(self):\n pass", "def test_delete_collection_o_auth_authorize_token(self):\n pass", "def test_delete_collection_o_auth_access_token(self):\n pass", "def test_delete_o_auth_client...
[ "0.91921526", "0.8697684", "0.84969616", "0.84150016", "0.8145708", "0.79783195", "0.79061884", "0.7863596", "0.7667531", "0.7384615", "0.7384567", "0.7371626", "0.73430425", "0.7265672", "0.72469646", "0.7238444", "0.72179717", "0.7190505", "0.71038395", "0.70913166", "0.708...
0.95005333
0
Test case for delete_namespaced_build_config
def test_delete_namespaced_build_config(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_namespaced_deployment_config(self):\n pass", "def test_delete_namespaced_build(self):\n pass", "def test_delete_collection_namespaced_build_config(self):\n pass", "def test_replace_namespaced_build_config(self):\n pass", "def test_patch_namespaced_build_config(se...
[ "0.8195701", "0.8189324", "0.77454793", "0.7740929", "0.77189547", "0.7417156", "0.7170956", "0.71046394", "0.7075535", "0.6940931", "0.68273073", "0.6794706", "0.6782108", "0.67404294", "0.66740054", "0.6655758", "0.66125274", "0.6522335", "0.65139556", "0.65067875", "0.6492...
0.93705595
0
Test case for delete_namespaced_deployment_config
def test_delete_namespaced_deployment_config(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_collection_namespaced_deployment_config(self):\n pass", "def test_delete_namespaced_build_config(self):\n pass", "def test_delete_deployment(self):\n pass", "def test_delete_deployment_run(self):\n pass", "def test_create_namespaced_deployment_config(self):\n ...
[ "0.8467466", "0.79632676", "0.7785367", "0.757743", "0.7543459", "0.7534816", "0.75088304", "0.74550503", "0.74096775", "0.7394573", "0.7235857", "0.7165363", "0.71062076", "0.7095277", "0.7013173", "0.70034444", "0.6999992", "0.6992311", "0.6853656", "0.6845557", "0.6845524"...
0.94896835
0
Test case for delete_namespaced_policy
def test_delete_namespaced_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_namespaced_policy_binding(self):\n pass", "def test_delete_collection_namespaced_policy(self):\n pass", "def test_delete_collection_namespaced_policy_binding(self):\n pass", "def test_delete_namespaced_egress_network_policy(self):\n pass", "def test_delete_cluste...
[ "0.86845714", "0.81856424", "0.8048289", "0.7597352", "0.7567181", "0.75044644", "0.7346029", "0.7280841", "0.72685", "0.7166225", "0.69848776", "0.6980555", "0.6964739", "0.6961379", "0.69580686", "0.6938444", "0.6905987", "0.6901475", "0.68757176", "0.6866323", "0.68449724"...
0.9467844
0
Test case for delete_namespaced_policy_binding
def test_delete_namespaced_policy_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_namespaced_policy(self):\n pass", "def test_delete_collection_namespaced_policy_binding(self):\n pass", "def test_delete_cluster_policy_binding(self):\n pass", "def test_delete_namespaced_role_binding_restriction(self):\n pass", "def test_delete_namespaced_role_b...
[ "0.8768048", "0.86476654", "0.8012261", "0.7836465", "0.77335984", "0.76803833", "0.7663977", "0.7607579", "0.74020493", "0.73987067", "0.7191712", "0.71706426", "0.7153931", "0.7119036", "0.70290214", "0.7027777", "0.6841527", "0.6837148", "0.67969894", "0.678719", "0.674439...
0.956074
0
Test case for delete_net_namespace
def test_delete_net_namespace(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_collection_net_namespace(self):\n pass", "def test_create_net_namespace(self):\n pass", "def delete_namespace(node, namespace):\n cmd_timeout = 5\n cmd = f\"ip netns delete {namespace}\"\n (ret_code, _, delete_errmsg) = \\\n exec_cmd(node, cmd, time...
[ "0.81892765", "0.76615024", "0.76211727", "0.7544154", "0.72948986", "0.725785", "0.72547966", "0.7164626", "0.71542585", "0.7076664", "0.7026319", "0.699504", "0.69330263", "0.6878476", "0.6857322", "0.68284273", "0.6797996", "0.67731583", "0.6734245", "0.67237914", "0.66201...
0.95552844
0
Test case for delete_o_auth_access_token
def test_delete_o_auth_access_token(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_o_auth_authorize_token(self):\n pass", "def test_delete_collection_o_auth_access_token(self):\n pass", "def test_delete_o_auth_client_authorization(self):\n pass", "def test_delete_device_token(self):\n pass", "def test_logout_user_with_valid_access_token(auth_cl...
[ "0.85573065", "0.84796643", "0.78098685", "0.77319765", "0.7672638", "0.7588378", "0.75559103", "0.74990535", "0.744162", "0.7290663", "0.72702837", "0.70992625", "0.70200664", "0.6973432", "0.6945754", "0.6909124", "0.6898041", "0.6889971", "0.6871122", "0.6831075", "0.68269...
0.95635015
0
Test case for delete_o_auth_authorize_token
def test_delete_o_auth_authorize_token(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_collection_o_auth_authorize_token(self):\n pass", "def test_delete_o_auth_access_token(self):\n pass", "def test_delete_collection_o_auth_access_token(self):\n pass", "def test_replace_o_auth_authorize_token(self):\n pass", "def test_delete_o_auth_client_authoriz...
[ "0.86089015", "0.85262555", "0.7883491", "0.77940357", "0.7739321", "0.769095", "0.75507444", "0.7534566", "0.7525784", "0.7408195", "0.7166869", "0.69772434", "0.69080204", "0.6850849", "0.6847625", "0.6844308", "0.681687", "0.68147534", "0.676576", "0.6696316", "0.6686662",...
0.9544021
0
Test case for delete_o_auth_client
def test_delete_o_auth_client(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_o_auth_client_authorization(self):\n pass", "def test_delete_client(self):\n pass", "def test_delete_collection_o_auth_client(self):\n pass", "def test_delete_collection_o_auth_client_authorization(self):\n pass", "def test_client_delete(self, mock_input, mock_pa...
[ "0.9192536", "0.84898233", "0.8323787", "0.81361234", "0.79230696", "0.7683435", "0.7633186", "0.7595747", "0.7469516", "0.7450155", "0.74401855", "0.7384784", "0.73717535", "0.72981673", "0.72896826", "0.7280532", "0.7256604", "0.72355497", "0.7220867", "0.7215264", "0.72047...
0.94725233
0
Test case for delete_o_auth_client_authorization
def test_delete_o_auth_client_authorization(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_o_auth_client(self):\n pass", "def test_delete_collection_o_auth_client_authorization(self):\n pass", "def test_delete_collection_o_auth_client(self):\n pass", "def test_delete_o_auth_authorize_token(self):\n pass", "def test_delete_client(self):\n pass", ...
[ "0.89451355", "0.8528184", "0.8171714", "0.79294217", "0.7889846", "0.7778269", "0.77771443", "0.7761332", "0.76907605", "0.75471497", "0.7525022", "0.75006074", "0.7414036", "0.73720086", "0.734159", "0.72225785", "0.7208678", "0.7170468", "0.7167096", "0.71196204", "0.71155...
0.94621915
0
Test case for list_cluster_policy_binding
def test_list_cluster_policy_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_read_cluster_policy_binding(self):\n pass", "def test_list_cluster_policy(self):\n pass", "def test_create_cluster_policy_binding(self):\n pass", "def test_replace_cluster_policy_binding(self):\n pass", "def test_get_hyperflex_cluster_network_policy_list(self):\n ...
[ "0.8153618", "0.81450325", "0.81119305", "0.76308465", "0.7562472", "0.74894035", "0.74805164", "0.7470103", "0.7423919", "0.7297185", "0.70267755", "0.6935628", "0.6775499", "0.67512023", "0.67224973", "0.66257054", "0.65236205", "0.63718724", "0.6361835", "0.6349497", "0.63...
0.9420438
0
Test case for list_deployment_config_for_all_namespaces
def test_list_deployment_config_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_namespaced_deployment_config(self):\n pass", "def test_create_deployment_config_for_all_namespaces(self):\n pass", "def test_list_build_config_for_all_namespaces(self):\n pass", "def test_read_namespaced_deployment_config(self):\n pass", "def test_read_namespaced_d...
[ "0.8668477", "0.8299942", "0.82171994", "0.749131", "0.74072593", "0.7384879", "0.7056545", "0.6994429", "0.6850863", "0.68157536", "0.67718214", "0.67692804", "0.6719976", "0.66842586", "0.66662884", "0.6643524", "0.6637423", "0.6521334", "0.6507041", "0.6419748", "0.6418546...
0.95935655
0
Test case for list_egress_network_policy_for_all_namespaces
def test_list_egress_network_policy_for_all_namespaces(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_namespaced_egress_network_policy(self):\n pass", "def test_create_egress_network_policy_for_all_namespaces(self):\n pass", "def test_read_namespaced_egress_network_policy(self):\n pass", "def test_replace_namespaced_egress_network_policy(self):\n pass", "def test_l...
[ "0.86914474", "0.85695183", "0.7528057", "0.7213123", "0.720596", "0.7200696", "0.6925456", "0.686231", "0.6672125", "0.6556107", "0.6291253", "0.62272704", "0.6104726", "0.5914677", "0.5911128", "0.58700126", "0.561069", "0.5579711", "0.5570148", "0.55536854", "0.54001933", ...
0.9531447
0
Test case for list_namespaced_deployment_config
def test_list_namespaced_deployment_config(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_deployment_config_for_all_namespaces(self):\n pass", "def test_read_namespaced_deployment_config(self):\n pass", "def test_read_namespaced_deployment_config_status(self):\n pass", "def test_generate_namespaced_deployment_config(self):\n pass", "def test_list_namesp...
[ "0.8757961", "0.8139894", "0.791674", "0.77280277", "0.7694728", "0.76167876", "0.7598496", "0.74982977", "0.73754996", "0.72179824", "0.7180601", "0.7107146", "0.7105298", "0.70936775", "0.7046267", "0.7045492", "0.6736859", "0.6517339", "0.6429069", "0.63816506", "0.6360290...
0.9377877
0
Test case for list_namespaced_egress_network_policy
def test_list_namespaced_egress_network_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_egress_network_policy_for_all_namespaces(self):\n pass", "def test_read_namespaced_egress_network_policy(self):\n pass", "def test_create_namespaced_egress_network_policy(self):\n pass", "def test_replace_namespaced_egress_network_policy(self):\n pass", "def test_c...
[ "0.87709725", "0.8352935", "0.8254193", "0.8102907", "0.80815834", "0.796664", "0.78044933", "0.7487731", "0.6074534", "0.6018102", "0.5671351", "0.56184626", "0.538118", "0.5368046", "0.53219557", "0.5314506", "0.52301663", "0.5228623", "0.5172541", "0.51564616", "0.51069677...
0.9459662
0
Test case for list_namespaced_policy
def test_list_namespaced_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_policy_for_all_namespaces(self):\n pass", "def test_list_namespaced_policy_binding(self):\n pass", "def test_list_policy_binding_for_all_namespaces(self):\n pass", "def test_read_namespaced_policy(self):\n pass", "def test_create_policy_for_all_namespaces(self):\n ...
[ "0.8714546", "0.8519107", "0.7799171", "0.77709657", "0.74619913", "0.7447385", "0.72899675", "0.7188281", "0.6904148", "0.6819399", "0.67727774", "0.6753038", "0.6689875", "0.66180557", "0.6586477", "0.65495753", "0.65252596", "0.65222955", "0.65029645", "0.64977235", "0.649...
0.93448126
0
Test case for list_namespaced_policy_binding
def test_list_namespaced_policy_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_policy_binding_for_all_namespaces(self):\n pass", "def test_list_namespaced_policy(self):\n pass", "def test_read_namespaced_policy_binding(self):\n pass", "def test_list_policy_for_all_namespaces(self):\n pass", "def test_create_namespaced_policy_binding(self):\n ...
[ "0.8693679", "0.8506472", "0.8046588", "0.7872489", "0.7741329", "0.76264966", "0.7436308", "0.73124427", "0.7288537", "0.7212066", "0.7184775", "0.70604086", "0.7052414", "0.70006096", "0.69394535", "0.69184786", "0.68374836", "0.6828275", "0.6596421", "0.6584391", "0.655416...
0.9467579
0
Test case for list_namespaced_template
def test_list_namespaced_template(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_template_for_all_namespaces(self):\n pass", "def test_list_namespaced_build(self):\n pass", "def test_list_namespaced_route(self):\n pass", "def test_list_build_for_all_namespaces(self):\n pass", "def test_list_namespaced_policy(self):\n pass", "def test_c...
[ "0.86385757", "0.7613358", "0.74557674", "0.73476434", "0.72069955", "0.71854657", "0.71840733", "0.71166986", "0.7041801", "0.68955433", "0.6814159", "0.67707205", "0.6684124", "0.6629291", "0.662589", "0.6516339", "0.64642787", "0.6453726", "0.64402306", "0.6411679", "0.639...
0.925227
0
Test case for list_o_auth_client_authorization
def test_list_o_auth_client_authorization(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_o_auth_client(self):\n pass", "def test_read_o_auth_client_authorization(self):\n pass", "def test_create_o_auth_client_authorization(self):\n pass", "def test_csc_authorization_request_list_authlist_user(self):\n # Arrange:\n self.client.credentials(\n ...
[ "0.84907115", "0.8119086", "0.774851", "0.7666535", "0.74267125", "0.7422302", "0.7416622", "0.73179334", "0.7204115", "0.7187676", "0.7106088", "0.7071051", "0.7061799", "0.70490015", "0.7004367", "0.69607735", "0.69402236", "0.6927734", "0.6913884", "0.67222506", "0.6588893...
0.9285005
0
Test case for patch_namespaced_deployment_config
def test_patch_namespaced_deployment_config(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_patch_namespaced_deployment_config_status(self):\n pass", "def test_replace_namespaced_deployment_config(self):\n pass", "def test_replace_namespaced_deployment_config_status(self):\n pass", "def test_create_namespaced_deployment_config(self):\n pass", "def test_generat...
[ "0.89417493", "0.8687218", "0.84036833", "0.8056383", "0.800111", "0.78820187", "0.78417903", "0.76886016", "0.7557737", "0.7325799", "0.7324299", "0.729642", "0.72839797", "0.7277201", "0.7093646", "0.69340783", "0.6879229", "0.6847127", "0.6841002", "0.66998994", "0.6617728...
0.94663924
0
Test case for patch_namespaced_deployment_config_status
def test_patch_namespaced_deployment_config_status(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_replace_namespaced_deployment_config_status(self):\n pass", "def test_patch_namespaced_deployment_config(self):\n pass", "def test_read_namespaced_deployment_config_status(self):\n pass", "def test_replace_namespaced_deployment_config(self):\n pass", "def test_delete_na...
[ "0.87573683", "0.8087603", "0.80385566", "0.71677035", "0.6913377", "0.6845573", "0.6833631", "0.6786732", "0.6727495", "0.66783524", "0.66314936", "0.66163325", "0.65606797", "0.65432113", "0.6488937", "0.6454958", "0.6333678", "0.6304584", "0.61649704", "0.59923255", "0.588...
0.94525826
0
Test case for patch_namespaced_route
def test_patch_namespaced_route(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_replace_namespaced_route(self):\n pass", "def test_patch_namespaced_route_status(self):\n pass", "def test_replace_namespaced_route_status(self):\n pass", "def test_create_namespaced_route(self):\n pass", "def patch_namespaced_route(self, body, namespace, name, **kwargs...
[ "0.8746831", "0.86130023", "0.817499", "0.79485244", "0.7504642", "0.7429558", "0.7296179", "0.7190777", "0.7173144", "0.70406395", "0.68885046", "0.669036", "0.6682487", "0.66246015", "0.6617786", "0.65799654", "0.6501204", "0.64597315", "0.6423692", "0.6422788", "0.63146365...
0.9516455
0
Test case for patch_namespaced_route_status
def test_patch_namespaced_route_status(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_replace_namespaced_route_status(self):\n pass", "def test_patch_namespaced_route(self):\n pass", "def test_read_namespaced_route_status(self):\n pass", "def replace_namespaced_route_status(self, body, namespace, name, **kwargs):\n\n all_params = ['body', 'namespace', 'nam...
[ "0.8806604", "0.7780327", "0.776012", "0.7176817", "0.69782203", "0.68567294", "0.6421145", "0.6286344", "0.61480236", "0.61139196", "0.6076105", "0.60570097", "0.6036684", "0.5983171", "0.59340554", "0.58357316", "0.57945913", "0.5792366", "0.5778844", "0.5761386", "0.574990...
0.947145
0
Test case for patch_namespaced_template
def test_patch_namespaced_template(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_replace_namespaced_template(self):\n pass", "def test_create_namespaced_processed_template(self):\n pass", "def test_create_namespaced_template(self):\n pass", "def patch_namespaced_template(self, body, namespace, name, **kwargs):\n\n all_params = ['body', 'namespace', 'n...
[ "0.84549844", "0.7730883", "0.76431817", "0.7200317", "0.7199513", "0.7076575", "0.70486087", "0.69105726", "0.69055986", "0.6872885", "0.6844818", "0.66965157", "0.65777063", "0.65466386", "0.64915144", "0.6486524", "0.6472401", "0.63795507", "0.6359112", "0.6353963", "0.634...
0.941435
0
Test case for read_host_subnet
def test_read_host_subnet(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_host_subnet(self):\n pass", "def test_create_host_subnet(self):\n pass", "def test_replace_host_subnet(self):\n pass", "def test_patch_host_subnet(self):\n pass", "def test_get_subnet(self):\n self.assertEqual(\n type(self.the_client.get_subnet(su...
[ "0.83215505", "0.7765226", "0.72865564", "0.7264329", "0.72325575", "0.7102943", "0.70725733", "0.6744679", "0.67405957", "0.668331", "0.6677014", "0.6595161", "0.6460783", "0.6399852", "0.63536865", "0.6345168", "0.63303334", "0.6282562", "0.62656736", "0.62243706", "0.62087...
0.93999827
0
Test case for read_namespaced_egress_network_policy
def test_read_namespaced_egress_network_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_namespaced_egress_network_policy(self):\n pass", "def test_create_namespaced_egress_network_policy(self):\n pass", "def test_replace_namespaced_egress_network_policy(self):\n pass", "def test_delete_namespaced_egress_network_policy(self):\n pass", "def test_patch_n...
[ "0.8479502", "0.8312286", "0.81959933", "0.8013687", "0.788059", "0.76451063", "0.75786984", "0.72267693", "0.61946094", "0.58136886", "0.5657824", "0.5631801", "0.55770653", "0.54549116", "0.544993", "0.5342152", "0.52906483", "0.5254874", "0.5254677", "0.51699495", "0.51293...
0.93721026
0
Test case for read_namespaced_policy
def test_read_namespaced_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_read_namespaced_policy_binding(self):\n pass", "def test_list_namespaced_policy(self):\n pass", "def test_create_namespaced_policy(self):\n pass", "def test_list_policy_for_all_namespaces(self):\n pass", "def read_namespaced_policy(self, namespace, name, **kwargs):\n\n ...
[ "0.8458174", "0.76975876", "0.7401808", "0.72310144", "0.7058736", "0.6938734", "0.6930372", "0.6748759", "0.6723758", "0.66725624", "0.6658754", "0.66396904", "0.65331894", "0.6525058", "0.65121275", "0.64953625", "0.64839894", "0.6340554", "0.62573785", "0.61842465", "0.616...
0.93138695
0
Test case for read_namespaced_policy_binding
def test_read_namespaced_policy_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_read_namespaced_policy(self):\n pass", "def test_list_namespaced_policy_binding(self):\n pass", "def test_create_namespaced_policy_binding(self):\n pass", "def test_read_namespaced_role_binding_restriction(self):\n pass", "def test_replace_namespaced_policy_binding(self...
[ "0.8554552", "0.78362435", "0.7684384", "0.7354066", "0.7351557", "0.72459316", "0.71397173", "0.71054673", "0.708809", "0.70825005", "0.7077147", "0.6974614", "0.6867441", "0.67314845", "0.6658143", "0.65882885", "0.65640664", "0.6513399", "0.6246242", "0.61868644", "0.61835...
0.94003093
0
Test case for replace_cluster_policy_binding
def test_replace_cluster_policy_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_patch_cluster_policy_binding(self):\n pass", "def test_create_cluster_policy_binding(self):\n pass", "def test_replace_cluster_policy(self):\n pass", "def test_delete_cluster_policy_binding(self):\n pass", "def test_replace_cluster_role_binding(self):\n pass", ...
[ "0.8825095", "0.83823466", "0.82347655", "0.79850763", "0.7864699", "0.777195", "0.77688307", "0.76552796", "0.74235946", "0.7259801", "0.7178297", "0.7133931", "0.70231754", "0.6948916", "0.6942355", "0.68618757", "0.6825636", "0.6820126", "0.6692589", "0.6601875", "0.657180...
0.94153637
0
Test case for replace_namespaced_deployment_config_status
def test_replace_namespaced_deployment_config_status(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_patch_namespaced_deployment_config_status(self):\n pass", "def test_replace_namespaced_deployment_config(self):\n pass", "def test_read_namespaced_deployment_config_status(self):\n pass", "def test_patch_namespaced_deployment_config(self):\n pass", "def test_delete_name...
[ "0.9077437", "0.8093075", "0.8090764", "0.8012836", "0.73361146", "0.72328234", "0.71699154", "0.71106404", "0.7076299", "0.70643705", "0.6807396", "0.67077523", "0.6545072", "0.65230423", "0.64710814", "0.63409925", "0.631678", "0.6310832", "0.62975526", "0.62397736", "0.619...
0.9422467
0
Test case for replace_namespaced_egress_network_policy
def test_replace_namespaced_egress_network_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_patch_namespaced_egress_network_policy(self):\n pass", "def test_create_namespaced_egress_network_policy(self):\n pass", "def test_delete_namespaced_egress_network_policy(self):\n pass", "def test_read_namespaced_egress_network_policy(self):\n pass", "def test_list_name...
[ "0.8956728", "0.8705721", "0.84044665", "0.83021057", "0.8095901", "0.7916204", "0.7399577", "0.71620125", "0.6780843", "0.63877505", "0.60804576", "0.60586923", "0.6015408", "0.59164834", "0.5886516", "0.57567894", "0.573082", "0.5694427", "0.5681005", "0.5635501", "0.553573...
0.94444555
0
Test case for replace_namespaced_image_stream_tag
def test_replace_namespaced_image_stream_tag(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_patch_namespaced_image_stream_tag(self):\n pass", "def test_replace_namespaced_image_stream(self):\n pass", "def test_create_namespaced_image_stream_tag(self):\n pass", "def test_replace_namespaced_image_stream_status(self):\n pass", "def test_read_namespaced_image_stre...
[ "0.89403737", "0.8859994", "0.84644556", "0.82173675", "0.8153144", "0.8034805", "0.7964295", "0.77844036", "0.77463096", "0.75652725", "0.752651", "0.7346247", "0.72245437", "0.72100097", "0.7205298", "0.7164246", "0.71595997", "0.7025611", "0.69198143", "0.6815857", "0.6800...
0.94826895
0
Test case for replace_namespaced_policy
def test_replace_namespaced_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_replace_namespaced_policy_binding(self):\n pass", "def test_patch_namespaced_policy(self):\n pass", "def test_patch_namespaced_policy_binding(self):\n pass", "def test_create_namespaced_policy(self):\n pass", "def test_delete_namespaced_policy(self):\n pass", "...
[ "0.85956126", "0.84932315", "0.7981715", "0.7802912", "0.74888945", "0.7307528", "0.70882314", "0.70839316", "0.70651513", "0.7028067", "0.6999062", "0.6894913", "0.6874332", "0.68268967", "0.68138945", "0.6786766", "0.67765564", "0.67324567", "0.6640167", "0.6599705", "0.649...
0.93145555
0
Test case for replace_namespaced_policy_binding
def test_replace_namespaced_policy_binding(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_replace_namespaced_policy(self):\n pass", "def test_patch_namespaced_policy_binding(self):\n pass", "def test_create_namespaced_policy_binding(self):\n pass", "def test_patch_namespaced_policy(self):\n pass", "def test_delete_namespaced_policy_binding(self):\n pa...
[ "0.86989194", "0.8652881", "0.82459605", "0.79204464", "0.7818484", "0.7640414", "0.76052934", "0.74074817", "0.73223156", "0.7265056", "0.71855193", "0.714238", "0.71397364", "0.68988097", "0.6849962", "0.68448925", "0.6768197", "0.6730452", "0.67253023", "0.6724539", "0.672...
0.9406181
0
Parses the camera name from the S3 Object Key
def parse_camera_name_from_object_key(object_key): first_parts = object_key.split("/") return first_parts[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _extract_bucket_key(s3_uri: str)->tuple:\n s3_regex=\"^s3://([a-z0-9.-]+)/(.*)$\"\n search =re.search(s3_regex, s3_uri)\n if search is None:\n raise Error(\"Invalid s3 uri: {}\".format(s3_uri))\n return search.groups()", "def s3_key(self) -> pulumi.Input[str]:\n return pulumi.get(se...
[ "0.6068487", "0.60591346", "0.59437984", "0.58954835", "0.5870015", "0.57224745", "0.5706212", "0.5686476", "0.5675471", "0.5613313", "0.5565013", "0.5521519", "0.5514461", "0.54904205", "0.54869753", "0.54478157", "0.5415071", "0.5412702", "0.53466153", "0.532687", "0.531310...
0.8231692
0
Converts a local naive date & time to a UTC Timestamp.
def convert_naive_local_to_utc_timestamp(year, month, day, hour, minutes, seconds): pacific = pytz.timezone('America/Los_Angeles') this_date = datetime.datetime(int(year), int(month), int(day), int(hour), int(minutes), int(seconds)) local_dt = pacific.localize(this_date, is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UTCtimestampTolocal(ts, local_tz):\n t_utc = dt.datetime.fromtimestamp(ts,tz=pytz.timezone(\"UTC\"))\n t_local = t_utc.astimezone(local_tz)\n return t_local", "def utc_timestamp(ts):\n import pandas\n\n ts = pandas.Timestamp(ts)\n if not ts.tzinfo:\n ts = ts.tz_localize(\"UTC\")\n ...
[ "0.72205764", "0.6983059", "0.6770738", "0.677013", "0.6730794", "0.67281", "0.6722522", "0.67161834", "0.6703183", "0.66836935", "0.65544444", "0.6550889", "0.6534934", "0.6487955", "0.6462393", "0.64471936", "0.64004195", "0.63812923", "0.6343139", "0.6335491", "0.63339645"...
0.76103634
0
Calculate the gravitational delay The implementation is described in IERS Conventions [1]_, section 11.1, in particular equation (11.9).
def vlbi_grav_delay(dset): eph = apriori.get("ephemerides", time=dset.time) grav_delay = np.zeros(dset.num_obs) # List of celestial bodies. Major moons are also recommended, like Titan, Ganymedes, ... bodies = [ "mercury barycenter", "venus barycenter", "earth", "moon", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_gravitation(self):\n with PhysicsEngineHarness('tests/massive-objects.json') as physics_engine:\n # In this case, the first entity is very massive and the second\n # entity should gravitate towards the first entity.\n t0 = 1\n t1 = 2\n initial ...
[ "0.68207735", "0.6423103", "0.6103835", "0.60187733", "0.59844357", "0.59758383", "0.59610367", "0.5958875", "0.5919561", "0.5867162", "0.5851209", "0.58429337", "0.5788291", "0.5788291", "0.5756704", "0.5749892", "0.5749892", "0.5729351", "0.57071257", "0.56512266", "0.56450...
0.71809274
0
out = dense( shape=shape, init=None, paramset=None)
def dense(x, outdim, initializer=tf.glorot_uniform, bias=False, name=None): if x.ndim == 4: x = x.flat2d() assert x.ndim == 2 outshape = not isinstance(outdim, int) if outshape: dim = [-1] + list(outdim) outdim = np.prod(outdim) shape = [x.dims[-1], outdim] W = tf.get_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dense(in_layer):\n return Dense(neurons,\n kernel_initializer=initializer())(in_layer)", "def init_dense(self, layer):\n pass", "def dense(name, x, w=None, output_dim=128, initializer=tf.contrib.layers.xavier_initializer(), l2_strength=0.0,\n bias=...
[ "0.7653407", "0.6918959", "0.6870725", "0.6866443", "0.67675555", "0.6675576", "0.6606242", "0.6437295", "0.636316", "0.6265649", "0.62594026", "0.6241238", "0.62202615", "0.61882836", "0.6177038", "0.61097765", "0.61029375", "0.6090636", "0.6085418", "0.6082854", "0.6075049"...
0.6904602
2
leaky_relu see also pleaky
def leaky(x, slope=0.01, name=None): return tf.maximum(x, x*slope, name=name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def convert_leaky_relu(g, op, block):\n\n alpha = op.attr(\"alpha\")\n x = g.get_node(op.input(\"X\")[0])\n out = _op.nn.leaky_relu(x, alpha=alpha)\n g.add_node(op.output(\"Out\")[0], out)", "def leaky_rel(x, alpha=0.1):\r\n return tf.nn.leaky_relu(x, alpha=alpha)", "def leaky_relu(self, x, name...
[ "0.77571315", "0.7699009", "0.7633883", "0.75718963", "0.74843746", "0.7368186", "0.73186827", "0.7298966", "0.7279396", "0.7277081", "0.72377855", "0.7230744", "0.7227955", "0.7192606", "0.71790683", "0.7178993", "0.7163494", "0.6911991", "0.6824623", "0.6707451", "0.6517727...
0.0
-1
Compute softmax values for each sets of scores in x.
def __softmax2(self, x): e_x = np.exp(x - np.max(x)) return e_x / e_x.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def softmax(self, scores):\n\n\n # for each sample, for each class ,caclulate\n # np.exp(scores) : still (n_samples, n_classes)\n\n # axis = 1\n # a00, a01, a02 as a sinlge one to perfrom np_sum\n # which is the same sample \n # sum_exp : still (n_samples, 1)\n\n # ...
[ "0.7796294", "0.7760558", "0.7759004", "0.77567077", "0.76577055", "0.76577055", "0.76577055", "0.76577055", "0.7585655", "0.743143", "0.7407772", "0.73941606", "0.7358175", "0.73174125", "0.72689486", "0.72623265", "0.72614294", "0.7256868", "0.723019", "0.7214918", "0.72017...
0.0
-1
Gets the max timestamp that was set during the latest merge.
def get_max_ingest_timestamp(self): get_last_max_ts_config = bigquery.QueryJobConfig() get_last_max_ts_config.use_legacy_sql = False get_last_max_timestamp_query = self.bq_client.query( query='SELECT max(ingestTimestamp) as max_ingest_timestamp ' 'FROM `{0:s}.{1:s}.{2:s}`...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max_time(self):\n return self._ll_tree_sequence.get_max_time()", "def last_timestamp(self):\n return self._last_timestamp", "def last_timestamp(self):\n LOGGER.debug('Getting last_timestamp as: %s', self._last_timestamp)\n return self._last_timestamp", "def max(self):\n\n r...
[ "0.7324069", "0.72471076", "0.7213113", "0.71249187", "0.70386344", "0.69946057", "0.69175625", "0.67901427", "0.67749435", "0.6734356", "0.6730179", "0.6711431", "0.6706463", "0.66920155", "0.66324604", "0.6624491", "0.66190374", "0.6587741", "0.65800637", "0.6567245", "0.65...
0.75948834
0
Sets the theta range of the wind rose plot.
def set_thetarng(self, trng=(0., 360.), subplot_index=(0,)): if self.axes is not None: self.axes[subplot_index].set_thetamin(trng[0]) self.axes[subplot_index].set_thetamax(trng[1]) self.trng = trng else: raise RuntimeError(("Axes must be initialized before...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ChangeWindAngle(self,theta):\n self.problem.ChangeWindAngle(theta)", "def set_range(self, **rangekwargs):\n\n if 'xrange' in rangekwargs.keys(): \n xrange = rangekwargs['xrange']\n else: \n xrange = [-50.0, 50.0] # (default)\n\n if 'yrange' in rangekwargs.key...
[ "0.6535932", "0.5930254", "0.58945006", "0.58641726", "0.5827496", "0.57677525", "0.56842303", "0.5623213", "0.5555848", "0.55475396", "0.5508905", "0.5496923", "0.5430605", "0.53862256", "0.5381699", "0.5343665", "0.53284", "0.5323077", "0.5322511", "0.5319038", "0.53141254"...
0.4911351
50