diff --git a/.github/workflows/ChatQnA.yml b/.github/workflows/ChatQnA.yml index 57796ff5..42e99bb3 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 8e1f3f0b..5b9e0de5 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 a5c79768..60aab19b 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 632a4d08..5e366183 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 c0790a73..20bf0582 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 46e4ecc7..8cfff0cd 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 2b2f7844..f6315e81 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 7a3aa09b..2a780884 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 52e4acd9..fc8e051b 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 ba848b25..8d331f50 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 758e665d..fc7b470a 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 8e0a81ac..3b5f3698 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 80d4b691..4b5d0b5c 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 @@ + +