Repository Analysis

google/flatbuffers

FlatBuffers: Memory Efficient Serialization Library

4.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of google/flatbuffers, a C++ project with 26,221 GitHub stars. SynthScan v2.0 examined 323,319 lines of code across 1503 source files, recording 731 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 4.5 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).

4.5
Adjusted Score
4.5
Raw Score
100%
Time Factor
2026-06-22
Last Push
26.2K
Stars
C++
Language
323.3K
Lines of Code
1.5K
Files
731
Pattern Hits
2026-07-14
Scan Date
0.05
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

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.

CRITICAL 46HIGH 36MEDIUM 48LOW 601

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 731 distinct pattern matches across 11 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.

Hallucination Indicators46 hits · 655 pts
SeverityFileLineSnippetContext
CRITICALtests/py_test.py2970 MyGame.Example.NestedUnion.NestedUnionTest.NestedUnionTest.GetRootAs(CODE
CRITICALtests/py_test.py2975 MyGame.Example.NestedUnion.NestedUnionTest.NestedUnionTestT.InitFromObj(CODE
CRITICALtests/py_test.py2990 nestUnionDecodeTFromBuf = MyGame.Example.NestedUnion.NestedUnionTest.NestedUnionTestT.InitFromPackedBuf(CODE
CRITICALtests/py_test.py3008 nestUnionDecodeTFromBuf2 = MyGame.Example.NestedUnion.NestedUnionTest.NestedUnionTestT.InitFromPackedBuf(CODE
CRITICALtests/MyGame/Example/NestedUnion/Any.py16 return MyGame.Example.NestedUnion.Vec3.Vec3T.InitFromBuf(table.Bytes, table.Pos)CODE
CRITICALtests/MyGame/Example/NestedUnion/Any.py19 return MyGame.Example.NestedUnion.TestSimpleTableWithEnum.TestSimpleTableWithEnumT.InitFromBuf(table.Bytes, tablCODE
CRITICALtests/MyGame/Example/NestedUnion/Vec3.py175 self.test3 = MyGame.Example.NestedUnion.Test.TestT.InitFromObj(vec3.Test3())CODE
CRITICAL…in/java/com/google/flatbuffers/reflection/EnumVal.java42 public com.google.flatbuffers.reflection.KeyValue attributesByKey(String key) { int o = __offset(14); return o != 0 ? CODE
CRITICAL…in/java/com/google/flatbuffers/reflection/EnumVal.java43 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, StriCODE
CRITICAL…in/java/com/google/flatbuffers/reflection/EnumVal.java44 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.fCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java33 public com.google.flatbuffers.reflection.Object objectsByKey(String key) { int o = __offset(4); return o != 0 ? com.goCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java34 public com.google.flatbuffers.reflection.Object objectsByKey(com.google.flatbuffers.reflection.Object obj, String key)CODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java35 public com.google.flatbuffers.reflection.Object.Vector objectsVector() { return objectsVector(new com.google.flatbuffeCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java40 public com.google.flatbuffers.reflection.Enum enumsByKey(String key) { int o = __offset(6); return o != 0 ? com.googleCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java41 public com.google.flatbuffers.reflection.Enum enumsByKey(com.google.flatbuffers.reflection.Enum obj, String key) { intCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java42 public com.google.flatbuffers.reflection.Enum.Vector enumsVector() { return enumsVector(new com.google.flatbuffers.refCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java55 public com.google.flatbuffers.reflection.Service servicesByKey(String key) { int o = __offset(14); return o != 0 ? comCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java56 public com.google.flatbuffers.reflection.Service servicesByKey(com.google.flatbuffers.reflection.Service obj, String kCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java57 public com.google.flatbuffers.reflection.Service.Vector servicesVector() { return servicesVector(new com.google.flatbuCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java67 public com.google.flatbuffers.reflection.SchemaFile fbsFilesByKey(String key) { int o = __offset(18); return o != 0 ? CODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java68 public com.google.flatbuffers.reflection.SchemaFile fbsFilesByKey(com.google.flatbuffers.reflection.SchemaFile obj, StCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java69 public com.google.flatbuffers.reflection.SchemaFile.Vector fbsFilesVector() { return fbsFilesVector(new com.google.flaCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Object.java35 public com.google.flatbuffers.reflection.Field fieldsByKey(String key) { int o = __offset(6); return o != 0 ? com.googCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Object.java36 public com.google.flatbuffers.reflection.Field fieldsByKey(com.google.flatbuffers.reflection.Field obj, String key) { CODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Object.java37 public com.google.flatbuffers.reflection.Field.Vector fieldsVector() { return fieldsVector(new com.google.flatbuffers.CODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Object.java45 public com.google.flatbuffers.reflection.KeyValue attributesByKey(String key) { int o = __offset(14); return o != 0 ? CODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Object.java46 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, StriCODE
CRITICAL…ain/java/com/google/flatbuffers/reflection/Object.java47 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.fCODE
CRITICAL…in/java/com/google/flatbuffers/reflection/RPCCall.java39 public com.google.flatbuffers.reflection.KeyValue attributesByKey(String key) { int o = __offset(10); return o != 0 ? CODE
CRITICAL…in/java/com/google/flatbuffers/reflection/RPCCall.java40 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, StriCODE
CRITICAL…in/java/com/google/flatbuffers/reflection/RPCCall.java41 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.fCODE
CRITICAL…in/java/com/google/flatbuffers/reflection/Service.java35 public com.google.flatbuffers.reflection.RPCCall callsByKey(String key) { int o = __offset(6); return o != 0 ? com.gooCODE
CRITICAL…in/java/com/google/flatbuffers/reflection/Service.java36 public com.google.flatbuffers.reflection.RPCCall callsByKey(com.google.flatbuffers.reflection.RPCCall obj, String key)CODE
CRITICAL…in/java/com/google/flatbuffers/reflection/Service.java37 public com.google.flatbuffers.reflection.RPCCall.Vector callsVector() { return callsVector(new com.google.flatbuffers.CODE
CRITICAL…in/java/com/google/flatbuffers/reflection/Service.java42 public com.google.flatbuffers.reflection.KeyValue attributesByKey(String key) { int o = __offset(8); return o != 0 ? cCODE
CRITICAL…in/java/com/google/flatbuffers/reflection/Service.java43 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, StriCODE
CRITICAL…in/java/com/google/flatbuffers/reflection/Service.java44 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.fCODE
CRITICAL…/main/java/com/google/flatbuffers/reflection/Enum.java35 public com.google.flatbuffers.reflection.EnumVal valuesByKey(long key) { int o = __offset(6); return o != 0 ? com.googCODE
CRITICAL…/main/java/com/google/flatbuffers/reflection/Enum.java36 public com.google.flatbuffers.reflection.EnumVal valuesByKey(com.google.flatbuffers.reflection.EnumVal obj, long key) CODE
CRITICAL…/main/java/com/google/flatbuffers/reflection/Enum.java37 public com.google.flatbuffers.reflection.EnumVal.Vector valuesVector() { return valuesVector(new com.google.flatbufferCODE
CRITICAL…/main/java/com/google/flatbuffers/reflection/Enum.java45 public com.google.flatbuffers.reflection.KeyValue attributesByKey(String key) { int o = __offset(12); return o != 0 ? CODE
CRITICAL…/main/java/com/google/flatbuffers/reflection/Enum.java46 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, StriCODE
CRITICAL…/main/java/com/google/flatbuffers/reflection/Enum.java47 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.fCODE
CRITICAL…main/java/com/google/flatbuffers/reflection/Field.java44 public com.google.flatbuffers.reflection.KeyValue attributesByKey(String key) { int o = __offset(22); return o != 0 ? CODE
CRITICAL…main/java/com/google/flatbuffers/reflection/Field.java45 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, StriCODE
CRITICAL…main/java/com/google/flatbuffers/reflection/Field.java46 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.fCODE
Over-Commented Block326 hits · 326 pts
SeverityFileLineSnippetContext
LOWnet/FlatBuffers/FlatBufferVerify.cs761 uint valueOffset = GetIndirectOffset(off);COMMENT
LOWnet/FlatBuffers/FlatBufferVerify.cs781 // /* Verify Monster table. Ignore buffer name and assume buffer does not contain data length prefix */COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs41 private int _vtableSize = -1;COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs201 /// <summary>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs261 /// <param name="x">The `bool` to add to the buffer.</param>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs281COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs301 /// Add a `long` to the buffer (aligns the data and grows if necessary).COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs521 /// <summary>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs541 /// </summary>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs561 /// and <see cref="ForceDefaults"/> is false, the value will be skipped.</param>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs581COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs601 /// </summary>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs621 /// it will skip writing to the buffer.</param>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs641 /// <summary>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs661 /// <param name="o">The index into the vtable</param>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs681 /// <param name="d">The default value to compare the value against</param>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs701 /// <summary>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs921 }COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs941 /// </remarks>COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs961 /// A utility function return the ByteBuffer data as aCOMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs1001 }COMMENT
LOWnet/FlatBuffers/FlatBufferBuilder.cs1021 /// Finalize a buffer, pointing to the given `rootTable`, with the size prefixed.COMMENT
LOWnet/FlatBuffers/ByteBuffer.cs21// can yield a reasonable performance increase.COMMENT
LOWnet/FlatBuffers/ByteBuffer.cs981#endifCOMMENT
LOWgo/builder.go101// vtable and return.COMMENT
LOWpython/setup.py1# Copyright 2016 Google Inc. All rights reserved.COMMENT
LOWpython/flatbuffers/number_types.py1# Copyright 2014 Google Inc. All rights reserved.COMMENT
LOWpython/flatbuffers/encode.py1# Copyright 2014 Google Inc. All rights reserved.COMMENT
LOWpython/flatbuffers/compat.py1# Copyright 2016 Google Inc. All rights reserved.COMMENT
LOWpython/flatbuffers/_version.py1# Copyright 2019 Google Inc. All rights reserved.COMMENT
LOWpython/flatbuffers/util.py1# Copyright 2017 Google Inc. All rights reserved.COMMENT
LOWpython/flatbuffers/__init__.py1# Copyright 2014 Google Inc. All rights reserved.COMMENT
LOWpython/flatbuffers/packer.py1# Copyright 2016 Google Inc. All rights reserved.COMMENT
LOWpython/flatbuffers/builder.py1# Copyright 2014 Google Inc. All rights reserved.COMMENT
LOWpython/flatbuffers/flexbuffers.py1# Lint as: python3COMMENT
LOWpython/flatbuffers/table.py1# Copyright 2014 Google Inc. All rights reserved.COMMENT
LOWgrpc/examples/go/format.sh1#!/bin/bashCOMMENT
LOWgrpc/src/compiler/cpp_generator.h1#ifndef GRPC_INTERNAL_COMPILER_CPP_GENERATOR_HCOMMENT
LOWgrpc/src/compiler/go_generator.h1#ifndef GRPC_INTERNAL_COMPILER_GO_GENERATOR_HCOMMENT
LOWgrpc/src/compiler/java_generator.h41#if defined(_MSC_VER)COMMENT
LOWdart/publish.sh1#!/bin/shCOMMENT
LOWdart/lib/flat_buffers.dart121 /// The maximum alignment that has been seen so far. If [_buf] has to beCOMMENT
LOWinclude/codegen/namer.h41 Case types;COMMENT
LOWinclude/codegen/namer.h81 // Object API.COMMENT
LOWinclude/flatbuffers/idl.h21#include <functional>COMMENT
LOWinclude/flatbuffers/idl.h61 TD(FLOAT, "float", float, float, float32, float, float32, f32, Float, Float32, 11) /* begin float */ \COMMENT
LOWinclude/flatbuffers/idl.h1041 }COMMENT
LOWinclude/flatbuffers/flatbuffers.h21COMMENT
LOWinclude/flatbuffers/flatbuffers.h41/// it is the opposite transformation of GetRoot().COMMENT
LOWinclude/flatbuffers/flatbuffers.h101/// back again. The resolver gets a pointer to a field inside an object APICOMMENT
LOWinclude/flatbuffers/flatbuffers.h141// Additionally, it manually sets the alignment of the struct as a whole,COMMENT
LOWinclude/flatbuffers/flatbuffers.h161#elseCOMMENT
LOWinclude/flatbuffers/flexbuffers.h21#include <map>COMMENT
LOWinclude/flatbuffers/flexbuffers.h161 // This is the "hottest" function (all offset lookups use this), so worthCOMMENT
LOWinclude/flatbuffers/flexbuffers.h1261 // We should have interleaved keys and values on the stack.COMMENT
LOWinclude/flatbuffers/flexbuffers.h1281 // std::sort is typically already a lot faster on sorted data though.COMMENT
LOWinclude/flatbuffers/flexbuffers.h1441COMMENT
LOWinclude/flatbuffers/flexbuffers.h2081COMMENT
LOWinclude/flatbuffers/minireflect.h21#include "flatbuffers/util.h"COMMENT
LOWinclude/flatbuffers/util.h21#include <errno.h>COMMENT
266 more matches not shown…
Cross-File Repetition36 hits · 180 pts
SeverityFileLineSnippetContext
HIGHpython/flatbuffers/reflection/Field.py0this method is deprecated. please switch to getrootas.STRING
HIGHpython/flatbuffers/reflection/Service.py0this method is deprecated. please switch to getrootas.STRING
HIGHpython/flatbuffers/reflection/KeyValue.py0this method is deprecated. please switch to getrootas.STRING
HIGHpython/flatbuffers/reflection/Object.py0this method is deprecated. please switch to getrootas.STRING
HIGHpython/flatbuffers/reflection/Type.py0this method is deprecated. please switch to getrootas.STRING
HIGHpython/flatbuffers/reflection/SchemaFile.py0this method is deprecated. please switch to getrootas.STRING
HIGHpython/flatbuffers/reflection/RPCCall.py0this method is deprecated. please switch to getrootas.STRING
HIGHpython/flatbuffers/reflection/EnumVal.py0this method is deprecated. please switch to getrootas.STRING
HIGHpython/flatbuffers/reflection/Enum.py0this method is deprecated. please switch to getrootas.STRING
HIGHpython/flatbuffers/reflection/Schema.py0this method is deprecated. please switch to getrootas.STRING
HIGHgrpc/examples/python/greeter/models/HelloReply.py0this method is deprecated. please switch to getrootas.STRING
HIGHgrpc/examples/python/greeter/models/HelloRequest.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/service_test_generated.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/monster_test_generated.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/namespace_test/NamespaceC/TableInC.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/namespace_test/NamespaceA/TableInFirstNS.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/namespace_test/NamespaceA/SecondTableInA.py0this method is deprecated. please switch to getrootas.STRING
HIGH…amespace_test/NamespaceA/NamespaceB/TableInNestedNS.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/union_name_test/Container.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/union_name_test/Bar.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/union_name_test/Foo.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/optional_scalars/ScalarStuff.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/MonsterExtra.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/InParentNamespace.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/Example2/Monster.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/Example/Referrable.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/Example/ArrayTable.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/Example/Stat.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/Example/Monster.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/Example/TestSimpleTableWithEnum.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/Example/TypeAliases.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/Example/NestedUnion/NestedUnionTest.py0this method is deprecated. please switch to getrootas.STRING
HIGH…/MyGame/Example/NestedUnion/TestSimpleTableWithEnum.py0this method is deprecated. please switch to getrootas.STRING
HIGHtests/MyGame/Example/NestedUnion/Vec3.py0this method is deprecated. please switch to getrootas.STRING
HIGHgoldens/py/flatbuffers/goldens/Galaxy.py0this method is deprecated. please switch to getrootas.STRING
HIGHgoldens/py/flatbuffers/goldens/Universe.py0this method is deprecated. please switch to getrootas.STRING
Hyper-Verbose Identifiers184 hits · 152 pts
SeverityFileLineSnippetContext
LOWtests/py_flexbuffers_test.py696 def _check_fixed_typed_vector(self, data, vector, type_):CODE
LOWtests/py_flexbuffers_test.py710 def test_fixed_typed_vector_float(self):CODE
LOWtests/py_flexbuffers_test.py731 def test_fixed_typed_vector_int(self):CODE
LOWtests/py_flexbuffers_test.py751 def test_fixed_typed_vector_uint(self):CODE
LOWtests/py_flexbuffers_test.py929 def test_typed_vector_string_deprecated(self):CODE
LOWtests/py_flexbuffers_test.py942 def test_typed_vector_invalid(self):CODE
LOWtests/py_flexbuffers_test.py1236 def encode_vector_from_elements(elements):CODE
LOWtests/py_flexbuffers_test.py1292 def encode_typed_vector_from_elements(elements, element_type=None):CODE
LOWtests/py_flexbuffers_test.py1335 def test_typed_vector_from_array(self):CODE
LOWtests/py_flexbuffers_test.py1361 def encode_fixed_typed_vector(elements, element_type=None):CODE
LOWtests/luatest.lua285local function testAccessByteVectorAsString()CODE
LOWtests/py_test.py485 def test_mutate_testarrayofstring(self):CODE
LOWtests/py_test.py493 def test_empty_testarrayofstring(self):CODE
LOWtests/py_test.py498 def test_mutate_testarrayoftables(self):CODE
LOWtests/py_test.py558 def test_mutate_testarrayofbools(self):CODE
LOWtests/py_test.py568 def test_empty_testarrayofbools(self):CODE
LOWtests/py_test.py578 def test_mutate_vectoroflongs(self):CODE
LOWtests/py_test.py597 def test_mutate_vectorofdoubles(self):CODE
LOWtests/py_test.py607 def test_empty_vectorofdoubles(self):CODE
LOWtests/py_test.py612 def test_mutate_parentnamespacetest(self):CODE
LOWtests/py_test.py2332 def test_default_monster_name(self):CODE
LOWtests/py_test.py2335 def test_default_monster_inventory_item(self):CODE
LOWtests/py_test.py2338 def test_default_monster_inventory_length(self):CODE
LOWtests/py_test.py2342 def test_empty_monster_inventory_vector(self):CODE
LOWtests/py_test.py2391 def test_default_monster_testarrayofstring(self):CODE
LOWtests/py_test.py2394 def test_default_monster_testarrayofstring_length(self):CODE
LOWtests/py_test.py2398 def test_empty_monster_testarrayofstring_vector(self):CODE
LOWtests/py_test.py2474 def test_default_monster_testnestedflatbuffer(self):CODE
LOWtests/py_test.py2477 def test_default_monster_testnestedflatbuffer_length(self):CODE
LOWtests/py_test.py2481 def test_empty_monster_testnestedflatbuffer_vector(self):CODE
LOWtests/py_test.py2811 def test_object_is_nested_error(self):CODE
LOWtests/py_test.py2818 def test_object_is_not_nested_error(self):CODE
LOWtests/py_test.py2824 def test_struct_is_not_inline_error(self):CODE
LOWtests/py_test.py2841 def test_create_shared_string_is_nested_error(self):CODE
LOWtests/py_test.py2849 def test_create_string_is_nested_error(self):CODE
LOWtests/py_test.py2857 def test_create_byte_vector_is_nested_error(self):CODE
LOWtests/py_test.py2865 def test_finished_bytes_error(self):CODE
LOWtests/py_test.py64def create_namespace_shortcut(is_onefile):CODE
LOWtests/py_test.py160 def test_consistency_with_repeated_pack_and_unpack(self):CODE
LOWtests/py_test.py195 def test_default_values_with_pack_and_unpack(self):CODE
LOWtests/py_test.py310 def test_optional_scalars_with_pack_and_unpack(self):CODE
LOWtests/py_test.py371 def _create_and_load_object_class(self, b):CODE
LOWtests/py_test.py510 def test_empty_testarrayoftables(self):CODE
LOWtests/py_test.py522 def test_mutate_testnestedflatbuffer(self):CODE
LOWtests/py_test.py529 def test_empty_testnestedflatbuffer(self):CODE
LOWtests/py_test.py1056 def test_create_ascii_shared_string(self):CODE
LOWtests/py_test.py1112 def test_create_arbitrary_shared_string(self):CODE
LOWtests/py_test.py1179 def test_create_arbitrary_string(self):CODE
LOWtests/py_test.py1203 def test_comparison_of_np_arrays(self):CODE
LOWtests/py_test.py1579 def test_create_numpy_vector_bool(self):CODE
LOWtests/py_test.py1610 def test_create_numpy_vector_reject_strings(self):CODE
LOWtests/py_test.py1628 def test_create_numpy_vector_reject_object(self):CODE
LOWtests/py_test.py1653 def test_vtable_with_one_true_bool(self):CODE
LOWtests/py_test.py1680 def test_vtable_with_one_default_bool(self):CODE
LOWtests/py_test.py1783 def test_vtable_with_empty_vector(self):CODE
LOWtests/py_test.py1814 def test_vtable_with_empty_vector_of_byte_and_some_scalars(self):CODE
LOWtests/py_test.py1975 def test_table_with_some_elements(self):CODE
LOWtests/py_test.py2009 def test__one_unfinished_table_and_one_finished_table(self):CODE
LOWtests/py_test.py2196def make_monster_from_generated_code(CODE
LOWtests/py_test.py2276 def test_default_force_defaults(self):CODE
124 more matches not shown…
Unused Imports49 hits · 48 pts
SeverityFileLineSnippetContext
LOWpython/flatbuffers/number_types.py15CODE
LOWpython/flatbuffers/encode.py15CODE
LOWpython/flatbuffers/encode.py16CODE
LOWpython/flatbuffers/__init__.py15CODE
LOWpython/flatbuffers/__init__.py16CODE
LOWpython/flatbuffers/__init__.py17CODE
LOWpython/flatbuffers/__init__.py18CODE
LOWpython/flatbuffers/__init__.py19CODE
LOWpython/flatbuffers/builder.py21CODE
LOWpython/flatbuffers/builder.py23CODE
LOWgrpc/tests/grpctest.py1CODE
LOWgrpc/examples/python/greeter/greeter_grpc.fb.py3CODE
LOWgrpc/examples/python/greeter/greeter_grpc.fb.py5CODE
LOWgrpc/examples/python/greeter/greeter_grpc.fb.py6CODE
LOWgrpc/examples/python/greeter/models/greeter_grpc_fb.py3CODE
LOWgrpc/examples/python/greeter/models/greeter_grpc_fb.py6CODE
LOWgrpc/examples/python/greeter/models/greeter_grpc_fb.py7CODE
LOWtests/monster_test_generated.py411CODE
LOWtests/monster_test_generated.py573CODE
LOWtests/monster_test_generated.py656CODE
LOWtests/monster_test_generated.py2120CODE
LOWtests/monster_test_generated.py2120CODE
LOWtests/monster_test_generated.py2936CODE
LOWtests/py_test.py3329CODE
LOWtests/namespace_test/NamespaceC/TableInC.py88CODE
LOWtests/namespace_test/NamespaceA/TableInFirstNS.py143CODE
LOWtests/namespace_test/NamespaceA/SecondTableInA.py68CODE
LOWtests/flatc/flatc_kotlin_tests.py15CODE
LOWtests/flatc/flatc_cpp_tests.py15CODE
LOWtests/flatc/flatc_schema_tests.py16CODE
LOWtests/flatc/flatc_ts_tests.py15CODE
LOWtests/optional_scalars/ScalarStuff.py512CODE
LOWtests/ts/TypeScriptTest.py19CODE
LOWtests/ts/TypeScriptTest.py21CODE
LOWtests/MyGame/MonsterExtra.py248CODE
LOWtests/MyGame/Example/ArrayStruct.py7CODE
LOWtests/MyGame/Example/ArrayStruct.py110CODE
LOWtests/MyGame/Example/NestedStruct.py7CODE
LOWtests/MyGame/Example/NestedStruct.py100CODE
LOWtests/MyGame/Example/StructOfStructsOfStructs.py43CODE
LOWtests/MyGame/Example/StructOfStructs.py53CODE
LOWtests/MyGame/Example/Monster.py1575CODE
LOWtests/MyGame/Example/Monster.py1575CODE
LOWtests/MyGame/Example/LargeArrayStruct.py7CODE
LOWtests/MyGame/Example/LargeArrayStruct.py145CODE
LOWtests/MyGame/Example/TypeAliases.py272CODE
LOWtests/MyGame/Example/Vec3.py54CODE
LOWtests/MyGame/Example/NestedUnion/Test.py7CODE
LOW…/MyGame/Example/NestedUnion/TestSimpleTableWithEnum.py7CODE
Self-Referential Comments44 hits · 46 pts
SeverityFileLineSnippetContext
MEDIUMpython/flatbuffers/reflection/Field.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMpython/flatbuffers/reflection/Service.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMpython/flatbuffers/reflection/KeyValue.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMpython/flatbuffers/reflection/Object.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMpython/flatbuffers/reflection/Type.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMpython/flatbuffers/reflection/SchemaFile.py24 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMpython/flatbuffers/reflection/RPCCall.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMpython/flatbuffers/reflection/EnumVal.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMpython/flatbuffers/reflection/Enum.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMpython/flatbuffers/reflection/Schema.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMgrpc/examples/python/greeter/models/HelloReply.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMgrpc/examples/python/greeter/models/HelloRequest.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/service_test_generated.py18 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/service_test_generated.py44 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/monster_test_generated.py101 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/monster_test_generated.py168 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/monster_test_generated.py299 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/monster_test_generated.py710 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/monster_test_generated.py821 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/monster_test_generated.py902 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/monster_test_generated.py2738 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/py_test.py2903 # Create a table with the ArrayStruct.COMMENT
MEDIUMtests/namespace_test/NamespaceC/TableInC.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/namespace_test/NamespaceA/TableInFirstNS.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/namespace_test/NamespaceA/SecondTableInA.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amespace_test/NamespaceA/NamespaceB/TableInNestedNS.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/union_name_test/Container.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/union_name_test/Bar.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/union_name_test/Foo.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/optional_scalars/ScalarStuff.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/MonsterExtra.py23 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/InParentNamespace.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/Example2/Monster.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/Example/Referrable.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/Example/ArrayTable.py24 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/Example/Stat.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/Example/Monster.py22 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/Example/TestSimpleTableWithEnum.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/Example/TypeAliases.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/Example/NestedUnion/NestedUnionTest.py24 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…/MyGame/Example/NestedUnion/TestSimpleTableWithEnum.py22 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtests/MyGame/Example/NestedUnion/Vec3.py24 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMgoldens/py/flatbuffers/goldens/Galaxy.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMgoldens/py/flatbuffers/goldens/Universe.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
Deep Nesting29 hits · 24 pts
SeverityFileLineSnippetContext
LOWpython/flatbuffers/builder.py208CODE
LOWpython/flatbuffers/flexbuffers.py46CODE
LOWpython/flatbuffers/flexbuffers.py250CODE
LOWpython/flatbuffers/flexbuffers.py492CODE
LOWpython/flatbuffers/flexbuffers.py638CODE
LOWpython/flatbuffers/flexbuffers.py667CODE
LOWpython/flatbuffers/flexbuffers.py697CODE
LOWpython/flatbuffers/flexbuffers.py857CODE
LOWpython/flatbuffers/flexbuffers.py1154CODE
LOWpython/flatbuffers/flexbuffers.py1403CODE
LOWpython/flatbuffers/flexbuffers.py1538CODE
LOWtests/py_flexbuffers_test.py315CODE
LOWtests/py_flexbuffers_test.py347CODE
LOWtests/py_flexbuffers_test.py416CODE
LOWtests/py_flexbuffers_test.py429CODE
LOWtests/py_flexbuffers_test.py444CODE
LOWtests/py_flexbuffers_test.py457CODE
LOWtests/py_flexbuffers_test.py541CODE
LOWtests/py_flexbuffers_test.py554CODE
LOWtests/py_flexbuffers_test.py591CODE
LOWtests/py_flexbuffers_test.py654CODE
LOWtests/py_flexbuffers_test.py710CODE
LOWtests/py_flexbuffers_test.py731CODE
LOWtests/py_flexbuffers_test.py751CODE
LOWtests/py_flexbuffers_test.py785CODE
LOWtests/py_flexbuffers_test.py862CODE
LOWtests/py_flexbuffers_test.py965CODE
LOWtests/py_flexbuffers_test.py1078CODE
LOWtests/py_test.py832CODE
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMpython/flatbuffers/compat.py53# Helper functions to facilitate making numpy optional instead of requiredCOMMENT
MEDIUMinclude/flatbuffers/vector_downward.h34// Essentially, this supports 2 std::vectors in a single buffer.COMMENT
MEDIUMtests/cpp17/stringify_util.h17// This contains some utilities/examples for how to leverage the static reflec-COMMENT
MEDIUMsamples/sample_binary.py19# to facilitate executing this script in the `samples` folder, and to rootCOMMENT
AI Structural Patterns7 hits · 7 pts
SeverityFileLineSnippetContext
LOWpython/flatbuffers/table.py68CODE
LOWtests/monster_test_generated.py2127CODE
LOWtests/monster_test_generated.py2943CODE
LOWtests/optional_scalars/ScalarStuff.py519CODE
LOWtests/MyGame/MonsterExtra.py255CODE
LOWtests/MyGame/Example/Monster.py1582CODE
LOWtests/MyGame/Example/TypeAliases.py279CODE
TODO Padding4 hits · 4 pts
SeverityFileLineSnippetContext
LOWinclude/flatbuffers/flexbuffers.h134// TODO: implement proper support for 8/16bit floats, or decide not toCOMMENT
LOWsrc/reflection.cpp343 s += "(struct)"; // TODO: implement this as well.CODE
LOWsrc/reflection.cpp371 return "[(elements)]"; // TODO: implement this as well.CODE
LOWsrc/reflection.cpp373 return "(union)"; // TODO: implement this as well.CODE
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/py_test.py99 except Exception as e:CODE
LOWtests/flatc/flatc_test.py130 except Exception as e:CODE