sequence
stringlengths
492
15.9k
code
stringlengths
75
8.58k
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 6; 2, function_name:title_from_rdf; 3, parameters; 3, 4; 3, 5; 4, identifier:rdf; 5, identifier:url; 6, block; 6, 7; 6, 9; 6, 19; 6, 24; 6, 50; 6, 63; 6, 71; 7, expression_statement; 7, 8; 8, string:''' Try to extract a distribution title from a property. ...
def title_from_rdf(rdf, url): ''' Try to extract a distribution title from a property. As it's not a mandatory property, it fallback on building a title from the URL then the format and in last ressort a generic resource name. ''' title = rdf_value(rdf, DCT.title) if title: retur...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 9; 2, function_name:sort; 3, parameters; 3, 4; 3, 5; 3, 6; 4, identifier:self; 5, identifier:by; 6, default_parameter; 6, 7; 6, 8; 7, identifier:desc; 8, False; 9, block; 9, 10; 9, 31; 9, 47; 10, if_statement; 10, 11; 10, 15; 10, 20; 11, call; 11, 12; 11, 13; 12, ...
def sort(self, by, desc=False): if callable(by): key = by else: def key(feature): return feature[by] sorted_features = sorted(list(self), reverse=desc, key=key) return self.__class__(sorted_features)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 7; 2, function_name:shellc; 3, parameters; 3, 4; 3, 5; 3, 6; 4, identifier:ndim; 5, identifier:lenvals; 6, identifier:array; 7, block; 7, 8; 7, 23; 7, 32; 7, 41; 7, 55; 8, expression_statement; 8, 9; 9, assignment; 9, 10; 9, 11; 10, identifier:array; 11, call; 11,...
def shellc(ndim, lenvals, array): array = stypes.listToCharArray(array, xLen=lenvals, yLen=ndim) ndim = ctypes.c_int(ndim) lenvals = ctypes.c_int(lenvals) libspice.shellc_c(ndim, lenvals, ctypes.byref(array)) return stypes.cVectorToPython(array)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 6; 2, function_name:shelld; 3, parameters; 3, 4; 3, 5; 4, identifier:ndim; 5, identifier:array; 6, block; 6, 7; 6, 16; 6, 25; 6, 46; 7, expression_statement; 7, 8; 8, assignment; 8, 9; 8, 10; 9, identifier:array; 10, call; 10, 11; 10, 14; 11, attribute; 11, 12; 11...
def shelld(ndim, array): array = stypes.toDoubleVector(array) ndim = ctypes.c_int(ndim) libspice.shelld_c(ndim, ctypes.cast(array, ctypes.POINTER(ctypes.c_double))) return stypes.cVectorToPython(array)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 6; 2, function_name:shelli; 3, parameters; 3, 4; 3, 5; 4, identifier:ndim; 5, identifier:array; 6, block; 6, 7; 6, 16; 6, 25; 6, 46; 7, expression_statement; 7, 8; 8, assignment; 8, 9; 8, 10; 9, identifier:array; 10, call; 10, 11; 10, 14; 11, attribute; 11, 12; 11...
def shelli(ndim, array): array = stypes.toIntVector(array) ndim = ctypes.c_int(ndim) libspice.shelli_c(ndim, ctypes.cast(array, ctypes.POINTER(ctypes.c_int))) return stypes.cVectorToPython(array)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 16; 2, function_name:make_retrieveParameters; 3, parameters; 3, 4; 3, 7; 3, 10; 3, 13; 4, default_parameter; 4, 5; 4, 6; 5, identifier:offset; 6, integer:1; 7, default_parameter; 7, 8; 7, 9; 8, identifier:count; 9, integer:100; 10, default_parameter; 10, 11; 10, 1...
def make_retrieveParameters(offset=1, count=100, name='RS', sort='D'): return _OrderedDict([ ('firstRecord', offset), ('count', count), ('sortField', _OrderedDict([('name', name), ('sort', sort)])) ])
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 5; 2, function_name:sorted_names; 3, parameters; 3, 4; 4, identifier:names; 5, block; 5, 6; 5, 13; 5, 17; 5, 33; 5, 40; 5, 50; 6, expression_statement; 6, 7; 7, assignment; 7, 8; 7, 9; 8, identifier:names; 9, call; 9, 10; 9, 11; 10, identifier:list; 11, argument_l...
def sorted_names(names): names = list(names) have_default = False if 'default' in names: names.remove('default') have_default = True sorted_names = sorted(names) if have_default: sorted_names = ['default'] + sorted_names return sorted_names
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 22; 2, function_name:getArticles; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 11; 3, 14; 3, 17; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:page; 7, integer:1; 8, default_parameter; 8, 9; 8, 10; 9, identifier:count; 10, integer:100; 11, default_par...
def getArticles(self, page=1, count=100, sortBy = "rel", sortByAsc = False, returnInfo=ReturnInfo()): assert page >= 1 assert count <= 100 params = { "action": "getArticlesForTopicPage", "resu...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 33; 2, function_name:pprint; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 11; 3, 14; 3, 17; 3, 18; 3, 21; 3, 24; 3, 27; 3, 30; 4, identifier:object; 5, default_parameter; 5, 6; 5, 7; 6, identifier:stream; 7, identifier:_UNSET_SENTINEL; 8, default_parameter; 8, 9; 8, 10; 9,...
def pprint( object, stream=_UNSET_SENTINEL, indent=_UNSET_SENTINEL, width=_UNSET_SENTINEL, depth=_UNSET_SENTINEL, *, compact=False, ribbon_width=_UNSET_SENTINEL, max_seq_len=_UNSET_SENTINEL, sort_dict_keys=_UNSET_SENTINEL, end='\n' ): sdocs = python_to_sdocs( obje...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 36; 2, function_name:cpprint; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 11; 3, 14; 3, 17; 3, 18; 3, 21; 3, 24; 3, 27; 3, 30; 3, 33; 4, identifier:object; 5, default_parameter; 5, 6; 5, 7; 6, identifier:stream; 7, identifier:_UNSET_SENTINEL; 8, default_parameter; 8, 9; 8...
def cpprint( object, stream=_UNSET_SENTINEL, indent=_UNSET_SENTINEL, width=_UNSET_SENTINEL, depth=_UNSET_SENTINEL, *, compact=False, ribbon_width=_UNSET_SENTINEL, max_seq_len=_UNSET_SENTINEL, sort_dict_keys=_UNSET_SENTINEL, style=None, end='\n' ): sdocs = python_to_sd...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 6; 2, function_name:_encrypted_data_keys_hash; 3, parameters; 3, 4; 3, 5; 4, identifier:hasher; 5, identifier:encrypted_data_keys; 6, block; 6, 7; 6, 11; 6, 48; 7, expression_statement; 7, 8; 8, assignment; 8, 9; 8, 10; 9, identifier:hashed_keys; 10, list:[]; 11, ...
def _encrypted_data_keys_hash(hasher, encrypted_data_keys): hashed_keys = [] for edk in encrypted_data_keys: serialized_edk = serialize_encrypted_data_key(edk) _hasher = hasher.copy() _hasher.update(serialized_edk) hashed_keys.append(_hasher.finalize()) return b"".join(sorted...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 6; 2, function_name:getOverlaySortOrder; 3, parameters; 3, 4; 3, 5; 4, identifier:self; 5, identifier:ulOverlayHandle; 6, block; 6, 7; 6, 15; 6, 21; 6, 32; 7, expression_statement; 7, 8; 8, assignment; 8, 9; 8, 10; 9, identifier:fn; 10, attribute; 10, 11; 10, 14; ...
def getOverlaySortOrder(self, ulOverlayHandle): fn = self.function_table.getOverlaySortOrder punSortOrder = c_uint32() result = fn(ulOverlayHandle, byref(punSortOrder)) return result, punSortOrder.value
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 5; 2, function_name:naturalize_string; 3, parameters; 3, 4; 4, identifier:key; 5, block; 5, 6; 6, return_statement; 6, 7; 7, list_comprehension; 7, 8; 7, 23; 8, conditional_expression:if; 8, 9; 8, 13; 8, 18; 9, call; 9, 10; 9, 11; 10, identifier:int; 11, argument_...
def naturalize_string(key): return [int(text) if text.isdigit() else text.lower() for text in re.split(numregex, key)]
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 6; 2, function_name:_get_rows; 3, parameters; 3, 4; 3, 5; 4, identifier:self; 5, identifier:options; 6, block; 6, 7; 6, 45; 6, 104; 6, 123; 7, if_statement; 7, 8; 7, 11; 7, 32; 8, subscript; 8, 9; 8, 10; 9, identifier:options; 10, string:"oldsortslice"; 11, block;...
def _get_rows(self, options): if options["oldsortslice"]: rows = copy.deepcopy(self._rows[options["start"]:options["end"]]) else: rows = copy.deepcopy(self._rows) if options["sortby"]: sortindex = self._field_names.index(options["sortby"]) rows = [...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 6; 2, function_name:_resolve_sort_by; 3, parameters; 3, 4; 3, 5; 4, identifier:sort_by; 5, identifier:flag_radius_query; 6, block; 6, 7; 6, 79; 7, if_statement; 7, 8; 7, 11; 7, 19; 7, 71; 8, comparison_operator:is; 8, 9; 8, 10; 9, identifier:sort_by; 10, None; 11,...
def _resolve_sort_by(sort_by, flag_radius_query): if sort_by is None: if flag_radius_query: sort_by = SORT_BY_DIST elif isinstance(sort_by, string_types): if sort_by.lower() == SORT_BY_DIST: if flag_radius_query is False: msg = ...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 5; 2, function_name:getOPOrUserServices; 3, parameters; 3, 4; 4, identifier:openid_services; 5, block; 5, 6; 5, 15; 5, 25; 6, expression_statement; 6, 7; 7, assignment; 7, 8; 7, 9; 8, identifier:op_services; 9, call; 9, 10; 9, 11; 10, identifier:arrangeByType; 11,...
def getOPOrUserServices(openid_services): op_services = arrangeByType(openid_services, [OPENID_IDP_2_0_TYPE]) openid_services = arrangeByType(openid_services, OpenIDServiceEndpoint.openid_type_uris) return op_services or openid_services
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 9; 2, function_name:AdvSearch; 3, parameters; 3, 4; 3, 5; 3, 6; 4, identifier:document; 5, identifier:search; 6, default_parameter; 6, 7; 6, 8; 7, identifier:bs; 8, integer:3; 9, block; 9, 10; 9, 12; 9, 21; 9, 25; 9, 29; 9, 173; 10, expression_statement; 10, 11; 1...
def AdvSearch(document, search, bs=3): '''Return set of all regex matches This is an advanced version of python-docx.search() that takes into account blocks of <bs> elements at a time. What it does: It searches the entire document body for text blocks. Since the text to search could be spawned a...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 4; 2, function_name:get_project_files; 3, parameters; 4, block; 4, 5; 4, 14; 4, 18; 4, 77; 5, if_statement; 5, 6; 5, 9; 6, call; 6, 7; 6, 8; 7, identifier:is_git_project; 8, argument_list; 9, block; 9, 10; 10, return_statement; 10, 11; 11, call; 11, 12; 11, 13; 12...
def get_project_files(): if is_git_project(): return get_git_project_files() project_files = [] for top, subdirs, files in os.walk('.'): for subdir in subdirs: if subdir.startswith('.'): subdirs.remove(subdir) for f in files: if f.startswith('....
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 5; 2, function_name:_validate_path; 3, parameters; 3, 4; 4, identifier:path; 5, block; 5, 6; 5, 13; 5, 31; 5, 45; 6, if_statement; 6, 7; 6, 10; 7, comparison_operator:is; 7, 8; 7, 9; 8, identifier:path; 9, None; 10, block; 10, 11; 11, return_statement; 11, 12; 12,...
def _validate_path(path): if path is None: return None new_path = np.array(sorted(set(path), reverse=True)) if new_path[0] != path[0]: print("Warning: Path must be sorted largest to smallest.") return new_path
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 5; 2, function_name:count; 3, parameters; 3, 4; 4, identifier:self; 5, block; 5, 6; 5, 15; 5, 24; 5, 30; 5, 55; 6, expression_statement; 6, 7; 7, assignment; 7, 8; 7, 9; 8, identifier:request_params; 9, call; 9, 10; 9, 11; 10, identifier:dict; 11, argument_list; 1...
def count(self): request_params = dict(self.request_params) request_url = str(self.request_url) request_params['rows'] = 0 result = self.do_http_request( 'get', request_url, data=request_params, custom_header=str(self.etiquette) ).j...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 5; 2, function_name:url; 3, parameters; 3, 4; 4, identifier:self; 5, block; 5, 6; 5, 14; 5, 33; 5, 52; 6, expression_statement; 6, 7; 7, assignment; 7, 8; 7, 9; 8, identifier:request_params; 9, call; 9, 10; 9, 13; 10, attribute; 10, 11; 10, 12; 11, identifier:self...
def url(self): request_params = self._escaped_pagging() sorted_request_params = sorted([(k, v) for k, v in request_params.items()]) req = requests.Request( 'get', self.request_url, params=sorted_request_params).prepare() return req.url
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 6; 2, function_name:sortByNamespacePrefix; 3, parameters; 3, 4; 3, 5; 4, identifier:urisList; 5, identifier:nsList; 6, block; 6, 7; 6, 11; 6, 18; 6, 53; 6, 67; 7, expression_statement; 7, 8; 8, assignment; 8, 9; 8, 10; 9, identifier:exit; 10, list:[]; 11, expressi...
def sortByNamespacePrefix(urisList, nsList): exit = [] urisList = sort_uri_list_by_name(urisList) for ns in nsList: innerexit = [] for uri in urisList: if str(uri).startswith(str(ns)): innerexit += [uri] exit += innerexit for uri in urisList: i...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 8; 2, function_name:sort_uri_list_by_name; 3, parameters; 3, 4; 3, 5; 4, identifier:uri_list; 5, default_parameter; 5, 6; 5, 7; 6, identifier:bypassNamespace; 7, False; 8, block; 8, 9; 8, 35; 9, function_definition; 9, 10; 9, 11; 9, 13; 9, 34; 10, function_name:ge...
def sort_uri_list_by_name(uri_list, bypassNamespace=False): def get_last_bit(uri_string): try: x = uri_string.split(" except: x = uri_string.split("/")[-1] return x try: if bypassNamespace: return sorted(uri_list, key=lambda x: get_last_bit(x._...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 6; 2, function_name:try_sort_fmt_opts; 3, parameters; 3, 4; 3, 5; 4, identifier:rdf_format_opts_list; 5, identifier:uri; 6, block; 6, 7; 6, 20; 7, expression_statement; 7, 8; 8, assignment; 8, 9; 8, 12; 9, pattern_list; 9, 10; 9, 11; 10, identifier:filename; 11, i...
def try_sort_fmt_opts(rdf_format_opts_list, uri): filename, file_extension = os.path.splitext(uri) if file_extension == ".ttl" or file_extension == ".turtle": return ['turtle', 'n3', 'nt', 'json-ld', 'rdfa', 'xml'] elif file_extension == ".xml" or file_extension == ".rdf": return ['xml', 'tu...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 5; 2, function_name:collect_results; 3, parameters; 3, 4; 4, identifier:working_folder; 5, block; 5, 6; 5, 10; 5, 17; 5, 23; 5, 102; 6, expression_statement; 6, 7; 7, assignment; 7, 8; 7, 9; 8, identifier:results; 9, dictionary; 10, expression_statement; 10, 11; 1...
def collect_results(working_folder): results = {} working_folder = Path(working_folder) output_folders = working_folder/'output_folders' for rec_name in os.listdir(output_folders): if not os.path.isdir(output_folders / rec_name): continue results[rec_name] = {} for s...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 23; 2, function_name:run_sorter; 3, parameters; 3, 4; 3, 5; 3, 6; 3, 9; 3, 12; 3, 15; 3, 18; 3, 21; 4, identifier:sorter_name_or_class; 5, identifier:recording; 6, default_parameter; 6, 7; 6, 8; 7, identifier:output_folder; 8, None; 9, default_parameter; 9, 10; 9,...
def run_sorter(sorter_name_or_class, recording, output_folder=None, delete_output_folder=False, grouping_property=None, parallel=False, debug=False, **params): if isinstance(sorter_name_or_class, str): SorterClass = sorter_dict[sorter_name_or_class] elif sorter_name_or_class in sorter_ful...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 11; 2, function_name:compute_performance; 3, parameters; 3, 4; 3, 5; 3, 8; 4, identifier:SC; 5, default_parameter; 5, 6; 5, 7; 6, identifier:verbose; 7, True; 8, default_parameter; 8, 9; 8, 10; 9, identifier:output; 10, string:'dict'; 11, block; 11, 12; 11, 18; 11...
def compute_performance(SC, verbose=True, output='dict'): counts = SC._counts tp_rate = float(counts['TP']) / counts['TOT_ST1'] * 100 cl_rate = float(counts['CL']) / counts['TOT_ST1'] * 100 fn_rate = float(counts['FN']) / counts['TOT_ST1'] * 100 fp_st1 = float(counts['FP']) / counts['TOT_ST1'] * 100...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 12; 2, function_name:add_color_stop_rgba; 3, parameters; 3, 4; 3, 5; 3, 6; 3, 7; 3, 8; 3, 9; 4, identifier:self; 5, identifier:offset; 6, identifier:red; 7, identifier:green; 8, identifier:blue; 9, default_parameter; 9, 10; 9, 11; 10, identifier:alpha; 11, integer...
def add_color_stop_rgba(self, offset, red, green, blue, alpha=1): cairo.cairo_pattern_add_color_stop_rgba( self._pointer, offset, red, green, blue, alpha) self._check_status()
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 27; 2, function_name:get_all; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 12; 3, 15; 3, 18; 3, 21; 3, 24; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:start; 7, integer:0; 8, default_parameter; 8, 9; 8, 10; 9, identifier:count; 10, unary_operator:-;...
def get_all(self, start=0, count=-1, filter='', fields='', query='', sort='', view=''): return self._client.get_all(start, count, filter=filter, sort=sort, query=query, fields=fields, view=view)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 27; 2, function_name:get_appliances; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 12; 3, 15; 3, 18; 3, 21; 3, 24; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:start; 7, integer:0; 8, default_parameter; 8, 9; 8, 10; 9, identifier:count; 10, unary_oper...
def get_appliances(self, start=0, count=-1, filter='', fields='', query='', sort='', view=''): uri = self.URI + '/image-streamer-appliances' return self._client.get_all(start, count, filter=filter, sort=sort, query=query, fields=fields, view=view, uri=uri)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 15; 2, function_name:get_all; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 12; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:start; 7, integer:0; 8, default_parameter; 8, 9; 8, 10; 9, identifier:count; 10, unary_operator:-; 10, 11; 11, integer:1; 12, ...
def get_all(self, start=0, count=-1, sort=''): return self._helper.get_all(start, count, sort=sort)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 18; 2, function_name:get_endpoints; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 12; 3, 15; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:start; 7, integer:0; 8, default_parameter; 8, 9; 8, 10; 9, identifier:count; 10, unary_operator:-; 10, 11; 11, in...
def get_endpoints(self, start=0, count=-1, filter='', sort=''): uri = "{}/endpoints/".format(self.data["uri"]) return self._helper.get_all(start, count, filter=filter, sort=sort, uri=uri)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 8; 2, function_name:__findFirstMissing; 3, parameters; 3, 4; 3, 5; 3, 6; 3, 7; 4, identifier:self; 5, identifier:array; 6, identifier:start; 7, identifier:end; 8, block; 8, 9; 8, 19; 8, 29; 8, 41; 8, 60; 9, if_statement; 9, 10; 9, 14; 10, parenthesized_expression;...
def __findFirstMissing(self, array, start, end): if (start > end): return end + 1 if (start != array[start]): return start mid = int((start + end) / 2) if (array[mid] == mid): return self.__findFirstMissing(array, mid + 1, end) return self.__fi...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 30; 2, function_name:get_reachable_storage_pools; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 12; 3, 15; 3, 18; 3, 21; 3, 24; 3, 27; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:start; 7, integer:0; 8, default_parameter; 8, 9; 8, 10; 9, identifier:c...
def get_reachable_storage_pools(self, start=0, count=-1, filter='', query='', sort='', networks=None, scope_exclusions=None, scope_uris=''): uri = self.URI + "/reachable-storage-pools" if networks: elements = "\'" for n in networks: ...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 19; 2, function_name:get_snapshots; 3, parameters; 3, 4; 3, 5; 3, 6; 3, 9; 3, 13; 3, 16; 4, identifier:self; 5, identifier:volume_id_or_uri; 6, default_parameter; 6, 7; 6, 8; 7, identifier:start; 8, integer:0; 9, default_parameter; 9, 10; 9, 11; 10, identifier:cou...
def get_snapshots(self, volume_id_or_uri, start=0, count=-1, filter='', sort=''): uri = self.__build_volume_snapshot_uri(volume_id_or_uri) return self._client.get_all(start, count, filter=filter, sort=sort, uri=uri)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 18; 2, function_name:get_extra_managed_storage_volume_paths; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 12; 3, 15; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:start; 7, integer:0; 8, default_parameter; 8, 9; 8, 10; 9, identifier:count; 10, unary_o...
def get_extra_managed_storage_volume_paths(self, start=0, count=-1, filter='', sort=''): uri = self.URI + '/repair?alertFixType=ExtraManagedStorageVolumePaths' return self._client.get_all(start, count, filter=filter, sort=sort, uri=uri)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 27; 2, function_name:get_attachable_volumes; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 12; 3, 15; 3, 18; 3, 21; 3, 24; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:start; 7, integer:0; 8, default_parameter; 8, 9; 8, 10; 9, identifier:count; 10, un...
def get_attachable_volumes(self, start=0, count=-1, filter='', query='', sort='', scope_uris='', connections=''): uri = self.URI + '/attachable-volumes' if connections: uri += str('?' + 'connections=' + connections.__str__()) return self._client.get_all(start, count, filter=filter, q...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 20; 2, function_name:get_available_storage_systems; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 12; 3, 15; 3, 18; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:start; 7, integer:0; 8, default_parameter; 8, 9; 8, 10; 9, identifier:count; 10, unary_ope...
def get_available_storage_systems(self, start=0, count=-1, filter='', sort='', **kwargs): uri = self._helper.build_uri_with_query_string(kwargs, '/available-storage-systems') return self._helper.get_all(start=start, count=count, filter=filter, sort=sort, uri=uri)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 33; 2, function_name:build_query_uri; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 11; 3, 15; 3, 18; 3, 21; 3, 24; 3, 27; 3, 30; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:uri; 7, None; 8, default_parameter; 8, 9; 8, 10; 9, identifier:start; 10, in...
def build_query_uri(self, uri=None, start=0, count=-1, filter='', query='', sort='', view='', fields='', scope_uris=''): if filter: filter = self.make_query_filter(filter) if query: query = "&query=" + quote(query) if sort: sort = "&sort=" + quote(sort) ...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 33; 2, function_name:build_query_uri; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 12; 3, 15; 3, 18; 3, 21; 3, 24; 3, 27; 3, 30; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:start; 7, integer:0; 8, default_parameter; 8, 9; 8, 10; 9, identifier:count;...
def build_query_uri(self, start=0, count=-1, filter='', query='', sort='', view='', fields='', uri=None, scope_uris=''): if filter: filter = self.__make_query_filter(filter) if query: query = "&query=" + quote(query) if sort: sort = "&sort=" + quote(sort) ...
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 18; 2, function_name:get_all_without_ethernet; 3, parameters; 3, 4; 3, 5; 3, 8; 3, 12; 3, 15; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:start; 7, integer:0; 8, default_parameter; 8, 9; 8, 10; 9, identifier:count; 10, unary_operator:-; 10,...
def get_all_without_ethernet(self, start=0, count=-1, filter='', sort=''): without_ethernet_client = ResourceClient( self._connection, "/rest/logical-downlinks/withoutEthernet") return without_ethernet_client.get_all(start, count, filter=filter, sort=sort)
0, module; 0, 1; 1, function_definition; 1, 2; 1, 3; 1, 11; 2, function_name:reduce_sort; 3, parameters; 3, 4; 3, 5; 3, 8; 4, identifier:self; 5, default_parameter; 5, 6; 5, 7; 6, identifier:js_cmp; 7, None; 8, default_parameter; 8, 9; 8, 10; 9, identifier:options; 10, None; 11, block; 11, 12; 11, 23; 11, 32; 12, if_st...
def reduce_sort(self, js_cmp=None, options=None): if options is None: options = dict() if js_cmp: options['arg'] = js_cmp return self.reduce("Riak.reduceSort", options=options)