8000 Add copyrights to IBM source files by rofrano · Pull Request #51 · codellm-devkit/python-sdk · GitHub
[go: up one dir, main page]

Skip to content

Add copyrights to IBM source files #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions cldk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
Core package
"""

from .core import CLDK

__all__ = ["CLDK"]
20 changes: 20 additions & 0 deletions cldk/analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
Analysis package
"""


from .call_graph import CallGraph
from .program_dependence_graph import ProgramDependenceGraph
Expand Down
21 changes: 21 additions & 0 deletions cldk/analysis/analysis_level.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
AnalysisLevel module
"""

from enum import Enum


class AnalysisLevel(str, Enum):
"""Analysis levels"""

symbol_table = "symbol-table"
call_graph = "call-graph"
program_dependency_graph = "program-dependency-graph"
Expand Down
19 changes: 19 additions & 0 deletions cldk/analysis/c/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
C package
"""
20 changes: 20 additions & 0 deletions cldk/analysis/c/treesitter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
Treesitter package
"""

from cldk.analysis.c.treesitter.c_sitter import CSitter

__all__ = ["CSitter"]
20 changes: 20 additions & 0 deletions cldk/analysis/c/treesitter/c_sitter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
CSitter module
"""

from typing import List
from tree_sitter import Language, Parser, Query, Node
import tree_sitter_c as tsc
Expand Down
20 changes: 20 additions & 0 deletions cldk/analysis/call_graph.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
CallGraph module
"""

from abc import ABC, abstractmethod


Expand Down
19 changes: 19 additions & 0 deletions cldk/analysis/go/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
Go package
"""
20 changes: 20 additions & 0 deletions cldk/analysis/go/treesitter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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 r F987 equired 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.
################################################################################

"""
Treesitter package
"""

from cldk.analysis.go.treesitter.go_sitter import GoSitter

__all__ = ["GoSitter"]
20 changes: 20 additions & 0 deletions cldk/analysis/go/treesitter/go_sitter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
GoSitter module
"""

from typing import List
from tree_sitter import Language, Parser, Query, Node
import tree_sitter_go as tsgo
Expand Down
20 changes: 20 additions & 0 deletions cldk/analysis/java/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
Java package
"""

from .java import JavaAnalysis

__all__ = ["JavaAnalysis"]
20 changes: 20 additions & 0 deletions cldk/analysis/java/codeanalyzer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
Codeanalyzer package
"""

from .codeanalyzer import JCodeanalyzer


Expand Down
19 changes: 19 additions & 0 deletions cldk/analysis/java/codeanalyzer/bin/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
Bin package
"""
20 changes: 20 additions & 0 deletions cldk/analysis/java/codeanalyzer/codeanalyzer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
Codeanalyzer module
"""

import re
import json
import shlex
Expand Down
19 changes: 19 additions & 0 deletions cldk/analysis/java/codeanalyzer/jar/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
Jar package
"""
20 changes: 20 additions & 0 deletions cldk/analysis/java/codeql/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
################################################################################
# Copyright IBM Corporation 2024
#
# 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.
################################################################################

"""
CodeQL package
"""

from .codeql import JCodeQL

__all__ = ["JCodeQL"]
Loading
0