<commit_before>import Common._
import xerial.sbt.Pack._
/*
 * Copyright 2014 IBM Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

test in assembly := {}

pack <<= pack dependsOn (rebuildIvyXml dependsOn deliverLocal)

packArchive <<= packArchive dependsOn (rebuildIvyXml dependsOn deliverLocal)

//
// TEST DEPENDENCIES
//
//libraryDependencies +=

libraryDependencies ++= Seq(
  "org.spark-project.akka" %% "akka-testkit" % "2.3.4-spark" % "test", // MIT
  "org.apache.spark" %% "spark-core" % sparkVersion.value % "provided" excludeAll // Apache v2
    ExclusionRule(organization = "org.apache.hadoop"),
  "org.apache.spark" %% "spark-streaming" % sparkVersion.value % "provided",      // Apache v2
  "org.apache.spark" %% "spark-sql" % sparkVersion.value % "provided",            // Apache v2
  "org.apache.spark" %% "spark-mllib" % sparkVersion.value % "provided",          // Apache v2
  "org.apache.spark" %% "spark-graphx" % sparkVersion.value % "provided",         // Apache v2
  "org.apache.spark" %% "spark-repl" % sparkVersion.value % "provided" excludeAll // Apache v2
    ExclusionRule(organization = "org.apache.hadoop"),
  "org.apache.spark" %% "spark-hive" % sparkVersion.value % "provided" excludeAll // Apache v2
    ExclusionRule(organization = "org.apache.hadoop"),
  "com.datastax.spark" %% "spark-cassandra-connector" % "1.4.0" % "provided" excludeAll // SPARK-CASSANDRA CONNECTOR DEPENDENCIES
    ExclusionRule(organization = "org.apache.hadoop"),
  "org.apache.hadoop" % "hadoop-client" % "2.3.0" % "provided" excludeAll
    ExclusionRule(organization = "javax.servlet")
)

//We do this so that Spark Dependencies will not be bundled with our fat jar but will still be included on the classpath
//When we do a sbt/run
run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run))<commit_msg>don't include the scala jars in the assembly<commit_after>import Common._
import xerial.sbt.Pack._
/*
 * Copyright 2014 IBM Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

test in assembly := {}

// Don't package the scala jars as they are already in spark
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)


pack <<= pack dependsOn (rebuildIvyXml dependsOn deliverLocal)

packArchive <<= packArchive dependsOn (rebuildIvyXml dependsOn deliverLocal)

//
// TEST DEPENDENCIES
//
//libraryDependencies +=

libraryDependencies ++= Seq(
  "org.spark-project.akka" %% "akka-testkit" % "2.3.4-spark" % "test", // MIT
  "org.apache.spark" %% "spark-core" % sparkVersion.value % "provided" excludeAll // Apache v2
    ExclusionRule(organization = "org.apache.hadoop"),
  "org.apache.spark" %% "spark-streaming" % sparkVersion.value % "provided",      // Apache v2
  "org.apache.spark" %% "spark-sql" % sparkVersion.value % "provided",            // Apache v2
  "org.apache.spark" %% "spark-mllib" % sparkVersion.value % "provided",          // Apache v2
  "org.apache.spark" %% "spark-graphx" % sparkVersion.value % "provided",         // Apache v2
  "org.apache.spark" %% "spark-repl" % sparkVersion.value % "provided" excludeAll // Apache v2
    ExclusionRule(organization = "org.apache.hadoop"),
  "org.apache.spark" %% "spark-hive" % sparkVersion.value % "provided" excludeAll // Apache v2
    ExclusionRule(organization = "org.apache.hadoop"),
  "com.datastax.spark" %% "spark-cassandra-connector" % "1.4.0" % "provided" excludeAll // SPARK-CASSANDRA CONNECTOR DEPENDENCIES
    ExclusionRule(organization = "org.apache.hadoop"),
  "org.apache.hadoop" % "hadoop-client" % "2.3.0" % "provided" excludeAll
    ExclusionRule(organization = "javax.servlet")
)

//We do this so that Spark Dependencies will not be bundled with our fat jar but will still be included on the classpath
//When we do a sbt/run
run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run))
{'fraction_non_alphanumeric': 0.12746677406363272, 'fraction_numerical': 0.009665726943213854, 'mean_word_length': 3.855327468230694, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2174840', 'n_tokens_mistral': 1595, 'n_tokens_neox': 1479, 'n_words': 466}