<commit_before>/* sbt -- Simple Build Tool
 * Copyright 2011  <NAME>
 */
package sbt

	import java.io.File
	import Keys._
	import EvaluateConfigurations.{evaluateConfiguration => evaluate}
	import Configurations.Compile

object Script
{
	lazy val command = 
		Command.command("script") { state =>
			val scriptArg = state.remainingCommands.headOption getOrElse error("No script file specified")
			val script = new File(scriptArg).getAbsoluteFile
			val extracted = Project.extract(state)
				import extracted._

			val eval = session.currentEval()
			val settings = blocks(script).flatMap { block =>
				evaluate(eval, script.getPath, block.lines, currentUnit.imports, block.offset)
			}
			val scriptAsSource = sources in Compile := script :: Nil
			val asScript = scalacOptions ++= Seq("-Xscript", script.getName.stripSuffix(".scala"))
			val logQuiet = (logLevel in Global := Level.Warn) :: (showSuccess in Global := false) :: Nil<commit_msg>fix line number off by one in configuration error messages<commit_after>/* sbt -- Simple Build Tool
 * Copyright 2011  <NAME>
 */
package sbt

	import java.io.File
	import Keys._
	import EvaluateConfigurations.{evaluateConfiguration => evaluate}
	import Configurations.Compile

object Script
{
	lazy val command = 
		Command.command("script") { state =>
			val scriptArg = state.remainingCommands.headOption getOrElse error("No script file specified")
			val script = new File(scriptArg).getAbsoluteFile
			val extracted = Project.extract(state)
				import extracted._

			val eval = session.currentEval()
			val settings = blocks(script).flatMap { block =>
				evaluate(eval, script.getPath, block.lines, currentUnit.imports, block.offset+1)
			}
			val scriptAsSource = sources in Compile := script :: Nil
			val asScript = scalacOptions ++= Seq("-Xscript", script.getName.stripSuffix(".scala"))
			val logQuiet = (logLevel in Global := Level.Warn) :: (showSuccess in Global := false) :: Nil
{'fraction_non_alphanumeric': 0.10881897885507993, 'fraction_numerical': 0.0046415678184631255, 'mean_word_length': 4.300546448087432, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6049027', 'n_tokens_mistral': 618, 'n_tokens_neox': 543, 'n_words': 164}