<commit_before>import sbt._

class Unfiltered(info: ProjectInfo) extends ParentProject(info) {
  
  class UnfilteredModule(info: ProjectInfo) extends DefaultProject(info) with sxr.Publish {
    lazy val unfilteredSpec =  "net.databinder" %% "unfiltered-spec" % "0.1.3" % "test" intransitive()
    lazy val specs = specsDependency % "test"
    lazy val dispatch = dispatchDependency % "test"
  }
  
  /** core unfiltered library */
  lazy val library = project("library", "Unfiltered", new UnfilteredModule(_) {
    lazy val servlet_api = servletApiDependency
    val codec = "commons-codec" % "commons-codec" % "1.4"
  })
  /** file uploads */
  lazy val uploads = project("uploads", "Unfiltered Uploads", new UnfilteredModule(_) {
    lazy val servlet_api = servletApiDependency
    val io = "commons-io" % "commons-io" % "1.4"
    val fileupload = "commons-fileupload" % "commons-fileupload" % "1.2.1"  
  })
  val jetty_version = "7.0.2.v20100331"
  /** embedded server*/
  lazy val server = project("server", "Unfiltered Server", new UnfilteredModule(_) {
    val jetty7 = "org.eclipse.jetty" % "jetty-webapp" % jetty_version
  }, library, uploads)
  /** AJP protocol server */
  lazy val ajp_server = project("ajp-server", "Unfiltered AJP Server", new UnfilteredModule(_) {
    val jetty7 = "org.eclipse.jetty" % "jetty-ajp" % jetty_version
  }, server)
  /** demo project */
  lazy val demo = project("demo", "Unfiltered Demo", new UnfilteredModule(_), server)
  /** specs  helper */
  lazy val spec = project("spec", "Unfiltered Spec", new DefaultProject(_) with sxr.Publish {
    lazy val specs = specsDependency
    lazy val dispatch = dispatchDependency
  }, server)
  /** json extractors */
  lazy val json = project("json", "Unfiltered Json", new DefaultProject(_) with sxr.Publish {
    val dispatch_json = "net.databinder" %% "dispatch-json" % "0.7.4"
    val test_server = "net.databinder" %% "unfiltered-server" % "0.1.3"
  }, library)
  
  def servletApiDependency = "javax.servlet" % "servlet-api" % "2.3" % "provided"
  def specsDependency = 
    if (buildScalaVersion startsWith "2.7.") 
      "org.scala-tools.testing" % "specs" % "1.6.2.2"
    else
      "org.scala-tools.testing" %% "specs" % "1.6.5"
  def dispatchDependency = "net.databinder" %% "dispatch-mime" % "0.7.4"
  <commit_msg>make sure server is a 'test' dep of json<commit_after>import sbt._

class Unfiltered(info: ProjectInfo) extends ParentProject(info) {
  
  class UnfilteredModule(info: ProjectInfo) extends DefaultProject(info) with sxr.Publish {
    lazy val unfilteredSpec =  "net.databinder" %% "unfiltered-spec" % "0.1.3" % "test" intransitive()
    lazy val specs = specsDependency % "test"
    lazy val dispatch = dispatchDependency % "test"
  }
  
  /** core unfiltered library */
  lazy val library = project("library", "Unfiltered", new UnfilteredModule(_) {
    lazy val servlet_api = servletApiDependency
    val codec = "commons-codec" % "commons-codec" % "1.4"
  })
  /** file uploads */
  lazy val uploads = project("uploads", "Unfiltered Uploads", new UnfilteredModule(_) {
    lazy val servlet_api = servletApiDependency
    val io = "commons-io" % "commons-io" % "1.4"
    val fileupload = "commons-fileupload" % "commons-fileupload" % "1.2.1"  
  })
  val jetty_version = "7.0.2.v20100331"
  /** embedded server*/
  lazy val server = project("server", "Unfiltered Server", new UnfilteredModule(_) {
    val jetty7 = "org.eclipse.jetty" % "jetty-webapp" % jetty_version
  }, library, uploads)
  /** AJP protocol server */
  lazy val ajp_server = project("ajp-server", "Unfiltered AJP Server", new UnfilteredModule(_) {
    val jetty7 = "org.eclipse.jetty" % "jetty-ajp" % jetty_version
  }, server)
  /** demo project */
  lazy val demo = project("demo", "Unfiltered Demo", new UnfilteredModule(_), server)
  /** specs  helper */
  lazy val spec = project("spec", "Unfiltered Spec", new DefaultProject(_) with sxr.Publish {
    lazy val specs = specsDependency
    lazy val dispatch = dispatchDependency
  }, server)
  /** json extractors */
  lazy val json = project("json", "Unfiltered Json", new DefaultProject(_) with sxr.Publish {
    val dispatch_json = "net.databinder" %% "dispatch-json" % "0.7.4"
    val test_server = "net.databinder" %% "unfiltered-server" % "0.1.3" % "test"
  }, library)
  
  def servletApiDependency = "javax.servlet" % "servlet-api" % "2.3" % "provided"
  def specsDependency = 
    if (buildScalaVersion startsWith "2.7.") 
      "org.scala-tools.testing" % "specs" % "1.6.2.2"
    else
      "org.scala-tools.testing" %% "specs" % "1.6.5"
  def dispatchDependency = "net.databinder" %% "dispatch-mime" % "0.7.4"
  
{'fraction_non_alphanumeric': 0.14577071704594247, 'fraction_numerical': 0.0184628595963933, 'mean_word_length': 3.710819009100101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '786797', 'n_tokens_mistral': 1629, 'n_tokens_neox': 1562, 'n_words': 393}