You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ra...@apache.org on 2017/08/16 16:46:20 UTC

[incubator-openwhisk-catalog] branch master updated: update remaining files with ASF headers. (#229)

This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-catalog.git


The following commit(s) were added to refs/heads/master by this push:
     new 85da4d9  update remaining files with ASF headers. (#229)
85da4d9 is described below

commit 85da4d949458ba13fd765f5456d9cfbb026a2ec7
Author: Matt Rutkowski <mr...@us.ibm.com>
AuthorDate: Wed Aug 16 11:46:18 2017 -0500

    update remaining files with ASF headers. (#229)
---
 packages/combinators/eca.js                        | 17 ++--------------
 packages/combinators/forwarder.js                  | 17 ++--------------
 packages/combinators/retry.js                      | 17 ++--------------
 packages/combinators/trycatch.js                   | 17 ++--------------
 packages/github/webhook.js                         |  6 +++++-
 packages/samples/cat/swift/cat.swift               |  3 +++
 packages/samples/countdown/javascript/countdown.js |  3 +++
 packages/samples/curl/javascript/curl.js           |  6 ++++++
 packages/samples/greeting/javascript/greeting.js   |  3 +++
 packages/samples/head/swift/head.swift             |  3 +++
 .../hello/java/src/main/java/hello/Hello.java      | 18 ++---------------
 packages/samples/hello/javascript/hello.js         |  3 +++
 packages/samples/hello/python/hello.py             | 23 +++++++++++++++++++++-
 packages/samples/hello/swift/hello.swift           |  3 +++
 .../samples/helloAsync/javascript/helloAsync.js    |  3 +++
 .../helloPromises/javascript/helloPromises.js      |  3 +++
 packages/samples/httpGet/swift/httpGet.swift       |  3 +++
 packages/samples/invoke/swift/invoke.swift         |  3 +++
 .../samples/printParames/javascript/printParams.js |  3 +++
 packages/samples/sort/swift/sort.swift             |  3 +++
 packages/samples/split/swift/split.swift           |  3 +++
 packages/samples/trigger/swift/trigger.swift       |  3 +++
 packages/samples/wordcount/javascript/wordcount.js |  3 +++
 packages/samples/wordcount/swift/wordcount.swift   |  3 +++
 .../wordcountBinary/javascript/wordcountBinary.js  |  3 +++
 packages/slack/post.js                             |  3 +++
 packages/utils/cat.js                              |  3 +++
 packages/utils/date.js                             |  3 +++
 packages/utils/echo.js                             |  3 +++
 packages/utils/head.js                             |  3 +++
 packages/utils/hosturl.js                          |  3 +++
 packages/utils/namespace.js                        |  3 +++
 packages/utils/smash.js                            |  3 +++
 packages/utils/sort.js                             |  3 +++
 packages/utils/split.js                            |  3 +++
 packages/watson-speechToText/speechToText.js       |  3 +++
 packages/watson-textToSpeech/textToSpeech.js       |  3 +++
 packages/watson-translator/languageId.js           |  3 +++
 packages/watson-translator/translator.js           |  3 +++
 packages/weather/forecast.js                       |  3 +++
 packages/websocket/sendWebSocketMessageAction.js   |  3 +++
 .../packages/combinators/CombinatorTests.scala     | 14 +++++++------
 42 files changed, 150 insertions(+), 84 deletions(-)

diff --git a/packages/combinators/eca.js b/packages/combinators/eca.js
index 4db6bbf..f2f845e 100644
--- a/packages/combinators/eca.js
+++ b/packages/combinators/eca.js
@@ -1,18 +1,5 @@
-/*
- * Copyright 2015-2016 IBM Corporation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
 
 // Runs a boolean check on the input arguments (an action),
 // if true (any non-error value), runs an action, else, returns {}.
diff --git a/packages/combinators/forwarder.js b/packages/combinators/forwarder.js
index 7bdd716..8ced7cd 100644
--- a/packages/combinators/forwarder.js
+++ b/packages/combinators/forwarder.js
@@ -1,18 +1,5 @@
-/*
- * Copyright 2015-2016 IBM Corporation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
 
 // Augments an action with the ability to "forward parameters around".
 // Example invocation:
diff --git a/packages/combinators/retry.js b/packages/combinators/retry.js
index 6f0f03d..1870bb7 100644
--- a/packages/combinators/retry.js
+++ b/packages/combinators/retry.js
@@ -1,18 +1,5 @@
-/*
- * Copyright 2015-2016 IBM Corporation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
 
 // Expects an object with three arguments:
 //
diff --git a/packages/combinators/trycatch.js b/packages/combinators/trycatch.js
index 4da053a..bee36e1 100644
--- a/packages/combinators/trycatch.js
+++ b/packages/combinators/trycatch.js
@@ -1,18 +1,5 @@
-/*
- * Copyright 2015-2016 IBM Corporation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
 
 // Runs a boolean check on the input arguments (an action),
 // if true (any non-error value), runs an action, else, returns {}.
diff --git a/packages/github/webhook.js b/packages/github/webhook.js
index 5739d05..dc427a2 100644
--- a/packages/github/webhook.js
+++ b/packages/github/webhook.js
@@ -1,7 +1,11 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 var request = require('request');
 
 /**
- *   Feed to create a webhook on Github
+ *  Feed to create a webhook on Github
+ *
  *  @param {object} params - information about the trigger
  *  @param {string} repository - repository to create webhook
  *  @param {string} username - github username
diff --git a/packages/samples/cat/swift/cat.swift b/packages/samples/cat/swift/cat.swift
index 34738ad..5c5d035 100644
--- a/packages/samples/cat/swift/cat.swift
+++ b/packages/samples/cat/swift/cat.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Sample code using the experimental Swift 3 runtime
  * Equivalent to unix cat command.
diff --git a/packages/samples/countdown/javascript/countdown.js b/packages/samples/countdown/javascript/countdown.js
index e7ff6b4..dc92d28 100644
--- a/packages/samples/countdown/javascript/countdown.js
+++ b/packages/samples/countdown/javascript/countdown.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * An action that invokes itself recursively, programmatically using the whisk
  * Javascript API.
diff --git a/packages/samples/curl/javascript/curl.js b/packages/samples/curl/javascript/curl.js
index f6b6b88..1e81164 100644
--- a/packages/samples/curl/javascript/curl.js
+++ b/packages/samples/curl/javascript/curl.js
@@ -1,3 +1,9 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
+/**
+ * Attempt to Curl to the URL provided in the payload.
+ */
 function main(msg) {
     var hostToCurl = msg.payload;
     console.log('Curl to ' + hostToCurl);
diff --git a/packages/samples/greeting/javascript/greeting.js b/packages/samples/greeting/javascript/greeting.js
index e265f4a..a703be0 100644
--- a/packages/samples/greeting/javascript/greeting.js
+++ b/packages/samples/greeting/javascript/greeting.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Return a simple greeting message for someone.
  *
diff --git a/packages/samples/head/swift/head.swift b/packages/samples/head/swift/head.swift
index 4e06237..e00f36b 100644
--- a/packages/samples/head/swift/head.swift
+++ b/packages/samples/head/swift/head.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.imitations under the License.
+
 /**
  * Sample code using the experimental Swift 3 runtime
  * Return the first num lines of an array.
diff --git a/packages/samples/hello/java/src/main/java/hello/Hello.java b/packages/samples/hello/java/src/main/java/hello/Hello.java
index 8c22f5c..e030d05 100644
--- a/packages/samples/hello/java/src/main/java/hello/Hello.java
+++ b/packages/samples/hello/java/src/main/java/hello/Hello.java
@@ -1,19 +1,5 @@
-/*
- * 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.
- */
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
 
 package hello;
 
diff --git a/packages/samples/hello/javascript/hello.js b/packages/samples/hello/javascript/hello.js
index d7d7f80..9459817 100644
--- a/packages/samples/hello/javascript/hello.js
+++ b/packages/samples/hello/javascript/hello.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Hello, world.
  */
diff --git a/packages/samples/hello/python/hello.py b/packages/samples/hello/python/hello.py
index bf4fd54..340ab0e 100644
--- a/packages/samples/hello/python/hello.py
+++ b/packages/samples/hello/python/hello.py
@@ -1,4 +1,25 @@
+"""OpenWhisk "Hello world" in Python.
+
+/*
+ * 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.
+ */
+"""
 import sys
+
+
 def main(dict):
     if 'name' in dict:
         name = dict['name']
@@ -6,4 +27,4 @@ def main(dict):
         name = "stranger"
     greeting = "Hello " + name + "!"
     print(greeting)
-    return {"greeting":greeting}
+    return {"greeting": greeting}
diff --git a/packages/samples/hello/swift/hello.swift b/packages/samples/hello/swift/hello.swift
index 7c903a5..0cc3ca3 100644
--- a/packages/samples/hello/swift/hello.swift
+++ b/packages/samples/hello/swift/hello.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Hello world as a Swift Whisk action.
  */
diff --git a/packages/samples/helloAsync/javascript/helloAsync.js b/packages/samples/helloAsync/javascript/helloAsync.js
index efa2aa6..b996cc7 100644
--- a/packages/samples/helloAsync/javascript/helloAsync.js
+++ b/packages/samples/helloAsync/javascript/helloAsync.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * word count utility, coded as an asynchronous action for pedagogical
  * purposes
diff --git a/packages/samples/helloPromises/javascript/helloPromises.js b/packages/samples/helloPromises/javascript/helloPromises.js
index 0bd22bd..c0cf7f5 100644
--- a/packages/samples/helloPromises/javascript/helloPromises.js
+++ b/packages/samples/helloPromises/javascript/helloPromises.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Return a hello message as an array of strings. This demonstrates the use of returning
  * a Promise for asynchronous actions.
diff --git a/packages/samples/httpGet/swift/httpGet.swift b/packages/samples/httpGet/swift/httpGet.swift
index d1ca609..d028748 100644
--- a/packages/samples/httpGet/swift/httpGet.swift
+++ b/packages/samples/httpGet/swift/httpGet.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Sample code using the experimental Swift 3 runtime
  * with links to KituraNet and GCD
diff --git a/packages/samples/invoke/swift/invoke.swift b/packages/samples/invoke/swift/invoke.swift
index fd32501..d69e90b 100644
--- a/packages/samples/invoke/swift/invoke.swift
+++ b/packages/samples/invoke/swift/invoke.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 import SwiftyJSON
 
 func main(args: [String:Any]) -> [String:Any] {
diff --git a/packages/samples/printParames/javascript/printParams.js b/packages/samples/printParames/javascript/printParams.js
index 80b8db6..ce69b6f 100644
--- a/packages/samples/printParames/javascript/printParams.js
+++ b/packages/samples/printParames/javascript/printParams.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Print the parameters to the console, sorted alphabetically by key
  */
diff --git a/packages/samples/sort/swift/sort.swift b/packages/samples/sort/swift/sort.swift
index 2277a97..51544a8 100644
--- a/packages/samples/sort/swift/sort.swift
+++ b/packages/samples/sort/swift/sort.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Sample code using the experimental Swift 3 runtime
  * Sort a set of lines.
diff --git a/packages/samples/split/swift/split.swift b/packages/samples/split/swift/split.swift
index eb35081..e298267 100644
--- a/packages/samples/split/swift/split.swift
+++ b/packages/samples/split/swift/split.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Sample code using the experimental Swift 3 runtime
  * Splits a string into an array of strings
diff --git a/packages/samples/trigger/swift/trigger.swift b/packages/samples/trigger/swift/trigger.swift
index 2acf54e..62bf072 100644
--- a/packages/samples/trigger/swift/trigger.swift
+++ b/packages/samples/trigger/swift/trigger.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 func main(args: [String:Any]) -> [String:Any] {
   if let triggerName = args["triggerName"] as? String {
     print("Trigger Name: \(triggerName)")
diff --git a/packages/samples/wordcount/javascript/wordcount.js b/packages/samples/wordcount/javascript/wordcount.js
index 842fc61..5d88dc5 100644
--- a/packages/samples/wordcount/javascript/wordcount.js
+++ b/packages/samples/wordcount/javascript/wordcount.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  *  word count utility
  */
diff --git a/packages/samples/wordcount/swift/wordcount.swift b/packages/samples/wordcount/swift/wordcount.swift
index db5d7a9..27c0ac2 100644
--- a/packages/samples/wordcount/swift/wordcount.swift
+++ b/packages/samples/wordcount/swift/wordcount.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Sample code using the experimental Swift 3 runtime
  * A word count utility
diff --git a/packages/samples/wordcountBinary/javascript/wordcountBinary.js b/packages/samples/wordcountBinary/javascript/wordcountBinary.js
index ebc4602..72e3e54 100644
--- a/packages/samples/wordcountBinary/javascript/wordcountBinary.js
+++ b/packages/samples/wordcountBinary/javascript/wordcountBinary.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Return word count as a binary number. This demonstrates the use of a blocking
  * invoke.
diff --git a/packages/slack/post.js b/packages/slack/post.js
index ebfa80d..cb042b1 100644
--- a/packages/slack/post.js
+++ b/packages/slack/post.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 var request = require('request');
 
 /**
diff --git a/packages/utils/cat.js b/packages/utils/cat.js
index 4d73e56..913686a 100644
--- a/packages/utils/cat.js
+++ b/packages/utils/cat.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Equivalent to unix cat command.
  * Return all the lines in an array. All other fields in the input message are stripped.
diff --git a/packages/utils/date.js b/packages/utils/date.js
index cbea7b3..ac62db9 100644
--- a/packages/utils/date.js
+++ b/packages/utils/date.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Print and return the current date.
  */
diff --git a/packages/utils/echo.js b/packages/utils/echo.js
index 37df10b..4c0af91 100644
--- a/packages/utils/echo.js
+++ b/packages/utils/echo.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Returns params, or an empty string if no parameter values are provided
  */
diff --git a/packages/utils/head.js b/packages/utils/head.js
index f6d5487..fba6df1 100644
--- a/packages/utils/head.js
+++ b/packages/utils/head.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Return the first num lines of an array.
  * @param lines An array of strings.
diff --git a/packages/utils/hosturl.js b/packages/utils/hosturl.js
index 8e83782..b5919b3 100644
--- a/packages/utils/hosturl.js
+++ b/packages/utils/hosturl.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * @param path the action name as just <action name> or <pkgname>/<action name>.
  * @param web if true return path for web action, otherwise path to invoke via POST with API key.
diff --git a/packages/utils/namespace.js b/packages/utils/namespace.js
index e6c678e..8b92962 100644
--- a/packages/utils/namespace.js
+++ b/packages/utils/namespace.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * @return the namespace for the key used to invoke this action.
  */
diff --git a/packages/utils/smash.js b/packages/utils/smash.js
index d3bbf34..52dae85 100644
--- a/packages/utils/smash.js
+++ b/packages/utils/smash.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Nests all properties under given property.
  *
diff --git a/packages/utils/sort.js b/packages/utils/sort.js
index 2017bcf..4f7cf38 100644
--- a/packages/utils/sort.js
+++ b/packages/utils/sort.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Sort a set of lines.
  * @param lines An array of strings to sort.
diff --git a/packages/utils/split.js b/packages/utils/split.js
index 43d36bc..1c16519 100644
--- a/packages/utils/split.js
+++ b/packages/utils/split.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Splits a string into an array of strings
  * Return lines in an array.
diff --git a/packages/watson-speechToText/speechToText.js b/packages/watson-speechToText/speechToText.js
index 71cfa75..d610264 100644
--- a/packages/watson-speechToText/speechToText.js
+++ b/packages/watson-speechToText/speechToText.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 var watson = require('watson-developer-cloud');
 var fs = require('fs');
 var stream = require('stream');
diff --git a/packages/watson-textToSpeech/textToSpeech.js b/packages/watson-textToSpeech/textToSpeech.js
index 0e4da6f..2de96a5 100644
--- a/packages/watson-textToSpeech/textToSpeech.js
+++ b/packages/watson-textToSpeech/textToSpeech.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 var watson = require('watson-developer-cloud');
 
 function isValidEncoding(encoding) {
diff --git a/packages/watson-translator/languageId.js b/packages/watson-translator/languageId.js
index b01b03e..1409a40 100644
--- a/packages/watson-translator/languageId.js
+++ b/packages/watson-translator/languageId.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 var watson = require('watson-developer-cloud/language-translator/v2');
 
 /**
diff --git a/packages/watson-translator/translator.js b/packages/watson-translator/translator.js
index 01eed14..1a01fb0 100644
--- a/packages/watson-translator/translator.js
+++ b/packages/watson-translator/translator.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 var watson = require('watson-developer-cloud/language-translator/v2');
 
 /**
diff --git a/packages/weather/forecast.js b/packages/weather/forecast.js
index c75279d..19dd2d2 100755
--- a/packages/weather/forecast.js
+++ b/packages/weather/forecast.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 var request = require('request');
 
 /**
diff --git a/packages/websocket/sendWebSocketMessageAction.js b/packages/websocket/sendWebSocketMessageAction.js
index 94bfc20..b4cef9d 100644
--- a/packages/websocket/sendWebSocketMessageAction.js
+++ b/packages/websocket/sendWebSocketMessageAction.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Sends a payload message to the designated WebSocket URI
  *
diff --git a/tests/src/test/scala/packages/combinators/CombinatorTests.scala b/tests/src/test/scala/packages/combinators/CombinatorTests.scala
index d500366..968afa3 100644
--- a/tests/src/test/scala/packages/combinators/CombinatorTests.scala
+++ b/tests/src/test/scala/packages/combinators/CombinatorTests.scala
@@ -1,11 +1,12 @@
 /*
- * Copyright 2015-2016 IBM Corporation
+ * 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
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *     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,
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package packages.combinators
 
 import org.junit.runner.RunWith

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].