From 9bec4784613f09f180edb9cf479c174757bd532c Mon Sep 17 00:00:00 2001 From: "chen, suyue" Date: Fri, 26 Apr 2024 13:28:33 +0800 Subject: [PATCH] update license check (#101) Signed-off-by: chensuyue --- .github/workflows/ChatQnA.yml | 14 ++++++++++++++ .github/workflows/CodeGen.yml | 14 ++++++++++++++ .github/workflows/DocSum.yml | 14 ++++++++++++++ .github/workflows/SearchQnA.yml | 14 ++++++++++++++ .github/workflows/VisualQnA.yml | 14 ++++++++++++++ .github/workflows/code-scan.yml | 14 ++++++++++++++ .github/workflows/scripts/codeScan/bandit.sh | 14 ++++++++++++++ .pre-commit-config.yaml | 15 +++------------ AudioQnA/front_end/src/app.d.ts | 14 ++++++++++++++ AudioQnA/front_end/src/app.html | 16 ++++++++++++++++ .../assets/icons/svelte/arrow-path-icon.svelte | 16 ++++++++++++++++ .../src/lib/assets/icons/svelte/assistant.svelte | 16 ++++++++++++++++ .../icons/svelte/chat-bubble-left-icon.svelte | 16 ++++++++++++++++ .../src/lib/assets/icons/svelte/chat.svelte | 16 ++++++++++++++++ .../lib/assets/icons/svelte/check-icon.svelte | 16 ++++++++++++++++ .../svelte/loading-button-spinner-icon.svelte | 16 ++++++++++++++++ .../assets/icons/svelte/message-avatar.svelte | 16 ++++++++++++++++ .../src/lib/assets/icons/svelte/plus-icon.svelte | 16 ++++++++++++++++ .../src/lib/assets/icons/svelte/portrait.svelte | 16 ++++++++++++++++ .../lib/assets/icons/svelte/voice-button.svelte | 16 ++++++++++++++++ .../lib/assets/icons/svelte/x-mark-icon.svelte | 16 ++++++++++++++++ AudioQnA/front_end/src/lib/common/sse.d.ts | 14 ++++++++++++++ AudioQnA/front_end/src/lib/common/timediff.ts | 14 ++++++++++++++ .../front_end/src/lib/components/layout.svelte | 16 ++++++++++++++++ .../src/lib/components/shared/shared-utils.ts | 14 ++++++++++++++ .../src/lib/components/shared/shared.store.ts | 14 ++++++++++++++ .../src/lib/components/shared/shared.type.ts | 14 ++++++++++++++ .../src/lib/components/talkbot/store.ts | 14 ++++++++++++++ .../lib/components/talkbot/upload-voice.svelte | 16 ++++++++++++++++ .../lib/components/talkbot/voice-button.svelte | 16 ++++++++++++++++ .../src/lib/components/talkbot/voice-wave.svelte | 16 ++++++++++++++++ .../lib/components/topnavigation/Index.svelte | 16 ++++++++++++++++ .../src/lib/modules/chat/chat-audio.svelte | 16 ++++++++++++++++ .../src/lib/modules/chat/chat-message.svelte | 16 ++++++++++++++++ .../src/lib/modules/chat/message-timer.svelte | 16 ++++++++++++++++ .../front_end/src/lib/modules/chat/network.ts | 14 ++++++++++++++ AudioQnA/front_end/src/routes/+layout.svelte | 16 ++++++++++++++++ AudioQnA/front_end/src/routes/+page.svelte | 16 ++++++++++++++++ AudioQnA/front_end/svelte.config.js | 14 ++++++++++++++ AudioQnA/front_end/vite.config.ts | 14 ++++++++++++++ .../langchain/docker/codetrans-app/prompts.py | 14 ++++++++++++++ 41 files changed, 607 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ChatQnA.yml b/.github/workflows/ChatQnA.yml index 57796ff5b..42e99bb36 100644 --- a/.github/workflows/ChatQnA.yml +++ b/.github/workflows/ChatQnA.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel 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. + name: ChatQnA-test on: diff --git a/.github/workflows/CodeGen.yml b/.github/workflows/CodeGen.yml index 8e1f3f0b5..5b9e0de59 100644 --- a/.github/workflows/CodeGen.yml +++ b/.github/workflows/CodeGen.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel 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. + name: CodeGen-test on: diff --git a/.github/workflows/DocSum.yml b/.github/workflows/DocSum.yml index a5c797686..60aab19bc 100644 --- a/.github/workflows/DocSum.yml +++ b/.github/workflows/DocSum.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel 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. + name: DocSum-test on: diff --git a/.github/workflows/SearchQnA.yml b/.github/workflows/SearchQnA.yml index 632a4d085..5e3661832 100644 --- a/.github/workflows/SearchQnA.yml +++ b/.github/workflows/SearchQnA.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel 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. + name: SearchQnA-test on: diff --git a/.github/workflows/VisualQnA.yml b/.github/workflows/VisualQnA.yml index c0790a739..20bf05822 100644 --- a/.github/workflows/VisualQnA.yml +++ b/.github/workflows/VisualQnA.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel 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. + name: VisualQnA-test on: diff --git a/.github/workflows/code-scan.yml b/.github/workflows/code-scan.yml index 46e4ecc75..8cfff0cdd 100644 --- a/.github/workflows/code-scan.yml +++ b/.github/workflows/code-scan.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel 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. + name: Code Scan on: diff --git a/.github/workflows/scripts/codeScan/bandit.sh b/.github/workflows/scripts/codeScan/bandit.sh index 2b2f78448..f6315e811 100644 --- a/.github/workflows/scripts/codeScan/bandit.sh +++ b/.github/workflows/scripts/codeScan/bandit.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright (c) 2024 Intel 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. + source /GenAIExamples/.github/workflows/scripts/change_color pip install bandit==1.7.8 log_dir=/GenAIExamples/.github/workflows/scripts/codeScan diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7a3aa09b2..2a780884e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,10 +24,7 @@ repos: rev: v1.5.5 hooks: - id: insert-license - files: | - (?x)^( - (ChatQnA|CodeGen|DocSum|SearchQnA|VisualQnA)/.*(py|yaml|yml|sh)| - )$ + files: (.*\.(py|yaml|yml|sh))$ args: [ --license-filepath=.github/license_template.txt, @@ -36,10 +33,7 @@ repos: --skip-license-insertion-comment=Copyright, ] - id: insert-license - files: | - (?x)^( - (ChatQnA|CodeGen|DocSum|SearchQnA|VisualQnA)/.*(ts|js)| - )$ + files: (.*\.(ts|js))$ args: [ --license-filepath=.github/license_template.txt, @@ -49,10 +43,7 @@ repos: --comment-style=//, ] - id: insert-license - files: | - (?x)^( - (ChatQnA|CodeGen|DocSum|SearchQnA|VisualQnA)/.*(html|svelte)| - )$ + files: (.*\.(html|svelte))$ args: [ --license-filepath=.github/license_template.txt, diff --git a/AudioQnA/front_end/src/app.d.ts b/AudioQnA/front_end/src/app.d.ts index 52e4acd95..fc8e051bb 100644 --- a/AudioQnA/front_end/src/app.d.ts +++ b/AudioQnA/front_end/src/app.d.ts @@ -1,3 +1,17 @@ +// Copyright (c) 2024 Intel 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. + // See: https://kit.svelte.dev/docs/types#app // import { Result} from "neverthrow"; diff --git a/AudioQnA/front_end/src/app.html b/AudioQnA/front_end/src/app.html index ba848b25e..8d331f50f 100644 --- a/AudioQnA/front_end/src/app.html +++ b/AudioQnA/front_end/src/app.html @@ -1,3 +1,19 @@ + + diff --git a/AudioQnA/front_end/src/lib/assets/icons/svelte/arrow-path-icon.svelte b/AudioQnA/front_end/src/lib/assets/icons/svelte/arrow-path-icon.svelte index 758e665df..fc7b470a3 100644 --- a/AudioQnA/front_end/src/lib/assets/icons/svelte/arrow-path-icon.svelte +++ b/AudioQnA/front_end/src/lib/assets/icons/svelte/arrow-path-icon.svelte @@ -1,3 +1,19 @@ + + diff --git a/AudioQnA/front_end/src/lib/components/topnavigation/Index.svelte b/AudioQnA/front_end/src/lib/components/topnavigation/Index.svelte index 8e0a81aca..3b5f36988 100644 --- a/AudioQnA/front_end/src/lib/components/topnavigation/Index.svelte +++ b/AudioQnA/front_end/src/lib/components/topnavigation/Index.svelte @@ -1,3 +1,19 @@ + + diff --git a/AudioQnA/front_end/src/lib/modules/chat/chat-audio.svelte b/AudioQnA/front_end/src/lib/modules/chat/chat-audio.svelte index 80d4b691f..4b5d0b5c2 100644 --- a/AudioQnA/front_end/src/lib/modules/chat/chat-audio.svelte +++ b/AudioQnA/front_end/src/lib/modules/chat/chat-audio.svelte @@ -1,3 +1,19 @@ + +