baidu/bfs
The Baidu File System.
- Repository: https://github.com/baidu/bfs
- Commit:
de71a4601c276953d37fb84b908c9af8b25b26c1 - Generated: 2026-11-13T23:41:15+00:00
- Scorer 0.1.0, scoring prov-4+qual-2+sec-2, report schema v2
Scores
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 0 | none-detected | 65% | 100% |
| Code quality | 58 | weak | 90% | 100% |
| Security | 82 | adequate | 85% | 100% |
AI provenance
No AI attribution or AI-consistent velocity signals detected.
-
Explicitly attributed share (lower bound): 0.0%
-
Unattributed share in AI-consistent velocity bursts: 0.0%
-
Estimated AI-generated share: 0.0%
-
Stylometry index: 0.11 per 1,000 lines (narrated steps 2, placeholders 0, assistant phrasing 0, emoji 0). Reported as a signal, not scored.
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2016-09 | 1,223 | 0% |
| 2016-10 | 1,717 | 0% |
| 2016-11 | 1,263 | 0% |
| 2016-12 | 2,392 | 0% |
| 2017-01 | 619 | 0% |
| 2017-02 | 1,726 | 0% |
| 2017-03 | 915 | 0% |
| 2017-04 | 1 | 0% |
| 2017-05 | 3 | 0% |
| 2017-06 | 66 | 0% |
| 2017-08 | 31 | 0% |
| 2018-11 | 2 | 0% |
Evidence
- step-by-step narration comment: # Now we can list a nonexistent item (cluster/smal)
- step-by-step narration comment: # Now we can list a nonexistent item (sandbox/smal)
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is weak: test-to-source ratio 0.17, CI runs tests; 12% of function code in complex or long functions; 12% duplicated lines. Weakest area: lint.
| Area | Score |
|---|---|
| Complexity (lizard) | 71 |
| Duplication | 50 |
| Code smells (Opengrep) | 36 |
| Tests and CI | 68 |
| Documentation | 65 |
| Type safety | 40 |
| Process (Scorecard review/maintenance) | n/a |
- Functions: 655; mean complexity 3.6, 90th percentile 9; 11 complex and 5 long functions
- Duplicated lines: 11.5% of 13,584 compared
- Tests: 3,119 test lines for 17,860 source lines (ratio 0.17); CI test commands: make test, make check; 10% of recent source commits also change tests
- Docs missing or thin: contributing, changelog
Most complex functions:
- baidu::bfs::NameServerImpl::WebService in src/nameserver/nameserver_impl.cc: complexity 67, 358 lines
- baidu::bfs::FileImpl::Pread in src/sdk/file_impl.cc: complexity 29, 124 lines
- baidu::bfs::FileImpl::Sync in src/sdk/file_impl.cc: complexity 23, 60 lines
- main in src/client/bfs_client.cc: complexity 21, 56 lines
- baidu::bfs::ChunkServerManager::GetRecoverChains in src/nameserver/chunkserver_manager.cc: complexity 21, 68 lines
Security
Security posture is adequate: no high-impact findings. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 100 |
| Vulnerable dependencies (OSV) | n/a |
| CI workflows (zizmor) | n/a |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | n/a |
- Posture checks passed: lockfiles; missing: security policy, dependency updates, signed commits
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 17,860; test lines: 3,119
| Language | Lines |
|---|---|
| C++ | 16,098 |
| C | 2,771 |
| Shell | 1,147 |
| Python | 963 |