AI Slop Code Risk Monitor

scala/scala

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

Scala 2 compiler and standard library. Scala 2 bugs at https://github.com/scala/bug; Scala 3 at https://github.com/scala/scala3

2.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for scala/scala, a Scala project with 14,533 GitHub stars. SynthScan examined 676,868 lines of code across 10144 source files, recording 667 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 2.0 (Low pattern signal); it is not an authorship estimate.

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

2.0
Adjusted Signal
2.0
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
14.5K
Stars
Scala
Language
676.9K
Lines of Code
10.1K
Files
667
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

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

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

Cognitive Ownership Risk 4.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 3.6/100 · LOW

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

Agent Over-Engineering Ratio 2.4/100 · LOW

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

PR Review Velocity Impact 9.9/100 · LOW

Which changes need focused human review? 667 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 48HIGH 60MEDIUM 9LOW 550

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 667 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Hallucination Indicators48 hits · 495 pts
SeverityFileLineSnippetContext
CRITICALtest/scaladoc/resources/simulacrum_1.scala8 if (annottees.head.tree.getClass.getName.contains("DocDef")) c.abort(c.enclosingPosition, "annottee is a DocDef")CODE
CRITICALtest/scaladoc/run/t11424.scala22 obj.comment.get.body.blocks.foreach({STRING
CRITICALtest/scaladoc/run/implicits-var-exp.scala51 assert(foo.comment.get.body.toString.contains("foo returns a collection"), "\"" + foo.comment.get.body.toString + "\STRING
CRITICALtest/scaladoc/run/implicits-var-exp.scala54 assert(bar.comment.get.body.toString.contains("bar returns a result"), "\"" + bar.comment.get.body.toString + "\".coSTRING
CRITICAL⚡test/junit/scala/tools/nsc/util/StackTraceTest.scala87 at scala.tools.nsc.util.StackTraceTest.repressed(StackTraceTest.scala:56)CODE
CRITICAL⚡test/junit/scala/tools/nsc/util/StackTraceTest.scala90 at scala.tools.nsc.util.StackTraceTest.sample(StackTraceTest.scala:29)CODE
CRITICAL⚡test/junit/scala/tools/nsc/util/StackTraceTest.scala91 at scala.tools.nsc.util.StackTraceTest.repressed(StackTraceTest.scala:54)CODE
CRITICAL…/scala/tools/nsc/async/AnnotationDrivenAsyncTest.scala449 |val awaitable$async: scala.tools.nsc.async.CustomFuture = scala.tools.nsc.async.CustomFuture._successful(scSTRING
CRITICAL…/scala/tools/nsc/async/AnnotationDrivenAsyncTest.scala459 |val awaitable$async: scala.tools.nsc.async.CustomFuture = scala.tools.nsc.async.CustomFuture._successful(scSTRING
CRITICAL…cala/tools/nsc/backend/jvm/OptimizedBytecodeTest.scala187 // at scala.tools.nsc.symtab.classfile.ClassfileParser.classNameToSymbol(ClassfileParser.scala:489)COMMENT
CRITICAL…unit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala26 val inlineOnly = global.settings.optChoices.inlineFrom.expandsTo.map(c => s"-${c.name}").mkString("-opt:inline:** -optCODE
CRITICAL…la/tools/nsc/backend/jvm/opt/UnreachableCodeTest.scala27 dceCompiler.global.genBCode.postProcessor.localOpt.removeUnreachableCodeImpl(method, "C")CODE
CRITICAL…/tools/nsc/backend/jvm/opt/BoxUnboxAndInlineTest.scala85 val changed = compiler.global.genBCode.postProcessor.localOpt.boxUnbox.boxUnboxElimination(method, "p1.Owner")CODE
CRITICALtest/files/pos/t6084.scala12 // at scala.tools.nsc.ast.TreeGen.mkCast(TreeGen.scala:252)COMMENT
CRITICALtest/files/pos/t8855b.scala16 at scala.tools.nsc.typechecker.Contexts.registerImport(Contexts.scala:93)CODE
CRITICALtest/files/run/mixin-signatures.scala83 // scala.tools.nsc.symtab.Flags.flagsToString(flags)COMMENT
CRITICALtest/files/run/substSymRefinementOwner.scala17 |g.tpe.resultType.typeSymbol.ownerChain.take(4)STRING
CRITICALtest/files/run/t12705.scala16 at scala.reflect.internal.util.AbstractFileClassLoader.findClass(AbstractFileClassLoader.scala:77)CODE
CRITICALtest/files/run/t4415.scala6 * at com.intellij.rt.execution.application.AppMain.main(AppMain.java)]COMMENT
CRITICALtest/files/run/reflection-implicit.scala12 val decls = typeOf[C].typeSymbol.info.decls.sorted.toList.filter(sym => !sym.isTerm || (sym.isMethod && !sym.asMethod.CODE
CRITICAL…les/run/indy-via-macro-with-dynamic-args/macro_1.scala30 q"_root_.java.util.regex.Pattern.compile($pat).matcher($text)"CODE
CRITICALtest/files/run/indy-via-macro/macro_1.scala29 q"_root_.java.util.regex.Pattern.compile($s)"CODE
CRITICALtest/files/run/t10454-1/Macros_1.scala15 tT.tpe.typeSymbol.asClass.knownDirectSubclasses.map(_.toString).toListCODE
CRITICALtest/files/run/t10454-2/Macros_1.scala15 tT.tpe.typeSymbol.asClass.knownDirectSubclasses.map(_.toString).toListCODE
CRITICALsrc/partest/scala/tools/partest/package.scala76 def withEnclosing: String = f.toPath.iterator.asScala.toList.takeRight(2).mkString("/")CODE
CRITICAL…scala/tools/partest/async/CompletableFutureAwait.scala35 final class $name extends _root_.scala.tools.partest.async.CompletableFutureStateMachine($executor) {CODE
CRITICAL…flect/scala/reflect/internal/pickling/ByteCodecs.scala226 * scala> val enc = scala.reflect.internal.pickling.ByteCodecs.encode(Array(1,2,3))COMMENT
CRITICAL…flect/scala/reflect/internal/pickling/ByteCodecs.scala229 * scala> scala.reflect.internal.pickling.ByteCodecs.decode(enc)COMMENT
CRITICALsrc/reflect/scala/reflect/internal/util/Origins.scala39 6860 scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:304)CODE
CRITICALsrc/library/scala/collection/BitSet.scala133 val st = scala.collection.convert.impl.BitSetStepper.from(this)CODE
CRITICALsrc/library/scala/collection/concurrent/TrieMap.scala547 java.util.concurrent.ThreadLocalRandom.current.nextInt(0, array.length)CODE
CRITICALsrc/testkit/scala/tools/testkit/BytecodeTesting.scala65 def compiledClassesFromCache = global.genBCode.postProcessor.byteCodeRepository.compilingClasses.valuesIterator.map(_.CODE
CRITICALsrc/testkit/scala/tools/testkit/async/Async.scala36 final class $name extends _root_.scala.tools.testkit.async.AsyncAsMacroStateMachine($executionContext) {CODE
CRITICAL…ols/scalap/scalax/rules/scalasig/ScalaSigPrinter.scala125 if (c.name == "<local child>" /*scala.tools.nsc.symtab.StdNames.LOCAL_CHILD.toString()*/ ) {CODE
CRITICALsrc/compiler/scala/tools/reflect/ToolBoxFactory.scala66 newTermName("__wrapper$" + wrapCount + "$" + java.util.UUID.randomUUID.toString.replace("-", ""))CODE
CRITICALsrc/compiler/scala/tools/nsc/PipelineMain.scala365 def outputDir: Path = command.settings.outputDirs.getSingleOutput.get.file.toPath.toAbsolutePath.normalize()CODE
CRITICALsrc/compiler/scala/tools/nsc/PipelineMain.scala410 command.settings.outputDirs.getSingleOutput.get.file.mkdirs()CODE
CRITICAL…piler/scala/tools/nsc/classpath/ClassPathFactory.scala53 if (useManifestClassPath) scala.tools.nsc.util.ClassPath.manifests.map(url => newClassPath(AbstractFile getResourcesCODE
CRITICALsrc/compiler/scala/tools/nsc/backend/jvm/BTypes.scala671 if (isNested) info.get.nestedInfo.force.get.enclosingClass.enclosingNestedClassesChain.map(this :: _)CODE
CRITICAL…ler/scala/tools/nsc/backend/jvm/BCodeSkelBuilder.scala670 if (settings.isDebug) "(found: " + methSymbol.owner.info.decls.toList.mkString(", ") + ")"CODE
CRITICAL…cala/tools/nsc/backend/jvm/opt/InlinerHeuristics.scala294 val cp = com.google.common.reflect.ClassPath.from(l)CODE
CRITICAL…mpiler/scala/tools/nsc/backend/jvm/opt/CallGraph.scala320 calleeDeclarationClassBType.info.orThrow.inlineInfo.methodInfos.get(methodSignature) match {CODE
CRITICAL…mpiler/scala/tools/nsc/backend/jvm/opt/CallGraph.scala351 val warning = calleeDeclarationClassBType.info.orThrow.inlineInfo.warning.map(CODE
CRITICAL…compiler/scala/tools/nsc/backend/jvm/opt/Inliner.scala652 methodNode.instructions.iterator.asScala.toList.foreach(methodNode.instructions.remove)CODE
CRITICALsrc/compiler/scala/tools/nsc/transform/UnCurry.scala843 val isRepeated = enteringUncurry(dd.symbol.info.paramss.flatten.map(sym => definitions.isRepeatedParamType(sym.tpeCODE
CRITICAL…c/compiler/scala/tools/nsc/typechecker/RefChecks.scala1769 !sym.tpe.finalResultType.typeSymbol.primaryConstructor.isLessAccessibleThan(sym)CODE
CRITICALsrc/compiler/scala/tools/nsc/typechecker/Typers.scala2398 i.symbol.primaryConstructor.paramss.headOption.getOrElse(Nil).zip(i.args).foreach {CODE
CRITICAL…rontend/scala/tools/nsc/interpreter/jline/Reader.scala181 try scala.reflect.internal.util.OwnerOnlyChmod.chmodFileOrCreateEmpty(p)CODE
Over-Commented Block462 hits · 382 pts
SeverityFileLineSnippetContext
LOWtest/macro-annot/pos/companion-symbol-of/A.scala1// upd. oops, this is was a neg test in scala/scala, so we can't put it here :)COMMENT
LOWtest/macro-annot/pos/companion-symbol-of/A.scala21// // field before it is set.COMMENT
LOWtest/macro-annot/pos/companion-symbol-of/A.scala41// F.hof(() => x)COMMENT
LOWtest/macro-annot/pos/companion-symbol-of/A.scala61// def x = "".toStringCOMMENT
LOWtest/macro-annot/pos/companion-symbol-of/A.scala81// })COMMENT
LOWtest/macro-annot/pos/companion-symbol-of/A.scala101// }COMMENT
LOWtest/macro-annot/pos/companion-symbol-of/A.scala121// val early = {def x = "".toStringCOMMENT
LOWtest/macro-annot/run/kase/KasePlaceboObject_2.scala21COMMENT
LOWtest/macro-annot/run/kase/KaseIdentityObject_2.scala21COMMENT
LOWtest/macro-annot/run/kase/KaseObject_2.scala21 // @kase object KaseObjectPreMemberPrecompCOMMENT
LOWtest/macro-annot/run/repl/repl_2.scala21 // assertEquals(repl("""COMMENT
LOWtest/macro-annot/run/repl/repl_2.scala41 // val printout = repl("""COMMENT
LOWtest/macro-annot/run/repl/repl_2.scala61 // | }COMMENT
LOWtest/junit/scala/collection/BuildFromTest.scala201 // Check that we don't get an implicit divergence in a futile part of the search tree:COMMENT
LOWtest/junit/scala/collection/BuildFromTest.scala221 //COMMENT
LOWtest/junit/scala/collection/NewBuilderTest.scala101 // points to an inherited `GenericCompanion`, not the actual companion object). Therefore, theCOMMENT
LOWtest/junit/scala/collection/NewBuilderTest.scala121 //test[scm.BitSet ]((scm.BitSet(1): sc.GenTraversable[Int]).map(x => x))COMMENT
LOWtest/junit/scala/collection/NewBuilderTest.scala141 //test[scm.SortedMap[_, _] ]((scm.SortedMap(1 -> 1): sc.GenMap[Int, Int]).map(x => x))COMMENT
LOW…/junit/scala/tools/nsc/backend/jvm/IndySammyTest.scala61// val cls = compileClasses("trait Special[@specialized A] { def apply(a: A): A}" )COMMENT
LOW…/junit/scala/tools/nsc/backend/jvm/IndySammyTest.scala121 // def lam = (x => new VC(x.asInstanceOf[Int])): FunAny_VCCOMMENT
LOW…unit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala241 val List(fIns, gIns, hIns) = methods.map(instructionsFromMethod(_).dropNonOp)COMMENT
LOW…unit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala561 // def g = f // resolved to T2a.fCOMMENT
LOW…unit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala1981 // - withFilter: probably nothing can be done hereCOMMENT
LOW…la/tools/nsc/backend/jvm/opt/UnreachableCodeTest.scala121 // GenBCode puts the last IRETURN into a new basic block: it emits a label before the secondCOMMENT
LOW…ools/nsc/backend/jvm/opt/BTypesFromClassfileTest.scala61 // are actually created by looking at the classfile members, not the symbol's. InlineInfos are onlyCOMMENT
LOWtest/async/jvm/toughtype.scala141 //COMMENT
LOWtest/async/jvm/anf.scala401// | import language.implicitConversionsCOMMENT
LOW…lacheck/scala/tools/nsc/scaladoc/HtmlFactoryTest.scala201 // property("Trac #484 - refinements and existentials") = {COMMENT
LOWtest/files/neg/t5189b.scala41 class Wrapped[W](var cell: W) // must be invariant (to trigger the bug)COMMENT
LOWtest/files/neg/t5189b.scala61// case class Span[K <: Ordered[K]](low: Option[K], high: Option[K]) extends Function1[K, Boolean] {COMMENT
LOWtest/files/neg/equiv-migration.scala1//> using options -Werror -XmigrationCOMMENT
LOWtest/files/neg/t8372.scala1class t8372 {COMMENT
LOWtest/files/neg/predef-masking.scala1// Testing predef maskingCOMMENT
LOWtest/files/neg/t10545.scala21COMMENT
LOWtest/files/neg/t11952.scala1//> using options -Werror -Xlint -Xmaxwarns 0COMMENT
LOWtest/files/neg/t5762.scala1//> using options -Xfatal-warningsCOMMENT
LOWtest/files/neg/tcpoly_ticket2101.scala1class T[A[Y] <: T[A, B], B]COMMENT
LOWtest/files/neg/tcpoly_ticket2101.scala21// case (PolyType(tparams1, res1), PolyType(tparams2, res2)) => println("<:<PT: "+((tparams1, res1), (tparams2, res2))) COMMENT
LOWtest/files/neg/sip23-widen.scala61 //f13: 4COMMENT
LOWtest/files/neg/t6771b.scala1// Currently, the pattern matcher widens the type of theCOMMENT
LOWtest/files/neg/t7214neg.scala1// pattern matcher crashes here trying to synthesize an unneeded outer test.COMMENT
LOWtest/files/neg/early-type-defs.scala1//COMMENT
LOWtest/files/neg/t0764b.scala1// see neg/t0764 why this should probably be a pos/ test -- alas something's wrong with existential subtyping (?)COMMENT
LOWtest/files/neg/t3346c.scala61 // https://github.com/scala/bug/issues/3346COMMENT
LOWtest/files/neg/t2509-7b.scala21COMMENT
LOWtest/files/neg/t7622-missing-required.scala1//> using options -Xplugin-require:special-pluginCOMMENT
LOWtest/files/neg/literate_existentials.scala1COMMENT
LOWtest/files/neg/literate_existentials.scala21// Since we are not a formal substitution system, we will actually be usingCOMMENT
LOWtest/files/neg/literate_existentials.scala41//COMMENT
LOWtest/files/neg/literate_existentials.scala61// which means (under our mappings):COMMENT
LOWtest/files/neg/literate_existentials.scala81//COMMENT
LOWtest/files/neg/literate_existentials.scala101// Now, let's do a more complicated one:COMMENT
LOWtest/files/neg/literate_existentials.scala121// V2 <: List[V1]COMMENT
LOWtest/files/neg/literate_existentials.scala141// Which simplify to:COMMENT
LOWtest/files/neg/literate_existentials.scala161 ]COMMENT
LOWtest/files/neg/literate_existentials.scala181//COMMENT
LOWtest/files/neg/literate_existentials.scala201// L1 := NothingCOMMENT
LOWtest/files/neg/t8430.scala21 val f4 = (tree: Tree) => tree match {case LetL(CharLit) => ??? }COMMENT
LOWtest/files/neg/deprecated-options.scala1//COMMENT
LOWtest/files/neg/t12134/sample_2.scala1//> using options -Xplugin:. -Xplugin-require:unplugged -d testy.jarCOMMENT
402 more matches not shown…
Cross-File Repetition49 hits · 245 pts
SeverityFileLineSnippetContext
HIGHtest/junit/scala/tools/nsc/DeterminismTest.scala0)} } new $name().start().asinstanceof[${c.macroapplication.tpe}]STRING
HIGH…scala/tools/partest/async/CompletableFutureAwait.scala0)} } new $name().start().asinstanceof[${c.macroapplication.tpe}]STRING
HIGHsrc/partest/scala/tools/partest/async/OutputAwait.scala0)} } new $name().start().asinstanceof[${c.macroapplication.tpe}]STRING
HIGHsrc/partest/scala/tools/partest/async/OptionDsl.scala0)} } new $name().start().asinstanceof[${c.macroapplication.tpe}]STRING
HIGHsrc/testkit/scala/tools/testkit/async/Async.scala0)} } new $name().start().asinstanceof[${c.macroapplication.tpe}]STRING
HIGH…unit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala0|public class a { | public static final int bar() { return 100; } | public final int baz() { return 100; } |}STRING
HIGH…t/scala/tools/nsc/backend/jvm/opt/InlineInfoTest.scala0|public class a { | public static final int bar() { return 100; } | public final int baz() { return 100; } |}STRING
HIGH…cala/tools/nsc/backend/jvm/opt/InlineWarningTest.scala0|public class a { | public static final int bar() { return 100; } | public final int baz() { return 100; } |}STRING
HIGH…s/neg/macro-bundle-whitebox-use-refined/Macros_1.scala0class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x)STRING
HIGH…files/neg/macro-bundle-whitebox-use-raw/Macros_1.scala0class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x)STRING
HIGHtest/files/neg/macro-blackbox-extractor/Macros_1.scala0class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x)STRING
HIGH…s/run/macro-bundle-whitebox-use-refined/Macros_1.scala0class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x)STRING
HIGH…files/run/macro-bundle-whitebox-use-raw/Macros_1.scala0class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x)STRING
HIGHtest/files/run/macro-whitebox-extractor/Macros_1.scala0class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x)STRING
HIGHtest/files/run/t5903d/Macros_1.scala0class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x)STRING
HIGHtest/files/neg/t5903e/Macros_1.scala0class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x)STRING
HIGHtest/files/neg/t5903d/Macros_1.scala0class match(x: int) { def isempty = false def get = x } new { def unapply(x: int) = new match(x) }.unapply($x)STRING
HIGHtest/files/neg/macro-annot-unused-param/Macros_1.scala0object x { def f: int => string = { x => "hello" } }STRING
HIGHtest/files/pos/macro-annot-unused-param/Macros_1.scala0object x { def f: int => string = { x => "hello" } }STRING
HIGH…st/files/pos/macro-annot-unused-param-b/Macros_1.scala0object x { def f: int => string = { x => "hello" } }STRING
HIGHtest/files/neg/t12647/Macro_1.scala0new result { def value = "was this the answer you sought?" }STRING
HIGHtest/files/pos/t12647/Macro_1.scala0new result { def value = "was this the answer you sought?" }STRING
HIGHtest/files/pos/t12647b/Macro_1.scala0new result { def value = "was this the answer you sought?" }STRING
HIGHtest/files/run/StubErrorReturnTypeFunction.scala0package stuberrors abstract class c extends app { val b = new b // use other symbols in the meanwhile val aa = new aa vaSTRING
HIGHtest/files/run/StubErrorReturnTypeFunction2.scala0package stuberrors abstract class c extends app { val b = new b // use other symbols in the meanwhile val aa = new aa vaSTRING
HIGHtest/files/run/StubErrorReturnTypePolyFunction.scala0package stuberrors abstract class c extends app { val b = new b // use other symbols in the meanwhile val aa = new aa vaSTRING
HIGHsrc/library/scala/collection/SortedMap.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/View.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/LinearSeq.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/SortedSet.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/SeqMap.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/SeqView.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/MapView.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/Seq.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/IndexedSeqView.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/BitSet.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/Map.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/IndexedSeq.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/Set.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/mutable/Buffer.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/mutable/Stack.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/mutable/WeakHashMap.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/mutable/HashMap.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGH…c/library/scala/collection/mutable/LinkedHashSet.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/mutable/ListBuffer.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGH…c/library/scala/collection/mutable/LinkedHashMap.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/mutable/ArrayBuffer.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/mutable/Queue.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
HIGHsrc/library/scala/collection/mutable/ArrayDeque.scala0cat=deprecation&origin=scala\.collection\.iterable\.stringprefixSTRING
Synthetic Comment Markers11 hits · 82 pts
SeverityFileLineSnippetContext
HIGHtest/files/run/stream-stack-overflow-filter-map.scala35 //Complete test case for withFilter + map/flatMap, as requested by @axel22.COMMENT
HIGHproject/GenerateAnyVals.scala293// This auto-generated code can be modified in "project/GenerateAnyVals.scala".COMMENT
HIGHsrc/library/scala/Long.scala14// This auto-generated code can be modified in "project/GenerateAnyVals.scala".COMMENT
HIGHsrc/library/scala/Char.scala14// This auto-generated code can be modified in "project/GenerateAnyVals.scala".COMMENT
HIGHsrc/library/scala/Unit.scala14// This auto-generated code can be modified in "project/GenerateAnyVals.scala".COMMENT
HIGHsrc/library/scala/Int.scala14// This auto-generated code can be modified in "project/GenerateAnyVals.scala".COMMENT
HIGHsrc/library/scala/Byte.scala14// This auto-generated code can be modified in "project/GenerateAnyVals.scala".COMMENT
HIGHsrc/library/scala/Double.scala14// This auto-generated code can be modified in "project/GenerateAnyVals.scala".COMMENT
HIGHsrc/library/scala/Short.scala14// This auto-generated code can be modified in "project/GenerateAnyVals.scala".COMMENT
HIGHsrc/library/scala/Boolean.scala14// This auto-generated code can be modified in "project/GenerateAnyVals.scala".COMMENT
HIGHsrc/library/scala/Float.scala14// This auto-generated code can be modified in "project/GenerateAnyVals.scala".COMMENT
Hyper-Verbose Identifiers77 hits · 79 pts
SeverityFileLineSnippetContext
LOWtest/junit/scala/collection/IteratorTest.scala854 def getOrBail: C = seq1.get match {CODE
LOWtest/junit/scala/collection/mutable/HashMapTest.scala13 def getOrElseUpdate_mutationInCallback(): Unit = {CODE
LOW⚡test/junit/scala/collection/mutable/HashMapTest.scala25 def getOrElseUpdate_evalOnce(): Unit = {CODE
LOW⚡test/junit/scala/collection/mutable/HashMapTest.scala33 def getOrElseUpdate_noEval(): Unit = {CODE
LOW⚡test/junit/scala/collection/mutable/HashMapTest.scala39 def getOrElseUpdate_keyIdempotence(): Unit = {CODE
LOW…ala/collection/mutable/CollisionProofHashMapTest.scala13 def getOrElseUpdate_mutationInCallback(): Unit = {CODE
LOW⚡…ala/collection/mutable/CollisionProofHashMapTest.scala25 def getOrElseUpdate_evalOnce(): Unit = {CODE
LOW⚡…ala/collection/mutable/CollisionProofHashMapTest.scala33 def getOrElseUpdate_noEval(): Unit = {CODE
LOW⚡…ala/collection/mutable/CollisionProofHashMapTest.scala39 def getOrElseUpdate_keyIdempotence(): Unit = {CODE
LOWtest/junit/scala/collection/immutable/StreamTest.scala110 def filter_map_properly_lazy_in_tail(): Unit = {CODE
LOW…a/tools/nsc/backend/jvm/opt/ClosureOptimizerTest.scala24 | @inline final def getOrElse[T >: C](f: => T) = if (isEmpty) f else thisSTRING
LOW…a/tools/nsc/backend/jvm/opt/ClosureOptimizerTest.scala38 | @inline final def getOrElse[T >: C](f: => T) = if (isEmpty) f else thisSTRING
LOWtest/junit/scala/util/TryTest.scala45 @Test def getOrElse(): Unit = {CODE
LOW…cala/scala/collection/mutable/AnyRefMapBenchmark.scala54 @Benchmark def getOrElse(bh: Blackhole): Unit = {CODE
LOW…cala/scala/collection/mutable/AnyRefMapBenchmark.scala65 @Benchmark def getOrElseUpdate(bh: Blackhole): Unit = {CODE
LOW…/scala/scala/collection/mutable/HashMapBenchmark.scala66 @Benchmark def getOrElse(bh: Blackhole): Unit = {CODE
LOW…/scala/scala/collection/mutable/HashMapBenchmark.scala77 @Benchmark def getOrElseUpdate(bh: Blackhole): Unit = {CODE
LOW…cala/scala/collection/immutable/HashMapBenchmark.scala73 @Benchmark def getOrElse(bh: Blackhole): Unit = {CODE
LOW…un/macro-typecheck-macrosdisabled/Impls_Macros_1.scala16 def impl_with_macros_disabled(c: Context) = {CODE
LOW…n/macro-typecheck-macrosdisabled2/Impls_Macros_1.scala16 def impl_with_macros_disabled(c: Context) = {CODE
LOW…macro-typecheck-implicitsdisabled/Impls_Macros_1.scala5 def impl_with_implicits_enabled(c: Context) = {CODE
LOW…macro-typecheck-implicitsdisabled/Impls_Macros_1.scala15 def impl_with_implicits_disabled(c: Context) = {CODE
LOWtest/files/presentation/t9238.scala15 def getOrThrow[T](resp: Response[T]) = resp.get match {CODE
LOWsrc/partest/scala/tools/partest/nest/CommandLine.scala100 def getOrElse(arg: String, orElse: => String) = if (isSet(arg)) apply(arg) else orElseCODE
LOWsrc/sbt-bridge/scala/tools/xsbt/ExtractAPI.scala242 private def getAndResetBuffer(): String = {CODE
LOWsrc/reflect/scala/reflect/internal/StdAttachments.scala29 def getAndRemoveAttachment[T: ClassTag]: Option[T] = {CODE
LOWsrc/library/scala/Option.scala200 @inline final def getOrElse[B >: A](default: => B): B =CODE
LOWsrc/library/scala/collection/Map.scala160 def getOrElse[V1 >: V](key: K, default: => V1): V1 = get(key) match {CODE
LOWsrc/library/scala/collection/mutable/LongMap.scala160 override def getOrElse[V1 >: V](key: Long, default: => V1): V1 = {CODE
LOWsrc/library/scala/collection/mutable/LongMap.scala172 override def getOrElseUpdate(key: Long, defaultValue: => V): V = {CODE
LOWsrc/library/scala/collection/mutable/LongMap.scala223 def getOrNull(key: Long): V = {CODE
LOWsrc/library/scala/collection/mutable/HashMap.scala444 override def getOrElse[V1 >: V](key: K, default: => V1): V1 = {CODE
LOWsrc/library/scala/collection/mutable/HashMap.scala455 override def getOrElseUpdate(key: K, defaultValue: => V): V = {CODE
LOW…c/library/scala/collection/mutable/LinkedHashMap.scala118 override def getOrElse[V1 >: V](key: K, default: => V1): V1 = {CODE
LOW…c/library/scala/collection/mutable/LinkedHashMap.scala129 override def getOrElseUpdate(key: K, defaultValue: => V): V = {CODE
LOW…y/scala/collection/mutable/CollisionProofHashMap.scala90 override def getOrElse[V1 >: V](key: K, default: => V1): V1 = {CODE
LOW…y/scala/collection/mutable/CollisionProofHashMap.scala388 override def getOrElseUpdate(key: K, defaultValue: => V): V = {CODE
LOWsrc/library/scala/collection/mutable/AnyRefMap.scala156 override def getOrElse[V1 >: V](key: K, default: => V1): V1 = {CODE
LOWsrc/library/scala/collection/mutable/AnyRefMap.scala161 override def getOrElseUpdate(key: K, defaultValue: => V): V = {CODE
LOWsrc/library/scala/collection/mutable/AnyRefMap.scala200 def getOrNull(key: K): V = {CODE
LOWsrc/library/scala/collection/mutable/Map.scala143 def getOrElseUpdate(key: K, @deprecatedName("op", since="2.13.13") defaultValue: => V): V =CODE
LOWsrc/library/scala/collection/immutable/LongMap.scala294 final override def getOrElse[S >: T](key: Long, default: => S): S = this match {CODE
LOWsrc/library/scala/collection/immutable/SeqMap.scala70 override def getOrElse [V1](key: Any, default: => V1): V1 = defaultCODE
LOWsrc/library/scala/collection/immutable/SeqMap.scala84 override def getOrElse [V1 >: V](key: K, default: => V1): V1 =CODE
LOWsrc/library/scala/collection/immutable/SeqMap.scala113 override def getOrElse [V1 >: V](key: K, default: => V1): V1 =CODE
LOWsrc/library/scala/collection/immutable/SeqMap.scala150 override def getOrElse [V1 >: V](key: K, default: => V1): V1 =CODE
LOWsrc/library/scala/collection/immutable/SeqMap.scala193 override def getOrElse [V1 >: V](key: K, default: => V1): V1 =CODE
LOWsrc/library/scala/collection/immutable/HashMap.scala141 override def getOrElse[V1 >: V](key: K, default: => V1): V1 = {CODE
LOWsrc/library/scala/collection/immutable/HashMap.scala548 def getOrElse[V1 >: V](key: K, originalHash: Int, hash: Int, shift: Int, f: => V1): V1CODE
LOWsrc/library/scala/collection/immutable/HashMap.scala710 def getOrElse[V1 >: V](key: K, originalHash: Int, keyHash: Int, shift: Int, f: => V1): V1 = {CODE
LOWsrc/library/scala/collection/immutable/HashMap.scala1890 def getOrElse[V1 >: V](key: K, originalHash: Int, hash: Int, shift: Int, f: => V1): V1 = {CODE
LOWsrc/library/scala/collection/immutable/HashMap.scala2238 private[immutable] def getOrElse[V0 >: V](key: K, value: V0): V0 =CODE
LOW…/library/scala/collection/immutable/LazyListBase.scala41 def getAndSet(ll: LazyListBase[_], value: AnyRef): AnyRef = u.getAndSet(ll, value)CODE
LOWsrc/library/scala/collection/immutable/IntMap.scala299 final override def getOrElse[S >: T](key: Int, default: => S): S = this match {CODE
LOWsrc/library/scala/collection/immutable/TreeMap.scala129 override def getOrElse[V1 >: V](key: K, default: => V1): V1 = {CODE
LOWsrc/library/scala/collection/immutable/Map.scala246 override def getOrElse [V1](key: Any, default: => V1): V1 = defaultCODE
LOWsrc/library/scala/collection/immutable/Map.scala267 override def getOrElse [V1 >: V](key: K, default: => V1): V1 =CODE
LOWsrc/library/scala/collection/immutable/Map.scala322 override def getOrElse [V1 >: V](key: K, default: => V1): V1 =CODE
LOWsrc/library/scala/collection/immutable/Map.scala424 override def getOrElse [V1 >: V](key: K, default: => V1): V1 =CODE
LOWsrc/library/scala/collection/immutable/Map.scala543 override def getOrElse [V1 >: V](key: K, default: => V1): V1 =CODE
17 more matches not shown…
AI Slop Vocabulary9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMsrc/reflect/scala/reflect/internal/StdNames.scala153 // some types whose companions we utilizeCOMMENT
MEDIUMsrc/reflect/scala/reflect/internal/StdNames.scala165 // some names whose name we utilizeCOMMENT
MEDIUM…scala/tools/nsc/symtab/classfile/ClassfileParser.scala1018 // We want to be robust when annotations are unavailable, so the very leastCOMMENT
MEDIUMsrc/compiler/scala/tools/nsc/transform/Fields.scala571 // could detect it's a bitmap field with something like `sym.name.startsWith(nme.BITMAP_PREFIX)` (or perhaps somethiCOMMENT
MEDIUM…/compiler/scala/tools/nsc/transform/Constructors.scala743 // though we probably first need more robust name manglingCOMMENT
MEDIUMsrc/compiler/scala/tools/nsc/typechecker/Namers.scala1615 // was done in an overly brutal way akin to resetAllAttrs, but now we utilize a resetLocalAttrs-based appCOMMENT
MEDIUM…cala/tools/nsc/typechecker/MacroAnnotationNamers.scala418 // the most robust thing would be to destroy ourselves (us and our companion), but we can't do that at topCOMMENT
MEDIUM…/compiler/scala/reflect/reify/utils/NodePrinters.scala32 // Rolling a full-fledged, robust TreePrinter would be several times more code.COMMENT
MEDIUMsrc/compiler/scala/reflect/reify/codegen/GenUtils.scala30 // reflection would be more robust, but, hey, this is a hot pathCOMMENT
Slop Phrases5 hits · 8 pts
SeverityFileLineSnippetContext
LOWtest/scaladoc/run/t5527.scala60 * Don't forget to dedoc this comment if you refactor to a local.COMMENT
LOWtest/files/run/Course-2002-06.scala247 // Don't forget to close the canvas!COMMENT
LOWsrc/reflect/scala/reflect/internal/Symbols.scala1809 // don't forget to modify the code over there if you modify this methodCOMMENT
LOWsrc/reflect/scala/reflect/internal/Symbols.scala1819 // don't forget to modify the code over there if you modify this methodCOMMENT
LOW…c/interactive/scala/tools/nsc/interactive/Global.scala504 // don't forget to service interrupt requestsCOMMENT
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/reflect/scala/reflect/internal/tpe/GlbLubs.scala110 // Step 1: run through the List with these variables:COMMENT
LOW…/compiler/scala/reflect/quasiquotes/Placeholders.scala29 // Step 1: Transform Scala source with holes into vanilla Scala sourceCOMMENT
LOW…/compiler/scala/reflect/quasiquotes/Placeholders.scala90 // Step 2: Transform vanilla Scala AST into an AST with holesCOMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/reflect/scala/reflect/internal/tpe/GlbLubs.scala110 // Step 1: run through the List with these variables:COMMENT
LOW…/compiler/scala/reflect/quasiquotes/Placeholders.scala29 // Step 1: Transform Scala source with holes into vanilla Scala sourceCOMMENT
LOW…/compiler/scala/reflect/quasiquotes/Placeholders.scala90 // Step 2: Transform vanilla Scala AST into an AST with holesCOMMENT