【Unity杂货铺】unity大杂烩~
This report presents the forensic synthetic code analysis of XINCGer/Unity3DTraining, a C# project with 9,063 GitHub stars. SynthScan v2.0 examined 296,717 lines of code across 1718 source files, recording 1169 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 4.3 places this repository in the Likely human-written 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 1169 distinct pattern matches across 13 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 | …pdate/AssetBundleDemo/Assets/Scripts/AssetBundleMgr.cs | 101 | COMMENT | |
| LOW | …e/AssetBundleFramework/Assets/Scripts/Util/JsonUtil.cs | 21 | { | COMMENT |
| LOW | …ate/AssetBundleFramework/Assets/Editor/BuildeAssets.cs | 161 | COMMENT | |
| LOW | …ate/AssetBundleFramework/Assets/Editor/BuildeAssets.cs | 181 | //static string ComputeMD5(string fileName) //计算文件的MD5,网上直接摘得 | COMMENT |
| LOW | …ate/AssetBundleFramework/Assets/Editor/BuildeAssets.cs | 201 | // }//结束计算 | COMMENT |
| LOW | …ate/AssetBundleFramework/Assets/Editor/BuildeAssets.cs | 221 | // calculator.Clear(); | COMMENT |
| LOW | HotUpdate/uLuaDemo/Assets/ToLua/Editor/ToLuaExport.cs | 3561 | //{ | COMMENT |
| LOW | …Update/uLuaDemo/Assets/Editor/Custom/CustomSettings.cs | 41 | COMMENT | |
| LOW | ….4/ScriptsDll/ClassLibrary1/Properties/AssemblyInfo.cs | 21 | COMMENT | |
| LOW | …me5.4/ScriptsDll/ClassLibrary1/Scripts/UI/UIManager.cs | 21 | { | COMMENT |
| LOW | …Frame5.4/ScriptsDll/ClassLibrary1/Scripts/UI/UIBase.cs | 21 | void CheckUI(); | COMMENT |
| LOW | …riptsDll/ClassLibrary1/Scripts/Common/SourceManager.cs | 121 | /// 从保存的容器中获取资源包 | COMMENT |
| LOW | …ame5.4/Assets/Demigiant/DOTweenPro/DOTweenAnimation.cs | 81 | COMMENT | |
| LOW | …ame5.4/Assets/Demigiant/DOTweenPro/DOTweenAnimation.cs | 101 | // c = this.GetComponent<RectTransform>(); | COMMENT |
| LOW | …ame5.4/Assets/Demigiant/DOTweenPro/DOTweenAnimation.cs | 141 | else if (t.IsSameOrSubclassOf(typeof(tk2dBaseSprite))) tween = ((tk2dBaseSprite)target).DOColor(endValue | COMMENT |
| LOW | …ame5.4/Assets/Demigiant/DOTweenPro/DOTweenAnimation.cs | 161 | #endif | COMMENT |
| LOW | …ame5.4/Assets/Demigiant/DOTweenPro/DOTweenAnimation.cs | 201 | // c = this.GetComponent<TextMeshPro>(); | COMMENT |
| LOW | …ame5.4/Assets/Demigiant/DOTweenPro/DOTweenAnimation.cs | 221 | // } | COMMENT |
| LOW | …ame5.4/Assets/Demigiant/DOTweenPro/DOTweenAnimation.cs | 241 | else if (t.IsSameOrSubclassOf(typeof(tk2dTextMesh))) tween = ((tk2dTextMesh)target).DOText(endValueStrin | COMMENT |
| LOW | …mo/demo/Assets/AssetBundleSample/Scripts/LoadAssets.cs | 21 | // Initialize the downloading URL. | COMMENT |
| LOW | …/demo/Assets/AssetBundleSample/Scripts/LoadVariants.cs | 81 | // If ODR is available and enabled, then use it and let Xcode handle download requests. | COMMENT |
| LOW | …undleDemo/AssetBundleServer/Properties/AssemblyInfo.cs | 21 | COMMENT | |
| LOW | Fruit_Ninja/Assets/Scripts/MouseController.cs | 21 | private bool isMouseDown = false; | COMMENT |
| LOW | …nsion/MultiEditorWindow/Assets/Editor/RepeateWindow.cs | 21 | //刷新界面偏移量 | COMMENT |
| LOW | …gOpenGL/LearnOpenGLDemo/LearnOpenGLDemo/Classes/glad.c | 21 | COMMENT | |
| LOW | …gOpenGL/LearnOpenGLDemo/LearnOpenGLDemo/Classes/glad.c | 41 | #elif _MSC_VER >= 1700 && !_USING_V110_SDK71_ | COMMENT |
| LOW | …nGLDemo/Classes/1_gettting_started/Transformations.cpp | 1 | #define TRANSFORMATION_01_H | COMMENT |
| LOW | …penGLDemo/Classes/1_gettting_started/Coordinate_01.cpp | 1 | #define COORDINATE_001_H | COMMENT |
| LOW | …penGLDemo/Classes/1_gettting_started/UseCameraDemo.cpp | 1 | //#define USECAMERA_H | COMMENT |
| LOW | …penGLDemo/Classes/1_gettting_started/camera_circle.cpp | 1 | #define CAMERA_CIRCLE | COMMENT |
| LOW | …Demo/LearnOpenGLDemo/OpenGL/includes/KHR/khrplatform.h | 101 | # define KHRONOS_APICALL IMPORT_C | COMMENT |
| LOW | …LearnOpenGLDemo/OpenGL/includes/learnopengl/shader_s.h | 1 | #ifndef SHADER_H | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 201 | license: you are granted a perpetual, irrevocable license to copy, modify, | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 221 | // // ... process data if not NULL ... | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 241 | // have been output otherwise. E.g. if you set req_comp to 4, you will always | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 261 | // Paletted PNG, BMP, GIF, and PIC images are automatically depalettized. | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 281 | // | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 301 | // | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 321 | // | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 341 | // appropriately). | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 361 | // | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 401 | COMMENT | |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 441 | // | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 541 | #endif | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 561 | #define STBI_NO_PIC | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 581 | #endif | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 621 | #define STBI_NOTUSED(v) (void)(v) | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 641 | #error "Must define all or none of STBI_MALLOC, STBI_FREE, and STBI_REALLOC (or STBI_REALLOC_SIZED)." | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 661 | #if defined(__GNUC__) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET)) && !defined(__SSE2__) && !defined(STBI | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 721 | COMMENT | |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 741 | #ifdef STBI_NEON | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 921 | { | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 1001 | #define stbi__err(x,y) 0 | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 1041 | #ifndef STBI_NO_PNG | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 1521 | COMMENT | |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 1701 | // - doesn't allow partial loading, loading multiple at once | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 3761 | // public domain zlib decode v0.2 Sean Barrett 2006-11-18 | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 4221 | a.zbuffer = (stbi_uc *)ibuffer; | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 5701 | // Make sure the depth is 8 bits. | COMMENT |
| LOW | …earnOpenGLDemo/OpenGL/includes/learnopengl/stb_image.h | 6821 | COMMENT | |
| 1066 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …setBundleFrame5.4/Assets/Demigiant/DOTween/DOTween.XML | 2060 | <member name="M:DG.Tweening.Core.Easing.Bounce.EaseIn(System.Single,System.Single,System.Single,System.Single)"> | CODE |
| CRITICAL | …setBundleFrame5.4/Assets/Demigiant/DOTween/DOTween.XML | 2076 | <member name="M:DG.Tweening.Core.Easing.Bounce.EaseOut(System.Single,System.Single,System.Single,System.Single)" | CODE |
| CRITICAL | …setBundleFrame5.4/Assets/Demigiant/DOTween/DOTween.XML | 2092 | <member name="M:DG.Tweening.Core.Easing.Bounce.EaseInOut(System.Single,System.Single,System.Single,System.Single | CODE |
| CRITICAL | …setBundleFrame5.4/Assets/Demigiant/DOTween/DOTween.XML | 2158 | <member name="M:DG.Tweening.Core.Easing.EaseManager.Evaluate(DG.Tweening.Tween,System.Single,System.Single,Syste | CODE |
| CRITICAL | …setBundleFrame5.4/Assets/Demigiant/DOTween/DOTween.XML | 2163 | <member name="M:DG.Tweening.Core.Easing.EaseManager.Evaluate(DG.Tweening.Ease,DG.Tweening.EaseFunction,System.Si | CODE |
| CRITICAL | …setBundleFrame5.4/Assets/Demigiant/DOTween/DOTween.XML | 2178 | <member name="M:DG.Tweening.Plugins.Core.PathCore.Path.GetPoint(System.Single,System.Boolean)"> | CODE |
| CRITICAL | …ng/DoTweenProject/Assets/Demigiant/DOTween/DOTween.XML | 2060 | <member name="M:DG.Tweening.Core.Easing.Bounce.EaseIn(System.Single,System.Single,System.Single,System.Single)"> | CODE |
| CRITICAL | …ng/DoTweenProject/Assets/Demigiant/DOTween/DOTween.XML | 2076 | <member name="M:DG.Tweening.Core.Easing.Bounce.EaseOut(System.Single,System.Single,System.Single,System.Single)" | CODE |
| CRITICAL | …ng/DoTweenProject/Assets/Demigiant/DOTween/DOTween.XML | 2092 | <member name="M:DG.Tweening.Core.Easing.Bounce.EaseInOut(System.Single,System.Single,System.Single,System.Single | CODE |
| CRITICAL | …ng/DoTweenProject/Assets/Demigiant/DOTween/DOTween.XML | 2158 | <member name="M:DG.Tweening.Core.Easing.EaseManager.Evaluate(DG.Tweening.Tween,System.Single,System.Single,Syste | CODE |
| CRITICAL | …ng/DoTweenProject/Assets/Demigiant/DOTween/DOTween.XML | 2163 | <member name="M:DG.Tweening.Core.Easing.EaseManager.Evaluate(DG.Tweening.Ease,DG.Tweening.EaseFunction,System.Si | CODE |
| CRITICAL | …ng/DoTweenProject/Assets/Demigiant/DOTween/DOTween.XML | 2178 | <member name="M:DG.Tweening.Plugins.Core.PathCore.Path.GetPoint(System.Single,System.Boolean)"> | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ts/Scripts/Socket/ProtocalData/protocal_loginserver.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …esources/SampleSocket/ProtoGen/protocal_loginserver.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | SomeTest/WinFormMVP/Properties/Settings.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | SomeTest/WinFormMVP/Properties/Resources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …mand/UnDoReDoByCommand/Properties/Settings.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | XlsxTools/xls2csv/xls2csv.py | 75 | def open_excel(file= 'file.xls'): | CODE |
| LOW | XlsxTools/xls2csv/xls2csv_3.0.py | 84 | except Exception as e: | CODE |
| MEDIUM | XlsxTools/xls2csv/xls2csv_3.0.py | 80 | def open_excel(file= 'file.xls'): | CODE |
| LOW | XlsxTools/xls2json/Tools/xls2json.py | 93 | except Exception as e: | CODE |
| LOW | XlsxTools/xls2json/Tools/xls2json.py | 146 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …entTraining/Assets/NGUI/Scripts/Internal/UIGeometry.cs | 66 | /// Step 1: Prepare to fill the buffers -- make them clean and valid. | COMMENT |
| LOW | …entTraining/Assets/NGUI/Scripts/Internal/UIGeometry.cs | 78 | /// Step 2: Transform the vertices by the provided matrix. | COMMENT |
| LOW | …entTraining/Assets/NGUI/Scripts/Internal/UIGeometry.cs | 100 | /// Step 3: Fill the specified buffer using the transformed values. | COMMENT |
| LOW | …ventTraining/Assets/NGUI/Scripts/Interaction/UIGrid.cs | 190 | // NOTE: This functionality is effectively removed until Unity 4.6. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | XlsxTools/xls2json/Tools/xls2json.py | 249 | def create_single_table_mapping_content(file_name): | CODE |
| LOW | SomeTest/ColaPlus/ColaPlus.lua | 327 | local function checkMethodParamAndMakeList (paramCount, paramList, methodName, errorLevel) | CODE |
| LOW | SomeTest/ColaPlus/ColaPlus.lua | 396 | local function checkMethodOverrideSignature (signatureBase, signatureOverride, methodType, methodName, errLevel) | CODE |
| LOW | SomeTest/ColaPlus/ColaPlus.lua | 458 | local function isTypeTableForwardDeclared (typeTable) | CODE |
| LOW | SomeTest/ColaPlus/ColaPlus.lua | 529 | local function createEmptyFunctionWrapper () | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | XlsxTools/xls2json/Tools/xls2json.py | 270 | content = content + "\n\t\t{file_name} {lower_file_name}Data = null;" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …etbundleDemo/demo/Assets/AssetBundleManager/Utility.cs | 42 | // If you add more targets, don't forget to add the same platforms to GetPlatformForAssetBundles(Runtime | COMMENT |
| LOW | …etbundleDemo/demo/Assets/AssetBundleManager/Utility.cs | 68 | // If you add more targets, don't forget to add the same platforms to GetPlatformForAssetBundles(Runtime | COMMENT |
| LOW | …EventTraining/Assets/NGUI/Scripts/Internal/UIWidget.cs | 493 | /// Widget's center in local coordinates. Don't forget to transform by the widget's transform. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …entTraining/Assets/NGUI/Scripts/Internal/UIGeometry.cs | 66 | /// Step 1: Prepare to fill the buffers -- make them clean and valid. | COMMENT |
| LOW | …entTraining/Assets/NGUI/Scripts/Internal/UIGeometry.cs | 78 | /// Step 2: Transform the vertices by the provided matrix. | COMMENT |
| LOW | …entTraining/Assets/NGUI/Scripts/Internal/UIGeometry.cs | 100 | /// Step 3: Fill the specified buffer using the transformed values. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AI/README.md | 49 | ### RAG | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | XlsxTools/xls2json/Tools/xls2json.py | 87 | CODE | |
| LOW | XlsxTools/xls2json/Tools/xls2json.py | 121 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …Protobuff/Assets/Plugins/Google.Protobuf/JsonParser.cs | 549 | var token = tokenizer.Next(); // Definitely start-object; checked in previous method | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | XlsxTools/xls2json/Tools/xls2json.py | 4 | CODE |