{"schema_version":"2","scorer_version":"0.1.0","scoring_version":"prov-4+qual-2+sec-2","generated_at":"2026-11-13T23:26:25.001117Z","repo":{"ref":{"host":"github.com","owner":"feixiao","name":"Distributed-Systems"},"default_branch":"master","clone_url":"https://github.com/feixiao/Distributed-Systems.git","html_url":"https://github.com/feixiao/Distributed-Systems","description":"MIT课程《Distributed Systems 》学习和翻译","stars":2756,"forks":650,"is_fork":false,"is_archived":false,"is_private":false,"size_kb":24595,"primary_language":"Go","license_spdx":null,"created_at":"2016-06-16T14:09:53Z","pushed_at":"2020-02-08T11:51:43Z","security_policy_url":null,"distribution":{"owner_created_at":"2013-08-07T04:51:41Z","owner_type":"User","release_assets":[]}},"commit_sha":"3aba6d5eacdf18c25b661c914accf17106cd9f9d","profile":{"lines_by_language":{"Go":15527,"Shell":43},"files_by_category":{"source":60,"docs":42,"binary":16,"test":14,"oversized":10,"other":3,"config":2},"source_lines":6677,"test_lines":8893},"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":60.8,"confidence":0.9,"coverage":1.0,"label":"weak","breakdown":{"complexity":95.5,"duplication":19.1,"lint":92.8,"testing":55.0,"docs":20.0,"type_safety":null,"process":null},"summary":"Code quality is weak: test-to-source ratio 1.33, no CI test run detected; 2% of function code in complex or long functions; 28% duplicated lines. Weakest area: duplication."},"security":{"score":72.0,"confidence":0.85,"coverage":1.0,"label":"adequate","breakdown":{"secrets":100.0,"sast":73.0,"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":110.0,"attributed_commits":0.0,"attributed_commit_share":0.0,"effective_loc":31062.0,"attributed_loc":0.0,"attributed_loc_share":0.0,"tools_detected":0.0},"findings":[],"evidence":[],"data":{"attributed_loc_by_commit":{},"tools":{},"monthly":{"2015-01":{"loc":0,"attributed_loc":0},"2015-02":{"loc":0,"attributed_loc":0},"2015-08":{"loc":0,"attributed_loc":0},"2016-04":{"loc":0,"attributed_loc":0},"2016-06":{"loc":0,"attributed_loc":0},"2016-07":{"loc":30736,"attributed_loc":0},"2016-08":{"loc":122,"attributed_loc":0},"2016-09":{"loc":21,"attributed_loc":0},"2016-10":{"loc":41,"attributed_loc":0},"2016-11":{"loc":0,"attributed_loc":0},"2016-12":{"loc":0,"attributed_loc":0},"2017-01":{"loc":0,"attributed_loc":0},"2017-02":{"loc":137,"attributed_loc":0},"2017-03":{"loc":5,"attributed_loc":0},"2017-04":{"loc":0,"attributed_loc":0},"2017-09":{"loc":0,"attributed_loc":0},"2017-11":{"loc":0,"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":8.0,"flagged_units":0.0,"pre_ai_era_bursts":0.0,"pre_ai_era_measured_loc":326.0,"pre_ai_era_burst_loc":0.0,"measured_loc":326.0,"flagged_loc":0.0,"flagged_loc_share":0.0,"max_loc_per_hour":42.0,"median_loc_per_hour":30.5,"pr_timed_units":0.0,"excluded_import_loc":30736.0},"findings":[],"evidence":[],"data":{"flagged_loc_by_commit":{},"excluded_import_commits":["450e8d668724899e95edc0f8831d460622758f2b","4e6fa817f3b20dab888807985463165c8ca9fb53"]},"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":6677.0,"index":0.15,"count:narrated_steps":1.0,"per_kloc:narrated_steps":0.15,"files:narrated_steps":1.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":[{"kind":"stylometry:narrated_steps","description":"step-by-step narration comment: // First, it divides up the input file among the given number of mappers, and","ref":"6.824/src/mapreduce/master.go:95","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/mapreduce/master.go#L95","weight":0.0}],"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":10.0,"findings_high":0.0,"findings_medium":10.0,"findings_low":0.0,"weighted_findings":6.0,"scanned_lines":6677.0,"parse_errors":0.0},"findings":[{"rule_id":"opengrep/go.lang.security.audit.crypto.math-random-used","severity":"medium","message":"Do not use `math/rand`. Use `crypto/rand` instead. [confidence medium]","path":"6.824/src/diskv/server.go","line":15,"fingerprint":"go.lang.security.audit.crypto.math-random-used:6.824/src/diskv/server.go:15"},{"rule_id":"opengrep/go.lang.security.audit.crypto.math-random-used","severity":"medium","message":"Do not use `math/rand`. Use `crypto/rand` instead. [confidence medium]","path":"6.824/src/kvpaxos/server.go","line":13,"fingerprint":"go.lang.security.audit.crypto.math-random-used:6.824/src/kvpaxos/server.go:13"},{"rule_id":"opengrep/go.lang.security.audit.crypto.math-random-used","severity":"medium","message":"Do not use `math/rand`. Use `crypto/rand` instead. [confidence medium]","path":"6.824/src/kvraft/config.go","line":9,"fingerprint":"go.lang.security.audit.crypto.math-random-used:6.824/src/kvraft/config.go:9"},{"rule_id":"opengrep/go.lang.security.audit.crypto.math-random-used","severity":"medium","message":"Do not use `math/rand`. Use `crypto/rand` instead. [confidence medium]","path":"6.824/src/labrpc/labrpc.go","line":57,"fingerprint":"go.lang.security.audit.crypto.math-random-used:6.824/src/labrpc/labrpc.go:57"},{"rule_id":"opengrep/go.lang.security.audit.crypto.math-random-used","severity":"medium","message":"Do not use `math/rand`. Use `crypto/rand` instead. [confidence medium]","path":"6.824/src/paxos-shardkv/server.go","line":14,"fingerprint":"go.lang.security.audit.crypto.math-random-used:6.824/src/paxos-shardkv/server.go:14"},{"rule_id":"opengrep/go.lang.security.audit.crypto.math-random-used","severity":"medium","message":"Do not use `math/rand`. Use `crypto/rand` instead. [confidence medium]","path":"6.824/src/paxos-shardmaster/server.go","line":14,"fingerprint":"go.lang.security.audit.crypto.math-random-used:6.824/src/paxos-shardmaster/server.go:14"},{"rule_id":"opengrep/go.lang.security.audit.crypto.math-random-used","severity":"medium","message":"Do not use `math/rand`. Use `crypto/rand` instead. [confidence medium]","path":"6.824/src/paxos/paxos.go","line":32,"fingerprint":"go.lang.security.audit.crypto.math-random-used:6.824/src/paxos/paxos.go:32"},{"rule_id":"opengrep/go.lang.security.audit.crypto.math-random-used","severity":"medium","message":"Do not use `math/rand`. Use `crypto/rand` instead. [confidence medium]","path":"6.824/src/pbservice/server.go","line":13,"fingerprint":"go.lang.security.audit.crypto.math-random-used:6.824/src/pbservice/server.go:13"},{"rule_id":"opengrep/go.lang.security.audit.crypto.math-random-used","severity":"medium","message":"Do not use `math/rand`. Use `crypto/rand` instead. [confidence medium]","path":"6.824/src/shardkv/config.go","line":10,"fingerprint":"go.lang.security.audit.crypto.math-random-used:6.824/src/shardkv/config.go:10"},{"rule_id":"opengrep/go.lang.security.audit.crypto.math-random-used","severity":"medium","message":"Do not use `math/rand`. Use `crypto/rand` instead. [confidence medium]","path":"6.824/src/shardmaster/config.go","line":10,"fingerprint":"go.lang.security.audit.crypto.math-random-used:6.824/src/shardmaster/config.go:10"}],"evidence":[],"data":{"rulesets":["go","bash"]},"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.0091,"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":334.0,"function_nloc":3098.0,"mean_ccn":2.4,"p90_ccn":5.0,"complex_functions":1.0,"long_functions":0.0,"many_param_functions":0.0,"risky_nloc_share":0.0152},"findings":[],"evidence":[{"kind":"complex-function","description":"ProcessReq in 6.824/src/labrpc/labrpc.go: complexity 18, 47 lines","ref":"6.824/src/labrpc/labrpc.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/labrpc/labrpc.go#L197","weight":0.3}],"data":{},"error":null},{"analyzer":"qual-duplication","pillar":"quality","status":"ok","tool_version":"repotrust-dup-w6","metrics":{"compared_lines":4303.0,"duplicated_lines":1186.0,"duplicated_share":0.2756,"files":60.0},"findings":[],"evidence":[{"kind":"duplicate-code","description":"6+ duplicated lines: 6.824/src/diskv/client.go:11 and 6.824/src/paxos-shardkv/client.go:11","ref":"6.824/src/diskv/client.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/diskv/client.go#L11","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: 6.824/src/diskv/client.go:29 and 6.824/src/kvpaxos/client.go:25","ref":"6.824/src/diskv/client.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/diskv/client.go#L29","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: 6.824/src/diskv/client.go:91 and 6.824/src/diskv/client.go:128","ref":"6.824/src/diskv/client.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/diskv/client.go#L91","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: 6.824/src/diskv/common.go:4 and 6.824/src/paxos-shardkv/common.go:4","ref":"6.824/src/diskv/common.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/diskv/common.go#L4","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: 6.824/src/diskv/common.go:21 and 6.824/src/kvpaxos/common.go:13","ref":"6.824/src/diskv/common.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/diskv/common.go#L21","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: 6.824/src/diskv/server.go:21 and 6.824/src/kvpaxos/server.go:16","ref":"6.824/src/diskv/server.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/diskv/server.go#L21","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: 6.824/src/diskv/server.go:37 and 6.824/src/paxos-shardkv/server.go:34","ref":"6.824/src/diskv/server.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/diskv/server.go#L37","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: 6.824/src/kvpaxos/client.go:11 and 6.824/src/kvraft/client.go:10","ref":"6.824/src/kvpaxos/client.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/kvpaxos/client.go#L11","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: 6.824/src/kvpaxos/common.go:3 and 6.824/src/kvraft/common.go:3","ref":"6.824/src/kvpaxos/common.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/kvpaxos/common.go#L3","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: 6.824/src/kvpaxos/server.go:19 and 6.824/src/kvraft/server.go:14","ref":"6.824/src/kvpaxos/server.go","url":"https://github.com/feixiao/Distributed-Systems/blob/3aba6d5eacdf18c25b661c914accf17106cd9f9d/6.824/src/kvpaxos/server.go#L19","weight":0.3}],"data":{},"error":null},{"analyzer":"qual-lint","pillar":"quality","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":2.0,"weighted_findings":2.0,"scanned_lines":6677.0,"category:correctness":2.0},"findings":[{"rule_id":"opengrep/go.lang.correctness.permissions.incorrect-default-permission","severity":"medium","message":"Detected file permissions that are set to more than `0600` (user/owner can read and write). Setting file permissions to higher than `0600` is most likely unnecessary and violates the principle of least privilege. Instead, set permissions to be `0600` or less for os.Chmod, os.Mkdir, os.OpenFile, os.M","path":"6.824/src/diskv/server.go","line":64,"fingerprint":"go.lang.correctness.permissions.incorrect-default-permission:6.824/src/diskv/server.go:64"},{"rule_id":"opengrep/go.lang.correctness.permissions.incorrect-default-permission","severity":"medium","message":"Detected file permissions that are set to more than `0600` (user/owner can read and write). Setting file permissions to higher than `0600` is most likely unnecessary and violates the principle of least privilege. Instead, set permissions to be `0600` or less for os.Chmod, os.Mkdir, os.OpenFile, os.M","path":"6.824/src/diskv/server.go","line":98,"fingerprint":"go.lang.correctness.permissions.incorrect-default-permission:6.824/src/diskv/server.go:98"}],"evidence":[],"data":{},"error":null},{"analyzer":"qual-testing","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:has_tests":1.0,"check:test_ratio":1.0,"check:ci_present":0.0,"check:ci_runs_tests":0.0,"check:ci_runs_lint":0.0,"check:tests_cochange":1.0,"test_lines":8893.0,"source_lines":6677.0,"test_ratio":1.3319,"ci_files":0.0,"cochange_share":0.7,"cochange_commits":10.0},"findings":[],"evidence":[],"data":{"test_commands":[],"lint_commands":[]},"error":null},{"analyzer":"qual-docs","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:readme":0.5,"check:license":0.0,"check:contributing":0.0,"check:changelog":0.0,"readme_lines":10.0},"findings":[],"evidence":[{"kind":"docs","description":"README.md","ref":"README.md","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":[]}