Skip to content

Commit 96e98fc

Browse files
committed
Update licensing and copyright
1 parent 144daca commit 96e98fc

16 files changed

+145
-4
lines changed

LICENSE

+34-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2020, jupytercalpoly
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30+
31+
-----------------------------------------------------------------------------------------------------------------
32+
Some lines of code in this extension are from Elyra's code snippet extension (https://github.com/elyra-ai/elyra).
33+
-----------------------------------------------------------------------------------------------------------------
34+
135
Apache License
236
Version 2.0, January 2004
337
http://www.apache.org/licenses/
@@ -199,7 +233,3 @@
199233
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200234
See the License for the specific language governing permissions and
201235
limitations under the License.
202-
203-
------------------------------------------------------------------------------------
204-
This extension is derived from Elyra's code snippet design (https://github.com/elyra-ai/elyra).
205-
------------------------------------------------------------------------------------

src/CodeSnippetContentsService.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { ContentsManager, Drive, Contents } from '@jupyterlab/services';
25

36
export interface ICodeSnippet {

src/CodeSnippetDisplay.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
// Some lines of code are from Elyra
4+
5+
/*
6+
* Copyright 2018-2020 IBM Corporation
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions a* limitations under the License.
15+
*/
16+
117
import { Clipboard, Dialog, showDialog } from '@jupyterlab/apputils';
218
import { PathExt } from '@jupyterlab/coreutils';
319
import { DocumentWidget } from '@jupyterlab/docregistry';

src/CodeSnippetEditor.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
// Some lines of code are from Elyra
4+
5+
/*
6+
* Copyright 2018-2020 IBM Corporation
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions a* limitations under the License.
15+
*/
16+
117
import { CodeEditor, IEditorServices } from '@jupyterlab/codeeditor';
218
import {
319
ReactWidget,

src/CodeSnippetEditorTags.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { checkIcon, addIcon } from '@jupyterlab/ui-components';
25

36
import React from 'react';

src/CodeSnippetForm.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { closeIcon, Button, LabIcon } from '@jupyterlab/ui-components';
25
import { WidgetTracker, ReactWidget, Styling } from '@jupyterlab/apputils';
36

src/CodeSnippetInputDialog.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { showDialog, Dialog } from '@jupyterlab/apputils';
25
import { addIcon, checkIcon } from '@jupyterlab/ui-components';
36
import { Contents } from '@jupyterlab/services';

src/CodeSnippetLanguages.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { LabIcon } from '@jupyterlab/ui-components';
25

36
import babelSVGstr from '../style/icon/language_icons/babel.svg';

src/CodeSnippetWidget.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
// Some lines of code are from Elyra
4+
5+
/*
6+
* Copyright 2018-2020 IBM Corporation
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions a* limitations under the License.
15+
*/
16+
117
import { ReactWidget, UseSignal } from '@jupyterlab/apputils';
218
import { JupyterFrontEnd } from '@jupyterlab/application';
319
import { IEditorServices } from '@jupyterlab/codeeditor';

src/CodeSnippetWidgetModel.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import {
25
ICodeSnippet,
36
CodeSnippetContentsService

src/ConfirmMessage.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { WidgetTracker, ReactWidget } from '@jupyterlab/apputils';
25

36
import { Widget, PanelLayout, Panel } from '@lumino/widgets';

src/FilterTools.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { InputGroup, checkIcon } from '@jupyterlab/ui-components';
25

36
import React from 'react';

src/MoreOptions.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { WidgetTracker, ReactWidget } from '@jupyterlab/apputils';
25

36
import { Widget, PanelLayout, Panel } from '@lumino/widgets';

src/PreviewSnippet.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { WidgetTracker, ReactWidget } from '@jupyterlab/apputils';
25
import { CodeEditor, IEditorServices } from '@jupyterlab/codeeditor';
36

src/index.ts

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
// Some lines of code are from Elyra
4+
5+
/*
6+
* Copyright 2018-2020 IBM Corporation
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions a* limitations under the License.
15+
*/
16+
117
import {
218
JupyterFrontEnd,
319
JupyterFrontEndPlugin,

style/index.css

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/* Copyright (c) 2020, jupytercalpoly
2+
* Distributed under the terms of the BSD-3 Clause License.
3+
* Some lines of code are from Elyra
4+
*/
5+
6+
/*
7+
* Copyright 2018-2020 IBM Corporation
8+
* Licensed under the Apache License, Version 2.0 (the "License");
9+
* you may not use this file except in compliance with the License.
10+
* You may obtain a copy of the License at
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions a* limitations under the License.
16+
*/
17+
118
:root {
219
--preview-distance: 0px;
320
--preview-max-height: 75px;

0 commit comments

Comments
 (0)