You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@toree.apache.org by ch...@apache.org on 2016/04/22 16:09:55 UTC

[01/32] incubator-toree git commit: Adding release requirements to sbt

Repository: incubator-toree
Updated Branches:
  refs/heads/master 68247631b -> d08b11744


Adding release requirements to sbt


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/cace425a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/cace425a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/cace425a

Branch: refs/heads/master
Commit: cace425a94dd8f0f01aa478eb92ca15f0a0eb9b7
Parents: 71cc85e
Author: Gino Bustelo <lb...@apache.org>
Authored: Mon Mar 14 12:24:58 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 12:22:28 2016 -0500

----------------------------------------------------------------------
 project/Build.scala  | 18 ++++++++++++++----
 project/Common.scala | 26 ++++++++++++++++----------
 2 files changed, 30 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/cace425a/project/Build.scala
----------------------------------------------------------------------
diff --git a/project/Build.scala b/project/Build.scala
index 8984570..7bf1512 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -35,7 +35,7 @@ object Build extends Build with Settings with SubProjects with TestTasks {
    */
   lazy val root = addTestTasksToProject(
     Project(
-      id = "root",
+      id = "toree-all",
       base = file("."),
       settings = fullSettings
     ).settings(unidocSettings: _*)
@@ -49,9 +49,19 @@ object Build extends Build with Settings with SubProjects with TestTasks {
      .settings(
         scalacOptions in (ScalaUnidoc, unidoc) += "-Ymacro-no-expand",
 
-        // Do not publish the root project (it just serves as an aggregate)
-        publishArtifact := false,
-        publishLocal := {}
+        pomExtra :=
+         <parent>
+           <groupId>org.apache</groupId>
+           <artifactId>apache</artifactId>
+           <version>10</version>
+         </parent>
+           <licenses>
+             <license>
+               <name>Apache 2</name>
+               <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+               <distribution>repo</distribution>
+             </license>
+           </licenses>
       )
   ).aggregate(
     client, kernel, kernel_api, communication, protocol, macros,

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/cace425a/project/Common.scala
----------------------------------------------------------------------
diff --git a/project/Common.scala b/project/Common.scala
index 872db2e..a8848ab 100644
--- a/project/Common.scala
+++ b/project/Common.scala
@@ -26,13 +26,6 @@ object Common {
   //  Parameters for publishing to artifact repositories
   val versionNumber             = Properties.envOrElse("VERSION", "0.0.0-dev")
   val snapshot                  = Properties.envOrElse("IS_SNAPSHOT","true").toBoolean
-  val repoPort                  = Properties.envOrElse("REPO_PORT","")
-  val repoHost                  = Properties.envOrElse("REPO_HOST","")
-  val repoUsername              = Properties.envOrElse("REPO_USERNAME","")
-  val repoPassword              = Properties.envOrElse("REPO_PASSWORD","")
-  val repoEndpoint              = Properties.envOrElse("REPO_ENDPOINT", if(snapshot) "/nexus/content/repositories/snapshots/" else "/nexus/content/repositories/releases/")
-  val repoUrl                   = Properties.envOrElse("REPO_URL", s"http://${repoHost}:${repoPort}${repoEndpoint}")
-
 
   private val buildOrganization = "org.apache.toree"
   private val buildVersion      =
@@ -89,6 +82,19 @@ object Common {
     libraryDependencies ++= buildLibraryDependencies,
     isSnapshot := snapshot,
     resolvers ++= buildResolvers,
+
+    pomExtra :=
+      <url>http://toree.incubator.apache.org/</url>
+      <scm>
+        <connection>scm:git:git@github.com:apache/incubator-toree.git</connection>
+        <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-toree.git</developerConnection>
+        <url>scm:git:git@github.com:apache/incubator-toree.git</url>
+        <tag>HEAD</tag>
+      </scm>,
+
+    mappings in packageBin in Compile += file("LICENSE") -> "LICENSE",
+    mappings in packageBin in Compile += file("NOTICE") -> "NOTICE",
+
     coursierVerbosity := {
       val level = Try(Integer.valueOf(Properties.envOrElse(
         "TOREE_RESOLUTION_VERBOSITY", "1")
@@ -152,9 +158,9 @@ object Common {
     unmanagedResourceDirectories in Test +=
       (baseDirectory in Build.root).value / "resources/test",
 
-    publishTo := Some("Spark Kernel Nexus Repo" at repoUrl),
-
-    credentials += Credentials("Sonatype Nexus Repository Manager", repoHost, repoUsername, repoPassword),
+    // Publish Settings
+    publishTo := Some("Apache Maven Repo" at "https://repository.apache.org/service/local/staging/deploy/maven2"),
+    credentials += Credentials(Path.userHome / ".m2" / ".credentials"),
 
     // Add rebuild ivy xml to the following tasks
     compile <<= (compile in Compile) dependsOn (rebuildIvyXml dependsOn deliverLocal)


[20/32] incubator-toree git commit: Fix make target to only sign once

Posted by ch...@apache.org.
Fix make target to only sign once


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/63d59b57
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/63d59b57
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/63d59b57

Branch: refs/heads/master
Commit: 63d59b5764d66ff9306ca36c6f6e8a596ad6e83e
Parents: e4fc7d8
Author: Gino Bustelo <lb...@apache.org>
Authored: Wed Apr 6 16:24:15 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:45:05 2016 -0500

----------------------------------------------------------------------
 Makefile | 66 +++++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 44 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/63d59b57/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 50563aa..a1a336f 100644
--- a/Makefile
+++ b/Makefile
@@ -120,36 +120,42 @@ test:
 sbt-%:
 	$(call RUN,$(ENV_OPTS) sbt $(subst sbt-,,$@) )
 
-dist: VERSION_FILE=dist/toree/VERSION
-dist: dist/toree dist/legal target/scala-2.10/$(ASSEMBLY_JAR) ${shell find ./etc/bin/*}
-	@mkdir -p dist/toree/bin dist/toree/lib
-	@cp -r etc/bin/* dist/toree/bin/.
+dist/toree/lib: target/scala-2.10/$(ASSEMBLY_JAR)
+	@mkdir -p dist/toree/lib
 	@cp target/scala-2.10/$(ASSEMBLY_JAR) dist/toree/lib/.
-	@echo "VERSION: $(VERSION)" > $(VERSION_FILE)
-	@echo "COMMIT: $(COMMIT)" >> $(VERSION_FILE)
 
-dist/toree:
-	@mkdir -p dist/toree
+dist/toree/bin: ${shell find ./etc/bin/*}
+	@mkdir -p dist/toree/bin
+	@cp -r etc/bin/* dist/toree/bin/.
 
-dist/legal: dist/toree/NOTICE dist/toree/LICENSE dist/toree/DISCLAIMER
+dist/toree/VERSION:
+	@mkdir -p dist/toree
+	@echo "VERSION: $(VERSION)" > dist/toree/VERSION
+	@echo "COMMIT: $(COMMIT)" >> dist/toree/VERSION
 
-dist/toree/LICENSE: dist/toree
+dist/toree/LICENSE:
+	@mkdir -p dist/toree
 	@cp LICENSE dist/toree/LICENSE
 
-dist/toree/NOTICE: dist/toree
+dist/toree/NOTICE:
+	@mkdir -p dist/toree
 	@cp NOTICE dist/toree/NOTICE
 
-dist/toree/DISCLAIMER: dist/toree
+dist/toree/DISCLAIMER:
+	@mkdir -p dist/toree
 	@cp DISCLAIMER dist/toree/DISCLAIMER
 
+dist/toree: dist/toree/VERSION dist/toree/NOTICE dist/toree/LICENSE dist/toree/DISCLAIMER dist/toree/lib dist/toree/bin
+
+dist: dist/toree
 
 test-travis:
 	$(ENV_OPTS) sbt clean test -Dakka.test.timefactor=3
 	find $(HOME)/.sbt -name "*.lock" | xargs rm
 	find $(HOME)/.ivy2 -name "ivydata-*.properties" | xargs rm
 
-pip-release: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
-pip-release: dist
+dist/toree-pip/toree-$(VERSION).tar.gz: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
+dist/toree-pip/toree-$(VERSION).tar.gz: dist/toree
 	@mkdir -p dist/toree-pip
 	@cp -r dist/toree dist/toree-pip
 	@cp dist/toree/LICENSE dist/toree-pip/LICENSE
@@ -160,26 +166,42 @@ pip-release: dist
 	@$(DOCKER) $(IMAGE) python setup.py sdist --dist-dir=.
 	@$(DOCKER) -p 8888:8888 --user=root  $(IMAGE) bash -c	'pip install toree-$(VERSION).tar.gz && jupyter toree install'
 
-audit:
-	@etc/tools/./check-licenses
-	@etc/tools/./verify-release dist/toree-bin dist/toree-src
+pip-release: dist/toree-pip/toree-$(VERSION).tar.gz
 
-bin-release: dist
-	@mkdir dist/toree-bin
+dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz: dist/toree
+	@mkdir -p dist/toree-bin
 	@(cd dist; tar -cvzf toree-bin/toree-$(VERSION)-binary-release.tar.gz toree)
-	@etc/tools/./sign-file dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
 
-src-release:
+bin-release: dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
+
+dist/toree-src/toree-$(VERSION)-source-release.tar.gz:
 	@mkdir -p dist/toree-src
 	@tar -X 'etc/.src-release-ignore' -cvzf dist/toree-src/toree-$(VERSION)-source-release.tar.gz .
+
+src-release: dist/toree-src/toree-$(VERSION)-source-release.tar.gz
+
+dist/toree-src/toree-$(VERSION)-source-release.tar.gz.md5 dist/toree-src/toree-$(VERSION)-source-release.tar.gz.asc dist/toree-src/toree-$(VERSION)-source-release.tar.gz.sha:
 	@etc/tools/./sign-file dist/toree-src/toree-$(VERSION)-source-release.tar.gz
 
+sign-src: src-release dist/toree-src/toree-$(VERSION)-source-release.tar.gz.md5 dist/toree-src/toree-$(VERSION)-source-release.tar.gz.asc dist/toree-src/toree-$(VERSION)-source-release.tar.gz.sha
+
+dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.md5 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.asc dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.sha:
+	@etc/tools/./sign-file dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
+
+sign-bin: bin-release dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.md5 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.asc dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.sha
+
+sign: sign-bin sign-src
+
+audit: sign
+	@etc/tools/./check-licenses
+	@etc/tools/./verify-release dist/toree-bin dist/toree-src
+
 release: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
 release: PYPI_REPO?=https://pypi.python.org/pypi
 release: PYPI_USER?=
 release: PYPI_PASSWORD?=
 release: PYPIRC=printf "[distutils]\nindex-servers =\n\tpypi\n\n[pypi]\nrepository: $(PYPI_REPO) \nusername: $(PYPI_USER)\npassword: $(PYPI_PASSWORD)" > ~/.pypirc;
-release: pip-release bin-release src-release audit
+release: pip-release bin-release src-release sign audit
 	@$(DOCKER) $(IMAGE) bash -c '$(PYPIRC) pip install twine && \
 		python setup.py register -r $(PYPI_REPO) && \
 		twine upload -r pypi toree-$(VERSION).tar.gz'


[13/32] incubator-toree git commit: Fixed mailing list address used in pip package

Posted by ch...@apache.org.
Fixed mailing list address used in pip package


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/2e4b647f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/2e4b647f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/2e4b647f

Branch: refs/heads/master
Commit: 2e4b647f3daff7c0c55a2719b4afdb2c2b65e30e
Parents: beb2b15
Author: Gino Bustelo <lb...@apache.org>
Authored: Wed Apr 6 09:09:43 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:39 2016 -0500

----------------------------------------------------------------------
 etc/pip_install/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/2e4b647f/etc/pip_install/setup.py
----------------------------------------------------------------------
diff --git a/etc/pip_install/setup.py b/etc/pip_install/setup.py
index 1661aed..87c70fd 100644
--- a/etc/pip_install/setup.py
+++ b/etc/pip_install/setup.py
@@ -28,7 +28,7 @@ with open(os.path.join(here, 'toree', '_version.py')) as f:
 setup_args = dict(
     name='toree',
     author='Apache Toree Development Team',
-    author_email='user@toree.incubator.apache.org',
+    author_email='dev@toree.incubator.apache.org',
     description='A Jupyter kernel for enabling remote applications to interaction with Apache Spark.',
     long_description = '''
     This package will install Apache Toree as a Jupyter kernel.


[03/32] incubator-toree git commit: Added a target to expose calling sbt tasks

Posted by ch...@apache.org.
Added a target to expose calling sbt tasks


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/af462b91
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/af462b91
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/af462b91

Branch: refs/heads/master
Commit: af462b91a76737d45091d05248777df8c0af09c7
Parents: 6824763
Author: Gino Bustelo <lb...@apache.org>
Authored: Thu Mar 10 15:38:17 2016 -0600
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 12:22:28 2016 -0500

----------------------------------------------------------------------
 Makefile | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/af462b91/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 2d19877..bccb7cc 100644
--- a/Makefile
+++ b/Makefile
@@ -116,6 +116,9 @@ test: VM_WORKDIR=/src/toree-kernel
 test:
 	$(call RUN,$(ENV_OPTS) sbt compile test)
 
+sbt-%:
+	$(call RUN,$(ENV_OPTS) sbt $(subst sbt-,,$@) )
+
 dist: VERSION_FILE=dist/toree/VERSION
 dist: kernel/target/scala-2.10/$(ASSEMBLY_JAR) ${shell find ./etc/bin/*}
 	@mkdir -p dist/toree/bin dist/toree/lib


[02/32] incubator-toree git commit: Removed unecessary task

Posted by ch...@apache.org.
Removed unecessary task


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/71cc85eb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/71cc85eb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/71cc85eb

Branch: refs/heads/master
Commit: 71cc85eb66ef1e7a67c9d7e964b0c7942fdaa53d
Parents: af462b9
Author: Gino Bustelo <lb...@apache.org>
Authored: Thu Mar 10 15:40:54 2016 -0600
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 12:22:28 2016 -0500

----------------------------------------------------------------------
 kernel/build.sbt | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/71cc85eb/kernel/build.sbt
----------------------------------------------------------------------
diff --git a/kernel/build.sbt b/kernel/build.sbt
index fa53ce6..abe1d2d 100644
--- a/kernel/build.sbt
+++ b/kernel/build.sbt
@@ -23,12 +23,3 @@ libraryDependencies +=
 
 assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
 
-//
-// CUSTOM TASKS
-//
-
-lazy val kill = taskKey[Unit]("Executing the shell script.")
-
-kill := {
-  "sh scripts/terminate_spark_kernels.sh".!
-}
\ No newline at end of file


[08/32] incubator-toree git commit: Added 'incubating' suffix to generated assets

Posted by ch...@apache.org.
Added 'incubating' suffix to generated assets


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/e20dd57b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/e20dd57b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/e20dd57b

Branch: refs/heads/master
Commit: e20dd57b4926efbb0499729371e3a2df6e13ff44
Parents: 67b4a45
Author: Gino Bustelo <lb...@apache.org>
Authored: Tue Apr 5 12:45:02 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:28 2016 -0500

----------------------------------------------------------------------
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/e20dd57b/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index b191cf4..607f8e6 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@
 
 .PHONY: help clean clean-dist build dev test test-travis release pip-release bin-release dev-binder .binder-image audit
 
-VERSION?=0.1.0.dev6
+VERSION?=0.1.0.dev6-incubating
 COMMIT=$(shell git rev-parse --short=12 --verify HEAD)
 ifeq (, $(findstring dev, $(VERSION)))
 IS_SNAPSHOT?=false
@@ -40,7 +40,7 @@ docker run -it --rm \
 endef
 
 define GEN_PIP_PACKAGE_INFO
-printf "__version__ = '$(VERSION)'\n" >> dist/toree/_version.py
+printf "__version__ = '$(gitVERSION)'\n" >> dist/toree/_version.py
 printf "__commit__ = '$(COMMIT)'\n" >> dist/toree/_version.py
 endef
 


[21/32] incubator-toree git commit: Amended the DISCLAIMER with LGPL statement

Posted by ch...@apache.org.
Amended the DISCLAIMER with LGPL statement


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/13e68fb8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/13e68fb8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/13e68fb8

Branch: refs/heads/master
Commit: 13e68fb8c0e32065c4efdb40aef7187c5004fccd
Parents: 63d59b5
Author: Gino Bustelo <lb...@apache.org>
Authored: Fri Apr 8 09:52:24 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:45:05 2016 -0500

----------------------------------------------------------------------
 DISCLAIMER | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/13e68fb8/DISCLAIMER
----------------------------------------------------------------------
diff --git a/DISCLAIMER b/DISCLAIMER
index a3fe197..936261c 100644
--- a/DISCLAIMER
+++ b/DISCLAIMER
@@ -8,3 +8,8 @@ have stabilized in a manner consistent with other successful ASF projects.
 While incubation status is not necessarily a reflection of the completeness
 or stability of the code, it does indicate that the project has yet to be
 fully endorsed by the ASF.
+
+Additionally, this release is not fully compliant with Apache release policy
+and includes a runtime dependency that is licensed as LGPL v3 (plus a static
+linking exception). This package is currently under an effort to re-license
+(https://github.com/zeromq/jeromq/issues/327).
\ No newline at end of file


[32/32] incubator-toree git commit: Enabled publishing jars to maven

Posted by ch...@apache.org.
Enabled publishing jars to maven


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/09bda854
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/09bda854
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/09bda854

Branch: refs/heads/master
Commit: 09bda85451e0a4d669e681f18efb5a3aef6a6355
Parents: 09d769a
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Mon Apr 11 16:12:59 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:47:42 2016 -0500

----------------------------------------------------------------------
 project/Common.scala | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/09bda854/project/Common.scala
----------------------------------------------------------------------
diff --git a/project/Common.scala b/project/Common.scala
index 05dafc9..2d86773 100644
--- a/project/Common.scala
+++ b/project/Common.scala
@@ -176,8 +176,13 @@ object Common {
       (baseDirectory in Build.root).value / "resources/test",
 
     // Publish Settings
-    publishTo := Some("Apache Maven Repo" at "https://repository.apache.org/service/local/staging/deploy/maven2"),
-    credentials += Credentials(Path.userHome / ".m2" / ".credentials"),
+    publishTo := {
+      if (isSnapshot.value)
+        Some("Apache Staging Repo" at "https://repository.apache.org/content/repositories/snapshots/")
+      else
+        Some("Apache Staging Repo" at "https://repository.apache.org/content/repositories/staging/")
+    },
+    credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
 
     // Add rebuild ivy xml to the following tasks
     compile <<= (compile in Compile) dependsOn (rebuildIvyXml dependsOn deliverLocal)


[22/32] incubator-toree git commit: Adding and pointing to each of the licenses bundled in bin packages

Posted by ch...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/LICENSE-jline.txt
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/LICENSE-jline.txt b/etc/legal/licenses/LICENSE-jline.txt
new file mode 100644
index 0000000..0565aea
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-jline.txt
@@ -0,0 +1,902 @@
+
+
+
+
+<!DOCTYPE html>
+<html lang="en" class="">
+  <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
+    <meta charset='utf-8'>
+
+    <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/frameworks-473733caf98c6c528c9ddeb25f5830e456cb75553a54d79c8c3296648555f848.css" media="all" rel="stylesheet" />
+    <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/github-9366a97c2c7a861b73bf6d1bf3b461762a103f28da88b1a7612bd0a7d26c3542.css" media="all" rel="stylesheet" />
+    
+    
+    
+    <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/site-2d5d1699983d8dd7c384c67dfc183fbace8e3a24866e8822069d599f68e71fb2.css" media="all" rel="stylesheet" />
+
+    <link as="script" href="https://assets-cdn.github.com/assets/frameworks-9eb0ddac6d1c94c56980360abcade2abb10d27d7880f7ee7bf6640c2c2a06fc8.js" rel="preload" />
+    
+    <link as="script" href="https://assets-cdn.github.com/assets/github-4ddbe43ff9bf343ea4e58a83f44f72427d4c0e030722f47eb6ea4d231abfa161.js" rel="preload" />
+
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta http-equiv="Content-Language" content="en">
+    <meta name="viewport" content="width=1020">
+    
+    
+    <title>jline2/LICENSE.txt at master · jline/jline2 · GitHub</title>
+    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
+    <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
+    <link rel="apple-touch-icon" href="/apple-touch-icon.png">
+    <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
+    <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
+    <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
+    <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
+    <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
+    <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
+    <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
+    <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
+    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
+    <meta property="fb:app_id" content="1401488693436528">
+
+      <meta content="https://avatars0.githubusercontent.com/u/711075?v=3&amp;s=400" name="twitter:image:src" /><meta content="@github" name="twitter:site" /><meta content="summary" name="twitter:card" /><meta content="jline/jline2" name="twitter:title" /><meta content="jline2 - The new Jline" name="twitter:description" />
+      <meta content="https://avatars0.githubusercontent.com/u/711075?v=3&amp;s=400" property="og:image" /><meta content="GitHub" property="og:site_name" /><meta content="object" property="og:type" /><meta content="jline/jline2" property="og:title" /><meta content="https://github.com/jline/jline2" property="og:url" /><meta content="jline2 - The new Jline" property="og:description" />
+      <meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">
+    <meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">
+    <link rel="assets" href="https://assets-cdn.github.com/">
+    
+    <meta name="pjax-timeout" content="1000">
+    
+
+    <meta name="msapplication-TileImage" content="/windows-tile.png">
+    <meta name="msapplication-TileColor" content="#ffffff">
+    <meta name="selected-link" value="repo_source" data-pjax-transient>
+
+    <meta name="google-site-verification" content="KT5gs8h0wvaagLKAVWq8bbeNwnZZK1r1XQysX3xurLU">
+<meta name="google-site-verification" content="ZzhVyEFwb7w3e0-uOTltm8Jsck2F5StVihD0exw2fsA">
+    <meta name="google-analytics" content="UA-3769691-2">
+
+<meta content="collector.githubapp.com" name="octolytics-host" /><meta content="github" name="octolytics-app-id" /><meta content="20616E3D:53FA:738C7BF:57080DF6" name="octolytics-dimension-request_id" />
+<meta content="/&lt;user-name&gt;/&lt;repo-name&gt;/blob/show" data-pjax-transient="true" name="analytics-location" />
+
+
+
+  <meta class="js-ga-set" name="dimension1" content="Logged Out">
+
+
+
+        <meta name="hostname" content="github.com">
+    <meta name="user-login" content="">
+
+        <meta name="expected-hostname" content="github.com">
+      <meta name="js-proxy-site-detection-payload" content="YmM4YTBmNGFjMmQ4YTU5ZjBmNWY3OGRjNDExZjdjY2NiYmM5ZGRjMWNjNjYwZGIyOGVlN2VkOTU3OGIwNjY1M3x7InJlbW90ZV9hZGRyZXNzIjoiMzIuOTcuMTEwLjYxIiwicmVxdWVzdF9pZCI6IjIwNjE2RTNEOjUzRkE6NzM4QzdCRjo1NzA4MERGNiIsInRpbWVzdGFtcCI6MTQ2MDE0NTY1NX0=">
+
+      <link rel="mask-icon" href="https://assets-cdn.github.com/pinned-octocat.svg" color="#4078c0">
+      <link rel="icon" type="image/x-icon" href="https://assets-cdn.github.com/favicon.ico">
+
+    <meta content="3b1abb444783abf3f89144ac1f8fecf1948d5587" name="form-nonce" />
+
+    <meta http-equiv="x-pjax-version" content="97338dab10e3d7ee1da8a3fa3ab55a04">
+    
+
+      
+  <meta name="description" content="jline2 - The new Jline">
+  <meta name="go-import" content="github.com/jline/jline2 git https://github.com/jline/jline2.git">
+
+  <meta content="711075" name="octolytics-dimension-user_id" /><meta content="jline" name="octolytics-dimension-user_login" /><meta content="1577604" name="octolytics-dimension-repository_id" /><meta content="jline/jline2" name="octolytics-dimension-repository_nwo" /><meta content="true" name="octolytics-dimension-repository_public" /><meta content="false" name="octolytics-dimension-repository_is_fork" /><meta content="1577604" name="octolytics-dimension-repository_network_root_id" /><meta content="jline/jline2" name="octolytics-dimension-repository_network_root_nwo" />
+  <link href="https://github.com/jline/jline2/commits/master.atom" rel="alternate" title="Recent Commits to jline2:master" type="application/atom+xml">
+
+
+      <link rel="canonical" href="https://github.com/jline/jline2/blob/master/LICENSE.txt" data-pjax-transient>
+  </head>
+
+
+  <body class="logged-out   env-production  vis-public page-blob">
+    <div id="js-pjax-loader-bar" class="pjax-loader-bar"></div>
+    <a href="#start-of-content" tabindex="1" class="accessibility-aid js-skip-to-content">Skip to content</a>
+
+    
+    
+    
+
+
+
+          <header class="site-header js-details-container" role="banner">
+  <div class="container-responsive">
+    <a class="header-logo-invertocat" href="https://github.com/" aria-label="Homepage" data-ga-click="(Logged out) Header, go to homepage, icon:logo-wordmark">
+      <svg aria-hidden="true" class="octicon octicon-mark-github" height="32" version="1.1" viewBox="0 0 16 16" width="32"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59 0.4 0.07 0.55-0.17 0.55-0.38 0-0.19-0.01-0.82-0.01-1.49-2.01 0.37-2.53-0.49-2.69-0.94-0.09-0.23-0.48-0.94-0.82-1.13-0.28-0.15-0.68-0.52-0.01-0.53 0.63-0.01 1.08 0.58 1.23 0.82 0.72 1.21 1.87 0.87 2.33 0.66 0.07-0.52 0.28-0.87 0.51-1.07-1.78-0.2-3.64-0.89-3.64-3.95 0-0.87 0.31-1.59 0.82-2.15-0.08-0.2-0.36-1.02 0.08-2.12 0 0 0.67-0.21 2.2 0.82 0.64-0.18 1.32-0.27 2-0.27 0.68 0 1.36 0.09 2 0.27 1.53-1.04 2.2-0.82 2.2-0.82 0.44 1.1 0.16 1.92 0.08 2.12 0.51 0.56 0.82 1.27 0.82 2.15 0 3.07-1.87 3.75-3.65 3.95 0.29 0.25 0.54 0.73 0.54 1.48 0 1.07-0.01 1.93-0.01 2.2 0 0.21 0.15 0.46 0.55 0.38C13.71 14.53 16 11.53 16 8 16 3.58 12.42 0 8 0z"></path></svg>
+    </a>
+
+    <button class="btn-link right site-header-toggle js-details-target" type="button" aria-label="Toggle navigation">
+      <svg aria-hidden="true" class="octicon octicon-three-bars" height="24" version="1.1" viewBox="0 0 12 16" width="18"><path d="M11.41 9H0.59c-0.59 0-0.59-0.41-0.59-1s0-1 0.59-1h10.81c0.59 0 0.59 0.41 0.59 1s0 1-0.59 1z m0-4H0.59c-0.59 0-0.59-0.41-0.59-1s0-1 0.59-1h10.81c0.59 0 0.59 0.41 0.59 1s0 1-0.59 1zM0.59 11h10.81c0.59 0 0.59 0.41 0.59 1s0 1-0.59 1H0.59c-0.59 0-0.59-0.41-0.59-1s0-1 0.59-1z"></path></svg>
+    </button>
+
+    <div class="site-header-menu">
+      <nav class="site-header-nav site-header-nav-main">
+        <a href="/personal" class="js-selected-navigation-item nav-item nav-item-personal" data-ga-click="Header, click, Nav menu - item:personal" data-selected-links="/personal /personal">
+          Personal
+</a>        <a href="/open-source" class="js-selected-navigation-item nav-item nav-item-opensource" data-ga-click="Header, click, Nav menu - item:opensource" data-selected-links="/open-source /open-source">
+          Open source
+</a>        <a href="/business" class="js-selected-navigation-item nav-item nav-item-business" data-ga-click="Header, click, Nav menu - item:business" data-selected-links="/business /business/features /business/customers /business">
+          Business
+</a>        <a href="/explore" class="js-selected-navigation-item nav-item nav-item-explore" data-ga-click="Header, click, Nav menu - item:explore" data-selected-links="/explore /trending /trending/developers /integrations /integrations/feature/code /integrations/feature/collaborate /integrations/feature/ship /explore">
+          Explore
+</a>      </nav>
+
+      <div class="site-header-actions">
+            <a class="btn btn-primary site-header-actions-btn" href="/join?source=header-repo" data-ga-click="(Logged out) Header, clicked Sign up, text:sign-up">Sign up</a>
+          <a class="btn site-header-actions-btn mr-2" href="/login?return_to=%2Fjline%2Fjline2%2Fblob%2Fmaster%2FLICENSE.txt" data-ga-click="(Logged out) Header, clicked Sign in, text:sign-in">Sign in</a>
+      </div>
+
+        <nav class="site-header-nav site-header-nav-secondary">
+          <a class="nav-item" href="/pricing">Pricing</a>
+          <a class="nav-item" href="/blog">Blog</a>
+          <a class="nav-item" href="https://help.github.com">Support</a>
+          <a class="nav-item header-search-link" href="https://github.com/search">Search GitHub</a>
+              <div class="header-search scoped-search site-scoped-search js-site-search" role="search">
+  <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/jline/jline2/search" class="js-site-search-form" data-scoped-search-url="/jline/jline2/search" data-unscoped-search-url="/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
+    <label class="form-control header-search-wrapper js-chromeless-input-container">
+      <div class="header-search-scope">This repository</div>
+      <input type="text"
+        class="form-control header-search-input js-site-search-focus js-site-search-field is-clearable"
+        data-hotkey="s"
+        name="q"
+        placeholder="Search"
+        aria-label="Search this repository"
+        data-unscoped-placeholder="Search GitHub"
+        data-scoped-placeholder="Search"
+        tabindex="1"
+        autocapitalize="off">
+    </label>
+</form></div>
+
+        </nav>
+    </div>
+  </div>
+</header>
+
+
+
+    <div id="start-of-content" class="accessibility-aid"></div>
+
+      <div id="js-flash-container">
+</div>
+
+
+    <div role="main" class="main-content">
+        <div itemscope itemtype="http://schema.org/SoftwareSourceCode">
+    <div id="js-repo-pjax-container" data-pjax-container>
+      
+<div class="pagehead repohead instapaper_ignore readability-menu experiment-repo-nav">
+  <div class="container repohead-details-container">
+
+    
+
+<ul class="pagehead-actions">
+
+  <li>
+      <a href="/login?return_to=%2Fjline%2Fjline2"
+    class="btn btn-sm btn-with-count tooltipped tooltipped-n"
+    aria-label="You must be signed in to watch a repository" rel="nofollow">
+    <svg aria-hidden="true" class="octicon octicon-eye" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6c4.94 0 7.94-6 7.94-6S13 2 8.06 2z m-0.06 10c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4z m2-4c0 1.11-0.89 2-2 2s-2-0.89-2-2 0.89-2 2-2 2 0.89 2 2z"></path></svg>
+    Watch
+  </a>
+  <a class="social-count" href="/jline/jline2/watchers">
+    52
+  </a>
+
+  </li>
+
+  <li>
+      <a href="/login?return_to=%2Fjline%2Fjline2"
+    class="btn btn-sm btn-with-count tooltipped tooltipped-n"
+    aria-label="You must be signed in to star a repository" rel="nofollow">
+    <svg aria-hidden="true" class="octicon octicon-star" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M14 6l-4.9-0.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14l4.33-2.33 4.33 2.33L10.4 9.26 14 6z"></path></svg>
+    Star
+  </a>
+
+    <a class="social-count js-social-count" href="/jline/jline2/stargazers">
+      516
+    </a>
+
+  </li>
+
+  <li>
+      <a href="/login?return_to=%2Fjline%2Fjline2"
+        class="btn btn-sm btn-with-count tooltipped tooltipped-n"
+        aria-label="You must be signed in to fork a repository" rel="nofollow">
+        <svg aria-hidden="true" class="octicon octicon-repo-forked" height="16" version="1.1" viewBox="0 0 10 16" width="10"><path d="M8 1c-1.11 0-2 0.89-2 2 0 0.73 0.41 1.38 1 1.72v1.28L5 8 3 6v-1.28c0.59-0.34 1-0.98 1-1.72 0-1.11-0.89-2-2-2S0 1.89 0 3c0 0.73 0.41 1.38 1 1.72v1.78l3 3v1.78c-0.59 0.34-1 0.98-1 1.72 0 1.11 0.89 2 2 2s2-0.89 2-2c0-0.73-0.41-1.38-1-1.72V9.5l3-3V4.72c0.59-0.34 1-0.98 1-1.72 0-1.11-0.89-2-2-2zM2 4.2c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z m3 10c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z m3-10c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z"></path></svg>
+        Fork
+      </a>
+
+    <a href="/jline/jline2/network" class="social-count">
+      143
+    </a>
+  </li>
+</ul>
+
+    <h1 class="entry-title public ">
+  <svg aria-hidden="true" class="octicon octicon-repo" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M4 9h-1v-1h1v1z m0-3h-1v1h1v-1z m0-2h-1v1h1v-1z m0-2h-1v1h1v-1z m8-1v12c0 0.55-0.45 1-1 1H6v2l-1.5-1.5-1.5 1.5V14H1c-0.55 0-1-0.45-1-1V1C0 0.45 0.45 0 1 0h10c0.55 0 1 0.45 1 1z m-1 10H1v2h2v-1h3v1h5V11z m0-10H2v9h9V1z"></path></svg>
+  <span class="author" itemprop="author"><a href="/jline" class="url fn" rel="author">jline</a></span><!--
+--><span class="path-divider">/</span><!--
+--><strong itemprop="name"><a href="/jline/jline2" data-pjax="#js-repo-pjax-container">jline2</a></strong>
+
+</h1>
+
+  </div>
+  <div class="container">
+    
+<nav class="reponav js-repo-nav js-sidenav-container-pjax"
+     itemscope
+     itemtype="http://schema.org/BreadcrumbList"
+     role="navigation"
+     data-pjax="#js-repo-pjax-container">
+
+  <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
+    <a href="/jline/jline2" aria-selected="true" class="js-selected-navigation-item selected reponav-item" data-hotkey="g c" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches /jline/jline2" itemprop="url">
+      <svg aria-hidden="true" class="octicon octicon-code" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M9.5 3l-1.5 1.5 3.5 3.5L8 11.5l1.5 1.5 4.5-5L9.5 3zM4.5 3L0 8l4.5 5 1.5-1.5L2.5 8l3.5-3.5L4.5 3z"></path></svg>
+      <span itemprop="name">Code</span>
+      <meta itemprop="position" content="1">
+</a>  </span>
+
+    <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
+      <a href="/jline/jline2/issues" class="js-selected-navigation-item reponav-item" data-hotkey="g i" data-selected-links="repo_issues repo_labels repo_milestones /jline/jline2/issues" itemprop="url">
+        <svg aria-hidden="true" class="octicon octicon-issue-opened" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v5h2V4z m0 6H6v2h2V10z"></path></svg>
+        <span itemprop="name">Issues</span>
+        <span class="counter">42</span>
+        <meta itemprop="position" content="2">
+</a>    </span>
+
+  <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
+    <a href="/jline/jline2/pulls" class="js-selected-navigation-item reponav-item" data-hotkey="g p" data-selected-links="repo_pulls /jline/jline2/pulls" itemprop="url">
+      <svg aria-hidden="true" class="octicon octicon-git-pull-request" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M11 11.28c0-1.73 0-6.28 0-6.28-0.03-0.78-0.34-1.47-0.94-2.06s-1.28-0.91-2.06-0.94c0 0-1.02 0-1 0V0L4 3l3 3V4h1c0.27 0.02 0.48 0.11 0.69 0.31s0.3 0.42 0.31 0.69v6.28c-0.59 0.34-1 0.98-1 1.72 0 1.11 0.89 2 2 2s2-0.89 2-2c0-0.73-0.41-1.38-1-1.72z m-1 2.92c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2zM4 3c0-1.11-0.89-2-2-2S0 1.89 0 3c0 0.73 0.41 1.38 1 1.72 0 1.55 0 5.56 0 6.56-0.59 0.34-1 0.98-1 1.72 0 1.11 0.89 2 2 2s2-0.89 2-2c0-0.73-0.41-1.38-1-1.72V4.72c0.59-0.34 1-0.98 1-1.72z m-0.8 10c0 0.66-0.55 1.2-1.2 1.2s-1.2-0.55-1.2-1.2 0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2z m-1.2-8.8c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z"></path></svg>
+      <span itemprop="name">Pull requests</span>
+      <span class="counter">10</span>
+      <meta itemprop="position" content="3">
+</a>  </span>
+
+    <a href="/jline/jline2/wiki" class="js-selected-navigation-item reponav-item" data-hotkey="g w" data-selected-links="repo_wiki /jline/jline2/wiki">
+      <svg aria-hidden="true" class="octicon octicon-book" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M2 5h4v1H2v-1z m0 3h4v-1H2v1z m0 2h4v-1H2v1z m11-5H9v1h4v-1z m0 2H9v1h4v-1z m0 2H9v1h4v-1z m2-6v9c0 0.55-0.45 1-1 1H8.5l-1 1-1-1H1c-0.55 0-1-0.45-1-1V3c0-0.55 0.45-1 1-1h5.5l1 1 1-1h5.5c0.55 0 1 0.45 1 1z m-8 0.5l-0.5-0.5H1v9h6V3.5z m7-0.5H8.5l-0.5 0.5v8.5h6V3z"></path></svg>
+      Wiki
+</a>
+  <a href="/jline/jline2/pulse" class="js-selected-navigation-item reponav-item" data-selected-links="pulse /jline/jline2/pulse">
+    <svg aria-hidden="true" class="octicon octicon-pulse" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M11.5 8L8.8 5.4 6.6 8.5 5.5 1.6 2.38 8H0V10h3.6L4.5 8.2l0.9 5.4L9 8.5l1.6 1.5H14V8H11.5z"></path></svg>
+    Pulse
+</a>
+  <a href="/jline/jline2/graphs" class="js-selected-navigation-item reponav-item" data-selected-links="repo_graphs repo_contributors /jline/jline2/graphs">
+    <svg aria-hidden="true" class="octicon octicon-graph" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M16 14v1H0V0h1v14h15z m-11-1H3V8h2v5z m4 0H7V3h2v10z m4 0H11V6h2v7z"></path></svg>
+    Graphs
+</a>
+
+</nav>
+
+  </div>
+</div>
+
+<div class="container new-discussion-timeline experiment-repo-nav">
+  <div class="repository-content">
+
+    
+
+<a href="/jline/jline2/blob/11a3808f302b945d0cc424536299a9c96ccc996f/LICENSE.txt" class="hidden js-permalink-shortcut" data-hotkey="y">Permalink</a>
+
+<!-- blob contrib key: blob_contributors:v21:867b3fde20872fa09c2b14d3375ca729 -->
+
+<div class="file-navigation js-zeroclipboard-container">
+  
+<div class="select-menu js-menu-container js-select-menu left">
+  <button class="btn btn-sm select-menu-button js-menu-target css-truncate" data-hotkey="w"
+    title="master"
+    type="button" aria-label="Switch branches or tags" tabindex="0" aria-haspopup="true">
+    <i>Branch:</i>
+    <span class="js-select-button css-truncate-target">master</span>
+  </button>
+
+  <div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax aria-hidden="true">
+
+    <div class="select-menu-modal">
+      <div class="select-menu-header">
+        <svg aria-label="Close" class="octicon octicon-x js-menu-close" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75-1.48-1.48 3.75-3.75L0.77 4.25l1.48-1.48 3.75 3.75 3.75-3.75 1.48 1.48-3.75 3.75z"></path></svg>
+        <span class="select-menu-title">Switch branches/tags</span>
+      </div>
+
+      <div class="select-menu-filters">
+        <div class="select-menu-text-filter">
+          <input type="text" aria-label="Filter branches/tags" id="context-commitish-filter-field" class="form-control js-filterable-field js-navigation-enable" placeholder="Filter branches/tags">
+        </div>
+        <div class="select-menu-tabs">
+          <ul>
+            <li class="select-menu-tab">
+              <a href="#" data-tab-filter="branches" data-filter-placeholder="Filter branches/tags" class="js-select-menu-tab" role="tab">Branches</a>
+            </li>
+            <li class="select-menu-tab">
+              <a href="#" data-tab-filter="tags" data-filter-placeholder="Find a tag…" class="js-select-menu-tab" role="tab">Tags</a>
+            </li>
+          </ul>
+        </div>
+      </div>
+
+      <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches" role="menu">
+
+        <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
+
+
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+               href="/jline/jline2/blob/consistent-license-headers/LICENSE.txt"
+               data-name="consistent-license-headers"
+               data-skip-pjax="true"
+               rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text" title="consistent-license-headers">
+                consistent-license-headers
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+               href="/jline/jline2/blob/gh-pages/LICENSE.txt"
+               data-name="gh-pages"
+               data-skip-pjax="true"
+               rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text" title="gh-pages">
+                gh-pages
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+               href="/jline/jline2/blob/jline3/LICENSE.txt"
+               data-name="jline3"
+               data-skip-pjax="true"
+               rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text" title="jline3">
+                jline3
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open selected"
+               href="/jline/jline2/blob/master/LICENSE.txt"
+               data-name="master"
+               data-skip-pjax="true"
+               rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text" title="master">
+                master
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+               href="/jline/jline2/blob/non_bmp_characters/LICENSE.txt"
+               data-name="non_bmp_characters"
+               data-skip-pjax="true"
+               rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text" title="non_bmp_characters">
+                non_bmp_characters
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+               href="/jline/jline2/blob/vi-cleanup/LICENSE.txt"
+               data-name="vi-cleanup"
+               data-skip-pjax="true"
+               rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text" title="vi-cleanup">
+                vi-cleanup
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+               href="/jline/jline2/blob/vi-search-fix/LICENSE.txt"
+               data-name="vi-search-fix"
+               data-skip-pjax="true"
+               rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text" title="vi-search-fix">
+                vi-search-fix
+              </span>
+            </a>
+        </div>
+
+          <div class="select-menu-no-results">Nothing to show</div>
+      </div>
+
+      <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
+        <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
+
+
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.14.1/LICENSE.txt"
+              data-name="jline-2.14.1"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.14.1">
+                jline-2.14.1
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.14/LICENSE.txt"
+              data-name="jline-2.14"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.14">
+                jline-2.14
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.13/LICENSE.txt"
+              data-name="jline-2.13"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.13">
+                jline-2.13
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.12.1/LICENSE.txt"
+              data-name="jline-2.12.1"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.12.1">
+                jline-2.12.1
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.12/LICENSE.txt"
+              data-name="jline-2.12"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.12">
+                jline-2.12
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.11/LICENSE.txt"
+              data-name="jline-2.11"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.11">
+                jline-2.11
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.10/LICENSE.txt"
+              data-name="jline-2.10"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.10">
+                jline-2.10
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.9/LICENSE.txt"
+              data-name="jline-2.9"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.9">
+                jline-2.9
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.8/LICENSE.txt"
+              data-name="jline-2.8"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.8">
+                jline-2.8
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.7/LICENSE.txt"
+              data-name="jline-2.7"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.7">
+                jline-2.7
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.6/LICENSE.txt"
+              data-name="jline-2.6"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.6">
+                jline-2.6
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.5/LICENSE.txt"
+              data-name="jline-2.5"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.5">
+                jline-2.5
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.4/LICENSE.txt"
+              data-name="jline-2.4"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.4">
+                jline-2.4
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.3/LICENSE.txt"
+              data-name="jline-2.3"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.3">
+                jline-2.3
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.2.1/LICENSE.txt"
+              data-name="jline-2.2.1"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.2.1">
+                jline-2.2.1
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.1/LICENSE.txt"
+              data-name="jline-2.1"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.1">
+                jline-2.1
+              </span>
+            </a>
+            <a class="select-menu-item js-navigation-item js-navigation-open "
+              href="/jline/jline2/tree/jline-2.0/LICENSE.txt"
+              data-name="jline-2.0"
+              data-skip-pjax="true"
+              rel="nofollow">
+              <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
+              <span class="select-menu-item-text css-truncate-target" title="jline-2.0">
+                jline-2.0
+              </span>
+            </a>
+        </div>
+
+        <div class="select-menu-no-results">Nothing to show</div>
+      </div>
+
+    </div>
+  </div>
+</div>
+
+  <div class="btn-group right">
+    <a href="/jline/jline2/find/master"
+          class="js-pjax-capture-input btn btn-sm"
+          data-pjax
+          data-hotkey="t">
+      Find file
+    </a>
+    <button aria-label="Copy file path to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button tooltipped tooltipped-s" data-copied-hint="Copied!" type="button">Copy path</button>
+  </div>
+  <div class="breadcrumb js-zeroclipboard-target">
+    <span class="repo-root js-repo-root"><span class="js-path-segment"><a href="/jline/jline2"><span>jline2</span></a></span></span><span class="separator">/</span><strong class="final-path">LICENSE.txt</strong>
+  </div>
+</div>
+
+
+  <div class="commit-tease">
+      <span class="right">
+        <a class="commit-tease-sha" href="/jline/jline2/commit/f9b8398fa92b7de099ab9dd27b83b86239cc0516" data-pjax>
+          f9b8398
+        </a>
+        <time datetime="2016-03-14T10:57:48Z" is="relative-time">Mar 14, 2016</time>
+      </span>
+      <div>
+        <img alt="@gnodet" class="avatar" height="20" src="https://avatars2.githubusercontent.com/u/84022?v=3&amp;s=40" width="20" />
+        <a href="/gnodet" class="user-mention" rel="contributor">gnodet</a>
+          <a href="/jline/jline2/commit/f9b8398fa92b7de099ab9dd27b83b86239cc0516" class="message" data-pjax="true" title="Update copyright">Update copyright</a>
+      </div>
+
+    <div class="commit-tease-contributors">
+      <button type="button" class="btn-link muted-link contributors-toggle" data-facebox="#blob_contributors_box">
+        <strong>2</strong>
+         contributors
+      </button>
+          <a class="avatar-link tooltipped tooltipped-s" aria-label="gnodet" href="/jline/jline2/commits/master/LICENSE.txt?author=gnodet"><img alt="@gnodet" class="avatar" height="20" src="https://avatars2.githubusercontent.com/u/84022?v=3&amp;s=40" width="20" /> </a>
+    <a class="avatar-link tooltipped tooltipped-s" aria-label="jdillon" href="/jline/jline2/commits/master/LICENSE.txt?author=jdillon"><img alt="@jdillon" class="avatar" height="20" src="https://avatars2.githubusercontent.com/u/20114?v=3&amp;s=40" width="20" /> </a>
+
+
+    </div>
+
+    <div id="blob_contributors_box" style="display:none">
+      <h2 class="facebox-header" data-facebox-id="facebox-header">Users who have contributed to this file</h2>
+      <ul class="facebox-user-list" data-facebox-id="facebox-description">
+          <li class="facebox-user-list-item">
+            <img alt="@gnodet" height="24" src="https://avatars0.githubusercontent.com/u/84022?v=3&amp;s=48" width="24" />
+            <a href="/gnodet">gnodet</a>
+          </li>
+          <li class="facebox-user-list-item">
+            <img alt="@jdillon" height="24" src="https://avatars0.githubusercontent.com/u/20114?v=3&amp;s=48" width="24" />
+            <a href="/jdillon">jdillon</a>
+          </li>
+      </ul>
+    </div>
+  </div>
+
+<div class="file">
+  <div class="file-header">
+  <div class="file-actions">
+
+    <div class="btn-group">
+      <a href="/jline/jline2/raw/master/LICENSE.txt" class="btn btn-sm " id="raw-url">Raw</a>
+        <a href="/jline/jline2/blame/master/LICENSE.txt" class="btn btn-sm js-update-url-with-hash">Blame</a>
+      <a href="/jline/jline2/commits/master/LICENSE.txt" class="btn btn-sm " rel="nofollow">History</a>
+    </div>
+
+
+        <button type="button" class="btn-octicon disabled tooltipped tooltipped-nw"
+          aria-label="You must be signed in to make or propose changes">
+          <svg aria-hidden="true" class="octicon octicon-pencil" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M0 12v3h3l8-8-3-3L0 12z m3 2H1V12h1v1h1v1z m10.3-9.3l-1.3 1.3-3-3 1.3-1.3c0.39-0.39 1.02-0.39 1.41 0l1.59 1.59c0.39 0.39 0.39 1.02 0 1.41z"></path></svg>
+        </button>
+        <button type="button" class="btn-octicon btn-octicon-danger disabled tooltipped tooltipped-nw"
+          aria-label="You must be signed in to make or propose changes">
+          <svg aria-hidden="true" class="octicon octicon-trashcan" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M10 2H8c0-0.55-0.45-1-1-1H4c-0.55 0-1 0.45-1 1H1c-0.55 0-1 0.45-1 1v1c0 0.55 0.45 1 1 1v9c0 0.55 0.45 1 1 1h7c0.55 0 1-0.45 1-1V5c0.55 0 1-0.45 1-1v-1c0-0.55-0.45-1-1-1z m-1 12H2V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9z m1-10H1v-1h9v1z"></path></svg>
+        </button>
+  </div>
+
+  <div class="file-info">
+      36 lines (28 sloc)
+      <span class="file-info-divider"></span>
+    1.5 KB
+  </div>
+</div>
+
+  
+
+  <div itemprop="text" class="blob-wrapper data type-text">
+      <table class="highlight tab-size js-file-line-container" data-tab-size="8">
+      <tr>
+        <td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
+        <td id="LC1" class="blob-code blob-code-inner js-file-line">Copyright (c) 2002-2016, the original author or authors.</td>
+      </tr>
+      <tr>
+        <td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
+        <td id="LC2" class="blob-code blob-code-inner js-file-line">All rights reserved.</td>
+      </tr>
+      <tr>
+        <td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
+        <td id="LC3" class="blob-code blob-code-inner js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
+        <td id="LC4" class="blob-code blob-code-inner js-file-line">http://www.opensource.org/licenses/bsd-license.php</td>
+      </tr>
+      <tr>
+        <td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
+        <td id="LC5" class="blob-code blob-code-inner js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
+        <td id="LC6" class="blob-code blob-code-inner js-file-line">Redistribution and use in source and binary forms, with or</td>
+      </tr>
+      <tr>
+        <td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
+        <td id="LC7" class="blob-code blob-code-inner js-file-line">without modification, are permitted provided that the following</td>
+      </tr>
+      <tr>
+        <td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
+        <td id="LC8" class="blob-code blob-code-inner js-file-line">conditions are met:</td>
+      </tr>
+      <tr>
+        <td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
+        <td id="LC9" class="blob-code blob-code-inner js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
+        <td id="LC10" class="blob-code blob-code-inner js-file-line">Redistributions of source code must retain the above copyright</td>
+      </tr>
+      <tr>
+        <td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
+        <td id="LC11" class="blob-code blob-code-inner js-file-line">notice, this list of conditions and the following disclaimer.</td>
+      </tr>
+      <tr>
+        <td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
+        <td id="LC12" class="blob-code blob-code-inner js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
+        <td id="LC13" class="blob-code blob-code-inner js-file-line">Redistributions in binary form must reproduce the above copyright</td>
+      </tr>
+      <tr>
+        <td id="L14" class="blob-num js-line-number" data-line-number="14"></td>
+        <td id="LC14" class="blob-code blob-code-inner js-file-line">notice, this list of conditions and the following disclaimer</td>
+      </tr>
+      <tr>
+        <td id="L15" class="blob-num js-line-number" data-line-number="15"></td>
+        <td id="LC15" class="blob-code blob-code-inner js-file-line">in the documentation and/or other materials provided with</td>
+      </tr>
+      <tr>
+        <td id="L16" class="blob-num js-line-number" data-line-number="16"></td>
+        <td id="LC16" class="blob-code blob-code-inner js-file-line">the distribution.</td>
+      </tr>
+      <tr>
+        <td id="L17" class="blob-num js-line-number" data-line-number="17"></td>
+        <td id="LC17" class="blob-code blob-code-inner js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L18" class="blob-num js-line-number" data-line-number="18"></td>
+        <td id="LC18" class="blob-code blob-code-inner js-file-line">Neither the name of JLine nor the names of its contributors</td>
+      </tr>
+      <tr>
+        <td id="L19" class="blob-num js-line-number" data-line-number="19"></td>
+        <td id="LC19" class="blob-code blob-code-inner js-file-line">may be used to endorse or promote products derived from this</td>
+      </tr>
+      <tr>
+        <td id="L20" class="blob-num js-line-number" data-line-number="20"></td>
+        <td id="LC20" class="blob-code blob-code-inner js-file-line">software without specific prior written permission.</td>
+      </tr>
+      <tr>
+        <td id="L21" class="blob-num js-line-number" data-line-number="21"></td>
+        <td id="LC21" class="blob-code blob-code-inner js-file-line">
+</td>
+      </tr>
+      <tr>
+        <td id="L22" class="blob-num js-line-number" data-line-number="22"></td>
+        <td id="LC22" class="blob-code blob-code-inner js-file-line">THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</td>
+      </tr>
+      <tr>
+        <td id="L23" class="blob-num js-line-number" data-line-number="23"></td>
+        <td id="LC23" class="blob-code blob-code-inner js-file-line">&quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,</td>
+      </tr>
+      <tr>
+        <td id="L24" class="blob-num js-line-number" data-line-number="24"></td>
+        <td id="LC24" class="blob-code blob-code-inner js-file-line">BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY</td>
+      </tr>
+      <tr>
+        <td id="L25" class="blob-num js-line-number" data-line-number="25"></td>
+        <td id="LC25" class="blob-code blob-code-inner js-file-line">AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO</td>
+      </tr>
+      <tr>
+        <td id="L26" class="blob-num js-line-number" data-line-number="26"></td>
+        <td id="LC26" class="blob-code blob-code-inner js-file-line">EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE</td>
+      </tr>
+      <tr>
+        <td id="L27" class="blob-num js-line-number" data-line-number="27"></td>
+        <td id="LC27" class="blob-code blob-code-inner js-file-line">FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,</td>
+      </tr>
+      <tr>
+        <td id="L28" class="blob-num js-line-number" data-line-number="28"></td>
+        <td id="LC28" class="blob-code blob-code-inner js-file-line">OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</td>
+      </tr>
+      <tr>
+        <td id="L29" class="blob-num js-line-number" data-line-number="29"></td>
+        <td id="LC29" class="blob-code blob-code-inner js-file-line">PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</td>
+      </tr>
+      <tr>
+        <td id="L30" class="blob-num js-line-number" data-line-number="30"></td>
+        <td id="LC30" class="blob-code blob-code-inner js-file-line">DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED</td>
+      </tr>
+      <tr>
+        <td id="L31" class="blob-num js-line-number" data-line-number="31"></td>
+        <td id="LC31" class="blob-code blob-code-inner js-file-line">AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT</td>
+      </tr>
+      <tr>
+        <td id="L32" class="blob-num js-line-number" data-line-number="32"></td>
+        <td id="LC32" class="blob-code blob-code-inner js-file-line">LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING</td>
+      </tr>
+      <tr>
+        <td id="L33" class="blob-num js-line-number" data-line-number="33"></td>
+        <td id="LC33" class="blob-code blob-code-inner js-file-line">IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED</td>
+      </tr>
+      <tr>
+        <td id="L34" class="blob-num js-line-number" data-line-number="34"></td>
+        <td id="LC34" class="blob-code blob-code-inner js-file-line">OF THE POSSIBILITY OF SUCH DAMAGE.</td>
+      </tr>
+      <tr>
+        <td id="L35" class="blob-num js-line-number" data-line-number="35"></td>
+        <td id="LC35" class="blob-code blob-code-inner js-file-line">
+</td>
+      </tr>
+</table>
+
+  </div>
+
+</div>
+
+<button type="button" data-facebox="#jump-to-line" data-facebox-class="linejump" data-hotkey="l" class="hidden">Jump to Line</button>
+<div id="jump-to-line" style="display:none">
+  <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="" class="js-jump-to-line-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
+    <input class="form-control linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line&hellip;" aria-label="Jump to line" autofocus>
+    <button type="submit" class="btn">Go</button>
+</form></div>
+
+  </div>
+  <div class="modal-backdrop"></div>
+</div>
+
+
+    </div>
+  </div>
+
+    </div>
+
+        <div class="container site-footer-container">
+  <div class="site-footer" role="contentinfo">
+    <ul class="site-footer-links right">
+        <li><a href="https://status.github.com/" data-ga-click="Footer, go to status, text:status">Status</a></li>
+      <li><a href="https://developer.github.com" data-ga-click="Footer, go to api, text:api">API</a></li>
+      <li><a href="https://training.github.com" data-ga-click="Footer, go to training, text:training">Training</a></li>
+      <li><a href="https://shop.github.com" data-ga-click="Footer, go to shop, text:shop">Shop</a></li>
+        <li><a href="https://github.com/blog" data-ga-click="Footer, go to blog, text:blog">Blog</a></li>
+        <li><a href="https://github.com/about" data-ga-click="Footer, go to about, text:about">About</a></li>
+
+    </ul>
+
+    <a href="https://github.com" aria-label="Homepage" class="site-footer-mark">
+      <svg aria-hidden="true" class="octicon octicon-mark-github" height="24" title="GitHub " version="1.1" viewBox="0 0 16 16" width="24"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59 0.4 0.07 0.55-0.17 0.55-0.38 0-0.19-0.01-0.82-0.01-1.49-2.01 0.37-2.53-0.49-2.69-0.94-0.09-0.23-0.48-0.94-0.82-1.13-0.28-0.15-0.68-0.52-0.01-0.53 0.63-0.01 1.08 0.58 1.23 0.82 0.72 1.21 1.87 0.87 2.33 0.66 0.07-0.52 0.28-0.87 0.51-1.07-1.78-0.2-3.64-0.89-3.64-3.95 0-0.87 0.31-1.59 0.82-2.15-0.08-0.2-0.36-1.02 0.08-2.12 0 0 0.67-0.21 2.2 0.82 0.64-0.18 1.32-0.27 2-0.27 0.68 0 1.36 0.09 2 0.27 1.53-1.04 2.2-0.82 2.2-0.82 0.44 1.1 0.16 1.92 0.08 2.12 0.51 0.56 0.82 1.27 0.82 2.15 0 3.07-1.87 3.75-3.65 3.95 0.29 0.25 0.54 0.73 0.54 1.48 0 1.07-0.01 1.93-0.01 2.2 0 0.21 0.15 0.46 0.55 0.38C13.71 14.53 16 11.53 16 8 16 3.58 12.42 0 8 0z"></path></svg>
+</a>
+    <ul class="site-footer-links">
+      <li>&copy; 2016 <span title="0.09880s from github-fe137-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
+        <li><a href="https://github.com/site/terms" data-ga-click="Footer, go to terms, text:terms">Terms</a></li>
+        <li><a href="https://github.com/site/privacy" data-ga-click="Footer, go to privacy, text:privacy">Privacy</a></li>
+        <li><a href="https://github.com/security" data-ga-click="Footer, go to security, text:security">Security</a></li>
+        <li><a href="https://github.com/contact" data-ga-click="Footer, go to contact, text:contact">Contact</a></li>
+        <li><a href="https://help.github.com" data-ga-click="Footer, go to help, text:help">Help</a></li>
+    </ul>
+  </div>
+</div>
+
+
+
+    
+    
+
+    <div id="ajax-error-message" class="ajax-error-message flash flash-error">
+      <svg aria-hidden="true" class="octicon octicon-alert" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M15.72 12.5l-6.85-11.98C8.69 0.21 8.36 0.02 8 0.02s-0.69 0.19-0.87 0.5l-6.85 11.98c-0.18 0.31-0.18 0.69 0 1C0.47 13.81 0.8 14 1.15 14h13.7c0.36 0 0.69-0.19 0.86-0.5S15.89 12.81 15.72 12.5zM9 12H7V10h2V12zM9 9H7V5h2V9z"></path></svg>
+      <button type="button" class="flash-close js-flash-close js-ajax-error-dismiss" aria-label="Dismiss error">
+        <svg aria-hidden="true" class="octicon octicon-x" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75-1.48-1.48 3.75-3.75L0.77 4.25l1.48-1.48 3.75 3.75 3.75-3.75 1.48 1.48-3.75 3.75z"></path></svg>
+      </button>
+      Something went wrong with that request. Please try again.
+    </div>
+
+
+      <script crossorigin="anonymous" src="https://assets-cdn.github.com/assets/compat-7db58f8b7b91111107fac755dd8b178fe7db0f209ced51fc339c446ad3f8da2b.js"></script>
+      <script crossorigin="anonymous" src="https://assets-cdn.github.com/assets/frameworks-9eb0ddac6d1c94c56980360abcade2abb10d27d7880f7ee7bf6640c2c2a06fc8.js"></script>
+      <script async="async" crossorigin="anonymous" src="https://assets-cdn.github.com/assets/github-4ddbe43ff9bf343ea4e58a83f44f72427d4c0e030722f47eb6ea4d231abfa161.js"></script>
+      
+      
+      
+      
+      
+    <div class="js-stale-session-flash stale-session-flash flash flash-warn flash-banner hidden">
+      <svg aria-hidden="true" class="octicon octicon-alert" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M15.72 12.5l-6.85-11.98C8.69 0.21 8.36 0.02 8 0.02s-0.69 0.19-0.87 0.5l-6.85 11.98c-0.18 0.31-0.18 0.69 0 1C0.47 13.81 0.8 14 1.15 14h13.7c0.36 0 0.69-0.19 0.86-0.5S15.89 12.81 15.72 12.5zM9 12H7V10h2V12zM9 9H7V5h2V9z"></path></svg>
+      <span class="signed-in-tab-flash">You signed in with another tab or window. <a href="">Reload</a> to refresh your session.</span>
+      <span class="signed-out-tab-flash">You signed out in another tab or window. <a href="">Reload</a> to refresh your session.</span>
+    </div>
+    <div class="facebox" id="facebox" style="display:none;">
+  <div class="facebox-popup">
+    <div class="facebox-content" role="dialog" aria-labelledby="facebox-header" aria-describedby="facebox-description">
+    </div>
+    <button type="button" class="facebox-close js-facebox-close" aria-label="Close modal">
+      <svg aria-hidden="true" class="octicon octicon-x" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75-1.48-1.48 3.75-3.75L0.77 4.25l1.48-1.48 3.75 3.75 3.75-3.75 1.48 1.48-3.75 3.75z"></path></svg>
+    </button>
+  </div>
+</div>
+
+  </body>
+</html>
+

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/LICENSE-jopt-simple.txt
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/LICENSE-jopt-simple.txt b/etc/legal/licenses/LICENSE-jopt-simple.txt
new file mode 100644
index 0000000..85f923a
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-jopt-simple.txt
@@ -0,0 +1,24 @@
+/*
+ The MIT License
+
+ Copyright (c) 2004-2015 Paul R. Holser, Jr.
+
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/LICENSE-scala-stm.txt
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/LICENSE-scala-stm.txt b/etc/legal/licenses/LICENSE-scala-stm.txt
new file mode 100644
index 0000000..1b7a9a4
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-scala-stm.txt
@@ -0,0 +1,24 @@
+All of the source code and documentation that has been developed by the Scala STM Expert Group is available under a modified-BSD license.
+Copyright (c) 2009-2012 Stanford University, unless otherwise specified.
+All rights reserved.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+    * Neither the name of the Stanford University nor the
+      names of its contributors may be used to endorse or promote products
+      derived from this software without specific prior written permission.
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL STANFORD UNIVERSITY BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/LICENSE-scala.txt
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/LICENSE-scala.txt b/etc/legal/licenses/LICENSE-scala.txt
new file mode 100644
index 0000000..13fa6de
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-scala.txt
@@ -0,0 +1,11 @@
+Copyright (c) 2002-2016 EPFL
+Copyright (c) 2011-2016 Lightbend, Inc. (formerly Typesafe, Inc.)
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+Neither the name of the EPFL nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/LICENSE-scalaz.txt
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/LICENSE-scalaz.txt b/etc/legal/licenses/LICENSE-scalaz.txt
new file mode 100644
index 0000000..e6ce843
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-scalaz.txt
@@ -0,0 +1,24 @@
+Copyright (c) 2009-2014 Tony Morris, Runar Bjarnason, Tom Adams, Kristian Domagala, Brad Clow, Ricky Clarkson, Paul Chiusano, Trygve Laugstøl, Nick Partridge, Jason Zaugg
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. The name of the author may not be used to endorse or promote products
+   derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/LICENSE-slf4j.txt
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/LICENSE-slf4j.txt b/etc/legal/licenses/LICENSE-slf4j.txt
new file mode 100644
index 0000000..37050c9
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-slf4j.txt
@@ -0,0 +1,21 @@
+ Copyright (c) 2004-2013 QOS.ch
+ All rights reserved.
+
+ Permission is hereby granted, free  of charge, to any person obtaining
+ a  copy  of this  software  and  associated  documentation files  (the
+ "Software"), to  deal in  the Software without  restriction, including
+ without limitation  the rights to  use, copy, modify,  merge, publish,
+ distribute,  sublicense, and/or sell  copies of  the Software,  and to
+ permit persons to whom the Software  is furnished to do so, subject to
+ the following conditions:
+ 
+ The  above  copyright  notice  and  this permission  notice  shall  be
+ included in all copies or substantial portions of the Software.
+ 
+ THE  SOFTWARE IS  PROVIDED  "AS  IS", WITHOUT  WARRANTY  OF ANY  KIND,
+ EXPRESS OR  IMPLIED, INCLUDING  BUT NOT LIMITED  TO THE  WARRANTIES OF
+ MERCHANTABILITY,    FITNESS    FOR    A   PARTICULAR    PURPOSE    AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE,  ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/pip_install/MANIFEST.in
----------------------------------------------------------------------
diff --git a/etc/pip_install/MANIFEST.in b/etc/pip_install/MANIFEST.in
index 121198d..51a3e5e 100644
--- a/etc/pip_install/MANIFEST.in
+++ b/etc/pip_install/MANIFEST.in
@@ -1,4 +1,5 @@
 recursive-include toree/bin *
 recursive-include toree/lib *
+recursive-include licenses *
 include toree/VERSION toree/DISCLAIMER
-include LICENSE DISCLAIMER NOTICE COPYING COPYING.LESSER
+include LICENSE DISCLAIMER NOTICE \


[15/32] incubator-toree git commit: Pip install fixes to use name Apache Toree and print DISCLAIMER

Posted by ch...@apache.org.
Pip install fixes to use name Apache Toree and print DISCLAIMER


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/79d163eb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/79d163eb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/79d163eb

Branch: refs/heads/master
Commit: 79d163eb14a99f2a705f5a9a923f555353fe9e07
Parents: 269e51d
Author: Gino Bustelo <lb...@apache.org>
Authored: Tue Apr 5 16:35:58 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:39 2016 -0500

----------------------------------------------------------------------
 etc/pip_install/MANIFEST.in       |  2 +-
 etc/pip_install/toree/toreeapp.py | 19 ++++++++++++-------
 2 files changed, 13 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/79d163eb/etc/pip_install/MANIFEST.in
----------------------------------------------------------------------
diff --git a/etc/pip_install/MANIFEST.in b/etc/pip_install/MANIFEST.in
index 26f9a52..e1ae9d9 100644
--- a/etc/pip_install/MANIFEST.in
+++ b/etc/pip_install/MANIFEST.in
@@ -1,4 +1,4 @@
 recursive-include toree/bin *
 recursive-include toree/lib *
-include toree/VERSION
+include toree/VERSION toree/DISCLAIMER
 include LICENSE DISCLAIMER NOTICE

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/79d163eb/etc/pip_install/toree/toreeapp.py
----------------------------------------------------------------------
diff --git a/etc/pip_install/toree/toreeapp.py b/etc/pip_install/toree/toreeapp.py
index 32879bb..989e265 100644
--- a/etc/pip_install/toree/toreeapp.py
+++ b/etc/pip_install/toree/toreeapp.py
@@ -54,11 +54,11 @@ class ToreeInstall(InstallKernelSpec):
     spark_home = Unicode('/usr/local/spark', config=True,
         help='''Specify where the spark files can be found.'''
     )
-    kernel_name = Unicode('Toree', config=True,
+    kernel_name = Unicode('Apache Toree', config=True,
         help='Install the kernel spec with this name. This is also used as the base of the display name in jupyter.'
     )
     interpreters = Unicode('Scala', config=True,
-        help='A comma seperated list of the interpreters to install. The names of the interpreters are case sensitive.'
+        help='A comma separated list of the interpreters to install. The names of the interpreters are case sensitive.'
     )
     spark_opts = Unicode('', config=True,
         help='''Specify command line arguments to proxy for spark config.'''
@@ -102,10 +102,15 @@ class ToreeInstall(InstallKernelSpec):
             json.dump(kernel_spec.to_dict(), f, indent=2)
 
     def start(self):
+        self.log.info('Installing Apache Toree version {}'.format(__version__))
+
         self.sourcedir = os.path.abspath(os.path.join(os.path.dirname(__file__)))
+
+        disclaimer_file = open(os.path.join(self.sourcedir, 'DISCLAIMER'))
+        self.log.info('\n{}'.format(disclaimer_file.read()))
         for interpreter in self.interpreters.split(','):
             if interpreter in INTERPRETER_LANGUAGES:
-                self.log.info('Installing toree kernel with interpreter {}'.format(interpreter))
+                self.log.info('Creating kernel {}'.format(interpreter))
                 install_dir = self.kernel_spec_manager.install_kernel_spec(self.sourcedir,
                      kernel_name='{}_{}'.format(self.kernel_name, interpreter.lower()).replace(' ', '_'),
                      user=self.user,
@@ -119,11 +124,11 @@ class ToreeInstall(InstallKernelSpec):
 class ToreeApp(Application):
     version = __version__
     name = 'jupyter toree'
-    description = '''Functions for managing the Toree kernel.
-    This package was built with the following versions of Toree and Spark:
+    description = '''Functions for managing the Apache Toree kernel.
+    This package was built with the following versions of Apache Toree and Spark:
 
-    \tToree Version: {}
-    \tToree Build Commit: {}
+    \tApache Toree Version: {}
+    \tApache Toree Build Commit: {}
     '''.format(__version__, __commit__)
     examples = '''
     jupyter toree install - Installs the kernel as a Jupyter Kernel.


[28/32] incubator-toree git commit: Increase timeout for test in ExecuteRequestHandlerSpec

Posted by ch...@apache.org.
Increase timeout for test in ExecuteRequestHandlerSpec


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/d08b1174
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/d08b1174
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/d08b1174

Branch: refs/heads/master
Commit: d08b1174447f6d966603b6b5b25d91a60f0c7abb
Parents: c23fe1c
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Thu Apr 21 11:32:31 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:47:42 2016 -0500

----------------------------------------------------------------------
 .../kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/d08b1174/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala
index 1054ba3..ac9b7be 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala
@@ -182,7 +182,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
           }
         }
         val fs = (f1 zip f2)
-        Await.ready(fs, 5.seconds)
+        Await.ready(fs, 3 * MaxAkkaTestTimeout)
 
         statusMsgNum should equal(2)
       }


[11/32] incubator-toree git commit: Adding LICENSE/NOTICE/DISCLAIMER to release packages

Posted by ch...@apache.org.
Adding LICENSE/NOTICE/DISCLAIMER to release packages


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/9bf45fc5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/9bf45fc5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/9bf45fc5

Branch: refs/heads/master
Commit: 9bf45fc5f5aaf85d435a9ce33e395d2a0cdebc3a
Parents: 0964d0e
Author: Gino Bustelo <lb...@apache.org>
Authored: Tue Apr 5 15:33:55 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:38 2016 -0500

----------------------------------------------------------------------
 Makefile                    | 42 ++++++++++++++++++++++++++++------------
 etc/pip_install/MANIFEST.in |  1 +
 2 files changed, 31 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9bf45fc5/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 607f8e6..8fc3b03 100644
--- a/Makefile
+++ b/Makefile
@@ -40,9 +40,8 @@ docker run -it --rm \
 endef
 
 define GEN_PIP_PACKAGE_INFO
-printf "__version__ = '$(gitVERSION)'\n" >> dist/toree/_version.py
-printf "__commit__ = '$(COMMIT)'\n" >> dist/toree/_version.py
-endef
+printf "__version__ = '$(VERSION)'\n" >> dist/toree-pip/toree/_version.py
+printf "__commit__ = '$(COMMIT)'\n" >> dist/toree-pip/toree/_version.py
 
 USE_VAGRANT?=
 RUN_PREFIX=$(if $(USE_VAGRANT),vagrant ssh -c "cd $(VM_WORKDIR) && )
@@ -121,23 +120,41 @@ sbt-%:
 	$(call RUN,$(ENV_OPTS) sbt $(subst sbt-,,$@) )
 
 dist: VERSION_FILE=dist/toree/VERSION
-dist: target/scala-2.10/$(ASSEMBLY_JAR) ${shell find ./etc/bin/*}
+dist: dist/toree dist/legal target/scala-2.10/$(ASSEMBLY_JAR) ${shell find ./etc/bin/*}
 	@mkdir -p dist/toree/bin dist/toree/lib
 	@cp -r etc/bin/* dist/toree/bin/.
 	@cp target/scala-2.10/$(ASSEMBLY_JAR) dist/toree/lib/.
-	@cp NOTICE dist/toree
-	@cp LICENSE dist/toree
 	@echo "VERSION: $(VERSION)" > $(VERSION_FILE)
 	@echo "COMMIT: $(COMMIT)" >> $(VERSION_FILE)
 
+dist/toree:
+	@mkdir -p dist/toree
+
+dist/legal: dist/toree/NOTICE dist/toree/LICENSE dist/toree/DISCLAIMER
+
+dist/toree/LICENSE: dist/toree
+	@cp LICENSE dist/toree/LICENSE
+
+dist/toree/NOTICE: dist/toree
+	@cp NOTICE dist/toree/NOTICE
+
+dist/toree/DISCLAIMER: dist/toree
+	@cp DISCLAIMER dist/toree/DISCLAIMER
+
+
 test-travis:
 	$(ENV_OPTS) sbt clean test -Dakka.test.timefactor=3
 	find $(HOME)/.sbt -name "*.lock" | xargs rm
 	find $(HOME)/.ivy2 -name "ivydata-*.properties" | xargs rm
 
-pip-release: DOCKER_WORKDIR=/srv/toree/dist
+pip-release: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
 pip-release: dist
-	@cp -rf etc/pip_install/* dist/.
+	@mkdir -p dist/toree-pip
+	@cp -r dist/toree dist/toree-pip
+	@cp dist/toree/LICENSE dist/toree-pip/LICENSE
+	@cp dist/toree/NOTICE dist/toree-pip/NOTICE
+	@cp dist/toree/DISCLAIMER dist/toree-pip/DISCLAIMER
+	@cp -rf etc/pip_install/* dist/toree-pip/.
 	@$(GEN_PIP_PACKAGE_INFO)
 	@$(DOCKER) $(IMAGE) python setup.py sdist --dist-dir=.
 	@$(DOCKER) -p 8888:8888 --user=root  $(IMAGE) bash -c	'pip install toree-$(VERSION).tar.gz && jupyter toree install'
@@ -145,10 +162,11 @@ pip-release: dist
 audit:
 	@etc/tools/./check-licenses 
 
-bin-release: dist 
-	@(cd dist; tar -cvzf toree-$(VERSION)-binary-release.tar.gz toree)
+bin-release: dist
+	@mkdir dist/toree-bin
+	@(cd dist; tar -cvzf toree-bin/toree-$(VERSION)-binary-release.tar.gz toree)
 
-release: DOCKER_WORKDIR=/srv/toree/dist
+release: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
 release: PYPI_REPO?=https://pypi.python.org/pypi
 release: PYPI_USER?=
 release: PYPI_PASSWORD?=
@@ -166,6 +184,6 @@ jupyter notebook --ip=* --no-browser
 endef
 
 export JUPYTER_COMMAND
-jupyter: DOCKER_WORKDIR=/srv/toree/dist
+jupyter: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
 jupyter: .example-image pip-release
 	@$(DOCKER) -p 8888:8888  -e SPARK_OPTS="--master=local[4]" --user=root  $(EXAMPLE_IMAGE) bash -c "$$JUPYTER_COMMAND"

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9bf45fc5/etc/pip_install/MANIFEST.in
----------------------------------------------------------------------
diff --git a/etc/pip_install/MANIFEST.in b/etc/pip_install/MANIFEST.in
index c57ec25..26f9a52 100644
--- a/etc/pip_install/MANIFEST.in
+++ b/etc/pip_install/MANIFEST.in
@@ -1,3 +1,4 @@
 recursive-include toree/bin *
 recursive-include toree/lib *
 include toree/VERSION
+include LICENSE DISCLAIMER NOTICE


[25/32] incubator-toree git commit: Add GPG signing of jars * Updated sbt-dependency-graph plugin to latest version

Posted by ch...@apache.org.
Add GPG signing of jars
* Updated sbt-dependency-graph plugin to latest version

* Added GPG signing for published jars

* Added environment variable for GPG password and binary

* Added extra legal files to rat-excludes


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/23c3abb6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/23c3abb6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/23c3abb6

Branch: refs/heads/master
Commit: 23c3abb61b0c41efbe83732bf8144338dbcd4cac
Parents: 297914a
Author: Corey Stubbs <ca...@gmail.com>
Authored: Fri Apr 8 16:29:13 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:46:28 2016 -0500

----------------------------------------------------------------------
 Makefile                | 19 ++++++++++++-------
 etc/tools/.rat-excludes |  2 ++
 etc/tools/sign-file     | 11 ++++++-----
 project/Build.scala     |  3 +--
 project/Common.scala    |  7 ++++++-
 project/plugins.sbt     |  5 ++++-
 6 files changed, 31 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/23c3abb6/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 512c723..41aa1b0 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,8 @@ endif
 APACHE_SPARK_VERSION?=1.6.1
 IMAGE?=jupyter/pyspark-notebook:8dfd60b729bf
 EXAMPLE_IMAGE?=apache/toree-examples
+GPG?=/usr/local/bin/gpg
+GPG_PASSWORD?=
 BINDER_IMAGE?=apache/toree-binder
 DOCKER_WORKDIR?=/srv/toree
 DOCKER_ARGS?=
@@ -189,17 +191,20 @@ dist/toree-src/toree-$(VERSION)-source-release.tar.gz:
 
 src-release: dist/toree-src/toree-$(VERSION)-source-release.tar.gz
 
-dist/toree-src/toree-$(VERSION)-source-release.tar.gz.md5 dist/toree-src/toree-$(VERSION)-source-release.tar.gz.asc dist/toree-src/toree-$(VERSION)-source-release.tar.gz.sha:
-	@etc/tools/./sign-file dist/toree-src/toree-$(VERSION)-source-release.tar.gz
+dist/toree-src/toree-$(VERSION)-source-release.tar.gz.md5 dist/toree-src/toree-$(VERSION)-source-release.tar.gz.asc dist/toree-src/toree-$(VERSION)-source-release.tar.gz.sha: dist/toree-src/toree-$(VERSION)-source-release.tar.gz
+	@GPG_PASSWORD=$(GPG_PASSWORD) GPG=$(GPG) etc/tools/./sign-file dist/toree-src/toree-$(VERSION)-source-release.tar.gz
 
-sign-src: src-release dist/toree-src/toree-$(VERSION)-source-release.tar.gz.md5 dist/toree-src/toree-$(VERSION)-source-release.tar.gz.asc dist/toree-src/toree-$(VERSION)-source-release.tar.gz.sha
+sign-src: dist/toree-src/toree-$(VERSION)-source-release.tar.gz.md5 dist/toree-src/toree-$(VERSION)-source-release.tar.gz.asc dist/toree-src/toree-$(VERSION)-source-release.tar.gz.sha
 
-dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.md5 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.asc dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.sha:
-	@etc/tools/./sign-file dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
+dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.md5 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.asc dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.sha: dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
+	@GPG_PASSWORD=$(GPG_PASSWORD) GPG=$(GPG) etc/tools/./sign-file dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
 
-sign-bin: bin-release dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.md5 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.asc dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.sha
+sign-bin: dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.md5 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.asc dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.sha
 
-sign: sign-bin sign-src
+sign:  sign-bin sign-src
+
+publish-release:
+	@GPG_PASSWORD=$(GPG_PASSWORD) GPG=$(GPG) sbt publish-local-signed
 
 audit: sign
 	@etc/tools/./check-licenses

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/23c3abb6/etc/tools/.rat-excludes
----------------------------------------------------------------------
diff --git a/etc/tools/.rat-excludes b/etc/tools/.rat-excludes
index 7af785c..5a36746 100644
--- a/etc/tools/.rat-excludes
+++ b/etc/tools/.rat-excludes
@@ -33,6 +33,8 @@ DESCRIPTION
 .*\.md5
 .*\.asc
 .*\.sha
+NOTICE_extras
+LICENSE_extras
 
 # Auto-generated files and directories
 .*iml

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/23c3abb6/etc/tools/sign-file
----------------------------------------------------------------------
diff --git a/etc/tools/sign-file b/etc/tools/sign-file
index e4c9196..ef65394 100755
--- a/etc/tools/sign-file
+++ b/etc/tools/sign-file
@@ -18,9 +18,10 @@
 #
 
 # Check if gpg is installed
-which gpg > /dev/null
+echo "GPG is ${GPG} and file is ${1}"
+which ${GPG} > /dev/null
 if [[ "$?" -ne "0" ]]; then
-	echo "ERROR:	gpg not installed!
+	echo "ERROR:	gpg not installed at ${GPG}!
 Please install via your system's package manager or from the gnu site, 
 https://www.gnupg.org/download/. Once installed, follow the Apache guidelines 
 for making your key, http://www.apache.org/dev/openpgp.html."
@@ -32,9 +33,9 @@ FWDIR="$(cd `dirname $0`/../../; pwd)"
 file_to_sign="${FWDIR}/$1"
 if [[ -f "${file_to_sign}"  ]]; then
 		echo "Generating signature and sums for ${file_to_sign}"
-		gpg --armor --output "${file_to_sign}.asc" --detach-sig "${file_to_sign}"
-		gpg --print-md MD5 "${file_to_sign}" >  "${file_to_sign}.md5"
-		gpg --print-md SHA512 "${file_to_sign}" >  "${file_to_sign}.sha"
+		echo ${GPG_PASSWORD} | ${GPG} --passphrase-fd 0 --armor --output "${file_to_sign}.asc" --detach-sig "${file_to_sign}"
+		echo ${GPG_PASSWORD} | ${GPG} --passphrase-fd 0 --print-md MD5 "${file_to_sign}" >  "${file_to_sign}.md5"
+		echo ${GPG_PASSWORD} | ${GPG} --passphrase-fd 0 --print-md SHA512 "${file_to_sign}" >  "${file_to_sign}.sha"
 		exit 0
 else
 	echo "ERROR: File ${file_to_sign} does not exist"

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/23c3abb6/project/Build.scala
----------------------------------------------------------------------
diff --git a/project/Build.scala b/project/Build.scala
index 5e4c460..90077fb 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -67,8 +67,7 @@ trait Settings {
   lazy val fullSettings =
     Common.settings ++ Seq(
       ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := false
-    ) ++
-    net.virtualvoid.sbt.graph.Plugin.graphSettings
+    )
 }
 
 /**

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/23c3abb6/project/Common.scala
----------------------------------------------------------------------
diff --git a/project/Common.scala b/project/Common.scala
index 339ebdf..05dafc9 100644
--- a/project/Common.scala
+++ b/project/Common.scala
@@ -19,13 +19,15 @@ import org.apache.commons.io.FileUtils
 import sbt._
 import Keys._
 import coursier.Keys._
-
+import com.typesafe.sbt.pgp.PgpKeys._
 import scala.util.{Try, Properties}
 
 object Common {
   //  Parameters for publishing to artifact repositories
   val versionNumber             = Properties.envOrElse("VERSION", "0.0.0-dev")
   val snapshot                  = Properties.envOrElse("IS_SNAPSHOT","true").toBoolean
+  val gpgLocation               = Properties.envOrElse("GPG","/usr/local/bin/gpg")
+  val gpgPassword               = Properties.envOrElse("GPG_PASSWORD","")
 
   private val buildOrganization = "org.apache.toree"
   private val buildVersion      =
@@ -77,6 +79,9 @@ object Common {
 
   val settings: Seq[Def.Setting[_]] = Seq(
     organization := buildOrganization,
+    useGpg := true,
+    gpgCommand := gpgLocation,
+    pgpPassphrase in Global := Some(gpgPassword.toArray),
     version := buildVersion,
     scalaVersion := buildScalaVersion,
     libraryDependencies ++= buildLibraryDependencies,

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/23c3abb6/project/plugins.sbt
----------------------------------------------------------------------
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 081776e..4025fd5 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -29,7 +29,7 @@ addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.1")
 
 // Provides the ability to list dependencies in a readable format using
 // `sbt dependencyTree`; there are other commands provided as well
-addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4")
+addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.8.2")
 
 // Provides abilit to create an uber-jar
 addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.0")
@@ -51,3 +51,6 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.5.3")
 
 // Provides alternative resolving/downloading over sbt
 addSbtPlugin("com.github.alexarchambault" % "coursier-sbt-plugin" % "1.0.0-M10")
+
+//  Used for signing jars published via `sbt publish-signed`
+addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")


[06/32] incubator-toree git commit: Add Apache RAT for auditing

Posted by ch...@apache.org.
Add Apache RAT for auditing


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/b397dfe7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/b397dfe7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/b397dfe7

Branch: refs/heads/master
Commit: b397dfe744ebcba2a1deb736529daea5ce5c88c5
Parents: 737dd81
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Mon Apr 4 16:58:43 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:18 2016 -0500

----------------------------------------------------------------------
 .gitignore               |  1 +
 Makefile                 | 10 +++--
 etc/dev/check-licenses   | 86 +++++++++++++++++++++++++++++++++++++++++++
 etc/tools/.rat-excludes  | 33 +++++++++++++++++
 etc/tools/check-licenses | 85 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 212 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/b397dfe7/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index b9c205d..802a704 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@ target/
 *.iml
 *.ipynb
 .ipynb_checkpoints/
+apache-rat-*.jar
 !etc/**/*.ipynb
 scratch/
 **/*ivy.xml

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/b397dfe7/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 3c955c3..b191cf4 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@
 # limitations under the License
 #
 
-.PHONY: help clean clean-dist build dev test test-travis release pip-release bin-release dev-binder .binder-image
+.PHONY: help clean clean-dist build dev test test-travis release pip-release bin-release dev-binder .binder-image audit
 
 VERSION?=0.1.0.dev6
 COMMIT=$(shell git rev-parse --short=12 --verify HEAD)
@@ -55,6 +55,7 @@ ENV_OPTS:=APACHE_SPARK_VERSION=$(APACHE_SPARK_VERSION) VERSION=$(VERSION) IS_SNA
 ASSEMBLY_JAR:=toree-assembly-$(VERSION)$(SNAPSHOT).jar
 
 help:
+	@echo '      audit - run audit tools against the source code'
 	@echo '      clean - clean build files'
 	@echo '        dev - starts ipython'
 	@echo '       dist - build a directory with contents to package'
@@ -141,7 +142,10 @@ pip-release: dist
 	@$(DOCKER) $(IMAGE) python setup.py sdist --dist-dir=.
 	@$(DOCKER) -p 8888:8888 --user=root  $(IMAGE) bash -c	'pip install toree-$(VERSION).tar.gz && jupyter toree install'
 
-bin-release: dist
+audit:
+	@etc/tools/./check-licenses 
+
+bin-release: dist 
 	@(cd dist; tar -cvzf toree-$(VERSION)-binary-release.tar.gz toree)
 
 release: DOCKER_WORKDIR=/srv/toree/dist
@@ -149,7 +153,7 @@ release: PYPI_REPO?=https://pypi.python.org/pypi
 release: PYPI_USER?=
 release: PYPI_PASSWORD?=
 release: PYPIRC=printf "[distutils]\nindex-servers =\n\tpypi\n\n[pypi]\nrepository: $(PYPI_REPO) \nusername: $(PYPI_USER)\npassword: $(PYPI_PASSWORD)" > ~/.pypirc;
-release: pip-release bin-release
+release: pip-release bin-release audit
 	@$(DOCKER) $(IMAGE) bash -c '$(PYPIRC) pip install twine && \
 		python setup.py register -r $(PYPI_REPO) && \
 		twine upload -r pypi toree-$(VERSION).tar.gz'

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/b397dfe7/etc/dev/check-licenses
----------------------------------------------------------------------
diff --git a/etc/dev/check-licenses b/etc/dev/check-licenses
new file mode 100644
index 0000000..a08aa27
--- /dev/null
+++ b/etc/dev/check-licenses
@@ -0,0 +1,86 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+
+
+acquire_rat_jar () {
+
+  URL="http://repo1.maven.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar"
+
+  JAR="$rat_jar"
+
+  # Download rat launch jar if it hasn't been downloaded yet
+  if [ ! -f "$JAR" ]; then
+    # Download
+    printf "Attempting to fetch rat\n"
+    JAR_DL="${JAR}.part"
+    if [ $(command -v curl) ]; then
+      curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR"
+    elif [ $(command -v wget) ]; then
+      wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR"
+    else
+      printf "You do not have curl or wget installed, please install rat manually.\n"
+      exit -1
+    fi
+  fi
+
+  unzip -tq "$JAR" &> /dev/null
+  if [ $? -ne 0 ]; then 
+    # We failed to download
+    rm "$JAR"
+    printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n"
+    exit -1
+  fi
+}
+
+# Go to the project root directory
+FWDIR="$(cd "`dirname "$0"`"/..; pwd)"
+cd "$FWDIR"
+
+if test -x "$JAVA_HOME/bin/java"; then
+    declare java_cmd="$JAVA_HOME/bin/java"
+else
+    declare java_cmd=java
+fi
+
+export RAT_VERSION=0.11
+export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar
+mkdir -p "$FWDIR"/lib
+
+[[ -f "$rat_jar" ]] || acquire_rat_jar || {
+    echo "Download failed. Obtain the rat jar manually and place it at $rat_jar"
+    exit 1
+}
+
+mkdir target
+$java_cmd -jar "$rat_jar" -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > target/rat-results.txt
+
+if [ $? -ne 0 ]; then
+   echo "RAT exited abnormally"
+   exit 1
+fi
+
+ERRORS="$(cat target/rat-results.txt | grep -e "??")"
+
+if test ! -z "$ERRORS"; then 
+    echo "Could not find Apache license headers in the following files:"
+    echo "$ERRORS"
+    exit 1
+else 
+    echo -e "RAT checks passed."
+fi
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/b397dfe7/etc/tools/.rat-excludes
----------------------------------------------------------------------
diff --git a/etc/tools/.rat-excludes b/etc/tools/.rat-excludes
new file mode 100644
index 0000000..907b0c8
--- /dev/null
+++ b/etc/tools/.rat-excludes
@@ -0,0 +1,33 @@
+target
+MANIFEST.in
+.gitignore
+.gitattributes
+.project
+.classpath
+.rat-excludes
+.*ipynb
+.ipynb_checkpoints/
+.*md
+.*avsc
+.*txt
+.*json
+.*data
+.*log
+.*out
+.*parquet
+.*csv
+.*tsv
+.*iml
+service.properties
+db.lck
+DESCRIPTION
+NAMESPACE
+package-sparkR.sh
+\.lintr
+.*ivy.xml
+\.example-image
+\.ensime
+\.example-image
+\.jvmopts
+\.pairs
+\.travis.yml
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/b397dfe7/etc/tools/check-licenses
----------------------------------------------------------------------
diff --git a/etc/tools/check-licenses b/etc/tools/check-licenses
new file mode 100755
index 0000000..21aa86d
--- /dev/null
+++ b/etc/tools/check-licenses
@@ -0,0 +1,85 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+
+
+acquire_rat_jar () {
+
+  URL="http://repo1.maven.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar"
+
+  JAR="$rat_jar"
+
+  # Download rat launch jar if it hasn't been downloaded yet
+  if [ ! -f "$JAR" ]; then
+    # Download
+    printf "Attempting to fetch rat\n"
+    JAR_DL="${JAR}.part"
+    if [ $(command -v curl) ]; then
+      curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR"
+    elif [ $(command -v wget) ]; then
+      wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR"
+    else
+      printf "You do not have curl or wget installed, please install rat manually.\n"
+      exit -1
+    fi
+  fi
+
+  unzip -tq "$JAR" &> /dev/null
+  if [ $? -ne 0 ]; then 
+    # We failed to download
+    rm "$JAR"
+    printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n"
+    exit -1
+  fi
+}
+
+# Go to the Spark project root directory
+FWDIR="$(cd "`dirname "$0"`"/../../; pwd)"
+cd "$FWDIR"
+
+if test -x "$JAVA_HOME/bin/java"; then
+    declare java_cmd="$JAVA_HOME/bin/java"
+else
+    declare java_cmd=java
+fi
+
+export RAT_VERSION=0.11
+export rat_jar="$FWDIR"/etc/tools/apache-rat-${RAT_VERSION}.jar
+mkdir -p "$FWDIR"etc/tools/
+
+[[ -f "$rat_jar" ]] || acquire_rat_jar || {
+    echo "Download failed. Obtain the rat jar manually and place it at $rat_jar"
+    exit 1
+}
+
+$java_cmd -jar "$rat_jar" -E "$FWDIR"/etc/tools/.rat-excludes -d "$FWDIR" > target/rat-results.txt
+
+if [ $? -ne 0 ]; then
+   echo "RAT exited abnormally"
+   exit 1
+fi
+
+ERRORS="$(cat target/rat-results.txt | grep -e "??")"
+
+if test ! -z "$ERRORS"; then 
+    echo "Could not find Apache license headers in the following files:"
+    echo "$ERRORS"
+    exit 1
+else 
+    echo -e "RAT checks passed."
+fi
\ No newline at end of file


[07/32] incubator-toree git commit: Fixed all poms to have correct common content

Posted by ch...@apache.org.
Fixed all poms to have correct common content


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/67b4a458
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/67b4a458
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/67b4a458

Branch: refs/heads/master
Commit: 67b4a458163b2c2c7d5de3df4b12f436bc7a076f
Parents: b397dfe
Author: Gino Bustelo <lb...@apache.org>
Authored: Tue Apr 5 11:40:28 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:27 2016 -0500

----------------------------------------------------------------------
 project/Build.scala  | 18 +++---------------
 project/Common.scala | 12 ++++++++++++
 2 files changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/67b4a458/project/Build.scala
----------------------------------------------------------------------
diff --git a/project/Build.scala b/project/Build.scala
index ff11db1..a11ae88 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -29,6 +29,7 @@ import com.typesafe.sbt.SbtGit.{GitKeys => git}
 import sbtassembly.AssemblyKeys._
 
 object Build extends Build with Settings with SubProjects with TestTasks {
+
   /**
    * Project encapsulating all other child projects.
    */
@@ -41,23 +42,10 @@ object Build extends Build with Settings with SubProjects with TestTasks {
         assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false),
         scalacOptions in (ScalaUnidoc, unidoc) += "-Ymacro-no-expand",
         git.gitRemoteRepo := "git://git.apache.org/incubator-toree.git",
-        aggregate in assembly := false,
-        pomExtra :=
-          <parent>
-            <groupId>org.apache</groupId>
-            <artifactId>apache</artifactId>
-            <version>10</version>
-          </parent>
-            <licenses>
-              <license>
-                <name>Apache 2</name>
-                <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-                <distribution>repo</distribution>
-              </license>
-            </licenses>
+        aggregate in assembly := false
       )
     )
-  ).aggregate(
+).aggregate(
     client, kernel, kernel_api, communication, protocol, macros, 
     pyspark_interpreter, scala_interpreter, sparkr_interpreter, sql_interpreter, 
     plugins

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/67b4a458/project/Common.scala
----------------------------------------------------------------------
diff --git a/project/Common.scala b/project/Common.scala
index a8848ab..339ebdf 100644
--- a/project/Common.scala
+++ b/project/Common.scala
@@ -84,6 +84,18 @@ object Common {
     resolvers ++= buildResolvers,
 
     pomExtra :=
+      <parent>
+        <groupId>org.apache</groupId>
+        <artifactId>apache</artifactId>
+        <version>10</version>
+      </parent>
+      <licenses>
+        <license>
+          <name>Apache 2</name>
+          <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+          <distribution>repo</distribution>
+        </license>
+      </licenses>
       <url>http://toree.incubator.apache.org/</url>
       <scm>
         <connection>scm:git:git@github.com:apache/incubator-toree.git</connection>


[14/32] incubator-toree git commit: Building source package

Posted by ch...@apache.org.
Building source package


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/beb2b159
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/beb2b159
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/beb2b159

Branch: refs/heads/master
Commit: beb2b159c57d4dfae77f1b6eddb9922173fabb8f
Parents: 79d163e
Author: Gino Bustelo <lb...@apache.org>
Authored: Tue Apr 5 17:04:43 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:39 2016 -0500

----------------------------------------------------------------------
 Makefile                | 6 +++++-
 etc/.src-release-ignore | 9 +++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/beb2b159/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 010ef30..21ce41b 100644
--- a/Makefile
+++ b/Makefile
@@ -167,12 +167,16 @@ bin-release: dist
 	@mkdir dist/toree-bin
 	@(cd dist; tar -cvzf toree-bin/toree-$(VERSION)-binary-release.tar.gz toree)
 
+src-release:
+	@mkdir -p dist/toree-src
+	@tar -X 'etc/.src-release-ignore' -cvzf dist/toree-src/toree-$(VERSION)-source-release.tar.gz .
+
 release: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
 release: PYPI_REPO?=https://pypi.python.org/pypi
 release: PYPI_USER?=
 release: PYPI_PASSWORD?=
 release: PYPIRC=printf "[distutils]\nindex-servers =\n\tpypi\n\n[pypi]\nrepository: $(PYPI_REPO) \nusername: $(PYPI_USER)\npassword: $(PYPI_PASSWORD)" > ~/.pypirc;
-release: pip-release bin-release audit
+release: pip-release bin-release src-release audit
 	@$(DOCKER) $(IMAGE) bash -c '$(PYPIRC) pip install twine && \
 		python setup.py register -r $(PYPI_REPO) && \
 		twine upload -r pypi toree-$(VERSION).tar.gz'

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/beb2b159/etc/.src-release-ignore
----------------------------------------------------------------------
diff --git a/etc/.src-release-ignore b/etc/.src-release-ignore
new file mode 100644
index 0000000..39ddd58
--- /dev/null
+++ b/etc/.src-release-ignore
@@ -0,0 +1,9 @@
+target
+dist
+.git
+.idea
+.vagrant
+.ipynb_checkpoints
+examples
+metastore_db
+


[04/32] incubator-toree git commit: Finalize Assembly Jar Building Add LICENSE and NOTICE file to packaged zip Add sub-modules to assembled jar

Posted by ch...@apache.org.
Finalize Assembly Jar Building
Add LICENSE and NOTICE file to packaged zip
Add sub-modules to assembled jar


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/af45cf3e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/af45cf3e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/af45cf3e

Branch: refs/heads/master
Commit: af45cf3e028cde9c3f27f991f9f8001e14314815
Parents: cace425
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Mon Apr 4 12:11:37 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:43:51 2016 -0500

----------------------------------------------------------------------
 Makefile            | 20 ++++++++-------
 kernel/build.sbt    |  2 --
 project/Build.scala | 64 +++++++++++++++++++++++-------------------------
 3 files changed, 41 insertions(+), 45 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/af45cf3e/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index bccb7cc..3c955c3 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ RUN=$(RUN_PREFIX)$(1)$(RUN_SUFFIX)
 
 ENV_OPTS:=APACHE_SPARK_VERSION=$(APACHE_SPARK_VERSION) VERSION=$(VERSION) IS_SNAPSHOT=$(IS_SNAPSHOT)
 
-ASSEMBLY_JAR:=toree-kernel-assembly-$(VERSION)$(SNAPSHOT).jar
+ASSEMBLY_JAR:=toree-assembly-$(VERSION)$(SNAPSHOT).jar
 
 help:
 	@echo '      clean - clean build files'
@@ -92,13 +92,13 @@ dev-binder: .binder-image
 		--workdir /home/main/notebooks $(BINDER_IMAGE) \
 		/home/main/start-notebook.sh --ip=0.0.0.0
 
-kernel/target/scala-2.10/$(ASSEMBLY_JAR): VM_WORKDIR=/src/toree-kernel
-kernel/target/scala-2.10/$(ASSEMBLY_JAR): ${shell find ./*/src/main/**/*}
-kernel/target/scala-2.10/$(ASSEMBLY_JAR): ${shell find ./*/build.sbt}
-kernel/target/scala-2.10/$(ASSEMBLY_JAR): project/build.properties project/Build.scala project/Common.scala project/plugins.sbt
-	$(call RUN,$(ENV_OPTS) sbt toree-kernel/assembly)
+target/scala-2.10/$(ASSEMBLY_JAR): VM_WORKDIR=/src/toree-kernel
+target/scala-2.10/$(ASSEMBLY_JAR): ${shell find ./*/src/main/**/*}
+target/scala-2.10/$(ASSEMBLY_JAR): ${shell find ./*/build.sbt}
+target/scala-2.10/$(ASSEMBLY_JAR): project/build.properties project/Build.scala project/Common.scala project/plugins.sbt
+	$(call RUN,$(ENV_OPTS) sbt toree/assembly)
 
-build: kernel/target/scala-2.10/$(ASSEMBLY_JAR)
+build: target/scala-2.10/$(ASSEMBLY_JAR)
 
 dev: DOCKER_WORKDIR=/srv/toree/etc/examples/notebooks
 dev: SUSPEND=n
@@ -120,10 +120,12 @@ sbt-%:
 	$(call RUN,$(ENV_OPTS) sbt $(subst sbt-,,$@) )
 
 dist: VERSION_FILE=dist/toree/VERSION
-dist: kernel/target/scala-2.10/$(ASSEMBLY_JAR) ${shell find ./etc/bin/*}
+dist: target/scala-2.10/$(ASSEMBLY_JAR) ${shell find ./etc/bin/*}
 	@mkdir -p dist/toree/bin dist/toree/lib
 	@cp -r etc/bin/* dist/toree/bin/.
-	@cp kernel/target/scala-2.10/$(ASSEMBLY_JAR) dist/toree/lib/.
+	@cp target/scala-2.10/$(ASSEMBLY_JAR) dist/toree/lib/.
+	@cp NOTICE dist/toree
+	@cp LICENSE dist/toree
 	@echo "VERSION: $(VERSION)" > $(VERSION_FILE)
 	@echo "COMMIT: $(COMMIT)" >> $(VERSION_FILE)
 

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/af45cf3e/kernel/build.sbt
----------------------------------------------------------------------
diff --git a/kernel/build.sbt b/kernel/build.sbt
index abe1d2d..4ca4194 100644
--- a/kernel/build.sbt
+++ b/kernel/build.sbt
@@ -21,5 +21,3 @@
 libraryDependencies +=
   "org.spark-project.akka" %% "akka-testkit" % "2.3.4-spark" % "test" // MIT
 
-assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
-

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/af45cf3e/project/Build.scala
----------------------------------------------------------------------
diff --git a/project/Build.scala b/project/Build.scala
index 7bf1512..3739e2d 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -18,7 +18,6 @@
 import java.text.SimpleDateFormat
 import java.util.Calendar
 
-import com.typesafe.sbt.SbtGhPages.ghpages
 import com.typesafe.sbt.SbtSite.site
 import sbt.Keys._
 import sbt._
@@ -35,41 +34,40 @@ object Build extends Build with Settings with SubProjects with TestTasks {
    */
   lazy val root = addTestTasksToProject(
     Project(
-      id = "toree-all",
+      id = "toree",
       base = file("."),
-      settings = fullSettings
-    ).settings(unidocSettings: _*)
-     .settings(site.settings ++ ghpages.settings: _*)
-     .settings(
-        site.addMappingsToSiteDir(
-          mappings in (ScalaUnidoc, packageDoc), "latest/api"
-        ),
-        git.gitRemoteRepo := "git@github.com:ibm-et/spark-kernel.git"
-     )
-     .settings(
+      settings = fullSettings ++ unidocSettings ++ site.settings ++ Seq(
+        test in assembly := {},
+        assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false),
         scalacOptions in (ScalaUnidoc, unidoc) += "-Ymacro-no-expand",
-
+        git.gitRemoteRepo := "git://git.apache.org/incubator-toree.git",
         pomExtra :=
-         <parent>
-           <groupId>org.apache</groupId>
-           <artifactId>apache</artifactId>
-           <version>10</version>
-         </parent>
-           <licenses>
-             <license>
-               <name>Apache 2</name>
-               <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-               <distribution>repo</distribution>
-             </license>
-           </licenses>
+          <parent>
+            <groupId>org.apache</groupId>
+            <artifactId>apache</artifactId>
+            <version>10</version>
+          </parent>
+            <licenses>
+              <license>
+                <name>Apache 2</name>
+                <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+                <distribution>repo</distribution>
+              </license>
+            </licenses>
       )
-  ).aggregate(
-    client, kernel, kernel_api, communication, protocol, macros,
-    pyspark_interpreter, scala_interpreter, sparkr_interpreter,
-    sql_interpreter, plugins
+    )
   ).dependsOn(
-    client % "test->test",
-    kernel % "test->test"
+    client % "compile", 
+    kernel % "compile",
+    kernel_api % "compile",
+    communication % "compile",
+    protocol % "compile",
+    macros % "compile",
+    pyspark_interpreter % "compile",
+    scala_interpreter % "compile",
+    sparkr_interpreter % "compile",
+    sql_interpreter % "compile",
+    plugins % "compile"
   )
 }
 
@@ -107,9 +105,7 @@ trait SubProjects extends Settings with TestTasks {
   lazy val kernel = addTestTasksToProject(Project(
     id = "toree-kernel",
     base = file("kernel"),
-    settings = fullSettings ++ Seq(
-        test in assembly := {}
-      )
+    settings = fullSettings
   // Enable forking to load correct classes with plugin loader during tests
   ), doFork = true) dependsOn(
     macros % "test->test;compile->compile",


[24/32] incubator-toree git commit: Adding and pointing to each of the licenses bundled in bin packages

Posted by ch...@apache.org.
Adding and pointing to each of the licenses bundled in bin packages


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/297914a1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/297914a1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/297914a1

Branch: refs/heads/master
Commit: 297914a11da3d884da4a9bca8c3848d45c944e6e
Parents: 580f57b
Author: Gino Bustelo <lb...@apache.org>
Authored: Fri Apr 8 15:37:11 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:45:06 2016 -0500

----------------------------------------------------------------------
 Makefile                                   |   8 +-
 etc/.src-release-ignore                    |   1 +
 etc/legal/COPYING                          | 674 ------------------
 etc/legal/COPYING.LESSER                   | 206 ------
 etc/legal/LICENSE_extras                   |  36 +-
 etc/legal/licenses/COPYING                 | 674 ++++++++++++++++++
 etc/legal/licenses/COPYING.LESSER          | 206 ++++++
 etc/legal/licenses/LICENSE-ammonite.txt    |  25 +
 etc/legal/licenses/LICENSE-asm.txt         |  29 +
 etc/legal/licenses/LICENSE-clapper.txt     |  31 +
 etc/legal/licenses/LICENSE-jline.txt       | 902 ++++++++++++++++++++++++
 etc/legal/licenses/LICENSE-jopt-simple.txt |  24 +
 etc/legal/licenses/LICENSE-scala-stm.txt   |  24 +
 etc/legal/licenses/LICENSE-scala.txt       |  11 +
 etc/legal/licenses/LICENSE-scalaz.txt      |  24 +
 etc/legal/licenses/LICENSE-slf4j.txt       |  21 +
 etc/pip_install/MANIFEST.in                |   3 +-
 17 files changed, 1995 insertions(+), 904 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 3284ab9..512c723 100644
--- a/Makefile
+++ b/Makefile
@@ -138,8 +138,6 @@ dist/toree-legal/LICENSE: LICENSE etc/legal/LICENSE_extras
 	@cat LICENSE > dist/toree-legal/LICENSE
 	@echo '\n' >> dist/toree-legal/LICENSE
 	@cat etc/legal/LICENSE_extras >> dist/toree-legal/LICENSE
-	@cp etc/legal/COPYING dist/toree-legal/COPYING
-	@cp etc/legal/COPYING.LESSER dist/toree-legal/COPYING.LESSER
 
 dist/toree-legal/NOTICE: NOTICE etc/legal/NOTICE_extras
 	@mkdir -p dist/toree-legal
@@ -152,9 +150,10 @@ dist/toree-legal/DISCLAIMER:
 	@cp DISCLAIMER dist/toree-legal/DISCLAIMER
 
 dist/toree-legal: dist/toree-legal/LICENSE dist/toree-legal/NOTICE dist/toree-legal/DISCLAIMER
+	@cp -R etc/legal/licenses dist/toree-legal/.
 
 dist/toree: dist/toree-legal dist/toree/lib dist/toree/bin
-	@cp dist/toree-legal/* dist/toree
+	@cp -R dist/toree-legal/* dist/toree
 
 dist: dist/toree
 
@@ -170,8 +169,7 @@ dist/toree-pip/toree-$(VERSION).tar.gz: dist/toree
 	@cp dist/toree/LICENSE dist/toree-pip/LICENSE
 	@cp dist/toree/NOTICE dist/toree-pip/NOTICE
 	@cp dist/toree/DISCLAIMER dist/toree-pip/DISCLAIMER
-	@cp dist/toree/COPYING dist/toree-pip/COPYING
-	@cp dist/toree/COPYING.LESSER dist/toree-pip/COPYING.LESSER
+	@cp -R dist/toree/licenses dist/toree-pip/licenses
 	@cp -rf etc/pip_install/* dist/toree-pip/.
 	@$(GEN_PIP_PACKAGE_INFO)
 	@$(DOCKER) $(IMAGE) python setup.py sdist --dist-dir=.

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/.src-release-ignore
----------------------------------------------------------------------
diff --git a/etc/.src-release-ignore b/etc/.src-release-ignore
index d991e20..d41bce1 100644
--- a/etc/.src-release-ignore
+++ b/etc/.src-release-ignore
@@ -10,4 +10,5 @@ metastore_db
 .ensime_cache/*
 LICENSE_extras
 NOTICE_extras
+licenses
 

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/COPYING
----------------------------------------------------------------------
diff --git a/etc/legal/COPYING b/etc/legal/COPYING
deleted file mode 100644
index b6f3fd5..0000000
--- a/etc/legal/COPYING
+++ /dev/null
@@ -1,674 +0,0 @@
-                      GNU GENERAL PUBLIC LICENSE
-                       Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-                            Preamble
-
-  The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
-  The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works.  By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users.  We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors.  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
-  To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights.  Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received.  You must make sure that they, too, receive
-or can get the source code.  And you must show them these terms so they
-know their rights.
-
-  Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
-  For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software.  For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
-  Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so.  This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software.  The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable.  Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products.  If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
-  Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary.  To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-                       TERMS AND CONDITIONS
-
-  0. Definitions.
-
-  "This License" refers to version 3 of the GNU General Public License.
-
-  "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
-  "The Program" refers to any copyrightable work licensed under this
-License.  Each licensee is addressed as "you".  "Licensees" and
-"recipients" may be individuals or organizations.
-
-  To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy.  The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
-  A "covered work" means either the unmodified Program or a work based
-on the Program.
-
-  To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy.  Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
-  To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies.  Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
-  An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License.  If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
-  1. Source Code.
-
-  The "source code" for a work means the preferred form of the work
-for making modifications to it.  "Object code" means any non-source
-form of a work.
-
-  A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
-  The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form.  A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
-  The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities.  However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work.  For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
-  The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
-  The Corresponding Source for a work in source code form is that
-same work.
-
-  2. Basic Permissions.
-
-  All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met.  This License explicitly affirms your unlimited
-permission to run the unmodified Program.  The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work.  This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
-  You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force.  You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright.  Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
-  Conveying under any other circumstances is permitted solely under
-the conditions stated below.  Sublicensing is not allowed; section 10
-makes it unnecessary.
-
-  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
-  No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
-  When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
-  4. Conveying Verbatim Copies.
-
-  You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
-  You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
-  5. Conveying Modified Source Versions.
-
-  You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
-    a) The work must carry prominent notices stating that you modified
-    it, and giving a relevant date.
-
-    b) The work must carry prominent notices stating that it is
-    released under this License and any conditions added under section
-    7.  This requirement modifies the requirement in section 4 to
-    "keep intact all notices".
-
-    c) You must license the entire work, as a whole, under this
-    License to anyone who comes into possession of a copy.  This
-    License will therefore apply, along with any applicable section 7
-    additional terms, to the whole of the work, and all its parts,
-    regardless of how they are packaged.  This License gives no
-    permission to license the work in any other way, but it does not
-    invalidate such permission if you have separately received it.
-
-    d) If the work has interactive user interfaces, each must display
-    Appropriate Legal Notices; however, if the Program has interactive
-    interfaces that do not display Appropriate Legal Notices, your
-    work need not make them do so.
-
-  A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit.  Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
-  6. Conveying Non-Source Forms.
-
-  You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
-    a) Convey the object code in, or embodied in, a physical product
-    (including a physical distribution medium), accompanied by the
-    Corresponding Source fixed on a durable physical medium
-    customarily used for software interchange.
-
-    b) Convey the object code in, or embodied in, a physical product
-    (including a physical distribution medium), accompanied by a
-    written offer, valid for at least three years and valid for as
-    long as you offer spare parts or customer support for that product
-    model, to give anyone who possesses the object code either (1) a
-    copy of the Corresponding Source for all the software in the
-    product that is covered by this License, on a durable physical
-    medium customarily used for software interchange, for a price no
-    more than your reasonable cost of physically performing this
-    conveying of source, or (2) access to copy the
-    Corresponding Source from a network server at no charge.
-
-    c) Convey individual copies of the object code with a copy of the
-    written offer to provide the Corresponding Source.  This
-    alternative is allowed only occasionally and noncommercially, and
-    only if you received the object code with such an offer, in accord
-    with subsection 6b.
-
-    d) Convey the object code by offering access from a designated
-    place (gratis or for a charge), and offer equivalent access to the
-    Corresponding Source in the same way through the same place at no
-    further charge.  You need not require recipients to copy the
-    Corresponding Source along with the object code.  If the place to
-    copy the object code is a network server, the Corresponding Source
-    may be on a different server (operated by you or a third party)
-    that supports equivalent copying facilities, provided you maintain
-    clear directions next to the object code saying where to find the
-    Corresponding Source.  Regardless of what server hosts the
-    Corresponding Source, you remain obligated to ensure that it is
-    available for as long as needed to satisfy these requirements.
-
-    e) Convey the object code using peer-to-peer transmission, provided
-    you inform other peers where the object code and Corresponding
-    Source of the work are being offered to the general public at no
-    charge under subsection 6d.
-
-  A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
-  A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling.  In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage.  For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product.  A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
-  "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source.  The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
-  If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information.  But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
-  The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed.  Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
-  Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
-  7. Additional Terms.
-
-  "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law.  If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
-  When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it.  (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.)  You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
-  Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
-    a) Disclaiming warranty or limiting liability differently from the
-    terms of sections 15 and 16 of this License; or
-
-    b) Requiring preservation of specified reasonable legal notices or
-    author attributions in that material or in the Appropriate Legal
-    Notices displayed by works containing it; or
-
-    c) Prohibiting misrepresentation of the origin of that material, or
-    requiring that modified versions of such material be marked in
-    reasonable ways as different from the original version; or
-
-    d) Limiting the use for publicity purposes of names of licensors or
-    authors of the material; or
-
-    e) Declining to grant rights under trademark law for use of some
-    trade names, trademarks, or service marks; or
-
-    f) Requiring indemnification of licensors and authors of that
-    material by anyone who conveys the material (or modified versions of
-    it) with contractual assumptions of liability to the recipient, for
-    any liability that these contractual assumptions directly impose on
-    those licensors and authors.
-
-  All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10.  If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term.  If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
-  If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
-  Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
-  8. Termination.
-
-  You may not propagate or modify a covered work except as expressly
-provided under this License.  Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
-  However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
-  Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
-  Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License.  If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
-  9. Acceptance Not Required for Having Copies.
-
-  You are not required to accept this License in order to receive or
-run a copy of the Program.  Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance.  However,
-nothing other than this License grants you permission to propagate or
-modify any covered work.  These actions infringe copyright if you do
-not accept this License.  Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
-  10. Automatic Licensing of Downstream Recipients.
-
-  Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License.  You are not responsible
-for enforcing compliance by third parties with this License.
-
-  An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations.  If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
-  You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License.  For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
-  11. Patents.
-
-  A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based.  The
-work thus licensed is called the contributor's "contributor version".
-
-  A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version.  For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
-  Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
-  In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement).  To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
-  If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients.  "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
-  If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
-  A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License.  You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
-  Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
-  12. No Surrender of Others' Freedom.
-
-  If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all.  For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
-  13. Use with the GNU Affero General Public License.
-
-  Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work.  The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
-  14. Revised Versions of this License.
-
-  The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-  Each version is given a distinguishing version number.  If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation.  If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
-  If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
-  Later license versions may give you additional or different
-permissions.  However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
-  15. Disclaimer of Warranty.
-
-  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-  16. Limitation of Liability.
-
-  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
-  17. Interpretation of Sections 15 and 16.
-
-  If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
-                     END OF TERMS AND CONDITIONS
-
-            How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
-  If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
-    <program>  Copyright (C) <year>  <name of author>
-    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
-  You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-<http://www.gnu.org/licenses/>.
-
-  The GNU General Public License does not permit incorporating your program
-into proprietary programs.  If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library.  If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.  But first, please read
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/COPYING.LESSER
----------------------------------------------------------------------
diff --git a/etc/legal/COPYING.LESSER b/etc/legal/COPYING.LESSER
deleted file mode 100644
index 9925774..0000000
--- a/etc/legal/COPYING.LESSER
+++ /dev/null
@@ -1,206 +0,0 @@
-		         GNU LESSER GENERAL PUBLIC LICENSE
-                       Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-
-  This version of the GNU Lesser General Public License incorporates
-the terms and conditions of version 3 of the GNU General Public
-License, supplemented by the additional permissions listed below.
-
-  0. Additional Definitions. 
-
-  As used herein, "this License" refers to version 3 of the GNU Lesser
-General Public License, and the "GNU GPL" refers to version 3 of the GNU
-General Public License.
-
-  "The Library" refers to a covered work governed by this License,
-other than an Application or a Combined Work as defined below.
-
-  An "Application" is any work that makes use of an interface provided
-by the Library, but which is not otherwise based on the Library.
-Defining a subclass of a class defined by the Library is deemed a mode
-of using an interface provided by the Library.
-
-  A "Combined Work" is a work produced by combining or linking an
-Application with the Library.  The particular version of the Library
-with which the Combined Work was made is also called the "Linked
-Version".
-
-  The "Minimal Corresponding Source" for a Combined Work means the
-Corresponding Source for the Combined Work, excluding any source code
-for portions of the Combined Work that, considered in isolation, are
-based on the Application, and not on the Linked Version.
-
-  The "Corresponding Application Code" for a Combined Work means the
-object code and/or source code for the Application, including any data
-and utility programs needed for reproducing the Combined Work from the
-Application, but excluding the System Libraries of the Combined Work.
-
-  1. Exception to Section 3 of the GNU GPL.
-
-  You may convey a covered work under sections 3 and 4 of this License
-without being bound by section 3 of the GNU GPL.
-
-  2. Conveying Modified Versions.
-
-  If you modify a copy of the Library, and, in your modifications, a
-facility refers to a function or data to be supplied by an Application
-that uses the facility (other than as an argument passed when the
-facility is invoked), then you may convey a copy of the modified
-version:
-
-   a) under this License, provided that you make a good faith effort to
-   ensure that, in the event an Application does not supply the
-   function or data, the facility still operates, and performs
-   whatever part of its purpose remains meaningful, or
-
-   b) under the GNU GPL, with none of the additional permissions of
-   this License applicable to that copy.
-
-  3. Object Code Incorporating Material from Library Header Files.
-
-  The object code form of an Application may incorporate material from
-a header file that is part of the Library.  You may convey such object
-code under terms of your choice, provided that, if the incorporated
-material is not limited to numerical parameters, data structure
-layouts and accessors, or small macros, inline functions and templates
-(ten or fewer lines in length), you do both of the following:
-
-   a) Give prominent notice with each copy of the object code that the
-   Library is used in it and that the Library and its use are
-   covered by this License.
-
-   b) Accompany the object code with a copy of the GNU GPL and this license
-   document.
-
-  4. Combined Works.
-
-  You may convey a Combined Work under terms of your choice that,
-taken together, effectively do not restrict modification of the
-portions of the Library contained in the Combined Work and reverse
-engineering for debugging such modifications, if you also do each of
-the following:
-
-   a) Give prominent notice with each copy of the Combined Work that
-   the Library is used in it and that the Library and its use are
-   covered by this License.
-
-   b) Accompany the Combined Work with a copy of the GNU GPL and this license
-   document.
-
-   c) For a Combined Work that displays copyright notices during
-   execution, include the copyright notice for the Library among
-   these notices, as well as a reference directing the user to the
-   copies of the GNU GPL and this license document.
-
-   d) Do one of the following:
-
-       0) Convey the Minimal Corresponding Source under the terms of this
-       License, and the Corresponding Application Code in a form
-       suitable for, and under terms that permit, the user to
-       recombine or relink the Application with a modified version of
-       the Linked Version to produce a modified Combined Work, in the
-       manner specified by section 6 of the GNU GPL for conveying
-       Corresponding Source.
-
-       1) Use a suitable shared library mechanism for linking with the
-       Library.  A suitable mechanism is one that (a) uses at run time
-       a copy of the Library already present on the user's computer
-       system, and (b) will operate properly with a modified version
-       of the Library that is interface-compatible with the Linked
-       Version. 
-
-   e) Provide Installation Information, but only if you would otherwise
-   be required to provide such information under section 6 of the
-   GNU GPL, and only to the extent that such information is
-   necessary to install and execute a modified version of the
-   Combined Work produced by recombining or relinking the
-   Application with a modified version of the Linked Version. (If
-   you use option 4d0, the Installation Information must accompany
-   the Minimal Corresponding Source and Corresponding Application
-   Code. If you use option 4d1, you must provide the Installation
-   Information in the manner specified by section 6 of the GNU GPL
-   for conveying Corresponding Source.)
-
-  5. Combined Libraries.
-
-  You may place library facilities that are a work based on the
-Library side by side in a single library together with other library
-facilities that are not Applications and are not covered by this
-License, and convey such a combined library under terms of your
-choice, if you do both of the following:
-
-   a) Accompany the combined library with a copy of the same work based
-   on the Library, uncombined with any other library facilities,
-   conveyed under the terms of this License.
-
-   b) Give prominent notice with the combined library that part of it
-   is a work based on the Library, and explaining where to find the
-   accompanying uncombined form of the same work.
-
-  6. Revised Versions of the GNU Lesser General Public License.
-
-  The Free Software Foundation may publish revised and/or new versions
-of the GNU Lesser General Public License from time to time. Such new
-versions will be similar in spirit to the present version, but may
-differ in detail to address new problems or concerns.
-
-  Each version is given a distinguishing version number. If the
-Library as you received it specifies that a certain numbered version
-of the GNU Lesser General Public License "or any later version"
-applies to it, you have the option of following the terms and
-conditions either of that published version or of any later version
-published by the Free Software Foundation. If the Library as you
-received it does not specify a version number of the GNU Lesser
-General Public License, you may choose any version of the GNU Lesser
-General Public License ever published by the Free Software Foundation.
-
-  If the Library as you received it specifies that a proxy can decide
-whether future versions of the GNU Lesser General Public License shall
-apply, that proxy's public statement of acceptance of any version is
-permanent authorization for you to choose that version for the
-Library.
-
---------------------------------------------------------------------------------
-
-           SPECIAL EXCEPTION GRANTED BY COPYRIGHT HOLDERS
-
-As a special exception, copyright holders give you permission to link this
-library with independent modules to produce an executable, regardless of
-the license terms of these independent modules, and to copy and distribute
-the resulting executable under terms of your choice, provided that you also
-meet, for each linked independent module, the terms and conditions of
-the license of that module. An independent module is a module which is not
-derived from or based on this library. If you modify this library, you must
-extend this exception to your version of the library.
-
---------------------------------------------------------------------------------
-
-Parts of the software are licensed under the MIT (X11) license as follows:
-
-Copyright (c) 2007-2010 Contributors as listed in AUTHORS
-
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use,
- copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following
- conditions:
-
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- OTHER DEALINGS IN THE SOFTWARE.
-

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/LICENSE_extras
----------------------------------------------------------------------
diff --git a/etc/legal/LICENSE_extras b/etc/legal/LICENSE_extras
index ee5454e..e15105c 100644
--- a/etc/legal/LICENSE_extras
+++ b/etc/legal/LICENSE_extras
@@ -13,7 +13,7 @@ GNU General Lesser Public License (LGPL) version 3.0
 
 Direct dependencies
 
-   org.zeromq:jeromq:0.3.4 -> https://github.com/zeromq/jeromq/blob/master/COPYING, https://github.com/zeromq/jeromq/blob/master/COPYING.LESSER
+   org.zeromq:jeromq:0.3.4 -> https://github.com/zeromq/jeromq/blob/master/COPYING and licenses/COPYING, https://github.com/zeromq/jeromq/blob/master/COPYING.LESSER and licenses/COPYING.LESSER
 
 ========================================================================
 BSD-like
@@ -21,22 +21,22 @@ BSD-like
 
 Direct dependencies
 
-   org.clapper:classutil_2.10:1.0.3 -> http://software.clapper.org/javautil/#copyright-and-license
-   org.scala-lang:scala-reflect:2.10.4 -> http://www.scala-lang.org/license.html
-   org.scalamacros:quasiquotes_2.10:2.0.1 -> http://www.scala-lang.org/license.html
+   org.clapper:classutil_2.10:1.0.3 -> http://software.clapper.org/javautil/#copyright-and-license and licenses/LICENSE-clapper.txt
+   org.scala-lang:scala-reflect:2.10.4 -> http://www.scala-lang.org/license.html and licenses/LICENSE-scala.txt
+   org.scalamacros:quasiquotes_2.10:2.0.1 -> http://www.scala-lang.org/license.html and licenses/LICENSE-scala.txt
 
 Transitive Dependencies
 
-   jline:jline:2.6 -> https://github.com/jline/jline2/blob/master/LICENSE.txt
-   org.clapper:grizzled-scala_2.10:1.1.2 -> http://software.clapper.org/grizzled-scala/#copyright-and-license
-   org.clapper:grizzled-slf4j_2.10:1.0.1 -> http://software.clapper.org/grizzled-slf4j/#copyright-and-license
-   org.scala-stm:scala-stm_2.10:0.7 -> https://nbronson.github.io/scala-stm/license.html
-   org.scalaz:scalaz-concurrent_2.10:7.1.2 -> https://github.com/scalaz/scalaz/blob/series/7.1.x/etc/LICENCE
-   org.scalaz:scalaz-core_2.10:7.1.2 -> https://github.com/scalaz/scalaz/blob/series/7.1.x/etc/LICENCE
-   org.scalaz:scalaz-effect_2.10:7.1.2 -> https://github.com/scalaz/scalaz/blob/series/7.1.x/etc/LICENCE
-   asm:asm-commons:3.3 -> http://asm.ow2.org/license.html
-   asm:asm-tree:3.3 -> http://asm.ow2.org/license.html
-   asm:asm:3.3 -> http://asm.ow2.org/license.html
+   jline:jline:2.6 -> https://github.com/jline/jline2/blob/master/LICENSE.txt and licenses/LICENSE-jline.txt
+   org.clapper:grizzled-scala_2.10:1.1.2 -> http://software.clapper.org/grizzled-scala/#copyright-and-license and licenses/LICENSE-clapper.txt
+   org.clapper:grizzled-slf4j_2.10:1.0.1 -> http://software.clapper.org/grizzled-slf4j/#copyright-and-license and licenses/LICENSE-clapper.txt
+   org.scala-stm:scala-stm_2.10:0.7 -> https://nbronson.github.io/scala-stm/license.html and licenses/LICENSE-scala-stm.txt
+   org.scalaz:scalaz-concurrent_2.10:7.1.2 -> https://github.com/scalaz/scalaz/blob/series/7.1.x/etc/LICENCE and licenses/LICENSE-scalaz.txt
+   org.scalaz:scalaz-core_2.10:7.1.2 -> https://github.com/scalaz/scalaz/blob/series/7.1.x/etc/LICENCE and licenses/LICENSE-scalaz.txt
+   org.scalaz:scalaz-effect_2.10:7.1.2 -> https://github.com/scalaz/scalaz/blob/series/7.1.x/etc/LICENCE and licenses/LICENSE-scalaz.txt
+   asm:asm-commons:3.3 -> http://asm.ow2.org/license.html and licenses/LICENSE-asm.txt
+   asm:asm-tree:3.3 -> http://asm.ow2.org/license.html and licenses/LICENSE-asm.txt
+   asm:asm:3.3 -> http://asm.ow2.org/license.html and licenses/LICENSE-asm.txt
 
 ========================================================================
 MIT license
@@ -44,10 +44,10 @@ MIT license
 
 Direct dependencies
 
-   net.sf.jopt-simple:jopt-simple:4.6 -> https://pholser.github.io/jopt-simple/license.html
-   org.slf4j:slf4j-api:1.7.5 -> http://www.slf4j.org/license.html
-   org.slf4j:slf4j-api:1.7.1 -> http://www.slf4j.org/license.html
+   net.sf.jopt-simple:jopt-simple:4.6 -> https://pholser.github.io/jopt-simple/license.html and licenses/LICENSE-jopt-simple.txt
+   org.slf4j:slf4j-api:1.7.5 -> http://www.slf4j.org/license.html and licenses/LICENSE-slf4j.txt
+   org.slf4j:slf4j-api:1.7.1 -> http://www.slf4j.org/license.html and licenses/LICENSE-slf4j.txt
 
 Transitive Dependencies
 
-   com.lihaoyi:ammonite-terminal_2.10:0.5.0 -> https://github.com/lihaoyi/Ammonite/blob/master/LICENSE
\ No newline at end of file
+   com.lihaoyi:ammonite-terminal_2.10:0.5.0 -> https://github.com/lihaoyi/Ammonite/blob/master/LICENSE and licenses/LICENSE-ammonite.txt
\ No newline at end of file


[31/32] incubator-toree git commit: Add pip signing and uploading.

Posted by ch...@apache.org.
Add pip signing and uploading.


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/09d769a2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/09d769a2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/09d769a2

Branch: refs/heads/master
Commit: 09d769a236fc691a604d1c77ec3a25387368be33
Parents: 9157a5a
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Mon Apr 11 16:12:29 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:47:42 2016 -0500

----------------------------------------------------------------------
 Makefile | 88 ++++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 60 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/09d769a2/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 41aa1b0..d0673b5 100644
--- a/Makefile
+++ b/Makefile
@@ -163,7 +163,28 @@ test-travis:
 	$(ENV_OPTS) sbt clean test -Dakka.test.timefactor=3
 	find $(HOME)/.sbt -name "*.lock" | xargs rm
 	find $(HOME)/.ivy2 -name "ivydata-*.properties" | xargs rm
+	
+define JUPYTER_COMMAND
+pip install toree-$(VERSION).tar.gz
+jupyter toree install --interpreters=PySpark,SQL,Scala,SparkR
+cd /srv/toree/etc/examples/notebooks
+jupyter notebook --ip=* --no-browser
+endef
+
+export JUPYTER_COMMAND
+jupyter: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
+jupyter: .example-image pip-release
+	@$(DOCKER) -p 8888:8888  -e SPARK_OPTS="--master=local[4]" --user=root  $(EXAMPLE_IMAGE) bash -c "$$JUPYTER_COMMAND"
 
+################################################################################
+# Jars
+################################################################################
+publish-jars:
+	@$(ENV_OPTS) GPG_PASSWORD=$(GPG_PASSWORD) GPG=$(GPG) sbt publish-signed
+	
+################################################################################
+# PIP PACKAGE 
+################################################################################
 dist/toree-pip/toree-$(VERSION).tar.gz: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
 dist/toree-pip/toree-$(VERSION).tar.gz: dist/toree
 	@mkdir -p dist/toree-pip
@@ -176,15 +197,44 @@ dist/toree-pip/toree-$(VERSION).tar.gz: dist/toree
 	@$(GEN_PIP_PACKAGE_INFO)
 	@$(DOCKER) $(IMAGE) python setup.py sdist --dist-dir=.
 	@$(DOCKER) -p 8888:8888 --user=root  $(IMAGE) bash -c	'pip install toree-$(VERSION).tar.gz && jupyter toree install'
+	@find dist/toree-pip -type f -not -name 'toree-0.1.0.dev5-incubating.tar.gz' -maxdepth 1 | xargs rm
 
 pip-release: dist/toree-pip/toree-$(VERSION).tar.gz
 
+dist/toree-pip/toree-$(VERSION).tar.gz.md5 dist/toree-pip/toree-$(VERSION).tar.gz.asc dist/toree-pip/toree-$(VERSION).tar.gz.sha: dist/toree-pip/toree-$(VERSION).tar.gz
+	@GPG_PASSWORD=$(GPG_PASSWORD) GPG=$(GPG) etc/tools/./sign-file dist/toree-pip/toree-$(VERSION).tar.gz
+
+sign-pip: dist/toree-pip/toree-$(VERSION).tar.gz.md5 dist/toree-pip/toree-$(VERSION).tar.gz.asc dist/toree-pip/toree-$(VERSION).tar.gz.sha
+
+publish-pip: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
+publish-pip: PYPI_REPO?=https://pypi.python.org/pypi
+publish-pip: PYPI_USER?=
+publish-pip: PYPI_PASSWORD?=
+publish-pip: PYPIRC=printf "[distutils]\nindex-servers =\n\tpypi\n\n[pypi]\nrepository: $(PYPI_REPO) \nusername: $(PYPI_USER)\npassword: $(PYPI_PASSWORD)" > ~/.pypirc;
+publish-pip: sign-pip
+	@$(DOCKER) $(IMAGE) bash -c '$(PYPIRC) pip install twine && \
+		python setup.py register -r $(PYPI_REPO) && \
+		twine upload -r pypi toree-$(VERSION).tar.gz toree-$(VERSION).tar.gz.asc'
+
+################################################################################
+# BIN PACKAGE
+################################################################################
 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz: dist/toree
 	@mkdir -p dist/toree-bin
 	@(cd dist; tar -cvzf toree-bin/toree-$(VERSION)-binary-release.tar.gz toree)
 
 bin-release: dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
 
+dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.md5 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.asc dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.sha: dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
+	@GPG_PASSWORD=$(GPG_PASSWORD) GPG=$(GPG) etc/tools/./sign-file dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
+
+sign-bin: dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.md5 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.asc dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.sha
+
+publish-bin:
+
+################################################################################
+# SRC PACKAGE
+################################################################################
 dist/toree-src/toree-$(VERSION)-source-release.tar.gz:
 	@mkdir -p dist/toree-src
 	@tar -X 'etc/.src-release-ignore' -cvzf dist/toree-src/toree-$(VERSION)-source-release.tar.gz .
@@ -196,38 +246,20 @@ dist/toree-src/toree-$(VERSION)-source-release.tar.gz.md5 dist/toree-src/toree-$
 
 sign-src: dist/toree-src/toree-$(VERSION)-source-release.tar.gz.md5 dist/toree-src/toree-$(VERSION)-source-release.tar.gz.asc dist/toree-src/toree-$(VERSION)-source-release.tar.gz.sha
 
-dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.md5 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.asc dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.sha: dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
-	@GPG_PASSWORD=$(GPG_PASSWORD) GPG=$(GPG) etc/tools/./sign-file dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
-
-sign-bin: dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.md5 dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.asc dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz.sha
+publish-src:
 
-sign:  sign-bin sign-src
+################################################################################
+# ALL PACKAGES
+################################################################################
+release: pip-release src-release bin-release sign
 
-publish-release:
-	@GPG_PASSWORD=$(GPG_PASSWORD) GPG=$(GPG) sbt publish-local-signed
+sign: sign-bin sign-src sign-pip
 
 audit: sign
 	@etc/tools/./check-licenses
-	@etc/tools/./verify-release dist/toree-bin dist/toree-src
-
-release: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
-release: PYPI_REPO?=https://pypi.python.org/pypi
-release: PYPI_USER?=
-release: PYPI_PASSWORD?=
-release: PYPIRC=printf "[distutils]\nindex-servers =\n\tpypi\n\n[pypi]\nrepository: $(PYPI_REPO) \nusername: $(PYPI_USER)\npassword: $(PYPI_PASSWORD)" > ~/.pypirc;
-release: pip-release bin-release src-release sign audit
-	@$(DOCKER) $(IMAGE) bash -c '$(PYPIRC) pip install twine && \
-		python setup.py register -r $(PYPI_REPO) && \
-		twine upload -r pypi toree-$(VERSION).tar.gz'
+	@etc/tools/./verify-release dist/toree-bin dist/toree-src dist/toree-pip
 
-define JUPYTER_COMMAND
-pip install toree-$(VERSION).tar.gz
-jupyter toree install --interpreters=PySpark,SQL,Scala,SparkR
-cd /srv/toree/etc/examples/notebooks
-jupyter notebook --ip=* --no-browser
-endef
+publish: audit publish-bin publish-pip publish-src publish-jars
+
+all: clean test audit
 
-export JUPYTER_COMMAND
-jupyter: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
-jupyter: .example-image pip-release
-	@$(DOCKER) -p 8888:8888  -e SPARK_OPTS="--master=local[4]" --user=root  $(EXAMPLE_IMAGE) bash -c "$$JUPYTER_COMMAND"


[26/32] incubator-toree git commit: Removed system tests

Posted by ch...@apache.org.
Removed system tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/a7f50032
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/a7f50032
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/a7f50032

Branch: refs/heads/master
Commit: a7f500324e1ca5a6862cb2c6ebebe169a0b30a19
Parents: 23c3abb
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Mon Apr 11 09:29:34 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:47:41 2016 -0500

----------------------------------------------------------------------
 .../apache/toree/utils/TaskManagerSpec.scala    |   2 +-
 .../scala/system/KernelCommSpecForSystem.scala  | 456 -------------------
 .../src/test/scala/system/SuiteForSystem.scala  |  38 --
 .../src/test/scala/system/TruncationTests.scala | 228 ----------
 .../test/utils/NoArgSparkKernelTestKit.scala    |  27 --
 .../scala/test/utils/SparkKernelDeployer.scala  | 186 --------
 6 files changed, 1 insertion(+), 936 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/a7f50032/kernel-api/src/test/scala/org/apache/toree/utils/TaskManagerSpec.scala
----------------------------------------------------------------------
diff --git a/kernel-api/src/test/scala/org/apache/toree/utils/TaskManagerSpec.scala b/kernel-api/src/test/scala/org/apache/toree/utils/TaskManagerSpec.scala
index 3f97cbb..61ae715 100644
--- a/kernel-api/src/test/scala/org/apache/toree/utils/TaskManagerSpec.scala
+++ b/kernel-api/src/test/scala/org/apache/toree/utils/TaskManagerSpec.scala
@@ -34,7 +34,7 @@ class TaskManagerSpec extends FunSpec with Matchers with MockitoSugar
   with Eventually with Timeouts
 {
   implicit override val patienceConfig = PatienceConfig(
-    timeout = scaled(Span(200, Milliseconds)),
+    timeout = scaled(Span(30, Seconds)),
     interval = scaled(Span(5, Milliseconds))
   )
   private val MaxTestTasks = 50000

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/a7f50032/kernel/src/test/scala/system/KernelCommSpecForSystem.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/system/KernelCommSpecForSystem.scala b/kernel/src/test/scala/system/KernelCommSpecForSystem.scala
deleted file mode 100644
index 9ebe146..0000000
--- a/kernel/src/test/scala/system/KernelCommSpecForSystem.scala
+++ /dev/null
@@ -1,456 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one or more
- *  contributor license agreements.  See the NOTICE file distributed with
- *  this work for additional information regarding copyright ownership.
- *  The ASF licenses this file to You 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
- */
-
-package system
-
-import akka.testkit.TestProbe
-import org.apache.toree.communication.ZMQMessage
-import org.apache.toree.kernel.protocol.v5
-import org.apache.toree.kernel.protocol.v5.content._
-import org.apache.toree.kernel.protocol.v5.kernel.ActorLoader
-import org.apache.toree.kernel.protocol.v5.kernel.Utilities._
-import org.apache.toree.kernel.protocol.v5.{KMBuilder, KernelMessage, SocketType}
-import org.scalatest._
-import play.api.libs.json.Json
-import test.utils.NoArgSparkKernelTestKit
-
-import scala.concurrent.duration._
-
-
-/**
- * Used for system-wide (entire Spark Kernel) tests relating to Comm usage.
- *
- * @note Do not use non-generated target names or Comm ids! This is a shared
- *       kernel instance (to avoid death by slowness) and it is not guaranteed
- *       that previous tests will do proper cleanup!
- */
-@DoNotDiscover
-class KernelCommSpecForSystem
-  extends NoArgSparkKernelTestKit
-  with FunSpecLike with Matchers
-{
-  private val MaxFishTime = 5.seconds
-
-  import test.utils.SparkKernelDeployer._
-
-  private def waitForExecuteReply(
-    shell: TestProbe, headerId: v5.UUID, maxTime: Duration = MaxFishTime
-  ): Unit =
-    shell.fishForMessage(maxTime) {
-      case KernelMessage(_, _, header, parentHeader, _, _)
-        if header.msg_type == ExecuteReply.toTypeString &&
-          parentHeader.msg_id == headerId=> true
-      case _ => false
-    }
-
-  private def waitForBusyStatus(
-    ioPub: TestProbe, headerId: v5.UUID, maxTime: Duration = MaxFishTime
-  ): Unit =
-    ioPub.fishForMessage(maxTime) {
-      case KernelMessage(_, _, header, parentHeader, _, contentString)
-        if header.msg_type == KernelStatus.toTypeString &&
-          parentHeader.msg_id == headerId =>
-        Json.parse(contentString).as[KernelStatus].execution_state == "busy"
-      case _ => false
-    }
-
-  private def waitForIdleStatus(
-    ioPub: TestProbe, headerId: v5.UUID, maxTime: Duration = MaxFishTime
-  ): Unit =
-    ioPub.fishForMessage(maxTime) {
-      case KernelMessage(_, _, header, parentHeader, _, contentString)
-        if header.msg_type == KernelStatus.toTypeString &&
-          parentHeader.msg_id == headerId =>
-        Json.parse(contentString).as[KernelStatus].execution_state == "idle"
-      case _ => false
-    }
-
-  private def setupCallback(
-    actorLoader: ActorLoader, shell: TestProbe, callbackFunc: String,
-    targetName: String, expectedMessage: String
-  ) = {
-    // If open callback, there are four arguments
-    // If msg/close callback, there are three arguments
-    val callbackArgs =
-      if (callbackFunc.toLowerCase.trim == "addopenhandler") """(_,_,_,_)"""
-      else """(_,_,_)"""
-
-    // Set up a callback (using stream messages as indicator)
-    val codeRequest = s"""
-      |kernel.comm.register("$targetName").$callbackFunc {
-      |    $callbackArgs => kernel.out.println("$expectedMessage")
-      |}
-    """.stripMargin.trim
-    val (messageId, message) = buildZMQExecuteRequest(codeRequest)
-    actorLoader.load(SocketType.Shell) ! message
-
-    waitForExecuteReply(shell, messageId)
-  }
-
-  private def testForCallback(
-    ioPub: TestProbe, expectedMessage: String, maxTime: Duration = MaxFishTime
-  ) = {
-    // Should discover an outgoing kernel message for stream
-    ioPub.fishForMessage(maxTime) {
-      case KernelMessage(_, _, header, _, _, contentString)
-        if header.msg_type == StreamContent.toTypeString =>
-        val callbackMessage =
-          Json.parse(contentString).as[StreamContent].text.trim
-        callbackMessage == expectedMessage
-      case _ => false
-    }
-  }
-
-  private def buildZMQExecuteRequest(codeRequest: String): (v5.UUID, ZMQMessage) = {
-    val kernelMessage = KMBuilder()
-      .withHeader(ExecuteRequest.toTypeString)
-      .withContentString(ExecuteRequest(
-      code = codeRequest,
-      silent = false,
-      store_history = false,
-      user_expressions = v5.UserExpressions(),
-      allow_stdin = true
-    )).build
-
-    (kernelMessage.header.msg_id, kernelMessage)
-  }
-
-  // Not using TestCommId to avoid problems if previous comm using that
-  // id in tests was not properly closed
-  private def buildZMQCommOpen(
-    targetName: String, data: v5.MsgData,
-    commId: v5.UUID = java.util.UUID.randomUUID().toString
-  ): (v5.UUID, ZMQMessage) = {
-    val kernelMessage = KMBuilder()
-      .withHeader(CommOpen.toTypeString)
-      .withContentString(CommOpen(
-      comm_id = commId,
-      target_name = targetName,
-      data = data
-    )).build
-
-    (kernelMessage.header.msg_id, kernelMessage)
-  }
-
-  // Not using TestCommId to avoid problems if previous comm using that
-  // id in tests was not properly closed
-  private def buildZMQCommMsg(commId: v5.UUID, data: v5.MsgData): (v5.UUID, ZMQMessage) = {
-    val kernelMessage = KMBuilder()
-      .withHeader(CommMsg.toTypeString)
-      .withContentString(CommMsg(
-      comm_id = commId,
-      data = data
-    )).build
-
-    (kernelMessage.header.msg_id, kernelMessage)
-  }
-
-  // Not using TestCommId to avoid problems if previous comm using that
-  // id in tests was not properly closed
-  private def buildZMQCommClose(commId: v5.UUID, data: v5.MsgData): (v5.UUID, ZMQMessage) = {
-    val kernelMessage = KMBuilder()
-      .withHeader(CommClose.toTypeString)
-      .withContentString(CommClose(
-      comm_id = commId,
-      data = data
-    )).build
-
-    (kernelMessage.header.msg_id, kernelMessage)
-  }
-
-  describe("Comm for Kernel System") {
-    describe("executing Comm API to open a new comm") {
-      it("should correctly send comm_open to socket") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-          val testTargetName = java.util.UUID.randomUUID().toString
-          val codeRequest =
-            s"""
-              |kernel.comm.open("$testTargetName")
-            """.stripMargin.trim
-
-          // Send our code to trigger the Comm API
-          val (_, message) = buildZMQExecuteRequest(codeRequest)
-          actorLoader.load(SocketType.Shell) ! message
-
-          // Should discover an outgoing kernel message for comm_open
-          ioPub.fishForMessage(MaxFishTime) {
-            case KernelMessage(_, _, header, _, _, _)
-              if header.msg_type == CommOpen.toTypeString => true
-            case _ => false
-          }
-        }
-      }
-    }
-
-    describe("executing Comm API to send a message") {
-      it("should correctly send comm_msg to socket") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-          val testTargetName = java.util.UUID.randomUUID().toString
-          val codeRequest =
-            s"""
-              |val commWriter = kernel.comm.open("$testTargetName")
-              |commWriter.writeMsg(
-              |   org.apache.toree.kernel.protocol.v5.MsgData("key" -> "value")
-              |)
-            """.stripMargin.trim
-
-          // Send our code to trigger the Comm API
-          val (_, message) = buildZMQExecuteRequest(codeRequest)
-          actorLoader.load(SocketType.Shell) ! message
-
-          // Should discover an outgoing kernel message for comm_msg
-          ioPub.fishForMessage(MaxFishTime) {
-            case KernelMessage(_, _, header, _, _, contentString)
-              if header.msg_type == CommMsg.toTypeString =>
-              (Json.parse(contentString).as[CommMsg].data \ "key").as[String] == "value"
-            case _ => false
-          }
-        }
-      }
-    }
-
-    describe("executing Comm API to close an existing comm") {
-      it("should correctly send comm_close to socket") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-          val testTargetName = java.util.UUID.randomUUID().toString
-          val codeRequest =
-            s"""
-              |val commWriter = kernel.comm.open("$testTargetName")
-              |commWriter.close()
-            """.stripMargin.trim
-
-          // Send our code to trigger the Comm API
-          val (_, message) = buildZMQExecuteRequest(codeRequest)
-          actorLoader.load(SocketType.Shell) ! message
-
-          // Should discover an outgoing kernel message for comm_close
-          ioPub.fishForMessage(MaxFishTime) {
-            case KernelMessage(_, _, header, _, _, _)
-              if header.msg_type == CommClose.toTypeString => true
-            case _ => false
-          }
-        }
-      }
-    }
-
-    describe("receiving Comm API open from a client") {
-      it("should respond comm_close if the target is not found") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-          val testTargetName = java.util.UUID.randomUUID().toString
-
-          // Send a comm_open (as if a client did it)
-          val (_, message) = buildZMQCommOpen(testTargetName, v5.MsgData.Empty)
-          actorLoader.load(SocketType.Shell) ! message
-
-          // Should discover an outgoing kernel message for comm_close
-          ioPub.fishForMessage(MaxFishTime) {
-            case KernelMessage(_, _, header, _, _, _)
-              if header.msg_type == CommClose.toTypeString => true
-            case _ => false
-          }
-        }
-      }
-
-        it("should not execute open callbacks if the target is not found") {
-          withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-            val testTargetName = java.util.UUID.randomUUID().toString
-            val expectedMessage = "callback" + testTargetName
-
-            setupCallback(actorLoader, shell, "addOpenHandler",
-              testTargetName, expectedMessage)
-
-            // Send a comm_open (as if a client did it) with wrong target
-            val (_, message) =
-              buildZMQCommOpen(testTargetName + "wrong", v5.MsgData.Empty)
-            actorLoader.load(SocketType.Shell) ! message
-
-            // Throws an assertion error when a timeout occurs
-            intercept[AssertionError] {
-              testForCallback(ioPub, expectedMessage, 3.seconds)
-            }
-          }
-        }
-
-      it("should execute open callbacks if the target is found") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-          val testTargetName = java.util.UUID.randomUUID().toString
-          val expectedMessage = "callback" + testTargetName
-
-          setupCallback(actorLoader, shell, "addOpenHandler",
-            testTargetName, expectedMessage)
-
-          // Send a comm_open (as if a client did it)
-          val (_, message) = buildZMQCommOpen(testTargetName, v5.MsgData.Empty)
-          actorLoader.load(SocketType.Shell) ! message
-
-          testForCallback(ioPub, expectedMessage)
-        }
-      }
-
-      // Tested through other tests
-      /*ignore("should link the target and Comm id if the target is found") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-        }
-      }*/
-    }
-
-    describe("receiving Comm API message from a client") {
-      it("should not execute message callbacks if the Comm id is not found") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-          val testTargetName = java.util.UUID.randomUUID().toString
-          val testCommId = java.util.UUID.randomUUID().toString
-          val expectedMessage = "callback" + testTargetName
-
-          setupCallback(actorLoader, shell, "addMsgHandler",
-            testTargetName, expectedMessage)
-
-          // Set up the Comm id prior so we have a proper link
-          val (openId, openMessage) =
-            buildZMQCommOpen(testTargetName, v5.MsgData.Empty, testCommId)
-          actorLoader.load(SocketType.Shell) ! openMessage
-
-          waitForIdleStatus(ioPub, openId)
-
-          // Send a comm_msg (as if a client did it) with wrong id
-          val (msgId, msgMessage) =
-            buildZMQCommMsg(testCommId + "wrong", v5.MsgData.Empty)
-          actorLoader.load(SocketType.Shell) ! msgMessage
-
-          // Throws an assertion error when a timeout occurs
-          intercept[AssertionError] {
-            testForCallback(ioPub, expectedMessage, 3.seconds)
-          }
-        }
-      }
-
-      it("should execute message callbacks if the Comm id is found") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-          val testTargetName = java.util.UUID.randomUUID().toString
-          val testCommId = java.util.UUID.randomUUID().toString
-          val expectedMessage = "callback" + testTargetName
-
-          setupCallback(actorLoader, shell, "addMsgHandler",
-            testTargetName, expectedMessage)
-
-          // Set up the Comm id prior so we have a proper link
-          val (openId, openMessage) =
-            buildZMQCommOpen(testTargetName, v5.MsgData.Empty, testCommId)
-          actorLoader.load(SocketType.Shell) ! openMessage
-
-          waitForIdleStatus(ioPub, openId)
-
-          // Send a comm_msg (as if a client did it)
-          val (msgId, msgMessage) =
-            buildZMQCommMsg(testCommId, v5.MsgData.Empty)
-          actorLoader.load(SocketType.Shell) ! msgMessage
-
-          testForCallback(ioPub, expectedMessage)
-        }
-      }
-    }
-
-    describe("receiving Comm API close from a client") {
-      it("should not execute close callbacks if the Comm id is not found") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-          val testTargetName = java.util.UUID.randomUUID().toString
-          val testCommId = java.util.UUID.randomUUID().toString
-          val expectedMessage = "callback" + testTargetName
-
-          setupCallback(actorLoader, shell, "addCloseHandler",
-            testTargetName, expectedMessage)
-
-          // Set up the Comm id prior so we have a proper link
-          val (openId, openMessage) =
-            buildZMQCommOpen(testTargetName, v5.MsgData.Empty, testCommId)
-          actorLoader.load(SocketType.Shell) ! openMessage
-
-          waitForIdleStatus(ioPub, openId)
-
-          // Send a comm_close (as if a client did it) with wrong id
-          val (closeId, closeMessage) =
-            buildZMQCommClose(testCommId + "wrong", v5.MsgData.Empty)
-          actorLoader.load(SocketType.Shell) ! closeMessage
-
-          // Throws an assertion error when a timeout occurs
-          intercept[AssertionError] {
-            testForCallback(ioPub, expectedMessage, 3.seconds)
-          }
-        }
-      }
-
-      it("should execute close callbacks if the Comm id is found") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-          val testTargetName = java.util.UUID.randomUUID().toString
-          val testCommId = java.util.UUID.randomUUID().toString
-          val expectedMessage = "callback" + testTargetName
-
-          setupCallback(actorLoader, shell, "addCloseHandler",
-            testTargetName, expectedMessage)
-
-          // Set up the Comm id prior so we have a proper link
-          val (openId, openMessage) =
-            buildZMQCommOpen(testTargetName, v5.MsgData.Empty, testCommId)
-          actorLoader.load(SocketType.Shell) ! openMessage
-
-          waitForIdleStatus(ioPub, openId)
-
-          // Send a comm_close (as if a client did it)
-          val (closeId, closeMessage) =
-            buildZMQCommClose(testCommId, v5.MsgData.Empty)
-          actorLoader.load(SocketType.Shell) ! closeMessage
-
-          testForCallback(ioPub, expectedMessage)
-        }
-      }
-
-      it("should unlink the Comm id from the target if the Comm id is found") {
-        withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-          val testTargetName = java.util.UUID.randomUUID().toString
-          val testCommId = java.util.UUID.randomUUID().toString
-          val expectedMessage = "callback" + testTargetName
-
-          setupCallback(actorLoader, shell, "addCloseHandler",
-            testTargetName, expectedMessage)
-
-          // Set up the Comm id prior so we have a proper link
-          val (openId, openMessage) =
-            buildZMQCommOpen(testTargetName, v5.MsgData.Empty, testCommId)
-          actorLoader.load(SocketType.Shell) ! openMessage
-
-          waitForIdleStatus(ioPub, openId)
-
-          // Send a comm_close (as if a client did it)
-          val (closeId, closeMessage) =
-            buildZMQCommClose(testCommId, v5.MsgData.Empty)
-          actorLoader.load(SocketType.Shell) ! closeMessage
-
-          testForCallback(ioPub, expectedMessage)
-
-          // Send a comm_close (again) with the expectation that nothing happens
-          val (closeId2, closeMessage2) =
-            buildZMQCommClose(testCommId, v5.MsgData.Empty)
-          actorLoader.load(SocketType.Shell) ! closeMessage2
-
-          intercept[AssertionError] {
-            testForCallback(ioPub, expectedMessage)
-          }
-        }
-      }
-    }
-  }
-
-}

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/a7f50032/kernel/src/test/scala/system/SuiteForSystem.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/system/SuiteForSystem.scala b/kernel/src/test/scala/system/SuiteForSystem.scala
deleted file mode 100644
index 4556e5a..0000000
--- a/kernel/src/test/scala/system/SuiteForSystem.scala
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one or more
- *  contributor license agreements.  See the NOTICE file distributed with
- *  this work for additional information regarding copyright ownership.
- *  The ASF licenses this file to You 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
- */
-
-package system
-
-import org.scalatest.{BeforeAndAfterAll, Suites}
-import test.utils.SparkKernelDeployer
-
-class SuiteForSystem extends Suites(
-  new KernelCommSpecForSystem,
-  new TruncationTests
-) with BeforeAndAfterAll {
-  override protected def beforeAll(): Unit = {
-    // Initialize the kernel for system tests
-    println("Initializing kernel for system tests")
-    SparkKernelDeployer.noArgKernelBootstrap
-  }
-
-  override protected def afterAll(): Unit = {
-    println("Shutting down kernel for system tests")
-    SparkKernelDeployer.noArgKernelBootstrap.shutdown()
-    println("Finished shutting down kernel!")
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/a7f50032/kernel/src/test/scala/system/TruncationTests.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/system/TruncationTests.scala b/kernel/src/test/scala/system/TruncationTests.scala
deleted file mode 100644
index 118a609..0000000
--- a/kernel/src/test/scala/system/TruncationTests.scala
+++ /dev/null
@@ -1,228 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one or more
- *  contributor license agreements.  See the NOTICE file distributed with
- *  this work for additional information regarding copyright ownership.
- *  The ASF licenses this file to You 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
- */
-
-package system
-
-import akka.testkit.TestProbe
-import org.apache.toree.communication.ZMQMessage
-import org.apache.toree.kernel.protocol.v5.kernel.{ActorLoader, Utilities}
-import Utilities._
-import org.apache.toree.kernel.protocol.v5
-import org.apache.toree.kernel.protocol.v5.{KernelMessage, SocketType, KMBuilder}
-import org.apache.toree.kernel.protocol.v5.content._
-import org.scalatest._
-import play.api.libs.json.Json
-import scala.concurrent.duration._
-import test.utils.NoArgSparkKernelTestKit
-
-
-/**
- * Used for system-wide (entire Spark Kernel) tests relating to Comm usage.
- *
- * @note Do not use non-generated target names or Comm ids! This is a shared
- *       kernel instance (to avoid death by slowness) and it is not guaranteed
- *       that previous tests will do proper cleanup!
- */
-@DoNotDiscover
-class TruncationTests
-  extends NoArgSparkKernelTestKit
-  with FunSpecLike with Matchers
-{
-  private val MaxFishTime =   30.seconds
-  import test.utils.SparkKernelDeployer._
-
-  private def waitForExecuteReply(
-    shell: TestProbe, headerId: v5.UUID, maxTime: Duration = MaxFishTime
-  ): Unit =
-    shell.fishForMessage(maxTime) {
-      case KernelMessage(_, _, header, parentHeader, _, _)
-        if header.msg_type == ExecuteReply.toTypeString &&
-          parentHeader.msg_id == headerId=> true
-      case _ => false
-    }
-
-  private def waitForBusyStatus(
-    ioPub: TestProbe, headerId: v5.UUID, maxTime: Duration = MaxFishTime
-  ): Unit =
-    ioPub.fishForMessage(maxTime) {
-      case KernelMessage(_, _, header, parentHeader, _, contentString)
-        if header.msg_type == KernelStatus.toTypeString &&
-          parentHeader.msg_id == headerId =>
-        Json.parse(contentString).as[KernelStatus].execution_state == "busy"
-      case _ => false
-    }
-
-  private def waitForIdleStatus(
-    ioPub: TestProbe, headerId: v5.UUID, maxTime: Duration = MaxFishTime
-  ): Unit =
-    ioPub.fishForMessage(maxTime) {
-      case KernelMessage(_, _, header, parentHeader, _, contentString)
-        if header.msg_type == KernelStatus.toTypeString &&
-          parentHeader.msg_id == headerId =>
-        Json.parse(contentString).as[KernelStatus].execution_state == "idle"
-      case _ => false
-    }
-
-  private def setupCallback(
-    actorLoader: ActorLoader, shell: TestProbe, callbackFunc: String,
-    targetName: String, expectedMessage: String
-  ) = {
-    // If open callback, there are four arguments
-    // If msg/close callback, there are three arguments
-    val callbackArgs =
-      if (callbackFunc.toLowerCase.trim == "addopenhandler") """(_,_,_,_)"""
-      else """(_,_,_)"""
-
-    // Set up a callback (using stream messages as indicator)
-    val codeRequest = s"""
-      |kernel.comm.register("$targetName").$callbackFunc {
-      |    $callbackArgs => kernel.out.println("$expectedMessage")
-      |}
-    """.stripMargin.trim
-    val (messageId, message) = buildZMQExecuteRequest(codeRequest)
-    actorLoader.load(SocketType.Shell) ! message
-
-    waitForExecuteReply(shell, messageId)
-  }
-
-  private def testForCallback(
-    ioPub: TestProbe, expectedMessage: String, maxTime: Duration = MaxFishTime
-  ) = {
-    // Should discover an outgoing kernel message for stream
-    ioPub.fishForMessage(maxTime) {
-      case KernelMessage(_, _, header, _, _, contentString)
-        if header.msg_type == StreamContent.toTypeString =>
-        val callbackMessage =
-          Json.parse(contentString).as[StreamContent].text.trim
-        callbackMessage == expectedMessage
-      case _ => false
-    }
-  }
-
-  private def buildZMQExecuteRequest(codeRequest: String): (v5.UUID, ZMQMessage) = {
-    val kernelMessage = KMBuilder()
-      .withHeader(ExecuteRequest.toTypeString)
-      .withContentString(ExecuteRequest(
-      code = codeRequest,
-      silent = false,
-      store_history = false,
-      user_expressions = v5.UserExpressions(),
-      allow_stdin = true
-    )).build
-
-    (kernelMessage.header.msg_id, kernelMessage)
-  }
-
-  // Not using TestCommId to avoid problems if previous comm using that
-  // id in tests was not properly closed
-  private def buildZMQCommOpen(
-    targetName: String, data: v5.MsgData,
-    commId: v5.UUID = java.util.UUID.randomUUID().toString
-  ): (v5.UUID, ZMQMessage) = {
-    val kernelMessage = KMBuilder()
-      .withHeader(CommOpen.toTypeString)
-      .withContentString(CommOpen(
-      comm_id = commId,
-      target_name = targetName,
-      data = data
-    )).build
-
-    (kernelMessage.header.msg_id, kernelMessage)
-  }
-
-  // Not using TestCommId to avoid problems if previous comm using that
-  // id in tests was not properly closed
-  private def buildZMQCommMsg(commId: v5.UUID, data: v5.MsgData): (v5.UUID, ZMQMessage) = {
-    val kernelMessage = KMBuilder()
-      .withHeader(CommMsg.toTypeString)
-      .withContentString(CommMsg(
-      comm_id = commId,
-      data = data
-    )).build
-
-    (kernelMessage.header.msg_id, kernelMessage)
-  }
-
-  // Not using TestCommId to avoid problems if previous comm using that
-  // id in tests was not properly closed
-  private def buildZMQCommClose(commId: v5.UUID, data: v5.MsgData): (v5.UUID, ZMQMessage) = {
-    val kernelMessage = KMBuilder()
-      .withHeader(CommClose.toTypeString)
-      .withContentString(CommClose(
-      comm_id = commId,
-      data = data
-    )).build
-
-    (kernelMessage.header.msg_id, kernelMessage)
-  }
-
-
-  private def executeCode(codeRequest : String, actorLoader : ActorLoader, ioPub: TestProbe ) : String = {
-    val testTargetName = java.util.UUID.randomUUID().toString
-
-
-    // Send our code to trigger the Comm API
-    val (messageid, message) = buildZMQExecuteRequest(codeRequest)
-    actorLoader.load(SocketType.Shell) ! message
-
-    // Should discover an outgoing kernel message for comm_open
-    val res= ioPub.fishForMessage(MaxFishTime) {
-      case KernelMessage(_, _, header, parentHeader, _, _)
-        if header.msg_type == ExecuteResult.toTypeString => true
-      case _ => false
-    }
-    val kernelMessage=res.asInstanceOf[KernelMessage]
-    val map=Json.parse(kernelMessage.contentString).as[ExecuteResult].data.asInstanceOf[Map[String,String]]
-    val str= map.getOrElse("text/plain","NOT THERE")
-
-    str
-  }
-
-  describe( "Test Truncation") {
-    it("should show or not show types based on %showtypes") {
-      withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-
-        executeCode("1",actorLoader,ioPub) should be ("1")
-
-        executeCode(
-          """%showtypes on
-            |1
-          """.stripMargin,actorLoader,ioPub) should be ("Int = 1")
-
-        executeCode(
-          """%showtypes off
-            |1
-          """.stripMargin,actorLoader,ioPub) should be ("1")
-      }
-    }
-    it("should truncate or not truncate based on %truncate") {
-      withNoArgSparkKernel { (actorLoader, heartbeat, shell, ioPub) =>
-        executeCode("for ( a <-  1 to 300 ) yield a",actorLoader,ioPub) should endWith("...")
-
-        executeCode(
-          """%Truncation off
-            |for ( a <-  1 to 300 ) yield a
-          """.stripMargin,actorLoader,ioPub) should endWith("300)")
-
-        executeCode(
-          """%Truncation on
-            |for ( a <-  1 to 300 ) yield a
-          """.stripMargin,actorLoader,ioPub) should endWith("...")
-      }
-    }
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/a7f50032/kernel/src/test/scala/test/utils/NoArgSparkKernelTestKit.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/test/utils/NoArgSparkKernelTestKit.scala b/kernel/src/test/scala/test/utils/NoArgSparkKernelTestKit.scala
deleted file mode 100644
index 3a06a21..0000000
--- a/kernel/src/test/scala/test/utils/NoArgSparkKernelTestKit.scala
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one or more
- *  contributor license agreements.  See the NOTICE file distributed with
- *  this work for additional information regarding copyright ownership.
- *  The ASF licenses this file to You 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
- */
-
-package test.utils
-
-import akka.testkit.TestKit
-
-class NoArgSparkKernelTestKit
-  extends TestKit(SparkKernelDeployer.getNoArgSparkKernelActorSystem)
-{
-  // Force initialization of no-arg Spark Kernel
-  SparkKernelDeployer.noArgKernelBootstrap
-}

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/a7f50032/kernel/src/test/scala/test/utils/SparkKernelDeployer.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/test/utils/SparkKernelDeployer.scala b/kernel/src/test/scala/test/utils/SparkKernelDeployer.scala
deleted file mode 100644
index 62548c7..0000000
--- a/kernel/src/test/scala/test/utils/SparkKernelDeployer.scala
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one or more
- *  contributor license agreements.  See the NOTICE file distributed with
- *  this work for additional information regarding copyright ownership.
- *  The ASF licenses this file to You 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
- */
-
-package test.utils
-
-import akka.actor.{Actor, ActorRef, ActorSystem, Props}
-import akka.testkit.TestProbe
-import com.typesafe.config.Config
-import org.apache.toree.boot.layer.{StandardBareInitialization, StandardComponentInitialization, StandardHandlerInitialization, StandardHookInitialization}
-import org.apache.toree.boot.{CommandLineOptions, KernelBootstrap}
-import org.apache.toree.kernel.protocol.v5.SocketType
-import org.apache.toree.kernel.protocol.v5.kernel.ActorLoader
-import org.apache.toree.kernel.protocol.v5.kernel.socket._
-import org.apache.toree.utils.LogLike
-import org.scalatest.mock.MockitoSugar
-import play.api.libs.json.Json
-
-/**
- * Represents an object that can deploy a singleton Spark Kernel for tests,
- * providing access to the actors used for socket communication.
- */
-object SparkKernelDeployer extends LogLike with MockitoSugar {
-  private var actorSystem: ActorSystem = _
-  private var actorLoader: ActorLoader = _
-  private var heartbeatProbe: TestProbe = _
-  private var heartbeatActor: ActorRef = _
-  private var stdinProbe: TestProbe = _
-  private var stdinActor: ActorRef = _
-  private var shellProbe: TestProbe = _
-  private var shellActor: ActorRef = _
-  private var ioPubProbe: TestProbe = _
-  private var ioPubActor: ActorRef = _
-
-  private class ActorInterceptor(testProbe: TestProbe, actor: ActorRef)
-    extends Actor
-  {
-    override def receive: Receive = {
-      case m =>
-        testProbe.ref.forward(m)
-        actor ! m
-    }
-  }
-
-
-
-  /**
-   * Runs bare initialization, wrapping socket actors with test logic to
-   * intercept messages.
-   */
-  private trait ExposedBareInitialization
-    extends StandardBareInitialization with LogLike
-  {
-    override protected def createSockets(
-      config: Config, actorSystem: ActorSystem, actorLoader: ActorLoader
-    ): Unit =
-    {
-      logger.debug("Creating sockets")
-
-      val socketConfig: SocketConfig = SocketConfig.fromConfig(config)
-      logger.info("Connection Profile: "
-        + Json.prettyPrint(Json.toJson(socketConfig)))
-
-      logger.debug("Constructing ServerSocketFactory")
-      val socketFactory = new SocketFactory(socketConfig)
-
-      logger.debug("Initializing Heartbeat on port " +
-        socketConfig.hb_port)
-      val testHeartbeatActor = actorSystem.actorOf(
-        Props(classOf[Heartbeat], socketFactory)
-      )
-
-      logger.debug("Initializing Stdin on port " +
-        socketConfig.stdin_port)
-      val testStdinActor = actorSystem.actorOf(
-        Props(classOf[Stdin], socketFactory, actorLoader)
-      )
-
-      logger.debug("Initializing Shell on port " +
-        socketConfig.shell_port)
-      val testShellActor = actorSystem.actorOf(
-        Props(classOf[Shell], socketFactory, actorLoader)
-      )
-
-      logger.debug("Initializing IOPub on port " +
-        socketConfig.iopub_port)
-      val testIOPubActor = actorSystem.actorOf(
-        Props(classOf[IOPub], socketFactory)
-      )
-
-      // Update our publicly-available probes and create actors to wrap them
-      heartbeatProbe = new TestProbe(actorSystem)
-      val heartbeatInterceptor = actorSystem.actorOf(
-        Props(new ActorInterceptor(heartbeatProbe, testHeartbeatActor)),
-        name = SocketType.Heartbeat.toString
-      )
-      stdinProbe = new TestProbe(actorSystem)
-      val stdinInterceptor = actorSystem.actorOf(
-        Props(new ActorInterceptor(stdinProbe, testStdinActor)),
-        name = SocketType.StdIn.toString
-      )
-      shellProbe = new TestProbe(actorSystem)
-      val shellInterceptor = actorSystem.actorOf(
-        Props(new ActorInterceptor(shellProbe, testShellActor)),
-        name = SocketType.Shell.toString
-      )
-      ioPubProbe = new TestProbe(actorSystem)
-      val ioPubInterceptor = actorSystem.actorOf(
-        Props(new ActorInterceptor(ioPubProbe, testIOPubActor)),
-        name = SocketType.IOPub.toString
-      )
-    }
-
-    override protected def createActorLoader(actorSystem: ActorSystem) = {
-      // Grab the created actor loader so we can use it with TestKit
-      actorLoader = super.createActorLoader(actorSystem)
-      actorLoader
-    }
-
-    override protected def createActorSystem(actorSystemName: String) = {
-      // Grab the created actor system so we can use it with TestKit
-      require(actorSystem != null,
-        "Actor System not initialized before bootstrap!")
-      //actorSystem = super.createActorSystem(actorSystemName)
-      actorSystem
-    }
-  }
-
-  /**
-   * Represents the singleton KernelBootstrap instance that does not
-   * receive any external commandline arguments.
-   */
-  lazy val noArgKernelBootstrap = {
-    // Print out a message to indicate this fixture is being created
-    logger.debug("Creating 'no external args' Spark Kernel through Kernel Bootstrap")
-
-    val kernelBootstrap =
-      (new KernelBootstrap(new CommandLineOptions(Nil).toConfig)
-        with ExposedBareInitialization
-        with StandardComponentInitialization
-        with StandardHandlerInitialization
-        with StandardHookInitialization).initialize()
-
-    logger.debug("Finished initializing Kernel Bootstrap! Testing can now start!")
-
-    kernelBootstrap
-  }
-
-  /**
-   * Provides a gateway for tests to receive the "no external arguments"
-   * KernelBootstrap through an actor loader and socket test probes.
-   *
-   * @param testCode The test code to execute
-   * @return The results from the test code
-   */
-  def withNoArgSparkKernel(
-    testCode: (ActorLoader, TestProbe, TestProbe, TestProbe) => Any
-  ) = testCode(actorLoader, heartbeatProbe, shellProbe, ioPubProbe)
-
-
-  /**
-   * Retrieves the actor system for the "no external arguments" KernelBootstrap
-   * instance. Will initialize the KernelBootstrap if the actor system is not
-   * ready.
-   *
-   * @return The actor system of KernelBootstrap
-   */
-  def getNoArgSparkKernelActorSystem: ActorSystem =
-    //if (actorSystem == null) { noArgKernelBootstrap; actorSystem }
-    //else actorSystem
-    if (actorSystem == null) { actorSystem = ActorSystem(); actorSystem }
-    else actorSystem
-}



[17/32] incubator-toree git commit: Add ensime files to ingore list for src distro

Posted by ch...@apache.org.
Add ensime files to ingore list for src distro


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/498f173c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/498f173c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/498f173c

Branch: refs/heads/master
Commit: 498f173c49e8054cd0e25be749661a0d66d224fd
Parents: 3b2cad1
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Wed Apr 6 11:09:54 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:49 2016 -0500

----------------------------------------------------------------------
 etc/.src-release-ignore | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/498f173c/etc/.src-release-ignore
----------------------------------------------------------------------
diff --git a/etc/.src-release-ignore b/etc/.src-release-ignore
index 39ddd58..59b8bca 100644
--- a/etc/.src-release-ignore
+++ b/etc/.src-release-ignore
@@ -6,4 +6,6 @@ dist
 .ipynb_checkpoints
 examples
 metastore_db
+.ensime/*
+.ensime_cache/*
 


[23/32] incubator-toree git commit: Adding and pointing to each of the licenses bundled in bin packages

Posted by ch...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/COPYING
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/COPYING b/etc/legal/licenses/COPYING
new file mode 100644
index 0000000..b6f3fd5
--- /dev/null
+++ b/etc/legal/licenses/COPYING
@@ -0,0 +1,674 @@
+                      GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/COPYING.LESSER
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/COPYING.LESSER b/etc/legal/licenses/COPYING.LESSER
new file mode 100644
index 0000000..9925774
--- /dev/null
+++ b/etc/legal/licenses/COPYING.LESSER
@@ -0,0 +1,206 @@
+		         GNU LESSER GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+  This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+  0. Additional Definitions. 
+
+  As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+  "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+  An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+  A "Combined Work" is a work produced by combining or linking an
+Application with the Library.  The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+  The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+  The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+  1. Exception to Section 3 of the GNU GPL.
+
+  You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+  2. Conveying Modified Versions.
+
+  If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+   a) under this License, provided that you make a good faith effort to
+   ensure that, in the event an Application does not supply the
+   function or data, the facility still operates, and performs
+   whatever part of its purpose remains meaningful, or
+
+   b) under the GNU GPL, with none of the additional permissions of
+   this License applicable to that copy.
+
+  3. Object Code Incorporating Material from Library Header Files.
+
+  The object code form of an Application may incorporate material from
+a header file that is part of the Library.  You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+   a) Give prominent notice with each copy of the object code that the
+   Library is used in it and that the Library and its use are
+   covered by this License.
+
+   b) Accompany the object code with a copy of the GNU GPL and this license
+   document.
+
+  4. Combined Works.
+
+  You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+   a) Give prominent notice with each copy of the Combined Work that
+   the Library is used in it and that the Library and its use are
+   covered by this License.
+
+   b) Accompany the Combined Work with a copy of the GNU GPL and this license
+   document.
+
+   c) For a Combined Work that displays copyright notices during
+   execution, include the copyright notice for the Library among
+   these notices, as well as a reference directing the user to the
+   copies of the GNU GPL and this license document.
+
+   d) Do one of the following:
+
+       0) Convey the Minimal Corresponding Source under the terms of this
+       License, and the Corresponding Application Code in a form
+       suitable for, and under terms that permit, the user to
+       recombine or relink the Application with a modified version of
+       the Linked Version to produce a modified Combined Work, in the
+       manner specified by section 6 of the GNU GPL for conveying
+       Corresponding Source.
+
+       1) Use a suitable shared library mechanism for linking with the
+       Library.  A suitable mechanism is one that (a) uses at run time
+       a copy of the Library already present on the user's computer
+       system, and (b) will operate properly with a modified version
+       of the Library that is interface-compatible with the Linked
+       Version. 
+
+   e) Provide Installation Information, but only if you would otherwise
+   be required to provide such information under section 6 of the
+   GNU GPL, and only to the extent that such information is
+   necessary to install and execute a modified version of the
+   Combined Work produced by recombining or relinking the
+   Application with a modified version of the Linked Version. (If
+   you use option 4d0, the Installation Information must accompany
+   the Minimal Corresponding Source and Corresponding Application
+   Code. If you use option 4d1, you must provide the Installation
+   Information in the manner specified by section 6 of the GNU GPL
+   for conveying Corresponding Source.)
+
+  5. Combined Libraries.
+
+  You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+   a) Accompany the combined library with a copy of the same work based
+   on the Library, uncombined with any other library facilities,
+   conveyed under the terms of this License.
+
+   b) Give prominent notice with the combined library that part of it
+   is a work based on the Library, and explaining where to find the
+   accompanying uncombined form of the same work.
+
+  6. Revised Versions of the GNU Lesser General Public License.
+
+  The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+  Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+  If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
+--------------------------------------------------------------------------------
+
+           SPECIAL EXCEPTION GRANTED BY COPYRIGHT HOLDERS
+
+As a special exception, copyright holders give you permission to link this
+library with independent modules to produce an executable, regardless of
+the license terms of these independent modules, and to copy and distribute
+the resulting executable under terms of your choice, provided that you also
+meet, for each linked independent module, the terms and conditions of
+the license of that module. An independent module is a module which is not
+derived from or based on this library. If you modify this library, you must
+extend this exception to your version of the library.
+
+--------------------------------------------------------------------------------
+
+Parts of the software are licensed under the MIT (X11) license as follows:
+
+Copyright (c) 2007-2010 Contributors as listed in AUTHORS
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation
+ files (the "Software"), to deal in the Software without
+ restriction, including without limitation the rights to use,
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following
+ conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/LICENSE-ammonite.txt
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/LICENSE-ammonite.txt b/etc/legal/licenses/LICENSE-ammonite.txt
new file mode 100644
index 0000000..307d8e9
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-ammonite.txt
@@ -0,0 +1,25 @@
+License
+=======
+
+
+The MIT License (MIT)
+
+Copyright (c) 2014 Li Haoyi (haoyi.sg@gmail.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
+DEALINGS IN THE SOFTWARE.

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/LICENSE-asm.txt
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/LICENSE-asm.txt b/etc/legal/licenses/LICENSE-asm.txt
new file mode 100644
index 0000000..c5aba7b
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-asm.txt
@@ -0,0 +1,29 @@
+Copyright (c) 2000-2011 INRIA, France Telecom
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holders nor the names of its
+   contributors may be used to endorse or promote products derived from
+   this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGE.

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/297914a1/etc/legal/licenses/LICENSE-clapper.txt
----------------------------------------------------------------------
diff --git a/etc/legal/licenses/LICENSE-clapper.txt b/etc/legal/licenses/LICENSE-clapper.txt
new file mode 100644
index 0000000..5201f85
--- /dev/null
+++ b/etc/legal/licenses/LICENSE-clapper.txt
@@ -0,0 +1,31 @@
+This software is released under a BSD license, adapted from
+<http://opensource.org/licenses/BSD-3-Clause>
+
+Copyright (c) 2004-2011 Brian M. Clapper.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice,
+  this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+
+* Neither the name "clapper.org", "clapper.org Java Utility Library", nor
+  the names of its contributors may be used to endorse or promote products
+  derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.


[16/32] incubator-toree git commit: Add signatures and checksums Added scripts to generate signatures and checksums for artifacts Added scripts to verify signatures and checksums during release audit

Posted by ch...@apache.org.
Add signatures and checksums
Added scripts to generate signatures and checksums for artifacts
Added scripts to verify signatures and checksums during release audit


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/3b2cad1f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/3b2cad1f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/3b2cad1f

Branch: refs/heads/master
Commit: 3b2cad1f90f3be9bdf2eca1f90198d9829c0d2fe
Parents: 2e4b647
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Wed Apr 6 11:08:36 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:41 2016 -0500

----------------------------------------------------------------------
 Makefile                 |   5 +-
 etc/tools/sign-file      |  42 ++++++++++++++++
 etc/tools/verify-release | 111 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 157 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/3b2cad1f/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 21ce41b..50563aa 100644
--- a/Makefile
+++ b/Makefile
@@ -161,15 +161,18 @@ pip-release: dist
 	@$(DOCKER) -p 8888:8888 --user=root  $(IMAGE) bash -c	'pip install toree-$(VERSION).tar.gz && jupyter toree install'
 
 audit:
-	@etc/tools/./check-licenses 
+	@etc/tools/./check-licenses
+	@etc/tools/./verify-release dist/toree-bin dist/toree-src
 
 bin-release: dist
 	@mkdir dist/toree-bin
 	@(cd dist; tar -cvzf toree-bin/toree-$(VERSION)-binary-release.tar.gz toree)
+	@etc/tools/./sign-file dist/toree-bin/toree-$(VERSION)-binary-release.tar.gz
 
 src-release:
 	@mkdir -p dist/toree-src
 	@tar -X 'etc/.src-release-ignore' -cvzf dist/toree-src/toree-$(VERSION)-source-release.tar.gz .
+	@etc/tools/./sign-file dist/toree-src/toree-$(VERSION)-source-release.tar.gz
 
 release: DOCKER_WORKDIR=/srv/toree/dist/toree-pip
 release: PYPI_REPO?=https://pypi.python.org/pypi

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/3b2cad1f/etc/tools/sign-file
----------------------------------------------------------------------
diff --git a/etc/tools/sign-file b/etc/tools/sign-file
new file mode 100755
index 0000000..e4c9196
--- /dev/null
+++ b/etc/tools/sign-file
@@ -0,0 +1,42 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+
+# Check if gpg is installed
+which gpg > /dev/null
+if [[ "$?" -ne "0" ]]; then
+	echo "ERROR:	gpg not installed!
+Please install via your system's package manager or from the gnu site, 
+https://www.gnupg.org/download/. Once installed, follow the Apache guidelines 
+for making your key, http://www.apache.org/dev/openpgp.html."
+	exit 1
+fi
+
+FWDIR="$(cd `dirname $0`/../../; pwd)"
+
+file_to_sign="${FWDIR}/$1"
+if [[ -f "${file_to_sign}"  ]]; then
+		echo "Generating signature and sums for ${file_to_sign}"
+		gpg --armor --output "${file_to_sign}.asc" --detach-sig "${file_to_sign}"
+		gpg --print-md MD5 "${file_to_sign}" >  "${file_to_sign}.md5"
+		gpg --print-md SHA512 "${file_to_sign}" >  "${file_to_sign}.sha"
+		exit 0
+else
+	echo "ERROR: File ${file_to_sign} does not exist"
+	exit 1
+fi

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/3b2cad1f/etc/tools/verify-release
----------------------------------------------------------------------
diff --git a/etc/tools/verify-release b/etc/tools/verify-release
new file mode 100755
index 0000000..09cc2cb
--- /dev/null
+++ b/etc/tools/verify-release
@@ -0,0 +1,111 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+
+which gpg > /dev/null
+if [[ "$?" -ne "0" ]]; then
+	echo "ERROR:	gpg not installed!
+Please install via your system's package manager or from the gnu site,
+https://www.gnupg.org/download/. Once installed, follow the Apache guidelines
+for making your key, http://www.apache.org/dev/openpgp.html."
+	exit 1
+fi
+
+FWDIR="$(cd `dirname $0`/../..; pwd)"
+if [ ! -d "${FWDIR}"  ]; then
+    echo "ERROR: ${FWDIR} does not exist, cannot sign files"
+    exit 1
+fi
+results="Signature And Checksum Audit:"
+for directory in "$@"
+do
+	
+	# For all the files in the directory which are not signatures or checksums
+	for file_to_verify in `find ${FWDIR}/${directory} -type f -not -name *.asc -not -name *.md5 -not -name *.sha -maxdepth 1`; do
+		results="${results}\n${file_to_verify}"
+		 
+		# Verify the signature exists
+		if [[ -f "${file_to_verify}.asc"  ]]; then
+			gpg --verify "${file_to_verify}.asc" &> /dev/null
+			sig_result=$?
+			# Verify the signature is valid
+			if [[ "${sig_result}" -ne "0" ]]; then
+				echo "ERROR: Signature ${file_to_verify} was not valid!"
+				results="${results}\n\tx `basename ${file_to_verify}.asc`"
+				failure=true
+			else
+				results="${results}\n\t✓ `basename ${file_to_verify}.asc`"
+			fi
+		else
+			echo "ERROR: Signature not found for ${file_to_verify}"
+			results="${results}\n\tx `basename ${file_to_verify}.asc`"
+			failure=true
+		fi
+		
+		# Verify the SHA512 checksum is present
+		if [[ -f "${file_to_verify}.sha"  ]]; then
+			hash_result=`gpg --print-md SHA512 "${file_to_verify}"`
+			hash_to_verify=`cat "${file_to_verify}.sha"`
+
+			# Verify the SHA512 checksum is correct
+			if [[ "${hash_result}" != "${hash_to_verify}" ]]; then
+				echo "ERROR: SHA checksum of ${file_to_verify} does not match!"
+				results="${results}\n\tx `basename ${file_to_verify}.sha`"
+				failure=true
+			else
+				results="${results}\n\t✓ `basename ${file_to_verify}.sha`"
+			fi
+		else
+			echo "ERROR: SHA checksum for ${file_to_verify} does not exist!"
+			results="${results}\n\tx `basename ${file_to_verify}.sha`"
+			failure=true
+		fi
+	
+		# Verify the MD5 checksum is present
+		if [[ -f "${file_to_verify}.md5"  ]]; then
+			hash_result=`gpg --print-md MD5 "${file_to_verify}"`
+			hash_to_verify=`cat "${file_to_verify}.md5"`
+			
+			# Verify the MD5 checksum is correct
+			if [[ "${hash_result}" != "${hash_to_verify}" ]]; then
+				echo "ERROR: MD5 checksum of ${file_to_verify} does not match!"
+				results="${results}\n\tx `basename ${file_to_verify}.md5`"
+				failure=true
+			else
+				results="${results}\n\t✓ `basename ${file_to_verify}.md5`"
+			fi
+		else
+			echo "ERROR: MD5 checksum for ${file_to_verify} does not exist!"
+			results="${results}\n\tx `basename ${file_to_verify}.md5`"
+			failure=true
+		fi
+		
+	done
+done
+
+
+printf "${results}\n"
+
+if [ "${failure}" = true ]; then
+	exit 1
+else
+	exit 0
+fi
+
+
+


[27/32] incubator-toree git commit: Added common test timeouts for akka tests.

Posted by ch...@apache.org.
Added common test timeouts for akka tests.


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/9157a5a5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/9157a5a5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/9157a5a5

Branch: refs/heads/master
Commit: 9157a5a57650a1eaf2e5acf33fada90f54044564
Parents: a7f5003
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Mon Apr 11 13:29:25 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:47:41 2016 -0500

----------------------------------------------------------------------
 .travis.yml                                     |  1 +
 .../InterpreterActorSpecForIntegration.scala    | 12 +++------
 .../toree/comm/KernelCommWriterSpec.scala       |  5 ++--
 .../toree/kernel/api/DisplayMethodsSpec.scala   | 17 ++++++------
 .../toree/kernel/api/StreamMethodsSpec.scala    |  9 +++----
 .../v5/dispatch/StatusDispatchSpec.scala        |  7 +++--
 .../v5/handler/CodeCompleteHandlerSpec.scala    |  6 ++---
 .../v5/handler/CommCloseHandlerSpec.scala       | 13 ++++-----
 .../v5/handler/CommMsgHandlerSpec.scala         | 15 +++++------
 .../v5/handler/CommOpenHandlerSpec.scala        | 11 ++++----
 .../v5/handler/ExecuteRequestHandlerSpec.scala  | 24 ++++++++---------
 .../GenericSocketMessageHandlerSpec.scala       |  5 ++--
 .../handler/InputRequestReplyHandlerSpec.scala  | 10 +++----
 .../handler/KernelInfoRequestHandlerSpec.scala  |  8 +++---
 .../tasks/ExecuteRequestTaskActorSpec.scala     | 16 +++++------
 .../protocol/v5/kernel/ActorLoaderSpec.scala    | 11 ++++----
 .../v5/kernel/SimpleActorLoaderSpec.scala       |  3 ++-
 .../v5/kernel/socket/HeartbeatSpec.scala        |  3 ++-
 .../protocol/v5/kernel/socket/IOPubSpec.scala   |  3 ++-
 .../protocol/v5/kernel/socket/ShellSpec.scala   |  3 ++-
 .../protocol/v5/kernel/socket/StdinSpec.scala   |  3 ++-
 .../v5/relay/ExecuteRequestRelaySpec.scala      | 26 +++++++++++-------
 .../v5/relay/KernelMessageRelaySpec.scala       | 28 +++++++++-----------
 .../v5/stream/KernelInputStreamSpec.scala       | 13 +++++----
 .../v5/stream/KernelOuputStreamSpec.scala       | 20 +++++---------
 kernel/src/test/scala/test/utils/package.scala  | 11 ++++++++
 26 files changed, 138 insertions(+), 145 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index acc5e48..3ee8f44 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,6 +22,7 @@ env:
     global:
         - COURSIER_NO_TERM=1
         - TOREE_RESOLUTION_VERBOSITY=0
+        - TEST_DILATION=3
 jdk:
     - oraclejdk7
     - openjdk7

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/integration/InterpreterActorSpecForIntegration.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/integration/InterpreterActorSpecForIntegration.scala b/kernel/src/test/scala/integration/InterpreterActorSpecForIntegration.scala
index b08ad54..9db5438 100644
--- a/kernel/src/test/scala/integration/InterpreterActorSpecForIntegration.scala
+++ b/kernel/src/test/scala/integration/InterpreterActorSpecForIntegration.scala
@@ -28,16 +28,13 @@ import org.apache.toree.kernel.protocol.v5._
 import org.apache.toree.kernel.protocol.v5.content._
 import org.apache.toree.kernel.protocol.v5.interpreter.InterpreterActor
 import org.apache.toree.kernel.protocol.v5.interpreter.tasks.InterpreterTaskFactory
-import org.apache.toree.utils.{TaskManager, MultiOutputStream}
+import org.apache.toree.utils.MultiOutputStream
 import com.typesafe.config.ConfigFactory
 import org.apache.spark.{SparkConf, SparkContext}
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{BeforeAndAfter, FunSpecLike, Matchers}
-import org.slf4j.Logger
 import test.utils.UncaughtExceptionSuppression
-
-import scala.concurrent.duration._
-import test.utils.SparkContextProvider
+import test.utils.MaxAkkaTestTimeout
 
 object InterpreterActorSpecForIntegration {
   val config = """
@@ -65,7 +62,6 @@ class InterpreterActorSpecForIntegration extends TestKit(
     .setMaster("local[*]")
     .setAppName("Test Kernel")
 
-  private var context: SparkContext = _
 
   before {
     output.reset()
@@ -106,7 +102,7 @@ class InterpreterActorSpecForIntegration extends TestKit(
           ((executeRequest, mock[KernelMessage], mock[OutputStream]))
 
         val result =
-          receiveOne(5.seconds)
+          receiveOne(MaxAkkaTestTimeout)
             .asInstanceOf[Either[ExecuteOutput, ExecuteError]]
 
         result.isLeft should be (true)
@@ -129,7 +125,7 @@ class InterpreterActorSpecForIntegration extends TestKit(
           ((executeRequest, mock[KernelMessage], mock[OutputStream]))
 
         val result =
-          receiveOne(5.seconds)
+          receiveOne(MaxAkkaTestTimeout)
             .asInstanceOf[Either[ExecuteOutput, ExecuteError]]
 
         result.isRight should be (true)

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/comm/KernelCommWriterSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/comm/KernelCommWriterSpec.scala b/kernel/src/test/scala/org/apache/toree/comm/KernelCommWriterSpec.scala
index d129574..28d87df 100644
--- a/kernel/src/test/scala/org/apache/toree/comm/KernelCommWriterSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/comm/KernelCommWriterSpec.scala
@@ -23,8 +23,7 @@ import org.apache.toree.kernel.protocol.v5._
 import org.apache.toree.kernel.protocol.v5.content._
 import org.apache.toree.kernel.protocol.v5.kernel.ActorLoader
 import play.api.libs.json.Json
-import scala.concurrent.duration._
-
+import test.utils.MaxAkkaTestTimeout
 import akka.actor.{ActorSelection, ActorSystem}
 import akka.testkit.{TestProbe, TestKit}
 import com.typesafe.config.ConfigFactory
@@ -59,7 +58,7 @@ class KernelCommWriterSpec extends TestKit(
    * @return The KernelMessage instance (or an error if timed out)
    */
   private def getNextMessage =
-    kernelMessageRelayProbe.receiveOne(200.milliseconds)
+    kernelMessageRelayProbe.receiveOne(MaxAkkaTestTimeout)
       .asInstanceOf[KernelMessage]
 
   /**

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/api/DisplayMethodsSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/api/DisplayMethodsSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/api/DisplayMethodsSpec.scala
index 0130529..01b7064 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/api/DisplayMethodsSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/api/DisplayMethodsSpec.scala
@@ -25,15 +25,14 @@ import org.mockito.Mockito._
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{BeforeAndAfter, FunSpecLike, Matchers}
 import play.api.libs.json.Json
-
-import scala.concurrent.duration._
+import test.utils.MaxAkkaTestTimeout
 
 class DisplayMethodsSpec extends TestKit(
   ActorSystem("DisplayMethodsSpec")
 ) with ImplicitSender with FunSpecLike with Matchers with MockitoSugar
   with BeforeAndAfter
 {
-  private val MaxDuration = 300.milliseconds
+  
 
   private var kernelMessageRelayProbe: TestProbe = _
   private var mockParentHeader: v5.ParentHeader = _
@@ -73,7 +72,7 @@ class DisplayMethodsSpec extends TestKit(
 
         displayMethods.content(expectedMimeType, expectedContent)
 
-        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxDuration)
+        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxAkkaTestTimeout)
         val kernelMessage = outgoingMessage.asInstanceOf[KernelMessage]
 
         val actualDisplayData = Json.parse(kernelMessage.contentString)
@@ -89,7 +88,7 @@ class DisplayMethodsSpec extends TestKit(
 
         displayMethods.html(expectedContent)
 
-        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxDuration)
+        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxAkkaTestTimeout)
         val kernelMessage = outgoingMessage.asInstanceOf[KernelMessage]
 
         val actualDisplayData = Json.parse(kernelMessage.contentString)
@@ -105,7 +104,7 @@ class DisplayMethodsSpec extends TestKit(
 
         displayMethods.javascript(expectedContent)
 
-        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxDuration)
+        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxAkkaTestTimeout)
         val kernelMessage = outgoingMessage.asInstanceOf[KernelMessage]
 
         val actualDisplayData = Json.parse(kernelMessage.contentString)
@@ -120,7 +119,7 @@ class DisplayMethodsSpec extends TestKit(
 
         displayMethods.clear()
 
-        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxDuration)
+        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxAkkaTestTimeout)
         val kernelMessage = outgoingMessage.asInstanceOf[KernelMessage]
 
         val actualClearOutput = Json.parse(kernelMessage.contentString)
@@ -133,7 +132,7 @@ class DisplayMethodsSpec extends TestKit(
 
         displayMethods.clear(false)
 
-        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxDuration)
+        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxAkkaTestTimeout)
         val kernelMessage = outgoingMessage.asInstanceOf[KernelMessage]
 
         val actualClearOutput = Json.parse(kernelMessage.contentString)
@@ -146,7 +145,7 @@ class DisplayMethodsSpec extends TestKit(
 
         displayMethods.clear(true)
 
-        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxDuration)
+        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxAkkaTestTimeout)
         val kernelMessage = outgoingMessage.asInstanceOf[KernelMessage]
 
         val actualClearOutput = Json.parse(kernelMessage.contentString)

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/api/StreamMethodsSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/api/StreamMethodsSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/api/StreamMethodsSpec.scala
index 4c29396..3e6be72 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/api/StreamMethodsSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/api/StreamMethodsSpec.scala
@@ -22,11 +22,9 @@ import akka.testkit.{ImplicitSender, TestKit, TestProbe}
 import org.apache.toree.kernel.protocol.v5
 import org.apache.toree.kernel.protocol.v5.KernelMessage
 import org.scalatest.mock.MockitoSugar
-import org.scalatest.{FunSpecLike, BeforeAndAfter, Matchers, FunSpec}
+import org.scalatest.{FunSpecLike, BeforeAndAfter, Matchers}
 import play.api.libs.json.Json
-
-import scala.concurrent.duration._
-
+import test.utils.MaxAkkaTestTimeout
 import org.mockito.Mockito._
 
 class StreamMethodsSpec extends TestKit(
@@ -34,7 +32,6 @@ class StreamMethodsSpec extends TestKit(
 ) with ImplicitSender with FunSpecLike with Matchers with MockitoSugar
   with BeforeAndAfter
 {
-  private val MaxDuration = 300.milliseconds
 
   private var kernelMessageRelayProbe: TestProbe = _
   private var mockParentHeader: v5.ParentHeader = _
@@ -73,7 +70,7 @@ class StreamMethodsSpec extends TestKit(
 
         streamMethods.sendAll(expected)
 
-        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxDuration)
+        val outgoingMessage = kernelMessageRelayProbe.receiveOne(MaxAkkaTestTimeout)
         val kernelMessage = outgoingMessage.asInstanceOf[KernelMessage]
 
         val actual = Json.parse(kernelMessage.contentString)

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/dispatch/StatusDispatchSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/dispatch/StatusDispatchSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/dispatch/StatusDispatchSpec.scala
index 93c5b41..7e3f7be 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/dispatch/StatusDispatchSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/dispatch/StatusDispatchSpec.scala
@@ -26,8 +26,7 @@ import org.mockito.Mockito._
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{BeforeAndAfter, FunSpecLike, Matchers}
 import play.api.libs.json.Json
-
-import scala.concurrent.duration._
+import test.utils.MaxAkkaTestTimeout
 
 class StatusDispatchSpec extends TestKit(ActorSystem("StatusDispatchSystem"))
 with FunSpecLike with Matchers with MockitoSugar with BeforeAndAfter{
@@ -50,7 +49,7 @@ with FunSpecLike with Matchers with MockitoSugar with BeforeAndAfter{
       it("should send a status message to the relay") {
         statusDispatchRef ! KernelStatusType.Busy
         //  Check the kernel message is the correct type
-        val statusMessage: KernelMessage = relayProbe.receiveOne(500.milliseconds).asInstanceOf[KernelMessage]
+        val statusMessage: KernelMessage = relayProbe.receiveOne(MaxAkkaTestTimeout).asInstanceOf[KernelMessage]
         statusMessage.header.msg_type should be (MessageType.Outgoing.Status.toString)
         //  Check the status is what we sent
         val status: KernelStatus = Json.parse(statusMessage.contentString).as[KernelStatus]
@@ -63,7 +62,7 @@ with FunSpecLike with Matchers with MockitoSugar with BeforeAndAfter{
         val tuple = Tuple2(KernelStatusType.Busy, mock[Header])
         statusDispatchRef ! tuple
         //  Check the kernel message is the correct type
-        val statusMessage: KernelMessage = relayProbe.receiveOne(500.milliseconds).asInstanceOf[KernelMessage]
+        val statusMessage: KernelMessage = relayProbe.receiveOne(MaxAkkaTestTimeout).asInstanceOf[KernelMessage]
         statusMessage.header.msg_type should be (MessageType.Outgoing.Status.toString)
         //  Check the status is what we sent
         val status: KernelStatus = Json.parse(statusMessage.contentString).as[KernelStatus]

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CodeCompleteHandlerSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CodeCompleteHandlerSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CodeCompleteHandlerSpec.scala
index cd92580..2d229d8 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CodeCompleteHandlerSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CodeCompleteHandlerSpec.scala
@@ -26,7 +26,7 @@ import org.apache.toree.kernel.protocol.v5Test._
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{FunSpecLike, BeforeAndAfter, Matchers}
 import org.mockito.Mockito._
-import scala.concurrent.duration._
+import test.utils.MaxAkkaTestTimeout
 
 class CodeCompleteHandlerSpec extends TestKit(
   ActorSystem("CodeCompleteHandlerSpec")
@@ -73,7 +73,7 @@ class CodeCompleteHandlerSpec extends TestKit(
     it("should send a CompleteRequest") {
       handlerActor ! MockCompleteRequestKernelMessage
       replyToHandlerWithOkAndResult()
-      kernelMessageRelayProbe.fishForMessage(500.milliseconds) {
+      kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
         case KernelMessage(_, _, header, _, _, _) =>
           header.msg_type == MessageType.Outgoing.CompleteReply.toString
       }
@@ -104,7 +104,7 @@ class CodeCompleteHandlerSpec extends TestKit(
     it("should send an idle message") {
       handlerActor ! MockCompleteRequestKernelMessage
       replyToHandlerWithOkAndResult()
-      statusDispatchProbe.fishForMessage(500.milliseconds) {
+      statusDispatchProbe.fishForMessage(MaxAkkaTestTimeout) {
         case Tuple2(status, _) =>
           status == KernelStatusType.Idle
       }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommCloseHandlerSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommCloseHandlerSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommCloseHandlerSpec.scala
index b834aed..1d75513 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommCloseHandlerSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommCloseHandlerSpec.scala
@@ -30,8 +30,7 @@ import org.scalatest.mock.MockitoSugar
 import org.scalatest.{BeforeAndAfter, FunSpecLike, Matchers}
 import org.mockito.Mockito._
 import org.mockito.Matchers._
-
-import scala.concurrent.duration._
+import test.utils.MaxAkkaTestTimeout
 
 class CommCloseHandlerSpec extends TestKit(
   ActorSystem("CommCloseHandlerSpec")
@@ -39,8 +38,6 @@ class CommCloseHandlerSpec extends TestKit(
   with BeforeAndAfter
 {
   private val TestCommId = UUID.randomUUID().toString
-  private val TestTargetName = "some test target"
-
   private var kmBuilder: KMBuilder = _
   private var spyCommStorage: CommStorage = _
   private var mockCommCallbacks: CommCallbacks = _
@@ -88,7 +85,7 @@ class CommCloseHandlerSpec extends TestKit(
           .build
 
         // Should receive a busy and an idle message
-        statusDispatchProbe.receiveN(2, 200.milliseconds)
+        statusDispatchProbe.receiveN(2, MaxAkkaTestTimeout)
 
         // Verify that the msg callbacks were triggered along the way
         verify(mockCommCallbacks).executeCloseCallbacks(
@@ -106,7 +103,7 @@ class CommCloseHandlerSpec extends TestKit(
           .build
 
         // Should receive a busy and an idle message
-        statusDispatchProbe.receiveN(2, 200.milliseconds)
+        statusDispatchProbe.receiveN(2, MaxAkkaTestTimeout)
 
         // Verify that the msg callbacks were NOT triggered along the way
         verify(mockCommCallbacks, never()).executeCloseCallbacks(
@@ -122,7 +119,7 @@ class CommCloseHandlerSpec extends TestKit(
 
         // TODO: Is there a better way to test for this without an upper time
         //       limit? Is there a different logical approach?
-        kernelMessageRelayProbe.expectNoMsg(200.milliseconds)
+        kernelMessageRelayProbe.expectNoMsg(MaxAkkaTestTimeout)
       }
 
       it("should include the parent's header in the parent header of " +
@@ -146,7 +143,7 @@ class CommCloseHandlerSpec extends TestKit(
         commCloseHandler ! msg
 
         // Verify that the message sent by the handler has the desired property
-        kernelMessageRelayProbe.fishForMessage(200.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, _, parentHeader, _, _) =>
             parentHeader == msg.header
         }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommMsgHandlerSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommMsgHandlerSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommMsgHandlerSpec.scala
index 488bf9b..3eb2be0 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommMsgHandlerSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommMsgHandlerSpec.scala
@@ -18,20 +18,18 @@
 package org.apache.toree.kernel.protocol.v5.handler
 
 import java.util.UUID
-
 import akka.actor.{ActorRef, ActorSystem, Props}
 import akka.testkit.{ImplicitSender, TestKit, TestProbe}
 import org.apache.toree.kernel.protocol.v5
 import org.apache.toree.kernel.protocol.v5._
 import org.apache.toree.comm._
-import org.apache.toree.kernel.protocol.v5.content.{CommMsg, ClearOutput, CommOpen}
+import org.apache.toree.kernel.protocol.v5.content.{CommMsg, ClearOutput}
 import org.apache.toree.kernel.protocol.v5.kernel.ActorLoader
 import org.mockito.Matchers._
 import org.mockito.Mockito._
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{BeforeAndAfter, FunSpecLike, Matchers}
-
-import scala.concurrent.duration._
+import test.utils.MaxAkkaTestTimeout
 
 class CommMsgHandlerSpec extends TestKit(
   ActorSystem("CommMsgHandlerSpec")
@@ -39,7 +37,6 @@ class CommMsgHandlerSpec extends TestKit(
   with BeforeAndAfter
 {
   private val TestCommId = UUID.randomUUID().toString
-  private val TestTargetName = "some test target"
 
   private var kmBuilder: KMBuilder = _
   private var spyCommStorage: CommStorage = _
@@ -86,7 +83,7 @@ class CommMsgHandlerSpec extends TestKit(
           .build
 
         // Should receive a busy and an idle message
-        statusDispatchProbe.receiveN(2, 200.milliseconds)
+        statusDispatchProbe.receiveN(2, MaxAkkaTestTimeout)
 
         // Verify that the msg callbacks were triggered along the way
         verify(mockCommCallbacks).executeMsgCallbacks(
@@ -104,7 +101,7 @@ class CommMsgHandlerSpec extends TestKit(
           .build
 
         // Should receive a busy and an idle message
-        statusDispatchProbe.receiveN(2, 200.milliseconds)
+        statusDispatchProbe.receiveN(2, MaxAkkaTestTimeout)
 
         // Verify that the msg callbacks were NOT triggered along the way
         verify(mockCommCallbacks, never()).executeMsgCallbacks(
@@ -120,7 +117,7 @@ class CommMsgHandlerSpec extends TestKit(
 
         // TODO: Is there a better way to test for this without an upper time
         //       limit? Is there a different logical approach?
-        kernelMessageRelayProbe.expectNoMsg(200.milliseconds)
+        kernelMessageRelayProbe.expectNoMsg(MaxAkkaTestTimeout)
       }
 
       it("should include the parent's header in the parent header of " +
@@ -144,7 +141,7 @@ class CommMsgHandlerSpec extends TestKit(
         commMsgHandler ! msg
 
         // Verify that the message sent by the handler has the desired property
-        kernelMessageRelayProbe.fishForMessage(200.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, _, parentHeader, _, _) =>
             parentHeader == msg.header
         }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommOpenHandlerSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommOpenHandlerSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommOpenHandlerSpec.scala
index 2625725..6d50c76 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommOpenHandlerSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/CommOpenHandlerSpec.scala
@@ -31,8 +31,7 @@ import org.mockito.Mockito._
 import org.mockito.Matchers._
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{BeforeAndAfter, FunSpecLike, Matchers}
-
-import scala.concurrent.duration._
+import test.utils.MaxAkkaTestTimeout
 
 class CommOpenHandlerSpec extends TestKit(
   ActorSystem("CommOpenHandlerSpec")
@@ -89,7 +88,7 @@ class CommOpenHandlerSpec extends TestKit(
           .build
 
         // Should receive a busy and an idle message
-        statusDispatchProbe.receiveN(2, 200.milliseconds)
+        statusDispatchProbe.receiveN(2, MaxAkkaTestTimeout)
 
         // Verify that the open callbacks were triggered along the way
         verify(mockCommCallbacks).executeOpenCallbacks(
@@ -107,7 +106,7 @@ class CommOpenHandlerSpec extends TestKit(
           .build
 
         // Should receive a close message as a result of the target missing
-        kernelMessageRelayProbe.expectMsgPF(200.milliseconds) {
+        kernelMessageRelayProbe.expectMsgPF(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, header, _, _, _) =>
             header.msg_type should be (CommClose.toTypeString)
         }
@@ -122,7 +121,7 @@ class CommOpenHandlerSpec extends TestKit(
 
         // TODO: Is there a better way to test for this without an upper time
         //       limit? Is there a different logical approach?
-        kernelMessageRelayProbe.expectNoMsg(200.milliseconds)
+        kernelMessageRelayProbe.expectNoMsg(MaxAkkaTestTimeout)
       }
 
       it("should include the parent's header in the parent header of " +
@@ -148,7 +147,7 @@ class CommOpenHandlerSpec extends TestKit(
         commOpenHandler ! msg
 
         // Verify that the message sent by the handler has the desired property
-        kernelMessageRelayProbe.fishForMessage(200.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, _, parentHeader, _, _) =>
             parentHeader == msg.header
         }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala
index 8f49b11..1054ba3 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/ExecuteRequestHandlerSpec.scala
@@ -22,7 +22,7 @@ import java.util.concurrent.atomic.AtomicInteger
 
 import akka.actor._
 import akka.testkit.{ImplicitSender, TestKit, TestProbe}
-import org.apache.toree.kernel.api.{FactoryMethods, FactoryMethodsLike, Kernel}
+import org.apache.toree.kernel.api.{FactoryMethods, Kernel}
 import org.apache.toree.kernel.protocol.v5._
 import org.apache.toree.kernel.protocol.v5.content._
 import org.apache.toree.kernel.protocol.v5.kernel.ActorLoader
@@ -36,7 +36,7 @@ import org.mockito.Matchers._
 import scala.concurrent.duration._
 import scala.concurrent.ExecutionContext.Implicits.global
 import scala.concurrent._
-
+import test.utils.MaxAkkaTestTimeout
 class ExecuteRequestHandlerSpec extends TestKit(
   ActorSystem("ExecuteRequestHandlerSpec")
 ) with ImplicitSender with FunSpecLike with Matchers with MockitoSugar
@@ -126,7 +126,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
       it("should send an execute result message if the result is not empty") {
         handlerActor ! MockExecuteRequestKernelMessage
         replyToHandlerWithOkAndResult()
-        kernelMessageRelayProbe.fishForMessage(100.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, header, _, _, _) =>
             header.msg_type == ExecuteResult.toTypeString
         }
@@ -135,7 +135,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
       it("should not send an execute result message if there is no result") {
         handlerActor ! MockExecuteRequestKernelMessage
         replyToHandlerWithOk()
-        kernelMessageRelayProbe.fishForMessage(200.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, header, _, _, _) =>
             header.msg_type != ExecuteResult.toTypeString
         }
@@ -145,7 +145,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
       it("should send an execute reply message") {
         handlerActor ! MockExecuteRequestKernelMessage
         replyToHandlerWithOkAndResult()
-        kernelMessageRelayProbe.fishForMessage(200.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, header, _, _, _) =>
             header.msg_type == ExecuteResult.toTypeString
         }
@@ -160,7 +160,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
         var statusReceived = false
 
         val f1 = future {
-          kernelMessageRelayProbe.fishForMessage(4.seconds) {
+          kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
             case KernelMessage(_, _, header, _, _, _) =>
               if (header.msg_type == ExecuteResult.toTypeString &&
                     !statusReceived)
@@ -173,7 +173,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
         }
 
         val f2 = future {
-          statusDispatchProbe.fishForMessage(4.seconds) {
+          statusDispatchProbe.fishForMessage(MaxAkkaTestTimeout) {
             case (status, header) =>
               if (status == KernelStatusIdle.toString)
                 statusReceived = true
@@ -189,7 +189,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
 
       it("should send an execute input message") {
         handlerActor ! MockExecuteRequestKernelMessage
-        kernelMessageRelayProbe.fishForMessage(200.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, header, _, _, _) =>
             header.msg_type == ExecuteInput.toTypeString
         }
@@ -198,7 +198,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
       it("should send a message with ids equal to the incoming " +
         "KernelMessage's ids") {
         handlerActor ! MockExecuteRequestKernelMessage
-        kernelMessageRelayProbe.fishForMessage(200.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           case KernelMessage(ids, _, _, _, _, _) =>
             ids == MockExecuteRequestKernelMessage.ids
         }
@@ -207,7 +207,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
       it("should send a message with parent header equal to the incoming " +
         "KernelMessage's header") {
         handlerActor ! MockExecuteRequestKernelMessage
-        kernelMessageRelayProbe.fishForMessage(200.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, _, parentHeader, _, _) =>
             parentHeader == MockExecuteRequestKernelMessage.header
         }
@@ -240,7 +240,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
       it("should respond with an execute_reply with status error")    {
         handlerActor ! MockKernelMessageWithBadExecuteRequest
 
-        kernelMessageRelayProbe.fishForMessage(200.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           // Only mark as successful if this specific message was received
           case KernelMessage(_, _, header, _, _, contentString)
             if header.msg_type == ExecuteReply.toTypeString =>
@@ -253,7 +253,7 @@ class ExecuteRequestHandlerSpec extends TestKit(
       it("should send error message to relay") {
         handlerActor ! MockKernelMessageWithBadExecuteRequest
 
-        kernelMessageRelayProbe.fishForMessage(200.milliseconds) {
+        kernelMessageRelayProbe.fishForMessage(MaxAkkaTestTimeout) {
           // Only mark as successful if this specific message was received
           case KernelMessage(_, _, header, _, _, _)
             if header.msg_type == ErrorContent.toTypeString => true

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/GenericSocketMessageHandlerSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/GenericSocketMessageHandlerSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/GenericSocketMessageHandlerSpec.scala
index f62f55a..c373d33 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/GenericSocketMessageHandlerSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/GenericSocketMessageHandlerSpec.scala
@@ -24,7 +24,8 @@ import org.apache.toree.kernel.protocol.v5.kernel.ActorLoader
 import org.apache.toree.kernel.protocol.v5Test._
 import org.mockito.Mockito._
 import org.scalatest.mock.MockitoSugar
-import org.scalatest.{Matchers, FunSpecLike, FunSpec}
+import org.scalatest.{Matchers, FunSpecLike}
+import test.utils.MaxAkkaTestTimeout
 
 class GenericSocketMessageHandlerSpec extends TestKit(ActorSystem("GenericSocketMessageHandlerSystem"))
 with ImplicitSender with FunSpecLike with Matchers with MockitoSugar {
@@ -46,7 +47,7 @@ with ImplicitSender with FunSpecLike with Matchers with MockitoSugar {
       genericHandler ! MockKernelMessage
 
       it("should send the message to the selected actor"){
-        selectionProbe.expectMsg(MockKernelMessage)
+        selectionProbe.expectMsg(MaxAkkaTestTimeout, MockKernelMessage)
       }
     }
   }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/InputRequestReplyHandlerSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/InputRequestReplyHandlerSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/InputRequestReplyHandlerSpec.scala
index 8f6b36a..9580810 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/InputRequestReplyHandlerSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/InputRequestReplyHandlerSpec.scala
@@ -19,7 +19,6 @@ package org.apache.toree.kernel.protocol.v5.handler
 
 import java.util.UUID
 import java.util.concurrent.ConcurrentHashMap
-
 import akka.actor.{Props, ActorRef, ActorSystem}
 import akka.testkit.{TestProbe, ImplicitSender, TestKit}
 import org.apache.toree.kernel.protocol.v5.content.InputReply
@@ -29,8 +28,7 @@ import org.scalatest.concurrent.Eventually
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.time.{Milliseconds, Span}
 import org.scalatest.{BeforeAndAfter, FunSpecLike, Matchers}
-import scala.concurrent.duration._
-
+import test.utils.MaxAkkaTestTimeout
 import org.mockito.Mockito._
 
 import collection.JavaConverters._
@@ -90,7 +88,7 @@ class InputRequestReplyHandlerSpec
 
         fakeSender.send(inputRequestReplyHandler, inputRequestMessage)
 
-        kernelMessageRelayProbe.expectMsg(inputRequestMessage)
+        kernelMessageRelayProbe.expectMsg(MaxAkkaTestTimeout, inputRequestMessage)
       }
 
       it("should send the received message value to the stored sender with " +
@@ -113,7 +111,7 @@ class InputRequestReplyHandlerSpec
         fakeSender.send(inputRequestReplyHandler, inputReplyMessage)
 
         // Sender should receive a response
-        fakeSender.expectMsg(expected)
+        fakeSender.expectMsg(MaxAkkaTestTimeout, expected)
       }
 
       it("should do nothing if the session is not found for input_reply") {
@@ -132,7 +130,7 @@ class InputRequestReplyHandlerSpec
         fakeSender.send(inputRequestReplyHandler, inputReplyMessage)
 
         // Sender should not receive a response
-        fakeSender.expectNoMsg(300.milliseconds)
+        fakeSender.expectNoMsg(MaxAkkaTestTimeout)
       }
     }
   }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/KernelInfoRequestHandlerSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/KernelInfoRequestHandlerSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/KernelInfoRequestHandlerSpec.scala
index 2cebdc9..b4bd912 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/KernelInfoRequestHandlerSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/handler/KernelInfoRequestHandlerSpec.scala
@@ -16,8 +16,7 @@
  */
 
 package org.apache.toree.kernel.protocol.v5.handler
-
-import akka.actor.{ActorRef, ActorSelection, ActorSystem, Props}
+import akka.actor.{ActorSelection, ActorSystem, Props}
 import akka.testkit.{TestProbe, ImplicitSender, TestKit}
 import org.apache.toree.kernel.protocol.v5.content.KernelInfoReply
 import org.apache.toree.kernel.protocol.v5.kernel.ActorLoader
@@ -29,8 +28,7 @@ import org.mockito.Mockito._
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{FunSpecLike, Matchers}
 import play.api.libs.json.Json
-
-import scala.concurrent.duration._
+import test.utils.MaxAkkaTestTimeout
 
 object KernelInfoRequestHandlerSpec {
   val config = """
@@ -62,7 +60,7 @@ class KernelInfoRequestHandlerSpec extends TestKit(
   describe("Kernel Info Request Handler") {
     it("should return a KernelMessage containing kernel info response") {
       actor ! kernelMessage
-      val reply = relayProbe.receiveOne(1.seconds).asInstanceOf[KernelMessage]
+      val reply = relayProbe.receiveOne(MaxAkkaTestTimeout).asInstanceOf[KernelMessage]
       val kernelInfo = Json.parse(reply.contentString).as[KernelInfoReply]
       kernelInfo.implementation should be ("spark")
     }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/interpreter/tasks/ExecuteRequestTaskActorSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/interpreter/tasks/ExecuteRequestTaskActorSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/interpreter/tasks/ExecuteRequestTaskActorSpec.scala
index 4566507..490b1d7 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/interpreter/tasks/ExecuteRequestTaskActorSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/interpreter/tasks/ExecuteRequestTaskActorSpec.scala
@@ -18,7 +18,6 @@
 package org.apache.toree.kernel.protocol.v5.interpreter.tasks
 
 import java.io.OutputStream
-
 import akka.actor.{ActorSystem, Props}
 import akka.testkit.{ImplicitSender, TestKit}
 import org.apache.toree.interpreter._
@@ -26,11 +25,10 @@ import org.apache.toree.kernel.protocol.v5._
 import org.apache.toree.kernel.protocol.v5.content._
 import com.typesafe.config.ConfigFactory
 import org.mockito.Mockito._
-import org.mockito.Matchers.{eq => mockEq, anyString, anyBoolean}
+import org.mockito.Matchers.{anyString, anyBoolean}
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{Matchers, FunSpecLike}
-
-import scala.concurrent.duration._
+import test.utils.MaxAkkaTestTimeout
 
 object ExecuteRequestTaskActorSpec {
   val config = """
@@ -67,7 +65,7 @@ class ExecuteRequestTaskActorSpec extends TestKit(
         executeRequestTask ! executeRequest
 
         val result =
-          receiveOne(5.seconds)
+          receiveOne(MaxAkkaTestTimeout)
             .asInstanceOf[Either[ExecuteOutput, ExecuteError]]
 
         result.isLeft should be (true)
@@ -93,7 +91,7 @@ class ExecuteRequestTaskActorSpec extends TestKit(
         executeRequestTask ! executeRequest
 
         val result =
-          receiveOne(5.seconds)
+          receiveOne(MaxAkkaTestTimeout)
             .asInstanceOf[Either[ExecuteOutput, ExecuteFailure]]
 
         result.isRight should be (true)
@@ -119,7 +117,7 @@ class ExecuteRequestTaskActorSpec extends TestKit(
         executeRequestTask ! executeRequest
 
         val result =
-          receiveOne(5.seconds)
+          receiveOne(MaxAkkaTestTimeout)
             .asInstanceOf[Either[ExecuteOutput, ExecuteError]]
 
         result.isRight should be (true)
@@ -145,7 +143,7 @@ class ExecuteRequestTaskActorSpec extends TestKit(
         executeRequestTask ! executeRequest
 
         val result =
-          receiveOne(5.seconds)
+          receiveOne(MaxAkkaTestTimeout)
             .asInstanceOf[Either[ExecuteOutput, ExecuteError]]
 
         result.isLeft should be (false)
@@ -171,7 +169,7 @@ class ExecuteRequestTaskActorSpec extends TestKit(
         executeRequestTask ! executeRequest
 
         val result =
-          receiveOne(5.seconds)
+          receiveOne(MaxAkkaTestTimeout)
             .asInstanceOf[Either[ExecuteOutput, ExecuteError]]
 
         result.isLeft should be (true)

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/ActorLoaderSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/ActorLoaderSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/ActorLoaderSpec.scala
index 2252760..26bb636 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/ActorLoaderSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/ActorLoaderSpec.scala
@@ -23,8 +23,7 @@ import org.apache.toree.kernel.protocol.v5.{MessageType, SocketType}
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{FunSpecLike, Matchers}
 import test.utils.TestProbeProxyActor
-
-import scala.concurrent.duration._
+import test.utils.MaxAkkaTestTimeout
 
 class ActorLoaderSpec extends TestKit(ActorSystem("ActorLoaderSpecSystem"))
 with ImplicitSender with FunSpecLike with Matchers with MockitoSugar {
@@ -43,11 +42,11 @@ with ImplicitSender with FunSpecLike with Matchers with MockitoSugar {
         val testProbe: TestProbe = TestProbe()
         val actorLoader: ActorLoader = SimpleActorLoader(system)
         actorLoader.load(MessageType.Outgoing.CompleteReply) ! "<Test Message>"
-        testProbe.expectNoMsg(25.millis)
+        testProbe.expectNoMsg(MaxAkkaTestTimeout)
         // This is to test to see if there the messages go to the actor inbox or the dead mail inbox
         system.actorOf(Props(classOf[TestProbeProxyActor], testProbe),
           MessageType.Outgoing.CompleteReply.toString)
-        testProbe.expectNoMsg(25.millis)
+        testProbe.expectNoMsg(MaxAkkaTestTimeout)
       }
     }
     describe("#load( SocketType )"){
@@ -63,10 +62,10 @@ with ImplicitSender with FunSpecLike with Matchers with MockitoSugar {
         val testProbe: TestProbe = TestProbe()
         val actorLoader: ActorLoader = SimpleActorLoader(system)
         actorLoader.load(SocketType.IOPub) ! "<Test Message>"
-        testProbe.expectNoMsg(25.millis)
+        testProbe.expectNoMsg(MaxAkkaTestTimeout)
         // This is to test to see if there the messages go to the actor inbox or the dead mail inbox
         system.actorOf(Props(classOf[TestProbeProxyActor], testProbe), SocketType.IOPub.toString)
-        testProbe.expectNoMsg(25.millis)
+        testProbe.expectNoMsg(MaxAkkaTestTimeout)
       }
 
     }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/SimpleActorLoaderSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/SimpleActorLoaderSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/SimpleActorLoaderSpec.scala
index 7d3a9e4..c9407cf 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/SimpleActorLoaderSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/SimpleActorLoaderSpec.scala
@@ -22,6 +22,7 @@ import akka.testkit.{TestKit, TestProbe}
 import org.apache.toree.kernel.protocol.v5.MessageType
 import org.scalatest.{FunSpecLike, Matchers}
 import test.utils.TestProbeProxyActor
+import test.utils.MaxAkkaTestTimeout
 
 class SimpleActorLoaderSpec extends TestKit(ActorSystem("SimpleActorLoaderSpecSystem"))
   with FunSpecLike with Matchers
@@ -51,7 +52,7 @@ class SimpleActorLoaderSpec extends TestKit(ActorSystem("SimpleActorLoaderSpecSy
         loadedMessageActor ! testMessage
 
         //  Assert the probe received the message
-        messageTypeProbe.expectMsg(testMessage)
+        messageTypeProbe.expectMsg(MaxAkkaTestTimeout, testMessage)
       }
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/HeartbeatSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/HeartbeatSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/HeartbeatSpec.scala
index 5973625..4b422cd 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/HeartbeatSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/HeartbeatSpec.scala
@@ -26,6 +26,7 @@ import org.mockito.Matchers._
 import org.mockito.Mockito._
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{FunSpecLike, Matchers}
+import test.utils.MaxAkkaTestTimeout
 
 object HeartbeatSpec {
   val config = """
@@ -49,7 +50,7 @@ with ImplicitSender with FunSpecLike with Matchers with MockitoSugar {
     describe("send heartbeat") {
       it("should receive and send same ZMQMessage") {
         heartbeat ! SomeZMQMessage
-        probe.expectMsg(SomeZMQMessage)
+        probe.expectMsg(MaxAkkaTestTimeout, SomeZMQMessage)
       }
     }
   }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/IOPubSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/IOPubSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/IOPubSpec.scala
index a52d4b2..aef0da8 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/IOPubSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/IOPubSpec.scala
@@ -28,6 +28,7 @@ import org.mockito.Matchers._
 import org.mockito.Mockito._
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{FunSpecLike, Matchers}
+import test.utils.MaxAkkaTestTimeout
 
 object IOPubSpec {
   val config ="""
@@ -53,7 +54,7 @@ with ImplicitSender with FunSpecLike with Matchers with MockitoSugar {
         val MockZMQMessage : ZMQMessage = MockKernelMessage
 
         socket ! MockKernelMessage
-        probe.expectMsg(MockZMQMessage)
+        probe.expectMsg(MaxAkkaTestTimeout, MockZMQMessage)
       }
     }
   }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/ShellSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/ShellSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/ShellSpec.scala
index 3574ba6..95e2ca0 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/ShellSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/ShellSpec.scala
@@ -32,6 +32,7 @@ import org.mockito.Matchers._
 import org.mockito.Mockito._
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{FunSpecLike, Matchers}
+import test.utils.MaxAkkaTestTimeout
 
 object ShellSpec {
   val config ="""
@@ -77,7 +78,7 @@ class ShellSpec extends TestKit(ActorSystem("ShellActorSpec", ConfigFactory.pars
 
         val kernelMessage: KernelMessage = MockZMQMessage
 
-        relayProbe.expectMsg((zmqStrings, kernelMessage))
+        relayProbe.expectMsg(MaxAkkaTestTimeout, (zmqStrings, kernelMessage))
       }
     }
   }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/StdinSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/StdinSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/StdinSpec.scala
index d55c7bd..0f7593c 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/StdinSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/StdinSpec.scala
@@ -32,6 +32,7 @@ import org.scalatest.mock.MockitoSugar
 import org.scalatest.{Matchers, FunSpecLike}
 import org.mockito.Mockito._
 import org.mockito.Matchers._
+import test.utils.MaxAkkaTestTimeout
 
 object StdinSpec {
   val config ="""
@@ -77,7 +78,7 @@ class StdinSpec extends TestKit(ActorSystem(
 
         val kernelMessage: KernelMessage = MockZMQMessage
 
-        relayProbe.expectMsg((zmqStrings, kernelMessage))
+        relayProbe.expectMsg(MaxAkkaTestTimeout, (zmqStrings, kernelMessage))
       }
     }
   }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/relay/ExecuteRequestRelaySpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/relay/ExecuteRequestRelaySpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/relay/ExecuteRequestRelaySpec.scala
index 0661191..8eff553 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/relay/ExecuteRequestRelaySpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/relay/ExecuteRequestRelaySpec.scala
@@ -18,7 +18,6 @@
 package org.apache.toree.kernel.protocol.v5.relay
 
 import java.io.OutputStream
-
 import akka.actor._
 import akka.testkit.{ImplicitSender, TestKit, TestProbe}
 import org.apache.toree.interpreter.{ExecuteAborted, ExecuteError}
@@ -32,6 +31,7 @@ import org.apache.toree.plugins.dependencies.DependencyManager
 import org.mockito.Mockito._
 import org.scalatest.mock.MockitoSugar
 import org.scalatest.{BeforeAndAfter, FunSpecLike, Matchers}
+import test.utils.MaxAkkaTestTimeout
 
 object ExecuteRequestRelaySpec {
   val config = """
@@ -95,6 +95,7 @@ class ExecuteRequestRelaySpec extends TestKit(
         interpreterActorProbe.reply(Right(expected))
 
         expectMsg(
+          MaxAkkaTestTimeout,
           (ExecuteReplyAbort(1), ExecuteResult(1, Data(), Metadata()))
         )
       }
@@ -131,11 +132,14 @@ class ExecuteRequestRelaySpec extends TestKit(
         // Reply with an error
         interpreterActorProbe.reply(Right(expected))
 
-        expectMsg((
-          ExecuteReplyError(1, Some(expected.name), Some(expected.value),
+        expectMsg(
+          MaxAkkaTestTimeout,
+          (
+            ExecuteReplyError(1, Some(expected.name), Some(expected.value),
             Some(expected.stackTrace.map(_.toString).toList)),
-          ExecuteResult(1, Data("text/plain" -> expected.toString), Metadata())
-        ))
+            ExecuteResult(1, Data("text/plain" -> expected.toString), Metadata())
+          )
+        )
       }
 
       it("should return an (ExecuteReply, ExecuteResult) on interpreter " +
@@ -167,16 +171,20 @@ class ExecuteRequestRelaySpec extends TestKit(
         // Expected does not actually match real return of interpreter, which
         // is a tuple of ExecuteReply and ExecuteResult
         interpreterActorProbe.expectMsgClass(
+          MaxAkkaTestTimeout,
           classOf[(ExecuteRequest, KernelMessage, OutputStream)]
         )
 
         // Reply with a successful interpret
         interpreterActorProbe.reply(Left(expected))
 
-        expectMsg((
-          ExecuteReplyOk(1, Some(Payloads()), Some(UserExpressions())),
-          ExecuteResult(1, Data(MIMEType.PlainText -> expected), Metadata())
-        ))
+        expectMsg(
+          MaxAkkaTestTimeout,
+          (
+            ExecuteReplyOk(1, Some(Payloads()), Some(UserExpressions())),
+            ExecuteResult(1, Data(MIMEType.PlainText -> expected), Metadata())
+          )
+        )
       }
     }
   }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/relay/KernelMessageRelaySpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/relay/KernelMessageRelaySpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/relay/KernelMessageRelaySpec.scala
index d36491a..6601efc 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/relay/KernelMessageRelaySpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/relay/KernelMessageRelaySpec.scala
@@ -31,12 +31,12 @@ import org.scalatest.time.{Millis, Seconds, Span}
 import org.scalatest.{BeforeAndAfter, FunSpecLike, Matchers}
 import org.mockito.Matchers.{eq => mockEq}
 import org.mockito.AdditionalMatchers.{not => mockNot}
-import scala.concurrent.duration._
 import org.apache.toree.kernel.protocol.v5.KernelMessage
 import scala.concurrent._
 import akka.pattern.pipe
 import scala.util.Random
 import ExecutionContext.Implicits.global
+import test.utils._
 
 class KernelMessageRelaySpec extends TestKit(ActorSystem("RelayActorSystem"))
   with ImplicitSender with FunSpecLike with Matchers with MockitoSugar
@@ -61,8 +61,6 @@ class KernelMessageRelaySpec extends TestKit(ActorSystem("RelayActorSystem"))
   private var signatureSelection: ActorSelection = _
   private var captureProbe: TestProbe = _
   private var captureSelection: ActorSelection = _
-  private var handlerProbe: TestProbe = _
-  private var handlerSelection: ActorSelection = _
   private var relayWithoutSignatureManager: ActorRef = _
   private var relayWithSignatureManager: ActorRef = _
 
@@ -100,24 +98,24 @@ class KernelMessageRelaySpec extends TestKit(ActorSystem("RelayActorSystem"))
         it("should not send anything to SignatureManager for incoming") {
           relayWithoutSignatureManager ! true // Mark as ready for incoming
           relayWithoutSignatureManager ! incomingKernelMessage
-          signatureProbe.expectNoMsg(25.millis)
+          signatureProbe.expectNoMsg(MaxAkkaTestTimeout)
         }
 
         it("should not send anything to SignatureManager for outgoing") {
           relayWithoutSignatureManager ! outgoingKernelMessage
-          signatureProbe.expectNoMsg(25.millis)
+          signatureProbe.expectNoMsg(MaxAkkaTestTimeout)
         }
 
         it("should relay KernelMessage for incoming") {
           relayWithoutSignatureManager ! true // Mark as ready for incoming
           relayWithoutSignatureManager !
             ((incomingZmqStrings, incomingKernelMessage))
-          captureProbe.expectMsg(incomingKernelMessage)
+          captureProbe.expectMsg(MaxAkkaTestTimeout, incomingKernelMessage)
         }
 
         it("should relay KernelMessage for outgoing") {
           relayWithoutSignatureManager ! outgoingKernelMessage
-          captureProbe.expectMsg(outgoingKernelMessage)
+          captureProbe.expectMsg(MaxAkkaTestTimeout, outgoingKernelMessage)
         }
       }
 
@@ -125,12 +123,12 @@ class KernelMessageRelaySpec extends TestKit(ActorSystem("RelayActorSystem"))
         it("should verify the signature if the message is incoming") {
           relayWithSignatureManager ! true // Mark as ready for incoming
           relayWithSignatureManager ! incomingKernelMessage
-          signatureProbe.expectMsg(incomingKernelMessage)
+          signatureProbe.expectMsg(MaxAkkaTestTimeout, incomingKernelMessage)
         }
 
         it("should construct the signature if the message is outgoing") {
           relayWithSignatureManager ! outgoingKernelMessage
-          signatureProbe.expectMsg(outgoingKernelMessage)
+          signatureProbe.expectMsg(MaxAkkaTestTimeout, outgoingKernelMessage)
         }
       }
 
@@ -139,12 +137,12 @@ class KernelMessageRelaySpec extends TestKit(ActorSystem("RelayActorSystem"))
           val incomingMessage: ZMQMessage = incomingKernelMessage
 
           relayWithoutSignatureManager ! incomingMessage
-          captureProbe.expectNoMsg(25.millis)
+          captureProbe.expectNoMsg(MaxAkkaTestTimeout)
         }
 
         it("should relay the message if it is outgoing") {
           relayWithoutSignatureManager ! outgoingKernelMessage
-          captureProbe.expectMsg(outgoingKernelMessage)
+          captureProbe.expectMsg(MaxAkkaTestTimeout, outgoingKernelMessage)
         }
       }
 
@@ -153,13 +151,13 @@ class KernelMessageRelaySpec extends TestKit(ActorSystem("RelayActorSystem"))
           relayWithoutSignatureManager ! true // Mark as ready for incoming
           relayWithoutSignatureManager !
             ((incomingZmqStrings, incomingKernelMessage))
-          captureProbe.expectMsg(incomingKernelMessage)
+          captureProbe.expectMsg(MaxAkkaTestTimeout, incomingKernelMessage)
         }
 
         it("should relay the message if it is outgoing") {
           relayWithoutSignatureManager ! true // Mark as ready for incoming
           relayWithoutSignatureManager ! outgoingKernelMessage
-          captureProbe.expectMsg(outgoingKernelMessage)
+          captureProbe.expectMsg(MaxAkkaTestTimeout, outgoingKernelMessage)
         }
       }
 
@@ -204,8 +202,8 @@ class KernelMessageRelaySpec extends TestKit(ActorSystem("RelayActorSystem"))
           sendKernelMessages(n, kernelMessageRelay)
           // Message values should be accumulated in the proper order
           whenReady(chaoticPromise.future,
-            PatienceConfiguration.Timeout(Span(3, Seconds)),
-            PatienceConfiguration.Interval(Span(100, Millis))) {
+            PatienceConfiguration.Timeout(MaxAkkaTestTimeout),
+            PatienceConfiguration.Interval(MaxAkkaTestInterval)) {
             case _: String =>
               actual should be(expected)
           }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/stream/KernelInputStreamSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/stream/KernelInputStreamSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/stream/KernelInputStreamSpec.scala
index 9550353..9b8fd4e 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/stream/KernelInputStreamSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/stream/KernelInputStreamSpec.scala
@@ -26,8 +26,7 @@ import org.mockito.Mockito._
 import org.scalatest._
 import org.scalatest.mock.MockitoSugar
 import play.api.libs.json.Json
-
-import scala.concurrent.duration._
+import test.utils._
 
 class KernelInputStreamSpec
   extends TestKit(ActorSystem("KernelInputStreamActorSystem"))
@@ -86,7 +85,7 @@ class KernelInputStreamSpec
         kernelInputStream.read()
 
         // Verify that a message was sent out requesting data
-        kernelInputOutputHandlerProbe.expectMsgPF() {
+        kernelInputOutputHandlerProbe.expectMsgPF(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, header, _, _, _)
             if header.msg_type == MessageType.Outgoing.InputRequest.toString =>
               true
@@ -101,7 +100,7 @@ class KernelInputStreamSpec
 
         // Verify that a message was sent out requesting data with the
         // specific prompt
-        kernelInputOutputHandlerProbe.expectMsgPF() {
+        kernelInputOutputHandlerProbe.expectMsgPF(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, header, _, _, contentString)
             if header.msg_type == MessageType.Outgoing.InputRequest.toString =>
             Json.parse(contentString).as[InputRequest].prompt should be (expected)
@@ -116,7 +115,7 @@ class KernelInputStreamSpec
 
         // Verify that a message was sent out requesting data with the
         // specific prompt
-        kernelInputOutputHandlerProbe.expectMsgPF() {
+        kernelInputOutputHandlerProbe.expectMsgPF(MaxAkkaTestTimeout) {
           case KernelMessage(_, _, header, _, _, contentString)
             if header.msg_type == MessageType.Outgoing.InputRequest.toString =>
             Json.parse(contentString).as[InputRequest].password should be (expected)
@@ -135,8 +134,8 @@ class KernelInputStreamSpec
         for (i <- 1 to readLength)
           kernelInputStream.read() should be (TestReplyString.charAt(i - 1))
 
-        kernelInputOutputHandlerProbe.expectMsgClass(classOf[KernelMessage])
-        kernelInputOutputHandlerProbe.expectNoMsg(300.milliseconds)
+        kernelInputOutputHandlerProbe.expectMsgClass(MaxAkkaTestTimeout, classOf[KernelMessage])
+        kernelInputOutputHandlerProbe.expectNoMsg(MaxAkkaTestTimeout)
       }
     }
   }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/stream/KernelOuputStreamSpec.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/stream/KernelOuputStreamSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/stream/KernelOuputStreamSpec.scala
index d3e04c6..8d0ffc5 100644
--- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/stream/KernelOuputStreamSpec.scala
+++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/stream/KernelOuputStreamSpec.scala
@@ -29,8 +29,7 @@ import org.scalatest.mock.MockitoSugar
 import org.scalatest._
 import play.api.libs.json._
 import org.apache.toree.kernel.protocol.v5.content.StreamContent
-
-import scala.concurrent.duration._
+import test.utils.MaxAkkaTestTimeout
 
 class KernelOuputStreamSpec
   extends TestKit(ActorSystem("KernelOutputStreamActorSystem"))
@@ -46,11 +45,6 @@ class KernelOuputStreamSpec
   // SHARED ELEMENTS BETWEEN TESTS
   //
 
-  private val ExecutionCount = 3
-
-  private val MaxMessageTimeout = 1.second
-  private val MaxNoMessageTimeout = 200.milliseconds
-
   private val GeneratedTaskId = UUID.randomUUID().toString
 
   private val skeletonBuilder = KMBuilder()
@@ -124,7 +118,7 @@ class KernelOuputStreamSpec
         Then("it should be appended to the internal list")
         kernelOutputStream.flush()
         val message = kernelOutputRelayProbe
-          .receiveOne(MaxMessageTimeout).asInstanceOf[KernelMessage]
+          .receiveOne(MaxAkkaTestTimeout).asInstanceOf[KernelMessage]
         val executeResult = Json.parse(message.contentString).as[StreamContent]
         executeResult.text should be (expected.toString)
       }
@@ -205,7 +199,7 @@ class KernelOuputStreamSpec
         kernelOutputStream.flush()
 
         Then("no message should be sent")
-        kernelOutputRelayProbe.expectNoMsg(MaxNoMessageTimeout)
+        kernelOutputRelayProbe.expectNoMsg(MaxAkkaTestTimeout)
       }
 
       it("should send empty (whitespace) messages if flag is true") {
@@ -222,7 +216,7 @@ class KernelOuputStreamSpec
 
         Then("the whitespace message should have been sent")
         val message = kernelOutputRelayProbe
-          .receiveOne(MaxMessageTimeout).asInstanceOf[KernelMessage]
+          .receiveOne(MaxAkkaTestTimeout).asInstanceOf[KernelMessage]
         val actual = Json.parse(message.contentString).as[StreamContent].text
 
         actual should be (expected)
@@ -241,7 +235,7 @@ class KernelOuputStreamSpec
 
         Then("the ids should be set to execute_result")
         val message = kernelOutputRelayProbe
-          .receiveOne(MaxMessageTimeout).asInstanceOf[KernelMessage]
+          .receiveOne(MaxAkkaTestTimeout).asInstanceOf[KernelMessage]
         message.ids should be (Seq(MessageType.Outgoing.Stream.toString))
       }
 
@@ -258,7 +252,7 @@ class KernelOuputStreamSpec
 
         Then("the msg_type in the header should be execute_result")
         val message = kernelOutputRelayProbe
-          .receiveOne(MaxMessageTimeout).asInstanceOf[KernelMessage]
+          .receiveOne(MaxAkkaTestTimeout).asInstanceOf[KernelMessage]
         message.header.msg_type should be (MessageType.Outgoing.Stream.toString)
       }
 
@@ -275,7 +269,7 @@ class KernelOuputStreamSpec
 
         Then("the content string should have text/plain set to the string")
         val message = kernelOutputRelayProbe
-          .receiveOne(MaxMessageTimeout).asInstanceOf[KernelMessage]
+          .receiveOne(MaxAkkaTestTimeout).asInstanceOf[KernelMessage]
         val executeResult = Json.parse(message.contentString).as[StreamContent]
         executeResult.text should be (expected)
       }

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/9157a5a5/kernel/src/test/scala/test/utils/package.scala
----------------------------------------------------------------------
diff --git a/kernel/src/test/scala/test/utils/package.scala b/kernel/src/test/scala/test/utils/package.scala
new file mode 100644
index 0000000..b606d31
--- /dev/null
+++ b/kernel/src/test/scala/test/utils/package.scala
@@ -0,0 +1,11 @@
+package test
+
+import scala.concurrent.duration._
+import scala.util.Properties
+
+package object utils {
+  val TestDilation = Properties.envOrElse("TEST_DILATION", "1").toInt
+  val MaxAkkaTestTimeout = (5 * TestDilation).seconds
+  val MaxAkkaTestInterval = (100 * TestDilation).milliseconds
+
+}


[12/32] incubator-toree git commit: Fix run script due to assembly name change

Posted by ch...@apache.org.
Fix run script due to assembly name change


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/0964d0e4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/0964d0e4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/0964d0e4

Branch: refs/heads/master
Commit: 0964d0e45e634a7049008a4ae30effa733098926
Parents: 6be30f4
Author: Gino Bustelo <lb...@apache.org>
Authored: Tue Apr 5 14:45:40 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:38 2016 -0500

----------------------------------------------------------------------
 etc/bin/run.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/0964d0e4/etc/bin/run.sh
----------------------------------------------------------------------
diff --git a/etc/bin/run.sh b/etc/bin/run.sh
index 84ed43a..3ade993 100755
--- a/etc/bin/run.sh
+++ b/etc/bin/run.sh
@@ -25,7 +25,7 @@ fi
 
 echo "Starting Spark Kernel with SPARK_HOME=$SPARK_HOME"
 
-KERNEL_ASSEMBLY=`(cd ${PROG_HOME}/lib; ls -1 toree-kernel-assembly-*.jar;)`
+KERNEL_ASSEMBLY=`(cd ${PROG_HOME}/lib; ls -1 toree-assembly-*.jar;)`
 
 # disable randomized hash for string in Python 3.3+
 export PYTHONHASHSEED=0


[19/32] incubator-toree git commit: Fixed requirements for LICENSE and NOTICE

Posted by ch...@apache.org.
Fixed requirements for LICENSE and NOTICE


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/580f57b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/580f57b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/580f57b5

Branch: refs/heads/master
Commit: 580f57b50ca26417f23eb26abc71e134a5d59aa0
Parents: 13e68fb
Author: Gino Bustelo <lb...@apache.org>
Authored: Fri Apr 8 12:10:55 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:45:05 2016 -0500

----------------------------------------------------------------------
 Makefile                    |  33 +-
 etc/.src-release-ignore     |   2 +
 etc/legal/COPYING           | 674 +++++++++++++++++++++++++++++++++++++++
 etc/legal/COPYING.LESSER    | 206 ++++++++++++
 etc/legal/LICENSE_extras    |  53 +++
 etc/legal/NOTICE_extras     |  17 +
 etc/pip_install/MANIFEST.in |   2 +-
 project/Build.scala         |   4 +-
 8 files changed, 978 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/580f57b5/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index a1a336f..3284ab9 100644
--- a/Makefile
+++ b/Makefile
@@ -96,7 +96,7 @@ dev-binder: .binder-image
 target/scala-2.10/$(ASSEMBLY_JAR): VM_WORKDIR=/src/toree-kernel
 target/scala-2.10/$(ASSEMBLY_JAR): ${shell find ./*/src/main/**/*}
 target/scala-2.10/$(ASSEMBLY_JAR): ${shell find ./*/build.sbt}
-target/scala-2.10/$(ASSEMBLY_JAR): project/build.properties project/Build.scala project/Common.scala project/plugins.sbt
+target/scala-2.10/$(ASSEMBLY_JAR): dist/toree-legal project/build.properties project/Build.scala project/Common.scala project/plugins.sbt
 	$(call RUN,$(ENV_OPTS) sbt toree/assembly)
 
 build: target/scala-2.10/$(ASSEMBLY_JAR)
@@ -133,19 +133,28 @@ dist/toree/VERSION:
 	@echo "VERSION: $(VERSION)" > dist/toree/VERSION
 	@echo "COMMIT: $(COMMIT)" >> dist/toree/VERSION
 
-dist/toree/LICENSE:
-	@mkdir -p dist/toree
-	@cp LICENSE dist/toree/LICENSE
+dist/toree-legal/LICENSE: LICENSE etc/legal/LICENSE_extras
+	@mkdir -p dist/toree-legal
+	@cat LICENSE > dist/toree-legal/LICENSE
+	@echo '\n' >> dist/toree-legal/LICENSE
+	@cat etc/legal/LICENSE_extras >> dist/toree-legal/LICENSE
+	@cp etc/legal/COPYING dist/toree-legal/COPYING
+	@cp etc/legal/COPYING.LESSER dist/toree-legal/COPYING.LESSER
 
-dist/toree/NOTICE:
-	@mkdir -p dist/toree
-	@cp NOTICE dist/toree/NOTICE
+dist/toree-legal/NOTICE: NOTICE etc/legal/NOTICE_extras
+	@mkdir -p dist/toree-legal
+	@cat NOTICE > dist/toree-legal/NOTICE
+	@echo '\n' >> dist/toree-legal/NOTICE
+	@cat etc/legal/NOTICE_extras >> dist/toree-legal/NOTICE
 
-dist/toree/DISCLAIMER:
-	@mkdir -p dist/toree
-	@cp DISCLAIMER dist/toree/DISCLAIMER
+dist/toree-legal/DISCLAIMER:
+	@mkdir -p dist/toree-legal
+	@cp DISCLAIMER dist/toree-legal/DISCLAIMER
+
+dist/toree-legal: dist/toree-legal/LICENSE dist/toree-legal/NOTICE dist/toree-legal/DISCLAIMER
 
-dist/toree: dist/toree/VERSION dist/toree/NOTICE dist/toree/LICENSE dist/toree/DISCLAIMER dist/toree/lib dist/toree/bin
+dist/toree: dist/toree-legal dist/toree/lib dist/toree/bin
+	@cp dist/toree-legal/* dist/toree
 
 dist: dist/toree
 
@@ -161,6 +170,8 @@ dist/toree-pip/toree-$(VERSION).tar.gz: dist/toree
 	@cp dist/toree/LICENSE dist/toree-pip/LICENSE
 	@cp dist/toree/NOTICE dist/toree-pip/NOTICE
 	@cp dist/toree/DISCLAIMER dist/toree-pip/DISCLAIMER
+	@cp dist/toree/COPYING dist/toree-pip/COPYING
+	@cp dist/toree/COPYING.LESSER dist/toree-pip/COPYING.LESSER
 	@cp -rf etc/pip_install/* dist/toree-pip/.
 	@$(GEN_PIP_PACKAGE_INFO)
 	@$(DOCKER) $(IMAGE) python setup.py sdist --dist-dir=.

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/580f57b5/etc/.src-release-ignore
----------------------------------------------------------------------
diff --git a/etc/.src-release-ignore b/etc/.src-release-ignore
index 59b8bca..d991e20 100644
--- a/etc/.src-release-ignore
+++ b/etc/.src-release-ignore
@@ -8,4 +8,6 @@ examples
 metastore_db
 .ensime/*
 .ensime_cache/*
+LICENSE_extras
+NOTICE_extras
 

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/580f57b5/etc/legal/COPYING
----------------------------------------------------------------------
diff --git a/etc/legal/COPYING b/etc/legal/COPYING
new file mode 100644
index 0000000..b6f3fd5
--- /dev/null
+++ b/etc/legal/COPYING
@@ -0,0 +1,674 @@
+                      GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/580f57b5/etc/legal/COPYING.LESSER
----------------------------------------------------------------------
diff --git a/etc/legal/COPYING.LESSER b/etc/legal/COPYING.LESSER
new file mode 100644
index 0000000..9925774
--- /dev/null
+++ b/etc/legal/COPYING.LESSER
@@ -0,0 +1,206 @@
+		         GNU LESSER GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+  This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+  0. Additional Definitions. 
+
+  As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+  "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+  An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+  A "Combined Work" is a work produced by combining or linking an
+Application with the Library.  The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+  The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+  The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+  1. Exception to Section 3 of the GNU GPL.
+
+  You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+  2. Conveying Modified Versions.
+
+  If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+   a) under this License, provided that you make a good faith effort to
+   ensure that, in the event an Application does not supply the
+   function or data, the facility still operates, and performs
+   whatever part of its purpose remains meaningful, or
+
+   b) under the GNU GPL, with none of the additional permissions of
+   this License applicable to that copy.
+
+  3. Object Code Incorporating Material from Library Header Files.
+
+  The object code form of an Application may incorporate material from
+a header file that is part of the Library.  You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+   a) Give prominent notice with each copy of the object code that the
+   Library is used in it and that the Library and its use are
+   covered by this License.
+
+   b) Accompany the object code with a copy of the GNU GPL and this license
+   document.
+
+  4. Combined Works.
+
+  You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+   a) Give prominent notice with each copy of the Combined Work that
+   the Library is used in it and that the Library and its use are
+   covered by this License.
+
+   b) Accompany the Combined Work with a copy of the GNU GPL and this license
+   document.
+
+   c) For a Combined Work that displays copyright notices during
+   execution, include the copyright notice for the Library among
+   these notices, as well as a reference directing the user to the
+   copies of the GNU GPL and this license document.
+
+   d) Do one of the following:
+
+       0) Convey the Minimal Corresponding Source under the terms of this
+       License, and the Corresponding Application Code in a form
+       suitable for, and under terms that permit, the user to
+       recombine or relink the Application with a modified version of
+       the Linked Version to produce a modified Combined Work, in the
+       manner specified by section 6 of the GNU GPL for conveying
+       Corresponding Source.
+
+       1) Use a suitable shared library mechanism for linking with the
+       Library.  A suitable mechanism is one that (a) uses at run time
+       a copy of the Library already present on the user's computer
+       system, and (b) will operate properly with a modified version
+       of the Library that is interface-compatible with the Linked
+       Version. 
+
+   e) Provide Installation Information, but only if you would otherwise
+   be required to provide such information under section 6 of the
+   GNU GPL, and only to the extent that such information is
+   necessary to install and execute a modified version of the
+   Combined Work produced by recombining or relinking the
+   Application with a modified version of the Linked Version. (If
+   you use option 4d0, the Installation Information must accompany
+   the Minimal Corresponding Source and Corresponding Application
+   Code. If you use option 4d1, you must provide the Installation
+   Information in the manner specified by section 6 of the GNU GPL
+   for conveying Corresponding Source.)
+
+  5. Combined Libraries.
+
+  You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+   a) Accompany the combined library with a copy of the same work based
+   on the Library, uncombined with any other library facilities,
+   conveyed under the terms of this License.
+
+   b) Give prominent notice with the combined library that part of it
+   is a work based on the Library, and explaining where to find the
+   accompanying uncombined form of the same work.
+
+  6. Revised Versions of the GNU Lesser General Public License.
+
+  The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+  Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+  If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
+--------------------------------------------------------------------------------
+
+           SPECIAL EXCEPTION GRANTED BY COPYRIGHT HOLDERS
+
+As a special exception, copyright holders give you permission to link this
+library with independent modules to produce an executable, regardless of
+the license terms of these independent modules, and to copy and distribute
+the resulting executable under terms of your choice, provided that you also
+meet, for each linked independent module, the terms and conditions of
+the license of that module. An independent module is a module which is not
+derived from or based on this library. If you modify this library, you must
+extend this exception to your version of the library.
+
+--------------------------------------------------------------------------------
+
+Parts of the software are licensed under the MIT (X11) license as follows:
+
+Copyright (c) 2007-2010 Contributors as listed in AUTHORS
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation
+ files (the "Software"), to deal in the Software without
+ restriction, including without limitation the rights to use,
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following
+ conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/580f57b5/etc/legal/LICENSE_extras
----------------------------------------------------------------------
diff --git a/etc/legal/LICENSE_extras b/etc/legal/LICENSE_extras
new file mode 100644
index 0000000..ee5454e
--- /dev/null
+++ b/etc/legal/LICENSE_extras
@@ -0,0 +1,53 @@
+=======================================================================
+Apache Toree External Dependencies:
+
+The Apache Toree project contains several external dependencies with
+separate copyright notices and license terms. Your use of this bundled
+package is subject to the terms and conditions of the following
+licenses.
+
+========================================================================
+GNU General Lesser Public License (LGPL) version 3.0
+(plus a static linking exception)
+========================================================================
+
+Direct dependencies
+
+   org.zeromq:jeromq:0.3.4 -> https://github.com/zeromq/jeromq/blob/master/COPYING, https://github.com/zeromq/jeromq/blob/master/COPYING.LESSER
+
+========================================================================
+BSD-like
+========================================================================
+
+Direct dependencies
+
+   org.clapper:classutil_2.10:1.0.3 -> http://software.clapper.org/javautil/#copyright-and-license
+   org.scala-lang:scala-reflect:2.10.4 -> http://www.scala-lang.org/license.html
+   org.scalamacros:quasiquotes_2.10:2.0.1 -> http://www.scala-lang.org/license.html
+
+Transitive Dependencies
+
+   jline:jline:2.6 -> https://github.com/jline/jline2/blob/master/LICENSE.txt
+   org.clapper:grizzled-scala_2.10:1.1.2 -> http://software.clapper.org/grizzled-scala/#copyright-and-license
+   org.clapper:grizzled-slf4j_2.10:1.0.1 -> http://software.clapper.org/grizzled-slf4j/#copyright-and-license
+   org.scala-stm:scala-stm_2.10:0.7 -> https://nbronson.github.io/scala-stm/license.html
+   org.scalaz:scalaz-concurrent_2.10:7.1.2 -> https://github.com/scalaz/scalaz/blob/series/7.1.x/etc/LICENCE
+   org.scalaz:scalaz-core_2.10:7.1.2 -> https://github.com/scalaz/scalaz/blob/series/7.1.x/etc/LICENCE
+   org.scalaz:scalaz-effect_2.10:7.1.2 -> https://github.com/scalaz/scalaz/blob/series/7.1.x/etc/LICENCE
+   asm:asm-commons:3.3 -> http://asm.ow2.org/license.html
+   asm:asm-tree:3.3 -> http://asm.ow2.org/license.html
+   asm:asm:3.3 -> http://asm.ow2.org/license.html
+
+========================================================================
+MIT license
+========================================================================
+
+Direct dependencies
+
+   net.sf.jopt-simple:jopt-simple:4.6 -> https://pholser.github.io/jopt-simple/license.html
+   org.slf4j:slf4j-api:1.7.5 -> http://www.slf4j.org/license.html
+   org.slf4j:slf4j-api:1.7.1 -> http://www.slf4j.org/license.html
+
+Transitive Dependencies
+
+   com.lihaoyi:ammonite-terminal_2.10:0.5.0 -> https://github.com/lihaoyi/Ammonite/blob/master/LICENSE
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/580f57b5/etc/legal/NOTICE_extras
----------------------------------------------------------------------
diff --git a/etc/legal/NOTICE_extras b/etc/legal/NOTICE_extras
new file mode 100644
index 0000000..d868c55
--- /dev/null
+++ b/etc/legal/NOTICE_extras
@@ -0,0 +1,17 @@
+========================================================================
+Apache Toree External Dependencies:
+
+- org.zeromq:jeromq:0.3.4 -> https://github.com/zeromq/jeromq/blob/master/COPYING
+
+Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+
+Copyright (c) 2007-2010 Contributors as listed in AUTHORS
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/580f57b5/etc/pip_install/MANIFEST.in
----------------------------------------------------------------------
diff --git a/etc/pip_install/MANIFEST.in b/etc/pip_install/MANIFEST.in
index e1ae9d9..121198d 100644
--- a/etc/pip_install/MANIFEST.in
+++ b/etc/pip_install/MANIFEST.in
@@ -1,4 +1,4 @@
 recursive-include toree/bin *
 recursive-include toree/lib *
 include toree/VERSION toree/DISCLAIMER
-include LICENSE DISCLAIMER NOTICE
+include LICENSE DISCLAIMER NOTICE COPYING COPYING.LESSER

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/580f57b5/project/Build.scala
----------------------------------------------------------------------
diff --git a/project/Build.scala b/project/Build.scala
index a11ae88..5e4c460 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -42,7 +42,9 @@ object Build extends Build with Settings with SubProjects with TestTasks {
         assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false),
         scalacOptions in (ScalaUnidoc, unidoc) += "-Ymacro-no-expand",
         git.gitRemoteRepo := "git://git.apache.org/incubator-toree.git",
-        aggregate in assembly := false
+        aggregate in assembly := false,
+        unmanagedResourceDirectories in Compile += { baseDirectory.value / "dist/toree-legal" }
+
       )
     )
 ).aggregate(


[05/32] incubator-toree git commit: Publish all artifacts to maven

Posted by ch...@apache.org.
Publish all artifacts to maven


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/737dd81e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/737dd81e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/737dd81e

Branch: refs/heads/master
Commit: 737dd81ecbbcdd39fe0aa170a8370e75e51a1e3d
Parents: af45cf3
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Mon Apr 4 14:38:52 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:08 2016 -0500

----------------------------------------------------------------------
 project/Build.scala | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/737dd81e/project/Build.scala
----------------------------------------------------------------------
diff --git a/project/Build.scala b/project/Build.scala
index 3739e2d..ff11db1 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -41,6 +41,7 @@ object Build extends Build with Settings with SubProjects with TestTasks {
         assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false),
         scalacOptions in (ScalaUnidoc, unidoc) += "-Ymacro-no-expand",
         git.gitRemoteRepo := "git://git.apache.org/incubator-toree.git",
+        aggregate in assembly := false,
         pomExtra :=
           <parent>
             <groupId>org.apache</groupId>
@@ -56,17 +57,15 @@ object Build extends Build with Settings with SubProjects with TestTasks {
             </licenses>
       )
     )
+  ).aggregate(
+    client, kernel, kernel_api, communication, protocol, macros, 
+    pyspark_interpreter, scala_interpreter, sparkr_interpreter, sql_interpreter, 
+    plugins
   ).dependsOn(
-    client % "compile", 
-    kernel % "compile",
-    kernel_api % "compile",
-    communication % "compile",
-    protocol % "compile",
-    macros % "compile",
-    pyspark_interpreter % "compile",
-    scala_interpreter % "compile",
-    sparkr_interpreter % "compile",
-    sql_interpreter % "compile",
+    client % "compile", kernel % "compile", kernel_api % "compile",
+    communication % "compile", protocol % "compile", macros % "compile",
+    pyspark_interpreter % "compile", scala_interpreter % "compile", 
+    sparkr_interpreter % "compile", sql_interpreter % "compile",
     plugins % "compile"
   )
 }


[18/32] incubator-toree git commit: Update rat-excludes and add license headers

Posted by ch...@apache.org.
Update rat-excludes and add license headers


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/e4fc7d8b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/e4fc7d8b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/e4fc7d8b

Branch: refs/heads/master
Commit: e4fc7d8b6817bdbab105adb1940ff3cc1164e2b4
Parents: 498f173
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Wed Apr 6 11:40:27 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:59 2016 -0500

----------------------------------------------------------------------
 .gitignore              | 17 ++++++++++++
 .pairs                  | 24 ----------------
 .travis.yml             | 17 ++++++++++++
 etc/tools/.rat-excludes | 66 +++++++++++++++++++++++++++-----------------
 4 files changed, 75 insertions(+), 49 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/e4fc7d8b/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 802a704..4474cf0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+
 build/
 **/derby.log
 **/metastore_db

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/e4fc7d8b/.pairs
----------------------------------------------------------------------
diff --git a/.pairs b/.pairs
deleted file mode 100644
index a2031ca..0000000
--- a/.pairs
+++ /dev/null
@@ -1,24 +0,0 @@
-# .pairs - configuration for 'git pair'
-pairs:
-  # <initials>: <Firstname> <Lastname>[; <email-id>]
-  # LiveSheets Team
-  bb: Brian Burns; bburns
-  cm: Chris Marcocci; cjmarcoc
-  cas: Corey Stubbs; cstubbs
-  dl: Drew Logsdon; dalogsdo
-  dr: Doron Rosenberg; doronr
-  gb: Gino Bustelo; lbustelo
-  # Laas Team
-  ccs: Chip Senkbeil; rcsenkbe
-  df: David Fallside; fallside
-  gc: Guillermo Cabrera; gcabrera
-  je: Jacob Eisinger;jeising
-  mr: Marcy Rattner; marattne
-  # Other ET
-  sw: Sean Welleck; swelleck
-  zcm: Zack Morris; zmorris
-  pb: Phil Berkland; berkland
-  mp: Michael Poplavski; mpoplavs
-email:
-  prefix: pair
-  domain: us.ibm.com

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/e4fc7d8b/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 4c6e481..acc5e48 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+
 language: scala
 scala:
     - "2.10.4"

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/e4fc7d8b/etc/tools/.rat-excludes
----------------------------------------------------------------------
diff --git a/etc/tools/.rat-excludes b/etc/tools/.rat-excludes
index 907b0c8..7af785c 100644
--- a/etc/tools/.rat-excludes
+++ b/etc/tools/.rat-excludes
@@ -1,33 +1,49 @@
-target
-MANIFEST.in
-.gitignore
-.gitattributes
-.project
-.classpath
-.rat-excludes
-.*ipynb
-.ipynb_checkpoints/
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+#
+
+
+# Files from sparkr which should not be changed
+.lintr
+package-sparkR.sh
 .*md
-.*avsc
+.*sparkr-interpreter/src/main/.*
+NAMESPACE
+DESCRIPTION
+.*gitignore
+
+# Files which do not support comments
+\.src-release-ignore
+.*ipynb
 .*txt
 .*json
-.*data
-.*log
-.*out
-.*parquet
-.*csv
-.*tsv
+.*\.md5
+.*\.asc
+.*\.sha
+
+# Auto-generated files and directories
 .*iml
-service.properties
-db.lck
-DESCRIPTION
-NAMESPACE
-package-sparkR.sh
-\.lintr
 .*ivy.xml
 \.example-image
 \.ensime
-\.example-image
 \.jvmopts
-\.pairs
-\.travis.yml
\ No newline at end of file
+db.lck
+VERSION
+PKG-INFO
+derby.log
+service.properties
+MANIFEST.in
+target


[10/32] incubator-toree git commit: Fixed pip reference to Apache Toree and added Disclaimer in discription

Posted by ch...@apache.org.
Fixed pip reference to Apache Toree and added Disclaimer in discription


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/269e51d0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/269e51d0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/269e51d0

Branch: refs/heads/master
Commit: 269e51d05faf964800013ef408216244e4cdd5fc
Parents: 9bf45fc
Author: Gino Bustelo <lb...@apache.org>
Authored: Tue Apr 5 16:01:29 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:38 2016 -0500

----------------------------------------------------------------------
 Makefile                 |  1 +
 etc/pip_install/setup.py | 21 +++++++++++++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/269e51d0/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 8fc3b03..010ef30 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,7 @@ endef
 define GEN_PIP_PACKAGE_INFO
 printf "__version__ = '$(VERSION)'\n" >> dist/toree-pip/toree/_version.py
 printf "__commit__ = '$(COMMIT)'\n" >> dist/toree-pip/toree/_version.py
+endef
 
 USE_VAGRANT?=
 RUN_PREFIX=$(if $(USE_VAGRANT),vagrant ssh -c "cd $(VM_WORKDIR) && )

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/269e51d0/etc/pip_install/setup.py
----------------------------------------------------------------------
diff --git a/etc/pip_install/setup.py b/etc/pip_install/setup.py
index 25388a6..1661aed 100644
--- a/etc/pip_install/setup.py
+++ b/etc/pip_install/setup.py
@@ -27,12 +27,22 @@ with open(os.path.join(here, 'toree', '_version.py')) as f:
 
 setup_args = dict(
     name='toree',
-    author='Toree Development Team',
+    author='Apache Toree Development Team',
     author_email='user@toree.incubator.apache.org',
     description='A Jupyter kernel for enabling remote applications to interaction with Apache Spark.',
     long_description = '''
-    A python package for installing the Toree kernel. This will install a Jupyter
-    application which can be invoked to install the kernel.
+    This package will install Apache Toree as a Jupyter kernel.
+
+    Apache Toree is an effort undergoing incubation at the Apache Software
+    Foundation (ASF), sponsored by the Apache Incubator PMC.
+
+    Incubation is required of all newly accepted projects until a further review
+    indicates that the infrastructure, communications, and decision making process
+    have stabilized in a manner consistent with other successful ASF projects.
+
+    While incubation status is not necessarily a reflection of the completeness
+    or stability of the code, it does indicate that the project has yet to be
+    fully endorsed by the ASF.
     ''',
     url='http://toree.incubator.apache.org/',
     version=version_ns['__version__'],
@@ -51,7 +61,10 @@ setup_args = dict(
         'Intended Audience :: System Administrators',
         'Intended Audience :: Science/Research',
         'License :: OSI Approved :: Apache Software License',
-        'Programming Language :: Python'
+        'Programming Language :: Scala',
+        'Programming Language :: Python',
+        'Programming Language :: R',
+        'Programming Language :: SQL'
     ]
 )
 


[30/32] incubator-toree git commit: Added Release notes

Posted by ch...@apache.org.
Added Release notes


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/c23fe1ce
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/c23fe1ce
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/c23fe1ce

Branch: refs/heads/master
Commit: c23fe1cec3a9fe00997f883390b58dfb8b5d4f48
Parents: 92abb20
Author: Gino Bustelo <lb...@apache.org>
Authored: Thu Apr 21 11:44:20 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:47:42 2016 -0500

----------------------------------------------------------------------
 Makefile                    |  5 ++++-
 RELEASE_NOTES.md            | 20 ++++++++++++++++++++
 etc/pip_install/MANIFEST.in |  4 ++--
 3 files changed, 26 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/c23fe1ce/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index d0673b5..90eaaac 100644
--- a/Makefile
+++ b/Makefile
@@ -154,8 +154,9 @@ dist/toree-legal/DISCLAIMER:
 dist/toree-legal: dist/toree-legal/LICENSE dist/toree-legal/NOTICE dist/toree-legal/DISCLAIMER
 	@cp -R etc/legal/licenses dist/toree-legal/.
 
-dist/toree: dist/toree-legal dist/toree/lib dist/toree/bin
+dist/toree: dist/toree/VERSION dist/toree-legal dist/toree/lib dist/toree/bin RELEASE_NOTES.md
 	@cp -R dist/toree-legal/* dist/toree
+	@cp RELEASE_NOTES.md dist/toree/RELEASE_NOTES.md
 
 dist: dist/toree
 
@@ -192,6 +193,8 @@ dist/toree-pip/toree-$(VERSION).tar.gz: dist/toree
 	@cp dist/toree/LICENSE dist/toree-pip/LICENSE
 	@cp dist/toree/NOTICE dist/toree-pip/NOTICE
 	@cp dist/toree/DISCLAIMER dist/toree-pip/DISCLAIMER
+	@cp dist/toree/VERSION dist/toree-pip/VERSION
+	@cp dist/toree/RELEASE_NOTES.md dist/toree-pip/RELEASE_NOTES.md
 	@cp -R dist/toree/licenses dist/toree-pip/licenses
 	@cp -rf etc/pip_install/* dist/toree-pip/.
 	@$(GEN_PIP_PACKAGE_INFO)

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/c23fe1ce/RELEASE_NOTES.md
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
new file mode 100644
index 0000000..0f101be
--- /dev/null
+++ b/RELEASE_NOTES.md
@@ -0,0 +1,20 @@
+# RELEASE_NOTES
+
+## 0.1.0-incubating (2016-xx-xx)
+
+This is the first release of Toree since it joined Apache as an incubator project on December 2nd, 2015.
+
+As part of moving to Apache, the original codebase from [SparkKernel](https://github.com/ibm-et/spark-kernel) has 
+been renamed, repackaged and improved in a variety of areas. It is also important to note that the version has been
+reset back to `0.1.0` in favor or the version scheme used in the old project.
+
+Note that this release contains an LGPL dependency ([JeroMQ](https://github.com/zeromq/jeromq)) which is currently 
+undergoing efforts to change to MPLv2 license.
+
+* Support for installation as a Jupyter kernel using pip
+* New plugin framework for extending Toree. Currently only used for Magics.
+* Support for sharing Spark context across different language interpreters.
+* Improved AddDeps magic by using Coursier
+* Kernel api to send HTML and Javascript content to the client
+* Binder support for easy trial on Jupyter Notebook
+* Demonstration of building an interactive streaming dashboard

http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/c23fe1ce/etc/pip_install/MANIFEST.in
----------------------------------------------------------------------
diff --git a/etc/pip_install/MANIFEST.in b/etc/pip_install/MANIFEST.in
index 51a3e5e..212a4db 100644
--- a/etc/pip_install/MANIFEST.in
+++ b/etc/pip_install/MANIFEST.in
@@ -1,5 +1,5 @@
 recursive-include toree/bin *
 recursive-include toree/lib *
 recursive-include licenses *
-include toree/VERSION toree/DISCLAIMER
-include LICENSE DISCLAIMER NOTICE \
+include toree/VERSION toree/DISCLAIMER toree/RELEASE_NOTES.md
+include LICENSE DISCLAIMER NOTICE RELEASE_NOTES.md


[09/32] incubator-toree git commit: Removed duplicate check-licenses file

Posted by ch...@apache.org.
Removed duplicate check-licenses file


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/6be30f4c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/6be30f4c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/6be30f4c

Branch: refs/heads/master
Commit: 6be30f4cd6ee5f4c599ceb53b65b7ed52ed59e47
Parents: e20dd57
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Tue Apr 5 14:06:21 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:44:30 2016 -0500

----------------------------------------------------------------------
 etc/dev/check-licenses | 86 ---------------------------------------------
 1 file changed, 86 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/6be30f4c/etc/dev/check-licenses
----------------------------------------------------------------------
diff --git a/etc/dev/check-licenses b/etc/dev/check-licenses
deleted file mode 100644
index a08aa27..0000000
--- a/etc/dev/check-licenses
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/usr/bin/env bash
-
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You 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.
-#
-
-
-acquire_rat_jar () {
-
-  URL="http://repo1.maven.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar"
-
-  JAR="$rat_jar"
-
-  # Download rat launch jar if it hasn't been downloaded yet
-  if [ ! -f "$JAR" ]; then
-    # Download
-    printf "Attempting to fetch rat\n"
-    JAR_DL="${JAR}.part"
-    if [ $(command -v curl) ]; then
-      curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR"
-    elif [ $(command -v wget) ]; then
-      wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR"
-    else
-      printf "You do not have curl or wget installed, please install rat manually.\n"
-      exit -1
-    fi
-  fi
-
-  unzip -tq "$JAR" &> /dev/null
-  if [ $? -ne 0 ]; then 
-    # We failed to download
-    rm "$JAR"
-    printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n"
-    exit -1
-  fi
-}
-
-# Go to the project root directory
-FWDIR="$(cd "`dirname "$0"`"/..; pwd)"
-cd "$FWDIR"
-
-if test -x "$JAVA_HOME/bin/java"; then
-    declare java_cmd="$JAVA_HOME/bin/java"
-else
-    declare java_cmd=java
-fi
-
-export RAT_VERSION=0.11
-export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar
-mkdir -p "$FWDIR"/lib
-
-[[ -f "$rat_jar" ]] || acquire_rat_jar || {
-    echo "Download failed. Obtain the rat jar manually and place it at $rat_jar"
-    exit 1
-}
-
-mkdir target
-$java_cmd -jar "$rat_jar" -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > target/rat-results.txt
-
-if [ $? -ne 0 ]; then
-   echo "RAT exited abnormally"
-   exit 1
-fi
-
-ERRORS="$(cat target/rat-results.txt | grep -e "??")"
-
-if test ! -z "$ERRORS"; then 
-    echo "Could not find Apache license headers in the following files:"
-    echo "$ERRORS"
-    exit 1
-else 
-    echo -e "RAT checks passed."
-fi
\ No newline at end of file


[29/32] incubator-toree git commit: Removed oracle jdk from travis build

Posted by ch...@apache.org.
Removed oracle jdk from travis build


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/92abb20a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/92abb20a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/92abb20a

Branch: refs/heads/master
Commit: 92abb20a6f972f15ff6623a5a3df004831aa2956
Parents: 09bda85
Author: Corey A. Stubbs <cs...@us.ibm.com>
Authored: Tue Apr 12 09:47:25 2016 -0500
Committer: Gino Bustelo <lb...@apache.org>
Committed: Thu Apr 21 14:47:42 2016 -0500

----------------------------------------------------------------------
 .travis.yml | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/92abb20a/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 3ee8f44..693ed90 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,7 +24,6 @@ env:
         - TOREE_RESOLUTION_VERBOSITY=0
         - TEST_DILATION=3
 jdk:
-    - oraclejdk7
     - openjdk7
 
 script: