Repository Analysis

google/flatbuffers

FlatBuffers: Memory Efficient Serialization Library

4.6 Likely human-written View on GitHub
4.6
Adjusted Score
4.6
Raw Score
100%
Time Factor
2026-05-25
Last Push
26,031
Stars
C++
Language
323,057
Lines of Code
1502
Files
728
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 46HIGH 43MEDIUM 48LOW 591

Pattern Findings

728 matches across 9 categories. Click a row to expand file-level details.

Hallucination Indicators46 hits · 655 pts
SeverityFileLineSnippet
CRITICALtests/py_test.py2970 MyGame.Example.NestedUnion.NestedUnionTest.NestedUnionTest.GetRootAs(
CRITICALtests/py_test.py2975 MyGame.Example.NestedUnion.NestedUnionTest.NestedUnionTestT.InitFromObj(
CRITICALtests/py_test.py2990 nestUnionDecodeTFromBuf = MyGame.Example.NestedUnion.NestedUnionTest.NestedUnionTestT.InitFromPackedBuf(
CRITICALtests/py_test.py3008 nestUnionDecodeTFromBuf2 = MyGame.Example.NestedUnion.NestedUnionTest.NestedUnionTestT.InitFromPackedBuf(
CRITICALtests/MyGame/Example/NestedUnion/Any.py16 return MyGame.Example.NestedUnion.Vec3.Vec3T.InitFromBuf(table.Bytes, table.Pos)
CRITICALtests/MyGame/Example/NestedUnion/Any.py19 return MyGame.Example.NestedUnion.TestSimpleTableWithEnum.TestSimpleTableWithEnumT.InitFromBuf(table.Bytes, tabl
CRITICALtests/MyGame/Example/NestedUnion/Vec3.py175 self.test3 = MyGame.Example.NestedUnion.Test.TestT.InitFromObj(vec3.Test3())
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 ?
CRITICAL…in/java/com/google/flatbuffers/reflection/EnumVal.java43 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, Stri
CRITICAL…in/java/com/google/flatbuffers/reflection/EnumVal.java44 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.f
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.go
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java34 public com.google.flatbuffers.reflection.Object objectsByKey(com.google.flatbuffers.reflection.Object obj, String key)
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java35 public com.google.flatbuffers.reflection.Object.Vector objectsVector() { return objectsVector(new com.google.flatbuffe
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.google
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java41 public com.google.flatbuffers.reflection.Enum enumsByKey(com.google.flatbuffers.reflection.Enum obj, String key) { int
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java42 public com.google.flatbuffers.reflection.Enum.Vector enumsVector() { return enumsVector(new com.google.flatbuffers.ref
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 ? com
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java56 public com.google.flatbuffers.reflection.Service servicesByKey(com.google.flatbuffers.reflection.Service obj, String k
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java57 public com.google.flatbuffers.reflection.Service.Vector servicesVector() { return servicesVector(new com.google.flatbu
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 ?
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java68 public com.google.flatbuffers.reflection.SchemaFile fbsFilesByKey(com.google.flatbuffers.reflection.SchemaFile obj, St
CRITICAL…ain/java/com/google/flatbuffers/reflection/Schema.java69 public com.google.flatbuffers.reflection.SchemaFile.Vector fbsFilesVector() { return fbsFilesVector(new com.google.fla
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.goog
CRITICAL…ain/java/com/google/flatbuffers/reflection/Object.java36 public com.google.flatbuffers.reflection.Field fieldsByKey(com.google.flatbuffers.reflection.Field obj, String key) {
CRITICAL…ain/java/com/google/flatbuffers/reflection/Object.java37 public com.google.flatbuffers.reflection.Field.Vector fieldsVector() { return fieldsVector(new com.google.flatbuffers.
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 ?
CRITICAL…ain/java/com/google/flatbuffers/reflection/Object.java46 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, Stri
CRITICAL…ain/java/com/google/flatbuffers/reflection/Object.java47 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.f
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 ?
CRITICAL…in/java/com/google/flatbuffers/reflection/RPCCall.java40 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, Stri
CRITICAL…in/java/com/google/flatbuffers/reflection/RPCCall.java41 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.f
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.goo
CRITICAL…in/java/com/google/flatbuffers/reflection/Service.java36 public com.google.flatbuffers.reflection.RPCCall callsByKey(com.google.flatbuffers.reflection.RPCCall obj, String key)
CRITICAL…in/java/com/google/flatbuffers/reflection/Service.java37 public com.google.flatbuffers.reflection.RPCCall.Vector callsVector() { return callsVector(new com.google.flatbuffers.
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 ? c
CRITICAL…in/java/com/google/flatbuffers/reflection/Service.java43 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, Stri
CRITICAL…in/java/com/google/flatbuffers/reflection/Service.java44 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.f
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.goog
CRITICAL…/main/java/com/google/flatbuffers/reflection/Enum.java36 public com.google.flatbuffers.reflection.EnumVal valuesByKey(com.google.flatbuffers.reflection.EnumVal obj, long key)
CRITICAL…/main/java/com/google/flatbuffers/reflection/Enum.java37 public com.google.flatbuffers.reflection.EnumVal.Vector valuesVector() { return valuesVector(new com.google.flatbuffer
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 ?
CRITICAL…/main/java/com/google/flatbuffers/reflection/Enum.java46 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, Stri
CRITICAL…/main/java/com/google/flatbuffers/reflection/Enum.java47 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.f
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 ?
CRITICAL…main/java/com/google/flatbuffers/reflection/Field.java45 public com.google.flatbuffers.reflection.KeyValue attributesByKey(com.google.flatbuffers.reflection.KeyValue obj, Stri
CRITICAL…main/java/com/google/flatbuffers/reflection/Field.java46 public com.google.flatbuffers.reflection.KeyValue.Vector attributesVector() { return attributesVector(new com.google.f
Over-Commented Block327 hits · 326 pts
SeverityFileLineSnippet
LOWnet/FlatBuffers/FlatBufferVerify.cs761 uint valueOffset = GetIndirectOffset(off);
LOWnet/FlatBuffers/FlatBufferVerify.cs781 // /* Verify Monster table. Ignore buffer name and assume buffer does not contain data length prefix */
LOWnet/FlatBuffers/FlatBufferBuilder.cs41 private int _vtableSize = -1;
LOWnet/FlatBuffers/FlatBufferBuilder.cs201 /// <summary>
LOWnet/FlatBuffers/FlatBufferBuilder.cs261 /// <param name="x">The `bool` to add to the buffer.</param>
LOWnet/FlatBuffers/FlatBufferBuilder.cs281
LOWnet/FlatBuffers/FlatBufferBuilder.cs301 /// Add a `long` to the buffer (aligns the data and grows if necessary).
LOWnet/FlatBuffers/FlatBufferBuilder.cs521 /// <summary>
LOWnet/FlatBuffers/FlatBufferBuilder.cs541 /// </summary>
LOWnet/FlatBuffers/FlatBufferBuilder.cs561 /// and <see cref="ForceDefaults"/> is false, the value will be skipped.</param>
LOWnet/FlatBuffers/FlatBufferBuilder.cs581
LOWnet/FlatBuffers/FlatBufferBuilder.cs601 /// </summary>
LOWnet/FlatBuffers/FlatBufferBuilder.cs621 /// it will skip writing to the buffer.</param>
LOWnet/FlatBuffers/FlatBufferBuilder.cs641 /// <summary>
LOWnet/FlatBuffers/FlatBufferBuilder.cs661 /// <param name="o">The index into the vtable</param>
LOWnet/FlatBuffers/FlatBufferBuilder.cs681 /// <param name="d">The default value to compare the value against</param>
LOWnet/FlatBuffers/FlatBufferBuilder.cs701 /// <summary>
LOWnet/FlatBuffers/FlatBufferBuilder.cs921 }
LOWnet/FlatBuffers/FlatBufferBuilder.cs941 /// </remarks>
LOWnet/FlatBuffers/FlatBufferBuilder.cs961 /// A utility function return the ByteBuffer data as a
LOWnet/FlatBuffers/FlatBufferBuilder.cs1001 }
LOWnet/FlatBuffers/FlatBufferBuilder.cs1021 /// Finalize a buffer, pointing to the given `rootTable`, with the size prefixed.
LOWnet/FlatBuffers/ByteBuffer.cs21// can yield a reasonable performance increase.
LOWnet/FlatBuffers/ByteBuffer.cs981#endif
LOWgo/builder.go101// vtable and return.
LOWpython/setup.py1# Copyright 2016 Google Inc. All rights reserved.
LOWpython/flatbuffers/number_types.py1# Copyright 2014 Google Inc. All rights reserved.
LOWpython/flatbuffers/encode.py1# Copyright 2014 Google Inc. All rights reserved.
LOWpython/flatbuffers/compat.py1# Copyright 2016 Google Inc. All rights reserved.
LOWpython/flatbuffers/_version.py1# Copyright 2019 Google Inc. All rights reserved.
LOWpython/flatbuffers/util.py1# Copyright 2017 Google Inc. All rights reserved.
LOWpython/flatbuffers/__init__.py1# Copyright 2014 Google Inc. All rights reserved.
LOWpython/flatbuffers/packer.py1# Copyright 2016 Google Inc. All rights reserved.
LOWpython/flatbuffers/builder.py1# Copyright 2014 Google Inc. All rights reserved.
LOWpython/flatbuffers/flexbuffers.py1# Lint as: python3
LOWpython/flatbuffers/table.py1# Copyright 2014 Google Inc. All rights reserved.
LOWgrpc/examples/go/format.sh1#!/bin/bash
LOWgrpc/src/compiler/cpp_generator.h1#ifndef GRPC_INTERNAL_COMPILER_CPP_GENERATOR_H
LOWgrpc/src/compiler/go_generator.h1#ifndef GRPC_INTERNAL_COMPILER_GO_GENERATOR_H
LOWgrpc/src/compiler/java_generator.h41#if defined(_MSC_VER)
LOWdart/publish.sh1#!/bin/sh
LOWdart/lib/flat_buffers.dart121 /// The maximum alignment that has been seen so far. If [_buf] has to be
LOWinclude/codegen/namer.h41 Case types;
LOWinclude/codegen/namer.h81 // Object API.
LOWinclude/flatbuffers/idl.h21#include <functional>
LOWinclude/flatbuffers/idl.h61 TD(FLOAT, "float", float, float, float32, float, float32, f32, Float, Float32, 11) /* begin float */ \
LOWinclude/flatbuffers/idl.h1041 }
LOWinclude/flatbuffers/flatbuffers.h21
LOWinclude/flatbuffers/flatbuffers.h41/// it is the opposite transformation of GetRoot().
LOWinclude/flatbuffers/flatbuffers.h101/// back again. The resolver gets a pointer to a field inside an object API
LOWinclude/flatbuffers/flatbuffers.h141// Additionally, it manually sets the alignment of the struct as a whole,
LOWinclude/flatbuffers/flatbuffers.h161#else
LOWinclude/flatbuffers/flexbuffers.h21#include <map>
LOWinclude/flatbuffers/flexbuffers.h161 // This is the "hottest" function (all offset lookups use this), so worth
LOWinclude/flatbuffers/flexbuffers.h1261 // We should have interleaved keys and values on the stack.
LOWinclude/flatbuffers/flexbuffers.h1281 // std::sort is typically already a lot faster on sorted data though.
LOWinclude/flatbuffers/flexbuffers.h1441
LOWinclude/flatbuffers/flexbuffers.h2081
LOWinclude/flatbuffers/minireflect.h21#include "flatbuffers/util.h"
LOWinclude/flatbuffers/util.h21#include <errno.h>
267 more matches not shown…
Cross-File Repetition43 hits · 215 pts
SeverityFileLineSnippet
HIGHpython/flatbuffers/reflection/Field.py0this method is deprecated. please switch to getrootas.
HIGHpython/flatbuffers/reflection/Service.py0this method is deprecated. please switch to getrootas.
HIGHpython/flatbuffers/reflection/KeyValue.py0this method is deprecated. please switch to getrootas.
HIGHpython/flatbuffers/reflection/Object.py0this method is deprecated. please switch to getrootas.
HIGHpython/flatbuffers/reflection/Type.py0this method is deprecated. please switch to getrootas.
HIGHpython/flatbuffers/reflection/SchemaFile.py0this method is deprecated. please switch to getrootas.
HIGHpython/flatbuffers/reflection/RPCCall.py0this method is deprecated. please switch to getrootas.
HIGHpython/flatbuffers/reflection/EnumVal.py0this method is deprecated. please switch to getrootas.
HIGHpython/flatbuffers/reflection/Enum.py0this method is deprecated. please switch to getrootas.
HIGHpython/flatbuffers/reflection/Schema.py0this method is deprecated. please switch to getrootas.
HIGHgrpc/examples/python/greeter/models/HelloReply.py0this method is deprecated. please switch to getrootas.
HIGHgrpc/examples/python/greeter/models/HelloRequest.py0this method is deprecated. please switch to getrootas.
HIGHtests/service_test_generated.py0this method is deprecated. please switch to getrootas.
HIGHtests/service_test_generated.py0this method is deprecated. please switch to getrootas.
HIGHtests/monster_test_generated.py0this method is deprecated. please switch to getrootas.
HIGHtests/monster_test_generated.py0this method is deprecated. please switch to getrootas.
HIGHtests/monster_test_generated.py0this method is deprecated. please switch to getrootas.
HIGHtests/monster_test_generated.py0this method is deprecated. please switch to getrootas.
HIGHtests/monster_test_generated.py0this method is deprecated. please switch to getrootas.
HIGHtests/monster_test_generated.py0this method is deprecated. please switch to getrootas.
HIGHtests/monster_test_generated.py0this method is deprecated. please switch to getrootas.
HIGHtests/namespace_test/NamespaceC/TableInC.py0this method is deprecated. please switch to getrootas.
HIGHtests/namespace_test/NamespaceA/TableInFirstNS.py0this method is deprecated. please switch to getrootas.
HIGHtests/namespace_test/NamespaceA/SecondTableInA.py0this method is deprecated. please switch to getrootas.
HIGH…amespace_test/NamespaceA/NamespaceB/TableInNestedNS.py0this method is deprecated. please switch to getrootas.
HIGHtests/union_name_test/Container.py0this method is deprecated. please switch to getrootas.
HIGHtests/union_name_test/Bar.py0this method is deprecated. please switch to getrootas.
HIGHtests/union_name_test/Foo.py0this method is deprecated. please switch to getrootas.
HIGHtests/optional_scalars/ScalarStuff.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/MonsterExtra.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/InParentNamespace.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/Example2/Monster.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/Example/Referrable.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/Example/ArrayTable.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/Example/Stat.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/Example/Monster.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/Example/TestSimpleTableWithEnum.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/Example/TypeAliases.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/Example/NestedUnion/NestedUnionTest.py0this method is deprecated. please switch to getrootas.
HIGH…/MyGame/Example/NestedUnion/TestSimpleTableWithEnum.py0this method is deprecated. please switch to getrootas.
HIGHtests/MyGame/Example/NestedUnion/Vec3.py0this method is deprecated. please switch to getrootas.
HIGHgoldens/py/flatbuffers/goldens/Galaxy.py0this method is deprecated. please switch to getrootas.
HIGHgoldens/py/flatbuffers/goldens/Universe.py0this method is deprecated. please switch to getrootas.
Hyper-Verbose Identifiers184 hits · 152 pts
SeverityFileLineSnippet
LOWtests/py_flexbuffers_test.py696 def _check_fixed_typed_vector(self, data, vector, type_):
LOWtests/py_flexbuffers_test.py710 def test_fixed_typed_vector_float(self):
LOWtests/py_flexbuffers_test.py731 def test_fixed_typed_vector_int(self):
LOWtests/py_flexbuffers_test.py751 def test_fixed_typed_vector_uint(self):
LOWtests/py_flexbuffers_test.py929 def test_typed_vector_string_deprecated(self):
LOWtests/py_flexbuffers_test.py942 def test_typed_vector_invalid(self):
LOWtests/py_flexbuffers_test.py1236 def encode_vector_from_elements(elements):
LOWtests/py_flexbuffers_test.py1292 def encode_typed_vector_from_elements(elements, element_type=None):
LOWtests/py_flexbuffers_test.py1335 def test_typed_vector_from_array(self):
LOWtests/py_flexbuffers_test.py1361 def encode_fixed_typed_vector(elements, element_type=None):
LOWtests/luatest.lua285local function testAccessByteVectorAsString()
LOWtests/py_test.py485 def test_mutate_testarrayofstring(self):
LOWtests/py_test.py493 def test_empty_testarrayofstring(self):
LOWtests/py_test.py498 def test_mutate_testarrayoftables(self):
LOWtests/py_test.py558 def test_mutate_testarrayofbools(self):
LOWtests/py_test.py568 def test_empty_testarrayofbools(self):
LOWtests/py_test.py578 def test_mutate_vectoroflongs(self):
LOWtests/py_test.py597 def test_mutate_vectorofdoubles(self):
LOWtests/py_test.py607 def test_empty_vectorofdoubles(self):
LOWtests/py_test.py612 def test_mutate_parentnamespacetest(self):
LOWtests/py_test.py2332 def test_default_monster_name(self):
LOWtests/py_test.py2335 def test_default_monster_inventory_item(self):
LOWtests/py_test.py2338 def test_default_monster_inventory_length(self):
LOWtests/py_test.py2342 def test_empty_monster_inventory_vector(self):
LOWtests/py_test.py2391 def test_default_monster_testarrayofstring(self):
LOWtests/py_test.py2394 def test_default_monster_testarrayofstring_length(self):
LOWtests/py_test.py2398 def test_empty_monster_testarrayofstring_vector(self):
LOWtests/py_test.py2474 def test_default_monster_testnestedflatbuffer(self):
LOWtests/py_test.py2477 def test_default_monster_testnestedflatbuffer_length(self):
LOWtests/py_test.py2481 def test_empty_monster_testnestedflatbuffer_vector(self):
LOWtests/py_test.py2811 def test_object_is_nested_error(self):
LOWtests/py_test.py2818 def test_object_is_not_nested_error(self):
LOWtests/py_test.py2824 def test_struct_is_not_inline_error(self):
LOWtests/py_test.py2841 def test_create_shared_string_is_nested_error(self):
LOWtests/py_test.py2849 def test_create_string_is_nested_error(self):
LOWtests/py_test.py2857 def test_create_byte_vector_is_nested_error(self):
LOWtests/py_test.py2865 def test_finished_bytes_error(self):
LOWtests/py_test.py64def create_namespace_shortcut(is_onefile):
LOWtests/py_test.py160 def test_consistency_with_repeated_pack_and_unpack(self):
LOWtests/py_test.py195 def test_default_values_with_pack_and_unpack(self):
LOWtests/py_test.py310 def test_optional_scalars_with_pack_and_unpack(self):
LOWtests/py_test.py371 def _create_and_load_object_class(self, b):
LOWtests/py_test.py510 def test_empty_testarrayoftables(self):
LOWtests/py_test.py522 def test_mutate_testnestedflatbuffer(self):
LOWtests/py_test.py529 def test_empty_testnestedflatbuffer(self):
LOWtests/py_test.py1056 def test_create_ascii_shared_string(self):
LOWtests/py_test.py1112 def test_create_arbitrary_shared_string(self):
LOWtests/py_test.py1179 def test_create_arbitrary_string(self):
LOWtests/py_test.py1203 def test_comparison_of_np_arrays(self):
LOWtests/py_test.py1579 def test_create_numpy_vector_bool(self):
LOWtests/py_test.py1610 def test_create_numpy_vector_reject_strings(self):
LOWtests/py_test.py1628 def test_create_numpy_vector_reject_object(self):
LOWtests/py_test.py1653 def test_vtable_with_one_true_bool(self):
LOWtests/py_test.py1680 def test_vtable_with_one_default_bool(self):
LOWtests/py_test.py1783 def test_vtable_with_empty_vector(self):
LOWtests/py_test.py1814 def test_vtable_with_empty_vector_of_byte_and_some_scalars(self):
LOWtests/py_test.py1975 def test_table_with_some_elements(self):
LOWtests/py_test.py2009 def test__one_unfinished_table_and_one_finished_table(self):
LOWtests/py_test.py2196def make_monster_from_generated_code(
LOWtests/py_test.py2276 def test_default_force_defaults(self):
124 more matches not shown…
Unused Imports49 hits · 48 pts
SeverityFileLineSnippet
LOWpython/flatbuffers/number_types.py15
LOWpython/flatbuffers/encode.py15
LOWpython/flatbuffers/encode.py16
LOWpython/flatbuffers/__init__.py15
LOWpython/flatbuffers/__init__.py16
LOWpython/flatbuffers/__init__.py17
LOWpython/flatbuffers/__init__.py18
LOWpython/flatbuffers/__init__.py19
LOWpython/flatbuffers/builder.py21
LOWpython/flatbuffers/builder.py23
LOWgrpc/tests/grpctest.py1
LOWgrpc/examples/python/greeter/greeter_grpc.fb.py3
LOWgrpc/examples/python/greeter/greeter_grpc.fb.py5
LOWgrpc/examples/python/greeter/greeter_grpc.fb.py6
LOWgrpc/examples/python/greeter/models/greeter_grpc_fb.py3
LOWgrpc/examples/python/greeter/models/greeter_grpc_fb.py6
LOWgrpc/examples/python/greeter/models/greeter_grpc_fb.py7
LOWtests/monster_test_generated.py411
LOWtests/monster_test_generated.py573
LOWtests/monster_test_generated.py656
LOWtests/monster_test_generated.py2120
LOWtests/monster_test_generated.py2120
LOWtests/monster_test_generated.py2936
LOWtests/py_test.py3329
LOWtests/namespace_test/NamespaceC/TableInC.py88
LOWtests/namespace_test/NamespaceA/TableInFirstNS.py143
LOWtests/namespace_test/NamespaceA/SecondTableInA.py68
LOWtests/flatc/flatc_kotlin_tests.py15
LOWtests/flatc/flatc_cpp_tests.py15
LOWtests/flatc/flatc_schema_tests.py16
LOWtests/flatc/flatc_ts_tests.py15
LOWtests/optional_scalars/ScalarStuff.py512
LOWtests/ts/TypeScriptTest.py19
LOWtests/ts/TypeScriptTest.py21
LOWtests/MyGame/MonsterExtra.py248
LOWtests/MyGame/Example/ArrayStruct.py7
LOWtests/MyGame/Example/ArrayStruct.py110
LOWtests/MyGame/Example/NestedStruct.py7
LOWtests/MyGame/Example/NestedStruct.py100
LOWtests/MyGame/Example/StructOfStructsOfStructs.py43
LOWtests/MyGame/Example/StructOfStructs.py53
LOWtests/MyGame/Example/Monster.py1575
LOWtests/MyGame/Example/Monster.py1575
LOWtests/MyGame/Example/LargeArrayStruct.py7
LOWtests/MyGame/Example/LargeArrayStruct.py145
LOWtests/MyGame/Example/TypeAliases.py272
LOWtests/MyGame/Example/Vec3.py54
LOWtests/MyGame/Example/NestedUnion/Test.py7
LOW…/MyGame/Example/NestedUnion/TestSimpleTableWithEnum.py7
Self-Referential Comments44 hits · 46 pts
SeverityFileLineSnippet
MEDIUMpython/flatbuffers/reflection/Field.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMpython/flatbuffers/reflection/Service.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMpython/flatbuffers/reflection/KeyValue.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMpython/flatbuffers/reflection/Object.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMpython/flatbuffers/reflection/Type.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMpython/flatbuffers/reflection/SchemaFile.py24 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMpython/flatbuffers/reflection/RPCCall.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMpython/flatbuffers/reflection/EnumVal.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMpython/flatbuffers/reflection/Enum.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMpython/flatbuffers/reflection/Schema.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMgrpc/examples/python/greeter/models/HelloReply.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMgrpc/examples/python/greeter/models/HelloRequest.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/service_test_generated.py18 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/service_test_generated.py44 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/monster_test_generated.py101 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/monster_test_generated.py168 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/monster_test_generated.py299 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/monster_test_generated.py710 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/monster_test_generated.py821 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/monster_test_generated.py902 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/monster_test_generated.py2738 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/py_test.py2903 # Create a table with the ArrayStruct.
MEDIUMtests/namespace_test/NamespaceC/TableInC.py23 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/namespace_test/NamespaceA/TableInFirstNS.py23 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/namespace_test/NamespaceA/SecondTableInA.py23 """This method is deprecated. Please switch to GetRootAs."""
MEDIUM…amespace_test/NamespaceA/NamespaceB/TableInNestedNS.py23 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/union_name_test/Container.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/union_name_test/Bar.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/union_name_test/Foo.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/optional_scalars/ScalarStuff.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/MonsterExtra.py23 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/InParentNamespace.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/Example2/Monster.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/Example/Referrable.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/Example/ArrayTable.py24 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/Example/Stat.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/Example/Monster.py22 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/Example/TestSimpleTableWithEnum.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/Example/TypeAliases.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/Example/NestedUnion/NestedUnionTest.py24 """This method is deprecated. Please switch to GetRootAs."""
MEDIUM…/MyGame/Example/NestedUnion/TestSimpleTableWithEnum.py22 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMtests/MyGame/Example/NestedUnion/Vec3.py24 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMgoldens/py/flatbuffers/goldens/Galaxy.py21 """This method is deprecated. Please switch to GetRootAs."""
MEDIUMgoldens/py/flatbuffers/goldens/Universe.py21 """This method is deprecated. Please switch to GetRootAs."""
Deep Nesting29 hits · 24 pts
SeverityFileLineSnippet
LOWpython/flatbuffers/builder.py208
LOWpython/flatbuffers/flexbuffers.py46
LOWpython/flatbuffers/flexbuffers.py250
LOWpython/flatbuffers/flexbuffers.py492
LOWpython/flatbuffers/flexbuffers.py638
LOWpython/flatbuffers/flexbuffers.py667
LOWpython/flatbuffers/flexbuffers.py697
LOWpython/flatbuffers/flexbuffers.py857
LOWpython/flatbuffers/flexbuffers.py1154
LOWpython/flatbuffers/flexbuffers.py1403
LOWpython/flatbuffers/flexbuffers.py1538
LOWtests/py_flexbuffers_test.py315
LOWtests/py_flexbuffers_test.py347
LOWtests/py_flexbuffers_test.py416
LOWtests/py_flexbuffers_test.py429
LOWtests/py_flexbuffers_test.py444
LOWtests/py_flexbuffers_test.py457
LOWtests/py_flexbuffers_test.py541
LOWtests/py_flexbuffers_test.py554
LOWtests/py_flexbuffers_test.py591
LOWtests/py_flexbuffers_test.py654
LOWtests/py_flexbuffers_test.py710
LOWtests/py_flexbuffers_test.py731
LOWtests/py_flexbuffers_test.py751
LOWtests/py_flexbuffers_test.py785
LOWtests/py_flexbuffers_test.py862
LOWtests/py_flexbuffers_test.py965
LOWtests/py_flexbuffers_test.py1078
LOWtests/py_test.py832
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippet
MEDIUMpython/flatbuffers/compat.py53# Helper functions to facilitate making numpy optional instead of required
MEDIUMinclude/flatbuffers/vector_downward.h34// Essentially, this supports 2 std::vectors in a single buffer.
MEDIUMtests/cpp17/stringify_util.h17// This contains some utilities/examples for how to leverage the static reflec-
MEDIUMsamples/sample_binary.py19# to facilitate executing this script in the `samples` folder, and to root
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippet
LOWtests/py_test.py99 except Exception as e:
LOWtests/flatc/flatc_test.py130 except Exception as e: