<commit_before>package app.cash.sqldelight.gradle

import org.gradle.api.file.ConfigurableFileCollection
import org.gradle.api.tasks.Classpath
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.SourceTask
import org.gradle.workers.WorkQueue
import org.gradle.workers.WorkerExecutor
import javax.inject.Inject

/**
 * Common API for interacting with gradle workers
 * in tasks
 */
abstract class SqlDelightWorkerTask : SourceTask() {

  @get:Inject
  internal abstract val workerExecutor: WorkerExecutor

  @get:[InputFiles Classpath]
  internal val classpath: ConfigurableFileCollection = project.objects.fileCollection()

  internal fun workQueue(): WorkQueue =
    workerExecutor.classLoaderIsolation {
      it.classpath.from(classpath)
    }
}<commit_msg>Expose the classpath for SQLDelight tasks<commit_after>package app.cash.sqldelight.gradle

import org.gradle.api.file.ConfigurableFileCollection
import org.gradle.api.tasks.Classpath
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.SourceTask
import org.gradle.workers.WorkQueue
import org.gradle.workers.WorkerExecutor
import javax.inject.Inject

/**
 * Common API for interacting with gradle workers
 * in tasks
 */
abstract class SqlDelightWorkerTask : SourceTask() {

  @get:Inject
  internal abstract val workerExecutor: WorkerExecutor

  @get:[InputFiles Classpath]
  val classpath: ConfigurableFileCollection = project.objects.fileCollection()

  internal fun workQueue(): WorkQueue =
    workerExecutor.classLoaderIsolation {
      it.classpath.from(classpath)
    }
}
{'fraction_non_alphanumeric': 0.0841300191204589, 'fraction_numerical': 0.0, 'mean_word_length': 5.205533596837944, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3441388', 'n_tokens_mistral': 459, 'n_tokens_neox': 435, 'n_words': 100}