Repository Analysis

apache/spark

Apache Spark - A unified analytics engine for large-scale data processing

4.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of apache/spark, a Scala project with 43,613 GitHub stars. SynthScan v2.0 examined 3,037,893 lines of code across 12319 source files, recording 8770 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 4.8 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).

4.8
Adjusted Score
4.8
Raw Score
100%
Time Factor
2026-07-13
Last Push
43.6K
Stars
Scala
Language
3.0M
Lines of Code
12.3K
Files
8.8K
Pattern Hits
2026-07-14
Scan Date
0.06
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 434HIGH 324MEDIUM 320LOW 7692

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

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

Hallucination Indicators434 hits · 4672 pts
SeverityFileLineSnippetContext
CRITICAL…rg/apache/spark/deploy/yarn/BaseYarnClusterSuite.scala137 case e: Throwable if org.apache.commons.lang3.exception.ExceptionUtils.indexOfThrowable(STRING
CRITICAL…cheduler/cluster/YarnClientSchedulerBackendSuite.scala55 Some(org.apache.hadoop.yarn.api.records.ApplicationId.newInstance(0L, 1)))CODE
CRITICAL…org/apache/spark/deploy/k8s/KubernetesUtilsSuite.scala49 assert(sparkPod.pod.getSpec.getContainers.asScala.toList.map(_.getName) == List("first"))CODE
CRITICAL…org/apache/spark/deploy/k8s/KubernetesUtilsSuite.scala56 assert(sparkPod.pod.getSpec.getContainers.asScala.toList.map(_.getName) == List("second"))CODE
CRITICAL…org/apache/spark/deploy/k8s/KubernetesUtilsSuite.scala63 assert(sparkPod.pod.getSpec.getContainers.asScala.toList.map(_.getName) == List("second"))CODE
CRITICAL…k/scheduler/cluster/k8s/DeploymentAllocatorSuite.scala134 assert(deployment.getSpec.getTemplate.getSpec.getContainers.asScala.exists(CODE
CRITICAL…heduler/cluster/k8s/ExecutorPVCResizePluginSuite.scala187 captor.getValue.getSpec.getResources.getRequests.get("storage")).longValue()CODE
CRITICAL…k/scheduler/cluster/k8s/StatefulSetPodsAllocator.scala171 val statefulSet = new io.fabric8.kubernetes.api.model.apps.StatefulSetBuilder()CODE
CRITICAL…rverExpectations/stage_with_summaries_expectation.json5 "details" : "org.apache.spark.sql.Dataset.foreach(Dataset.scala:2862)\n$line19.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<CODE
CRITICAL…ectations/stage_with_accumulable_json_expectation.json9 "details" : "org.apache.spark.rdd.RDD.foreach(RDD.scala:765)\n$line9.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:15)\n$CODE
CRITICAL…ions/stage_list_with_accumulable_json_expectation.json9 "details" : "org.apache.spark.rdd.RDD.foreach(RDD.scala:765)\n$line9.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:15)\n$CODE
CRITICAL…oryServerExpectations/stage_list_json_expectation.json5 "details" : "org.apache.spark.rdd.RDD.count(RDD.scala:910)\n$line19.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:17)\n$lCODE
CRITICAL…oryServerExpectations/stage_list_json_expectation.json87 "details" : "org.apache.spark.rdd.RDD.count(RDD.scala:910)\n$line11.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:20)\n$lCODE
CRITICAL…oryServerExpectations/stage_list_json_expectation.json93 "failureReason" : "Job aborted due to stage failure: Task 3 in stage 2.0 failed 1 times, most recent failure: Lost tasCODE
CRITICAL…oryServerExpectations/stage_list_json_expectation.json170 "details" : "org.apache.spark.rdd.RDD.map(RDD.scala:271)\n$line10.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:14)\n$linCODE
CRITICAL…oryServerExpectations/stage_list_json_expectation.json252 "details" : "org.apache.spark.rdd.RDD.count(RDD.scala:910)\n$line9.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:15)\n$liCODE
CRITICAL…ctations/stage_list_with_peak_metrics_expectation.json5 "details" : "org.apache.spark.sql.Dataset.foreach(Dataset.scala:2862)\n$line19.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<CODE
CRITICAL…erExpectations/one_stage_attempt_json_expectation.json5 "details" : "org.apache.spark.rdd.RDD.map(RDD.scala:271)\n$line10.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:14)\n$linCODE
CRITICAL…attempt_json_details_with_failed_task_expectation.json5 "details" : "org.apache.spark.rdd.RDD.map(RDD.scala:271)\n$line10.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:14)\n$linCODE
CRITICAL…toryServerExpectations/one_stage_json_expectation.json5 "details" : "org.apache.spark.rdd.RDD.map(RDD.scala:271)\n$line10.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:14)\n$linCODE
CRITICAL…Expectations/complete_stage_list_json_expectation.json5 "details" : "org.apache.spark.rdd.RDD.count(RDD.scala:910)\n$line19.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:17)\n$lCODE
CRITICAL…Expectations/complete_stage_list_json_expectation.json87 "details" : "org.apache.spark.rdd.RDD.map(RDD.scala:271)\n$line10.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:14)\n$linCODE
CRITICAL…Expectations/complete_stage_list_json_expectation.json169 "details" : "org.apache.spark.rdd.RDD.count(RDD.scala:910)\n$line9.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:15)\n$liCODE
CRITICAL…xpectations/stage_task_list_w__status_expectation.json5 "errorMessage" : "java.lang.RuntimeException: bad exec\n\tat $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anonfun$1.CODE
CRITICAL…xpectations/stage_task_list_w__status_expectation.json71 "errorMessage" : "java.lang.RuntimeException: bad exec\n\tat $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anonfun$1.CODE
CRITICAL…xpectations/stage_task_list_w__status_expectation.json137 "errorMessage" : "java.lang.RuntimeException: bad exec\n\tat $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anonfun$1.CODE
CRITICAL…xpectations/stage_task_list_w__status_expectation.json203 "errorMessage" : "java.lang.RuntimeException: bad exec\n\tat $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anonfun$1.CODE
CRITICAL…xpectations/stage_task_list_w__status_expectation.json269 "errorMessage" : "java.lang.RuntimeException: bad exec\n\tat $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anonfun$1.CODE
CRITICAL…xpectations/stage_task_list_w__status_expectation.json335 "errorMessage" : "java.lang.RuntimeException: bad exec\n\tat $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anonfun$1.CODE
CRITICAL…xpectations/stage_task_list_w__status_expectation.json401 "errorMessage" : "java.lang.RuntimeException: bad exec\n\tat $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anonfun$1.CODE
CRITICAL…xpectations/stage_task_list_w__status_expectation.json467 "errorMessage" : "java.lang.RuntimeException: bad exec\n\tat $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anonfun$1.CODE
CRITICAL…xpectations/stage_task_list_w__status_expectation.json533 "errorMessage" : "java.lang.RuntimeException: bad exec\n\tat $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anonfun$1.CODE
CRITICAL…xpectations/stage_task_list_w__status_expectation.json599 "errorMessage" : "java.lang.RuntimeException: bad exec\n\tat $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anonfun$1.CODE
CRITICAL…pectations/excludeOnFailure_for_stage_expectation.json5 "details" : "org.apache.spark.rdd.RDD.map(RDD.scala:370)\n$line17.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<consolCODE
CRITICAL…pectations/excludeOnFailure_for_stage_expectation.json176 "errorMessage" : "java.lang.RuntimeException: Bad executor\n\tat $line17.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anCODE
CRITICAL…pectations/excludeOnFailure_for_stage_expectation.json441 "errorMessage" : "java.lang.RuntimeException: Bad executor\n\tat $line17.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anCODE
CRITICAL…ations/stage_with_speculation_summary_expectation.json5 "details" : "org.apache.spark.rdd.RDD.collect(RDD.scala:1029)\n$line17.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<cCODE
CRITICAL…rExpectations/stage_with_peak_metrics_expectation.json5 "details" : "org.apache.spark.sql.Dataset.foreach(Dataset.scala:2862)\n$line19.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<CODE
CRITICAL…ectations/one_stage_json_with_details_expectation.json5 "details" : "org.apache.spark.rdd.RDD.map(RDD.scala:271)\n$line10.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:14)\n$linCODE
CRITICAL…tions/one_stage_json_with_partitionId_expectation.json5 "details" : "org.apache.spark.sql.Dataset.count(Dataset.scala:3130)\n$line15.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<inCODE
CRITICAL…erExpectations/failed_stage_list_json_expectation.json5 "details" : "org.apache.spark.rdd.RDD.count(RDD.scala:910)\n$line11.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:20)\n$lCODE
CRITICAL…erExpectations/failed_stage_list_json_expectation.json11 "failureReason" : "Job aborted due to stage failure: Task 3 in stage 2.0 failed 1 times, most recent failure: Lost tasCODE
CRITICAL…tions/excludeOnFailure_node_for_stage_expectation.json5 "details" : "org.apache.spark.rdd.RDD.map(RDD.scala:370)\n$line15.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<consolCODE
CRITICAL…tions/excludeOnFailure_node_for_stage_expectation.json371 "errorMessage" : "java.lang.RuntimeException: Bad executor\n\tat $line15.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anCODE
CRITICAL…tions/excludeOnFailure_node_for_stage_expectation.json834 "errorMessage" : "java.lang.RuntimeException: Bad executor\n\tat $line15.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anCODE
CRITICAL…tions/excludeOnFailure_node_for_stage_expectation.json901 "errorMessage" : "java.lang.RuntimeException: Bad executor\n\tat $line15.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anCODE
CRITICAL…tions/excludeOnFailure_node_for_stage_expectation.json968 "errorMessage" : "java.lang.RuntimeException: Bad executor\n\tat $line15.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$anCODE
CRITICAL…/src/test/scala/org/apache/spark/ui/UIUtilsSuite.scala220 val e1 = "Job aborted due to stage failure: Task 0 in stage 1.0 failed 1 times, most recent failure: Lost task 0.0 iCODE
CRITICAL…he/spark/shuffle/sort/ShuffleExternalSorterSuite.scala109 // at org.apache.spark.memory.TaskMemoryManager.getPage(TaskMemoryManager.java:384)COMMENT
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala721 val rootLogger = org.apache.logging.log4j.LogManager.getRootLogger()CODE
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1754 // at org.apache.spark.util.UtilsSuite.throwException(UtilsSuite.scala:1529)STRING
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1759 // ----> at org.apache.spark.util.UtilsSuite.callGetTryFromNested(UtilsSuite.scala:1626) <---- STITCHED.STRING
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1767 // at org.apache.spark.util.UtilsSuite.callDoTryNested(UtilsSuite.scala:1630)STRING
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1771 // at org.apache.spark.util.UtilsSuite.callDoTryNestedNested(UtilsSuite.scala:1654)STRING
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1804 // at org.apache.spark.util.UtilsSuite.throwException(UtilsSuite.scala:1529)STRING
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1808 // at org.apache.spark.util.UtilsSuite.callDoTry(UtilsSuite.scala:1534)STRING
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1813 // ----> at org.apache.spark.util.UtilsSuite.callGetTryFromNestedNested(UtilsSuite.scala:1650) <---- STITCHED.STRING
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1821 // at org.apache.spark.util.UtilsSuite.callDoTryNestedNested(UtilsSuite.scala:1654)STRING
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1849 // at org.apache.spark.util.UtilsSuite.throwException(UtilsSuite.scala:1529)STRING
CRITICAL…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1853 // at org.apache.spark.util.UtilsSuite.callDoTry(UtilsSuite.scala:1534)STRING
374 more matches not shown…
Hyper-Verbose Identifiers3027 hits · 2825 pts
SeverityFileLineSnippetContext
LOW…la/org/apache/spark/deploy/yarn/YarnClusterSuite.scala67 private def getOrCreatePyConnectDepChecker(CODE
LOW…apache/spark/network/shuffle/ShuffleTestAccessor.scala136 def getOrCreateAppShufflePartitionInfo(CODE
LOW…scala/org/apache/spark/deploy/yarn/YarnAllocator.scala277 private def getOrUpdateAllocatedHostToContainersMapForRPId(CODE
LOW…scala/org/apache/spark/deploy/yarn/YarnAllocator.scala283 private def getOrUpdateRunningExecutorForRPId(rpId: Int): mutable.Set[String] = synchronized {CODE
LOW…scala/org/apache/spark/deploy/yarn/YarnAllocator.scala287 private def getOrUpdateNumExecutorsStartingForRPId(rpId: Int): AtomicInteger = synchronized {CODE
LOW…scala/org/apache/spark/deploy/yarn/YarnAllocator.scala291 private def getOrUpdateTargetNumExecutorsForRPId(rpId: Int): Int = synchronized {CODE
LOW…a/org/apache/spark/storage/DiskBlockManagerSuite.scala144 private def getAndSetUmask(posix: POSIX, mask: String): String = {CODE
LOW…/resources/org/apache/spark/ui/static/executorspage.js329function reselectCheckboxesBasedOnTaskTableState() {CODE
LOW…resources/org/apache/spark/ui/static/streaming-page.js62function getMaxMarginLeftForTimeline() {CODE
LOW…resources/org/apache/spark/ui/static/streaming-page.js69function getOnClickTimelineFunction() {CODE
LOW…/resources/org/apache/spark/ui/static/timeline-view.js171 function getStageIdAndAttemptForStageEntry(baseElem) {CODE
LOW…/resources/org/apache/spark/ui/static/timeline-view.js239function drawTaskAssignmentTimeline(groupArray, eventObjArray, minLaunchTime, maxFinishTime, offset) {CODE
LOW…main/resources/org/apache/spark/ui/static/stagepage.js120function getColumnNameForTaskMetricSummary(columnKey) {CODE
LOW…main/resources/org/apache/spark/ui/static/stagepage.js175function displayRowsForSummaryMetricsTable(row, type, columnIndex) {CODE
LOW…main/resources/org/apache/spark/ui/static/stagepage.js218function createDataTableForTaskSummaryMetricsTable(taskSummaryMetricsTable) {CODE
LOW…main/resources/org/apache/spark/ui/static/stagepage.js277function createRowMetadataForColumn(colKey, data, checkboxId) {CODE
LOW…main/resources/org/apache/spark/ui/static/stagepage.js287function reselectCheckboxesBasedOnTaskTableState() {CODE
LOW…esources/org/apache/spark/ui/static/environmentpage.js47function createRESTEndPointForEnvironmentPage(appId) {CODE
LOW…/resources/org/apache/spark/ui/static/spark-dag-viz.js232function getMaxChildWidthAndPaddingTop(g, v, svg) {CODE
LOW…src/main/resources/org/apache/spark/ui/static/table.js52function expandAllThreadStackTrace(toggleButton) {CODE
LOW…src/main/resources/org/apache/spark/ui/static/table.js66function collapseAllThreadStackTrace(toggleButton) {CODE
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js1081 */function injectEdgeLabelProxies(g){_.forEach(g.edges(),function(e){var edge=g.edge(e);if(edge.width&&edge.height){varCOMMENT
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js1325 */function findSmallestWidthAlignment(g,xss){return _.minBy(_.values(xss),function(xs){var max=Number.NEGATIVE_INFINITYCOMMENT
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js360function cartesianNormalizeInPlace(d){var l=sqrt(d[0]*d[0]+d[1]*d[1]+d[2]*d[2]);d[0]/=l,d[1]/=l,d[2]/=l}var lambda0$1,phCODE
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js439}}}function clipAntimeridianIntersect(lambda0,phi0,lambda1,phi1){var cosPhi0,cosPhi1,sinLambda0Lambda1=sin(lambda0-lambdCODE
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js891percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(value,fill,width){var sign=value<0?"-":"",string=(sign?-valuCODE
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js1298scanPos=0,prevLayerLength=prevLayer.length,lastNode=_.last(layer);_.forEach(layer,function(v,i){var w=findOtherInnerSegmCODE
LOW…src/main/resources/org/apache/spark/ui/static/utils.js188function createRESTEndPointForExecutorsPage(appId) {CODE
LOW…src/main/resources/org/apache/spark/ui/static/utils.js211function createRESTEndPointForMiscellaneousProcess(appId) {CODE
LOWcore/src/main/scala/org/apache/spark/SparkContext.scala3070 def getOrCreate(config: SparkConf): SparkContext = {STRING
LOWcore/src/main/scala/org/apache/spark/SparkContext.scala3094 def getOrCreate(): SparkContext = {STRING
LOWcore/src/main/scala/org/apache/spark/util/Utils.scala750 private[spark] def getOrCreateLocalRootDirs(conf: ReadOnlySparkConf): Array[String] = {CODE
LOWcore/src/main/scala/org/apache/spark/util/Utils.scala785 private def getOrCreateLocalRootDirsImpl(conf: ReadOnlySparkConf): Array[String] = {CODE
LOW…cala/org/apache/spark/util/UninterruptibleThread.scala61 def getAndSetUninterruptible(value: Boolean): Boolean = synchronized {CODE
LOW…c/main/scala/org/apache/spark/util/AccumulatorV2.scala486 private def getOrCreate = {CODE
LOW…a/org/apache/spark/deploy/master/ApplicationInfo.scala82 private[deploy] def getOrUpdateExecutorsForRPId(rpId: Int): mutable.Set[Int] = {CODE
LOW…in/scala/org/apache/spark/scheduler/DAGScheduler.scala602 private def getOrCreateShuffleMapStage(CODE
LOW…in/scala/org/apache/spark/scheduler/DAGScheduler.scala802 private def getOrCreateParentStages(shuffleDeps: HashSet[ShuffleDependency[_, _, _]],CODE
LOW…/scala/org/apache/spark/status/AppStatusListener.scala1145 private def getOrCreateExecutor(executorId: String, addTime: Long): LiveExecutor = {CODE
LOW…/scala/org/apache/spark/status/AppStatusListener.scala1152 private def getOrCreateOtherProcess(processId: String,CODE
LOW…/scala/org/apache/spark/status/AppStatusListener.scala1212 private def getOrCreateStage(info: StageInfo): LiveStage = {CODE
LOWcore/src/main/scala/org/apache/spark/rdd/RDD.scala369 private[spark] def computeOrReadCheckpoint(split: Partition, context: TaskContext): Iterator[T] =CODE
LOWcore/src/main/scala/org/apache/spark/rdd/RDD.scala381 private[spark] def getOrCompute(partition: Partition, context: TaskContext): Iterator[T] = {CODE
LOW…main/scala/org/apache/spark/storage/BlockManager.scala1409 def getOrElseUpdateRDDBlock[T](CODE
LOW…main/scala/org/apache/spark/storage/BlockManager.scala1432 private def getOrElseUpdate[T](CODE
LOW…g/apache/spark/api/python/PythonWorkerLogCapture.scala97 private def getOrCreateLogWriter(workerId: String): (RollingLogWriter, AtomicLong) = {CODE
LOW…in/scala/org/apache/spark/resource/ResourceUtils.scala323 def getOrDiscoverAllResources(CODE
LOW…in/scala/org/apache/spark/resource/ResourceUtils.scala356 def getOrDiscoverAllResourcesForResourceProfile(CODE
LOW…/scala/org/apache/spark/resource/ResourceProfile.scala376 private[spark] def getOrCreateDefaultProfile(conf: SparkConf): ResourceProfile = {CODE
LOWpython/run-tests.py236def run_individual_python_test(target_dir, test_name, pyspark_python, keep_test_output):CODE
LOWpython/run-tests.py398def get_default_python_executables():CODE
LOWpython/pyspark/worker.py140 def use_legacy_pandas_udf_conversion(self) -> bool:CODE
LOWpython/pyspark/worker.py147 def use_legacy_pandas_udtf_conversion(self) -> bool:CODE
LOWpython/pyspark/worker.py162 def int_to_decimal_coercion_enabled(self) -> bool:CODE
LOWpython/pyspark/worker.py180 def arrow_max_records_per_batch(self) -> int:CODE
LOWpython/pyspark/worker.py184 def arrow_max_bytes_per_batch(self) -> int:CODE
LOWpython/pyspark/worker.py344def verify_iterator_exhausted(iterator: Iterator, error_class: str) -> None:CODE
LOWpython/pyspark/worker.py504def wrap_grouped_transform_with_state_pandas_init_state_udf(f, return_type, runner_conf):CODE
LOWpython/pyspark/worker.py524def wrap_grouped_transform_with_state_udf(f, return_type, runner_conf):CODE
LOWpython/pyspark/worker.py536def wrap_grouped_transform_with_state_init_state_udf(f, return_type, runner_conf):CODE
2967 more matches not shown…
Over-Commented Block2918 hits · 2735 pts
SeverityFileLineSnippetContext
LOW.asf.yaml1# Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW.pre-commit-config.yaml1#COMMENT
LOWpyproject.toml1#COMMENT
LOW…rg/apache/spark/deploy/yarn/BaseYarnClusterSuite.scala101 yarnConf.setInt("yarn.scheduler.capacity.root.default.maximum-capacity", 100)COMMENT
LOW…rg/apache/spark/deploy/yarn/BaseYarnClusterSuite.scala141 }COMMENT
LOW…scala/org/apache/spark/deploy/yarn/YarnAllocator.scala321 ResourceProfile.getResourcesForClusterManager(rp.id, rp.executorResources,COMMENT
LOW…c/main/scala/org/apache/spark/deploy/yarn/Client.scala801 // Update the configuration with all the distributed files, minus the conf archive. TheCOMMENT
LOW…/kubernetes/docker/src/main/dockerfiles/spark/decom.sh1#!/usr/bin/env bashCOMMENT
LOW…rnetes/docker/src/main/dockerfiles/spark/entrypoint.sh1#!/usr/bin/env bashCOMMENT
LOW…s/core/src/test/resources/driver-podgroup-template.yml1#COMMENT
LOW…er/cluster/k8s/KubernetesClusterSchedulerBackend.scala301 running.delete()COMMENT
LOW…/kubernetes/integration-tests/tests/pyfiles_connect.py1#COMMENT
LOW…/kubernetes/integration-tests/tests/decommissioning.py1#COMMENT
LOW…managers/kubernetes/integration-tests/tests/pyfiles.py1#COMMENT
LOW…ernetes/integration-tests/tests/worker_memory_check.py1#COMMENT
LOW…ernetes/integration-tests/tests/py_container_checks.py1#COMMENT
LOW…tes/integration-tests/tests/decommissioning_cleanup.py1#COMMENT
LOW…tes/integration-tests/tests/python_executable_check.py1#COMMENT
LOW…nagers/kubernetes/integration-tests/tests/autoscale.py1#COMMENT
LOW…ntegration-tests/scripts/setup-integration-test-env.sh1#!/usr/bin/env bashCOMMENT
LOW…agers/kubernetes/integration-tests/dev/spark-rbac.yaml1#COMMENT
LOW…tes/integration-tests/dev/dev-run-integration-tests.sh1#!/usr/bin/env bashCOMMENT
LOW…tegration-tests/src/test/resources/driver-template.yml1#COMMENT
LOW…gration-tests/src/test/resources/executor-template.yml1#COMMENT
LOW…-tests/src/test/resources/driver-schedule-template.yml1#COMMENT
LOW…st/resources/volcano/high-priority-driver-template.yml1#COMMENT
LOW…rces/volcano/low-priority-driver-podgroup-template.yml1#COMMENT
LOW…sources/volcano/driver-podgroup-template-memory-3g.yml1#COMMENT
LOW…/resources/volcano/queue0-driver-podgroup-template.yml1#COMMENT
LOW…n-tests/src/test/resources/volcano/priorityClasses.yml1#COMMENT
LOW…/resources/volcano/queue1-driver-podgroup-template.yml1#COMMENT
LOW…/resources/volcano/medium-priority-driver-template.yml1#COMMENT
LOW…t/resources/volcano/queue-driver-podgroup-template.yml1#COMMENT
LOW…s/volcano/medium-priority-driver-podgroup-template.yml1#COMMENT
LOW…est/resources/volcano/low-priority-driver-template.yml1#COMMENT
LOW…ces/volcano/high-priority-driver-podgroup-template.yml1#COMMENT
LOW…/org/apache/spark/launcher/AbstractCommandBuilder.java201 if (isBeeLine && "1".equals(getenv("SPARK_CONNECT_BEELINE")) &&COMMENT
LOW…/org/apache/spark/launcher/AbstractCommandBuilder.java321 return scala;COMMENT
LOW…he/spark/shuffle/sort/ShuffleExternalSorterSuite.scala101 // same memory page. When a task reads memory written by another task, many types of failuresCOMMENT
LOW…t/scala/org/apache/spark/util/SizeEstimatorSuite.scala301 // objectSize=8, fields=12 => shellSize=20, aligned to 24COMMENT
LOW…t/scala/org/apache/spark/util/SizeEstimatorSuite.scala361 // DummyString has: pointer(arr,8) + Int(hashCode,4) + Int(hash32,4) = 16 bytes of fieldsCOMMENT
LOW…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1661 callGetTry(t)COMMENT
LOW…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1681 assert(st1.exists(_.getMethodName == "callGetTry"))COMMENT
LOW…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1701COMMENT
LOW…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1741 Utils.doTryWithCallerStacktrace {COMMENT
LOW…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1761 // at org.scalatest.Assertions.intercept(Assertions.scala:749)COMMENT
LOW…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1801 //COMMENT
LOW…/src/test/scala/org/apache/spark/util/UtilsSuite.scala1841COMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1041 //COMMENT
LOW…la/org/apache/spark/scheduler/HealthTrackerSuite.scala361 // This ensures that we don't trigger spurious excluding for long tasksets, when the tasksetCOMMENT
LOW…rg/apache/spark/scheduler/TaskSchedulerImplSuite.scala1161 // We should be checking our node excludelist, but it should be within the bound we definedCOMMENT
LOW…rg/apache/spark/scheduler/TaskSchedulerImplSuite.scala2541COMMENT
LOW…/test/scala/org/apache/spark/scheduler/PoolSuite.scala121 scheduleTaskAndVerifyId(0, rootPool, 0)COMMENT
LOW…st/scala/org/apache/spark/executor/ExecutorSuite.scala101 }COMMENT
LOW…sources/org/apache/spark/ui/static/graphlib-dot.min.js141// Label for the graph itselfCOMMENT
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js201h=s?Math.atan2(k,bl)*rad2deg-120:NaN;return new Cubehelix(h<0?h+360:h,s,l,o.opacity)}function cubehelix(h,s,l,opacity){rCOMMENT
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js281// Limit forces for very close nodes; randomize direction if coincident.COMMENT
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js301function formatTrim(s){out:for(var n=s.length,i=1,i0=-1,i1;i<n;++i){switch(s[i]){case".":i0=i1=i;break;case"0":if(i0===0COMMENT
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js321// Perform the initial formatting.COMMENT
LOW…n/resources/org/apache/spark/ui/static/dagre-d3.min.js341(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?factory(exports,require("d3-array")):tyCOMMENT
2858 more matches not shown…
Cross-File Repetition182 hits · 910 pts
SeverityFileLineSnippetContext
HIGH…c/main/scala/org/apache/spark/deploy/SparkSubmit.scala0welcome to ____ __ / __/__ ___ _____/ /__ _\ \/ _ \/ _ `/ __/ '_/ /__ / .__/\_,_/_/ /_/\_\ version %s /_/STRING
HIGH…/src/main/scala/org/apache/spark/repl/SparkILoop.scala0welcome to ____ __ / __/__ ___ _____/ /__ _\ \/ _ \/ _ `/ __/ '_/ /__ / .__/\_,_/_/ /_/\_\ version %s /_/STRING
HIGHpython/pyspark/shell.py0welcome to ____ __ / __/__ ___ _____/ /__ _\ \/ _ \/ _ `/ __/ '_/ /__ / .__/\_,_/_/ /_/\_\ version %s /_/STRING
HIGHpython/pyspark/core/rdd.py0return an javardd of object by unpickling it will convert each python object into java object by pickle, whenever the rdSTRING
HIGHpython/pyspark/mllib/common.py0return an javardd of object by unpickling it will convert each python object into java object by pickle, whenever the rdSTRING
HIGHpython/pyspark/ml/common.py0return an javardd of object by unpickling it will convert each python object into java object by pickle, whenever the rdSTRING
HIGHpython/pyspark/tests/test_rdd.py0executes a job with the group ``job_group``. each job waits for 3 seconds and then exits.STRING
HIGHpython/pyspark/tests/test_pin_thread.py0executes a job with the group ``job_group``. each job waits for 3 seconds and then exits.STRING
HIGHpython/pyspark/sql/tests/test_job_cancellation.py0executes a job with the group ``job_group``. each job waits for 3 seconds and then exits.STRING
HIGHpython/pyspark/ml/tree.py0trees in this ensemble. warning: these have null parent estimators.STRING
HIGHpython/pyspark/ml/regression.py0trees in this ensemble. warning: these have null parent estimators.STRING
HIGHpython/pyspark/ml/classification.py0trees in this ensemble. warning: these have null parent estimators.STRING
HIGHpython/pyspark/ml/wrapper.py0returns the number of features the model was trained on. if unknown, returns -1STRING
HIGHpython/pyspark/ml/regression.py0returns the number of features the model was trained on. if unknown, returns -1STRING
HIGHpython/pyspark/ml/base.py0returns the number of features the model was trained on. if unknown, returns -1STRING
HIGHpython/pyspark/ml/connect/base.py0returns the number of features the model was trained on. if unknown, returns -1STRING
HIGHpython/pyspark/ml/classification.py0creates a copy of this instance with a randomly generated uid and some extra params. this copies creates a deep copy of STRING
HIGHpython/pyspark/ml/tuning.py0creates a copy of this instance with a randomly generated uid and some extra params. this copies creates a deep copy of STRING
HIGHpython/pyspark/ml/connect/tuning.py0creates a copy of this instance with a randomly generated uid and some extra params. this copies creates a deep copy of STRING
HIGHpython/pyspark/ml/classification.py0given a java trainvalidationsplitmodel, create and return a python wrapper of it. used for ml persistence.STRING
HIGHpython/pyspark/ml/pipeline.py0given a java trainvalidationsplitmodel, create and return a python wrapper of it. used for ml persistence.STRING
HIGHpython/pyspark/ml/tuning.py0given a java trainvalidationsplitmodel, create and return a python wrapper of it. used for ml persistence.STRING
HIGHpython/pyspark/ml/classification.py0transfer this instance to a java trainvalidationsplitmodel. used for ml persistence. returns ------- py4j.java_gateway.jSTRING
HIGHpython/pyspark/ml/pipeline.py0transfer this instance to a java trainvalidationsplitmodel. used for ml persistence. returns ------- py4j.java_gateway.jSTRING
HIGHpython/pyspark/ml/tuning.py0transfer this instance to a java trainvalidationsplitmodel. used for ml persistence. returns ------- py4j.java_gateway.jSTRING
HIGH…thon/pyspark/ml/tests/connect/test_connect_function.py0these test cases exercise the interface to the proto plan generation but do not call spark.STRING
HIGH…hon/pyspark/sql/tests/connect/test_connect_function.py0these test cases exercise the interface to the proto plan generation but do not call spark.STRING
HIGHpython/pyspark/sql/tests/connect/test_connect_plan.py0these test cases exercise the interface to the proto plan generation but do not call spark.STRING
HIGHpython/pyspark/pandas/series.py0same as `to_pandas()`, without issuing the advice log for internal usage.STRING
HIGHpython/pyspark/pandas/frame.py0same as `to_pandas()`, without issuing the advice log for internal usage.STRING
HIGHpython/pyspark/pandas/indexes/multi.py0same as `to_pandas()`, without issuing the advice log for internal usage.STRING
HIGHpython/pyspark/pandas/indexes/base.py0same as `to_pandas()`, without issuing the advice log for internal usage.STRING
HIGHpython/pyspark/pandas/series.py0return a pandas index directly from _internal to avoid overhead of copy. this method is for internal use only.STRING
HIGHpython/pyspark/pandas/frame.py0return a pandas index directly from _internal to avoid overhead of copy. this method is for internal use only.STRING
HIGHpython/pyspark/pandas/indexes/base.py0return a pandas index directly from _internal to avoid overhead of copy. this method is for internal use only.STRING
HIGHpython/pyspark/pandas/sql_formatter.py0a standard ``string.formatter`` in python that can understand pyspark instances with basic python objects. this object hSTRING
HIGHpython/pyspark/sql/sql_formatter.py0a standard ``string.formatter`` in python that can understand pyspark instances with basic python objects. this object hSTRING
HIGHpython/pyspark/sql/connect/sql_formatter.py0a standard ``string.formatter`` in python that can understand pyspark instances with basic python objects. this object hSTRING
HIGH…pyspark/pandas/tests/data_type_ops/test_num_reverse.py0unit tests for arithmetic operations of numeric data types. a few test cases are disabled because pandas-on-spark returnSTRING
HIGH…hon/pyspark/pandas/tests/data_type_ops/test_num_ops.py0unit tests for arithmetic operations of numeric data types. a few test cases are disabled because pandas-on-spark returnSTRING
HIGH…park/pandas/tests/data_type_ops/test_num_arithmetic.py0unit tests for arithmetic operations of numeric data types. a few test cases are disabled because pandas-on-spark returnSTRING
HIGHpython/pyspark/sql/catalog.py0creates an external table based on the dataset in a data source. it returns the dataframe associated with the external tSTRING
HIGHpython/pyspark/sql/context.py0creates an external table based on the dataset in a data source. it returns the dataframe associated with the external tSTRING
HIGHpython/pyspark/sql/connect/context.py0creates an external table based on the dataset in a data source. it returns the dataframe associated with the external tSTRING
HIGHpython/pyspark/sql/dataframe.py0returns the names of columns in this :class:`dataframe`. examples -------- >>> df = spark.createdataframe([(2, "alice"),STRING
HIGHpython/pyspark/sql/classic/dataframe.py0returns the names of columns in this :class:`dataframe`. examples -------- >>> df = spark.createdataframe([(2, "alice"),STRING
HIGHpython/pyspark/sql/connect/dataframe.py0returns the names of columns in this :class:`dataframe`. examples -------- >>> df = spark.createdataframe([(2, "alice"),STRING
HIGHpython/pyspark/sql/udtf.py0user-defined function related classes and functionsSTRING
HIGHpython/pyspark/sql/connect/udtf.py0user-defined function related classes and functionsSTRING
HIGHpython/pyspark/sql/udf.py0user-defined function related classes and functionsSTRING
HIGHpython/pyspark/sql/connect/udf.py0user-defined function related classes and functionsSTRING
HIGHpython/pyspark/sql/tests/test_tvf.py0select * from variant_explode(parse_json('["hello", "world"]'))STRING
HIGH…che/spark/sql/DataFrameTableValuedFunctionsSuite.scala0select * from variant_explode(parse_json('["hello", "world"]'))STRING
HIGH…che/spark/sql/DataFrameTableValuedFunctionsSuite.scala0select * from variant_explode(parse_json('["hello", "world"]'))STRING
HIGHpython/pyspark/sql/tests/test_tvf.py0select * from variant_explode(parse_json('{"a": true, "b": 3.14}'))STRING
HIGH…che/spark/sql/DataFrameTableValuedFunctionsSuite.scala0select * from variant_explode(parse_json('{"a": true, "b": 3.14}'))STRING
HIGH…che/spark/sql/DataFrameTableValuedFunctionsSuite.scala0select * from variant_explode(parse_json('{"a": true, "b": 3.14}'))STRING
HIGHpython/pyspark/sql/tests/test_tvf.py0select * from variant_explode_outer(parse_json('["hello", "world"]'))STRING
HIGH…che/spark/sql/DataFrameTableValuedFunctionsSuite.scala0select * from variant_explode_outer(parse_json('["hello", "world"]'))STRING
HIGH…che/spark/sql/DataFrameTableValuedFunctionsSuite.scala0select * from variant_explode_outer(parse_json('["hello", "world"]'))STRING
122 more matches not shown…
Cross-Language Confusion138 hits · 662 pts
SeverityFileLineSnippetContext
HIGHpython/pyspark/core/rdd.py242 return self._jrdd.toString()CODE
HIGHpython/pyspark/mllib/tree.py90 return self._java_model.toString()CODE
HIGHpython/pyspark/mllib/tree.py150 return self._java_model.toString()CODE
HIGHpython/pyspark/mllib/stat/test.py64 return self._java_model.toString()CODE
HIGHpython/pyspark/tests/test_util.py73 # This attempts java.lang.String(null) which throws an NPE.COMMENT
HIGH…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py80 decimal, date, timestamp, duration, time, null, and nested types.STRING
HIGH…park/tests/upstream/pyarrow/test_pyarrow_array_cast.py31- Success: [0, 1, null]@int16 - element values via scalar.as_py() and Arrow type after castSTRING
HIGH…park/tests/upstream/pyarrow/test_pyarrow_array_cast.py111 as "[val1, val2, null]@arrow_type" using each scalar's as_py() value.STRING
HIGH…park/tests/upstream/pyarrow/test_pyarrow_array_cast.py126 On success: "[val1, val2, null]@arrow_type"STRING
HIGH…park/tests/upstream/pyarrow/test_pyarrow_array_cast.py127 e.g. "[0, 1, -1, 127, -128, null]@int16"STRING
HIGHpython/pyspark/testing/utils.py371 script = "$(test $(tput colors)) && $(test $(tput colors) -ge 8) && echo true || echo false"CODE
HIGHpython/pyspark/ml/tests/test_wrapper.py54 self.assertIn("LinearRegression_", model._java_obj.toString())CODE
HIGHpython/pyspark/ml/tests/test_wrapper.py55 self.assertIn("LinearRegressionTrainingSummary", summary._java_obj.toString())CODE
HIGHpython/pyspark/ml/tests/test_wrapper.py61 model._java_obj.toString()CODE
HIGHpython/pyspark/ml/tests/test_wrapper.py62 self.assertIn("LinearRegressionTrainingSummary", summary._java_obj.toString())CODE
HIGHpython/pyspark/ml/tests/test_wrapper.py74 model._java_obj.toString()CODE
HIGHpython/pyspark/ml/tests/test_wrapper.py76 summary._java_obj.toString()CODE
HIGHpython/pyspark/ml/tests/test_functions.py253 self.assertTrue(df1.equals(df2))STRING
HIGHpython/pyspark/ml/tests/test_functions.py259 self.assertFalse(df1.equals(df3))STRING
HIGHpython/pyspark/ml/tests/test_param.py261 "inputCol: input column name. (undefined)",CODE
HIGHpython/pyspark/errors/exceptions/captured.py240 desc=e.toString(),CODE
HIGHpython/pyspark/resource/requests.py321 that the cluster manager doesn't support the result is undefined, it may error or may justSTRING
HIGHpython/pyspark/pandas/series.py6759 if get_option("compute.eager_check") and not self.index.equals(other.index):CODE
HIGHpython/pyspark/pandas/utils.py996 return left._jc.equals(right._jc)CODE
HIGHpython/pyspark/pandas/frame.py1714 # | 2|[{0, null}, {1, n...|COMMENT
HIGHpython/pyspark/pandas/indexing.py556 cast(ClassicColumn, col)._jc.toString() for col in data_spark_columnsCODE
HIGHpython/pyspark/pandas/groupby.py1305 Flag to ignore NA(nan/null) values during truth testing.STRING
HIGHpython/pyspark/pandas/base.py1464 # If even one StructField is null, that row should be dropped.COMMENT
HIGHpython/pyspark/pandas/tests/computation/test_combine.py682 # Only update where new value > 150 (and old is null)COMMENT
HIGHpython/pyspark/pandas/tests/window/test_rolling_adv.py42 # pandas 3 returns 0.0 (not null); pandas < 3 returns nan. Both are matched here.COMMENT
HIGH…thon/pyspark/pandas/tests/window/test_expanding_adv.py43 # pandas 3 returns 0.0 (not null); pandas < 3 returns nan. Both are matched here.COMMENT
HIGH…hon/pyspark/pandas/tests/diff_frames_ops/test_error.py198 psidx1.equals(psidx2)CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py201 self.assert_eq(pidx.equals(pidx), psidx.equals(psidx))CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py205 pidx.equals(pd.Index(["a", "b", "c"])),CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py206 psidx.equals(ps.Index(["a", "b", "c"])),CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py209 pidx.equals(pd.Index(["b", "b", "a"])),CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py210 psidx.equals(ps.Index(["b", "b", "a"])),CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py221 self.assert_eq(pmidx.equals(pmidx), psmidx.equals(psmidx))CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py225 pmidx.equals(pd.MultiIndex.from_tuples([("a", "x"), ("b", "y"), ("c", "z")])),CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py226 psmidx.equals(ps.MultiIndex.from_tuples([("a", "x"), ("b", "y"), ("c", "z")])),CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py229 pmidx.equals(pd.MultiIndex.from_tuples([("c", "z"), ("b", "y"), ("a", "x")])),CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py230 psmidx.equals(ps.MultiIndex.from_tuples([("c", "z"), ("b", "y"), ("a", "x")])),CODE
HIGHpython/pyspark/pandas/tests/indexes/test_basic.py234 self.assert_eq(pidx.equals(pmidx), psidx.equals(psmidx))CODE
HIGHpython/pyspark/pandas/indexes/base.py387 and self.equals(other)CODE
HIGHpython/pyspark/pandas/indexes/base.py411 >>> idx.equals(idx)STRING
HIGHpython/pyspark/pandas/indexes/base.py414 ... idx.equals(ps.Index(['a', 'b', 'c']))STRING
HIGHpython/pyspark/pandas/indexes/base.py417 ... idx.equals(ps.Index(['b', 'b', 'a']))STRING
HIGHpython/pyspark/pandas/indexes/base.py419 >>> idx.equals(midx)STRING
HIGHpython/pyspark/pandas/indexes/base.py424 >>> midx.equals(midx)STRING
HIGHpython/pyspark/pandas/indexes/base.py427 ... midx.equals(ps.MultiIndex.from_tuples([('a', 'x'), ('b', 'y'), ('c', 'z')]))STRING
HIGHpython/pyspark/pandas/indexes/base.py430 ... midx.equals(ps.MultiIndex.from_tuples([('c', 'z'), ('b', 'y'), ('a', 'x')]))STRING
HIGHpython/pyspark/pandas/indexes/base.py432 >>> midx.equals(idx)STRING
HIGHpython/pyspark/sql/conversion.py180 if batch.schema.equals(arrow_schema, check_metadata=False):CODE
HIGHpython/pyspark/sql/types.py1845 return stringConcat.toString()CODE
HIGHpython/pyspark/sql/types.py262 null, UDTs, arrays, structs, and maps."""STRING
HIGHpython/pyspark/sql/context.py845 '{"field1" : null, "field2": "row3", "field3":{"field4":33, "field5": []}}',CODE
HIGHpython/pyspark/sql/group.py76 jvm_string = self._jgd.toString()CODE
HIGHpython/pyspark/sql/tvf.py427 Unlike posexplode, if the array/map is null or empty then the row (null, null) is produced.STRING
HIGHpython/pyspark/sql/tvf.py566 null, and any other variant values.STRING
HIGHpython/pyspark/sql/tvf.py631 SQL NULL, variant null, and any other variant values, then NULL is produced.STRING
78 more matches not shown…
Unused Imports612 hits · 562 pts
SeverityFileLineSnippetContext
LOWpython/run-tests.py45CODE
LOWpython/packaging/connect/pyspark_connect/__init__.py22CODE
LOWpython/pyspark/worker.py52CODE
LOWpython/pyspark/util.py60CODE
LOWpython/pyspark/util.py62CODE
LOWpython/pyspark/util.py63CODE
LOWpython/pyspark/util.py65CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py66CODE
LOWpython/pyspark/util.py91CODE
LOWpython/pyspark/util.py91CODE
LOWpython/pyspark/util.py91CODE
LOWpython/pyspark/util.py91CODE
LOWpython/pyspark/util.py91CODE
LOWpython/pyspark/util.py98CODE
LOWpython/pyspark/util.py929CODE
LOWpython/pyspark/util.py949CODE
LOWpython/pyspark/conf.py27CODE
LOWpython/pyspark/shell.py33CODE
LOWpython/pyspark/__init__.py68CODE
LOWpython/pyspark/__init__.py69CODE
LOWpython/pyspark/__init__.py69CODE
LOWpython/pyspark/__init__.py70CODE
LOWpython/pyspark/__init__.py71CODE
LOWpython/pyspark/__init__.py71CODE
LOWpython/pyspark/__init__.py72CODE
LOWpython/pyspark/__init__.py72CODE
LOWpython/pyspark/__init__.py73CODE
LOWpython/pyspark/__init__.py73CODE
LOWpython/pyspark/__init__.py73CODE
LOWpython/pyspark/__init__.py74CODE
LOWpython/pyspark/__init__.py74CODE
LOWpython/pyspark/__init__.py75CODE
LOWpython/pyspark/__init__.py76CODE
LOWpython/pyspark/__init__.py131CODE
LOWpython/pyspark/__init__.py56CODE
LOWpython/pyspark/__init__.py56CODE
LOWpython/pyspark/__init__.py57CODE
LOWpython/pyspark/__init__.py58CODE
552 more matches not shown…
Self-Referential Comments144 hits · 403 pts
SeverityFileLineSnippetContext
MEDIUMbin/docker-image-tool.sh80# Create a smaller build context for docker in dev builds to make the build faster. DockerCOMMENT
MEDIUMpython/run-tests.py268 # Create a unique temp directory under 'target/' for each run. The TMPDIR variable isCOMMENT
MEDIUMpython/run-tests.py544 # Create the target directory before starting tasks to avoid races.COMMENT
MEDIUMpython/pyspark/java_gateway.py77 # Create a temporary directory where the gateway server should write the connectionCOMMENT
MEDIUMpython/pyspark/statcounter.py18# This file is ported from spark/util/StatCounter.scalaCOMMENT
MEDIUMpython/pyspark/daemon.py116 # Create a new process group to corral our childrenCOMMENT
MEDIUMpython/pyspark/daemon.py122 # Create a listening socket on the loopback interfaceCOMMENT
MEDIUMpython/pyspark/core/rdd.py245 # This method is called when attempting to pickle an RDD, which is always an error:COMMENT
MEDIUMpython/pyspark/core/rdd.py2827 ... # Create the conf for writingSTRING
MEDIUMpython/pyspark/core/rdd.py2839 ... # Create the conf for readingSTRING
MEDIUMpython/pyspark/core/rdd.py2986 ... # Create the conf for writingSTRING
MEDIUMpython/pyspark/core/rdd.py2998 ... # Create the conf for readingSTRING
MEDIUMpython/pyspark/core/context.py298 # Create the Java SparkContext through Py4JCOMMENT
MEDIUMpython/pyspark/core/context.py303 # Create a single Accumulator in Java that we'll send all our updates through;COMMENT
MEDIUMpython/pyspark/core/context.py381 # Create a temporary directory inside spark.local.dir:COMMENT
MEDIUMpython/pyspark/core/context.py491 # This method is called when attempting to pickle SparkContext, which is always an error:STRING
MEDIUMpython/pyspark/core/context.py1492 ... # Create the conf for writingCODE
MEDIUMpython/pyspark/core/context.py1504 ... # Create the conf for readingCODE
MEDIUMpython/pyspark/core/context.py1689 ... # Create the conf for writingCODE
MEDIUMpython/pyspark/core/context.py1701 ... # Create the conf for readingCODE
MEDIUMpython/pyspark/mllib/tests/test_linalg.py534 # Create a CSC matrix with non-sorted indicesCOMMENT
MEDIUMpython/pyspark/mllib/tests/test_streaming_algorithms.py101 # Create a toy dataset by setting a tiny offset for each point.COMMENT
MEDIUMpython/pyspark/mllib/tests/test_streaming_algorithms.py396 # Create a model with initial Weights equal to coefsCOMMENT
MEDIUMpython/pyspark/tests/test_rdd.py736 # Create a DataFrame with many columns, call a Python function on each row, and take onlyCOMMENT
MEDIUMpython/pyspark/pipelines/init_cli.py52 # Create the storage directoryCOMMENT
MEDIUMpython/pyspark/pipelines/init_cli.py65 # Create the transformations directoryCOMMENT
MEDIUMpython/pyspark/pipelines/init_cli.py69 # Create the Python example fileCOMMENT
MEDIUMpython/pyspark/pipelines/init_cli.py74 # Create the SQL example fileCOMMENT
MEDIUMpython/pyspark/pipelines/tests/test_cli.py376 # Create a minimal pipeline specSTRING
MEDIUMpython/pyspark/pipelines/tests/test_cli.py400 # Create a minimal pipeline specSTRING
MEDIUMpython/pyspark/pipelines/tests/test_cli.py425 # Create a minimal pipeline specSTRING
MEDIUMpython/pyspark/ml/pipeline.py188 # Create a new instance of this stage.COMMENT
MEDIUMpython/pyspark/ml/pipeline.py346 # Create a new instance of this stage.COMMENT
MEDIUMpython/pyspark/ml/tuning.py981 # Create a new instance of this stage.COMMENT
MEDIUMpython/pyspark/ml/tuning.py1559 # Create a new instance of this stage.COMMENT
MEDIUMpython/pyspark/ml/tuning.py1684 # Create a new instance of this stage.COMMENT
MEDIUMpython/pyspark/ml/tests/test_feature.py361 # Create a DataFrameCOMMENT
MEDIUMpython/pyspark/pandas/tests/io/test_io.py34# This file contains test cases for 'Serialization / IO / Conversion'COMMENT
MEDIUMpython/pyspark/pandas/tests/frame/test_time_series.py26# This file contains test cases for 'Time series-related'COMMENT
MEDIUMpython/pyspark/pandas/tests/frame/test_spark.py34# This file contains test cases for 'Spark-related'COMMENT
MEDIUMpython/pyspark/pandas/tests/frame/test_attrs.py26# This file contains test cases for 'Attributes and underlying data'COMMENT
MEDIUMpython/pyspark/pandas/tests/frame/test_constructor.py34# This file contains test cases for 'Constructor'COMMENT
MEDIUMpython/pyspark/pandas/tests/frame/test_conversion.py25# This file contains test cases for 'Conversion'COMMENT
MEDIUMpython/pyspark/pandas/tests/frame/test_reindexing.py31# This file contains test cases for 'Reindexing / Selection / Label manipulation'COMMENT
MEDIUMpython/pyspark/pandas/tests/frame/test_reshaping.py27# This file contains test cases for 'Reshaping, sorting, transposing'COMMENT
MEDIUMpython/pyspark/pandas/tests/computation/test_combine.py25# This file contains test cases for 'Combining / joining / merging'COMMENT
MEDIUM…on/pyspark/pandas/tests/computation/test_apply_func.py29# This file contains test cases for 'Function application, GroupBy & Window'COMMENT
MEDIUM…/pyspark/pandas/tests/computation/test_missing_data.py27# This file contains test cases for 'Missing data handling'COMMENT
MEDIUM…on/pyspark/pandas/tests/computation/test_binary_ops.py26# This file contains test cases for 'Binary operator functions'COMMENT
MEDIUMpython/pyspark/pandas/tests/computation/test_compute.py26# This file contains test cases for 'Computations / Descriptive Stats'COMMENT
MEDIUM…thon/pyspark/pandas/tests/indexes/test_indexing_adv.py56 # Create the equivalent of pdf.loc[3] as a Koalas SeriesCOMMENT
MEDIUM…thon/pyspark/pandas/tests/indexes/test_indexing_adv.py142 # Create the equivalent of pdf.loc[3] as a Koalas SeriesCOMMENT
MEDIUMpython/pyspark/pandas/tests/indexes/test_indexing.py26# This file contains test cases for 'Indexing, Iteration'COMMENT
MEDIUMpython/pyspark/pandas/indexes/base.py263 # This method is used via `DataFrame.info` API internally.COMMENT
MEDIUMpython/pyspark/sql/dataframe.py563 ... # Create a table with Rate source.STRING
MEDIUMpython/pyspark/sql/dataframe.py6831 >>> # Create a simple UDTF that processes table dataSTRING
MEDIUMpython/pyspark/sql/dataframe.py6837 >>> # Create a DataFrameSTRING
MEDIUMpython/pyspark/sql/session.py624 # Create a new SparkSession in the JVMCOMMENT
MEDIUMpython/pyspark/sql/session.py1647 # Create a DataFrame from pandas DataFrame.COMMENT
MEDIUMpython/pyspark/sql/session.py1652 # Create a DataFrame from PyArrow Table.COMMENT
84 more matches not shown…
Decorative Section Separators103 hits · 376 pts
SeverityFileLineSnippetContext
MEDIUMpython/pyspark/cloudpickle/cloudpickle.py662# -------------------------------------------------COMMENT
MEDIUMpython/pyspark/cloudpickle/cloudpickle.py698# ------------------------------------COMMENT
MEDIUMpython/pyspark/cloudpickle/cloudpickle.py704# -----------------------------------COMMENT
MEDIUMpython/pyspark/cloudpickle/cloudpickle.py816# -------------------------------COMMENT
MEDIUMpython/pyspark/cloudpickle/cloudpickle.py1125# ------------------------------------COMMENT
MEDIUMpython/pyspark/cloudpickle/cloudpickle.py1207# ---------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py92 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py94 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py96 # -------------------------------------------------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py287 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py289 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py291 # -------------------------------------------------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py359 # -------------------------------------------------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py361 # -------------------------------------------------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py400 # -------------------------------------------------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py402 # -------------------------------------------------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py560 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py562 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py50 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py52 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py67 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py69 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py208 # -------------------------------------------------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py210 # -------------------------------------------------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py238 # -------------------------------------------------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py240 # -------------------------------------------------------------------------COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py438 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py440 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py528 # =========================================================================COMMENT
MEDIUM…/upstream/pyarrow/test_pyarrow_array_type_inference.py530 # =========================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py189 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py191 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py196 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py198 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py206 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py208 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py216 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py218 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py228 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py230 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py240 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py242 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py258 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py260 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py268 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py270 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py286 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py288 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py292 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py294 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py150 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py152 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py176 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py178 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py367 # =====================================================================COMMENT
MEDIUM…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py369 # =====================================================================COMMENT
MEDIUM…k/tests/upstream/pyarrow/test_pyarrow_type_coercion.py56 # =========================================================================COMMENT
MEDIUM…k/tests/upstream/pyarrow/test_pyarrow_type_coercion.py58 # =========================================================================COMMENT
MEDIUM…k/tests/upstream/pyarrow/test_pyarrow_type_coercion.py85 # =========================================================================COMMENT
MEDIUM…k/tests/upstream/pyarrow/test_pyarrow_type_coercion.py87 # =========================================================================COMMENT
43 more matches not shown…
Deep Nesting382 hits · 322 pts
SeverityFileLineSnippetContext
LOWpython/run-tests.py236CODE
LOWpython/run-tests.py474CODE
LOWpython/pyspark/worker.py678CODE
LOWpython/pyspark/worker.py710CODE
LOWpython/pyspark/worker.py754CODE
LOWpython/pyspark/worker.py858CODE
LOWpython/pyspark/worker.py1991CODE
LOWpython/pyspark/worker.py3651CODE
LOWpython/pyspark/worker.py1387CODE
LOWpython/pyspark/worker.py963CODE
LOWpython/pyspark/worker.py1125CODE
LOWpython/pyspark/worker.py1401CODE
LOWpython/pyspark/worker.py1481CODE
LOWpython/pyspark/worker.py1499CODE
LOWpython/pyspark/worker.py2409CODE
LOWpython/pyspark/worker.py2476CODE
LOWpython/pyspark/worker.py3719CODE
LOWpython/pyspark/worker.py1548CODE
LOWpython/pyspark/worker.py1661CODE
LOWpython/pyspark/worker.py3737CODE
LOWpython/pyspark/worker.py1409CODE
LOWpython/pyspark/worker.py1427CODE
LOWpython/pyspark/worker.py1437CODE
LOWpython/pyspark/worker.py1459CODE
LOWpython/pyspark/worker_message.py135CODE
LOWpython/pyspark/util.py578CODE
LOWpython/pyspark/conf.py180CODE
LOWpython/pyspark/shuffle.py62CODE
LOWpython/pyspark/shuffle.py779CODE
LOWpython/pyspark/statcounter.py60CODE
LOWpython/pyspark/accumulators.py263CODE
LOWpython/pyspark/accumulators.py268CODE
LOWpython/pyspark/profiler.py189CODE
LOWpython/pyspark/daemon.py46CODE
LOWpython/pyspark/daemon.py115CODE
LOWpython/pyspark/core/rdd.py2210CODE
LOWpython/pyspark/core/rdd.py3672CODE
LOWpython/pyspark/core/rdd.py3724CODE
LOWpython/pyspark/core/context.py225CODE
LOWpython/pyspark/core/context.py1816CODE
LOWpython/pyspark/logger/worker_io.py214CODE
LOWpython/pyspark/cloudpickle/cloudpickle.py313CODE
LOWpython/pyspark/cloudpickle/cloudpickle.py338CODE
LOWpython/pyspark/cloudpickle/cloudpickle.py1069CODE
LOWpython/pyspark/cloudpickle/cloudpickle.py1441CODE
LOWpython/pyspark/mllib/classification.py236CODE
LOWpython/pyspark/mllib/common.py75CODE
LOWpython/pyspark/mllib/common.py96CODE
LOWpython/pyspark/mllib/common.py160CODE
LOWpython/pyspark/mllib/linalg/__init__.py96CODE
LOWpython/pyspark/mllib/linalg/__init__.py114CODE
LOWpython/pyspark/mllib/linalg/__init__.py415CODE
LOWpython/pyspark/mllib/linalg/__init__.py824CODE
LOWpython/pyspark/tests/test_serializers.py213CODE
LOWpython/pyspark/tests/test_worker.py38CODE
LOWpython/pyspark/tests/test_shuffle.py66CODE
LOW…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py84CODE
LOW…park/tests/upstream/pyarrow/test_pyarrow_array_cast.py137CODE
LOWpython/pyspark/pipelines/cli.py121CODE
LOWpython/pyspark/pipelines/cli.py221CODE
322 more matches not shown…
Excessive Try-Catch Wrapping206 hits · 230 pts
SeverityFileLineSnippetContext
LOWpython/conf_vscode/sitecustomize.py38 except Exception:CODE
MEDIUMpython/pyspark/worker.py1599def mapper(_, it):CODE
MEDIUMpython/pyspark/worker.py1930def evaluate(*a) -> tuple:CODE
MEDIUMpython/pyspark/worker.py3737def _reader_thread():CODE
LOWpython/pyspark/worker.py1363 except Exception as e:CODE
LOWpython/pyspark/worker.py1542 except Exception as e:CODE
LOWpython/pyspark/worker.py1713 except Exception as e:CODE
LOWpython/pyspark/worker.py1728 except Exception as e:CODE
LOWpython/pyspark/worker.py1839 except Exception as e:CODE
LOWpython/pyspark/worker.py1935 except Exception as e:CODE
LOWpython/pyspark/worker.py3755 except Exception as e:CODE
LOWpython/pyspark/worker.py3792 except Exception:CODE
LOWpython/pyspark/worker.py3845 except Exception:CODE
LOWpython/pyspark/threaddump.py45 except Exception as e:CODE
MEDIUMpython/pyspark/threaddump.py46 print(f"Error getting children of process {args.pid}: {e}")CODE
LOWpython/pyspark/threaddump.py54 except Exception:CODE
MEDIUMpython/pyspark/threaddump.py28def main() -> int:CODE
LOWpython/pyspark/util.py788 except Exception:CODE
LOWpython/pyspark/serializers.py446 except Exception as e:CODE
LOWpython/pyspark/serializers.py495 except Exception:CODE
LOWpython/pyspark/shell.py73 except Exception:CODE
LOWpython/pyspark/shell.py90 except Exception:CODE
LOWpython/pyspark/memory_profiler_ext.py32 except Exception:CODE
LOWpython/pyspark/memory_profiler_ext.py69 except Exception:CODE
LOWpython/pyspark/install.py164 except Exception:CODE
LOWpython/pyspark/install.py214 except Exception:CODE
LOWpython/pyspark/install.py246 except Exception as e:CODE
LOWpython/pyspark/instrumentation_utils.py48 except Exception as ex:CODE
LOWpython/pyspark/instrumentation_utils.py72 except Exception as ex:CODE
LOWpython/pyspark/daemon.py96 except Exception:CODE
LOWpython/pyspark/daemon.py272 except Exception:CODE
LOWpython/pyspark/core/context.py374 except Exception:CODE
LOWpython/pyspark/core/broadcast.py181 except Exception as e:CODE
LOWpython/pyspark/logger/worker_io.py252 except Exception:CODE
LOWpython/pyspark/cloudpickle/cloudpickle.py232 except Exception:CODE
LOWpython/pyspark/tests/test_rdd.py354 except Exception:CODE
LOWpython/pyspark/tests/test_rdd.py919 except Exception:CODE
LOWpython/pyspark/tests/test_taskcontext.py206 except Exception:CODE
LOWpython/pyspark/tests/test_taskcontext.py277 except Exception:CODE
MEDIUMpython/pyspark/tests/test_taskcontext.py203def f(iterator):CODE
LOWpython/pyspark/tests/test_util.py182 except Exception as e:CODE
LOWpython/pyspark/tests/test_pin_thread.py68 except Exception as e:CODE
LOWpython/pyspark/tests/test_pin_thread.py123 except Exception:CODE
LOWpython/pyspark/tests/test_worker.py55 except Exception:CODE
LOWpython/pyspark/tests/test_worker.py155 except Exception:CODE
MEDIUMpython/pyspark/tests/test_worker.py52def run():CODE
MEDIUMpython/pyspark/tests/test_worker.py152def count():CODE
LOWpython/pyspark/tests/test_context.py237 except Exception:CODE
LOWpython/pyspark/tests/test_install_spark.py53 except Exception:CODE
LOW…stream/pyarrow/test_pyarrow_arrow_to_pandas_default.py399 except Exception as e:CODE
LOW…park/tests/upstream/pyarrow/test_pyarrow_array_cast.py134 except Exception as e:CODE
LOWpython/pyspark/testing/sqlutils.py110 except Exception:CODE
LOWpython/pyspark/testing/sqlutils.py168except Exception as e:CODE
LOWpython/pyspark/testing/goldenutils.py189 except Exception as e:CODE
MEDIUMpython/pyspark/testing/utils.py368def _terminal_color_support():CODE
LOWpython/pyspark/testing/utils.py128except Exception as e:CODE
LOWpython/pyspark/testing/utils.py140except Exception as e:CODE
LOWpython/pyspark/testing/utils.py373 except Exception:CODE
LOWpython/pyspark/ml/functions.py848 except Exception as e:CODE
LOWpython/pyspark/ml/wrapper.py66 except Exception:CODE
146 more matches not shown…
AI Slop Vocabulary54 hits · 136 pts
SeverityFileLineSnippetContext
MEDIUM…/org/apache/spark/launcher/AbstractCommandBuilder.java244 // Place slf4j-api-* jar first to be robustCOMMENT
MEDIUM…c/test/scala/org/apache/spark/ui/UISeleniumSuite.scala414 // Essentially, we want to check that none of the stage rows showCOMMENT
MEDIUM…c/test/scala/org/apache/spark/ui/UISeleniumSuite.scala470 // Essentially, we want to check that none of the stage rows showCOMMENT
MEDIUM…ala/org/apache/spark/scheduler/DAGSchedulerSuite.scala2376 // For a robust test assertion, limit number of job tasks to 1; that is,COMMENT
MEDIUM…apache/spark/scheduler/SchedulerIntegrationSuite.scala431 // it really can only be "best-effort" in any case, and the scheduler should be robust to that.STRING
MEDIUM…rg/apache/spark/scheduler/TaskSchedulerImplSuite.scala492 // Even though we launched a local task above, we still utilize non-local exec2.COMMENT
MEDIUM…he/spark/scheduler/HealthTrackerIntegrationSuite.scala80 // robust to one bad node.COMMENT
MEDIUM…main/scala/org/apache/spark/storage/BlockManager.scala1224 // BlockTransferService, which will leverage it to spill the block; if not, then passed-inCOMMENT
MEDIUMpython/packaging/classic/setup.py171 # TODO(SPARK-32837) leverage pip's custom optionsCOMMENT
LOW…spark/messages/socket/spark_socket_message_receiver.py49 # For socket communication, we just pass along the underlying socketCOMMENT
LOWpython/pyspark/tests/test_install_spark.py60 # we just use a hard-coded version.COMMENT
LOWpython/pyspark/ml/tests/test_functions.py208 # just return the batch size as the "prediction"STRING
MEDIUMpython/pyspark/errors/utils.py378 # Excluding Python magic methods that do not utilize JVM functions.COMMENT
LOWpython/pyspark/pandas/resample.py359 # here just use Pandas' resample on a 1-length series to get it.COMMENT
LOWpython/pyspark/pandas/generic.py3101 # If Series has only a single value, just return it as a scalar.STRING
MEDIUMpython/pyspark/pandas/series.py6093 # If `where` has duplicate items, leverage the pandas directlyCOMMENT
LOWpython/pyspark/pandas/utils.py794 # '+' is meaningless for writing methods, but pandas just pass it as 'w'.COMMENT
LOWpython/pyspark/pandas/utils.py798 # '+' is meaningless for writing methods, but pandas just pass it as 'a'.COMMENT
LOWpython/pyspark/pandas/frame.py10233 # In this case, we can simply use `summary` to calculate the stats.COMMENT
MEDIUMpython/pyspark/pandas/tests/groupby/test_stat.py30 # TODO: All statistical functions should leverage this utilityCOMMENT
MEDIUMpython/pyspark/sql/session.py601 # used in conjunction with Spark Connect mode.COMMENT
MEDIUMpython/pyspark/sql/tests/test_functions.py3091 """Test tuple_sketch_agg + operations + estimate comprehensive test - double"""STRING
MEDIUMpython/pyspark/sql/tests/test_functions.py3146 """Test tuple_sketch_agg + operations + estimate comprehensive test - integer"""STRING
MEDIUM…ing/test_pandas_transform_with_state_state_variable.py354 # TODO SPARK-50908 holistic fix for TTL suiteCOMMENT
MEDIUMpython/pyspark/sql/connect/client/core.py454 # Rewrite the URL to use http as the scheme so that we can leverageCOMMENT
LOWR/pkg/R/sparkR.R664#' To remove/unset property simply set `value` to NULL e.g. setLocalProperty("key", NULL)COMMENT
MEDIUMR/pkg/R/column.R296#' Can be used in conjunction with \code{when} to specify a default value for expressions.COMMENT
MEDIUM…apache/spark/streaming/ReceivedBlockTrackerSuite.scala320 // deletion more robust rather than a parallelized operation where we fire and forgetCOMMENT
MEDIUM…cala/org/apache/spark/streaming/ui/StreamingPage.scala163 // We leverage timeFormat as the value would be same as timeFormat. This means it isCOMMENT
MEDIUM…rg/apache/spark/network/crypto/CtrTransportCipher.java229 // to utilize two helper ByteArrayWritableChannel for streaming. One is used to receive raw dataCOMMENT
MEDIUM…network/shuffle/streaming/StreamingShuffleMessage.java68 // Essentially, other message types from reader to writer won't have a valid sequence number.COMMENT
MEDIUM…scala/org/apache/spark/examples/mllib/LDAExample.scala139 // add (1.0 / actualCorpusSize) to MiniBatchFraction be more robust on tiny datasets.COMMENT
MEDIUM…a/org/apache/spark/sql/StatisticsCollectionSuite.scala934 // We can't leverage LogicalRDD.fromDataset here, since it triggers physical planning andCOMMENT
MEDIUM…c/test/scala/org/apache/spark/sql/DataFrameSuite.scala1637 // We can't leverage LogicalRDD.fromDataset here, since it triggers physical planning andCOMMENT
MEDIUM…apache/spark/sql/streaming/FileStreamSourceSuite.scala2342 // file stream source will not leverage unread files - next batch will also triggerCOMMENT
MEDIUM…org/apache/spark/sql/execution/UnionCodegenSuite.scala535 // Explicit cap so the assertion is robust to future default changes.STRING
MEDIUM…l/execution/datasources/PushVariantIntoScanSuite.scala476 // Project/Filter nodes wrap it. This keeps scan-content assertions robust against optimizerCOMMENT
MEDIUM…ion/datasources/v2/state/StateDataSourceTestBase.scala103 // check with more data - leverage full partitionsCOMMENT
MEDIUM…park/sql/catalyst/analysis/ResolveSessionCatalog.scala227 // resolution was skipped) so the rewrite stays robust across analyzer ordering changes.COMMENT
MEDIUM…in/scala/org/apache/spark/sql/jdbc/OracleDialect.scala166 // Not sure if there is a more robust way to identify the field as a float (or otherCOMMENT
MEDIUM…icpruning/RowLevelOperationRuntimeGroupFiltering.scala78 // in order to leverage a regular batch scan in the group filter queryCOMMENT
MEDIUM…on/python/streaming/ApplyInPandasWithStateWriter.scala107 // from the entire data part of Arrow RecordBatch. We leverage the state metadata to alsoCOMMENT
MEDIUM…ors/stateful/join/StreamingSymmetricHashJoinExec.scala1098 // to let users leverage both sides of event time column for output of join, so the watermarkCOMMENT
MEDIUM…/execution/streaming/runtime/FileStreamSourceLog.scala130 // be started. We leverage the fact to skip calculation if possible.COMMENT
MEDIUM…sql/execution/streaming/runtime/ProgressReporter.scala572 // by itself, so leverage it.COMMENT
MEDIUM…ark/sql/catalyst/expressions/CodeGenerationSuite.scala603 | // to make the test more robust, in case the compiler can eliminate the else branch.STRING
MEDIUM…e/spark/sql/catalyst/analysis/RelationResolution.scala400 // To utilize this code path to execute V1 commands, e.g. INSERT,COMMENT
MEDIUM…ql/catalyst/expressions/SubExprEvaluationRuntime.scala100 // We leverage `IdentityHashMap` so we compare expression keys by reference here.COMMENT
MEDIUM…k/sql/catalyst/expressions/codegen/CodeFormatter.scala119 // examines the number of parenthesis and braces in that line. This isn't the most robustCOMMENT
MEDIUM…/spark/sql/hive/execution/HiveCompatibilitySuite.scala287 // The isolated classloader seemed to make some of our test reset mechanisms less robust.COMMENT
MEDIUM…n/scala/org/apache/spark/sql/hive/HiveInspectors.scala1057 // TODO: hard-coding a list here is not very robust. A better idea is to have some kind of queryCOMMENT
MEDIUM…/main/java/org/apache/spark/sql/streaming/Trigger.java97 * @deprecated This is deprecated as of Spark 3.4.0. Use {@link #AvailableNow()} to leverageCOMMENT
MEDIUM…k/sql/connect/pipelines/PipelineEventSenderSuite.scala284 // total is logged at shutdown. The assertions match on substrings so they stay robust toCOMMENT
MEDIUM…e/spark/sql/hive/thriftserver/SharedThriftServer.scala134 // It's much more robust than set a random port generated by ourselves aheadCOMMENT
Structural Annotation Overuse68 hits · 136 pts
SeverityFileLineSnippetContext
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1058 // Step 1: Write an in-progress log containing only ApplicationStart (no job).COMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1065 // Step 2: Load the app UI; this builds the disk store from the in-progress snapshot.COMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1071 // Step 3: Simulate ApplicationCache LRU eviction BEFORE the app completes.COMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1081 // Step 4: Complete the app. Write a new log file (without .inprogress suffix) thatCOMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1091 // Step 5: checkForLogs() detects the completed log.COMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1096 // Step 6: Load the UI again.COMMENT
LOWpython/pyspark/sql/conversion.py185 # Step 1: pick source columns from batch to align with target schemaCOMMENT
LOWpython/pyspark/sql/conversion.py214 # Step 2: check types / cast, collect all mismatchesCOMMENT
LOW…/streaming/test_streaming_offline_state_repartition.py109 # Step 1: Write initial data and run streaming queryCOMMENT
LOW…/streaming/test_streaming_offline_state_repartition.py116 # Step 2: Repartition to more partitionsCOMMENT
LOW…/streaming/test_streaming_offline_state_repartition.py121 # Step 3: Add more data and restart queryCOMMENT
LOW…/streaming/test_streaming_offline_state_repartition.py129 # Step 4: Repartition to fewer partitionsCOMMENT
LOW…/streaming/test_streaming_offline_state_repartition.py134 # Step 5: Add more data and restart queryCOMMENT
LOWR/pkg/inst/worker/worker.R247 # Step 1: hash the data to an environmentCOMMENT
LOWR/pkg/inst/worker/worker.R264 # Step 2: write out all of the environment as key-value pairs.COMMENT
LOW…on/datasources/v2/state/StateDataSourceReadSuite.scala1739 // Step 1: Run the stateful query to create the full checkpoint structureCOMMENT
LOW…on/datasources/v2/state/StateDataSourceReadSuite.scala1742 // Step 2: Delete the state directoryCOMMENT
LOW…on/datasources/v2/state/StateDataSourceReadSuite.scala1748 // Step 3: Attempt to read state - expected to fail since state is deletedCOMMENT
LOW…on/datasources/v2/state/StateDataSourceReadSuite.scala1754 // Step 4: Verify the state directory was NOT recreated by the readerCOMMENT
LOW…execution/streaming/state/RocksDBStateStoreSuite.scala1866 // Step 1: Write data with correct schema and commitCOMMENT
LOW…execution/streaming/state/RocksDBStateStoreSuite.scala1877 // Step 2: Reopen with a wrong valueSchema (StringType instead of IntegerType)COMMENT
LOW…execution/streaming/state/RocksDBStateStoreSuite.scala1906 // Step 1: Write data with correct schema and commitCOMMENT
LOW…execution/streaming/state/RocksDBStateStoreSuite.scala1918 // Step 2: Reopen with a wrong valueSchema (StringType instead of IntegerType)COMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala228 // Step 1: Create state by running a streaming aggregationCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala270 // Step 1: Create state by running a composite key streaming aggregationCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala304 // Step 1: Create state by running stream-stream joinCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala316 // Step 2: Test all 4 state stores created by stream-stream joinCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala343 // Step 1: Create state by running flatMapGroupsWithStateCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala813 // Step 1: Create state by running dropDuplicatesWithinWatermarkCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala838 // Step 1: Create state by running dropDuplicates with columnCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala863 // Step 1: Create state by running session window aggregationCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala892 // Step 1: Create state by running a streaming aggregationCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala965 // Step 1: Create state by running a streaming aggregationCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala128 // Step 1: Run initial query to create stateCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala131 // Step 2: Read state data before repartitionCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala150 // Step 3: Run repartitionCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala157 // Step 4: Verify offset and commit logsCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala162 // Step 5: Validate state for each store and column family after repartitionCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala190 // Step 6: Resume query with new input and verifyCOMMENT
LOW…scala/org/apache/spark/sql/avro/AvroOutputWriter.scala38// NOTE: This class is instantiated and used on executor side only, no need to be serializable.COMMENT
LOW…la/org/apache/spark/sql/execution/SparkSqlParser.scala140 // Step 1: Apply variable substitution to expand any variable references.COMMENT
LOW…la/org/apache/spark/sql/execution/SparkSqlParser.scala143 // Step 2: Apply parameter substitution if a parameter context is provided.COMMENT
LOW…la/org/apache/spark/sql/execution/SparkSqlParser.scala168 // Step 3: Set up the origin with SQL text and position mapper to enableCOMMENT
LOW…/parquet/ParquetOutputWriterWithVariantShredding.scala39// NOTE: This class is instantiated and used on executor side only, no need to be serializable.COMMENT
LOW…xecution/datasources/parquet/ParquetOutputWriter.scala27// NOTE: This class is instantiated and used on executor side only, no need to be serializable.COMMENT
LOW…/execution/aggregate/TungstenAggregationIterator.scala264 // Step 5: Get the sorted iterator from the externalSorter.COMMENT
LOW…/execution/aggregate/TungstenAggregationIterator.scala267 // Step 6: Pre-load the first key-value pair from the sorted iterator to makeCOMMENT
LOW…/execution/aggregate/TungstenAggregationIterator.scala280 // Step 7: set sortBased to true.COMMENT
LOW…t/analysis/SequentialStreamingUnionAnalysisSuite.scala227 // Step 1: Flatten the nested unionsCOMMENT
LOW…t/analysis/SequentialStreamingUnionAnalysisSuite.scala236 // Step 2: Validate the flattened planCOMMENT
LOW…/spark/sql/catalyst/optimizer/MergeSubplansSuite.scala762 // Step 1: subquery1 (cp) and subquery2 (np) merge:COMMENT
LOW…/spark/sql/catalyst/optimizer/MergeSubplansSuite.scala769 // Step 2: subquery3 (np) merges with merged(1,2) (cp). The cp Filter is tagged, so only aCOMMENT
LOW…/spark/sql/catalyst/optimizer/MergeSubplansSuite.scala818 // Step 1: subquery1 (cp) and subquery2 (np) merge as usual:COMMENT
LOW…/spark/sql/catalyst/optimizer/MergeSubplansSuite.scala824 // Step 2: subquery3 (np, condition a > 1) merges with merged(1,2) (cp). The cp Filter isCOMMENT
LOW…a/org/apache/spark/sql/connect/SparkSessionSuite.scala182 // Step 0 - check initial stateCOMMENT
LOW…a/org/apache/spark/sql/connect/SparkSessionSuite.scala187 // Step 1 - new active session in script 2COMMENT
LOW…a/org/apache/spark/sql/connect/SparkSessionSuite.scala195 // Step 3 - close session 1, no more default session in both scriptsCOMMENT
LOW…a/org/apache/spark/sql/connect/SparkSessionSuite.scala199 // Step 4 - no default session, same active session.COMMENT
LOW…a/org/apache/spark/sql/connect/SparkSessionSuite.scala204 // Step 5 - clear active session in script 1COMMENT
LOW…a/org/apache/spark/sql/connect/SparkSessionSuite.scala208 // Step 6 - no default/no active session in script 1, script2 unchanged.COMMENT
8 more matches not shown…
AI Structural Patterns129 hits · 122 pts
SeverityFileLineSnippetContext
LOWpython/pyspark/core/context.py171CODE
LOWpython/pyspark/mllib/regression.py292CODE
LOWpython/pyspark/mllib/regression.py476CODE
LOWpython/pyspark/mllib/regression.py656CODE
LOWpython/pyspark/mllib/classification.py331CODE
LOWpython/pyspark/mllib/classification.py423CODE
LOWpython/pyspark/mllib/classification.py646CODE
LOWpython/pyspark/pipelines/api.py113CODE
LOWpython/pyspark/pipelines/api.py126CODE
LOWpython/pyspark/pipelines/api.py217CODE
LOWpython/pyspark/pipelines/api.py230CODE
LOWpython/pyspark/streaming/kinesis.py69CODE
LOWpython/pyspark/streaming/kinesis.py88CODE
LOWpython/pyspark/testing/utils.py692CODE
LOWpython/pyspark/ml/regression.py303CODE
LOWpython/pyspark/ml/regression.py337CODE
LOWpython/pyspark/ml/regression.py1112CODE
LOWpython/pyspark/ml/regression.py1148CODE
LOWpython/pyspark/ml/regression.py1412CODE
LOWpython/pyspark/ml/regression.py1452CODE
LOWpython/pyspark/ml/regression.py1762CODE
LOWpython/pyspark/ml/regression.py1804CODE
LOWpython/pyspark/ml/regression.py2163CODE
LOWpython/pyspark/ml/regression.py2203CODE
LOWpython/pyspark/ml/regression.py2568CODE
LOWpython/pyspark/ml/regression.py2604CODE
LOWpython/pyspark/ml/regression.py3138CODE
LOWpython/pyspark/ml/regression.py3169CODE
LOWpython/pyspark/ml/clustering.py408CODE
LOWpython/pyspark/ml/clustering.py438CODE
LOWpython/pyspark/ml/clustering.py783CODE
LOWpython/pyspark/ml/clustering.py815CODE
LOWpython/pyspark/ml/clustering.py1141CODE
LOWpython/pyspark/ml/clustering.py1167CODE
LOWpython/pyspark/ml/clustering.py1699CODE
LOWpython/pyspark/ml/clustering.py1737CODE
LOWpython/pyspark/ml/classification.py723CODE
LOWpython/pyspark/ml/classification.py755CODE
LOWpython/pyspark/ml/classification.py1241CODE
LOWpython/pyspark/ml/classification.py1267CODE
LOWpython/pyspark/ml/classification.py1293CODE
LOWpython/pyspark/ml/classification.py1338CODE
LOWpython/pyspark/ml/classification.py1364CODE
LOWpython/pyspark/ml/classification.py1391CODE
LOWpython/pyspark/ml/classification.py1781CODE
LOWpython/pyspark/ml/classification.py1819CODE
LOWpython/pyspark/ml/classification.py2083CODE
LOWpython/pyspark/ml/classification.py2126CODE
LOWpython/pyspark/ml/classification.py2561CODE
LOWpython/pyspark/ml/classification.py2605CODE
LOWpython/pyspark/ml/classification.py2965CODE
LOWpython/pyspark/ml/classification.py2992CODE
LOWpython/pyspark/ml/classification.py3215CODE
LOWpython/pyspark/ml/classification.py3247CODE
LOWpython/pyspark/ml/classification.py4110CODE
LOWpython/pyspark/ml/classification.py4147CODE
LOWpython/pyspark/ml/evaluation.py579CODE
LOWpython/pyspark/ml/evaluation.py690CODE
LOWpython/pyspark/ml/feature.py3625CODE
LOWpython/pyspark/ml/feature.py3673CODE
69 more matches not shown…
Verbosity Indicators62 hits · 118 pts
SeverityFileLineSnippetContext
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1058 // Step 1: Write an in-progress log containing only ApplicationStart (no job).COMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1065 // Step 2: Load the app UI; this builds the disk store from the in-progress snapshot.COMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1071 // Step 3: Simulate ApplicationCache LRU eviction BEFORE the app completes.COMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1081 // Step 4: Complete the app. Write a new log file (without .inprogress suffix) thatCOMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1091 // Step 5: checkForLogs() detects the completed log.COMMENT
LOW…ache/spark/deploy/history/FsHistoryProviderSuite.scala1096 // Step 6: Load the UI again.COMMENT
LOW…/util/collection/unsafe/sort/UnsafeExternalSorter.java474 // Step 1:COMMENT
LOW…/util/collection/unsafe/sort/UnsafeExternalSorter.java477 // Step 2:COMMENT
LOW…/util/collection/unsafe/sort/UnsafeExternalSorter.java480 // Step 3:COMMENT
LOW…/scala/org/apache/spark/storage/BlockInfoManager.scala433 // reader counts. We need to check if the readLocksByTask per tasks are present, if theyCOMMENT
LOWpython/pyspark/sql/conversion.py185 # Step 1: pick source columns from batch to align with target schemaCOMMENT
LOWpython/pyspark/sql/conversion.py214 # Step 2: check types / cast, collect all mismatchesCOMMENT
LOW…/streaming/test_streaming_offline_state_repartition.py109 # Step 1: Write initial data and run streaming queryCOMMENT
LOW…/streaming/test_streaming_offline_state_repartition.py116 # Step 2: Repartition to more partitionsCOMMENT
LOW…/streaming/test_streaming_offline_state_repartition.py121 # Step 3: Add more data and restart queryCOMMENT
LOW…/streaming/test_streaming_offline_state_repartition.py129 # Step 4: Repartition to fewer partitionsCOMMENT
LOW…/streaming/test_streaming_offline_state_repartition.py134 # Step 5: Add more data and restart queryCOMMENT
LOW…rk/sql/streaming/transform_with_state_driver_worker.py72 # and the following code block should be only run once for each query runCOMMENT
LOWR/pkg/inst/worker/daemon.R98 # Forking succeeded and we need to check if they finished their jobs every second.COMMENT
LOWR/pkg/inst/worker/worker.R247 # Step 1: hash the data to an environmentCOMMENT
LOWR/pkg/inst/worker/worker.R264 # Step 2: write out all of the environment as key-value pairs.COMMENT
LOW…ming/FlatMapGroupsWithStateWithInitialStateSuite.scala57 // We need to check if not explicitly calling update will still save the init state or notCOMMENT
LOW…ming/FlatMapGroupsWithStateWithInitialStateSuite.scala124 // We need to check if not explicitly calling update will still save the state or notCOMMENT
LOW…on/datasources/v2/state/StateDataSourceReadSuite.scala1739 // Step 1: Run the stateful query to create the full checkpoint structureCOMMENT
LOW…on/datasources/v2/state/StateDataSourceReadSuite.scala1742 // Step 2: Delete the state directoryCOMMENT
LOW…on/datasources/v2/state/StateDataSourceReadSuite.scala1748 // Step 3: Attempt to read state - expected to fail since state is deletedCOMMENT
LOW…on/datasources/v2/state/StateDataSourceReadSuite.scala1754 // Step 4: Verify the state directory was NOT recreated by the readerCOMMENT
LOW…execution/streaming/state/RocksDBStateStoreSuite.scala1866 // Step 1: Write data with correct schema and commitCOMMENT
LOW…execution/streaming/state/RocksDBStateStoreSuite.scala1877 // Step 2: Reopen with a wrong valueSchema (StringType instead of IntegerType)COMMENT
LOW…execution/streaming/state/RocksDBStateStoreSuite.scala1906 // Step 1: Write data with correct schema and commitCOMMENT
LOW…execution/streaming/state/RocksDBStateStoreSuite.scala1918 // Step 2: Reopen with a wrong valueSchema (StringType instead of IntegerType)COMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala228 // Step 1: Create state by running a streaming aggregationCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala270 // Step 1: Create state by running a composite key streaming aggregationCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala304 // Step 1: Create state by running stream-stream joinCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala316 // Step 2: Test all 4 state stores created by stream-stream joinCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala343 // Step 1: Create state by running flatMapGroupsWithStateCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala813 // Step 1: Create state by running dropDuplicatesWithinWatermarkCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala838 // Step 1: Create state by running dropDuplicates with columnCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala863 // Step 1: Create state by running session window aggregationCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala892 // Step 1: Create state by running a streaming aggregationCOMMENT
LOW…state/StatePartitionAllColumnFamiliesWriterSuite.scala965 // Step 1: Create state by running a streaming aggregationCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala128 // Step 1: Run initial query to create stateCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala131 // Step 2: Read state data before repartitionCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala150 // Step 3: Run repartitionCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala157 // Step 4: Verify offset and commit logsCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala162 // Step 5: Validate state for each store and column family after repartitionCOMMENT
LOW…ng/state/OfflineStateRepartitionIntegrationSuite.scala190 // Step 6: Resume query with new input and verifyCOMMENT
LOW…g/apache/spark/sql/classic/StreamingQueryManager.scala321 // The following code block checks if a stream with the same name or id is running. Then itCOMMENT
LOW…la/org/apache/spark/sql/execution/SparkSqlParser.scala140 // Step 1: Apply variable substitution to expand any variable references.COMMENT
LOW…la/org/apache/spark/sql/execution/SparkSqlParser.scala143 // Step 2: Apply parameter substitution if a parameter context is provided.COMMENT
LOW…la/org/apache/spark/sql/execution/SparkSqlParser.scala168 // Step 3: Set up the origin with SQL text and position mapper to enableCOMMENT
LOW…ql/execution/datasources/v2/jdbc/JDBCScanBuilder.scala133 // Also, we need to check if join is done on 2 tables from 2 different databases within sameCOMMENT
LOW…xecution/datasources/parquet/ParquetRowConverter.scala835 // in case of schema evolution), we need to check if the repeated type matches one of theSTRING
LOW…/execution/aggregate/TungstenAggregationIterator.scala264 // Step 5: Get the sorted iterator from the externalSorter.COMMENT
LOW…/execution/aggregate/TungstenAggregationIterator.scala267 // Step 6: Pre-load the first key-value pair from the sorted iterator to makeCOMMENT
LOW…/execution/aggregate/TungstenAggregationIterator.scala280 // Step 7: set sortBased to true.COMMENT
LOW…t/analysis/SequentialStreamingUnionAnalysisSuite.scala227 // Step 1: Flatten the nested unionsCOMMENT
LOW…t/analysis/SequentialStreamingUnionAnalysisSuite.scala236 // Step 2: Validate the flattened planCOMMENT
LOW…/spark/sql/catalyst/optimizer/MergeSubplansSuite.scala762 // Step 1: subquery1 (cp) and subquery2 (np) merge:COMMENT
LOW…/spark/sql/catalyst/optimizer/MergeSubplansSuite.scala769 // Step 2: subquery3 (np) merges with merged(1,2) (cp). The cp Filter is tagged, so only aCOMMENT
2 more matches not shown…
Modern Structural Boilerplate118 hits · 117 pts
SeverityFileLineSnippetContext
LOWpython/packaging/connect/pyspark_connect/__init__.py24__all__ = [CODE
LOWpython/pyspark/taskcontext.py164 def _setTaskContext(cls: Type["TaskContext"], taskContext: Optional["TaskContext"]) -> None:CODE
LOWpython/pyspark/conf.py18__all__ = ["SparkConf"]CODE
LOWpython/pyspark/serializers.py72__all__ = [CODE
LOWpython/pyspark/__init__.py133__all__ = [CODE
LOWpython/pyspark/memory_profiler_ext.py36__all__ = [CODE
LOWpython/pyspark/storagelevel.py18__all__ = ["StorageLevel"]CODE
LOWpython/pyspark/accumulators.py35__all__ = ["Accumulator", "AccumulatorParam"]CODE
LOWpython/pyspark/resultiterable.py24__all__ = ["ResultIterable"]CODE
LOWpython/pyspark/messages/__init__.py22__all__ = [CODE
LOWpython/pyspark/core/files.py20__all__ = ["SparkFiles"]CODE
LOWpython/pyspark/core/rdd.py119__all__ = ["RDD"]CODE
LOWpython/pyspark/core/context.py81__all__ = ["SparkContext"]CODE
LOWpython/pyspark/core/broadcast.py48__all__ = ["Broadcast"]CODE
LOWpython/pyspark/core/status.py18__all__ = ["SparkJobInfo", "SparkStageInfo", "SparkExecutorInfo", "StatusTracker"]CODE
LOWpython/pyspark/logger/__init__.py24__all__ = ["PySparkLogger", "SPARK_LOG_SCHEMA"]CODE
LOWpython/pyspark/cloudpickle/__init__.py8__all__ = [ # noqaCODE
LOWpython/pyspark/mllib/tree.py33__all__ = [CODE
LOWpython/pyspark/mllib/regression.py51__all__ = [CODE
LOWpython/pyspark/mllib/clustering.py41__all__ = [CODE
LOWpython/pyspark/mllib/classification.py42__all__ = [CODE
LOWpython/pyspark/mllib/evaluation.py28__all__ = [CODE
LOWpython/pyspark/mllib/__init__.py33__all__ = [CODE
LOWpython/pyspark/mllib/feature.py41__all__ = [CODE
LOWpython/pyspark/mllib/random.py33__all__ = [CODE
LOWpython/pyspark/mllib/recommendation.py28__all__ = ["MatrixFactorizationModel", "ALS", "Rating"]CODE
LOWpython/pyspark/mllib/fpm.py27__all__ = ["FPGrowth", "FPGrowthModel", "PrefixSpan", "PrefixSpanModel"]CODE
LOWpython/pyspark/mllib/linalg/__init__.py71__all__ = [CODE
LOWpython/pyspark/mllib/linalg/distributed.py40__all__ = [CODE
LOWpython/pyspark/mllib/stat/__init__.py27__all__ = [CODE
LOWpython/pyspark/mllib/stat/test.py22__all__ = ["ChiSqTestResult", "KolmogorovSmirnovTestResult"]CODE
LOWpython/pyspark/mllib/stat/distribution.py18__all__ = ["MultivariateGaussian"]CODE
LOWpython/pyspark/mllib/stat/_statistics.py33__all__ = ["MultivariateStatisticalSummary", "Statistics"]CODE
LOWpython/pyspark/pipelines/__init__.py27__all__ = [CODE
LOWpython/pyspark/streaming/dstream.py50__all__ = ["DStream"]CODE
LOWpython/pyspark/streaming/kinesis.py25__all__ = ["KinesisUtils", "InitialPositionInStream", "MetricsLevel", "utf8_decoder"]CODE
LOWpython/pyspark/streaming/__init__.py22__all__ = ["StreamingContext", "DStream", "StreamingListener"]CODE
LOWpython/pyspark/streaming/context.py31__all__ = ["StreamingContext"]CODE
LOWpython/pyspark/streaming/listener.py20__all__ = ["StreamingListener"]CODE
LOWpython/pyspark/testing/__init__.py21__all__ = ["assertDataFrameEqual", "assertSchemaEqual", "main"]CODE
LOWpython/pyspark/testing/utils.py46__all__ = ["assertDataFrameEqual", "assertSchemaEqual"]CODE
LOWpython/pyspark/testing/connectutils.py106 def _set_relation_in_plan(self, plan: pb2.Plan, relation: pb2.Relation) -> None:CODE
LOWpython/pyspark/testing/connectutils.py111 def _set_command_in_plan(self, plan: pb2.Plan, command: pb2.Command) -> None:CODE
LOWpython/pyspark/ml/regression.py85__all__ = [CODE
LOWpython/pyspark/ml/clustering.py64__all__ = [CODE
LOWpython/pyspark/ml/classification.py111__all__ = [CODE
LOWpython/pyspark/ml/evaluation.py50__all__ = [CODE
LOWpython/pyspark/ml/__init__.py49__all__ = [CODE
LOWpython/pyspark/ml/feature.py77__all__ = [CODE
LOWpython/pyspark/ml/recommendation.py41__all__ = ["ALS", "ALSModel"]CODE
LOWpython/pyspark/ml/tuning.py70__all__ = [CODE
LOWpython/pyspark/ml/image.py36__all__ = ["ImageSchema"]CODE
LOWpython/pyspark/ml/fpm.py35__all__ = ["FPGrowth", "FPGrowthModel", "PrefixSpan"]CODE
LOWpython/pyspark/ml/linalg/__init__.py58__all__ = [CODE
LOWpython/pyspark/ml/torch/distributor.py685 def set_torch_config(context: "BarrierTaskContext") -> None:STRING
LOWpython/pyspark/ml/torch/distributor.py702 def set_gpus(context: "BarrierTaskContext") -> None:STRING
LOWpython/pyspark/ml/torch/distributor.py711 def set_gpus(context: "BarrierTaskContext") -> None:STRING
LOWpython/pyspark/ml/param/__init__.py41__all__ = ["Param", "Params", "TypeConverters"]CODE
LOWpython/pyspark/ml/connect/__init__.py37__all__ = [CODE
LOWpython/pyspark/errors/__init__.py57__all__ = [CODE
58 more matches not shown…
Redundant / Tautological Comments64 hits · 93 pts
SeverityFileLineSnippetContext
LOWpython/run-tests.py506 # Check if the python executable has coverage installed when 'COVERAGE_PROCESS_START'COMMENT
LOWpython/pyspark/worker.py1180 # Check if this is a continuation of the previous batch's partitionCOMMENT
LOWpython/pyspark/worker.py1289 # Check if any partition column changed from previous rowCOMMENT
LOWpython/pyspark/shell.py56 # Check if th eprogress bar needs to be disabled.COMMENT
LOWpython/pyspark/pipelines/cli.py74 # Check if it's a simple file path (no wildcards at all)COMMENT
LOWpython/pyspark/pipelines/cli.py78 # Check if it's a folder path ending with /**COMMENT
LOWpython/pyspark/pandas/frame.py12670 # Check if DataFrame has rows - if yes, raise error; if no, return empty SeriesCOMMENT
LOWpython/pyspark/pandas/frame.py12805 # Check if DataFrame has rows - if yes, raise error; if no, return empty SeriesCOMMENT
LOWpython/pyspark/pandas/data_type_ops/categorical_ops.py116 # Check if categoricals have the same dtype, same categories, and same orderedCOMMENT
LOWpython/pyspark/pandas/typedef/typehints.py648 # Check if the name is Tuple.COMMENT
LOWpython/pyspark/pandas/indexes/base.py2068 # Check if the `self` and `other` have different index types.COMMENT
LOWpython/pyspark/sql/metrics.py188 # Add yourself to the list if you have to.COMMENT
LOWpython/pyspark/sql/dataframe.py409 >>> # Check if the DataFrames are equalSTRING
LOWpython/pyspark/sql/session.py2279 # Check if the target path already existsCOMMENT
LOWpython/pyspark/sql/types.py3146 >>> # Check if numeric values are within the allowed range.STRING
LOWpython/pyspark/sql/tests/test_utils.py1731 # Check if the error message contains information about 2 mismatches only.COMMENT
LOWpython/pyspark/sql/tests/arrow/test_arrow_map.py329 # Set it to a small odd value to exercise batching logic for all test casesCOMMENT
LOWpython/pyspark/sql/tests/pandas/bench_pipelined_udf.py93# Output results as JSON to stdoutCOMMENT
LOW…s/pandas/streaming/test_pandas_transform_with_state.py1436 # Set it to a very small number so that every row would be a separate pandas dfCOMMENT
LOW…s/pandas/streaming/test_pandas_transform_with_state.py1463 # Set it to a very large number so that every row would be in the same pandas dfCOMMENT
LOW…s/pandas/streaming/test_pandas_transform_with_state.py1529 # Set it to a very small number so that every row would be a separate pandas dfCOMMENT
LOW…/pyspark/sql/tests/pandas/streaming/test_tws_tester.py751 # Set watermark to 15000 - key1's timer should fire.COMMENT
LOW…/pyspark/sql/tests/pandas/streaming/test_tws_tester.py756 # Set watermark to 16000 - key2's timer should fire.COMMENT
LOW…/pyspark/sql/tests/pandas/streaming/test_tws_tester.py790 # Set watermark to 6000.COMMENT
LOW…/pyspark/sql/tests/pandas/streaming/test_tws_tester.py821 # Set watermark to 20 seconds.COMMENT
LOW…/pyspark/sql/tests/pandas/streaming/test_tws_tester.py923 # Set watermark to 10000.COMMENT
LOWpython/pyspark/sql/streaming/readwriter.py1550 # Check if the data should be processedSTRING
LOWpython/pyspark/sql/worker/plan_data_source_read.py154 # Check if the names are the same as the schema.COMMENT
LOWpython/pyspark/sql/worker/create_data_source.py81 # Check if the provider name matches the data source's name.COMMENT
LOWpython/pyspark/sql/worker/write_into_data_source.py97 # Check if the provider name matches the data source's name.COMMENT
LOWpython/pyspark/sql/connect/session.py1121 # Check if total size exceeds the limitCOMMENT
LOWpython/pyspark/sql/connect/session.py1131 # Check if adding this chunk would exceed batch sizeCOMMENT
LOWpython/pyspark/sql/connect/client/artifact.py199 # Check if it is a file from the schemeCOMMENT
LOWpython/pyspark/sql/pandas/serializers.py1093 # Check if the entire column is nullCOMMENT
LOWpython/pyspark/sql/pandas/serializers.py1336 # Check if the entire column is nullCOMMENT
LOWpython/pyspark/sql/pandas/conversion.py889 # Check if any columns need to be fixed for Spark to infer properlyCOMMENT
LOWpython/pyspark/sql/pandas/typehints.py69 # Check if all arguments have type hintsCOMMENT
LOWpython/pyspark/sql/pandas/typehints.py79 # Check if the return has a type hintCOMMENT
LOWpython/pyspark/sql/pandas/typehints.py228 # Check if all arguments have type hintsCOMMENT
LOWpython/pyspark/sql/pandas/typehints.py238 # Check if the return has a type hintCOMMENT
LOWpython/pyspark/sql/pandas/typehints.py421 # Check if all arguments have type hintsCOMMENT
LOWpython/pyspark/sql/pandas/typehints.py431 # Check if the return has a type hintCOMMENT
LOWpython/pyspark/sql/pandas/typehints.py514 # Check if all arguments have type hintsCOMMENT
LOWpython/pyspark/sql/pandas/typehints.py524 # Check if the return has a type hintCOMMENT
LOWpython/pyspark/sql/pandas/typehints.py600 # Check if the name is Tuple first. After that, check the generic types.COMMENT
LOWsbin/spark-daemon.sh50# Check if --config is passed as an argument. It is an optional parameter.COMMENT
LOWsbin/spark-daemon.sh154 # Check if the process has died; in that case we'll tail the log so the user can seeCOMMENT
LOWsbin/decommission-worker.sh48# Check if --block-until-exit is set.COMMENT
LOWsbin/workers.sh57# Check if --config is passed as an argument. It is an optional parameter.COMMENT
LOW…l/src/test/scala/org/apache/spark/repl/ReplSuite.scala254 |# Set everything to be logged to the consoleSTRING
LOWR/pkg/tests/fulltests/test_jvm_api.R26 # Check if get returns the same elementCOMMENT
LOWR/pkg/R/sparkR.R456 # Check if version number of SparkSession matches version number of SparkR packageCOMMENT
LOWR/pkg/R/serialize.R45 # Check if all elements are of same typeCOMMENT
LOWR/pkg/R/jobj.R31# Check if jobj was created with the current SparkContextCOMMENT
LOWR/pkg/R/DataFrame.R386 # Check if the column names have . in itCOMMENT
LOWR/pkg/R/DataFrame.R2282 # Check if there is any duplicated column name in the DataFrameCOMMENT
LOWR/pkg/inst/worker/worker.R97# Set libPaths to include SparkR package as loadNamespace needs thisCOMMENT
LOW.github/workflows/build_and_test.yml1361 # Print the values of environment variables `SKIP_ERRORDOC`, `SKIP_SCALADOC`, `SKIP_PYTHONDOC`, `SKIP_RDOC` and COMMENT
LOW.github/workflows/build_and_test.yml1385 # Print the values of environment variables `SKIP_ERRORDOC`, `SKIP_SCALADOC`, `SKIP_PYTHONDOC`, `SKIP_RDOC` and COMMENT
LOW.github/workflows/build_and_test.yml1409 # Print the values of environment variables `SKIP_ERRORDOC`, `SKIP_SCALADOC`, `SKIP_PYTHONDOC`, `SKIP_RDOC` and COMMENT
4 more matches not shown…
Fake / Example Data99 hits · 83 pts
SeverityFileLineSnippetContext
LOW…es/org/apache/spark/ui/static/jquery.dataTables.min.js4!function(n){"use strict";var a;"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,window,doCODE
LOWpython/pyspark/sql/tests/test_stat.py316 dummy_value = 1CODE
LOWpython/pyspark/sql/tests/test_stat.py319 .replace({"Alice": "Bob"}, dummy_value)CODE
LOW…hon/pyspark/sql/tests/pandas/test_pandas_udf_scalar.py1110 .withColumn("name", lit("John Doe"))CODE
LOWpython/pyspark/sql/pandas/functions.py109 >>> df = spark.createDataFrame([("John Doe",)], ("name",))STRING
LOWpython/pyspark/sql/pandas/functions.py124 >>> df = spark.createDataFrame([("John Doe",)], ("name",))STRING
LOWpython/pyspark/sql/pandas/functions.py506 >>> df = spark.createDataFrame([("John Doe",)], ("name",))STRING
LOWpython/pyspark/sql/pandas/functions.py518 >>> df = spark.createDataFrame([("John Doe",)], ("name",))STRING
LOW…apache/spark/graphx/lib/ConnectedComponentsSuite.scala119 val defaultUser = ("John Doe", "Missing")CODE
LOWdocs/graphx-programming-guide.md193val defaultUser = ("John Doe", "Missing")CODE
LOWdocs/graphx-programming-guide.md432val defaultUser = ("John Doe", "Missing")CODE
LOWexamples/src/main/python/sql/arrow.py308 df = spark.createDataFrame([(1, "John Doe", 21)], ("id", "name", "age"))CODE
LOW…s/test-data/xml-resources/mixed_children_as_string.xml4 Lorem ipsum dolor sit amet. Ut <i>voluptas</i> distinctio et impedit deserunt aut quam fugit et quaerat oditCODE
LOW…s/test-data/xml-resources/mixed_children_as_string.xml4 Lorem ipsum dolor sit amet. Ut <i>voluptas</i> distinctio et impedit deserunt aut quam fugit et quaerat oditCODE
LOW…/test/resources/test-data/xml-resources/processing.xml4 lorem ipsumCODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql150INSERT INTO products VALUES (1, 'Super Widget', 'Electronics', 155.99, 99.99, 1, 'Acme Inc', 'John D.', '123 Main St', 2CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql150INSERT INTO products VALUES (1, 'Super Widget', 'Electronics', 155.99, 99.99, 1, 'Acme Inc', 'John D.', '123 Main St', 2CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql154INSERT INTO customers VALUES (1, 'Alice Johnson', 'alice@example.com', '555-1000', '101 Maple Ave', NULL, 'Springfield',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql155INSERT INTO customers VALUES (2, 'Bob Smith', 'bob@example.com', '555-1002', '202 Oak St', 'Apt 3', 'Oakville', 'CA', '6CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql156INSERT INTO customers VALUES (3, 'Cathy Lee', 'cathy@example.com', '555-1003', '303 Pine Ln', NULL, 'Pineville', 'TX', 'CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql166INSERT INTO employees VALUES (1, 'Dan Miller', 'dan@example.com', '555-2001', 'Manager', 'Sales', TIMESTAMP '2018-01-01'CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql167INSERT INTO employees VALUES (2, 'Eva Perez', 'eva@example.com', '555-2002', 'Salesperson', 'Sales', TIMESTAMP '2019-03-CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql168INSERT INTO employees VALUES (3, 'Frank Wong', 'frank@example.com', '555-2003', 'Warehouse', 'Operations', TIMESTAMP '20CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql170INSERT INTO suppliers VALUES (1, 'Acme Inc', 'John D.', 'Sales Manager', 'john@acme.com', '555-3001', '555-3002', '123 MCODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql170INSERT INTO suppliers VALUES (1, 'Acme Inc', 'John D.', 'Sales Manager', 'john@acme.com', '555-3001', '555-3002', '123 MCODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql170INSERT INTO suppliers VALUES (1, 'Acme Inc', 'John D.', 'Sales Manager', 'john@acme.com', '555-3001', '555-3002', '123 MCODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql171INSERT INTO suppliers VALUES (2, 'Widgets Co', 'Mary K.', 'Customer Success', 'mary@widgets.com', '555-4001', NULL, '456CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql172INSERT INTO suppliers VALUES (3, 'Toy Supply', 'Ann T.', 'Director', 'ann@toysupply.com', '555-5001', NULL, '789 Oak St'CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql212 INSERT INTO suppliers VALUES (v_temp_id, 'Temp Supplier', 'Temp Contact', 'Temp Role', 'tempCODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql260 INSERT INTO customers VALUES (v_new_customer_id, 'New Customer', 'new@customer.com', '555-1111', '55CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql393 VALUES (sub_emp.employee_id + 9999, v_name_part, CONCAT(v_name_part, '@company.com')CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql405 VALUES (emp.employee_id + 10000, CONCAT('Emp_', emp.employee_id), emp.employee_name, 'EmployCODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql474 INSERT INTO products VALUES ((SELECT COALESCE(MAX(product_id), 0) + 1 FROM products), 'Rare ' || v_mCODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql519 '555-1212',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql552 '555-1111',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql553 '123 Main St',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql727 '555-7777',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql918 INSERT INTO employees VALUES (v_new_id, 'New Emp ' || v_new_id, 'new' || v_new_id || '@cCODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql930 INSERT INTO employees VALUES (v_temp_id, 'Manager ' || v_temp_id, 'manager' || v_temp_id || '@companCODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql941 INSERT INTO employees VALUES (v_low_level_emp + 10, 'Temp Emp ' || v_low_level_emp, 'temp' || v_low_level_emCODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql982 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql983 '123 Main St',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql1097 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql1169 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql1417 '123 Main St',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql1444 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql1491 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql1528 '555-0001',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql1556 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql1763 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql2072 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql2275 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql2582 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql2615 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql2788 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql2866 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql3112 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql3223 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql3253 '555-0000',CODE
LOW…-tests/inputs/scripting/randomly_generated_scripts.sql3282 '555-0000',CODE
39 more matches not shown…
Slop Phrases14 hits · 22 pts
SeverityFileLineSnippetContext
LOW…/main/java/org/apache/spark/SparkFirehoseListener.java27 * This is a concrete Java class in order to ensure that we don't forget to update it when addingCOMMENT
MEDIUM…/org/apache/spark/storage/BlockReplicationPolicy.scala101 * Method to prioritize a bunch of candidate peers of a block. This is a basic implementation,COMMENT
LOWpython/packaging/classic/setup.py158# Also don't forget to update python/docs/source/getting_started/install.rst,COMMENT
LOWpython/packaging/classic/setup.py158# Also don't forget to update python/docs/source/getting_started/install.rst,COMMENT
LOWpython/packaging/classic/setup.py358 # Don't forget to update python/docs/source/getting_started/install.rstCOMMENT
LOWpython/packaging/connect/setup.py87 # Also don't forget to update python/docs/source/getting_started/install.rst,COMMENT
LOWpython/packaging/connect/setup.py87 # Also don't forget to update python/docs/source/getting_started/install.rst,COMMENT
LOWpython/packaging/connect/setup.py117 # Don't forget to update python/docs/source/getting_started/install.rstCOMMENT
LOWpython/packaging/client/setup.py134 # Also don't forget to update python/docs/source/getting_started/install.rst,COMMENT
LOWpython/packaging/client/setup.py134 # Also don't forget to update python/docs/source/getting_started/install.rst,COMMENT
LOWpython/packaging/client/setup.py210 # Don't forget to update python/docs/source/getting_started/install.rstCOMMENT
LOWpython/pyspark/pandas/config.py114# NOTE: if you are fixing or adding an option here, make sure you execute `show_options()` andCOMMENT
LOWdev/create-release/release-build.sh774 # NOTE: Don't forget to update the valid combinations of distributions atCOMMENT
LOW…/main/scala/org/apache/spark/sql/connect/Dataset.scala146 // Make sure we don't forget to set plan id.COMMENT
TODO Padding11 hits · 16 pts
SeverityFileLineSnippetContext
LOWpython/pyspark/pandas/groupby.py2192 # TODO: implement 'dropna' parameterCOMMENT
LOW…he/spark/ml/classification/JavaGBTClassifierSuite.java71 // TODO: Add test once save/load are implemented. SPARK-6725COMMENT
LOW…ml/classification/JavaDecisionTreeClassifierSuite.java66 // TODO: Add test once save/load are implemented. SPARK-6725COMMENT
LOW…ml/classification/JavaRandomForestClassifierSuite.java90 // TODO: Add test once save/load are implemented. SPARK-6725COMMENT
LOW…park/ml/regression/JavaDecisionTreeRegressorSuite.java68 // TODO: Add test once save/load are implemented. SPARK-6725COMMENT
LOW…park/ml/regression/JavaRandomForestRegressorSuite.java92 // TODO: Add test once save/load are implemented. SPARK-6725COMMENT
LOW…/apache/spark/ml/regression/JavaGBTRegressorSuite.java72 // TODO: Add test once save/load are implemented. SPARK-6725COMMENT
LOW…/scala/org/apache/spark/ml/tree/impl/BaggedPoint.scala66 // TODO: implement weighted bootstrappingCOMMENT
LOW…rk/sql/execution/datasources/v2/FileDataSourceV2.scala101 // TODO: implement a light-weight partition inference which only looks at the path of one leafCOMMENT
LOW…yst/expressions/aggregate/datasketchesAggregates.scala152 // TODO: implement support for decimal/datetime/interval typesSTRING
LOW…che/spark/sql/hive/execution/InsertIntoHiveTable.scala121 // TODO: implement hive compatibility as rules.COMMENT
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHpython/pyspark/sql/tests/connect/test_connect_basic.py1644 # In this example, the max chunk size is set to a small value, so each ArrowCOMMENT
HIGH…cala/org/apache/spark/sql/connector/catalog/txns.scala187 // This is where the table pinning logic should occur. In this implementation, a tables is loadedCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpython/pyspark/testing/sqlutils.py115 Read the classpath file for a project and return it as a comma-separated string. The classpath file is typicalSTRING
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…la/org/apache/spark/sql/FileBasedDataSourceSuite.scala1472 // Embed the nanos leaf inside a struct, an array, and a map value. The guardrailsCOMMENT
Synthetic Comment Markers1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHpython/pyspark/ml/dl_util.py103 the empty string, nothing will be written after the auto-generated code.STRING