AI Slop Code Risk Monitor

apache/hadoop

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

Apache Hadoop

1.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for apache/hadoop, a Java project with 15,704 GitHub stars. SynthScan examined 4,046,170 lines of code across 15525 source files, recording 1940 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 1.7 (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.

1.7
Adjusted Signal
1.7
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
15.7K
Stars
Java
Language
4.0M
Lines of Code
15.5K
Files
1.9K
Pattern Hits
2026-10-31
Scan Date
0.03
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 1.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 6.3/100 · LOW

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

Agent Over-Engineering Ratio 0.2/100 · LOW

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

PR Review Velocity Impact 7.6/100 · LOW

Which changes need focused human review? 1940 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 478HIGH 4MEDIUM 73LOW 1385

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 1940 distinct pattern matches across 15 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 Indicators478 hits · 5258 pts
SeverityFileLineSnippetContext
CRITICAL…n/applications/distributedshell/ApplicationMaster.java1779 new org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent();CODE
CRITICAL…n/applications/distributedshell/ApplicationMaster.java1865 new org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent();CODE
CRITICAL…n/applications/distributedshell/ApplicationMaster.java1903 new org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent();CODE
CRITICAL…vice/timelineservice/TestServiceTimelinePublisher.java226 new org.apache.hadoop.yarn.service.api.records.Configuration());CODE
CRITICAL…vice/timelineservice/TestServiceTimelinePublisher.java246 new org.apache.hadoop.yarn.service.api.records.Configuration());CODE
CRITICAL…apache/hadoop/yarn/service/provider/ProviderUtils.java469 org.apache.commons.io.IOUtils.write(content, output, StandardCharsets.UTF_8);CODE
CRITICAL…rg/apache/hadoop/yarn/service/component/Component.java760 org.apache.hadoop.yarn.api.records.ResourceInformation.newInstance(CODE
CRITICAL…yarn/service/component/instance/ComponentInstance.java217 new org.apache.hadoop.yarn.service.api.records.Container();CODE
CRITICAL…org/apache/hadoop/yarn/service/utils/ServiceUtils.java518 org.apache.commons.io.IOUtils.copy(in, taos);CODE
CRITICAL…ineservice/collector/NodeTimelineCollectorManager.java234 return org.apache.hadoop.yarn.api.records.Token.newInstance(CODE
CRITICAL…he/hadoop/yarn/server/resourcemanager/Application.java292 org.apache.hadoop.yarn.server.utils.BuilderUtils.newResourceRequest(CODE
CRITICAL…p/yarn/server/resourcemanager/TestResourceManager.java97 new org.apache.hadoop.yarn.server.resourcemanager.NodeManager(CODE
CRITICAL…he/hadoop/yarn/server/resourcemanager/NodeManager.java160 org.apache.hadoop.yarn.server.resourcemanager.NodeManager.createNodeStatus(CODE
CRITICAL…e/hadoop/yarn/server/resourcemanager/AdminService.java275 org.apache.hadoop.ipc.Server.getRemoteAddress() +CODE
CRITICAL…e/hadoop/yarn/server/resourcemanager/AdminService.java284 org.apache.hadoop.ipc.Server.getRemoteAddress() + " denied " +CODE
CRITICAL…adoop/yarn/server/resourcemanager/ClientRMService.java769 if (!org.apache.commons.lang3.StringUtils.isAsciiPrintable(tag)) {CODE
CRITICAL…n/server/resourcemanager/webapp/RMAppAttemptBlock.java489 org.apache.hadoop.util.StringUtils.formatTime(Times.elapsed(CODE
CRITICAL…resourcemanager/placement/QueuePlacementRuleUtils.java127 if (!org.apache.commons.lang3.StringUtils.isEmpty(mapping.getParentQueue())) {CODE
CRITICAL…a/org/apache/hadoop/yarn/TestYarnServerApiClasses.java428 org.apache.hadoop.yarn.api.records.Token.newInstance(new byte[0],CODE
CRITICAL…oop/yarn/server/util/timeline/TimelineServerUtils.java72 org.apache.commons.lang3.StringUtils.join(target, ",");CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1572 org.apache.commons.lang3.StringUtils.repeat("A", 1024)));CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1574 org.apache.commons.lang3.StringUtils.repeat(CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1578 org.apache.commons.lang3.StringUtils.repeat(CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1587 org.apache.commons.lang3.StringUtils.repeat("A", 1024),CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1588 org.apache.commons.lang3.StringUtils.repeat("A", 1024),CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1589 org.apache.commons.lang3.StringUtils.repeat("A", 1024)));CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1593 org.apache.commons.lang3.StringUtils.repeat("E", 4095),CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1594 org.apache.commons.lang3.StringUtils.repeat("E", 2047),CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1595 org.apache.commons.lang3.StringUtils.repeat("E", 2047 - callCmd.length())));CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1599 org.apache.commons.lang3.StringUtils.repeat("X", 4095),CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1600 org.apache.commons.lang3.StringUtils.repeat("X", 2047),CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1601 org.apache.commons.lang3.StringUtils.repeat("X", 2048 - callCmd.length())));CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1620 builder.env("somekey", org.apache.commons.lang3.StringUtils.repeat("A", 1024));CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1621 builder.env("somekey", org.apache.commons.lang3.StringUtils.repeat(CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1624 builder.env("somekey", org.apache.commons.lang3.StringUtils.repeat(CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1646 builder.mkdir(new Path(org.apache.commons.lang3.StringUtils.repeat("A", 1024)));CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1647 builder.mkdir(new Path(org.apache.commons.lang3.StringUtils.repeat("E",CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1650 builder.mkdir(new Path(org.apache.commons.lang3.StringUtils.repeat(CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1671 builder.link(new Path(org.apache.commons.lang3.StringUtils.repeat("A", 1024)),CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1672 new Path(org.apache.commons.lang3.StringUtils.repeat("B", 1024)));CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1674 new Path(org.apache.commons.lang3.StringUtils.repeat(CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1676 new Path(org.apache.commons.lang3.StringUtils.repeat(CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1680 new Path(org.apache.commons.lang3.StringUtils.repeat(CODE
CRITICAL⚡…ger/containermanager/launcher/TestContainerLaunch.java1682 new Path(org.apache.commons.lang3.StringUtils.repeat(CODE
CRITICAL…server/nodemanager/WindowsSecureContainerExecutor.java337 org.apache.hadoop.util.StringUtils.stringifyException(e)));CODE
CRITICAL…server/nodemanager/WindowsSecureContainerExecutor.java713 org.apache.hadoop.util.StringUtils.stringifyException(e)));CODE
CRITICAL…nodemanager/containermanager/ContainerManagerImpl.java1417 org.apache.hadoop.yarn.api.records.Container.newInstance(CODE
CRITICAL…in/resources/webapps/static/jquery/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…s/webapps/static/jquery/jquery-ui-1.13.2.custom.min.js6!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict"CODE
CRITICAL…rg/apache/hadoop/yarn/util/ProcfsBasedProcessTree.java812 org.apache.hadoop.io.IOUtils.closeStream(in);CODE
CRITICAL…hadoop/yarn/util/Log4jWarningErrorMetricsAppender.java156 org.apache.commons.lang3.StringUtils.left(message, MAX_MESSAGE_SIZE);CODE
CRITICAL…/yarn/security/client/RMDelegationTokenIdentifier.java168 return org.apache.hadoop.yarn.api.records.Token.newInstance(CODE
CRITICAL…rg/apache/hadoop/yarn/logaggregation/LogToolUtils.java101 org.apache.hadoop.io.IOUtils.skipFully(fis, toSkip);CODE
CRITICAL…rg/apache/hadoop/yarn/logaggregation/LogToolUtils.java129 org.apache.hadoop.io.IOUtils.skipFully(fis, skipAfterRead);CODE
CRITICAL…he/hadoop/yarn/logaggregation/AggregatedLogFormat.java842 org.apache.hadoop.io.IOUtils.skipFully(CODE
CRITICAL…he/hadoop/yarn/logaggregation/AggregatedLogFormat.java865 org.apache.hadoop.io.IOUtils.skipFully(CODE
CRITICAL…he/hadoop/yarn/logaggregation/AggregatedLogFormat.java973 org.apache.hadoop.io.IOUtils.skipFully(CODE
CRITICAL…he/hadoop/yarn/logaggregation/AggregatedLogFormat.java994 org.apache.hadoop.io.IOUtils.skipFully(CODE
CRITICAL…in/java/org/apache/hadoop/yarn/client/cli/NodeCLI.java131 org.apache.hadoop.util.StringUtils.toUpperCase(CODE
CRITICAL…apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java149 new org.apache.hadoop.yarn.api.records.ResourceRequest.ResourceRequestComparator());CODE
418 more matches not shown…
Over-Commented Block1193 hits · 1072 pts
SeverityFileLineSnippetContext
LOW.asf.yaml1# Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOWstart-build-env.sh1#!/usr/bin/env bashCOMMENT
LOW…applications-distributedshell/src/test/resources/b.txt1# Licensed under the Apache License, Version 2.0 (the "License");COMMENT
LOW…applications-distributedshell/src/test/resources/a.txt1# Licensed under the Apache License, Version 2.0 (the "License");COMMENT
LOW…/yarn/applications/distributedshell/PlacementSpec.java61 */COMMENT
LOW…apache/hadoop/yarn/service/TestYarnNativeServices.java721 }COMMENT
LOW…inition/YARN-Simplified-V1-API-Layer-For-Services.yaml1# Hadoop YARN REST APIs for services v1 spec in YAMLCOMMENT
LOW…cations-catalog-docker/src/main/scripts/setup-image.sh1#!/bin/bashCOMMENT
LOW…ications-catalog-docker/src/main/scripts/entrypoint.sh1#!/bin/bash -xCOMMENT
LOW…ources/configsets/exampleCollection/conf/protwords.txt1# The ASF licenses this file to You under the Apache License, Version 2.0COMMENT
LOW…sources/configsets/exampleCollection/conf/synonyms.txt1# The ASF licenses this file to You under the Apache License, Version 2.0COMMENT
LOW…ources/configsets/exampleCollection/conf/stopwords.txt1# Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…onfigsets/exampleCollection/conf/lang/stopwords_en.txt1# Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOWhadoop-yarn-project/hadoop-yarn/bin/yarn-daemon.sh1#!/usr/bin/env bashCOMMENT
LOWhadoop-yarn-project/hadoop-yarn/bin/yarn-daemons.sh1#!/usr/bin/env bashCOMMENT
LOWhadoop-yarn-project/hadoop-yarn/bin/start-yarn.sh1#!/usr/bin/env bashCOMMENT
LOWhadoop-yarn-project/hadoop-yarn/bin/stop-yarn.sh1#!/usr/bin/env bashCOMMENT
LOWhadoop-yarn-project/hadoop-yarn/bin/yarn-config.sh1# Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…arn/server/resourcemanager/TestApplicationCleanup.java441COMMENT
LOW…emanager/scheduler/capacity/TestApplicationLimits.java961 // can be used for AMs is 30%. So, 30% of <memory: 100GB, vCores: 1000> isCOMMENT
LOW…/resourcemanager/scheduler/capacity/TestLeafQueue.java3921 COMMENT
LOW…/resourcemanager/scheduler/capacity/TestLeafQueue.java3961 // ANY: < 1, 1GB, 1, false > COMMENT
LOW…/resourcemanager/scheduler/capacity/TestLeafQueue.java3981 Collections.singletonList(rack_1), Collections.singletonList(host_1_1));COMMENT
LOW…/resourcemanager/scheduler/capacity/TestLeafQueue.java4041 app_0_requests_0.add(COMMENT
LOW…ager/scheduler/capacity/TestCapacitySchedulerPerf.java101 return retVal;COMMENT
LOW…ySchedulerNewQueueAutoCreationWithCapacityVectors.java121COMMENT
LOW…esourcemanager/nodelabels/TestRMNodeLabelsManager.java201 isEqualTo(Resources.multiply(SMALL_RESOURCE, 1));COMMENT
LOW…ourcemanager/nodelabels/TestNodeAttributesManager.java181 // A2=host1_v1_2COMMENT
LOW…oop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java1381 rmNode, statusEvent);COMMENT
LOW…r/monitor/capacity/FifoIntraQueuePreemptionPlugin.java521COMMENT
LOW…r/resourcemanager/scheduler/capacity/UsersManager.java781 // - maxUserLimit = total-partition-resource (IGNORE_PARTITION_EXCLUSIVITY)COMMENT
LOW…esourcemanager/scheduler/capacity/AbstractCSQueue.java801 readLock.lock();COMMENT
LOW…uler/capacity/allocator/RegularContainerAllocator.java601 // some containers to meet this queue, its parents', or the users'COMMENT
LOW…n/server/resourcemanager/reservation/InMemoryPlan.java641 long periodicSearchEnd = (endTime - shift) % period;COMMENT
LOW…erver/resourcemanager/rmcontainer/RMContainerImpl.java641 Resource rmContainerResource = container.getAllocatedResource();COMMENT
LOW…erver/resourcemanager/rmcontainer/RMContainerImpl.java661 // 4. When NM reports 5G to RM, RM now sees its own allocation as 4GCOMMENT
LOW…ver/federation/store/impl/SQLFederationStateStore.java1301 try {COMMENT
LOW…ver/federation/store/impl/SQLFederationStateStore.java1581COMMENT
LOW…rver/hadoop-yarn-server-nodemanager/src/CMakeLists.txt1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOW…n/server/nodemanager/TestDefaultContainerExecutor.java661COMMENT
LOW…n/server/nodemanager/TestDefaultContainerExecutor.java681// }COMMENT
LOW…n/server/nodemanager/TestDefaultContainerExecutor.java701// r.setSeed(jobSeed);COMMENT
LOW…n/server/nodemanager/TestDefaultContainerExecutor.java721// DefaultContainerExecutor dce = new DefaultContainerExecutor(lfs);COMMENT
LOW…n/server/nodemanager/TestDefaultContainerExecutor.java741// verify(spylfs).mkdir(jobdir,COMMENT
LOW…in/native/container-executor/impl/container-executor.c21#include "utils/docker-util.h"COMMENT
LOW…in/native/container-executor/impl/container-executor.c41#include <stdio.h>COMMENT
LOW…in/native/container-executor/impl/container-executor.c61#ifndef HAVE_FDOPENDIRCOMMENT
LOW…rc/main/native/container-executor/impl/configuration.h21COMMENT
LOW…in/native/container-executor/impl/container-executor.h61#define USER_DIR_PATTERN "%s/usercache/%s"COMMENT
LOW…manager/src/main/native/container-executor/impl/main.c21#include "container-executor.h"COMMENT
LOW…rc/main/native/container-executor/impl/configuration.c21COMMENT
LOW…ain/native/container-executor/impl/utils/docker-util.c21#include <sys/wait.h>COMMENT
LOW…main/native/container-executor/impl/utils/file-utils.c21#include <sys/types.h>COMMENT
LOW…ain/native/container-executor/impl/utils/docker-util.h21COMMENT
LOW…ain/native/container-executor/impl/utils/cJSON/cJSON.h61#endifCOMMENT
LOW…ain/native/container-executor/impl/utils/cJSON/cJSON.h81/* project version */COMMENT
LOW…ain/native/container-executor/impl/utils/cJSON/cJSON.c21*/COMMENT
LOW…ain/native/container-executor/impl/utils/cJSON/cJSON.c41#include <stdio.h>COMMENT
LOW…main/native/container-executor/impl/runc/runc_config.h21// Section for all runC config keysCOMMENT
LOW…er/src/main/native/container-executor/impl/runc/runc.c21#include <sys/stat.h>COMMENT
1133 more matches not shown…
Decorative Section Separators50 hits · 159 pts
SeverityFileLineSnippetContext
MEDIUM…ources/configsets/exampleCollection/conf/protwords.txt13#-----------------------------------------------------------------------COMMENT
MEDIUM…sources/configsets/exampleCollection/conf/synonyms.txt13#-----------------------------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md986# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md988# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md1016# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md1018# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md1082# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md1084# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md1100# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md1105# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md1217# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md1219# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md1246# ---------------------------------------------------COMMENT
MEDIUM…site/markdown/tools/hadoop-aws/qualifying_a_new_sdk.md1250# ---------------------------------------------------COMMENT
MEDIUM⚡…oop/fs/s3a/statistics/impl/AwsStatisticsCollector.java71 // ┌─────────────────────────────────────────┐COMMENT
MEDIUM⚡…oop/fs/s3a/statistics/impl/AwsStatisticsCollector.java79 // └─────────────────────────────────────────┘COMMENT
MEDIUM⚡…oop/fs/s3a/statistics/impl/AwsStatisticsCollector.java81 // ┌─────────────────────────────────────────────────────────────────┐COMMENT
MEDIUM⚡…oop/fs/s3a/statistics/impl/AwsStatisticsCollector.java88 // └─────────────────────────────────────────────────────────────────┘COMMENT
MEDIUM⚡…oop/fs/s3a/statistics/impl/AwsStatisticsCollector.java90 // ┌─────────────────────────────────┐COMMENT
MEDIUM⚡…oop/fs/s3a/statistics/impl/AwsStatisticsCollector.java97 // └─────────────────────────────────┘COMMENT
MEDIUM…oop-azure/dev-support/testrun-scripts/configsupport.sh23# ------------------------------------------------------------------------------COMMENT
MEDIUM…oop-azure/dev-support/testrun-scripts/configsupport.sh25# ------------------------------------------------------------------------------COMMENT
MEDIUM…oop-azure/dev-support/testrun-scripts/configsupport.sh54# ------------------------------------------------------------------------------COMMENT
MEDIUM…oop-azure/dev-support/testrun-scripts/configsupport.sh56# ------------------------------------------------------------------------------COMMENT
MEDIUM…oop-azure/dev-support/testrun-scripts/configsupport.sh105# ------------------------------------------------------------------------------COMMENT
MEDIUM…oop-azure/dev-support/testrun-scripts/configsupport.sh107# ------------------------------------------------------------------------------COMMENT
MEDIUM…oop-azure/dev-support/testrun-scripts/configsupport.sh139# ------------------------------------------------------------------------------COMMENT
MEDIUM…oop-azure/dev-support/testrun-scripts/configsupport.sh141# ------------------------------------------------------------------------------COMMENT
MEDIUM…oop-azure/dev-support/testrun-scripts/configsupport.sh198# ------------------------------------------------------------------------------COMMENT
MEDIUM…oop-azure/dev-support/testrun-scripts/configsupport.sh200# ------------------------------------------------------------------------------COMMENT
MEDIUM…ject/hadoop-hdfs/src/test/resources/hadoop-dfs-dir.txt23# ---------------------COMMENT
MEDIUM…ject/hadoop-hdfs/src/test/resources/hadoop-dfs-dir.txt35# ---------------------------------------COMMENT
MEDIUM…project/hadoop-hdfs/src/main/bin/distribute-exclude.sh19# ------------------------------------------------------------------COMMENT
MEDIUM…doop-hdfs-project/hadoop-hdfs/src/main/bin/stop-dfs.sh51#---------------------------------------------------------COMMENT
MEDIUM…doop-hdfs-project/hadoop-hdfs/src/main/bin/stop-dfs.sh69#---------------------------------------------------------COMMENT
MEDIUM…doop-hdfs-project/hadoop-hdfs/src/main/bin/stop-dfs.sh80#---------------------------------------------------------COMMENT
MEDIUM…doop-hdfs-project/hadoop-hdfs/src/main/bin/stop-dfs.sh100#---------------------------------------------------------COMMENT
MEDIUM…doop-hdfs-project/hadoop-hdfs/src/main/bin/stop-dfs.sh116#---------------------------------------------------------COMMENT
MEDIUM…oop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh84#---------------------------------------------------------COMMENT
MEDIUM…oop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh103#---------------------------------------------------------COMMENT
MEDIUM…oop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh114#---------------------------------------------------------COMMENT
MEDIUM…oop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh144#---------------------------------------------------------COMMENT
MEDIUM…oop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh161#---------------------------------------------------------COMMENT
MEDIUM…-project/hadoop-hdfs/src/main/bin/refresh-namenodes.sh19# ------------------------------------------------------------------COMMENT
MEDIUMdev-support/docker/hadoop_env_checks.sh21# -------------------------------------------------------COMMENT
MEDIUMdev-support/docker/hadoop_env_checks.sh41# -------------------------------------------------------COMMENT
MEDIUMdev-support/docker/hadoop_env_checks.sh58# -------------------------------------------------------COMMENT
MEDIUMdev-support/docker/hadoop_env_checks.sh83# -------------------------------------------------------COMMENT
MEDIUMdev-support/docker/hadoop_env_checks.sh110# -------------------------------------------------------COMMENT
MEDIUMdev-support/docker/hadoop_env_checks.sh116# -------------------------------------------------------COMMENT
Structural Annotation Overuse58 hits · 104 pts
SeverityFileLineSnippetContext
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3298 // Step 1: Create a Configuration object to hold the settings.COMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3301 // Step 2: Setup the host files.COMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3313 // Step 3: Create a MockRM (ResourceManager) instance to simulate RM behaviorCOMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3319 // Step 4: Register and simulate node activity for "test_host1"COMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3325 // Step 5: Validate that test_host3 is marked as a LOST nodeCOMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3332 // Step 6: Validate node metrics for lost, active, and decommissioned nodesCOMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3341 // Step 7: Register and simulate node activity for "test_host3"COMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3346 // Step 8: Validate updated node metrics after registering test_host3COMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java138 // Step 1: Launch an App in Default Queue which utilizes the entire clusterCOMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java150 // Step 2: Wait till the nodes utilization are fullCOMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java161 // Step 3: Launch another App in Queue A which will be ReservedCOMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java186 // Step 4: Wait for Preemption to happen. It will preempt Node1 (1GB)COMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java203 // Step 5: Don't release the container from NodeManager so that ReservationCOMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java241 // Step 6: Okay, now preempted node is Node1 and reserved node is Node3COMMENT
LOW⚡…ity/TestCapacitySchedulerMultiNodesWithPreemption.java260 // Step 7: Wait for app-2 to get ALLOCATEDCOMMENT
LOW⚡…ity/TestCapacitySchedulerMultiNodesWithPreemption.java265 // Step 8: Validate if app-2 has got 1 live container andCOMMENT
LOW…he/hadoop/yarn/client/api/impl/TestYarnClientImpl.java183 // Step 1: Start a MiniDFSCluster for Log Aggregation PathCOMMENT
LOW…he/hadoop/yarn/client/api/impl/TestYarnClientImpl.java195 // Step 2: Prepare a Mock FileSystem which returns Delegation TokenCOMMENT
LOW…he/hadoop/yarn/client/api/impl/TestYarnClientImpl.java216 // Step 3: Prepare a Mock YarnClientImplCOMMENT
LOW…he/hadoop/yarn/client/api/impl/TestYarnClientImpl.java245 // Step 4: Prepare a ApplicationSubmissionContext and submit the appCOMMENT
LOW…he/hadoop/yarn/client/api/impl/TestYarnClientImpl.java262 // Step 5: Verify automatic addition of HDFS DT for log aggregation pathCOMMENT
LOW⚡…curity/authentication/util/TestSubjectPropagation.java98 // Step 1: create the worker INSIDE the callAs scope so it inherits the Subject's ThreadLocal.COMMENT
LOW⚡…curity/authentication/util/TestSubjectPropagation.java103 // Step 2: callAs has exited. Submit a task that itself spawns a grandchild Thread,COMMENT
LOW…e-project/hadoop-bos/src/test/resources/README-TEST.md44### Step 1: Create Test Configuration FileCOMMENT
LOW…e-project/hadoop-bos/src/test/resources/README-TEST.md53### Step 2: Configure BOS CredentialsCOMMENT
LOW…e-project/hadoop-bos/src/test/resources/README-TEST.md69### Step 3: Set AuthenticationCOMMENT
LOW…hadoop-aws/src/site/markdown/tools/hadoop-aws/index.md271### Step 1: Create a credential fileCOMMENT
LOW…hadoop-aws/src/site/markdown/tools/hadoop-aws/index.md298### Step 2: Configure the `hadoop.security.credential.provider.path` propertyCOMMENT
LOW…hadoop-sls/src/site/markdown/SchedulerLoadSimulator.md111### Step 1: Configure Hadoop and the simulatorCOMMENT
LOW…hadoop-sls/src/site/markdown/SchedulerLoadSimulator.md178### Step 2: Run the simulatorCOMMENT
LOW…hadoop/fs/azurebfs/services/ITestAbfsOutputStream.java411 // Step 2: Mock the clientHandler to return the blobClient when getBlobClient is calledCOMMENT
LOW…a/org/apache/hadoop/fs/azurebfs/AbfsConfiguration.java1028 for (T enumConstant : defaultValue.getDeclaringClass().getEnumConstants()) { // Step 3: Iterate over enum constantCODE
LOW…sourceestimator/src/site/markdown/ResourceEstimator.md71### Step 1: Start the estimatorCOMMENT
LOW…sourceestimator/src/site/markdown/ResourceEstimator.md82### Step 2: Run the estimatorCOMMENT
LOW…sourceestimator/src/site/markdown/ResourceEstimator.md106### Step 3: Run the estimatorCOMMENT
LOW…ls/hadoop-dynamometer/src/site/markdown/Dynamometer.md71### Step 1: Preparing Requisite FilesCOMMENT
LOW…ls/hadoop-dynamometer/src/site/markdown/Dynamometer.md75### Step 2: Prepare FsImage FilesCOMMENT
LOW…ls/hadoop-dynamometer/src/site/markdown/Dynamometer.md96### Step 3: Prepare a Hadoop BinaryCOMMENT
LOW…ls/hadoop-dynamometer/src/site/markdown/Dynamometer.md113### Step 4: Prepare ConfigurationsCOMMENT
LOW…ls/hadoop-dynamometer/src/site/markdown/Dynamometer.md122### Step 5: Execute the Block Generation JobCOMMENT
LOW…ls/hadoop-dynamometer/src/site/markdown/Dynamometer.md137### Step 6: Prepare Audit Traces (Optional)COMMENT
LOW…src/main/java/org/apache/hadoop/hdfs/StripeReader.java439 // Step 1: prepare indices and output buffers for missing data unitsCOMMENT
LOW⚡…src/main/java/org/apache/hadoop/hdfs/StripeReader.java450 // Step 2: decode into prepared output buffersCOMMENT
LOW⚡…src/main/java/org/apache/hadoop/hdfs/StripeReader.java453 // Step 3: fill original application buffer with decoded dataCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java349 // Step 1: map the byte range to StripingCellsCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java353 // Step 2: get the unmerged ranges on each internal blockCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java357 // Step 3: merge into stripesCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java361 // Step 4: calculate each chunk's position in destination buffer. Since theCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java408 // Step 0: analyze range and calculate basic parametersCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java411 // Step 1: map the byte range to StripingCellsCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java415 // Step 2: get the unmerged ranges on each internal blockCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java419 // Step 3: merge into at most 5 stripesCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java423 // Step 4: calculate each chunk's position in destination bufferCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java426 // Step 5: prepare ALLZERO blocksCOMMENT
LOW…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java384 // Step 5: prepare ALLZERO blocksCOMMENT
LOW…e/hadoop/hdfs/server/blockmanagement/BlockManager.java2150 // Step 1: categorize at-risk blocks into replication and EC tasksCOMMENT
LOW…e/hadoop/hdfs/server/blockmanagement/BlockManager.java2171 // Step 2: choose target nodes for each reconstruction taskCOMMENT
LOW…e/hadoop/hdfs/server/blockmanagement/BlockManager.java2192 // Step 3: add tasks to the DNCOMMENT
Verbosity Indicators51 hits · 93 pts
SeverityFileLineSnippetContext
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3298 // Step 1: Create a Configuration object to hold the settings.COMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3301 // Step 2: Setup the host files.COMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3313 // Step 3: Create a MockRM (ResourceManager) instance to simulate RM behaviorCOMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3319 // Step 4: Register and simulate node activity for "test_host1"COMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3325 // Step 5: Validate that test_host3 is marked as a LOST nodeCOMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3332 // Step 6: Validate node metrics for lost, active, and decommissioned nodesCOMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3341 // Step 7: Register and simulate node activity for "test_host3"COMMENT
LOW⚡…server/resourcemanager/TestResourceTrackerService.java3346 // Step 8: Validate updated node metrics after registering test_host3COMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java138 // Step 1: Launch an App in Default Queue which utilizes the entire clusterCOMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java150 // Step 2: Wait till the nodes utilization are fullCOMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java161 // Step 3: Launch another App in Queue A which will be ReservedCOMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java186 // Step 4: Wait for Preemption to happen. It will preempt Node1 (1GB)COMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java203 // Step 5: Don't release the container from NodeManager so that ReservationCOMMENT
LOW…ity/TestCapacitySchedulerMultiNodesWithPreemption.java241 // Step 6: Okay, now preempted node is Node1 and reserved node is Node3COMMENT
LOW⚡…ity/TestCapacitySchedulerMultiNodesWithPreemption.java260 // Step 7: Wait for app-2 to get ALLOCATEDCOMMENT
LOW⚡…ity/TestCapacitySchedulerMultiNodesWithPreemption.java265 // Step 8: Validate if app-2 has got 1 live container andCOMMENT
LOW…rcemanager/scheduler/capacity/AbstractParentQueue.java439 // We need to check if the parent of the child queue is exactly thisCOMMENT
LOW…/src/main/resources/webapps/static/jt/jquery.jstree.js1413 // this variable stores the path to the themes folder - if left as false - it will be autodetectedCOMMENT
LOW…he/hadoop/yarn/client/api/impl/TestYarnClientImpl.java183 // Step 1: Start a MiniDFSCluster for Log Aggregation PathCOMMENT
LOW…he/hadoop/yarn/client/api/impl/TestYarnClientImpl.java195 // Step 2: Prepare a Mock FileSystem which returns Delegation TokenCOMMENT
LOW…he/hadoop/yarn/client/api/impl/TestYarnClientImpl.java216 // Step 3: Prepare a Mock YarnClientImplCOMMENT
LOW…he/hadoop/yarn/client/api/impl/TestYarnClientImpl.java245 // Step 4: Prepare a ApplicationSubmissionContext and submit the appCOMMENT
LOW…he/hadoop/yarn/client/api/impl/TestYarnClientImpl.java262 // Step 5: Verify automatic addition of HDFS DT for log aggregation pathCOMMENT
LOW⚡…curity/authentication/util/TestSubjectPropagation.java98 // Step 1: create the worker INSIDE the callAs scope so it inherits the Subject's ThreadLocal.COMMENT
LOW⚡…curity/authentication/util/TestSubjectPropagation.java103 // Step 2: callAs has exited. Submit a task that itself spawns a grandchild Thread,COMMENT
LOW…pache/hadoop/io/compress/bzip2/CBZip2OutputStream.java1827 // Step 1:COMMENT
LOW…pache/hadoop/io/compress/bzip2/CBZip2OutputStream.java1851 // Step 2:COMMENT
LOW…pache/hadoop/io/compress/bzip2/CBZip2OutputStream.java1871 // Step 3:COMMENT
LOW…/apache/hadoop/fs/gs/GoogleCloudStorageFileSystem.java119 // we need to check if there are no conflicting items in the directory tree:COMMENT
LOW…/apache/hadoop/fs/gs/GoogleCloudStorageFileSystem.java220 // Before creating a leaf directory we need to check if there are no conflicting filesCOMMENT
LOW…hadoop/fs/azurebfs/services/ITestAbfsOutputStream.java411 // Step 2: Mock the clientHandler to return the blobClient when getBlobClient is calledCOMMENT
LOW…a/org/apache/hadoop/fs/azurebfs/AbfsConfiguration.java1028 for (T enumConstant : defaultValue.getDeclaringClass().getEnumConstants()) { // Step 3: Iterate over enum constantCODE
LOW…che/hadoop/fs/azurebfs/services/AbfsRestOperation.java130 * This variable stores the tracing context used for last Rest Operation.COMMENT
LOW…apache/hadoop/fs/azurebfs/services/AbfsBlobClient.java500 // If the list operation returns no paths, we need to check if the path is a file.COMMENT
LOW…src/main/java/org/apache/hadoop/hdfs/StripeReader.java439 // Step 1: prepare indices and output buffers for missing data unitsCOMMENT
LOW⚡…src/main/java/org/apache/hadoop/hdfs/StripeReader.java450 // Step 2: decode into prepared output buffersCOMMENT
LOW⚡…src/main/java/org/apache/hadoop/hdfs/StripeReader.java453 // Step 3: fill original application buffer with decoded dataCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java349 // Step 1: map the byte range to StripingCellsCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java353 // Step 2: get the unmerged ranges on each internal blockCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java357 // Step 3: merge into stripesCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java361 // Step 4: calculate each chunk's position in destination buffer. Since theCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java408 // Step 0: analyze range and calculate basic parametersCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java411 // Step 1: map the byte range to StripingCellsCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java415 // Step 2: get the unmerged ranges on each internal blockCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java419 // Step 3: merge into at most 5 stripesCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java423 // Step 4: calculate each chunk's position in destination bufferCOMMENT
LOW⚡…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java426 // Step 5: prepare ALLZERO blocksCOMMENT
LOW…java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java384 // Step 5: prepare ALLZERO blocksCOMMENT
LOW…e/hadoop/hdfs/server/blockmanagement/BlockManager.java2150 // Step 1: categorize at-risk blocks into replication and EC tasksCOMMENT
LOW…e/hadoop/hdfs/server/blockmanagement/BlockManager.java2171 // Step 2: choose target nodes for each reconstruction taskCOMMENT
LOW…e/hadoop/hdfs/server/blockmanagement/BlockManager.java2192 // Step 3: add tasks to the DNCOMMENT
AI Slop Vocabulary16 hits · 47 pts
SeverityFileLineSnippetContext
MEDIUM…eservice/storage/common/HBaseTimelineStorageUtils.java95 // Essentially we are treating it like an 'unsigned very very long' andCOMMENT
MEDIUM…org/apache/hadoop/registry/server/dns/RegistryDNS.java221 // registryDNS can utilize local DNS server as upstream lookup.COMMENT
MEDIUM…oop-common/src/main/native/gtest/include/gtest/gtest.h9436// This implementation is *not* meant to be as highly tuned or robustCOMMENT
MEDIUM…oop-common/src/main/native/gtest/include/gtest/gtest.h9508// In practice, this can be used to test functions that utilize theCOMMENT
MEDIUM…main/java/org/apache/hadoop/util/DirectBufferPool.java48 // Essentially implement a multimap with weak values.COMMENT
MEDIUM…g/apache/hadoop/fs/statistics/IOStatisticsLogging.java232 // robust extract and convert to stringCOMMENT
MEDIUM…mmon-project/hadoop-common/src/main/conf/hadoop-env.sh127# Similarly, end users should utilize ${HOME}/.hadooprc .COMMENT
MEDIUM…/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java4451 // Essentially: no DTs, no canonical service name.COMMENT
MEDIUM…tools/hadoop-sls/src/main/html/js/thirdparty/jquery.js10821// understands anonymous AMD modules. A named AMD is safest and most robustCOMMENT
MEDIUM…azurebfs/services/AbfsManagedApacheHttpConnection.java119 return true; // Definitely staleCODE
MEDIUM…n/java/org/apache/hadoop/tools/dynamometer/Client.java501 // Store a temporary config to leverage Configuration's time durationCOMMENT
MEDIUM…s/src/test/java/org/apache/hadoop/hdfs/TestHFlush.java309 // Make sure we work with DFS in order to utilize all its functionalityCOMMENT
MEDIUM…c/test/java/org/apache/hadoop/hdfs/TestDFSUpgrade.java64 // TODO: Avoid hard-coding expected_txid. The test should be more robust.COMMENT
MEDIUM…e/hadoop/hdfs/server/namenode/TestCacheDirectives.java965 // the NameNode be robust against this.COMMENT
MEDIUM…s/server/datanode/erasurecode/ErasureCodingWorker.java78 // Essentially, this is a cachedThreadPool.COMMENT
MEDIUM…rg/apache/hadoop/hdfs/server/namenode/FSEditLogOp.java5076 // robust.COMMENT
Hyper-Verbose Identifiers45 hits · 45 pts
SeverityFileLineSnippetContext
LOW…ain/webapp/docs/development/adding-validation-rules.md243export function getAffectedQueuesForValidation(CODE
LOW…ain/webapp/docs/development/adding-validation-rules.md355function evaluateWithStagedChanges(context: ValidationContext): ValidationIssue[] {CODE
LOW…ain/webapp/docs/development/adding-validation-rules.md445function evaluateDefaultLifetimeConstraint(context: ValidationContext): ValidationIssue[] {CODE
LOW…acity-scheduler-ui/src/main/webapp/src/types/guards.ts35export function getQueueNameValidationError(name: string): string | null {CODE
LOW…uler-ui/src/main/webapp/src/config/validation-rules.ts102function evaluateCapacityTypeConsistency(context: ValidationContext): ValidationIssue[] {CODE
LOW…uler-ui/src/main/webapp/src/config/validation-rules.ts237function evaluateMaxCapacityRelationship(context: ValidationContext): ValidationIssue[] {CODE
LOW…uler-ui/src/main/webapp/src/config/validation-rules.ts331function evaluateParentChildCapacityConstraints(context: ValidationContext): ValidationIssue[] {CODE
LOW…uler-ui/src/main/webapp/src/config/validation-rules.ts397function evaluateParentChildCapacityMode(context: ValidationContext): ValidationIssue[] {CODE
LOW…uler-ui/src/main/webapp/src/config/validation-rules.ts476function evaluateWeightModeTransitionFlexibleAQC(context: ValidationContext): ValidationIssue[] {CODE
LOW…er-ui/src/main/webapp/src/config/properties/helpers.ts27export function getTemplatePropertyDefinitions(): PropertyDescriptor[] {CODE
LOW…er-ui/src/main/webapp/src/config/properties/helpers.ts31export function getTemplatePropertiesByCategory(category: PropertyCategory): PropertyDescriptor[] {CODE
LOW…rc/features/property-editor/hooks/usePropertyEditor.ts36function mergeFormAndValidationErrors(CODE
LOW…gement/components/QueueVisualizationContainer.test.tsx109function createSchedulerStoreState() {CODE
LOW…gement/components/QueueVisualizationContainer.test.tsx176function defaultSchedulerStoreImpl(CODE
LOW…rc/features/queue-management/hooks/useQueueTreeData.ts618function augmentQueueTreeWithStagedQueues(CODE
LOW…ebapp/src/features/template-config/utils/scopeUtils.ts136function stagedTemplatePathsForSuffix(CODE
LOW…src/features/staged-changes/utils/queueStateManager.ts18export function getParentQueuesForAdditions(CODE
LOW…src/features/staged-changes/utils/queueStateManager.ts66export function getQueuesForAutoCreationEnable(changes: StagedChange[]): string[] {CODE
LOW…src/features/staged-changes/utils/queueStateManager.ts105export function prepareMutationRequestForSubmission(request: SchedConfUpdateInfo): {CODE
LOW…src/features/staged-changes/utils/queueStateManager.ts140export function prepareMutationRequestWithVersion(CODE
LOW…/features/placement-rules/utils/placementRulesUtils.ts42export function extractPlacementRulesFromConfig(CODE
LOW…acement-rules/components/CustomPlacementHelpDialog.tsx39export function CustomPlacementHelpDialog({CODE
LOW…s/global-settings/hooks/useGlobalPropertyValidation.ts24export function useGlobalPropertyValidation() {CODE
LOW…webapp/src/features/validation/utils/affectedQueues.ts25export function getAffectedQueuesForValidation(CODE
LOW…-scheduler-ui/src/main/webapp/src/utils/configUtils.ts60export function getEffectivePropertyValue(CODE
LOW…-scheduler-ui/src/main/webapp/src/utils/configUtils.ts96export function buildEffectivePropertyKey(queuePath: string, propertyName: string): string {CODE
LOW…cheduler-ui/src/main/webapp/src/utils/propertyUtils.ts65export function buildNodeLabelPropertyKey(CODE
LOW…ler-ui/src/main/webapp/src/lib/errors/readOnlyGuard.ts15export function createReadOnlyBlockedError(operation: string): {CODE
LOW…duler-ui/src/main/webapp/src/lib/errors/error-utils.ts68export function createDetailedErrorMessage(CODE
LOW…n/server/resourcemanager/webapp/RMAppAttemptBlock.java77 .append("function getTableDataFromObjectArray(objectArray, fields) {")CODE
LOW…n/server/resourcemanager/webapp/RMAppAttemptBlock.java242 .append("function handleRefreshSchedulerActDone(data){")CODE
LOW…n/server/resourcemanager/webapp/RMAppAttemptBlock.java249 .append("function handleQuerySchedulerActDone(data){")CODE
LOW…n/server/resourcemanager/webapp/RMAppAttemptBlock.java279 .append("function refreshSchedulerDiagnostics() {")CODE
LOW…n/server/resourcemanager/webapp/RMAppAttemptBlock.java284 .append("function querySchedulerDiagnostics() {")CODE
LOW…ache/hadoop/yarn/server/AMHeartbeatRequestHandler.java43public class AMHeartbeatRequestHandler extends Thread {CODE
LOW…doop/yarn/server/timeline/TestTimelineDataManager.java43public class TestTimelineDataManager extends TimelineStoreTestUtils {CODE
LOW…e/hadoop/yarn/server/timeline/TimelineDataManager.java55public class TimelineDataManager extends AbstractService {CODE
LOW…adoop-yarn-ui/src/main/webapp/app/adapters/yarn-log.js21function createEmptyContainerLogInfo(location) {CODE
LOW…rn-ui/src/main/webapp/app/components/sunburst-chart.js195function initializeBreadcrumbTrail() {CODE
LOW…n-ui/src/main/webapp/app/helpers/log-adapter-helper.js19export function createEmptyContainerLogInfo(location) {CODE
LOW…oop-yarn-ui/src/main/webapp/app/initializers/loader.js61function getYarnHttpProtocolScheme(rmhost, application) {CODE
LOW…main/java/org/apache/hadoop/mcp/McpRequestHandler.java44public final class McpRequestHandler {CODE
LOW…tools/hadoop-sls/src/main/html/js/thirdparty/jquery.js9039function addToPrefiltersOrTransports( structure ) {CODE
LOW…tools/hadoop-sls/src/main/html/js/thirdparty/jquery.js9073function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {CODE
LOW…oject/hadoop-hdfs/src/main/webapps/static/rest-csrf.js39 function getTrimmedStringArrayValue(element) {CODE
Fake / Example Data29 hits · 32 pts
SeverityFileLineSnippetContext
LOW⚡…applications-catalog-webapp/src/main/webapp/theme.html631 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet nonCODE
LOW⚡…applications-catalog-webapp/src/main/webapp/theme.html631 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet nonCODE
LOW⚡…applications-catalog-webapp/src/main/webapp/theme.html632 magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisqueCODE
LOW⚡…applications-catalog-webapp/src/main/webapp/theme.html632 magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisqueCODE
LOW…/placement-rules/components/PlacementRuleForm.test.tsx467 'placeholder',CODE
LOW…duler/fair/converter/FSConfigConverterTestCommons.java161 out.println("dummy_key=dummy_value");CODE
LOW…nager/placement/csmappingrule/TestVariableContext.java188 .put("%userPhone", "555-3221")CODE
LOW…nager/placement/csmappingrule/TestVariableContext.java202 testCases.put("%userPhone", "555-3221");CODE
LOW…s/webapps/static/jquery/jquery-ui-1.13.2.custom.min.js6!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict"CODE
LOW…s/webapps/static/dt-1.11.5/js/jquery.dataTables.min.js55null!==a.searchDelay?a.searchDelay:"ssp"===Q(a)?400:0;var m=l("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlacCODE
LOW…va/org/apache/hadoop/yarn/webapp/view/LipsumBlock.java30 __("Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOW…va/org/apache/hadoop/yarn/webapp/view/LipsumBlock.java30 __("Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOW…/org/apache/hadoop/yarn/client/ProtocolHATestBase.java801 ByteBuffer key = ByteBuffer.wrap("fake_key".getBytes());CODE
LOW…adoop/fs/tosfs/object/tos/TestChainTOSInputStream.java183 String key = "dummy-key";CODE
LOW…ava/org/apache/hadoop/mapreduce/TestTypeConverter.java119 when(mockReport.getUser()).thenReturn("dummy-user");CODE
LOW…ava/org/apache/hadoop/mapreduce/TestTypeConverter.java146 assertEquals("dummy-user", status.getUsername(), "user set incorrectly");CODE
LOW…va/org/apache/hadoop/mapreduce/v2/util/TestMRApps.java203 String jobFile = MRApps.getJobFile(conf, "dummy-user",CODE
LOW…va/org/apache/hadoop/mapreduce/v2/util/TestMRApps.java206 assertEquals("/my/path/to/staging/dummy-user/.staging/job_dummy-job_12345/job.xml", jobFile,CODE
LOW…doop/mapreduce/v2/app/rm/TestRMContainerAllocator.java3634 ByteBuffer.wrap("fake_key".getBytes()),CODE
LOW…ache/hadoop/fs/s3a/ITestS3AAWSCredentialsProvider.java93 return AwsBasicCredentials.create("dummy_key", "dummy_secret");CODE
LOW…ache/hadoop/fs/azurebfs/ITestAbfsMsiTokenProvider.java137 token.setAccessToken("fake-token");CODE
LOW…ache/hadoop/fs/azurebfs/ITestAbfsMsiTokenProvider.java150 assertThat(token.getAccessToken()).isEqualTo("fake-token");CODE
LOW…azurebfs/oauth2/TestWorkloadIdentityTokenProvider.java45 private static final String TOKEN = "dummy-token";CODE
LOW…-hdfs/src/main/webapps/static/jquery.dataTables.min.js4*/ var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(t,e,n){t instanceof String&&(t=String(t));for(COMMENT
LOW⚡…ps/static/bootstrap-3.4.1/js/bootstrap-editable.min.js5!function(a){"use strict";var b=function(b,c){this.options=a.extend({},a.fn.editableform.defaults,c),this.$div=a(b),thisCODE
LOW⚡…ps/static/bootstrap-3.4.1/js/bootstrap-editable.min.js7return a==b}),n=a.inArray(o[0],k[f].months)+1;break;case"M":o=a(k[f].monthsShort).filter(function(){var a=this.slice(0,jCODE
LOW…adoop/hdfs/server/federation/router/TestRouterRpc.java252 conf.set(DFSConfigKeys.DFS_NAMENODE_IP_PROXY_USERS, "placeholder");CODE
LOW…t/java/org/apache/hadoop/example/ITUseMiniCluster.java65 private static final String TEXT = "Lorem ipsum dolor sit amet, consectetur "CODE
LOW…t/java/org/apache/hadoop/example/ITUseMiniCluster.java65 private static final String TEXT = "Lorem ipsum dolor sit amet, consectetur "CODE
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippetContext
HIGH…/hadoop/fs/gs/GoogleCloudStorageClientReadChannel.java521 // close existing contentChannel as requested bytes can't be served from currentCOMMENT
HIGH…doop/fs/azurebfs/services/ITestAbfsPositionedRead.java160 // disabled, it will only read the exact bytes as requested and no dataCOMMENT
HIGH…e/hadoop/hdfs/server/namenode/TestCacheDirectives.java1097 // only 3 because the file only has 3 replicas, not 4 as requested.COMMENT
HIGH…p/hdfs/server/blockmanagement/LowRedundancyBlocks.java257 //there is less than a third as many blocks as requested;COMMENT
Self-Referential Comments6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM…ge-project/hadoop-bos/src/test/resources/core-site.xml48 # Create a file auth-keys.xml - DO NOT ADD TO REVISION CONTROLCOMMENT
MEDIUM…ge-project/hadoop-gcp/src/test/resources/core-site.xml40 # Create a file auth-keys.xml - DO NOT ADD TO REVISION CONTROLCOMMENT
MEDIUM…ct/hadoop-huaweicloud/src/test/resources/core-site.xml128 # Create a file auth-keys.xml - DO NOT ADD TO REVISION CONTROLCOMMENT
MEDIUM…doop-tools/hadoop-aws/src/test/resources/core-site.xml225 # Create a file auth-keys.xml - DO NOT ADD TO REVISION CONTROLCOMMENT
MEDIUM…p-tools/hadoop-aliyun/src/test/resources/core-site.xml38 # Create a file auth-keys.xml - DO NOT ADD TO REVISION CONTROLCOMMENT
MEDIUM…ools/hadoop-azure-datalake/src/test/resources/adls.xml17 # Create a file auth-keys.xml - DO NOT ADD TO REVISION CONTROLCOMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…p/yarn/server/resourcemanager/TestAMAuthorization.java397 // TODO: Add validation of invalid authorization when there's more data inCOMMENT
LOW…e-client/src/main/native/fuse-dfs/test/fuse_workload.c55// TODO: implement/test access, mknod, symlinkCOMMENT
LOW…op/hdfs/TestDFSStripedOutputStreamWithFailureBase.java330 //TODO: implement hflush/hsync and verify gs strict greater than oldGSCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…/timelineservice/reader/filter/TimelineFilterList.java31 * operator {@link Operator#AND} or {@link Operator#OR}. Since you can useCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…project/hadoop-common/src/main/bin/hadoop-functions.sh1948 # Check if jsvc -help has entry for option -cwdCOMMENT
LOWdev-support/jenkins.sh246 # Check if the CI needs to be run, if so, do so :)COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…heduler-ui/src/main/webapp/public/mockServiceWorker.js122async function handleRequest(event, requestId) {CODE
LOW…tools/hadoop-sls/src/main/html/js/thirdparty/jquery.js4401function getData( data ) {CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdev-support/docker/pkg-resolver/resolve.py29CODE
LOWdev-support/docker/pkg-resolver/resolve.py42CODE