MCPcopy Create free account

hub / github.com/JafarAkhondali/Morefixes / functions

Functions590 in github.com/JafarAkhondali/Morefixes

Methodapply
(self, candidate: Commit, _: AdvisoryRecord = None)
prospector/rules/rules.py:120
Methodapply
( self, candidate: Commit, _: AdvisoryRecord = None )
prospector/rules/rules.py:130
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:142
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:165
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:196
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:220
Methodapply
(self, candidate: Commit, _: AdvisoryRecord = None)
prospector/rules/rules.py:240
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:251
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:260
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:275
Methodapply
(self, candidate: Commit, _: AdvisoryRecord = None)
prospector/rules/rules.py:299
Methodapply
(self, candidate: Commit, _: AdvisoryRecord = None)
prospector/rules/rules.py:312
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:326
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:344
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:361
Methodapply
(self, candidate: Commit, _: AdvisoryRecord)
prospector/rules/rules.py:370
Methodapply
(self, candidate: Commit, advisory_record: AdvisoryRecord)
prospector/rules/rules.py:389
Methodas_dict
( self, no_hash: bool = True, no_rules: bool = True, no_diff: bool = True )
prospector/datamodel/commit.py:87
FunctioncallEnqueue
(cve)
prospector/service/static/job_configuration.js:2
Functioncandidates
()
prospector/rules/rules_test.py:13
Functionchange_mock_status_code_to_ok
(*args)
tests/test_collection/test_find_unavailable_urls.py:85
Functionclean_string
Remove all non-alphanumeric characters from a string
prospector/datamodel/nlp.py:25
Functionclone_repo_multiple
This is the parallelized version of clone_repo (works with a list of repositories).
prospector/git/git.py:38
Methodcollect_unique
( self, name: Union[str, Tuple[str, ...]], value, ensure_uniqueness: bool = False )
prospector/stats/collection.py:178
Functioncommit
()
prospector/git/raw_commit_test.py:19
Functionconn
Creates a temporary sqlite3 database
tests/conftest.py:29
Functioncreate
(threshold: float, permutations: int)
prospector/util/lsh.py:54
Functioncreate_clone_job
(repository)
prospector/service/api/routers/jobs.py:27
Methodcreate_commit
(self, commit_id: str)
prospector/git/git.py:272
Functioncreate_lsh_from_data
Create a MinHashLSH object from a list of strings
prospector/util/lsh.py:66
Functioncreate_update_feed_job
()
prospector/service/api/routers/jobs.py:81
Functioncreate_zip_files
()
Code/utils.py:127
Functioncsv_to_json
(csv_file_path)
prospector/data_sources/nvd/filter_entries.py:64
Functioncve_json_file
()
tests/test_collection/test_cve.py:14
Functioncve_populated_conn
Connection to a database with a populated cve table
tests/test_collection/conftest.py:65
Functioncwe_file_to_data_path
(mocked_data_path)
tests/test_collection/test_cwe.py:14
Functiondamerau_levenshtein_edit_distance
Compute the Damerau-Levenshtein distance between two given strings (s1 and s2) https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_
prospector/util/similarity.py:54
Methoddefault
(self, obj)
prospector/core/report.py:18
Functiondelete_job
(job_id)
prospector/service/api/routers/endpoints.py:42
Methoddeserialize_minhash
(self, binary_minhash)
prospector/datamodel/commit.py:84
Functiondo_clone
()
prospector/git/git.py:34
Methoddrop_all
(self)
prospector/stats/collection.py:61
Functionenqueue_job
(cve: str, repo: str, version: str)
prospector/service/api/routers/endpoints.py:124
Functionexists_in_github
(cpe)
Code/resources/cpe_to_github_search.py:17
Functionextract_commit_from_repo
(repo_url, cve_id, search_range=None)
Code/project_to_commit.py:12
Functionextract_cve_and_project_url
(advisory)
Code/resources/extract_github_repo_from_ghsd.py:59
Functionextract_filename_from_path
(text: str)
prospector/datamodel/nlp.py:108
Functionextract_from_webpage
(url: str, attr_name: str, attr_value: List[str])
prospector/util/http.py:64
Functionextract_location_header
(url)
Code/collect_projects.py:73
Functionextract_version_ranges_desc
(doc)
prospector/data_sources/nvd/versions_extraction.py:72
Functionextract_version_ranges_description
(doc)
prospector/data_sources/nvd/versions_extraction.py:100
Functionextract_versions
Extract all versions mentioned in the text
prospector/datamodel/nlp.py:61
Functionfetchone_query
Checks whether a row with the given value exists in the table. Returns boolean (True if a matching row exists, False otherwise).
Code/database.py:41
Functionfilter_non_textual
filtering out the non-textual files which have number of added and deleted lines equal 0.
Code/utils.py:170
Methodfind_commit
(self, commit_id)
prospector/git/git.py:389
Functionfind_commits_references
(text: str)
prospector/datamodel/nlp.py:189
Functionfind_unavailable_urls
returns the unavailable urls (repositories that are removed or made private)
Code/collect_projects.py:88
Methodget_commit_id_for_tag
(self, tag)
prospector/git/git.py:378
Functionget_commits
( repository_url: str, commit_id: Optional[str] = None, )
prospector/service/api/routers/preprocessed.py:21
Functionget_current_active_user
(current_user: User = Depends(get_current_user))
prospector/service/api/dependencies.py:77
Functionget_current_user
(token: str = Depends(oauth2_scheme))
prospector/service/api/dependencies.py:66
Functionget_cve_by_id
(id)
prospector/data_sources/nvd/filter_entries.py:39
Methodget_default_branch
Identifies the default branch of the remote repository for the local git repo
prospector/git/git.py:88
Functionget_from_local
(vuln_id: str, nvd_rest_endpoint: str = LOCAL_NVD_REST_ENDPOINT)
prospector/datamodel/advisory.py:305
Functionget_from_mitre
Get an advisory from the MITRE database
prospector/service/api/routers/nvd.py:25
Functionget_from_nvd
Get an advisory from the NVD dtabase
prospector/datamodel/advisory.py:275
Methodget_hunks
(self)
prospector/datamodel/commit.py:44
Functionget_job
(job_id)
prospector/service/api/routers/jobs.py:57
Methodget_message
(self)
prospector/rules/rules.py:27
Functionget_names
Extract names from text
prospector/datamodel/nlp.py:12
Methodget_parent_id
(self)
prospector/git/raw_commit.py:51
Methodget_random_commits
Return a list of n random commits from repo, which is assumed to be available as a standard-named subdirectory of base_dir
prospector/git/git.py:341
Methodget_relevance
(self)
prospector/datamodel/commit.py:74
Methodget_repo
(self, *args)
tests/test_collection/mock_objects.py:168
Functionget_report
(job_id)
prospector/service/api/routers/endpoints.py:57
Methodget_rule_as_tuple
(self)
prospector/rules/rules.py:37
Functionget_settings
(job_id, request: Request)
prospector/service/api/routers/endpoints.py:73
Functionget_status
()
prospector/service/main.py:52
Functionget_status
(job_id)
prospector/service/api/routers/endpoints.py:102
Functionget_tag_candidates
( prev_version: str, next_version: str, tag_version_map: dict, find_prev: bool, )
prospector/git/version_to_tag.py:148
Methodget_tag_for_version
get closest match from tags, given the version id
prospector/git/git.py:348
Functionget_text
(url)
Code/registry_to_github.py:14
Methodget_timestamp
(self)
prospector/git/raw_commit.py:48
Methodget_url
(self)
prospector/git/git.py:85
Functionget_vuln_data
(vuln_id)
prospector/service/api/routers/nvd.py:78
Functionhas_direct_commit
(cve_id)
Code/resources/find_repo_url.py:97
Functionhas_repo_project
(cve_id)
Code/resources/find_repo_url.py:103
Methodhas_twin
(self)
prospector/datamodel/commit.py:62
Functionhome
(request: Request)
prospector/service/api/routers/home.py:27
Functionimport_cves
gathering CVE records by processing JSON files.
Code/cve_importer.py:210
Functioninner
(*args, **kwargs)
prospector/util/profile.py:7
Functioninsert
(lsh: MinHashLSH, id: str, hash: LeanMinHash)
prospector/util/lsh.py:58
Functionjaccard_set_similarity
https://en.wikipedia.org/wiki/Jaccard_index
prospector/util/similarity.py:5
Functionlevenshtein_edit_distance
Calculates the Levenshtein distance between a and b. https://en.wikipedia.org/wiki/Levenshtein_distance
prospector/util/similarity.py:31
Functionlogin
(form_data: OAuth2PasswordRequestForm = Depends())
prospector/service/api/routers/users.py:25
Functionmain
(force, quiet)
prospector/service/api/routers/nvd_feed_update.py:152
Functionmake_raw_commit
( repository: Git, id: str, parent_id: str = "", )
prospector/git/git.py:414
Functionmaven_to_github
(pkg)
Code/registry_to_github.py:189
Functionmeasure_execution_time
( collection: StatisticCollection, name: Optional[Union[str, Tuple[str, ...]]] = None )
prospector/stats/execution.py:38
Functionmock_zipped_cve_json_url
(monkeypatch: pytest.MonkeyPatch, requests_mock: requests_mock.Mocker, tmp_dir: s
tests/test_collection/conftest.py:19
← previousnext →301–400 of 590, ranked by callers