diff options
| author | Adam Janovsky | 2021-05-18 16:24:27 +0200 |
|---|---|---|
| committer | Adam Janovsky | 2021-05-18 16:24:27 +0200 |
| commit | 79be7ece6b2d046c2d613ec277e00ade9af3d027 (patch) | |
| tree | ea9f9bdafa314247355d168ff1275d77f26ce2c6 /examples | |
| parent | 5b5b14e78bbf62308f68731ca7bbc8dc7e7e63f8 (diff) | |
| download | sec-certs-79be7ece6b2d046c2d613ec277e00ade9af3d027.tar.gz sec-certs-79be7ece6b2d046c2d613ec277e00ade9af3d027.tar.zst sec-certs-79be7ece6b2d046c2d613ec277e00ade9af3d027.zip | |
cc fix state handleling, merge extract and heuristics public methods
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/cc_cpe_labeling.py | 2 | ||||
| -rw-r--r-- | examples/cc_oop_demo.py | 4 | ||||
| -rw-r--r-- | examples/readme.md | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/cc_cpe_labeling.py b/examples/cc_cpe_labeling.py index b9104d92..e467cfa9 100644 --- a/examples/cc_cpe_labeling.py +++ b/examples/cc_cpe_labeling.py @@ -19,7 +19,7 @@ def main(): dset = CCDataset({}, Path('./my_debug_datset'), 'cc_full_dataset', 'Full CC dataset') dset.get_certs_from_web(to_download=True) - dset.compute_heuristics() + dset._compute_heuristics() dset.manually_verify_cpe_matches() logger.info(f'{dset.json_path} should now contain fully labeled dataset.') diff --git a/examples/cc_oop_demo.py b/examples/cc_oop_demo.py index 63be8a32..c89832fe 100644 --- a/examples/cc_oop_demo.py +++ b/examples/cc_oop_demo.py @@ -40,13 +40,13 @@ def main(): dset.convert_all_pdfs() # Extract data from txt files and update json - dset.extract_data() + dset._extract_data() # transform to pandas DataFrame df = dset.to_pandas() # Compute heuristics on the dataset - dset.compute_heuristics() + dset._compute_heuristics() # Manually verify CPE findings and compute related cves # dset.manually_verify_cpe_matches(update_json=True) diff --git a/examples/readme.md b/examples/readme.md index 0e6fd2a9..e92de44f 100644 --- a/examples/readme.md +++ b/examples/readme.md @@ -12,7 +12,7 @@ The tool contains a fuzzy procedure that attempts to map [CPE names](https://nvd ```python dset = CCDataset({}, Path('./my_debug_datset'), 'cc_full_dataset', 'Full CC dataset') dset.get_certs_from_web(to_download=True, update_json=True) -dset.compute_heuristics() +dset._compute_heuristics() dset.manually_verify_cpe_matches() ``` |
