Repository Analysis

seaweedfs/seaweedfs

SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

2.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of seaweedfs/seaweedfs, a Go project with 33,484 GitHub stars. SynthScan v2.0 examined 883,173 lines of code across 3250 source files, recording 1296 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 2.4 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).

2.4
Adjusted Score
2.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
33.5K
Stars
Go
Language
883.2K
Lines of Code
3.2K
Files
1.3K
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 6HIGH 13MEDIUM 131LOW 1146

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 1296 distinct pattern matches across 21 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 Block483 hits · 475 pts
SeverityFileLineSnippetContext
LOWinstall.sh1#!/bin/bashCOMMENT
LOWS3_LIFECYCLE_REDESIGN.md381COMMENT
LOWS3_LIFECYCLE_REDESIGN.md581// One probe per task entry: which per-filer log shards exist, what's the earliestCOMMENT
LOWS3_LIFECYCLE_REDESIGN.md601// reseeding via lazy-seeding when F reappears. Safe to delete cursor[F].COMMENT
LOWS3_LIFECYCLE_REDESIGN.md621// 2. Surface `lifecycle_lost_log_total{filer_id}` andCOMMENT
LOWS3_LIFECYCLE_REDESIGN.md1521// RetryTarget carries the routing/identification fields needed to (a) write aCOMMENT
LOWterraform/test/local/run_local_cluster.sh1#!/usr/bin/env bashCOMMENT
LOWterraform/modules/core/variables.tf1# =============================================================================COMMENT
LOWseaweedfs-rdma-sidecar/rdma-engine/src/ipc.rs121/// Response with engine capabilitiesCOMMENT
LOWseaweedfs-rdma-sidecar/rdma-engine/src/lib.rs1//! High-Performance RDMA Engine for SeaweedFSCOMMENT
LOWseaweedfs-rdma-sidecar/rdma-engine/src/main.rs1//! RDMA Engine ServerCOMMENT
LOWseaweedfs-rdma-sidecar/pkg/rdma/client.go421 // MOCK DATA IMPLEMENTATION - FOR DEVELOPMENT/TESTING ONLYCOMMENT
LOWweed/operation/upload_content.go121COMMENT
LOWweed/s3api/s3api_bucket_config.go981func (s3a *S3ApiServer) GetBucketMetadata(bucket string) (*BucketMetadata, error) {COMMENT
LOWweed/s3api/chunked_reader_v4.go301 //COMMENT
LOWweed/s3api/chunked_reader_v4.go381 // Check if we have credentials for signature verificationCOMMENT
LOWweed/s3api/auth_credentials.go1121// isEnabled reports whether S3 auth should be enforced for this server.COMMENT
LOWweed/s3api/auth_credentials.go1541 return identity, s3err.ErrNone, reqAuthTypeCOMMENT
LOWweed/s3api/auth_credentials.go2141// This does NOT flip isAuthEnabled on its own. The advanced IAM machinery isCOMMENT
LOWweed/s3api/s3api_versioning_heal_log_test.go21 // public functions don't panic and that the format strings work.COMMENT
LOWweed/s3api/s3api_versioning_heal_log_test.go101COMMENT
LOWweed/s3api/s3api_object_handlers_put.go361 lockKey stringCOMMENT
LOWweed/s3api/s3api_object_handlers_put.go1001 return r.URL.Query()COMMENT
LOWweed/s3api/s3api_object_handlers_put.go1221 entry.Extended = make(map[string][]byte)COMMENT
LOWweed/s3api/s3api_object_handlers_put.go1421 // clear. The pointer clear emits a meta-log event the lifecycleCOMMENT
LOWweed/s3api/s3api_object_handlers_put.go1561COMMENT
LOWweed/s3api/s3api_internal_lifecycle.go341 }COMMENT
LOWweed/s3api/sts_params_test.go141 // The Router does not match "/" for STS because Action is not in query.COMMENT
LOWweed/s3api/s3api_server_routing_test.go141COMMENT
LOWweed/s3api/s3api_tables.go641// and in the X-Amz-Credential query parameter for presigned requests.COMMENT
LOWweed/s3api/s3_validation_utils.go41COMMENT
LOWweed/s3api/s3_sse_kms.go81 // Ensure we clear the plaintext data key from memory when doneCOMMENT
LOWweed/s3api/s3_action_resolver.go21// - bucket: Bucket name from the request pathCOMMENT
LOWweed/s3api/s3_iam_middleware.go481 return falseCOMMENT
LOWweed/s3api/auth_signature_v4.go1/*COMMENT
LOWweed/s3api/s3api_object_versioning.go41COMMENT
LOWweed/s3api/s3api_object_versioning.go1161 // so the .versions/ directory should be empty — try to tear itCOMMENT
LOWweed/s3api/s3api_object_versioning.go1201// expected to run the post-deletion .versions/ teardown so the now-emptyCOMMENT
LOWweed/s3api/s3api_object_versioning.go1401}COMMENT
LOWweed/s3api/s3api_object_versioning.go1581 return nilCOMMENT
LOWweed/s3api/s3api_object_versioning.go1601// latest-pointer fields to still match the stale id observed by theCOMMENT
LOWweed/s3api/s3api_object_versioning.go1941COMMENT
LOWweed/s3api/s3api_object_versioning.go1961 // reads take the clean ErrNotFound path instead of re-entering thisCOMMENT
LOWweed/s3api/s3api_object_versioning.go2121// rescanning .versions/ when the cached latest-version pointer is missing on theCOMMENT
LOWweed/s3api/s3api_bucket_policy_engine.go101// EvaluatePolicy evaluates whether an action is allowed by bucket policyCOMMENT
LOWweed/s3api/s3api_object_handlers_copy.go941 endOffset = int64(entry.Attributes.FileSize) - 1COMMENT
LOWweed/s3api/s3api_object_handlers_copy.go1641 }COMMENT
LOWweed/s3api/s3api_object_handlers_copy.go2881 // this stored only KeyID/context/bucketKey, leaving EncryptedDataKeyCOMMENT
LOWweed/s3api/s3api_object_handlers_copy.go3001 // bytes raw without decryption — yielding deterministic byteCOMMENT
LOWweed/s3api/s3api_governance_permissions_test.go181 //COMMENT
LOWweed/s3api/s3api_governance_permissions_test.go201// Test specifically for users with IAM bypass permissionCOMMENT
LOWweed/s3api/s3api_governance_permissions_test.go401 }COMMENT
LOWweed/s3api/s3api_object_handlers_copy_alloc_test.go21//COMMENT
LOWweed/s3api/bucket_size_metrics_test.go1package s3apiCOMMENT
LOWweed/s3api/auto_signature_v4_test.go1201COMMENT
LOWweed/s3api/s3api_server.go101 objectWriteLockClient *cluster.LockClientCOMMENT
LOWweed/s3api/s3api_server.go241 //COMMENT
LOWweed/s3api/s3api_server.go361 // Set the integration in the traditional IAM for compatibility.COMMENT
LOWweed/s3api/s3api_server.go781 // Apply CORS middleware to bucket routers for automatic CORS header handlingCOMMENT
LOWweed/s3api/auth_signature_v2.go1/*COMMENT
423 more matches not shown…
Structural Annotation Overuse230 hits · 432 pts
SeverityFileLineSnippetContext
LOWseaweedfs-rdma-sidecar/WEED-MOUNT-CODE-PATH.md117 // Step 1: Lookup volume location from masterCOMMENT
LOWseaweedfs-rdma-sidecar/WEED-MOUNT-CODE-PATH.md120 // Step 2: Find best server (local preferred)COMMENT
LOWseaweedfs-rdma-sidecar/WEED-MOUNT-CODE-PATH.md123 // Step 3: Make HTTP request to target server's RDMA sidecarCOMMENT
LOWweed/s3api/auth_security_test.go341 // Step 1: Sign a request targeting the client-facing URL using real AWS SDK signerCOMMENT
LOWweed/s3api/auth_security_test.go349 // Step 2: Create a separate request as the proxy would deliver itCOMMENT
LOWweed/s3api/auth_security_test.go359 // Step 3: VerifyCOMMENT
LOWweed/s3api/auth_security_test.go501 // Step 1: Sign a request using the real AWS SDK v2 signer.COMMENT
LOWweed/s3api/auth_security_test.go510 // Step 2: Build the request as the proxy would deliver it to SeaweedFS.COMMENT
LOWweed/s3api/auth_security_test.go530 // Step 3: Verify extractHostHeader returns the expected value.COMMENT
LOWweed/s3api/auth_security_test.go537 // Step 4: Verify the full signature matches.COMMENT
LOWweed/s3api/s3api_object_handlers_put.go551 // Step 3: Calculate MD5 hash and add SSE metadata to chunksCOMMENT
LOWweed/s3api/s3api_object_handlers_put.go650 // Step 4: Create metadata entryCOMMENT
LOWweed/s3api/s3api_object_handlers_put.go810 // Step 4: Save metadata to filer via gRPCCOMMENT
LOWweed/s3api/s3api_object_handlers_copy.go2266 // Step 1: Decrypt source dataCOMMENT
LOWweed/s3api/s3api_object_handlers_copy.go2363 // Step 2: Re-encrypt with destination encryption (if any)COMMENT
LOWweed/s3api/s3_sse_s3_integration_test.go47 // Step 1: Encrypt (simulates what happens during PUT)COMMENT
LOWweed/s3api/s3_sse_s3_integration_test.go72 // Step 2: Simulate storage (inline file - no chunks)COMMENT
LOWweed/s3api/s3_sse_s3_integration_test.go83 // Step 3: Decrypt (simulates what happens during GET)COMMENT
LOWweed/s3api/s3api_object_retention.go551 // Step 1: Check if governance bypass was requested via headerCOMMENT
LOWweed/s3api/s3api_object_retention.go558 // Step 2: Validate user has permission to bypass governance retentionCOMMENT
LOWweed/s3api/s3_list_parts_action_test.go200 // Step 1: Initiate multipart upload (POST with uploads query)COMMENT
LOWweed/s3api/s3_list_parts_action_test.go210 // Step 2: List existing parts (GET with uploadId query) - THIS WAS THE MISSING MAPPINGCOMMENT
LOWweed/s3api/s3_list_parts_action_test.go220 // Step 3: Upload a part (PUT with uploadId and partNumber)COMMENT
LOWweed/s3api/s3_list_parts_action_test.go231 // Step 4: Complete multipart upload (POST with uploadId)COMMENT
LOWweed/util/chunk_cache/chunk_cache.go226 // Step 1: Read and validate header (volume ID + cookie)COMMENT
LOWweed/util/chunk_cache/chunk_cache.go252 // Step 2: Read actual data from the offset position (after header)COMMENT
LOWweed/shell/command_remote_cache.go109 // Step 1: Collect all remote filesCOMMENT
LOWweed/shell/command_remote_cache.go123 // Step 2: Collect all local files (only if we need to delete local extra files)COMMENT
LOWweed/shell/command_remote_cache.go141 // Step 3: Determine actions neededCOMMENT
LOWweed/shell/command_remote_cache.go221 // Step 4: Execute actionsCOMMENT
LOWweed/shell/command_s3_user_provision.go114 // Step 0: Check if user already existsCOMMENT
LOWweed/shell/command_s3_user_provision.go123 // Step 1: Create policyCOMMENT
LOWweed/shell/command_s3_user_provision.go157 // Step 2: Create new user with credentialsCOMMENT
LOWweed/shell/command_remote_copy_local.go113 // Step 1: Collect all local files that are part of the remote mountCOMMENT
LOWweed/shell/command_remote_copy_local.go129 // Step 2: Check which files exist on remote storageCOMMENT
LOWweed/shell/command_remote_copy_local.go143 // Step 3: Determine files to copy and files to deleteCOMMENT
LOWweed/shell/command_remote_copy_local.go174 // Step 4: Copy files to remote storageCOMMENT
LOWweed/shell/command_remote_copy_local.go225 // Step 5: Delete extraneous files from remote storageCOMMENT
LOWweed/admin/topology/storage_slot_test.go555 // Step 1: Add pending task (should reserve capacity via StorageSlotChange)COMMENT
LOWweed/admin/topology/storage_slot_test.go579 // Step 2: Assign task (capacity already reserved by pending task)COMMENT
LOWweed/admin/topology/storage_slot_test.go592 // Step 3: Complete task (should release reserved capacity)COMMENT
LOWweed/admin/topology/storage_slot_test.go601 // Step 4: Apply actual storage change (simulates master topology update)COMMENT
LOWweed/storage/volume_replica/replica_sync.go115 // Step 1: Find the largest replica (highest file count) that's not excluded.COMMENT
LOWweed/storage/volume_replica/replica_sync.go136 // Step 2: Read index database from the best replicaCOMMENT
LOWweed/storage/volume_replica/replica_sync.go147 // Step 3: For each other replica (including excluded), find entries missing from best and copy themCOMMENT
LOWweed/iam/integration/iam_integration_test.go64 // Step 1: Attempt role assumptionCOMMENT
LOWweed/iam/integration/iam_integration_test.go84 // Step 2: Test policy enforcement with assumed credentialsCOMMENT
LOWweed/iam/integration/iam_integration_test.go138 // Step 1: Attempt role assumption with LDAP credentialsCOMMENT
LOWweed/iam/integration/iam_integration_test.go158 // Step 2: Test policy enforcementCOMMENT
LOWweed/iam/policy/policy_engine.go1218 // Step 1: Substitute policy variables (e.g., ${aws:username}, ${saml:username})COMMENT
LOWweed/iam/policy/policy_engine.go1221 // Step 2: Handle special patternsCOMMENT
LOWweed/iam/policy/policy_engine.go1226 // Step 3: Case-insensitive exact matchCOMMENT
LOWweed/iam/policy/policy_engine.go1231 // Step 4: Handle AWS-style wildcards (case-insensitive)COMMENT
LOWweed/mount/meta_cache/meta_cache_deadlock_test.go104 // Step 1: the "flush handler" takes the fh exclusive lockCOMMENT
LOWweed/mount/meta_cache/meta_cache_deadlock_test.go116 // Step 2: a subscriber event arrives; the apply loop will runCOMMENT
LOWweed/mount/meta_cache/meta_cache_deadlock_test.go131 // Step 3: still holding the fh lock, the flush handler applies its localCOMMENT
LOWweed/mq/topic/local_partition.go136 // Step 2: Enter the main loop - read from in-memory buffer, occasionally checking diskCOMMENT
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go45 // Step 1: Fetch batch of messages starting from nextOffsetCOMMENT
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go64 // Step 2: Commit the last offset in this batchCOMMENT
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go70 // Step 3: Verify offset is correctly storedCOMMENT
170 more matches not shown…
Verbosity Indicators225 hits · 423 pts
SeverityFileLineSnippetContext
LOWweed/s3api/auth_security_test.go341 // Step 1: Sign a request targeting the client-facing URL using real AWS SDK signerCOMMENT
LOWweed/s3api/auth_security_test.go349 // Step 2: Create a separate request as the proxy would deliver itCOMMENT
LOWweed/s3api/auth_security_test.go359 // Step 3: VerifyCOMMENT
LOWweed/s3api/auth_security_test.go501 // Step 1: Sign a request using the real AWS SDK v2 signer.COMMENT
LOWweed/s3api/auth_security_test.go510 // Step 2: Build the request as the proxy would deliver it to SeaweedFS.COMMENT
LOWweed/s3api/auth_security_test.go530 // Step 3: Verify extractHostHeader returns the expected value.COMMENT
LOWweed/s3api/auth_security_test.go537 // Step 4: Verify the full signature matches.COMMENT
LOWweed/s3api/s3api_object_handlers_put.go551 // Step 3: Calculate MD5 hash and add SSE metadata to chunksCOMMENT
LOWweed/s3api/s3api_object_handlers_put.go650 // Step 4: Create metadata entryCOMMENT
LOWweed/s3api/s3api_object_handlers_put.go810 // Step 4: Save metadata to filer via gRPCCOMMENT
LOWweed/s3api/s3api_object_handlers_copy.go2266 // Step 1: Decrypt source dataCOMMENT
LOWweed/s3api/s3api_object_handlers_copy.go2363 // Step 2: Re-encrypt with destination encryption (if any)COMMENT
LOWweed/s3api/s3_sse_s3_integration_test.go47 // Step 1: Encrypt (simulates what happens during PUT)COMMENT
LOWweed/s3api/s3_sse_s3_integration_test.go72 // Step 2: Simulate storage (inline file - no chunks)COMMENT
LOWweed/s3api/s3_sse_s3_integration_test.go83 // Step 3: Decrypt (simulates what happens during GET)COMMENT
LOWweed/s3api/s3api_object_retention.go551 // Step 1: Check if governance bypass was requested via headerCOMMENT
LOWweed/s3api/s3api_object_retention.go558 // Step 2: Validate user has permission to bypass governance retentionCOMMENT
LOWweed/s3api/s3_list_parts_action_test.go200 // Step 1: Initiate multipart upload (POST with uploads query)COMMENT
LOWweed/s3api/s3_list_parts_action_test.go210 // Step 2: List existing parts (GET with uploadId query) - THIS WAS THE MISSING MAPPINGCOMMENT
LOWweed/s3api/s3_list_parts_action_test.go220 // Step 3: Upload a part (PUT with uploadId and partNumber)COMMENT
LOWweed/s3api/s3_list_parts_action_test.go231 // Step 4: Complete multipart upload (POST with uploadId)COMMENT
LOWweed/util/chunk_cache/chunk_cache.go226 // Step 1: Read and validate header (volume ID + cookie)COMMENT
LOWweed/util/chunk_cache/chunk_cache.go252 // Step 2: Read actual data from the offset position (after header)COMMENT
LOWweed/shell/command_remote_cache.go109 // Step 1: Collect all remote filesCOMMENT
LOWweed/shell/command_remote_cache.go123 // Step 2: Collect all local files (only if we need to delete local extra files)COMMENT
LOWweed/shell/command_remote_cache.go141 // Step 3: Determine actions neededCOMMENT
LOWweed/shell/command_remote_cache.go179 // For caching, we need to check if the local file exists and needs cachingCOMMENT
LOWweed/shell/command_remote_cache.go221 // Step 4: Execute actionsCOMMENT
LOWweed/shell/command_s3_user_provision.go114 // Step 0: Check if user already existsCOMMENT
LOWweed/shell/command_s3_user_provision.go123 // Step 1: Create policyCOMMENT
LOWweed/shell/command_s3_user_provision.go157 // Step 2: Create new user with credentialsCOMMENT
LOWweed/shell/command_remote_copy_local.go113 // Step 1: Collect all local files that are part of the remote mountCOMMENT
LOWweed/shell/command_remote_copy_local.go129 // Step 2: Check which files exist on remote storageCOMMENT
LOWweed/shell/command_remote_copy_local.go143 // Step 3: Determine files to copy and files to deleteCOMMENT
LOWweed/shell/command_remote_copy_local.go174 // Step 4: Copy files to remote storageCOMMENT
LOWweed/shell/command_remote_copy_local.go225 // Step 5: Delete extraneous files from remote storageCOMMENT
LOWweed/admin/topology/storage_slot_test.go555 // Step 1: Add pending task (should reserve capacity via StorageSlotChange)COMMENT
LOWweed/admin/topology/storage_slot_test.go579 // Step 2: Assign task (capacity already reserved by pending task)COMMENT
LOWweed/admin/topology/storage_slot_test.go592 // Step 3: Complete task (should release reserved capacity)COMMENT
LOWweed/admin/topology/storage_slot_test.go601 // Step 4: Apply actual storage change (simulates master topology update)COMMENT
LOWweed/storage/volume_replica/replica_sync.go115 // Step 1: Find the largest replica (highest file count) that's not excluded.COMMENT
LOWweed/storage/volume_replica/replica_sync.go136 // Step 2: Read index database from the best replicaCOMMENT
LOWweed/storage/volume_replica/replica_sync.go147 // Step 3: For each other replica (including excluded), find entries missing from best and copy themCOMMENT
LOWweed/iam/integration/iam_integration_test.go64 // Step 1: Attempt role assumptionCOMMENT
LOWweed/iam/integration/iam_integration_test.go84 // Step 2: Test policy enforcement with assumed credentialsCOMMENT
LOWweed/iam/integration/iam_integration_test.go138 // Step 1: Attempt role assumption with LDAP credentialsCOMMENT
LOWweed/iam/integration/iam_integration_test.go158 // Step 2: Test policy enforcementCOMMENT
LOWweed/iam/policy/policy_engine.go1218 // Step 1: Substitute policy variables (e.g., ${aws:username}, ${saml:username})COMMENT
LOWweed/iam/policy/policy_engine.go1221 // Step 2: Handle special patternsCOMMENT
LOWweed/iam/policy/policy_engine.go1226 // Step 3: Case-insensitive exact matchCOMMENT
LOWweed/iam/policy/policy_engine.go1231 // Step 4: Handle AWS-style wildcards (case-insensitive)COMMENT
LOWweed/mount/meta_cache/meta_cache_deadlock_test.go104 // Step 1: the "flush handler" takes the fh exclusive lockCOMMENT
LOWweed/mount/meta_cache/meta_cache_deadlock_test.go116 // Step 2: a subscriber event arrives; the apply loop will runCOMMENT
LOWweed/mount/meta_cache/meta_cache_deadlock_test.go131 // Step 3: still holding the fh lock, the flush handler applies its localCOMMENT
LOWweed/mq/topic/local_partition.go136 // Step 2: Enter the main loop - read from in-memory buffer, occasionally checking diskCOMMENT
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go45 // Step 1: Fetch batch of messages starting from nextOffsetCOMMENT
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go64 // Step 2: Commit the last offset in this batchCOMMENT
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go70 // Step 3: Verify offset is correctly storedCOMMENT
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go76 // Step 4: Next fetch should start from lastConsumedOffset + 1COMMENT
LOWweed/mq/kafka/protocol/fetch.go1011 // We need to check if this looks like a real RecordValue or just random bytesCOMMENT
165 more matches not shown…
Decorative Section Separators71 hits · 226 pts
SeverityFileLineSnippetContext
MEDIUMterraform/test/local-secure/main.tf1# =============================================================================COMMENT
MEDIUMterraform/test/local-secure/main.tf6# =============================================================================COMMENT
MEDIUMterraform/test/local/main.tf1# =============================================================================COMMENT
MEDIUMterraform/test/local/main.tf8# =============================================================================COMMENT
MEDIUMterraform/modules/core/main.tf1# =============================================================================COMMENT
MEDIUMterraform/modules/core/main.tf6# =============================================================================COMMENT
MEDIUMterraform/modules/core/main.tf78 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf80 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf123 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf125 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf170 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf172 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf221 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf223 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf264 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf266 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf314 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/main.tf316 # ===========================================================================COMMENT
MEDIUMterraform/modules/core/variables.tf1# =============================================================================COMMENT
MEDIUMterraform/modules/core/variables.tf13# =============================================================================COMMENT
MEDIUMterraform/modules/core/variables.tf51# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf54# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf106# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf108# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf145# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf147# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf191# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf193# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf236# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf239# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf267# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf270# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf283# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/variables.tf285# ----------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/tests/render.tftest.hcl8# ---------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/tests/render.tftest.hcl32# ---------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/tests/render.tftest.hcl54# ---------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/tests/render.tftest.hcl72# ---------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/tests/render.tftest.hcl100# ---------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/tests/render.tftest.hcl132# ---------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/core/tests/render.tftest.hcl155# ---------------------------------------------------------------------------COMMENT
MEDIUMterraform/modules/security/variables.tf1# =============================================================================COMMENT
MEDIUMterraform/modules/security/variables.tf9# =============================================================================COMMENT
MEDIUMterraform/modules/aws/security.tf1# =============================================================================COMMENT
MEDIUMterraform/modules/aws/security.tf10# =============================================================================COMMENT
MEDIUMterraform/modules/aws/variables.tf1# =============================================================================COMMENT
MEDIUMterraform/modules/aws/variables.tf8# =============================================================================COMMENT
MEDIUMseaweedfs-rdma-sidecar/rdma-engine/src/lib.rs10//! ┌─────────────────────┐ IPC ┌─────────────────────┐COMMENT
MEDIUMseaweedfs-rdma-sidecar/rdma-engine/src/lib.rs11//! │ Go Control Plane │◄─────────►│ Rust Data Plane │COMMENT
MEDIUMseaweedfs-rdma-sidecar/rdma-engine/src/lib.rs17//! └─────────────────────┘ └─────────────────────┘COMMENT
MEDIUMweed/shell/command_fs_distribute_chunks_test.go39// ── shortName ────────────────────────────────────────────────────────────────COMMENT
MEDIUMweed/shell/command_fs_distribute_chunks_test.go56// ── relevantNodes ────────────────────────────────────────────────────────────COMMENT
MEDIUMweed/shell/command_fs_distribute_chunks_test.go70// ── computeOwnerTarget ───────────────────────────────────────────────────────COMMENT
MEDIUMweed/shell/command_fs_distribute_chunks_test.go110// ── buildDistributionCounts ──────────────────────────────────────────────────COMMENT
MEDIUMweed/shell/command_fs_distribute_chunks_test.go156// ── selectActiveNodes ────────────────────────────────────────────────────────COMMENT
MEDIUMweed/shell/command_fs_distribute_chunks_test.go181// ── planOwnerMoves ───────────────────────────────────────────────────────────COMMENT
MEDIUMweed/shell/command_fs_distribute_chunks_test.go223// ── planDistribution: primary ─────────────────────────────────────────────────COMMENT
MEDIUMweed/shell/command_fs_distribute_chunks_test.go287// ── planDistribution: round-robin ─────────────────────────────────────────────COMMENT
MEDIUMweed/shell/command_fs_distribute_chunks_test.go361// ── planDistribution: replica ─────────────────────────────────────────────────COMMENT
MEDIUMweed/shell/command_fs_distribute_chunks_test.go410// ── printRedistributionPlan ──────────────────────────────────────────────────COMMENT
11 more matches not shown…
AI Slop Vocabulary32 hits · 100 pts
SeverityFileLineSnippetContext
MEDIUMterraform/test/local-secure/main.tf2# Local mTLS test harness: generate the CA + component certs + JWT keys with theCOMMENT
MEDIUMterraform/test/local-secure/main.tf39 # non-secure harness.COMMENT
MEDIUMterraform/test/local/main.tf2# Local test harness: render a small SeaweedFS cluster with the core moduleCOMMENT
MEDIUMterraform/test/local/main.tf33 # High port range so the harness does not collide with a SeaweedFS clusterCOMMENT
MEDIUMterraform/modules/core/variables.tf7# infra wrappers (consume cloud_init/systemd_unit) and the local test harnessCOMMENT
MEDIUMcmd/weed-sql/sqlcmd.go185 // Split file content into individual queries (robust approach).COMMENT
MEDIUMseaweedfs-rdma-sidecar/test-fixes-standalone.go86 // NEW (robust):COMMENT
MEDIUMweed/s3api/s3api_sts.go298 // Use typed errors for robust error checkingCOMMENT
MEDIUMweed/s3api/s3_iam_middleware.go118 // Determine token type by issuer claim (more robust than checking role claim)COMMENT
MEDIUMweed/s3api/s3_metadata_util.go55 // Use url.ParseQuery for robust parsing and automatic URL decodingCOMMENT
MEDIUMweed/kms/gcp/gcp_kms.go300// This is a simplified implementation - in production, you might want a more robust serializationCOMMENT
MEDIUMweed/util/sqlutil/splitter.go8// This robust implementation handles SQL comments, quoted strings, and escaped characters.COMMENT
MEDIUMweed/shell/command_remote_cache.go37 # comprehensive sync and cache: update metadata, cache content, and remove deleted filesCOMMENT
MEDIUMweed/shell/command_ec_decode.go228 // Keep this robust against wording tweaks while still being specific.COMMENT
MEDIUMweed/server/postgres/protocol.go41 // Use typed errors for robust error mappingCOMMENT
MEDIUMweed/storage/disk_location_ec.go391// checkDatFileExists checks if a .dat file with actual data exists with robustCOMMENT
MEDIUMweed/iam/providers/errors.go6// These enable robust error checking with errors.Is() throughout the stackCOMMENT
MEDIUMweed/iam/oidc/oidc_provider.go681 // Use JWT library's typed errors for robust error checkingCOMMENT
MEDIUMweed/iam/utils/arn_utils_test.go13// format to ensure robust handling of both legacy and modern AWS ARN formats.COMMENT
MEDIUMweed/iam/sts/sts_service.go897 // Map provider errors to STS errors using errors.Is() for robust error checkingCOMMENT
MEDIUMweed/iam/sts/session_claims.go94// This enables seamless integration with existing code expecting SessionInfoCOMMENT
MEDIUMweed/iam/sts/constants.go90// Typed errors for robust error checking with errors.Is()COMMENT
MEDIUMweed/filer/filer_deletion.go480// TODO: Consider these improvements for more robust error handling:COMMENT
MEDIUMweed/query/engine/hybrid_message_scanner.go239// Uses SeaweedFS MQ's GenMergedReadFunc for seamless integrationCOMMENT
MEDIUMtest/benchmark/fuse_db/bin/lib.sh2# IMPORTANT: this harness manages ONLY its own processes via pidfiles and its ownCOMMENT
MEDIUMtest/s3/remote_cache/command_edge_cases_test.go102 // This is a simplified check; a more robust test would check if the file is *actually* gone from local cacheCOMMENT
MEDIUMtest/s3/remote_cache/command_edge_cases_test.go105 // The instruction implies just adding the test, not necessarily making it fully robust for all pattern scenarios.COMMENT
MEDIUMtest/s3/iam/s3_iam_distributed_test.go114 // Test concurrent operations across distributed instances with robust retry mechanismsCOMMENT
MEDIUMtest/samba/smb_tests.sh5# harness (run_inside_container.sh).COMMENT
MEDIUMtest/kafka/kafka-client-loadtest/docker-compose.yml65 # Enable comprehensive Kafka client DEBUG logging to trace offset managementCOMMENT
MEDIUMtest/kafka/kafka-client-loadtest/config/loadtest.yaml4test_mode: "comprehensive" # producer, consumer, comprehensiveCODE
MEDIUM…st/kafka/kafka-client-loadtest/scripts/run-loadtest.sh81 # Run comprehensive test for 5 minutesCOMMENT
Excessive Try-Catch Wrapping78 hits · 92 pts
SeverityFileLineSnippetContext
LOWdocker/test.py91 except Exception as e:CODE
MEDIUMdocker/test.py92 print(f"Error listing files: {e}")CODE
MEDIUMtest/s3/compatibility/fix_s3_tests_bucket_conflicts.py35 print(f"Error: File {file_path} not found")CODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py151 except Exception:CODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py161 except Exception:CODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py171 except Exception:CODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py183 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testingCODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py192 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testingCODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py201 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testingCODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py216 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testingCODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py225 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testingCODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py234 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testingCODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py94 except Exception:CODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py132 except Exception:CODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py302 except Exception as e: # noqa: BLE001 - Top-level exception handler for test orchestrationCODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py339 except Exception as e: # noqa: BLE001 - Top-level exception handler for test orchestrationCODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py352 except Exception:CODE
LOWtest/s3/parquet/s3_parquet_test.py118 except Exception:CODE
LOWtest/s3/parquet/s3_parquet_test.py132 except Exception:CODE
LOWtest/s3/parquet/s3_parquet_test.py144 except Exception as e:CODE
LOWtest/s3/parquet/s3_parquet_test.py159 except Exception as e:CODE
LOWtest/s3/parquet/s3_parquet_test.py199 except Exception as e:CODE
LOWtest/s3/parquet/s3_parquet_test.py225 except Exception as e:CODE
LOWtest/s3/parquet/s3_parquet_test.py253 except Exception as e:CODE
LOWtest/s3/parquet/s3_parquet_test.py266 except Exception as e:CODE
LOWtest/s3/parquet/s3_parquet_test.py278 except Exception as e:CODE
LOWtest/s3/parquet/s3_parquet_test.py319 except Exception as e:CODE
LOWtest/s3/parquet/s3_parquet_test.py342 except Exception as e:CODE
MEDIUMtest/s3/parquet/s3_parquet_test.py410 print(f"Error details logged to: {ERROR_LOG_FILE}")CODE
LOWtest/s3/parquet/debug_write_dataset.py55 except Exception as e:CODE
LOWtest/s3/parquet/debug_write_dataset.py69 except Exception as e:CODE
LOWtest/s3/parquet/debug_write_dataset.py79 except Exception as e:CODE
LOWtest/s3/parquet/debug_write_dataset.py82except Exception as e:CODE
MEDIUMtest/s3/parquet/debug_write_dataset.py38def list_recursive(path, indent=0):CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py132 except Exception as e:CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py155 except Exception as e:CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py174 except Exception as e:CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py195 except Exception as e:CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py226 except Exception as e:CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py245 except Exception as e:CODE
LOWtest/s3/parquet/test_pyarrow_native_s3.py111 except Exception:CODE
LOWtest/s3/parquet/test_pyarrow_native_s3.py148 except Exception:CODE
LOWtest/s3/parquet/test_pyarrow_native_s3.py170 except Exception as e:CODE
LOWtest/s3/parquet/test_pyarrow_native_s3.py179 except Exception:CODE
LOWtest/s3/parquet/test_pyarrow_native_s3.py266 except Exception as exc:CODE
LOWtest/s3/parquet/test_pyarrow_native_s3.py302 except Exception:CODE
LOWtest/s3/parquet/test_sse_s3_compatibility.py98 except Exception:CODE
LOWtest/s3/parquet/test_sse_s3_compatibility.py134 except Exception:CODE
LOWtest/s3/parquet/test_sse_s3_compatibility.py165 except Exception as e:CODE
LOWtest/s3/spark/issue_8234_repro_test.go47except Exception as err:CODE
LOWtest/s3tables/catalog/test_rest_catalog_auth.py141 except Exception as e:CODE
LOWtest/s3tables/catalog/test_rest_catalog_auth.py182 except Exception as e:CODE
LOWtest/s3tables/catalog/test_rest_catalog_auth.py212 except Exception as e:CODE
LOWtest/s3tables/catalog/test_rest_catalog.py146 except Exception as e:CODE
LOWtest/s3tables/catalog/test_rest_catalog.py172 except Exception as e:CODE
LOWtest/s3tables/catalog/test_rest_catalog.py209 except Exception as e:CODE
LOWtest/s3tables/catalog/test_rest_catalog.py240 except Exception as e:CODE
LOWtest/s3tables/catalog_spark/spark_operations_test.go210 except Exception as e:STRING
LOWtest/s3tables/sts_integration/sts_integration_test.go327 except Exception:CODE
LOWtest/s3tables/sts_integration/sts_integration_test.go432except Exception as e:CODE
18 more matches not shown…
Redundant / Tautological Comments57 hits · 88 pts
SeverityFileLineSnippetContext
LOWseaweedfs-rdma-sidecar/test-rdma-integration.sh92 # Check if it has the expected fieldsCOMMENT
LOWseaweedfs-rdma-sidecar/scripts/performance-benchmark.sh107 # Display result with color codingCOMMENT
LOWseaweedfs-rdma-sidecar/scripts/performance-benchmark.sh167 # Check if connection pooling is workingCOMMENT
LOWseaweedfs-rdma-sidecar/scripts/performance-benchmark.sh186 # Check if sidecar is readyCOMMENT
LOW…fs-rdma-sidecar/scripts/test-complete-optimizations.sh181 # Check if socket was createdCOMMENT
LOWseaweedfs-rdma-sidecar/scripts/mount-helper.sh65 # Check if RDMA is actually enabledCOMMENT
LOWseaweedfs-rdma-sidecar/scripts/mount-helper.sh118# Check if already mountedCOMMENT
LOWseaweedfs-rdma-sidecar/scripts/mount-health-check.sh7# Check if mount point exists and is mountedCOMMENT
LOW…eedfs-rdma-sidecar/scripts/test-zero-copy-mechanism.sh66 # Check if file is in page cache (approximation)COMMENT
LOWseaweedfs-rdma-sidecar/scripts/run-integration-tests.sh159 # Read fileCOMMENT
LOWseaweedfs-rdma-sidecar/scripts/run-integration-tests.sh202 # Check if response contains expected fieldsCOMMENT
LOWseaweedfs-rdma-sidecar/scripts/demo-mount-rdma.sh151# Check if mount is successfulCOMMENT
LOWseaweedfs-rdma-sidecar/scripts/demo-mount-rdma.sh239 # Check if mount is still activeCOMMENT
LOWdocker/admin_integration/check_volumes.sh7# Check if master is runningCOMMENT
LOWdocker/admin_integration/demo_vacuum_testing.sh7# Check if SeaweedFS is runningCOMMENT
LOWtest/kms/setup_openbao.sh25# Check if we can connectCOMMENT
LOWtest/s3/iam/setup_keycloak.sh145 # Check if it exists now (might have been created by another process)COMMENT
LOWtest/s3/iam/setup_keycloak.sh215 # Check if role already assignedCOMMENT
LOWtest/s3/iam/setup_keycloak.sh236 # Check if a realm roles mapper already exists for this clientCOMMENT
LOWtest/s3/iam/setup_keycloak.sh277 # Check if an audience mapper already exists for this clientCOMMENT
LOWtest/s3/iam/setup_all_tests.sh57 # Check if LDAP container is already runningCOMMENT
LOWtest/s3/iam/setup_all_tests.sh176 # Check if Keycloak is respondingCOMMENT
LOWtest/s3/parquet/test_pyarrow_native_s3.py133 # Check if bucket existsCOMMENT
LOWtest/s3/parquet/test_pyarrow_native_s3.py156 # Check if bucket exists by trying to list itCOMMENT
LOWtest/java/spark/run-tests.sh8# Check if SeaweedFS is runningCOMMENT
LOWtest/java/spark/quick-start.sh8# Check if SeaweedFS is runningCOMMENT
LOWtest/java/spark/quick-start.sh92 # Check if Docker is availableCOMMENT
LOWtest/java/spark/quick-start.sh98 # Check if Maven is availableCOMMENT
LOWtest/java/spark/quick-start.sh104 # Check if SeaweedFS is running, if not start itCOMMENT
LOWtest/postgres/validate-setup.sh27# Check if running from correct directoryCOMMENT
LOWtest/postgres/validate-setup.sh65# Check if services are runningCOMMENT
LOWtest/kafka/test-schema-bypass.sh11# Check if Kafka gateway is runningCOMMENT
LOWtest/kafka/loadtest/run_million_record_test.sh25# Check if SeaweedFS infrastructure is runningCOMMENT
LOWtest/kafka/scripts/test_schema_registry.sh10# Check if we have a real schema registry URLCOMMENT
LOWtest/kafka/scripts/test_schema_registry.sh46# Check if services are runningCOMMENT
LOW…fka/kafka-client-loadtest/scripts/wait-for-services.sh39# Check if a service is reachableCOMMENT
LOW…fka/kafka-client-loadtest/scripts/wait-for-services.sh71 # Check if we have at least one volume serverCOMMENT
LOW…fka/kafka-client-loadtest/scripts/wait-for-services.sh96 # Check if Schema Registry container is running firstCOMMENT
LOW…fka/kafka-client-loadtest/scripts/wait-for-services.sh185 # Check if it's still starting up (healthcheck start_period)COMMENT
LOW…st/kafka/kafka-client-loadtest/scripts/run-loadtest.sh181# Check if Docker and Docker Compose are availableCOMMENT
LOW…afka/kafka-client-loadtest/scripts/register-schemas.sh95 # Check if it's a consumer lag timeout (error_code 50002)COMMENT
LOW.github/workflows/s3-keycloak-tests.yml62 # Set WEED_BINARY to use the installed versionCOMMENT
LOW.github/workflows/deploy_telemetry.yml137 # Check if service exists and deploy accordinglyCOMMENT
LOW.github/workflows/s3-policy-tests.yml113 # Set WEED_BINARY to use the installed versionCOMMENT
LOW.github/workflows/s3-policy-tests.yml422 # Set WEED_BINARY to use the installed version (though test uses 'weed' command)COMMENT
LOW.github/workflows/s3-proxy-signature-tests.yml66 # Check if containers are runningCOMMENT
LOW.github/workflows/s3-iam-tests.yml115 # Set WEED_BINARY to use the installed versionCOMMENT
LOW.github/workflows/s3tests.yml895 # Check if server process is still alive before waitingCOMMENT
LOW.github/workflows/s3tests.yml911 # Check if server process is still aliveCOMMENT
LOW.github/workflows/kafka-tests.yml253 # Check if broker is properly registered by querying cluster nodesCOMMENT
LOW.github/workflows/kafka-tests.yml270 # Check if broker failed to start and show logsCOMMENT
LOW.github/workflows/kafka-tests.yml432 # Check if broker is properly registered by querying cluster nodesCOMMENT
LOW.github/workflows/kafka-tests.yml449 # Check if broker failed to start and show logsCOMMENT
LOW.github/workflows/kafka-tests.yml593 # Check if broker is properly registered by querying cluster nodesCOMMENT
LOW.github/workflows/kafka-tests.yml610 # Check if broker failed to start and show logsCOMMENT
LOW.github/workflows/kafka-tests.yml751 # Check if broker is properly registered by querying cluster nodesCOMMENT
LOW.github/workflows/kafka-tests.yml768 # Check if broker failed to start and show logsCOMMENT
Cross-Language Confusion10 hits · 70 pts
SeverityFileLineSnippetContext
HIGHtest/s3/parquet/test_cross_filesystem_compatibility.py249 if not read.schema.equals(original.schema):CODE
HIGHtest/s3/parquet/test_cross_filesystem_compatibility.py257 if not read_sorted.equals(original_sorted):CODE
HIGHtest/s3/parquet/test_cross_filesystem_compatibility.py263 if not col_original.equals(col_read):CODE
HIGHtest/s3/parquet/test_pyarrow_native_s3.py208 if not table_read.schema.equals(table.schema):CODE
HIGHtest/s3/parquet/test_pyarrow_native_s3.py215 if not table_read_sorted.equals(table_sorted):CODE
HIGHtest/s3/parquet/test_pyarrow_native_s3.py221 if not col_original.equals(col_read):CODE
HIGHtest/s3/parquet/test_pyarrow_native_s3.py235 if not table_dataset_sorted.equals(table_sorted):CODE
HIGHtest/s3/parquet/test_pyarrow_native_s3.py240 if not col_original.equals(col_read):CODE
HIGHtest/s3/parquet/test_pyarrow_native_s3.py254 if not table_pads_sorted.equals(table_sorted):CODE
HIGHtest/s3/parquet/test_pyarrow_native_s3.py259 if not col_original.equals(col_read):CODE
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALweed/static/javascript/jquery-3.6.0.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
CRITICAL…a/spark/src/test/java/seaweed/spark/SparkTestBase.java108 org.apache.hadoop.fs.FileSystem fs = org.apache.hadoop.fs.FileSystem.get(CODE
CRITICAL…java/seaweed/spark/ParquetOperationComparisonTest.java308 try (ParquetWriter<Group> writer = org.apache.parquet.hadoop.example.ExampleParquetWriter.builder(path)CODE
CRITICAL…java/seaweed/spark/ParquetOperationComparisonTest.java347 try (ParquetWriter<Group> writer = org.apache.parquet.hadoop.example.ExampleParquetWriter.builder(path)CODE
CRITICAL…est/java/seaweed/spark/SparkReadDirectParquetTest.java157 try (ParquetWriter<Group> writer = org.apache.parquet.hadoop.example.ExampleParquetWriter.builder(path)CODE
CRITICAL…k/src/test/java/seaweed/spark/SimpleOneColumnTest.java27 org.apache.hadoop.fs.FileSystem fs = org.apache.hadoop.fs.FileSystem.get(CODE
Self-Referential Comments16 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUMterraform/modules/core/variables.tf4# This module is a PURE RENDERER. It creates zero cloud resources. It takes aCOMMENT
MEDIUMseaweedfs-rdma-sidecar/scripts/demo-mount-rdma.sh169# Create a larger test fileCOMMENT
MEDIUMweed/command/mini.go1105 sb.WriteString("# This file is loaded on startup if it exists\n\n")CODE
MEDIUMtest/kms/setup_openbao.sh60 # Create the encryption keyCOMMENT
MEDIUMtest/s3/parquet/debug_write_dataset.py9# Create a simple test tableCOMMENT
MEDIUMtest/s3/parquet/test_implicit_directory_fix.py83 # Create a dataset using PyArrow (creates implicit directory)COMMENT
MEDIUMtest/s3/parquet/test_implicit_directory_fix.py185 # Create an explicit directory markerCOMMENT
MEDIUMtest/s3/parquet/test_implicit_directory_fix.py216 # Create an empty file with text/plain mime typeCOMMENT
MEDIUMtest/s3tables/catalog/test_rest_catalog_auth.py83 # Define a simple schemaCOMMENT
MEDIUMtest/s3tables/catalog/test_rest_catalog.py83 # Define a simple schemaCOMMENT
MEDIUM…afka/kafka-client-loadtest/scripts/register-schemas.sh66 # Create the schema registration payloadCOMMENT
MEDIUM…afka/kafka-client-loadtest/scripts/register-schemas.sh181 # Define the Avro schema for load test messagesCOMMENT
MEDIUM…afka/kafka-client-loadtest/scripts/register-schemas.sh197 # Define the JSON schema for load test messagesCOMMENT
MEDIUM…afka/kafka-client-loadtest/scripts/register-schemas.sh217 # Define the Protobuf schema for load test messagesCOMMENT
MEDIUM…afka/kafka-client-loadtest/scripts/register-schemas.sh232 # Define the key schema (simple string)COMMENT
MEDIUMtest/foundationdb/test_fdb_s3.sh114# Create a directoryCOMMENT
Fake / Example Data37 hits · 38 pts
SeverityFileLineSnippetContext
LOWweed/s3api/auth_credentials.go128 EmailAddress: "admin@example.com",CODE
LOWweed/s3api/auth_sts_identity_test.go334 "email": "user@example.com",CODE
LOWweed/s3api/auth_sts_identity_test.go353 assert.Equal(t, "user@example.com", sessionInfo.RequestContext["email"])CODE
LOWweed/s3api/auth_sts_identity_test.go363 assert.Equal(t, "user@example.com", identity.Claims["email"], "email should be in Claims")CODE
LOWweed/kms/config.go471 req := &DescribeKeyRequest{KeyID: "health-check-dummy-key"}CODE
LOWweed/admin/config/schema.go59 Placeholder string `json:"placeholder"`CODE
LOWweed/iam/oidc/oidc_provider_test.go128 "email": "user@example.com",CODE
LOWweed/iam/oidc/oidc_provider_test.go140 assert.Equal(t, "user@example.com", email)CODE
LOWweed/iam/oidc/oidc_provider_test.go353 "email": "user@example.com",CODE
LOWweed/iam/oidc/oidc_provider_test.go362 assert.Equal(t, "user@example.com", identity.Email)CODE
LOWweed/iam/oidc/oidc_provider_test.go376 "email": "user@example.com",CODE
LOWweed/iam/oidc/oidc_provider_test.go454 "email": "user@example.com",CODE
LOWweed/iam/oidc/oidc_provider_test.go486 assert.Equal(t, "user@example.com", identity.Email)CODE
LOWweed/iam/oidc/oidc_provider_test.go538 assert.Equal(t, "user@example.com", identity.Email)CODE
LOWweed/iam/oidc/oidc_provider_test.go646 "email": "user@example.com",CODE
LOWweed/mq/kafka/schema/reconstruction_test.go64 "name": "John Doe",CODE
LOWweed/mq/kafka/schema/reconstruction_test.go111 if finalDecodedMsg.RecordValue.Fields["name"].GetStringValue() != "John Doe" {CODE
LOWweed/mq/kafka/schema/reconstruction_test.go112 t.Errorf("Expected name='John Doe', got %v", finalDecodedMsg.RecordValue.Fields["name"].GetStringValue())CODE
LOWweed/mq/kafka/schema/reconstruction_test.go314 "name": "John Doe",CODE
LOWweed/mq/kafka/schema/manager_test.go64 "name": "John Doe",CODE
LOWweed/mq/kafka/schema/manager_test.go106 if nameValue == nil || nameValue.GetStringValue() != "John Doe" {CODE
LOWweed/mq/kafka/schema/manager_test.go107 t.Errorf("Expected name='John Doe', got %v", nameValue)CODE
LOWweed/mq/kafka/schema/decode_encode_test.go50 "name": "John Doe",CODE
LOWweed/mq/kafka/schema/decode_encode_test.go212 "street": "123 Main St",CODE
LOWweed/mq/kafka/schema/json_schema_decoder_test.go106 "name": "John Doe",CODE
LOWweed/mq/kafka/schema/json_schema_decoder_test.go132 "name": "John Doe"CODE
LOWweed/mq/kafka/schema/json_schema_decoder_test.go140 "name": "John Doe",CODE
LOWweed/mq/kafka/schema/json_schema_decoder_test.go149 "name": "John Doe",CODE
LOWweed/mq/kafka/schema/json_schema_decoder_test.go519 jsonData := []byte(`{"id": 123, "name": "John Doe"}`)CODE
LOWweed/mq/kafka/schema/json_schema_decoder_test.go538 jsonData := []byte(`{"id": 123, "name": "John Doe"}`)CODE
LOWweed/mq/kafka/schema/integration_test.go454 "email": map[string]interface{}{"string": "user@example.com"},CODE
LOWweed/mq/kafka/schema/avro_decoder_test.go87 "name": "John Doe",CODE
LOWweed/mq/kafka/schema/avro_decoder_test.go110 if result["name"] != "John Doe" {CODE
LOWweed/mq/kafka/schema/avro_decoder_test.go111 t.Errorf("Expected name='John Doe', got %v", result["name"])CODE
LOWweed/mq/kafka/schema/avro_decoder_test.go519 "name": "John Doe",CODE
LOWweed/query/engine/test_sample_data_test.go125 "data": {Kind: &schema_pb.Value_StringValue{StringValue: `{"field": "email", "new_value": "user@example.com"}CODE
LOWtest/s3/iam/s3_iam_framework.go335 return []byte("dummy-key"), nilCODE
Hyper-Verbose Identifiers17 hits · 18 pts
SeverityFileLineSnippetContext
LOWweed/admin/static/js/s3tables.js378async function loadIcebergNamespaceTables(node, bucketArn, catalogName) {CODE
LOWweed/admin/static/js/admin.js966function updateDeleteSelectedButton() {CODE
LOWweed/admin/static/js/admin.js1418function setupFileManagerEventHandlers() {CODE
LOWweed/admin/view/app/service_accounts_templ.go275 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "</select> <small class=\"form-text text-muteCODE
LOWweed/admin/view/app/file_browser_templ.go804 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 89, "\"><!-- File List Preview --><div id=\"fileLCODE
LOWweed/admin/view/app/object_store_users_templ.go243 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "</div><div class=\"mb-3\"><label for=\"emailCODE
LOWweed/admin/view/app/plugin_templ.go107 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "</p></div><div class=\"btn-group\"><button tyCODE
LOWweed/admin/view/app/topic_details_templ.go1001 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 117, "</div></div></div></div></div></div></div><CODE
LOWweed/admin/view/app/policies_templ.go196 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "</tbody></table></div></div></div></div></diCODE
LOWtest/s3/compatibility/fix_s3_tests_bucket_conflicts.py185def _sw_get_new_bucket_resource(name=None):CODE
LOWtest/s3/parquet/s3_parquet_test.py259def read_with_parquet_dataset(path: str, fs: s3fs.S3FileSystem) -> Tuple[bool, str, int]:CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py69def test_implicit_directory_head_behavior(fs, s3_client):CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py159def test_pyarrow_dataset_read(fs):CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py179def test_explicit_directory_marker(fs, s3_client):CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py210def test_empty_file_not_directory(fs, s3_client):CODE
LOWtest/s3tables/catalog/test_rest_catalog_auth.py41def test_namespace_operations(catalog, prefix):CODE
LOWtest/s3tables/catalog/test_rest_catalog.py41def test_namespace_operations(catalog, prefix):CODE
Example Usage Blocks10 hits · 15 pts
SeverityFileLineSnippetContext
LOWinstall.sh6# Usage:COMMENT
LOWweed/filer/filer.go515// Example usage:COMMENT
LOWweed/wdclient/vidmap_client.go132// Example usage:COMMENT
LOWweed/worker/tasks/base/volume_utils.go14// Example usage:COMMENT
LOWdocker/compose/test-git-on-mount.sh14# Usage:COMMENT
LOWtest/s3/proxy_signature/test.sh5# Usage:COMMENT
LOWtest/s3tables/catalog/docker-compose.test.yaml6# Usage:COMMENT
LOWtest/samba/run.sh17# Usage:COMMENT
LOWtest/pjdfstest/run.sh13# Usage:COMMENT
LOWk8s/charts/seaweedfs/openshift-values.yaml19# Usage:COMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHweed/server/volume_grpc_tier_upload.go50 // check whether the existing backend storage is the same as requestedCOMMENT
HIGH.github/pull_request_template.md17# Checks for AI generated PRsCOMMENT
Modern AI Meta-Vocabulary5 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMterraform/examples/aws-ha-distributed/main.tf7# This is a scaffold: it provisions instances, protected EBS data disks, and theCOMMENT
MEDIUMtest/s3/parquet/test_cross_filesystem_compatibility.py302 except Exception as e: # noqa: BLE001 - Top-level exception handler for test orchestrationCODE
MEDIUMtest/s3/parquet/test_cross_filesystem_compatibility.py339 except Exception as e: # noqa: BLE001 - Top-level exception handler for test orchestrationCODE
MEDIUMtest/volume_server/DEV_PLAN.md413### Phase 0: Harness and scaffoldingCOMMENT
MEDIUMtest/postgres/SETUP_OVERVIEW.md11├── docker-compose.yml # Multi-service orchestrationCODE
Unused Imports7 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py49CODE
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py50CODE
LOWtest/s3/parquet/debug_write_dataset.py36CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py13CODE
LOWtest/s3/parquet/test_implicit_directory_fix.py21CODE
LOWtest/s3/parquet/example_pyarrow_native.py33CODE
LOWtest/s3tables/unity_catalog/delta_rs_writer.py25CODE
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/s3/parquet/debug_write_dataset.py38CODE
LOWtest/s3/parquet/test_pyarrow_native_s3.py184CODE
LOWtest/s3/parquet/test_pyarrow_native_s3.py271CODE
LOWpostgres-examples/test_client.py103CODE
LOWpostgres-examples/test_client.py145CODE
LOWpostgres-examples/test_client.py242CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtest/s3/parquet/s3_parquet_test.py168 Helper to discover all parquet files for a given path. Args: path: S3 path (file or directory) STRING
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMk8s/charts/seaweedfs/values.yaml365 # If these don't meet your needs, you can use "custom" here along with extraVolumes and extraVolumeMountsCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWweed/filer/filechunk_group_test.go250 // TODO: Add test cases.COMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/s3/parquet/test_implicit_directory_fix.py31logger = logging.getLogger(__name__)CODE