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
The bits whose parity stores the parity of the bits 0 .. `index`.
def _parity_set(index): indices = set() # For bit manipulation we need to count from 1 rather than 0 index += 1 while index > 0: indices.add(index - 1) # Remove least significant one from index # E.g. 00010100 -> 00010000 index &= index - 1 return indices
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parity(n):\n # bin(n) returns 0b.... \n # bin(n)[2:] trims \"ob\"\n return sum(int(x) for x in bin(n)[2:]) % 2", "def parity(it):\n \n return sum(it)%2", "def parity_odd(x):\r\n\t\t\tx = x ^ (x >> 4)\r\n\t\t\tx = x ^ (x >> 2)\r\n\t\t\tx = x ^ (x >> 1)\r\n\t\t\treturn x & 1", "def parity(n):\n ...
[ "0.70778936", "0.70349866", "0.6692493", "0.65412956", "0.6414563", "0.626174", "0.6237307", "0.61329395", "0.59748495", "0.5932818", "0.5842721", "0.5767772", "0.5652158", "0.5629801", "0.55267197", "0.5526651", "0.5361471", "0.53230834", "0.53033143", "0.52905196", "0.52458...
0.7036098
1
Adds mass to the current mass function given the focal elements provided. They should be provided as something accepting index operations with an ``element.Element`` at index 0 and the value at index 1 (e.g. tuples (DiscreteElement(3, 1), 1) or lists [DiscreteElement(2, 1), 0.5]).
def add_mass(self, *focal_elements): for focal in focal_elements: if focal[0] not in self.focals: self.focals[focal[0]] = focal[1] else: self.focals[focal[0]] += focal[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __setitem__(self, element, mass):\n self.focals[element] = mass", "def mass(self, element):\n return self.m(element)", "def add_mass_unsafe(self, *focal_elements):\n for focal in focal_elements:\n if focal[0] not in self.focals:\n self.focals[focal[0]] = focal...
[ "0.6601592", "0.6444111", "0.62863463", "0.59646344", "0.5892161", "0.57746625", "0.5632433", "0.5605972", "0.55634534", "0.54567033", "0.54291666", "0.53895754", "0.5367855", "0.53674084", "0.5347204", "0.5333749", "0.53322726", "0.53271323", "0.5264071", "0.52578056", "0.52...
0.7646862
0
Adds mass to the current mass function given the focal elements provided. They should be provided as something accepting index operations with an ``element.Element`` at index 0 and the value at index 1 (e.g. tuples (DiscreteElement(3, 1), 1) or lists [DiscreteElement(2, 1), 0.5]).
def add_mass_unsafe(self, *focal_elements): for focal in focal_elements: if focal[0] not in self.focals: self.focals[focal[0]] = focal[1] else: self.focals[focal[0]] += focal[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_mass(self, *focal_elements):\n for focal in focal_elements:\n if focal[0] not in self.focals:\n self.focals[focal[0]] = focal[1]\n else:\n self.focals[focal[0]] += focal[1]", "def __setitem__(self, element, mass):\n self.focals[element] = ...
[ "0.7648626", "0.6600838", "0.6443136", "0.5964266", "0.58927625", "0.57750416", "0.56321347", "0.56051606", "0.5564054", "0.54567814", "0.5430129", "0.5390689", "0.53690886", "0.5368445", "0.5348131", "0.5334678", "0.5331395", "0.53283423", "0.5263149", "0.5258611", "0.524243...
0.628779
3
Gives the sum of the masses stored in the mass function.
def _sum(self): s = 0 for element, value in self.items(): s += value return s
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def total_mass_amu(self):\n return np.sum(self.mass_amu)", "def total_mass_au(self):\n return np.sum(self.atomic_mass)", "def total_mass(self):\n return self._total_mass", "def total_mass(self):\n return self._total_mass", "def mass(self):\n\t\treturn self.volume*self.density", ...
[ "0.7479936", "0.73706186", "0.7237351", "0.7237351", "0.71625006", "0.7118462", "0.6891388", "0.6870805", "0.6814249", "0.678645", "0.6773101", "0.6772356", "0.6752399", "0.6741709", "0.67137736", "0.67068857", "0.6699836", "0.6699836", "0.6681985", "0.6680269", "0.66787505",...
0.0
-1
Gets the mass of the given element in the current mass function. Equivalent to ``self.mass(element)``.
def m(self, element): if element in self.focals: return self.focals[element] return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mass(self, element):\n return self.m(element)", "def get_mass(elem):\n return mass[get_num(elem)]", "def get_mass(element):\n return pt.elements.isotope(element).mass", "def getMolecularMass(self):\n dataDict = self.__dict__\n # get formula dictionary\n dd = {}\n for ca in self.c...
[ "0.87502456", "0.80490106", "0.8039833", "0.71647274", "0.7091481", "0.69320565", "0.6892709", "0.68708813", "0.68708813", "0.6838321", "0.6791803", "0.66410565", "0.66230094", "0.661123", "0.6533944", "0.6520119", "0.64356154", "0.6422562", "0.636548", "0.62887937", "0.62712...
0.0
-1
Gets the pignistic transformation value of the given element in the current mass function. Equivalent to ``self.pignistic_transformation(element)``.
def betP(self, element): if element.is_empty(): return 0 if self.is_empty(): return 0 if not element.is_compatible(next(iter(self.focals))): return 0 result = 0 for focal, value in self.items(): if not focal.is_empty(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pignistic_transformation(self, element):\n return self.betP(element)", "def mass(self, element):\n return self.m(element)", "def get_transform(self):\n return self.transform", "def plausibility(self, element):\n return self.pl(element)", "def m(self, element):\n if el...
[ "0.81700003", "0.60632586", "0.58777046", "0.5848413", "0.5745767", "0.5642148", "0.5503185", "0.5488005", "0.5460131", "0.54474473", "0.5390143", "0.53873205", "0.53755045", "0.53647125", "0.53264695", "0.5297405", "0.5274995", "0.52673614", "0.52577704", "0.5254421", "0.525...
0.5410973
10
Gets the pignistic transformation value of the given element in the current mass function. Equivalent to ``self.betP(element)``.
def pignistic_transformation(self, element): return self.betP(element)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def betP(self, element):\n if element.is_empty():\n return 0\n\n if self.is_empty():\n return 0\n\n if not element.is_compatible(next(iter(self.focals))):\n return 0\n\n result = 0\n for focal, value in self.items():\n if not focal.is_e...
[ "0.6905056", "0.6101303", "0.59757733", "0.59292275", "0.5927385", "0.5914707", "0.58583635", "0.5828554", "0.5754039", "0.5669455", "0.56438965", "0.5638418", "0.56163484", "0.5606254", "0.5593674", "0.55893695", "0.55719054", "0.5545441", "0.55250305", "0.55122304", "0.5497...
0.8829944
0
Gets the plausibility of the given element in the current mass function. Equivalent to ``self.plausibility(element)``.
def pl(self, element): if self.is_empty(): return 0 if element.is_empty(): return self._sum() if not element.is_compatible(next(iter(self.focals))): return 0 result = 0 for focal, value in self.items(): if not el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plausibility(self, element):\n return self.pl(element)", "def conditioning(self, element):\n if not next(iter(self)).is_compatible(element):\n raise IncompatibleElementsInAMassFunctionError(next(iter(self)), element)\n \n condition = MassFunction((element, 1))\n ...
[ "0.8553522", "0.55796397", "0.55785245", "0.5348789", "0.5305511", "0.5217456", "0.5106356", "0.50856644", "0.503081", "0.49534553", "0.4944742", "0.49366012", "0.48797026", "0.48797026", "0.48599893", "0.4787227", "0.4725054", "0.47078994", "0.47053573", "0.46962014", "0.466...
0.54449004
3
Gets the discrepancy of the current mass function. For a definition, refer to "J. Abellan and S. Moral, Completing a total uncertainty measure in DempsterShafer theory, 1999".
def discrepancy(self): result = 0 for focal, value in self.items(): if focal.cardinal > 0: result -= value * math.log(self.betP(focal), 2) return round(result, 6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compute_discrepancy(self):\n j_rr = self.discrepancy_score('tr', 'te')\n j_ra = []\n j_rat = []\n j_aa = []\n # for all of the synthetic datasets\n for k in self.synth_keys:\n j_ra.append(self.discrepancy_score('tr', k))\n j_rat.append(self.discre...
[ "0.6531444", "0.64351934", "0.6062833", "0.5972944", "0.59469354", "0.57995516", "0.56772864", "0.5658793", "0.561906", "0.5610211", "0.55956143", "0.55279964", "0.5511518", "0.5465161", "0.54599637", "0.5437129", "0.53954804", "0.5390759", "0.53765815", "0.5368055", "0.53660...
0.7284788
0
Gets the classic distance between the current mass function and the given ones. For a definition, refer to "A. Jousselme et al, A new distance between two bodies of evidence, 2001".
def distance(self, *mass_functions): #Submethod to get distance between self and one mass function: def distance_one_mass(mass_function): #Get the jaccard index matrix: difference = self.difference(mass_function) matrix = {} for e1 in difference: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def distance_unsafe(self, *mass_functions):\n #Submethod to get distance between self and one mass function:\n def distance_one_mass(mass_function):\n #Get the jaccard index matrix:\n difference = self.difference_unsafe(mass_function)\n matrix = {}\n for e1...
[ "0.6583696", "0.6506961", "0.6089305", "0.60727507", "0.6015749", "0.597493", "0.59653616", "0.59453905", "0.5920751", "0.58909184", "0.5876293", "0.58620477", "0.58433336", "0.5834866", "0.58115906", "0.58021754", "0.5794496", "0.5779285", "0.57653105", "0.57632273", "0.5763...
0.655337
1
Gets the classic distance between the current mass function and the given ones. For a definition, refer to "A. Jousselme et al, A new distance between two bodies of evidence, 2001".
def distance_unsafe(self, *mass_functions): #Submethod to get distance between self and one mass function: def distance_one_mass(mass_function): #Get the jaccard index matrix: difference = self.difference_unsafe(mass_function) matrix = {} for e1 in differe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def distance(self, *mass_functions):\n #Submethod to get distance between self and one mass function:\n def distance_one_mass(mass_function):\n #Get the jaccard index matrix:\n difference = self.difference(mass_function)\n matrix = {}\n for e1 in difference...
[ "0.6553671", "0.65066373", "0.6086365", "0.6071419", "0.60150707", "0.5973971", "0.5963617", "0.5944974", "0.592065", "0.5888547", "0.5875317", "0.58586174", "0.58419067", "0.5833804", "0.5810403", "0.58022505", "0.57931405", "0.5778194", "0.57648253", "0.5762679", "0.5762679...
0.6583689
0
Gets the support of the current mass function given a set of mass functions, i.e. the sum of the similarities of the current mass function with the given
def support(self, *mass_functions): result = 0 for mass_function in mass_functions: result += self.similarity(mass_function) return round(result, 6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def support_unsafe(self, *mass_functions):\n result = 0\n for mass_function in mass_functions:\n result += self.similarity_unsafe(mass_function)\n return round(result, 6)", "def credibility(*mass_functions):\n #Get the supports of each mass function:\n supports = []\...
[ "0.679815", "0.6717845", "0.64134204", "0.6247934", "0.6206039", "0.617891", "0.6150965", "0.6049357", "0.5964484", "0.57527626", "0.57362986", "0.5561037", "0.5553445", "0.5534148", "0.55290073", "0.5514894", "0.55066824", "0.54980135", "0.5491829", "0.5353054", "0.5314798",...
0.8103511
0
Gets the support of the current mass function given a set of mass functions, i.e. the sum of the similarities of the current mass function with the given
def support_unsafe(self, *mass_functions): result = 0 for mass_function in mass_functions: result += self.similarity_unsafe(mass_function) return round(result, 6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def support(self, *mass_functions):\n result = 0\n for mass_function in mass_functions:\n result += self.similarity(mass_function)\n return round(result, 6)", "def credibility(*mass_functions):\n #Get the supports of each mass function:\n supports = []\n for m...
[ "0.81043905", "0.6718423", "0.6412339", "0.6248632", "0.620723", "0.6178769", "0.615554", "0.6048747", "0.5964483", "0.57505304", "0.57352227", "0.5564431", "0.5552649", "0.5536892", "0.5527739", "0.5516536", "0.55046856", "0.5498668", "0.54918265", "0.53547573", "0.5316345",...
0.679841
1
Overrides ``==``. Checks that the given mass function is equal to the current one. Two mass functions are equal if they have the same focal set and the same masses over their focal set.
def __eq__(self, m): #Check one way: for focal, value in self.items(): if not focal in m: if value != 0 : return False if round(m[focal], 6) != round(value, 6): return False #Check the other way: for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_compatible(self, mass_function):\n if self.is_empty() or mass_function.is_empty():\n return True\n\n #Check that any element of self is compatible with any element of massfunction:\n anyFocal1 = next(iter(self.focals))\n anyFocal2 = next(iter(mass_function.focals))\n ...
[ "0.7096373", "0.69786775", "0.6067191", "0.59979016", "0.5843878", "0.5828007", "0.57178015", "0.5622793", "0.5575911", "0.55282843", "0.5519341", "0.5519299", "0.5455677", "0.54181695", "0.54161036", "0.53863627", "0.53688407", "0.53454643", "0.53433084", "0.5342499", "0.533...
0.6302129
2
Converts a given payload to its str_base representation.
def payload_to_str_base(payload): result = "" for i in range(0, len(payload), 2): result += "0x" + payload[i] + payload[i + 1] + " " result = result[:len(result) - 1] return result
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def str_payload(self):\n self._payload_to_str()\n return self._str_payload", "def to_basestring(value):\r\n if value is None:\r\n return 'None'\r\n if isinstance(value, _BASESTRING_TYPES):\r\n return value\r\n elif isinstance(value, unicode_type):\r\n return value.deco...
[ "0.67968065", "0.63751155", "0.61616623", "0.61172277", "0.6090765", "0.60844684", "0.60223", "0.59882236", "0.5946642", "0.58706045", "0.58564806", "0.582374", "0.5792571", "0.56755215", "0.56722623", "0.56696635", "0.5659596", "0.56445324", "0.5638559", "0.5604942", "0.5602...
0.7912425
0
Reshape the context vectors to 3D vector
def reshape(data): return K.reshape(x=data, shape=(K.shape(data)[0], 1, reshape_size))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vector3(x, y, z):\n return np.array([x, y, z], dtype=float)", "def vector3(x, y, z):\n return np.array([x, y, z], dtype=np.float)", "def reshape_tensor3d(self, x):\n if self.dim_ordering == 'th':\n tx = K.reshape(x, (-1, self.nb_filter, self.cols * self.rows))\n else:\n ...
[ "0.6039281", "0.6001383", "0.58737165", "0.57767105", "0.5704384", "0.5680908", "0.5677167", "0.5671966", "0.56444", "0.56329167", "0.56322694", "0.56187075", "0.55993956", "0.55967903", "0.5588674", "0.5581202", "0.5565529", "0.55601823", "0.5548419", "0.55343676", "0.551572...
0.0
-1
Softmax on an axis Softmax on an axis
def σ(input, axis=1): input_size = input.size() trans_input = input.transpose(axis, len(input_size) - 1) trans_size = trans_input.size() input_2d = trans_input.contiguous().view(-1, trans_size[-1]) soft_max_2d = F.softmax(input_2d, -1) soft_max_nd = soft_max_2d.view(*trans_size) return sof...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def softmax(x: jnp.DeviceArray, *, axis: int = 0) -> jnp.DeviceArray:\n return jnp.exp(x) / jnp.expand_dims(jnp.sum(jnp.exp(x), axis=axis), axis)", "def softmax(x):\n \"\"\"\"\"\"\n return exp(x) / sum(exp(x), axis=0)", "def softmax(x):\r\n e_x = np.exp(x - np.expand_dims(np.max(x, axis=-1)...
[ "0.7921555", "0.7914225", "0.7861097", "0.78558886", "0.77759355", "0.7768997", "0.77575773", "0.77575773", "0.77567345", "0.77559704", "0.77537036", "0.77467513", "0.7734417", "0.77310735", "0.77217394", "0.771818", "0.77028227", "0.7693094", "0.7692879", "0.768663", "0.7675...
0.0
-1
Get an authenticated calendar api v3 instance.
def get_client(self): token = self.get_access_token() if self.client is None: credentials = AccessTokenCredentials(token, 'vetware/1.0') # credentials = SignedJwtAssertionCredentials(self.email, self.private_key, # "https://...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_service():\n \n creds = None\n # The file token.pickle stores the user's access and refresh tokens, and is\n # created automatically when the authorization flow completes for the first\n # time.\n token_path = f\"{sys.path[0]}/creds/token.pickle\"\n if os.path.exists(token_path):\n ...
[ "0.6469709", "0.61273724", "0.61273724", "0.6067255", "0.6030641", "0.5887355", "0.5887355", "0.58768874", "0.5853374", "0.5846113", "0.5829546", "0.56414956", "0.5612368", "0.5610765", "0.55677414", "0.55635536", "0.55574745", "0.55559367", "0.55224025", "0.54953337", "0.549...
0.7276156
0
Extracts CVE ID from the string.
def cve_match(self, string): pattern_list = [r'assigned the following CVE ID: (CVE-\d+-\d+)', r'ID for this vulnerability is: (CVE-\d+-\d+)'] for pattern in pattern_list: match = re.search('{0}'.format(pattern), string) if match: cve = mat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parse_id(string):\n return string.split('/')[-1]", "def subject_id_of(path: Path) -> str:\n\n match = search(pattern=\"[Vv]([0-9][0-9])\", string=str(path))\n return match.group(1)", "def _id_from_url(url):\n url = re.sub(r'\\?.*', '', url)\n video_id = url.split('/')[-2]\n re...
[ "0.659711", "0.6396904", "0.63495404", "0.63477594", "0.6235109", "0.61590874", "0.6121091", "0.6012574", "0.59803677", "0.59785587", "0.59340185", "0.5918762", "0.5916228", "0.5907876", "0.58828133", "0.5876894", "0.58437055", "0.58425826", "0.5834099", "0.5787787", "0.57808...
0.6712451
0
Generates a random string
def generate_random_string(N): return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(N))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generateRandomString():\n return ''.join(b64encode(urandom(32)).decode('utf-8'))", "def generate_random_string():\n return \"\".join(random.choice(string.ascii_lowercase + string.digits) for _ in range(16)) # nosec", "def __generate_random_string():\n return uuid4().hex[:6].upper()", "def g...
[ "0.85014915", "0.8366145", "0.8131259", "0.80346197", "0.7969227", "0.79116094", "0.7878069", "0.7839492", "0.77557343", "0.77436584", "0.77285564", "0.77165174", "0.77063763", "0.7690905", "0.7674214", "0.76599663", "0.7651333", "0.7634878", "0.7609182", "0.7585954", "0.7579...
0.7557364
22
Calculates the hexagonal distance between two hexagons (a, b) in a hexagonal grid using double height
def hexagonal_distance(a, b) -> int: diffx = abs(a[0] - b[0]) diffy = abs(a[1] - b[1]) distance = diffx + max(0, (diffy - diffx)//2) return distance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hex_distance(a, b):\n return (abs(a[0] - b[0]) + abs(a[1] - b[1]) +\n abs((-a[0] - a[1]) - (-b[0] - b[1]))) / 2", "def distance_between_hex_cells(cell1, cell2):\n return even_q_distance(*(cell1 + cell2))", "def color_dist(c1, c2):\n return sum((a - b) ** 2 for a, b in zip(to_ycc(c1), to...
[ "0.77107614", "0.7667453", "0.637965", "0.628564", "0.62761515", "0.6246036", "0.6209468", "0.6175154", "0.6150405", "0.6114018", "0.610359", "0.607411", "0.60557395", "0.6032116", "0.6015029", "0.6003463", "0.5995678", "0.5988243", "0.595047", "0.59476763", "0.594506", "0....
0.8222741
0
Test that we can multiple a vector by a scalar
def test_scalar_multiplication(self): a1 = tuples.Tuple(["a", "b", "c", "d"], 1, -2, 3, -4) a2 = a1 * 3.5 a3 = a1 * 0.5 self.assertEqual(a2, tuples.Tuple(["a", "b", "c", "d"], 3.5, -7, 10.5, -14)) self.assertEqual(a3, tuples.Tuple(["a", "b", "c", "d"], 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_multiply_scalar(self):\n a = Vector(1, 2)\n c = a * 3\n assert c.x == 3\n assert c.y == 6", "def test_mul():\n assert_equal(Vector(3, 1) * 2, Vector(6, 2))\n assert_equal(2 * Vector(3, 1), Vector(6, 2))", "def test_multiply(vec3_fixture):\n scalar = vec3_fixture * ...
[ "0.76518786", "0.74906665", "0.7228739", "0.69537455", "0.69478035", "0.6777521", "0.6757764", "0.6609688", "0.6581272", "0.6574238", "0.6574238", "0.64794844", "0.64699763", "0.64607203", "0.64431524", "0.64360017", "0.64245415", "0.6423136", "0.64211446", "0.63947856", "0.6...
0.6524515
11
Test that we can calculate the magnitude of a vector
def test_magnitude(self): a1 = vectors.Vector(1, 2, 3) self.assertEqual(a1.magnitude(), math.sqrt(14)) a1 = vectors.Vector(-1, -2, -3) self.assertEqual(a1.magnitude(), math.sqrt(14)) a1 = vectors.Vector(1, 0, 0) self.assertEqual(a1.magnitude(), 1) a1 = vectors...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def magnitude(v: Vector) -> float:\n return math.sqrt(sum_of_squares(v)) #math.sqrt() is a square root function", "def test_magnitude_normalize(self):\n\n a1 = vectors.Vector(1, 2, 3)\n self.assertEqual(a1.normalize().magnitude(), 1)", "def magnitude(v: Vector) -> float:\n return math.sqrt(...
[ "0.8189107", "0.8069333", "0.80120033", "0.7971605", "0.79182106", "0.77697015", "0.77667964", "0.7708147", "0.7680864", "0.7596515", "0.75438124", "0.7378611", "0.73521566", "0.7299441", "0.729095", "0.72496355", "0.7097701", "0.707433", "0.70025045", "0.6898686", "0.6888719...
0.8802861
0
Test that we can normalize a vector
def test_normalize(self): a1 = vectors.Vector(4, 0, 0) self.assertEqual(a1.normalize(), vectors.Vector(1, 0, 0)) a1 = vectors.Vector(0, 4, 0) self.assertEqual(a1.normalize(), vectors.Vector(0, 1, 0)) a1 = vectors.Vector(0, 0, 4) self.assertEqu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def testNormalize(self):\n v1 = Vector.ones(4)\n n = v1.norm()\n assert n == 2\n assert v1.normalize() == [ 0.5, 0.5, 0.5, 0.5 ]", "def test_double_normalization(self):\n\n v = Vector({\"x\": 3, \"y\": 1.2, \"z\": -2})\n v.normalize()\n w = v.copy()\n w.nor...
[ "0.84320813", "0.8031548", "0.79950583", "0.7887425", "0.7877359", "0.7825994", "0.7817796", "0.7774519", "0.77286476", "0.77127", "0.77066267", "0.76726747", "0.7564747", "0.75078905", "0.749059", "0.74638283", "0.7460221", "0.74267465", "0.7420078", "0.7408347", "0.7375698"...
0.8580913
0
Test the magnitude of a normalized vector is 1
def test_magnitude_normalize(self): a1 = vectors.Vector(1, 2, 3) self.assertEqual(a1.normalize().magnitude(), 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def testNormalize(self):\n v1 = Vector.ones(4)\n n = v1.norm()\n assert n == 2\n assert v1.normalize() == [ 0.5, 0.5, 0.5, 0.5 ]", "def unit_vector(vector):\n if not np.all((vector == 0)):\n return vector / np.linalg.norm(vector)\n else:\n return vector", "def te...
[ "0.7270691", "0.7149418", "0.70512325", "0.70335084", "0.70289826", "0.7011812", "0.6999542", "0.6985575", "0.68765014", "0.6861544", "0.6853279", "0.6845849", "0.68059945", "0.6804544", "0.6699062", "0.66586256", "0.66389793", "0.66329414", "0.6632561", "0.6612942", "0.65542...
0.77069443
0
read environment variables and store into local map
def read_environ(): environ = {} environ['BASEDIR'] = os.environ['TS_BASEDIR'] environ['CONFIG_NL'] = os.environ['TS_CONFIG_NL'] environ['NL_TS_SWITCH'] = os.environ['TS_NL_TS_SWITCH'] environ['DT_FILE'] = os.environ['TS_DT_FILE'] environ['REFOUTDIR'] = os.environ['TS_REFOUTDIR'] environ['V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_environ(self):\n\t\tself.environ = {}\n\t\tf = file(\"/proc/%d/environ\" % self.pid)\n\t\tfor x in f.readline().split('\\0'):\n\t\t\tif len(x) > 0:\n\t\t\t\ty = x.split('=')\n\t\t\t\tself.environ[y[0]] = y[1]\n\t\tf.close()", "def env(fd=sys.stdin):\n vars = {}\n while True:\n line = fd.rea...
[ "0.7180816", "0.7012356", "0.699662", "0.696742", "0.6918656", "0.68707454", "0.68265367", "0.676805", "0.674037", "0.67262554", "0.6723806", "0.6657512", "0.664227", "0.66234124", "0.66069865", "0.6602252", "0.6574574", "0.6564686", "0.6543242", "0.6532282", "0.65146226", ...
0.71607065
1
Get a GeoDataFrame with geometry and data from self.df
def gdf(self) -> gpd.GeoDataFrame: return self.just_geometry_gdf.join(self.df)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gdf(self) -> gpd.GeoDataFrame:\n path = str(get_path(\"geojson/FeatureCollection02.json\"))\n df = gpd.read_file(path)\n return df", "def makeGeoDf(self, arr: dict):\n geometry_points = [Point(x, y) for x, y in zip(arr[\"X\"], arr[\"Y\"])]\n elevetions = arr[\"Z\"]\n ...
[ "0.74078333", "0.7317825", "0.72249687", "0.7176334", "0.7169939", "0.7081383", "0.70632327", "0.69979966", "0.69629717", "0.6871474", "0.68603396", "0.6833396", "0.67962104", "0.67856675", "0.6771062", "0.6765806", "0.67083865", "0.67014384", "0.6625972", "0.6599771", "0.658...
0.81340444
0
Checks if the request is for admin site.
def is_admin_site(self, request) -> bool: if ( settings.AXES_ONLY_ADMIN_SITE and hasattr(request, "path") and not re.match("^%s" % reverse("admin:index"), request.path) ): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_admin(context):\n request = context[\"request\"]\n url = resolve(request.path)\n context['is_admin'] = False\n return url.app_name == 'admin'", "def check_admin():\n\tif not current_user.is_admin:\n\t\tabort(403)", "def check_admin():\r\n if not current_user.is_admin:\r\n abort(403...
[ "0.8128076", "0.77918845", "0.76605755", "0.76590794", "0.7623982", "0.7623982", "0.7588605", "0.74984384", "0.7477249", "0.74352247", "0.74331486", "0.7405999", "0.7378868", "0.7348182", "0.7348182", "0.7348182", "0.7298237", "0.72697234", "0.7238217", "0.71764505", "0.71758...
0.8504877
0
Decoder forward step. Returns mean. Variance is fixed to 1.
def decoder(self, z): x1 = self.dec_conv(z) return x1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def forward(self, input):\n mean = self.decoder_net(input)\n return mean", "def forward(self, input):\n mean_x = self.decode_mean(input)\n\n return mean_x", "def forward(self, x):\n if x.shape[-1] > self.first_subs/4: # Only subsample if not done yet.\n x = self.subsample(x...
[ "0.7513547", "0.6795131", "0.637666", "0.6372962", "0.6329809", "0.62768835", "0.6164829", "0.6164829", "0.6153793", "0.6086417", "0.60628635", "0.5875788", "0.58539456", "0.5844706", "0.580669", "0.580669", "0.5725197", "0.5684955", "0.56801826", "0.5657369", "0.55980766", ...
0.0
-1
Puts each data field into a tensor/DataContainer with outer dimension batch size. Extend default_collate to add support for
def container_collate(inbatch, num_devices=None): if not isinstance(inbatch, collections.Sequence): raise TypeError("{} is not supported.".format(inbatch.dtype)) item0 = inbatch[0] if isinstance(item0, ItemContainer): return item0.__class__._collate(inbatch, num_devices=num_devices) eli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def customize_collate(batch):\n\n elem = batch[0]\n elem_type = type(elem)\n if isinstance(elem, torch.Tensor):\n # this is the main part to handle varied length data in a batch\n # batch = [data_tensor_1, data_tensor_2, data_tensor_3 ... ]\n # \n batch_new = pad_sequence(batch...
[ "0.6923766", "0.6719714", "0.66458106", "0.658772", "0.6548438", "0.6509942", "0.6484755", "0.6412116", "0.63117254", "0.6221509", "0.6172456", "0.61550874", "0.6125875", "0.6032238", "0.60047925", "0.599886", "0.5992332", "0.598437", "0.59829414", "0.594455", "0.59036386", ...
0.6155785
11
r""" Gathers tensors from different GPUs on a specified device (1 means the CPU).
def container_gather(outputs, target_device, dim=0): def gather_map(outputs_): out = outputs_[0] if isinstance(out, torch.Tensor): # if all(t.dim() == 0 for t in outputs_) and dim == 0: # # unsqueeze warnings will trigger # import xdev # xd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_devices(args):\n global devices\n if args is not None:\n devices = [torch.device(i) for i in ast.literal_eval('[' + args + ']')]\n torch.cuda.set_device(devices[0])\n else:\n devices = [torch.device('cpu')]", "def device_placement(self):\n if is_tf_available():\n ...
[ "0.6953619", "0.6576089", "0.6504456", "0.6479835", "0.6322238", "0.63066095", "0.62786263", "0.6235819", "0.62211055", "0.619361", "0.61707073", "0.61707073", "0.61707073", "0.61434036", "0.61347646", "0.6131243", "0.6122817", "0.61183196", "0.6109142", "0.61020446", "0.6095...
0.0
-1
convert supplied internalforrmat time to external format Returns externalformat time Flip feature flag for alternative external format (with "Z" at end)
def _external_time_format(int_time): simple_iso_time = True if simple_iso_time: ext_time = int_time.replace(tzinfo=SimpleUtc()).isoformat() else: ext_time = int_time.isoformat() + "Z" return ext_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def serialized_time(time):\n formatted = time.isoformat()\n if formatted.endswith(\"+00:00\"):\n formatted = formatted[:-6] + \"Z\"\n\n return formatted", "def __format_time(in_time):\n logging.debug(\"in_time = %s\", in_time)\n out = in_time.strftime(\"%a, %d %b %Y %H:%M:%S %z+0000...
[ "0.61775583", "0.61080134", "0.60241383", "0.59336436", "0.57596415", "0.5738777", "0.56276697", "0.56257623", "0.5607303", "0.55731004", "0.5559419", "0.55281174", "0.5500135", "0.5492684", "0.5465424", "0.54603183", "0.54579246", "0.5426608", "0.54140574", "0.54103106", "0....
0.72326416
0
Setter for the reservation name
def set_reservation_name(self, _name): self.reservation_holder.set_name(_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_name(self, room_name):\n self.name = room_name", "def set_name(self, name: str) -> None:\n lib.wlr_seat_set_name(self._ptr, name.encode())", "def set_name(self, name):\n\t\tself.name_ = name", "def setName(self, name):\n self.name = str(name)", "def set_name(self, newname=\"\")...
[ "0.75939125", "0.7435989", "0.71996593", "0.70857316", "0.70622337", "0.7053167", "0.7053167", "0.7050455", "0.70206094", "0.70018214", "0.70018214", "0.70018214", "0.70018214", "0.70018214", "0.6992731", "0.6969879", "0.69488657", "0.68313175", "0.68192804", "0.6803021", "0....
0.8461781
0
Getter for the current reservation name
def get_reservation_name(self): return self.reservation_holder.get_name()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reservation(self):\n return self.request.get('reservation', None)", "def _get_name(self):\n return self.name", "def get_name(self) -> str:\r\n return self.name", "def get_name(self):\n\t\treturn self.name", "def get_name(self):\n\t\treturn self.name", "def get_name(self):\n\t\tre...
[ "0.7162178", "0.7103243", "0.7094242", "0.7025526", "0.7025526", "0.7025526", "0.6991344", "0.697491", "0.697491", "0.697491", "0.6946356", "0.69234097", "0.69219387", "0.6919432", "0.69155437", "0.69155437", "0.690777", "0.690777", "0.690777", "0.690777", "0.690777", "0.69...
0.85265017
0
convert a tensor a numpy array, for visualization
def tensor2img(tensImg,mean,std): # undo normalize for t, m, s in zip(tensImg, mean, std): t.mul_(s).add_(m) # undo transpose tensImg = (tensImg.numpy().transpose(1,2,0)*float(255)).astype(np.uint8) return tensImg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_numpy(tensor):\n raise NotImplementedError", "def np2tensor(array, device=None):\n tensor = torch.from_numpy(array)\n return tensor", "def tensor2np(x):\n return x.cpu().numpy()", "def _torch_to_numpy(tensor):\n return tensor.detach().cpu().numpy()", "def tensor2npy(x):\n out =...
[ "0.81381685", "0.7580133", "0.75487757", "0.7478916", "0.7255957", "0.7249528", "0.7138934", "0.7120898", "0.70759684", "0.70594734", "0.7043246", "0.7015151", "0.6984662", "0.6965631", "0.6940766", "0.6932415", "0.69048643", "0.6870254", "0.68674594", "0.68588513", "0.681035...
0.0
-1
Returns a copy of dict `val` where keyvalues are inserted in alphabetical order. If `val` is not a dict, it's returned unchanged
def sorted_dict(val: T) -> T: if not isinstance(val, dict): return val return {k: sorted_dict(v) for k, v in sorted(val.items(), key=lambda kv: kv[0])}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def safe_sort_key(value):\n if isinstance(value, abc.Mapping):\n return sorted(value.items())\n return value", "def sorted_dict(value: typing.Mapping) -> typing.Any:\n if isinstance(value, typing.Mapping):\n # Note: ``dict`` preserves key insertion order since Python 3.6.\n # https:...
[ "0.643354", "0.60686415", "0.6000212", "0.5969421", "0.5806517", "0.57206345", "0.55936575", "0.5562106", "0.55438703", "0.5500683", "0.54640067", "0.5453561", "0.5443454", "0.5414545", "0.5388949", "0.53826827", "0.53822064", "0.5374679", "0.5372376", "0.53670335", "0.535726...
0.7040484
0
Get the shared instance of ConcurrentS3Client. Returns stsci_aws_utils.s3.ConcurrentS3Client
def get_client(): global _CLIENT if _CLIENT is None: from stsci_aws_utils.s3 import ConcurrentS3Client _CLIENT = ConcurrentS3Client() atexit.register(_CLIENT.close) return _CLIENT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __get_s3_client(self):\n if self.AWS_ACCESS_KEY:\n s3_client = boto3.client(\n \"s3\",\n aws_access_key_id=self.AWS_ACCESS_KEY,\n aws_secret_access_key=self.AWS_SECRET_ACCESS_KEY,\n )\n else:\n s3_client = boto3.client(...
[ "0.7593098", "0.7527899", "0.7235426", "0.72235984", "0.7148331", "0.70004344", "0.6931416", "0.6884785", "0.67587787", "0.673594", "0.66886157", "0.65984774", "0.644854", "0.6359423", "0.62938994", "0.6268364", "0.60686547", "0.58844537", "0.5828934", "0.58220196", "0.581957...
0.82278
0
Determine if a value represents an S3 URI.
def is_s3_uri(value): return value.startswith("s3://")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _is_s3(string):\n return \"s3://\" in string", "def is_s3_path(obj):\n if isinstance(obj, str):\n if obj.startswith(\"s3://\") or obj.startswith(\"s3a://\") or obj.startswith(\"s3n://\"):\n return True\n\n return False", "def test_s3uri_is_valid(path) -> bool:\n ...
[ "0.7869797", "0.7759359", "0.7693799", "0.7499861", "0.67471856", "0.62939286", "0.62320775", "0.61392856", "0.6122345", "0.6032396", "0.6014511", "0.5994872", "0.58986217", "0.58907837", "0.58705485", "0.58661723", "0.58000994", "0.5793361", "0.5774642", "0.57698524", "0.574...
0.8764708
0
Split an S3 URI into bucket name and key components.
def split_uri(uri): if not uri.startswith("s3://"): raise ValueError("Expected S3 URI") bucket_name, key = uri.replace("s3://", "").split("/", 1) return bucket_name, key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def split_uri(s3_uri):\n if not s3_uri.startswith(\"s3://\"):\n # This is a local path, indicate using None\n raise ValueError(f\"failed to parse s3 uri: {s3_uri}\")\n bucket, key = s3_uri.split(\"s3://\")[1].split(\"/\", 1)\n return bucket, key", "def parse_uri(uri: str) -> Tuple[str, str...
[ "0.86482096", "0.798427", "0.794575", "0.7866309", "0.7862839", "0.7829905", "0.7829905", "0.77687895", "0.733661", "0.7152989", "0.6888441", "0.685947", "0.6833269", "0.67388415", "0.6579555", "0.65330195", "0.6462229", "0.63211495", "0.62511456", "0.62136483", "0.6189246", ...
0.88032484
0
Returns an array (NEURON's ``h.Vector``) of recorded voltage response from a given cell section.
def response_body_NEURON(region, rectype): if isinstance(region, type(h.Section())): section = region else: section = region[ randint(0, len(region)-1) ] # recording = h.Vector() recording.record( getattr(section(0.5), "_ref_"+rectype) ) return rec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_voltages(self):\n if self.v is None or self.dirty is True:\n v = self.simulator.get_voltages()\n n_compartments = self.neuron_collection.total_compartments()\n self.v = np.array(v).reshape([len(v) / n_compartments, n_compartments])\n\n self.dirty = False\n ...
[ "0.56515217", "0.5332811", "0.5266675", "0.52208436", "0.5189446", "0.5187024", "0.5176233", "0.5173101", "0.5152184", "0.51175755", "0.50914454", "0.5060821", "0.5053045", "0.5033856", "0.5019162", "0.5017558", "0.5005584", "0.5003913", "0.4996731", "0.49880597", "0.49874172...
0.0
-1
Returns an array (NEURON's ``h.Vector``) of recorded voltage response from a given cell section.
def response_component_NEURON(region, componentname, rectype): #if type(region).__name__=="Mechanism": compo = getattr(region(0.5), componentname) recording = h.Vector() recording.record( getattr(compo, "_ref_"+rectype) ) return recording
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_voltages(self):\n if self.v is None or self.dirty is True:\n v = self.simulator.get_voltages()\n n_compartments = self.neuron_collection.total_compartments()\n self.v = np.array(v).reshape([len(v) / n_compartments, n_compartments])\n\n self.dirty = False\n ...
[ "0.5652317", "0.5332303", "0.52664566", "0.52231336", "0.5190089", "0.5188503", "0.517565", "0.517295", "0.51516515", "0.51173025", "0.5090225", "0.5061376", "0.5051642", "0.50338835", "0.5019104", "0.5018715", "0.5006166", "0.5005773", "0.4996108", "0.49881962", "0.49875507"...
0.47622713
47
Return current configuration file path and name.
def getConfigFileName(self): return self._configFileName
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def current_config_file(self):\n return self.mp_conf_file.current_file", "def config_file(self):\n return self[CONFIG_FILE_KEY]", "def config_file_name(self):\n return self._config_file_name", "def path(self):\n return os.path.join(self.config.get('path', os.getcwd()))", "def co...
[ "0.82908535", "0.79950696", "0.77030563", "0.76922184", "0.7612044", "0.75219685", "0.7511623", "0.75000775", "0.7463612", "0.7410763", "0.73439234", "0.73158497", "0.73110694", "0.72660315", "0.7232797", "0.7169145", "0.71128005", "0.7085512", "0.7069656", "0.7052877", "0.70...
0.7420134
9
Returns all of the products from the API endpoint
def getProducts(): return "http://api.tcgplayer.com/catalog/products"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def products(self):\n response = requests.get(self._url(self._PRODUCTS_PATH), headers=self._headers)\n return response.json()", "def products(self, start=None, limit=None):\r\n params = base.get_params(None, locals())\r\n url = '{0}/products'.format(self.get_url())\r\n return h...
[ "0.82576513", "0.81504256", "0.80914205", "0.7985064", "0.797176", "0.7963286", "0.7806362", "0.7795653", "0.7772447", "0.7758447", "0.76661295", "0.7564851", "0.7557258", "0.75567013", "0.75486654", "0.75394183", "0.7461315", "0.74506825", "0.74221253", "0.7383562", "0.72362...
0.7383969
19
Returns the price of a product from the API endpoint
def getProductPrice(productID): return "http://api.tcgplayer.com/pricing/product/" + str(productID)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getPrice(self):\n headers = {\n \"User-Agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36\"}\n response = requests.get(self.__product_URL, headers=headers)\n #print(response.status_code)\n soup = ...
[ "0.76125014", "0.75360304", "0.75360304", "0.7461902", "0.7308291", "0.72562134", "0.72562134", "0.72562134", "0.71753573", "0.7098808", "0.70656353", "0.701346", "0.70097095", "0.6977297", "0.69360757", "0.68624055", "0.6797121", "0.6771722", "0.67245775", "0.6674225", "0.66...
0.7661404
0
Make an `HTTPMessage` from `requests.models.Response`.
def make_response_message(response): encoding = response.encoding or 'ISO-8859-1' original = response.raw._original_response response_headers = response.headers return HTTPMessage( line='HTTP/{version} {status} {reason}'.format( version='.'.join(str(original.version)), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def from_response(cls, response):\n\n d = {\n \"headers\": dict(response.getheaders()),\n \"content\": response.read(),\n \"status\": response.status,\n \"reason\": response.reason,\n \"raw_headers\": response.msg.headers,\n \"length\": respo...
[ "0.6788", "0.65599364", "0.64610714", "0.6416367", "0.6304561", "0.62900454", "0.6200741", "0.6188757", "0.6061716", "0.60387427", "0.6035621", "0.6034928", "0.5903427", "0.58998066", "0.58498716", "0.57857436", "0.57694536", "0.5766635", "0.5704577", "0.57026017", "0.5639230...
0.8138061
0
Check and force all connectors to have the correct mount type.
def _check_mount(self): if self.mount == ComponentBase.MOUNT_SMD: valid_shapes = [Con.SHAPE_PAD] default_shape = Con.SHAPE_PAD elif self.mount == ComponentBase.MOUNT_THT: valid_shapes = [Con.SHAPE_HOLE, Con.SHAPE_RHOLE] default_shape = Con.SHAPE_HOLE for con in self.connecto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fs_ok(fs_info):\n if fs_info.mountpoint == '/':\n return True\n\n if (fs_info.device == fs_info.fstype or fs_info.fstype == 'nullfs' or\n '/docker' in fs_info.mountpoint or\n fs_info.mountpoint.startswith('/etc') or\n fs_info.mountpoint.star...
[ "0.5407317", "0.5387775", "0.5368051", "0.53441167", "0.5343893", "0.5190058", "0.5190058", "0.5189435", "0.51384294", "0.5107781", "0.5086261", "0.5018181", "0.49876696", "0.49845812", "0.496421", "0.49597952", "0.49531233", "0.49531233", "0.49516663", "0.4918182", "0.491434...
0.7583637
0
Finds the first element that matchs the pattern.
def _find_in_xml(self, pattern, element=None, namespace=Xmlns_path): el = self._xml if element is None else element return el.find('.//' + namespace + pattern)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _find_first(self, ast, label):\n res = self._find_all(ast, label, max_results=1)\n if len(res):\n return res[0]\n return None", "def one(self, regex: str) -> Optional[str]:\n for f in self.find(regex):\n return f", "def find_first(self, filter, min=0):\n ...
[ "0.7013947", "0.68167305", "0.66676027", "0.6646456", "0.66036415", "0.65801924", "0.64660925", "0.6459135", "0.63916004", "0.63653696", "0.6309034", "0.62964696", "0.6254723", "0.624209", "0.62025493", "0.62008786", "0.6185809", "0.6171524", "0.61621714", "0.61418605", "0.61...
0.61567146
19
Generates random combination of hyperparameters to try. See (Bergstra and Bengio, 2012) for more details.
def generate_random_search_trials(params, nb_trials): if nb_trials is None: raise TypeError( '`random_search` strategy requires nb_trails to be an int.') results = [] # ensures we have unique results seen_trials = set() # shuffle each param list potential_trials = 1 for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generate_params(self, randomize=True):\n pass", "def random_parameters():\n res = dict()\n res[\"population_size\"] = random.randrange(2, 21)\n res[\"mutation_prob\"] = random.choice([0.02, 0.05, 0.10, 0.20, 0.30, 0.40, 0.50])\n res[\"crossover\"] = random.choice([True, Fal...
[ "0.6751198", "0.6632806", "0.6468107", "0.64619744", "0.61833465", "0.61013806", "0.607245", "0.60573244", "0.6040336", "0.60258394", "0.60022134", "0.5992605", "0.59077364", "0.58690006", "0.5850499", "0.58406776", "0.5836833", "0.583457", "0.57838845", "0.57752365", "0.5774...
0.5538554
49
Create an instance from a dict. Keys in the dict should match parameter names
def from_dict(cls, obj): cls._check_keys(obj) return cls(**obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def from_dict(cls, dictionary: Dict[str, Any]):\n return cls(**dictionary)", "def create(cls, dictionary):\n return cls(**dictionary)", "def create(cls, dictionary):\n return cls(**dictionary)", "def from_dict(cls, d):\n return cls(**d)", "def from_dict(cls, data: Dict[str, any]...
[ "0.8053923", "0.78778225", "0.78778225", "0.7822052", "0.781462", "0.78085625", "0.7769355", "0.7680106", "0.7648031", "0.7648031", "0.7648031", "0.7648031", "0.7648031", "0.7648031", "0.7648031", "0.7648031", "0.7648031", "0.7648031", "0.7648031", "0.7648031", "0.7648031", ...
0.74295074
53
Convert object to a yaml string
def to_yaml(self, skip_nulls=True): return yaml.safe_dump(self.to_dict(skip_nulls=skip_nulls), default_flow_style=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def toYAML(cls, obj):\n if isinstance(obj, dict):\n return yaml.dump(obj, default_flow_style=False)\n else:\n return yaml.dump_all(obj, default_flow_style=False)", "def to_yaml(obj):\n # Is there a better way to do this by adding a representation with\n # yaml.Dumper?\n ...
[ "0.7796577", "0.7750946", "0.7727308", "0.74972343", "0.7492426", "0.7476481", "0.74183685", "0.71167624", "0.70184803", "0.69777685", "0.69438666", "0.6921919", "0.69110644", "0.6775247", "0.6765058", "0.6734766", "0.6705608", "0.6643646", "0.6637541", "0.65788466", "0.64895...
0.6313578
29
connect OPTIONS requests to proxy of Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def connect_options_namespaced_node_proxy(self, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.connect_options_namespaced_node_proxy_with_http_info(name, **kwargs) else: (data) = self.connect_options_namespaced_node_proxy_w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def option_autoreply():\r\n\r\n if request.method == 'OPTIONS':\r\n resp = app.make_default_options_response()\r\n\r\n headers = None\r\n if 'ACCESS_CONTROL_REQUEST_HEADERS' in request.headers:\r\n headers = request.headers['ACCESS_CONTROL_REQUEST_HEADERS']\r\n\r\n h = res...
[ "0.6346995", "0.63173175", "0.6285833", "0.6105839", "0.6094103", "0.6064579", "0.59872067", "0.59415746", "0.59161335", "0.58231074", "0.57405883", "0.57299346", "0.57250774", "0.5714587", "0.57003707", "0.5630722", "0.5545596", "0.5532314", "0.546543", "0.54415107", "0.5391...
0.5602163
16
connect OPTIONS requests to proxy of Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def connect_options_namespaced_node_proxy_with_http_info(self, name, **kwargs): all_params = ['name', 'path'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def option_autoreply():\r\n\r\n if request.method == 'OPTIONS':\r\n resp = app.make_default_options_response()\r\n\r\n headers = None\r\n if 'ACCESS_CONTROL_REQUEST_HEADERS' in request.headers:\r\n headers = request.headers['ACCESS_CONTROL_REQUEST_HEADERS']\r\n\r\n h = res...
[ "0.6345254", "0.63170666", "0.6284273", "0.61054575", "0.60656816", "0.5986392", "0.59415597", "0.5916061", "0.582335", "0.5738913", "0.57282776", "0.5724573", "0.57129884", "0.57005733", "0.56292385", "0.56018883", "0.5545977", "0.5533215", "0.5465129", "0.54414916", "0.5391...
0.60948217
4
connect OPTIONS requests to proxy of Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def connect_options_namespaced_node_proxy_0(self, name, path2, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.connect_options_namespaced_node_proxy_0_with_http_info(name, path2, **kwargs) else: (data) = self.connect_options_names...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def option_autoreply():\r\n\r\n if request.method == 'OPTIONS':\r\n resp = app.make_default_options_response()\r\n\r\n headers = None\r\n if 'ACCESS_CONTROL_REQUEST_HEADERS' in request.headers:\r\n headers = request.headers['ACCESS_CONTROL_REQUEST_HEADERS']\r\n\r\n h = res...
[ "0.63464844", "0.63176626", "0.6285322", "0.61054945", "0.6092741", "0.60641164", "0.59863526", "0.594159", "0.5915205", "0.58230984", "0.5740846", "0.5730292", "0.57236266", "0.5715067", "0.5702068", "0.56312364", "0.5600125", "0.5546096", "0.5532016", "0.54645985", "0.54400...
0.52045494
24
connect OPTIONS requests to proxy of Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def connect_options_namespaced_node_proxy_0_with_http_info(self, name, path2, **kwargs): all_params = ['name', 'path2', 'path'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def option_autoreply():\r\n\r\n if request.method == 'OPTIONS':\r\n resp = app.make_default_options_response()\r\n\r\n headers = None\r\n if 'ACCESS_CONTROL_REQUEST_HEADERS' in request.headers:\r\n headers = request.headers['ACCESS_CONTROL_REQUEST_HEADERS']\r\n\r\n h = res...
[ "0.6345776", "0.63189524", "0.6284682", "0.6107114", "0.6092546", "0.60654736", "0.59878427", "0.5942733", "0.5914775", "0.5824304", "0.5741952", "0.57310677", "0.5724172", "0.5715961", "0.5702331", "0.5632276", "0.56003636", "0.5546772", "0.5530635", "0.5463846", "0.53905874...
0.5439238
20
connect OPTIONS requests to proxy of Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def connect_options_namespaced_pod_proxy(self, namespace, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.connect_options_namespaced_pod_proxy_with_http_info(namespace, name, **kwargs) else: (data) = self.connect_options_nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def connect_options_namespaced_pod_proxy_with_http_info(self, namespace, name, **kwargs):\n\n all_params = ['namespace', 'name', 'path']\n all_params.append('callback')\n all_params.append('_return_http_data_only')\n\n params = locals()\n for key, val in iteritems(params['kwargs'...
[ "0.66512924", "0.6255169", "0.6181661", "0.61733174", "0.6145325", "0.6134394", "0.6092866", "0.59703946", "0.5857379", "0.57308567", "0.56655914", "0.5661947", "0.56615037", "0.5588936", "0.5511528", "0.54534423", "0.5403317", "0.5327025", "0.5322699", "0.5314704", "0.529853...
0.6588537
1
connect OPTIONS requests to proxy of Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def connect_options_namespaced_pod_proxy_with_http_info(self, namespace, name, **kwargs): all_params = ['namespace', 'name', 'path'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def connect_options_namespaced_pod_proxy(self, namespace, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.connect_options_namespaced_pod_proxy_with_http_info(namespace, name, **kwargs)\n else:\n (data) = self.connect_o...
[ "0.6585196", "0.62521523", "0.6178102", "0.61698014", "0.6141405", "0.6130073", "0.60881704", "0.5973281", "0.5860535", "0.57336855", "0.5669805", "0.5664067", "0.5662028", "0.5589277", "0.5515086", "0.5456736", "0.54032975", "0.5329457", "0.5323484", "0.5317987", "0.5295431"...
0.6648921
0
connect OPTIONS requests to proxy of Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def connect_options_namespaced_pod_proxy_0(self, namespace, name, path2, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.connect_options_namespaced_pod_proxy_0_with_http_info(namespace, name, path2, **kwargs) else: (data) = self.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def connect_options_namespaced_pod_proxy_with_http_info(self, namespace, name, **kwargs):\n\n all_params = ['namespace', 'name', 'path']\n all_params.append('callback')\n all_params.append('_return_http_data_only')\n\n params = locals()\n for key, val in iteritems(params['kwargs'...
[ "0.6649789", "0.6586656", "0.6252411", "0.6179576", "0.6172416", "0.6141815", "0.6089331", "0.59709895", "0.5858308", "0.5731518", "0.56692934", "0.56652594", "0.5664284", "0.55920124", "0.5513417", "0.5454646", "0.5406684", "0.5327129", "0.5323273", "0.5316857", "0.52963", ...
0.6133152
6
connect OPTIONS requests to proxy of Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def connect_options_namespaced_pod_proxy_0_with_http_info(self, namespace, name, path2, **kwargs): all_params = ['namespace', 'name', 'path2', 'path'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def connect_options_namespaced_pod_proxy_with_http_info(self, namespace, name, **kwargs):\n\n all_params = ['namespace', 'name', 'path']\n all_params.append('callback')\n all_params.append('_return_http_data_only')\n\n params = locals()\n for key, val in iteritems(params['kwargs'...
[ "0.6648497", "0.6585374", "0.62525403", "0.6179194", "0.61427885", "0.61318445", "0.6090328", "0.59729266", "0.5860232", "0.5732245", "0.56684685", "0.56627023", "0.56603855", "0.5588041", "0.55131555", "0.5457067", "0.5402426", "0.5329017", "0.5324909", "0.5317628", "0.52950...
0.6170564
4
create binding of a Binding This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def create_namespaced_binding_binding(self, body, namespace, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.create_namespaced_binding_binding_with_http_info(body, namespace, name, **kwargs) else: (data) = self.create_namesp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_namespaced_binding(self, body, namespace, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.create_namespaced_binding_with_http_info(body, namespace, **kwargs)\n else:\n (data) = self.create_namespaced_binding_with_...
[ "0.6935752", "0.6344984", "0.61118084", "0.5835118", "0.5821956", "0.57411265", "0.5723414", "0.5600349", "0.55063426", "0.5451035", "0.5396424", "0.53660053", "0.53214824", "0.52355677", "0.52241474", "0.52231425", "0.51672536", "0.514049", "0.5112346", "0.507444", "0.501930...
0.7123834
0
create binding of a Binding This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def create_namespaced_binding_binding_with_http_info(self, body, namespace, name, **kwargs): all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_namespaced_binding_binding(self, body, namespace, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.create_namespaced_binding_binding_with_http_info(body, namespace, name, **kwargs)\n else:\n (data) = self.cre...
[ "0.7122358", "0.6934092", "0.634424", "0.58344716", "0.58195406", "0.57402223", "0.572163", "0.55998784", "0.55080646", "0.5449795", "0.53956133", "0.5367027", "0.5320109", "0.52351654", "0.5225103", "0.522333", "0.5166673", "0.51400363", "0.5111309", "0.5075889", "0.50178826...
0.611085
3
create a Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def create_namespaced_endpoints(self, body, namespace, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.create_namespaced_endpoints_with_http_info(body, namespace, **kwargs) else: (data) = self.create_namespaced_endpoints_with_http...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addEndpoints(self, endpoints):\n self.endpoints.extend(endpoints)\n self._connectOrBind(endpoints)", "def create_namespaced_endpoints_with_http_info(self, body, namespace, **kwargs):\n\n all_params = ['body', 'namespace', 'pretty']\n all_params.append('callback')\n all_para...
[ "0.55978155", "0.5505561", "0.5504999", "0.5383371", "0.5372351", "0.536523", "0.5206328", "0.51529425", "0.5116609", "0.5087185", "0.5079511", "0.50306666", "0.50121415", "0.49854854", "0.49395323", "0.49368104", "0.4911485", "0.48965508", "0.48408514", "0.4838773", "0.47902...
0.65305334
0
create a Endpoints This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def create_namespaced_endpoints_with_http_info(self, body, namespace, **kwargs): all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_namespaced_endpoints(self, body, namespace, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.create_namespaced_endpoints_with_http_info(body, namespace, **kwargs)\n else:\n (data) = self.create_namespaced_endpoints...
[ "0.65291375", "0.5594867", "0.550465", "0.5382366", "0.5371825", "0.5366805", "0.5204682", "0.51505756", "0.5116386", "0.50874716", "0.50800663", "0.50298494", "0.50115293", "0.49844375", "0.49360454", "0.49353382", "0.4910835", "0.4895714", "0.48395336", "0.48372188", "0.479...
0.5505366
2
create a LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def create_namespaced_limit_range(self, body, namespace, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.create_namespaced_limit_range_with_http_info(body, namespace, **kwargs) else: (data) = self.create_namespaced_limit_range_wit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_limit_range(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.list_limit_range_with_http_info(**kwargs)\n else:\n (data) = self.list_limit_range_with_http_info(**kwargs)\n return data", "def list_li...
[ "0.7746754", "0.6962462", "0.67880404", "0.6755008", "0.6652998", "0.6621286", "0.64303607", "0.6327499", "0.6307527", "0.62709594", "0.6270612", "0.62474227", "0.6182546", "0.6134326", "0.6122837", "0.61108845", "0.6036712", "0.60054064", "0.5983267", "0.58705384", "0.586222...
0.7681376
1
create a LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def create_namespaced_limit_range_with_http_info(self, body, namespace, **kwargs): all_params = ['body', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_limit_range(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.list_limit_range_with_http_info(**kwargs)\n else:\n (data) = self.list_limit_range_with_http_info(**kwargs)\n return data", "def create_...
[ "0.77460444", "0.76830894", "0.69605106", "0.67872125", "0.67551523", "0.6620549", "0.64284134", "0.63250333", "0.6305621", "0.6269037", "0.62687397", "0.6245581", "0.6180509", "0.61325306", "0.6121968", "0.6109602", "0.60361475", "0.6003341", "0.59813404", "0.5868296", "0.58...
0.6652475
5
delete a LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def delete_namespaced_limit_range(self, body, namespace, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.delete_namespaced_limit_range_with_http_info(body, namespace, name, **kwargs) else: (data) = self.delete_namespaced_lim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deletecollection_namespaced_limit_range(self, namespace, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.deletecollection_namespaced_limit_range_with_http_info(namespace, **kwargs)\n else:\n (data) = self.deletecollectio...
[ "0.71148413", "0.6667902", "0.6343022", "0.6165088", "0.5972797", "0.5746308", "0.5575962", "0.55048895", "0.54930425", "0.5477073", "0.5437755", "0.54136586", "0.5373364", "0.5303466", "0.52781415", "0.52446043", "0.52184314", "0.5210939", "0.52028495", "0.51869386", "0.5170...
0.7681454
0
delete a LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def delete_namespaced_limit_range_with_http_info(self, body, namespace, name, **kwargs): all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_namespaced_limit_range(self, body, namespace, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.delete_namespaced_limit_range_with_http_info(body, namespace, name, **kwargs)\n else:\n (data) = self.delete_name...
[ "0.76812756", "0.7115448", "0.6346369", "0.6161942", "0.5972592", "0.5744227", "0.55803305", "0.5508094", "0.5488667", "0.54776514", "0.54363906", "0.5417131", "0.537159", "0.5300959", "0.5275887", "0.52474296", "0.5221556", "0.52142125", "0.52068263", "0.51899433", "0.517163...
0.66700387
2
delete a Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def delete_namespaced_namespace(self, body, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.delete_namespaced_namespace_with_http_info(body, name, **kwargs) else: (data) = self.delete_namespaced_namespace_with_http_info(body...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_namespace(self, namespace):\n return self.core_client.delete_namespace(namespace)", "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, timeout=cmd_timeout, s...
[ "0.74543", "0.6620199", "0.64921963", "0.6474743", "0.6429143", "0.6343001", "0.6263355", "0.62193596", "0.62188214", "0.62123364", "0.6193013", "0.598629", "0.59374005", "0.5875493", "0.5802246", "0.5744487", "0.5734675", "0.5729033", "0.57068616", "0.566201", "0.56404626", ...
0.72889775
1
delete a Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def delete_namespaced_namespace_with_http_info(self, body, name, **kwargs): all_params = ['body', 'name', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_namespace(self, namespace):\n return self.core_client.delete_namespace(namespace)", "def delete_namespaced_namespace(self, body, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.delete_namespaced_namespace_with_http_i...
[ "0.74543", "0.72889775", "0.6620199", "0.64921963", "0.6474743", "0.6429143", "0.6263355", "0.62193596", "0.62188214", "0.62123364", "0.6193013", "0.598629", "0.59374005", "0.5875493", "0.5802246", "0.5744487", "0.5734675", "0.5729033", "0.57068616", "0.566201", "0.56404626",...
0.6343001
6
delete a ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def delete_namespaced_service_account(self, body, namespace, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.delete_namespaced_service_account_with_http_info(body, namespace, name, **kwargs) else: (data) = self.delete_namesp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deletecollection_namespaced_service_account(self, namespace, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.deletecollection_namespaced_service_account_with_http_info(namespace, **kwargs)\n else:\n (data) = self.deletec...
[ "0.64991796", "0.64384395", "0.64326036", "0.634383", "0.62791044", "0.6214096", "0.6131106", "0.61021227", "0.6095136", "0.6069095", "0.6068152", "0.60595274", "0.6049508", "0.60199815", "0.59924835", "0.59785366", "0.59738", "0.59643835", "0.5930468", "0.5916369", "0.590494...
0.7226369
0
delete a ServiceAccount This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def delete_namespaced_service_account_with_http_info(self, body, namespace, name, **kwargs): all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_namespaced_service_account(self, body, namespace, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.delete_namespaced_service_account_with_http_info(body, namespace, name, **kwargs)\n else:\n (data) = self.del...
[ "0.7226369", "0.64991796", "0.64384395", "0.64326036", "0.634383", "0.62791044", "0.6214096", "0.6131106", "0.61021227", "0.6095136", "0.6069095", "0.6068152", "0.60595274", "0.6049508", "0.60199815", "0.59924835", "0.59785366", "0.59738", "0.59643835", "0.5930468", "0.591636...
0.5904945
21
delete collection of Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def deletecollection_namespaced_namespace(self, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.deletecollection_namespaced_namespace_with_http_info(**kwargs) else: (data) = self.deletecollection_namespaced_namespace_with_http_inf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deletecollection_namespaced_net_namespace(self, **kwargs):\n\n all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds']\n all_params.append('callback')\n\n params = locals()\n for key, val in iteritems(params['kwargs']):\n ...
[ "0.6966864", "0.65511423", "0.6531364", "0.6529305", "0.64311004", "0.62267077", "0.6186053", "0.6147858", "0.61334044", "0.6127146", "0.60997206", "0.6038113", "0.6031979", "0.602904", "0.60204554", "0.6005189", "0.59836346", "0.5966271", "0.59276605", "0.5790921", "0.577082...
0.6940293
1
delete collection of Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def deletecollection_namespaced_namespace_with_http_info(self, **kwargs): all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deletecollection_namespaced_net_namespace(self, **kwargs):\n\n all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds']\n all_params.append('callback')\n\n params = locals()\n for key, val in iteritems(params['kwargs']):\n ...
[ "0.69686234", "0.69379807", "0.65526843", "0.6530291", "0.6433225", "0.62281346", "0.6188652", "0.6149698", "0.6133737", "0.6126263", "0.6101487", "0.6039", "0.6034901", "0.6031028", "0.6018695", "0.60063463", "0.59844345", "0.59665656", "0.59269464", "0.5789996", "0.57715803...
0.6530546
3
list or watch objects of kind Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_namespaced_namespace(self, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.list_namespaced_namespace_with_http_info(**kwargs) else: (data) = self.list_namespaced_namespace_with_http_info(**kwargs) return data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_namespaced_net_namespace_list(self, **kwargs):\n\n all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds']\n all_params.append('callback')\n\n params = locals()\n for key, val in iteritems(params['kwargs']):\n if k...
[ "0.69587004", "0.6825564", "0.61946076", "0.61573005", "0.6140609", "0.58664006", "0.56880605", "0.5672695", "0.5576946", "0.55253106", "0.5515566", "0.5496941", "0.54710025", "0.53962487", "0.5388081", "0.5357833", "0.5343998", "0.53367776", "0.5324614", "0.5313268", "0.5309...
0.55830956
8
list or watch objects of kind Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_namespaced_namespace_with_http_info(self, **kwargs): all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_namespaced_net_namespace_list(self, **kwargs):\n\n all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds']\n all_params.append('callback')\n\n params = locals()\n for key, val in iteritems(params['kwargs']):\n if k...
[ "0.69569516", "0.68256843", "0.61919564", "0.6155019", "0.6137239", "0.56854606", "0.5670794", "0.5581014", "0.5574486", "0.5524712", "0.55146366", "0.54952437", "0.5466524", "0.5391451", "0.5387809", "0.5356115", "0.5340045", "0.5335377", "0.53212833", "0.53121364", "0.53069...
0.5865339
5
list or watch objects of kind Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_namespaced_pod(self, namespace, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.list_namespaced_pod_with_http_info(namespace, **kwargs) else: (data) = self.list_namespaced_pod_with_http_info(namespace, **kwargs) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_pod_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_pod_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_pod_list_with_http_info(**kwargs)\n return data", "def list_pod(self...
[ "0.7149747", "0.6878443", "0.6718152", "0.6713871", "0.6627635", "0.6484609", "0.63875425", "0.6115204", "0.6107519", "0.58448803", "0.5734822", "0.5597175", "0.5554911", "0.5544808", "0.55127335", "0.549737", "0.5432151", "0.54223037", "0.5286606", "0.5256419", "0.524995", ...
0.62154305
7
list or watch objects of kind Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_namespaced_pod_with_http_info(self, namespace, **kwargs): all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_pod_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_pod_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_pod_list_with_http_info(**kwargs)\n return data", "def list_pod(self...
[ "0.7148506", "0.6879792", "0.67174095", "0.67129266", "0.6628758", "0.6485759", "0.63881284", "0.62165993", "0.6114914", "0.61086464", "0.5845224", "0.573656", "0.5555839", "0.55447054", "0.55120724", "0.54969066", "0.54335916", "0.5421253", "0.52864194", "0.525677", "0.52478...
0.55986565
12
list or watch objects of kind ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_namespaced_replication_controller(self, namespace, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) else: (data) = self.list_namespaced_replication...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_replication_controller_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_replication_controller_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_replication_controller_list_with_http_info(...
[ "0.7464836", "0.7108445", "0.7084033", "0.691318", "0.6878143", "0.63585186", "0.58019584", "0.54676306", "0.52248687", "0.5223604", "0.5148749", "0.5107501", "0.5091293", "0.4981519", "0.49423188", "0.48646915", "0.48626474", "0.47967133", "0.47701976", "0.47622174", "0.4717...
0.6291247
6
list or watch objects of kind ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') all_params.append('_return_http_data_only') param...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_replication_controller_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_replication_controller_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_replication_controller_list_with_http_info(...
[ "0.7466528", "0.7109045", "0.7085717", "0.6913792", "0.6878399", "0.63585764", "0.6292124", "0.54698837", "0.52256715", "0.5221674", "0.51533663", "0.5110345", "0.50899124", "0.4981212", "0.49411464", "0.4866284", "0.4862188", "0.47994885", "0.4770691", "0.47552654", "0.47164...
0.58020115
7
list or watch objects of kind Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_namespaced_secret(self, namespace, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.list_namespaced_secret_with_http_info(namespace, **kwargs) else: (data) = self.list_namespaced_secret_with_http_info(namespace, **kwargs) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_secret_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_secret_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_secret_list_with_http_info(**kwargs)\n return data", "def watc...
[ "0.7016571", "0.69733155", "0.6940549", "0.6884959", "0.67247796", "0.6615101", "0.6571718", "0.6439517", "0.6192412", "0.61315614", "0.595386", "0.5833854", "0.56636935", "0.5629841", "0.560954", "0.5575202", "0.55719584", "0.5519723", "0.5382627", "0.53573835", "0.53337914"...
0.58312607
12
list or watch objects of kind Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_namespaced_secret_with_http_info(self, namespace, **kwargs): all_params = ['namespace', 'pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_secret_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_secret_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_secret_list_with_http_info(**kwargs)\n return data", "def watc...
[ "0.7011864", "0.69691527", "0.69381744", "0.6882432", "0.6721618", "0.66115475", "0.65672094", "0.6436961", "0.6188414", "0.61303794", "0.5950881", "0.5829496", "0.5827907", "0.5660507", "0.5626725", "0.56069297", "0.55693984", "0.55165297", "0.53792", "0.53543395", "0.533457...
0.5572486
16
list or watch objects of kind Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_pod(self, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.list_pod_with_http_info(**kwargs) else: (data) = self.list_pod_with_http_info(**kwargs) return data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_pod_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_pod_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_pod_list_with_http_info(**kwargs)\n return data", "def watch_namespa...
[ "0.7149747", "0.6718152", "0.6713871", "0.6627635", "0.6484609", "0.63875425", "0.62154305", "0.6115204", "0.6107519", "0.58448803", "0.5734822", "0.5597175", "0.5554911", "0.5544808", "0.55127335", "0.549737", "0.5432151", "0.54223037", "0.5286606", "0.5256419", "0.524995", ...
0.6878443
1
list or watch objects of kind Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_pod_with_http_info(self, **kwargs): all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_pod_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_pod_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_pod_list_with_http_info(**kwargs)\n return data", "def list_pod(self...
[ "0.7148506", "0.6879792", "0.67174095", "0.67129266", "0.6485759", "0.63881284", "0.62165993", "0.6114914", "0.61086464", "0.5845224", "0.573656", "0.55986565", "0.5555839", "0.55447054", "0.55120724", "0.54969066", "0.54335916", "0.5421253", "0.52864194", "0.525677", "0.5247...
0.6628758
4
list or watch objects of kind ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_replication_controller(self, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.list_replication_controller_with_http_info(**kwargs) else: (data) = self.list_replication_controller_with_http_info(**kwargs) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_replication_controller_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_replication_controller_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_replication_controller_list_with_http_info(...
[ "0.7464836", "0.7108445", "0.7084033", "0.6878143", "0.63585186", "0.6291247", "0.58019584", "0.54676306", "0.52248687", "0.5223604", "0.5148749", "0.5107501", "0.5091293", "0.4981519", "0.49423188", "0.48646915", "0.48626474", "0.47967133", "0.47701976", "0.47622174", "0.471...
0.691318
3
list or watch objects of kind ReplicationController This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_replication_controller_with_http_info(self, **kwargs): all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_replication_controller_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_replication_controller_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_replication_controller_list_with_http_info(...
[ "0.7466528", "0.7109045", "0.7085717", "0.6913792", "0.63585764", "0.6292124", "0.58020115", "0.54698837", "0.52256715", "0.5221674", "0.51533663", "0.5110345", "0.50899124", "0.4981212", "0.49411464", "0.4866284", "0.4862188", "0.47994885", "0.4770691", "0.47552654", "0.4716...
0.6878399
4
list or watch objects of kind Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_secret(self, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.list_secret_with_http_info(**kwargs) else: (data) = self.list_secret_with_http_info(**kwargs) return data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_secret_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_secret_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_secret_list_with_http_info(**kwargs)\n return data", "def watc...
[ "0.7016571", "0.69733155", "0.6940549", "0.6884959", "0.6615101", "0.6571718", "0.6439517", "0.6192412", "0.61315614", "0.595386", "0.5833854", "0.58312607", "0.56636935", "0.5629841", "0.560954", "0.5575202", "0.55719584", "0.5519723", "0.5382627", "0.53573835", "0.53337914"...
0.67247796
4
list or watch objects of kind Secret This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def list_secret_with_http_info(self, **kwargs): all_params = ['pretty', 'label_selector', 'field_selector', 'watch', 'resource_version', 'timeout_seconds'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(para...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def watch_secret_list(self, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.watch_secret_list_with_http_info(**kwargs)\n else:\n (data) = self.watch_secret_list_with_http_info(**kwargs)\n return data", "def watc...
[ "0.7011864", "0.69691527", "0.6882432", "0.6721618", "0.66115475", "0.65672094", "0.6436961", "0.6188414", "0.61303794", "0.5950881", "0.5829496", "0.5827907", "0.5660507", "0.5626725", "0.56069297", "0.5572486", "0.55693984", "0.55165297", "0.53792", "0.53543395", "0.5334573...
0.69381744
2
partially update the specified ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def patch_namespaced_config_map(self, body, namespace, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.patch_namespaced_config_map_with_http_info(body, namespace, name, **kwargs) else: (data) = self.patch_namespaced_config_m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_config(self, kv: dict):\n self._configs.update(kv)\n self._save()", "def configure(new_config: Mapping):\n config.update(new_config)", "def update_config(self, update_dict):\n self.config = recursive_merge_dicts(self.config, update_dict)", "def update(self, config_dict):\r\...
[ "0.5990432", "0.5961915", "0.59436536", "0.5933342", "0.5822454", "0.5805537", "0.5805537", "0.57975715", "0.57644093", "0.57638687", "0.5757601", "0.57449263", "0.56807613", "0.5605517", "0.5584103", "0.55553985", "0.55395645", "0.55317885", "0.5530417", "0.5528059", "0.5525...
0.6025817
0
partially update the specified ConfigMap This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def patch_namespaced_config_map_with_http_info(self, body, namespace, name, **kwargs): all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def patch_namespaced_config_map(self, body, namespace, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.patch_namespaced_config_map_with_http_info(body, namespace, name, **kwargs)\n else:\n (data) = self.patch_namespace...
[ "0.6025817", "0.5990432", "0.5961915", "0.59436536", "0.5933342", "0.5822454", "0.5805537", "0.5805537", "0.57975715", "0.57644093", "0.57638687", "0.5757601", "0.57449263", "0.56807613", "0.5605517", "0.5584103", "0.55553985", "0.55395645", "0.5530417", "0.5528059", "0.55253...
0.55317885
18
partially update the specified LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def patch_namespaced_limit_range(self, body, namespace, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.patch_namespaced_limit_range_with_http_info(body, namespace, name, **kwargs) else: (data) = self.patch_namespaced_limit_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def replace_namespaced_limit_range(self, body, namespace, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.replace_namespaced_limit_range_with_http_info(body, namespace, name, **kwargs)\n else:\n (data) = self.replace_n...
[ "0.64416367", "0.61567134", "0.61293805", "0.6045787", "0.5897873", "0.5897308", "0.58874345", "0.58844155", "0.5854835", "0.57768357", "0.5724258", "0.57010615", "0.56762993", "0.5644473", "0.5604764", "0.55796707", "0.5567568", "0.5560059", "0.5554708", "0.55377954", "0.550...
0.6805326
0
partially update the specified LimitRange This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def patch_namespaced_limit_range_with_http_info(self, body, namespace, name, **kwargs): all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def patch_namespaced_limit_range(self, body, namespace, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.patch_namespaced_limit_range_with_http_info(body, namespace, name, **kwargs)\n else:\n (data) = self.patch_namespa...
[ "0.6805074", "0.64418113", "0.615886", "0.61297727", "0.5897872", "0.5897084", "0.5888823", "0.58843416", "0.5855299", "0.57783794", "0.5724906", "0.5702581", "0.5676644", "0.5647238", "0.56052345", "0.5580131", "0.55693585", "0.55621916", "0.55563986", "0.5541314", "0.550773...
0.60463846
4
partially update the specified Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def patch_namespaced_namespace(self, body, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.patch_namespaced_namespace_with_http_info(body, name, **kwargs) else: (data) = self.patch_namespaced_namespace_with_http_info(body, n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update():\n for namespace in metadata.get_namespaces():\n logging.info('Switching namespace: \\'%s\\'', namespace)\n namespace_manager.set_namespace(namespace)\n update_per_namespace()\n\n namespace_manager.set_namespace('')\n return ('', 204)", "def updateSBMLNamespace(self, *args):\n ret...
[ "0.6490514", "0.62300956", "0.6186096", "0.6186096", "0.585934", "0.5650973", "0.56093967", "0.55790985", "0.55238175", "0.54750055", "0.53836167", "0.5343848", "0.5326848", "0.530681", "0.5256519", "0.5256519", "0.5206113", "0.5146634", "0.5144687", "0.5122608", "0.51202476"...
0.59387493
4
partially update the specified Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def patch_namespaced_namespace_with_http_info(self, body, name, **kwargs): all_params = ['body', 'name', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update():\n for namespace in metadata.get_namespaces():\n logging.info('Switching namespace: \\'%s\\'', namespace)\n namespace_manager.set_namespace(namespace)\n update_per_namespace()\n\n namespace_manager.set_namespace('')\n return ('', 204)", "def updateSBMLNamespace(self, *args):\n ret...
[ "0.6490514", "0.62300956", "0.6186096", "0.6186096", "0.59387493", "0.585934", "0.5650973", "0.56093967", "0.55790985", "0.55238175", "0.54750055", "0.53836167", "0.5326848", "0.530681", "0.5256519", "0.5256519", "0.5206113", "0.5146634", "0.5144687", "0.5122608", "0.51202476...
0.5343848
12
partially update the specified Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def patch_namespaced_pod(self, body, namespace, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.patch_namespaced_pod_with_http_info(body, namespace, name, **kwargs) else: (data) = self.patch_namespaced_pod_with_http_info(bod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def patch_namespaced_pod_template(self, body, namespace, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.patch_namespaced_pod_template_with_http_info(body, namespace, name, **kwargs)\n else:\n (data) = self.patch_names...
[ "0.56677145", "0.5578249", "0.5523955", "0.54582715", "0.5333531", "0.52704984", "0.5204053", "0.51705235", "0.50906914", "0.5054253", "0.49901712", "0.49157682", "0.49126673", "0.48461995", "0.4844693", "0.4801249", "0.47893757", "0.47886145", "0.47849333", "0.4777895", "0.4...
0.6595609
0
partially update the specified Pod This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def patch_namespaced_pod_with_http_info(self, body, namespace, name, **kwargs): all_params = ['body', 'namespace', 'name', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def patch_namespaced_pod(self, body, namespace, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.patch_namespaced_pod_with_http_info(body, namespace, name, **kwargs)\n else:\n (data) = self.patch_namespaced_pod_with_htt...
[ "0.6595609", "0.56677145", "0.5578249", "0.5523955", "0.5333531", "0.52704984", "0.5204053", "0.51705235", "0.50906914", "0.5054253", "0.49901712", "0.49157682", "0.49126673", "0.48461995", "0.4844693", "0.4801249", "0.47893757", "0.47886145", "0.47849333", "0.4777895", "0.47...
0.54582715
4
proxy OPTIONS requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def proxy_options_namespaced_node(self, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.proxy_options_namespaced_node_with_http_info(name, **kwargs) else: (data) = self.proxy_options_namespaced_node_with_http_info(name, **kw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def option_autoreply():\r\n\r\n if request.method == 'OPTIONS':\r\n resp = app.make_default_options_response()\r\n\r\n headers = None\r\n if 'ACCESS_CONTROL_REQUEST_HEADERS' in request.headers:\r\n headers = request.headers['ACCESS_CONTROL_REQUEST_HEADERS']\r\n\r\n h = res...
[ "0.6665797", "0.6615831", "0.64800084", "0.6285175", "0.6269613", "0.6266107", "0.6096868", "0.59507245", "0.59402674", "0.5924048", "0.5909565", "0.5891033", "0.5889401", "0.57698387", "0.55995375", "0.5575373", "0.550781", "0.5421332", "0.54122204", "0.52852696", "0.5284096...
0.4453241
67
proxy OPTIONS requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def proxy_options_namespaced_node_with_http_info(self, name, **kwargs): all_params = ['name'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def option_autoreply():\r\n\r\n if request.method == 'OPTIONS':\r\n resp = app.make_default_options_response()\r\n\r\n headers = None\r\n if 'ACCESS_CONTROL_REQUEST_HEADERS' in request.headers:\r\n headers = request.headers['ACCESS_CONTROL_REQUEST_HEADERS']\r\n\r\n h = res...
[ "0.6665797", "0.6615831", "0.64800084", "0.6285175", "0.6269613", "0.6266107", "0.6096868", "0.59507245", "0.59402674", "0.5924048", "0.5909565", "0.5891033", "0.5889401", "0.57698387", "0.55995375", "0.5575373", "0.550781", "0.5421332", "0.54122204", "0.52852696", "0.5284096...
0.5105252
27
proxy OPTIONS requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def proxy_options_namespaced_node_0(self, name, path, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.proxy_options_namespaced_node_0_with_http_info(name, path, **kwargs) else: (data) = self.proxy_options_namespaced_node_0_with_ht...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def option_autoreply():\r\n\r\n if request.method == 'OPTIONS':\r\n resp = app.make_default_options_response()\r\n\r\n headers = None\r\n if 'ACCESS_CONTROL_REQUEST_HEADERS' in request.headers:\r\n headers = request.headers['ACCESS_CONTROL_REQUEST_HEADERS']\r\n\r\n h = res...
[ "0.6666727", "0.66166353", "0.6478547", "0.62846446", "0.6269005", "0.6265862", "0.60959023", "0.5951199", "0.59404486", "0.5924515", "0.5909677", "0.5891878", "0.5889574", "0.576955", "0.5600581", "0.5576183", "0.5506063", "0.5420241", "0.5411417", "0.52855957", "0.5284703",...
0.44700474
65
proxy OPTIONS requests to Node This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def proxy_options_namespaced_node_0_with_http_info(self, name, path, **kwargs): all_params = ['name', 'path'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def option_autoreply():\r\n\r\n if request.method == 'OPTIONS':\r\n resp = app.make_default_options_response()\r\n\r\n headers = None\r\n if 'ACCESS_CONTROL_REQUEST_HEADERS' in request.headers:\r\n headers = request.headers['ACCESS_CONTROL_REQUEST_HEADERS']\r\n\r\n h = res...
[ "0.66663396", "0.6616445", "0.64797467", "0.6286327", "0.62701136", "0.62681663", "0.6098368", "0.59534925", "0.59426415", "0.5926413", "0.59118015", "0.5894279", "0.5891663", "0.57710946", "0.5596699", "0.5572955", "0.55092573", "0.54237103", "0.54145086", "0.5286212", "0.52...
0.5028559
30
read the specified Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def read_namespaced_namespace(self, name, **kwargs): kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.read_namespaced_namespace_with_http_info(name, **kwargs) else: (data) = self.read_namespaced_namespace_with_http_info(name, **kwargs) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def read_namespaced_service(self, namespace, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.read_namespaced_service_with_http_info(namespace, name, **kwargs)\n else:\n (data) = self.read_namespaced_service_with_http_i...
[ "0.63049024", "0.62968665", "0.6204965", "0.6187032", "0.61079055", "0.59298337", "0.58814925", "0.58724993", "0.58098865", "0.57266814", "0.5364637", "0.5360151", "0.5356927", "0.53330356", "0.52789646", "0.5245508", "0.5102911", "0.5061146", "0.5026719", "0.5011458", "0.498...
0.74119157
0
read the specified Namespace This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def read_namespaced_namespace_with_http_info(self, name, **kwargs): all_params = ['name', 'pretty', 'export', 'exact'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def read_namespaced_namespace(self, name, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('callback'):\n return self.read_namespaced_namespace_with_http_info(name, **kwargs)\n else:\n (data) = self.read_namespaced_namespace_with_http_info(name, **kwar...
[ "0.7410769", "0.6304627", "0.62906325", "0.620521", "0.61890763", "0.611069", "0.5933465", "0.5874251", "0.5805252", "0.57286716", "0.5371069", "0.53658974", "0.53597814", "0.53258115", "0.52799475", "0.5244875", "0.51020163", "0.5061366", "0.50241256", "0.50119585", "0.49942...
0.5866955
8