Repository Analysis

apache/thrift

Apache Thrift

3.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of apache/thrift, a C++ project with 10,934 GitHub stars. SynthScan v2.0 examined 346,323 lines of code across 1876 source files, recording 1238 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 3.9 places this repository in the Likely human-written band.

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

3.9
Adjusted Score
3.9
Raw Score
100%
Time Factor
2026-07-13
Last Push
10.9K
Stars
C++
Language
346.3K
Lines of Code
1.9K
Files
1.2K
Pattern Hits
2026-07-14
Scan Date
0.01
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 2HIGH 10MEDIUM 17LOW 1209

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 1238 distinct pattern matches across 20 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.

Over-Commented Block848 hits · 834 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1#COMMENT
LOWappveyor.yml1#COMMENT
LOWappveyor.yml121COMMENT
LOWappveyor.yml141# commands to see why something failed...COMMENT
LOWbootstrap.sh1#!/bin/shCOMMENT
LOW.travis.yml1#COMMENT
LOW.travis.yml161 - SCRIPT="covscan.sh"COMMENT
LOWtutorial/py.twisted/PythonServer.py1#!/usr/bin/env pythonCOMMENT
LOWtutorial/py.twisted/PythonClient.py1#!/usr/bin/env pythonCOMMENT
LOWtutorial/py/PythonServer.py1#!/usr/bin/env pythonCOMMENT
LOWtutorial/py/PythonClient.py1#!/usr/bin/env pythonCOMMENT
LOWtutorial/dart/build.sh1#!/bin/shCOMMENT
LOWtutorial/dart/server/pubspec.yaml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtutorial/dart/server/bin/main.dart1/// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtutorial/dart/console_client/pubspec.yaml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtutorial/dart/console_client/bin/main.dart1/// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtutorial/dart/client/pubspec.yaml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtutorial/dart/client/web/client.dart1/// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtutorial/haxe/make_all.sh1#!/bin/shCOMMENT
LOWtutorial/perl/PerlClient.pl1#!/usr/bin/env perlCOMMENT
LOWtutorial/perl/PerlServer.pl1#!/usr/bin/env perlCOMMENT
LOWtutorial/netstd/build.sh1#!/usr/bin/env bashCOMMENT
LOWtutorial/netstd/Server/Program.cs1// Licensed to the Apache Software Foundation(ASF) under oneCOMMENT
LOWtutorial/netstd/Server/Properties/AssemblyInfo.cs1// Licensed to the Apache Software Foundation(ASF) under oneCOMMENT
LOWtutorial/netstd/Client/Program.cs1// Licensed to the Apache Software Foundation(ASF) under oneCOMMENT
LOWtutorial/netstd/Client/Properties/AssemblyInfo.cs1// Licensed to the Apache Software Foundation(ASF) under oneCOMMENT
LOWtutorial/netstd/Interfaces/GlobalSuppressions.cs1// Licensed to the Apache Software Foundation(ASF) under oneCOMMENT
LOWtutorial/netstd/Interfaces/Properties/AssemblyInfo.cs1// Licensed to the Apache Software Foundation(ASF) under oneCOMMENT
LOWtutorial/rs/src/lib.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtutorial/rs/src/bin/tutorial_client.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtutorial/rs/src/bin/tutorial_server.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtutorial/c_glib/c_glib_server.c21#include <signal.h>COMMENT
LOWtutorial/php/runserver.py1#!/usr/bin/env pythonCOMMENT
LOWtutorial/cpp/CppServer.cpp21#include <thrift/concurrency/ThreadFactory.h>COMMENT
LOWtutorial/cpp/CMakeLists.txt1#COMMENT
LOWtutorial/erl/server.sh1#!/bin/shCOMMENT
LOWtutorial/erl/client.sh1#!/bin/shCOMMENT
LOWtutorial/py.tornado/PythonServer.py1#!/usr/bin/env pythonCOMMENT
LOWtutorial/py.tornado/PythonClient.py1#!/usr/bin/env pythonCOMMENT
LOWtutorial/rb/RubyClient.rb1#!/usr/bin/env rubyCOMMENT
LOWtutorial/rb/RubyServer.rb1#!/usr/bin/env rubyCOMMENT
LOWtest/test.py1#!/usr/bin/env python3COMMENT
LOWtest/py.twisted/test_suite.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/CMakeLists.txt1#COMMENT
LOWtest/py/TestSocket.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/util.py1#COMMENT
LOWtest/py/TestSyntax.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/TSimpleJSONProtocolTest.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/TestFrozen.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/TestTypes.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/RunClientServer.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/TestRenderedDoubleConstants.py1#COMMENT
LOWtest/py/TestClient.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/SerializationTest.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/FastbinaryTest.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/TestEof.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/TestServer.py1#!/usr/bin/env pythonCOMMENT
LOWtest/py/explicit_module/runtest.sh1#!/bin/bashCOMMENT
LOWtest/py/explicit_module/EnumSerializationTest.py1#!/usr/bin/env pythonCOMMENT
LOWtest/go/src/common/printing_handler.go41 fmt.Println("testVoid()")COMMENT
788 more matches not shown…
Hyper-Verbose Identifiers209 hits · 222 pts
SeverityFileLineSnippetContext
LOWtest/py/TestFrozen.py41 def test_dict_is_hashable_only_after_frozen(self):CODE
LOWtest/py/TestFrozen.py47 def test_struct_with_collection_fields(self):CODE
LOWtest/py/TestFrozen.py107 def test_frozen_exception_with_no_fields(self):CODE
LOWtest/py/TestFrozen.py110 def test_frozen_exception_serialization(self):CODE
LOWtest/py/TestRenderedDoubleConstants.py40 def test_rendered_double_constants(self):CODE
LOWtest/py/TestRenderedDoubleConstants.py160 def test_rendered_double_list(self):CODE
LOWtest/py/explicit_module/EnumSerializationTest.py39def serialization_deserialization_struct_enum_test():CODE
LOWtest/py/explicit_module/EnumSerializationTest.py48def serialization_deserialization_struct_enum_as_string_test():CODE
LOWtest/py/explicit_module/EnumSerializationTest.py57def serialization_deserialization_exception_enum_as_string_test():CODE
LOWtest/py/explicit_module/EnumSerializationTest.py66def serialization_deserialization_exception_enum_test():CODE
LOWtest/crossrunner/report.py300 def _print_unexpected_failure(self):CODE
LOWtest/crossrunner/report.py324 def _print_unexpected_success(self):CODE
LOWlib/py/test/thrift_TZlibTransport.py72 def test_after_flushd_write_then_read(self):CODE
LOWlib/py/test/thrift_TZlibTransport.py98 def test_decompressed_size_limit_exceeded(self):CODE
LOWlib/py/test/thrift_TZlibTransport.py115 def test_decompressed_size_limit_not_exceeded(self):CODE
LOWlib/py/test/test_sasl_transport.py64 def test_open_with_none_initial_response(self):CODE
LOWlib/py/test/test_sasl_transport.py81 def test_open_with_bytes_initial_response(self):CODE
LOWlib/py/test/test_sasl_transport.py95 def test_open_complete_with_challenge(self):CODE
LOWlib/py/test/test_sasl_transport.py108 def test_open_complete_without_challenge(self):CODE
LOWlib/py/test/test_sasl_transport.py121 def test_open_bad_status_raises(self):CODE
LOWlib/py/test/test_sasl_transport.py133 def test_open_incomplete_after_complete_status_raises(self):CODE
LOWlib/py/test/test_sasl_transport.py146 def test_open_process_raises_during_complete(self):CODE
LOWlib/py/test/thrift_TBinaryProtocol.py356 def test_skip_rejects_deeply_nested_struct(self):CODE
LOWlib/py/test/thrift_TBinaryProtocol.py364 def test_skip_accepts_struct_within_depth_limit(self):CODE
LOWlib/py/test/test_immutable_exception.py147 def test_immutable_exception_is_hashable(self):CODE
LOWlib/py/test/test_immutable_exception.py153 def test_immutable_exception_blocks_modification(self):CODE
LOWlib/py/test/test_immutable_exception.py160 def test_immutable_exception_blocks_deletion(self):CODE
LOWlib/py/test/test_immutable_exception.py167 def test_immutable_exception_binary_protocol(self):CODE
LOWlib/py/test/test_immutable_exception.py174 def test_immutable_exception_compact_protocol(self):CODE
LOWlib/py/test/test_immutable_exception.py181 def test_mutable_exception_can_be_modified(self):CODE
LOWlib/py/test/test_immutable_exception.py209 def test_immutable_exception_binary_accelerated(self):CODE
LOWlib/py/test/test_immutable_exception.py221 def test_immutable_exception_compact_accelerated(self):CODE
LOWlib/py/test/test_socket.py34 def test_failed_connection_raises_exception(self):CODE
LOWlib/py/test/test_socket.py44 def test_socket_readtimeout_exception(self):CODE
LOWlib/py/test/test_recursion_depth.py125 def test_exception_type_over_limit(self):CODE
LOWlib/py/test/test_recursion_depth.py130 def test_depth_restored_after_exception(self):CODE
LOWlib/py/test/test_recursion_depth.py192 def test_write_over_limit_accelerated(self):CODE
LOWlib/py/test/thrift_json.py36 def test_escaped_unicode_string(self):CODE
LOWlib/py/test/test_sslsocket.py142 def _assert_connection_failure(self, server, path=None, **client_args):CODE
LOWlib/py/test/test_sslsocket.py162 def _assert_connection_success(self, server, path=None, **client_args):CODE
LOWlib/py/test/test_sslsocket.py196 def test_set_cert_reqs_by_validate(self):CODE
LOWlib/py/test/test_sslsocket.py208 def test_set_validate_by_cert_reqs(self):CODE
LOWlib/py/test/test_sslsocket.py355 def test_match_hostname_is_from_sslcompat(self):CODE
LOWlib/py/test/test_sslsocket.py363 def test_match_hostname_rejects_mismatch(self):CODE
LOWlib/py/test/thrift_transport.py111 def test_decompression_bomb_blocked(self):CODE
LOWlib/py/test/thrift_transport.py119 def test_payload_at_limit_passes(self):CODE
LOWlib/py/test/thrift_transport.py125 def test_set_max_decompressed_size_rejects_invalid(self):CODE
LOWlib/py/test/test_compiler/test_keyword_escape.py64def test_keyword_escape_compilation():CODE
LOWlib/py/src/transport/THeaderTransport.py138 def set_max_decompressed_size(self, size):CODE
LOWlib/py/src/protocol/TProtocol.py54 def increment_recursion_depth(self):CODE
LOWlib/py/src/protocol/TProtocol.py61 def decrement_recursion_depth(self):CODE
LOW…java/org/apache/thrift/THttpClientResponseHandler.java13public class THttpClientResponseHandler implements HttpClientResponseHandler<InputStream> {CODE
LOWlib/php/test/Unit/Lib/TMultiplexedProcessorTest.php37 public function testProcessDispatchesToRegisteredService(): voidCODE
LOWlib/php/test/Unit/Lib/TMultiplexedProcessorTest.php83 public function testProcessRejectsUnexpectedMessageType(): voidCODE
LOWlib/php/test/Unit/Lib/TMultiplexedProcessorTest.php104 public function testProcessRequiresServiceSeparator(): voidCODE
LOWlib/php/test/Unit/Lib/TMultiplexedProcessorTest.php125 public function testProcessRequiresKnownServiceName(): voidCODE
LOWlib/php/test/Unit/Lib/StoredMessageProtocolTest.php34 public function testReadMessageBeginReturnsStoredValues(): voidCODE
LOW…php/test/Unit/Lib/Serializer/TBinarySerializerTest.php48 public function testSerializeAndDeserialize($stringVal, $intVal)CODE
LOW…php/test/Unit/Lib/Serializer/TBinarySerializerTest.php66 public static function serializeDeserializeDataProvider()CODE
LOW…php/test/Unit/Lib/Serializer/TBinarySerializerTest.php102 public function testDeserializeWithCustomBufferSize()CODE
149 more matches not shown…
Synthetic Comment Markers10 hits · 65 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md116## AI generated content ##COMMENT
HIGHAGENTS.md20- **Generative AI output**: The [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) CODE
HIGHlib/rs/README.md42The Rust library and auto-generated code targets Rust versions 1.28+.CODE
HIGHlib/rs/README.md199 Previously, enum variants were uppercased in the auto-generated code.CODE
HIGHlib/rs/README.md252All library code, test code and auto-generated code compiles and passes clippyCODE
HIGHlib/rs/README.md256* `clippy` with default settings does not output any warnings (includes auto-generated code)COMMENT
HIGHlib/rs/src/errors.rs38/// 3. `Application`: errors encountered within auto-generated codeCOMMENT
HIGHlib/rs/src/errors.rs178 /// Errors encountered within auto-generated code, or when incomingCOMMENT
HIGHlib/rs/src/errors.rs563/// Information about errors in auto-generated code or in user-implementedCOMMENT
HIGHlib/rs/src/errors.rs606 /// Auto-generated code failed unexpectedly.COMMENT
Excessive Try-Catch Wrapping50 hits · 57 pts
SeverityFileLineSnippetContext
LOWtest/py/TestSocket.py40 except Exception:CODE
LOWtest/py/TestSocket.py54 except Exception:CODE
LOWtest/py/TestSocket.py68 except Exception:CODE
LOWtest/py/RunClientServer.py192 except Exception as exc:CODE
LOWtest/py/TestClient.py297 except Exception as e:CODE
LOWtest/py/TestServer.py280 except Exception:CODE
LOWtest/py/TestServer.py374 except Exception:CODE
LOWtest/crossrunner/run.py126 except Exception:CODE
LOWtest/crossrunner/run.py260 except Exception:CODE
LOWtest/crossrunner/run.py265 except Exception:CODE
LOWtest/crossrunner/report.py192 except Exception as ex:CODE
LOWtest/features/string_limit.py73 except Exception:CODE
LOWtest/features/container_limit.py83 except Exception:CODE
LOWcontrib/zeromq/TZmqServer.py41 except Exception:CODE
LOWcontrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py62 except Exception:CODE
LOWcontrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py72 except Exception:CODE
LOWcontrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py83 except Exception:CODE
LOWcontrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py94 except Exception:CODE
MEDIUMlib/py/setup.py151 print("An error occurred while trying to compile with the C extension enabled")CODE
LOWlib/py/test/thrift_TCompactProtocol.py301 except Exception as e:CODE
MEDIUMlib/py/test/thrift_TCompactProtocol.py225def test_TCompactProtocol_write_read(self):CODE
LOWlib/py/test/thrift_TBinaryProtocol.py295 except Exception as e:CODE
LOWlib/py/test/thrift_TBinaryProtocol.py335 except Exception as e:CODE
MEDIUMlib/py/test/thrift_TBinaryProtocol.py208def setUp(self):CODE
LOWlib/py/test/test_sslsocket.py84 except Exception:CODE
LOWlib/py/test/fuzz/fuzz_common.py83 except Exception:CODE
LOWlib/py/test/fuzz/fuzz_common.py121 except Exception:CODE
LOWlib/py/src/TTornado.py199 except Exception:CODE
MEDIUMlib/py/src/TTornado.py60def _lock_context(self):CODE
LOWlib/py/src/transport/TTransport.py171 except Exception as e:CODE
MEDIUMlib/py/src/transport/TTransport.py168def write(self, buf):CODE
LOWlib/py/src/transport/TSSLSocket.py300 except Exception as ex:CODE
LOWlib/py/src/transport/TSSLSocket.py315 except Exception as ex:CODE
LOWlib/py/src/transport/TSSLSocket.py405 except Exception:CODE
MEDIUMlib/py/src/transport/TSSLSocket.py275def close(self):CODE
LOWlib/py/src/server/TServer.py105 except Exception as x:CODE
LOWlib/py/src/server/TServer.py132 except Exception as x:CODE
LOWlib/py/src/server/TServer.py154 except Exception as x:CODE
LOWlib/py/src/server/TServer.py181 except Exception as x:CODE
LOWlib/py/src/server/TServer.py204 except Exception as x:CODE
LOWlib/py/src/server/TServer.py218 except Exception as x:CODE
LOWlib/py/src/server/TServer.py229 except Exception as x:CODE
LOWlib/py/src/server/TServer.py298 except Exception as e:CODE
LOWlib/py/src/server/TServer.py310 except Exception as x:CODE
MEDIUMlib/py/src/server/TServer.py251def try_close(file):CODE
LOWlib/py/src/server/TProcessPoolServer.py72 except Exception as x:CODE
LOWlib/py/src/server/TProcessPoolServer.py87 except Exception as x:CODE
LOWlib/py/src/server/TProcessPoolServer.py108 except Exception as x:CODE
LOWlib/py/src/server/TProcessPoolServer.py119 except Exception as x:CODE
LOWlib/py/src/server/TNonblockingServer.py61 except Exception:CODE
Unused Imports36 hits · 36 pts
SeverityFileLineSnippetContext
LOWtest/py/TestSyntax.py23CODE
LOWtest/py/TestSyntax.py24CODE
LOWtest/py/explicit_module/EnumSerializationTest.py22CODE
LOWtest/crossrunner/__init__.py20CODE
LOWtest/crossrunner/__init__.py21CODE
LOWtest/crossrunner/__init__.py21CODE
LOWtest/crossrunner/__init__.py22CODE
LOWtest/crossrunner/__init__.py23CODE
LOWtest/crossrunner/__init__.py23CODE
LOWtest/features/util.py23CODE
LOWtest/features/string_limit.py26CODE
LOWtest/features/theader_binary.py27CODE
LOWtest/features/container_limit.py26CODE
LOWcontrib/async-test/test-leaf.py24CODE
LOWcontrib/async-test/test-leaf.py25CODE
LOWcontrib/zeromq/TZmqClient.py19CODE
LOWcontrib/fb303/py/setup.py22CODE
LOWcontrib/fb303/py/setup.py24CODE
LOWcontrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py26CODE
LOWcontrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py32CODE
LOWcontrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py33CODE
LOWlib/py/test/thrift_TCompactProtocol.py20CODE
LOWlib/py/test/thrift_TZlibTransport.py24CODE
LOWlib/py/test/thrift_TBinaryProtocol.py24CODE
LOWlib/py/test/thrift_TBinaryProtocol.py210CODE
LOWlib/py/test/test_immutable_exception.py195CODE
LOWlib/py/test/test_socket.py26CODE
LOWlib/py/test/test_recursion_depth.py32CODE
LOWlib/py/test/test_recursion_depth.py142CODE
LOWlib/py/test/thrift_THeaderProtocol.py23CODE
LOWlib/py/test/thrift_json.py22CODE
LOWlib/py/test/thrift_TNonblockingServer.py28CODE
LOWlib/py/test/test_sslsocket.py33CODE
LOWlib/py/test/thrift_transport.py25CODE
LOWlib/py/test/thrift_TSerializer.py29CODE
LOWlib/py/src/transport/sslcompat.py69CODE
Deep Nesting35 hits · 35 pts
SeverityFileLineSnippetContext
LOWtutorial/py.twisted/PythonServer.py52CODE
LOWtutorial/py/PythonServer.py49CODE
LOWtutorial/py.tornado/PythonServer.py50CODE
LOWtest/py/RunClientServer.py267CODE
LOWtest/py/TestClient.py458CODE
LOWtest/py/TestClient.py38CODE
LOWtest/py/TestServer.py249CODE
LOWtest/crossrunner/collect.py58CODE
LOWtest/crossrunner/collect.py85CODE
LOWtest/crossrunner/collect.py66CODE
LOWtest/crossrunner/run.py154CODE
LOWtest/crossrunner/run.py85CODE
LOWtest/crossrunner/run.py115CODE
LOWtest/crossrunner/run.py157CODE
LOWtest/crossrunner/report.py423CODE
LOWcontrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py112CODE
LOWlib/py/test/thrift_TCompactProtocol.py38CODE
LOWlib/py/test/thrift_TCompactProtocol.py121CODE
LOWlib/py/test/test_socket.py62CODE
LOWlib/py/test/fuzz/fuzz_common.py26CODE
LOWlib/py/src/TRecursive.py28CODE
LOWlib/py/src/TTornado.py182CODE
LOWlib/py/src/Thrift.py113CODE
LOWlib/py/src/Thrift.py139CODE
LOWlib/py/src/transport/TTransport.py377CODE
LOWlib/py/src/transport/TTwisted.py154CODE
LOWlib/py/src/transport/THttpClient.py37CODE
LOWlib/py/src/server/TServer.py250CODE
LOWlib/py/src/server/TNonblockingServer.py133CODE
LOWlib/py/src/server/TNonblockingServer.py322CODE
LOWlib/py/src/server/TNonblockingServer.py362CODE
LOWlib/py/src/protocol/TJSONProtocol.py272CODE
LOWlib/py/src/protocol/TProtocol.py419CODE
LOWlib/py/src/protocol/TProtocol.py202CODE
LOWlib/py/src/protocol/TProtocol.py336CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICAL…/src/main/java/org/apache/thrift/partial/Validate.java223 org.apache.commons.lang3.Validate.isTrue(expression, format, args);CODE
CRITICAL…/src/main/java/org/apache/thrift/partial/Validate.java227 org.apache.commons.lang3.Validate.validState(expression, format, args);CODE
Modern Structural Boilerplate16 hits · 16 pts
SeverityFileLineSnippetContext
LOWcontrib/fb303/py/fb303_scripts/__init__.py20__all__ = ['fb303_simple_mgmt']CODE
LOWlib/py/src/__init__.py20__all__ = ['Thrift', 'TSCons']CODE
LOWlib/py/src/TTornado.py32__all__ = ['TTornadoServer', 'TTornadoStreamTransport']CODE
LOWlib/py/src/TTornado.py34logger = logging.getLogger(__name__)CODE
LOWlib/py/src/transport/TSSLSocket.py32logger = logging.getLogger(__name__)CODE
LOWlib/py/src/transport/__init__.py20__all__ = ['TTransport', 'TSocket', 'THttpClient', 'TZlibTransport']CODE
LOWlib/py/src/transport/TSocket.py29logger = logging.getLogger(__name__)CODE
LOWlib/py/src/transport/sslcompat.py25logger = logging.getLogger(__name__)CODE
LOWlib/py/src/server/__init__.py20__all__ = ['TServer', 'TNonblockingServer']CODE
LOWlib/py/src/server/TServer.py29logger = logging.getLogger(__name__)CODE
LOWlib/py/src/server/TProcessPoolServer.py28logger = logging.getLogger(__name__)CODE
LOWlib/py/src/server/TNonblockingServer.py40__all__ = ['TNonblockingServer']CODE
LOWlib/py/src/server/TNonblockingServer.py42logger = logging.getLogger(__name__)CODE
LOWlib/py/src/protocol/TJSONProtocol.py27__all__ = ['TJSONProtocol',CODE
LOWlib/py/src/protocol/__init__.py20__all__ = ['fastbinary', 'TBase', 'TBinaryProtocol', 'TCompactProtocol',CODE
LOWlib/py/src/protocol/TCompactProtocol.py24__all__ = ['TCompactProtocol', 'TCompactProtocolFactory']CODE
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMtutorial/py/PythonClient.py46 # Create a client to use the protocol encoderCOMMENT
MEDIUMlib/py/test/fuzz/fuzz_common.py75 # Create a memory buffer with the fuzzed dataCOMMENT
MEDIUMlib/py/test/fuzz/fuzz_common.py105 # Create a memory buffer with the fuzzed dataCOMMENT
MEDIUMlib/rb/spec/header_transport_spec.rb222 # Create a framed binary messageCOMMENT
MEDIUMlib/rb/spec/header_transport_spec.rb235 # Create an unframed binary message (version word first)COMMENT
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMcontrib/Rebus/ServiceImpl/Both.cs31 // specific containers (one per Thrift service) to leverage Rebus' handler routingCOMMENT
MEDIUMcontrib/transport-sample/client/client.cpp4// Quick n Dirty example, may not have very robust error handlingCOMMENT
MEDIUM.github/workflows/build.yml555 # The harness throws and Sys.exit(1)s on a failed assertion, so a failingCOMMENT
LOWlib/py/src/transport/THeaderTransport.py175 # if we've determined this is an unframed client, just pass the readCOMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWlib/py/test/test_compiler/test_keyword_escape.py47 # Check if we're in the source tree with built compilerCOMMENT
LOWlib/netstd/runfuzzer.sh30# Check if a fuzzer name and type were providedCOMMENT
LOWlib/rb/lib/thrift/protocol/json_protocol.rb290 # Check if regular character, backslash escaped, or JSON escapedCOMMENT
LOWlib/rb/lib/thrift/protocol/json_protocol.rb694 # Check if we hit the end of the listCOMMENT
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
LOWlib/cpp/src/thrift/transport/TBufferTransports.h767 // Don't forget to update constrctors, initCommon, and swap ifCOMMENT
LOWlib/cpp/src/thrift/async/TEvhttpServer.cpp75 // Don't forget to unregister before destorying this TEvhttpServer.COMMENT
MEDIUMlib/rb/ext/extconf.rb36 # with other gems. To explicitly export symbols you can use RUBY_FUNC_EXPORTEDCOMMENT
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWlib/netstd/buildfuzzers.sh89# Step 1: Generate C# code from FuzzTest.thriftCOMMENT
LOWlib/netstd/buildfuzzers.sh103# Step 2: Build all fuzzer projectsCOMMENT
LOWlib/netstd/buildfuzzers.sh131# Step 3: Instrument the assembliesCOMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWlib/netstd/buildfuzzers.sh89# Step 1: Generate C# code from FuzzTest.thriftCOMMENT
LOWlib/netstd/buildfuzzers.sh103# Step 2: Build all fuzzer projectsCOMMENT
LOWlib/netstd/buildfuzzers.sh131# Step 3: Instrument the assembliesCOMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWlib/go/test/tests/header_zlib_test.go117 const text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doCODE
LOWlib/go/test/tests/header_zlib_test.go117 const text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doCODE
LOWlib/go/thrift/binary_protocol_test.go35Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sit ametCODE
LOWlib/go/thrift/binary_protocol_test.go35Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sit ametCODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtest/audit/thrift_audit_test.pl200# -----------------------------------------------------------------------------------------------------COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…td/Tests/Thrift.Tests/Collections/TCollectionsTests.cs32 //TODO: Add tests for IEnumerable with objects and primitive values insideCOMMENT
LOWlib/rb/ext/compact_protocol.c67// TODO: implement thisCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlib/rb/lib/thrift/protocol/header_protocol.rb29 # Example usage:COMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlib/py/src/transport/TZlibTransport.py203CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlib/py/src/protocol/TCompactProtocol.py38 def helper(func):CODE