AI Slop Code RIsk Monitor

google/flatbuffers

FlatBuffers: Memory Efficient Serialization Library

4.9 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for google/flatbuffers, a C++ project with 26,560 GitHub stars. SynthScan examined 323,405 lines of code across 1503 source files, recording 757 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 4.9 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.9
Adjusted Signal
4.9
Raw Pattern Score
100%
Time Factor
2026-09-14
Last Push
26.6K
Stars
C++
Language
323.4K
Lines of Code
1.5K
Files
757
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 8.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 599 finding(s).

Hallucinated Dependency & Supply Chain Risk 10.3/100 · LOW

Are imports declared and package/API names verified? 95 finding(s).

Agent Over-Engineering Ratio 6.9/100 · LOW

Are wrappers, guards, and repeated structures necessary? 254 finding(s).

PR Review Velocity Impact 21.6/100 · LOW

Which changes need focused human review? 757 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 46HIGH 61MEDIUM 48LOW 602

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 757 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

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 Block327 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
267 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
LOW⚡tests/py_test.py485 def test_mutate_testarrayofstring(self):CODE
LOW⚡tests/py_test.py493 def test_empty_testarrayofstring(self):CODE
LOW⚡tests/py_test.py498 def test_mutate_testarrayoftables(self):CODE
LOW⚡tests/py_test.py558 def test_mutate_testarrayofbools(self):CODE
LOW⚡tests/py_test.py568 def test_empty_testarrayofbools(self):CODE
LOW⚡tests/py_test.py578 def test_mutate_vectoroflongs(self):CODE
LOW⚡tests/py_test.py597 def test_mutate_vectorofdoubles(self):CODE
LOW⚡tests/py_test.py607 def test_empty_vectorofdoubles(self):CODE
LOW⚡tests/py_test.py612 def test_mutate_parentnamespacetest(self):CODE
LOW⚡tests/py_test.py2332 def test_default_monster_name(self):CODE
LOW⚡tests/py_test.py2335 def test_default_monster_inventory_item(self):CODE
LOW⚡tests/py_test.py2338 def test_default_monster_inventory_length(self):CODE
LOW⚡tests/py_test.py2342 def test_empty_monster_inventory_vector(self):CODE
LOW⚡tests/py_test.py2391 def test_default_monster_testarrayofstring(self):CODE
LOW⚡tests/py_test.py2394 def test_default_monster_testarrayofstring_length(self):CODE
LOW⚡tests/py_test.py2398 def test_empty_monster_testarrayofstring_vector(self):CODE
LOW⚡tests/py_test.py2474 def test_default_monster_testnestedflatbuffer(self):CODE
LOW⚡tests/py_test.py2477 def test_default_monster_testnestedflatbuffer_length(self):CODE
LOW⚡tests/py_test.py2481 def test_empty_monster_testnestedflatbuffer_vector(self):CODE
LOW⚡tests/py_test.py2811 def test_object_is_nested_error(self):CODE
LOW⚡tests/py_test.py2818 def test_object_is_not_nested_error(self):CODE
LOW⚡tests/py_test.py2824 def test_struct_is_not_inline_error(self):CODE
LOW⚡tests/py_test.py2841 def test_create_shared_string_is_nested_error(self):CODE
LOW⚡tests/py_test.py2849 def test_create_string_is_nested_error(self):CODE
LOW⚡tests/py_test.py2857 def test_create_byte_vector_is_nested_error(self):CODE
LOW⚡tests/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…
Empty Error Handlers25 hits · 125 pts
SeverityFileLineSnippetContext
HIGHtests/monster_test_generated.py412except:CODE
HIGHtests/monster_test_generated.py574except:CODE
HIGHtests/monster_test_generated.py657except:CODE
HIGHtests/monster_test_generated.py2121except:CODE
HIGHtests/monster_test_generated.py2937except:CODE
HIGHtests/py_test.py759except ImportError:CODE
HIGHtests/namespace_test/NamespaceC/TableInC.py89except:CODE
HIGHtests/namespace_test/NamespaceA/TableInFirstNS.py144except:CODE
HIGHtests/namespace_test/NamespaceA/SecondTableInA.py69except:CODE
HIGHtests/flatc/flatc_schema_tests.py79except subprocess.CalledProcessError:CODE
HIGHtests/union_name_test/Container.py73except:CODE
HIGHtests/optional_scalars/ScalarStuff.py513except:CODE
HIGHtests/MyGame/MonsterExtra.py249except:CODE
HIGHtests/MyGame/Example/monster_test_grpc_fb.py286except ImportError:CODE
HIGHtests/MyGame/Example/ArrayStruct.py111except:CODE
HIGHtests/MyGame/Example/NestedStruct.py101except:CODE
HIGHtests/MyGame/Example/StructOfStructsOfStructs.py44except:CODE
HIGHtests/MyGame/Example/ArrayTable.py65except:CODE
HIGHtests/MyGame/Example/StructOfStructs.py54except:CODE
HIGHtests/MyGame/Example/Monster.py1576except:CODE
HIGHtests/MyGame/Example/LargeArrayStruct.py146except:CODE
HIGHtests/MyGame/Example/TypeAliases.py273except:CODE
HIGHtests/MyGame/Example/Vec3.py55except:CODE
HIGHtests/MyGame/Example/NestedUnion/NestedUnionTest.py101except:CODE
HIGHtests/MyGame/Example/NestedUnion/Vec3.py126except:CODE
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