query
stringlengths
9
9.05k
document
stringlengths
10
222k
metadata
dict
negatives
listlengths
30
30
negative_scores
listlengths
30
30
document_score
stringlengths
4
10
document_rank
stringclasses
2 values
Sets up the regexp for parsing out IP addresses from the 'ip neighbor' command and pass it along to the parser function.
def _parse_ip_table_neigh(self, ip_output): ip_regex = re.compile(r"(.*?)\s+.*lladdr\s+(.*?)\s+") return self._parse_mac_addr_table(ip_output, ip_regex)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __call__(self, parser, namespace, values, option_string=None):\n ip_split = values.split(\",\")\n [ip_address(ip) for ip in ip_split]\n setattr(namespace, self.dest, ip_split)", "def parse_ip(self, ip):\n if not ip in self.ip_list:\n try:\n ip_address = i...
[ "0.59346735", "0.5507849", "0.5420339", "0.540353", "0.53581053", "0.5341133", "0.53306186", "0.53253126", "0.52746946", "0.5222205", "0.5208916", "0.5197301", "0.5188588", "0.51674026", "0.51580864", "0.5143807", "0.5061729", "0.49728638", "0.49534848", "0.49212003", "0.4916...
0.55468833
1
Parse the command output and return a dictionary which maps mac address to an IP address.
def _parse_mac_addr_table(self, cmd_output, mac_regex): lines = ensure_string(cmd_output).split("\n") arp_table = defaultdict(list) for line in lines: match = mac_regex.match(line) if not match: continue groups = match.groups() i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_mac_address_table(self):\n\n mac_address_table = []\n command = '/interface bridge host print terse'\n\n output = self._send_command(command)\n\n for host in parse_terse_output(output):\n mac_address_table.append({\n 'mac': cast_mac(host.get('mac-addres...
[ "0.6518071", "0.6207442", "0.6205289", "0.6143003", "0.6007293", "0.59642804", "0.59295213", "0.5820728", "0.5768313", "0.5717903", "0.56790775", "0.5641952", "0.56189096", "0.56146896", "0.55993295", "0.5571131", "0.556581", "0.5563868", "0.55427015", "0.55418855", "0.552968...
0.69882375
0
Use BFS to find the shortest path use level ={} to keep track of distance of each node use parent = {} to back track and trace it out
def find_shortest_path(self, start, end): if start==None: return visited = {} distance = {start:0} parent = {start:None} queue = deque() queue.append(start) while queue: cn = queue.popleft() for n in self.adjacencylist[cn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bfs(self, queue, target, targetx,\n targety): # finds BFS path to the finish. if there is no path, will return nothing\n\n '''\n 1. So we have a parent matrix\n 2. This records the parent\n 3. We have a dictionary of cell: parents'''\n if self.map1[queue[0][0]][qu...
[ "0.69503415", "0.6943903", "0.6853803", "0.68397886", "0.6801403", "0.675973", "0.6747544", "0.6738333", "0.6723769", "0.6721417", "0.6716232", "0.67153084", "0.67074156", "0.6693994", "0.66901886", "0.6654073", "0.66488194", "0.66420025", "0.66287", "0.6627181", "0.6569387",...
0.6980737
0
Read the next expression from src, a Buffer of tokens. >>> lines = ['(+ 1', '(+ 23 4)) ('] >>> src = Buffer(tokenize_lines(lines)) >>> print(scheme_read(src)) (+ 1 (+ 23 4))
def scheme_read(src): if src.current() is None: raise EOFError if val == 'nil': return nil elif val not in DELIMITERS: # ( ) ' . return val elif val == '(': return read_tail(src) else: raise SyntaxError('unexpected token: {0}'.format(val))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parse(source_code):\n tokens = tokenize(source_code)\n return read(tokens)", "def read_from_tokens(tokens):\n if len(tokens) == 0:\n raise SyntaxError(\"unexpected EOF while reading\")\n token = tokens.pop(0)\n if \"(\" == token:\n res = []\n while tokens[0] != \")\":\n ...
[ "0.6343479", "0.6047994", "0.5913599", "0.5844269", "0.5784189", "0.5618982", "0.54318804", "0.5407249", "0.53160536", "0.525312", "0.52294385", "0.521524", "0.5187013", "0.51560414", "0.5153102", "0.51475793", "0.51185143", "0.5095528", "0.50852764", "0.5074779", "0.5058327"...
0.71613556
0
Return the remainder of a list in src, starting before an element or ). >>> read_tail(Buffer(tokenize_lines([')']))) nil >>> read_tail(Buffer(tokenize_lines(['2 3)']))) Pair(2, Pair(3, nil)) >>> read_tail(Buffer(tokenize_lines(['2 (3 4))']))) Pair(2, Pair(Pair(3, Pair(4, nil)), nil))
def read_tail(src): if src.current() is None: raise SyntaxError('unexpected end of file') if src.current() == ')': src.pop() return nil first = scheme_read(src) rest = read_tail(src) return Pair(first, rest)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def take(self, line, head, tail):\n data = None\n rest = line\n begin = line.find(head)\n if begin != -1:\n line = line[begin + len(head):]\n end = line.find(tail)\n if end != -1:\n data = line[:end]\n rest = line[end + len(...
[ "0.62023", "0.5961643", "0.5870388", "0.5625115", "0.559991", "0.55696696", "0.55203354", "0.5368489", "0.5332481", "0.5304666", "0.5293615", "0.5290877", "0.5275637", "0.5255011", "0.52535564", "0.51826555", "0.5160872", "0.5157932", "0.51445717", "0.5142943", "0.51237637", ...
0.7980613
0
Query FS_IMMUTABLE_FL This queries the `FS_IMMUTABLE_FL` flag on a specified file. Arguments fd Filedescriptor to operate on. Returns bool Whether the `FS_IMMUTABLE_FL` flag is set or not. Raises OSError If the underlying ioctl fails, a matching `OSError` will be raised.
def ioctl_get_immutable(fd: int): if not isinstance(fd, int) or fd < 0: raise ValueError() flags = array.array('L', [0]) fcntl.ioctl(fd, FS_IOC_GETFLAGS, flags, True) return bool(flags[0] & FS_IMMUTABLE_FL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ioctl_toggle_immutable(fd: int, set_to: bool):\n\n if not isinstance(fd, int) or fd < 0:\n raise ValueError()\n\n flags = array.array('L', [0])\n fcntl.ioctl(fd, FS_IOC_GETFLAGS, flags, True)\n if set_to:\n flags[0] |= FS_IMMUTABLE_FL\n else:\n flags[0] &= ~FS_IMMUTABLE_FL\n...
[ "0.6428742", "0.47341985", "0.47216454", "0.46669763", "0.45207182", "0.4378003", "0.43503478", "0.43097138", "0.4301548", "0.42695826", "0.4249345", "0.42367932", "0.42250556", "0.42015633", "0.4192277", "0.41917893", "0.41803315", "0.4150465", "0.41474935", "0.41474935", "0...
0.77494645
0
Toggle FS_IMMUTABLE_FL This toggles the `FS_IMMUTABLE_FL` flag on a specified file. It can both set and clear the flag. Arguments fd Filedescriptor to operate on. set_to Whether to set the `FS_IMMUTABLE_FL` flag or not. Raises OSError If the underlying ioctl fails, a matching `OSError` will be raised.
def ioctl_toggle_immutable(fd: int, set_to: bool): if not isinstance(fd, int) or fd < 0: raise ValueError() flags = array.array('L', [0]) fcntl.ioctl(fd, FS_IOC_GETFLAGS, flags, True) if set_to: flags[0] |= FS_IMMUTABLE_FL else: flags[0] &= ~FS_IMMUTABLE_FL fcntl.ioctl(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ioctl_get_immutable(fd: int):\n\n if not isinstance(fd, int) or fd < 0:\n raise ValueError()\n\n flags = array.array('L', [0])\n fcntl.ioctl(fd, FS_IOC_GETFLAGS, flags, True)\n return bool(flags[0] & FS_IMMUTABLE_FL)", "def setblocking(fd, flag):\n\n # get the file's current flag settin...
[ "0.6070557", "0.52018124", "0.5024385", "0.49306548", "0.4926993", "0.48649842", "0.48337775", "0.47418475", "0.46019533", "0.45977533", "0.4591028", "0.44767058", "0.44018012", "0.43646082", "0.43338102", "0.43089062", "0.4275479", "0.42734283", "0.42591506", "0.4255107", "0...
0.84549505
0
Add a handler to an existing logging.Logger object
def _add_handler(logger, handler=None, loglevel=None): handler.setLevel(loglevel or DEFAULT_LOGLEVEL) if handler.level <= logging.DEBUG: _fmt = '%(asctime)s| %(levelname)-4.3s|%(threadName)10.9s/' \ '%(lineno)04d@%(module)-10.9s| %(message)s' handler.setFormatter(logging.Formatter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_file_handler_to_logger(logger):\n # This makes \n if AppState().log_file is None:\n return\n\n # Create file handler which logs even DEBUG messages.\n fh = logging.FileHandler(AppState().log_file)\n\n # Set logging level for this file.\n fh.setLevel(logging.DEBUG)\n\n # Create f...
[ "0.730158", "0.7083873", "0.70768595", "0.69950664", "0.67779076", "0.67307496", "0.6639868", "0.6612778", "0.6585183", "0.65658885", "0.6468931", "0.64650214", "0.6443481", "0.64255625", "0.63551295", "0.63521326", "0.634116", "0.63212717", "0.63015157", "0.62598276", "0.625...
0.74555445
0
Add a console handler for paramiko.transport's logger if not present
def _check_paramiko_handlers(logger=None): paramiko_logger = logging.getLogger('paramiko.transport') if not paramiko_logger.handlers: if logger: paramiko_logger.handlers = logger.handlers else: console_handler = logging.StreamHandler() console_handler.setForma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _setup_cmd_logger():\n logger.setLevel(logging.DEBUG)\n ch = logging.StreamHandler()\n formatter = ColoredFormatter('%(log_color)s[%(levelname)8s] %(message)s%(reset)s')\n ch.setLevel(level=logging.DEBUG)\n ch.setFormatter(formatter)\n logger.addHandler(ch)", "def setup_logger_console(log_l...
[ "0.62692356", "0.61782694", "0.61622053", "0.60665613", "0.601746", "0.59057075", "0.58986324", "0.58926237", "0.5885338", "0.58700985", "0.58597547", "0.58551115", "0.58316165", "0.57992226", "0.5792013", "0.57112014", "0.56644404", "0.56620884", "0.56540704", "0.5643124", "...
0.72201777
0
Check that if all tunnels are established and populates
def check_tunnels(self): skip_tunnel_checkup = self.skip_tunnel_checkup try: # force tunnel check at this point self.skip_tunnel_checkup = False for _srv in self._server_list: self._check_tunnel(_srv) finally: self.skip_tunnel_check...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _check_tunnel(self, _srv):\n if self.skip_tunnel_checkup:\n self.tunnel_is_up[_srv.local_address] = True\n return\n self.logger.info('Checking tunnel to: {0}'.format(_srv.remote_address))\n if isinstance(_srv.local_address, string_types): # UNIX stream\n s...
[ "0.6775253", "0.66485655", "0.64152706", "0.638992", "0.62913436", "0.62176776", "0.6206469", "0.61653435", "0.6158915", "0.5879251", "0.58663124", "0.57571006", "0.57403094", "0.5739101", "0.57283133", "0.57218915", "0.56847924", "0.5672672", "0.5664348", "0.5653754", "0.564...
0.767064
0
Check if tunnel is already established
def _check_tunnel(self, _srv): if self.skip_tunnel_checkup: self.tunnel_is_up[_srv.local_address] = True return self.logger.info('Checking tunnel to: {0}'.format(_srv.remote_address)) if isinstance(_srv.local_address, string_types): # UNIX stream s = socket.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tunnel_up(self):\n return self._ssh_host != None and self._ssh_port != None", "def check_tunnels(self):\n skip_tunnel_checkup = self.skip_tunnel_checkup\n try:\n # force tunnel check at this point\n self.skip_tunnel_checkup = False\n for _srv in self._ser...
[ "0.76572174", "0.68320966", "0.6712594", "0.66211444", "0.65298826", "0.6516994", "0.6469484", "0.64455706", "0.6440732", "0.642409", "0.64158744", "0.64121675", "0.640858", "0.6397321", "0.6368237", "0.63668215", "0.63547385", "0.6343381", "0.6332009", "0.62437207", "0.62311...
0.7658537
0
Make SSH Handler class
def _make_ssh_forward_handler_class(self, remote_address_): class Handler(_ForwardHandler): remote_address = remote_address_ ssh_transport = self._transport logger = self.logger return Handler
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, settings, server=None):\n print(\"SSH Action Handler Started\")\n self.server = server\n self.active_ssh_tasks = {}\n self.key_location = settings[\"ssh_key_location\"]\n self.server_addr = settings[\"ssh_server_addr\"]\n self.server_username = settings[...
[ "0.6786921", "0.664092", "0.5964434", "0.59032935", "0.5826504", "0.5811605", "0.5802258", "0.57916", "0.57681113", "0.57595307", "0.56702554", "0.5632079", "0.5591133", "0.5555422", "0.5547671", "0.5513227", "0.54987305", "0.547998", "0.54228693", "0.5409541", "0.54088503", ...
0.7127526
0
Read ssh_config_file and tries to look for user (ssh_username), identityfile (ssh_pkey), port (ssh_port) and proxycommand (ssh_proxy) entries for ssh_host
def _read_ssh_config(ssh_host, ssh_config_file, ssh_username=None, ssh_pkey=None, ssh_port=None, ssh_proxy=None, compression=None, logger=None): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _load_config(self, sshconfig=\"~/.ssh/config\"):\n rpath = os.path.realpath(os.path.expanduser(sshconfig))\n try:\n os.stat(rpath)\n except OSError:\n return\n\n try:\n with codecs.open(rpath, \"rb\", \"utf-8\") as f:\n clines = f.read...
[ "0.6473108", "0.64405686", "0.6379368", "0.5951086", "0.5951086", "0.58582616", "0.58304334", "0.57917017", "0.5772919", "0.57614845", "0.57045346", "0.56750584", "0.563401", "0.5628457", "0.5615216", "0.5609538", "0.5607589", "0.5602402", "0.55837905", "0.557609", "0.5556947...
0.7810559
0
Fill local_binds with defaults when no value/s were specified, leaving paramiko to decide in which local port the tunnel will be open
def _consolidate_binds(local_binds, remote_binds): count = len(remote_binds) - len(local_binds) if count < 0: raise ValueError('Too many local bind addresses ' '(local_bind_addresses > remote_bind_addresses)') local_binds.extend([('0.0.0.0', 0) for x in r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_forward(\n self, remote_host, remote_port, local_host=\"0.0.0.0\", local_port=44556\n ):\n tunnel = SSHTunnelForwarder(\n (self.hostname, self.port),\n ssh_username=self.user,\n ssh_pkey=get_pkey(self.issho_conf[\"ID_RSA\"]),\n remote_bind_addr...
[ "0.579129", "0.5754728", "0.55586314", "0.5536749", "0.5503512", "0.54927737", "0.54771763", "0.54581785", "0.54327863", "0.5351175", "0.5337139", "0.5322381", "0.5304873", "0.5271184", "0.52708703", "0.5213023", "0.5150957", "0.512968", "0.5124702", "0.5117299", "0.5079624",...
0.610802
0
Return the SSH transport to the remote gateway
def _get_transport(self): if self.ssh_proxy: if isinstance(self.ssh_proxy, paramiko.proxy.ProxyCommand): proxy_repr = repr(self.ssh_proxy.cmd[1]) else: proxy_repr = repr(self.ssh_proxy) self.logger.debug('Connecting via proxy: {0}'.format(proxy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def connect():\n paramiko.util.log_to_file(LOG)\n trans = paramiko.Transport((HOST, 22))\n rsa_key = paramiko.RSAKey.from_private_key_file(KEY)\n trans.connect(username=USER, pkey=rsa_key)\n sftp = paramiko.SFTPClient.from_transport(trans)\n \n return trans, sftp", "def ssh_tunnel(self):\n ...
[ "0.67360616", "0.6717303", "0.66640174", "0.65196717", "0.65074384", "0.6271527", "0.6258517", "0.6214405", "0.61691695", "0.60874236", "0.6065305", "0.6048453", "0.60281336", "0.6024088", "0.5985701", "0.59793967", "0.5929255", "0.5899957", "0.5889407", "0.5888757", "0.58854...
0.7293791
0
Shut the tunnel down. By default we are always waiting until closing all connections. You can use `force=True` to force close connections
def stop(self, force=False): self.logger.info('Closing all open connections...') opened_address_text = ', '.join( (address_to_str(k.local_address) for k in self._server_list) ) or 'None' self.logger.debug('Listening tunnels: ' + opened_address_text) self._stop_transpo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _stop_transport(self, force=False):\n try:\n self._check_is_started()\n except (BaseSSHTunnelForwarderError,\n HandlerSSHTunnelForwarderError) as e:\n self.logger.warning(e)\n if force and self.is_active:\n # don't wait connections\n ...
[ "0.77367306", "0.6694203", "0.65290046", "0.64633465", "0.6440187", "0.64118755", "0.63934726", "0.6372723", "0.63686204", "0.6336779", "0.6279869", "0.62692505", "0.62551904", "0.6253709", "0.622172", "0.62026864", "0.6190491", "0.6169963", "0.61657774", "0.6155323", "0.6127...
0.77172184
1
Open connection to SSH gateway First try with all keys loaded from an SSH agent (if allowed) Then with those passed directly or read from ~/.ssh/config As last resort, try with a provided password
def _connect_to_gateway(self): for key in self.ssh_pkeys: self.logger.debug('Trying to log in with key: {0}' .format(hexlify(key.get_fingerprint()))) try: self._transport = self._get_transport() self._transport.connect(hostkey...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def session_open(self):\n logger.debug(\"entering session_open()\")\n kwargs = {\"hostname\": self.host, \"username\": self.user}\n ssh_client = paramiko.SSHClient()\n ssh_client.load_system_host_keys()\n ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())\n s...
[ "0.75185007", "0.69287705", "0.67997575", "0.6714912", "0.6696348", "0.66660726", "0.66601133", "0.65854514", "0.65743357", "0.65551376", "0.65543604", "0.65050286", "0.6448243", "0.6445054", "0.6422562", "0.6422422", "0.6381381", "0.63182485", "0.628655", "0.62543863", "0.62...
0.73891294
1
Return a list containing the ports of local side of the TCP tunnels
def local_bind_ports(self): self._check_is_started() return [_server.local_port for _server in self._server_list if _server.local_port is not None]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_ports(self):\n return self._ports", "def ports(self) -> List[int]:\n if self.head_port:\n return [self.head_port]\n else:\n ports = []\n for replica in self.pod_args['pods'][0]:\n if isinstance(replica.port, list):\n ...
[ "0.71080494", "0.70984805", "0.70850456", "0.706947", "0.69653106", "0.6954283", "0.68551344", "0.68414927", "0.6839134", "0.6836259", "0.67883843", "0.67638737", "0.6759709", "0.6700629", "0.66362476", "0.6629589", "0.66145587", "0.659666", "0.65552", "0.6541116", "0.6525449...
0.7267724
0
Return a dictionary containing the active localremote tunnel_bindings
def tunnel_bindings(self): return dict((_server.remote_address, _server.local_address) for _server in self._server_list if self.tunnel_is_up[_server.local_address])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remote_connections(self):\r\n\r\n self.remote = self.newest_connections[~((self.newest_connections['remote_address'] == '0.0.0.0') | (self.newest_connections['remote_address'] == '127.0.0.1'))]\r\n return self.remote", "def bindings(self):\n return self.__bindings", "def tunnel(self):\n ...
[ "0.62615836", "0.6211017", "0.61059785", "0.60165507", "0.59712064", "0.5943763", "0.5931612", "0.5906434", "0.5779625", "0.57694745", "0.5747807", "0.56731176", "0.5661168", "0.5645949", "0.5590057", "0.5546492", "0.55099237", "0.5508082", "0.5494753", "0.5438664", "0.542293...
0.84435135
0
Define type of data expected for remote and local bind address lists Returns a tuple (ip_address, port) whose elements are (str, int)
def _bindlist(input_str): try: ip_port = input_str.split(':') if len(ip_port) == 1: _ip = ip_port[0] _port = None else: (_ip, _port) = ip_port if not _ip and not _port: raise AssertionError elif not _port: _port = '2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def address_tuple(self):\n\n return (self.address, int(self.port))", "def localhost_address_tuple(self):\n\n return (\"127.0.0.1\", int(self.port))", "def address(self) -> tuple[str, int]:", "def get_ip_port_tshark(str_data):\n separator = str_data.rindex(\":\")\n ip = str_data[:separator...
[ "0.65942574", "0.6388307", "0.62693864", "0.6202907", "0.61671025", "0.61671025", "0.6098779", "0.60970616", "0.60473275", "0.6044083", "0.5978591", "0.59327024", "0.59112835", "0.5846814", "0.5834561", "0.5809299", "0.57478064", "0.56925285", "0.56547385", "0.5647703", "0.56...
0.7255948
0
Pass input arguments to open_tunnel
def _cli_main(args=None, **extras): arguments = _parse_arguments(args) # Remove all "None" input values _remove_none_values(arguments) verbosity = min(arguments.pop('verbose'), 4) levels = [logging.ERROR, logging.WARNING, logging.INFO, logging.DEBUG, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def testExtraArgsSSHTunnel(self):\n fake_ip_addr = \"1.1.1.1\"\n fake_rsa_key_file = \"/tmp/rsa_file\"\n fake_target_vnc_port = 8888\n target_adb_port = 9999\n ssh_user = \"fake_user\"\n fake_port = 12345\n self.Patch(utils, \"PickFreePort\", return_value=fake_port)...
[ "0.6474638", "0.5975455", "0.5935769", "0.59085613", "0.5812909", "0.57935566", "0.57738376", "0.5760542", "0.5744616", "0.57356274", "0.5582266", "0.5520039", "0.55166715", "0.55127615", "0.54224026", "0.5387747", "0.53810596", "0.533782", "0.532005", "0.53157586", "0.531449...
0.6211992
1
THe reference number of the bottle listed in the reading
def ref(self): return self.bottle.ref
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_ref_index(self):\n total_pol = self.get_compound_pol()\n molar_volume = self.get_molar_volume()\n if not total_pol:\n return None\n ref_index = np.sqrt((4 * np.pi * total_pol) / ((2.26 - 4 * np.pi / 3) * total_pol + molar_volume) + 1)\n return ref_index", "de...
[ "0.6187323", "0.61432976", "0.6112604", "0.60540026", "0.59829843", "0.5976102", "0.5951885", "0.5948475", "0.59262407", "0.5922211", "0.59036016", "0.5899132", "0.5871037", "0.58575326", "0.5835584", "0.583141", "0.5823899", "0.58146167", "0.58122456", "0.5795709", "0.579217...
0.6673594
0
THe gas mix of the associated bottle
def mix(self): return self.bottle.mix
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compute_mixing_coefficients_bot(self):\n [Ly,N] = self.b.shape\n z_u_w = self.grid_dict['z_u_w']\n\n v_upts = TTTW_func.v2u(self.v)\n\n self.sigma_bot = []\n self.Kv0 = np.zeros([Ly,N+1])\n self.Kt0 = np.zeros([Ly,N+1])\n for j in range(Ly):\n # turb...
[ "0.61490744", "0.5648351", "0.5496578", "0.5425663", "0.5341396", "0.531968", "0.53028226", "0.5288497", "0.5263487", "0.52349967", "0.5207807", "0.52044094", "0.5183879", "0.51709795", "0.51653236", "0.5154777", "0.5135477", "0.5124198", "0.51158786", "0.5088113", "0.5088013...
0.5975279
1
Load all cogs from the 'cogs' directory
def load_cogs(self): path = "cogs/" # Should always have a trailing slash import_path = path.replace("/", ".") extensions: list[str] = [ import_path + file.replace(".py", "") for file in os.listdir(path) if os.path.isfile(f"{path}{file}") ] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __load_cogs(self):\n for cog in self.__cogs.get():\n logging.info('loading %s', cog)\n self.load_extension(cog)", "def reload_cogs(self):\n\n for extension in list(self.extensions):\n try:\n self.reload_extension(extension)\n except err...
[ "0.81047094", "0.6737576", "0.6547387", "0.64138633", "0.627226", "0.61398363", "0.6122156", "0.6012189", "0.58965945", "0.5682925", "0.56692845", "0.5621133", "0.55831224", "0.55609417", "0.5515546", "0.5498867", "0.54932314", "0.5485387", "0.5458083", "0.5417369", "0.541326...
0.85657376
0
Reload all loaded cogs
def reload_cogs(self): for extension in list(self.extensions): try: self.reload_extension(extension) except errors.NoEntryPointError: log.info("The extension {extension} has no setup function") pass except errors.ExtensionAlrea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def reload(self, ctx:utils.Context, *cog_name:str):\n\n cog_name = 'cogs.' + '_'.join([i for i in cog_name])\n\n try:\n self.bot.load_extension(cog_name)\n except commands.ExtensionAlreadyLoaded:\n try:\n self.bot.unload_extension(cog_name)\n ...
[ "0.7033478", "0.69451255", "0.6755757", "0.6755757", "0.67295516", "0.6648899", "0.664729", "0.6645348", "0.65898687", "0.64225334", "0.6355888", "0.6350144", "0.62714565", "0.6174131", "0.6154524", "0.6139652", "0.61350954", "0.60747707", "0.60646397", "0.6044675", "0.604196...
0.773994
0
Test AnnualLeaveForm with decimal days.
def test_annual_leave_form_decimals(self): user = mommy.make("auth.User", first_name="Bob", last_name="Ndoe") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) request = self.factory.get("/") request.session = {} request.user = AnonymousUser() data = {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_leaveform_max_days(self):\n user = mommy.make(\"auth.User\", first_name=\"Bob\", last_name=\"Ndoe\")\n staffprofile = mommy.make(\"small_small_hr.StaffProfile\", user=user)\n staffprofile.leave_days = 21\n staffprofile.sick_days = 10\n staffprofile.save()\n\n requ...
[ "0.7281258", "0.68907803", "0.6889661", "0.6779469", "0.6674891", "0.64672923", "0.6454044", "0.64290416", "0.63169855", "0.627206", "0.6265622", "0.62043196", "0.5948398", "0.5836956", "0.57466686", "0.5738188", "0.57262295", "0.5616313", "0.5578795", "0.5547616", "0.5536841...
0.7893113
0
Test OverTimeForm with overlap for existing objects.
def test_overtime_form_process_with_overlap(self): user = mommy.make("auth.User", first_name="Bob", last_name="Ndoe") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) request = self.factory.get("/") request.session = {} request.user = AnonymousUser() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_overtime_form_apply_no_overlap(self):\n user = mommy.make(\"auth.User\", first_name=\"Bob\", last_name=\"Ndoe\")\n staffprofile = mommy.make(\"small_small_hr.StaffProfile\", user=user)\n\n request = self.factory.get(\"/\")\n request.session = {}\n request.user = Anonymou...
[ "0.76187646", "0.6542121", "0.6452166", "0.62871176", "0.62107134", "0.6148731", "0.6093373", "0.6084772", "0.60275173", "0.59073406", "0.59055", "0.58857536", "0.5885605", "0.58551836", "0.58335024", "0.58335024", "0.5771665", "0.5764608", "0.57556933", "0.57429683", "0.5738...
0.75105304
1
Test OverTimeForm start end fields.
def test_overtime_form_start_end(self): user = mommy.make("auth.User", first_name="Bob", last_name="Ndoe") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) request = self.factory.get("/") request.session = {} request.user = AnonymousUser() start = dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_field_start_time_not_bigger_than_end_time(self):\n form = self.make_FieldForm_validated(start_time=\"10:40\", end_time=\"9:00\")\n self.assertListEqual([\"__all__\"], list(form.errors))", "def test_overtime_form_process_with_overlap(self):\n user = mommy.make(\"auth.User\", first_na...
[ "0.69037473", "0.65858287", "0.6472992", "0.6455287", "0.6415512", "0.61734456", "0.6171806", "0.61608535", "0.6140685", "0.61234224", "0.5972017", "0.5946175", "0.59197986", "0.59122825", "0.59088945", "0.58745897", "0.58695656", "0.5765348", "0.5743106", "0.5724506", "0.567...
0.80720454
0
Test LeaveForm apply for leave.
def test_leaveform_apply(self): user = mommy.make("auth.User", first_name="Bob", last_name="Ndoe") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) staffprofile.leave_days = 21 staffprofile.sick_days = 10 staffprofile.save() request = self.factory.get(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_leaveform_no_overlap(self):\n user = mommy.make(\"auth.User\", first_name=\"Bob\", last_name=\"Ndoe\")\n staffprofile = mommy.make(\"small_small_hr.StaffProfile\", user=user)\n staffprofile.leave_days = 21\n staffprofile.sick_days = 10\n staffprofile.save()\n\n re...
[ "0.71491563", "0.7073332", "0.68779004", "0.6833441", "0.6643837", "0.65629363", "0.6559908", "0.63612664", "0.6309911", "0.6163169", "0.6080903", "0.59029245", "0.58312833", "0.56878823", "0.5650338", "0.56020325", "0.5566159", "0.55186003", "0.54910886", "0.54739606", "0.54...
0.75476915
0
Test application for one day leave.
def test_one_day_leave(self): user = mommy.make("auth.User", first_name="Bob", last_name="Ndoe") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) staffprofile.leave_days = 21 staffprofile.sick_days = 10 staffprofile.save() request = self.factory.get("/...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_leave_oversubscribe_off(self):\n user = mommy.make(\"auth.User\", first_name=\"Bob\", last_name=\"Ndoe\")\n staffprofile = mommy.make(\"small_small_hr.StaffProfile\", user=user)\n staffprofile.leave_days = 21\n staffprofile.sick_days = 10\n staffprofile.save()\n\n ...
[ "0.644819", "0.6436864", "0.63061", "0.61098903", "0.60137403", "0.5964021", "0.59452546", "0.5901124", "0.58988696", "0.5884434", "0.5868431", "0.5864215", "0.5861571", "0.5769738", "0.5756127", "0.5754291", "0.573856", "0.5724665", "0.5720167", "0.57131606", "0.5687971", ...
0.671469
0
Test LeaveForm no overlap.
def test_leaveform_no_overlap(self): user = mommy.make("auth.User", first_name="Bob", last_name="Ndoe") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) staffprofile.leave_days = 21 staffprofile.sick_days = 10 staffprofile.save() request = self.factory...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_leaveform_process_with_overlap(self):\n user = mommy.make(\"auth.User\", first_name=\"Bob\", last_name=\"Ndoe\")\n staffprofile = mommy.make(\"small_small_hr.StaffProfile\", user=user)\n staffprofile.leave_days = 21\n staffprofile.sick_days = 10\n staffprofile.save()\n\n...
[ "0.67735326", "0.63922834", "0.59517926", "0.5882709", "0.5882709", "0.58206546", "0.5817428", "0.5760936", "0.57062036", "0.56520534", "0.5598502", "0.554994", "0.5541704", "0.5528245", "0.552553", "0.5517636", "0.55156803", "0.5504129", "0.54915005", "0.54858375", "0.547803...
0.7283469
0
Test LeaveForm process works even if leave object exists.
def test_leaveform_process_with_overlap(self): user = mommy.make("auth.User", first_name="Bob", last_name="Ndoe") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) staffprofile.leave_days = 21 staffprofile.sick_days = 10 staffprofile.save() request = se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_leaveform_admin(self):\n user = mommy.make(\"auth.User\", first_name=\"Bob\", last_name=\"Ndoe\")\n staffprofile = mommy.make(\"small_small_hr.StaffProfile\", user=user)\n staffprofile.leave_days = 21\n staffprofile.sick_days = 10\n staffprofile.save()\n\n request...
[ "0.7076453", "0.7010631", "0.6957248", "0.6599136", "0.6582377", "0.6566351", "0.65413404", "0.6510575", "0.62859243", "0.6242199", "0.61983263", "0.59142435", "0.5827286", "0.57848144", "0.5703488", "0.5654972", "0.5579377", "0.5565576", "0.5562733", "0.5536838", "0.5487293"...
0.7320913
0
Test LeaveForm apply for sick leave.
def test_sickleave_apply(self): user = mommy.make("auth.User", first_name="Bob", last_name="Ndoe") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) staffprofile.leave_days = 21 staffprofile.sick_days = 10 staffprofile.save() request = self.factory.get(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_leaveform_apply(self):\n user = mommy.make(\"auth.User\", first_name=\"Bob\", last_name=\"Ndoe\")\n staffprofile = mommy.make(\"small_small_hr.StaffProfile\", user=user)\n staffprofile.leave_days = 21\n staffprofile.sick_days = 10\n staffprofile.save()\n\n request...
[ "0.71577907", "0.6866498", "0.68400884", "0.6765718", "0.660228", "0.65838856", "0.65016943", "0.6318992", "0.62988096", "0.6177277", "0.60716784", "0.57531554", "0.56196386", "0.5402689", "0.5401456", "0.5372556", "0.53161985", "0.5214679", "0.51996654", "0.51943445", "0.514...
0.7177349
0
Test LeaveForm process sick leave.
def test_sickleave_process(self): user = mommy.make("auth.User", first_name="Bob", last_name="Ndoe") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) staffprofile.leave_days = 21 staffprofile.sick_days = 10 staffprofile.save() request = self.factory.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def leave(self):\n self.pleaseQuit=1", "def test_leaveform_process_with_overlap(self):\n user = mommy.make(\"auth.User\", first_name=\"Bob\", last_name=\"Ndoe\")\n staffprofile = mommy.make(\"small_small_hr.StaffProfile\", user=user)\n staffprofile.leave_days = 21\n staffprofil...
[ "0.67501426", "0.6595614", "0.653262", "0.65064394", "0.64996254", "0.64383876", "0.640696", "0.6336153", "0.6308009", "0.6307785", "0.62981766", "0.6237008", "0.62151253", "0.61743563", "0.60905206", "0.60466564", "0.6023712", "0.5977555", "0.5957751", "0.59405535", "0.58503...
0.666937
1
Test leave days sufficient.
def test_leaveform_max_days(self): user = mommy.make("auth.User", first_name="Bob", last_name="Ndoe") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) staffprofile.leave_days = 21 staffprofile.sick_days = 10 staffprofile.save() request = self.factory.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Daysleftverification():\n pass", "def isLeaveLeft(self,leave_type,days):\n if leave_type == 1 :\n return days<=self.earned_balance\n elif leave_type == 2 :\n return days<=self.hp_balance\n elif leave_type == 3 :\n return days*2<=self.hp_balance \n ...
[ "0.7283778", "0.69937253", "0.69766676", "0.6856982", "0.6750773", "0.66546655", "0.6651582", "0.6467872", "0.6376243", "0.6373224", "0.6355564", "0.635506", "0.6275747", "0.6274649", "0.62272155", "0.6193317", "0.6190739", "0.6174433", "0.6147189", "0.6145103", "0.6110374", ...
0.7107806
1
Test StaffProfileUserForm image not required on update.
def test_staffprofile_user_form_no_image(self): user = mommy.make("auth.User") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) request = self.factory.get("/") request.session = {} request.user = AnonymousUser() path = os.path.join(BASE_DIR, "tests", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_staffprofile_admin_form_no_image(self):\n user = mommy.make(\"auth.User\")\n staffprofile = mommy.make(\"small_small_hr.StaffProfile\", user=user)\n\n request = self.factory.get(\"/\")\n request.session = {}\n request.user = AnonymousUser()\n\n path = os.path.join...
[ "0.7652241", "0.6728502", "0.66071117", "0.6606162", "0.6591402", "0.6577869", "0.6530034", "0.64637095", "0.640589", "0.6283228", "0.61998254", "0.61802197", "0.6131706", "0.6127896", "0.612147", "0.6116664", "0.6115772", "0.6107535", "0.60589457", "0.60509855", "0.6047661",...
0.78006655
0
Test StaffProfileAdminForm image not required when editting.
def test_staffprofile_admin_form_no_image(self): user = mommy.make("auth.User") staffprofile = mommy.make("small_small_hr.StaffProfile", user=user) request = self.factory.get("/") request.session = {} request.user = AnonymousUser() path = os.path.join(BASE_DIR, "tests",...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_staffprofile_user_form_no_image(self):\n user = mommy.make(\"auth.User\")\n staffprofile = mommy.make(\"small_small_hr.StaffProfile\", user=user)\n\n request = self.factory.get(\"/\")\n request.session = {}\n request.user = AnonymousUser()\n\n path = os.path.join(...
[ "0.7230931", "0.65301496", "0.60166913", "0.6003747", "0.5991661", "0.59901386", "0.5923907", "0.5909916", "0.58569574", "0.58297867", "0.57913953", "0.5783393", "0.5762155", "0.57606184", "0.5758113", "0.569092", "0.5689196", "0.56693393", "0.56252676", "0.5616211", "0.55839...
0.7694595
0
convert a TSV row to a dict
def tsvRowToDict(row): return {col: getattr(row, col) for col in row._columns_}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sv_to_dict(sv_data, cell_delimiter=\"\\t\"):\n result = {}\n rows = [row.split(cell_delimiter) for row in sv_data.splitlines()]\n\n if rows:\n header = rows.pop(0)\n header_len = len(header)\n\n for idx, header_col in enumerate(header):\n result[header_col] = []\n\n ...
[ "0.6821006", "0.6447306", "0.63589346", "0.6260246", "0.60955495", "0.6078354", "0.5975733", "0.58779573", "0.58404744", "0.5821709", "0.58196867", "0.58150125", "0.58036083", "0.5798473", "0.5777305", "0.57152206", "0.57152206", "0.5710342", "0.5708072", "0.57009596", "0.568...
0.83762723
0
Testing whether the clusters are correctly created and if the old and new dataframes are the exact same aside from the Topic column
def test_cluster_embeddings(base_bertopic, samples, features, centers): embeddings, _ = make_blobs(n_samples=samples, centers=centers, n_features=features, random_state=42) documents = [str(i + 1) for i in range(embeddings.shape[0])] old_df = pd.DataFrame({"Document": documents, "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_assign_clusters_nonsparse(self, new_data, filename):\n\n sqlalchemy_conn_str = open('../conf/sqlalchemy_conn_str.txt', 'r').read()\n engine = create_engine(sqlalchemy_conn_str)\n if self.split_type == 'random':\n averages_seg = pd.read_sql('SELECT * FROM clust_nonsparse_ave...
[ "0.6708922", "0.63803506", "0.619212", "0.6143325", "0.6065571", "0.6004695", "0.595611", "0.5744816", "0.57216233", "0.567206", "0.5561389", "0.55570865", "0.55501693", "0.5544099", "0.55346334", "0.55069065", "0.54677224", "0.5462687", "0.5441739", "0.5440946", "0.5409589",...
0.6381417
1
Test whether the topics are correctly extracted using cTFIDF
def test_extract_topics(base_bertopic): nr_topics = 5 documents = pd.DataFrame({"Document": newsgroup_docs, "ID": range(len(newsgroup_docs)), "Topic": np.random.randint(-1, nr_topics-1, len(newsgroup_docs))}) base_bertopic._update_topic_size(docume...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_extract_topics():\n nr_topics = 5\n documents = pd.DataFrame({\"Document\": newsgroup_docs,\n \"ID\": range(len(newsgroup_docs)),\n \"Topic\": np.random.randint(-1, nr_topics-1, len(newsgroup_docs))})\n model = BERTopic()\n model._updat...
[ "0.7501682", "0.71820104", "0.7172594", "0.65129846", "0.6319828", "0.6298175", "0.6200613", "0.61970544", "0.6028055", "0.6013558", "0.5967163", "0.59517914", "0.5941613", "0.5909699", "0.5895177", "0.5893227", "0.58905315", "0.58895624", "0.5875359", "0.58233863", "0.577737...
0.72383255
1
Replace terminator with given operator.
def replaceTerminator(self, op): self._children[0].replaceTerminator(op)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def replaceTerminator(self, op):\n if not (op in (',', ';')):\n raise RuntimeError(\"invalid replacement terminator for GlslBlockStatement: '%s'\" % (op))\n self.__terminator = op", "def set_terminator (self, term):\r\n self.terminator = term", "def _remove_operator(self, operat...
[ "0.6887956", "0.64663404", "0.6182046", "0.6009709", "0.5759515", "0.5676872", "0.5563232", "0.55417585", "0.5515796", "0.5486866", "0.54747343", "0.5472199", "0.5358069", "0.5353344", "0.530891", "0.5292029", "0.52111715", "0.5193843", "0.51775455", "0.5096455", "0.5080006",...
0.79558337
0
Tell if given object is GlslBlockUnary.
def is_glsl_block_unary(op): return isinstance(op, GlslBlockUnary)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_glsl_block_function(op):\n return isinstance(op, GlslBlockFunction)", "def is_unary(*args):\n return _ida_hexrays.is_unary(*args)", "def isLux(self):\n return _libsbml.Unit_isLux(self)", "def is_block(modules):\n if isinstance(modules, (BasicBlock, Bottleneck)):\n return T...
[ "0.6930309", "0.575511", "0.57203484", "0.55796754", "0.55182594", "0.540804", "0.53220403", "0.52651286", "0.52540934", "0.5241585", "0.5217723", "0.51737624", "0.51331514", "0.5100314", "0.5092402", "0.50843877", "0.50426793", "0.5042636", "0.49764892", "0.4973854", "0.4966...
0.8295164
0
Delete all user channel (AdminDeleteAllUserChannels)
def admin_delete_all_user_channels( user_id: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs ): if namespace is None: namespace, error = get_services_namespace() if error: return None, error request = AdminDeleteAl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def admin_delete_all_user_channels_async(\n user_id: str,\n namespace: Optional[str] = None,\n x_additional_headers: Optional[Dict[str, str]] = None,\n **kwargs\n):\n if namespace is None:\n namespace, error = get_services_namespace()\n if error:\n return None, error\n...
[ "0.7898083", "0.72674114", "0.7254808", "0.7245049", "0.6908353", "0.6609588", "0.6604705", "0.6420626", "0.62551856", "0.6188927", "0.6140078", "0.6094711", "0.6078365", "0.6064797", "0.6021782", "0.60032964", "0.60025203", "0.59636873", "0.5854956", "0.58364797", "0.5795710...
0.80059516
0
Delete all user channel (AdminDeleteAllUserChannels)
async def admin_delete_all_user_channels_async( user_id: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs ): if namespace is None: namespace, error = get_services_namespace() if error: return None, error request = A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def admin_delete_all_user_channels(\n user_id: str,\n namespace: Optional[str] = None,\n x_additional_headers: Optional[Dict[str, str]] = None,\n **kwargs\n):\n if namespace is None:\n namespace, error = get_services_namespace()\n if error:\n return None, error\n request ...
[ "0.80059516", "0.72674114", "0.7254808", "0.7245049", "0.6908353", "0.6609588", "0.6604705", "0.6420626", "0.62551856", "0.6188927", "0.6140078", "0.6094711", "0.6078365", "0.6064797", "0.6021782", "0.60032964", "0.60025203", "0.59636873", "0.5854956", "0.58364797", "0.579571...
0.7898083
1
Delete all user content (AdminDeleteAllUserContents)
def admin_delete_all_user_contents( user_id: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs ): if namespace is None: namespace, error = get_services_namespace() if error: return None, error request = AdminDeleteAl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def admin_delete_all_user_contents_async(\n user_id: str,\n namespace: Optional[str] = None,\n x_additional_headers: Optional[Dict[str, str]] = None,\n **kwargs\n):\n if namespace is None:\n namespace, error = get_services_namespace()\n if error:\n return None, error\n...
[ "0.7695932", "0.70614326", "0.69029784", "0.6857792", "0.67886686", "0.6783617", "0.6705377", "0.6401076", "0.6337609", "0.63262594", "0.60780257", "0.60508883", "0.6026724", "0.60263366", "0.6008929", "0.59786737", "0.58621305", "0.58621305", "0.58621305", "0.5858343", "0.58...
0.7901165
0
Delete all user content (AdminDeleteAllUserContents)
async def admin_delete_all_user_contents_async( user_id: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs ): if namespace is None: namespace, error = get_services_namespace() if error: return None, error request = A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def admin_delete_all_user_contents(\n user_id: str,\n namespace: Optional[str] = None,\n x_additional_headers: Optional[Dict[str, str]] = None,\n **kwargs\n):\n if namespace is None:\n namespace, error = get_services_namespace()\n if error:\n return None, error\n request ...
[ "0.7901165", "0.70614326", "0.69029784", "0.6857792", "0.67886686", "0.6783617", "0.6705377", "0.6401076", "0.6337609", "0.63262594", "0.60780257", "0.60508883", "0.6026724", "0.60263366", "0.6008929", "0.59786737", "0.58621305", "0.58621305", "0.58621305", "0.5858343", "0.58...
0.7695932
1
Delete all user group (AdminDeleteAllUserGroup)
def admin_delete_all_user_group( user_id: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs ): if namespace is None: namespace, error = get_services_namespace() if error: return None, error request = AdminDeleteAllUs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def admin_delete_all_user_group_async(\n user_id: str,\n namespace: Optional[str] = None,\n x_additional_headers: Optional[Dict[str, str]] = None,\n **kwargs\n):\n if namespace is None:\n namespace, error = get_services_namespace()\n if error:\n return None, error\n ...
[ "0.77317256", "0.70222354", "0.69721305", "0.68975395", "0.6837586", "0.6703791", "0.6695783", "0.65806043", "0.65806043", "0.6563135", "0.65359503", "0.64795494", "0.64795494", "0.64432955", "0.6440339", "0.6369642", "0.6265606", "0.6232593", "0.61661345", "0.6165809", "0.61...
0.7842726
0
Delete all user group (AdminDeleteAllUserGroup)
async def admin_delete_all_user_group_async( user_id: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs ): if namespace is None: namespace, error = get_services_namespace() if error: return None, error request = Admi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def admin_delete_all_user_group(\n user_id: str,\n namespace: Optional[str] = None,\n x_additional_headers: Optional[Dict[str, str]] = None,\n **kwargs\n):\n if namespace is None:\n namespace, error = get_services_namespace()\n if error:\n return None, error\n request = A...
[ "0.7842726", "0.70222354", "0.69721305", "0.68975395", "0.6837586", "0.6703791", "0.6695783", "0.65806043", "0.65806043", "0.6563135", "0.65359503", "0.64795494", "0.64795494", "0.64432955", "0.6440339", "0.6369642", "0.6265606", "0.6232593", "0.61661345", "0.6165809", "0.613...
0.77317256
1
Connects to the source and target databases, then migrates a list of defined schema.
def main(): msg = """ ----------------------------------------------------- \n Running this script will delete the target database! \n And it will close connections on the target database. \n Are you sure you wish to continue? (y/n) \n ---------------------------------------------...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def migrate(ctx):\n connecter = ScalingoInterface(ctx.obj)\n connecter.manage_py(\"migrate\")", "def migrateTables(self):\n tables = self.client_from.tables.list(['columns'])\n if len(tables) > 0:\n for table in tables:\n self.client_to.tables.update(table['tableId']...
[ "0.66270685", "0.65551245", "0.63657236", "0.6327135", "0.62920964", "0.6264679", "0.6139678", "0.59504956", "0.5932942", "0.5913813", "0.58875227", "0.58672184", "0.5828043", "0.57921326", "0.57921326", "0.5790024", "0.57847106", "0.57833004", "0.577031", "0.57422334", "0.57...
0.6691668
0
Getter method for hop_id, mapped from YANG variable /input/LocatorRecord/rloc/explicit_locator_path/hop/hop_id (string)
def _get_hop_id(self): return self.__hop_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_hop_id(self, v, load=False):\n parent = getattr(self, \"_parent\", None)\n if parent is not None and load is False:\n raise AttributeError(\"Cannot set keys directly when\" +\n \" within an instantiated list\")\n\n try:\n t = YANGDynClass(v,base=unicode, is_l...
[ "0.68267083", "0.627477", "0.48852605", "0.46058208", "0.452317", "0.45115888", "0.4469593", "0.4469593", "0.44516543", "0.4372103", "0.4372103", "0.43642756", "0.43634617", "0.43230346", "0.4271133", "0.42687374", "0.42391634", "0.42179748", "0.42127243", "0.42127243", "0.42...
0.6507531
1
Setter method for hop_id, mapped from YANG variable /input/LocatorRecord/rloc/explicit_locator_path/hop/hop_id (string)
def _set_hop_id(self, v, load=False): parent = getattr(self, "_parent", None) if parent is not None and load is False: raise AttributeError("Cannot set keys directly when" + " within an instantiated list") try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_hop(self, v, load=False):\n try:\n t = YANGDynClass(v,base=YANGListType(\"hop_id\",yc_hop_pyangbind_example__input_LocatorRecord_rloc_explicit_locator_path_hop, yang_name=\"hop\", parent=self, is_container='list', user_ordered=True, path_helper=self._path_helper), is_container='list', yang_name=\"...
[ "0.6690221", "0.5993064", "0.4821764", "0.4768249", "0.4768249", "0.4768249", "0.47625202", "0.47625202", "0.47625202", "0.4690694", "0.4690694", "0.4690694", "0.4690694", "0.4690694", "0.4690694", "0.46848753", "0.46848753", "0.46848753", "0.46848753", "0.46848753", "0.46848...
0.7772029
0
Setter method for address, mapped from YANG variable /input/LocatorRecord/rloc/explicit_locator_path/hop/address (simpleaddress)
def _set_address(self, v, load=False): try: t = YANGDynClass(v,base=[unicode,unicode,unicode,unicode,unicode,], is_leaf=True, yang_name="address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""address...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_address(self, address):\n if address == \"\":\n self.address = Address(\"\", \"\", \"\")\n else:\n self.address = address", "def address(self, address: str):\n if address is None:\n raise ValueError(\"Invalid value for `address`, must not be `None`\")...
[ "0.62030184", "0.6122669", "0.60337484", "0.5985457", "0.59457284", "0.59440863", "0.58759737", "0.58455026", "0.58099014", "0.5727717", "0.5699049", "0.56339836", "0.5617944", "0.55898726", "0.55279684", "0.5515963", "0.5509817", "0.5505075", "0.5505075", "0.55014354", "0.54...
0.6426262
0
Getter method for lrs_bits, mapped from YANG variable /input/LocatorRecord/rloc/explicit_locator_path/hop/lrs_bits (string)
def _get_lrs_bits(self): return self.__lrs_bits
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_lrs_bits(self, v, load=False):\n try:\n t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name=\"lrs-bits\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError(\"\"\"lrs_bits must be of a type...
[ "0.76941806", "0.51797223", "0.5079757", "0.50214094", "0.49667132", "0.49497706", "0.47777623", "0.47258523", "0.46695194", "0.46509945", "0.45755452", "0.4493895", "0.44842264", "0.44806886", "0.44159406", "0.4404732", "0.4398201", "0.4387897", "0.43735254", "0.4366293", "0...
0.7207082
1
Setter method for lrs_bits, mapped from YANG variable /input/LocatorRecord/rloc/explicit_locator_path/hop/lrs_bits (string)
def _set_lrs_bits(self, v, load=False): try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="lrs-bits", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""lrs_bits must be of a type compatible wi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_lrs_bits(self):\n return self.__lrs_bits", "def test_bit_lscan_across_bytes(self):\n value = False\n ops = [bitwise_operations.bit_lscan(self.test_bin_ones, 7, 8, value)]\n\n expected_value = 1\n _, _, result = self.as_connection.operate(self.test_key, ops)\n assert...
[ "0.70125633", "0.5115934", "0.49813104", "0.49572697", "0.49218857", "0.49136877", "0.48856583", "0.48110783", "0.47007787", "0.46906585", "0.4647708", "0.45777962", "0.45075318", "0.4459902", "0.44569954", "0.4419056", "0.4411302", "0.44077265", "0.44067883", "0.44016144", "...
0.83665675
0
Setter method for hop, mapped from YANG variable /input/LocatorRecord/rloc/explicit_locator_path/hop (list)
def _set_hop(self, v, load=False): try: t = YANGDynClass(v,base=YANGListType("hop_id",yc_hop_pyangbind_example__input_LocatorRecord_rloc_explicit_locator_path_hop, yang_name="hop", parent=self, is_container='list', user_ordered=True, path_helper=self._path_helper), is_container='list', yang_name="hop", parent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_explicit_locator_path(self, v, load=False):\n try:\n t = YANGDynClass(v,base=yc_explicit_locator_path_pyangbind_example__input_LocatorRecord_rloc_explicit_locator_path, is_container='container', yang_name=\"explicit-locator-path\", parent=self, path_helper=self._path_helper, extmethods=self._extme...
[ "0.53979826", "0.5190791", "0.48206985", "0.4552641", "0.44636524", "0.44104028", "0.43401894", "0.4337924", "0.43294084", "0.43070313", "0.42820817", "0.42820817", "0.4262065", "0.42046434", "0.42014894", "0.4173866", "0.4170466", "0.41347787", "0.41344467", "0.41000643", "0...
0.7980384
0
Getter method for address_type, mapped from YANG variable /input/LocatorRecord/rloc/address_type (string)
def _get_address_type(self): return self.__address_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def address_type(self) -> str:\n return pulumi.get(self, \"address_type\")", "def _set_address_type(self, v, load=False):\n try:\n t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name=\"address-type\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True...
[ "0.733212", "0.6835204", "0.6450108", "0.633493", "0.6064406", "0.55583787", "0.54384947", "0.5180128", "0.5110294", "0.50746757", "0.5072969", "0.48838633", "0.48105177", "0.48083943", "0.47836375", "0.47796622", "0.47796622", "0.47796443", "0.47665113", "0.47665113", "0.475...
0.69393504
1
Setter method for address_type, mapped from YANG variable /input/LocatorRecord/rloc/address_type (string)
def _set_address_type(self, v, load=False): try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="address-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""address_type must be of a type c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def address_type(self, address_type):\n\n self._address_type = address_type", "def address_type(self) -> str:\n return pulumi.get(self, \"address_type\")", "def _get_address_type(self):\n return self.__address_type", "def type_address(self, address):\n\n\t\twith allure.step(\"Type payee addr...
[ "0.7591355", "0.6947403", "0.631784", "0.6311072", "0.580061", "0.55720127", "0.5236602", "0.520395", "0.5185082", "0.5172828", "0.51605636", "0.5091175", "0.50769246", "0.5018744", "0.50039303", "0.49844176", "0.49844176", "0.49465698", "0.4937902", "0.4934913", "0.49161026"...
0.79477996
0
Getter method for explicit_locator_path, mapped from YANG variable /input/LocatorRecord/rloc/explicit_locator_path (container)
def _get_explicit_locator_path(self): return self.__explicit_locator_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_explicit_locator_path(self, v, load=False):\n try:\n t = YANGDynClass(v,base=yc_explicit_locator_path_pyangbind_example__input_LocatorRecord_rloc_explicit_locator_path, is_container='container', yang_name=\"explicit-locator-path\", parent=self, path_helper=self._path_helper, extmethods=self._extme...
[ "0.8274631", "0.5152143", "0.4848081", "0.4848081", "0.47201043", "0.4715327", "0.46240458", "0.4464271", "0.43966737", "0.4369412", "0.43402007", "0.43370667", "0.43309107", "0.427388", "0.4268046", "0.426027", "0.42431262", "0.42356735", "0.42356735", "0.42356735", "0.42356...
0.7231172
1
Setter method for explicit_locator_path, mapped from YANG variable /input/LocatorRecord/rloc/explicit_locator_path (container)
def _set_explicit_locator_path(self, v, load=False): try: t = YANGDynClass(v,base=yc_explicit_locator_path_pyangbind_example__input_LocatorRecord_rloc_explicit_locator_path, is_container='container', yang_name="explicit-locator-path", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_explicit_locator_path(self):\n return self.__explicit_locator_path", "def _set_localLocator(self, v, load=False):\n try:\n t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name=\"localLocator\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\...
[ "0.69107413", "0.49755952", "0.47283068", "0.47283068", "0.45995176", "0.45432085", "0.4512959", "0.44011647", "0.43912807", "0.43638387", "0.43551135", "0.43550828", "0.43502715", "0.43456292", "0.43268922", "0.4310026", "0.4305122", "0.42458752", "0.41864803", "0.41821715", ...
0.88693
0
Getter method for locator_id, mapped from YANG variable /input/LocatorRecord/locator_id (string)
def _get_locator_id(self): return self.__locator_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_locator_id(self, v, load=False):\n parent = getattr(self, \"_parent\", None)\n if parent is not None and load is False:\n raise AttributeError(\"Cannot set keys directly when\" +\n \" within an instantiated list\")\n\n try:\n t = YANGDynClass(v,base=unicode, ...
[ "0.7350876", "0.60492724", "0.55044645", "0.5292573", "0.5196207", "0.5154262", "0.5143212", "0.510555", "0.510013", "0.5021925", "0.49630928", "0.49584314", "0.49514553", "0.48948523", "0.4884165", "0.4883817", "0.48638391", "0.48410615", "0.48236477", "0.48236477", "0.48236...
0.678453
1
Setter method for locator_id, mapped from YANG variable /input/LocatorRecord/locator_id (string)
def _set_locator_id(self, v, load=False): parent = getattr(self, "_parent", None) if parent is not None and load is False: raise AttributeError("Cannot set keys directly when" + " within an instantiated list") try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_LocatorRecord(self, v, load=False):\n try:\n t = YANGDynClass(v,base=YANGListType(\"locator_id\",yc_LocatorRecord_pyangbind_example__input_LocatorRecord, yang_name=\"LocatorRecord\", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper), is_container='list', yang_nam...
[ "0.63118845", "0.6116834", "0.541008", "0.5226008", "0.52146155", "0.52146155", "0.52146155", "0.52146155", "0.52146155", "0.52146155", "0.5208086", "0.5208086", "0.5208086", "0.5208086", "0.5208086", "0.5208086", "0.5152715", "0.5113063", "0.5104444", "0.51016283", "0.505076...
0.8190384
0
Setter method for priority, mapped from YANG variable /input/LocatorRecord/priority (uint8)
def _set_priority(self, v, load=False): try: t = YANGDynClass(v,base=np.uint8, is_leaf=True, yang_name="priority", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""priority must be of a type compatible w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_priority(self, priority):\n self._priority = priority", "def set_priority(self, priority):\n self.options[\"priority\"] = priority", "def _set_lsp_config_frr_setup_priority(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,bas...
[ "0.6697263", "0.661856", "0.6600593", "0.65722907", "0.65712124", "0.65397406", "0.65397406", "0.65397406", "0.6527119", "0.6515176", "0.6515176", "0.6515176", "0.65130204", "0.65130204", "0.65130204", "0.64481825", "0.64481825", "0.64481825", "0.6142723", "0.60599023", "0.60...
0.74554783
0
Setter method for weight, mapped from YANG variable /input/LocatorRecord/weight (uint8)
def _set_weight(self, v, load=False): try: t = YANGDynClass(v,base=np.uint8, is_leaf=True, yang_name="weight", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""weight must be of a type compatible with ba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_weight(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['-2147483648..2147483647']}, int_size=32), is_leaf=True, yang_name=\"weight\", rest_name=\"weight\", parent=self, pat...
[ "0.7173742", "0.71261907", "0.71261907", "0.71261907", "0.7124982", "0.7124982", "0.7124982", "0.6930075", "0.6854091", "0.6854091", "0.6854091", "0.654635", "0.65132165", "0.6213096", "0.60744756", "0.60718274", "0.606918", "0.6024914", "0.6020157", "0.5972273", "0.5965551",...
0.774903
0
Getter method for multicastPriority, mapped from YANG variable /input/LocatorRecord/multicastPriority (uint8)
def _get_multicastPriority(self): return self.__multicastPriority
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_multicastPriority(self, v, load=False):\n try:\n t = YANGDynClass(v,base=np.uint8, is_leaf=True, yang_name=\"multicastPriority\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError(\"\"\"multica...
[ "0.74490094", "0.5090839", "0.50058645", "0.489588", "0.4887395", "0.47485903", "0.4735448", "0.46581355", "0.46484846", "0.46484846", "0.4638555", "0.4638555", "0.4638555", "0.4638555", "0.46264255", "0.46264255", "0.4592114", "0.45748588", "0.45698082", "0.45512205", "0.455...
0.7061607
1
Setter method for multicastPriority, mapped from YANG variable /input/LocatorRecord/multicastPriority (uint8)
def _set_multicastPriority(self, v, load=False): try: t = YANGDynClass(v,base=np.uint8, is_leaf=True, yang_name="multicastPriority", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""multicastPriority mus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_multicastPriority(self):\n return self.__multicastPriority", "def _set_multicastWeight(self, v, load=False):\n try:\n t = YANGDynClass(v,base=np.uint8, is_leaf=True, yang_name=\"multicastWeight\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n ...
[ "0.66138566", "0.58428895", "0.53215593", "0.49812725", "0.49296415", "0.4885944", "0.4885944", "0.4885944", "0.48854005", "0.48854005", "0.48854005", "0.48235166", "0.47812468", "0.47345918", "0.4722102", "0.4720543", "0.47152364", "0.4700948", "0.46751964", "0.46575275", "0...
0.84143496
0
Getter method for multicastWeight, mapped from YANG variable /input/LocatorRecord/multicastWeight (uint8)
def _get_multicastWeight(self): return self.__multicastWeight
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_multicastWeight(self, v, load=False):\n try:\n t = YANGDynClass(v,base=np.uint8, is_leaf=True, yang_name=\"multicastWeight\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError(\"\"\"multicastWe...
[ "0.7588154", "0.5257662", "0.5250413", "0.5210578", "0.5175591", "0.5127283", "0.5110381", "0.50396127", "0.50396127", "0.50396127", "0.5034055", "0.5034055", "0.5034055", "0.5029845", "0.5006056", "0.4981525", "0.49774846", "0.49774846", "0.49386257", "0.49386257", "0.493862...
0.70765233
1
Setter method for multicastWeight, mapped from YANG variable /input/LocatorRecord/multicastWeight (uint8)
def _set_multicastWeight(self, v, load=False): try: t = YANGDynClass(v,base=np.uint8, is_leaf=True, yang_name="multicastWeight", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""multicastWeight must be o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_multicastWeight(self):\n return self.__multicastWeight", "def _set_weight(self, v, load=False):\n try:\n t = YANGDynClass(v,base=np.uint8, is_leaf=True, yang_name=\"weight\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ...
[ "0.6678886", "0.5881262", "0.5806964", "0.5806964", "0.5806964", "0.58052194", "0.58052194", "0.58052194", "0.5402897", "0.5298001", "0.5271714", "0.5237159", "0.5237159", "0.5237159", "0.5186103", "0.51658547", "0.4932866", "0.49096778", "0.48995125", "0.48133203", "0.481126...
0.84586775
0
Getter method for localLocator, mapped from YANG variable /input/LocatorRecord/localLocator (boolean)
def _get_localLocator(self): return self.__localLocator
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_localLocator(self, v, load=False):\n try:\n t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name=\"localLocator\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError(\"\"\"localLocator must...
[ "0.77122736", "0.61343336", "0.61343336", "0.594526", "0.58300143", "0.5516242", "0.5371214", "0.535761", "0.5356122", "0.5291819", "0.52905875", "0.5190979", "0.50963354", "0.50106007", "0.50024956", "0.4956631", "0.49452806", "0.49452806", "0.49452806", "0.49452806", "0.492...
0.67667943
1
Setter method for localLocator, mapped from YANG variable /input/LocatorRecord/localLocator (boolean)
def _set_localLocator(self, v, load=False): try: t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="localLocator", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""localLocator must be of a type ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_localLocator(self):\n return self.__localLocator", "def local(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"local\")", "def local(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"local\")", "def local(self) -> pulumi.Output[Optional[bool]]:\n ...
[ "0.6287664", "0.5828949", "0.5828949", "0.55667734", "0.5547197", "0.553913", "0.54638076", "0.52337706", "0.52014136", "0.51928854", "0.51270527", "0.51270527", "0.51270527", "0.51270527", "0.50773776", "0.5034757", "0.5028427", "0.5021666", "0.50191003", "0.49850848", "0.49...
0.8276338
0
Getter method for rlocProbed, mapped from YANG variable /input/LocatorRecord/rlocProbed (boolean)
def _get_rlocProbed(self): return self.__rlocProbed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_rlocProbed(self, v, load=False):\n try:\n t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name=\"rlocProbed\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError(\"\"\"rlocProbed must be of...
[ "0.73260176", "0.46317473", "0.46158537", "0.45694757", "0.45441782", "0.45398918", "0.45247114", "0.45137352", "0.44872126", "0.44861192", "0.4473698", "0.44509727", "0.44429824", "0.44327995", "0.4392198", "0.4387672", "0.4379323", "0.43745342", "0.43587065", "0.43559256", ...
0.7142277
1
Setter method for rlocProbed, mapped from YANG variable /input/LocatorRecord/rlocProbed (boolean)
def _set_rlocProbed(self, v, load=False): try: t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="rlocProbed", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""rlocProbed must be of a type compat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_rlocProbed(self):\n return self.__rlocProbed", "def _set_rloc(self, v, load=False):\n try:\n t = YANGDynClass(v,base=yc_rloc_pyangbind_example__input_LocatorRecord_rloc, is_container='container', yang_name=\"rloc\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, regi...
[ "0.65422535", "0.4735449", "0.45066586", "0.45007536", "0.44398454", "0.4437598", "0.44301248", "0.43837652", "0.43508556", "0.43508556", "0.4340041", "0.4306401", "0.42857504", "0.428212", "0.42812702", "0.42800307", "0.42746672", "0.42536786", "0.42527962", "0.42236567", "0...
0.8125802
0
Getter method for routed, mapped from YANG variable /input/LocatorRecord/routed (boolean)
def _get_routed(self): return self.__routed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_route_throu(self):\n\n # VPR stores route-through LUTs as \"open\" blocks with mode set to\n # \"wire\".\n return self.is_leaf and self.name == \"open\" and self.mode == \"wire\"", "def can_location_be_routed_to(location: CommonLocation) -> bool:\n return CommonLocationUtils.ca...
[ "0.57929003", "0.57313263", "0.56877166", "0.5655214", "0.5447337", "0.54195905", "0.54025376", "0.54025376", "0.54015297", "0.5378665", "0.5280592", "0.5280592", "0.52611727", "0.5238895", "0.5148455", "0.50744885", "0.50203764", "0.5011416", "0.49734855", "0.49599394", "0.4...
0.5745694
1
Setter method for routed, mapped from YANG variable /input/LocatorRecord/routed (boolean)
def _set_routed(self, v, load=False): try: t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="routed", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""routed must be of a type compatible with ba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def routed_to(self, routed_to):\n\n self._routed_to = routed_to", "def can_location_be_routed_to(location: CommonLocation) -> bool:\n return CommonLocationUtils.can_position_be_routed_to(location.transform.translation, location.routing_surface)", "def use_routes(self) -> Optional[pulumi.Input[boo...
[ "0.6153026", "0.5552645", "0.5525019", "0.53847706", "0.5309402", "0.52833045", "0.5196852", "0.5075154", "0.50694686", "0.50254524", "0.49547634", "0.4937431", "0.49291715", "0.49152592", "0.49117863", "0.48675567", "0.48675567", "0.48473886", "0.48398617", "0.48210603", "0....
0.6550641
0
Getter method for rloc, mapped from YANG variable /input/LocatorRecord/rloc (container)
def _get_rloc(self): return self.__rloc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_rloc(self, v, load=False):\n try:\n t = YANGDynClass(v,base=yc_rloc_pyangbind_example__input_LocatorRecord_rloc, is_container='container', yang_name=\"rloc\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ValueError):\n r...
[ "0.7430711", "0.5485765", "0.5229584", "0.5177095", "0.5112131", "0.5112131", "0.5078246", "0.49354967", "0.48200157", "0.48152867", "0.47953466", "0.4789419", "0.47867963", "0.47811654", "0.47619376", "0.4741405", "0.4719583", "0.4718814", "0.4703106", "0.46604514", "0.46533...
0.7014321
1
Setter method for rloc, mapped from YANG variable /input/LocatorRecord/rloc (container)
def _set_rloc(self, v, load=False): try: t = YANGDynClass(v,base=yc_rloc_pyangbind_example__input_LocatorRecord_rloc, is_container='container', yang_name="rloc", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_rloc(self):\n return self.__rloc", "def setRLC(self, r, l, c):\n return", "def RCL(self, loc):\n cmd = f\"*RCL {loc}\"\n self.instr.write(cmd)", "def set_loc(self, loc):\n self.loc = loc", "def _set_rlocProbed(self, v, load=False):\n try:\n t = YANGDynCla...
[ "0.64157027", "0.54850066", "0.5443288", "0.51483464", "0.50199974", "0.5014761", "0.48082906", "0.47812858", "0.47574958", "0.4746225", "0.4733928", "0.471587", "0.468939", "0.46738097", "0.46594927", "0.4655104", "0.46222645", "0.45074654", "0.44889754", "0.44816402", "0.44...
0.8643157
0
Getter method for recordTtl, mapped from YANG variable /input/mapping_record/recordTtl (int32)
def _get_recordTtl(self): return self.__recordTtl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_recordTtl(self, v, load=False):\n try:\n t = YANGDynClass(v,base=np.int32, is_leaf=True, yang_name=\"recordTtl\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError(\"\"\"recordTtl must be of a ...
[ "0.7424597", "0.5785556", "0.5482547", "0.5277504", "0.5277504", "0.5223717", "0.51692307", "0.51057476", "0.5098125", "0.5057996", "0.50471157", "0.49814385", "0.49490383", "0.4941643", "0.4941643", "0.4941643", "0.48078465", "0.47643143", "0.4747422", "0.47402343", "0.47402...
0.7055444
1
Setter method for recordTtl, mapped from YANG variable /input/mapping_record/recordTtl (int32)
def _set_recordTtl(self, v, load=False): try: t = YANGDynClass(v,base=np.int32, is_leaf=True, yang_name="recordTtl", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""recordTtl must be of a type compatibl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_recordTtl(self):\n return self.__recordTtl", "def ttl_seconds(self, ttl_seconds: \"int\"):\n self._attrs[\"ttlSeconds\"] = ttl_seconds", "def record_duration(self):\n return self.config.get('record_duration', 5)", "def ttl_seconds(self) -> \"int\":\n return self._attrs.get(\"...
[ "0.6537405", "0.5423284", "0.53877944", "0.5307785", "0.5183947", "0.50947696", "0.50947696", "0.48951116", "0.48640734", "0.4802925", "0.48009953", "0.47961047", "0.4780839", "0.4754166", "0.46808767", "0.46808767", "0.46310925", "0.46241784", "0.46237284", "0.46001944", "0....
0.8461138
0
Getter method for maskLength, mapped from YANG variable /input/mapping_record/maskLength (uint8)
def _get_maskLength(self): return self.__maskLength
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_maskLength(self, v, load=False):\n try:\n t = YANGDynClass(v,base=np.uint8, is_leaf=True, yang_name=\"maskLength\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError(\"\"\"maskLength must be of...
[ "0.7444396", "0.6525655", "0.59941226", "0.5959563", "0.59322095", "0.58424264", "0.57360834", "0.5563699", "0.54108727", "0.53078985", "0.5169768", "0.51070464", "0.5102177", "0.5080575", "0.5043805", "0.50004286", "0.49808195", "0.4906646", "0.4898116", "0.4898116", "0.4898...
0.71786106
1
Setter method for maskLength, mapped from YANG variable /input/mapping_record/maskLength (uint8)
def _set_maskLength(self, v, load=False): try: t = YANGDynClass(v,base=np.uint8, is_leaf=True, yang_name="maskLength", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""maskLength must be of a type compat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_maskLength(self):\n return self.__maskLength", "def mask_size(self):\n m = self.size * self.mask()\n return m.astype(np.int8)", "def fieldsToLengthBits(thisPacket):\n for field in thisPacket.iter('field'):\n if fieldLooksLikeBitmask(field):\n reMatch = bitmaskRE.match(field.a...
[ "0.6653406", "0.6379773", "0.58128196", "0.55888116", "0.53854203", "0.53751683", "0.5288363", "0.5091646", "0.50880945", "0.4921406", "0.4910974", "0.48586044", "0.48586044", "0.47661933", "0.4757868", "0.47240102", "0.47114295", "0.47114295", "0.47114295", "0.47114295", "0....
0.8388851
0
Getter method for mapVersion, mapped from YANG variable /input/mapping_record/mapVersion (int16)
def _get_mapVersion(self): return self.__mapVersion
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_mapVersion(self, v, load=False):\n try:\n t = YANGDynClass(v,base=np.int16, is_leaf=True, yang_name=\"mapVersion\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError(\"\"\"mapVersion must be of...
[ "0.74593055", "0.55581903", "0.5232696", "0.5110775", "0.5033999", "0.50145763", "0.49021116", "0.4732159", "0.4721976", "0.4653788", "0.46497813", "0.4641943", "0.46388727", "0.46224704", "0.4616354", "0.46102205", "0.46023163", "0.46010247", "0.4586401", "0.45821977", "0.45...
0.63023394
1
Setter method for mapVersion, mapped from YANG variable /input/mapping_record/mapVersion (int16)
def _set_mapVersion(self, v, load=False): try: t = YANGDynClass(v,base=np.int16, is_leaf=True, yang_name="mapVersion", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""mapVersion must be of a type compat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_mapVersion(self):\n return self.__mapVersion", "def SetVersion(self, addonVersion):\n self._addonVersion = addonVersion", "def version(self, version):\n self._version = utils.VersionParser().parse(version)", "def convert(self):\n return _libsbml.SBMLLevelVersionConverter_convert(...
[ "0.5692604", "0.5344507", "0.49350342", "0.49146506", "0.48997697", "0.48858517", "0.48856238", "0.48540726", "0.48540726", "0.47561356", "0.47561356", "0.47561356", "0.47561356", "0.47561356", "0.47561356", "0.47561356", "0.47561356", "0.47561356", "0.47561356", "0.47561356", ...
0.83946174
0
Setter method for action, mapped from YANG variable /input/mapping_record/action (enumeration)
def _set_action(self, v, load=False): try: t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode, restriction_type="dict_key", restriction_arg={u'Drop': {}, u'NativelyForward': {}, u'SendMapRequest': {}, u'NoAction': {}},), is_lea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def action(self, action):\n if action is None:\n raise ValueError(\"Invalid value for `action`, must not be `None`\") # noqa: E501\n\n self._action = action", "def set_action(self, action):\n self.action = action", "def set_action(self, action):\n self.action = action", ...
[ "0.7073768", "0.6777562", "0.6777562", "0.6746833", "0.67244196", "0.66816896", "0.66607445", "0.6581482", "0.6524658", "0.65044004", "0.640012", "0.6387688", "0.6387688", "0.6387688", "0.6387688", "0.6387688", "0.6387688", "0.6386035", "0.62811095", "0.6280877", "0.6124923",...
0.7640915
0
Getter method for authoritative, mapped from YANG variable /input/mapping_record/authoritative (boolean)
def _get_authoritative(self): return self.__authoritative
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_authoritative(self, v, load=False):\n try:\n t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name=\"authoritative\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError(\"\"\"authoritative m...
[ "0.6718088", "0.5188267", "0.48823407", "0.4824742", "0.48030117", "0.4789381", "0.46382806", "0.44682306", "0.4430279", "0.44179815", "0.43863338", "0.4384197", "0.4380008", "0.4363615", "0.4360782", "0.43460184", "0.43358245", "0.43231368", "0.43094635", "0.43013746", "0.42...
0.6757098
0
Setter method for authoritative, mapped from YANG variable /input/mapping_record/authoritative (boolean)
def _set_authoritative(self, v, load=False): try: t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="authoritative", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""authoritative must be of a ty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_authoritative(self):\n return self.__authoritative", "def is_authorised_representative(self):\n if not hasattr(self, '_is_authorised_representative'):\n self._is_authorised_representative = hasattr(self, 'authorised_representative')\n\n return self._is_authorised_representati...
[ "0.6427643", "0.49042958", "0.48028368", "0.46999156", "0.4692326", "0.46825922", "0.45674053", "0.44718954", "0.44571823", "0.44474322", "0.4403648", "0.43995556", "0.4394256", "0.4390693", "0.43134287", "0.43096423", "0.43039706", "0.4281209", "0.42597413", "0.42550257", "0...
0.75602883
0
Getter method for LocatorRecord, mapped from YANG variable /input/LocatorRecord (list)
def _get_LocatorRecord(self): return self.__LocatorRecord
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_LocatorRecord(self, v, load=False):\n try:\n t = YANGDynClass(v,base=YANGListType(\"locator_id\",yc_LocatorRecord_pyangbind_example__input_LocatorRecord, yang_name=\"LocatorRecord\", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper), is_container='list', yang_nam...
[ "0.7702962", "0.6407192", "0.5898516", "0.55848175", "0.48844913", "0.4773935", "0.46494174", "0.45777026", "0.45454535", "0.45231923", "0.45080623", "0.44717428", "0.44609767", "0.44564545", "0.44507366", "0.44452652", "0.4416199", "0.44136074", "0.43898392", "0.4389652", "0...
0.6818552
1
Setter method for LocatorRecord, mapped from YANG variable /input/LocatorRecord (list)
def _set_LocatorRecord(self, v, load=False): try: t = YANGDynClass(v,base=YANGListType("locator_id",yc_LocatorRecord_pyangbind_example__input_LocatorRecord, yang_name="LocatorRecord", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper), is_container='list', yang_name="LocatorR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def record_locator(self, record_locator):\n if record_locator is None:\n raise ValueError(\"Invalid value for `record_locator`, must not be `None`\")\n\n self._record_locator = record_locator", "def _get_LocatorRecord(self):\n return self.__LocatorRecord", "def _set_locator_id(self,...
[ "0.685963", "0.63189214", "0.567086", "0.56593966", "0.5313092", "0.5301535", "0.4916309", "0.47038326", "0.47023335", "0.47008383", "0.46737063", "0.46672797", "0.46672797", "0.45666236", "0.45338166", "0.45061657", "0.45037052", "0.4468762", "0.44054282", "0.4387563", "0.43...
0.86509675
0
Setter method for mapping_record, mapped from YANG variable /input/mapping_record (container)
def _set_mapping_record(self, v, load=False): try: t = YANGDynClass(v,base=yc_mapping_record_pyangbind_example__input_mapping_record, is_container='container', yang_name="mapping-record", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, Value...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_map_record(self):\n return self.mapper.map_record(self.binding_record)", "def _get_mapping_record(self):\n return self.__mapping_record", "def mapping(self, mapping):\n self.set_mapping(mapping)", "def set_mapping(self, mapping):\n mapping = pylastica.doc_type.Mapping.create(...
[ "0.5970671", "0.5902689", "0.5657304", "0.55116606", "0.5374943", "0.5234628", "0.50860834", "0.50424844", "0.50336903", "0.50079304", "0.50042784", "0.4991072", "0.49719772", "0.4959843", "0.49564373", "0.4931594", "0.49017704", "0.48650196", "0.4817201", "0.481521", "0.4772...
0.8538443
0
Setter method for input, mapped from YANG variable /input (container)
def _set_input(self, v, load=False): try: t = YANGDynClass(v,base=yc_input_pyangbind_example__input, is_container='container', yang_name="input", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError("""input mu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_input(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_input_openconfig_qos__qos_interfaces_interface_input, is_container='container', yang_name=\"input\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, regis...
[ "0.7814106", "0.780715", "0.780715", "0.777229", "0.7730762", "0.7484346", "0.71174186", "0.68705064", "0.677871", "0.6680047", "0.6550577", "0.6451878", "0.64363635", "0.64027745", "0.6382179", "0.6357305", "0.63393605", "0.63311434", "0.6296951", "0.6284459", "0.6236926", ...
0.7847966
0
create a new object based on this genotype
def fromgenotype(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def new_object(self):\r\n\t\tpass", "def new(self, obj):\n pass", "def create_individual(self):\n pass", "def new_object(cls):\n return cls.for_value([])", "def __init__(self, *args):\n this = _libsbml.new_SpeciesType(*args)\n try: self.this.append(this)\n except: ...
[ "0.728881", "0.6973893", "0.6677975", "0.64741004", "0.6446734", "0.6379876", "0.6334149", "0.62880665", "0.6268098", "0.6260632", "0.624735", "0.6235976", "0.62314445", "0.6190096", "0.61697304", "0.61627156", "0.61618036", "0.6153238", "0.6152914", "0.61267525", "0.61266625...
0.71769667
1
Gets the ParaMeshBodies object from a component.
def getFromComponent(self, component): return ParaMeshBodies()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nativeObject(self):\n return ParaMeshBody()", "def item(self, index):\n return ParaMeshBody()", "def item(self, index):\n return ParaMeshBody()", "def createForAssemblyContext(self, occurrence):\n return ParaMeshBody()", "def getMesh(self):\n return self.mesh", "def...
[ "0.6462085", "0.6373467", "0.6373467", "0.59029144", "0.54926586", "0.5220117", "0.5198538", "0.50059587", "0.50059587", "0.50059587", "0.50059587", "0.4859322", "0.48247197", "0.47570008", "0.45531186", "0.45432347", "0.44658598", "0.44331133", "0.4367574", "0.43619215", "0....
0.90093076
0
Creates a new mesh body by importing an .stl or .obj file. Because of a current limitation, if you want to create a mesh body in a parametric model, you must first call the edit method of the base or form feature, use this method to create the mesh body, and then call the finishEdit method of the base or form feature. ...
def add(self, fullFilename, units, baseOrFormFeature): return ParaMeshBodyList()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_mesh(self):\n print(\"create_mesh\")\n faces = self.get_faces()\n print(\"num faces: {}\".format(len(faces)))\n\n # TODO: perform face filtering to remove long edges in Z direction\n # filtered_faces = self.get_filtered_faces(faces)\n # print(\"num filtered face...
[ "0.5972571", "0.59495294", "0.5882489", "0.5880396", "0.58730125", "0.5865938", "0.56890905", "0.56812716", "0.5676533", "0.56725544", "0.5665458", "0.5633514", "0.56177545", "0.56158864", "0.5609427", "0.5551452", "0.5526342", "0.5510303", "0.5461769", "0.54555094", "0.54292...
0.63767177
0
Provides access to a mesh body within the collection.
def item(self, index): return ParaMeshBody()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nativeObject(self):\n return ParaMeshBody()", "def get_mesh(self):\n return self.mesh", "def getMesh(self):\n return self.mesh", "def mesh(self):\n return self._mesh", "def mesh(self):\n return self._mesh", "def mesh(self):\n return self._mesh", "def mesh(s...
[ "0.6957442", "0.6633259", "0.6631735", "0.6371821", "0.6371821", "0.6371821", "0.6371821", "0.63649315", "0.62939316", "0.5899391", "0.57027155", "0.5660068", "0.56338304", "0.55298495", "0.5479331", "0.547045", "0.5432832", "0.5420212", "0.54182005", "0.53654414", "0.5365441...
0.752903
0
Returns the parent Component.
def parentComponent(self): return fusion.Component()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_parent(self):\n return self._find_by_locator().parent", "def get_parent(self):\n return self.__parent", "def get_parent(self):\n return self.__parent", "def get_parent(self):\n return self.parent", "def get_parent(self):\n return self.parent", "def get_parent(se...
[ "0.8493198", "0.8421001", "0.8421001", "0.84084857", "0.84084857", "0.84084857", "0.838501", "0.8367333", "0.8352728", "0.83304477", "0.82310194", "0.81645995", "0.81499857", "0.8140345", "0.81360763", "0.81360763", "0.81360763", "0.81360763", "0.81360763", "0.81360763", "0.8...
0.8622309
0
Returns the assembly occurrence (i.e. the occurrence) of this object in an assembly. This is only valid in the case where this is acting as a proxy in an assembly. Returns null in the case where the object is not in the context of an assembly but is already the native object.
def assemblyContext(self): return fusion.Occurrence()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def assembly(self):\n return self._assembly", "def _getReflectiveDuplicateAssembly(self, neighborLoc):\n duplicates = []\n otherTwoLocations = self.spatialGrid.getSymmetricEquivalents(neighborLoc)\n for i, j in otherTwoLocations:\n neighborLocation2 = self.spatialGrid[i, j,...
[ "0.540894", "0.51332605", "0.50047857", "0.49513108", "0.48807183", "0.48727012", "0.48692793", "0.4843391", "0.4826178", "0.47773117", "0.46998453", "0.46970183", "0.46879742", "0.46757603", "0.46634528", "0.4658668", "0.46533868", "0.46437517", "0.46167672", "0.46072188", "...
0.5453074
0
Provides access to a mesh body within the collection.
def item(self, index): return ParaMeshBody()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nativeObject(self):\n return ParaMeshBody()", "def get_mesh(self):\n return self.mesh", "def getMesh(self):\n return self.mesh", "def mesh(self):\n return self._mesh", "def mesh(self):\n return self._mesh", "def mesh(self):\n return self._mesh", "def mesh(s...
[ "0.6957442", "0.6633259", "0.6631735", "0.6371821", "0.6371821", "0.6371821", "0.6371821", "0.63649315", "0.62939316", "0.5899391", "0.57027155", "0.5660068", "0.56338304", "0.55298495", "0.5479331", "0.547045", "0.5432832", "0.5420212", "0.54182005", "0.53654414", "0.5365441...
0.752903
1
Create object session from the app key, secret and type
def create_session(self): try: self.session = session.DropboxSession(APP_KEY, APP_SECRET, ACCESS_TYPE) except Exception, e: logger.error('Exception at create_session') logger.debug('*' + sys.exc_info()[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _createSessionObject(self, request):\n # Preload necessary data items\n user = endpoints.get_current_user()\n if not user:\n raise endpoints.UnauthorizedException('Authorization required')\n user_id = user.email()\n # Get the conference entity\n conf = _getE...
[ "0.6261222", "0.6257226", "0.6163003", "0.6113781", "0.6092789", "0.6075058", "0.59492284", "0.58802646", "0.58801895", "0.5873072", "0.58676744", "0.58611274", "0.5855583", "0.585542", "0.58453065", "0.58350897", "0.58148146", "0.57952935", "0.5793354", "0.5761899", "0.57494...
0.6547813
0
Obtains an authorization url; After authorization, creates an access token and builds an instance of the Dropbox client. Creates the metadata cache.
def create_access_token(self): # Wraper for also caching invalid results #def getMetadataRofs(path): # try: # return self.client.metadata(path) # except Exception, e: # log.write('Exception at getMetadataRofs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_client(config, auth_token = None):\n if auth_token:\n pass\n\n elif not auth_token and config.get(\"auth_token\"):\n auth_token = config.get(\"auth_token\")\n\n elif not auth_token and not config.get(\"auth_token\"):\n auth_token, config = start_auth_flow(config)\n\n __lo...
[ "0.6216887", "0.60293674", "0.5986677", "0.58676577", "0.58599424", "0.58420867", "0.58145756", "0.5771057", "0.56834906", "0.5679991", "0.5664196", "0.5645943", "0.56381226", "0.56176925", "0.5562125", "0.55257547", "0.55207974", "0.5509377", "0.55081314", "0.5507393", "0.54...
0.73717004
0
Downloads the file given by path and writes using the file descriptor out
def downloadFile(self, path, out): try: logger.info("downloadFile('%s', ...)" % (path)) # Downloads from dropbox # Manually :( update the metadata cache f, metadata = self.client.get_file_and_metadata(path) f = f.read() logger.info('* file downloaded') self.cache_metadata.setNewValue(path, metad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def download_file(self, url, path):\n print('\\tDownloading: ', path)\n with open(path, 'w') as outfile:\n try:\n response = self._http_client.get(url)\n outfile.write(response.text)\n finally:\n response.close()\n outf...
[ "0.73627925", "0.6694261", "0.65461224", "0.65308464", "0.65222704", "0.65146464", "0.6499754", "0.6463992", "0.6460364", "0.64219147", "0.64182365", "0.6414628", "0.6405327", "0.6385253", "0.63750607", "0.63738686", "0.63608336", "0.63561326", "0.6352939", "0.63480806", "0.6...
0.7041003
1
Iterate over groups of `df`, and, if provided, matching labels.
def _iter_groups(self, df, y=None): groups = df.groupby(self.groupby).indices for key, sub_idx in groups.items(): sub_df = df.iloc[sub_idx] if y is not None: # y is either a numpy array or a pd.Series so index accordingly sub_y = y.iloc[sub_idx] if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iter_objs_labels(objs):\n # Account for (1) multiple columns of data, (2) functions that return\n # multiple values (e.g. hist() returns (bins, values, patches)), and\n # (3) matplotlib.Collection list subclasses.\n label = _get_label(objs)\n if label:\n yield (objs, label)\n elif isi...
[ "0.5890573", "0.5568137", "0.55283284", "0.5486085", "0.5446619", "0.5348538", "0.5325845", "0.53036046", "0.52931404", "0.52764827", "0.52207327", "0.51904327", "0.51854444", "0.5157948", "0.51359797", "0.5110827", "0.5092669", "0.5082624", "0.50786346", "0.50476575", "0.503...
0.66742736
0
json encode the message and prepend the topic
def themify(topic,msg): return topic + ' ' + json.dumps(msg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mogrify(topic, msg):\n return topic + ' ' + json.dumps(msg)", "def _send(self, topic, message):\n\n body = {'message': encode(message)}\n result = requests.post('{0}/topics/{1}'.format(self.apiUrl, topic), json=body)\n return result.json()", "def publish(self, topic, msg):\n ...
[ "0.79083043", "0.671766", "0.6527758", "0.64427924", "0.6238984", "0.6164169", "0.6155834", "0.6121196", "0.6061571", "0.59668523", "0.5952764", "0.5930898", "0.5930898", "0.5927398", "0.591593", "0.59124506", "0.58600277", "0.58495414", "0.5837054", "0.58189356", "0.57878685...
0.8218022
1