Repository Analysis

facebook/fbthrift

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

5.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of facebook/fbthrift, a C++ project with 2,695 GitHub stars. SynthScan v2.0 examined 843,173 lines of code across 3926 source files, recording 3392 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 5.4 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

5.4
Adjusted Score
5.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.7K
Stars
C++
Language
843.2K
Lines of Code
3.9K
Files
3.4K
Pattern Hits
2026-07-14
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 48HIGH 17MEDIUM 233LOW 3094

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3392 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1536 hits · 1570 pts
SeverityFileLineSnippetContext
LOWthrift/test/py/SimpleJSONReadTest.py71 def test_unicode_in_binary_escape(self):CODE
LOWthrift/test/py/SimpleJSONReadTest.py199 def test_skip_unrecognized_fields(self):CODE
LOW…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py42def _trigger_initial_generated_warning() -> ModuleType:CODE
LOW…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py46def _trigger_nested_generated_warning() -> ModuleType:CODE
LOW…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py51def _install_warning_logging_filter() -> InstagramE2ETestExecutionUUIDFilterShape:CODE
LOW…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py67def _remove_cpython_warning_originals() -> None:CODE
LOW…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py73def _remove_cpython_formatwarning_original() -> None:CODE
LOW…/py/thrift_py_deprecated_warning_reentrancy_e2e_cli.py78def _enable_lazy_import_probe() -> None:CODE
LOWthrift/test/py/TestFastProto.py223 def test_decode_failure_lists_fieldname(self):CODE
LOW…py/thrift_py_deprecated_warning_reentrancy_e2e_test.py54 def test_capturewarnings_filter_reentry_is_gated_in_subprocess(self) -> None:CODE
LOW…py/thrift_py_deprecated_warning_reentrancy_e2e_test.py73 def test_unproven_cpython_hooks_still_use_reentrancy_guard_outside_lazy_import(CODE
LOW…py/thrift_py_deprecated_warning_reentrancy_e2e_test.py94 def test_missing_cpython_originals_use_fallback_during_lazy_import(self) -> None:CODE
LOWthrift/test/py/thrift_py_deprecated_warning_test.py44 def test_no_warning_when_helper_symbol_is_missing(self) -> None:CODE
LOWthrift/test/py/ReprTest.py70 def test_double_underscore_field_repr(self):CODE
LOW…py/thrift_py_deprecated_warning_e2e_test_parameters.py54def non_tty_detailed_warning_cases() -> list[tuple[str, str, str, str, int, str, str]]:CODE
LOW…py/thrift_py_deprecated_warning_e2e_test_parameters.py148def lazy_first_use_warning_cases() -> list[tuple[str, str, str, str, int, str, str]]:CODE
LOW…py/thrift_py_deprecated_warning_e2e_test_parameters.py166def non_tty_filter_exit_cases() -> list[tuple[str, str, str, str, int, str, str]]:CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py140 def test_tty_cli_summary_output(CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py163 def test_force_env_keeps_detailed_warning_on_tty(self) -> None:CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py192 def test_non_tty_filter_exit_behavior(CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py217 def test_lazy_first_use_warning_shape(CODE
LOWthrift/test/py/thrift_py_deprecated_warning_e2e_test.py242 def test_non_tty_detailed_warning_output(CODE
LOWthrift/test/python_capi/parity_test.py55 def test_struct_parity_unset_optional(self) -> None:CODE
LOWthrift/test/python_capi/parity_test.py58 def test_struct_parity_set_optional(self) -> None:CODE
LOWthrift/test/python_capi/parity_test.py65 def test_error_parity_unset_optional(self) -> None:CODE
LOWthrift/test/python_capi/parity_test.py68 def test_error_parity_set_optional(self) -> None:CODE
LOWthrift/test/python_capi/parity_test.py71 def test_marshal_error_isset_deprecated_layout(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py251 def test_roundtrip_iobuf_union(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py272 def test_roundtrip_field_adapted(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py277 def test_roundtrip_type_adapted(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py319 def test_roundtrip_locally_set_fields_constructor(CODE
LOWthrift/test/python_capi/capi_test.py346 def test_roundtrip_locally_set_fields_empty(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py351 def test_roundtrip_annotation_only_isset_struct(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py556 def test_roundtrip_field_adapted(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py561 def test_roundtrip_type_adapted(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py667 def test_serialize_oversized_py_struct(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py675 def test_serialize_oversized_cpp_struct(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py698 def test_template_list_construct(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py706 def test_template_list_extract(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py723 def test_template_set_construct(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py731 def test_template_set_extract(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py741 def test_template_map_construct(self) -> None:CODE
LOWthrift/test/python_capi/capi_test.py749 def test_template_map_extract(self) -> None:CODE
LOWthrift/test/python_capi/cpp_convert/test_convert.py53 def test_union_to_cpp_overflow(self) -> None:CODE
LOW…rift/test/default_values/default_values_python_test.py27 def test_intrinsic_default_values(self) -> None:CODE
LOW…rift/test/default_values/default_values_python_test.py43 def test_custom_default_values(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py46def _assert_serialization_round_trip(CODE
LOWthrift/test/thrift-python/union_test.py238 def test_from_value_ambiguous_int_bool(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py266 def test_from_value_ambiguous_bool_int(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py297 def test_from_value_ambiguous_float_int(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py486 def test_set_nonexistent_field(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py494 def test_union_field_enum_type_annotations(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py862 def test_adapted_types_assignment(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py939 def test_set_nonexistent_field(self) -> None:CODE
LOWthrift/test/thrift-python/union_test.py1052 def test_union_field_enum_type_annotations(self) -> None:CODE
LOWthrift/test/thrift-python/struct_test.py93def _assert_thrift_serialization_round_trip(CODE
LOWthrift/test/thrift-python/struct_test.py190 def test_intrinsic_default_values_for_unqualified_fields(self) -> None:CODE
LOWthrift/test/thrift-python/struct_test.py257 def test_struct_constant_default_for_immutable_struct_field(self) -> None:CODE
LOWthrift/test/thrift-python/struct_test.py313 def test_equality_and_hashability(self) -> None:CODE
LOWthrift/test/thrift-python/struct_test.py419 def test_serialization_round_trip(self) -> None:CODE
1476 more matches not shown…
Over-Commented Block973 hits · 952 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/abstract_types_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/thrift-python/enum_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWthrift/test/thrift-python/schema_evolution_test.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
913 more matches not shown…
Decorative Section Separators209 hits · 686 pts
SeverityFileLineSnippetContext
MEDIUMthrift/lib/python/CMakeLists.txt67# =============================================================================COMMENT
MEDIUMthrift/lib/python/CMakeLists.txt69# =============================================================================COMMENT
MEDIUMthrift/lib/python/CMakeLists.txt103# =============================================================================COMMENT
MEDIUMthrift/lib/python/test/CMakeLists.txt771# ==========================================================================COMMENT
MEDIUMthrift/lib/python/test/CMakeLists.txt773# ==========================================================================COMMENT
MEDIUMthrift/lib/python/test/CMakeLists.txt781# ==========================================================================COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py96# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py367# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py369# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py395# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py397# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py429# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py431# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py513# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py515# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py701# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py703# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py1000# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py1002# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py1080# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/syntax_graph.py1082# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py91# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py95# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py140# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py142# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py254# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py256# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py316# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/runtime_digest.py319# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/_record.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/_record.py87# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_bridge.py153# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_bridge.py162# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py650# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py652# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py87# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py90# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py277# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py279# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py415# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py417# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py459# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py461# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py678# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py680# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py800# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system.py803# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py77# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py79# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py156# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py158# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py221# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py223# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py279# ---------------------------------------------------------------------------COMMENT
MEDIUMthrift/lib/python/schema/type_system_builder.py281# ---------------------------------------------------------------------------COMMENT
149 more matches not shown…
Hallucination Indicators48 hits · 555 pts
SeverityFileLineSnippetContext
CRITICALthrift/test/thrift-python/abstract_types_test.py1282 struct_field=thrift.test.thrift_python.union_test.thrift_types.TestStruct()CODE
CRITICALthrift/test/thrift-python/abstract_types_test.py1290 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 Imports392 hits · 383 pts
SeverityFileLineSnippetContext
LOWthrift/test/py/reserved_keywords_test.py17CODE
LOWthrift/test/py/reserved_keywords_test.py17CODE
LOWthrift/test/py/reserved_keywords_test.py17CODE
LOWthrift/test/py/reserved_keywords_test.py17CODE
LOWthrift/test/py/reserved_keywords_test.py25CODE
LOWthrift/test/py/JSONReaderTest.py17CODE
LOWthrift/test/py/JSONReaderTest.py17CODE
LOWthrift/test/py/JSONReaderTest.py17CODE
LOWthrift/test/py/JSONReaderTest.py17CODE
LOWthrift/test/py/SimpleJSONReadTest.py18CODE
LOWthrift/test/py/SimpleJSONReadTest.py18CODE
LOWthrift/test/py/SimpleJSONReadTest.py18CODE
LOWthrift/test/py/SimpleJSONReadTest.py18CODE
LOWthrift/test/py/TestSocket.py18CODE
LOWthrift/test/py/TestSocket.py18CODE
LOWthrift/test/py/TestSocket.py18CODE
LOWthrift/test/py/TestSocket.py18CODE
LOWthrift/test/py/TestSocket.py31CODE
LOWthrift/test/py/TestSocket.py32CODE
LOWthrift/test/py/TestSocket.py37CODE
LOWthrift/test/py/TestSocket.py39CODE
LOWthrift/test/py/TestOptionalRequired.py17CODE
LOWthrift/test/py/TestOptionalRequired.py17CODE
LOWthrift/test/py/TestOptionalRequired.py17CODE
LOWthrift/test/py/TestOptionalRequired.py17CODE
LOWthrift/test/py/enums_test.py18CODE
LOWthrift/test/py/enums_test.py18CODE
LOWthrift/test/py/enums_test.py18CODE
LOWthrift/test/py/enums_test.py18CODE
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.py17CODE
LOWthrift/test/py/JSONGenerateTest.py17CODE
LOWthrift/test/py/JSONGenerateTest.py17CODE
LOWthrift/test/py/JSONGenerateTest.py17CODE
LOWthrift/test/py/TestFastProto.py17CODE
LOWthrift/test/py/TestFastProto.py17CODE
LOWthrift/test/py/TestFastProto.py17CODE
LOWthrift/test/py/TestFastProto.py17CODE
LOWthrift/test/py/UnionTests.py18CODE
LOWthrift/test/py/UnionTests.py18CODE
LOWthrift/test/py/UnionTests.py18CODE
LOWthrift/test/py/UnionTests.py18CODE
LOWthrift/test/py/kwargs_test.py18CODE
LOWthrift/test/py/kwargs_test.py18CODE
LOWthrift/test/py/kwargs_test.py18CODE
LOWthrift/test/py/kwargs_test.py18CODE
LOWthrift/test/py/adapter_test.py20CODE
LOWthrift/test/py/constants_test.py17CODE
LOWthrift/test/py/constants_test.py17CODE
LOWthrift/test/py/constants_test.py17CODE
LOWthrift/test/py/constants_test.py17CODE
LOWthrift/test/py/TMemoryBufferTest.py18CODE
LOWthrift/test/py/TMemoryBufferTest.py18CODE
LOWthrift/test/py/TMemoryBufferTest.py18CODE
LOWthrift/test/py/TMemoryBufferTest.py18CODE
332 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_source_a:18: thriftpydeprecatedwarning: uses thrift-py-deprecated. migSTRING
HIGH…py/thrift_py_deprecated_warning_e2e_test_parameters.py0\ thrift.test.py.thrift_py_deprecated_warning_e2e_source_a:18: thriftpydeprecatedwarning: uses thrift-py-deprecated. migSTRING
HIGHthrift/test/py/thrift_py_deprecated_warning_e2e_test.py0\ thrift.test.py.thrift_py_deprecated_warning_e2e_source_a:18: thriftpydeprecatedwarning: uses thrift-py-deprecated. migSTRING
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
Deep Nesting62 hits · 60 pts
SeverityFileLineSnippetContext
LOWthrift/test/fuzzer/RandomizerTest.py455CODE
LOWthrift/test/fuzzer/RandomizerTest.py1124CODE
LOWthrift/lib/py/Thrift.py511CODE
LOWthrift/lib/py/Thrift.py313CODE
LOWthrift/lib/py/transport/TSSLSocket.py239CODE
LOWthrift/lib/py/transport/THeaderTransport.py299CODE
LOWthrift/lib/py/transport/THeaderTransport.py437CODE
LOWthrift/lib/py/transport/THeaderTransport.py456CODE
LOWthrift/lib/py/transport/THeaderTransport.py548CODE
LOWthrift/lib/py/transport/TSocket.py287CODE
LOWthrift/lib/py/util/remote.py519CODE
LOWthrift/lib/py/util/remote.py663CODE
LOWthrift/lib/py/util/randomizer.py269CODE
LOWthrift/lib/py/util/randomizer.py872CODE
LOWthrift/lib/py/util/Recursive.py20CODE
LOWthrift/lib/py/util/__init__.py50CODE
LOWthrift/lib/py/util/inspect.py216CODE
LOWthrift/lib/py/util/fuzzer.py438CODE
LOWthrift/lib/py/util/fuzzer.py738CODE
LOWthrift/lib/py/util/fuzzer.py967CODE
LOWthrift/lib/py/util/Decorators.py306CODE
LOWthrift/lib/py/server/TCppServer.py200CODE
LOWthrift/lib/py/protocol/TJSONProtocol.py215CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py255CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py310CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py324CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py398CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py432CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py489CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py605CODE
LOWthrift/lib/py/protocol/TSimpleJSONProtocol.py703CODE
LOWthrift/lib/py/protocol/TProtocol.py173CODE
LOWthrift/lib/py/protocol/TProtocol.py221CODE
LOWthrift/lib/python/metadata.py593CODE
LOWthrift/lib/python/metadata.py120CODE
LOWthrift/lib/python/metadata.py422CODE
LOWthrift/lib/python/test_helpers.py288CODE
LOWthrift/lib/python/benchmark/containers.py180CODE
LOWthrift/lib/python/benchmark/converter.py50CODE
LOWthrift/lib/python/benchmark/struct_memory.py325CODE
LOWthrift/lib/python/test/enums.py270CODE
LOWthrift/lib/python/test/json5_serializer_test.py230CODE
LOWthrift/lib/python/any/test/any_registry.py160CODE
LOWthrift/lib/python/any/test/any_registry.py187CODE
LOWthrift/lib/python/schema/_serializable_builder.py59CODE
LOWthrift/lib/python/schema/runtime_digest.py295CODE
LOWthrift/lib/python/schema/syntax_graph_builder.py189CODE
LOWthrift/lib/python/schema/syntax_graph_builder.py99CODE
LOWthrift/lib/python/schema/syntax_graph_builder.py377CODE
LOWthrift/lib/python/schema/syntax_graph_builder.py596CODE
LOWthrift/lib/python/schema/syntax_graph_builder.py629CODE
LOWthrift/lib/python/schema/type_system_builder.py373CODE
LOWthrift/lib/python/schema/type_system_builder.py405CODE
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…ft/lib/python/schema/tests/test_type_system_builder.py331CODE
LOW…ft/lib/python/schema/tests/test_type_system_builder.py452CODE
LOWthrift/lib/python/client/test/sync_client_test.py203CODE
2 more matches not shown…
Excessive Try-Catch Wrapping47 hits · 54 pts
SeverityFileLineSnippetContext
LOWthrift/test/py/TestSocket.py53 except Exception:CODE
LOWthrift/test/py/TestSocket.py67 except Exception:CODE
LOWthrift/test/py/TestSocket.py81 except Exception:CODE
LOWthrift/test/py/UnionTests.py42 except Exception:CODE
LOWthrift/test/py/TestClientServer.py259 except Exception: # type is undefinedCODE
LOWthrift/test/py-asyncio/test_suite_asyncio.py203 except Exception: # type is undefinedCODE
LOWthrift/test/thrift-python/abstract_types_test.py278 except Exception as ex:CODE
LOWthrift/test/testset/generator_test.py73 except Exception:STRING
LOWthrift/lib/py/async_common.py328 except Exception as ex:CODE
LOWthrift/lib/py/async_common.py396 except Exception:CODE
MEDIUMthrift/lib/py/async_common.py173def close(self):CODE
LOWthrift/lib/py/Thrift.py227 except Exception as e:CODE
LOWthrift/lib/py/transport/TSocket.py70 except Exception:CODE
LOWthrift/lib/py/transport/TSocket.py450 except Exception:CODE
MEDIUMthrift/lib/py/transport/TSocket.py67def unregister(self, fileno):CODE
LOWthrift/lib/py/transport/THttpClient.py149 except Exception as e:CODE
LOWthrift/lib/py/util/remote.py250 except Exception:CODE
MEDIUMthrift/lib/py/util/remote.py394 print("Error: %s" % error_message, file=err_out)CODE
LOWthrift/lib/py/util/remote.py537 except Exception:CODE
LOWthrift/lib/py/util/fuzzer.py408 except Exception:CODE
LOWthrift/lib/py/util/fuzzer.py796 except Exception as e:CODE
MEDIUMthrift/lib/py/util/fuzzer.py260def _try_parse_type(cls, name, type_, val):CODE
LOWthrift/lib/py/util/Decorators.py147 except Exception as e:CODE
LOWthrift/lib/py/util/Decorators.py217 except Exception as e:CODE
LOWthrift/lib/py/util/Decorators.py330 except Exception as e:CODE
MEDIUMthrift/lib/py/util/Decorators.py238def _done(future, processor, handler_ctx, fn_name, oprot, reply_type, seqid, oneCODE
LOWthrift/lib/py/server/TCppServer.py195 except Exception:CODE
MEDIUMthrift/lib/py/server/TCppServer.py89def call_processor(CODE
LOWthrift/lib/py/server/TServer.py206 except Exception as x:CODE
LOWthrift/lib/py/server/test/TAsyncioServerTest.py309 except Exception:CODE
LOWthrift/lib/python/metadata.py154 except Exception:CODE
LOWthrift/lib/python/test/mutable_set_test.py679 except Exception as error:CODE
LOWthrift/lib/python/test/mutable_map_test.py234 except Exception:CODE
LOWthrift/lib/python/test/mutable_map_test.py315 except Exception:CODE
LOWthrift/lib/python/test/mutable_map_test.py492 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.py616 except Exception as error:CODE
LOWthrift/lib/python/test/mutable_list_test.py767 except Exception as error:CODE
LOWthrift/lib/python/test/client_server.py466 except Exception as e:CODE
LOW…ython/server/test/interactions/connection_drop_test.py99 except Exception:CODE
LOW…ython/server/test/interactions/connection_drop_test.py128 except Exception:CODE
LOWthrift/lib/python/schema/type_system_bridge.py383 except Exception:CODE
LOWthrift/lib/py3/testing.py55 except Exception:CODE
LOWthrift/compiler/test/fixture_utils.py257 except Exception as err:CODE
LOWthrift/compiler/test/fixture_test.py81 except Exception:CODE
LOWthrift/conformance/python/rpc_client.py244 except Exception:CODE
LOWthrift/conformance/python/rpc_client.py260 except Exception:CODE
Structural Annotation Overuse19 hits · 37 pts
SeverityFileLineSnippetContext
LOWthrift/lib/go/thrift/processor.go94 // Step 1: Decode message only using Decoder interface and GetResponseHeaders method on the protocol.COMMENT
LOWthrift/lib/go/thrift/processor.go145 // Step 2: Processing the message without using the Protocol.COMMENT
LOWthrift/lib/go/thrift/processor.go167 // Step 3: Write the message using only the Encoder interface and SetRequestHeader method.COMMENT
LOWthrift/lib/py3/test/auto_migrate/enums.py360 # NOTE: The following assertion used to be reversed, but has been failing forCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1407 // Step 2: Fire timeout - run(Timeout) executes and schedules run()COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1413 // Step 3: Cancel BEFORE run() executesCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1416 // Step 4: Now execute run()COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1449 // Step 1: SubscribeCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1452 // Step 2: Fire timeoutCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1458 // Step 3: Cancel before run() executesCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1461 // Step 4: Execute run()COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1502 // Step 2: Fire timeoutCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1508 // Step 3: Cancel before run() executesCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1511 // Step 4: Execute run()COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1491 // Step 1: SubscribeCOMMENT
LOW…rt/rocket/server/test/RocketBiDiClientCallbackTest.cpp848 // Step 1: Server completes the stream direction.COMMENT
LOW…rt/rocket/server/test/RocketBiDiClientCallbackTest.cpp851 // Step 2: ErrorFrame arrives from client — handleFrame dispatches toCOMMENT
LOW…thrift/frame/write/handler/FrameFragmentationHandler.h311 // Step 1: Drain immediate queue.COMMENT
LOW…thrift/frame/write/handler/FrameFragmentationHandler.h336 // Step 2: SRPT — always flush the stream with least remaining bytesCOMMENT
Verbosity Indicators18 hits · 35 pts
SeverityFileLineSnippetContext
LOWthrift/lib/go/thrift/processor.go94 // Step 1: Decode message only using Decoder interface and GetResponseHeaders method on the protocol.COMMENT
LOWthrift/lib/go/thrift/processor.go145 // Step 2: Processing the message without using the Protocol.COMMENT
LOWthrift/lib/go/thrift/processor.go167 // Step 3: Write the message using only the Encoder interface and SetRequestHeader method.COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1407 // Step 2: Fire timeout - run(Timeout) executes and schedules run()COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1413 // Step 3: Cancel BEFORE run() executesCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1416 // Step 4: Now execute run()COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1449 // Step 1: SubscribeCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1452 // Step 2: Fire timeoutCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1458 // Step 3: Cancel before run() executesCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1461 // Step 4: Execute run()COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1502 // Step 2: Fire timeoutCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1508 // Step 3: Cancel before run() executesCOMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1511 // Step 4: Execute run()COMMENT
LOW…m/facebook/thrift/util/MonoTimeoutTransformerTest.java1491 // Step 1: SubscribeCOMMENT
LOW…rt/rocket/server/test/RocketBiDiClientCallbackTest.cpp848 // Step 1: Server completes the stream direction.COMMENT
LOW…rt/rocket/server/test/RocketBiDiClientCallbackTest.cpp851 // Step 2: ErrorFrame arrives from client — handleFrame dispatches toCOMMENT
LOW…thrift/frame/write/handler/FrameFragmentationHandler.h311 // Step 1: Drain immediate queue.COMMENT
LOW…thrift/frame/write/handler/FrameFragmentationHandler.h336 // Step 2: SRPT — always flush the stream with least remaining bytesCOMMENT
AI Slop Vocabulary11 hits · 28 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/util/randomizer.py880 # 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.py53# 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.cpp426 // in the remainer of the connection. However, that is not robust, andCOMMENT
MEDIUMthrift/lib/cpp2/server/peeking/TLSHelper.cpp48 // Definitely not TLSCOMMENT
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.h221 // also be robust in the presence of versioning; the addition of a new,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
HIGHthrift/test/py/JSONReaderTest.py35 struct.readFromJson('{ "data" : null }')CODE
HIGHthrift/test/py/JSONReaderTest.py41 struct.readFromJson('{ "data" : null }')CODE
HIGHthrift/test/py/JSONReaderTest.py46 struct.readFromJson('{ "data" : null }', bad_kwarg=True)CODE
HIGHthrift/test/py/SimpleJSONReadTest.py183 j = '{"aString": "a fancy e looks like \\u00e9", "anotherString": null, "anInteger": 10, "unknownField": null}'CODE
Modern Structural Boilerplate24 hits · 24 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/__init__.py17__all__ = ["Thrift", "TSCons"]CODE
LOWthrift/lib/py/async_common.py54logger = logging.getLogger(__name__)CODE
LOWthrift/lib/py/util/__init__.py24__all__ = ["Serializer", "struct_to_dict", "parse_struct_spec"]CODE
LOWthrift/lib/py/server/__init__.py17__all__ = ["TServer", "TAsyncioServer"]CODE
LOWthrift/lib/py/server/TAsyncioServer.py35__all__ = [CODE
LOWthrift/lib/py/server/TAsyncioServer.py42logger = logging.getLogger(__name__)CODE
LOWthrift/lib/py/protocol/TJSONProtocol.py26__all__ = ["TJSONProtocol", "TJSONProtocolFactory"]CODE
LOWthrift/lib/py/protocol/__init__.py15__all__ = [CODE
LOWthrift/lib/py/protocol/TCompactProtocol.py23__all__ = [CODE
LOWthrift/lib/python/test/mutable_map_test.py77 def set_nested_list(worker_value: int) -> None:CODE
LOWthrift/lib/python/test/mutable_map_test.py95 def set_nested_set(worker_value: int) -> None:CODE
LOWthrift/lib/python/test/mutable_map_test.py417 def set_item(item: tuple[str, int]) -> None:CODE
LOWthrift/lib/python/test/mutable_map_test.py476 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
LOWthrift/lib/python/schema/runtime_digest.py83__all__ = [CODE
LOWthrift/lib/python/schema/type_system.py641 def _set_target_type(self, target_type: TypeRef) -> None:CODE
LOWthrift/lib/python/schema/type_system.py485 def _set_annotations(self, annotations: Mapping[str, SerializableRecord]) -> None:CODE
LOWthrift/lib/python/schema/type_system.py490 def _set_source_info(self, source_info: SourceInfo | None) -> None:CODE
LOWthrift/lib/python/schema/type_system.py550 def _set_fields(self, fields: Sequence[FieldDefinition]) -> None:CODE
LOWthrift/lib/python/schema/type_system.py584 def _set_fields(self, fields: Sequence[FieldDefinition]) -> None:CODE
LOWthrift/lib/python/schema/type_system.py613 def _set_values(self, values: Sequence[EnumValue]) -> None:CODE
LOWthrift/lib/python/reflection/constants_reflection.py67 def _setattr(self: Any, name: str, value: Any) -> None:CODE
LOWthrift/lib/python/reflection/__init__.py21__all__ = ["inspect", "inspectable"]CODE
LOWthrift/lib/py3/__init__.py20__all__ = []CODE
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMthrift/lib/py/Thrift.py629# This function is only used by Torch packages that were built after D49041314 (Sep 7COMMENT
MEDIUMthrift/lib/py/util/remote.py520 # Create the protocol and clientCOMMENT
MEDIUMthrift/lib/py/util/inspect.py165 # This function is not defined by this moduleCOMMENT
MEDIUMthrift/lib/py/util/fuzzer.py525 # Create the protocol and clientCOMMENT
MEDIUMthrift/lib/py/util/fuzzer.py847 # 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.py86 # Create a chained IOBuf: [b"hello"] -> [b"world"]COMMENT
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOWthrift/test/thrift-python/struct_test.py2404 sub_w = TestStructMutable(optional_string="Lorem ipsum")CODE
LOWthrift/lib/rust/any/src/dummy_any.rs25 fn get_dummy_any(dummy_data: &str) -> Self;CODE
LOWthrift/lib/rust/any/src/dummy_any.rs30 fn get_dummy_any(dummy_data: &str) -> any::Any {CODE
LOWthrift/lib/rust/any/src/dummy_any.rs33 name: TypeName::structType(TypeUri::uri(dummy_data.to_string())),CODE
LOWthrift/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.py593CODE
LOWthrift/test/testset/generator.py629CODE
LOWthrift/lib/py/transport/TSSLSocket.py179CODE
LOWthrift/lib/py/server/TAsyncioServer.py50CODE
LOWthrift/lib/python/reflection/services_reflection.py190CODE
LOWthrift/lib/py3/test/auto_migrate/test_auto_migrate.py40CODE
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/async_common.py241 # 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.py64CODE
MEDIUM…lib/python/server/interceptor/test/interceptor_test.py72CODE
MEDIUMthrift/lib/py3/test/stream/test_client.py55CODE
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWthrift/lib/go/thrift/client.go204// Example usage:COMMENT
LOWthrift/lib/cpp2/util/DebugString.h62// Usage example:COMMENT
LOWthrift/lib/cpp2/util/DebugString.h73// Usage example:COMMENT
LOWthrift/lib/cpp2/fast_thrift/bench/perf_harness.sh23# Usage:COMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/util/randomizer.py1017 # Check if this randomizer is already in self.randomizersCOMMENT
LOWthrift/lib/python/test/serializer.py915 # Set fields to their intrinsic default.COMMENT
LOWthrift/lib/py3/test/auto_migrate/serializer.py378 # Set fields to their intrinsic default.COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/Thrift.py81 # TODO: implement asyncComplete for TwistedCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWthrift/lib/py/protocol/TCompactProtocol.py42 def helper(func):CODE