diff --git a/make/arrays.js b/make/arrays.js index cce03f8..f56831f 100644 --- a/make/arrays.js +++ b/make/arrays.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.arrays = { filledArray: function (fn, limit) { let array = []; diff --git a/make/colors.js b/make/colors.js index 903a44d..638a550 100644 --- a/make/colors.js +++ b/make/colors.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.colors = { colors: function () { return random.pick([ diff --git a/make/files.js b/make/files.js index a68be9e..c9dc609 100644 --- a/make/files.js +++ b/make/files.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.files = { image: function () { return utils.quote(random.pick([ diff --git a/make/fonts.js b/make/fonts.js index 6e23b8e..b1f27b3 100644 --- a/make/fonts.js +++ b/make/fonts.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.fonts = { fontStyles: function () { return ["italic", "normal", "oblique", "inherit"]; diff --git a/make/mime.js b/make/mime.js index da463d7..74aa3e0 100644 --- a/make/mime.js +++ b/make/mime.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.mime = { type: function () { return random.pick([ diff --git a/make/network.js b/make/network.js index de8410e..f133446 100644 --- a/make/network.js +++ b/make/network.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.network = { sdp: function () { // session description protocol template diff --git a/make/numbers.js b/make/numbers.js index c88f63e..465bf54 100644 --- a/make/numbers.js +++ b/make/numbers.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.numbers = { bool: function () { return random.bool(); diff --git a/make/shaders.js b/make/shaders.js index 916f0cf..d6da375 100644 --- a/make/shaders.js +++ b/make/shaders.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.shaders = { fragment1: function () { return [ diff --git a/make/strings.js b/make/strings.js index 6004d69..6d81a2f 100644 --- a/make/strings.js +++ b/make/strings.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.strings = { toString: function (object) { return object ? object.toSource() : '' + object diff --git a/make/text.js b/make/text.js index e46c623..367ee39 100644 --- a/make/text.js +++ b/make/text.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.text = { lineEnd: function () { return random.pick([ diff --git a/make/types.js b/make/types.js index 040ef88..30cfcc9 100644 --- a/make/types.js +++ b/make/types.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.types = { random: function () { return random.item([ diff --git a/make/units.js b/make/units.js index 400f75f..af04948 100644 --- a/make/units.js +++ b/make/units.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + make.units = { lengthUnit: function () { return random.pick([ diff --git a/random/random.js b/random/random.js index 02c8140..9d089c1 100644 --- a/random/random.js +++ b/random/random.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + var random = { twister: null, diff --git a/tests/index.html b/tests/index.html index a1ba9b7..fa1cfb5 100644 --- a/tests/index.html +++ b/tests/index.html @@ -1,3 +1,7 @@ + + diff --git a/tests/random/mersennetwister.js b/tests/random/mersennetwister.js index b283529..8664287 100644 --- a/tests/random/mersennetwister.js +++ b/tests/random/mersennetwister.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + QUnit.test("MersenneTwister test uniform distribution", function(assert) { const N = Math.pow(2, 17), TRIES = 10, XSQ = 293.25; // quantile of chi-square dist. k=255, p=.05 let mt = new MersenneTwister(); diff --git a/tests/random/random.js b/tests/random/random.js index 142bf12..b0bedc5 100644 --- a/tests/random/random.js +++ b/tests/random/random.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + QUnit.test("random.init() is required", function(assert) { assert.throws(random.number, /undefined/, "twister should be uninitialized before random.init()"); random.init(1); diff --git a/utils/block.js b/utils/block.js index 2a097ee..ec3bab4 100644 --- a/utils/block.js +++ b/utils/block.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + utils.block = { block: function (list, optional) { if (optional == true) { diff --git a/utils/common.js b/utils/common.js index af11e2c..ac297cc 100644 --- a/utils/common.js +++ b/utils/common.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + utils.common = { objToString: function (obj) { try { diff --git a/utils/platform.js b/utils/platform.js index f565ef3..91c3068 100644 --- a/utils/platform.js +++ b/utils/platform.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + utils.platform = { platform: function () { var version, webkitVersion, platform = {}; diff --git a/utils/script.js b/utils/script.js index 8304ebc..b3f84a1 100644 --- a/utils/script.js +++ b/utils/script.js @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + utils.script = { methodHead: function (list, numOptional) { if (isNaN(numOptional)) {