<commit_before>package scala.tools.eclipse
package buildmanager
package sbtintegration

import java.io.File
import java.net.{URL, URLClassLoader}
import java.util.zip.{ZipEntry, ZipFile}
import org.eclipse.core.runtime.SubMonitor
import xsbti.{Maybe, Logger, Reporter}
import xsbti.compile._
import sbt.inc.{Analysis, Locate}
import sbt.compiler.{AnalyzingCompiler, IC, CompilerCache}
import sbt.classpath.ClasspathUtilities
import sbt.{ScalaInstance, ClasspathOptions}
import ScalaPlugin.plugin

class SbtInputs(sourceFiles: Seq[File], project: ScalaProject, javaMonitor: SubMonitor, scalaProgress: CompileProgress, cacheFile: File, scalaReporter: Reporter, logger: Logger) extends Inputs[Analysis, AnalyzingCompiler] {
  def setup = new Setup[Analysis] {
    def skip = false
    def definesClass(f: File): DefinesClass = Locator(f)
    def cacheFile = SbtInputs.this.cacheFile
    def cache = CompilerCache.fresh  // May want to explore caching possibilities.

    private val allProjects = project +: project.transitiveDependencies.flatMap(plugin.asScalaProject)
    def analysisMap(f: File): Maybe[Analysis] = 
      if (f.isFile)
        Maybe.just(Analysis.Empty)
      else
        allProjects.find(_.sourceOutputFolders.map(_._2.getLocation.toFile) contains f) map (_.buildManager) match { 
          case Some(sbtManager: EclipseSbtBuildManager) => Maybe.just(sbtManager.latestAnalysis)
          case _ => Maybe.just(Analysis.Empty)
        }
    def progress = Maybe.just(scalaProgress)
    def reporter = scalaReporter
  }
<commit_msg>Pass default incremental compiler options.<commit_after>package scala.tools.eclipse
package buildmanager
package sbtintegration

import java.io.File
import java.net.{URL, URLClassLoader}
import java.util.zip.{ZipEntry, ZipFile}
import org.eclipse.core.runtime.SubMonitor
import xsbti.{Maybe, Logger, Reporter}
import xsbti.compile._
import sbt.inc.{Analysis, Locate}
import sbt.compiler.{AnalyzingCompiler, IC, CompilerCache}
import sbt.classpath.ClasspathUtilities
import sbt.{ScalaInstance, ClasspathOptions}
import ScalaPlugin.plugin
import sbt.inc.IncOptions

class SbtInputs(sourceFiles: Seq[File], project: ScalaProject, javaMonitor: SubMonitor, scalaProgress: CompileProgress, cacheFile: File, scalaReporter: Reporter, logger: Logger) extends Inputs[Analysis, AnalyzingCompiler] {
  def setup = new Setup[Analysis] {
    def skip = false
    def definesClass(f: File): DefinesClass = Locator(f)
    def cacheFile = SbtInputs.this.cacheFile
    def cache = CompilerCache.fresh  // May want to explore caching possibilities.

    private val allProjects = project +: project.transitiveDependencies.flatMap(plugin.asScalaProject)
    def analysisMap(f: File): Maybe[Analysis] = 
      if (f.isFile)
        Maybe.just(Analysis.Empty)
      else
        allProjects.find(_.sourceOutputFolders.map(_._2.getLocation.toFile) contains f) map (_.buildManager) match { 
          case Some(sbtManager: EclipseSbtBuildManager) => Maybe.just(sbtManager.latestAnalysis)
          case _ => Maybe.just(Analysis.Empty)
        }
    def progress = Maybe.just(scalaProgress)
    def reporter = scalaReporter
    override def incrementalCompilerOptions = IncOptions.toStringMap(IncOptions.Default)
  }

{'fraction_non_alphanumeric': 0.09259259259259259, 'fraction_numerical': 0.0006172839506172839, 'mean_word_length': 4.695957820738137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3441268', 'n_tokens_mistral': 981, 'n_tokens_neox': 950, 'n_words': 228}