{"schema_version":"2","scorer_version":"0.1.0","scoring_version":"prov-4+qual-2+sec-2","generated_at":"2026-11-13T23:31:49.759835Z","repo":{"ref":{"host":"github.com","owner":"antirez","name":"neural-redis"},"default_branch":"master","clone_url":"https://github.com/antirez/neural-redis.git","html_url":"https://github.com/antirez/neural-redis","description":"Neural networks module for Redis","stars":2226,"forks":100,"is_fork":false,"is_archived":false,"is_private":false,"size_kb":17078,"primary_language":"C","license_spdx":"BSD-3-Clause","created_at":"2016-09-27T20:02:52Z","pushed_at":"2018-07-23T11:39:34Z","security_policy_url":null,"distribution":{"owner_created_at":"2009-03-21T22:29:53Z","owner_type":"User","release_assets":[]}},"commit_sha":"fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d","profile":{"lines_by_language":{"C":2920,"Ruby":523},"files_by_category":{"docs":2001,"source":11,"other":6,"oversized":3,"test":3,"binary":2,"config":1},"source_lines":3282,"test_lines":161},"pillars":{"ai_provenance":{"score":0.0,"confidence":0.62,"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":55.4,"confidence":0.9,"coverage":1.0,"label":"weak","breakdown":{"complexity":38.5,"duplication":81.1,"lint":100.0,"testing":23.0,"docs":65.0,"type_safety":null,"process":null},"summary":"Code quality is weak: test-to-source ratio 0.05, no CI test run detected; 32% of function code in complex or long functions; 3% duplicated lines. Weakest area: testing."},"security":{"score":74.1,"confidence":0.85,"coverage":1.0,"label":"adequate","breakdown":{"secrets":100.0,"sast":78.7,"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":89.0,"attributed_commits":0.0,"attributed_commit_share":0.0,"effective_loc":4175.0,"attributed_loc":0.0,"attributed_loc_share":0.0,"tools_detected":0.0},"findings":[],"evidence":[],"data":{"attributed_loc_by_commit":{},"tools":{},"monthly":{"2016-09":{"loc":2806,"attributed_loc":0},"2016-10":{"loc":1195,"attributed_loc":0},"2016-12":{"loc":41,"attributed_loc":0},"2018-06":{"loc":133,"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":42.0,"flagged_units":0.0,"pre_ai_era_bursts":0.0,"pre_ai_era_measured_loc":4175.0,"pre_ai_era_burst_loc":0.0,"measured_loc":4175.0,"flagged_loc":0.0,"flagged_loc_share":0.0,"max_loc_per_hour":351.0,"median_loc_per_hour":39.52538541307631,"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":3282.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":9.0,"findings_high":0.0,"findings_medium":9.0,"findings_low":0.0,"weighted_findings":2.25,"scanned_lines":3282.0,"parse_errors":0.0},"findings":[{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"When handling sensitive information in a buffer, it's important to ensure  that the data is securely erased before the buffer is deleted or reused.  While `memset()` is commonly used for this purpose, it can leave sensitive  information behind due to compiler optimizations or other factors.  To avoi [confidence low]","path":"neuralredis.c","line":871,"fingerprint":"c.lang.security.insecure-use-memset:neuralredis.c:871"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"When handling sensitive information in a buffer, it's important to ensure  that the data is securely erased before the buffer is deleted or reused.  While `memset()` is commonly used for this purpose, it can leave sensitive  information behind due to compiler optimizations or other factors.  To avoi [confidence low]","path":"nn.c","line":229,"fingerprint":"c.lang.security.insecure-use-memset:nn.c:229"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"When handling sensitive information in a buffer, it's important to ensure  that the data is securely erased before the buffer is deleted or reused.  While `memset()` is commonly used for this purpose, it can leave sensitive  information behind due to compiler optimizations or other factors.  To avoi [confidence low]","path":"nn.c","line":230,"fingerprint":"c.lang.security.insecure-use-memset:nn.c:230"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"When handling sensitive information in a buffer, it's important to ensure  that the data is securely erased before the buffer is deleted or reused.  While `memset()` is commonly used for this purpose, it can leave sensitive  information behind due to compiler optimizations or other factors.  To avoi [confidence low]","path":"nn.c","line":232,"fingerprint":"c.lang.security.insecure-use-memset:nn.c:232"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"When handling sensitive information in a buffer, it's important to ensure  that the data is securely erased before the buffer is deleted or reused.  While `memset()` is commonly used for this purpose, it can leave sensitive  information behind due to compiler optimizations or other factors.  To avoi [confidence low]","path":"nn.c","line":234,"fingerprint":"c.lang.security.insecure-use-memset:nn.c:234"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"When handling sensitive information in a buffer, it's important to ensure  that the data is securely erased before the buffer is deleted or reused.  While `memset()` is commonly used for this purpose, it can leave sensitive  information behind due to compiler optimizations or other factors.  To avoi [confidence low]","path":"nn.c","line":236,"fingerprint":"c.lang.security.insecure-use-memset:nn.c:236"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"When handling sensitive information in a buffer, it's important to ensure  that the data is securely erased before the buffer is deleted or reused.  While `memset()` is commonly used for this purpose, it can leave sensitive  information behind due to compiler optimizations or other factors.  To avoi [confidence low]","path":"nn.c","line":238,"fingerprint":"c.lang.security.insecure-use-memset:nn.c:238"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"When handling sensitive information in a buffer, it's important to ensure  that the data is securely erased before the buffer is deleted or reused.  While `memset()` is commonly used for this purpose, it can leave sensitive  information behind due to compiler optimizations or other factors.  To avoi [confidence low]","path":"nn.c","line":240,"fingerprint":"c.lang.security.insecure-use-memset:nn.c:240"},{"rule_id":"opengrep/c.lang.security.insecure-use-memset","severity":"medium","message":"When handling sensitive information in a buffer, it's important to ensure  that the data is securely erased before the buffer is deleted or reused.  While `memset()` is commonly used for this purpose, it can leave sensitive  information behind due to compiler optimizations or other factors.  To avoi [confidence low]","path":"nn.c","line":700,"fingerprint":"c.lang.security.insecure-use-memset:nn.c:700"}],"evidence":[],"data":{"rulesets":["c","ruby"]},"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.0,"unpinned_manifests":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-distribution","pillar":"security","status":"ok","tool_version":null,"metrics":{"signals":0.0,"binary_assets":0.0,"suspicious":0.0},"findings":[],"evidence":[],"data":{"signals":[],"suspicious":false,"unusual_traction":false,"metadata":true},"error":null},{"analyzer":"qual-complexity","pillar":"quality","status":"ok","tool_version":"lizard 1.25.1","metrics":{"functions":82.0,"function_nloc":1817.0,"mean_ccn":5.22,"p90_ccn":12.0,"complex_functions":6.0,"long_functions":2.0,"many_param_functions":0.0,"risky_nloc_share":0.3181},"findings":[],"evidence":[{"kind":"complex-function","description":"NRTrainingThreadMain in neuralredis.c: complexity 54, 151 lines","ref":"neuralredis.c","url":"https://github.com/antirez/neural-redis/blob/fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d/neuralredis.c#L332","weight":0.9},{"kind":"complex-function","description":"AnnPrint in nn.c: complexity 22, 71 lines","ref":"nn.c","url":"https://github.com/antirez/neural-redis/blob/fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d/nn.c#L438","weight":0.36666666666666664},{"kind":"complex-function","description":"NRCreate_RedisCommand in neuralredis.c: complexity 19, 78 lines","ref":"neuralredis.c","url":"https://github.com/antirez/neural-redis/blob/fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d/neuralredis.c#L638","weight":0.31666666666666665},{"kind":"complex-function","description":"AnnInitLayer in nn.c: complexity 17, 46 lines","ref":"nn.c","url":"https://github.com/antirez/neural-redis/blob/fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d/nn.c#L198","weight":0.2833333333333333},{"kind":"complex-function","description":"NRObserve_RedisCommand in neuralredis.c: complexity 16, 69 lines","ref":"neuralredis.c","url":"https://github.com/antirez/neural-redis/blob/fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d/neuralredis.c#L808","weight":0.26666666666666666},{"kind":"complex-function","description":"NRTrain_RedisCommand in neuralredis.c: complexity 16, 55 lines","ref":"neuralredis.c","url":"https://github.com/antirez/neural-redis/blob/fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d/neuralredis.c#L890","weight":0.26666666666666666},{"kind":"complex-function","description":"RedisModule_Init in redismodule.h: complexity 1, 108 lines","ref":"redismodule.h","url":"https://github.com/antirez/neural-redis/blob/fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d/redismodule.h#L220","weight":0.016666666666666666}],"data":{},"error":null},{"analyzer":"qual-duplication","pillar":"quality","status":"ok","tool_version":"repotrust-dup-w6","metrics":{"compared_lines":2553.0,"duplicated_lines":89.0,"duplicated_share":0.0349,"files":11.0},"findings":[],"evidence":[{"kind":"duplicate-code","description":"6+ duplicated lines: examples/banking.rb:75 and examples/mnist-load-data.rb:38","ref":"examples/banking.rb","url":"https://github.com/antirez/neural-redis/blob/fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d/examples/banking.rb#L75","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: neuralredis.c:9 and nn.c:5","ref":"neuralredis.c","url":"https://github.com/antirez/neural-redis/blob/fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d/neuralredis.c#L9","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: nn.c:1 and nn.h:1","ref":"nn.c","url":"https://github.com/antirez/neural-redis/blob/fef3d1be51df90ae249c1a8a32bbc87ead4bfe1d/nn.c#L1","weight":0.3}],"data":{},"error":null},{"analyzer":"qual-lint","pillar":"quality","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":0.0,"weighted_findings":0.0,"scanned_lines":3282.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"qual-testing","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:has_tests":1.0,"check:test_ratio":0.0981,"check:ci_present":0.0,"check:ci_runs_tests":0.0,"check:ci_runs_lint":0.0,"check:tests_cochange":0.0597,"test_lines":161.0,"source_lines":3282.0,"test_ratio":0.0491,"ci_files":0.0,"cochange_share":0.0149,"cochange_commits":67.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":0.0,"check:changelog":0.0,"readme_lines":795.0},"findings":[],"evidence":[{"kind":"docs","description":"README.md","ref":"README.md","url":null,"weight":0.0},{"kind":"docs","description":"COPYING","ref":"COPYING","url":null,"weight":0.0}],"data":{},"error":null},{"analyzer":"qual-type-safety","pillar":"quality","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null}],"flags":[]}