AI Slop Code Risk Monitor

apache/pulsar

SlopCodeMonitor badge for apache/pulsar Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Apache Pulsar - distributed pub-sub messaging system

2.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for apache/pulsar, a Java project with 15,353 GitHub stars. SynthScan examined 1,321,530 lines of code across 5926 source files, recording 888 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 2.9 (Low pattern signal); it is not an authorship estimate.

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

2.9
Adjusted Signal
2.9
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
15.4K
Stars
Java
Language
1.3M
Lines of Code
5.9K
Files
888
Pattern Hits
2026-10-31
Scan Date
0.05
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 2.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 11.2/100 · LOW

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

Agent Over-Engineering Ratio 0.5/100 · LOW

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

PR Review Velocity Impact 12.4/100 · LOW

Which changes need focused human review? 888 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 281HIGH 12MEDIUM 12LOW 583

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 888 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators281 hits · 3102 pts
SeverityFileLineSnippetContext
CRITICAL…g/apache/pulsar/websocket/proxy/ProxyRoleAuthTest.java392 org.apache.pulsar.common.policies.data.ClusterData.builder()CODE
CRITICAL…g/apache/pulsar/websocket/proxy/ProxyRoleAuthTest.java406 org.apache.pulsar.common.policies.data.TenantInfoImpl.builder()CODE
CRITICAL…ction/pendingack/impl/MetadataPendingAckStoreTest.java206 new org.apache.pulsar.broker.transaction.metadata.TxnEvent(CODE
CRITICAL…ction/pendingack/impl/MetadataPendingAckStoreTest.java233 new org.apache.pulsar.broker.transaction.metadata.TxnEvent(CODE
CRITICAL…ction/pendingack/impl/MetadataPendingAckStoreTest.java285 return new org.apache.pulsar.metadata.api.ScanConsumer() {CODE
CRITICAL…saction/buffer/impl/MetadataTransactionBufferTest.java266 new org.apache.pulsar.broker.transaction.metadata.SegmentWatermark(5, 0),CODE
CRITICAL…saction/buffer/impl/MetadataTransactionBufferTest.java291 new org.apache.pulsar.broker.transaction.metadata.SegmentWatermark(5, 0),CODE
CRITICAL…saction/buffer/impl/MetadataTransactionBufferTest.java473 new org.apache.pulsar.broker.transaction.metadata.SegmentWatermark(5, 0),CODE
CRITICAL…saction/buffer/impl/MetadataTransactionBufferTest.java548 new org.apache.pulsar.broker.transaction.metadata.SegmentWatermark(5, 0),CODE
CRITICAL…saction/buffer/impl/MetadataTransactionBufferTest.java583 new org.apache.pulsar.metadata.api.ScanConsumer() {CODE
CRITICAL…lsar/broker/loadbalance/SimpleLoadManagerImplTest.java297 new org.apache.pulsar.policies.data.loadbalancer.LoadReport();CODE
CRITICAL…lsar/broker/loadbalance/SimpleLoadManagerImplTest.java374 new org.apache.pulsar.policies.data.loadbalancer.LoadReport();CODE
CRITICAL…lsar/broker/loadbalance/SimpleLoadManagerImplTest.java427 new org.apache.pulsar.policies.data.loadbalancer.LoadReport();CODE
CRITICAL…lsar/broker/loadbalance/SimpleLoadManagerImplTest.java431 new org.apache.pulsar.policies.data.loadbalancer.LoadReport();CODE
CRITICAL…xtensions/AntiAffinityNamespaceGroupExtensionTest.java99 org.apache.commons.lang3.reflect.FieldUtils.readDeclaredField(antiAffinityGroupPolicyHelper,CODE
CRITICAL…sar/broker/resourcegroup/ResourceGroupServiceTest.java92 new org.apache.pulsar.common.policies.data.ResourceGroup();CODE
CRITICAL…sar/broker/resourcegroup/ResourceGroupServiceTest.java152 new org.apache.pulsar.common.policies.data.ResourceGroup();CODE
CRITICAL…sar/broker/resourcegroup/ResourceGroupServiceTest.java166 new org.apache.pulsar.common.policies.data.ResourceGroup();CODE
CRITICAL…sar/broker/resourcegroup/ResourceGroupServiceTest.java281 service.resourceGroupCreate(rg, new org.apache.pulsar.common.policies.data.ResourceGroup());CODE
CRITICAL…sar/broker/resourcegroup/ResourceGroupServiceTest.java350 rgs.resourceGroupCreate(rgName, new org.apache.pulsar.common.policies.data.ResourceGroup());CODE
CRITICAL…sar/broker/resourcegroup/ResourceGroupServiceTest.java430 rgs.resourceGroupCreate(rg, new org.apache.pulsar.common.policies.data.ResourceGroup());CODE
CRITICAL…sar/broker/resourcegroup/ResourceGroupServiceTest.java471 rgs.resourceGroupCreate(rg, new org.apache.pulsar.common.policies.data.ResourceGroup());CODE
CRITICAL…sar/broker/resourcegroup/ResourceGroupServiceTest.java507 rgs.resourceGroupCreate(rg, new org.apache.pulsar.common.policies.data.ResourceGroup());CODE
CRITICAL…r/resourcegroup/ResourceGroupUsageAggregationTest.java252 new org.apache.pulsar.common.policies.data.ResourceGroup();CODE
CRITICAL…broker/resourcegroup/ResourceGroupRateLimiterTest.java44 new org.apache.pulsar.common.policies.data.ResourceGroup();CODE
CRITICAL…ker/resourcegroup/RGUsageMTAggrWaitForAllMsgsTest.java783 new org.apache.pulsar.common.policies.data.ResourceGroup();CODE
CRITICAL…/org/apache/pulsar/broker/admin/TopicPoliciesTest.java4756 org.apache.pulsar.common.util.ObjectMapperFactory.getThreadLocal().writeValueAsBytes(policies),CODE
CRITICAL…e/pulsar/broker/admin/FunctionsConnectorsListTest.java119 org.apache.pulsar.broker.admin.v2.Functions resource = new org.apache.pulsar.broker.admin.v2.Functions();CODE
CRITICAL…che/pulsar/broker/intercept/BrokerInterceptorTest.java286 jakarta.ws.rs.core.Response.noContent().build().getStatus());CODE
CRITICAL…va/org/apache/pulsar/broker/service/ServerCnxTest.java1664 registration.complete(new org.apache.pulsar.broker.service.scalable.ConsumerAssignment(CODE
CRITICAL…va/org/apache/pulsar/broker/service/ServerCnxTest.java1727 new org.apache.pulsar.broker.service.scalable.ConsumerAssignment(CODE
CRITICAL⚡…roker/service/OpenTelemetryTracingIntegrationTest.java150 io.opentelemetry.api.common.AttributeKey.stringKey("messaging.system")), "pulsar");CODE
CRITICAL⚡…roker/service/OpenTelemetryTracingIntegrationTest.java159 io.opentelemetry.api.common.AttributeKey.stringKey("messaging.system")), "pulsar");CODE
CRITICAL⚡…roker/service/OpenTelemetryTracingIntegrationTest.java161 io.opentelemetry.api.common.AttributeKey.stringKey("messaging.pulsar.acknowledgment.type")),CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java200 io.opentelemetry.api.common.AttributeKey.stringKey("messaging.destination.name")))CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java314 io.opentelemetry.api.common.AttributeKey.stringKey("messaging.pulsar.acknowledgment.type")),CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java362 io.opentelemetry.api.common.AttributeKey.stringKey(CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java416 io.opentelemetry.api.common.AttributeKey.stringKey(CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java476 io.opentelemetry.api.common.AttributeKey.stringKey("messaging.destination.name")))CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java575 io.opentelemetry.api.common.AttributeKey.stringKey(CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java680 io.opentelemetry.api.common.AttributeKey.stringKey(CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java734 io.opentelemetry.api.common.AttributeKey.stringKey(CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java806 io.opentelemetry.api.common.AttributeKey.stringKey(CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java870 io.opentelemetry.api.common.AttributeKey.stringKey("messaging.system")));CODE
CRITICAL…roker/service/OpenTelemetryTracingIntegrationTest.java872 io.opentelemetry.api.common.AttributeKey.stringKey("messaging.system")), "pulsar");CODE
CRITICAL…schema/ProtobufNativeSchemaCompatibilityCheckTest.java33 getSchemaData(org.apache.pulsar.client.api.schema.proto.Test.TestMessage.getDescriptor());CODE
CRITICAL…schema/ProtobufNativeSchemaCompatibilityCheckTest.java36 getSchemaData(org.apache.pulsar.client.api.schema.proto.Test.SubMessage.getDescriptor());CODE
CRITICAL…ulsar/broker/service/scalable/AutoScaleConfigTest.java62 org.apache.pulsar.common.policies.data.AutoScalePolicyOverride.builder()CODE
CRITICAL…ulsar/broker/service/scalable/AutoScaleConfigTest.java67 org.apache.pulsar.common.policies.data.AutoScalePolicyOverride.builder()CODE
CRITICAL…ulsar/broker/service/scalable/AutoScaleConfigTest.java97 org.apache.pulsar.common.policies.data.AutoScalePolicyOverride.builder()CODE
CRITICAL…/broker/service/scalable/ScalableTopicServiceTest.java615 new org.apache.pulsar.common.scalable.SegmentLoadStats(1, 1, 1, 1)).get();CODE
CRITICAL⚡…oker/service/scalable/ScalableTopicControllerTest.java1069 org.apache.pulsar.common.scalable.SegmentInfo seg0 = new org.apache.pulsar.common.scalable.SegmentInfo(CODE
CRITICAL⚡…oker/service/scalable/ScalableTopicControllerTest.java1071 org.apache.pulsar.common.scalable.HashRange.of(0x0000, 0x3FFF),CODE
CRITICAL⚡…oker/service/scalable/ScalableTopicControllerTest.java1076 org.apache.pulsar.common.scalable.SegmentInfo seg1 = new org.apache.pulsar.common.scalable.SegmentInfo(CODE
CRITICAL⚡…oker/service/scalable/ScalableTopicControllerTest.java1078 org.apache.pulsar.common.scalable.HashRange.of(0x4000, 0x7FFF),CODE
CRITICAL⚡…oker/service/scalable/ScalableTopicControllerTest.java1082 org.apache.pulsar.common.scalable.SegmentInfo seg2 = new org.apache.pulsar.common.scalable.SegmentInfo(CODE
CRITICAL⚡…oker/service/scalable/ScalableTopicControllerTest.java1084 org.apache.pulsar.common.scalable.HashRange.of(0x8000, 0xFFFF),CODE
CRITICAL…oker/service/scalable/ScalableTopicControllerTest.java1149 new org.apache.pulsar.client.admin.PulsarAdminException.NotFoundException(CODE
CRITICAL…oker/service/scalable/ScalableTopicControllerTest.java1166 new org.apache.pulsar.client.admin.PulsarAdminException(CODE
CRITICAL…oker/service/scalable/ScalableTopicControllerTest.java1186 new org.apache.pulsar.client.admin.PulsarAdminException(CODE
221 more matches not shown…
Over-Commented Block406 hits · 405 pts
SeverityFileLineSnippetContext
LOW.asf.yaml1#COMMENT
LOWcodecov.yml1#COMMENT
LOWdocker/get-version.sh1#!/usr/bin/env bashCOMMENT
LOWdocker/publish.sh1#!/usr/bin/env bashCOMMENT
LOWdocker/build.sh1#!/usr/bin/env bashCOMMENT
LOWdocker/pulsar/scripts/apply-config-from-env.py1#!/usr/bin/env python3COMMENT
LOWdocker/pulsar/scripts/gen-yml-from-env.py1#!/usr/bin/env python3COMMENT
LOWdocker/pulsar/scripts/update-ini-from-env.py1#!/usr/bin/env python3COMMENT
LOWdocker/pulsar/scripts/generate-zookeeper-config.sh1#!/usr/bin/env bashCOMMENT
LOWdocker/pulsar/scripts/update-rocksdb-conf-from-env.py1#!/usr/bin/env python3COMMENT
LOW…er/pulsar/scripts/apply-config-from-env-with-prefix.py1#!/usr/bin/env bashCOMMENT
LOW…er/pulsar/scripts/apply-config-from-env-with-prefix.py21############################################################COMMENT
LOWdocker/pulsar/scripts/watch-znode.py1#!/usr/bin/env python3COMMENT
LOWdocker/pulsar/scripts/pulsar-zookeeper-ruok.sh1#!/usr/bin/env bashCOMMENT
LOW…ar/build-scripts/remove-unnecessary-native-binaries.sh1#!/usr/bin/env shCOMMENT
LOW…saction/buffer/impl/MetadataTransactionBufferTest.java241 // visible — orphans are eliminated by the publish-path ordering reversal (op-recordCOMMENT
LOW…saction/buffer/impl/MetadataTransactionBufferTest.java481 assertThat(tb.getOngoingTxnCount()).isOne();COMMENT
LOW…ance/extensions/ExtensibleLoadManagerImplBaseTest.java201 protected void initializeState() throws Exception {COMMENT
LOW…dbalance/extensions/ExtensibleLoadManagerImplTest.java1601 Awaitility.await().atMost(30, TimeUnit.SECONDS).untilAsserted(() -> {COMMENT
LOW…/service/SystemTopicBasedTopicPoliciesServiceTest.java561 // The reader.close() above drives readMorePoliciesAsync() into cleanPoliciesCacheInitMap(), which logsCOMMENT
LOW…/service/SystemTopicBasedTopicPoliciesServiceTest.java901 }COMMENT
LOW…pulsar/broker/service/PersistentMessageFinderTest.java861 for (int i = 0; i < totalEntries; i++) {COMMENT
LOW…apache/pulsar/broker/service/OneWayReplicatorTest.java2021 throw new RuntimeException("mock error");COMMENT
LOW…ce/extensions/channel/ServiceUnitStateChannelImpl.java1141 }COMMENT
LOW…org/apache/pulsar/broker/namespace/OwnershipCache.java121 // Normal ownership releases remove the registration before releasing the lock.COMMENT
LOW…va/org/apache/pulsar/broker/namespace/OwnedBundle.java161COMMENT
LOW…va/org/apache/pulsar/broker/service/BrokerService.java2021 String tlsFactoryClassName, String tlsFactoryConfig) {COMMENT
LOW…va/org/apache/pulsar/broker/service/BrokerService.java4821 // racing a controller-driven delete (post-prune retention GC, force-delete, or theCOMMENT
LOW…nt/PersistentStickyKeyDispatcherMultipleConsumers.java501 acquirePermitsForDeliveredMessages(topic, cursor, totalEntries, totalMessagesSent, totalBytesSent);COMMENT
LOW…nt/PersistentStickyKeyDispatcherMultipleConsumers.java721 }COMMENT
LOW…/pulsar/broker/service/persistent/PersistentTopic.java1541 return;COMMENT
LOW…r/broker/service/scalable/ScalableTopicController.java1061 // Parent-drain ordering matters only for STREAM consumers (Exclusive per-segmentCOMMENT
LOW…lsar/broker/service/scalable/ScalableTopicService.java281 new IllegalArgumentException("numInitialSegments must be >= 1"));COMMENT
LOW…stats/prometheus/metrics/PrometheusTextFormatUtil.java61 // quantile="0.75"} NaNCOMMENT
LOWpulsar-function-go/golangci.yml1#COMMENT
LOWpulsar-function-go/pb/Request.pb.go1//COMMENT
LOWpulsar-function-go/pb/Function.pb.go1//COMMENT
LOWpulsar-function-go/pb/InstanceCommunication_grpc.pb.go1//COMMENT
LOWpulsar-function-go/pb/doc.go1//COMMENT
LOWpulsar-function-go/pb/doc.go21// uses for the client/broker wire protocol.COMMENT
LOWpulsar-function-go/pb/generate.sh1#!/usr/bin/env bashCOMMENT
LOWpulsar-function-go/pb/generate.sh21# Bash script to automate the generation of the api package using Docker.COMMENT
LOWpulsar-function-go/pb/generate.sh101// distributed with this work for additional informationCOMMENT
LOWpulsar-function-go/pb/generate.sh161cat <<EOF >"${outDir}/doc.go"COMMENT
LOWpulsar-function-go/pb/generate.sh181// Package ${pkg} provides the protocol buffer messages that PulsarCOMMENT
LOWpulsar-function-go/pb/InstanceCommunication.pb.go1//COMMENT
LOWpulsar-function-go/pb/InstanceCommunication.pb.go61 //COMMENT
LOWpulsar-function-go/pf/function_test.go1//COMMENT
LOWpulsar-function-go/pf/producerConfig.go1//COMMENT
LOWpulsar-function-go/pf/producerConfig.go41// pulsar.BatcherBuilderType. Anything other than "KEY_BASED" maps to the default batcher, matchingCOMMENT
LOWpulsar-function-go/pf/producerConfig.go61// BatchingSpec.BatchingMaxPublishDelayMs BatchingMaxPublishDelayCOMMENT
LOWpulsar-function-go/pf/instanceConf.go1//COMMENT
LOWpulsar-function-go/pf/topicName.go1//COMMENT
LOWpulsar-function-go/pf/instance.go1//COMMENT
LOWpulsar-function-go/pf/nackDelay_test.go1//COMMENT
LOWpulsar-function-go/pf/util_test.go1//COMMENT
LOWpulsar-function-go/pf/topicName_test.go1//COMMENT
LOWpulsar-function-go/pf/mockMessage_test.go1//COMMENT
LOWpulsar-function-go/pf/util.go1//COMMENT
LOWpulsar-function-go/pf/producerConfig_test.go1//COMMENT
346 more matches not shown…
Hyper-Verbose Identifiers73 hits · 77 pts
SeverityFileLineSnippetContext
LOW…pache/pulsar/socks5/handler/CommandRequestHandler.java40public class CommandRequestHandler extends SimpleChannelInboundHandler<DefaultSocks5CommandRequest> {CODE
LOW…/pulsar/socks5/handler/PasswordAuthRequestHandler.java32public class PasswordAuthRequestHandler extends SimpleChannelInboundHandler<DefaultSocks5PasswordAuthRequest> {CODE
LOW…pache/pulsar/socks5/handler/InitialRequestHandler.java31public class InitialRequestHandler extends SimpleChannelInboundHandler<DefaultSocks5InitialRequest> {CODE
LOWtests/performance/serve-reports.py43class ReportRequestHandler(http.server.SimpleHTTPRequestHandler):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py158 def test_defaults_when_no_producer_spec(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py166 def test_defaults_when_producer_spec_has_no_batching_spec(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py175 def test_batching_can_be_disabled(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py183 def test_full_batching_spec_is_translated(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py213 def test_pending_message_limits_are_translated(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py221 def test_pending_message_limits_omitted_when_unset(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py228 def test_producer_spec_batch_builder_is_honoured(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py234 def test_batching_spec_batch_builder_overrides_producer_spec(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py244 def test_unknown_batch_builder_falls_back_to_default(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py250 def test_none_function_details_yields_defaults(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py272 def test_defaults_are_unchanged_without_a_producer_spec(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py282 def test_batching_disabled_reaches_the_producer(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py289 def test_batching_settings_reach_the_producer(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py335 def test_defaults_are_unchanged_without_a_producer_spec(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py341 def test_batching_disabled_reaches_the_producer(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py347 def test_batching_settings_reach_the_producer(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py357 def test_batch_builder_reaches_the_producer(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py380 def test_positive_delay_is_forwarded(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py384 def test_unset_delay_is_omitted(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py390 def test_explicit_zero_is_omitted(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py393 def test_result_is_splattable_into_subscribe_kwargs(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py440 def test_policy_reaches_the_topics_to_serde_path(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py448 def test_policy_reaches_the_input_specs_path(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py457 def test_policy_reaches_the_regex_path(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py464 def test_policy_reaches_subscribe_for_a_non_shared_consumer_type(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py536 def test_no_retry_details_means_no_policy(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py540 def test_policy_built_from_retry_details(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py549 def test_empty_dead_letter_topic_defers_to_client_default(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py566 def test_zero_retries_fails_fast(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py576 def test_negative_retries_fails_fast(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py581 def test_policy_is_not_gated_on_subscription_type(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py641 def test_action_is_omitted_without_a_crypto_spec(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py648 def test_unset_action_in_a_present_crypto_spec_keeps_the_client_default(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py655 def test_discard_is_forwarded(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py661 def test_consume_is_forwarded(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py667 def test_producer_only_send_falls_back_to_fail(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py675 def test_result_is_splattable_into_subscribe_kwargs(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py684 def test_action_reaches_subscribe_on_the_input_specs_paths(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py720 def test_unset_crypto_spec_yields_no_reader_and_no_error(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py730 def test_partial_default_reader_config_still_logs_an_error(self):CODE
LOW⚡…tions/instance/src/test/python/test_python_instance.py739 def test_custom_reader_class_without_config_is_built_with_no_arguments(self):CODE
LOW…tions/instance/src/test/python/test_python_instance.py84 def test_context_ack_partitionedtopic(self):CODE
LOW…tions/instance/src/test/python/test_python_instance.py140 def test_do_not_forward_properties(self):CODE
LOW…tions/instance/src/test/python/test_python_instance.py200 def test_non_positive_values_fall_back_to_client_defaults(self):CODE
LOW…tions/instance/src/test/python/test_python_instance.py305 def test_key_based_batch_builder_still_reaches_the_producer(self):CODE
LOW…tions/instance/src/test/python/test_python_instance.py501 def test_keyword_is_passed_as_none_without_retry_details(self):CODE
LOW…tions/instance/src/test/python/test_python_instance.py626 def _instance_and_consumer_conf(self, failure_action=None, with_crypto_spec=False):CODE
LOW…tions/instance/src/test/python/test_python_instance.py701 def test_action_is_not_passed_to_subscribe_without_a_crypto_spec(self):CODE
LOW…tions/instance/src/test/python/test_secretsprovider.py35 def test_cleartext_secretsprovider(self):CODE
LOW…tions/instance/src/test/python/test_secretsprovider.py44 def test_environment_secretsprovider(self):CODE
LOW…tions/instance/src/main/python/python_instance_main.py59def generate_arguments_parser():CODE
LOW⚡pulsar-functions/instance/src/main/python/util.py93def batching_type_from_batch_builder(batch_builder):CODE
LOW⚡pulsar-functions/instance/src/main/python/util.py102def producer_config_from_spec(producer_spec):CODE
LOWpulsar-functions/instance/src/main/python/util.py148def producer_config_from_function_details(function_details):CODE
LOW…r-functions/instance/src/main/python/function_stats.py111 def get_total_processed_successfully(self):CODE
LOW…r-functions/instance/src/main/python/function_stats.py117 def get_total_user_exceptions(self):CODE
13 more matches not shown…
Structural Annotation Overuse29 hits · 48 pts
SeverityFileLineSnippetContext
LOW⚡…apache/pulsar/broker/service/OneWayReplicatorTest.java1743 // Step 1: Inject an error to make the replicator is not able to work.STRING
LOW⚡…apache/pulsar/broker/service/OneWayReplicatorTest.java1747 // Step 2: Send one message, since the replicator does not work anymore, this message will not be replicated.STRING
LOW⚡…apache/pulsar/broker/service/OneWayReplicatorTest.java1757 // Step 3: Unload topic, the replicator will be re-created.STRING
LOW⚡…sar/broker/service/schema/BookkeeperSchemaStorage.java413 // Step 1: Store the schema data into a new BookKeeper ledgerCOMMENT
LOW⚡…sar/broker/service/schema/BookkeeperSchemaStorage.java423 // Step 2: Create the schema locator z-node pointing to the ledgerCOMMENT
LOW⚡…sar/broker/service/schema/BookkeeperSchemaStorage.java431 // Step 3: Handle failure by cleaning up the orphan ledgerCOMMENT
LOW⚡…r/broker/service/scalable/ScalableTopicController.java1268 // Step 3: Terminate the parent segment topic so producers get TopicTerminatedCOMMENT
LOW⚡…r/broker/service/scalable/ScalableTopicController.java1271 // Step 4: Atomic metadata update (only after topics + cursors are ready + parent terminated)COMMENT
LOW⚡…r/broker/service/scalable/ScalableTopicController.java1391 // Step 1: Read the scalable topic's subscriptions from metadata (single source ofCOMMENT
LOW⚡…r/broker/service/scalable/ScalableTopicController.java1397 // Step 2: Terminate both parent segment topicsCOMMENT
LOW⚡…r/broker/service/scalable/ScalableTopicController.java1401 // Step 3: Atomic metadata update (only after topic + cursors are ready + parents terminated)COMMENT
LOW…r/broker/service/scalable/ScalableTopicController.java1257 // Step 1: Read the scalable topic's subscriptions from metadata (the single sourceCOMMENT
LOW…r/broker/service/scalable/ScalableTopicController.java1285 // Step 5: Notify subscriptions of layout change (triggers consumer reassignment)COMMENT
LOW…broker/authentication/ProxySaslAuthenticationTest.java229 // Step 1: Create Admin ClientCOMMENT
LOW…broker/authentication/ProxySaslAuthenticationTest.java271 // Step 3: Pass correct client paramsCOMMENT
LOW…ache/pulsar/proxy/server/ProxyForwardAuthDataTest.java88 // Step 1: Create Admin ClientCOMMENT
LOW…ache/pulsar/proxy/server/ProxyForwardAuthDataTest.java102 // Step 2: Run Pulsar Proxy without forwarding authData - expect ExceptionCOMMENT
LOW…ache/pulsar/proxy/server/ProxyForwardAuthDataTest.java137 // Step 3: Create proxy with forwardAuthData enabledCOMMENT
LOW…che/pulsar/proxy/server/ProxyRolesEnforcementTest.java186 // Step 1: Create Admin ClientCOMMENT
LOW⚡…che/pulsar/proxy/server/ProxyRolesEnforcementTest.java202 // Step 2: Try to use proxy Client as a normal Client - expect exceptionCOMMENT
LOW⚡…che/pulsar/proxy/server/ProxyRolesEnforcementTest.java212 // Step 3: Run Pulsar Proxy and pass proxy params as client params - expect exceptionCOMMENT
LOW…che/pulsar/proxy/server/ProxyRolesEnforcementTest.java252 // Step 4: Pass correct client paramsCOMMENT
LOW…pache/pulsar/proxy/server/ProxyAuthenticationTest.java272 // Step 1: Create Admin ClientCOMMENT
LOW…pache/pulsar/proxy/server/ProxyAuthenticationTest.java288 // Step 2: Try to use proxy Client as a normal Client - expect exceptionCOMMENT
LOW⚡…pache/pulsar/proxy/server/ProxyAuthenticationTest.java317 // Step 3: Pass correct client params and use multiple connectionsCOMMENT
LOW⚡…pache/pulsar/proxy/server/ProxyAuthenticationTest.java324 // Step 4: Ensure that all client contexts share the same auth providerCOMMENT
LOWwireshark/README.md26## Step 1: prepare PulsarApi.proto fileCOMMENT
LOWwireshark/README.md38## Step 2: add pulsar.lua to pluginsCOMMENT
LOWwireshark/README.md46## Step 3: start to useCOMMENT
Verbosity Indicators27 hits · 45 pts
SeverityFileLineSnippetContext
LOW⚡…apache/pulsar/broker/service/OneWayReplicatorTest.java1743 // Step 1: Inject an error to make the replicator is not able to work.STRING
LOW⚡…apache/pulsar/broker/service/OneWayReplicatorTest.java1747 // Step 2: Send one message, since the replicator does not work anymore, this message will not be replicated.STRING
LOW⚡…apache/pulsar/broker/service/OneWayReplicatorTest.java1757 // Step 3: Unload topic, the replicator will be re-created.STRING
LOW…org/apache/pulsar/broker/namespace/OwnershipCache.java246 // If we're not the owner, we need to check if anybody else isCOMMENT
LOW⚡…sar/broker/service/schema/BookkeeperSchemaStorage.java413 // Step 1: Store the schema data into a new BookKeeper ledgerCOMMENT
LOW⚡…sar/broker/service/schema/BookkeeperSchemaStorage.java423 // Step 2: Create the schema locator z-node pointing to the ledgerCOMMENT
LOW⚡…sar/broker/service/schema/BookkeeperSchemaStorage.java431 // Step 3: Handle failure by cleaning up the orphan ledgerCOMMENT
LOW⚡…r/broker/service/scalable/ScalableTopicController.java1268 // Step 3: Terminate the parent segment topic so producers get TopicTerminatedCOMMENT
LOW⚡…r/broker/service/scalable/ScalableTopicController.java1271 // Step 4: Atomic metadata update (only after topics + cursors are ready + parent terminated)COMMENT
LOW⚡…r/broker/service/scalable/ScalableTopicController.java1391 // Step 1: Read the scalable topic's subscriptions from metadata (single source ofCOMMENT
LOW⚡…r/broker/service/scalable/ScalableTopicController.java1397 // Step 2: Terminate both parent segment topicsCOMMENT
LOW⚡…r/broker/service/scalable/ScalableTopicController.java1401 // Step 3: Atomic metadata update (only after topic + cursors are ready + parents terminated)COMMENT
LOW…r/broker/service/scalable/ScalableTopicController.java1257 // Step 1: Read the scalable topic's subscriptions from metadata (the single sourceCOMMENT
LOW…r/broker/service/scalable/ScalableTopicController.java1285 // Step 5: Notify subscriptions of layout change (triggers consumer reassignment)COMMENT
LOW…broker/authentication/ProxySaslAuthenticationTest.java229 // Step 1: Create Admin ClientCOMMENT
LOW…broker/authentication/ProxySaslAuthenticationTest.java271 // Step 3: Pass correct client paramsCOMMENT
LOW…ache/pulsar/proxy/server/ProxyForwardAuthDataTest.java88 // Step 1: Create Admin ClientCOMMENT
LOW…ache/pulsar/proxy/server/ProxyForwardAuthDataTest.java102 // Step 2: Run Pulsar Proxy without forwarding authData - expect ExceptionCOMMENT
LOW…ache/pulsar/proxy/server/ProxyForwardAuthDataTest.java137 // Step 3: Create proxy with forwardAuthData enabledCOMMENT
LOW…che/pulsar/proxy/server/ProxyRolesEnforcementTest.java186 // Step 1: Create Admin ClientCOMMENT
LOW⚡…che/pulsar/proxy/server/ProxyRolesEnforcementTest.java202 // Step 2: Try to use proxy Client as a normal Client - expect exceptionCOMMENT
LOW⚡…che/pulsar/proxy/server/ProxyRolesEnforcementTest.java212 // Step 3: Run Pulsar Proxy and pass proxy params as client params - expect exceptionCOMMENT
LOW…che/pulsar/proxy/server/ProxyRolesEnforcementTest.java252 // Step 4: Pass correct client paramsCOMMENT
LOW…pache/pulsar/proxy/server/ProxyAuthenticationTest.java272 // Step 1: Create Admin ClientCOMMENT
LOW…pache/pulsar/proxy/server/ProxyAuthenticationTest.java288 // Step 2: Try to use proxy Client as a normal Client - expect exceptionCOMMENT
LOW⚡…pache/pulsar/proxy/server/ProxyAuthenticationTest.java317 // Step 3: Pass correct client params and use multiple connectionsCOMMENT
LOW⚡…pache/pulsar/proxy/server/ProxyAuthenticationTest.java324 // Step 4: Ensure that all client contexts share the same auth providerCOMMENT
Empty Error Handlers6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHdocker/pulsar/scripts/watch-znode.py94except NodeExistsError:CODE
HIGHtests/performance/serve-reports.py79except KeyboardInterrupt:CODE
HIGH…r-functions/instance/src/main/python/function_stats.py189except RateLimitException:CODE
HIGH…r-functions/instance/src/main/python/function_stats.py207except RateLimitException:CODE
HIGH…-functions/instance/src/main/python/python_instance.py499except:CODE
HIGH…-functions/instance/src/main/python/python_instance.py454except:CODE
Unused Imports23 hits · 23 pts
SeverityFileLineSnippetContext
LOW…atest-version-image/python-examples/producer_schema.py22CODE
LOW…atest-version-image/python-examples/consumer_schema.py22CODE
LOW…functions/python-examples/avro_schema_test_function.py22CODE
LOW…tions/instance/src/main/python/python_instance_main.py34CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py20CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py28CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py30CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py30CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py30CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py31CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py32CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py32CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py35CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py37CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py37CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py37CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py38CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py38CODE
LOW…ions/instance/src/main/python/prometheus_client_fix.py38CODE
LOW…sar-functions/instance/src/main/python/Function_pb2.py9CODE
LOW…ance/src/main/python/InstanceCommunication_pb2_grpc.py4CODE
LOW…/instance/src/main/python/InstanceCommunication_pb2.py9CODE
LOW…/instance/src/main/python/InstanceCommunication_pb2.py17CODE
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMbin/pulsar-admin-common.sh158# Netty cannot utilize resources from the memory pool and must frequently allocate native memory.COMMENT
MEDIUM…lsar/tests/integration/profiling/pulsar-profiling.yaml19# Values not present here keep the harness defaults.COMMENT
MEDIUM…e/pulsar/common/util/collections/BitSetRecyclable.java32 * Provides {@link BitSetRecyclable#resetWords(long[])} method and leverage with netty recycler.COMMENT
MEDIUM…tor/NameAndConfigBasedSecretsProviderConfigurator.java50 // environment variables way. Essentially the secretName/secretPath isCOMMENT
MEDIUM…onfigurator/KubernetesSecretsProviderConfigurator.java69 // environment variables way. Essentially the secretName/secretPathCOMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHpip/pip-259.md0the maximum size in bytes of the request header. larger headers will allow for more and/or larger cookies plus larger foSTRING
HIGH…org/apache/pulsar/proxy/server/ProxyConfiguration.java0the maximum size in bytes of the request header. larger headers will allow for more and/or larger cookies plus larger foSTRING
HIGH…ava/org/apache/pulsar/broker/ServiceConfiguration.java0the maximum size in bytes of the request header. larger headers will allow for more and/or larger cookies plus larger foSTRING
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMpulsar-functions/instance/src/main/python/log.py31# Create the loggerCOMMENT
MEDIUM…ance/src/main/python/InstanceCommunication_pb2_grpc.py117 # This class is part of an EXPERIMENTAL API.COMMENT
MEDIUMsrc/update_python_protobuf_stubs_with_docker.sh23# Create an inline docker container with alpine:3.24 base image and mount the current directory to it as theCOMMENT
MEDIUMsrc/update_python_protobuf_stubs.sh29# Create a temporary virtual environment to avoid polluting the global Python environmentCOMMENT
Modern AI Meta-Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMAGENTS.md54## Agent guardrailsCOMMENT
MEDIUMCLAUDE.md54## Agent guardrailsCOMMENT
MEDIUM.github/copilot-instructions.md54## Agent guardrailsCOMMENT
Cross-Language Confusion2 hits · 9 pts
SeverityFileLineSnippetContext
HIGH…er/pulsar/scripts/apply-config-from-env-with-prefix.py38SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"CODE
HIGH⚡pulsar-functions/instance/src/main/python/util.py111 enabled with a 10ms maximum publish delay. This mirrors BatchingUtils.convertFromSpec(null).STRING
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…buffer/impl/SingleSnapshotAbortedTxnProcessorImpl.java72 //In this implementation we clear the invalid aborted txn ID one by one.COMMENT
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocker/pulsar/scripts/update-ini-from-env.py30CODE
LOWdocker/pulsar/scripts/update-rocksdb-conf-from-env.py34CODE
LOW…tions/instance/src/main/python/python_instance_main.py149CODE
LOW…-functions/instance/src/main/python/python_instance.py168CODE
LOW…-functions/instance/src/main/python/python_instance.py291CODE
LOW…-functions/instance/src/main/python/python_instance.py461CODE
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippetContext
LOW…-auth-oidc/src/test/java/resources/fakeKubeConfig.yaml37 token: fake-tokenCODE
LOW…mon/compression/CompressorCodecBackwardCompatTest.java34 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id massa odio. Duis commodo ligula sed "CODE
LOW…mon/compression/CompressorCodecBackwardCompatTest.java34 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id massa odio. Duis commodo ligula sed "CODE
LOW…che/pulsar/common/compression/CompressorCodecTest.java43 private static final String text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id massa odio. "CODE
LOW…che/pulsar/common/compression/CompressorCodecTest.java43 private static final String text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id massa odio. "CODE
Excessive Try-Catch Wrapping5 hits · 5 pts
SeverityFileLineSnippetContext
LOWpulsar-functions/instance/src/main/python/util.py45 except Exception as e:CODE
LOWpulsar-functions/instance/src/main/python/util.py50 except Exception as e:CODE
LOW…-functions/instance/src/main/python/python_instance.py203 except Exception as e:CODE
LOW…-functions/instance/src/main/python/python_instance.py216 except Exception as e:CODE
LOW…-functions/instance/src/main/python/python_instance.py657 except Exception as e:CODE
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOW…ance/src/main/python/InstanceCommunication_pb2_grpc.py122CODE
LOW…ance/src/main/python/InstanceCommunication_pb2_grpc.py149CODE
LOW…ance/src/main/python/InstanceCommunication_pb2_grpc.py176CODE
LOW…ance/src/main/python/InstanceCommunication_pb2_grpc.py203CODE
LOW…ance/src/main/python/InstanceCommunication_pb2_grpc.py230CODE
Slop Phrases3 hits · 4 pts
SeverityFileLineSnippetContext
LOW.github/workflows/pulsar-ci.yaml31 # if cron expression is changed, make sure to update the expression in jdk_major_version step in preconditions jobCOMMENT
LOW.github/workflows/pulsar-ci-flaky.yaml31 # if cron expression is changed, make sure to update the expression in jdk_major_version step in preconditions jobCOMMENT
LOW…tions/instance/src/main/python/python_instance_main.py314 # make sure to close all non-daemon threads before this!COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgradle/setup-test-gpg.sh24# Usage:COMMENT