MCPcopy Create free account

hub / github.com/JafarAkhondali/Morefixes / functions

Functions590 in github.com/JafarAkhondali/Morefixes

↓ 49 callersMethodrecord
( self, name: Union[str, Tuple[str, ...]], value, unit: Optional[str] = None,
prospector/stats/collection.py:68
↓ 43 callersMethodexecute
(self, cmd: str, silent: bool = False)
prospector/git/git.py:82
↓ 39 callersMethodcollect
( self, name: Union[str, Tuple[str, ...]], value, unit: Optional[str] = None )
prospector/stats/collection.py:160
↓ 24 callersFunctioncreate_session
Create a SQLAlchemy Session to manage database transactions.
Code/database.py:15
↓ 13 callersMethodincrement
(self, name: Union[str, Tuple[str, ...]], by: Union[int, float] = 1)
prospector/stats/execution.py:89
↓ 12 callersMethodexists
(self)
prospector/git/raw_commit.py:110
↓ 12 callersMethodsub_collection
( self, name: Optional[Union[str, Tuple[str, ...]]] = None, )
prospector/stats/collection.py:105
↓ 11 callersMethodprint
(note: str, status: Optional[MessageStatus] = None)
prospector/cli/console.py:43
↓ 10 callersFunctionclean_git_url
(url)
Code/utils.py:113
↓ 10 callersFunctionexec_query
(query, dictdata = None)
Code/database.py:92
↓ 10 callersMethodget_timestamp
(self, item: str, ts_format: str)
prospector/git/git.py:365
↓ 9 callersMethodcreate_commits
( self, next_tag=None, prev_tag=None, since=None, until=None,
prospector/git/git.py:233
↓ 9 callersMethodget_id
(self)
prospector/git/raw_commit.py:36
↓ 9 callersFunctionrandom_list_of_strs
(max_count: int, min_count: int = 0)
prospector/util/sample_data_generation.py:44
↓ 9 callersFunctionregistry_to_github
(package_name: str, ecosystem: str = None)
Code/registry_to_github.py:40
↓ 8 callersFunctionget_level
(string: bool = False)
prospector/log/logger.py:13
↓ 8 callersFunctionis_github_repo_url
(url)
Code/registry_to_github.py:34
↓ 8 callersFunctionparse_config_file
(filename: str = "config.yaml")
prospector/util/config_parser.py:137
↓ 8 callersMethodrun
(self, cmd: str, silent=False, cache: bool = False)
prospector/git/exec.py:21
↓ 7 callersFunctionis_instance_of_either
(collection, *types_to_check)
prospector/util/type_safety.py:1
↓ 7 callersFunctiontable_exists
Checks whether the table exists or not. Returns boolean (True if the table exists, False otherwise)
Code/database.py:29
↓ 6 callersFunctionextract_repo_base_url
(url)
Code/registry_to_github.py:18
↓ 6 callersFunctionfetch_url
(url: str, params=None, extract_text=True)
prospector/util/http.py:11
↓ 6 callersMethodget_commit
(self, id)
prospector/git/git.py:338
↓ 6 callersFunctionmake_from_raw_commit
This function is responsible of translating a RawCommit (git) into a preprocessed Commit, that can be saved to the DB and later used by t
prospector/datamodel/commit.py:121
↓ 6 callersFunctionnpmjs_to_github
(package_url: str)
Code/registry_to_github.py:108
↓ 5 callersMethodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:24
↓ 5 callersMethodas_dict
(self)
prospector/rules/rules.py:30
↓ 5 callersMethodclone
Clones the specified repository checking out the default branch in a subdir of output_folder. Shallow=true speeds up considerably the
prospector/git/git.py:146
↓ 5 callersFunctioncomposer_to_github
(package_name: str)
Code/registry_to_github.py:83
↓ 5 callersMethodexecute
(self, cmd)
prospector/git/raw_commit.py:30
↓ 5 callersFunctionget_job_ids
(job_registry)
prospector/service/api/rq_utils.py:15
↓ 5 callersMethodinitialize
( self, *keys: Union[str, Tuple[str, ...]], value=0, unit: Optional[str] = None )
prospector/stats/execution.py:100
↓ 4 callersFunctionapply_rules
( candidates: List[Commit], advisory_record: AdvisoryRecord, rules=["ALL"], )
prospector/rules/rules.py:41
↓ 4 callersFunctionclean_tag
Clean a tag name returning only the numeric part separated by dots.
prospector/git/version_to_tag.py:9
↓ 4 callersFunctionends_with_zero
Given a version string, return True if the last digit is zero.
prospector/git/version_to_tag.py:71
↓ 4 callersFunctionextract_affected_filenames
( text: str, extensions: List[str] = RELEVANT_EXTENSIONS )
prospector/datamodel/nlp.py:87
↓ 4 callersFunctionextract_cvss_version
Extract CVSS fields from a metrics array (e.g., cvssMetricV2, cvssMetricV31)
Code/cve_importer.py:35
↓ 4 callersFunctionget_best_github_link
(urls, allow_exact_repo=True)
Code/registry_to_github.py:303
↓ 4 callersFunctionis_black_list
(url)
Code/utils.py:92
↓ 4 callersMethodmock
(self, requests_mock: requests_mock.Mocker)
tests/test_collection/test_find_unavailable_urls.py:27
↓ 4 callersFunctionremove_query_params
(url, extra=[])
Code/registry_to_github.py:263
↓ 4 callersMethodto_dict
(self)
prospector/datamodel/commit.py:37
↓ 3 callersFunctionbuild_advisory_record
( cve_id: str, description: Optional[str] = None, nvd_rest_endpoint: Optional[str] = None, use
prospector/datamodel/advisory.py:315
↓ 3 callersFunctioncleanup
(exception_list=[])
Code/resources/dynamic_commit_collector.py:90
↓ 3 callersMethodconnect
(self)
prospector/commitdb/postgres.py:38
↓ 3 callersFunctiondecode_minhash
Decode a LeanMinHash object from a string
prospector/util/lsh.py:31
↓ 3 callersFunctiondownload_patch
(repo_url, patch_file_address, hashsha)
Code/collect_commits.py:31
↓ 3 callersFunctionencode_minhash
Encode a LeanMinHash object into a string
prospector/util/lsh.py:23
↓ 3 callersMethodextract_hashes
(self, reference: str, filter: bool = False)
prospector/datamodel/advisory.py:220
↓ 3 callersFunctionextract_security_keywords
Return the list of the security keywords found in the text
prospector/rules/helpers.py:70
↓ 3 callersMethodfind_tags
(self)
prospector/git/raw_commit.py:45
↓ 3 callersMethodget_diff
Return an array containing the diff lines, and the hunks count
prospector/git/raw_commit.py:73
↓ 3 callersFunctionget_query
(query)
Code/database.py:65
↓ 3 callersFunctionget_remaining_disk_space
(directory)
Code/resources/dynamic_commit_collector.py:70
↓ 3 callersFunctionis_repo_available
(url)
Code/resources/dynamic_commit_collector.py:45
↓ 3 callersMethodlookup
(self, repository: str, commit_id: str = None)
prospector/commitdb/postgres.py:57
↓ 3 callersMethodparse_git_output
(self, raw: List[str])
prospector/git/git.py:283
↓ 3 callersFunctionpretty_log
(logger: logging.Logger, obj, level: int = logging.DEBUG)
prospector/log/logger.py:8
↓ 3 callersFunctionprospector
( # noqa: C901 vulnerability_id: str, repository_url: str, publication_date: str = "", vuln_d
prospector/core/prospector.py:53
↓ 3 callersFunctionregistry_url_to_github
(url)
Code/registry_to_github.py:271
↓ 3 callersMethodrenamed
(self)
tests/test_collection/mock_objects.py:158
↓ 2 callersFunction_parse_dt
(s)
Code/utils.py:232
↓ 2 callersFunction_summarize_list
(collection, unit: Optional[str] = None)
prospector/stats/collection.py:37
↓ 2 callersMethodanalyze
(self)
prospector/datamodel/advisory.py:92
↓ 2 callersMethodas_html_ul
(self)
prospector/stats/collection.py:230
↓ 2 callersFunctionassign_cwes_to_cves
(df_cve: pd.DataFrame)
Code/cve_importer.py:138
↓ 2 callersMethodcommit_row
(self)
tests/test_collection/mock_objects.py:124
↓ 2 callersFunctioncompute_minhash
Compute a MinHash object from a string
prospector/util/lsh.py:36
↓ 2 callersFunctionconsole_
(results: List[Commit], advisory_record: AdvisoryRecord, verbose=False)
prospector/core/report.py:84
↓ 2 callersFunctionconvert_runtime
converts runtime of the slice of code more readable format
Code/collect_projects.py:156
↓ 2 callersFunctioncpe_name_before_version
(cpe_string)
Code/resources/find_repo_url.py:17
↓ 2 callersFunctioncreate_random_tables_in_db
(conn: sqlite3.Connection, num_tables: int)
tests/test_database.py:19
↓ 2 callersFunctiondo_fetch
the 'what' parameter can be a year or 'recent' or 'modified'
prospector/service/api/routers/nvd_feed_update.py:94
↓ 2 callersFunctionexecute_command
(command, cwd=None, env=None, silent=False)
Code/resources/dynamic_commit_collector.py:114
↓ 2 callersFunctionextract_referred_to_by_nvd
( commit: Commit, advisory_record: AdvisoryRecord )
prospector/rules/helpers.py:135
↓ 2 callersMethodextract_timestamp
(self, format_date=False)
prospector/git/raw_commit.py:90
↓ 2 callersFunctionextract_words_from_text
Use spacy to extract "relevant words" from text
prospector/datamodel/nlp.py:40
↓ 2 callersFunctionfetch_and_store_commits
Fetch the commits and save the extracted data into commit-, file- and method level tables.
Code/collect_projects.py:274
↓ 2 callersMethodfile_row
(self)
tests/test_collection/mock_objects.py:87
↓ 2 callersFunctionfilter
(commits: Dict[str, RawCommit])
prospector/core/prospector.py:274
↓ 2 callersMethodgenerate_console_tree
(self)
prospector/stats/collection.py:201
↓ 2 callersMethodget_advisory
(self)
prospector/datamodel/advisory.py:135
↓ 2 callersMethodget_changed_files
(self)
prospector/git/raw_commit.py:117
↓ 2 callersFunctionget_configuration
(argv)
prospector/util/config_parser.py:197
↓ 2 callersMethodget_descants
Return the unsorted collection of all its sub collections and their sub collections and so forth.
prospector/stats/collection.py:190
↓ 2 callersFunctionget_method_code
(source_code, start_line, end_line)
Code/collect_commits.py:121
↓ 2 callersMethodget_msg
(self, limit_length: Optional[int] = None)
prospector/git/raw_commit.py:54
↓ 2 callersFunctionget_possible_missing_tag
Given the tag list and a tag, return either the previous or the next tag candidates.
prospector/git/version_to_tag.py:22
↓ 2 callersMethodget_repository_url
(self)
prospector/git/raw_commit.py:33
↓ 2 callersFunctionguess_pl
:returns guessed programming language of the code
Code/collect_commits.py:111
↓ 2 callersFunctionhandle_tag_or_substring
Given a tag and a list of tags, return True if the tag is in the list or is a substring of one of the tags.
prospector/git/version_to_tag.py:41
↓ 2 callersFunctionhtml_
( results: List[Commit], advisory_record: AdvisoryRecord, filename: str = "prospector-report.html"
prospector/core/report.py:48
↓ 2 callersFunctionis_rc_or_date
(tag: str)
prospector/git/version_to_tag.py:18
↓ 2 callersFunctionjson_
( results: List[Commit], advisory_record: AdvisoryRecord, params, filename: str = "prospector-
prospector/core/report.py:24
↓ 2 callersMethodmethod_row
(self, before_change)
tests/test_collection/mock_objects.py:40
↓ 2 callersFunctionnpmjsurl_to_github
(package_url: str)
Code/registry_to_github.py:109
↓ 2 callersFunctionpopulate_fixes_table
retrieves reference links from CVE records to populate 'fixes' table
Code/collect_projects.py:167
↓ 2 callersFunctionpreprocess_jsons
Flatten NVD 2.0 vulnerabilities and extract required fields :param vulnerabilities_list: list of vulnerability objects from NVD 2.0 JSON
Code/cve_importer.py:77
↓ 2 callersFunctionrandom_list_of_cve
(max_count: int, min_count: int = 0)
prospector/util/sample_data_generation.py:110
next →1–100 of 590, ranked by callers