A modern layer 7 load balancer from baidu
This report presents the forensic synthetic code analysis of bfenetworks/bfe, a Go project with 6,260 GitHub stars. SynthScan v2.0 examined 150,238 lines of code across 976 source files, recording 740 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 5.1 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 740 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pre-commit-config.yaml | 1 | # Copyright 2021 The BFE Authors | COMMENT |
| LOW | .goreleaser.yml | 1 | # Copyright 2021 The BFE Authors | COMMENT |
| LOW | .licenserc.yaml | 1 | # Copyright (c) 2021 The BFE Authors. | COMMENT |
| LOW | release_local.sh | 1 | #! /bin/bash | COMMENT |
| LOW | bfe.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | .travis.yml | 1 | # Copyright 2021 The BFE Authors | COMMENT |
| LOW | revive.toml | 1 | # Copyright (c) 2022 The BFE Authors. | COMMENT |
| LOW | …bfe_tls_conf/server_cert_conf/server_cert_conf_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …/bfe_tls_conf/tls_rule_conf/tls_rule_conf_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …onfig/bfe_tls_conf/tls_rule_conf/tls_rule_conf_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …onfig/bfe_tls_conf/tls_rule_conf/tls_rule_conf_load.go | 41 | // Notes about `NextProtos`: | COMMENT |
| LOW | …onfig/bfe_tls_conf/tls_rule_conf/tls_rule_conf_load.go | 61 | // + valid isw should be [65535, 262144] for current implemention | COMMENT |
| LOW | …onf/session_ticket_key_conf/session_ticket_key_conf.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …ession_ticket_key_conf/session_ticket_key_conf_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_session_cache_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/bfe_config_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_session_ticket_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_session_ticket.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_https_basic_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_basic.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/bfe_config_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_https_basic.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_basic_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_conf/conf_session_cache.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …nfig/bfe_cluster_conf/gslb_conf/gslb_conf_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_config/bfe_cluster_conf/gslb_conf/gslb_conf_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …fe_cluster_conf/cluster_conf/cluster_conf_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …fig/bfe_cluster_conf/cluster_conf/cluster_conf_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …ter_conf/cluster_table_conf/cluster_table_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …_cluster_conf/cluster_table_conf/cluster_table_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …_config/bfe_route_conf/vip_rule_conf/vip_table_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …ig/bfe_route_conf/vip_rule_conf/vip_table_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …onfig/bfe_route_conf/host_rule_conf/host_table_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …/bfe_route_conf/host_rule_conf/host_table_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …fe_route_conf/route_rule_conf/route_table_load_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …bfe_route_conf/route_rule_conf/basic_rule_tree_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …fig/bfe_route_conf/route_rule_conf/route_table_load.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …nfig/bfe_route_conf/route_rule_conf/basic_rule_tree.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | …nfig/bfe_route_conf/route_rule_conf/basic_rule_tree.go | 121 | //exact match firstly | COMMENT |
| LOW | bfe_wasmplugin/adapter.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/filter.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/plugin.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/engine.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/abi/registry.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/abi/proxywasm010/factory.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/abi/proxywasm010/imports.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_wasmplugin/abi/proxywasm010/shim.go | 1 | // Copyright (c) 2024 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/header.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/textproto.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/textproto.go | 21 | // | COMMENT |
| LOW | bfe_net/textproto/textproto.go | 101 | return nil, err | COMMENT |
| LOW | bfe_net/textproto/writer_test.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/header_test.go | 1 | // Copyright (c) 2021 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/writer.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/pipeline.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/pipeline.go | 21 | import ( | COMMENT |
| LOW | bfe_net/textproto/reader.go | 1 | // Copyright (c) 2019 The BFE Authors. | COMMENT |
| LOW | bfe_net/textproto/reader.go | 81 | } | COMMENT |
| LOW | bfe_net/textproto/reader.go | 221 | return | COMMENT |
| LOW | bfe_net/textproto/reader.go | 241 | if err == nil && continued { | COMMENT |
| 656 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 104 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 173 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 232 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 276 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 377 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 400 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 455 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 478 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 516 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 545 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 575 | // TODO: Add test cases. | COMMENT |
| LOW | …_modules/mod_session_sticky/mod_session_sticky_test.go | 621 | // TODO: Add test cases. | COMMENT |
| LOW | …e_modules/mod_session_sticky/product_rule_load_test.go | 31 | // TODO: Add test cases. | COMMENT |
| LOW | bfe_http2/server.go | 100 | // TODO: implement | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 21 | # --------------------------------- | COMMENT |
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 31 | # --------------------------------- | COMMENT |
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 51 | # --------------------------------- | COMMENT |
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 73 | # --------------------------------- | COMMENT |
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 86 | # --------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/kubernetes/mysql-deploy.yaml | 16 | # This file contains all MySQL-related Kubernetes resources: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/kubernetes/api-server-configmap.yaml | 89 | # you can use "Skip {role_name} as authorization header to access api server if open this optional | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bfe_modules/mod_markdown/testdata/testcase1.md | 77 | 1. Lorem ipsum dolor sit amet | CODE |
| LOW | bfe_modules/mod_markdown/testdata/testcase1.md | 77 | 1. Lorem ipsum dolor sit amet | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/zh_cn/modules/mod_unified_waf/bfe_waf_demo.md | 31 | class MyHttpRequestHandler(http.server.SimpleHTTPRequestHandler): | CODE |