diff --git a/.github/workflows/mkdocs-deploy.yml b/.github/workflows/mkdocs-deploy.yml
deleted file mode 100644
index f17ea8d..0000000
--- a/.github/workflows/mkdocs-deploy.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: mkdocs-deploy
-on:
- push:
- branches:
- - docs
-
-permissions:
- contents: write
-jobs:
- deploy:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Configure Git Credentials
- run: |
- git config --global user.name 'GitHub Actions'
- git config --global user.email 'actions@github.com'
- - name: Set up Python 3.11
- uses: actions/setup-python@v5
- with:
- python-version: "3.11"
- - name: Install Dependencies
- run: pip install mkdocs-material[imaging] mkdocs-autorefs mkdocs-get-deps mkdocs-material-extensions mkdocstrings mkdocstrings-python mkdocs-git-revision-date-localized-plugin
- - name: Deploy docs
- run: mkdocs gh-deploy --force --verbose
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
deleted file mode 100644
index b2e9c30..0000000
--- a/.github/workflows/python-publish.yml
+++ /dev/null
@@ -1,52 +0,0 @@
-# This workflow will upload a Python Package to PyPi when a Release is created
-name: Publish Python Package
-
-on:
- release:
- types: [published]
-
-permissions:
- contents: read
-
-env:
- PYPI_USERNAME: __token__
- PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
-
-jobs:
- publish:
- name: Publish to PyPi
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout the code
- uses: actions/checkout@v4
-
- - name: Set up Python 3.11
- uses: actions/setup-python@v5
- with:
- python-version: "3.11"
-
- - name: Install Poetry
- run: |
- curl -sSL https://install.python-poetry.org | python - -y
- echo "$HOME/.local/bin" >> $GITHUB_PATH
-
- - name: Install Python package dependencies
- run: |
- poetry config virtualenvs.create false
- poetry install --sync --no-interaction
-
- - name: Inject the latest Code Analyzer JAR
- run: |
- CODE_ANALYZER_URL=$(curl -s https://api.github.com/repos/IBM/codenet-minerva-code-analyzer/releases/latest | jq -r '.assets[] | .browser_download_url')
- echo "Downloading: " $CODE_ANALYZER_URL
- wget -q $CODE_ANALYZER_URL
- echo "Moving codeanalyzer jar to:" ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/
- mv codeanalyzer-*.jar ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/
-
- - name: Build package
- run: poetry build
-
- - name: Publish package distributions to PyPI
- run: poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD
-
\ No newline at end of file
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 377b062..0dda56a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -12,46 +12,56 @@ jobs:
release:
runs-on: ubuntu-latest
- env:
- JAVA_HOME: ${{ github.workspace }}/graalvm-ce-java11-22.3.3
-
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
with:
python-version: '3.11'
- - name: Set up JDK 11 from GraalVM
- run: |
- echo "${{ env.JAVA_HOME }}/bin" >> $GITHUB_PATH
- wget https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.3/graalvm-ce-java11-linux-amd64-22.3.3.tar.gz
- tar -xvzf graalvm-ce-java11-linux-amd64-22.3.3.tar.gz
- ${{ env.JAVA_HOME }}/bin/gu install native-image
+ - name: Set up GraalVM CE Java 11
+ uses: graalvm/setup-graalvm@v1
+ with:
+ java-version: '21'
+ distribution: 'graalvm'
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ native-image-job-reports: 'true'
+
+ - name: Install jq
+ run: sudo apt-get update && sudo apt-get install -y jq
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "${HOME}/.local/bin" >> $GITHUB_PATH
+ export PATH="${HOME}/.local/bin:$PATH"
- - name: Configure Poetry
- run: poetry config virtualenvs.in-project true
-
- - name: Install Dependencies
- run: poetry install --no-root
+ - name: Install Python package dependencies
+ run: |
+ poetry config virtualenvs.create false
+ poetry install --sync --no-interaction
- name: Run Tests
- id: build
- continue-on-error: true # Allow workflow continuation on failure
+ id: test
+ continue-on-error: true
run: poetry run make test
- name: Delete tag on failure
- if: steps.build.outcome != 'success'
+ if: steps.test.conclusion == 'failure'
run: |
+ echo "Tests failed. Deleting tag ${GITHUB_REF#refs/tags/}..."
git push --delete origin ${GITHUB_REF#refs/tags/}
- exit 1 # Fail the workflow
+ exit 1
+
+ - name: Inject the latest Code Analyzer JAR
+ run: |
+ CODE_ANALYZER_URL=$(curl -s https://api.github.com/repos/codellm-devkit/codeanalyzer-java/releases/latest | jq -r '.assets[] | select(.name | endswith(".jar")) | .browser_download_url')
+ echo "Downloading: $CODE_ANALYZER_URL"
+ wget -q "$CODE_ANALYZER_URL"
+ mkdir -p ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/
+ mv codeanalyzer-*.jar ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/
- name: Build Package
run: poetry build
@@ -72,3 +82,6 @@ jobs:
body: ${{ steps.gen_changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Publish package distributions to PyPI
+ run: poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
diff --git a/.github/workflows/release_config.json b/.github/workflows/release_config.json
index f0d4b5b..200120c 100644
--- a/.github/workflows/release_config.json
+++ b/.github/workflows/release_config.json
@@ -1,36 +1,62 @@
{
"categories": [
+ {
+ "title": "## ✨ Release",
+ "labels": [
+ "release"
+ ]
+ },
{
"title": "## 🚀 Features",
- "labels": ["kind/feature", "enhancement"]
+ "labels": [
+ "kind/feature",
+ "enhancement"
+ ]
},
{
"title": "## 🐛 Fixes",
- "labels": ["fix", "bug"]
+ "labels": [
+ "fix",
+ "bug"
+ ]
},
{
"title": "## ♻️ Refactoring",
- "labels": ["refactoring"]
+ "labels": [
+ "refactoring"
+ ]
},
{
"title": "## ⚡️ Performance Improvements",
- "labels": ["performance"]
+ "labels": [
+ "performance"
+ ]
},
{
"title": "## \uD83D\uDCDA Documentation",
- "labels": ["documentation", "doc"]
+ "labels": [
+ "documentation",
+ "doc"
+ ]
},
{
"title": "## \uD83D\uDEA6 Tests",
- "labels": ["test"]
+ "labels": [
+ "test"
+ ]
},
{
"title": "## \uD83D\uDEE0 Other Updates",
- "labels": ["other", "kind/dependency-change"]
+ "labels": [
+ "other",
+ "kind/dependency-change"
+ ]
},
{
"title": "## 🚨 Breaking Changes",
- "labels": ["breaking"]
+ "labels": [
+ "breaking"
+ ]
}
],
"ignore_labels": [
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..21c4bd5
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,66 @@
+# Contributing to Codellm-Devkit
+
+Thank you for your interest in contributing to the Codellm-Devkit (CLDK)! Here we provide guidelines for contributing to any repository in the codellm-devkit organization.
+
+## How to Contribute
+
+### Issues and Discussions
+- For bugs and actionable items, please prefer creating an issue in the relevant repository
+- For open-ended or design discussions _specifically related to the specification_, use our [specification discussions](https://github.com/codellm-devkit/specification/discussions)
+- For other general discussions that are not suitable as issues, use our [organization discussions](https://github.com/orgs/codellm-devkit/discussions)
+
+In all cases, please check for duplicates before creating new issues or discussions!
+
+### Pull Requests
+We welcome PRs across all our repositories! When submitting:
+- Fork the repository
+- Follow existing code style
+- Include tests where applicable
+- Update documentation as needed
+- Link related issues
+
+## Development Guidelines
+
+### Code Quality
+- Follow the repository's established patterns
+- Include appropriate documentation
+- Add tests for new functionality
+- Handle errors appropriately
+
+### Documentation
+- Keep READMEs current
+- Document configuration options
+- Provide clear examples
+- Include setup instructions
+
+### Security
+- Follow security best practices
+- Implement proper input validation
+- Document security considerations
+
+## Getting Started
+
+1. Fork the repository
+2. Clone your fork:
+ ```bash
+ git clone https://github.com/your-username/repository-name.git
+ ```
+3. Create a feature branch:
+ ```bash
+ git checkout -b my-feature
+ ```
+4. Make your changes and commit:
+ ```bash
+ git commit -m "Description of changes"
+ ```
+5. Push and create a Pull Request
+
+## Code of Conduct
+
+Please note that this project is released with a [Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
+
+## License
+
+By contributing, you agree that your contributions will be licensed under the Apache 2.0 License.
+
+Thank you for contributing to Codellm-Devkit!
\ No newline at end of file
diff --git a/README.md b/README.md
index 383c38a..a13a635 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,12 @@
-
-
-
+
+
+
-
+
+
+
+
@@ -54,257 +57,195 @@ Codellm-Devkit is an ongoing project, developed at IBM Research.
For any questions, feedback, or suggestions, please contact the authors:
-| Name | Email |
-| ---- | ----- |
-| Rahul Krishna | [i.m.ralk@gmail.com](mailto:imralk+oss@gmail.com) |
-| Rangeet Pan | [rangeet.pan@ibm.com](mailto:rangeet.pan@gmail.com) |
-| Saurabh Sihna | [sinhas@us.ibm.com](mailto:sinhas@us.ibm.com) |
+| Name | Email |
+| ------------- | --------------------------------------------------- |
+| Rahul Krishna | [i.m.ralk@gmail.com](mailto:imralk+oss@gmail.com) |
+| Rangeet Pan | [rangeet.pan@ibm.com](mailto:rangeet.pan@gmail.com) |
+| Saurabh Sihna | [sinhas@us.ibm.com](mailto:sinhas@us.ibm.com) |
## Table of Contents
- [Contact](#contact)
- [Table of Contents](#table-of-contents)
+- [Quick Start](#quick-start)
- [Architectural and Design Overview](#architectural-and-design-overview)
-- [Quick Start: Example Walkthrough](#quick-start-example-walkthrough)
- - [Prerequisites](#prerequisites)
- - [Step 1: Set up an Ollama server](#step-1--set-up-an-ollama-server)
- - [Pull the latest version of Granite 8b instruct model from ollama](#pull-the-latest-version-of-granite-8b-instruct-model-from-ollama)
- - [Step 2: Install CLDK](#step-2--install-cldk)
- - [Step 3: Build a code summarization pipeline](#step-3--build-a-code-summarization-pipeline)
+ - [1. **Data Models**](#1-data-models)
+ - [2. **Analysis Backends**](#2-analysis-backends)
+ - [Java](#java)
+ - [Python](#python)
+ - [C](#c)
+ - [3. **Utilities and Extensions**](#3-utilities-and-extensions)
+- [Contributing](#contributing)
- [Publication (papers and blogs related to CLDK)](#publication-papers-and-blogs-related-to-cldk)
-## Architectural and Design Overview
-
-Below is a very high-level overview of the architectural of CLDK:
+## Quick Start
-```mermaid
-graph TD
-User <--> A[CLDK]
- A --> 15[Retrieval ‡]
- A --> 16[Prompting ‡]
- A[CLDK] <--> B[Languages]
- B --> C[Java, Python, Go ‡, C ‡, JavaScript ‡, TypeScript ‡, Rust ‡]
- C --> D[Data Models]
- D --> 13{Pydantic}
- 13 --> 7
- C --> 7{backends}
- 7 <--> 9[WALA]
- 9 <--> 14[Analysis]
- 7 <--> 10[Tree-sitter]
- 10 <--> 14[Analysis]
- 7 <--> 11[LLVM ‡]
- 11 <--> 14[Analysis]
- 7 <--> 12[CodeQL ‡]
- 12 <--> 14[Analysis]
-
-
-
-X[‡ Yet to be implemented]
-```
+In this section, we will walk through a simple example to demonstrate how to get started with CLDK.
-The user interacts by invoking the CLDK API. The CLDK API is responsible for handling the user requests and delegating them to the appropriate language-specific modules.
+1. Install the CLDK package using pip:
+
+ ```bash
+ pip install cldk
+ ```
-Each language comprises of two key components: data models and backends.
-1. **Data Models:** These are high level abstractions that represent the various language constructs and componentes in a structured format using pydantic. This confers a high degree of flexibility and extensibility to the models as well as allowing for easy accees of various data components via a simple dot notation. In addition, the data models are designed to be easily serializable and deserializable, making it easy to store and retrieve data from various sources.
+2. To use CLDK, just import the `CLDK` class from the `cldk` module:
+
+ ```python
+ from cldk import CLDK
+ ```
-2. **Analysis Backends:** These are the components that are responsible for interfacing with the various program analysis tools. The core backends are Treesitter, Javaparse, WALA, LLVM, and CodeQL. The backends are responsible for handling the user requests and delegating them to the appropriate analysis tools. The analysis tools perfrom the requisite analysis and return the results to the user. The user merely calls one of several high-level API functions such as `get_method_body`, `get_method_signature`, `get_call_graph`, etc. and the backend takes care of the rest.
+3. Next, to select a language for analysis, create an instance of the `CLDK` class with the desired language:
- Some langugages may have multiple backends. For example, Java has WALA, Javaparser, Treesitter, and CodeQL backends. The user has freedom to choose the backend that best suits their needs.
+ ```python
+ cldk = CLDK(language="java") # For Java analysis
+ ```
-We are currently working on implementing the retrieval and prompting components. The retrieval component will be responsible for retrieving the relevant code snippets from the codebase for RAG usecases. The prompting component will be responsible for generating the prompts for the CodeLLMs using popular prompting frameworks such as `PDL`, `Guidance`, or `LMQL`.
+4. Create an analysis object over the Java application by providing the path to the project:
-## Quick Start: Example Walkthrough
+ ```python
+ analysis = cldk.analysis(project_path="/path/to/your/java/project")
+ ```
+ This will initialize the analysis pipeline for the specified project. The analysis engine, in the backend, will parse the java project and build a symbol table representing the program structure and return the artifact to CLDK which will map it to the CLDK data schema (`cldk/models/java/models.py`).
-In this section, we will walk through a simple example to demonstrate how to use CLDK. We will:
+ Depending on the size of the project, this step may take some time as it involves parsing, building, and statically analyzing the codebase.
-* Set up a local ollama server to interact with CodeLLMs
-* Build a simple code summarization pipeline for a Java and a Python application.
+5. Once the analysis is complete, you can call the various methods provided by the `analysis` object to interact with the analyzed codebase. For example, you can retrieve method bodies, signatures, and call graphs.
-### Prerequisites
+ ```python
+ # Iterate over all the files in the project
+ from CLDK import cldk
-Before we begin, make sure you have the following prerequisites installed:
+ analysis: JavaAnalysis = CLDK(language="java").analysis(project_path="/path/to/your/java/project")
+
+ all_files = [file_path for file_path, class_file in analysis.get_symbol_table().items()]
- * Python 3.11 or later
- * Ollama v0.3.4 or later
+ # Process each file
+ for file_path in all_files:
+ # Additional processing can be done here
+ pass
+ ```
-If you are using [Visual Studio Code](https://code.visualstudio.com) with the [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension along with [Docker Desktop](https://www.docker.com/products/docker-desktop) or [Rancher Desktop](https://w3.ibm.com/w3publisher/docker-desktop/rancher-desktop), this project contains a Dev Container environment for you to develop in.
+ Likewise, you can also retrieve method bodies.
-Use the following commands:
+ ```python
+ from cldk import CLDK
-```bash
-git clone https://github.com/codellm-devkit/python-sdk.git
-cd python-dsk
-code .
-```
+ analysis: JavaAnalysis = CLDK(language="java").analysis(project_path="/path/to/your/java/project")
+ for class_file in analysis.get_symbol_table().values():
+ for type_name, type_declaration in class_file.type_declarations.items():
+ for method in type_declaration.callable_declarations.values():
+ method_body = analysis.get_method_body(method.declaration)
+ print(f"Method: {method.declaration}\nBody: {method_body}\n")
+ ```
-When Visual Studio Code starts, select the option to **Reopen in Container** and a development environment with Python, Java, C, and Rust will be available to you. See [Developing inside a Container](https://code.visualstudio.com/docs/devcontainers/containers) for more detailed instructions.
+## Architectural and Design Overview
-### Step 1: Set up an Ollama server
+Below is a very high-level overview of the architectural of CLDK:
-If don't already have ollama, please download and install it from here: [Ollama](https://ollama.com/download).
-Once you have ollama, start the server and make sure it is running.
+```mermaid
+graph TD
+User <--> A[CLDK]
-If you're on MacOS, Linux, or WSL, you can check to make sure the server is running by running the following command:
+ A --> A1[cldk.analysis]
+
+ A1 --> A2[cldk.analysis.java]
+ A2 --> A3[codeanalyzer → WALA]
+ A3 --> JA[Analysis]
+
+ A1 --> A4[cldk.analysis.c]
+ A4 --> A5[clang]
+ A5 --> CA[Analysis]
+
+ A1 --> A6[cldk.analysis.python]
+ A6 --> A7[treesitter_python]
+ A7 --> PA[Analysis]
+
+ A1 --> A8[cldk.analysis.commons]
+ A8 --> LSP[LSP]
+ A8 --> TS[treesitter base]
+ A8 --> TU[treesitter utils]
+
+ A --> M[cldk.models]
+ M --> MJ[Java models]
+ M --> MP[Python models]
+ M --> MC[C models]
+ M --> MT[treesitter models]
+
+ A --> U[cldk.utils]
+ U --> UX[exceptions]
+ U --> UL[logging]
+ U --> US[sanitization]
+ US --> USJ[java sanitization]
-```bash
-sudo systemctl status ollama
```
-You should see an output similar to the following:
-
-```bash
-➜ sudo systemctl status ollama
-● ollama.service - Ollama Service
- Loaded: loaded (/etc/systemd/system/ollama.service; enabled; preset: enabled)
- Active: active (running) since Sat 2024-08-10 20:39:56 EDT; 17s ago
- Main PID: 23069 (ollama)
- Tasks: 19 (limit: 76802)
- Memory: 1.2G (peak: 1.2G)
- CPU: 6.745s
- CGroup: /system.slice/ollama.service
- └─23069 /usr/local/bin/ollama serve
-```
+The user interacts with the CLDK API via the top-level `CLDK` interface exposed in `core.py`. This interface is responsible for configuring the analysis session, initializing language-specific pipelines, and exposing a high-level, language-agnostic API for interacting with program structure and semantics.
-If not, you may have to start the server manually. You can do this by running the following command:
+CLDK is currently implemented with full support for **Java**, **Python**, and **C**. Each language module is structured around two core components: **data models** and **analysis backends**.
-```bash
-sudo systemctl start ollama
-```
-#### Pull the latest version of Granite 8b instruct model from ollama
+### 1. **Data Models**
-To pull the latest version of the Granite 8b instruct model from ollama, run the following command:
+Each supported language has its own set of Pydantic-based data models, located in the `cldk.models` module (e.g., `cldk.models.java`, `cldk.models.python`, `cldk.models.c`). These models provide:
-```bash
-ollama pull granite-code:8b-instruct
-```
+- **Structured representations** of language elements such as classes, methods, annotations, fields, and statements.
+- **Typed access** using dot notation (e.g., `method.return_type` or `klass.methods`), promoting developer productivity.
+- **Serialization support** to and from JSON and other formats, enabling easy storage, inspection, and exchange of analysis results.
+- **Consistency** across languages via shared modeling conventions and base abstractions, including a common treesitter schema.
-Check to make sure the model was successfully pulled by running the following command:
-```bash
-ollama run granite-code:8b-instruct 'Write a function to print hello world in python'
-```
-The output should be similar to the following:
+### 2. **Analysis Backends**
-```
-➜ ollama run granite-code:8b-instruct 'Write a function to print hello world in python'
+Each language has a dedicated analysis backend implemented under `cldk.analysis.`, responsible for coordinating concrete analysis steps using language-specific tooling:
-def say_hello():
- print("Hello World!")
-```
+#### Java
+- **Backend:** `cldk.analysis.java`
+- **Tools:** JavaParser, WALA (via CodeAnalyzer JAR)
+- **Capabilities:** Bytecode-level call graphs, symbol resolution, method declarations, type hierarchies
-### Step 2: Install CLDK
+#### Python
+- **Backend:** `cldk.analysis.python`
+- **Tools:** Tree-sitter
+- **Capabilities:** Lightweight structural parsing, method/function boundaries, control/data flow approximation
-You may install the latest version of CLDK from [PyPi](https://pypi.org/project/cldk/):
+#### C
+- **Backend:** `cldk.analysis.c`
+- **Tools:** Clang frontend
+- **Capabilities:** Structural symbol resolution and method/function layout using Clang AST
-```python
-pip install cldk
-```
+All analysis backends share common infrastructure defined in `cldk.analysis.commons`, including:
+- **Tree-sitter utilities** (`treesitter_java`, `treesitter_python`)
+- **LSP integration hooks**
+- **Generic model builders and transformation utilities**
-Once CLDK is installed, you can import it into your Python code:
+Backends are internally orchestrated such that the user does not interact with them directly. Instead, they simply call high-level SDK methods such as:
```python
-from cldk import CLDK
+get_method_body(...)
+get_method_signature(...)
+get_call_graph(...)
```
-### Step 3: Build a code summarization pipeline
-
-Now that we have set up the ollama server and installed CLDK, we can build a simple code summarization pipeline for a Java application.
-
-1. Let's download a sample Java (apache-commons-cli):
+CLDK handles tool coordination, language resolution, parsing, transformation, and data marshalling under the hood.
- * Download and unzip the sample Java application:
- ```bash
- wget https://github.com/apache/commons-cli/archive/refs/tags/rel/commons-cli-1.7.0.zip -O commons-cli-1.7.0.zip && unzip commons-cli-1.7.0.zip
- ```
- * Record the path to the sample Java application:
- ```bash
- export JAVA_APP_PATH=/path/to/commons-cli-1.7.0
- ```
+---
-Below is a simple code summarization pipeline for a Java application using CLDK. It does the following things:
+### 3. **Utilities and Extensions**
-* Creates a new instance of the CLDK class (see comment `# (1)`)
-* Creates an analysis object over the Java application (see comment `# (2)`)
-* Iterates over all the files in the project (see comment `# (3)`)
-* Iterates over all the classes in the file (see comment `# (4)`)
-* Iterates over all the methods in the class (see comment `# (5)`)
-* Gets the code body of the method (see comment `# (6)`)
-* Initializes the treesitter utils for the class file content (see comment `# (7)`)
-* Sanitizes the class for analysis (see comment `# (8)`)
-* Formats the instruction for the given focal method and class (see comment `# (9)`)
-* Prompts the local model on Ollama (see comment `# (10)`)
-* Prints the instruction and LLM output (see comment `# (11)`)
+The `cldk.utils` module provides additional support functionality:
+- **Exception handling utilities**
+- **Logging configuration**
+- **Sanitization logic** (especially for Java, via `sanitization.java.treesitter_sanitizer`)
-```python
-# code_summarization_for_java.py
-
-from cldk import CLDK
-
-
-def format_inst(code, focal_method, focal_class):
- """
- Format the instruction for the given focal method and class.
- """
- inst = f"Question: Can you write a brief summary for the method `{focal_method}` in the class `{focal_class}` below?\n"
-
- inst += "\n"
- inst += f"```{language}\n"
- inst += code
- inst += "```" if code.endswith("\n") else "\n```"
- inst += "\n"
- return inst
+These modules ensure robustness and clean error management across backend interactions and user API layers.
-def prompt_ollama(message: str, model_id: str = "granite-code:8b-instruct") -> str:
- """Prompt local model on Ollama"""
- response_object = ollama.generate(model=model_id, prompt=message)
- return response_object["response"]
+## Contributing
+We invite contributors of all levels of experience! We would love to see you get involved in the project. See the [CONTRIBUTING](./CONTRIBUTING.md) guide to get started.
-if __name__ == "__main__":
- # (1) Create a new instance of the CLDK class
- cldk = CLDK(language="java")
-
- # (2) Create an analysis object over the java application
- analysis = cldk.analysis(project_path=os.getenv("JAVA_APP_PATH"))
-
- # (3) Iterate over all the files in the project
- for file_path, class_file in analysis.get_symbol_table().items():
- class_file_path = Path(file_path).absolute().resolve()
- # (4) Iterate over all the classes in the file
- for type_name, type_declaration in class_file.type_declarations.items():
- # (5) Iterate over all the methods in the class
- for method in type_declaration.callable_declarations.values():
-
- # (6) Get code body of the method
- code_body = class_file_path.read_text()
-
- # (7) Initialize the treesitter utils for the class file content
- tree_sitter_utils = cldk.tree_sitter_utils(source_code=code_body)
-
- # (8) Sanitize the class for analysis
- sanitized_class = tree_sitter_utils.sanitize_focal_class(method.declaration)
-
- # (9) Format the instruction for the given focal method and class
- instruction = format_inst(
- code=sanitized_class,
- focal_method=method.declaration,
- focal_class=type_name,
- )
-
- # (10) Prompt the local model on Ollama
- llm_output = prompt_ollama(
- message=instruction,
- model_id="granite-code:20b-instruct",
- )
-
- # (11) Print the instruction and LLM output
- print(f"Instruction:\n{instruction}")
- print(f"LLM Output:\n{llm_output}")
-```
### Publication (papers and blogs related to CLDK)
1. Krishna, Rahul, Rangeet Pan, Raju Pavuluri, Srikanth Tamilselvam, Maja Vukovic, and Saurabh Sinha. "[Codellm-Devkit: A Framework for Contextualizing Code LLMs with Program Analysis Insights.](https://arxiv.org/pdf/2410.13007)" arXiv preprint arXiv:2410.13007 (2024).
diff --git a/cldk/analysis/commons/treesitter/treesitter_java.py b/cldk/analysis/commons/treesitter/treesitter_java.py
index 3c0033d..a7f68ad 100644
--- a/cldk/analysis/commons/treesitter/treesitter_java.py
+++ b/cldk/analysis/commons/treesitter/treesitter_java.py
@@ -26,6 +26,9 @@
logger = logging.getLogger(__name__)
+LANGUAGE: Language = Language(tsjava.language())
+PARSER: Parser = Parser(LANGUAGE)
+
# pylint: disable=too-many-public-methods
class TreesitterJava:
@@ -34,8 +37,7 @@ class TreesitterJava:
"""
def __init__(self) -> None:
- self.language: Language = Language(tsjava.language())
- self.parser: Parser = Parser(self.language)
+ pass
def method_is_not_in_class(self, method_name: str, class_body: str) -> bool:
"""Check if a method is in a class.
@@ -78,7 +80,7 @@ def syntax_error(node):
return False
- tree = self.parser.parse(bytes(code, "utf-8"))
+ tree = PARSER.parse(bytes(code, "utf-8"))
if tree is not None:
return not syntax_error(tree.root_node)
return False
@@ -92,7 +94,7 @@ def get_raw_ast(self, code: str) -> Tree:
Returns:
Tree: the raw AST
"""
- return self.parser.parse(bytes(code, "utf-8"))
+ return PARSER.parse(bytes(code, "utf-8"))
def get_all_imports(self, source_code: str) -> Set[str]:
"""Get a list of all the imports in a class.
@@ -103,8 +105,8 @@ def get_all_imports(self, source_code: str) -> Set[str]:
Returns:
Set[str]: A set of all the imports in the class.
"""
- import_declerations: Captures = self.frame_query_and_capture_output(query="(import_declaration (scoped_identifier) @name)", code_to_process=source_code)
- return {capture.node.text.decode() for capture in import_declerations}
+ import_declarations: Captures = self.frame_query_and_capture_output(query="(import_declaration (scoped_identifier) @name)", code_to_process=source_code)
+ return {capture.node.text.decode() for capture in import_declarations}
# TODO: This typo needs to be fixed (i.e., package not pacakge)
def get_pacakge_name(self, source_code: str) -> str:
@@ -176,8 +178,8 @@ def frame_query_and_capture_output(self, query: str, code_to_process: str) -> Ca
code_to_process : str
The code to process.
"""
- framed_query: Query = self.language.query(query)
- tree = self.parser.parse(bytes(code_to_process, "utf-8"))
+ framed_query: Query = LANGUAGE.query(query)
+ tree = PARSER.parse(bytes(code_to_process, "utf-8"))
return Captures(framed_query.captures(tree.root_node))
def get_method_name_from_declaration(self, method_name_string: str) -> str:
@@ -424,7 +426,7 @@ def get_lexical_tokens(self, code: str, filter_by_node_type: List[str] | None =
List of lexical tokens
"""
- tree = self.parser.parse(bytes(code, "utf-8"))
+ tree = PARSER.parse(bytes(code, "utf-8"))
root_node = tree.root_node
lexical_tokens = []
diff --git a/cldk/analysis/commons/treesitter/treesitter_python.py b/cldk/analysis/commons/treesitter/treesitter_python.py
index d423ab9..a9f401f 100644
--- a/cldk/analysis/commons/treesitter/treesitter_python.py
+++ b/cldk/analysis/commons/treesitter/treesitter_python.py
@@ -28,6 +28,9 @@
from cldk.analysis.commons.treesitter.models import Captures
from cldk.analysis.commons.treesitter.utils.treesitter_utils import TreeSitterUtils
+LANGUAGE: Language = Language(tspython.language())
+PARSER: Parser = Parser(LANGUAGE)
+
class TreesitterPython:
"""
@@ -35,8 +38,6 @@ class TreesitterPython:
"""
def __init__(self) -> None:
- self.language: Language = Language(tspython.language())
- self.parser: Parser = Parser(self.language)
self.utils: TreeSitterUtils = TreeSitterUtils()
def is_parsable(self, code: str) -> bool:
@@ -62,7 +63,7 @@ def syntax_error(node):
return False
- tree = self.parser.parse(bytes(code, "utf-8"))
+ tree = PARSER.parse(bytes(code, "utf-8"))
if tree is not None:
return not syntax_error(tree.root_node)
return False
@@ -76,7 +77,7 @@ def get_raw_ast(self, code: str) -> Tree:
Returns:
Tree: the raw AST
"""
- return self.parser.parse(bytes(code, "utf-8"))
+ return PARSER.parse(bytes(code, "utf-8"))
def get_all_methods(self, module: str) -> List[PyMethod]:
"""
@@ -163,8 +164,8 @@ def get_all_imports(self, module: str) -> List[str]:
List[str]: List of imports
"""
import_list = []
- captures_from_import: Captures = self.utils.frame_query_and_capture_output(self.parser, self.language, "(((import_from_statement) @imports))", module)
- captures_import: Captures = self.utils.frame_query_and_capture_output(self.parser, self.language, "(((import_statement) @imports))", module)
+ captures_from_import: Captures = self.utils.frame_query_and_capture_output(PARSER, LANGUAGE, "(((import_from_statement) @imports))", module)
+ captures_import: Captures = self.utils.frame_query_and_capture_output(PARSER, LANGUAGE, "(((import_statement) @imports))", module)
for capture in captures_import:
import_list.append(capture.node.text.decode())
for capture in captures_from_import:
@@ -188,8 +189,8 @@ def get_all_imports_details(self, module: str) -> List[PyImport]:
List[PyImport]: List of imports
"""
import_list = []
- captures_from_import: Captures = self.utils.frame_query_and_capture_output(self.parser, self.language, "(((import_from_statement) @imports))", module)
- captures_import: Captures = self.utils.frame_query_and_capture_output(self.parser, self.language, "(((import_statement) @imports))", module)
+ captures_from_import: Captures = self.utils.frame_query_and_capture_output(PARSER, LANGUAGE, "(((import_from_statement) @imports))", module)
+ captures_import: Captures = self.utils.frame_query_and_capture_output(PARSER, LANGUAGE, "(((import_statement) @imports))", module)
for capture in captures_import:
imports = []
for import_name in capture.node.children:
@@ -223,7 +224,7 @@ def get_all_classes(self, module: str) -> List[PyClass]:
List[PyClass]: returns details of all classes in it
"""
classes: List[PyClass] = []
- all_class_details: Captures = self.utils.frame_query_and_capture_output(self.parser, self.language, "(((class_definition) @class_name))", module)
+ all_class_details: Captures = self.utils.frame_query_and_capture_output(PARSER, LANGUAGE, "(((class_definition) @class_name))", module)
for class_name in all_class_details:
code_body = class_name.node.text.decode()
class_full_signature = "" # TODO: what to fill here
@@ -331,7 +332,7 @@ def __get_function_details(self, node: Node, klass_name: str = "") -> PyMethod:
is_constructor = False
is_static = False
call_sites: List[PyCallSite] = []
- call_nodes: Captures = self.utils.frame_query_and_capture_output(self.parser, self.language, "(((call) @call_name))", node.text.decode())
+ call_nodes: Captures = self.utils.frame_query_and_capture_output(PARSER, LANGUAGE, "(((call) @call_name))", node.text.decode())
for call_node in call_nodes:
call_sites.append(self.__get_call_site_details(call_node.node))
for function_detail in node.children:
@@ -390,9 +391,9 @@ def __get_function_details(self, node: Node, klass_name: str = "") -> PyMethod:
return function
def __get_class_nodes(self, module: str) -> Captures:
- captures: Captures = self.utils.frame_query_and_capture_output(self.parser, self.language, "(((class_definition) @class_name))", module)
+ captures: Captures = self.utils.frame_query_and_capture_output(PARSER, LANGUAGE, "(((class_definition) @class_name))", module)
return captures
def __get_method_nodes(self, module: str) -> Captures:
- captures: Captures = self.utils.frame_query_and_capture_output(self.parser, self.language, "(((function_definition) @function_name))", module)
+ captures: Captures = self.utils.frame_query_and_capture_output(PARSER, LANGUAGE, "(((function_definition) @function_name))", module)
return captures
diff --git a/cldk/analysis/java/codeanalyzer/codeanalyzer.py b/cldk/analysis/java/codeanalyzer/codeanalyzer.py
index 3ac7a45..0a2fcd2 100644
--- a/cldk/analysis/java/codeanalyzer/codeanalyzer.py
+++ b/cldk/analysis/java/codeanalyzer/codeanalyzer.py
@@ -67,7 +67,10 @@ def __init__(
self.eager_analysis = eager_analysis
self.analysis_level = analysis_level
self.target_files = target_files
- self.application = self._init_codeanalyzer(analysis_level=1 if analysis_level == AnalysisLevel.symbol_table else 2)
+ if self.source_code is None:
+ self.application = self._init_codeanalyzer(analysis_level=1 if analysis_level == AnalysisLevel.symbol_table else 2)
+ else:
+ self.application = self._codeanalyzer_single_file()
# Attributes related the Java code analysis...
if analysis_level == AnalysisLevel.call_graph:
self.call_graph: nx.DiGraph = self._generate_call_graph(using_symbol_table=False)
@@ -121,6 +124,22 @@ def _init_japplication(data: str) -> JApplication:
# set_trace()
return JApplication(**json.loads(data))
+
+ @staticmethod
+ def check_exisiting_analysis_file_level(analysis_json_path_file: Path, analysis_level: int) -> bool:
+ analysis_file_compatible = True
+ if not analysis_json_path_file.exists():
+ analysis_file_compatible = False
+ else:
+ with open(analysis_json_path_file) as f:
+ data = json.load(f)
+ if analysis_level == 2 and "call_graph" not in data:
+ analysis_file_compatible = False
+ elif analysis_level == 1 and "symbol_table" not in data:
+ analysis_file_compatible = False
+ return analysis_file_compatible
+
+
def _init_codeanalyzer(self, analysis_level=1) -> JApplication:
"""Should initialize the Codeanalyzer.
@@ -167,7 +186,7 @@ def _init_codeanalyzer(self, analysis_level=1) -> JApplication:
)
is_run_code_analyzer = True
else:
- if not analysis_json_path_file.exists() or self.eager_analysis:
+ if not self.check_exisiting_analysis_file_level(analysis_json_path_file, analysis_level) or self.eager_analysis:
# If the analysis file does not exist, we'll run the analysis. Alternately, if the eager_analysis
# flag is set, we'll run the analysis every time the object is created. This will happen regradless
# of the existence of the analysis file.
@@ -592,7 +611,7 @@ def get_all_nested_classes(self, qualified_class_name) -> List[JType]:
if ci is None:
logging.warning(f"Class {qualified_class_name} not found in the application view.")
return list()
- nested_classes = ci.nested_type_declerations
+ nested_classes = ci.nested_type_declarations
return [self.get_class(c) for c in nested_classes] # Assuming qualified nested class names
def get_extended_classes(self, qualified_class_name) -> List[str]:
@@ -1052,4 +1071,4 @@ def get_all_docstrings(self) -> List[Tuple[str, JComment]]:
if javadoc_comments:
docstrings[file_path] = javadoc_comments
- return docstrings
\ No newline at end of file
+ return docstrings
diff --git a/cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.3.1.jar b/cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.3.1.jar
deleted file mode 100644
index 2c5450a..0000000
Binary files a/cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.3.1.jar and /dev/null differ
diff --git a/tests/resources/java/codeanalyzer_jars/2.3.0/codeanalyzer-2.3.0.jar b/cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.3.4.jar
similarity index 96%
rename from tests/resources/java/codeanalyzer_jars/2.3.0/codeanalyzer-2.3.0.jar
rename to cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.3.4.jar
index 2409ed7..5118d1a 100644
Binary files a/tests/resources/java/codeanalyzer_jars/2.3.0/codeanalyzer-2.3.0.jar and b/cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.3.4.jar differ
diff --git a/cldk/analysis/python/python_analysis.py b/cldk/analysis/python/python_analysis.py
index 4b35e56..de248ad 100644
--- a/cldk/analysis/python/python_analysis.py
+++ b/cldk/analysis/python/python_analysis.py
@@ -30,17 +30,11 @@ class PythonAnalysis:
def __init__(
self,
- eager_analysis: bool,
project_dir: str | Path | None,
source_code: str | None,
- analysis_backend_path: str | None,
- analysis_json_path: str | Path | None,
) -> None:
self.project_dir = project_dir
self.source_code = source_code
- self.analysis_json_path = analysis_json_path
- self.analysis_backend_path = analysis_backend_path
- self.eager_analysis = eager_analysis
self.analysis_backend: TreesitterPython = TreesitterPython()
def get_methods(self) -> List[PyMethod]:
diff --git a/cldk/core.py b/cldk/core.py
index 3c24697..7024d32 100644
--- a/cldk/core.py
+++ b/cldk/core.py
@@ -27,6 +27,8 @@
from cldk.analysis.c import CAnalysis
from cldk.analysis.java import JavaAnalysis
from cldk.analysis.commons.treesitter import TreesitterJava
+from cldk.analysis.python.python_analysis import PythonAnalysis
+from cldk.analysis.python.python_analysis import PythonAnalysis
from cldk.utils.exceptions import CldkInitializationException
from cldk.utils.sanitization.java import TreesitterSanitizer
@@ -118,6 +120,11 @@ def analysis(
target_files=target_files,
eager_analysis=eager,
)
+ elif self.language == "python":
+ return PythonAnalysis(
+ project_dir=project_path,
+ source_code=source_code,
+ )
elif self.language == "c":
return CAnalysis(project_dir=project_path)
else:
diff --git a/cldk/models/java/models.py b/cldk/models/java/models.py
index 58746cc..52e855c 100644
--- a/cldk/models/java/models.py
+++ b/cldk/models/java/models.py
@@ -270,6 +270,7 @@ class JCallable(BaseModel):
code (str): The code block of the callable.
start_line (int): The starting line number of the callable in the source file.
end_line (int): The ending line number of the callable in the source file.
+ code_start_line (int): The starting line number of the code block of a callable in the source file.
referenced_types (List[str]): The types referenced within the callable.
accessed_fields (List[str]): Fields accessed in the callable.
call_sites (List[JCallSite]): Call sites in the callable.
@@ -293,6 +294,7 @@ class JCallable(BaseModel):
code: str
start_line: int
end_line: int
+ code_start_line: int
referenced_types: List[str]
accessed_fields: List[str]
call_sites: List[JCallSite]
@@ -350,7 +352,7 @@ class JType(BaseModel):
modifiers: List[str] | None = []
annotations: List[str] | None = []
parent_type: str
- nested_type_declerations: List[str] | None = []
+ nested_type_declarations: List[str] | None = []
callable_declarations: Dict[str, JCallable] = {}
field_declarations: List[JField] = []
enum_constants: List[JEnumConstant] | None = []
@@ -363,11 +365,15 @@ class JCompilationUnit(BaseModel):
"""Represents a compilation unit in Java.
Attributes:
+ file_path (str): The path to the source file.
+ package_name (str): The name of the package for the comppilation unit.
comments (List[JComment]): A list of comments in the compilation unit.
imports (List[str]): A list of import statements in the compilation unit.
type_declarations (Dict[str, JType]): A dictionary mapping type names to their corresponding JType representations.
"""
+ file_path: str
+ package_name: str
comments: List[JComment]
imports: List[str]
type_declarations: Dict[str, JType]
@@ -427,14 +433,13 @@ class JGraphEdges(BaseModel):
@classmethod
def validate_source(cls, value) -> JMethodDetail:
_, type_declaration, signature = value["file_path"], value["type_declaration"], value["signature"]
- j_callable = _CALLABLES_LOOKUP_TABLE.get(
+ j_callable: JCallable = _CALLABLES_LOOKUP_TABLE.get(
(type_declaration, signature),
JCallable(
- comments=[],
signature=signature,
is_implicit=True,
is_constructor="" in value["callable_declaration"],
- comment="",
+ comments=[],
annotations=[],
modifiers=[],
thrown_exceptions=[],
@@ -443,12 +448,15 @@ def validate_source(cls, value) -> JMethodDetail:
JCallableParameter(name=None, type=t, annotations=[], modifiers=[], start_column=-1, end_column=-1, start_line=-1, end_line=-1)
for t in value["callable_declaration"].split("(")[1].split(")")[0].split(",")
],
+ return_type=None,
code="",
start_line=-1,
end_line=-1,
+ code_start_line=-1,
referenced_types=[],
accessed_fields=[],
call_sites=[],
+ is_entrypoint=False,
variable_declarations=[],
crud_operations=[],
crud_queries=[],
diff --git a/cldk/models/python/models.py b/cldk/models/python/models.py
index bdaf519..318e170 100644
--- a/cldk/models/python/models.py
+++ b/cldk/models/python/models.py
@@ -29,6 +29,7 @@ class PyArg(BaseModel):
class PyImport(BaseModel):
from_statement: str
+ # code_body: str
imports: List[str]
diff --git a/cldk/utils/sanitization/java/treesitter_sanitizer.py b/cldk/utils/sanitization/java/treesitter_sanitizer.py
index 85de9b3..06b023c 100644
--- a/cldk/utils/sanitization/java/treesitter_sanitizer.py
+++ b/cldk/utils/sanitization/java/treesitter_sanitizer.py
@@ -86,11 +86,11 @@ def remove_unused_imports(self, sanitized_code: str) -> str:
+ Finally, remove all the unused imports from the source code and prettify it.
"""
pruned_source_code: str = deepcopy(sanitized_code)
- import_declerations: Captures = self.__javasitter.frame_query_and_capture_output(query="((import_declaration) @imports)", code_to_process=self.source_code)
+ import_declarations: Captures = self.__javasitter.frame_query_and_capture_output(query="((import_declaration) @imports)", code_to_process=self.source_code)
unused_imports: Set = set()
ids_and_typeids: Set = set()
- class_bodies: Captures = self.__javasitter.frame_query_and_capture_output(query="((class_declaration) @class_decleration)", code_to_process=self.source_code)
+ class_bodies: Captures = self.__javasitter.frame_query_and_capture_output(query="((class_declaration) @class_declaration)", code_to_process=self.source_code)
for class_body in class_bodies:
all_type_identifiers_in_class: Captures = self.__javasitter.frame_query_and_capture_output(
query="((type_identifier) @type_id)",
@@ -103,17 +103,17 @@ def remove_unused_imports(self, sanitized_code: str) -> str:
ids_and_typeids.update({type_id.node.text.decode() for type_id in all_type_identifiers_in_class})
ids_and_typeids.update({other_id.node.text.decode() for other_id in all_other_identifiers_in_class})
- for import_decleration in import_declerations:
- wildcard_import: Captures = self.__javasitter.frame_query_and_capture_output(query="((asterisk) @wildcard)", code_to_process=import_decleration.node.text.decode())
+ for import_declaration in import_declarations:
+ wildcard_import: Captures = self.__javasitter.frame_query_and_capture_output(query="((asterisk) @wildcard)", code_to_process=import_declaration.node.text.decode())
if len(wildcard_import) > 0:
continue
import_statement: Captures = self.__javasitter.frame_query_and_capture_output(
- query="((scoped_identifier) @scoped_identifier)", code_to_process=import_decleration.node.text.decode()
+ query="((scoped_identifier) @scoped_identifier)", code_to_process=import_declaration.node.text.decode()
)
import_str = import_statement.captures[0].node.text.decode()
if not import_str.split(".")[-1] in ids_and_typeids:
- unused_imports.add(import_decleration.node.text.decode())
+ unused_imports.add(import_declaration.node.text.decode())
for unused_import in unused_imports:
pruned_source_code = pruned_source_code.replace(unused_import, "")
diff --git a/pyproject.toml b/pyproject.toml
index e8ff4c3..f3b4d04 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cldk"
-version = "0.5.1"
+version = "1.0.5"
description = "The official Python SDK for Codellm-Devkit."
authors = ["Rahul Krishna ", "Rangeet Pan ", "Saurabh Sinhas ",
"Raju Pavuluri "]
@@ -27,14 +27,18 @@ include = [
"cldk/analysis/java/codeanalyzer/jar/*.jar"
]
+
+[tool.backend-versions]
+codeanalyzer-java = "2.3.3"
+
[tool.poetry.dependencies]
python = ">=3.11"
pydantic = "^2.10.6"
pandas = "^2.2.3"
networkx = "^3.4.2"
-pyarrow = "19.0.0"
+pyarrow = "20.0.0"
tree-sitter = "0.24.0"
-rich = "13.9.4"
+rich = "14.0.0"
wget = "3.2"
requests = "^2.32.3"
tree-sitter-java = "0.23.5"
@@ -52,7 +56,7 @@ ipython = "^8.32.0"
[tool.poetry.group.test.dependencies]
# Test dependencies
toml = "^0.10.2"
-pytest = "8.3.4"
+pytest = "8.3.5"
pytest-pspec = "^0.0.4"
pytest-cov = "^6.0.0"
pylint = "^3.3.4"
@@ -116,4 +120,4 @@ directory = "coverage_html_report"
sample-c-application = "tests/resources/c/application/"
sample-application = "tests/resources/java/application/"
sample-application-analysis-json = "tests/resources/java/analysis_json/"
-codeanalyzer-jar-path = "tests/resources/java/codeanalyzer_jars/"
+codeanalyzer-jar-path = "cldk/analysis/java/codeanalyzer/jar/"
diff --git a/tests/analysis/java/test_java_analysis.py b/tests/analysis/java/test_java_analysis.py
index 0810764..57327d1 100644
--- a/tests/analysis/java/test_java_analysis.py
+++ b/tests/analysis/java/test_java_analysis.py
@@ -50,6 +50,24 @@ def test_get_symbol_table_is_not_null(test_fixture, analysis_json):
)
assert analysis.get_symbol_table() is not None
+def test_get_symbol_table_source_code(java_code):
+ """Should return a symbol table for source analysis with expected class/method count"""
+
+ # Initialize the CLDK object with the project directory, language, and analysis_backend
+ cldk = CLDK(language="java")
+ analysis = cldk.analysis(
+ source_code=java_code,
+ analysis_backend_path=None,
+ eager=True,
+ analysis_level=AnalysisLevel.symbol_table,
+ )
+
+ # assert on expected class name and method count in the symbol table
+ expected_class_name = "com.acme.modres.WeatherServlet"
+ assert analysis.get_symbol_table() is not None
+ assert len(analysis.get_symbol_table().keys()) == 1
+ assert expected_class_name in analysis.get_methods().keys()
+ assert len(analysis.get_methods().get(expected_class_name).keys()) == 9
def test_get_imports(test_fixture, analysis_json):
"""Should return NotImplemented for get_imports()"""
@@ -632,11 +650,11 @@ def test_get_methods_in_class(test_fixture, analysis_json):
eager_analysis=False,
)
- # Test that there are 30 methods in the Log class
+ # Test that there are 29 methods in the Log class
methods = java_analysis.get_methods_in_class("com.ibm.websphere.samples.daytrader.util.Log")
assert methods is not None
assert isinstance(methods, Dict)
- assert len(methods) == 30
+ assert len(methods) == 29
for method in methods:
assert isinstance(methods[method], JCallable)
diff --git a/tests/analysis/python/test_python_analysis.py b/tests/analysis/python/test_python_analysis.py
index 1997131..c04c328 100644
--- a/tests/analysis/python/test_python_analysis.py
+++ b/tests/analysis/python/test_python_analysis.py
@@ -67,7 +67,7 @@ def divide(self, a, b):
def test_get_methods():
"""Should return all of the methods"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
all_methods = python_analysis.get_methods()
assert all_methods is not None
@@ -79,7 +79,7 @@ def test_get_methods():
def test_get_functions():
"""Should return all of the functions"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
all_functions = python_analysis.get_functions()
assert all_functions is not None
@@ -91,7 +91,7 @@ def test_get_functions():
def test_get_all_modules(tmp_path):
"""Should return all of the modules"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=tmp_path, source_code=None, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=tmp_path, source_code=None)
# set up some temporary modules
temp_file_path = os.path.join(tmp_path, "hello.py")
@@ -111,7 +111,7 @@ def test_get_all_modules(tmp_path):
def test_get_method_details():
"""Should return the method details"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
method_details = python_analysis.get_method_details("add(self, a, b)")
assert method_details is not None
@@ -121,7 +121,7 @@ def test_get_method_details():
def test_is_parsable():
"""Should be able to parse the code"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
code = "def is_parsable(self, code: str) -> bool: return True"
is_parsable = python_analysis.is_parsable(code)
@@ -134,7 +134,7 @@ def test_is_parsable():
def test_get_raw_ast():
"""Should return the raw AST"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
raw_ast = python_analysis.get_raw_ast(PYTHON_CODE)
assert raw_ast is not None
@@ -144,7 +144,7 @@ def test_get_raw_ast():
def test_get_imports():
"""Should return all of the imports"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
all_imports = python_analysis.get_imports()
assert all_imports is not None
@@ -156,7 +156,7 @@ def test_get_imports():
def test_get_variables():
"""Should return all of the variables"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
with pytest.raises(NotImplementedError) as except_info:
python_analysis.get_variables()
@@ -165,7 +165,7 @@ def test_get_variables():
def test_get_classes():
"""Should return all of the classes"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
all_classes = python_analysis.get_classes()
assert all_classes is not None
@@ -178,7 +178,7 @@ def test_get_classes():
def test_get_classes_by_criteria():
"""Should return all of the classes that match the criteria"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
with pytest.raises(NotImplementedError) as except_info:
python_analysis.get_classes_by_criteria()
@@ -187,7 +187,7 @@ def test_get_classes_by_criteria():
def test_get_sub_classes():
"""Should return all of the subclasses"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
with pytest.raises(NotImplementedError) as except_info:
python_analysis.get_sub_classes()
@@ -196,7 +196,7 @@ def test_get_sub_classes():
def test_get_nested_classes():
"""Should return all of the nested classes"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
with pytest.raises(NotImplementedError) as except_info:
python_analysis.get_nested_classes()
@@ -205,7 +205,7 @@ def test_get_nested_classes():
def test_get_constructors():
"""Should return all of the constructors"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
with pytest.raises(NotImplementedError) as except_info:
python_analysis.get_constructors()
@@ -214,7 +214,7 @@ def test_get_constructors():
def test_get_methods_in_class():
"""Should return all of the methods in the class"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
with pytest.raises(NotImplementedError) as except_info:
python_analysis.get_methods_in_class()
@@ -223,7 +223,7 @@ def test_get_methods_in_class():
def test_get_fields():
"""Should return all of the fields in the class"""
- python_analysis = PythonAnalysis(eager_analysis=True, project_dir=None, source_code=PYTHON_CODE, analysis_backend_path=None, analysis_json_path=None)
+ python_analysis = PythonAnalysis(project_dir=None, source_code=PYTHON_CODE)
with pytest.raises(NotImplementedError) as except_info:
python_analysis.get_fields()
diff --git a/tests/conftest.py b/tests/conftest.py
index 5c9afdb..ebfacbd 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -75,7 +75,7 @@ def codeanalyzer_jar_path():
# Load the configuration
config = toml.load(pyproject_path)
- return Path(config["tool"]["cldk"]["testing"]["codeanalyzer-jar-path"]) / "2.3.0"
+ return Path(config["tool"]["cldk"]["testing"]["codeanalyzer-jar-path"])
@pytest.fixture(scope="session", autouse=True)
@@ -190,3 +190,24 @@ def test_fixture_binutils():
for directory in Path(test_data_path).iterdir():
if directory.exists() and directory.is_dir():
shutil.rmtree(directory)
+
+@pytest.fixture(scope="session", autouse=True)
+def java_code() -> str:
+ """
+ Returns sample Java source code for analysis.
+
+ Yields:
+ str : Java code to be analyzed.
+ """
+ # ----------------------------------[ SETUP ]----------------------------------
+ # Path to your pyproject.toml
+ pyproject_path = Path(__file__).parent.parent / "pyproject.toml"
+
+ # Load the configuration
+ config = toml.load(pyproject_path)
+
+ # Access the test data path
+ test_data_path = config["tool"]["cldk"]["testing"]["sample-application"]
+ javafile = Path(test_data_path).absolute() / ("WeatherServlet.java")
+ with open(javafile) as f:
+ return f.read()
diff --git a/tests/resources/java/analysis_json/analysis.json b/tests/resources/java/analysis_json/analysis.json
index 8fda632..958c85f 100644
--- a/tests/resources/java/analysis_json/analysis.json
+++ b/tests/resources/java/analysis_json/analysis.json
@@ -1,8 +1,258 @@
{
"symbol_table": {
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2004,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * A basic POJO class for resetting the database.\r\n ",
+ "start_line": 36,
+ "end_line": 38,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 53,
+ "end_line": 55,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param itemID\r\n\t * @param fileName\r\n\t * @param catalog\r\n\t * @throws FileNotFoundException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 67,
+ "end_line": 73,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Open the input file as a stream of bytes",
+ "start_line": 82,
+ "end_line": 82,
+ "start_column": 3,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 91,
+ "end_line": 93,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate INVENTORY table with text\r\n\t\t ",
+ "start_line": 101,
+ "end_line": 103,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate CUSTOMER table with text\r\n\t\t ",
+ "start_line": 144,
+ "end_line": 146,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate ORDER table with text\r\n\t\t ",
+ "start_line": 179,
+ "end_line": 181,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " stmt.executeUpdate(\" INSERT INTO ORDERITEM(INVENTORYID, NAME, PKGINFO, PRICE, COST,",
+ "start_line": 241,
+ "end_line": 241,
+ "start_column": 4,
+ "end_column": 89,
+ "is_javadoc": false
+ },
+ {
+ "content": " CATEGORY, QUANTITY, SELLDATE, ORDER_ORDERID) VALUES ('A0001', 'Bulb Digger',",
+ "start_line": 242,
+ "end_line": 242,
+ "start_column": 4,
+ "end_column": 82,
+ "is_javadoc": false
+ },
+ {
+ "content": " 'Assembled', 12.0, 5.0, 3, 900, '01054835419625', '1')\");",
+ "start_line": 243,
+ "end_line": 243,
+ "start_column": 4,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate BACKORDER table with text\r\n\t\t ",
+ "start_line": 248,
+ "end_line": 250,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting backorders",
+ "start_line": 255,
+ "end_line": 255,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate SUPPLIER table with text\r\n\t\t ",
+ "start_line": 270,
+ "end_line": 272,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting Suppliers",
+ "start_line": 277,
+ "end_line": 277,
+ "start_column": 4,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.DataInputStream",
"java.io.File",
@@ -31,7 +281,128 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * A basic POJO class for resetting the database.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 53,
+ "end_line": 55,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param itemID\r\n\t * @param fileName\r\n\t * @param catalog\r\n\t * @throws FileNotFoundException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 67,
+ "end_line": 73,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Open the input file as a stream of bytes",
+ "start_line": 82,
+ "end_line": 82,
+ "start_column": 3,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 91,
+ "end_line": 93,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate INVENTORY table with text\r\n\t\t ",
+ "start_line": 101,
+ "end_line": 103,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate CUSTOMER table with text\r\n\t\t ",
+ "start_line": 144,
+ "end_line": 146,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate ORDER table with text\r\n\t\t ",
+ "start_line": 179,
+ "end_line": 181,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " stmt.executeUpdate(\" INSERT INTO ORDERITEM(INVENTORYID, NAME, PKGINFO, PRICE, COST,",
+ "start_line": 241,
+ "end_line": 241,
+ "start_column": 4,
+ "end_column": 89,
+ "is_javadoc": false
+ },
+ {
+ "content": " CATEGORY, QUANTITY, SELLDATE, ORDER_ORDERID) VALUES ('A0001', 'Bulb Digger',",
+ "start_line": 242,
+ "end_line": 242,
+ "start_column": 4,
+ "end_column": 82,
+ "is_javadoc": false
+ },
+ {
+ "content": " 'Assembled', 12.0, 5.0, 3, 900, '01054835419625', '1')\");",
+ "start_line": 243,
+ "end_line": 243,
+ "start_column": 4,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate BACKORDER table with text\r\n\t\t ",
+ "start_line": 248,
+ "end_line": 250,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting backorders",
+ "start_line": 255,
+ "end_line": 255,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate SUPPLIER table with text\r\n\t\t ",
+ "start_line": 270,
+ "end_line": 272,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting Suppliers",
+ "start_line": 277,
+ "end_line": 277,
+ "start_column": 4,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * A basic POJO class for resetting the database.\r\n ",
+ "start_line": 36,
+ "end_line": 38,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -41,9 +412,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java",
"signature": "Populate()",
- "comment": "/**\r\n\t * \r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 53,
+ "end_line": 55,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -51,9 +431,10 @@
"thrown_exceptions": [],
"declaration": "public Populate()",
"parameters": [],
- "code": "{\n}",
+ "code": "{\r\n\t}",
"start_line": 56,
"end_line": 57,
+ "code_start_line": 56,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -67,9 +448,98 @@
"is_entrypoint": false
},
"doPopulate()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java",
"signature": "doPopulate()",
- "comment": "/**\r\n\t * \r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t\t * Populate INVENTORY table with text\r\n\t\t ",
+ "start_line": 101,
+ "end_line": 103,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate CUSTOMER table with text\r\n\t\t ",
+ "start_line": 144,
+ "end_line": 146,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate ORDER table with text\r\n\t\t ",
+ "start_line": 179,
+ "end_line": 181,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " stmt.executeUpdate(\" INSERT INTO ORDERITEM(INVENTORYID, NAME, PKGINFO, PRICE, COST,",
+ "start_line": 241,
+ "end_line": 241,
+ "start_column": 4,
+ "end_column": 89,
+ "is_javadoc": false
+ },
+ {
+ "content": " CATEGORY, QUANTITY, SELLDATE, ORDER_ORDERID) VALUES ('A0001', 'Bulb Digger',",
+ "start_line": 242,
+ "end_line": 242,
+ "start_column": 4,
+ "end_column": 82,
+ "is_javadoc": false
+ },
+ {
+ "content": " 'Assembled', 12.0, 5.0, 3, 900, '01054835419625', '1')\");",
+ "start_line": 243,
+ "end_line": 243,
+ "start_column": 4,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate BACKORDER table with text\r\n\t\t ",
+ "start_line": 248,
+ "end_line": 250,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting backorders",
+ "start_line": 255,
+ "end_line": 255,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate SUPPLIER table with text\r\n\t\t ",
+ "start_line": 270,
+ "end_line": 272,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting Suppliers",
+ "start_line": 277,
+ "end_line": 277,
+ "start_column": 4,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 91,
+ "end_line": 93,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -77,9 +547,10 @@
"thrown_exceptions": [],
"declaration": "public void doPopulate()",
"parameters": [],
- "code": "{\n try {\n resetDB.deleteAll();\n } catch (Exception e) {\n Util.debug(\"Populate:doPopulate() - Exception deleting data in database: \" + e);\n e.printStackTrace();\n }\n /**\n * Populate INVENTORY table with text\n */\n Util.debug(\"Populating INVENTORY table with text...\");\n try {\n String[] values = Util.getProperties(\"inventory\");\n for (int index = 0; index < values.length; index++) {\n Util.debug(\"Found INVENTORY property values: \" + values[index]);\n String[] fields = Util.readTokens(values[index], \"|\");\n String id = fields[0];\n String name = fields[1];\n String heading = fields[2];\n String descr = fields[3];\n String pkginfo = fields[4];\n String image = fields[5];\n float price = new Float(fields[6]).floatValue();\n float cost = new Float(fields[7]).floatValue();\n int quantity = new Integer(fields[8]).intValue();\n int category = new Integer(fields[9]).intValue();\n String notes = fields[10];\n boolean isPublic = new Boolean(fields[11]).booleanValue();\n Util.debug(\"Populating INVENTORY with following values: \");\n Util.debug(fields[0]);\n Util.debug(fields[1]);\n Util.debug(fields[2]);\n Util.debug(fields[3]);\n Util.debug(fields[4]);\n Util.debug(fields[5]);\n Util.debug(fields[6]);\n Util.debug(fields[7]);\n Util.debug(fields[8]);\n Util.debug(fields[9]);\n Util.debug(fields[10]);\n Util.debug(fields[11]);\n Inventory storeItem = new Inventory(id, name, heading, descr, pkginfo, image, price, cost, quantity, category, notes, isPublic);\n catalog.addItem(storeItem);\n addImage(id, image, catalog);\n }\n Util.debug(\"INVENTORY table populated with text...\");\n } catch (Exception e) {\n Util.debug(\"Unable to populate INVENTORY table with text data: \" + e);\n }\n /**\n * Populate CUSTOMER table with text\n */\n Util.debug(\"Populating CUSTOMER table with default values...\");\n try {\n String[] values = Util.getProperties(\"customer\");\n Util.debug(\"Found CUSTOMER properties: \" + values[0]);\n for (int index = 0; index < values.length; index++) {\n String[] fields = Util.readTokens(values[index], \"|\");\n String customerID = fields[0];\n String password = fields[1];\n String firstName = fields[2];\n String lastName = fields[3];\n String addr1 = fields[4];\n String addr2 = fields[5];\n String addrCity = fields[6];\n String addrState = fields[7];\n String addrZip = fields[8];\n String phone = fields[9];\n Util.debug(\"Populating CUSTOMER with following values: \");\n Util.debug(fields[0]);\n Util.debug(fields[1]);\n Util.debug(fields[2]);\n Util.debug(fields[3]);\n Util.debug(fields[4]);\n Util.debug(fields[5]);\n Util.debug(fields[6]);\n Util.debug(fields[7]);\n Util.debug(fields[8]);\n Util.debug(fields[9]);\n login.createCustomer(customerID, password, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone);\n }\n } catch (Exception e) {\n Util.debug(\"Unable to populate CUSTOMER table with text data: \" + e);\n }\n /**\n * Populate ORDER table with text\n */\n Util.debug(\"Populating ORDER table with default values...\");\n try {\n String[] values = Util.getProperties(\"order\");\n Util.debug(\"Found ORDER properties: \" + values[0]);\n if (values[0] != null && values.length > 0) {\n for (int index = 0; index < values.length; index++) {\n String[] fields = Util.readTokens(values[index], \"|\");\n if (fields != null && fields.length >= 21) {\n String customerID = fields[0];\n String billName = fields[1];\n String billAddr1 = fields[2];\n String billAddr2 = fields[3];\n String billCity = fields[4];\n String billState = fields[5];\n String billZip = fields[6];\n String billPhone = fields[7];\n String shipName = fields[8];\n String shipAddr1 = fields[9];\n String shipAddr2 = fields[10];\n String shipCity = fields[11];\n String shipState = fields[12];\n String shipZip = fields[13];\n String shipPhone = fields[14];\n int shippingMethod = Integer.parseInt(fields[15]);\n String creditCard = fields[16];\n String ccNum = fields[17];\n String ccExpireMonth = fields[18];\n String ccExpireYear = fields[19];\n String cardHolder = fields[20];\n Vector items = new Vector();\n Util.debug(\"Populating ORDER with following values: \");\n Util.debug(fields[0]);\n Util.debug(fields[1]);\n Util.debug(fields[2]);\n Util.debug(fields[3]);\n Util.debug(fields[4]);\n Util.debug(fields[5]);\n Util.debug(fields[6]);\n Util.debug(fields[7]);\n Util.debug(fields[8]);\n Util.debug(fields[9]);\n Util.debug(fields[10]);\n Util.debug(fields[11]);\n Util.debug(fields[12]);\n Util.debug(fields[13]);\n Util.debug(fields[14]);\n Util.debug(fields[15]);\n Util.debug(fields[16]);\n Util.debug(fields[17]);\n Util.debug(fields[18]);\n Util.debug(fields[19]);\n Util.debug(fields[20]);\n cart.createOrder(customerID, billName, billAddr1, billAddr2, billCity, billState, billZip, billPhone, shipName, shipAddr1, shipAddr2, shipCity, shipState, shipZip, shipPhone, creditCard, ccNum, ccExpireMonth, ccExpireYear, cardHolder, shippingMethod, items);\n } else {\n Util.debug(\"Property does not contain enough fields: \" + values[index]);\n Util.debug(\"Fields found were: \" + fields);\n }\n }\n }\n // stmt.executeUpdate(\" INSERT INTO ORDERITEM(INVENTORYID, NAME, PKGINFO, PRICE, COST,\n // CATEGORY, QUANTITY, SELLDATE, ORDER_ORDERID) VALUES ('A0001', 'Bulb Digger',\n // 'Assembled', 12.0, 5.0, 3, 900, '01054835419625', '1')\");\n } catch (Exception e) {\n Util.debug(\"Unable to populate ORDERITEM table with text data: \" + e);\n e.printStackTrace();\n }\n /**\n * Populate BACKORDER table with text\n */\n Util.debug(\"Populating BACKORDER table with default values...\");\n try {\n String[] values = Util.getProperties(\"backorder\");\n Util.debug(\"Found BACKORDER properties: \" + values[0]);\n // Inserting backorders\n for (int index = 0; index < values.length; index++) {\n String[] fields = Util.readTokens(values[index], \"|\");\n String inventoryID = fields[0];\n int amountToOrder = new Integer(fields[1]).intValue();\n int maximumItems = new Integer(fields[2]).intValue();\n Util.debug(\"Populating BACKORDER with following values: \");\n Util.debug(inventoryID);\n Util.debug(\"amountToOrder -> \" + amountToOrder);\n Util.debug(\"maximumItems -> \" + maximumItems);\n backOrderStock.createBackOrder(inventoryID, amountToOrder, maximumItems);\n }\n } catch (Exception e) {\n Util.debug(\"Unable to populate BACKORDER table with text data: \" + e);\n }\n /**\n * Populate SUPPLIER table with text\n */\n Util.debug(\"Populating SUPPLIER table with default values...\");\n try {\n String[] values = Util.getProperties(\"supplier\");\n Util.debug(\"Found SUPPLIER properties: \" + values[0]);\n // Inserting Suppliers\n for (int index = 0; index < values.length; index++) {\n String[] fields = Util.readTokens(values[index], \"|\");\n String supplierID = fields[0];\n String name = fields[1];\n String address = fields[2];\n String city = fields[3];\n String state = fields[4];\n String zip = fields[5];\n String phone = fields[6];\n String url = fields[7];\n Util.debug(\"Populating SUPPLIER with following values: \");\n Util.debug(fields[0]);\n Util.debug(fields[1]);\n Util.debug(fields[2]);\n Util.debug(fields[3]);\n Util.debug(fields[4]);\n Util.debug(fields[5]);\n Util.debug(fields[6]);\n Util.debug(fields[7]);\n suppliers.createSupplier(supplierID, name, address, city, state, zip, phone, url);\n }\n } catch (Exception e) {\n Util.debug(\"Unable to populate SUPPLIER table with text data: \" + e);\n }\n}",
+ "code": "{\r\n\t\ttry {\r\n\t\t\tresetDB.deleteAll();\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Populate:doPopulate() - Exception deleting data in database: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t/**\r\n\t\t * Populate INVENTORY table with text\r\n\t\t */\r\n\t\tUtil.debug(\"Populating INVENTORY table with text...\");\r\n\t\ttry {\r\n\t\t\tString[] values = Util.getProperties(\"inventory\");\r\n\t\t\tfor (int index = 0; index < values.length; index++) {\r\n\t\t\t\tUtil.debug(\"Found INVENTORY property values: \" + values[index]);\r\n\t\t\t\tString[] fields = Util.readTokens(values[index], \"|\");\r\n\t\t\t\tString id = fields[0];\r\n\t\t\t\tString name = fields[1];\r\n\t\t\t\tString heading = fields[2];\r\n\t\t\t\tString descr = fields[3];\r\n\t\t\t\tString pkginfo = fields[4];\r\n\t\t\t\tString image = fields[5];\r\n\t\t\t\tfloat price = new Float(fields[6]).floatValue();\r\n\t\t\t\tfloat cost = new Float(fields[7]).floatValue();\r\n\t\t\t\tint quantity = new Integer(fields[8]).intValue();\r\n\t\t\t\tint category = new Integer(fields[9]).intValue();\r\n\t\t\t\tString notes = fields[10];\r\n\t\t\t\tboolean isPublic = new Boolean(fields[11]).booleanValue();\r\n\t\t\t\tUtil.debug(\"Populating INVENTORY with following values: \");\r\n\t\t\t\tUtil.debug(fields[0]);\r\n\t\t\t\tUtil.debug(fields[1]);\r\n\t\t\t\tUtil.debug(fields[2]);\r\n\t\t\t\tUtil.debug(fields[3]);\r\n\t\t\t\tUtil.debug(fields[4]);\r\n\t\t\t\tUtil.debug(fields[5]);\r\n\t\t\t\tUtil.debug(fields[6]);\r\n\t\t\t\tUtil.debug(fields[7]);\r\n\t\t\t\tUtil.debug(fields[8]);\r\n\t\t\t\tUtil.debug(fields[9]);\r\n\t\t\t\tUtil.debug(fields[10]);\r\n\t\t\t\tUtil.debug(fields[11]);\r\n\t\t\t\tInventory storeItem = new Inventory(id, name, heading, descr, pkginfo, image, price, cost, quantity,\r\n\t\t\t\t\t\tcategory, notes, isPublic);\r\n\t\t\t\tcatalog.addItem(storeItem);\r\n\t\t\t\taddImage(id, image, catalog);\r\n\t\t\t}\r\n\t\t\tUtil.debug(\"INVENTORY table populated with text...\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Unable to populate INVENTORY table with text data: \" + e);\r\n\t\t}\r\n\t\t/**\r\n\t\t * Populate CUSTOMER table with text\r\n\t\t */\r\n\t\tUtil.debug(\"Populating CUSTOMER table with default values...\");\r\n\t\ttry {\r\n\t\t\tString[] values = Util.getProperties(\"customer\");\r\n\t\t\tUtil.debug(\"Found CUSTOMER properties: \" + values[0]);\r\n\t\t\tfor (int index = 0; index < values.length; index++) {\r\n\t\t\t\tString[] fields = Util.readTokens(values[index], \"|\");\r\n\t\t\t\tString customerID = fields[0];\r\n\t\t\t\tString password = fields[1];\r\n\t\t\t\tString firstName = fields[2];\r\n\t\t\t\tString lastName = fields[3];\r\n\t\t\t\tString addr1 = fields[4];\r\n\t\t\t\tString addr2 = fields[5];\r\n\t\t\t\tString addrCity = fields[6];\r\n\t\t\t\tString addrState = fields[7];\r\n\t\t\t\tString addrZip = fields[8];\r\n\t\t\t\tString phone = fields[9];\r\n\t\t\t\tUtil.debug(\"Populating CUSTOMER with following values: \");\r\n\t\t\t\tUtil.debug(fields[0]);\r\n\t\t\t\tUtil.debug(fields[1]);\r\n\t\t\t\tUtil.debug(fields[2]);\r\n\t\t\t\tUtil.debug(fields[3]);\r\n\t\t\t\tUtil.debug(fields[4]);\r\n\t\t\t\tUtil.debug(fields[5]);\r\n\t\t\t\tUtil.debug(fields[6]);\r\n\t\t\t\tUtil.debug(fields[7]);\r\n\t\t\t\tUtil.debug(fields[8]);\r\n\t\t\t\tUtil.debug(fields[9]);\r\n\t\t\t\tlogin.createCustomer(customerID, password, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Unable to populate CUSTOMER table with text data: \" + e);\r\n\t\t}\r\n\t\t/**\r\n\t\t * Populate ORDER table with text\r\n\t\t */\r\n\t\tUtil.debug(\"Populating ORDER table with default values...\");\r\n\t\ttry {\r\n\t\t\tString[] values = Util.getProperties(\"order\");\r\n\t\t\tUtil.debug(\"Found ORDER properties: \" + values[0]);\r\n\t\t\tif (values[0] != null && values.length > 0) {\r\n\t\t\t\tfor (int index = 0; index < values.length; index++) {\r\n\t\t\t\t\tString[] fields = Util.readTokens(values[index], \"|\");\r\n\t\t\t\t\tif (fields != null && fields.length >= 21) {\r\n\t\t\t\t\t\tString customerID = fields[0];\r\n\t\t\t\t\t\tString billName = fields[1];\r\n\t\t\t\t\t\tString billAddr1 = fields[2];\r\n\t\t\t\t\t\tString billAddr2 = fields[3];\r\n\t\t\t\t\t\tString billCity = fields[4];\r\n\t\t\t\t\t\tString billState = fields[5];\r\n\t\t\t\t\t\tString billZip = fields[6];\r\n\t\t\t\t\t\tString billPhone = fields[7];\r\n\t\t\t\t\t\tString shipName = fields[8];\r\n\t\t\t\t\t\tString shipAddr1 = fields[9];\r\n\t\t\t\t\t\tString shipAddr2 = fields[10];\r\n\t\t\t\t\t\tString shipCity = fields[11];\r\n\t\t\t\t\t\tString shipState = fields[12];\r\n\t\t\t\t\t\tString shipZip = fields[13];\r\n\t\t\t\t\t\tString shipPhone = fields[14];\r\n\t\t\t\t\t\tint shippingMethod = Integer.parseInt(fields[15]);\r\n\t\t\t\t\t\tString creditCard = fields[16];\r\n\t\t\t\t\t\tString ccNum = fields[17];\r\n\t\t\t\t\t\tString ccExpireMonth = fields[18];\r\n\t\t\t\t\t\tString ccExpireYear = fields[19];\r\n\t\t\t\t\t\tString cardHolder = fields[20];\r\n\t\t\t\t\t\tVector items = new Vector();\r\n\t\t\t\t\t\tUtil.debug(\"Populating ORDER with following values: \");\r\n\t\t\t\t\t\tUtil.debug(fields[0]);\r\n\t\t\t\t\t\tUtil.debug(fields[1]);\r\n\t\t\t\t\t\tUtil.debug(fields[2]);\r\n\t\t\t\t\t\tUtil.debug(fields[3]);\r\n\t\t\t\t\t\tUtil.debug(fields[4]);\r\n\t\t\t\t\t\tUtil.debug(fields[5]);\r\n\t\t\t\t\t\tUtil.debug(fields[6]);\r\n\t\t\t\t\t\tUtil.debug(fields[7]);\r\n\t\t\t\t\t\tUtil.debug(fields[8]);\r\n\t\t\t\t\t\tUtil.debug(fields[9]);\r\n\t\t\t\t\t\tUtil.debug(fields[10]);\r\n\t\t\t\t\t\tUtil.debug(fields[11]);\r\n\t\t\t\t\t\tUtil.debug(fields[12]);\r\n\t\t\t\t\t\tUtil.debug(fields[13]);\r\n\t\t\t\t\t\tUtil.debug(fields[14]);\r\n\t\t\t\t\t\tUtil.debug(fields[15]);\r\n\t\t\t\t\t\tUtil.debug(fields[16]);\r\n\t\t\t\t\t\tUtil.debug(fields[17]);\r\n\t\t\t\t\t\tUtil.debug(fields[18]);\r\n\t\t\t\t\t\tUtil.debug(fields[19]);\r\n\t\t\t\t\t\tUtil.debug(fields[20]);\r\n\t\t\t\t\t\tcart.createOrder(customerID, billName, billAddr1, billAddr2, billCity, billState, billZip, billPhone, shipName, shipAddr1, shipAddr2, shipCity, shipState, shipZip, shipPhone, creditCard, ccNum, ccExpireMonth, ccExpireYear, cardHolder, shippingMethod, items);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tUtil.debug(\"Property does not contain enough fields: \" + values[index]);\r\n\t\t\t\t\t\tUtil.debug(\"Fields found were: \" + fields);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// stmt.executeUpdate(\" INSERT INTO ORDERITEM(INVENTORYID, NAME, PKGINFO, PRICE, COST,\r\n\t\t\t// CATEGORY, QUANTITY, SELLDATE, ORDER_ORDERID) VALUES ('A0001', 'Bulb Digger',\r\n\t\t\t// 'Assembled', 12.0, 5.0, 3, 900, '01054835419625', '1')\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Unable to populate ORDERITEM table with text data: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t/**\r\n\t\t * Populate BACKORDER table with text\r\n\t\t */\r\n\t\tUtil.debug(\"Populating BACKORDER table with default values...\");\r\n\t\ttry {\r\n\t\t\tString[] values = Util.getProperties(\"backorder\");\r\n\t\t\tUtil.debug(\"Found BACKORDER properties: \" + values[0]);\r\n\t\t\t// Inserting backorders\r\n\t\t\tfor (int index = 0; index < values.length; index++) {\r\n\t\t\t\tString[] fields = Util.readTokens(values[index], \"|\");\r\n\t\t\t\tString inventoryID = fields[0];\r\n\t\t\t\tint amountToOrder = new Integer(fields[1]).intValue();\r\n\t\t\t\tint maximumItems = new Integer(fields[2]).intValue();\r\n\t\t\t\tUtil.debug(\"Populating BACKORDER with following values: \");\r\n\t\t\t\tUtil.debug(inventoryID);\r\n\t\t\t\tUtil.debug(\"amountToOrder -> \" + amountToOrder);\r\n\t\t\t\tUtil.debug(\"maximumItems -> \" + maximumItems);\r\n\t\t\t\tbackOrderStock.createBackOrder(inventoryID, amountToOrder, maximumItems);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Unable to populate BACKORDER table with text data: \" + e);\r\n\t\t}\r\n\t\t/**\r\n\t\t * Populate SUPPLIER table with text\r\n\t\t */\r\n\t\tUtil.debug(\"Populating SUPPLIER table with default values...\");\r\n\t\ttry {\r\n\t\t\tString[] values = Util.getProperties(\"supplier\");\r\n\t\t\tUtil.debug(\"Found SUPPLIER properties: \" + values[0]);\r\n\t\t\t// Inserting Suppliers\r\n\t\t\tfor (int index = 0; index < values.length; index++) {\r\n\t\t\t\tString[] fields = Util.readTokens(values[index], \"|\");\r\n\t\t\t\tString supplierID = fields[0];\r\n\t\t\t\tString name = fields[1];\r\n\t\t\t\tString address = fields[2];\r\n\t\t\t\tString city = fields[3];\r\n\t\t\t\tString state = fields[4];\r\n\t\t\t\tString zip = fields[5];\r\n\t\t\t\tString phone = fields[6];\r\n\t\t\t\tString url = fields[7];\r\n\t\t\t\tUtil.debug(\"Populating SUPPLIER with following values: \");\r\n\t\t\t\tUtil.debug(fields[0]);\r\n\t\t\t\tUtil.debug(fields[1]);\r\n\t\t\t\tUtil.debug(fields[2]);\r\n\t\t\t\tUtil.debug(fields[3]);\r\n\t\t\t\tUtil.debug(fields[4]);\r\n\t\t\t\tUtil.debug(fields[5]);\r\n\t\t\t\tUtil.debug(fields[6]);\r\n\t\t\t\tUtil.debug(fields[7]);\r\n\t\t\t\tsuppliers.createSupplier(supplierID, name, address, city, state, zip, phone, url);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Unable to populate SUPPLIER table with text data: \" + e);\r\n\t\t}\r\n\t}",
"start_line": 94,
"end_line": 302,
+ "code_start_line": 94,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -100,6 +571,7 @@
"call_sites": [
{
"method_name": "deleteAll",
+ "comment": null,
"receiver_expr": "resetDB",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean",
"argument_types": [],
@@ -120,6 +592,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -142,6 +615,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -162,6 +636,14 @@
},
{
"method_name": "debug",
+ "comment": {
+ "content": "\r\n\t\t * Populate INVENTORY table with text\r\n\t\t ",
+ "start_line": 101,
+ "end_line": 103,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -184,6 +666,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -206,6 +689,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -228,6 +712,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -251,6 +736,7 @@
},
{
"method_name": "floatValue",
+ "comment": null,
"receiver_expr": "new Float(fields[6])",
"receiver_type": "java.lang.Float",
"argument_types": [],
@@ -271,6 +757,7 @@
},
{
"method_name": "floatValue",
+ "comment": null,
"receiver_expr": "new Float(fields[7])",
"receiver_type": "java.lang.Float",
"argument_types": [],
@@ -291,6 +778,7 @@
},
{
"method_name": "intValue",
+ "comment": null,
"receiver_expr": "new Integer(fields[8])",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -311,6 +799,7 @@
},
{
"method_name": "intValue",
+ "comment": null,
"receiver_expr": "new Integer(fields[9])",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -331,6 +820,7 @@
},
{
"method_name": "booleanValue",
+ "comment": null,
"receiver_expr": "new Boolean(fields[11])",
"receiver_type": "java.lang.Boolean",
"argument_types": [],
@@ -351,6 +841,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -373,6 +864,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -395,6 +887,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -417,6 +910,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -439,6 +933,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -461,6 +956,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -483,6 +979,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -505,6 +1002,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -527,6 +1025,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -549,6 +1048,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -571,6 +1071,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -593,6 +1094,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -615,6 +1117,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -637,6 +1140,7 @@
},
{
"method_name": "addItem",
+ "comment": null,
"receiver_expr": "catalog",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"argument_types": [
@@ -659,6 +1163,7 @@
},
{
"method_name": "addImage",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -683,6 +1188,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -705,6 +1211,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -727,6 +1234,14 @@
},
{
"method_name": "debug",
+ "comment": {
+ "content": "\r\n\t\t * Populate CUSTOMER table with text\r\n\t\t ",
+ "start_line": 144,
+ "end_line": 146,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -749,6 +1264,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -771,6 +1287,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -793,6 +1310,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -816,6 +1334,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -838,6 +1357,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -860,6 +1380,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -882,6 +1403,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -904,6 +1426,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -926,6 +1449,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -948,6 +1472,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -970,6 +1495,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -992,6 +1518,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1014,6 +1541,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1036,6 +1564,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1058,6 +1587,7 @@
},
{
"method_name": "createCustomer",
+ "comment": null,
"receiver_expr": "login",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"argument_types": [
@@ -1089,6 +1619,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1111,6 +1642,14 @@
},
{
"method_name": "debug",
+ "comment": {
+ "content": "\r\n\t\t * Populate ORDER table with text\r\n\t\t ",
+ "start_line": 179,
+ "end_line": 181,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1133,6 +1672,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1155,6 +1695,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1177,6 +1718,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1200,6 +1742,7 @@
},
{
"method_name": "parseInt",
+ "comment": null,
"receiver_expr": "Integer",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -1222,6 +1765,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1244,6 +1788,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1266,6 +1811,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1288,6 +1834,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1310,6 +1857,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1332,6 +1880,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1354,6 +1903,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1376,6 +1926,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1398,6 +1949,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1420,6 +1972,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1442,6 +1995,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1464,6 +2018,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1486,6 +2041,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1508,6 +2064,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1530,6 +2087,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1552,6 +2110,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1574,6 +2133,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1596,6 +2156,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1618,6 +2179,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1640,6 +2202,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1662,6 +2225,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1684,6 +2248,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1706,6 +2271,7 @@
},
{
"method_name": "createOrder",
+ "comment": null,
"receiver_expr": "cart",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean",
"argument_types": [
@@ -1749,6 +2315,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1771,6 +2338,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1793,6 +2361,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1815,6 +2384,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -1835,6 +2405,14 @@
},
{
"method_name": "debug",
+ "comment": {
+ "content": "\r\n\t\t * Populate BACKORDER table with text\r\n\t\t ",
+ "start_line": 248,
+ "end_line": 250,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1857,6 +2435,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1879,6 +2458,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1901,6 +2481,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1924,6 +2505,7 @@
},
{
"method_name": "intValue",
+ "comment": null,
"receiver_expr": "new Integer(fields[1])",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -1944,6 +2526,7 @@
},
{
"method_name": "intValue",
+ "comment": null,
"receiver_expr": "new Integer(fields[2])",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -1964,6 +2547,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -1986,6 +2570,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2008,6 +2593,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2030,6 +2616,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2052,6 +2639,7 @@
},
{
"method_name": "createBackOrder",
+ "comment": null,
"receiver_expr": "backOrderStock",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"argument_types": [
@@ -2076,6 +2664,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2098,6 +2687,14 @@
},
{
"method_name": "debug",
+ "comment": {
+ "content": "\r\n\t\t * Populate SUPPLIER table with text\r\n\t\t ",
+ "start_line": 270,
+ "end_line": 272,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2120,6 +2717,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2142,6 +2740,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2164,6 +2763,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2187,6 +2787,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2209,6 +2810,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2231,6 +2833,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2253,6 +2856,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2275,6 +2879,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2297,6 +2902,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2319,6 +2925,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2341,6 +2948,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2363,6 +2971,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2385,6 +2994,7 @@
},
{
"method_name": "createSupplier",
+ "comment": null,
"receiver_expr": "suppliers",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean",
"argument_types": [
@@ -2414,6 +3024,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -2436,6 +3047,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Float",
"argument_types": [
@@ -2458,6 +3070,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Float",
"argument_types": [
@@ -2480,6 +3093,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -2502,6 +3116,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -2524,6 +3139,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Boolean",
"argument_types": [
@@ -2546,6 +3162,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -2579,6 +3196,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.Vector",
"argument_types": [],
@@ -2599,6 +3217,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -2621,6 +3240,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -2644,6 +3264,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "Util.getProperties(\"inventory\")",
@@ -2653,6 +3281,14 @@
"end_column": 52
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -2662,6 +3298,14 @@
"end_column": 21
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fields",
"type": "java.lang.String[]",
"initializer": "Util.readTokens(values[index], \"|\")",
@@ -2671,6 +3315,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "id",
"type": "java.lang.String",
"initializer": "fields[0]",
@@ -2680,6 +3332,14 @@
"end_column": 25
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "name",
"type": "java.lang.String",
"initializer": "fields[1]",
@@ -2689,6 +3349,14 @@
"end_column": 27
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "heading",
"type": "java.lang.String",
"initializer": "fields[2]",
@@ -2698,6 +3366,14 @@
"end_column": 30
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "descr",
"type": "java.lang.String",
"initializer": "fields[3]",
@@ -2707,6 +3383,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "pkginfo",
"type": "java.lang.String",
"initializer": "fields[4]",
@@ -2716,6 +3400,14 @@
"end_column": 30
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "image",
"type": "java.lang.String",
"initializer": "fields[5]",
@@ -2725,6 +3417,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "price",
"type": "float",
"initializer": "new Float(fields[6]).floatValue()",
@@ -2734,6 +3434,14 @@
"end_column": 51
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "cost",
"type": "float",
"initializer": "new Float(fields[7]).floatValue()",
@@ -2743,6 +3451,14 @@
"end_column": 50
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "quantity",
"type": "int",
"initializer": "new Integer(fields[8]).intValue()",
@@ -2752,6 +3468,14 @@
"end_column": 52
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "category",
"type": "int",
"initializer": "new Integer(fields[9]).intValue()",
@@ -2761,6 +3485,14 @@
"end_column": 52
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "notes",
"type": "java.lang.String",
"initializer": "fields[10]",
@@ -2770,6 +3502,14 @@
"end_column": 29
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "isPublic",
"type": "boolean",
"initializer": "new Boolean(fields[11]).booleanValue()",
@@ -2779,6 +3519,14 @@
"end_column": 61
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "storeItem",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "new Inventory(id, name, heading, descr, pkginfo, image, price, cost, quantity, category, notes, isPublic)",
@@ -2788,6 +3536,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "Util.getProperties(\"customer\")",
@@ -2797,6 +3553,14 @@
"end_column": 51
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -2806,6 +3570,14 @@
"end_column": 21
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fields",
"type": "java.lang.String[]",
"initializer": "Util.readTokens(values[index], \"|\")",
@@ -2815,6 +3587,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "customerID",
"type": "java.lang.String",
"initializer": "fields[0]",
@@ -2824,6 +3604,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "password",
"type": "java.lang.String",
"initializer": "fields[1]",
@@ -2833,6 +3621,14 @@
"end_column": 31
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "firstName",
"type": "java.lang.String",
"initializer": "fields[2]",
@@ -2842,6 +3638,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "lastName",
"type": "java.lang.String",
"initializer": "fields[3]",
@@ -2851,6 +3655,14 @@
"end_column": 31
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addr1",
"type": "java.lang.String",
"initializer": "fields[4]",
@@ -2860,6 +3672,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addr2",
"type": "java.lang.String",
"initializer": "fields[5]",
@@ -2869,6 +3689,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrCity",
"type": "java.lang.String",
"initializer": "fields[6]",
@@ -2878,6 +3706,14 @@
"end_column": 31
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrState",
"type": "java.lang.String",
"initializer": "fields[7]",
@@ -2887,6 +3723,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrZip",
"type": "java.lang.String",
"initializer": "fields[8]",
@@ -2896,6 +3740,14 @@
"end_column": 30
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "phone",
"type": "java.lang.String",
"initializer": "fields[9]",
@@ -2905,6 +3757,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "Util.getProperties(\"order\")",
@@ -2914,6 +3774,14 @@
"end_column": 48
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -2923,6 +3791,14 @@
"end_column": 22
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fields",
"type": "java.lang.String[]",
"initializer": "Util.readTokens(values[index], \"|\")",
@@ -2932,6 +3808,14 @@
"end_column": 58
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "customerID",
"type": "java.lang.String",
"initializer": "fields[0]",
@@ -2941,6 +3825,14 @@
"end_column": 35
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billName",
"type": "java.lang.String",
"initializer": "fields[1]",
@@ -2950,6 +3842,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billAddr1",
"type": "java.lang.String",
"initializer": "fields[2]",
@@ -2959,6 +3859,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billAddr2",
"type": "java.lang.String",
"initializer": "fields[3]",
@@ -2968,6 +3876,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billCity",
"type": "java.lang.String",
"initializer": "fields[4]",
@@ -2977,6 +3893,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billState",
"type": "java.lang.String",
"initializer": "fields[5]",
@@ -2986,6 +3910,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billZip",
"type": "java.lang.String",
"initializer": "fields[6]",
@@ -2995,6 +3927,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billPhone",
"type": "java.lang.String",
"initializer": "fields[7]",
@@ -3004,6 +3944,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipName",
"type": "java.lang.String",
"initializer": "fields[8]",
@@ -3013,6 +3961,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipAddr1",
"type": "java.lang.String",
"initializer": "fields[9]",
@@ -3022,6 +3978,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipAddr2",
"type": "java.lang.String",
"initializer": "fields[10]",
@@ -3031,6 +3995,14 @@
"end_column": 35
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipCity",
"type": "java.lang.String",
"initializer": "fields[11]",
@@ -3040,6 +4012,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipState",
"type": "java.lang.String",
"initializer": "fields[12]",
@@ -3049,6 +4029,14 @@
"end_column": 35
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipZip",
"type": "java.lang.String",
"initializer": "fields[13]",
@@ -3058,6 +4046,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipPhone",
"type": "java.lang.String",
"initializer": "fields[14]",
@@ -3067,6 +4063,14 @@
"end_column": 35
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shippingMethod",
"type": "int",
"initializer": "Integer.parseInt(fields[15])",
@@ -3076,6 +4080,14 @@
"end_column": 55
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "creditCard",
"type": "java.lang.String",
"initializer": "fields[16]",
@@ -3085,6 +4097,14 @@
"end_column": 36
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "ccNum",
"type": "java.lang.String",
"initializer": "fields[17]",
@@ -3094,6 +4114,14 @@
"end_column": 31
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "ccExpireMonth",
"type": "java.lang.String",
"initializer": "fields[18]",
@@ -3103,6 +4131,14 @@
"end_column": 39
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "ccExpireYear",
"type": "java.lang.String",
"initializer": "fields[19]",
@@ -3112,6 +4148,14 @@
"end_column": 38
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "cardHolder",
"type": "java.lang.String",
"initializer": "fields[20]",
@@ -3121,6 +4165,14 @@
"end_column": 36
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "items",
"type": "java.util.Vector",
"initializer": "new Vector()",
@@ -3130,6 +4182,14 @@
"end_column": 55
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "Util.getProperties(\"backorder\")",
@@ -3139,6 +4199,14 @@
"end_column": 52
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -3148,6 +4216,14 @@
"end_column": 21
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fields",
"type": "java.lang.String[]",
"initializer": "Util.readTokens(values[index], \"|\")",
@@ -3157,6 +4233,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inventoryID",
"type": "java.lang.String",
"initializer": "fields[0]",
@@ -3166,6 +4250,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "amountToOrder",
"type": "int",
"initializer": "new Integer(fields[1]).intValue()",
@@ -3175,6 +4267,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "maximumItems",
"type": "int",
"initializer": "new Integer(fields[2]).intValue()",
@@ -3184,6 +4284,14 @@
"end_column": 56
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "Util.getProperties(\"supplier\")",
@@ -3193,6 +4301,14 @@
"end_column": 51
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -3202,6 +4318,14 @@
"end_column": 21
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fields",
"type": "java.lang.String[]",
"initializer": "Util.readTokens(values[index], \"|\")",
@@ -3211,6 +4335,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "supplierID",
"type": "java.lang.String",
"initializer": "fields[0]",
@@ -3220,6 +4352,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "name",
"type": "java.lang.String",
"initializer": "fields[1]",
@@ -3229,6 +4369,14 @@
"end_column": 27
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "address",
"type": "java.lang.String",
"initializer": "fields[2]",
@@ -3238,6 +4386,14 @@
"end_column": 30
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "city",
"type": "java.lang.String",
"initializer": "fields[3]",
@@ -3247,6 +4403,14 @@
"end_column": 27
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "state",
"type": "java.lang.String",
"initializer": "fields[4]",
@@ -3256,6 +4420,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "zip",
"type": "java.lang.String",
"initializer": "fields[5]",
@@ -3265,6 +4437,14 @@
"end_column": 26
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "phone",
"type": "java.lang.String",
"initializer": "fields[6]",
@@ -3274,6 +4454,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "url",
"type": "java.lang.String",
"initializer": "fields[7]",
@@ -3289,9 +4477,9 @@
"is_entrypoint": false
},
"(ResetDBBean, CatalogMgr, CustomerMgr, BackOrderMgr, SuppliersBean)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java",
"signature": "Populate(ResetDBBean, CatalogMgr, CustomerMgr, BackOrderMgr, SuppliersBean)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -3303,36 +4491,57 @@
"type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean",
"name": "resetDB",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 59,
+ "end_line": 59,
+ "start_column": 18,
+ "end_column": 36
},
{
"type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"name": "c",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 59,
+ "end_line": 59,
+ "start_column": 39,
+ "end_column": 50
},
{
"type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"name": "l",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 59,
+ "end_line": 59,
+ "start_column": 53,
+ "end_column": 65
},
{
"type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"name": "b",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 59,
+ "end_line": 59,
+ "start_column": 68,
+ "end_column": 81
},
{
"type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean",
"name": "s",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 59,
+ "end_line": 59,
+ "start_column": 84,
+ "end_column": 98
}
],
- "code": "{\n this.resetDB = resetDB;\n this.catalog = c;\n this.login = l;\n this.backOrderStock = b;\n this.suppliers = s;\n}",
+ "code": "{\r\n\t\tthis.resetDB = resetDB;\r\n\t\tthis.catalog = c;\r\n\t\tthis.login = l;\r\n\t\tthis.backOrderStock = b;\r\n\t\tthis.suppliers = s;\r\n\t}",
"start_line": 59,
"end_line": 65,
+ "code_start_line": 59,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -3358,9 +4567,26 @@
"is_entrypoint": false
},
"addImage(String, String, CatalogMgr)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java",
"signature": "addImage(String, String, CatalogMgr)",
- "comment": "/**\r\n\t * @param itemID\r\n\t * @param fileName\r\n\t * @param catalog\r\n\t * @throws FileNotFoundException\r\n\t * @throws IOException\r\n\t */",
+ "comments": [
+ {
+ "content": " Open the input file as a stream of bytes",
+ "start_line": 82,
+ "end_line": 82,
+ "start_column": 3,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param itemID\r\n\t * @param fileName\r\n\t * @param catalog\r\n\t * @throws FileNotFoundException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 67,
+ "end_line": 73,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public",
@@ -3376,24 +4602,37 @@
"type": "java.lang.String",
"name": "itemID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 74,
+ "end_line": 74,
+ "start_column": 30,
+ "end_column": 42
},
{
"type": "java.lang.String",
"name": "fileName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 75,
+ "end_line": 75,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"name": "catalog",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 76,
+ "end_line": 76,
+ "start_column": 4,
+ "end_column": 21
}
],
- "code": "{\n URL url = Thread.currentThread().getContextClassLoader().getResource(\"resources/images/\" + fileName);\n Util.debug(\"URL: \" + url);\n fileName = url.getPath();\n Util.debug(\"Fully-qualified Filename: \" + fileName);\n File imgFile = new File(fileName);\n // Open the input file as a stream of bytes\n FileInputStream fis = new FileInputStream(imgFile);\n DataInputStream dis = new DataInputStream(fis);\n int dataSize = dis.available();\n byte[] data = new byte[dataSize];\n dis.readFully(data);\n catalog.setItemImageBytes(itemID, data);\n}",
+ "code": "{\r\n\t\tURL url = Thread.currentThread().getContextClassLoader().getResource(\"resources/images/\" + fileName);\r\n\t\tUtil.debug(\"URL: \" + url);\r\n\t\tfileName = url.getPath();\r\n\t\tUtil.debug(\"Fully-qualified Filename: \" + fileName);\r\n\t\tFile imgFile = new File(fileName);\r\n\t\t// Open the input file as a stream of bytes\r\n\t\tFileInputStream fis = new FileInputStream(imgFile);\r\n\t\tDataInputStream dis = new DataInputStream(fis);\r\n\t\tint dataSize = dis.available();\r\n\t\tbyte[] data = new byte[dataSize];\r\n\t\tdis.readFully(data);\r\n\t\tcatalog.setItemImageBytes(itemID, data);\r\n\t}",
"start_line": 74,
"end_line": 89,
+ "code_start_line": 76,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -3409,6 +4648,7 @@
"call_sites": [
{
"method_name": "getResource",
+ "comment": null,
"receiver_expr": "Thread.currentThread().getContextClassLoader()",
"receiver_type": "java.lang.ClassLoader",
"argument_types": [
@@ -3431,6 +4671,7 @@
},
{
"method_name": "getContextClassLoader",
+ "comment": null,
"receiver_expr": "Thread.currentThread()",
"receiver_type": "java.lang.Thread",
"argument_types": [],
@@ -3451,6 +4692,7 @@
},
{
"method_name": "currentThread",
+ "comment": null,
"receiver_expr": "Thread",
"receiver_type": "java.lang.Thread",
"argument_types": [],
@@ -3471,6 +4713,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -3493,6 +4736,7 @@
},
{
"method_name": "getPath",
+ "comment": null,
"receiver_expr": "url",
"receiver_type": "java.net.URL",
"argument_types": [],
@@ -3513,6 +4757,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -3535,6 +4780,7 @@
},
{
"method_name": "available",
+ "comment": null,
"receiver_expr": "dis",
"receiver_type": "java.io.DataInputStream",
"argument_types": [],
@@ -3555,6 +4801,7 @@
},
{
"method_name": "readFully",
+ "comment": null,
"receiver_expr": "dis",
"receiver_type": "java.io.DataInputStream",
"argument_types": [
@@ -3577,6 +4824,7 @@
},
{
"method_name": "setItemImageBytes",
+ "comment": null,
"receiver_expr": "catalog",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"argument_types": [
@@ -3600,6 +4848,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.io.File",
"argument_types": [
@@ -3622,6 +4871,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.io.FileInputStream",
"argument_types": [
@@ -3644,6 +4894,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.io.DataInputStream",
"argument_types": [
@@ -3667,6 +4918,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "url",
"type": "java.net.URL",
"initializer": "Thread.currentThread().getContextClassLoader().getResource(\"resources/images/\" + fileName)",
@@ -3676,6 +4935,14 @@
"end_column": 102
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "imgFile",
"type": "java.io.File",
"initializer": "new File(fileName)",
@@ -3685,6 +4952,14 @@
"end_column": 35
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fis",
"type": "java.io.FileInputStream",
"initializer": "new FileInputStream(imgFile)",
@@ -3694,6 +4969,14 @@
"end_column": 52
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "dis",
"type": "java.io.DataInputStream",
"initializer": "new DataInputStream(fis)",
@@ -3703,6 +4986,14 @@
"end_column": 48
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "dataSize",
"type": "int",
"initializer": "dis.available()",
@@ -3712,6 +5003,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "data",
"type": "byte[]",
"initializer": "new byte[dataSize]",
@@ -3729,7 +5028,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean",
"start_line": 41,
@@ -3743,7 +5049,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"start_line": 43,
@@ -3757,7 +5070,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"start_line": 45,
@@ -3771,7 +5091,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean",
"start_line": 47,
@@ -3785,7 +5112,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"start_line": 49,
@@ -3799,7 +5133,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean",
"start_line": 51,
@@ -3813,15 +5154,187 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/MailAction.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/MailAction.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/MailAction.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/MailAction.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * This class sends the email confirmation message.\r\n ",
+ "start_line": 27,
+ "end_line": 29,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 32,
+ "end_line": 34,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Public constructor ",
+ "start_line": 40,
+ "end_line": 40,
+ "start_column": 2,
+ "end_column": 26,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Send the email order confirmation message.\r\n\t *\r\n\t * @param customer\r\n\t * The customer information.\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t ",
+ "start_line": 44,
+ "end_line": 51,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " The MailerAppException will be ignored since mail may not be configured.",
+ "start_line": 58,
+ "end_line": 58,
+ "start_column": 3,
+ "end_column": 77,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"javax.inject.Inject",
"javax.inject.Named",
@@ -3841,7 +5354,48 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * This class sends the email confirmation message.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 32,
+ "end_line": 34,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Public constructor ",
+ "start_line": 40,
+ "end_line": 40,
+ "start_column": 2,
+ "end_column": 26,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Send the email order confirmation message.\r\n\t *\r\n\t * @param customer\r\n\t * The customer information.\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t ",
+ "start_line": 44,
+ "end_line": 51,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " The MailerAppException will be ignored since mail may not be configured.",
+ "start_line": 58,
+ "end_line": 58,
+ "start_column": 3,
+ "end_column": 77,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * This class sends the email confirmation message.\r\n ",
+ "start_line": 27,
+ "end_line": 29,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -3855,9 +5409,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/MailAction.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/MailAction.java",
"signature": "MailAction()",
- "comment": "/** Public constructor */",
+ "comments": [
+ {
+ "content": " Public constructor ",
+ "start_line": 40,
+ "end_line": 40,
+ "start_column": 2,
+ "end_column": 26,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -3865,9 +5428,10 @@
"thrown_exceptions": [],
"declaration": "public MailAction()",
"parameters": [],
- "code": "{\n}",
+ "code": "{\r\n\t}",
"start_line": 41,
"end_line": 42,
+ "code_start_line": 41,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -3881,9 +5445,26 @@
"is_entrypoint": false
},
"sendConfirmationMessage(Customer, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/MailAction.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/MailAction.java",
"signature": "sendConfirmationMessage(Customer, String)",
- "comment": "/**\r\n\t * Send the email order confirmation message.\r\n\t *\r\n\t * @param customer\r\n\t * The customer information.\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t */",
+ "comments": [
+ {
+ "content": " The MailerAppException will be ignored since mail may not be configured.",
+ "start_line": 58,
+ "end_line": 58,
+ "start_column": 3,
+ "end_column": 77,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Send the email order confirmation message.\r\n\t *\r\n\t * @param customer\r\n\t * The customer information.\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t ",
+ "start_line": 44,
+ "end_line": 51,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public",
@@ -3896,18 +5477,27 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"name": "customer",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 52,
+ "end_line": 52,
+ "start_column": 44,
+ "end_column": 60
},
{
"type": "java.lang.String",
"name": "orderKey",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 53,
+ "end_line": 53,
+ "start_column": 4,
+ "end_column": 18
}
],
- "code": "{\n try {\n System.out.println(\"mailer=\" + mailer);\n mailer.createAndSendMail(customer, orderKey);\n }// The MailerAppException will be ignored since mail may not be configured.\n catch (MailerAppException e) {\n Util.debug(\"Mailer threw exception, mail may not be configured. Exception:\" + e);\n }\n}",
+ "code": "{\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"mailer=\" + mailer);\r\n\t\t\tmailer.createAndSendMail(customer, orderKey);\r\n\t\t}\r\n\t\t// The MailerAppException will be ignored since mail may not be configured.\r\n\t\tcatch (MailerAppException e) {\r\n\t\t\tUtil.debug(\"Mailer threw exception, mail may not be configured. Exception:\" + e);\r\n\t\t}\r\n\t}",
"start_line": 52,
"end_line": 62,
+ "code_start_line": 53,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -3921,6 +5511,7 @@
"call_sites": [
{
"method_name": "println",
+ "comment": null,
"receiver_expr": "System.out",
"receiver_type": "java.io.PrintStream",
"argument_types": [
@@ -3943,6 +5534,7 @@
},
{
"method_name": "createAndSendMail",
+ "comment": null,
"receiver_expr": "mailer",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.MailerBean",
"argument_types": [
@@ -3966,6 +5558,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -3996,7 +5589,14 @@
},
"field_declarations": [
{
- "comment": "/**\r\n\t * \r\n\t */",
+ "comment": {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 32,
+ "end_line": 34,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 35,
@@ -4012,7 +5612,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.MailerBean",
"start_line": 37,
@@ -4028,15 +5635,211 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2004,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Bean implementation class for Enterprise Bean: Suppliers\r\n ",
+ "start_line": 31,
+ "end_line": 33,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t ",
+ "start_line": 40,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return Supplier\r\n\t ",
+ "start_line": 73,
+ "end_line": 75,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Retrieve the first Supplier Info",
+ "start_line": 77,
+ "end_line": 77,
+ "start_column": 3,
+ "end_column": 37,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t * @return supplierInfo\r\n\t ",
+ "start_line": 93,
+ "end_line": 103,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Create a new Supplier if there is NOT an existing Supplier.",
+ "start_line": 117,
+ "end_line": 117,
+ "start_column": 5,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " supplier = getSupplierLocalHome().findByPrimaryKey(new SupplierKey(supplierID));",
+ "start_line": 118,
+ "end_line": 118,
+ "start_column": 5,
+ "end_column": 87,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @return suppliers\r\n\t ",
+ "start_line": 136,
+ "end_line": 138,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.Serializable",
"java.util.Collection",
@@ -4059,7 +5862,72 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * Bean implementation class for Enterprise Bean: Suppliers\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t ",
+ "start_line": 40,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return Supplier\r\n\t ",
+ "start_line": 73,
+ "end_line": 75,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Retrieve the first Supplier Info",
+ "start_line": 77,
+ "end_line": 77,
+ "start_column": 3,
+ "end_column": 37,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t * @return supplierInfo\r\n\t ",
+ "start_line": 93,
+ "end_line": 103,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Create a new Supplier if there is NOT an existing Supplier.",
+ "start_line": 117,
+ "end_line": 117,
+ "start_column": 5,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " supplier = getSupplierLocalHome().findByPrimaryKey(new SupplierKey(supplierID));",
+ "start_line": 118,
+ "end_line": 118,
+ "start_column": 5,
+ "end_column": 87,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @return suppliers\r\n\t ",
+ "start_line": 136,
+ "end_line": 138,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Bean implementation class for Enterprise Bean: Suppliers\r\n ",
+ "start_line": 31,
+ "end_line": 33,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -4073,9 +5941,34 @@
"nested_type_declarations": [],
"callable_declarations": {
"updateSupplier(String, String, String, String, String, String, String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java",
"signature": "updateSupplier(String, String, String, String, String, String, String, String)",
- "comment": "/**\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t * @return supplierInfo\r\n\t */",
+ "comments": [
+ {
+ "content": " Create a new Supplier if there is NOT an existing Supplier.",
+ "start_line": 117,
+ "end_line": 117,
+ "start_column": 5,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " supplier = getSupplierLocalHome().findByPrimaryKey(new SupplierKey(supplierID));",
+ "start_line": 118,
+ "end_line": 118,
+ "start_column": 5,
+ "end_column": 87,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t * @return supplierInfo\r\n\t ",
+ "start_line": 93,
+ "end_line": 103,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -4087,54 +5980,87 @@
"type": "java.lang.String",
"name": "supplierID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 104,
+ "end_line": 104,
+ "start_column": 33,
+ "end_column": 49
},
{
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 105,
+ "end_line": 105,
+ "start_column": 4,
+ "end_column": 14
},
{
"type": "java.lang.String",
"name": "street",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 106,
+ "end_line": 106,
+ "start_column": 4,
+ "end_column": 16
},
{
"type": "java.lang.String",
"name": "city",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 107,
+ "end_line": 107,
+ "start_column": 4,
+ "end_column": 14
},
{
"type": "java.lang.String",
"name": "state",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 108,
+ "end_line": 108,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "zip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 109,
+ "end_line": 109,
+ "start_column": 4,
+ "end_column": 13
},
{
"type": "java.lang.String",
"name": "phone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 110,
+ "end_line": 110,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "url",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 111,
+ "end_line": 111,
+ "start_column": 4,
+ "end_column": 13
}
],
- "code": "{\n Supplier supplier = null;\n try {\n Util.debug(\"SuppliersBean.updateSupplier() - Entered\");\n supplier = em.find(Supplier.class, supplierID);\n if (supplier != null) {\n // Create a new Supplier if there is NOT an existing Supplier.\n // supplier = getSupplierLocalHome().findByPrimaryKey(new SupplierKey(supplierID));\n supplier.setName(name);\n supplier.setStreet(street);\n supplier.setCity(city);\n supplier.setUsstate(state);\n supplier.setZip(zip);\n supplier.setPhone(phone);\n supplier.setUrl(url);\n } else {\n Util.debug(\"SuppliersBean.updateSupplier() - supplier doesn't exist.\");\n Util.debug(\"SuppliersBean.updateSupplier() - Couldn't update Supplier for SupplierID: \" + supplierID);\n }\n } catch (Exception e) {\n Util.debug(\"SuppliersBean.createSupplier() - Exception: \" + e);\n }\n return (supplier);\n}",
+ "code": "{\r\n\t\tSupplier supplier = null;\r\n\t\ttry {\r\n\t\t\tUtil.debug(\"SuppliersBean.updateSupplier() - Entered\");\r\n\t\t\tsupplier = em.find(Supplier.class, supplierID);\r\n\t\t\tif (supplier != null) {\r\n\t\t\t\t// Create a new Supplier if there is NOT an existing Supplier.\r\n\t\t\t\t// supplier = getSupplierLocalHome().findByPrimaryKey(new SupplierKey(supplierID));\r\n\t\t\t\tsupplier.setName(name);\r\n\t\t\t\tsupplier.setStreet(street);\r\n\t\t\t\tsupplier.setCity(city);\r\n\t\t\t\tsupplier.setUsstate(state);\r\n\t\t\t\tsupplier.setZip(zip);\r\n\t\t\t\tsupplier.setPhone(phone);\r\n\t\t\t\tsupplier.setUrl(url);\r\n\t\t\t} else {\r\n\t\t\t\tUtil.debug(\"SuppliersBean.updateSupplier() - supplier doesn't exist.\");\r\n\t\t\t\tUtil.debug(\"SuppliersBean.updateSupplier() - Couldn't update Supplier for SupplierID: \" + supplierID);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"SuppliersBean.createSupplier() - Exception: \" + e);\r\n\t\t}\r\n\t\treturn (supplier);\r\n\t}",
"start_line": 104,
"end_line": 134,
+ "code_start_line": 111,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"is_implicit": false,
"is_constructor": false,
@@ -4147,6 +6073,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -4169,6 +6096,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -4192,6 +6120,14 @@
},
{
"method_name": "setName",
+ "comment": {
+ "content": " supplier = getSupplierLocalHome().findByPrimaryKey(new SupplierKey(supplierID));",
+ "start_line": 118,
+ "end_line": 118,
+ "start_column": 5,
+ "end_column": 87,
+ "is_javadoc": false
+ },
"receiver_expr": "supplier",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -4214,6 +6150,7 @@
},
{
"method_name": "setStreet",
+ "comment": null,
"receiver_expr": "supplier",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -4236,6 +6173,7 @@
},
{
"method_name": "setCity",
+ "comment": null,
"receiver_expr": "supplier",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -4258,6 +6196,7 @@
},
{
"method_name": "setUsstate",
+ "comment": null,
"receiver_expr": "supplier",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -4280,6 +6219,7 @@
},
{
"method_name": "setZip",
+ "comment": null,
"receiver_expr": "supplier",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -4302,6 +6242,7 @@
},
{
"method_name": "setPhone",
+ "comment": null,
"receiver_expr": "supplier",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -4324,6 +6265,7 @@
},
{
"method_name": "setUrl",
+ "comment": null,
"receiver_expr": "supplier",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -4346,6 +6288,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -4368,6 +6311,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -4390,6 +6334,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -4413,6 +6358,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "supplier",
"type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"initializer": "null",
@@ -4428,9 +6381,18 @@
"is_entrypoint": false
},
"createSupplier(String, String, String, String, String, String, String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java",
"signature": "createSupplier(String, String, String, String, String, String, String, String)",
- "comment": "/**\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t ",
+ "start_line": 40,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -4442,54 +6404,87 @@
"type": "java.lang.String",
"name": "supplierID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 50,
+ "end_line": 50,
+ "start_column": 29,
+ "end_column": 45
},
{
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 4,
+ "end_column": 14
},
{
"type": "java.lang.String",
"name": "street",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 52,
+ "end_line": 52,
+ "start_column": 4,
+ "end_column": 16
},
{
"type": "java.lang.String",
"name": "city",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 53,
+ "end_line": 53,
+ "start_column": 4,
+ "end_column": 14
},
{
"type": "java.lang.String",
"name": "state",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 54,
+ "end_line": 54,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "zip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 55,
+ "end_line": 55,
+ "start_column": 4,
+ "end_column": 13
},
{
"type": "java.lang.String",
"name": "phone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 56,
+ "end_line": 56,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "url",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 57,
+ "end_line": 57,
+ "start_column": 4,
+ "end_column": 13
}
],
- "code": "{\n try {\n Util.debug(\"SuppliersBean.createSupplier() - Entered\");\n Supplier supplier = null;\n supplier = em.find(Supplier.class, supplierID);\n if (supplier == null) {\n Util.debug(\"SuppliersBean.createSupplier() - supplier doesn't exist.\");\n Util.debug(\"SuppliersBean.createSupplier() - Creating Supplier for SupplierID: \" + supplierID);\n supplier = new Supplier(supplierID, name, street, city, state, zip, phone, url);\n em.persist(supplier);\n }\n } catch (Exception e) {\n Util.debug(\"SuppliersBean.createSupplier() - Exception: \" + e);\n }\n}",
+ "code": "{\r\n\t\ttry {\r\n\t\t\tUtil.debug(\"SuppliersBean.createSupplier() - Entered\");\r\n\t\t\tSupplier supplier = null;\r\n\t\t\tsupplier = em.find(Supplier.class, supplierID);\r\n\t\t\tif (supplier == null) {\r\n\t\t\t\tUtil.debug(\"SuppliersBean.createSupplier() - supplier doesn't exist.\");\r\n\t\t\t\tUtil.debug(\"SuppliersBean.createSupplier() - Creating Supplier for SupplierID: \" + supplierID);\r\n\t\t\t\tsupplier = new Supplier(supplierID, name, street, city, state, zip, phone, url);\r\n\t\t\t\tem.persist(supplier);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"SuppliersBean.createSupplier() - Exception: \" + e);\r\n\t\t}\r\n\t}",
"start_line": 50,
"end_line": 71,
+ "code_start_line": 57,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -4502,6 +6497,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -4524,6 +6520,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -4547,6 +6544,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -4569,6 +6567,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -4591,6 +6590,7 @@
},
{
"method_name": "persist",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -4613,6 +6613,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -4635,6 +6636,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -4665,6 +6667,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "supplier",
"type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"initializer": "null",
@@ -4680,9 +6690,26 @@
"is_entrypoint": false
},
"getSupplier()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java",
"signature": "getSupplier()",
- "comment": "/**\r\n\t * @return Supplier\r\n\t */",
+ "comments": [
+ {
+ "content": " Retrieve the first Supplier Info",
+ "start_line": 77,
+ "end_line": 77,
+ "start_column": 3,
+ "end_column": 37,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @return Supplier\r\n\t ",
+ "start_line": 73,
+ "end_line": 75,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -4690,9 +6717,10 @@
"thrown_exceptions": [],
"declaration": "public Supplier getSupplier()",
"parameters": [],
- "code": "{\n // Retrieve the first Supplier Info\n try {\n Collection suppliers = this.findSuppliers();\n if (suppliers != null) {\n Util.debug(\"AdminServlet.getSupplierInfo() - Supplier found!\");\n Iterator i = suppliers.iterator();\n if (i.hasNext()) {\n return (Supplier) i.next();\n }\n }\n } catch (Exception e) {\n Util.debug(\"AdminServlet.getSupplierInfo() - Exception:\" + e);\n }\n return null;\n}",
+ "code": "{\r\n\t\t// Retrieve the first Supplier Info\r\n\t\ttry {\r\n\t\t\tCollection suppliers = this.findSuppliers();\r\n\t\t\tif (suppliers != null) {\r\n\t\t\t\tUtil.debug(\"AdminServlet.getSupplierInfo() - Supplier found!\");\r\n\t\t\t\tIterator i = suppliers.iterator();\r\n\t\t\t\tif (i.hasNext()) {\r\n\t\t\t\t\treturn (Supplier) i.next();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"AdminServlet.getSupplierInfo() - Exception:\" + e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"start_line": 76,
"end_line": 91,
+ "code_start_line": 76,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"is_implicit": false,
"is_constructor": false,
@@ -4704,6 +6732,7 @@
"call_sites": [
{
"method_name": "findSuppliers",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean",
"argument_types": [],
@@ -4724,6 +6753,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -4746,6 +6776,7 @@
},
{
"method_name": "iterator",
+ "comment": null,
"receiver_expr": "suppliers",
"receiver_type": "java.util.Collection",
"argument_types": [],
@@ -4766,6 +6797,7 @@
},
{
"method_name": "hasNext",
+ "comment": null,
"receiver_expr": "i",
"receiver_type": "java.util.Iterator",
"argument_types": [],
@@ -4786,6 +6818,7 @@
},
{
"method_name": "next",
+ "comment": null,
"receiver_expr": "i",
"receiver_type": "java.util.Iterator",
"argument_types": [],
@@ -4806,6 +6839,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -4829,6 +6863,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "suppliers",
"type": "java.util.Collection",
"initializer": "this.findSuppliers()",
@@ -4838,6 +6880,14 @@
"end_column": 56
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "i",
"type": "java.util.Iterator",
"initializer": "suppliers.iterator()",
@@ -4853,9 +6903,18 @@
"is_entrypoint": false
},
"findSuppliers()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/SuppliersBean.java",
"signature": "findSuppliers()",
- "comment": "/**\r\n\t * @return suppliers\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return suppliers\r\n\t ",
+ "start_line": 136,
+ "end_line": 138,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [
"@SuppressWarnings(\"unchecked\")"
],
@@ -4865,9 +6924,10 @@
"thrown_exceptions": [],
"declaration": "private Collection findSuppliers()",
"parameters": [],
- "code": "{\n Query q = em.createNamedQuery(\"findAllSuppliers\");\n return q.getResultList();\n}",
+ "code": "{\r\n\t\tQuery q = em.createNamedQuery(\"findAllSuppliers\");\r\n\t\treturn q.getResultList();\r\n\t}",
"start_line": 139,
"end_line": 143,
+ "code_start_line": 140,
"return_type": "java.util.Collection",
"is_implicit": false,
"is_constructor": false,
@@ -4880,6 +6940,7 @@
"call_sites": [
{
"method_name": "createNamedQuery",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -4902,6 +6963,7 @@
},
{
"method_name": "getResultList",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [],
@@ -4923,6 +6985,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "q",
"type": "Query",
"initializer": "em.createNamedQuery(\"findAllSuppliers\")",
@@ -4940,7 +7010,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "EntityManager",
"start_line": 37,
@@ -4954,15 +7031,155 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatePasswords.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatePasswords.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatePasswords.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatePasswords.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2003,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * A JSF validator class, not implemented in Bean Validation since validation is only required\r\n * during GUI interaction.\r\n ",
+ "start_line": 27,
+ "end_line": 30,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"javax.faces.component.UIComponent",
"javax.faces.component.UIInput",
@@ -4982,7 +7199,16 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * A JSF validator class, not implemented in Bean Validation since validation is only required\r\n * during GUI interaction.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * A JSF validator class, not implemented in Bean Validation since validation is only required\r\n * during GUI interaction.\r\n ",
+ "start_line": 27,
+ "end_line": 30,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"Validator"
],
@@ -4996,9 +7222,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"validate(FacesContext, UIComponent, Object)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatePasswords.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatePasswords.java",
"signature": "validate(FacesContext, UIComponent, Object)",
- "comment": "",
+ "comments": [],
"annotations": [
"@Override"
],
@@ -5014,24 +7240,37 @@
"type": "FacesContext",
"name": "context",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 35,
+ "end_line": 35,
+ "start_column": 23,
+ "end_column": 42
},
{
"type": "UIComponent",
"name": "component",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 35,
+ "end_line": 35,
+ "start_column": 45,
+ "end_column": 65
},
{
"type": "java.lang.Object",
"name": "value",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 35,
+ "end_line": 35,
+ "start_column": 68,
+ "end_column": 79
}
],
- "code": "{\n UIInput otherComponent;\n String otherID = (String) component.getAttributes().get(\"otherPasswordID\");\n String otherStr;\n String str = (String) value;\n otherComponent = (UIInput) context.getViewRoot().findComponent(otherID);\n otherStr = (String) otherComponent.getValue();\n if (!otherStr.equals(str)) {\n ValidatorUtils.addErrorMessage(context, \"Passwords do not match.\");\n }\n}",
+ "code": "{\r\n\t\tUIInput otherComponent;\r\n\t\tString otherID = (String) component.getAttributes().get(\"otherPasswordID\");\r\n\t\tString otherStr;\r\n\t\tString str = (String) value;\r\n\r\n\t\totherComponent = (UIInput) context.getViewRoot().findComponent(otherID);\r\n\t\totherStr = (String) otherComponent.getValue();\r\n\r\n\t\tif (!otherStr.equals(str)) {\r\n\t\t\tValidatorUtils.addErrorMessage(context, \"Passwords do not match.\");\r\n\t\t}\r\n\t}",
"start_line": 34,
"end_line": 47,
+ "code_start_line": 35,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -5043,6 +7282,7 @@
"call_sites": [
{
"method_name": "get",
+ "comment": null,
"receiver_expr": "component.getAttributes()",
"receiver_type": "",
"argument_types": [
@@ -5065,6 +7305,7 @@
},
{
"method_name": "getAttributes",
+ "comment": null,
"receiver_expr": "component",
"receiver_type": "",
"argument_types": [],
@@ -5085,6 +7326,7 @@
},
{
"method_name": "findComponent",
+ "comment": null,
"receiver_expr": "context.getViewRoot()",
"receiver_type": "",
"argument_types": [
@@ -5107,6 +7349,7 @@
},
{
"method_name": "getViewRoot",
+ "comment": null,
"receiver_expr": "context",
"receiver_type": "",
"argument_types": [],
@@ -5127,6 +7370,7 @@
},
{
"method_name": "getValue",
+ "comment": null,
"receiver_expr": "otherComponent",
"receiver_type": "",
"argument_types": [],
@@ -5147,6 +7391,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "otherStr",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -5169,6 +7414,7 @@
},
{
"method_name": "addErrorMessage",
+ "comment": null,
"receiver_expr": "ValidatorUtils",
"receiver_type": "com.ibm.websphere.samples.pbw.war.ValidatorUtils",
"argument_types": [
@@ -5193,6 +7439,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "otherComponent",
"type": "UIInput",
"initializer": "",
@@ -5202,6 +7456,14 @@
"end_column": 24
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "otherID",
"type": "java.lang.String",
"initializer": "(String) component.getAttributes().get(\"otherPasswordID\")",
@@ -5211,6 +7473,14 @@
"end_column": 76
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "otherStr",
"type": "java.lang.String",
"initializer": "",
@@ -5220,6 +7490,14 @@
"end_column": 17
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "str",
"type": "java.lang.String",
"initializer": "(String) value",
@@ -5236,15 +7514,155 @@
}
},
"field_declarations": [],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2003,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * A JSF backing bean used to store information for the login web page. It is accessed via the\r\n * account bean.\r\n *\r\n ",
+ "start_line": 23,
+ "end_line": 27,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"javax.validation.constraints.Pattern",
"javax.validation.constraints.Size"
@@ -5260,7 +7678,16 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * A JSF backing bean used to store information for the login web page. It is accessed via the\r\n * account bean.\r\n *\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * A JSF backing bean used to store information for the login web page. It is accessed via the\r\n * account bean.\r\n *\r\n ",
+ "start_line": 23,
+ "end_line": 27,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -5270,9 +7697,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
"signature": "LoginInfo()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5280,9 +7707,10 @@
"thrown_exceptions": [],
"declaration": "public LoginInfo()",
"parameters": [],
- "code": "{\n}",
+ "code": "{\r\n\t}",
"start_line": 38,
"end_line": 39,
+ "code_start_line": 38,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -5296,9 +7724,9 @@
"is_entrypoint": false
},
"getPassword()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
"signature": "getPassword()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5306,9 +7734,10 @@
"thrown_exceptions": [],
"declaration": "public String getPassword()",
"parameters": [],
- "code": "{\n return this.password;\n}",
+ "code": "{\r\n\t\treturn this.password;\r\n\t}",
"start_line": 53,
"end_line": 55,
+ "code_start_line": 53,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -5326,9 +7755,9 @@
"is_entrypoint": false
},
"setEmail(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
"signature": "setEmail(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5340,12 +7769,17 @@
"type": "java.lang.String",
"name": "email",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 61,
+ "end_line": 61,
+ "start_column": 23,
+ "end_column": 34
}
],
- "code": "{\n this.email = email;\n}",
+ "code": "{\r\n\t\tthis.email = email;\r\n\t}",
"start_line": 61,
"end_line": 63,
+ "code_start_line": 61,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -5363,9 +7797,9 @@
"is_entrypoint": false
},
"setMessage(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
"signature": "setMessage(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5377,12 +7811,17 @@
"type": "java.lang.String",
"name": "message",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 65,
+ "end_line": 65,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n this.message = message;\n}",
+ "code": "{\r\n\t\tthis.message = message;\r\n\t}",
"start_line": 65,
"end_line": 67,
+ "code_start_line": 65,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -5400,9 +7839,9 @@
"is_entrypoint": false
},
"getCheckPassword()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
"signature": "getCheckPassword()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5410,9 +7849,10 @@
"thrown_exceptions": [],
"declaration": "public String getCheckPassword()",
"parameters": [],
- "code": "{\n return this.checkPassword;\n}",
+ "code": "{\r\n\t\treturn this.checkPassword;\r\n\t}",
"start_line": 41,
"end_line": 43,
+ "code_start_line": 41,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -5430,9 +7870,9 @@
"is_entrypoint": false
},
"setCheckPassword(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
"signature": "setCheckPassword(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5444,12 +7884,17 @@
"type": "java.lang.String",
"name": "checkPassword",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 57,
+ "end_line": 57,
+ "start_column": 31,
+ "end_column": 50
}
],
- "code": "{\n this.checkPassword = checkPassword;\n}",
+ "code": "{\r\n\t\tthis.checkPassword = checkPassword;\r\n\t}",
"start_line": 57,
"end_line": 59,
+ "code_start_line": 57,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -5467,9 +7912,9 @@
"is_entrypoint": false
},
"getMessage()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
"signature": "getMessage()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5477,9 +7922,10 @@
"thrown_exceptions": [],
"declaration": "public String getMessage()",
"parameters": [],
- "code": "{\n return this.message;\n}",
+ "code": "{\r\n\t\treturn this.message;\r\n\t}",
"start_line": 49,
"end_line": 51,
+ "code_start_line": 49,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -5497,9 +7943,9 @@
"is_entrypoint": false
},
"getEmail()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
"signature": "getEmail()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5507,9 +7953,10 @@
"thrown_exceptions": [],
"declaration": "public String getEmail()",
"parameters": [],
- "code": "{\n return this.email;\n}",
+ "code": "{\r\n\t\treturn this.email;\r\n\t}",
"start_line": 45,
"end_line": 47,
+ "code_start_line": 45,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -5527,9 +7974,9 @@
"is_entrypoint": false
},
"setPassword(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/LoginInfo.java",
"signature": "setPassword(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5541,12 +7988,17 @@
"type": "java.lang.String",
"name": "password",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 69,
+ "end_line": 69,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.password = password;\n}",
+ "code": "{\r\n\t\tthis.password = password;\r\n\t}",
"start_line": 69,
"end_line": 71,
+ "code_start_line": 69,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -5566,7 +8018,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 29,
@@ -5580,7 +8039,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 31,
@@ -5596,7 +8062,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 33,
@@ -5610,7 +8083,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 35,
@@ -5626,15 +8106,155 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Provides backing bean support for the product web page. Accessed via the shopping bean.\r\n *\r\n ",
+ "start_line": 28,
+ "end_line": 31,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.Serializable",
"java.text.NumberFormat",
@@ -5654,7 +8274,16 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * Provides backing bean support for the product web page. Accessed via the shopping bean.\r\n *\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Provides backing bean support for the product web page. Accessed via the shopping bean.\r\n *\r\n ",
+ "start_line": 28,
+ "end_line": 31,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -5666,9 +8295,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"getCategoryName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
"signature": "getCategoryName()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5676,9 +8305,10 @@
"thrown_exceptions": [],
"declaration": "public String getCategoryName()",
"parameters": [],
- "code": "{\n return Util.getCategoryString(this.inventory.getCategory());\n}",
+ "code": "{\r\n\t\treturn Util.getCategoryString(this.inventory.getCategory());\r\n\t}",
"start_line": 43,
"end_line": 45,
+ "code_start_line": 43,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -5691,6 +8321,7 @@
"call_sites": [
{
"method_name": "getCategoryString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -5713,6 +8344,7 @@
},
{
"method_name": "getCategory",
+ "comment": null,
"receiver_expr": "this.inventory",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -5739,9 +8371,9 @@
"is_entrypoint": false
},
"getQuantity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
"signature": "getQuantity()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5749,9 +8381,10 @@
"thrown_exceptions": [],
"declaration": "public int getQuantity()",
"parameters": [],
- "code": "{\n return this.quantity;\n}",
+ "code": "{\r\n\t\treturn this.quantity;\r\n\t}",
"start_line": 75,
"end_line": 77,
+ "code_start_line": 75,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -5767,9 +8400,9 @@
"is_entrypoint": false
},
"getPrice()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
"signature": "getPrice()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5777,9 +8410,10 @@
"thrown_exceptions": [],
"declaration": "public String getPrice()",
"parameters": [],
- "code": "{\n return NumberFormat.getCurrencyInstance(Locale.US).format(new Float(this.inventory.getPrice()));\n}",
+ "code": "{\r\n\t\treturn NumberFormat.getCurrencyInstance(Locale.US).format(new Float(this.inventory.getPrice()));\r\n\t}",
"start_line": 71,
"end_line": 73,
+ "code_start_line": 71,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -5794,6 +8428,7 @@
"call_sites": [
{
"method_name": "format",
+ "comment": null,
"receiver_expr": "NumberFormat.getCurrencyInstance(Locale.US)",
"receiver_type": "java.text.NumberFormat",
"argument_types": [
@@ -5816,6 +8451,7 @@
},
{
"method_name": "getCurrencyInstance",
+ "comment": null,
"receiver_expr": "NumberFormat",
"receiver_type": "java.text.NumberFormat",
"argument_types": [
@@ -5838,6 +8474,7 @@
},
{
"method_name": "getPrice",
+ "comment": null,
"receiver_expr": "this.inventory",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -5858,6 +8495,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Float",
"argument_types": [
@@ -5886,9 +8524,9 @@
"is_entrypoint": false
},
"getInventory()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
"signature": "getInventory()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5896,9 +8534,10 @@
"thrown_exceptions": [],
"declaration": "public Inventory getInventory()",
"parameters": [],
- "code": "{\n return this.inventory;\n}",
+ "code": "{\r\n\t\treturn this.inventory;\r\n\t}",
"start_line": 47,
"end_line": 49,
+ "code_start_line": 47,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"is_implicit": false,
"is_constructor": false,
@@ -5916,9 +8555,9 @@
"is_entrypoint": false
},
"setQuantity(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
"signature": "setQuantity(int)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -5930,12 +8569,17 @@
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 79,
+ "end_line": 79,
+ "start_column": 26,
+ "end_column": 37
}
],
- "code": "{\n this.quantity = quantity;\n}",
+ "code": "{\r\n\t\tthis.quantity = quantity;\r\n\t}",
"start_line": 79,
"end_line": 81,
+ "code_start_line": 79,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -5951,9 +8595,9 @@
"is_entrypoint": false
},
"(Inventory)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
"signature": "ProductBean(Inventory)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"protected"
@@ -5965,12 +8609,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "inventory",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 37,
+ "end_line": 37,
+ "start_column": 24,
+ "end_column": 42
}
],
- "code": "{\n Objects.requireNonNull(inventory, \"Inventory cannot be null\");\n this.inventory = inventory;\n this.quantity = 1;\n}",
+ "code": "{\r\n\t Objects.requireNonNull(inventory, \"Inventory cannot be null\");\r\n\t\tthis.inventory = inventory;\r\n\t\tthis.quantity = 1;\r\n\t}",
"start_line": 37,
"end_line": 41,
+ "code_start_line": 37,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -5984,6 +8633,7 @@
"call_sites": [
{
"method_name": "requireNonNull",
+ "comment": null,
"receiver_expr": "Objects",
"receiver_type": "java.util.Objects",
"argument_types": [
@@ -6013,9 +8663,9 @@
"is_entrypoint": false
},
"getMenuString()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java",
"signature": "getMenuString()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -6023,9 +8673,10 @@
"thrown_exceptions": [],
"declaration": "public String getMenuString()",
"parameters": [],
- "code": "{\n String categoryString = getCategoryName();\n if (categoryString.equals(\"Flowers\")) {\n return \"banner:menu1\";\n } else if (categoryString.equals(\"Fruits & Vegetables\")) {\n return \"banner:menu2\";\n } else if (categoryString.equals(\"Trees\")) {\n return \"banner:menu3\";\n } else {\n return \"banner:menu4\";\n }\n}",
+ "code": "{\r\n\t\tString categoryString = getCategoryName();\r\n\r\n\t\tif (categoryString.equals(\"Flowers\")) {\r\n\t\t\treturn \"banner:menu1\";\r\n\t\t}\r\n\r\n\t\telse if (categoryString.equals(\"Fruits & Vegetables\")) {\r\n\t\t\treturn \"banner:menu2\";\r\n\t\t}\r\n\r\n\t\telse if (categoryString.equals(\"Trees\")) {\r\n\t\t\treturn \"banner:menu3\";\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\treturn \"banner:menu4\";\r\n\t\t}\r\n\t}",
"start_line": 51,
"end_line": 69,
+ "code_start_line": 51,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -6036,6 +8687,7 @@
"call_sites": [
{
"method_name": "getCategoryName",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -6056,6 +8708,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "categoryString",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -6078,6 +8731,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "categoryString",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -6100,6 +8754,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "categoryString",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -6123,6 +8778,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "categoryString",
"type": "java.lang.String",
"initializer": "getCategoryName()",
@@ -6140,7 +8803,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 33,
@@ -6156,7 +8826,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"start_line": 34,
@@ -6170,7 +8847,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "int",
"start_line": 35,
@@ -6184,15 +8868,435 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Servlet to handle customer account actions, such as login and register.\r\n ",
+ "start_line": 37,
+ "end_line": 39,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": " Servlet action codes.",
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 2,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Servlet initialization.\r\n\t ",
+ "start_line": 56,
+ "end_line": 58,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 63,
+ "end_line": 70,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 76,
+ "end_line": 83,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Main service method for AccountServlet\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 89,
+ "end_line": 96,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " user id was invalid, and may contain XSS attack",
+ "start_line": 114,
+ "end_line": 114,
+ "start_column": 6,
+ "end_column": 55,
+ "is_javadoc": false
+ },
+ {
+ "content": " If results have an error msg, return it, otherwise continue.",
+ "start_line": 119,
+ "end_line": 119,
+ "start_column": 5,
+ "end_column": 67,
+ "is_javadoc": false
+ },
+ {
+ "content": " Proliferate UPDATING flag if user is trying to update his account.",
+ "start_line": 121,
+ "end_line": 121,
+ "start_column": 6,
+ "end_column": 74,
+ "is_javadoc": false
+ },
+ {
+ "content": " If not logging in for the first time, then clear out the",
+ "start_line": 128,
+ "end_line": 128,
+ "start_column": 6,
+ "end_column": 64,
+ "is_javadoc": false
+ },
+ {
+ "content": " session data for the old user.",
+ "start_line": 129,
+ "end_line": 129,
+ "start_column": 6,
+ "end_column": 38,
+ "is_javadoc": false
+ },
+ {
+ "content": " session.removeAttribute(Util.ATTR_CART_CONTENTS);",
+ "start_line": 132,
+ "end_line": 132,
+ "start_column": 7,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Store customer userid in HttpSession.",
+ "start_line": 137,
+ "end_line": 137,
+ "start_column": 6,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": " Was customer trying to edit account information.",
+ "start_line": 142,
+ "end_line": 142,
+ "start_column": 6,
+ "end_column": 56,
+ "is_javadoc": false
+ },
+ {
+ "content": " See if user was in the middle of checking out.",
+ "start_line": 148,
+ "end_line": 148,
+ "start_column": 7,
+ "end_column": 55,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default to plants",
+ "start_line": 159,
+ "end_line": 159,
+ "start_column": 8,
+ "end_column": 27,
+ "is_javadoc": false
+ },
+ {
+ "content": " Register a new user.",
+ "start_line": 180,
+ "end_line": 180,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": " try",
+ "start_line": 181,
+ "end_line": 181,
+ "start_column": 4,
+ "end_column": 9,
+ "is_javadoc": false
+ },
+ {
+ "content": " }",
+ "start_line": 262,
+ "end_line": 262,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " catch (CreateException e) { }",
+ "start_line": 263,
+ "end_line": 263,
+ "start_column": 4,
+ "end_column": 35,
+ "is_javadoc": false
+ },
+ {
+ "content": " {",
+ "start_line": 182,
+ "end_line": 182,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " validate all user input",
+ "start_line": 198,
+ "end_line": 198,
+ "start_column": 4,
+ "end_column": 29,
+ "is_javadoc": false
+ },
+ {
+ "content": " Make sure passwords match.",
+ "start_line": 227,
+ "end_line": 227,
+ "start_column": 4,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": " Create the new user.",
+ "start_line": 232,
+ "end_line": 232,
+ "start_column": 5,
+ "end_column": 27,
+ "is_javadoc": false
+ },
+ {
+ "content": " Store customer info in HttpSession.",
+ "start_line": 237,
+ "end_line": 237,
+ "start_column": 6,
+ "end_column": 43,
+ "is_javadoc": false
+ },
+ {
+ "content": " See if user was in the middle of checking out.",
+ "start_line": 240,
+ "end_line": 240,
+ "start_column": 6,
+ "end_column": 54,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default to plants",
+ "start_line": 247,
+ "end_line": 247,
+ "start_column": 7,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": " try",
+ "start_line": 278,
+ "end_line": 278,
+ "start_column": 4,
+ "end_column": 9,
+ "is_javadoc": false
+ },
+ {
+ "content": " }",
+ "start_line": 316,
+ "end_line": 316,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " catch (CreateException e) { }",
+ "start_line": 317,
+ "end_line": 317,
+ "start_column": 4,
+ "end_column": 35,
+ "is_javadoc": false
+ },
+ {
+ "content": " {",
+ "start_line": 279,
+ "end_line": 279,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " Create the new user.",
+ "start_line": 294,
+ "end_line": 294,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": " Store updated customer info in HttpSession.",
+ "start_line": 296,
+ "end_line": 296,
+ "start_column": 4,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " See if user was in the middle of checking out.",
+ "start_line": 299,
+ "end_line": 299,
+ "start_column": 4,
+ "end_column": 52,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default to plants",
+ "start_line": 306,
+ "end_line": 306,
+ "start_column": 5,
+ "end_column": 24,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Request dispatch.\r\n\t ",
+ "start_line": 329,
+ "end_line": 331,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.IOException",
"javax.inject.Inject",
@@ -6223,7 +9327,296 @@
"extends_list": [
"HttpServlet"
],
- "comment": "/**\r\n * Servlet to handle customer account actions, such as login and register.\r\n */",
+ "comments": [
+ {
+ "content": " Servlet action codes.",
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 2,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Servlet initialization.\r\n\t ",
+ "start_line": 56,
+ "end_line": 58,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 63,
+ "end_line": 70,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 76,
+ "end_line": 83,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Main service method for AccountServlet\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 89,
+ "end_line": 96,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " user id was invalid, and may contain XSS attack",
+ "start_line": 114,
+ "end_line": 114,
+ "start_column": 6,
+ "end_column": 55,
+ "is_javadoc": false
+ },
+ {
+ "content": " If results have an error msg, return it, otherwise continue.",
+ "start_line": 119,
+ "end_line": 119,
+ "start_column": 5,
+ "end_column": 67,
+ "is_javadoc": false
+ },
+ {
+ "content": " Proliferate UPDATING flag if user is trying to update his account.",
+ "start_line": 121,
+ "end_line": 121,
+ "start_column": 6,
+ "end_column": 74,
+ "is_javadoc": false
+ },
+ {
+ "content": " If not logging in for the first time, then clear out the",
+ "start_line": 128,
+ "end_line": 128,
+ "start_column": 6,
+ "end_column": 64,
+ "is_javadoc": false
+ },
+ {
+ "content": " session data for the old user.",
+ "start_line": 129,
+ "end_line": 129,
+ "start_column": 6,
+ "end_column": 38,
+ "is_javadoc": false
+ },
+ {
+ "content": " session.removeAttribute(Util.ATTR_CART_CONTENTS);",
+ "start_line": 132,
+ "end_line": 132,
+ "start_column": 7,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Store customer userid in HttpSession.",
+ "start_line": 137,
+ "end_line": 137,
+ "start_column": 6,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": " Was customer trying to edit account information.",
+ "start_line": 142,
+ "end_line": 142,
+ "start_column": 6,
+ "end_column": 56,
+ "is_javadoc": false
+ },
+ {
+ "content": " See if user was in the middle of checking out.",
+ "start_line": 148,
+ "end_line": 148,
+ "start_column": 7,
+ "end_column": 55,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default to plants",
+ "start_line": 159,
+ "end_line": 159,
+ "start_column": 8,
+ "end_column": 27,
+ "is_javadoc": false
+ },
+ {
+ "content": " Register a new user.",
+ "start_line": 180,
+ "end_line": 180,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": " try",
+ "start_line": 181,
+ "end_line": 181,
+ "start_column": 4,
+ "end_column": 9,
+ "is_javadoc": false
+ },
+ {
+ "content": " }",
+ "start_line": 262,
+ "end_line": 262,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " catch (CreateException e) { }",
+ "start_line": 263,
+ "end_line": 263,
+ "start_column": 4,
+ "end_column": 35,
+ "is_javadoc": false
+ },
+ {
+ "content": " {",
+ "start_line": 182,
+ "end_line": 182,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " validate all user input",
+ "start_line": 198,
+ "end_line": 198,
+ "start_column": 4,
+ "end_column": 29,
+ "is_javadoc": false
+ },
+ {
+ "content": " Make sure passwords match.",
+ "start_line": 227,
+ "end_line": 227,
+ "start_column": 4,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": " Create the new user.",
+ "start_line": 232,
+ "end_line": 232,
+ "start_column": 5,
+ "end_column": 27,
+ "is_javadoc": false
+ },
+ {
+ "content": " Store customer info in HttpSession.",
+ "start_line": 237,
+ "end_line": 237,
+ "start_column": 6,
+ "end_column": 43,
+ "is_javadoc": false
+ },
+ {
+ "content": " See if user was in the middle of checking out.",
+ "start_line": 240,
+ "end_line": 240,
+ "start_column": 6,
+ "end_column": 54,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default to plants",
+ "start_line": 247,
+ "end_line": 247,
+ "start_column": 7,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": " try",
+ "start_line": 278,
+ "end_line": 278,
+ "start_column": 4,
+ "end_column": 9,
+ "is_javadoc": false
+ },
+ {
+ "content": " }",
+ "start_line": 316,
+ "end_line": 316,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " catch (CreateException e) { }",
+ "start_line": 317,
+ "end_line": 317,
+ "start_column": 4,
+ "end_column": 35,
+ "is_javadoc": false
+ },
+ {
+ "content": " {",
+ "start_line": 279,
+ "end_line": 279,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " Create the new user.",
+ "start_line": 294,
+ "end_line": 294,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": " Store updated customer info in HttpSession.",
+ "start_line": 296,
+ "end_line": 296,
+ "start_column": 4,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " See if user was in the middle of checking out.",
+ "start_line": 299,
+ "end_line": 299,
+ "start_column": 4,
+ "end_column": 52,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default to plants",
+ "start_line": 306,
+ "end_line": 306,
+ "start_column": 5,
+ "end_column": 24,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Request dispatch.\r\n\t ",
+ "start_line": 329,
+ "end_line": 331,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Servlet to handle customer account actions, such as login and register.\r\n ",
+ "start_line": 37,
+ "end_line": 39,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -6236,9 +9629,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"init(ServletConfig)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
"signature": "init(ServletConfig)",
- "comment": "/**\r\n\t * Servlet initialization.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Servlet initialization.\r\n\t ",
+ "start_line": 56,
+ "end_line": 58,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -6252,12 +9654,17 @@
"type": "ServletConfig",
"name": "config",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 59,
+ "end_line": 59,
+ "start_column": 19,
+ "end_column": 38
}
],
- "code": "{\n super.init(config);\n}",
+ "code": "{\r\n\t\tsuper.init(config);\r\n\t}",
"start_line": 59,
"end_line": 61,
+ "code_start_line": 59,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -6266,6 +9673,7 @@
"call_sites": [
{
"method_name": "init",
+ "comment": null,
"receiver_expr": "super",
"receiver_type": "",
"argument_types": [
@@ -6294,9 +9702,18 @@
"is_entrypoint": false
},
"doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
"signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)",
- "comment": "/**\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 63,
+ "end_line": 70,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -6311,18 +9728,27 @@
"type": "javax.servlet.http.HttpServletRequest",
"name": "request",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 71,
+ "end_line": 71,
+ "start_column": 20,
+ "end_column": 64
},
{
"type": "javax.servlet.http.HttpServletResponse",
"name": "response",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 72,
+ "end_line": 72,
+ "start_column": 4,
+ "end_column": 50
}
],
- "code": "{\n performTask(request, response);\n}",
+ "code": "{\r\n\t\tperformTask(request, response);\r\n\t}",
"start_line": 71,
"end_line": 74,
+ "code_start_line": 72,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -6331,6 +9757,7 @@
"call_sites": [
{
"method_name": "performTask",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -6357,12 +9784,21 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 1,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
"signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)",
- "comment": "/**\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 76,
+ "end_line": 83,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -6377,18 +9813,27 @@
"type": "javax.servlet.http.HttpServletRequest",
"name": "request",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 84,
+ "end_line": 84,
+ "start_column": 21,
+ "end_column": 65
},
{
"type": "javax.servlet.http.HttpServletResponse",
"name": "response",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 85,
+ "end_line": 85,
+ "start_column": 4,
+ "end_column": 50
}
],
- "code": "{\n performTask(request, response);\n}",
+ "code": "{\r\n\t\tperformTask(request, response);\r\n\t}",
"start_line": 84,
"end_line": 87,
+ "code_start_line": 85,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -6397,6 +9842,7 @@
"call_sites": [
{
"method_name": "performTask",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -6423,12 +9869,253 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 1,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"performTask(HttpServletRequest, HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
"signature": "performTask(HttpServletRequest, HttpServletResponse)",
- "comment": "/**\r\n\t * Main service method for AccountServlet\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t */",
+ "comments": [
+ {
+ "content": " user id was invalid, and may contain XSS attack",
+ "start_line": 114,
+ "end_line": 114,
+ "start_column": 6,
+ "end_column": 55,
+ "is_javadoc": false
+ },
+ {
+ "content": " If results have an error msg, return it, otherwise continue.",
+ "start_line": 119,
+ "end_line": 119,
+ "start_column": 5,
+ "end_column": 67,
+ "is_javadoc": false
+ },
+ {
+ "content": " Proliferate UPDATING flag if user is trying to update his account.",
+ "start_line": 121,
+ "end_line": 121,
+ "start_column": 6,
+ "end_column": 74,
+ "is_javadoc": false
+ },
+ {
+ "content": " If not logging in for the first time, then clear out the",
+ "start_line": 128,
+ "end_line": 128,
+ "start_column": 6,
+ "end_column": 64,
+ "is_javadoc": false
+ },
+ {
+ "content": " session data for the old user.",
+ "start_line": 129,
+ "end_line": 129,
+ "start_column": 6,
+ "end_column": 38,
+ "is_javadoc": false
+ },
+ {
+ "content": " session.removeAttribute(Util.ATTR_CART_CONTENTS);",
+ "start_line": 132,
+ "end_line": 132,
+ "start_column": 7,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Store customer userid in HttpSession.",
+ "start_line": 137,
+ "end_line": 137,
+ "start_column": 6,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": " Was customer trying to edit account information.",
+ "start_line": 142,
+ "end_line": 142,
+ "start_column": 6,
+ "end_column": 56,
+ "is_javadoc": false
+ },
+ {
+ "content": " See if user was in the middle of checking out.",
+ "start_line": 148,
+ "end_line": 148,
+ "start_column": 7,
+ "end_column": 55,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default to plants",
+ "start_line": 159,
+ "end_line": 159,
+ "start_column": 8,
+ "end_column": 27,
+ "is_javadoc": false
+ },
+ {
+ "content": " Register a new user.",
+ "start_line": 180,
+ "end_line": 180,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": " try",
+ "start_line": 181,
+ "end_line": 181,
+ "start_column": 4,
+ "end_column": 9,
+ "is_javadoc": false
+ },
+ {
+ "content": " }",
+ "start_line": 262,
+ "end_line": 262,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " catch (CreateException e) { }",
+ "start_line": 263,
+ "end_line": 263,
+ "start_column": 4,
+ "end_column": 35,
+ "is_javadoc": false
+ },
+ {
+ "content": " {",
+ "start_line": 182,
+ "end_line": 182,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " validate all user input",
+ "start_line": 198,
+ "end_line": 198,
+ "start_column": 4,
+ "end_column": 29,
+ "is_javadoc": false
+ },
+ {
+ "content": " Make sure passwords match.",
+ "start_line": 227,
+ "end_line": 227,
+ "start_column": 4,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": " Create the new user.",
+ "start_line": 232,
+ "end_line": 232,
+ "start_column": 5,
+ "end_column": 27,
+ "is_javadoc": false
+ },
+ {
+ "content": " Store customer info in HttpSession.",
+ "start_line": 237,
+ "end_line": 237,
+ "start_column": 6,
+ "end_column": 43,
+ "is_javadoc": false
+ },
+ {
+ "content": " See if user was in the middle of checking out.",
+ "start_line": 240,
+ "end_line": 240,
+ "start_column": 6,
+ "end_column": 54,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default to plants",
+ "start_line": 247,
+ "end_line": 247,
+ "start_column": 7,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": " try",
+ "start_line": 278,
+ "end_line": 278,
+ "start_column": 4,
+ "end_column": 9,
+ "is_javadoc": false
+ },
+ {
+ "content": " }",
+ "start_line": 316,
+ "end_line": 316,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " catch (CreateException e) { }",
+ "start_line": 317,
+ "end_line": 317,
+ "start_column": 4,
+ "end_column": 35,
+ "is_javadoc": false
+ },
+ {
+ "content": " {",
+ "start_line": 279,
+ "end_line": 279,
+ "start_column": 4,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": " Create the new user.",
+ "start_line": 294,
+ "end_line": 294,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": " Store updated customer info in HttpSession.",
+ "start_line": 296,
+ "end_line": 296,
+ "start_column": 4,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " See if user was in the middle of checking out.",
+ "start_line": 299,
+ "end_line": 299,
+ "start_column": 4,
+ "end_column": 52,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default to plants",
+ "start_line": 306,
+ "end_line": 306,
+ "start_column": 5,
+ "end_column": 24,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Main service method for AccountServlet\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 89,
+ "end_line": 96,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"private"
@@ -6443,18 +10130,27 @@
"type": "HttpServletRequest",
"name": "req",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 97,
+ "end_line": 97,
+ "start_column": 27,
+ "end_column": 48
},
{
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 97,
+ "end_line": 97,
+ "start_column": 51,
+ "end_column": 74
}
],
- "code": "{\n String action = null;\n action = req.getParameter(Util.ATTR_ACTION);\n Util.debug(\"action=\" + action);\n if (action.equals(ACTION_LOGIN)) {\n try {\n HttpSession session = req.getSession(true);\n String userid = req.getParameter(\"userid\");\n String passwd = req.getParameter(\"passwd\");\n String updating = req.getParameter(Util.ATTR_UPDATING);\n String results = null;\n if (Util.validateString(userid)) {\n results = login.verifyUserAndPassword(userid, passwd);\n } else {\n // user id was invalid, and may contain XSS attack\n results = \"\\nEmail address was invalid.\";\n Util.debug(\"User id or email address was invalid. id=\" + userid);\n }\n // If results have an error msg, return it, otherwise continue.\n if (results != null) {\n // Proliferate UPDATING flag if user is trying to update his account.\n if (updating.equals(\"true\"))\n req.setAttribute(Util.ATTR_UPDATING, \"true\");\n req.setAttribute(Util.ATTR_RESULTS, results);\n requestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_LOGIN);\n } else {\n // If not logging in for the first time, then clear out the\n // session data for the old user.\n if (session.getAttribute(Util.ATTR_CUSTOMER) != null) {\n session.removeAttribute(Util.ATTR_CART);\n // session.removeAttribute(Util.ATTR_CART_CONTENTS);\n session.removeAttribute(Util.ATTR_CHECKOUT);\n session.removeAttribute(Util.ATTR_ORDERKEY);\n }\n // Store customer userid in HttpSession.\n Customer customer = login.getCustomer(userid);\n session.setAttribute(Util.ATTR_CUSTOMER, customer);\n Util.debug(\"updating=\" + updating + \"=\");\n // Was customer trying to edit account information.\n if (updating.equals(\"true\")) {\n req.setAttribute(Util.ATTR_EDITACCOUNTINFO, customer);\n requestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_ACCOUNT);\n } else {\n // See if user was in the middle of checking out.\n Boolean checkingOut = (Boolean) session.getAttribute(Util.ATTR_CHECKOUT);\n Util.debug(\"checkingOut=\" + checkingOut + \"=\");\n if ((checkingOut != null) && (checkingOut.booleanValue())) {\n Util.debug(\"must be checking out\");\n requestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_ORDERINFO);\n } else {\n Util.debug(\"must NOT be checking out\");\n String url;\n String category = (String) session.getAttribute(Util.ATTR_CATEGORY);\n // Default to plants\n if ((category == null) || (category.equals(\"null\"))) {\n url = Util.PAGE_PROMO;\n } else {\n url = Util.PAGE_SHOPPING;\n req.setAttribute(Util.ATTR_INVITEMS, catalog.getItemsByCategory(Integer.parseInt(category)));\n }\n requestDispatch(getServletConfig().getServletContext(), req, resp, url);\n }\n }\n }\n } catch (ServletException e) {\n req.setAttribute(Util.ATTR_RESULTS, \"/nException occurred\");\n throw e;\n } catch (Exception e) {\n req.setAttribute(Util.ATTR_RESULTS, \"/nException occurred\");\n throw new ServletException(e.getMessage());\n }\n } else if (action.equals(ACTION_REGISTER)) {\n // Register a new user.\n // try\n // {\n String url;\n HttpSession session = req.getSession(true);\n String userid = req.getParameter(\"userid\");\n String password = req.getParameter(\"passwd\");\n String cpassword = req.getParameter(\"vpasswd\");\n String firstName = req.getParameter(\"fname\");\n String lastName = req.getParameter(\"lname\");\n String addr1 = req.getParameter(\"addr1\");\n String addr2 = req.getParameter(\"addr2\");\n String addrCity = req.getParameter(\"city\");\n String addrState = req.getParameter(\"state\");\n String addrZip = req.getParameter(\"zip\");\n String phone = req.getParameter(\"phone\");\n // validate all user input\n if (!Util.validateString(userid)) {\n req.setAttribute(Util.ATTR_RESULTS, \"Email address contains invalid characters.\");\n url = Util.PAGE_REGISTER;\n } else if (!Util.validateString(firstName)) {\n req.setAttribute(Util.ATTR_RESULTS, \"First Name contains invalid characters.\");\n url = Util.PAGE_REGISTER;\n } else if (!Util.validateString(lastName)) {\n req.setAttribute(Util.ATTR_RESULTS, \"Last Name contains invalid characters.\");\n url = Util.PAGE_REGISTER;\n } else if (!Util.validateString(addr1)) {\n req.setAttribute(Util.ATTR_RESULTS, \"Address Line 1 contains invalid characters.\");\n url = Util.PAGE_REGISTER;\n } else if (!Util.validateString(addr2)) {\n req.setAttribute(Util.ATTR_RESULTS, \"Address Line 2 contains invalid characters.\");\n url = Util.PAGE_REGISTER;\n } else if (!Util.validateString(addrCity)) {\n req.setAttribute(Util.ATTR_RESULTS, \"City contains invalid characters.\");\n url = Util.PAGE_REGISTER;\n } else if (!Util.validateString(addrState)) {\n req.setAttribute(Util.ATTR_RESULTS, \"State contains invalid characters.\");\n url = Util.PAGE_REGISTER;\n } else if (!Util.validateString(addrZip)) {\n req.setAttribute(Util.ATTR_RESULTS, \"Zip contains invalid characters.\");\n url = Util.PAGE_REGISTER;\n } else if (!Util.validateString(phone)) {\n req.setAttribute(Util.ATTR_RESULTS, \"Phone Number contains invalid characters.\");\n url = Util.PAGE_REGISTER;\n } else // Make sure passwords match.\n if (!password.equals(cpassword)) {\n req.setAttribute(Util.ATTR_RESULTS, \"Passwords do not match.\");\n url = Util.PAGE_REGISTER;\n } else {\n // Create the new user.\n Customer customer = login.createCustomer(userid, password, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone);\n if (customer != null) {\n // Store customer info in HttpSession.\n session.setAttribute(Util.ATTR_CUSTOMER, customer);\n // See if user was in the middle of checking out.\n Boolean checkingOut = (Boolean) session.getAttribute(Util.ATTR_CHECKOUT);\n if ((checkingOut != null) && (checkingOut.booleanValue())) {\n url = Util.PAGE_ORDERINFO;\n } else {\n String category = (String) session.getAttribute(Util.ATTR_CATEGORY);\n // Default to plants\n if (category == null) {\n url = Util.PAGE_PROMO;\n } else {\n url = Util.PAGE_SHOPPING;\n req.setAttribute(Util.ATTR_INVITEMS, catalog.getItemsByCategory(Integer.parseInt(category)));\n }\n }\n } else {\n url = Util.PAGE_REGISTER;\n req.setAttribute(Util.ATTR_RESULTS, \"New user NOT created!\");\n }\n }\n requestDispatch(getServletConfig().getServletContext(), req, resp, url);\n // }\n // catch (CreateException e) { }\n } else if (action.equals(ACTION_ACCOUNT)) {\n String url;\n HttpSession session = req.getSession(true);\n Customer customer = (Customer) session.getAttribute(Util.ATTR_CUSTOMER);\n if (customer == null) {\n url = Util.PAGE_LOGIN;\n req.setAttribute(Util.ATTR_UPDATING, \"true\");\n req.setAttribute(Util.ATTR_RESULTS, \"\\nYou must login first.\");\n } else {\n url = Util.PAGE_ACCOUNT;\n req.setAttribute(Util.ATTR_EDITACCOUNTINFO, customer);\n }\n requestDispatch(getServletConfig().getServletContext(), req, resp, url);\n } else if (action.equals(ACTION_ACCOUNTUPDATE)) {\n // try\n // {\n String url;\n HttpSession session = req.getSession(true);\n Customer customer = (Customer) session.getAttribute(Util.ATTR_CUSTOMER);\n String userid = customer.getCustomerID();\n String firstName = req.getParameter(\"fname\");\n String lastName = req.getParameter(\"lname\");\n String addr1 = req.getParameter(\"addr1\");\n String addr2 = req.getParameter(\"addr2\");\n String addrCity = req.getParameter(\"city\");\n String addrState = req.getParameter(\"state\");\n String addrZip = req.getParameter(\"zip\");\n String phone = req.getParameter(\"phone\");\n // Create the new user.\n customer = login.updateUser(userid, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone);\n // Store updated customer info in HttpSession.\n session.setAttribute(Util.ATTR_CUSTOMER, customer);\n // See if user was in the middle of checking out.\n Boolean checkingOut = (Boolean) session.getAttribute(Util.ATTR_CHECKOUT);\n if ((checkingOut != null) && (checkingOut.booleanValue())) {\n url = Util.PAGE_ORDERINFO;\n } else {\n String category = (String) session.getAttribute(Util.ATTR_CATEGORY);\n // Default to plants\n if (category == null) {\n url = Util.PAGE_PROMO;\n } else {\n url = Util.PAGE_SHOPPING;\n req.setAttribute(Util.ATTR_INVITEMS, catalog.getItemsByCategory(Integer.parseInt(category)));\n }\n }\n requestDispatch(getServletConfig().getServletContext(), req, resp, url);\n // }\n // catch (CreateException e) { }\n } else if (action.equals(ACTION_SETLOGGING)) {\n String debugSetting = req.getParameter(\"logging\");\n if ((debugSetting == null) || (!debugSetting.equals(\"debug\")))\n Util.setDebug(false);\n else\n Util.setDebug(true);\n requestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_HELP);\n }\n}",
+ "code": "{\r\n\t\tString action = null;\r\n\r\n\t\taction = req.getParameter(Util.ATTR_ACTION);\r\n\t\tUtil.debug(\"action=\" + action);\r\n\r\n\t\tif (action.equals(ACTION_LOGIN)) {\r\n\t\t\ttry {\r\n\t\t\t\tHttpSession session = req.getSession(true);\r\n\t\t\t\tString userid = req.getParameter(\"userid\");\r\n\t\t\t\tString passwd = req.getParameter(\"passwd\");\r\n\t\t\t\tString updating = req.getParameter(Util.ATTR_UPDATING);\r\n\r\n\t\t\t\tString results = null;\r\n\t\t\t\tif (Util.validateString(userid)) {\r\n\t\t\t\t\tresults = login.verifyUserAndPassword(userid, passwd);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// user id was invalid, and may contain XSS attack\r\n\t\t\t\t\tresults = \"\\nEmail address was invalid.\";\r\n\t\t\t\t\tUtil.debug(\"User id or email address was invalid. id=\" + userid);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// If results have an error msg, return it, otherwise continue.\r\n\t\t\t\tif (results != null) {\r\n\t\t\t\t\t// Proliferate UPDATING flag if user is trying to update his account.\r\n\t\t\t\t\tif (updating.equals(\"true\"))\r\n\t\t\t\t\t\treq.setAttribute(Util.ATTR_UPDATING, \"true\");\r\n\r\n\t\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, results);\r\n\t\t\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_LOGIN);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// If not logging in for the first time, then clear out the\r\n\t\t\t\t\t// session data for the old user.\r\n\t\t\t\t\tif (session.getAttribute(Util.ATTR_CUSTOMER) != null) {\r\n\t\t\t\t\t\tsession.removeAttribute(Util.ATTR_CART);\r\n\t\t\t\t\t\t// session.removeAttribute(Util.ATTR_CART_CONTENTS);\r\n\t\t\t\t\t\tsession.removeAttribute(Util.ATTR_CHECKOUT);\r\n\t\t\t\t\t\tsession.removeAttribute(Util.ATTR_ORDERKEY);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Store customer userid in HttpSession.\r\n\t\t\t\t\tCustomer customer = login.getCustomer(userid);\r\n\t\t\t\t\tsession.setAttribute(Util.ATTR_CUSTOMER, customer);\r\n\t\t\t\t\tUtil.debug(\"updating=\" + updating + \"=\");\r\n\r\n\t\t\t\t\t// Was customer trying to edit account information.\r\n\t\t\t\t\tif (updating.equals(\"true\")) {\r\n\t\t\t\t\t\treq.setAttribute(Util.ATTR_EDITACCOUNTINFO, customer);\r\n\r\n\t\t\t\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_ACCOUNT);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// See if user was in the middle of checking out.\r\n\t\t\t\t\t\tBoolean checkingOut = (Boolean) session.getAttribute(Util.ATTR_CHECKOUT);\r\n\t\t\t\t\t\tUtil.debug(\"checkingOut=\" + checkingOut + \"=\");\r\n\t\t\t\t\t\tif ((checkingOut != null) && (checkingOut.booleanValue())) {\r\n\t\t\t\t\t\t\tUtil.debug(\"must be checking out\");\r\n\t\t\t\t\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_ORDERINFO);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tUtil.debug(\"must NOT be checking out\");\r\n\t\t\t\t\t\t\tString url;\r\n\t\t\t\t\t\t\tString category = (String) session.getAttribute(Util.ATTR_CATEGORY);\r\n\r\n\t\t\t\t\t\t\t// Default to plants\r\n\t\t\t\t\t\t\tif ((category == null) || (category.equals(\"null\"))) {\r\n\t\t\t\t\t\t\t\turl = Util.PAGE_PROMO;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\turl = Util.PAGE_SHOPPING;\r\n\t\t\t\t\t\t\t\treq.setAttribute(Util.ATTR_INVITEMS, catalog\r\n\t\t\t\t\t\t\t\t\t\t.getItemsByCategory(Integer.parseInt(category)));\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, url);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (ServletException e) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"/nException occurred\");\r\n\t\t\t\tthrow e;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"/nException occurred\");\r\n\t\t\t\tthrow new ServletException(e.getMessage());\r\n\t\t\t}\r\n\t\t} else if (action.equals(ACTION_REGISTER)) {\r\n\t\t\t// Register a new user.\r\n\t\t\t// try\r\n\t\t\t// {\r\n\t\t\tString url;\r\n\t\t\tHttpSession session = req.getSession(true);\r\n\r\n\t\t\tString userid = req.getParameter(\"userid\");\r\n\t\t\tString password = req.getParameter(\"passwd\");\r\n\t\t\tString cpassword = req.getParameter(\"vpasswd\");\r\n\t\t\tString firstName = req.getParameter(\"fname\");\r\n\t\t\tString lastName = req.getParameter(\"lname\");\r\n\t\t\tString addr1 = req.getParameter(\"addr1\");\r\n\t\t\tString addr2 = req.getParameter(\"addr2\");\r\n\t\t\tString addrCity = req.getParameter(\"city\");\r\n\t\t\tString addrState = req.getParameter(\"state\");\r\n\t\t\tString addrZip = req.getParameter(\"zip\");\r\n\t\t\tString phone = req.getParameter(\"phone\");\r\n\r\n\t\t\t// validate all user input\r\n\t\t\tif (!Util.validateString(userid)) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"Email address contains invalid characters.\");\r\n\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t} else if (!Util.validateString(firstName)) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"First Name contains invalid characters.\");\r\n\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t} else if (!Util.validateString(lastName)) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"Last Name contains invalid characters.\");\r\n\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t} else if (!Util.validateString(addr1)) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"Address Line 1 contains invalid characters.\");\r\n\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t} else if (!Util.validateString(addr2)) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"Address Line 2 contains invalid characters.\");\r\n\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t} else if (!Util.validateString(addrCity)) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"City contains invalid characters.\");\r\n\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t} else if (!Util.validateString(addrState)) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"State contains invalid characters.\");\r\n\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t} else if (!Util.validateString(addrZip)) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"Zip contains invalid characters.\");\r\n\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t} else if (!Util.validateString(phone)) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"Phone Number contains invalid characters.\");\r\n\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t}\r\n\t\t\t// Make sure passwords match.\r\n\t\t\telse if (!password.equals(cpassword)) {\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"Passwords do not match.\");\r\n\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t} else {\r\n\t\t\t\t// Create the new user.\r\n\t\t\t\tCustomer customer = login\r\n\t\t\t\t\t\t.createCustomer(userid, password, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone);\r\n\r\n\t\t\t\tif (customer != null) {\r\n\t\t\t\t\t// Store customer info in HttpSession.\r\n\t\t\t\t\tsession.setAttribute(Util.ATTR_CUSTOMER, customer);\r\n\r\n\t\t\t\t\t// See if user was in the middle of checking out.\r\n\t\t\t\t\tBoolean checkingOut = (Boolean) session.getAttribute(Util.ATTR_CHECKOUT);\r\n\t\t\t\t\tif ((checkingOut != null) && (checkingOut.booleanValue())) {\r\n\t\t\t\t\t\turl = Util.PAGE_ORDERINFO;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString category = (String) session.getAttribute(Util.ATTR_CATEGORY);\r\n\r\n\t\t\t\t\t\t// Default to plants\r\n\t\t\t\t\t\tif (category == null) {\r\n\t\t\t\t\t\t\turl = Util.PAGE_PROMO;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\turl = Util.PAGE_SHOPPING;\r\n\t\t\t\t\t\t\treq.setAttribute(Util.ATTR_INVITEMS, catalog\r\n\t\t\t\t\t\t\t\t\t.getItemsByCategory(Integer.parseInt(category)));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\turl = Util.PAGE_REGISTER;\r\n\t\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"New user NOT created!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, url);\r\n\t\t\t// }\r\n\t\t\t// catch (CreateException e) { }\r\n\t\t} else if (action.equals(ACTION_ACCOUNT)) {\r\n\t\t\tString url;\r\n\t\t\tHttpSession session = req.getSession(true);\r\n\t\t\tCustomer customer = (Customer) session.getAttribute(Util.ATTR_CUSTOMER);\r\n\t\t\tif (customer == null) {\r\n\t\t\t\turl = Util.PAGE_LOGIN;\r\n\t\t\t\treq.setAttribute(Util.ATTR_UPDATING, \"true\");\r\n\t\t\t\treq.setAttribute(Util.ATTR_RESULTS, \"\\nYou must login first.\");\r\n\t\t\t} else {\r\n\t\t\t\turl = Util.PAGE_ACCOUNT;\r\n\t\t\t\treq.setAttribute(Util.ATTR_EDITACCOUNTINFO, customer);\r\n\t\t\t}\r\n\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, url);\r\n\t\t} else if (action.equals(ACTION_ACCOUNTUPDATE)) {\r\n\t\t\t// try\r\n\t\t\t// {\r\n\t\t\tString url;\r\n\t\t\tHttpSession session = req.getSession(true);\r\n\t\t\tCustomer customer = (Customer) session.getAttribute(Util.ATTR_CUSTOMER);\r\n\r\n\t\t\tString userid = customer.getCustomerID();\r\n\t\t\tString firstName = req.getParameter(\"fname\");\r\n\t\t\tString lastName = req.getParameter(\"lname\");\r\n\t\t\tString addr1 = req.getParameter(\"addr1\");\r\n\t\t\tString addr2 = req.getParameter(\"addr2\");\r\n\t\t\tString addrCity = req.getParameter(\"city\");\r\n\t\t\tString addrState = req.getParameter(\"state\");\r\n\t\t\tString addrZip = req.getParameter(\"zip\");\r\n\t\t\tString phone = req.getParameter(\"phone\");\r\n\r\n\t\t\t// Create the new user.\r\n\t\t\tcustomer = login.updateUser(userid, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone);\r\n\t\t\t// Store updated customer info in HttpSession.\r\n\t\t\tsession.setAttribute(Util.ATTR_CUSTOMER, customer);\r\n\r\n\t\t\t// See if user was in the middle of checking out.\r\n\t\t\tBoolean checkingOut = (Boolean) session.getAttribute(Util.ATTR_CHECKOUT);\r\n\t\t\tif ((checkingOut != null) && (checkingOut.booleanValue())) {\r\n\t\t\t\turl = Util.PAGE_ORDERINFO;\r\n\t\t\t} else {\r\n\t\t\t\tString category = (String) session.getAttribute(Util.ATTR_CATEGORY);\r\n\r\n\t\t\t\t// Default to plants\r\n\t\t\t\tif (category == null) {\r\n\t\t\t\t\turl = Util.PAGE_PROMO;\r\n\t\t\t\t} else {\r\n\t\t\t\t\turl = Util.PAGE_SHOPPING;\r\n\t\t\t\t\treq.setAttribute(Util.ATTR_INVITEMS, catalog.getItemsByCategory(Integer.parseInt(category)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, url);\r\n\t\t\t// }\r\n\t\t\t// catch (CreateException e) { }\r\n\t\t} else if (action.equals(ACTION_SETLOGGING)) {\r\n\t\t\tString debugSetting = req.getParameter(\"logging\");\r\n\t\t\tif ((debugSetting == null) || (!debugSetting.equals(\"debug\")))\r\n\t\t\t\tUtil.setDebug(false);\r\n\t\t\telse\r\n\t\t\t\tUtil.setDebug(true);\r\n\r\n\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_HELP);\r\n\t\t}\r\n\t}",
"start_line": 97,
"end_line": 327,
+ "code_start_line": 97,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -6493,6 +10189,7 @@
"call_sites": [
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -6515,6 +10212,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -6537,6 +10235,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -6559,6 +10258,7 @@
},
{
"method_name": "getSession",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -6581,6 +10281,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -6603,6 +10304,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -6625,6 +10327,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -6647,6 +10350,7 @@
},
{
"method_name": "validateString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -6669,6 +10373,7 @@
},
{
"method_name": "verifyUserAndPassword",
+ "comment": null,
"receiver_expr": "login",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"argument_types": [
@@ -6692,6 +10397,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -6714,6 +10420,14 @@
},
{
"method_name": "equals",
+ "comment": {
+ "content": " Proliferate UPDATING flag if user is trying to update his account.",
+ "start_line": 121,
+ "end_line": 121,
+ "start_column": 6,
+ "end_column": 74,
+ "is_javadoc": false
+ },
"receiver_expr": "updating",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -6736,6 +10450,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -6759,6 +10474,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -6782,6 +10498,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -6807,6 +10524,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -6827,6 +10545,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -6847,6 +10566,7 @@
},
{
"method_name": "getAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -6869,6 +10589,7 @@
},
{
"method_name": "removeAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -6891,6 +10612,14 @@
},
{
"method_name": "removeAttribute",
+ "comment": {
+ "content": " session.removeAttribute(Util.ATTR_CART_CONTENTS);",
+ "start_line": 132,
+ "end_line": 132,
+ "start_column": 7,
+ "end_column": 58,
+ "is_javadoc": false
+ },
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -6913,6 +10642,7 @@
},
{
"method_name": "removeAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -6935,6 +10665,7 @@
},
{
"method_name": "getCustomer",
+ "comment": null,
"receiver_expr": "login",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"argument_types": [
@@ -6957,6 +10688,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -6980,6 +10712,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -7002,6 +10735,14 @@
},
{
"method_name": "equals",
+ "comment": {
+ "content": " Was customer trying to edit account information.",
+ "start_line": 142,
+ "end_line": 142,
+ "start_column": 6,
+ "end_column": 56,
+ "is_javadoc": false
+ },
"receiver_expr": "updating",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -7024,6 +10765,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7047,6 +10789,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -7072,6 +10815,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -7092,6 +10836,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -7112,6 +10857,7 @@
},
{
"method_name": "getAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -7134,6 +10880,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -7156,6 +10903,7 @@
},
{
"method_name": "booleanValue",
+ "comment": null,
"receiver_expr": "checkingOut",
"receiver_type": "java.lang.Boolean",
"argument_types": [],
@@ -7176,6 +10924,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -7198,6 +10947,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -7223,6 +10973,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -7243,6 +10994,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -7263,6 +11015,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -7285,6 +11038,7 @@
},
{
"method_name": "getAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -7307,6 +11061,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "category",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -7329,6 +11084,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7352,6 +11108,7 @@
},
{
"method_name": "getItemsByCategory",
+ "comment": null,
"receiver_expr": "catalog",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"argument_types": [
@@ -7374,6 +11131,7 @@
},
{
"method_name": "parseInt",
+ "comment": null,
"receiver_expr": "Integer",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -7396,6 +11154,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -7421,6 +11180,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -7441,6 +11201,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -7461,6 +11222,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7484,6 +11246,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7507,6 +11270,7 @@
},
{
"method_name": "getMessage",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -7527,6 +11291,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -7549,6 +11314,7 @@
},
{
"method_name": "getSession",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7571,6 +11337,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7593,6 +11360,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7615,6 +11383,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7637,6 +11406,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7659,6 +11429,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7681,6 +11452,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7703,6 +11475,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7725,6 +11498,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7747,6 +11521,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7769,6 +11544,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7791,6 +11567,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7813,6 +11590,7 @@
},
{
"method_name": "validateString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -7835,6 +11613,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7858,6 +11637,7 @@
},
{
"method_name": "validateString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -7880,6 +11660,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7903,6 +11684,7 @@
},
{
"method_name": "validateString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -7925,6 +11707,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7948,6 +11731,7 @@
},
{
"method_name": "validateString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -7970,6 +11754,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -7993,6 +11778,7 @@
},
{
"method_name": "validateString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -8015,6 +11801,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8038,6 +11825,7 @@
},
{
"method_name": "validateString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -8060,6 +11848,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8083,6 +11872,7 @@
},
{
"method_name": "validateString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -8105,6 +11895,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8128,6 +11919,7 @@
},
{
"method_name": "validateString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -8150,6 +11942,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8173,6 +11966,7 @@
},
{
"method_name": "validateString",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -8195,6 +11989,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8218,6 +12013,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "password",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -8240,6 +12036,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8263,6 +12060,7 @@
},
{
"method_name": "createCustomer",
+ "comment": null,
"receiver_expr": "login",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"argument_types": [
@@ -8294,6 +12092,14 @@
},
{
"method_name": "setAttribute",
+ "comment": {
+ "content": " Store customer info in HttpSession.",
+ "start_line": 237,
+ "end_line": 237,
+ "start_column": 6,
+ "end_column": 43,
+ "is_javadoc": false
+ },
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -8317,6 +12123,7 @@
},
{
"method_name": "getAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -8339,6 +12146,7 @@
},
{
"method_name": "booleanValue",
+ "comment": null,
"receiver_expr": "checkingOut",
"receiver_type": "java.lang.Boolean",
"argument_types": [],
@@ -8359,6 +12167,7 @@
},
{
"method_name": "getAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -8381,6 +12190,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8404,6 +12214,7 @@
},
{
"method_name": "getItemsByCategory",
+ "comment": null,
"receiver_expr": "catalog",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"argument_types": [
@@ -8426,6 +12237,7 @@
},
{
"method_name": "parseInt",
+ "comment": null,
"receiver_expr": "Integer",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -8448,6 +12260,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8471,6 +12284,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -8496,6 +12310,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -8516,6 +12331,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -8536,6 +12352,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -8558,6 +12375,7 @@
},
{
"method_name": "getSession",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8580,6 +12398,7 @@
},
{
"method_name": "getAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -8602,6 +12421,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8625,6 +12445,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8648,6 +12469,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8671,6 +12493,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -8696,6 +12519,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -8716,6 +12540,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -8736,6 +12561,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -8758,6 +12584,7 @@
},
{
"method_name": "getSession",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8780,6 +12607,7 @@
},
{
"method_name": "getAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -8802,6 +12630,7 @@
},
{
"method_name": "getCustomerID",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -8822,6 +12651,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8844,6 +12674,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8866,6 +12697,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8888,6 +12720,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8910,6 +12743,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8932,6 +12766,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8954,6 +12789,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8976,6 +12812,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -8998,6 +12835,7 @@
},
{
"method_name": "updateUser",
+ "comment": null,
"receiver_expr": "login",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"argument_types": [
@@ -9028,6 +12866,14 @@
},
{
"method_name": "setAttribute",
+ "comment": {
+ "content": " Store updated customer info in HttpSession.",
+ "start_line": 296,
+ "end_line": 296,
+ "start_column": 4,
+ "end_column": 49,
+ "is_javadoc": false
+ },
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -9051,6 +12897,7 @@
},
{
"method_name": "getAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -9073,6 +12920,7 @@
},
{
"method_name": "booleanValue",
+ "comment": null,
"receiver_expr": "checkingOut",
"receiver_type": "java.lang.Boolean",
"argument_types": [],
@@ -9093,6 +12941,7 @@
},
{
"method_name": "getAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -9115,6 +12964,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -9138,6 +12988,7 @@
},
{
"method_name": "getItemsByCategory",
+ "comment": null,
"receiver_expr": "catalog",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"argument_types": [
@@ -9160,6 +13011,7 @@
},
{
"method_name": "parseInt",
+ "comment": null,
"receiver_expr": "Integer",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -9182,6 +13034,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -9207,6 +13060,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -9227,6 +13081,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -9247,6 +13102,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -9269,6 +13125,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -9291,6 +13148,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "debugSetting",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -9313,6 +13171,7 @@
},
{
"method_name": "setDebug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -9335,6 +13194,7 @@
},
{
"method_name": "setDebug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -9357,6 +13217,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -9382,6 +13243,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -9402,6 +13264,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -9422,6 +13285,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "ServletException",
"argument_types": [
@@ -9445,6 +13309,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "action",
"type": "java.lang.String",
"initializer": "null",
@@ -9454,6 +13326,14 @@
"end_column": 22
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "session",
"type": "HttpSession",
"initializer": "req.getSession(true)",
@@ -9463,6 +13343,14 @@
"end_column": 46
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "userid",
"type": "java.lang.String",
"initializer": "req.getParameter(\"userid\")",
@@ -9472,6 +13360,14 @@
"end_column": 46
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "passwd",
"type": "java.lang.String",
"initializer": "req.getParameter(\"passwd\")",
@@ -9481,6 +13377,14 @@
"end_column": 46
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "updating",
"type": "java.lang.String",
"initializer": "req.getParameter(Util.ATTR_UPDATING)",
@@ -9490,6 +13394,14 @@
"end_column": 58
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "results",
"type": "java.lang.String",
"initializer": "null",
@@ -9499,6 +13411,14 @@
"end_column": 25
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "customer",
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"initializer": "login.getCustomer(userid)",
@@ -9508,6 +13428,14 @@
"end_column": 50
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "checkingOut",
"type": "java.lang.Boolean",
"initializer": "(Boolean) session.getAttribute(Util.ATTR_CHECKOUT)",
@@ -9517,6 +13445,14 @@
"end_column": 78
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "url",
"type": "java.lang.String",
"initializer": "",
@@ -9526,6 +13462,14 @@
"end_column": 17
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "category",
"type": "java.lang.String",
"initializer": "(String) session.getAttribute(Util.ATTR_CATEGORY)",
@@ -9535,6 +13479,14 @@
"end_column": 74
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "url",
"type": "java.lang.String",
"initializer": "",
@@ -9544,6 +13496,14 @@
"end_column": 13
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "session",
"type": "HttpSession",
"initializer": "req.getSession(true)",
@@ -9553,6 +13513,14 @@
"end_column": 45
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "userid",
"type": "java.lang.String",
"initializer": "req.getParameter(\"userid\")",
@@ -9562,6 +13530,14 @@
"end_column": 45
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "password",
"type": "java.lang.String",
"initializer": "req.getParameter(\"passwd\")",
@@ -9571,6 +13547,14 @@
"end_column": 47
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "cpassword",
"type": "java.lang.String",
"initializer": "req.getParameter(\"vpasswd\")",
@@ -9580,6 +13564,14 @@
"end_column": 49
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "firstName",
"type": "java.lang.String",
"initializer": "req.getParameter(\"fname\")",
@@ -9589,6 +13581,14 @@
"end_column": 47
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "lastName",
"type": "java.lang.String",
"initializer": "req.getParameter(\"lname\")",
@@ -9598,6 +13598,14 @@
"end_column": 46
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addr1",
"type": "java.lang.String",
"initializer": "req.getParameter(\"addr1\")",
@@ -9607,6 +13615,14 @@
"end_column": 43
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addr2",
"type": "java.lang.String",
"initializer": "req.getParameter(\"addr2\")",
@@ -9616,6 +13632,14 @@
"end_column": 43
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrCity",
"type": "java.lang.String",
"initializer": "req.getParameter(\"city\")",
@@ -9625,6 +13649,14 @@
"end_column": 45
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrState",
"type": "java.lang.String",
"initializer": "req.getParameter(\"state\")",
@@ -9634,6 +13666,14 @@
"end_column": 47
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrZip",
"type": "java.lang.String",
"initializer": "req.getParameter(\"zip\")",
@@ -9643,6 +13683,14 @@
"end_column": 43
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "phone",
"type": "java.lang.String",
"initializer": "req.getParameter(\"phone\")",
@@ -9652,6 +13700,14 @@
"end_column": 43
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "customer",
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"initializer": "login.createCustomer(userid, password, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone)",
@@ -9661,6 +13717,14 @@
"end_column": 111
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "checkingOut",
"type": "java.lang.Boolean",
"initializer": "(Boolean) session.getAttribute(Util.ATTR_CHECKOUT)",
@@ -9670,6 +13734,14 @@
"end_column": 77
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "category",
"type": "java.lang.String",
"initializer": "(String) session.getAttribute(Util.ATTR_CATEGORY)",
@@ -9679,6 +13751,14 @@
"end_column": 73
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "url",
"type": "java.lang.String",
"initializer": "",
@@ -9688,6 +13768,14 @@
"end_column": 13
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "session",
"type": "HttpSession",
"initializer": "req.getSession(true)",
@@ -9697,6 +13785,14 @@
"end_column": 45
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "customer",
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"initializer": "(Customer) session.getAttribute(Util.ATTR_CUSTOMER)",
@@ -9706,6 +13802,14 @@
"end_column": 74
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "url",
"type": "java.lang.String",
"initializer": "",
@@ -9715,6 +13819,14 @@
"end_column": 13
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "session",
"type": "HttpSession",
"initializer": "req.getSession(true)",
@@ -9724,6 +13836,14 @@
"end_column": 45
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "customer",
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"initializer": "(Customer) session.getAttribute(Util.ATTR_CUSTOMER)",
@@ -9733,6 +13853,14 @@
"end_column": 74
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "userid",
"type": "java.lang.String",
"initializer": "customer.getCustomerID()",
@@ -9742,6 +13870,14 @@
"end_column": 43
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "firstName",
"type": "java.lang.String",
"initializer": "req.getParameter(\"fname\")",
@@ -9751,6 +13887,14 @@
"end_column": 47
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "lastName",
"type": "java.lang.String",
"initializer": "req.getParameter(\"lname\")",
@@ -9760,6 +13904,14 @@
"end_column": 46
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addr1",
"type": "java.lang.String",
"initializer": "req.getParameter(\"addr1\")",
@@ -9769,6 +13921,14 @@
"end_column": 43
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addr2",
"type": "java.lang.String",
"initializer": "req.getParameter(\"addr2\")",
@@ -9778,6 +13938,14 @@
"end_column": 43
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrCity",
"type": "java.lang.String",
"initializer": "req.getParameter(\"city\")",
@@ -9787,6 +13955,14 @@
"end_column": 45
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrState",
"type": "java.lang.String",
"initializer": "req.getParameter(\"state\")",
@@ -9796,6 +13972,14 @@
"end_column": 47
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrZip",
"type": "java.lang.String",
"initializer": "req.getParameter(\"zip\")",
@@ -9805,6 +13989,14 @@
"end_column": 43
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "phone",
"type": "java.lang.String",
"initializer": "req.getParameter(\"phone\")",
@@ -9814,6 +14006,14 @@
"end_column": 43
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "checkingOut",
"type": "java.lang.Boolean",
"initializer": "(Boolean) session.getAttribute(Util.ATTR_CHECKOUT)",
@@ -9823,6 +14023,14 @@
"end_column": 75
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "category",
"type": "java.lang.String",
"initializer": "(String) session.getAttribute(Util.ATTR_CATEGORY)",
@@ -9832,6 +14040,14 @@
"end_column": 71
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "debugSetting",
"type": "java.lang.String",
"initializer": "req.getParameter(\"logging\")",
@@ -9844,12 +14060,21 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 32,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"requestDispatch(ServletContext, HttpServletRequest, HttpServletResponse, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountServlet.java",
"signature": "requestDispatch(ServletContext, HttpServletRequest, HttpServletResponse, String)",
- "comment": "/**\r\n\t * Request dispatch.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Request dispatch.\r\n\t ",
+ "start_line": 329,
+ "end_line": 331,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"private"
@@ -9864,30 +14089,47 @@
"type": "ServletContext",
"name": "ctx",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 332,
+ "end_line": 332,
+ "start_column": 31,
+ "end_column": 48
},
{
"type": "HttpServletRequest",
"name": "req",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 333,
+ "end_line": 333,
+ "start_column": 4,
+ "end_column": 25
},
{
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 334,
+ "end_line": 334,
+ "start_column": 4,
+ "end_column": 27
},
{
"type": "java.lang.String",
"name": "page",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 335,
+ "end_line": 335,
+ "start_column": 4,
+ "end_column": 14
}
],
- "code": "{\n resp.setContentType(\"text/html\");\n ctx.getRequestDispatcher(page).include(req, resp);\n}",
+ "code": "{\r\n\t\tresp.setContentType(\"text/html\");\r\n\t\tctx.getRequestDispatcher(page).include(req, resp);\r\n\t}",
"start_line": 332,
"end_line": 338,
+ "code_start_line": 335,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -9896,6 +14138,7 @@
"call_sites": [
{
"method_name": "setContentType",
+ "comment": null,
"receiver_expr": "resp",
"receiver_type": "",
"argument_types": [
@@ -9918,6 +14161,7 @@
},
{
"method_name": "include",
+ "comment": null,
"receiver_expr": "ctx.getRequestDispatcher(page)",
"receiver_type": "",
"argument_types": [
@@ -9941,6 +14185,7 @@
},
{
"method_name": "getRequestDispatcher",
+ "comment": null,
"receiver_expr": "ctx",
"receiver_type": "",
"argument_types": [
@@ -9966,12 +14211,19 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 1,
- "is_entrypoint": false
+ "is_entrypoint": true
}
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 43,
@@ -9987,7 +14239,14 @@
"annotations": []
},
{
- "comment": "// Servlet action codes.",
+ "comment": {
+ "content": " Servlet action codes.",
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 2,
+ "end_column": 25,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 45,
@@ -10003,7 +14262,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 46,
@@ -10019,7 +14285,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 47,
@@ -10035,7 +14308,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 48,
@@ -10051,7 +14331,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 49,
@@ -10067,7 +14354,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"start_line": 51,
@@ -10083,7 +14377,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"start_line": 53,
@@ -10099,15 +14400,179 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": true
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "package_name": "com.ibm.websphere.samples.pbw.jpa",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2003,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Bean mapping for BACKORDER table.\r\n ",
+ "start_line": 32,
+ "end_line": 34,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": " missing table",
+ "start_line": 49,
+ "end_line": 49,
+ "start_column": 34,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " relationships",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 2,
+ "end_column": 17,
+ "is_javadoc": false
+ },
+ {
+ "content": " Increase the BackOrder quantity for an existing Back Order.",
+ "start_line": 107,
+ "end_line": 107,
+ "start_column": 3,
+ "end_column": 64,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"javax.persistence.Entity",
"javax.persistence.GeneratedValue",
@@ -10132,7 +14597,40 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * Bean mapping for BACKORDER table.\r\n */",
+ "comments": [
+ {
+ "content": " missing table",
+ "start_line": 49,
+ "end_line": 49,
+ "start_column": 34,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " relationships",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 2,
+ "end_column": 17,
+ "is_javadoc": false
+ },
+ {
+ "content": " Increase the BackOrder quantity for an existing Back Order.",
+ "start_line": 107,
+ "end_line": 107,
+ "start_column": 3,
+ "end_column": 64,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Bean mapping for BACKORDER table.\r\n ",
+ "start_line": 32,
+ "end_line": 34,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -10146,9 +14644,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"setBackOrderID(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "setBackOrderID(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10160,12 +14658,17 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 74,
+ "end_line": 74,
+ "start_column": 29,
+ "end_column": 46
}
],
- "code": "{\n this.backOrderID = backOrderID;\n}",
+ "code": "{\r\n\t\tthis.backOrderID = backOrderID;\r\n\t}",
"start_line": 74,
"end_line": 76,
+ "code_start_line": 74,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -10183,9 +14686,9 @@
"is_entrypoint": false
},
"getQuantity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "getQuantity()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10193,9 +14696,10 @@
"thrown_exceptions": [],
"declaration": "public int getQuantity()",
"parameters": [],
- "code": "{\n return quantity;\n}",
+ "code": "{\r\n\t\treturn quantity;\r\n\t}",
"start_line": 94,
"end_line": 96,
+ "code_start_line": 94,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -10211,9 +14715,9 @@
"is_entrypoint": false
},
"getInventory()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "getInventory()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10221,9 +14725,10 @@
"thrown_exceptions": [],
"declaration": "public Inventory getInventory()",
"parameters": [],
- "code": "{\n return inventory;\n}",
+ "code": "{\r\n\t\treturn inventory;\r\n\t}",
"start_line": 127,
"end_line": 129,
+ "code_start_line": 127,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"is_implicit": false,
"is_constructor": false,
@@ -10239,9 +14744,9 @@
"is_entrypoint": false
},
"getOrderDate()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "getOrderDate()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10249,9 +14754,10 @@
"thrown_exceptions": [],
"declaration": "public long getOrderDate()",
"parameters": [],
- "code": "{\n return orderDate;\n}",
+ "code": "{\r\n\t\treturn orderDate;\r\n\t}",
"start_line": 86,
"end_line": 88,
+ "code_start_line": 86,
"return_type": "long",
"is_implicit": false,
"is_constructor": false,
@@ -10267,9 +14773,9 @@
"is_entrypoint": false
},
"getLowDate()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "getLowDate()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10277,9 +14783,10 @@
"thrown_exceptions": [],
"declaration": "public long getLowDate()",
"parameters": [],
- "code": "{\n return lowDate;\n}",
+ "code": "{\r\n\t\treturn lowDate;\r\n\t}",
"start_line": 78,
"end_line": 80,
+ "code_start_line": 78,
"return_type": "long",
"is_implicit": false,
"is_constructor": false,
@@ -10295,9 +14802,9 @@
"is_entrypoint": false
},
"(Inventory, int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "BackOrder(Inventory, int)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10309,18 +14816,27 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "inventory",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 63,
+ "end_line": 63,
+ "start_column": 19,
+ "end_column": 37
},
{
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 63,
+ "end_line": 63,
+ "start_column": 40,
+ "end_column": 51
}
],
- "code": "{\n this.setInventory(inventory);\n this.setQuantity(quantity);\n this.setStatus(Util.STATUS_ORDERSTOCK);\n this.setLowDate(System.currentTimeMillis());\n}",
+ "code": "{\r\n\t\t\tthis.setInventory(inventory);\r\n\t\t\tthis.setQuantity(quantity);\r\n\t\t\tthis.setStatus(Util.STATUS_ORDERSTOCK);\r\n\t\t\tthis.setLowDate(System.currentTimeMillis());\r\n\t}",
"start_line": 63,
"end_line": 68,
+ "code_start_line": 63,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -10335,6 +14851,7 @@
"call_sites": [
{
"method_name": "setInventory",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -10357,6 +14874,7 @@
},
{
"method_name": "setQuantity",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -10379,6 +14897,7 @@
},
{
"method_name": "setStatus",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -10401,6 +14920,7 @@
},
{
"method_name": "setLowDate",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -10423,6 +14943,7 @@
},
{
"method_name": "currentTimeMillis",
+ "comment": null,
"receiver_expr": "System",
"receiver_type": "java.lang.System",
"argument_types": [],
@@ -10449,9 +14970,9 @@
"is_entrypoint": false
},
"setStatus(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "setStatus(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10463,12 +14984,17 @@
"type": "java.lang.String",
"name": "status",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 115,
+ "end_line": 115,
+ "start_column": 24,
+ "end_column": 36
}
],
- "code": "{\n this.status = status;\n}",
+ "code": "{\r\n\t\tthis.status = status;\r\n\t}",
"start_line": 115,
"end_line": 117,
+ "code_start_line": 115,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -10486,9 +15012,9 @@
"is_entrypoint": false
},
"setLowDate(long)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "setLowDate(long)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10500,12 +15026,17 @@
"type": "long",
"name": "lowDate",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 82,
+ "end_line": 82,
+ "start_column": 25,
+ "end_column": 36
}
],
- "code": "{\n this.lowDate = lowDate;\n}",
+ "code": "{\r\n\t\tthis.lowDate = lowDate;\r\n\t}",
"start_line": 82,
"end_line": 84,
+ "code_start_line": 82,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -10521,9 +15052,9 @@
"is_entrypoint": false
},
"setOrderDate(long)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "setOrderDate(long)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10535,12 +15066,17 @@
"type": "long",
"name": "orderDate",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 27,
+ "end_column": 40
}
],
- "code": "{\n this.orderDate = orderDate;\n}",
+ "code": "{\r\n\t\tthis.orderDate = orderDate;\r\n\t}",
"start_line": 90,
"end_line": 92,
+ "code_start_line": 90,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -10556,9 +15092,9 @@
"is_entrypoint": false
},
"(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "BackOrder(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10570,12 +15106,17 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 59,
+ "end_line": 59,
+ "start_column": 19,
+ "end_column": 36
}
],
- "code": "{\n setBackOrderID(backOrderID);\n}",
+ "code": "{\r\n\t\tsetBackOrderID(backOrderID);\r\n\t}",
"start_line": 59,
"end_line": 61,
+ "code_start_line": 59,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -10586,6 +15127,7 @@
"call_sites": [
{
"method_name": "setBackOrderID",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -10614,9 +15156,9 @@
"is_entrypoint": false
},
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "BackOrder()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10624,9 +15166,10 @@
"thrown_exceptions": [],
"declaration": "public BackOrder()",
"parameters": [],
- "code": "{\n}",
+ "code": "{\r\n\t}",
"start_line": 56,
"end_line": 57,
+ "code_start_line": 56,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -10640,9 +15183,9 @@
"is_entrypoint": false
},
"getSupplierOrderID()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "getSupplierOrderID()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10650,9 +15193,10 @@
"thrown_exceptions": [],
"declaration": "public String getSupplierOrderID()",
"parameters": [],
- "code": "{\n return supplierOrderID;\n}",
+ "code": "{\r\n\t\treturn supplierOrderID;\r\n\t}",
"start_line": 119,
"end_line": 121,
+ "code_start_line": 119,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -10668,9 +15212,18 @@
"is_entrypoint": false
},
"increateQuantity(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "increateQuantity(int)",
- "comment": "",
+ "comments": [
+ {
+ "content": " Increase the BackOrder quantity for an existing Back Order.",
+ "start_line": 107,
+ "end_line": 107,
+ "start_column": 3,
+ "end_column": 64,
+ "is_javadoc": false
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -10682,12 +15235,17 @@
"type": "int",
"name": "delta",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 102,
+ "end_line": 102,
+ "start_column": 31,
+ "end_column": 39
}
],
- "code": "{\n if (!(status.equals(Util.STATUS_ORDERSTOCK))) {\n Util.debug(\"BackOrderMgr.createBackOrder() - Backorders found but have already been ordered from the supplier\");\n throw new RuntimeException(\"cannot increase order size for orders already in progress\");\n }\n // Increase the BackOrder quantity for an existing Back Order.\n quantity = quantity + delta;\n}",
+ "code": "{\r\n\t\tif (!(status.equals(Util.STATUS_ORDERSTOCK))) {\r\n\t\t\tUtil.debug(\"BackOrderMgr.createBackOrder() - Backorders found but have already been ordered from the supplier\");\r\n\t\t\tthrow new RuntimeException(\"cannot increase order size for orders already in progress\");\r\n\t\t}\r\n\t\t// Increase the BackOrder quantity for an existing Back Order.\r\n\t\tquantity = quantity + delta;\r\n\t}",
"start_line": 102,
"end_line": 109,
+ "code_start_line": 102,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -10702,6 +15260,7 @@
"call_sites": [
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "status",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -10724,6 +15283,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -10746,6 +15306,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.RuntimeException",
"argument_types": [
@@ -10774,9 +15335,9 @@
"is_entrypoint": false
},
"setInventory(Inventory)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "setInventory(Inventory)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10788,12 +15349,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "inventory",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 131,
+ "end_line": 131,
+ "start_column": 27,
+ "end_column": 45
}
],
- "code": "{\n this.inventory = inventory;\n}",
+ "code": "{\r\n\t\tthis.inventory = inventory;\r\n\t}",
"start_line": 131,
"end_line": 133,
+ "code_start_line": 131,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -10811,9 +15377,9 @@
"is_entrypoint": false
},
"setQuantity(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "setQuantity(int)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10825,12 +15391,17 @@
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 98,
+ "end_line": 98,
+ "start_column": 26,
+ "end_column": 37
}
],
- "code": "{\n this.quantity = quantity;\n}",
+ "code": "{\r\n\t\tthis.quantity = quantity;\r\n\t}",
"start_line": 98,
"end_line": 100,
+ "code_start_line": 98,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -10846,9 +15417,9 @@
"is_entrypoint": false
},
"setSupplierOrderID(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "setSupplierOrderID(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10860,12 +15431,17 @@
"type": "java.lang.String",
"name": "supplierOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 123,
+ "end_line": 123,
+ "start_column": 33,
+ "end_column": 54
}
],
- "code": "{\n this.supplierOrderID = supplierOrderID;\n}",
+ "code": "{\r\n\t\tthis.supplierOrderID = supplierOrderID;\r\n\t}",
"start_line": 123,
"end_line": 125,
+ "code_start_line": 123,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -10883,9 +15459,9 @@
"is_entrypoint": false
},
"getStatus()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "getStatus()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10893,9 +15469,10 @@
"thrown_exceptions": [],
"declaration": "public String getStatus()",
"parameters": [],
- "code": "{\n return status;\n}",
+ "code": "{\r\n\t\treturn status;\r\n\t}",
"start_line": 111,
"end_line": 113,
+ "code_start_line": 111,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -10911,9 +15488,9 @@
"is_entrypoint": false
},
"getBackOrderID()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java",
"signature": "getBackOrderID()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -10921,9 +15498,10 @@
"thrown_exceptions": [],
"declaration": "public String getBackOrderID()",
"parameters": [],
- "code": "{\n return backOrderID;\n}",
+ "code": "{\r\n\t\treturn backOrderID;\r\n\t}",
"start_line": 70,
"end_line": 72,
+ "code_start_line": 70,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -10941,7 +15519,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 41,
@@ -10959,7 +15544,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "int",
"start_line": 45,
@@ -10973,7 +15565,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 46,
@@ -10987,7 +15586,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 47,
@@ -11001,7 +15607,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 48,
@@ -11015,7 +15628,14 @@
"annotations": []
},
{
- "comment": "// missing table",
+ "comment": {
+ "content": " missing table",
+ "start_line": 49,
+ "end_line": 49,
+ "start_column": 34,
+ "end_column": 49,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 49,
@@ -11029,7 +15649,14 @@
"annotations": []
},
{
- "comment": "// relationships",
+ "comment": {
+ "content": " relationships",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 2,
+ "end_column": 17,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"start_line": 52,
@@ -11046,15 +15673,163 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/NoSupplierException.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/NoSupplierException.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/NoSupplierException.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/NoSupplierException.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2003,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 21,
+ "end_line": 23,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method NoSupplierException\r\n\t * \r\n\t * @param message\r\n\t ",
+ "start_line": 26,
+ "end_line": 30,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [],
"type_declarations": {
"com.ibm.websphere.samples.pbw.bean.NoSupplierException": {
@@ -11069,7 +15844,24 @@
"extends_list": [
"java.lang.Exception"
],
- "comment": "",
+ "comments": [
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 21,
+ "end_line": 23,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method NoSupplierException\r\n\t * \r\n\t * @param message\r\n\t ",
+ "start_line": 26,
+ "end_line": 30,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -11079,9 +15871,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/NoSupplierException.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/NoSupplierException.java",
"signature": "NoSupplierException(String)",
- "comment": "/**\r\n\t * Method NoSupplierException\r\n\t * \r\n\t * @param message\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method NoSupplierException\r\n\t * \r\n\t * @param message\r\n\t ",
+ "start_line": 26,
+ "end_line": 30,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -11093,12 +15894,17 @@
"type": "java.lang.String",
"name": "message",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 31,
+ "end_line": 31,
+ "start_column": 29,
+ "end_column": 42
}
],
- "code": "{\n super(message);\n return;\n}",
+ "code": "{\r\n\t\tsuper(message);\r\n\t\treturn;\r\n\t}",
"start_line": 31,
"end_line": 34,
+ "code_start_line": 31,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -11114,7 +15920,14 @@
},
"field_declarations": [
{
- "comment": "/**\r\n\t * \r\n\t */",
+ "comment": {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 21,
+ "end_line": 23,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 24,
@@ -11130,15 +15943,187 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 60,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * JSF action bean for the help page.\r\n *\r\n ",
+ "start_line": 29,
+ "end_line": 32,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the dbDumpFile\r\n\t ",
+ "start_line": 53,
+ "end_line": 55,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param dbDumpFile\r\n\t * the dbDumpFile to set\r\n\t ",
+ "start_line": 60,
+ "end_line": 63,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return whether debug is on or not\r\n\t ",
+ "start_line": 68,
+ "end_line": 70,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Debugging is currently tied to the JavaServer Faces project stage. Any change here is likely\r\n\t * to be automatically reset.\r\n\t * \r\n\t * @param debug\r\n\t * Sets whether debug is on or not.\r\n\t ",
+ "start_line": 75,
+ "end_line": 81,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.Serializable",
"javax.enterprise.context.Dependent",
@@ -11158,7 +16143,48 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * JSF action bean for the help page.\r\n *\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the dbDumpFile\r\n\t ",
+ "start_line": 53,
+ "end_line": 55,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param dbDumpFile\r\n\t * the dbDumpFile to set\r\n\t ",
+ "start_line": 60,
+ "end_line": 63,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return whether debug is on or not\r\n\t ",
+ "start_line": 68,
+ "end_line": 70,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Debugging is currently tied to the JavaServer Faces project stage. Any change here is likely\r\n\t * to be automatically reset.\r\n\t * \r\n\t * @param debug\r\n\t * Sets whether debug is on or not.\r\n\t ",
+ "start_line": 75,
+ "end_line": 81,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * JSF action bean for the help page.\r\n *\r\n ",
+ "start_line": 29,
+ "end_line": 32,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -11172,9 +16198,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"setDebug(boolean)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
"signature": "setDebug(boolean)",
- "comment": "/**\r\n\t * Debugging is currently tied to the JavaServer Faces project stage. Any change here is likely\r\n\t * to be automatically reset.\r\n\t * \r\n\t * @param debug\r\n\t * Sets whether debug is on or not.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Debugging is currently tied to the JavaServer Faces project stage. Any change here is likely\r\n\t * to be automatically reset.\r\n\t * \r\n\t * @param debug\r\n\t * Sets whether debug is on or not.\r\n\t ",
+ "start_line": 75,
+ "end_line": 81,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -11186,12 +16221,17 @@
"type": "boolean",
"name": "debug",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 82,
+ "end_line": 82,
+ "start_column": 23,
+ "end_column": 35
}
],
- "code": "{\n Util.setDebug(debug);\n}",
+ "code": "{\r\n\t\tUtil.setDebug(debug);\r\n\t}",
"start_line": 82,
"end_line": 84,
+ "code_start_line": 82,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -11200,6 +16240,7 @@
"call_sites": [
{
"method_name": "setDebug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -11228,9 +16269,9 @@
"is_entrypoint": false
},
"performDBReset()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
"signature": "performDBReset()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -11238,9 +16279,10 @@
"thrown_exceptions": [],
"declaration": "public String performDBReset()",
"parameters": [],
- "code": "{\n rdb.resetDB();\n return ACTION_HOME;\n}",
+ "code": "{\r\n\t\trdb.resetDB();\r\n\t\treturn ACTION_HOME;\r\n\t}",
"start_line": 48,
"end_line": 51,
+ "code_start_line": 48,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -11252,6 +16294,7 @@
"call_sites": [
{
"method_name": "resetDB",
+ "comment": null,
"receiver_expr": "rdb",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean",
"argument_types": [],
@@ -11278,9 +16321,18 @@
"is_entrypoint": false
},
"getDbDumpFile()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
"signature": "getDbDumpFile()",
- "comment": "/**\r\n\t * @return the dbDumpFile\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the dbDumpFile\r\n\t ",
+ "start_line": 53,
+ "end_line": 55,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -11288,9 +16340,10 @@
"thrown_exceptions": [],
"declaration": "public String getDbDumpFile()",
"parameters": [],
- "code": "{\n return dbDumpFile;\n}",
+ "code": "{\r\n\t\treturn dbDumpFile;\r\n\t}",
"start_line": 56,
"end_line": 58,
+ "code_start_line": 56,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -11306,9 +16359,18 @@
"is_entrypoint": false
},
"setDbDumpFile(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
"signature": "setDbDumpFile(String)",
- "comment": "/**\r\n\t * @param dbDumpFile\r\n\t * the dbDumpFile to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param dbDumpFile\r\n\t * the dbDumpFile to set\r\n\t ",
+ "start_line": 60,
+ "end_line": 63,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -11320,12 +16382,17 @@
"type": "java.lang.String",
"name": "dbDumpFile",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 64,
+ "end_line": 64,
+ "start_column": 28,
+ "end_column": 44
}
],
- "code": "{\n this.dbDumpFile = dbDumpFile;\n}",
+ "code": "{\r\n\t\tthis.dbDumpFile = dbDumpFile;\r\n\t}",
"start_line": 64,
"end_line": 66,
+ "code_start_line": 64,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -11343,9 +16410,9 @@
"is_entrypoint": false
},
"performHelp()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
"signature": "performHelp()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -11353,9 +16420,10 @@
"thrown_exceptions": [],
"declaration": "public String performHelp()",
"parameters": [],
- "code": "{\n return ACTION_HELP;\n}",
+ "code": "{\r\n\t\treturn ACTION_HELP;\r\n\t}",
"start_line": 44,
"end_line": 46,
+ "code_start_line": 44,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -11371,9 +16439,18 @@
"is_entrypoint": false
},
"isDebug()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/HelpBean.java",
"signature": "isDebug()",
- "comment": "/**\r\n\t * @return whether debug is on or not\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return whether debug is on or not\r\n\t ",
+ "start_line": 68,
+ "end_line": 70,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -11381,9 +16458,10 @@
"thrown_exceptions": [],
"declaration": "public boolean isDebug()",
"parameters": [],
- "code": "{\n return Util.debugOn();\n}",
+ "code": "{\r\n\t\treturn Util.debugOn();\r\n\t}",
"start_line": 71,
"end_line": 73,
+ "code_start_line": 71,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -11392,6 +16470,7 @@
"call_sites": [
{
"method_name": "debugOn",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [],
@@ -11420,7 +16499,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean",
"start_line": 36,
@@ -11436,7 +16522,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 39,
@@ -11450,7 +16543,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 41,
@@ -11466,7 +16566,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 42,
@@ -11482,15 +16589,267 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2004,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * ResetDBBean provides a transactional and secure facade to reset all the database information for\r\n * the PlantsByWebSphere application.\r\n ",
+ "start_line": 49,
+ "end_line": 52,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param itemID\r\n\t * @param fileName\r\n\t * @param catalog\r\n\t * @throws FileNotFoundException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 81,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Open the input file as a stream of bytes",
+ "start_line": 96,
+ "end_line": 96,
+ "start_column": 3,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate INVENTORY table with text\r\n\t\t ",
+ "start_line": 106,
+ "end_line": 108,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate CUSTOMER table with text\r\n\t\t ",
+ "start_line": 150,
+ "end_line": 152,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate ORDER table with text\r\n\t\t ",
+ "start_line": 186,
+ "end_line": 188,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " stmt.executeUpdate(\" INSERT INTO ORDERITEM(INVENTORYID, NAME, PKGINFO, PRICE, COST,",
+ "start_line": 248,
+ "end_line": 248,
+ "start_column": 4,
+ "end_column": 89,
+ "is_javadoc": false
+ },
+ {
+ "content": " CATEGORY, QUANTITY, SELLDATE, ORDER_ORDERID) VALUES ('A0001', 'Bulb Digger',",
+ "start_line": 249,
+ "end_line": 249,
+ "start_column": 4,
+ "end_column": 82,
+ "is_javadoc": false
+ },
+ {
+ "content": " 'Assembled', 12.0, 5.0, 3, 900, '01054835419625', '1')\");",
+ "start_line": 250,
+ "end_line": 250,
+ "start_column": 4,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate BACKORDER table with text\r\n\t\t ",
+ "start_line": 256,
+ "end_line": 258,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting backorders",
+ "start_line": 263,
+ "end_line": 263,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate SUPPLIER table with text\r\n\t\t ",
+ "start_line": 279,
+ "end_line": 281,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting Suppliers",
+ "start_line": 286,
+ "end_line": 286,
+ "start_column": 4,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " q=em.createNamedQuery(\"removeAllIdGenerator\");",
+ "start_line": 321,
+ "end_line": 321,
+ "start_column": 4,
+ "end_column": 52,
+ "is_javadoc": false
+ },
+ {
+ "content": " q.executeUpdate();",
+ "start_line": 322,
+ "end_line": 322,
+ "start_column": 4,
+ "end_column": 24,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.DataInputStream",
"java.io.File",
@@ -11531,7 +16890,120 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "",
+ "comments": [
+ {
+ "content": "\r\n\t * @param itemID\r\n\t * @param fileName\r\n\t * @param catalog\r\n\t * @throws FileNotFoundException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 81,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Open the input file as a stream of bytes",
+ "start_line": 96,
+ "end_line": 96,
+ "start_column": 3,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate INVENTORY table with text\r\n\t\t ",
+ "start_line": 106,
+ "end_line": 108,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate CUSTOMER table with text\r\n\t\t ",
+ "start_line": 150,
+ "end_line": 152,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate ORDER table with text\r\n\t\t ",
+ "start_line": 186,
+ "end_line": 188,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " stmt.executeUpdate(\" INSERT INTO ORDERITEM(INVENTORYID, NAME, PKGINFO, PRICE, COST,",
+ "start_line": 248,
+ "end_line": 248,
+ "start_column": 4,
+ "end_column": 89,
+ "is_javadoc": false
+ },
+ {
+ "content": " CATEGORY, QUANTITY, SELLDATE, ORDER_ORDERID) VALUES ('A0001', 'Bulb Digger',",
+ "start_line": 249,
+ "end_line": 249,
+ "start_column": 4,
+ "end_column": 82,
+ "is_javadoc": false
+ },
+ {
+ "content": " 'Assembled', 12.0, 5.0, 3, 900, '01054835419625', '1')\");",
+ "start_line": 250,
+ "end_line": 250,
+ "start_column": 4,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate BACKORDER table with text\r\n\t\t ",
+ "start_line": 256,
+ "end_line": 258,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting backorders",
+ "start_line": 263,
+ "end_line": 263,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate SUPPLIER table with text\r\n\t\t ",
+ "start_line": 279,
+ "end_line": 281,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting Suppliers",
+ "start_line": 286,
+ "end_line": 286,
+ "start_column": 4,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " q=em.createNamedQuery(\"removeAllIdGenerator\");",
+ "start_line": 321,
+ "end_line": 321,
+ "start_column": 4,
+ "end_column": 52,
+ "is_javadoc": false
+ },
+ {
+ "content": " q.executeUpdate();",
+ "start_line": 322,
+ "end_line": 322,
+ "start_column": 4,
+ "end_column": 24,
+ "is_javadoc": false
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -11547,9 +17019,26 @@
"nested_type_declarations": [],
"callable_declarations": {
"deleteAll()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java",
"signature": "deleteAll()",
- "comment": "",
+ "comments": [
+ {
+ "content": " q=em.createNamedQuery(\"removeAllIdGenerator\");",
+ "start_line": 321,
+ "end_line": 321,
+ "start_column": 4,
+ "end_column": 52,
+ "is_javadoc": false
+ },
+ {
+ "content": " q.executeUpdate();",
+ "start_line": 322,
+ "end_line": 322,
+ "start_column": 4,
+ "end_column": 24,
+ "is_javadoc": false
+ }
+ ],
"annotations": [
"@Transactional"
],
@@ -11559,9 +17048,10 @@
"thrown_exceptions": [],
"declaration": "public void deleteAll()",
"parameters": [],
- "code": "{\n try {\n Query q = em.createNamedQuery(\"removeAllOrders\");\n q.executeUpdate();\n q = em.createNamedQuery(\"removeAllInventory\");\n q.executeUpdate();\n // q=em.createNamedQuery(\"removeAllIdGenerator\");\n // q.executeUpdate();\n q = em.createNamedQuery(\"removeAllCustomers\");\n q.executeUpdate();\n q = em.createNamedQuery(\"removeAllOrderItem\");\n q.executeUpdate();\n q = em.createNamedQuery(\"removeAllBackOrder\");\n q.executeUpdate();\n q = em.createNamedQuery(\"removeAllSupplier\");\n q.executeUpdate();\n em.flush();\n Util.debug(\"Deleted all data from database\");\n } catch (Exception e) {\n Util.debug(\"ResetDB(deleteAll) -- Error deleting data from the database: \" + e);\n e.printStackTrace();\n try {\n tx.setRollbackOnly();\n } catch (IllegalStateException | SystemException ignore) {\n }\n }\n}",
+ "code": "{\r\n\t\ttry {\r\n\t\t\tQuery q = em.createNamedQuery(\"removeAllOrders\");\r\n\t\t\tq.executeUpdate();\r\n\t\t\tq = em.createNamedQuery(\"removeAllInventory\");\r\n\t\t\tq.executeUpdate();\r\n\t\t\t// q=em.createNamedQuery(\"removeAllIdGenerator\");\r\n\t\t\t// q.executeUpdate();\r\n\t\t\tq = em.createNamedQuery(\"removeAllCustomers\");\r\n\t\t\tq.executeUpdate();\r\n\t\t\tq = em.createNamedQuery(\"removeAllOrderItem\");\r\n\t\t\tq.executeUpdate();\r\n\t\t\tq = em.createNamedQuery(\"removeAllBackOrder\");\r\n\t\t\tq.executeUpdate();\r\n\t\t\tq = em.createNamedQuery(\"removeAllSupplier\");\r\n\t\t\tq.executeUpdate();\r\n\t\t\tem.flush();\r\n\t\t\tUtil.debug(\"Deleted all data from database\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"ResetDB(deleteAll) -- Error deleting data from the database: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\ttry {\r\n tx.setRollbackOnly();\r\n } catch (IllegalStateException | SystemException ignore) {\r\n }\r\n\t\t}\r\n\t}",
"start_line": 314,
"end_line": 341,
+ "code_start_line": 315,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -11575,6 +17065,7 @@
"call_sites": [
{
"method_name": "createNamedQuery",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -11597,6 +17088,7 @@
},
{
"method_name": "executeUpdate",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [],
@@ -11617,6 +17109,7 @@
},
{
"method_name": "createNamedQuery",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -11639,6 +17132,7 @@
},
{
"method_name": "executeUpdate",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [],
@@ -11659,6 +17153,7 @@
},
{
"method_name": "createNamedQuery",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -11681,6 +17176,7 @@
},
{
"method_name": "executeUpdate",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [],
@@ -11701,6 +17197,7 @@
},
{
"method_name": "createNamedQuery",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -11723,6 +17220,7 @@
},
{
"method_name": "executeUpdate",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [],
@@ -11743,6 +17241,7 @@
},
{
"method_name": "createNamedQuery",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -11765,6 +17264,7 @@
},
{
"method_name": "executeUpdate",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [],
@@ -11785,6 +17285,7 @@
},
{
"method_name": "createNamedQuery",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -11807,6 +17308,7 @@
},
{
"method_name": "executeUpdate",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [],
@@ -11827,6 +17329,7 @@
},
{
"method_name": "flush",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [],
@@ -11847,6 +17350,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -11869,6 +17373,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -11891,6 +17396,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -11911,6 +17417,7 @@
},
{
"method_name": "setRollbackOnly",
+ "comment": null,
"receiver_expr": "tx",
"receiver_type": "",
"argument_types": [],
@@ -11932,6 +17439,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "q",
"type": "Query",
"initializer": "em.createNamedQuery(\"removeAllOrders\")",
@@ -11947,9 +17462,9 @@
"is_entrypoint": false
},
"resetDB()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java",
"signature": "resetDB()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -11957,9 +17472,10 @@
"thrown_exceptions": [],
"declaration": "public void resetDB()",
"parameters": [],
- "code": "{\n deleteAll();\n populateDB();\n}",
+ "code": "{\r\n\t\tdeleteAll();\r\n\t\tpopulateDB();\r\n\t}",
"start_line": 76,
"end_line": 79,
+ "code_start_line": 76,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -11968,6 +17484,7 @@
"call_sites": [
{
"method_name": "deleteAll",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -11988,6 +17505,7 @@
},
{
"method_name": "populateDB",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -12014,9 +17532,26 @@
"is_entrypoint": false
},
"addImage(String, String, CatalogMgr)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java",
"signature": "addImage(String, String, CatalogMgr)",
- "comment": "/**\r\n\t * @param itemID\r\n\t * @param fileName\r\n\t * @param catalog\r\n\t * @throws FileNotFoundException\r\n\t * @throws IOException\r\n\t */",
+ "comments": [
+ {
+ "content": " Open the input file as a stream of bytes",
+ "start_line": 96,
+ "end_line": 96,
+ "start_column": 3,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param itemID\r\n\t * @param fileName\r\n\t * @param catalog\r\n\t * @throws FileNotFoundException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 81,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public",
@@ -12032,24 +17567,37 @@
"type": "java.lang.String",
"name": "itemID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 30,
+ "end_column": 42
},
{
"type": "java.lang.String",
"name": "fileName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 89,
+ "end_line": 89,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"name": "catalog",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 4,
+ "end_column": 21
}
],
- "code": "{\n URL url = Thread.currentThread().getContextClassLoader().getResource(\"resources/images/\" + fileName);\n Util.debug(\"URL: \" + url);\n fileName = url.getPath();\n Util.debug(\"Fully-qualified Filename: \" + fileName);\n File imgFile = new File(fileName);\n // Open the input file as a stream of bytes\n FileInputStream fis = new FileInputStream(imgFile);\n DataInputStream dis = new DataInputStream(fis);\n int dataSize = dis.available();\n byte[] data = new byte[dataSize];\n dis.readFully(data);\n catalog.setItemImageBytes(itemID, data);\n}",
+ "code": "{\r\n\t\tURL url = Thread.currentThread().getContextClassLoader().getResource(\"resources/images/\" + fileName);\r\n\t\tUtil.debug(\"URL: \" + url);\r\n\t\tfileName = url.getPath();\r\n\t\tUtil.debug(\"Fully-qualified Filename: \" + fileName);\r\n\t\tFile imgFile = new File(fileName);\r\n\t\t// Open the input file as a stream of bytes\r\n\t\tFileInputStream fis = new FileInputStream(imgFile);\r\n\t\tDataInputStream dis = new DataInputStream(fis);\r\n\t\tint dataSize = dis.available();\r\n\t\tbyte[] data = new byte[dataSize];\r\n\t\tdis.readFully(data);\r\n\t\tcatalog.setItemImageBytes(itemID, data);\r\n\t}",
"start_line": 88,
"end_line": 103,
+ "code_start_line": 90,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -12065,6 +17613,7 @@
"call_sites": [
{
"method_name": "getResource",
+ "comment": null,
"receiver_expr": "Thread.currentThread().getContextClassLoader()",
"receiver_type": "java.lang.ClassLoader",
"argument_types": [
@@ -12087,6 +17636,7 @@
},
{
"method_name": "getContextClassLoader",
+ "comment": null,
"receiver_expr": "Thread.currentThread()",
"receiver_type": "java.lang.Thread",
"argument_types": [],
@@ -12107,6 +17657,7 @@
},
{
"method_name": "currentThread",
+ "comment": null,
"receiver_expr": "Thread",
"receiver_type": "java.lang.Thread",
"argument_types": [],
@@ -12127,6 +17678,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12149,6 +17701,7 @@
},
{
"method_name": "getPath",
+ "comment": null,
"receiver_expr": "url",
"receiver_type": "java.net.URL",
"argument_types": [],
@@ -12169,6 +17722,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12191,6 +17745,7 @@
},
{
"method_name": "available",
+ "comment": null,
"receiver_expr": "dis",
"receiver_type": "java.io.DataInputStream",
"argument_types": [],
@@ -12211,6 +17766,7 @@
},
{
"method_name": "readFully",
+ "comment": null,
"receiver_expr": "dis",
"receiver_type": "java.io.DataInputStream",
"argument_types": [
@@ -12233,6 +17789,7 @@
},
{
"method_name": "setItemImageBytes",
+ "comment": null,
"receiver_expr": "catalog",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"argument_types": [
@@ -12256,6 +17813,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.io.File",
"argument_types": [
@@ -12278,6 +17836,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.io.FileInputStream",
"argument_types": [
@@ -12300,6 +17859,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.io.DataInputStream",
"argument_types": [
@@ -12323,6 +17883,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "url",
"type": "java.net.URL",
"initializer": "Thread.currentThread().getContextClassLoader().getResource(\"resources/images/\" + fileName)",
@@ -12332,6 +17900,14 @@
"end_column": 102
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "imgFile",
"type": "java.io.File",
"initializer": "new File(fileName)",
@@ -12341,6 +17917,14 @@
"end_column": 35
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fis",
"type": "java.io.FileInputStream",
"initializer": "new FileInputStream(imgFile)",
@@ -12350,6 +17934,14 @@
"end_column": 52
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "dis",
"type": "java.io.DataInputStream",
"initializer": "new DataInputStream(fis)",
@@ -12359,6 +17951,14 @@
"end_column": 48
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "dataSize",
"type": "int",
"initializer": "dis.available()",
@@ -12368,6 +17968,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "data",
"type": "byte[]",
"initializer": "new byte[dataSize]",
@@ -12383,9 +17991,90 @@
"is_entrypoint": false
},
"populateDB()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ResetDBBean.java",
"signature": "populateDB()",
- "comment": "",
+ "comments": [
+ {
+ "content": "\r\n\t\t * Populate INVENTORY table with text\r\n\t\t ",
+ "start_line": 106,
+ "end_line": 108,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate CUSTOMER table with text\r\n\t\t ",
+ "start_line": 150,
+ "end_line": 152,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Populate ORDER table with text\r\n\t\t ",
+ "start_line": 186,
+ "end_line": 188,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " stmt.executeUpdate(\" INSERT INTO ORDERITEM(INVENTORYID, NAME, PKGINFO, PRICE, COST,",
+ "start_line": 248,
+ "end_line": 248,
+ "start_column": 4,
+ "end_column": 89,
+ "is_javadoc": false
+ },
+ {
+ "content": " CATEGORY, QUANTITY, SELLDATE, ORDER_ORDERID) VALUES ('A0001', 'Bulb Digger',",
+ "start_line": 249,
+ "end_line": 249,
+ "start_column": 4,
+ "end_column": 82,
+ "is_javadoc": false
+ },
+ {
+ "content": " 'Assembled', 12.0, 5.0, 3, 900, '01054835419625', '1')\");",
+ "start_line": 250,
+ "end_line": 250,
+ "start_column": 4,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate BACKORDER table with text\r\n\t\t ",
+ "start_line": 256,
+ "end_line": 258,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting backorders",
+ "start_line": 263,
+ "end_line": 263,
+ "start_column": 4,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Populate SUPPLIER table with text\r\n\t\t ",
+ "start_line": 279,
+ "end_line": 281,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " Inserting Suppliers",
+ "start_line": 286,
+ "end_line": 286,
+ "start_column": 4,
+ "end_column": 25,
+ "is_javadoc": false
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -12393,9 +18082,10 @@
"thrown_exceptions": [],
"declaration": "public void populateDB()",
"parameters": [],
- "code": "{\n /**\n * Populate INVENTORY table with text\n */\n Util.debug(\"Populating INVENTORY table with text...\");\n try {\n String[] values = Util.getProperties(\"inventory\");\n for (int index = 0; index < values.length; index++) {\n Util.debug(\"Found INVENTORY property values: \" + values[index]);\n String[] fields = Util.readTokens(values[index], \"|\");\n String id = fields[0];\n String name = fields[1];\n String heading = fields[2];\n String descr = fields[3];\n String pkginfo = fields[4];\n String image = fields[5];\n float price = new Float(fields[6]).floatValue();\n float cost = new Float(fields[7]).floatValue();\n int quantity = new Integer(fields[8]).intValue();\n int category = new Integer(fields[9]).intValue();\n String notes = fields[10];\n boolean isPublic = new Boolean(fields[11]).booleanValue();\n Util.debug(\"Populating INVENTORY with following values: \");\n Util.debug(fields[0]);\n Util.debug(fields[1]);\n Util.debug(fields[2]);\n Util.debug(fields[3]);\n Util.debug(fields[4]);\n Util.debug(fields[5]);\n Util.debug(fields[6]);\n Util.debug(fields[7]);\n Util.debug(fields[8]);\n Util.debug(fields[9]);\n Util.debug(fields[10]);\n Util.debug(fields[11]);\n Inventory storeItem = new Inventory(id, name, heading, descr, pkginfo, image, price, cost, quantity, category, notes, isPublic);\n catalog.addItem(storeItem);\n addImage(id, image, catalog);\n }\n Util.debug(\"INVENTORY table populated with text...\");\n } catch (Exception e) {\n Util.debug(\"Unable to populate INVENTORY table with text data: \" + e);\n e.printStackTrace();\n }\n /**\n * Populate CUSTOMER table with text\n */\n Util.debug(\"Populating CUSTOMER table with default values...\");\n try {\n String[] values = Util.getProperties(\"customer\");\n Util.debug(\"Found CUSTOMER properties: \" + values[0]);\n for (int index = 0; index < values.length; index++) {\n String[] fields = Util.readTokens(values[index], \"|\");\n String customerID = fields[0];\n String password = fields[1];\n String firstName = fields[2];\n String lastName = fields[3];\n String addr1 = fields[4];\n String addr2 = fields[5];\n String addrCity = fields[6];\n String addrState = fields[7];\n String addrZip = fields[8];\n String phone = fields[9];\n Util.debug(\"Populating CUSTOMER with following values: \");\n Util.debug(fields[0]);\n Util.debug(fields[1]);\n Util.debug(fields[2]);\n Util.debug(fields[3]);\n Util.debug(fields[4]);\n Util.debug(fields[5]);\n Util.debug(fields[6]);\n Util.debug(fields[7]);\n Util.debug(fields[8]);\n Util.debug(fields[9]);\n customer.createCustomer(customerID, password, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone);\n }\n } catch (Exception e) {\n Util.debug(\"Unable to populate CUSTOMER table with text data: \" + e);\n e.printStackTrace();\n }\n /**\n * Populate ORDER table with text\n */\n Util.debug(\"Populating ORDER table with default values...\");\n try {\n String[] values = Util.getProperties(\"order\");\n Util.debug(\"Found ORDER properties: \" + values[0]);\n if (values[0] != null && values.length > 0) {\n for (int index = 0; index < values.length; index++) {\n String[] fields = Util.readTokens(values[index], \"|\");\n if (fields != null && fields.length >= 21) {\n String customerID = fields[0];\n String billName = fields[1];\n String billAddr1 = fields[2];\n String billAddr2 = fields[3];\n String billCity = fields[4];\n String billState = fields[5];\n String billZip = fields[6];\n String billPhone = fields[7];\n String shipName = fields[8];\n String shipAddr1 = fields[9];\n String shipAddr2 = fields[10];\n String shipCity = fields[11];\n String shipState = fields[12];\n String shipZip = fields[13];\n String shipPhone = fields[14];\n int shippingMethod = Integer.parseInt(fields[15]);\n String creditCard = fields[16];\n String ccNum = fields[17];\n String ccExpireMonth = fields[18];\n String ccExpireYear = fields[19];\n String cardHolder = fields[20];\n Vector items = new Vector();\n Util.debug(\"Populating ORDER with following values: \");\n Util.debug(fields[0]);\n Util.debug(fields[1]);\n Util.debug(fields[2]);\n Util.debug(fields[3]);\n Util.debug(fields[4]);\n Util.debug(fields[5]);\n Util.debug(fields[6]);\n Util.debug(fields[7]);\n Util.debug(fields[8]);\n Util.debug(fields[9]);\n Util.debug(fields[10]);\n Util.debug(fields[11]);\n Util.debug(fields[12]);\n Util.debug(fields[13]);\n Util.debug(fields[14]);\n Util.debug(fields[15]);\n Util.debug(fields[16]);\n Util.debug(fields[17]);\n Util.debug(fields[18]);\n Util.debug(fields[19]);\n Util.debug(fields[20]);\n cart.createOrder(customerID, billName, billAddr1, billAddr2, billCity, billState, billZip, billPhone, shipName, shipAddr1, shipAddr2, shipCity, shipState, shipZip, shipPhone, creditCard, ccNum, ccExpireMonth, ccExpireYear, cardHolder, shippingMethod, items);\n } else {\n Util.debug(\"Property does not contain enough fields: \" + values[index]);\n Util.debug(\"Fields found were: \" + fields);\n }\n }\n }\n // stmt.executeUpdate(\" INSERT INTO ORDERITEM(INVENTORYID, NAME, PKGINFO, PRICE, COST,\n // CATEGORY, QUANTITY, SELLDATE, ORDER_ORDERID) VALUES ('A0001', 'Bulb Digger',\n // 'Assembled', 12.0, 5.0, 3, 900, '01054835419625', '1')\");\n } catch (Exception e) {\n Util.debug(\"Unable to populate ORDERITEM table with text data: \" + e);\n e.printStackTrace();\n e.printStackTrace();\n }\n /**\n * Populate BACKORDER table with text\n */\n Util.debug(\"Populating BACKORDER table with default values...\");\n try {\n String[] values = Util.getProperties(\"backorder\");\n Util.debug(\"Found BACKORDER properties: \" + values[0]);\n // Inserting backorders\n for (int index = 0; index < values.length; index++) {\n String[] fields = Util.readTokens(values[index], \"|\");\n String inventoryID = fields[0];\n int amountToOrder = new Integer(fields[1]).intValue();\n int maximumItems = new Integer(fields[2]).intValue();\n Util.debug(\"Populating BACKORDER with following values: \");\n Util.debug(inventoryID);\n Util.debug(\"amountToOrder -> \" + amountToOrder);\n Util.debug(\"maximumItems -> \" + maximumItems);\n backOrderStock.createBackOrder(inventoryID, amountToOrder, maximumItems);\n }\n } catch (Exception e) {\n Util.debug(\"Unable to populate BACKORDER table with text data: \" + e);\n e.printStackTrace();\n }\n /**\n * Populate SUPPLIER table with text\n */\n Util.debug(\"Populating SUPPLIER table with default values...\");\n try {\n String[] values = Util.getProperties(\"supplier\");\n Util.debug(\"Found SUPPLIER properties: \" + values[0]);\n // Inserting Suppliers\n for (int index = 0; index < values.length; index++) {\n String[] fields = Util.readTokens(values[index], \"|\");\n String supplierID = fields[0];\n String name = fields[1];\n String address = fields[2];\n String city = fields[3];\n String state = fields[4];\n String zip = fields[5];\n String phone = fields[6];\n String url = fields[7];\n Util.debug(\"Populating SUPPLIER with following values: \");\n Util.debug(fields[0]);\n Util.debug(fields[1]);\n Util.debug(fields[2]);\n Util.debug(fields[3]);\n Util.debug(fields[4]);\n Util.debug(fields[5]);\n Util.debug(fields[6]);\n Util.debug(fields[7]);\n suppliers.createSupplier(supplierID, name, address, city, state, zip, phone, url);\n }\n } catch (Exception e) {\n Util.debug(\"Unable to populate SUPPLIER table with text data: \" + e);\n e.printStackTrace();\n }\n}",
+ "code": "{\r\n\t\t/**\r\n\t\t * Populate INVENTORY table with text\r\n\t\t */\r\n\t\tUtil.debug(\"Populating INVENTORY table with text...\");\r\n\t\ttry {\r\n\t\t\tString[] values = Util.getProperties(\"inventory\");\r\n\t\t\tfor (int index = 0; index < values.length; index++) {\r\n\t\t\t\tUtil.debug(\"Found INVENTORY property values: \" + values[index]);\r\n\t\t\t\tString[] fields = Util.readTokens(values[index], \"|\");\r\n\t\t\t\tString id = fields[0];\r\n\t\t\t\tString name = fields[1];\r\n\t\t\t\tString heading = fields[2];\r\n\t\t\t\tString descr = fields[3];\r\n\t\t\t\tString pkginfo = fields[4];\r\n\t\t\t\tString image = fields[5];\r\n\t\t\t\tfloat price = new Float(fields[6]).floatValue();\r\n\t\t\t\tfloat cost = new Float(fields[7]).floatValue();\r\n\t\t\t\tint quantity = new Integer(fields[8]).intValue();\r\n\t\t\t\tint category = new Integer(fields[9]).intValue();\r\n\t\t\t\tString notes = fields[10];\r\n\t\t\t\tboolean isPublic = new Boolean(fields[11]).booleanValue();\r\n\t\t\t\tUtil.debug(\"Populating INVENTORY with following values: \");\r\n\t\t\t\tUtil.debug(fields[0]);\r\n\t\t\t\tUtil.debug(fields[1]);\r\n\t\t\t\tUtil.debug(fields[2]);\r\n\t\t\t\tUtil.debug(fields[3]);\r\n\t\t\t\tUtil.debug(fields[4]);\r\n\t\t\t\tUtil.debug(fields[5]);\r\n\t\t\t\tUtil.debug(fields[6]);\r\n\t\t\t\tUtil.debug(fields[7]);\r\n\t\t\t\tUtil.debug(fields[8]);\r\n\t\t\t\tUtil.debug(fields[9]);\r\n\t\t\t\tUtil.debug(fields[10]);\r\n\t\t\t\tUtil.debug(fields[11]);\r\n\t\t\t\tInventory storeItem = new Inventory(id, name, heading, descr, pkginfo, image, price, cost, quantity,\r\n\t\t\t\t\t\tcategory, notes, isPublic);\r\n\t\t\t\tcatalog.addItem(storeItem);\r\n\t\t\t\taddImage(id, image, catalog);\r\n\t\t\t}\r\n\t\t\tUtil.debug(\"INVENTORY table populated with text...\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Unable to populate INVENTORY table with text data: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t/**\r\n\t\t * Populate CUSTOMER table with text\r\n\t\t */\r\n\t\tUtil.debug(\"Populating CUSTOMER table with default values...\");\r\n\t\ttry {\r\n\t\t\tString[] values = Util.getProperties(\"customer\");\r\n\t\t\tUtil.debug(\"Found CUSTOMER properties: \" + values[0]);\r\n\t\t\tfor (int index = 0; index < values.length; index++) {\r\n\t\t\t\tString[] fields = Util.readTokens(values[index], \"|\");\r\n\t\t\t\tString customerID = fields[0];\r\n\t\t\t\tString password = fields[1];\r\n\t\t\t\tString firstName = fields[2];\r\n\t\t\t\tString lastName = fields[3];\r\n\t\t\t\tString addr1 = fields[4];\r\n\t\t\t\tString addr2 = fields[5];\r\n\t\t\t\tString addrCity = fields[6];\r\n\t\t\t\tString addrState = fields[7];\r\n\t\t\t\tString addrZip = fields[8];\r\n\t\t\t\tString phone = fields[9];\r\n\t\t\t\tUtil.debug(\"Populating CUSTOMER with following values: \");\r\n\t\t\t\tUtil.debug(fields[0]);\r\n\t\t\t\tUtil.debug(fields[1]);\r\n\t\t\t\tUtil.debug(fields[2]);\r\n\t\t\t\tUtil.debug(fields[3]);\r\n\t\t\t\tUtil.debug(fields[4]);\r\n\t\t\t\tUtil.debug(fields[5]);\r\n\t\t\t\tUtil.debug(fields[6]);\r\n\t\t\t\tUtil.debug(fields[7]);\r\n\t\t\t\tUtil.debug(fields[8]);\r\n\t\t\t\tUtil.debug(fields[9]);\r\n\t\t\t\tcustomer.createCustomer(customerID, password, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Unable to populate CUSTOMER table with text data: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t/**\r\n\t\t * Populate ORDER table with text\r\n\t\t */\r\n\t\tUtil.debug(\"Populating ORDER table with default values...\");\r\n\t\ttry {\r\n\t\t\tString[] values = Util.getProperties(\"order\");\r\n\t\t\tUtil.debug(\"Found ORDER properties: \" + values[0]);\r\n\t\t\tif (values[0] != null && values.length > 0) {\r\n\t\t\t\tfor (int index = 0; index < values.length; index++) {\r\n\t\t\t\t\tString[] fields = Util.readTokens(values[index], \"|\");\r\n\t\t\t\t\tif (fields != null && fields.length >= 21) {\r\n\t\t\t\t\t\tString customerID = fields[0];\r\n\t\t\t\t\t\tString billName = fields[1];\r\n\t\t\t\t\t\tString billAddr1 = fields[2];\r\n\t\t\t\t\t\tString billAddr2 = fields[3];\r\n\t\t\t\t\t\tString billCity = fields[4];\r\n\t\t\t\t\t\tString billState = fields[5];\r\n\t\t\t\t\t\tString billZip = fields[6];\r\n\t\t\t\t\t\tString billPhone = fields[7];\r\n\t\t\t\t\t\tString shipName = fields[8];\r\n\t\t\t\t\t\tString shipAddr1 = fields[9];\r\n\t\t\t\t\t\tString shipAddr2 = fields[10];\r\n\t\t\t\t\t\tString shipCity = fields[11];\r\n\t\t\t\t\t\tString shipState = fields[12];\r\n\t\t\t\t\t\tString shipZip = fields[13];\r\n\t\t\t\t\t\tString shipPhone = fields[14];\r\n\t\t\t\t\t\tint shippingMethod = Integer.parseInt(fields[15]);\r\n\t\t\t\t\t\tString creditCard = fields[16];\r\n\t\t\t\t\t\tString ccNum = fields[17];\r\n\t\t\t\t\t\tString ccExpireMonth = fields[18];\r\n\t\t\t\t\t\tString ccExpireYear = fields[19];\r\n\t\t\t\t\t\tString cardHolder = fields[20];\r\n\t\t\t\t\t\tVector items = new Vector();\r\n\t\t\t\t\t\tUtil.debug(\"Populating ORDER with following values: \");\r\n\t\t\t\t\t\tUtil.debug(fields[0]);\r\n\t\t\t\t\t\tUtil.debug(fields[1]);\r\n\t\t\t\t\t\tUtil.debug(fields[2]);\r\n\t\t\t\t\t\tUtil.debug(fields[3]);\r\n\t\t\t\t\t\tUtil.debug(fields[4]);\r\n\t\t\t\t\t\tUtil.debug(fields[5]);\r\n\t\t\t\t\t\tUtil.debug(fields[6]);\r\n\t\t\t\t\t\tUtil.debug(fields[7]);\r\n\t\t\t\t\t\tUtil.debug(fields[8]);\r\n\t\t\t\t\t\tUtil.debug(fields[9]);\r\n\t\t\t\t\t\tUtil.debug(fields[10]);\r\n\t\t\t\t\t\tUtil.debug(fields[11]);\r\n\t\t\t\t\t\tUtil.debug(fields[12]);\r\n\t\t\t\t\t\tUtil.debug(fields[13]);\r\n\t\t\t\t\t\tUtil.debug(fields[14]);\r\n\t\t\t\t\t\tUtil.debug(fields[15]);\r\n\t\t\t\t\t\tUtil.debug(fields[16]);\r\n\t\t\t\t\t\tUtil.debug(fields[17]);\r\n\t\t\t\t\t\tUtil.debug(fields[18]);\r\n\t\t\t\t\t\tUtil.debug(fields[19]);\r\n\t\t\t\t\t\tUtil.debug(fields[20]);\r\n\t\t\t\t\t\tcart.createOrder(customerID, billName, billAddr1, billAddr2, billCity, billState, billZip, billPhone, shipName, shipAddr1, shipAddr2, shipCity, shipState, shipZip, shipPhone, creditCard, ccNum, ccExpireMonth, ccExpireYear, cardHolder, shippingMethod, items);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tUtil.debug(\"Property does not contain enough fields: \" + values[index]);\r\n\t\t\t\t\t\tUtil.debug(\"Fields found were: \" + fields);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// stmt.executeUpdate(\" INSERT INTO ORDERITEM(INVENTORYID, NAME, PKGINFO, PRICE, COST,\r\n\t\t\t// CATEGORY, QUANTITY, SELLDATE, ORDER_ORDERID) VALUES ('A0001', 'Bulb Digger',\r\n\t\t\t// 'Assembled', 12.0, 5.0, 3, 900, '01054835419625', '1')\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Unable to populate ORDERITEM table with text data: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t/**\r\n\t\t * Populate BACKORDER table with text\r\n\t\t */\r\n\t\tUtil.debug(\"Populating BACKORDER table with default values...\");\r\n\t\ttry {\r\n\t\t\tString[] values = Util.getProperties(\"backorder\");\r\n\t\t\tUtil.debug(\"Found BACKORDER properties: \" + values[0]);\r\n\t\t\t// Inserting backorders\r\n\t\t\tfor (int index = 0; index < values.length; index++) {\r\n\t\t\t\tString[] fields = Util.readTokens(values[index], \"|\");\r\n\t\t\t\tString inventoryID = fields[0];\r\n\t\t\t\tint amountToOrder = new Integer(fields[1]).intValue();\r\n\t\t\t\tint maximumItems = new Integer(fields[2]).intValue();\r\n\t\t\t\tUtil.debug(\"Populating BACKORDER with following values: \");\r\n\t\t\t\tUtil.debug(inventoryID);\r\n\t\t\t\tUtil.debug(\"amountToOrder -> \" + amountToOrder);\r\n\t\t\t\tUtil.debug(\"maximumItems -> \" + maximumItems);\r\n\t\t\t\tbackOrderStock.createBackOrder(inventoryID, amountToOrder, maximumItems);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Unable to populate BACKORDER table with text data: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t/**\r\n\t\t * Populate SUPPLIER table with text\r\n\t\t */\r\n\t\tUtil.debug(\"Populating SUPPLIER table with default values...\");\r\n\t\ttry {\r\n\t\t\tString[] values = Util.getProperties(\"supplier\");\r\n\t\t\tUtil.debug(\"Found SUPPLIER properties: \" + values[0]);\r\n\t\t\t// Inserting Suppliers\r\n\t\t\tfor (int index = 0; index < values.length; index++) {\r\n\t\t\t\tString[] fields = Util.readTokens(values[index], \"|\");\r\n\t\t\t\tString supplierID = fields[0];\r\n\t\t\t\tString name = fields[1];\r\n\t\t\t\tString address = fields[2];\r\n\t\t\t\tString city = fields[3];\r\n\t\t\t\tString state = fields[4];\r\n\t\t\t\tString zip = fields[5];\r\n\t\t\t\tString phone = fields[6];\r\n\t\t\t\tString url = fields[7];\r\n\t\t\t\tUtil.debug(\"Populating SUPPLIER with following values: \");\r\n\t\t\t\tUtil.debug(fields[0]);\r\n\t\t\t\tUtil.debug(fields[1]);\r\n\t\t\t\tUtil.debug(fields[2]);\r\n\t\t\t\tUtil.debug(fields[3]);\r\n\t\t\t\tUtil.debug(fields[4]);\r\n\t\t\t\tUtil.debug(fields[5]);\r\n\t\t\t\tUtil.debug(fields[6]);\r\n\t\t\t\tUtil.debug(fields[7]);\r\n\t\t\t\tsuppliers.createSupplier(supplierID, name, address, city, state, zip, phone, url);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"Unable to populate SUPPLIER table with text data: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"start_line": 105,
"end_line": 312,
+ "code_start_line": 105,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -12415,6 +18105,14 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": {
+ "content": "\r\n\t\t * Populate INVENTORY table with text\r\n\t\t ",
+ "start_line": 106,
+ "end_line": 108,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12437,6 +18135,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12459,6 +18158,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12481,6 +18181,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12504,6 +18205,7 @@
},
{
"method_name": "floatValue",
+ "comment": null,
"receiver_expr": "new Float(fields[6])",
"receiver_type": "java.lang.Float",
"argument_types": [],
@@ -12524,6 +18226,7 @@
},
{
"method_name": "floatValue",
+ "comment": null,
"receiver_expr": "new Float(fields[7])",
"receiver_type": "java.lang.Float",
"argument_types": [],
@@ -12544,6 +18247,7 @@
},
{
"method_name": "intValue",
+ "comment": null,
"receiver_expr": "new Integer(fields[8])",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -12564,6 +18268,7 @@
},
{
"method_name": "intValue",
+ "comment": null,
"receiver_expr": "new Integer(fields[9])",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -12584,6 +18289,7 @@
},
{
"method_name": "booleanValue",
+ "comment": null,
"receiver_expr": "new Boolean(fields[11])",
"receiver_type": "java.lang.Boolean",
"argument_types": [],
@@ -12604,6 +18310,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12626,6 +18333,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12648,6 +18356,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12670,6 +18379,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12692,6 +18402,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12714,6 +18425,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12736,6 +18448,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12758,6 +18471,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12780,6 +18494,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12802,6 +18517,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12824,6 +18540,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12846,6 +18563,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12868,6 +18586,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12890,6 +18609,7 @@
},
{
"method_name": "addItem",
+ "comment": null,
"receiver_expr": "catalog",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"argument_types": [
@@ -12912,6 +18632,7 @@
},
{
"method_name": "addImage",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -12936,6 +18657,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12958,6 +18680,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -12980,6 +18703,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -13000,6 +18724,14 @@
},
{
"method_name": "debug",
+ "comment": {
+ "content": "\r\n\t\t * Populate CUSTOMER table with text\r\n\t\t ",
+ "start_line": 150,
+ "end_line": 152,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13022,6 +18754,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13044,6 +18777,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13066,6 +18800,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13089,6 +18824,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13111,6 +18847,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13133,6 +18870,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13155,6 +18893,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13177,6 +18916,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13199,6 +18939,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13221,6 +18962,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13243,6 +18985,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13265,6 +19008,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13287,6 +19031,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13309,6 +19054,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13331,6 +19077,7 @@
},
{
"method_name": "createCustomer",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"argument_types": [
@@ -13362,6 +19109,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13384,6 +19132,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -13404,6 +19153,14 @@
},
{
"method_name": "debug",
+ "comment": {
+ "content": "\r\n\t\t * Populate ORDER table with text\r\n\t\t ",
+ "start_line": 186,
+ "end_line": 188,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13426,6 +19183,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13448,6 +19206,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13470,6 +19229,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13493,6 +19253,7 @@
},
{
"method_name": "parseInt",
+ "comment": null,
"receiver_expr": "Integer",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -13515,6 +19276,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13537,6 +19299,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13559,6 +19322,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13581,6 +19345,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13603,6 +19368,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13625,6 +19391,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13647,6 +19414,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13669,6 +19437,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13691,6 +19460,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13713,6 +19483,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13735,6 +19506,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13757,6 +19529,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13779,6 +19552,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13801,6 +19575,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13823,6 +19598,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13845,6 +19621,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13867,6 +19644,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13889,6 +19667,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13911,6 +19690,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13933,6 +19713,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13955,6 +19736,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13977,6 +19759,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -13999,6 +19782,7 @@
},
{
"method_name": "createOrder",
+ "comment": null,
"receiver_expr": "cart",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean",
"argument_types": [
@@ -14042,6 +19826,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14064,6 +19849,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14086,6 +19872,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14108,6 +19895,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -14128,6 +19916,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -14148,6 +19937,14 @@
},
{
"method_name": "debug",
+ "comment": {
+ "content": "\r\n\t\t * Populate BACKORDER table with text\r\n\t\t ",
+ "start_line": 256,
+ "end_line": 258,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14170,6 +19967,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14192,6 +19990,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14214,6 +20013,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14237,6 +20037,7 @@
},
{
"method_name": "intValue",
+ "comment": null,
"receiver_expr": "new Integer(fields[1])",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -14257,6 +20058,7 @@
},
{
"method_name": "intValue",
+ "comment": null,
"receiver_expr": "new Integer(fields[2])",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -14277,6 +20079,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14299,6 +20102,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14321,6 +20125,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14343,6 +20148,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14365,6 +20171,7 @@
},
{
"method_name": "createBackOrder",
+ "comment": null,
"receiver_expr": "backOrderStock",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"argument_types": [
@@ -14389,6 +20196,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14411,6 +20219,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -14431,6 +20240,14 @@
},
{
"method_name": "debug",
+ "comment": {
+ "content": "\r\n\t\t * Populate SUPPLIER table with text\r\n\t\t ",
+ "start_line": 279,
+ "end_line": 281,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14453,6 +20270,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14475,6 +20293,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14497,6 +20316,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14520,6 +20340,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14542,6 +20363,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14564,6 +20386,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14586,6 +20409,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14608,6 +20432,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14630,6 +20455,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14652,6 +20478,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14674,6 +20501,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14696,6 +20524,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14718,6 +20547,7 @@
},
{
"method_name": "createSupplier",
+ "comment": null,
"receiver_expr": "suppliers",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean",
"argument_types": [
@@ -14747,6 +20577,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -14769,6 +20600,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -14789,6 +20621,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Float",
"argument_types": [
@@ -14811,6 +20644,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Float",
"argument_types": [
@@ -14833,6 +20667,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -14855,6 +20690,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -14877,6 +20713,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Boolean",
"argument_types": [
@@ -14899,6 +20736,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -14932,6 +20770,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.Vector",
"argument_types": [],
@@ -14952,6 +20791,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -14974,6 +20814,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -14997,6 +20838,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "Util.getProperties(\"inventory\")",
@@ -15006,6 +20855,14 @@
"end_column": 52
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -15015,6 +20872,14 @@
"end_column": 21
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fields",
"type": "java.lang.String[]",
"initializer": "Util.readTokens(values[index], \"|\")",
@@ -15024,6 +20889,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "id",
"type": "java.lang.String",
"initializer": "fields[0]",
@@ -15033,6 +20906,14 @@
"end_column": 25
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "name",
"type": "java.lang.String",
"initializer": "fields[1]",
@@ -15042,6 +20923,14 @@
"end_column": 27
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "heading",
"type": "java.lang.String",
"initializer": "fields[2]",
@@ -15051,6 +20940,14 @@
"end_column": 30
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "descr",
"type": "java.lang.String",
"initializer": "fields[3]",
@@ -15060,6 +20957,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "pkginfo",
"type": "java.lang.String",
"initializer": "fields[4]",
@@ -15069,6 +20974,14 @@
"end_column": 30
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "image",
"type": "java.lang.String",
"initializer": "fields[5]",
@@ -15078,6 +20991,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "price",
"type": "float",
"initializer": "new Float(fields[6]).floatValue()",
@@ -15087,6 +21008,14 @@
"end_column": 51
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "cost",
"type": "float",
"initializer": "new Float(fields[7]).floatValue()",
@@ -15096,6 +21025,14 @@
"end_column": 50
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "quantity",
"type": "int",
"initializer": "new Integer(fields[8]).intValue()",
@@ -15105,6 +21042,14 @@
"end_column": 52
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "category",
"type": "int",
"initializer": "new Integer(fields[9]).intValue()",
@@ -15114,6 +21059,14 @@
"end_column": 52
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "notes",
"type": "java.lang.String",
"initializer": "fields[10]",
@@ -15123,6 +21076,14 @@
"end_column": 29
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "isPublic",
"type": "boolean",
"initializer": "new Boolean(fields[11]).booleanValue()",
@@ -15132,6 +21093,14 @@
"end_column": 61
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "storeItem",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "new Inventory(id, name, heading, descr, pkginfo, image, price, cost, quantity, category, notes, isPublic)",
@@ -15141,6 +21110,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "Util.getProperties(\"customer\")",
@@ -15150,6 +21127,14 @@
"end_column": 51
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -15159,6 +21144,14 @@
"end_column": 21
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fields",
"type": "java.lang.String[]",
"initializer": "Util.readTokens(values[index], \"|\")",
@@ -15168,6 +21161,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "customerID",
"type": "java.lang.String",
"initializer": "fields[0]",
@@ -15177,6 +21178,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "password",
"type": "java.lang.String",
"initializer": "fields[1]",
@@ -15186,6 +21195,14 @@
"end_column": 31
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "firstName",
"type": "java.lang.String",
"initializer": "fields[2]",
@@ -15195,6 +21212,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "lastName",
"type": "java.lang.String",
"initializer": "fields[3]",
@@ -15204,6 +21229,14 @@
"end_column": 31
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addr1",
"type": "java.lang.String",
"initializer": "fields[4]",
@@ -15213,6 +21246,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addr2",
"type": "java.lang.String",
"initializer": "fields[5]",
@@ -15222,6 +21263,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrCity",
"type": "java.lang.String",
"initializer": "fields[6]",
@@ -15231,6 +21280,14 @@
"end_column": 31
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrState",
"type": "java.lang.String",
"initializer": "fields[7]",
@@ -15240,6 +21297,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "addrZip",
"type": "java.lang.String",
"initializer": "fields[8]",
@@ -15249,6 +21314,14 @@
"end_column": 30
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "phone",
"type": "java.lang.String",
"initializer": "fields[9]",
@@ -15258,6 +21331,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "Util.getProperties(\"order\")",
@@ -15267,6 +21348,14 @@
"end_column": 48
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -15276,6 +21365,14 @@
"end_column": 22
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fields",
"type": "java.lang.String[]",
"initializer": "Util.readTokens(values[index], \"|\")",
@@ -15285,6 +21382,14 @@
"end_column": 58
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "customerID",
"type": "java.lang.String",
"initializer": "fields[0]",
@@ -15294,6 +21399,14 @@
"end_column": 35
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billName",
"type": "java.lang.String",
"initializer": "fields[1]",
@@ -15303,6 +21416,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billAddr1",
"type": "java.lang.String",
"initializer": "fields[2]",
@@ -15312,6 +21433,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billAddr2",
"type": "java.lang.String",
"initializer": "fields[3]",
@@ -15321,6 +21450,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billCity",
"type": "java.lang.String",
"initializer": "fields[4]",
@@ -15330,6 +21467,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billState",
"type": "java.lang.String",
"initializer": "fields[5]",
@@ -15339,6 +21484,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billZip",
"type": "java.lang.String",
"initializer": "fields[6]",
@@ -15348,6 +21501,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "billPhone",
"type": "java.lang.String",
"initializer": "fields[7]",
@@ -15357,6 +21518,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipName",
"type": "java.lang.String",
"initializer": "fields[8]",
@@ -15366,6 +21535,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipAddr1",
"type": "java.lang.String",
"initializer": "fields[9]",
@@ -15375,6 +21552,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipAddr2",
"type": "java.lang.String",
"initializer": "fields[10]",
@@ -15384,6 +21569,14 @@
"end_column": 35
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipCity",
"type": "java.lang.String",
"initializer": "fields[11]",
@@ -15393,6 +21586,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipState",
"type": "java.lang.String",
"initializer": "fields[12]",
@@ -15402,6 +21603,14 @@
"end_column": 35
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipZip",
"type": "java.lang.String",
"initializer": "fields[13]",
@@ -15411,6 +21620,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shipPhone",
"type": "java.lang.String",
"initializer": "fields[14]",
@@ -15420,6 +21637,14 @@
"end_column": 35
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shippingMethod",
"type": "int",
"initializer": "Integer.parseInt(fields[15])",
@@ -15429,6 +21654,14 @@
"end_column": 55
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "creditCard",
"type": "java.lang.String",
"initializer": "fields[16]",
@@ -15438,6 +21671,14 @@
"end_column": 36
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "ccNum",
"type": "java.lang.String",
"initializer": "fields[17]",
@@ -15447,6 +21688,14 @@
"end_column": 31
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "ccExpireMonth",
"type": "java.lang.String",
"initializer": "fields[18]",
@@ -15456,6 +21705,14 @@
"end_column": 39
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "ccExpireYear",
"type": "java.lang.String",
"initializer": "fields[19]",
@@ -15465,6 +21722,14 @@
"end_column": 38
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "cardHolder",
"type": "java.lang.String",
"initializer": "fields[20]",
@@ -15474,6 +21739,14 @@
"end_column": 36
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "items",
"type": "java.util.Vector",
"initializer": "new Vector()",
@@ -15483,6 +21756,14 @@
"end_column": 55
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "Util.getProperties(\"backorder\")",
@@ -15492,6 +21773,14 @@
"end_column": 52
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -15501,6 +21790,14 @@
"end_column": 21
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fields",
"type": "java.lang.String[]",
"initializer": "Util.readTokens(values[index], \"|\")",
@@ -15510,6 +21807,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inventoryID",
"type": "java.lang.String",
"initializer": "fields[0]",
@@ -15519,6 +21824,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "amountToOrder",
"type": "int",
"initializer": "new Integer(fields[1]).intValue()",
@@ -15528,6 +21841,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "maximumItems",
"type": "int",
"initializer": "new Integer(fields[2]).intValue()",
@@ -15537,6 +21858,14 @@
"end_column": 56
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "Util.getProperties(\"supplier\")",
@@ -15546,6 +21875,14 @@
"end_column": 51
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -15555,6 +21892,14 @@
"end_column": 21
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "fields",
"type": "java.lang.String[]",
"initializer": "Util.readTokens(values[index], \"|\")",
@@ -15564,6 +21909,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "supplierID",
"type": "java.lang.String",
"initializer": "fields[0]",
@@ -15573,6 +21926,14 @@
"end_column": 33
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "name",
"type": "java.lang.String",
"initializer": "fields[1]",
@@ -15582,6 +21943,14 @@
"end_column": 27
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "address",
"type": "java.lang.String",
"initializer": "fields[2]",
@@ -15591,6 +21960,14 @@
"end_column": 30
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "city",
"type": "java.lang.String",
"initializer": "fields[3]",
@@ -15600,6 +21977,14 @@
"end_column": 27
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "state",
"type": "java.lang.String",
"initializer": "fields[4]",
@@ -15609,6 +21994,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "zip",
"type": "java.lang.String",
"initializer": "fields[5]",
@@ -15618,6 +22011,14 @@
"end_column": 26
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "phone",
"type": "java.lang.String",
"initializer": "fields[6]",
@@ -15627,6 +22028,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "url",
"type": "java.lang.String",
"initializer": "fields[7]",
@@ -15644,7 +22053,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"start_line": 59,
@@ -15660,7 +22076,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"start_line": 61,
@@ -15676,7 +22099,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean",
"start_line": 63,
@@ -15692,7 +22122,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"start_line": 65,
@@ -15708,7 +22145,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean",
"start_line": 67,
@@ -15724,7 +22168,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "EntityManager",
"start_line": 70,
@@ -15738,7 +22189,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "UserTransaction",
"start_line": 73,
@@ -15752,15 +22210,187 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * This class encapsulates the info needed to send an email message. This object is passed to the\r\n * Mailer EJB sendMail() method.\r\n ",
+ "start_line": 19,
+ "end_line": 22,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 24,
+ "end_line": 26,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " subject field of email message",
+ "start_line": 38,
+ "end_line": 38,
+ "start_column": 2,
+ "end_column": 34,
+ "is_javadoc": false
+ },
+ {
+ "content": " Email address of recipient of email message",
+ "start_line": 43,
+ "end_line": 43,
+ "start_column": 2,
+ "end_column": 47,
+ "is_javadoc": false
+ },
+ {
+ "content": " contents of email message",
+ "start_line": 48,
+ "end_line": 48,
+ "start_column": 2,
+ "end_column": 29,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [],
"type_declarations": {
"com.ibm.websphere.samples.pbw.bean.EMailMessage": {
@@ -15773,7 +22403,48 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * This class encapsulates the info needed to send an email message. This object is passed to the\r\n * Mailer EJB sendMail() method.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 24,
+ "end_line": 26,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " subject field of email message",
+ "start_line": 38,
+ "end_line": 38,
+ "start_column": 2,
+ "end_column": 34,
+ "is_javadoc": false
+ },
+ {
+ "content": " Email address of recipient of email message",
+ "start_line": 43,
+ "end_line": 43,
+ "start_column": 2,
+ "end_column": 47,
+ "is_javadoc": false
+ },
+ {
+ "content": " contents of email message",
+ "start_line": 48,
+ "end_line": 48,
+ "start_column": 2,
+ "end_column": 29,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * This class encapsulates the info needed to send an email message. This object is passed to the\r\n * Mailer EJB sendMail() method.\r\n ",
+ "start_line": 19,
+ "end_line": 22,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -15785,9 +22456,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"getSubject()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
"signature": "getSubject()",
- "comment": "// subject field of email message",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -15795,9 +22466,10 @@
"thrown_exceptions": [],
"declaration": "public String getSubject()",
"parameters": [],
- "code": "{\n return subject;\n}",
+ "code": "{\r\n\t\treturn subject;\r\n\t}",
"start_line": 39,
"end_line": 41,
+ "code_start_line": 39,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -15813,9 +22485,9 @@
"is_entrypoint": false
},
"(String, String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
"signature": "EMailMessage(String, String, String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -15827,24 +22499,37 @@
"type": "java.lang.String",
"name": "subject",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 32,
+ "end_line": 32,
+ "start_column": 22,
+ "end_column": 35
},
{
"type": "java.lang.String",
"name": "htmlContents",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 32,
+ "end_line": 32,
+ "start_column": 38,
+ "end_column": 56
},
{
"type": "java.lang.String",
"name": "emailReceiver",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 32,
+ "end_line": 32,
+ "start_column": 59,
+ "end_column": 78
}
],
- "code": "{\n this.subject = subject;\n this.htmlContents = htmlContents;\n this.emailReceiver = emailReceiver;\n}",
+ "code": "{\r\n\t\tthis.subject = subject;\r\n\t\tthis.htmlContents = htmlContents;\r\n\t\tthis.emailReceiver = emailReceiver;\r\n\t}",
"start_line": 32,
"end_line": 36,
+ "code_start_line": 32,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -15864,9 +22549,9 @@
"is_entrypoint": false
},
"toString()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
"signature": "toString()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -15874,9 +22559,10 @@
"thrown_exceptions": [],
"declaration": "public String toString()",
"parameters": [],
- "code": "{\n return \" subject=\" + subject + \" \" + emailReceiver + \" \" + htmlContents;\n}",
+ "code": "{\r\n\t\treturn \" subject=\" + subject + \" \" + emailReceiver + \" \" + htmlContents;\r\n\t}",
"start_line": 53,
"end_line": 55,
+ "code_start_line": 53,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -15894,9 +22580,9 @@
"is_entrypoint": false
},
"getHtmlContents()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
"signature": "getHtmlContents()",
- "comment": "// contents of email message",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -15904,9 +22590,10 @@
"thrown_exceptions": [],
"declaration": "public String getHtmlContents()",
"parameters": [],
- "code": "{\n return htmlContents;\n}",
+ "code": "{\r\n\t\treturn htmlContents;\r\n\t}",
"start_line": 49,
"end_line": 51,
+ "code_start_line": 49,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -15922,9 +22609,9 @@
"is_entrypoint": false
},
"getEmailReceiver()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java",
"signature": "getEmailReceiver()",
- "comment": "// Email address of recipient of email message",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -15932,9 +22619,10 @@
"thrown_exceptions": [],
"declaration": "public String getEmailReceiver()",
"parameters": [],
- "code": "{\n return emailReceiver;\n}",
+ "code": "{\r\n\t\treturn emailReceiver;\r\n\t}",
"start_line": 44,
"end_line": 46,
+ "code_start_line": 44,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -15952,7 +22640,14 @@
},
"field_declarations": [
{
- "comment": "/**\r\n\t * \r\n\t */",
+ "comment": {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 24,
+ "end_line": 26,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 27,
@@ -15968,7 +22663,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 28,
@@ -15982,7 +22684,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 29,
@@ -15996,7 +22705,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 30,
@@ -16010,15 +22726,163 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "package_name": "com.ibm.websphere.samples.pbw.jpa",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2004,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Bean mapping for the SUPPLIER table.\r\n ",
+ "start_line": 25,
+ "end_line": 27,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t ",
+ "start_line": 114,
+ "end_line": 123,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"javax.persistence.Entity",
"javax.persistence.Id",
@@ -16037,7 +22901,24 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * Bean mapping for the SUPPLIER table.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t ",
+ "start_line": 114,
+ "end_line": 123,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Bean mapping for the SUPPLIER table.\r\n ",
+ "start_line": 25,
+ "end_line": 27,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -16051,9 +22932,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"getStreet()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "getStreet()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16061,9 +22942,10 @@
"thrown_exceptions": [],
"declaration": "public String getStreet()",
"parameters": [],
- "code": "{\n return street;\n}",
+ "code": "{\r\n\t\treturn street;\r\n\t}",
"start_line": 67,
"end_line": 69,
+ "code_start_line": 67,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -16079,9 +22961,9 @@
"is_entrypoint": false
},
"setCity(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "setCity(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16093,12 +22975,17 @@
"type": "java.lang.String",
"name": "city",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 47,
+ "end_line": 47,
+ "start_column": 22,
+ "end_column": 32
}
],
- "code": "{\n this.city = city;\n}",
+ "code": "{\r\n\t\tthis.city = city;\r\n\t}",
"start_line": 47,
"end_line": 49,
+ "code_start_line": 47,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -16116,9 +23003,9 @@
"is_entrypoint": false
},
"setSupplierID(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "setSupplierID(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16130,12 +23017,17 @@
"type": "java.lang.String",
"name": "supplierID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 79,
+ "end_line": 79,
+ "start_column": 28,
+ "end_column": 44
}
],
- "code": "{\n this.supplierID = supplierID;\n}",
+ "code": "{\r\n\t\tthis.supplierID = supplierID;\r\n\t}",
"start_line": 79,
"end_line": 81,
+ "code_start_line": 79,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -16153,9 +23045,9 @@
"is_entrypoint": false
},
"setName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "setName(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16167,12 +23059,17 @@
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 55,
+ "end_line": 55,
+ "start_column": 22,
+ "end_column": 32
}
],
- "code": "{\n this.name = name;\n}",
+ "code": "{\r\n\t\tthis.name = name;\r\n\t}",
"start_line": 55,
"end_line": 57,
+ "code_start_line": 55,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -16190,9 +23087,9 @@
"is_entrypoint": false
},
"getCity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "getCity()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16200,9 +23097,10 @@
"thrown_exceptions": [],
"declaration": "public String getCity()",
"parameters": [],
- "code": "{\n return city;\n}",
+ "code": "{\r\n\t\treturn city;\r\n\t}",
"start_line": 43,
"end_line": 45,
+ "code_start_line": 43,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -16218,9 +23116,9 @@
"is_entrypoint": false
},
"setUsstate(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "setUsstate(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16232,12 +23130,17 @@
"type": "java.lang.String",
"name": "usstate",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 95,
+ "end_line": 95,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n this.usstate = usstate;\n}",
+ "code": "{\r\n\t\tthis.usstate = usstate;\r\n\t}",
"start_line": 95,
"end_line": 97,
+ "code_start_line": 95,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -16255,9 +23158,9 @@
"is_entrypoint": false
},
"setZip(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "setZip(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16269,12 +23172,17 @@
"type": "java.lang.String",
"name": "zip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 103,
+ "end_line": 103,
+ "start_column": 21,
+ "end_column": 30
}
],
- "code": "{\n this.zip = zip;\n}",
+ "code": "{\r\n\t\tthis.zip = zip;\r\n\t}",
"start_line": 103,
"end_line": 105,
+ "code_start_line": 103,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -16292,9 +23200,9 @@
"is_entrypoint": false
},
"setStreet(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "setStreet(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16306,12 +23214,17 @@
"type": "java.lang.String",
"name": "street",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 71,
+ "end_line": 71,
+ "start_column": 24,
+ "end_column": 36
}
],
- "code": "{\n this.street = street;\n}",
+ "code": "{\r\n\t\tthis.street = street;\r\n\t}",
"start_line": 71,
"end_line": 73,
+ "code_start_line": 71,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -16329,9 +23242,9 @@
"is_entrypoint": false
},
"getZip()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "getZip()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16339,9 +23252,10 @@
"thrown_exceptions": [],
"declaration": "public String getZip()",
"parameters": [],
- "code": "{\n return zip;\n}",
+ "code": "{\r\n\t\treturn zip;\r\n\t}",
"start_line": 99,
"end_line": 101,
+ "code_start_line": 99,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -16357,9 +23271,18 @@
"is_entrypoint": false
},
"(String, String, String, String, String, String, String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "Supplier(String, String, String, String, String, String, String, String)",
- "comment": "/**\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param url\r\n\t ",
+ "start_line": 114,
+ "end_line": 123,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -16371,54 +23294,87 @@
"type": "java.lang.String",
"name": "supplierID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 124,
+ "end_line": 124,
+ "start_column": 18,
+ "end_column": 34
},
{
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 124,
+ "end_line": 124,
+ "start_column": 37,
+ "end_column": 47
},
{
"type": "java.lang.String",
"name": "street",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 124,
+ "end_line": 124,
+ "start_column": 50,
+ "end_column": 62
},
{
"type": "java.lang.String",
"name": "city",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 124,
+ "end_line": 124,
+ "start_column": 65,
+ "end_column": 75
},
{
"type": "java.lang.String",
"name": "state",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 124,
+ "end_line": 124,
+ "start_column": 78,
+ "end_column": 89
},
{
"type": "java.lang.String",
"name": "zip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 124,
+ "end_line": 124,
+ "start_column": 92,
+ "end_column": 101
},
{
"type": "java.lang.String",
"name": "phone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 124,
+ "end_line": 124,
+ "start_column": 104,
+ "end_column": 115
},
{
"type": "java.lang.String",
"name": "url",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 125,
+ "end_line": 125,
+ "start_column": 4,
+ "end_column": 13
}
],
- "code": "{\n this.setSupplierID(supplierID);\n this.setName(name);\n this.setStreet(street);\n this.setCity(city);\n this.setUsstate(state);\n this.setZip(zip);\n this.setPhone(phone);\n this.setUrl(url);\n}",
+ "code": "{\r\n\t\tthis.setSupplierID(supplierID);\r\n\t\tthis.setName(name);\r\n\t\tthis.setStreet(street);\r\n\t\tthis.setCity(city);\r\n\t\tthis.setUsstate(state);\r\n\t\tthis.setZip(zip);\r\n\t\tthis.setPhone(phone);\r\n\t\tthis.setUrl(url);\r\n\t}",
"start_line": 124,
"end_line": 134,
+ "code_start_line": 125,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -16435,6 +23391,7 @@
"call_sites": [
{
"method_name": "setSupplierID",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -16457,6 +23414,7 @@
},
{
"method_name": "setName",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -16479,6 +23437,7 @@
},
{
"method_name": "setStreet",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -16501,6 +23460,7 @@
},
{
"method_name": "setCity",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -16523,6 +23483,7 @@
},
{
"method_name": "setUsstate",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -16545,6 +23506,7 @@
},
{
"method_name": "setZip",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -16567,6 +23529,7 @@
},
{
"method_name": "setPhone",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -16589,6 +23552,7 @@
},
{
"method_name": "setUrl",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"argument_types": [
@@ -16617,9 +23581,9 @@
"is_entrypoint": false
},
"setUrl(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "setUrl(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16631,12 +23595,17 @@
"type": "java.lang.String",
"name": "url",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 87,
+ "end_line": 87,
+ "start_column": 21,
+ "end_column": 30
}
],
- "code": "{\n this.url = url;\n}",
+ "code": "{\r\n\t\tthis.url = url;\r\n\t}",
"start_line": 87,
"end_line": 89,
+ "code_start_line": 87,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -16654,9 +23623,9 @@
"is_entrypoint": false
},
"(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "Supplier(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16668,12 +23637,17 @@
"type": "java.lang.String",
"name": "supplierID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 110,
+ "end_line": 110,
+ "start_column": 18,
+ "end_column": 34
}
],
- "code": "{\n setSupplierID(supplierID);\n}",
+ "code": "{\r\n\t\tsetSupplierID(supplierID);\r\n\t}",
"start_line": 110,
"end_line": 112,
+ "code_start_line": 110,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -16684,6 +23658,7 @@
"call_sites": [
{
"method_name": "setSupplierID",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -16712,9 +23687,9 @@
"is_entrypoint": false
},
"getName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "getName()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16722,9 +23697,10 @@
"thrown_exceptions": [],
"declaration": "public String getName()",
"parameters": [],
- "code": "{\n return name;\n}",
+ "code": "{\r\n\t\treturn name;\r\n\t}",
"start_line": 51,
"end_line": 53,
+ "code_start_line": 51,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -16740,9 +23716,9 @@
"is_entrypoint": false
},
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "Supplier()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16750,9 +23726,10 @@
"thrown_exceptions": [],
"declaration": "public Supplier()",
"parameters": [],
- "code": "{\n}",
+ "code": "{\r\n\t}",
"start_line": 107,
"end_line": 108,
+ "code_start_line": 107,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -16766,9 +23743,9 @@
"is_entrypoint": false
},
"setPhone(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "setPhone(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16780,12 +23757,17 @@
"type": "java.lang.String",
"name": "phone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 63,
+ "end_line": 63,
+ "start_column": 23,
+ "end_column": 34
}
],
- "code": "{\n this.phone = phone;\n}",
+ "code": "{\r\n\t\tthis.phone = phone;\r\n\t}",
"start_line": 63,
"end_line": 65,
+ "code_start_line": 63,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -16803,9 +23785,9 @@
"is_entrypoint": false
},
"getPhone()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "getPhone()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16813,9 +23795,10 @@
"thrown_exceptions": [],
"declaration": "public String getPhone()",
"parameters": [],
- "code": "{\n return phone;\n}",
+ "code": "{\r\n\t\treturn phone;\r\n\t}",
"start_line": 59,
"end_line": 61,
+ "code_start_line": 59,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -16831,9 +23814,9 @@
"is_entrypoint": false
},
"getSupplierID()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "getSupplierID()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16841,9 +23824,10 @@
"thrown_exceptions": [],
"declaration": "public String getSupplierID()",
"parameters": [],
- "code": "{\n return supplierID;\n}",
+ "code": "{\r\n\t\treturn supplierID;\r\n\t}",
"start_line": 75,
"end_line": 77,
+ "code_start_line": 75,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -16859,9 +23843,9 @@
"is_entrypoint": false
},
"getUrl()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "getUrl()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16869,9 +23853,10 @@
"thrown_exceptions": [],
"declaration": "public String getUrl()",
"parameters": [],
- "code": "{\n return url;\n}",
+ "code": "{\r\n\t\treturn url;\r\n\t}",
"start_line": 83,
"end_line": 85,
+ "code_start_line": 83,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -16887,9 +23872,9 @@
"is_entrypoint": false
},
"getUsstate()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java",
"signature": "getUsstate()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -16897,9 +23882,10 @@
"thrown_exceptions": [],
"declaration": "public String getUsstate()",
"parameters": [],
- "code": "{\n return usstate;\n}",
+ "code": "{\r\n\t\treturn usstate;\r\n\t}",
"start_line": 91,
"end_line": 93,
+ "code_start_line": 91,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -16917,7 +23903,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 33,
@@ -16933,7 +23926,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 35,
@@ -16947,7 +23947,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 36,
@@ -16961,7 +23968,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 37,
@@ -16975,7 +23989,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 38,
@@ -16989,7 +24010,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 39,
@@ -17003,7 +24031,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 40,
@@ -17017,7 +24052,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 41,
@@ -17031,15 +24073,195 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "package_name": "com.ibm.websphere.samples.pbw.jpa",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2003,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Bean mapping for the ORDERITEM table.\r\n ",
+ "start_line": 32,
+ "end_line": 34,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Composite Key class for Entity Bean: OrderItem\r\n\t * \r\n\t * Key consists of essentially two foreign key relations, but is mapped as foreign keys.\r\n\t ",
+ "start_line": 39,
+ "end_line": 43,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Returns true if both keys are equal.\r\n\t\t ",
+ "start_line": 63,
+ "end_line": 65,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Returns the hash code for the key.\r\n\t\t ",
+ "start_line": 74,
+ "end_line": 76,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * updates the primary key field with the composite orderId+inventoryId\r\n\t ",
+ "start_line": 191,
+ "end_line": 193,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Sets the order for this item Also updates the sellDate\r\n\t * \r\n\t * @param order\r\n\t ",
+ "start_line": 210,
+ "end_line": 214,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"javax.persistence.Column",
"javax.persistence.Embeddable",
@@ -17064,7 +24286,56 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * Bean mapping for the ORDERITEM table.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * Composite Key class for Entity Bean: OrderItem\r\n\t * \r\n\t * Key consists of essentially two foreign key relations, but is mapped as foreign keys.\r\n\t ",
+ "start_line": 39,
+ "end_line": 43,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Returns true if both keys are equal.\r\n\t\t ",
+ "start_line": 63,
+ "end_line": 65,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Returns the hash code for the key.\r\n\t\t ",
+ "start_line": 74,
+ "end_line": 76,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * updates the primary key field with the composite orderId+inventoryId\r\n\t ",
+ "start_line": 191,
+ "end_line": 193,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Sets the order for this item Also updates the sellDate\r\n\t * \r\n\t * @param order\r\n\t ",
+ "start_line": 210,
+ "end_line": 214,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Bean mapping for the ORDERITEM table.\r\n ",
+ "start_line": 32,
+ "end_line": 34,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -17080,9 +24351,9 @@
],
"callable_declarations": {
"getQuantity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "getQuantity()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17090,9 +24361,10 @@
"thrown_exceptions": [],
"declaration": "public int getQuantity()",
"parameters": [],
- "code": "{\n return quantity;\n}",
+ "code": "{\r\n\t\treturn quantity;\r\n\t}",
"start_line": 145,
"end_line": 147,
+ "code_start_line": 145,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -17108,9 +24380,9 @@
"is_entrypoint": false
},
"getInventory()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "getInventory()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17118,9 +24390,10 @@
"thrown_exceptions": [],
"declaration": "public Inventory getInventory()",
"parameters": [],
- "code": "{\n return inventory;\n}",
+ "code": "{\r\n\t\treturn inventory;\r\n\t}",
"start_line": 198,
"end_line": 200,
+ "code_start_line": 198,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"is_implicit": false,
"is_constructor": false,
@@ -17136,9 +24409,9 @@
"is_entrypoint": false
},
"getSellDate()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "getSellDate()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17146,9 +24419,10 @@
"thrown_exceptions": [],
"declaration": "public String getSellDate()",
"parameters": [],
- "code": "{\n return sellDate;\n}",
+ "code": "{\r\n\t\treturn sellDate;\r\n\t}",
"start_line": 153,
"end_line": 155,
+ "code_start_line": 153,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -17164,9 +24438,9 @@
"is_entrypoint": false
},
"getOrder()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "getOrder()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17174,9 +24448,10 @@
"thrown_exceptions": [],
"declaration": "public Order getOrder()",
"parameters": [],
- "code": "{\n return order;\n}",
+ "code": "{\r\n\t\treturn order;\r\n\t}",
"start_line": 206,
"end_line": 208,
+ "code_start_line": 206,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"is_implicit": false,
"is_constructor": false,
@@ -17192,9 +24467,9 @@
"is_entrypoint": false
},
"setName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "setName(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17206,12 +24481,17 @@
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 125,
+ "end_line": 125,
+ "start_column": 22,
+ "end_column": 32
}
],
- "code": "{\n this.name = name;\n}",
+ "code": "{\r\n\t\tthis.name = name;\r\n\t}",
"start_line": 125,
"end_line": 127,
+ "code_start_line": 125,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -17229,9 +24509,9 @@
"is_entrypoint": false
},
"(Inventory)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "OrderItem(Inventory)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17243,12 +24523,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "inv",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 164,
+ "end_line": 164,
+ "start_column": 19,
+ "end_column": 31
}
],
- "code": "{\n Util.debug(\"OrderItem(inv) - id = \" + inv.getInventoryId());\n setInventoryId(inv.getInventoryId());\n inventory = inv;\n name = inv.getName();\n pkginfo = inv.getPkginfo();\n price = inv.getPrice();\n cost = inv.getCost();\n category = inv.getCategory();\n}",
+ "code": "{\r\n\t\tUtil.debug(\"OrderItem(inv) - id = \" + inv.getInventoryId());\r\n\t\tsetInventoryId(inv.getInventoryId());\r\n\t\tinventory = inv;\r\n\t\tname = inv.getName();\r\n\t\tpkginfo = inv.getPkginfo();\r\n\t\tprice = inv.getPrice();\r\n\t\tcost = inv.getCost();\r\n\t\tcategory = inv.getCategory();\r\n\t}",
"start_line": 164,
"end_line": 173,
+ "code_start_line": 164,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -17264,6 +24549,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -17286,6 +24572,7 @@
},
{
"method_name": "getInventoryId",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -17306,6 +24593,7 @@
},
{
"method_name": "setInventoryId",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -17328,6 +24616,7 @@
},
{
"method_name": "getInventoryId",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -17348,6 +24637,7 @@
},
{
"method_name": "getName",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -17368,6 +24658,7 @@
},
{
"method_name": "getPkginfo",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -17388,6 +24679,7 @@
},
{
"method_name": "getPrice",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -17408,6 +24700,7 @@
},
{
"method_name": "getCost",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -17428,6 +24721,7 @@
},
{
"method_name": "getCategory",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -17454,9 +24748,9 @@
"is_entrypoint": false
},
"setPrice(float)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "setPrice(float)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17468,12 +24762,17 @@
"type": "float",
"name": "price",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 141,
+ "end_line": 141,
+ "start_column": 23,
+ "end_column": 33
}
],
- "code": "{\n this.price = price;\n}",
+ "code": "{\r\n\t\tthis.price = price;\r\n\t}",
"start_line": 141,
"end_line": 143,
+ "code_start_line": 141,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -17489,9 +24788,9 @@
"is_entrypoint": false
},
"getInventoryId()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "getInventoryId()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17499,9 +24798,10 @@
"thrown_exceptions": [],
"declaration": "public String getInventoryId()",
"parameters": [],
- "code": "{\n return inventoryId;\n}",
+ "code": "{\r\n\t\treturn inventoryId;\r\n\t}",
"start_line": 220,
"end_line": 222,
+ "code_start_line": 220,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -17517,9 +24817,9 @@
"is_entrypoint": false
},
"getPkginfo()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "getPkginfo()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17527,9 +24827,10 @@
"thrown_exceptions": [],
"declaration": "public String getPkginfo()",
"parameters": [],
- "code": "{\n return pkginfo;\n}",
+ "code": "{\r\n\t\treturn pkginfo;\r\n\t}",
"start_line": 129,
"end_line": 131,
+ "code_start_line": 129,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -17545,9 +24846,9 @@
"is_entrypoint": false
},
"getPrice()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "getPrice()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17555,9 +24856,10 @@
"thrown_exceptions": [],
"declaration": "public float getPrice()",
"parameters": [],
- "code": "{\n return price;\n}",
+ "code": "{\r\n\t\treturn price;\r\n\t}",
"start_line": 137,
"end_line": 139,
+ "code_start_line": 137,
"return_type": "float",
"is_implicit": false,
"is_constructor": false,
@@ -17573,9 +24875,9 @@
"is_entrypoint": false
},
"setInventoryId(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "setInventoryId(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17587,12 +24889,17 @@
"type": "java.lang.String",
"name": "inventoryId",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 224,
+ "end_line": 224,
+ "start_column": 29,
+ "end_column": 46
}
],
- "code": "{\n this.inventoryId = inventoryId;\n}",
+ "code": "{\r\n\t\tthis.inventoryId = inventoryId;\r\n\t}",
"start_line": 224,
"end_line": 226,
+ "code_start_line": 224,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -17610,9 +24917,9 @@
"is_entrypoint": false
},
"setSellDate(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "setSellDate(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17624,12 +24931,17 @@
"type": "java.lang.String",
"name": "sellDate",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 157,
+ "end_line": 157,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.sellDate = sellDate;\n}",
+ "code": "{\r\n\t\tthis.sellDate = sellDate;\r\n\t}",
"start_line": 157,
"end_line": 159,
+ "code_start_line": 157,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -17647,9 +24959,9 @@
"is_entrypoint": false
},
"getName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "getName()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17657,9 +24969,10 @@
"thrown_exceptions": [],
"declaration": "public String getName()",
"parameters": [],
- "code": "{\n return name;\n}",
+ "code": "{\r\n\t\treturn name;\r\n\t}",
"start_line": 121,
"end_line": 123,
+ "code_start_line": 121,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -17675,9 +24988,9 @@
"is_entrypoint": false
},
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "OrderItem()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17685,9 +24998,10 @@
"thrown_exceptions": [],
"declaration": "public OrderItem()",
"parameters": [],
- "code": "{\n}",
+ "code": "{\r\n\t}",
"start_line": 161,
"end_line": 162,
+ "code_start_line": 161,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -17701,9 +25015,9 @@
"is_entrypoint": false
},
"setInventory(Inventory)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "setInventory(Inventory)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17715,12 +25029,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "inv",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 202,
+ "end_line": 202,
+ "start_column": 27,
+ "end_column": 39
}
],
- "code": "{\n this.inventory = inv;\n}",
+ "code": "{\r\n\t\tthis.inventory = inv;\r\n\t}",
"start_line": 202,
"end_line": 204,
+ "code_start_line": 202,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -17738,9 +25057,9 @@
"is_entrypoint": false
},
"setQuantity(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "setQuantity(int)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17752,12 +25071,17 @@
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 149,
+ "end_line": 149,
+ "start_column": 26,
+ "end_column": 37
}
],
- "code": "{\n this.quantity = quantity;\n}",
+ "code": "{\r\n\t\tthis.quantity = quantity;\r\n\t}",
"start_line": 149,
"end_line": 151,
+ "code_start_line": 149,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -17773,9 +25097,9 @@
"is_entrypoint": false
},
"setPkginfo(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "setPkginfo(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17787,12 +25111,17 @@
"type": "java.lang.String",
"name": "pkginfo",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 133,
+ "end_line": 133,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n this.pkginfo = pkginfo;\n}",
+ "code": "{\r\n\t\tthis.pkginfo = pkginfo;\r\n\t}",
"start_line": 133,
"end_line": 135,
+ "code_start_line": 133,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -17810,9 +25139,18 @@
"is_entrypoint": false
},
"setOrder(Order)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "setOrder(Order)",
- "comment": "/**\r\n\t * Sets the order for this item Also updates the sellDate\r\n\t * \r\n\t * @param order\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Sets the order for this item Also updates the sellDate\r\n\t * \r\n\t * @param order\r\n\t ",
+ "start_line": 210,
+ "end_line": 214,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -17824,12 +25162,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Order",
"name": "order",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 215,
+ "end_line": 215,
+ "start_column": 23,
+ "end_column": 33
}
],
- "code": "{\n this.order = order;\n this.sellDate = order.getSellDate();\n}",
+ "code": "{\r\n\t\tthis.order = order;\r\n\t\tthis.sellDate = order.getSellDate();\r\n\t}",
"start_line": 215,
"end_line": 218,
+ "code_start_line": 215,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -17844,6 +25187,7 @@
"call_sites": [
{
"method_name": "getSellDate",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -17870,9 +25214,9 @@
"is_entrypoint": false
},
"getCategory()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "getCategory()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17880,9 +25224,10 @@
"thrown_exceptions": [],
"declaration": "public int getCategory()",
"parameters": [],
- "code": "{\n return category;\n}",
+ "code": "{\r\n\t\treturn category;\r\n\t}",
"start_line": 105,
"end_line": 107,
+ "code_start_line": 105,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -17898,9 +25243,9 @@
"is_entrypoint": false
},
"getCost()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "getCost()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17908,9 +25253,10 @@
"thrown_exceptions": [],
"declaration": "public float getCost()",
"parameters": [],
- "code": "{\n return cost;\n}",
+ "code": "{\r\n\t\treturn cost;\r\n\t}",
"start_line": 113,
"end_line": 115,
+ "code_start_line": 113,
"return_type": "float",
"is_implicit": false,
"is_constructor": false,
@@ -17926,9 +25272,9 @@
"is_entrypoint": false
},
"(Order, String, Inventory, java.lang.String, java.lang.String, float, float, int, int, java.lang.String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "OrderItem(Order, String, Inventory, java.lang.String, java.lang.String, float, float, int, int, java.lang.String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -17940,66 +25286,107 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Order",
"name": "order",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 175,
+ "end_line": 175,
+ "start_column": 19,
+ "end_column": 29
},
{
"type": "java.lang.String",
"name": "orderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 175,
+ "end_line": 175,
+ "start_column": 32,
+ "end_column": 45
},
{
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "inv",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 175,
+ "end_line": 175,
+ "start_column": 48,
+ "end_column": 60
},
{
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 175,
+ "end_line": 175,
+ "start_column": 63,
+ "end_column": 83
},
{
"type": "java.lang.String",
"name": "pkginfo",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 175,
+ "end_line": 175,
+ "start_column": 86,
+ "end_column": 109
},
{
"type": "float",
"name": "price",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 176,
+ "end_line": 176,
+ "start_column": 4,
+ "end_column": 14
},
{
"type": "float",
"name": "cost",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 176,
+ "end_line": 176,
+ "start_column": 17,
+ "end_column": 26
},
{
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 176,
+ "end_line": 176,
+ "start_column": 29,
+ "end_column": 40
},
{
"type": "int",
"name": "category",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 176,
+ "end_line": 176,
+ "start_column": 43,
+ "end_column": 54
},
{
"type": "java.lang.String",
"name": "sellDate",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 176,
+ "end_line": 176,
+ "start_column": 57,
+ "end_column": 81
}
],
- "code": "{\n Util.debug(\"OrderItem(etc.)\");\n inventory = inv;\n setInventoryId(inv.getInventoryId());\n setName(name);\n setPkginfo(pkginfo);\n setPrice(price);\n setCost(cost);\n setQuantity(quantity);\n setCategory(category);\n setSellDate(sellDate);\n setOrder(order);\n id = new OrderItem.PK(inv.getInventoryId(), order.getOrderID());\n}",
+ "code": "{\r\n\t\tUtil.debug(\"OrderItem(etc.)\");\r\n\t\tinventory = inv;\r\n\t\tsetInventoryId(inv.getInventoryId());\r\n\t\tsetName(name);\r\n\t\tsetPkginfo(pkginfo);\r\n\t\tsetPrice(price);\r\n\t\tsetCost(cost);\r\n\t\tsetQuantity(quantity);\r\n\t\tsetCategory(category);\r\n\t\tsetSellDate(sellDate);\r\n\t\tsetOrder(order);\r\n\t\tid = new OrderItem.PK(inv.getInventoryId(), order.getOrderID());\r\n\t}",
"start_line": 175,
"end_line": 189,
+ "code_start_line": 176,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -18019,6 +25406,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -18041,6 +25429,7 @@
},
{
"method_name": "setInventoryId",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -18063,6 +25452,7 @@
},
{
"method_name": "getInventoryId",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -18083,6 +25473,7 @@
},
{
"method_name": "setName",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -18105,6 +25496,7 @@
},
{
"method_name": "setPkginfo",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -18127,6 +25519,7 @@
},
{
"method_name": "setPrice",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -18149,6 +25542,7 @@
},
{
"method_name": "setCost",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -18171,6 +25565,7 @@
},
{
"method_name": "setQuantity",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -18193,6 +25588,7 @@
},
{
"method_name": "setCategory",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -18215,6 +25611,7 @@
},
{
"method_name": "setSellDate",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -18237,6 +25634,7 @@
},
{
"method_name": "setOrder",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -18259,6 +25657,7 @@
},
{
"method_name": "getInventoryId",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -18279,6 +25678,7 @@
},
{
"method_name": "getOrderID",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -18299,6 +25699,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK",
"argument_types": [
@@ -18328,9 +25729,9 @@
"is_entrypoint": false
},
"setCategory(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "setCategory(int)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -18342,12 +25743,17 @@
"type": "int",
"name": "category",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 109,
+ "end_line": 109,
+ "start_column": 26,
+ "end_column": 37
}
],
- "code": "{\n this.category = category;\n}",
+ "code": "{\r\n\t\tthis.category = category;\r\n\t}",
"start_line": 109,
"end_line": 111,
+ "code_start_line": 109,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -18363,9 +25769,9 @@
"is_entrypoint": false
},
"setCost(float)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "setCost(float)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -18377,12 +25783,17 @@
"type": "float",
"name": "cost",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 117,
+ "end_line": 117,
+ "start_column": 22,
+ "end_column": 31
}
],
- "code": "{\n this.cost = cost;\n}",
+ "code": "{\r\n\t\tthis.cost = cost;\r\n\t}",
"start_line": 117,
"end_line": 119,
+ "code_start_line": 117,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -18398,9 +25809,9 @@
"is_entrypoint": false
},
"updatePK()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "updatePK()",
- "comment": "/*\r\n\t * updates the primary key field with the composite orderId+inventoryId\r\n\t */",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -18408,9 +25819,10 @@
"thrown_exceptions": [],
"declaration": "public void updatePK()",
"parameters": [],
- "code": "{\n id = new OrderItem.PK(inventoryId, order.getOrderID());\n}",
+ "code": "{\r\n\t\tid = new OrderItem.PK(inventoryId, order.getOrderID());\r\n\t}",
"start_line": 194,
"end_line": 196,
+ "code_start_line": 194,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -18423,6 +25835,7 @@
"call_sites": [
{
"method_name": "getOrderID",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -18443,6 +25856,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK",
"argument_types": [
@@ -18474,7 +25888,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK",
"start_line": 85,
@@ -18491,7 +25912,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 88,
@@ -18505,7 +25933,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 89,
@@ -18519,7 +25954,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "float",
"start_line": 90,
@@ -18533,7 +25975,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "float",
"start_line": 91,
@@ -18547,7 +25996,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "int",
"start_line": 92,
@@ -18561,7 +26017,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "int",
"start_line": 93,
@@ -18575,7 +26038,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 94,
@@ -18589,7 +26059,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 95,
@@ -18605,7 +26082,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"start_line": 98,
@@ -18622,7 +26106,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.jpa.Order",
"start_line": 101,
@@ -18639,7 +26130,9 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
},
"com.ibm.websphere.samples.pbw.jpa.OrderItem.PK": {
@@ -18652,7 +26145,32 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n\t * Composite Key class for Entity Bean: OrderItem\r\n\t * \r\n\t * Key consists of essentially two foreign key relations, but is mapped as foreign keys.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t\t * Returns true if both keys are equal.\r\n\t\t ",
+ "start_line": 63,
+ "end_line": 65,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t\t * Returns the hash code for the key.\r\n\t\t ",
+ "start_line": 74,
+ "end_line": 76,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Composite Key class for Entity Bean: OrderItem\r\n\t * \r\n\t * Key consists of essentially two foreign key relations, but is mapped as foreign keys.\r\n\t ",
+ "start_line": 39,
+ "end_line": 43,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -18667,9 +26185,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "PK()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -18677,9 +26195,10 @@
"thrown_exceptions": [],
"declaration": "public PK()",
"parameters": [],
- "code": "{\n Util.debug(\"OrderItem.PK()\");\n}",
+ "code": "{\r\n\t\t\tUtil.debug(\"OrderItem.PK()\");\r\n\t\t}",
"start_line": 52,
"end_line": 54,
+ "code_start_line": 52,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -18688,6 +26207,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -18716,9 +26236,9 @@
"is_entrypoint": false
},
"(String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "PK(String, String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -18730,18 +26250,27 @@
"type": "java.lang.String",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 56,
+ "end_line": 56,
+ "start_column": 13,
+ "end_column": 30
},
{
"type": "java.lang.String",
"name": "argOrder",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 56,
+ "end_line": 56,
+ "start_column": 33,
+ "end_column": 47
}
],
- "code": "{\n Util.debug(\"OrderItem.PK() inventoryID=\" + inventoryID + \"=\");\n Util.debug(\"OrderItem.PK() orderID=\" + argOrder + \"=\");\n this.inventoryID = inventoryID;\n this.order_orderID = argOrder;\n}",
+ "code": "{\r\n\t\t\tUtil.debug(\"OrderItem.PK() inventoryID=\" + inventoryID + \"=\");\r\n\t\t\tUtil.debug(\"OrderItem.PK() orderID=\" + argOrder + \"=\");\r\n\t\t\tthis.inventoryID = inventoryID;\r\n\t\t\tthis.order_orderID = argOrder;\r\n\t\t}",
"start_line": 56,
"end_line": 61,
+ "code_start_line": 56,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -18755,6 +26284,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -18777,6 +26307,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -18805,9 +26336,18 @@
"is_entrypoint": false
},
"equals(java.lang.Object)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "equals(java.lang.Object)",
- "comment": "/**\r\n\t\t * Returns true if both keys are equal.\r\n\t\t */",
+ "comments": [
+ {
+ "content": "\r\n\t\t * Returns true if both keys are equal.\r\n\t\t ",
+ "start_line": 63,
+ "end_line": 65,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -18819,12 +26359,17 @@
"type": "java.lang.Object",
"name": "otherKey",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 66,
+ "end_line": 66,
+ "start_column": 25,
+ "end_column": 49
}
],
- "code": "{\n if (otherKey instanceof PK) {\n PK o = (PK) otherKey;\n return ((this.inventoryID.equals(o.inventoryID)) && (this.order_orderID.equals(o.order_orderID)));\n }\n return false;\n}",
+ "code": "{\r\n\t\t\tif (otherKey instanceof PK) {\r\n\t\t\t\tPK o = (PK) otherKey;\r\n\t\t\t\treturn ((this.inventoryID.equals(o.inventoryID)) && (this.order_orderID.equals(o.order_orderID)));\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}",
"start_line": 66,
"end_line": 72,
+ "code_start_line": 66,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -18839,6 +26384,7 @@
"call_sites": [
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "this.inventoryID",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -18861,6 +26407,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "this.order_orderID",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -18884,6 +26431,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "o",
"type": "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK",
"initializer": "(PK) otherKey",
@@ -18899,9 +26454,18 @@
"is_entrypoint": false
},
"hashCode()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java",
"signature": "hashCode()",
- "comment": "/**\r\n\t\t * Returns the hash code for the key.\r\n\t\t */",
+ "comments": [
+ {
+ "content": "\r\n\t\t * Returns the hash code for the key.\r\n\t\t ",
+ "start_line": 74,
+ "end_line": 76,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -18909,9 +26473,10 @@
"thrown_exceptions": [],
"declaration": "public int hashCode()",
"parameters": [],
- "code": "{\n Util.debug(\"OrderItem.PK.hashCode() inventoryID=\" + inventoryID + \"=\");\n Util.debug(\"OrderItem.PK.hashCode() orderID=\" + order_orderID + \"=\");\n return (inventoryID.hashCode() + order_orderID.hashCode());\n}",
+ "code": "{\r\n\t\t\tUtil.debug(\"OrderItem.PK.hashCode() inventoryID=\" + inventoryID + \"=\");\r\n\t\t\tUtil.debug(\"OrderItem.PK.hashCode() orderID=\" + order_orderID + \"=\");\r\n\r\n\t\t\treturn (inventoryID.hashCode() + order_orderID.hashCode());\r\n\t\t}",
"start_line": 77,
"end_line": 82,
+ "code_start_line": 77,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -18923,6 +26488,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -18945,6 +26511,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -18967,6 +26534,7 @@
},
{
"method_name": "hashCode",
+ "comment": null,
"receiver_expr": "inventoryID",
"receiver_type": "java.lang.String",
"argument_types": [],
@@ -18987,6 +26555,7 @@
},
{
"method_name": "hashCode",
+ "comment": null,
"receiver_expr": "order_orderID",
"receiver_type": "java.lang.String",
"argument_types": [],
@@ -19015,7 +26584,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 46,
@@ -19030,7 +26606,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 47,
@@ -19046,7 +26629,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 49,
@@ -19062,15 +26652,179 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "package_name": "com.ibm.websphere.samples.pbw.jpa",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Bean mapping for the ORDER1 table.\r\n ",
+ "start_line": 36,
+ "end_line": 38,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Constructor to create an Order.\r\n\t *\r\n\t * @param customer\r\n\t * - customer who created the order\r\n\t * @param billName\r\n\t * - billing name\r\n\t * @param billAddr1\r\n\t * - billing address line 1\r\n\t * @param billAddr2\r\n\t * - billing address line 2\r\n\t * @param billCity\r\n\t * - billing address city\r\n\t * @param billState\r\n\t * - billing address state\r\n\t * @param billZip\r\n\t * - billing address zip code\r\n\t * @param billPhone\r\n\t * - billing phone\r\n\t * @param shipName\r\n\t * - shippng name\r\n\t * @param shipAddr1\r\n\t * - shippng address line 1\r\n\t * @param shipAddr2\r\n\t * - shippng address line 2\r\n\t * @param shipCity\r\n\t * - shippng address city\r\n\t * @param shipState\r\n\t * - shippng address state\r\n\t * @param shipZip\r\n\t * - shippng address zip code\r\n\t * @param shipPhone\r\n\t * - shippng phone\r\n\t * @param creditCard\r\n\t * - credit card\r\n\t * @param ccNum\r\n\t * - credit card number\r\n\t * @param ccExpireMonth\r\n\t * - credit card expiration month\r\n\t * @param ccExpireYear\r\n\t * - credit card expiration year\r\n\t * @param cardHolder\r\n\t * - credit card holder name\r\n\t * @param shippingMethod\r\n\t * int of shipping method used\r\n\t * @param items\r\n\t * vector of StoreItems ordered\r\n\t ",
+ "start_line": 82,
+ "end_line": 129,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Pad it to 14 digits so sorting works properly.",
+ "start_line": 137,
+ "end_line": 137,
+ "start_column": 3,
+ "end_column": 51,
+ "is_javadoc": false
+ },
+ {
+ "content": " Get profit for total order.",
+ "start_line": 167,
+ "end_line": 167,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.util.Collection",
"javax.persistence.Entity",
@@ -19097,7 +26851,40 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * Bean mapping for the ORDER1 table.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * Constructor to create an Order.\r\n\t *\r\n\t * @param customer\r\n\t * - customer who created the order\r\n\t * @param billName\r\n\t * - billing name\r\n\t * @param billAddr1\r\n\t * - billing address line 1\r\n\t * @param billAddr2\r\n\t * - billing address line 2\r\n\t * @param billCity\r\n\t * - billing address city\r\n\t * @param billState\r\n\t * - billing address state\r\n\t * @param billZip\r\n\t * - billing address zip code\r\n\t * @param billPhone\r\n\t * - billing phone\r\n\t * @param shipName\r\n\t * - shippng name\r\n\t * @param shipAddr1\r\n\t * - shippng address line 1\r\n\t * @param shipAddr2\r\n\t * - shippng address line 2\r\n\t * @param shipCity\r\n\t * - shippng address city\r\n\t * @param shipState\r\n\t * - shippng address state\r\n\t * @param shipZip\r\n\t * - shippng address zip code\r\n\t * @param shipPhone\r\n\t * - shippng phone\r\n\t * @param creditCard\r\n\t * - credit card\r\n\t * @param ccNum\r\n\t * - credit card number\r\n\t * @param ccExpireMonth\r\n\t * - credit card expiration month\r\n\t * @param ccExpireYear\r\n\t * - credit card expiration year\r\n\t * @param cardHolder\r\n\t * - credit card holder name\r\n\t * @param shippingMethod\r\n\t * int of shipping method used\r\n\t * @param items\r\n\t * vector of StoreItems ordered\r\n\t ",
+ "start_line": 82,
+ "end_line": 129,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Pad it to 14 digits so sorting works properly.",
+ "start_line": 137,
+ "end_line": 137,
+ "start_column": 3,
+ "end_column": 51,
+ "is_javadoc": false
+ },
+ {
+ "content": " Get profit for total order.",
+ "start_line": 167,
+ "end_line": 167,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Bean mapping for the ORDER1 table.\r\n ",
+ "start_line": 36,
+ "end_line": 38,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -19111,9 +26898,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"setCcNum(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setCcNum(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19125,12 +26912,17 @@
"type": "java.lang.String",
"name": "ccNum",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 270,
+ "end_line": 270,
+ "start_column": 23,
+ "end_column": 34
}
],
- "code": "{\n this.ccNum = ccNum;\n}",
+ "code": "{\r\n\t\tthis.ccNum = ccNum;\r\n\t}",
"start_line": 270,
"end_line": 272,
+ "code_start_line": 270,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -19148,9 +26940,9 @@
"is_entrypoint": false
},
"getShipAddr1()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getShipAddr1()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19158,9 +26950,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipAddr1()",
"parameters": [],
- "code": "{\n return shipAddr1;\n}",
+ "code": "{\r\n\t\treturn shipAddr1;\r\n\t}",
"start_line": 330,
"end_line": 332,
+ "code_start_line": 330,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -19176,9 +26969,9 @@
"is_entrypoint": false
},
"setShipAddr2(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setShipAddr2(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19190,12 +26983,17 @@
"type": "java.lang.String",
"name": "shipAddr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 342,
+ "end_line": 342,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.shipAddr2 = shipAddr2;\n}",
+ "code": "{\r\n\t\tthis.shipAddr2 = shipAddr2;\r\n\t}",
"start_line": 342,
"end_line": 344,
+ "code_start_line": 342,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -19213,9 +27011,9 @@
"is_entrypoint": false
},
"getShipZip()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getShipZip()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19223,9 +27021,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipZip()",
"parameters": [],
- "code": "{\n return shipZip;\n}",
+ "code": "{\r\n\t\treturn shipZip;\r\n\t}",
"start_line": 378,
"end_line": 380,
+ "code_start_line": 378,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -19241,9 +27040,9 @@
"is_entrypoint": false
},
"getBillAddr1()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getBillAddr1()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19251,9 +27050,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillAddr1()",
"parameters": [],
- "code": "{\n return billAddr1;\n}",
+ "code": "{\r\n\t\treturn billAddr1;\r\n\t}",
"start_line": 186,
"end_line": 188,
+ "code_start_line": 186,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -19269,9 +27069,9 @@
"is_entrypoint": false
},
"getShipCity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getShipCity()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19279,9 +27079,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipCity()",
"parameters": [],
- "code": "{\n return shipCity;\n}",
+ "code": "{\r\n\t\treturn shipCity;\r\n\t}",
"start_line": 346,
"end_line": 348,
+ "code_start_line": 346,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -19297,9 +27098,9 @@
"is_entrypoint": false
},
"setBillPhone(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setBillPhone(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19311,12 +27112,17 @@
"type": "java.lang.String",
"name": "billPhone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 222,
+ "end_line": 222,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.billPhone = billPhone;\n}",
+ "code": "{\r\n\t\tthis.billPhone = billPhone;\r\n\t}",
"start_line": 222,
"end_line": 224,
+ "code_start_line": 222,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -19334,9 +27140,9 @@
"is_entrypoint": false
},
"setOrderID(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setOrderID(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19348,12 +27154,17 @@
"type": "java.lang.String",
"name": "orderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 302,
+ "end_line": 302,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n this.orderID = orderID;\n}",
+ "code": "{\r\n\t\tthis.orderID = orderID;\r\n\t}",
"start_line": 302,
"end_line": 304,
+ "code_start_line": 302,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -19371,9 +27182,9 @@
"is_entrypoint": false
},
"(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "Order(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19385,12 +27196,17 @@
"type": "java.lang.String",
"name": "orderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 179,
+ "end_line": 179,
+ "start_column": 15,
+ "end_column": 28
}
],
- "code": "{\n setOrderID(orderID);\n}",
+ "code": "{\r\n\t\tsetOrderID(orderID);\r\n\t}",
"start_line": 179,
"end_line": 181,
+ "code_start_line": 179,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -19401,6 +27217,7 @@
"call_sites": [
{
"method_name": "setOrderID",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -19429,9 +27246,9 @@
"is_entrypoint": false
},
"getBillState()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getBillState()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19439,9 +27256,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillState()",
"parameters": [],
- "code": "{\n return billState;\n}",
+ "code": "{\r\n\t\treturn billState;\r\n\t}",
"start_line": 226,
"end_line": 228,
+ "code_start_line": 226,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -19457,9 +27275,9 @@
"is_entrypoint": false
},
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "Order()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19467,9 +27285,10 @@
"thrown_exceptions": [],
"declaration": "public Order()",
"parameters": [],
- "code": "{\n}",
+ "code": "{\r\n\t}",
"start_line": 183,
"end_line": 184,
+ "code_start_line": 183,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -19483,9 +27302,9 @@
"is_entrypoint": false
},
"setBillAddr1(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setBillAddr1(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19497,12 +27316,17 @@
"type": "java.lang.String",
"name": "billAddr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 190,
+ "end_line": 190,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.billAddr1 = billAddr1;\n}",
+ "code": "{\r\n\t\tthis.billAddr1 = billAddr1;\r\n\t}",
"start_line": 190,
"end_line": 192,
+ "code_start_line": 190,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -19520,9 +27344,9 @@
"is_entrypoint": false
},
"setBillState(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setBillState(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19534,12 +27358,17 @@
"type": "java.lang.String",
"name": "billState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 230,
+ "end_line": 230,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.billState = billState;\n}",
+ "code": "{\r\n\t\tthis.billState = billState;\r\n\t}",
"start_line": 230,
"end_line": 232,
+ "code_start_line": 230,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -19557,9 +27386,9 @@
"is_entrypoint": false
},
"getCcNum()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getCcNum()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19567,9 +27396,10 @@
"thrown_exceptions": [],
"declaration": "public String getCcNum()",
"parameters": [],
- "code": "{\n return ccNum;\n}",
+ "code": "{\r\n\t\treturn ccNum;\r\n\t}",
"start_line": 266,
"end_line": 268,
+ "code_start_line": 266,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -19585,9 +27415,9 @@
"is_entrypoint": false
},
"setItems(Collection)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setItems(Collection)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19599,12 +27429,17 @@
"type": "java.util.Collection",
"name": "items",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 294,
+ "end_line": 294,
+ "start_column": 23,
+ "end_column": 49
}
],
- "code": "{\n this.items = items;\n}",
+ "code": "{\r\n\t\tthis.items = items;\r\n\t}",
"start_line": 294,
"end_line": 296,
+ "code_start_line": 294,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -19622,9 +27457,9 @@
"is_entrypoint": false
},
"setCreditCard(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setCreditCard(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19636,12 +27471,17 @@
"type": "java.lang.String",
"name": "creditCard",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 278,
+ "end_line": 278,
+ "start_column": 28,
+ "end_column": 44
}
],
- "code": "{\n this.creditCard = creditCard;\n}",
+ "code": "{\r\n\t\tthis.creditCard = creditCard;\r\n\t}",
"start_line": 278,
"end_line": 280,
+ "code_start_line": 278,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -19659,9 +27499,9 @@
"is_entrypoint": false
},
"getBillName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getBillName()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19669,9 +27509,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillName()",
"parameters": [],
- "code": "{\n return billName;\n}",
+ "code": "{\r\n\t\treturn billName;\r\n\t}",
"start_line": 210,
"end_line": 212,
+ "code_start_line": 210,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -19687,9 +27528,9 @@
"is_entrypoint": false
},
"getCreditCard()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getCreditCard()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -19697,9 +27538,10 @@
"thrown_exceptions": [],
"declaration": "public String getCreditCard()",
"parameters": [],
- "code": "{\n return creditCard;\n}",
+ "code": "{\r\n\t\treturn creditCard;\r\n\t}",
"start_line": 274,
"end_line": 276,
+ "code_start_line": 274,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -19715,9 +27557,34 @@
"is_entrypoint": false
},
"(Customer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, int, Collection)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "Order(Customer, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, int, Collection)",
- "comment": "/**\r\n\t * Constructor to create an Order.\r\n\t *\r\n\t * @param customer\r\n\t * - customer who created the order\r\n\t * @param billName\r\n\t * - billing name\r\n\t * @param billAddr1\r\n\t * - billing address line 1\r\n\t * @param billAddr2\r\n\t * - billing address line 2\r\n\t * @param billCity\r\n\t * - billing address city\r\n\t * @param billState\r\n\t * - billing address state\r\n\t * @param billZip\r\n\t * - billing address zip code\r\n\t * @param billPhone\r\n\t * - billing phone\r\n\t * @param shipName\r\n\t * - shippng name\r\n\t * @param shipAddr1\r\n\t * - shippng address line 1\r\n\t * @param shipAddr2\r\n\t * - shippng address line 2\r\n\t * @param shipCity\r\n\t * - shippng address city\r\n\t * @param shipState\r\n\t * - shippng address state\r\n\t * @param shipZip\r\n\t * - shippng address zip code\r\n\t * @param shipPhone\r\n\t * - shippng phone\r\n\t * @param creditCard\r\n\t * - credit card\r\n\t * @param ccNum\r\n\t * - credit card number\r\n\t * @param ccExpireMonth\r\n\t * - credit card expiration month\r\n\t * @param ccExpireYear\r\n\t * - credit card expiration year\r\n\t * @param cardHolder\r\n\t * - credit card holder name\r\n\t * @param shippingMethod\r\n\t * int of shipping method used\r\n\t * @param items\r\n\t * vector of StoreItems ordered\r\n\t */",
+ "comments": [
+ {
+ "content": " Pad it to 14 digits so sorting works properly.",
+ "start_line": 137,
+ "end_line": 137,
+ "start_column": 3,
+ "end_column": 51,
+ "is_javadoc": false
+ },
+ {
+ "content": " Get profit for total order.",
+ "start_line": 167,
+ "end_line": 167,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Constructor to create an Order.\r\n\t *\r\n\t * @param customer\r\n\t * - customer who created the order\r\n\t * @param billName\r\n\t * - billing name\r\n\t * @param billAddr1\r\n\t * - billing address line 1\r\n\t * @param billAddr2\r\n\t * - billing address line 2\r\n\t * @param billCity\r\n\t * - billing address city\r\n\t * @param billState\r\n\t * - billing address state\r\n\t * @param billZip\r\n\t * - billing address zip code\r\n\t * @param billPhone\r\n\t * - billing phone\r\n\t * @param shipName\r\n\t * - shippng name\r\n\t * @param shipAddr1\r\n\t * - shippng address line 1\r\n\t * @param shipAddr2\r\n\t * - shippng address line 2\r\n\t * @param shipCity\r\n\t * - shippng address city\r\n\t * @param shipState\r\n\t * - shippng address state\r\n\t * @param shipZip\r\n\t * - shippng address zip code\r\n\t * @param shipPhone\r\n\t * - shippng phone\r\n\t * @param creditCard\r\n\t * - credit card\r\n\t * @param ccNum\r\n\t * - credit card number\r\n\t * @param ccExpireMonth\r\n\t * - credit card expiration month\r\n\t * @param ccExpireYear\r\n\t * - credit card expiration year\r\n\t * @param cardHolder\r\n\t * - credit card holder name\r\n\t * @param shippingMethod\r\n\t * int of shipping method used\r\n\t * @param items\r\n\t * vector of StoreItems ordered\r\n\t ",
+ "start_line": 82,
+ "end_line": 129,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -19729,138 +27596,227 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"name": "customer",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 130,
+ "end_line": 130,
+ "start_column": 15,
+ "end_column": 31
},
{
"type": "java.lang.String",
"name": "billName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 130,
+ "end_line": 130,
+ "start_column": 34,
+ "end_column": 48
},
{
"type": "java.lang.String",
"name": "billAddr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 130,
+ "end_line": 130,
+ "start_column": 51,
+ "end_column": 66
},
{
"type": "java.lang.String",
"name": "billAddr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 130,
+ "end_line": 130,
+ "start_column": 69,
+ "end_column": 84
},
{
"type": "java.lang.String",
"name": "billCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 130,
+ "end_line": 130,
+ "start_column": 87,
+ "end_column": 101
},
{
"type": "java.lang.String",
"name": "billState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 131,
+ "end_line": 131,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "billZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 131,
+ "end_line": 131,
+ "start_column": 22,
+ "end_column": 35
},
{
"type": "java.lang.String",
"name": "billPhone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 131,
+ "end_line": 131,
+ "start_column": 38,
+ "end_column": 53
},
{
"type": "java.lang.String",
"name": "shipName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 131,
+ "end_line": 131,
+ "start_column": 56,
+ "end_column": 70
},
{
"type": "java.lang.String",
"name": "shipAddr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 131,
+ "end_line": 131,
+ "start_column": 73,
+ "end_column": 88
},
{
"type": "java.lang.String",
"name": "shipAddr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 131,
+ "end_line": 131,
+ "start_column": 91,
+ "end_column": 106
},
{
"type": "java.lang.String",
"name": "shipCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 132,
+ "end_line": 132,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "shipState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 132,
+ "end_line": 132,
+ "start_column": 21,
+ "end_column": 36
},
{
"type": "java.lang.String",
"name": "shipZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 132,
+ "end_line": 132,
+ "start_column": 39,
+ "end_column": 52
},
{
"type": "java.lang.String",
"name": "shipPhone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 132,
+ "end_line": 132,
+ "start_column": 55,
+ "end_column": 70
},
{
"type": "java.lang.String",
"name": "creditCard",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 132,
+ "end_line": 132,
+ "start_column": 73,
+ "end_column": 89
},
{
"type": "java.lang.String",
"name": "ccNum",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 132,
+ "end_line": 132,
+ "start_column": 92,
+ "end_column": 103
},
{
"type": "java.lang.String",
"name": "ccExpireMonth",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 133,
+ "end_line": 133,
+ "start_column": 4,
+ "end_column": 23
},
{
"type": "java.lang.String",
"name": "ccExpireYear",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 133,
+ "end_line": 133,
+ "start_column": 26,
+ "end_column": 44
},
{
"type": "java.lang.String",
"name": "cardHolder",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 133,
+ "end_line": 133,
+ "start_column": 47,
+ "end_column": 63
},
{
"type": "int",
"name": "shippingMethod",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 133,
+ "end_line": 133,
+ "start_column": 66,
+ "end_column": 83
},
{
"type": "java.util.Collection",
"name": "items",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 134,
+ "end_line": 134,
+ "start_column": 4,
+ "end_column": 30
}
],
- "code": "{\n this.setSellDate(Long.toString(System.currentTimeMillis()));\n // Pad it to 14 digits so sorting works properly.\n if (this.getSellDate().length() < 14) {\n StringBuffer sb = new StringBuffer(Util.ZERO_14);\n sb.replace((14 - this.getSellDate().length()), 14, this.getSellDate());\n this.setSellDate(sb.toString());\n }\n this.setCustomer(customer);\n this.setBillName(billName);\n this.setBillAddr1(billAddr1);\n this.setBillAddr2(billAddr2);\n this.setBillCity(billCity);\n this.setBillState(billState);\n this.setBillZip(billZip);\n this.setBillPhone(billPhone);\n this.setShipName(shipName);\n this.setShipAddr1(shipAddr1);\n this.setShipAddr2(shipAddr2);\n this.setShipCity(shipCity);\n this.setShipState(shipState);\n this.setShipZip(shipZip);\n this.setShipPhone(shipPhone);\n this.setCreditCard(creditCard);\n this.setCcNum(ccNum);\n this.setCcExpireMonth(ccExpireMonth);\n this.setCcExpireYear(ccExpireYear);\n this.setCardHolder(cardHolder);\n this.setShippingMethod(shippingMethod);\n this.items = items;\n // Get profit for total order.\n OrderItem oi;\n float profit;\n profit = 0.0f;\n for (Object o : items) {\n oi = (OrderItem) o;\n profit = profit + (oi.getQuantity() * (oi.getPrice() - oi.getCost()));\n oi.setOrder(this);\n }\n this.setProfit(profit);\n}",
+ "code": "{\r\n\t\tthis.setSellDate(Long.toString(System.currentTimeMillis()));\r\n\r\n\t\t// Pad it to 14 digits so sorting works properly.\r\n\t\tif (this.getSellDate().length() < 14) {\r\n\t\t\tStringBuffer sb = new StringBuffer(Util.ZERO_14);\r\n\t\t\tsb.replace((14 - this.getSellDate().length()), 14, this.getSellDate());\r\n\t\t\tthis.setSellDate(sb.toString());\r\n\t\t}\r\n\r\n\t\tthis.setCustomer(customer);\r\n\t\tthis.setBillName(billName);\r\n\t\tthis.setBillAddr1(billAddr1);\r\n\t\tthis.setBillAddr2(billAddr2);\r\n\t\tthis.setBillCity(billCity);\r\n\t\tthis.setBillState(billState);\r\n\t\tthis.setBillZip(billZip);\r\n\t\tthis.setBillPhone(billPhone);\r\n\t\tthis.setShipName(shipName);\r\n\t\tthis.setShipAddr1(shipAddr1);\r\n\t\tthis.setShipAddr2(shipAddr2);\r\n\t\tthis.setShipCity(shipCity);\r\n\t\tthis.setShipState(shipState);\r\n\t\tthis.setShipZip(shipZip);\r\n\t\tthis.setShipPhone(shipPhone);\r\n\t\tthis.setCreditCard(creditCard);\r\n\t\tthis.setCcNum(ccNum);\r\n\t\tthis.setCcExpireMonth(ccExpireMonth);\r\n\t\tthis.setCcExpireYear(ccExpireYear);\r\n\t\tthis.setCardHolder(cardHolder);\r\n\t\tthis.setShippingMethod(shippingMethod);\r\n\t\tthis.items = items;\r\n\r\n\t\t// Get profit for total order.\r\n\t\tOrderItem oi;\r\n\t\tfloat profit;\r\n\t\tprofit = 0.0f;\r\n\t\tfor (Object o : items) {\r\n\t\t\toi = (OrderItem) o;\r\n\t\t\tprofit = profit + (oi.getQuantity() * (oi.getPrice() - oi.getCost()));\r\n\t\t\toi.setOrder(this);\r\n\t\t}\r\n\t\tthis.setProfit(profit);\r\n\t}",
"start_line": 130,
"end_line": 177,
+ "code_start_line": 134,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -19900,6 +27856,7 @@
"call_sites": [
{
"method_name": "setSellDate",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -19922,6 +27879,7 @@
},
{
"method_name": "toString",
+ "comment": null,
"receiver_expr": "Long",
"receiver_type": "java.lang.Long",
"argument_types": [
@@ -19944,6 +27902,7 @@
},
{
"method_name": "currentTimeMillis",
+ "comment": null,
"receiver_expr": "System",
"receiver_type": "java.lang.System",
"argument_types": [],
@@ -19964,6 +27923,7 @@
},
{
"method_name": "length",
+ "comment": null,
"receiver_expr": "this.getSellDate()",
"receiver_type": "java.lang.String",
"argument_types": [],
@@ -19984,6 +27944,7 @@
},
{
"method_name": "getSellDate",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -20004,6 +27965,7 @@
},
{
"method_name": "replace",
+ "comment": null,
"receiver_expr": "sb",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [
@@ -20028,6 +27990,7 @@
},
{
"method_name": "length",
+ "comment": null,
"receiver_expr": "this.getSellDate()",
"receiver_type": "java.lang.String",
"argument_types": [],
@@ -20048,6 +28011,7 @@
},
{
"method_name": "getSellDate",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -20068,6 +28032,7 @@
},
{
"method_name": "getSellDate",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -20088,6 +28053,7 @@
},
{
"method_name": "setSellDate",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20110,6 +28076,7 @@
},
{
"method_name": "toString",
+ "comment": null,
"receiver_expr": "sb",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [],
@@ -20130,6 +28097,7 @@
},
{
"method_name": "setCustomer",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20152,6 +28120,7 @@
},
{
"method_name": "setBillName",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20174,6 +28143,7 @@
},
{
"method_name": "setBillAddr1",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20196,6 +28166,7 @@
},
{
"method_name": "setBillAddr2",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20218,6 +28189,7 @@
},
{
"method_name": "setBillCity",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20240,6 +28212,7 @@
},
{
"method_name": "setBillState",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20262,6 +28235,7 @@
},
{
"method_name": "setBillZip",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20284,6 +28258,7 @@
},
{
"method_name": "setBillPhone",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20306,6 +28281,7 @@
},
{
"method_name": "setShipName",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20328,6 +28304,7 @@
},
{
"method_name": "setShipAddr1",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20350,6 +28327,7 @@
},
{
"method_name": "setShipAddr2",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20372,6 +28350,7 @@
},
{
"method_name": "setShipCity",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20394,6 +28373,7 @@
},
{
"method_name": "setShipState",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20416,6 +28396,7 @@
},
{
"method_name": "setShipZip",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20438,6 +28419,7 @@
},
{
"method_name": "setShipPhone",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20460,6 +28442,7 @@
},
{
"method_name": "setCreditCard",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20482,6 +28465,7 @@
},
{
"method_name": "setCcNum",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20504,6 +28488,7 @@
},
{
"method_name": "setCcExpireMonth",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20526,6 +28511,7 @@
},
{
"method_name": "setCcExpireYear",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20548,6 +28534,7 @@
},
{
"method_name": "setCardHolder",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20570,6 +28557,7 @@
},
{
"method_name": "setShippingMethod",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20592,6 +28580,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "oi",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem",
"argument_types": [],
@@ -20612,6 +28601,7 @@
},
{
"method_name": "getPrice",
+ "comment": null,
"receiver_expr": "oi",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem",
"argument_types": [],
@@ -20632,6 +28622,7 @@
},
{
"method_name": "getCost",
+ "comment": null,
"receiver_expr": "oi",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem",
"argument_types": [],
@@ -20652,6 +28643,7 @@
},
{
"method_name": "setOrder",
+ "comment": null,
"receiver_expr": "oi",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem",
"argument_types": [
@@ -20674,6 +28666,7 @@
},
{
"method_name": "setProfit",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [
@@ -20696,6 +28689,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [
@@ -20719,6 +28713,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "sb",
"type": "java.lang.StringBuffer",
"initializer": "new StringBuffer(Util.ZERO_14)",
@@ -20728,6 +28730,14 @@
"end_column": 51
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "oi",
"type": "com.ibm.websphere.samples.pbw.jpa.OrderItem",
"initializer": "",
@@ -20737,6 +28747,14 @@
"end_column": 14
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "profit",
"type": "float",
"initializer": "",
@@ -20746,6 +28764,14 @@
"end_column": 14
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "o",
"type": "java.lang.Object",
"initializer": "",
@@ -20761,9 +28787,9 @@
"is_entrypoint": false
},
"getProfit()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getProfit()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -20771,9 +28797,10 @@
"thrown_exceptions": [],
"declaration": "public float getProfit()",
"parameters": [],
- "code": "{\n return profit;\n}",
+ "code": "{\r\n\t\treturn profit;\r\n\t}",
"start_line": 314,
"end_line": 316,
+ "code_start_line": 314,
"return_type": "float",
"is_implicit": false,
"is_constructor": false,
@@ -20789,9 +28816,9 @@
"is_entrypoint": false
},
"getBillPhone()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getBillPhone()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -20799,9 +28826,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillPhone()",
"parameters": [],
- "code": "{\n return billPhone;\n}",
+ "code": "{\r\n\t\treturn billPhone;\r\n\t}",
"start_line": 218,
"end_line": 220,
+ "code_start_line": 218,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -20817,9 +28845,9 @@
"is_entrypoint": false
},
"setShippingMethod(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setShippingMethod(int)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -20831,12 +28859,17 @@
"type": "int",
"name": "shippingMethod",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 374,
+ "end_line": 374,
+ "start_column": 32,
+ "end_column": 49
}
],
- "code": "{\n this.shippingMethod = shippingMethod;\n}",
+ "code": "{\r\n\t\tthis.shippingMethod = shippingMethod;\r\n\t}",
"start_line": 374,
"end_line": 376,
+ "code_start_line": 374,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -20852,9 +28885,9 @@
"is_entrypoint": false
},
"getOrderItems()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getOrderItems()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -20862,9 +28895,10 @@
"thrown_exceptions": [],
"declaration": "public Collection getOrderItems()",
"parameters": [],
- "code": "{\n return orderItems;\n}",
+ "code": "{\r\n\t\treturn orderItems;\r\n\t}",
"start_line": 306,
"end_line": 308,
+ "code_start_line": 306,
"return_type": "java.util.Collection",
"is_implicit": false,
"is_constructor": false,
@@ -20880,9 +28914,9 @@
"is_entrypoint": false
},
"setBillCity(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setBillCity(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -20894,12 +28928,17 @@
"type": "java.lang.String",
"name": "billCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 206,
+ "end_line": 206,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.billCity = billCity;\n}",
+ "code": "{\r\n\t\tthis.billCity = billCity;\r\n\t}",
"start_line": 206,
"end_line": 208,
+ "code_start_line": 206,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -20917,9 +28956,9 @@
"is_entrypoint": false
},
"getCcExpireMonth()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getCcExpireMonth()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -20927,9 +28966,10 @@
"thrown_exceptions": [],
"declaration": "public String getCcExpireMonth()",
"parameters": [],
- "code": "{\n return ccExpireMonth;\n}",
+ "code": "{\r\n\t\treturn ccExpireMonth;\r\n\t}",
"start_line": 250,
"end_line": 252,
+ "code_start_line": 250,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -20945,9 +28985,9 @@
"is_entrypoint": false
},
"getCardHolder()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getCardHolder()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -20955,9 +28995,10 @@
"thrown_exceptions": [],
"declaration": "public String getCardHolder()",
"parameters": [],
- "code": "{\n return cardHolder;\n}",
+ "code": "{\r\n\t\treturn cardHolder;\r\n\t}",
"start_line": 242,
"end_line": 244,
+ "code_start_line": 242,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -20973,9 +29014,9 @@
"is_entrypoint": false
},
"setSellDate(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setSellDate(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -20987,12 +29028,17 @@
"type": "java.lang.String",
"name": "sellDate",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 326,
+ "end_line": 326,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.sellDate = sellDate;\n}",
+ "code": "{\r\n\t\tthis.sellDate = sellDate;\r\n\t}",
"start_line": 326,
"end_line": 328,
+ "code_start_line": 326,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21010,9 +29056,9 @@
"is_entrypoint": false
},
"setOrderItems(Collection)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setOrderItems(Collection)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21024,12 +29070,17 @@
"type": "java.util.Collection",
"name": "orderItems",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 310,
+ "end_line": 310,
+ "start_column": 28,
+ "end_column": 48
}
],
- "code": "{\n this.orderItems = orderItems;\n}",
+ "code": "{\r\n\t\tthis.orderItems = orderItems;\r\n\t}",
"start_line": 310,
"end_line": 312,
+ "code_start_line": 310,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21047,9 +29098,9 @@
"is_entrypoint": false
},
"setShipPhone(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setShipPhone(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21061,12 +29112,17 @@
"type": "java.lang.String",
"name": "shipPhone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 366,
+ "end_line": 366,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.shipPhone = shipPhone;\n}",
+ "code": "{\r\n\t\tthis.shipPhone = shipPhone;\r\n\t}",
"start_line": 366,
"end_line": 368,
+ "code_start_line": 366,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21084,9 +29140,9 @@
"is_entrypoint": false
},
"setCcExpireYear(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setCcExpireYear(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21098,12 +29154,17 @@
"type": "java.lang.String",
"name": "ccExpireYear",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 262,
+ "end_line": 262,
+ "start_column": 30,
+ "end_column": 48
}
],
- "code": "{\n this.ccExpireYear = ccExpireYear;\n}",
+ "code": "{\r\n\t\tthis.ccExpireYear = ccExpireYear;\r\n\t}",
"start_line": 262,
"end_line": 264,
+ "code_start_line": 262,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21121,9 +29182,9 @@
"is_entrypoint": false
},
"setProfit(float)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setProfit(float)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21135,12 +29196,17 @@
"type": "float",
"name": "profit",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 318,
+ "end_line": 318,
+ "start_column": 24,
+ "end_column": 35
}
],
- "code": "{\n this.profit = profit;\n}",
+ "code": "{\r\n\t\tthis.profit = profit;\r\n\t}",
"start_line": 318,
"end_line": 320,
+ "code_start_line": 318,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21156,9 +29222,9 @@
"is_entrypoint": false
},
"getShippingMethod()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getShippingMethod()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21166,9 +29232,10 @@
"thrown_exceptions": [],
"declaration": "public int getShippingMethod()",
"parameters": [],
- "code": "{\n return shippingMethod;\n}",
+ "code": "{\r\n\t\treturn shippingMethod;\r\n\t}",
"start_line": 370,
"end_line": 372,
+ "code_start_line": 370,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -21184,9 +29251,9 @@
"is_entrypoint": false
},
"setCustomer(Customer)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setCustomer(Customer)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21198,12 +29265,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"name": "customer",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 286,
+ "end_line": 286,
+ "start_column": 26,
+ "end_column": 42
}
],
- "code": "{\n this.customer = customer;\n}",
+ "code": "{\r\n\t\tthis.customer = customer;\r\n\t}",
"start_line": 286,
"end_line": 288,
+ "code_start_line": 286,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21221,9 +29293,9 @@
"is_entrypoint": false
},
"getBillAddr2()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getBillAddr2()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21231,9 +29303,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillAddr2()",
"parameters": [],
- "code": "{\n return billAddr2;\n}",
+ "code": "{\r\n\t\treturn billAddr2;\r\n\t}",
"start_line": 194,
"end_line": 196,
+ "code_start_line": 194,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -21249,9 +29322,9 @@
"is_entrypoint": false
},
"setShipCity(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setShipCity(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21263,12 +29336,17 @@
"type": "java.lang.String",
"name": "shipCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 350,
+ "end_line": 350,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.shipCity = shipCity;\n}",
+ "code": "{\r\n\t\tthis.shipCity = shipCity;\r\n\t}",
"start_line": 350,
"end_line": 352,
+ "code_start_line": 350,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21286,9 +29364,9 @@
"is_entrypoint": false
},
"setShipName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setShipName(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21300,12 +29378,17 @@
"type": "java.lang.String",
"name": "shipName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 358,
+ "end_line": 358,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.shipName = shipName;\n}",
+ "code": "{\r\n\t\tthis.shipName = shipName;\r\n\t}",
"start_line": 358,
"end_line": 360,
+ "code_start_line": 358,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21323,9 +29406,9 @@
"is_entrypoint": false
},
"setBillZip(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setBillZip(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21337,12 +29420,17 @@
"type": "java.lang.String",
"name": "billZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 238,
+ "end_line": 238,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n this.billZip = billZip;\n}",
+ "code": "{\r\n\t\tthis.billZip = billZip;\r\n\t}",
"start_line": 238,
"end_line": 240,
+ "code_start_line": 238,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21360,9 +29448,9 @@
"is_entrypoint": false
},
"getCustomer()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getCustomer()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21370,9 +29458,10 @@
"thrown_exceptions": [],
"declaration": "public Customer getCustomer()",
"parameters": [],
- "code": "{\n return customer;\n}",
+ "code": "{\r\n\t\treturn customer;\r\n\t}",
"start_line": 282,
"end_line": 284,
+ "code_start_line": 282,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"is_implicit": false,
"is_constructor": false,
@@ -21388,9 +29477,9 @@
"is_entrypoint": false
},
"getShipName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getShipName()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21398,9 +29487,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipName()",
"parameters": [],
- "code": "{\n return shipName;\n}",
+ "code": "{\r\n\t\treturn shipName;\r\n\t}",
"start_line": 354,
"end_line": 356,
+ "code_start_line": 354,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -21416,9 +29506,9 @@
"is_entrypoint": false
},
"getShipAddr2()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getShipAddr2()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21426,9 +29516,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipAddr2()",
"parameters": [],
- "code": "{\n return shipAddr2;\n}",
+ "code": "{\r\n\t\treturn shipAddr2;\r\n\t}",
"start_line": 338,
"end_line": 340,
+ "code_start_line": 338,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -21444,9 +29535,9 @@
"is_entrypoint": false
},
"setBillAddr2(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setBillAddr2(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21458,12 +29549,17 @@
"type": "java.lang.String",
"name": "billAddr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 198,
+ "end_line": 198,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.billAddr2 = billAddr2;\n}",
+ "code": "{\r\n\t\tthis.billAddr2 = billAddr2;\r\n\t}",
"start_line": 198,
"end_line": 200,
+ "code_start_line": 198,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21481,9 +29577,9 @@
"is_entrypoint": false
},
"setShipAddr1(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setShipAddr1(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21495,12 +29591,17 @@
"type": "java.lang.String",
"name": "shipAddr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 334,
+ "end_line": 334,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.shipAddr1 = shipAddr1;\n}",
+ "code": "{\r\n\t\tthis.shipAddr1 = shipAddr1;\r\n\t}",
"start_line": 334,
"end_line": 336,
+ "code_start_line": 334,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21518,9 +29619,9 @@
"is_entrypoint": false
},
"getShipState()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getShipState()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21528,9 +29629,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipState()",
"parameters": [],
- "code": "{\n return shipState;\n}",
+ "code": "{\r\n\t\treturn shipState;\r\n\t}",
"start_line": 386,
"end_line": 388,
+ "code_start_line": 386,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -21546,9 +29648,9 @@
"is_entrypoint": false
},
"getSellDate()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getSellDate()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21556,9 +29658,10 @@
"thrown_exceptions": [],
"declaration": "public String getSellDate()",
"parameters": [],
- "code": "{\n return sellDate;\n}",
+ "code": "{\r\n\t\treturn sellDate;\r\n\t}",
"start_line": 322,
"end_line": 324,
+ "code_start_line": 322,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -21574,9 +29677,9 @@
"is_entrypoint": false
},
"setCcExpireMonth(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setCcExpireMonth(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21588,12 +29691,17 @@
"type": "java.lang.String",
"name": "ccExpireMonth",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 254,
+ "end_line": 254,
+ "start_column": 31,
+ "end_column": 50
}
],
- "code": "{\n this.ccExpireMonth = ccExpireMonth;\n}",
+ "code": "{\r\n\t\tthis.ccExpireMonth = ccExpireMonth;\r\n\t}",
"start_line": 254,
"end_line": 256,
+ "code_start_line": 254,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21611,9 +29719,9 @@
"is_entrypoint": false
},
"getOrderID()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getOrderID()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21621,9 +29729,10 @@
"thrown_exceptions": [],
"declaration": "public String getOrderID()",
"parameters": [],
- "code": "{\n return orderID;\n}",
+ "code": "{\r\n\t\treturn orderID;\r\n\t}",
"start_line": 298,
"end_line": 300,
+ "code_start_line": 298,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -21639,9 +29748,9 @@
"is_entrypoint": false
},
"getBillZip()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getBillZip()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21649,9 +29758,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillZip()",
"parameters": [],
- "code": "{\n return billZip;\n}",
+ "code": "{\r\n\t\treturn billZip;\r\n\t}",
"start_line": 234,
"end_line": 236,
+ "code_start_line": 234,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -21667,9 +29777,9 @@
"is_entrypoint": false
},
"setBillName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setBillName(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21681,12 +29791,17 @@
"type": "java.lang.String",
"name": "billName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 214,
+ "end_line": 214,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.billName = billName;\n}",
+ "code": "{\r\n\t\tthis.billName = billName;\r\n\t}",
"start_line": 214,
"end_line": 216,
+ "code_start_line": 214,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21704,9 +29819,9 @@
"is_entrypoint": false
},
"getShipPhone()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getShipPhone()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21714,9 +29829,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipPhone()",
"parameters": [],
- "code": "{\n return shipPhone;\n}",
+ "code": "{\r\n\t\treturn shipPhone;\r\n\t}",
"start_line": 362,
"end_line": 364,
+ "code_start_line": 362,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -21732,9 +29848,9 @@
"is_entrypoint": false
},
"setShipState(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setShipState(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21746,12 +29862,17 @@
"type": "java.lang.String",
"name": "shipState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 390,
+ "end_line": 390,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.shipState = shipState;\n}",
+ "code": "{\r\n\t\tthis.shipState = shipState;\r\n\t}",
"start_line": 390,
"end_line": 392,
+ "code_start_line": 390,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21769,9 +29890,9 @@
"is_entrypoint": false
},
"getBillCity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getBillCity()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21779,9 +29900,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillCity()",
"parameters": [],
- "code": "{\n return billCity;\n}",
+ "code": "{\r\n\t\treturn billCity;\r\n\t}",
"start_line": 202,
"end_line": 204,
+ "code_start_line": 202,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -21797,9 +29919,9 @@
"is_entrypoint": false
},
"setCardHolder(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setCardHolder(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21811,12 +29933,17 @@
"type": "java.lang.String",
"name": "cardHolder",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 246,
+ "end_line": 246,
+ "start_column": 28,
+ "end_column": 44
}
],
- "code": "{\n this.cardHolder = cardHolder;\n}",
+ "code": "{\r\n\t\tthis.cardHolder = cardHolder;\r\n\t}",
"start_line": 246,
"end_line": 248,
+ "code_start_line": 246,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21834,9 +29961,9 @@
"is_entrypoint": false
},
"getCcExpireYear()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getCcExpireYear()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21844,9 +29971,10 @@
"thrown_exceptions": [],
"declaration": "public String getCcExpireYear()",
"parameters": [],
- "code": "{\n return ccExpireYear;\n}",
+ "code": "{\r\n\t\treturn ccExpireYear;\r\n\t}",
"start_line": 258,
"end_line": 260,
+ "code_start_line": 258,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -21862,9 +29990,9 @@
"is_entrypoint": false
},
"getItems()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "getItems()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21872,9 +30000,10 @@
"thrown_exceptions": [],
"declaration": "public Collection getItems()",
"parameters": [],
- "code": "{\n return items;\n}",
+ "code": "{\r\n\t\treturn items;\r\n\t}",
"start_line": 290,
"end_line": 292,
+ "code_start_line": 290,
"return_type": "java.util.Collection",
"is_implicit": false,
"is_constructor": false,
@@ -21890,9 +30019,9 @@
"is_entrypoint": false
},
"setShipZip(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java",
"signature": "setShipZip(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -21904,12 +30033,17 @@
"type": "java.lang.String",
"name": "shipZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 382,
+ "end_line": 382,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n this.shipZip = shipZip;\n}",
+ "code": "{\r\n\t\tthis.shipZip = shipZip;\r\n\t}",
"start_line": 382,
"end_line": 384,
+ "code_start_line": 382,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -21929,7 +30063,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 43,
@@ -21945,7 +30086,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 44,
@@ -21961,7 +30109,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 46,
@@ -21979,7 +30134,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 50,
@@ -21993,7 +30155,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 51,
@@ -22007,7 +30176,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 52,
@@ -22021,7 +30197,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 53,
@@ -22035,7 +30218,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 54,
@@ -22049,7 +30239,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 55,
@@ -22063,7 +30260,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 56,
@@ -22077,7 +30281,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 57,
@@ -22091,7 +30302,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 58,
@@ -22105,7 +30323,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 59,
@@ -22119,7 +30344,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 60,
@@ -22133,7 +30365,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 61,
@@ -22147,7 +30386,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 62,
@@ -22161,7 +30407,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 63,
@@ -22175,7 +30428,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 64,
@@ -22189,7 +30449,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 65,
@@ -22203,7 +30470,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 66,
@@ -22217,7 +30491,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 67,
@@ -22231,7 +30512,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 68,
@@ -22245,7 +30533,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 69,
@@ -22259,7 +30554,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "int",
"start_line": 70,
@@ -22273,7 +30575,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "float",
"start_line": 71,
@@ -22287,7 +30596,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"start_line": 73,
@@ -22304,7 +30620,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.util.Collection",
"start_line": 76,
@@ -22320,7 +30643,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.util.Collection",
"start_line": 79,
@@ -22336,15 +30666,187 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerBean.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerBean.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerBean.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerBean.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * MailerBean provides a transactional facade for access to Order information and notification of\r\n * the buyer of order state.\r\n * \r\n ",
+ "start_line": 40,
+ "end_line": 44,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " public static final String MAIL_SESSION = \"java:comp/env/mail/PlantsByWebSphere\";",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 2,
+ "end_column": 85,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Create the email message.\r\n\t *\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t * @return The email message.\r\n\t ",
+ "start_line": 59,
+ "end_line": 65,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Create the Subject line.\r\n\t *\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t * @return The Order number string.\r\n\t ",
+ "start_line": 79,
+ "end_line": 85,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Create a mail message and send it.\r\n\t *\r\n\t * @param customerInfo\r\n\t * Customer information.\r\n\t * @param orderKey\r\n\t * @throws MailerAppException\r\n\t ",
+ "start_line": 93,
+ "end_line": 100,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.Serializable",
"java.util.Date",
@@ -22376,7 +30878,40 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "",
+ "comments": [
+ {
+ "content": " public static final String MAIL_SESSION = \"java:comp/env/mail/PlantsByWebSphere\";",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 2,
+ "end_column": 85,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Create the email message.\r\n\t *\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t * @return The email message.\r\n\t ",
+ "start_line": 59,
+ "end_line": 65,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Create the Subject line.\r\n\t *\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t * @return The Order number string.\r\n\t ",
+ "start_line": 79,
+ "end_line": 85,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Create a mail message and send it.\r\n\t *\r\n\t * @param customerInfo\r\n\t * Customer information.\r\n\t * @param orderKey\r\n\t * @throws MailerAppException\r\n\t ",
+ "start_line": 93,
+ "end_line": 100,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -22391,9 +30926,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"createAndSendMail(Customer, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerBean.java",
"signature": "createAndSendMail(Customer, String)",
- "comment": "/**\r\n\t * Create a mail message and send it.\r\n\t *\r\n\t * @param customerInfo\r\n\t * Customer information.\r\n\t * @param orderKey\r\n\t * @throws MailerAppException\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Create a mail message and send it.\r\n\t *\r\n\t * @param customerInfo\r\n\t * Customer information.\r\n\t * @param orderKey\r\n\t * @throws MailerAppException\r\n\t ",
+ "start_line": 93,
+ "end_line": 100,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -22407,18 +30951,27 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"name": "customerInfo",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 101,
+ "end_line": 101,
+ "start_column": 32,
+ "end_column": 52
},
{
"type": "java.lang.String",
"name": "orderKey",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 101,
+ "end_line": 101,
+ "start_column": 55,
+ "end_column": 69
}
],
- "code": "{\n try {\n EMailMessage eMessage = new EMailMessage(createSubjectLine(orderKey), createMessage(orderKey), customerInfo.getCustomerID());\n Util.debug(\"Sending message\" + \"\\nTo: \" + eMessage.getEmailReceiver() + \"\\nSubject: \" + eMessage.getSubject() + \"\\nContents: \" + eMessage.getHtmlContents());\n Util.debug(\"Sending message\" + \"\\nTo: \" + eMessage.getEmailReceiver() + \"\\nSubject: \" + eMessage.getSubject() + \"\\nContents: \" + eMessage.getHtmlContents());\n MimeMessage msg = new MimeMessage(mailSession);\n msg.setFrom();\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(eMessage.getEmailReceiver(), false));\n msg.setSubject(eMessage.getSubject());\n MimeBodyPart mbp = new MimeBodyPart();\n mbp.setText(eMessage.getHtmlContents(), \"us-ascii\");\n msg.setHeader(\"X-Mailer\", \"JavaMailer\");\n Multipart mp = new MimeMultipart();\n mp.addBodyPart(mbp);\n msg.setContent(mp);\n msg.setSentDate(new Date());\n Transport.send(msg);\n Util.debug(\"Mail sent successfully.\");\n } catch (Exception e) {\n Util.debug(\"Error sending mail. Have mail resources been configured correctly?\");\n Util.debug(\"createAndSendMail exception : \" + e);\n e.printStackTrace();\n throw new MailerAppException(\"Failure while sending mail\");\n }\n}",
+ "code": "{\r\n\t\ttry {\r\n\t\t\tEMailMessage eMessage = new EMailMessage(createSubjectLine(orderKey), createMessage(orderKey),\r\n\t\t\t\t\tcustomerInfo.getCustomerID());\r\n\r\n\t\t\tUtil.debug(\"Sending message\" + \"\\nTo: \" + eMessage.getEmailReceiver() + \"\\nSubject: \"\r\n\t\t\t\t\t+ eMessage.getSubject() + \"\\nContents: \" + eMessage.getHtmlContents());\r\n\r\n\t\t\tUtil.debug(\"Sending message\" + \"\\nTo: \" + eMessage.getEmailReceiver() + \"\\nSubject: \"\r\n\t\t\t\t\t+ eMessage.getSubject() + \"\\nContents: \" + eMessage.getHtmlContents());\r\n\r\n\t\t\tMimeMessage msg = new MimeMessage(mailSession);\r\n\t\t\tmsg.setFrom();\r\n\r\n\t\t\tmsg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(eMessage.getEmailReceiver(), false));\r\n\r\n\t\t\tmsg.setSubject(eMessage.getSubject());\r\n\t\t\tMimeBodyPart mbp = new MimeBodyPart();\r\n\t\t\tmbp.setText(eMessage.getHtmlContents(), \"us-ascii\");\r\n\t\t\tmsg.setHeader(\"X-Mailer\", \"JavaMailer\");\r\n\t\t\tMultipart mp = new MimeMultipart();\r\n\t\t\tmp.addBodyPart(mbp);\r\n\t\t\tmsg.setContent(mp);\r\n\t\t\tmsg.setSentDate(new Date());\r\n\r\n\t\t\tTransport.send(msg);\r\n\t\t\tUtil.debug(\"Mail sent successfully.\");\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tUtil.debug(\"Error sending mail. Have mail resources been configured correctly?\");\r\n\t\t\tUtil.debug(\"createAndSendMail exception : \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new MailerAppException(\"Failure while sending mail\");\r\n\t\t}\r\n\t}",
"start_line": 101,
"end_line": 136,
+ "code_start_line": 101,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -22435,6 +30988,7 @@
"call_sites": [
{
"method_name": "createSubjectLine",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -22457,6 +31011,7 @@
},
{
"method_name": "createMessage",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -22479,6 +31034,7 @@
},
{
"method_name": "getCustomerID",
+ "comment": null,
"receiver_expr": "customerInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -22499,6 +31055,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -22521,6 +31078,7 @@
},
{
"method_name": "getEmailReceiver",
+ "comment": null,
"receiver_expr": "eMessage",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"argument_types": [],
@@ -22541,6 +31099,7 @@
},
{
"method_name": "getSubject",
+ "comment": null,
"receiver_expr": "eMessage",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"argument_types": [],
@@ -22561,6 +31120,7 @@
},
{
"method_name": "getHtmlContents",
+ "comment": null,
"receiver_expr": "eMessage",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"argument_types": [],
@@ -22581,6 +31141,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -22603,6 +31164,7 @@
},
{
"method_name": "getEmailReceiver",
+ "comment": null,
"receiver_expr": "eMessage",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"argument_types": [],
@@ -22623,6 +31185,7 @@
},
{
"method_name": "getSubject",
+ "comment": null,
"receiver_expr": "eMessage",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"argument_types": [],
@@ -22643,6 +31206,7 @@
},
{
"method_name": "getHtmlContents",
+ "comment": null,
"receiver_expr": "eMessage",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"argument_types": [],
@@ -22663,6 +31227,7 @@
},
{
"method_name": "setFrom",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "",
"argument_types": [],
@@ -22683,6 +31248,7 @@
},
{
"method_name": "setRecipients",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "",
"argument_types": [
@@ -22706,6 +31272,7 @@
},
{
"method_name": "parse",
+ "comment": null,
"receiver_expr": "InternetAddress",
"receiver_type": "",
"argument_types": [
@@ -22729,6 +31296,7 @@
},
{
"method_name": "getEmailReceiver",
+ "comment": null,
"receiver_expr": "eMessage",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"argument_types": [],
@@ -22749,6 +31317,7 @@
},
{
"method_name": "setSubject",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "",
"argument_types": [
@@ -22771,6 +31340,7 @@
},
{
"method_name": "getSubject",
+ "comment": null,
"receiver_expr": "eMessage",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"argument_types": [],
@@ -22791,6 +31361,7 @@
},
{
"method_name": "setText",
+ "comment": null,
"receiver_expr": "mbp",
"receiver_type": "",
"argument_types": [
@@ -22814,6 +31385,7 @@
},
{
"method_name": "getHtmlContents",
+ "comment": null,
"receiver_expr": "eMessage",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"argument_types": [],
@@ -22834,6 +31406,7 @@
},
{
"method_name": "setHeader",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "",
"argument_types": [
@@ -22857,6 +31430,7 @@
},
{
"method_name": "addBodyPart",
+ "comment": null,
"receiver_expr": "mp",
"receiver_type": "",
"argument_types": [
@@ -22879,6 +31453,7 @@
},
{
"method_name": "setContent",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "",
"argument_types": [
@@ -22901,6 +31476,7 @@
},
{
"method_name": "setSentDate",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "",
"argument_types": [
@@ -22923,6 +31499,7 @@
},
{
"method_name": "send",
+ "comment": null,
"receiver_expr": "Transport",
"receiver_type": "",
"argument_types": [
@@ -22945,6 +31522,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -22967,6 +31545,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -22989,6 +31568,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -23011,6 +31591,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -23031,6 +31612,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"argument_types": [
@@ -23055,6 +31637,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "MimeMessage",
"argument_types": [
@@ -23077,6 +31660,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "MimeBodyPart",
"argument_types": [],
@@ -23097,6 +31681,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "MimeMultipart",
"argument_types": [],
@@ -23117,6 +31702,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.Date",
"argument_types": [],
@@ -23137,6 +31723,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.MailerAppException",
"argument_types": [
@@ -23160,6 +31747,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "eMessage",
"type": "com.ibm.websphere.samples.pbw.bean.EMailMessage",
"initializer": "new EMailMessage(createSubjectLine(orderKey), createMessage(orderKey), customerInfo.getCustomerID())",
@@ -23169,6 +31764,14 @@
"end_column": 34
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "msg",
"type": "MimeMessage",
"initializer": "new MimeMessage(mailSession)",
@@ -23178,6 +31781,14 @@
"end_column": 49
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "mbp",
"type": "MimeBodyPart",
"initializer": "new MimeBodyPart()",
@@ -23187,6 +31798,14 @@
"end_column": 40
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "mp",
"type": "Multipart",
"initializer": "new MimeMultipart()",
@@ -23202,9 +31821,18 @@
"is_entrypoint": false
},
"createMessage(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerBean.java",
"signature": "createMessage(String)",
- "comment": "/**\r\n\t * Create the email message.\r\n\t *\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t * @return The email message.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Create the email message.\r\n\t *\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t * @return The email message.\r\n\t ",
+ "start_line": 59,
+ "end_line": 65,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"private"
@@ -23216,12 +31844,17 @@
"type": "java.lang.String",
"name": "orderKey",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 66,
+ "end_line": 66,
+ "start_column": 31,
+ "end_column": 45
}
],
- "code": "{\n Util.debug(\"creating email message for order:\" + orderKey);\n StringBuffer msg = new StringBuffer();\n Order order = em.find(Order.class, orderKey);\n msg.append(\"Thank you for your order \" + orderKey + \".\\n\");\n msg.append(\"Your Plants By WebSphere order will be shipped to:\\n\");\n msg.append(\" \" + order.getShipName() + \"\\n\");\n msg.append(\" \" + order.getShipAddr1() + \" \" + order.getShipAddr2() + \"\\n\");\n msg.append(\" \" + order.getShipCity() + \", \" + order.getShipState() + \" \" + order.getShipZip() + \"\\n\\n\");\n msg.append(\"Please save it for your records.\\n\");\n return msg.toString();\n}",
+ "code": "{\r\n\t\tUtil.debug(\"creating email message for order:\" + orderKey);\r\n\t\tStringBuffer msg = new StringBuffer();\r\n\t\tOrder order = em.find(Order.class, orderKey);\r\n\t\tmsg.append(\"Thank you for your order \" + orderKey + \".\\n\");\r\n\t\tmsg.append(\"Your Plants By WebSphere order will be shipped to:\\n\");\r\n\t\tmsg.append(\" \" + order.getShipName() + \"\\n\");\r\n\t\tmsg.append(\" \" + order.getShipAddr1() + \" \" + order.getShipAddr2() + \"\\n\");\r\n\t\tmsg.append(\" \" + order.getShipCity() + \", \" + order.getShipState() + \" \" + order.getShipZip() + \"\\n\\n\");\r\n\t\tmsg.append(\"Please save it for your records.\\n\");\r\n\t\treturn msg.toString();\r\n\t}",
"start_line": 66,
"end_line": 77,
+ "code_start_line": 66,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -23235,6 +31868,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -23257,6 +31891,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -23280,6 +31915,7 @@
},
{
"method_name": "append",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [
@@ -23302,6 +31938,7 @@
},
{
"method_name": "append",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [
@@ -23324,6 +31961,7 @@
},
{
"method_name": "append",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [
@@ -23346,6 +31984,7 @@
},
{
"method_name": "getShipName",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -23366,6 +32005,7 @@
},
{
"method_name": "append",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [
@@ -23388,6 +32028,7 @@
},
{
"method_name": "getShipAddr1",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -23408,6 +32049,7 @@
},
{
"method_name": "getShipAddr2",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -23428,6 +32070,7 @@
},
{
"method_name": "append",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [
@@ -23450,6 +32093,7 @@
},
{
"method_name": "getShipCity",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -23470,6 +32114,7 @@
},
{
"method_name": "getShipState",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -23490,6 +32135,7 @@
},
{
"method_name": "getShipZip",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -23510,6 +32156,7 @@
},
{
"method_name": "append",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [
@@ -23532,6 +32179,7 @@
},
{
"method_name": "toString",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [],
@@ -23552,6 +32200,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [],
@@ -23573,6 +32222,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "msg",
"type": "java.lang.StringBuffer",
"initializer": "new StringBuffer()",
@@ -23582,6 +32239,14 @@
"end_column": 39
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "order",
"type": "com.ibm.websphere.samples.pbw.jpa.Order",
"initializer": "em.find(Order.class, orderKey)",
@@ -23597,9 +32262,18 @@
"is_entrypoint": false
},
"createSubjectLine(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerBean.java",
"signature": "createSubjectLine(String)",
- "comment": "/**\r\n\t * Create the Subject line.\r\n\t *\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t * @return The Order number string.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Create the Subject line.\r\n\t *\r\n\t * @param orderKey\r\n\t * The order number.\r\n\t * @return The Order number string.\r\n\t ",
+ "start_line": 79,
+ "end_line": 85,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"private"
@@ -23611,12 +32285,17 @@
"type": "java.lang.String",
"name": "orderKey",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 86,
+ "end_line": 86,
+ "start_column": 35,
+ "end_column": 49
}
],
- "code": "{\n StringBuffer msg = new StringBuffer();\n msg.append(\"Your order number \" + orderKey);\n return msg.toString();\n}",
+ "code": "{\r\n\t\tStringBuffer msg = new StringBuffer();\r\n\t\tmsg.append(\"Your order number \" + orderKey);\r\n\r\n\t\treturn msg.toString();\r\n\t}",
"start_line": 86,
"end_line": 91,
+ "code_start_line": 86,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -23627,6 +32306,7 @@
"call_sites": [
{
"method_name": "append",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [
@@ -23649,6 +32329,7 @@
},
{
"method_name": "toString",
+ "comment": null,
"receiver_expr": "msg",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [],
@@ -23669,6 +32350,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.StringBuffer",
"argument_types": [],
@@ -23690,6 +32372,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "msg",
"type": "java.lang.StringBuffer",
"initializer": "new StringBuffer()",
@@ -23707,7 +32397,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 50,
@@ -23723,7 +32420,14 @@
"annotations": []
},
{
- "comment": "// public static final String MAIL_SESSION = \"java:comp/env/mail/PlantsByWebSphere\";",
+ "comment": {
+ "content": " public static final String MAIL_SESSION = \"java:comp/env/mail/PlantsByWebSphere\";",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 2,
+ "end_column": 85,
+ "is_javadoc": false
+ },
"name": null,
"type": "Session",
"start_line": 52,
@@ -23737,7 +32441,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "EntityManager",
"start_line": 55,
@@ -23751,15 +32462,203 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Provides a combination of JSF action and backing bean support for the account web page.\r\n *\r\n ",
+ "start_line": 34,
+ "end_line": 37,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": " persist the order",
+ "start_line": 117,
+ "end_line": 117,
+ "start_column": 3,
+ "end_column": 22,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * // Check the available inventory and backorder if necessary. if (shoppingCart != null) {\r\n\t\t * Inventory si; Collection items = shoppingCart.getItems(); for (Object o :\r\n\t\t * items) { si = (Inventory) o; shoppingCart.checkInventory(si); Util.debug(\r\n\t\t * \"ShoppingCart.checkInventory() - checking Inventory quantity of item: \" + si.getID()); }\r\n\t\t * }\r\n\t\t ",
+ "start_line": 135,
+ "end_line": 141,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
+ {
+ "content": " shoppingCart.setCartContents (new ShoppingCartContents());",
+ "start_line": 154,
+ "end_line": 154,
+ "start_column": 3,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": " Attempt to log in the user.",
+ "start_line": 174,
+ "end_line": 174,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": " Otherwise, no error, so continue to the correct page.",
+ "start_line": 186,
+ "end_line": 186,
+ "start_column": 3,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Error, so go back to the login page.",
+ "start_line": 179,
+ "end_line": 179,
+ "start_column": 4,
+ "end_column": 42,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.Serializable",
"javax.enterprise.context.SessionScoped",
@@ -23785,7 +32684,64 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * Provides a combination of JSF action and backing bean support for the account web page.\r\n *\r\n */",
+ "comments": [
+ {
+ "content": " persist the order",
+ "start_line": 117,
+ "end_line": 117,
+ "start_column": 3,
+ "end_column": 22,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * // Check the available inventory and backorder if necessary. if (shoppingCart != null) {\r\n\t\t * Inventory si; Collection items = shoppingCart.getItems(); for (Object o :\r\n\t\t * items) { si = (Inventory) o; shoppingCart.checkInventory(si); Util.debug(\r\n\t\t * \"ShoppingCart.checkInventory() - checking Inventory quantity of item: \" + si.getID()); }\r\n\t\t * }\r\n\t\t ",
+ "start_line": 135,
+ "end_line": 141,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
+ {
+ "content": " shoppingCart.setCartContents (new ShoppingCartContents());",
+ "start_line": 154,
+ "end_line": 154,
+ "start_column": 3,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": " Attempt to log in the user.",
+ "start_line": 174,
+ "end_line": 174,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": " Otherwise, no error, so continue to the correct page.",
+ "start_line": 186,
+ "end_line": 186,
+ "start_column": 3,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Error, so go back to the login page.",
+ "start_line": 179,
+ "end_line": 179,
+ "start_column": 4,
+ "end_column": 42,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Provides a combination of JSF action and backing bean support for the account web page.\r\n *\r\n ",
+ "start_line": 34,
+ "end_line": 37,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -23800,9 +32756,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"performAccount()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "performAccount()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -23810,9 +32766,10 @@
"thrown_exceptions": [],
"declaration": "public String performAccount()",
"parameters": [],
- "code": "{\n if (customer == null || loginInfo == null) {\n checkingOut = false;\n loginInfo = new LoginInfo();\n register = false;\n updating = true;\n loginInfo.setMessage(\"You must log in first.\");\n return AccountBean.ACTION_LOGIN;\n } else {\n return AccountBean.ACTION_ACCOUNT;\n }\n}",
+ "code": "{\r\n\t\tif (customer == null || loginInfo == null) {\r\n\t\t\tcheckingOut = false;\r\n\t\t\tloginInfo = new LoginInfo();\r\n\t\t\tregister = false;\r\n\t\t\tupdating = true;\r\n\r\n\t\t\tloginInfo.setMessage(\"You must log in first.\");\r\n\r\n\t\t\treturn AccountBean.ACTION_LOGIN;\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\treturn AccountBean.ACTION_ACCOUNT;\r\n\t\t}\r\n\t}",
"start_line": 67,
"end_line": 82,
+ "code_start_line": 67,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -23831,6 +32788,7 @@
"call_sites": [
{
"method_name": "setMessage",
+ "comment": null,
"receiver_expr": "loginInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [
@@ -23853,6 +32811,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [],
@@ -23879,9 +32838,34 @@
"is_entrypoint": false
},
"performLoginComplete()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "performLoginComplete()",
- "comment": "",
+ "comments": [
+ {
+ "content": " Attempt to log in the user.",
+ "start_line": 174,
+ "end_line": 174,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": " Otherwise, no error, so continue to the correct page.",
+ "start_line": 186,
+ "end_line": 186,
+ "start_column": 3,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Error, so go back to the login page.",
+ "start_line": 179,
+ "end_line": 179,
+ "start_column": 4,
+ "end_column": 42,
+ "is_javadoc": false
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -23889,9 +32873,10 @@
"thrown_exceptions": [],
"declaration": "public String performLoginComplete()",
"parameters": [],
- "code": "{\n String message;\n // Attempt to log in the user.\n message = login.verifyUserAndPassword(loginInfo.getEmail(), loginInfo.getPassword());\n if (message != null) {\n // Error, so go back to the login page.\n loginInfo.setMessage(message);\n return AccountBean.ACTION_LOGIN;\n }\n // Otherwise, no error, so continue to the correct page.\n customer = login.getCustomer(loginInfo.getEmail());\n if (isCheckingOut()) {\n return performOrderInfo();\n }\n if (isUpdating()) {\n return performAccount();\n }\n return AccountBean.ACTION_PROMO;\n}",
+ "code": "{\r\n\t\tString message;\r\n\r\n\t\t// Attempt to log in the user.\r\n\r\n\t\tmessage = login.verifyUserAndPassword(loginInfo.getEmail(), loginInfo.getPassword());\r\n\r\n\t\tif (message != null) {\r\n\t\t\t// Error, so go back to the login page.\r\n\r\n\t\t\tloginInfo.setMessage(message);\r\n\r\n\t\t\treturn AccountBean.ACTION_LOGIN;\r\n\t\t}\r\n\r\n\t\t// Otherwise, no error, so continue to the correct page.\r\n\r\n\t\tcustomer = login.getCustomer(loginInfo.getEmail());\r\n\r\n\t\tif (isCheckingOut()) {\r\n\t\t\treturn performOrderInfo();\r\n\t\t}\r\n\r\n\t\tif (isUpdating()) {\r\n\t\t\treturn performAccount();\r\n\t\t}\r\n\r\n\t\treturn AccountBean.ACTION_PROMO;\r\n\t}",
"start_line": 171,
"end_line": 199,
+ "code_start_line": 171,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -23908,6 +32893,7 @@
"call_sites": [
{
"method_name": "verifyUserAndPassword",
+ "comment": null,
"receiver_expr": "login",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"argument_types": [
@@ -23931,6 +32917,7 @@
},
{
"method_name": "getEmail",
+ "comment": null,
"receiver_expr": "loginInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [],
@@ -23951,6 +32938,7 @@
},
{
"method_name": "getPassword",
+ "comment": null,
"receiver_expr": "loginInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [],
@@ -23971,6 +32959,7 @@
},
{
"method_name": "setMessage",
+ "comment": null,
"receiver_expr": "loginInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [
@@ -23993,6 +32982,7 @@
},
{
"method_name": "getCustomer",
+ "comment": null,
"receiver_expr": "login",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"argument_types": [
@@ -24015,6 +33005,7 @@
},
{
"method_name": "getEmail",
+ "comment": null,
"receiver_expr": "loginInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [],
@@ -24035,6 +33026,7 @@
},
{
"method_name": "isCheckingOut",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -24055,6 +33047,7 @@
},
{
"method_name": "performOrderInfo",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -24075,6 +33068,7 @@
},
{
"method_name": "isUpdating",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -24095,6 +33089,7 @@
},
{
"method_name": "performAccount",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -24116,6 +33111,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "message",
"type": "java.lang.String",
"initializer": "",
@@ -24131,9 +33134,9 @@
"is_entrypoint": false
},
"performCheckoutFinal()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "performCheckoutFinal()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -24141,9 +33144,10 @@
"thrown_exceptions": [],
"declaration": "public String performCheckoutFinal()",
"parameters": [],
- "code": "{\n FacesContext context = FacesContext.getCurrentInstance();\n Application app = context.getApplication();\n ShoppingBean shopping = (ShoppingBean) app.createValueBinding(\"#{shopping}\").getValue(context);\n shopping.setShippingCost(Util.getShippingMethodPrice(orderInfo.getShippingMethod()));\n return AccountBean.ACTION_CHECKOUT_FINAL;\n}",
+ "code": "{\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tApplication app = context.getApplication();\r\n\t\tShoppingBean shopping = (ShoppingBean) app.createValueBinding(\"#{shopping}\").getValue(context);\r\n\r\n\t\tshopping.setShippingCost(Util.getShippingMethodPrice(orderInfo.getShippingMethod()));\r\n\r\n\t\treturn AccountBean.ACTION_CHECKOUT_FINAL;\r\n\t}",
"start_line": 102,
"end_line": 110,
+ "code_start_line": 102,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -24160,6 +33164,7 @@
"call_sites": [
{
"method_name": "getCurrentInstance",
+ "comment": null,
"receiver_expr": "FacesContext",
"receiver_type": "",
"argument_types": [],
@@ -24180,6 +33185,7 @@
},
{
"method_name": "getApplication",
+ "comment": null,
"receiver_expr": "context",
"receiver_type": "",
"argument_types": [],
@@ -24200,6 +33206,7 @@
},
{
"method_name": "getValue",
+ "comment": null,
"receiver_expr": "app.createValueBinding(\"#{shopping}\")",
"receiver_type": "",
"argument_types": [
@@ -24222,6 +33229,7 @@
},
{
"method_name": "createValueBinding",
+ "comment": null,
"receiver_expr": "app",
"receiver_type": "",
"argument_types": [
@@ -24244,6 +33252,7 @@
},
{
"method_name": "setShippingCost",
+ "comment": null,
"receiver_expr": "shopping",
"receiver_type": "com.ibm.websphere.samples.pbw.war.ShoppingBean",
"argument_types": [
@@ -24266,6 +33275,7 @@
},
{
"method_name": "getShippingMethodPrice",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -24288,6 +33298,7 @@
},
{
"method_name": "getShippingMethod",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24309,6 +33320,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "context",
"type": "FacesContext",
"initializer": "FacesContext.getCurrentInstance()",
@@ -24318,6 +33337,14 @@
"end_column": 58
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "app",
"type": "Application",
"initializer": "context.getApplication()",
@@ -24327,6 +33354,14 @@
"end_column": 44
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shopping",
"type": "com.ibm.websphere.samples.pbw.war.ShoppingBean",
"initializer": "(ShoppingBean) app.createValueBinding(\"#{shopping}\").getValue(context)",
@@ -24342,9 +33377,34 @@
"is_entrypoint": false
},
"performCompleteCheckout()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "performCompleteCheckout()",
- "comment": "",
+ "comments": [
+ {
+ "content": " persist the order",
+ "start_line": 117,
+ "end_line": 117,
+ "start_column": 3,
+ "end_column": 22,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * // Check the available inventory and backorder if necessary. if (shoppingCart != null) {\r\n\t\t * Inventory si; Collection items = shoppingCart.getItems(); for (Object o :\r\n\t\t * items) { si = (Inventory) o; shoppingCart.checkInventory(si); Util.debug(\r\n\t\t * \"ShoppingCart.checkInventory() - checking Inventory quantity of item: \" + si.getID()); }\r\n\t\t * }\r\n\t\t ",
+ "start_line": 135,
+ "end_line": 141,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": false
+ },
+ {
+ "content": " shoppingCart.setCartContents (new ShoppingCartContents());",
+ "start_line": 154,
+ "end_line": 154,
+ "start_column": 3,
+ "end_column": 63,
+ "is_javadoc": false
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -24352,9 +33412,10 @@
"thrown_exceptions": [],
"declaration": "public String performCompleteCheckout()",
"parameters": [],
- "code": "{\n FacesContext context = FacesContext.getCurrentInstance();\n Application app = context.getApplication();\n app.createValueBinding(\"#{shopping}\").getValue(context);\n // persist the order\n OrderInfo oi = new OrderInfo(shoppingCart.createOrder(customer.getCustomerID(), orderInfo.getBillName(), orderInfo.getBillAddr1(), orderInfo.getBillAddr2(), orderInfo.getBillCity(), orderInfo.getBillState(), orderInfo.getBillZip(), orderInfo.getBillPhone(), orderInfo.getShipName(), orderInfo.getShipAddr1(), orderInfo.getShipAddr2(), orderInfo.getShipCity(), orderInfo.getShipState(), orderInfo.getShipZip(), orderInfo.getShipPhone(), orderInfo.getCardName(), orderInfo.getCardNum(), orderInfo.getCardExpMonth(), orderInfo.getCardExpYear(), orderInfo.getCardholderName(), orderInfo.getShippingMethod(), shoppingCart.getItems()));\n lastOrderNum = oi.getID();\n Util.debug(\"Account.performCompleteCheckout: order id =\" + orderInfo);\n /*\n\t\t * // Check the available inventory and backorder if necessary. if (shoppingCart != null) {\n\t\t * Inventory si; Collection items = shoppingCart.getItems(); for (Object o :\n\t\t * items) { si = (Inventory) o; shoppingCart.checkInventory(si); Util.debug(\n\t\t * \"ShoppingCart.checkInventory() - checking Inventory quantity of item: \" + si.getID()); }\n\t\t * }\n\t\t */\n try {\n mailer.createAndSendMail(customer, oi.getID());\n } catch (MailerAppException e) {\n System.out.println(\"MailerAppException:\" + e);\n e.printStackTrace();\n } catch (Exception e) {\n System.out.println(\"Exception during create and send mail :\" + e);\n e.printStackTrace();\n }\n orderInfo = null;\n // shoppingCart.setCartContents (new ShoppingCartContents());\n shoppingCart.removeAllItems();\n return AccountBean.ACTION_ORDERDONE;\n}",
+ "code": "{\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tApplication app = context.getApplication();\r\n\t\tapp.createValueBinding(\"#{shopping}\").getValue(context);\r\n\r\n\t\t// persist the order\r\n\t\tOrderInfo oi = new OrderInfo(shoppingCart\r\n\t\t\t\t.createOrder(customer.getCustomerID(), orderInfo.getBillName(), orderInfo.getBillAddr1(), orderInfo\r\n\t\t\t\t\t\t.getBillAddr2(), orderInfo.getBillCity(), orderInfo.getBillState(), orderInfo\r\n\t\t\t\t\t\t\t\t.getBillZip(), orderInfo.getBillPhone(), orderInfo.getShipName(), orderInfo\r\n\t\t\t\t\t\t\t\t\t\t.getShipAddr1(), orderInfo.getShipAddr2(), orderInfo.getShipCity(), orderInfo\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getShipState(), orderInfo.getShipZip(), orderInfo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getShipPhone(), orderInfo.getCardName(), orderInfo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCardNum(), orderInfo.getCardExpMonth(), orderInfo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCardExpYear(), orderInfo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCardholderName(), orderInfo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getShippingMethod(), shoppingCart\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItems()));\r\n\r\n\t\tlastOrderNum = oi.getID();\r\n\r\n\t\tUtil.debug(\"Account.performCompleteCheckout: order id =\" + orderInfo);\r\n\r\n\t\t/*\r\n\t\t * // Check the available inventory and backorder if necessary. if (shoppingCart != null) {\r\n\t\t * Inventory si; Collection items = shoppingCart.getItems(); for (Object o :\r\n\t\t * items) { si = (Inventory) o; shoppingCart.checkInventory(si); Util.debug(\r\n\t\t * \"ShoppingCart.checkInventory() - checking Inventory quantity of item: \" + si.getID()); }\r\n\t\t * }\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tmailer.createAndSendMail(customer, oi.getID());\r\n\t\t} catch (MailerAppException e) {\r\n\t\t\tSystem.out.println(\"MailerAppException:\" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Exception during create and send mail :\" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\torderInfo = null;\r\n\r\n\t\t// shoppingCart.setCartContents (new ShoppingCartContents());\r\n\t\tshoppingCart.removeAllItems();\r\n\r\n\t\treturn AccountBean.ACTION_ORDERDONE;\r\n\t}",
"start_line": 112,
"end_line": 158,
+ "code_start_line": 112,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -24377,6 +33438,7 @@
"call_sites": [
{
"method_name": "getCurrentInstance",
+ "comment": null,
"receiver_expr": "FacesContext",
"receiver_type": "",
"argument_types": [],
@@ -24397,6 +33459,7 @@
},
{
"method_name": "getApplication",
+ "comment": null,
"receiver_expr": "context",
"receiver_type": "",
"argument_types": [],
@@ -24417,6 +33480,7 @@
},
{
"method_name": "getValue",
+ "comment": null,
"receiver_expr": "app.createValueBinding(\"#{shopping}\")",
"receiver_type": "",
"argument_types": [
@@ -24439,6 +33503,7 @@
},
{
"method_name": "createValueBinding",
+ "comment": null,
"receiver_expr": "app",
"receiver_type": "",
"argument_types": [
@@ -24461,6 +33526,7 @@
},
{
"method_name": "createOrder",
+ "comment": null,
"receiver_expr": "shoppingCart",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean",
"argument_types": [
@@ -24504,6 +33570,7 @@
},
{
"method_name": "getCustomerID",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -24524,6 +33591,7 @@
},
{
"method_name": "getBillName",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24544,6 +33612,7 @@
},
{
"method_name": "getBillAddr1",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24564,6 +33633,7 @@
},
{
"method_name": "getBillAddr2",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24584,6 +33654,7 @@
},
{
"method_name": "getBillCity",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24604,6 +33675,7 @@
},
{
"method_name": "getBillState",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24624,6 +33696,7 @@
},
{
"method_name": "getBillZip",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24644,6 +33717,7 @@
},
{
"method_name": "getBillPhone",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24664,6 +33738,7 @@
},
{
"method_name": "getShipName",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24684,6 +33759,7 @@
},
{
"method_name": "getShipAddr1",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24704,6 +33780,7 @@
},
{
"method_name": "getShipAddr2",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24724,6 +33801,7 @@
},
{
"method_name": "getShipCity",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24744,6 +33822,7 @@
},
{
"method_name": "getShipState",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24764,6 +33843,7 @@
},
{
"method_name": "getShipZip",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24784,6 +33864,7 @@
},
{
"method_name": "getShipPhone",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24804,6 +33885,7 @@
},
{
"method_name": "getCardName",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24824,6 +33906,7 @@
},
{
"method_name": "getCardNum",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24844,6 +33927,7 @@
},
{
"method_name": "getCardExpMonth",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24864,6 +33948,7 @@
},
{
"method_name": "getCardExpYear",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24884,6 +33969,7 @@
},
{
"method_name": "getCardholderName",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24904,6 +33990,7 @@
},
{
"method_name": "getShippingMethod",
+ "comment": null,
"receiver_expr": "orderInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24924,6 +34011,7 @@
},
{
"method_name": "getItems",
+ "comment": null,
"receiver_expr": "shoppingCart",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean",
"argument_types": [],
@@ -24944,6 +34032,7 @@
},
{
"method_name": "getID",
+ "comment": null,
"receiver_expr": "oi",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -24964,6 +34053,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -24986,6 +34076,7 @@
},
{
"method_name": "createAndSendMail",
+ "comment": null,
"receiver_expr": "mailer",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.MailerBean",
"argument_types": [
@@ -25009,6 +34100,7 @@
},
{
"method_name": "getID",
+ "comment": null,
"receiver_expr": "oi",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [],
@@ -25029,6 +34121,7 @@
},
{
"method_name": "println",
+ "comment": null,
"receiver_expr": "System.out",
"receiver_type": "java.io.PrintStream",
"argument_types": [
@@ -25051,6 +34144,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.MailerAppException",
"argument_types": [],
@@ -25071,6 +34165,7 @@
},
{
"method_name": "println",
+ "comment": null,
"receiver_expr": "System.out",
"receiver_type": "java.io.PrintStream",
"argument_types": [
@@ -25093,6 +34188,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -25113,6 +34209,14 @@
},
{
"method_name": "removeAllItems",
+ "comment": {
+ "content": " shoppingCart.setCartContents (new ShoppingCartContents());",
+ "start_line": 154,
+ "end_line": 154,
+ "start_column": 3,
+ "end_column": 63,
+ "is_javadoc": false
+ },
"receiver_expr": "shoppingCart",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean",
"argument_types": [],
@@ -25133,6 +34237,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [
@@ -25156,6 +34261,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "context",
"type": "FacesContext",
"initializer": "FacesContext.getCurrentInstance()",
@@ -25165,6 +34278,14 @@
"end_column": 58
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "app",
"type": "Application",
"initializer": "context.getApplication()",
@@ -25174,6 +34295,14 @@
"end_column": 44
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "oi",
"type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"initializer": "new OrderInfo(shoppingCart.createOrder(customer.getCustomerID(), orderInfo.getBillName(), orderInfo.getBillAddr1(), orderInfo.getBillAddr2(), orderInfo.getBillCity(), orderInfo.getBillState(), orderInfo.getBillZip(), orderInfo.getBillPhone(), orderInfo.getShipName(), orderInfo.getShipAddr1(), orderInfo.getShipAddr2(), orderInfo.getShipCity(), orderInfo.getShipState(), orderInfo.getShipZip(), orderInfo.getShipPhone(), orderInfo.getCardName(), orderInfo.getCardNum(), orderInfo.getCardExpMonth(), orderInfo.getCardExpYear(), orderInfo.getCardholderName(), orderInfo.getShippingMethod(), shoppingCart.getItems()))",
@@ -25189,9 +34318,9 @@
"is_entrypoint": false
},
"isCheckingOut()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "isCheckingOut()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -25199,9 +34328,10 @@
"thrown_exceptions": [],
"declaration": "public boolean isCheckingOut()",
"parameters": [],
- "code": "{\n return checkingOut;\n}",
+ "code": "{\r\n\t\treturn checkingOut;\r\n\t}",
"start_line": 249,
"end_line": 251,
+ "code_start_line": 249,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -25217,9 +34347,9 @@
"is_entrypoint": false
},
"getLoginInfo()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "getLoginInfo()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -25227,9 +34357,10 @@
"thrown_exceptions": [],
"declaration": "public LoginInfo getLoginInfo()",
"parameters": [],
- "code": "{\n return loginInfo;\n}",
+ "code": "{\r\n\t\treturn loginInfo;\r\n\t}",
"start_line": 241,
"end_line": 243,
+ "code_start_line": 241,
"return_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"is_implicit": false,
"is_constructor": false,
@@ -25245,9 +34376,9 @@
"is_entrypoint": false
},
"performLogin()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "performLogin()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -25255,9 +34386,10 @@
"thrown_exceptions": [],
"declaration": "public String performLogin()",
"parameters": [],
- "code": "{\n checkingOut = false;\n loginInfo = new LoginInfo();\n register = false;\n updating = false;\n loginInfo.setMessage(\"\");\n return AccountBean.ACTION_LOGIN;\n}",
+ "code": "{\r\n\t\tcheckingOut = false;\r\n\t\tloginInfo = new LoginInfo();\r\n\t\tregister = false;\r\n\t\tupdating = false;\r\n\r\n\t\tloginInfo.setMessage(\"\");\r\n\r\n\t\treturn AccountBean.ACTION_LOGIN;\r\n\t}",
"start_line": 160,
"end_line": 169,
+ "code_start_line": 160,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -25274,6 +34406,7 @@
"call_sites": [
{
"method_name": "setMessage",
+ "comment": null,
"receiver_expr": "loginInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [
@@ -25296,6 +34429,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [],
@@ -25322,9 +34456,9 @@
"is_entrypoint": false
},
"getLastOrderNum()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "getLastOrderNum()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -25332,9 +34466,10 @@
"thrown_exceptions": [],
"declaration": "public String getLastOrderNum()",
"parameters": [],
- "code": "{\n return lastOrderNum;\n}",
+ "code": "{\r\n\t\treturn lastOrderNum;\r\n\t}",
"start_line": 237,
"end_line": 239,
+ "code_start_line": 237,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -25350,9 +34485,9 @@
"is_entrypoint": false
},
"performOrderInfo()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "performOrderInfo()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -25360,9 +34495,10 @@
"thrown_exceptions": [],
"declaration": "public String performOrderInfo()",
"parameters": [],
- "code": "{\n if (customer == null) {\n checkingOut = true;\n loginInfo = new LoginInfo();\n register = false;\n updating = false;\n loginInfo.setMessage(\"You must log in first.\");\n return AccountBean.ACTION_LOGIN;\n } else {\n if (orderInfo == null) {\n orderInfo = new OrderInfo(customer.getFirstName() + \" \" + customer.getLastName(), customer.getAddr1(), customer.getAddr2(), customer.getAddrCity(), customer.getAddrState(), customer.getAddrZip(), customer.getPhone(), \"\", \"\", \"\", \"\", \"\", \"\", \"\", 0, \"\" + (orderNum++));\n }\n return AccountBean.ACTION_ORDERINFO;\n }\n}",
+ "code": "{\r\n\t\tif (customer == null) {\r\n\t\t\tcheckingOut = true;\r\n\t\t\tloginInfo = new LoginInfo();\r\n\t\t\tregister = false;\r\n\t\t\tupdating = false;\r\n\r\n\t\t\tloginInfo.setMessage(\"You must log in first.\");\r\n\r\n\t\t\treturn AccountBean.ACTION_LOGIN;\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tif (orderInfo == null) {\r\n\t\t\t\torderInfo = new OrderInfo(customer.getFirstName() + \" \" + customer.getLastName(), customer.getAddr1(),\r\n\t\t\t\t\t\tcustomer.getAddr2(), customer.getAddrCity(), customer.getAddrState(), customer.getAddrZip(),\r\n\t\t\t\t\t\tcustomer.getPhone(), \"\", \"\", \"\", \"\", \"\", \"\", \"\", 0, \"\" + (orderNum++));\r\n\t\t\t}\r\n\r\n\t\t\treturn AccountBean.ACTION_ORDERINFO;\r\n\t\t}\r\n\t}",
"start_line": 201,
"end_line": 222,
+ "code_start_line": 201,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -25383,6 +34519,7 @@
"call_sites": [
{
"method_name": "setMessage",
+ "comment": null,
"receiver_expr": "loginInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [
@@ -25405,6 +34542,7 @@
},
{
"method_name": "getFirstName",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25425,6 +34563,7 @@
},
{
"method_name": "getLastName",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25445,6 +34584,7 @@
},
{
"method_name": "getAddr1",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25465,6 +34605,7 @@
},
{
"method_name": "getAddr2",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25485,6 +34626,7 @@
},
{
"method_name": "getAddrCity",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25505,6 +34647,7 @@
},
{
"method_name": "getAddrState",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25525,6 +34668,7 @@
},
{
"method_name": "getAddrZip",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25545,6 +34689,7 @@
},
{
"method_name": "getPhone",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25565,6 +34710,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [],
@@ -25585,6 +34731,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"argument_types": [
@@ -25628,9 +34775,9 @@
"is_entrypoint": false
},
"getCustomer()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "getCustomer()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -25638,9 +34785,10 @@
"thrown_exceptions": [],
"declaration": "public Customer getCustomer()",
"parameters": [],
- "code": "{\n return (isRegister() ? newCustomer : customer);\n}",
+ "code": "{\r\n\t\treturn (isRegister() ? newCustomer : customer);\r\n\t}",
"start_line": 233,
"end_line": 235,
+ "code_start_line": 233,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"is_implicit": false,
"is_constructor": false,
@@ -25652,6 +34800,7 @@
"call_sites": [
{
"method_name": "isRegister",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -25678,9 +34827,9 @@
"is_entrypoint": false
},
"performAccountUpdate()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "performAccountUpdate()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -25688,9 +34837,10 @@
"thrown_exceptions": [],
"declaration": "public String performAccountUpdate()",
"parameters": [],
- "code": "{\n if (register) {\n customer = login.createCustomer(loginInfo.getEmail(), loginInfo.getPassword(), newCustomer.getFirstName(), newCustomer.getLastName(), newCustomer.getAddr1(), newCustomer.getAddr2(), newCustomer.getAddrCity(), newCustomer.getAddrState(), newCustomer.getAddrZip(), newCustomer.getPhone());\n register = false;\n } else {\n customer = login.updateUser(customer.getCustomerID(), customer.getFirstName(), customer.getLastName(), customer.getAddr1(), customer.getAddr2(), customer.getAddrCity(), customer.getAddrState(), customer.getAddrZip(), customer.getPhone());\n }\n return AccountBean.ACTION_PROMO;\n}",
+ "code": "{\r\n\t\tif (register) {\r\n\t\t\tcustomer = login.createCustomer(loginInfo.getEmail(), loginInfo.getPassword(), newCustomer\r\n\t\t\t\t\t.getFirstName(), newCustomer.getLastName(), newCustomer.getAddr1(), newCustomer\r\n\t\t\t\t\t\t\t.getAddr2(), newCustomer.getAddrCity(), newCustomer\r\n\t\t\t\t\t\t\t\t\t.getAddrState(), newCustomer.getAddrZip(), newCustomer.getPhone());\r\n\t\t\tregister = false;\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tcustomer = login.updateUser(customer.getCustomerID(), customer.getFirstName(), customer\r\n\t\t\t\t\t.getLastName(), customer.getAddr1(), customer.getAddr2(), customer\r\n\t\t\t\t\t\t\t.getAddrCity(), customer.getAddrState(), customer.getAddrZip(), customer.getPhone());\r\n\t\t}\r\n\r\n\t\treturn AccountBean.ACTION_PROMO;\r\n\t}",
"start_line": 84,
"end_line": 100,
+ "code_start_line": 84,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -25708,6 +34858,7 @@
"call_sites": [
{
"method_name": "createCustomer",
+ "comment": null,
"receiver_expr": "login",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"argument_types": [
@@ -25739,6 +34890,7 @@
},
{
"method_name": "getEmail",
+ "comment": null,
"receiver_expr": "loginInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [],
@@ -25759,6 +34911,7 @@
},
{
"method_name": "getPassword",
+ "comment": null,
"receiver_expr": "loginInfo",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [],
@@ -25779,6 +34932,7 @@
},
{
"method_name": "getFirstName",
+ "comment": null,
"receiver_expr": "newCustomer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25799,6 +34953,7 @@
},
{
"method_name": "getLastName",
+ "comment": null,
"receiver_expr": "newCustomer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25819,6 +34974,7 @@
},
{
"method_name": "getAddr1",
+ "comment": null,
"receiver_expr": "newCustomer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25839,6 +34995,7 @@
},
{
"method_name": "getAddr2",
+ "comment": null,
"receiver_expr": "newCustomer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25859,6 +35016,7 @@
},
{
"method_name": "getAddrCity",
+ "comment": null,
"receiver_expr": "newCustomer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25879,6 +35037,7 @@
},
{
"method_name": "getAddrState",
+ "comment": null,
"receiver_expr": "newCustomer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25899,6 +35058,7 @@
},
{
"method_name": "getAddrZip",
+ "comment": null,
"receiver_expr": "newCustomer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25919,6 +35079,7 @@
},
{
"method_name": "getPhone",
+ "comment": null,
"receiver_expr": "newCustomer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25939,6 +35100,7 @@
},
{
"method_name": "updateUser",
+ "comment": null,
"receiver_expr": "login",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"argument_types": [
@@ -25969,6 +35131,7 @@
},
{
"method_name": "getCustomerID",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -25989,6 +35152,7 @@
},
{
"method_name": "getFirstName",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -26009,6 +35173,7 @@
},
{
"method_name": "getLastName",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -26029,6 +35194,7 @@
},
{
"method_name": "getAddr1",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -26049,6 +35215,7 @@
},
{
"method_name": "getAddr2",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -26069,6 +35236,7 @@
},
{
"method_name": "getAddrCity",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -26089,6 +35257,7 @@
},
{
"method_name": "getAddrState",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -26109,6 +35278,7 @@
},
{
"method_name": "getAddrZip",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -26129,6 +35299,7 @@
},
{
"method_name": "getPhone",
+ "comment": null,
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -26155,9 +35326,9 @@
"is_entrypoint": false
},
"isRegister()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "isRegister()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -26165,9 +35336,10 @@
"thrown_exceptions": [],
"declaration": "public boolean isRegister()",
"parameters": [],
- "code": "{\n return register;\n}",
+ "code": "{\r\n\t\treturn register;\r\n\t}",
"start_line": 253,
"end_line": 255,
+ "code_start_line": 253,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -26183,9 +35355,9 @@
"is_entrypoint": false
},
"isUpdating()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "isUpdating()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -26193,9 +35365,10 @@
"thrown_exceptions": [],
"declaration": "public boolean isUpdating()",
"parameters": [],
- "code": "{\n return updating;\n}",
+ "code": "{\r\n\t\treturn updating;\r\n\t}",
"start_line": 257,
"end_line": 259,
+ "code_start_line": 257,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -26211,9 +35384,9 @@
"is_entrypoint": false
},
"getOrderInfo()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "getOrderInfo()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -26221,9 +35394,10 @@
"thrown_exceptions": [],
"declaration": "public OrderInfo getOrderInfo()",
"parameters": [],
- "code": "{\n return orderInfo;\n}",
+ "code": "{\r\n\t\treturn orderInfo;\r\n\t}",
"start_line": 245,
"end_line": 247,
+ "code_start_line": 245,
"return_type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"is_implicit": false,
"is_constructor": false,
@@ -26239,9 +35413,9 @@
"is_entrypoint": false
},
"performRegister()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AccountBean.java",
"signature": "performRegister()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -26249,9 +35423,10 @@
"thrown_exceptions": [],
"declaration": "public String performRegister()",
"parameters": [],
- "code": "{\n loginInfo = new LoginInfo();\n newCustomer = new Customer(\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\");\n register = true;\n updating = false;\n return AccountBean.ACTION_REGISTER;\n}",
+ "code": "{\r\n\t\tloginInfo = new LoginInfo();\r\n\t\tnewCustomer = new Customer(\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\");\r\n\t\tregister = true;\r\n\t\tupdating = false;\r\n\r\n\t\treturn AccountBean.ACTION_REGISTER;\r\n\t}",
"start_line": 224,
"end_line": 231,
+ "code_start_line": 224,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -26268,6 +35443,7 @@
"call_sites": [
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"argument_types": [],
@@ -26288,6 +35464,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -26327,7 +35504,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 41,
@@ -26343,7 +35527,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 42,
@@ -26359,7 +35550,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 43,
@@ -26375,7 +35573,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 44,
@@ -26391,7 +35596,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 45,
@@ -26407,7 +35619,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 46,
@@ -26423,7 +35642,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 47,
@@ -26439,7 +35665,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 48,
@@ -26455,7 +35688,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"start_line": 50,
@@ -26471,7 +35711,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.MailerBean",
"start_line": 52,
@@ -26487,7 +35734,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean",
"start_line": 54,
@@ -26503,7 +35757,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "boolean",
"start_line": 57,
@@ -26517,7 +35778,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"start_line": 58,
@@ -26531,7 +35799,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 59,
@@ -26545,7 +35820,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.war.LoginInfo",
"start_line": 60,
@@ -26559,7 +35841,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"start_line": 61,
@@ -26573,7 +35862,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.war.OrderInfo",
"start_line": 62,
@@ -26587,7 +35883,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "int",
"start_line": 63,
@@ -26601,7 +35904,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "boolean",
"start_line": 64,
@@ -26615,7 +35925,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "boolean",
"start_line": 65,
@@ -26629,15 +35946,379 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2003,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Servlet to handle Administration actions\r\n ",
+ "start_line": 45,
+ "end_line": 47,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @see javax.servlet.Servlet#init(ServletConfig)\r\n\t ",
+ "start_line": 68,
+ "end_line": 70,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method requestDispatch.\r\n\t * \r\n\t * @param ctx\r\n\t * @param req\r\n\t * @param resp\r\n\t * @param page\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 364,
+ "end_line": 373,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 51,
+ "end_line": 53,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Servlet initialization.\r\n\t ",
+ "start_line": 71,
+ "end_line": 73,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Uncomment the following to generated debug code.",
+ "start_line": 76,
+ "end_line": 76,
+ "start_column": 3,
+ "end_column": 53,
+ "is_javadoc": false
+ },
+ {
+ "content": " Util.setDebug(true);",
+ "start_line": 77,
+ "end_line": 77,
+ "start_column": 3,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param req\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param resp\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 81,
+ "end_line": 88,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param req\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param resp\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 93,
+ "end_line": 100,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method performTask.\r\n\t * \r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 105,
+ "end_line": 112,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Invalid Admin",
+ "start_line": 118,
+ "end_line": 118,
+ "start_column": 4,
+ "end_column": 19,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param location_url\r\n\t * @return supplierInfo\r\n\t ",
+ "start_line": 130,
+ "end_line": 140,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Only retrieving info for 1 supplier.",
+ "start_line": 149,
+ "end_line": 149,
+ "start_column": 3,
+ "end_column": 41,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 159,
+ "end_line": 164,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Get supplier info",
+ "start_line": 175,
+ "end_line": 175,
+ "start_column": 4,
+ "end_column": 23,
+ "is_javadoc": false
+ },
+ {
+ "content": " Unknown Supplier Config Admin Action so go back to the",
+ "start_line": 195,
+ "end_line": 195,
+ "start_column": 4,
+ "end_column": 60,
+ "is_javadoc": false
+ },
+ {
+ "content": " Administration home page",
+ "start_line": 196,
+ "end_line": 196,
+ "start_column": 4,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 203,
+ "end_line": 208,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method performBackOrder.\r\n\t * \r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 215,
+ "end_line": 222,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Update the BackOrder status",
+ "start_line": 246,
+ "end_line": 246,
+ "start_column": 7,
+ "end_column": 36,
+ "is_javadoc": false
+ },
+ {
+ "content": " Unknown Backup Admin Action so go back to the Administration home",
+ "start_line": 294,
+ "end_line": 294,
+ "start_column": 4,
+ "end_column": 71,
+ "is_javadoc": false
+ },
+ {
+ "content": " page",
+ "start_line": 295,
+ "end_line": 295,
+ "start_column": 4,
+ "end_column": 10,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method getBackOrders.\r\n\t * \r\n\t * @param session\r\n\t ",
+ "start_line": 300,
+ "end_line": 304,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Get the list of back order items.",
+ "start_line": 307,
+ "end_line": 307,
+ "start_column": 4,
+ "end_column": 39,
+ "is_javadoc": false
+ },
+ {
+ "content": " Get the inventory quantity and name for the back order item",
+ "start_line": 321,
+ "end_line": 321,
+ "start_column": 5,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " information.",
+ "start_line": 322,
+ "end_line": 322,
+ "start_column": 5,
+ "end_column": 19,
+ "is_javadoc": false
+ },
+ {
+ "content": " Don't include backorders that have been completed.",
+ "start_line": 328,
+ "end_line": 328,
+ "start_column": 5,
+ "end_column": 57,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method sendRedirect.\r\n\t * \r\n\t * @param resp\r\n\t * @param page\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 352,
+ "end_line": 359,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Request dispatch\r\n\t ",
+ "start_line": 374,
+ "end_line": 376,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.IOException",
"java.util.ArrayList",
@@ -26676,7 +36357,240 @@
"extends_list": [
"HttpServlet"
],
- "comment": "/**\r\n * Servlet to handle Administration actions\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * @see javax.servlet.Servlet#init(ServletConfig)\r\n\t ",
+ "start_line": 68,
+ "end_line": 70,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method requestDispatch.\r\n\t * \r\n\t * @param ctx\r\n\t * @param req\r\n\t * @param resp\r\n\t * @param page\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 364,
+ "end_line": 373,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 51,
+ "end_line": 53,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Servlet initialization.\r\n\t ",
+ "start_line": 71,
+ "end_line": 73,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Uncomment the following to generated debug code.",
+ "start_line": 76,
+ "end_line": 76,
+ "start_column": 3,
+ "end_column": 53,
+ "is_javadoc": false
+ },
+ {
+ "content": " Util.setDebug(true);",
+ "start_line": 77,
+ "end_line": 77,
+ "start_column": 3,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param req\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param resp\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 81,
+ "end_line": 88,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param req\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param resp\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 93,
+ "end_line": 100,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method performTask.\r\n\t * \r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 105,
+ "end_line": 112,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Invalid Admin",
+ "start_line": 118,
+ "end_line": 118,
+ "start_column": 4,
+ "end_column": 19,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param location_url\r\n\t * @return supplierInfo\r\n\t ",
+ "start_line": 130,
+ "end_line": 140,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Only retrieving info for 1 supplier.",
+ "start_line": 149,
+ "end_line": 149,
+ "start_column": 3,
+ "end_column": 41,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 159,
+ "end_line": 164,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Get supplier info",
+ "start_line": 175,
+ "end_line": 175,
+ "start_column": 4,
+ "end_column": 23,
+ "is_javadoc": false
+ },
+ {
+ "content": " Unknown Supplier Config Admin Action so go back to the",
+ "start_line": 195,
+ "end_line": 195,
+ "start_column": 4,
+ "end_column": 60,
+ "is_javadoc": false
+ },
+ {
+ "content": " Administration home page",
+ "start_line": 196,
+ "end_line": 196,
+ "start_column": 4,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 203,
+ "end_line": 208,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method performBackOrder.\r\n\t * \r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 215,
+ "end_line": 222,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Update the BackOrder status",
+ "start_line": 246,
+ "end_line": 246,
+ "start_column": 7,
+ "end_column": 36,
+ "is_javadoc": false
+ },
+ {
+ "content": " Unknown Backup Admin Action so go back to the Administration home",
+ "start_line": 294,
+ "end_line": 294,
+ "start_column": 4,
+ "end_column": 71,
+ "is_javadoc": false
+ },
+ {
+ "content": " page",
+ "start_line": 295,
+ "end_line": 295,
+ "start_column": 4,
+ "end_column": 10,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method getBackOrders.\r\n\t * \r\n\t * @param session\r\n\t ",
+ "start_line": 300,
+ "end_line": 304,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Get the list of back order items.",
+ "start_line": 307,
+ "end_line": 307,
+ "start_column": 4,
+ "end_column": 39,
+ "is_javadoc": false
+ },
+ {
+ "content": " Get the inventory quantity and name for the back order item",
+ "start_line": 321,
+ "end_line": 321,
+ "start_column": 5,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " information.",
+ "start_line": 322,
+ "end_line": 322,
+ "start_column": 5,
+ "end_column": 19,
+ "is_javadoc": false
+ },
+ {
+ "content": " Don't include backorders that have been completed.",
+ "start_line": 328,
+ "end_line": 328,
+ "start_column": 5,
+ "end_column": 57,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method sendRedirect.\r\n\t * \r\n\t * @param resp\r\n\t * @param page\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 352,
+ "end_line": 359,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Request dispatch\r\n\t ",
+ "start_line": 374,
+ "end_line": 376,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Servlet to handle Administration actions\r\n ",
+ "start_line": 45,
+ "end_line": 47,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -26689,9 +36603,34 @@
"nested_type_declarations": [],
"callable_declarations": {
"init(ServletConfig)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "init(ServletConfig)",
- "comment": "/**\r\n\t * Servlet initialization.\r\n\t */",
+ "comments": [
+ {
+ "content": " Uncomment the following to generated debug code.",
+ "start_line": 76,
+ "end_line": 76,
+ "start_column": 3,
+ "end_column": 53,
+ "is_javadoc": false
+ },
+ {
+ "content": " Util.setDebug(true);",
+ "start_line": 77,
+ "end_line": 77,
+ "start_column": 3,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Servlet initialization.\r\n\t ",
+ "start_line": 71,
+ "end_line": 73,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -26705,12 +36644,17 @@
"type": "ServletConfig",
"name": "config",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 74,
+ "end_line": 74,
+ "start_column": 19,
+ "end_column": 38
}
],
- "code": "{\n super.init(config);\n // Uncomment the following to generated debug code.\n // Util.setDebug(true);\n}",
+ "code": "{\r\n\t\tsuper.init(config);\r\n\t\t// Uncomment the following to generated debug code.\r\n\t\t// Util.setDebug(true);\r\n\r\n\t}",
"start_line": 74,
"end_line": 79,
+ "code_start_line": 74,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -26719,6 +36663,7 @@
"call_sites": [
{
"method_name": "init",
+ "comment": null,
"receiver_expr": "super",
"receiver_type": "",
"argument_types": [
@@ -26747,9 +36692,18 @@
"is_entrypoint": false
},
"doPost(HttpServletRequest, HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "doPost(HttpServletRequest, HttpServletResponse)",
- "comment": "/**\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param req\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param resp\r\n\t * Object that encapsulates the response from the servlet\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param req\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param resp\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 93,
+ "end_line": 100,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -26764,18 +36718,27 @@
"type": "HttpServletRequest",
"name": "req",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 101,
+ "end_line": 101,
+ "start_column": 21,
+ "end_column": 42
},
{
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 101,
+ "end_line": 101,
+ "start_column": 45,
+ "end_column": 68
}
],
- "code": "{\n performTask(req, resp);\n}",
+ "code": "{\r\n\t\tperformTask(req, resp);\r\n\t}",
"start_line": 101,
"end_line": 103,
+ "code_start_line": 101,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -26784,6 +36747,7 @@
"call_sites": [
{
"method_name": "performTask",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -26810,12 +36774,21 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 1,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"sendRedirect(HttpServletResponse, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "sendRedirect(HttpServletResponse, String)",
- "comment": "/**\r\n\t * Method sendRedirect.\r\n\t * \r\n\t * @param resp\r\n\t * @param page\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method sendRedirect.\r\n\t * \r\n\t * @param resp\r\n\t * @param page\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 352,
+ "end_line": 359,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"private"
@@ -26830,18 +36803,27 @@
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 360,
+ "end_line": 360,
+ "start_column": 28,
+ "end_column": 51
},
{
"type": "java.lang.String",
"name": "page",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 360,
+ "end_line": 360,
+ "start_column": 54,
+ "end_column": 64
}
],
- "code": "{\n resp.sendRedirect(resp.encodeRedirectURL(page));\n}",
+ "code": "{\r\n\t\tresp.sendRedirect(resp.encodeRedirectURL(page));\r\n\t}",
"start_line": 360,
"end_line": 362,
+ "code_start_line": 360,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -26850,6 +36832,7 @@
"call_sites": [
{
"method_name": "sendRedirect",
+ "comment": null,
"receiver_expr": "resp",
"receiver_type": "",
"argument_types": [
@@ -26872,6 +36855,7 @@
},
{
"method_name": "encodeRedirectURL",
+ "comment": null,
"receiver_expr": "resp",
"receiver_type": "",
"argument_types": [
@@ -26897,12 +36881,45 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 1,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"performSupplierConfig(HttpServletRequest, HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "performSupplierConfig(HttpServletRequest, HttpServletResponse)",
- "comment": "/**\r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t */",
+ "comments": [
+ {
+ "content": " Get supplier info",
+ "start_line": 175,
+ "end_line": 175,
+ "start_column": 4,
+ "end_column": 23,
+ "is_javadoc": false
+ },
+ {
+ "content": " Unknown Supplier Config Admin Action so go back to the",
+ "start_line": 195,
+ "end_line": 195,
+ "start_column": 4,
+ "end_column": 60,
+ "is_javadoc": false
+ },
+ {
+ "content": " Administration home page",
+ "start_line": 196,
+ "end_line": 196,
+ "start_column": 4,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 159,
+ "end_line": 164,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -26917,18 +36934,27 @@
"type": "HttpServletRequest",
"name": "req",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 165,
+ "end_line": 165,
+ "start_column": 36,
+ "end_column": 57
},
{
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 166,
+ "end_line": 166,
+ "start_column": 4,
+ "end_column": 27
}
],
- "code": "{\n Supplier supplier = null;\n String action = null;\n action = req.getParameter(Util.ATTR_ACTION);\n if ((action == null) || (action.equals(\"\")))\n action = Util.ACTION_GETSUPPLIER;\n Util.debug(\"AdminServlet.performSupplierConfig() - action=\" + action);\n HttpSession session = req.getSession(true);\n if (action.equals(Util.ACTION_GETSUPPLIER)) {\n // Get supplier info\n try {\n supplier = suppliers.getSupplier();\n } catch (Exception e) {\n Util.debug(\"AdminServlet.performSupplierConfig() Exception: \" + e);\n }\n } else if (action.equals(Util.ACTION_UPDATESUPPLIER)) {\n String supplierID = req.getParameter(\"supplierid\");\n Util.debug(\"AdminServlet.performSupplierConfig() - supplierid = \" + supplierID);\n if ((supplierID != null) && (!supplierID.equals(\"\"))) {\n String name = req.getParameter(\"name\");\n String street = req.getParameter(\"street\");\n String city = req.getParameter(\"city\");\n String state = req.getParameter(\"state\");\n String zip = req.getParameter(\"zip\");\n String phone = req.getParameter(\"phone\");\n String location_url = req.getParameter(\"location_url\");\n supplier = updateSupplierInfo(supplierID, name, street, city, state, zip, phone, location_url);\n }\n } else {\n // Unknown Supplier Config Admin Action so go back to the\n // Administration home page\n sendRedirect(resp, \"/PlantsByWebSphere/\" + Util.PAGE_ADMINHOME);\n }\n session.setAttribute(Util.ATTR_SUPPLIER, supplier);\n requestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_SUPPLIERCFG);\n}",
+ "code": "{\r\n\t\tSupplier supplier = null;\r\n\t\tString action = null;\r\n\t\taction = req.getParameter(Util.ATTR_ACTION);\r\n\t\tif ((action == null) || (action.equals(\"\")))\r\n\t\t\taction = Util.ACTION_GETSUPPLIER;\r\n\t\tUtil.debug(\"AdminServlet.performSupplierConfig() - action=\" + action);\r\n\t\tHttpSession session = req.getSession(true);\r\n\t\tif (action.equals(Util.ACTION_GETSUPPLIER)) {\r\n\t\t\t// Get supplier info\r\n\t\t\ttry {\r\n\t\t\t\tsupplier = suppliers.getSupplier();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tUtil.debug(\"AdminServlet.performSupplierConfig() Exception: \" + e);\r\n\t\t\t}\r\n\t\t} else if (action.equals(Util.ACTION_UPDATESUPPLIER)) {\r\n\t\t\tString supplierID = req.getParameter(\"supplierid\");\r\n\t\t\tUtil.debug(\"AdminServlet.performSupplierConfig() - supplierid = \" + supplierID);\r\n\t\t\tif ((supplierID != null) && (!supplierID.equals(\"\"))) {\r\n\t\t\t\tString name = req.getParameter(\"name\");\r\n\t\t\t\tString street = req.getParameter(\"street\");\r\n\t\t\t\tString city = req.getParameter(\"city\");\r\n\t\t\t\tString state = req.getParameter(\"state\");\r\n\t\t\t\tString zip = req.getParameter(\"zip\");\r\n\t\t\t\tString phone = req.getParameter(\"phone\");\r\n\t\t\t\tString location_url = req.getParameter(\"location_url\");\r\n\t\t\t\tsupplier = updateSupplierInfo(supplierID, name, street, city, state, zip, phone, location_url);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Unknown Supplier Config Admin Action so go back to the\r\n\t\t\t// Administration home page\r\n\t\t\tsendRedirect(resp, \"/PlantsByWebSphere/\" + Util.PAGE_ADMINHOME);\r\n\t\t}\r\n\t\tsession.setAttribute(Util.ATTR_SUPPLIER, supplier);\r\n\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_SUPPLIERCFG);\r\n\t}",
"start_line": 165,
"end_line": 201,
+ "code_start_line": 166,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -26949,6 +36975,7 @@
"call_sites": [
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -26971,6 +36998,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -26993,6 +37021,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -27015,6 +37044,7 @@
},
{
"method_name": "getSession",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -27037,6 +37067,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -27059,6 +37090,7 @@
},
{
"method_name": "getSupplier",
+ "comment": null,
"receiver_expr": "suppliers",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean",
"argument_types": [],
@@ -27079,6 +37111,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -27101,6 +37134,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -27123,6 +37157,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -27145,6 +37180,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -27167,6 +37203,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "supplierID",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -27189,6 +37226,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -27211,6 +37249,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -27233,6 +37272,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -27255,6 +37295,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -27277,6 +37318,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -27299,6 +37341,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -27321,6 +37364,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -27343,6 +37387,7 @@
},
{
"method_name": "updateSupplierInfo",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -27372,6 +37417,14 @@
},
{
"method_name": "sendRedirect",
+ "comment": {
+ "content": " Administration home page",
+ "start_line": 196,
+ "end_line": 196,
+ "start_column": 4,
+ "end_column": 30,
+ "is_javadoc": false
+ },
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -27395,6 +37448,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -27418,6 +37472,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -27443,6 +37498,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -27463,6 +37519,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -27484,6 +37541,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "supplier",
"type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"initializer": "null",
@@ -27493,6 +37558,14 @@
"end_column": 26
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "action",
"type": "java.lang.String",
"initializer": "null",
@@ -27502,6 +37575,14 @@
"end_column": 22
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "session",
"type": "HttpSession",
"initializer": "req.getSession(true)",
@@ -27511,6 +37592,14 @@
"end_column": 44
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "supplierID",
"type": "java.lang.String",
"initializer": "req.getParameter(\"supplierid\")",
@@ -27520,6 +37609,14 @@
"end_column": 53
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "name",
"type": "java.lang.String",
"initializer": "req.getParameter(\"name\")",
@@ -27529,6 +37626,14 @@
"end_column": 42
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "street",
"type": "java.lang.String",
"initializer": "req.getParameter(\"street\")",
@@ -27538,6 +37643,14 @@
"end_column": 46
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "city",
"type": "java.lang.String",
"initializer": "req.getParameter(\"city\")",
@@ -27547,6 +37660,14 @@
"end_column": 42
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "state",
"type": "java.lang.String",
"initializer": "req.getParameter(\"state\")",
@@ -27556,6 +37677,14 @@
"end_column": 44
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "zip",
"type": "java.lang.String",
"initializer": "req.getParameter(\"zip\")",
@@ -27565,6 +37694,14 @@
"end_column": 40
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "phone",
"type": "java.lang.String",
"initializer": "req.getParameter(\"phone\")",
@@ -27574,6 +37711,14 @@
"end_column": 44
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "location_url",
"type": "java.lang.String",
"initializer": "req.getParameter(\"location_url\")",
@@ -27586,12 +37731,29 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 6,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"performTask(HttpServletRequest, HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "performTask(HttpServletRequest, HttpServletResponse)",
- "comment": "/**\r\n\t * Method performTask.\r\n\t * \r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t */",
+ "comments": [
+ {
+ "content": " Invalid Admin",
+ "start_line": 118,
+ "end_line": 118,
+ "start_column": 4,
+ "end_column": 19,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method performTask.\r\n\t * \r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 105,
+ "end_line": 112,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -27606,18 +37768,27 @@
"type": "HttpServletRequest",
"name": "req",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 113,
+ "end_line": 113,
+ "start_column": 26,
+ "end_column": 47
},
{
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 113,
+ "end_line": 113,
+ "start_column": 50,
+ "end_column": 73
}
],
- "code": "{\n String admintype = null;\n admintype = req.getParameter(Util.ATTR_ADMINTYPE);\n Util.debug(\"inside AdminServlet:performTask. admintype=\" + admintype);\n if ((admintype == null) || (admintype.equals(\"\"))) {\n // Invalid Admin\n requestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_ADMINHOME);\n }\n if (admintype.equals(Util.ADMIN_BACKORDER)) {\n performBackOrder(req, resp);\n } else if (admintype.equals(Util.ADMIN_SUPPLIERCFG)) {\n performSupplierConfig(req, resp);\n } else if (admintype.equals(Util.ADMIN_POPULATE)) {\n performPopulate(req, resp);\n }\n}",
+ "code": "{\r\n\t\tString admintype = null;\r\n\t\tadmintype = req.getParameter(Util.ATTR_ADMINTYPE);\r\n\t\tUtil.debug(\"inside AdminServlet:performTask. admintype=\" + admintype);\r\n\t\tif ((admintype == null) || (admintype.equals(\"\"))) {\r\n\t\t\t// Invalid Admin\r\n\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_ADMINHOME);\r\n\t\t}\r\n\t\tif (admintype.equals(Util.ADMIN_BACKORDER)) {\r\n\t\t\tperformBackOrder(req, resp);\r\n\t\t} else if (admintype.equals(Util.ADMIN_SUPPLIERCFG)) {\r\n\t\t\tperformSupplierConfig(req, resp);\r\n\t\t} else if (admintype.equals(Util.ADMIN_POPULATE)) {\r\n\t\t\tperformPopulate(req, resp);\r\n\t\t}\r\n\t}",
"start_line": 113,
"end_line": 128,
+ "code_start_line": 113,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -27634,6 +37805,7 @@
"call_sites": [
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -27656,6 +37828,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -27678,6 +37851,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "admintype",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -27700,6 +37874,14 @@
},
{
"method_name": "requestDispatch",
+ "comment": {
+ "content": " Invalid Admin",
+ "start_line": 118,
+ "end_line": 118,
+ "start_column": 4,
+ "end_column": 19,
+ "is_javadoc": false
+ },
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -27725,6 +37907,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -27745,6 +37928,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -27765,6 +37949,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "admintype",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -27787,6 +37972,7 @@
},
{
"method_name": "performBackOrder",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -27810,6 +37996,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "admintype",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -27832,6 +38019,7 @@
},
{
"method_name": "performSupplierConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -27855,6 +38043,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "admintype",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -27877,6 +38066,7 @@
},
{
"method_name": "performPopulate",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -27901,6 +38091,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "admintype",
"type": "java.lang.String",
"initializer": "null",
@@ -27913,12 +38111,21 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 5,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"doGet(HttpServletRequest, HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "doGet(HttpServletRequest, HttpServletResponse)",
- "comment": "/**\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param req\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param resp\r\n\t * Object that encapsulates the response from the servlet\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param req\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param resp\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 81,
+ "end_line": 88,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -27933,18 +38140,27 @@
"type": "HttpServletRequest",
"name": "req",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 89,
+ "end_line": 89,
+ "start_column": 20,
+ "end_column": 41
},
{
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 89,
+ "end_line": 89,
+ "start_column": 44,
+ "end_column": 67
}
],
- "code": "{\n performTask(req, resp);\n}",
+ "code": "{\r\n\t\tperformTask(req, resp);\r\n\t}",
"start_line": 89,
"end_line": 91,
+ "code_start_line": 89,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -27953,6 +38169,7 @@
"call_sites": [
{
"method_name": "performTask",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -27979,12 +38196,45 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 1,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"performBackOrder(HttpServletRequest, HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "performBackOrder(HttpServletRequest, HttpServletResponse)",
- "comment": "/**\r\n\t * Method performBackOrder.\r\n\t * \r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t */",
+ "comments": [
+ {
+ "content": " Update the BackOrder status",
+ "start_line": 246,
+ "end_line": 246,
+ "start_column": 7,
+ "end_column": 36,
+ "is_javadoc": false
+ },
+ {
+ "content": " Unknown Backup Admin Action so go back to the Administration home",
+ "start_line": 294,
+ "end_line": 294,
+ "start_column": 4,
+ "end_column": 71,
+ "is_javadoc": false
+ },
+ {
+ "content": " page",
+ "start_line": 295,
+ "end_line": 295,
+ "start_column": 4,
+ "end_column": 10,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method performBackOrder.\r\n\t * \r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 215,
+ "end_line": 222,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -27999,18 +38249,27 @@
"type": "HttpServletRequest",
"name": "req",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 223,
+ "end_line": 223,
+ "start_column": 31,
+ "end_column": 52
},
{
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 224,
+ "end_line": 224,
+ "start_column": 4,
+ "end_column": 27
}
],
- "code": "{\n String action = null;\n action = req.getParameter(Util.ATTR_ACTION);\n if ((action == null) || (action.equals(\"\")))\n action = Util.ACTION_GETBACKORDERS;\n Util.debug(\"AdminServlet.performBackOrder() - action=\" + action);\n HttpSession session = req.getSession(true);\n if (action.equals(Util.ACTION_GETBACKORDERS)) {\n getBackOrders(session);\n requestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_BACKADMIN);\n } else if (action.equals(Util.ACTION_UPDATESTOCK)) {\n Util.debug(\"AdminServlet.performBackOrder() - AdminServlet(performTask): Update Stock Action\");\n String[] backOrderIDs = (String[]) req.getParameterValues(\"selectedObjectIds\");\n if (backOrderIDs != null) {\n for (int i = 0; i < backOrderIDs.length; i++) {\n String backOrderID = backOrderIDs[i];\n Util.debug(\"AdminServlet.performBackOrder() - Selected BackOrder backOrderID: \" + backOrderID);\n try {\n String inventoryID = backOrderStock.getBackOrderInventoryID(backOrderID);\n Util.debug(\"AdminServlet.performBackOrder() - backOrderID = \" + inventoryID);\n int quantity = backOrderStock.getBackOrderQuantity(backOrderID);\n catalog.setItemQuantity(inventoryID, quantity);\n // Update the BackOrder status\n Util.debug(\"AdminServlet.performBackOrder() - quantity: \" + quantity);\n backOrderStock.updateStock(backOrderID, quantity);\n } catch (Exception e) {\n Util.debug(\"AdminServlet.performBackOrder() - Exception: \" + e);\n e.printStackTrace();\n }\n }\n }\n getBackOrders(session);\n requestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_BACKADMIN);\n } else if (action.equals(Util.ACTION_CANCEL)) {\n Util.debug(\"AdminServlet.performBackOrder() - AdminServlet(performTask): Cancel Action\");\n String[] backOrderIDs = (String[]) req.getParameterValues(\"selectedObjectIds\");\n if (backOrderIDs != null) {\n for (int i = 0; i < backOrderIDs.length; i++) {\n String backOrderID = backOrderIDs[i];\n Util.debug(\"AdminServlet.performBackOrder() - Selected BackOrder backOrderID: \" + backOrderID);\n try {\n backOrderStock.deleteBackOrder(backOrderID);\n } catch (Exception e) {\n Util.debug(\"AdminServlet.performBackOrder() - Exception: \" + e);\n e.printStackTrace();\n }\n }\n }\n getBackOrders(session);\n requestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_BACKADMIN);\n } else if (action.equals(Util.ACTION_UPDATEQUANTITY)) {\n Util.debug(\"AdminServlet.performBackOrder() - Update Quantity Action\");\n try {\n String backOrderID = req.getParameter(\"backOrderID\");\n if (backOrderID != null) {\n Util.debug(\"AdminServlet.performBackOrder() - backOrderID = \" + backOrderID);\n String paramquantity = req.getParameter(\"itemqty\");\n if (paramquantity != null) {\n int quantity = new Integer(paramquantity).intValue();\n Util.debug(\"AdminServlet.performBackOrder() - quantity: \" + quantity);\n backOrderStock.setBackOrderQuantity(backOrderID, quantity);\n }\n }\n } catch (Exception e) {\n Util.debug(\"AdminServlet.performBackOrder() - Exception: \" + e);\n e.printStackTrace();\n }\n getBackOrders(session);\n requestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_BACKADMIN);\n } else {\n // Unknown Backup Admin Action so go back to the Administration home\n // page\n sendRedirect(resp, \"/PlantsByWebSphere/\" + Util.PAGE_ADMINHOME);\n }\n}",
+ "code": "{\r\n\t\tString action = null;\r\n\t\taction = req.getParameter(Util.ATTR_ACTION);\r\n\t\tif ((action == null) || (action.equals(\"\")))\r\n\t\t\taction = Util.ACTION_GETBACKORDERS;\r\n\t\tUtil.debug(\"AdminServlet.performBackOrder() - action=\" + action);\r\n\t\tHttpSession session = req.getSession(true);\r\n\t\tif (action.equals(Util.ACTION_GETBACKORDERS)) {\r\n\t\t\tgetBackOrders(session);\r\n\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_BACKADMIN);\r\n\t\t} else if (action.equals(Util.ACTION_UPDATESTOCK)) {\r\n\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - AdminServlet(performTask): Update Stock Action\");\r\n\t\t\tString[] backOrderIDs = (String[]) req.getParameterValues(\"selectedObjectIds\");\r\n\t\t\tif (backOrderIDs != null) {\r\n\t\t\t\tfor (int i = 0; i < backOrderIDs.length; i++) {\r\n\t\t\t\t\tString backOrderID = backOrderIDs[i];\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - Selected BackOrder backOrderID: \" + backOrderID);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tString inventoryID = backOrderStock.getBackOrderInventoryID(backOrderID);\r\n\t\t\t\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - backOrderID = \" + inventoryID);\r\n\t\t\t\t\t\tint quantity = backOrderStock.getBackOrderQuantity(backOrderID);\r\n\t\t\t\t\t\tcatalog.setItemQuantity(inventoryID, quantity);\r\n\t\t\t\t\t\t// Update the BackOrder status\r\n\t\t\t\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - quantity: \" + quantity);\r\n\t\t\t\t\t\tbackOrderStock.updateStock(backOrderID, quantity);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - Exception: \" + e);\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tgetBackOrders(session);\r\n\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_BACKADMIN);\r\n\t\t} else if (action.equals(Util.ACTION_CANCEL)) {\r\n\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - AdminServlet(performTask): Cancel Action\");\r\n\t\t\tString[] backOrderIDs = (String[]) req.getParameterValues(\"selectedObjectIds\");\r\n\t\t\tif (backOrderIDs != null) {\r\n\t\t\t\tfor (int i = 0; i < backOrderIDs.length; i++) {\r\n\t\t\t\t\tString backOrderID = backOrderIDs[i];\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - Selected BackOrder backOrderID: \" + backOrderID);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbackOrderStock.deleteBackOrder(backOrderID);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - Exception: \" + e);\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tgetBackOrders(session);\r\n\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_BACKADMIN);\r\n\t\t} else if (action.equals(Util.ACTION_UPDATEQUANTITY)) {\r\n\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - Update Quantity Action\");\r\n\t\t\ttry {\r\n\t\t\t\tString backOrderID = req.getParameter(\"backOrderID\");\r\n\t\t\t\tif (backOrderID != null) {\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - backOrderID = \" + backOrderID);\r\n\t\t\t\t\tString paramquantity = req.getParameter(\"itemqty\");\r\n\t\t\t\t\tif (paramquantity != null) {\r\n\t\t\t\t\t\tint quantity = new Integer(paramquantity).intValue();\r\n\t\t\t\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - quantity: \" + quantity);\r\n\t\t\t\t\t\tbackOrderStock.setBackOrderQuantity(backOrderID, quantity);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tUtil.debug(\"AdminServlet.performBackOrder() - Exception: \" + e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tgetBackOrders(session);\r\n\t\t\trequestDispatch(getServletConfig().getServletContext(), req, resp, Util.PAGE_BACKADMIN);\r\n\t\t} else {\r\n\t\t\t// Unknown Backup Admin Action so go back to the Administration home\r\n\t\t\t// page\r\n\t\t\tsendRedirect(resp, \"/PlantsByWebSphere/\" + Util.PAGE_ADMINHOME);\r\n\t\t}\r\n\t}",
"start_line": 223,
"end_line": 298,
+ "code_start_line": 224,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -28033,6 +38292,7 @@
"call_sites": [
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -28055,6 +38315,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -28077,6 +38338,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28099,6 +38361,7 @@
},
{
"method_name": "getSession",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -28121,6 +38384,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -28143,6 +38407,7 @@
},
{
"method_name": "getBackOrders",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -28165,6 +38430,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -28190,6 +38456,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -28210,6 +38477,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -28230,6 +38498,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -28252,6 +38521,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28274,6 +38544,7 @@
},
{
"method_name": "getParameterValues",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -28296,6 +38567,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28318,6 +38590,7 @@
},
{
"method_name": "getBackOrderInventoryID",
+ "comment": null,
"receiver_expr": "backOrderStock",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"argument_types": [
@@ -28340,6 +38613,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28362,6 +38636,7 @@
},
{
"method_name": "getBackOrderQuantity",
+ "comment": null,
"receiver_expr": "backOrderStock",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"argument_types": [
@@ -28384,6 +38659,7 @@
},
{
"method_name": "setItemQuantity",
+ "comment": null,
"receiver_expr": "catalog",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"argument_types": [
@@ -28407,6 +38683,14 @@
},
{
"method_name": "debug",
+ "comment": {
+ "content": " Update the BackOrder status",
+ "start_line": 246,
+ "end_line": 246,
+ "start_column": 7,
+ "end_column": 36,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28429,6 +38713,7 @@
},
{
"method_name": "updateStock",
+ "comment": null,
"receiver_expr": "backOrderStock",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"argument_types": [
@@ -28452,6 +38737,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28474,6 +38760,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -28494,6 +38781,7 @@
},
{
"method_name": "getBackOrders",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -28516,6 +38804,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -28541,6 +38830,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -28561,6 +38851,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -28581,6 +38872,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -28603,6 +38895,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28625,6 +38918,7 @@
},
{
"method_name": "getParameterValues",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -28647,6 +38941,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28669,6 +38964,7 @@
},
{
"method_name": "deleteBackOrder",
+ "comment": null,
"receiver_expr": "backOrderStock",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"argument_types": [
@@ -28691,6 +38987,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28713,6 +39010,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -28733,6 +39031,7 @@
},
{
"method_name": "getBackOrders",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -28755,6 +39054,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -28780,6 +39080,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -28800,6 +39101,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -28820,6 +39122,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -28842,6 +39145,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28864,6 +39168,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -28886,6 +39191,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28908,6 +39214,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -28930,6 +39237,7 @@
},
{
"method_name": "intValue",
+ "comment": null,
"receiver_expr": "new Integer(paramquantity)",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -28950,6 +39258,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -28972,6 +39281,7 @@
},
{
"method_name": "setBackOrderQuantity",
+ "comment": null,
"receiver_expr": "backOrderStock",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"argument_types": [
@@ -28995,6 +39305,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -29017,6 +39328,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -29037,6 +39349,7 @@
},
{
"method_name": "getBackOrders",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -29059,6 +39372,7 @@
},
{
"method_name": "requestDispatch",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -29084,6 +39398,7 @@
},
{
"method_name": "getServletContext",
+ "comment": null,
"receiver_expr": "getServletConfig()",
"receiver_type": "",
"argument_types": [],
@@ -29104,6 +39419,7 @@
},
{
"method_name": "getServletConfig",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -29124,6 +39440,14 @@
},
{
"method_name": "sendRedirect",
+ "comment": {
+ "content": " page",
+ "start_line": 295,
+ "end_line": 295,
+ "start_column": 4,
+ "end_column": 10,
+ "is_javadoc": false
+ },
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -29147,6 +39471,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -29170,6 +39495,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "action",
"type": "java.lang.String",
"initializer": "null",
@@ -29179,6 +39512,14 @@
"end_column": 22
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "session",
"type": "HttpSession",
"initializer": "req.getSession(true)",
@@ -29188,6 +39529,14 @@
"end_column": 44
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrderIDs",
"type": "java.lang.String[]",
"initializer": "(String[]) req.getParameterValues(\"selectedObjectIds\")",
@@ -29197,6 +39546,14 @@
"end_column": 81
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "i",
"type": "int",
"initializer": "0",
@@ -29206,6 +39563,14 @@
"end_column": 18
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrderID",
"type": "java.lang.String",
"initializer": "backOrderIDs[i]",
@@ -29215,6 +39580,14 @@
"end_column": 41
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inventoryID",
"type": "java.lang.String",
"initializer": "backOrderStock.getBackOrderInventoryID(backOrderID)",
@@ -29224,6 +39597,14 @@
"end_column": 78
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "quantity",
"type": "int",
"initializer": "backOrderStock.getBackOrderQuantity(backOrderID)",
@@ -29233,6 +39614,14 @@
"end_column": 69
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrderIDs",
"type": "java.lang.String[]",
"initializer": "(String[]) req.getParameterValues(\"selectedObjectIds\")",
@@ -29242,6 +39631,14 @@
"end_column": 81
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "i",
"type": "int",
"initializer": "0",
@@ -29251,6 +39648,14 @@
"end_column": 18
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrderID",
"type": "java.lang.String",
"initializer": "backOrderIDs[i]",
@@ -29260,6 +39665,14 @@
"end_column": 41
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrderID",
"type": "java.lang.String",
"initializer": "req.getParameter(\"backOrderID\")",
@@ -29269,6 +39682,14 @@
"end_column": 56
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "paramquantity",
"type": "java.lang.String",
"initializer": "req.getParameter(\"itemqty\")",
@@ -29278,6 +39699,14 @@
"end_column": 55
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "quantity",
"type": "int",
"initializer": "new Integer(paramquantity).intValue()",
@@ -29290,12 +39719,21 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 15,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"requestDispatch(ServletContext, HttpServletRequest, HttpServletResponse, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "requestDispatch(ServletContext, HttpServletRequest, HttpServletResponse, String)",
- "comment": "/**\r\n\t * Request dispatch\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Request dispatch\r\n\t ",
+ "start_line": 374,
+ "end_line": 376,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"private"
@@ -29310,30 +39748,47 @@
"type": "ServletContext",
"name": "ctx",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 377,
+ "end_line": 377,
+ "start_column": 31,
+ "end_column": 48
},
{
"type": "HttpServletRequest",
"name": "req",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 378,
+ "end_line": 378,
+ "start_column": 4,
+ "end_column": 25
},
{
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 379,
+ "end_line": 379,
+ "start_column": 4,
+ "end_column": 27
},
{
"type": "java.lang.String",
"name": "page",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 380,
+ "end_line": 380,
+ "start_column": 4,
+ "end_column": 14
}
],
- "code": "{\n resp.setContentType(\"text/html\");\n ctx.getRequestDispatcher(page).forward(req, resp);\n}",
+ "code": "{\r\n\t\tresp.setContentType(\"text/html\");\r\n\t\tctx.getRequestDispatcher(page).forward(req, resp);\r\n\t}",
"start_line": 377,
"end_line": 383,
+ "code_start_line": 380,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -29342,6 +39797,7 @@
"call_sites": [
{
"method_name": "setContentType",
+ "comment": null,
"receiver_expr": "resp",
"receiver_type": "",
"argument_types": [
@@ -29364,6 +39820,7 @@
},
{
"method_name": "forward",
+ "comment": null,
"receiver_expr": "ctx.getRequestDispatcher(page)",
"receiver_type": "",
"argument_types": [
@@ -29387,6 +39844,7 @@
},
{
"method_name": "getRequestDispatcher",
+ "comment": null,
"receiver_expr": "ctx",
"receiver_type": "",
"argument_types": [
@@ -29412,12 +39870,29 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 1,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"updateSupplierInfo(String, String, String, String, String, String, String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "updateSupplierInfo(String, String, String, String, String, String, String, String)",
- "comment": "/**\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param location_url\r\n\t * @return supplierInfo\r\n\t */",
+ "comments": [
+ {
+ "content": " Only retrieving info for 1 supplier.",
+ "start_line": 149,
+ "end_line": 149,
+ "start_column": 3,
+ "end_column": 41,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * @param supplierID\r\n\t * @param name\r\n\t * @param street\r\n\t * @param city\r\n\t * @param state\r\n\t * @param zip\r\n\t * @param phone\r\n\t * @param location_url\r\n\t * @return supplierInfo\r\n\t ",
+ "start_line": 130,
+ "end_line": 140,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -29429,54 +39904,87 @@
"type": "java.lang.String",
"name": "supplierID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 141,
+ "end_line": 141,
+ "start_column": 37,
+ "end_column": 53
},
{
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 142,
+ "end_line": 142,
+ "start_column": 4,
+ "end_column": 14
},
{
"type": "java.lang.String",
"name": "street",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 143,
+ "end_line": 143,
+ "start_column": 4,
+ "end_column": 16
},
{
"type": "java.lang.String",
"name": "city",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 144,
+ "end_line": 144,
+ "start_column": 4,
+ "end_column": 14
},
{
"type": "java.lang.String",
"name": "state",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 145,
+ "end_line": 145,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "zip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 146,
+ "end_line": 146,
+ "start_column": 4,
+ "end_column": 13
},
{
"type": "java.lang.String",
"name": "phone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 147,
+ "end_line": 147,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "location_url",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 148,
+ "end_line": 148,
+ "start_column": 4,
+ "end_column": 22
}
],
- "code": "{\n // Only retrieving info for 1 supplier.\n Supplier supplier = null;\n try {\n supplier = suppliers.updateSupplier(supplierID, name, street, city, state, zip, phone, location_url);\n } catch (Exception e) {\n Util.debug(\"AdminServlet.updateSupplierInfo() - Exception: \" + e);\n }\n return (supplier);\n}",
+ "code": "{\r\n\t\t// Only retrieving info for 1 supplier.\r\n\t\tSupplier supplier = null;\r\n\t\ttry {\r\n\t\t\tsupplier = suppliers.updateSupplier(supplierID, name, street, city, state, zip, phone, location_url);\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"AdminServlet.updateSupplierInfo() - Exception: \" + e);\r\n\t\t}\r\n\t\treturn (supplier);\r\n\t}",
"start_line": 141,
"end_line": 157,
+ "code_start_line": 148,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"is_implicit": false,
"is_constructor": false,
@@ -29489,6 +39997,7 @@
"call_sites": [
{
"method_name": "updateSupplier",
+ "comment": null,
"receiver_expr": "suppliers",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean",
"argument_types": [
@@ -29518,6 +40027,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -29541,6 +40051,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "supplier",
"type": "com.ibm.websphere.samples.pbw.jpa.Supplier",
"initializer": "null",
@@ -29556,9 +40074,18 @@
"is_entrypoint": false
},
"performPopulate(HttpServletRequest, HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "performPopulate(HttpServletRequest, HttpServletResponse)",
- "comment": "/**\r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param req\r\n\t * @param resp\r\n\t * @throws ServletException\r\n\t * @throws IOException\r\n\t ",
+ "start_line": 203,
+ "end_line": 208,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -29573,18 +40100,27 @@
"type": "HttpServletRequest",
"name": "req",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 209,
+ "end_line": 209,
+ "start_column": 30,
+ "end_column": 51
},
{
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 209,
+ "end_line": 209,
+ "start_column": 54,
+ "end_column": 77
}
],
- "code": "{\n Populate popDB = new Populate(resetDB, catalog, login, backOrderStock, suppliers);\n popDB.doPopulate();\n sendRedirect(resp, \"/PlantsByWebSphere/\" + Util.PAGE_HELP);\n}",
+ "code": "{\r\n\t\tPopulate popDB = new Populate(resetDB, catalog, login, backOrderStock, suppliers);\r\n\t\tpopDB.doPopulate();\r\n\t\tsendRedirect(resp, \"/PlantsByWebSphere/\" + Util.PAGE_HELP);\r\n\t}",
"start_line": 209,
"end_line": 213,
+ "code_start_line": 209,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -29603,6 +40139,7 @@
"call_sites": [
{
"method_name": "doPopulate",
+ "comment": null,
"receiver_expr": "popDB",
"receiver_type": "com.ibm.websphere.samples.pbw.war.Populate",
"argument_types": [],
@@ -29623,6 +40160,7 @@
},
{
"method_name": "sendRedirect",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -29646,6 +40184,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.war.Populate",
"argument_types": [
@@ -29673,6 +40212,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "popDB",
"type": "com.ibm.websphere.samples.pbw.war.Populate",
"initializer": "new Populate(resetDB, catalog, login, backOrderStock, suppliers)",
@@ -29685,12 +40232,53 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 1,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"getBackOrders(HttpSession)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/AdminServlet.java",
"signature": "getBackOrders(HttpSession)",
- "comment": "/**\r\n\t * Method getBackOrders.\r\n\t * \r\n\t * @param session\r\n\t */",
+ "comments": [
+ {
+ "content": " Get the list of back order items.",
+ "start_line": 307,
+ "end_line": 307,
+ "start_column": 4,
+ "end_column": 39,
+ "is_javadoc": false
+ },
+ {
+ "content": " Get the inventory quantity and name for the back order item",
+ "start_line": 321,
+ "end_line": 321,
+ "start_column": 5,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " information.",
+ "start_line": 322,
+ "end_line": 322,
+ "start_column": 5,
+ "end_column": 19,
+ "is_javadoc": false
+ },
+ {
+ "content": " Don't include backorders that have been completed.",
+ "start_line": 328,
+ "end_line": 328,
+ "start_column": 5,
+ "end_column": 57,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method getBackOrders.\r\n\t * \r\n\t * @param session\r\n\t ",
+ "start_line": 300,
+ "end_line": 304,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -29702,12 +40290,17 @@
"type": "HttpSession",
"name": "session",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 305,
+ "end_line": 305,
+ "start_column": 28,
+ "end_column": 46
}
],
- "code": "{\n try {\n // Get the list of back order items.\n Util.debug(\"AdminServlet.getBackOrders() - Looking for BackOrders\");\n Collection backOrders = backOrderStock.findBackOrders();\n ArrayList backOrderItems = new ArrayList();\n for (BackOrder bo : backOrders) {\n BackOrderItem boi = new BackOrderItem(bo);\n backOrderItems.add(boi);\n }\n Util.debug(\"AdminServlet.getBackOrders() - BackOrders found!\");\n Iterator i = backOrderItems.iterator();\n while (i.hasNext()) {\n BackOrderItem backOrderItem = (BackOrderItem) i.next();\n String backOrderID = backOrderItem.getBackOrderID();\n String inventoryID = backOrderItem.getInventory().getInventoryId();\n // Get the inventory quantity and name for the back order item\n // information.\n Inventory item = catalog.getItemInventory(inventoryID);\n int quantity = item.getQuantity();\n backOrderItem.setInventoryQuantity(quantity);\n String name = item.getName();\n backOrderItem.setName(name);\n // Don't include backorders that have been completed.\n if (!(backOrderItem.getStatus().equals(Util.STATUS_ADDEDSTOCK))) {\n String invID = backOrderItem.getInventory().getInventoryId();\n String supplierOrderID = backOrderItem.getSupplierOrderID();\n String status = backOrderItem.getStatus();\n String lowDate = new Long(backOrderItem.getLowDate()).toString();\n String orderDate = new Long(backOrderItem.getOrderDate()).toString();\n Util.debug(\"AdminServlet.getBackOrders() - backOrderID = \" + backOrderID);\n Util.debug(\"AdminServlet.getBackOrders() - supplierOrderID = \" + supplierOrderID);\n Util.debug(\"AdminServlet.getBackOrders() - invID = \" + invID);\n Util.debug(\"AdminServlet.getBackOrders() - name = \" + name);\n Util.debug(\"AdminServlet.getBackOrders() - quantity = \" + quantity);\n Util.debug(\"AdminServlet.getBackOrders() - status = \" + status);\n Util.debug(\"AdminServlet.getBackOrders() - lowDate = \" + lowDate);\n Util.debug(\"AdminServlet.getBackOrders() - orderDate = \" + orderDate);\n }\n }\n session.setAttribute(\"backorderitems\", backOrderItems);\n } catch (Exception e) {\n e.printStackTrace();\n Util.debug(\"AdminServlet.getBackOrders() - RemoteException: \" + e);\n }\n}",
+ "code": "{\r\n\t\ttry {\r\n\t\t\t// Get the list of back order items.\r\n\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - Looking for BackOrders\");\r\n\t\t\tCollection backOrders = backOrderStock.findBackOrders();\r\n\t\t\tArrayList backOrderItems = new ArrayList();\r\n\t\t\tfor (BackOrder bo : backOrders) {\r\n\t\t\t\tBackOrderItem boi = new BackOrderItem(bo);\r\n\t\t\t\tbackOrderItems.add(boi);\r\n\t\t\t}\r\n\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - BackOrders found!\");\r\n\t\t\tIterator i = backOrderItems.iterator();\r\n\t\t\twhile (i.hasNext()) {\r\n\t\t\t\tBackOrderItem backOrderItem = (BackOrderItem) i.next();\r\n\t\t\t\tString backOrderID = backOrderItem.getBackOrderID();\r\n\t\t\t\tString inventoryID = backOrderItem.getInventory().getInventoryId();\r\n\t\t\t\t// Get the inventory quantity and name for the back order item\r\n\t\t\t\t// information.\r\n\t\t\t\tInventory item = catalog.getItemInventory(inventoryID);\r\n\t\t\t\tint quantity = item.getQuantity();\r\n\t\t\t\tbackOrderItem.setInventoryQuantity(quantity);\r\n\t\t\t\tString name = item.getName();\r\n\t\t\t\tbackOrderItem.setName(name);\r\n\t\t\t\t// Don't include backorders that have been completed.\r\n\t\t\t\tif (!(backOrderItem.getStatus().equals(Util.STATUS_ADDEDSTOCK))) {\r\n\t\t\t\t\tString invID = backOrderItem.getInventory().getInventoryId();\r\n\t\t\t\t\tString supplierOrderID = backOrderItem.getSupplierOrderID();\r\n\t\t\t\t\tString status = backOrderItem.getStatus();\r\n\t\t\t\t\tString lowDate = new Long(backOrderItem.getLowDate()).toString();\r\n\t\t\t\t\tString orderDate = new Long(backOrderItem.getOrderDate()).toString();\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - backOrderID = \" + backOrderID);\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - supplierOrderID = \" + supplierOrderID);\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - invID = \" + invID);\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - name = \" + name);\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - quantity = \" + quantity);\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - status = \" + status);\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - lowDate = \" + lowDate);\r\n\t\t\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - orderDate = \" + orderDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsession.setAttribute(\"backorderitems\", backOrderItems);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tUtil.debug(\"AdminServlet.getBackOrders() - RemoteException: \" + e);\r\n\t\t}\r\n\t}",
"start_line": 305,
"end_line": 350,
+ "code_start_line": 305,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -29728,6 +40321,14 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": {
+ "content": " Get the list of back order items.",
+ "start_line": 307,
+ "end_line": 307,
+ "start_column": 4,
+ "end_column": 39,
+ "is_javadoc": false
+ },
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -29750,6 +40351,7 @@
},
{
"method_name": "findBackOrders",
+ "comment": null,
"receiver_expr": "backOrderStock",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"argument_types": [],
@@ -29770,6 +40372,7 @@
},
{
"method_name": "add",
+ "comment": null,
"receiver_expr": "backOrderItems",
"receiver_type": "java.util.ArrayList",
"argument_types": [
@@ -29792,6 +40395,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -29814,6 +40418,7 @@
},
{
"method_name": "iterator",
+ "comment": null,
"receiver_expr": "backOrderItems",
"receiver_type": "java.util.ArrayList",
"argument_types": [],
@@ -29834,6 +40439,7 @@
},
{
"method_name": "hasNext",
+ "comment": null,
"receiver_expr": "i",
"receiver_type": "java.util.Iterator",
"argument_types": [],
@@ -29854,6 +40460,7 @@
},
{
"method_name": "next",
+ "comment": null,
"receiver_expr": "i",
"receiver_type": "java.util.Iterator",
"argument_types": [],
@@ -29874,6 +40481,7 @@
},
{
"method_name": "getBackOrderID",
+ "comment": null,
"receiver_expr": "backOrderItem",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [],
@@ -29894,6 +40502,7 @@
},
{
"method_name": "getInventoryId",
+ "comment": null,
"receiver_expr": "backOrderItem.getInventory()",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -29914,6 +40523,7 @@
},
{
"method_name": "getInventory",
+ "comment": null,
"receiver_expr": "backOrderItem",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [],
@@ -29934,6 +40544,7 @@
},
{
"method_name": "getItemInventory",
+ "comment": null,
"receiver_expr": "catalog",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"argument_types": [
@@ -29956,6 +40567,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -29976,6 +40588,7 @@
},
{
"method_name": "setInventoryQuantity",
+ "comment": null,
"receiver_expr": "backOrderItem",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [
@@ -29998,6 +40611,7 @@
},
{
"method_name": "getName",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -30018,6 +40632,7 @@
},
{
"method_name": "setName",
+ "comment": null,
"receiver_expr": "backOrderItem",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [
@@ -30040,6 +40655,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "backOrderItem.getStatus()",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -30062,6 +40678,7 @@
},
{
"method_name": "getStatus",
+ "comment": null,
"receiver_expr": "backOrderItem",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [],
@@ -30082,6 +40699,7 @@
},
{
"method_name": "getInventoryId",
+ "comment": null,
"receiver_expr": "backOrderItem.getInventory()",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -30102,6 +40720,7 @@
},
{
"method_name": "getInventory",
+ "comment": null,
"receiver_expr": "backOrderItem",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [],
@@ -30122,6 +40741,7 @@
},
{
"method_name": "getSupplierOrderID",
+ "comment": null,
"receiver_expr": "backOrderItem",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [],
@@ -30142,6 +40762,7 @@
},
{
"method_name": "getStatus",
+ "comment": null,
"receiver_expr": "backOrderItem",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [],
@@ -30162,6 +40783,7 @@
},
{
"method_name": "toString",
+ "comment": null,
"receiver_expr": "new Long(backOrderItem.getLowDate())",
"receiver_type": "java.lang.Long",
"argument_types": [],
@@ -30182,6 +40804,7 @@
},
{
"method_name": "getLowDate",
+ "comment": null,
"receiver_expr": "backOrderItem",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [],
@@ -30202,6 +40825,7 @@
},
{
"method_name": "toString",
+ "comment": null,
"receiver_expr": "new Long(backOrderItem.getOrderDate())",
"receiver_type": "java.lang.Long",
"argument_types": [],
@@ -30222,6 +40846,7 @@
},
{
"method_name": "getOrderDate",
+ "comment": null,
"receiver_expr": "backOrderItem",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [],
@@ -30242,6 +40867,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -30264,6 +40890,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -30286,6 +40913,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -30308,6 +40936,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -30330,6 +40959,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -30352,6 +40982,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -30374,6 +41005,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -30396,6 +41028,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -30418,6 +41051,7 @@
},
{
"method_name": "setAttribute",
+ "comment": null,
"receiver_expr": "session",
"receiver_type": "",
"argument_types": [
@@ -30441,6 +41075,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -30461,6 +41096,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -30483,6 +41119,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.ArrayList",
"argument_types": [],
@@ -30503,6 +41140,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"argument_types": [
@@ -30525,6 +41163,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Long",
"argument_types": [
@@ -30547,6 +41186,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Long",
"argument_types": [
@@ -30570,6 +41210,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrders",
"type": "java.util.Collection",
"initializer": "backOrderStock.findBackOrders()",
@@ -30579,6 +41227,14 @@
"end_column": 69
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrderItems",
"type": "java.util.ArrayList",
"initializer": "new ArrayList()",
@@ -30588,6 +41244,14 @@
"end_column": 75
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "bo",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "",
@@ -30597,6 +41261,14 @@
"end_column": 20
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "boi",
"type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"initializer": "new BackOrderItem(bo)",
@@ -30606,6 +41278,14 @@
"end_column": 45
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "i",
"type": "java.util.Iterator",
"initializer": "backOrderItems.iterator()",
@@ -30615,6 +41295,14 @@
"end_column": 56
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrderItem",
"type": "com.ibm.websphere.samples.pbw.war.BackOrderItem",
"initializer": "(BackOrderItem) i.next()",
@@ -30624,6 +41312,14 @@
"end_column": 58
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrderID",
"type": "java.lang.String",
"initializer": "backOrderItem.getBackOrderID()",
@@ -30633,6 +41329,14 @@
"end_column": 55
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inventoryID",
"type": "java.lang.String",
"initializer": "backOrderItem.getInventory().getInventoryId()",
@@ -30642,6 +41346,14 @@
"end_column": 70
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "item",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "catalog.getItemInventory(inventoryID)",
@@ -30651,6 +41363,14 @@
"end_column": 58
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "quantity",
"type": "int",
"initializer": "item.getQuantity()",
@@ -30660,6 +41380,14 @@
"end_column": 37
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "name",
"type": "java.lang.String",
"initializer": "item.getName()",
@@ -30669,6 +41397,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "invID",
"type": "java.lang.String",
"initializer": "backOrderItem.getInventory().getInventoryId()",
@@ -30678,6 +41414,14 @@
"end_column": 65
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "supplierOrderID",
"type": "java.lang.String",
"initializer": "backOrderItem.getSupplierOrderID()",
@@ -30687,6 +41431,14 @@
"end_column": 64
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "status",
"type": "java.lang.String",
"initializer": "backOrderItem.getStatus()",
@@ -30696,6 +41448,14 @@
"end_column": 46
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "lowDate",
"type": "java.lang.String",
"initializer": "new Long(backOrderItem.getLowDate()).toString()",
@@ -30705,6 +41465,14 @@
"end_column": 69
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "orderDate",
"type": "java.lang.String",
"initializer": "new Long(backOrderItem.getOrderDate()).toString()",
@@ -30722,7 +41490,14 @@
},
"field_declarations": [
{
- "comment": "/**\r\n\t * \r\n\t */",
+ "comment": {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 51,
+ "end_line": 53,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 54,
@@ -30738,7 +41513,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean",
"start_line": 55,
@@ -30754,7 +41536,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr",
"start_line": 57,
@@ -30770,7 +41559,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"start_line": 59,
@@ -30786,7 +41582,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"start_line": 62,
@@ -30802,7 +41605,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean",
"start_line": 65,
@@ -30818,15 +41628,563 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": true
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * A class to hold an order's data.\r\n ",
+ "start_line": 28,
+ "end_line": 30,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Constructor to create an OrderInfo by passing each field.\r\n\t ",
+ "start_line": 85,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Constructor to create an OrderInfo using an Order.\r\n\t * \r\n\t * @param order\r\n\t ",
+ "start_line": 112,
+ "end_line": 116,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the shipping method name.\r\n\t ",
+ "start_line": 136,
+ "end_line": 138,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Set the shipping method by name\r\n\t ",
+ "start_line": 143,
+ "end_line": 145,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get shipping methods that are possible.\r\n\t * \r\n\t * @return String[] of method names\r\n\t ",
+ "start_line": 154,
+ "end_line": 158,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the orderID\r\n\t ",
+ "start_line": 174,
+ "end_line": 176,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param orderID\r\n\t * the orderID to set\r\n\t ",
+ "start_line": 181,
+ "end_line": 184,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billName\r\n\t ",
+ "start_line": 189,
+ "end_line": 191,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billName\r\n\t * the billName to set\r\n\t ",
+ "start_line": 196,
+ "end_line": 199,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billAddr1\r\n\t ",
+ "start_line": 204,
+ "end_line": 206,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billAddr1\r\n\t * the billAddr1 to set\r\n\t ",
+ "start_line": 211,
+ "end_line": 214,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billAddr2\r\n\t ",
+ "start_line": 219,
+ "end_line": 221,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billAddr2\r\n\t * the billAddr2 to set\r\n\t ",
+ "start_line": 226,
+ "end_line": 229,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billCity\r\n\t ",
+ "start_line": 234,
+ "end_line": 236,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billCity\r\n\t * the billCity to set\r\n\t ",
+ "start_line": 241,
+ "end_line": 244,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billState\r\n\t ",
+ "start_line": 249,
+ "end_line": 251,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billState\r\n\t * the billState to set\r\n\t ",
+ "start_line": 256,
+ "end_line": 259,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billZip\r\n\t ",
+ "start_line": 264,
+ "end_line": 266,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billZip\r\n\t * the billZip to set\r\n\t ",
+ "start_line": 271,
+ "end_line": 274,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billPhone\r\n\t ",
+ "start_line": 279,
+ "end_line": 281,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billPhone\r\n\t * the billPhone to set\r\n\t ",
+ "start_line": 286,
+ "end_line": 289,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipName\r\n\t ",
+ "start_line": 294,
+ "end_line": 296,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipName\r\n\t * the shipName to set\r\n\t ",
+ "start_line": 301,
+ "end_line": 304,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipAddr1\r\n\t ",
+ "start_line": 309,
+ "end_line": 311,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipAddr1\r\n\t * the shipAddr1 to set\r\n\t ",
+ "start_line": 316,
+ "end_line": 319,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipAddr2\r\n\t ",
+ "start_line": 324,
+ "end_line": 326,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipAddr2\r\n\t * the shipAddr2 to set\r\n\t ",
+ "start_line": 331,
+ "end_line": 334,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipCity\r\n\t ",
+ "start_line": 339,
+ "end_line": 341,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipCity\r\n\t * the shipCity to set\r\n\t ",
+ "start_line": 346,
+ "end_line": 349,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipState\r\n\t ",
+ "start_line": 354,
+ "end_line": 356,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipState\r\n\t * the shipState to set\r\n\t ",
+ "start_line": 361,
+ "end_line": 364,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipZip\r\n\t ",
+ "start_line": 369,
+ "end_line": 371,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipZip\r\n\t * the shipZip to set\r\n\t ",
+ "start_line": 376,
+ "end_line": 379,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipPhone\r\n\t ",
+ "start_line": 384,
+ "end_line": 386,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipPhone\r\n\t * the shipPhone to set\r\n\t ",
+ "start_line": 391,
+ "end_line": 394,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shippingMethod\r\n\t ",
+ "start_line": 399,
+ "end_line": 401,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shippingMethod\r\n\t * the shippingMethod to set\r\n\t ",
+ "start_line": 406,
+ "end_line": 409,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardholderName\r\n\t ",
+ "start_line": 414,
+ "end_line": 416,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardholderName\r\n\t * the cardholderName to set\r\n\t ",
+ "start_line": 421,
+ "end_line": 424,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardName\r\n\t ",
+ "start_line": 429,
+ "end_line": 431,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardName\r\n\t * the cardName to set\r\n\t ",
+ "start_line": 436,
+ "end_line": 439,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardNum\r\n\t ",
+ "start_line": 444,
+ "end_line": 446,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardNum\r\n\t * the cardNum to set\r\n\t ",
+ "start_line": 451,
+ "end_line": 454,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardExpMonth\r\n\t ",
+ "start_line": 459,
+ "end_line": 461,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardExpMonth\r\n\t * the cardExpMonth to set\r\n\t ",
+ "start_line": 466,
+ "end_line": 469,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardExpYear\r\n\t ",
+ "start_line": 474,
+ "end_line": 476,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardExpYear\r\n\t * the cardExpYear to set\r\n\t ",
+ "start_line": 481,
+ "end_line": 484,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardExpYears\r\n\t ",
+ "start_line": 489,
+ "end_line": 491,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardExpYears\r\n\t * the cardExpYears to set\r\n\t ",
+ "start_line": 496,
+ "end_line": 499,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipisbill\r\n\t ",
+ "start_line": 504,
+ "end_line": 506,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipisbill\r\n\t * the shipisbill to set\r\n\t ",
+ "start_line": 511,
+ "end_line": 514,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.util.Calendar",
"javax.validation.constraints.NotNull",
@@ -30846,7 +42204,424 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * A class to hold an order's data.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * Constructor to create an OrderInfo by passing each field.\r\n\t ",
+ "start_line": 85,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Constructor to create an OrderInfo using an Order.\r\n\t * \r\n\t * @param order\r\n\t ",
+ "start_line": 112,
+ "end_line": 116,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the shipping method name.\r\n\t ",
+ "start_line": 136,
+ "end_line": 138,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Set the shipping method by name\r\n\t ",
+ "start_line": 143,
+ "end_line": 145,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get shipping methods that are possible.\r\n\t * \r\n\t * @return String[] of method names\r\n\t ",
+ "start_line": 154,
+ "end_line": 158,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the orderID\r\n\t ",
+ "start_line": 174,
+ "end_line": 176,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param orderID\r\n\t * the orderID to set\r\n\t ",
+ "start_line": 181,
+ "end_line": 184,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billName\r\n\t ",
+ "start_line": 189,
+ "end_line": 191,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billName\r\n\t * the billName to set\r\n\t ",
+ "start_line": 196,
+ "end_line": 199,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billAddr1\r\n\t ",
+ "start_line": 204,
+ "end_line": 206,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billAddr1\r\n\t * the billAddr1 to set\r\n\t ",
+ "start_line": 211,
+ "end_line": 214,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billAddr2\r\n\t ",
+ "start_line": 219,
+ "end_line": 221,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billAddr2\r\n\t * the billAddr2 to set\r\n\t ",
+ "start_line": 226,
+ "end_line": 229,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billCity\r\n\t ",
+ "start_line": 234,
+ "end_line": 236,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billCity\r\n\t * the billCity to set\r\n\t ",
+ "start_line": 241,
+ "end_line": 244,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billState\r\n\t ",
+ "start_line": 249,
+ "end_line": 251,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billState\r\n\t * the billState to set\r\n\t ",
+ "start_line": 256,
+ "end_line": 259,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billZip\r\n\t ",
+ "start_line": 264,
+ "end_line": 266,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billZip\r\n\t * the billZip to set\r\n\t ",
+ "start_line": 271,
+ "end_line": 274,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the billPhone\r\n\t ",
+ "start_line": 279,
+ "end_line": 281,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param billPhone\r\n\t * the billPhone to set\r\n\t ",
+ "start_line": 286,
+ "end_line": 289,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipName\r\n\t ",
+ "start_line": 294,
+ "end_line": 296,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipName\r\n\t * the shipName to set\r\n\t ",
+ "start_line": 301,
+ "end_line": 304,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipAddr1\r\n\t ",
+ "start_line": 309,
+ "end_line": 311,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipAddr1\r\n\t * the shipAddr1 to set\r\n\t ",
+ "start_line": 316,
+ "end_line": 319,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipAddr2\r\n\t ",
+ "start_line": 324,
+ "end_line": 326,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipAddr2\r\n\t * the shipAddr2 to set\r\n\t ",
+ "start_line": 331,
+ "end_line": 334,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipCity\r\n\t ",
+ "start_line": 339,
+ "end_line": 341,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipCity\r\n\t * the shipCity to set\r\n\t ",
+ "start_line": 346,
+ "end_line": 349,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipState\r\n\t ",
+ "start_line": 354,
+ "end_line": 356,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipState\r\n\t * the shipState to set\r\n\t ",
+ "start_line": 361,
+ "end_line": 364,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipZip\r\n\t ",
+ "start_line": 369,
+ "end_line": 371,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipZip\r\n\t * the shipZip to set\r\n\t ",
+ "start_line": 376,
+ "end_line": 379,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipPhone\r\n\t ",
+ "start_line": 384,
+ "end_line": 386,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipPhone\r\n\t * the shipPhone to set\r\n\t ",
+ "start_line": 391,
+ "end_line": 394,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shippingMethod\r\n\t ",
+ "start_line": 399,
+ "end_line": 401,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shippingMethod\r\n\t * the shippingMethod to set\r\n\t ",
+ "start_line": 406,
+ "end_line": 409,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardholderName\r\n\t ",
+ "start_line": 414,
+ "end_line": 416,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardholderName\r\n\t * the cardholderName to set\r\n\t ",
+ "start_line": 421,
+ "end_line": 424,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardName\r\n\t ",
+ "start_line": 429,
+ "end_line": 431,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardName\r\n\t * the cardName to set\r\n\t ",
+ "start_line": 436,
+ "end_line": 439,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardNum\r\n\t ",
+ "start_line": 444,
+ "end_line": 446,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardNum\r\n\t * the cardNum to set\r\n\t ",
+ "start_line": 451,
+ "end_line": 454,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardExpMonth\r\n\t ",
+ "start_line": 459,
+ "end_line": 461,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardExpMonth\r\n\t * the cardExpMonth to set\r\n\t ",
+ "start_line": 466,
+ "end_line": 469,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardExpYear\r\n\t ",
+ "start_line": 474,
+ "end_line": 476,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardExpYear\r\n\t * the cardExpYear to set\r\n\t ",
+ "start_line": 481,
+ "end_line": 484,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the cardExpYears\r\n\t ",
+ "start_line": 489,
+ "end_line": 491,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cardExpYears\r\n\t * the cardExpYears to set\r\n\t ",
+ "start_line": 496,
+ "end_line": 499,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return the shipisbill\r\n\t ",
+ "start_line": 504,
+ "end_line": 506,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param shipisbill\r\n\t * the shipisbill to set\r\n\t ",
+ "start_line": 511,
+ "end_line": 514,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * A class to hold an order's data.\r\n ",
+ "start_line": 28,
+ "end_line": 30,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -30858,9 +42633,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"getShipAddr1()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShipAddr1()",
- "comment": "/**\r\n\t * @return the shipAddr1\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the shipAddr1\r\n\t ",
+ "start_line": 309,
+ "end_line": 311,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -30868,9 +42652,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipAddr1()",
"parameters": [],
- "code": "{\n return shipAddr1;\n}",
+ "code": "{\r\n\t\treturn shipAddr1;\r\n\t}",
"start_line": 312,
"end_line": 314,
+ "code_start_line": 312,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -30886,9 +42671,18 @@
"is_entrypoint": false
},
"setShipAddr2(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setShipAddr2(String)",
- "comment": "/**\r\n\t * @param shipAddr2\r\n\t * the shipAddr2 to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param shipAddr2\r\n\t * the shipAddr2 to set\r\n\t ",
+ "start_line": 331,
+ "end_line": 334,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -30900,12 +42694,17 @@
"type": "java.lang.String",
"name": "shipAddr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 335,
+ "end_line": 335,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.shipAddr2 = shipAddr2;\n}",
+ "code": "{\r\n\t\tthis.shipAddr2 = shipAddr2;\r\n\t}",
"start_line": 335,
"end_line": 337,
+ "code_start_line": 335,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -30923,9 +42722,18 @@
"is_entrypoint": false
},
"setShipisbill(boolean)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setShipisbill(boolean)",
- "comment": "/**\r\n\t * @param shipisbill\r\n\t * the shipisbill to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param shipisbill\r\n\t * the shipisbill to set\r\n\t ",
+ "start_line": 511,
+ "end_line": 514,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -30937,12 +42745,17 @@
"type": "boolean",
"name": "shipisbill",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 515,
+ "end_line": 515,
+ "start_column": 28,
+ "end_column": 45
}
],
- "code": "{\n this.shipisbill = shipisbill;\n}",
+ "code": "{\r\n\t\tthis.shipisbill = shipisbill;\r\n\t}",
"start_line": 515,
"end_line": 517,
+ "code_start_line": 515,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -30958,9 +42771,18 @@
"is_entrypoint": false
},
"getShipZip()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShipZip()",
- "comment": "/**\r\n\t * @return the shipZip\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the shipZip\r\n\t ",
+ "start_line": 369,
+ "end_line": 371,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -30968,9 +42790,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipZip()",
"parameters": [],
- "code": "{\n return shipZip;\n}",
+ "code": "{\r\n\t\treturn shipZip;\r\n\t}",
"start_line": 372,
"end_line": 374,
+ "code_start_line": 372,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -30986,9 +42809,18 @@
"is_entrypoint": false
},
"getBillAddr1()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getBillAddr1()",
- "comment": "/**\r\n\t * @return the billAddr1\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the billAddr1\r\n\t ",
+ "start_line": 204,
+ "end_line": 206,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -30996,9 +42828,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillAddr1()",
"parameters": [],
- "code": "{\n return billAddr1;\n}",
+ "code": "{\r\n\t\treturn billAddr1;\r\n\t}",
"start_line": 207,
"end_line": 209,
+ "code_start_line": 207,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -31014,9 +42847,9 @@
"is_entrypoint": false
},
"getShippingMethodCount()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShippingMethodCount()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -31024,9 +42857,10 @@
"thrown_exceptions": [],
"declaration": "public int getShippingMethodCount()",
"parameters": [],
- "code": "{\n return Util.getShippingMethodStrings().length;\n}",
+ "code": "{\r\n\t\treturn Util.getShippingMethodStrings().length;\r\n\t}",
"start_line": 163,
"end_line": 165,
+ "code_start_line": 163,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -31037,6 +42871,7 @@
"call_sites": [
{
"method_name": "getShippingMethodStrings",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [],
@@ -31063,9 +42898,18 @@
"is_entrypoint": false
},
"getShipCity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShipCity()",
- "comment": "/**\r\n\t * @return the shipCity\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the shipCity\r\n\t ",
+ "start_line": 339,
+ "end_line": 341,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31073,9 +42917,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipCity()",
"parameters": [],
- "code": "{\n return shipCity;\n}",
+ "code": "{\r\n\t\treturn shipCity;\r\n\t}",
"start_line": 342,
"end_line": 344,
+ "code_start_line": 342,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -31091,9 +42936,18 @@
"is_entrypoint": false
},
"(Order)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "OrderInfo(Order)",
- "comment": "/**\r\n\t * Constructor to create an OrderInfo using an Order.\r\n\t * \r\n\t * @param order\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Constructor to create an OrderInfo using an Order.\r\n\t * \r\n\t * @param order\r\n\t ",
+ "start_line": 112,
+ "end_line": 116,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31105,12 +42959,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Order",
"name": "order",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 117,
+ "end_line": 117,
+ "start_column": 19,
+ "end_column": 29
}
],
- "code": "{\n orderID = order.getOrderID();\n billName = order.getBillName();\n billAddr1 = order.getBillAddr1();\n billAddr2 = order.getBillAddr2();\n billCity = order.getBillCity();\n billState = order.getBillState();\n billZip = order.getBillZip();\n billPhone = order.getBillPhone();\n shipName = order.getShipName();\n shipAddr1 = order.getShipAddr1();\n shipAddr2 = order.getShipAddr2();\n shipCity = order.getShipCity();\n shipState = order.getShipState();\n shipZip = order.getShipZip();\n shipPhone = order.getShipPhone();\n shippingMethod = order.getShippingMethod();\n}",
+ "code": "{\r\n\t\torderID = order.getOrderID();\r\n\t\tbillName = order.getBillName();\r\n\t\tbillAddr1 = order.getBillAddr1();\r\n\t\tbillAddr2 = order.getBillAddr2();\r\n\t\tbillCity = order.getBillCity();\r\n\t\tbillState = order.getBillState();\r\n\t\tbillZip = order.getBillZip();\r\n\t\tbillPhone = order.getBillPhone();\r\n\t\tshipName = order.getShipName();\r\n\t\tshipAddr1 = order.getShipAddr1();\r\n\t\tshipAddr2 = order.getShipAddr2();\r\n\t\tshipCity = order.getShipCity();\r\n\t\tshipState = order.getShipState();\r\n\t\tshipZip = order.getShipZip();\r\n\t\tshipPhone = order.getShipPhone();\r\n\t\tshippingMethod = order.getShippingMethod();\r\n\t}",
"start_line": 117,
"end_line": 134,
+ "code_start_line": 117,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -31136,6 +42995,7 @@
"call_sites": [
{
"method_name": "getOrderID",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31156,6 +43016,7 @@
},
{
"method_name": "getBillName",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31176,6 +43037,7 @@
},
{
"method_name": "getBillAddr1",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31196,6 +43058,7 @@
},
{
"method_name": "getBillAddr2",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31216,6 +43079,7 @@
},
{
"method_name": "getBillCity",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31236,6 +43100,7 @@
},
{
"method_name": "getBillState",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31256,6 +43121,7 @@
},
{
"method_name": "getBillZip",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31276,6 +43142,7 @@
},
{
"method_name": "getBillPhone",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31296,6 +43163,7 @@
},
{
"method_name": "getShipName",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31316,6 +43184,7 @@
},
{
"method_name": "getShipAddr1",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31336,6 +43205,7 @@
},
{
"method_name": "getShipAddr2",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31356,6 +43226,7 @@
},
{
"method_name": "getShipCity",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31376,6 +43247,7 @@
},
{
"method_name": "getShipState",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31396,6 +43268,7 @@
},
{
"method_name": "getShipZip",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31416,6 +43289,7 @@
},
{
"method_name": "getShipPhone",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31436,6 +43310,7 @@
},
{
"method_name": "getShippingMethod",
+ "comment": null,
"receiver_expr": "order",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order",
"argument_types": [],
@@ -31462,9 +43337,18 @@
"is_entrypoint": false
},
"getCardExpMonth()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getCardExpMonth()",
- "comment": "/**\r\n\t * @return the cardExpMonth\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the cardExpMonth\r\n\t ",
+ "start_line": 459,
+ "end_line": 461,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31472,9 +43356,10 @@
"thrown_exceptions": [],
"declaration": "public String getCardExpMonth()",
"parameters": [],
- "code": "{\n return cardExpMonth;\n}",
+ "code": "{\r\n\t\treturn cardExpMonth;\r\n\t}",
"start_line": 462,
"end_line": 464,
+ "code_start_line": 462,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -31490,9 +43375,18 @@
"is_entrypoint": false
},
"setBillPhone(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setBillPhone(String)",
- "comment": "/**\r\n\t * @param billPhone\r\n\t * the billPhone to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param billPhone\r\n\t * the billPhone to set\r\n\t ",
+ "start_line": 286,
+ "end_line": 289,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31504,12 +43398,17 @@
"type": "java.lang.String",
"name": "billPhone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 290,
+ "end_line": 290,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.billPhone = billPhone;\n}",
+ "code": "{\r\n\t\tthis.billPhone = billPhone;\r\n\t}",
"start_line": 290,
"end_line": 292,
+ "code_start_line": 290,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -31527,9 +43426,18 @@
"is_entrypoint": false
},
"getBillState()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getBillState()",
- "comment": "/**\r\n\t * @return the billState\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the billState\r\n\t ",
+ "start_line": 249,
+ "end_line": 251,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31537,9 +43445,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillState()",
"parameters": [],
- "code": "{\n return billState;\n}",
+ "code": "{\r\n\t\treturn billState;\r\n\t}",
"start_line": 252,
"end_line": 254,
+ "code_start_line": 252,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -31555,9 +43464,18 @@
"is_entrypoint": false
},
"setBillAddr1(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setBillAddr1(String)",
- "comment": "/**\r\n\t * @param billAddr1\r\n\t * the billAddr1 to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param billAddr1\r\n\t * the billAddr1 to set\r\n\t ",
+ "start_line": 211,
+ "end_line": 214,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31569,12 +43487,17 @@
"type": "java.lang.String",
"name": "billAddr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 215,
+ "end_line": 215,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.billAddr1 = billAddr1;\n}",
+ "code": "{\r\n\t\tthis.billAddr1 = billAddr1;\r\n\t}",
"start_line": 215,
"end_line": 217,
+ "code_start_line": 215,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -31592,9 +43515,18 @@
"is_entrypoint": false
},
"setBillState(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setBillState(String)",
- "comment": "/**\r\n\t * @param billState\r\n\t * the billState to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param billState\r\n\t * the billState to set\r\n\t ",
+ "start_line": 256,
+ "end_line": 259,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31606,12 +43538,17 @@
"type": "java.lang.String",
"name": "billState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 260,
+ "end_line": 260,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.billState = billState;\n}",
+ "code": "{\r\n\t\tthis.billState = billState;\r\n\t}",
"start_line": 260,
"end_line": 262,
+ "code_start_line": 260,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -31629,9 +43566,18 @@
"is_entrypoint": false
},
"(String, String, String, String, String, String, String, String, String, String, String, String, String, String, int, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "OrderInfo(String, String, String, String, String, String, String, String, String, String, String, String, String, String, int, String)",
- "comment": "/**\r\n\t * Constructor to create an OrderInfo by passing each field.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Constructor to create an OrderInfo by passing each field.\r\n\t ",
+ "start_line": 85,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31643,102 +43589,167 @@
"type": "java.lang.String",
"name": "billName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 19,
+ "end_column": 33
},
{
"type": "java.lang.String",
"name": "billAddr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 36,
+ "end_column": 51
},
{
"type": "java.lang.String",
"name": "billAddr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 54,
+ "end_column": 69
},
{
"type": "java.lang.String",
"name": "billCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 72,
+ "end_column": 86
},
{
"type": "java.lang.String",
"name": "billState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 89,
+ "end_column": 104
},
{
"type": "java.lang.String",
"name": "billZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 89,
+ "end_line": 89,
+ "start_column": 4,
+ "end_column": 17
},
{
"type": "java.lang.String",
"name": "billPhone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 89,
+ "end_line": 89,
+ "start_column": 20,
+ "end_column": 35
},
{
"type": "java.lang.String",
"name": "shipName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 89,
+ "end_line": 89,
+ "start_column": 38,
+ "end_column": 52
},
{
"type": "java.lang.String",
"name": "shipAddr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 89,
+ "end_line": 89,
+ "start_column": 55,
+ "end_column": 70
},
{
"type": "java.lang.String",
"name": "shipAddr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 89,
+ "end_line": 89,
+ "start_column": 73,
+ "end_column": 88
},
{
"type": "java.lang.String",
"name": "shipCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 89,
+ "end_line": 89,
+ "start_column": 91,
+ "end_column": 105
},
{
"type": "java.lang.String",
"name": "shipState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "shipZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 22,
+ "end_column": 35
},
{
"type": "java.lang.String",
"name": "shipPhone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 38,
+ "end_column": 53
},
{
"type": "int",
"name": "shippingMethod",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 56,
+ "end_column": 73
},
{
"type": "java.lang.String",
"name": "orderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 76,
+ "end_column": 89
}
],
- "code": "{\n this.orderID = orderID;\n this.billName = billName;\n this.billAddr1 = billAddr1;\n this.billAddr2 = billAddr2;\n this.billCity = billCity;\n this.billState = billState;\n this.billZip = billZip;\n this.billPhone = billPhone;\n this.shipName = shipName;\n this.shipAddr1 = shipAddr1;\n this.shipAddr2 = shipAddr2;\n this.shipCity = shipCity;\n this.shipState = shipState;\n this.shipZip = shipZip;\n this.shipPhone = shipPhone;\n this.shippingMethod = shippingMethod;\n initLists();\n cardholderName = \"\";\n cardNum = \"\";\n}",
+ "code": "{\r\n\t\tthis.orderID = orderID;\r\n\t\tthis.billName = billName;\r\n\t\tthis.billAddr1 = billAddr1;\r\n\t\tthis.billAddr2 = billAddr2;\r\n\t\tthis.billCity = billCity;\r\n\t\tthis.billState = billState;\r\n\t\tthis.billZip = billZip;\r\n\t\tthis.billPhone = billPhone;\r\n\t\tthis.shipName = shipName;\r\n\t\tthis.shipAddr1 = shipAddr1;\r\n\t\tthis.shipAddr2 = shipAddr2;\r\n\t\tthis.shipCity = shipCity;\r\n\t\tthis.shipState = shipState;\r\n\t\tthis.shipZip = shipZip;\r\n\t\tthis.shipPhone = shipPhone;\r\n\t\tthis.shippingMethod = shippingMethod;\r\n\t\tinitLists();\r\n\t\tcardholderName = \"\";\r\n\t\tcardNum = \"\";\r\n\t}",
"start_line": 88,
"end_line": 110,
+ "code_start_line": 90,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -31768,6 +43779,7 @@
"call_sites": [
{
"method_name": "initLists",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -31794,9 +43806,18 @@
"is_entrypoint": false
},
"getBillName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getBillName()",
- "comment": "/**\r\n\t * @return the billName\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the billName\r\n\t ",
+ "start_line": 189,
+ "end_line": 191,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31804,9 +43825,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillName()",
"parameters": [],
- "code": "{\n return billName;\n}",
+ "code": "{\r\n\t\treturn billName;\r\n\t}",
"start_line": 192,
"end_line": 194,
+ "code_start_line": 192,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -31822,9 +43844,18 @@
"is_entrypoint": false
},
"isShipisbill()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "isShipisbill()",
- "comment": "/**\r\n\t * @return the shipisbill\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the shipisbill\r\n\t ",
+ "start_line": 504,
+ "end_line": 506,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31832,9 +43863,10 @@
"thrown_exceptions": [],
"declaration": "public boolean isShipisbill()",
"parameters": [],
- "code": "{\n return shipisbill;\n}",
+ "code": "{\r\n\t\treturn shipisbill;\r\n\t}",
"start_line": 507,
"end_line": 509,
+ "code_start_line": 507,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -31850,9 +43882,18 @@
"is_entrypoint": false
},
"getCardName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getCardName()",
- "comment": "/**\r\n\t * @return the cardName\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the cardName\r\n\t ",
+ "start_line": 429,
+ "end_line": 431,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31860,9 +43901,10 @@
"thrown_exceptions": [],
"declaration": "public String getCardName()",
"parameters": [],
- "code": "{\n return cardName;\n}",
+ "code": "{\r\n\t\treturn cardName;\r\n\t}",
"start_line": 432,
"end_line": 434,
+ "code_start_line": 432,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -31878,9 +43920,18 @@
"is_entrypoint": false
},
"setID(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setID(String)",
- "comment": "/**\r\n\t * @param orderID\r\n\t * the orderID to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param orderID\r\n\t * the orderID to set\r\n\t ",
+ "start_line": 181,
+ "end_line": 184,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31892,12 +43943,17 @@
"type": "java.lang.String",
"name": "orderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 185,
+ "end_line": 185,
+ "start_column": 20,
+ "end_column": 33
}
],
- "code": "{\n this.orderID = orderID;\n}",
+ "code": "{\r\n\t\tthis.orderID = orderID;\r\n\t}",
"start_line": 185,
"end_line": 187,
+ "code_start_line": 185,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -31915,9 +43971,18 @@
"is_entrypoint": false
},
"getShippingMethods()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShippingMethods()",
- "comment": "/**\r\n\t * Get shipping methods that are possible.\r\n\t * \r\n\t * @return String[] of method names\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Get shipping methods that are possible.\r\n\t * \r\n\t * @return String[] of method names\r\n\t ",
+ "start_line": 154,
+ "end_line": 158,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -31925,9 +43990,10 @@
"thrown_exceptions": [],
"declaration": "public String[] getShippingMethods()",
"parameters": [],
- "code": "{\n return Util.getFullShippingMethodStrings();\n}",
+ "code": "{\r\n\t\treturn Util.getFullShippingMethodStrings();\r\n\t}",
"start_line": 159,
"end_line": 161,
+ "code_start_line": 159,
"return_type": "java.lang.String[]",
"is_implicit": false,
"is_constructor": false,
@@ -31936,6 +44002,7 @@
"call_sites": [
{
"method_name": "getFullShippingMethodStrings",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [],
@@ -31962,9 +44029,9 @@
"is_entrypoint": false
},
"initLists()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "initLists()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"private"
@@ -31972,9 +44039,10 @@
"thrown_exceptions": [],
"declaration": "private void initLists()",
"parameters": [],
- "code": "{\n int i = Calendar.getInstance().get(1);\n cardExpYears = new String[5];\n for (int j = 0; j < 5; j++) cardExpYears[j] = (new Integer(i + j)).toString();\n}",
+ "code": "{\r\n\t\tint i = Calendar.getInstance().get(1);\r\n\t\tcardExpYears = new String[5];\r\n\t\tfor (int j = 0; j < 5; j++)\r\n\t\t\tcardExpYears[j] = (new Integer(i + j)).toString();\r\n\t}",
"start_line": 167,
"end_line": 172,
+ "code_start_line": 167,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -31985,6 +44053,7 @@
"call_sites": [
{
"method_name": "get",
+ "comment": null,
"receiver_expr": "Calendar.getInstance()",
"receiver_type": "java.util.Calendar",
"argument_types": [
@@ -32007,6 +44076,7 @@
},
{
"method_name": "getInstance",
+ "comment": null,
"receiver_expr": "Calendar",
"receiver_type": "java.util.Calendar",
"argument_types": [],
@@ -32027,6 +44097,7 @@
},
{
"method_name": "toString",
+ "comment": null,
"receiver_expr": "(new Integer(i + j))",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -32047,6 +44118,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -32070,6 +44142,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "i",
"type": "int",
"initializer": "Calendar.getInstance().get(1)",
@@ -32079,6 +44159,14 @@
"end_column": 39
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "j",
"type": "int",
"initializer": "0",
@@ -32094,9 +44182,18 @@
"is_entrypoint": false
},
"getCardExpYear()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getCardExpYear()",
- "comment": "/**\r\n\t * @return the cardExpYear\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the cardExpYear\r\n\t ",
+ "start_line": 474,
+ "end_line": 476,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32104,9 +44201,10 @@
"thrown_exceptions": [],
"declaration": "public String getCardExpYear()",
"parameters": [],
- "code": "{\n return cardExpYear;\n}",
+ "code": "{\r\n\t\treturn cardExpYear;\r\n\t}",
"start_line": 477,
"end_line": 479,
+ "code_start_line": 477,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -32122,9 +44220,18 @@
"is_entrypoint": false
},
"getBillPhone()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getBillPhone()",
- "comment": "/**\r\n\t * @return the billPhone\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the billPhone\r\n\t ",
+ "start_line": 279,
+ "end_line": 281,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32132,9 +44239,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillPhone()",
"parameters": [],
- "code": "{\n return billPhone;\n}",
+ "code": "{\r\n\t\treturn billPhone;\r\n\t}",
"start_line": 282,
"end_line": 284,
+ "code_start_line": 282,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -32150,9 +44258,18 @@
"is_entrypoint": false
},
"setShippingMethod(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setShippingMethod(int)",
- "comment": "/**\r\n\t * @param shippingMethod\r\n\t * the shippingMethod to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param shippingMethod\r\n\t * the shippingMethod to set\r\n\t ",
+ "start_line": 406,
+ "end_line": 409,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32164,12 +44281,17 @@
"type": "int",
"name": "shippingMethod",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 410,
+ "end_line": 410,
+ "start_column": 32,
+ "end_column": 49
}
],
- "code": "{\n this.shippingMethod = shippingMethod;\n}",
+ "code": "{\r\n\t\tthis.shippingMethod = shippingMethod;\r\n\t}",
"start_line": 410,
"end_line": 412,
+ "code_start_line": 410,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32185,9 +44307,18 @@
"is_entrypoint": false
},
"setBillCity(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setBillCity(String)",
- "comment": "/**\r\n\t * @param billCity\r\n\t * the billCity to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param billCity\r\n\t * the billCity to set\r\n\t ",
+ "start_line": 241,
+ "end_line": 244,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32199,12 +44330,17 @@
"type": "java.lang.String",
"name": "billCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 245,
+ "end_line": 245,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.billCity = billCity;\n}",
+ "code": "{\r\n\t\tthis.billCity = billCity;\r\n\t}",
"start_line": 245,
"end_line": 247,
+ "code_start_line": 245,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32222,9 +44358,18 @@
"is_entrypoint": false
},
"getID()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getID()",
- "comment": "/**\r\n\t * @return the orderID\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the orderID\r\n\t ",
+ "start_line": 174,
+ "end_line": 176,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32232,9 +44377,10 @@
"thrown_exceptions": [],
"declaration": "public String getID()",
"parameters": [],
- "code": "{\n return orderID;\n}",
+ "code": "{\r\n\t\treturn orderID;\r\n\t}",
"start_line": 177,
"end_line": 179,
+ "code_start_line": 177,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -32250,9 +44396,18 @@
"is_entrypoint": false
},
"setCardName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setCardName(String)",
- "comment": "/**\r\n\t * @param cardName\r\n\t * the cardName to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param cardName\r\n\t * the cardName to set\r\n\t ",
+ "start_line": 436,
+ "end_line": 439,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32264,12 +44419,17 @@
"type": "java.lang.String",
"name": "cardName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 440,
+ "end_line": 440,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.cardName = cardName;\n}",
+ "code": "{\r\n\t\tthis.cardName = cardName;\r\n\t}",
"start_line": 440,
"end_line": 442,
+ "code_start_line": 440,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32287,9 +44447,18 @@
"is_entrypoint": false
},
"setCardExpYears(String[])": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setCardExpYears(String[])",
- "comment": "/**\r\n\t * @param cardExpYears\r\n\t * the cardExpYears to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param cardExpYears\r\n\t * the cardExpYears to set\r\n\t ",
+ "start_line": 496,
+ "end_line": 499,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32301,12 +44470,17 @@
"type": "java.lang.String[]",
"name": "cardExpYears",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 500,
+ "end_line": 500,
+ "start_column": 30,
+ "end_column": 50
}
],
- "code": "{\n this.cardExpYears = cardExpYears;\n}",
+ "code": "{\r\n\t\tthis.cardExpYears = cardExpYears;\r\n\t}",
"start_line": 500,
"end_line": 502,
+ "code_start_line": 500,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32322,9 +44496,18 @@
"is_entrypoint": false
},
"setShipPhone(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setShipPhone(String)",
- "comment": "/**\r\n\t * @param shipPhone\r\n\t * the shipPhone to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param shipPhone\r\n\t * the shipPhone to set\r\n\t ",
+ "start_line": 391,
+ "end_line": 394,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32336,12 +44519,17 @@
"type": "java.lang.String",
"name": "shipPhone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 395,
+ "end_line": 395,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.shipPhone = shipPhone;\n}",
+ "code": "{\r\n\t\tthis.shipPhone = shipPhone;\r\n\t}",
"start_line": 395,
"end_line": 397,
+ "code_start_line": 395,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32359,9 +44547,18 @@
"is_entrypoint": false
},
"getShippingMethod()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShippingMethod()",
- "comment": "/**\r\n\t * @return the shippingMethod\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the shippingMethod\r\n\t ",
+ "start_line": 399,
+ "end_line": 401,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32369,9 +44566,10 @@
"thrown_exceptions": [],
"declaration": "public int getShippingMethod()",
"parameters": [],
- "code": "{\n return shippingMethod;\n}",
+ "code": "{\r\n\t\treturn shippingMethod;\r\n\t}",
"start_line": 402,
"end_line": 404,
+ "code_start_line": 402,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -32387,9 +44585,18 @@
"is_entrypoint": false
},
"getCardNum()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getCardNum()",
- "comment": "/**\r\n\t * @return the cardNum\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the cardNum\r\n\t ",
+ "start_line": 444,
+ "end_line": 446,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32397,9 +44604,10 @@
"thrown_exceptions": [],
"declaration": "public String getCardNum()",
"parameters": [],
- "code": "{\n return cardNum;\n}",
+ "code": "{\r\n\t\treturn cardNum;\r\n\t}",
"start_line": 447,
"end_line": 449,
+ "code_start_line": 447,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -32415,9 +44623,18 @@
"is_entrypoint": false
},
"getBillAddr2()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getBillAddr2()",
- "comment": "/**\r\n\t * @return the billAddr2\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the billAddr2\r\n\t ",
+ "start_line": 219,
+ "end_line": 221,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32425,9 +44642,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillAddr2()",
"parameters": [],
- "code": "{\n return billAddr2;\n}",
+ "code": "{\r\n\t\treturn billAddr2;\r\n\t}",
"start_line": 222,
"end_line": 224,
+ "code_start_line": 222,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -32443,9 +44661,18 @@
"is_entrypoint": false
},
"setCardExpMonth(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setCardExpMonth(String)",
- "comment": "/**\r\n\t * @param cardExpMonth\r\n\t * the cardExpMonth to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param cardExpMonth\r\n\t * the cardExpMonth to set\r\n\t ",
+ "start_line": 466,
+ "end_line": 469,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32457,12 +44684,17 @@
"type": "java.lang.String",
"name": "cardExpMonth",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 470,
+ "end_line": 470,
+ "start_column": 30,
+ "end_column": 48
}
],
- "code": "{\n this.cardExpMonth = cardExpMonth;\n}",
+ "code": "{\r\n\t\tthis.cardExpMonth = cardExpMonth;\r\n\t}",
"start_line": 470,
"end_line": 472,
+ "code_start_line": 470,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32480,9 +44712,18 @@
"is_entrypoint": false
},
"setShipCity(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setShipCity(String)",
- "comment": "/**\r\n\t * @param shipCity\r\n\t * the shipCity to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param shipCity\r\n\t * the shipCity to set\r\n\t ",
+ "start_line": 346,
+ "end_line": 349,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32494,12 +44735,17 @@
"type": "java.lang.String",
"name": "shipCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 350,
+ "end_line": 350,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.shipCity = shipCity;\n}",
+ "code": "{\r\n\t\tthis.shipCity = shipCity;\r\n\t}",
"start_line": 350,
"end_line": 352,
+ "code_start_line": 350,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32517,9 +44763,18 @@
"is_entrypoint": false
},
"setCardExpYear(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setCardExpYear(String)",
- "comment": "/**\r\n\t * @param cardExpYear\r\n\t * the cardExpYear to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param cardExpYear\r\n\t * the cardExpYear to set\r\n\t ",
+ "start_line": 481,
+ "end_line": 484,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32531,12 +44786,17 @@
"type": "java.lang.String",
"name": "cardExpYear",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 485,
+ "end_line": 485,
+ "start_column": 29,
+ "end_column": 46
}
],
- "code": "{\n this.cardExpYear = cardExpYear;\n}",
+ "code": "{\r\n\t\tthis.cardExpYear = cardExpYear;\r\n\t}",
"start_line": 485,
"end_line": 487,
+ "code_start_line": 485,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32554,9 +44814,18 @@
"is_entrypoint": false
},
"setShipName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setShipName(String)",
- "comment": "/**\r\n\t * @param shipName\r\n\t * the shipName to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param shipName\r\n\t * the shipName to set\r\n\t ",
+ "start_line": 301,
+ "end_line": 304,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32568,12 +44837,17 @@
"type": "java.lang.String",
"name": "shipName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 305,
+ "end_line": 305,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.shipName = shipName;\n}",
+ "code": "{\r\n\t\tthis.shipName = shipName;\r\n\t}",
"start_line": 305,
"end_line": 307,
+ "code_start_line": 305,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32591,9 +44865,18 @@
"is_entrypoint": false
},
"setShippingMethodName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setShippingMethodName(String)",
- "comment": "/**\r\n\t * Set the shipping method by name\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Set the shipping method by name\r\n\t ",
+ "start_line": 143,
+ "end_line": 145,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32605,12 +44888,17 @@
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 146,
+ "end_line": 146,
+ "start_column": 36,
+ "end_column": 46
}
],
- "code": "{\n String[] methodNames = Util.getShippingMethodStrings();\n for (int i = 0; i < methodNames.length; i++) {\n if (methodNames[i].equals(name))\n shippingMethod = i;\n }\n}",
+ "code": "{\r\n\t\tString[] methodNames = Util.getShippingMethodStrings();\r\n\t\tfor (int i = 0; i < methodNames.length; i++) {\r\n\t\t\tif (methodNames[i].equals(name))\r\n\t\t\t\tshippingMethod = i;\r\n\t\t}\r\n\t}",
"start_line": 146,
"end_line": 152,
+ "code_start_line": 146,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32622,6 +44910,7 @@
"call_sites": [
{
"method_name": "getShippingMethodStrings",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [],
@@ -32642,6 +44931,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "methodNames[i]",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -32665,6 +44955,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "methodNames",
"type": "java.lang.String[]",
"initializer": "Util.getShippingMethodStrings()",
@@ -32674,6 +44972,14 @@
"end_column": 56
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "i",
"type": "int",
"initializer": "0",
@@ -32689,9 +44995,18 @@
"is_entrypoint": false
},
"setBillZip(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setBillZip(String)",
- "comment": "/**\r\n\t * @param billZip\r\n\t * the billZip to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param billZip\r\n\t * the billZip to set\r\n\t ",
+ "start_line": 271,
+ "end_line": 274,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32703,12 +45018,17 @@
"type": "java.lang.String",
"name": "billZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 275,
+ "end_line": 275,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n this.billZip = billZip;\n}",
+ "code": "{\r\n\t\tthis.billZip = billZip;\r\n\t}",
"start_line": 275,
"end_line": 277,
+ "code_start_line": 275,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32726,9 +45046,18 @@
"is_entrypoint": false
},
"getShipName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShipName()",
- "comment": "/**\r\n\t * @return the shipName\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the shipName\r\n\t ",
+ "start_line": 294,
+ "end_line": 296,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32736,9 +45065,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipName()",
"parameters": [],
- "code": "{\n return shipName;\n}",
+ "code": "{\r\n\t\treturn shipName;\r\n\t}",
"start_line": 297,
"end_line": 299,
+ "code_start_line": 297,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -32754,9 +45084,18 @@
"is_entrypoint": false
},
"getShipAddr2()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShipAddr2()",
- "comment": "/**\r\n\t * @return the shipAddr2\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the shipAddr2\r\n\t ",
+ "start_line": 324,
+ "end_line": 326,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32764,9 +45103,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipAddr2()",
"parameters": [],
- "code": "{\n return shipAddr2;\n}",
+ "code": "{\r\n\t\treturn shipAddr2;\r\n\t}",
"start_line": 327,
"end_line": 329,
+ "code_start_line": 327,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -32782,9 +45122,18 @@
"is_entrypoint": false
},
"setBillAddr2(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setBillAddr2(String)",
- "comment": "/**\r\n\t * @param billAddr2\r\n\t * the billAddr2 to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param billAddr2\r\n\t * the billAddr2 to set\r\n\t ",
+ "start_line": 226,
+ "end_line": 229,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32796,12 +45145,17 @@
"type": "java.lang.String",
"name": "billAddr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 230,
+ "end_line": 230,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.billAddr2 = billAddr2;\n}",
+ "code": "{\r\n\t\tthis.billAddr2 = billAddr2;\r\n\t}",
"start_line": 230,
"end_line": 232,
+ "code_start_line": 230,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32819,9 +45173,18 @@
"is_entrypoint": false
},
"setShipAddr1(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setShipAddr1(String)",
- "comment": "/**\r\n\t * @param shipAddr1\r\n\t * the shipAddr1 to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param shipAddr1\r\n\t * the shipAddr1 to set\r\n\t ",
+ "start_line": 316,
+ "end_line": 319,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32833,12 +45196,17 @@
"type": "java.lang.String",
"name": "shipAddr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 320,
+ "end_line": 320,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.shipAddr1 = shipAddr1;\n}",
+ "code": "{\r\n\t\tthis.shipAddr1 = shipAddr1;\r\n\t}",
"start_line": 320,
"end_line": 322,
+ "code_start_line": 320,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32856,9 +45224,18 @@
"is_entrypoint": false
},
"getShipState()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShipState()",
- "comment": "/**\r\n\t * @return the shipState\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the shipState\r\n\t ",
+ "start_line": 354,
+ "end_line": 356,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32866,9 +45243,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipState()",
"parameters": [],
- "code": "{\n return shipState;\n}",
+ "code": "{\r\n\t\treturn shipState;\r\n\t}",
"start_line": 357,
"end_line": 359,
+ "code_start_line": 357,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -32884,9 +45262,18 @@
"is_entrypoint": false
},
"getCardExpYears()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getCardExpYears()",
- "comment": "/**\r\n\t * @return the cardExpYears\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the cardExpYears\r\n\t ",
+ "start_line": 489,
+ "end_line": 491,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32894,9 +45281,10 @@
"thrown_exceptions": [],
"declaration": "public String[] getCardExpYears()",
"parameters": [],
- "code": "{\n return cardExpYears;\n}",
+ "code": "{\r\n\t\treturn cardExpYears;\r\n\t}",
"start_line": 492,
"end_line": 494,
+ "code_start_line": 492,
"return_type": "java.lang.String[]",
"is_implicit": false,
"is_constructor": false,
@@ -32912,9 +45300,18 @@
"is_entrypoint": false
},
"getBillZip()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getBillZip()",
- "comment": "/**\r\n\t * @return the billZip\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the billZip\r\n\t ",
+ "start_line": 264,
+ "end_line": 266,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32922,9 +45319,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillZip()",
"parameters": [],
- "code": "{\n return billZip;\n}",
+ "code": "{\r\n\t\treturn billZip;\r\n\t}",
"start_line": 267,
"end_line": 269,
+ "code_start_line": 267,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -32940,9 +45338,18 @@
"is_entrypoint": false
},
"setBillName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setBillName(String)",
- "comment": "/**\r\n\t * @param billName\r\n\t * the billName to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param billName\r\n\t * the billName to set\r\n\t ",
+ "start_line": 196,
+ "end_line": 199,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32954,12 +45361,17 @@
"type": "java.lang.String",
"name": "billName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 200,
+ "end_line": 200,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.billName = billName;\n}",
+ "code": "{\r\n\t\tthis.billName = billName;\r\n\t}",
"start_line": 200,
"end_line": 202,
+ "code_start_line": 200,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -32977,9 +45389,18 @@
"is_entrypoint": false
},
"setShipState(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setShipState(String)",
- "comment": "/**\r\n\t * @param shipState\r\n\t * the shipState to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param shipState\r\n\t * the shipState to set\r\n\t ",
+ "start_line": 361,
+ "end_line": 364,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -32991,12 +45412,17 @@
"type": "java.lang.String",
"name": "shipState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 365,
+ "end_line": 365,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.shipState = shipState;\n}",
+ "code": "{\r\n\t\tthis.shipState = shipState;\r\n\t}",
"start_line": 365,
"end_line": 367,
+ "code_start_line": 365,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -33014,9 +45440,18 @@
"is_entrypoint": false
},
"getShipPhone()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShipPhone()",
- "comment": "/**\r\n\t * @return the shipPhone\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the shipPhone\r\n\t ",
+ "start_line": 384,
+ "end_line": 386,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -33024,9 +45459,10 @@
"thrown_exceptions": [],
"declaration": "public String getShipPhone()",
"parameters": [],
- "code": "{\n return shipPhone;\n}",
+ "code": "{\r\n\t\treturn shipPhone;\r\n\t}",
"start_line": 387,
"end_line": 389,
+ "code_start_line": 387,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -33042,9 +45478,18 @@
"is_entrypoint": false
},
"getBillCity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getBillCity()",
- "comment": "/**\r\n\t * @return the billCity\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the billCity\r\n\t ",
+ "start_line": 234,
+ "end_line": 236,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -33052,9 +45497,10 @@
"thrown_exceptions": [],
"declaration": "public String getBillCity()",
"parameters": [],
- "code": "{\n return billCity;\n}",
+ "code": "{\r\n\t\treturn billCity;\r\n\t}",
"start_line": 237,
"end_line": 239,
+ "code_start_line": 237,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -33070,9 +45516,18 @@
"is_entrypoint": false
},
"getShippingMethodName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getShippingMethodName()",
- "comment": "/**\r\n\t * Get the shipping method name.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Get the shipping method name.\r\n\t ",
+ "start_line": 136,
+ "end_line": 138,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -33080,9 +45535,10 @@
"thrown_exceptions": [],
"declaration": "public String getShippingMethodName()",
"parameters": [],
- "code": "{\n return getShippingMethods()[shippingMethod];\n}",
+ "code": "{\r\n\t\treturn getShippingMethods()[shippingMethod];\r\n\t}",
"start_line": 139,
"end_line": 141,
+ "code_start_line": 139,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -33093,6 +45549,7 @@
"call_sites": [
{
"method_name": "getShippingMethods",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -33119,9 +45576,18 @@
"is_entrypoint": false
},
"setCardholderName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setCardholderName(String)",
- "comment": "/**\r\n\t * @param cardholderName\r\n\t * the cardholderName to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param cardholderName\r\n\t * the cardholderName to set\r\n\t ",
+ "start_line": 421,
+ "end_line": 424,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -33133,12 +45599,17 @@
"type": "java.lang.String",
"name": "cardholderName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 425,
+ "end_line": 425,
+ "start_column": 32,
+ "end_column": 52
}
],
- "code": "{\n this.cardholderName = cardholderName;\n}",
+ "code": "{\r\n\t\tthis.cardholderName = cardholderName;\r\n\t}",
"start_line": 425,
"end_line": 427,
+ "code_start_line": 425,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -33156,9 +45627,18 @@
"is_entrypoint": false
},
"setShipZip(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setShipZip(String)",
- "comment": "/**\r\n\t * @param shipZip\r\n\t * the shipZip to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param shipZip\r\n\t * the shipZip to set\r\n\t ",
+ "start_line": 376,
+ "end_line": 379,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -33170,12 +45650,17 @@
"type": "java.lang.String",
"name": "shipZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 380,
+ "end_line": 380,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n this.shipZip = shipZip;\n}",
+ "code": "{\r\n\t\tthis.shipZip = shipZip;\r\n\t}",
"start_line": 380,
"end_line": 382,
+ "code_start_line": 380,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -33193,9 +45678,18 @@
"is_entrypoint": false
},
"getCardholderName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "getCardholderName()",
- "comment": "/**\r\n\t * @return the cardholderName\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return the cardholderName\r\n\t ",
+ "start_line": 414,
+ "end_line": 416,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -33203,9 +45697,10 @@
"thrown_exceptions": [],
"declaration": "public String getCardholderName()",
"parameters": [],
- "code": "{\n return cardholderName;\n}",
+ "code": "{\r\n\t\treturn cardholderName;\r\n\t}",
"start_line": 417,
"end_line": 419,
+ "code_start_line": 417,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -33221,9 +45716,18 @@
"is_entrypoint": false
},
"setCardNum(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java",
"signature": "setCardNum(String)",
- "comment": "/**\r\n\t * @param cardNum\r\n\t * the cardNum to set\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param cardNum\r\n\t * the cardNum to set\r\n\t ",
+ "start_line": 451,
+ "end_line": 454,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -33235,12 +45739,17 @@
"type": "java.lang.String",
"name": "cardNum",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 455,
+ "end_line": 455,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n this.cardNum = cardNum;\n}",
+ "code": "{\r\n\t\tthis.cardNum = cardNum;\r\n\t}",
"start_line": 455,
"end_line": 457,
+ "code_start_line": 455,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -33260,7 +45769,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 32,
@@ -33276,7 +45792,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 33,
@@ -33290,7 +45813,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 34,
@@ -33307,7 +45837,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 37,
@@ -33324,7 +45861,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 40,
@@ -33338,7 +45882,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 41,
@@ -33355,7 +45906,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 44,
@@ -33372,7 +45930,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 48,
@@ -33388,7 +45953,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 51,
@@ -33404,7 +45976,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 53,
@@ -33421,7 +46000,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 56,
@@ -33438,7 +46024,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 59,
@@ -33452,7 +46045,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 60,
@@ -33469,7 +46069,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 63,
@@ -33486,7 +46093,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 67,
@@ -33502,7 +46116,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 70,
@@ -33518,7 +46139,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "int",
"start_line": 72,
@@ -33532,7 +46160,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 73,
@@ -33549,7 +46184,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 76,
@@ -33563,7 +46205,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 78,
@@ -33579,7 +46228,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 80,
@@ -33593,7 +46249,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 81,
@@ -33607,7 +46270,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String[]",
"start_line": 82,
@@ -33621,7 +46291,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "boolean",
"start_line": 83,
@@ -33635,15 +46312,307 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/ListProperties.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/ListProperties.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/ListProperties.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/ListProperties.java",
+ "package_name": "com.ibm.websphere.samples.pbw.utils",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2004,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * @author aamortim\r\n *\r\n * To change the template for this generated type comment go to\r\n * Window>Preferences>Java>Code Generation>Code and Comments\r\n ",
+ "start_line": 28,
+ "end_line": 33,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Utility class.\r\n ",
+ "start_line": 34,
+ "end_line": 36,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": " Method load\r\n * @param inStream\r\n ",
+ "start_line": 43,
+ "end_line": 45,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 38,
+ "end_line": 40,
+ "start_column": 5,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Parse property file, remove comments, blank lines, and combine",
+ "start_line": 50,
+ "end_line": 50,
+ "start_column": 13,
+ "end_column": 77,
+ "is_javadoc": false
+ },
+ {
+ "content": " continued lines.",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 13,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " Skipping comment",
+ "start_line": 61,
+ "end_line": 61,
+ "start_column": 21,
+ "end_column": 39,
+ "is_javadoc": false
+ },
+ {
+ "content": " Skipping comment",
+ "start_line": 63,
+ "end_line": 63,
+ "start_column": 21,
+ "end_column": 39,
+ "is_javadoc": false
+ },
+ {
+ "content": " Skipping blank lines",
+ "start_line": 65,
+ "end_line": 65,
+ "start_column": 21,
+ "end_column": 43,
+ "is_javadoc": false
+ },
+ {
+ "content": " This is a continuation line. Add to previous line.",
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 25,
+ "end_column": 79,
+ "is_javadoc": false
+ },
+ {
+ "content": " Must be a property line",
+ "start_line": 73,
+ "end_line": 73,
+ "start_column": 21,
+ "end_column": 46,
+ "is_javadoc": false
+ },
+ {
+ "content": " Next line is continued from the current one.",
+ "start_line": 75,
+ "end_line": 75,
+ "start_column": 25,
+ "end_column": 71,
+ "is_javadoc": false
+ },
+ {
+ "content": " The current line is completed. Parse the property.",
+ "start_line": 78,
+ "end_line": 78,
+ "start_column": 25,
+ "end_column": 79,
+ "is_javadoc": false
+ },
+ {
+ "content": " Load Properties",
+ "start_line": 86,
+ "end_line": 86,
+ "start_column": 13,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": " Now parse the Properties to create an array",
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 13,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Parse the line to get the key,value pair",
+ "start_line": 92,
+ "end_line": 92,
+ "start_column": 17,
+ "end_column": 59,
+ "is_javadoc": false
+ },
+ {
+ "content": " Previous key,value was already created.",
+ "start_line": 97,
+ "end_line": 97,
+ "start_column": 25,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " Need an array",
+ "start_line": 98,
+ "end_line": 98,
+ "start_column": 25,
+ "end_column": 40,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Method readTokens.\r\n * @param text\r\n * @param token\r\n * @return list\r\n ",
+ "start_line": 116,
+ "end_line": 121,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Method getProperties.\r\n * @param name\r\n * @return values\r\n ",
+ "start_line": 131,
+ "end_line": 135,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.BufferedReader",
"java.io.IOException",
@@ -33667,7 +46636,160 @@
"extends_list": [
"java.util.Properties"
],
- "comment": "/**\r\n * Utility class.\r\n */",
+ "comments": [
+ {
+ "content": " Method load\r\n * @param inStream\r\n ",
+ "start_line": 43,
+ "end_line": 45,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 38,
+ "end_line": 40,
+ "start_column": 5,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Parse property file, remove comments, blank lines, and combine",
+ "start_line": 50,
+ "end_line": 50,
+ "start_column": 13,
+ "end_column": 77,
+ "is_javadoc": false
+ },
+ {
+ "content": " continued lines.",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 13,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " Skipping comment",
+ "start_line": 61,
+ "end_line": 61,
+ "start_column": 21,
+ "end_column": 39,
+ "is_javadoc": false
+ },
+ {
+ "content": " Skipping comment",
+ "start_line": 63,
+ "end_line": 63,
+ "start_column": 21,
+ "end_column": 39,
+ "is_javadoc": false
+ },
+ {
+ "content": " Skipping blank lines",
+ "start_line": 65,
+ "end_line": 65,
+ "start_column": 21,
+ "end_column": 43,
+ "is_javadoc": false
+ },
+ {
+ "content": " This is a continuation line. Add to previous line.",
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 25,
+ "end_column": 79,
+ "is_javadoc": false
+ },
+ {
+ "content": " Must be a property line",
+ "start_line": 73,
+ "end_line": 73,
+ "start_column": 21,
+ "end_column": 46,
+ "is_javadoc": false
+ },
+ {
+ "content": " Next line is continued from the current one.",
+ "start_line": 75,
+ "end_line": 75,
+ "start_column": 25,
+ "end_column": 71,
+ "is_javadoc": false
+ },
+ {
+ "content": " The current line is completed. Parse the property.",
+ "start_line": 78,
+ "end_line": 78,
+ "start_column": 25,
+ "end_column": 79,
+ "is_javadoc": false
+ },
+ {
+ "content": " Load Properties",
+ "start_line": 86,
+ "end_line": 86,
+ "start_column": 13,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": " Now parse the Properties to create an array",
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 13,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Parse the line to get the key,value pair",
+ "start_line": 92,
+ "end_line": 92,
+ "start_column": 17,
+ "end_column": 59,
+ "is_javadoc": false
+ },
+ {
+ "content": " Previous key,value was already created.",
+ "start_line": 97,
+ "end_line": 97,
+ "start_column": 25,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " Need an array",
+ "start_line": 98,
+ "end_line": 98,
+ "start_column": 25,
+ "end_column": 40,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Method readTokens.\r\n * @param text\r\n * @param token\r\n * @return list\r\n ",
+ "start_line": 116,
+ "end_line": 121,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Method getProperties.\r\n * @param name\r\n * @return values\r\n ",
+ "start_line": 131,
+ "end_line": 135,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Utility class.\r\n ",
+ "start_line": 34,
+ "end_line": 36,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -33677,9 +46799,122 @@
"nested_type_declarations": [],
"callable_declarations": {
"load(InputStream)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/ListProperties.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/ListProperties.java",
"signature": "load(InputStream)",
- "comment": "",
+ "comments": [
+ {
+ "content": " Parse property file, remove comments, blank lines, and combine",
+ "start_line": 50,
+ "end_line": 50,
+ "start_column": 13,
+ "end_column": 77,
+ "is_javadoc": false
+ },
+ {
+ "content": " continued lines.",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 13,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " Skipping comment",
+ "start_line": 61,
+ "end_line": 61,
+ "start_column": 21,
+ "end_column": 39,
+ "is_javadoc": false
+ },
+ {
+ "content": " Skipping comment",
+ "start_line": 63,
+ "end_line": 63,
+ "start_column": 21,
+ "end_column": 39,
+ "is_javadoc": false
+ },
+ {
+ "content": " Skipping blank lines",
+ "start_line": 65,
+ "end_line": 65,
+ "start_column": 21,
+ "end_column": 43,
+ "is_javadoc": false
+ },
+ {
+ "content": " This is a continuation line. Add to previous line.",
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 25,
+ "end_column": 79,
+ "is_javadoc": false
+ },
+ {
+ "content": " Must be a property line",
+ "start_line": 73,
+ "end_line": 73,
+ "start_column": 21,
+ "end_column": 46,
+ "is_javadoc": false
+ },
+ {
+ "content": " Next line is continued from the current one.",
+ "start_line": 75,
+ "end_line": 75,
+ "start_column": 25,
+ "end_column": 71,
+ "is_javadoc": false
+ },
+ {
+ "content": " The current line is completed. Parse the property.",
+ "start_line": 78,
+ "end_line": 78,
+ "start_column": 25,
+ "end_column": 79,
+ "is_javadoc": false
+ },
+ {
+ "content": " Load Properties",
+ "start_line": 86,
+ "end_line": 86,
+ "start_column": 13,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": " Now parse the Properties to create an array",
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 13,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Parse the line to get the key,value pair",
+ "start_line": 92,
+ "end_line": 92,
+ "start_column": 17,
+ "end_column": 59,
+ "is_javadoc": false
+ },
+ {
+ "content": " Previous key,value was already created.",
+ "start_line": 97,
+ "end_line": 97,
+ "start_column": 25,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " Need an array",
+ "start_line": 98,
+ "end_line": 98,
+ "start_column": 25,
+ "end_column": 40,
+ "is_javadoc": false
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -33693,12 +46928,17 @@
"type": "java.io.InputStream",
"name": "inStream",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 47,
+ "end_line": 47,
+ "start_column": 19,
+ "end_column": 38
}
],
- "code": "{\n try {\n Util.debug(\"ListProperties.load - loading from stream \" + inStream);\n // Parse property file, remove comments, blank lines, and combine\n // continued lines.\n String propFile = \"\";\n BufferedReader inputLine = new BufferedReader(new InputStreamReader(inStream));\n String line = inputLine.readLine();\n boolean lineContinue = false;\n while (line != null) {\n Util.debug(\"ListProperties.load - Line read: \" + line);\n line = line.trim();\n String currLine = \"\";\n if (line.startsWith(\"#\")) {\n // Skipping comment\n } else if (line.startsWith(\"!\")) {\n // Skipping comment\n } else if (line.equals(\"\")) {\n // Skipping blank lines\n } else {\n if (!lineContinue) {\n currLine = line;\n } else {\n // This is a continuation line. Add to previous line.\n currLine += line;\n }\n // Must be a property line\n if (line.endsWith(\"\\\\\")) {\n // Next line is continued from the current one.\n lineContinue = true;\n } else {\n // The current line is completed. Parse the property.\n propFile += currLine + \"\\n\";\n currLine = \"\";\n lineContinue = false;\n }\n }\n line = inputLine.readLine();\n }\n // Load Properties\n listProps = new Hashtable>();\n // Now parse the Properties to create an array\n String[] props = readTokens(propFile, \"\\n\");\n for (int index = 0; index < props.length; index++) {\n Util.debug(\"ListProperties.load() - props[\" + index + \"] = \" + props[index]);\n // Parse the line to get the key,value pair\n String[] val = readTokens(props[index], \"=\");\n Util.debug(\"ListProperties.load() - val[0]: \" + val[0] + \" val[1]: \" + val[1]);\n if (!val[0].equals(\"\")) {\n if (this.containsKey(val[0])) {\n // Previous key,value was already created.\n // Need an array\n Vector currList = (Vector) listProps.get(val[0]);\n if ((currList == null) || currList.isEmpty()) {\n currList = new Vector();\n String prevVal = this.getProperty(val[0]);\n currList.addElement(prevVal);\n }\n currList.addElement(val[1]);\n listProps.put(val[0], currList);\n }\n this.setProperty(val[0], val[1]);\n }\n }\n } catch (Exception e) {\n Util.debug(\"ListProperties.load(): Exception: \" + e);\n e.printStackTrace();\n }\n}",
+ "code": "{\r\n try {\r\n \tUtil.debug(\"ListProperties.load - loading from stream \"+inStream);\r\n // Parse property file, remove comments, blank lines, and combine\r\n // continued lines.\r\n String propFile = \"\";\r\n BufferedReader inputLine = new BufferedReader(new InputStreamReader(inStream));\r\n String line = inputLine.readLine();\r\n boolean lineContinue = false;\r\n while (line != null) {\r\n Util.debug(\"ListProperties.load - Line read: \" + line);\r\n line = line.trim();\r\n String currLine = \"\";\r\n if (line.startsWith(\"#\")) {\r\n // Skipping comment\r\n } else if (line.startsWith(\"!\")) {\r\n // Skipping comment\r\n } else if (line.equals(\"\")) {\r\n // Skipping blank lines\r\n } else {\r\n if (!lineContinue) {\r\n currLine = line;\r\n } else {\r\n // This is a continuation line. Add to previous line.\r\n currLine += line;\r\n }\r\n // Must be a property line\r\n if (line.endsWith(\"\\\\\")) {\r\n // Next line is continued from the current one.\r\n lineContinue = true;\r\n } else {\r\n // The current line is completed. Parse the property.\r\n propFile += currLine + \"\\n\";\r\n currLine = \"\";\r\n lineContinue = false;\r\n }\r\n }\r\n line = inputLine.readLine();\r\n }\r\n // Load Properties\r\n listProps = new Hashtable>();\r\n // Now parse the Properties to create an array\r\n String[] props = readTokens(propFile, \"\\n\");\r\n for (int index = 0; index < props.length; index++) {\r\n Util.debug(\"ListProperties.load() - props[\" + index + \"] = \" + props[index]);\r\n // Parse the line to get the key,value pair\r\n String[] val = readTokens(props[index], \"=\");\r\n Util.debug(\"ListProperties.load() - val[0]: \" + val[0] + \" val[1]: \" + val[1]);\r\n if (!val[0].equals(\"\")) {\r\n if (this.containsKey(val[0])) {\r\n // Previous key,value was already created.\r\n // Need an array\r\n Vector currList = (Vector) listProps.get(val[0]);\r\n if ((currList == null) || currList.isEmpty()) {\r\n currList = new Vector();\r\n String prevVal = this.getProperty(val[0]);\r\n currList.addElement(prevVal);\r\n }\r\n currList.addElement(val[1]);\r\n listProps.put(val[0], currList);\r\n }\r\n this.setProperty(val[0], val[1]);\r\n }\r\n }\r\n } catch (Exception e) {\r\n Util.debug(\"ListProperties.load(): Exception: \" + e);\r\n e.printStackTrace();\r\n }\r\n }",
"start_line": 47,
"end_line": 115,
+ "code_start_line": 47,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -33714,6 +46954,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -33736,6 +46977,7 @@
},
{
"method_name": "readLine",
+ "comment": null,
"receiver_expr": "inputLine",
"receiver_type": "java.io.BufferedReader",
"argument_types": [],
@@ -33756,6 +46998,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -33778,6 +47021,7 @@
},
{
"method_name": "trim",
+ "comment": null,
"receiver_expr": "line",
"receiver_type": "java.lang.String",
"argument_types": [],
@@ -33798,6 +47042,7 @@
},
{
"method_name": "startsWith",
+ "comment": null,
"receiver_expr": "line",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -33820,6 +47065,7 @@
},
{
"method_name": "startsWith",
+ "comment": null,
"receiver_expr": "line",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -33842,6 +47088,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "line",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -33864,6 +47111,14 @@
},
{
"method_name": "endsWith",
+ "comment": {
+ "content": " Must be a property line",
+ "start_line": 73,
+ "end_line": 73,
+ "start_column": 21,
+ "end_column": 46,
+ "is_javadoc": false
+ },
"receiver_expr": "line",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -33886,6 +47141,7 @@
},
{
"method_name": "readLine",
+ "comment": null,
"receiver_expr": "inputLine",
"receiver_type": "java.io.BufferedReader",
"argument_types": [],
@@ -33906,6 +47162,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -33929,6 +47186,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -33951,6 +47209,7 @@
},
{
"method_name": "readTokens",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -33974,6 +47233,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -33996,6 +47256,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "val[0]",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -34018,6 +47279,7 @@
},
{
"method_name": "containsKey",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties",
"argument_types": [
@@ -34040,6 +47302,7 @@
},
{
"method_name": "get",
+ "comment": null,
"receiver_expr": "listProps",
"receiver_type": "java.util.Hashtable>",
"argument_types": [
@@ -34062,6 +47325,7 @@
},
{
"method_name": "isEmpty",
+ "comment": null,
"receiver_expr": "currList",
"receiver_type": "java.util.Vector",
"argument_types": [],
@@ -34082,6 +47346,7 @@
},
{
"method_name": "getProperty",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties",
"argument_types": [
@@ -34104,6 +47369,7 @@
},
{
"method_name": "addElement",
+ "comment": null,
"receiver_expr": "currList",
"receiver_type": "java.util.Vector",
"argument_types": [
@@ -34126,6 +47392,7 @@
},
{
"method_name": "addElement",
+ "comment": null,
"receiver_expr": "currList",
"receiver_type": "java.util.Vector",
"argument_types": [
@@ -34148,6 +47415,7 @@
},
{
"method_name": "put",
+ "comment": null,
"receiver_expr": "listProps",
"receiver_type": "java.util.Hashtable>",
"argument_types": [
@@ -34171,6 +47439,7 @@
},
{
"method_name": "setProperty",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties",
"argument_types": [
@@ -34194,6 +47463,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -34216,6 +47486,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -34236,6 +47507,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.io.BufferedReader",
"argument_types": [
@@ -34258,6 +47530,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.io.InputStreamReader",
"argument_types": [
@@ -34280,6 +47553,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.Hashtable>",
"argument_types": [],
@@ -34300,6 +47574,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.Vector",
"argument_types": [],
@@ -34321,6 +47596,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "propFile",
"type": "java.lang.String",
"initializer": "\"\"",
@@ -34330,6 +47613,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inputLine",
"type": "java.io.BufferedReader",
"initializer": "new BufferedReader(new InputStreamReader(inStream))",
@@ -34339,6 +47630,14 @@
"end_column": 90
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "line",
"type": "java.lang.String",
"initializer": "inputLine.readLine()",
@@ -34348,6 +47647,14 @@
"end_column": 46
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "lineContinue",
"type": "boolean",
"initializer": "false",
@@ -34357,6 +47664,14 @@
"end_column": 40
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "currLine",
"type": "java.lang.String",
"initializer": "\"\"",
@@ -34366,6 +47681,14 @@
"end_column": 36
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "props",
"type": "java.lang.String[]",
"initializer": "readTokens(propFile, \"\\n\")",
@@ -34375,6 +47698,14 @@
"end_column": 55
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -34384,6 +47715,14 @@
"end_column": 30
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "val",
"type": "java.lang.String[]",
"initializer": "readTokens(props[index], \"=\")",
@@ -34393,6 +47732,14 @@
"end_column": 60
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "currList",
"type": "java.util.Vector",
"initializer": "(Vector) listProps.get(val[0])",
@@ -34402,6 +47749,14 @@
"end_column": 88
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "prevVal",
"type": "java.lang.String",
"initializer": "this.getProperty(val[0])",
@@ -34417,9 +47772,18 @@
"is_entrypoint": false
},
"getProperties(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/ListProperties.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/ListProperties.java",
"signature": "getProperties(String)",
- "comment": "/**\r\n * Method getProperties.\r\n * @param name\r\n * @return values\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Method getProperties.\r\n * @param name\r\n * @return values\r\n ",
+ "start_line": 131,
+ "end_line": 135,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -34431,12 +47795,17 @@
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 136,
+ "end_line": 136,
+ "start_column": 35,
+ "end_column": 45
}
],
- "code": "{\n String[] values = { \"\" };\n try {\n String value = this.getProperty(name);\n Util.debug(\"ListProperties.getProperties: property (\" + name + \") -> \" + value);\n if (listProps.containsKey(name)) {\n Vector list = (Vector) listProps.get(name);\n values = new String[list.size()];\n for (int index = 0; index < list.size(); index++) {\n values[index] = (String) list.elementAt(index);\n }\n } else {\n values[0] = value;\n }\n } catch (Exception e) {\n Util.debug(\"ListProperties.getProperties(): Exception: \" + e);\n }\n return (values);\n}",
+ "code": "{\r\n String[] values = { \"\" };\r\n try {\r\n String value = this.getProperty(name);\r\n Util.debug(\"ListProperties.getProperties: property (\" + name + \") -> \" + value);\r\n if (listProps.containsKey(name)) {\r\n Vector list = (Vector) listProps.get(name);\r\n values = new String[list.size()];\r\n for (int index = 0; index < list.size(); index++) {\r\n values[index] = (String) list.elementAt(index);\r\n }\r\n } else {\r\n values[0] = value;\r\n }\r\n } catch (Exception e) {\r\n Util.debug(\"ListProperties.getProperties(): Exception: \" + e);\r\n }\r\n return (values);\r\n }",
"start_line": 136,
"end_line": 154,
+ "code_start_line": 136,
"return_type": "java.lang.String[]",
"is_implicit": false,
"is_constructor": false,
@@ -34450,6 +47819,7 @@
"call_sites": [
{
"method_name": "getProperty",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties",
"argument_types": [
@@ -34472,6 +47842,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -34494,6 +47865,7 @@
},
{
"method_name": "containsKey",
+ "comment": null,
"receiver_expr": "listProps",
"receiver_type": "java.util.Hashtable>",
"argument_types": [
@@ -34516,6 +47888,7 @@
},
{
"method_name": "get",
+ "comment": null,
"receiver_expr": "listProps",
"receiver_type": "java.util.Hashtable>",
"argument_types": [
@@ -34538,6 +47911,7 @@
},
{
"method_name": "size",
+ "comment": null,
"receiver_expr": "list",
"receiver_type": "java.util.Vector",
"argument_types": [],
@@ -34558,6 +47932,7 @@
},
{
"method_name": "size",
+ "comment": null,
"receiver_expr": "list",
"receiver_type": "java.util.Vector",
"argument_types": [],
@@ -34578,6 +47953,7 @@
},
{
"method_name": "elementAt",
+ "comment": null,
"receiver_expr": "list",
"receiver_type": "java.util.Vector",
"argument_types": [
@@ -34600,6 +47976,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -34623,6 +48000,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "{ \"\" }",
@@ -34632,6 +48017,14 @@
"end_column": 32
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "value",
"type": "java.lang.String",
"initializer": "this.getProperty(name)",
@@ -34641,6 +48034,14 @@
"end_column": 49
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "list",
"type": "java.util.Vector",
"initializer": "(Vector) listProps.get(name)",
@@ -34650,6 +48051,14 @@
"end_column": 74
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "index",
"type": "int",
"initializer": "0",
@@ -34665,9 +48074,18 @@
"is_entrypoint": false
},
"readTokens(String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/ListProperties.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/ListProperties.java",
"signature": "readTokens(String, String)",
- "comment": "/**\r\n * Method readTokens.\r\n * @param text\r\n * @param token\r\n * @return list\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Method readTokens.\r\n * @param text\r\n * @param token\r\n * @return list\r\n ",
+ "start_line": 116,
+ "end_line": 121,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -34679,18 +48097,27 @@
"type": "java.lang.String",
"name": "text",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 122,
+ "end_line": 122,
+ "start_column": 32,
+ "end_column": 42
},
{
"type": "java.lang.String",
"name": "token",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 122,
+ "end_line": 122,
+ "start_column": 45,
+ "end_column": 56
}
],
- "code": "{\n StringTokenizer parser = new StringTokenizer(text, token);\n int numTokens = parser.countTokens();\n String[] list = new String[numTokens];\n for (int i = 0; i < numTokens; i++) {\n list[i] = parser.nextToken();\n }\n return list;\n}",
+ "code": "{\r\n StringTokenizer parser = new StringTokenizer(text, token);\r\n int numTokens = parser.countTokens();\r\n String[] list = new String[numTokens];\r\n for (int i = 0; i < numTokens; i++) {\r\n list[i] = parser.nextToken();\r\n }\r\n return list;\r\n }",
"start_line": 122,
"end_line": 130,
+ "code_start_line": 122,
"return_type": "java.lang.String[]",
"is_implicit": false,
"is_constructor": false,
@@ -34701,6 +48128,7 @@
"call_sites": [
{
"method_name": "countTokens",
+ "comment": null,
"receiver_expr": "parser",
"receiver_type": "java.util.StringTokenizer",
"argument_types": [],
@@ -34721,6 +48149,7 @@
},
{
"method_name": "nextToken",
+ "comment": null,
"receiver_expr": "parser",
"receiver_type": "java.util.StringTokenizer",
"argument_types": [],
@@ -34741,6 +48170,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.StringTokenizer",
"argument_types": [
@@ -34765,6 +48195,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "parser",
"type": "java.util.StringTokenizer",
"initializer": "new StringTokenizer(text, token)",
@@ -34774,6 +48212,14 @@
"end_column": 65
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "numTokens",
"type": "int",
"initializer": "parser.countTokens()",
@@ -34783,6 +48229,14 @@
"end_column": 44
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "list",
"type": "java.lang.String[]",
"initializer": "new String[numTokens]",
@@ -34792,6 +48246,14 @@
"end_column": 45
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "i",
"type": "int",
"initializer": "0",
@@ -34809,7 +48271,14 @@
},
"field_declarations": [
{
- "comment": "/**\r\n\t * \r\n\t */",
+ "comment": {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 38,
+ "end_line": 40,
+ "start_column": 5,
+ "end_column": 4,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 41,
@@ -34825,7 +48294,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.util.Hashtable>",
"start_line": 42,
@@ -34839,15 +48315,427 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "package_name": "com.ibm.websphere.samples.pbw.utils",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Utility class.\r\n ",
+ "start_line": 29,
+ "end_line": 31,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": " Servlet action codes.",
+ "start_line": 75,
+ "end_line": 75,
+ "start_column": 5,
+ "end_column": 28,
+ "is_javadoc": false
+ },
+ {
+ "content": " Datasource name. ",
+ "start_line": 33,
+ "end_line": 33,
+ "start_column": 5,
+ "end_column": 27,
+ "is_javadoc": true
+ },
+ {
+ "content": " Constants for JSPs and HTMLs.",
+ "start_line": 35,
+ "end_line": 35,
+ "start_column": 5,
+ "end_column": 36,
+ "is_javadoc": false
+ },
+ {
+ "content": " Request and session attributes.",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 5,
+ "end_column": 38,
+ "is_javadoc": false
+ },
+ {
+ "content": " public static final String ATTR_CART_CONTENTS = \"CartContents\";",
+ "start_line": 54,
+ "end_line": 54,
+ "start_column": 1,
+ "end_column": 69,
+ "is_javadoc": false
+ },
+ {
+ "content": " if this is changed, updated session timeout",
+ "start_line": 67,
+ "end_line": 67,
+ "start_column": 56,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " in the PlantsByWebSphere web.xml",
+ "start_line": 68,
+ "end_line": 68,
+ "start_column": 20,
+ "end_column": 54,
+ "is_javadoc": false
+ },
+ {
+ "content": " Admin type actions",
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 5,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " Supplier Config actions",
+ "start_line": 76,
+ "end_line": 76,
+ "start_column": 5,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": " Backorder actions",
+ "start_line": 79,
+ "end_line": 79,
+ "start_column": 5,
+ "end_column": 24,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Return the cached Initial Context.\r\n *\r\n * @return InitialContext, or null if a naming exception.\r\n ",
+ "start_line": 97,
+ "end_line": 101,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": " Get InitialContext if it has not been gotten yet.",
+ "start_line": 104,
+ "end_line": 104,
+ "start_column": 13,
+ "end_column": 64,
+ "is_javadoc": false
+ },
+ {
+ "content": " properties are in the system properties",
+ "start_line": 106,
+ "end_line": 106,
+ "start_column": 17,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Naming Exception will cause a null return.",
+ "start_line": 110,
+ "end_line": 110,
+ "start_column": 9,
+ "end_column": 53,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Get the displayable name of a category.\r\n * @param index The int representation of a category.\r\n * @return The category as a String (null, if an invalid index given).\r\n ",
+ "start_line": 115,
+ "end_line": 119,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the category strings in an array.\r\n *\r\n * @return The category strings in an array.\r\n ",
+ "start_line": 126,
+ "end_line": 130,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the shipping method.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method (null, if an invalid index given).\r\n ",
+ "start_line": 134,
+ "end_line": 138,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the shipping method price.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method price (-1, if an invalid index given).\r\n ",
+ "start_line": 145,
+ "end_line": 149,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the shipping method price.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method time (null, if an invalid index given).\r\n ",
+ "start_line": 156,
+ "end_line": 160,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the shipping method strings in an array.\r\n * @return The shipping method strings in an array.\r\n ",
+ "start_line": 167,
+ "end_line": 170,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the shipping method strings, including prices and times, in an array.\r\n * @return The shipping method strings, including prices and times, in an array.\r\n ",
+ "start_line": 174,
+ "end_line": 177,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Method readProperties.\r\n ",
+ "start_line": 187,
+ "end_line": 189,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": " Try to read the properties file.",
+ "start_line": 192,
+ "end_line": 192,
+ "start_column": 13,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": " Reset properties to retry loading next time.",
+ "start_line": 200,
+ "end_line": 200,
+ "start_column": 17,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Method getProperty.\r\n * @param name\r\n * @return value\r\n ",
+ "start_line": 208,
+ "end_line": 212,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Method readTokens.\r\n * @param text\r\n * @param token\r\n * @return list\r\n ",
+ "start_line": 225,
+ "end_line": 230,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Method getProperties.\r\n * @param name\r\n * @return values\r\n ",
+ "start_line": 240,
+ "end_line": 244,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "for (Enumeration e = PBW_Properties.propertyNames() ; e.hasMoreElements() ;) {",
+ "start_line": 253,
+ "end_line": 253,
+ "start_column": 13,
+ "end_column": 92,
+ "is_javadoc": false
+ },
+ {
+ "content": " debug((String)e.nextElement());",
+ "start_line": 254,
+ "end_line": 254,
+ "start_column": 13,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": "}",
+ "start_line": 255,
+ "end_line": 255,
+ "start_column": 13,
+ "end_column": 15,
+ "is_javadoc": false
+ },
+ {
+ "content": " Set debug setting to on or off.\r\n * @param val True or false.\r\n ",
+ "start_line": 262,
+ "end_line": 264,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": " Is debug turned on? ",
+ "start_line": 268,
+ "end_line": 268,
+ "start_column": 5,
+ "end_column": 30,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Output RAS message.\r\n * @param msg Message to be output.\r\n ",
+ "start_line": 272,
+ "end_line": 275,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Utilty functions for validating user input.\r\n * validateString will return false if any of the invalid characters appear in the input string.\r\n *\r\n * In general, we do not want to allow special characters in user input,\r\n * because this can open us to a XSS security vulnerability.\r\n * For example, a user should not be allowed to enter javascript in an input field.\r\n ",
+ "start_line": 292,
+ "end_line": 299,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.FileNotFoundException",
"java.text.NumberFormat",
@@ -34869,7 +48757,288 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * Utility class.\r\n */",
+ "comments": [
+ {
+ "content": " Servlet action codes.",
+ "start_line": 75,
+ "end_line": 75,
+ "start_column": 5,
+ "end_column": 28,
+ "is_javadoc": false
+ },
+ {
+ "content": " Datasource name. ",
+ "start_line": 33,
+ "end_line": 33,
+ "start_column": 5,
+ "end_column": 27,
+ "is_javadoc": true
+ },
+ {
+ "content": " Constants for JSPs and HTMLs.",
+ "start_line": 35,
+ "end_line": 35,
+ "start_column": 5,
+ "end_column": 36,
+ "is_javadoc": false
+ },
+ {
+ "content": " Request and session attributes.",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 5,
+ "end_column": 38,
+ "is_javadoc": false
+ },
+ {
+ "content": " public static final String ATTR_CART_CONTENTS = \"CartContents\";",
+ "start_line": 54,
+ "end_line": 54,
+ "start_column": 1,
+ "end_column": 69,
+ "is_javadoc": false
+ },
+ {
+ "content": " if this is changed, updated session timeout",
+ "start_line": 67,
+ "end_line": 67,
+ "start_column": 56,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " in the PlantsByWebSphere web.xml",
+ "start_line": 68,
+ "end_line": 68,
+ "start_column": 20,
+ "end_column": 54,
+ "is_javadoc": false
+ },
+ {
+ "content": " Admin type actions",
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 5,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " Supplier Config actions",
+ "start_line": 76,
+ "end_line": 76,
+ "start_column": 5,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": " Backorder actions",
+ "start_line": 79,
+ "end_line": 79,
+ "start_column": 5,
+ "end_column": 24,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Return the cached Initial Context.\r\n *\r\n * @return InitialContext, or null if a naming exception.\r\n ",
+ "start_line": 97,
+ "end_line": 101,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": " Get InitialContext if it has not been gotten yet.",
+ "start_line": 104,
+ "end_line": 104,
+ "start_column": 13,
+ "end_column": 64,
+ "is_javadoc": false
+ },
+ {
+ "content": " properties are in the system properties",
+ "start_line": 106,
+ "end_line": 106,
+ "start_column": 17,
+ "end_column": 58,
+ "is_javadoc": false
+ },
+ {
+ "content": " Naming Exception will cause a null return.",
+ "start_line": 110,
+ "end_line": 110,
+ "start_column": 9,
+ "end_column": 53,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Get the displayable name of a category.\r\n * @param index The int representation of a category.\r\n * @return The category as a String (null, if an invalid index given).\r\n ",
+ "start_line": 115,
+ "end_line": 119,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the category strings in an array.\r\n *\r\n * @return The category strings in an array.\r\n ",
+ "start_line": 126,
+ "end_line": 130,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the shipping method.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method (null, if an invalid index given).\r\n ",
+ "start_line": 134,
+ "end_line": 138,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the shipping method price.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method price (-1, if an invalid index given).\r\n ",
+ "start_line": 145,
+ "end_line": 149,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the shipping method price.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method time (null, if an invalid index given).\r\n ",
+ "start_line": 156,
+ "end_line": 160,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the shipping method strings in an array.\r\n * @return The shipping method strings in an array.\r\n ",
+ "start_line": 167,
+ "end_line": 170,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Get the shipping method strings, including prices and times, in an array.\r\n * @return The shipping method strings, including prices and times, in an array.\r\n ",
+ "start_line": 174,
+ "end_line": 177,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Method readProperties.\r\n ",
+ "start_line": 187,
+ "end_line": 189,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": " Try to read the properties file.",
+ "start_line": 192,
+ "end_line": 192,
+ "start_column": 13,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": " Reset properties to retry loading next time.",
+ "start_line": 200,
+ "end_line": 200,
+ "start_column": 17,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Method getProperty.\r\n * @param name\r\n * @return value\r\n ",
+ "start_line": 208,
+ "end_line": 212,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Method readTokens.\r\n * @param text\r\n * @param token\r\n * @return list\r\n ",
+ "start_line": 225,
+ "end_line": 230,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Method getProperties.\r\n * @param name\r\n * @return values\r\n ",
+ "start_line": 240,
+ "end_line": 244,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "for (Enumeration e = PBW_Properties.propertyNames() ; e.hasMoreElements() ;) {",
+ "start_line": 253,
+ "end_line": 253,
+ "start_column": 13,
+ "end_column": 92,
+ "is_javadoc": false
+ },
+ {
+ "content": " debug((String)e.nextElement());",
+ "start_line": 254,
+ "end_line": 254,
+ "start_column": 13,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": "}",
+ "start_line": 255,
+ "end_line": 255,
+ "start_column": 13,
+ "end_column": 15,
+ "is_javadoc": false
+ },
+ {
+ "content": " Set debug setting to on or off.\r\n * @param val True or false.\r\n ",
+ "start_line": 262,
+ "end_line": 264,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": " Is debug turned on? ",
+ "start_line": 268,
+ "end_line": 268,
+ "start_column": 5,
+ "end_column": 30,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Output RAS message.\r\n * @param msg Message to be output.\r\n ",
+ "start_line": 272,
+ "end_line": 275,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Utilty functions for validating user input.\r\n * validateString will return false if any of the invalid characters appear in the input string.\r\n *\r\n * In general, we do not want to allow special characters in user input,\r\n * because this can open us to a XSS security vulnerability.\r\n * For example, a user should not be allowed to enter javascript in an input field.\r\n ",
+ "start_line": 292,
+ "end_line": 299,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Utility class.\r\n ",
+ "start_line": 29,
+ "end_line": 31,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -34879,9 +49048,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"setDebug(boolean)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "setDebug(boolean)",
- "comment": "/** Set debug setting to on or off.\r\n * @param val True or false.\r\n */",
+ "comments": [
+ {
+ "content": " Set debug setting to on or off.\r\n * @param val True or false.\r\n ",
+ "start_line": 262,
+ "end_line": 264,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"static",
@@ -34895,12 +49073,17 @@
"type": "boolean",
"name": "val",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 265,
+ "end_line": 265,
+ "start_column": 39,
+ "end_column": 49
}
],
- "code": "{\n debug = val;\n}",
+ "code": "{\r\n debug = val;\r\n }",
"start_line": 265,
"end_line": 267,
+ "code_start_line": 265,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -34916,9 +49099,18 @@
"is_entrypoint": false
},
"getCategoryStrings()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "getCategoryStrings()",
- "comment": "/**\r\n * Get the category strings in an array.\r\n *\r\n * @return The category strings in an array.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Get the category strings in an array.\r\n *\r\n * @return The category strings in an array.\r\n ",
+ "start_line": 126,
+ "end_line": 130,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"static",
@@ -34927,9 +49119,10 @@
"thrown_exceptions": [],
"declaration": "public static String[] getCategoryStrings()",
"parameters": [],
- "code": "{\n return CATEGORY_STRINGS;\n}",
+ "code": "{\r\n return CATEGORY_STRINGS;\r\n }",
"start_line": 131,
"end_line": 133,
+ "code_start_line": 131,
"return_type": "java.lang.String[]",
"is_implicit": false,
"is_constructor": false,
@@ -34945,9 +49138,34 @@
"is_entrypoint": false
},
"readProperties()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "readProperties()",
- "comment": "/**\r\n * Method readProperties.\r\n */",
+ "comments": [
+ {
+ "content": " Try to read the properties file.",
+ "start_line": 192,
+ "end_line": 192,
+ "start_column": 13,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": " Reset properties to retry loading next time.",
+ "start_line": 200,
+ "end_line": 200,
+ "start_column": 17,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Method readProperties.\r\n ",
+ "start_line": 187,
+ "end_line": 189,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public",
@@ -34958,9 +49176,10 @@
],
"declaration": "public static void readProperties() throws FileNotFoundException",
"parameters": [],
- "code": "{\n if (PBW_Properties == null) {\n // Try to read the properties file.\n ListProperties prop = new ListProperties();\n try {\n String PBW_Properties_File = PBW_PROPERTIES;\n debug(\"Util.readProperties(): Loading PBW Properties from file: \" + PBW_Properties_File);\n prop.load(Util.class.getClassLoader().getResourceAsStream(PBW_Properties_File));\n } catch (Exception e) {\n debug(\"Util.readProperties(): Exception: \" + e);\n // Reset properties to retry loading next time.\n PBW_Properties = null;\n e.printStackTrace();\n throw new FileNotFoundException();\n }\n PBW_Properties = prop;\n }\n}",
+ "code": "{\r\n if (PBW_Properties == null) {\r\n // Try to read the properties file.\r\n ListProperties prop = new ListProperties();\r\n try {\r\n String PBW_Properties_File = PBW_PROPERTIES;\r\n debug(\"Util.readProperties(): Loading PBW Properties from file: \" + PBW_Properties_File);\r\n prop.load(Util.class.getClassLoader().getResourceAsStream(PBW_Properties_File));\r\n } catch (Exception e) {\r\n debug(\"Util.readProperties(): Exception: \" + e);\r\n // Reset properties to retry loading next time.\r\n PBW_Properties = null;\r\n e.printStackTrace();\r\n throw new FileNotFoundException();\r\n }\r\n PBW_Properties = prop;\r\n }\r\n }",
"start_line": 190,
"end_line": 207,
+ "code_start_line": 190,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -34975,6 +49194,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -34997,6 +49217,7 @@
},
{
"method_name": "load",
+ "comment": null,
"receiver_expr": "prop",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties",
"argument_types": [
@@ -35019,6 +49240,7 @@
},
{
"method_name": "getResourceAsStream",
+ "comment": null,
"receiver_expr": "Util.class.getClassLoader()",
"receiver_type": "java.lang.ClassLoader",
"argument_types": [
@@ -35041,6 +49263,7 @@
},
{
"method_name": "getClassLoader",
+ "comment": null,
"receiver_expr": "Util.class",
"receiver_type": "java.lang.Class",
"argument_types": [],
@@ -35061,6 +49284,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -35083,6 +49307,7 @@
},
{
"method_name": "printStackTrace",
+ "comment": null,
"receiver_expr": "e",
"receiver_type": "java.lang.Exception",
"argument_types": [],
@@ -35103,6 +49328,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties",
"argument_types": [],
@@ -35123,6 +49349,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.io.FileNotFoundException",
"argument_types": [],
@@ -35144,6 +49371,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "prop",
"type": "com.ibm.websphere.samples.pbw.utils.ListProperties",
"initializer": "new ListProperties()",
@@ -35153,6 +49388,14 @@
"end_column": 54
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "PBW_Properties_File",
"type": "java.lang.String",
"initializer": "PBW_PROPERTIES",
@@ -35168,9 +49411,18 @@
"is_entrypoint": false
},
"getCategoryString(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "getCategoryString(int)",
- "comment": "/**\r\n * Get the displayable name of a category.\r\n * @param index The int representation of a category.\r\n * @return The category as a String (null, if an invalid index given).\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Get the displayable name of a category.\r\n * @param index The int representation of a category.\r\n * @return The category as a String (null, if an invalid index given).\r\n ",
+ "start_line": 115,
+ "end_line": 119,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"static",
@@ -35183,12 +49435,17 @@
"type": "int",
"name": "index",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 120,
+ "end_line": 120,
+ "start_column": 44,
+ "end_column": 52
}
],
- "code": "{\n if ((index >= 0) && (index < CATEGORY_STRINGS.length))\n return CATEGORY_STRINGS[index];\n else\n return null;\n}",
+ "code": "{\r\n if ((index >= 0) && (index < CATEGORY_STRINGS.length))\r\n return CATEGORY_STRINGS[index];\r\n else\r\n return null;\r\n }",
"start_line": 120,
"end_line": 125,
+ "code_start_line": 120,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -35205,9 +49462,18 @@
"is_entrypoint": false
},
"getFullShippingMethodStrings()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "getFullShippingMethodStrings()",
- "comment": "/**\r\n * Get the shipping method strings, including prices and times, in an array.\r\n * @return The shipping method strings, including prices and times, in an array.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Get the shipping method strings, including prices and times, in an array.\r\n * @return The shipping method strings, including prices and times, in an array.\r\n ",
+ "start_line": 174,
+ "end_line": 177,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"static",
@@ -35216,9 +49482,10 @@
"thrown_exceptions": [],
"declaration": "public static String[] getFullShippingMethodStrings()",
"parameters": [],
- "code": "{\n String[] shippingMethods = new String[SHIPPING_METHOD_STRINGS.length];\n for (int i = 0; i < shippingMethods.length; i++) {\n shippingMethods[i] = SHIPPING_METHOD_STRINGS[i] + \" \" + SHIPPING_METHOD_TIMES[i] + \" \" + NumberFormat.getCurrencyInstance(java.util.Locale.US).format(new Float(SHIPPING_METHOD_PRICES[i]));\n }\n return shippingMethods;\n}",
+ "code": "{\r\n String[] shippingMethods = new String[SHIPPING_METHOD_STRINGS.length];\r\n for (int i = 0; i < shippingMethods.length; i++) {\r\n shippingMethods[i] = SHIPPING_METHOD_STRINGS[i] + \" \" + SHIPPING_METHOD_TIMES[i] + \" \" + NumberFormat.getCurrencyInstance(java.util.Locale.US).format(new Float(SHIPPING_METHOD_PRICES[i]));\r\n }\r\n return shippingMethods;\r\n }",
"start_line": 178,
"end_line": 184,
+ "code_start_line": 178,
"return_type": "java.lang.String[]",
"is_implicit": false,
"is_constructor": false,
@@ -35235,6 +49502,7 @@
"call_sites": [
{
"method_name": "format",
+ "comment": null,
"receiver_expr": "NumberFormat.getCurrencyInstance(java.util.Locale.US)",
"receiver_type": "java.text.NumberFormat",
"argument_types": [
@@ -35257,6 +49525,7 @@
},
{
"method_name": "getCurrencyInstance",
+ "comment": null,
"receiver_expr": "NumberFormat",
"receiver_type": "java.text.NumberFormat",
"argument_types": [
@@ -35279,6 +49548,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Float",
"argument_types": [
@@ -35302,6 +49572,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "shippingMethods",
"type": "java.lang.String[]",
"initializer": "new String[SHIPPING_METHOD_STRINGS.length]",
@@ -35311,6 +49589,14 @@
"end_column": 77
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "i",
"type": "int",
"initializer": "0",
@@ -35326,9 +49612,18 @@
"is_entrypoint": false
},
"getShippingMethodPrice(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "getShippingMethodPrice(int)",
- "comment": "/**\r\n * Get the shipping method price.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method price (-1, if an invalid index given).\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Get the shipping method price.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method price (-1, if an invalid index given).\r\n ",
+ "start_line": 145,
+ "end_line": 149,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"static",
@@ -35341,12 +49636,17 @@
"type": "int",
"name": "index",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 150,
+ "end_line": 150,
+ "start_column": 48,
+ "end_column": 56
}
],
- "code": "{\n if ((index >= 0) && (index < SHIPPING_METHOD_PRICES.length))\n return SHIPPING_METHOD_PRICES[index];\n else\n return -1;\n}",
+ "code": "{\r\n if ((index >= 0) && (index < SHIPPING_METHOD_PRICES.length))\r\n return SHIPPING_METHOD_PRICES[index];\r\n else\r\n return -1;\r\n }",
"start_line": 150,
"end_line": 155,
+ "code_start_line": 150,
"return_type": "float",
"is_implicit": false,
"is_constructor": false,
@@ -35363,9 +49663,18 @@
"is_entrypoint": false
},
"getShippingMethod(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "getShippingMethod(int)",
- "comment": "/**\r\n * Get the shipping method.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method (null, if an invalid index given).\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Get the shipping method.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method (null, if an invalid index given).\r\n ",
+ "start_line": 134,
+ "end_line": 138,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"static",
@@ -35378,12 +49687,17 @@
"type": "int",
"name": "index",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 139,
+ "end_line": 139,
+ "start_column": 44,
+ "end_column": 52
}
],
- "code": "{\n if ((index >= 0) && (index < SHIPPING_METHOD_STRINGS.length))\n return SHIPPING_METHOD_STRINGS[index];\n else\n return null;\n}",
+ "code": "{\r\n if ((index >= 0) && (index < SHIPPING_METHOD_STRINGS.length))\r\n return SHIPPING_METHOD_STRINGS[index];\r\n else\r\n return null;\r\n }",
"start_line": 139,
"end_line": 144,
+ "code_start_line": 139,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -35400,9 +49714,18 @@
"is_entrypoint": false
},
"debug(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "debug(String)",
- "comment": "/**\r\n * Output RAS message.\r\n * @param msg Message to be output.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Output RAS message.\r\n * @param msg Message to be output.\r\n ",
+ "start_line": 272,
+ "end_line": 275,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"static",
@@ -35416,12 +49739,17 @@
"type": "java.lang.String",
"name": "msg",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 276,
+ "end_line": 276,
+ "start_column": 36,
+ "end_column": 45
}
],
- "code": "{\n FacesContext context = FacesContext.getCurrentInstance();\n if (context != null) {\n Application app = context.getApplication();\n if (app != null) {\n ProjectStage stage = app.getProjectStage();\n if (stage == ProjectStage.Development || stage == ProjectStage.UnitTest) {\n setDebug(true);\n }\n }\n if (debug) {\n System.out.println(msg);\n }\n }\n}",
+ "code": "{\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n if (context != null) {\r\n \tApplication app = context.getApplication();\r\n \tif (app != null) {\r\n \t\tProjectStage stage = app.getProjectStage();\r\n \t\tif (stage == ProjectStage.Development || stage == ProjectStage.UnitTest) {\r\n \t\t\tsetDebug(true);\r\n \t\t}\r\n \t}\r\n \tif (debug) {\r\n \t\tSystem.out.println(msg);\r\n \t}\r\n }\r\n }",
"start_line": 276,
"end_line": 290,
+ "code_start_line": 276,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -35440,6 +49768,7 @@
"call_sites": [
{
"method_name": "getCurrentInstance",
+ "comment": null,
"receiver_expr": "FacesContext",
"receiver_type": "",
"argument_types": [],
@@ -35460,6 +49789,7 @@
},
{
"method_name": "getApplication",
+ "comment": null,
"receiver_expr": "context",
"receiver_type": "",
"argument_types": [],
@@ -35480,6 +49810,7 @@
},
{
"method_name": "getProjectStage",
+ "comment": null,
"receiver_expr": "app",
"receiver_type": "",
"argument_types": [],
@@ -35500,6 +49831,7 @@
},
{
"method_name": "setDebug",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -35522,6 +49854,7 @@
},
{
"method_name": "println",
+ "comment": null,
"receiver_expr": "System.out",
"receiver_type": "java.io.PrintStream",
"argument_types": [
@@ -35545,6 +49878,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "context",
"type": "FacesContext",
"initializer": "FacesContext.getCurrentInstance()",
@@ -35554,6 +49895,14 @@
"end_column": 64
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "app",
"type": "Application",
"initializer": "context.getApplication()",
@@ -35563,6 +49912,14 @@
"end_column": 51
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "stage",
"type": "ProjectStage",
"initializer": "app.getProjectStage()",
@@ -35578,9 +49935,42 @@
"is_entrypoint": false
},
"getProperties(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "getProperties(String)",
- "comment": "/**\r\n * Method getProperties.\r\n * @param name\r\n * @return values\r\n */",
+ "comments": [
+ {
+ "content": "for (Enumeration e = PBW_Properties.propertyNames() ; e.hasMoreElements() ;) {",
+ "start_line": 253,
+ "end_line": 253,
+ "start_column": 13,
+ "end_column": 92,
+ "is_javadoc": false
+ },
+ {
+ "content": " debug((String)e.nextElement());",
+ "start_line": 254,
+ "end_line": 254,
+ "start_column": 13,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": "}",
+ "start_line": 255,
+ "end_line": 255,
+ "start_column": 13,
+ "end_column": 15,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Method getProperties.\r\n * @param name\r\n * @return values\r\n ",
+ "start_line": 240,
+ "end_line": 244,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public",
@@ -35593,12 +49983,17 @@
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 245,
+ "end_line": 245,
+ "start_column": 42,
+ "end_column": 52
}
],
- "code": "{\n String[] values = { \"\" };\n try {\n if (PBW_Properties == null) {\n readProperties();\n }\n values = PBW_Properties.getProperties(name);\n debug(\"Util.getProperties: property (\" + name + \") -> \" + values.toString());\n //for (Enumeration e = PBW_Properties.propertyNames() ; e.hasMoreElements() ;) {\n // debug((String)e.nextElement());\n //}\n } catch (Exception e) {\n debug(\"Util.getProperties(): Exception: \" + e);\n }\n return (values);\n}",
+ "code": "{\r\n String[] values = { \"\" };\r\n try {\r\n if (PBW_Properties == null) {\r\n readProperties();\r\n }\r\n values = PBW_Properties.getProperties(name);\r\n debug(\"Util.getProperties: property (\" + name + \") -> \" + values.toString());\r\n //for (Enumeration e = PBW_Properties.propertyNames() ; e.hasMoreElements() ;) {\r\n // debug((String)e.nextElement());\r\n //}\r\n } catch (Exception e) {\r\n debug(\"Util.getProperties(): Exception: \" + e);\r\n }\r\n return (values);\r\n }",
"start_line": 245,
"end_line": 260,
+ "code_start_line": 245,
"return_type": "java.lang.String[]",
"is_implicit": false,
"is_constructor": false,
@@ -35609,6 +50004,7 @@
"call_sites": [
{
"method_name": "readProperties",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -35629,6 +50025,7 @@
},
{
"method_name": "getProperties",
+ "comment": null,
"receiver_expr": "PBW_Properties",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties",
"argument_types": [
@@ -35651,6 +50048,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -35673,6 +50071,7 @@
},
{
"method_name": "toString",
+ "comment": null,
"receiver_expr": "values",
"receiver_type": "",
"argument_types": [],
@@ -35693,6 +50092,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -35716,6 +50116,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "values",
"type": "java.lang.String[]",
"initializer": "{ \"\" }",
@@ -35731,9 +50139,18 @@
"is_entrypoint": false
},
"getShippingMethodStrings()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "getShippingMethodStrings()",
- "comment": "/**\r\n * Get the shipping method strings in an array.\r\n * @return The shipping method strings in an array.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Get the shipping method strings in an array.\r\n * @return The shipping method strings in an array.\r\n ",
+ "start_line": 167,
+ "end_line": 170,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"static",
@@ -35742,9 +50159,10 @@
"thrown_exceptions": [],
"declaration": "public static String[] getShippingMethodStrings()",
"parameters": [],
- "code": "{\n return SHIPPING_METHOD_STRINGS;\n}",
+ "code": "{\r\n return SHIPPING_METHOD_STRINGS;\r\n }",
"start_line": 171,
"end_line": 173,
+ "code_start_line": 171,
"return_type": "java.lang.String[]",
"is_implicit": false,
"is_constructor": false,
@@ -35760,9 +50178,18 @@
"is_entrypoint": false
},
"getProperty(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "getProperty(String)",
- "comment": "/**\r\n * Method getProperty.\r\n * @param name\r\n * @return value\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Method getProperty.\r\n * @param name\r\n * @return value\r\n ",
+ "start_line": 208,
+ "end_line": 212,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public",
@@ -35775,12 +50202,17 @@
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 213,
+ "end_line": 213,
+ "start_column": 38,
+ "end_column": 48
}
],
- "code": "{\n String value = \"\";\n try {\n if (PBW_Properties == null) {\n readProperties();\n }\n value = PBW_Properties.getProperty(name);\n } catch (Exception e) {\n debug(\"Util.getProperty(): Exception: \" + e);\n }\n return (value);\n}",
+ "code": "{\r\n String value = \"\";\r\n try {\r\n if (PBW_Properties == null) {\r\n readProperties();\r\n }\r\n value = PBW_Properties.getProperty(name);\r\n } catch (Exception e) {\r\n debug(\"Util.getProperty(): Exception: \" + e);\r\n }\r\n return (value);\r\n }",
"start_line": 213,
"end_line": 224,
+ "code_start_line": 213,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -35793,6 +50225,7 @@
"call_sites": [
{
"method_name": "readProperties",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -35813,6 +50246,7 @@
},
{
"method_name": "getProperty",
+ "comment": null,
"receiver_expr": "PBW_Properties",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties",
"argument_types": [
@@ -35835,6 +50269,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -35858,6 +50293,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "value",
"type": "java.lang.String",
"initializer": "\"\"",
@@ -35873,9 +50316,18 @@
"is_entrypoint": false
},
"readTokens(String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "readTokens(String, String)",
- "comment": "/**\r\n * Method readTokens.\r\n * @param text\r\n * @param token\r\n * @return list\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Method readTokens.\r\n * @param text\r\n * @param token\r\n * @return list\r\n ",
+ "start_line": 225,
+ "end_line": 230,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public",
@@ -35888,18 +50340,27 @@
"type": "java.lang.String",
"name": "text",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 231,
+ "end_line": 231,
+ "start_column": 39,
+ "end_column": 49
},
{
"type": "java.lang.String",
"name": "token",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 231,
+ "end_line": 231,
+ "start_column": 52,
+ "end_column": 63
}
],
- "code": "{\n StringTokenizer parser = new StringTokenizer(text, token);\n int numTokens = parser.countTokens();\n String[] list = new String[numTokens];\n for (int i = 0; i < numTokens; i++) {\n list[i] = parser.nextToken();\n }\n return list;\n}",
+ "code": "{\r\n StringTokenizer parser = new StringTokenizer(text, token);\r\n int numTokens = parser.countTokens();\r\n String[] list = new String[numTokens];\r\n for (int i = 0; i < numTokens; i++) {\r\n list[i] = parser.nextToken();\r\n }\r\n return list;\r\n }",
"start_line": 231,
"end_line": 239,
+ "code_start_line": 231,
"return_type": "java.lang.String[]",
"is_implicit": false,
"is_constructor": false,
@@ -35910,6 +50371,7 @@
"call_sites": [
{
"method_name": "countTokens",
+ "comment": null,
"receiver_expr": "parser",
"receiver_type": "java.util.StringTokenizer",
"argument_types": [],
@@ -35930,6 +50392,7 @@
},
{
"method_name": "nextToken",
+ "comment": null,
"receiver_expr": "parser",
"receiver_type": "java.util.StringTokenizer",
"argument_types": [],
@@ -35950,6 +50413,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.StringTokenizer",
"argument_types": [
@@ -35974,6 +50438,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "parser",
"type": "java.util.StringTokenizer",
"initializer": "new StringTokenizer(text, token)",
@@ -35983,6 +50455,14 @@
"end_column": 65
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "numTokens",
"type": "int",
"initializer": "parser.countTokens()",
@@ -35992,6 +50472,14 @@
"end_column": 44
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "list",
"type": "java.lang.String[]",
"initializer": "new String[numTokens]",
@@ -36001,6 +50489,14 @@
"end_column": 45
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "i",
"type": "int",
"initializer": "0",
@@ -36016,9 +50512,18 @@
"is_entrypoint": false
},
"getShippingMethodTime(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "getShippingMethodTime(int)",
- "comment": "/**\r\n * Get the shipping method price.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method time (null, if an invalid index given).\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Get the shipping method price.\r\n * @param index The int representation of a shipping method.\r\n * @return The shipping method time (null, if an invalid index given).\r\n ",
+ "start_line": 156,
+ "end_line": 160,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"static",
@@ -36031,12 +50536,17 @@
"type": "int",
"name": "index",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 161,
+ "end_line": 161,
+ "start_column": 48,
+ "end_column": 56
}
],
- "code": "{\n if ((index >= 0) && (index < SHIPPING_METHOD_TIMES.length))\n return SHIPPING_METHOD_TIMES[index];\n else\n return null;\n}",
+ "code": "{\r\n if ((index >= 0) && (index < SHIPPING_METHOD_TIMES.length))\r\n return SHIPPING_METHOD_TIMES[index];\r\n else\r\n return null;\r\n }",
"start_line": 161,
"end_line": 166,
+ "code_start_line": 161,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -36053,9 +50563,9 @@
"is_entrypoint": false
},
"validateString(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "validateString(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public",
@@ -36068,12 +50578,17 @@
"type": "java.lang.String",
"name": "input",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 302,
+ "end_line": 302,
+ "start_column": 39,
+ "end_column": 50
}
],
- "code": "{\n if (input == null)\n return true;\n for (int i = 0; i < invalidCharList.length; i++) {\n if (input.indexOf(invalidCharList[i]) != -1) {\n return false;\n }\n }\n return true;\n}",
+ "code": "{\r\n\t\tif (input==null) return true;\r\n\t\tfor (int i=0;i",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "javax.naming.InitialContext",
"argument_types": [],
@@ -36173,9 +50732,18 @@
"is_entrypoint": false
},
"debugOn()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java",
"signature": "debugOn()",
- "comment": "/** Is debug turned on? */",
+ "comments": [
+ {
+ "content": " Is debug turned on? ",
+ "start_line": 268,
+ "end_line": 268,
+ "start_column": 5,
+ "end_column": 30,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"static",
@@ -36185,9 +50753,10 @@
"thrown_exceptions": [],
"declaration": "public static final boolean debugOn()",
"parameters": [],
- "code": "{\n return debug;\n}",
+ "code": "{\r\n return debug;\r\n }",
"start_line": 269,
"end_line": 271,
+ "code_start_line": 269,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -36205,7 +50774,14 @@
},
"field_declarations": [
{
- "comment": "/** Datasource name. */",
+ "comment": {
+ "content": " Datasource name. ",
+ "start_line": 33,
+ "end_line": 33,
+ "start_column": 5,
+ "end_column": 27,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 34,
@@ -36221,7 +50797,14 @@
"annotations": []
},
{
- "comment": "// Constants for JSPs and HTMLs.",
+ "comment": {
+ "content": " Constants for JSPs and HTMLs.",
+ "start_line": 35,
+ "end_line": 35,
+ "start_column": 5,
+ "end_column": 36,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 36,
@@ -36237,7 +50820,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 37,
@@ -36253,7 +50843,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 38,
@@ -36269,7 +50866,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 39,
@@ -36285,7 +50889,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 40,
@@ -36301,7 +50912,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 41,
@@ -36317,7 +50935,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 42,
@@ -36333,7 +50958,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 43,
@@ -36349,7 +50981,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 44,
@@ -36365,7 +51004,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 45,
@@ -36381,7 +51027,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 46,
@@ -36397,7 +51050,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 47,
@@ -36413,7 +51073,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 48,
@@ -36429,7 +51096,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 49,
@@ -36445,7 +51119,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 50,
@@ -36461,7 +51142,14 @@
"annotations": []
},
{
- "comment": "// Request and session attributes.",
+ "comment": {
+ "content": " Request and session attributes.",
+ "start_line": 51,
+ "end_line": 51,
+ "start_column": 5,
+ "end_column": 38,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 52,
@@ -36477,7 +51165,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 53,
@@ -36493,7 +51188,14 @@
"annotations": []
},
{
- "comment": "// public static final String ATTR_CART_CONTENTS = \"CartContents\";",
+ "comment": {
+ "content": " public static final String ATTR_CART_CONTENTS = \"CartContents\";",
+ "start_line": 54,
+ "end_line": 54,
+ "start_column": 1,
+ "end_column": 69,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 55,
@@ -36509,7 +51211,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 56,
@@ -36525,7 +51234,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 57,
@@ -36541,7 +51257,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 58,
@@ -36557,7 +51280,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 59,
@@ -36573,7 +51303,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 60,
@@ -36589,7 +51326,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 61,
@@ -36605,7 +51349,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 62,
@@ -36621,7 +51372,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 63,
@@ -36637,7 +51395,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 64,
@@ -36653,7 +51418,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 65,
@@ -36669,7 +51441,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 66,
@@ -36685,7 +51464,14 @@
"annotations": []
},
{
- "comment": "// if this is changed, updated session timeout",
+ "comment": {
+ "content": " if this is changed, updated session timeout",
+ "start_line": 67,
+ "end_line": 67,
+ "start_column": 56,
+ "end_column": 101,
+ "is_javadoc": false
+ },
"name": null,
"type": "int",
"start_line": 67,
@@ -36701,7 +51487,14 @@
"annotations": []
},
{
- "comment": "// in the PlantsByWebSphere web.xml",
+ "comment": {
+ "content": " in the PlantsByWebSphere web.xml",
+ "start_line": 68,
+ "end_line": 68,
+ "start_column": 20,
+ "end_column": 54,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 69,
@@ -36717,7 +51510,14 @@
"annotations": []
},
{
- "comment": "// Admin type actions",
+ "comment": {
+ "content": " Admin type actions",
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 5,
+ "end_column": 25,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 71,
@@ -36733,7 +51533,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 72,
@@ -36749,7 +51556,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 73,
@@ -36765,7 +51579,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 74,
@@ -36781,7 +51602,14 @@
"annotations": []
},
{
- "comment": "// Supplier Config actions",
+ "comment": {
+ "content": " Supplier Config actions",
+ "start_line": 76,
+ "end_line": 76,
+ "start_column": 5,
+ "end_column": 30,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 77,
@@ -36797,7 +51625,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 78,
@@ -36813,7 +51648,14 @@
"annotations": []
},
{
- "comment": "// Backorder actions",
+ "comment": {
+ "content": " Backorder actions",
+ "start_line": 79,
+ "end_line": 79,
+ "start_column": 5,
+ "end_column": 24,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 80,
@@ -36829,7 +51671,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 81,
@@ -36845,7 +51694,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 82,
@@ -36861,7 +51717,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 83,
@@ -36877,7 +51740,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 84,
@@ -36893,7 +51763,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 85,
@@ -36909,7 +51786,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 86,
@@ -36925,7 +51809,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 87,
@@ -36941,7 +51832,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 88,
@@ -36957,7 +51855,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 89,
@@ -36973,7 +51878,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 90,
@@ -36989,7 +51901,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "javax.naming.InitialContext",
"start_line": 91,
@@ -37004,7 +51923,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String[]",
"start_line": 92,
@@ -37020,7 +51946,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String[]",
"start_line": 93,
@@ -37036,7 +51969,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String[]",
"start_line": 94,
@@ -37052,7 +51992,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "float[]",
"start_line": 95,
@@ -37068,7 +52015,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 96,
@@ -37084,7 +52038,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 185,
@@ -37100,7 +52061,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.utils.ListProperties",
"start_line": 186,
@@ -37115,7 +52083,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "boolean",
"start_line": 261,
@@ -37130,7 +52105,14 @@
"annotations": []
},
{
- "comment": "/**\r\n * Utilty functions for validating user input.\r\n * validateString will return false if any of the invalid characters appear in the input string.\r\n *\r\n * In general, we do not want to allow special characters in user input,\r\n * because this can open us to a XSS security vulnerability.\r\n * For example, a user should not be allowed to enter javascript in an input field.\r\n */",
+ "comment": {
+ "content": "\r\n * Utilty functions for validating user input.\r\n * validateString will return false if any of the invalid characters appear in the input string.\r\n *\r\n * In general, we do not want to allow special characters in user input,\r\n * because this can open us to a XSS security vulnerability.\r\n * For example, a user should not be allowed to enter javascript in an input field.\r\n ",
+ "start_line": 292,
+ "end_line": 299,
+ "start_column": 5,
+ "end_column": 7,
+ "is_javadoc": false
+ },
"name": null,
"type": "char[]",
"start_line": 300,
@@ -37145,15 +52127,195 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Servlet to handle image actions.\r\n ",
+ "start_line": 33,
+ "end_line": 35,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 39,
+ "end_line": 41,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Servlet initialization.\r\n\t ",
+ "start_line": 47,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 54,
+ "end_line": 61,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 67,
+ "end_line": 74,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Main service method for ImageServlet\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 80,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.IOException",
"javax.inject.Inject",
@@ -37180,7 +52342,56 @@
"extends_list": [
"HttpServlet"
],
- "comment": "/**\r\n * Servlet to handle image actions.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 39,
+ "end_line": 41,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Servlet initialization.\r\n\t ",
+ "start_line": 47,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 54,
+ "end_line": 61,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 67,
+ "end_line": 74,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Main service method for ImageServlet\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 80,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Servlet to handle image actions.\r\n ",
+ "start_line": 33,
+ "end_line": 35,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -37193,9 +52404,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"init(ServletConfig)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java",
"signature": "init(ServletConfig)",
- "comment": "/**\r\n\t * Servlet initialization.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Servlet initialization.\r\n\t ",
+ "start_line": 47,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37209,12 +52429,17 @@
"type": "ServletConfig",
"name": "config",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 50,
+ "end_line": 50,
+ "start_column": 19,
+ "end_column": 38
}
],
- "code": "{\n super.init(config);\n}",
+ "code": "{\r\n\t\tsuper.init(config);\r\n\t}",
"start_line": 50,
"end_line": 52,
+ "code_start_line": 50,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -37223,6 +52448,7 @@
"call_sites": [
{
"method_name": "init",
+ "comment": null,
"receiver_expr": "super",
"receiver_type": "",
"argument_types": [
@@ -37251,9 +52477,18 @@
"is_entrypoint": false
},
"doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java",
"signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)",
- "comment": "/**\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Process incoming HTTP GET requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 54,
+ "end_line": 61,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37268,18 +52503,27 @@
"type": "javax.servlet.http.HttpServletRequest",
"name": "request",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 62,
+ "end_line": 62,
+ "start_column": 20,
+ "end_column": 64
},
{
"type": "javax.servlet.http.HttpServletResponse",
"name": "response",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 63,
+ "end_line": 63,
+ "start_column": 4,
+ "end_column": 50
}
],
- "code": "{\n performTask(request, response);\n}",
+ "code": "{\r\n\t\tperformTask(request, response);\r\n\t}",
"start_line": 62,
"end_line": 65,
+ "code_start_line": 63,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -37288,6 +52532,7 @@
"call_sites": [
{
"method_name": "performTask",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -37314,12 +52559,21 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 1,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java",
"signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)",
- "comment": "/**\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Process incoming HTTP POST requests\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 67,
+ "end_line": 74,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37334,18 +52588,27 @@
"type": "javax.servlet.http.HttpServletRequest",
"name": "request",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 75,
+ "end_line": 75,
+ "start_column": 21,
+ "end_column": 65
},
{
"type": "javax.servlet.http.HttpServletResponse",
"name": "response",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 76,
+ "end_line": 76,
+ "start_column": 4,
+ "end_column": 50
}
],
- "code": "{\n performTask(request, response);\n}",
+ "code": "{\r\n\t\tperformTask(request, response);\r\n\t}",
"start_line": 75,
"end_line": 78,
+ "code_start_line": 76,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -37354,6 +52617,7 @@
"call_sites": [
{
"method_name": "performTask",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -37380,12 +52644,21 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 1,
- "is_entrypoint": false
+ "is_entrypoint": true
},
"performTask(HttpServletRequest, HttpServletResponse)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ImageServlet.java",
"signature": "performTask(HttpServletRequest, HttpServletResponse)",
- "comment": "/**\r\n\t * Main service method for ImageServlet\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Main service method for ImageServlet\r\n\t *\r\n\t * @param request\r\n\t * Object that encapsulates the request to the servlet\r\n\t * @param response\r\n\t * Object that encapsulates the response from the servlet\r\n\t ",
+ "start_line": 80,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"private"
@@ -37400,18 +52673,27 @@
"type": "HttpServletRequest",
"name": "req",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 27,
+ "end_column": 48
},
{
"type": "HttpServletResponse",
"name": "resp",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 51,
+ "end_column": 74
}
],
- "code": "{\n String action = null;\n action = req.getParameter(\"action\");\n Util.debug(\"action=\" + action);\n if (action.equals(\"getimage\")) {\n String inventoryID = req.getParameter(\"inventoryID\");\n byte[] buf = catalog.getItemImageBytes(inventoryID);\n if (buf != null) {\n resp.setContentType(\"image/jpeg\");\n resp.getOutputStream().write(buf);\n }\n }\n}",
+ "code": "{\r\n\t\tString action = null;\r\n\r\n\t\taction = req.getParameter(\"action\");\r\n\t\tUtil.debug(\"action=\" + action);\r\n\r\n\t\tif (action.equals(\"getimage\")) {\r\n\t\t\tString inventoryID = req.getParameter(\"inventoryID\");\r\n\r\n\t\t\tbyte[] buf = catalog.getItemImageBytes(inventoryID);\r\n\t\t\tif (buf != null) {\r\n\t\t\t\tresp.setContentType(\"image/jpeg\");\r\n\t\t\t\tresp.getOutputStream().write(buf);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"start_line": 88,
"end_line": 103,
+ "code_start_line": 88,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -37424,6 +52706,7 @@
"call_sites": [
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -37446,6 +52729,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -37468,6 +52752,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "action",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -37490,6 +52775,7 @@
},
{
"method_name": "getParameter",
+ "comment": null,
"receiver_expr": "req",
"receiver_type": "",
"argument_types": [
@@ -37512,6 +52798,7 @@
},
{
"method_name": "getItemImageBytes",
+ "comment": null,
"receiver_expr": "catalog",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"argument_types": [
@@ -37534,6 +52821,7 @@
},
{
"method_name": "setContentType",
+ "comment": null,
"receiver_expr": "resp",
"receiver_type": "",
"argument_types": [
@@ -37556,6 +52844,7 @@
},
{
"method_name": "write",
+ "comment": null,
"receiver_expr": "resp.getOutputStream()",
"receiver_type": "",
"argument_types": [
@@ -37578,6 +52867,7 @@
},
{
"method_name": "getOutputStream",
+ "comment": null,
"receiver_expr": "resp",
"receiver_type": "",
"argument_types": [],
@@ -37599,6 +52889,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "action",
"type": "java.lang.String",
"initializer": "null",
@@ -37608,6 +52906,14 @@
"end_column": 22
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inventoryID",
"type": "java.lang.String",
"initializer": "req.getParameter(\"inventoryID\")",
@@ -37617,6 +52923,14 @@
"end_column": 55
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "buf",
"type": "byte[]",
"initializer": "catalog.getItemImageBytes(inventoryID)",
@@ -37629,12 +52943,19 @@
"crud_operations": [],
"crud_queries": [],
"cyclomatic_complexity": 3,
- "is_entrypoint": false
+ "is_entrypoint": true
}
},
"field_declarations": [
{
- "comment": "/**\r\n\t * \r\n\t */",
+ "comment": {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 39,
+ "end_line": 41,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 42,
@@ -37650,7 +52971,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr",
"start_line": 44,
@@ -37666,15 +52994,363 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": true
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2003,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * A class to hold a back order item's data.\r\n ",
+ "start_line": 23,
+ "end_line": 25,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @see java.lang.Object#Object()\r\n\t ",
+ "start_line": 41,
+ "end_line": 43,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 27,
+ "end_line": 29,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 33,
+ "end_line": 33,
+ "start_column": 30,
+ "end_column": 46,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 34,
+ "end_line": 34,
+ "start_column": 24,
+ "end_column": 40,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 35,
+ "end_line": 35,
+ "start_column": 25,
+ "end_column": 41,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 36,
+ "end_line": 36,
+ "start_column": 24,
+ "end_column": 40,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 37,
+ "end_line": 37,
+ "start_column": 26,
+ "end_column": 42,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 38,
+ "end_line": 38,
+ "start_column": 34,
+ "end_column": 50,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 39,
+ "end_line": 39,
+ "start_column": 31,
+ "end_column": 47,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default constructor. ",
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 2,
+ "end_column": 28,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method BackOrderItem.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param inventoryID\r\n\t * @param name\r\n\t * @param quantity\r\n\t * @param status\r\n\t ",
+ "start_line": 48,
+ "end_line": 56,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method BackOrderItem.\r\n\t * \r\n\t * @param backOrder\r\n\t ",
+ "start_line": 65,
+ "end_line": 69,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getBackOrderID.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 84,
+ "end_line": 88,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderID.\r\n\t * \r\n\t * @param backOrderID\r\n\t ",
+ "start_line": 93,
+ "end_line": 97,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getSupplierOrderID.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 102,
+ "end_line": 106,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method setSupplierOrderID.\r\n\t * \r\n\t * @param supplierOrderID\r\n\t ",
+ "start_line": 111,
+ "end_line": 115,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method setQuantity.\r\n\t * \r\n\t * @param quantity\r\n\t ",
+ "start_line": 120,
+ "end_line": 124,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getInventoryID.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 129,
+ "end_line": 133,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getName.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 138,
+ "end_line": 142,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method setName.\r\n\t * \r\n\t * @param name\r\n\t ",
+ "start_line": 147,
+ "end_line": 151,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getQuantity.\r\n\t * \r\n\t * @return int\r\n\t ",
+ "start_line": 156,
+ "end_line": 160,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getInventoryQuantity.\r\n\t * \r\n\t * @return int\r\n\t ",
+ "start_line": 165,
+ "end_line": 169,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method setInventoryQuantity.\r\n\t * \r\n\t * @param quantity\r\n\t ",
+ "start_line": 174,
+ "end_line": 178,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getStatus.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 183,
+ "end_line": 187,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getLowDate.\r\n\t * \r\n\t * @return long\r\n\t ",
+ "start_line": 192,
+ "end_line": 196,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getOrderDate.\r\n\t * \r\n\t * @return long\r\n\t ",
+ "start_line": 201,
+ "end_line": 205,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"com.ibm.websphere.samples.pbw.jpa.BackOrder",
"com.ibm.websphere.samples.pbw.jpa.Inventory",
@@ -37691,7 +53367,224 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * A class to hold a back order item's data.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * @see java.lang.Object#Object()\r\n\t ",
+ "start_line": 41,
+ "end_line": 43,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 27,
+ "end_line": 29,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 33,
+ "end_line": 33,
+ "start_column": 30,
+ "end_column": 46,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 34,
+ "end_line": 34,
+ "start_column": 24,
+ "end_column": 40,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 35,
+ "end_line": 35,
+ "start_column": 25,
+ "end_column": 41,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 36,
+ "end_line": 36,
+ "start_column": 24,
+ "end_column": 40,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 37,
+ "end_line": 37,
+ "start_column": 26,
+ "end_column": 42,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 38,
+ "end_line": 38,
+ "start_column": 34,
+ "end_column": 50,
+ "is_javadoc": false
+ },
+ {
+ "content": " from BackOrder",
+ "start_line": 39,
+ "end_line": 39,
+ "start_column": 31,
+ "end_column": 47,
+ "is_javadoc": false
+ },
+ {
+ "content": " Default constructor. ",
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 2,
+ "end_column": 28,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method BackOrderItem.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param inventoryID\r\n\t * @param name\r\n\t * @param quantity\r\n\t * @param status\r\n\t ",
+ "start_line": 48,
+ "end_line": 56,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method BackOrderItem.\r\n\t * \r\n\t * @param backOrder\r\n\t ",
+ "start_line": 65,
+ "end_line": 69,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getBackOrderID.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 84,
+ "end_line": 88,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderID.\r\n\t * \r\n\t * @param backOrderID\r\n\t ",
+ "start_line": 93,
+ "end_line": 97,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getSupplierOrderID.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 102,
+ "end_line": 106,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method setSupplierOrderID.\r\n\t * \r\n\t * @param supplierOrderID\r\n\t ",
+ "start_line": 111,
+ "end_line": 115,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method setQuantity.\r\n\t * \r\n\t * @param quantity\r\n\t ",
+ "start_line": 120,
+ "end_line": 124,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getInventoryID.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 129,
+ "end_line": 133,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getName.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 138,
+ "end_line": 142,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method setName.\r\n\t * \r\n\t * @param name\r\n\t ",
+ "start_line": 147,
+ "end_line": 151,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getQuantity.\r\n\t * \r\n\t * @return int\r\n\t ",
+ "start_line": 156,
+ "end_line": 160,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getInventoryQuantity.\r\n\t * \r\n\t * @return int\r\n\t ",
+ "start_line": 165,
+ "end_line": 169,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method setInventoryQuantity.\r\n\t * \r\n\t * @param quantity\r\n\t ",
+ "start_line": 174,
+ "end_line": 178,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getStatus.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 183,
+ "end_line": 187,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getLowDate.\r\n\t * \r\n\t * @return long\r\n\t ",
+ "start_line": 192,
+ "end_line": 196,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getOrderDate.\r\n\t * \r\n\t * @return long\r\n\t ",
+ "start_line": 201,
+ "end_line": 205,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * A class to hold a back order item's data.\r\n ",
+ "start_line": 23,
+ "end_line": 25,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -37703,9 +53596,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"setBackOrderID(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "setBackOrderID(String)",
- "comment": "/**\r\n\t * Method setBackOrderID.\r\n\t * \r\n\t * @param backOrderID\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method setBackOrderID.\r\n\t * \r\n\t * @param backOrderID\r\n\t ",
+ "start_line": 93,
+ "end_line": 97,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37717,12 +53619,17 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 98,
+ "end_line": 98,
+ "start_column": 29,
+ "end_column": 46
}
],
- "code": "{\n this.backOrderID = backOrderID;\n}",
+ "code": "{\r\n\t\tthis.backOrderID = backOrderID;\r\n\t}",
"start_line": 98,
"end_line": 100,
+ "code_start_line": 98,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -37740,9 +53647,18 @@
"is_entrypoint": false
},
"getQuantity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "getQuantity()",
- "comment": "/**\r\n\t * Method getQuantity.\r\n\t * \r\n\t * @return int\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method getQuantity.\r\n\t * \r\n\t * @return int\r\n\t ",
+ "start_line": 156,
+ "end_line": 160,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37750,9 +53666,10 @@
"thrown_exceptions": [],
"declaration": "public int getQuantity()",
"parameters": [],
- "code": "{\n return quantity;\n}",
+ "code": "{\r\n\t\treturn quantity;\r\n\t}",
"start_line": 161,
"end_line": 163,
+ "code_start_line": 161,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -37768,9 +53685,18 @@
"is_entrypoint": false
},
"getInventory()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "getInventory()",
- "comment": "/**\r\n\t * Method getInventoryID.\r\n\t * \r\n\t * @return String\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method getInventoryID.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 129,
+ "end_line": 133,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37778,9 +53704,10 @@
"thrown_exceptions": [],
"declaration": "public Inventory getInventory()",
"parameters": [],
- "code": "{\n return inventory;\n}",
+ "code": "{\r\n\t\treturn inventory;\r\n\t}",
"start_line": 134,
"end_line": 136,
+ "code_start_line": 134,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"is_implicit": false,
"is_constructor": false,
@@ -37796,9 +53723,18 @@
"is_entrypoint": false
},
"getOrderDate()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "getOrderDate()",
- "comment": "/**\r\n\t * Method getOrderDate.\r\n\t * \r\n\t * @return long\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method getOrderDate.\r\n\t * \r\n\t * @return long\r\n\t ",
+ "start_line": 201,
+ "end_line": 205,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37806,9 +53742,10 @@
"thrown_exceptions": [],
"declaration": "public long getOrderDate()",
"parameters": [],
- "code": "{\n return orderDate;\n}",
+ "code": "{\r\n\t\treturn orderDate;\r\n\t}",
"start_line": 206,
"end_line": 208,
+ "code_start_line": 206,
"return_type": "long",
"is_implicit": false,
"is_constructor": false,
@@ -37824,9 +53761,18 @@
"is_entrypoint": false
},
"setName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "setName(String)",
- "comment": "/**\r\n\t * Method setName.\r\n\t * \r\n\t * @param name\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method setName.\r\n\t * \r\n\t * @param name\r\n\t ",
+ "start_line": 147,
+ "end_line": 151,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37838,12 +53784,17 @@
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 152,
+ "end_line": 152,
+ "start_column": 22,
+ "end_column": 32
}
],
- "code": "{\n this.name = name;\n}",
+ "code": "{\r\n\t\tthis.name = name;\r\n\t}",
"start_line": 152,
"end_line": 154,
+ "code_start_line": 152,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -37861,9 +53812,18 @@
"is_entrypoint": false
},
"getLowDate()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "getLowDate()",
- "comment": "/**\r\n\t * Method getLowDate.\r\n\t * \r\n\t * @return long\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method getLowDate.\r\n\t * \r\n\t * @return long\r\n\t ",
+ "start_line": 192,
+ "end_line": 196,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37871,9 +53831,10 @@
"thrown_exceptions": [],
"declaration": "public long getLowDate()",
"parameters": [],
- "code": "{\n return lowDate;\n}",
+ "code": "{\r\n\t\treturn lowDate;\r\n\t}",
"start_line": 197,
"end_line": 199,
+ "code_start_line": 197,
"return_type": "long",
"is_implicit": false,
"is_constructor": false,
@@ -37889,9 +53850,18 @@
"is_entrypoint": false
},
"(String, Inventory, String, int, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "BackOrderItem(String, Inventory, String, int, String)",
- "comment": "/**\r\n\t * Method BackOrderItem.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param inventoryID\r\n\t * @param name\r\n\t * @param quantity\r\n\t * @param status\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method BackOrderItem.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param inventoryID\r\n\t * @param name\r\n\t * @param quantity\r\n\t * @param status\r\n\t ",
+ "start_line": 48,
+ "end_line": 56,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37903,36 +53873,57 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 57,
+ "end_line": 57,
+ "start_column": 23,
+ "end_column": 40
},
{
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 57,
+ "end_line": 57,
+ "start_column": 43,
+ "end_column": 63
},
{
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 57,
+ "end_line": 57,
+ "start_column": 66,
+ "end_column": 76
},
{
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 57,
+ "end_line": 57,
+ "start_column": 79,
+ "end_column": 90
},
{
"type": "java.lang.String",
"name": "status",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 57,
+ "end_line": 57,
+ "start_column": 93,
+ "end_column": 105
}
],
- "code": "{\n this.backOrderID = backOrderID;\n this.inventory = inventoryID;\n this.name = name;\n this.quantity = quantity;\n this.status = status;\n}",
+ "code": "{\r\n\t\tthis.backOrderID = backOrderID;\r\n\t\tthis.inventory = inventoryID;\r\n\t\tthis.name = name;\r\n\t\tthis.quantity = quantity;\r\n\t\tthis.status = status;\r\n\t}",
"start_line": 57,
"end_line": 63,
+ "code_start_line": 57,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -37955,9 +53946,18 @@
"is_entrypoint": false
},
"getInventoryQuantity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "getInventoryQuantity()",
- "comment": "/**\r\n\t * Method getInventoryQuantity.\r\n\t * \r\n\t * @return int\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method getInventoryQuantity.\r\n\t * \r\n\t * @return int\r\n\t ",
+ "start_line": 165,
+ "end_line": 169,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37965,9 +53965,10 @@
"thrown_exceptions": [],
"declaration": "public int getInventoryQuantity()",
"parameters": [],
- "code": "{\n return inventoryQuantity;\n}",
+ "code": "{\r\n\t\treturn inventoryQuantity;\r\n\t}",
"start_line": 170,
"end_line": 172,
+ "code_start_line": 170,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -37983,9 +53984,18 @@
"is_entrypoint": false
},
"(BackOrder)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "BackOrderItem(BackOrder)",
- "comment": "/**\r\n\t * Method BackOrderItem.\r\n\t * \r\n\t * @param backOrder\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method BackOrderItem.\r\n\t * \r\n\t * @param backOrder\r\n\t ",
+ "start_line": 65,
+ "end_line": 69,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -37997,12 +54007,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"name": "backOrder",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 23,
+ "end_column": 41
}
],
- "code": "{\n try {\n this.backOrderID = backOrder.getBackOrderID();\n this.inventory = backOrder.getInventory();\n this.quantity = backOrder.getQuantity();\n this.status = backOrder.getStatus();\n this.lowDate = backOrder.getLowDate();\n this.orderDate = backOrder.getOrderDate();\n this.supplierOrderID = backOrder.getSupplierOrderID();\n } catch (Exception e) {\n Util.debug(\"BackOrderItem - Exception: \" + e);\n }\n}",
+ "code": "{\r\n\t\ttry {\r\n\t\t\tthis.backOrderID = backOrder.getBackOrderID();\r\n\t\t\tthis.inventory = backOrder.getInventory();\r\n\t\t\tthis.quantity = backOrder.getQuantity();\r\n\t\t\tthis.status = backOrder.getStatus();\r\n\t\t\tthis.lowDate = backOrder.getLowDate();\r\n\t\t\tthis.orderDate = backOrder.getOrderDate();\r\n\t\t\tthis.supplierOrderID = backOrder.getSupplierOrderID();\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"BackOrderItem - Exception: \" + e);\r\n\t\t}\r\n\t}",
"start_line": 70,
"end_line": 82,
+ "code_start_line": 70,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -38022,6 +54037,7 @@
"call_sites": [
{
"method_name": "getBackOrderID",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -38042,6 +54058,7 @@
},
{
"method_name": "getInventory",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -38062,6 +54079,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -38082,6 +54100,7 @@
},
{
"method_name": "getStatus",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -38102,6 +54121,7 @@
},
{
"method_name": "getLowDate",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -38122,6 +54142,7 @@
},
{
"method_name": "getOrderDate",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -38142,6 +54163,7 @@
},
{
"method_name": "getSupplierOrderID",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -38162,6 +54184,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -38190,9 +54213,18 @@
"is_entrypoint": false
},
"setInventoryQuantity(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "setInventoryQuantity(int)",
- "comment": "/**\r\n\t * Method setInventoryQuantity.\r\n\t * \r\n\t * @param quantity\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method setInventoryQuantity.\r\n\t * \r\n\t * @param quantity\r\n\t ",
+ "start_line": 174,
+ "end_line": 178,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38204,12 +54236,17 @@
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 179,
+ "end_line": 179,
+ "start_column": 35,
+ "end_column": 46
}
],
- "code": "{\n this.inventoryQuantity = quantity;\n}",
+ "code": "{\r\n\t\tthis.inventoryQuantity = quantity;\r\n\t}",
"start_line": 179,
"end_line": 181,
+ "code_start_line": 179,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -38226,9 +54263,18 @@
"is_entrypoint": false
},
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "BackOrderItem()",
- "comment": "/** Default constructor. */",
+ "comments": [
+ {
+ "content": " Default constructor. ",
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 2,
+ "end_column": 28,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38236,9 +54282,10 @@
"thrown_exceptions": [],
"declaration": "public BackOrderItem()",
"parameters": [],
- "code": "{\n}",
+ "code": "{\r\n\t}",
"start_line": 45,
"end_line": 46,
+ "code_start_line": 45,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -38252,9 +54299,18 @@
"is_entrypoint": false
},
"getSupplierOrderID()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "getSupplierOrderID()",
- "comment": "/**\r\n\t * Method getSupplierOrderID.\r\n\t * \r\n\t * @return String\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method getSupplierOrderID.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 102,
+ "end_line": 106,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38262,9 +54318,10 @@
"thrown_exceptions": [],
"declaration": "public String getSupplierOrderID()",
"parameters": [],
- "code": "{\n return supplierOrderID;\n}",
+ "code": "{\r\n\t\treturn supplierOrderID;\r\n\t}",
"start_line": 107,
"end_line": 109,
+ "code_start_line": 107,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -38280,9 +54337,18 @@
"is_entrypoint": false
},
"getName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "getName()",
- "comment": "/**\r\n\t * Method getName.\r\n\t * \r\n\t * @return String\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method getName.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 138,
+ "end_line": 142,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38290,9 +54356,10 @@
"thrown_exceptions": [],
"declaration": "public String getName()",
"parameters": [],
- "code": "{\n return name;\n}",
+ "code": "{\r\n\t\treturn name;\r\n\t}",
"start_line": 143,
"end_line": 145,
+ "code_start_line": 143,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -38308,9 +54375,18 @@
"is_entrypoint": false
},
"setQuantity(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "setQuantity(int)",
- "comment": "/**\r\n\t * Method setQuantity.\r\n\t * \r\n\t * @param quantity\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method setQuantity.\r\n\t * \r\n\t * @param quantity\r\n\t ",
+ "start_line": 120,
+ "end_line": 124,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38322,12 +54398,17 @@
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 125,
+ "end_line": 125,
+ "start_column": 26,
+ "end_column": 37
}
],
- "code": "{\n this.quantity = quantity;\n}",
+ "code": "{\r\n\t\tthis.quantity = quantity;\r\n\t}",
"start_line": 125,
"end_line": 127,
+ "code_start_line": 125,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -38343,9 +54424,18 @@
"is_entrypoint": false
},
"setSupplierOrderID(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "setSupplierOrderID(String)",
- "comment": "/**\r\n\t * Method setSupplierOrderID.\r\n\t * \r\n\t * @param supplierOrderID\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method setSupplierOrderID.\r\n\t * \r\n\t * @param supplierOrderID\r\n\t ",
+ "start_line": 111,
+ "end_line": 115,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38357,12 +54447,17 @@
"type": "java.lang.String",
"name": "supplierOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 116,
+ "end_line": 116,
+ "start_column": 33,
+ "end_column": 54
}
],
- "code": "{\n this.supplierOrderID = supplierOrderID;\n}",
+ "code": "{\r\n\t\tthis.supplierOrderID = supplierOrderID;\r\n\t}",
"start_line": 116,
"end_line": 118,
+ "code_start_line": 116,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -38380,9 +54475,18 @@
"is_entrypoint": false
},
"getStatus()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "getStatus()",
- "comment": "/**\r\n\t * Method getStatus.\r\n\t * \r\n\t * @return String\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method getStatus.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 183,
+ "end_line": 187,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38390,9 +54494,10 @@
"thrown_exceptions": [],
"declaration": "public String getStatus()",
"parameters": [],
- "code": "{\n return status;\n}",
+ "code": "{\r\n\t\treturn status;\r\n\t}",
"start_line": 188,
"end_line": 190,
+ "code_start_line": 188,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -38408,9 +54513,18 @@
"is_entrypoint": false
},
"getBackOrderID()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java",
"signature": "getBackOrderID()",
- "comment": "/**\r\n\t * Method getBackOrderID.\r\n\t * \r\n\t * @return String\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method getBackOrderID.\r\n\t * \r\n\t * @return String\r\n\t ",
+ "start_line": 84,
+ "end_line": 88,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38418,9 +54532,10 @@
"thrown_exceptions": [],
"declaration": "public String getBackOrderID()",
"parameters": [],
- "code": "{\n return backOrderID;\n}",
+ "code": "{\r\n\t\treturn backOrderID;\r\n\t}",
"start_line": 89,
"end_line": 91,
+ "code_start_line": 89,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -38438,7 +54553,14 @@
},
"field_declarations": [
{
- "comment": "/**\r\n\t * \r\n\t */",
+ "comment": {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 27,
+ "end_line": 29,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 30,
@@ -38454,7 +54576,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 31,
@@ -38468,7 +54597,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "int",
"start_line": 32,
@@ -38482,7 +54618,14 @@
"annotations": []
},
{
- "comment": "// from BackOrder",
+ "comment": {
+ "content": " from BackOrder",
+ "start_line": 33,
+ "end_line": 33,
+ "start_column": 30,
+ "end_column": 46,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 33,
@@ -38496,7 +54639,14 @@
"annotations": []
},
{
- "comment": "// from BackOrder",
+ "comment": {
+ "content": " from BackOrder",
+ "start_line": 34,
+ "end_line": 34,
+ "start_column": 24,
+ "end_column": 40,
+ "is_javadoc": false
+ },
"name": null,
"type": "int",
"start_line": 34,
@@ -38510,7 +54660,14 @@
"annotations": []
},
{
- "comment": "// from BackOrder",
+ "comment": {
+ "content": " from BackOrder",
+ "start_line": 35,
+ "end_line": 35,
+ "start_column": 25,
+ "end_column": 41,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 35,
@@ -38524,7 +54681,14 @@
"annotations": []
},
{
- "comment": "// from BackOrder",
+ "comment": {
+ "content": " from BackOrder",
+ "start_line": 36,
+ "end_line": 36,
+ "start_column": 24,
+ "end_column": 40,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 36,
@@ -38538,7 +54702,14 @@
"annotations": []
},
{
- "comment": "// from BackOrder",
+ "comment": {
+ "content": " from BackOrder",
+ "start_line": 37,
+ "end_line": 37,
+ "start_column": 26,
+ "end_column": 42,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 37,
@@ -38552,7 +54723,14 @@
"annotations": []
},
{
- "comment": "// from BackOrder",
+ "comment": {
+ "content": " from BackOrder",
+ "start_line": 38,
+ "end_line": 38,
+ "start_column": 34,
+ "end_column": 50,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 38,
@@ -38566,7 +54744,14 @@
"annotations": []
},
{
- "comment": "// from BackOrder",
+ "comment": {
+ "content": " from BackOrder",
+ "start_line": 39,
+ "end_line": 39,
+ "start_column": 31,
+ "end_column": 47,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"start_line": 39,
@@ -38580,15 +54765,475 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2003,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * ShoppingItem wraps the JPA Inventory entity class to provide additional methods needed by the web\r\n * app.\r\n ",
+ "start_line": 27,
+ "end_line": 30,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Subtotal price calculates a cost based on price and quantity.\r\n\t ",
+ "start_line": 50,
+ "end_line": 52,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param o\r\n\t * @return boolean true if object equals this\r\n\t * @see java.lang.Object#equals(java.lang.Object)\r\n\t ",
+ "start_line": 57,
+ "end_line": 61,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return int hashcode for this object\r\n\t * @see java.lang.Object#hashCode()\r\n\t ",
+ "start_line": 66,
+ "end_line": 69,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String String representation of this object\r\n\t * @see java.lang.Object#toString()\r\n\t ",
+ "start_line": 74,
+ "end_line": 77,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param quantity\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#increaseInventory(int)\r\n\t ",
+ "start_line": 82,
+ "end_line": 85,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return int category enum int value\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getCategory()\r\n\t ",
+ "start_line": 90,
+ "end_line": 93,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param category\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setCategory(int)\r\n\t ",
+ "start_line": 98,
+ "end_line": 101,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return float cost of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getCost()\r\n\t ",
+ "start_line": 106,
+ "end_line": 109,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cost\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setCost(float)\r\n\t ",
+ "start_line": 114,
+ "end_line": 117,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String description of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getDescription()\r\n\t ",
+ "start_line": 122,
+ "end_line": 125,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param description\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setDescription(java.lang.String)\r\n\t ",
+ "start_line": 130,
+ "end_line": 133,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String item heading\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getHeading()\r\n\t ",
+ "start_line": 138,
+ "end_line": 141,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param heading\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setHeading(java.lang.String)\r\n\t ",
+ "start_line": 146,
+ "end_line": 149,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String image URI\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getImage()\r\n\t ",
+ "start_line": 154,
+ "end_line": 157,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param image\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setImage(java.lang.String)\r\n\t ",
+ "start_line": 162,
+ "end_line": 165,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String name of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getName()\r\n\t ",
+ "start_line": 170,
+ "end_line": 173,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param name\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setName(java.lang.String)\r\n\t ",
+ "start_line": 178,
+ "end_line": 181,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String item notes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getNotes()\r\n\t ",
+ "start_line": 186,
+ "end_line": 189,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param notes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setNotes(java.lang.String)\r\n\t ",
+ "start_line": 194,
+ "end_line": 197,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String package information\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getPkginfo()\r\n\t ",
+ "start_line": 202,
+ "end_line": 205,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param pkginfo\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPkginfo(java.lang.String)\r\n\t ",
+ "start_line": 210,
+ "end_line": 213,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return float Price of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getPrice()\r\n\t ",
+ "start_line": 218,
+ "end_line": 221,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param price\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPrice(float)\r\n\t ",
+ "start_line": 226,
+ "end_line": 229,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Property accessor for quantity of items ordered. Quantity may not be less than zero. Bean\r\n\t * Validation will ensure this is true.\r\n\t * \r\n\t * @return int quantity of items\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getQuantity()\r\n\t ",
+ "start_line": 234,
+ "end_line": 240,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param quantity\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setQuantity(int)\r\n\t ",
+ "start_line": 246,
+ "end_line": 249,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return int maximum threshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getMaxThreshold()\r\n\t ",
+ "start_line": 254,
+ "end_line": 257,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param maxThreshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setMaxThreshold(int)\r\n\t ",
+ "start_line": 262,
+ "end_line": 265,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return int minimum threshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getMinThreshold()\r\n\t ",
+ "start_line": 270,
+ "end_line": 273,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param minThreshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setMinThreshold(int)\r\n\t ",
+ "start_line": 278,
+ "end_line": 281,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String item ID in the inventory\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getInventoryId()\r\n\t ",
+ "start_line": 286,
+ "end_line": 289,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param id\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setInventoryId(java.lang.String)\r\n\t ",
+ "start_line": 294,
+ "end_line": 297,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String item ID\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getID()\r\n\t ",
+ "start_line": 302,
+ "end_line": 305,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param id\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setID(java.lang.String)\r\n\t ",
+ "start_line": 310,
+ "end_line": 313,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return boolean true if this is a public item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#isPublic()\r\n\t ",
+ "start_line": 318,
+ "end_line": 321,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param isPublic\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setIsPublic(boolean)\r\n\t ",
+ "start_line": 326,
+ "end_line": 329,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param isPublic\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPrivacy(boolean)\r\n\t ",
+ "start_line": 334,
+ "end_line": 337,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return byte[] item image as a byte array\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getImgbytes()\r\n\t ",
+ "start_line": 342,
+ "end_line": 345,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param imgbytes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setImgbytes(byte[])\r\n\t ",
+ "start_line": 350,
+ "end_line": 353,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return BackOrder item is on back order\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getBackOrder()\r\n\t ",
+ "start_line": 358,
+ "end_line": 361,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param backOrder\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setBackOrder(com.ibm.websphere.samples.pbw.jpa.BackOrder)\r\n\t ",
+ "start_line": 366,
+ "end_line": 369,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.Serializable",
"javax.validation.constraints.Min",
@@ -38606,7 +55251,336 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * ShoppingItem wraps the JPA Inventory entity class to provide additional methods needed by the web\r\n * app.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * Subtotal price calculates a cost based on price and quantity.\r\n\t ",
+ "start_line": 50,
+ "end_line": 52,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param o\r\n\t * @return boolean true if object equals this\r\n\t * @see java.lang.Object#equals(java.lang.Object)\r\n\t ",
+ "start_line": 57,
+ "end_line": 61,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return int hashcode for this object\r\n\t * @see java.lang.Object#hashCode()\r\n\t ",
+ "start_line": 66,
+ "end_line": 69,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String String representation of this object\r\n\t * @see java.lang.Object#toString()\r\n\t ",
+ "start_line": 74,
+ "end_line": 77,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param quantity\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#increaseInventory(int)\r\n\t ",
+ "start_line": 82,
+ "end_line": 85,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return int category enum int value\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getCategory()\r\n\t ",
+ "start_line": 90,
+ "end_line": 93,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param category\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setCategory(int)\r\n\t ",
+ "start_line": 98,
+ "end_line": 101,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return float cost of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getCost()\r\n\t ",
+ "start_line": 106,
+ "end_line": 109,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param cost\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setCost(float)\r\n\t ",
+ "start_line": 114,
+ "end_line": 117,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String description of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getDescription()\r\n\t ",
+ "start_line": 122,
+ "end_line": 125,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param description\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setDescription(java.lang.String)\r\n\t ",
+ "start_line": 130,
+ "end_line": 133,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String item heading\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getHeading()\r\n\t ",
+ "start_line": 138,
+ "end_line": 141,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param heading\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setHeading(java.lang.String)\r\n\t ",
+ "start_line": 146,
+ "end_line": 149,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String image URI\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getImage()\r\n\t ",
+ "start_line": 154,
+ "end_line": 157,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param image\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setImage(java.lang.String)\r\n\t ",
+ "start_line": 162,
+ "end_line": 165,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String name of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getName()\r\n\t ",
+ "start_line": 170,
+ "end_line": 173,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param name\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setName(java.lang.String)\r\n\t ",
+ "start_line": 178,
+ "end_line": 181,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String item notes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getNotes()\r\n\t ",
+ "start_line": 186,
+ "end_line": 189,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param notes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setNotes(java.lang.String)\r\n\t ",
+ "start_line": 194,
+ "end_line": 197,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String package information\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getPkginfo()\r\n\t ",
+ "start_line": 202,
+ "end_line": 205,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param pkginfo\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPkginfo(java.lang.String)\r\n\t ",
+ "start_line": 210,
+ "end_line": 213,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return float Price of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getPrice()\r\n\t ",
+ "start_line": 218,
+ "end_line": 221,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param price\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPrice(float)\r\n\t ",
+ "start_line": 226,
+ "end_line": 229,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Property accessor for quantity of items ordered. Quantity may not be less than zero. Bean\r\n\t * Validation will ensure this is true.\r\n\t * \r\n\t * @return int quantity of items\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getQuantity()\r\n\t ",
+ "start_line": 234,
+ "end_line": 240,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param quantity\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setQuantity(int)\r\n\t ",
+ "start_line": 246,
+ "end_line": 249,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return int maximum threshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getMaxThreshold()\r\n\t ",
+ "start_line": 254,
+ "end_line": 257,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param maxThreshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setMaxThreshold(int)\r\n\t ",
+ "start_line": 262,
+ "end_line": 265,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return int minimum threshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getMinThreshold()\r\n\t ",
+ "start_line": 270,
+ "end_line": 273,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param minThreshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setMinThreshold(int)\r\n\t ",
+ "start_line": 278,
+ "end_line": 281,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String item ID in the inventory\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getInventoryId()\r\n\t ",
+ "start_line": 286,
+ "end_line": 289,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param id\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setInventoryId(java.lang.String)\r\n\t ",
+ "start_line": 294,
+ "end_line": 297,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return String item ID\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getID()\r\n\t ",
+ "start_line": 302,
+ "end_line": 305,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param id\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setID(java.lang.String)\r\n\t ",
+ "start_line": 310,
+ "end_line": 313,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return boolean true if this is a public item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#isPublic()\r\n\t ",
+ "start_line": 318,
+ "end_line": 321,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param isPublic\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setIsPublic(boolean)\r\n\t ",
+ "start_line": 326,
+ "end_line": 329,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param isPublic\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPrivacy(boolean)\r\n\t ",
+ "start_line": 334,
+ "end_line": 337,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return byte[] item image as a byte array\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getImgbytes()\r\n\t ",
+ "start_line": 342,
+ "end_line": 345,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param imgbytes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setImgbytes(byte[])\r\n\t ",
+ "start_line": 350,
+ "end_line": 353,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @return BackOrder item is on back order\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getBackOrder()\r\n\t ",
+ "start_line": 358,
+ "end_line": 361,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param backOrder\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setBackOrder(com.ibm.websphere.samples.pbw.jpa.BackOrder)\r\n\t ",
+ "start_line": 366,
+ "end_line": 369,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * ShoppingItem wraps the JPA Inventory entity class to provide additional methods needed by the web\r\n * app.\r\n ",
+ "start_line": 27,
+ "end_line": 30,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.lang.Cloneable",
"java.io.Serializable"
@@ -38619,9 +55593,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"setImage(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setImage(String)",
- "comment": "/**\r\n\t * @param image\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setImage(java.lang.String)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param image\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setImage(java.lang.String)\r\n\t ",
+ "start_line": 162,
+ "end_line": 165,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38633,12 +55616,17 @@
"type": "java.lang.String",
"name": "image",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 166,
+ "end_line": 166,
+ "start_column": 23,
+ "end_column": 34
}
],
- "code": "{\n item.setImage(image);\n}",
+ "code": "{\r\n\t\titem.setImage(image);\r\n\t}",
"start_line": 166,
"end_line": 168,
+ "code_start_line": 166,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -38649,6 +55637,7 @@
"call_sites": [
{
"method_name": "setImage",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -38677,9 +55666,18 @@
"is_entrypoint": false
},
"getDescription()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getDescription()",
- "comment": "/**\r\n\t * @return String description of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getDescription()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return String description of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getDescription()\r\n\t ",
+ "start_line": 122,
+ "end_line": 125,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38687,9 +55685,10 @@
"thrown_exceptions": [],
"declaration": "public String getDescription()",
"parameters": [],
- "code": "{\n return item.getDescription();\n}",
+ "code": "{\r\n\t\treturn item.getDescription();\r\n\t}",
"start_line": 126,
"end_line": 128,
+ "code_start_line": 126,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -38700,6 +55699,7 @@
"call_sites": [
{
"method_name": "getDescription",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -38726,9 +55726,18 @@
"is_entrypoint": false
},
"increaseInventory(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "increaseInventory(int)",
- "comment": "/**\r\n\t * @param quantity\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#increaseInventory(int)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param quantity\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#increaseInventory(int)\r\n\t ",
+ "start_line": 82,
+ "end_line": 85,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38740,12 +55749,17 @@
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 86,
+ "end_line": 86,
+ "start_column": 32,
+ "end_column": 43
}
],
- "code": "{\n item.increaseInventory(quantity);\n}",
+ "code": "{\r\n\t\titem.increaseInventory(quantity);\r\n\t}",
"start_line": 86,
"end_line": 88,
+ "code_start_line": 86,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -38756,6 +55770,7 @@
"call_sites": [
{
"method_name": "increaseInventory",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -38784,9 +55799,18 @@
"is_entrypoint": false
},
"setBackOrder(BackOrder)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setBackOrder(BackOrder)",
- "comment": "/**\r\n\t * @param backOrder\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setBackOrder(com.ibm.websphere.samples.pbw.jpa.BackOrder)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param backOrder\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setBackOrder(com.ibm.websphere.samples.pbw.jpa.BackOrder)\r\n\t ",
+ "start_line": 366,
+ "end_line": 369,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38798,12 +55822,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"name": "backOrder",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 370,
+ "end_line": 370,
+ "start_column": 27,
+ "end_column": 45
}
],
- "code": "{\n item.setBackOrder(backOrder);\n}",
+ "code": "{\r\n\t\titem.setBackOrder(backOrder);\r\n\t}",
"start_line": 370,
"end_line": 372,
+ "code_start_line": 370,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -38814,6 +55843,7 @@
"call_sites": [
{
"method_name": "setBackOrder",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -38842,9 +55872,18 @@
"is_entrypoint": false
},
"setName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setName(String)",
- "comment": "/**\r\n\t * @param name\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setName(java.lang.String)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param name\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setName(java.lang.String)\r\n\t ",
+ "start_line": 178,
+ "end_line": 181,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38856,12 +55895,17 @@
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 182,
+ "end_line": 182,
+ "start_column": 22,
+ "end_column": 32
}
],
- "code": "{\n item.setName(name);\n}",
+ "code": "{\r\n\t\titem.setName(name);\r\n\t}",
"start_line": 182,
"end_line": 184,
+ "code_start_line": 182,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -38872,6 +55916,7 @@
"call_sites": [
{
"method_name": "setName",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -38900,9 +55945,18 @@
"is_entrypoint": false
},
"setImgbytes(byte[])": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setImgbytes(byte[])",
- "comment": "/**\r\n\t * @param imgbytes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setImgbytes(byte[])\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param imgbytes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setImgbytes(byte[])\r\n\t ",
+ "start_line": 350,
+ "end_line": 353,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38914,12 +55968,17 @@
"type": "byte[]",
"name": "imgbytes",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 354,
+ "end_line": 354,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n item.setImgbytes(imgbytes);\n}",
+ "code": "{\r\n\t\titem.setImgbytes(imgbytes);\r\n\t}",
"start_line": 354,
"end_line": 356,
+ "code_start_line": 354,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -38930,6 +55989,7 @@
"call_sites": [
{
"method_name": "setImgbytes",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -38958,9 +56018,18 @@
"is_entrypoint": false
},
"getMaxThreshold()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getMaxThreshold()",
- "comment": "/**\r\n\t * @return int maximum threshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getMaxThreshold()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return int maximum threshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getMaxThreshold()\r\n\t ",
+ "start_line": 254,
+ "end_line": 257,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -38968,9 +56037,10 @@
"thrown_exceptions": [],
"declaration": "public int getMaxThreshold()",
"parameters": [],
- "code": "{\n return item.getMaxThreshold();\n}",
+ "code": "{\r\n\t\treturn item.getMaxThreshold();\r\n\t}",
"start_line": 258,
"end_line": 260,
+ "code_start_line": 258,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -38981,6 +56051,7 @@
"call_sites": [
{
"method_name": "getMaxThreshold",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -39007,9 +56078,18 @@
"is_entrypoint": false
},
"getInventoryId()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getInventoryId()",
- "comment": "/**\r\n\t * @return String item ID in the inventory\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getInventoryId()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return String item ID in the inventory\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getInventoryId()\r\n\t ",
+ "start_line": 286,
+ "end_line": 289,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39017,9 +56097,10 @@
"thrown_exceptions": [],
"declaration": "public String getInventoryId()",
"parameters": [],
- "code": "{\n return item.getInventoryId();\n}",
+ "code": "{\r\n\t\treturn item.getInventoryId();\r\n\t}",
"start_line": 290,
"end_line": 292,
+ "code_start_line": 290,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -39030,6 +56111,7 @@
"call_sites": [
{
"method_name": "getInventoryId",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -39056,9 +56138,18 @@
"is_entrypoint": false
},
"getPkginfo()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getPkginfo()",
- "comment": "/**\r\n\t * @return String package information\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getPkginfo()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return String package information\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getPkginfo()\r\n\t ",
+ "start_line": 202,
+ "end_line": 205,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39066,9 +56157,10 @@
"thrown_exceptions": [],
"declaration": "public String getPkginfo()",
"parameters": [],
- "code": "{\n return item.getPkginfo();\n}",
+ "code": "{\r\n\t\treturn item.getPkginfo();\r\n\t}",
"start_line": 206,
"end_line": 208,
+ "code_start_line": 206,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -39079,6 +56171,7 @@
"call_sites": [
{
"method_name": "getPkginfo",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -39105,9 +56198,18 @@
"is_entrypoint": false
},
"getMinThreshold()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getMinThreshold()",
- "comment": "/**\r\n\t * @return int minimum threshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getMinThreshold()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return int minimum threshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getMinThreshold()\r\n\t ",
+ "start_line": 270,
+ "end_line": 273,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39115,9 +56217,10 @@
"thrown_exceptions": [],
"declaration": "public int getMinThreshold()",
"parameters": [],
- "code": "{\n return item.getMinThreshold();\n}",
+ "code": "{\r\n\t\treturn item.getMinThreshold();\r\n\t}",
"start_line": 274,
"end_line": 276,
+ "code_start_line": 274,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -39128,6 +56231,7 @@
"call_sites": [
{
"method_name": "getMinThreshold",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -39154,9 +56258,18 @@
"is_entrypoint": false
},
"hashCode()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "hashCode()",
- "comment": "/**\r\n\t * @return int hashcode for this object\r\n\t * @see java.lang.Object#hashCode()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return int hashcode for this object\r\n\t * @see java.lang.Object#hashCode()\r\n\t ",
+ "start_line": 66,
+ "end_line": 69,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39164,9 +56277,10 @@
"thrown_exceptions": [],
"declaration": "public int hashCode()",
"parameters": [],
- "code": "{\n return item.hashCode();\n}",
+ "code": "{\r\n\t\treturn item.hashCode();\r\n\t}",
"start_line": 70,
"end_line": 72,
+ "code_start_line": 70,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -39177,6 +56291,7 @@
"call_sites": [
{
"method_name": "hashCode",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -39203,9 +56318,18 @@
"is_entrypoint": false
},
"setNotes(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setNotes(String)",
- "comment": "/**\r\n\t * @param notes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setNotes(java.lang.String)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param notes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setNotes(java.lang.String)\r\n\t ",
+ "start_line": 194,
+ "end_line": 197,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39217,12 +56341,17 @@
"type": "java.lang.String",
"name": "notes",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 198,
+ "end_line": 198,
+ "start_column": 23,
+ "end_column": 34
}
],
- "code": "{\n item.setNotes(notes);\n}",
+ "code": "{\r\n\t\titem.setNotes(notes);\r\n\t}",
"start_line": 198,
"end_line": 200,
+ "code_start_line": 198,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -39233,6 +56362,7 @@
"call_sites": [
{
"method_name": "setNotes",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -39261,9 +56391,18 @@
"is_entrypoint": false
},
"setMinThreshold(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setMinThreshold(int)",
- "comment": "/**\r\n\t * @param minThreshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setMinThreshold(int)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param minThreshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setMinThreshold(int)\r\n\t ",
+ "start_line": 278,
+ "end_line": 281,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39275,12 +56414,17 @@
"type": "int",
"name": "minThreshold",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 282,
+ "end_line": 282,
+ "start_column": 30,
+ "end_column": 45
}
],
- "code": "{\n item.setMinThreshold(minThreshold);\n}",
+ "code": "{\r\n\t\titem.setMinThreshold(minThreshold);\r\n\t}",
"start_line": 282,
"end_line": 284,
+ "code_start_line": 282,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -39291,6 +56435,7 @@
"call_sites": [
{
"method_name": "setMinThreshold",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -39319,9 +56464,18 @@
"is_entrypoint": false
},
"getPrice()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getPrice()",
- "comment": "/**\r\n\t * @return float Price of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getPrice()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return float Price of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getPrice()\r\n\t ",
+ "start_line": 218,
+ "end_line": 221,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39329,9 +56483,10 @@
"thrown_exceptions": [],
"declaration": "public float getPrice()",
"parameters": [],
- "code": "{\n return item.getPrice();\n}",
+ "code": "{\r\n\t\treturn item.getPrice();\r\n\t}",
"start_line": 222,
"end_line": 224,
+ "code_start_line": 222,
"return_type": "float",
"is_implicit": false,
"is_constructor": false,
@@ -39342,6 +56497,7 @@
"call_sites": [
{
"method_name": "getPrice",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -39368,9 +56524,18 @@
"is_entrypoint": false
},
"setInventoryId(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setInventoryId(String)",
- "comment": "/**\r\n\t * @param id\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setInventoryId(java.lang.String)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param id\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setInventoryId(java.lang.String)\r\n\t ",
+ "start_line": 294,
+ "end_line": 297,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39382,12 +56547,17 @@
"type": "java.lang.String",
"name": "id",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 298,
+ "end_line": 298,
+ "start_column": 29,
+ "end_column": 37
}
],
- "code": "{\n item.setInventoryId(id);\n}",
+ "code": "{\r\n\t\titem.setInventoryId(id);\r\n\t}",
"start_line": 298,
"end_line": 300,
+ "code_start_line": 298,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -39398,6 +56568,7 @@
"call_sites": [
{
"method_name": "setInventoryId",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -39426,9 +56597,18 @@
"is_entrypoint": false
},
"setPrivacy(boolean)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setPrivacy(boolean)",
- "comment": "/**\r\n\t * @param isPublic\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPrivacy(boolean)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param isPublic\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPrivacy(boolean)\r\n\t ",
+ "start_line": 334,
+ "end_line": 337,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39440,12 +56620,17 @@
"type": "boolean",
"name": "isPublic",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 338,
+ "end_line": 338,
+ "start_column": 25,
+ "end_column": 40
}
],
- "code": "{\n item.setPrivacy(isPublic);\n}",
+ "code": "{\r\n\t\titem.setPrivacy(isPublic);\r\n\t}",
"start_line": 338,
"end_line": 340,
+ "code_start_line": 338,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -39456,6 +56641,7 @@
"call_sites": [
{
"method_name": "setPrivacy",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -39484,9 +56670,18 @@
"is_entrypoint": false
},
"setMaxThreshold(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setMaxThreshold(int)",
- "comment": "/**\r\n\t * @param maxThreshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setMaxThreshold(int)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param maxThreshold\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setMaxThreshold(int)\r\n\t ",
+ "start_line": 262,
+ "end_line": 265,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39498,12 +56693,17 @@
"type": "int",
"name": "maxThreshold",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 266,
+ "end_line": 266,
+ "start_column": 30,
+ "end_column": 45
}
],
- "code": "{\n item.setMaxThreshold(maxThreshold);\n}",
+ "code": "{\r\n\t\titem.setMaxThreshold(maxThreshold);\r\n\t}",
"start_line": 266,
"end_line": 268,
+ "code_start_line": 266,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -39514,6 +56714,7 @@
"call_sites": [
{
"method_name": "setMaxThreshold",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -39542,9 +56743,9 @@
"is_entrypoint": false
},
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "ShoppingItem()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -39552,9 +56753,10 @@
"thrown_exceptions": [],
"declaration": "public ShoppingItem()",
"parameters": [],
- "code": "{\n}",
+ "code": "{\r\n\r\n\t}",
"start_line": 36,
"end_line": 38,
+ "code_start_line": 36,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -39568,9 +56770,18 @@
"is_entrypoint": false
},
"getName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getName()",
- "comment": "/**\r\n\t * @return String name of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getName()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return String name of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getName()\r\n\t ",
+ "start_line": 170,
+ "end_line": 173,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39578,9 +56789,10 @@
"thrown_exceptions": [],
"declaration": "public String getName()",
"parameters": [],
- "code": "{\n return item.getName();\n}",
+ "code": "{\r\n\t\treturn item.getName();\r\n\t}",
"start_line": 174,
"end_line": 176,
+ "code_start_line": 174,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -39591,6 +56803,7 @@
"call_sites": [
{
"method_name": "getName",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -39617,9 +56830,18 @@
"is_entrypoint": false
},
"setQuantity(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setQuantity(int)",
- "comment": "/**\r\n\t * @param quantity\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setQuantity(int)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param quantity\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setQuantity(int)\r\n\t ",
+ "start_line": 246,
+ "end_line": 249,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39631,12 +56853,17 @@
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 250,
+ "end_line": 250,
+ "start_column": 26,
+ "end_column": 37
}
],
- "code": "{\n item.setQuantity(quantity);\n}",
+ "code": "{\r\n\t\titem.setQuantity(quantity);\r\n\t}",
"start_line": 250,
"end_line": 252,
+ "code_start_line": 250,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -39647,6 +56874,7 @@
"call_sites": [
{
"method_name": "setQuantity",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -39675,9 +56903,18 @@
"is_entrypoint": false
},
"setPkginfo(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setPkginfo(String)",
- "comment": "/**\r\n\t * @param pkginfo\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPkginfo(java.lang.String)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param pkginfo\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPkginfo(java.lang.String)\r\n\t ",
+ "start_line": 210,
+ "end_line": 213,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39689,12 +56926,17 @@
"type": "java.lang.String",
"name": "pkginfo",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 214,
+ "end_line": 214,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n item.setPkginfo(pkginfo);\n}",
+ "code": "{\r\n\t\titem.setPkginfo(pkginfo);\r\n\t}",
"start_line": 214,
"end_line": 216,
+ "code_start_line": 214,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -39705,6 +56947,7 @@
"call_sites": [
{
"method_name": "setPkginfo",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -39733,9 +56976,18 @@
"is_entrypoint": false
},
"getCost()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getCost()",
- "comment": "/**\r\n\t * @return float cost of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getCost()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return float cost of the item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getCost()\r\n\t ",
+ "start_line": 106,
+ "end_line": 109,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39743,9 +56995,10 @@
"thrown_exceptions": [],
"declaration": "public float getCost()",
"parameters": [],
- "code": "{\n return item.getCost();\n}",
+ "code": "{\r\n\t\treturn item.getCost();\r\n\t}",
"start_line": 110,
"end_line": 112,
+ "code_start_line": 110,
"return_type": "float",
"is_implicit": false,
"is_constructor": false,
@@ -39756,6 +57009,7 @@
"call_sites": [
{
"method_name": "getCost",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -39782,9 +57036,18 @@
"is_entrypoint": false
},
"setID(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setID(String)",
- "comment": "/**\r\n\t * @param id\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setID(java.lang.String)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param id\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setID(java.lang.String)\r\n\t ",
+ "start_line": 310,
+ "end_line": 313,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39796,12 +57059,17 @@
"type": "java.lang.String",
"name": "id",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 314,
+ "end_line": 314,
+ "start_column": 20,
+ "end_column": 28
}
],
- "code": "{\n item.setID(id);\n}",
+ "code": "{\r\n\t\titem.setID(id);\r\n\t}",
"start_line": 314,
"end_line": 316,
+ "code_start_line": 314,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -39812,6 +57080,7 @@
"call_sites": [
{
"method_name": "setID",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -39840,9 +57109,18 @@
"is_entrypoint": false
},
"setCategory(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setCategory(int)",
- "comment": "/**\r\n\t * @param category\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setCategory(int)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param category\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setCategory(int)\r\n\t ",
+ "start_line": 98,
+ "end_line": 101,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39854,12 +57132,17 @@
"type": "int",
"name": "category",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 102,
+ "end_line": 102,
+ "start_column": 26,
+ "end_column": 37
}
],
- "code": "{\n item.setCategory(category);\n}",
+ "code": "{\r\n\t\titem.setCategory(category);\r\n\t}",
"start_line": 102,
"end_line": 104,
+ "code_start_line": 102,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -39870,6 +57153,7 @@
"call_sites": [
{
"method_name": "setCategory",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -39898,9 +57182,18 @@
"is_entrypoint": false
},
"getHeading()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getHeading()",
- "comment": "/**\r\n\t * @return String item heading\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getHeading()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return String item heading\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getHeading()\r\n\t ",
+ "start_line": 138,
+ "end_line": 141,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -39908,9 +57201,10 @@
"thrown_exceptions": [],
"declaration": "public String getHeading()",
"parameters": [],
- "code": "{\n return item.getHeading();\n}",
+ "code": "{\r\n\t\treturn item.getHeading();\r\n\t}",
"start_line": 142,
"end_line": 144,
+ "code_start_line": 142,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -39921,6 +57215,7 @@
"call_sites": [
{
"method_name": "getHeading",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -39947,9 +57242,18 @@
"is_entrypoint": false
},
"getQuantity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getQuantity()",
- "comment": "/**\r\n\t * Property accessor for quantity of items ordered. Quantity may not be less than zero. Bean\r\n\t * Validation will ensure this is true.\r\n\t * \r\n\t * @return int quantity of items\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getQuantity()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Property accessor for quantity of items ordered. Quantity may not be less than zero. Bean\r\n\t * Validation will ensure this is true.\r\n\t * \r\n\t * @return int quantity of items\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getQuantity()\r\n\t ",
+ "start_line": 234,
+ "end_line": 240,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [
"@Min(value = 0, message = \"Quantity must be a number greater than or equal to zero.\")"
],
@@ -39959,9 +57263,10 @@
"thrown_exceptions": [],
"declaration": "public int getQuantity()",
"parameters": [],
- "code": "{\n return item.getQuantity();\n}",
+ "code": "{\r\n\t\treturn item.getQuantity();\r\n\t}",
"start_line": 241,
"end_line": 244,
+ "code_start_line": 242,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -39972,6 +57277,7 @@
"call_sites": [
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -39998,9 +57304,18 @@
"is_entrypoint": false
},
"equals(Object)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "equals(Object)",
- "comment": "/**\r\n\t * @param o\r\n\t * @return boolean true if object equals this\r\n\t * @see java.lang.Object#equals(java.lang.Object)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param o\r\n\t * @return boolean true if object equals this\r\n\t * @see java.lang.Object#equals(java.lang.Object)\r\n\t ",
+ "start_line": 57,
+ "end_line": 61,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40012,12 +57327,17 @@
"type": "java.lang.Object",
"name": "o",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 62,
+ "end_line": 62,
+ "start_column": 24,
+ "end_column": 31
}
],
- "code": "{\n return item.equals(o);\n}",
+ "code": "{\r\n\t\treturn item.equals(o);\r\n\t}",
"start_line": 62,
"end_line": 64,
+ "code_start_line": 62,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -40028,6 +57348,7 @@
"call_sites": [
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -40056,9 +57377,18 @@
"is_entrypoint": false
},
"getBackOrder()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getBackOrder()",
- "comment": "/**\r\n\t * @return BackOrder item is on back order\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getBackOrder()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return BackOrder item is on back order\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getBackOrder()\r\n\t ",
+ "start_line": 358,
+ "end_line": 361,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40066,9 +57396,10 @@
"thrown_exceptions": [],
"declaration": "public BackOrder getBackOrder()",
"parameters": [],
- "code": "{\n return item.getBackOrder();\n}",
+ "code": "{\r\n\t\treturn item.getBackOrder();\r\n\t}",
"start_line": 362,
"end_line": 364,
+ "code_start_line": 362,
"return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"is_implicit": false,
"is_constructor": false,
@@ -40079,6 +57410,7 @@
"call_sites": [
{
"method_name": "getBackOrder",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -40105,9 +57437,18 @@
"is_entrypoint": false
},
"getImage()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getImage()",
- "comment": "/**\r\n\t * @return String image URI\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getImage()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return String image URI\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getImage()\r\n\t ",
+ "start_line": 154,
+ "end_line": 157,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40115,9 +57456,10 @@
"thrown_exceptions": [],
"declaration": "public String getImage()",
"parameters": [],
- "code": "{\n return item.getImage();\n}",
+ "code": "{\r\n\t\treturn item.getImage();\r\n\t}",
"start_line": 158,
"end_line": 160,
+ "code_start_line": 158,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -40128,6 +57470,7 @@
"call_sites": [
{
"method_name": "getImage",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -40154,9 +57497,18 @@
"is_entrypoint": false
},
"toString()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "toString()",
- "comment": "/**\r\n\t * @return String String representation of this object\r\n\t * @see java.lang.Object#toString()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return String String representation of this object\r\n\t * @see java.lang.Object#toString()\r\n\t ",
+ "start_line": 74,
+ "end_line": 77,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40164,9 +57516,10 @@
"thrown_exceptions": [],
"declaration": "public String toString()",
"parameters": [],
- "code": "{\n return item.toString();\n}",
+ "code": "{\r\n\t\treturn item.toString();\r\n\t}",
"start_line": 78,
"end_line": 80,
+ "code_start_line": 78,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -40177,6 +57530,7 @@
"call_sites": [
{
"method_name": "toString",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -40203,9 +57557,18 @@
"is_entrypoint": false
},
"isPublic()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "isPublic()",
- "comment": "/**\r\n\t * @return boolean true if this is a public item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#isPublic()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return boolean true if this is a public item\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#isPublic()\r\n\t ",
+ "start_line": 318,
+ "end_line": 321,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40213,9 +57576,10 @@
"thrown_exceptions": [],
"declaration": "public boolean isPublic()",
"parameters": [],
- "code": "{\n return item.isPublic();\n}",
+ "code": "{\r\n\t\treturn item.isPublic();\r\n\t}",
"start_line": 322,
"end_line": 324,
+ "code_start_line": 322,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -40226,6 +57590,7 @@
"call_sites": [
{
"method_name": "isPublic",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -40252,9 +57617,18 @@
"is_entrypoint": false
},
"setIsPublic(boolean)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setIsPublic(boolean)",
- "comment": "/**\r\n\t * @param isPublic\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setIsPublic(boolean)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param isPublic\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setIsPublic(boolean)\r\n\t ",
+ "start_line": 326,
+ "end_line": 329,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40266,12 +57640,17 @@
"type": "boolean",
"name": "isPublic",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 330,
+ "end_line": 330,
+ "start_column": 26,
+ "end_column": 41
}
],
- "code": "{\n item.setIsPublic(isPublic);\n}",
+ "code": "{\r\n\t\titem.setIsPublic(isPublic);\r\n\t}",
"start_line": 330,
"end_line": 332,
+ "code_start_line": 330,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -40282,6 +57661,7 @@
"call_sites": [
{
"method_name": "setIsPublic",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -40310,9 +57690,9 @@
"is_entrypoint": false
},
"(Inventory)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "ShoppingItem(Inventory)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -40324,12 +57704,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "i",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 40,
+ "end_line": 40,
+ "start_column": 22,
+ "end_column": 32
}
],
- "code": "{\n item = i;\n}",
+ "code": "{\r\n\t\titem = i;\r\n\t}",
"start_line": 40,
"end_line": 42,
+ "code_start_line": 40,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -40345,9 +57730,18 @@
"is_entrypoint": false
},
"setPrice(float)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setPrice(float)",
- "comment": "/**\r\n\t * @param price\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPrice(float)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param price\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setPrice(float)\r\n\t ",
+ "start_line": 226,
+ "end_line": 229,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40359,12 +57753,17 @@
"type": "float",
"name": "price",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 230,
+ "end_line": 230,
+ "start_column": 23,
+ "end_column": 33
}
],
- "code": "{\n item.setPrice(price);\n}",
+ "code": "{\r\n\t\titem.setPrice(price);\r\n\t}",
"start_line": 230,
"end_line": 232,
+ "code_start_line": 230,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -40375,6 +57774,7 @@
"call_sites": [
{
"method_name": "setPrice",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -40403,9 +57803,9 @@
"is_entrypoint": false
},
"(String, String, String, String, String, String, float, float, int, int, String, boolean)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "ShoppingItem(String, String, String, String, String, String, float, float, int, int, String, boolean)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -40417,78 +57817,127 @@
"type": "java.lang.String",
"name": "key",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 22,
+ "end_column": 31
},
{
"type": "java.lang.String",
"name": "name",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 34,
+ "end_column": 44
},
{
"type": "java.lang.String",
"name": "heading",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 47,
+ "end_column": 60
},
{
"type": "java.lang.String",
"name": "desc",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 63,
+ "end_column": 73
},
{
"type": "java.lang.String",
"name": "pkginfo",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 76,
+ "end_column": 89
},
{
"type": "java.lang.String",
"name": "image",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 92,
+ "end_column": 103
},
{
"type": "float",
"name": "price",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 106,
+ "end_column": 116
},
{
"type": "float",
"name": "cost",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 45,
+ "end_line": 45,
+ "start_column": 4,
+ "end_column": 13
},
{
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 45,
+ "end_line": 45,
+ "start_column": 16,
+ "end_column": 27
},
{
"type": "int",
"name": "category",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 45,
+ "end_line": 45,
+ "start_column": 30,
+ "end_column": 41
},
{
"type": "java.lang.String",
"name": "notes",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 45,
+ "end_line": 45,
+ "start_column": 44,
+ "end_column": 55
},
{
"type": "boolean",
"name": "isPublic",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 45,
+ "end_line": 45,
+ "start_column": 58,
+ "end_column": 73
}
],
- "code": "{\n item = new Inventory(key, name, heading, desc, pkginfo, image, price, cost, quantity, category, notes, isPublic);\n}",
+ "code": "{\r\n\t\titem = new Inventory(key, name, heading, desc, pkginfo, image, price, cost, quantity, category, notes,\r\n\t\t\t\tisPublic);\r\n\t}",
"start_line": 44,
"end_line": 48,
+ "code_start_line": 45,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -40499,6 +57948,7 @@
"call_sites": [
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -40538,9 +57988,18 @@
"is_entrypoint": false
},
"getID()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getID()",
- "comment": "/**\r\n\t * @return String item ID\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getID()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return String item ID\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getID()\r\n\t ",
+ "start_line": 302,
+ "end_line": 305,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40548,9 +58007,10 @@
"thrown_exceptions": [],
"declaration": "public String getID()",
"parameters": [],
- "code": "{\n return item.getID();\n}",
+ "code": "{\r\n\t\treturn item.getID();\r\n\t}",
"start_line": 306,
"end_line": 308,
+ "code_start_line": 306,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -40561,6 +58021,7 @@
"call_sites": [
{
"method_name": "getID",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -40587,9 +58048,18 @@
"is_entrypoint": false
},
"getImgbytes()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getImgbytes()",
- "comment": "/**\r\n\t * @return byte[] item image as a byte array\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getImgbytes()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return byte[] item image as a byte array\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getImgbytes()\r\n\t ",
+ "start_line": 342,
+ "end_line": 345,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40597,9 +58067,10 @@
"thrown_exceptions": [],
"declaration": "public byte[] getImgbytes()",
"parameters": [],
- "code": "{\n return item.getImgbytes();\n}",
+ "code": "{\r\n\t\treturn item.getImgbytes();\r\n\t}",
"start_line": 346,
"end_line": 348,
+ "code_start_line": 346,
"return_type": "byte[]",
"is_implicit": false,
"is_constructor": false,
@@ -40610,6 +58081,7 @@
"call_sites": [
{
"method_name": "getImgbytes",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -40636,9 +58108,18 @@
"is_entrypoint": false
},
"getSubtotalPrice()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getSubtotalPrice()",
- "comment": "/**\r\n\t * Subtotal price calculates a cost based on price and quantity.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Subtotal price calculates a cost based on price and quantity.\r\n\t ",
+ "start_line": 50,
+ "end_line": 52,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40646,9 +58127,10 @@
"thrown_exceptions": [],
"declaration": "public float getSubtotalPrice()",
"parameters": [],
- "code": "{\n return getPrice() * getQuantity();\n}",
+ "code": "{\r\n\t\treturn getPrice() * getQuantity();\r\n\t}",
"start_line": 53,
"end_line": 55,
+ "code_start_line": 53,
"return_type": "float",
"is_implicit": false,
"is_constructor": false,
@@ -40657,6 +58139,7 @@
"call_sites": [
{
"method_name": "getPrice",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -40677,6 +58160,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [],
@@ -40703,9 +58187,18 @@
"is_entrypoint": false
},
"setDescription(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setDescription(String)",
- "comment": "/**\r\n\t * @param description\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setDescription(java.lang.String)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param description\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setDescription(java.lang.String)\r\n\t ",
+ "start_line": 130,
+ "end_line": 133,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40717,12 +58210,17 @@
"type": "java.lang.String",
"name": "description",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 134,
+ "end_line": 134,
+ "start_column": 29,
+ "end_column": 46
}
],
- "code": "{\n item.setDescription(description);\n}",
+ "code": "{\r\n\t\titem.setDescription(description);\r\n\t}",
"start_line": 134,
"end_line": 136,
+ "code_start_line": 134,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -40733,6 +58231,7 @@
"call_sites": [
{
"method_name": "setDescription",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -40761,9 +58260,18 @@
"is_entrypoint": false
},
"setHeading(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setHeading(String)",
- "comment": "/**\r\n\t * @param heading\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setHeading(java.lang.String)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param heading\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setHeading(java.lang.String)\r\n\t ",
+ "start_line": 146,
+ "end_line": 149,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40775,12 +58283,17 @@
"type": "java.lang.String",
"name": "heading",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 150,
+ "end_line": 150,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n item.setHeading(heading);\n}",
+ "code": "{\r\n\t\titem.setHeading(heading);\r\n\t}",
"start_line": 150,
"end_line": 152,
+ "code_start_line": 150,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -40791,6 +58304,7 @@
"call_sites": [
{
"method_name": "setHeading",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -40819,9 +58333,18 @@
"is_entrypoint": false
},
"getNotes()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getNotes()",
- "comment": "/**\r\n\t * @return String item notes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getNotes()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return String item notes\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getNotes()\r\n\t ",
+ "start_line": 186,
+ "end_line": 189,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40829,9 +58352,10 @@
"thrown_exceptions": [],
"declaration": "public String getNotes()",
"parameters": [],
- "code": "{\n return item.getNotes();\n}",
+ "code": "{\r\n\t\treturn item.getNotes();\r\n\t}",
"start_line": 190,
"end_line": 192,
+ "code_start_line": 190,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -40842,6 +58366,7 @@
"call_sites": [
{
"method_name": "getNotes",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -40868,9 +58393,18 @@
"is_entrypoint": false
},
"getCategory()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "getCategory()",
- "comment": "/**\r\n\t * @return int category enum int value\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getCategory()\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @return int category enum int value\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#getCategory()\r\n\t ",
+ "start_line": 90,
+ "end_line": 93,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40878,9 +58412,10 @@
"thrown_exceptions": [],
"declaration": "public int getCategory()",
"parameters": [],
- "code": "{\n return item.getCategory();\n}",
+ "code": "{\r\n\t\treturn item.getCategory();\r\n\t}",
"start_line": 94,
"end_line": 96,
+ "code_start_line": 94,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -40891,6 +58426,7 @@
"call_sites": [
{
"method_name": "getCategory",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -40917,9 +58453,18 @@
"is_entrypoint": false
},
"setCost(float)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java",
"signature": "setCost(float)",
- "comment": "/**\r\n\t * @param cost\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setCost(float)\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * @param cost\r\n\t * @see com.ibm.websphere.samples.pbw.jpa.Inventory#setCost(float)\r\n\t ",
+ "start_line": 114,
+ "end_line": 117,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -40931,12 +58476,17 @@
"type": "float",
"name": "cost",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 118,
+ "end_line": 118,
+ "start_column": 22,
+ "end_column": 31
}
],
- "code": "{\n item.setCost(cost);\n}",
+ "code": "{\r\n\t\titem.setCost(cost);\r\n\t}",
"start_line": 118,
"end_line": 120,
+ "code_start_line": 118,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -40947,6 +58497,7 @@
"call_sites": [
{
"method_name": "setCost",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -40977,7 +58528,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 33,
@@ -40993,7 +58551,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"start_line": 34,
@@ -41007,15 +58572,211 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * A class to hold a shopping cart's contents.\r\n ",
+ "start_line": 24,
+ "end_line": 26,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 28,
+ "end_line": 30,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Add the item to the shopping cart. ",
+ "start_line": 38,
+ "end_line": 38,
+ "start_column": 2,
+ "end_column": 42,
+ "is_javadoc": true
+ },
+ {
+ "content": " Update the item in the shopping cart. ",
+ "start_line": 43,
+ "end_line": 43,
+ "start_column": 2,
+ "end_column": 45,
+ "is_javadoc": true
+ },
+ {
+ "content": " Remove the item from the shopping cart. ",
+ "start_line": 48,
+ "end_line": 48,
+ "start_column": 2,
+ "end_column": 47,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Return the number of items in the cart.\r\n\t *\r\n\t * @return The number of items in the cart.\r\n\t ",
+ "start_line": 53,
+ "end_line": 57,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Return the inventory ID at the index given. The first element is at index 0, the second at\r\n\t * index 1, and so on.\r\n\t *\r\n\t * @return The inventory ID at the index, or NULL if not present.\r\n\t ",
+ "start_line": 62,
+ "end_line": 67,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Return the quantity for the inventory ID given.\r\n\t *\r\n\t * @return The quantity for the inventory ID given..\r\n\t *\r\n\t ",
+ "start_line": 82,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.util.Enumeration",
"java.util.Hashtable",
@@ -41032,7 +58793,72 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * A class to hold a shopping cart's contents.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 28,
+ "end_line": 30,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Add the item to the shopping cart. ",
+ "start_line": 38,
+ "end_line": 38,
+ "start_column": 2,
+ "end_column": 42,
+ "is_javadoc": true
+ },
+ {
+ "content": " Update the item in the shopping cart. ",
+ "start_line": 43,
+ "end_line": 43,
+ "start_column": 2,
+ "end_column": 45,
+ "is_javadoc": true
+ },
+ {
+ "content": " Remove the item from the shopping cart. ",
+ "start_line": 48,
+ "end_line": 48,
+ "start_column": 2,
+ "end_column": 47,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Return the number of items in the cart.\r\n\t *\r\n\t * @return The number of items in the cart.\r\n\t ",
+ "start_line": 53,
+ "end_line": 57,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Return the inventory ID at the index given. The first element is at index 0, the second at\r\n\t * index 1, and so on.\r\n\t *\r\n\t * @return The inventory ID at the index, or NULL if not present.\r\n\t ",
+ "start_line": 62,
+ "end_line": 67,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Return the quantity for the inventory ID given.\r\n\t *\r\n\t * @return The quantity for the inventory ID given..\r\n\t *\r\n\t ",
+ "start_line": 82,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * A class to hold a shopping cart's contents.\r\n ",
+ "start_line": 24,
+ "end_line": 26,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -41044,9 +58870,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"getQuantity(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
"signature": "getQuantity(String)",
- "comment": "/**\r\n\t * Return the quantity for the inventory ID given.\r\n\t *\r\n\t * @return The quantity for the inventory ID given..\r\n\t *\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Return the quantity for the inventory ID given.\r\n\t *\r\n\t * @return The quantity for the inventory ID given..\r\n\t *\r\n\t ",
+ "start_line": 82,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -41058,12 +58893,17 @@
"type": "java.lang.String",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 88,
+ "end_line": 88,
+ "start_column": 25,
+ "end_column": 42
}
],
- "code": "{\n Integer quantity = (Integer) table.get(inventoryID);\n if (quantity == null)\n return 0;\n else\n return quantity.intValue();\n}",
+ "code": "{\r\n\t\tInteger quantity = (Integer) table.get(inventoryID);\r\n\r\n\t\tif (quantity == null)\r\n\t\t\treturn 0;\r\n\t\telse\r\n\t\t\treturn quantity.intValue();\r\n\t}",
"start_line": 88,
"end_line": 95,
+ "code_start_line": 88,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -41076,6 +58916,7 @@
"call_sites": [
{
"method_name": "get",
+ "comment": null,
"receiver_expr": "table",
"receiver_type": "java.util.Hashtable",
"argument_types": [
@@ -41098,6 +58939,7 @@
},
{
"method_name": "intValue",
+ "comment": null,
"receiver_expr": "quantity",
"receiver_type": "java.lang.Integer",
"argument_types": [],
@@ -41119,6 +58961,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "quantity",
"type": "java.lang.Integer",
"initializer": "(Integer) table.get(inventoryID)",
@@ -41134,9 +58984,18 @@
"is_entrypoint": false
},
"addItem(Inventory)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
"signature": "addItem(Inventory)",
- "comment": "/** Add the item to the shopping cart. */",
+ "comments": [
+ {
+ "content": " Add the item to the shopping cart. ",
+ "start_line": 38,
+ "end_line": 38,
+ "start_column": 2,
+ "end_column": 42,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -41148,12 +59007,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "si",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 39,
+ "end_line": 39,
+ "start_column": 22,
+ "end_column": 33
}
],
- "code": "{\n table.put(si.getID(), new Integer(si.getQuantity()));\n}",
+ "code": "{\r\n\t\ttable.put(si.getID(), new Integer(si.getQuantity()));\r\n\t}",
"start_line": 39,
"end_line": 41,
+ "code_start_line": 39,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -41164,6 +59028,7 @@
"call_sites": [
{
"method_name": "put",
+ "comment": null,
"receiver_expr": "table",
"receiver_type": "java.util.Hashtable",
"argument_types": [
@@ -41187,6 +59052,7 @@
},
{
"method_name": "getID",
+ "comment": null,
"receiver_expr": "si",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -41207,6 +59073,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "si",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -41227,6 +59094,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -41255,9 +59123,9 @@
"is_entrypoint": false
},
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
"signature": "ShoppingCartContent()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -41265,9 +59133,10 @@
"thrown_exceptions": [],
"declaration": "public ShoppingCartContent()",
"parameters": [],
- "code": "{\n table = new Hashtable();\n}",
+ "code": "{\r\n\t\ttable = new Hashtable();\r\n\t}",
"start_line": 34,
"end_line": 36,
+ "code_start_line": 34,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -41278,6 +59147,7 @@
"call_sites": [
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.Hashtable",
"argument_types": [],
@@ -41304,9 +59174,18 @@
"is_entrypoint": false
},
"getInventoryID(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
"signature": "getInventoryID(int)",
- "comment": "/**\r\n\t * Return the inventory ID at the index given. The first element is at index 0, the second at\r\n\t * index 1, and so on.\r\n\t *\r\n\t * @return The inventory ID at the index, or NULL if not present.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Return the inventory ID at the index given. The first element is at index 0, the second at\r\n\t * index 1, and so on.\r\n\t *\r\n\t * @return The inventory ID at the index, or NULL if not present.\r\n\t ",
+ "start_line": 62,
+ "end_line": 67,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -41318,12 +59197,17 @@
"type": "int",
"name": "index",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 68,
+ "end_line": 68,
+ "start_column": 31,
+ "end_column": 39
}
],
- "code": "{\n String retval = null;\n String inventoryID;\n int cnt = 0;\n for (Enumeration myEnum = table.keys(); myEnum.hasMoreElements(); cnt++) {\n inventoryID = (String) myEnum.nextElement();\n if (index == cnt) {\n retval = inventoryID;\n break;\n }\n }\n return retval;\n}",
+ "code": "{\r\n\t\tString retval = null;\r\n\t\tString inventoryID;\r\n\t\tint cnt = 0;\r\n\t\tfor (Enumeration myEnum = table.keys(); myEnum.hasMoreElements(); cnt++) {\r\n\t\t\tinventoryID = (String) myEnum.nextElement();\r\n\t\t\tif (index == cnt) {\r\n\t\t\t\tretval = inventoryID;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retval;\r\n\t}",
"start_line": 68,
"end_line": 80,
+ "code_start_line": 68,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -41337,6 +59221,7 @@
"call_sites": [
{
"method_name": "keys",
+ "comment": null,
"receiver_expr": "table",
"receiver_type": "java.util.Hashtable",
"argument_types": [],
@@ -41357,6 +59242,7 @@
},
{
"method_name": "hasMoreElements",
+ "comment": null,
"receiver_expr": "myEnum",
"receiver_type": "java.util.Enumeration",
"argument_types": [],
@@ -41377,6 +59263,7 @@
},
{
"method_name": "nextElement",
+ "comment": null,
"receiver_expr": "myEnum",
"receiver_type": "java.util.Enumeration",
"argument_types": [],
@@ -41398,6 +59285,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "retval",
"type": "java.lang.String",
"initializer": "null",
@@ -41407,6 +59302,14 @@
"end_column": 22
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inventoryID",
"type": "java.lang.String",
"initializer": "",
@@ -41416,6 +59319,14 @@
"end_column": 20
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "cnt",
"type": "int",
"initializer": "0",
@@ -41425,6 +59336,14 @@
"end_column": 13
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "myEnum",
"type": "java.util.Enumeration",
"initializer": "table.keys()",
@@ -41440,9 +59359,18 @@
"is_entrypoint": false
},
"removeItem(Inventory)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
"signature": "removeItem(Inventory)",
- "comment": "/** Remove the item from the shopping cart. */",
+ "comments": [
+ {
+ "content": " Remove the item from the shopping cart. ",
+ "start_line": 48,
+ "end_line": 48,
+ "start_column": 2,
+ "end_column": 47,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -41454,12 +59382,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "si",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 49,
+ "end_line": 49,
+ "start_column": 25,
+ "end_column": 36
}
],
- "code": "{\n table.remove(si.getID());\n}",
+ "code": "{\r\n\t\ttable.remove(si.getID());\r\n\t}",
"start_line": 49,
"end_line": 51,
+ "code_start_line": 49,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -41470,6 +59403,7 @@
"call_sites": [
{
"method_name": "remove",
+ "comment": null,
"receiver_expr": "table",
"receiver_type": "java.util.Hashtable",
"argument_types": [
@@ -41492,6 +59426,7 @@
},
{
"method_name": "getID",
+ "comment": null,
"receiver_expr": "si",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -41518,9 +59453,18 @@
"is_entrypoint": false
},
"updateItem(Inventory)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
"signature": "updateItem(Inventory)",
- "comment": "/** Update the item in the shopping cart. */",
+ "comments": [
+ {
+ "content": " Update the item in the shopping cart. ",
+ "start_line": 43,
+ "end_line": 43,
+ "start_column": 2,
+ "end_column": 45,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -41532,12 +59476,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "si",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 44,
+ "end_line": 44,
+ "start_column": 25,
+ "end_column": 36
}
],
- "code": "{\n table.put(si.getID(), new Integer(si.getQuantity()));\n}",
+ "code": "{\r\n\t\ttable.put(si.getID(), new Integer(si.getQuantity()));\r\n\t}",
"start_line": 44,
"end_line": 46,
+ "code_start_line": 44,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -41548,6 +59497,7 @@
"call_sites": [
{
"method_name": "put",
+ "comment": null,
"receiver_expr": "table",
"receiver_type": "java.util.Hashtable",
"argument_types": [
@@ -41571,6 +59521,7 @@
},
{
"method_name": "getID",
+ "comment": null,
"receiver_expr": "si",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -41591,6 +59542,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "si",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -41611,6 +59563,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.lang.Integer",
"argument_types": [
@@ -41639,9 +59592,18 @@
"is_entrypoint": false
},
"size()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java",
"signature": "size()",
- "comment": "/**\r\n\t * Return the number of items in the cart.\r\n\t *\r\n\t * @return The number of items in the cart.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Return the number of items in the cart.\r\n\t *\r\n\t * @return The number of items in the cart.\r\n\t ",
+ "start_line": 53,
+ "end_line": 57,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -41649,9 +59611,10 @@
"thrown_exceptions": [],
"declaration": "public int size()",
"parameters": [],
- "code": "{\n return table.size();\n}",
+ "code": "{\r\n\t\treturn table.size();\r\n\t}",
"start_line": 58,
"end_line": 60,
+ "code_start_line": 58,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -41662,6 +59625,7 @@
"call_sites": [
{
"method_name": "size",
+ "comment": null,
"receiver_expr": "table",
"receiver_type": "java.util.Hashtable",
"argument_types": [],
@@ -41690,7 +59654,14 @@
},
"field_declarations": [
{
- "comment": "/**\r\n\t * \r\n\t */",
+ "comment": {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 28,
+ "end_line": 30,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
"name": null,
"type": "long",
"start_line": 31,
@@ -41706,7 +59677,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.util.Hashtable",
"start_line": 32,
@@ -41720,15 +59698,155 @@
"annotations": []
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatorUtils.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatorUtils.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatorUtils.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatorUtils.java",
+ "package_name": "com.ibm.websphere.samples.pbw.war",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2003,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Simple helper class for JSF validators to handle error messages.\r\n *\r\n ",
+ "start_line": 25,
+ "end_line": 28,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"javax.faces.application.FacesMessage",
"javax.faces.component.UIComponent",
@@ -41746,7 +59864,16 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * Simple helper class for JSF validators to handle error messages.\r\n *\r\n */",
+ "comments": [
+ {
+ "content": "\r\n * Simple helper class for JSF validators to handle error messages.\r\n *\r\n ",
+ "start_line": 25,
+ "end_line": 28,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -41756,9 +59883,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"addErrorMessage(FacesContext, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatorUtils.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatorUtils.java",
"signature": "addErrorMessage(FacesContext, String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"protected",
@@ -41771,18 +59898,27 @@
"type": "FacesContext",
"name": "context",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 30,
+ "end_line": 30,
+ "start_column": 40,
+ "end_column": 59
},
{
"type": "java.lang.String",
"name": "message",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 30,
+ "end_line": 30,
+ "start_column": 62,
+ "end_column": 75
}
],
- "code": "{\n FacesMessage facesMessage = new FacesMessage();\n facesMessage.setDetail(message);\n facesMessage.setSummary(message);\n facesMessage.setSeverity(FacesMessage.SEVERITY_ERROR);\n throw new ValidatorException(facesMessage);\n}",
+ "code": "{\r\n\t\tFacesMessage facesMessage = new FacesMessage();\r\n\t\tfacesMessage.setDetail(message);\r\n\t\tfacesMessage.setSummary(message);\r\n\t\tfacesMessage.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\tthrow new ValidatorException(facesMessage);\r\n\t}",
"start_line": 30,
"end_line": 36,
+ "code_start_line": 30,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -41795,6 +59931,7 @@
"call_sites": [
{
"method_name": "setDetail",
+ "comment": null,
"receiver_expr": "facesMessage",
"receiver_type": "",
"argument_types": [
@@ -41817,6 +59954,7 @@
},
{
"method_name": "setSummary",
+ "comment": null,
"receiver_expr": "facesMessage",
"receiver_type": "",
"argument_types": [
@@ -41839,6 +59977,7 @@
},
{
"method_name": "setSeverity",
+ "comment": null,
"receiver_expr": "facesMessage",
"receiver_type": "",
"argument_types": [
@@ -41861,6 +60000,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "FacesMessage",
"argument_types": [],
@@ -41881,6 +60021,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "ValidatorException",
"argument_types": [
@@ -41904,6 +60045,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "facesMessage",
"type": "FacesMessage",
"initializer": "new FacesMessage()",
@@ -41919,9 +60068,9 @@
"is_entrypoint": false
},
"addErrorMessage(FacesContext, UIComponent)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatorUtils.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ValidatorUtils.java",
"signature": "addErrorMessage(FacesContext, UIComponent)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"protected",
@@ -41934,18 +60083,27 @@
"type": "FacesContext",
"name": "context",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 38,
+ "end_line": 38,
+ "start_column": 40,
+ "end_column": 59
},
{
"type": "UIComponent",
"name": "component",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 38,
+ "end_line": 38,
+ "start_column": 62,
+ "end_column": 82
}
],
- "code": "{\n String errorMessage = (String) component.getAttributes().get(\"errorMessage\");\n addErrorMessage(context, errorMessage);\n}",
+ "code": "{\r\n\t\tString errorMessage = (String) component.getAttributes().get(\"errorMessage\");\r\n\r\n\t\taddErrorMessage(context, errorMessage);\r\n\t}",
"start_line": 38,
"end_line": 42,
+ "code_start_line": 38,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -41956,6 +60114,7 @@
"call_sites": [
{
"method_name": "get",
+ "comment": null,
"receiver_expr": "component.getAttributes()",
"receiver_type": "",
"argument_types": [
@@ -41978,6 +60137,7 @@
},
{
"method_name": "getAttributes",
+ "comment": null,
"receiver_expr": "component",
"receiver_type": "",
"argument_types": [],
@@ -41998,6 +60158,7 @@
},
{
"method_name": "addErrorMessage",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -42022,6 +60183,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "errorMessage",
"type": "java.lang.String",
"initializer": "(String) component.getAttributes().get(\"errorMessage\")",
@@ -42038,15 +60207,179 @@
}
},
"field_declarations": [],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "package_name": "com.ibm.websphere.samples.pbw.jpa",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * Customer is the bean mapping for the CUSTOMER table.\r\n * \r\n * @see Customer\r\n ",
+ "start_line": 28,
+ "end_line": 32,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Create a new Customer.\r\n\t *\r\n\t * @param key\r\n\t * CustomerKey\r\n\t * @param password\r\n\t * Password used for this customer account.\r\n\t * @param firstName\r\n\t * First name of the customer.\r\n\t * @param lastName\r\n\t * Last name of the customer\r\n\t * @param addr1\r\n\t * Street address of the customer\r\n\t * @param addr2\r\n\t * Street address of the customer\r\n\t * @param addrCity\r\n\t * City\r\n\t * @param addrState\r\n\t * State\r\n\t * @param addrZip\r\n\t * Zip code\r\n\t * @param phone\r\n\t * Phone number\r\n\t ",
+ "start_line": 66,
+ "end_line": 89,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Verify password.\r\n\t *\r\n\t * @param password\r\n\t * value to be checked.\r\n\t * @return True, if password matches one stored.\r\n\t ",
+ "start_line": 104,
+ "end_line": 110,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the customer's full name.\r\n\t * \r\n\t * @return String of customer's full name.\r\n\t ",
+ "start_line": 115,
+ "end_line": 119,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"javax.persistence.Entity",
"javax.persistence.Id",
@@ -42068,7 +60401,40 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * Customer is the bean mapping for the CUSTOMER table.\r\n * \r\n * @see Customer\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * Create a new Customer.\r\n\t *\r\n\t * @param key\r\n\t * CustomerKey\r\n\t * @param password\r\n\t * Password used for this customer account.\r\n\t * @param firstName\r\n\t * First name of the customer.\r\n\t * @param lastName\r\n\t * Last name of the customer\r\n\t * @param addr1\r\n\t * Street address of the customer\r\n\t * @param addr2\r\n\t * Street address of the customer\r\n\t * @param addrCity\r\n\t * City\r\n\t * @param addrState\r\n\t * State\r\n\t * @param addrZip\r\n\t * Zip code\r\n\t * @param phone\r\n\t * Phone number\r\n\t ",
+ "start_line": 66,
+ "end_line": 89,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Verify password.\r\n\t *\r\n\t * @param password\r\n\t * value to be checked.\r\n\t * @return True, if password matches one stored.\r\n\t ",
+ "start_line": 104,
+ "end_line": 110,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the customer's full name.\r\n\t * \r\n\t * @return String of customer's full name.\r\n\t ",
+ "start_line": 115,
+ "end_line": 119,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * Customer is the bean mapping for the CUSTOMER table.\r\n * \r\n * @see Customer\r\n ",
+ "start_line": 28,
+ "end_line": 32,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [],
"modifiers": [
"public"
@@ -42082,9 +60448,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"setAddrZip(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "setAddrZip(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42096,12 +60462,17 @@
"type": "java.lang.String",
"name": "addrZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 160,
+ "end_line": 160,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n this.addrZip = addrZip;\n}",
+ "code": "{\r\n\t\tthis.addrZip = addrZip;\r\n\t}",
"start_line": 160,
"end_line": 162,
+ "code_start_line": 160,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -42119,9 +60490,9 @@
"is_entrypoint": false
},
"getCustomerID()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getCustomerID()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42129,9 +60500,10 @@
"thrown_exceptions": [],
"declaration": "public String getCustomerID()",
"parameters": [],
- "code": "{\n return customerID;\n}",
+ "code": "{\r\n\t\treturn customerID;\r\n\t}",
"start_line": 164,
"end_line": 166,
+ "code_start_line": 164,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -42147,9 +60519,9 @@
"is_entrypoint": false
},
"setFirstName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "setFirstName(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42161,12 +60533,17 @@
"type": "java.lang.String",
"name": "firstName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 176,
+ "end_line": 176,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.firstName = firstName;\n}",
+ "code": "{\r\n\t\tthis.firstName = firstName;\r\n\t}",
"start_line": 176,
"end_line": 178,
+ "code_start_line": 176,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -42184,9 +60561,9 @@
"is_entrypoint": false
},
"getAddr2()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getAddr2()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42194,9 +60571,10 @@
"thrown_exceptions": [],
"declaration": "public String getAddr2()",
"parameters": [],
- "code": "{\n return addr2;\n}",
+ "code": "{\r\n\t\treturn addr2;\r\n\t}",
"start_line": 132,
"end_line": 134,
+ "code_start_line": 132,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -42212,9 +60590,9 @@
"is_entrypoint": false
},
"setAddr2(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "setAddr2(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42226,12 +60604,17 @@
"type": "java.lang.String",
"name": "addr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 136,
+ "end_line": 136,
+ "start_column": 23,
+ "end_column": 34
}
],
- "code": "{\n this.addr2 = addr2;\n}",
+ "code": "{\r\n\t\tthis.addr2 = addr2;\r\n\t}",
"start_line": 136,
"end_line": 138,
+ "code_start_line": 136,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -42249,9 +60632,9 @@
"is_entrypoint": false
},
"getFirstName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getFirstName()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42259,9 +60642,10 @@
"thrown_exceptions": [],
"declaration": "public String getFirstName()",
"parameters": [],
- "code": "{\n return firstName;\n}",
+ "code": "{\r\n\t\treturn firstName;\r\n\t}",
"start_line": 172,
"end_line": 174,
+ "code_start_line": 172,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -42277,9 +60661,9 @@
"is_entrypoint": false
},
"setAddrState(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "setAddrState(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42291,12 +60675,17 @@
"type": "java.lang.String",
"name": "addrState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 152,
+ "end_line": 152,
+ "start_column": 27,
+ "end_column": 42
}
],
- "code": "{\n this.addrState = addrState;\n}",
+ "code": "{\r\n\t\tthis.addrState = addrState;\r\n\t}",
"start_line": 152,
"end_line": 154,
+ "code_start_line": 152,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -42314,9 +60703,9 @@
"is_entrypoint": false
},
"getAddrCity()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getAddrCity()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42324,9 +60713,10 @@
"thrown_exceptions": [],
"declaration": "public String getAddrCity()",
"parameters": [],
- "code": "{\n return addrCity;\n}",
+ "code": "{\r\n\t\treturn addrCity;\r\n\t}",
"start_line": 140,
"end_line": 142,
+ "code_start_line": 140,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -42342,9 +60732,9 @@
"is_entrypoint": false
},
"setCustomerID(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "setCustomerID(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42356,12 +60746,17 @@
"type": "java.lang.String",
"name": "customerID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 168,
+ "end_line": 168,
+ "start_column": 28,
+ "end_column": 44
}
],
- "code": "{\n this.customerID = customerID;\n}",
+ "code": "{\r\n\t\tthis.customerID = customerID;\r\n\t}",
"start_line": 168,
"end_line": 170,
+ "code_start_line": 168,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -42379,9 +60774,9 @@
"is_entrypoint": false
},
"getAddr1()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getAddr1()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42389,9 +60784,10 @@
"thrown_exceptions": [],
"declaration": "public String getAddr1()",
"parameters": [],
- "code": "{\n return addr1;\n}",
+ "code": "{\r\n\t\treturn addr1;\r\n\t}",
"start_line": 124,
"end_line": 126,
+ "code_start_line": 124,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -42407,9 +60803,9 @@
"is_entrypoint": false
},
"setAddr1(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "setAddr1(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42421,12 +60817,17 @@
"type": "java.lang.String",
"name": "addr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 128,
+ "end_line": 128,
+ "start_column": 23,
+ "end_column": 34
}
],
- "code": "{\n this.addr1 = addr1;\n}",
+ "code": "{\r\n\t\tthis.addr1 = addr1;\r\n\t}",
"start_line": 128,
"end_line": 130,
+ "code_start_line": 128,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -42444,9 +60845,9 @@
"is_entrypoint": false
},
"getLastName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getLastName()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42454,9 +60855,10 @@
"thrown_exceptions": [],
"declaration": "public String getLastName()",
"parameters": [],
- "code": "{\n return lastName;\n}",
+ "code": "{\r\n\t\treturn lastName;\r\n\t}",
"start_line": 180,
"end_line": 182,
+ "code_start_line": 180,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -42472,9 +60874,9 @@
"is_entrypoint": false
},
"()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "Customer()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42482,9 +60884,10 @@
"thrown_exceptions": [],
"declaration": "public Customer()",
"parameters": [],
- "code": "{\n}",
+ "code": "{\r\n\t}",
"start_line": 63,
"end_line": 64,
+ "code_start_line": 63,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -42498,9 +60901,9 @@
"is_entrypoint": false
},
"getPassword()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getPassword()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42508,9 +60911,10 @@
"thrown_exceptions": [],
"declaration": "public String getPassword()",
"parameters": [],
- "code": "{\n return password;\n}",
+ "code": "{\r\n\t\treturn password;\r\n\t}",
"start_line": 188,
"end_line": 190,
+ "code_start_line": 188,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -42526,9 +60930,9 @@
"is_entrypoint": false
},
"getAddrZip()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getAddrZip()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42536,9 +60940,10 @@
"thrown_exceptions": [],
"declaration": "public String getAddrZip()",
"parameters": [],
- "code": "{\n return addrZip;\n}",
+ "code": "{\r\n\t\treturn addrZip;\r\n\t}",
"start_line": 156,
"end_line": 158,
+ "code_start_line": 156,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -42554,9 +60959,9 @@
"is_entrypoint": false
},
"setPhone(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "setPhone(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42568,12 +60973,17 @@
"type": "java.lang.String",
"name": "phone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 200,
+ "end_line": 200,
+ "start_column": 23,
+ "end_column": 34
}
],
- "code": "{\n this.phone = phone;\n}",
+ "code": "{\r\n\t\tthis.phone = phone;\r\n\t}",
"start_line": 200,
"end_line": 202,
+ "code_start_line": 200,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -42591,9 +61001,18 @@
"is_entrypoint": false
},
"(String, String, String, String, String, String, String, String, String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "Customer(String, String, String, String, String, String, String, String, String, String)",
- "comment": "/**\r\n\t * Create a new Customer.\r\n\t *\r\n\t * @param key\r\n\t * CustomerKey\r\n\t * @param password\r\n\t * Password used for this customer account.\r\n\t * @param firstName\r\n\t * First name of the customer.\r\n\t * @param lastName\r\n\t * Last name of the customer\r\n\t * @param addr1\r\n\t * Street address of the customer\r\n\t * @param addr2\r\n\t * Street address of the customer\r\n\t * @param addrCity\r\n\t * City\r\n\t * @param addrState\r\n\t * State\r\n\t * @param addrZip\r\n\t * Zip code\r\n\t * @param phone\r\n\t * Phone number\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Create a new Customer.\r\n\t *\r\n\t * @param key\r\n\t * CustomerKey\r\n\t * @param password\r\n\t * Password used for this customer account.\r\n\t * @param firstName\r\n\t * First name of the customer.\r\n\t * @param lastName\r\n\t * Last name of the customer\r\n\t * @param addr1\r\n\t * Street address of the customer\r\n\t * @param addr2\r\n\t * Street address of the customer\r\n\t * @param addrCity\r\n\t * City\r\n\t * @param addrState\r\n\t * State\r\n\t * @param addrZip\r\n\t * Zip code\r\n\t * @param phone\r\n\t * Phone number\r\n\t ",
+ "start_line": 66,
+ "end_line": 89,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -42605,66 +61024,107 @@
"type": "java.lang.String",
"name": "key",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 18,
+ "end_column": 27
},
{
"type": "java.lang.String",
"name": "password",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 30,
+ "end_column": 44
},
{
"type": "java.lang.String",
"name": "firstName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 47,
+ "end_column": 62
},
{
"type": "java.lang.String",
"name": "lastName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 65,
+ "end_column": 79
},
{
"type": "java.lang.String",
"name": "addr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 82,
+ "end_column": 93
},
{
"type": "java.lang.String",
"name": "addr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 96,
+ "end_column": 107
},
{
"type": "java.lang.String",
"name": "addrCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 91,
+ "end_line": 91,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "addrState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 91,
+ "end_line": 91,
+ "start_column": 21,
+ "end_column": 36
},
{
"type": "java.lang.String",
"name": "addrZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 91,
+ "end_line": 91,
+ "start_column": 39,
+ "end_column": 52
},
{
"type": "java.lang.String",
"name": "phone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 91,
+ "end_line": 91,
+ "start_column": 55,
+ "end_column": 66
}
],
- "code": "{\n this.setCustomerID(key);\n this.setPassword(password);\n this.setFirstName(firstName);\n this.setLastName(lastName);\n this.setAddr1(addr1);\n this.setAddr2(addr2);\n this.setAddrCity(addrCity);\n this.setAddrState(addrState);\n this.setAddrZip(addrZip);\n this.setPhone(phone);\n}",
+ "code": "{\r\n\t\tthis.setCustomerID(key);\r\n\t\tthis.setPassword(password);\r\n\t\tthis.setFirstName(firstName);\r\n\t\tthis.setLastName(lastName);\r\n\t\tthis.setAddr1(addr1);\r\n\t\tthis.setAddr2(addr2);\r\n\t\tthis.setAddrCity(addrCity);\r\n\t\tthis.setAddrState(addrState);\r\n\t\tthis.setAddrZip(addrZip);\r\n\t\tthis.setPhone(phone);\r\n\t}",
"start_line": 90,
"end_line": 102,
+ "code_start_line": 91,
"return_type": null,
"is_implicit": false,
"is_constructor": true,
@@ -42683,6 +61143,7 @@
"call_sites": [
{
"method_name": "setCustomerID",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -42705,6 +61166,7 @@
},
{
"method_name": "setPassword",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -42727,6 +61189,7 @@
},
{
"method_name": "setFirstName",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -42749,6 +61212,7 @@
},
{
"method_name": "setLastName",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -42771,6 +61235,7 @@
},
{
"method_name": "setAddr1",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -42793,6 +61258,7 @@
},
{
"method_name": "setAddr2",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -42815,6 +61281,7 @@
},
{
"method_name": "setAddrCity",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -42837,6 +61304,7 @@
},
{
"method_name": "setAddrState",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -42859,6 +61327,7 @@
},
{
"method_name": "setAddrZip",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -42881,6 +61350,7 @@
},
{
"method_name": "setPhone",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -42909,9 +61379,9 @@
"is_entrypoint": false
},
"getPhone()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getPhone()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42919,9 +61389,10 @@
"thrown_exceptions": [],
"declaration": "public String getPhone()",
"parameters": [],
- "code": "{\n return phone;\n}",
+ "code": "{\r\n\t\treturn phone;\r\n\t}",
"start_line": 196,
"end_line": 198,
+ "code_start_line": 196,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -42937,9 +61408,9 @@
"is_entrypoint": false
},
"setAddrCity(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "setAddrCity(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42951,12 +61422,17 @@
"type": "java.lang.String",
"name": "addrCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 144,
+ "end_line": 144,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.addrCity = addrCity;\n}",
+ "code": "{\r\n\t\tthis.addrCity = addrCity;\r\n\t}",
"start_line": 144,
"end_line": 146,
+ "code_start_line": 144,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -42974,9 +61450,9 @@
"is_entrypoint": false
},
"setLastName(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "setLastName(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -42988,12 +61464,17 @@
"type": "java.lang.String",
"name": "lastName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 184,
+ "end_line": 184,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.lastName = lastName;\n}",
+ "code": "{\r\n\t\tthis.lastName = lastName;\r\n\t}",
"start_line": 184,
"end_line": 186,
+ "code_start_line": 184,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -43011,9 +61492,18 @@
"is_entrypoint": false
},
"verifyPassword(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "verifyPassword(String)",
- "comment": "/**\r\n\t * Verify password.\r\n\t *\r\n\t * @param password\r\n\t * value to be checked.\r\n\t * @return True, if password matches one stored.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Verify password.\r\n\t *\r\n\t * @param password\r\n\t * value to be checked.\r\n\t * @return True, if password matches one stored.\r\n\t ",
+ "start_line": 104,
+ "end_line": 110,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -43025,12 +61515,17 @@
"type": "java.lang.String",
"name": "password",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 111,
+ "end_line": 111,
+ "start_column": 32,
+ "end_column": 46
}
],
- "code": "{\n return this.getPassword().equals(password);\n}",
+ "code": "{\r\n\t\treturn this.getPassword().equals(password);\r\n\t}",
"start_line": 111,
"end_line": 113,
+ "code_start_line": 111,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -43041,6 +61536,7 @@
"call_sites": [
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "this.getPassword()",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -43063,6 +61559,7 @@
},
{
"method_name": "getPassword",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -43089,9 +61586,18 @@
"is_entrypoint": false
},
"getFullName()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getFullName()",
- "comment": "/**\r\n\t * Get the customer's full name.\r\n\t * \r\n\t * @return String of customer's full name.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Get the customer's full name.\r\n\t * \r\n\t * @return String of customer's full name.\r\n\t ",
+ "start_line": 115,
+ "end_line": 119,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -43099,9 +61605,10 @@
"thrown_exceptions": [],
"declaration": "public String getFullName()",
"parameters": [],
- "code": "{\n return this.getFirstName() + \" \" + this.getLastName();\n}",
+ "code": "{\r\n\t\treturn this.getFirstName() + \" \" + this.getLastName();\r\n\t}",
"start_line": 120,
"end_line": 122,
+ "code_start_line": 120,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -43110,6 +61617,7 @@
"call_sites": [
{
"method_name": "getFirstName",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -43130,6 +61638,7 @@
},
{
"method_name": "getLastName",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [],
@@ -43156,9 +61665,9 @@
"is_entrypoint": false
},
"getAddrState()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "getAddrState()",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -43166,9 +61675,10 @@
"thrown_exceptions": [],
"declaration": "public String getAddrState()",
"parameters": [],
- "code": "{\n return addrState;\n}",
+ "code": "{\r\n\t\treturn addrState;\r\n\t}",
"start_line": 148,
"end_line": 150,
+ "code_start_line": 148,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -43184,9 +61694,9 @@
"is_entrypoint": false
},
"setPassword(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java",
"signature": "setPassword(String)",
- "comment": "",
+ "comments": [],
"annotations": [],
"modifiers": [
"public"
@@ -43198,12 +61708,17 @@
"type": "java.lang.String",
"name": "password",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 192,
+ "end_line": 192,
+ "start_column": 26,
+ "end_column": 40
}
],
- "code": "{\n this.password = password;\n}",
+ "code": "{\r\n\t\tthis.password = password;\r\n\t}",
"start_line": 192,
"end_line": 194,
+ "code_start_line": 192,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -43223,7 +61738,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 37,
@@ -43239,7 +61761,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 39,
@@ -43253,7 +61782,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 41,
@@ -43270,7 +61806,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 44,
@@ -43287,7 +61830,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 47,
@@ -43304,7 +61854,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 50,
@@ -43318,7 +61875,14 @@
"annotations": []
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 51,
@@ -43335,7 +61899,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 54,
@@ -43352,7 +61923,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 57,
@@ -43368,7 +61946,14 @@
]
},
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "java.lang.String",
"start_line": 59,
@@ -43385,15 +61970,219 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * The CustomerMgr provides a transactional facade for access to a user DB as well as simple\r\n * authentication support for those users.\r\n * \r\n ",
+ "start_line": 30,
+ "end_line": 34,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Create a new user.\r\n\t *\r\n\t * @param customerID\r\n\t * The new customer ID.\r\n\t * @param password\r\n\t * The password for the customer ID.\r\n\t * @param firstName\r\n\t * First name.\r\n\t * @param lastName\r\n\t * Last name.\r\n\t * @param addr1\r\n\t * Address line 1.\r\n\t * @param addr2\r\n\t * Address line 2.\r\n\t * @param addrCity\r\n\t * City address information.\r\n\t * @param addrState\r\n\t * State address information.\r\n\t * @param addrZip\r\n\t * Zip code address information.\r\n\t * @param phone\r\n\t * User's phone number.\r\n\t * @return Customer\r\n\t ",
+ "start_line": 41,
+ "end_line": 65,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Retrieve an existing user.\r\n\t * \r\n\t * @param customerID\r\n\t * The customer ID.\r\n\t * @return Customer\r\n\t ",
+ "start_line": 83,
+ "end_line": 89,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Update an existing user.\r\n\t *\r\n\t * @param customerID\r\n\t * The customer ID.\r\n\t * @param firstName\r\n\t * First name.\r\n\t * @param lastName\r\n\t * Last name.\r\n\t * @param addr1\r\n\t * Address line 1.\r\n\t * @param addr2\r\n\t * Address line 2.\r\n\t * @param addrCity\r\n\t * City address information.\r\n\t * @param addrState\r\n\t * State address information.\r\n\t * @param addrZip\r\n\t * Zip code address information.\r\n\t * @param phone\r\n\t * User's phone number.\r\n\t * @return Customer\r\n\t ",
+ "start_line": 96,
+ "end_line": 118,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Verify that the user exists and the password is value.\r\n\t * \r\n\t * @param customerID\r\n\t * The customer ID\r\n\t * @param password\r\n\t * The password for the customer ID\r\n\t * @return String with a results message.\r\n\t ",
+ "start_line": 144,
+ "end_line": 152,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Try to get customer.",
+ "start_line": 154,
+ "end_line": 154,
+ "start_column": 3,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " Does customer exist?",
+ "start_line": 160,
+ "end_line": 160,
+ "start_column": 3,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " Is password correct?",
+ "start_line": 162,
+ "end_line": 162,
+ "start_column": 44,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " Customer was not found.",
+ "start_line": 167,
+ "end_line": 167,
+ "start_column": 10,
+ "end_column": 35,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.Serializable",
"javax.enterprise.context.Dependent",
@@ -43415,7 +62204,80 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * The CustomerMgr provides a transactional facade for access to a user DB as well as simple\r\n * authentication support for those users.\r\n * \r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * Create a new user.\r\n\t *\r\n\t * @param customerID\r\n\t * The new customer ID.\r\n\t * @param password\r\n\t * The password for the customer ID.\r\n\t * @param firstName\r\n\t * First name.\r\n\t * @param lastName\r\n\t * Last name.\r\n\t * @param addr1\r\n\t * Address line 1.\r\n\t * @param addr2\r\n\t * Address line 2.\r\n\t * @param addrCity\r\n\t * City address information.\r\n\t * @param addrState\r\n\t * State address information.\r\n\t * @param addrZip\r\n\t * Zip code address information.\r\n\t * @param phone\r\n\t * User's phone number.\r\n\t * @return Customer\r\n\t ",
+ "start_line": 41,
+ "end_line": 65,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Retrieve an existing user.\r\n\t * \r\n\t * @param customerID\r\n\t * The customer ID.\r\n\t * @return Customer\r\n\t ",
+ "start_line": 83,
+ "end_line": 89,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Update an existing user.\r\n\t *\r\n\t * @param customerID\r\n\t * The customer ID.\r\n\t * @param firstName\r\n\t * First name.\r\n\t * @param lastName\r\n\t * Last name.\r\n\t * @param addr1\r\n\t * Address line 1.\r\n\t * @param addr2\r\n\t * Address line 2.\r\n\t * @param addrCity\r\n\t * City address information.\r\n\t * @param addrState\r\n\t * State address information.\r\n\t * @param addrZip\r\n\t * Zip code address information.\r\n\t * @param phone\r\n\t * User's phone number.\r\n\t * @return Customer\r\n\t ",
+ "start_line": 96,
+ "end_line": 118,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Verify that the user exists and the password is value.\r\n\t * \r\n\t * @param customerID\r\n\t * The customer ID\r\n\t * @param password\r\n\t * The password for the customer ID\r\n\t * @return String with a results message.\r\n\t ",
+ "start_line": 144,
+ "end_line": 152,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " Try to get customer.",
+ "start_line": 154,
+ "end_line": 154,
+ "start_column": 3,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " Does customer exist?",
+ "start_line": 160,
+ "end_line": 160,
+ "start_column": 3,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " Is password correct?",
+ "start_line": 162,
+ "end_line": 162,
+ "start_column": 44,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " Customer was not found.",
+ "start_line": 167,
+ "end_line": 167,
+ "start_column": 10,
+ "end_column": 35,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * The CustomerMgr provides a transactional facade for access to a user DB as well as simple\r\n * authentication support for those users.\r\n * \r\n ",
+ "start_line": 30,
+ "end_line": 34,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -43430,9 +62292,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"createCustomer(String, String, String, String, String, String, String, String, String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java",
"signature": "createCustomer(String, String, String, String, String, String, String, String, String, String)",
- "comment": "/**\r\n\t * Create a new user.\r\n\t *\r\n\t * @param customerID\r\n\t * The new customer ID.\r\n\t * @param password\r\n\t * The password for the customer ID.\r\n\t * @param firstName\r\n\t * First name.\r\n\t * @param lastName\r\n\t * Last name.\r\n\t * @param addr1\r\n\t * Address line 1.\r\n\t * @param addr2\r\n\t * Address line 2.\r\n\t * @param addrCity\r\n\t * City address information.\r\n\t * @param addrState\r\n\t * State address information.\r\n\t * @param addrZip\r\n\t * Zip code address information.\r\n\t * @param phone\r\n\t * User's phone number.\r\n\t * @return Customer\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Create a new user.\r\n\t *\r\n\t * @param customerID\r\n\t * The new customer ID.\r\n\t * @param password\r\n\t * The password for the customer ID.\r\n\t * @param firstName\r\n\t * First name.\r\n\t * @param lastName\r\n\t * Last name.\r\n\t * @param addr1\r\n\t * Address line 1.\r\n\t * @param addr2\r\n\t * Address line 2.\r\n\t * @param addrCity\r\n\t * City address information.\r\n\t * @param addrState\r\n\t * State address information.\r\n\t * @param addrZip\r\n\t * Zip code address information.\r\n\t * @param phone\r\n\t * User's phone number.\r\n\t * @return Customer\r\n\t ",
+ "start_line": 41,
+ "end_line": 65,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -43444,66 +62315,107 @@
"type": "java.lang.String",
"name": "customerID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 66,
+ "end_line": 66,
+ "start_column": 33,
+ "end_column": 49
},
{
"type": "java.lang.String",
"name": "password",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 67,
+ "end_line": 67,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "firstName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 68,
+ "end_line": 68,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "lastName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 69,
+ "end_line": 69,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "addr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "addr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 71,
+ "end_line": 71,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "addrCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 72,
+ "end_line": 72,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "addrState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 73,
+ "end_line": 73,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "addrZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 74,
+ "end_line": 74,
+ "start_column": 4,
+ "end_column": 17
},
{
"type": "java.lang.String",
"name": "phone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 75,
+ "end_line": 75,
+ "start_column": 4,
+ "end_column": 15
}
],
- "code": "{\n Customer c = new Customer(customerID, password, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone);\n em.persist(c);\n em.flush();\n return c;\n}",
+ "code": "{\r\n\t\tCustomer c = new Customer(customerID, password, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip,\r\n\t\t\t\tphone);\r\n\t\tem.persist(c);\r\n\t\tem.flush();\r\n\t\treturn c;\r\n\t}",
"start_line": 66,
"end_line": 81,
+ "code_start_line": 75,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"is_implicit": false,
"is_constructor": false,
@@ -43516,6 +62428,7 @@
"call_sites": [
{
"method_name": "persist",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -43538,6 +62451,7 @@
},
{
"method_name": "flush",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [],
@@ -43558,6 +62472,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -43590,6 +62505,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "c",
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"initializer": "new Customer(customerID, password, firstName, lastName, addr1, addr2, addrCity, addrState, addrZip, phone)",
@@ -43605,9 +62528,18 @@
"is_entrypoint": false
},
"getCustomer(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java",
"signature": "getCustomer(String)",
- "comment": "/**\r\n\t * Retrieve an existing user.\r\n\t * \r\n\t * @param customerID\r\n\t * The customer ID.\r\n\t * @return Customer\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Retrieve an existing user.\r\n\t * \r\n\t * @param customerID\r\n\t * The customer ID.\r\n\t * @return Customer\r\n\t ",
+ "start_line": 83,
+ "end_line": 89,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -43619,12 +62551,17 @@
"type": "java.lang.String",
"name": "customerID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 90,
+ "end_line": 90,
+ "start_column": 30,
+ "end_column": 46
}
],
- "code": "{\n Customer c = em.find(Customer.class, customerID);\n return c;\n}",
+ "code": "{\r\n\t\tCustomer c = em.find(Customer.class, customerID);\r\n\t\treturn c;\r\n\r\n\t}",
"start_line": 90,
"end_line": 94,
+ "code_start_line": 90,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"is_implicit": false,
"is_constructor": false,
@@ -43637,6 +62574,7 @@
"call_sites": [
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -43661,6 +62599,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "c",
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"initializer": "em.find(Customer.class, customerID)",
@@ -43676,9 +62622,50 @@
"is_entrypoint": false
},
"verifyUserAndPassword(String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java",
"signature": "verifyUserAndPassword(String, String)",
- "comment": "/**\r\n\t * Verify that the user exists and the password is value.\r\n\t * \r\n\t * @param customerID\r\n\t * The customer ID\r\n\t * @param password\r\n\t * The password for the customer ID\r\n\t * @return String with a results message.\r\n\t */",
+ "comments": [
+ {
+ "content": " Try to get customer.",
+ "start_line": 154,
+ "end_line": 154,
+ "start_column": 3,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " Does customer exist?",
+ "start_line": 160,
+ "end_line": 160,
+ "start_column": 3,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " Is password correct?",
+ "start_line": 162,
+ "end_line": 162,
+ "start_column": 44,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " Customer was not found.",
+ "start_line": 167,
+ "end_line": 167,
+ "start_column": 10,
+ "end_column": 35,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Verify that the user exists and the password is value.\r\n\t * \r\n\t * @param customerID\r\n\t * The customer ID\r\n\t * @param password\r\n\t * The password for the customer ID\r\n\t * @return String with a results message.\r\n\t ",
+ "start_line": 144,
+ "end_line": 152,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -43690,18 +62677,27 @@
"type": "java.lang.String",
"name": "customerID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 153,
+ "end_line": 153,
+ "start_column": 38,
+ "end_column": 54
},
{
"type": "java.lang.String",
"name": "password",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 153,
+ "end_line": 153,
+ "start_column": 57,
+ "end_column": 71
}
],
- "code": "{\n // Try to get customer.\n String results = null;\n Customer customer = null;\n customer = em.find(Customer.class, customerID);\n // Does customer exist?\n if (customer != null) {\n if (// Is password correct?\n !customer.verifyPassword(password)) {\n results = \"\\nPassword does not match for : \" + customerID;\n Util.debug(\"Password given does not match for userid=\" + customerID);\n }\n } else // Customer was not found.\n {\n results = \"\\nCould not find account for : \" + customerID;\n Util.debug(\"customer \" + customerID + \" NOT found\");\n }\n return results;\n}",
+ "code": "{\r\n\t\t// Try to get customer.\r\n\t\tString results = null;\r\n\t\tCustomer customer = null;\r\n\r\n\t\tcustomer = em.find(Customer.class, customerID);\r\n\r\n\t\t// Does customer exist?\r\n\t\tif (customer != null) {\r\n\t\t\tif (!customer.verifyPassword(password)) // Is password correct?\r\n\t\t\t{\r\n\t\t\t\tresults = \"\\nPassword does not match for : \" + customerID;\r\n\t\t\t\tUtil.debug(\"Password given does not match for userid=\" + customerID);\r\n\t\t\t}\r\n\t\t} else // Customer was not found.\r\n\t\t{\r\n\t\t\tresults = \"\\nCould not find account for : \" + customerID;\r\n\t\t\tUtil.debug(\"customer \" + customerID + \" NOT found\");\r\n\t\t}\r\n\r\n\t\treturn results;\r\n\t}",
"start_line": 153,
"end_line": 174,
+ "code_start_line": 153,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -43715,6 +62711,7 @@
"call_sites": [
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -43738,6 +62735,14 @@
},
{
"method_name": "verifyPassword",
+ "comment": {
+ "content": " Is password correct?",
+ "start_line": 162,
+ "end_line": 162,
+ "start_column": 44,
+ "end_column": 66,
+ "is_javadoc": false
+ },
"receiver_expr": "customer",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -43760,6 +62765,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -43782,6 +62788,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -43805,6 +62812,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "results",
"type": "java.lang.String",
"initializer": "null",
@@ -43814,6 +62829,14 @@
"end_column": 23
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "customer",
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"initializer": "null",
@@ -43829,9 +62852,18 @@
"is_entrypoint": false
},
"updateUser(String, String, String, String, String, String, String, String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CustomerMgr.java",
"signature": "updateUser(String, String, String, String, String, String, String, String, String)",
- "comment": "/**\r\n\t * Update an existing user.\r\n\t *\r\n\t * @param customerID\r\n\t * The customer ID.\r\n\t * @param firstName\r\n\t * First name.\r\n\t * @param lastName\r\n\t * Last name.\r\n\t * @param addr1\r\n\t * Address line 1.\r\n\t * @param addr2\r\n\t * Address line 2.\r\n\t * @param addrCity\r\n\t * City address information.\r\n\t * @param addrState\r\n\t * State address information.\r\n\t * @param addrZip\r\n\t * Zip code address information.\r\n\t * @param phone\r\n\t * User's phone number.\r\n\t * @return Customer\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Update an existing user.\r\n\t *\r\n\t * @param customerID\r\n\t * The customer ID.\r\n\t * @param firstName\r\n\t * First name.\r\n\t * @param lastName\r\n\t * Last name.\r\n\t * @param addr1\r\n\t * Address line 1.\r\n\t * @param addr2\r\n\t * Address line 2.\r\n\t * @param addrCity\r\n\t * City address information.\r\n\t * @param addrState\r\n\t * State address information.\r\n\t * @param addrZip\r\n\t * Zip code address information.\r\n\t * @param phone\r\n\t * User's phone number.\r\n\t * @return Customer\r\n\t ",
+ "start_line": 96,
+ "end_line": 118,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -43843,60 +62875,97 @@
"type": "java.lang.String",
"name": "customerID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 119,
+ "end_line": 119,
+ "start_column": 29,
+ "end_column": 45
},
{
"type": "java.lang.String",
"name": "firstName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 120,
+ "end_line": 120,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "lastName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 121,
+ "end_line": 121,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "addr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 122,
+ "end_line": 122,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "addr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 123,
+ "end_line": 123,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "addrCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 124,
+ "end_line": 124,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "addrState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 125,
+ "end_line": 125,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "addrZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 126,
+ "end_line": 126,
+ "start_column": 4,
+ "end_column": 17
},
{
"type": "java.lang.String",
"name": "phone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 127,
+ "end_line": 127,
+ "start_column": 4,
+ "end_column": 15
}
],
- "code": "{\n Customer c = em.find(Customer.class, customerID);\n em.lock(c, LockModeType.WRITE);\n em.refresh(c);\n c.setFirstName(firstName);\n c.setLastName(lastName);\n c.setAddr1(addr1);\n c.setAddr2(addr2);\n c.setAddrCity(addrCity);\n c.setAddrState(addrState);\n c.setAddrZip(addrZip);\n c.setPhone(phone);\n return c;\n}",
+ "code": "{\r\n\t\tCustomer c = em.find(Customer.class, customerID);\r\n\t\tem.lock(c, LockModeType.WRITE);\r\n\t\tem.refresh(c);\r\n\r\n\t\tc.setFirstName(firstName);\r\n\t\tc.setLastName(lastName);\r\n\t\tc.setAddr1(addr1);\r\n\t\tc.setAddr2(addr2);\r\n\t\tc.setAddrCity(addrCity);\r\n\t\tc.setAddrState(addrState);\r\n\t\tc.setAddrZip(addrZip);\r\n\t\tc.setPhone(phone);\r\n\r\n\t\treturn c;\r\n\t}",
"start_line": 119,
"end_line": 142,
+ "code_start_line": 127,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"is_implicit": false,
"is_constructor": false,
@@ -43910,6 +62979,7 @@
"call_sites": [
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -43933,6 +63003,7 @@
},
{
"method_name": "lock",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -43956,6 +63027,7 @@
},
{
"method_name": "refresh",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -43978,6 +63050,7 @@
},
{
"method_name": "setFirstName",
+ "comment": null,
"receiver_expr": "c",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -44000,6 +63073,7 @@
},
{
"method_name": "setLastName",
+ "comment": null,
"receiver_expr": "c",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -44022,6 +63096,7 @@
},
{
"method_name": "setAddr1",
+ "comment": null,
"receiver_expr": "c",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -44044,6 +63119,7 @@
},
{
"method_name": "setAddr2",
+ "comment": null,
"receiver_expr": "c",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -44066,6 +63142,7 @@
},
{
"method_name": "setAddrCity",
+ "comment": null,
"receiver_expr": "c",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -44088,6 +63165,7 @@
},
{
"method_name": "setAddrState",
+ "comment": null,
"receiver_expr": "c",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -44110,6 +63188,7 @@
},
{
"method_name": "setAddrZip",
+ "comment": null,
"receiver_expr": "c",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -44132,6 +63211,7 @@
},
{
"method_name": "setPhone",
+ "comment": null,
"receiver_expr": "c",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"argument_types": [
@@ -44155,6 +63235,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "c",
"type": "com.ibm.websphere.samples.pbw.jpa.Customer",
"initializer": "em.find(Customer.class, customerID)",
@@ -44172,7 +63260,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "EntityManager",
"start_line": 38,
@@ -44186,15 +63281,697 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
+ "is_entrypoint_class": false
+ }
+ },
+ "is_modified": false
+ },
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerAppException.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerAppException.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * MailerAppException extends the standard Exception. This is thrown by the mailer component when\r\n * there is some failure sending the mail.\r\n ",
+ "start_line": 19,
+ "end_line": 22,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 25,
+ "end_line": 27,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
+ "imports": [],
+ "type_declarations": {
+ "com.ibm.websphere.samples.pbw.bean.MailerAppException": {
+ "is_nested_type": false,
+ "is_class_or_interface_declaration": true,
+ "is_enum_declaration": false,
+ "is_annotation_declaration": false,
+ "is_record_declaration": false,
+ "is_interface": false,
+ "is_inner_class": false,
+ "is_local_class": false,
+ "extends_list": [
+ "java.lang.Exception"
+ ],
+ "comments": [
+ {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 25,
+ "end_line": 27,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * MailerAppException extends the standard Exception. This is thrown by the mailer component when\r\n * there is some failure sending the mail.\r\n ",
+ "start_line": 19,
+ "end_line": 22,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
+ "implements_list": [],
+ "modifiers": [
+ "public"
+ ],
+ "annotations": [],
+ "parent_type": "",
+ "nested_type_declarations": [],
+ "callable_declarations": {
+ "(String)": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerAppException.java",
+ "signature": "MailerAppException(String)",
+ "comments": [],
+ "annotations": [],
+ "modifiers": [
+ "public"
+ ],
+ "thrown_exceptions": [],
+ "declaration": "public MailerAppException(String str)",
+ "parameters": [
+ {
+ "type": "java.lang.String",
+ "name": "str",
+ "annotations": [],
+ "modifiers": [],
+ "start_line": 33,
+ "end_line": 33,
+ "start_column": 28,
+ "end_column": 37
+ }
+ ],
+ "code": "{\r\n\t\tsuper(str);\r\n\t}",
+ "start_line": 33,
+ "end_line": 35,
+ "code_start_line": 33,
+ "return_type": null,
+ "is_implicit": false,
+ "is_constructor": true,
+ "referenced_types": [],
+ "accessed_fields": [],
+ "call_sites": [],
+ "variable_declarations": [],
+ "crud_operations": [],
+ "crud_queries": [],
+ "cyclomatic_complexity": 1,
+ "is_entrypoint": false
+ },
+ "()": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerAppException.java",
+ "signature": "MailerAppException()",
+ "comments": [],
+ "annotations": [],
+ "modifiers": [
+ "public"
+ ],
+ "thrown_exceptions": [],
+ "declaration": "public MailerAppException()",
+ "parameters": [],
+ "code": "{\r\n\t}",
+ "start_line": 30,
+ "end_line": 31,
+ "code_start_line": 30,
+ "return_type": null,
+ "is_implicit": false,
+ "is_constructor": true,
+ "referenced_types": [],
+ "accessed_fields": [],
+ "call_sites": [],
+ "variable_declarations": [],
+ "crud_operations": [],
+ "crud_queries": [],
+ "cyclomatic_complexity": 1,
+ "is_entrypoint": false
+ }
+ },
+ "field_declarations": [
+ {
+ "comment": {
+ "content": "\r\n\t * \r\n\t ",
+ "start_line": 25,
+ "end_line": 27,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
+ "name": null,
+ "type": "long",
+ "start_line": 28,
+ "end_line": 28,
+ "variables": [
+ "serialVersionUID"
+ ],
+ "modifiers": [
+ "private",
+ "static",
+ "final"
+ ],
+ "annotations": []
+ }
+ ],
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
+ "is_entrypoint_class": false
+ }
+ },
+ "is_modified": false
+ },
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/PopulateDBBean.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/PopulateDBBean.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [],
+ "imports": [
+ "javax.annotation.PostConstruct",
+ "javax.ejb.Singleton",
+ "javax.ejb.Startup",
+ "javax.inject.Inject",
+ "com.ibm.websphere.samples.pbw.utils.Util"
+ ],
+ "type_declarations": {
+ "com.ibm.websphere.samples.pbw.bean.PopulateDBBean": {
+ "is_nested_type": false,
+ "is_class_or_interface_declaration": true,
+ "is_enum_declaration": false,
+ "is_annotation_declaration": false,
+ "is_record_declaration": false,
+ "is_interface": false,
+ "is_inner_class": false,
+ "is_local_class": false,
+ "extends_list": [],
+ "comments": [],
+ "implements_list": [],
+ "modifiers": [
+ "public"
+ ],
+ "annotations": [
+ "@Singleton",
+ "@Startup"
+ ],
+ "parent_type": "",
+ "nested_type_declarations": [],
+ "callable_declarations": {
+ "initDB()": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/PopulateDBBean.java",
+ "signature": "initDB()",
+ "comments": [],
+ "annotations": [
+ "@PostConstruct"
+ ],
+ "modifiers": [
+ "public"
+ ],
+ "thrown_exceptions": [],
+ "declaration": "public void initDB()",
+ "parameters": [],
+ "code": "{\n Util.debug(\"Initializing database...\");\n dbBean.populateDB();\n }",
+ "start_line": 17,
+ "end_line": 21,
+ "code_start_line": 18,
+ "return_type": "void",
+ "is_implicit": false,
+ "is_constructor": false,
+ "referenced_types": [],
+ "accessed_fields": [
+ "com.ibm.websphere.samples.pbw.bean.PopulateDBBean.dbBean"
+ ],
+ "call_sites": [
+ {
+ "method_name": "debug",
+ "comment": null,
+ "receiver_expr": "Util",
+ "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
+ "argument_types": [
+ "java.lang.String"
+ ],
+ "return_type": "",
+ "callee_signature": "debug(java.lang.String)",
+ "is_public": true,
+ "is_protected": false,
+ "is_private": false,
+ "is_unspecified": false,
+ "is_static_call": true,
+ "is_constructor_call": false,
+ "crud_operation": null,
+ "crud_query": null,
+ "start_line": 19,
+ "start_column": 9,
+ "end_line": 19,
+ "end_column": 46
+ },
+ {
+ "method_name": "populateDB",
+ "comment": null,
+ "receiver_expr": "dbBean",
+ "receiver_type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean",
+ "argument_types": [],
+ "return_type": "",
+ "callee_signature": "populateDB()",
+ "is_public": true,
+ "is_protected": false,
+ "is_private": false,
+ "is_unspecified": false,
+ "is_static_call": false,
+ "is_constructor_call": false,
+ "crud_operation": null,
+ "crud_query": null,
+ "start_line": 20,
+ "start_column": 9,
+ "end_line": 20,
+ "end_column": 27
+ }
+ ],
+ "variable_declarations": [],
+ "crud_operations": [],
+ "crud_queries": [],
+ "cyclomatic_complexity": 1,
+ "is_entrypoint": true
+ }
+ },
+ "field_declarations": [
+ {
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
+ "name": null,
+ "type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean",
+ "start_line": 14,
+ "end_line": 15,
+ "variables": [
+ "dbBean"
+ ],
+ "modifiers": [],
+ "annotations": [
+ "@Inject"
+ ]
+ }
+ ],
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * The CatalogMgr provides transactional access to the catalog of items the store is willing to sell\r\n * to customers.\r\n * \r\n * @see com.ibm.websphere.samples.pbw.jpa.Inventory\r\n ",
+ "start_line": 31,
+ "end_line": 36,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get all inventory items.\r\n\t *\r\n\t * @return Vector of Inventorys. / public Vector getItems() { Vector items\r\n\t * = new Vector(); int count = Util.getCategoryStrings().length; for (int i =\r\n\t * 0; i < count; i++) { items.addAll(getItemsByCategory(i)); } return items; }\r\n\t ",
+ "start_line": 43,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get inventory items that contain a given String within their names.\r\n\t *\r\n\t * @param name\r\n\t * String to search names for.\r\n\t * @return A Vector of Inventorys that match. / public Vector getItemsLikeName(String\r\n\t * name) { Query q = em.createNamedQuery(\"getItemsLikeName\"); q.setParameter(\"name\", '%'\r\n\t * + name + '%'); //The return type must be Vector because the PBW client ActiveX sample\r\n\t * requires Vector return new Vector(q.getResultList()); }\r\n\t ",
+ "start_line": 65,
+ "end_line": 74,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the StoreItem for the given ID.\r\n\t *\r\n\t * @param inventoryID\r\n\t * - ID of the Inventory item desired.\r\n\t * @return StoreItem / public StoreItem getItem(String inventoryID) { return new\r\n\t * StoreItem(getItemInventory(inventoryID)); }\r\n\t ",
+ "start_line": 76,
+ "end_line": 83,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Add an StoreItem item (same as Inventory item).\r\n\t *\r\n\t * @param item\r\n\t * The StoreItem to add.\r\n\t * @return True, if item added. / public boolean addItem(StoreItem item) { return addItem(new\r\n\t * Inventory(item)); }\r\n\t ",
+ "start_line": 114,
+ "end_line": 121,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Delete an inventory item.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The ID of the inventory item to delete.\r\n\t * @return True, if item deleted. / public boolean deleteItem(String inventoryID) { boolean\r\n\t * retval = true; em.remove(em.find(Inventory.class, inventoryID)); return retval; }\r\n\t ",
+ "start_line": 123,
+ "end_line": 130,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get all inventory items for the given category.\r\n\t *\r\n\t * @param category\r\n\t * of items desired.\r\n\t * @return Vector of Inventory.\r\n\t ",
+ "start_line": 51,
+ "end_line": 57,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " The return type must be Vector because the PBW client ActiveX sample requires Vector",
+ "start_line": 61,
+ "end_line": 61,
+ "start_column": 3,
+ "end_column": 89,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Get the Inventory item for the given ID.\r\n\t *\r\n\t * @param inventoryID\r\n\t * - ID of the Inventory item desired.\r\n\t * @return Inventory\r\n\t ",
+ "start_line": 85,
+ "end_line": 91,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Add an inventory item.\r\n\t *\r\n\t * @param item\r\n\t * The Inventory to add.\r\n\t * @return True, if item added.\r\n\t ",
+ "start_line": 99,
+ "end_line": 105,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the image for the inventory item.\r\n\t * \r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Buffer containing the image.\r\n\t ",
+ "start_line": 132,
+ "end_line": 138,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Set the image for the inventory item.\r\n\t * \r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @param imgbytes\r\n\t * Buffer containing the image.\r\n\t ",
+ "start_line": 149,
+ "end_line": 156,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Set the inventory item's quantity.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The inventory item's ID.\r\n\t * @param quantity\r\n\t * The inventory item's new quantity.\r\n\t ",
+ "start_line": 164,
+ "end_line": 171,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get a remote Inventory object.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Reference to the remote Inventory object.\r\n\t ",
+ "start_line": 179,
+ "end_line": 185,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get a remote Inventory object to Update.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Reference to the remote Inventory object.\r\n\t ",
+ "start_line": 190,
+ "end_line": 196,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.Serializable",
"java.util.Vector",
@@ -44217,7 +63994,128 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * The CatalogMgr provides transactional access to the catalog of items the store is willing to sell\r\n * to customers.\r\n * \r\n * @see com.ibm.websphere.samples.pbw.jpa.Inventory\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * Get all inventory items.\r\n\t *\r\n\t * @return Vector of Inventorys. / public Vector getItems() { Vector items\r\n\t * = new Vector(); int count = Util.getCategoryStrings().length; for (int i =\r\n\t * 0; i < count; i++) { items.addAll(getItemsByCategory(i)); } return items; }\r\n\t ",
+ "start_line": 43,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get inventory items that contain a given String within their names.\r\n\t *\r\n\t * @param name\r\n\t * String to search names for.\r\n\t * @return A Vector of Inventorys that match. / public Vector getItemsLikeName(String\r\n\t * name) { Query q = em.createNamedQuery(\"getItemsLikeName\"); q.setParameter(\"name\", '%'\r\n\t * + name + '%'); //The return type must be Vector because the PBW client ActiveX sample\r\n\t * requires Vector return new Vector(q.getResultList()); }\r\n\t ",
+ "start_line": 65,
+ "end_line": 74,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the StoreItem for the given ID.\r\n\t *\r\n\t * @param inventoryID\r\n\t * - ID of the Inventory item desired.\r\n\t * @return StoreItem / public StoreItem getItem(String inventoryID) { return new\r\n\t * StoreItem(getItemInventory(inventoryID)); }\r\n\t ",
+ "start_line": 76,
+ "end_line": 83,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Add an StoreItem item (same as Inventory item).\r\n\t *\r\n\t * @param item\r\n\t * The StoreItem to add.\r\n\t * @return True, if item added. / public boolean addItem(StoreItem item) { return addItem(new\r\n\t * Inventory(item)); }\r\n\t ",
+ "start_line": 114,
+ "end_line": 121,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Delete an inventory item.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The ID of the inventory item to delete.\r\n\t * @return True, if item deleted. / public boolean deleteItem(String inventoryID) { boolean\r\n\t * retval = true; em.remove(em.find(Inventory.class, inventoryID)); return retval; }\r\n\t ",
+ "start_line": 123,
+ "end_line": 130,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get all inventory items for the given category.\r\n\t *\r\n\t * @param category\r\n\t * of items desired.\r\n\t * @return Vector of Inventory.\r\n\t ",
+ "start_line": 51,
+ "end_line": 57,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " The return type must be Vector because the PBW client ActiveX sample requires Vector",
+ "start_line": 61,
+ "end_line": 61,
+ "start_column": 3,
+ "end_column": 89,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Get the Inventory item for the given ID.\r\n\t *\r\n\t * @param inventoryID\r\n\t * - ID of the Inventory item desired.\r\n\t * @return Inventory\r\n\t ",
+ "start_line": 85,
+ "end_line": 91,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Add an inventory item.\r\n\t *\r\n\t * @param item\r\n\t * The Inventory to add.\r\n\t * @return True, if item added.\r\n\t ",
+ "start_line": 99,
+ "end_line": 105,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the image for the inventory item.\r\n\t * \r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Buffer containing the image.\r\n\t ",
+ "start_line": 132,
+ "end_line": 138,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Set the image for the inventory item.\r\n\t * \r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @param imgbytes\r\n\t * Buffer containing the image.\r\n\t ",
+ "start_line": 149,
+ "end_line": 156,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Set the inventory item's quantity.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The inventory item's ID.\r\n\t * @param quantity\r\n\t * The inventory item's new quantity.\r\n\t ",
+ "start_line": 164,
+ "end_line": 171,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get a remote Inventory object.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Reference to the remote Inventory object.\r\n\t ",
+ "start_line": 179,
+ "end_line": 185,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get a remote Inventory object to Update.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Reference to the remote Inventory object.\r\n\t ",
+ "start_line": 190,
+ "end_line": 196,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n * The CatalogMgr provides transactional access to the catalog of items the store is willing to sell\r\n * to customers.\r\n * \r\n * @see com.ibm.websphere.samples.pbw.jpa.Inventory\r\n ",
+ "start_line": 31,
+ "end_line": 36,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -44232,9 +64130,18 @@
"nested_type_declarations": [],
"callable_declarations": {
"getInv(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
"signature": "getInv(String)",
- "comment": "/**\r\n\t * Get a remote Inventory object.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Reference to the remote Inventory object.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Get a remote Inventory object.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Reference to the remote Inventory object.\r\n\t ",
+ "start_line": 179,
+ "end_line": 185,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"private"
@@ -44246,12 +64153,17 @@
"type": "java.lang.String",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 186,
+ "end_line": 186,
+ "start_column": 27,
+ "end_column": 44
}
],
- "code": "{\n return em.find(Inventory.class, inventoryID);\n}",
+ "code": "{\r\n\t\treturn em.find(Inventory.class, inventoryID);\r\n\t}",
"start_line": 186,
"end_line": 188,
+ "code_start_line": 186,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"is_implicit": false,
"is_constructor": false,
@@ -44262,6 +64174,7 @@
"call_sites": [
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -44291,9 +64204,18 @@
"is_entrypoint": false
},
"setItemQuantity(String, int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
"signature": "setItemQuantity(String, int)",
- "comment": "/**\r\n\t * Set the inventory item's quantity.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The inventory item's ID.\r\n\t * @param quantity\r\n\t * The inventory item's new quantity.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Set the inventory item's quantity.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The inventory item's ID.\r\n\t * @param quantity\r\n\t * The inventory item's new quantity.\r\n\t ",
+ "start_line": 164,
+ "end_line": 171,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -44305,18 +64227,27 @@
"type": "java.lang.String",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 172,
+ "end_line": 172,
+ "start_column": 30,
+ "end_column": 47
},
{
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 172,
+ "end_line": 172,
+ "start_column": 50,
+ "end_column": 61
}
],
- "code": "{\n Inventory inv = getInvUpdate(inventoryID);\n if (inv != null) {\n inv.setQuantity(quantity);\n }\n}",
+ "code": "{\r\n\t\tInventory inv = getInvUpdate(inventoryID);\r\n\t\tif (inv != null) {\r\n\t\t\tinv.setQuantity(quantity);\r\n\t\t}\r\n\t}",
"start_line": 172,
"end_line": 177,
+ "code_start_line": 172,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -44327,6 +64258,7 @@
"call_sites": [
{
"method_name": "getInvUpdate",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -44349,6 +64281,7 @@
},
{
"method_name": "setQuantity",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -44372,6 +64305,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inv",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "getInvUpdate(inventoryID)",
@@ -44387,9 +64328,18 @@
"is_entrypoint": false
},
"addItem(Inventory)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
"signature": "addItem(Inventory)",
- "comment": "/**\r\n\t * Add an inventory item.\r\n\t *\r\n\t * @param item\r\n\t * The Inventory to add.\r\n\t * @return True, if item added.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Add an inventory item.\r\n\t *\r\n\t * @param item\r\n\t * The Inventory to add.\r\n\t * @return True, if item added.\r\n\t ",
+ "start_line": 99,
+ "end_line": 105,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -44401,12 +64351,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "item",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 106,
+ "end_line": 106,
+ "start_column": 25,
+ "end_column": 38
}
],
- "code": "{\n boolean retval = true;\n Util.debug(\"addItem \" + item.getInventoryId());\n em.persist(item);\n em.flush();\n return retval;\n}",
+ "code": "{\r\n\t\tboolean retval = true;\r\n\t\tUtil.debug(\"addItem \" + item.getInventoryId());\r\n\t\tem.persist(item);\r\n\t\tem.flush();\r\n\t\treturn retval;\r\n\t}",
"start_line": 106,
"end_line": 112,
+ "code_start_line": 106,
"return_type": "boolean",
"is_implicit": false,
"is_constructor": false,
@@ -44417,6 +64372,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -44439,6 +64395,7 @@
},
{
"method_name": "getInventoryId",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -44459,6 +64416,7 @@
},
{
"method_name": "persist",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -44481,6 +64439,7 @@
},
{
"method_name": "flush",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [],
@@ -44502,6 +64461,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "retval",
"type": "boolean",
"initializer": "true",
@@ -44517,9 +64484,18 @@
"is_entrypoint": false
},
"getItemImageBytes(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
"signature": "getItemImageBytes(String)",
- "comment": "/**\r\n\t * Get the image for the inventory item.\r\n\t * \r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Buffer containing the image.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Get the image for the inventory item.\r\n\t * \r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Buffer containing the image.\r\n\t ",
+ "start_line": 132,
+ "end_line": 138,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -44531,12 +64507,17 @@
"type": "java.lang.String",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 139,
+ "end_line": 139,
+ "start_column": 34,
+ "end_column": 51
}
],
- "code": "{\n byte[] retval = null;\n Inventory inv = getInv(inventoryID);\n if (inv != null) {\n retval = inv.getImgbytes();\n }\n return retval;\n}",
+ "code": "{\r\n\t\tbyte[] retval = null;\r\n\t\tInventory inv = getInv(inventoryID);\r\n\t\tif (inv != null) {\r\n\t\t\tretval = inv.getImgbytes();\r\n\t\t}\r\n\r\n\t\treturn retval;\r\n\t}",
"start_line": 139,
"end_line": 147,
+ "code_start_line": 139,
"return_type": "byte[]",
"is_implicit": false,
"is_constructor": false,
@@ -44547,6 +64528,7 @@
"call_sites": [
{
"method_name": "getInv",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -44569,6 +64551,7 @@
},
{
"method_name": "getImgbytes",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -44590,6 +64573,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "retval",
"type": "byte[]",
"initializer": "null",
@@ -44599,6 +64590,14 @@
"end_column": 22
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inv",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "getInv(inventoryID)",
@@ -44614,9 +64613,26 @@
"is_entrypoint": false
},
"getItemsByCategory(int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
"signature": "getItemsByCategory(int)",
- "comment": "/**\r\n\t * Get all inventory items for the given category.\r\n\t *\r\n\t * @param category\r\n\t * of items desired.\r\n\t * @return Vector of Inventory.\r\n\t */",
+ "comments": [
+ {
+ "content": " The return type must be Vector because the PBW client ActiveX sample requires Vector",
+ "start_line": 61,
+ "end_line": 61,
+ "start_column": 3,
+ "end_column": 89,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Get all inventory items for the given category.\r\n\t *\r\n\t * @param category\r\n\t * of items desired.\r\n\t * @return Vector of Inventory.\r\n\t ",
+ "start_line": 51,
+ "end_line": 57,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -44628,12 +64644,17 @@
"type": "int",
"name": "category",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 58,
+ "end_line": 58,
+ "start_column": 46,
+ "end_column": 57
}
],
- "code": "{\n Query q = em.createNamedQuery(\"getItemsByCategory\");\n q.setParameter(\"category\", category);\n // The return type must be Vector because the PBW client ActiveX sample requires Vector\n return new Vector(q.getResultList());\n}",
+ "code": "{\r\n\t\tQuery q = em.createNamedQuery(\"getItemsByCategory\");\r\n\t\tq.setParameter(\"category\", category);\r\n\t\t// The return type must be Vector because the PBW client ActiveX sample requires Vector\r\n\t\treturn new Vector(q.getResultList());\r\n\t}",
"start_line": 58,
"end_line": 63,
+ "code_start_line": 58,
"return_type": "java.util.Vector",
"is_implicit": false,
"is_constructor": false,
@@ -44646,6 +64667,7 @@
"call_sites": [
{
"method_name": "createNamedQuery",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -44668,6 +64690,7 @@
},
{
"method_name": "setParameter",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [
@@ -44691,6 +64714,7 @@
},
{
"method_name": "getResultList",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [],
@@ -44711,6 +64735,14 @@
},
{
"method_name": "",
+ "comment": {
+ "content": " The return type must be Vector because the PBW client ActiveX sample requires Vector",
+ "start_line": 61,
+ "end_line": 61,
+ "start_column": 3,
+ "end_column": 89,
+ "is_javadoc": false
+ },
"receiver_expr": "",
"receiver_type": "java.util.Vector",
"argument_types": [
@@ -44734,6 +64766,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "q",
"type": "Query",
"initializer": "em.createNamedQuery(\"getItemsByCategory\")",
@@ -44749,9 +64789,18 @@
"is_entrypoint": false
},
"getItemInventory(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
"signature": "getItemInventory(String)",
- "comment": "/**\r\n\t * Get the Inventory item for the given ID.\r\n\t *\r\n\t * @param inventoryID\r\n\t * - ID of the Inventory item desired.\r\n\t * @return Inventory\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Get the Inventory item for the given ID.\r\n\t *\r\n\t * @param inventoryID\r\n\t * - ID of the Inventory item desired.\r\n\t * @return Inventory\r\n\t ",
+ "start_line": 85,
+ "end_line": 91,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -44763,12 +64812,17 @@
"type": "java.lang.String",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 92,
+ "end_line": 92,
+ "start_column": 36,
+ "end_column": 53
}
],
- "code": "{\n Inventory si = null;\n Util.debug(\"getItemInventory id=\" + inventoryID);\n si = em.find(Inventory.class, inventoryID);\n return si;\n}",
+ "code": "{\r\n\t\tInventory si = null;\r\n\t\tUtil.debug(\"getItemInventory id=\" + inventoryID);\r\n\t\tsi = em.find(Inventory.class, inventoryID);\r\n\t\treturn si;\r\n\t}",
"start_line": 92,
"end_line": 97,
+ "code_start_line": 92,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"is_implicit": false,
"is_constructor": false,
@@ -44781,6 +64835,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -44803,6 +64858,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -44827,6 +64883,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "si",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "null",
@@ -44842,9 +64906,18 @@
"is_entrypoint": false
},
"setItemImageBytes(String, byte[])": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
"signature": "setItemImageBytes(String, byte[])",
- "comment": "/**\r\n\t * Set the image for the inventory item.\r\n\t * \r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @param imgbytes\r\n\t * Buffer containing the image.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Set the image for the inventory item.\r\n\t * \r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @param imgbytes\r\n\t * Buffer containing the image.\r\n\t ",
+ "start_line": 149,
+ "end_line": 156,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -44856,18 +64929,27 @@
"type": "java.lang.String",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 157,
+ "end_line": 157,
+ "start_column": 32,
+ "end_column": 49
},
{
"type": "byte[]",
"name": "imgbytes",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 157,
+ "end_line": 157,
+ "start_column": 52,
+ "end_column": 66
}
],
- "code": "{\n Inventory inv = getInvUpdate(inventoryID);\n if (inv != null) {\n inv.setImgbytes(imgbytes);\n }\n}",
+ "code": "{\r\n\t\tInventory inv = getInvUpdate(inventoryID);\r\n\t\tif (inv != null) {\r\n\t\t\tinv.setImgbytes(imgbytes);\r\n\t\t}\r\n\t}",
"start_line": 157,
"end_line": 162,
+ "code_start_line": 157,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -44878,6 +64960,7 @@
"call_sites": [
{
"method_name": "getInvUpdate",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "",
"argument_types": [
@@ -44900,6 +64983,7 @@
},
{
"method_name": "setImgbytes",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -44923,6 +65007,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inv",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "getInvUpdate(inventoryID)",
@@ -44938,9 +65030,18 @@
"is_entrypoint": false
},
"getInvUpdate(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/CatalogMgr.java",
"signature": "getInvUpdate(String)",
- "comment": "/**\r\n\t * Get a remote Inventory object to Update.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Reference to the remote Inventory object.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Get a remote Inventory object to Update.\r\n\t *\r\n\t * @param inventoryID\r\n\t * The id of the inventory item wanted.\r\n\t * @return Reference to the remote Inventory object.\r\n\t ",
+ "start_line": 190,
+ "end_line": 196,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"private"
@@ -44952,12 +65053,17 @@
"type": "java.lang.String",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 197,
+ "end_line": 197,
+ "start_column": 33,
+ "end_column": 50
}
],
- "code": "{\n Inventory inv = null;\n inv = em.find(Inventory.class, inventoryID);\n em.lock(inv, LockModeType.OPTIMISTIC_FORCE_INCREMENT);\n em.refresh(inv);\n return inv;\n}",
+ "code": "{\r\n\t\tInventory inv = null;\r\n\t\tinv = em.find(Inventory.class, inventoryID);\r\n\t\tem.lock(inv, LockModeType.OPTIMISTIC_FORCE_INCREMENT);\r\n\t\tem.refresh(inv);\r\n\t\treturn inv;\r\n\t}",
"start_line": 197,
"end_line": 203,
+ "code_start_line": 197,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"is_implicit": false,
"is_constructor": false,
@@ -44971,6 +65077,7 @@
"call_sites": [
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -44994,6 +65101,7 @@
},
{
"method_name": "lock",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -45017,6 +65125,7 @@
},
{
"method_name": "refresh",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -45040,6 +65149,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inv",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "null",
@@ -45057,7 +65174,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "EntityManager",
"start_line": 40,
@@ -45071,254 +65195,435 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerAppException.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerAppException.java",
- "comment": "//",
- "imports": [],
- "type_declarations": {
- "com.ibm.websphere.samples.pbw.bean.MailerAppException": {
- "is_nested_type": false,
- "is_class_or_interface_declaration": true,
- "is_enum_declaration": false,
- "is_annotation_declaration": false,
- "is_record_declaration": false,
- "is_interface": false,
- "is_inner_class": false,
- "is_local_class": false,
- "extends_list": [
- "java.lang.Exception"
- ],
- "comment": "/**\r\n * MailerAppException extends the standard Exception. This is thrown by the mailer component when\r\n * there is some failure sending the mail.\r\n */",
- "implements_list": [],
- "modifiers": [
- "public"
- ],
- "annotations": [],
- "parent_type": "",
- "nested_type_declarations": [],
- "callable_declarations": {
- "(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerAppException.java",
- "signature": "MailerAppException(String)",
- "comment": "",
- "annotations": [],
- "modifiers": [
- "public"
- ],
- "thrown_exceptions": [],
- "declaration": "public MailerAppException(String str)",
- "parameters": [
- {
- "type": "java.lang.String",
- "name": "str",
- "annotations": [],
- "modifiers": []
- }
- ],
- "code": "{\n super(str);\n}",
- "start_line": 33,
- "end_line": 35,
- "return_type": null,
- "is_implicit": false,
- "is_constructor": true,
- "referenced_types": [],
- "accessed_fields": [],
- "call_sites": [],
- "variable_declarations": [],
- "crud_operations": [],
- "crud_queries": [],
- "cyclomatic_complexity": 1,
- "is_entrypoint": false
- },
- "()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerAppException.java",
- "signature": "MailerAppException()",
- "comment": "",
- "annotations": [],
- "modifiers": [
- "public"
- ],
- "thrown_exceptions": [],
- "declaration": "public MailerAppException()",
- "parameters": [],
- "code": "{\n}",
- "start_line": 30,
- "end_line": 31,
- "return_type": null,
- "is_implicit": false,
- "is_constructor": true,
- "referenced_types": [],
- "accessed_fields": [],
- "call_sites": [],
- "variable_declarations": [],
- "crud_operations": [],
- "crud_queries": [],
- "cyclomatic_complexity": 1,
- "is_entrypoint": false
- }
- },
- "field_declarations": [
- {
- "comment": "/**\r\n\t * \r\n\t */",
- "name": null,
- "type": "long",
- "start_line": 28,
- "end_line": 28,
- "variables": [
- "serialVersionUID"
- ],
- "modifiers": [
- "private",
- "static",
- "final"
- ],
- "annotations": []
- }
- ],
- "enum_constants": null,
- "is_entrypoint_class": false
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2003,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * The BackOrderMgr provides a transactional and secured facade to access back order information.\r\n * This bean no longer requires an interface as there is one and only one implementation.\r\n ",
+ "start_line": 33,
+ "end_line": 36,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method receiveConfirmation.\r\n\t * \r\n\t * @param backOrderID\r\n\t * / public int receiveConfirmation(String backOrderID) { int rc = 0; BackOrder\r\n\t * backOrder; Util.debug(\r\n\t * \"BackOrderMgr.receiveConfirmation() - Finding Back Order for backOrderID=\" +\r\n\t * backOrderID); backOrder = em.find(BackOrder.class, backOrderID);\r\n\t * backOrder.setStatus(Util.STATUS_RECEIVEDSTOCK); Util.debug(\r\n\t * \"BackOrderMgr.receiveConfirmation() - Updating status(\" +\r\n\t * Util.STATUS_RECEIVEDSTOCK + \") of backOrderID(\" + backOrderID + \")\"); return (rc);\r\n\t * }\r\n\t ",
+ "start_line": 107,
+ "end_line": 119,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method orderStock.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param quantity\r\n\t * / public void orderStock(String backOrderID, int quantity) {\r\n\t * this.setBackOrderStatus(backOrderID, Util.STATUS_ORDEREDSTOCK);\r\n\t * this.setBackOrderQuantity(backOrderID, quantity);\r\n\t * this.setBackOrderOrderDate(backOrderID); }\r\n\t ",
+ "start_line": 121,
+ "end_line": 130,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param backOrderID\r\n\t * / public void abortorderStock(String backOrderID) { Util.debug(\r\n\t * \"backOrderStockBean.abortorderStock() - Aborting orderStock transation for backorderID: \"\r\n\t * + backOrderID); // Reset the back order status since the order failed.\r\n\t * this.setBackOrderStatus(backOrderID, Util.STATUS_ORDERSTOCK); }\r\n\t ",
+ "start_line": 142,
+ "end_line": 148,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getBackOrderID.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @return String / public String getBackOrderID(String backOrderID) { String retbackOrderID =\r\n\t * \"\"; Util.debug( \"BackOrderMgr.getBackOrderID() - Entered\"); // BackOrderLocal\r\n\t * backOrder = getBackOrderLocalHome().findByPrimaryKey(new BackOrderKey(backOrderID));\r\n\t * BackOrder backOrder = em.find(BackOrder.class, backOrderID); retbackOrderID =\r\n\t * backOrder.getBackOrderID(); return retbackOrderID; }\r\n\t ",
+ "start_line": 150,
+ "end_line": 159,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method createBackOrder.\r\n\t * \r\n\t * @param inventoryID\r\n\t * @param amountToOrder\r\n\t * @param maximumItems\r\n\t ",
+ "start_line": 43,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " See if there is already an existing backorder and increase",
+ "start_line": 55,
+ "end_line": 55,
+ "start_column": 5,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " the order quantity",
+ "start_line": 56,
+ "end_line": 56,
+ "start_column": 5,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " but only if it has not been sent to the supplier.",
+ "start_line": 57,
+ "end_line": 57,
+ "start_column": 5,
+ "end_column": 56,
+ "is_javadoc": false
+ },
+ {
+ "content": " throw new FinderException();",
+ "start_line": 63,
+ "end_line": 63,
+ "start_column": 6,
+ "end_column": 36,
+ "is_javadoc": false
+ },
+ {
+ "content": " Increase the BackOrder quantity for an existing Back Order.",
+ "start_line": 65,
+ "end_line": 65,
+ "start_column": 5,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " Order enough stock from the supplier to reach the maximum",
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 5,
+ "end_column": 64,
+ "is_javadoc": false
+ },
+ {
+ "content": " threshold and to",
+ "start_line": 71,
+ "end_line": 71,
+ "start_column": 5,
+ "end_column": 23,
+ "is_javadoc": false
+ },
+ {
+ "content": " satisfy the back order.",
+ "start_line": 72,
+ "end_line": 72,
+ "start_column": 5,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method findBackOrderItems.\r\n\t * \r\n\t * @return Collection\r\n\t ",
+ "start_line": 83,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method deleteBackOrder.\r\n\t * \r\n\t * @param backOrderID\r\n\t ",
+ "start_line": 94,
+ "end_line": 98,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 101,
+ "end_line": 101,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 102,
+ "end_line": 102,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method updateStock.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param quantity\r\n\t ",
+ "start_line": 132,
+ "end_line": 137,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getBackOrderInventoryID.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @return String\r\n\t ",
+ "start_line": 161,
+ "end_line": 166,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 171,
+ "end_line": 171,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKey(new",
+ "start_line": 172,
+ "end_line": 172,
+ "start_column": 3,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " BackOrderKey(backOrderID));",
+ "start_line": 173,
+ "end_line": 173,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method getBackOrderQuantity.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @return int\r\n\t ",
+ "start_line": 180,
+ "end_line": 185,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 189,
+ "end_line": 189,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKey(new",
+ "start_line": 190,
+ "end_line": 190,
+ "start_column": 3,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " BackOrderKey(backOrderID));",
+ "start_line": 191,
+ "end_line": 191,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderQuantity.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param quantity\r\n\t ",
+ "start_line": 197,
+ "end_line": 202,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 205,
+ "end_line": 205,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 206,
+ "end_line": 206,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderStatus.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param Status\r\n\t ",
+ "start_line": 211,
+ "end_line": 216,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 219,
+ "end_line": 219,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 220,
+ "end_line": 220,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderOrderDate.\r\n\t * \r\n\t * @param backOrderID\r\n\t ",
+ "start_line": 225,
+ "end_line": 229,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 232,
+ "end_line": 232,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 233,
+ "end_line": 233,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
}
- },
- "is_modified": false
- },
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/PopulateDBBean.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/PopulateDBBean.java",
- "comment": "",
- "imports": [
- "javax.annotation.PostConstruct",
- "javax.ejb.Singleton",
- "javax.ejb.Startup",
- "javax.inject.Inject",
- "com.ibm.websphere.samples.pbw.utils.Util"
],
- "type_declarations": {
- "com.ibm.websphere.samples.pbw.bean.PopulateDBBean": {
- "is_nested_type": false,
- "is_class_or_interface_declaration": true,
- "is_enum_declaration": false,
- "is_annotation_declaration": false,
- "is_record_declaration": false,
- "is_interface": false,
- "is_inner_class": false,
- "is_local_class": false,
- "extends_list": [],
- "comment": "",
- "implements_list": [],
- "modifiers": [
- "public"
- ],
- "annotations": [
- "@Singleton",
- "@Startup"
- ],
- "parent_type": "",
- "nested_type_declarations": [],
- "callable_declarations": {
- "initDB()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/PopulateDBBean.java",
- "signature": "initDB()",
- "comment": "",
- "annotations": [
- "@PostConstruct"
- ],
- "modifiers": [
- "public"
- ],
- "thrown_exceptions": [],
- "declaration": "public void initDB()",
- "parameters": [],
- "code": "{\n Util.debug(\"Initializing database...\");\n dbBean.populateDB();\n}",
- "start_line": 17,
- "end_line": 21,
- "return_type": "void",
- "is_implicit": false,
- "is_constructor": false,
- "referenced_types": [],
- "accessed_fields": [
- "com.ibm.websphere.samples.pbw.bean.PopulateDBBean.dbBean"
- ],
- "call_sites": [
- {
- "method_name": "debug",
- "receiver_expr": "Util",
- "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
- "argument_types": [
- "java.lang.String"
- ],
- "return_type": "",
- "callee_signature": "debug(java.lang.String)",
- "is_public": true,
- "is_protected": false,
- "is_private": false,
- "is_unspecified": false,
- "is_static_call": true,
- "is_constructor_call": false,
- "crud_operation": null,
- "crud_query": null,
- "start_line": 19,
- "start_column": 9,
- "end_line": 19,
- "end_column": 46
- },
- {
- "method_name": "populateDB",
- "receiver_expr": "dbBean",
- "receiver_type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean",
- "argument_types": [],
- "return_type": "",
- "callee_signature": "populateDB()",
- "is_public": true,
- "is_protected": false,
- "is_private": false,
- "is_unspecified": false,
- "is_static_call": false,
- "is_constructor_call": false,
- "crud_operation": null,
- "crud_query": null,
- "start_line": 20,
- "start_column": 9,
- "end_line": 20,
- "end_column": 27
- }
- ],
- "variable_declarations": [],
- "crud_operations": [],
- "crud_queries": [],
- "cyclomatic_complexity": 1,
- "is_entrypoint": true
- }
- },
- "field_declarations": [
- {
- "comment": "",
- "name": null,
- "type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean",
- "start_line": 14,
- "end_line": 15,
- "variables": [
- "dbBean"
- ],
- "modifiers": [],
- "annotations": [
- "@Inject"
- ]
- }
- ],
- "enum_constants": null,
- "is_entrypoint_class": false
- }
- },
- "is_modified": false
- },
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
- "comment": "//",
"imports": [
"java.io.Serializable",
"java.util.Collection",
@@ -45343,7 +65648,296 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "/**\r\n * The BackOrderMgr provides a transactional and secured facade to access back order information.\r\n * This bean no longer requires an interface as there is one and only one implementation.\r\n */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method receiveConfirmation.\r\n\t * \r\n\t * @param backOrderID\r\n\t * / public int receiveConfirmation(String backOrderID) { int rc = 0; BackOrder\r\n\t * backOrder; Util.debug(\r\n\t * \"BackOrderMgr.receiveConfirmation() - Finding Back Order for backOrderID=\" +\r\n\t * backOrderID); backOrder = em.find(BackOrder.class, backOrderID);\r\n\t * backOrder.setStatus(Util.STATUS_RECEIVEDSTOCK); Util.debug(\r\n\t * \"BackOrderMgr.receiveConfirmation() - Updating status(\" +\r\n\t * Util.STATUS_RECEIVEDSTOCK + \") of backOrderID(\" + backOrderID + \")\"); return (rc);\r\n\t * }\r\n\t ",
+ "start_line": 107,
+ "end_line": 119,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method orderStock.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param quantity\r\n\t * / public void orderStock(String backOrderID, int quantity) {\r\n\t * this.setBackOrderStatus(backOrderID, Util.STATUS_ORDEREDSTOCK);\r\n\t * this.setBackOrderQuantity(backOrderID, quantity);\r\n\t * this.setBackOrderOrderDate(backOrderID); }\r\n\t ",
+ "start_line": 121,
+ "end_line": 130,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * @param backOrderID\r\n\t * / public void abortorderStock(String backOrderID) { Util.debug(\r\n\t * \"backOrderStockBean.abortorderStock() - Aborting orderStock transation for backorderID: \"\r\n\t * + backOrderID); // Reset the back order status since the order failed.\r\n\t * this.setBackOrderStatus(backOrderID, Util.STATUS_ORDERSTOCK); }\r\n\t ",
+ "start_line": 142,
+ "end_line": 148,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getBackOrderID.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @return String / public String getBackOrderID(String backOrderID) { String retbackOrderID =\r\n\t * \"\"; Util.debug( \"BackOrderMgr.getBackOrderID() - Entered\"); // BackOrderLocal\r\n\t * backOrder = getBackOrderLocalHome().findByPrimaryKey(new BackOrderKey(backOrderID));\r\n\t * BackOrder backOrder = em.find(BackOrder.class, backOrderID); retbackOrderID =\r\n\t * backOrder.getBackOrderID(); return retbackOrderID; }\r\n\t ",
+ "start_line": 150,
+ "end_line": 159,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method createBackOrder.\r\n\t * \r\n\t * @param inventoryID\r\n\t * @param amountToOrder\r\n\t * @param maximumItems\r\n\t ",
+ "start_line": 43,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " See if there is already an existing backorder and increase",
+ "start_line": 55,
+ "end_line": 55,
+ "start_column": 5,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " the order quantity",
+ "start_line": 56,
+ "end_line": 56,
+ "start_column": 5,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " but only if it has not been sent to the supplier.",
+ "start_line": 57,
+ "end_line": 57,
+ "start_column": 5,
+ "end_column": 56,
+ "is_javadoc": false
+ },
+ {
+ "content": " throw new FinderException();",
+ "start_line": 63,
+ "end_line": 63,
+ "start_column": 6,
+ "end_column": 36,
+ "is_javadoc": false
+ },
+ {
+ "content": " Increase the BackOrder quantity for an existing Back Order.",
+ "start_line": 65,
+ "end_line": 65,
+ "start_column": 5,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " Order enough stock from the supplier to reach the maximum",
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 5,
+ "end_column": 64,
+ "is_javadoc": false
+ },
+ {
+ "content": " threshold and to",
+ "start_line": 71,
+ "end_line": 71,
+ "start_column": 5,
+ "end_column": 23,
+ "is_javadoc": false
+ },
+ {
+ "content": " satisfy the back order.",
+ "start_line": 72,
+ "end_line": 72,
+ "start_column": 5,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method findBackOrderItems.\r\n\t * \r\n\t * @return Collection\r\n\t ",
+ "start_line": 83,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method deleteBackOrder.\r\n\t * \r\n\t * @param backOrderID\r\n\t ",
+ "start_line": 94,
+ "end_line": 98,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 101,
+ "end_line": 101,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 102,
+ "end_line": 102,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method updateStock.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param quantity\r\n\t ",
+ "start_line": 132,
+ "end_line": 137,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method getBackOrderInventoryID.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @return String\r\n\t ",
+ "start_line": 161,
+ "end_line": 166,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 171,
+ "end_line": 171,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKey(new",
+ "start_line": 172,
+ "end_line": 172,
+ "start_column": 3,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " BackOrderKey(backOrderID));",
+ "start_line": 173,
+ "end_line": 173,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method getBackOrderQuantity.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @return int\r\n\t ",
+ "start_line": 180,
+ "end_line": 185,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 189,
+ "end_line": 189,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKey(new",
+ "start_line": 190,
+ "end_line": 190,
+ "start_column": 3,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " BackOrderKey(backOrderID));",
+ "start_line": 191,
+ "end_line": 191,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderQuantity.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param quantity\r\n\t ",
+ "start_line": 197,
+ "end_line": 202,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 205,
+ "end_line": 205,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 206,
+ "end_line": 206,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderStatus.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param Status\r\n\t ",
+ "start_line": 211,
+ "end_line": 216,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 219,
+ "end_line": 219,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 220,
+ "end_line": 220,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderOrderDate.\r\n\t * \r\n\t * @param backOrderID\r\n\t ",
+ "start_line": 225,
+ "end_line": 229,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 232,
+ "end_line": 232,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 233,
+ "end_line": 233,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * The BackOrderMgr provides a transactional and secured facade to access back order information.\r\n * This bean no longer requires an interface as there is one and only one implementation.\r\n ",
+ "start_line": 33,
+ "end_line": 36,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -45358,9 +65952,34 @@
"nested_type_declarations": [],
"callable_declarations": {
"setBackOrderOrderDate(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
"signature": "setBackOrderOrderDate(String)",
- "comment": "/**\r\n\t * Method setBackOrderOrderDate.\r\n\t * \r\n\t * @param backOrderID\r\n\t */",
+ "comments": [
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 232,
+ "end_line": 232,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 233,
+ "end_line": 233,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderOrderDate.\r\n\t * \r\n\t * @param backOrderID\r\n\t ",
+ "start_line": 225,
+ "end_line": 229,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -45372,12 +65991,17 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 230,
+ "end_line": 230,
+ "start_column": 36,
+ "end_column": 53
}
],
- "code": "{\n Util.debug(\"BackOrderMgr.setBackOrderQuantity() - Entered\");\n // BackOrderLocal backOrder =\n // getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);\n BackOrder backOrder = em.find(BackOrder.class, backOrderID);\n backOrder.setOrderDate(System.currentTimeMillis());\n}",
+ "code": "{\r\n\t\tUtil.debug(\"BackOrderMgr.setBackOrderQuantity() - Entered\");\r\n\t\t// BackOrderLocal backOrder =\r\n\t\t// getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);\r\n\t\tBackOrder backOrder = em.find(BackOrder.class, backOrderID);\r\n\t\tbackOrder.setOrderDate(System.currentTimeMillis());\r\n\t}",
"start_line": 230,
"end_line": 236,
+ "code_start_line": 230,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -45390,6 +66014,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -45412,6 +66037,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -45435,6 +66061,7 @@
},
{
"method_name": "setOrderDate",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -45457,6 +66084,7 @@
},
{
"method_name": "currentTimeMillis",
+ "comment": null,
"receiver_expr": "System",
"receiver_type": "java.lang.System",
"argument_types": [],
@@ -45478,6 +66106,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrder",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "em.find(BackOrder.class, backOrderID)",
@@ -45493,9 +66129,18 @@
"is_entrypoint": false
},
"updateStock(String, int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
"signature": "updateStock(String, int)",
- "comment": "/**\r\n\t * Method updateStock.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param quantity\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method updateStock.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param quantity\r\n\t ",
+ "start_line": 132,
+ "end_line": 137,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -45507,18 +66152,27 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 138,
+ "end_line": 138,
+ "start_column": 26,
+ "end_column": 43
},
{
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 138,
+ "end_line": 138,
+ "start_column": 46,
+ "end_column": 57
}
],
- "code": "{\n this.setBackOrderStatus(backOrderID, Util.STATUS_ADDEDSTOCK);\n}",
+ "code": "{\r\n\t\tthis.setBackOrderStatus(backOrderID, Util.STATUS_ADDEDSTOCK);\r\n\t}",
"start_line": 138,
"end_line": 140,
+ "code_start_line": 138,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -45531,6 +66185,7 @@
"call_sites": [
{
"method_name": "setBackOrderStatus",
+ "comment": null,
"receiver_expr": "this",
"receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr",
"argument_types": [
@@ -45560,9 +66215,42 @@
"is_entrypoint": false
},
"getBackOrderInventoryID(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
"signature": "getBackOrderInventoryID(String)",
- "comment": "/**\r\n\t * Method getBackOrderInventoryID.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @return String\r\n\t */",
+ "comments": [
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 171,
+ "end_line": 171,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKey(new",
+ "start_line": 172,
+ "end_line": 172,
+ "start_column": 3,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " BackOrderKey(backOrderID));",
+ "start_line": 173,
+ "end_line": 173,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method getBackOrderInventoryID.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @return String\r\n\t ",
+ "start_line": 161,
+ "end_line": 166,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -45574,12 +66262,17 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 167,
+ "end_line": 167,
+ "start_column": 40,
+ "end_column": 57
}
],
- "code": "{\n String retinventoryID = \"\";\n Util.debug(\"BackOrderMgr.getBackOrderID() - Entered\");\n // BackOrderLocal backOrder =\n // getBackOrderLocalHome().findByPrimaryKey(new\n // BackOrderKey(backOrderID));\n BackOrder backOrder = em.find(BackOrder.class, backOrderID);\n retinventoryID = backOrder.getInventory().getInventoryId();\n return retinventoryID;\n}",
+ "code": "{\r\n\t\tString retinventoryID = \"\";\r\n\r\n\t\tUtil.debug(\"BackOrderMgr.getBackOrderID() - Entered\");\r\n\t\t// BackOrderLocal backOrder =\r\n\t\t// getBackOrderLocalHome().findByPrimaryKey(new\r\n\t\t// BackOrderKey(backOrderID));\r\n\t\tBackOrder backOrder = em.find(BackOrder.class, backOrderID);\r\n\t\tretinventoryID = backOrder.getInventory().getInventoryId();\r\n\r\n\t\treturn retinventoryID;\r\n\t}",
"start_line": 167,
"end_line": 178,
+ "code_start_line": 167,
"return_type": "java.lang.String",
"is_implicit": false,
"is_constructor": false,
@@ -45593,6 +66286,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -45615,6 +66309,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -45638,6 +66333,7 @@
},
{
"method_name": "getInventoryId",
+ "comment": null,
"receiver_expr": "backOrder.getInventory()",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -45658,6 +66354,7 @@
},
{
"method_name": "getInventory",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -45679,6 +66376,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "retinventoryID",
"type": "java.lang.String",
"initializer": "\"\"",
@@ -45688,6 +66393,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrder",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "em.find(BackOrder.class, backOrderID)",
@@ -45703,9 +66416,34 @@
"is_entrypoint": false
},
"deleteBackOrder(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
"signature": "deleteBackOrder(String)",
- "comment": "/**\r\n\t * Method deleteBackOrder.\r\n\t * \r\n\t * @param backOrderID\r\n\t */",
+ "comments": [
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 101,
+ "end_line": 101,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 102,
+ "end_line": 102,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method deleteBackOrder.\r\n\t * \r\n\t * @param backOrderID\r\n\t ",
+ "start_line": 94,
+ "end_line": 98,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -45717,12 +66455,17 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 99,
+ "end_line": 99,
+ "start_column": 30,
+ "end_column": 47
}
],
- "code": "{\n Util.debug(\"BackOrderMgr.deleteBackOrder() - Entered\");\n // BackOrderLocal backOrder =\n // getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);\n BackOrder backOrder = em.find(BackOrder.class, backOrderID);\n em.remove(backOrder);\n}",
+ "code": "{\r\n\t\tUtil.debug(\"BackOrderMgr.deleteBackOrder() - Entered\");\r\n\t\t// BackOrderLocal backOrder =\r\n\t\t// getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);\r\n\t\tBackOrder backOrder = em.find(BackOrder.class, backOrderID);\r\n\t\tem.remove(backOrder);\r\n\t}",
"start_line": 99,
"end_line": 105,
+ "code_start_line": 99,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -45735,6 +66478,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -45757,6 +66501,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -45780,6 +66525,7 @@
},
{
"method_name": "remove",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -45803,6 +66549,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrder",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "em.find(BackOrder.class, backOrderID)",
@@ -45818,9 +66572,34 @@
"is_entrypoint": false
},
"setBackOrderStatus(String, String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
"signature": "setBackOrderStatus(String, String)",
- "comment": "/**\r\n\t * Method setBackOrderStatus.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param Status\r\n\t */",
+ "comments": [
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 219,
+ "end_line": 219,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 220,
+ "end_line": 220,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderStatus.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param Status\r\n\t ",
+ "start_line": 211,
+ "end_line": 216,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -45832,18 +66611,27 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 217,
+ "end_line": 217,
+ "start_column": 33,
+ "end_column": 50
},
{
"type": "java.lang.String",
"name": "Status",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 217,
+ "end_line": 217,
+ "start_column": 53,
+ "end_column": 65
}
],
- "code": "{\n Util.debug(\"BackOrderMgr.setBackOrderStatus() - Entered\");\n // BackOrderLocal backOrder =\n // getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);\n BackOrder backOrder = em.find(BackOrder.class, backOrderID);\n backOrder.setStatus(Status);\n}",
+ "code": "{\r\n\t\tUtil.debug(\"BackOrderMgr.setBackOrderStatus() - Entered\");\r\n\t\t// BackOrderLocal backOrder =\r\n\t\t// getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);\r\n\t\tBackOrder backOrder = em.find(BackOrder.class, backOrderID);\r\n\t\tbackOrder.setStatus(Status);\r\n\t}",
"start_line": 217,
"end_line": 223,
+ "code_start_line": 217,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -45856,6 +66644,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -45878,6 +66667,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -45901,6 +66691,7 @@
},
{
"method_name": "setStatus",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -45924,6 +66715,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrder",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "em.find(BackOrder.class, backOrderID)",
@@ -45939,9 +66738,82 @@
"is_entrypoint": false
},
"createBackOrder(String, int, int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
"signature": "createBackOrder(String, int, int)",
- "comment": "/**\r\n\t * Method createBackOrder.\r\n\t * \r\n\t * @param inventoryID\r\n\t * @param amountToOrder\r\n\t * @param maximumItems\r\n\t */",
+ "comments": [
+ {
+ "content": " See if there is already an existing backorder and increase",
+ "start_line": 55,
+ "end_line": 55,
+ "start_column": 5,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " the order quantity",
+ "start_line": 56,
+ "end_line": 56,
+ "start_column": 5,
+ "end_column": 25,
+ "is_javadoc": false
+ },
+ {
+ "content": " but only if it has not been sent to the supplier.",
+ "start_line": 57,
+ "end_line": 57,
+ "start_column": 5,
+ "end_column": 56,
+ "is_javadoc": false
+ },
+ {
+ "content": " throw new FinderException();",
+ "start_line": 63,
+ "end_line": 63,
+ "start_column": 6,
+ "end_column": 36,
+ "is_javadoc": false
+ },
+ {
+ "content": " Increase the BackOrder quantity for an existing Back Order.",
+ "start_line": 65,
+ "end_line": 65,
+ "start_column": 5,
+ "end_column": 66,
+ "is_javadoc": false
+ },
+ {
+ "content": " Order enough stock from the supplier to reach the maximum",
+ "start_line": 70,
+ "end_line": 70,
+ "start_column": 5,
+ "end_column": 64,
+ "is_javadoc": false
+ },
+ {
+ "content": " threshold and to",
+ "start_line": 71,
+ "end_line": 71,
+ "start_column": 5,
+ "end_column": 23,
+ "is_javadoc": false
+ },
+ {
+ "content": " satisfy the back order.",
+ "start_line": 72,
+ "end_line": 72,
+ "start_column": 5,
+ "end_column": 30,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method createBackOrder.\r\n\t * \r\n\t * @param inventoryID\r\n\t * @param amountToOrder\r\n\t * @param maximumItems\r\n\t ",
+ "start_line": 43,
+ "end_line": 49,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -45953,24 +66825,37 @@
"type": "java.lang.String",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 50,
+ "end_line": 50,
+ "start_column": 30,
+ "end_column": 47
},
{
"type": "int",
"name": "amountToOrder",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 50,
+ "end_line": 50,
+ "start_column": 50,
+ "end_column": 66
},
{
"type": "int",
"name": "maximumItems",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 50,
+ "end_line": 50,
+ "start_column": 69,
+ "end_column": 84
}
],
- "code": "{\n try {\n Util.debug(\"BackOrderMgr.createBackOrder() - Entered\");\n BackOrder backOrder = null;\n try {\n // See if there is already an existing backorder and increase\n // the order quantity\n // but only if it has not been sent to the supplier.\n Query q = em.createNamedQuery(\"findByInventoryID\");\n q.setParameter(\"id\", inventoryID);\n backOrder = (BackOrder) q.getSingleResult();\n if (!(backOrder.getStatus().equals(Util.STATUS_ORDERSTOCK))) {\n Util.debug(\"BackOrderMgr.createBackOrder() - Backorders found but have already been ordered from the supplier\");\n // throw new FinderException();\n }\n // Increase the BackOrder quantity for an existing Back Order.\n backOrder.setQuantity(backOrder.getQuantity() + amountToOrder);\n } catch (NoResultException e) {\n Util.debug(\"BackOrderMgr.createBackOrder() - BackOrder doesn't exist.\" + e);\n Util.debug(\"BackOrderMgr.createBackOrder() - Creating BackOrder for InventoryID: \" + inventoryID);\n // Order enough stock from the supplier to reach the maximum\n // threshold and to\n // satisfy the back order.\n amountToOrder = maximumItems + amountToOrder;\n Inventory inv = em.find(Inventory.class, inventoryID);\n BackOrder b = new BackOrder(inv, amountToOrder);\n em.persist(b);\n }\n } catch (Exception e) {\n Util.debug(\"BackOrderMgr.createBackOrder() - Exception: \" + e);\n }\n}",
+ "code": "{\r\n\t\ttry {\r\n\t\t\tUtil.debug(\"BackOrderMgr.createBackOrder() - Entered\");\r\n\t\t\tBackOrder backOrder = null;\r\n\t\t\ttry {\r\n\t\t\t\t// See if there is already an existing backorder and increase\r\n\t\t\t\t// the order quantity\r\n\t\t\t\t// but only if it has not been sent to the supplier.\r\n\t\t\t\tQuery q = em.createNamedQuery(\"findByInventoryID\");\r\n\t\t\t\tq.setParameter(\"id\", inventoryID);\r\n\t\t\t\tbackOrder = (BackOrder) q.getSingleResult();\r\n\t\t\t\tif (!(backOrder.getStatus().equals(Util.STATUS_ORDERSTOCK))) {\r\n\t\t\t\t\tUtil.debug(\"BackOrderMgr.createBackOrder() - Backorders found but have already been ordered from the supplier\");\r\n\t\t\t\t\t// throw new FinderException();\r\n\t\t\t\t}\r\n\t\t\t\t// Increase the BackOrder quantity for an existing Back Order.\r\n\t\t\t\tbackOrder.setQuantity(backOrder.getQuantity() + amountToOrder);\r\n\t\t\t} catch (NoResultException e) {\r\n\t\t\t\tUtil.debug(\"BackOrderMgr.createBackOrder() - BackOrder doesn't exist.\" + e);\r\n\t\t\t\tUtil.debug(\"BackOrderMgr.createBackOrder() - Creating BackOrder for InventoryID: \" + inventoryID);\r\n\t\t\t\t// Order enough stock from the supplier to reach the maximum\r\n\t\t\t\t// threshold and to\r\n\t\t\t\t// satisfy the back order.\r\n\t\t\t\tamountToOrder = maximumItems + amountToOrder;\r\n\t\t\t\tInventory inv = em.find(Inventory.class, inventoryID);\r\n\t\t\t\tBackOrder b = new BackOrder(inv, amountToOrder);\r\n\t\t\t\tem.persist(b);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtil.debug(\"BackOrderMgr.createBackOrder() - Exception: \" + e);\r\n\t\t}\r\n\t}",
"start_line": 50,
"end_line": 81,
+ "code_start_line": 50,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -45987,6 +66872,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -46009,6 +66895,7 @@
},
{
"method_name": "createNamedQuery",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -46031,6 +66918,7 @@
},
{
"method_name": "setParameter",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [
@@ -46054,6 +66942,7 @@
},
{
"method_name": "getSingleResult",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [],
@@ -46074,6 +66963,7 @@
},
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "backOrder.getStatus()",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -46096,6 +66986,7 @@
},
{
"method_name": "getStatus",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -46116,6 +67007,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -46138,6 +67030,14 @@
},
{
"method_name": "setQuantity",
+ "comment": {
+ "content": " Increase the BackOrder quantity for an existing Back Order.",
+ "start_line": 65,
+ "end_line": 65,
+ "start_column": 5,
+ "end_column": 66,
+ "is_javadoc": false
+ },
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -46160,6 +67060,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -46180,6 +67081,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -46202,6 +67104,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -46224,6 +67127,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -46247,6 +67151,7 @@
},
{
"method_name": "persist",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -46269,6 +67174,7 @@
},
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -46291,6 +67197,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -46315,6 +67222,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrder",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "null",
@@ -46324,6 +67239,14 @@
"end_column": 29
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "q",
"type": "Query",
"initializer": "em.createNamedQuery(\"findByInventoryID\")",
@@ -46333,6 +67256,14 @@
"end_column": 54
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inv",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "em.find(Inventory.class, inventoryID)",
@@ -46342,6 +67273,14 @@
"end_column": 57
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "b",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "new BackOrder(inv, amountToOrder)",
@@ -46357,9 +67296,18 @@
"is_entrypoint": false
},
"findBackOrders()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
"signature": "findBackOrders()",
- "comment": "/**\r\n\t * Method findBackOrderItems.\r\n\t * \r\n\t * @return Collection\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Method findBackOrderItems.\r\n\t * \r\n\t * @return Collection\r\n\t ",
+ "start_line": 83,
+ "end_line": 87,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [
"@SuppressWarnings(\"unchecked\")"
],
@@ -46369,9 +67317,10 @@
"thrown_exceptions": [],
"declaration": "public Collection findBackOrders()",
"parameters": [],
- "code": "{\n Query q = em.createNamedQuery(\"findAllBackOrders\");\n return q.getResultList();\n}",
+ "code": "{\r\n\t\tQuery q = em.createNamedQuery(\"findAllBackOrders\");\r\n\t\treturn q.getResultList();\r\n\t}",
"start_line": 88,
"end_line": 92,
+ "code_start_line": 89,
"return_type": "java.util.Collection",
"is_implicit": false,
"is_constructor": false,
@@ -46384,6 +67333,7 @@
"call_sites": [
{
"method_name": "createNamedQuery",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -46406,6 +67356,7 @@
},
{
"method_name": "getResultList",
+ "comment": null,
"receiver_expr": "q",
"receiver_type": "",
"argument_types": [],
@@ -46427,6 +67378,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "q",
"type": "Query",
"initializer": "em.createNamedQuery(\"findAllBackOrders\")",
@@ -46442,9 +67401,34 @@
"is_entrypoint": false
},
"setBackOrderQuantity(String, int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
"signature": "setBackOrderQuantity(String, int)",
- "comment": "/**\r\n\t * Method setBackOrderQuantity.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param quantity\r\n\t */",
+ "comments": [
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 205,
+ "end_line": 205,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);",
+ "start_line": 206,
+ "end_line": 206,
+ "start_column": 3,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method setBackOrderQuantity.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @param quantity\r\n\t ",
+ "start_line": 197,
+ "end_line": 202,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -46456,18 +67440,27 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 203,
+ "end_line": 203,
+ "start_column": 35,
+ "end_column": 52
},
{
"type": "int",
"name": "quantity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 203,
+ "end_line": 203,
+ "start_column": 55,
+ "end_column": 66
}
],
- "code": "{\n Util.debug(\"BackOrderMgr.setBackOrderQuantity() - Entered\");\n // BackOrderLocal backOrder =\n // getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);\n BackOrder backOrder = em.find(BackOrder.class, backOrderID);\n backOrder.setQuantity(quantity);\n}",
+ "code": "{\r\n\t\tUtil.debug(\"BackOrderMgr.setBackOrderQuantity() - Entered\");\r\n\t\t// BackOrderLocal backOrder =\r\n\t\t// getBackOrderLocalHome().findByPrimaryKeyUpdate(backOrderID);\r\n\t\tBackOrder backOrder = em.find(BackOrder.class, backOrderID);\r\n\t\tbackOrder.setQuantity(quantity);\r\n\t}",
"start_line": 203,
"end_line": 209,
+ "code_start_line": 203,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -46480,6 +67473,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -46502,6 +67496,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -46525,6 +67520,7 @@
},
{
"method_name": "setQuantity",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -46548,6 +67544,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrder",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "em.find(BackOrder.class, backOrderID)",
@@ -46563,9 +67567,42 @@
"is_entrypoint": false
},
"getBackOrderQuantity(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/BackOrderMgr.java",
"signature": "getBackOrderQuantity(String)",
- "comment": "/**\r\n\t * Method getBackOrderQuantity.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @return int\r\n\t */",
+ "comments": [
+ {
+ "content": " BackOrderLocal backOrder =",
+ "start_line": 189,
+ "end_line": 189,
+ "start_column": 3,
+ "end_column": 31,
+ "is_javadoc": false
+ },
+ {
+ "content": " getBackOrderLocalHome().findByPrimaryKey(new",
+ "start_line": 190,
+ "end_line": 190,
+ "start_column": 3,
+ "end_column": 49,
+ "is_javadoc": false
+ },
+ {
+ "content": " BackOrderKey(backOrderID));",
+ "start_line": 191,
+ "end_line": 191,
+ "start_column": 3,
+ "end_column": 32,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Method getBackOrderQuantity.\r\n\t * \r\n\t * @param backOrderID\r\n\t * @return int\r\n\t ",
+ "start_line": 180,
+ "end_line": 185,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -46577,12 +67614,17 @@
"type": "java.lang.String",
"name": "backOrderID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 186,
+ "end_line": 186,
+ "start_column": 34,
+ "end_column": 51
}
],
- "code": "{\n int backOrderQuantity = -1;\n Util.debug(\"BackOrderMgr.getBackOrderQuantity() - Entered\");\n // BackOrderLocal backOrder =\n // getBackOrderLocalHome().findByPrimaryKey(new\n // BackOrderKey(backOrderID));\n BackOrder backOrder = em.find(BackOrder.class, backOrderID);\n backOrderQuantity = backOrder.getQuantity();\n return backOrderQuantity;\n}",
+ "code": "{\r\n\t\tint backOrderQuantity = -1;\r\n\t\tUtil.debug(\"BackOrderMgr.getBackOrderQuantity() - Entered\");\r\n\t\t// BackOrderLocal backOrder =\r\n\t\t// getBackOrderLocalHome().findByPrimaryKey(new\r\n\t\t// BackOrderKey(backOrderID));\r\n\t\tBackOrder backOrder = em.find(BackOrder.class, backOrderID);\r\n\t\tbackOrderQuantity = backOrder.getQuantity();\r\n\t\treturn backOrderQuantity;\r\n\t}",
"start_line": 186,
"end_line": 195,
+ "code_start_line": 186,
"return_type": "int",
"is_implicit": false,
"is_constructor": false,
@@ -46595,6 +67637,7 @@
"call_sites": [
{
"method_name": "debug",
+ "comment": null,
"receiver_expr": "Util",
"receiver_type": "com.ibm.websphere.samples.pbw.utils.Util",
"argument_types": [
@@ -46617,6 +67660,7 @@
},
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -46640,6 +67684,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "backOrder",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -46661,6 +67706,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrderQuantity",
"type": "int",
"initializer": "-1",
@@ -46670,6 +67723,14 @@
"end_column": 28
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "backOrder",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "em.find(BackOrder.class, backOrderID)",
@@ -46687,7 +67748,14 @@
},
"field_declarations": [
{
- "comment": "",
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": null,
"type": "EntityManager",
"start_line": 40,
@@ -46703,15 +67771,355 @@
]
}
],
- "enum_constants": null,
+ "enum_constants": [],
+ "record_components": [],
+ "initialization_blocks": [],
"is_entrypoint_class": false
}
},
"is_modified": false
},
- "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
- "comment": "//",
+ "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java": {
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
+ "package_name": "com.ibm.websphere.samples.pbw.bean",
+ "comments": [
+ {
+ "content": " COPYRIGHT LICENSE: This information contains sample code provided in source code form. You may copy, ",
+ "start_line": 2,
+ "end_line": 2,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " modify, and distribute these sample programs in any form without payment to IBM for the purposes of ",
+ "start_line": 3,
+ "end_line": 3,
+ "start_column": 1,
+ "end_column": 103,
+ "is_javadoc": false
+ },
+ {
+ "content": " developing, using, marketing or distributing application programs conforming to the application ",
+ "start_line": 4,
+ "end_line": 4,
+ "start_column": 1,
+ "end_column": 99,
+ "is_javadoc": false
+ },
+ {
+ "content": " programming interface for the operating platform for which the sample code is written. ",
+ "start_line": 5,
+ "end_line": 5,
+ "start_column": 1,
+ "end_column": 90,
+ "is_javadoc": false
+ },
+ {
+ "content": " Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE ON AN \"AS IS\" BASIS ",
+ "start_line": 6,
+ "end_line": 6,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED ",
+ "start_line": 7,
+ "end_line": 7,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ",
+ "start_line": 8,
+ "end_line": 8,
+ "start_column": 1,
+ "end_column": 104,
+ "is_javadoc": false
+ },
+ {
+ "content": " TITLE, AND ANY WARRANTY OR CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, ",
+ "start_line": 9,
+ "end_line": 9,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR OPERATION OF THE ",
+ "start_line": 10,
+ "end_line": 10,
+ "start_column": 1,
+ "end_column": 101,
+ "is_javadoc": false
+ },
+ {
+ "content": " SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS ",
+ "start_line": 11,
+ "end_line": 11,
+ "start_column": 1,
+ "end_column": 100,
+ "is_javadoc": false
+ },
+ {
+ "content": " OR MODIFICATIONS TO THE SAMPLE SOURCE CODE. ",
+ "start_line": 12,
+ "end_line": 12,
+ "start_column": 1,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 13,
+ "end_line": 13,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": " (C) COPYRIGHT International Business Machines Corp., 2001,2011",
+ "start_line": 14,
+ "end_line": 14,
+ "start_column": 1,
+ "end_column": 65,
+ "is_javadoc": false
+ },
+ {
+ "content": " All Rights Reserved * Licensed Materials - Property of IBM",
+ "start_line": 15,
+ "end_line": 15,
+ "start_column": 1,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n * ShopingCartBean provides a transactional facade for order collection and processing.\r\n * \r\n ",
+ "start_line": 36,
+ "end_line": 39,
+ "start_column": 1,
+ "end_column": 3,
+ "is_javadoc": true
+ },
+ {
+ "content": "",
+ "start_line": 16,
+ "end_line": 16,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Get the contents of the shopping cart.\r\n\t *\r\n\t * @return The contents of the shopping cart. / public ShoppingCartContents getCartContents() {\r\n\t * ShoppingCartContents cartContents = new ShoppingCartContents(); // Fill it with data.\r\n\t * for (int i = 0; i < items.size(); i++) { cartContents.addItem((ShoppingCartItem)\r\n\t * items.get(i)); } return cartContents; }\r\n\t ",
+ "start_line": 127,
+ "end_line": 134,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Create a shopping cart.\r\n\t *\r\n\t * @param cartContents\r\n\t * Contents to populate cart with. / public void setCartContents(ShoppingCartContents\r\n\t * cartContents) { items = new ArrayList(); int qty; String\r\n\t * inventoryID; ShoppingCartItem si; Inventory inv; for (int i = 0; i <\r\n\t * cartContents.size(); i++) { inventoryID = cartContents.getInventoryID(i); qty =\r\n\t * cartContents.getQuantity(inventoryID); inv = em.find(Inventory.class,\r\n\t * inventoryID); // clone so we can use Qty as qty to purchase, not inventory in\r\n\t * stock si = new ShoppingCartItem(inv); si.setQuantity(qty); addItem(si); } }\r\n\t ",
+ "start_line": 136,
+ "end_line": 147,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Add an item to the cart.\r\n\t *\r\n\t * @param new_item\r\n\t * Item to add to the cart.\r\n\t ",
+ "start_line": 50,
+ "end_line": 55,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " If the same item is already in the cart, just increase the quantity.",
+ "start_line": 58,
+ "end_line": 58,
+ "start_column": 3,
+ "end_column": 73,
+ "is_javadoc": false
+ },
+ {
+ "content": " Add this item to shopping cart, if it is a brand new item.",
+ "start_line": 66,
+ "end_line": 66,
+ "start_column": 3,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Remove an item from the cart.\r\n\t *\r\n\t * @param item\r\n\t * Item to remove from cart.\r\n\t ",
+ "start_line": 71,
+ "end_line": 76,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Remove all items from the cart.\r\n\t ",
+ "start_line": 86,
+ "end_line": 88,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Remove zero quantity items.\r\n\t ",
+ "start_line": 93,
+ "end_line": 95,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the items in the shopping cart.\r\n\t *\r\n\t * @return A Collection of ShoppingCartItems.\r\n\t ",
+ "start_line": 108,
+ "end_line": 112,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Set the items in the shopping cart.\r\n\t *\r\n\t * @param items\r\n\t * A Vector of ShoppingCartItem's.\r\n\t ",
+ "start_line": 117,
+ "end_line": 122,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the cost of all items in the shopping cart.\r\n\t *\r\n\t * @return The total cost of all items in the shopping cart.\r\n\t ",
+ "start_line": 149,
+ "end_line": 153,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method checkInventory. Check the inventory level of a store item. Order additional inventory\r\n\t * when necessary.\r\n\t *\r\n\t * @param si\r\n\t * - Store item\r\n\t ",
+ "start_line": 163,
+ "end_line": 169,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " When quantity becomes < 0, this will be to determine the",
+ "start_line": 193,
+ "end_line": 193,
+ "start_column": 3,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": " Check to see if more inventory needs to be ordered from the supplier",
+ "start_line": 197,
+ "end_line": 197,
+ "start_column": 3,
+ "end_column": 73,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Decrease the quantity of this inventory item.\r\n\t\t * \r\n\t\t * @param quantity\r\n\t\t * The number to decrease the inventory by.\r\n\t\t * @return The number of inventory items removed.\r\n\t\t ",
+ "start_line": 174,
+ "end_line": 180,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " quantity of unfilled orders due to insufficient stock.",
+ "start_line": 194,
+ "end_line": 194,
+ "start_column": 3,
+ "end_column": 59,
+ "is_javadoc": false
+ },
+ {
+ "content": " based on a set minimum Threshold",
+ "start_line": 198,
+ "end_line": 198,
+ "start_column": 3,
+ "end_column": 37,
+ "is_javadoc": false
+ },
+ {
+ "content": " Calculate the amount of stock to order from the supplier",
+ "start_line": 200,
+ "end_line": 200,
+ "start_column": 4,
+ "end_column": 62,
+ "is_javadoc": false
+ },
+ {
+ "content": " to get the inventory up to the maximum.",
+ "start_line": 201,
+ "end_line": 201,
+ "start_column": 4,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Create an order with contents of a shopping cart.\r\n\t *\r\n\t * @param customerID\r\n\t * customer's ID\r\n\t * @param billName\r\n\t * billing name\r\n\t * @param billAddr1\r\n\t * billing address line 1\r\n\t * @param billAddr2\r\n\t * billing address line 2\r\n\t * @param billCity\r\n\t * billing address city\r\n\t * @param billState\r\n\t * billing address state\r\n\t * @param billZip\r\n\t * billing address zip code\r\n\t * @param billPhone\r\n\t * billing phone\r\n\t * @param shipName\r\n\t * shippng name\r\n\t * @param shipAddr1\r\n\t * shippng address line 1\r\n\t * @param shipAddr2\r\n\t * shippng address line 2\r\n\t * @param shipCity\r\n\t * shippng address city\r\n\t * @param shipState\r\n\t * shippng address state\r\n\t * @param shipZip\r\n\t * shippng address zip code\r\n\t * @param shipPhone\r\n\t * shippng phone\r\n\t * @param creditCard\r\n\t * credit card\r\n\t * @param ccNum\r\n\t * credit card number\r\n\t * @param ccExpireMonth\r\n\t * credit card expiration month\r\n\t * @param ccExpireYear\r\n\t * credit card expiration year\r\n\t * @param cardHolder\r\n\t * credit card holder name\r\n\t * @param shippingMethod\r\n\t * int of shipping method used\r\n\t * @param items\r\n\t * vector of StoreItems ordered\r\n\t * @return OrderInfo\r\n\t ",
+ "start_line": 208,
+ "end_line": 256,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " store the order items",
+ "start_line": 294,
+ "end_line": 294,
+ "start_column": 3,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Get the inventory item.\r\n\t *\r\n\t * @param id of inventory item.\r\n\t * \r\n\t * @return an inventory bean.\r\n\t ",
+ "start_line": 309,
+ "end_line": 315,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Create a BackOrder of this inventory item.\r\n\t * \r\n\t * @param quantity The number of the inventory item to be backordered\r\n\t ",
+ "start_line": 322,
+ "end_line": 326,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
+ {
+ "content": " create a new backorder if none exists",
+ "start_line": 330,
+ "end_line": 330,
+ "start_column": 4,
+ "end_column": 43,
+ "is_javadoc": false
+ },
+ {
+ "content": " update the backorder with the new quantity",
+ "start_line": 336,
+ "end_line": 336,
+ "start_column": 4,
+ "end_column": 48,
+ "is_javadoc": false
+ },
+ {
+ "content": "",
+ "start_line": 1,
+ "end_line": 1,
+ "start_column": 1,
+ "end_column": 2,
+ "is_javadoc": false
+ }
+ ],
"imports": [
"java.io.Serializable",
"java.util.ArrayList",
@@ -46739,7 +68147,208 @@
"is_inner_class": false,
"is_local_class": false,
"extends_list": [],
- "comment": "",
+ "comments": [
+ {
+ "content": "\r\n\t * Get the contents of the shopping cart.\r\n\t *\r\n\t * @return The contents of the shopping cart. / public ShoppingCartContents getCartContents() {\r\n\t * ShoppingCartContents cartContents = new ShoppingCartContents(); // Fill it with data.\r\n\t * for (int i = 0; i < items.size(); i++) { cartContents.addItem((ShoppingCartItem)\r\n\t * items.get(i)); } return cartContents; }\r\n\t ",
+ "start_line": 127,
+ "end_line": 134,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Create a shopping cart.\r\n\t *\r\n\t * @param cartContents\r\n\t * Contents to populate cart with. / public void setCartContents(ShoppingCartContents\r\n\t * cartContents) { items = new ArrayList(); int qty; String\r\n\t * inventoryID; ShoppingCartItem si; Inventory inv; for (int i = 0; i <\r\n\t * cartContents.size(); i++) { inventoryID = cartContents.getInventoryID(i); qty =\r\n\t * cartContents.getQuantity(inventoryID); inv = em.find(Inventory.class,\r\n\t * inventoryID); // clone so we can use Qty as qty to purchase, not inventory in\r\n\t * stock si = new ShoppingCartItem(inv); si.setQuantity(qty); addItem(si); } }\r\n\t ",
+ "start_line": 136,
+ "end_line": 147,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Add an item to the cart.\r\n\t *\r\n\t * @param new_item\r\n\t * Item to add to the cart.\r\n\t ",
+ "start_line": 50,
+ "end_line": 55,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " If the same item is already in the cart, just increase the quantity.",
+ "start_line": 58,
+ "end_line": 58,
+ "start_column": 3,
+ "end_column": 73,
+ "is_javadoc": false
+ },
+ {
+ "content": " Add this item to shopping cart, if it is a brand new item.",
+ "start_line": 66,
+ "end_line": 66,
+ "start_column": 3,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Remove an item from the cart.\r\n\t *\r\n\t * @param item\r\n\t * Item to remove from cart.\r\n\t ",
+ "start_line": 71,
+ "end_line": 76,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Remove all items from the cart.\r\n\t ",
+ "start_line": 86,
+ "end_line": 88,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Remove zero quantity items.\r\n\t ",
+ "start_line": 93,
+ "end_line": 95,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the items in the shopping cart.\r\n\t *\r\n\t * @return A Collection of ShoppingCartItems.\r\n\t ",
+ "start_line": 108,
+ "end_line": 112,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Set the items in the shopping cart.\r\n\t *\r\n\t * @param items\r\n\t * A Vector of ShoppingCartItem's.\r\n\t ",
+ "start_line": 117,
+ "end_line": 122,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Get the cost of all items in the shopping cart.\r\n\t *\r\n\t * @return The total cost of all items in the shopping cart.\r\n\t ",
+ "start_line": 149,
+ "end_line": 153,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": "\r\n\t * Method checkInventory. Check the inventory level of a store item. Order additional inventory\r\n\t * when necessary.\r\n\t *\r\n\t * @param si\r\n\t * - Store item\r\n\t ",
+ "start_line": 163,
+ "end_line": 169,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " When quantity becomes < 0, this will be to determine the",
+ "start_line": 193,
+ "end_line": 193,
+ "start_column": 3,
+ "end_column": 61,
+ "is_javadoc": false
+ },
+ {
+ "content": " Check to see if more inventory needs to be ordered from the supplier",
+ "start_line": 197,
+ "end_line": 197,
+ "start_column": 3,
+ "end_column": 73,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t\t * Decrease the quantity of this inventory item.\r\n\t\t * \r\n\t\t * @param quantity\r\n\t\t * The number to decrease the inventory by.\r\n\t\t * @return The number of inventory items removed.\r\n\t\t ",
+ "start_line": 174,
+ "end_line": 180,
+ "start_column": 3,
+ "end_column": 5,
+ "is_javadoc": true
+ },
+ {
+ "content": " quantity of unfilled orders due to insufficient stock.",
+ "start_line": 194,
+ "end_line": 194,
+ "start_column": 3,
+ "end_column": 59,
+ "is_javadoc": false
+ },
+ {
+ "content": " based on a set minimum Threshold",
+ "start_line": 198,
+ "end_line": 198,
+ "start_column": 3,
+ "end_column": 37,
+ "is_javadoc": false
+ },
+ {
+ "content": " Calculate the amount of stock to order from the supplier",
+ "start_line": 200,
+ "end_line": 200,
+ "start_column": 4,
+ "end_column": 62,
+ "is_javadoc": false
+ },
+ {
+ "content": " to get the inventory up to the maximum.",
+ "start_line": 201,
+ "end_line": 201,
+ "start_column": 4,
+ "end_column": 45,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Create an order with contents of a shopping cart.\r\n\t *\r\n\t * @param customerID\r\n\t * customer's ID\r\n\t * @param billName\r\n\t * billing name\r\n\t * @param billAddr1\r\n\t * billing address line 1\r\n\t * @param billAddr2\r\n\t * billing address line 2\r\n\t * @param billCity\r\n\t * billing address city\r\n\t * @param billState\r\n\t * billing address state\r\n\t * @param billZip\r\n\t * billing address zip code\r\n\t * @param billPhone\r\n\t * billing phone\r\n\t * @param shipName\r\n\t * shippng name\r\n\t * @param shipAddr1\r\n\t * shippng address line 1\r\n\t * @param shipAddr2\r\n\t * shippng address line 2\r\n\t * @param shipCity\r\n\t * shippng address city\r\n\t * @param shipState\r\n\t * shippng address state\r\n\t * @param shipZip\r\n\t * shippng address zip code\r\n\t * @param shipPhone\r\n\t * shippng phone\r\n\t * @param creditCard\r\n\t * credit card\r\n\t * @param ccNum\r\n\t * credit card number\r\n\t * @param ccExpireMonth\r\n\t * credit card expiration month\r\n\t * @param ccExpireYear\r\n\t * credit card expiration year\r\n\t * @param cardHolder\r\n\t * credit card holder name\r\n\t * @param shippingMethod\r\n\t * int of shipping method used\r\n\t * @param items\r\n\t * vector of StoreItems ordered\r\n\t * @return OrderInfo\r\n\t ",
+ "start_line": 208,
+ "end_line": 256,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ },
+ {
+ "content": " store the order items",
+ "start_line": 294,
+ "end_line": 294,
+ "start_column": 3,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Get the inventory item.\r\n\t *\r\n\t * @param id of inventory item.\r\n\t * \r\n\t * @return an inventory bean.\r\n\t ",
+ "start_line": 309,
+ "end_line": 315,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Create a BackOrder of this inventory item.\r\n\t * \r\n\t * @param quantity The number of the inventory item to be backordered\r\n\t ",
+ "start_line": 322,
+ "end_line": 326,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": false
+ },
+ {
+ "content": " create a new backorder if none exists",
+ "start_line": 330,
+ "end_line": 330,
+ "start_column": 4,
+ "end_column": 43,
+ "is_javadoc": false
+ },
+ {
+ "content": " update the backorder with the new quantity",
+ "start_line": 336,
+ "end_line": 336,
+ "start_column": 4,
+ "end_column": 48,
+ "is_javadoc": false
+ }
+ ],
"implements_list": [
"java.io.Serializable"
],
@@ -46754,9 +68363,9 @@
"nested_type_declarations": [],
"callable_declarations": {
"getInventoryItem(String)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
"signature": "getInventoryItem(String)",
- "comment": "/*\r\n\t * Get the inventory item.\r\n\t *\r\n\t * @param id of inventory item.\r\n\t * \r\n\t * @return an inventory bean.\r\n\t */",
+ "comments": [],
"annotations": [],
"modifiers": [
"private"
@@ -46768,12 +68377,17 @@
"type": "java.lang.String",
"name": "inventoryID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 316,
+ "end_line": 316,
+ "start_column": 37,
+ "end_column": 54
}
],
- "code": "{\n Inventory inv = null;\n inv = em.find(Inventory.class, inventoryID);\n return inv;\n}",
+ "code": "{\r\n\t\tInventory inv = null;\r\n\t\tinv = em.find(Inventory.class, inventoryID);\r\n\t\treturn inv;\r\n\t}",
"start_line": 316,
"end_line": 320,
+ "code_start_line": 316,
"return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"is_implicit": false,
"is_constructor": false,
@@ -46786,6 +68400,7 @@
"call_sites": [
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -46810,6 +68425,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "inv",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "null",
@@ -46825,9 +68448,26 @@
"is_entrypoint": false
},
"backOrder(Inventory, int)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
"signature": "backOrder(Inventory, int)",
- "comment": "/*\r\n\t * Create a BackOrder of this inventory item.\r\n\t * \r\n\t * @param quantity The number of the inventory item to be backordered\r\n\t */",
+ "comments": [
+ {
+ "content": " create a new backorder if none exists",
+ "start_line": 330,
+ "end_line": 330,
+ "start_column": 4,
+ "end_column": 43,
+ "is_javadoc": false
+ },
+ {
+ "content": " update the backorder with the new quantity",
+ "start_line": 336,
+ "end_line": 336,
+ "start_column": 4,
+ "end_column": 48,
+ "is_javadoc": false
+ }
+ ],
"annotations": [],
"modifiers": [
"private"
@@ -46839,18 +68479,27 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "inv",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 327,
+ "end_line": 327,
+ "start_column": 25,
+ "end_column": 37
},
{
"type": "int",
"name": "amountToOrder",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 327,
+ "end_line": 327,
+ "start_column": 40,
+ "end_column": 56
}
],
- "code": "{\n BackOrder b = em.find(BackOrder.class, inv.getInventoryId());\n if (b == null) {\n // create a new backorder if none exists\n BackOrder newBO = new BackOrder(inv, amountToOrder);\n em.persist(newBO);\n em.flush();\n inv.setBackOrder(newBO);\n } else {\n // update the backorder with the new quantity\n int quantity = b.getQuantity();\n quantity += amountToOrder;\n em.lock(b, LockModeType.WRITE);\n em.refresh(b);\n b.setQuantity(quantity);\n em.flush();\n inv.setBackOrder(b);\n }\n}",
+ "code": "{\r\n\t\tBackOrder b = em.find(BackOrder.class, inv.getInventoryId());\r\n\t\tif (b == null) {\r\n\t\t\t// create a new backorder if none exists\r\n\t\t\tBackOrder newBO = new BackOrder(inv, amountToOrder);\r\n\t\t\tem.persist(newBO);\r\n\t\t\tem.flush();\r\n\t\t\tinv.setBackOrder(newBO);\r\n\t\t} else {\r\n\t\t\t// update the backorder with the new quantity\r\n\t\t\tint quantity = b.getQuantity();\r\n\t\t\tquantity += amountToOrder;\r\n\t\t\tem.lock(b, LockModeType.WRITE);\r\n\t\t\tem.refresh(b);\r\n\t\t\tb.setQuantity(quantity);\r\n\t\t\tem.flush();\r\n\t\t\tinv.setBackOrder(b);\r\n\t\t}\r\n\t}",
"start_line": 327,
"end_line": 345,
+ "code_start_line": 327,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -46864,6 +68513,7 @@
"call_sites": [
{
"method_name": "find",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -46887,6 +68537,7 @@
},
{
"method_name": "getInventoryId",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -46907,6 +68558,7 @@
},
{
"method_name": "persist",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -46929,6 +68581,7 @@
},
{
"method_name": "flush",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [],
@@ -46949,6 +68602,7 @@
},
{
"method_name": "setBackOrder",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -46971,6 +68625,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "b",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [],
@@ -46991,6 +68646,7 @@
},
{
"method_name": "lock",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -47014,6 +68670,7 @@
},
{
"method_name": "refresh",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [
@@ -47036,6 +68693,7 @@
},
{
"method_name": "setQuantity",
+ "comment": null,
"receiver_expr": "b",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -47058,6 +68716,7 @@
},
{
"method_name": "flush",
+ "comment": null,
"receiver_expr": "em",
"receiver_type": "",
"argument_types": [],
@@ -47078,6 +68737,7 @@
},
{
"method_name": "setBackOrder",
+ "comment": null,
"receiver_expr": "inv",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -47100,6 +68760,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"argument_types": [
@@ -47124,6 +68785,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "b",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "em.find(BackOrder.class, inv.getInventoryId())",
@@ -47133,6 +68802,14 @@
"end_column": 62
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "newBO",
"type": "com.ibm.websphere.samples.pbw.jpa.BackOrder",
"initializer": "new BackOrder(inv, amountToOrder)",
@@ -47142,6 +68819,14 @@
"end_column": 54
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "quantity",
"type": "int",
"initializer": "b.getQuantity()",
@@ -47157,9 +68842,34 @@
"is_entrypoint": false
},
"addItem(Inventory)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
"signature": "addItem(Inventory)",
- "comment": "/**\r\n\t * Add an item to the cart.\r\n\t *\r\n\t * @param new_item\r\n\t * Item to add to the cart.\r\n\t */",
+ "comments": [
+ {
+ "content": " If the same item is already in the cart, just increase the quantity.",
+ "start_line": 58,
+ "end_line": 58,
+ "start_column": 3,
+ "end_column": 73,
+ "is_javadoc": false
+ },
+ {
+ "content": " Add this item to shopping cart, if it is a brand new item.",
+ "start_line": 66,
+ "end_line": 66,
+ "start_column": 3,
+ "end_column": 63,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Add an item to the cart.\r\n\t *\r\n\t * @param new_item\r\n\t * Item to add to the cart.\r\n\t ",
+ "start_line": 50,
+ "end_line": 55,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -47171,12 +68881,17 @@
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"name": "new_item",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 56,
+ "end_line": 56,
+ "start_column": 22,
+ "end_column": 39
}
],
- "code": "{\n boolean added = false;\n // If the same item is already in the cart, just increase the quantity.\n for (Inventory old_item : items) {\n if (old_item.getID().equals(new_item.getID())) {\n old_item.setQuantity(old_item.getQuantity() + new_item.getQuantity());\n added = true;\n break;\n }\n }\n // Add this item to shopping cart, if it is a brand new item.\n if (!added)\n items.add(new_item);\n}",
+ "code": "{\r\n\t\tboolean added = false;\r\n\t\t// If the same item is already in the cart, just increase the quantity.\r\n\t\tfor (Inventory old_item : items) {\r\n\t\t\tif (old_item.getID().equals(new_item.getID())) {\r\n\t\t\t\told_item.setQuantity(old_item.getQuantity() + new_item.getQuantity());\r\n\t\t\t\tadded = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Add this item to shopping cart, if it is a brand new item.\r\n\t\tif (!added)\r\n\t\t\titems.add(new_item);\r\n\t}",
"start_line": 56,
"end_line": 69,
+ "code_start_line": 56,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -47189,6 +68904,7 @@
"call_sites": [
{
"method_name": "equals",
+ "comment": null,
"receiver_expr": "old_item.getID()",
"receiver_type": "java.lang.String",
"argument_types": [
@@ -47211,6 +68927,7 @@
},
{
"method_name": "getID",
+ "comment": null,
"receiver_expr": "old_item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -47231,6 +68948,7 @@
},
{
"method_name": "getID",
+ "comment": null,
"receiver_expr": "new_item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -47251,6 +68969,7 @@
},
{
"method_name": "setQuantity",
+ "comment": null,
"receiver_expr": "old_item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [
@@ -47273,6 +68992,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "old_item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -47293,6 +69013,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "new_item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -47313,6 +69034,7 @@
},
{
"method_name": "add",
+ "comment": null,
"receiver_expr": "items",
"receiver_type": "java.util.ArrayList",
"argument_types": [
@@ -47336,6 +69058,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "added",
"type": "boolean",
"initializer": "false",
@@ -47345,6 +69075,14 @@
"end_column": 23
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "old_item",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "",
@@ -47360,9 +69098,18 @@
"is_entrypoint": false
},
"removeAllItems()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
"signature": "removeAllItems()",
- "comment": "/**\r\n\t * Remove all items from the cart.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Remove all items from the cart.\r\n\t ",
+ "start_line": 86,
+ "end_line": 88,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -47370,9 +69117,10 @@
"thrown_exceptions": [],
"declaration": "public void removeAllItems()",
"parameters": [],
- "code": "{\n items = new ArrayList();\n}",
+ "code": "{\r\n\t\titems = new ArrayList();\r\n\t}",
"start_line": 89,
"end_line": 91,
+ "code_start_line": 89,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -47383,6 +69131,7 @@
"call_sites": [
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.ArrayList",
"argument_types": [],
@@ -47409,9 +69158,18 @@
"is_entrypoint": false
},
"removeZeroQuantityItems()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
"signature": "removeZeroQuantityItems()",
- "comment": "/**\r\n\t * Remove zero quantity items.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Remove zero quantity items.\r\n\t ",
+ "start_line": 93,
+ "end_line": 95,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -47419,9 +69177,10 @@
"thrown_exceptions": [],
"declaration": "public void removeZeroQuantityItems()",
"parameters": [],
- "code": "{\n ArrayList newItems = new ArrayList();\n for (Inventory i : items) {\n if (i.getQuantity() > 0) {\n newItems.add(i);\n }\n }\n items = newItems;\n}",
+ "code": "{\r\n\t\tArrayList newItems = new ArrayList();\r\n\r\n\t\tfor (Inventory i : items) {\r\n\t\t\tif (i.getQuantity() > 0) {\r\n\t\t\t\tnewItems.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\titems = newItems;\r\n\t}",
"start_line": 96,
"end_line": 106,
+ "code_start_line": 96,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -47435,6 +69194,7 @@
"call_sites": [
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "i",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -47455,6 +69215,7 @@
},
{
"method_name": "add",
+ "comment": null,
"receiver_expr": "newItems",
"receiver_type": "java.util.ArrayList",
"argument_types": [
@@ -47477,6 +69238,7 @@
},
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.ArrayList",
"argument_types": [],
@@ -47498,6 +69260,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "newItems",
"type": "java.util.ArrayList",
"initializer": "new ArrayList()",
@@ -47507,6 +69277,14 @@
"end_column": 60
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "i",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "",
@@ -47522,9 +69300,18 @@
"is_entrypoint": false
},
"setItems(Collection)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
"signature": "setItems(Collection)",
- "comment": "/**\r\n\t * Set the items in the shopping cart.\r\n\t *\r\n\t * @param items\r\n\t * A Vector of ShoppingCartItem's.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Set the items in the shopping cart.\r\n\t *\r\n\t * @param items\r\n\t * A Vector of ShoppingCartItem's.\r\n\t ",
+ "start_line": 117,
+ "end_line": 122,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -47536,12 +69323,17 @@
"type": "java.util.Collection",
"name": "items",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 123,
+ "end_line": 123,
+ "start_column": 23,
+ "end_column": 49
}
],
- "code": "{\n this.items = new ArrayList(items);\n}",
+ "code": "{\r\n\t\tthis.items = new ArrayList(items);\r\n\t}",
"start_line": 123,
"end_line": 125,
+ "code_start_line": 123,
"return_type": "void",
"is_implicit": false,
"is_constructor": false,
@@ -47554,6 +69346,7 @@
"call_sites": [
{
"method_name": "",
+ "comment": null,
"receiver_expr": "",
"receiver_type": "java.util.ArrayList",
"argument_types": [
@@ -47582,9 +69375,18 @@
"is_entrypoint": false
},
"getSubtotalCost()": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
"signature": "getSubtotalCost()",
- "comment": "/**\r\n\t * Get the cost of all items in the shopping cart.\r\n\t *\r\n\t * @return The total cost of all items in the shopping cart.\r\n\t */",
+ "comments": [
+ {
+ "content": "\r\n\t * Get the cost of all items in the shopping cart.\r\n\t *\r\n\t * @return The total cost of all items in the shopping cart.\r\n\t ",
+ "start_line": 149,
+ "end_line": 153,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -47592,9 +69394,10 @@
"thrown_exceptions": [],
"declaration": "public float getSubtotalCost()",
"parameters": [],
- "code": "{\n float f = 0.0F;\n for (Inventory item : items) {\n f += item.getPrice() * (float) item.getQuantity();\n }\n return f;\n}",
+ "code": "{\r\n\t\tfloat f = 0.0F;\r\n\r\n\t\tfor (Inventory item : items) {\r\n\t\t\tf += item.getPrice() * (float) item.getQuantity();\r\n\t\t}\r\n\t\treturn f;\r\n\t}",
"start_line": 154,
"end_line": 161,
+ "code_start_line": 154,
"return_type": "float",
"is_implicit": false,
"is_constructor": false,
@@ -47607,6 +69410,7 @@
"call_sites": [
{
"method_name": "getPrice",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -47627,6 +69431,7 @@
},
{
"method_name": "getQuantity",
+ "comment": null,
"receiver_expr": "item",
"receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"argument_types": [],
@@ -47648,6 +69453,14 @@
],
"variable_declarations": [
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "f",
"type": "float",
"initializer": "0.0F",
@@ -47657,6 +69470,14 @@
"end_column": 16
},
{
+ "comment": {
+ "content": null,
+ "start_line": -1,
+ "end_line": -1,
+ "start_column": -1,
+ "end_column": -1,
+ "is_javadoc": false
+ },
"name": "item",
"type": "com.ibm.websphere.samples.pbw.jpa.Inventory",
"initializer": "",
@@ -47672,9 +69493,26 @@
"is_entrypoint": false
},
"createOrder(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, int, Collection)": {
- "file_path": "/home/rkrsn/workspace/codellm-devkit/python-sdk/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
+ "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java",
"signature": "createOrder(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, int, Collection)",
- "comment": "/**\r\n\t * Create an order with contents of a shopping cart.\r\n\t *\r\n\t * @param customerID\r\n\t * customer's ID\r\n\t * @param billName\r\n\t * billing name\r\n\t * @param billAddr1\r\n\t * billing address line 1\r\n\t * @param billAddr2\r\n\t * billing address line 2\r\n\t * @param billCity\r\n\t * billing address city\r\n\t * @param billState\r\n\t * billing address state\r\n\t * @param billZip\r\n\t * billing address zip code\r\n\t * @param billPhone\r\n\t * billing phone\r\n\t * @param shipName\r\n\t * shippng name\r\n\t * @param shipAddr1\r\n\t * shippng address line 1\r\n\t * @param shipAddr2\r\n\t * shippng address line 2\r\n\t * @param shipCity\r\n\t * shippng address city\r\n\t * @param shipState\r\n\t * shippng address state\r\n\t * @param shipZip\r\n\t * shippng address zip code\r\n\t * @param shipPhone\r\n\t * shippng phone\r\n\t * @param creditCard\r\n\t * credit card\r\n\t * @param ccNum\r\n\t * credit card number\r\n\t * @param ccExpireMonth\r\n\t * credit card expiration month\r\n\t * @param ccExpireYear\r\n\t * credit card expiration year\r\n\t * @param cardHolder\r\n\t * credit card holder name\r\n\t * @param shippingMethod\r\n\t * int of shipping method used\r\n\t * @param items\r\n\t * vector of StoreItems ordered\r\n\t * @return OrderInfo\r\n\t */",
+ "comments": [
+ {
+ "content": " store the order items",
+ "start_line": 294,
+ "end_line": 294,
+ "start_column": 3,
+ "end_column": 26,
+ "is_javadoc": false
+ },
+ {
+ "content": "\r\n\t * Create an order with contents of a shopping cart.\r\n\t *\r\n\t * @param customerID\r\n\t * customer's ID\r\n\t * @param billName\r\n\t * billing name\r\n\t * @param billAddr1\r\n\t * billing address line 1\r\n\t * @param billAddr2\r\n\t * billing address line 2\r\n\t * @param billCity\r\n\t * billing address city\r\n\t * @param billState\r\n\t * billing address state\r\n\t * @param billZip\r\n\t * billing address zip code\r\n\t * @param billPhone\r\n\t * billing phone\r\n\t * @param shipName\r\n\t * shippng name\r\n\t * @param shipAddr1\r\n\t * shippng address line 1\r\n\t * @param shipAddr2\r\n\t * shippng address line 2\r\n\t * @param shipCity\r\n\t * shippng address city\r\n\t * @param shipState\r\n\t * shippng address state\r\n\t * @param shipZip\r\n\t * shippng address zip code\r\n\t * @param shipPhone\r\n\t * shippng phone\r\n\t * @param creditCard\r\n\t * credit card\r\n\t * @param ccNum\r\n\t * credit card number\r\n\t * @param ccExpireMonth\r\n\t * credit card expiration month\r\n\t * @param ccExpireYear\r\n\t * credit card expiration year\r\n\t * @param cardHolder\r\n\t * credit card holder name\r\n\t * @param shippingMethod\r\n\t * int of shipping method used\r\n\t * @param items\r\n\t * vector of StoreItems ordered\r\n\t * @return OrderInfo\r\n\t ",
+ "start_line": 208,
+ "end_line": 256,
+ "start_column": 2,
+ "end_column": 4,
+ "is_javadoc": true
+ }
+ ],
"annotations": [],
"modifiers": [
"public"
@@ -47686,138 +69524,227 @@
"type": "java.lang.String",
"name": "customerID",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 257,
+ "end_line": 257,
+ "start_column": 27,
+ "end_column": 43
},
{
"type": "java.lang.String",
"name": "billName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 258,
+ "end_line": 258,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "billAddr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 259,
+ "end_line": 259,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "billAddr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 260,
+ "end_line": 260,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "billCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 261,
+ "end_line": 261,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "billState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 262,
+ "end_line": 262,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "billZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 263,
+ "end_line": 263,
+ "start_column": 4,
+ "end_column": 17
},
{
"type": "java.lang.String",
"name": "billPhone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 264,
+ "end_line": 264,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "shipName",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 265,
+ "end_line": 265,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "shipAddr1",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 266,
+ "end_line": 266,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "shipAddr2",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 267,
+ "end_line": 267,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "shipCity",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 268,
+ "end_line": 268,
+ "start_column": 4,
+ "end_column": 18
},
{
"type": "java.lang.String",
"name": "shipState",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 269,
+ "end_line": 269,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "shipZip",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 270,
+ "end_line": 270,
+ "start_column": 4,
+ "end_column": 17
},
{
"type": "java.lang.String",
"name": "shipPhone",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 271,
+ "end_line": 271,
+ "start_column": 4,
+ "end_column": 19
},
{
"type": "java.lang.String",
"name": "creditCard",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 272,
+ "end_line": 272,
+ "start_column": 4,
+ "end_column": 20
},
{
"type": "java.lang.String",
"name": "ccNum",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 273,
+ "end_line": 273,
+ "start_column": 4,
+ "end_column": 15
},
{
"type": "java.lang.String",
"name": "ccExpireMonth",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 274,
+ "end_line": 274,
+ "start_column": 4,
+ "end_column": 23
},
{
"type": "java.lang.String",
"name": "ccExpireYear",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 275,
+ "end_line": 275,
+ "start_column": 4,
+ "end_column": 22
},
{
"type": "java.lang.String",
"name": "cardHolder",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 276,
+ "end_line": 276,
+ "start_column": 4,
+ "end_column": 20
},
{
"type": "int",
"name": "shippingMethod",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 277,
+ "end_line": 277,
+ "start_column": 4,
+ "end_column": 21
},
{
"type": "java.util.Collection",
"name": "items",
"annotations": [],
- "modifiers": []
+ "modifiers": [],
+ "start_line": 278,
+ "end_line": 278,
+ "start_column": 4,
+ "end_column": 30
}
],
- "code": "{\n Order order = null;\n Util.debug(\"ShoppingCartBean.createOrder: Creating Order\");\n Collection orderitems = new ArrayList