<commit_before>	import sbt._
	import Keys._

object XRay extends Build
{
	lazy val projects = Seq(main)
	lazy val main = Project("sxr", file(".")) settings(
		name := "sxr",
		organization := "org.scala-tools.sxr",
		version := "0.2.8-SNAPSHOT",
		scalaVersion := "2.9.0",
		crossScalaVersions += "2.8.1",
		ivyConfigurations += js,
		libraryDependencies ++= dependencies,
		jqueryAll <<= target(_ / "jquery-all.js"),
		combineJs <<= combineJquery,
		resourceGenerators in Compile <+= combineJs.identity,
		credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
		publishTo := Some( "Scala Tools Nexus" at "http://nexus.scala-tools.org/content/repositories/releases/" )
	)

	val js = config("js") hide
	
	val combineJs = TaskKey[Seq[File]]("combine-js")
	val jqueryAll = SettingKey[File]("jquery-all")
	
	val jquery_version = "1.3.2"
	val jquery_scrollto_version = "1.4.2"
	val jquery_qtip_version = "1.0.0-rc3"

	def dependencies = Seq(
		"jquery" % "jquery"          % jquery_version          % "js->default" from ("http://jqueryjs.googlecode.com/files/jquery-" + jquery_version + ".min.js"),
		"jquery" % "jquery-scrollto" % jquery_scrollto_version % "js->default" from ("http://flesler-plugins.googlecode.com/files/jquery.scrollTo-" + jquery_scrollto_version + "-min.js"),
		"jquery" % "jquery-qtip"     % jquery_qtip_version     % "js->default" from ("http://craigsworks.com/projects/qtip/packages/1.0.0-rc3/jquery.qtip-" + jquery_qtip_version + ".min.js")
	)

	lazy val combineJquery = (update, jqueryAll, streams) map { (report, jsOut, s) =>
		IO.delete(jsOut)
		inputs(report) foreach { in => appendJs(in, jsOut) }
		s.log.info("Wrote combined js to " + jsOut.getAbsolutePath)
		Seq(jsOut)
	}
	def inputs(report: UpdateReport) = report.select( configurationFilter(js.name)) sortBy { _.name }
	def appendJs(js: File, to: File): Unit =
		Using.fileInputStream(js) { in =>
			Using.fileOutputStream(append = true)(to) { out => IO.transfer(in, out) }
		}
}
<commit_msg>update to use 0.10<commit_after>	import sbt._
	import Keys._

object XRay extends Build
{
	lazy val main = Project("sxr", file(".")) settings(
		name := "sxr",
		organization := "org.scala-tools.sxr",
		version := "0.2.8-SNAPSHOT",
		scalaVersion := "2.9.0-1",
		crossScalaVersions += "2.8.1",
		ivyConfigurations += js,
		libraryDependencies ++= dependencies,
		libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-compiler" % _ % "provided"),
		jqueryAll <<= target(_ / "jquery-all.js"),
		combineJs <<= combineJquery,
		resourceGenerators in Compile <+= combineJs.identity,
		credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
		publishTo := Some( "Scala Tools Nexus" at "http://nexus.scala-tools.org/content/repositories/releases/" )
	)

	val js = config("js") hide
	
	val combineJs = TaskKey[Seq[File]]("combine-js")
	val jqueryAll = SettingKey[File]("jquery-all")
	
	val jquery_version = "1.3.2"
	val jquery_scrollto_version = "1.4.2"
	val jquery_qtip_version = "1.0.0-rc3"

	def dependencies = Seq(
		"jquery" % "jquery"          % jquery_version          % "js->default" from ("http://jqueryjs.googlecode.com/files/jquery-" + jquery_version + ".min.js"),
		"jquery" % "jquery-scrollto" % jquery_scrollto_version % "js->default" from ("http://flesler-plugins.googlecode.com/files/jquery.scrollTo-" + jquery_scrollto_version + "-min.js"),
		"jquery" % "jquery-qtip"     % jquery_qtip_version     % "js->default" from ("http://craigsworks.com/projects/qtip/packages/1.0.0-rc3/jquery.qtip-" + jquery_qtip_version + ".min.js")
	)

	lazy val combineJquery = (update, jqueryAll, streams) map { (report, jsOut, s) =>
		IO.delete(jsOut)
		inputs(report) foreach { in => appendJs(in, jsOut) }
		s.log.info("Wrote combined js to " + jsOut.getAbsolutePath)
		Seq(jsOut)
	}
	def inputs(report: UpdateReport) = report.select( configurationFilter(js.name)) sortBy { _.name }
	def appendJs(js: File, to: File): Unit =
		Using.fileInputStream(js) { in =>
			Using.fileOutputStream(append = true)(to) { out => IO.transfer(in, out) }
		}
}

{'fraction_non_alphanumeric': 0.16930301532377656, 'fraction_numerical': 0.012852199703410776, 'mean_word_length': 4.096977329974811, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 17, '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': '2084901', 'n_tokens_mistral': 1553, 'n_tokens_neox': 1431, 'n_words': 285}