project_name string | class_name string | class_modifiers string | class_implements int64 | class_extends int64 | function_name string | function_body string | cyclomatic_complexity int64 | NLOC int64 | num_parameter int64 | num_token int64 | num_variable int64 | start_line int64 | end_line int64 | function_index int64 | function_params string | function_variable string | function_return_type string | function_body_line_type string | function_num_functions int64 | function_num_lines int64 | outgoing_function_count int64 | outgoing_function_names string | incoming_function_count int64 | incoming_function_names string | lexical_representation string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nasa_fprime-tools | public | public | 0 | 0 | getMaxSize | def getMaxSize(cls):"""Get maximum size of the type"""return AbstractMethodException("getMaxSize") | 1 | 2 | 1 | 11 | 0 | 41 | 43 | 41 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (getMaxSize) defined within the public class called public.The function start at line 41 and ends at 43. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __repr__ | def __repr__(self):"""Produces a string representation of a given type"""return self.__class__.__name__.replace("Type", "") | 1 | 2 | 1 | 19 | 0 | 45 | 47 | 45 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__repr__) defined within the public class called public.The function start at line 45 and ends at 47. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | to_jsonable | def to_jsonable(self):"""Converts this type to a JSON serializable object"""raise AbstractMethodException("to_jsonable") | 1 | 2 | 1 | 11 | 0 | 50 | 54 | 50 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (to_jsonable) defined within the public class called public.The function start at line 50 and ends at 54. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, val=None):"""Defines the single value"""self._val = None# Run full setterif val is not None:self.val = val | 2 | 4 | 2 | 26 | 0 | 63 | 68 | 63 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 63 and ends at 68. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [63.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | validate | def validate(cls, val):"""Checks the val for validity with respect to the current type. This will raise TypeMismatchException when thevalidation fails of the val's type fails. It will raise TypeRangeException when val is out of range. Concreteimplementations will raise other exceptions based on type. For example, seria... | 1 | 1 | 2 | 8 | 0 | 72 | 81 | 72 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (validate) defined within the public class called public.The function start at line 72 and ends at 81. It contains 1 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [72.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __eq__ | def __eq__(self, other):"""Check equality between types"""return False if type(other) != type(self) else self._val == other._val | 2 | 2 | 2 | 28 | 0 | 83 | 85 | 83 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__eq__) defined within the public class called public.The function start at line 83 and ends at 85. It contains 2 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [83.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | val | def val(self):"""Getter for .val"""return self._val | 1 | 2 | 1 | 10 | 0 | 88 | 90 | 88 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (val) defined within the public class called public.The function start at line 88 and ends at 90. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | val | def val(self, val):"""Setter for .val calls validate internally"""self.validate(val)self._val = val | 1 | 3 | 2 | 19 | 0 | 93 | 96 | 93 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (val) defined within the public class called public.The function start at line 93 and ends at 96. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [93.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | to_jsonable | def to_jsonable(self):"""Converts this type to a JSON serializable object"""return {"value": self.val, "type": str(self.__class__)} | 1 | 2 | 1 | 23 | 0 | 98 | 102 | 98 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (to_jsonable) defined within the public class called public.The function start at line 98 and ends at 102. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | construct_type | def construct_type(cls, parent_class, name, **class_properties):"""Construct a new dictionary typeConstruct a new dynamic subtype of the given base type. This type will be named with the name parameter, definethe supplied class properties, and will be a subtype of the parent class. This function registers these newtype... | 2 | 17 | 4 | 101 | 0 | 118 | 150 | 118 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (construct_type) defined within the public class called public.The function start at line 118 and ends at 150. It contains 17 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [118.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, val):super().__init__(val)self.except_msg = val | 1 | 3 | 2 | 20 | 0 | 15 | 17 | 15 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 15 and ends at 17. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [15.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | getMsg | def getMsg(self):"""Gets the exception message"""return self.except_msg | 1 | 2 | 1 | 10 | 0 | 19 | 21 | 19 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (getMsg) defined within the public class called public.The function start at line 19 and ends at 21. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, val):super().__init__(f"{str(val)} must be implemented since it is abstract!") | 1 | 2 | 2 | 16 | 0 | 27 | 28 | 27 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 27 and ends at 28. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, val):super().__init__(f"{str(val)} must be implemented since it is abstract!") | 1 | 2 | 2 | 16 | 0 | 34 | 35 | 27 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 34 and ends at 35. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, size, max_size):super().__init__(f"String size {str(size)} is greater than {str(max_size)}!") | 1 | 2 | 3 | 18 | 0 | 41 | 42 | 41 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 41 and ends at 42. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [41.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, size, max_size):super().__init__(f"String size {str(size)} is greater than {str(max_size)}!") | 1 | 2 | 3 | 18 | 0 | 48 | 49 | 41 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 48 and ends at 49. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [41.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, arr_type, expected_len, actual_len):super().__init__(f"Array type {arr_type} is of length {expected_len}, actual length {actual_len} found!") | 1 | 4 | 4 | 20 | 0 | 55 | 58 | 55 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 55 and ends at 58. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [55.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, size, max_size):super().__init__(f"String size {str(size)} is greater than {str(max_size)}!") | 1 | 2 | 3 | 18 | 0 | 64 | 65 | 41 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 64 and ends at 65. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [41.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, val):super().__init__(f"{str(val)} must be implemented since it is abstract!") | 1 | 2 | 2 | 16 | 0 | 71 | 72 | 27 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 71 and ends at 72. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, val):super().__init__(f"{str(val)} must be implemented since it is abstract!") | 1 | 2 | 2 | 16 | 0 | 78 | 79 | 27 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 78 and ends at 79. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, val):super().__init__(f"{str(val)} must be implemented since it is abstract!") | 1 | 2 | 2 | 16 | 0 | 91 | 92 | 27 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 91 and ends at 92. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, val):super().__init__(f"{str(val)} must be implemented since it is abstract!") | 1 | 2 | 2 | 16 | 0 | 98 | 99 | 27 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 98 and ends at 99. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, val):super().__init__(f"{str(val)} must be implemented since it is abstract!") | 1 | 4 | 2 | 16 | 0 | 105 | 108 | 27 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 105 and ends at 108. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, arg_length_actual, arg_length_given):super().__init__("%d args provided, but command expects %d args!"% (arg_length_given, arg_length_actual)) | 1 | 5 | 3 | 23 | 0 | 114 | 118 | 114 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 114 and ends at 118. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [114.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, arg_length_actual, arg_length_given):super().__init__("%d args provided, but command expects %d args!"% (arg_length_given, arg_length_actual)) | 1 | 5 | 3 | 23 | 0 | 124 | 128 | 114 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 124 and ends at 128. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [114.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, given_rep_type, types):super().__init__("Representation type {} not found in F prime types ({})").format(given_rep_type, str(types)) | 1 | 4 | 3 | 27 | 0 | 134 | 137 | 134 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 134 and ends at 137. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [134.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, key, value, given_rep_type, range):super().__init__("Enumeration member {} with value {} is out of range of representation type {} ({}-{})".format(key, value, given_rep_type, *range)) | 1 | 6 | 5 | 33 | 0 | 143 | 148 | 143 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 143 and ends at 148. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [143.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, build_type: BuildType, project: Path, verbose: bool = False):"""Constructs a build object from its constituent partsArgs:build_type: member of the enum BuildType specifying fprime build typeproject: path to cmake project that this build represents"""self.build_type = build_typeself.cmake_root = proje... | 1 | 8 | 4 | 60 | 0 | 58 | 71 | 58 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 58 and ends at 71. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [58.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | is_verbose | def is_verbose(self) -> bool:"""Returns the verbose setting of the build"""return self.cmake.verbose | 1 | 2 | 1 | 14 | 0 | 73 | 75 | 73 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (is_verbose) defined within the public class called public.The function start at line 73 and ends at 75. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | invent | def invent(self, platform: str = None, build_dir: Path = None, force=False):"""Invents a build path from a given platformSets this build up as a new build that would be used as as part of a generate step. This directory must notalready exist. If platform is None, a default will be chosen from the settings.ini file. If ... | 3 | 6 | 4 | 52 | 0 | 77 | 100 | 77 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (invent) defined within the public class called public.The function start at line 77 and ends at 100. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [77.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | load | def load(self, platform: str = None, build_dir: Path = None, skip_validation=False):"""Load an existing build cacheSets this build up from an existing build cache. This can be used after a previous run that has generated abuild cache in order to prepare for other build steps.Args:platform: name of platform to build aga... | 10 | 25 | 4 | 130 | 0 | 102 | 145 | 102 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (load) defined within the public class called public.The function start at line 102 and ends at 145. It contains 25 lines of code and it has a cyclomatic complexity of 10. It takes 4 parameters, represented as [102.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_settings | def get_settings(self,setting: Union[None, str, Iterable[Union[None, str]]],default: Union[None, str, Iterable[Union[None, str]]],) -> Union[str, Iterable[str]]:"""Fetches settings in the settings fileReads settings loaded from the settings file and returns them to the caller. If a single string is submitted,then a sin... | 3 | 8 | 3 | 96 | 0 | 147 | 167 | 147 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_settings) defined within the public class called public.The function start at line 147 and ends at 167. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [147.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | find_hashed_file | def find_hashed_file(self, hash_value: int) -> List[str]:"""Retrieves the file associated with a hashIn order to reduce space and memory footprint, filenames are associated with hashes automatically as part of thebuild. This function will retrieve the file name given a has integer.Args:hash_value: hash number to lookup... | 2 | 14 | 2 | 89 | 0 | 169 | 193 | 169 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (find_hashed_file) defined within the public class called public.The function start at line 169 and ends at 193. It contains 14 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [169.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_build_cache | def get_build_cache(self) -> Path:"""Generates build cache path for this buildGenerates the build path for this build. This will expect a valid build path to exist unless validate isspecified as false. A valid build cache has been created from the generate step, and thus when using this callas part of the generate step... | 1 | 4 | 1 | 35 | 0 | 195 | 208 | 195 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_build_cache) defined within the public class called public.The function start at line 195 and ends at 208. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_build_info | def get_build_info(self, context: Path) -> dict:"""Constructs an informational packet about this buildConstructs a packet that allows for users to get meta-build information. This includes: location of build, fileand other constructs, available make targets, and other items.Args:context: contextual path to list various... | 8 | 25 | 2 | 118 | 0 | 210 | 247 | 210 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_build_info) defined within the public class called public.The function start at line 210 and ends at 247. It contains 25 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [210.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | is_project_root | def is_project_root(self, context: Path) -> bool:"""Check if given path represents a project rootArgs:context: contextual path to list various information about the buildReturns:True if the context is a project, false otherwise"""try:self.cmake.cmake_validate_source_dir(context)return Trueexcept CMakeException:return F... | 2 | 6 | 2 | 29 | 0 | 249 | 262 | 249 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (is_project_root) defined within the public class called public.The function start at line 249 and ends at 262. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [249.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | find_toolchain | def find_toolchain(self):"""Locates a toolchain file in know locationsFinds a toolchain for the given platform.Searches in known locations for the toolchain, and compares against Fprime provided toolchains, toolchains in libraries, and toolchains provided by project.Returns:path to CMake toolchain file or None to use b... | 8 | 29 | 1 | 140 | 0 | 264 | 304 | 264 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (find_toolchain) defined within the public class called public.The function start at line 264 and ends at 304. It contains 29 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_cmake_args | def get_cmake_args(self) -> dict:"""Generates CMake arguments from project settings (settings.ini file)Returns:A dictionary of cmake settings"""needed = [("FPRIME_FRAMEWORK_PATH", "framework_path"),("FPRIME_LIBRARY_LOCATIONS", "library_locations"),("FPRIME_PROJECT_ROOT", "project_root"),("FPRIME_SETTINGS_FILE", "settin... | 5 | 20 | 1 | 116 | 0 | 306 | 332 | 306 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_cmake_args) defined within the public class called public.The function start at line 306 and ends at 332. It contains 20 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_module_name | def get_module_name(self, path: Path):"""Gets name of module from path"""return self.cmake.get_cmake_module(path, self.build_dir) | 1 | 2 | 2 | 23 | 0 | 334 | 336 | 334 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_module_name) defined within the public class called public.The function start at line 334 and ends at 336. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [334.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_build_cache_path | def get_build_cache_path(self, context: Path) -> Path:"""Get the path within the build cache associated with the given contextEach contextual path has a matching path within the build cache that contains the outputs of the various buildcommands executed in that context. This command will return a path to that context.A... | 4 | 11 | 2 | 80 | 0 | 338 | 356 | 338 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_build_cache_path) defined within the public class called public.The function start at line 338 and ends at 356. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [338.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_relative_path | def get_relative_path(self, path: Path) -> Path:"""Gets path relative to project"""relative_path, _ = self.cmake.get_include_info(path, self.build_dir)return Path(relative_path) | 1 | 3 | 2 | 33 | 0 | 358 | 361 | 358 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_relative_path) defined within the public class called public.The function start at line 358 and ends at 361. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [358.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | execute_build_target | def execute_build_target(self, build_target: str, context: Path, make_args: dict):"""Execute a build targetExecutes a target within the build system. This will execute the target by calling into the make system. Contextis supplied such that the system can match local targets to the global target list.Args:build_target:... | 1 | 11 | 4 | 74 | 0 | 363 | 383 | 363 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (execute_build_target) defined within the public class called public.The function start at line 363 and ends at 383. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [363.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | generate.split_pair | def split_pair(item):"""Process an item into a two-tuple always"""return tuple([*item.strip().split("=", 1), ""][:2]) | 1 | 2 | 1 | 31 | 0 | 396 | 398 | 396 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (generate.split_pair) defined within the public class called public.The function start at line 396 and ends at 398. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | generate | def generate(self, user_cmake_args):"""Generates a build given CMake argumentsThis will run a generate step of the cmake build process. This will take in any argument used/passed to CMake.Args:user_cmake_args: cmake arguments to pass into the generate step"""cmake_args = {}try:def split_pair(item):"""Process an item in... | 8 | 35 | 2 | 199 | 0 | 385 | 435 | 385 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (generate) defined within the public class called public.The function start at line 385 and ends at 435. It contains 35 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [385.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | purge | def purge(self):"""Purge a build cache directory"""self.cmake.purge(self.build_dir) | 1 | 2 | 1 | 16 | 0 | 437 | 439 | 437 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (purge) defined within the public class called public.The function start at line 437 and ends at 439. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | purge_install | def purge_install(self):"""Purge the install directory"""assert ("install_destination" in self.settings), "install_destination not present in settings"self.cmake.purge(self.settings["install_destination"]) | 1 | 5 | 1 | 29 | 0 | 441 | 446 | 441 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (purge_install) defined within the public class called public.The function start at line 441 and ends at 446. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | install_dest_exists | def install_dest_exists(self) -> Path:"""Check if the install destination exists and returns the path if it does"""assert ("install_destination" in self.settings), "install_destination not present in settings"path = Path(self.settings["install_destination"])return path if path.exists() else None | 2 | 6 | 1 | 39 | 0 | 448 | 454 | 448 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (install_dest_exists) defined within the public class called public.The function start at line 448 and ends at 454. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | refresh | def refresh(self):"""Refresh this build (i.e. the cmake build cache)Some build systems (e.g. CMake) require the build to be refreshed (i.e. refresh the build cache). When thishappens it is imperative that the appropriate environment is set. For this reason, refresh is exposed as ahelper in this layer rather than the pr... | 1 | 4 | 1 | 29 | 0 | 456 | 465 | 456 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (refresh) defined within the public class called public.The function start at line 456 and ends at 465. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | find_nearest_parent_project | def find_nearest_parent_project(path: Path) -> Path:"""Recurse up the directory stack looking for a valid CMake project.Recurse up the directory tree from the given path, looking for a project definition directory. This means itdefines a CMakeLists.txt with a project call. This finds where the automatic build directori... | 4 | 11 | 1 | 79 | 0 | 468 | 494 | 468 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (find_nearest_parent_project) defined within the public class called public.The function start at line 468 and ends at 494. It contains 11 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_build_list | def get_build_list(base, build_cache=None, ignore_invalid=False):"""Returns a list of builds that the tool will processWill return a list of builds the tool will process. This will be a build for each public build type unless thecache has been overridden.If overridden, this will be one build pointed at that cache.Args:... | 5 | 22 | 3 | 104 | 0 | 497 | 532 | 497 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_build_list) defined within the public class called public.The function start at line 497 and ends at 532. It contains 22 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [497.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __setup_default | def __setup_default(self, platform: str = None, build_dir: Path = None):"""Sets up default buildSets this build up before determining if it is a pre-generated, or post-generated build.build_dir is used to specify an exact build directory to use as part of this step. This allows directories to bespecified by the caller,... | 5 | 16 | 3 | 137 | 0 | 534 | 563 | 534 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__setup_default) defined within the public class called public.The function start at line 534 and ends at 563. It contains 16 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [534.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, message, exit_code=1):super().__init__(message)self.exit_code = exit_code | 1 | 3 | 3 | 24 | 0 | 569 | 571 | 569 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 569 and ends at 571. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [569.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, scope: TargetScope, build_target_enumerator: BuildTargetEnumerator = None):"""Initialize this action with the test enumerator"""super().__init__(scope=scope, build_target_enumerator=build_target_enumerator) | 1 | 4 | 3 | 30 | 0 | 29 | 33 | 29 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 29 and ends at 33. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [29.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | any_supported | def any_supported(self, builder: "Build", context: TargetContext):"""Check if this target is supported in the given contextThis will determine if two conditions are met:1. CTest is available2. There are test targets to run"""if not bool(shutil.which(self.EXECUTABLE)):print("[ERROR] CTest not found", file=sys.stderr)ret... | 2 | 5 | 3 | 47 | 0 | 35 | 45 | 35 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (any_supported) defined within the public class called public.The function start at line 35 and ends at 45. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [35.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | execute_all | def execute_all(self,builder: "Build",context: TargetContext,args: Tuple[Dict[str, str], List[str], Dict[str, bool]],):"""Execute this target"""if not context:# This only happens if the provided path does not contain tests# and neither '--all' nor '--recursive' were providedraise NoTargetFoundException("No tests were f... | 11 | 34 | 5 | 200 | 0 | 47 | 96 | 47 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (execute_all) defined within the public class called public.The function start at line 47 and ends at 96. It contains 34 lines of code and it has a cyclomatic complexity of 11. It takes 5 parameters, represented as [47.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self,scope: TargetScope,build_target_enumerators: List[BuildTargetEnumerator],*args,**kwargs,):"""Constructor setting child targets"""build_target = BuildSystemTarget(scope=scope,build_target_enumerator=build_target_enumerators[0],*args,**kwargs,)check_action = Check(scope=scope, build_target_enumerator=bu... | 1 | 22 | 5 | 86 | 0 | 102 | 124 | 102 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 102 and ends at 124. It contains 22 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [102.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_target | def get_target(parsed: argparse.Namespace) -> Target:"""Gets the target given the argparse namespaceTakes the parsed namespace and processes it to a known matching target.Args:parsed: argparse namespace to read values fromReturns:target that can support the given supplied namespace"""mnemonic = parsed.commandflags = {f... | 3 | 6 | 1 | 48 | 2 | 20 | 35 | 20 | null | ['mnemonic', 'flags'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_target) defined within the public class called public.The function start at line 20 and ends at 35. It contains 6 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | run_fbuild_cli | def run_fbuild_cli(build: Build,parsed: argparse.Namespace,cmake_args: Dict[str, str],make_args: Dict[str, str],pass_through: List[str],):"""Execution of the fbuild commandsArgs:build: build object, pre-loaded, iff not "generate" or "purged"parsed: parsed arguments object.cmake_args: cmake commands from parsed outputma... | 9 | 38 | 5 | 225 | 3 | 38 | 91 | 38 | null | ['target', 'option_args', 'toolchain'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (run_fbuild_cli) defined within the public class called public.The function start at line 38 and ends at 91. It contains 38 lines of code and it has a cyclomatic complexity of 9. It takes 5 parameters, represented as [38.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | purge | def purge(build: Build, parsed: argparse.Namespace):for purge_build in Build.get_build_list(build, parsed.build_cache, ignore_invalid=parsed.force):print(f"[INFO] {parsed.command.title()} build directory at: {purge_build.build_dir}")try:perform_purge = Falseif parsed.force:if Path(purge_build.build_dir).is_dir():perfor... | 11 | 37 | 2 | 143 | 2 | 94 | 132 | 94 | null | ['install_dir', 'perform_purge'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (purge) defined within the public class called public.The function start at line 94 and ends at 132. It contains 37 lines of code and it has a cyclomatic complexity of 11. It takes 2 parameters, represented as [94.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | add_target_parser | def add_target_parser(target: Target,subparsers,common: argparse.ArgumentParser,existing: Dict[str, Tuple[argparse.ArgumentParser, List[str]]],help_text: "HelpText",) -> str:"""Add a subparser for a given build targetFor a given build target, construct an argument parser with mnemonic as subcommand and needed flags. Th... | 10 | 66 | 5 | 339 | 5 | 135 | 222 | 135 | null | ['parser', 'extra_help', 'new_flags', 'description', 'help_string'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (add_target_parser) defined within the public class called public.The function start at line 135 and ends at 222. It contains 66 lines of code and it has a cyclomatic complexity of 10. It takes 5 parameters, represented as [135.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | add_special_targets | def add_special_targets(subparsers, common: argparse.ArgumentParser, help_text: "HelpText") -> List[str]:"""Add in generate and purge commandsArgs:subparsers: subparsers used to create new subparserscommon: common parserhelp_text: map of mnemonic to help textReturns:["generate", "purge"] list of special targets"""gener... | 1 | 56 | 3 | 212 | 2 | 225 | 293 | 225 | null | ['generate_parser', 'purge_parser'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (add_special_targets) defined within the public class called public.The function start at line 225 and ends at 293. It contains 56 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [225.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | add_fbuild_parsers | def add_fbuild_parsers(subparsers, common: argparse.ArgumentParser, help_text: "HelpText") -> Tuple[Dict[str, Callable], Dict[str, argparse.ArgumentParser]]:"""Add in the build-system targets: generate, purge, and all build endpointsSets up the targets used to generate and run the build system. This includes the purge ... | 3 | 17 | 3 | 94 | 2 | 296 | 325 | 296 | null | ['parsers', 'run_map'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (add_fbuild_parsers) defined within the public class called public.The function start at line 296 and ends at 325. It contains 17 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [296.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self):"""Instantiate a basic CMake handler"""self.settings = {}self._cmake_cache = Noneself.verbose = Falseself.cached_help_targets = []try:self._run_cmake(["--help"], print_output=False)except Exception as exc:raise CMakeExecutionException("CMake executable 'cmake' not found", str(exc), printed=False) fro... | 2 | 11 | 1 | 63 | 0 | 37 | 48 | 37 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 37 and ends at 48. It contains 11 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | set_verbose | def set_verbose(self, verbose):"""Sets verbosity"""self.verbose = verbose | 1 | 2 | 2 | 13 | 0 | 50 | 52 | 50 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (set_verbose) defined within the public class called public.The function start at line 50 and ends at 52. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [50.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | validate_cmake_cache | def validate_cmake_cache(self, cmake_args, build_dir):cmake_cache = self._read_cache(build_dir)for key, expected in cmake_args.items():actual = cmake_cache.get(key)# Allow expected variables not to be set in cache.# When building with a newer version of fprime-util and an older version of F prime,# newer CMake options ... | 4 | 10 | 3 | 76 | 0 | 54 | 66 | 54 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (validate_cmake_cache) defined within the public class called public.The function start at line 54 and ends at 66. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [54.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | execute_known_target | def execute_known_target(self,target,build_dir,path,cmake_args=None,make_args=None,top_target=False,environment=None,full_cache_rebuild=False,print_output=True,):"""Executes a known target for a given build_dir. Path will default to a known path.:param build_dir: build_dir to use to run this.:param target: target to ex... | 14 | 64 | 10 | 323 | 0 | 68 | 159 | 68 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (execute_known_target) defined within the public class called public.The function start at line 68 and ends at 159. It contains 64 lines of code and it has a cyclomatic complexity of 14. It takes 10 parameters, represented as [68.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_include_locations | def get_include_locations(self, cmake_dir):"""Gets the locations that can be used as the root of an include tree. Common directories are placed in theseinclude locations. These include standard builds, configs, etc.:param cmake_dir: directory of a CMake build, or directory containing a CMake project:return: []List of i... | 2 | 8 | 2 | 88 | 0 | 161 | 179 | 161 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_include_locations) defined within the public class called public.The function start at line 161 and ends at 179. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [161.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_include_info.parent_reducer | def parent_reducer(accum, item):"""Reduces a list of parents, and the given path, to a single path who is the closes parent to the existingpath while stilling being a parent.:param accum: latest best parent, or None if no valid parent found:param item: current parent being evaluated:return: next latest best parent"""# ... | 5 | 9 | 2 | 56 | 0 | 215 | 234 | 215 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_include_info.parent_reducer) defined within the public class called public.The function start at line 215 and ends at 234. It contains 9 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [215.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_include_info | def get_include_info(self, path, cmake_dir):"""Calculates the include root of the given path. The include root is defined as the following based on the othertwo values supplied. First, the following paths values are established:- Location of the project's root. This is defined in the project_dir's CMakeList.txt, or in ... | 4 | 22 | 3 | 172 | 0 | 181 | 241 | 181 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_include_info) defined within the public class called public.The function start at line 181 and ends at 241. It contains 22 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [181.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_fprime_configuration | def get_fprime_configuration(self, fields, cmake_dir=None):"""Gets fprime configuration for the given field(s). This will return a list of fields for the set of input fields.The user may supply a string for a single value returned as list of one, or a list of fields for list of values.:param fields: name of field, or l... | 2 | 5 | 3 | 42 | 0 | 243 | 256 | 243 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_fprime_configuration) defined within the public class called public.The function start at line 243 and ends at 256. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [243.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | generate_build | def generate_build(self, source_dir, build_dir, args=None, ignore_output=False, environment=None):"""Generate a build directory for purposes of the build.:param source_dir: source directory to generate from:param build_dir: build directory to generate to:param args: arguments to hand to CMake.:param ignore_output: do n... | 4 | 22 | 6 | 147 | 0 | 258 | 290 | 258 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (generate_build) defined within the public class called public.The function start at line 258 and ends at 290. It contains 22 lines of code and it has a cyclomatic complexity of 4. It takes 6 parameters, represented as [258.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_cmake_module | def get_cmake_module(self, path, build_dir):"""Gets the CMake moduleCMake modules are constructed from a path relative to some project root (fprime, deployment, or library roots).This relative path is then converted to use "_" instead of "/"Args:path: path to contextualize. May be None to use os.getcwd().build_dir: bui... | 1 | 7 | 3 | 44 | 0 | 292 | 310 | 292 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_cmake_module) defined within the public class called public.The function start at line 292 and ends at 310. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [292.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_project_relative_path | def get_project_relative_path(self, path, build_dir):"""Gets the path relative to the cmake setup, or raises CMakeOrphanExceptionArgs:path: path to contextualize. May be None to use os.getcwd().build_dir: build directory to useReturns:path string that is relative to some root of the project. i.e. used for target suffix... | 2 | 5 | 3 | 46 | 0 | 312 | 326 | 312 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_project_relative_path) defined within the public class called public.The function start at line 312 and ends at 326. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [312.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_available_targets | def get_available_targets(self, build_dir, path):"""Gets a list of available CMake targets in the current directoryArgs:build_dir: build directory to use for detecting targetspath: contextual path. None for "cwd"Note:This code might not work on non-GNU makefile variants of CMake as it depends on the "help" targetReturn... | 9 | 28 | 3 | 159 | 0 | 328 | 371 | 328 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_available_targets) defined within the public class called public.The function start at line 328 and ends at 371. It contains 28 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [328.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | is_target_supported | def is_target_supported(self, build_dir: str, target: str):"""Checks if a target is supported by the current build directoryArgs:build_dir: build directory to use for detecting targetstarget: target name to check"""# Load in self.cached_help_targetsself.get_available_targets(build_dir, None)return target in self.cached... | 1 | 3 | 3 | 28 | 0 | 373 | 382 | 373 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (is_target_supported) defined within the public class called public.The function start at line 373 and ends at 382. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [373.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | _is_noop_supported | def _is_noop_supported(self, build_dir: str):"""Checks if the noop target is supported by the current build directory.Note: This function is implemented by checking the CMake files in order to bypass the callto `cmake --target help` in get_available_target() which is very slow when using MakefilesArgs:build_dir: build ... | 2 | 10 | 2 | 49 | 0 | 384 | 401 | 384 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_is_noop_supported) defined within the public class called public.The function start at line 384 and ends at 401. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [384.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | purge | def purge(build_dir):"""Reusable purge functionality, so the user may purge or the system may cleanup itself:param build_dir: build dir specified to purge"""shutil.rmtree(build_dir) | 1 | 2 | 1 | 12 | 0 | 404 | 410 | 404 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (purge) defined within the public class called public.The function start at line 404 and ends at 410. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | _read_values_from_cache | def _read_values_from_cache(self, keys, build_dir):"""Reads set values from cache into an output tuple.:param keys: keys to read in iterable:param build_dir: build directory containing cache file:return: a tuple of keys, None if not part of cache"""cache = self._read_cache(build_dir)# Reads cache values suppressing Key... | 1 | 4 | 3 | 33 | 0 | 412 | 423 | 412 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_read_values_from_cache) defined within the public class called public.The function start at line 412 and ends at 423. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [412.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | _read_cache | def _read_cache(self, build_dir):"""Reads the cache from the associated build_dir. This will return a dictionary of cache variable name toits value. The first run will call cmake to extract the cache and cache it internally. Subsequentcalls will return the cached cache.:param build_dir: build directory to harvest for c... | 2 | 11 | 2 | 109 | 0 | 425 | 447 | 425 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_read_cache) defined within the public class called public.The function start at line 425 and ends at 447. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [425.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | cmake_validate_source_dir | def cmake_validate_source_dir(source_dir):"""Raises an exception if the source dir is not a valid CMake source directory. This means a CMakeLists.txt existsand defines within it a project call.:param source_dir: source directory to validate"""cmake_file = os.path.join(source_dir, "CMakeLists.txt")if not os.path.isfile(... | 3 | 12 | 1 | 80 | 0 | 450 | 468 | 450 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (cmake_validate_source_dir) defined within the public class called public.The function start at line 450 and ends at 468. It contains 12 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | _cmake_validate_build_dir | def _cmake_validate_build_dir(build_dir):"""Raises an exception if the build dir is not a valid CMake build directory:param build_dir: build_dir to validate"""cache_file = os.path.join(build_dir, "CMakeCache.txt")if not os.path.isfile(cache_file):raise CMakeInvalidBuildException(build_dir) | 2 | 4 | 1 | 34 | 0 | 471 | 479 | 471 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_cmake_validate_build_dir) defined within the public class called public.The function start at line 471 and ends at 479. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | cmake_refresh_cache | def cmake_refresh_cache(self, build_dir, environment=None, full=False):"""Refresh the CMake cache by calling a known cache-refresh targetRuns the cmaketarget required to refresh the cmake cache. This will allow for unknown targets to be searchedfor before the utility gives up and produces.:param build_dir: cache direct... | 6 | 30 | 4 | 143 | 0 | 481 | 520 | 481 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (cmake_refresh_cache) defined within the public class called public.The function start at line 481 and ends at 520. It contains 30 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [481.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | _run_cmake | def _run_cmake(self,arguments,workdir=None,print_output=True,write_override=False,environment=None,):"""Will run the cmake system supplying the given arguments. Assumes that the CMake executable is somewhere on thepath in order for this to run.:param arguments: arguments to supply to CMake.:param workdir: work director... | 8 | 39 | 6 | 221 | 0 | 522 | 578 | 522 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_run_cmake) defined within the public class called public.The function start at line 522 and ends at 578. It contains 39 lines of code and it has a cyclomatic complexity of 8. It takes 6 parameters, represented as [522.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, message, exit_code=1):super().__init__(message)self.exit_code = exit_code | 1 | 3 | 3 | 24 | 0 | 584 | 586 | 584 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 584 and ends at 586. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [584.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, key, expected, actual):"""Force an appropriate message"""super().__init__(f"Expected CMake variable {key} to be set to '{expected}', was actually set to '{actual}'. This is usually caused by updating the settings.ini file without purging and regenerating the accompanying build cache.") | 1 | 4 | 4 | 21 | 0 | 592 | 596 | 592 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 592 and ends at 596. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [592.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, file_dir):"""Force an appropriate message"""super().__init__(f"{file_dir} is outside the F prime project") | 1 | 2 | 2 | 17 | 0 | 602 | 604 | 602 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 602 and ends at 604. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [602.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, project_dir, error):"""Force an appropriate message"""super().__init__(f"{project_dir} is an invalid F prime deployment. {error}") | 1 | 2 | 3 | 19 | 0 | 610 | 612 | 610 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 610 and ends at 612. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [610.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, file_dir):"""Force an appropriate message"""super().__init__(f"{file_dir} is outside the F prime project") | 1 | 4 | 2 | 17 | 0 | 618 | 622 | 602 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 618 and ends at 622. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [602.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, message, stderr, printed, exit_code=1):"""The error data should be stored"""super().__init__(message, exit_code)self.stderr = stderrself.need = not printed | 1 | 4 | 5 | 37 | 0 | 628 | 632 | 628 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 628 and ends at 632. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [628.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_errors | def get_errors(self):"""Returns the error stream data to the caller:return: stderr of CMake as supplied into this Exception"""return self.stderr | 1 | 2 | 1 | 10 | 0 | 634 | 639 | 634 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_errors) defined within the public class called public.The function start at line 634 and ends at 639. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | need_print | def need_print(self):"""Returns if the errors need to be printed:return: need print"""return self.need | 1 | 2 | 1 | 10 | 0 | 641 | 646 | 641 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (need_print) defined within the public class called public.The function start at line 641 and ends at 646. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, project_dir, error):"""Force an appropriate message"""super().__init__(f"{project_dir} is an invalid F prime deployment. {error}") | 1 | 2 | 3 | 19 | 0 | 652 | 654 | 610 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 652 and ends at 654. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [610.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | register_designee | def register_designee(cls, designee):"""Register designee to this action"""cls._DESIGNEES.append(designee) | 1 | 2 | 2 | 16 | 0 | 30 | 32 | 30 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (register_designee) defined within the public class called public.The function start at line 30 and ends at 32. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [30.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __call__ | def __call__(self, parser, namespace, values, option_string=None):"""Required __call__ function triggered by the parse"""# For each designee, update the build system targetfor designee in self._DESIGNEES:designee.set_build_targets(values)# The build target detection looks for true/false flags to be set. Mimic this by s... | 2 | 4 | 5 | 37 | 0 | 34 | 41 | 34 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__call__) defined within the public class called public.The function start at line 34 and ends at 41. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [34.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | enumerate | def enumerate(self, builder: "Build", context_path: Path) -> List[str]:"""Enumerates build targets available in the given context path."""raise NotImplementedError() | 1 | 2 | 3 | 23 | 0 | 48 | 50 | 48 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (enumerate) defined within the public class called public.The function start at line 48 and ends at 50. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [48.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self, target_suffix: str = ""):self.target_suffix = target_suffix | 1 | 2 | 2 | 16 | 0 | 56 | 57 | 56 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 56 and ends at 57. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [56.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | enumerate_helper | def enumerate_helper(self, builder: "Build", context_path: Path) -> List[str]:"""Enumeration helper without error handling"""module = builder.cmake.get_cmake_module(context_path, builder.build_dir)if module and self.target_suffix:return [module + "_" + self.target_suffix]elif module:return [module]return [self.target_s... | 4 | 7 | 3 | 63 | 0 | 59 | 66 | 59 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (enumerate_helper) defined within the public class called public.The function start at line 59 and ends at 66. It contains 7 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [59.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | enumerate | def enumerate(self, builder: "Build", context_path: Path) -> List[str]:"""Enumerate through conversion to cmake module name directly"""return self.enumerate_helper(builder, context_path) | 1 | 2 | 3 | 28 | 0 | 68 | 70 | 68 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (enumerate) defined within the public class called public.The function start at line 68 and ends at 70. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [68.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | __init__ | def __init__(self,build_file_name: str = BUILD_TARGETS_FILE,fail_safe_enumerator: BuildTargetEnumerator = None,):"""Construct the enumerator with the name of the file"""self.build_file_name = build_file_nameself.fail_safe_enumerator = (BasicBuildTargetEnumerator()if fail_safe_enumerator is Noneelse fail_safe_enumerator... | 2 | 11 | 3 | 39 | 0 | 79 | 90 | 79 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 79 and ends at 90. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [79.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | enumerate_helper | def enumerate_helper(self, builder: "Build", context_path: Path) -> List[str]:"""Enumeration helper without error handling"""module = builder.cmake.get_cmake_module(context_path, builder.build_dir)if module and self.target_suffix:return [module + "_" + self.target_suffix]elif module:return [module]return [self.target_s... | 2 | 6 | 3 | 63 | 0 | 92 | 98 | 59 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (enumerate_helper) defined within the public class called public.The function start at line 92 and ends at 98. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [59.0] and does not return any value.. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.