AI Slop Code RIsk Monitor

facebook/fbthrift

Facebook's branch of Apache Thrift, including a new C++ server.

5.4 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for facebook/fbthrift, a C++ project with 2,697 GitHub stars. SynthScan examined 966,045 lines of code across 4255 source files, recording 3889 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 5.4 (Moderate 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.

5.4
Adjusted Signal
5.4
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
2.7K
Stars
C++
Language
966.0K
Lines of Code
4.3K
Files
3.9K
Pattern Hits
2026-10-12
Scan Date
0.03
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 15.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.9/100 · LOW

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

Agent Over-Engineering Ratio 14.0/100 · LOW

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

PR Review Velocity Impact 23.3/100 · LOW

Which changes need focused human review? 3889 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 48HIGH 60MEDIUM 256LOW 3525

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 3889 distinct pattern matches across 24 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.

Hyper-Verbose Identifiers1753 hits · 1794 pts
SeverityFileLineSnippetContext
LOWthrift/test/py/SimpleJSONReadTest.py69 def test_unicode_in_binary_escape(self):CODE
LOWthrift/test/py/SimpleJSONReadTest.py195 def test_skip_unrecognized_fields(self):CODE
LOW⚡…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py41def _trigger_initial_generated_warning() -> ModuleType:CODE
LOW⚡…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py45def _trigger_nested_generated_warning() -> ModuleType:CODE
LOW⚡…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py50def _install_warning_logging_filter() -> InstagramE2ETestExecutionUUIDFilterShape:CODE
LOW⚡…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py66def _remove_cpython_warning_originals() -> None:CODE
LOW⚡…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py72def _remove_cpython_formatwarning_original() -> None:CODE
LOW⚡…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py77def _enable_lazy_import_probe() -> None:CODE
LOWthrift/test/py/TestFastProto.py204 def test_decode_failure_lists_fieldname(self):CODE
LOW…py/thrift_py_deprecated_warning_reentrancy_e2e_test.py62 def test_capturewarnings_filter_reentry_is_gated_in_subprocess(self) -> None:CODE
LOW…py/thrift_py_deprecated_warning_reentrancy_e2e_test.py81 def test_unproven_cpython_hooks_still_use_reentrancy_guard_outside_lazy_import(CODE
LOW…py/thrift_py_deprecated_warning_reentrancy_e2e_test.py102 def test_missing_cpython_originals_use_fallback_during_lazy_import(self) -> None:CODE
LOWthrift/test/py/thrift_py_deprecated_warning_test.py43 def test_no_warning_when_helper_symbol_is_missing(self) -> None:CODE
LOWthrift/test/py/ReprTest.py69 def test_double_underscore_field_repr(self):CODE
LOW…py/thrift_py_deprecated_warning_e2e_test_parameters.py58def non_tty_detailed_warning_cases() -> list[CODE
LOW…py/thrift_py_deprecated_warning_e2e_test_parameters.py254def lazy_first_use_warning_cases() -> list[CODE
LOW…py/thrift_py_deprecated_warning_e2e_test_parameters.py277def non_tty_filter_exit_cases() -> list[CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py35def pty_allocation_is_permitted() -> bool:CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py178 def test_non_force_warning_env_value_is_silent(self) -> None:CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py196 def test_force_can_be_disabled_after_helper_filter_install(self) -> None:CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py218 def test_restored_helper_filter_does_not_become_user_opt_in(self) -> None:CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py289 def test_non_tty_filter_exit_behavior(CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py335 def test_lazy_first_use_warning_shape(CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py381 def test_non_tty_detailed_warning_output(CODE
LOW⚡thrift/test/python_capi/parity_test.py53 def test_struct_parity_unset_optional(self) -> None:CODE
LOW⚡thrift/test/python_capi/parity_test.py56 def test_struct_parity_set_optional(self) -> None:CODE
LOW⚡thrift/test/python_capi/parity_test.py63 def test_error_parity_unset_optional(self) -> None:CODE
LOW⚡thrift/test/python_capi/parity_test.py66 def test_error_parity_set_optional(self) -> None:CODE
LOW⚡thrift/test/python_capi/parity_test.py69 def test_marshal_error_isset_deprecated_layout(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py250 def test_roundtrip_iobuf_union(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py271 def test_roundtrip_field_adapted(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py276 def test_roundtrip_type_adapted(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py318 def test_roundtrip_locally_set_fields_constructor(CODE
LOWthrift/test/python_capi/capi_test.py345 def test_roundtrip_locally_set_fields_empty(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py350 def test_roundtrip_annotation_only_isset_struct(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py555 def test_roundtrip_field_adapted(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py560 def test_roundtrip_type_adapted(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py666 def test_serialize_oversized_py_struct(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py674 def test_serialize_oversized_cpp_struct(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py697 def test_template_list_construct(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py705 def test_template_list_extract(self) -> None:CODE
LOW⚡thrift/test/python_capi/capi_test.py722 def test_template_set_construct(self) -> None:CODE
LOW⚡thrift/test/python_capi/capi_test.py730 def test_template_set_extract(self) -> None:CODE
LOW⚡thrift/test/python_capi/capi_test.py740 def test_template_map_construct(self) -> None:CODE
LOW⚡thrift/test/python_capi/capi_test.py748 def test_template_map_extract(self) -> None:CODE
LOWthrift/test/python_capi/cpp_convert/test_convert.py51 def test_union_to_cpp_overflow(self) -> None:CODE
LOW…rift/test/default_values/default_values_python_test.py26 def test_intrinsic_default_values(self) -> None:CODE
LOW…rift/test/default_values/default_values_python_test.py42 def test_custom_default_values(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py45def _assert_serialization_round_trip(CODE
LOWthrift/test/thrift-python/union_test.py236 def test_from_value_ambiguous_int_bool(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py264 def test_from_value_ambiguous_bool_int(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py295 def test_from_value_ambiguous_float_int(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py484 def test_set_nonexistent_field(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py492 def test_union_field_enum_type_annotations(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py859 def test_adapted_types_assignment(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py936 def test_set_nonexistent_field(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py1049 def test_union_field_enum_type_annotations(self) -> None:CODE
LOWthrift/test/thrift-python/struct_test.py92def _assert_thrift_serialization_round_trip(CODE
LOWthrift/test/thrift-python/struct_test.py189 def test_intrinsic_default_values_for_unqualified_fields(self) -> None:CODE
LOWthrift/test/thrift-python/struct_test.py256 def test_struct_constant_default_for_immutable_struct_field(self) -> None:CODE
1693 more matches not shown…
Over-Commented Block1168 hits · 1146 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/CMakeLists.txt1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/TransportTest.cpp581 // first frame, and then we attempt to read past the end of that frame, andCOMMENT
LOWthrift/test/AdapterTest.cpp21#include <limits>COMMENT
LOWthrift/test/SchemaTest.cpp21#include <thrift/lib/cpp2/schema/detail/Merge.h>COMMENT
LOWthrift/test/AdapterTest.h21#include <map>COMMENT
LOWthrift/test/py/NameConflictsTest.py1#!/usr/bin/env fbpythonCOMMENT
LOWthrift/test/py/reserved_keywords_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…t/test/py/thrift_py_deprecated_warning_e2e_source_a.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/py/JSONReaderTest.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/SimpleJSONReadTest.py1# -*- coding: utf-8 -*-COMMENT
LOWthrift/test/py/TestSocket.py1#!/usr/bin/env pythonCOMMENT
LOW…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/py/TestOptionalRequired.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/enums_test.py1#!/usr/bin/env pythonCOMMENT
LOWthrift/test/py/TestSyntax.py1#!/usr/bin/env pythonCOMMENT
LOWthrift/test/py/JSONGenerateTest.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/TestFastProto.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/UnionTests.py1#!/usr/bin/env pythonCOMMENT
LOWthrift/test/py/HiddenTest.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/kwargs_test.py1#!/usr/bin/env pythonCOMMENT
LOWthrift/test/py/adapter_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…py/thrift_py_deprecated_warning_reentrancy_e2e_test.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/py/constants_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/TMemoryBufferTest.py1#!/usr/bin/env pythonCOMMENT
LOW…est/py/thrift_py_deprecated_warning_e2e_lazy_source.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_cli.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/py/thrift_py_deprecated_warning_test.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/py/UTF8StringTest.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/BigFrameTest.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/enums_py3_test.py1#!/usr/bin/env pythonCOMMENT
LOWthrift/test/py/TestClientServer.py1#!/usr/bin/env pythonCOMMENT
LOWthrift/test/py/Exceptions.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/SerializationTest.py1#!/usr/bin/env pythonCOMMENT
LOWthrift/test/py/TValidatorTest.py1#!/usr/bin/env pythonCOMMENT
LOWthrift/test/py/RecursivePyTest.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/TestAsyncioServer.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/py/adapter_for_tests.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/TestSerializationSorted.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/ReprTest.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/TestDefaultValues.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/py/TestFrameSize.py1#!/usr/bin/env pythonCOMMENT
LOW…py/thrift_py_deprecated_warning_e2e_test_parameters.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/py/TestEof.py1#!/usr/bin/env pythonCOMMENT
LOW…t/test/py/thrift_py_deprecated_warning_e2e_source_b.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/py/TestServer.py1#!/usr/bin/env pythonCOMMENT
LOWthrift/test/py/explicit_module/runtest.sh1#!/bin/bashCOMMENT
LOWthrift/test/py-asyncio/test_suite_asyncio.py1#!/usr/bin/env python3COMMENT
LOWthrift/test/python_capi/parity_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/python_capi/capi_test.py1#!/usr/bin/env fbpythonCOMMENT
LOWthrift/test/python_capi/cpp_convert/test_convert.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/fuzzer/TestFuzzer.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/fuzzer/RandomizerTest.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…rift/test/default_values/default_values_python_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/thrift-python/union_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/thrift-python/struct_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/thrift-python/struct_test.py1961 ):COMMENT
LOWthrift/test/thrift-python/struct_test.py2121 TypeError, "Expected type <class 'str'>, got: <class 'int'>"COMMENT
LOWthrift/test/thrift-python/abstract_types_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
1108 more matches not shown…
Decorative Section Separators228 hits · 742 pts
SeverityFileLineSnippetContext
MEDIUMthrift/lib/python/CMakeLists.txt63# =============================================================================COMMENT
MEDIUMthrift/lib/python/CMakeLists.txt65# =============================================================================COMMENT
MEDIUMthrift/lib/python/CMakeLists.txt99# =============================================================================COMMENT
MEDIUM⚡thrift/lib/python/test/CMakeLists.txt786# ==========================================================================COMMENT
MEDIUM⚡thrift/lib/python/test/CMakeLists.txt788# ==========================================================================COMMENT
MEDIUM⚡thrift/lib/python/test/CMakeLists.txt796# ==========================================================================COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py44# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py46# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py105# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py107# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py376# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py378# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py404# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py406# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py438# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py440# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py522# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py524# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py738# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py740# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py1125# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py1127# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py1205# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py1207# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡thrift/lib/python/schema/runtime_digest.py90# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡thrift/lib/python/schema/runtime_digest.py94# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py141# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py253# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py255# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡thrift/lib/python/schema/runtime_digest.py315# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡thrift/lib/python/schema/runtime_digest.py318# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/_record.py83# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/_record.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/_datum.py240# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/_datum.py242# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/_datum.py386# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/_datum.py388# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡thrift/lib/python/schema/type_system_bridge.py152# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡thrift/lib/python/schema/type_system_bridge.py161# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡thrift/lib/python/schema/type_system.py649# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡thrift/lib/python/schema/type_system.py651# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py54# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py56# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py89# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py276# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py278# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py414# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py416# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py458# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py460# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py677# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py679# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py803# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py806# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py76# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py78# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py155# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py157# ---------------------------------------------------------------------------COMMENT
168 more matches not shown…
Hallucination Indicators48 hits · 555 pts
SeverityFileLineSnippetContext
CRITICALthrift/test/thrift-python/abstract_types_test.py1219 struct_field=thrift.test.thrift_python.union_test.thrift_types.TestStruct()CODE
CRITICALthrift/test/thrift-python/abstract_types_test.py1227 struct_field=thrift.test.thrift_python.union_test.thrift_mutable_types.TestStruct()CODE
CRITICAL…cated/src/test/java/com/facebook/thrift/UnionTest.java221 new com.facebook.thrift.android.test.MySimpleUnion();CODE
CRITICAL⚡…cated/src/test/java/com/facebook/thrift/UnionTest.java243 new com.facebook.thrift.android.test.MySimpleUnion();CODE
CRITICAL⚡…cated/src/test/java/com/facebook/thrift/UnionTest.java252 new com.facebook.thrift.android.test.MySimpleUnion(CODE
CRITICAL⚡…cated/src/test/java/com/facebook/thrift/UnionTest.java254 new com.facebook.thrift.android.test.MySimpleStruct(1L, "blabla"));CODE
CRITICAL⚡…cated/src/test/java/com/facebook/thrift/UnionTest.java258 new com.facebook.thrift.android.test.MySimpleUnion(CODE
CRITICAL⚡…cated/src/test/java/com/facebook/thrift/UnionTest.java265 com.facebook.thrift.javaswift.test.MySimpleUnion.fromCaseOne(1);CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java55 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java61 new com.facebook.thrift.java.test.MySimpleStruct();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java74 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java80 new com.facebook.thrift.java.test.MySimpleStruct();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java94 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java101 new com.facebook.thrift.java.test.MySimpleUnion();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java116 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java139 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java145 new com.facebook.thrift.java.test.SimpleStructTypes();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java171 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java200 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java285 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java342 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java349 new com.facebook.thrift.java.test.SimpleCollectionStruct();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java435 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java450 new com.facebook.thrift.java.test.ComplexNestedStruct();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java567 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java648 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java676 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…st/java/com/facebook/thrift/DeprecatedToSwiftTest.java738 new org.apache.thrift.protocol.TCompactProtocol.Factory();CODE
CRITICAL…src/test/java/com/facebook/thrift/TBaseHelperTest.java121 new com.facebook.thrift.android.test.MySimpleStruct(123L, "toto");CODE
CRITICAL…src/test/java/com/facebook/thrift/TBaseHelperTest.java125 new com.facebook.thrift.android.test.MySimpleStruct(null, "toto");CODE
CRITICAL…src/test/java/com/facebook/thrift/TBaseHelperTest.java140 new com.facebook.thrift.android.test.MySimpleStruct(123L, "toto");CODE
CRITICAL⚡…src/test/java/com/facebook/thrift/TBaseHelperTest.java152 new com.facebook.thrift.android.test.MySimpleStruct(id, name);CODE
CRITICAL⚡…src/test/java/com/facebook/thrift/TBaseHelperTest.java162 com.facebook.thrift.android.test.MySimpleUnion.caseOne(1L);CODE
CRITICAL⚡…src/test/java/com/facebook/thrift/TBaseHelperTest.java172 new com.facebook.thrift.android.test.MySimpleStruct(id, name);CODE
CRITICAL⚡…src/test/java/com/facebook/thrift/TBaseHelperTest.java176 com.facebook.thrift.android.test.MySimpleUnion.caseFour(simpleStruct2);CODE
CRITICAL…src/test/java/com/facebook/thrift/TBaseHelperTest.java189 new com.facebook.thrift.android.test.MySimpleStruct(id, name);CODE
CRITICAL⚡…src/test/java/com/facebook/thrift/TBaseHelperTest.java220 new com.facebook.thrift.android.test.MySimpleStruct(id, name);CODE
CRITICAL⚡…src/test/java/com/facebook/thrift/TBaseHelperTest.java222 com.facebook.thrift.android.test.MySimpleUnion.caseOne(1L);CODE
CRITICAL⚡…src/test/java/com/facebook/thrift/TBaseHelperTest.java224 new com.facebook.thrift.android.test.NestedStruct(myMap, struct2, mySet, myList, union2);CODE
CRITICAL…test/java/com/facebook/thrift/SensitiveStructTest.java37 new com.facebook.thrift.android.test.MySensitiveStruct(123L, password);CODE
CRITICAL…test/java/com/facebook/thrift/SensitiveStructTest.java44 new com.facebook.thrift.javaswift.test.MySensitiveStruct.Builder()CODE
CRITICAL⚡…ated/src/test/java/com/facebook/thrift/StructTest.java193 new com.facebook.thrift.android.test.StructWithOptional(1L, "toto", 2, "titi");CODE
CRITICAL⚡…ated/src/test/java/com/facebook/thrift/StructTest.java196 new com.facebook.thrift.android.test.StructWithOptional(1L, "toto", 2, null);CODE
CRITICAL⚡…ated/src/test/java/com/facebook/thrift/StructTest.java200 new com.facebook.thrift.android.test.StructWithOptional(1L, "toto", null, "titi");CODE
CRITICAL…/facebook/thrift/protocol/TSimpleJSONProtocolTest.java216 new com.facebook.thrift.android.test.EveryLayout.Builder()CODE
CRITICAL…/facebook/thrift/protocol/TSimpleJSONProtocolTest.java255 () -> com.facebook.thrift.android.test.EveryLayout.deserialize(protocol2));CODE
CRITICAL…ebook/thrift/client/ClientRuntimeThriftClientTest.java309 org.junit.jupiter.api.Assertions.assertEquals(CODE
CRITICAL…om/facebook/thrift/util/resources/ResourcesHolder.java63 com.facebook.thrift.util.NettyUtil.createEventLoopGroup(CODE
Unused Imports398 hits · 385 pts
SeverityFileLineSnippetContext
LOWthrift/test/py/reserved_keywords_test.py16CODE
LOWthrift/test/py/reserved_keywords_test.py16CODE
LOWthrift/test/py/reserved_keywords_test.py16CODE
LOWthrift/test/py/reserved_keywords_test.py16CODE
LOWthrift/test/py/reserved_keywords_test.py24CODE
LOWthrift/test/py/JSONReaderTest.py16CODE
LOWthrift/test/py/JSONReaderTest.py16CODE
LOWthrift/test/py/JSONReaderTest.py16CODE
LOWthrift/test/py/JSONReaderTest.py16CODE
LOWthrift/test/py/SimpleJSONReadTest.py17CODE
LOWthrift/test/py/SimpleJSONReadTest.py17CODE
LOWthrift/test/py/SimpleJSONReadTest.py17CODE
LOWthrift/test/py/SimpleJSONReadTest.py17CODE
LOWthrift/test/py/TestSocket.py17CODE
LOWthrift/test/py/TestSocket.py17CODE
LOWthrift/test/py/TestSocket.py17CODE
LOWthrift/test/py/TestSocket.py17CODE
LOWthrift/test/py/TestSocket.py30CODE
LOWthrift/test/py/TestSocket.py31CODE
LOWthrift/test/py/TestSocket.py36CODE
LOWthrift/test/py/TestSocket.py38CODE
LOWthrift/test/py/TestOptionalRequired.py16CODE
LOWthrift/test/py/TestOptionalRequired.py16CODE
LOWthrift/test/py/TestOptionalRequired.py16CODE
LOWthrift/test/py/TestOptionalRequired.py16CODE
LOWthrift/test/py/enums_test.py17CODE
LOWthrift/test/py/enums_test.py17CODE
LOWthrift/test/py/enums_test.py17CODE
LOWthrift/test/py/enums_test.py17CODE
LOWthrift/test/py/TestSyntax.py16CODE
LOWthrift/test/py/TestSyntax.py16CODE
LOWthrift/test/py/TestSyntax.py16CODE
LOWthrift/test/py/TestSyntax.py16CODE
LOWthrift/test/py/TestSyntax.py25CODE
LOWthrift/test/py/TestSyntax.py25CODE
LOWthrift/test/py/JSONGenerateTest.py16CODE
LOWthrift/test/py/JSONGenerateTest.py16CODE
LOWthrift/test/py/JSONGenerateTest.py16CODE
LOWthrift/test/py/JSONGenerateTest.py16CODE
LOWthrift/test/py/TestFastProto.py16CODE
LOWthrift/test/py/TestFastProto.py16CODE
LOWthrift/test/py/TestFastProto.py16CODE
LOWthrift/test/py/TestFastProto.py16CODE
LOWthrift/test/py/UnionTests.py17CODE
LOWthrift/test/py/UnionTests.py17CODE
LOWthrift/test/py/UnionTests.py17CODE
LOWthrift/test/py/UnionTests.py17CODE
LOWthrift/test/py/kwargs_test.py17CODE
LOWthrift/test/py/kwargs_test.py17CODE
LOWthrift/test/py/kwargs_test.py17CODE
LOWthrift/test/py/kwargs_test.py17CODE
LOWthrift/test/py/adapter_test.py19CODE
LOWthrift/test/py/constants_test.py16CODE
LOWthrift/test/py/constants_test.py16CODE
LOWthrift/test/py/constants_test.py16CODE
LOWthrift/test/py/constants_test.py16CODE
LOWthrift/test/py/TMemoryBufferTest.py17CODE
LOWthrift/test/py/TMemoryBufferTest.py17CODE
LOWthrift/test/py/TMemoryBufferTest.py17CODE
LOWthrift/test/py/TMemoryBufferTest.py17CODE
338 more matches not shown…
Empty Error Handlers43 hits · 215 pts
SeverityFileLineSnippetContext
HIGHthrift/test/py/UnionTests.py40except Exception:CODE
HIGHthrift/test/py/TestClientServer.py87except FileNotFoundError:CODE
HIGHthrift/test/py/TestClientServer.py214except Exception: # type is undefinedCODE
HIGHthrift/test/py-asyncio/test_suite_asyncio.py202except Exception: # type is undefinedCODE
HIGHthrift/test/JsonToThriftTest/SimpleJSONToThriftTest.py159except TProtocolException:CODE
HIGHthrift/lib/py/async_common.py395except Exception:CODE
HIGHthrift/lib/py/async_common.py338except KeyError:CODE
HIGHthrift/lib/py/Thrift.py324except UnicodeDecodeError:CODE
HIGHthrift/lib/py/transport/TSocket.py69except Exception:CODE
HIGHthrift/lib/py/util/TCppServerTestManagerTest.py117except TApplicationException:CODE
HIGHthrift/lib/py/util/TCppServerTestManagerTest.py158except UserException2:CODE
HIGHthrift/lib/py/util/TCppServerTestManagerTest.py167except TApplicationException:CODE
HIGHthrift/lib/py/server/TServer.py203except TTransport.TTransportException:CODE
HIGHthrift/lib/py/server/test/SlotsServiceThrowsTest.py58except UserException2:CODE
HIGHthrift/lib/py/server/test/SlotsServiceThrowsTest.py67except TApplicationException:CODE
HIGHthrift/lib/python/test/server.py606except RuntimeError:CODE
HIGHthrift/lib/python/test/sink.py140except (asyncio.CancelledError, Exception):CODE
HIGHthrift/lib/python/test/sink.py458except StopAsyncIteration:CODE
HIGHthrift/lib/python/test/mutable_map_test.py233except Exception:CODE
HIGHthrift/lib/python/test/mutable_map_test.py314except Exception:CODE
HIGHthrift/lib/python/test/bidi.py682except (asyncio.CancelledError, Exception):CODE
HIGHthrift/lib/python/test/interactions/interaction_test.py202except SpecificError:CODE
HIGH…ython/server/test/interactions/connection_drop_test.py118except OSError:CODE
HIGH…ython/server/test/interactions/connection_drop_test.py127except Exception:CODE
HIGHthrift/lib/python/client/__init__.py20except ModuleNotFoundError:CODE
HIGHthrift/lib/python/client/__init__.py28except ModuleNotFoundError:CODE
HIGHthrift/lib/python/client/__init__.py32except ModuleNotFoundError:CODE
HIGHthrift/lib/python/client/__init__.py36except ModuleNotFoundError:CODE
HIGHthrift/lib/python/client/__init__.py40except ModuleNotFoundError:CODE
HIGHthrift/lib/python/client/__init__.py46except ModuleNotFoundError:CODE
HIGHthrift/lib/python/client/test/sync_client_test.py321except TransportError:CODE
HIGHthrift/lib/python/client/test/async_client_test.py571except TransportError:CODE
HIGHthrift/lib/py3/__init__.py26except ModuleNotFoundError:CODE
HIGHthrift/lib/py3/__init__.py39except ModuleNotFoundError:CODE
HIGHthrift/lib/py3/__init__.py47except ModuleNotFoundError:CODE
HIGHthrift/lib/py3/__init__.py55except ModuleNotFoundError:CODE
HIGHthrift/lib/py3/__init__.py68except ModuleNotFoundError:CODE
HIGHthrift/lib/py3/__init__.py76except ModuleNotFoundError:CODE
HIGHthrift/lib/py3/__init__.py84except ModuleNotFoundError:CODE
HIGHthrift/lib/py3/testing.py57except Exception:CODE
HIGHthrift/lib/py3/test/interactions/interaction_test.py130except SpecificError:CODE
HIGHthrift/lib/py3/test/auto_migrate/clients.py241except TransportError:CODE
HIGHthrift/perf/py/asyncio_test_server.py32except asyncio.CancelledError:CODE
Excessive Try-Catch Wrapping56 hits · 64 pts
SeverityFileLineSnippetContext
LOWthrift/test/py/TestSocket.py52 except Exception:CODE
LOWthrift/test/py/TestSocket.py66 except Exception:CODE
LOWthrift/test/py/TestSocket.py80 except Exception:CODE
LOWthrift/test/py/UnionTests.py40 except Exception:CODE
LOWthrift/test/py/TestClientServer.py214 except Exception: # type is undefinedCODE
LOWthrift/test/py-asyncio/test_suite_asyncio.py202 except Exception: # type is undefinedCODE
LOWthrift/test/thrift-python/abstract_types_test.py275 except Exception as ex:CODE
LOWthrift/test/testset/generator_test.py72 except Exception:STRING
LOWthrift/lib/py/async_common.py327 except Exception as ex:CODE
LOWthrift/lib/py/async_common.py395 except Exception:CODE
MEDIUMthrift/lib/py/async_common.py172def close(self):CODE
LOWthrift/lib/py/Thrift.py226 except Exception as e:CODE
LOWthrift/lib/py/transport/TSocket.py69 except Exception:CODE
LOWthrift/lib/py/transport/TSocket.py450 except Exception:CODE
MEDIUMthrift/lib/py/transport/TSocket.py66def unregister(self, fileno):CODE
LOWthrift/lib/py/transport/THttpClient.py148 except Exception as e:CODE
LOWthrift/lib/py/util/remote.py249 except Exception:CODE
MEDIUMthrift/lib/py/util/remote.py393 print("Error: %s" % error_message, file=err_out)CODE
LOWthrift/lib/py/util/remote.py536 except Exception:CODE
LOWthrift/lib/py/util/fuzzer.py407 except Exception:CODE
LOWthrift/lib/py/util/fuzzer.py795 except Exception as e:CODE
MEDIUMthrift/lib/py/util/fuzzer.py259def _try_parse_type(cls, name, type_, val):CODE
LOWthrift/lib/py/util/Decorators.py146 except Exception as e:CODE
LOWthrift/lib/py/util/Decorators.py216 except Exception as e:CODE
LOWthrift/lib/py/util/Decorators.py329 except Exception as e:CODE
MEDIUMthrift/lib/py/util/Decorators.py237def _done(future, processor, handler_ctx, fn_name, oprot, reply_type, seqid, oneCODE
LOWthrift/lib/py/server/TCppServer.py194 except Exception:CODE
MEDIUMthrift/lib/py/server/TCppServer.py88def call_processor(CODE
LOWthrift/lib/py/server/TServer.py205 except Exception as x:CODE
LOWthrift/lib/py/server/test/TAsyncioServerTest.py309 except Exception:CODE
LOWthrift/lib/python/metadata.py155 except Exception:CODE
LOWthrift/lib/python/test/server.py613 except Exception as error:CODE
LOWthrift/lib/python/test/server.py653 except Exception as error:CODE
MEDIUMthrift/lib/python/test/server.py610def run() -> None:CODE
MEDIUMthrift/lib/python/test/server.py650def run() -> None:CODE
LOWthrift/lib/python/test/mutable_set_test.py676 except Exception as error:CODE
LOWthrift/lib/python/test/mutable_map_test.py233 except Exception:CODE
LOWthrift/lib/python/test/mutable_map_test.py314 except Exception:CODE
LOWthrift/lib/python/test/mutable_map_test.py491 except Exception as error:CODE
LOWthrift/lib/python/test/mutable_map_test.py1177 except Exception as error:CODE
LOWthrift/lib/python/test/mutable_list_test.py615 except Exception as error:CODE
LOWthrift/lib/python/test/mutable_list_test.py766 except Exception as error:CODE
LOWthrift/lib/python/test/client_server.py464 except Exception as e:CODE
LOW…ython/server/test/interactions/connection_drop_test.py98 except Exception:CODE
LOW…ython/server/test/interactions/connection_drop_test.py127 except Exception:CODE
LOW…thon/server/execution/test/test_asyncio_worker_pool.py450 except Exception:CODE
LOW…thon/server/execution/test/test_asyncio_worker_pool.py557 except Exception as exception:CODE
LOWthrift/lib/python/schema/type_system_bridge.py382 except Exception:CODE
LOW⚡thrift/lib/python/schema/type_system_bridge.py407 except Exception:CODE
LOWthrift/lib/python/client/test/sync_client_test.py101 except Exception as ex:CODE
LOWthrift/lib/python/client/test/async_client_test.py131 except Exception as ex:CODE
LOWthrift/lib/py3/testing.py57 except Exception:CODE
LOWthrift/compiler/test/fixture_utils.py257 except Exception as err:CODE
LOWthrift/compiler/test/fixture_test.py81 except Exception:CODE
LOW⚡thrift/conformance/python/rpc_client.py244 except Exception:CODE
LOW⚡thrift/conformance/python/rpc_client.py260 except Exception:CODE
Deep Nesting66 hits · 62 pts
SeverityFileLineSnippetContext
LOWthrift/test/fuzzer/RandomizerTest.py425CODE
LOWthrift/test/fuzzer/RandomizerTest.py1093CODE
LOWthrift/lib/py/Thrift.py497CODE
LOWthrift/lib/py/Thrift.py312CODE
LOWthrift/lib/py/transport/TSSLSocket.py238CODE
LOWthrift/lib/py/transport/THeaderTransport.py295CODE
LOWthrift/lib/py/transport/THeaderTransport.py433CODE
LOWthrift/lib/py/transport/THeaderTransport.py452CODE
LOWthrift/lib/py/transport/THeaderTransport.py544CODE
LOWthrift/lib/py/transport/TSocket.py286CODE
LOWthrift/lib/py/util/remote.py518CODE
LOWthrift/lib/py/util/remote.py662CODE
LOWthrift/lib/py/util/randomizer.py268CODE
LOWthrift/lib/py/util/randomizer.py874CODE
LOWthrift/lib/py/util/Recursive.py19CODE
LOWthrift/lib/py/util/__init__.py49CODE
LOWthrift/lib/py/util/inspect.py215CODE
LOWthrift/lib/py/util/fuzzer.py437CODE
LOWthrift/lib/py/util/fuzzer.py737CODE
LOWthrift/lib/py/util/fuzzer.py966CODE
LOWthrift/lib/py/util/Decorators.py305CODE
LOWthrift/lib/py/server/TCppServer.py199CODE
LOWthrift/lib/py/protocol/TJSONProtocol.py214CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py256CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py311CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py325CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py400CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py434CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py491CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py607CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py705CODE
LOWthrift/lib/py/protocol/TProtocol.py172CODE
LOWthrift/lib/py/protocol/TProtocol.py220CODE
LOWthrift/lib/python/metadata.py604CODE
LOWthrift/lib/python/metadata.py118CODE
LOWthrift/lib/python/metadata.py425CODE
LOWthrift/lib/python/test_helpers.py296CODE
LOWthrift/lib/python/benchmark/containers.py179CODE
LOWthrift/lib/python/benchmark/converter.py48CODE
LOWthrift/lib/python/benchmark/struct_memory.py334CODE
LOWthrift/lib/python/test/enums.py277CODE
LOWthrift/lib/python/test/json5_serializer_test.py233CODE
LOWthrift/lib/python/any/test/any_registry.py164CODE
LOWthrift/lib/python/any/test/any_registry.py192CODE
LOWthrift/lib/python/schema/_serializable_builder.py58CODE
LOWthrift/lib/python/schema/runtime_digest.py294CODE
LOWthrift/lib/python/schema/syntax_graph_builder.py197CODE
LOWthrift/lib/python/schema/syntax_graph_builder.py98CODE
LOWthrift/lib/python/schema/syntax_graph_builder.py386CODE
LOWthrift/lib/python/schema/syntax_graph_builder.py636CODE
LOWthrift/lib/python/schema/syntax_graph_builder.py669CODE
LOWthrift/lib/python/schema/service_catalog_digest.py153CODE
LOWthrift/lib/python/schema/type_system_builder.py372CODE
LOWthrift/lib/python/schema/type_system_builder.py404CODE
LOWthrift/lib/python/schema/type_system_digest.py139CODE
LOWthrift/lib/python/schema/type_system_digest.py174CODE
LOWthrift/lib/python/schema/type_system_digest.py199CODE
LOWthrift/lib/python/schema/type_system_digest.py311CODE
LOW…lib/python/schema/tests/test_service_catalog_digest.py221CODE
LOW…ft/lib/python/schema/tests/test_type_system_builder.py330CODE
6 more matches not shown…
Cross-File Repetition12 hits · 60 pts
SeverityFileLineSnippetContext
HIGH…py/thrift_py_deprecated_warning_reentrancy_e2e_test.py0\ thrift.test.py.thrift_py_deprecated_warning_e2e_cli:<line>: thriftpydeprecatedwarning: uses thrift-py-deprecated. migrSTRING
HIGH…py/thrift_py_deprecated_warning_e2e_test_parameters.py0\ thrift.test.py.thrift_py_deprecated_warning_e2e_cli:<line>: thriftpydeprecatedwarning: uses thrift-py-deprecated. migrSTRING
HIGHthrift/test/py/thrift_py_deprecated_warning_e2e_test.py0\ thrift.test.py.thrift_py_deprecated_warning_e2e_cli:<line>: thriftpydeprecatedwarning: uses thrift-py-deprecated. migrSTRING
HIGHthrift/lib/python/test/unions.py0the `setup` method performs these assignments with type hints to enable pyre when using 'parameterized'. otherwise, pyreSTRING
HIGHthrift/lib/python/test/structs.py0the `setup` method performs these assignments with type hints to enable pyre when using 'parameterized'. otherwise, pyreSTRING
HIGHthrift/lib/python/test/serializer.py0the `setup` method performs these assignments with type hints to enable pyre when using 'parameterized'. otherwise, pyreSTRING
HIGHthrift/lib/python/test/exceptions.py0the `setup` method performs these assignments with type hints to enable pyre when using 'parameterized'. otherwise, pyreSTRING
HIGHthrift/lib/python/test/refs.py0the `setup` method performs these assignments with type hints to enable pyre when using 'parameterized'. otherwise, pyreSTRING
HIGHthrift/lib/python/test/iobuf.py0the `setup` method performs these assignments with type hints to enable pyre when using 'parameterized'. otherwise, pyreSTRING
HIGHthrift/lib/python/test/client_server.py0these are tests where a client and server talk to each otherSTRING
HIGH…ython/test/metadata_response/metadata_response_test.py0these are tests where a client and server talk to each otherSTRING
HIGHthrift/lib/py3/test/auto_migrate/client_server.py0these are tests where a client and server talk to each otherSTRING
Structural Annotation Overuse19 hits · 37 pts
SeverityFileLineSnippetContext
LOWthrift/lib/go/thrift/processor.go95 // Step 1: Decode message only using Decoder interface and GetResponseHeaders method on the protocol.COMMENT
LOWthrift/lib/go/thrift/processor.go146 // Step 2: Processing the message without using the Protocol.COMMENT
LOWthrift/lib/go/thrift/processor.go197 // Step 3: Write the message using only the Encoder interface and SetRequestHeader method.COMMENT
LOWthrift/lib/py3/test/auto_migrate/enums.py358 # NOTE: The following assertion used to be reversed, but has been failing forCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1409 // Step 2: Fire timeout - run(Timeout) executes and schedules run()COMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1415 // Step 3: Cancel BEFORE run() executesCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1418 // Step 4: Now execute run()COMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1451 // Step 1: SubscribeCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1454 // Step 2: Fire timeoutCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1460 // Step 3: Cancel before run() executesCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1463 // Step 4: Execute run()COMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1504 // Step 2: Fire timeoutCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1510 // Step 3: Cancel before run() executesCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1513 // Step 4: Execute run()COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1493 // Step 1: SubscribeCOMMENT
LOW⚡…rt/rocket/server/test/RocketBiDiClientCallbackTest.cpp849 // Step 1: Server completes the stream direction.COMMENT
LOW⚡…rt/rocket/server/test/RocketBiDiClientCallbackTest.cpp852 // Step 2: ErrorFrame arrives from client — handleFrame dispatches toCOMMENT
LOW…thrift/frame/write/handler/FrameFragmentationHandler.h355 // Step 1: Drain immediate queue.COMMENT
LOW…thrift/frame/write/handler/FrameFragmentationHandler.h383 // Step 2: SRPT — always flush the stream with least remaining bytesCOMMENT
Verbosity Indicators18 hits · 35 pts
SeverityFileLineSnippetContext
LOWthrift/lib/go/thrift/processor.go95 // Step 1: Decode message only using Decoder interface and GetResponseHeaders method on the protocol.COMMENT
LOWthrift/lib/go/thrift/processor.go146 // Step 2: Processing the message without using the Protocol.COMMENT
LOWthrift/lib/go/thrift/processor.go197 // Step 3: Write the message using only the Encoder interface and SetRequestHeader method.COMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1409 // Step 2: Fire timeout - run(Timeout) executes and schedules run()COMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1415 // Step 3: Cancel BEFORE run() executesCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1418 // Step 4: Now execute run()COMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1451 // Step 1: SubscribeCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1454 // Step 2: Fire timeoutCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1460 // Step 3: Cancel before run() executesCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1463 // Step 4: Execute run()COMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1504 // Step 2: Fire timeoutCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1510 // Step 3: Cancel before run() executesCOMMENT
LOW⚡…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1513 // Step 4: Execute run()COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1493 // Step 1: SubscribeCOMMENT
LOW⚡…rt/rocket/server/test/RocketBiDiClientCallbackTest.cpp849 // Step 1: Server completes the stream direction.COMMENT
LOW⚡…rt/rocket/server/test/RocketBiDiClientCallbackTest.cpp852 // Step 2: ErrorFrame arrives from client — handleFrame dispatches toCOMMENT
LOW…thrift/frame/write/handler/FrameFragmentationHandler.h355 // Step 1: Drain immediate queue.COMMENT
LOW…thrift/frame/write/handler/FrameFragmentationHandler.h383 // Step 2: SRPT — always flush the stream with least remaining bytesCOMMENT
AI Slop Vocabulary13 hits · 34 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/util/randomizer.py882 # If that's the case just return noneCOMMENT
LOWthrift/lib/py/server/test/handler.py45 # simply return the value in OverflowResultCOMMENT
LOWthrift/lib/python/any/any_registry.py51# When storing an empty container, the elem type doesn't matter so we just use bool as placeholderCOMMENT
MEDIUM…transport/core/testutil/TransportCompatibilityTest.cpp56// Timeout used for polling callCompleted_ to make the test more robust.COMMENT
MEDIUM…cpp2/test/server/ThriftServerCustomCompressionTest.cpp436 // in the remainer of the connection. However, that is not robust, andCOMMENT
MEDIUMthrift/lib/cpp2/server/peeking/TLSHelper.cpp48 // Definitely not TLSCOMMENT
MEDIUM…ast_thrift/channel_pipeline/test/PipelineStateTest.cpp325 // Live-instance counter (robust to the moves that carry the state throughCOMMENT
MEDIUMthrift/lib/cpp2/protocol/TableBasedSerializerImpl.h728 // utilize the same search logic with a field info of type TType::T_STOP.COMMENT
MEDIUMthrift/lib/cpp2/frozen/FrozenHashTable-inl.h222 // also be robust in the presence of versioning; the addition of a new,COMMENT
MEDIUMthrift/lib/cpp2/frozen/FrozenHashTable-inl.h345 /// utilize(it->second);COMMENT
MEDIUMthrift/perf/cpp2/server/Server.cpp100 // Essentially infinite time.COMMENT
MEDIUMthrift/perf/cpp2/client/Client.cpp136 // Essentially infinite time.COMMENT
MEDIUM…t/conformance/rpc/server/RpcServerReactiveHandler.java229 // The return type makes no sense here. Definitely a bugCOMMENT
Cross-Language Confusion4 hits · 28 pts
SeverityFileLineSnippetContext
HIGH⚡thrift/test/py/JSONReaderTest.py34 struct.readFromJson('{ "data" : null }')CODE
HIGH⚡thrift/test/py/JSONReaderTest.py40 struct.readFromJson('{ "data" : null }')CODE
HIGH⚡thrift/test/py/JSONReaderTest.py45 struct.readFromJson('{ "data" : null }', bad_kwarg=True)CODE
HIGHthrift/test/py/SimpleJSONReadTest.py179 j = '{"aString": "a fancy e looks like \\u00e9", "anotherString": null, "anInteger": 10, "unknownField": null}'CODE
Modern Structural Boilerplate27 hits · 27 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/__init__.py17__all__ = ["Thrift", "TSCons"]CODE
LOWthrift/lib/py/async_common.py53logger = logging.getLogger(__name__)CODE
LOWthrift/lib/py/util/__init__.py23__all__ = ["Serializer", "struct_to_dict", "parse_struct_spec"]CODE
LOWthrift/lib/py/server/__init__.py17__all__ = ["TServer", "TAsyncioServer"]CODE
LOWthrift/lib/py/server/TAsyncioServer.py34__all__ = [CODE
LOWthrift/lib/py/server/TAsyncioServer.py41logger = logging.getLogger(__name__)CODE
LOWthrift/lib/py/protocol/TJSONProtocol.py25__all__ = ["TJSONProtocol", "TJSONProtocolFactory"]CODE
LOWthrift/lib/py/protocol/__init__.py15__all__ = [CODE
LOWthrift/lib/py/protocol/TCompactProtocol.py22__all__ = [CODE
LOWthrift/lib/python/test/mutable_map_test.py76 def set_nested_list(worker_value: int) -> None:CODE
LOWthrift/lib/python/test/mutable_map_test.py94 def set_nested_set(worker_value: int) -> None:CODE
LOWthrift/lib/python/test/mutable_map_test.py416 def set_item(item: tuple[str, int]) -> None:CODE
LOWthrift/lib/python/test/mutable_map_test.py475 def set_invalid_nested_list(worker_value: int) -> None:CODE
LOWthrift/lib/python/test/mutable_map_test.py1057 def update_invalid_keyword(worker_value: int) -> None:CODE
LOW…/lib/python/schema/service_descriptor_serialization.py81__all__ = ["from_serializable", "to_serializable"]CODE
LOW⚡thrift/lib/python/schema/runtime_digest.py82__all__ = [CODE
LOWthrift/lib/python/schema/service_descriptor.py38__all__ = [CODE
LOWthrift/lib/python/schema/service_catalog_digest.py82__all__ = ["DigestMode", "SERVICE_CATALOG_DIGEST_VERSION", "service_catalog_digest"]CODE
LOW⚡thrift/lib/python/schema/type_system.py640 def _set_target_type(self, target_type: TypeRef) -> None:CODE
LOWthrift/lib/python/schema/type_system.py484 def _set_annotations(self, annotations: Mapping[str, SerializableRecord]) -> None:CODE
LOWthrift/lib/python/schema/type_system.py489 def _set_source_info(self, source_info: SourceInfo | None) -> None:CODE
LOWthrift/lib/python/schema/type_system.py549 def _set_fields(self, fields: Sequence[FieldDefinition]) -> None:CODE
LOWthrift/lib/python/schema/type_system.py583 def _set_fields(self, fields: Sequence[FieldDefinition]) -> None:CODE
LOWthrift/lib/python/schema/type_system.py612 def _set_values(self, values: Sequence[EnumValue]) -> None:CODE
LOWthrift/lib/python/reflection/constants_reflection.py66 def _setattr(self: Any, name: str, value: Any) -> None:CODE
LOWthrift/lib/python/reflection/__init__.py20__all__ = ["inspect", "inspectable"]CODE
LOWthrift/lib/py3/__init__.py19__all__ = []CODE
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMthrift/lib/py/Thrift.py619# This function is only used by Torch packages that were built after D49041314 (Sep 7COMMENT
MEDIUMthrift/lib/py/util/remote.py519 # Create the protocol and clientCOMMENT
MEDIUMthrift/lib/py/util/inspect.py164 # This function is not defined by this moduleCOMMENT
MEDIUMthrift/lib/py/util/fuzzer.py524 # Create the protocol and clientCOMMENT
MEDIUMthrift/lib/py/util/fuzzer.py846 # Create a spec_args tuple for the method args struct typeCOMMENT
MEDIUMthrift/lib/python/test_helpers.py53# This module contains helper functions suitable for migrating customer testsCOMMENT
MEDIUMthrift/lib/python/test/iobuf.py85 # Create a chained IOBuf: [b"hello"] -> [b"world"]COMMENT
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOWthrift/test/thrift-python/struct_test.py2402 sub_w = TestStructMutable(optional_string="Lorem ipsum")CODE
LOW⚡thrift/lib/rust/any/src/dummy_any.rs25 fn get_dummy_any(dummy_data: &str) -> Self;CODE
LOW⚡thrift/lib/rust/any/src/dummy_any.rs30 fn get_dummy_any(dummy_data: &str) -> any::Any {CODE
LOW⚡thrift/lib/rust/any/src/dummy_any.rs33 name: TypeName::structType(TypeUri::uri(dummy_data.to_string())),CODE
LOW⚡thrift/lib/rust/any/src/dummy_any.rs37 data: dummy_data.into(),CODE
LOWthrift/lib/java/runtime/src/test/resources/lorem.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum id sem eget tellus interdum bibendum. Curabitur pharCODE
LOWthrift/lib/java/runtime/src/test/resources/lorem.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum id sem eget tellus interdum bibendum. Curabitur pharCODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHthrift/lib/cpp/test/loadgen/Worker.h194 // Only send as fast as requestedCOMMENT
AI Structural Patterns6 hits · 6 pts
SeverityFileLineSnippetContext
LOWthrift/test/testset/generator.py592CODE
LOWthrift/test/testset/generator.py628CODE
LOWthrift/lib/py/transport/TSSLSocket.py178CODE
LOWthrift/lib/py/server/TAsyncioServer.py49CODE
LOWthrift/lib/python/reflection/services_reflection.py189CODE
LOWthrift/lib/py3/test/auto_migrate/test_auto_migrate.py39CODE
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/async_common.py240 # Don't forget to implement connection_made/connection_lost in yourCOMMENT
LOWthrift/lib/cpp/transport/TBufferTransports.h959 // Don't forget to update constructors, initCommon, and swap ifCOMMENT
LOW…2/transport/core/testutil/TransportCompatibilityTest.h41 // Don't forget to start the server before running the tests.COMMENT
LOW…2/transport/core/testutil/TransportCompatibilityTest.h80 // Don't forget to start the server before running the tests.COMMENT
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMthrift/lib/python/test/stream.py63CODE
MEDIUM…lib/python/server/interceptor/test/interceptor_test.py72CODE
MEDIUMthrift/lib/py3/test/stream/test_client.py54CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/util/randomizer.py1019 # Check if this randomizer is already in self.randomizersCOMMENT
LOWthrift/lib/python/test/serializer.py953 # Set fields to their intrinsic default.COMMENT
LOWthrift/lib/py3/test/auto_migrate/serializer.py377 # Set fields to their intrinsic default.COMMENT
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWthrift/lib/go/thrift/client.go204// Example usage:COMMENT
LOWthrift/lib/cpp2/util/DebugString.h51// Usage example:COMMENT
LOW⚡thrift/lib/cpp2/fast_thrift/bench/perf_harness.sh23# Usage:COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/Thrift.py80 # TODO: implement asyncComplete for TwistedCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/protocol/TCompactProtocol.py41 def helper(func):CODE