{"schema_version":"2","scorer_version":"0.1.0","scoring_version":"prov-4+qual-2+sec-2","generated_at":"2026-11-13T23:22:24.564562Z","repo":{"ref":{"host":"github.com","owner":"naturomics","name":"CapsNet-Tensorflow"},"default_branch":"master","clone_url":"https://github.com/naturomics/CapsNet-Tensorflow.git","html_url":"https://github.com/naturomics/CapsNet-Tensorflow","description":"A Tensorflow implementation of CapsNet(Capsules Net) in paper Dynamic Routing Between Capsules","stars":3788,"forks":1137,"is_fork":false,"is_archived":false,"is_private":false,"size_kb":1629,"primary_language":"Python","license_spdx":"Apache-2.0","created_at":"2017-10-28T04:20:36Z","pushed_at":"2018-12-22T06:28:34Z","security_policy_url":null,"distribution":{"owner_created_at":"2016-05-18T11:14:48Z","owner_type":"User","release_assets":[]}},"commit_sha":"5b464caab361ec402c1b17acb9bc2680e5fbb7de","profile":{"lines_by_language":{"Python":983},"files_by_category":{"other":10,"source":8,"binary":6,"docs":4,"config":1},"source_lines":983,"test_lines":0},"pillars":{"ai_provenance":{"score":0.0,"confidence":0.65,"coverage":1.0,"label":"none-detected","breakdown":{"attributed_share":0.0,"suspected_share":0.0,"estimated_share":0.0,"ai_artifacts":0.0,"flagged_work_units":0.0,"flagged_releases":null},"summary":"No AI attribution or AI-consistent velocity signals detected."},"quality":{"score":44.6,"confidence":0.9,"coverage":1.0,"label":"poor","breakdown":{"complexity":100.0,"duplication":67.9,"lint":0.0,"testing":0.0,"docs":80.0,"type_safety":40.0,"process":null},"summary":"Code quality is poor: test-to-source ratio 0.00, no CI test run detected; 0% of function code in complex or long functions; 6% duplicated lines. Weakest area: lint."},"security":{"score":78.8,"confidence":0.85,"coverage":1.0,"label":"adequate","breakdown":{"secrets":100.0,"sast":91.6,"dependencies":null,"ci_actions":null,"posture":0.0,"scorecard":null},"summary":"Security posture is adequate: no high-impact findings. Weakest area: posture."}},"analyzer_results":[{"analyzer":"sec-scorecard","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":"no published OpenSSF Scorecard result for this repo"},{"analyzer":"sec-registry","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":"no registry dependencies declared"},{"analyzer":"ai-attribution","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"commits":128.0,"attributed_commits":0.0,"attributed_commit_share":0.0,"effective_loc":2593.0,"attributed_loc":0.0,"attributed_loc_share":0.0,"tools_detected":0.0},"findings":[],"evidence":[],"data":{"attributed_loc_by_commit":{},"tools":{},"monthly":{"2017-10":{"loc":638,"attributed_loc":0},"2017-11":{"loc":1572,"attributed_loc":0},"2017-12":{"loc":269,"attributed_loc":0},"2018-01":{"loc":1,"attributed_loc":0},"2018-02":{"loc":50,"attributed_loc":0},"2018-03":{"loc":1,"attributed_loc":0},"2018-09":{"loc":62,"attributed_loc":0}}},"error":null},{"analyzer":"ai-artifacts","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"artifacts":0.0,"workflow_agents":0.0,"tools_configured":0.0},"findings":[],"evidence":[],"data":{"artifacts":[],"workflows":[],"tools":[]},"error":null},{"analyzer":"ai-velocity","pillar":"ai_provenance","status":"ok","tool_version":"prov-4","metrics":{"work_units":51.0,"flagged_units":0.0,"pre_ai_era_bursts":0.0,"pre_ai_era_measured_loc":2593.0,"pre_ai_era_burst_loc":0.0,"measured_loc":2593.0,"flagged_loc":0.0,"flagged_loc_share":0.0,"max_loc_per_hour":203.75,"median_loc_per_hour":35.395791583166336,"pr_timed_units":0.0,"excluded_import_loc":0.0},"findings":[],"evidence":[],"data":{"flagged_loc_by_commit":{},"excluded_import_commits":[]},"error":null},{"analyzer":"ai-release-velocity","pillar":"ai_provenance","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"ai-stylometry","pillar":"ai_provenance","status":"ok","tool_version":null,"metrics":{"lines_scanned":983.0,"index":0.0,"count:narrated_steps":0.0,"per_kloc:narrated_steps":0.0,"files:narrated_steps":0.0,"count:placeholder":0.0,"per_kloc:placeholder":0.0,"files:placeholder":0.0,"count:emoji_in_code":0.0,"per_kloc:emoji_in_code":0.0,"files:emoji_in_code":0.0,"count:assistant_voice":0.0,"per_kloc:assistant_voice":0.0,"files:assistant_voice":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-secrets","pillar":"security","status":"ok","tool_version":"gitleaks 8.30.1","metrics":{"secrets_current":0.0,"secrets_history":0.0,"secrets_nonprod":0.0,"secrets_low_confidence":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-sast","pillar":"security","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":1.0,"findings_high":0.0,"findings_medium":1.0,"findings_low":0.0,"weighted_findings":0.25,"scanned_lines":983.0,"parse_errors":0.0},"findings":[{"rule_id":"opengrep/python.lang.security.audit.dynamic-urllib-use-detected","severity":"medium","message":"Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic value controlled by a malicious actor may allow them to read arbitrary files. Audit uses of urllib calls to ensure user data cannot control the URLs, or consider using the 'requests' library instead. [confidence low]","path":"download_data.py","line":42,"fingerprint":"python.lang.security.audit.dynamic-urllib-use-detected:download_data.py:42"}],"evidence":[],"data":{"rulesets":["python"]},"error":null},{"analyzer":"sec-deps","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-actions","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-posture","pillar":"security","status":"ok","tool_version":null,"metrics":{"check:security_policy":0.0,"check:dependency_updates":0.0,"check:signed_commits":0.0,"check:lockfiles":1.0,"signed_commit_share":0.0469,"unpinned_manifests":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-distribution","pillar":"security","status":"ok","tool_version":null,"metrics":{"signals":1.0,"binary_assets":0.0,"suspicious":0.0},"findings":[],"evidence":[{"kind":"readme-download-lure","description":"gives an archive password","ref":"README.md","url":null,"weight":0.0}],"data":{"signals":["readme-download-lure"],"suspicious":false,"unusual_traction":false,"metadata":true},"error":null},{"analyzer":"qual-complexity","pillar":"quality","status":"ok","tool_version":"lizard 1.25.1","metrics":{"functions":30.0,"function_nloc":505.0,"mean_ccn":2.87,"p90_ccn":6.0,"complex_functions":0.0,"long_functions":0.0,"many_param_functions":0.0,"risky_nloc_share":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"qual-duplication","pillar":"quality","status":"ok","tool_version":"repotrust-dup-w6","metrics":{"compared_lines":712.0,"duplicated_lines":46.0,"duplicated_share":0.0646,"files":8.0},"findings":[],"evidence":[{"kind":"duplicate-code","description":"6+ duplicated lines: utils.py:9 and utils.py:43","ref":"utils.py","url":"https://github.com/naturomics/CapsNet-Tensorflow/blob/5b464caab361ec402c1b17acb9bc2680e5fbb7de/utils.py#L9","weight":0.3}],"data":{},"error":null},{"analyzer":"qual-lint","pillar":"quality","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":31.0,"weighted_findings":55.0,"scanned_lines":983.0,"category:best-practice":24.0,"category:correctness":4.0,"category:maintainability":3.0},"findings":[{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"main.py","line":27,"fingerprint":"python.lang.best-practice.open-never-closed:main.py:27"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"main.py","line":29,"fingerprint":"python.lang.best-practice.open-never-closed:main.py:29"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"main.py","line":31,"fingerprint":"python.lang.best-practice.open-never-closed:main.py:31"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"main.py","line":38,"fingerprint":"python.lang.best-practice.open-never-closed:main.py:38"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"utils.py","line":10,"fingerprint":"python.lang.best-practice.open-never-closed:utils.py:10"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"utils.py","line":14,"fingerprint":"python.lang.best-practice.open-never-closed:utils.py:14"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"utils.py","line":29,"fingerprint":"python.lang.best-practice.open-never-closed:utils.py:29"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"utils.py","line":33,"fingerprint":"python.lang.best-practice.open-never-closed:utils.py:33"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"utils.py","line":44,"fingerprint":"python.lang.best-practice.open-never-closed:utils.py:44"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"utils.py","line":48,"fingerprint":"python.lang.best-practice.open-never-closed:utils.py:48"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"utils.py","line":63,"fingerprint":"python.lang.best-practice.open-never-closed:utils.py:63"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"utils.py","line":67,"fingerprint":"python.lang.best-practice.open-never-closed:utils.py:67"},{"rule_id":"opengrep/python.lang.maintainability.is-function-without-parentheses","severity":"medium","message":"Is \"is_training\" a function or an attribute? If it is a function, you may have meant cfg.is_training() because cfg.is_training is always true.","path":"dist_version/distributed_train.py","line":17,"fingerprint":"python.lang.maintainability.is-function-without-parentheses:dist_version/distributed_train.py:17"},{"rule_id":"opengrep/python.lang.maintainability.is-function-without-parentheses","severity":"medium","message":"Is \"is_training\" a function or an attribute? If it is a function, you may have meant cfg.is_training() because cfg.is_training is always true.","path":"main.py","line":15,"fingerprint":"python.lang.maintainability.is-function-without-parentheses:main.py:15"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"main.py","line":27,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:main.py:27"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"main.py","line":29,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:main.py:29"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"main.py","line":31,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:main.py:31"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"main.py","line":38,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:main.py:38"},{"rule_id":"opengrep/python.lang.maintainability.is-function-without-parentheses","severity":"medium","message":"Is \"is_training\" a function or an attribute? If it is a function, you may have meant cfg.is_training() because cfg.is_training is always true.","path":"main.py","line":120,"fingerprint":"python.lang.maintainability.is-function-without-parentheses:main.py:120"},{"rule_id":"opengrep/python.lang.correctness.file-object-redefined-before-close","severity":"medium","message":"Detected a file object that is redefined and never closed. This could leak file descriptors and unnecessarily consume system resources.","path":"utils.py","line":10,"fingerprint":"python.lang.correctness.file-object-redefined-before-close:utils.py:10"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"utils.py","line":10,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:utils.py:10"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"utils.py","line":14,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:utils.py:14"},{"rule_id":"opengrep/python.lang.correctness.file-object-redefined-before-close","severity":"medium","message":"Detected a file object that is redefined and never closed. This could leak file descriptors and unnecessarily consume system resources.","path":"utils.py","line":29,"fingerprint":"python.lang.correctness.file-object-redefined-before-close:utils.py:29"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"utils.py","line":29,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:utils.py:29"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"utils.py","line":33,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:utils.py:33"},{"rule_id":"opengrep/python.lang.correctness.file-object-redefined-before-close","severity":"medium","message":"Detected a file object that is redefined and never closed. This could leak file descriptors and unnecessarily consume system resources.","path":"utils.py","line":44,"fingerprint":"python.lang.correctness.file-object-redefined-before-close:utils.py:44"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"utils.py","line":44,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:utils.py:44"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"utils.py","line":48,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:utils.py:48"},{"rule_id":"opengrep/python.lang.correctness.file-object-redefined-before-close","severity":"medium","message":"Detected a file object that is redefined and never closed. This could leak file descriptors and unnecessarily consume system resources.","path":"utils.py","line":63,"fingerprint":"python.lang.correctness.file-object-redefined-before-close:utils.py:63"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"utils.py","line":63,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:utils.py:63"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"utils.py","line":67,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:utils.py:67"}],"evidence":[],"data":{},"error":null},{"analyzer":"qual-testing","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:has_tests":0.0,"check:test_ratio":0.0,"check:ci_present":0.0,"check:ci_runs_tests":0.0,"check:ci_runs_lint":0.0,"check:tests_cochange":0.0,"test_lines":0.0,"source_lines":983.0,"test_ratio":0.0,"ci_files":0.0,"cochange_share":0.0,"cochange_commits":72.0},"findings":[],"evidence":[],"data":{"test_commands":[],"lint_commands":[]},"error":null},{"analyzer":"qual-docs","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:readme":1.0,"check:license":1.0,"check:contributing":1.0,"check:changelog":0.0,"readme_lines":79.0},"findings":[],"evidence":[{"kind":"docs","description":"README.md","ref":"README.md","url":null,"weight":0.0},{"kind":"docs","description":"LICENSE","ref":"LICENSE","url":null,"weight":0.0},{"kind":"docs","description":"CONTRIBUTING.md","ref":"CONTRIBUTING.md","url":null,"weight":0.0}],"data":{},"error":null},{"analyzer":"qual-type-safety","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:strict_config":0.0,"check:low_escape_density":1.0,"escapes":0.0,"escapes_per_kloc":0.0},"findings":[],"evidence":[],"data":{},"error":null}],"flags":[]}