Skip to content

Commit

Permalink
License headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed May 30, 2017
1 parent 2a8cc13 commit d146f6a
Show file tree
Hide file tree
Showing 187 changed files with 2,618 additions and 2 deletions.
14 changes: 14 additions & 0 deletions GruntFile.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

var path = require('path');

module.exports = function(grunt) {
Expand Down
14 changes: 14 additions & 0 deletions karma.test.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

module.exports = function(config) {
config.set({
basePath: '',
Expand Down
14 changes: 14 additions & 0 deletions karma.test_perf.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

module.exports = function(config) {
config.set({
basePath: '',
Expand Down
14 changes: 14 additions & 0 deletions src/Config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

/**
* Configuration parameters for quantum circuit visualizer.
*/
Expand Down
14 changes: 14 additions & 0 deletions src/base/CooldownThrottle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

/**
* Performs an action when triggered, but defers the action if it happens too soon after the last one.
*
Expand Down
14 changes: 14 additions & 0 deletions src/base/Describe.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

const COLLECTION_CUTOFF = 1000;
const BAD_TO_STRING_RESULT = new (function(){})().toString();
const RECURSE_LIMIT_DESCRIPTION = "!recursion-limit!";
Expand Down
14 changes: 14 additions & 0 deletions src/base/DetailedError.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

import {describe} from "src/base/Describe.js"

let CONSTRUCTOR_CALLS_NESTING = 0;
Expand Down
14 changes: 14 additions & 0 deletions src/base/Equate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

/**
* Determines if two values are currently equivalent.
*
Expand Down
14 changes: 14 additions & 0 deletions src/base/Format.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

/**
* Stores formatting options, for determining what string output should look like.
*/
Expand Down
14 changes: 14 additions & 0 deletions src/base/Obs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

import {CooldownThrottle} from "src/base/CooldownThrottle.js"

/**
Expand Down
14 changes: 14 additions & 0 deletions src/base/RestartableRng.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

/**
* A random number generator that records its results, so you can make a restarted copy.
*/
Expand Down
14 changes: 14 additions & 0 deletions src/base/Revision.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

import {describe} from "src/base/Describe.js"
import {equate} from "src/base/Equate.js"
import {DetailedError} from "src/base/DetailedError.js"
Expand Down
14 changes: 14 additions & 0 deletions src/base/Seq.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

import {DetailedError} from "src/base/DetailedError.js"

export const THROW_IF_EMPTY = { if_same_instance_as_this_then_throw: true };
Expand Down
14 changes: 14 additions & 0 deletions src/base/Util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

import {DetailedError} from "src/base/DetailedError.js"

/**
Expand Down
14 changes: 14 additions & 0 deletions src/browser/Clipboard.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

/**
* @param {!HTMLElement} element
* @throws
Expand Down
14 changes: 14 additions & 0 deletions src/browser/EventUtil.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

import {Observable} from "src/base/Obs.js"

/**
Expand Down
14 changes: 14 additions & 0 deletions src/browser/HistoryPusher.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

import {DetailedError} from "src/base/DetailedError.js"

/**
Expand Down
14 changes: 14 additions & 0 deletions src/browser/MouseWatcher.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

import {Point} from "src/math/Point.js"

const ALLOW_REGRAB_WATCHDOG_TIME_MS = 5000;
Expand Down
14 changes: 14 additions & 0 deletions src/browser/Polyfills.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

// Several browsers (IE, Safari, Samsung) don't implement slice.
Float32Array.prototype.slice = Float32Array.prototype.slice || function(a, b) {
return new Float32Array(Array.from(this).slice(a, b));
Expand Down
14 changes: 14 additions & 0 deletions src/browser/SaveFile.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

/**
* @param {!string} name
* @param {!string} content
Expand Down
14 changes: 14 additions & 0 deletions src/browser/TouchScrollBlocker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

import {Rect} from "src/math/Rect.js"

class TouchScrollBlocker {
Expand Down
14 changes: 14 additions & 0 deletions src/circuit/CircuitComputeUtil.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2017 Google Inc.
//
//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.

import {CircuitEvalContext} from "src/circuit/CircuitEvalContext.js"
import {CircuitShaders} from "src/circuit/CircuitShaders.js"
import {KetTextureUtil} from "src/circuit/KetTextureUtil.js"
Expand Down
Loading

0 comments on commit d146f6a

Please sign in to comment.